var cv=M.U(bv,"AdfDhtmlSelectOneChoicePeer");v("AdfDhtmlSelectOneChoicePeer",cv);
cv.m=function(){M.$b(this,AdfUIEditableValue.SUBMITTED_VALUE,AdfUISelectOne.Dq,AdfRichSelectOneChoice.LABEL);M.hb(this,AdfRichSelectOneChoice.LABEL,AdfRichSelectOneChoice.DISABLED);M.ha(this,I.jb,I.Xc,I.ec,I.Wf);w.b.cd()[w.Vc]==w.Wc&&M.ha(this,I.Qd,I.Ve);this.H7="content";this.lIa="compact";this.sU="drop";this.rf="pop";this.rA="popWrap";this.y7="sp";this.Ic="_afrSelectOnePopupPanel";this.Mq="p_AFHighlighted";this.gra="_adfTmpOpt"};v("AdfDhtmlSelectOneChoicePeer.InitSubclass",cv.m);
cv.prototype.Mn=t(l);z.a("AdfDhtmlSelectOneChoicePeer.prototype.needsFocusTargetStyleClass",{Mn:cv.prototype.Mn});cv.prototype.Oc=function(a,b){cv.f.Oc.call(this,a,b);var d=U.W(a,b);if(d&&!this.Jh(a)&&(M.Sx(cv,d,"change"),d=d.options)){var e=d.length;for(i=0;i<e;i++)if(d[i].title==n||""==d[i].title)d[i].title=d[i].text}};z.a("AdfDhtmlSelectOneChoicePeer.prototype.LazyInitialize",{Oc:cv.prototype.Oc});
cv.prototype.Ha=function(a){cv.f.Ha.call(this,a);a=w.b;if(a.G()==w.aa){var b=this.d(),d=this.h();if(b=U.W(b,d))"true"!=b.getAttribute("data-afr-init")?(b==F.c.Qc&&((9==a.nb()||10==a.nb())&&b.blur(),O.EC(b,1)),b.setAttribute("data-afr-init",l)):b.removeAttribute("data-afr-init")}};z.a("AdfDhtmlSelectOneChoicePeer.prototype.HandleComponentFocus",{Ha:cv.prototype.Ha});
cv.prototype.qa=function(a){if(a.dd()==Ta.ue){var b=a.getSource();if(this.Jh(b)&&!b.getDisabled()){a=a.L();a=w.b.T(a);var d=M.Ib(b);if(d==a||H.oc(d,a))this.Qa(b,cv.Ic)?this.ob(b,cv.Ic):this.Jx(b),this.Fxa=l;O.ra(dv(this,b))}}};z.a("AdfDhtmlSelectOneChoicePeer.prototype.HandleComponentMouseDown",{qa:cv.prototype.qa});
cv.prototype.C=function(a){if(a.dd()==Ta.ue){cv.f.C.call(this,a);var b=a.getSource();if(this.Jh(b)){var d=a.Q();this.gt(d)?(a=d.getAttribute(bv.We),H.F(d,cv.Mq),d=this.h(),this.xa(b,d,a),this.Yb(b,a),ev(this,b)):!this.Fxa&&!this.Fta&&w.aa==w.b.G()&&this.Jx(b);this.Fta=this.Fxa=p}}};z.a("AdfDhtmlSelectOneChoicePeer.prototype.HandleComponentClick",{C:cv.prototype.C});
cv.prototype.pa=function(a){if(Ta.ue==a.dd()&&w.aa==w.b.G()&&E.$a==w.b.ia(a.L())){var b=a.getSource();a.cancel();U.W(b).blur();O.ra(dv(this,b))}};z.a("AdfDhtmlSelectOneChoicePeer.prototype.HandleComponentKeyUp",{pa:cv.prototype.pa});cv.prototype.zb=function(a){this.Li(a)};z.a("AdfDhtmlSelectOneChoicePeer.prototype.HandleComponentKeyPress",{zb:cv.prototype.zb});
cv.prototype.ba=function(a){this.Li(a);if(a.dd()==Ta.ue){var b=a.getSource();if(this.Jh(b)&&!b.getDisabled()){var d=a.Q(),e=a.L(),f=w.b.ia(e),g=this.h(),h=this.cb(b,g),m=this.bo(b,h);switch(f){case E.xh:a.cancel();ev(this,b);break;case E.$a:this.Qa(b,cv.Ic)?(m=U.W(b,g),d=m.getAttribute(bv.We),d!=n&&(m.removeAttribute(bv.We),h=this.cb(b,g),h!=d&&this.Yb(b,h)),w.aa==w.b.G()&&(this.Fta=l),ev(this,b),O.ra(dv(this,b))):f==E.$a&&!this.Qa(b,cv.Ic)&&this.Jx(b);break;case E.Df:this.Qa(b,cv.Ic)&&ev(this,b);
break;case E.Ja:if(e.altKey){this.Jx(b);break}case E.Ya:if("A"==d.tagName&&!this.Qa(b,cv.Ic)){this.Jx(b);break}(e=f==E.Ya?this.eT(m):this.KK(m))||(e=this.aT(b));d=this.Qa(b,cv.Ic);e!=m&&(e=""+e.getAttribute(bv.We),d?(m=U.W(b,g),m.getAttribute(bv.We)==n&&m.setAttribute(bv.We,""+h),this.xa(b,g,e)):this.Yb(b,e));d&&a.cancel()}}w.aa==w.b.G()&&(8>=w.b.nb()&&E.$a==w.b.ia(a.L()))&&(a.Wb.returnValue=p)}};z.a("AdfDhtmlSelectOneChoicePeer.prototype.HandleComponentKeyDown",{ba:cv.prototype.ba});
cv.prototype.Ka=function(a){a.dd()==Ta.ue&&(a.getSource(),a=a.Q(),this.gt(a)&&(H.ta(a,cv.Mq)||H.n(a,cv.Mq)))};z.a("AdfDhtmlSelectOneChoicePeer.prototype.HandleComponentMouseOver",{Ka:cv.prototype.Ka});cv.prototype.vb=function(a){a.dd()==Ta.ue&&(a.getSource(),a=a.Q(),this.gt(a)&&H.F(a,cv.Mq))};z.a("AdfDhtmlSelectOneChoicePeer.prototype.HandleComponentMouseOut",{vb:cv.prototype.vb});cv.prototype.tE=function(a){var b=this.h();this.Yb(a,this.cb(a,b))};
z.a("AdfDhtmlSelectOneChoicePeer.prototype.HandleDomChange",{tE:cv.prototype.tE});cv.prototype.Va=function(a,b,d){if(d==cv.Ic){d=M.g(a.e(),cv.rA);w.b.getElementById(d).appendChild(b);b=M.Ib(a);d=U.W(a,b);var e=d.getAttribute(bv.We);e!=n&&(d.removeAttribute(bv.We),this.xa(a,b,e));O.ra(dv(this,a))}};z.a("AdfDhtmlSelectOneChoicePeer.prototype.PopupClosed",{Va:cv.prototype.Va});cv.prototype.Ad=function(a){return this.Jh(a)&&this.Qa(a,cv.Ic)?l:cv.f.Ad.call(this)};
z.a("AdfDhtmlSelectOneChoicePeer.prototype.VetoShowNoteWindow",{Ad:cv.prototype.Ad});cv.prototype.pd=function(a){return dv(this,a)};z.a("AdfDhtmlSelectOneChoicePeer.prototype.GetNoteWindowAlignmentNode",{pd:cv.prototype.pd});cv.prototype.p3=function(a){return a.getMode()};z.a("AdfDhtmlSelectOneChoicePeer.prototype.GetComponentMode",{p3:cv.prototype.p3});
cv.prototype.xa=function(a,b,d){var e=U.W(a,b);if(e!=n){var f=a.getReadOnly();B.s(d);if(!f){f=this.bo(a,d);if(this.Jh(a)){var g=this.cb(a,b),g=this.bo(a,g);this.IT(a,f,g);f==n&&this.C2(a,b)}else f&&(a=w.b.getAttribute(f,cv.gra),a||(b=H.Ua(e,"OPTION"),(a=w.b.getAttribute(b,cv.gra))&&e.removeChild(b)),e.title=f.title);e.value=d}}};z.a("AdfDhtmlSelectOneChoicePeer.prototype.SetDisplayValue",{xa:cv.prototype.xa});
cv.prototype.C2=function(a){var b=a.e(),b=M.g(b,cv.rf),b=w.b.getElementById(b).firstChild.insertRow(0),d=selectedItem.cloneNode(l);a=a.getUnselectedLabel();a==n&&(a="");d.setAttribute(bv.We,"");d.firstChild.nodeValue=a;b.appendChild(d);w.b.wa(d)};z.a("AdfDhtmlSelectOneChoicePeer.prototype.AddEmptyOption",{C2:cv.prototype.C2});cv.prototype.Ws=function(a){if(this.Jh(a))return cv.f.Ws.call(this,a);var b=this.h();a=U.W(a,b);return a==n?n:a.options};
z.a("AdfDhtmlSelectOneChoicePeer.prototype.GetItemElements",{Ws:cv.prototype.Ws});cv.prototype.mj=function(a,b){return this.Jh(a)?cv.f.mj.call(this,a,b):fv.kla(a,b)};z.a("AdfDhtmlSelectOneChoicePeer.prototype.GetComponentSelectItems",{mj:cv.prototype.mj});cv.prototype.bo=function(a,b){if(this.Jh(a))return cv.f.bo.call(this,a,b);var d=this.h(),d=U.W(a,d);if(d==n)return n;for(var e=d.options,f=e.length,d=0;d<f;d++)if(e[d].value==b)return e[d];return n};
z.a("AdfDhtmlSelectOneChoicePeer.prototype.FindItemElementWithValue",{bo:cv.prototype.bo});cv.prototype.Aa=function(){return mg.Hc()};z.a("AdfDhtmlSelectOneChoicePeer.prototype.GetInlineEditor",{Aa:cv.prototype.Aa});cv.prototype.Od=function(a,b,d){a=U.W(a,b);d==l?(H.n(b,M.gb),a.setAttribute("disabled","true")):(H.F(b,M.gb),a.removeAttribute("disabled"))};z.a("AdfDhtmlSelectOneChoicePeer.prototype.ComponentDisabledChanged",{Od:cv.prototype.Od});
function ev(a,b){b.e();var d=M.g(b.e(),cv.rf);w.b.getElementById(d);a.ob(b,cv.Ic);O.ra(dv(a,b))}cv.prototype.Jx=function(a){z.kb(AdfRichPopup);var b=a.e(),d=M.g(b,cv.y7);w.b.getElementById(d);d=M.g(b,cv.rf);d=w.b.getElementById(d);d.parentNode.removeChild(d);var e={};e[AdfRichPopup.fd]=AdfRichPopup.of;this.Jh(a)?(e.focus=l,e[AdfRichPopup.pf]=M.g(b,cv.sU)):(e.focus=p,e[AdfRichPopup.pf]=M.g(b,cv.H7));this.fe(a,d,e,cv.Ic)};cv.prototype.Jh=function(a){return this.p3(a)==cv.lIa};
function dv(a,b){var d;d=a.Jh(b)?M.g(b.e(),cv.sU):M.g(b.e(),cv.H7);return w.b.getElementById(d)}cv.prototype.om=function(a){var b=a.e();return this.Jh(a)?w.b.getElementById(M.g(b,cv.rf)):w.b.getElementById(M.g(b,cv.H7))};z.a("AdfDhtmlSelectOneChoicePeer.prototype.GetItemElementsParent",{om:cv.prototype.om});