var Pr=M.U(M,"AdfDhtmlPanelBoxPeer",p);v("AdfDhtmlPanelBoxPeer",Pr);Pr.RS="_afrDscl";v("AdfDhtmlPanelBoxPeer.DISCLOSURE_SUB_ID",Pr.RS);Pr.mA=M.xC(Qr,"InnerPBShowDetailPeer",Pr.RS);InnerPBShowDetailPeer.m=function(){Xo.kq(this,{sS:"af|panelBox::disclosed-icon-style",yS:"af|panelBox::undisclosed-icon-style"})};InnerPBShowDetailPeer.prototype.Qg=function(a){return this.ai.Ng()&&InnerPBShowDetailPeer.f.Qg.call(this,a)?(this.ai.ql(a),l):p};
InnerPBShowDetailPeer.prototype.og=function(a){var b=InnerPBShowDetailPeer.f.og.call(this);if(b==p){var d=this.ai.d();if("lazy"===d.getPropertyValue("contentDelivery")&&this.ai.Ng()==n||a==p&&F.c.le.SC(d))b=l}return b};Pr.EE="_afrMax";v("AdfDhtmlPanelBoxPeer.MAXIMIZE_SUB_ID",Pr.EE);Pr.q6=M.xC(Yo,"InnerPBMaximizePeer",Pr.EE);InnerPBMaximizePeer.m=function(){Xo.kq(this,{toggledStyleClass:"af|panelBox::maximized-icon-style",untoggledStyleClass:"af|panelBox::unmaximized-icon-style"})};
InnerPBMaximizePeer.prototype.Qg=function(a){var b=this.ai,d=b.Ng();return d&&InnerPBMaximizePeer.f.Qg.call(this,a)?(b.GM(b.h(),d,a),l):p};InnerPBMaximizePeer.prototype.Iv=function(a,b,d,e){b=InnerPBMaximizePeer.f.Iv.call(this,a,b,d,e);d&&a.setDisclosed(l);return b};InnerPBMaximizePeer.prototype.og=function(){return!this.ai.Ng()};Pr.m=function(){z.kb(AdfRichPanelBox);M.hb(this,AdfRichPanelBox.DISCLOSED,AdfRichPanelBox.MAXIMIZED);M.ha(this,I.jb,I.qd,Db.ga,Nb.ga);this.ML=new Rr};
v("AdfDhtmlPanelBoxPeer.InitSubclass",Pr.m);Pr.prototype.Init=function(a){Pr.f.Init.call(this,a);var b=a.e(),d=M.g(b,Pr.RS);w.b.getElementById(d)&&(this.Ff=this.SD(a));b=M.g(b,Pr.EE);w.b.getElementById(b)&&(this.ux=this.TD(a));this.yaa="false"==F.c.u().ka("af|panelBox-tr-disclose-with-up-down-arrow")};z.a("AdfDhtmlPanelBoxPeer.prototype.Init",{Init:Pr.prototype.Init});Pr.prototype.SD=function(a){return new Pr.mA(a,this)};z.a("AdfDhtmlPanelBoxPeer.prototype.CreateDisclosurePeer",{SD:Pr.prototype.SD});
Pr.prototype.TD=function(a){return new Pr.q6(a,this)};z.a("AdfDhtmlPanelBoxPeer.prototype.CreateMaximizePeer",{TD:Pr.prototype.TD});Pr.prototype.za=function(a){var b=this.Ff;b&&b.za(a);(b=this.ux)&&b.za(a);Pr.f.za.call(this,a)};z.a("AdfDhtmlPanelBoxPeer.prototype.initialize",{za:Pr.prototype.za});Pr.prototype.q=function(a,b){Pr.f.q.call(this,a,b);var d=this.Ng(b);d&&(Sr(this,a,d),this.ux&&this.GM(b,d,a.getMaximized()))};z.a("AdfDhtmlPanelBoxPeer.prototype.InitDomElement",{q:Pr.prototype.q});
Pr.prototype.Ng=function(a){a||(a=this.h());a=M.g(a.id,"content");return w.b.getElementById(a)};z.a("AdfDhtmlPanelBoxPeer.prototype.GetContentDomElement",{Ng:Pr.prototype.Ng});Pr.prototype.eo=function(){return parseInt(F.c.u().ka("af|panelBox-tr-animation-duration"))};z.a("AdfDhtmlPanelBoxPeer.prototype.GetAnimationDuration",{eo:Pr.prototype.eo});
function Sr(a,b,d){if(d!=n&&"hidden"==d.style.visibility){var e=d.style.height,e=e?parseInt(e):d.offsetHeight,f=d.ownerDocument.createElement("div");f.style.overflow="hidden";f.style.height="1px";d.parentNode.replaceChild(f,d);f.appendChild(d);d.style.visibility="visible";a=a.eo();Qg(0,a,[{element:f,properties:{height:e}}],n,Pr.aWa,[f,d],b)}}Pr.aWa=function(a){var b=a[0],d=b.parentNode;d!=n&&d.replaceChild(a[1],b)};
Pr.bWa=function(a){var b=a[0],d=b.k();if(d!=n){d.bind(b);b=a[1];a=a[2];var e=d.d();if(!e.N0()){var f=d.Ng();f!=n&&(f.style.visibility="hidden");e.rm.call(e,b);d.ql(p);f&&(d=f.style,d.display="none",d.height=a?a:"")}}};Pr.prototype.Ms=function(a){if(F.c.Ac()&&a.getType()==Db.ga&&!a.zJ()){var b=this.Ng(),d=b.style.height;b.style.overflow="hidden";var e=this.eo(),f=this.d();Qg(0,e,[{element:b,properties:{height:0}}],n,Pr.bWa,[f,a,d],f);return l}return p};
z.a("AdfDhtmlPanelBoxPeer.prototype.DispatchUncanceledComponentEvent",{Ms:Pr.prototype.Ms});Pr.prototype.C=function(a){var b=this.Ff;b&&b.C(a);(b=this.ux)&&b.C(a)};z.a("AdfDhtmlPanelBoxPeer.prototype.HandleComponentClick",{C:Pr.prototype.C});Pr.prototype.pa=function(a){var b=this.Ff;if(b){var d=l;this.yaa&&(d=a.L(),d=w.b.ia(d),d=d!=E.Ya&&d!=E.Ja);d&&b.pa(a)}(b=this.ux)&&b.pa(a)};z.a("AdfDhtmlPanelBoxPeer.prototype.HandleComponentKeyUp",{pa:Pr.prototype.pa});
Pr.prototype.oj=function(a){var b=this.Ff;b&&b.oj(a)};z.a("AdfDhtmlPanelBoxPeer.prototype.HandleComponentDisclosure",{oj:Pr.prototype.oj});Pr.prototype.gT=function(a){var b=this.ux;b&&b.gT(a)};z.a("AdfDhtmlPanelBoxPeer.prototype.HandleComponentMaximize",{gT:Pr.prototype.gT});Pr.prototype.mm=function(a,b,d,e){var f=this.Ff;return f?f.mm(a,b,d,e):p};z.a("AdfDhtmlPanelBoxPeer.prototype.ComponentDisclosedChanged",{mm:Pr.prototype.mm});
Pr.prototype.Iv=function(a,b,d,e){var f=this.ux;return f?f.Iv(a,b,d,e):p};z.a("AdfDhtmlPanelBoxPeer.prototype.ComponentMaximizedChanged",{Iv:Pr.prototype.Iv});Pr.prototype.k8=function(a){var b=p,d=this.Ff;d&&(b|=d.yJ(a));(d=this.ux)&&(b|=d.yJ(a));return b};z.a("AdfDhtmlPanelBoxPeer.prototype.__isEventForHeaderControls",{k8:Pr.prototype.k8});Pr.prototype.Iu=function(){return Pr.ML};z.a("AdfDhtmlPanelBoxPeer.prototype.getDefaultDragRecognizer",{Iu:Pr.prototype.Iu});
Pr.prototype.ql=function(a){var b=this.Ng(),d=b.parentNode,e=b.style,f=F.c.Ac();a?(f&&(e.visibility="hidden"),e.display="",d.style.display=""):f||(d.style.display="none",e.display="none");d=this.h();e=d.lastChild;f="DIV"==w.b.Ga(e);a?(f&&(e.style.top=""),Sr(this,this.d(),b)):f&&(e.style.top=d.firstChild.clientHeight+"px")};z.a("AdfDhtmlPanelBoxPeer.prototype.__handleClientSideDisclosure",{ql:Pr.prototype.ql});
Pr.prototype.GM=function(a,b,d){B.p(a);B.p(b);B.pc(d);this.ux.z8(a,b,d);if(a=this.Ff)if(a=a.cl())a.style.display=d?"none":"block"};z.a("AdfDhtmlPanelBoxPeer.prototype.__handleClientSideMaximize",{GM:Pr.prototype.GM});function Rr(){this.Init()}v("AdfPanelBoxDragRecognizer",Rr);z.l(Rr,Ja);
Rr.prototype.Vk=function(a,b,d){B.J(b,Za);B.J(d,I);if(w.b.cj(d)){var e=b.d();B.zc(e,"Unexpected null component.");var f=e.k(),g=d.L();if(!f.k8(g)&&(B.assert(f,"Unexpected null peer."),f.bind(e),e=f.h(),e=H.ca(e)))if(f=w.b.Ga(e),"TABLE"!=f&&(e=H.ca(e),f=w.b.Ga(e)),"TABLE"==f&&(f=d.Q(),H.sb(e,f)))return Rr.f.Vk.apply(this,arguments)}return n};z.a("AdfPanelBoxDragRecognizer.prototype.prepDrag",{Vk:Rr.prototype.Vk});