var yu=M.U(U,"AdfDhtmlSelectManyPeer");v("AdfDhtmlSelectManyPeer",yu);yu.m=function(){w.b.cd()[w.Vc]==w.Wc&&M.ha(this,I.Qd);this.Dqa="saId";this.We="_adfIV"};v("AdfDhtmlSelectManyPeer.InitSubclass",yu.m);yu.prototype.Ka=function(a){this.Yz(a)};z.a("AdfDhtmlSelectManyPeer.prototype.HandleComponentMouseOver",{Ka:yu.prototype.Ka});yu.prototype.hk=function(a,b){var d=b.getElementsByTagName("LABEL"),d=d.length?d[0]:n;if(d!=n){for(var e=U.W(a,b),f=d.parentNode;f&&f!=b;){if(f==e)return n;f=f.parentNode}return w.b.Mb(d)}return n};
z.a("AdfDhtmlSelectManyPeer.prototype.GetComponentLabel",{hk:yu.prototype.hk});yu.prototype.eg=function(a,b){var d=b;if(a.getConverter!=k){var e=a.getConverter();if(e!=n&&(d=[],b!=n))for(var f=0;f<b.length;f++)if(d[f]=e.getAsObject(b[f],a.r("label")),d[f]===k)return}return d};z.a("AdfDhtmlSelectManyPeer.prototype.getConvertedValue",{eg:yu.prototype.eg});
yu.prototype.xp=function(a,b){if(b!=n){var d=b;a==n&&(a=this.d());var e=a.getConverter();if(e!=n)for(var d=[],f=0;f<b.length;f++)if(d[f]=e.getAsString(b[f],a.r("label")),d[f]===k)return;return d}return n};z.a("AdfDhtmlSelectManyPeer.prototype.getConvertedObject",{xp:yu.prototype.xp});yu.prototype.WK=function(a){return a!=n?"INPUT"==w.b.Ga(a)&&"checkbox"==a.type:p};z.a("AdfDhtmlSelectManyPeer.prototype.IsCheckbox",{WK:yu.prototype.WK});
yu.prototype.Ss=function(a,b){var d=w.b;if(a&&"INPUT"!=d.Ga(a)){var e=a.getElementsByTagName("input");if(1<e.length)return n;if((e=e[0])&&this.WK(e)){if(!e.disabled){var f=d.getComputedStyle(e),g=d.G()==w.aa,h=d.G()==w.ed,m=b.L();if("LABEL"!=d.Ga(a)||g&&"none"==f.display||h&&m.ctrlKey)"none"!=f.display&&e.focus(),e.checked=!e.checked}return e}}return a};z.a("AdfDhtmlSelectManyPeer.prototype.GetCheckboxByEventTarget",{Ss:yu.prototype.Ss});yu.prototype.xz=function(){return ya.e3};
z.a("AdfDhtmlSelectManyPeer.prototype.GetNullDefault",{xz:yu.prototype.xz});yu.prototype.cb=function(a,b){B.p(b);if(a.getReadOnly()){var d=U.W(a,b).getAttribute(yu.We);return eval(d)}var d=this.Xd(a,b),e=[];if(d)for(var f=0;f<d.length;f++){var g=d[f];g.checked&&e.push(g.value)}return e};z.a("AdfDhtmlSelectManyPeer.prototype.GetSubmittedValue",{cb:yu.prototype.cb});yu.prototype.Xd=function(a,b){B.p(b);var d=H.Se(b),e=a.e();if(d=d.elements[e]){if(d.length)return d;e=[];e.push(d);return e}return n};
z.a("AdfDhtmlSelectManyPeer.prototype.GetCheckboxes",{Xd:yu.prototype.Xd});yu.prototype.mj=function(a,b){B.p(b);var d=[],e=this.Xd(a,b);if(e)for(i=0;i<e.length;i++){d[i]=new gb;d[i].setValue(e[i].value);var f=this.Rv(e[i]);f&&d[i].setLabel(f);d[i].dS(e[i].disabled)}return d};z.a("AdfDhtmlSelectManyPeer.prototype.GetComponentSelectItems",{mj:yu.prototype.mj});yu.prototype.Rv=function(a){return a.nextSibling?a.nextSibling.nodeValue:n};z.a("AdfDhtmlSelectManyPeer.prototype.GetLabelValue",{Rv:yu.prototype.Rv});
yu.prototype.jo=function(a){a=M.g(a.e(),yu.Dqa);return w.b.getElementById(a)};z.a("AdfDhtmlSelectManyPeer.prototype.GetSelectAllCheckbox",{jo:yu.prototype.jo});yu.prototype.yz=function(a,b,d,e,f){B.p(b);if(b=this.Xd(a,b,f))if(f=n,e||(f=this.jo(a)),e||d!=f){for(a=0;a<b.length;a++){e=b[a];if(e==d)break;e.disabled||(f=e)}f&&(d=f)}return d};z.a("AdfDhtmlSelectManyPeer.prototype.GetPreviousItem",{yz:yu.prototype.yz});
yu.prototype.wz=function(a,b,d,e){B.p(b);if(a=this.Xd(a,b,e)){b=n;for(e=a.length-1;0<=e;e--){var f=a[e];if(f==d)break;f.disabled||(b=f)}b&&(d=b)}return d};z.a("AdfDhtmlSelectManyPeer.prototype.GetNextItem",{wz:yu.prototype.wz});yu.prototype.SE=function(a,b,d,e,f){if(b=this.Xd(a,b,f)){f=this.jo(a);a=p;var g;d==f?(a=l,g=e):e==f&&(a=l,g=d);for(f=0;f<b.length;f++){var h=b[f];a||(h==d?(a=l,g=e):h==e&&(a=l,g=d));if(a&&(h.disabled||(h.checked=l,this.Ch(h)),h==g))break}}};
z.a("AdfDhtmlSelectManyPeer.prototype.SelectRange",{SE:yu.prototype.SE});yu.prototype.aF=function(a,b,d,e){var f=this.Xd(a,b);if(f){for(var g=0;g<f.length;g++){var h=f[g];h.disabled||(h.checked=d)}e&&(b=this.cb(a,b),this.Yb(a,b))}};z.a("AdfDhtmlSelectManyPeer.prototype.UpdateAll",{aF:yu.prototype.aF});
yu.prototype.Ch=function(a){var b=a.parentNode.parentNode;a&&(a.checked?H.ta(b,yu.kL)||(H.n(b,yu.kL),"option"==b.getAttribute("role")&&b.setAttribute("aria-selected","true")):H.ta(b,yu.kL)&&(H.F(b,yu.kL),b.getAttribute("aria-selected")&&b.removeAttribute("aria-selected")))};z.a("AdfDhtmlSelectManyPeer.prototype.UpdateSelectedStyle",{Ch:yu.prototype.Ch});yu.prototype.pm=function(a){return U.W(a)};z.a("AdfDhtmlSelectManyPeer.prototype.GetSelectItemsParentDomElement",{pm:yu.prototype.pm});yu.OK="p_AFHighlighted";
v("AdfDhtmlSelectManyPeer.HIGHLIGHTED_STYLE",yu.OK);yu.kL="p_AFSelected";v("AdfDhtmlSelectManyPeer.SELECTED_STYLE",yu.kL);