var jx=I.ea(ix,"AdfDhtmlSelectOneChoicePeer");m("AdfDhtmlSelectOneChoicePeer",jx);
jx.C=function(){I.hc(this,AdfUIEditableValue.SUBMITTED_VALUE,AdfUISelectOne.rt,AdfRichSelectOneChoice.LABEL);I.sb(this,AdfRichSelectOneChoice.LABEL,AdfRichSelectOneChoice.DISABLED);I.ra(this,D.Nd,D.Oc,D.wb,D.Bd,D.Bc,D.gh);q.b.Dd()||I.ra(this,D.ze);this.yi="content";this.nZa="compact";this.nA="drop";this.Mf="pop";this.LE="popWrap";this.xga="sp";this.$c="_afrSelectOnePopupPanel";this.eEa="p_AFScroll";this.Mj="p_AFSelected";this.CE="p_AFHighlighted";this.aFa="_adfTmpOpt";this.PS=250};
m("AdfDhtmlSelectOneChoicePeer.InitSubclass",jx.C);jx.prototype.jq=function(){return!0};r.a("AdfDhtmlSelectOneChoicePeer.prototype.needsFocusTargetStyleClass",{jq:jx.prototype.jq});jx.prototype.G=function(a,b){jx.h.G.call(this,a,b);this.R0(a,b);var d=!this.wx(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(),jx.nA)),e=jx.bKa(d)-jx.bKa(e);C.jm(d,"width: "+e+"px",!0)}};
r.a("AdfDhtmlSelectOneChoicePeer.prototype.InitDomElement",{G:jx.prototype.G});jx.prototype.fd=function(a,b){jx.h.fd.call(this,a,b);var d=O.da(a,b);if(d)if(kx(this,a))a.getReadOnly()||d.setAttribute("aria-expanded","false");else if(I.ZB(jx,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:jx.prototype.fd});
jx.prototype.Lb=function(a){a=a.getSource();var b=this.i();!this.Za(a,jx.$c)&&kx(this,a)&&this.nE(a,b)};r.a("AdfDhtmlSelectOneChoicePeer.prototype.HandleComponentBlur",{Lb:jx.prototype.Lb});
jx.prototype.Fa=function(a){if(a.ce()==Qa.Ef){var b=a.getSource();if(kx(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(),jx.nA)),f=jx.uKa(b);this.am(b)&&a==f||a==O.da(b)||a==e||a.parentNode==e?this.Za(b,jx.$c)?this.Jb(b,jx.$c):this.MB(b):(d==a||C.Nc(d,a))&&this.Za(b,jx.$c)&&this.Jb(b,jx.$c);J.va(lx(this,b))}}};r.a("AdfDhtmlSelectOneChoicePeer.prototype.HandleComponentMouseDown",{Fa:jx.prototype.Fa});
jx.prototype.M=function(a){if(a.ce()==Qa.Ef){jx.h.M.call(this,a);var b=a.getSource();if(kx(this,b)){a=a.X();if(this.Kq(a)){var d=a.getAttribute(ix.aj);C.O(a,jx.CE);a=this.i();this.Ba(b,a,d);this.nE(b,a,d);mx(this,b)}else if(!this.XHa&&q.ia==q.b.S()&&!b.getReadOnly()){I.Fb(b);var d=q.b.getElementById(I.la(b.g(),jx.nA)),e=jx.uKa(b);!this.am(b)||a!=e&&a!=O.da(b)&&a!=d&&a.parentNode!=d||this.Za(b,jx.$c)||this.MB(b)}this.XHa=!1}}};r.a("AdfDhtmlSelectOneChoicePeer.prototype.HandleComponentClick",{M:jx.prototype.M});
jx.prototype.za=function(a){if(Qa.Ef==a.ce()&&q.ia==q.b.S()&&w.jb==q.b.na(a.U())){var b=a.getSource();a.cancel();O.da(b).blur();J.va(lx(this,b))}};r.a("AdfDhtmlSelectOneChoicePeer.prototype.HandleComponentKeyUp",{za:jx.prototype.za});
jx.prototype.ma=function(a){this.Il(a);if(a.ce()==Qa.Ef){var b=a.getSource();if(kx(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();mx(this,b);break;case w.jb:this.Za(b,jx.$c)?(this.nE(b,g,h),q.ia==q.b.S()&&(this.XHa=!0),mx(this,b)):this.MB(b);break;case w.tf:this.Za(b,jx.$c)&&mx(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,jx.$c)){this.MB(b);
a.cancel();break}(e=f==w.ab?this.e0(l):this.hR(l))||(e=this.gR(b));d=this.Za(b,jx.$c);e!=l&&(l=""+e.getAttribute(ix.aj),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:jx.prototype.ma});
jx.prototype.Yb=function(a){this.Il(a);var b=this.f();if(kx(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.yy(),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);nx(this,d,g,e,a)||nx(this,d,0,g,a);a=A.c;b.nG?a.Cs(b.nG,jx.PS):b.nG=a.ta(this,jx.Nia,b,jx.PS)}};
r.a("AdfDhtmlSelectOneChoicePeer.prototype.HandleComponentKeyPress",{Yb:jx.prototype.Yb});jx.prototype.JJ=function(a){var b=this.i();this.wx(b)||this.nE(a,b)};r.a("AdfDhtmlSelectOneChoicePeer.prototype.HandleDomChange",{JJ:jx.prototype.JJ});jx.prototype.ob=function(a,b,d){d==jx.$c&&(d=I.j(a.g(),jx.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(lx(this,a)))};
r.a("AdfDhtmlSelectOneChoicePeer.prototype.PopupClosed",{ob:jx.prototype.ob});jx.prototype.Te=function(a){return this.am(a)&&this.Za(a,jx.$c)?!0:jx.h.Te.call(this)};r.a("AdfDhtmlSelectOneChoicePeer.prototype.VetoShowNoteWindow",{Te:jx.prototype.Te});jx.prototype.Xd=function(a,b){if(this.wx(b)){var d=lx(this,a);return this.am(a)?d:d.parentNode}return lx(this,a)};r.a("AdfDhtmlSelectOneChoicePeer.prototype.GetNoteWindowAlignmentNode",{Xd:jx.prototype.Xd});jx.prototype.Rba=function(a){return a.getMode()};
r.a("AdfDhtmlSelectOneChoicePeer.prototype.GetComponentMode",{Rba:jx.prototype.Rba});
jx.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(kx(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}}};jx.prototype.SetDisplayValue=jx.prototype.Ba;
r.a("AdfDhtmlSelectOneChoicePeer.prototype.SetDisplayValue",{Ba:jx.prototype.Ba});jx.prototype.Ff=function(a,b,d,e){var f=this.Cl(a,d);if(f&&(f=q.b.getAttribute(f,jx.aFa),!f)){var g=this.Um(a),h=this.gR(a);(f=q.b.getAttribute(h,jx.aFa))&&g.removeChild(h)}jx.h.Ff.call(this,a,b,d,e)};r.a("AdfDhtmlSelectOneChoicePeer.prototype.ComponentValueChanged",{Ff:jx.prototype.Ff});jx.prototype.Wa=function(a,b){return this.am(a)||!this.wx(b)||a.getReadOnly()?jx.h.Wa.call(this,a,b):q.b.getElementsByName(a.g())[0].value};
r.a("AdfDhtmlSelectOneChoicePeer.prototype.GetSubmittedValue",{Wa:jx.prototype.Wa});jx.prototype.aw=function(a){if(kx(this,a))return jx.h.aw.call(this,a);var b=this.i();a=O.da(a,b);return null==a?null:a.options};r.a("AdfDhtmlSelectOneChoicePeer.prototype.GetItemElements",{aw:jx.prototype.aw});jx.prototype.uk=function(a,b){return kx(this,a)?jx.h.uk.call(this,a,b):ox.Qxa(a,b)};r.a("AdfDhtmlSelectOneChoicePeer.prototype.GetComponentSelectItems",{uk:jx.prototype.uk});
jx.prototype.Cl=function(a,b){if(kx(this,a))return jx.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:jx.prototype.Cl});jx.prototype.Oa=function(){return gi.jd()};r.a("AdfDhtmlSelectOneChoicePeer.prototype.GetInlineEditor",{Oa:jx.prototype.Oa});
jx.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:jx.prototype.vd});jx.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:jx.prototype.we});
jx.bKa=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 mx(a,b){b.g();var d=I.j(b.g(),jx.Mf);q.b.getElementById(d);a.Jb(b,jx.$c);J.va(lx(a,b))}
jx.prototype.MB=function(a){r.bb(AdfRichPopup);var b=a.g(),d=I.j(b,jx.xga),d=q.b.getElementById(d),e=I.j(b,jx.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,jx.nA);else{O.da(a).setAttribute("aria-expanded","true");var b=I.j(b,jx.yi),g=q.b.getElementById(b);if(g.disabled)return;C.sa(e,jx.eEa)?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.Av}e.parentNode.removeChild(e);this.He(a,e,f,jx.$c);C.sa(e,jx.eEa)&&(d=this.i(),d=this.Wa(a,d),d=this.Cl(a,d),this.YR(a,d))};jx.prototype.am=function(a){return this.Rba(a)==jx.nZa};jx.prototype._isCompact=jx.prototype.am;jx.prototype.wx=function(a){a||(a=this.i());return 0==a.getElementsByTagName("select").length};jx.prototype._isNativeSelectNotSupported=jx.prototype.wx;
function kx(a,b){return a.am(b)||a.wx()}function lx(a,b){var d;a.am(b)?d=I.j(b.g(),jx.nA):(d=jx.yi,d=I.j(b.g(),d));return q.b.getElementById(d)}jx.Nia=function(a){delete a.nG;delete a.Zh};function nx(a,b,d,e,f){for(var g=null,h=a.i(),l=a.f();d<e;d++)if(g=b[d],!g.cq()&&jx.e6(g.getLabel(),f))return b=""+g.getValue(),a.Ba(l,h,b),!0;return!1}jx.e6=function(a,b){return 0===a.toLocaleUpperCase().indexOf(b.toUpperCase())};
jx.prototype.Um=function(a){var b=a.g();return kx(this,a)?q.b.getElementById(I.j(b,jx.Mf)):q.b.getElementById(I.j(b,jx.yi))};r.a("AdfDhtmlSelectOneChoicePeer.prototype.GetItemElementsParent",{Um:jx.prototype.Um});jx.prototype.Kq=function(a){return"OPTION"==a.nodeName?!a.hasAttribute("disabled"):jx.h.Kq.call(this,a)};r.a("AdfDhtmlSelectOneChoicePeer.prototype.IsItemEnabled",{Kq:jx.prototype.Kq});jx.uKa=function(a){a=I.la(a.g(),jx.nA);return document.querySelector("label[for\x3d'"+a+"']")};