var Et=I.ea(I,"AdfDhtmlPanelBoxPeer",!1);m("AdfDhtmlPanelBoxPeer",Et);Et.Q_="_afrDscl";m("AdfDhtmlPanelBoxPeer.DISCLOSURE_SUB_ID",Et.Q_);Et.FE=I.uH(Ft,"InnerPBShowDetailPeer",Et.Q_);InnerPBShowDetailPeer.C=function(){Tq.Vs(this,{l_:"af|panelBox::disclosed-icon-style",r_:"af|panelBox::undisclosed-icon-style"})};InnerPBShowDetailPeer.prototype.Oh=function(a){return this.Ri.Lh()&&InnerPBShowDetailPeer.h.Oh.call(this,a)?(this.Ri.qn(a),!0):!1};
InnerPBShowDetailPeer.prototype.fh=function(a){var b=InnerPBShowDetailPeer.h.fh.call(this);if(0==b){var d=this.Ri.f();if("lazy"===d.getPropertyValue("contentDelivery")&&null==this.Ri.Lh()||0==a&&A.c.ge.QH(d))b=!0}return b};Et.TJ="_afrMax";m("AdfDhtmlPanelBoxPeer.MAXIMIZE_SUB_ID",Et.TJ);Et.dfa=I.uH(Uq,"InnerPBMaximizePeer",Et.TJ);InnerPBMaximizePeer.C=function(){Tq.Vs(this,{toggledStyleClass:"af|panelBox::maximized-icon-style",untoggledStyleClass:"af|panelBox::unmaximized-icon-style"})};
InnerPBMaximizePeer.prototype.Oh=function(a){var b=this.Ri,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.fh=function(){return!this.Ri.Lh()};Et.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 Gt};
m("AdfDhtmlPanelBoxPeer.InitSubclass",Et.C);Et.prototype.Init=function(a){Et.h.Init.call(this,a);var b=a.g(),d=I.j(b,Et.Q_);q.b.getElementById(d)&&(this.wg=this.YI(a));b=I.j(b,Et.TJ);q.b.getElementById(b)&&(this.tB=this.ZI(a));this.qla="false"==A.c.H().qa("af|panelBox-tr-disclose-with-up-down-arrow")};r.a("AdfDhtmlPanelBoxPeer.prototype.Init",{Init:Et.prototype.Init});Et.prototype.YI=function(a){return new Et.FE(a,this)};r.a("AdfDhtmlPanelBoxPeer.prototype.CreateDisclosurePeer",{YI:Et.prototype.YI});
Et.prototype.ZI=function(a){return new Et.dfa(a,this)};r.a("AdfDhtmlPanelBoxPeer.prototype.CreateMaximizePeer",{ZI:Et.prototype.ZI});Et.prototype.Qa=function(a){var b=this.wg;b&&b.Qa(a);(b=this.tB)&&b.Qa(a);Et.h.Qa.call(this,a)};r.a("AdfDhtmlPanelBoxPeer.prototype.initialize",{Qa:Et.prototype.Qa});Et.prototype.G=function(a,b){Et.h.G.call(this,a,b);var d=this.Lh(b);d&&(Ht(this,a,d),this.tB&&this.BT(b,d,a.getMaximized()))};r.a("AdfDhtmlPanelBoxPeer.prototype.InitDomElement",{G:Et.prototype.G});
Et.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:Et.prototype.Lh});Et.prototype.Sm=function(){return parseInt(A.c.H().qa("af|panelBox-tr-animation-duration"))};r.a("AdfDhtmlPanelBoxPeer.prototype.GetAnimationDuration",{Sm:Et.prototype.Sm});
function Ht(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();oj(0,a,[{element:f,properties:{height:e}}],null,Et.Efb,[f,d],b)}}Et.Efb=function(a){var b=a[0],d=b.parentNode;null!=d&&d.replaceChild(a[1],b)};
Et.Ffb=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.Ko.call(e,b);d.qn(!1);f&&(d=f.style,d.display="none",d.height=a?a:"")}}};Et.prototype.Ov=function(a){if(A.c.Oc()&&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();oj(0,e,[{element:b,properties:{height:0}}],null,Et.Ffb,[f,a,d],f);return!0}return!1};
r.a("AdfDhtmlPanelBoxPeer.prototype.DispatchUncanceledComponentEvent",{Ov:Et.prototype.Ov});Et.prototype.M=function(a){var b=this.wg;b&&b.M(a);(b=this.tB)&&b.M(a)};r.a("AdfDhtmlPanelBoxPeer.prototype.HandleComponentClick",{M:Et.prototype.M});Et.prototype.za=function(a){var b=this.wg;if(b){var d=!0;this.qla&&(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:Et.prototype.za});
Et.prototype.Ak=function(a){var b=this.wg;b&&b.Ak(a)};r.a("AdfDhtmlPanelBoxPeer.prototype.HandleComponentDisclosure",{Ak:Et.prototype.Ak});Et.prototype.h0=function(a){var b=this.tB;b&&b.h0(a)};r.a("AdfDhtmlPanelBoxPeer.prototype.HandleComponentMaximize",{h0:Et.prototype.h0});Et.prototype.Co=function(a,b,d,e){var f=this.wg;return f?f.Co(a,b,d,e):!1};r.a("AdfDhtmlPanelBoxPeer.prototype.ComponentDisclosedChanged",{Co:Et.prototype.Co});
Et.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:Et.prototype.Bz});Et.prototype.yha=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",{yha:Et.prototype.yha});Et.prototype.oy=function(){return Et.DS};r.a("AdfDhtmlPanelBoxPeer.prototype.getDefaultDragRecognizer",{oy:Et.prototype.oy});
Et.prototype.qn=function(a){var b=this.Lh(),d=b.parentNode,e=b.style,f=A.c.Oc();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=""),Ht(this,this.f(),b)):f&&(e.style.top=d.firstChild.clientHeight+"px")};r.a("AdfDhtmlPanelBoxPeer.prototype.__handleClientSideDisclosure",{qn:Et.prototype.qn});
Et.prototype.BT=function(a,b,d){u.u(a);u.u(b);u.dc(d);this.tB.Tha(a,b,d);if(a=this.wg)if(a=a.tk())a.style.display=d?"none":"block"};r.a("AdfDhtmlPanelBoxPeer.prototype.__handleClientSideMaximize",{BT:Et.prototype.BT});function Gt(){this.Init()}m("AdfPanelBoxDragRecognizer",Gt);r.v(Gt,Ga);
Gt.prototype.Hm=function(a,b,d){u.s(b,Wa);u.s(d,D);if(q.b.kk(d)){var e=b.f();u.Uc(e,"Unexpected null component.");var f=e.o(),g=d.U();if(!f.yha(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 Gt.h.Hm.apply(this,arguments)}return null};r.a("AdfPanelBoxDragRecognizer.prototype.prepDrag",{Hm:Gt.prototype.Hm});