powered-ad-config 0.1.43 → 0.1.45

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.
@@ -50,17 +50,19 @@ var e = (e) => {
50
50
  }, l = () => {
51
51
  let e = r.querySelector("#app.nine, #app");
52
52
  if (!e) return null;
53
- let t = r.querySelector("#desktop-header-ads"), n = e.querySelector(":scope > .sc-llJctl") || e.querySelector(":scope > header"), i = c(e, C());
53
+ let t = r.querySelector("#desktop-header-ads"), n = e.querySelector(":scope > .sc-llJctl") || e.querySelector(":scope > header"), i = c(e, E());
54
54
  return t && t.parentElement === e && n ? {
55
55
  appRoot: e,
56
56
  headerShell: n,
57
57
  billboardContainer: t,
58
- desktopHeaderAds: t
58
+ desktopHeaderAds: t,
59
+ variant: "full"
59
60
  } : n && i ? {
60
61
  appRoot: e,
61
62
  headerShell: n,
62
63
  billboardContainer: i,
63
- desktopHeaderAds: null
64
+ desktopHeaderAds: null,
65
+ variant: "hybrid"
64
66
  } : null;
65
67
  }, u = () => l()?.appRoot || null, d = () => !!u(), f = () => !!(r.querySelector("#app.wwos") && r.querySelector("#desktop-header-ads")), p = () => {
66
68
  if (d() || f()) return 0;
@@ -70,7 +72,31 @@ var e = (e) => {
70
72
  if (t.position !== "fixed") return 0;
71
73
  let i = parseFloat(t.top || "0");
72
74
  return Number.isFinite(i) && Math.abs(i) > 1 ? 0 : Math.round(e.getBoundingClientRect().height) || 0;
73
- }, m = {
75
+ }, m = (e) => {
76
+ if (!e.querySelector("div[id*=\"tablet\"][id*=\"takeover\"]")) return;
77
+ let t = e.getElementById("powered-ac-tablet-takeover-static-fix");
78
+ t || (t = e.createElement("style"), t.id = "powered-ac-tablet-takeover-static-fix", e.head.appendChild(t)), t.textContent = "\n div:has(#adspot-tablet-takeover-2-above) {\n position: static;\n }\n ";
79
+ }, h = () => {
80
+ let e = window.parent.document, t = (e, t, n) => {
81
+ e && e.style[t] !== n && (e.style[t] = n);
82
+ }, n = (e, n) => e.forEach((e) => {
83
+ n.forEach(([n, r]) => {
84
+ t(e, n, r);
85
+ });
86
+ }), r = (e) => e ? Array.from(e.querySelectorAll(":scope > main, :scope > aside, :scope > footer")) : [], i = (t, n) => {
87
+ let r = e.getElementById(t);
88
+ r || (r = e.createElement("style"), r.id = t, e.head.appendChild(r)), r.textContent = n;
89
+ }, a = (e) => {
90
+ n(Array.from(e.querySelectorAll("*")).filter((e) => e.children.length > 0 ? !1 : e.textContent?.trim().toLowerCase() === "advertisement"), [["display", "none"]]);
91
+ };
92
+ t(e.querySelector("section[data-section=\"marketing-banner\"]"), "position", "relative"), t(e.querySelector("div[data-testid=\"live-tv\"]")?.parentNode, "position", "relative"), t(e.querySelector("div[data-contentunit-id=\"stan\"]")?.parentNode, "position", "relative"), t(e.querySelector("small"), "position", "inherit");
93
+ let o = l(), s = o?.appRoot, c = o?.desktopHeaderAds, u = o?.billboardContainer;
94
+ if (s) {
95
+ let e = o.headerShell, l = Array.from(s.children).filter((e) => e.tagName !== "SCRIPT"), d = u ? l.indexOf(u) : -1, f = l.filter((e, t) => t < d), p = d >= 0 ? l.filter((e, t) => t > d) : l.filter((t) => t !== c && t !== e);
96
+ t(c, "height", "250px"), t(c, "padding", "0px"), c && a(c), n(f, [["position", "relative"], ["zIndex", "1085"]]), t(e, "position", "relative"), t(e, "zIndex", "1085"), i("powered-ac-nine-new-header-overrides", "\n #app > .sc-llJctl.hgiQrx {\n width: 100%;\n max-width: 1190px;\n margin-left: auto;\n margin-right: auto;\n position: relative;\n z-index: 1085;\n }\n\n #app > .sc-llJctl header {\n position: relative;\n }\n\n #app > .sc-llJctl header .bVJveH,\n #app > .sc-llJctl header [class*=\"sc-eFWqGm\"] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: 50% !important;\n right: auto !important;\n transform: translateX(-50%) !important;\n }\n\n #app > .sc-llJctl.FwHsm {\n z-index: 1086;\n }\n\n #app > header[data-tv-show] {\n width: 100%;\n max-width: 1190px;\n margin-left: auto;\n margin-right: auto;\n }\n\n #app .sc-gicCDH.bNInIa {\n width: 100%;\n max-width: 100%;\n margin-left: 0;\n margin-right: 0;\n position: relative;\n z-index: 1086;\n }\n\n #app.nine > header {\n position: relative;\n z-index: 1085;\n }\n "), n(p, [["position", "relative"], ["zIndex", "1071"]]), n(p.flatMap((e) => r(e)), [["position", "relative"], ["zIndex", "1072"]]);
97
+ }
98
+ m(e);
99
+ }, g = {
74
100
  siteBackgroundColor: "#ffffff",
75
101
  fireplaceLeftMargin: 0,
76
102
  adNodeMarginTop: -24,
@@ -86,12 +112,24 @@ var e = (e) => {
86
112
  },
87
113
  zIndex: function() {
88
114
  let e = window.parent.document;
89
- 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\"]")) {
90
- let t = e.createElement("style");
91
- t.innerHTML = "\n div:has(#adspot-tablet-takeover-2-above) {\n position: static;\n }\n ", e.head.appendChild(t);
92
- }
115
+ 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"), m(e);
93
116
  }
