var EC=I.ea(R,"AdfSingleSelectInputSearchPeer",!1);m("AdfSingleSelectInputSearchPeer",EC);EC.C=function(){r.bb(Gi);this.lS="af_inputSearch.AUTOCOMPLETE_ANNOUNCE_MSG";this.T2a="af_inputSearch.MSG_AUTOCOMPLETE_FAILED";this.S2a="af_inputSearch.MSG_AUTOCOMPLETE_FAILED_DETAIL"};m("AdfSingleSelectInputSearchPeer.InitSubclass",EC.C);EC.prototype.G=function(a,b){EC.h.G.call(this,a,b);this.fpa=new Gi(this)};r.a("AdfSingleSelectInputSearchPeer.prototype.InitDomElement",{G:EC.prototype.G});
EC.prototype.Cqa=function(a){var b=this.f();a.Aa()?b.K(R.gza)&&R.jda(b,null):(a=a.lra())?(this.HT(b,a),a=A.c,a.Zj(a.H().Z(EC.lS,O.uJ(b),O.mC(b)))):Ai(b,Ba.hg,EC.T2a,EC.S2a);this.ye().clear()};r.a("AdfSingleSelectInputSearchPeer.prototype.delayedHandleAutoCompletingEvent",{Cqa:EC.prototype.Cqa});EC.prototype.nd=function(a,b,d){EC.h.nd.call(this,a,b,d);this.rR(a)};r.a("AdfSingleSelectInputSearchPeer.prototype.RunValidation",{nd:EC.prototype.nd});
EC.prototype.cc=function(a,b){if(b)if("string"===typeof b){var d;d=(d=this.ye().Qp())&&1==d.length?d.Hp(0).key:void 0;eb.F(a,b,d);this.AQa=!0}else u.Mb(b),EC.h.cc.call(this,a,b);else this.HT(a,null)};r.a("AdfSingleSelectInputSearchPeer.prototype.Validate",{cc:EC.prototype.cc});EC.prototype.Hf=function(a,b){var d=[],e=O.mC(a,b).trim();e&&d.push(e);return d};r.a("AdfSingleSelectInputSearchPeer.prototype.GetDisplayValue",{Hf:EC.prototype.Hf});EC.prototype.lD=function(){EC.h.lD.call(this);this.AQa=null};
r.a("AdfSingleSelectInputSearchPeer.prototype.ClearTemporaryStorage",{lD:EC.prototype.lD});EC.prototype.Xv=function(a){return 0<a.length?a[0]:""};r.a("AdfSingleSelectInputSearchPeer.prototype.GetCombinedDisplayValue",{Xv:EC.prototype.Xv});EC.prototype.fw=function(a,b){return(a.length?a[0]:null)==(b.length?b[0]:null)?E.wD:a};r.a("AdfSingleSelectInputSearchPeer.prototype.GetRealNewValues",{fw:EC.prototype.fw});EC.prototype.Io=function(){var a=this.ye().Qp();a||(a=this.$Q());return a};
r.a("AdfSingleSelectInputSearchPeer.prototype.GetSuggestionMapContainingSelections",{Io:EC.prototype.Io});EC.prototype.ye=function(){return this.fpa};r.a("AdfSingleSelectInputSearchPeer.prototype.GetSuggestionsPanel",{ye:EC.prototype.ye});EC.prototype.xt=function(){u.assert(!1,"not expected to be invoked on single select inputSearch")};r.a("AdfSingleSelectInputSearchPeer.prototype.ShowSelectionsPopup",{xt:EC.prototype.xt});EC.prototype.qw=function(){return this.AQa};
r.a("AdfSingleSelectInputSearchPeer.prototype.IsUnderAutocompletion",{qw:EC.prototype.qw});EC.prototype.yw=function(a,b,d){var e=bf.ls(d);if(""===e&&(d=R.ft(a),0!==d.length)){e=d[0];this.Io().get(e)&&this.eJ(a,b,d);return}this.Ba(a,b,[e])};r.a("AdfSingleSelectInputSearchPeer.prototype.RestoreSelectionOnEscape",{yw:EC.prototype.yw});EC.prototype.Wz=function(a,b,d){this.Hv(b,"",d);EC.h.Wz.call(this,a,b,d);this.Mq(a)||this.Hv(null)};
r.a("AdfSingleSelectInputSearchPeer.prototype.SetDisplayValueOnPrefetch",{Wz:EC.prototype.Wz});EC.prototype.Rq=function(){u.assert(!1,"not expected to be invoked on single select inputSearch")};r.a("AdfSingleSelectInputSearchPeer.prototype.RenderSelections",{Rq:EC.prototype.Rq});EC.prototype.To=function(){};r.a("AdfSingleSelectInputSearchPeer.prototype.ToggleDisplayValueToFiltering",{To:EC.prototype.To});
EC.prototype.Vq=function(a,b,d,e,f){e.get(d[0])&&(this.Hv(e,"",f),EC.h.Vq.call(this,a,b,d,e,f),this.Hv(null))};r.a("AdfSingleSelectInputSearchPeer.prototype.UpdateDisplayValueAndSelection",{Vq:EC.prototype.Vq});EC.prototype.HT=function(a,b){var d=R.ft(a),e=null===b?[]:[b];(d.length?d[0]:null)!=b?EC.h.cc.call(this,a,e):(this.eJ(a,this.i(),e),A.c.Oe(a.g()));this.rR(a)};r.a("AdfSingleSelectInputSearchPeer.prototype.__setComponentValue",{HT:EC.prototype.HT});
EC.Oub=function(a,b,d,e){return""==O.mC(a,b)?!0:!!d.get(e[0])};