powered-ad-config 0.0.97 → 0.0.99

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,18 +1,18 @@
1
- const F = (S) => {
2
- const i = window.frameElement ? window.frameElement : null;
3
- if (!i) return () => {
1
+ const V = (S) => {
2
+ const n = window.frameElement ? window.frameElement : null;
3
+ if (!n) return () => {
4
4
  };
5
- const p = window.parent;
6
- if (!p || p === window) return () => {
5
+ const c = window.parent;
6
+ if (!c || c === window) return () => {
7
7
  };
8
- let c = null;
8
+ let a = null;
9
9
  try {
10
- c = p.document, p.location.href;
10
+ a = c.document, c.location.href;
11
11
  } catch {
12
12
  return () => {
13
13
  };
14
14
  }
15
- const a = {
15
+ const l = {
16
16
  siteBackgroundColor: "#ffffff",
17
17
  fireplaceLeftMargin: 0,
18
18
  adNodeMarginTop: -24,
@@ -22,10 +22,10 @@ const F = (S) => {
22
22
  yPosHalfpage: 72,
23
23
  stickyMargin: { offset: 72, isSticky: !0 },
24
24
  zIndex: function() {
25
- const o = window.parent.document, f = (s, t) => s.forEach((r) => t.forEach(([m, v]) => r.style[m] = v));
26
- 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"), f(o.querySelectorAll(".column"), [["position", "relative"]]), f(o.querySelectorAll(".advert"), [["position", "relative"]]), f(o.querySelectorAll("blockquote"), [["zIndex", "1"]]), o.querySelector('div[class*="article__MyContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:-24px"), o.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), o.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none");
25
+ const o = window.parent.document, m = (w, t) => w.forEach((i) => t.forEach(([d, v]) => i.style[d] = v));
26
+ 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"), m(o.querySelectorAll(".column"), [["position", "relative"]]), m(o.querySelectorAll(".advert"), [["position", "relative"]]), m(o.querySelectorAll("blockquote"), [["zIndex", "1"]]), o.querySelector('div[class*="article__MyContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:-24px"), o.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), o.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none");
27
27
  }
28
- }, q = {
28
+ }, E = {
29
29
  siteBackgroundColor: "#ffffff",
30
30
  fireplaceLeftMargin: 0,
31
31
  adNodeMarginTop: -24,
@@ -35,10 +35,10 @@ const F = (S) => {
35
35
  yPosHalfpage: 32,
36
36
  stickyMargin: { offset: 32, isSticky: !0 },
37
37
  zIndex: function() {
38
- const o = window.parent.document, f = (s, t) => s.forEach((r) => t.forEach(([m, v]) => r.style[m] = v));
39
- 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"), f(o.querySelectorAll(".column"), [["position", "relative"]]), f(o.querySelectorAll(".advert"), [["position", "relative"]]), f(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");
38
+ const o = window.parent.document, m = (w, t) => w.forEach((i) => t.forEach(([d, v]) => i.style[d] = v));
39
+ 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"), m(o.querySelectorAll(".column"), [["position", "relative"]]), m(o.querySelectorAll(".advert"), [["position", "relative"]]), m(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");
40
40
  }
41
- }, n = {
41
+ }, r = {
42
42
  siteBackgroundColor: "#ffffff",
43
43
  fireplaceLeftMargin: 0,
44
44
  adNodeMarginTop: -25,
@@ -50,15 +50,15 @@ const F = (S) => {
50
50
  zIndex: function() {
51
51
  const o = window.parent.document;
52
52
  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"]')) {
53
- let s = o.createElement("style");
54
- s.innerHTML = `
53
+ let w = o.createElement("style");
54
+ w.innerHTML = `
55
55
  div:has(#adspot-tablet-takeover-2-above) {
56
56
  position: static;
57
57
  }
58
- `, o.head.appendChild(s);
58
+ `, o.head.appendChild(w);
59
59
  }
60
60
  }
61
- }, y = {
61
+ }, f = {
62
62
  siteBackgroundColor: "#ffffff",
63
63
  fireplaceLeftMargin: 0,
64
64
  adNodeMarginTop: -24,
@@ -68,17 +68,17 @@ const F = (S) => {
68
68
  yPosHalfpage: 32,
69
69
  stickyMargin: { offset: 104, isSticky: !0 },
70
70
  zIndex: function() {
71
- const o = window.parent.document, s = o.querySelector("footer").previousElementSibling;
72
- if (s && s.tagName.toLowerCase() === "div" && (s.style.position = "relative"), o.querySelector('div[id*="tablet"][id*="takeover"]')) {
73
- let r = o.createElement("style");
74
- r.innerHTML = `
71
+ const o = window.parent.document, w = o.querySelector("footer").previousElementSibling;
72
+ if (w && w.tagName.toLowerCase() === "div" && (w.style.position = "relative"), o.querySelector('div[id*="tablet"][id*="takeover"]')) {
73
+ let i = o.createElement("style");
74
+ i.innerHTML = `
75
75
  div:has(#adspot-tablet-takeover-2-above) {
76
76
  position: static;
77
77
  }
78
- `, o.head.appendChild(r);
78
+ `, o.head.appendChild(i);
79
79
  }
80
80
  }
81
- }, A = {
81
+ }, x = {
82
82
  siteBackgroundColor: "#f7f7f7",
83
83
  fireplaceLeftMargin: 0,
84
84
  adNodeMarginTop: -25,
@@ -88,8 +88,8 @@ const F = (S) => {
88
88
  yPosHalfpage: 32,
89
89
  stickyMargin: { offset: 104, isSticky: !0 },
90
90
  zIndex: function() {
91
- const o = window.parent.document, f = (t, r) => t.forEach((m) => r.forEach(([v, e]) => m.style[v] = e));
92
- if (o.querySelector(".container--padded")?.setAttribute("style", "position:relative"), f(o.querySelectorAll(".advert"), [["position", "relative"]]), o.querySelector(".footer-netkit")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), o.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), o.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), o.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none"), o.querySelector('div[id*="tablet"][id*="takeover"]')) {
91
+ const o = window.parent.document, m = (t, i) => t.forEach((d) => i.forEach(([v, e]) => d.style[v] = e));
92
+ if (o.querySelector(".container--padded")?.setAttribute("style", "position:relative"), m(o.querySelectorAll(".advert"), [["position", "relative"]]), o.querySelector(".footer-netkit")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), o.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), o.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), o.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none"), o.querySelector('div[id*="tablet"][id*="takeover"]')) {
93
93
  let t = o.createElement("style");
94
94
  t.innerHTML = `
95
95
  div:has(#adspot-tablet-takeover-2-above) {
@@ -98,7 +98,7 @@ const F = (S) => {
98
98
  `, o.head.appendChild(t);
99
99
  }
100
100
  }
101
- }, w = {
101
+ }, h = {
102
102
  siteBackgroundColor: "#ffffff",
103
103
  fireplaceLeftMargin: 0,
104
104
  adNodeMarginTop: -32,
@@ -111,84 +111,84 @@ const F = (S) => {
111
111
  const o = window.parent.document;
112
112
  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);");
113
113
  }
