var R=I.ea($e,"AdfDhtmlInputSearchPeer",!1);m("AdfDhtmlInputSearchPeer",R);R.C=function(){r.bb(AdfRichPopup);r.bb($a);r.bb(ii);r.bb(lg);r.bb(dg);r.bb(mg);r.bb(Fi);r.bb(ji);r.bb(Ii);r.bb(cg);I.ra(this,D.wb,D.Bc,D.Ad,D.Oc);this.cza="_selection";this.H2="_valJsType";I.hc(this,AdfRichInputSearch.LABEL);I.sb(this,AdfRichInputSearch.LABEL,this.H2);this.g_a="data-afr-name";this.qT="suggestions-popup";this.Kt="TABLE";this.h8a="MULTIPLE";this.hr="default";this.VE="p_AFValueUpdating";this.ir=300;this.P5a="~`!@#$%^\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.apa=new Fi(this);this.lpa=new Ii(this);if(!si(a)){var d=O.da(a,b);$e.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.xy=function(a){a=ri(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",{xy:R.prototype.xy});R.prototype.tP=function(){var a=this.ye().Pp();return a&&a.Lu()};
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.fta&&d.fta();e&&!f?b=R.dcb(a,d,b):((e=this.Ho())||(e=new Map),b=R.Obb(a,e,b),f&&(b=lq(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.L9(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.Ho(d);R.NIa(a,d,f);var g=this.ew(d,e);mg.add(a,g,f);R.h.Ff.call(this,a,b,d,e);b=R.qKa(a,b);e=yi(a);f=0;for(g=d.length;f<g;f++){var h=b[f];h||(h=R.zbb(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.qKa(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 lq(this,a,b,d,e)};r.a("AdfDhtmlInputSearchPeer.prototype.GetFormattedDisplayValue",{sJ:R.prototype.sJ});R.prototype.Oa=function(){return gi.jd()};
r.a("AdfDhtmlInputSearchPeer.prototype.GetInlineEditor",{Oa:R.prototype.Oa});R.prototype.$s=function(){return E.wD};r.a("AdfDhtmlInputSearchPeer.prototype.GetNullDefault",{$s:R.prototype.$s});R.prototype.Wa=function(a,b){return this.vk(a,b)};r.a("AdfDhtmlInputSearchPeer.prototype.GetSubmittedValue",{Wa:R.prototype.Wa});R.prototype.Wv=function(){u.fa()};r.a("AdfDhtmlInputSearchPeer.prototype.GetCombinedDisplayValue",{Wv:R.prototype.Wv});
R.prototype.Ba=function(a,b,d){u.Mb(d);d=this.Wv(d);u.J(d);this.Fi=d;a=O.da(a,b);"INPUT"==a.tagName?(a.value=d,$e.wl(a,a.value)):q.b.bc(a,d)};r.a("AdfDhtmlInputSearchPeer.prototype.SetDisplayValue",{Ba:R.prototype.Ba});R.prototype.Wq=function(){return!0};r.a("AdfDhtmlInputSearchPeer.prototype.VetoBlurValidation",{Wq:R.prototype.Wq});R.prototype.nQ=function(a,b){var d=this.i();O.da(a,d).value=b;mq(this,a)};r.a("AdfDhtmlInputSearchPeer.prototype.setTextAndShowSuggestions",{nQ:R.prototype.nQ});
R.et=function(a){return a.K(AdfUIValue.VALUE)};m("AdfDhtmlInputSearchPeer.GetValue",R.et);R.prototype.eJ=function(a,b,d){d||(d=R.et(a));d=this.oi(a,d);this.Ba(a,b,d)};r.a("AdfDhtmlInputSearchPeer.prototype.DeriveAndSetDisplayValue",{eJ:R.prototype.eJ});
function lq(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.dv(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.Obb=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.web(a,l):String(h);e.push(h)}}return e};
R.dcb=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.web=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.NIa=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.hda(a,e)}};
R.prototype.G$=function(a,b){this.OM=null;if(this.Lq(a)){this.pG="";this.Gv(null);var d=O.da(a,this.i());this.Yz(a,$e.ks(d)!=d.value)?"filtering":"initial"}else a:if(b.getDataUrl()){d=si(a);if(b.getType()==R.hr){var e=R.et(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;og.Tqa(a,b,!0)}};r.a("AdfDhtmlInputSearchPeer.prototype.prefetchOrUpdate",{G$:R.prototype.G$});R.L9=function(a){return a.K(R.H2)};
m("AdfDhtmlInputSearchPeer.getValueAttributeType",R.L9);R.J$=function(a,b){var d=b&&b.Gp(0)&&b.Gp(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.J$);R.prototype.Rwa=function(a,b){var d=this.vk(a,b);a.a$(AdfUIValue.VALUE,d)};r.a("AdfDhtmlInputSearchPeer.prototype.Component_valJsTypeChanged",{Rwa:R.prototype.Rwa});
R.prototype.M=function(a){R.h.M.call(this,a);var b=this.f();if(a.ec()&&!si(b)){b.g();a=a.X();var d=yi(b),e=O.da(b,this.i());a==Bi(b)?this.wt(b,e):a==e||a==d||a.parentElement==d?this.ow(b)?(this.Yz(b,"initial"),b.focus()):this.Lq(b)||(e.select(),b.focus(),this.Yz(b,"initial")):this.Lq(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.oma||(this.oma=!0,this.Fi=d.value.trim());this.Lq(b)&&(this.lpa.PH(a,d),this.ye().PH(a,d))};r.a("AdfDhtmlInputSearchPeer.prototype.HandleComponentKeyDown",{ma:R.prototype.ma});
R.prototype.za=function(a){this.oma=null;var b=this.f(),d=this.i(),e=O.da(b,this.i());a=a.na();var f=this.Lq(b);if(f)a==w.Ih&&(this.xw(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.wt(b,e);return}}if(d=a!=w.tf&&16!=a)d=e.value.trim(),d!=this.Fi?(this.Fi=d,d=!0):d=!1;d&&(f||this.So(e,a),mq(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&&$e.wl(b);R.h.Ta.call(this,a)};r.a("AdfDhtmlInputSearchPeer.prototype.HandleComponentFocus",{Ta:R.prototype.Ta});R.prototype.Fgb=function(a){var b=O.da(a,this.i());this.nd(a,b,!0);b.parentElement.setAttribute("aria-expanded","false");this.lpa.detach(a);this.apa.detach(a,b,this.ye(),this.pw());this.lD()};R.prototype.Ggb=function(a){yi(a).setAttribute("aria-expanded","true")};R.hda=function(a,b){a.setProperty(R.cza,b,!1,G.ld)};
m("AdfDhtmlInputSearchPeer.SetSelectionProp",R.hda);R.prototype.lD=function(){this.cM&&(A.c.ic(this.cM),this.cM=null);this.Rx&&(A.c.ic(this.Rx),this.Rx=null);this.pG=this.oma=null;this.Gv(null)};r.a("AdfDhtmlInputSearchPeer.prototype.ClearTemporaryStorage",{lD:R.prototype.lD});R.prototype.tD=function(a,b){R.J$(a,b)};r.a("AdfDhtmlInputSearchPeer.prototype.DerivePropsFromPrefSuggestions",{tD:R.prototype.tD});R.prototype.ew=function(){u.fa()};
r.a("AdfDhtmlInputSearchPeer.prototype.GetRealNewValues",{ew:R.prototype.ew});R.prototype.Ho=function(){u.fa()};r.a("AdfDhtmlInputSearchPeer.prototype.GetSuggestionMapContainingSelections",{Ho:R.prototype.Ho});R.prototype.ye=function(){u.fa()};r.a("AdfDhtmlInputSearchPeer.prototype.GetSuggestionsPanel",{ye:R.prototype.ye});R.prototype.wt=function(){u.fa()};r.a("AdfDhtmlInputSearchPeer.prototype.ShowSelectionsPopup",{wt:R.prototype.wt});R.prototype.pw=function(){u.fa()};
r.a("AdfDhtmlInputSearchPeer.prototype.IsUnderAutocompletion",{pw:R.prototype.pw});R.prototype.xw=function(){u.fa()};r.a("AdfDhtmlInputSearchPeer.prototype.RestoreSelectionOnEscape",{xw:R.prototype.xw});R.prototype.Qq=function(){u.fa()};r.a("AdfDhtmlInputSearchPeer.prototype.RenderSelections",{Qq:R.prototype.Qq});R.prototype.So=function(a,b){this.Fi=this.pG="";if(b===w.uz||b===w.$I)this.pG=null;$e.wl(a,"")};r.a("AdfDhtmlInputSearchPeer.prototype.ToggleDisplayValueToFiltering",{So:R.prototype.So});
R.prototype.Uq=function(a,b,d){var e=this.Ho();R.NIa(a,d,e);this.eJ(a,b,d)};r.a("AdfDhtmlInputSearchPeer.prototype.UpdateDisplayValueAndSelection",{Uq:R.prototype.Uq});R.gGa=function(a){var b=a[$a.pt];return!a.rPa||"GET"==b.method&&null==b.mUa};function nq(a,b){var d=R.hr,e=a.xy()[d];e?og.Tqa(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.ama=!!mg.get(a));d.Fi=O.da(a,this.i()).value;oq(this,a)||(e={},e.Cpb=a.getFilterAttributes(),e.ppb=a.getCriteria(),e.xua=d.cma&&d.Fi?dg.e3(d.Fi):null,d.rPa=e,d[$a.pt]=vg.Mqa(b,e));return d};r.a("AdfDhtmlInputSearchPeer.prototype.__getFetchOptions",{S2:R.prototype.S2});
R.prototype.Jha=function(a,b,d,e,f){b.getType()==R.hr?(b=ji.iua(a),this.Q2(a,d,e,f,b)):this.Lq(a)&&0!=d.length&&(e=O.da(a,this.i()),f=$e.ks(e),f&&f!==e.value||(e={zZ:!0},e.source=b,this.ye().qc(a,d,e)))};r.a("AdfDhtmlInputSearchPeer.prototype.__sequencedCallback",{Jha:R.prototype.Jha});
R.prototype.Q2=function(a,b,d,e,f){var g=!1;R.gGa(e)&&(g=this.OM=d);var h=this.i();e.ama&&C.O(h,R.VE);if(this.Lq(a)){var l=e.rPa;this.Gv(b,l&&l.xua?l.xua:"",d);if(e.Fi!==O.da(a,h).value||e.Zhb)pq(this,a,e.cma||!d);else if(e.ama)this.ye().update(a,b,g);else if(!f){h={};if(e.cma){if(this.pG==e.Fi&&!Fi.Ita(a))return;this.pG=e.Fi;h.waa=!0}this.ye().qc(a,b,h)}}else e.ama?(e=g,mg.zTa(a)||(d=a.getValue(),null!=d&&0!=d.length&&this.Uq(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().Pp()||this.ye().qc(a,new $f([]))};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.Bha=function(){C.O(this.i(),R.VE)};r.a("AdfDhtmlInputSearchPeer.prototype.__prefetchFailed",{Bha:R.prototype.Bha});
R.prototype.Wz=function(a,b,d,e){mg.update(a,d,b);b=I.Fb(a);""!==O.mC(a,b)?C.O(b,R.VE):e||(C.O(b,R.VE),this.Lq(a)||""==O.mC(a,b)&&this.eJ(a,b))};r.a("AdfDhtmlInputSearchPeer.prototype.SetDisplayValueOnPrefetch",{Wz:R.prototype.Wz});R.prototype.Gv=function(a,b,d){a?(void 0===d&&(d=!0),this.RB||(this.RB=new dg(3)),this.RB.put(b,a,d)):this.RB=null};r.a("AdfDhtmlInputSearchPeer.prototype.CacheServerSuggestionsList",{Gv:R.prototype.Gv});R.prototype.$Q=function(a){if(this.RB&&(a=this.RB.get(a)))return a[dg.WR]};
r.a("AdfDhtmlInputSearchPeer.prototype.GetCachedServerSuggestionsList",{$Q:R.prototype.$Q});R.r$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.Vhb(a,g,e,f)})};
R.Vhb=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.QPa(g,l,0);if(0<=n){b.splice(h,1);0<n&&R.UIa(g,n+1,l,b,e);break}}}return 0==b.length};R.UIa=function(a,b,d,e,f){d=f.indexOf(d)+1;if(!(d>=f.length)&&(d=f[d],b=R.QPa(a,d,b),0<=b)){var g=e.indexOf(d);-1!=g&&(e.splice(g,1),0<b&&R.UIa(a,b+1,d,e,f))}};
R.QPa=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.eeb=function(a){var b=R.P5a,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.XJa=function(a){for(var b=[],d=0,e=a.length;d<e;d++)b.push(R.eeb(a[d]));return b};
R.leb=function(a){a=pi(a);a=xi(a);for(var b=R.XJa(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.hfb=function(a){a=pi(a);a=xi(a);for(var b=R.XJa(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.hIa=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.obb=function(a,b,d){var e=R.leb(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.hIa(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 $f(h,d)};
R.enb=function(a,b,d){var e=R.hfb(b),f=a.getFilterAttributes();return d.filter(function(a){a=e.test(R.hIa(f,a));e.lastIndex=0;return a})};function mq(a,b){var d=A.c;a.cM?d.Cs(a.cM,70):a.cM=d.ta(a,a.mdb,b,70,{isSynchronized:!0});a.Rx&&(A.c.ic(a.Rx),a.Rx=null)}R.prototype.mdb=function(a){this.cM=null;pq(this,a)};
function pq(a,b,d){var e=O.da(b,a.i()).value.trim();a.Fi=e;if(a.pG!=e||Fi.Ita(b)){var f={};f.waa=!!e;d?f.zZ=!0:a.Yz(b,"filtering");d=a.$Q(e);if(!d&&(a.RB||(a.RB=new dg(3)),d=(d=a.RB.lra(e))?d[dg.WR]:void 0,f.zZ=!0,!d))return;var g=b.getCriteria();e&&(d=g==AdfRichInputSearch.jwa?R.obb(b,e,d):g==AdfRichInputSearch.tba?R.r$a(b,e,d):R.enb(b,e,d));a.ye().qc(b,d,f);a.pG=e}}
function oq(a,b){u.assert(void 0!==a.OM,"This method should not be invoked before prefetchOrUpdate is invoked");null===a.OM&&(a.OM=!b.xy()[R.hr].getFilterParameters());return a.OM}R.zbb=function(a,b){var d=document.createElement("input");d.setAttribute("type","hidden");d.setAttribute("name",a.g());b.appendChild(d);return d};R.qKa=function(a,b){b||(b=a.i());var d=a.getReadOnly()?R.g_a:"name";return b.querySelectorAll("["+d+"\x3d'"+a.g()+"']")};
R.qmb=function(a,b){var d=O.Fo(b);d?d.setAttribute("id",qi(a)):v.l.severe("Label not defined or for attribute not set for inputSearch ",b.id)};R.prototype.ow=function(a){return(a=this.ZE(a))&&a.rMa};r.a("AdfDhtmlInputSearchPeer.prototype.IsSelectionsShown",{ow:R.prototype.ow});R.prototype.ZE=function(a){return this.Wp(a,R.qT)};r.a("AdfDhtmlInputSearchPeer.prototype.__getSuggestionPopupWindow",{ZE:R.prototype.ZE});R.prototype.Lq=function(a){return this.Za(a,R.qT)};
r.a("AdfDhtmlInputSearchPeer.prototype.IsSuggestionPopupVisible",{Lq:R.prototype.Lq});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.rMa=!1,this.apa.reset(a,d,this.ye());else{"filtering"!=b&&this.So(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.lpa.lH(a,e);this.apa.lH(a,e);var f=a.g(),g={type:"menu",autodismiss:"autodismissMenu",closeOnEscape:!0};g.closeHandler=this.D(this.Fgb);g.closeHandlerParam=a;g.openedHandler=
this.D(this.Ggb);g.openedHandlerParam=a;g[AdfRichPopup.Jf]=O.zD(a);g[AdfRichPopup.Ed]=AdfRichPopup.qf;g[AdfRichPopup.cg]=f;g.animate=AdfRichPopup.Av;g.focus=!1;window.zj&&q.b instanceof Ee&&this.hv();g.componentEventsEnabled=!0;this.He(a,e,g,R.qT)}"selections"==b?(this.ZE(a).rMa=!0,this.Qq(a)):"initial"==b?(A.c.Cc(!0,!0,!0,"inputSearch: user click: show suggestions: id\x3d",a.g()),d=mg.get(a),e=ri(a,AdfRichSearchSection),d&&(f=ng(a),g={dwb:!0},g.zZ=1<e.length,g.source=f,this.ye().qc(a,d,g),f.getDontCache()&&
C.w(this.i(),R.VE)),(new og(e)).yua()):(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)||(oq(this,a)?nq(a,{Zhb:!0}):(d=R.cfb(d.length),e=A.c,this.Rx?e.Cs(this.Rx,d):this.Rx=e.ta(this,this.kmb,a,d,{isSynchronized:!0}))))};r.a("AdfDhtmlInputSearchPeer.prototype.ShowSuggestionsPopup",{Yz:R.prototype.Yz});R.prototype.kmb=function(a){this.Rx=null;nq(a,{cma:!0})};
R.cfb=function(a){switch(a){case 0:return 500;case 1:return 1E3;case 2:return 700;case 3:return 500;default:return 300}};