@jolibox/ads 1.4.6 → 1.4.7
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/afv/index.d.ts +7 -0
- package/dist/index.js +411 -396
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
var dn = Object.defineProperty, ln = Object.defineProperties;
|
|
2
2
|
var un = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var ze = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var Gt = Object.prototype.hasOwnProperty, Kt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var qt = (t, e, i) => e in t ? dn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, vt = (t, e) => {
|
|
6
6
|
for (var i in e || (e = {}))
|
|
7
|
-
|
|
7
|
+
Gt.call(e, i) && qt(t, i, e[i]);
|
|
8
8
|
if (ze)
|
|
9
9
|
for (var i of ze(e))
|
|
10
|
-
Kt.call(e, i) &&
|
|
10
|
+
Kt.call(e, i) && qt(t, i, e[i]);
|
|
11
11
|
return t;
|
|
12
12
|
}, zt = (t, e) => ln(t, un(e));
|
|
13
13
|
var Wt = (t, e) => {
|
|
14
14
|
var i = {};
|
|
15
15
|
for (var n in t)
|
|
16
|
-
|
|
16
|
+
Gt.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
|
|
17
17
|
if (t != null && ze)
|
|
18
18
|
for (var n of ze(t))
|
|
19
19
|
e.indexOf(n) < 0 && Kt.call(t, n) && (i[n] = t[n]);
|
|
20
20
|
return i;
|
|
21
21
|
};
|
|
22
22
|
import { options as Re, Component as cn, isValidElement as hn } from "preact";
|
|
23
|
-
import { useRef as _i, useLayoutEffect as fn, useEffect as Te, useMemo as vn, useState as
|
|
23
|
+
import { useRef as _i, useLayoutEffect as fn, useEffect as Te, useMemo as vn, useState as pe, useCallback as Et, render as fe, createRef as Jt } from "preact/compat";
|
|
24
24
|
import { registerCanIUseContext as yn, invokeNative as yt, offNative as gn, onNative as wn } from "@jolibox/native-bridge";
|
|
25
|
-
var mi = Object.defineProperty,
|
|
25
|
+
var mi = Object.defineProperty, An = Object.defineProperties, bn = Object.getOwnPropertyDescriptors, Ht = Object.getOwnPropertySymbols, pn = Object.prototype.hasOwnProperty, _n = Object.prototype.propertyIsEnumerable, Xt = (t, e, i) => e in t ? mi(t, e, {
|
|
26
26
|
enumerable: !0,
|
|
27
27
|
configurable: !0,
|
|
28
28
|
writable: !0,
|
|
@@ -30,11 +30,11 @@ var mi = Object.defineProperty, bn = Object.defineProperties, An = Object.getOwn
|
|
|
30
30
|
}) : t[e] = i, mn = (t, e) => {
|
|
31
31
|
for (var i in e || (e = {}))
|
|
32
32
|
pn.call(e, i) && Xt(t, i, e[i]);
|
|
33
|
-
if (
|
|
34
|
-
for (var i of
|
|
33
|
+
if (Ht)
|
|
34
|
+
for (var i of Ht(e))
|
|
35
35
|
_n.call(e, i) && Xt(t, i, e[i]);
|
|
36
36
|
return t;
|
|
37
|
-
}, Sn = (t, e) =>
|
|
37
|
+
}, Sn = (t, e) => An(t, bn(e)), En = (t, e) => {
|
|
38
38
|
for (var i in e)
|
|
39
39
|
mi(t, i, {
|
|
40
40
|
get: e[i],
|
|
@@ -293,8 +293,8 @@ var D = kt, Un = class {
|
|
|
293
293
|
if (this._listeners instanceof Le)
|
|
294
294
|
this._listeners.id === u.id && (this._listeners = void 0, this._size = 0, (c = (l = this.options) == null ? void 0 : l.onDidRemoveLastListener) == null || c.call(l));
|
|
295
295
|
else if (this._listeners) {
|
|
296
|
-
let
|
|
297
|
-
|
|
296
|
+
let v = this._listeners.indexOf(u);
|
|
297
|
+
v >= 0 && (this._listeners.splice(v, 1), this._size--, this._size === 0 && ((f = (h = this.options) == null ? void 0 : h.onDidRemoveLastListener) == null || f.call(h)));
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
};
|
|
@@ -365,15 +365,15 @@ var D = kt, Un = class {
|
|
|
365
365
|
}
|
|
366
366
|
}, xt = {};
|
|
367
367
|
En(xt, {
|
|
368
|
-
None: () =>
|
|
368
|
+
None: () => qn,
|
|
369
369
|
filter: () => Kn,
|
|
370
370
|
once: () => Ri,
|
|
371
|
-
toPromise: () =>
|
|
371
|
+
toPromise: () => Gn
|
|
372
372
|
});
|
|
373
|
-
var
|
|
373
|
+
var qn = () => (console.log("[Jolibox SDK] None Event"), () => {
|
|
374
374
|
console.log("[Jolibox SDK] None Event dispose");
|
|
375
375
|
});
|
|
376
|
-
function
|
|
376
|
+
function Gn(t) {
|
|
377
377
|
return new Promise((e) => Ri(t)(e));
|
|
378
378
|
}
|
|
379
379
|
function Ri(t) {
|
|
@@ -411,9 +411,9 @@ zn();
|
|
|
411
411
|
function Wn(t, e) {
|
|
412
412
|
let i = Math.min(t.length, e.length);
|
|
413
413
|
for (let n = 0; n < i; n++)
|
|
414
|
-
|
|
414
|
+
Jn(t[n], e[n]);
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function Jn(t, e) {
|
|
417
417
|
if (xn(e)) {
|
|
418
418
|
if (typeof t !== e)
|
|
419
419
|
throw new Error(`argument does not match constraint: typeof ${e}`);
|
|
@@ -522,10 +522,10 @@ var ei = class {
|
|
|
522
522
|
}
|
|
523
523
|
};
|
|
524
524
|
ei = Si([Ei], ei);
|
|
525
|
-
function
|
|
526
|
-
return (e =
|
|
525
|
+
function J(t, e, i) {
|
|
526
|
+
return (e = Hn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function Hn(t) {
|
|
529
529
|
var e = Xn(t, "string");
|
|
530
530
|
return typeof e == "symbol" ? e : e + "";
|
|
531
531
|
}
|
|
@@ -541,7 +541,7 @@ function Xn(t, e) {
|
|
|
541
541
|
}
|
|
542
542
|
return (e === "string" ? String : Number)(t);
|
|
543
543
|
}
|
|
544
|
-
const
|
|
544
|
+
const me = (t) => t ? function() {
|
|
545
545
|
try {
|
|
546
546
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
547
547
|
i[n] = arguments[n];
|
|
@@ -554,7 +554,7 @@ const _e = (t) => t ? function() {
|
|
|
554
554
|
};
|
|
555
555
|
class Yn {
|
|
556
556
|
constructor(e) {
|
|
557
|
-
|
|
557
|
+
J(this, "context", void 0), J(this, "continueCallback", void 0), J(this, "adIsShowingCallback", void 0), J(this, "isBeforeAdCalled", !1), J(this, "isBeforeRewardCalled", !1), J(this, "isAdDismissedCalled", !1), J(this, "isAdViewedCalled", !1), J(this, "isAfterAdCalled", !1), J(this, "currentProvider", void 0), J(this, "currentClientParams", void 0), J(this, "adsHasResponse", !1), J(this, "videoChecker", window.document.createElement("video")), J(this, "contextInfo", void 0), J(this, "wrapShowAdFn", (i) => () => {
|
|
558
558
|
var o, s, a;
|
|
559
559
|
this.adsHasResponse = !0;
|
|
560
560
|
let n = !1;
|
|
@@ -570,7 +570,7 @@ class Yn {
|
|
|
570
570
|
module: "game",
|
|
571
571
|
game_id: this.contextInfo.objectId
|
|
572
572
|
}), (a = this.adIsShowingCallback) == null || a.call(this, !0);
|
|
573
|
-
const r =
|
|
573
|
+
const r = me(i);
|
|
574
574
|
r == null || r();
|
|
575
575
|
}), this.context = e, this.contextInfo = e.getContextInfo();
|
|
576
576
|
}
|
|
@@ -595,7 +595,7 @@ class Yn {
|
|
|
595
595
|
var i, n, r, o;
|
|
596
596
|
if (this.adsHasResponse = !0, this.context.track("CallBeforeAd", this.paramsToTrack), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_AD", this.paramsToTrack), !this.isBeforeAdCalled) {
|
|
597
597
|
this.isBeforeAdCalled = !0;
|
|
598
|
-
const s =
|
|
598
|
+
const s = me(e);
|
|
599
599
|
s == null || s(), ((i = this.currentClientParams) == null ? void 0 : i.type) !== "reward" && ((n = this.adIsShowingCallback) == null || n.call(this, !0), ot() && this.context.track("mmp_ad_impression", {
|
|
600
600
|
ad_network: (o = (r = this.currentProvider) == null ? void 0 : r.name) != null ? o : "",
|
|
601
601
|
ad_format: "interstitial",
|
|
@@ -614,7 +614,7 @@ class Yn {
|
|
|
614
614
|
return () => {
|
|
615
615
|
if (this.adsHasResponse = !0, !this.isAdDismissedCalled) {
|
|
616
616
|
this.isAdDismissedCalled = !0;
|
|
617
|
-
const i =
|
|
617
|
+
const i = me(e);
|
|
618
618
|
i == null || i();
|
|
619
619
|
}
|
|
620
620
|
};
|
|
@@ -623,7 +623,7 @@ class Yn {
|
|
|
623
623
|
return () => {
|
|
624
624
|
if (this.adsHasResponse = !0, !this.isAdViewedCalled) {
|
|
625
625
|
this.isAdViewedCalled = !0;
|
|
626
|
-
const i =
|
|
626
|
+
const i = me(e);
|
|
627
627
|
i == null || i();
|
|
628
628
|
}
|
|
629
629
|
};
|
|
@@ -632,7 +632,7 @@ class Yn {
|
|
|
632
632
|
return () => {
|
|
633
633
|
if (this.adsHasResponse = !0, this.context.track("CallAfterAd", this.paramsToTrack), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AFTER_AD", this.paramsToTrack), !this.isAfterAdCalled) {
|
|
634
634
|
this.isAfterAdCalled = !0;
|
|
635
|
-
const i =
|
|
635
|
+
const i = me(e);
|
|
636
636
|
i == null || i();
|
|
637
637
|
}
|
|
638
638
|
};
|
|
@@ -657,7 +657,7 @@ class Yn {
|
|
|
657
657
|
case "ignored":
|
|
658
658
|
case "dismissed":
|
|
659
659
|
case "error": {
|
|
660
|
-
const h =
|
|
660
|
+
const h = me(e);
|
|
661
661
|
h == null || h(i), (u = this.adIsShowingCallback) == null || u.call(this, !1), (l = this.continueCallback) == null || l.call(this, [!1, i]);
|
|
662
662
|
break;
|
|
663
663
|
}
|
|
@@ -764,7 +764,7 @@ class er {
|
|
|
764
764
|
});
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function Je(t, e, i) {
|
|
768
768
|
return (e = tr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
769
769
|
}
|
|
770
770
|
function tr(t) {
|
|
@@ -785,7 +785,7 @@ function ir(t, e) {
|
|
|
785
785
|
}
|
|
786
786
|
class nr {
|
|
787
787
|
constructor(e) {
|
|
788
|
-
|
|
788
|
+
Je(this, "configs", null), Je(this, "firstRun", !0), Je(this, "context", void 0), Je(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
|
|
789
789
|
}
|
|
790
790
|
async init() {
|
|
791
791
|
try {
|
|
@@ -850,9 +850,9 @@ class sr {
|
|
|
850
850
|
}
|
|
851
851
|
this.push(n);
|
|
852
852
|
}), ae(this, "adUnit", async (n) => {
|
|
853
|
-
var
|
|
853
|
+
var v, y, w, g;
|
|
854
854
|
if (this.context.track("CallAdUnit", {
|
|
855
|
-
adFormat: (
|
|
855
|
+
adFormat: (y = (v = n.adFormat) == null ? void 0 : v.toString()) != null ? y : null,
|
|
856
856
|
fullWidthResponsive: (w = n.fullWidthResponsive) != null ? w : null
|
|
857
857
|
}), document.querySelector("#jolibox-ads")) {
|
|
858
858
|
console.warn("Ad unit already set, skipping");
|
|
@@ -875,15 +875,15 @@ class sr {
|
|
|
875
875
|
throw new Error("slot is required");
|
|
876
876
|
const c = typeof s == "object" && Array.isArray(s) ? s.join(", ") : s, h = document.createElement("ins");
|
|
877
877
|
if (h.className = "adsbygoogle", h.id = "jolibox-ads", h.style.display = "block", h.setAttribute("data-ad-client", this.initParams.clientId), h.setAttribute("data-ad-slot", l), c && h.setAttribute("data-ad-format", c), a && h.setAttribute("data-full-width-responsive", a), d && h.setAttribute("style", d), (g = this.contextInfo.testAdsMode) != null ? g : !1) {
|
|
878
|
-
const
|
|
879
|
-
|
|
878
|
+
const A = document.createElement("div");
|
|
879
|
+
A.style.position = "absolute", A.style.top = "0", A.style.left = "0", A.style.width = "100%", A.style.height = "100%", A.style.display = "flex", A.style.justifyContent = "center", A.style.alignItems = "center", A.style.backgroundColor = "rgba(0, 0, 0, 0.5)", A.style.color = "white", A.innerHTML = "Test Ad", h.style.position = "relative", u.appendChild(h), h.appendChild(A);
|
|
880
880
|
} else
|
|
881
881
|
u.appendChild(h), new MutationObserver((S) => {
|
|
882
|
-
S.forEach((
|
|
883
|
-
if (
|
|
884
|
-
const
|
|
882
|
+
S.forEach((p) => {
|
|
883
|
+
if (p.type === "attributes" && p.attributeName === "data-ad-status") {
|
|
884
|
+
const _ = h.getAttribute("data-ad-status");
|
|
885
885
|
this.context.track("AdSenseUnitStatusChanged", {
|
|
886
|
-
status:
|
|
886
|
+
status: _ != null ? _ : "null"
|
|
887
887
|
});
|
|
888
888
|
}
|
|
889
889
|
});
|
|
@@ -968,13 +968,13 @@ function $(t, e) {
|
|
|
968
968
|
function je(t, e, i) {
|
|
969
969
|
return t.slice(e, i);
|
|
970
970
|
}
|
|
971
|
-
function
|
|
971
|
+
function oe(t) {
|
|
972
972
|
return t.length;
|
|
973
973
|
}
|
|
974
974
|
function $t(t) {
|
|
975
975
|
return t.length;
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function He(t, e) {
|
|
978
978
|
return e.push(t), t;
|
|
979
979
|
}
|
|
980
980
|
function gr(t, e) {
|
|
@@ -990,19 +990,19 @@ function Be(t, e) {
|
|
|
990
990
|
function wr() {
|
|
991
991
|
return N;
|
|
992
992
|
}
|
|
993
|
-
function
|
|
993
|
+
function Ar() {
|
|
994
994
|
return N = X > 0 ? $(Oe, --X) : 0, Ce--, N === 10 && (Ce = 1, ct--), N;
|
|
995
995
|
}
|
|
996
996
|
function Z() {
|
|
997
997
|
return N = X < Di ? $(Oe, X++) : 0, Ce++, N === 10 && (Ce = 1, ct++), N;
|
|
998
998
|
}
|
|
999
|
-
function
|
|
999
|
+
function se() {
|
|
1000
1000
|
return $(Oe, X);
|
|
1001
1001
|
}
|
|
1002
1002
|
function Qe() {
|
|
1003
1003
|
return X;
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1005
|
+
function qe(t, e) {
|
|
1006
1006
|
return je(Oe, t, e);
|
|
1007
1007
|
}
|
|
1008
1008
|
function Ve(t) {
|
|
@@ -1038,23 +1038,23 @@ function Ve(t) {
|
|
|
1038
1038
|
return 0;
|
|
1039
1039
|
}
|
|
1040
1040
|
function Pi(t) {
|
|
1041
|
-
return ct = Ce = 1, Di =
|
|
1041
|
+
return ct = Ce = 1, Di = oe(Oe = t), X = 0, [];
|
|
1042
1042
|
}
|
|
1043
1043
|
function Ni(t) {
|
|
1044
1044
|
return Oe = "", t;
|
|
1045
1045
|
}
|
|
1046
1046
|
function Ze(t) {
|
|
1047
|
-
return Oi(
|
|
1047
|
+
return Oi(qe(X - 1, Ct(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1050
|
-
for (; (N =
|
|
1049
|
+
function br(t) {
|
|
1050
|
+
for (; (N = se()) && N < 33; )
|
|
1051
1051
|
Z();
|
|
1052
1052
|
return Ve(t) > 2 || Ve(N) > 3 ? "" : " ";
|
|
1053
1053
|
}
|
|
1054
1054
|
function pr(t, e) {
|
|
1055
1055
|
for (; --e && Z() && !(N < 48 || N > 102 || N > 57 && N < 65 || N > 70 && N < 97); )
|
|
1056
1056
|
;
|
|
1057
|
-
return
|
|
1057
|
+
return qe(t, Qe() + (e < 6 && se() == 32 && Z() == 32));
|
|
1058
1058
|
}
|
|
1059
1059
|
function Ct(t) {
|
|
1060
1060
|
for (; Z(); )
|
|
@@ -1076,111 +1076,111 @@ function Ct(t) {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
function _r(t, e) {
|
|
1078
1078
|
for (; Z() && t + N !== 57; )
|
|
1079
|
-
if (t + N === 84 &&
|
|
1079
|
+
if (t + N === 84 && se() === 47)
|
|
1080
1080
|
break;
|
|
1081
|
-
return "/*" +
|
|
1081
|
+
return "/*" + qe(e, X - 1) + "*" + ut(t === 47 ? t : Z());
|
|
1082
1082
|
}
|
|
1083
1083
|
function mr(t) {
|
|
1084
|
-
for (; !Ve(
|
|
1084
|
+
for (; !Ve(se()); )
|
|
1085
1085
|
Z();
|
|
1086
|
-
return
|
|
1086
|
+
return qe(t, X);
|
|
1087
1087
|
}
|
|
1088
1088
|
function Sr(t) {
|
|
1089
1089
|
return Ni(et("", null, null, null, [""], t = Pi(t), 0, [0], t));
|
|
1090
1090
|
}
|
|
1091
1091
|
function et(t, e, i, n, r, o, s, a, d) {
|
|
1092
|
-
for (var u = 0, l = 0, c = s, h = 0, f = 0,
|
|
1093
|
-
switch (
|
|
1092
|
+
for (var u = 0, l = 0, c = s, h = 0, f = 0, v = 0, y = 1, w = 1, g = 1, A = 0, S = "", p = r, _ = o, E = n, b = S; w; )
|
|
1093
|
+
switch (v = A, A = Z()) {
|
|
1094
1094
|
case 40:
|
|
1095
|
-
if (
|
|
1096
|
-
Tt(
|
|
1095
|
+
if (v != 108 && $(b, c - 1) == 58) {
|
|
1096
|
+
Tt(b += R(Ze(A), "&", "&\f"), "&\f") != -1 && (g = -1);
|
|
1097
1097
|
break;
|
|
1098
1098
|
}
|
|
1099
1099
|
case 34:
|
|
1100
1100
|
case 39:
|
|
1101
1101
|
case 91:
|
|
1102
|
-
|
|
1102
|
+
b += Ze(A);
|
|
1103
1103
|
break;
|
|
1104
1104
|
case 9:
|
|
1105
1105
|
case 10:
|
|
1106
1106
|
case 13:
|
|
1107
1107
|
case 32:
|
|
1108
|
-
|
|
1108
|
+
b += br(v);
|
|
1109
1109
|
break;
|
|
1110
1110
|
case 92:
|
|
1111
|
-
|
|
1111
|
+
b += pr(Qe() - 1, 7);
|
|
1112
1112
|
continue;
|
|
1113
1113
|
case 47:
|
|
1114
|
-
switch (
|
|
1114
|
+
switch (se()) {
|
|
1115
1115
|
case 42:
|
|
1116
1116
|
case 47:
|
|
1117
|
-
|
|
1117
|
+
He(Er(_r(Z(), Qe()), e, i), d);
|
|
1118
1118
|
break;
|
|
1119
1119
|
default:
|
|
1120
|
-
|
|
1120
|
+
b += "/";
|
|
1121
1121
|
}
|
|
1122
1122
|
break;
|
|
1123
|
-
case 123 *
|
|
1124
|
-
a[u++] =
|
|
1125
|
-
case 125 *
|
|
1123
|
+
case 123 * y:
|
|
1124
|
+
a[u++] = oe(b) * g;
|
|
1125
|
+
case 125 * y:
|
|
1126
1126
|
case 59:
|
|
1127
1127
|
case 0:
|
|
1128
|
-
switch (
|
|
1128
|
+
switch (A) {
|
|
1129
1129
|
case 0:
|
|
1130
1130
|
case 125:
|
|
1131
1131
|
w = 0;
|
|
1132
1132
|
case 59 + l:
|
|
1133
|
-
g == -1 && (
|
|
1133
|
+
g == -1 && (b = R(b, /\f/g, "")), f > 0 && oe(b) - c && He(f > 32 ? ii(b + ";", n, i, c - 1) : ii(R(b, " ", "") + ";", n, i, c - 2), d);
|
|
1134
1134
|
break;
|
|
1135
1135
|
case 59:
|
|
1136
|
-
|
|
1136
|
+
b += ";";
|
|
1137
1137
|
default:
|
|
1138
|
-
if (
|
|
1138
|
+
if (He(E = ti(b, e, i, u, l, r, a, S, p = [], _ = [], c), o), A === 123)
|
|
1139
1139
|
if (l === 0)
|
|
1140
|
-
et(
|
|
1140
|
+
et(b, e, E, E, p, o, c, a, _);
|
|
1141
1141
|
else
|
|
1142
|
-
switch (h === 99 && $(
|
|
1142
|
+
switch (h === 99 && $(b, 3) === 110 ? 100 : h) {
|
|
1143
1143
|
case 100:
|
|
1144
1144
|
case 108:
|
|
1145
1145
|
case 109:
|
|
1146
1146
|
case 115:
|
|
1147
|
-
et(t, E, E, n &&
|
|
1147
|
+
et(t, E, E, n && He(ti(t, E, E, 0, 0, r, a, S, r, p = [], c), _), r, _, c, a, n ? p : _);
|
|
1148
1148
|
break;
|
|
1149
1149
|
default:
|
|
1150
|
-
et(
|
|
1150
|
+
et(b, E, E, E, [""], _, 0, a, _);
|
|
1151
1151
|
}
|
|
1152
1152
|
}
|
|
1153
|
-
u = l = f = 0,
|
|
1153
|
+
u = l = f = 0, y = g = 1, S = b = "", c = s;
|
|
1154
1154
|
break;
|
|
1155
1155
|
case 58:
|
|
1156
|
-
c = 1 +
|
|
1156
|
+
c = 1 + oe(b), f = v;
|
|
1157
1157
|
default:
|
|
1158
|
-
if (
|
|
1159
|
-
if (
|
|
1160
|
-
--
|
|
1161
|
-
else if (
|
|
1158
|
+
if (y < 1) {
|
|
1159
|
+
if (A == 123)
|
|
1160
|
+
--y;
|
|
1161
|
+
else if (A == 125 && y++ == 0 && Ar() == 125)
|
|
1162
1162
|
continue;
|
|
1163
1163
|
}
|
|
1164
|
-
switch (
|
|
1164
|
+
switch (b += ut(A), A * y) {
|
|
1165
1165
|
case 38:
|
|
1166
|
-
g = l > 0 ? 1 : (
|
|
1166
|
+
g = l > 0 ? 1 : (b += "\f", -1);
|
|
1167
1167
|
break;
|
|
1168
1168
|
case 44:
|
|
1169
|
-
a[u++] = (
|
|
1169
|
+
a[u++] = (oe(b) - 1) * g, g = 1;
|
|
1170
1170
|
break;
|
|
1171
1171
|
case 64:
|
|
1172
|
-
|
|
1172
|
+
se() === 45 && (b += Ze(Z())), h = se(), l = c = oe(S = b += mr(Qe())), A++;
|
|
1173
1173
|
break;
|
|
1174
1174
|
case 45:
|
|
1175
|
-
|
|
1175
|
+
v === 45 && oe(b) == 2 && (y = 0);
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
1178
|
return o;
|
|
1179
1179
|
}
|
|
1180
1180
|
function ti(t, e, i, n, r, o, s, a, d, u, l) {
|
|
1181
|
-
for (var c = r - 1, h = r === 0 ? o : [""], f = $t(h),
|
|
1182
|
-
for (var g = 0,
|
|
1183
|
-
(S = Oi(
|
|
1181
|
+
for (var c = r - 1, h = r === 0 ? o : [""], f = $t(h), v = 0, y = 0, w = 0; v < n; ++v)
|
|
1182
|
+
for (var g = 0, A = je(t, c + 1, c = hr(y = s[v])), S = t; g < f; ++g)
|
|
1183
|
+
(S = Oi(y > 0 ? h[g] + " " + A : R(A, /&\f/g, h[g]))) && (d[w++] = S);
|
|
1184
1184
|
return ht(t, e, i, r === 0 ? Bt : a, d, u, l);
|
|
1185
1185
|
}
|
|
1186
1186
|
function Er(t, e, i) {
|
|
@@ -1209,7 +1209,7 @@ function kr(t, e, i, n) {
|
|
|
1209
1209
|
case Bt:
|
|
1210
1210
|
t.value = t.props.join(",");
|
|
1211
1211
|
}
|
|
1212
|
-
return
|
|
1212
|
+
return oe(i = xe(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
|
|
1213
1213
|
}
|
|
1214
1214
|
function Ir(t) {
|
|
1215
1215
|
var e = $t(t);
|
|
@@ -1231,22 +1231,22 @@ function Rr(t) {
|
|
|
1231
1231
|
};
|
|
1232
1232
|
}
|
|
1233
1233
|
var Tr = function(e, i, n) {
|
|
1234
|
-
for (var r = 0, o = 0; r = o, o =
|
|
1234
|
+
for (var r = 0, o = 0; r = o, o = se(), r === 38 && o === 12 && (i[n] = 1), !Ve(o); )
|
|
1235
1235
|
Z();
|
|
1236
|
-
return
|
|
1236
|
+
return qe(e, X);
|
|
1237
1237
|
}, Cr = function(e, i) {
|
|
1238
1238
|
var n = -1, r = 44;
|
|
1239
1239
|
do
|
|
1240
1240
|
switch (Ve(r)) {
|
|
1241
1241
|
case 0:
|
|
1242
|
-
r === 38 &&
|
|
1242
|
+
r === 38 && se() === 12 && (i[n] = 1), e[n] += Tr(X - 1, i, n);
|
|
1243
1243
|
break;
|
|
1244
1244
|
case 2:
|
|
1245
1245
|
e[n] += Ze(r);
|
|
1246
1246
|
break;
|
|
1247
1247
|
case 4:
|
|
1248
1248
|
if (r === 44) {
|
|
1249
|
-
e[++n] =
|
|
1249
|
+
e[++n] = se() === 58 ? "&\f" : "", i[n] = e[n].length;
|
|
1250
1250
|
break;
|
|
1251
1251
|
}
|
|
1252
1252
|
default:
|
|
@@ -1357,7 +1357,7 @@ function Li(t, e) {
|
|
|
1357
1357
|
case 5789:
|
|
1358
1358
|
case 5021:
|
|
1359
1359
|
case 4765:
|
|
1360
|
-
if (
|
|
1360
|
+
if (oe(t) - 1 - e > 6)
|
|
1361
1361
|
switch ($(t, e + 1)) {
|
|
1362
1362
|
case 109:
|
|
1363
1363
|
if ($(t, e + 4) !== 45)
|
|
@@ -1372,7 +1372,7 @@ function Li(t, e) {
|
|
|
1372
1372
|
if ($(t, e + 1) !== 115)
|
|
1373
1373
|
break;
|
|
1374
1374
|
case 6444:
|
|
1375
|
-
switch ($(t,
|
|
1375
|
+
switch ($(t, oe(t) - 3 - (~Tt(t, "!important") && 10))) {
|
|
1376
1376
|
case 107:
|
|
1377
1377
|
return R(t, ":", ":" + x) + t;
|
|
1378
1378
|
case 101:
|
|
@@ -1427,9 +1427,9 @@ var Nr = function(e, i, n, r) {
|
|
|
1427
1427
|
var i = e.key;
|
|
1428
1428
|
if (i === "css") {
|
|
1429
1429
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
1430
|
-
Array.prototype.forEach.call(n, function(
|
|
1431
|
-
var w =
|
|
1432
|
-
w.indexOf(" ") !== -1 && (document.head.appendChild(
|
|
1430
|
+
Array.prototype.forEach.call(n, function(y) {
|
|
1431
|
+
var w = y.getAttribute("data-emotion");
|
|
1432
|
+
w.indexOf(" ") !== -1 && (document.head.appendChild(y), y.setAttribute("data-s", ""));
|
|
1433
1433
|
});
|
|
1434
1434
|
}
|
|
1435
1435
|
var r = e.stylisPlugins || Lr, o = {}, s, a = [];
|
|
@@ -1437,24 +1437,24 @@ var Nr = function(e, i, n, r) {
|
|
|
1437
1437
|
// this means we will ignore elements which don't have a space in them which
|
|
1438
1438
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
1439
1439
|
document.querySelectorAll('style[data-emotion^="' + i + ' "]'),
|
|
1440
|
-
function(
|
|
1441
|
-
for (var w =
|
|
1440
|
+
function(y) {
|
|
1441
|
+
for (var w = y.getAttribute("data-emotion").split(" "), g = 1; g < w.length; g++)
|
|
1442
1442
|
o[w[g]] = !0;
|
|
1443
|
-
a.push(
|
|
1443
|
+
a.push(y);
|
|
1444
1444
|
}
|
|
1445
1445
|
);
|
|
1446
1446
|
var d, u = [Dr, Pr];
|
|
1447
1447
|
{
|
|
1448
|
-
var l, c = [kr, xr(function(
|
|
1449
|
-
l.insert(
|
|
1448
|
+
var l, c = [kr, xr(function(y) {
|
|
1449
|
+
l.insert(y);
|
|
1450
1450
|
})], h = Ir(u.concat(r, c)), f = function(w) {
|
|
1451
1451
|
return xe(Sr(w), h);
|
|
1452
1452
|
};
|
|
1453
|
-
d = function(w, g,
|
|
1454
|
-
l =
|
|
1453
|
+
d = function(w, g, A, S) {
|
|
1454
|
+
l = A, f(w ? w + "{" + g.styles + "}" : g.styles), S && (v.inserted[g.name] = !0);
|
|
1455
1455
|
};
|
|
1456
1456
|
}
|
|
1457
|
-
var
|
|
1457
|
+
var v = {
|
|
1458
1458
|
key: i,
|
|
1459
1459
|
sheet: new lr({
|
|
1460
1460
|
key: i,
|
|
@@ -1469,7 +1469,7 @@ var Nr = function(e, i, n, r) {
|
|
|
1469
1469
|
registered: {},
|
|
1470
1470
|
insert: d
|
|
1471
1471
|
};
|
|
1472
|
-
return
|
|
1472
|
+
return v.sheet.hydrate(a), v;
|
|
1473
1473
|
};
|
|
1474
1474
|
function Mr(t) {
|
|
1475
1475
|
for (var e = 0, i, n = 0, r = t.length; r >= 4; ++n, r -= 4)
|
|
@@ -1629,7 +1629,7 @@ function jr(t, e, i) {
|
|
|
1629
1629
|
return n;
|
|
1630
1630
|
}
|
|
1631
1631
|
var si = /label:\s*([^\s;{]+)\s*(;|$)/g, ge;
|
|
1632
|
-
function
|
|
1632
|
+
function At(t, e, i) {
|
|
1633
1633
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
1634
1634
|
return t[0];
|
|
1635
1635
|
var n = !0, r = "";
|
|
@@ -1670,7 +1670,7 @@ var Vr = function(e, i, n) {
|
|
|
1670
1670
|
// so we don't have to add it to registered cache.
|
|
1671
1671
|
// this improves memory usage since we can avoid storing the whole style string
|
|
1672
1672
|
e.registered[r] === void 0 && (e.registered[r] = i.styles);
|
|
1673
|
-
},
|
|
1673
|
+
}, qr = function(e, i, n) {
|
|
1674
1674
|
Vr(e, i);
|
|
1675
1675
|
var r = e.key + "-" + i.name;
|
|
1676
1676
|
if (e.inserted[i.name] === void 0) {
|
|
@@ -1688,7 +1688,7 @@ function di(t, e, i) {
|
|
|
1688
1688
|
var n = [], r = Mi(t, n, i);
|
|
1689
1689
|
return n.length < 2 ? i : r + e(n);
|
|
1690
1690
|
}
|
|
1691
|
-
var
|
|
1691
|
+
var Gr = function(e) {
|
|
1692
1692
|
var i = Br(e);
|
|
1693
1693
|
i.sheet.speedy = function(a) {
|
|
1694
1694
|
this.isSpeedy = a;
|
|
@@ -1696,12 +1696,12 @@ var qr = function(e) {
|
|
|
1696
1696
|
var n = function() {
|
|
1697
1697
|
for (var d = arguments.length, u = new Array(d), l = 0; l < d; l++)
|
|
1698
1698
|
u[l] = arguments[l];
|
|
1699
|
-
var c =
|
|
1700
|
-
return
|
|
1699
|
+
var c = At(u, i.registered, void 0);
|
|
1700
|
+
return qr(i, c), i.key + "-" + c.name;
|
|
1701
1701
|
}, r = function() {
|
|
1702
1702
|
for (var d = arguments.length, u = new Array(d), l = 0; l < d; l++)
|
|
1703
1703
|
u[l] = arguments[l];
|
|
1704
|
-
var c =
|
|
1704
|
+
var c = At(u, i.registered), h = "animation-" + c.name;
|
|
1705
1705
|
return ai(i, {
|
|
1706
1706
|
name: c.name,
|
|
1707
1707
|
styles: "@keyframes " + h + "{" + c.styles + "}"
|
|
@@ -1709,7 +1709,7 @@ var qr = function(e) {
|
|
|
1709
1709
|
}, o = function() {
|
|
1710
1710
|
for (var d = arguments.length, u = new Array(d), l = 0; l < d; l++)
|
|
1711
1711
|
u[l] = arguments[l];
|
|
1712
|
-
var c =
|
|
1712
|
+
var c = At(u, i.registered);
|
|
1713
1713
|
ai(i, c);
|
|
1714
1714
|
}, s = function() {
|
|
1715
1715
|
for (var d = arguments.length, u = new Array(d), l = 0; l < d; l++)
|
|
@@ -1759,9 +1759,9 @@ var qr = function(e) {
|
|
|
1759
1759
|
}
|
|
1760
1760
|
}
|
|
1761
1761
|
return i;
|
|
1762
|
-
}, zr =
|
|
1762
|
+
}, zr = Gr({
|
|
1763
1763
|
key: "css"
|
|
1764
|
-
}),
|
|
1764
|
+
}), q = zr.css, Ot, Q, bt, li, ui = 0, $i = [], B = Re, ci = B.__b, hi = B.__r, fi = B.diffed, vi = B.__c, yi = B.unmount, gi = B.__;
|
|
1765
1765
|
function Wr(t, e) {
|
|
1766
1766
|
B.__h && B.__h(Q, t, ui || e), ui = 0;
|
|
1767
1767
|
var i = Q.__H || (Q.__H = { __: [], __h: [] });
|
|
@@ -1771,7 +1771,7 @@ function Fi(t, e) {
|
|
|
1771
1771
|
var i = Wr(Ot++, 7);
|
|
1772
1772
|
return Xr(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
|
|
1773
1773
|
}
|
|
1774
|
-
function
|
|
1774
|
+
function Jr() {
|
|
1775
1775
|
for (var t; t = $i.shift(); )
|
|
1776
1776
|
if (t.__P && t.__H)
|
|
1777
1777
|
try {
|
|
@@ -1787,15 +1787,15 @@ B.__b = function(t) {
|
|
|
1787
1787
|
}, B.__r = function(t) {
|
|
1788
1788
|
hi && hi(t), Ot = 0;
|
|
1789
1789
|
var e = (Q = t.__c).__H;
|
|
1790
|
-
e && (
|
|
1790
|
+
e && (bt === Q ? (e.__h = [], Q.__h = [], e.__.forEach(function(i) {
|
|
1791
1791
|
i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
|
|
1792
|
-
})) : (e.__h.forEach(tt), e.__h.forEach(Dt), e.__h = [], Ot = 0)),
|
|
1792
|
+
})) : (e.__h.forEach(tt), e.__h.forEach(Dt), e.__h = [], Ot = 0)), bt = Q;
|
|
1793
1793
|
}, B.diffed = function(t) {
|
|
1794
1794
|
fi && fi(t);
|
|
1795
1795
|
var e = t.__c;
|
|
1796
|
-
e && e.__H && (e.__H.__h.length && ($i.push(e) !== 1 && li === B.requestAnimationFrame || ((li = B.requestAnimationFrame) ||
|
|
1796
|
+
e && e.__H && (e.__H.__h.length && ($i.push(e) !== 1 && li === B.requestAnimationFrame || ((li = B.requestAnimationFrame) || Hr)(Jr)), e.__H.__.forEach(function(i) {
|
|
1797
1797
|
i.u && (i.__H = i.u), i.u = void 0;
|
|
1798
|
-
})),
|
|
1798
|
+
})), bt = Q = null;
|
|
1799
1799
|
}, B.__c = function(t, e) {
|
|
1800
1800
|
e.some(function(i) {
|
|
1801
1801
|
try {
|
|
@@ -1820,7 +1820,7 @@ B.__b = function(t) {
|
|
|
1820
1820
|
}), i.__H = void 0, e && B.__e(e, i.__v));
|
|
1821
1821
|
};
|
|
1822
1822
|
var wi = typeof requestAnimationFrame == "function";
|
|
1823
|
-
function
|
|
1823
|
+
function Hr(t) {
|
|
1824
1824
|
var e, i = function() {
|
|
1825
1825
|
clearTimeout(n), wi && cancelAnimationFrame(e), setTimeout(t);
|
|
1826
1826
|
}, n = setTimeout(i, 100);
|
|
@@ -1961,7 +1961,7 @@ function Vi(t) {
|
|
|
1961
1961
|
}
|
|
1962
1962
|
}
|
|
1963
1963
|
}
|
|
1964
|
-
function
|
|
1964
|
+
function qi(t) {
|
|
1965
1965
|
for (var e = t.s, i = void 0; e !== void 0; ) {
|
|
1966
1966
|
var n = e.p;
|
|
1967
1967
|
e.i === -1 ? (e.S.U(e), n !== void 0 && (n.n = e.n), e.n !== void 0 && (e.n.p = n)) : i = e, e.S.n = e.r, e.r !== void 0 && (e.r = void 0), e = n;
|
|
@@ -1986,7 +1986,7 @@ function De(t) {
|
|
|
1986
1986
|
} catch (i) {
|
|
1987
1987
|
this.v = i, this.f |= 16, this.i++;
|
|
1988
1988
|
}
|
|
1989
|
-
return T = t,
|
|
1989
|
+
return T = t, qi(this), this.f &= -2, !0;
|
|
1990
1990
|
};
|
|
1991
1991
|
De.prototype.S = function(t) {
|
|
1992
1992
|
if (this.t === void 0) {
|
|
@@ -2021,7 +2021,7 @@ Object.defineProperty(De.prototype, "value", { get: function() {
|
|
|
2021
2021
|
function Fe(t) {
|
|
2022
2022
|
return new De(t);
|
|
2023
2023
|
}
|
|
2024
|
-
function
|
|
2024
|
+
function Gi(t) {
|
|
2025
2025
|
var e = t.u;
|
|
2026
2026
|
if (t.u = void 0, typeof e == "function") {
|
|
2027
2027
|
we++;
|
|
@@ -2039,17 +2039,17 @@ function qi(t) {
|
|
|
2039
2039
|
function Ft(t) {
|
|
2040
2040
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
2041
2041
|
e.S.U(e);
|
|
2042
|
-
t.x = void 0, t.s = void 0,
|
|
2042
|
+
t.x = void 0, t.s = void 0, Gi(t);
|
|
2043
2043
|
}
|
|
2044
2044
|
function Qr(t) {
|
|
2045
2045
|
if (T !== this)
|
|
2046
2046
|
throw new Error("Out-of-order effect");
|
|
2047
|
-
|
|
2047
|
+
qi(this), T = t, this.f &= -2, 8 & this.f && Ft(this), ft();
|
|
2048
2048
|
}
|
|
2049
|
-
function
|
|
2049
|
+
function Ge(t) {
|
|
2050
2050
|
this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
|
|
2051
2051
|
}
|
|
2052
|
-
|
|
2052
|
+
Ge.prototype.c = function() {
|
|
2053
2053
|
var t = this.S();
|
|
2054
2054
|
try {
|
|
2055
2055
|
if (8 & this.f || this.x === void 0)
|
|
@@ -2060,21 +2060,21 @@ qe.prototype.c = function() {
|
|
|
2060
2060
|
t();
|
|
2061
2061
|
}
|
|
2062
2062
|
};
|
|
2063
|
-
|
|
2063
|
+
Ge.prototype.S = function() {
|
|
2064
2064
|
if (1 & this.f)
|
|
2065
2065
|
throw new Error("Cycle detected");
|
|
2066
|
-
this.f |= 1, this.f &= -9,
|
|
2066
|
+
this.f |= 1, this.f &= -9, Gi(this), Vi(this), we++;
|
|
2067
2067
|
var t = T;
|
|
2068
2068
|
return T = this, Qr.bind(this, t);
|
|
2069
2069
|
};
|
|
2070
|
-
|
|
2070
|
+
Ge.prototype.N = function() {
|
|
2071
2071
|
2 & this.f || (this.f |= 2, this.o = $e, $e = this);
|
|
2072
2072
|
};
|
|
2073
|
-
|
|
2073
|
+
Ge.prototype.d = function() {
|
|
2074
2074
|
this.f |= 8, 1 & this.f || Ft(this);
|
|
2075
2075
|
};
|
|
2076
2076
|
function Ke(t) {
|
|
2077
|
-
var e = new
|
|
2077
|
+
var e = new Ge(t);
|
|
2078
2078
|
try {
|
|
2079
2079
|
e.c();
|
|
2080
2080
|
} catch (i) {
|
|
@@ -2094,7 +2094,7 @@ function lt(t) {
|
|
|
2094
2094
|
pt && pt(), pt = t && t.S();
|
|
2095
2095
|
}
|
|
2096
2096
|
function Wi(t) {
|
|
2097
|
-
var e = this, i = t.data, n =
|
|
2097
|
+
var e = this, i = t.data, n = Ji(i);
|
|
2098
2098
|
n.value = i;
|
|
2099
2099
|
var r = Fi(function() {
|
|
2100
2100
|
for (var a = e, d = e.__v; d = d.__; )
|
|
@@ -2108,7 +2108,7 @@ function Wi(t) {
|
|
|
2108
2108
|
}), l = Fe(function() {
|
|
2109
2109
|
return !Array.isArray(u.value) && !hn(u.value);
|
|
2110
2110
|
}), c = Ke(function() {
|
|
2111
|
-
if (this.N =
|
|
2111
|
+
if (this.N = Hi, l.value) {
|
|
2112
2112
|
var f = u.value;
|
|
2113
2113
|
a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = f);
|
|
2114
2114
|
}
|
|
@@ -2176,7 +2176,7 @@ function Zr(t, e, i, n) {
|
|
|
2176
2176
|
return { o: function(s, a) {
|
|
2177
2177
|
o.value = s, n = a;
|
|
2178
2178
|
}, d: Ke(function() {
|
|
2179
|
-
this.N =
|
|
2179
|
+
this.N = Hi;
|
|
2180
2180
|
var s = o.value.value;
|
|
2181
2181
|
n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
|
|
2182
2182
|
}) };
|
|
@@ -2224,7 +2224,7 @@ cn.prototype.shouldComponentUpdate = function(t, e) {
|
|
|
2224
2224
|
return !0;
|
|
2225
2225
|
return !1;
|
|
2226
2226
|
};
|
|
2227
|
-
function
|
|
2227
|
+
function Ji(t) {
|
|
2228
2228
|
return Fi(function() {
|
|
2229
2229
|
return k(t);
|
|
2230
2230
|
}, []);
|
|
@@ -2240,10 +2240,10 @@ function to() {
|
|
|
2240
2240
|
Ki.call(t);
|
|
2241
2241
|
});
|
|
2242
2242
|
}
|
|
2243
|
-
function
|
|
2243
|
+
function Hi() {
|
|
2244
2244
|
zi.push(this) === 1 && (Re.requestAnimationFrame || eo)(to);
|
|
2245
2245
|
}
|
|
2246
|
-
const M =
|
|
2246
|
+
const M = q`
|
|
2247
2247
|
inset: 0;
|
|
2248
2248
|
clear: none;
|
|
2249
2249
|
float: none;
|
|
@@ -2278,7 +2278,7 @@ function io(t, e) {
|
|
|
2278
2278
|
}, [e]);
|
|
2279
2279
|
}
|
|
2280
2280
|
var no = 0;
|
|
2281
|
-
function
|
|
2281
|
+
function m(t, e, i, n, r, o) {
|
|
2282
2282
|
e || (e = {});
|
|
2283
2283
|
var s, a, d = e;
|
|
2284
2284
|
if ("ref" in d)
|
|
@@ -2290,7 +2290,7 @@ function _(t, e, i, n, r, o) {
|
|
|
2290
2290
|
d[a] === void 0 && (d[a] = s[a]);
|
|
2291
2291
|
return Re.vnode && Re.vnode(u), u;
|
|
2292
2292
|
}
|
|
2293
|
-
const ro =
|
|
2293
|
+
const ro = q`
|
|
2294
2294
|
${M}
|
|
2295
2295
|
position: fixed;
|
|
2296
2296
|
top: 0;
|
|
@@ -2365,55 +2365,55 @@ const ro = G`
|
|
|
2365
2365
|
}
|
|
2366
2366
|
}
|
|
2367
2367
|
}
|
|
2368
|
-
`,
|
|
2368
|
+
`, ne = k(null), Nt = k(""), Lt = k(""), it = k(!1), oo = () => {
|
|
2369
2369
|
var t;
|
|
2370
|
-
(t =
|
|
2370
|
+
(t = ne.value) == null || t.call(ne, !1);
|
|
2371
2371
|
}, so = () => {
|
|
2372
2372
|
var t;
|
|
2373
|
-
(t =
|
|
2373
|
+
(t = ne.value) == null || t.call(ne, !0);
|
|
2374
2374
|
}, ao = async (t) => {
|
|
2375
2375
|
let {
|
|
2376
2376
|
title: e,
|
|
2377
2377
|
content: i
|
|
2378
2378
|
} = t;
|
|
2379
|
-
return
|
|
2380
|
-
|
|
2379
|
+
return ne.value && (ne.value(!1), P(() => {
|
|
2380
|
+
ne.value = null, it.value = !1;
|
|
2381
2381
|
})), P(() => {
|
|
2382
2382
|
Nt.value = e || "", Lt.value = i || "", it.value = !0;
|
|
2383
2383
|
}), new Promise((n) => {
|
|
2384
|
-
|
|
2384
|
+
ne.value = (r) => {
|
|
2385
2385
|
P(() => {
|
|
2386
|
-
|
|
2386
|
+
ne.value = null, it.value = !1, Nt.value = "", Lt.value = "";
|
|
2387
2387
|
}), n(r);
|
|
2388
2388
|
};
|
|
2389
2389
|
});
|
|
2390
|
-
}, lo = () => it.value ?
|
|
2390
|
+
}, lo = () => it.value ? m("div", {
|
|
2391
2391
|
className: ro,
|
|
2392
|
-
children:
|
|
2392
|
+
children: m("div", {
|
|
2393
2393
|
className: "card-wrapper",
|
|
2394
|
-
children: [
|
|
2394
|
+
children: [m("div", {
|
|
2395
2395
|
className: "body",
|
|
2396
|
-
children: [
|
|
2396
|
+
children: [m("div", {
|
|
2397
2397
|
className: "title",
|
|
2398
2398
|
children: Nt.value
|
|
2399
|
-
}),
|
|
2399
|
+
}), m("div", {
|
|
2400
2400
|
className: "content",
|
|
2401
2401
|
children: Lt.value
|
|
2402
2402
|
})]
|
|
2403
|
-
}),
|
|
2403
|
+
}), m("div", {
|
|
2404
2404
|
className: "footer",
|
|
2405
|
-
children: [
|
|
2405
|
+
children: [m("button", {
|
|
2406
2406
|
onClick: oo,
|
|
2407
2407
|
className: "cancel-btn",
|
|
2408
2408
|
children: "Cancel"
|
|
2409
|
-
}),
|
|
2409
|
+
}), m("button", {
|
|
2410
2410
|
onClick: so,
|
|
2411
2411
|
className: "confirm-btm",
|
|
2412
2412
|
children: "Confirm"
|
|
2413
2413
|
})]
|
|
2414
2414
|
})]
|
|
2415
2415
|
})
|
|
2416
|
-
}) : null, uo =
|
|
2416
|
+
}) : null, uo = q`
|
|
2417
2417
|
${M}
|
|
2418
2418
|
position: relative;
|
|
2419
2419
|
display: flex;
|
|
@@ -2467,7 +2467,7 @@ const ro = G`
|
|
|
2467
2467
|
const {
|
|
2468
2468
|
startTimestamp: o,
|
|
2469
2469
|
timerPaused: s
|
|
2470
|
-
} = r, a =
|
|
2470
|
+
} = r, a = Ji(e);
|
|
2471
2471
|
io(() => {
|
|
2472
2472
|
a.value > 0 ? a.value -= 1 : P(() => {
|
|
2473
2473
|
s.value = !0, a.value = 0;
|
|
@@ -2501,21 +2501,21 @@ const ro = G`
|
|
|
2501
2501
|
s.value = !0, a.value = 0, o.value = null;
|
|
2502
2502
|
});
|
|
2503
2503
|
};
|
|
2504
|
-
return
|
|
2504
|
+
return m("div", {
|
|
2505
2505
|
className: uo,
|
|
2506
|
-
children: [a.value > 0 && i !== "interstitial" &&
|
|
2506
|
+
children: [a.value > 0 && i !== "interstitial" && m("div", {
|
|
2507
2507
|
className: "timer",
|
|
2508
2508
|
children: [a.value, "s"]
|
|
2509
|
-
}),
|
|
2509
|
+
}), m("button", {
|
|
2510
2510
|
onClick: d.value ? c : u.value ? h : void 0,
|
|
2511
2511
|
disabled: l.value,
|
|
2512
|
-
children:
|
|
2512
|
+
children: m("svg", {
|
|
2513
2513
|
width: "12",
|
|
2514
2514
|
height: "12",
|
|
2515
2515
|
viewBox: "0 0 14 14",
|
|
2516
2516
|
fill: "none",
|
|
2517
2517
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2518
|
-
children:
|
|
2518
|
+
children: m("path", {
|
|
2519
2519
|
d: "M13.3 0.710215C12.91 0.320215 12.28 0.320215 11.89 0.710215L6.99997 5.59022L2.10997 0.700215C1.71997 0.310215 1.08997 0.310215 0.699971 0.700215C0.309971 1.09021 0.309971 1.72022 0.699971 2.11022L5.58997 7.00022L0.699971 11.8902C0.309971 12.2802 0.309971 12.9102 0.699971 13.3002C1.08997 13.6902 1.71997 13.6902 2.10997 13.3002L6.99997 8.41021L11.89 13.3002C12.28 13.6902 12.91 13.6902 13.3 13.3002C13.69 12.9102 13.69 12.2802 13.3 11.8902L8.40997 7.00022L13.3 2.11022C13.68 1.73022 13.68 1.09022 13.3 0.710215Z",
|
|
2520
2520
|
fill: "white"
|
|
2521
2521
|
})
|
|
@@ -2535,7 +2535,7 @@ const ro = G`
|
|
|
2535
2535
|
src: a,
|
|
2536
2536
|
mode: d
|
|
2537
2537
|
};
|
|
2538
|
-
}, fo =
|
|
2538
|
+
}, fo = q`
|
|
2539
2539
|
${M}
|
|
2540
2540
|
position: fixed;
|
|
2541
2541
|
z-index: 2147483647;
|
|
@@ -2568,10 +2568,10 @@ const ro = G`
|
|
|
2568
2568
|
countdown: d,
|
|
2569
2569
|
src: u,
|
|
2570
2570
|
mode: l
|
|
2571
|
-
} = e, c = vn(() => co(), []), [h, f] =
|
|
2572
|
-
var g,
|
|
2573
|
-
a.value = !1, w === "dismiss" ? (g = n.value) == null || g.call(n) : w === "viewed" && ((
|
|
2574
|
-
},
|
|
2571
|
+
} = e, c = vn(() => co(), []), [h, f] = pe(!1), v = (w) => {
|
|
2572
|
+
var g, A, S, p;
|
|
2573
|
+
a.value = !1, w === "dismiss" ? (g = n.value) == null || g.call(n) : w === "viewed" && ((A = r.value) == null || A.call(r)), (S = i.value) == null || S.call(i), (p = o.value) == null || p.call(o), f(!1);
|
|
2574
|
+
}, y = Et(() => {
|
|
2575
2575
|
var w;
|
|
2576
2576
|
h || (f(!0), (w = s.value) == null || w.call(s));
|
|
2577
2577
|
}, [h]);
|
|
@@ -2579,18 +2579,18 @@ const ro = G`
|
|
|
2579
2579
|
h && (l.value === "reward" || l.value === "rewarded_insterstitial") && setTimeout(() => {
|
|
2580
2580
|
c.startTimer();
|
|
2581
2581
|
}, 100);
|
|
2582
|
-
}, [h, l.value]), a.value ?
|
|
2582
|
+
}, [h, l.value]), a.value ? m("div", {
|
|
2583
2583
|
className: fo,
|
|
2584
|
-
children: [
|
|
2584
|
+
children: [m(ho, {
|
|
2585
2585
|
mode: l.value,
|
|
2586
|
-
onClose:
|
|
2586
|
+
onClose: v,
|
|
2587
2587
|
countdown: d.value,
|
|
2588
2588
|
state: c
|
|
2589
|
-
}), a.value &&
|
|
2589
|
+
}), a.value && m("iframe", {
|
|
2590
2590
|
src: u.value,
|
|
2591
|
-
onLoad:
|
|
2591
|
+
onLoad: y,
|
|
2592
2592
|
sandbox: "allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"
|
|
2593
|
-
}),
|
|
2593
|
+
}), m(lo, {})]
|
|
2594
2594
|
}) : null;
|
|
2595
2595
|
};
|
|
2596
2596
|
function de(t, e, i) {
|
|
@@ -2618,7 +2618,7 @@ class go {
|
|
|
2618
2618
|
}
|
|
2619
2619
|
async init() {
|
|
2620
2620
|
var e;
|
|
2621
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), fe(
|
|
2621
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), fe(m(Yi, {
|
|
2622
2622
|
state: this.state
|
|
2623
2623
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2624
2624
|
}
|
|
@@ -2703,15 +2703,15 @@ class go {
|
|
|
2703
2703
|
}, f = () => {
|
|
2704
2704
|
var g;
|
|
2705
2705
|
this.adsIsShowing = !1, h.breakStatus = "dismissed", (g = e.adDismissed) == null || g.call(e);
|
|
2706
|
-
},
|
|
2706
|
+
}, v = () => {
|
|
2707
2707
|
var g;
|
|
2708
2708
|
this.adsIsShowing = !1, h.breakStatus = "viewed", (g = e.adViewed) == null || g.call(e);
|
|
2709
|
-
},
|
|
2709
|
+
}, y = () => {
|
|
2710
2710
|
var g;
|
|
2711
2711
|
this.adsIsShowing = !1, (g = e.adBreakDone) == null || g.call(e, h);
|
|
2712
2712
|
};
|
|
2713
2713
|
P(() => {
|
|
2714
|
-
this.state.afterAd.value = c, this.state.adDismissed.value = f, this.state.adViewed.value =
|
|
2714
|
+
this.state.afterAd.value = c, this.state.adDismissed.value = f, this.state.adViewed.value = v, this.state.adBreakDone.value = y;
|
|
2715
2715
|
});
|
|
2716
2716
|
const w = () => {
|
|
2717
2717
|
var g;
|
|
@@ -2725,8 +2725,8 @@ class go {
|
|
|
2725
2725
|
return;
|
|
2726
2726
|
}
|
|
2727
2727
|
this.adsIsShowing = !0, P(() => {
|
|
2728
|
-
var
|
|
2729
|
-
this.state.countdown.value = (
|
|
2728
|
+
var A;
|
|
2729
|
+
this.state.countdown.value = (A = i.params.countdown) != null ? A : 15, this.state.src.value = i.params.url, this.state.mode.value = "reward", this.state.visible.value = !0;
|
|
2730
2730
|
});
|
|
2731
2731
|
};
|
|
2732
2732
|
this.lastUnDisplayedAdBreak = e, (l = e.beforeReward) == null || l.call(e, w);
|
|
@@ -2747,14 +2747,14 @@ const wo = () => {
|
|
|
2747
2747
|
visible: s,
|
|
2748
2748
|
payload: a
|
|
2749
2749
|
};
|
|
2750
|
-
},
|
|
2750
|
+
}, Ao = q`
|
|
2751
2751
|
${M}
|
|
2752
2752
|
position: fixed;
|
|
2753
2753
|
inset: 0;
|
|
2754
2754
|
z-index: 2147483647;
|
|
2755
2755
|
display: flex;
|
|
2756
2756
|
background: #000000;
|
|
2757
|
-
`,
|
|
2757
|
+
`, bo = q`
|
|
2758
2758
|
${M}
|
|
2759
2759
|
position: relative;
|
|
2760
2760
|
width: 100%;
|
|
@@ -2762,7 +2762,7 @@ const wo = () => {
|
|
|
2762
2762
|
display: flex;
|
|
2763
2763
|
flex-direction: column;
|
|
2764
2764
|
color: #f7f9fc;
|
|
2765
|
-
`, po =
|
|
2765
|
+
`, po = q`
|
|
2766
2766
|
position: absolute;
|
|
2767
2767
|
top: 24px;
|
|
2768
2768
|
left: 24px;
|
|
@@ -2773,15 +2773,15 @@ const wo = () => {
|
|
|
2773
2773
|
border-radius: 999px;
|
|
2774
2774
|
background: rgba(0, 0, 0, 0.65);
|
|
2775
2775
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
2776
|
-
`, _o =
|
|
2776
|
+
`, _o = q`
|
|
2777
2777
|
font-size: 11px;
|
|
2778
2778
|
letter-spacing: 0.08em;
|
|
2779
2779
|
text-transform: uppercase;
|
|
2780
2780
|
color: #c7d4ef;
|
|
2781
|
-
`, mo =
|
|
2781
|
+
`, mo = q`
|
|
2782
2782
|
font-size: 14px;
|
|
2783
2783
|
font-weight: 500;
|
|
2784
|
-
`, So =
|
|
2784
|
+
`, So = q`
|
|
2785
2785
|
${M}
|
|
2786
2786
|
flex: 1;
|
|
2787
2787
|
background: #050505;
|
|
@@ -2789,7 +2789,7 @@ const wo = () => {
|
|
|
2789
2789
|
align-items: center;
|
|
2790
2790
|
justify-content: center;
|
|
2791
2791
|
padding: 0;
|
|
2792
|
-
`,
|
|
2792
|
+
`, Ai = q`
|
|
2793
2793
|
width: 100%;
|
|
2794
2794
|
height: 100%;
|
|
2795
2795
|
border: 2px dashed rgba(255, 255, 255, 0.08);
|
|
@@ -2798,13 +2798,13 @@ const wo = () => {
|
|
|
2798
2798
|
justify-content: center;
|
|
2799
2799
|
color: #6e7da1;
|
|
2800
2800
|
font-size: 14px;
|
|
2801
|
-
`, Eo =
|
|
2801
|
+
`, Eo = q`
|
|
2802
2802
|
position: absolute;
|
|
2803
2803
|
bottom: 32px;
|
|
2804
2804
|
right: 32px;
|
|
2805
2805
|
display: flex;
|
|
2806
2806
|
gap: 12px;
|
|
2807
|
-
`, ko =
|
|
2807
|
+
`, ko = q`
|
|
2808
2808
|
min-width: 160px;
|
|
2809
2809
|
min-height: 48px;
|
|
2810
2810
|
border-radius: 999px;
|
|
@@ -2820,7 +2820,7 @@ const wo = () => {
|
|
|
2820
2820
|
opacity: 0.4;
|
|
2821
2821
|
cursor: not-allowed;
|
|
2822
2822
|
}
|
|
2823
|
-
`, Io =
|
|
2823
|
+
`, Io = q`
|
|
2824
2824
|
min-width: 120px;
|
|
2825
2825
|
min-height: 44px;
|
|
2826
2826
|
border-radius: 999px;
|
|
@@ -2843,47 +2843,47 @@ const wo = () => {
|
|
|
2843
2843
|
adError: a,
|
|
2844
2844
|
visible: d,
|
|
2845
2845
|
payload: u
|
|
2846
|
-
} = e, [l, c] =
|
|
2847
|
-
var C, W,
|
|
2848
|
-
c(!1), d.value = !1, L === "dismiss" ? (C = n.value) == null || C.call(n) : (W = r.value) == null || W.call(r), (
|
|
2849
|
-
}, [d, n, r, i, o]),
|
|
2846
|
+
} = e, [l, c] = pe(!1), [h, f] = pe(0), [v, y] = pe(!1), [w, g] = pe(!1), [A, S] = pe("Loading next content..."), p = _i(null), _ = u.value, E = Et((L) => {
|
|
2847
|
+
var C, W, G, I;
|
|
2848
|
+
c(!1), d.value = !1, L === "dismiss" ? (C = n.value) == null || C.call(n) : (W = r.value) == null || W.call(r), (G = i.value) == null || G.call(i), (I = o.value) == null || I.call(o);
|
|
2849
|
+
}, [d, n, r, i, o]), b = Et(() => {
|
|
2850
2850
|
var L;
|
|
2851
2851
|
c(!1), d.value = !1, (L = a.value) == null || L.call(a);
|
|
2852
2852
|
}, [d, a]);
|
|
2853
2853
|
if (Te(() => {
|
|
2854
2854
|
var I;
|
|
2855
|
-
if (!d.value || !
|
|
2856
|
-
f(0),
|
|
2855
|
+
if (!d.value || !_) {
|
|
2856
|
+
f(0), y(!1), g(!1), S("Loading next content...");
|
|
2857
2857
|
return;
|
|
2858
2858
|
}
|
|
2859
|
-
const L =
|
|
2860
|
-
if (f(C), g(
|
|
2859
|
+
const L = _.mode === "reward" ? 15 : 0, C = Math.max(Math.floor((I = _.countdown) != null ? I : L), 0);
|
|
2860
|
+
if (f(C), g(_.mode === "reward" ? C === 0 : !0), y(_.mode === "interstitial" ? C === 0 : !1), C === 0)
|
|
2861
2861
|
return;
|
|
2862
2862
|
let W = C;
|
|
2863
|
-
const
|
|
2864
|
-
W -= 1, f(Math.max(W, 0)), W <= 0 && (window.clearInterval(
|
|
2863
|
+
const G = window.setInterval(() => {
|
|
2864
|
+
W -= 1, f(Math.max(W, 0)), W <= 0 && (window.clearInterval(G), _.mode === "reward" ? g(!0) : y(!0));
|
|
2865
2865
|
}, 1e3);
|
|
2866
2866
|
return () => {
|
|
2867
|
-
window.clearInterval(
|
|
2867
|
+
window.clearInterval(G);
|
|
2868
2868
|
};
|
|
2869
|
-
}, [d.value,
|
|
2870
|
-
var
|
|
2871
|
-
if (!d.value || !
|
|
2869
|
+
}, [d.value, _, E]), Te(() => {
|
|
2870
|
+
var G;
|
|
2871
|
+
if (!d.value || !_)
|
|
2872
2872
|
return;
|
|
2873
|
-
const L =
|
|
2873
|
+
const L = p.current;
|
|
2874
2874
|
if (!L)
|
|
2875
2875
|
return;
|
|
2876
|
-
if (L.innerHTML = "", S("Loading next content..."), c(!1),
|
|
2876
|
+
if (L.innerHTML = "", S("Loading next content..."), c(!1), _.testMode) {
|
|
2877
2877
|
const I = document.createElement("div");
|
|
2878
|
-
I.className =
|
|
2878
|
+
I.className = Ai, I.innerText = "Preview slot placeholder", L.appendChild(I), c(!0), (G = s.value) == null || G.call(s);
|
|
2879
2879
|
return;
|
|
2880
2880
|
}
|
|
2881
2881
|
if (typeof window == "undefined") {
|
|
2882
|
-
|
|
2882
|
+
b();
|
|
2883
2883
|
return;
|
|
2884
2884
|
}
|
|
2885
2885
|
const C = document.createElement("ins");
|
|
2886
|
-
C.className = "adsbygoogle", C.style.display = "block", C.style.width = "100%", C.style.height = "100%", C.setAttribute("data-ad-client",
|
|
2886
|
+
C.className = "adsbygoogle", C.style.display = "block", C.style.width = "100%", C.style.height = "100%", C.setAttribute("data-ad-client", _.clientId), C.setAttribute("data-ad-slot", _.unitId), C.setAttribute("data-ad-format", "auto"), C.setAttribute("data-full-width-responsive", "true"), _.channelId && C.setAttribute("data-ad-channel", _.channelId), L.appendChild(C);
|
|
2887
2887
|
const W = new MutationObserver(() => {
|
|
2888
2888
|
var Y;
|
|
2889
2889
|
const I = C.getAttribute("data-ad-status");
|
|
@@ -2897,43 +2897,43 @@ const wo = () => {
|
|
|
2897
2897
|
const I = window;
|
|
2898
2898
|
I.adsbygoogle = I.adsbygoogle || [], I.adsbygoogle.push({});
|
|
2899
2899
|
} catch (I) {
|
|
2900
|
-
W.disconnect(),
|
|
2900
|
+
W.disconnect(), b();
|
|
2901
2901
|
}
|
|
2902
2902
|
return () => {
|
|
2903
2903
|
W.disconnect(), L.innerHTML = "";
|
|
2904
2904
|
};
|
|
2905
|
-
}, [d.value,
|
|
2905
|
+
}, [d.value, _, s, b]), !d.value || !_)
|
|
2906
2906
|
return null;
|
|
2907
|
-
const
|
|
2908
|
-
return
|
|
2909
|
-
className:
|
|
2910
|
-
children:
|
|
2911
|
-
className:
|
|
2912
|
-
children: [
|
|
2907
|
+
const ee = _.mode === "reward" ? "Next content unlocking" : "Content paused", _e = h > 0 ? `Content resumes in ${h}s` : "Content ready";
|
|
2908
|
+
return m("div", {
|
|
2909
|
+
className: Ao,
|
|
2910
|
+
children: m("div", {
|
|
2911
|
+
className: bo,
|
|
2912
|
+
children: [m("div", {
|
|
2913
2913
|
className: po,
|
|
2914
|
-
children: [
|
|
2914
|
+
children: [m("div", {
|
|
2915
2915
|
className: _o,
|
|
2916
|
-
children:
|
|
2917
|
-
}),
|
|
2916
|
+
children: ee
|
|
2917
|
+
}), m("div", {
|
|
2918
2918
|
className: mo,
|
|
2919
|
-
children:
|
|
2919
|
+
children: _e
|
|
2920
2920
|
})]
|
|
2921
|
-
}),
|
|
2921
|
+
}), m("div", {
|
|
2922
2922
|
className: So,
|
|
2923
|
-
ref:
|
|
2924
|
-
children: !l &&
|
|
2925
|
-
className:
|
|
2926
|
-
children:
|
|
2923
|
+
ref: p,
|
|
2924
|
+
children: !l && m("div", {
|
|
2925
|
+
className: Ai,
|
|
2926
|
+
children: A
|
|
2927
2927
|
})
|
|
2928
|
-
}),
|
|
2928
|
+
}), m("div", {
|
|
2929
2929
|
className: Eo,
|
|
2930
|
-
children:
|
|
2930
|
+
children: _.mode === "reward" ? m("button", {
|
|
2931
2931
|
className: ko,
|
|
2932
2932
|
type: "button",
|
|
2933
2933
|
onClick: () => E("viewed"),
|
|
2934
2934
|
disabled: !w,
|
|
2935
2935
|
children: w ? "Continue" : `Continue in ${h}s`
|
|
2936
|
-
}) :
|
|
2936
|
+
}) : v && m("button", {
|
|
2937
2937
|
className: Io,
|
|
2938
2938
|
type: "button",
|
|
2939
2939
|
onClick: () => E("viewed"),
|
|
@@ -2972,7 +2972,7 @@ class Co {
|
|
|
2972
2972
|
async init() {
|
|
2973
2973
|
var e;
|
|
2974
2974
|
if (typeof document != "undefined") {
|
|
2975
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-banner-as-afg"), fe(
|
|
2975
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-banner-as-afg"), fe(m(xo, {
|
|
2976
2976
|
state: this.state
|
|
2977
2977
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay);
|
|
2978
2978
|
try {
|
|
@@ -3041,7 +3041,7 @@ class Co {
|
|
|
3041
3041
|
this.state.payload.value = r, this.state.visible.value = !0;
|
|
3042
3042
|
}
|
|
3043
3043
|
adBreak(e, i) {
|
|
3044
|
-
var s, a, d, u, l, c, h, f,
|
|
3044
|
+
var s, a, d, u, l, c, h, f, v;
|
|
3045
3045
|
const n = e.type === "preroll" ? "" : e.name, r = e.type === "reward" ? "reward" : "interstitial";
|
|
3046
3046
|
if (!this.initialized || !this.adsOverlay) {
|
|
3047
3047
|
(s = e.adBreakDone) == null || s.call(e, {
|
|
@@ -3086,7 +3086,7 @@ class Co {
|
|
|
3086
3086
|
case "next":
|
|
3087
3087
|
case "pause": {
|
|
3088
3088
|
(l = e.beforeAd) == null || l.call(e);
|
|
3089
|
-
const
|
|
3089
|
+
const y = {
|
|
3090
3090
|
breakType: e.type,
|
|
3091
3091
|
breakName: e.name,
|
|
3092
3092
|
breakFormat: "interstitial",
|
|
@@ -3096,13 +3096,13 @@ class Co {
|
|
|
3096
3096
|
this.adsIsShowing = !1, (S = e.afterAd) == null || S.call(e);
|
|
3097
3097
|
}, g = () => {
|
|
3098
3098
|
var S;
|
|
3099
|
-
this.adsIsShowing = !1, (S = e.adBreakDone) == null || S.call(e,
|
|
3100
|
-
},
|
|
3101
|
-
var S,
|
|
3102
|
-
this.adsIsShowing = !1,
|
|
3099
|
+
this.adsIsShowing = !1, (S = e.adBreakDone) == null || S.call(e, y);
|
|
3100
|
+
}, A = () => {
|
|
3101
|
+
var S, p;
|
|
3102
|
+
this.adsIsShowing = !1, y.breakStatus = "noAdPreloaded", (S = e.afterAd) == null || S.call(e), (p = e.adBreakDone) == null || p.call(e, y);
|
|
3103
3103
|
};
|
|
3104
3104
|
P(() => {
|
|
3105
|
-
this.adsIsShowing = !0, this.state.afterAd.value = w, this.state.adBreakDone.value = g, this.state.adDismissed.value = null, this.state.adViewed.value = null, this.state.adError.value =
|
|
3105
|
+
this.adsIsShowing = !0, this.state.afterAd.value = w, this.state.adBreakDone.value = g, this.state.adDismissed.value = null, this.state.adViewed.value = null, this.state.adError.value = A, this.showBannerOverlay("interstitial", o);
|
|
3106
3106
|
});
|
|
3107
3107
|
break;
|
|
3108
3108
|
}
|
|
@@ -3113,7 +3113,7 @@ class Co {
|
|
|
3113
3113
|
breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
|
|
3114
3114
|
breakStatus: "ignored"
|
|
3115
3115
|
}), this.lastUnDisplayedAdBreak = null), (f = e.beforeAd) == null || f.call(e);
|
|
3116
|
-
const
|
|
3116
|
+
const y = {
|
|
3117
3117
|
breakType: e.type,
|
|
3118
3118
|
breakName: e.name,
|
|
3119
3119
|
breakFormat: "reward",
|
|
@@ -3123,24 +3123,24 @@ class Co {
|
|
|
3123
3123
|
this.adsIsShowing = !1, (E = e.afterAd) == null || E.call(e);
|
|
3124
3124
|
}, g = () => {
|
|
3125
3125
|
var E;
|
|
3126
|
-
this.adsIsShowing = !1,
|
|
3127
|
-
},
|
|
3126
|
+
this.adsIsShowing = !1, y.breakStatus = "dismissed", (E = e.adDismissed) == null || E.call(e);
|
|
3127
|
+
}, A = () => {
|
|
3128
3128
|
var E;
|
|
3129
|
-
this.adsIsShowing = !1,
|
|
3129
|
+
this.adsIsShowing = !1, y.breakStatus = "viewed", (E = e.adViewed) == null || E.call(e);
|
|
3130
3130
|
}, S = () => {
|
|
3131
3131
|
var E;
|
|
3132
|
-
this.adsIsShowing = !1, (E = e.adBreakDone) == null || E.call(e,
|
|
3133
|
-
},
|
|
3134
|
-
var E,
|
|
3135
|
-
this.adsIsShowing = !1,
|
|
3132
|
+
this.adsIsShowing = !1, (E = e.adBreakDone) == null || E.call(e, y);
|
|
3133
|
+
}, p = () => {
|
|
3134
|
+
var E, b;
|
|
3135
|
+
this.adsIsShowing = !1, y.breakStatus = "noAdPreloaded", (E = e.afterAd) == null || E.call(e), (b = e.adBreakDone) == null || b.call(e, y);
|
|
3136
3136
|
};
|
|
3137
3137
|
P(() => {
|
|
3138
|
-
this.state.afterAd.value = w, this.state.adDismissed.value = g, this.state.adViewed.value =
|
|
3138
|
+
this.state.afterAd.value = w, this.state.adDismissed.value = g, this.state.adViewed.value = A, this.state.adBreakDone.value = S, this.state.adError.value = p;
|
|
3139
3139
|
});
|
|
3140
|
-
const
|
|
3141
|
-
var E,
|
|
3140
|
+
const _ = () => {
|
|
3141
|
+
var E, b;
|
|
3142
3142
|
if (!this.canDisplay(o.rewardUnitId)) {
|
|
3143
|
-
this.lastUnDisplayedAdBreak = null, (E = e.afterAd) == null || E.call(e), (
|
|
3143
|
+
this.lastUnDisplayedAdBreak = null, (E = e.afterAd) == null || E.call(e), (b = e.adBreakDone) == null || b.call(e, {
|
|
3144
3144
|
breakType: e.type,
|
|
3145
3145
|
breakName: e.name,
|
|
3146
3146
|
breakFormat: "reward",
|
|
@@ -3152,7 +3152,7 @@ class Co {
|
|
|
3152
3152
|
this.showBannerOverlay("reward", o);
|
|
3153
3153
|
});
|
|
3154
3154
|
};
|
|
3155
|
-
this.lastUnDisplayedAdBreak = e, (
|
|
3155
|
+
this.lastUnDisplayedAdBreak = e, (v = e.beforeReward) == null || v.call(e, _);
|
|
3156
3156
|
break;
|
|
3157
3157
|
}
|
|
3158
3158
|
}
|
|
@@ -3164,7 +3164,7 @@ window.addEventListener("message", (t) => {
|
|
|
3164
3164
|
e(t.data.data);
|
|
3165
3165
|
});
|
|
3166
3166
|
});
|
|
3167
|
-
const
|
|
3167
|
+
const Se = (t, e) => {
|
|
3168
3168
|
Te(() => (Ie[t] || (Ie[t] = /* @__PURE__ */ new Set()), Ie[t].add(e), () => {
|
|
3169
3169
|
Ie[t].delete(e);
|
|
3170
3170
|
}), [t, e]);
|
|
@@ -3181,7 +3181,7 @@ const me = (t, e) => {
|
|
|
3181
3181
|
visible: a,
|
|
3182
3182
|
src: d
|
|
3183
3183
|
};
|
|
3184
|
-
}, Oo =
|
|
3184
|
+
}, Oo = q`
|
|
3185
3185
|
${M}
|
|
3186
3186
|
position: fixed;
|
|
3187
3187
|
z-index: 2147483647;
|
|
@@ -3213,22 +3213,22 @@ const me = (t, e) => {
|
|
|
3213
3213
|
adLinkClicked: a,
|
|
3214
3214
|
visible: d,
|
|
3215
3215
|
src: u
|
|
3216
|
-
} = e, [l, c] =
|
|
3217
|
-
var
|
|
3218
|
-
c(!1), d.value = !1,
|
|
3216
|
+
} = e, [l, c] = pe(!1), h = (v) => {
|
|
3217
|
+
var y, w, g, A;
|
|
3218
|
+
c(!1), d.value = !1, v === "dismiss" ? (y = n.value) == null || y.call(n) : v === "viewed" && ((w = r.value) == null || w.call(r)), (g = i.value) == null || g.call(i), (A = o.value) == null || A.call(o);
|
|
3219
3219
|
}, f = () => {
|
|
3220
|
-
var y;
|
|
3221
|
-
(y = s.value) == null || y.call(s);
|
|
3222
|
-
};
|
|
3223
|
-
return me("appsrockets_ad_dismissed", () => h("dismiss")), me("appsrockets_ad_rewarded", () => h("viewed")), me("appsrockets_ad_completed", () => h("viewed")), me("appsrockets_ad_skipped", () => h("viewed")), me("appsrockets_ad_clicked", (y) => {
|
|
3224
3220
|
var v;
|
|
3225
|
-
|
|
3226
|
-
}
|
|
3221
|
+
(v = s.value) == null || v.call(s);
|
|
3222
|
+
};
|
|
3223
|
+
return Se("appsrockets_ad_dismissed", () => h("dismiss")), Se("appsrockets_ad_rewarded", () => h("viewed")), Se("appsrockets_ad_completed", () => h("viewed")), Se("appsrockets_ad_skipped", () => h("viewed")), Se("appsrockets_ad_clicked", (v) => {
|
|
3224
|
+
var y;
|
|
3225
|
+
return (y = a.value) == null ? void 0 : y.call(a, v);
|
|
3226
|
+
}), Se("appsrockets_ad_loaded", () => c(!0)), d.value ? m("div", {
|
|
3227
3227
|
className: Oo,
|
|
3228
3228
|
style: {
|
|
3229
3229
|
display: l ? "flex" : "none"
|
|
3230
3230
|
},
|
|
3231
|
-
children: d.value &&
|
|
3231
|
+
children: d.value && m("iframe", {
|
|
3232
3232
|
src: u.value,
|
|
3233
3233
|
onLoad: f,
|
|
3234
3234
|
allowFullScreen: !0,
|
|
@@ -3266,7 +3266,7 @@ class No {
|
|
|
3266
3266
|
}
|
|
3267
3267
|
async init() {
|
|
3268
3268
|
var e;
|
|
3269
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), fe(
|
|
3269
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), fe(m(Zi, {
|
|
3270
3270
|
state: this.state
|
|
3271
3271
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
3272
3272
|
}
|
|
@@ -3302,8 +3302,8 @@ class No {
|
|
|
3302
3302
|
return;
|
|
3303
3303
|
}
|
|
3304
3304
|
const n = (f) => {
|
|
3305
|
-
var
|
|
3306
|
-
(
|
|
3305
|
+
var v, y;
|
|
3306
|
+
(y = (v = this.context).handleLinkClicked) == null || y.call(v, f);
|
|
3307
3307
|
}, r = e.type === "reward" ? "REWARD" : "INTERSTITIAL";
|
|
3308
3308
|
switch (e.type) {
|
|
3309
3309
|
case "preroll": {
|
|
@@ -3323,7 +3323,7 @@ class No {
|
|
|
3323
3323
|
const f = () => {
|
|
3324
3324
|
var w;
|
|
3325
3325
|
this.adsIsShowing = !1, (w = e.afterAd) == null || w.call(e);
|
|
3326
|
-
},
|
|
3326
|
+
}, v = () => {
|
|
3327
3327
|
var w;
|
|
3328
3328
|
this.adsIsShowing = !1, (w = e.adBreakDone) == null || w.call(e, {
|
|
3329
3329
|
breakType: e.type,
|
|
@@ -3331,7 +3331,7 @@ class No {
|
|
|
3331
3331
|
breakFormat: "interstitial",
|
|
3332
3332
|
breakStatus: "viewed"
|
|
3333
3333
|
});
|
|
3334
|
-
},
|
|
3334
|
+
}, y = () => {
|
|
3335
3335
|
var w;
|
|
3336
3336
|
this.adsIsShowing = !1, (w = e.adBreakDone) == null || w.call(e, {
|
|
3337
3337
|
breakType: e.type,
|
|
@@ -3341,7 +3341,7 @@ class No {
|
|
|
3341
3341
|
});
|
|
3342
3342
|
};
|
|
3343
3343
|
P(() => {
|
|
3344
|
-
this.adsIsShowing = !0, this.state.afterAd.value = f, this.state.adBreakDone.value =
|
|
3344
|
+
this.adsIsShowing = !0, this.state.afterAd.value = f, this.state.adBreakDone.value = v, this.state.src.value = this.processUrl(i.params.url, r), this.state.adLinkClicked.value = n, this.state.adError.value = y, this.state.visible.value = !0;
|
|
3345
3345
|
});
|
|
3346
3346
|
break;
|
|
3347
3347
|
}
|
|
@@ -3353,32 +3353,32 @@ class No {
|
|
|
3353
3353
|
breakStatus: "ignored"
|
|
3354
3354
|
}), this.lastUnDisplayedAdBreak = null), (c = e.beforeAd) == null || c.call(e);
|
|
3355
3355
|
const f = () => {
|
|
3356
|
-
var
|
|
3357
|
-
this.adsIsShowing = !1, (
|
|
3358
|
-
},
|
|
3356
|
+
var p;
|
|
3357
|
+
this.adsIsShowing = !1, (p = e.afterAd) == null || p.call(e);
|
|
3358
|
+
}, v = {
|
|
3359
3359
|
breakType: e.type,
|
|
3360
3360
|
breakName: e.name,
|
|
3361
3361
|
breakFormat: "reward",
|
|
3362
3362
|
breakStatus: "ignored"
|
|
3363
|
-
},
|
|
3364
|
-
var
|
|
3365
|
-
this.adsIsShowing = !1,
|
|
3363
|
+
}, y = () => {
|
|
3364
|
+
var p;
|
|
3365
|
+
this.adsIsShowing = !1, v.breakStatus = "dismissed", (p = e.adDismissed) == null || p.call(e);
|
|
3366
3366
|
}, w = () => {
|
|
3367
|
-
var
|
|
3368
|
-
this.adsIsShowing = !1,
|
|
3367
|
+
var p;
|
|
3368
|
+
this.adsIsShowing = !1, v.breakStatus = "viewed", (p = e.adViewed) == null || p.call(e);
|
|
3369
3369
|
}, g = () => {
|
|
3370
|
-
var
|
|
3371
|
-
this.adsIsShowing = !1, (
|
|
3372
|
-
},
|
|
3373
|
-
this.adsIsShowing = !1,
|
|
3370
|
+
var p;
|
|
3371
|
+
this.adsIsShowing = !1, (p = e.adBreakDone) == null || p.call(e, v);
|
|
3372
|
+
}, A = () => {
|
|
3373
|
+
this.adsIsShowing = !1, v.breakStatus = "noAdPreloaded";
|
|
3374
3374
|
};
|
|
3375
3375
|
P(() => {
|
|
3376
|
-
this.state.afterAd.value = f, this.state.adDismissed.value =
|
|
3376
|
+
this.state.afterAd.value = f, this.state.adDismissed.value = y, this.state.adViewed.value = w, this.state.adBreakDone.value = g, this.state.adLinkClicked.value = n, this.state.adError.value = A;
|
|
3377
3377
|
});
|
|
3378
3378
|
const S = () => {
|
|
3379
|
-
var
|
|
3379
|
+
var p;
|
|
3380
3380
|
if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
|
|
3381
|
-
(
|
|
3381
|
+
(p = e.adBreakDone) == null || p.call(e, {
|
|
3382
3382
|
breakType: e.type,
|
|
3383
3383
|
breakName: e.name,
|
|
3384
3384
|
breakFormat: "reward",
|
|
@@ -3485,7 +3485,7 @@ let tn = class {
|
|
|
3485
3485
|
});
|
|
3486
3486
|
}
|
|
3487
3487
|
};
|
|
3488
|
-
function
|
|
3488
|
+
function H(t, e, i) {
|
|
3489
3489
|
return (e = Mo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3490
3490
|
}
|
|
3491
3491
|
function Mo(t) {
|
|
@@ -3507,28 +3507,28 @@ function $o(t, e) {
|
|
|
3507
3507
|
class Fo {
|
|
3508
3508
|
constructor(e, i, n) {
|
|
3509
3509
|
var r = this;
|
|
3510
|
-
|
|
3510
|
+
H(this, "adUnit", void 0), H(this, "project", void 0), H(this, "keyValue", void 0), H(this, "adsContext", null), H(this, "gamingInterstitialSlot", null), H(this, "readyEvent", null), H(this, "isRetrying", !1), H(this, "withCommand", function() {
|
|
3511
3511
|
googletag.cmd.push(...arguments);
|
|
3512
|
-
}),
|
|
3512
|
+
}), H(this, "init", () => {
|
|
3513
3513
|
var o;
|
|
3514
3514
|
this.gamingInterstitialSlot = googletag.defineOutOfPageSlot(this.adUnit, googletag.enums.OutOfPageFormat.GAME_MANUAL_INTERSTITIAL), this.gamingInterstitialSlot && (this.gamingInterstitialSlot.addService(googletag.pubads()), googletag.pubads().addEventListener("gameManualInterstitialSlotReady", this.handleSlotReady), googletag.pubads().addEventListener("gameManualInterstitialSlotClosed", this.handleSlotClosed), this.keyValue && (Object.keys(this.keyValue).forEach((s) => {
|
|
3515
3515
|
var a;
|
|
3516
3516
|
(a = this.gamingInterstitialSlot) == null || a.setTargeting(s, this.keyValue[s]);
|
|
3517
3517
|
}), Object.keys(this.keyValue).includes("project") || (o = this.gamingInterstitialSlot) == null || o.setTargeting("project", this.project)), googletag.display(this.gamingInterstitialSlot));
|
|
3518
|
-
}),
|
|
3518
|
+
}), H(this, "destroy", function(o) {
|
|
3519
3519
|
var a, d;
|
|
3520
3520
|
(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) && ((d = (a = r.adsContext) == null ? void 0 : a.onEnd) == null || d.call(a, o), o !== "ignored" && (r.adsContext = null)), googletag.pubads().removeEventListener("gameManualInterstitialSlotReady", r.handleSlotReady), googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed", r.handleSlotClosed), r.gamingInterstitialSlot && (googletag.destroySlots([r.gamingInterstitialSlot]), r.gamingInterstitialSlot = null, r.readyEvent = null);
|
|
3521
|
-
}),
|
|
3521
|
+
}), H(this, "reinit", function(o) {
|
|
3522
3522
|
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
3523
3523
|
r.destroy(o, s), r.init();
|
|
3524
|
-
}),
|
|
3524
|
+
}), H(this, "handleSlotReady", (o) => {
|
|
3525
3525
|
this.gamingInterstitialSlot === o.slot && (this.readyEvent = o);
|
|
3526
|
-
}),
|
|
3526
|
+
}), H(this, "handleSlotClosed", (o) => {
|
|
3527
3527
|
var s, a;
|
|
3528
3528
|
this.adsContext && this.gamingInterstitialSlot === o.slot && ((a = (s = this.adsContext).afterAd) == null || a.call(s), this.withCommand(() => {
|
|
3529
3529
|
this.reinit("viewed");
|
|
3530
3530
|
}));
|
|
3531
|
-
}),
|
|
3531
|
+
}), H(this, "requestAds", (o) => {
|
|
3532
3532
|
this.withCommand(() => {
|
|
3533
3533
|
var s, a, d;
|
|
3534
3534
|
if (this.adsContext) {
|
|
@@ -3550,7 +3550,7 @@ class Fo {
|
|
|
3550
3550
|
});
|
|
3551
3551
|
}
|
|
3552
3552
|
}
|
|
3553
|
-
function
|
|
3553
|
+
function Ae(t, e, i) {
|
|
3554
3554
|
return (e = Uo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3555
3555
|
}
|
|
3556
3556
|
function Uo(t) {
|
|
@@ -3571,7 +3571,7 @@ function jo(t, e) {
|
|
|
3571
3571
|
}
|
|
3572
3572
|
class Vo {
|
|
3573
3573
|
constructor(e, i) {
|
|
3574
|
-
|
|
3574
|
+
Ae(this, "name", "GOOGLE_GPT"), Ae(this, "context", void 0), Ae(this, "contextInfo", void 0), Ae(this, "initParams", void 0), Ae(this, "rewardAdManager", void 0), Ae(this, "interstitialManager", void 0), Ae(this, "insertScript", () => {
|
|
3575
3575
|
const n = "jolibox-google-gpt";
|
|
3576
3576
|
let r = document.getElementById(n);
|
|
3577
3577
|
r || (r = window.document.createElement("script"), r.id = n, r.async = !0, r.src = "https://securepubads.g.doubleclick.net/tag/js/gpt.js", r.crossOrigin = "anonymous", document.head.appendChild(r));
|
|
@@ -3651,13 +3651,13 @@ class Vo {
|
|
|
3651
3651
|
}
|
|
3652
3652
|
}
|
|
3653
3653
|
function _t(t, e, i) {
|
|
3654
|
-
return (e =
|
|
3654
|
+
return (e = qo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3655
3655
|
}
|
|
3656
|
-
function
|
|
3657
|
-
var e =
|
|
3656
|
+
function qo(t) {
|
|
3657
|
+
var e = Go(t, "string");
|
|
3658
3658
|
return typeof e == "symbol" ? e : e + "";
|
|
3659
3659
|
}
|
|
3660
|
-
function
|
|
3660
|
+
function Go(t, e) {
|
|
3661
3661
|
if (typeof t != "object" || !t)
|
|
3662
3662
|
return t;
|
|
3663
3663
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3834,10 +3834,10 @@ class nn {
|
|
|
3834
3834
|
}), this.context = e, this.contextInfo = this.context.getContextInfo(), this.requestContext = new Ut(e), i != null && i.reward && this.cacheRewardInfo(), i != null && i.interstitial && this.cacheInterstitialInfo("start"), i != null && i.afv && this.cacheAFVInfo();
|
|
3835
3835
|
}
|
|
3836
3836
|
}
|
|
3837
|
-
function
|
|
3838
|
-
return (e =
|
|
3837
|
+
function Jo(t, e, i) {
|
|
3838
|
+
return (e = Ho(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3839
3839
|
}
|
|
3840
|
-
function
|
|
3840
|
+
function Ho(t) {
|
|
3841
3841
|
var e = Xo(t, "string");
|
|
3842
3842
|
return typeof e == "symbol" ? e : e + "";
|
|
3843
3843
|
}
|
|
@@ -3865,7 +3865,7 @@ const Yo = function(t) {
|
|
|
3865
3865
|
};
|
|
3866
3866
|
class rn {
|
|
3867
3867
|
constructor(e) {
|
|
3868
|
-
this.context = e,
|
|
3868
|
+
this.context = e, Jo(this, "canIUseHelper", void 0), this.context = e;
|
|
3869
3869
|
const {
|
|
3870
3870
|
canIUseNative: i
|
|
3871
3871
|
} = yn(() => this.context.getContextInfo().deviceInfo.nativeSDKVersionCode || 1e6, () => this.context.getContextInfo().deviceInfo.platform || "h5");
|
|
@@ -4245,7 +4245,7 @@ class ss {
|
|
|
4245
4245
|
}
|
|
4246
4246
|
const mt = "jolibox-nb-proxy";
|
|
4247
4247
|
let as = 0;
|
|
4248
|
-
function
|
|
4248
|
+
function bi(t, e, i, n) {
|
|
4249
4249
|
return new Promise((r, o) => {
|
|
4250
4250
|
if (!window.parent || window.parent === window) {
|
|
4251
4251
|
o(new Error("[ParentProxy] No parent window"));
|
|
@@ -4275,12 +4275,12 @@ function on(t) {
|
|
|
4275
4275
|
return on([...t, i]);
|
|
4276
4276
|
},
|
|
4277
4277
|
set(e, i, n) {
|
|
4278
|
-
return console.log("[JoliboxSDK] NewsBreak createProxyForPath set:", i),
|
|
4278
|
+
return console.log("[JoliboxSDK] NewsBreak createProxyForPath set:", i), bi([...t, i], "set", void 0, n).catch((r) => {
|
|
4279
4279
|
console.warn(`[ParentProxy] set ${[...t, i].join(".")} failed:`, r);
|
|
4280
4280
|
}), !0;
|
|
4281
4281
|
},
|
|
4282
4282
|
apply(e, i, n) {
|
|
4283
|
-
return console.log("[JoliboxSDK] NewsBreak createProxyForPath apply:", n),
|
|
4283
|
+
return console.log("[JoliboxSDK] NewsBreak createProxyForPath apply:", n), bi(t, "call", n);
|
|
4284
4284
|
}
|
|
4285
4285
|
});
|
|
4286
4286
|
}
|
|
@@ -4345,18 +4345,19 @@ class cs {
|
|
|
4345
4345
|
this.destroy("notReady");
|
|
4346
4346
|
return;
|
|
4347
4347
|
}
|
|
4348
|
-
|
|
4348
|
+
const n = i.isRewardReady();
|
|
4349
|
+
if (console.log("[JoliboxSDK] NewsBreak sdk.isRewardReady", n), this._isReady || n)
|
|
4349
4350
|
this._isReady = !0, this.showAd();
|
|
4350
4351
|
else {
|
|
4351
|
-
const
|
|
4352
|
+
const r = window.setTimeout(() => {
|
|
4352
4353
|
this._isReady || this.reinit("timeout");
|
|
4353
4354
|
}, 5e3);
|
|
4354
4355
|
i.createRewardAd({
|
|
4355
4356
|
platform: "jolibox"
|
|
4356
|
-
}).then((
|
|
4357
|
-
clearTimeout(
|
|
4357
|
+
}).then((o) => {
|
|
4358
|
+
clearTimeout(r), o.success && o.ready ? (this._isReady = !0, this.showAd()) : this.reinit("noAdPreloaded");
|
|
4358
4359
|
}).catch(() => {
|
|
4359
|
-
clearTimeout(
|
|
4360
|
+
clearTimeout(r), this.reinit("noAdPreloaded");
|
|
4360
4361
|
});
|
|
4361
4362
|
}
|
|
4362
4363
|
}), ve(this, "showAd", () => {
|
|
@@ -4365,7 +4366,7 @@ class cs {
|
|
|
4365
4366
|
return;
|
|
4366
4367
|
}
|
|
4367
4368
|
this.adsContext.beforeReward(async () => {
|
|
4368
|
-
var i, n, r, o, s, a, d, u, l, c, h, f,
|
|
4369
|
+
var i, n, r, o, s, a, d, u, l, c, h, f, v, y;
|
|
4369
4370
|
(n = (i = this.adsContext) == null ? void 0 : i.beforeAd) == null || n.call(i);
|
|
4370
4371
|
const e = nt();
|
|
4371
4372
|
if (!e) {
|
|
@@ -4380,7 +4381,7 @@ class cs {
|
|
|
4380
4381
|
}
|
|
4381
4382
|
w.rewardGranted ? ((d = this.adsContext) == null || d.adViewed(), (l = (u = this.adsContext) == null ? void 0 : u.afterAd) == null || l.call(u), this.reinit("viewed")) : ((c = this.adsContext) == null || c.adDismissed(), (f = (h = this.adsContext) == null ? void 0 : h.afterAd) == null || f.call(h), this.reinit("dismissed"));
|
|
4382
4383
|
} catch (w) {
|
|
4383
|
-
(
|
|
4384
|
+
(y = (v = this.adsContext) == null ? void 0 : v.afterAd) == null || y.call(v), this.reinit("error");
|
|
4384
4385
|
}
|
|
4385
4386
|
});
|
|
4386
4387
|
}), this.init();
|
|
@@ -4458,7 +4459,7 @@ class vs {
|
|
|
4458
4459
|
});
|
|
4459
4460
|
}
|
|
4460
4461
|
}
|
|
4461
|
-
function
|
|
4462
|
+
function te(t, e, i) {
|
|
4462
4463
|
return (e = ys(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4463
4464
|
}
|
|
4464
4465
|
function ys(t) {
|
|
@@ -4479,7 +4480,7 @@ function gs(t, e) {
|
|
|
4479
4480
|
}
|
|
4480
4481
|
class Qs {
|
|
4481
4482
|
constructor(e) {
|
|
4482
|
-
if (
|
|
4483
|
+
if (te(this, "context", void 0), te(this, "contextInfo", void 0), te(this, "providers", {}), te(this, "channelPolicy", void 0), te(this, "adsActionDetection", void 0), te(this, "requestContext", void 0), te(this, "adsRequest", void 0), te(this, "initialized", !1), te(this, "adsIsShowing", !1), te(this, "lastAdBreak", void 0), te(this, "initializedTimeStamp", Date.now()), e)
|
|
4483
4484
|
this.context = e, this.channelPolicy = new nr(this.context), this.adsActionDetection = new er(this.context), this.contextInfo = this.context.getContextInfo(), this.adsRequest = new nn(e), this.requestContext = new Ut(e);
|
|
4484
4485
|
else
|
|
4485
4486
|
throw new Error("JoliboxAdsForGame requires a configuration object");
|
|
@@ -4549,7 +4550,7 @@ class Qs {
|
|
|
4549
4550
|
this.providers.ADSENSE ? this.providers.ADSENSE.adConfig(e) : window.adsbygoogle.push(e);
|
|
4550
4551
|
}
|
|
4551
4552
|
async adBreak(e) {
|
|
4552
|
-
var r, o, s, a, d, u, l, c, h, f,
|
|
4553
|
+
var r, o, s, a, d, u, l, c, h, f, v, y, w, g, A, S;
|
|
4553
4554
|
const i = Date.now();
|
|
4554
4555
|
if (i - this.initializedTimeStamp < 3e3) {
|
|
4555
4556
|
(r = e.adBreakDone) == null || r.call(e, {
|
|
@@ -4597,7 +4598,7 @@ class Qs {
|
|
|
4597
4598
|
return;
|
|
4598
4599
|
}
|
|
4599
4600
|
try {
|
|
4600
|
-
const
|
|
4601
|
+
const p = await this.adsRequest.getAFGAdsInfo(e.type), _ = p == null ? void 0 : p.data, E = p == null ? void 0 : p.code;
|
|
4601
4602
|
if (E === "BYPASS_ADS") {
|
|
4602
4603
|
switch (e.type) {
|
|
4603
4604
|
case "preroll": {
|
|
@@ -4610,8 +4611,8 @@ class Qs {
|
|
|
4610
4611
|
}
|
|
4611
4612
|
case "reward": {
|
|
4612
4613
|
e.beforeReward(() => {
|
|
4613
|
-
var
|
|
4614
|
-
(
|
|
4614
|
+
var b, ee, _e, L;
|
|
4615
|
+
(b = e.beforeAd) == null || b.call(e), (ee = e.adViewed) == null || ee.call(e), (_e = e.afterAd) == null || _e.call(e), (L = e.adBreakDone) == null || L.call(e, {
|
|
4615
4616
|
breakType: e.type,
|
|
4616
4617
|
breakName: e.name,
|
|
4617
4618
|
breakFormat: "reward",
|
|
@@ -4632,7 +4633,7 @@ class Qs {
|
|
|
4632
4633
|
}
|
|
4633
4634
|
return;
|
|
4634
4635
|
}
|
|
4635
|
-
if (!
|
|
4636
|
+
if (!_ || E !== "SUCCESS") {
|
|
4636
4637
|
(f = e.adBreakDone) == null || f.call(e, {
|
|
4637
4638
|
breakType: e.type,
|
|
4638
4639
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
@@ -4641,8 +4642,8 @@ class Qs {
|
|
|
4641
4642
|
});
|
|
4642
4643
|
return;
|
|
4643
4644
|
} else {
|
|
4644
|
-
if (
|
|
4645
|
-
(
|
|
4645
|
+
if (_.length === 0) {
|
|
4646
|
+
(v = e.adBreakDone) == null || v.call(e, {
|
|
4646
4647
|
breakType: e.type,
|
|
4647
4648
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
4648
4649
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
@@ -4650,40 +4651,40 @@ class Qs {
|
|
|
4650
4651
|
});
|
|
4651
4652
|
return;
|
|
4652
4653
|
}
|
|
4653
|
-
let
|
|
4654
|
-
const
|
|
4654
|
+
let b = !0, ee = null;
|
|
4655
|
+
const _e = new Yn(this.context);
|
|
4655
4656
|
this.adsActionDetection.adBreakIsShowing = !0;
|
|
4656
|
-
const L =
|
|
4657
|
-
seq: (w = (
|
|
4657
|
+
const L = _.filter((I) => I.isNative).sort((I, Y) => I.seq - Y.seq), C = _.filter((I) => !I.isNative).sort((I, Y) => I.seq - Y.seq), W = {
|
|
4658
|
+
seq: (w = (y = L[0]) == null ? void 0 : y.seq) != null ? w : 0,
|
|
4658
4659
|
provider: "INTERNAL_NATIVE",
|
|
4659
4660
|
params: L
|
|
4660
4661
|
};
|
|
4661
|
-
let
|
|
4662
|
-
for (L.length > 0 ?
|
|
4662
|
+
let G;
|
|
4663
|
+
for (L.length > 0 ? G = [W].concat(C) : G = C, G = G.sort((I, Y) => I.seq - Y.seq).map((I, Y) => zt(vt({}, I), {
|
|
4663
4664
|
seq: Y
|
|
4664
4665
|
// re-assign seq
|
|
4665
|
-
}));
|
|
4666
|
-
const I =
|
|
4666
|
+
})); G.length > 0; ) {
|
|
4667
|
+
const I = G.shift(), Y = this.providers[I.provider];
|
|
4667
4668
|
if (Y) {
|
|
4668
|
-
const [sn, an] = await
|
|
4669
|
+
const [sn, an] = await _e.callAdBreakAndContinue(Y, e, I, (jt) => {
|
|
4669
4670
|
var Vt;
|
|
4670
4671
|
this.adsIsShowing = jt, (Vt = this.context.eventEmitter) == null || Vt.emit("isAdShowing", jt);
|
|
4671
4672
|
});
|
|
4672
|
-
|
|
4673
|
+
b = sn, ee = an;
|
|
4673
4674
|
} else
|
|
4674
|
-
|
|
4675
|
+
b = !0, ee = {
|
|
4675
4676
|
breakType: e.type,
|
|
4676
4677
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
4677
4678
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
4678
4679
|
breakStatus: "notReady"
|
|
4679
4680
|
};
|
|
4680
|
-
if (!
|
|
4681
|
+
if (!b)
|
|
4681
4682
|
break;
|
|
4682
4683
|
}
|
|
4683
|
-
|
|
4684
|
+
b && ee && ((g = e.adBreakDone) == null || g.call(e, ee));
|
|
4684
4685
|
}
|
|
4685
|
-
} catch (
|
|
4686
|
-
(
|
|
4686
|
+
} catch (p) {
|
|
4687
|
+
(A = e.adBreakDone) == null || A.call(e, {
|
|
4687
4688
|
breakType: e.type,
|
|
4688
4689
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
4689
4690
|
breakStatus: "noAdPreloaded"
|
|
@@ -4700,10 +4701,10 @@ function Xe(t, e, i) {
|
|
|
4700
4701
|
return (e = ws(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4701
4702
|
}
|
|
4702
4703
|
function ws(t) {
|
|
4703
|
-
var e =
|
|
4704
|
+
var e = As(t, "string");
|
|
4704
4705
|
return typeof e == "symbol" ? e : e + "";
|
|
4705
4706
|
}
|
|
4706
|
-
function
|
|
4707
|
+
function As(t, e) {
|
|
4707
4708
|
if (typeof t != "object" || !t)
|
|
4708
4709
|
return t;
|
|
4709
4710
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4715,7 +4716,7 @@ function bs(t, e) {
|
|
|
4715
4716
|
}
|
|
4716
4717
|
return (e === "string" ? String : Number)(t);
|
|
4717
4718
|
}
|
|
4718
|
-
class
|
|
4719
|
+
class bs {
|
|
4719
4720
|
constructor(e) {
|
|
4720
4721
|
Xe(this, "context", void 0), Xe(this, "currentProvider", void 0), Xe(this, "continueCallback", void 0), Xe(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo();
|
|
4721
4722
|
}
|
|
@@ -4820,8 +4821,8 @@ function Ss(t, e) {
|
|
|
4820
4821
|
class Es {
|
|
4821
4822
|
constructor(e, i, n) {
|
|
4822
4823
|
O(this, "adsLoader", void 0), O(this, "adDisplayContainer", void 0), O(this, "isAdPlaying", !1), O(this, "isContentFinished", !1), O(this, "videoContent", void 0), O(this, "adContainer", void 0), O(this, "adsManager", void 0), O(this, "intervalTimer", void 0), O(this, "completed", !1), O(this, "adTagUrl", void 0), O(this, "notifyRequestAd", void 0), O(this, "notifyLoaded", void 0), O(this, "notifyPlayingAd", void 0), O(this, "notifyCompleted", void 0), O(this, "notifyError", void 0), O(this, "destroy", () => {
|
|
4823
|
-
var r, o, s, a, d, u, l, c, h, f,
|
|
4824
|
-
this.intervalTimer && clearInterval(this.intervalTimer), (r = this.adsManager) == null || r.stop(), (o = this.adDisplayContainer) == null || o.destroy(), (s = this.adsLoader) == null || s.removeEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded), (a = this.adsLoader) == null || a.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (d = this.adsManager) == null || d.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (u = this.adsManager) == null || u.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), (l = this.adsManager) == null || l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), (c = this.adsManager) == null || c.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), (h = this.adsManager) == null || h.removeEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), (f = this.adsManager) == null || f.removeEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), (
|
|
4824
|
+
var r, o, s, a, d, u, l, c, h, f, v;
|
|
4825
|
+
this.intervalTimer && clearInterval(this.intervalTimer), (r = this.adsManager) == null || r.stop(), (o = this.adDisplayContainer) == null || o.destroy(), (s = this.adsLoader) == null || s.removeEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded), (a = this.adsLoader) == null || a.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (d = this.adsManager) == null || d.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (u = this.adsManager) == null || u.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), (l = this.adsManager) == null || l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), (c = this.adsManager) == null || c.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), (h = this.adsManager) == null || h.removeEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), (f = this.adsManager) == null || f.removeEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), (v = this.adsManager) == null || v.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent);
|
|
4825
4826
|
}), O(this, "requestAds", async (r, o) => {
|
|
4826
4827
|
var l;
|
|
4827
4828
|
this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (c) => {
|
|
@@ -4885,7 +4886,7 @@ class Es {
|
|
|
4885
4886
|
}
|
|
4886
4887
|
var rt = /* @__PURE__ */ ((t) => (t[t.ADS_REQUEST_NETWORK_ERROR = 1012] = "ADS_REQUEST_NETWORK_ERROR", t[t.ASSET_FALLBACK_FAILED = 1021] = "ASSET_FALLBACK_FAILED", t[t.AUTOPLAY_DISALLOWED = 1205] = "AUTOPLAY_DISALLOWED", t[t.COMPANION_AD_LOADING_FAILED = 603] = "COMPANION_AD_LOADING_FAILED", t[t.COMPANION_REQUIRED_ERROR = 602] = "COMPANION_REQUIRED_ERROR", t[t.FAILED_TO_REQUEST_ADS = 1005] = "FAILED_TO_REQUEST_ADS", t[t.INVALID_AD_TAG = 1013] = "INVALID_AD_TAG", t[t.INVALID_ADX_EXTENSION = 1105] = "INVALID_ADX_EXTENSION", t[t.INVALID_ARGUMENTS = 1101] = "INVALID_ARGUMENTS", t[t.NONLINEAR_DIMENSIONS_ERROR = 501] = "NONLINEAR_DIMENSIONS_ERROR", t[t.OVERLAY_AD_LOADING_FAILED = 502] = "OVERLAY_AD_LOADING_FAILED", t[t.OVERLAY_AD_PLAYING_FAILED = 500] = "OVERLAY_AD_PLAYING_FAILED", t[t.STREAM_INITIALIZATION_FAILED = 1020] = "STREAM_INITIALIZATION_FAILED", t[t.UNKNOWN_AD_RESPONSE = 1010] = "UNKNOWN_AD_RESPONSE", t[t.UNKNOWN_ERROR = 900] = "UNKNOWN_ERROR", t[t.UNSUPPORTED_LOCALE = 1011] = "UNSUPPORTED_LOCALE", t[t.VAST_ASSET_NOT_FOUND = 1007] = "VAST_ASSET_NOT_FOUND", t[t.VAST_EMPTY_RESPONSE = 1009] = "VAST_EMPTY_RESPONSE", t[t.VAST_LINEAR_ASSET_MISMATCH = 403] = "VAST_LINEAR_ASSET_MISMATCH", t[t.VAST_LOAD_TIMEOUT = 301] = "VAST_LOAD_TIMEOUT", t[t.VAST_MALFORMED_RESPONSE = 100] = "VAST_MALFORMED_RESPONSE", t[t.VAST_MEDIA_LOAD_TIMEOUT = 402] = "VAST_MEDIA_LOAD_TIMEOUT", t[t.VAST_NO_ADS_AFTER_WRAPPER = 303] = "VAST_NO_ADS_AFTER_WRAPPER", t[t.VAST_NONLINEAR_ASSET_MISMATCH = 503] = "VAST_NONLINEAR_ASSET_MISMATCH", t[t.VAST_PROBLEM_DISPLAYING_MEDIA_FILE = 405] = "VAST_PROBLEM_DISPLAYING_MEDIA_FILE", t[t.VAST_SCHEMA_VALIDATION_ERROR = 101] = "VAST_SCHEMA_VALIDATION_ERROR", t[t.VAST_TOO_MANY_REDIRECTS = 302] = "VAST_TOO_MANY_REDIRECTS", t[t.VAST_TRAFFICKING_ERROR = 200] = "VAST_TRAFFICKING_ERROR", t[t.VAST_UNEXPECTED_DURATION_ERROR = 202] = "VAST_UNEXPECTED_DURATION_ERROR", t[t.VAST_UNEXPECTED_LINEARITY = 201] = "VAST_UNEXPECTED_LINEARITY", t[t.VAST_UNSUPPORTED_VERSION = 102] = "VAST_UNSUPPORTED_VERSION", t[t.VAST_WRAPPER_ERROR = 300] = "VAST_WRAPPER_ERROR", t[t.VIDEO_PLAY_ERROR = 400] = "VIDEO_PLAY_ERROR", t[t.VPAID_ERROR = 901] = "VPAID_ERROR", t))(rt || {});
|
|
4887
4888
|
const ks = () => {
|
|
4888
|
-
const t = k(!1), e = k(!1), i = k(null), n =
|
|
4889
|
+
const t = k(!1), e = k(!1), i = k(null), n = Jt(), r = Jt();
|
|
4889
4890
|
return {
|
|
4890
4891
|
visible: t,
|
|
4891
4892
|
canRetry: e,
|
|
@@ -4893,7 +4894,7 @@ const ks = () => {
|
|
|
4893
4894
|
videoRef: n,
|
|
4894
4895
|
adContainerRef: r
|
|
4895
4896
|
};
|
|
4896
|
-
}, Is =
|
|
4897
|
+
}, Is = q`
|
|
4897
4898
|
${M}
|
|
4898
4899
|
position: fixed;
|
|
4899
4900
|
left: 0;
|
|
@@ -4956,14 +4957,14 @@ const ks = () => {
|
|
|
4956
4957
|
};
|
|
4957
4958
|
return Te(() => {
|
|
4958
4959
|
e();
|
|
4959
|
-
}, [e]),
|
|
4960
|
+
}, [e]), m("div", {
|
|
4960
4961
|
className: Is,
|
|
4961
4962
|
style: {
|
|
4962
4963
|
display: n.value ? "block" : "none"
|
|
4963
4964
|
},
|
|
4964
|
-
children:
|
|
4965
|
+
children: m("div", {
|
|
4965
4966
|
className: "ads-wrapper",
|
|
4966
|
-
children: [
|
|
4967
|
+
children: [m("video", {
|
|
4967
4968
|
ref: s,
|
|
4968
4969
|
width: "100%",
|
|
4969
4970
|
height: "100%",
|
|
@@ -4976,25 +4977,25 @@ const ks = () => {
|
|
|
4976
4977
|
animation: "none !important",
|
|
4977
4978
|
objectFit: "contain"
|
|
4978
4979
|
}
|
|
4979
|
-
}),
|
|
4980
|
+
}), m("div", {
|
|
4980
4981
|
id: "ad-container",
|
|
4981
4982
|
ref: a
|
|
4982
|
-
}), o.value ?
|
|
4983
|
+
}), o.value ? m("div", {
|
|
4983
4984
|
className: "retry-button",
|
|
4984
4985
|
onClick: d,
|
|
4985
|
-
children:
|
|
4986
|
+
children: m("svg", {
|
|
4986
4987
|
width: "64",
|
|
4987
4988
|
height: "64",
|
|
4988
4989
|
viewBox: "0 0 64 64",
|
|
4989
4990
|
fill: "none",
|
|
4990
4991
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4991
|
-
children: [
|
|
4992
|
+
children: [m("circle", {
|
|
4992
4993
|
cx: "32",
|
|
4993
4994
|
cy: "32",
|
|
4994
4995
|
r: "32",
|
|
4995
4996
|
fill: "#141416",
|
|
4996
4997
|
fillOpacity: "0.3"
|
|
4997
|
-
}),
|
|
4998
|
+
}), m("path", {
|
|
4998
4999
|
d: "M25.3334 23.3668V40.6334C25.3334 41.9501 26.7834 42.7501 27.9 42.0334L41.4667 33.4001C42.5 32.7501 42.5 31.2501 41.4667 30.5834L27.9 21.9668C26.7834 21.2501 25.3334 22.0501 25.3334 23.3668Z",
|
|
4999
5000
|
fill: "white"
|
|
5000
5001
|
})]
|
|
@@ -5040,7 +5041,7 @@ class Cs {
|
|
|
5040
5041
|
}, s.onerror = o, document.head.appendChild(s);
|
|
5041
5042
|
}
|
|
5042
5043
|
}), this.adsOverlay = document.createElement("div"), this.adsOverlay.id = "jolibox-ima-overlay", document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
|
|
5043
|
-
fe(
|
|
5044
|
+
fe(m(xs, {
|
|
5044
5045
|
state: this.state,
|
|
5045
5046
|
onReady: () => {
|
|
5046
5047
|
this.ima = new Es(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
|
|
@@ -5097,7 +5098,7 @@ class Cs {
|
|
|
5097
5098
|
}), this.context = e;
|
|
5098
5099
|
}
|
|
5099
5100
|
}
|
|
5100
|
-
function
|
|
5101
|
+
function re(t, e, i) {
|
|
5101
5102
|
return (e = Os(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
5102
5103
|
}
|
|
5103
5104
|
function Os(t) {
|
|
@@ -5118,15 +5119,15 @@ function Ds(t, e) {
|
|
|
5118
5119
|
}
|
|
5119
5120
|
class Ps {
|
|
5120
5121
|
constructor(e) {
|
|
5121
|
-
|
|
5122
|
+
re(this, "name", "OKSPIN"), re(this, "initialized", !1), re(this, "initCompleter", null), re(this, "context", void 0), re(this, "adsOverlay", null), re(this, "adsIsShowing", !1), re(this, "state", Xi()), re(this, "init", async (i) => {
|
|
5122
5123
|
var n;
|
|
5123
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), fe(
|
|
5124
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), fe(m(Yi, {
|
|
5124
5125
|
state: this.state
|
|
5125
5126
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
5126
|
-
}),
|
|
5127
|
+
}), re(this, "destroy", () => {
|
|
5127
5128
|
var i;
|
|
5128
5129
|
this.adsOverlay && (fe(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
|
|
5129
|
-
}),
|
|
5130
|
+
}), re(this, "requestAd", (i, n) => {
|
|
5130
5131
|
var s, a, d, u;
|
|
5131
5132
|
if (!this.adsOverlay || !this.initialized) {
|
|
5132
5133
|
(s = i.onAdError) == null || s.call(i, F.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
@@ -5151,7 +5152,7 @@ class Ps {
|
|
|
5151
5152
|
}), this.context = e;
|
|
5152
5153
|
}
|
|
5153
5154
|
}
|
|
5154
|
-
function
|
|
5155
|
+
function ie(t, e, i) {
|
|
5155
5156
|
return (e = Ns(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
5156
5157
|
}
|
|
5157
5158
|
function Ns(t) {
|
|
@@ -5172,19 +5173,19 @@ function Ls(t, e) {
|
|
|
5172
5173
|
}
|
|
5173
5174
|
class Bs {
|
|
5174
5175
|
constructor(e) {
|
|
5175
|
-
|
|
5176
|
+
ie(this, "name", "APPSROCKETS"), ie(this, "initialized", !1), ie(this, "initCompleter", null), ie(this, "context", void 0), ie(this, "adsOverlay", null), ie(this, "adsIsShowing", !1), ie(this, "state", Qi()), ie(this, "processUrl", (i) => {
|
|
5176
5177
|
var s;
|
|
5177
5178
|
const n = this.context.getContextInfo(), r = new URL(i), o = new URLSearchParams(r.search);
|
|
5178
5179
|
return o.has("joliSource") || o.set("joliSource", n.joliSource), o.get("osType") || o.set("osType", n.osType), o.get("runtimeType") || o.set("runtimeType", n.runtimeType), o.get("mode") || o.set("mode", "AFV"), o.get("deviceId") || o.set("deviceId", n.deviceId), o.get("statusBarHeight") || o.set("statusBarHeight", ((s = this.context.getWindowInfo().statusBarHeight) != null ? s : 0).toString()), o.get("adsType") || o.set("adsType", "REWARD_INTERSTITIAL"), r.search = o.toString(), r.toString();
|
|
5179
|
-
}),
|
|
5180
|
+
}), ie(this, "init", async (i) => {
|
|
5180
5181
|
var n;
|
|
5181
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), fe(
|
|
5182
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), fe(m(Zi, {
|
|
5182
5183
|
state: this.state
|
|
5183
5184
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
5184
|
-
}),
|
|
5185
|
+
}), ie(this, "destroy", () => {
|
|
5185
5186
|
var i;
|
|
5186
5187
|
this.adsOverlay && (fe(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
|
|
5187
|
-
}),
|
|
5188
|
+
}), ie(this, "requestAd", (i, n) => {
|
|
5188
5189
|
var d, u, l, c;
|
|
5189
5190
|
if (!this.adsOverlay || !this.initialized) {
|
|
5190
5191
|
(d = i.onAdError) == null || d.call(i, F.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
@@ -5202,8 +5203,8 @@ class Bs {
|
|
|
5202
5203
|
var h;
|
|
5203
5204
|
(h = i.onAdLoaded) == null || h.call(i, void 0);
|
|
5204
5205
|
}, s = (h) => {
|
|
5205
|
-
var f,
|
|
5206
|
-
(
|
|
5206
|
+
var f, v;
|
|
5207
|
+
(v = (f = this.context).handleLinkClicked) == null || v.call(f, h);
|
|
5207
5208
|
}, a = () => {
|
|
5208
5209
|
var h;
|
|
5209
5210
|
(h = i.onAdError) == null || h.call(i, F.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
|
|
@@ -5285,7 +5286,7 @@ class Fs {
|
|
|
5285
5286
|
}), this.context = e, this.contextInfo = e.getContextInfo(), this.insertScript();
|
|
5286
5287
|
}
|
|
5287
5288
|
}
|
|
5288
|
-
function
|
|
5289
|
+
function be(t, e, i) {
|
|
5289
5290
|
return (e = Us(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
5290
5291
|
}
|
|
5291
5292
|
function Us(t) {
|
|
@@ -5306,7 +5307,7 @@ function js(t, e) {
|
|
|
5306
5307
|
}
|
|
5307
5308
|
class Zs {
|
|
5308
5309
|
constructor(e) {
|
|
5309
|
-
if (
|
|
5310
|
+
if (be(this, "context", void 0), be(this, "contextInfo", void 0), be(this, "providers", {}), be(this, "requestContext", void 0), be(this, "adsRequest", void 0), be(this, "initialized", !1), be(this, "preloadedAd", null), e)
|
|
5310
5311
|
this.context = e, this.requestContext = new Ut(e), this.adsRequest = new nn(e, {
|
|
5311
5312
|
reward: !1,
|
|
5312
5313
|
interstitial: !1,
|
|
@@ -5349,7 +5350,18 @@ class Zs {
|
|
|
5349
5350
|
break;
|
|
5350
5351
|
}
|
|
5351
5352
|
}
|
|
5352
|
-
this.adsRequest.cacheAFVInfo(), this.initialized = !0;
|
|
5353
|
+
this.adsRequest.cacheAFVInfo(), this.initialized = !0, this.preload();
|
|
5354
|
+
}
|
|
5355
|
+
/**
|
|
5356
|
+
* Preload ads info and resolve provider options in advance.
|
|
5357
|
+
* If preload fails, requestAd() will fall back to the normal flow.
|
|
5358
|
+
*/
|
|
5359
|
+
preload() {
|
|
5360
|
+
this.adsRequest.getAFVAdsInfo(!0).then((e) => {
|
|
5361
|
+
console.log("[JoliboxSDK] afv preload adsInfo:", e), this.preloadedAd = e;
|
|
5362
|
+
}).catch(() => {
|
|
5363
|
+
this.preloadedAd = null;
|
|
5364
|
+
});
|
|
5353
5365
|
}
|
|
5354
5366
|
/**
|
|
5355
5367
|
* Destroy all providers and reset the initialized state.
|
|
@@ -5358,51 +5370,54 @@ class Zs {
|
|
|
5358
5370
|
const e = Object.values(this.providers);
|
|
5359
5371
|
for (const i of e)
|
|
5360
5372
|
i.destroy();
|
|
5361
|
-
this.initialized = !1;
|
|
5373
|
+
this.initialized = !1, this.preloadedAd = null;
|
|
5362
5374
|
}
|
|
5363
5375
|
async requestAd(e) {
|
|
5364
|
-
var i, n, r, o, s, a, d, u, l, c, h;
|
|
5376
|
+
var i, n, r, o, s, a, d, u, l, c, h, f;
|
|
5365
5377
|
if ((i = this.context.eventEmitter) == null || i.emit("isAdShowing", !0), this.initialized || await this.init(), !this.context.checkNetwork()) {
|
|
5366
|
-
const
|
|
5367
|
-
(n = e.onAdError) == null || n.call(e,
|
|
5378
|
+
const v = F.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
|
|
5379
|
+
(n = e.onAdError) == null || n.call(e, v);
|
|
5368
5380
|
return;
|
|
5369
5381
|
}
|
|
5370
5382
|
try {
|
|
5371
|
-
|
|
5383
|
+
console.log("[JoliboxSDK] requestAd this.preloadedAd:", this.preloadedAd);
|
|
5384
|
+
const v = (r = this.preloadedAd) != null ? r : await this.adsRequest.getAFVAdsInfo(!0);
|
|
5385
|
+
this.preloadedAd = null;
|
|
5386
|
+
const y = v == null ? void 0 : v.code, w = v == null ? void 0 : v.data;
|
|
5372
5387
|
if (y === "BYPASS_ADS") {
|
|
5373
|
-
(
|
|
5388
|
+
(o = e.onAdRequested) == null || o.call(e), (s = e.onAdLoaded) == null || s.call(e, void 0), (a = e.onAdPlaying) == null || a.call(e, void 0), (d = e.onAdCompleted) == null || d.call(e, void 0);
|
|
5374
5389
|
return;
|
|
5375
5390
|
}
|
|
5376
|
-
if (
|
|
5377
|
-
const
|
|
5378
|
-
if (
|
|
5379
|
-
const
|
|
5380
|
-
(
|
|
5391
|
+
if (w) {
|
|
5392
|
+
const g = w.sort((_, E) => _.seq - E.seq);
|
|
5393
|
+
if (g.length === 0) {
|
|
5394
|
+
const _ = F.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
|
|
5395
|
+
(l = e.onAdError) == null || l.call(e, _);
|
|
5381
5396
|
return;
|
|
5382
5397
|
}
|
|
5383
|
-
let
|
|
5384
|
-
const
|
|
5385
|
-
for (;
|
|
5386
|
-
const
|
|
5387
|
-
if (
|
|
5388
|
-
const [
|
|
5389
|
-
|
|
5398
|
+
let A = !0, S = null;
|
|
5399
|
+
const p = new bs(this.context);
|
|
5400
|
+
for (; g.length > 0; ) {
|
|
5401
|
+
const _ = g.shift(), E = this.providers[_.provider];
|
|
5402
|
+
if (E) {
|
|
5403
|
+
const [b, ee] = await p.callAdRequestAndContinue(E, e, _);
|
|
5404
|
+
A = b, S = ee;
|
|
5390
5405
|
} else
|
|
5391
|
-
|
|
5392
|
-
if (!
|
|
5406
|
+
A = !0, S = F.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
|
|
5407
|
+
if (!A)
|
|
5393
5408
|
break;
|
|
5394
5409
|
}
|
|
5395
|
-
|
|
5410
|
+
A && S && ((c = e.onAdError) == null || c.call(e, S));
|
|
5396
5411
|
} else {
|
|
5397
|
-
const
|
|
5398
|
-
(
|
|
5412
|
+
const g = F.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
|
|
5413
|
+
(u = e.onAdError) == null || u.call(e, g);
|
|
5399
5414
|
return;
|
|
5400
5415
|
}
|
|
5401
|
-
} catch (
|
|
5416
|
+
} catch (v) {
|
|
5402
5417
|
const y = F.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
|
|
5403
|
-
(
|
|
5418
|
+
(h = e.onAdError) == null || h.call(e, y);
|
|
5404
5419
|
} finally {
|
|
5405
|
-
(
|
|
5420
|
+
(f = this.context.eventEmitter) == null || f.emit("isAdShowing", !1), this.preload();
|
|
5406
5421
|
}
|
|
5407
5422
|
}
|
|
5408
5423
|
}
|
|
@@ -5410,10 +5425,10 @@ function Ee(t, e, i) {
|
|
|
5410
5425
|
return (e = Vs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
5411
5426
|
}
|
|
5412
5427
|
function Vs(t) {
|
|
5413
|
-
var e =
|
|
5428
|
+
var e = qs(t, "string");
|
|
5414
5429
|
return typeof e == "symbol" ? e : e + "";
|
|
5415
5430
|
}
|
|
5416
|
-
function
|
|
5431
|
+
function qs(t, e) {
|
|
5417
5432
|
if (typeof t != "object" || !t)
|
|
5418
5433
|
return t;
|
|
5419
5434
|
var i = t[Symbol.toPrimitive];
|