var fn=M.U(xe,"AdfDhtmlInputListOfValuesSuperBasePeer");v("AdfDhtmlInputListOfValuesSuperBasePeer",fn);fn.m=function(){M.ha(this,I.kz,Ub.HE,Rb.qo,ab.ga,I.Wf);this.SU="_afrLovPopupId";this.zF="_shown";this.Gna="_dialogContentHeight";this.Hna="_dialogContentWidth";this.Loa="_afrLovInternalTableId";this.JKa="_afrLovInternalQueryId";this.nA="_afrLovInternalEventQueued";this.Woa="_afrLovDialogId";this.Q6=p;this.QL="select";this.xj=n;M.ui(this,fn.Gna,fn.Hna,fn.zF)};
v("AdfDhtmlInputListOfValuesSuperBasePeer.InitSubclass",fn.m);fn.k3=function(a){a=U.W(a);xe.aq(a);O.ra(a)};v("AdfDhtmlInputListOfValuesSuperBasePeer.FocusInputElement",fn.k3);fn.z3=function(a){var b=a.getLabel();if(b)return b;b=U.W(a);if(b=b.labels?b.labels[0]:document.querySelector("label[for\x3d'"+U.eE(a)+"']"))return b.textContent;D.i.info("Application hasn't provided label for ",a.e())};v("AdfDhtmlInputListOfValuesSuperBasePeer.GetLabelText",fn.z3);fn.prototype.Xn=function(){B.$()};
v("AdfDhtmlInputListOfValuesSuperBasePeer.prototype.AnnounceAutoComplete",fn.prototype.Xn);z.a("AdfDhtmlInputListOfValuesSuperBasePeer.prototype.AnnounceAutoComplete",{Xn:fn.prototype.Xn});fn.prototype.vq=function(){B.$()};z.a("AdfDhtmlInputListOfValuesSuperBasePeer.prototype.HandleComponentClickOrTouch",{vq:fn.prototype.vq});
fn.prototype.Z=function(a){var b=this.eN;b&&this.d()==a&&(F.c.UJ(this,b),delete this.eN);(b=this.zca)&&D.i.info("Potential callback leak detected - LOV _popupClosedCallback: ",b);fn.f.Z.call(this,a)};z.a("AdfDhtmlInputListOfValuesSuperBasePeer.prototype.ComponentRemoved",{Z:fn.prototype.Z});fn.prototype.xa=function(a,b,d){B.s(d);b=U.W(a);var e="INPUT"==b.tagName;a.getReadOnly()?w.b.yb(b,d):(b.title=d,e?b.value=d:w.b.yb(b,d))};
z.a("AdfDhtmlInputListOfValuesSuperBasePeer.prototype.SetDisplayValue",{xa:fn.prototype.xa});fn.prototype.ko=function(a){var b=a.getSource();if(b instanceof AdfRichTable){a=this.d();for(b=b.getParent();b!=a&&b!=n;){if(b instanceof AdfRichDialog){(new ab(b,ab.fl)).v();break}b=b.getParent()}}};z.a("AdfDhtmlInputListOfValuesSuperBasePeer.prototype.HandleComponentDblClick",{ko:fn.prototype.ko});
fn.prototype.qf=function(a){var b=this.d(),d=a.getSource(),e=b.e()+fn.Woa;if(d.e()==e){a.Nb(b);if(this.Q6=a.Xj()==ab.fl){e=b.e()+fn.JKa;if(e=F.c.j(e)){var f=e.k();f.bind(e);if(!f.AS()){a.cancel();a.dc();return}this.bind(b)}Zb.v(b,l)}else Tf.v(b,Tf.po,l);fn.k3(b);if(a=this.eN)F.c.UJ(this,a),delete this.eN;b.setProperty(fn.Gna,d.getContentHeight(),p,J.rd);b.setProperty(fn.Hna,d.getContentWidth(),p,J.rd)}};z.a("AdfDhtmlInputListOfValuesSuperBasePeer.prototype.HandleComponentDialog",{qf:fn.prototype.qf});
fn.prototype.pa=function(a){var b=this.d(),d=a.ia();if((E.$a==d||E.Df==d)&&b.r(fn.nA))a.cancel(),a.dc(),b.setProperty(fn.nA,p,p,J.Pc);else{if(!a.na()&&E.$a==d){var e=b.e()+fn.Loa,f=a.getSource().e();if(f&&f==e){a.cancel();a.dc();return}}a.dd()==Ta.ue&&(d!=E.Df&&this.ez(b,a.Q()),delete this.cu);fn.f.pa.call(this,a)}};z.a("AdfDhtmlInputListOfValuesSuperBasePeer.prototype.HandleComponentKeyUp",{pa:fn.prototype.pa});
fn.prototype.ez=function(a,b){if(a.getAutoTab&&a.getAutoTab()){var d=a.getMaximumLength();if(!(1>d)){var e=b.value?b.value.length:0;e>=d&&e>this.cu&&this.Qs(b)}}};z.a("AdfDhtmlInputListOfValuesSuperBasePeer.prototype.AutoTab",{ez:fn.prototype.ez});fn.prototype.Qs=function(){B.$()};z.a("AdfDhtmlInputListOfValuesSuperBasePeer.prototype.FocusNextElement",{Qs:fn.prototype.Qs});
fn.prototype.zb=function(a){this.Li(a);var b=this.d(),d=a.ia();if((E.$a==d||E.Df==d)&&b.r(fn.nA))a.cancel(),a.dc();else{if(!a.na()&&E.$a==d&&(b=b.e()+fn.Loa,(d=a.getSource().e())&&d==b)){a.cancel();a.dc();return}a=a.Q();this.cu=a.value?a.value.length:0}};z.a("AdfDhtmlInputListOfValuesSuperBasePeer.prototype.HandleComponentKeyPress",{zb:fn.prototype.zb});
fn.prototype.ba=function(a){this.Li(a);var b=a.ia(),d=this.d();switch(b){case E.$a:if(window.AdfAutoSuggestBehaviorImpl&&ve.Qa(d,this)){a.cancel();a.dc();break}case E.Df:var e=a.Q();if(this.Mz(d,a)){var f;a:{f=U.W(d);if(e==f&&"INPUT"==e.tagName){var g=xe.ly(f),h=e.value;if(h!=g&&0<h.length&&d.getAutoSubmit()){xe.aq(f,h);Sf.v(d,Sf.uja,l);f=l;break a}}f=p}f?(a.cancel(),a.dc(),d.setProperty(fn.nA,l,p,J.Pc),b==E.Df&&(this.hv(),O.Ud(e))):b==E.$a&&this.Yf(d,e)}break;case E.FS:d.getEditMode()==fn.QL&&this.et(d,
a)&&a.cancel()}};z.a("AdfDhtmlInputListOfValuesSuperBasePeer.prototype.HandleComponentKeyDown",{ba:fn.prototype.ba});fn.prototype.et=function(){B.$()};z.a("AdfDhtmlInputListOfValuesSuperBasePeer.prototype.IsCancelBackSpaceKeyEvent",{et:fn.prototype.et});fn.prototype.Mz=function(a,b){var d=U.eE(a);return b.Q().id==d?l:p};z.a("AdfDhtmlInputListOfValuesSuperBasePeer.prototype.IsKeyEventInInput",{Mz:fn.prototype.Mz});
fn.prototype.Yv=function(a){a=a.getSource();var b=this.d(),d=b.e()+fn.SU;a.e()==d&&(fn.ou(b,n),this.Q6==l&&Zb.v(b,l))};z.a("AdfDhtmlInputListOfValuesSuperBasePeer.prototype.HandleComponentPopupClosed",{Yv:fn.prototype.Yv});fn.prototype.qm=function(a){a=a.getSource();var b=this.d(),d=b.e();a==fn.yva(d)&&(this.sm(),fn.ou(b,d),a=this.eN,a||(this.eN=a=this.o(this.rSa)),F.c.DQ(this,a))};z.a("AdfDhtmlInputListOfValuesSuperBasePeer.prototype.HandleComponentPopupOpening",{qm:fn.prototype.qm});
fn.prototype.rSa=function(a){var b=this.d();b==n&&D.i.severe("Unexpected null component! ",a);b=b.e();if(this.ZK(b)){var b=b+fn.Woa,d=F.c.j(b);d&&d.k().MM(b,a.od())}};fn.prototype.ZK=function(a){return(a=fn.yva(a))&&a.Qa()?l:p};z.a("AdfDhtmlInputListOfValuesSuperBasePeer.prototype.IsLovPopupVisible",{ZK:fn.prototype.ZK});fn.prototype.Fq=function(a,b){a||(a=this.d());a&&this.h()&&fn.f.Fq.call(this,a,b)};z.a("AdfDhtmlInputListOfValuesSuperBasePeer.prototype.ShowNoteWindow",{Fq:fn.prototype.Fq});
fn.prototype.tm=function(a){a||(a=this.d());return a&&this.h()?fn.f.tm.call(this,a):p};z.a("AdfDhtmlInputListOfValuesSuperBasePeer.prototype.IsNoteWindowVisible",{tm:fn.prototype.tm});fn.yva=function(a){return F.c.j(a+fn.SU)};fn.ou=function(a,b){a.setProperty(fn.zF,b,p,l)};fn.prototype.CEa=function(a,b){this.xj=a;var d=a+"_afrLovToolbar",e=F.c.j(b);e!=n&&(this.zca||(this.zca=this.o(this.A1a),e.addEventListener(Rb.qo,this.zca)),e.show({align:AdfRichPopup.jK,alignId:d}))};
z.a("AdfDhtmlInputListOfValuesSuperBasePeer.prototype.showToolbarPopup",{CEa:fn.prototype.CEa});fn.prototype.A1a=function(){var a=F.c.j(this.xj);a!=n&&Tf.v(a,Tf.d4,l)};