powered-ad-config 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -648,7 +648,7 @@ const V = (x) => {
648
648
  };
649
649
  (() => {
650
650
  const t = r.style;
651
- t.height = n.adScrollHeight, t.maxHeight = n.adScrollHeight, t.position = "relative", r.setAttribute("poweredAC", "0.1.3"), t.clipPath = `inset(-${n.bandHeight - 1}px 0 0 0)`, t.overflow = "visible", t.width = "100vw", t.maxWidth = "100vw", t.marginLeft = "calc(50% - 50vw)", t.marginRight = "0", t.marginTop = "0", t.marginBottom = "0", t.padding = "0";
651
+ t.height = n.adScrollHeight, t.maxHeight = n.adScrollHeight, t.position = "relative", r.setAttribute("poweredAC", "0.1.4"), t.clipPath = `inset(-${n.bandHeight - 1}px 0 0 0)`, t.overflow = "visible", t.width = "100vw", t.maxWidth = "100vw", t.marginLeft = "calc(50% - 50vw)", t.marginRight = "0", t.marginTop = "0", t.marginBottom = "0", t.padding = "0";
652
652
  let e = r.parentElement;
653
653
  for (let E = 0; E < 6 && e && e !== a.body; E++) {
654
654
  const T = l.getComputedStyle(e);
@@ -780,7 +780,7 @@ const V = (x) => {
780
780
  };
781
781
  const f = r.getAttribute("style"), q = c.getAttribute("style"), v = c.parentElement !== r ? c.parentElement : null, N = v ? v.getAttribute("style") : null, I = r.parentElement, S = I ? l.getComputedStyle(I).paddingTop : null, M = parseInt(c.getAttribute("width"), 10) || 320, y = parseInt(c.getAttribute("height"), 10) || 50, b = () => {
782
782
  const d = r.style;
783
- if (d.position = "relative", d.overflow = "visible", d.boxSizing = "border-box", r.setAttribute("poweredAC", "0.1.3"), v) {
783
+ if (d.position = "relative", d.overflow = "visible", d.boxSizing = "border-box", r.setAttribute("poweredAC", "0.1.4"), v) {
784
784
  const k = v.style;
785
785
  k.width = "100%", k.height = "100%", k.margin = "0", k.textAlign = "left";
786
786
  }
@@ -896,7 +896,7 @@ const V = (x) => {
896
896
  (s.transform && s.transform !== "none" || s.willChange && s.willChange !== "auto" || s.contain && s.contain !== "none" || s.filter && s.filter !== "none" || s.perspective && s.perspective !== "none") && (g.push({ el: t, orig: t.getAttribute("style") }), t.style.transform = "none", t.style.willChange = "auto", t.style.contain = "none", t.style.filter = "none", t.style.perspective = "none"), s.overflow !== "visible" && (g.find((E) => E.el === t) || g.push({ el: t, orig: t.getAttribute("style") }), t.style.overflow = "visible"), t = t.parentElement;
897
897
  }
898
898
  const e = c.style;
899
- if (e.position = "fixed", e.top = "0", e.left = "0", e.width = "100vw", e.height = "100vh", e.zIndex = String(n.zIndex), e.border = "none", e.margin = "0", e.padding = "0", e.display = "block", r.setAttribute("poweredAC", "0.1.3"), M) {
899
+ if (e.position = "fixed", e.top = "0", e.left = "0", e.width = "100vw", e.height = "100dvh", e.zIndex = String(n.zIndex), e.border = "none", e.margin = "0", e.padding = "0", e.display = "block", r.setAttribute("poweredAC", "0.1.4"), M) {
900
900
  const s = M.style;
901
901
  s.width = "100%", s.height = "0", s.overflow = "visible", s.position = "static", s.margin = "0";
902
902
  }
@@ -1010,7 +1010,7 @@ function Z({ adFormat: x = "", stickyOffset: n = 0, logoPosX: c = 0, logoHeight:
1010
1010
  return x === "fireplace" ? r = V(n) : x === "fireplace-collant" ? r = Y(n) : x === "logomorph" ? r = U(c, l, a) : x === "interscroller" ? r = K(C) : x === "liquidframe" ? r = J(C) : x === "mobilefireplace" ? r = Q(C) : console.warn("[powered-ad-config] Unknown ad format:", x), _ = typeof r == "function" ? r : () => {
1011
1011
  }, _;
1012
1012
  }
1013
- Z.version = "0.1.3";
1013
+ Z.version = "0.1.4";
1014
1014
  export {
1015
1015
  Z as default
1016
1016
  };
@@ -22,7 +22,7 @@
22
22
  div:has(#adspot-tablet-takeover-2-above) {
23
23
  position: static;
24
24
  }
25
- `,o.head.appendChild(E)}}},S={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-32,adNodeMarginBottom:8,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:16,stickyMargin:{offset:160,isSticky:!0},maskOffset:window.parent.document.querySelector('div[class*="VideoIndexComponent"]')?324:292,zIndex:function(){const o=window.parent.document;o.querySelector(".header-wrapper")?.setAttribute("style","height:124px"),o.querySelector(".weather-widget-wrapper")?.setAttribute("style","bottom:0px"),o.querySelector(".content")?.setAttribute("style","padding-top:32px"),o.querySelector(".layout")?.setAttribute("style","position:relative;background-color:transparent;"),o.querySelector(".footer-ad")?.setAttribute("style","position:relative"),o.querySelector(".footer-netkit")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);");const s=o.querySelector('[class*="VideoIndexComponent"]');s&&(o.querySelector(".breadcrumbs")?.setAttribute("style","display:none"),s.style.maxWidth="1190px",s.style.margin="auto",s.style.position="relative")}},M=[{site:"https://www.nine.com.au/sport",config:N},{site:"https://www.nine.com.au/product-reviews",config:q},{site:"https://www.nine.com.au/property",config:q},{site:"https://www.nine.com.au/entertainment",config:q},{site:"https://staging.nine.com.au/sport",config:N},{site:"https://staging.nine.com.au/product-reviews",config:q},{site:"https://staging.nine.com.au/property",config:q},{site:"https://staging.nine.com.au/entertainment",config:q},{site:"https://render-web-nine-staging-v1.ffxblue.com.au",config:v},{site:"https://render-web-nine-production-v1.ffxblue.com.au",config:v},{site:"https://preview.nine.com.au/",config:v},{site:"https://www.nine",config:v},{site:"https://staging.nine",config:v},{site:"https://entertainment",config:f},{site:"https://celebrity",config:f},{site:"https://homes",config:f},{site:"https://travel",config:f},{site:"https://honey",config:f},{site:"https://style",config:f},{site:"https://coach",config:f},{site:"https://kitchen",config:f},{site:"https://finance",config:f},{site:"https://wwos",config:I},{site:"https://staging.wwos",config:N},{site:"https://www.9news",config:S},{site:"https://staging.9news",config:S},{site:"https://www.yourtv",config:f},{site:"https://staging.yourtv",config:f},{site:"https://9now",config:q},{site:"https://creative-preview-an.com",config:f}],y=()=>{const o=window.document.getElementById("nineContent");o&&(o.style.backgroundColor=t.siteBackgroundColor),a&&(C.setProperty("--masthead-height","250px"),C.height="var(--masthead-height)"),g(),d(),P(),k(),c.addEventListener("scroll",m,{passive:!0}),e=setTimeout(m,50)},b=()=>{let o=null;return o=l.querySelector('div[id*="billboard"][id*="above"]'),o},P=()=>{let o=null;if(!window.parent)return o;if(o=l.querySelector('div[id*="halfpage"][id*="above"]'),!o)return;let s=o;for(let u=0;u<3;u++)if(s=s.parentNode,s&&getComputedStyle(s).position==="sticky"){s.setAttribute("style",`top: ${t.stickyMargin.offset}px`);break}},B=()=>{const o=c.location.href;for(let s=0;s<M.length;s+=1)if(o.indexOf(M[s].site)>=0)return M[s].config},d=()=>{if(!n)return;const o=n.style;o.width="100%",o.height="1000px",o.position="fixed",o.left="50%",o.setProperty("--transform-y","0px"),o.transform="translate3d(-50%, var(--transform-y), 0)"},g=()=>{if(!w)return;const o=w.style;w.className="",o.minHeight="250px",o.marginTop=t.adNodeMarginTop+"px",o.marginBottom=t.adNodeMarginBottom+"px",o.position="static",o.display="block",t.zIndex&&t.zIndex()},k=()=>{r=l.querySelector('div[data-contentunit-id="stan"]')?.parentNode||l.querySelector('div[data-ui-testid="header-score-strip"]')?.parentNode||l.querySelector('div[class*="__MyContainer"]')||l.querySelector('div[class*="__ArticleContainer"]')||l.querySelector('div[class*="__VideoIndexComponent"]')||l.querySelector("div.container.layout")||l.querySelector("main.container.layout"),r&&(r.style.willChange="clip-path",r.style.transition="none",r.style.webkitBackfaceVisibility="hidden",r.style.backfaceVisibility="hidden",r.style.transform="translate3d(0,0,0)",r.style.backgroundColor=t.siteBackgroundColor,r.style.setProperty("--mask-inset","0px"),r.style.clipPath="inset(var(--mask-inset, 0px) 0 0 0)")};let A=0,i=0;const m=()=>{const o=c.scrollY,s=o>A,u=o>h?o-t.maskOffset:0,E=Math.abs(u-i);if(r)if(s&&u>i)if(E>100){const T=Math.max(0,u-100);r.style.transition="none",r.style.setProperty("--mask-inset",`${T}px`),r.offsetHeight,r.style.transition="clip-path 0.3s ease-out",r.style.setProperty("--mask-inset",`${u}px`)}else r.style.transition="clip-path 0.3s ease-out",r.style.setProperty("--mask-inset",`${u}px`);else r.style.transition="none",r.style.setProperty("--mask-inset",`${u}px`);A=o,i=u,o>h?(n.style.setProperty("--transform-y",`${-p}px`),C.setProperty("--masthead-height","100px"),window.CollantOn||window.goCollant()):o>p&&o<=h?(n.style.setProperty("--transform-y",`${-p}px`),C.setProperty("--masthead-height",`${250+p-o}px`),window.CollantOn&&window.goBillboard()):o>=0&&o<=p&&(n.style.setProperty("--transform-y",`${-o}px`),C.setProperty("--masthead-height","250px"),window.CollantOn&&window.goBillboard())},w=b(),t=B();if(!t)return()=>{};let e=null;const p=-t.responsiveScroll+x,h=p+150;return y(),()=>{c.removeEventListener("scroll",m),e&&(clearTimeout(e),e=null)}},X=(x,n,c)=>{const l=window.frameElement?window.frameElement:null;if(!l)return()=>{};const a=window.parent;if(!a||a===window)return()=>{};let C=null;try{C=a.document,a.location.href}catch{return()=>{}}const r={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"250px",logoSmallTransform:"translateX(0px)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,e=(p,h)=>p.forEach(o=>h.forEach(([s,u])=>o.style[s]=u));t.querySelector(".container--padded")?.setAttribute("style","position:relative"),e(t.querySelectorAll(".advert"),[["position","relative"]]),t.querySelector(".footer-netkit")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},f={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,e=(p,h)=>p.forEach(o=>h.forEach(([s,u])=>o.style[s]=u));t.querySelector(".nk-demographics")?.setAttribute("style","max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector(".nk-footer")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector("article")?.setAttribute("style","position:relative"),t.querySelector("#article")?.setAttribute("style","position:relative"),t.querySelector("#VideoIndex")?.setAttribute("style","position:relative"),t.querySelector("#Index")?.setAttribute("style","position:relative"),t.querySelector(".show")?.setAttribute("style","position:relative"),e(t.querySelectorAll(".column"),[["position","relative"]]),e(t.querySelectorAll(".advert"),[["position","relative"]]),e(t.querySelectorAll("blockquote"),[["zIndex","1"]]),t.querySelector('div[class*="article__MyContainer"]')?.setAttribute("style","max-width:1190px;margin-top:-24px"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},q={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,e=(p,h)=>p.forEach(o=>h.forEach(([s,u])=>o.style[s]=u));t.querySelector(".nk-demographics")?.setAttribute("style","max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector(".nk-footer")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector("article")?.setAttribute("style","position:relative"),t.querySelector("#article")?.setAttribute("style","position:relative"),t.querySelector("#VideoIndex")?.setAttribute("style","position:relative"),t.querySelector("#Index")?.setAttribute("style","position:relative"),t.querySelector(".show")?.setAttribute("style","position:relative"),e(t.querySelectorAll(".column"),[["position","relative"]]),e(t.querySelectorAll(".advert"),[["position","relative"]]),e(t.querySelectorAll("blockquote"),[["zIndex","1"]]),t.querySelector('div[class^="component__StrapContainer"]')?.setAttribute("style","position:relative"),t.querySelector('section[class^="WatchNow__Container"]')?.setAttribute("style","margin-left:calc(50% - 49vw);margin-right:calc(50% - 49vw + 10px);"),t.querySelector('div[class*="ArticleContainer"]')?.setAttribute("style","max-width:1190px;margin-top:0px"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},v={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,e=(p,h)=>p.forEach(o=>h.forEach(([s,u])=>o.style[s]=u));t.querySelector('section[data-section="marketing-banner"]')?.setAttribute("style","position:relative"),t.querySelector(".container--ads")?.setAttribute("style","min-height:0"),t.getElementById("mastheadAnchorToggle")?.setAttribute("style","display:none"),e(t.querySelectorAll(".advert"),[["position","relative"]]),e(t.querySelectorAll("iframe"),[["position","relative"]]),t.querySelector('div[data-testid="live-tv"]')?.parentNode?.setAttribute("style","position:relative"),t.querySelector('div[data-contentunit-id="stan"]')?.parentNode?.setAttribute("style","position:relative"),e(t.querySelectorAll("small"),[["position","relative"]]),t.querySelector("small")?.setAttribute("style","position:inherit"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},N={siteBackgroundColor:"#ffffff",logoTop:"-148px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,e=(p,h)=>p.forEach(o=>h.forEach(([s,u])=>o.style[s]=u));t.querySelector(".container--padded")?.setAttribute("style","position:relative"),e(t.querySelectorAll(".advert"),[["position","relative"]]),t.querySelector(".footer-netkit")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},I={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"invert(1)",zIndex:function(){const t=window.parent.document;t.querySelector(".header-wrapper")?.setAttribute("style","height:124px"),t.querySelector(".weather-widget-wrapper")?.setAttribute("style","bottom:0px"),t.querySelector(".content")?.setAttribute("style","padding-top:32px"),t.querySelector(".layout")?.setAttribute("style","position:relative;background-color:transparent;"),t.querySelector(".footer-ad")?.setAttribute("style","position:relative"),t.querySelector(".footer-netkit")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},S=[{site:"https://www.nine.com.au/sport",config:r},{site:"https://www.nine.com.au/product-reviews",config:q},{site:"https://www.nine.com.au/property",config:q},{site:"https://www.nine.com.au/entertainment",config:q},{site:"https://staging.nine.com.au/sport",config:r},{site:"https://staging.nine.com.au/product-reviews",config:q},{site:"https://staging.nine.com.au/property",config:q},{site:"https://staging.nine.com.au/entertainment",config:q},{site:"https://render-web-nine-staging-v1.ffxblue.com.au",config:v},{site:"https://render-web-nine-production-v1.ffxblue.com.au",config:v},{site:"https://preview.nine.com.au/",config:v},{site:"https://www.nine",config:v},{site:"https://staging.nine",config:v},{site:"https://entertainment",config:f},{site:"https://celebrity",config:f},{site:"https://homes",config:f},{site:"https://travel",config:f},{site:"https://honey",config:f},{site:"https://style",config:f},{site:"https://coach",config:f},{site:"https://kitchen",config:f},{site:"https://finance",config:f},{site:"https://wwos",config:N},{site:"https://staging.wwos",config:N},{site:"https://www.9news",config:I},{site:"https://staging.9news",config:I},{site:"https://www.yourtv",config:f},{site:"https://staging.yourtv",config:f},{site:"https://9now",config:q},{site:"https://creative-preview-an.com",config:f}],M=()=>{const t=window.document.getElementById("logo-small");t&&(t.style.left=A.logoSmallLeft,t.style.transform=A.logoSmallTransform,t.style.filter=A.logoSmallFilter),B(),P(),a.addEventListener("scroll",g),i=setTimeout(g,50)},y=()=>{let t=null;return t=C.querySelector('div[id*="desktop"][id*="takeover"][id*="above"]'),t},b=()=>{const t=a.location.href;for(let e=0;e<S.length;e+=1)if(t.indexOf(S[e].site)>=0)return S[e].config},P=()=>{if(!l)return;const t=l.style;t.width="100%",t.height=`${n}px`,t.position="relative"},B=()=>{if(!k)return;const t=k.style;t.maxHeight=`${n}px`,t.minHeight=`${n}px`,t.marginTop="0px",t.marginBottom="0px",t.position="absolute",t.width="1900px",t.top=A.logoTop,t.left=A.logoLeft,t.transform=A.logoTransform,t.zIndex="10000",t.pointerEvents="none",A.zIndex&&A.zIndex()},d=t=>{if(!k)return;const e=k.style;t==="big"&&!window.bigActive?(e.maxHeight=`${n}px`,e.minHeight=`${n}px`,e.position="absolute",e.top=A.logoTop,e.zIndex="10000",window.loadBig()):t==="small"&&!window.smallActive&&(e.maxHeight=`${c}px`,e.minHeight=`${c}px`,e.position="fixed",e.top="0px",e.zIndex="100000",window.loadSmall())},g=()=>{const t=a.scrollY;l.style,t>=0&&t<=m?d("big"):t>m&&(t>w?d("small"):d("big"),w=t<=0?0:t)},k=y(),A=b();if(!A)return()=>{};let i=null;const m=x;let w=0;return M(),()=>{a.removeEventListener("scroll",g),i&&(clearTimeout(i),i=null)}},j=((x,n=50)=>`linear(${Array.from({length:n+1},(l,a)=>x(a/n)).map(l=>+l.toFixed(4)).join(", ")})`)(x=>{if(x===0||x===1)return x;const n=2*Math.PI/3;return Math.pow(2,-10*x)*Math.sin((x*10-.75)*n)+1}),G=(x={})=>{const n={adScrollHeight:"300vh",bandHeight:24,bandBg:"#222",bandColor:"#fff",bandFontSize:"10px",bandFontFamily:"Arial, Helvetica, sans-serif",bandLetterSpacing:"1px",labelTop:"Advertisement",labelBottomResume:"Scroll to continue",labelBottomMid:"Keep scrolling",labelBottomLate:"Almost there",labelBottomNow:"Content now ↓",progressBarColor:"rgba(255,255,255,0.35)",zIndexTop:9,zIndexBottom:8,bottomBandShowAt:400,bottomBandHideAt:300,snapPx:50,snapOverlap:2,stretchOverlap:20,snapDuration:.9,snapEase:j,onEnter:null,onExit:null,onProgress:null,thresholds:[],...x},c=window.frameElement?window.frameElement:null;if(!c)return()=>{};const l=window.parent;if(!l||l===window)return()=>{};let a=null;try{a=l.document,l.location.href}catch{return()=>{}}const r=(()=>{const t=a.querySelector("#adspot-mobile-mobile-3-above");if(t)return t;let e=c.parentElement;for(;e&&e!==a.body;){if(e.id&&e.id.includes("adspot"))return e;e=e.parentElement}return c.parentElement})();if(!r)return()=>{};const f=r.getAttribute("style"),q=c.getAttribute("style"),v=[],N={width:"100vw",marginLeft:"calc(50% - 50vw)",height:n.bandHeight+"px",backgroundColor:n.bandBg,color:n.bandColor,fontSize:n.bandFontSize,fontFamily:n.bandFontFamily,textTransform:"uppercase",letterSpacing:n.bandLetterSpacing,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"};(()=>{const t=r.style;t.height=n.adScrollHeight,t.maxHeight=n.adScrollHeight,t.position="relative",r.setAttribute("poweredAC","0.1.3"),t.clipPath=`inset(-${n.bandHeight-1}px 0 0 0)`,t.overflow="visible",t.width="100vw",t.maxWidth="100vw",t.marginLeft="calc(50% - 50vw)",t.marginRight="0",t.marginTop="0",t.marginBottom="0",t.padding="0";let e=r.parentElement;for(let E=0;E<6&&e&&e!==a.body;E++){const T=l.getComputedStyle(e);let H=!1;(T.overflow==="hidden"||T.overflowY==="hidden")&&(v.push({el:e,prop:"overflow",val:e.style.overflow}),v.push({el:e,prop:"overflowY",val:e.style.overflowY}),e.style.overflow="visible",e.style.overflowY="visible",H=!0);const L=parseFloat(T.height);T.height!=="auto"&&!isNaN(L)&&L<600&&(v.push({el:e,prop:"height",val:e.style.height}),e.style.height="auto",H=!0);const D=T.maxHeight;if(D&&D!=="none"&&(v.push({el:e,prop:"maxHeight",val:e.style.maxHeight}),e.style.maxHeight="none",H=!0),!H&&E>1)break;e=e.parentElement}const p=c.style;p.position="fixed",p.top="0",p.left="0",p.width="100vw",p.height="100vh",p.maxWidth="100vw",p.margin="0",p.padding="0",p.border="none",p.zIndex="1";const h=a.createElement("div");h.id="interscroller-top-band-wrapper",Object.assign(h.style,{position:"sticky",bottom:"0",width:"100vw",marginLeft:"calc(50% - 50vw)",zIndex:n.zIndexTop,pointerEvents:"none"});const o=a.createElement("div");o.id="interscroller-top-band",o.textContent=n.labelTop,Object.assign(o.style,N,{position:"relative",width:"100%",marginLeft:"0",transformOrigin:"top center"}),h.appendChild(o),r.insertAdjacentElement("beforebegin",h);const s=a.createElement("div");s.id="interscroller-bottom-band",Object.assign(s.style,N,{position:"fixed",bottom:"0",left:"0",zIndex:n.zIndexBottom,display:"flex",overflow:"hidden",transform:"translateY(100%)",transition:"none"});const u=a.createElement("span");if(u.id="interscroller-bottom-label",u.textContent=n.labelBottomResume,u.style.cssText="position:relative;z-index:1;pointer-events:none;",s.appendChild(u),n.progressBarColor){const E=a.createElement("span");E.id="interscroller-bottom-progress",E.style.cssText=["position:absolute","inset:0","width:0%",`background:${n.progressBarColor}`,"transition:none","z-index:0","pointer-events:none"].join(";"),s.appendChild(E)}r.after(s)})();const S=a.querySelector("#interscroller-top-band"),M=a.querySelector("#interscroller-top-band-wrapper"),y=a.querySelector("#interscroller-bottom-band"),b=a.querySelector("#interscroller-bottom-label"),P=a.querySelector("#interscroller-bottom-progress"),B=n.bandHeight,d=n.snapPx;let g=!1,k=!1,A=!1,i=!1;const m=(n.thresholds||[]).map(()=>!1),w=()=>{if(!y)return;const t=r.getBoundingClientRect(),e=l.innerHeight,p=t.top<=e,h=t.bottom<=e-B,o=i?t.top<=e-n.bottomBandHideAt:t.top<=e-n.bottomBandShowAt,s=r.offsetHeight,u=Math.min(1,Math.max(0,(e-t.top)/(s+e))),E=Math.min(1,Math.max(0,(e-t.top)/(s+B))),T=Math.min(1,Math.max(0,(e-t.top)/s)),H=Math.min(t.bottom,e)-Math.max(t.top-B,0),L=Math.min(1,Math.max(0,H/e)),D=Math.max(0,Math.round(t.bottom-e));!k&&p&&n.onEnter&&n.onEnter(),!A&&h&&n.onExit&&n.onExit(),k=p,A=h,i=o,n.onProgress&&n.onProgress({scrollProgress:u,adExposure:T,viewportCoverage:L,pxRemaining:D}),(n.thresholds||[]).forEach((z,R)=>{const Y=m[R],U=u>=z.at;!Y&&U?(m[R]=!0,z.onEnter&&z.onEnter(u)):Y&&!U&&(m[R]=!1,z.onLeave&&z.onLeave(u))});const $=e;if(S&&t.top<=$+n.stretchOverlap&&!h){const z=$-t.top;if(!g&&z<=d-n.snapOverlap){const R=1+Math.max(0,z+n.stretchOverlap)/B;S.style.transition="none",S.style.transform=`scaleY(${R})`}else!g&&z>d-n.snapOverlap&&(g=!0,S.style.transition=`transform ${n.snapDuration}s ${n.snapEase}`,S.style.transform="scaleY(1)")}else S&&t.top>$+n.stretchOverlap&&(g=!1,S.style.transition="none",S.style.transform="scaleY(1)");const V=l.visualViewport?Math.round(l.innerHeight-(l.visualViewport.offsetTop+l.visualViewport.height)):0;h?(y.style.transition="none",y.style.transform="none",y.style.position="sticky",y.style.top="0",y.style.bottom="",y.style.left="",y.style.marginLeft="calc(50% - 50vw)",y.style.width="100vw",b&&(b.textContent=n.labelBottomNow),P&&(P.style.width="100%")):o?(b&&(b.textContent=D>0?E<.2?n.labelBottomResume:E<.75?n.labelBottomMid:n.labelBottomLate:n.labelBottomNow),P&&(P.style.width=`${Math.round(E*100)}%`),y.style.transition="transform 0.3s ease",y.style.transform="translateY(0)",y.style.position="fixed",y.style.bottom=`${V}px`,y.style.top="",y.style.left="0",y.style.marginLeft="0",y.style.width="100vw"):(y.style.transition="transform 0.3s ease",y.style.transform="translateY(100%)",y.style.position="fixed",y.style.bottom=`${V}px`,y.style.left="0",y.style.marginLeft="0",y.style.width="100vw")};return w(),l.addEventListener("scroll",w,{passive:!0}),l.visualViewport?.addEventListener("resize",w,{passive:!0}),()=>{l.removeEventListener("scroll",w),l.visualViewport?.removeEventListener("resize",w),M?M.remove():S&&S.remove(),y&&y.remove(),f?r.setAttribute("style",f):r.removeAttribute("style"),q?c.setAttribute("style",q):c.removeAttribute("style"),v.forEach(({el:t,prop:e,val:p})=>{t.style[e]=p||""})}},K=(x={})=>{const n={adaptToWidth:"100%",maxWidth:"400px",maintainAspectRatio:!0,adaptToHeight:!1,zIndex:7,onAdapt:null,...x},c=window.frameElement??null;if(!c)return()=>{};const l=window.parent;if(!l||l===window)return()=>{};let a=null;try{a=l.document,l.location.href}catch{return()=>{}}const r=(()=>{const d=a.querySelector("#adspot-mobile-mbanner-2-above");if(d)return d;let g=c.parentElement;for(;g&&g!==a.body;){if(g.id&&g.id.includes("adspot"))return g;g=g.parentElement}return c.parentElement})();if(!r)return()=>{};const f=r.getAttribute("style"),q=c.getAttribute("style"),v=c.parentElement!==r?c.parentElement:null,N=v?v.getAttribute("style"):null,I=r.parentElement,S=I?l.getComputedStyle(I).paddingTop:null,M=parseInt(c.getAttribute("width"),10)||320,y=parseInt(c.getAttribute("height"),10)||50,b=()=>{const d=r.style;if(d.position="relative",d.overflow="visible",d.boxSizing="border-box",r.setAttribute("poweredAC","0.1.3"),v){const k=v.style;k.width="100%",k.height="100%",k.margin="0",k.textAlign="left"}const g=c.style;g.display="block",g.width="100%",g.height="100%",g.border="none",g.margin="0",g.padding="0"},P=()=>{const d=r.style;d.zIndex=String(n.zIndex),n.adaptToWidth&&(d.width=n.adaptToWidth,d.maxWidth=n.maxWidth||n.adaptToWidth,n.maxWidth&&n.adaptToWidth!=="100vw"&&!n.adaptToWidth.endsWith("vw")?(d.marginLeft="auto",d.marginRight="auto"):(n.adaptToWidth==="100vw"||n.adaptToWidth.endsWith("vw"))&&(d.marginLeft="calc(50% - 50vw)",d.marginRight="0")),I&&S&&S!=="0px"&&(I.style.paddingTop="0"),n.maintainAspectRatio?l.requestAnimationFrame(()=>{const k=r.offsetWidth||M,i=Math.round(k*(y/M));r.style.height=i+"px",v&&(v.style.height=i+"px"),c.style.height=i+"px",n.onAdapt&&n.onAdapt()}):(n.adaptToHeight&&(d.height=n.adaptToHeight),n.onAdapt&&n.onAdapt())};return b(),P(),()=>{f?r.setAttribute("style",f):r.removeAttribute("style"),q?c.setAttribute("style",q):c.removeAttribute("style"),v&&(N?v.setAttribute("style",N):v.removeAttribute("style")),I&&S&&S!=="0px"&&(I.style.paddingTop=S)}},J=(x={})=>{const n={billboardHeight:150,sideStripWidth:10,zIndex:0,onAdapt:null,...x},c=window.frameElement??null;if(!c)return()=>{};const l=window.parent;if(!l||l===window)return()=>{};let a=null;try{a=l.document,l.location.href}catch{return()=>{}}const r=(()=>{const t=a.querySelector("#adspot-mobile-mbanner-2-above");if(t)return t;let e=c.parentElement;for(;e&&e!==a.body;){if(e.id&&e.id.includes("adspot"))return e;e=e.parentElement}return c.parentElement})();if(!r)return()=>{};const f={nine:{siteBackgroundColor:"#ffffff",setup(t,e){t.querySelector("main")?.style.setProperty("position","relative");const p=e?.parentElement?.nextElementSibling;p&&p.tagName!=="HEADER"&&(p.style.paddingTop="0px")}},wwos:{siteBackgroundColor:"#ffffff",setup(t,e){t.querySelector("main")?.style.setProperty("position","relative");const p=e?.parentElement?.nextElementSibling;p&&p.tagName!=="HEADER"&&(p.style.paddingTop="0px")}},nineNews:{siteBackgroundColor:"#ffffff",setup(t){const e=t.querySelector(".layout");e&&(e.style.backgroundColor="transparent"),t.querySelector(".content")?.style.setProperty("position","relative")}},lifestyle:{siteBackgroundColor:"#ffffff",setup(t){t.querySelector("main")?.style.setProperty("position","relative")}},smh:{siteBackgroundColor:"#ffffff",setup(t){t.querySelector("main")?.style.setProperty("position","relative")}},theage:{siteBackgroundColor:"#ffffff",setup(t){t.querySelector("main")?.style.setProperty("position","relative")}}},q=[{site:"https://www.nine.com.au/sport",config:f.wwos},{site:"https://staging.nine.com.au/sport",config:f.wwos},{site:"https://www.nine.com.au",config:f.nine},{site:"https://staging.nine.com.au",config:f.nine},{site:"https://preview.nine.com.au",config:f.nine},{site:"https://www.9news",config:f.nineNews},{site:"https://staging.9news",config:f.nineNews},{site:"https://honey",config:f.lifestyle},{site:"https://www.smh",config:f.smh},{site:"https://www.theage",config:f.theage},{site:"https://creative-preview-an.com",config:f.nine}],N=(()=>{const t=l.location.href;for(const e of q)if(t.indexOf(e.site)>=0)return e.config;return f.nine})(),I=c.getAttribute("style"),S=r.getAttribute("style"),M=c.parentElement!==r?c.parentElement:null,y=M?M.getAttribute("style"):null,b=r.parentElement,P=b?b.getAttribute("style"):null;let B=null,d=null;const g=[],k=()=>{let t=c.parentElement;for(;t&&t!==a.body&&t!==a.documentElement;){const s=l.getComputedStyle(t);(s.transform&&s.transform!=="none"||s.willChange&&s.willChange!=="auto"||s.contain&&s.contain!=="none"||s.filter&&s.filter!=="none"||s.perspective&&s.perspective!=="none")&&(g.push({el:t,orig:t.getAttribute("style")}),t.style.transform="none",t.style.willChange="auto",t.style.contain="none",t.style.filter="none",t.style.perspective="none"),s.overflow!=="visible"&&(g.find(E=>E.el===t)||g.push({el:t,orig:t.getAttribute("style")}),t.style.overflow="visible"),t=t.parentElement}const e=c.style;if(e.position="fixed",e.top="0",e.left="0",e.width="100vw",e.height="100vh",e.zIndex=String(n.zIndex),e.border="none",e.margin="0",e.padding="0",e.display="block",r.setAttribute("poweredAC","0.1.3"),M){const s=M.style;s.width="100%",s.height="0",s.overflow="visible",s.position="static",s.margin="0"}const p=r.style;p.height=n.billboardHeight+"px",p.minHeight=n.billboardHeight+"px",p.background="transparent",p.overflow="visible",p.position="relative",p.width="100%",p.padding="0",p.margin="0",b&&(b.style.overflow="visible",b.style.position="relative",b.style.backgroundColor="transparent",b.style.height=n.billboardHeight+"px",b.style.minHeight=n.billboardHeight+"px",b.style.maxHeight=n.billboardHeight+"px",b.style.padding="0",b.style.margin="0",b.setAttribute("data-mf-slot",""));const h=`max(${n.sideStripWidth}px, env(safe-area-inset-left))`,o=`max(${n.sideStripWidth}px, env(safe-area-inset-right))`;B=a.createElement("style"),B.id="mobilefireplace-pac",B.textContent=`
25
+ `,o.head.appendChild(E)}}},S={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-32,adNodeMarginBottom:8,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:16,stickyMargin:{offset:160,isSticky:!0},maskOffset:window.parent.document.querySelector('div[class*="VideoIndexComponent"]')?324:292,zIndex:function(){const o=window.parent.document;o.querySelector(".header-wrapper")?.setAttribute("style","height:124px"),o.querySelector(".weather-widget-wrapper")?.setAttribute("style","bottom:0px"),o.querySelector(".content")?.setAttribute("style","padding-top:32px"),o.querySelector(".layout")?.setAttribute("style","position:relative;background-color:transparent;"),o.querySelector(".footer-ad")?.setAttribute("style","position:relative"),o.querySelector(".footer-netkit")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);");const s=o.querySelector('[class*="VideoIndexComponent"]');s&&(o.querySelector(".breadcrumbs")?.setAttribute("style","display:none"),s.style.maxWidth="1190px",s.style.margin="auto",s.style.position="relative")}},M=[{site:"https://www.nine.com.au/sport",config:N},{site:"https://www.nine.com.au/product-reviews",config:q},{site:"https://www.nine.com.au/property",config:q},{site:"https://www.nine.com.au/entertainment",config:q},{site:"https://staging.nine.com.au/sport",config:N},{site:"https://staging.nine.com.au/product-reviews",config:q},{site:"https://staging.nine.com.au/property",config:q},{site:"https://staging.nine.com.au/entertainment",config:q},{site:"https://render-web-nine-staging-v1.ffxblue.com.au",config:v},{site:"https://render-web-nine-production-v1.ffxblue.com.au",config:v},{site:"https://preview.nine.com.au/",config:v},{site:"https://www.nine",config:v},{site:"https://staging.nine",config:v},{site:"https://entertainment",config:f},{site:"https://celebrity",config:f},{site:"https://homes",config:f},{site:"https://travel",config:f},{site:"https://honey",config:f},{site:"https://style",config:f},{site:"https://coach",config:f},{site:"https://kitchen",config:f},{site:"https://finance",config:f},{site:"https://wwos",config:I},{site:"https://staging.wwos",config:N},{site:"https://www.9news",config:S},{site:"https://staging.9news",config:S},{site:"https://www.yourtv",config:f},{site:"https://staging.yourtv",config:f},{site:"https://9now",config:q},{site:"https://creative-preview-an.com",config:f}],y=()=>{const o=window.document.getElementById("nineContent");o&&(o.style.backgroundColor=t.siteBackgroundColor),a&&(C.setProperty("--masthead-height","250px"),C.height="var(--masthead-height)"),g(),d(),P(),k(),c.addEventListener("scroll",m,{passive:!0}),e=setTimeout(m,50)},b=()=>{let o=null;return o=l.querySelector('div[id*="billboard"][id*="above"]'),o},P=()=>{let o=null;if(!window.parent)return o;if(o=l.querySelector('div[id*="halfpage"][id*="above"]'),!o)return;let s=o;for(let u=0;u<3;u++)if(s=s.parentNode,s&&getComputedStyle(s).position==="sticky"){s.setAttribute("style",`top: ${t.stickyMargin.offset}px`);break}},B=()=>{const o=c.location.href;for(let s=0;s<M.length;s+=1)if(o.indexOf(M[s].site)>=0)return M[s].config},d=()=>{if(!n)return;const o=n.style;o.width="100%",o.height="1000px",o.position="fixed",o.left="50%",o.setProperty("--transform-y","0px"),o.transform="translate3d(-50%, var(--transform-y), 0)"},g=()=>{if(!w)return;const o=w.style;w.className="",o.minHeight="250px",o.marginTop=t.adNodeMarginTop+"px",o.marginBottom=t.adNodeMarginBottom+"px",o.position="static",o.display="block",t.zIndex&&t.zIndex()},k=()=>{r=l.querySelector('div[data-contentunit-id="stan"]')?.parentNode||l.querySelector('div[data-ui-testid="header-score-strip"]')?.parentNode||l.querySelector('div[class*="__MyContainer"]')||l.querySelector('div[class*="__ArticleContainer"]')||l.querySelector('div[class*="__VideoIndexComponent"]')||l.querySelector("div.container.layout")||l.querySelector("main.container.layout"),r&&(r.style.willChange="clip-path",r.style.transition="none",r.style.webkitBackfaceVisibility="hidden",r.style.backfaceVisibility="hidden",r.style.transform="translate3d(0,0,0)",r.style.backgroundColor=t.siteBackgroundColor,r.style.setProperty("--mask-inset","0px"),r.style.clipPath="inset(var(--mask-inset, 0px) 0 0 0)")};let A=0,i=0;const m=()=>{const o=c.scrollY,s=o>A,u=o>h?o-t.maskOffset:0,E=Math.abs(u-i);if(r)if(s&&u>i)if(E>100){const T=Math.max(0,u-100);r.style.transition="none",r.style.setProperty("--mask-inset",`${T}px`),r.offsetHeight,r.style.transition="clip-path 0.3s ease-out",r.style.setProperty("--mask-inset",`${u}px`)}else r.style.transition="clip-path 0.3s ease-out",r.style.setProperty("--mask-inset",`${u}px`);else r.style.transition="none",r.style.setProperty("--mask-inset",`${u}px`);A=o,i=u,o>h?(n.style.setProperty("--transform-y",`${-p}px`),C.setProperty("--masthead-height","100px"),window.CollantOn||window.goCollant()):o>p&&o<=h?(n.style.setProperty("--transform-y",`${-p}px`),C.setProperty("--masthead-height",`${250+p-o}px`),window.CollantOn&&window.goBillboard()):o>=0&&o<=p&&(n.style.setProperty("--transform-y",`${-o}px`),C.setProperty("--masthead-height","250px"),window.CollantOn&&window.goBillboard())},w=b(),t=B();if(!t)return()=>{};let e=null;const p=-t.responsiveScroll+x,h=p+150;return y(),()=>{c.removeEventListener("scroll",m),e&&(clearTimeout(e),e=null)}},X=(x,n,c)=>{const l=window.frameElement?window.frameElement:null;if(!l)return()=>{};const a=window.parent;if(!a||a===window)return()=>{};let C=null;try{C=a.document,a.location.href}catch{return()=>{}}const r={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"250px",logoSmallTransform:"translateX(0px)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,e=(p,h)=>p.forEach(o=>h.forEach(([s,u])=>o.style[s]=u));t.querySelector(".container--padded")?.setAttribute("style","position:relative"),e(t.querySelectorAll(".advert"),[["position","relative"]]),t.querySelector(".footer-netkit")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},f={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,e=(p,h)=>p.forEach(o=>h.forEach(([s,u])=>o.style[s]=u));t.querySelector(".nk-demographics")?.setAttribute("style","max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector(".nk-footer")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector("article")?.setAttribute("style","position:relative"),t.querySelector("#article")?.setAttribute("style","position:relative"),t.querySelector("#VideoIndex")?.setAttribute("style","position:relative"),t.querySelector("#Index")?.setAttribute("style","position:relative"),t.querySelector(".show")?.setAttribute("style","position:relative"),e(t.querySelectorAll(".column"),[["position","relative"]]),e(t.querySelectorAll(".advert"),[["position","relative"]]),e(t.querySelectorAll("blockquote"),[["zIndex","1"]]),t.querySelector('div[class*="article__MyContainer"]')?.setAttribute("style","max-width:1190px;margin-top:-24px"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},q={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,e=(p,h)=>p.forEach(o=>h.forEach(([s,u])=>o.style[s]=u));t.querySelector(".nk-demographics")?.setAttribute("style","max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector(".nk-footer")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector("article")?.setAttribute("style","position:relative"),t.querySelector("#article")?.setAttribute("style","position:relative"),t.querySelector("#VideoIndex")?.setAttribute("style","position:relative"),t.querySelector("#Index")?.setAttribute("style","position:relative"),t.querySelector(".show")?.setAttribute("style","position:relative"),e(t.querySelectorAll(".column"),[["position","relative"]]),e(t.querySelectorAll(".advert"),[["position","relative"]]),e(t.querySelectorAll("blockquote"),[["zIndex","1"]]),t.querySelector('div[class^="component__StrapContainer"]')?.setAttribute("style","position:relative"),t.querySelector('section[class^="WatchNow__Container"]')?.setAttribute("style","margin-left:calc(50% - 49vw);margin-right:calc(50% - 49vw + 10px);"),t.querySelector('div[class*="ArticleContainer"]')?.setAttribute("style","max-width:1190px;margin-top:0px"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},v={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,e=(p,h)=>p.forEach(o=>h.forEach(([s,u])=>o.style[s]=u));t.querySelector('section[data-section="marketing-banner"]')?.setAttribute("style","position:relative"),t.querySelector(".container--ads")?.setAttribute("style","min-height:0"),t.getElementById("mastheadAnchorToggle")?.setAttribute("style","display:none"),e(t.querySelectorAll(".advert"),[["position","relative"]]),e(t.querySelectorAll("iframe"),[["position","relative"]]),t.querySelector('div[data-testid="live-tv"]')?.parentNode?.setAttribute("style","position:relative"),t.querySelector('div[data-contentunit-id="stan"]')?.parentNode?.setAttribute("style","position:relative"),e(t.querySelectorAll("small"),[["position","relative"]]),t.querySelector("small")?.setAttribute("style","position:inherit"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},N={siteBackgroundColor:"#ffffff",logoTop:"-148px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,e=(p,h)=>p.forEach(o=>h.forEach(([s,u])=>o.style[s]=u));t.querySelector(".container--padded")?.setAttribute("style","position:relative"),e(t.querySelectorAll(".advert"),[["position","relative"]]),t.querySelector(".footer-netkit")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},I={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"invert(1)",zIndex:function(){const t=window.parent.document;t.querySelector(".header-wrapper")?.setAttribute("style","height:124px"),t.querySelector(".weather-widget-wrapper")?.setAttribute("style","bottom:0px"),t.querySelector(".content")?.setAttribute("style","padding-top:32px"),t.querySelector(".layout")?.setAttribute("style","position:relative;background-color:transparent;"),t.querySelector(".footer-ad")?.setAttribute("style","position:relative"),t.querySelector(".footer-netkit")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},S=[{site:"https://www.nine.com.au/sport",config:r},{site:"https://www.nine.com.au/product-reviews",config:q},{site:"https://www.nine.com.au/property",config:q},{site:"https://www.nine.com.au/entertainment",config:q},{site:"https://staging.nine.com.au/sport",config:r},{site:"https://staging.nine.com.au/product-reviews",config:q},{site:"https://staging.nine.com.au/property",config:q},{site:"https://staging.nine.com.au/entertainment",config:q},{site:"https://render-web-nine-staging-v1.ffxblue.com.au",config:v},{site:"https://render-web-nine-production-v1.ffxblue.com.au",config:v},{site:"https://preview.nine.com.au/",config:v},{site:"https://www.nine",config:v},{site:"https://staging.nine",config:v},{site:"https://entertainment",config:f},{site:"https://celebrity",config:f},{site:"https://homes",config:f},{site:"https://travel",config:f},{site:"https://honey",config:f},{site:"https://style",config:f},{site:"https://coach",config:f},{site:"https://kitchen",config:f},{site:"https://finance",config:f},{site:"https://wwos",config:N},{site:"https://staging.wwos",config:N},{site:"https://www.9news",config:I},{site:"https://staging.9news",config:I},{site:"https://www.yourtv",config:f},{site:"https://staging.yourtv",config:f},{site:"https://9now",config:q},{site:"https://creative-preview-an.com",config:f}],M=()=>{const t=window.document.getElementById("logo-small");t&&(t.style.left=A.logoSmallLeft,t.style.transform=A.logoSmallTransform,t.style.filter=A.logoSmallFilter),B(),P(),a.addEventListener("scroll",g),i=setTimeout(g,50)},y=()=>{let t=null;return t=C.querySelector('div[id*="desktop"][id*="takeover"][id*="above"]'),t},b=()=>{const t=a.location.href;for(let e=0;e<S.length;e+=1)if(t.indexOf(S[e].site)>=0)return S[e].config},P=()=>{if(!l)return;const t=l.style;t.width="100%",t.height=`${n}px`,t.position="relative"},B=()=>{if(!k)return;const t=k.style;t.maxHeight=`${n}px`,t.minHeight=`${n}px`,t.marginTop="0px",t.marginBottom="0px",t.position="absolute",t.width="1900px",t.top=A.logoTop,t.left=A.logoLeft,t.transform=A.logoTransform,t.zIndex="10000",t.pointerEvents="none",A.zIndex&&A.zIndex()},d=t=>{if(!k)return;const e=k.style;t==="big"&&!window.bigActive?(e.maxHeight=`${n}px`,e.minHeight=`${n}px`,e.position="absolute",e.top=A.logoTop,e.zIndex="10000",window.loadBig()):t==="small"&&!window.smallActive&&(e.maxHeight=`${c}px`,e.minHeight=`${c}px`,e.position="fixed",e.top="0px",e.zIndex="100000",window.loadSmall())},g=()=>{const t=a.scrollY;l.style,t>=0&&t<=m?d("big"):t>m&&(t>w?d("small"):d("big"),w=t<=0?0:t)},k=y(),A=b();if(!A)return()=>{};let i=null;const m=x;let w=0;return M(),()=>{a.removeEventListener("scroll",g),i&&(clearTimeout(i),i=null)}},j=((x,n=50)=>`linear(${Array.from({length:n+1},(l,a)=>x(a/n)).map(l=>+l.toFixed(4)).join(", ")})`)(x=>{if(x===0||x===1)return x;const n=2*Math.PI/3;return Math.pow(2,-10*x)*Math.sin((x*10-.75)*n)+1}),G=(x={})=>{const n={adScrollHeight:"300vh",bandHeight:24,bandBg:"#222",bandColor:"#fff",bandFontSize:"10px",bandFontFamily:"Arial, Helvetica, sans-serif",bandLetterSpacing:"1px",labelTop:"Advertisement",labelBottomResume:"Scroll to continue",labelBottomMid:"Keep scrolling",labelBottomLate:"Almost there",labelBottomNow:"Content now ↓",progressBarColor:"rgba(255,255,255,0.35)",zIndexTop:9,zIndexBottom:8,bottomBandShowAt:400,bottomBandHideAt:300,snapPx:50,snapOverlap:2,stretchOverlap:20,snapDuration:.9,snapEase:j,onEnter:null,onExit:null,onProgress:null,thresholds:[],...x},c=window.frameElement?window.frameElement:null;if(!c)return()=>{};const l=window.parent;if(!l||l===window)return()=>{};let a=null;try{a=l.document,l.location.href}catch{return()=>{}}const r=(()=>{const t=a.querySelector("#adspot-mobile-mobile-3-above");if(t)return t;let e=c.parentElement;for(;e&&e!==a.body;){if(e.id&&e.id.includes("adspot"))return e;e=e.parentElement}return c.parentElement})();if(!r)return()=>{};const f=r.getAttribute("style"),q=c.getAttribute("style"),v=[],N={width:"100vw",marginLeft:"calc(50% - 50vw)",height:n.bandHeight+"px",backgroundColor:n.bandBg,color:n.bandColor,fontSize:n.bandFontSize,fontFamily:n.bandFontFamily,textTransform:"uppercase",letterSpacing:n.bandLetterSpacing,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"};(()=>{const t=r.style;t.height=n.adScrollHeight,t.maxHeight=n.adScrollHeight,t.position="relative",r.setAttribute("poweredAC","0.1.4"),t.clipPath=`inset(-${n.bandHeight-1}px 0 0 0)`,t.overflow="visible",t.width="100vw",t.maxWidth="100vw",t.marginLeft="calc(50% - 50vw)",t.marginRight="0",t.marginTop="0",t.marginBottom="0",t.padding="0";let e=r.parentElement;for(let E=0;E<6&&e&&e!==a.body;E++){const T=l.getComputedStyle(e);let H=!1;(T.overflow==="hidden"||T.overflowY==="hidden")&&(v.push({el:e,prop:"overflow",val:e.style.overflow}),v.push({el:e,prop:"overflowY",val:e.style.overflowY}),e.style.overflow="visible",e.style.overflowY="visible",H=!0);const L=parseFloat(T.height);T.height!=="auto"&&!isNaN(L)&&L<600&&(v.push({el:e,prop:"height",val:e.style.height}),e.style.height="auto",H=!0);const D=T.maxHeight;if(D&&D!=="none"&&(v.push({el:e,prop:"maxHeight",val:e.style.maxHeight}),e.style.maxHeight="none",H=!0),!H&&E>1)break;e=e.parentElement}const p=c.style;p.position="fixed",p.top="0",p.left="0",p.width="100vw",p.height="100vh",p.maxWidth="100vw",p.margin="0",p.padding="0",p.border="none",p.zIndex="1";const h=a.createElement("div");h.id="interscroller-top-band-wrapper",Object.assign(h.style,{position:"sticky",bottom:"0",width:"100vw",marginLeft:"calc(50% - 50vw)",zIndex:n.zIndexTop,pointerEvents:"none"});const o=a.createElement("div");o.id="interscroller-top-band",o.textContent=n.labelTop,Object.assign(o.style,N,{position:"relative",width:"100%",marginLeft:"0",transformOrigin:"top center"}),h.appendChild(o),r.insertAdjacentElement("beforebegin",h);const s=a.createElement("div");s.id="interscroller-bottom-band",Object.assign(s.style,N,{position:"fixed",bottom:"0",left:"0",zIndex:n.zIndexBottom,display:"flex",overflow:"hidden",transform:"translateY(100%)",transition:"none"});const u=a.createElement("span");if(u.id="interscroller-bottom-label",u.textContent=n.labelBottomResume,u.style.cssText="position:relative;z-index:1;pointer-events:none;",s.appendChild(u),n.progressBarColor){const E=a.createElement("span");E.id="interscroller-bottom-progress",E.style.cssText=["position:absolute","inset:0","width:0%",`background:${n.progressBarColor}`,"transition:none","z-index:0","pointer-events:none"].join(";"),s.appendChild(E)}r.after(s)})();const S=a.querySelector("#interscroller-top-band"),M=a.querySelector("#interscroller-top-band-wrapper"),y=a.querySelector("#interscroller-bottom-band"),b=a.querySelector("#interscroller-bottom-label"),P=a.querySelector("#interscroller-bottom-progress"),B=n.bandHeight,d=n.snapPx;let g=!1,k=!1,A=!1,i=!1;const m=(n.thresholds||[]).map(()=>!1),w=()=>{if(!y)return;const t=r.getBoundingClientRect(),e=l.innerHeight,p=t.top<=e,h=t.bottom<=e-B,o=i?t.top<=e-n.bottomBandHideAt:t.top<=e-n.bottomBandShowAt,s=r.offsetHeight,u=Math.min(1,Math.max(0,(e-t.top)/(s+e))),E=Math.min(1,Math.max(0,(e-t.top)/(s+B))),T=Math.min(1,Math.max(0,(e-t.top)/s)),H=Math.min(t.bottom,e)-Math.max(t.top-B,0),L=Math.min(1,Math.max(0,H/e)),D=Math.max(0,Math.round(t.bottom-e));!k&&p&&n.onEnter&&n.onEnter(),!A&&h&&n.onExit&&n.onExit(),k=p,A=h,i=o,n.onProgress&&n.onProgress({scrollProgress:u,adExposure:T,viewportCoverage:L,pxRemaining:D}),(n.thresholds||[]).forEach((z,R)=>{const Y=m[R],U=u>=z.at;!Y&&U?(m[R]=!0,z.onEnter&&z.onEnter(u)):Y&&!U&&(m[R]=!1,z.onLeave&&z.onLeave(u))});const $=e;if(S&&t.top<=$+n.stretchOverlap&&!h){const z=$-t.top;if(!g&&z<=d-n.snapOverlap){const R=1+Math.max(0,z+n.stretchOverlap)/B;S.style.transition="none",S.style.transform=`scaleY(${R})`}else!g&&z>d-n.snapOverlap&&(g=!0,S.style.transition=`transform ${n.snapDuration}s ${n.snapEase}`,S.style.transform="scaleY(1)")}else S&&t.top>$+n.stretchOverlap&&(g=!1,S.style.transition="none",S.style.transform="scaleY(1)");const V=l.visualViewport?Math.round(l.innerHeight-(l.visualViewport.offsetTop+l.visualViewport.height)):0;h?(y.style.transition="none",y.style.transform="none",y.style.position="sticky",y.style.top="0",y.style.bottom="",y.style.left="",y.style.marginLeft="calc(50% - 50vw)",y.style.width="100vw",b&&(b.textContent=n.labelBottomNow),P&&(P.style.width="100%")):o?(b&&(b.textContent=D>0?E<.2?n.labelBottomResume:E<.75?n.labelBottomMid:n.labelBottomLate:n.labelBottomNow),P&&(P.style.width=`${Math.round(E*100)}%`),y.style.transition="transform 0.3s ease",y.style.transform="translateY(0)",y.style.position="fixed",y.style.bottom=`${V}px`,y.style.top="",y.style.left="0",y.style.marginLeft="0",y.style.width="100vw"):(y.style.transition="transform 0.3s ease",y.style.transform="translateY(100%)",y.style.position="fixed",y.style.bottom=`${V}px`,y.style.left="0",y.style.marginLeft="0",y.style.width="100vw")};return w(),l.addEventListener("scroll",w,{passive:!0}),l.visualViewport?.addEventListener("resize",w,{passive:!0}),()=>{l.removeEventListener("scroll",w),l.visualViewport?.removeEventListener("resize",w),M?M.remove():S&&S.remove(),y&&y.remove(),f?r.setAttribute("style",f):r.removeAttribute("style"),q?c.setAttribute("style",q):c.removeAttribute("style"),v.forEach(({el:t,prop:e,val:p})=>{t.style[e]=p||""})}},K=(x={})=>{const n={adaptToWidth:"100%",maxWidth:"400px",maintainAspectRatio:!0,adaptToHeight:!1,zIndex:7,onAdapt:null,...x},c=window.frameElement??null;if(!c)return()=>{};const l=window.parent;if(!l||l===window)return()=>{};let a=null;try{a=l.document,l.location.href}catch{return()=>{}}const r=(()=>{const d=a.querySelector("#adspot-mobile-mbanner-2-above");if(d)return d;let g=c.parentElement;for(;g&&g!==a.body;){if(g.id&&g.id.includes("adspot"))return g;g=g.parentElement}return c.parentElement})();if(!r)return()=>{};const f=r.getAttribute("style"),q=c.getAttribute("style"),v=c.parentElement!==r?c.parentElement:null,N=v?v.getAttribute("style"):null,I=r.parentElement,S=I?l.getComputedStyle(I).paddingTop:null,M=parseInt(c.getAttribute("width"),10)||320,y=parseInt(c.getAttribute("height"),10)||50,b=()=>{const d=r.style;if(d.position="relative",d.overflow="visible",d.boxSizing="border-box",r.setAttribute("poweredAC","0.1.4"),v){const k=v.style;k.width="100%",k.height="100%",k.margin="0",k.textAlign="left"}const g=c.style;g.display="block",g.width="100%",g.height="100%",g.border="none",g.margin="0",g.padding="0"},P=()=>{const d=r.style;d.zIndex=String(n.zIndex),n.adaptToWidth&&(d.width=n.adaptToWidth,d.maxWidth=n.maxWidth||n.adaptToWidth,n.maxWidth&&n.adaptToWidth!=="100vw"&&!n.adaptToWidth.endsWith("vw")?(d.marginLeft="auto",d.marginRight="auto"):(n.adaptToWidth==="100vw"||n.adaptToWidth.endsWith("vw"))&&(d.marginLeft="calc(50% - 50vw)",d.marginRight="0")),I&&S&&S!=="0px"&&(I.style.paddingTop="0"),n.maintainAspectRatio?l.requestAnimationFrame(()=>{const k=r.offsetWidth||M,i=Math.round(k*(y/M));r.style.height=i+"px",v&&(v.style.height=i+"px"),c.style.height=i+"px",n.onAdapt&&n.onAdapt()}):(n.adaptToHeight&&(d.height=n.adaptToHeight),n.onAdapt&&n.onAdapt())};return b(),P(),()=>{f?r.setAttribute("style",f):r.removeAttribute("style"),q?c.setAttribute("style",q):c.removeAttribute("style"),v&&(N?v.setAttribute("style",N):v.removeAttribute("style")),I&&S&&S!=="0px"&&(I.style.paddingTop=S)}},J=(x={})=>{const n={billboardHeight:150,sideStripWidth:10,zIndex:0,onAdapt:null,...x},c=window.frameElement??null;if(!c)return()=>{};const l=window.parent;if(!l||l===window)return()=>{};let a=null;try{a=l.document,l.location.href}catch{return()=>{}}const r=(()=>{const t=a.querySelector("#adspot-mobile-mbanner-2-above");if(t)return t;let e=c.parentElement;for(;e&&e!==a.body;){if(e.id&&e.id.includes("adspot"))return e;e=e.parentElement}return c.parentElement})();if(!r)return()=>{};const f={nine:{siteBackgroundColor:"#ffffff",setup(t,e){t.querySelector("main")?.style.setProperty("position","relative");const p=e?.parentElement?.nextElementSibling;p&&p.tagName!=="HEADER"&&(p.style.paddingTop="0px")}},wwos:{siteBackgroundColor:"#ffffff",setup(t,e){t.querySelector("main")?.style.setProperty("position","relative");const p=e?.parentElement?.nextElementSibling;p&&p.tagName!=="HEADER"&&(p.style.paddingTop="0px")}},nineNews:{siteBackgroundColor:"#ffffff",setup(t){const e=t.querySelector(".layout");e&&(e.style.backgroundColor="transparent"),t.querySelector(".content")?.style.setProperty("position","relative")}},lifestyle:{siteBackgroundColor:"#ffffff",setup(t){t.querySelector("main")?.style.setProperty("position","relative")}},smh:{siteBackgroundColor:"#ffffff",setup(t){t.querySelector("main")?.style.setProperty("position","relative")}},theage:{siteBackgroundColor:"#ffffff",setup(t){t.querySelector("main")?.style.setProperty("position","relative")}}},q=[{site:"https://www.nine.com.au/sport",config:f.wwos},{site:"https://staging.nine.com.au/sport",config:f.wwos},{site:"https://www.nine.com.au",config:f.nine},{site:"https://staging.nine.com.au",config:f.nine},{site:"https://preview.nine.com.au",config:f.nine},{site:"https://www.9news",config:f.nineNews},{site:"https://staging.9news",config:f.nineNews},{site:"https://honey",config:f.lifestyle},{site:"https://www.smh",config:f.smh},{site:"https://www.theage",config:f.theage},{site:"https://creative-preview-an.com",config:f.nine}],N=(()=>{const t=l.location.href;for(const e of q)if(t.indexOf(e.site)>=0)return e.config;return f.nine})(),I=c.getAttribute("style"),S=r.getAttribute("style"),M=c.parentElement!==r?c.parentElement:null,y=M?M.getAttribute("style"):null,b=r.parentElement,P=b?b.getAttribute("style"):null;let B=null,d=null;const g=[],k=()=>{let t=c.parentElement;for(;t&&t!==a.body&&t!==a.documentElement;){const s=l.getComputedStyle(t);(s.transform&&s.transform!=="none"||s.willChange&&s.willChange!=="auto"||s.contain&&s.contain!=="none"||s.filter&&s.filter!=="none"||s.perspective&&s.perspective!=="none")&&(g.push({el:t,orig:t.getAttribute("style")}),t.style.transform="none",t.style.willChange="auto",t.style.contain="none",t.style.filter="none",t.style.perspective="none"),s.overflow!=="visible"&&(g.find(E=>E.el===t)||g.push({el:t,orig:t.getAttribute("style")}),t.style.overflow="visible"),t=t.parentElement}const e=c.style;if(e.position="fixed",e.top="0",e.left="0",e.width="100vw",e.height="100dvh",e.zIndex=String(n.zIndex),e.border="none",e.margin="0",e.padding="0",e.display="block",r.setAttribute("poweredAC","0.1.4"),M){const s=M.style;s.width="100%",s.height="0",s.overflow="visible",s.position="static",s.margin="0"}const p=r.style;p.height=n.billboardHeight+"px",p.minHeight=n.billboardHeight+"px",p.background="transparent",p.overflow="visible",p.position="relative",p.width="100%",p.padding="0",p.margin="0",b&&(b.style.overflow="visible",b.style.position="relative",b.style.backgroundColor="transparent",b.style.height=n.billboardHeight+"px",b.style.minHeight=n.billboardHeight+"px",b.style.maxHeight=n.billboardHeight+"px",b.style.padding="0",b.style.margin="0",b.setAttribute("data-mf-slot",""));const h=`max(${n.sideStripWidth}px, env(safe-area-inset-left))`,o=`max(${n.sideStripWidth}px, env(safe-area-inset-right))`;B=a.createElement("style"),B.id="mobilefireplace-pac",B.textContent=`
26
26
  /* Mobile Fireplace — powered-ad-config */
27
27
  html, body {
28
28
  background-color: transparent !important;
@@ -74,4 +74,4 @@
74
74
  margin: 0 !important;
75
75
  padding: 0 !important;
76
76
  }
77
- `,a.head.appendChild(B),N.setup&&N.setup(a,r)};let A=null;const i=()=>{const t=l.innerWidth,e=l.innerHeight;if(t>e){const p=e/t,h=Math.round(n.billboardHeight*p);r.style.height=h+"px",r.style.minHeight=h+"px",d&&(d.style.height=h+"px")}else r.style.height=n.billboardHeight+"px",r.style.minHeight=n.billboardHeight+"px",d&&(d.style.height=n.billboardHeight+"px")};k();const m=c.src||"";if(m&&m!=="about:blank")try{const t=new URL(m);t.searchParams.set("mfRole","billboard"),d=a.createElement("iframe"),d.src=t.href,d.setAttribute("data-mf-billboard-iframe",""),d.setAttribute("scrolling","no"),d.setAttribute("frameborder","0");const e=d.style;e.position="relative",e.width="100%",e.height=n.billboardHeight+"px",e.border="none",e.margin="0",e.padding="0",e.display="block",e.overflow="hidden",e.background="transparent",e.zIndex="1",r.appendChild(d)}catch(t){console.warn("[mobilefireplace] Could not create billboard iframe:",t)}return l.__mfBridge={adapted:!1,wallpaperWindow:c.contentWindow,billboardIframe:d,billboardWindow:null},d&&d.addEventListener("load",()=>{try{l.__mfBridge.billboardWindow=d.contentWindow}catch{}}),A=i,l.addEventListener("resize",A),i(),n.onAdapt&&l.requestAnimationFrame(()=>{l.__mfBridge.adapted=!0,n.onAdapt()}),()=>{A&&(l.removeEventListener("resize",A),A=null),B&&B.parentNode&&(B.parentNode.removeChild(B),B=null),d&&d.parentNode&&(d.parentNode.removeChild(d),d=null);try{delete l.__mfBridge}catch{}I?c.setAttribute("style",I):c.removeAttribute("style");for(const{el:t,orig:e}of g)e?t.setAttribute("style",e):t.removeAttribute("style");g.length=0,S?r.setAttribute("style",S):r.removeAttribute("style"),M&&(y?M.setAttribute("style",y):M.removeAttribute("style")),b&&(b.removeAttribute("data-mf-slot"),P?b.setAttribute("style",P):b.removeAttribute("style"))}};let O=()=>{};function F({adFormat:x="",stickyOffset:n=0,logoPosX:c=0,logoHeight:l=0,logoSmallHeight:a=0,...C}={}){typeof O=="function"&&O();let r=()=>{};return x==="fireplace"?r=W(n):x==="fireplace-collant"?r=_(n):x==="logomorph"?r=X(c,l,a):x==="interscroller"?r=G(C):x==="liquidframe"?r=K(C):x==="mobilefireplace"?r=J(C):console.warn("[powered-ad-config] Unknown ad format:",x),O=typeof r=="function"?r:()=>{},O}return F.version="0.1.3",F}));
77
+ `,a.head.appendChild(B),N.setup&&N.setup(a,r)};let A=null;const i=()=>{const t=l.innerWidth,e=l.innerHeight;if(t>e){const p=e/t,h=Math.round(n.billboardHeight*p);r.style.height=h+"px",r.style.minHeight=h+"px",d&&(d.style.height=h+"px")}else r.style.height=n.billboardHeight+"px",r.style.minHeight=n.billboardHeight+"px",d&&(d.style.height=n.billboardHeight+"px")};k();const m=c.src||"";if(m&&m!=="about:blank")try{const t=new URL(m);t.searchParams.set("mfRole","billboard"),d=a.createElement("iframe"),d.src=t.href,d.setAttribute("data-mf-billboard-iframe",""),d.setAttribute("scrolling","no"),d.setAttribute("frameborder","0");const e=d.style;e.position="relative",e.width="100%",e.height=n.billboardHeight+"px",e.border="none",e.margin="0",e.padding="0",e.display="block",e.overflow="hidden",e.background="transparent",e.zIndex="1",r.appendChild(d)}catch(t){console.warn("[mobilefireplace] Could not create billboard iframe:",t)}return l.__mfBridge={adapted:!1,wallpaperWindow:c.contentWindow,billboardIframe:d,billboardWindow:null},d&&d.addEventListener("load",()=>{try{l.__mfBridge.billboardWindow=d.contentWindow}catch{}}),A=i,l.addEventListener("resize",A),i(),n.onAdapt&&l.requestAnimationFrame(()=>{l.__mfBridge.adapted=!0,n.onAdapt()}),()=>{A&&(l.removeEventListener("resize",A),A=null),B&&B.parentNode&&(B.parentNode.removeChild(B),B=null),d&&d.parentNode&&(d.parentNode.removeChild(d),d=null);try{delete l.__mfBridge}catch{}I?c.setAttribute("style",I):c.removeAttribute("style");for(const{el:t,orig:e}of g)e?t.setAttribute("style",e):t.removeAttribute("style");g.length=0,S?r.setAttribute("style",S):r.removeAttribute("style"),M&&(y?M.setAttribute("style",y):M.removeAttribute("style")),b&&(b.removeAttribute("data-mf-slot"),P?b.setAttribute("style",P):b.removeAttribute("style"))}};let O=()=>{};function F({adFormat:x="",stickyOffset:n=0,logoPosX:c=0,logoHeight:l=0,logoSmallHeight:a=0,...C}={}){typeof O=="function"&&O();let r=()=>{};return x==="fireplace"?r=W(n):x==="fireplace-collant"?r=_(n):x==="logomorph"?r=X(c,l,a):x==="interscroller"?r=G(C):x==="liquidframe"?r=K(C):x==="mobilefireplace"?r=J(C):console.warn("[powered-ad-config] Unknown ad format:",x),O=typeof r=="function"?r:()=>{},O}return F.version="0.1.4",F}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powered-ad-config",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Configure Ads to load smoothly and at the right position on All Nine's websites",
5
5
  "main": "dist/powered-ad-config.umd.js",
6
6
  "module": "dist/powered-ad-config.es.js",