function Ci(a){this.Init(a)}m("AdfMultiSelectPanel",Ci);r.v(Ci,ji);
Ci.ga=function(){this.D_="data-afr-cb";m("AdfMultiSelectPanel.CHECKBOX_EXPANDO",Ci.D_);this.Zza='\x3cinput role\x3d"presentation" class\x3d"AFTltCheckbox" type\x3d"checkbox"\x3e\x3c/input\x3e';this.hEa='\x3cinput role\x3d"presentation" class\x3d"AFTltCheckbox" type\x3d"checkbox" checked\x3e\x3c/input\x3e';var a='\x3cdiv class\x3d"AFTltCheckboxCntnr"\x3e'+this.Zza+'\x3cdiv class\x3d"AFTltVirtualCheckbox"\x3e\x3c/div\x3e\x3c/div\x3e',b='\x3cdiv class\x3d"AFTltCheckboxCntnr"\x3e'+this.hEa+'\x3cdiv class\x3d"AFTltVirtualCheckbox"\x3e\x3c/div\x3e\x3c/div\x3e';
this.GZa="\x3cdiv class\x3d'AFTltWrapper'\x3e\x3cdiv class\x3d'AFTltSideAlign'\x3e"+a+"\x3c/div\x3e\x3cdiv class\x3d'AFTltSideAlign'\x3e$1\x3c/div\x3e\x3c/div\x3e";this.KZa="\x3ctd "+this.D_+"\x3e"+a+"\x3c/td\x3e$1";this.n5a="\x3cdiv class\x3d'AFTltWrapper'\x3e\x3cdiv class\x3d'AFTltSideAlign'\x3e"+b+"\x3c/div\x3e\x3cdiv class\x3d'AFTltSideAlign'\x3e$1\x3c/div\x3e\x3c/div\x3e";this.o5a="\x3cth\x3e"+b+"\x3c/th\x3e$1";this.FZa="\x3cth\x3e\x3c/th\x3e$1"};m("AdfMultiSelectPanel.InitClass",Ci.ga);
Ci.prototype.Init=function(a){Ci.h.Init.call(this,a)};r.a("AdfMultiSelectPanel.prototype.Init",{Init:Ci.prototype.Init});Ci.F9=function(a,b,d){for(a=a.g();b!=document.body&&!Ci.qMa(a,b)&&b!=d;)b=b.parentNode;return Ci.qMa(a,b)?b:null};m("AdfMultiSelectPanel.getSectionalHeader",Ci.F9);Ci.qMa=function(a,b){var d=ji.BC(a);return 0===b.id.indexOf(d)&&!ji.XD(b)};
Ci.prototype.OH=function(a){var b=this.Hq(),d=b.f(),e=b.i();if(b.ow(d)&&(b=Ci.F9(d,a,e))){var f=Ci.ika(b);a=!f.checked;f.checked=a;var b=this.Pp(),e=this.Hq().mr(),g=e.size;e.clear();for(var h=ji.Go(d,!0);h;){f=Ci.ika(h);Ci.jpa(h,f,a);if(a){var f=ji.kR(d,h),l=b.get(f);e.set(f,l)}h=ji.Go(d,!0,h)}Ci.DX(d,a?b.length:0,0==g);d.focus();return}Ci.h.OH.call(this,a)};r.a("AdfMultiSelectPanel.prototype.handleClick",{OH:Ci.prototype.OH});
Ci.prototype.oD=function(a,b){var d=Ci.h.oD.call(this,a,b);d.setAttribute("aria-selected","false");return d};r.a("AdfMultiSelectPanel.prototype.CreateSampleListItem",{oD:Ci.prototype.oD});Ci.prototype.iw=function(a){a=a.cloneNode(!1);a.setAttribute("aria-selected","true");return a};r.a("AdfMultiSelectPanel.prototype.GetSelectedSampleListItem",{iw:Ci.prototype.iw});Ci.prototype.it=function(a){return this.Hq().mr().has(a)};r.a("AdfMultiSelectPanel.prototype.IsSelected",{it:Ci.prototype.it});
Ci.prototype.ut=function(a,b,d){var e=Ci.ika(d),f=this.Hq().mr();if(f.has(b))f["delete"](b),Ci.jpa(d,e,!1),Ci.U7(a,-1);else{var g=this.Pp().get(b);f.set(b,g);Ci.jpa(d,e,!0);Ci.U7(a,1)}};r.a("AdfMultiSelectPanel.prototype.SelectSuggestItem",{ut:Ci.prototype.ut});Ci.prototype.dt=function(a){return a.replace(Ci.Zza,Ci.hEa)};r.a("AdfMultiSelectPanel.prototype.GetSelectedItemTemplate",{dt:Ci.prototype.dt});Ci.prototype.zw=function(a){return Ci.FZa.replace("$1",a)};
r.a("AdfMultiSelectPanel.prototype.WrapContentHeaderTemplate",{zw:Ci.prototype.zw});Ci.prototype.Aw=function(a,b){return a.getContentMode()==R.Kt?Ci.KZa.replace("$1",b):Ci.GZa.replace("$1",b)};r.a("AdfMultiSelectPanel.prototype.WrapContentStampTemplate",{Aw:Ci.prototype.Aw});Ci.prototype.Bw=function(a,b,d){return b.getType&&b.getType()==R.hr?a.getContentMode()==R.Kt?Ci.o5a.replace("$1",d):Ci.n5a.replace("$1",d):d};r.a("AdfMultiSelectPanel.prototype.WrapSectionHeaderTemplate",{Bw:Ci.prototype.Bw});
Ci.ika=function(a){return a.getElementsByTagName("input")[0]};Ci.jpa=function(a,b,d){b.checked=d;a.setAttribute("aria-selected",d)};Ci.U7=function(a,b){var d=Bi(a),e=parseInt(d.getAttribute(Di.yT)),f;isNaN(e)?(u.assert(1==b),e=0,f=1):f=e+b;Ci.DX(a,f,0==e,d)};Ci.DX=function(a,b,d,e){d&&(d=a.o().i(),C.w(d,Di.wT));e||(e=Bi(a));0===b?(e.removeAttribute(Di.yT),d=a.o().i(),C.O(d,Di.wT)):e.setAttribute(Di.yT,b)};