powered-ad-config 0.1.83 → 0.1.85
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.
- package/dist/powered-ad-config.es.js +315 -303
- package/dist/powered-ad-config.umd.js +9 -9
- package/package.json +1 -1
|
@@ -29,18 +29,18 @@ var e = (e, t, n) => {
|
|
|
29
29
|
return n?.tagName?.toLowerCase() === t.toLowerCase() ? n : null;
|
|
30
30
|
}, c = (e, t) => {
|
|
31
31
|
e && t && e.setAttribute("poweredAC", t);
|
|
32
|
-
}, l = (
|
|
33
|
-
let
|
|
34
|
-
if (!
|
|
35
|
-
let
|
|
36
|
-
if (!
|
|
37
|
-
let
|
|
32
|
+
}, l = "1300px", u = "#ffffff", d = (d) => {
|
|
33
|
+
let f = window.frameElement ? window.frameElement : null;
|
|
34
|
+
if (!f) return () => {};
|
|
35
|
+
let p = window.parent;
|
|
36
|
+
if (!p || p === window) return () => {};
|
|
37
|
+
let m = null;
|
|
38
38
|
try {
|
|
39
|
-
|
|
39
|
+
m = p.document, p.location.href;
|
|
40
40
|
} catch {
|
|
41
41
|
return () => {};
|
|
42
42
|
}
|
|
43
|
-
let
|
|
43
|
+
let h = null, g = null, _ = {
|
|
44
44
|
siteBackgroundColor: "#ffffff",
|
|
45
45
|
fireplaceLeftMargin: 0,
|
|
46
46
|
adNodeMarginTop: -24,
|
|
@@ -56,7 +56,7 @@ var e = (e, t, n) => {
|
|
|
56
56
|
let e = window.parent.document, t = (e, t) => e.forEach((e) => t.forEach(([t, n]) => e.style[t] = n));
|
|
57
57
|
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[class*=\"article__MyContainer\"]")?.setAttribute("style", "max-width:1190px;margin-top:-24px"), e.querySelector("div[type=\"BANNER\"]")?.setAttribute("style", "display:none"), e.querySelector("div[type=\"MBANNER\"]")?.setAttribute("style", "display:none");
|
|
58
58
|
}
|
|
59
|
-
},
|
|
59
|
+
}, v = {
|
|
60
60
|
siteBackgroundColor: "#ffffff",
|
|
61
61
|
fireplaceLeftMargin: 0,
|
|
62
62
|
adNodeMarginTop: -24,
|
|
@@ -72,10 +72,10 @@ var e = (e, t, n) => {
|
|
|
72
72
|
let e = window.parent.document, t = (e, t) => e.forEach((e) => t.forEach(([t, n]) => e.style[t] = n));
|
|
73
73
|
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");
|
|
74
74
|
}
|
|
75
|
-
},
|
|
76
|
-
let e =
|
|
75
|
+
}, y = (e, t = m) => r(t, e), b = (e, t = m) => i(t, e), x = () => y("app") || m.querySelector("#app.nine, #app"), S = () => {
|
|
76
|
+
let e = x();
|
|
77
77
|
if (!e) return null;
|
|
78
|
-
let t =
|
|
78
|
+
let t = y("header-ad-desktop", e) || m.querySelector("#desktop-header-ads"), n = y("header", e) || y("tv-show-banner", e) || e.querySelector(":scope > .sc-llJctl") || e.querySelector(":scope > header"), r = o(e, t) || o(e, L()) || t;
|
|
79
79
|
return t && r && n ? {
|
|
80
80
|
appRoot: e,
|
|
81
81
|
headerShell: n,
|
|
@@ -83,42 +83,42 @@ var e = (e, t, n) => {
|
|
|
83
83
|
desktopHeaderAds: t,
|
|
84
84
|
variant: "full"
|
|
85
85
|
} : null;
|
|
86
|
-
},
|
|
87
|
-
if (
|
|
88
|
-
let e =
|
|
86
|
+
}, C = () => S()?.appRoot || null, w = () => !!C(), T = () => !!(m.querySelector("#app.wwos") && m.querySelector("#desktop-header-ads")), E = () => {
|
|
87
|
+
if (w() || T()) return 0;
|
|
88
|
+
let e = m.querySelector("nav");
|
|
89
89
|
if (!e) return 0;
|
|
90
|
-
let t =
|
|
90
|
+
let t = p.getComputedStyle(e);
|
|
91
91
|
if (t.position !== "fixed") return 0;
|
|
92
92
|
let n = parseFloat(t.top || "0");
|
|
93
93
|
return Number.isFinite(n) && Math.abs(n) > 1 ? 0 : Math.round(e.getBoundingClientRect().height) || 0;
|
|
94
|
-
},
|
|
94
|
+
}, D = (e) => {
|
|
95
95
|
if (!e.querySelector("div[id*=\"tablet\"][id*=\"takeover\"]")) return;
|
|
96
96
|
let t = e.getElementById("powered-ac-tablet-takeover-static-fix");
|
|
97
97
|
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 ";
|
|
98
|
-
},
|
|
99
|
-
let r = window.parent.document, i = e, o = t, s = (e) => e ? Array.from(e.querySelectorAll(":scope > main, :scope > aside, :scope > footer")) : [], c = (e) => a([
|
|
100
|
-
...
|
|
101
|
-
...
|
|
102
|
-
...
|
|
98
|
+
}, O = () => {
|
|
99
|
+
let r = window.parent.document, i = e, o = t, s = (e) => e ? Array.from(e.querySelectorAll(":scope > main, :scope > aside, :scope > footer")) : [], c = (e) => a([y("page-container", e), y("container", e)]), l = (e) => a([
|
|
100
|
+
...b("main", e),
|
|
101
|
+
...b("sidebar", e),
|
|
102
|
+
...b("footer", e)
|
|
103
103
|
]), u = (e, t) => {
|
|
104
104
|
n(r, e, t);
|
|
105
105
|
}, d = (e) => {
|
|
106
106
|
o(Array.from(e.querySelectorAll("*")).filter((e) => e.children.length > 0 ? !1 : e.textContent?.trim().toLowerCase() === "advertisement"), [["display", "none"]]);
|
|
107
107
|
};
|
|
108
108
|
i(r.querySelector("section[data-section=\"marketing-banner\"]"), "position", "relative"), i(r.querySelector("div[data-testid=\"live-tv\"]")?.parentNode, "position", "relative"), i(r.querySelector("div[data-contentunit-id=\"stan\"]")?.parentNode, "position", "relative"), i(r.querySelector("small"), "position", "inherit");
|
|
109
|
-
let f =
|
|
109
|
+
let f = S(), p = f?.appRoot, m = f?.desktopHeaderAds, h = f?.billboardContainer;
|
|
110
110
|
if (p) {
|
|
111
|
-
let e = f.headerShell, t =
|
|
112
|
-
i(m, "height", "250px"), i(m, "padding", "0px"), m && d(m), o(x, [["position", "relative"], ["zIndex", "1085"]]), i(e, "zIndex", "1085"), i(t, "position", "relative"), i(t, "zIndex", "1086"), u("powered-ac-nine-new-header-overrides", "\n #app > [data-ad-target=\"header\"],\n #app > .sc-llJctl {\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 margin-left: 0 !important;\n margin-right: 0 !important;\n z-index: 1085;\n }\n\n #app > [data-ad-target=\"tv-show-banner\"],\n #app > header[data-tv-show] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n margin-left: auto !important;\n margin-right: auto !important;\n z-index: 1085;\n }\n\n #app > .sc-llJctl > div:not(header),\n #app > header[data-tv-show] > div:not(header) {\n z-index: 1088 !important;\n position: relative !important;\n }\n\n #app [data-ad-target=\"header\"] header,\n #app [data-ad-target=\"header-nav\"],\n #app > .sc-llJctl header,\n #app > header[data-tv-show] .bVJveH,\n #app > header[data-tv-show] [class*=\"sc-eFWqGm\"] {\n position: relative;\n }\n\n #app > .sc-llJctl header .bVJveH,\n #app > .sc-llJctl header [class*=\"sc-eFWqGm\"],\n #app > header[data-tv-show] .bVJveH,\n #app > header[data-tv-show] [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 > [data-ad-target=\"header\"].FwHsm,\n #app > [data-ad-target=\"tv-show-banner\"].FwHsm,\n #app > .sc-llJctl.FwHsm,\n #app > header[data-tv-show].FwHsm {\n z-index: 1086;\n }\n\n #app [data-ad-target=\"header-nav\"],\n #app .sc-gicCDH.bNInIa {\n width: 100%;\n max-width: 100%;\n margin-left: 0;\n margin-right: 0;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n position: relative !important;\n overflow: visible !important;\n z-index: 1086 !important;\n }\n\n #app [data-ad-target=\"header-nav\"] nav {\n width: 100% !important;\n max-width: 100% !important;\n overflow: visible !important;\n }\n\n #app [data-ad-target=\"nav-dropdown\"] {\n position: absolute !important;\n top: 100% !important;\n left: 50% !important;\n right: auto !important;\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n transform: translateX(-50%) !important;\n z-index:
|
|
111
|
+
let e = f.headerShell, t = y("header-nav", p), n = c(p), r = l(p), g = b("sidebar-sticky", p), _ = Array.from(p.children).filter((e) => e.tagName !== "SCRIPT"), v = h ? _.indexOf(h) : -1, x = _.filter((e, t) => t < v), S = n.length > 0 ? n : v >= 0 ? _.filter((t, n) => n > v && t !== e) : _.filter((t) => t !== m && t !== e);
|
|
112
|
+
i(m, "height", "250px"), i(m, "padding", "0px"), m && d(m), o(x, [["position", "relative"], ["zIndex", "1085"]]), i(e, "zIndex", "1085"), i(t, "position", "relative"), i(t, "zIndex", "1086"), u("powered-ac-nine-new-header-overrides", "\n #app > [data-ad-target=\"header\"],\n #app > .sc-llJctl {\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 margin-left: 0 !important;\n margin-right: 0 !important;\n z-index: 1085;\n }\n\n #app > [data-ad-target=\"tv-show-banner\"],\n #app > header[data-tv-show] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n margin-left: auto !important;\n margin-right: auto !important;\n z-index: 1085;\n }\n\n #app > .sc-llJctl > div:not(header),\n #app > header[data-tv-show] > div:not(header) {\n z-index: 1088 !important;\n position: relative !important;\n }\n\n #app [data-ad-target=\"header\"] header,\n #app [data-ad-target=\"header-nav\"],\n #app > .sc-llJctl header,\n #app > header[data-tv-show] .bVJveH,\n #app > header[data-tv-show] [class*=\"sc-eFWqGm\"] {\n position: relative;\n }\n\n #app > .sc-llJctl header .bVJveH,\n #app > .sc-llJctl header [class*=\"sc-eFWqGm\"],\n #app > header[data-tv-show] .bVJveH,\n #app > header[data-tv-show] [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 > [data-ad-target=\"header\"].FwHsm,\n #app > [data-ad-target=\"tv-show-banner\"].FwHsm,\n #app > .sc-llJctl.FwHsm,\n #app > header[data-tv-show].FwHsm {\n z-index: 1086;\n }\n\n #app [data-ad-target=\"header-nav\"],\n #app .sc-gicCDH.bNInIa {\n width: 100%;\n max-width: 100%;\n margin-left: 0;\n margin-right: 0;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n position: relative !important;\n overflow: visible !important;\n z-index: 1086 !important;\n }\n\n #app [data-ad-target=\"header-nav\"] nav {\n width: 100% !important;\n max-width: 100% !important;\n overflow: visible !important;\n }\n\n #app [data-ad-target=\"nav-dropdown\"] {\n position: absolute !important;\n top: 100% !important;\n left: 50% !important;\n right: auto !important;\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n transform: translateX(-50%) !important;\n z-index: 1089 !important;\n }\n\n #app > header[data-tv-show] {\n z-index: 1085;\n }\n "), o(S, [["position", "relative"], ["zIndex", "1071"]]), o(a([...r, ...S.flatMap((e) => s(e))]), [["position", "relative"], ["zIndex", "1072"]]), o(g, [["zIndex", "1072"]]);
|
|
113
113
|
}
|
|
114
|
-
|
|
115
|
-
},
|
|
114
|
+
D(r);
|
|
115
|
+
}, ee = {
|
|
116
116
|
siteBackgroundColor: "#ffffff",
|
|
117
117
|
fireplaceLeftMargin: 0,
|
|
118
118
|
adNodeMarginTop: -24,
|
|
119
119
|
adNodeMarginBottom: -55,
|
|
120
120
|
iframeWidth: "100%",
|
|
121
|
-
iframeHeight:
|
|
121
|
+
iframeHeight: l,
|
|
122
122
|
responsiveScroll: -120,
|
|
123
123
|
xPosHalfpage: 722,
|
|
124
124
|
yPosHalfpage: 32,
|
|
@@ -128,15 +128,15 @@ var e = (e, t, n) => {
|
|
|
128
128
|
},
|
|
129
129
|
zIndex: function() {
|
|
130
130
|
let e = window.parent.document;
|
|
131
|
-
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"),
|
|
131
|
+
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"), D(e);
|
|
132
132
|
}
|
|
133
|
-
},
|
|
133
|
+
}, k = {
|
|
134
134
|
siteBackgroundColor: "#ffffff",
|
|
135
135
|
fireplaceLeftMargin: 0,
|
|
136
136
|
adNodeMarginTop: 0,
|
|
137
137
|
adNodeMarginBottom: 0,
|
|
138
138
|
iframeWidth: "100vw",
|
|
139
|
-
iframeHeight:
|
|
139
|
+
iframeHeight: l,
|
|
140
140
|
iframeTop: "0",
|
|
141
141
|
responsiveScroll: -120,
|
|
142
142
|
xPosHalfpage: 722,
|
|
@@ -145,8 +145,8 @@ var e = (e, t, n) => {
|
|
|
145
145
|
offset: 74,
|
|
146
146
|
isSticky: !0
|
|
147
147
|
},
|
|
148
|
-
zIndex:
|
|
149
|
-
},
|
|
148
|
+
zIndex: O
|
|
149
|
+
}, A = () => S()?.variant === "full" ? k : ee, j = {
|
|
150
150
|
siteBackgroundColor: "#ffffff",
|
|
151
151
|
fireplaceLeftMargin: 0,
|
|
152
152
|
adNodeMarginTop: -24,
|
|
@@ -160,15 +160,15 @@ var e = (e, t, n) => {
|
|
|
160
160
|
},
|
|
161
161
|
zIndex: function() {
|
|
162
162
|
let e = window.parent.document, t = s(e.querySelector("footer"), "div");
|
|
163
|
-
t && (t.style.position = "relative"),
|
|
163
|
+
t && (t.style.position = "relative"), D(e);
|
|
164
164
|
}
|
|
165
|
-
},
|
|
165
|
+
}, M = {
|
|
166
166
|
siteBackgroundColor: "#ffffff",
|
|
167
167
|
fireplaceLeftMargin: 0,
|
|
168
168
|
adNodeMarginTop: 0,
|
|
169
169
|
adNodeMarginBottom: 0,
|
|
170
170
|
iframeWidth: "100vw",
|
|
171
|
-
iframeHeight:
|
|
171
|
+
iframeHeight: l,
|
|
172
172
|
responsiveScroll: -124,
|
|
173
173
|
xPosHalfpage: 720,
|
|
174
174
|
yPosHalfpage: 32,
|
|
@@ -179,16 +179,16 @@ var e = (e, t, n) => {
|
|
|
179
179
|
zIndex: function() {
|
|
180
180
|
let r = window.parent.document, i = e, o = t, c = (e, t) => n(r, e, t), l = (e) => {
|
|
181
181
|
o(Array.from(e.querySelectorAll("*")).filter((e) => e.children.length > 0 ? !1 : e.textContent?.trim().toLowerCase() === "advertisement"), [["display", "none"]]);
|
|
182
|
-
}, u =
|
|
183
|
-
...
|
|
184
|
-
...
|
|
185
|
-
...
|
|
186
|
-
]),
|
|
187
|
-
d && (i(d, "height", "250px"), i(d, "padding", "0px"), l(d)), i(p, "zIndex", "1085"), i(m, "position", "relative"), i(m, "zIndex", "1086"), c("powered-ac-wwos-new-header-overrides", "\n #app.wwos > [data-ad-target=\"header\"],\n #app.wwos > .sc-llJctl {\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 margin-left: 0 !important;\n margin-right: 0 !important;\n z-index: 1085 !important;\n }\n\n #app.wwos > [data-ad-target=\"tv-show-banner\"],\n #app.wwos > header[data-tv-show] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n margin-left: auto !important;\n margin-right: auto !important;\n z-index: 1085 !important;\n }\n\n #app.wwos > .sc-llJctl > div:not(header),\n #app.wwos > header[data-tv-show] > div:not(header) {\n z-index: 1088 !important;\n position: relative !important;\n }\n\n #app.wwos > [data-ad-target=\"header\"].FwHsm,\n #app.wwos > [data-ad-target=\"tv-show-banner\"].FwHsm,\n #app.wwos > .sc-llJctl.FwHsm {\n z-index: 1086;\n }\n\n #app.wwos [data-ad-target=\"header-nav\"] [role=\"menuitem\"][aria-haspopup=\"menu\"],\n #app.wwos > .sc-llJctl [role=\"menuitem\"][aria-haspopup=\"menu\"] {\n position: static;\n }\n\n #app.wwos [data-ad-target=\"nav-dropdown\"],\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 !important;\n top: 100% !important;\n left: 50% !important;\n right: auto !important;\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n transform: translateX(-50%) !important;\n z-index: 1088 !important;\n }\n\n #app.wwos [data-ad-target=\"header-nav\"],\n #app.wwos .sc-gicCDH.bNInIa {\n width: 100%;\n max-width: 100%;\n margin-left: 0;\n margin-right: 0;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n position: relative !important;\n overflow: visible !important;\n z-index: 1086 !important;\n }\n\n #app.wwos [data-ad-target=\"header-nav\"] nav {\n width: 100% !important;\n max-width: 100% !important;\n overflow: visible !important;\n }\n "), o(h.length > 0 ? h : f.filter((e) => e !== d && e !== p), [["position", "relative"], ["zIndex", "1071"]]), o(a([...g, ...Array.from(r.querySelectorAll("main, aside, article, footer, .sc-kACOFj.bkaoXt, .sc-hpDagB.HUkOB, [id*=\"adspot-desktop-banner-\"]"))]), [["position", "relative"], ["zIndex", "1072"]]), o(
|
|
188
|
-
let
|
|
189
|
-
|
|
182
|
+
}, u = y("app") || r.querySelector("#app.wwos"), d = y("header-ad-desktop", u || r) || r.querySelector("#desktop-header-ads"), f = u ? Array.from(u.children) : [], p = y("header", u || r) || y("tv-show-banner", u || r) || u?.querySelector(":scope > .sc-llJctl") || u?.querySelector(":scope > header"), m = y("header-nav", u || r), h = a([y("page-container", u || r), y("container", u || r)]), g = a([
|
|
183
|
+
...b("main", u || r),
|
|
184
|
+
...b("sidebar", u || r),
|
|
185
|
+
...b("footer", u || r)
|
|
186
|
+
]), _ = b("sidebar-sticky", u || r);
|
|
187
|
+
d && (i(d, "height", "250px"), i(d, "padding", "0px"), l(d)), i(p, "zIndex", "1085"), i(m, "position", "relative"), i(m, "zIndex", "1086"), c("powered-ac-wwos-new-header-overrides", "\n #app.wwos > [data-ad-target=\"header\"],\n #app.wwos > .sc-llJctl {\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 margin-left: 0 !important;\n margin-right: 0 !important;\n z-index: 1085 !important;\n }\n\n #app.wwos > [data-ad-target=\"tv-show-banner\"],\n #app.wwos > header[data-tv-show] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n margin-left: auto !important;\n margin-right: auto !important;\n z-index: 1085 !important;\n }\n\n #app.wwos > .sc-llJctl > div:not(header),\n #app.wwos > header[data-tv-show] > div:not(header) {\n z-index: 1088 !important;\n position: relative !important;\n }\n\n #app.wwos > [data-ad-target=\"header\"].FwHsm,\n #app.wwos > [data-ad-target=\"tv-show-banner\"].FwHsm,\n #app.wwos > .sc-llJctl.FwHsm {\n z-index: 1086;\n }\n\n #app.wwos [data-ad-target=\"header-nav\"] [role=\"menuitem\"][aria-haspopup=\"menu\"],\n #app.wwos > .sc-llJctl [role=\"menuitem\"][aria-haspopup=\"menu\"] {\n position: static;\n }\n\n #app.wwos [data-ad-target=\"nav-dropdown\"],\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 !important;\n top: 100% !important;\n left: 50% !important;\n right: auto !important;\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n transform: translateX(-50%) !important;\n z-index: 1088 !important;\n }\n\n #app.wwos [data-ad-target=\"header-nav\"],\n #app.wwos .sc-gicCDH.bNInIa {\n width: 100%;\n max-width: 100%;\n margin-left: 0;\n margin-right: 0;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n position: relative !important;\n overflow: visible !important;\n z-index: 1086 !important;\n }\n\n #app.wwos [data-ad-target=\"header-nav\"] nav {\n width: 100% !important;\n max-width: 100% !important;\n overflow: visible !important;\n }\n "), o(h.length > 0 ? h : f.filter((e) => e !== d && e !== p), [["position", "relative"], ["zIndex", "1071"]]), o(a([...g, ...Array.from(r.querySelectorAll("main, aside, article, footer, .sc-kACOFj.bkaoXt, .sc-hpDagB.HUkOB, [id*=\"adspot-desktop-banner-\"]"))]), [["position", "relative"], ["zIndex", "1072"]]), o(_, [["zIndex", "1072"]]);
|
|
188
|
+
let v = s(r.querySelector("footer"), "div");
|
|
189
|
+
v && (v.style.position = "relative"), D(r);
|
|
190
190
|
}
|
|
191
|
-
},
|
|
191
|
+
}, N = () => T() ? M : j, P = {
|
|
192
192
|
siteBackgroundColor: "#ffffff",
|
|
193
193
|
fireplaceLeftMargin: 0,
|
|
194
194
|
adNodeMarginTop: -32,
|
|
@@ -204,152 +204,156 @@ var e = (e, t, n) => {
|
|
|
204
204
|
let e = window.parent.document;
|
|
205
205
|
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);");
|
|
206
206
|
}
|
|
207
|
-
},
|
|
207
|
+
}, F = [
|
|
208
208
|
{
|
|
209
209
|
site: "https://www.nine.com.au/sport",
|
|
210
|
-
config:
|
|
210
|
+
config: N
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
site: "https://www.nine.com.au/product-reviews",
|
|
214
|
-
config:
|
|
214
|
+
config: v
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
217
|
site: "https://www.nine.com.au/property",
|
|
218
|
-
config:
|
|
218
|
+
config: v
|
|
219
219
|
},
|
|
220
220
|
{
|
|
221
221
|
site: "https://www.nine.com.au/entertainment",
|
|
222
|
-
config:
|
|
222
|
+
config: A
|
|
223
223
|
},
|
|
224
224
|
{
|
|
225
225
|
site: "https://staging.nine.com.au/sport",
|
|
226
|
-
config:
|
|
226
|
+
config: N
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
229
|
site: "https://staging.nine.com.au/product-reviews",
|
|
230
|
-
config:
|
|
230
|
+
config: v
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
233
|
site: "https://staging.nine.com.au/property",
|
|
234
|
-
config:
|
|
234
|
+
config: v
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
237
|
site: "https://staging.nine.com.au/entertainment",
|
|
238
|
-
config:
|
|
238
|
+
config: A
|
|
239
239
|
},
|
|
240
240
|
{
|
|
241
241
|
site: "https://render-web-nine-staging-v1.ffxblue.com.au",
|
|
242
|
-
config:
|
|
242
|
+
config: A
|
|
243
243
|
},
|
|
244
244
|
{
|
|
245
245
|
site: "https://render-web-nine-production-v1.ffxblue.com.au",
|
|
246
|
-
config:
|
|
246
|
+
config: A
|
|
247
247
|
},
|
|
248
248
|
{
|
|
249
249
|
site: "https://preview.nine.com.au/",
|
|
250
|
-
config:
|
|
250
|
+
config: A
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
site: "https://www.nine.com.au",
|
|
254
|
+
config: A
|
|
251
255
|
},
|
|
252
256
|
{
|
|
253
257
|
site: "https://www.nine",
|
|
254
|
-
config:
|
|
258
|
+
config: A
|
|
255
259
|
},
|
|
256
260
|
{
|
|
257
261
|
site: "https://staging.nine",
|
|
258
|
-
config:
|
|
262
|
+
config: A
|
|
259
263
|
},
|
|
260
264
|
{
|
|
261
265
|
site: "https://entertainment",
|
|
262
|
-
config:
|
|
266
|
+
config: _
|
|
263
267
|
},
|
|
264
268
|
{
|
|
265
269
|
site: "https://celebrity",
|
|
266
|
-
config:
|
|
270
|
+
config: _
|
|
267
271
|
},
|
|
268
272
|
{
|
|
269
273
|
site: "https://homes",
|
|
270
|
-
config:
|
|
274
|
+
config: _
|
|
271
275
|
},
|
|
272
276
|
{
|
|
273
277
|
site: "https://travel",
|
|
274
|
-
config:
|
|
278
|
+
config: _
|
|
275
279
|
},
|
|
276
280
|
{
|
|
277
281
|
site: "https://honey",
|
|
278
|
-
config:
|
|
282
|
+
config: _
|
|
279
283
|
},
|
|
280
284
|
{
|
|
281
285
|
site: "https://style",
|
|
282
|
-
config:
|
|
286
|
+
config: _
|
|
283
287
|
},
|
|
284
288
|
{
|
|
285
289
|
site: "https://coach",
|
|
286
|
-
config:
|
|
290
|
+
config: _
|
|
287
291
|
},
|
|
288
292
|
{
|
|
289
293
|
site: "https://kitchen",
|
|
290
|
-
config:
|
|
294
|
+
config: _
|
|
291
295
|
},
|
|
292
296
|
{
|
|
293
297
|
site: "https://finance",
|
|
294
|
-
config:
|
|
298
|
+
config: _
|
|
295
299
|
},
|
|
296
300
|
{
|
|
297
301
|
site: "https://staging.wwos",
|
|
298
|
-
config:
|
|
302
|
+
config: N
|
|
299
303
|
},
|
|
300
304
|
{
|
|
301
305
|
site: "https://www.9news",
|
|
302
|
-
config:
|
|
306
|
+
config: P
|
|
303
307
|
},
|
|
304
308
|
{
|
|
305
309
|
site: "https://staging.9news",
|
|
306
|
-
config:
|
|
310
|
+
config: P
|
|
307
311
|
},
|
|
308
312
|
{
|
|
309
313
|
site: "https://www.yourtv",
|
|
310
|
-
config:
|
|
314
|
+
config: _
|
|
311
315
|
},
|
|
312
316
|
{
|
|
313
317
|
site: "https://staging.yourtv",
|
|
314
|
-
config:
|
|
318
|
+
config: _
|
|
315
319
|
},
|
|
316
320
|
{
|
|
317
321
|
site: "https://9now",
|
|
318
|
-
config:
|
|
322
|
+
config: v
|
|
319
323
|
},
|
|
320
324
|
{
|
|
321
325
|
site: "https://creative-preview-an.com",
|
|
322
|
-
config:
|
|
326
|
+
config: _
|
|
323
327
|
}
|
|
324
|
-
],
|
|
328
|
+
], I = () => {
|
|
325
329
|
let e = window.document.getElementById("nineContent");
|
|
326
|
-
if (e && (e.style.backgroundColor =
|
|
327
|
-
let e =
|
|
328
|
-
t &&
|
|
329
|
-
|
|
330
|
-
}),
|
|
330
|
+
if (e && (e.style.backgroundColor = G.siteBackgroundColor), V(), B(), z(), p.addEventListener("scroll", W), K = setTimeout(W, 50), G === k || G === M) {
|
|
331
|
+
let e = G === k ? S() : null, t = e?.appRoot || C() || m.body, n = e?.desktopHeaderAds || m.querySelector("#desktop-header-ads");
|
|
332
|
+
t && p.MutationObserver && (g = new p.MutationObserver(() => {
|
|
333
|
+
U();
|
|
334
|
+
}), g.observe(t, {
|
|
331
335
|
childList: !0,
|
|
332
336
|
subtree: !0
|
|
333
|
-
}), n && n !== t &&
|
|
337
|
+
}), n && n !== t && g.observe(n, {
|
|
334
338
|
childList: !0,
|
|
335
339
|
subtree: !0,
|
|
336
340
|
attributes: !0,
|
|
337
341
|
attributeFilter: ["class"]
|
|
338
|
-
})),
|
|
342
|
+
})), p.addEventListener("resize", U), U();
|
|
339
343
|
}
|
|
340
|
-
}, I = () => {
|
|
341
|
-
let e = null;
|
|
342
|
-
return e = f.querySelector("div[id*=\"billboard\"][id*=\"above\"]"), e;
|
|
343
344
|
}, L = () => {
|
|
344
|
-
let e =
|
|
345
|
-
|
|
345
|
+
let e = null;
|
|
346
|
+
return e = m.querySelector("div[id*=\"billboard\"][id*=\"above\"]"), e;
|
|
347
|
+
}, R = () => {
|
|
348
|
+
let e = p.location.href;
|
|
349
|
+
for (let t = 0; t < F.length; t += 1) if (e.indexOf(F[t].site) >= 0) return typeof F[t].config == "function" ? F[t].config() : F[t].config;
|
|
346
350
|
try {
|
|
347
351
|
let t = new URL(e), n = t.hostname.toLowerCase(), r = t.pathname.toLowerCase();
|
|
348
|
-
if (n === "creative-preview-an.com") return
|
|
349
|
-
if (n.includes("9news")) return
|
|
350
|
-
if (n.includes("yourtv")) return
|
|
351
|
-
if (n.includes("9now")) return
|
|
352
|
-
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") ?
|
|
352
|
+
if (n === "creative-preview-an.com") return _;
|
|
353
|
+
if (n.includes("9news")) return P;
|
|
354
|
+
if (n.includes("yourtv")) return _;
|
|
355
|
+
if (n.includes("9now")) return v;
|
|
356
|
+
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") ? N() : r.startsWith("/product-reviews") || r.startsWith("/property") ? v : A();
|
|
353
357
|
if ([
|
|
354
358
|
"entertainment",
|
|
355
359
|
"celebrity",
|
|
@@ -360,53 +364,53 @@ var e = (e, t, n) => {
|
|
|
360
364
|
"coach",
|
|
361
365
|
"kitchen",
|
|
362
366
|
"finance"
|
|
363
|
-
].some((e) => n.includes(e))) return
|
|
367
|
+
].some((e) => n.includes(e))) return _;
|
|
364
368
|
} catch {
|
|
365
|
-
return
|
|
369
|
+
return A();
|
|
366
370
|
}
|
|
367
|
-
return
|
|
368
|
-
},
|
|
371
|
+
return A();
|
|
372
|
+
}, z = () => {
|
|
369
373
|
if (!window.parent) return;
|
|
370
|
-
let e =
|
|
374
|
+
let e = m.querySelector("div[id*=\"halfpage\"][id*=\"above\"]");
|
|
371
375
|
if (!e) return;
|
|
372
376
|
let t = e;
|
|
373
|
-
for (let e = 0; e < 6; e++) if (t = t.parentNode, t &&
|
|
374
|
-
t.style.top = `${
|
|
377
|
+
for (let e = 0; e < 6; e++) if (t = t.parentNode, t && p.getComputedStyle(t).position === "sticky") {
|
|
378
|
+
t.style.top = `${G.stickyMargin.offset}px`;
|
|
375
379
|
break;
|
|
376
380
|
}
|
|
377
|
-
},
|
|
378
|
-
if (!
|
|
379
|
-
let e =
|
|
380
|
-
e.width =
|
|
381
|
-
let t =
|
|
382
|
-
for (; t && t !==
|
|
383
|
-
let e =
|
|
381
|
+
}, B = () => {
|
|
382
|
+
if (!f) return;
|
|
383
|
+
let e = f.style;
|
|
384
|
+
e.width = G.iframeWidth || "100%", e.height = G.iframeHeight || l, e.backgroundColor = G.iframeBackgroundColor || u, e.position = "fixed", G.iframeTop == null ? e.removeProperty("top") : e.top = G.iframeTop, e.left = "50%", e.transform = "translate(-50%, 0)";
|
|
385
|
+
let t = f.parentElement;
|
|
386
|
+
for (; t && t !== m.body && t !== m.documentElement;) {
|
|
387
|
+
let e = p.getComputedStyle(t);
|
|
384
388
|
e.transform && e.transform !== "none" && (t.style.transform = "none"), e.willChange && e.willChange !== "auto" && (t.style.willChange = "auto"), e.contain && e.contain !== "none" && (t.style.contain = "none"), e.filter && e.filter !== "none" && (t.style.filter = "none"), e.perspective && e.perspective !== "none" && (t.style.perspective = "none"), e.overflow !== "visible" && (t.style.overflow = "visible"), t = t.parentElement;
|
|
385
389
|
}
|
|
386
|
-
},
|
|
387
|
-
let e =
|
|
390
|
+
}, V = () => {
|
|
391
|
+
let e = L();
|
|
388
392
|
if (!e) return;
|
|
389
|
-
c(e, "0.1.
|
|
393
|
+
c(e, "0.1.85");
|
|
390
394
|
let t = e.style;
|
|
391
|
-
e.className &&= "", t.minHeight = "250px", t.marginTop =
|
|
392
|
-
}, V = () => {
|
|
393
|
-
let e = d.scrollY, t = u.style, n = document.getElementById("siteContent") ? document.getElementById("siteContent").style : {};
|
|
394
|
-
e >= 0 && e <= q ? (t.transform = `translate(-50%, ${-e}px)`, n.transform = "translateY(0)") : e > q && e <= ee ? (t.transform = `translate(-50%, ${-q}px)`, n.transform = `translateY(${q - e}px)`) : e > ee && (t.transform = `translate(-50%, ${-q}px)`, n.transform = "translateY(-250px)");
|
|
395
|
+
e.className &&= "", t.minHeight = "250px", t.marginTop = G.adNodeMarginTop + "px", t.marginBottom = G.adNodeMarginBottom + "px", t.position = "static", t.display = "block", G.zIndex && G.zIndex();
|
|
395
396
|
}, H = () => {
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
}));
|
|
397
|
+
let e = p.scrollY, t = f.style, n = document.getElementById("siteContent") ? document.getElementById("siteContent").style : {};
|
|
398
|
+
e >= 0 && e <= q ? (t.transform = `translate(-50%, ${-e}px)`, n.transform = "translateY(0)") : e > q && e <= J ? (t.transform = `translate(-50%, ${-q}px)`, n.transform = `translateY(${q - e}px)`) : e > J && (t.transform = `translate(-50%, ${-q}px)`, n.transform = "translateY(-250px)");
|
|
399
399
|
}, U = () => {
|
|
400
|
-
|
|
400
|
+
G !== k && G !== M || h || (h = p.requestAnimationFrame(() => {
|
|
401
|
+
h = null, B(), V(), z(), H();
|
|
402
|
+
}));
|
|
403
|
+
}, W = () => {
|
|
404
|
+
H();
|
|
401
405
|
};
|
|
402
|
-
|
|
403
|
-
let
|
|
404
|
-
if (!
|
|
405
|
-
let
|
|
406
|
-
return
|
|
407
|
-
|
|
406
|
+
L();
|
|
407
|
+
let G = R();
|
|
408
|
+
if (!G) return () => {};
|
|
409
|
+
let K = null, te = G === k || G === M ? G.responsiveScroll : 0, q = -G.responsiveScroll + d + te + E(), J = q + 250;
|
|
410
|
+
return I(), () => {
|
|
411
|
+
p.removeEventListener("scroll", W), p.removeEventListener("resize", U), g &&= (g.disconnect(), null), h &&= (p.cancelAnimationFrame(h), null), K &&= (clearTimeout(K), null);
|
|
408
412
|
};
|
|
409
|
-
},
|
|
413
|
+
}, f = (o) => {
|
|
410
414
|
let c = window.frameElement ? window.frameElement : null;
|
|
411
415
|
if (!c) return () => {};
|
|
412
416
|
let l = window.parent;
|
|
@@ -431,7 +435,7 @@ var e = (e, t, n) => {
|
|
|
431
435
|
...g("sidebar", r),
|
|
432
436
|
...g("footer", r)
|
|
433
437
|
]), d = g("sidebar-sticky", r);
|
|
434
|
-
e(i, "height", "250px"), e(i, "padding", "0px"), e(o, "zIndex", "1085"), e(s, "position", "relative"), e(s, "zIndex", "1086"), t(c, [["position", "relative"], ["zIndex", "1071"]]), t(l, [["position", "relative"], ["zIndex", "1072"]]), t(d, [["zIndex", "1072"]]), n(u, "powered-ac-collant-nine-new-overrides", "\n #app > [data-ad-target=\"header\"],\n #app.wwos > [data-ad-target=\"header\"],\n #app > .sc-llJctl,\n #app.wwos > .sc-llJctl {\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 margin-left: 0 !important;\n margin-right: 0 !important;\n z-index: 1085 !important;\n }\n\n #app > [data-ad-target=\"tv-show-banner\"],\n #app.wwos > [data-ad-target=\"tv-show-banner\"],\n #app > header[data-tv-show],\n #app.wwos > header[data-tv-show] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n margin-left: auto !important;\n margin-right: auto !important;\n z-index: 1085 !important;\n }\n\n #app [data-ad-target=\"header-nav\"],\n #app.wwos [data-ad-target=\"header-nav\"],\n #app .sc-gicCDH.bNInIa,\n #app.wwos .sc-gicCDH.bNInIa {\n width: 100%;\n max-width: 100%;\n margin-left: 0;\n margin-right: 0;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n position: relative !important;\n overflow: visible !important;\n z-index: 1086 !important;\n }\n\n #app [data-ad-target=\"header-nav\"] nav,\n #app.wwos [data-ad-target=\"header-nav\"] nav {\n width: 100% !important;\n max-width: 100% !important;\n overflow: visible !important;\n }\n\n #app [data-ad-target=\"nav-dropdown\"],\n #app.wwos [data-ad-target=\"nav-dropdown\"] {\n position: absolute !important;\n top: 100% !important;\n left: 50% !important;\n right: auto !important;\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n transform: translateX(-50%) !important;\n z-index:
|
|
438
|
+
e(i, "height", "250px"), e(i, "padding", "0px"), e(o, "zIndex", "1085"), e(s, "position", "relative"), e(s, "zIndex", "1086"), t(c, [["position", "relative"], ["zIndex", "1071"]]), t(l, [["position", "relative"], ["zIndex", "1072"]]), t(d, [["zIndex", "1072"]]), n(u, "powered-ac-collant-nine-new-overrides", "\n #app > [data-ad-target=\"header\"],\n #app.wwos > [data-ad-target=\"header\"],\n #app > .sc-llJctl,\n #app.wwos > .sc-llJctl {\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 margin-left: 0 !important;\n margin-right: 0 !important;\n z-index: 1085 !important;\n }\n\n #app > [data-ad-target=\"tv-show-banner\"],\n #app.wwos > [data-ad-target=\"tv-show-banner\"],\n #app > header[data-tv-show],\n #app.wwos > header[data-tv-show] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n margin-left: auto !important;\n margin-right: auto !important;\n z-index: 1085 !important;\n }\n\n #app [data-ad-target=\"header-nav\"],\n #app.wwos [data-ad-target=\"header-nav\"],\n #app .sc-gicCDH.bNInIa,\n #app.wwos .sc-gicCDH.bNInIa {\n width: 100%;\n max-width: 100%;\n margin-left: 0;\n margin-right: 0;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n position: relative !important;\n overflow: visible !important;\n z-index: 1086 !important;\n }\n\n #app [data-ad-target=\"header-nav\"] nav,\n #app.wwos [data-ad-target=\"header-nav\"] nav {\n width: 100% !important;\n max-width: 100% !important;\n overflow: visible !important;\n }\n\n #app [data-ad-target=\"nav-dropdown\"],\n #app.wwos [data-ad-target=\"nav-dropdown\"] {\n position: absolute !important;\n top: 100% !important;\n left: 50% !important;\n right: auto !important;\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n transform: translateX(-50%) !important;\n z-index: 1089 !important;\n }\n ");
|
|
435
439
|
}, y = {
|
|
436
440
|
siteBackgroundColor: "#ffffff",
|
|
437
441
|
fireplaceLeftMargin: 0,
|
|
@@ -581,6 +585,10 @@ var e = (e, t, n) => {
|
|
|
581
585
|
site: "https://preview.nine.com.au/",
|
|
582
586
|
config: x
|
|
583
587
|
},
|
|
588
|
+
{
|
|
589
|
+
site: "https://www.nine.com.au",
|
|
590
|
+
config: x
|
|
591
|
+
},
|
|
584
592
|
{
|
|
585
593
|
site: "https://www.nine",
|
|
586
594
|
config: x
|
|
@@ -659,7 +667,7 @@ var e = (e, t, n) => {
|
|
|
659
667
|
}
|
|
660
668
|
], E = () => {
|
|
661
669
|
let e = window.document.getElementById("nineContent");
|
|
662
|
-
e && (e.style.backgroundColor =
|
|
670
|
+
e && (e.style.backgroundColor = L.siteBackgroundColor), d && (f.setProperty("--masthead-height", "250px"), f.height = "var(--masthead-height)"), j(), A(), ee(), M(), l.addEventListener("scroll", F, { passive: !0 }), R = setTimeout(F, 50);
|
|
663
671
|
}, D = () => {
|
|
664
672
|
let e = null;
|
|
665
673
|
return e = u.querySelector("div[id*=\"billboard\"][id*=\"above\"]"), e;
|
|
@@ -670,75 +678,75 @@ var e = (e, t, n) => {
|
|
|
670
678
|
if (t.position !== "fixed") return 0;
|
|
671
679
|
let n = parseFloat(t.top || "0");
|
|
672
680
|
return Number.isFinite(n) && Math.abs(n) > 1 ? 0 : Math.round(e.getBoundingClientRect().height) || 0;
|
|
673
|
-
},
|
|
681
|
+
}, ee = () => {
|
|
674
682
|
let e = null;
|
|
675
683
|
if (!window.parent) return e;
|
|
676
684
|
if (e = u.querySelector("div[id*=\"halfpage\"][id*=\"above\"]"), !e) return;
|
|
677
685
|
let t = e;
|
|
678
686
|
for (let e = 0; e < 6; e++) if (t = t.parentNode, t && l.getComputedStyle(t).position === "sticky") {
|
|
679
|
-
t.style.top = `${
|
|
687
|
+
t.style.top = `${L.stickyMargin.offset}px`;
|
|
680
688
|
break;
|
|
681
689
|
}
|
|
682
|
-
},
|
|
690
|
+
}, k = () => {
|
|
683
691
|
let e = l.location.href;
|
|
684
692
|
for (let t = 0; t < T.length; t += 1) if (e.indexOf(T[t].site) >= 0) return T[t].config;
|
|
685
|
-
},
|
|
693
|
+
}, A = () => {
|
|
686
694
|
if (!c) return;
|
|
687
695
|
let e = c.style;
|
|
688
696
|
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)";
|
|
697
|
+
}, j = () => {
|
|
698
|
+
if (!I) return;
|
|
699
|
+
let e = I.style;
|
|
700
|
+
I.className = "", e.minHeight = "250px", e.marginTop = L.adNodeMarginTop + "px", e.marginBottom = L.adNodeMarginBottom + "px", e.position = "static", e.display = "block", L.zIndex && L.zIndex();
|
|
689
701
|
}, M = () => {
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
p = u.querySelector("div[data-contentunit-id=\"stan\"]")?.parentNode || u.querySelector("div[data-ui-testid=\"header-score-strip\"]")?.parentNode || h("main") || h("container") || h("page-container") || u.querySelector("div[class*=\"__MyContainer\"]") || u.querySelector("div[class*=\"__ArticleContainer\"]") || u.querySelector("div[class*=\"__VideoIndexComponent\"]") || u.querySelector("div.container.layout") || u.querySelector("main.container.layout"), p && (p.style.willChange = "clip-path", p.style.transition = "none", p.style.webkitBackfaceVisibility = "hidden", p.style.backfaceVisibility = "hidden", p.style.transform = "translate3d(0,0,0)", p.style.backgroundColor = R.siteBackgroundColor, p.style.setProperty("--mask-inset", "0px"), p.style.clipPath = "inset(var(--mask-inset, 0px) 0 0 0)");
|
|
695
|
-
}, P = 0, F = 0, I = () => {
|
|
696
|
-
let e = l.scrollY, t = e > P, n = e > V ? e - R.maskOffset : 0, r = Math.abs(n - F);
|
|
697
|
-
if (p) if (t && n > F) if (r > 100) {
|
|
702
|
+
p = u.querySelector("div[data-contentunit-id=\"stan\"]")?.parentNode || u.querySelector("div[data-ui-testid=\"header-score-strip\"]")?.parentNode || h("main") || h("container") || h("page-container") || u.querySelector("div[class*=\"__MyContainer\"]") || u.querySelector("div[class*=\"__ArticleContainer\"]") || u.querySelector("div[class*=\"__VideoIndexComponent\"]") || u.querySelector("div.container.layout") || u.querySelector("main.container.layout"), p && (p.style.willChange = "clip-path", p.style.transition = "none", p.style.webkitBackfaceVisibility = "hidden", p.style.backfaceVisibility = "hidden", p.style.transform = "translate3d(0,0,0)", p.style.backgroundColor = L.siteBackgroundColor, p.style.setProperty("--mask-inset", "0px"), p.style.clipPath = "inset(var(--mask-inset, 0px) 0 0 0)");
|
|
703
|
+
}, N = 0, P = 0, F = () => {
|
|
704
|
+
let e = l.scrollY, t = e > N, n = e > B ? e - L.maskOffset : 0, r = Math.abs(n - P);
|
|
705
|
+
if (p) if (t && n > P) if (r > 100) {
|
|
698
706
|
let e = Math.max(0, n - 100);
|
|
699
707
|
p.style.transition = "none", p.style.setProperty("--mask-inset", `${e}px`), p.offsetHeight, p.style.transition = "clip-path 0.3s ease-out", p.style.setProperty("--mask-inset", `${n}px`);
|
|
700
708
|
} else p.style.transition = "clip-path 0.3s ease-out", p.style.setProperty("--mask-inset", `${n}px`);
|
|
701
709
|
else p.style.transition = "none", p.style.setProperty("--mask-inset", `${n}px`);
|
|
702
|
-
|
|
703
|
-
},
|
|
704
|
-
if (!
|
|
705
|
-
let
|
|
710
|
+
N = e, P = n, e > B ? (c.style.setProperty("--transform-y", `${-z}px`), f.setProperty("--masthead-height", "100px"), window.CollantOn || window.goCollant()) : e > z && e <= B ? (c.style.setProperty("--transform-y", `${-z}px`), f.setProperty("--masthead-height", `${250 + z - e}px`), window.CollantOn && window.goBillboard()) : e >= 0 && e <= z && (c.style.setProperty("--transform-y", `${-e}px`), f.setProperty("--masthead-height", "250px"), window.CollantOn && window.goBillboard());
|
|
711
|
+
}, I = D(), L = k();
|
|
712
|
+
if (!L) return () => {};
|
|
713
|
+
let R = null, z = -L.responsiveScroll + o + O(), B = z + 150;
|
|
706
714
|
return E(), () => {
|
|
707
|
-
l.removeEventListener("scroll",
|
|
715
|
+
l.removeEventListener("scroll", F), R &&= (clearTimeout(R), null);
|
|
708
716
|
};
|
|
709
|
-
},
|
|
717
|
+
}, p = 866, m = 68, h = 16, g = ":scope > header h1, :scope > header h2, :scope > header h3", _ = "h1, h2, h3", v = "#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3", y = "adspot-desktop-takeover-2-above", b = -24, x = -24, S = [
|
|
710
718
|
"www.nine.com.au",
|
|
711
719
|
"staging.nine.com.au",
|
|
712
720
|
"preview.nine.com.au",
|
|
713
721
|
"render-web-nine-staging-v1.ffxblue.com.au",
|
|
714
722
|
"render-web-nine-production-v1.ffxblue.com.au"
|
|
715
|
-
],
|
|
716
|
-
hostnames:
|
|
723
|
+
], C = [{
|
|
724
|
+
hostnames: S,
|
|
717
725
|
path: "/sport",
|
|
718
726
|
headingText: "Sport",
|
|
719
|
-
slotId:
|
|
720
|
-
}],
|
|
727
|
+
slotId: y
|
|
728
|
+
}], w = new Set(["localhost", "127.0.0.1"]), T = "__poweredAdConfigDynamicHeadingActive", E = "data-pac-dynamicheading-owner", D = "data-pac-reparented", O = (e, t) => {
|
|
721
729
|
if (typeof e == "number" && Number.isFinite(e)) return `${e}px`;
|
|
722
730
|
if (typeof e == "string") {
|
|
723
731
|
let n = e.trim();
|
|
724
732
|
return n ? /^-?\d+(\.\d+)?$/.test(n) ? `${n}px` : n : `${t}px`;
|
|
725
733
|
}
|
|
726
734
|
return `${t}px`;
|
|
727
|
-
},
|
|
735
|
+
}, ee = (e) => {
|
|
728
736
|
if (!e || typeof e != "object") return null;
|
|
729
737
|
let t = typeof e.headingText == "string" ? e.headingText.trim() : "", n = typeof e.path == "string" ? e.path.trim().toLowerCase() : "", r = typeof e.pathPrefix == "string" ? e.pathPrefix.trim().toLowerCase() : "", i = Array.isArray(e.hostnames) ? e.hostnames.map((e) => String(e).trim().toLowerCase()).filter(Boolean) : [];
|
|
730
738
|
return !t || !n && !r ? null : {
|
|
731
739
|
headingText: t,
|
|
732
740
|
path: n || null,
|
|
733
741
|
pathPrefix: r || null,
|
|
734
|
-
slotId: typeof e.slotId == "string" && e.slotId.trim() ? e.slotId.trim() :
|
|
735
|
-
hostnames: i.length ? i :
|
|
742
|
+
slotId: typeof e.slotId == "string" && e.slotId.trim() ? e.slotId.trim() : y,
|
|
743
|
+
hostnames: i.length ? i : S
|
|
736
744
|
};
|
|
737
|
-
},
|
|
738
|
-
if (!Array.isArray(e) || e.length === 0) return
|
|
739
|
-
let t = e.map(
|
|
740
|
-
return t.length ? t :
|
|
741
|
-
},
|
|
745
|
+
}, k = (e) => {
|
|
746
|
+
if (!Array.isArray(e) || e.length === 0) return C;
|
|
747
|
+
let t = e.map(ee).filter(Boolean);
|
|
748
|
+
return t.length ? t : C;
|
|
749
|
+
}, A = ({ offsetTop: e = b, offsetLeft: t = x, width: n = p, height: i = m, pageTargets: a = C } = {}) => {
|
|
742
750
|
let o = window.frameElement || null;
|
|
743
751
|
if (!o) return () => {};
|
|
744
752
|
let s = window.parent;
|
|
@@ -749,20 +757,20 @@ var e = (e, t, n) => {
|
|
|
749
757
|
} catch {
|
|
750
758
|
return () => {};
|
|
751
759
|
}
|
|
752
|
-
let l = s[
|
|
760
|
+
let l = s[T];
|
|
753
761
|
if (l?.iframe === o && typeof l.cleanup == "function") return l.cleanup;
|
|
754
762
|
if (l?.iframe?.isConnected && typeof l?.cleanup == "function") return () => {};
|
|
755
763
|
typeof l?.cleanup == "function" && l.cleanup();
|
|
756
|
-
let u = `dynamicheading-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`,
|
|
764
|
+
let u = `dynamicheading-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`, d = (e, t, n) => {
|
|
757
765
|
e && e.style[t] !== n && (e.style[t] = n);
|
|
758
|
-
},
|
|
766
|
+
}, f = () => {
|
|
759
767
|
try {
|
|
760
768
|
let e = window.location.hostname.toLowerCase();
|
|
761
|
-
return
|
|
769
|
+
return w.has(e) ? !0 : new URLSearchParams(window.location.search).get("keepDynamicHeadingVisible") === "1";
|
|
762
770
|
} catch {
|
|
763
771
|
return !1;
|
|
764
772
|
}
|
|
765
|
-
},
|
|
773
|
+
}, y = (e = o.parentElement) => {
|
|
766
774
|
let t = e;
|
|
767
775
|
for (; t && t !== c.body;) {
|
|
768
776
|
let e = t.id || "", n = t.getAttribute?.("data-testid") || "", r = t.getAttribute?.("type") || "";
|
|
@@ -770,10 +778,10 @@ var e = (e, t, n) => {
|
|
|
770
778
|
t = t.parentElement;
|
|
771
779
|
}
|
|
772
780
|
return o.parentElement;
|
|
773
|
-
},
|
|
781
|
+
}, S = () => {
|
|
774
782
|
try {
|
|
775
783
|
let e = new URL(s.location.href), t = e.hostname.toLowerCase(), n = e.pathname.toLowerCase();
|
|
776
|
-
return
|
|
784
|
+
return z.find((e) => {
|
|
777
785
|
let r = e.hostnames.includes(t), i = e.path ? n === e.path : n.startsWith(e.pathPrefix);
|
|
778
786
|
return r && i;
|
|
779
787
|
}) || null;
|
|
@@ -781,20 +789,20 @@ var e = (e, t, n) => {
|
|
|
781
789
|
return null;
|
|
782
790
|
}
|
|
783
791
|
return null;
|
|
784
|
-
},
|
|
792
|
+
}, ee = () => {
|
|
785
793
|
let e = r(c, "app") || c.getElementById("app") || c, t = r(e, "page-container") || e;
|
|
786
794
|
return r(r(t, "container") || t, "main") || r(e, "main") || c.querySelector("#app main") || null;
|
|
787
|
-
},
|
|
795
|
+
}, A = (e) => {
|
|
788
796
|
if (!e || !e.isConnected) return !1;
|
|
789
797
|
let t = e.getBoundingClientRect();
|
|
790
798
|
if (t.width <= 0 || t.height <= 0) return !1;
|
|
791
799
|
let n = s.getComputedStyle(e);
|
|
792
800
|
return n.display !== "none" && n.visibility !== "hidden";
|
|
793
|
-
},
|
|
794
|
-
let e =
|
|
795
|
-
return Array.from(new Set([...t, ...n])).filter(
|
|
796
|
-
},
|
|
797
|
-
let t =
|
|
801
|
+
}, j = () => {
|
|
802
|
+
let e = ee(), t = e ? [...e.querySelectorAll(g), ...e.querySelectorAll(_)] : [], n = t.length ? [] : Array.from(c.querySelectorAll(v));
|
|
803
|
+
return Array.from(new Set([...t, ...n])).filter(A);
|
|
804
|
+
}, M = (e) => {
|
|
805
|
+
let t = j();
|
|
798
806
|
if (!t.length) return null;
|
|
799
807
|
let n = typeof e == "string" ? e.trim().toLowerCase() : "";
|
|
800
808
|
if (n) {
|
|
@@ -802,56 +810,56 @@ var e = (e, t, n) => {
|
|
|
802
810
|
if (e) return e;
|
|
803
811
|
}
|
|
804
812
|
return t.find((e) => e.tagName === "H1") || t[0] || null;
|
|
805
|
-
},
|
|
806
|
-
|
|
807
|
-
let
|
|
813
|
+
}, N = null, P = null;
|
|
814
|
+
f();
|
|
815
|
+
let F = O(e, b), I = O(t, x), L = O(n, p), R = O(i, m), z = k(a), B = S();
|
|
816
|
+
if (!B) return () => {};
|
|
817
|
+
let V = y((B.slotId ? c.getElementById(B.slotId) : null) || o.parentElement);
|
|
808
818
|
if (!V) return () => {};
|
|
809
|
-
let H =
|
|
810
|
-
if (
|
|
811
|
-
let U =
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
overflow: H.style.overflow
|
|
834
|
-
}, G = {
|
|
819
|
+
let H = V.getAttribute(E);
|
|
820
|
+
if (H && H !== u) return () => {};
|
|
821
|
+
let U = {
|
|
822
|
+
width: V.style.width,
|
|
823
|
+
maxWidth: V.style.maxWidth,
|
|
824
|
+
minWidth: V.style.minWidth,
|
|
825
|
+
height: V.style.height,
|
|
826
|
+
minHeight: V.style.minHeight,
|
|
827
|
+
marginTop: V.style.marginTop,
|
|
828
|
+
marginBottom: V.style.marginBottom,
|
|
829
|
+
marginLeft: V.style.marginLeft,
|
|
830
|
+
marginRight: V.style.marginRight,
|
|
831
|
+
position: V.style.position,
|
|
832
|
+
top: V.style.top,
|
|
833
|
+
left: V.style.left,
|
|
834
|
+
right: V.style.right,
|
|
835
|
+
transform: V.style.transform,
|
|
836
|
+
display: V.style.display,
|
|
837
|
+
opacity: V.style.opacity,
|
|
838
|
+
transition: V.style.transition,
|
|
839
|
+
pointerEvents: V.style.pointerEvents,
|
|
840
|
+
zIndex: V.style.zIndex,
|
|
841
|
+
overflow: V.style.overflow
|
|
842
|
+
}, W = {
|
|
835
843
|
width: o.style.width,
|
|
836
844
|
height: o.style.height,
|
|
837
845
|
display: o.style.display,
|
|
838
846
|
border: o.style.border,
|
|
839
847
|
position: o.style.position,
|
|
840
848
|
pointerEvents: o.style.pointerEvents
|
|
841
|
-
},
|
|
842
|
-
let e =
|
|
843
|
-
for (; e && e !== c.body;)
|
|
849
|
+
}, G = [], K = parseFloat(R) || m, te = parseFloat(F) || 0, q = parseFloat(I) || 0, J = () => {
|
|
850
|
+
let e = V.parentElement;
|
|
851
|
+
for (; e && e !== c.body;) G.push({
|
|
844
852
|
element: e,
|
|
845
853
|
overflow: e.style.overflow
|
|
846
|
-
}),
|
|
854
|
+
}), d(e, "overflow", "visible"), e = e.parentElement;
|
|
847
855
|
}, ne = () => {
|
|
848
|
-
|
|
856
|
+
d(V, "width", L), d(V, "maxWidth", L), d(V, "minWidth", L), d(V, "height", R), d(V, "minHeight", R), d(V, "display", "block"), d(V, "overflow", "hidden"), d(V, "pointerEvents", "none"), d(V, "zIndex", "1080"), V.setAttribute(E, u), d(o, "width", L), d(o, "height", R), d(o, "display", "block"), d(o, "border", "0"), d(o, "position", "relative"), d(o, "pointerEvents", "auto");
|
|
849
857
|
}, re = {
|
|
850
858
|
element: null,
|
|
851
859
|
position: ""
|
|
852
860
|
}, ie = () => {
|
|
853
|
-
let e =
|
|
854
|
-
e && s.getComputedStyle(e).position === "static" && (re.element = e, re.position = e.style.position,
|
|
861
|
+
let e = V.parentElement;
|
|
862
|
+
e && s.getComputedStyle(e).position === "static" && (re.element = e, re.position = e.style.position, d(e, "position", "relative")), d(V, "position", "absolute"), d(V, "top", `${te}px`), d(V, "left", `${q}px`), d(V, "right", "auto"), d(V, "marginTop", "0px"), d(V, "marginBottom", `${h}px`), d(V, "marginLeft", "0px"), d(V, "marginRight", "0px"), d(V, "transform", "");
|
|
855
863
|
}, ae = (e) => {
|
|
856
864
|
let t = null;
|
|
857
865
|
try {
|
|
@@ -868,11 +876,11 @@ var e = (e, t, n) => {
|
|
|
868
876
|
return !1;
|
|
869
877
|
}
|
|
870
878
|
if (!t) return !1;
|
|
871
|
-
o.setAttribute(
|
|
879
|
+
o.setAttribute(D, "1");
|
|
872
880
|
try {
|
|
873
|
-
e.parentNode?.insertBefore(
|
|
881
|
+
e.parentNode?.insertBefore(V, e);
|
|
874
882
|
} catch {
|
|
875
|
-
return o.removeAttribute(
|
|
883
|
+
return o.removeAttribute(D), !1;
|
|
876
884
|
}
|
|
877
885
|
J(), ne(), ie();
|
|
878
886
|
try {
|
|
@@ -882,40 +890,40 @@ var e = (e, t, n) => {
|
|
|
882
890
|
}
|
|
883
891
|
return !0;
|
|
884
892
|
}, oe = () => {
|
|
885
|
-
|
|
893
|
+
d(V, "position", "fixed"), d(V, "marginTop", "0px"), d(V, "marginBottom", "0px"), d(V, "marginLeft", "0px"), d(V, "marginRight", "0px"), d(V, "transform", "");
|
|
886
894
|
}, se = () => {
|
|
887
|
-
|
|
895
|
+
d(V, "display", "none");
|
|
888
896
|
}, ce = () => {
|
|
889
|
-
|
|
897
|
+
d(V, "display", "block"), d(V, "overflow", "hidden");
|
|
890
898
|
}, Y = null, X = () => {
|
|
891
|
-
if ((!Y || !Y.isConnected) && (Y =
|
|
892
|
-
let e = Y.getBoundingClientRect(), t = e.top -
|
|
893
|
-
|
|
899
|
+
if ((!Y || !Y.isConnected) && (Y = M(B.headingText)), !Y) return;
|
|
900
|
+
let e = Y.getBoundingClientRect(), t = e.top - K - h + te, n = e.left + q;
|
|
901
|
+
d(V, "top", `${t}px`), d(V, "left", `${n}px`), d(V, "right", "auto");
|
|
894
902
|
}, le = null, Z = null, Q = !1, $ = (e = 12) => {
|
|
895
|
-
if (Y =
|
|
896
|
-
e > 1 && (
|
|
903
|
+
if (Y = M(B.headingText), !Y) {
|
|
904
|
+
e > 1 && (P = s.setTimeout(() => $(e - 1), 250));
|
|
897
905
|
return;
|
|
898
906
|
}
|
|
899
907
|
ae(Y) || (Q = !0, J(), ne(), oe(), X(), le = () => X(), Z = () => X(), s.addEventListener("scroll", le, { passive: !0 }), s.addEventListener("resize", Z));
|
|
900
908
|
};
|
|
901
909
|
$();
|
|
902
910
|
let ue = () => {
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
}), Object.entries(
|
|
911
|
+
P &&= (s.clearTimeout(P), null), N &&= (s.clearTimeout(N), null), le &&= (s.removeEventListener("scroll", le), null), Z &&= (s.removeEventListener("resize", Z), null), V.getAttribute(E) === u && V.removeAttribute(E), Q && (Object.entries(U).forEach(([e, t]) => {
|
|
912
|
+
V.style[e] = t;
|
|
913
|
+
}), Object.entries(W).forEach(([e, t]) => {
|
|
906
914
|
o.style[e] = t;
|
|
907
|
-
}),
|
|
915
|
+
}), G.forEach(({ element: e, overflow: t }) => {
|
|
908
916
|
e.style.overflow = t;
|
|
909
|
-
})), s[
|
|
917
|
+
})), s[T]?.instanceId === u && delete s[T];
|
|
910
918
|
};
|
|
911
|
-
return s[
|
|
919
|
+
return s[T] = {
|
|
912
920
|
instanceId: u,
|
|
913
921
|
iframe: o,
|
|
914
922
|
cleanup: ue,
|
|
915
923
|
show: ce,
|
|
916
924
|
hide: se
|
|
917
925
|
}, ue;
|
|
918
|
-
},
|
|
926
|
+
}, j = (e, t, n) => {
|
|
919
927
|
let r = window.frameElement ? window.frameElement : null;
|
|
920
928
|
if (!r) return () => {};
|
|
921
929
|
let i = window.parent;
|
|
@@ -1043,6 +1051,10 @@ var e = (e, t, n) => {
|
|
|
1043
1051
|
site: "https://preview.nine.com.au/",
|
|
1044
1052
|
config: l
|
|
1045
1053
|
},
|
|
1054
|
+
{
|
|
1055
|
+
site: "https://www.nine.com.au",
|
|
1056
|
+
config: l
|
|
1057
|
+
},
|
|
1046
1058
|
{
|
|
1047
1059
|
site: "https://www.nine",
|
|
1048
1060
|
config: l
|
|
@@ -1156,11 +1168,11 @@ var e = (e, t, n) => {
|
|
|
1156
1168
|
return p(), () => {
|
|
1157
1169
|
i.removeEventListener("scroll", y), w &&= (clearTimeout(w), null);
|
|
1158
1170
|
};
|
|
1159
|
-
},
|
|
1171
|
+
}, M = ((e, t = 50) => `linear(${Array.from({ length: t + 1 }, (n, r) => e(r / t)).map((e) => +e.toFixed(4)).join(", ")})`)((e) => {
|
|
1160
1172
|
if (e === 0 || e === 1) return e;
|
|
1161
1173
|
let t = 2 * Math.PI / 3;
|
|
1162
1174
|
return 2 ** (-10 * e) * Math.sin((e * 10 - .75) * t) + 1;
|
|
1163
|
-
}),
|
|
1175
|
+
}), N = (e = {}) => {
|
|
1164
1176
|
let t = {
|
|
1165
1177
|
adScrollHeight: "300vh",
|
|
1166
1178
|
bandHeight: 24,
|
|
@@ -1183,7 +1195,7 @@ var e = (e, t, n) => {
|
|
|
1183
1195
|
snapOverlap: 2,
|
|
1184
1196
|
stretchOverlap: 20,
|
|
1185
1197
|
snapDuration: .9,
|
|
1186
|
-
snapEase:
|
|
1198
|
+
snapEase: M,
|
|
1187
1199
|
onEnter: null,
|
|
1188
1200
|
onExit: null,
|
|
1189
1201
|
onProgress: null,
|
|
@@ -1227,7 +1239,7 @@ var e = (e, t, n) => {
|
|
|
1227
1239
|
};
|
|
1228
1240
|
(() => {
|
|
1229
1241
|
let e = a.style;
|
|
1230
|
-
e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.
|
|
1242
|
+
e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.85"), 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";
|
|
1231
1243
|
let o = a.parentElement;
|
|
1232
1244
|
for (let e = 0; e < 6 && o && o !== i.body; e++) {
|
|
1233
1245
|
let t = r.getComputedStyle(o), n = !1;
|
|
@@ -1332,7 +1344,7 @@ var e = (e, t, n) => {
|
|
|
1332
1344
|
e.style[t] = n || "";
|
|
1333
1345
|
});
|
|
1334
1346
|
};
|
|
1335
|
-
},
|
|
1347
|
+
}, P = (e = {}) => {
|
|
1336
1348
|
let t = {
|
|
1337
1349
|
adaptToWidth: "100%",
|
|
1338
1350
|
maxWidth: "400px",
|
|
@@ -1365,7 +1377,7 @@ var e = (e, t, n) => {
|
|
|
1365
1377
|
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;
|
|
1366
1378
|
return (() => {
|
|
1367
1379
|
let e = a.style;
|
|
1368
|
-
if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.
|
|
1380
|
+
if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.85"), c) {
|
|
1369
1381
|
let e = c.style;
|
|
1370
1382
|
e.width = "100%", e.height = "100%", e.margin = "0", e.textAlign = "left";
|
|
1371
1383
|
}
|
|
@@ -1380,7 +1392,7 @@ var e = (e, t, n) => {
|
|
|
1380
1392
|
})(), () => {
|
|
1381
1393
|
f &&= (f.disconnect(), null), o ? a.setAttribute("style", o) : a.removeAttribute("style"), s ? n.setAttribute("style", s) : n.removeAttribute("style"), c && (l ? c.setAttribute("style", l) : c.removeAttribute("style")), u && d && d !== "0px" && (u.style.paddingTop = d);
|
|
1382
1394
|
};
|
|
1383
|
-
},
|
|
1395
|
+
}, F = (e = {}) => {
|
|
1384
1396
|
let t = {
|
|
1385
1397
|
billboardHeight: 150,
|
|
1386
1398
|
sideStripWidth: 10,
|
|
@@ -1555,17 +1567,17 @@ var e = (e, t, n) => {
|
|
|
1555
1567
|
let e = r.location.href;
|
|
1556
1568
|
for (let t of d) if (e.indexOf(t.site) >= 0) return t.config;
|
|
1557
1569
|
return u.nine;
|
|
1558
|
-
})(), p = f === u.smh || f === u.theage, m = n.getAttribute("style"), h = n.hasAttribute("data-mf-wallpaper-iframe"), g = a.getAttribute("style"), _ = n.parentElement === a ? null : n.parentElement, v = _ ? _.getAttribute("style") : null, y = a.parentElement, b = y ? y.getAttribute("style") : null, x = s ? s.getAttribute("style") : null, S = o ? o.getAttribute("style") : null, C = o ? o.querySelector("header") : null, w = C ? C.getAttribute("style") : null, T = C ? C.querySelector(".sc-5cbbddda-1") : null, E = T ? T.getAttribute("style") : null, D = i.querySelector("footer"), O = D ? D.getAttribute("style") : null,
|
|
1570
|
+
})(), p = f === u.smh || f === u.theage, m = n.getAttribute("style"), h = n.hasAttribute("data-mf-wallpaper-iframe"), g = a.getAttribute("style"), _ = n.parentElement === a ? null : n.parentElement, v = _ ? _.getAttribute("style") : null, y = a.parentElement, b = y ? y.getAttribute("style") : null, x = s ? s.getAttribute("style") : null, S = o ? o.getAttribute("style") : null, C = o ? o.querySelector("header") : null, w = C ? C.getAttribute("style") : null, T = C ? C.querySelector(".sc-5cbbddda-1") : null, E = T ? T.getAttribute("style") : null, D = i.querySelector("footer"), O = D ? D.getAttribute("style") : null, ee = o ? Array.from(o.children).map((e) => ({
|
|
1559
1571
|
el: e,
|
|
1560
1572
|
orig: e.getAttribute("style")
|
|
1561
|
-
})) : [], A = null, j = null, M = null, N = null, P = null, F = null, I = null, L =
|
|
1562
|
-
if (!e || e ===
|
|
1573
|
+
})) : [], k = null, A = null, j = null, M = null, N = null, P = null, F = null, I = null, L = [], R = null, z = null, B = null, V = null, H = null, U = null, W = null, G = [], K = Number.isFinite(t.stickyDurationMs) && t.stickyDurationMs > 0, te = Number.isFinite(t.stickyScrollDistance) && t.stickyScrollDistance > 0, q = !!(t.sticky && (K || te)), J = "pending", ne = 0, re = 0, ie = null, ae = null, oe = null, se = null, ce = null, Y = null, X = [], le = Number.isFinite(t.stickyHeaderFallbackHeight) ? Math.max(0, t.stickyHeaderFallbackHeight) : null, Z = f === u.afr, Q = null, $ = null, ue = (e) => {
|
|
1574
|
+
if (!e || e === B || e === y || e === a) return !1;
|
|
1563
1575
|
let t = e.firstElementChild;
|
|
1564
1576
|
if (!t || t !== e.lastElementChild || !t.classList.contains("container") || t.children.length > 0 || t.textContent && t.textContent.trim() || e.querySelector("#adspot-mobile-mbanner-2-above, iframe, [data-mf-slot], .adWrapper")) return !1;
|
|
1565
1577
|
let n = r.getComputedStyle(e);
|
|
1566
1578
|
return n.position === "fixed" || n.position === "sticky";
|
|
1567
1579
|
}, de = (e) => {
|
|
1568
|
-
!e?.parentElement ||
|
|
1580
|
+
!e?.parentElement || G.some((t) => t.shell === e) || (G.push({
|
|
1569
1581
|
shell: e,
|
|
1570
1582
|
parent: e.parentElement,
|
|
1571
1583
|
nextSibling: e.nextSibling
|
|
@@ -1579,7 +1591,7 @@ var e = (e, t, n) => {
|
|
|
1579
1591
|
let t = e?.parentElement;
|
|
1580
1592
|
for (; t && t !== i.body && t !== i.documentElement;) {
|
|
1581
1593
|
let e = r.getComputedStyle(t);
|
|
1582
|
-
(e.transform && e.transform !== "none" || e.willChange && e.willChange !== "auto" || e.contain && e.contain !== "none" || e.filter && e.filter !== "none" || e.perspective && e.perspective !== "none") && (
|
|
1594
|
+
(e.transform && e.transform !== "none" || e.willChange && e.willChange !== "auto" || e.contain && e.contain !== "none" || e.filter && e.filter !== "none" || e.perspective && e.perspective !== "none") && (L.find((e) => e.el === t) || L.push({
|
|
1583
1595
|
el: t,
|
|
1584
1596
|
orig: t.getAttribute("style")
|
|
1585
1597
|
}), t.style.transform = "none", t.style.willChange = "auto", t.style.contain = "none", t.style.filter = "none", t.style.perspective = "none"), t = t.parentElement;
|
|
@@ -1600,7 +1612,7 @@ var e = (e, t, n) => {
|
|
|
1600
1612
|
};
|
|
1601
1613
|
}).filter(({ rect: t, styles: n, list: r, listStyles: i }) => !r || !i || t.top < e - 4 || t.top > e + 120 || n.overflow !== "hidden" || parseFloat(n.borderTopLeftRadius) < 4 ? !1 : i.overflow === "auto" || i.overflowX === "auto");
|
|
1602
1614
|
return t.length ? (t.sort((t, n) => Math.abs(t.rect.top - e) - Math.abs(n.rect.top - e)), t[0]) : null;
|
|
1603
|
-
}, ge = () =>
|
|
1615
|
+
}, ge = () => I || a, _e = () => !t.stickyRespectHeader || !t.stickyHeaderSelector ? [] : Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map((e) => {
|
|
1604
1616
|
let t = e.getBoundingClientRect(), n = r.getComputedStyle(e), i = Number.parseInt(n.zIndex, 10);
|
|
1605
1617
|
return {
|
|
1606
1618
|
el: e,
|
|
@@ -1618,7 +1630,7 @@ var e = (e, t, n) => {
|
|
|
1618
1630
|
let e = ve();
|
|
1619
1631
|
return e?.zIndex && e.zIndex > 2 ? Math.max(t.stickyZIndex, e.zIndex + 1) : t.stickyZIndex;
|
|
1620
1632
|
}, xe = ({ active: e, progress: t = 0, remainingMs: n = 0 }) => {
|
|
1621
|
-
|
|
1633
|
+
P?.contentWindow && P.contentWindow.postMessage({
|
|
1622
1634
|
type: "mobilefireplace:sticky",
|
|
1623
1635
|
active: e,
|
|
1624
1636
|
progress: Math.max(0, Math.min(1, t)),
|
|
@@ -1632,7 +1644,7 @@ var e = (e, t, n) => {
|
|
|
1632
1644
|
});
|
|
1633
1645
|
}, Ce = (e) => {
|
|
1634
1646
|
let t = new Set([ge()].filter(Boolean));
|
|
1635
|
-
if (f === u.afr ||
|
|
1647
|
+
if (f === u.afr || U || p) {
|
|
1636
1648
|
[
|
|
1637
1649
|
a,
|
|
1638
1650
|
y,
|
|
@@ -1643,15 +1655,15 @@ var e = (e, t, n) => {
|
|
|
1643
1655
|
}
|
|
1644
1656
|
for (let n of t) Se(n), n.style.setProperty("z-index", String(e), "important");
|
|
1645
1657
|
}, we = () => Z && (a.closest("#stickyLeaderboard") || i.querySelector("#stickyLeaderboard")) || ge(), Te = () => {
|
|
1646
|
-
if (!Z || !
|
|
1647
|
-
let e =
|
|
1658
|
+
if (!Z || !P) return;
|
|
1659
|
+
let e = P.style;
|
|
1648
1660
|
e.left = "0px", e.width = "100vw";
|
|
1649
1661
|
}, Ee = () => {
|
|
1650
|
-
if (!Z || !
|
|
1662
|
+
if (!Z || !P || J === "active") return;
|
|
1651
1663
|
let e = we();
|
|
1652
1664
|
if (!e) return;
|
|
1653
|
-
let t = e.getBoundingClientRect(), n =
|
|
1654
|
-
n.position = "absolute", n.top = `${Math.round(r.scrollY + t.top)}px`, Te(), n.setProperty("z-index", "6", "important"),
|
|
1665
|
+
let t = e.getBoundingClientRect(), n = P.style;
|
|
1666
|
+
n.position = "absolute", n.top = `${Math.round(r.scrollY + t.top)}px`, Te(), n.setProperty("z-index", "6", "important"), P.removeAttribute("data-mf-sticky-active");
|
|
1655
1667
|
}, De = () => {
|
|
1656
1668
|
Z && (Ee(), se && r.cancelAnimationFrame(se), se = r.requestAnimationFrame(() => {
|
|
1657
1669
|
se = null, Ee();
|
|
@@ -1659,13 +1671,13 @@ var e = (e, t, n) => {
|
|
|
1659
1671
|
ce = null, Ee();
|
|
1660
1672
|
}, 350));
|
|
1661
1673
|
}, Oe = () => {
|
|
1662
|
-
!Z || !
|
|
1674
|
+
!Z || !P || P.parentElement === i.body || (Q = P.parentElement, $ = P.nextSibling, i.body.appendChild(P));
|
|
1663
1675
|
}, ke = () => {
|
|
1664
|
-
if (!Q || !
|
|
1676
|
+
if (!Q || !P) {
|
|
1665
1677
|
Q = null, $ = null;
|
|
1666
1678
|
return;
|
|
1667
1679
|
}
|
|
1668
|
-
$ && $.parentNode === Q ? Q.insertBefore(
|
|
1680
|
+
$ && $.parentNode === Q ? Q.insertBefore(P, $) : Q.appendChild(P), Q = null, $ = null;
|
|
1669
1681
|
}, Ae = () => {
|
|
1670
1682
|
for (let e = X.length - 1; e >= 0; --e) {
|
|
1671
1683
|
let { el: t, value: n, priority: r } = X[e];
|
|
@@ -1673,20 +1685,20 @@ var e = (e, t, n) => {
|
|
|
1673
1685
|
}
|
|
1674
1686
|
X.length = 0;
|
|
1675
1687
|
}, je = () => {
|
|
1676
|
-
if (!
|
|
1688
|
+
if (!P) return;
|
|
1677
1689
|
pe(ge());
|
|
1678
1690
|
let e = ge().getBoundingClientRect(), t = be();
|
|
1679
1691
|
Ce(t), Oe();
|
|
1680
|
-
let n =
|
|
1681
|
-
n.position = "fixed", n.top = `${ye()}px`, Z ? Te() : (n.left = `${Math.round(e.left)}px`, n.width = `${Math.round(e.width)}px`), n.setProperty("z-index", String(t), "important"),
|
|
1692
|
+
let n = P.style;
|
|
1693
|
+
n.position = "fixed", n.top = `${ye()}px`, Z ? Te() : (n.left = `${Math.round(e.left)}px`, n.width = `${Math.round(e.width)}px`), n.setProperty("z-index", String(t), "important"), P.setAttribute("data-mf-sticky-active", "");
|
|
1682
1694
|
}, Me = () => {
|
|
1683
|
-
if (!
|
|
1695
|
+
if (!P) return;
|
|
1684
1696
|
if (ke(), Z) {
|
|
1685
1697
|
De(), Ae();
|
|
1686
1698
|
return;
|
|
1687
1699
|
}
|
|
1688
|
-
let e =
|
|
1689
|
-
e.position = "relative", e.top = "", e.left = "", e.width = "100%", e.setProperty("z-index", "1"), Ae(),
|
|
1700
|
+
let e = P.style;
|
|
1701
|
+
e.position = "relative", e.top = "", e.left = "", e.width = "100%", e.setProperty("z-index", "1"), Ae(), P.removeAttribute("data-mf-sticky-active");
|
|
1690
1702
|
}, Ne = () => {
|
|
1691
1703
|
ae &&= (r.cancelAnimationFrame(ae), null);
|
|
1692
1704
|
}, Pe = () => {
|
|
@@ -1698,9 +1710,9 @@ var e = (e, t, n) => {
|
|
|
1698
1710
|
}
|
|
1699
1711
|
return ie;
|
|
1700
1712
|
}, Ie = () => re + (J === "active" ? Math.max(0, r.performance.now() - ne) : 0), Le = () => Math.max(0, r.scrollY - Fe()), Re = () => {
|
|
1701
|
-
let e =
|
|
1713
|
+
let e = K ? Ie() / t.stickyDurationMs : 0, n = te ? Le() / t.stickyScrollDistance : 0;
|
|
1702
1714
|
return Math.max(e, n);
|
|
1703
|
-
}, ze = () =>
|
|
1715
|
+
}, ze = () => K ? t.stickyDurationMs - Ie() : 0, Be = () => r.scrollY < Fe() - 1, Ve = () => {
|
|
1704
1716
|
J === "active" && (re = Ie(), J = "paused", Ne(), Me(), xe({
|
|
1705
1717
|
active: !1,
|
|
1706
1718
|
progress: Re(),
|
|
@@ -1720,7 +1732,7 @@ var e = (e, t, n) => {
|
|
|
1720
1732
|
Ve();
|
|
1721
1733
|
return;
|
|
1722
1734
|
}
|
|
1723
|
-
let e = Ie(), n = Le(), i =
|
|
1735
|
+
let e = Ie(), n = Le(), i = K ? e / t.stickyDurationMs : 0, a = te ? n / t.stickyScrollDistance : 0, o = Math.max(i, a), s = K ? t.stickyDurationMs - e : 0;
|
|
1724
1736
|
if (je(), xe({
|
|
1725
1737
|
active: !0,
|
|
1726
1738
|
progress: o,
|
|
@@ -1731,16 +1743,16 @@ var e = (e, t, n) => {
|
|
|
1731
1743
|
}
|
|
1732
1744
|
ae = r.requestAnimationFrame(We);
|
|
1733
1745
|
}, Ge = () => {
|
|
1734
|
-
if (!
|
|
1746
|
+
if (!q || J !== "pending" || !P) return;
|
|
1735
1747
|
Pe();
|
|
1736
1748
|
let e = ge().getBoundingClientRect();
|
|
1737
1749
|
ie = Math.max(0, r.scrollY + e.top - t.stickyTop), re = 0, J = "active", ne = r.performance.now(), je(), We();
|
|
1738
1750
|
}, Ke = () => {
|
|
1739
|
-
!
|
|
1751
|
+
!q || J !== "pending" || !P || ge().getBoundingClientRect().top <= t.stickyTop && Ge();
|
|
1740
1752
|
}, qe = () => {
|
|
1741
1753
|
J === "pending" ? Ke() : J === "active" && Be() ? Ve() : J === "paused" && He(), J !== "active" && De();
|
|
1742
1754
|
}, Je = () => {
|
|
1743
|
-
if (!
|
|
1755
|
+
if (!q || J !== "pending" || !P) {
|
|
1744
1756
|
oe = null;
|
|
1745
1757
|
return;
|
|
1746
1758
|
}
|
|
@@ -1751,7 +1763,7 @@ var e = (e, t, n) => {
|
|
|
1751
1763
|
for (; e && e !== i.body && e !== i.documentElement;) {
|
|
1752
1764
|
let t = r.getComputedStyle(e);
|
|
1753
1765
|
if (t.position === "fixed" || t.position === "sticky") {
|
|
1754
|
-
|
|
1766
|
+
U = e, W = e.getAttribute("style");
|
|
1755
1767
|
break;
|
|
1756
1768
|
}
|
|
1757
1769
|
e = e.parentElement;
|
|
@@ -1759,10 +1771,10 @@ var e = (e, t, n) => {
|
|
|
1759
1771
|
let d = n.parentElement;
|
|
1760
1772
|
for (; d && d !== i.body && d !== i.documentElement;) {
|
|
1761
1773
|
let e = r.getComputedStyle(d);
|
|
1762
|
-
(e.transform && e.transform !== "none" || e.willChange && e.willChange !== "auto" || e.contain && e.contain !== "none" || e.filter && e.filter !== "none" || e.perspective && e.perspective !== "none") && (
|
|
1774
|
+
(e.transform && e.transform !== "none" || e.willChange && e.willChange !== "auto" || e.contain && e.contain !== "none" || e.filter && e.filter !== "none" || e.perspective && e.perspective !== "none") && (L.push({
|
|
1763
1775
|
el: d,
|
|
1764
1776
|
orig: d.getAttribute("style")
|
|
1765
|
-
}), d.style.transform = "none", d.style.willChange = "auto", d.style.contain = "none", d.style.filter = "none", d.style.perspective = "none"), e.overflow !== "visible" && (
|
|
1777
|
+
}), d.style.transform = "none", d.style.willChange = "auto", d.style.contain = "none", d.style.filter = "none", d.style.perspective = "none"), e.overflow !== "visible" && (L.find((e) => e.el === d) || L.push({
|
|
1766
1778
|
el: d,
|
|
1767
1779
|
orig: d.getAttribute("style")
|
|
1768
1780
|
}), d.style.overflow = "visible"), d = d.parentElement;
|
|
@@ -1770,20 +1782,20 @@ var e = (e, t, n) => {
|
|
|
1770
1782
|
let m = n.style;
|
|
1771
1783
|
if (m.setProperty("position", f === u.afr ? "absolute" : "fixed", f === u.afr ? "important" : ""), m.setProperty("top", "0", f === u.afr ? "important" : ""), m.setProperty("left", "0", f === u.afr ? "important" : ""), m.setProperty("width", f === u.afr ? "0" : "100vw", f === u.afr ? "important" : ""), m.setProperty("height", f === u.afr ? "0" : "100dvh", f === u.afr ? "important" : ""), m.setProperty("z-index", f === u.afr ? "0" : String(t.zIndex), f === u.afr ? "important" : ""), m.setProperty("border", "none", f === u.afr ? "important" : ""), m.setProperty("margin", "0", f === u.afr ? "important" : ""), m.setProperty("padding", "0", f === u.afr ? "important" : ""), m.setProperty("display", "block", f === u.afr ? "important" : ""), m.setProperty("opacity", f === u.afr ? "0" : "1", f === u.afr ? "important" : ""), m.setProperty("pointer-events", "none", f === u.afr ? "important" : ""), f === u.afr && l && l !== "about:blank") try {
|
|
1772
1784
|
let e = new URL(l);
|
|
1773
|
-
e.searchParams.set("mfRole", "wallpaper"),
|
|
1774
|
-
let t =
|
|
1775
|
-
t.setProperty("position", "fixed", "important"), t.setProperty("top", "0", "important"), t.setProperty("left", "0", "important"), t.setProperty("width", "100vw", "important"), t.setProperty("height", "100dvh", "important"), t.setProperty("border", "none", "important"), t.setProperty("margin", "0", "important"), t.setProperty("padding", "0", "important"), t.setProperty("display", "block", "important"), t.setProperty("background", "transparent", "important"), t.setProperty("z-index", "0", "important"), t.setProperty("pointer-events", "none", "important"), i.body.insertBefore(
|
|
1785
|
+
e.searchParams.set("mfRole", "wallpaper"), F = i.createElement("iframe"), F.src = e.href, F.setAttribute("data-mf-wallpaper-iframe", ""), F.setAttribute("scrolling", "no"), F.setAttribute("frameborder", "0");
|
|
1786
|
+
let t = F.style;
|
|
1787
|
+
t.setProperty("position", "fixed", "important"), t.setProperty("top", "0", "important"), t.setProperty("left", "0", "important"), t.setProperty("width", "100vw", "important"), t.setProperty("height", "100dvh", "important"), t.setProperty("border", "none", "important"), t.setProperty("margin", "0", "important"), t.setProperty("padding", "0", "important"), t.setProperty("display", "block", "important"), t.setProperty("background", "transparent", "important"), t.setProperty("z-index", "0", "important"), t.setProperty("pointer-events", "none", "important"), i.body.insertBefore(F, i.body.firstChild);
|
|
1776
1788
|
} catch (e) {
|
|
1777
1789
|
console.warn("[mobilefireplace] Could not create AFR wallpaper iframe:", e);
|
|
1778
1790
|
}
|
|
1779
|
-
if (a.setAttribute("poweredAC", "0.1.
|
|
1791
|
+
if (a.setAttribute("poweredAC", "0.1.85"), _) {
|
|
1780
1792
|
let e = _.style;
|
|
1781
1793
|
e.width = "100%", e.height = "0", e.overflow = "visible", e.position = "static", e.margin = "0";
|
|
1782
1794
|
}
|
|
1783
1795
|
let h = a.style;
|
|
1784
1796
|
h.height = t.billboardHeight + "px", h.minHeight = t.billboardHeight + "px", h.background = "transparent", h.overflow = "visible", h.position = "relative", h.width = "100%", h.padding = "0", h.margin = "0", y && (y.style.overflow = "visible", y.style.position = "relative", y.style.backgroundColor = "transparent", y.style.height = t.billboardHeight + "px", y.style.minHeight = t.billboardHeight + "px", y.style.maxHeight = t.billboardHeight + "px", y.style.padding = "0", y.style.margin = "0", y.setAttribute("data-mf-slot", ""));
|
|
1785
1797
|
let g = `max(${t.sideStripWidth}px, env(safe-area-inset-left))`, v = `max(${t.sideStripWidth}px, env(safe-area-inset-right))`;
|
|
1786
|
-
if (
|
|
1798
|
+
if (N = i.createElement("style"), N.id = "mobilefireplace-pac", N.textContent = `
|
|
1787
1799
|
/* Mobile Fireplace — powered-ad-config */
|
|
1788
1800
|
html, body {
|
|
1789
1801
|
background-color: transparent !important;
|
|
@@ -1947,50 +1959,50 @@ var e = (e, t, n) => {
|
|
|
1947
1959
|
margin: 0 !important;
|
|
1948
1960
|
padding: 0 !important;
|
|
1949
1961
|
}
|
|
1950
|
-
`, i.head.appendChild(
|
|
1962
|
+
`, i.head.appendChild(N), f.setup && f.setup(i, a), f === u.wwos) {
|
|
1951
1963
|
let e = he();
|
|
1952
|
-
e && (
|
|
1964
|
+
e && (k = e.el, A = k.getAttribute("style"), j = e.list, M = j ? j.getAttribute("style") : null, k.style.marginLeft = "10px", k.style.marginRight = "10px", k.style.width = "calc(100% - 20px)", j && (j.style.width = "100%"));
|
|
1953
1965
|
}
|
|
1954
|
-
if (o && f !== u.afr && (
|
|
1955
|
-
if (
|
|
1966
|
+
if (o && f !== u.afr && (U || p)) {
|
|
1967
|
+
if (U && (B = c || y), l && l !== "about:blank") {
|
|
1956
1968
|
let e = new URL(l);
|
|
1957
|
-
e.searchParams.set("mfRole", "wallpaper"),
|
|
1958
|
-
let n =
|
|
1959
|
-
n.position = "fixed", n.top = "0", n.left = "0", n.width = "100vw", n.height = "100dvh", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.background = "transparent", n.zIndex = String(t.zIndex), n.pointerEvents = "none", i.body.insertBefore(
|
|
1969
|
+
e.searchParams.set("mfRole", "wallpaper"), F = i.createElement("iframe"), F.src = e.href, F.setAttribute("data-mf-wallpaper-iframe", ""), F.setAttribute("scrolling", "no"), F.setAttribute("frameborder", "0");
|
|
1970
|
+
let n = F.style;
|
|
1971
|
+
n.position = "fixed", n.top = "0", n.left = "0", n.width = "100vw", n.height = "100dvh", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.background = "transparent", n.zIndex = String(t.zIndex), n.pointerEvents = "none", i.body.insertBefore(F, i.body.firstChild);
|
|
1960
1972
|
}
|
|
1961
|
-
n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.width = "0", n.style.height = "0", n.style.opacity = "0", n.style.pointerEvents = "none", n.style.zIndex = "-1",
|
|
1962
|
-
for (let { el: e } of
|
|
1973
|
+
n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.width = "0", n.style.height = "0", n.style.opacity = "0", n.style.pointerEvents = "none", n.style.zIndex = "-1", I = me(), o.parentElement.insertBefore(I, o), U ? (U.style.position = "static", U.style.inset = "auto", U.style.height = "0", U.style.minHeight = "0", U.style.maxHeight = "0", U.style.overflow = "hidden", U.style.backgroundColor = "transparent", U.style.boxShadow = "none", U.style.border = "0", U.style.outline = "0", U.style.pointerEvents = "none") : y && (y.style.height = "0", y.style.minHeight = "0", y.style.maxHeight = "0", y.style.overflow = "hidden", y.style.backgroundColor = "transparent", y.style.border = "0", y.style.outline = "0"), h.height = "0", h.minHeight = "0", h.width = "0", h.overflow = "hidden", s && (s.style.backgroundColor = "transparent", s.style.backgroundImage = "none", s.style.position = "relative", s.style.zIndex = "1"), o.style.marginLeft = "14px", o.style.marginRight = "14px", o.style.backgroundColor = "#ffffff", o.style.position = "relative", o.style.zIndex = "2", o.style.overflowX = "clip", o.style.isolation = "isolate";
|
|
1974
|
+
for (let { el: e } of ee) e.style.backgroundColor = "transparent", e.style.boxShadow = "none", e.style.paddingLeft = "10px", e.style.paddingRight = "10px";
|
|
1963
1975
|
C && (C.style.borderTop = "0", C.style.outline = "0", C.style.boxShadow = "none"), T && (T.style.borderBottom = "0"), D && (D.style.marginLeft = "14px", D.style.marginRight = "14px", D.style.position = "relative", D.style.zIndex = "2"), fe();
|
|
1964
1976
|
}
|
|
1965
|
-
|
|
1977
|
+
I || (I = me(), a.appendChild(I));
|
|
1966
1978
|
}, Xe = null, Ze = null, Qe = !1, $e = () => {
|
|
1967
1979
|
let e = r.innerWidth, n = r.innerHeight;
|
|
1968
1980
|
if (e > n) {
|
|
1969
1981
|
let r = n / e, i = Math.round(t.billboardHeight * r);
|
|
1970
|
-
a.style.height = i + "px", a.style.minHeight = i + "px",
|
|
1971
|
-
} else a.style.height = t.billboardHeight + "px", a.style.minHeight = t.billboardHeight + "px",
|
|
1982
|
+
a.style.height = i + "px", a.style.minHeight = i + "px", I && (I.style.height = i + "px", I.style.minHeight = i + "px", I.style.maxHeight = i + "px"), P && (P.style.height = i + "px");
|
|
1983
|
+
} else a.style.height = t.billboardHeight + "px", a.style.minHeight = t.billboardHeight + "px", I && (I.style.height = t.billboardHeight + "px", I.style.minHeight = t.billboardHeight + "px", I.style.maxHeight = t.billboardHeight + "px"), P && (P.style.height = t.billboardHeight + "px");
|
|
1972
1984
|
J === "active" ? je() : De();
|
|
1973
1985
|
};
|
|
1974
1986
|
if (Ye(), l && l !== "about:blank") try {
|
|
1975
1987
|
let e = new URL(l);
|
|
1976
|
-
e.searchParams.set("mfRole", "billboard"),
|
|
1977
|
-
let n =
|
|
1978
|
-
n.position = Z ? "absolute" : "relative", n.width = "100%", n.height = t.billboardHeight + "px", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.overflow = "hidden", n.background = "transparent", n.zIndex = Z ? "6" : "1", Z ? (
|
|
1988
|
+
e.searchParams.set("mfRole", "billboard"), P = i.createElement("iframe"), P.src = e.href, P.setAttribute("data-mf-billboard-iframe", ""), P.setAttribute("scrolling", "no"), P.setAttribute("frameborder", "0");
|
|
1989
|
+
let n = P.style;
|
|
1990
|
+
n.position = Z ? "absolute" : "relative", n.width = "100%", n.height = t.billboardHeight + "px", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.overflow = "hidden", n.background = "transparent", n.zIndex = Z ? "6" : "1", Z ? (P.setAttribute("data-mf-body-billboard", ""), i.body.appendChild(P), Ee()) : (I || a).appendChild(P), q && (Y = qe, r.addEventListener("scroll", Y, { passive: !0 }), oe = r.requestAnimationFrame(Je));
|
|
1979
1991
|
} catch (e) {
|
|
1980
1992
|
console.warn("[mobilefireplace] Could not create billboard iframe:", e);
|
|
1981
1993
|
}
|
|
1982
1994
|
r.__mfBridge = {
|
|
1983
1995
|
adapted: !1,
|
|
1984
|
-
wallpaperWindow:
|
|
1985
|
-
billboardIframe:
|
|
1996
|
+
wallpaperWindow: F?.contentWindow || n.contentWindow,
|
|
1997
|
+
billboardIframe: P,
|
|
1986
1998
|
billboardWindow: null
|
|
1987
|
-
},
|
|
1999
|
+
}, F && F.addEventListener("load", () => {
|
|
1988
2000
|
try {
|
|
1989
|
-
r.__mfBridge && (r.__mfBridge.wallpaperWindow =
|
|
2001
|
+
r.__mfBridge && (r.__mfBridge.wallpaperWindow = F.contentWindow);
|
|
1990
2002
|
} catch {}
|
|
1991
|
-
}),
|
|
2003
|
+
}), P && P.addEventListener("load", () => {
|
|
1992
2004
|
try {
|
|
1993
|
-
r.__mfBridge.billboardWindow =
|
|
2005
|
+
r.__mfBridge.billboardWindow = P.contentWindow;
|
|
1994
2006
|
} catch {}
|
|
1995
2007
|
}), Xe = $e, r.addEventListener("resize", Xe), $e(), Ze = () => {
|
|
1996
2008
|
et();
|
|
@@ -2003,28 +2015,28 @@ var e = (e, t, n) => {
|
|
|
2003
2015
|
active: !1,
|
|
2004
2016
|
progress: 1,
|
|
2005
2017
|
remainingMs: 0
|
|
2006
|
-
}),
|
|
2018
|
+
}), N && N.parentNode && (N.parentNode.removeChild(N), N = null), P && P.parentNode && (P.parentNode.removeChild(P), P = null), Q = null, $ = null, I && I.parentNode && (I.parentNode.removeChild(I), I = null), F && F.parentNode && (F.parentNode.removeChild(F), F = null);
|
|
2007
2019
|
try {
|
|
2008
2020
|
delete r.__mfBridge;
|
|
2009
2021
|
} catch {}
|
|
2010
|
-
for (let e =
|
|
2011
|
-
let { shell: t, parent: n, nextSibling: r } =
|
|
2022
|
+
for (let e = G.length - 1; e >= 0; --e) {
|
|
2023
|
+
let { shell: t, parent: n, nextSibling: r } = G[e];
|
|
2012
2024
|
!t || !n || (r && r.parentNode === n ? n.insertBefore(t, r) : n.appendChild(t));
|
|
2013
2025
|
}
|
|
2014
|
-
|
|
2015
|
-
for (let { el: e, orig: t } of
|
|
2016
|
-
|
|
2017
|
-
for (let { el: e, orig: t } of
|
|
2018
|
-
|
|
2026
|
+
G.length = 0, R && (z && z.parentNode === R ? R.insertBefore(n, z) : R.appendChild(n), R = null, z = null), m ? n.setAttribute("style", m) : n.removeAttribute("style"), h || n.removeAttribute("data-mf-wallpaper-iframe");
|
|
2027
|
+
for (let { el: e, orig: t } of L) t ? e.setAttribute("style", t) : e.removeAttribute("style");
|
|
2028
|
+
L.length = 0, g ? a.setAttribute("style", g) : a.removeAttribute("style"), _ && (v ? _.setAttribute("style", v) : _.removeAttribute("style")), B &&= (V && (H && H.parentNode === V ? V.insertBefore(B, H) : V.appendChild(B), V = null, H = null), null), y && (y.removeAttribute("data-mf-slot"), b ? y.setAttribute("style", b) : y.removeAttribute("style")), U && (W ? U.setAttribute("style", W) : U.removeAttribute("style"), U = null, W = null);
|
|
2029
|
+
for (let { el: e, orig: t } of ee) t ? e.setAttribute("style", t) : e.removeAttribute("style");
|
|
2030
|
+
j && (M ? j.setAttribute("style", M) : j.removeAttribute("style"), j = null, M = null), k && (A ? k.setAttribute("style", A) : k.removeAttribute("style"), k = null, A = null), o && (S ? o.setAttribute("style", S) : o.removeAttribute("style")), C && (w ? C.setAttribute("style", w) : C.removeAttribute("style")), T && (E ? T.setAttribute("style", E) : T.removeAttribute("style")), D && (O ? D.setAttribute("style", O) : D.removeAttribute("style")), s && (x ? s.setAttribute("style", x) : s.removeAttribute("style"));
|
|
2019
2031
|
}
|
|
2020
2032
|
};
|
|
2021
2033
|
return et;
|
|
2022
|
-
},
|
|
2023
|
-
function
|
|
2024
|
-
typeof
|
|
2034
|
+
}, I = () => {};
|
|
2035
|
+
function L({ adFormat: e = "", stickyOffset: t = 0, logoPosX: n = 0, logoHeight: r = 0, logoSmallHeight: i = 0, ...a } = {}) {
|
|
2036
|
+
typeof I == "function" && I();
|
|
2025
2037
|
let o = () => {};
|
|
2026
|
-
return e === "fireplace" ? o =
|
|
2038
|
+
return e === "fireplace" ? o = d(t) : e === "fireplace-collant" ? o = f(t) : e === "logomorph" ? o = j(n, r, i) : e === "dynamicheading" ? o = A(a) : e === "interscroller" ? o = N(a) : e === "liquidframe" ? o = P(a) : e === "mobilefireplace" ? o = F(a) : console.warn("[powered-ad-config] Unknown ad format:", e), I = typeof o == "function" ? o : () => {}, I;
|
|
2027
2039
|
}
|
|
2028
|
-
|
|
2040
|
+
L.version = "0.1.85";
|
|
2029
2041
|
//#endregion
|
|
2030
|
-
export {
|
|
2042
|
+
export { L as default };
|