114
- }, B = [
115
- { site: "https://www.nine.com.au/sport", config: y },
116
- { site: "https://www.nine.com.au/product-reviews", config: q },
117
- { site: "https://www.nine.com.au/property", config: q },
118
- { site: "https://www.nine.com.au/entertainment", config: q },
119
- { site: "https://staging.nine.com.au/sport", config: y },
120
- { site: "https://staging.nine.com.au/product-reviews", config: q },
121
- { site: "https://staging.nine.com.au/property", config: q },
122
- { site: "https://staging.nine.com.au/entertainment", config: q },
123
- { site: "https://render-web-nine-staging-v1.ffxblue.com.au", config: n },
124
- { site: "https://render-web-nine-production-v1.ffxblue.com.au", config: n },
125
- { site: "https://preview.nine.com.au/", config: n },
126
- { site: "https://www.nine", config: n },
127
- { site: "https://staging.nine", config: n },
128
- { site: "https://entertainment", config: a },
129
- { site: "https://celebrity", config: a },
130
- { site: "https://homes", config: a },
131
- { site: "https://travel", config: a },
132
- { site: "https://honey", config: a },
133
- { site: "https://style", config: a },
134
- { site: "https://coach", config: a },
135
- { site: "https://kitchen", config: a },
136
- { site: "https://finance", config: a },
137
- { site: "https://wwos", config: A },
138
- { site: "https://staging.wwos", config: y },
139
- { site: "https://www.9news", config: w },
140
- { site: "https://staging.9news", config: w },
141
- { site: "https://www.yourtv", config: a },
142
- { site: "https://staging.yourtv", config: a },
143
- { site: "https://9now", config: q },
144
- { site: "https://creative-preview-an.com", config: a }
145
- ], x = () => {
114
+ }, C = [
115
+ { site: "https://www.nine.com.au/sport", config: f },
116
+ { site: "https://www.nine.com.au/product-reviews", config: E },
117
+ { site: "https://www.nine.com.au/property", config: E },
118
+ { site: "https://www.nine.com.au/entertainment", config: E },
119
+ { site: "https://staging.nine.com.au/sport", config: f },
120
+ { site: "https://staging.nine.com.au/product-reviews", config: E },
121
+ { site: "https://staging.nine.com.au/property", config: E },
122
+ { site: "https://staging.nine.com.au/entertainment", config: E },
123
+ { site: "https://render-web-nine-staging-v1.ffxblue.com.au", config: r },
124
+ { site: "https://render-web-nine-production-v1.ffxblue.com.au", config: r },
125
+ { site: "https://preview.nine.com.au/", config: r },
126
+ { site: "https://www.nine", config: r },
127
+ { site: "https://staging.nine", config: r },
128
+ { site: "https://entertainment", config: l },
129
+ { site: "https://celebrity", config: l },
130
+ { site: "https://homes", config: l },
131
+ { site: "https://travel", config: l },
132
+ { site: "https://honey", config: l },
133
+ { site: "https://style", config: l },
134
+ { site: "https://coach", config: l },
135
+ { site: "https://kitchen", config: l },
136
+ { site: "https://finance", config: l },
137
+ { site: "https://wwos", config: x },
138
+ { site: "https://staging.wwos", config: f },
139
+ { site: "https://www.9news", config: h },
140
+ { site: "https://staging.9news", config: h },
141
+ { site: "https://www.yourtv", config: l },
142
+ { site: "https://staging.yourtv", config: l },
143
+ { site: "https://9now", config: E },
144
+ { site: "https://creative-preview-an.com", config: l }
145
+ ], M = () => {
146
146
  const o = window.document.getElementById("nineContent");
147
- o && (o.style.backgroundColor = k.siteBackgroundColor), N(), C(), p.addEventListener("scroll", M), h = setTimeout(M, 50);
148
- }, E = () => {
147
+ o && (o.style.backgroundColor = y.siteBackgroundColor), P(), u(), c.addEventListener("scroll", N), g = setTimeout(N, 50);
148
+ }, b = () => {
149
149
  let o = null;
150
- return o = c.querySelector('div[id*="billboard"][id*="above"]'), o;
151
- }, d = () => {
152
- const o = p.location.href;
153
- for (let f = 0; f < B.length; f += 1)
154
- if (o.indexOf(B[f].site) >= 0)
155
- return B[f].config;
156
- }, C = () => {
157
- if (!i) return;
158
- const o = i.style;
150
+ return o = a.querySelector('div[id*="billboard"][id*="above"]'), o;
151
+ }, T = () => {
152
+ const o = c.location.href;
153
+ for (let m = 0; m < C.length; m += 1)
154
+ if (o.indexOf(C[m].site) >= 0)
155
+ return C[m].config;
156
+ }, u = () => {
157
+ if (!n) return;
158
+ const o = n.style;
159
159
  o.width = "100%", o.height = "1000px", o.position = "fixed", o.left = "50%", o.transform = "translate(-50%, 0)";
160
- }, N = () => {
160
+ }, P = () => {
161
161
  if (!I) return;
162
162
  const o = I.style;
163
- I.className = "", o.minHeight = "250px", o.marginTop = k.adNodeMarginTop + "px", o.marginBottom = k.adNodeMarginBottom + "px", o.position = "static", o.display = "block", k.zIndex && k.zIndex();
164
- }, M = () => {
165
- const o = p.scrollY, f = i.style, s = document.getElementById("siteContent") ? document.getElementById("siteContent").style : {};
166
- o >= 0 && o <= g ? (f.transform = `translate(-50%, ${-o}px)`, s.transform = "translateY(0)") : o > g && o <= b ? (f.transform = `translate(-50%, ${-g}px)`, s.transform = `translateY(${g - o}px)`) : o > b && (f.transform = `translate(-50%, ${-g}px)`, s.transform = "translateY(-250px)");
167
- }, I = E(), k = d();
168
- if (!k) return () => {
163
+ I.className = "", o.minHeight = "250px", o.marginTop = y.adNodeMarginTop + "px", o.marginBottom = y.adNodeMarginBottom + "px", o.position = "static", o.display = "block", y.zIndex && y.zIndex();
164
+ }, N = () => {
165
+ const o = c.scrollY, m = n.style, w = document.getElementById("siteContent") ? document.getElementById("siteContent").style : {};
166
+ o >= 0 && o <= A ? (m.transform = `translate(-50%, ${-o}px)`, w.transform = "translateY(0)") : o > A && o <= k ? (m.transform = `translate(-50%, ${-A}px)`, w.transform = `translateY(${A - o}px)`) : o > k && (m.transform = `translate(-50%, ${-A}px)`, w.transform = "translateY(-250px)");
167
+ }, I = b(), y = T();
168
+ if (!y) return () => {
169
169
  };
