var ap=I.ea(I,"AdfDhtmlInlineFramePeer");m("AdfDhtmlInlineFramePeer",ap);ap.C=function(){var a=[];a.EJa=!1;a.qe=void 0;this.q5=a;I.sb(this,AdfRichInlineFrame.SOURCE);this.O1a="inlineFrameLoad"};m("AdfDhtmlInlineFramePeer.InitSubclass",ap.C);
ap.prototype.G=function(a,b){ap.h.G.call(this,a,b);A.c.lv(a);var d=this.mr(b),e=d.getAttribute("_src");if(null!=e){A.c.Cc(!1,!1,!0,"GET request sent for iFrame. Source is: ",e);var f=q.b,g=f.S()==q.Tc;!g||g&&535.19<=f.Ib()?(d.setAttribute("src",e),d.removeAttribute("_src"),d.addEventListener("load",function(a){ap.wha(a)},!0)):ap.Glb(d)}};r.a("AdfDhtmlInlineFramePeer.prototype.InitDomElement",{G:ap.prototype.G});
ap.prototype.Bj=function(){var a=this.mr();if(a){v.l.fine("AdfDhtmlInlineFramePeer.GetReadyState: Frame dom is present");try{var b=a.contentWindow;if("complete"===b.document.readyState){v.l.fine("AdfDhtmlInlineFramePeer.GetReadyState: ","Determine inner document is ADF or not");var d=b.Se;if(d){var e=d.c;if(e&&e.MC&&e.MC())return v.l.fine("AdfDhtmlInlineFramePeer.GetReadyState: inner ADF page ready"),G.tt;v.l.fine("AdfDhtmlInlineFramePeer.GetReadyState: inner ADF page not ready");return G.ut}v.l.fine("AdfDhtmlInlineFramePeer.GetReadyState: Non ADF page ready");
return G.tt}v.l.fine("AdfDhtmlInlineFramePeer.GetReadyState: inner document not yet ready");return G.ut}catch(f){return v.l.fine("AdfDhtmlInlineFramePeer.GetReadyState: Security exception."," Document from different domain, nothing more to do"),G.tt}}v.l.fine("AdfDhtmlInlineFramePeer.GetReadyState: inlineFrame's dom is not ready");return G.ut};r.a("AdfDhtmlInlineFramePeer.prototype.GetReadyState",{Bj:ap.prototype.Bj});
ap.Glb=function(a){var b=q.b,d=a.getAttribute("_src"),e=C.kb(a);C.setVisible(a,!1);a.removeAttribute("_src");a.removeAttribute("src");var f=b.cloneNode(a);a.onload="void(0);";b.yc(a);f.addEventListener("load",function(a){ap.wha(a)},!0);a.parentNode.replaceChild(f,a);-1<d.indexOf("javascript:''")?f.setAttribute("src","about:blank"):f.setAttribute("src",d);b.Ia(f);C.setVisible(f,e)};
ap.prototype.RQ=function(a,b,d){var e=b;"IFRAME"!=e.tagName&&(e=C.pa(b));if(!e||"IFRAME"!=e.tagName)return!1;if(A.c.Oc()&&d&&C.vta(a)&&(a=C.A9(a))&&a.K("animate")!==AdfRichPopup.vq)return e.setAttribute("data-src",d),!0;e.src=d;return!0};r.a("AdfDhtmlInlineFramePeer.prototype.ComponentSourceChanged",{RQ:ap.prototype.RQ});ap.prototype.tb=function(a,b){ap.h.tb.call(this,a,b);var d=b;"IFRAME"!=d.tagName&&(d=C.pa(b));"preferred"===a.getSizing()&&"1"===d.getAttribute("_adfLoaded")&&ap.GOa(d)};
r.a("AdfDhtmlInlineFramePeer.prototype.BindToComponent",{tb:ap.prototype.tb});ap.prototype.ka=function(a){var b=a.getSizing(),d=A.c;d.uq(a);"preferred"===b&&(b=ap.q5,E.Ig(b,a.g()),0==b.length&&(d.Y().clearInterval(b.qe),b.qe=void 0));q.b.S()==q.ia&&(this.bind(a),d=this.mr(),C.setVisible(d,!1),d.setAttribute("onload","void(0)"),d.setAttribute("src","about:blank"));ap.h.ka.call(this,a)};r.a("AdfDhtmlInlineFramePeer.prototype.ComponentRemoved",{ka:ap.prototype.ka});
ap.prototype.Ck=function(a,b,d){a=this.i();"IFRAME"!=a.tagName&&(a=C.pa(a));a.scrollIntoView();var e=a.contentWindow.document,f=null;null!=d&&(f=e.getElementById(d))&&f.scrollIntoView();b&&(f?J.va(f):J.va(a))};r.a("AdfDhtmlInlineFramePeer.prototype.ScrollIntoView",{Ck:ap.prototype.Ck});
ap.Xib=function(a){A.c.Cc(!1,!1,!1,"iFrame load handler called.");var b=q.b,d=A.c;b.S()==q.ia?(a||(a=d.Y().event),a=b.Ye(a)):b.S()==q.Tc&&(a=b.Ye(a));b=b.ca(a);null==b&&(b=a.currentTarget);"1"===b.getAttribute("_adfLoaded")&&A.c.Cc(!1,!1,!0,"GET response received for iFrame. Source is: ",b.getAttribute("src"));var e=b.getAttribute("id"),f=e.indexOf("::f");-1!=f&&f==e.length-3&&(e=b.parentNode.getAttribute("id"));u.J(e);(d=d.m(e))?(ap.vlb(b,e),(new ia(d,ap.O1a,a)).F(!0),"preferred"===d.getSizing()?
ap.Yla(b)?"1"===b.getAttribute("_adfLoaded")?(b.style.minWidth="0px",b.style.minHeight="0px",A.c.Cc(!1,!1,!1,"Immediately resizing iFrame."),ap.hoa(b),A.c.Cc(!0,!1,!0,"Response processig done for iFrame. Source is: ",b.getAttribute("src"))):(A.c.Cc(!1,!1,!1,"Registering iFrame for resizing."),ap.GOa(b)):A.c.Cc(!0,!1,!0,"Response processig done for iFrame. Source is: ",b.getAttribute("src")):A.c.Cc(!0,!1,!0,"Response processig done for iFrame. Source is: ",b.getAttribute("src"))):b.setAttribute("_adfLoaded",
"1")};ap.wha=function(a){a.target.contentWindow.postMessage("_adfShowBody","*");try{ap.Xib(a)}catch(b){v.l.rg(b,"inlineFrame load handler")}};m("AdfDhtmlInlineFramePeer.__iframeLoadHandler",ap.wha);ap.vlb=function(a,b){null==a.getAttribute("_src")&&(C.sa(a,"p_AFFlow")?(C.O(a,"p_AFBusy"),v.l.fine("Removed busy from iframe: ",b)):(C.O(a.parentNode,"p_AFBusy"),v.l.fine("Removed busy from iframe's parentNode: ",b)))};
ap.GOa=function(a){u.u(a);if(ap.Yla(a)){var b=ap.q5,d=a.id;-1<E.indexOf(b,d)&&b.push(d);ap.hoa(a);A.c.Cc(!0,!1,!0,"Response processig done for iFrame. Source is: ",a.getAttribute("src"));1==b.length&&(b.qe=A.c.Y().setInterval(ap.hNa,1E3))}};
ap.Yla=function(a){try{return q.b.pl(a.contentWindow),!0}catch(b){return v.l.Ge(b,"Error sizing iframe. This could occur if the iframe's sizing is set to preferred and the iframe's source is not from the same domain as the page. iframe id: "+a.id+", iframe source: "+a.src+", page location: "+window.location+"."),!1}};
ap.hoa=function(a){if(!ap.Yla(a))return!1;var b=!1,d=A.c.H();if(C.sa(a,d.getStyleClass("AFStretchWidth"))||C.sa(a,d.getStyleClass("AFAuxiliaryStretchWidth")))b=!0;var e=q.b,f=a.contentWindow,d=0;b||(d=e.pl(f)-e.$u(f));f=e.vo(f)-e.Zu(f);b=!1;e=a.style;0<d&&(e.minWidth=a.offsetWidth+d+"px",b=!0);var d=ap.q5,g=a.id;0<f?(e.minHeight=a.offsetHeight+f+1+"px",b=!0,d[g]=a.clientWidth):(d=d[g],void 0!==d&&a.clientWidth>d&&(e.minHeight="0px",b=!0));return b};
ap.hNa=function(){var a=ap.q5;if(0!=a.length){for(var b=!1,d=document,e=a.length,f=ap.hoa,g=0;g<e;g++)var h=d.getElementById(a[g]),b=b|f(h);b^a.EJa&&(d=A.c.Y(),void 0!==a.qe&&d.clearInterval(a.qe),a.qe=d.setInterval(ap.hNa,b?100:1E3),a.EJa=b)}};ap.prototype.mr=function(a){a=a?a:this.i();"IFRAME"!=a.tagName&&(a=C.pa(a));u.u(a,"IFRAME");return a};r.a("AdfDhtmlInlineFramePeer.prototype.__getIframe",{mr:ap.prototype.mr});