var Ct=I.ea(I,"AdfDhtmlPanelBoxPeer",!1);m("AdfDhtmlPanelBoxPeer",Ct);Ct.Q_="_afrDscl";m("AdfDhtmlPanelBoxPeer.DISCLOSURE_SUB_ID",Ct.Q_);Ct.FE=I.uH(Dt,"InnerPBShowDetailPeer",Ct.Q_);InnerPBShowDetailPeer.C=function(){Rq.Us(this,{l_:"af|panelBox::disclosed-icon-style",r_:"af|panelBox::undisclosed-icon-style"})};InnerPBShowDetailPeer.prototype.Oh=function(a){return this.Qi.Lh()&&InnerPBShowDetailPeer.h.Oh.call(this,a)?(this.Qi.qn(a),!0):!1};
InnerPBShowDetailPeer.prototype.eh=function(a){var b=InnerPBShowDetailPeer.h.eh.call(this);if(0==b){var d=this.Qi.f();if("lazy"===d.getPropertyValue("contentDelivery")&&null==this.Qi.Lh()||0==a&&A.c.ge.QH(d))b=!0}return b};Ct.TJ="_afrMax";m("AdfDhtmlPanelBoxPeer.MAXIMIZE_SUB_ID",Ct.TJ);Ct.bfa=I.uH(Sq,"InnerPBMaximizePeer",Ct.TJ);InnerPBMaximizePeer.C=function(){Rq.Us(this,{toggledStyleClass:"af|panelBox::maximized-icon-style",untoggledStyleClass:"af|panelBox::unmaximized-icon-style"})};
InnerPBMaximizePeer.prototype.Oh=function(a){var b=this.Qi,d=b.Lh();return d&&InnerPBMaximizePeer.h.Oh.call(this,a)?(b.BT(b.i(),d,a),!0):!1};InnerPBMaximizePeer.prototype.Bz=function(a,b,d,e){b=InnerPBMaximizePeer.h.Bz.call(this,a,b,d,e);d&&a.setDisclosed(!0);return b};InnerPBMaximizePeer.prototype.eh=function(){return!this.Qi.Lh()};Ct.C=function(){r.bb(AdfRichPanelBox);I.sb(this,AdfRichPanelBox.DISCLOSED,AdfRichPanelBox.MAXIMIZED);I.ra(this,D.wb,D.Ad,Jb.ua,Ub.ua);this.DS=new Et};
m("AdfDhtmlPanelBoxPeer.InitSubclass",Ct.C);Ct.prototype.Init=function(a){Ct.h.Init.call(this,a);var b=a.g(),d=I.j(b,Ct.Q_);q.b.getElementById(d)&&(this.wg=this.YI(a));b=I.j(b,Ct.TJ);q.b.getElementById(b)&&(this.tB=this.ZI(a));this.nla="false"==A.c.H().qa("af|panelBox-tr-disclose-with-up-down-arrow")};r.a("AdfDhtmlPanelBoxPeer.prototype.Init",{Init:Ct.prototype.Init});Ct.prototype.YI=function(a){return new Ct.FE(a,this)};r.a("AdfDhtmlPanelBoxPeer.prototype.CreateDisclosurePeer",{YI:Ct.prototype.YI});
Ct.prototype.ZI=function(a){return new Ct.bfa(a,this)};r.a("AdfDhtmlPanelBoxPeer.prototype.CreateMaximizePeer",{ZI:Ct.prototype.ZI});Ct.prototype.Qa=function(a){var b=this.wg;b&&b.Qa(a);(b=this.tB)&&b.Qa(a);Ct.h.Qa.call(this,a)};r.a("AdfDhtmlPanelBoxPeer.prototype.initialize",{Qa:Ct.prototype.Qa});Ct.prototype.G=function(a,b){Ct.h.G.call(this,a,b);var d=this.Lh(b);d&&(Ft(this,a,d),this.tB&&this.BT(b,d,a.getMaximized()))};r.a("AdfDhtmlPanelBoxPeer.prototype.InitDomElement",{G:Ct.prototype.G});
Ct.prototype.Lh=function(a){a||(a=this.i());a=I.j(a.id,"content");return q.b.getElementById(a)};r.a("AdfDhtmlPanelBoxPeer.prototype.GetContentDomElement",{Lh:Ct.prototype.Lh});Ct.prototype.Sm=function(){return parseInt(A.c.H().qa("af|panelBox-tr-animation-duration"))};r.a("AdfDhtmlPanelBoxPeer.prototype.GetAnimationDuration",{Sm:Ct.prototype.Sm});
function Ft(a,b,d){if(null!=d&&"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.Sm();jj(0,a,[{element:f,properties:{height:e}}],null,Ct.Dfb,[f,d],b)}}Ct.Dfb=function(a){var b=a[0],d=b.parentNode;null!=d&&d.replaceChild(a[1],b)};
Ct.Efb=function(a){var b=a[0],d=b.o();if(null!=d){d.bind(b);b=a[1];a=a[2];var e=d.f();if(!e.HP()){var f=d.Lh();null!=f&&(f.style.visibility="hidden");e.Jo.call(e,b);d.qn(!1);f&&(d=f.style,d.display="none",d.height=a?a:"")}}};Ct.prototype.Nv=function(a){if(A.c.Uc()&&a.getType()==Jb.ua&&!a.XH()){var b=this.Lh(),d=b.style.height;b.style.overflow="hidden";var e=this.Sm(),f=this.f();jj(0,e,[{element:b,properties:{height:0}}],null,Ct.Efb,[f,a,d],f);return!0}return!1};
r.a("AdfDhtmlPanelBoxPeer.prototype.DispatchUncanceledComponentEvent",{Nv:Ct.prototype.Nv});Ct.prototype.M=function(a){var b=this.wg;b&&b.M(a);(b=this.tB)&&b.M(a)};r.a("AdfDhtmlPanelBoxPeer.prototype.HandleComponentClick",{M:Ct.prototype.M});Ct.prototype.za=function(a){var b=this.wg;if(b){var d=!0;this.nla&&(d=a.U(),d=q.b.na(d),d=d!=w.ab&&d!=w.Ra);d&&b.za(a)}(b=this.tB)&&b.za(a)};r.a("AdfDhtmlPanelBoxPeer.prototype.HandleComponentKeyUp",{za:Ct.prototype.za});
Ct.prototype.Ak=function(a){var b=this.wg;b&&b.Ak(a)};r.a("AdfDhtmlPanelBoxPeer.prototype.HandleComponentDisclosure",{Ak:Ct.prototype.Ak});Ct.prototype.h0=function(a){var b=this.tB;b&&b.h0(a)};r.a("AdfDhtmlPanelBoxPeer.prototype.HandleComponentMaximize",{h0:Ct.prototype.h0});Ct.prototype.Bo=function(a,b,d,e){var f=this.wg;return f?f.Bo(a,b,d,e):!1};r.a("AdfDhtmlPanelBoxPeer.prototype.ComponentDisclosedChanged",{Bo:Ct.prototype.Bo});
Ct.prototype.Bz=function(a,b,d,e){var f=this.tB;return f?f.Bz(a,b,d,e):!1};r.a("AdfDhtmlPanelBoxPeer.prototype.ComponentMaximizedChanged",{Bz:Ct.prototype.Bz});Ct.prototype.wha=function(a){var b=!1,d=this.wg;d&&(b|=d.JP(a));(d=this.tB)&&(b|=d.JP(a));return b};r.a("AdfDhtmlPanelBoxPeer.prototype.__isEventForHeaderControls",{wha:Ct.prototype.wha});Ct.prototype.ny=function(){return Ct.DS};r.a("AdfDhtmlPanelBoxPeer.prototype.getDefaultDragRecognizer",{ny:Ct.prototype.ny});
Ct.prototype.qn=function(a){var b=this.Lh(),d=b.parentNode,e=b.style,f=A.c.Uc();a?(f&&(e.visibility="hidden"),e.display="",d.style.display=""):f||(d.style.display="none",e.display="none");d=this.i();e=d.lastChild;f="DIV"==q.b.Na(e);a?(f&&(e.style.top=""),Ft(this,this.f(),b)):f&&(e.style.top=d.firstChild.clientHeight+"px")};r.a("AdfDhtmlPanelBoxPeer.prototype.__handleClientSideDisclosure",{qn:Ct.prototype.qn});
Ct.prototype.BT=function(a,b,d){u.u(a);u.u(b);u.dc(d);this.tB.Rha(a,b,d);if(a=this.wg)if(a=a.tk())a.style.display=d?"none":"block"};r.a("AdfDhtmlPanelBoxPeer.prototype.__handleClientSideMaximize",{BT:Ct.prototype.BT});function Et(){this.Init()}m("AdfPanelBoxDragRecognizer",Et);r.v(Et,Ga);
Et.prototype.Hm=function(a,b,d){u.s(b,Wa);u.s(d,D);if(q.b.kk(d)){var e=b.f();u.Tc(e,"Unexpected null component.");var f=e.o(),g=d.U();if(!f.wha(g)&&(u.assert(f,"Unexpected null peer."),f.bind(e),e=f.i(),e=C.pa(e))&&(f=q.b.Na(e),"TABLE"!=f&&(e=C.pa(e),f=q.b.Na(e)),"TABLE"==f&&(f=d.X(),C.Nb(e,f))))return Et.h.Hm.apply(this,arguments)}return null};r.a("AdfPanelBoxDragRecognizer.prototype.prepDrag",{Hm:Et.prototype.Hm});