94
- }, h = {
117
+ }, _ = {
118
+ siteBackgroundColor: "#ffffff",
119
+ fireplaceLeftMargin: 0,
120
+ adNodeMarginTop: -24,
121
+ adNodeMarginBottom: -55,
122
+ iframeWidth: "100%",
123
+ iframeHeight: "1000px",
124
+ responsiveScroll: -120,
125
+ xPosHalfpage: 722,
126
+ yPosHalfpage: 32,
127
+ stickyMargin: {
128
+ offset: 74,
129
+ isSticky: !0
130
+ },
131
+ zIndex: h
132
+ }, v = {
95
133
  siteBackgroundColor: "#ffffff",
96
134
  fireplaceLeftMargin: 0,
97
135
  adNodeMarginTop: 0,
@@ -105,31 +143,11 @@ var e = (e) => {
105
143
  offset: 74,
106
144
  isSticky: !0
107
145
  },
108
- zIndex: function() {
109
- let e = window.parent.document, t = (e, t, n) => {
110
- e && e.style[t] !== n && (e.style[t] = n);
111
- }, n = (e, n) => e.forEach((e) => {
112
- n.forEach(([n, r]) => {
113
- t(e, n, r);
114
- });
115
- }), r = (e) => e ? Array.from(e.querySelectorAll(":scope > main, :scope > aside, :scope > footer")) : [], i = (t, n) => {
116
- let r = e.getElementById(t);
117
- r || (r = e.createElement("style"), r.id = t, e.head.appendChild(r)), r.textContent = n;
118
- }, a = (e) => {
119
- n(Array.from(e.querySelectorAll("*")).filter((e) => e.children.length > 0 ? !1 : e.textContent?.trim().toLowerCase() === "advertisement"), [["display", "none"]]);
120
- };
121
- 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");
122
- let o = l(), s = o?.appRoot, c = o?.desktopHeaderAds, u = o?.billboardContainer;
123
- if (s) {
124
- let e = o.headerShell, l = Array.from(s.children).filter((e) => e.tagName !== "SCRIPT"), d = u ? l.indexOf(u) : -1, f = l.filter((e, t) => t < d), p = d >= 0 ? l.filter((e, t) => t > d) : l.filter((t) => t !== c && t !== e);
125
- t(c, "height", "250px"), t(c, "padding", "0px"), c && a(c), n(f, [["position", "relative"], ["zIndex", "1085"]]), t(e, "position", "relative"), t(e, "zIndex", "1085"), i("powered-ac-nine-new-header-overrides", "\n #app > .sc-llJctl.hgiQrx {\n width: 100%;\n max-width: 1190px;\n margin-left: auto;\n margin-right: auto;\n position: relative;\n z-index: 1085;\n }\n\n #app > .sc-llJctl header {\n position: relative;\n }\n\n #app > .sc-llJctl header .bVJveH,\n #app > .sc-llJctl header [class*=\"sc-eFWqGm\"] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: 50% !important;\n right: auto !important;\n transform: translateX(-50%) !important;\n }\n\n #app > .sc-llJctl.FwHsm {\n z-index: 1086;\n }\n\n #app > header[data-tv-show] {\n width: 100%;\n max-width: 1190px;\n margin-left: auto;\n margin-right: auto;\n }\n\n #app .sc-gicCDH.bNInIa {\n width: 100%;\n max-width: 100%;\n margin-left: 0;\n margin-right: 0;\n position: relative;\n z-index: 1086;\n }\n\n #app.nine > header {\n position: relative;\n z-index: 1085;\n }\n "), n(p, [["position", "relative"], ["zIndex", "1071"]]), n(p.flatMap((e) => r(e)), [["position", "relative"], ["zIndex", "1072"]]);
126
- }
127
- if (e.querySelector("div[id*=\"tablet\"][id*=\"takeover\"]")) {
128
- let t = e.createElement("style");
129
- t.innerHTML = "\n div:has(#adspot-tablet-takeover-2-above) {\n position: static;\n }\n ", e.head.appendChild(t);
130
- }
131
- }
132
- }, g = () => d() ? h : m, _ = {
146
+ zIndex: h
147
+ }, y = () => {
148
+ let e = l();
149
+ return e ? e.variant === "full" ? v : _ : g;
150
+ }, b = {
133
151
  siteBackgroundColor: "#ffffff",
134
152
  fireplaceLeftMargin: 0,
135
153
  adNodeMarginTop: -24,
@@ -143,12 +161,9 @@ var e = (e) => {
143
161
  },
144
162
  zIndex: function() {
145
163
  let e = window.parent.document, t = e.querySelector("footer").previousElementSibling;
146
- if (t && t.tagName.toLowerCase() === "div" && (t.style.position = "relative"), e.querySelector("div[id*=\"tablet\"][id*=\"takeover\"]")) {
147
- let t = e.createElement("style");
148
- t.innerHTML = "\n div:has(#adspot-tablet-takeover-2-above) {\n position: static;\n }\n ", e.head.appendChild(t);
149
- }
164
+ t && t.tagName.toLowerCase() === "div" && (t.style.position = "relative"), m(e);
150
165
  }
151
- }, v = {
166
+ }, x = {
152
167
  siteBackgroundColor: "#ffffff",
153
168
  fireplaceLeftMargin: 0,
154
169
  adNodeMarginTop: 0,
@@ -177,12 +192,9 @@ var e = (e) => {
177
192
  }, a = e.querySelector("#app.wwos"), o = e.querySelector("#desktop-header-ads"), s = a ? Array.from(a.children) : [], c = a?.querySelector(":scope > .sc-llJctl");
178
193
  o && (t(o, "height", "250px"), t(o, "padding", "0px"), i(o)), r("powered-ac-wwos-new-header-overrides", "\n #app.wwos > .sc-llJctl.hgiQrx {\n width: 100%;\n max-width: 1190px;\n margin-left: auto;\n margin-right: auto;\n position: relative;\n z-index: 1085;\n }\n\n #app.wwos > .sc-llJctl.FwHsm {\n z-index: 1086;\n }\n\n #app.wwos > .sc-llJctl [role=\"menuitem\"][aria-haspopup=\"menu\"] {\n position: static;\n }\n\n #app.wwos > .sc-llJctl [role=\"menuitem\"][aria-haspopup=\"menu\"] > [class*=\"sc-eFWqGm\"],\n #app.wwos > .sc-llJctl [role=\"menuitem\"][aria-haspopup=\"menu\"] [class*=\"sc-eFWqGm\"] {\n position: absolute;\n top: 100%;\n left: 50%;\n right: auto;\n width: min(1190px, calc(100vw - 32px));\n transform: translateX(-50%);\n z-index: 1;\n }\n\n #app.wwos .sc-gicCDH.bNInIa {\n width: 100%;\n max-width: 100%;\n margin-left: 0;\n margin-right: 0;\n position: relative;\n z-index: 1086;\n }\n "), n(s.filter((e) => e !== o && e !== c), [["position", "relative"], ["zIndex", "1071"]]), n(Array.from(e.querySelectorAll("main, aside, article, footer, .sc-kACOFj.bkaoXt, .sc-hpDagB.HUkOB, [id*=\"adspot-desktop-banner-\"]")), [["position", "relative"], ["zIndex", "1072"]]);
179
194
  let l = e.querySelector("footer")?.previousElementSibling;
180
- if (l && l.tagName.toLowerCase() === "div" && (l.style.position = "relative"), e.querySelector("div[id*=\"tablet\"][id*=\"takeover\"]")) {
181
- let t = e.createElement("style");
182
- t.innerHTML = "\n div:has(#adspot-tablet-takeover-2-above) {\n position: static;\n }\n ", e.head.appendChild(t);
183
- }
195
+ l && l.tagName.toLowerCase() === "div" && (l.style.position = "relative"), m(e);
184
196
  }
