import{c as t,E as e}from"./_auto-entry_svd-bcZqwqIH.js";import"react/jsx-runtime";const r=e=>{const r=document.querySelector(`#${e.targetId}`),{siteSpecificConfig:{publisherClassName:a,fullWidthFormatClassName:l}={}}=t.get();if(!r||!a||!l)return;const s=r.parentElement;s&&(r.classList.add(`advertory-${a}-${l}__full-width-ad`),s.classList.add(`advertory-${a}-${l}-wrapper__full-width-ad`))},a=r=>{var a;const l=document.querySelector(`#${r.targetId}`),s=null===(a=document.querySelector(`#${r.targetId}`))||void 0===a?void 0:a.parentElement,i=null==l?void 0:l.querySelector("iframe"),d=null==i?void 0:i.parentElement,{siteSpecificConfig:{publisherClassName:o,fullWidthFormatClassName:n}={}}=t.get();if(!(l&&i&&d&&s))return;s.classList.add(`advertory-${o}-${n}__vertical-full-width-ad-wrapper`);const c=window.innerWidth,u=Math.round(c/1080*1920);l.style.width="100%",l.style.height=`${u}px`,l.classList.add(`advertory-${o}-${n}__vertical-full-width-ad`);const f=e(r,l.offsetWidth);d.style.transform=`scale(${f})`,d.style.transformOrigin="left top"};export{r as prepareContainerForFullWidthFormat,a as scaleVerticalFullWidthAd};
