function Ei(a){this.Init(a)}m("AdfMultiSelectPanel",Ei);r.v(Ei,pi);
Ei.ga=function(){this.D_="data-afr-cb";m("AdfMultiSelectPanel.CHECKBOX_EXPANDO",Ei.D_);this.cAa='\x3cinput role\x3d"presentation" class\x3d"AFTltCheckbox" type\x3d"checkbox"\x3e\x3c/input\x3e';this.lEa='\x3cinput role\x3d"presentation" class\x3d"AFTltCheckbox" type\x3d"checkbox" checked\x3e\x3c/input\x3e';var a='\x3cdiv class\x3d"AFTltCheckboxCntnr"\x3e'+this.cAa+'\x3cdiv class\x3d"AFTltVirtualCheckbox"\x3e\x3c/div\x3e\x3c/div\x3e',b='\x3cdiv class\x3d"AFTltCheckboxCntnr"\x3e'+this.lEa+'\x3cdiv class\x3d"AFTltVirtualCheckbox"\x3e\x3c/div\x3e\x3c/div\x3e';
this.LZa="\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.PZa="\x3ctd "+this.D_+"\x3e"+a+"\x3c/td\x3e$1";this.q5a="\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.r5a="\x3cth\x3e"+b+"\x3c/th\x3e$1";this.KZa="\x3cth\x3e\x3c/th\x3e$1"};m("AdfMultiSelectPanel.InitClass",Ei.ga);
Ei.prototype.Init=function(a){Ei.h.Init.call(this,a)};r.a("AdfMultiSelectPanel.prototype.Init",{Init:Ei.prototype.Init});Ei.G9=function(a,b,d){for(a=a.g();b!=document.body&&!Ei.vMa(a,b)&&b!=d;)b=b.parentNode;return Ei.vMa(a,b)?b:null};m("AdfMultiSelectPanel.getSectionalHeader",Ei.G9);Ei.vMa=function(a,b){var d=pi.BC(a);return 0===b.id.indexOf(d)&&!pi.XD(b)};
Ei.prototype.OH=function(a){var b=this.Iq(),d=b.f(),e=b.i();if(b.pw(d)&&(b=Ei.G9(d,a,e))){var f=Ei.lka(b);a=!f.checked;f.checked=a;var b=this.Qp(),e=this.Iq().nr(),g=e.size;e.clear();for(var h=pi.Ho(d,!0);h;){f=Ei.lka(h);Ei.npa(h,f,a);if(a){var f=pi.kR(d,h),l=b.get(f);e.set(f,l)}h=pi.Ho(d,!0,h)}Ei.DX(d,a?b.length:0,0==g);d.focus();return}Ei.h.OH.call(this,a)};r.a("AdfMultiSelectPanel.prototype.handleClick",{OH:Ei.prototype.OH});
Ei.prototype.oD=function(a,b){var d=Ei.h.oD.call(this,a,b);d.setAttribute("aria-selected","false");return d};r.a("AdfMultiSelectPanel.prototype.CreateSampleListItem",{oD:Ei.prototype.oD});Ei.prototype.jw=function(a){a=a.cloneNode(!1);a.setAttribute("aria-selected","true");return a};r.a("AdfMultiSelectPanel.prototype.GetSelectedSampleListItem",{jw:Ei.prototype.jw});Ei.prototype.jt=function(a){return this.Iq().nr().has(a)};r.a("AdfMultiSelectPanel.prototype.IsSelected",{jt:Ei.prototype.jt});
Ei.prototype.vt=function(a,b,d){var e=Ei.lka(d),f=this.Iq().nr();if(f.has(b))f["delete"](b),Ei.npa(d,e,!1),Ei.U7(a,-1);else{var g=this.Qp().get(b);f.set(b,g);Ei.npa(d,e,!0);Ei.U7(a,1)}};r.a("AdfMultiSelectPanel.prototype.SelectSuggestItem",{vt:Ei.prototype.vt});Ei.prototype.et=function(a){return a.replace(Ei.cAa,Ei.lEa)};r.a("AdfMultiSelectPanel.prototype.GetSelectedItemTemplate",{et:Ei.prototype.et});Ei.prototype.Aw=function(a){return Ei.KZa.replace("$1",a)};
r.a("AdfMultiSelectPanel.prototype.WrapContentHeaderTemplate",{Aw:Ei.prototype.Aw});Ei.prototype.Bw=function(a,b){return a.getContentMode()==R.Lt?Ei.PZa.replace("$1",b):Ei.LZa.replace("$1",b)};r.a("AdfMultiSelectPanel.prototype.WrapContentStampTemplate",{Bw:Ei.prototype.Bw});Ei.prototype.Cw=function(a,b,d){return b.getType&&b.getType()==R.ir?a.getContentMode()==R.Lt?Ei.r5a.replace("$1",d):Ei.q5a.replace("$1",d):d};r.a("AdfMultiSelectPanel.prototype.WrapSectionHeaderTemplate",{Cw:Ei.prototype.Cw});
Ei.lka=function(a){return a.getElementsByTagName("input")[0]};Ei.npa=function(a,b,d){b.checked=d;a.setAttribute("aria-selected",d)};Ei.U7=function(a,b){var d=Di(a),e=parseInt(d.getAttribute(Fi.yT)),f;isNaN(e)?(u.assert(1==b),e=0,f=1):f=e+b;Ei.DX(a,f,0==e,d)};Ei.DX=function(a,b,d,e){d&&(d=a.o().i(),C.w(d,Fi.wT));e||(e=Di(a));0===b?(e.removeAttribute(Fi.yT),d=a.o().i(),C.O(d,Fi.wT)):e.setAttribute(Fi.yT,b)};