var Wk=I.ea(I,"AdfDhtmlDeckPeer",!1);m("AdfDhtmlDeckPeer",Wk);Wk.C=function(){I.hc(this,AdfRichDeck.DISPLAYED_CHILD);r.bb(Rk)};m("AdfDhtmlDeckPeer.InitSubclass",Wk.C);Wk.prototype.G=function(a,b){Wk.h.G.call(this,a,b);this.Bg=new Rk(a,b)};r.a("AdfDhtmlDeckPeer.prototype.InitDomElement",{G:Wk.prototype.G});Wk.bGa=function(a,b){return Wk.rV("data-afr-bck-navigate",a,b)};Wk.dGa=function(a,b){return Wk.rV("data-afr-fwd-navigate",a,b)};Wk.PKa=function(a,b){return Wk.rV("data-afr-replace-navigate",a,b)};
Wk.s8a=function(a,b){return parseInt(Wk.rV("data-afr-child-cnt",a,b))};Wk.t8a=function(a){a=parseInt(a.firstElementChild.firstElementChild.getAttribute("data-afr-index"));return isNaN(a)?-1:a};Wk.prototype.Axa=function(a,b){return Wk.rV("data-afr-dsp-child",a,b)};r.a("AdfDhtmlDeckPeer.prototype.GetComponentDisplayedChild",{Axa:Wk.prototype.Axa});Wk.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};
Wk.prototype.ka=function(){try{null!=this.WB&&(A.c.C8(),this.WB())}finally{this.Bg.release()}};r.a("AdfDhtmlDeckPeer.prototype.ComponentRemoved",{ka:Wk.prototype.ka});Wk.prototype.Eo=function(){this.Bg.hta()||this.ov()};r.a("AdfDhtmlDeckPeer.prototype.DescendantMessageChanged",{Eo:Wk.prototype.Eo});Wk.prototype.ya=function(){return!0};r.a("AdfDhtmlDeckPeer.prototype.needsResizeNotify",{ya:Wk.prototype.ya});Wk.prototype.ov=function(){this.Bg.AZ()&&this.Bg.ov()};
r.a("AdfDhtmlDeckPeer.prototype.restoreSwipePanel",{ov:Wk.prototype.ov});Wk.t4=function(a,b,d,e){if(null!=b)try{e&&(A.c.Si(b),q.b.yc(b),d||Wk.ulb(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)}};Wk.rfb=function(a,b,d,e){return e==d?Wk.PKa(a,b):e<d?Wk.bGa(a,b):Wk.dGa(a,b)};Wk.ulb=function(a){a.id=null;a=a.getElementsByTagName("*");for(var b=a.length,d=0;d<b;d++)a[d].id=null};
Wk.UOa=function(a,b){A.c.Si(a);var d=q.b;d.yc(a);d.kI(b,a);d.Ia(b)};Wk.fnb=function(a){var b=a[0];a=a[1];if(null!=b.WB){b.WB=null;var d=b.i();d&&(Wk.t4(d,a,!0,!1),A.c.Xg(b.f()))}A.c.C8()};
Wk.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!=Wk.PKa(this.f(),e))Wk.t4(e,f,!1,!0);else{Wk.UOa(f,h);this.Bg.AZ()&&this.Bg.xY(e.firstChild);return}}Wk.h.Zb.call(this,a,b)};
r.a("AdfDhtmlDeckPeer.prototype.ReplaceDomElement",{Zb:Wk.prototype.Zb});
Wk.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&&Wk.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=Wk.rfb(y,d,l,t);if(t==l){if(-1==t)return null;if(null==y)return d}if(this.Bg.AZ())return-1!=t&&Wk.UOa(h,n),this.Bg.xY(g),d;this.Bg.zta()&&
this.Bg.ov();null!=h&&Wk.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=Wk.fnb;g.callbackParams=d;g.animationEnabled=e.Oc()||e.cv();g.isRtl=e.Ka().La();g.fineLogger=Xj.V.W.hb.mP(f,f.fine);A.c.vTa();this.WB=Xj.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:Wk.prototype.nc});