var Gw=I.ea(O,"AdfDhtmlSelectManyPeer");m("AdfDhtmlSelectManyPeer",Gw);Gw.C=function(){q.b.Dd()||I.ra(this,D.ze);this.uEa="saId";this.cj="_adfIV"};m("AdfDhtmlSelectManyPeer.InitSubclass",Gw.C);Gw.prototype.$a=function(a){this.kE(a)};r.a("AdfDhtmlSelectManyPeer.prototype.HandleComponentMouseOver",{$a:Gw.prototype.$a});
Gw.prototype.ti=function(a,b){var d=C.oj(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:Gw.prototype.ti});
Gw.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:Gw.prototype.Af});Gw.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:Gw.prototype.oi});Gw.prototype.uR=function(a){return null!=a?"INPUT"==q.b.Na(a)&&"checkbox"==a.type:!1};r.a("AdfDhtmlSelectManyPeer.prototype.IsCheckbox",{uR:Gw.prototype.uR});
Gw.prototype.Wv=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.Yc,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",{Wv:Gw.prototype.Wv});Gw.prototype.at=function(){return E.wD};
r.a("AdfDhtmlSelectManyPeer.prototype.GetNullDefault",{at:Gw.prototype.at});Gw.prototype.Wa=function(a,b){u.u(b);if(a.getReadOnly()){var d=O.da(a,b).getAttribute(Gw.cj);return d?(d=d.replace(/'/g,'"'),JSON.parse(d)):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:Gw.prototype.Wa});
Gw.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:Gw.prototype.kd});Gw.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.Go(e[i]).textContent;f&&d[i].setLabel(f);d[i].VZ(e[i].disabled)}return d};r.a("AdfDhtmlSelectManyPeer.prototype.GetComponentSelectItems",{uk:Gw.prototype.uk});
Gw.prototype.Jq=function(a){a=I.j(a.g(),Gw.uEa);return q.b.getElementById(a)};r.a("AdfDhtmlSelectManyPeer.prototype.GetSelectAllCheckbox",{Jq:Gw.prototype.Jq});Gw.prototype.FD=function(a,b,d,e,f){u.u(b);if(b=this.kd(a,b,f))if(f=null,e||(f=this.Jq(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:Gw.prototype.FD});
Gw.prototype.Ho=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",{Ho:Gw.prototype.Ho});Gw.prototype.kK=function(a,b,d,e,f){if(b=this.kd(a,b,f)){f=this.Jq(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:Gw.prototype.kK});Gw.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:Gw.prototype.uK});
Gw.prototype.xi=function(a){var b=a.parentNode.parentNode;a&&(a.checked?C.sa(b,Gw.MR)||(C.w(b,Gw.MR),"option"==b.getAttribute("role")&&b.setAttribute("aria-selected","true")):C.sa(b,Gw.MR)&&(C.O(b,Gw.MR),b.getAttribute("aria-selected")&&b.removeAttribute("aria-selected")))};r.a("AdfDhtmlSelectManyPeer.prototype.UpdateSelectedStyle",{xi:Gw.prototype.xi});Gw.prototype.dt=function(a){return O.da(a)};r.a("AdfDhtmlSelectManyPeer.prototype.GetSelectItemsParentDomElement",{dt:Gw.prototype.dt});
Gw.fR=function(a,b,d){u.Uc(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",Gw.fR);Gw.lR="p_AFHighlighted";m("AdfDhtmlSelectManyPeer.HIGHLIGHTED_STYLE",Gw.lR);Gw.MR="p_AFSelected";m("AdfDhtmlSelectManyPeer.SELECTED_STYLE",Gw.MR);