var Ew=I.ea(O,"AdfDhtmlSelectManyPeer");m("AdfDhtmlSelectManyPeer",Ew);Ew.C=function(){q.b.Dd()||I.ra(this,D.ze);this.qEa="saId";this.aj="_adfIV"};m("AdfDhtmlSelectManyPeer.InitSubclass",Ew.C);Ew.prototype.$a=function(a){this.kE(a)};r.a("AdfDhtmlSelectManyPeer.prototype.HandleComponentMouseOver",{$a:Ew.prototype.$a});
Ew.prototype.ti=function(a,b){var d=C.nj(b,"for",I.la(a.g(),O.yi),"LABEL");null==d&&(d=b.getElementsByTagName("LABEL"),d=d.length?d[0]:null);if(null!=d){for(var e=O.da(a,b),f=d.parentNode;f&&f!=b;){if(f==e)return null;f=f.parentNode}return q.b.mc(d)}return null};r.a("AdfDhtmlSelectManyPeer.prototype.GetComponentLabel",{ti:Ew.prototype.ti});
Ew.prototype.Af=function(a,b){var d=b;if(void 0!=a.getConverter){var e=a.getConverter();if(null!=e&&(d=[],null!=b))for(var f=0;f<b.length;f++)if(d[f]=e.getAsObject(b[f],a.K("label")),void 0===d[f])return}return d};r.a("AdfDhtmlSelectManyPeer.prototype.getConvertedValue",{Af:Ew.prototype.Af});Ew.prototype.oi=function(a,b){if(null!=b){var d=b;null==a&&(a=this.f());var e=a.getConverter();if(null!=e)for(var d=[],f=0;f<b.length;f++)if(d[f]=e.getAsString(b[f],a.K("label")),void 0===d[f])return;return d}return null};
r.a("AdfDhtmlSelectManyPeer.prototype.getConvertedObject",{oi:Ew.prototype.oi});Ew.prototype.uR=function(a){return null!=a?"INPUT"==q.b.Na(a)&&"checkbox"==a.type:!1};r.a("AdfDhtmlSelectManyPeer.prototype.IsCheckbox",{uR:Ew.prototype.uR});
Ew.prototype.Vv=function(a,b){var d=q.b;if(a&&"INPUT"!=d.Na(a)){var e=a.getElementsByTagName("input");if(1<e.length)return null;if((e=e[0])&&this.uR(e)){if(!e.disabled){var f=d.getComputedStyle(e),g=d.S()==q.ia,h=d.S()==q.ed,l=b.U();if("LABEL"!=d.Na(a)||g&&"none"==f.display||h&&l.ctrlKey)"none"!=f.display&&e.focus(),e.checked=!e.checked}return e}}return a};r.a("AdfDhtmlSelectManyPeer.prototype.GetCheckboxByEventTarget",{Vv:Ew.prototype.Vv});Ew.prototype.$s=function(){return E.wD};
r.a("AdfDhtmlSelectManyPeer.prototype.GetNullDefault",{$s:Ew.prototype.$s});Ew.prototype.Wa=function(a,b){u.u(b);if(a.getReadOnly()){var d=O.da(a,b).getAttribute(Ew.aj);return eval(d)}var d=this.kd(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};r.a("AdfDhtmlSelectManyPeer.prototype.GetSubmittedValue",{Wa:Ew.prototype.Wa});Ew.prototype.kd=function(a,b){u.u(b);var d=C.lf(b),e=a.g();if(d=d.elements[e]){if(d.length)return d;e=[];e.push(d);return e}return null};
r.a("AdfDhtmlSelectManyPeer.prototype.GetCheckboxes",{kd:Ew.prototype.kd});Ew.prototype.uk=function(a,b){u.u(b);var d=[],e=this.kd(a,b);if(e)for(i=0;i<e.length;i++){d[i]=new kb;d[i].setValue(e[i].value);var f=O.Fo(e[i]).textContent;f&&d[i].setLabel(f);d[i].VZ(e[i].disabled)}return d};r.a("AdfDhtmlSelectManyPeer.prototype.GetComponentSelectItems",{uk:Ew.prototype.uk});Ew.prototype.Iq=function(a){a=I.j(a.g(),Ew.qEa);return q.b.getElementById(a)};
r.a("AdfDhtmlSelectManyPeer.prototype.GetSelectAllCheckbox",{Iq:Ew.prototype.Iq});Ew.prototype.FD=function(a,b,d,e,f){u.u(b);if(b=this.kd(a,b,f))if(f=null,e||(f=this.Iq(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};r.a("AdfDhtmlSelectManyPeer.prototype.GetPreviousItem",{FD:Ew.prototype.FD});Ew.prototype.Go=function(a,b,d,e){u.u(b);if(a=this.kd(a,b,e)){b=null;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};
r.a("AdfDhtmlSelectManyPeer.prototype.GetNextItem",{Go:Ew.prototype.Go});Ew.prototype.kK=function(a,b,d,e,f){if(b=this.kd(a,b,f)){f=this.Iq(a);a=!1;var g;d==f?(a=!0,g=e):e==f&&(a=!0,g=d);for(f=0;f<b.length;f++){var h=b[f];a||(h==d?(a=!0,g=e):h==e&&(a=!0,g=d));if(a&&(h.disabled||(h.checked=!0,this.xi(h)),h==g))break}}};r.a("AdfDhtmlSelectManyPeer.prototype.SelectRange",{kK:Ew.prototype.kK});
Ew.prototype.uK=function(a,b,d,e){var f=this.kd(a,b);if(f){for(var g=0;g<f.length;g++){var h=f[g];h.disabled||(h.checked=d)}e&&(b=this.Wa(a,b),this.cc(a,b))}};r.a("AdfDhtmlSelectManyPeer.prototype.UpdateAll",{uK:Ew.prototype.uK});Ew.prototype.xi=function(a){var b=a.parentNode.parentNode;a&&(a.checked?C.sa(b,Ew.MR)||(C.w(b,Ew.MR),"option"==b.getAttribute("role")&&b.setAttribute("aria-selected","true")):C.sa(b,Ew.MR)&&(C.O(b,Ew.MR),b.getAttribute("aria-selected")&&b.removeAttribute("aria-selected")))};
r.a("AdfDhtmlSelectManyPeer.prototype.UpdateSelectedStyle",{xi:Ew.prototype.xi});Ew.prototype.ct=function(a){return O.da(a)};r.a("AdfDhtmlSelectManyPeer.prototype.GetSelectItemsParentDomElement",{ct:Ew.prototype.ct});Ew.fR=function(a,b,d){u.Tc(a);u.Ya(b);u.J(d);for(var e=a.length,f=0;f<e;f++){var g=a[f];if(g.getAttribute(b)==d)return g}return null};m("AdfDhtmlSelectManyPeer.GetElementByAttributeValue",Ew.fR);Ew.lR="p_AFHighlighted";m("AdfDhtmlSelectManyPeer.HIGHLIGHTED_STYLE",Ew.lR);Ew.MR="p_AFSelected";
m("AdfDhtmlSelectManyPeer.SELECTED_STYLE",Ew.MR);