powered-ad-config 0.1.87 → 0.1.89
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 +299 -219
- package/dist/powered-ad-config.umd.js +96 -7
- package/package.json +2 -2
|
@@ -218,7 +218,7 @@ var e = (e, t, n) => {
|
|
|
218
218
|
}, j = () => {
|
|
219
219
|
let e = O();
|
|
220
220
|
if (!e) return;
|
|
221
|
-
c(e, "0.1.
|
|
221
|
+
c(e, "0.1.89");
|
|
222
222
|
let t = e.style;
|
|
223
223
|
e.className &&= "", t.minHeight = "250px", t.marginTop = F.adNodeMarginTop + "px", t.marginBottom = F.adNodeMarginBottom + "px", t.position = "static", t.display = "block", F.zIndex && F.zIndex();
|
|
224
224
|
}, M = () => {
|
|
@@ -468,7 +468,7 @@ var e = (e, t, n) => {
|
|
|
468
468
|
}, S = () => {
|
|
469
469
|
try {
|
|
470
470
|
let e = new URL(s.location.href), t = e.hostname.toLowerCase(), n = e.pathname.toLowerCase();
|
|
471
|
-
return
|
|
471
|
+
return z.find((e) => {
|
|
472
472
|
let r = e.hostnames.includes(t), i = e.path ? n === e.path : n.startsWith(e.pathPrefix);
|
|
473
473
|
return r && i;
|
|
474
474
|
}) || null;
|
|
@@ -499,33 +499,33 @@ var e = (e, t, n) => {
|
|
|
499
499
|
return t.find((e) => e.tagName === "H1") || t[0] || null;
|
|
500
500
|
}, N = null, P = null;
|
|
501
501
|
f();
|
|
502
|
-
let F = O(e, b), I = O(t, x), L = O(n, p), R = O(i, m),
|
|
503
|
-
if (!z) return () => {};
|
|
504
|
-
let B = y((z.slotId ? c.getElementById(z.slotId) : null) || o.parentElement);
|
|
502
|
+
let F = O(e, b), I = O(t, x), L = O(n, p), R = O(i, m), z = k(a), B = S();
|
|
505
503
|
if (!B) return () => {};
|
|
506
|
-
let
|
|
507
|
-
if (
|
|
508
|
-
let
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
504
|
+
let V = y((B.slotId ? c.getElementById(B.slotId) : null) || o.parentElement);
|
|
505
|
+
if (!V) return () => {};
|
|
506
|
+
let te = V.getAttribute(E);
|
|
507
|
+
if (te && te !== u) return () => {};
|
|
508
|
+
let ne = {
|
|
509
|
+
width: V.style.width,
|
|
510
|
+
maxWidth: V.style.maxWidth,
|
|
511
|
+
minWidth: V.style.minWidth,
|
|
512
|
+
height: V.style.height,
|
|
513
|
+
minHeight: V.style.minHeight,
|
|
514
|
+
marginTop: V.style.marginTop,
|
|
515
|
+
marginBottom: V.style.marginBottom,
|
|
516
|
+
marginLeft: V.style.marginLeft,
|
|
517
|
+
marginRight: V.style.marginRight,
|
|
518
|
+
position: V.style.position,
|
|
519
|
+
top: V.style.top,
|
|
520
|
+
left: V.style.left,
|
|
521
|
+
right: V.style.right,
|
|
522
|
+
transform: V.style.transform,
|
|
523
|
+
display: V.style.display,
|
|
524
|
+
opacity: V.style.opacity,
|
|
525
|
+
transition: V.style.transition,
|
|
526
|
+
pointerEvents: V.style.pointerEvents,
|
|
527
|
+
zIndex: V.style.zIndex,
|
|
528
|
+
overflow: V.style.overflow
|
|
529
529
|
}, re = {
|
|
530
530
|
width: o.style.width,
|
|
531
531
|
height: o.style.height,
|
|
@@ -533,21 +533,21 @@ var e = (e, t, n) => {
|
|
|
533
533
|
border: o.style.border,
|
|
534
534
|
position: o.style.position,
|
|
535
535
|
pointerEvents: o.style.pointerEvents
|
|
536
|
-
},
|
|
537
|
-
let e =
|
|
538
|
-
for (; e && e !== c.body;)
|
|
536
|
+
}, ie = [], H = parseFloat(R) || m, ae = parseFloat(F) || 0, U = parseFloat(I) || 0, W = () => {
|
|
537
|
+
let e = V.parentElement;
|
|
538
|
+
for (; e && e !== c.body;) ie.push({
|
|
539
539
|
element: e,
|
|
540
540
|
overflow: e.style.overflow
|
|
541
541
|
}), d(e, "overflow", "visible"), e = e.parentElement;
|
|
542
|
-
},
|
|
543
|
-
d(
|
|
544
|
-
},
|
|
542
|
+
}, oe = () => {
|
|
543
|
+
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");
|
|
544
|
+
}, se = {
|
|
545
545
|
element: null,
|
|
546
546
|
position: ""
|
|
547
|
-
},
|
|
548
|
-
let e =
|
|
549
|
-
e && s.getComputedStyle(e).position === "static" && (
|
|
550
|
-
},
|
|
547
|
+
}, G = () => {
|
|
548
|
+
let e = V.parentElement;
|
|
549
|
+
e && s.getComputedStyle(e).position === "static" && (se.element = e, se.position = e.style.position, d(e, "position", "relative")), d(V, "position", "absolute"), d(V, "top", `${ae}px`), d(V, "left", `${U}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", "");
|
|
550
|
+
}, ce = (e) => {
|
|
551
551
|
let t = null;
|
|
552
552
|
try {
|
|
553
553
|
let e = o.contentDocument;
|
|
@@ -565,51 +565,51 @@ var e = (e, t, n) => {
|
|
|
565
565
|
if (!t) return !1;
|
|
566
566
|
o.setAttribute(D, "1");
|
|
567
567
|
try {
|
|
568
|
-
e.parentNode?.insertBefore(
|
|
568
|
+
e.parentNode?.insertBefore(V, e);
|
|
569
569
|
} catch {
|
|
570
570
|
return o.removeAttribute(D), !1;
|
|
571
571
|
}
|
|
572
|
-
|
|
572
|
+
W(), oe(), G();
|
|
573
573
|
try {
|
|
574
574
|
o.srcdoc = t;
|
|
575
575
|
} catch {
|
|
576
576
|
return !1;
|
|
577
577
|
}
|
|
578
578
|
return !0;
|
|
579
|
-
},
|
|
580
|
-
d(
|
|
581
|
-
},
|
|
582
|
-
d(
|
|
583
|
-
},
|
|
584
|
-
d(
|
|
585
|
-
},
|
|
586
|
-
if ((!
|
|
587
|
-
let e =
|
|
588
|
-
d(
|
|
589
|
-
},
|
|
590
|
-
if (
|
|
591
|
-
e > 1 && (P = s.setTimeout(() =>
|
|
579
|
+
}, le = () => {
|
|
580
|
+
d(V, "position", "fixed"), d(V, "marginTop", "0px"), d(V, "marginBottom", "0px"), d(V, "marginLeft", "0px"), d(V, "marginRight", "0px"), d(V, "transform", "");
|
|
581
|
+
}, ue = () => {
|
|
582
|
+
d(V, "display", "none");
|
|
583
|
+
}, de = () => {
|
|
584
|
+
d(V, "display", "block"), d(V, "overflow", "hidden");
|
|
585
|
+
}, K = null, q = () => {
|
|
586
|
+
if ((!K || !K.isConnected) && (K = M(B.headingText)), !K) return;
|
|
587
|
+
let e = K.getBoundingClientRect(), t = e.top - H - h + ae, n = e.left + U;
|
|
588
|
+
d(V, "top", `${t}px`), d(V, "left", `${n}px`), d(V, "right", "auto");
|
|
589
|
+
}, J = null, Y = null, fe = !1, X = (e = 12) => {
|
|
590
|
+
if (K = M(B.headingText), !K) {
|
|
591
|
+
e > 1 && (P = s.setTimeout(() => X(e - 1), 250));
|
|
592
592
|
return;
|
|
593
593
|
}
|
|
594
|
-
|
|
594
|
+
ce(K) || (fe = !0, W(), oe(), le(), q(), J = () => q(), Y = () => q(), s.addEventListener("scroll", J, { passive: !0 }), s.addEventListener("resize", Y));
|
|
595
595
|
};
|
|
596
|
-
|
|
597
|
-
let
|
|
598
|
-
P &&= (s.clearTimeout(P), null), N &&= (s.clearTimeout(N), null),
|
|
599
|
-
|
|
596
|
+
X();
|
|
597
|
+
let pe = () => {
|
|
598
|
+
P &&= (s.clearTimeout(P), null), N &&= (s.clearTimeout(N), null), J &&= (s.removeEventListener("scroll", J), null), Y &&= (s.removeEventListener("resize", Y), null), V.getAttribute(E) === u && V.removeAttribute(E), fe && (Object.entries(ne).forEach(([e, t]) => {
|
|
599
|
+
V.style[e] = t;
|
|
600
600
|
}), Object.entries(re).forEach(([e, t]) => {
|
|
601
601
|
o.style[e] = t;
|
|
602
|
-
}),
|
|
602
|
+
}), ie.forEach(({ element: e, overflow: t }) => {
|
|
603
603
|
e.style.overflow = t;
|
|
604
604
|
})), s[T]?.instanceId === u && delete s[T];
|
|
605
605
|
};
|
|
606
606
|
return s[T] = {
|
|
607
607
|
instanceId: u,
|
|
608
608
|
iframe: o,
|
|
609
|
-
cleanup:
|
|
610
|
-
show:
|
|
611
|
-
hide:
|
|
612
|
-
},
|
|
609
|
+
cleanup: pe,
|
|
610
|
+
show: de,
|
|
611
|
+
hide: ue
|
|
612
|
+
}, pe;
|
|
613
613
|
}, j = (e, t, n) => {
|
|
614
614
|
let r = window.frameElement ? window.frameElement : null;
|
|
615
615
|
if (!r) return () => {};
|
|
@@ -926,7 +926,7 @@ var e = (e, t, n) => {
|
|
|
926
926
|
};
|
|
927
927
|
(() => {
|
|
928
928
|
let e = a.style;
|
|
929
|
-
e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.
|
|
929
|
+
e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.89"), 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";
|
|
930
930
|
let o = a.parentElement;
|
|
931
931
|
for (let e = 0; e < 6 && o && o !== i.body; e++) {
|
|
932
932
|
let t = r.getComputedStyle(o), n = !1;
|
|
@@ -1064,7 +1064,7 @@ var e = (e, t, n) => {
|
|
|
1064
1064
|
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;
|
|
1065
1065
|
return (() => {
|
|
1066
1066
|
let e = a.style;
|
|
1067
|
-
if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.
|
|
1067
|
+
if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.89"), c) {
|
|
1068
1068
|
let e = c.style;
|
|
1069
1069
|
e.width = "100%", e.height = "100%", e.margin = "0", e.textAlign = "left";
|
|
1070
1070
|
}
|
|
@@ -1091,7 +1091,7 @@ var e = (e, t, n) => {
|
|
|
1091
1091
|
stickyTop: 0,
|
|
1092
1092
|
stickyZIndex: 1e4,
|
|
1093
1093
|
stickyRespectHeader: !0,
|
|
1094
|
-
stickyHeaderSelector: "body > header, body > * > header, [role=\"banner\"]",
|
|
1094
|
+
stickyHeaderSelector: "#app > [data-ad-target=\"header\"], [data-ad-target=\"header\"] [data-ad-target=\"header-nav\"], body > header, body > * > header, [role=\"banner\"]",
|
|
1095
1095
|
stickyHeaderFallbackHeight: null,
|
|
1096
1096
|
onAdapt: null,
|
|
1097
1097
|
...e
|
|
@@ -1106,7 +1106,7 @@ var e = (e, t, n) => {
|
|
|
1106
1106
|
return () => {};
|
|
1107
1107
|
}
|
|
1108
1108
|
let a = (() => {
|
|
1109
|
-
let e = i.querySelector("#adspot-mobile-mbanner-2-above");
|
|
1109
|
+
let e = i.querySelector("#adspot-mobile-mbanner-1-above, #adspot-mobile-mbanner-2-above");
|
|
1110
1110
|
if (e) return e;
|
|
1111
1111
|
let t = n.parentElement;
|
|
1112
1112
|
for (; t && t !== i.body;) {
|
|
@@ -1254,39 +1254,39 @@ var e = (e, t, n) => {
|
|
|
1254
1254
|
let e = r.location.href;
|
|
1255
1255
|
for (let t of d) if (e.indexOf(t.site) >= 0) return t.config;
|
|
1256
1256
|
return u.nine;
|
|
1257
|
-
})(), 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,
|
|
1257
|
+
})(), 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 = a.closest("[data-ad-target=\"header-ad-mobile\"]"), x = !!(y && b && y === b), S = x ? r.getComputedStyle(y).marginTop : "", C = y ? y.getAttribute("style") : null, w = s ? s.getAttribute("style") : null, T = o ? o.getAttribute("style") : null, E = o ? o.querySelector("header") : null, D = E ? E.getAttribute("style") : null, O = E ? E.querySelector(".sc-5cbbddda-1") : null, ee = O ? O.getAttribute("style") : null, k = i.querySelector("footer"), A = k ? k.getAttribute("style") : null, j = o ? Array.from(o.children).map((e) => ({
|
|
1258
1258
|
el: e,
|
|
1259
1259
|
orig: e.getAttribute("style")
|
|
1260
|
-
})) : [],
|
|
1261
|
-
if (!e || e ===
|
|
1260
|
+
})) : [], M = null, N = null, P = null, F = null, I = null, L = null, R = null, z = null, B = [], V = null, te = null, ne = null, re = null, ie = null, H = null, ae = null, U = [], W = Number.isFinite(t.stickyDurationMs) && t.stickyDurationMs > 0, oe = Number.isFinite(t.stickyScrollDistance) && t.stickyScrollDistance > 0, se = !!(t.sticky && (W || oe)), G = "pending", ce = 0, le = 0, ue = null, de = null, K = null, q = null, J = null, Y = [], fe = Number.isFinite(t.stickyHeaderFallbackHeight) ? Math.max(0, t.stickyHeaderFallbackHeight) : null, X = f === u.afr, pe = X || x, Z = null, Q = null, me = (e) => {
|
|
1261
|
+
if (!e || e === ne || e === y || e === a) return !1;
|
|
1262
1262
|
let t = e.firstElementChild;
|
|
1263
|
-
if (!t || t !== e.lastElementChild || !t.classList.contains("container") || t.children.length > 0 || t.textContent && t.textContent.trim() || e.querySelector("
|
|
1263
|
+
if (!t || t !== e.lastElementChild || !t.classList.contains("container") || t.children.length > 0 || t.textContent && t.textContent.trim() || e.querySelector("[id^=\"adspot-mobile-mbanner-\"], iframe, [data-mf-slot], .adWrapper")) return !1;
|
|
1264
1264
|
let n = r.getComputedStyle(e);
|
|
1265
1265
|
return n.position === "fixed" || n.position === "sticky";
|
|
1266
|
-
},
|
|
1267
|
-
!e?.parentElement ||
|
|
1266
|
+
}, he = (e) => {
|
|
1267
|
+
!e?.parentElement || U.some((t) => t.shell === e) || (U.push({
|
|
1268
1268
|
shell: e,
|
|
1269
1269
|
parent: e.parentElement,
|
|
1270
1270
|
nextSibling: e.nextSibling
|
|
1271
1271
|
}), e.remove());
|
|
1272
|
-
},
|
|
1272
|
+
}, ge = () => {
|
|
1273
1273
|
for (let e of i.querySelectorAll(".container")) {
|
|
1274
1274
|
let t = e.parentElement;
|
|
1275
|
-
|
|
1275
|
+
me(t) && he(t);
|
|
1276
1276
|
}
|
|
1277
|
-
},
|
|
1277
|
+
}, _e = (e) => {
|
|
1278
1278
|
let t = e?.parentElement;
|
|
1279
1279
|
for (; t && t !== i.body && t !== i.documentElement;) {
|
|
1280
1280
|
let e = r.getComputedStyle(t);
|
|
1281
|
-
(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") && (
|
|
1281
|
+
(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") && (B.find((e) => e.el === t) || B.push({
|
|
1282
1282
|
el: t,
|
|
1283
1283
|
orig: t.getAttribute("style")
|
|
1284
1284
|
}), t.style.transform = "none", t.style.willChange = "auto", t.style.contain = "none", t.style.filter = "none", t.style.perspective = "none"), t = t.parentElement;
|
|
1285
1285
|
}
|
|
1286
|
-
},
|
|
1286
|
+
}, ve = () => {
|
|
1287
1287
|
let e = i.createElement("div");
|
|
1288
1288
|
return e.setAttribute("data-mf-billboard-mount", ""), e.style.height = `${t.billboardHeight}px`, e.style.minHeight = `${t.billboardHeight}px`, e.style.maxHeight = `${t.billboardHeight}px`, e.style.background = "transparent", e.style.overflow = "visible", e.style.position = "relative", e.style.width = "100%", e.style.padding = "0", e.style.margin = "0", e;
|
|
1289
|
-
},
|
|
1289
|
+
}, ye = () => {
|
|
1290
1290
|
if (!s || f !== u.wwos) return null;
|
|
1291
1291
|
let e = a.getBoundingClientRect().bottom, t = Array.from(s.querySelectorAll("div")).map((e) => {
|
|
1292
1292
|
let t = e.getBoundingClientRect(), n = r.getComputedStyle(e), i = e.querySelector("ul");
|
|
@@ -1299,7 +1299,7 @@ var e = (e, t, n) => {
|
|
|
1299
1299
|
};
|
|
1300
1300
|
}).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");
|
|
1301
1301
|
return t.length ? (t.sort((t, n) => Math.abs(t.rect.top - e) - Math.abs(n.rect.top - e)), t[0]) : null;
|
|
1302
|
-
}, $ = () =>
|
|
1302
|
+
}, $ = () => z || a, be = () => !t.stickyRespectHeader || !t.stickyHeaderSelector ? [] : Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map((e) => {
|
|
1303
1303
|
let t = e.getBoundingClientRect(), n = r.getComputedStyle(e), i = Number.parseInt(n.zIndex, 10);
|
|
1304
1304
|
return {
|
|
1305
1305
|
el: e,
|
|
@@ -1307,31 +1307,31 @@ var e = (e, t, n) => {
|
|
|
1307
1307
|
styles: n,
|
|
1308
1308
|
zIndex: Number.isFinite(i) ? i : null
|
|
1309
1309
|
};
|
|
1310
|
-
}).filter(({ rect: e, styles: t }) => e.width <= r.innerWidth * .5 || e.height <= 0 ? !1 : t.display !== "none" && t.visibility !== "hidden"),
|
|
1311
|
-
let e =
|
|
1310
|
+
}).filter(({ rect: e, styles: t }) => e.width <= r.innerWidth * .5 || e.height <= 0 ? !1 : t.display !== "none" && t.visibility !== "hidden"), xe = () => {
|
|
1311
|
+
let e = be().filter(({ rect: e, styles: n }) => n.position !== "fixed" && n.position !== "sticky" ? !1 : e.top <= t.stickyTop + 1 && e.bottom > t.stickyTop + 1);
|
|
1312
1312
|
return e.length ? (e.sort((e, t) => t.rect.bottom - e.rect.bottom), e[0]) : null;
|
|
1313
|
-
},
|
|
1314
|
-
let e =
|
|
1315
|
-
return e ? Math.max(t.stickyTop, Math.round(e.rect.bottom)) : Math.max(t.stickyTop,
|
|
1316
|
-
},
|
|
1317
|
-
let e =
|
|
1318
|
-
return e?.zIndex && e.zIndex > 2 ? Math.max(t.stickyZIndex, e.zIndex
|
|
1319
|
-
},
|
|
1320
|
-
|
|
1313
|
+
}, Se = () => {
|
|
1314
|
+
let e = xe();
|
|
1315
|
+
return e ? Math.max(t.stickyTop, Math.round(e.rect.bottom)) : Math.max(t.stickyTop, fe || t.stickyTop);
|
|
1316
|
+
}, Ce = () => {
|
|
1317
|
+
let e = xe();
|
|
1318
|
+
return e?.zIndex && e.zIndex > 2 ? Math.max(1, Math.min(t.stickyZIndex, e.zIndex - 1)) : t.stickyZIndex;
|
|
1319
|
+
}, we = ({ active: e, progress: t = 0, remainingMs: n = 0 }) => {
|
|
1320
|
+
L?.contentWindow && L.contentWindow.postMessage({
|
|
1321
1321
|
type: "mobilefireplace:sticky",
|
|
1322
1322
|
active: e,
|
|
1323
1323
|
progress: Math.max(0, Math.min(1, t)),
|
|
1324
1324
|
remainingMs: Math.max(0, Math.round(n))
|
|
1325
1325
|
}, "*");
|
|
1326
|
-
},
|
|
1326
|
+
}, Te = (e) => {
|
|
1327
1327
|
!e || Y.some((t) => t.el === e) || Y.push({
|
|
1328
1328
|
el: e,
|
|
1329
1329
|
value: e.style.getPropertyValue("z-index"),
|
|
1330
1330
|
priority: e.style.getPropertyPriority("z-index")
|
|
1331
1331
|
});
|
|
1332
|
-
},
|
|
1332
|
+
}, Ee = (e) => {
|
|
1333
1333
|
let t = new Set([$()].filter(Boolean));
|
|
1334
|
-
if (f === u.afr ||
|
|
1334
|
+
if (f === u.afr || H || p) {
|
|
1335
1335
|
[
|
|
1336
1336
|
a,
|
|
1337
1337
|
y,
|
|
@@ -1340,117 +1340,108 @@ var e = (e, t, n) => {
|
|
|
1340
1340
|
let e = $()?.parentElement;
|
|
1341
1341
|
for (; e && e !== i.body && e !== i.documentElement && (t.add(e), e.id !== "stickyLeaderboard");) e = e.parentElement;
|
|
1342
1342
|
}
|
|
1343
|
-
for (let n of t)
|
|
1344
|
-
},
|
|
1345
|
-
if (!X || !
|
|
1346
|
-
let e =
|
|
1343
|
+
for (let n of t) Te(n), n.style.setProperty("z-index", String(e), "important");
|
|
1344
|
+
}, De = () => X && (a.closest("#stickyLeaderboard") || i.querySelector("#stickyLeaderboard")) || $(), Oe = () => {
|
|
1345
|
+
if (!X || !L) return;
|
|
1346
|
+
let e = L.style;
|
|
1347
1347
|
e.left = "0px", e.width = "100vw";
|
|
1348
|
-
},
|
|
1349
|
-
if (!X || !
|
|
1350
|
-
let e =
|
|
1348
|
+
}, ke = () => {
|
|
1349
|
+
if (!X || !L || G === "active") return;
|
|
1350
|
+
let e = De();
|
|
1351
1351
|
if (!e) return;
|
|
1352
|
-
let t = e.getBoundingClientRect(), n =
|
|
1353
|
-
n.position = "absolute", n.top = `${Math.round(r.scrollY + t.top)}px`,
|
|
1354
|
-
},
|
|
1355
|
-
X && (
|
|
1356
|
-
K = null,
|
|
1352
|
+
let t = e.getBoundingClientRect(), n = L.style;
|
|
1353
|
+
n.position = "absolute", n.top = `${Math.round(r.scrollY + t.top)}px`, Oe(), n.setProperty("z-index", "6", "important"), L.removeAttribute("data-mf-sticky-active");
|
|
1354
|
+
}, Ae = () => {
|
|
1355
|
+
X && (ke(), K && r.cancelAnimationFrame(K), K = r.requestAnimationFrame(() => {
|
|
1356
|
+
K = null, ke();
|
|
1357
1357
|
}), q && r.clearTimeout(q), q = r.setTimeout(() => {
|
|
1358
|
-
q = null,
|
|
1358
|
+
q = null, ke();
|
|
1359
1359
|
}, 350));
|
|
1360
|
-
},
|
|
1361
|
-
!
|
|
1362
|
-
},
|
|
1363
|
-
if (!Z || !
|
|
1360
|
+
}, je = () => {
|
|
1361
|
+
!pe || !L || L.parentElement === i.body || (Z = L.parentElement, Q = L.nextSibling, i.body.appendChild(L));
|
|
1362
|
+
}, Me = () => {
|
|
1363
|
+
if (!Z || !L) {
|
|
1364
1364
|
Z = null, Q = null;
|
|
1365
1365
|
return;
|
|
1366
1366
|
}
|
|
1367
|
-
Q && Q.parentNode === Z ? Z.insertBefore(
|
|
1368
|
-
},
|
|
1367
|
+
Q && Q.parentNode === Z ? Z.insertBefore(L, Q) : Z.appendChild(L), Z = null, Q = null;
|
|
1368
|
+
}, Ne = () => {
|
|
1369
1369
|
for (let e = Y.length - 1; e >= 0; --e) {
|
|
1370
1370
|
let { el: t, value: n, priority: r } = Y[e];
|
|
1371
1371
|
n ? t.style.setProperty("z-index", n, r) : t.style.removeProperty("z-index");
|
|
1372
1372
|
}
|
|
1373
1373
|
Y.length = 0;
|
|
1374
|
-
}, je = () => {
|
|
1375
|
-
if (!P) return;
|
|
1376
|
-
me($());
|
|
1377
|
-
let e = $().getBoundingClientRect(), t = be();
|
|
1378
|
-
Ce(t), Oe();
|
|
1379
|
-
let n = P.style;
|
|
1380
|
-
n.position = "fixed", n.top = `${ye()}px`, X ? 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", "");
|
|
1381
|
-
}, Me = () => {
|
|
1382
|
-
if (!P) return;
|
|
1383
|
-
if (ke(), X) {
|
|
1384
|
-
De(), Ae();
|
|
1385
|
-
return;
|
|
1386
|
-
}
|
|
1387
|
-
let e = P.style;
|
|
1388
|
-
e.position = "relative", e.top = "", e.left = "", e.width = "100%", e.setProperty("z-index", "1"), Ae(), P.removeAttribute("data-mf-sticky-active");
|
|
1389
|
-
}, Ne = () => {
|
|
1390
|
-
le &&= (r.cancelAnimationFrame(le), null);
|
|
1391
1374
|
}, Pe = () => {
|
|
1392
|
-
|
|
1375
|
+
if (!L) return;
|
|
1376
|
+
_e($());
|
|
1377
|
+
let e = $().getBoundingClientRect(), t = Ce();
|
|
1378
|
+
Ee(t), je();
|
|
1379
|
+
let n = L.style;
|
|
1380
|
+
n.position = "fixed", n.top = `${Se()}px`, X ? Oe() : x ? (n.left = "0px", n.width = "100vw", n.setProperty("max-width", "100vw", "important")) : (n.left = `${Math.round(e.left)}px`, n.width = `${Math.round(e.width)}px`), n.setProperty("z-index", String(t), "important"), L.setAttribute("data-mf-sticky-active", "");
|
|
1393
1381
|
}, Fe = () => {
|
|
1394
|
-
if (
|
|
1382
|
+
if (!L) return;
|
|
1383
|
+
if (Me(), X) {
|
|
1384
|
+
Ae(), Ne();
|
|
1385
|
+
return;
|
|
1386
|
+
}
|
|
1387
|
+
let e = L.style;
|
|
1388
|
+
e.position = "relative", e.top = "", e.left = "", e.width = "100%", e.setProperty("z-index", "1"), Ne(), L.removeAttribute("data-mf-sticky-active");
|
|
1389
|
+
}, Ie = () => {
|
|
1390
|
+
de &&= (r.cancelAnimationFrame(de), null);
|
|
1391
|
+
}, Le = () => {
|
|
1392
|
+
if (ue === null) {
|
|
1395
1393
|
let e = $().getBoundingClientRect();
|
|
1396
|
-
|
|
1394
|
+
ue = Math.max(0, r.scrollY + e.top - Se());
|
|
1397
1395
|
}
|
|
1398
|
-
return
|
|
1399
|
-
},
|
|
1400
|
-
let e =
|
|
1396
|
+
return ue;
|
|
1397
|
+
}, Re = () => le + (G === "active" ? Math.max(0, r.performance.now() - ce) : 0), ze = () => Math.max(0, r.scrollY - Le()), Be = () => {
|
|
1398
|
+
let e = W ? Re() / t.stickyDurationMs : 0, n = oe ? ze() / t.stickyScrollDistance : 0;
|
|
1401
1399
|
return Math.max(e, n);
|
|
1402
|
-
},
|
|
1403
|
-
|
|
1400
|
+
}, Ve = () => W ? t.stickyDurationMs - Re() : 0, He = () => r.scrollY < Le() - 1, Ue = () => {
|
|
1401
|
+
G === "active" && (le = Re(), G = "paused", Ie(), Fe(), we({
|
|
1404
1402
|
active: !1,
|
|
1405
|
-
progress:
|
|
1406
|
-
remainingMs:
|
|
1403
|
+
progress: Be(),
|
|
1404
|
+
remainingMs: Ve()
|
|
1407
1405
|
}));
|
|
1408
|
-
},
|
|
1409
|
-
|
|
1410
|
-
},
|
|
1411
|
-
|
|
1406
|
+
}, We = () => {
|
|
1407
|
+
G !== "paused" || He() || (G = "active", ce = r.performance.now(), Pe(), Ke());
|
|
1408
|
+
}, Ge = () => {
|
|
1409
|
+
G !== "active" && G !== "paused" || (G === "active" && (le = Re()), G = "released", Ie(), Fe(), we({
|
|
1412
1410
|
active: !1,
|
|
1413
1411
|
progress: 1,
|
|
1414
1412
|
remainingMs: 0
|
|
1415
1413
|
}));
|
|
1416
|
-
},
|
|
1417
|
-
if (
|
|
1418
|
-
if (
|
|
1419
|
-
|
|
1414
|
+
}, Ke = () => {
|
|
1415
|
+
if (G !== "active") return;
|
|
1416
|
+
if (He()) {
|
|
1417
|
+
Ue();
|
|
1420
1418
|
return;
|
|
1421
1419
|
}
|
|
1422
|
-
let e =
|
|
1423
|
-
if (
|
|
1420
|
+
let e = Re(), n = ze(), i = W ? e / t.stickyDurationMs : 0, a = oe ? n / t.stickyScrollDistance : 0, o = Math.max(i, a), s = W ? t.stickyDurationMs - e : 0;
|
|
1421
|
+
if (Pe(), we({
|
|
1424
1422
|
active: !0,
|
|
1425
1423
|
progress: o,
|
|
1426
1424
|
remainingMs: s
|
|
1427
1425
|
}), i >= 1 || a >= 1) {
|
|
1428
|
-
|
|
1426
|
+
Ge();
|
|
1429
1427
|
return;
|
|
1430
1428
|
}
|
|
1431
|
-
|
|
1432
|
-
}, Ge = () => {
|
|
1433
|
-
if (!oe || U !== "pending" || !P) return;
|
|
1434
|
-
Pe();
|
|
1435
|
-
let e = $().getBoundingClientRect();
|
|
1436
|
-
ce = Math.max(0, r.scrollY + e.top - t.stickyTop), W = 0, U = "active", se = r.performance.now(), je(), We();
|
|
1437
|
-
}, Ke = () => {
|
|
1438
|
-
!oe || U !== "pending" || !P || $().getBoundingClientRect().top <= t.stickyTop && Ge();
|
|
1429
|
+
de = r.requestAnimationFrame(Ke);
|
|
1439
1430
|
}, qe = () => {
|
|
1440
|
-
|
|
1431
|
+
if (!se || G !== "pending" || !L) return;
|
|
1432
|
+
let e = $().getBoundingClientRect();
|
|
1433
|
+
ue = Math.max(0, r.scrollY + e.top - Se()), le = 0, G = "active", ce = r.performance.now(), Pe(), Ke();
|
|
1441
1434
|
}, Je = () => {
|
|
1442
|
-
|
|
1443
|
-
G = null;
|
|
1444
|
-
return;
|
|
1445
|
-
}
|
|
1446
|
-
Ke(), G = U === "pending" ? r.requestAnimationFrame(Je) : null;
|
|
1435
|
+
!se || G !== "pending" || !L || $().getBoundingClientRect().top <= Se() && qe();
|
|
1447
1436
|
}, Ye = () => {
|
|
1448
|
-
|
|
1437
|
+
G === "pending" ? Je() : G === "active" && He() ? Ue() : G === "paused" && We(), G !== "active" && Ae();
|
|
1438
|
+
}, Xe = () => {
|
|
1439
|
+
ge();
|
|
1449
1440
|
let e = n.parentElement;
|
|
1450
1441
|
for (; e && e !== i.body && e !== i.documentElement;) {
|
|
1451
1442
|
let t = r.getComputedStyle(e);
|
|
1452
1443
|
if (t.position === "fixed" || t.position === "sticky") {
|
|
1453
|
-
|
|
1444
|
+
H = e, ae = e.getAttribute("style");
|
|
1454
1445
|
break;
|
|
1455
1446
|
}
|
|
1456
1447
|
e = e.parentElement;
|
|
@@ -1458,10 +1449,10 @@ var e = (e, t, n) => {
|
|
|
1458
1449
|
let d = n.parentElement;
|
|
1459
1450
|
for (; d && d !== i.body && d !== i.documentElement;) {
|
|
1460
1451
|
let e = r.getComputedStyle(d);
|
|
1461
|
-
(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") && (
|
|
1452
|
+
(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") && (B.push({
|
|
1462
1453
|
el: d,
|
|
1463
1454
|
orig: d.getAttribute("style")
|
|
1464
|
-
}), d.style.transform = "none", d.style.willChange = "auto", d.style.contain = "none", d.style.filter = "none", d.style.perspective = "none"), e.overflow !== "visible" && (
|
|
1455
|
+
}), d.style.transform = "none", d.style.willChange = "auto", d.style.contain = "none", d.style.filter = "none", d.style.perspective = "none"), e.overflow !== "visible" && (B.find((e) => e.el === d) || B.push({
|
|
1465
1456
|
el: d,
|
|
1466
1457
|
orig: d.getAttribute("style")
|
|
1467
1458
|
}), d.style.overflow = "visible"), d = d.parentElement;
|
|
@@ -1469,20 +1460,20 @@ var e = (e, t, n) => {
|
|
|
1469
1460
|
let m = n.style;
|
|
1470
1461
|
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 {
|
|
1471
1462
|
let e = new URL(l);
|
|
1472
|
-
e.searchParams.set("mfRole", "wallpaper"),
|
|
1473
|
-
let t =
|
|
1474
|
-
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(
|
|
1463
|
+
e.searchParams.set("mfRole", "wallpaper"), R = i.createElement("iframe"), R.src = e.href, R.setAttribute("data-mf-wallpaper-iframe", ""), R.setAttribute("scrolling", "no"), R.setAttribute("frameborder", "0");
|
|
1464
|
+
let t = R.style;
|
|
1465
|
+
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(R, i.body.firstChild);
|
|
1475
1466
|
} catch (e) {
|
|
1476
1467
|
console.warn("[mobilefireplace] Could not create AFR wallpaper iframe:", e);
|
|
1477
1468
|
}
|
|
1478
|
-
if (a.setAttribute("poweredAC", "0.1.
|
|
1469
|
+
if (a.setAttribute("poweredAC", "0.1.89"), _) {
|
|
1479
1470
|
let e = _.style;
|
|
1480
1471
|
e.width = "100%", e.height = "0", e.overflow = "visible", e.position = "static", e.margin = "0";
|
|
1481
1472
|
}
|
|
1482
1473
|
let h = a.style;
|
|
1483
|
-
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", ""));
|
|
1474
|
+
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", x && S && S !== "0px" && (y.style.marginTop = S), y.setAttribute("data-mf-slot", ""));
|
|
1484
1475
|
let g = `max(${t.sideStripWidth}px, env(safe-area-inset-left))`, v = `max(${t.sideStripWidth}px, env(safe-area-inset-right))`;
|
|
1485
|
-
if (
|
|
1476
|
+
if (I = i.createElement("style"), I.id = "mobilefireplace-pac", I.textContent = `
|
|
1486
1477
|
/* Mobile Fireplace — powered-ad-config */
|
|
1487
1478
|
html, body {
|
|
1488
1479
|
background-color: transparent !important;
|
|
@@ -1505,6 +1496,11 @@ var e = (e, t, n) => {
|
|
|
1505
1496
|
margin-right: ${v} !important;
|
|
1506
1497
|
}
|
|
1507
1498
|
/* Header, nav and network nav stay full-width — no side margin, keep own background */
|
|
1499
|
+
#app > [data-ad-target="header"],
|
|
1500
|
+
#app [data-ad-target="header-nav"],
|
|
1501
|
+
#app [data-ad-target="header-nav"] nav,
|
|
1502
|
+
#app > [data-ad-target="header-ad-desktop"],
|
|
1503
|
+
#app > [data-ad-target="header-ad-mobile"],
|
|
1508
1504
|
body > * > header,
|
|
1509
1505
|
body > * > nav,
|
|
1510
1506
|
body > * > [data-network-nav],
|
|
@@ -1512,6 +1508,82 @@ var e = (e, t, n) => {
|
|
|
1512
1508
|
margin-left: 0 !important;
|
|
1513
1509
|
margin-right: 0 !important;
|
|
1514
1510
|
}
|
|
1511
|
+
#app > [data-ad-target="header"] {
|
|
1512
|
+
left: 0 !important;
|
|
1513
|
+
right: auto !important;
|
|
1514
|
+
width: 100vw !important;
|
|
1515
|
+
max-width: 100vw !important;
|
|
1516
|
+
margin: 0 !important;
|
|
1517
|
+
transform: none !important;
|
|
1518
|
+
z-index: 1075 !important;
|
|
1519
|
+
box-sizing: border-box !important;
|
|
1520
|
+
}
|
|
1521
|
+
#app > [data-ad-target="header"] [data-ad-target="header-nav"] {
|
|
1522
|
+
width: 100% !important;
|
|
1523
|
+
max-width: 100% !important;
|
|
1524
|
+
box-sizing: border-box !important;
|
|
1525
|
+
}
|
|
1526
|
+
#app > [data-ad-target="header-ad-mobile"] {
|
|
1527
|
+
background-color: transparent !important;
|
|
1528
|
+
box-sizing: border-box !important;
|
|
1529
|
+
overflow: visible !important;
|
|
1530
|
+
width: 100% !important;
|
|
1531
|
+
max-width: 100% !important;
|
|
1532
|
+
z-index: 1 !important;
|
|
1533
|
+
}
|
|
1534
|
+
#app > [data-ad-target="page-container"],
|
|
1535
|
+
#app > [data-ad-target="footer"] {
|
|
1536
|
+
box-sizing: border-box !important;
|
|
1537
|
+
}
|
|
1538
|
+
#app > [data-ad-target="page-container"] > div:first-of-type > main > div:first-child > section:first-child:has(> a:first-child:last-child) {
|
|
1539
|
+
margin-left: -16px !important;
|
|
1540
|
+
margin-right: -16px !important;
|
|
1541
|
+
width: calc(100% + 32px) !important;
|
|
1542
|
+
max-width: calc(100% + 32px) !important;
|
|
1543
|
+
box-sizing: border-box !important;
|
|
1544
|
+
}
|
|
1545
|
+
#app > [data-ad-target="page-container"] > div:first-of-type > main > div:first-child > section:first-child:has(article:first-child) {
|
|
1546
|
+
margin-left: -16px !important;
|
|
1547
|
+
margin-right: -16px !important;
|
|
1548
|
+
width: calc(100% + 32px) !important;
|
|
1549
|
+
max-width: calc(100% + 32px) !important;
|
|
1550
|
+
box-sizing: border-box !important;
|
|
1551
|
+
}
|
|
1552
|
+
#app > [data-ad-target="page-container"] > div:first-of-type > main > div:first-child > section:first-child:has(> a:first-child:last-child) > a {
|
|
1553
|
+
margin-left: 0 !important;
|
|
1554
|
+
margin-right: 0 !important;
|
|
1555
|
+
width: 100% !important;
|
|
1556
|
+
max-width: 100% !important;
|
|
1557
|
+
padding-top: 4px !important;
|
|
1558
|
+
padding-left: 4px !important;
|
|
1559
|
+
padding-right: 4px !important;
|
|
1560
|
+
box-sizing: border-box !important;
|
|
1561
|
+
}
|
|
1562
|
+
#app > [data-ad-target="page-container"] > div:first-of-type > main > div:first-child > section:first-child article:first-child figure {
|
|
1563
|
+
margin-left: 0 !important;
|
|
1564
|
+
margin-right: 0 !important;
|
|
1565
|
+
width: 100% !important;
|
|
1566
|
+
max-width: 100% !important;
|
|
1567
|
+
padding: 0 !important;
|
|
1568
|
+
box-sizing: border-box !important;
|
|
1569
|
+
overflow: hidden !important;
|
|
1570
|
+
}
|
|
1571
|
+
#app > [data-ad-target="page-container"] > div:first-of-type > main > div:first-child > section:first-child article:first-child figure a,
|
|
1572
|
+
#app > [data-ad-target="page-container"] > div:first-of-type > main > div:first-child > section:first-child article:first-child figure picture,
|
|
1573
|
+
#app > [data-ad-target="page-container"] > div:first-of-type > main > div:first-child > section:first-child article:first-child figure img {
|
|
1574
|
+
margin-left: 0 !important;
|
|
1575
|
+
margin-right: 0 !important;
|
|
1576
|
+
width: 100% !important;
|
|
1577
|
+
max-width: 100% !important;
|
|
1578
|
+
padding: 0 !important;
|
|
1579
|
+
box-sizing: border-box !important;
|
|
1580
|
+
}
|
|
1581
|
+
#app > [data-ad-target="page-container"] > div:first-of-type > main > div:first-child > section:first-child article:first-child > :not(figure) {
|
|
1582
|
+
padding-top: 4px !important;
|
|
1583
|
+
padding-left: 4px !important;
|
|
1584
|
+
padding-right: 4px !important;
|
|
1585
|
+
box-sizing: border-box !important;
|
|
1586
|
+
}
|
|
1515
1587
|
iframe[id^="google_ads_iframe_"][style*="position: fixed"]:not([data-mf-billboard-iframe]),
|
|
1516
1588
|
[data-mf-wallpaper-iframe] {
|
|
1517
1589
|
z-index: 0 !important;
|
|
@@ -1623,16 +1695,24 @@ var e = (e, t, n) => {
|
|
|
1623
1695
|
}
|
|
1624
1696
|
` : ""}
|
|
1625
1697
|
/* The mobilefireplace slot wrapper — transparent, full-width, no margins */
|
|
1626
|
-
[data-mf-slot],
|
|
1698
|
+
[data-mf-slot]:not([data-ad-target="header-ad-mobile"]),
|
|
1627
1699
|
[data-mf-slot] > * {
|
|
1628
1700
|
background-color: transparent !important;
|
|
1629
1701
|
z-index: auto !important;
|
|
1630
1702
|
margin: 0 !important;
|
|
1631
1703
|
padding: 0 !important;
|
|
1632
1704
|
}
|
|
1705
|
+
[data-mf-slot][data-ad-target="header-ad-mobile"] {
|
|
1706
|
+
background-color: transparent !important;
|
|
1707
|
+
z-index: 1 !important;
|
|
1708
|
+
margin-left: 0 !important;
|
|
1709
|
+
margin-right: 0 !important;
|
|
1710
|
+
margin-bottom: 0 !important;
|
|
1711
|
+
padding: 0 !important;
|
|
1712
|
+
}
|
|
1633
1713
|
/* The ad slot itself stays transparent */
|
|
1634
|
-
|
|
1635
|
-
|
|
1714
|
+
[id^="adspot-mobile-mbanner-"],
|
|
1715
|
+
[id^="adspot-mobile-mbanner-"] > * {
|
|
1636
1716
|
background-color: transparent !important;
|
|
1637
1717
|
z-index: auto !important;
|
|
1638
1718
|
margin: 0 !important;
|
|
@@ -1646,84 +1726,84 @@ var e = (e, t, n) => {
|
|
|
1646
1726
|
margin: 0 !important;
|
|
1647
1727
|
padding: 0 !important;
|
|
1648
1728
|
}
|
|
1649
|
-
`, i.head.appendChild(
|
|
1650
|
-
let e =
|
|
1651
|
-
e && (
|
|
1729
|
+
`, i.head.appendChild(I), f.setup && f.setup(i, a), f === u.wwos) {
|
|
1730
|
+
let e = ye();
|
|
1731
|
+
e && (M = e.el, N = M.getAttribute("style"), P = e.list, F = P ? P.getAttribute("style") : null, M.style.marginLeft = "10px", M.style.marginRight = "10px", M.style.width = "calc(100% - 20px)", P && (P.style.width = "100%"));
|
|
1652
1732
|
}
|
|
1653
|
-
if (o && f !== u.afr && (
|
|
1654
|
-
if (
|
|
1733
|
+
if (o && f !== u.afr && (H || p)) {
|
|
1734
|
+
if (H && (ne = c || y), l && l !== "about:blank") {
|
|
1655
1735
|
let e = new URL(l);
|
|
1656
|
-
e.searchParams.set("mfRole", "wallpaper"),
|
|
1657
|
-
let n =
|
|
1658
|
-
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(
|
|
1736
|
+
e.searchParams.set("mfRole", "wallpaper"), R = i.createElement("iframe"), R.src = e.href, R.setAttribute("data-mf-wallpaper-iframe", ""), R.setAttribute("scrolling", "no"), R.setAttribute("frameborder", "0");
|
|
1737
|
+
let n = R.style;
|
|
1738
|
+
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(R, i.body.firstChild);
|
|
1659
1739
|
}
|
|
1660
|
-
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",
|
|
1661
|
-
for (let { el: e } of
|
|
1662
|
-
|
|
1740
|
+
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", z = ve(), o.parentElement.insertBefore(z, o), H ? (H.style.position = "static", H.style.inset = "auto", H.style.height = "0", H.style.minHeight = "0", H.style.maxHeight = "0", H.style.overflow = "hidden", H.style.backgroundColor = "transparent", H.style.boxShadow = "none", H.style.border = "0", H.style.outline = "0", H.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";
|
|
1741
|
+
for (let { el: e } of j) e.style.backgroundColor = "transparent", e.style.boxShadow = "none", e.style.paddingLeft = "10px", e.style.paddingRight = "10px";
|
|
1742
|
+
E && (E.style.borderTop = "0", E.style.outline = "0", E.style.boxShadow = "none"), O && (O.style.borderBottom = "0"), k && (k.style.marginLeft = "14px", k.style.marginRight = "14px", k.style.position = "relative", k.style.zIndex = "2"), ge();
|
|
1663
1743
|
}
|
|
1664
|
-
|
|
1665
|
-
},
|
|
1744
|
+
z || (z = ve(), a.appendChild(z));
|
|
1745
|
+
}, Ze = null, Qe = null, $e = !1, et = () => {
|
|
1666
1746
|
let e = r.innerWidth, n = r.innerHeight;
|
|
1667
1747
|
if (e > n) {
|
|
1668
1748
|
let r = n / e, i = Math.round(t.billboardHeight * r);
|
|
1669
|
-
a.style.height = i + "px", a.style.minHeight = i + "px",
|
|
1670
|
-
} else a.style.height = t.billboardHeight + "px", a.style.minHeight = t.billboardHeight + "px",
|
|
1671
|
-
|
|
1749
|
+
a.style.height = i + "px", a.style.minHeight = i + "px", z && (z.style.height = i + "px", z.style.minHeight = i + "px", z.style.maxHeight = i + "px"), L && (L.style.height = i + "px");
|
|
1750
|
+
} else a.style.height = t.billboardHeight + "px", a.style.minHeight = t.billboardHeight + "px", z && (z.style.height = t.billboardHeight + "px", z.style.minHeight = t.billboardHeight + "px", z.style.maxHeight = t.billboardHeight + "px"), L && (L.style.height = t.billboardHeight + "px");
|
|
1751
|
+
G === "active" ? Pe() : Ae();
|
|
1672
1752
|
};
|
|
1673
|
-
if (
|
|
1753
|
+
if (Xe(), l && l !== "about:blank") try {
|
|
1674
1754
|
let e = new URL(l);
|
|
1675
|
-
e.searchParams.set("mfRole", "billboard"),
|
|
1676
|
-
let n =
|
|
1677
|
-
n.position = X ? "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 = X ? "6" : "1", X ? (
|
|
1755
|
+
e.searchParams.set("mfRole", "billboard"), L = i.createElement("iframe"), L.src = e.href, L.setAttribute("data-mf-billboard-iframe", ""), L.setAttribute("scrolling", "no"), L.setAttribute("frameborder", "0");
|
|
1756
|
+
let n = L.style;
|
|
1757
|
+
n.position = X ? "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 = X ? "6" : "1", X ? (L.setAttribute("data-mf-body-billboard", ""), i.body.appendChild(L), ke()) : (z || a).appendChild(L), se && (J = Ye, r.addEventListener("scroll", J, { passive: !0 }));
|
|
1678
1758
|
} catch (e) {
|
|
1679
1759
|
console.warn("[mobilefireplace] Could not create billboard iframe:", e);
|
|
1680
1760
|
}
|
|
1681
1761
|
r.__mfBridge = {
|
|
1682
1762
|
adapted: !1,
|
|
1683
|
-
wallpaperWindow:
|
|
1684
|
-
billboardIframe:
|
|
1763
|
+
wallpaperWindow: R?.contentWindow || n.contentWindow,
|
|
1764
|
+
billboardIframe: L,
|
|
1685
1765
|
billboardWindow: null
|
|
1686
|
-
},
|
|
1766
|
+
}, R && R.addEventListener("load", () => {
|
|
1687
1767
|
try {
|
|
1688
|
-
r.__mfBridge && (r.__mfBridge.wallpaperWindow =
|
|
1768
|
+
r.__mfBridge && (r.__mfBridge.wallpaperWindow = R.contentWindow);
|
|
1689
1769
|
} catch {}
|
|
1690
|
-
}),
|
|
1770
|
+
}), L && L.addEventListener("load", () => {
|
|
1691
1771
|
try {
|
|
1692
|
-
r.__mfBridge.billboardWindow =
|
|
1772
|
+
r.__mfBridge.billboardWindow = L.contentWindow;
|
|
1693
1773
|
} catch {}
|
|
1694
|
-
}),
|
|
1695
|
-
|
|
1696
|
-
}, window.addEventListener("pagehide",
|
|
1774
|
+
}), Ze = et, r.addEventListener("resize", Ze), et(), Qe = () => {
|
|
1775
|
+
tt();
|
|
1776
|
+
}, window.addEventListener("pagehide", Qe), window.addEventListener("beforeunload", Qe), t.onAdapt && r.requestAnimationFrame(() => {
|
|
1697
1777
|
r.__mfBridge.adapted = !0, t.onAdapt();
|
|
1698
1778
|
});
|
|
1699
|
-
let
|
|
1700
|
-
if (
|
|
1701
|
-
|
|
1779
|
+
let tt = () => {
|
|
1780
|
+
if (!$e) {
|
|
1781
|
+
$e = !0, Qe &&= (window.removeEventListener("pagehide", Qe), window.removeEventListener("beforeunload", Qe), null), Ze &&= (r.removeEventListener("resize", Ze), null), J &&= (r.removeEventListener("scroll", J), null), Ie(), K &&= (r.cancelAnimationFrame(K), null), q &&= (r.clearTimeout(q), null), we({
|
|
1702
1782
|
active: !1,
|
|
1703
1783
|
progress: 1,
|
|
1704
1784
|
remainingMs: 0
|
|
1705
|
-
}),
|
|
1785
|
+
}), I && I.parentNode && (I.parentNode.removeChild(I), I = null), L && L.parentNode && (L.parentNode.removeChild(L), L = null), Z = null, Q = null, z && z.parentNode && (z.parentNode.removeChild(z), z = null), R && R.parentNode && (R.parentNode.removeChild(R), R = null);
|
|
1706
1786
|
try {
|
|
1707
1787
|
delete r.__mfBridge;
|
|
1708
1788
|
} catch {}
|
|
1709
|
-
for (let e =
|
|
1710
|
-
let { shell: t, parent: n, nextSibling: r } =
|
|
1789
|
+
for (let e = U.length - 1; e >= 0; --e) {
|
|
1790
|
+
let { shell: t, parent: n, nextSibling: r } = U[e];
|
|
1711
1791
|
!t || !n || (r && r.parentNode === n ? n.insertBefore(t, r) : n.appendChild(t));
|
|
1712
1792
|
}
|
|
1713
|
-
|
|
1714
|
-
for (let { el: e, orig: t } of
|
|
1715
|
-
|
|
1716
|
-
for (let { el: e, orig: t } of
|
|
1717
|
-
|
|
1793
|
+
U.length = 0, V && (te && te.parentNode === V ? V.insertBefore(n, te) : V.appendChild(n), V = null, te = null), m ? n.setAttribute("style", m) : n.removeAttribute("style"), h || n.removeAttribute("data-mf-wallpaper-iframe");
|
|
1794
|
+
for (let { el: e, orig: t } of B) t ? e.setAttribute("style", t) : e.removeAttribute("style");
|
|
1795
|
+
B.length = 0, g ? a.setAttribute("style", g) : a.removeAttribute("style"), _ && (v ? _.setAttribute("style", v) : _.removeAttribute("style")), ne &&= (re && (ie && ie.parentNode === re ? re.insertBefore(ne, ie) : re.appendChild(ne), re = null, ie = null), null), y && (y.removeAttribute("data-mf-slot"), C ? y.setAttribute("style", C) : y.removeAttribute("style")), H && (ae ? H.setAttribute("style", ae) : H.removeAttribute("style"), H = null, ae = null);
|
|
1796
|
+
for (let { el: e, orig: t } of j) t ? e.setAttribute("style", t) : e.removeAttribute("style");
|
|
1797
|
+
P && (F ? P.setAttribute("style", F) : P.removeAttribute("style"), P = null, F = null), M && (N ? M.setAttribute("style", N) : M.removeAttribute("style"), M = null, N = null), o && (T ? o.setAttribute("style", T) : o.removeAttribute("style")), E && (D ? E.setAttribute("style", D) : E.removeAttribute("style")), O && (ee ? O.setAttribute("style", ee) : O.removeAttribute("style")), k && (A ? k.setAttribute("style", A) : k.removeAttribute("style")), s && (w ? s.setAttribute("style", w) : s.removeAttribute("style"));
|
|
1718
1798
|
}
|
|
1719
1799
|
};
|
|
1720
|
-
return
|
|
1800
|
+
return tt;
|
|
1721
1801
|
}, I = () => {};
|
|
1722
1802
|
function L({ adFormat: e = "", stickyOffset: t = 0, logoPosX: n = 0, logoHeight: r = 0, logoSmallHeight: i = 0, ...a } = {}) {
|
|
1723
1803
|
typeof I == "function" && I();
|
|
1724
1804
|
let o = () => {};
|
|
1725
1805
|
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;
|
|
1726
1806
|
}
|
|
1727
|
-
L.version = "0.1.
|
|
1807
|
+
L.version = "0.1.89";
|
|
1728
1808
|
//#endregion
|
|
1729
1809
|
export { L as default };
|