var cu=I.ea(bu,"AdfDhtmlPanelDrawerPeer",!1);m("AdfDhtmlPanelDrawerPeer",cu);cu.C=function(){r.bb(AdfClientDomTracker);I.ra(this,D.wb);this.Tga="_adfTracker";this.dFa="_adfTempFloat";this.FBa="p_AFFloat";this.eDa="p_AFOpen";this.F6a="tabp"};m("AdfDhtmlPanelDrawerPeer.InitSubclass",cu.C);
cu.prototype.tb=function(a,b){cu.h.tb.call(this,a,b);var d=I.j(a.g(),"margins");if(d=A.c.Qe(d)){var e=du(a);d.Lqb==e&&(b.style.marginTop=d.marginTop,e?b.style.marginLeft=d.marginLeft:b.style.marginRight=d.marginRight)}return A.c.ta(this,this.Fhb,a.g(),0,{isSynchronized:!0})};r.a("AdfDhtmlPanelDrawerPeer.prototype.BindToComponent",{tb:cu.prototype.tb});
cu.prototype.Qq=function(a){cu.h.Qq.call(this,a);var b=A.c.Zg();if(this.bt()&&b){var d="open"==A.c.Qe(a.g()),b=this.i();if(d){var d=this.Xp(a,a.g()).mo(),e=d[kj.HD];d[kj.HD]=!1;this.l3=!0;this.Za(a,a.g())&&this.Jb(a,a.g());delete this.l3;d[kj.HD]=e}eu(this,a,b)}};r.a("AdfDhtmlPanelDrawerPeer.prototype.NewTabSelected",{Qq:cu.prototype.Qq});cu.prototype.Eo=function(){this.fu&&fu(this,this.f())};r.a("AdfDhtmlPanelDrawerPeer.prototype.DescendantMessageChanged",{Eo:cu.prototype.Eo});
cu.prototype.So=function(a,b){cu.h.So.call(this,a);b&&!this.bma&&(this.i(),this.Za(a,a.g())&&this.Jb(a,a.g()))};r.a("AdfDhtmlPanelDrawerPeer.prototype.TabReselected",{So:cu.prototype.So});cu.prototype.M=function(a){var b=this.f(),d=this.bt();if(d&&gu(this)){var e=a.X(),f=I.j(b.g(),cu.F6a),f=q.b.getElementById(f);e==f&&this.So(b,d)}cu.h.M.call(this,a)};r.a("AdfDhtmlPanelDrawerPeer.prototype.HandleComponentClick",{M:cu.prototype.M});cu.prototype.wK=function(){return!0};
r.a("AdfDhtmlPanelDrawerPeer.prototype.UseInvertedRenderingPosition",{wK:cu.prototype.wK});cu.prototype.OJ=function(){return!1};r.a("AdfDhtmlPanelDrawerPeer.prototype.IsDisclosedTabRequired",{OJ:cu.prototype.OJ});cu.prototype.YD=function(){return!1};r.a("AdfDhtmlPanelDrawerPeer.prototype.IsVerticalConveyorSupported",{YD:cu.prototype.YD});
function fu(a,b){var d=A.c,e=b.g(),f=d.Nu(e),e=a.Xp(b,e);if(f&&0<f.length)for(var g=0;g<f.length;g++){var h=d.m(f[g]);if(null!=h&&h instanceof AdfUIEditableValue&&!h.getValid()){a.bma=!0;e&&e.jua();return}}e&&e.sua();delete a.bma}
cu.prototype.Fhb=function(a){var b=this.f(),d=this.i(),e=I.j(a,cu.Tga),f=this.D(this.Unb);AdfClientDomTracker.RRa(d.parentNode,d,e,f,a);if("always"==b.K(AdfRichPanelDrawer.SHOW_HANDLES)){a=d.parentNode;e=q.b;du(b)?this.cka="left":this.cka="right";var g=hu(this,b,d);(f=q.b.getElementById(g))||v.l.severe("no alignNode could be found for the id "+g);for(var h=a,g=!0;null!=h.ownerDocument&&h!=f&&1==g;){var l=e.getComputedStyle(h),n=l.overflowX;n||(n=l.overflow);"visible"!=n&&""!=n&&(g=!1);h=h.parentNode}h=
A.c.R().createElement("div");l=I.j(b.g(),cu.dFa);h.id=l;l=h.style;e.Ks(h,this.cka);l.display="none";g||(a.insertBefore(h,d),q.b.Ia(h),a.removeChild(d),f.appendChild(d),this.IW=f);this.su=h;this.tna=g;iu(this,b,d)}else d.style.display="none";this.bt()?eu(this,b,d):(b=hu(this,b,d),this.Lx=d=this.D(this.Fn),q.b.lY(b,d));this.fu=!0};cu.prototype.bf=function(a){this.bind(a);a=a.g();var b=I.j(a,cu.Tga),b=q.b.getElementById(b),b=I.Cf(b.parentNode);a=cu.Zeb(b,a);return null==a?b:a};
r.a("AdfDhtmlPanelDrawerPeer.prototype.getComponentParent",{bf:cu.prototype.bf});cu.Zeb=function(a,b){if(null!=a){var d=b.lastIndexOf(":");if(-1!=d&&(d=b.substring(0,d),!q.b.getElementById(d)&&(d=A.c.m(d))))for(var e=d.getParent();e;){if(e===a)return d;e=e.getParent()}}};
function iu(a,b,d){var e=q.b,f=hu(a,b,d),g=e.getElementById(f),h=du(b),f=a.su.style,l=e.jc(g),e=l.y+g.clientTop,l=l.x+g.clientLeft,n=d.offsetHeight,t=d.offsetWidth;a.zjb=t;f.height=n+"px";f.width=t+"px";f.display="";a.tna?(ju(b,d,g,e,l,h),a=d.style,f.marginLeft=a.marginLeft,f.marginRight=a.marginRight,f.marginTop=a.marginTop,f.marginBottom=a.marginBottom):(d.style.position="absolute",d.style.top="0",h?d.style.left="0":d.style.right="0",ju(b,d,g,e,l,h,a.su,n,t))}
function ju(a,b,d,e,f,g,h,l,n){var t=b.style,y=!1,z=null;if(h){var z=q.b.jc(h),B=z.y-e;B>=l?(y=!0,h.style.height="0",h.style.width="0"):(h.style.height=l-B+"px",h.style.marginBottom=t.marginBottom)}l=q.b.jc(b);t.marginTop=q.Ma(t.marginTop)+e-d.scrollTop-l.y+"px";g?(t.marginLeft=q.Ma(t.marginLeft)+f-l.x+"px",h&&!y&&(b=z.x-f,b>=n?(h.style.width="0",h.style.height="0",h.style.marginBottom="0"):(h.style.width=n-b+"px",h.style.marginRight=t.marginRight))):(d=f+d.clientWidth,t.marginRight=q.Ma(t.marginRight)+
(l.x+b.offsetWidth)-d+"px",h&&!y&&(b=d-(z.x+b.offsetWidth),b>=n?(h.style.width="0",h.style.height="0",h.style.marginBottom="0"):(h.style.width=n-b+"px",h.style.marginLeft=t.marginLeft)));a=I.j(a.g(),"margins");A.c.Df(a,{Lqb:g,marginTop:t.marginTop,marginRight:t.marginRight,marginLeft:t.marginLeft})}cu.prototype.Unb=function(){var a=this.f(),b=this.i();a&&b&&(this.O6(a),A.c.Si(b))};function du(a){a=a.getPosition();var b=A.c.Ka().La();return"left"==a||"start"==a&&!b||"end"==a&&b?!0:!1}
function eu(a,b,d){if(!a.Za(b,b.g())){var e=hu(a,b,d);!a.IW&&a.su&&(d.parentNode.insertBefore(a.su,d),q.b.Ia(a.su));"always"!=b.K(AdfRichPanelDrawer.SHOW_HANDLES)?d.style.display="":(a.ljb=d.style.marginTop,a.ijb=d.style.marginBottom,a.jjb=d.style.marginLeft,a.kjb=d.style.marginRight,q.b.Ks(d,""),d.style.marginTop="",d.style.marginBottom="",d.style.marginLeft="",d.style.marginRight="",a.tna||(d.style.position="",d.style.top="",du(b)?d.style.left="":d.style.right=""));var f=d.style.position;d.style.position=
"absolute";a.ZQ().style.display="";var g=a.i(),h=b.getWidth(),l=b.getHeight(),n=a.mJ(),t=q.b,y=t.getElementById(e),z=g.offsetWidth,B=b.getMaximumWidth();B||(B="100%");var F=y.clientWidth,h=a.Dn(h,F),B=a.Dn(B,F);a.Cob=n;a.Eob=n.style.width;a.Dob=n.style.maxWidth;g=g.offsetHeight;(F=b.getMaximumHeight())||(F="100%");var K=y.clientHeight,l=a.Dn(l,K),F=a.Dn(F,K);a.Vgb=n;a.Wgb=n.style.height;a.Xgb=n.style.maxHeight;var K=t.zf(),P=t.Y(),K=K+t.Zu(P),y=t.Ld(y)+y.clientTop;l&&(y+l>K&&(l=K-y),t.Fh(n,l));F&&
(y+F>K&&(F=K-y),t.Uua(n,F));z-=n.offsetWidth;h&&t.wv(n,h-z);B&&t.Vua(n,B-z);h=null;l&&F?h=Math.min(l,F):F?h=F:l&&(h=l);h&&h<g&&(A.c.Ka().La()?(l=n.style.paddingLeft,a.yHa=""+l,n.style.paddingLeft=q.Ma(""+l)+20+"px"):(l=n.style.paddingRight,a.zHa=""+l,n.style.paddingRight=q.Ma(""+l)+20+"px"));d.style.position=f;e=a.Y4(b,e);C.w(d,cu.FBa);C.w(d,cu.eDa);A.c.Df(b.g(),"open");a.He(b,d,e,b.g())}}cu.prototype.m8=function(){if(!this.l3){var a=this.bt();if(a&&(a=this.$J(a,null))&&a.Aa())return!1}return!0};
r.a("AdfDhtmlPanelDrawerPeer.prototype.canHide",{m8:cu.prototype.m8});k=cu.prototype;
k.Y4=function(a,b){var d={};if(!this.EHa){var e={type:"layer"};e[kj.HD]=!0;e[kj.lca]="af|panelDrawer-tr-close-animation-duration";e[kj.jca]=3;e[kj.mca]="af|panelDrawer-tr-open-animation-duration";e.surrogateClientId=I.j(a.g(),cu.dFa);var f=!1,g=a.getPosition(),h=A.c.Ka().La();if("start"==g||"left"==g&&!h||"right"==g&&h)f=!0;e[AdfRichPopup.Ed]=f?AdfRichPopup.y_:AdfRichPopup.x_;e[AdfRichPopup.Jf]=b;0==gu(this)?e.autodismiss="autodismissNever":e.autodismiss="autodismissAlways";this.FLa||(this.FLa=this.D(this.xcb));
e.closeHandler=this.FLa;this.LNa||(this.LNa=this.D(this.ycb));e.openedHandler=this.LNa;e[kj.kca]=this.zjb;this.EHa=e}E.Rb(d,this.EHa);"open"!=A.c.Qe(a.g())?d.animate=AdfRichPopup.bba:d.animate=AdfRichPopup.vq;return d};function gu(a){if(null==a.rHa){var b=page.H().qa("af|panelDrawer-tr-auto-dismiss"),d=a.f().K("autoDismiss");a.rHa="none"==d?!1:"focusLoss"==d?!0:"false"==b?!1:!0}return a.rHa}
function hu(a,b,d){if(!a.HA){var e=b.K("alignId"),f=b.m(e);if(f)e=f.g();else{if(":"==e.charAt(0)){var g=e.length;1<g&&(e=e.substring(1,g))}v.l.warning("Unable to find align component: ",e,". Make sure clientComponent is set to true on the align component. "," Without a component on the client the drawer should still work but may not line up as expected.")}q.b.getElementById(e)||(v.l.warning("Unable to find dom node with id: ",e,". Using parent as align component."),f=b.getParent(),e=f.g());f&&(b=
f.o())&&b.fl&&(b.bind(f),e=b.fl(d));a.HA=e}return a.HA}k.Fn=function(){var a=this.f();this.Za(a,a.g())?this.Jb(a,a.g()):"always"==a.K(AdfRichPanelDrawer.SHOW_HANDLES)&&iu(this,a,this.i())};k.ycb=function(){var a=this.f(),b=this.i();fu(this,a);this.bma&&A.c.sq();var d=this.bt().g(),d=I.j(d,bu.zK),e=q.b,a=hu(this,a,b);this.Lx=b=this.D(this.Fn);e.lY(a,b);d=e.getElementById(d);J.va(d)};
k.xcb=function(){var a=A.c,b=a.R().activeElement;null!=this.zHa?this.mJ().style.paddingRight=this.zHa:null!=this.yHa&&(this.mJ().style.paddingLeft=this.yHa);var d=this.Cob;d.style.width=this.Eob;d.style.maxWidth=this.Dob;d=this.Vgb;d.style.height=this.Wgb;d.style.maxHeight=this.Xgb;var d=this.f(),e=this.i(),f=q.b;"always"!=d.K(AdfRichPanelDrawer.SHOW_HANDLES)?e.style.display="none":(q.b.Ks(e,this.cka),e.style.marginTop=this.ljb,e.style.marginBottom=this.ijb,e.style.marginLeft=this.jjb,e.style.marginRight=
this.kjb,this.tna||(e.style.position="absolute",e.style.top="0",du(d)?e.style.left="0":e.style.right="0"));this.ZQ().style.display="none";e.style.width="";this.mJ().style.height="";C.O(e,cu.FBa);C.O(e,cu.eDa);var g=this.su;this.IW?this.IW.appendChild(e):g?(g.parentNode.replaceChild(e,g),f.yc(g)):(g=I.j(d.g(),cu.Tga),g=q.b.getElementById(g),g.parentNode.insertBefore(e,g));f.Ia(e);e=a.R().activeElement;b&&b!=e&&J.va(b);this.l3||(a.Df(d.g(),"closed"),a=this.bt(),this.$J(a,null))};
k.Dn=function(a,b){return a?("%"==(""+a).charAt(a.length-1)&&(a=this.Ena(a,b)),q.Ma(""+a)):null};k.Ena=function(a,b){return b*Math.abs(parseInt(a.substring(0,a.length-1)))/100};k.O6=function(a){this.l3=!0;this.ak(a,!0);this.IW&&(a=this.su.parentNode,a.insertBefore(this.i(),this.su),a.removeChild(this.su),q.b.yc(this.su),this.IW=null)};k.$e=function(a){var b=this.i();(b=hu(this,a,b))&&this.Lx&&q.b.P$(b,this.Lx);this.O6(a);cu.h.$e.call(this,a)};
r.a("AdfDhtmlPanelDrawerPeer.prototype.componentRemoved",{$e:cu.prototype.$e});