var R=I.ea(bf,"AdfDhtmlInputSearchPeer",!1);m("AdfDhtmlInputSearchPeer",R);R.C=function(){r.bb(AdfRichPopup);r.bb($a);r.bb(oi);r.bb(ng);r.bb(fg);r.bb(og);r.bb(Hi);r.bb(pi);r.bb(Ki);r.bb(eg);I.ra(this,D.wb,D.Bc,D.Ad,D.Pc);this.gza="_selection";this.H2="_valJsType";I.hc(this,AdfRichInputSearch.LABEL);I.sb(this,AdfRichInputSearch.LABEL,this.H2);this.l_a="data-afr-name";this.qT="suggestions-popup";this.Lt="TABLE";this.k8a="MULTIPLE";this.ir="default";this.VE="p_AFValueUpdating";this.jr=300;this.S5a="~`!@#$%^\x26*()_+{}|:;\"'\x3c,\x3e.?/[\\]\\-\\\\"};
m("AdfDhtmlInputSearchPeer.InitSubclass",R.C);R.prototype.G=function(a,b){this.tb(a,b);R.h.G.call(this,a,b);this.epa=new Hi(this);this.ppa=new Ki(this);if(!ui(a)){var d=O.da(a,b);bf.wl(d);R.qmb(a,d)}};r.a("AdfDhtmlInputSearchPeer.prototype.InitDomElement",{G:R.prototype.G});R.prototype.lm=function(a,b){b||(b=[]);u.Mb(a);u.Mb(b);if(b==a)return!0;if(b.length!=a.length)return!1;for(var d=0,e=b.length;d<e;d++)if(-1==a.indexOf(b[d]))return!1;return!0};
r.a("AdfDhtmlInputSearchPeer.prototype.compareValues",{lm:R.prototype.lm});R.prototype.NO=function(a){return this.Hf(a,this.i())};r.a("AdfDhtmlInputSearchPeer.prototype.getDisplayedValue",{NO:R.prototype.NO});R.prototype.yy=function(a){a=ti(a,AdfRichSearchSection);for(var b={},d=0,e=a.length;d<e;d++){var f=a[d];b[f.getType()]=f}return b};r.a("AdfDhtmlInputSearchPeer.prototype.getSearchSections",{yy:R.prototype.yy});R.prototype.tP=function(){var a=this.ye().Qp();return a&&a.Mu()};
r.a("AdfDhtmlInputSearchPeer.prototype.getSuggestions",{tP:R.prototype.tP});R.prototype.oi=function(a,b){u.Mb(b);var d=a.getConverter(),e=!(null==d||d instanceof ib),f=e&&d.ita&&d.ita();e&&!f?b=R.ecb(a,d,b):((e=this.Io())||(e=new Map),b=R.Pbb(a,e,b),f&&(b=nq(this,a,this.i(),d,b)));return b};r.a("AdfDhtmlInputSearchPeer.prototype.getConvertedObject",{oi:R.prototype.oi});R.prototype.Af=function(a,b){u.Mb(b);if("Number"==R.M9(a))for(var d=0,e=b.length;d<e;d++)b[d]=Number(b[d]);return b};
r.a("AdfDhtmlInputSearchPeer.prototype.getConvertedValue",{Af:R.prototype.Af});R.prototype.Ff=function(a,b,d,e){d?Array.prototype.isPrototypeOf(d)||(d=[d]):d=[];u.Mb(e);var f=this.Io(d);R.SIa(a,d,f);var g=this.fw(d,e);og.add(a,g,f);R.h.Ff.call(this,a,b,d,e);b=R.vKa(a,b);e=Ci(a);f=0;for(g=d.length;f<g;f++){var h=b[f];h||(h=R.Abb(a,e));h.value=d[f]}for(g=b.length;f<g;f++)e.removeChild(b[f])};r.a("AdfDhtmlInputSearchPeer.prototype.ComponentValueChanged",{Ff:R.prototype.Ff});R.prototype.fd=function(){};
r.a("AdfDhtmlInputSearchPeer.prototype.LazyInitialize",{fd:R.prototype.fd});R.prototype.vk=function(a,b){var d=R.vKa(a,b),e=[];if(d)for(var f=0;f<d.length;f++){var g=d[f].value;g&&0<g.length&&e.push(g)}return this.Af(a,e)};r.a("AdfDhtmlInputSearchPeer.prototype.GetComponentValue",{vk:R.prototype.vk});R.prototype.sJ=function(a,b,d){var e=this.Hf(a,b,!0);return nq(this,a,b,d,e)};r.a("AdfDhtmlInputSearchPeer.prototype.GetFormattedDisplayValue",{sJ:R.prototype.sJ});R.prototype.Oa=function(){return ii.jd()};
r.a("AdfDhtmlInputSearchPeer.prototype.GetInlineEditor",{Oa:R.prototype.Oa});R.prototype.at=function(){return E.wD};r.a("AdfDhtmlInputSearchPeer.prototype.GetNullDefault",{at:R.prototype.at});R.prototype.Wa=function(a,b){return this.vk(a,b)};r.a("AdfDhtmlInputSearchPeer.prototype.GetSubmittedValue",{Wa:R.prototype.Wa});R.prototype.Xv=function(){u.fa()};r.a("AdfDhtmlInputSearchPeer.prototype.GetCombinedDisplayValue",{Xv:R.prototype.Xv});
R.prototype.Ba=function(a,b,d){u.Mb(d);d=this.Xv(d);u.J(d);this.Gi=d;a=O.da(a,b);"INPUT"==a.tagName?(a.value=d,bf.wl(a,a.value)):q.b.bc(a,d)};r.a("AdfDhtmlInputSearchPeer.prototype.SetDisplayValue",{Ba:R.prototype.Ba});R.prototype.Xq=function(){return!0};r.a("AdfDhtmlInputSearchPeer.prototype.VetoBlurValidation",{Xq:R.prototype.Xq});R.prototype.nQ=function(a,b){var d=this.i();O.da(a,d).value=b;oq(this,a)};r.a("AdfDhtmlInputSearchPeer.prototype.setTextAndShowSuggestions",{nQ:R.prototype.nQ});
R.ft=function(a){return a.K(AdfUIValue.VALUE)};m("AdfDhtmlInputSearchPeer.GetValue",R.ft);R.prototype.eJ=function(a,b,d){d||(d=R.ft(a));d=this.oi(a,d);this.Ba(a,b,d)};r.a("AdfDhtmlInputSearchPeer.prototype.DeriveAndSetDisplayValue",{eJ:R.prototype.eJ});
function nq(a,b,d,e,f){a=a.ti(b,d);try{d=[];for(var g=0,h=f.length;g<h;g++)d.push(e.getAsString(f[g],a));return d}catch(l){v.l.fv(l,"Invoking TrClientConverter.getAsString on component (id\x3d'"+b.g()+"') resulted in an unexpected exception. The component's display value will not be formatted.")}return f}R.Pbb=function(a,b,d){if(!b||0==b.size)return d;for(var e=[],f=0,g=d.length;f<g;f++){var h=d[f];if(h){var l=b.get(h),h=l?R.xeb(a,l):String(h);e.push(h)}}return e};
R.ecb=function(a,b,d){var e=[];a=a.K("label");for(var f=0,g=d.length;f<g;f++){var h=d[f];h&&(h=b.getAsString(h,a))&&e.push(h)}return e};R.xeb=function(a,b){if(b){var d="";b=b.data;for(var e=a.getDisplayAttributes(),f=0,g=e.length;f<g;f++){var h=b[e[f]];null!=h&&(d+=h+" ")}return d.trim()}return null};R.SIa=function(a,b,d){if(d){for(var e=[],f=0;f<b.length;f++){var g=d.get(b[f]);g&&e.push(g)}R.jda(a,e)}};
R.prototype.H$=function(a,b){this.OM=null;if(this.Mq(a)){this.pG="";this.Hv(null);var d=O.da(a,this.i());this.Yz(a,bf.ls(d)!=d.value)?"filtering":"initial"}else a:if(b.getDataUrl()){d=ui(a);if(b.getType()==R.ir){var e=R.ft(a),f=this.i(),g=O.mC(a,f);if(0!==e.length&&0===g.length)C.w(f,R.VE);else if(d)break a}else if(d)break a;qg.Xqa(a,b,!0)}};r.a("AdfDhtmlInputSearchPeer.prototype.prefetchOrUpdate",{H$:R.prototype.H$});R.M9=function(a){return a.K(R.H2)};
m("AdfDhtmlInputSearchPeer.getValueAttributeType",R.M9);R.K$=function(a,b){var d=b&&b.Hp(0)&&b.Hp(0).key;if(null!=d){var e=null;d.constructor==Number&&(e="Number");e?a.setProperty(R.H2,e,!1,G.ld):a.setProperty(R.H2,"String",!1,G.ud)}};m("AdfDhtmlInputSearchPeer.propagateValueAttributeDataType",R.K$);R.prototype.Vwa=function(a,b){var d=this.vk(a,b);a.b$(AdfUIValue.VALUE,d)};r.a("AdfDhtmlInputSearchPeer.prototype.Component_valJsTypeChanged",{Vwa:R.prototype.Vwa});
R.prototype.M=function(a){R.h.M.call(this,a);var b=this.f();if(a.ec()&&!ui(b)){b.g();a=a.X();var d=Ci(b),e=O.da(b,this.i());a==Di(b)?this.xt(b,e):a==e||a==d||a.parentElement==d?this.pw(b)?(this.Yz(b,"initial"),b.focus()):this.Mq(b)||(e.select(),b.focus(),this.Yz(b,"initial")):this.Mq(b)&&this.ye().OH(a)}};r.a("AdfDhtmlInputSearchPeer.prototype.HandleComponentClick",{M:R.prototype.M});
R.prototype.ma=function(a){var b=this.f(),d=O.da(b,this.i());this.rma||(this.rma=!0,this.Gi=d.value.trim());this.Mq(b)&&(this.ppa.PH(a,d),this.ye().PH(a,d))};r.a("AdfDhtmlInputSearchPeer.prototype.HandleComponentKeyDown",{ma:R.prototype.ma});
R.prototype.za=function(a){this.rma=null;var b=this.f(),d=this.i(),e=O.da(b,this.i());a=a.na();var f=this.Mq(b);if(f)a==w.Ih&&(this.yw(b,d,e),this.rR(b));else{if(a==w.Ra){this.Yz(b,"initial");return}var d=A.c.Ka().La(),g=e.selectionEnd==e.value.length;if((d&&a==w.ub||!d&&a==w.vb)&&g){this.xt(b,e);return}}if(d=a!=w.tf&&16!=a)d=e.value.trim(),d!=this.Gi?(this.Gi=d,d=!0):d=!1;d&&(f||this.To(e,a),oq(this,b))};r.a("AdfDhtmlInputSearchPeer.prototype.HandleComponentKeyUp",{za:R.prototype.za});
R.prototype.Ta=function(a,b){var d=this.f();b||(b=O.da(d,this.i()));a.X()==b&&bf.wl(b);R.h.Ta.call(this,a)};r.a("AdfDhtmlInputSearchPeer.prototype.HandleComponentFocus",{Ta:R.prototype.Ta});R.prototype.Ggb=function(a){var b=O.da(a,this.i());this.nd(a,b,!0);b.parentElement.setAttribute("aria-expanded","false");this.ppa.detach(a);this.epa.detach(a,b,this.ye(),this.qw());this.lD()};R.prototype.Hgb=function(a){Ci(a).setAttribute("aria-expanded","true")};R.jda=function(a,b){a.setProperty(R.gza,b,!1,G.ld)};
m("AdfDhtmlInputSearchPeer.SetSelectionProp",R.jda);R.prototype.lD=function(){this.cM&&(A.c.ic(this.cM),this.cM=null);this.Sx&&(A.c.ic(this.Sx),this.Sx=null);this.pG=this.rma=null;this.Hv(null)};r.a("AdfDhtmlInputSearchPeer.prototype.ClearTemporaryStorage",{lD:R.prototype.lD});R.prototype.tD=function(a,b){R.K$(a,b)};r.a("AdfDhtmlInputSearchPeer.prototype.DerivePropsFromPrefSuggestions",{tD:R.prototype.tD});R.prototype.fw=function(){u.fa()};
r.a("AdfDhtmlInputSearchPeer.prototype.GetRealNewValues",{fw:R.prototype.fw});R.prototype.Io=function(){u.fa()};r.a("AdfDhtmlInputSearchPeer.prototype.GetSuggestionMapContainingSelections",{Io:R.prototype.Io});R.prototype.ye=function(){u.fa()};r.a("AdfDhtmlInputSearchPeer.prototype.GetSuggestionsPanel",{ye:R.prototype.ye});R.prototype.xt=function(){u.fa()};r.a("AdfDhtmlInputSearchPeer.prototype.ShowSelectionsPopup",{xt:R.prototype.xt});R.prototype.qw=function(){u.fa()};
r.a("AdfDhtmlInputSearchPeer.prototype.IsUnderAutocompletion",{qw:R.prototype.qw});R.prototype.yw=function(){u.fa()};r.a("AdfDhtmlInputSearchPeer.prototype.RestoreSelectionOnEscape",{yw:R.prototype.yw});R.prototype.Rq=function(){u.fa()};r.a("AdfDhtmlInputSearchPeer.prototype.RenderSelections",{Rq:R.prototype.Rq});R.prototype.To=function(a,b){this.Gi=this.pG="";if(b===w.uz||b===w.$I)this.pG=null;bf.wl(a,"")};r.a("AdfDhtmlInputSearchPeer.prototype.ToggleDisplayValueToFiltering",{To:R.prototype.To});
R.prototype.Vq=function(a,b,d){var e=this.Io();R.SIa(a,d,e);this.eJ(a,b,d)};r.a("AdfDhtmlInputSearchPeer.prototype.UpdateDisplayValueAndSelection",{Vq:R.prototype.Vq});R.kGa=function(a){var b=a[$a.qt];return!a.wPa||"GET"==b.method&&null==b.qUa};function pq(a,b){var d=R.ir,e=a.yy()[d];e?qg.Xqa(a,e,!1,b):v.l.severe("Can't locate the searchSection component of type ",d)}
R.prototype.S2=function(a,b,d,e){e||(d.dma=!!og.get(a));d.Gi=O.da(a,this.i()).value;qq(this,a)||(e={},e.Cpb=a.getFilterAttributes(),e.ppb=a.getCriteria(),e.Bua=d.fma&&d.Gi?fg.e3(d.Gi):null,d.wPa=e,d[$a.qt]=yg.Qqa(b,e));return d};r.a("AdfDhtmlInputSearchPeer.prototype.__getFetchOptions",{S2:R.prototype.S2});
R.prototype.Lha=function(a,b,d,e,f){b.getType()==R.ir?(b=pi.mua(a),this.Q2(a,d,e,f,b)):this.Mq(a)&&0!=d.length&&(e=O.da(a,this.i()),f=bf.ls(e),f&&f!==e.value||(e={zZ:!0},e.source=b,this.ye().qc(a,d,e)))};r.a("AdfDhtmlInputSearchPeer.prototype.__sequencedCallback",{Lha:R.prototype.Lha});
R.prototype.Q2=function(a,b,d,e,f){var g=!1;R.kGa(e)&&(g=this.OM=d);var h=this.i();e.dma&&C.O(h,R.VE);if(this.Mq(a)){var l=e.wPa;this.Hv(b,l&&l.Bua?l.Bua:"",d);if(e.Gi!==O.da(a,h).value||e.$hb)rq(this,a,e.fma||!d);else if(e.dma)this.ye().update(a,b,g);else if(!f){h={};if(e.fma){if(this.pG==e.Gi&&!Hi.Mta(a))return;this.pG=e.Gi;h.yaa=!0}this.ye().qc(a,b,h)}}else e.dma?(e=g,og.ETa(a)||(d=a.getValue(),null!=d&&0!=d.length&&this.Vq(a,h,d,b,e))):v.l.info("Popup dismissed while fetching the suggestions for InputSearch with client id ",
a.g())};r.a("AdfDhtmlInputSearchPeer.prototype.__fetchComplete",{Q2:R.prototype.Q2});R.prototype.R2=function(a){C.O(this.i(),R.VE);this.ye().Qp()||this.ye().qc(a,new bg([]))};r.a("AdfDhtmlInputSearchPeer.prototype.__fetchFailed",{R2:R.prototype.R2});R.prototype.fE=function(a,b,d,e){this.OM=d;this.Wz(a,b,d,e)};r.a("AdfDhtmlInputSearchPeer.prototype.PrefetchComplete",{fE:R.prototype.fE});R.prototype.Dha=function(){C.O(this.i(),R.VE)};r.a("AdfDhtmlInputSearchPeer.prototype.__prefetchFailed",{Dha:R.prototype.Dha});
R.prototype.Wz=function(a,b,d,e){og.update(a,d,b);b=I.Fb(a);""!==O.mC(a,b)?C.O(b,R.VE):e||(C.O(b,R.VE),this.Mq(a)||""==O.mC(a,b)&&this.eJ(a,b))};r.a("AdfDhtmlInputSearchPeer.prototype.SetDisplayValueOnPrefetch",{Wz:R.prototype.Wz});R.prototype.Hv=function(a,b,d){a?(void 0===d&&(d=!0),this.RB||(this.RB=new fg(3)),this.RB.put(b,a,d)):this.RB=null};r.a("AdfDhtmlInputSearchPeer.prototype.CacheServerSuggestionsList",{Hv:R.prototype.Hv});R.prototype.$Q=function(a){if(this.RB&&(a=this.RB.get(a)))return a[fg.WR]};
r.a("AdfDhtmlInputSearchPeer.prototype.GetCachedServerSuggestionsList",{$Q:R.prototype.$Q});R.u$a=function(a,b,d){var e=a.getFilterAttributes(),f=b.split(" "),g=b.split(" ").sort(function(a,b){return a.length-b.length});return d.filter(function(a){return R.Whb(a,g,e,f)})};
R.Whb=function(a,b,d,e){b=b.slice();for(var f=d.length-1;0<=f;f--){var g=a[d[f]];if(null!==g&&void 0!==g)for(var g=g+"",h=b.length-1;0<=h;h--){var l=b[h],n=R.VPa(g,l,0);if(0<=n){b.splice(h,1);0<n&&R.ZIa(g,n+1,l,b,e);break}}}return 0==b.length};R.ZIa=function(a,b,d,e,f){d=f.indexOf(d)+1;if(!(d>=f.length)&&(d=f[d],b=R.VPa(a,d,b),0<=b)){var g=e.indexOf(d);-1!=g&&(e.splice(g,1),0<b&&R.ZIa(a,b+1,d,e,f))}};
R.VPa=function(a,b,d){if(!(a.length-d<b.length)){var e,f;e=0;for(f=b.length;e<f;e++)if(b.charAt(e).toLocaleLowerCase()!=a.charAt(e+d).toLocaleLowerCase())return-1;return" "==a.charAt(f+d)?f+d:0}};R.geb=function(a){var b=R.S5a,d=a.charAt(0);"\\"==d&&(d=a.charAt(1));switch(d){case "\\":d="\\\\";break;case "-":d="\\-";break;case "]":d="\\]"}b.indexOf(d)&&(b=b.replace(d,""));return"(?:^|[\\s"+b+"])+(?\x3d[^\\s"+b+"])"};R.bKa=function(a){for(var b=[],d=0,e=a.length;d<e;d++)b.push(R.geb(a[d]));return b};
R.meb=function(a){a=ri(a);a=Bi(a);for(var b=R.bKa(a),d="^",e=0,f=a.length;e<f;e++){d+="(?\x3d[\\s\\S]*?"+b[e]+"(\\w*?)(";if(0!=e){for(var d=d+"?!",g=1;g<=e;g++)d+="\\"+2*g+"$|";d=d.substr(0,d.length-1)+")(";d+=a[e]+"(?:(?\x3d[\\s\\S]*?"+b[e]+"(?:";for(g=1;g<=e;g++)d+="\\"+2*g+"$|";d=d.substr(0,d.length-1)+"))|(?![\\s\\S]*?"+b[e]+a[e]+"))"}else d+=a[e]+"(?![\\s\\S]*?"+b[e]+a[e]+")";d+="[\\s\\S]*))"}a=new RegExp(d,"gi");v.l.u8("The regex used for filtering is ",a);return a};
R.ifb=function(a){a=ri(a);a=Bi(a);for(var b=R.bKa(a),d="^",e=0,f=a.length;e<f;e++){d=d+"(?\x3d[\\s\\S]*?"+b[e]+"(";if(0!=e){for(var d=d+"?!",g=1;g<=e;g++)d+="\\"+g+"$|";d=d.substr(0,d.length-1)+")("}d+=a[e]+"[\\s\\S]*))"}a=new RegExp(d,"gi");v.l.u8("The regex used for filtering is ",a);return a};R.mIa=function(a,b){for(var d="",e=0,f=a.length;e<f;e++){var g=b[a[e]];g&&(d+=g+" ")}return d};
R.pbb=function(a,b,d){var e=R.meb(b),f=a.getFilterAttributes(),g=Array(b.split(" ").length+1);a=0;for(var h=g.length;a<h;a++)g[a]=[];d.forEach(function(a,d,h,y){h=R.mIa(f,a);a=e.exec(h);unicode_regex=/[^\u0000-\u00ff]/;if(unicode_regex.test(b))d=0,-1!=h.indexOf(b)&&g[d].push(y);else{if(null!=a){d=0;h=1;for(var z=a.length;h<z;h+=2)""==a[h]&&d++;g[d].push(y)}e.lastIndex=0}});h=[];for(a=g.length-1;0<=a;a--)h=h.concat(g[a]);return new bg(h,d)};
R.enb=function(a,b,d){var e=R.ifb(b),f=a.getFilterAttributes();return d.filter(function(a){a=e.test(R.mIa(f,a));e.lastIndex=0;return a})};function oq(a,b){var d=A.c;a.cM?d.Ds(a.cM,70):a.cM=d.ta(a,a.ndb,b,70,{isSynchronized:!0});a.Sx&&(A.c.ic(a.Sx),a.Sx=null)}R.prototype.ndb=function(a){this.cM=null;rq(this,a)};
function rq(a,b,d){var e=O.da(b,a.i()).value.trim();a.Gi=e;if(a.pG!=e||Hi.Mta(b)){var f={};f.yaa=!!e;d?f.zZ=!0:a.Yz(b,"filtering");d=a.$Q(e);if(!d&&(a.RB||(a.RB=new fg(3)),d=(d=a.RB.pra(e))?d[fg.WR]:void 0,f.zZ=!0,!d))return;var g=b.getCriteria();e&&(d=g==AdfRichInputSearch.nwa?R.pbb(b,e,d):g==AdfRichInputSearch.vba?R.u$a(b,e,d):R.enb(b,e,d));a.ye().qc(b,d,f);a.pG=e}}
function qq(a,b){u.assert(void 0!==a.OM,"This method should not be invoked before prefetchOrUpdate is invoked");null===a.OM&&(a.OM=!b.yy()[R.ir].getFilterParameters());return a.OM}R.Abb=function(a,b){var d=document.createElement("input");d.setAttribute("type","hidden");d.setAttribute("name",a.g());b.appendChild(d);return d};R.vKa=function(a,b){b||(b=a.i());var d=a.getReadOnly()?R.l_a:"name";return b.querySelectorAll("["+d+"\x3d'"+a.g()+"']")};
R.qmb=function(a,b){var d=O.Go(b);d?d.setAttribute("id",si(a)):v.l.severe("Label not defined or for attribute not set for inputSearch ",b.id)};R.prototype.pw=function(a){return(a=this.ZE(a))&&a.wMa};r.a("AdfDhtmlInputSearchPeer.prototype.IsSelectionsShown",{pw:R.prototype.pw});R.prototype.ZE=function(a){return this.Xp(a,R.qT)};r.a("AdfDhtmlInputSearchPeer.prototype.__getSuggestionPopupWindow",{ZE:R.prototype.ZE});R.prototype.Mq=function(a){return this.Za(a,R.qT)};
r.a("AdfDhtmlInputSearchPeer.prototype.IsSuggestionPopupVisible",{Mq:R.prototype.Mq});R.prototype.rR=function(a){this.Jb(a,R.qT)};r.a("AdfDhtmlInputSearchPeer.prototype.HideSuggestionPopup",{rR:R.prototype.rR});
R.prototype.Yz=function(a,b){var d=O.da(a,this.i()),e=this.ZE(a);if(e)e.wMa=!1,this.epa.reset(a,d,this.ye());else{"filtering"!=b&&this.To(d);var e=a.g(),e=I.la(e,R.qT),f=document.getElementById(e);f||(f=document.createElement("div"),f.setAttribute("id",e),a.getStyleClass()&&f.setAttribute("class",a.getStyleClass()));e=f;this.ppa.lH(a,e);this.epa.lH(a,e);var f=a.g(),g={type:"menu",autodismiss:"autodismissMenu",closeOnEscape:!0};g.closeHandler=this.D(this.Ggb);g.closeHandlerParam=a;g.openedHandler=
this.D(this.Hgb);g.openedHandlerParam=a;g[AdfRichPopup.Jf]=O.zD(a);g[AdfRichPopup.Ed]=AdfRichPopup.qf;g[AdfRichPopup.cg]=f;g.animate=AdfRichPopup.vq;g.focus=!1;window.Zi&&q.b instanceof Ge&&this.jv();g.componentEventsEnabled=!0;this.He(a,e,g,R.qT)}"selections"==b?(this.ZE(a).wMa=!0,this.Rq(a)):"initial"==b?(A.c.Cc(!0,!0,!0,"inputSearch: user click: show suggestions: id\x3d",a.g()),d=og.get(a),e=ti(a,AdfRichSearchSection),d&&(f=pg(a),g={fwb:!0},g.zZ=1<e.length,g.source=f,this.ye().qc(a,d,g),f.getDontCache()&&
C.w(this.i(),R.VE)),(new qg(e)).Cua()):(d=d.value.trim(),A.c.Cc(!0,!0,!0,"inputSearch: user click: filter values: id\x3d",a.g(),", terms\x3d",d),this.$Q(d)||(qq(this,a)?pq(a,{$hb:!0}):(d=R.dfb(d.length),e=A.c,this.Sx?e.Ds(this.Sx,d):this.Sx=e.ta(this,this.kmb,a,d,{isSynchronized:!0}))))};r.a("AdfDhtmlInputSearchPeer.prototype.ShowSuggestionsPopup",{Yz:R.prototype.Yz});R.prototype.kmb=function(a){this.Sx=null;pq(a,{fma:!0})};
R.dfb=function(a){switch(a){case 0:return 500;case 1:return 1E3;case 2:return 700;case 3:return 500;default:return 300}};