function Rk(a,b){this.Init(a,b)}m("AdfDeckSwipeManager",Rk);r.v(Rk);Rk.ga=function(){r.bb(qi);this.RS=1;this.fga=2;this.AAa=3;this.iCa=4;this.gBa=5;this.j2=6;this.Pfa=7;this.N1a="swp";this.C2="AFPrivateSlideTransition";this.Z3a=.3};m("AdfDeckSwipeManager.InitClass",Rk.ga);
Rk.prototype.Init=function(a,b){Rk.h.Init.call(this);this.gb=a;this.OU=b;if(Rk.shb(a,b)){var d={};d[qi.Oca]=this.D(this.pgb);d[qi.dE]=this.D(this.sx);d[qi.x0]=this.D(this.UF);d[qi.Nca]=this.D(this.h5);d[qi.jK]=this.D(this.Vka);this.Bg=new qi(b.firstElementChild,d);Sk(this,b,!0).addEventListener("transitionend",this.D(this.AM))}};r.a("AdfDeckSwipeManager.prototype.Init",{Init:Rk.prototype.Init});Rk.prototype.release=function(){this.OU=this.gb=null;this.Bg&&this.Bg.release()};
r.a("AdfDeckSwipeManager.prototype.release",{release:Rk.prototype.release});Rk.prototype.xY=function(a){if(this.Wg==Rk.RS)this.Wg=Rk.AAa;else{a||(a=Tk(this));J.dk(a);var b=Sk(this,a);Uk(this,a,b);b.style.opacity="0"}};r.a("AdfDeckSwipeManager.prototype.discloseContentPanel",{xY:Rk.prototype.xY});Rk.prototype.hta=function(){return this.cMa};r.a("AdfDeckSwipeManager.prototype.isClearingMessages",{hta:Rk.prototype.hta});Rk.prototype.zta=function(){return this.Wg==Rk.Pfa};
r.a("AdfDeckSwipeManager.prototype.isPanning",{zta:Rk.prototype.zta});Rk.prototype.AZ=function(){return null!=this.Wg&&(this.Wg==Rk.RS||this.Wg==Rk.iCa)};r.a("AdfDeckSwipeManager.prototype.isWaitingForContent",{AZ:Rk.prototype.AZ});Rk.prototype.ov=function(){if(this.Wg==Rk.Pfa)Vk(this);else if(this.Wg==Rk.RS)this.Wg=Rk.fga;else{this.Wg=Rk.j2;var a=Tk(this);Sk(this,a).style.transform="translateX(0)";a.style.transform="translateX(0)"}};r.a("AdfDeckSwipeManager.prototype.restoreSwipePanel",{ov:Rk.prototype.ov});
Rk.Cka=function(a,b,d){(a=d?Wk.bGa(a,b):Wk.dGa(a,b))||(a="");b=a.indexOf("Left");if(-1!=b)return qi.Do;b=a.indexOf("Right");if(-1!=b)return qi.Ws;b=a.indexOf("Up");if(-1!=b)return qi.cJ;b=a.indexOf("Down");if(-1!=b)return qi.bJ;b=A.c.Ka().La();return-1!=a.indexOf("Start")?b?qi.Ws:qi.Do:-1!=a.indexOf("End")?b?qi.Do:qi.Ws:d?b?qi.Do:qi.Ws:b?qi.Ws:qi.Do};
Rk.shb=function(a,b){var d=I.la(a.g(),this.N1a);if(null==document.getElementById(d))return!1;d=Rk.Cka(a,b);if(d==qi.cJ||d==qi.bJ)return!1;var e=Rk.Cka(a,b,!0);return e==qi.cJ||e==qi.bJ?!1:d==qi.Do&&e==qi.Ws||d==qi.Ws&&e==qi.Do};Rk.fG=function(a,b,d){var e=Wk.t8a(b);return d?0<e:e+1<Wk.s8a(a,b)};Rk.mlb=function(a){var b=A.c,d=b.om();d&&(d=b.Up(d))&&0!=d.length&&(b=b.m(messageId),b.Dm(a)&&b.o().Sy(b,d.ys,d))};function Tk(a,b){b||(b=a.OU);return b.firstElementChild}
function Sk(a,b,d){d&&(b=Tk(a,b));return b.nextElementSibling}k=Rk.prototype;k.pgb=function(a){var b=this.gb,d=this.OU;this.B5=a.direction==Rk.Cka(b,d,!0);(this.fG=Rk.fG(b,d,this.B5))?(this.Wg=Rk.Pfa,b=Tk(this,d),d=Sk(this,b),a.direction==qi.Do?(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().vh(b)):this.B5=null};
k.sx=function(a){if(this.fG&&a.Pta===a.direction){var b=Tk(this);a="translateX("+a.deltaX+"px)";Sk(this,b).style.transform=a;b.style.transform=a}};k.h5=function(){Vk(this)};k.UF=function(a){var b=Math.abs(a.deltaX);a.Pta!==a.direction||b/this.OU.offsetWidth<=Rk.Z3a?Vk(this):Vk(this,a.direction)};k.Vka=function(a){Vk(this,a.direction)};
k.AM=function(){if(this.Wg==Rk.RS)this.Wg=Rk.iCa;else if(this.Wg==Rk.fga)this.ov();else if(this.Wg==Rk.AAa)this.xY();else if(this.Wg==Rk.gBa||this.Wg==Rk.j2){var a=Tk(this),b=Sk(this,a);this.Wg==Rk.j2&&(Rk.mlb(this.gb),Uk(this,a,b));a=b.style;a.opacity="";a.transform="";a.left="";a.right="";a.display="";this.Wg=null}};
function Vk(a,b){if(a.fG){var d=a.gb,e=a.OU,f=null==b;if(f)a.Wg=Rk.j2;else{try{a.cMa=!0,A.c.pRa(d.g())}finally{a.cMa=!1}a.Wg=hb.F(d,a.B5?hb.t0:hb.Bca,!0).Aa()?Rk.fga:Rk.RS}d=Tk(a,e);e=Sk(a,d);C.w(d,Rk.C2);C.w(e,Rk.C2);f="translateX("+(f?"0":b==qi.Do?"-100%":"100%")+")";e.style.transform=f;d.style.transform=f;a.fG=null;a.B5=null}else a.fG=null}function Uk(a,b,d){C.O(b,Rk.C2);C.O(d,Rk.C2);b.style.transform="";a.Wg=Rk.gBa};