185
- }, y = () => f() ? v : _, b = {
197
+ }, S = () => f() ? x : b, C = {
186
198
  siteBackgroundColor: "#ffffff",
187
199
  fireplaceLeftMargin: 0,
188
200
  adNodeMarginTop: -32,
@@ -198,10 +210,10 @@ var e = (e) => {
198
210
  let e = window.parent.document;
199
211
  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);");
200
212
  }
201
- }, x = [
213
+ }, w = [
202
214
  {
203
215
  site: "https://www.nine.com.au/sport",
204
- config: y
216
+ config: S
205
217
  },
206
218
  {
207
219
  site: "https://www.nine.com.au/product-reviews",
@@ -213,11 +225,11 @@ var e = (e) => {
213
225
  },
214
226
  {
215
227
  site: "https://www.nine.com.au/entertainment",
216
- config: g
228
+ config: y
217
229
  },
218
230
  {
219
231
  site: "https://staging.nine.com.au/sport",
220
- config: y
232
+ config: S
221
233
  },
222
234
  {
223
235
  site: "https://staging.nine.com.au/product-reviews",
@@ -229,27 +241,27 @@ var e = (e) => {
229
241
  },
230
242
  {
231
243
  site: "https://staging.nine.com.au/entertainment",
232
- config: g
244
+ config: y
233
245
  },
234
246
  {
235
247
  site: "https://render-web-nine-staging-v1.ffxblue.com.au",
236
- config: g
248
+ config: y
237
249
  },
238
250
  {
239
251
  site: "https://render-web-nine-production-v1.ffxblue.com.au",
240
- config: g
252
+ config: y
241
253
  },
242
254
  {
243
255
  site: "https://preview.nine.com.au/",
244
- config: g
256
+ config: y
245
257
  },
246
258
  {
247
259
  site: "https://www.nine",
248
- config: g
260
+ config: y
249
261
  },
250
262
  {
251
263
  site: "https://staging.nine",
252
- config: g
264
+ config: y
253
265
  },
254
266
  {
255
267
  site: "https://entertainment",
@@ -289,15 +301,15 @@ var e = (e) => {
289
301
  },
290
302
  {
291
303
  site: "https://staging.wwos",
292
- config: y
304
+ config: S
293
305
  },
294
306
  {
295
307
  site: "https://www.9news",
296
- config: b
308
+ config: C
297
309
  },
298
310
  {
299
311
  site: "https://staging.9news",
300
- config: b
312
+ config: C
301
313
  },
302
314
  {
303
315
  site: "https://www.yourtv",
@@ -315,12 +327,12 @@ var e = (e) => {
315
327
  site: "https://creative-preview-an.com",
316
328
  config: o
317
329
  }
318
- ], S = () => {
330
+ ], T = () => {
319
331
  let e = window.document.getElementById("nineContent");
320
- if (e && (e.style.backgroundColor = A.siteBackgroundColor), D(), E(), T(), n.addEventListener("scroll", k), j = setTimeout(k, 50), A === h || A === v) {
321
- let e = A === h ? l() : null, t = e?.appRoot || u() || r.body, i = e?.desktopHeaderAds || e?.billboardContainer || r.querySelector("#desktop-header-ads");
332
+ if (e && (e.style.backgroundColor = P.siteBackgroundColor), A(), k(), O(), n.addEventListener("scroll", N), F = setTimeout(N, 50), P === v || P === _ || P === x) {
333
+ let e = P === v || P === _ ? l() : null, t = e?.appRoot || u() || r.body, i = e?.desktopHeaderAds || r.querySelector("#desktop-header-ads");
322
334
  t && n.MutationObserver && (a = new n.MutationObserver(() => {
323
- O();
335
+ M();
324
336
  }), a.observe(t, {
325
337
  childList: !0,
326
338
  subtree: !0
@@ -328,22 +340,22 @@ var e = (e) => {
328
340
  childList: !0,
329
341
  subtree: !0,
330
342
  attributes: !0,
331
- attributeFilter: ["class", "style"]
332
- })), n.addEventListener("resize", O), O();
343
+ attributeFilter: ["class"]
344
+ })), n.addEventListener("resize", M), M();
333
345
  }
334
- }, C = () => {
346
+ }, E = () => {
335
347
  let e = null;
336
348
  return e = r.querySelector("div[id*=\"billboard\"][id*=\"above\"]"), e;
337
- }, w = () => {
349
+ }, D = () => {
338
350
  let e = n.location.href;
339
- for (let t = 0; t < x.length; t += 1) if (e.indexOf(x[t].site) >= 0) return typeof x[t].config == "function" ? x[t].config() : x[t].config;
351
+ for (let t = 0; t < w.length; t += 1) if (e.indexOf(w[t].site) >= 0) return typeof w[t].config == "function" ? w[t].config() : w[t].config;
340
352
  try {
341
353
  let t = new URL(e), n = t.hostname.toLowerCase(), r = t.pathname.toLowerCase();
342
354
  if (n === "creative-preview-an.com") return o;
343
- if (n.includes("9news")) return b;
355
+ if (n.includes("9news")) return C;
344
356
  if (n.includes("yourtv")) return o;
345
357
  if (n.includes("9now")) return s;
346
- if (n === "www.nine.com.au" || n === "staging.nine.com.au" || n === "preview.nine.com.au" || n === "render-web-nine-staging-v1.ffxblue.com.au" || n === "render-web-nine-production-v1.ffxblue.com.au") return r.startsWith("/sport") ? y() : r.startsWith("/product-reviews") || r.startsWith("/property") ? s : g();
358
+ if (n === "www.nine.com.au" || n === "staging.nine.com.au" || n === "preview.nine.com.au" || n === "render-web-nine-staging-v1.ffxblue.com.au" || n === "render-web-nine-production-v1.ffxblue.com.au") return r.startsWith("/sport") ? S() : r.startsWith("/product-reviews") || r.startsWith("/property") ? s : y();
347
359
  if ([
348
360
  "entertainment",
349
361
  "celebrity",
@@ -356,47 +368,48 @@ var e = (e) => {
356
368
  "finance"
357
369
  ].some((e) => n.includes(e))) return o;
358
370
  } catch {
359
- return g();
371
+ return y();
360
372
  }
361
- return g();
362
- }, T = () => {
373
+ return y();
374
+ }, O = () => {
363
375
  if (!window.parent) return;
364
376
  let e = r.querySelector("div[id*=\"halfpage\"][id*=\"above\"]");
365
377
  if (!e) return;
366
378
  let t = e;
367
379
  for (let e = 0; e < 3; e++) if (t = t.parentNode, t && n.getComputedStyle(t).position === "sticky") {
368
- t.setAttribute("style", `top: ${A.stickyMargin.offset}px`);
380
+ t.setAttribute("style", `top: ${P.stickyMargin.offset}px`);
369
381
  break;
370
382
  }
371
- }, E = () => {
383
+ }, k = () => {
372
384
  if (!t) return;
373
385
  let e = t.style;
374
- e.width = A.iframeWidth || "100%", e.height = A.iframeHeight || "1000px", e.position = "fixed", A.iframeTop == null ? e.removeProperty("top") : e.top = A.iframeTop, e.left = "50%", e.transform = "translate(-50%, 0)";
386
+ e.width = P.iframeWidth || "100%", e.height = P.iframeHeight || "1000px", e.position = "fixed", P.iframeTop == null ? e.removeProperty("top") : e.top = P.iframeTop, e.left = "50%", e.transform = "translate(-50%, 0)";
375
387
  let i = t.parentElement;
376
388
  for (; i && i !== r.body && i !== r.documentElement;) {
377
389
  let e = n.getComputedStyle(i);
378
390
  e.transform && e.transform !== "none" && (i.style.transform = "none"), e.willChange && e.willChange !== "auto" && (i.style.willChange = "auto"), e.contain && e.contain !== "none" && (i.style.contain = "none"), e.filter && e.filter !== "none" && (i.style.filter = "none"), e.perspective && e.perspective !== "none" && (i.style.perspective = "none"), e.overflow !== "visible" && (i.style.overflow = "visible"), i = i.parentElement;
379
391
  }
380
- }, D = () => {
381
- let e = C();
392
+ }, A = () => {
393
+ let e = E();
382
394
  if (!e) return;
383
395
  let t = e.style;
384
- e.className &&= "", t.minHeight = "250px", t.marginTop = A.adNodeMarginTop + "px", t.marginBottom = A.adNodeMarginBottom + "px", t.position = "static", t.display = "block", A.zIndex && A.zIndex();
385
- }, O = () => {
386
- A !== h && A !== v || i || (i = n.requestAnimationFrame(() => {
387
- i = null, E(), D(), T();
388
- }));
389
- }, k = () => {
390
- O();
396
+ e.className &&= "", t.minHeight = "250px", t.marginTop = P.adNodeMarginTop + "px", t.marginBottom = P.adNodeMarginBottom + "px", t.position = "static", t.display = "block", P.zIndex && P.zIndex();
397
+ }, j = () => {
391
398
  let e = n.scrollY, r = t.style, i = document.getElementById("siteContent") ? document.getElementById("siteContent").style : {};
392
- e >= 0 && e <= M ? (r.transform = `translate(-50%, ${-e}px)`, i.transform = "translateY(0)") : e > M && e <= N ? (r.transform = `translate(-50%, ${-M}px)`, i.transform = `translateY(${M - e}px)`) : e > N && (r.transform = `translate(-50%, ${-M}px)`, i.transform = "translateY(-250px)");
399
+ e >= 0 && e <= I ? (r.transform = `translate(-50%, ${-e}px)`, i.transform = "translateY(0)") : e > I && e <= L ? (r.transform = `translate(-50%, ${-I}px)`, i.transform = `translateY(${I - e}px)`) : e > L && (r.transform = `translate(-50%, ${-I}px)`, i.transform = "translateY(-250px)");
400
+ }, M = () => {
401
+ P !== v && P !== _ && P !== x || i || (i = n.requestAnimationFrame(() => {
402
+ i = null, k(), A(), O(), j();
403
+ }));
404
+ }, N = () => {
405
+ j();
393
406
  };
394
- C();
395
- let A = w();
396
- if (!A) return () => {};
397
- let j = null, M = -A.responsiveScroll + e + p(), N = M + 250;
398
- return S(), () => {
399
- n.removeEventListener("scroll", k), n.removeEventListener("resize", O), a &&= (a.disconnect(), null), i &&= (n.cancelAnimationFrame(i), null), j &&= (clearTimeout(j), null);
407
+ E();
408
+ let P = D();
409
+ if (!P) return () => {};
410
+ let F = null, I = -P.responsiveScroll + e + p(), L = I + 250;
411
+ return T(), () => {
412
+ n.removeEventListener("scroll", N), n.removeEventListener("resize", M), a &&= (a.disconnect(), null), i &&= (n.cancelAnimationFrame(i), null), F &&= (clearTimeout(F), null);
400
413
  };
401
414
  }, t = (e) => {
402
415
  let t = window.frameElement ? window.frameElement : null;
@@ -409,7 +422,11 @@ var e = (e) => {
409
422
  } catch {
410
423
  return () => {};
411
424
  }
412
- let i = document.getElementById("nineMasthead"), a = i ? i.style : {}, o, s = {
425
+ let i = document.getElementById("nineMasthead"), a = i ? i.style : {}, o, s = (e) => {
426
+ if (!e.querySelector("div[id*=\"tablet\"][id*=\"takeover\"]")) return;
427
+ let t = e.getElementById("powered-ac-tablet-takeover-static-fix");
428
+ t || (t = e.createElement("style"), t.id = "powered-ac-tablet-takeover-static-fix", e.head.appendChild(t)), t.textContent = "\n div:has(#adspot-tablet-takeover-2-above) {\n position: static;\n }\n ";
429
+ }, c = {
413
430
  siteBackgroundColor: "#ffffff",
414
431
  fireplaceLeftMargin: 0,
415
432
  adNodeMarginTop: -24,
@@ -426,7 +443,7 @@ var e = (e) => {
426
443
  let e = window.parent.document, t = (e, t) => e.forEach((e) => t.forEach(([t, n]) => e.style[t] = n));
427
444
  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"), t(e.querySelectorAll(".column"), [["position", "relative"]]), t(e.querySelectorAll(".advert"), [["position", "relative"]]), t(e.querySelectorAll("blockquote"), [["zIndex", "1"]]), e.querySelector("div[type=\"BANNER\"]")?.setAttribute("style", "display:none"), e.querySelector("div[type=\"MBANNER\"]")?.setAttribute("style", "display:none");
428
445
  }
429
- }, c = {
446
+ }, l = {
430
447
  siteBackgroundColor: "#ffffff",
431
448
  fireplaceLeftMargin: 0,
432
449
  adNodeMarginTop: -24,
@@ -443,7 +460,7 @@ var e = (e) => {
443
460
  let e = window.parent.document, t = (e, t) => e.forEach((e) => t.forEach(([t, n]) => e.style[t] = n));
444
461
  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"), t(e.querySelectorAll(".column"), [["position", "relative"]]), t(e.querySelectorAll(".advert"), [["position", "relative"]]), t(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");
445
462
  }
446
- }, l = {
463
+ }, u = {
447
464
  siteBackgroundColor: "#ffffff",
448
465
  fireplaceLeftMargin: 0,
449
466
  adNodeMarginTop: -24,
@@ -458,12 +475,9 @@ var e = (e) => {
458
475
  maskOffset: 304,
459
476
  zIndex: function() {
460
477
  let e = window.parent.document;
461
- 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\"]")) {
462
- let t = e.createElement("style");
463
- t.innerHTML = "\n div:has(#adspot-tablet-takeover-2-above) {\n position: static;\n }\n ", e.head.appendChild(t);
464
- }
478
+ 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"), s(e);
465
479
  }
466
- }, u = {
480
+ }, d = {
467
481
  siteBackgroundColor: "#ffffff",
468
482
  fireplaceLeftMargin: 0,
469
483
  adNodeMarginTop: -24,
@@ -478,12 +492,9 @@ var e = (e) => {
478
492
  maskOffset: 312,
479
493
  zIndex: function() {
480
494
  let e = window.parent.document, t = e.querySelector("footer").previousElementSibling;
481
- if (t && t.tagName.toLowerCase() === "div" && (t.style.position = "relative"), e.querySelector("div[id*=\"tablet\"][id*=\"takeover\"]")) {
482
- let t = e.createElement("style");
483
- t.innerHTML = "\n div:has(#adspot-tablet-takeover-2-above) {\n position: static;\n }\n ", e.head.appendChild(t);
484
- }
495
+ t && t.tagName.toLowerCase() === "div" && (t.style.position = "relative"), s(e);
485
496
  }
486
- }, d = {
497
+ }, f = {
487
498
  siteBackgroundColor: "#ffffff",
488
499
  fireplaceLeftMargin: 0,
489
500
  adNodeMarginTop: -25,
@@ -498,12 +509,9 @@ var e = (e) => {
498
509
  maskOffset: 274,
499
510
  zIndex: function() {
500
511
  let e = window.parent.document;
501
- if (e.querySelector(".container--padded")?.setAttribute("style", "position:relative"), ((e, t) => e.forEach((e) => t.forEach(([t, n]) => e.style[t] = n)))(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\"]")) {
502
- let t = e.createElement("style");
503
- t.innerHTML = "\n div:has(#adspot-tablet-takeover-2-above) {\n position: static;\n }\n ", e.head.appendChild(t);
504
- }
512
+ e.querySelector(".container--padded")?.setAttribute("style", "position:relative"), ((e, t) => e.forEach((e) => t.forEach(([t, n]) => e.style[t] = n)))(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"), s(e);
505
513
  }
506
- }, f = {
514
+ }, p = {
507
515
  siteBackgroundColor: "#ffffff",
508
516
  fireplaceLeftMargin: 0,
509
517
  adNodeMarginTop: -32,
@@ -522,175 +530,175 @@ var e = (e) => {
522
530
  let t = e.querySelector("[class*=\"VideoIndexComponent\"]");
523
531
  t && (e.querySelector(".breadcrumbs")?.setAttribute("style", "display:none"), t.style.maxWidth = "1190px", t.style.margin = "auto", t.style.position = "relative");
524
532
  }
525
- }, p = [
533
+ }, m = [
526
534
  {
527
535
  site: "https://www.nine.com.au/sport",
528
- config: u
536
+ config: d
529
537
  },
530
538
  {
531
539
  site: "https://www.nine.com.au/product-reviews",
532
- config: c
540
+ config: l
533
541
  },
534
542
  {
535
543
  site: "https://www.nine.com.au/property",
536
- config: c
544
+ config: l
537
545
  },
538
546
  {
539
547
  site: "https://www.nine.com.au/entertainment",
540
- config: c
548
+ config: l
541
549
  },
542
550
  {
543
551
  site: "https://staging.nine.com.au/sport",
544
- config: u
552
+ config: d
545
553
  },
546
554
  {
547
555
  site: "https://staging.nine.com.au/product-reviews",
548
- config: c
556
+ config: l
549
557
  },
550
558
  {
551
559
  site: "https://staging.nine.com.au/property",
552
- config: c
560
+ config: l
553
561
  },
554
562
  {
555
563
  site: "https://staging.nine.com.au/entertainment",
556
- config: c
564
+ config: l
557
565
  },
558
566
  {
559
567
  site: "https://render-web-nine-staging-v1.ffxblue.com.au",
560
- config: l
568
+ config: u
561
569
  },
562
570
  {
563
571
  site: "https://render-web-nine-production-v1.ffxblue.com.au",
564
- config: l
572
+ config: u
565
573
  },
566
574
  {
567
575
  site: "https://preview.nine.com.au/",
568
- config: l
576
+ config: u
569
577
  },
570
578
  {
571
579
  site: "https://www.nine",
572
- config: l
580
+ config: u
573
581
  },
574
582
  {
575
583
  site: "https://staging.nine",
576
- config: l
584
+ config: u
577
585
  },
578
586
  {
579
587
  site: "https://entertainment",
580
- config: s
588
+ config: c
581
589
  },
582
590
  {
583
591
  site: "https://celebrity",
584
- config: s
592
+ config: c
585
593
  },
586
594
  {
587
595
  site: "https://homes",
588
- config: s
596
+ config: c
589
597
  },
590
598
  {
591
599
  site: "https://travel",
592
- config: s
600
+ config: c
593
601
  },
594
602
  {
595
603
  site: "https://honey",
596
- config: s
604
+ config: c
597
605
  },
598
606
  {
599
607
  site: "https://style",
600
- config: s
608
+ config: c
601
609
  },
602
610
  {
603
611
  site: "https://coach",
604
- config: s
612
+ config: c
605
613
  },
606
614
  {
607
615
  site: "https://kitchen",
608
- config: s
616
+ config: c
609
617
  },
610
618
  {
611
619
  site: "https://finance",
612
- config: s
620
+ config: c
613
621
  },
614
622
  {
615
623
  site: "https://wwos",
616
- config: d
624
+ config: f
617
625
  },
618
626
  {
619
627
  site: "https://staging.wwos",
620
- config: u
628
+ config: d
621
629
  },
622
630
  {
623
631
  site: "https://www.9news",
624
- config: f
632
+ config: p
625
633
  },
626
634
  {
627
635
  site: "https://staging.9news",
628
- config: f
636
+ config: p
629
637
  },
630
638
  {
631
639
  site: "https://www.yourtv",
632
- config: s
640
+ config: c
633
641
  },
634
642
  {
635
643
  site: "https://staging.yourtv",
636
- config: s
644
+ config: c
637
645
  },
638
646
  {
639
647
  site: "https://9now",
640
- config: c
648
+ config: l
641
649
  },
642
650
  {
643
651
  site: "https://creative-preview-an.com",
644
- config: s
652
+ config: c
645
653
  }
646
- ], m = () => {
654
+ ], h = () => {
647
655
  let e = window.document.getElementById("nineContent");
648
- e && (e.style.backgroundColor = E.siteBackgroundColor), i && (a.setProperty("--masthead-height", "250px"), a.height = "var(--masthead-height)"), b(), y(), _(), x(), n.addEventListener("scroll", w, { passive: !0 }), D = setTimeout(w, 50);
649
- }, h = () => {
656
+ e && (e.style.backgroundColor = D.siteBackgroundColor), i && (a.setProperty("--masthead-height", "250px"), a.height = "var(--masthead-height)"), x(), b(), v(), S(), n.addEventListener("scroll", T, { passive: !0 }), O = setTimeout(T, 50);
657
+ }, g = () => {
650
658
  let e = null;
651
659
  return e = r.querySelector("div[id*=\"billboard\"][id*=\"above\"]"), e;
652
- }, g = () => {
660
+ }, _ = () => {
653
661
  let e = r.querySelector("nav");
654
662
  if (!e) return 0;
655
663
  let t = n.getComputedStyle(e);
656
664
  if (t.position !== "fixed") return 0;
657
665
  let i = parseFloat(t.top || "0");
658
666
  return Number.isFinite(i) && Math.abs(i) > 1 ? 0 : Math.round(e.getBoundingClientRect().height) || 0;
659
- }, _ = () => {
667
+ }, v = () => {
660
668
  let e = null;
661
669
  if (!window.parent) return e;
662
670
  if (e = r.querySelector("div[id*=\"halfpage\"][id*=\"above\"]"), !e) return;
663
671
  let t = e;
664
672
  for (let e = 0; e < 3; e++) if (t = t.parentNode, t && getComputedStyle(t).position === "sticky") {
665
- t.setAttribute("style", `top: ${E.stickyMargin.offset}px`);
673
+ t.setAttribute("style", `top: ${D.stickyMargin.offset}px`);
666
674
  break;
667
675
  }
668
- }, v = () => {
669
- let e = n.location.href;
670
- for (let t = 0; t < p.length; t += 1) if (e.indexOf(p[t].site) >= 0) return p[t].config;
671
676
  }, y = () => {
677
+ let e = n.location.href;
678
+ for (let t = 0; t < m.length; t += 1) if (e.indexOf(m[t].site) >= 0) return m[t].config;
679
+ }, b = () => {
672
680
  if (!t) return;
673
681
  let e = t.style;
674
682
  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)";
675
- }, b = () => {
676
- if (!T) return;
677
- let e = T.style;
678
- T.className = "", e.minHeight = "250px", e.marginTop = E.adNodeMarginTop + "px", e.marginBottom = E.adNodeMarginBottom + "px", e.position = "static", e.display = "block", E.zIndex && E.zIndex();
679
683
  }, x = () => {
680
- o = r.querySelector("div[data-contentunit-id=\"stan\"]")?.parentNode || r.querySelector("div[data-ui-testid=\"header-score-strip\"]")?.parentNode || r.querySelector("div[class*=\"__MyContainer\"]") || r.querySelector("div[class*=\"__ArticleContainer\"]") || r.querySelector("div[class*=\"__VideoIndexComponent\"]") || r.querySelector("div.container.layout") || r.querySelector("main.container.layout"), o && (o.style.willChange = "clip-path", o.style.transition = "none", o.style.webkitBackfaceVisibility = "hidden", o.style.backfaceVisibility = "hidden", o.style.transform = "translate3d(0,0,0)", o.style.backgroundColor = E.siteBackgroundColor, o.style.setProperty("--mask-inset", "0px"), o.style.clipPath = "inset(var(--mask-inset, 0px) 0 0 0)");
681
- }, S = 0, C = 0, w = () => {
682
- let e = n.scrollY, r = e > S, i = e > k ? e - E.maskOffset : 0, s = Math.abs(i - C);
683
- if (o) if (r && i > C) if (s > 100) {
684
+ if (!E) return;
685
+ let e = E.style;
686
+ E.className = "", e.minHeight = "250px", e.marginTop = D.adNodeMarginTop + "px", e.marginBottom = D.adNodeMarginBottom + "px", e.position = "static", e.display = "block", D.zIndex && D.zIndex();
687
+ }, S = () => {
688
+ o = r.querySelector("div[data-contentunit-id=\"stan\"]")?.parentNode || r.querySelector("div[data-ui-testid=\"header-score-strip\"]")?.parentNode || r.querySelector("div[class*=\"__MyContainer\"]") || r.querySelector("div[class*=\"__ArticleContainer\"]") || r.querySelector("div[class*=\"__VideoIndexComponent\"]") || r.querySelector("div.container.layout") || r.querySelector("main.container.layout"), o && (o.style.willChange = "clip-path", o.style.transition = "none", o.style.webkitBackfaceVisibility = "hidden", o.style.backfaceVisibility = "hidden", o.style.transform = "translate3d(0,0,0)", o.style.backgroundColor = D.siteBackgroundColor, o.style.setProperty("--mask-inset", "0px"), o.style.clipPath = "inset(var(--mask-inset, 0px) 0 0 0)");
689
+ }, C = 0, w = 0, T = () => {
690
+ let e = n.scrollY, r = e > C, i = e > A ? e - D.maskOffset : 0, s = Math.abs(i - w);
691
+ if (o) if (r && i > w) if (s > 100) {
684
692
  let e = Math.max(0, i - 100);
685
693
  o.style.transition = "none", o.style.setProperty("--mask-inset", `${e}px`), o.offsetHeight, o.style.transition = "clip-path 0.3s ease-out", o.style.setProperty("--mask-inset", `${i}px`);
686
694
  } else o.style.transition = "clip-path 0.3s ease-out", o.style.setProperty("--mask-inset", `${i}px`);
687
695
  else o.style.transition = "none", o.style.setProperty("--mask-inset", `${i}px`);
688
- S = e, C = i, e > k ? (t.style.setProperty("--transform-y", `${-O}px`), a.setProperty("--masthead-height", "100px"), window.CollantOn || window.goCollant()) : e > O && e <= k ? (t.style.setProperty("--transform-y", `${-O}px`), a.setProperty("--masthead-height", `${250 + O - e}px`), window.CollantOn && window.goBillboard()) : e >= 0 && e <= O && (t.style.setProperty("--transform-y", `${-e}px`), a.setProperty("--masthead-height", "250px"), window.CollantOn && window.goBillboard());
689
- }, T = h(), E = v();
690
- if (!E) return () => {};
691
- let D = null, O = -E.responsiveScroll + e + g(), k = O + 150;
692
- return m(), () => {
693
- n.removeEventListener("scroll", w), D &&= (clearTimeout(D), null);
696
+ C = e, w = i, e > A ? (t.style.setProperty("--transform-y", `${-k}px`), a.setProperty("--masthead-height", "100px"), window.CollantOn || window.goCollant()) : e > k && e <= A ? (t.style.setProperty("--transform-y", `${-k}px`), a.setProperty("--masthead-height", `${250 + k - e}px`), window.CollantOn && window.goBillboard()) : e >= 0 && e <= k && (t.style.setProperty("--transform-y", `${-e}px`), a.setProperty("--masthead-height", "250px"), window.CollantOn && window.goBillboard());
697
+ }, E = g(), D = y();
698
+ if (!D) return () => {};
699
+ let O = null, k = -D.responsiveScroll + e + _(), A = k + 150;
700
+ return h(), () => {
701
+ n.removeEventListener("scroll", T), O &&= (clearTimeout(O), null);
694
702
  };
695
703
  }, n = 866, r = 68, i = 16, a = "#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3", o = "adspot-desktop-takeover-2-above", s = -24, c = -24, l = [
696
704
  "www.nine.com.au",
@@ -759,7 +767,7 @@ var e = (e) => {
759
767
  }, E = () => {
760
768
  try {
761
769
  let e = new URL(y.location.href), t = e.hostname.toLowerCase(), n = e.pathname.toLowerCase();
762
- return ee.find((e) => {
770
+ return P.find((e) => {
763
771
  let r = e.hostnames.includes(t), i = e.path ? n === e.path : n.startsWith(e.pathPrefix);
764
772
  return r && i;
765
773
  }) || null;
@@ -778,54 +786,54 @@ var e = (e) => {
778
786
  return t.find((e) => e.tagName === "H1") || t[0] || null;
779
787
  }, O = null, k = null;
780
788
  w();
781
- let A = h(e, s), j = h(t, c), M = h(o, n), N = h(l, r), ee = _(g), P = E();
782
- if (!P) return () => {};
783
- let F = T((P.slotId ? b.getElementById(P.slotId) : null) || v.parentElement);
789
+ let A = h(e, s), j = h(t, c), M = h(o, n), N = h(l, r), P = _(g), F = E();
784
790
  if (!F) return () => {};
785
- let I = F.getAttribute(p);
786
- if (I && I !== S) return () => {};
787
- let L = {
788
- width: F.style.width,
789
- maxWidth: F.style.maxWidth,
790
- minWidth: F.style.minWidth,
791
- height: F.style.height,
792
- minHeight: F.style.minHeight,
793
- marginTop: F.style.marginTop,
794
- marginBottom: F.style.marginBottom,
795
- marginLeft: F.style.marginLeft,
796
- marginRight: F.style.marginRight,
797
- position: F.style.position,
798
- top: F.style.top,
799
- left: F.style.left,
800
- right: F.style.right,
801
- transform: F.style.transform,
802
- display: F.style.display,
803
- opacity: F.style.opacity,
804
- transition: F.style.transition,
805
- pointerEvents: F.style.pointerEvents,
806
- zIndex: F.style.zIndex,
807
- overflow: F.style.overflow
808
- }, R = {
791
+ let I = T((F.slotId ? b.getElementById(F.slotId) : null) || v.parentElement);
792
+ if (!I) return () => {};
793
+ let L = I.getAttribute(p);
794
+ if (L && L !== S) return () => {};
795
+ let R = {
796
+ width: I.style.width,
797
+ maxWidth: I.style.maxWidth,
798
+ minWidth: I.style.minWidth,
799
+ height: I.style.height,
800
+ minHeight: I.style.minHeight,
801
+ marginTop: I.style.marginTop,
802
+ marginBottom: I.style.marginBottom,
803
+ marginLeft: I.style.marginLeft,
804
+ marginRight: I.style.marginRight,
805
+ position: I.style.position,
806
+ top: I.style.top,
807
+ left: I.style.left,
808
+ right: I.style.right,
809
+ transform: I.style.transform,
810
+ display: I.style.display,
811
+ opacity: I.style.opacity,
812
+ transition: I.style.transition,
813
+ pointerEvents: I.style.pointerEvents,
814
+ zIndex: I.style.zIndex,
815
+ overflow: I.style.overflow
816
+ }, z = {
809
817
  width: v.style.width,
810
818
  height: v.style.height,
811
819
  display: v.style.display,
812
820
  border: v.style.border,
813
821
  position: v.style.position,
814
822
  pointerEvents: v.style.pointerEvents
815
- }, z = [], B = parseFloat(N) || r, V = parseFloat(A) || 0, H = parseFloat(j) || 0, U = () => {
816
- let e = F.parentElement;
817
- for (; e && e !== b.body;) z.push({
823
+ }, B = [], V = parseFloat(N) || r, H = parseFloat(A) || 0, U = parseFloat(j) || 0, W = () => {
824
+ let e = I.parentElement;
825
+ for (; e && e !== b.body;) B.push({
818
826
  element: e,
819
827
  overflow: e.style.overflow
820
828
  }), C(e, "overflow", "visible"), e = e.parentElement;
821
- }, W = () => {
822
- C(F, "width", M), C(F, "maxWidth", M), C(F, "minWidth", M), C(F, "height", N), C(F, "minHeight", N), C(F, "display", "block"), C(F, "overflow", "hidden"), C(F, "pointerEvents", "none"), C(F, "zIndex", "1080"), F.setAttribute(p, S), C(v, "width", M), C(v, "height", N), C(v, "display", "block"), C(v, "border", "0"), C(v, "position", "relative"), C(v, "pointerEvents", "auto");
823
- }, G = {
829
+ }, G = () => {
830
+ C(I, "width", M), C(I, "maxWidth", M), C(I, "minWidth", M), C(I, "height", N), C(I, "minHeight", N), C(I, "display", "block"), C(I, "overflow", "hidden"), C(I, "pointerEvents", "none"), C(I, "zIndex", "1080"), I.setAttribute(p, S), C(v, "width", M), C(v, "height", N), C(v, "display", "block"), C(v, "border", "0"), C(v, "position", "relative"), C(v, "pointerEvents", "auto");
831
+ }, K = {
824
832
  element: null,
825
833
  position: ""
826
- }, K = () => {
827
- let e = F.parentElement;
828
- e && y.getComputedStyle(e).position === "static" && (G.element = e, G.position = e.style.position, C(e, "position", "relative")), C(F, "position", "absolute"), C(F, "top", `${V}px`), C(F, "left", `${H}px`), C(F, "right", "auto"), C(F, "marginTop", "0px"), C(F, "marginBottom", `${i}px`), C(F, "marginLeft", "0px"), C(F, "marginRight", "0px"), C(F, "transform", "");
834
+ }, ee = () => {
835
+ let e = I.parentElement;
836
+ e && y.getComputedStyle(e).position === "static" && (K.element = e, K.position = e.style.position, C(e, "position", "relative")), C(I, "position", "absolute"), C(I, "top", `${H}px`), C(I, "left", `${U}px`), C(I, "right", "auto"), C(I, "marginTop", "0px"), C(I, "marginBottom", `${i}px`), C(I, "marginLeft", "0px"), C(I, "marginRight", "0px"), C(I, "transform", "");
829
837
  }, te = (e) => {
830
838
  let t = null;
831
839
  try {
@@ -844,11 +852,11 @@ var e = (e) => {
844
852
  if (!t) return !1;
845
853
  v.setAttribute(m, "1");
846
854
  try {
847
- e.parentNode?.insertBefore(F, e);
855
+ e.parentNode?.insertBefore(I, e);
848
856
  } catch {
849
857
  return v.removeAttribute(m), !1;
850
858
  }
851
- U(), W(), K();
859
+ W(), G(), ee();
852
860
  try {
853
861
  v.srcdoc = t;
854
862
  } catch {
@@ -856,29 +864,29 @@ var e = (e) => {
856
864
  }
857
865
  return !0;
858
866
  }, ne = () => {
859
- C(F, "position", "fixed"), C(F, "marginTop", "0px"), C(F, "marginBottom", "0px"), C(F, "marginLeft", "0px"), C(F, "marginRight", "0px"), C(F, "transform", "");
867
+ C(I, "position", "fixed"), C(I, "marginTop", "0px"), C(I, "marginBottom", "0px"), C(I, "marginLeft", "0px"), C(I, "marginRight", "0px"), C(I, "transform", "");
860
868
  }, re = () => {
861
- C(F, "display", "none");
869
+ C(I, "display", "none");
862
870
  }, ie = () => {
863
- C(F, "display", "block"), C(F, "overflow", "hidden");
871
+ C(I, "display", "block"), C(I, "overflow", "hidden");
864
872
  }, q = null, J = () => {
865
- if ((!q || !q.isConnected) && (q = D(P.headingText)), !q) return;
866
- let e = q.getBoundingClientRect(), t = e.top - B - i + V, n = e.left + H;
867
- C(F, "top", `${t}px`), C(F, "left", `${n}px`), C(F, "right", "auto");
873
+ if ((!q || !q.isConnected) && (q = D(F.headingText)), !q) return;
874
+ let e = q.getBoundingClientRect(), t = e.top - V - i + H, n = e.left + U;
875
+ C(I, "top", `${t}px`), C(I, "left", `${n}px`), C(I, "right", "auto");
868
876
  }, Y = null, X = null, Z = !1, Q = (e = 12) => {
869
- if (q = D(P.headingText), !q) {
877
+ if (q = D(F.headingText), !q) {
870
878
  e > 1 && (k = y.setTimeout(() => Q(e - 1), 250));
871
879
  return;
872
880
  }
873
- te(q) || (Z = !0, U(), W(), ne(), J(), Y = () => J(), X = () => J(), y.addEventListener("scroll", Y, { passive: !0 }), y.addEventListener("resize", X));
881
+ te(q) || (Z = !0, W(), G(), ne(), J(), Y = () => J(), X = () => J(), y.addEventListener("scroll", Y, { passive: !0 }), y.addEventListener("resize", X));
874
882
  };
875
883
  Q();
876
884
  let $ = () => {
877
- k &&= (y.clearTimeout(k), null), O &&= (y.clearTimeout(O), null), Y &&= (y.removeEventListener("scroll", Y), null), X &&= (y.removeEventListener("resize", X), null), F.getAttribute(p) === S && F.removeAttribute(p), Z && (Object.entries(L).forEach(([e, t]) => {
878
- F.style[e] = t;
879
- }), Object.entries(R).forEach(([e, t]) => {
885
+ k &&= (y.clearTimeout(k), null), O &&= (y.clearTimeout(O), null), Y &&= (y.removeEventListener("scroll", Y), null), X &&= (y.removeEventListener("resize", X), null), I.getAttribute(p) === S && I.removeAttribute(p), Z && (Object.entries(R).forEach(([e, t]) => {
886
+ I.style[e] = t;
887
+ }), Object.entries(z).forEach(([e, t]) => {
880
888
  v.style[e] = t;
881
- }), z.forEach(({ element: e, overflow: t }) => {
889
+ }), B.forEach(({ element: e, overflow: t }) => {
882
890
  e.style.overflow = t;
883
891
  })), y[f]?.instanceId === S && delete y[f];
884
892
  };
@@ -1201,7 +1209,7 @@ var e = (e) => {
1201
1209
  };
1202
1210
  (() => {
1203
1211
  let e = a.style;
1204
- e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.43"), e.clipPath = `inset(-${t.bandHeight - 1}px 0 0 0)`, e.overflow = "visible", e.width = "100vw", e.maxWidth = "100vw", e.marginLeft = "calc(50% - 50vw)", e.marginRight = "0", e.marginTop = "0", e.marginBottom = "0", e.padding = "0";
1212
+ e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.44"), e.clipPath = `inset(-${t.bandHeight - 1}px 0 0 0)`, e.overflow = "visible", e.width = "100vw", e.maxWidth = "100vw", e.marginLeft = "calc(50% - 50vw)", e.marginRight = "0", e.marginTop = "0", e.marginBottom = "0", e.padding = "0";
1205
1213
  let o = a.parentElement;
1206
1214
  for (let e = 0; e < 6 && o && o !== i.body; e++) {
1207
1215
  let t = r.getComputedStyle(o), n = !1;
@@ -1333,7 +1341,7 @@ var e = (e) => {
1333
1341
  let o = a.getAttribute("style"), s = n.getAttribute("style"), c = n.parentElement === a ? null : n.parentElement, l = c ? c.getAttribute("style") : null, u = a.parentElement, d = u ? r.getComputedStyle(u).paddingTop : null, f = null, p = parseInt(n.getAttribute("width"), 10) || 320, m = parseInt(n.getAttribute("height"), 10) || 50;
1334
1342
  return (() => {
1335
1343
  let e = a.style;
1336
- if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.43"), c) {
1344
+ if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.44"), c) {
1337
1345
  let e = c.style;
1338
1346
  e.width = "100%", e.height = "100%", e.margin = "0", e.textAlign = "left";
1339
1347
  }
@@ -1481,7 +1489,7 @@ var e = (e) => {
1481
1489
  }), e.style.overflow = "visible"), e = e.parentElement;
1482
1490
  }
1483
1491
  let o = n.style;
1484
- if (o.position = "fixed", o.top = "0", o.left = "0", o.width = "100vw", o.height = "100dvh", o.zIndex = String(t.zIndex), o.border = "none", o.margin = "0", o.padding = "0", o.display = "block", a.setAttribute("poweredAC", "0.1.43"), d) {
1492
+ if (o.position = "fixed", o.top = "0", o.left = "0", o.width = "100vw", o.height = "100dvh", o.zIndex = String(t.zIndex), o.border = "none", o.margin = "0", o.padding = "0", o.display = "block", a.setAttribute("poweredAC", "0.1.44"), d) {
1485
1493
  let e = d.style;
1486
1494
  e.width = "100%", e.height = "0", e.overflow = "visible", e.position = "static", e.margin = "0";
1487
1495
  }
@@ -1584,6 +1592,6 @@ function T({ adFormat: n = "", stickyOffset: r = 0, logoPosX: i = 0, logoHeight:
1584
1592
  let c = () => {};
1585
1593
  return n === "fireplace" ? c = e(r) : n === "fireplace-collant" ? c = t(r) : n === "logomorph" ? c = y(i, a, o) : n === "headingintegration" ? c = v(s) : n === "interscroller" ? c = x(s) : n === "liquidframe" ? c = S(s) : n === "mobilefireplace" ? c = C(s) : console.warn("[powered-ad-config] Unknown ad format:", n), w = typeof c == "function" ? c : () => {}, w;
1586
1594
  }
1587
- T.version = "0.1.43";
1595
+ T.version = "0.1.44";
1588
1596
  //#endregion
1589
1597
  export { T as default };