var Fi=I.ea(R,"AdfMultiSelectInputSearchPeer",!1);m("AdfMultiSelectInputSearchPeer",Fi);Fi.C=function(){r.bb(Ei);this.fBa=", ";this.yT="data-afr-sel";this.wT="p_AFHasSelections"};m("AdfMultiSelectInputSearchPeer.InitSubclass",Fi.C);Fi.prototype.G=function(a,b){Fi.h.G.call(this,a,b);this.fpa=new Ei(this);var d=R.ft(a);Fi.DX(a,b,d.length)};r.a("AdfMultiSelectInputSearchPeer.prototype.InitDomElement",{G:Fi.prototype.G});Fi.prototype.Bj=function(){return this.g7?Fi.h.Bj.call(this):G.ut};
r.a("AdfMultiSelectInputSearchPeer.prototype.GetReadyState",{Bj:Fi.prototype.Bj});Fi.prototype.Hf=function(a,b){var d=O.mC(a,b).trim();return d?d.split(Fi.fBa):E.wD};r.a("AdfMultiSelectInputSearchPeer.prototype.GetDisplayValue",{Hf:Fi.prototype.Hf});Fi.prototype.nd=function(a){var b=vi(this.nr());0==b.length&&0==R.ft(a).length&&this.Ba(a,this.i(),b);this.cc(a,b)};r.a("AdfMultiSelectInputSearchPeer.prototype.RunValidation",{nd:Fi.prototype.nd});
Fi.prototype.tD=function(a,b){Fi.h.tD.call(this,a,b);this.sL(a,b)};r.a("AdfMultiSelectInputSearchPeer.prototype.DerivePropsFromPrefSuggestions",{tD:Fi.prototype.tD});Fi.prototype.Xv=function(a){return a.join(Fi.fBa)};r.a("AdfMultiSelectInputSearchPeer.prototype.GetCombinedDisplayValue",{Xv:Fi.prototype.Xv});Fi.prototype.fw=function(a,b){for(var d={},e=0,f=b.length;e<f;e++)d[b[e]]=!0;for(var g=[],e=0,f=a.length;e<f;e++)d[a[e]]||g.push(a[e]);return g};
r.a("AdfMultiSelectInputSearchPeer.prototype.GetRealNewValues",{fw:Fi.prototype.fw});Fi.prototype.Io=function(a){var b=this.nr();if(a&&!this.lm(vi(b),a)){for(var d=this.ye().Qp(),e=new Map,f=0,g=a.length;f<g;f++){var h=a[f];b&&b.has(h)?e.set(h,b.get(h)):d?e.set(h,d.get(h)):e.set(h,null)}b=this.c6=e;Fi.U7(this.f(),this.i(),a.length)}return b};r.a("AdfMultiSelectInputSearchPeer.prototype.GetSuggestionMapContainingSelections",{Io:Fi.prototype.Io});Fi.prototype.ye=function(){return this.fpa};
r.a("AdfMultiSelectInputSearchPeer.prototype.GetSuggestionsPanel",{ye:Fi.prototype.ye});Fi.prototype.xt=function(a,b){C.sa(this.i(),Fi.wT)&&(this.pw(a)||(this.To(b),this.Yz(a,"selections")),a.focus())};r.a("AdfMultiSelectInputSearchPeer.prototype.ShowSelectionsPopup",{xt:Fi.prototype.xt});Fi.prototype.qw=function(){return!1};r.a("AdfMultiSelectInputSearchPeer.prototype.IsUnderAutocompletion",{qw:Fi.prototype.qw});Fi.prototype.yw=function(){};
r.a("AdfMultiSelectInputSearchPeer.prototype.RestoreSelectionOnEscape",{yw:Fi.prototype.yw});Fi.prototype.Rq=function(a){if(!this.g7){var b=A.c;b.uq(a);b.lv(a)}var b=this.nr(),d;if(d=b)(d=this.g7)||(d=!(!this.nr()||0<XB(this,a).length));if(d)if(b=new bg(wi(b)),d=this.ye(),d.Qp())d.update(a,b,!0);else{var e={};e.source=rg(a);d.qc(a,b,e)}};r.a("AdfMultiSelectInputSearchPeer.prototype.RenderSelections",{Rq:Fi.prototype.Rq});
Fi.prototype.To=function(a,b){a.value=void 0!==b&&b!==w.uz&&b!==w.$I?String.fromCodePoint?String.fromCodePoint(b):String.fromCharCode(b):"";Fi.h.To.call(this,a,b)};r.a("AdfMultiSelectInputSearchPeer.prototype.ToggleDisplayValueToFiltering",{To:Fi.prototype.To});Fi.prototype.Vq=function(a,b,d,e){for(var f=this.nr(),g=0,h=d.length;g<h;g++){var l=d[g],n=e.get(l);n&&f.set(l,n)}Fi.h.Vq.call(this,a,b,d,e)};r.a("AdfMultiSelectInputSearchPeer.prototype.UpdateDisplayValueAndSelection",{Vq:Fi.prototype.Vq});
Fi.prototype.fE=function(a,b,d){this.sL(a,b);var e=!1,f=XB(this,a);d?0<f.length&&v.l.severe("There are values for which the suggestion objects are not available. Component: ",a.g(),". Values are ",f):0<f.length&&(e=!0,qg.MRa(a,f));Fi.h.fE.call(this,a,b,d,e);e||(this.g7=!0,A.c.uq(a),this.pw(a)&&this.Rq(a))};r.a("AdfMultiSelectInputSearchPeer.prototype.PrefetchComplete",{fE:Fi.prototype.fE});
Fi.prototype.jha=function(a,b){this.g7=!0;A.c.uq(a);this.sL(a,b);var d=XB(this,a);0<d.length&&v.l.severe("There are values for which the suggestion objects are not available. Component: ",a.g(),". Values are ",d);this.Wz(a,b,!1,!1);this.pw(a)&&this.Rq(a)};r.a("AdfMultiSelectInputSearchPeer.prototype.__fetchSpecificSuggestionsComplete",{jha:Fi.prototype.jha});Fi.prototype.nr=function(){return this.c6};r.a("AdfMultiSelectInputSearchPeer.prototype.__getLocalSelections",{nr:Fi.prototype.nr});
function XB(a,b){for(var d=R.ft(b),e=a.c6,f=[],g=0,h=d.length;g<h;g++)null==e.get(d[g])&&f.push(d[g]);return f}Fi.prototype.sL=function(a,b){if(!this.nr()){u.assert(null!=R.M9(a));for(var d=R.ft(a),e=a.getSelection()||[],f=new Map,g=0,h=d.length;g<h;g++)f.set(d[g],Fi.cfb(d[g],e));this.c6=f}d=R.ft(a);e=0;for(f=d.length;e<f;e++)(g=b.get(d[e]))&&this.c6.set(d[e],g)};r.a("AdfMultiSelectInputSearchPeer.prototype.__resolveLocalSelections",{sL:Fi.prototype.sL});
Fi.cfb=function(a,b){for(var d=0,e=b.length;d<e;d++)if(a==b[d].key)return b[d]};Fi.DX=function(a,b,d){(a=Di(a))&&0<d&&(a.setAttribute(Fi.yT,d),C.w(b,Fi.wT))};Fi.U7=function(a,b,d){0===d?(C.O(b,Fi.wT),Di(a).removeAttribute(Fi.yT)):Fi.DX(a,b,d)};