function Pk(a,b){this.Init(a,b)}m("AdfDeckSwipeManager",Pk);r.v(Pk);Pk.ga=function(){r.bb(oi);this.RS=1;this.dga=2;this.wAa=3;this.eCa=4;this.cBa=5;this.j2=6;this.Nfa=7;this.I1a="swp";this.C2="AFPrivateSlideTransition";this.W3a=.3};m("AdfDeckSwipeManager.InitClass",Pk.ga);
Pk.prototype.Init=function(a,b){Pk.h.Init.call(this);this.gb=a;this.OU=b;if(Pk.rhb(a,b)){var d={};d[oi.Mca]=this.D(this.ogb);d[oi.dE]=this.D(this.rx);d[oi.x0]=this.D(this.UF);d[oi.Lca]=this.D(this.h5);d[oi.jK]=this.D(this.Ska);this.Bg=new oi(b.firstElementChild,d);Qk(this,b,!0).addEventListener("transitionend",this.D(this.AM))}};r.a("AdfDeckSwipeManager.prototype.Init",{Init:Pk.prototype.Init});Pk.prototype.release=function(){this.OU=this.gb=null;this.Bg&&this.Bg.release()};
r.a("AdfDeckSwipeManager.prototype.release",{release:Pk.prototype.release});Pk.prototype.xY=function(a){if(this.Wg==Pk.RS)this.Wg=Pk.wAa;else{a||(a=Rk(this));J.dk(a);var b=Qk(this,a);Sk(this,a,b);b.style.opacity="0"}};r.a("AdfDeckSwipeManager.prototype.discloseContentPanel",{xY:Pk.prototype.xY});Pk.prototype.eta=function(){return this.YLa};r.a("AdfDeckSwipeManager.prototype.isClearingMessages",{eta:Pk.prototype.eta});Pk.prototype.vta=function(){return this.Wg==Pk.Nfa};
r.a("AdfDeckSwipeManager.prototype.isPanning",{vta:Pk.prototype.vta});Pk.prototype.AZ=function(){return null!=this.Wg&&(this.Wg==Pk.RS||this.Wg==Pk.eCa)};r.a("AdfDeckSwipeManager.prototype.isWaitingForContent",{AZ:Pk.prototype.AZ});Pk.prototype.mv=function(){if(this.Wg==Pk.Nfa)Tk(this);else if(this.Wg==Pk.RS)this.Wg=Pk.dga;else{this.Wg=Pk.j2;var a=Rk(this);Qk(this,a).style.transform="translateX(0)";a.style.transform="translateX(0)"}};r.a("AdfDeckSwipeManager.prototype.restoreSwipePanel",{mv:Pk.prototype.mv});
Pk.zka=function(a,b,d){(a=d?Uk.YFa(a,b):Uk.$Fa(a,b))||(a="");b=a.indexOf("Left");if(-1!=b)return oi.Co;b=a.indexOf("Right");if(-1!=b)return oi.Vs;b=a.indexOf("Up");if(-1!=b)return oi.cJ;b=a.indexOf("Down");if(-1!=b)return oi.bJ;b=A.c.Ka().La();return-1!=a.indexOf("Start")?b?oi.Vs:oi.Co:-1!=a.indexOf("End")?b?oi.Co:oi.Vs:d?b?oi.Co:oi.Vs:b?oi.Vs:oi.Co};
Pk.rhb=function(a,b){var d=I.la(a.g(),this.I1a);if(null==document.getElementById(d))return!1;d=Pk.zka(a,b);if(d==oi.cJ||d==oi.bJ)return!1;var e=Pk.zka(a,b,!0);return e==oi.cJ||e==oi.bJ?!1:d==oi.Co&&e==oi.Vs||d==oi.Vs&&e==oi.Co};Pk.fG=function(a,b,d){var e=Uk.q8a(b);return d?0<e:e+1<Uk.p8a(a,b)};Pk.llb=function(a){var b=A.c,d=b.om();d&&(d=b.Tp(d))&&0!=d.length&&(b=b.m(messageId),b.Dm(a)&&b.o().Sy(b,d.xs,d))};function Rk(a,b){b||(b=a.OU);return b.firstElementChild}
function Qk(a,b,d){d&&(b=Rk(a,b));return b.nextElementSibling}k=Pk.prototype;k.ogb=function(a){var b=this.gb,d=this.OU;this.B5=a.direction==Pk.zka(b,d,!0);(this.fG=Pk.fG(b,d,this.B5))?(this.Wg=Pk.Nfa,b=Rk(this,d),d=Qk(this,b),a.direction==oi.Co?(d.style.left="100%",d.style.right=""):(d.style.left="",d.style.right="100%"),d.style.display="block",a="translateX("+a.deltaX+"px)",d.style.transform=a,b.style.transform=a,A.c.el().uh(b)):this.B5=null};
k.rx=function(a){if(this.fG&&a.Lta===a.direction){var b=Rk(this);a="translateX("+a.deltaX+"px)";Qk(this,b).style.transform=a;b.style.transform=a}};k.h5=function(){Tk(this)};k.UF=function(a){var b=Math.abs(a.deltaX);a.Lta!==a.direction||b/this.OU.offsetWidth<=Pk.W3a?Tk(this):Tk(this,a.direction)};k.Ska=function(a){Tk(this,a.direction)};
k.AM=function(){if(this.Wg==Pk.RS)this.Wg=Pk.eCa;else if(this.Wg==Pk.dga)this.mv();else if(this.Wg==Pk.wAa)this.xY();else if(this.Wg==Pk.cBa||this.Wg==Pk.j2){var a=Rk(this),b=Qk(this,a);this.Wg==Pk.j2&&(Pk.llb(this.gb),Sk(this,a,b));a=b.style;a.opacity="";a.transform="";a.left="";a.right="";a.display="";this.Wg=null}};
function Tk(a,b){if(a.fG){var d=a.gb,e=a.OU,f=null==b;if(f)a.Wg=Pk.j2;else{try{a.YLa=!0,A.c.kRa(d.g())}finally{a.YLa=!1}a.Wg=hb.F(d,a.B5?hb.t0:hb.zca,!0).Aa()?Pk.dga:Pk.RS}d=Rk(a,e);e=Qk(a,d);C.w(d,Pk.C2);C.w(e,Pk.C2);f="translateX("+(f?"0":b==oi.Co?"-100%":"100%")+")";e.style.transform=f;d.style.transform=f;a.fG=null;a.B5=null}else a.fG=null}function Sk(a,b,d){C.O(b,Pk.C2);C.O(d,Pk.C2);b.style.transform="";a.Wg=Pk.cBa};