var Uk=I.ea(I,"AdfDhtmlDeckPeer",!1);m("AdfDhtmlDeckPeer",Uk);Uk.C=function(){I.hc(this,AdfRichDeck.DISPLAYED_CHILD);r.bb(Pk)};m("AdfDhtmlDeckPeer.InitSubclass",Uk.C);Uk.prototype.G=function(a,b){Uk.h.G.call(this,a,b);this.Bg=new Pk(a,b)};r.a("AdfDhtmlDeckPeer.prototype.InitDomElement",{G:Uk.prototype.G});Uk.YFa=function(a,b){return Uk.rV("data-afr-bck-navigate",a,b)};Uk.$Fa=function(a,b){return Uk.rV("data-afr-fwd-navigate",a,b)};Uk.KKa=function(a,b){return Uk.rV("data-afr-replace-navigate",a,b)};
Uk.p8a=function(a,b){return parseInt(Uk.rV("data-afr-child-cnt",a,b))};Uk.q8a=function(a){a=parseInt(a.firstElementChild.firstElementChild.getAttribute("data-afr-index"));return isNaN(a)?-1:a};Uk.prototype.wxa=function(a,b){return Uk.rV("data-afr-dsp-child",a,b)};r.a("AdfDhtmlDeckPeer.prototype.GetComponentDisplayedChild",{wxa:Uk.prototype.wxa});Uk.rV=function(a,b,d){b=b.g();b=I.j(b,"optRnd");var e=document.getElementById(b);b=q.b;e=b.getAttribute(e,a);null==e&&(e=b.getAttribute(d,a));return e};
Uk.prototype.ka=function(){try{null!=this.WB&&(A.c.C8(),this.WB())}finally{this.Bg.release()}};r.a("AdfDhtmlDeckPeer.prototype.ComponentRemoved",{ka:Uk.prototype.ka});Uk.prototype.Do=function(){this.Bg.eta()||this.mv()};r.a("AdfDhtmlDeckPeer.prototype.DescendantMessageChanged",{Do:Uk.prototype.Do});Uk.prototype.ya=function(){return!0};r.a("AdfDhtmlDeckPeer.prototype.needsResizeNotify",{ya:Uk.prototype.ya});Uk.prototype.mv=function(){this.Bg.AZ()&&this.Bg.mv()};
r.a("AdfDhtmlDeckPeer.prototype.restoreSwipePanel",{mv:Uk.prototype.mv});Uk.t4=function(a,b,d,e){if(null!=b)try{e&&(A.c.Ri(b),q.b.yc(b),d||Uk.tlb(b)),d&&a.firstChild.removeChild(b)}catch(f){a=v.l,a.finest("Unable to delete the old deck element ("+d+", "+e+", "+b+"):"),a.finest(f)}};Uk.qfb=function(a,b,d,e){return e==d?Uk.KKa(a,b):e<d?Uk.YFa(a,b):Uk.$Fa(a,b)};Uk.tlb=function(a){a.id=null;a=a.getElementsByTagName("*");for(var b=a.length,d=0;d<b;d++)a[d].id=null};
Uk.POa=function(a,b){A.c.Ri(a);var d=q.b;d.yc(a);d.kI(b,a);d.Ia(b)};Uk.fnb=function(a){var b=a[0];a=a[1];if(null!=b.WB){b.WB=null;var d=b.i();d&&(Uk.t4(d,a,!0,!1),A.c.Xg(b.f()))}A.c.C8()};
Uk.prototype.Zb=function(a,b){if(0<a.id.indexOf("optRnd")){var d=q.b,e=this.i(),f=e.firstChild,g=-1;null!=f.id&&-1==f.id.indexOf("optRnd")?(f=f.firstChild,g=d.getAttribute(f,"data-afr-index")):f=null;var h=a.firstChild,l=-1;null!=h&&(l=d.getAttribute(h,"data-afr-index"));d.setAttribute(a,"data-afr-index",l);if(l==g&&-1!=l)if(null!=Uk.KKa(this.f(),e))Uk.t4(e,f,!1,!0);else{Uk.POa(f,h);this.Bg.AZ()&&this.Bg.xY(e.firstChild);return}}Uk.h.Zb.call(this,a,b)};
r.a("AdfDhtmlDeckPeer.prototype.ReplaceDomElement",{Zb:Uk.prototype.Zb});
Uk.prototype.nc=function(a){if(0<a.id.indexOf("optRnd")){var b=q.b,d=this.i();if(null!=this.WB){var e=this.WB();this.WB=null;null!=e&&Uk.t4(d,e[1],!0,!1);A.c.C8()}var e=A.c,f=v.l,g=d.firstChild,h=g.firstChild,l=-1;null!=h.id&&-1==h.id.indexOf("optRnd")?l=b.getAttribute(h,"data-afr-index"):h=null;var n=a.firstChild,t=b.getAttribute(a,"data-afr-index"),y=this.f(),y=Uk.qfb(y,d,l,t);if(t==l){if(-1==t)return null;if(null==y)return d}if(this.Bg.AZ())return-1!=t&&Uk.POa(h,n),this.Bg.xY(g),d;this.Bg.vta()&&
this.Bg.mv();null!=h&&Uk.t4(d,h,!1,!0);-1!=t&&g.insertBefore(n,g.firstChild);b="yes"==b.getAttribute(a,"data-afr-dfp");d=[this,h];g={parentFlipAllowed:!0};g.dimensionsFromParent=b;g.finishedFunction=Uk.fnb;g.callbackParams=d;g.animationEnabled=e.Uc()||e.Dy();g.isRtl=e.Ka().La();g.fineLogger=Vj.V.W.hb.mP(f,f.fine);A.c.qTa();this.WB=Vj.V.W.hb.transition(y,h,n,g);null==this.WB&&f.fine("Unexpected null transition cancel function.")}return a};r.a("AdfDhtmlDeckPeer.prototype.DomReplaceNotify",{nc:Uk.prototype.nc});