170
- let h = null;
171
- const g = -k.responsiveScroll + S, b = g + 250;
172
- return x(), () => {
173
- p.removeEventListener("scroll", M), h && (clearTimeout(h), h = null);
170
+ let g = null;
171
+ const A = -y.responsiveScroll + S, k = A + 250;
172
+ return M(), () => {
173
+ c.removeEventListener("scroll", N), g && (clearTimeout(g), g = null);
174
174
  };
175
- }, V = (S) => {
176
- const i = window.frameElement ? window.frameElement : null;
177
- if (!i) return () => {
175
+ }, Y = (S) => {
176
+ const n = window.frameElement ? window.frameElement : null;
177
+ if (!n) return () => {
178
178
  };
179
- const p = window.parent;
180
- if (!p || p === window) return () => {
179
+ const c = window.parent;
180
+ if (!c || c === window) return () => {
181
181
  };
182
- let c = null;
182
+ let a = null;
183
183
  try {
184
- c = p.document, p.location.href;
184
+ a = c.document, c.location.href;
185
185
  } catch {
186
186
  return () => {
187
187
  };
188
188
  }
189
- const a = document.getElementById("nineMasthead"), q = a ? a.style : {};
190
- let n;
191
- const y = {
189
+ const l = document.getElementById("nineMasthead"), E = l ? l.style : {};
190
+ let r;
191
+ const f = {
192
192
  siteBackgroundColor: "#ffffff",
193
193
  fireplaceLeftMargin: 0,
194
194
  adNodeMarginTop: -24,
@@ -199,10 +199,10 @@ const F = (S) => {
199
199
  stickyMargin: { offset: 160, isSticky: !0 },
200
200
  maskOffset: 298,
201
201
  zIndex: function() {
202
- const e = window.parent.document, l = (u, T) => u.forEach((L) => T.forEach(([D, H]) => L.style[D] = H));
203
- e.querySelector(".nk-demographics")?.setAttribute("style", "max-width:1190px;left:50%;transform:translate(-50%,0);"), e.querySelector(".nk-footer")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), e.querySelector("article")?.setAttribute("style", "position:relative"), e.querySelector("#article")?.setAttribute("style", "position:relative"), e.querySelector("#VideoIndex")?.setAttribute("style", "position:relative"), e.querySelector("#Index")?.setAttribute("style", "position:relative"), e.querySelector(".show")?.setAttribute("style", "position:relative"), e.querySelector("#adspot-desktop-banner-7-below")?.setAttribute("style", "position:relative"), l(e.querySelectorAll(".column"), [["position", "relative"]]), l(e.querySelectorAll(".advert"), [["position", "relative"]]), l(e.querySelectorAll("blockquote"), [["zIndex", "1"]]), e.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), e.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none");
202
+ const e = window.parent.document, s = (p, q) => p.forEach((B) => q.forEach(([L, H]) => B.style[L] = H));
203
+ e.querySelector(".nk-demographics")?.setAttribute("style", "max-width:1190px;left:50%;transform:translate(-50%,0);"), e.querySelector(".nk-footer")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), e.querySelector("article")?.setAttribute("style", "position:relative"), e.querySelector("#article")?.setAttribute("style", "position:relative"), e.querySelector("#VideoIndex")?.setAttribute("style", "position:relative"), e.querySelector("#Index")?.setAttribute("style", "position:relative"), e.querySelector(".show")?.setAttribute("style", "position:relative"), e.querySelector("#adspot-desktop-banner-7-below")?.setAttribute("style", "position:relative"), s(e.querySelectorAll(".column"), [["position", "relative"]]), s(e.querySelectorAll(".advert"), [["position", "relative"]]), s(e.querySelectorAll("blockquote"), [["zIndex", "1"]]), e.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), e.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none");
204
204
  }
205
- }, A = {
205
+ }, x = {
206
206
  siteBackgroundColor: "#ffffff",
207
207
  fireplaceLeftMargin: 0,
208
208
  adNodeMarginTop: -24,
@@ -213,10 +213,10 @@ const F = (S) => {
213
213
  stickyMargin: { offset: 160, isSticky: !0 },
214
214
  maskOffset: window.parent.document.querySelector('div[class*="video-index__MyContainer"]') ? 248 : 298,
215
215
  zIndex: function() {
216
- const e = window.parent.document, l = (u, T) => u.forEach((L) => T.forEach(([D, H]) => L.style[D] = H));
217
- e.querySelector(".nk-demographics")?.setAttribute("style", "max-width:1190px;left:50%;transform:translate(-50%,0);"), e.querySelector(".nk-footer")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), e.querySelector("article")?.setAttribute("style", "position:relative"), e.querySelector("#article")?.setAttribute("style", "position:relative"), e.querySelector("#VideoIndex")?.setAttribute("style", "position:relative"), e.querySelector("#Index")?.setAttribute("style", "position:relative"), e.querySelector(".show")?.setAttribute("style", "position:relative"), l(e.querySelectorAll(".column"), [["position", "relative"]]), l(e.querySelectorAll(".advert"), [["position", "relative"]]), l(e.querySelectorAll("blockquote"), [["zIndex", "1"]]), e.querySelector('div[class^="component__StrapContainer"]')?.setAttribute("style", "position:relative"), e.querySelector('div[class*="ArticleContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:24px"), e.querySelector('div[class*="MyContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:24px");
216
+ const e = window.parent.document, s = (p, q) => p.forEach((B) => q.forEach(([L, H]) => B.style[L] = H));
217
+ e.querySelector(".nk-demographics")?.setAttribute("style", "max-width:1190px;left:50%;transform:translate(-50%,0);"), e.querySelector(".nk-footer")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), e.querySelector("article")?.setAttribute("style", "position:relative"), e.querySelector("#article")?.setAttribute("style", "position:relative"), e.querySelector("#VideoIndex")?.setAttribute("style", "position:relative"), e.querySelector("#Index")?.setAttribute("style", "position:relative"), e.querySelector(".show")?.setAttribute("style", "position:relative"), s(e.querySelectorAll(".column"), [["position", "relative"]]), s(e.querySelectorAll(".advert"), [["position", "relative"]]), s(e.querySelectorAll("blockquote"), [["zIndex", "1"]]), e.querySelector('div[class^="component__StrapContainer"]')?.setAttribute("style", "position:relative"), e.querySelector('div[class*="ArticleContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:24px"), e.querySelector('div[class*="MyContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:24px");
218
218
  }
219
- }, w = {
219
+ }, h = {
220
220
  siteBackgroundColor: "#ffffff",
221
221
  fireplaceLeftMargin: 0,
222
222
  adNodeMarginTop: -24,
@@ -229,15 +229,15 @@ const F = (S) => {
229
229
  zIndex: function() {
230
230
  const e = window.parent.document;
231
231
  if (e.querySelector('section[data-section="marketing-banner"]')?.setAttribute("style", "position:relative"), e.querySelector('div[data-testid="live-tv"]')?.parentNode?.setAttribute("style", "position:relative"), e.querySelector('div[data-contentunit-id="stan"]')?.parentNode?.setAttribute("style", "position:relative"), e.querySelector("small")?.setAttribute("style", "position:inherit"), e.querySelector('div[id*="tablet"][id*="takeover"]')) {
232
- let u = e.createElement("style");
233
- u.innerHTML = `
232
+ let p = e.createElement("style");
233
+ p.innerHTML = `
234
234
  div:has(#adspot-tablet-takeover-2-above) {
235
235
  position: static;
236
236
  }
237
- `, e.head.appendChild(u);
237
+ `, e.head.appendChild(p);
238
238
  }
239
239
  }
240
- }, B = {
240
+ }, C = {
241
241
  siteBackgroundColor: "#ffffff",
242
242
  fireplaceLeftMargin: 0,
243
243
  adNodeMarginTop: -24,
@@ -248,17 +248,17 @@ const F = (S) => {
248
248
  stickyMargin: { offset: 160, isSticky: !0 },
249
249
  maskOffset: 312,
250
250
  zIndex: function() {
251
- const e = window.parent.document, u = e.querySelector("footer").previousElementSibling;
252
- if (u && u.tagName.toLowerCase() === "div" && (u.style.position = "relative"), e.querySelector('div[id*="tablet"][id*="takeover"]')) {
253
- let L = e.createElement("style");
254
- L.innerHTML = `
251
+ const e = window.parent.document, p = e.querySelector("footer").previousElementSibling;
252
+ if (p && p.tagName.toLowerCase() === "div" && (p.style.position = "relative"), e.querySelector('div[id*="tablet"][id*="takeover"]')) {
253
+ let B = e.createElement("style");
254
+ B.innerHTML = `
255
255
  div:has(#adspot-tablet-takeover-2-above) {
256
256
  position: static;
257
257
  }
258
- `, e.head.appendChild(L);
258
+ `, e.head.appendChild(B);
259
259
  }
260
260
  }
261
- }, x = {
261
+ }, M = {
262
262
  siteBackgroundColor: "#ffffff",
263
263
  fireplaceLeftMargin: 0,
264
264
  adNodeMarginTop: -25,
@@ -269,17 +269,17 @@ const F = (S) => {
269
269
  stickyMargin: { offset: 175, isSticky: !0 },
270
270
  maskOffset: 274,
271
271
  zIndex: function() {
272
- const e = window.parent.document, l = (T, L) => T.forEach((D) => L.forEach(([H, z]) => D.style[H] = z));
273
- if (e.querySelector(".container--padded")?.setAttribute("style", "position:relative"), l(e.querySelectorAll(".advert"), [["position", "relative"]]), e.querySelector(".footer-netkit")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), e.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), e.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), e.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none"), e.querySelector(".score-strip")?.setAttribute("style", "display:none"), e.querySelector(".feed-header__breadcrumbs")?.setAttribute("style", "display:none"), e.querySelector(".layout.container")?.setAttribute("style", "padding:0"), e.querySelector(".empty-div")?.setAttribute("style", "display:none"), e.querySelector('div[id*="tablet"][id*="takeover"]')) {
274
- let T = e.createElement("style");
275
- T.innerHTML = `
272
+ const e = window.parent.document, s = (q, B) => q.forEach((L) => B.forEach(([H, z]) => L.style[H] = z));
273
+ if (e.querySelector(".container--padded")?.setAttribute("style", "position:relative"), s(e.querySelectorAll(".advert"), [["position", "relative"]]), e.querySelector(".footer-netkit")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), e.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), e.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), e.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none"), e.querySelector(".score-strip")?.setAttribute("style", "display:none"), e.querySelector(".feed-header__breadcrumbs")?.setAttribute("style", "display:none"), e.querySelector(".layout.container")?.setAttribute("style", "padding:0"), e.querySelector(".empty-div")?.setAttribute("style", "display:none"), e.querySelector('div[id*="tablet"][id*="takeover"]')) {
274
+ let q = e.createElement("style");
275
+ q.innerHTML = `
276
276
  div:has(#adspot-tablet-takeover-2-above) {
277
277
  position: static;
278
278
  }
279
- `, e.head.appendChild(T);
279
+ `, e.head.appendChild(q);
280
280
  }
281
281
  }
282
- }, E = {
282
+ }, b = {
283
283
  siteBackgroundColor: "#ffffff",
284
284
  fireplaceLeftMargin: 0,
285
285
  adNodeMarginTop: -32,
@@ -292,108 +292,108 @@ const F = (S) => {
292
292
  zIndex: function() {
293
293
  const e = window.parent.document;
294
294
  e.querySelector(".header-wrapper")?.setAttribute("style", "height:124px"), e.querySelector(".weather-widget-wrapper")?.setAttribute("style", "bottom:0px"), e.querySelector(".content")?.setAttribute("style", "padding-top:32px"), e.querySelector(".layout")?.setAttribute("style", "position:relative;background-color:transparent;"), e.querySelector(".footer-ad")?.setAttribute("style", "position:relative"), e.querySelector(".footer-netkit")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);");
295
- const l = e.querySelector('[class*="VideoIndexComponent"]');
296
- l && (e.querySelector(".breadcrumbs")?.setAttribute("style", "display:none"), l.style.maxWidth = "1190px", l.style.margin = "auto", l.style.position = "relative");
295
+ const s = e.querySelector('[class*="VideoIndexComponent"]');
296
+ s && (e.querySelector(".breadcrumbs")?.setAttribute("style", "display:none"), s.style.maxWidth = "1190px", s.style.margin = "auto", s.style.position = "relative");
297
297
  }
298
- }, d = [
299
- { site: "https://www.nine.com.au/sport", config: B },
300
- { site: "https://www.nine.com.au/product-reviews", config: A },
301
- { site: "https://www.nine.com.au/property", config: A },
302
- { site: "https://www.nine.com.au/entertainment", config: A },
303
- { site: "https://staging.nine.com.au/sport", config: B },
304
- { site: "https://staging.nine.com.au/product-reviews", config: A },
305
- { site: "https://staging.nine.com.au/property", config: A },
306
- { site: "https://staging.nine.com.au/entertainment", config: A },
307
- { site: "https://render-web-nine-staging-v1.ffxblue.com.au", config: w },
308
- { site: "https://render-web-nine-production-v1.ffxblue.com.au", config: w },
309
- { site: "https://preview.nine.com.au/", config: w },
310
- { site: "https://www.nine", config: w },
311
- { site: "https://staging.nine", config: w },
312
- { site: "https://entertainment", config: y },
313
- { site: "https://celebrity", config: y },
314
- { site: "https://homes", config: y },
315
- { site: "https://travel", config: y },
316
- { site: "https://honey", config: y },
317
- { site: "https://style", config: y },
318
- { site: "https://coach", config: y },
319
- { site: "https://kitchen", config: y },
320
- { site: "https://finance", config: y },
321
- { site: "https://wwos", config: x },
322
- { site: "https://staging.wwos", config: B },
323
- { site: "https://www.9news", config: E },
324
- { site: "https://staging.9news", config: E },
325
- { site: "https://www.yourtv", config: y },
326
- { site: "https://staging.yourtv", config: y },
327
- { site: "https://9now", config: A },
328
- { site: "https://creative-preview-an.com", config: y }
329
- ], C = () => {
298
+ }, T = [
299
+ { site: "https://www.nine.com.au/sport", config: C },
300
+ { site: "https://www.nine.com.au/product-reviews", config: x },
301
+ { site: "https://www.nine.com.au/property", config: x },
302
+ { site: "https://www.nine.com.au/entertainment", config: x },
303
+ { site: "https://staging.nine.com.au/sport", config: C },
304
+ { site: "https://staging.nine.com.au/product-reviews", config: x },
305
+ { site: "https://staging.nine.com.au/property", config: x },
306
+ { site: "https://staging.nine.com.au/entertainment", config: x },
307
+ { site: "https://render-web-nine-staging-v1.ffxblue.com.au", config: h },
308
+ { site: "https://render-web-nine-production-v1.ffxblue.com.au", config: h },
309
+ { site: "https://preview.nine.com.au/", config: h },
310
+ { site: "https://www.nine", config: h },
311
+ { site: "https://staging.nine", config: h },
312
+ { site: "https://entertainment", config: f },
313
+ { site: "https://celebrity", config: f },
314
+ { site: "https://homes", config: f },
315
+ { site: "https://travel", config: f },
316
+ { site: "https://honey", config: f },
317
+ { site: "https://style", config: f },
318
+ { site: "https://coach", config: f },
319
+ { site: "https://kitchen", config: f },
320
+ { site: "https://finance", config: f },
321
+ { site: "https://wwos", config: M },
322
+ { site: "https://staging.wwos", config: C },
323
+ { site: "https://www.9news", config: b },
324
+ { site: "https://staging.9news", config: b },
325
+ { site: "https://www.yourtv", config: f },
326
+ { site: "https://staging.yourtv", config: f },
327
+ { site: "https://9now", config: x },
328
+ { site: "https://creative-preview-an.com", config: f }
329
+ ], u = () => {
330
330
  const e = window.document.getElementById("nineContent");
331
- e && (e.style.backgroundColor = t.siteBackgroundColor), a && (q.setProperty("--masthead-height", "250px"), q.height = "var(--masthead-height)"), h(), k(), M(), g(), p.addEventListener("scroll", f, { passive: !0 }), r = setTimeout(f, 50);
332
- }, N = () => {
331
+ e && (e.style.backgroundColor = t.siteBackgroundColor), l && (E.setProperty("--masthead-height", "250px"), E.height = "var(--masthead-height)"), g(), y(), N(), A(), c.addEventListener("scroll", m, { passive: !0 }), i = setTimeout(m, 50);
332
+ }, P = () => {
333
333
  let e = null;
334
- return e = c.querySelector('div[id*="billboard"][id*="above"]'), e;
335
- }, M = () => {
334
+ return e = a.querySelector('div[id*="billboard"][id*="above"]'), e;
335
+ }, N = () => {
336
336
  let e = null;
337
337
  if (!window.parent) return e;
338
- if (e = c.querySelector('div[id*="halfpage"][id*="above"]'), !e) return;
339
- let l = e;
340
- for (let u = 0; u < 3; u++)
341
- if (l = l.parentNode, l && getComputedStyle(l).position === "sticky") {
342
- l.setAttribute("style", `top: ${t.stickyMargin.offset}px`);
338
+ if (e = a.querySelector('div[id*="halfpage"][id*="above"]'), !e) return;
339
+ let s = e;
340
+ for (let p = 0; p < 3; p++)
341
+ if (s = s.parentNode, s && getComputedStyle(s).position === "sticky") {
342
+ s.setAttribute("style", `top: ${t.stickyMargin.offset}px`);
343
343
  break;
344
344
  }
345
345
  }, I = () => {
346
- const e = p.location.href;
347
- for (let l = 0; l < d.length; l += 1)
348
- if (e.indexOf(d[l].site) >= 0)
349
- return d[l].config;
350
- }, k = () => {
351
- if (!i) return;
352
- const e = i.style;
346
+ const e = c.location.href;
347
+ for (let s = 0; s < T.length; s += 1)
348
+ if (e.indexOf(T[s].site) >= 0)
349
+ return T[s].config;
350
+ }, y = () => {
351
+ if (!n) return;
352
+ const e = n.style;
353
353
  e.width = "100%", e.height = "1000px", e.position = "fixed", e.left = "50%", e.setProperty("--transform-y", "0px"), e.transform = "translate3d(-50%, var(--transform-y), 0)";
354
- }, h = () => {
355
- if (!s) return;
356
- const e = s.style;
357
- s.className = "", e.minHeight = "250px", e.marginTop = t.adNodeMarginTop + "px", e.marginBottom = t.adNodeMarginBottom + "px", e.position = "static", e.display = "block", t.zIndex && t.zIndex();
358
354
  }, g = () => {
359
- n = c.querySelector('div[data-contentunit-id="stan"]')?.parentNode || c.querySelector('div[data-ui-testid="header-score-strip"]')?.parentNode || c.querySelector('div[class*="__MyContainer"]') || c.querySelector('div[class*="__ArticleContainer"]') || c.querySelector('div[class*="__VideoIndexComponent"]') || c.querySelector("div.container.layout") || c.querySelector("main.container.layout"), n && (n.style.willChange = "clip-path", n.style.transition = "none", n.style.webkitBackfaceVisibility = "hidden", n.style.backfaceVisibility = "hidden", n.style.transform = "translate3d(0,0,0)", n.style.backgroundColor = t.siteBackgroundColor, n.style.setProperty("--mask-inset", "0px"), n.style.clipPath = "inset(var(--mask-inset, 0px) 0 0 0)");
355
+ if (!w) return;
356
+ const e = w.style;
357
+ w.className = "", e.minHeight = "250px", e.marginTop = t.adNodeMarginTop + "px", e.marginBottom = t.adNodeMarginBottom + "px", e.position = "static", e.display = "block", t.zIndex && t.zIndex();
358
+ }, A = () => {
359
+ r = a.querySelector('div[data-contentunit-id="stan"]')?.parentNode || a.querySelector('div[data-ui-testid="header-score-strip"]')?.parentNode || a.querySelector('div[class*="__MyContainer"]') || a.querySelector('div[class*="__ArticleContainer"]') || a.querySelector('div[class*="__VideoIndexComponent"]') || a.querySelector("div.container.layout") || a.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)");
360
360
  };
361
- let b = 0, o = 0;
362
- const f = () => {
363
- const e = p.scrollY, l = e > b, u = e > v ? e - t.maskOffset : 0, T = Math.abs(u - o);
364
- if (n)
365
- if (l && u > o)
366
- if (T > 100) {
367
- const L = Math.max(0, u - 100);
368
- n.style.transition = "none", n.style.setProperty("--mask-inset", `${L}px`), n.offsetHeight, n.style.transition = "clip-path 0.3s ease-out", n.style.setProperty("--mask-inset", `${u}px`);
361
+ let k = 0, o = 0;
362
+ const m = () => {
363
+ const e = c.scrollY, s = e > k, p = e > v ? e - t.maskOffset : 0, q = Math.abs(p - o);
364
+ if (r)
365
+ if (s && p > o)
366
+ if (q > 100) {
367
+ const B = Math.max(0, p - 100);
368
+ r.style.transition = "none", r.style.setProperty("--mask-inset", `${B}px`), r.offsetHeight, r.style.transition = "clip-path 0.3s ease-out", r.style.setProperty("--mask-inset", `${p}px`);
369
369
  } else
370
- n.style.transition = "clip-path 0.3s ease-out", n.style.setProperty("--mask-inset", `${u}px`);
370
+ r.style.transition = "clip-path 0.3s ease-out", r.style.setProperty("--mask-inset", `${p}px`);
371
371
  else
372
- n.style.transition = "none", n.style.setProperty("--mask-inset", `${u}px`);
373
- b = e, o = u, e > v ? (i.style.setProperty("--transform-y", `${-m}px`), q.setProperty("--masthead-height", "100px"), window.CollantOn || window.goCollant()) : e > m && e <= v ? (i.style.setProperty("--transform-y", `${-m}px`), q.setProperty("--masthead-height", `${250 + m - e}px`), window.CollantOn && window.goBillboard()) : e >= 0 && e <= m && (i.style.setProperty("--transform-y", `${-e}px`), q.setProperty("--masthead-height", "250px"), window.CollantOn && window.goBillboard());
374
- }, s = N(), t = I();
372
+ r.style.transition = "none", r.style.setProperty("--mask-inset", `${p}px`);
373
+ k = e, o = p, e > v ? (n.style.setProperty("--transform-y", `${-d}px`), E.setProperty("--masthead-height", "100px"), window.CollantOn || window.goCollant()) : e > d && e <= v ? (n.style.setProperty("--transform-y", `${-d}px`), E.setProperty("--masthead-height", `${250 + d - e}px`), window.CollantOn && window.goBillboard()) : e >= 0 && e <= d && (n.style.setProperty("--transform-y", `${-e}px`), E.setProperty("--masthead-height", "250px"), window.CollantOn && window.goBillboard());
374
+ }, w = P(), t = I();
375
375
  if (!t) return () => {
376
376
  };
377
- let r = null;
378
- const m = -t.responsiveScroll + S, v = m + 150;
379
- return C(), () => {
380
- p.removeEventListener("scroll", f), r && (clearTimeout(r), r = null);
377
+ let i = null;
378
+ const d = -t.responsiveScroll + S, v = d + 150;
379
+ return u(), () => {
380
+ c.removeEventListener("scroll", m), i && (clearTimeout(i), i = null);
381
381
  };
382
- }, X = (S, i, p) => {
383
- const c = window.frameElement ? window.frameElement : null;
384
- if (!c) return () => {
382
+ }, X = (S, n, c) => {
383
+ const a = window.frameElement ? window.frameElement : null;
384
+ if (!a) return () => {
385
385
  };
386
- const a = window.parent;
387
- if (!a || a === window) return () => {
386
+ const l = window.parent;
387
+ if (!l || l === window) return () => {
388
388
  };
389
- let q = null;
389
+ let E = null;
390
390
  try {
391
- q = a.document, a.location.href;
391
+ E = l.document, l.location.href;
392
392
  } catch {
393
393
  return () => {
394
394
  };
395
395
  }
396
- const n = {
396
+ const r = {
397
397
  siteBackgroundColor: "#ffffff",
398
398
  logoTop: "44px",
399
399
  logoLeft: "50%",
@@ -402,10 +402,10 @@ const F = (S) => {
402
402
  logoSmallTransform: "translateX(0px)",
403
403
  logoSmallFilter: "none",
404
404
  zIndex: function() {
405
- const t = window.parent.document, r = (m, v) => m.forEach((e) => v.forEach(([l, u]) => e.style[l] = u));
406
- t.querySelector(".container--padded")?.setAttribute("style", "position:relative"), r(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");
405
+ const t = window.parent.document, i = (d, v) => d.forEach((e) => v.forEach(([s, p]) => e.style[s] = p));
406
+ t.querySelector(".container--padded")?.setAttribute("style", "position:relative"), i(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
- }, y = {
408
+ }, f = {
409
409
  siteBackgroundColor: "#ffffff",
410
410
  logoTop: "44px",
411
411
  logoLeft: "50%",
@@ -414,10 +414,10 @@ const F = (S) => {
414
414
  logoSmallTransform: "translateX(-50%)",
415
415
  logoSmallFilter: "none",
416
416
  zIndex: function() {
417
- const t = window.parent.document, r = (m, v) => m.forEach((e) => v.forEach(([l, u]) => e.style[l] = u));
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"), r(t.querySelectorAll(".column"), [["position", "relative"]]), r(t.querySelectorAll(".advert"), [["position", "relative"]]), r(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");
417
+ const t = window.parent.document, i = (d, v) => d.forEach((e) => v.forEach(([s, p]) => e.style[s] = p));
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"), i(t.querySelectorAll(".column"), [["position", "relative"]]), i(t.querySelectorAll(".advert"), [["position", "relative"]]), i(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
- }, A = {
420
+ }, x = {
421
421
  siteBackgroundColor: "#ffffff",
422
422
  logoTop: "44px",
423
423
  logoLeft: "50%",
@@ -426,10 +426,10 @@ const F = (S) => {
426
426
  logoSmallTransform: "translateX(-50%)",
427
427
  logoSmallFilter: "none",
428
428
  zIndex: function() {
429
- const t = window.parent.document, r = (m, v) => m.forEach((e) => v.forEach(([l, u]) => e.style[l] = u));
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"), r(t.querySelectorAll(".column"), [["position", "relative"]]), r(t.querySelectorAll(".advert"), [["position", "relative"]]), r(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");
429
+ const t = window.parent.document, i = (d, v) => d.forEach((e) => v.forEach(([s, p]) => e.style[s] = p));
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"), i(t.querySelectorAll(".column"), [["position", "relative"]]), i(t.querySelectorAll(".advert"), [["position", "relative"]]), i(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
- }, w = {
432
+ }, h = {
433
433
  siteBackgroundColor: "#ffffff",
434
434
  logoTop: "44px",
435
435
  logoLeft: "50%",
@@ -438,10 +438,10 @@ const F = (S) => {
438
438
  logoSmallTransform: "translateX(-50%)",
439
439
  logoSmallFilter: "none",
440
440
  zIndex: function() {
441
- const t = window.parent.document, r = (m, v) => m.forEach((e) => v.forEach(([l, u]) => e.style[l] = u));
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"), r(t.querySelectorAll(".advert"), [["position", "relative"]]), r(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"), r(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");
441
+ const t = window.parent.document, i = (d, v) => d.forEach((e) => v.forEach(([s, p]) => e.style[s] = p));
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"), i(t.querySelectorAll(".advert"), [["position", "relative"]]), i(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"), i(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
- }, B = {
444
+ }, C = {
445
445
  siteBackgroundColor: "#ffffff",
446
446
  logoTop: "-148px",
447
447
  logoLeft: "50%",
@@ -450,10 +450,10 @@ const F = (S) => {
450
450
  logoSmallTransform: "translateX(-50%)",
451
451
  logoSmallFilter: "none",
452
452
  zIndex: function() {
453
- const t = window.parent.document, r = (m, v) => m.forEach((e) => v.forEach(([l, u]) => e.style[l] = u));
454
- t.querySelector(".container--padded")?.setAttribute("style", "position:relative"), r(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");
453
+ const t = window.parent.document, i = (d, v) => d.forEach((e) => v.forEach(([s, p]) => e.style[s] = p));
454
+ t.querySelector(".container--padded")?.setAttribute("style", "position:relative"), i(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
- }, x = {
456
+ }, M = {
457
457
  siteBackgroundColor: "#ffffff",
458
458
  logoTop: "44px",
459
459
  logoLeft: "50%",
@@ -465,78 +465,78 @@ const F = (S) => {
465
465
  const t = window.parent.document;
466
466
  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");
467
467
  }
468
- }, E = [
469
- { site: "https://www.nine.com.au/sport", config: n },
470
- { site: "https://www.nine.com.au/product-reviews", config: A },
471
- { site: "https://www.nine.com.au/property", config: A },
472
- { site: "https://www.nine.com.au/entertainment", config: A },
473
- { site: "https://staging.nine.com.au/sport", config: n },
474
- { site: "https://staging.nine.com.au/product-reviews", config: A },
475
- { site: "https://staging.nine.com.au/property", config: A },
476
- { site: "https://staging.nine.com.au/entertainment", config: A },
477
- { site: "https://render-web-nine-staging-v1.ffxblue.com.au", config: w },
478
- { site: "https://render-web-nine-production-v1.ffxblue.com.au", config: w },
479
- { site: "https://preview.nine.com.au/", config: w },
480
- { site: "https://www.nine", config: w },
481
- { site: "https://staging.nine", config: w },
482
- { site: "https://entertainment", config: y },
483
- { site: "https://celebrity", config: y },
484
- { site: "https://homes", config: y },
485
- { site: "https://travel", config: y },
486
- { site: "https://honey", config: y },
487
- { site: "https://style", config: y },
488
- { site: "https://coach", config: y },
489
- { site: "https://kitchen", config: y },
490
- { site: "https://finance", config: y },
491
- { site: "https://wwos", config: B },
492
- { site: "https://staging.wwos", config: B },
493
- { site: "https://www.9news", config: x },
494
- { site: "https://staging.9news", config: x },
495
- { site: "https://www.yourtv", config: y },
496
- { site: "https://staging.yourtv", config: y },
497
- { site: "https://9now", config: A },
498
- { site: "https://creative-preview-an.com", config: y }
499
- ], d = () => {
468
+ }, b = [
469
+ { site: "https://www.nine.com.au/sport", config: r },
470
+ { site: "https://www.nine.com.au/product-reviews", config: x },
471
+ { site: "https://www.nine.com.au/property", config: x },
472
+ { site: "https://www.nine.com.au/entertainment", config: x },
473
+ { site: "https://staging.nine.com.au/sport", config: r },
474
+ { site: "https://staging.nine.com.au/product-reviews", config: x },
475
+ { site: "https://staging.nine.com.au/property", config: x },
476
+ { site: "https://staging.nine.com.au/entertainment", config: x },
477
+ { site: "https://render-web-nine-staging-v1.ffxblue.com.au", config: h },
478
+ { site: "https://render-web-nine-production-v1.ffxblue.com.au", config: h },
479
+ { site: "https://preview.nine.com.au/", config: h },
480
+ { site: "https://www.nine", config: h },
481
+ { site: "https://staging.nine", config: h },
482
+ { site: "https://entertainment", config: f },
483
+ { site: "https://celebrity", config: f },
484
+ { site: "https://homes", config: f },
485
+ { site: "https://travel", config: f },
486
+ { site: "https://honey", config: f },
487
+ { site: "https://style", config: f },
488
+ { site: "https://coach", config: f },
489
+ { site: "https://kitchen", config: f },
490
+ { site: "https://finance", config: f },
491
+ { site: "https://wwos", config: C },
492
+ { site: "https://staging.wwos", config: C },
493
+ { site: "https://www.9news", config: M },
494
+ { site: "https://staging.9news", config: M },
495
+ { site: "https://www.yourtv", config: f },
496
+ { site: "https://staging.yourtv", config: f },
497
+ { site: "https://9now", config: x },
498
+ { site: "https://creative-preview-an.com", config: f }
499
+ ], T = () => {
500
500
  const t = window.document.getElementById("logo-small");
501
- t && (t.style.left = b.logoSmallLeft, t.style.transform = b.logoSmallTransform, t.style.filter = b.logoSmallFilter), I(), M(), a.addEventListener("scroll", h), o = setTimeout(h, 50);
502
- }, C = () => {
501
+ t && (t.style.left = k.logoSmallLeft, t.style.transform = k.logoSmallTransform, t.style.filter = k.logoSmallFilter), I(), N(), l.addEventListener("scroll", g), o = setTimeout(g, 50);
502
+ }, u = () => {
503
503
  let t = null;
504
- return t = q.querySelector('div[id*="desktop"][id*="takeover"][id*="above"]'), t;
504
+ return t = E.querySelector('div[id*="desktop"][id*="takeover"][id*="above"]'), t;
505
+ }, P = () => {
506
+ const t = l.location.href;
507
+ for (let i = 0; i < b.length; i += 1)
508
+ if (t.indexOf(b[i].site) >= 0)
509
+ return b[i].config;
505
510
  }, N = () => {
506
- const t = a.location.href;
507
- for (let r = 0; r < E.length; r += 1)
508
- if (t.indexOf(E[r].site) >= 0)
509
- return E[r].config;
510
- }, M = () => {
511
- if (!c) return;
512
- const t = c.style;
513
- t.width = "100%", t.height = `${i}px`, t.position = "relative";
511
+ if (!a) return;
512
+ const t = a.style;
513
+ t.width = "100%", t.height = `${n}px`, t.position = "relative";
514
514
  }, I = () => {
515
- if (!g) return;
516
- const t = g.style;
517
- t.maxHeight = `${i}px`, t.minHeight = `${i}px`, t.marginTop = "0px", t.marginBottom = "0px", t.position = "absolute", t.width = "1900px", t.top = b.logoTop, t.left = b.logoLeft, t.transform = b.logoTransform, t.zIndex = "10000", t.pointerEvents = "none", b.zIndex && b.zIndex();
518
- }, k = (t) => {
519
- if (!g) return;
520
- const r = g.style;
521
- t === "big" && !window.bigActive ? (r.maxHeight = `${i}px`, r.minHeight = `${i}px`, r.position = "absolute", r.top = b.logoTop, r.zIndex = "10000", window.loadBig()) : t === "small" && !window.smallActive && (r.maxHeight = `${p}px`, r.minHeight = `${p}px`, r.position = "fixed", r.top = "0px", r.zIndex = "100000", window.loadSmall());
522
- }, h = () => {
523
- const t = a.scrollY;
524
- c.style, t >= 0 && t <= f ? k("big") : t > f && (t > s ? k("small") : k("big"), s = t <= 0 ? 0 : t);
525
- }, g = C(), b = N();
526
- if (!b) return () => {
515
+ if (!A) return;
516
+ const t = A.style;
517
+ t.maxHeight = `${n}px`, t.minHeight = `${n}px`, t.marginTop = "0px", t.marginBottom = "0px", t.position = "absolute", t.width = "1900px", t.top = k.logoTop, t.left = k.logoLeft, t.transform = k.logoTransform, t.zIndex = "10000", t.pointerEvents = "none", k.zIndex && k.zIndex();
518
+ }, y = (t) => {
519
+ if (!A) return;
520
+ const i = A.style;
521
+ t === "big" && !window.bigActive ? (i.maxHeight = `${n}px`, i.minHeight = `${n}px`, i.position = "absolute", i.top = k.logoTop, i.zIndex = "10000", window.loadBig()) : t === "small" && !window.smallActive && (i.maxHeight = `${c}px`, i.minHeight = `${c}px`, i.position = "fixed", i.top = "0px", i.zIndex = "100000", window.loadSmall());
522
+ }, g = () => {
523
+ const t = l.scrollY;
524
+ a.style, t >= 0 && t <= m ? y("big") : t > m && (t > w ? y("small") : y("big"), w = t <= 0 ? 0 : t);
525
+ }, A = u(), k = P();
526
+ if (!k) return () => {
527
527
  };
528
528
  let o = null;
529
- const f = S;
530
- let s = 0;
531
- return d(), () => {
532
- a.removeEventListener("scroll", h), o && (clearTimeout(o), o = null);
529
+ const m = S;
530
+ let w = 0;
531
+ return T(), () => {
532
+ l.removeEventListener("scroll", g), o && (clearTimeout(o), o = null);
533
533
  };
534
- }, Y = (S) => {
534
+ }, U = (S) => {
535
535
  if (S === 0 || S === 1) return S;
536
- const i = 2 * Math.PI / 3;
537
- return Math.pow(2, -10 * S) * Math.sin((S * 10 - 0.75) * i) + 1;
538
- }, U = (S, i = 50) => `linear(${Array.from({ length: i + 1 }, (c, a) => S(a / i)).map((c) => +c.toFixed(4)).join(", ")})`, j = U(Y), G = (S = {}) => {
539
- const i = {
536
+ const n = 2 * Math.PI / 3;
537
+ return Math.pow(2, -10 * S) * Math.sin((S * 10 - 0.75) * n) + 1;
538
+ }, j = (S, n = 50) => `linear(${Array.from({ length: n + 1 }, (a, l) => S(l / n)).map((a) => +a.toFixed(4)).join(", ")})`, G = j(U), K = (S = {}) => {
539
+ const n = {
540
540
  // Ad scroll zone
541
541
  // How tall the ad container is — controls how long the ad stays in view.
542
542
  // 100vh = scrolls away after one viewport height; 200vh = twice as long, etc.
@@ -554,7 +554,7 @@ const F = (S) => {
554
554
  bandFontFamily: "Arial, Helvetica, sans-serif",
555
555
  bandLetterSpacing: "1px",
556
556
  // Band labels
557
- labelTop: "Advertisement",
557
+ labelTop: "Advertisement2",
558
558
  labelBottomResume: "Scroll to continue",
559
559
  // shown from 0–20% ad progress
560
560
  labelBottomMid: "Keep scrolling",
@@ -591,7 +591,7 @@ const F = (S) => {
591
591
  // CSS timing function for the snap — any valid CSS transition-timing-function.
592
592
  // Default: easeOutElastic encoded as a CSS linear() function (50-point sample).
593
593
  // See: https://developer.mozilla.org/en-US/blog/custom-easing-in-css-with-linear/
594
- snapEase: j,
594
+ snapEase: G,
595
595
  // ── Scroll callbacks ───────────────────────────────────────────
596
596
  // Called once when the ad starts to reveal (top band visible, ad beginning to scroll).
597
597
  onEnter: null,
@@ -606,76 +606,87 @@ const F = (S) => {
606
606
  thresholds: [],
607
607
  // Merge caller-supplied options (overrides any default above)
608
608
  ...S
609
- }, p = window.frameElement ? window.frameElement : null;
610
- if (!p) return () => {
609
+ }, c = window.frameElement ? window.frameElement : null;
610
+ if (!c) return () => {
611
611
  };
612
- const c = window.parent;
613
- if (!c || c === window) return () => {
612
+ const a = window.parent;
613
+ if (!a || a === window) return () => {
614
614
  };
615
- let a = null;
615
+ let l = null;
616
616
  try {
617
- a = c.document, c.location.href;
617
+ l = a.document, a.location.href;
618
618
  } catch {
619
619
  return () => {
620
620
  };
621
621
  }
622
- const n = (() => {
623
- const s = a.querySelector("#adspot-mobile-mobile-3-above");
624
- if (s) return s;
625
- let t = p.parentElement;
626
- for (; t && t !== a.body; ) {
627
- if (t.id && t.id.includes("adspot")) return t;
628
- t = t.parentElement;
622
+ const r = (() => {
623
+ const t = l.querySelector("#adspot-mobile-mobile-3-above");
624
+ if (t) return t;
625
+ let i = c.parentElement;
626
+ for (; i && i !== l.body; ) {
627
+ if (i.id && i.id.includes("adspot")) return i;
628
+ i = i.parentElement;
629
629
  }
630
- return p.parentElement;
630
+ return c.parentElement;
631
631
  })();
632
- if (!n) return () => {
632
+ if (!r) return () => {
633
633
  };
634
- const y = n.getAttribute("style"), A = p.getAttribute("style"), w = {
634
+ const f = r.getAttribute("style"), x = c.getAttribute("style"), h = [], C = {
635
635
  width: "100vw",
636
636
  marginLeft: "calc(50% - 50vw)",
637
- height: i.bandHeight + "px",
638
- backgroundColor: i.bandBg,
639
- color: i.bandColor,
640
- fontSize: i.bandFontSize,
641
- fontFamily: i.bandFontFamily,
637
+ height: n.bandHeight + "px",
638
+ backgroundColor: n.bandBg,
639
+ color: n.bandColor,
640
+ fontSize: n.bandFontSize,
641
+ fontFamily: n.bandFontFamily,
642
642
  textTransform: "uppercase",
643
- letterSpacing: i.bandLetterSpacing,
643
+ letterSpacing: n.bandLetterSpacing,
644
644
  display: "flex",
645
645
  alignItems: "center",
646
646
  justifyContent: "center",
647
647
  pointerEvents: "none"
648
648
  };
649
649
  (() => {
650
- const s = n.style;
651
- s.height = i.adScrollHeight, s.position = "relative", n.setAttribute("poweredAC", "0.0.96"), s.clipPath = `inset(-${i.bandHeight - 1}px 0 0 0)`, s.overflow = "visible", s.width = "100vw", s.maxWidth = "100vw", s.marginLeft = "calc(50% - 50vw)", s.marginRight = "0", s.marginTop = "0", s.marginBottom = "0", s.padding = "0";
652
- const t = p.style;
653
- t.position = "fixed", t.top = "0", t.left = "0", t.width = "100vw", t.height = "100vh", t.maxWidth = "100vw", t.margin = "0", t.padding = "0", t.border = "none", t.zIndex = "1";
654
- const r = a.createElement("div");
655
- r.id = "interscroller-top-band-wrapper", Object.assign(r.style, {
650
+ const t = r.style;
651
+ t.height = n.adScrollHeight, t.maxHeight = n.adScrollHeight, t.position = "relative", r.setAttribute("poweredAC", "0.0.99"), 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
+ let i = r.parentElement;
653
+ for (let q = 0; q < 6 && i && i !== l.body; q++) {
654
+ const B = a.getComputedStyle(i);
655
+ let L = !1;
656
+ (B.overflow === "hidden" || B.overflowY === "hidden") && (h.push({ el: i, prop: "overflow", val: i.style.overflow }), h.push({ el: i, prop: "overflowY", val: i.style.overflowY }), i.style.overflow = "visible", i.style.overflowY = "visible", L = !0);
657
+ const H = parseFloat(B.height);
658
+ B.height !== "auto" && !isNaN(H) && H < 600 && (h.push({ el: i, prop: "height", val: i.style.height }), i.style.height = "auto", L = !0);
659
+ const z = B.maxHeight;
660
+ if (z && z !== "none" && (h.push({ el: i, prop: "maxHeight", val: i.style.maxHeight }), i.style.maxHeight = "none", L = !0), !L && q > 1) break;
661
+ i = i.parentElement;
662
+ }
663
+ const d = c.style;
664
+ d.position = "fixed", d.top = "0", d.left = "0", d.width = "100vw", d.height = "100vh", d.maxWidth = "100vw", d.margin = "0", d.padding = "0", d.border = "none", d.zIndex = "1";
665
+ const v = l.createElement("div");
666
+ v.id = "interscroller-top-band-wrapper", Object.assign(v.style, {
656
667
  position: "sticky",
657
668
  bottom: "0",
658
669
  width: "100vw",
659
670
  marginLeft: "calc(50% - 50vw)",
660
- zIndex: i.zIndexTop,
671
+ zIndex: n.zIndexTop,
661
672
  pointerEvents: "none"
662
673
  });
663
- const m = a.createElement("div");
664
- m.id = "interscroller-top-band", m.textContent = i.labelTop, Object.assign(m.style, w, {
674
+ const e = l.createElement("div");
675
+ e.id = "interscroller-top-band", e.textContent = n.labelTop, Object.assign(e.style, C, {
665
676
  position: "relative",
666
677
  // wrapper is the sticky anchor
667
678
  width: "100%",
668
679
  // wrapper handles the full-bleed breakout
669
680
  marginLeft: "0",
670
681
  transformOrigin: "top center"
671
- }), r.appendChild(m), n.insertAdjacentElement("beforebegin", r);
672
- const v = a.createElement("div");
673
- v.id = "interscroller-bottom-band", Object.assign(v.style, w, {
682
+ }), v.appendChild(e), r.insertAdjacentElement("beforebegin", v);
683
+ const s = l.createElement("div");
684
+ s.id = "interscroller-bottom-band", Object.assign(s.style, C, {
674
685
  position: "fixed",
675
686
  // stays fixed; transform slides it in/out
676
687
  bottom: "0",
677
688
  left: "0",
678
- zIndex: i.zIndexBottom,
689
+ zIndex: n.zIndexBottom,
679
690
  display: "flex",
680
691
  // always rendered — no display toggling
681
692
  overflow: "hidden",
@@ -685,46 +696,48 @@ const F = (S) => {
685
696
  transition: "none"
686
697
  // no animation on first paint
687
698
  });
688
- const e = a.createElement("span");
689
- if (e.id = "interscroller-bottom-label", e.textContent = i.labelBottomResume, e.style.cssText = "position:relative;z-index:1;pointer-events:none;", v.appendChild(e), i.progressBarColor) {
690
- const l = a.createElement("span");
691
- l.id = "interscroller-bottom-progress", l.style.cssText = [
699
+ const p = l.createElement("span");
700
+ if (p.id = "interscroller-bottom-label", p.textContent = n.labelBottomResume, p.style.cssText = "position:relative;z-index:1;pointer-events:none;", s.appendChild(p), n.progressBarColor) {
701
+ const q = l.createElement("span");
702
+ q.id = "interscroller-bottom-progress", q.style.cssText = [
692
703
  "position:absolute",
693
704
  "inset:0",
694
705
  "width:0%",
695
- `background:${i.progressBarColor}`,
706
+ `background:${n.progressBarColor}`,
696
707
  "transition:none",
697
708
  "z-index:0",
698
709
  "pointer-events:none"
699
- ].join(";"), v.appendChild(l);
710
+ ].join(";"), s.appendChild(q);
700
711
  }
701
- n.after(v);
712
+ r.after(s);
702
713
  })();
703
- const x = a.querySelector("#interscroller-top-band"), E = a.querySelector("#interscroller-top-band-wrapper"), d = a.querySelector("#interscroller-bottom-band"), C = a.querySelector("#interscroller-bottom-label"), N = a.querySelector("#interscroller-bottom-progress"), M = i.bandHeight, I = i.snapPx;
704
- let k = !1, h = !1, g = !1, b = !1;
705
- const o = (i.thresholds || []).map(() => !1), f = () => {
706
- if (!d) return;
707
- const s = n.getBoundingClientRect(), t = c.innerHeight, r = s.top <= t, m = s.bottom <= t - M, v = b ? s.top <= t - i.bottomBandHideAt : s.top <= t - i.bottomBandShowAt, e = n.offsetHeight, l = Math.min(1, Math.max(0, (t - s.top) / (e + t))), u = Math.min(1, Math.max(0, (t - s.top) / (e + M))), T = Math.min(1, Math.max(0, (t - s.top) / e)), L = Math.min(s.bottom, t) - Math.max(s.top - M, 0), D = Math.min(1, Math.max(0, L / t)), H = Math.max(0, Math.round(s.bottom - t));
708
- !h && r && i.onEnter && i.onEnter(), !g && m && i.onExit && i.onExit(), h = r, g = m, b = v, i.onProgress && i.onProgress({ scrollProgress: l, adExposure: T, viewportCoverage: D, pxRemaining: H }), (i.thresholds || []).forEach((P, R) => {
709
- const _ = o[R], $ = l >= P.at;
710
- !_ && $ ? (o[R] = !0, P.onEnter && P.onEnter(l)) : _ && !$ && (o[R] = !1, P.onLeave && P.onLeave(l));
714
+ const b = l.querySelector("#interscroller-top-band"), T = l.querySelector("#interscroller-top-band-wrapper"), u = l.querySelector("#interscroller-bottom-band"), P = l.querySelector("#interscroller-bottom-label"), N = l.querySelector("#interscroller-bottom-progress"), I = n.bandHeight, y = n.snapPx;
715
+ let g = !1, A = !1, k = !1, o = !1;
716
+ const m = (n.thresholds || []).map(() => !1), w = () => {
717
+ if (!u) return;
718
+ const t = r.getBoundingClientRect(), i = a.innerHeight, d = t.top <= i, v = t.bottom <= i - I, e = o ? t.top <= i - n.bottomBandHideAt : t.top <= i - n.bottomBandShowAt, s = r.offsetHeight, p = Math.min(1, Math.max(0, (i - t.top) / (s + i))), q = Math.min(1, Math.max(0, (i - t.top) / (s + I))), B = Math.min(1, Math.max(0, (i - t.top) / s)), L = Math.min(t.bottom, i) - Math.max(t.top - I, 0), H = Math.min(1, Math.max(0, L / i)), z = Math.max(0, Math.round(t.bottom - i));
719
+ !A && d && n.onEnter && n.onEnter(), !k && v && n.onExit && n.onExit(), A = d, k = v, o = e, n.onProgress && n.onProgress({ scrollProgress: p, adExposure: B, viewportCoverage: H, pxRemaining: z }), (n.thresholds || []).forEach((D, _) => {
720
+ const $ = m[_], F = p >= D.at;
721
+ !$ && F ? (m[_] = !0, D.onEnter && D.onEnter(p)) : $ && !F && (m[_] = !1, D.onLeave && D.onLeave(p));
711
722
  });
712
- const z = t;
713
- if (x && s.top <= z + i.stretchOverlap && !m) {
714
- const P = z - s.top;
715
- if (!k && P <= I - i.snapOverlap) {
716
- const R = 1 + Math.max(0, P + i.stretchOverlap) / M;
717
- x.style.transition = "none", x.style.transform = `scaleY(${R})`;
718
- } else !k && P > I - i.snapOverlap && (k = !0, x.style.transition = `transform ${i.snapDuration}s ${i.snapEase}`, x.style.transform = "scaleY(1)");
719
- } else x && s.top > z + i.stretchOverlap && (k = !1, x.style.transition = "none", x.style.transform = "scaleY(1)");
720
- const O = c.visualViewport ? Math.round(c.innerHeight - (c.visualViewport.offsetTop + c.visualViewport.height)) : 0;
721
- m ? (d.style.transition = "none", d.style.transform = "none", d.style.position = "sticky", d.style.top = "0", d.style.bottom = "", d.style.left = "", d.style.marginLeft = "calc(50% - 50vw)", d.style.width = "100vw", C && (C.textContent = i.labelBottomNow), N && (N.style.width = "100%")) : v ? (C && (C.textContent = H > 0 ? u < 0.2 ? i.labelBottomResume : u < 0.75 ? i.labelBottomMid : i.labelBottomLate : i.labelBottomNow), N && (N.style.width = `${Math.round(u * 100)}%`), d.style.transition = "transform 0.3s ease", d.style.transform = "translateY(0)", d.style.position = "fixed", d.style.bottom = `${O}px`, d.style.top = "", d.style.left = "0", d.style.marginLeft = "0", d.style.width = "100vw") : (d.style.transition = "transform 0.3s ease", d.style.transform = "translateY(100%)", d.style.position = "fixed", d.style.bottom = `${O}px`, d.style.left = "0", d.style.marginLeft = "0", d.style.width = "100vw");
723
+ const W = i;
724
+ if (b && t.top <= W + n.stretchOverlap && !v) {
725
+ const D = W - t.top;
726
+ if (!g && D <= y - n.snapOverlap) {
727
+ const _ = 1 + Math.max(0, D + n.stretchOverlap) / I;
728
+ b.style.transition = "none", b.style.transform = `scaleY(${_})`;
729
+ } else !g && D > y - n.snapOverlap && (g = !0, b.style.transition = `transform ${n.snapDuration}s ${n.snapEase}`, b.style.transform = "scaleY(1)");
730
+ } else b && t.top > W + n.stretchOverlap && (g = !1, b.style.transition = "none", b.style.transform = "scaleY(1)");
731
+ const O = a.visualViewport ? Math.round(a.innerHeight - (a.visualViewport.offsetTop + a.visualViewport.height)) : 0;
732
+ v ? (u.style.transition = "none", u.style.transform = "none", u.style.position = "sticky", u.style.top = "0", u.style.bottom = "", u.style.left = "", u.style.marginLeft = "calc(50% - 50vw)", u.style.width = "100vw", P && (P.textContent = n.labelBottomNow), N && (N.style.width = "100%")) : e ? (P && (P.textContent = z > 0 ? q < 0.2 ? n.labelBottomResume : q < 0.75 ? n.labelBottomMid : n.labelBottomLate : n.labelBottomNow), N && (N.style.width = `${Math.round(q * 100)}%`), u.style.transition = "transform 0.3s ease", u.style.transform = "translateY(0)", u.style.position = "fixed", u.style.bottom = `${O}px`, u.style.top = "", u.style.left = "0", u.style.marginLeft = "0", u.style.width = "100vw") : (u.style.transition = "transform 0.3s ease", u.style.transform = "translateY(100%)", u.style.position = "fixed", u.style.bottom = `${O}px`, u.style.left = "0", u.style.marginLeft = "0", u.style.width = "100vw");
722
733
  };
723
- return f(), c.addEventListener("scroll", f, { passive: !0 }), c.visualViewport?.addEventListener("resize", f, { passive: !0 }), () => {
724
- c.removeEventListener("scroll", f), c.visualViewport?.removeEventListener("resize", f), E ? E.remove() : x && x.remove(), d && d.remove(), y ? n.setAttribute("style", y) : n.removeAttribute("style"), A ? p.setAttribute("style", A) : p.removeAttribute("style");
734
+ return w(), a.addEventListener("scroll", w, { passive: !0 }), a.visualViewport?.addEventListener("resize", w, { passive: !0 }), () => {
735
+ a.removeEventListener("scroll", w), a.visualViewport?.removeEventListener("resize", w), T ? T.remove() : b && b.remove(), u && u.remove(), f ? r.setAttribute("style", f) : r.removeAttribute("style"), x ? c.setAttribute("style", x) : c.removeAttribute("style"), h.forEach(({ el: t, prop: i, val: d }) => {
736
+ t.style[i] = d || "";
737
+ });
725
738
  };
726
- }, K = (S = {}) => {
727
- const i = {
739
+ }, J = (S = {}) => {
740
+ const n = {
728
741
  // Adaptation dimensions
729
742
  adaptToWidth: "100%",
730
743
  // target width — '100%' | '100vw' | px string | false
@@ -735,79 +748,65 @@ const F = (S) => {
735
748
  adaptToHeight: !1,
736
749
  // explicit height — ignored when maintainAspectRatio:true
737
750
  // Stacking
738
- zIndex: 10,
739
- // IntersectionObserver trigger
740
- adaptThreshold: 0.5,
741
- // fraction of the slot visible before adaptation fires
751
+ zIndex: 7,
742
752
  // Callback — fired once the slot dimensions have settled
743
753
  onAdapt: null,
744
754
  // Merge caller-supplied options
745
755
  ...S
746
- }, p = window.frameElement ?? null;
747
- if (!p) return () => {
756
+ }, c = window.frameElement ?? null;
757
+ if (!c) return () => {
748
758
  };
749
- const c = window.parent;
750
- if (!c || c === window) return () => {
759
+ const a = window.parent;
760
+ if (!a || a === window) return () => {
751
761
  };
752
- let a = null;
762
+ let l = null;
753
763
  try {
754
- a = c.document, c.location.href;
764
+ l = a.document, a.location.href;
755
765
  } catch {
756
766
  return () => {
757
767
  };
758
768
  }
759
- const n = (() => {
760
- const h = a.querySelector("#adspot-mobile-mbanner-2-above");
761
- if (h) return h;
762
- let g = p.parentElement;
763
- for (; g && g !== a.body; ) {
769
+ const r = (() => {
770
+ const y = l.querySelector("#adspot-mobile-mbanner-2-above");
771
+ if (y) return y;
772
+ let g = c.parentElement;
773
+ for (; g && g !== l.body; ) {
764
774
  if (g.id && g.id.includes("adspot")) return g;
765
775
  g = g.parentElement;
766
776
  }
767
- return p.parentElement;
777
+ return c.parentElement;
768
778
  })();
769
- if (!n) return () => {
779
+ if (!r) return () => {
770
780
  };
771
- const y = n.getAttribute("style"), A = p.getAttribute("style"), w = p.parentElement !== n ? p.parentElement : null, B = w ? w.getAttribute("style") : null, x = n.parentElement, E = x ? c.getComputedStyle(x).paddingTop : null;
772
- let d = null;
773
- const C = parseInt(p.getAttribute("width"), 10) || 320, N = parseInt(p.getAttribute("height"), 10) || 50, M = () => {
774
- const h = n.style;
775
- if (h.position = "relative", h.overflow = "visible", h.boxSizing = "border-box", n.setAttribute("poweredAC", "0.0.96"), w) {
776
- const b = w.style;
777
- b.width = "100%", b.height = "100%", b.margin = "0", b.textAlign = "left";
781
+ const f = r.getAttribute("style"), x = c.getAttribute("style"), h = c.parentElement !== r ? c.parentElement : null, C = h ? h.getAttribute("style") : null, M = r.parentElement, b = M ? a.getComputedStyle(M).paddingTop : null, T = parseInt(c.getAttribute("width"), 10) || 320, u = parseInt(c.getAttribute("height"), 10) || 50, P = () => {
782
+ const y = r.style;
783
+ if (y.position = "relative", y.overflow = "visible", y.boxSizing = "border-box", r.setAttribute("poweredAC", "0.0.99"), h) {
784
+ const A = h.style;
785
+ A.width = "100%", A.height = "100%", A.margin = "0", A.textAlign = "left";
778
786
  }
779
- const g = p.style;
787
+ const g = c.style;
780
788
  g.display = "block", g.width = "100%", g.height = "100%", g.border = "none", g.margin = "0", g.padding = "0";
781
- }, I = () => {
782
- const h = n.style;
783
- h.zIndex = String(i.zIndex), i.adaptToWidth && (h.width = i.adaptToWidth, h.maxWidth = i.maxWidth || i.adaptToWidth, i.maxWidth && i.adaptToWidth !== "100vw" && !i.adaptToWidth.endsWith("vw") ? (h.marginLeft = "auto", h.marginRight = "auto") : (i.adaptToWidth === "100vw" || i.adaptToWidth.endsWith("vw")) && (h.marginLeft = "calc(50% - 50vw)", h.marginRight = "0")), x && E && E !== "0px" && (x.style.paddingTop = "0"), i.maintainAspectRatio ? c.requestAnimationFrame(() => {
784
- const b = n.offsetWidth || C, f = Math.round(b * (N / C));
785
- n.style.height = f + "px", w && (w.style.height = f + "px"), p.style.height = f + "px", i.onAdapt && i.onAdapt();
786
- }) : (i.adaptToHeight && (h.height = i.adaptToHeight), i.onAdapt && i.onAdapt());
789
+ }, N = () => {
790
+ const y = r.style;
791
+ y.zIndex = String(n.zIndex), n.adaptToWidth && (y.width = n.adaptToWidth, y.maxWidth = n.maxWidth || n.adaptToWidth, n.maxWidth && n.adaptToWidth !== "100vw" && !n.adaptToWidth.endsWith("vw") ? (y.marginLeft = "auto", y.marginRight = "auto") : (n.adaptToWidth === "100vw" || n.adaptToWidth.endsWith("vw")) && (y.marginLeft = "calc(50% - 50vw)", y.marginRight = "0")), M && b && b !== "0px" && (M.style.paddingTop = "0"), n.maintainAspectRatio ? a.requestAnimationFrame(() => {
792
+ const A = r.offsetWidth || T, o = Math.round(A * (u / T));
793
+ r.style.height = o + "px", h && (h.style.height = o + "px"), c.style.height = o + "px", n.onAdapt && n.onAdapt();
794
+ }) : (n.adaptToHeight && (y.height = n.adaptToHeight), n.onAdapt && n.onAdapt());
787
795
  };
788
- return M(), d = new c.IntersectionObserver(
789
- (h) => {
790
- h.forEach((g) => {
791
- g.isIntersecting && (I(), d.disconnect(), d = null);
792
- });
793
- },
794
- {
795
- root: null,
796
- threshold: i.adaptThreshold
797
- }
798
- ), d.observe(n), () => {
799
- d && (d.disconnect(), d = null), y ? n.setAttribute("style", y) : n.removeAttribute("style"), A ? p.setAttribute("style", A) : p.removeAttribute("style"), w && (B ? w.setAttribute("style", B) : w.removeAttribute("style")), x && E && E !== "0px" && (x.style.paddingTop = E);
796
+ return P(), N(), () => {
797
+ f ? r.setAttribute("style", f) : r.removeAttribute("style"), x ? c.setAttribute("style", x) : c.removeAttribute("style"), h && (C ? h.setAttribute("style", C) : h.removeAttribute("style")), M && b && b !== "0px" && (M.style.paddingTop = b);
800
798
  };
801
799
  };
802
- let W = () => {
800
+ let R = () => {
803
801
  };
804
- function J({ adFormat: S = "", stickyOffset: i = 0, logoPosX: p = 0, logoHeight: c = 0, logoSmallHeight: a = 0, ...q } = {}) {
805
- typeof W == "function" && W();
806
- let n = () => {
802
+ function Q({ adFormat: S = "", stickyOffset: n = 0, logoPosX: c = 0, logoHeight: a = 0, logoSmallHeight: l = 0, ...E } = {}) {
803
+ typeof R == "function" && R();
804
+ let r = () => {
807
805
  };
808
- return S === "fireplace" ? n = F(i) : S === "fireplace-collant" ? n = V(i) : S === "logomorph" ? n = X(p, c, a) : S === "interscroller" ? n = G(q) : S === "liquidframe" ? n = K(q) : console.warn("[powered-ad-config] Unknown ad format:", S), W = typeof n == "function" ? n : () => {
809
- }, W;
806
+ return S === "fireplace" ? r = V(n) : S === "fireplace-collant" ? r = Y(n) : S === "logomorph" ? r = X(c, a, l) : S === "interscroller" ? r = K(E) : S === "liquidframe" ? r = J(E) : console.warn("[powered-ad-config] Unknown ad format:", S), R = typeof r == "function" ? r : () => {
807
+ }, R;
810
808
  }
809
+ Q.version = "0.0.99";
811
810
  export {
812
- J as default
811
+ Q as default
813
812
  };