var om=M.U(M,"AdfDhtmlDeckPeer",p);v("AdfDhtmlDeckPeer",om);om.m=function(){M.$b(this,AdfRichDeck.DISPLAYED_CHILD)};v("AdfDhtmlDeckPeer.InitSubclass",om.m);om.prototype.Rka=function(a,b){return pm("data-afr-dsp-child",a,b)};z.a("AdfDhtmlDeckPeer.prototype.GetComponentDisplayedChild",{Rka:om.prototype.Rka});function pm(a,b,d){b=b.e();b=M.g(b,"optRnd");var e=document.getElementById(b);b=w.b;e=b.getAttribute(e,a);e==n&&(e=b.getAttribute(d,a));return e}
om.prototype.Z=function(){this.Qx!=n&&(F.c.C_(),this.Qx())};z.a("AdfDhtmlDeckPeer.prototype.ComponentRemoved",{Z:om.prototype.Z});om.prototype.ja=t(l);z.a("AdfDhtmlDeckPeer.prototype.needsResizeNotify",{ja:om.prototype.ja});om.prototype.mO=function(a,b,d,e){a=a.getAttribute(b,d);return a==n?e:a};
function qm(a,b,d,e){if(b!=n)try{var f=a.h();e&&(F.c.th(b),w.b.gc(b),d||om.$ya(b));d&&f.firstChild.removeChild(b)}catch(g){a=D.i,a.finest("Unable to delete the old deck element ("+d+", "+e+", "+b+"):"),a.finest(g)}}om.$ya=function(a){a.id=n;a=a.getElementsByTagName("*");for(var b=a.length,d=0;d<b;d++)a[d].id=n};om.e1a=function(a){var b=a[0];a=a[1];b.Qx!=n&&(b.Qx=n,b.h()&&(qm(b,a,l,p),F.c.lh(b.d())));F.c.C_()};
om.prototype.Ab=function(a,b){if(0<a.id.indexOf("optRnd")){var d=w.b,e=this.h(),f=e.firstChild,g=-1;f.id!=n&&-1==f.id.indexOf("optRnd")?g=d.getAttribute(f.firstChild,"data-afr-index"):f=n;var h=a.firstChild,m=-1;h!=n&&(m=d.getAttribute(h,"data-afr-index"));d.setAttribute(a,"data-afr-index",m);if(m==g&&-1!=m)if(F.c.th(f),d.gc(f),g=this.d(),pm("data-afr-replace-navigate",g,e)!=n)om.$ya(f);else{d.mD(h,f);d.wa(h);return}}om.f.Ab.call(this,a,b)};z.a("AdfDhtmlDeckPeer.prototype.ReplaceDomElement",{Ab:om.prototype.Ab});
om.prototype.Rb=function(a){if(0<a.id.indexOf("optRnd")){var b=w.b;if(this.Qx!=n){var d=this.Qx();this.Qx=n;d!=n&&qm(this,d[1],l,p);F.c.C_()}var d=F.c,e=D.i,f=this.h(),g=f.firstChild.firstChild,h=-1;g.id!=n&&-1==g.id.indexOf("optRnd")?h=b.getAttribute(g,"data-afr-index"):g=n;var m=a.firstChild,q=b.getAttribute(a,"data-afr-index"),s=this.d(),s=q==h?pm("data-afr-replace-navigate",s,f):q<h?pm("data-afr-bck-navigate",s,f):pm("data-afr-fwd-navigate",s,f);if(q==h){if(-1==q)return n;if(s==n)return f}g!=
n&&qm(this,g,p,l);-1!=q&&f.firstChild.insertBefore(m,f.firstChild.firstChild);b="yes"==b.getAttribute(a,"data-afr-dfp");f=[this,g];h={parentFlipAllowed:l};h.dimensionsFromParent=b;h.finishedFunction=om.e1a;h.callbackParams=f;h.animationEnabled=d.Ac()||d.is();h.isRtl=d.Ma().Oa();h.fineLogger=xh.K.N.Ca.py(e,e.fine);F.c.SCa();this.Qx=xh.K.N.Ca.transition(s,g,m,h);this.Qx==n&&e.fine("Unexpected null transition cancel function.")}return a};z.a("AdfDhtmlDeckPeer.prototype.DomReplaceNotify",{Rb:om.prototype.Rb});