import{n as e,o as t,t as n}from"./_BCiCTKAo.js";import{Ms as r,Ns as i,Ps as a,Su as o,Vc as s,Xc as c,Xl as l,Yc as u,Zl as d,_u as f,js as p,pc as m}from"./_V8uKgtty.js";var h,g,_,v;function y(){return(y=e((()=>{r(),h=e=>{let t=document.createElement(`script`);return t.async=!1,t.src=e,t},g=e=>{let t=document.createElement(`link`);return t.href=e,t.rel=`stylesheet`,t},_=(e=``)=>[`html`,`head`,`body`].reduce((e,t)=>e.replace(`<${t}>`,``).replace(``,``),e),v=class extends p{onMount(){window&&!window.DP_HOME_AD_TRACKING_CALLBACK&&(window.DP_HOME_AD_TRACKING_CALLBACK=this.callback.bind(this)),document.readyState===`complete`?this.createRtmScript():this.subscribeTo(window).on(`load`,this.createRtmScript.bind(this))}createRtmScript(){let e=`${this.input.url}&cb=window.DP_HOME_AD_TRACKING_CALLBACK`,t=h(e);t.onload=()=>t.parentNode?.removeChild(t),this.getEl()?.appendChild(t)}callback(e){let t=this.getEl();t&&(e.forEach(e=>{e.JSMetaData?e.JSMetaData.JSURLs.forEach(e=>t.appendChild(h(e))):e.CSSMetaData?e.CSSMetaData.CSSURLs.forEach(e=>t.appendChild(g(e))):t.insertAdjacentHTML(`beforeend`,_(e.content))}),setTimeout(()=>{t.querySelectorAll(`img:not([alt])`).forEach(e=>e.setAttribute(`alt`,``))},1e3))}onDestroy(){delete window.DP_HOME_AD_TRACKING_CALLBACK}}})))()}var b,x,S,C,w,T,E,D,O;function k(){return(k=e((()=>{b=f(),x=t(m()),y(),S=t(c()),C=u(),w=t(o()),T=`of`,E=(0,b.t)(T),D=(0,x.default)(`div`,{class:`text-0`},0),(0,C.r)(T,()=>E),O=v,E._=(0,S.default)(function(e,t,n,r,i,a){t.n(D,r)},{t:T},O),E.Component=(0,w.default)(O,E._)})))()}var A=n(((e,t)=>{t.exports={}})),j=n(((e,t)=>{t.exports={onMount:function(){this.autoApplyAfterRedirect(this.el.getAttribute(`prefix`),this.el.getAttribute(`csrf`))},autoApplyAfterRedirect:function(e,t){var n=window.location.hash;if(n&&e&&n.indexOf(e)===1){history.replaceState(null,``,`#`);var r=n.substring(e.length+1);if(t&&r.indexOf(t)===0){var i={detail:{token:r.substring(t.length)}};if(typeof window.CustomEvent==`function`){var a=function(){document.dispatchEvent(new CustomEvent(`follow-auto-apply`+i.detail.token,i)),window.removeEventListener(`load`,a)};window.addEventListener(`load`,a)}}}}}})),M;function N(){return(N=e((()=>{r(),d(),M=class extends p{constructor(...e){super(...e),l(this,`boundHandleOpenModal`,void 0)}onCreate(){this.state={open:!1,iframeSrc:null}}onMount(){this.boundHandleOpenModal=this.handleOpenModal.bind(this),document.addEventListener(`OPEN_IFRAME_MODAL`,this.boundHandleOpenModal)}onDestroy(){document.removeEventListener(`OPEN_IFRAME_MODAL`,this.boundHandleOpenModal)}handleOpenModal(e){let t=e.detail?.url||null;t&&!this.state.open&&(this.state.open=!0,this.state.iframeSrc=t)}closeModal(){this.state.open=!1,this.state.iframeSrc=null}}})))()}var P,F,I,L,R,z,B,V;function H(){return(H=e((()=>{P=f(),a(),F=t(s()),N(),I=t(c()),L=u(),R=t(o()),z=`xg`,B=(0,P.t)(z),(0,L.r)(z,()=>B),V=M,B._=(0,I.default)(function(e,t,n,r,a,o){t.be(`div`,{class:`dp-iframe-modal-placeholder`},`0`,r,null,1),a.open&&(0,F.default)(i,{open:a.open,class:[`dp-iframe-modal`,e.class],renderBody:e=>{a.iframeSrc&&e.e(`iframe`,{src:a.iframeSrc,title:`Iframe Modal`,class:`dp-iframe-modal__iframe`},`2`,r,0,0)}},t,n,`1`,[[`close`,`closeModal`,!1]]),t.ee()},{t:z},V),B.Component=(0,R.default)(V,B._)})))()}export{k as i,j as n,A as r,H as t};