powered-ad-config 0.1.4 → 0.1.6
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.
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const
|
|
1
|
+
const U = (x) => {
|
|
2
2
|
const n = window.frameElement ? window.frameElement : null;
|
|
3
3
|
if (!n) return () => {
|
|
4
4
|
};
|
|
5
|
-
const
|
|
6
|
-
if (!
|
|
5
|
+
const p = window.parent;
|
|
6
|
+
if (!p || p === window) return () => {
|
|
7
7
|
};
|
|
8
8
|
let l = null;
|
|
9
9
|
try {
|
|
10
|
-
l =
|
|
10
|
+
l = p.document, p.location.href;
|
|
11
11
|
} catch {
|
|
12
12
|
return () => {
|
|
13
13
|
};
|
|
@@ -22,7 +22,7 @@ const V = (x) => {
|
|
|
22
22
|
yPosHalfpage: 72,
|
|
23
23
|
stickyMargin: { offset: 72, isSticky: !0 },
|
|
24
24
|
zIndex: function() {
|
|
25
|
-
const i = window.parent.document, m = (w, t) => w.forEach((e) => t.forEach(([
|
|
25
|
+
const i = window.parent.document, m = (w, t) => w.forEach((e) => t.forEach(([c, h]) => e.style[c] = h));
|
|
26
26
|
i.querySelector(".nk-demographics")?.setAttribute("style", "max-width:1190px;left:50%;transform:translate(-50%,0);"), i.querySelector(".nk-footer")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), i.querySelector("article")?.setAttribute("style", "position:relative"), i.querySelector("#article")?.setAttribute("style", "position:relative"), i.querySelector("#VideoIndex")?.setAttribute("style", "position:relative"), i.querySelector("#Index")?.setAttribute("style", "position:relative"), i.querySelector(".show")?.setAttribute("style", "position:relative"), i.querySelector("#adspot-desktop-banner-7-below")?.setAttribute("style", "position:relative"), m(i.querySelectorAll(".column"), [["position", "relative"]]), m(i.querySelectorAll(".advert"), [["position", "relative"]]), m(i.querySelectorAll("blockquote"), [["zIndex", "1"]]), i.querySelector('div[class*="article__MyContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:-24px"), i.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), i.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none");
|
|
27
27
|
}
|
|
28
28
|
}, C = {
|
|
@@ -35,7 +35,7 @@ const V = (x) => {
|
|
|
35
35
|
yPosHalfpage: 32,
|
|
36
36
|
stickyMargin: { offset: 32, isSticky: !0 },
|
|
37
37
|
zIndex: function() {
|
|
38
|
-
const i = window.parent.document, m = (w, t) => w.forEach((e) => t.forEach(([
|
|
38
|
+
const i = window.parent.document, m = (w, t) => w.forEach((e) => t.forEach(([c, h]) => e.style[c] = h));
|
|
39
39
|
i.querySelector(".nk-demographics")?.setAttribute("style", "max-width:1190px;left:50%;transform:translate(-50%,0);"), i.querySelector(".nk-footer")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), i.querySelector("article")?.setAttribute("style", "position:relative"), i.querySelector("#article")?.setAttribute("style", "position:relative"), i.querySelector("#VideoIndex")?.setAttribute("style", "position:relative"), i.querySelector("#Index")?.setAttribute("style", "position:relative"), i.querySelector(".show")?.setAttribute("style", "position:relative"), m(i.querySelectorAll(".column"), [["position", "relative"]]), m(i.querySelectorAll(".advert"), [["position", "relative"]]), m(i.querySelectorAll("blockquote"), [["zIndex", "1"]]), i.querySelector('div[class^="component__StrapContainer"]')?.setAttribute("style", "position:relative"), i.querySelector('div[class*="ArticleContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:24px"), i.querySelector('div[class*="MyContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:24px");
|
|
40
40
|
}
|
|
41
41
|
}, r = {
|
|
@@ -88,7 +88,7 @@ const V = (x) => {
|
|
|
88
88
|
yPosHalfpage: 32,
|
|
89
89
|
stickyMargin: { offset: 104, isSticky: !0 },
|
|
90
90
|
zIndex: function() {
|
|
91
|
-
const i = window.parent.document, m = (t, e) => t.forEach((
|
|
91
|
+
const i = window.parent.document, m = (t, e) => t.forEach((c) => e.forEach(([h, o]) => c.style[h] = o));
|
|
92
92
|
if (i.querySelector(".container--padded")?.setAttribute("style", "position:relative"), m(i.querySelectorAll(".advert"), [["position", "relative"]]), i.querySelector(".footer-netkit")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), i.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), i.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), i.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none"), i.querySelector('div[id*="tablet"][id*="takeover"]')) {
|
|
93
93
|
let t = i.createElement("style");
|
|
94
94
|
t.innerHTML = `
|
|
@@ -144,12 +144,12 @@ const V = (x) => {
|
|
|
144
144
|
{ site: "https://creative-preview-an.com", config: a }
|
|
145
145
|
], I = () => {
|
|
146
146
|
const i = window.document.getElementById("nineContent");
|
|
147
|
-
i && (i.style.backgroundColor = d.siteBackgroundColor), b(), y(),
|
|
147
|
+
i && (i.style.backgroundColor = d.siteBackgroundColor), b(), y(), p.addEventListener("scroll", P), g = setTimeout(P, 50);
|
|
148
148
|
}, S = () => {
|
|
149
149
|
let i = null;
|
|
150
150
|
return i = l.querySelector('div[id*="billboard"][id*="above"]'), i;
|
|
151
151
|
}, M = () => {
|
|
152
|
-
const i =
|
|
152
|
+
const i = p.location.href;
|
|
153
153
|
for (let m = 0; m < N.length; m += 1)
|
|
154
154
|
if (i.indexOf(N[m].site) >= 0)
|
|
155
155
|
return N[m].config;
|
|
@@ -162,7 +162,7 @@ const V = (x) => {
|
|
|
162
162
|
const i = B.style;
|
|
163
163
|
B.className = "", i.minHeight = "250px", i.marginTop = d.adNodeMarginTop + "px", i.marginBottom = d.adNodeMarginBottom + "px", i.position = "static", i.display = "block", d.zIndex && d.zIndex();
|
|
164
164
|
}, P = () => {
|
|
165
|
-
const i =
|
|
165
|
+
const i = p.scrollY, m = n.style, w = document.getElementById("siteContent") ? document.getElementById("siteContent").style : {};
|
|
166
166
|
i >= 0 && i <= k ? (m.transform = `translate(-50%, ${-i}px)`, w.transform = "translateY(0)") : i > k && i <= A ? (m.transform = `translate(-50%, ${-k}px)`, w.transform = `translateY(${k - i}px)`) : i > A && (m.transform = `translate(-50%, ${-k}px)`, w.transform = "translateY(-250px)");
|
|
167
167
|
}, B = S(), d = M();
|
|
168
168
|
if (!d) return () => {
|
|
@@ -170,18 +170,18 @@ const V = (x) => {
|
|
|
170
170
|
let g = null;
|
|
171
171
|
const k = -d.responsiveScroll + x, A = k + 250;
|
|
172
172
|
return I(), () => {
|
|
173
|
-
|
|
173
|
+
p.removeEventListener("scroll", P), g && (clearTimeout(g), g = null);
|
|
174
174
|
};
|
|
175
|
-
},
|
|
175
|
+
}, V = (x) => {
|
|
176
176
|
const n = window.frameElement ? window.frameElement : null;
|
|
177
177
|
if (!n) return () => {
|
|
178
178
|
};
|
|
179
|
-
const
|
|
180
|
-
if (!
|
|
179
|
+
const p = window.parent;
|
|
180
|
+
if (!p || p === window) return () => {
|
|
181
181
|
};
|
|
182
182
|
let l = null;
|
|
183
183
|
try {
|
|
184
|
-
l =
|
|
184
|
+
l = p.document, p.location.href;
|
|
185
185
|
} catch {
|
|
186
186
|
return () => {
|
|
187
187
|
};
|
|
@@ -328,7 +328,7 @@ const V = (x) => {
|
|
|
328
328
|
{ site: "https://creative-preview-an.com", config: f }
|
|
329
329
|
], y = () => {
|
|
330
330
|
const o = window.document.getElementById("nineContent");
|
|
331
|
-
o && (o.style.backgroundColor = t.siteBackgroundColor), a && (C.setProperty("--masthead-height", "250px"), C.height = "var(--masthead-height)"), g(), d(), P(), k(),
|
|
331
|
+
o && (o.style.backgroundColor = t.siteBackgroundColor), a && (C.setProperty("--masthead-height", "250px"), C.height = "var(--masthead-height)"), g(), d(), P(), k(), p.addEventListener("scroll", m, { passive: !0 }), e = setTimeout(m, 50);
|
|
332
332
|
}, b = () => {
|
|
333
333
|
let o = null;
|
|
334
334
|
return o = l.querySelector('div[id*="billboard"][id*="above"]'), o;
|
|
@@ -343,7 +343,7 @@ const V = (x) => {
|
|
|
343
343
|
break;
|
|
344
344
|
}
|
|
345
345
|
}, B = () => {
|
|
346
|
-
const o =
|
|
346
|
+
const o = p.location.href;
|
|
347
347
|
for (let s = 0; s < M.length; s += 1)
|
|
348
348
|
if (o.indexOf(M[s].site) >= 0)
|
|
349
349
|
return M[s].config;
|
|
@@ -360,7 +360,7 @@ const V = (x) => {
|
|
|
360
360
|
};
|
|
361
361
|
let A = 0, i = 0;
|
|
362
362
|
const m = () => {
|
|
363
|
-
const o =
|
|
363
|
+
const o = p.scrollY, s = o > A, u = o > h ? o - t.maskOffset : 0, E = Math.abs(u - i);
|
|
364
364
|
if (r)
|
|
365
365
|
if (s && u > i)
|
|
366
366
|
if (E > 100) {
|
|
@@ -370,16 +370,16 @@ const V = (x) => {
|
|
|
370
370
|
r.style.transition = "clip-path 0.3s ease-out", r.style.setProperty("--mask-inset", `${u}px`);
|
|
371
371
|
else
|
|
372
372
|
r.style.transition = "none", r.style.setProperty("--mask-inset", `${u}px`);
|
|
373
|
-
A = o, i = u, o > h ? (n.style.setProperty("--transform-y", `${-
|
|
373
|
+
A = o, i = u, o > h ? (n.style.setProperty("--transform-y", `${-c}px`), C.setProperty("--masthead-height", "100px"), window.CollantOn || window.goCollant()) : o > c && o <= h ? (n.style.setProperty("--transform-y", `${-c}px`), C.setProperty("--masthead-height", `${250 + c - o}px`), window.CollantOn && window.goBillboard()) : o >= 0 && o <= c && (n.style.setProperty("--transform-y", `${-o}px`), C.setProperty("--masthead-height", "250px"), window.CollantOn && window.goBillboard());
|
|
374
374
|
}, w = b(), t = B();
|
|
375
375
|
if (!t) return () => {
|
|
376
376
|
};
|
|
377
377
|
let e = null;
|
|
378
|
-
const
|
|
378
|
+
const c = -t.responsiveScroll + x, h = c + 150;
|
|
379
379
|
return y(), () => {
|
|
380
|
-
|
|
380
|
+
p.removeEventListener("scroll", m), e && (clearTimeout(e), e = null);
|
|
381
381
|
};
|
|
382
|
-
},
|
|
382
|
+
}, Y = (x, n, p) => {
|
|
383
383
|
const l = window.frameElement ? window.frameElement : null;
|
|
384
384
|
if (!l) return () => {
|
|
385
385
|
};
|
|
@@ -402,7 +402,7 @@ const V = (x) => {
|
|
|
402
402
|
logoSmallTransform: "translateX(0px)",
|
|
403
403
|
logoSmallFilter: "none",
|
|
404
404
|
zIndex: function() {
|
|
405
|
-
const t = window.parent.document, e = (
|
|
405
|
+
const t = window.parent.document, e = (c, h) => c.forEach((o) => h.forEach(([s, u]) => o.style[s] = u));
|
|
406
406
|
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");
|
|
407
407
|
}
|
|
408
408
|
}, f = {
|
|
@@ -414,7 +414,7 @@ const V = (x) => {
|
|
|
414
414
|
logoSmallTransform: "translateX(-50%)",
|
|
415
415
|
logoSmallFilter: "none",
|
|
416
416
|
zIndex: function() {
|
|
417
|
-
const t = window.parent.document, e = (
|
|
417
|
+
const t = window.parent.document, e = (c, h) => c.forEach((o) => h.forEach(([s, u]) => o.style[s] = u));
|
|
418
418
|
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");
|
|
419
419
|
}
|
|
420
420
|
}, q = {
|
|
@@ -426,7 +426,7 @@ const V = (x) => {
|
|
|
426
426
|
logoSmallTransform: "translateX(-50%)",
|
|
427
427
|
logoSmallFilter: "none",
|
|
428
428
|
zIndex: function() {
|
|
429
|
-
const t = window.parent.document, e = (
|
|
429
|
+
const t = window.parent.document, e = (c, h) => c.forEach((o) => h.forEach(([s, u]) => o.style[s] = u));
|
|
430
430
|
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");
|
|
431
431
|
}
|
|
432
432
|
}, v = {
|
|
@@ -438,7 +438,7 @@ const V = (x) => {
|
|
|
438
438
|
logoSmallTransform: "translateX(-50%)",
|
|
439
439
|
logoSmallFilter: "none",
|
|
440
440
|
zIndex: function() {
|
|
441
|
-
const t = window.parent.document, e = (
|
|
441
|
+
const t = window.parent.document, e = (c, h) => c.forEach((o) => h.forEach(([s, u]) => o.style[s] = u));
|
|
442
442
|
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");
|
|
443
443
|
}
|
|
444
444
|
}, N = {
|
|
@@ -450,7 +450,7 @@ const V = (x) => {
|
|
|
450
450
|
logoSmallTransform: "translateX(-50%)",
|
|
451
451
|
logoSmallFilter: "none",
|
|
452
452
|
zIndex: function() {
|
|
453
|
-
const t = window.parent.document, e = (
|
|
453
|
+
const t = window.parent.document, e = (c, h) => c.forEach((o) => h.forEach(([s, u]) => o.style[s] = u));
|
|
454
454
|
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");
|
|
455
455
|
}
|
|
456
456
|
}, I = {
|
|
@@ -518,7 +518,7 @@ const V = (x) => {
|
|
|
518
518
|
}, d = (t) => {
|
|
519
519
|
if (!k) return;
|
|
520
520
|
const e = k.style;
|
|
521
|
-
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 = `${
|
|
521
|
+
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 = `${p}px`, e.minHeight = `${p}px`, e.position = "fixed", e.top = "0px", e.zIndex = "100000", window.loadSmall());
|
|
522
522
|
}, g = () => {
|
|
523
523
|
const t = a.scrollY;
|
|
524
524
|
l.style, t >= 0 && t <= m ? d("big") : t > m && (t > w ? d("small") : d("big"), w = t <= 0 ? 0 : t);
|
|
@@ -606,8 +606,8 @@ const V = (x) => {
|
|
|
606
606
|
thresholds: [],
|
|
607
607
|
// Merge caller-supplied options (overrides any default above)
|
|
608
608
|
...x
|
|
609
|
-
},
|
|
610
|
-
if (!
|
|
609
|
+
}, p = window.frameElement ? window.frameElement : null;
|
|
610
|
+
if (!p) return () => {
|
|
611
611
|
};
|
|
612
612
|
const l = window.parent;
|
|
613
613
|
if (!l || l === window) return () => {
|
|
@@ -622,16 +622,16 @@ const V = (x) => {
|
|
|
622
622
|
const r = (() => {
|
|
623
623
|
const t = a.querySelector("#adspot-mobile-mobile-3-above");
|
|
624
624
|
if (t) return t;
|
|
625
|
-
let e =
|
|
625
|
+
let e = p.parentElement;
|
|
626
626
|
for (; e && e !== a.body; ) {
|
|
627
627
|
if (e.id && e.id.includes("adspot")) return e;
|
|
628
628
|
e = e.parentElement;
|
|
629
629
|
}
|
|
630
|
-
return
|
|
630
|
+
return p.parentElement;
|
|
631
631
|
})();
|
|
632
632
|
if (!r) return () => {
|
|
633
633
|
};
|
|
634
|
-
const f = r.getAttribute("style"), q =
|
|
634
|
+
const f = r.getAttribute("style"), q = p.getAttribute("style"), v = [], N = {
|
|
635
635
|
width: "100vw",
|
|
636
636
|
marginLeft: "calc(50% - 50vw)",
|
|
637
637
|
height: n.bandHeight + "px",
|
|
@@ -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.
|
|
651
|
+
t.height = n.adScrollHeight, t.maxHeight = n.adScrollHeight, t.position = "relative", r.setAttribute("poweredAC", "0.1.6"), 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);
|
|
@@ -660,8 +660,8 @@ const V = (x) => {
|
|
|
660
660
|
if (D && D !== "none" && (v.push({ el: e, prop: "maxHeight", val: e.style.maxHeight }), e.style.maxHeight = "none", H = !0), !H && E > 1) break;
|
|
661
661
|
e = e.parentElement;
|
|
662
662
|
}
|
|
663
|
-
const
|
|
664
|
-
|
|
663
|
+
const c = p.style;
|
|
664
|
+
c.position = "fixed", c.top = "0", c.left = "0", c.width = "100vw", c.height = "100vh", c.maxWidth = "100vw", c.margin = "0", c.padding = "0", c.border = "none", c.zIndex = "1";
|
|
665
665
|
const h = a.createElement("div");
|
|
666
666
|
h.id = "interscroller-top-band-wrapper", Object.assign(h.style, {
|
|
667
667
|
position: "sticky",
|
|
@@ -715,8 +715,8 @@ const V = (x) => {
|
|
|
715
715
|
let g = !1, k = !1, A = !1, i = !1;
|
|
716
716
|
const m = (n.thresholds || []).map(() => !1), w = () => {
|
|
717
717
|
if (!y) return;
|
|
718
|
-
const t = r.getBoundingClientRect(), e = l.innerHeight,
|
|
719
|
-
!k &&
|
|
718
|
+
const t = r.getBoundingClientRect(), e = l.innerHeight, c = 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));
|
|
719
|
+
!k && c && n.onEnter && n.onEnter(), !A && h && n.onExit && n.onExit(), k = c, A = h, i = o, n.onProgress && n.onProgress({ scrollProgress: u, adExposure: T, viewportCoverage: L, pxRemaining: D }), (n.thresholds || []).forEach((z, W) => {
|
|
720
720
|
const O = m[W], F = u >= z.at;
|
|
721
721
|
!O && F ? (m[W] = !0, z.onEnter && z.onEnter(u)) : O && !F && (m[W] = !1, z.onLeave && z.onLeave(u));
|
|
722
722
|
});
|
|
@@ -732,8 +732,8 @@ const V = (x) => {
|
|
|
732
732
|
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 < 0.2 ? n.labelBottomResume : E < 0.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 = `${$}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 = `${$}px`, y.style.left = "0", y.style.marginLeft = "0", y.style.width = "100vw");
|
|
733
733
|
};
|
|
734
734
|
return w(), l.addEventListener("scroll", w, { passive: !0 }), l.visualViewport?.addEventListener("resize", w, { passive: !0 }), () => {
|
|
735
|
-
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 ?
|
|
736
|
-
t.style[e] =
|
|
735
|
+
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 ? p.setAttribute("style", q) : p.removeAttribute("style"), v.forEach(({ el: t, prop: e, val: c }) => {
|
|
736
|
+
t.style[e] = c || "";
|
|
737
737
|
});
|
|
738
738
|
};
|
|
739
739
|
}, J = (x = {}) => {
|
|
@@ -753,8 +753,8 @@ const V = (x) => {
|
|
|
753
753
|
onAdapt: null,
|
|
754
754
|
// Merge caller-supplied options
|
|
755
755
|
...x
|
|
756
|
-
},
|
|
757
|
-
if (!
|
|
756
|
+
}, p = window.frameElement ?? null;
|
|
757
|
+
if (!p) return () => {
|
|
758
758
|
};
|
|
759
759
|
const l = window.parent;
|
|
760
760
|
if (!l || l === window) return () => {
|
|
@@ -769,42 +769,43 @@ const V = (x) => {
|
|
|
769
769
|
const r = (() => {
|
|
770
770
|
const d = a.querySelector("#adspot-mobile-mbanner-2-above");
|
|
771
771
|
if (d) return d;
|
|
772
|
-
let g =
|
|
772
|
+
let g = p.parentElement;
|
|
773
773
|
for (; g && g !== a.body; ) {
|
|
774
774
|
if (g.id && g.id.includes("adspot")) return g;
|
|
775
775
|
g = g.parentElement;
|
|
776
776
|
}
|
|
777
|
-
return
|
|
777
|
+
return p.parentElement;
|
|
778
778
|
})();
|
|
779
779
|
if (!r) return () => {
|
|
780
780
|
};
|
|
781
|
-
const f = r.getAttribute("style"), q =
|
|
781
|
+
const f = r.getAttribute("style"), q = p.getAttribute("style"), v = p.parentElement !== r ? p.parentElement : null, N = v ? v.getAttribute("style") : null, I = r.parentElement, S = I ? l.getComputedStyle(I).paddingTop : null, M = parseInt(p.getAttribute("width"), 10) || 320, y = parseInt(p.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.
|
|
783
|
+
if (d.position = "relative", d.overflow = "visible", d.boxSizing = "border-box", r.setAttribute("poweredAC", "0.1.6"), v) {
|
|
784
784
|
const k = v.style;
|
|
785
785
|
k.width = "100%", k.height = "100%", k.margin = "0", k.textAlign = "left";
|
|
786
786
|
}
|
|
787
|
-
const g =
|
|
787
|
+
const g = p.style;
|
|
788
788
|
g.display = "block", g.width = "100%", g.height = "100%", g.border = "none", g.margin = "0", g.padding = "0";
|
|
789
789
|
}, P = () => {
|
|
790
790
|
const d = r.style;
|
|
791
791
|
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(() => {
|
|
792
792
|
const k = r.offsetWidth || M, i = Math.round(k * (y / M));
|
|
793
|
-
r.style.height = i + "px", v && (v.style.height = i + "px"),
|
|
793
|
+
r.style.height = i + "px", v && (v.style.height = i + "px"), p.style.height = i + "px", n.onAdapt && n.onAdapt();
|
|
794
794
|
}) : (n.adaptToHeight && (d.height = n.adaptToHeight), n.onAdapt && n.onAdapt());
|
|
795
795
|
};
|
|
796
796
|
return b(), P(), () => {
|
|
797
|
-
f ? r.setAttribute("style", f) : r.removeAttribute("style"), q ?
|
|
797
|
+
f ? r.setAttribute("style", f) : r.removeAttribute("style"), q ? p.setAttribute("style", q) : p.removeAttribute("style"), v && (N ? v.setAttribute("style", N) : v.removeAttribute("style")), I && S && S !== "0px" && (I.style.paddingTop = S);
|
|
798
798
|
};
|
|
799
799
|
}, Q = (x = {}) => {
|
|
800
800
|
const n = {
|
|
801
801
|
billboardHeight: 150,
|
|
802
802
|
sideStripWidth: 10,
|
|
803
803
|
zIndex: 0,
|
|
804
|
+
creativeUrl: null,
|
|
804
805
|
onAdapt: null,
|
|
805
806
|
...x
|
|
806
|
-
},
|
|
807
|
-
if (!
|
|
807
|
+
}, p = window.frameElement ?? null;
|
|
808
|
+
if (!p) return () => {
|
|
808
809
|
};
|
|
809
810
|
const l = window.parent;
|
|
810
811
|
if (!l || l === window) return () => {
|
|
@@ -819,12 +820,12 @@ const V = (x) => {
|
|
|
819
820
|
const r = (() => {
|
|
820
821
|
const t = a.querySelector("#adspot-mobile-mbanner-2-above");
|
|
821
822
|
if (t) return t;
|
|
822
|
-
let e =
|
|
823
|
+
let e = p.parentElement;
|
|
823
824
|
for (; e && e !== a.body; ) {
|
|
824
825
|
if (e.id && e.id.includes("adspot")) return e;
|
|
825
826
|
e = e.parentElement;
|
|
826
827
|
}
|
|
827
|
-
return
|
|
828
|
+
return p.parentElement;
|
|
828
829
|
})();
|
|
829
830
|
if (!r) return () => {
|
|
830
831
|
};
|
|
@@ -833,16 +834,16 @@ const V = (x) => {
|
|
|
833
834
|
siteBackgroundColor: "#ffffff",
|
|
834
835
|
setup(t, e) {
|
|
835
836
|
t.querySelector("main")?.style.setProperty("position", "relative");
|
|
836
|
-
const
|
|
837
|
-
|
|
837
|
+
const c = e?.parentElement?.nextElementSibling;
|
|
838
|
+
c && c.tagName !== "HEADER" && (c.style.paddingTop = "0px");
|
|
838
839
|
}
|
|
839
840
|
},
|
|
840
841
|
wwos: {
|
|
841
842
|
siteBackgroundColor: "#ffffff",
|
|
842
843
|
setup(t, e) {
|
|
843
844
|
t.querySelector("main")?.style.setProperty("position", "relative");
|
|
844
|
-
const
|
|
845
|
-
|
|
845
|
+
const c = e?.parentElement?.nextElementSibling;
|
|
846
|
+
c && c.tagName !== "HEADER" && (c.style.paddingTop = "0px");
|
|
846
847
|
}
|
|
847
848
|
},
|
|
848
849
|
nineNews: {
|
|
@@ -887,21 +888,21 @@ const V = (x) => {
|
|
|
887
888
|
for (const e of q)
|
|
888
889
|
if (t.indexOf(e.site) >= 0) return e.config;
|
|
889
890
|
return f.nine;
|
|
890
|
-
})(), I =
|
|
891
|
+
})(), I = p.getAttribute("style"), S = r.getAttribute("style"), M = p.parentElement !== r ? p.parentElement : null, y = M ? M.getAttribute("style") : null, b = r.parentElement, P = b ? b.getAttribute("style") : null;
|
|
891
892
|
let B = null, d = null;
|
|
892
893
|
const g = [], k = () => {
|
|
893
|
-
let t =
|
|
894
|
+
let t = p.parentElement;
|
|
894
895
|
for (; t && t !== a.body && t !== a.documentElement; ) {
|
|
895
896
|
const s = l.getComputedStyle(t);
|
|
896
897
|
(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
898
|
}
|
|
898
|
-
const e =
|
|
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.
|
|
899
|
+
const e = p.style;
|
|
900
|
+
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.6"), M) {
|
|
900
901
|
const s = M.style;
|
|
901
902
|
s.width = "100%", s.height = "0", s.overflow = "visible", s.position = "static", s.margin = "0";
|
|
902
903
|
}
|
|
903
|
-
const
|
|
904
|
-
|
|
904
|
+
const c = r.style;
|
|
905
|
+
c.height = n.billboardHeight + "px", c.minHeight = n.billboardHeight + "px", c.background = "transparent", c.overflow = "visible", c.position = "relative", c.width = "100%", c.padding = "0", c.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", ""));
|
|
905
906
|
const h = `max(${n.sideStripWidth}px, env(safe-area-inset-left))`, o = `max(${n.sideStripWidth}px, env(safe-area-inset-right))`;
|
|
906
907
|
B = a.createElement("style"), B.id = "mobilefireplace-pac", B.textContent = `
|
|
907
908
|
/* Mobile Fireplace — powered-ad-config */
|
|
@@ -961,13 +962,13 @@ const V = (x) => {
|
|
|
961
962
|
const i = () => {
|
|
962
963
|
const t = l.innerWidth, e = l.innerHeight;
|
|
963
964
|
if (t > e) {
|
|
964
|
-
const
|
|
965
|
+
const c = e / t, h = Math.round(n.billboardHeight * c);
|
|
965
966
|
r.style.height = h + "px", r.style.minHeight = h + "px", d && (d.style.height = h + "px");
|
|
966
967
|
} else
|
|
967
968
|
r.style.height = n.billboardHeight + "px", r.style.minHeight = n.billboardHeight + "px", d && (d.style.height = n.billboardHeight + "px");
|
|
968
969
|
};
|
|
969
970
|
k();
|
|
970
|
-
const m =
|
|
971
|
+
const m = n.creativeUrl || "";
|
|
971
972
|
if (m && m !== "about:blank")
|
|
972
973
|
try {
|
|
973
974
|
const t = new URL(m);
|
|
@@ -979,7 +980,7 @@ const V = (x) => {
|
|
|
979
980
|
}
|
|
980
981
|
return l.__mfBridge = {
|
|
981
982
|
adapted: !1,
|
|
982
|
-
wallpaperWindow:
|
|
983
|
+
wallpaperWindow: p.contentWindow,
|
|
983
984
|
billboardIframe: d,
|
|
984
985
|
billboardWindow: null
|
|
985
986
|
}, d && d.addEventListener("load", () => {
|
|
@@ -995,7 +996,7 @@ const V = (x) => {
|
|
|
995
996
|
delete l.__mfBridge;
|
|
996
997
|
} catch {
|
|
997
998
|
}
|
|
998
|
-
I ?
|
|
999
|
+
I ? p.setAttribute("style", I) : p.removeAttribute("style");
|
|
999
1000
|
for (const { el: t, orig: e } of g)
|
|
1000
1001
|
e ? t.setAttribute("style", e) : t.removeAttribute("style");
|
|
1001
1002
|
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"));
|
|
@@ -1003,14 +1004,14 @@ const V = (x) => {
|
|
|
1003
1004
|
};
|
|
1004
1005
|
let _ = () => {
|
|
1005
1006
|
};
|
|
1006
|
-
function Z({ adFormat: x = "", stickyOffset: n = 0, logoPosX:
|
|
1007
|
+
function Z({ adFormat: x = "", stickyOffset: n = 0, logoPosX: p = 0, logoHeight: l = 0, logoSmallHeight: a = 0, ...C } = {}) {
|
|
1007
1008
|
typeof _ == "function" && _();
|
|
1008
1009
|
let r = () => {
|
|
1009
1010
|
};
|
|
1010
|
-
return x === "fireplace" ? r =
|
|
1011
|
+
return x === "fireplace" ? r = U(n) : x === "fireplace-collant" ? r = V(n) : x === "logomorph" ? r = Y(p, 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
1012
|
}, _;
|
|
1012
1013
|
}
|
|
1013
|
-
Z.version = "0.1.
|
|
1014
|
+
Z.version = "0.1.6";
|
|
1014
1015
|
export {
|
|
1015
1016
|
Z as default
|
|
1016
1017
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(W,_){typeof exports=="object"&&typeof module<"u"?module.exports=_():typeof define=="function"&&define.amd?define(_):(W=typeof globalThis<"u"?globalThis:W||self,W.poweredAdConfig=_())})(this,(function(){"use strict";const W=x=>{const n=window.frameElement?window.frameElement:null;if(!n)return()=>{};const
|
|
1
|
+
(function(W,_){typeof exports=="object"&&typeof module<"u"?module.exports=_():typeof define=="function"&&define.amd?define(_):(W=typeof globalThis<"u"?globalThis:W||self,W.poweredAdConfig=_())})(this,(function(){"use strict";const W=x=>{const n=window.frameElement?window.frameElement:null;if(!n)return()=>{};const p=window.parent;if(!p||p===window)return()=>{};let l=null;try{l=p.document,p.location.href}catch{return()=>{}}const a={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:695,yPosHalfpage:72,stickyMargin:{offset:72,isSticky:!0},zIndex:function(){const i=window.parent.document,m=(w,t)=>w.forEach(e=>t.forEach(([c,h])=>e.style[c]=h));i.querySelector(".nk-demographics")?.setAttribute("style","max-width:1190px;left:50%;transform:translate(-50%,0);"),i.querySelector(".nk-footer")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),i.querySelector("article")?.setAttribute("style","position:relative"),i.querySelector("#article")?.setAttribute("style","position:relative"),i.querySelector("#VideoIndex")?.setAttribute("style","position:relative"),i.querySelector("#Index")?.setAttribute("style","position:relative"),i.querySelector(".show")?.setAttribute("style","position:relative"),i.querySelector("#adspot-desktop-banner-7-below")?.setAttribute("style","position:relative"),m(i.querySelectorAll(".column"),[["position","relative"]]),m(i.querySelectorAll(".advert"),[["position","relative"]]),m(i.querySelectorAll("blockquote"),[["zIndex","1"]]),i.querySelector('div[class*="article__MyContainer"]')?.setAttribute("style","max-width:1190px;margin-top:-24px"),i.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),i.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none")}},C={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:695,yPosHalfpage:32,stickyMargin:{offset:32,isSticky:!0},zIndex:function(){const i=window.parent.document,m=(w,t)=>w.forEach(e=>t.forEach(([c,h])=>e.style[c]=h));i.querySelector(".nk-demographics")?.setAttribute("style","max-width:1190px;left:50%;transform:translate(-50%,0);"),i.querySelector(".nk-footer")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),i.querySelector("article")?.setAttribute("style","position:relative"),i.querySelector("#article")?.setAttribute("style","position:relative"),i.querySelector("#VideoIndex")?.setAttribute("style","position:relative"),i.querySelector("#Index")?.setAttribute("style","position:relative"),i.querySelector(".show")?.setAttribute("style","position:relative"),m(i.querySelectorAll(".column"),[["position","relative"]]),m(i.querySelectorAll(".advert"),[["position","relative"]]),m(i.querySelectorAll("blockquote"),[["zIndex","1"]]),i.querySelector('div[class^="component__StrapContainer"]')?.setAttribute("style","position:relative"),i.querySelector('div[class*="ArticleContainer"]')?.setAttribute("style","max-width:1190px;margin-top:24px"),i.querySelector('div[class*="MyContainer"]')?.setAttribute("style","max-width:1190px;margin-top:24px")}},r={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-25,adNodeMarginBottom:-13,responsiveScroll:-120,xPosHalfpage:722,yPosHalfpage:32,stickyMargin:{offset:8,isSticky:!0},zIndex:function(){const i=window.parent.document;if(i.querySelector('section[data-section="marketing-banner"]')?.setAttribute("style","position:relative"),i.querySelector('div[data-testid="live-tv"]')?.parentNode?.setAttribute("style","position:relative"),i.querySelector('div[data-contentunit-id="stan"]')?.parentNode?.setAttribute("style","position:relative"),i.querySelector("small")?.setAttribute("style","position:inherit"),i.querySelector('div[id*="tablet"][id*="takeover"]')){let w=i.createElement("style");w.innerHTML=`
|
|
2
2
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
3
3
|
position: static;
|
|
4
4
|
}
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
7
7
|
position: static;
|
|
8
8
|
}
|
|
9
|
-
`,i.head.appendChild(e)}}},q={siteBackgroundColor:"#f7f7f7",fireplaceLeftMargin:0,adNodeMarginTop:-25,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:104,isSticky:!0},zIndex:function(){const i=window.parent.document,m=(t,e)=>t.forEach(
|
|
9
|
+
`,i.head.appendChild(e)}}},q={siteBackgroundColor:"#f7f7f7",fireplaceLeftMargin:0,adNodeMarginTop:-25,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:104,isSticky:!0},zIndex:function(){const i=window.parent.document,m=(t,e)=>t.forEach(c=>e.forEach(([h,o])=>c.style[h]=o));if(i.querySelector(".container--padded")?.setAttribute("style","position:relative"),m(i.querySelectorAll(".advert"),[["position","relative"]]),i.querySelector(".footer-netkit")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),i.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),i.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),i.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none"),i.querySelector('div[id*="tablet"][id*="takeover"]')){let t=i.createElement("style");t.innerHTML=`
|
|
10
10
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
11
11
|
position: static;
|
|
12
12
|
}
|
|
13
|
-
`,i.head.appendChild(t)}}},v={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-32,adNodeMarginBottom:18,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:16,stickyMargin:{offset:16,isSticky:!0},zIndex:function(){const i=window.parent.document;i.querySelector(".header-wrapper")?.setAttribute("style","height:124px"),i.querySelector(".weather-widget-wrapper")?.setAttribute("style","bottom:0px"),i.querySelector(".content")?.setAttribute("style","padding-top:32px"),i.querySelector(".layout")?.setAttribute("style","position:relative;background-color:transparent;"),i.querySelector(".footer-ad")?.setAttribute("style","position:relative"),i.querySelector(".footer-netkit")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);")}},N=[{site:"https://www.nine.com.au/sport",config:f},{site:"https://www.nine.com.au/product-reviews",config:C},{site:"https://www.nine.com.au/property",config:C},{site:"https://www.nine.com.au/entertainment",config:C},{site:"https://staging.nine.com.au/sport",config:f},{site:"https://staging.nine.com.au/product-reviews",config:C},{site:"https://staging.nine.com.au/property",config:C},{site:"https://staging.nine.com.au/entertainment",config:C},{site:"https://render-web-nine-staging-v1.ffxblue.com.au",config:r},{site:"https://render-web-nine-production-v1.ffxblue.com.au",config:r},{site:"https://preview.nine.com.au/",config:r},{site:"https://www.nine",config:r},{site:"https://staging.nine",config:r},{site:"https://entertainment",config:a},{site:"https://celebrity",config:a},{site:"https://homes",config:a},{site:"https://travel",config:a},{site:"https://honey",config:a},{site:"https://style",config:a},{site:"https://coach",config:a},{site:"https://kitchen",config:a},{site:"https://finance",config:a},{site:"https://wwos",config:q},{site:"https://staging.wwos",config:f},{site:"https://www.9news",config:v},{site:"https://staging.9news",config:v},{site:"https://www.yourtv",config:a},{site:"https://staging.yourtv",config:a},{site:"https://9now",config:C},{site:"https://creative-preview-an.com",config:a}],I=()=>{const i=window.document.getElementById("nineContent");i&&(i.style.backgroundColor=d.siteBackgroundColor),b(),y(),
|
|
13
|
+
`,i.head.appendChild(t)}}},v={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-32,adNodeMarginBottom:18,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:16,stickyMargin:{offset:16,isSticky:!0},zIndex:function(){const i=window.parent.document;i.querySelector(".header-wrapper")?.setAttribute("style","height:124px"),i.querySelector(".weather-widget-wrapper")?.setAttribute("style","bottom:0px"),i.querySelector(".content")?.setAttribute("style","padding-top:32px"),i.querySelector(".layout")?.setAttribute("style","position:relative;background-color:transparent;"),i.querySelector(".footer-ad")?.setAttribute("style","position:relative"),i.querySelector(".footer-netkit")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);")}},N=[{site:"https://www.nine.com.au/sport",config:f},{site:"https://www.nine.com.au/product-reviews",config:C},{site:"https://www.nine.com.au/property",config:C},{site:"https://www.nine.com.au/entertainment",config:C},{site:"https://staging.nine.com.au/sport",config:f},{site:"https://staging.nine.com.au/product-reviews",config:C},{site:"https://staging.nine.com.au/property",config:C},{site:"https://staging.nine.com.au/entertainment",config:C},{site:"https://render-web-nine-staging-v1.ffxblue.com.au",config:r},{site:"https://render-web-nine-production-v1.ffxblue.com.au",config:r},{site:"https://preview.nine.com.au/",config:r},{site:"https://www.nine",config:r},{site:"https://staging.nine",config:r},{site:"https://entertainment",config:a},{site:"https://celebrity",config:a},{site:"https://homes",config:a},{site:"https://travel",config:a},{site:"https://honey",config:a},{site:"https://style",config:a},{site:"https://coach",config:a},{site:"https://kitchen",config:a},{site:"https://finance",config:a},{site:"https://wwos",config:q},{site:"https://staging.wwos",config:f},{site:"https://www.9news",config:v},{site:"https://staging.9news",config:v},{site:"https://www.yourtv",config:a},{site:"https://staging.yourtv",config:a},{site:"https://9now",config:C},{site:"https://creative-preview-an.com",config:a}],I=()=>{const i=window.document.getElementById("nineContent");i&&(i.style.backgroundColor=d.siteBackgroundColor),b(),y(),p.addEventListener("scroll",P),g=setTimeout(P,50)},S=()=>{let i=null;return i=l.querySelector('div[id*="billboard"][id*="above"]'),i},M=()=>{const i=p.location.href;for(let m=0;m<N.length;m+=1)if(i.indexOf(N[m].site)>=0)return N[m].config},y=()=>{if(!n)return;const i=n.style;i.width="100%",i.height="1000px",i.position="fixed",i.left="50%",i.transform="translate(-50%, 0)"},b=()=>{if(!B)return;const i=B.style;B.className="",i.minHeight="250px",i.marginTop=d.adNodeMarginTop+"px",i.marginBottom=d.adNodeMarginBottom+"px",i.position="static",i.display="block",d.zIndex&&d.zIndex()},P=()=>{const i=p.scrollY,m=n.style,w=document.getElementById("siteContent")?document.getElementById("siteContent").style:{};i>=0&&i<=k?(m.transform=`translate(-50%, ${-i}px)`,w.transform="translateY(0)"):i>k&&i<=A?(m.transform=`translate(-50%, ${-k}px)`,w.transform=`translateY(${k-i}px)`):i>A&&(m.transform=`translate(-50%, ${-k}px)`,w.transform="translateY(-250px)")},B=S(),d=M();if(!d)return()=>{};let g=null;const k=-d.responsiveScroll+x,A=k+250;return I(),()=>{p.removeEventListener("scroll",P),g&&(clearTimeout(g),g=null)}},_=x=>{const n=window.frameElement?window.frameElement:null;if(!n)return()=>{};const p=window.parent;if(!p||p===window)return()=>{};let l=null;try{l=p.document,p.location.href}catch{return()=>{}}const a=document.getElementById("nineMasthead"),C=a?a.style:{};let r;const f={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:722,yPosHalfpage:72,stickyMargin:{offset:160,isSticky:!0},maskOffset:298,zIndex:function(){const o=window.parent.document,s=(u,E)=>u.forEach(T=>E.forEach(([H,L])=>T.style[H]=L));o.querySelector(".nk-demographics")?.setAttribute("style","max-width:1190px;left:50%;transform:translate(-50%,0);"),o.querySelector(".nk-footer")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),o.querySelector("article")?.setAttribute("style","position:relative"),o.querySelector("#article")?.setAttribute("style","position:relative"),o.querySelector("#VideoIndex")?.setAttribute("style","position:relative"),o.querySelector("#Index")?.setAttribute("style","position:relative"),o.querySelector(".show")?.setAttribute("style","position:relative"),o.querySelector("#adspot-desktop-banner-7-below")?.setAttribute("style","position:relative"),s(o.querySelectorAll(".column"),[["position","relative"]]),s(o.querySelectorAll(".advert"),[["position","relative"]]),s(o.querySelectorAll("blockquote"),[["zIndex","1"]]),o.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),o.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none")}},q={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:695,yPosHalfpage:32,stickyMargin:{offset:160,isSticky:!0},maskOffset:window.parent.document.querySelector('div[class*="video-index__MyContainer"]')?248:298,zIndex:function(){const o=window.parent.document,s=(u,E)=>u.forEach(T=>E.forEach(([H,L])=>T.style[H]=L));o.querySelector(".nk-demographics")?.setAttribute("style","max-width:1190px;left:50%;transform:translate(-50%,0);"),o.querySelector(".nk-footer")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),o.querySelector("article")?.setAttribute("style","position:relative"),o.querySelector("#article")?.setAttribute("style","position:relative"),o.querySelector("#VideoIndex")?.setAttribute("style","position:relative"),o.querySelector("#Index")?.setAttribute("style","position:relative"),o.querySelector(".show")?.setAttribute("style","position:relative"),s(o.querySelectorAll(".column"),[["position","relative"]]),s(o.querySelectorAll(".advert"),[["position","relative"]]),s(o.querySelectorAll("blockquote"),[["zIndex","1"]]),o.querySelector('div[class^="component__StrapContainer"]')?.setAttribute("style","position:relative"),o.querySelector('div[class*="ArticleContainer"]')?.setAttribute("style","max-width:1190px;margin-top:24px"),o.querySelector('div[class*="MyContainer"]')?.setAttribute("style","max-width:1190px;margin-top:24px")}},v={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:-13,responsiveScroll:-120,xPosHalfpage:722,yPosHalfpage:32,stickyMargin:{offset:166,isSticky:!0},maskOffset:304,zIndex:function(){const o=window.parent.document;if(o.querySelector('section[data-section="marketing-banner"]')?.setAttribute("style","position:relative"),o.querySelector('div[data-testid="live-tv"]')?.parentNode?.setAttribute("style","position:relative"),o.querySelector('div[data-contentunit-id="stan"]')?.parentNode?.setAttribute("style","position:relative"),o.querySelector("small")?.setAttribute("style","position:inherit"),o.querySelector('div[id*="tablet"][id*="takeover"]')){let u=o.createElement("style");u.innerHTML=`
|
|
14
14
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
15
15
|
position: static;
|
|
16
16
|
}
|
|
@@ -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.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=`
|
|
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(),p.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=p.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=p.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",`${-c}px`),C.setProperty("--masthead-height","100px"),window.CollantOn||window.goCollant()):o>c&&o<=h?(n.style.setProperty("--transform-y",`${-c}px`),C.setProperty("--masthead-height",`${250+c-o}px`),window.CollantOn&&window.goBillboard()):o>=0&&o<=c&&(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 c=-t.responsiveScroll+x,h=c+150;return y(),()=>{p.removeEventListener("scroll",m),e&&(clearTimeout(e),e=null)}},X=(x,n,p)=>{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=(c,h)=>c.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=(c,h)=>c.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=(c,h)=>c.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=(c,h)=>c.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=(c,h)=>c.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=`${p}px`,e.minHeight=`${p}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},p=window.frameElement?window.frameElement:null;if(!p)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=p.parentElement;for(;e&&e!==a.body;){if(e.id&&e.id.includes("adspot"))return e;e=e.parentElement}return p.parentElement})();if(!r)return()=>{};const f=r.getAttribute("style"),q=p.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.6"),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 c=p.style;c.position="fixed",c.top="0",c.left="0",c.width="100vw",c.height="100vh",c.maxWidth="100vw",c.margin="0",c.padding="0",c.border="none",c.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,c=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&&c&&n.onEnter&&n.onEnter(),!A&&h&&n.onExit&&n.onExit(),k=c,A=h,i=o,n.onProgress&&n.onProgress({scrollProgress:u,adExposure:T,viewportCoverage:L,pxRemaining:D}),(n.thresholds||[]).forEach((z,R)=>{const V=m[R],Y=u>=z.at;!V&&Y?(m[R]=!0,z.onEnter&&z.onEnter(u)):V&&!Y&&(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 U=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=`${U}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=`${U}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?p.setAttribute("style",q):p.removeAttribute("style"),v.forEach(({el:t,prop:e,val:c})=>{t.style[e]=c||""})}},K=(x={})=>{const n={adaptToWidth:"100%",maxWidth:"400px",maintainAspectRatio:!0,adaptToHeight:!1,zIndex:7,onAdapt:null,...x},p=window.frameElement??null;if(!p)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=p.parentElement;for(;g&&g!==a.body;){if(g.id&&g.id.includes("adspot"))return g;g=g.parentElement}return p.parentElement})();if(!r)return()=>{};const f=r.getAttribute("style"),q=p.getAttribute("style"),v=p.parentElement!==r?p.parentElement:null,N=v?v.getAttribute("style"):null,I=r.parentElement,S=I?l.getComputedStyle(I).paddingTop:null,M=parseInt(p.getAttribute("width"),10)||320,y=parseInt(p.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.6"),v){const k=v.style;k.width="100%",k.height="100%",k.margin="0",k.textAlign="left"}const g=p.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"),p.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?p.setAttribute("style",q):p.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,creativeUrl:null,onAdapt:null,...x},p=window.frameElement??null;if(!p)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=p.parentElement;for(;e&&e!==a.body;){if(e.id&&e.id.includes("adspot"))return e;e=e.parentElement}return p.parentElement})();if(!r)return()=>{};const f={nine:{siteBackgroundColor:"#ffffff",setup(t,e){t.querySelector("main")?.style.setProperty("position","relative");const c=e?.parentElement?.nextElementSibling;c&&c.tagName!=="HEADER"&&(c.style.paddingTop="0px")}},wwos:{siteBackgroundColor:"#ffffff",setup(t,e){t.querySelector("main")?.style.setProperty("position","relative");const c=e?.parentElement?.nextElementSibling;c&&c.tagName!=="HEADER"&&(c.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=p.getAttribute("style"),S=r.getAttribute("style"),M=p.parentElement!==r?p.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=p.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=p.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.6"),M){const s=M.style;s.width="100%",s.height="0",s.overflow="visible",s.position="static",s.margin="0"}const c=r.style;c.height=n.billboardHeight+"px",c.minHeight=n.billboardHeight+"px",c.background="transparent",c.overflow="visible",c.position="relative",c.width="100%",c.padding="0",c.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
|
|
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 c=e/t,h=Math.round(n.billboardHeight*c);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=n.creativeUrl||"";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:p.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?p.setAttribute("style",I):p.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:p=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(p,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.6",F}));
|
package/package.json
CHANGED