var lx=I.ea(kx,"AdfDhtmlSelectOneChoicePeer");m("AdfDhtmlSelectOneChoicePeer",lx);
lx.C=function(){I.hc(this,AdfUIEditableValue.SUBMITTED_VALUE,AdfUISelectOne.st,AdfRichSelectOneChoice.LABEL);I.sb(this,AdfRichSelectOneChoice.LABEL,AdfRichSelectOneChoice.DISABLED);I.ra(this,D.Nd,D.Pc,D.wb,D.Bd,D.Bc,D.hh);q.b.Dd()||I.ra(this,D.ze);this.yi="content";this.rZa="compact";this.nA="drop";this.Mf="pop";this.LE="popWrap";this.zga="sp";this.ad="_afrSelectOnePopupPanel";this.iEa="p_AFScroll";this.Mj="p_AFSelected";this.CE="p_AFHighlighted";this.eFa="_adfTmpOpt";this.PS=250};
m("AdfDhtmlSelectOneChoicePeer.InitSubclass",lx.C);lx.prototype.jq=function(){return!0};r.a("AdfDhtmlSelectOneChoicePeer.prototype.needsFocusTargetStyleClass",{jq:lx.prototype.jq});lx.prototype.G=function(a,b){lx.h.G.call(this,a,b);this.R0(a,b);var d=!this.xx(b);if(!(a.getReadOnly()||d||this.am(a))&&(d=O.da(a,b),-1!==d.style.cssText.indexOf("width"))){var e=document.getElementById(I.la(a.g(),lx.nA)),e=lx.gKa(d)-lx.gKa(e);C.jm(d,"width: "+e+"px",!0)}};
r.a("AdfDhtmlSelectOneChoicePeer.prototype.InitDomElement",{G:lx.prototype.G});lx.prototype.fd=function(a,b){lx.h.fd.call(this,a,b);var d=O.da(a,b);if(d)if(mx(this,a))a.getReadOnly()||d.setAttribute("aria-expanded","false");else if(I.ZB(lx,d,"change"),d=d.options){var e=d.length,f;for(f=0;f<e;f++)if(null==d[f].title||""==d[f].title)d[f].title=d[f].text}};r.a("AdfDhtmlSelectOneChoicePeer.prototype.LazyInitialize",{fd:lx.prototype.fd});
lx.prototype.Lb=function(a){a=a.getSource();var b=this.i();!this.Za(a,lx.ad)&&mx(this,a)&&this.nE(a,b)};r.a("AdfDhtmlSelectOneChoicePeer.prototype.HandleComponentBlur",{Lb:lx.prototype.Lb});
lx.prototype.Fa=function(a){if(a.Wd()==Qa.Ef){var b=a.getSource();if(mx(this,b)&&!b.getDisabled()&&!b.getReadOnly()){a=a.U();a=q.b.ca(a);var d=I.Fb(b),e=q.b.getElementById(I.la(b.g(),lx.nA)),f=lx.zKa(b);this.am(b)&&a==f||a==O.da(b)||a==e||a.parentNode==e?this.Za(b,lx.ad)?this.Jb(b,lx.ad):this.MB(b):(d==a||C.Nc(d,a))&&this.Za(b,lx.ad)&&this.Jb(b,lx.ad);J.va(nx(this,b))}}};r.a("AdfDhtmlSelectOneChoicePeer.prototype.HandleComponentMouseDown",{Fa:lx.prototype.Fa});
lx.prototype.M=function(a){if(a.Wd()==Qa.Ef){lx.h.M.call(this,a);var b=a.getSource();if(mx(this,b)){a=a.X();if(this.Lq(a)){var d=a.getAttribute(kx.cj);C.O(a,lx.CE);a=this.i();this.Ba(b,a,d);this.nE(b,a,d);ox(this,b)}else if(!this.aIa&&q.ia==q.b.S()&&!b.getReadOnly()){I.Fb(b);var d=q.b.getElementById(I.la(b.g(),lx.nA)),e=lx.zKa(b);!this.am(b)||a!=e&&a!=O.da(b)&&a!=d&&a.parentNode!=d||this.Za(b,lx.ad)||this.MB(b)}this.aIa=!1}}};r.a("AdfDhtmlSelectOneChoicePeer.prototype.HandleComponentClick",{M:lx.prototype.M});
lx.prototype.za=function(a){if(Qa.Ef==a.Wd()&&q.ia==q.b.S()&&w.jb==q.b.na(a.U())){var b=a.getSource();a.cancel();O.da(b).blur();J.va(nx(this,b))}};r.a("AdfDhtmlSelectOneChoicePeer.prototype.HandleComponentKeyUp",{za:lx.prototype.za});
lx.prototype.ma=function(a){this.Il(a);if(a.Wd()==Qa.Ef){var b=a.getSource();if(mx(this,b)&&!b.getReadOnly()&&!b.getDisabled()){var d=a.X(),e=a.U(),f=q.b.na(e),g=this.i(),h=this.Wa(b,g),l=this.Cl(b,h);switch(f){case w.Ih:a.cancel();ox(this,b);break;case w.jb:this.Za(b,lx.ad)?(this.nE(b,g,h),q.ia==q.b.S()&&(this.aIa=!0),ox(this,b)):this.MB(b);break;case w.tf:this.Za(b,lx.ad)&&ox(this,b);break;case w.Ra:if(e.altKey){this.MB(b);break}case w.ab:if(("A"==d.tagName||"INPUT"==d.tagName)&&!this.Za(b,lx.ad)){this.MB(b);
a.cancel();break}(e=f==w.ab?this.e0(l):this.hR(l))||(e=this.gR(b));d=this.Za(b,lx.ad);e!=l&&(l=""+e.getAttribute(kx.cj),d?this.Ba(b,g,l):this.nE(b,g,l));d&&a.cancel();break;case w.uz:void 0!==b.Zh&&(b.Zh=b.Zh.slice(0,-1))}}q.ia==q.b.S()&&8>=q.b.Ib()&&w.jb==q.b.na(a.U())&&(a.Event.returnValue=!1)}};r.a("AdfDhtmlSelectOneChoicePeer.prototype.HandleComponentKeyDown",{ma:lx.prototype.ma});
lx.prototype.Yb=function(a){this.Il(a);var b=this.f();if(mx(this,b)&&!b.getReadOnly()&&!b.getDisabled()){var d=a.U();q.b.na(d)==w.gd&&a.cancel();void 0===b.Zh&&(b.Zh="");b.Zh+=d.key;a=b.Zh;var d=b.zy(),e=d.length,f;a:{f=null;f=this.i();for(var g=this.f(),g=this.Wa(g,f),h=d.length,l=0;l<h;l++)if(f=d[l],f.getValue()==g){f=l;break a}f=0}g=f;1==a.trim().length&&(g=f+1);px(this,d,g,e,a)||px(this,d,0,g,a);a=A.c;b.nG?a.Ds(b.nG,lx.PS):b.nG=a.ta(this,lx.Qia,b,lx.PS)}};
r.a("AdfDhtmlSelectOneChoicePeer.prototype.HandleComponentKeyPress",{Yb:lx.prototype.Yb});lx.prototype.JJ=function(a){var b=this.i();this.xx(b)||this.nE(a,b)};r.a("AdfDhtmlSelectOneChoicePeer.prototype.HandleDomChange",{JJ:lx.prototype.JJ});lx.prototype.ob=function(a,b,d){d==lx.ad&&(d=I.j(a.g(),lx.LE),q.b.getElementById(d).appendChild(b),b=I.Fb(a),b=O.da(a,b),b.setAttribute("aria-expanded","false"),b.removeAttribute("aria-activedescendant"),J.va(nx(this,a)))};
r.a("AdfDhtmlSelectOneChoicePeer.prototype.PopupClosed",{ob:lx.prototype.ob});lx.prototype.Ue=function(a){return this.am(a)&&this.Za(a,lx.ad)?!0:lx.h.Ue.call(this)};r.a("AdfDhtmlSelectOneChoicePeer.prototype.VetoShowNoteWindow",{Ue:lx.prototype.Ue});lx.prototype.Yd=function(a,b){if(this.xx(b)){var d=nx(this,a);return this.am(a)?d:d.parentNode}return nx(this,a)};r.a("AdfDhtmlSelectOneChoicePeer.prototype.GetNoteWindowAlignmentNode",{Yd:lx.prototype.Yd});lx.prototype.Tba=function(a){return a.getMode()};
r.a("AdfDhtmlSelectOneChoicePeer.prototype.GetComponentMode",{Tba:lx.prototype.Tba});
lx.prototype.Ba=function(a,b,d){var e=O.da(a,b);if(null!=e){var f=a.getReadOnly();u.J(d);if(!f){f=this.Cl(a,d);if(mx(this,a)){b=this.Wa(a,b);b=this.Cl(a,b);this.YR(a,f,b);b="";if(null!=f){var g=f.getAttribute("id");e.setAttribute("aria-activedescendant",g);f.firstChild&&(b=f.firstChild.nodeValue)}if(!this.am(a)){q.b.getElementsByName(a.g())[0].value=d;e.value=b;e.title=b;return}}else f&&(e.title=f.title);e.value=d}}};lx.prototype.SetDisplayValue=lx.prototype.Ba;
r.a("AdfDhtmlSelectOneChoicePeer.prototype.SetDisplayValue",{Ba:lx.prototype.Ba});lx.prototype.Ff=function(a,b,d,e){var f=this.Cl(a,d);if(f&&(f=q.b.getAttribute(f,lx.eFa),!f)){var g=this.Um(a),h=this.gR(a);(f=q.b.getAttribute(h,lx.eFa))&&g.removeChild(h)}lx.h.Ff.call(this,a,b,d,e)};r.a("AdfDhtmlSelectOneChoicePeer.prototype.ComponentValueChanged",{Ff:lx.prototype.Ff});lx.prototype.Wa=function(a,b){return this.am(a)||!this.xx(b)||a.getReadOnly()?lx.h.Wa.call(this,a,b):q.b.getElementsByName(a.g())[0].value};
r.a("AdfDhtmlSelectOneChoicePeer.prototype.GetSubmittedValue",{Wa:lx.prototype.Wa});lx.prototype.bw=function(a){if(mx(this,a))return lx.h.bw.call(this,a);var b=this.i();a=O.da(a,b);return null==a?null:a.options};r.a("AdfDhtmlSelectOneChoicePeer.prototype.GetItemElements",{bw:lx.prototype.bw});lx.prototype.uk=function(a,b){return mx(this,a)?lx.h.uk.call(this,a,b):qx.Uxa(a,b)};r.a("AdfDhtmlSelectOneChoicePeer.prototype.GetComponentSelectItems",{uk:lx.prototype.uk});
lx.prototype.Cl=function(a,b){if(mx(this,a))return lx.h.Cl.call(this,a,b);var d=this.i(),d=O.da(a,d);if(null==d)return null;for(var e=d.options,f=e.length,d=0;d<f;d++)if(e[d].value==b)return e[d];return null};r.a("AdfDhtmlSelectOneChoicePeer.prototype.FindItemElementWithValue",{Cl:lx.prototype.Cl});lx.prototype.Oa=function(){return ii.jd()};r.a("AdfDhtmlSelectOneChoicePeer.prototype.GetInlineEditor",{Oa:lx.prototype.Oa});
lx.prototype.vd=function(a){u.dc(a);var b=this.f();u.assert(!b.getDisabled());u.assert(!b.HP());C.qd(a,this.i(),I.lb)};r.a("AdfDhtmlSelectOneChoicePeer.prototype.SetBusy",{vd:lx.prototype.vd});lx.prototype.we=function(a,b,d){a=O.da(a,b);1==d?(C.w(b,I.lb),a.setAttribute("disabled","true")):(C.O(b,I.lb),a.removeAttribute("disabled"))};r.a("AdfDhtmlSelectOneChoicePeer.prototype.ComponentDisabledChanged",{we:lx.prototype.we});
lx.gKa=function(a){a=getComputedStyle(a);return q.b.S()!=q.ia&&"border-box"==a.getPropertyValue("box-sizing")?parseFloat(a.getPropertyValue("width")):parseFloat(a.getPropertyValue("width"))+parseFloat(a.getPropertyValue("padding-left"))+parseFloat(a.getPropertyValue("padding-right"))+parseFloat(a.getPropertyValue("border-left-width"))+parseFloat(a.getPropertyValue("border-right-width"))};function ox(a,b){b.g();var d=I.j(b.g(),lx.Mf);q.b.getElementById(d);a.Jb(b,lx.ad);J.va(nx(a,b))}
lx.prototype.MB=function(a){r.bb(AdfRichPopup);var b=a.g(),d=I.j(b,lx.zga),d=q.b.getElementById(d),e=I.j(b,lx.Mf),e=q.b.getElementById(e),f={};f[AdfRichPopup.Ed]=AdfRichPopup.qf;if(this.am(a))f.type="menu",f.autodismiss="autodismissMenu",f.focus=!0,f[AdfRichPopup.Jf]=I.j(b,lx.nA);else{O.da(a).setAttribute("aria-expanded","true");var b=I.j(b,lx.yi),g=q.b.getElementById(b);if(g.disabled)return;C.sa(e,lx.iEa)?d.style.width=g.parentNode.offsetWidth-23+"px":d.style.width=g.parentNode.offsetWidth-7+"px";
f.type="menu";f.autodismiss="autodismissMenu";f.focus=!1;f[AdfRichPopup.Jf]=b;f.animate=AdfRichPopup.vq}e.parentNode.removeChild(e);this.He(a,e,f,lx.ad);C.sa(e,lx.iEa)&&(d=this.i(),d=this.Wa(a,d),d=this.Cl(a,d),this.YR(a,d))};lx.prototype.am=function(a){return this.Tba(a)==lx.rZa};lx.prototype._isCompact=lx.prototype.am;lx.prototype.xx=function(a){a||(a=this.i());return 0==a.getElementsByTagName("select").length};lx.prototype._isNativeSelectNotSupported=lx.prototype.xx;
function mx(a,b){return a.am(b)||a.xx()}function nx(a,b){var d;a.am(b)?d=I.j(b.g(),lx.nA):(d=lx.yi,d=I.j(b.g(),d));return q.b.getElementById(d)}lx.Qia=function(a){delete a.nG;delete a.Zh};function px(a,b,d,e,f){for(var g=null,h=a.i(),l=a.f();d<e;d++)if(g=b[d],!g.cq()&&lx.e6(g.getLabel(),f))return b=""+g.getValue(),a.Ba(l,h,b),!0;return!1}lx.e6=function(a,b){return 0===a.toLocaleUpperCase().indexOf(b.toUpperCase())};
lx.prototype.Um=function(a){var b=a.g();return mx(this,a)?q.b.getElementById(I.j(b,lx.Mf)):q.b.getElementById(I.j(b,lx.yi))};r.a("AdfDhtmlSelectOneChoicePeer.prototype.GetItemElementsParent",{Um:lx.prototype.Um});lx.prototype.Lq=function(a){return"OPTION"==a.nodeName?!a.hasAttribute("disabled"):lx.h.Lq.call(this,a)};r.a("AdfDhtmlSelectOneChoicePeer.prototype.IsItemEnabled",{Lq:lx.prototype.Lq});lx.zKa=function(a){a=I.la(a.g(),lx.nA);return document.querySelector("label[for\x3d'"+a+"']")};