@jolibox/ads 1.4.9 → 1.4.10
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/index.js +278 -275
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ var qt = (t, e, i) => e in t ? ln(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
10
10
|
zt.call(e, i) && qt(t, i, e[i]);
|
|
11
11
|
return t;
|
|
12
12
|
}, Wt = (t, e) => un(t, cn(e));
|
|
13
|
-
var
|
|
13
|
+
var Jt = (t, e) => {
|
|
14
14
|
var i = {};
|
|
15
15
|
for (var n in t)
|
|
16
16
|
Kt.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
|
|
@@ -20,7 +20,7 @@ var Ht = (t, e) => {
|
|
|
20
20
|
return i;
|
|
21
21
|
};
|
|
22
22
|
import { options as Te, Component as hn, isValidElement as fn } from "preact";
|
|
23
|
-
import { useRef as mi, useLayoutEffect as vn, useEffect as Ce, useMemo as yn, useState as _e, useCallback as kt, render as ye, createRef as
|
|
23
|
+
import { useRef as mi, useLayoutEffect as vn, useEffect as Ce, useMemo as yn, useState as _e, useCallback as kt, render as ye, createRef as Ht } from "preact/compat";
|
|
24
24
|
import { registerCanIUseContext as gn, invokeNative as gt, offNative as wn, onNative as An } from "@jolibox/native-bridge";
|
|
25
25
|
var Si = Object.defineProperty, bn = Object.defineProperties, pn = Object.getOwnPropertyDescriptors, Yt = Object.getOwnPropertySymbols, _n = Object.prototype.hasOwnProperty, mn = Object.prototype.propertyIsEnumerable, Xt = (t, e, i) => e in t ? Si(t, e, {
|
|
26
26
|
enumerable: !0,
|
|
@@ -48,14 +48,14 @@ var Si = Object.defineProperty, bn = Object.defineProperties, pn = Object.getOwn
|
|
|
48
48
|
var o = (d) => {
|
|
49
49
|
try {
|
|
50
50
|
a(i.next(d));
|
|
51
|
-
} catch (
|
|
52
|
-
r(
|
|
51
|
+
} catch (l) {
|
|
52
|
+
r(l);
|
|
53
53
|
}
|
|
54
54
|
}, s = (d) => {
|
|
55
55
|
try {
|
|
56
56
|
a(i.throw(d));
|
|
57
|
-
} catch (
|
|
58
|
-
r(
|
|
57
|
+
} catch (l) {
|
|
58
|
+
r(l);
|
|
59
59
|
}
|
|
60
60
|
}, a = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(o, s);
|
|
61
61
|
a((i = i.apply(t, e)).next());
|
|
@@ -286,14 +286,14 @@ var D = It, jn = class {
|
|
|
286
286
|
console.info("[Jolibox SDK] Emitter is _disposed");
|
|
287
287
|
};
|
|
288
288
|
i && (e = e.bind(i));
|
|
289
|
-
let
|
|
290
|
-
return this._listeners ? this._listeners instanceof Be ? this._listeners = [this._listeners,
|
|
291
|
-
var
|
|
289
|
+
let l = new Be(e);
|
|
290
|
+
return this._listeners ? this._listeners instanceof Be ? this._listeners = [this._listeners, l] : this._listeners.push(l) : ((r = (n = this.options) == null ? void 0 : n.onWillAddFirstListener) == null || r.call(n, this), this._listeners = l, (s = (o = this.options) == null ? void 0 : o.onDidFirstListener) == null || s.call(o, this)), (d = (a = this.options) == null ? void 0 : a.onDidAddListener) == null || d.call(a, this), this._size++, () => {
|
|
291
|
+
var u, c, h, f;
|
|
292
292
|
if (!this._disposed) {
|
|
293
293
|
if (this._listeners instanceof Be)
|
|
294
|
-
this._listeners.id ===
|
|
294
|
+
this._listeners.id === l.id && (this._listeners = void 0, this._size = 0, (c = (u = this.options) == null ? void 0 : u.onDidRemoveLastListener) == null || c.call(u));
|
|
295
295
|
else if (this._listeners) {
|
|
296
|
-
let v = this._listeners.indexOf(
|
|
296
|
+
let v = this._listeners.indexOf(l);
|
|
297
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
|
}
|
|
@@ -408,12 +408,12 @@ var wt = Symbol.for("Jolibox.hostEmitter"), Wn = () => {
|
|
|
408
408
|
}), globalThis[wt];
|
|
409
409
|
};
|
|
410
410
|
Wn();
|
|
411
|
-
function
|
|
411
|
+
function Jn(t, e) {
|
|
412
412
|
let i = Math.min(t.length, e.length);
|
|
413
413
|
for (let n = 0; n < i; n++)
|
|
414
|
-
|
|
414
|
+
Hn(t[n], e[n]);
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function Hn(t, e) {
|
|
417
417
|
if (Rn(e)) {
|
|
418
418
|
if (typeof t !== e)
|
|
419
419
|
throw new Error(`argument does not match constraint: typeof ${e}`);
|
|
@@ -443,7 +443,7 @@ var Tt = class {
|
|
|
443
443
|
t.handler = function() {
|
|
444
444
|
for (var r = arguments.length, o = new Array(r), s = 0; s < r; s++)
|
|
445
445
|
o[s] = arguments[s];
|
|
446
|
-
return
|
|
446
|
+
return Jn(o, i), n(...o);
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
449
|
let {
|
|
@@ -522,7 +522,7 @@ var ti = class {
|
|
|
522
522
|
}
|
|
523
523
|
};
|
|
524
524
|
ti = Ei([ki], ti);
|
|
525
|
-
function
|
|
525
|
+
function J(t, e, i) {
|
|
526
526
|
return (e = Yn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
527
527
|
}
|
|
528
528
|
function Yn(t) {
|
|
@@ -554,7 +554,7 @@ const Se = (t) => t ? function() {
|
|
|
554
554
|
};
|
|
555
555
|
class Qn {
|
|
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;
|
|
@@ -639,7 +639,7 @@ class Qn {
|
|
|
639
639
|
}
|
|
640
640
|
wrapAdBreakDone(e) {
|
|
641
641
|
return (i) => {
|
|
642
|
-
var n, r, o, s, a, d,
|
|
642
|
+
var n, r, o, s, a, d, l, u, c;
|
|
643
643
|
switch (this.adsHasResponse = !0, this.context.track("CallAdBreakDone", {
|
|
644
644
|
provider: (r = (n = this.currentProvider) == null ? void 0 : n.name) != null ? r : null,
|
|
645
645
|
breakType: i.breakType,
|
|
@@ -658,7 +658,7 @@ class Qn {
|
|
|
658
658
|
case "dismissed":
|
|
659
659
|
case "error": {
|
|
660
660
|
const h = Se(e);
|
|
661
|
-
h == null || h(i), (
|
|
661
|
+
h == null || h(i), (l = this.adIsShowingCallback) == null || l.call(this, !1), (u = this.continueCallback) == null || u.call(this, [!1, i]);
|
|
662
662
|
break;
|
|
663
663
|
}
|
|
664
664
|
default: {
|
|
@@ -711,13 +711,13 @@ class Qn {
|
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
window.setTimeout(() => {
|
|
714
|
-
var a, d,
|
|
714
|
+
var a, d, l, u, c, h, f;
|
|
715
715
|
this.adsHasResponse || (this.context.track("CallAdBreakTimeout", {
|
|
716
716
|
type: i.type,
|
|
717
717
|
provider: (d = (a = this.currentProvider) == null ? void 0 : a.name) != null ? d : null
|
|
718
718
|
}), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_TIMEOUT", {
|
|
719
719
|
type: i.type,
|
|
720
|
-
provider: (
|
|
720
|
+
provider: (u = (l = this.currentProvider) == null ? void 0 : l.name) != null ? u : null
|
|
721
721
|
}), (h = this.continueCallback) == null || h.call(this, [!0, {
|
|
722
722
|
breakType: i.type,
|
|
723
723
|
breakName: i.type === "preroll" ? "" : (c = i.name) != null ? c : "",
|
|
@@ -728,7 +728,7 @@ class Qn {
|
|
|
728
728
|
});
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function Je(t, e, i) {
|
|
732
732
|
return (e = Zn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
733
733
|
}
|
|
734
734
|
function Zn(t) {
|
|
@@ -749,11 +749,11 @@ function er(t, e) {
|
|
|
749
749
|
}
|
|
750
750
|
class tr {
|
|
751
751
|
constructor(e) {
|
|
752
|
-
|
|
752
|
+
Je(this, "context", void 0), Je(this, "adBreakIsShowing", !1), Je(this, "reportPageJumpOut", () => {
|
|
753
753
|
this.context.track("AdBreakJumpOut", {
|
|
754
754
|
context: "AdsActionDetection"
|
|
755
755
|
});
|
|
756
|
-
}),
|
|
756
|
+
}), Je(this, "reportPageHide", () => {
|
|
757
757
|
this.context.track("AdBreakHide", {
|
|
758
758
|
context: "AdsActionDetection"
|
|
759
759
|
});
|
|
@@ -764,7 +764,7 @@ class tr {
|
|
|
764
764
|
});
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function He(t, e, i) {
|
|
768
768
|
return (e = ir(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
769
769
|
}
|
|
770
770
|
function ir(t) {
|
|
@@ -785,7 +785,7 @@ function nr(t, e) {
|
|
|
785
785
|
}
|
|
786
786
|
class rr {
|
|
787
787
|
constructor(e) {
|
|
788
|
-
|
|
788
|
+
He(this, "configs", null), He(this, "firstRun", !0), He(this, "context", void 0), He(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
|
|
789
789
|
}
|
|
790
790
|
async init() {
|
|
791
791
|
try {
|
|
@@ -839,7 +839,7 @@ class ar {
|
|
|
839
839
|
}), de(this, "adConfig", (n) => {
|
|
840
840
|
const s = n, {
|
|
841
841
|
onReady: r
|
|
842
|
-
} = s, o =
|
|
842
|
+
} = s, o = Jt(s, [
|
|
843
843
|
"onReady"
|
|
844
844
|
]);
|
|
845
845
|
this.context.track("CallAdConfig", o), this.configured ? console.warn("Ad config already set, skipping") : (this.configured = !0, this.push(n));
|
|
@@ -865,20 +865,20 @@ class ar {
|
|
|
865
865
|
fullWidthResponsive: a,
|
|
866
866
|
style: d
|
|
867
867
|
} = n;
|
|
868
|
-
let
|
|
868
|
+
let l;
|
|
869
869
|
if (!r)
|
|
870
870
|
throw new Error("targeting element is required");
|
|
871
|
-
if (typeof r == "string" ?
|
|
871
|
+
if (typeof r == "string" ? l = document.querySelector(r) : l = r, !l)
|
|
872
872
|
throw new Error("targeting element not found");
|
|
873
|
-
let
|
|
874
|
-
if (
|
|
873
|
+
let u = o;
|
|
874
|
+
if (u || (u = this.initParams.unitId), !u)
|
|
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
|
-
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",
|
|
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", u), 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
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",
|
|
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", l.appendChild(h), h.appendChild(A);
|
|
880
880
|
} else
|
|
881
|
-
|
|
881
|
+
l.appendChild(h), new MutationObserver((S) => {
|
|
882
882
|
S.forEach((p) => {
|
|
883
883
|
if (p.type === "attributes" && p.attributeName === "data-ad-status") {
|
|
884
884
|
const _ = h.getAttribute("data-ad-status");
|
|
@@ -1089,7 +1089,7 @@ function Er(t) {
|
|
|
1089
1089
|
return Li(tt("", null, null, null, [""], t = Ni(t), 0, [0], t));
|
|
1090
1090
|
}
|
|
1091
1091
|
function tt(t, e, i, n, r, o, s, a, d) {
|
|
1092
|
-
for (var
|
|
1092
|
+
for (var l = 0, u = 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
1093
|
switch (v = A, A = Z()) {
|
|
1094
1094
|
case 40:
|
|
1095
1095
|
if (v != 108 && $(b, c - 1) == 58) {
|
|
@@ -1121,7 +1121,7 @@ function tt(t, e, i, n, r, o, s, a, d) {
|
|
|
1121
1121
|
}
|
|
1122
1122
|
break;
|
|
1123
1123
|
case 123 * y:
|
|
1124
|
-
a[
|
|
1124
|
+
a[l++] = se(b) * g;
|
|
1125
1125
|
case 125 * y:
|
|
1126
1126
|
case 59:
|
|
1127
1127
|
case 0:
|
|
@@ -1129,14 +1129,14 @@ function tt(t, e, i, n, r, o, s, a, d) {
|
|
|
1129
1129
|
case 0:
|
|
1130
1130
|
case 125:
|
|
1131
1131
|
w = 0;
|
|
1132
|
-
case 59 +
|
|
1132
|
+
case 59 + u:
|
|
1133
1133
|
g == -1 && (b = R(b, /\f/g, "")), f > 0 && se(b) - c && Ye(f > 32 ? ni(b + ";", n, i, c - 1) : ni(R(b, " ", "") + ";", n, i, c - 2), d);
|
|
1134
1134
|
break;
|
|
1135
1135
|
case 59:
|
|
1136
1136
|
b += ";";
|
|
1137
1137
|
default:
|
|
1138
|
-
if (Ye(E = ii(b, e, i,
|
|
1139
|
-
if (
|
|
1138
|
+
if (Ye(E = ii(b, e, i, l, u, r, a, S, p = [], _ = [], c), o), A === 123)
|
|
1139
|
+
if (u === 0)
|
|
1140
1140
|
tt(b, e, E, E, p, o, c, a, _);
|
|
1141
1141
|
else
|
|
1142
1142
|
switch (h === 99 && $(b, 3) === 110 ? 100 : h) {
|
|
@@ -1150,7 +1150,7 @@ function tt(t, e, i, n, r, o, s, a, d) {
|
|
|
1150
1150
|
tt(b, E, E, E, [""], _, 0, a, _);
|
|
1151
1151
|
}
|
|
1152
1152
|
}
|
|
1153
|
-
|
|
1153
|
+
l = u = f = 0, y = g = 1, S = b = "", c = s;
|
|
1154
1154
|
break;
|
|
1155
1155
|
case 58:
|
|
1156
1156
|
c = 1 + se(b), f = v;
|
|
@@ -1163,13 +1163,13 @@ function tt(t, e, i, n, r, o, s, a, d) {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
switch (b += ct(A), A * y) {
|
|
1165
1165
|
case 38:
|
|
1166
|
-
g =
|
|
1166
|
+
g = u > 0 ? 1 : (b += "\f", -1);
|
|
1167
1167
|
break;
|
|
1168
1168
|
case 44:
|
|
1169
|
-
a[
|
|
1169
|
+
a[l++] = (se(b) - 1) * g, g = 1;
|
|
1170
1170
|
break;
|
|
1171
1171
|
case 64:
|
|
1172
|
-
ae() === 45 && (b += et(Z())), h = ae(),
|
|
1172
|
+
ae() === 45 && (b += et(Z())), h = ae(), u = c = se(S = b += Sr(Ze())), A++;
|
|
1173
1173
|
break;
|
|
1174
1174
|
case 45:
|
|
1175
1175
|
v === 45 && se(b) == 2 && (y = 0);
|
|
@@ -1177,11 +1177,11 @@ function tt(t, e, i, n, r, o, s, a, d) {
|
|
|
1177
1177
|
}
|
|
1178
1178
|
return o;
|
|
1179
1179
|
}
|
|
1180
|
-
function ii(t, e, i, n, r, o, s, a, d,
|
|
1180
|
+
function ii(t, e, i, n, r, o, s, a, d, l, u) {
|
|
1181
1181
|
for (var c = r - 1, h = r === 0 ? o : [""], f = Ft(h), v = 0, y = 0, w = 0; v < n; ++v)
|
|
1182
1182
|
for (var g = 0, A = Ve(t, c + 1, c = fr(y = s[v])), S = t; g < f; ++g)
|
|
1183
1183
|
(S = Di(y > 0 ? h[g] + " " + A : R(A, /&\f/g, h[g]))) && (d[w++] = S);
|
|
1184
|
-
return ft(t, e, i, r === 0 ? Mt : a, d,
|
|
1184
|
+
return ft(t, e, i, r === 0 ? Mt : a, d, l, u);
|
|
1185
1185
|
}
|
|
1186
1186
|
function kr(t, e, i) {
|
|
1187
1187
|
return ft(t, e, i, Ci, ct(Ar()), Ve(t, 2, -2), 0);
|
|
@@ -1265,9 +1265,9 @@ var Cr = function(e, i, n) {
|
|
|
1265
1265
|
return;
|
|
1266
1266
|
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !ri.get(n)) && !r) {
|
|
1267
1267
|
ri.set(e, !0);
|
|
1268
|
-
for (var o = [], s = Dr(i, o), a = n.props, d = 0,
|
|
1269
|
-
for (var
|
|
1270
|
-
e.props[
|
|
1268
|
+
for (var o = [], s = Dr(i, o), a = n.props, d = 0, l = 0; d < s.length; d++)
|
|
1269
|
+
for (var u = 0; u < a.length; u++, l++)
|
|
1270
|
+
e.props[l] = o[d] ? s[d].replace(/&\f/g, a[u]) : a[u] + " " + s[d];
|
|
1271
1271
|
}
|
|
1272
1272
|
}
|
|
1273
1273
|
}, Nr = function(e) {
|
|
@@ -1443,15 +1443,15 @@ var Lr = function(e, i, n, r) {
|
|
|
1443
1443
|
a.push(y);
|
|
1444
1444
|
}
|
|
1445
1445
|
);
|
|
1446
|
-
var d,
|
|
1446
|
+
var d, l = [Pr, Nr];
|
|
1447
1447
|
{
|
|
1448
|
-
var
|
|
1449
|
-
|
|
1450
|
-
})], h = xr(
|
|
1448
|
+
var u, c = [Ir, Rr(function(y) {
|
|
1449
|
+
u.insert(y);
|
|
1450
|
+
})], h = xr(l.concat(r, c)), f = function(w) {
|
|
1451
1451
|
return Re(Er(w), h);
|
|
1452
1452
|
};
|
|
1453
1453
|
d = function(w, g, A, S) {
|
|
1454
|
-
|
|
1454
|
+
u = A, f(w ? w + "{" + g.styles + "}" : g.styles), S && (v.inserted[g.name] = !0);
|
|
1455
1455
|
};
|
|
1456
1456
|
}
|
|
1457
1457
|
var v = {
|
|
@@ -1596,8 +1596,8 @@ function dt(t, e, i) {
|
|
|
1596
1596
|
var d = i;
|
|
1597
1597
|
if (e == null)
|
|
1598
1598
|
return d;
|
|
1599
|
-
var
|
|
1600
|
-
return
|
|
1599
|
+
var l = e[d];
|
|
1600
|
+
return l !== void 0 ? l : d;
|
|
1601
1601
|
}
|
|
1602
1602
|
function Vr(t, e, i) {
|
|
1603
1603
|
var n = "";
|
|
@@ -1614,15 +1614,15 @@ function Vr(t, e, i) {
|
|
|
1614
1614
|
for (var d = 0; d < s.length; d++)
|
|
1615
1615
|
oi(s[d]) && (n += At(o) + ":" + si(o, s[d]) + ";");
|
|
1616
1616
|
else {
|
|
1617
|
-
var
|
|
1617
|
+
var l = dt(t, e, s);
|
|
1618
1618
|
switch (o) {
|
|
1619
1619
|
case "animation":
|
|
1620
1620
|
case "animationName": {
|
|
1621
|
-
n += At(o) + ":" +
|
|
1621
|
+
n += At(o) + ":" + l + ";";
|
|
1622
1622
|
break;
|
|
1623
1623
|
}
|
|
1624
1624
|
default:
|
|
1625
|
-
n += o + "{" +
|
|
1625
|
+
n += o + "{" + l + "}";
|
|
1626
1626
|
}
|
|
1627
1627
|
}
|
|
1628
1628
|
}
|
|
@@ -1647,9 +1647,9 @@ function bt(t, e, i) {
|
|
|
1647
1647
|
r += d[a];
|
|
1648
1648
|
}
|
|
1649
1649
|
ai.lastIndex = 0;
|
|
1650
|
-
for (var
|
|
1651
|
-
|
|
1652
|
-
var c = $r(r) +
|
|
1650
|
+
for (var l = "", u; (u = ai.exec(r)) !== null; )
|
|
1651
|
+
l += "-" + u[1];
|
|
1652
|
+
var c = $r(r) + l;
|
|
1653
1653
|
return {
|
|
1654
1654
|
name: c,
|
|
1655
1655
|
styles: r,
|
|
@@ -1694,27 +1694,27 @@ var Kr = function(e) {
|
|
|
1694
1694
|
this.isSpeedy = a;
|
|
1695
1695
|
}, i.compat = !0;
|
|
1696
1696
|
var n = function() {
|
|
1697
|
-
for (var d = arguments.length,
|
|
1698
|
-
u
|
|
1699
|
-
var c = bt(
|
|
1697
|
+
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1698
|
+
l[u] = arguments[u];
|
|
1699
|
+
var c = bt(l, i.registered, void 0);
|
|
1700
1700
|
return qr(i, c), i.key + "-" + c.name;
|
|
1701
1701
|
}, r = function() {
|
|
1702
|
-
for (var d = arguments.length,
|
|
1703
|
-
u
|
|
1704
|
-
var c = bt(
|
|
1702
|
+
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1703
|
+
l[u] = arguments[u];
|
|
1704
|
+
var c = bt(l, i.registered), h = "animation-" + c.name;
|
|
1705
1705
|
return di(i, {
|
|
1706
1706
|
name: c.name,
|
|
1707
1707
|
styles: "@keyframes " + h + "{" + c.styles + "}"
|
|
1708
1708
|
}), h;
|
|
1709
1709
|
}, o = function() {
|
|
1710
|
-
for (var d = arguments.length,
|
|
1711
|
-
u
|
|
1712
|
-
var c = bt(
|
|
1710
|
+
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1711
|
+
l[u] = arguments[u];
|
|
1712
|
+
var c = bt(l, i.registered);
|
|
1713
1713
|
di(i, c);
|
|
1714
1714
|
}, s = function() {
|
|
1715
|
-
for (var d = arguments.length,
|
|
1716
|
-
u
|
|
1717
|
-
return li(i.registered, n, zr(
|
|
1715
|
+
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1716
|
+
l[u] = arguments[u];
|
|
1717
|
+
return li(i.registered, n, zr(l));
|
|
1718
1718
|
};
|
|
1719
1719
|
return {
|
|
1720
1720
|
css: n,
|
|
@@ -1722,8 +1722,8 @@ var Kr = function(e) {
|
|
|
1722
1722
|
injectGlobal: o,
|
|
1723
1723
|
keyframes: r,
|
|
1724
1724
|
hydrate: function(d) {
|
|
1725
|
-
d.forEach(function(
|
|
1726
|
-
i.inserted[
|
|
1725
|
+
d.forEach(function(l) {
|
|
1726
|
+
i.inserted[l] = !0;
|
|
1727
1727
|
});
|
|
1728
1728
|
},
|
|
1729
1729
|
flush: function() {
|
|
@@ -1762,16 +1762,16 @@ var Kr = function(e) {
|
|
|
1762
1762
|
}, Wr = Kr({
|
|
1763
1763
|
key: "css"
|
|
1764
1764
|
}), G = Wr.css, Dt, Q, pt, ui, ci = 0, Fi = [], B = Te, hi = B.__b, fi = B.__r, vi = B.diffed, yi = B.__c, gi = B.unmount, wi = B.__;
|
|
1765
|
-
function
|
|
1765
|
+
function Jr(t, e) {
|
|
1766
1766
|
B.__h && B.__h(Q, t, ci || e), ci = 0;
|
|
1767
1767
|
var i = Q.__H || (Q.__H = { __: [], __h: [] });
|
|
1768
1768
|
return t >= i.__.length && i.__.push({}), i.__[t];
|
|
1769
1769
|
}
|
|
1770
1770
|
function Ui(t, e) {
|
|
1771
|
-
var i =
|
|
1771
|
+
var i = Jr(Dt++, 7);
|
|
1772
1772
|
return Xr(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
|
|
1773
1773
|
}
|
|
1774
|
-
function
|
|
1774
|
+
function Hr() {
|
|
1775
1775
|
for (var t; t = Fi.shift(); )
|
|
1776
1776
|
if (t.__P && t.__H)
|
|
1777
1777
|
try {
|
|
@@ -1793,7 +1793,7 @@ B.__b = function(t) {
|
|
|
1793
1793
|
}, B.diffed = function(t) {
|
|
1794
1794
|
vi && vi(t);
|
|
1795
1795
|
var e = t.__c;
|
|
1796
|
-
e && e.__H && (e.__H.__h.length && (Fi.push(e) !== 1 && ui === B.requestAnimationFrame || ((ui = B.requestAnimationFrame) || Yr)(
|
|
1796
|
+
e && e.__H && (e.__H.__h.length && (Fi.push(e) !== 1 && ui === B.requestAnimationFrame || ((ui = B.requestAnimationFrame) || Yr)(Hr)), e.__H.__.forEach(function(i) {
|
|
1797
1797
|
i.u && (i.__H = i.u), i.u = void 0;
|
|
1798
1798
|
})), pt = Q = null;
|
|
1799
1799
|
}, B.__c = function(t, e) {
|
|
@@ -2093,8 +2093,8 @@ function Ne(t, e) {
|
|
|
2093
2093
|
function ut(t) {
|
|
2094
2094
|
_t && _t(), _t = t && t.S();
|
|
2095
2095
|
}
|
|
2096
|
-
function
|
|
2097
|
-
var e = this, i = t.data, n =
|
|
2096
|
+
function Ji(t) {
|
|
2097
|
+
var e = this, i = t.data, n = Hi(i);
|
|
2098
2098
|
n.value = i;
|
|
2099
2099
|
var r = Ui(function() {
|
|
2100
2100
|
for (var a = e, d = e.__v; d = d.__; )
|
|
@@ -2102,25 +2102,25 @@ function Hi(t) {
|
|
|
2102
2102
|
d.__c.__$f |= 4;
|
|
2103
2103
|
break;
|
|
2104
2104
|
}
|
|
2105
|
-
var
|
|
2105
|
+
var l = Ue(function() {
|
|
2106
2106
|
var f = n.value.value;
|
|
2107
2107
|
return f === 0 ? 0 : f === !0 ? "" : f || "";
|
|
2108
|
-
}),
|
|
2109
|
-
return !Array.isArray(
|
|
2108
|
+
}), u = Ue(function() {
|
|
2109
|
+
return !Array.isArray(l.value) && !fn(l.value);
|
|
2110
2110
|
}), c = ze(function() {
|
|
2111
|
-
if (this.N = Yi,
|
|
2112
|
-
var f =
|
|
2111
|
+
if (this.N = Yi, u.value) {
|
|
2112
|
+
var f = l.value;
|
|
2113
2113
|
a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = f);
|
|
2114
2114
|
}
|
|
2115
2115
|
}), h = e.__$u.d;
|
|
2116
2116
|
return e.__$u.d = function() {
|
|
2117
2117
|
c(), h.call(this);
|
|
2118
|
-
}, [
|
|
2118
|
+
}, [u, l];
|
|
2119
2119
|
}, []), o = r[0], s = r[1];
|
|
2120
2120
|
return o.value ? s.peek() : s.value;
|
|
2121
2121
|
}
|
|
2122
|
-
|
|
2123
|
-
Object.defineProperties(U.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value:
|
|
2122
|
+
Ji.displayName = "_st";
|
|
2123
|
+
Object.defineProperties(U.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: Ji }, props: { configurable: !0, get: function() {
|
|
2124
2124
|
return { data: this };
|
|
2125
2125
|
} }, __b: { configurable: !0, value: 1 } });
|
|
2126
2126
|
Ne("__b", function(t, e) {
|
|
@@ -2164,8 +2164,8 @@ Ne("diffed", function(t, e) {
|
|
|
2164
2164
|
else
|
|
2165
2165
|
o = {}, i.U = o;
|
|
2166
2166
|
for (var d in n) {
|
|
2167
|
-
var
|
|
2168
|
-
|
|
2167
|
+
var l = o[d], u = n[d];
|
|
2168
|
+
l === void 0 ? (l = eo(i, d, u, r), o[d] = l) : l.o(u, r);
|
|
2169
2169
|
}
|
|
2170
2170
|
}
|
|
2171
2171
|
}
|
|
@@ -2224,7 +2224,7 @@ hn.prototype.shouldComponentUpdate = function(t, e) {
|
|
|
2224
2224
|
return !0;
|
|
2225
2225
|
return !1;
|
|
2226
2226
|
};
|
|
2227
|
-
function
|
|
2227
|
+
function Hi(t) {
|
|
2228
2228
|
return Ui(function() {
|
|
2229
2229
|
return k(t);
|
|
2230
2230
|
}, []);
|
|
@@ -2284,11 +2284,11 @@ function m(t, e, i, n, r, o) {
|
|
|
2284
2284
|
if ("ref" in d)
|
|
2285
2285
|
for (a in d = {}, e)
|
|
2286
2286
|
a == "ref" ? s = e[a] : d[a] = e[a];
|
|
2287
|
-
var
|
|
2287
|
+
var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --ro, __i: -1, __u: 0, __source: r, __self: o };
|
|
2288
2288
|
if (typeof t == "function" && (s = t.defaultProps))
|
|
2289
2289
|
for (a in s)
|
|
2290
2290
|
d[a] === void 0 && (d[a] = s[a]);
|
|
2291
|
-
return Te.vnode && Te.vnode(
|
|
2291
|
+
return Te.vnode && Te.vnode(l), l;
|
|
2292
2292
|
}
|
|
2293
2293
|
const oo = G`
|
|
2294
2294
|
${M}
|
|
@@ -2467,7 +2467,7 @@ const oo = G`
|
|
|
2467
2467
|
const {
|
|
2468
2468
|
startTimestamp: o,
|
|
2469
2469
|
timerPaused: s
|
|
2470
|
-
} = r, a =
|
|
2470
|
+
} = r, a = Hi(e);
|
|
2471
2471
|
no(() => {
|
|
2472
2472
|
a.value > 0 ? a.value -= 1 : P(() => {
|
|
2473
2473
|
s.value = !0, a.value = 0;
|
|
@@ -2478,14 +2478,14 @@ const oo = G`
|
|
|
2478
2478
|
return !1;
|
|
2479
2479
|
const f = Date.now() - o.value;
|
|
2480
2480
|
return a.value > 0 && e - a.value >= 5 && f >= 5e3;
|
|
2481
|
-
}),
|
|
2481
|
+
}), l = Ue(() => {
|
|
2482
2482
|
if (i === "interstitial")
|
|
2483
2483
|
return !0;
|
|
2484
2484
|
if (!o.value)
|
|
2485
2485
|
return !1;
|
|
2486
2486
|
const f = Date.now() - o.value;
|
|
2487
2487
|
return a.value <= 0 && f >= (e - 1) * 1e3 && e > 5;
|
|
2488
|
-
}),
|
|
2488
|
+
}), u = Ue(() => i === "interstitial" ? !1 : !d.value && !l.value), c = async () => {
|
|
2489
2489
|
if (s.value = !0, !await lo({
|
|
2490
2490
|
title: "Are you sure?",
|
|
2491
2491
|
content: "You will lose your reward if you dismiss this Ad."
|
|
@@ -2507,8 +2507,8 @@ const oo = G`
|
|
|
2507
2507
|
className: "timer",
|
|
2508
2508
|
children: [a.value, "s"]
|
|
2509
2509
|
}), m("button", {
|
|
2510
|
-
onClick: d.value ? c :
|
|
2511
|
-
disabled:
|
|
2510
|
+
onClick: d.value ? c : l.value ? h : void 0,
|
|
2511
|
+
disabled: u.value,
|
|
2512
2512
|
children: m("svg", {
|
|
2513
2513
|
width: "12",
|
|
2514
2514
|
height: "12",
|
|
@@ -2566,8 +2566,8 @@ const oo = G`
|
|
|
2566
2566
|
adLoaded: s,
|
|
2567
2567
|
visible: a,
|
|
2568
2568
|
countdown: d,
|
|
2569
|
-
src:
|
|
2570
|
-
mode:
|
|
2569
|
+
src: l,
|
|
2570
|
+
mode: u
|
|
2571
2571
|
} = e, c = yn(() => ho(), []), [h, f] = _e(!1), v = (w) => {
|
|
2572
2572
|
var g, A, S, p;
|
|
2573
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);
|
|
@@ -2576,18 +2576,18 @@ const oo = G`
|
|
|
2576
2576
|
h || (f(!0), (w = s.value) == null || w.call(s));
|
|
2577
2577
|
}, [h]);
|
|
2578
2578
|
return Ce(() => {
|
|
2579
|
-
h && (
|
|
2579
|
+
h && (u.value === "reward" || u.value === "rewarded_insterstitial") && setTimeout(() => {
|
|
2580
2580
|
c.startTimer();
|
|
2581
2581
|
}, 100);
|
|
2582
|
-
}, [h,
|
|
2582
|
+
}, [h, u.value]), a.value ? m("div", {
|
|
2583
2583
|
className: vo,
|
|
2584
2584
|
children: [m(fo, {
|
|
2585
|
-
mode:
|
|
2585
|
+
mode: u.value,
|
|
2586
2586
|
onClose: v,
|
|
2587
2587
|
countdown: d.value,
|
|
2588
2588
|
state: c
|
|
2589
2589
|
}), a.value && m("iframe", {
|
|
2590
|
-
src:
|
|
2590
|
+
src: l.value,
|
|
2591
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(uo, {})]
|
|
@@ -2634,7 +2634,7 @@ class wo {
|
|
|
2634
2634
|
};
|
|
2635
2635
|
}
|
|
2636
2636
|
async adBreak(e, i) {
|
|
2637
|
-
var n, r, o, s, a, d,
|
|
2637
|
+
var n, r, o, s, a, d, l, u;
|
|
2638
2638
|
if (!this.initialized || !this.adsOverlay || !i.params.url) {
|
|
2639
2639
|
(n = e.adBreakDone) == null || n.call(e, {
|
|
2640
2640
|
breakType: e.type,
|
|
@@ -2691,7 +2691,7 @@ class wo {
|
|
|
2691
2691
|
breakName: this.lastUnDisplayedAdBreak.type === "preroll" ? "" : this.lastUnDisplayedAdBreak.name,
|
|
2692
2692
|
breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
|
|
2693
2693
|
breakStatus: "ignored"
|
|
2694
|
-
}), this.lastUnDisplayedAdBreak = null), (
|
|
2694
|
+
}), this.lastUnDisplayedAdBreak = null), (l = e.beforeAd) == null || l.call(e);
|
|
2695
2695
|
const c = () => {
|
|
2696
2696
|
var g;
|
|
2697
2697
|
this.adsIsShowing = !1, (g = e.afterAd) == null || g.call(e);
|
|
@@ -2729,7 +2729,7 @@ class wo {
|
|
|
2729
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
|
-
this.lastUnDisplayedAdBreak = e, (
|
|
2732
|
+
this.lastUnDisplayedAdBreak = e, (u = e.beforeReward) == null || u.call(e, w);
|
|
2733
2733
|
break;
|
|
2734
2734
|
}
|
|
2735
2735
|
}
|
|
@@ -2842,8 +2842,8 @@ const Ao = () => {
|
|
|
2842
2842
|
adLoaded: s,
|
|
2843
2843
|
adError: a,
|
|
2844
2844
|
visible: d,
|
|
2845
|
-
payload:
|
|
2846
|
-
} = e, [
|
|
2845
|
+
payload: l
|
|
2846
|
+
} = e, [u, c] = _e(!1), [h, f] = _e(0), [v, y] = _e(!1), [w, g] = _e(!1), [A, S] = _e("Loading next content..."), p = mi(null), _ = l.value, E = kt((L) => {
|
|
2847
2847
|
var C, W, q, I;
|
|
2848
2848
|
c(!1), d.value = !1, L === "dismiss" ? (C = n.value) == null || C.call(n) : (W = r.value) == null || W.call(r), (q = i.value) == null || q.call(i), (I = o.value) == null || I.call(o);
|
|
2849
2849
|
}, [d, n, r, i, o]), b = kt(() => {
|
|
@@ -2921,7 +2921,7 @@ const Ao = () => {
|
|
|
2921
2921
|
}), m("div", {
|
|
2922
2922
|
className: Eo,
|
|
2923
2923
|
ref: p,
|
|
2924
|
-
children: !
|
|
2924
|
+
children: !u && m("div", {
|
|
2925
2925
|
className: bi,
|
|
2926
2926
|
children: A
|
|
2927
2927
|
})
|
|
@@ -3041,7 +3041,7 @@ class Oo {
|
|
|
3041
3041
|
this.state.payload.value = r, this.state.visible.value = !0;
|
|
3042
3042
|
}
|
|
3043
3043
|
adBreak(e, i) {
|
|
3044
|
-
var s, a, d,
|
|
3044
|
+
var s, a, d, l, u, 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, {
|
|
@@ -3073,7 +3073,7 @@ class Oo {
|
|
|
3073
3073
|
}
|
|
3074
3074
|
switch (e.type) {
|
|
3075
3075
|
case "preroll": {
|
|
3076
|
-
(
|
|
3076
|
+
(l = e.adBreakDone) == null || l.call(e, {
|
|
3077
3077
|
breakType: e.type,
|
|
3078
3078
|
breakName: "",
|
|
3079
3079
|
breakFormat: "interstitial",
|
|
@@ -3085,7 +3085,7 @@ class Oo {
|
|
|
3085
3085
|
case "browse":
|
|
3086
3086
|
case "next":
|
|
3087
3087
|
case "pause": {
|
|
3088
|
-
(
|
|
3088
|
+
(u = e.beforeAd) == null || u.call(e);
|
|
3089
3089
|
const y = {
|
|
3090
3090
|
breakType: e.type,
|
|
3091
3091
|
breakName: e.name,
|
|
@@ -3212,8 +3212,8 @@ const Ee = (t, e) => {
|
|
|
3212
3212
|
adLoaded: s,
|
|
3213
3213
|
adLinkClicked: a,
|
|
3214
3214
|
visible: d,
|
|
3215
|
-
src:
|
|
3216
|
-
} = e, [
|
|
3215
|
+
src: l
|
|
3216
|
+
} = e, [u, c] = _e(!1), h = (v) => {
|
|
3217
3217
|
var y, w, g, A;
|
|
3218
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 = () => {
|
|
@@ -3226,10 +3226,10 @@ const Ee = (t, e) => {
|
|
|
3226
3226
|
}), Ee("appsrockets_ad_loaded", () => c(!0)), d.value ? m("div", {
|
|
3227
3227
|
className: Do,
|
|
3228
3228
|
style: {
|
|
3229
|
-
display:
|
|
3229
|
+
display: u ? "flex" : "none"
|
|
3230
3230
|
},
|
|
3231
3231
|
children: d.value && m("iframe", {
|
|
3232
|
-
src:
|
|
3232
|
+
src: l.value,
|
|
3233
3233
|
onLoad: f,
|
|
3234
3234
|
allowFullScreen: !0,
|
|
3235
3235
|
allow: "autoplay",
|
|
@@ -3282,7 +3282,7 @@ class Lo {
|
|
|
3282
3282
|
};
|
|
3283
3283
|
}
|
|
3284
3284
|
adBreak(e, i) {
|
|
3285
|
-
var o, s, a, d,
|
|
3285
|
+
var o, s, a, d, l, u, c, h;
|
|
3286
3286
|
if (!this.initialized || !this.adsOverlay || !i.params.url) {
|
|
3287
3287
|
(o = e.adBreakDone) == null || o.call(e, {
|
|
3288
3288
|
breakType: e.type,
|
|
@@ -3346,7 +3346,7 @@ class Lo {
|
|
|
3346
3346
|
break;
|
|
3347
3347
|
}
|
|
3348
3348
|
case "reward": {
|
|
3349
|
-
this.lastUnDisplayedAdBreak && ((
|
|
3349
|
+
this.lastUnDisplayedAdBreak && ((u = (l = this.lastUnDisplayedAdBreak).adBreakDone) == null || u.call(l, {
|
|
3350
3350
|
breakType: this.lastUnDisplayedAdBreak.type,
|
|
3351
3351
|
breakName: this.lastUnDisplayedAdBreak.type === "preroll" ? "" : this.lastUnDisplayedAdBreak.name,
|
|
3352
3352
|
breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
|
|
@@ -3471,8 +3471,8 @@ let nn = class {
|
|
|
3471
3471
|
else {
|
|
3472
3472
|
const o = (s) => {
|
|
3473
3473
|
s.slot === this.rewardedSlot && this.adsContext && (googletag.pubads().removeEventListener("rewardedSlotReady", o), this.readyEvent = s, this.adsContext.beforeReward(() => {
|
|
3474
|
-
var a, d,
|
|
3475
|
-
(d = (a = this.adsContext) == null ? void 0 : a.beforeAd) == null || d.call(a), (
|
|
3474
|
+
var a, d, l;
|
|
3475
|
+
(d = (a = this.adsContext) == null ? void 0 : a.beforeAd) == null || d.call(a), (l = this.readyEvent) == null || l.makeRewardedVisible();
|
|
3476
3476
|
}));
|
|
3477
3477
|
};
|
|
3478
3478
|
googletag.pubads().addEventListener("rewardedSlotReady", o), window.setTimeout(() => {
|
|
@@ -3485,7 +3485,7 @@ let nn = class {
|
|
|
3485
3485
|
});
|
|
3486
3486
|
}
|
|
3487
3487
|
};
|
|
3488
|
-
function
|
|
3488
|
+
function H(t, e, i) {
|
|
3489
3489
|
return (e = $o(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3490
3490
|
}
|
|
3491
3491
|
function $o(t) {
|
|
@@ -3507,28 +3507,28 @@ function Fo(t, e) {
|
|
|
3507
3507
|
class Uo {
|
|
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) {
|
|
@@ -3722,10 +3722,10 @@ function z(t, e, i) {
|
|
|
3722
3722
|
return (e = Wo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3723
3723
|
}
|
|
3724
3724
|
function Wo(t) {
|
|
3725
|
-
var e =
|
|
3725
|
+
var e = Jo(t, "string");
|
|
3726
3726
|
return typeof e == "symbol" ? e : e + "";
|
|
3727
3727
|
}
|
|
3728
|
-
function
|
|
3728
|
+
function Jo(t, e) {
|
|
3729
3729
|
if (typeof t != "object" || !t)
|
|
3730
3730
|
return t;
|
|
3731
3731
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3800,7 +3800,7 @@ class rn {
|
|
|
3800
3800
|
}
|
|
3801
3801
|
const a = r === "afv" ? void 0 : "cached", {
|
|
3802
3802
|
data: d,
|
|
3803
|
-
code:
|
|
3803
|
+
code: l
|
|
3804
3804
|
} = await this.context.httpClient.post("/api/ads/info", {
|
|
3805
3805
|
data: {
|
|
3806
3806
|
contextData: this.requestContext.getRequestContextData(o),
|
|
@@ -3810,8 +3810,8 @@ class rn {
|
|
|
3810
3810
|
name: a
|
|
3811
3811
|
}
|
|
3812
3812
|
});
|
|
3813
|
-
return
|
|
3814
|
-
code:
|
|
3813
|
+
return l === "SUCCESS" || l === "BYPASS_ADS" ? {
|
|
3814
|
+
code: l,
|
|
3815
3815
|
data: d
|
|
3816
3816
|
} : null;
|
|
3817
3817
|
}), z(this, "cacheRewardInfo", () => {
|
|
@@ -3834,7 +3834,7 @@ class rn {
|
|
|
3834
3834
|
}), this.context = e, this.contextInfo = this.context.getContextInfo(), this.requestContext = new jt(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
|
|
3837
|
+
function Ho(t, e, i) {
|
|
3838
3838
|
return (e = Yo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3839
3839
|
}
|
|
3840
3840
|
function Yo(t) {
|
|
@@ -3865,7 +3865,7 @@ const Qo = function(t) {
|
|
|
3865
3865
|
};
|
|
3866
3866
|
class on {
|
|
3867
3867
|
constructor(e) {
|
|
3868
|
-
this.context = e,
|
|
3868
|
+
this.context = e, Ho(this, "canIUseHelper", void 0), this.context = e;
|
|
3869
3869
|
const {
|
|
3870
3870
|
canIUseNative: i
|
|
3871
3871
|
} = gn(() => this.context.getContextInfo().deviceInfo.nativeSDKVersionCode || 1e6, () => this.context.getContextInfo().deviceInfo.platform || "h5");
|
|
@@ -3927,11 +3927,11 @@ class on {
|
|
|
3927
3927
|
const s = () => {
|
|
3928
3928
|
wn("onAdsStateChange", a), o && (clearTimeout(o), o = null);
|
|
3929
3929
|
}, a = (d) => {
|
|
3930
|
-
var
|
|
3930
|
+
var u;
|
|
3931
3931
|
if (d.UUID !== n)
|
|
3932
3932
|
return;
|
|
3933
|
-
const
|
|
3934
|
-
|
|
3933
|
+
const l = (u = e.callbacks) == null ? void 0 : u[d.event];
|
|
3934
|
+
l && Qo(l, d.data), ["onAdClosed", "onAdError", "onAdDismissed"].includes(d.event) && s();
|
|
3935
3935
|
};
|
|
3936
3936
|
An("onAdsStateChange", a), r > 0 && (o = setTimeout(() => {
|
|
3937
3937
|
s(), console.warn(`[JoliboxSDK] Event listener for ad ${n} auto-cleaned after ${r}ms timeout`);
|
|
@@ -4020,11 +4020,11 @@ class ts {
|
|
|
4020
4020
|
}
|
|
4021
4021
|
let n = !1, r = !1;
|
|
4022
4022
|
this.adsContext.beforeReward(async () => {
|
|
4023
|
-
var d,
|
|
4024
|
-
(
|
|
4025
|
-
const o = (
|
|
4023
|
+
var d, l;
|
|
4024
|
+
(l = (d = this.adsContext) == null ? void 0 : d.beforeAd) == null || l.call(d);
|
|
4025
|
+
const o = (u) => {
|
|
4026
4026
|
var c, h, f;
|
|
4027
|
-
r || (r = !0,
|
|
4027
|
+
r || (r = !0, u === "dismissed" && ((c = this.adsContext) == null || c.adDismissed()), (f = (h = this.adsContext) == null ? void 0 : h.afterAd) == null || f.call(h), this.reinit(u));
|
|
4028
4028
|
}, s = {
|
|
4029
4029
|
onAdShow: () => {
|
|
4030
4030
|
},
|
|
@@ -4032,8 +4032,8 @@ class ts {
|
|
|
4032
4032
|
o("error");
|
|
4033
4033
|
},
|
|
4034
4034
|
onAdRewarded: () => {
|
|
4035
|
-
var
|
|
4036
|
-
n = !0, (
|
|
4035
|
+
var u;
|
|
4036
|
+
n = !0, (u = this.adsContext) == null || u.adViewed();
|
|
4037
4037
|
},
|
|
4038
4038
|
onAdDismissed: () => {
|
|
4039
4039
|
o(n ? "viewed" : "dismissed");
|
|
@@ -4098,16 +4098,16 @@ class rs {
|
|
|
4098
4098
|
this.destroy("notReady");
|
|
4099
4099
|
}
|
|
4100
4100
|
}), he(this, "showAd", async () => {
|
|
4101
|
-
var d,
|
|
4101
|
+
var d, l;
|
|
4102
4102
|
if (!this.adsContext) {
|
|
4103
4103
|
this.destroy("error");
|
|
4104
4104
|
return;
|
|
4105
4105
|
}
|
|
4106
4106
|
let r = !1;
|
|
4107
|
-
(
|
|
4108
|
-
const o = (
|
|
4107
|
+
(l = (d = this.adsContext).beforeAd) == null || l.call(d);
|
|
4108
|
+
const o = (u) => {
|
|
4109
4109
|
var c, h;
|
|
4110
|
-
r || (r = !0, (h = (c = this.adsContext) == null ? void 0 : c.afterAd) == null || h.call(c), this.reinit(
|
|
4110
|
+
r || (r = !0, (h = (c = this.adsContext) == null ? void 0 : c.afterAd) == null || h.call(c), this.reinit(u));
|
|
4111
4111
|
}, s = {
|
|
4112
4112
|
onAdShow: () => {
|
|
4113
4113
|
},
|
|
@@ -4229,8 +4229,8 @@ class as {
|
|
|
4229
4229
|
beforeAd: s.beforeAd,
|
|
4230
4230
|
afterAd: s.afterAd,
|
|
4231
4231
|
onEnd: (d) => {
|
|
4232
|
-
var
|
|
4233
|
-
(
|
|
4232
|
+
var l;
|
|
4233
|
+
(l = e.adBreakDone) == null || l.call(e, {
|
|
4234
4234
|
breakName: s.name,
|
|
4235
4235
|
breakType: e.type,
|
|
4236
4236
|
breakFormat: "interstitial",
|
|
@@ -4245,6 +4245,9 @@ class as {
|
|
|
4245
4245
|
}
|
|
4246
4246
|
const St = "jolibox-nb-proxy";
|
|
4247
4247
|
let ds = 0;
|
|
4248
|
+
function ls(t, e) {
|
|
4249
|
+
return e === "call" && t.join(".") === "GameSDK.showRewardAd" ? 0 : 15e3;
|
|
4250
|
+
}
|
|
4248
4251
|
function pi(t, e, i, n) {
|
|
4249
4252
|
return new Promise((r, o) => {
|
|
4250
4253
|
if (!window.parent || window.parent === window) {
|
|
@@ -4252,11 +4255,11 @@ function pi(t, e, i, n) {
|
|
|
4252
4255
|
return;
|
|
4253
4256
|
}
|
|
4254
4257
|
const s = `${St}-${++ds}`, a = (u) => {
|
|
4255
|
-
const
|
|
4256
|
-
(
|
|
4257
|
-
}, d = window.setTimeout(() => {
|
|
4258
|
-
window.removeEventListener("message", a), o(new Error(`[ParentProxy] Timeout: ${t.join(".")}.${e}`));
|
|
4259
|
-
},
|
|
4258
|
+
const c = u.data;
|
|
4259
|
+
(c == null ? void 0 : c.type) === `${St}:response` && c.id === s && (window.removeEventListener("message", a), l && clearTimeout(l), c.error ? o(new Error(c.error)) : r(c.result));
|
|
4260
|
+
}, d = ls(t, e), l = d > 0 ? window.setTimeout(() => {
|
|
4261
|
+
window.removeEventListener("message", a), o(new Error(`[ParentProxy] Timeout after ${d}ms: ${t.join(".")}.${e}`));
|
|
4262
|
+
}, d) : null;
|
|
4260
4263
|
window.addEventListener("message", a), window.parent.postMessage({
|
|
4261
4264
|
type: `${St}:request`,
|
|
4262
4265
|
id: s,
|
|
@@ -4284,24 +4287,24 @@ function sn(t) {
|
|
|
4284
4287
|
}
|
|
4285
4288
|
});
|
|
4286
4289
|
}
|
|
4287
|
-
function
|
|
4290
|
+
function us(t) {
|
|
4288
4291
|
return sn([t]);
|
|
4289
4292
|
}
|
|
4290
4293
|
const rt = () => {
|
|
4291
4294
|
try {
|
|
4292
4295
|
if (window.parent && window.parent !== window)
|
|
4293
|
-
return
|
|
4296
|
+
return us("GameSDK");
|
|
4294
4297
|
} catch (t) {
|
|
4295
4298
|
}
|
|
4296
4299
|
};
|
|
4297
4300
|
function ge(t, e, i) {
|
|
4298
|
-
return (e =
|
|
4301
|
+
return (e = cs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4299
4302
|
}
|
|
4300
|
-
function
|
|
4301
|
-
var e =
|
|
4303
|
+
function cs(t) {
|
|
4304
|
+
var e = hs(t, "string");
|
|
4302
4305
|
return typeof e == "symbol" ? e : e + "";
|
|
4303
4306
|
}
|
|
4304
|
-
function
|
|
4307
|
+
function hs(t, e) {
|
|
4305
4308
|
if (typeof t != "object" || !t)
|
|
4306
4309
|
return t;
|
|
4307
4310
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4313,7 +4316,7 @@ function cs(t, e) {
|
|
|
4313
4316
|
}
|
|
4314
4317
|
return (e === "string" ? String : Number)(t);
|
|
4315
4318
|
}
|
|
4316
|
-
class
|
|
4319
|
+
class fs {
|
|
4317
4320
|
constructor() {
|
|
4318
4321
|
ge(this, "adsContext", null), ge(this, "_isReady", !1), ge(this, "_isAvailable", !1), ge(this, "init", async () => {
|
|
4319
4322
|
this._isReady = !1;
|
|
@@ -4370,7 +4373,7 @@ class hs {
|
|
|
4370
4373
|
return;
|
|
4371
4374
|
}
|
|
4372
4375
|
this.adsContext.beforeReward(async () => {
|
|
4373
|
-
var i, n, r, o, s, a, d,
|
|
4376
|
+
var i, n, r, o, s, a, d, l, u, c, h, f, v, y;
|
|
4374
4377
|
(n = (i = this.adsContext) == null ? void 0 : i.beforeAd) == null || n.call(i);
|
|
4375
4378
|
const e = rt();
|
|
4376
4379
|
if (!e) {
|
|
@@ -4383,22 +4386,22 @@ class hs {
|
|
|
4383
4386
|
(a = (s = this.adsContext) == null ? void 0 : s.afterAd) == null || a.call(s), this.reinit("error");
|
|
4384
4387
|
return;
|
|
4385
4388
|
}
|
|
4386
|
-
w.rewardGranted ? ((d = this.adsContext) == null || d.adViewed(), (
|
|
4389
|
+
w.rewardGranted ? ((d = this.adsContext) == null || d.adViewed(), (u = (l = this.adsContext) == null ? void 0 : l.afterAd) == null || u.call(l), 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"));
|
|
4387
4390
|
} catch (w) {
|
|
4388
|
-
(y = (v = this.adsContext) == null ? void 0 : v.afterAd) == null || y.call(v), this.reinit("error");
|
|
4391
|
+
console.error("[JoliboxSDK] NewsBreak showRewardAd failed:", w), (y = (v = this.adsContext) == null ? void 0 : v.afterAd) == null || y.call(v), this.reinit("error");
|
|
4389
4392
|
}
|
|
4390
4393
|
});
|
|
4391
4394
|
}), this.init();
|
|
4392
4395
|
}
|
|
4393
4396
|
}
|
|
4394
4397
|
function _i(t, e, i) {
|
|
4395
|
-
return (e =
|
|
4398
|
+
return (e = vs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4396
4399
|
}
|
|
4397
|
-
function
|
|
4398
|
-
var e =
|
|
4400
|
+
function vs(t) {
|
|
4401
|
+
var e = ys(t, "string");
|
|
4399
4402
|
return typeof e == "symbol" ? e : e + "";
|
|
4400
4403
|
}
|
|
4401
|
-
function
|
|
4404
|
+
function ys(t, e) {
|
|
4402
4405
|
if (typeof t != "object" || !t)
|
|
4403
4406
|
return t;
|
|
4404
4407
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4410,7 +4413,7 @@ function vs(t, e) {
|
|
|
4410
4413
|
}
|
|
4411
4414
|
return (e === "string" ? String : Number)(t);
|
|
4412
4415
|
}
|
|
4413
|
-
class
|
|
4416
|
+
class gs {
|
|
4414
4417
|
constructor() {
|
|
4415
4418
|
_i(this, "name", "NEWSBREAK"), _i(this, "rewardAdManager", void 0);
|
|
4416
4419
|
}
|
|
@@ -4420,7 +4423,7 @@ class ys {
|
|
|
4420
4423
|
console.warn("[JoliboxSDK] NewsBreak GameSDK is not available on window");
|
|
4421
4424
|
return;
|
|
4422
4425
|
}
|
|
4423
|
-
e.onEnter(), this.rewardAdManager = new
|
|
4426
|
+
e.onEnter(), this.rewardAdManager = new fs();
|
|
4424
4427
|
}
|
|
4425
4428
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4426
4429
|
adConfig(e, i) {
|
|
@@ -4464,13 +4467,13 @@ class ys {
|
|
|
4464
4467
|
}
|
|
4465
4468
|
}
|
|
4466
4469
|
function te(t, e, i) {
|
|
4467
|
-
return (e =
|
|
4470
|
+
return (e = ws(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4468
4471
|
}
|
|
4469
|
-
function
|
|
4470
|
-
var e =
|
|
4472
|
+
function ws(t) {
|
|
4473
|
+
var e = As(t, "string");
|
|
4471
4474
|
return typeof e == "symbol" ? e : e + "";
|
|
4472
4475
|
}
|
|
4473
|
-
function
|
|
4476
|
+
function As(t, e) {
|
|
4474
4477
|
if (typeof t != "object" || !t)
|
|
4475
4478
|
return t;
|
|
4476
4479
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4482,7 +4485,7 @@ function ws(t, e) {
|
|
|
4482
4485
|
}
|
|
4483
4486
|
return (e === "string" ? String : Number)(t);
|
|
4484
4487
|
}
|
|
4485
|
-
class
|
|
4488
|
+
class ea {
|
|
4486
4489
|
constructor(e) {
|
|
4487
4490
|
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)
|
|
4488
4491
|
this.context = e, this.channelPolicy = new rr(this.context), this.adsActionDetection = new tr(this.context), this.contextInfo = this.context.getContextInfo(), this.adsRequest = new rn(e), this.requestContext = new jt(e);
|
|
@@ -4542,7 +4545,7 @@ class Zs {
|
|
|
4542
4545
|
}
|
|
4543
4546
|
case "NEWSBREAK": {
|
|
4544
4547
|
console.log("[JoliboxSDK] NewsBreak Provider", a);
|
|
4545
|
-
const d = new
|
|
4548
|
+
const d = new gs();
|
|
4546
4549
|
await d.init(), this.providers.NEWSBREAK = d;
|
|
4547
4550
|
break;
|
|
4548
4551
|
}
|
|
@@ -4554,7 +4557,7 @@ class Zs {
|
|
|
4554
4557
|
this.providers.ADSENSE ? this.providers.ADSENSE.adConfig(e) : window.adsbygoogle.push(e);
|
|
4555
4558
|
}
|
|
4556
4559
|
async adBreak(e) {
|
|
4557
|
-
var r, o, s, a, d,
|
|
4560
|
+
var r, o, s, a, d, l, u, c, h, f, v, y, w, g, A, S;
|
|
4558
4561
|
const i = Date.now();
|
|
4559
4562
|
if (i - this.initializedTimeStamp < 3e3) {
|
|
4560
4563
|
(r = e.adBreakDone) == null || r.call(e, {
|
|
@@ -4606,7 +4609,7 @@ class Zs {
|
|
|
4606
4609
|
if (E === "BYPASS_ADS") {
|
|
4607
4610
|
switch (e.type) {
|
|
4608
4611
|
case "preroll": {
|
|
4609
|
-
(
|
|
4612
|
+
(l = e.adBreakDone) == null || l.call(e, {
|
|
4610
4613
|
breakType: e.type,
|
|
4611
4614
|
breakFormat: "interstitial",
|
|
4612
4615
|
breakStatus: "viewed"
|
|
@@ -4626,7 +4629,7 @@ class Zs {
|
|
|
4626
4629
|
break;
|
|
4627
4630
|
}
|
|
4628
4631
|
default: {
|
|
4629
|
-
(
|
|
4632
|
+
(u = e.beforeAd) == null || u.call(e), (c = e.afterAd) == null || c.call(e), (h = e.adBreakDone) == null || h.call(e, {
|
|
4630
4633
|
breakType: e.type,
|
|
4631
4634
|
breakName: e.name,
|
|
4632
4635
|
breakFormat: "interstitial",
|
|
@@ -4702,13 +4705,13 @@ class Zs {
|
|
|
4702
4705
|
}
|
|
4703
4706
|
}
|
|
4704
4707
|
function Xe(t, e, i) {
|
|
4705
|
-
return (e =
|
|
4708
|
+
return (e = bs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4706
4709
|
}
|
|
4707
|
-
function
|
|
4708
|
-
var e =
|
|
4710
|
+
function bs(t) {
|
|
4711
|
+
var e = ps(t, "string");
|
|
4709
4712
|
return typeof e == "symbol" ? e : e + "";
|
|
4710
4713
|
}
|
|
4711
|
-
function
|
|
4714
|
+
function ps(t, e) {
|
|
4712
4715
|
if (typeof t != "object" || !t)
|
|
4713
4716
|
return t;
|
|
4714
4717
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4720,7 +4723,7 @@ function bs(t, e) {
|
|
|
4720
4723
|
}
|
|
4721
4724
|
return (e === "string" ? String : Number)(t);
|
|
4722
4725
|
}
|
|
4723
|
-
class
|
|
4726
|
+
class _s {
|
|
4724
4727
|
constructor(e) {
|
|
4725
4728
|
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();
|
|
4726
4729
|
}
|
|
@@ -4772,13 +4775,13 @@ class ps {
|
|
|
4772
4775
|
}
|
|
4773
4776
|
}
|
|
4774
4777
|
function Et(t, e, i) {
|
|
4775
|
-
return (e =
|
|
4778
|
+
return (e = ms(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4776
4779
|
}
|
|
4777
|
-
function
|
|
4778
|
-
var e =
|
|
4780
|
+
function ms(t) {
|
|
4781
|
+
var e = Ss(t, "string");
|
|
4779
4782
|
return typeof e == "symbol" ? e : e + "";
|
|
4780
4783
|
}
|
|
4781
|
-
function
|
|
4784
|
+
function Ss(t, e) {
|
|
4782
4785
|
if (typeof t != "object" || !t)
|
|
4783
4786
|
return t;
|
|
4784
4787
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4804,13 +4807,13 @@ class F extends Error {
|
|
|
4804
4807
|
}
|
|
4805
4808
|
}
|
|
4806
4809
|
function O(t, e, i) {
|
|
4807
|
-
return (e =
|
|
4810
|
+
return (e = Es(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4808
4811
|
}
|
|
4809
|
-
function
|
|
4810
|
-
var e =
|
|
4812
|
+
function Es(t) {
|
|
4813
|
+
var e = ks(t, "string");
|
|
4811
4814
|
return typeof e == "symbol" ? e : e + "";
|
|
4812
4815
|
}
|
|
4813
|
-
function
|
|
4816
|
+
function ks(t, e) {
|
|
4814
4817
|
if (typeof t != "object" || !t)
|
|
4815
4818
|
return t;
|
|
4816
4819
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4822,13 +4825,13 @@ function Es(t, e) {
|
|
|
4822
4825
|
}
|
|
4823
4826
|
return (e === "string" ? String : Number)(t);
|
|
4824
4827
|
}
|
|
4825
|
-
class
|
|
4828
|
+
class Is {
|
|
4826
4829
|
constructor(e, i, n) {
|
|
4827
4830
|
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", () => {
|
|
4828
|
-
var r, o, s, a, d,
|
|
4829
|
-
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), (
|
|
4831
|
+
var r, o, s, a, d, l, u, c, h, f, v;
|
|
4832
|
+
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), (l = this.adsManager) == null || l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), (u = this.adsManager) == null || u.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);
|
|
4830
4833
|
}), O(this, "requestAds", async (r, o) => {
|
|
4831
|
-
var
|
|
4834
|
+
var u;
|
|
4832
4835
|
this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (c) => {
|
|
4833
4836
|
var h;
|
|
4834
4837
|
return (h = r.onAdError) == null ? void 0 : h.call(r, F.from(c, "GOOGLE_IMA_ERROR"));
|
|
@@ -4845,8 +4848,8 @@ class ks {
|
|
|
4845
4848
|
const h = window.encodeURIComponent(o.params[c]);
|
|
4846
4849
|
d += `&${c}=${h}`;
|
|
4847
4850
|
});
|
|
4848
|
-
const
|
|
4849
|
-
a.adTagUrl =
|
|
4851
|
+
const l = `${this.adTagUrl}${d}`;
|
|
4852
|
+
a.adTagUrl = l, a.linearAdSlotWidth = 640, a.linearAdSlotHeight = 400, a.nonLinearAdSlotWidth = 640, a.nonLinearAdSlotHeight = 150, this.adsLoader.requestAds(a), (u = this.notifyRequestAd) == null || u.call(this);
|
|
4850
4853
|
}), O(this, "createAdDisplayContainer", () => {
|
|
4851
4854
|
this.adDisplayContainer = new window.google.ima.AdDisplayContainer(this.adContainer, this.videoContent);
|
|
4852
4855
|
}), O(this, "playAds", () => {
|
|
@@ -4861,7 +4864,7 @@ class ks {
|
|
|
4861
4864
|
const o = new window.google.ima.AdsRenderingSettings();
|
|
4862
4865
|
o.restoreCustomPlaybackStateOnAdBreakComplete = !0, o.loadVideoTimeout = 1e4, this.adsManager = r.getAdsManager(this.videoContent, o), this.adsManager.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent), r.type === "adsManagerLoaded" && this.playAds();
|
|
4863
4866
|
}), O(this, "onAdEvent", (r) => {
|
|
4864
|
-
var s, a, d,
|
|
4867
|
+
var s, a, d, l;
|
|
4865
4868
|
const o = r.getAd();
|
|
4866
4869
|
switch (r.type) {
|
|
4867
4870
|
case window.google.ima.AdEvent.Type.LOADED:
|
|
@@ -4875,7 +4878,7 @@ class ks {
|
|
|
4875
4878
|
o != null && o.isLinear() && clearInterval(this.intervalTimer), this.completed || (this.completed = !0, (d = this.notifyCompleted) == null || d.call(this, r));
|
|
4876
4879
|
break;
|
|
4877
4880
|
case window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED:
|
|
4878
|
-
o != null && o.isLinear() && clearInterval(this.intervalTimer), this.completed || (this.completed = !0, (
|
|
4881
|
+
o != null && o.isLinear() && clearInterval(this.intervalTimer), this.completed || (this.completed = !0, (l = this.notifyCompleted) == null || l.call(this, r));
|
|
4879
4882
|
break;
|
|
4880
4883
|
}
|
|
4881
4884
|
}), O(this, "onAdError", (r) => {
|
|
@@ -4889,8 +4892,8 @@ class ks {
|
|
|
4889
4892
|
}
|
|
4890
4893
|
}
|
|
4891
4894
|
var ot = /* @__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))(ot || {});
|
|
4892
|
-
const
|
|
4893
|
-
const t = k(!1), e = k(!1), i = k(null), n =
|
|
4895
|
+
const xs = () => {
|
|
4896
|
+
const t = k(!1), e = k(!1), i = k(null), n = Ht(), r = Ht();
|
|
4894
4897
|
return {
|
|
4895
4898
|
visible: t,
|
|
4896
4899
|
canRetry: e,
|
|
@@ -4898,7 +4901,7 @@ const Is = () => {
|
|
|
4898
4901
|
videoRef: n,
|
|
4899
4902
|
adContainerRef: r
|
|
4900
4903
|
};
|
|
4901
|
-
},
|
|
4904
|
+
}, Rs = G`
|
|
4902
4905
|
${M}
|
|
4903
4906
|
position: fixed;
|
|
4904
4907
|
left: 0;
|
|
@@ -4943,7 +4946,7 @@ const Is = () => {
|
|
|
4943
4946
|
cursor: pointer;
|
|
4944
4947
|
}
|
|
4945
4948
|
}
|
|
4946
|
-
`,
|
|
4949
|
+
`, Ts = (t) => {
|
|
4947
4950
|
let {
|
|
4948
4951
|
onReady: e,
|
|
4949
4952
|
state: i
|
|
@@ -4962,7 +4965,7 @@ const Is = () => {
|
|
|
4962
4965
|
return Ce(() => {
|
|
4963
4966
|
e();
|
|
4964
4967
|
}, [e]), m("div", {
|
|
4965
|
-
className:
|
|
4968
|
+
className: Rs,
|
|
4966
4969
|
style: {
|
|
4967
4970
|
display: n.value ? "block" : "none"
|
|
4968
4971
|
},
|
|
@@ -5009,13 +5012,13 @@ const Is = () => {
|
|
|
5009
5012
|
});
|
|
5010
5013
|
};
|
|
5011
5014
|
function fe(t, e, i) {
|
|
5012
|
-
return (e =
|
|
5015
|
+
return (e = Cs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
5013
5016
|
}
|
|
5014
|
-
function
|
|
5015
|
-
var e =
|
|
5017
|
+
function Cs(t) {
|
|
5018
|
+
var e = Os(t, "string");
|
|
5016
5019
|
return typeof e == "symbol" ? e : e + "";
|
|
5017
5020
|
}
|
|
5018
|
-
function
|
|
5021
|
+
function Os(t, e) {
|
|
5019
5022
|
if (typeof t != "object" || !t)
|
|
5020
5023
|
return t;
|
|
5021
5024
|
var i = t[Symbol.toPrimitive];
|
|
@@ -5027,9 +5030,9 @@ function Cs(t, e) {
|
|
|
5027
5030
|
}
|
|
5028
5031
|
return (e === "string" ? String : Number)(t);
|
|
5029
5032
|
}
|
|
5030
|
-
class
|
|
5033
|
+
class Ds {
|
|
5031
5034
|
constructor(e) {
|
|
5032
|
-
fe(this, "name", "GOOGLE_IMA"), fe(this, "context", void 0), fe(this, "adsOverlay", null), fe(this, "initialized", !1), fe(this, "ima", null), fe(this, "state",
|
|
5035
|
+
fe(this, "name", "GOOGLE_IMA"), fe(this, "context", void 0), fe(this, "adsOverlay", null), fe(this, "initialized", !1), fe(this, "ima", null), fe(this, "state", xs()), fe(this, "init", async (i) => {
|
|
5033
5036
|
if (this.initialized)
|
|
5034
5037
|
return;
|
|
5035
5038
|
const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
|
|
@@ -5045,29 +5048,29 @@ class Os {
|
|
|
5045
5048
|
}, s.onerror = o, document.head.appendChild(s);
|
|
5046
5049
|
}
|
|
5047
5050
|
}), this.adsOverlay = document.createElement("div"), this.adsOverlay.id = "jolibox-ima-overlay", document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
|
|
5048
|
-
ye(m(
|
|
5051
|
+
ye(m(Ts, {
|
|
5049
5052
|
state: this.state,
|
|
5050
5053
|
onReady: () => {
|
|
5051
|
-
this.ima = new
|
|
5054
|
+
this.ima = new Is(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
|
|
5052
5055
|
}
|
|
5053
5056
|
}), this.adsOverlay);
|
|
5054
5057
|
}), this.initialized = !0;
|
|
5055
5058
|
}), fe(this, "destroy", () => {
|
|
5056
5059
|
this.adsOverlay && (ye(null, this.adsOverlay), this.adsOverlay.remove()), this.ima && this.ima.destroy(), this.initialized = !1;
|
|
5057
5060
|
}), fe(this, "requestAd", (i, n) => {
|
|
5058
|
-
var
|
|
5061
|
+
var l;
|
|
5059
5062
|
if (!this.adsOverlay || !this.ima || !this.initialized) {
|
|
5060
|
-
const
|
|
5061
|
-
(
|
|
5063
|
+
const u = F.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
|
|
5064
|
+
(l = i.onAdError) == null || l.call(i, u);
|
|
5062
5065
|
return;
|
|
5063
5066
|
}
|
|
5064
|
-
const r = (
|
|
5067
|
+
const r = (u) => {
|
|
5065
5068
|
var c;
|
|
5066
|
-
this.ima.destroy(), this.state.visible.value = !1, (c = i.onAdCompleted) == null || c.call(i,
|
|
5067
|
-
}, o = (
|
|
5069
|
+
this.ima.destroy(), this.state.visible.value = !1, (c = i.onAdCompleted) == null || c.call(i, u);
|
|
5070
|
+
}, o = (u) => {
|
|
5068
5071
|
var h;
|
|
5069
5072
|
let c = !1;
|
|
5070
|
-
switch (
|
|
5073
|
+
switch (u.raw.getErrorCode()) {
|
|
5071
5074
|
case ot.AUTOPLAY_DISALLOWED:
|
|
5072
5075
|
case ot.VIDEO_PLAY_ERROR:
|
|
5073
5076
|
case ot.ADS_REQUEST_NETWORK_ERROR: {
|
|
@@ -5082,7 +5085,7 @@ class Os {
|
|
|
5082
5085
|
if (!c)
|
|
5083
5086
|
this.ima.destroy(), P(() => {
|
|
5084
5087
|
this.state.canRetry.value = !1, this.state.retry.value = null, this.state.visible.value = !1;
|
|
5085
|
-
}), (h = i.onAdError) == null || h.call(i,
|
|
5088
|
+
}), (h = i.onAdError) == null || h.call(i, u);
|
|
5086
5089
|
else {
|
|
5087
5090
|
const f = () => {
|
|
5088
5091
|
this.ima.destroy(), this.requestAd(i, n);
|
|
@@ -5091,25 +5094,25 @@ class Os {
|
|
|
5091
5094
|
this.state.canRetry.value = !0, this.state.retry.value = f;
|
|
5092
5095
|
});
|
|
5093
5096
|
}
|
|
5094
|
-
}, s = (
|
|
5097
|
+
}, s = (u) => {
|
|
5095
5098
|
var c;
|
|
5096
|
-
this.state.visible.value = !0, (c = i.onAdLoaded) == null || c.call(i,
|
|
5097
|
-
}, a = (
|
|
5099
|
+
this.state.visible.value = !0, (c = i.onAdLoaded) == null || c.call(i, u);
|
|
5100
|
+
}, a = (u) => {
|
|
5098
5101
|
var c;
|
|
5099
|
-
(c = i.onAdPlaying) == null || c.call(i,
|
|
5102
|
+
(c = i.onAdPlaying) == null || c.call(i, u);
|
|
5100
5103
|
}, d = Object.assign({}, i);
|
|
5101
5104
|
d.onAdCompleted = r, d.onAdError = o, d.onAdLoaded = s, d.onAdPlaying = a, this.ima.requestAds(d, n);
|
|
5102
5105
|
}), this.context = e;
|
|
5103
5106
|
}
|
|
5104
5107
|
}
|
|
5105
5108
|
function re(t, e, i) {
|
|
5106
|
-
return (e =
|
|
5109
|
+
return (e = Ps(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
5107
5110
|
}
|
|
5108
|
-
function
|
|
5109
|
-
var e =
|
|
5111
|
+
function Ps(t) {
|
|
5112
|
+
var e = Ns(t, "string");
|
|
5110
5113
|
return typeof e == "symbol" ? e : e + "";
|
|
5111
5114
|
}
|
|
5112
|
-
function
|
|
5115
|
+
function Ns(t, e) {
|
|
5113
5116
|
if (typeof t != "object" || !t)
|
|
5114
5117
|
return t;
|
|
5115
5118
|
var i = t[Symbol.toPrimitive];
|
|
@@ -5121,7 +5124,7 @@ function Ps(t, e) {
|
|
|
5121
5124
|
}
|
|
5122
5125
|
return (e === "string" ? String : Number)(t);
|
|
5123
5126
|
}
|
|
5124
|
-
class
|
|
5127
|
+
class Ls {
|
|
5125
5128
|
constructor(e) {
|
|
5126
5129
|
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) => {
|
|
5127
5130
|
var n;
|
|
@@ -5132,7 +5135,7 @@ class Ns {
|
|
|
5132
5135
|
var i;
|
|
5133
5136
|
this.adsOverlay && (ye(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
|
|
5134
5137
|
}), re(this, "requestAd", (i, n) => {
|
|
5135
|
-
var s, a, d,
|
|
5138
|
+
var s, a, d, l;
|
|
5136
5139
|
if (!this.adsOverlay || !this.initialized) {
|
|
5137
5140
|
(s = i.onAdError) == null || s.call(i, F.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
5138
5141
|
return;
|
|
@@ -5143,27 +5146,27 @@ class Ns {
|
|
|
5143
5146
|
}
|
|
5144
5147
|
(d = i.onAdRequested) == null || d.call(i);
|
|
5145
5148
|
const r = () => {
|
|
5146
|
-
var
|
|
5147
|
-
this.adsIsShowing = !1, (
|
|
5149
|
+
var u;
|
|
5150
|
+
this.adsIsShowing = !1, (u = i.onAdCompleted) == null || u.call(i, void 0);
|
|
5148
5151
|
}, o = () => {
|
|
5149
|
-
var
|
|
5150
|
-
(
|
|
5152
|
+
var u;
|
|
5153
|
+
(u = i.onAdLoaded) == null || u.call(i, void 0);
|
|
5151
5154
|
};
|
|
5152
5155
|
this.adsIsShowing = !0, P(() => {
|
|
5153
|
-
var
|
|
5154
|
-
this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.countdown.value = (
|
|
5155
|
-
}), (
|
|
5156
|
+
var u;
|
|
5157
|
+
this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.countdown.value = (u = n.params.countdown) != null ? u : 15, this.state.src.value = n.params.url, this.state.mode.value = "rewarded_insterstitial", this.state.visible.value = !0;
|
|
5158
|
+
}), (l = i.onAdPlaying) == null || l.call(i, void 0);
|
|
5156
5159
|
}), this.context = e;
|
|
5157
5160
|
}
|
|
5158
5161
|
}
|
|
5159
5162
|
function ie(t, e, i) {
|
|
5160
|
-
return (e =
|
|
5163
|
+
return (e = Bs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
5161
5164
|
}
|
|
5162
|
-
function
|
|
5163
|
-
var e =
|
|
5165
|
+
function Bs(t) {
|
|
5166
|
+
var e = Ms(t, "string");
|
|
5164
5167
|
return typeof e == "symbol" ? e : e + "";
|
|
5165
5168
|
}
|
|
5166
|
-
function
|
|
5169
|
+
function Ms(t, e) {
|
|
5167
5170
|
if (typeof t != "object" || !t)
|
|
5168
5171
|
return t;
|
|
5169
5172
|
var i = t[Symbol.toPrimitive];
|
|
@@ -5175,7 +5178,7 @@ function Bs(t, e) {
|
|
|
5175
5178
|
}
|
|
5176
5179
|
return (e === "string" ? String : Number)(t);
|
|
5177
5180
|
}
|
|
5178
|
-
class
|
|
5181
|
+
class $s {
|
|
5179
5182
|
constructor(e) {
|
|
5180
5183
|
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", Zi()), ie(this, "processUrl", (i) => {
|
|
5181
5184
|
var s;
|
|
@@ -5190,16 +5193,16 @@ class Ms {
|
|
|
5190
5193
|
var i;
|
|
5191
5194
|
this.adsOverlay && (ye(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
|
|
5192
5195
|
}), ie(this, "requestAd", (i, n) => {
|
|
5193
|
-
var d,
|
|
5196
|
+
var d, l, u, c;
|
|
5194
5197
|
if (!this.adsOverlay || !this.initialized) {
|
|
5195
5198
|
(d = i.onAdError) == null || d.call(i, F.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
5196
5199
|
return;
|
|
5197
5200
|
}
|
|
5198
5201
|
if (this.adsIsShowing) {
|
|
5199
|
-
(
|
|
5202
|
+
(l = i.onAdError) == null || l.call(i, F.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
|
|
5200
5203
|
return;
|
|
5201
5204
|
}
|
|
5202
|
-
(
|
|
5205
|
+
(u = i.onAdRequested) == null || u.call(i);
|
|
5203
5206
|
const r = () => {
|
|
5204
5207
|
var h;
|
|
5205
5208
|
this.adsIsShowing = !1, (h = i.onAdCompleted) == null || h.call(i, void 0);
|
|
@@ -5220,13 +5223,13 @@ class Ms {
|
|
|
5220
5223
|
}
|
|
5221
5224
|
}
|
|
5222
5225
|
function we(t, e, i) {
|
|
5223
|
-
return (e =
|
|
5226
|
+
return (e = Fs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
5224
5227
|
}
|
|
5225
|
-
function
|
|
5226
|
-
var e =
|
|
5228
|
+
function Fs(t) {
|
|
5229
|
+
var e = Us(t, "string");
|
|
5227
5230
|
return typeof e == "symbol" ? e : e + "";
|
|
5228
5231
|
}
|
|
5229
|
-
function
|
|
5232
|
+
function Us(t, e) {
|
|
5230
5233
|
if (typeof t != "object" || !t)
|
|
5231
5234
|
return t;
|
|
5232
5235
|
var i = t[Symbol.toPrimitive];
|
|
@@ -5238,7 +5241,7 @@ function Fs(t, e) {
|
|
|
5238
5241
|
}
|
|
5239
5242
|
return (e === "string" ? String : Number)(t);
|
|
5240
5243
|
}
|
|
5241
|
-
class
|
|
5244
|
+
class js {
|
|
5242
5245
|
constructor(e) {
|
|
5243
5246
|
we(this, "name", "GOOGLE_GPT"), we(this, "context", void 0), we(this, "contextInfo", void 0), we(this, "rewardAdManager", void 0), we(this, "init", async (i) => {
|
|
5244
5247
|
if (!this.rewardAdManager) {
|
|
@@ -5291,13 +5294,13 @@ class Us {
|
|
|
5291
5294
|
}
|
|
5292
5295
|
}
|
|
5293
5296
|
function oe(t, e, i) {
|
|
5294
|
-
return (e =
|
|
5297
|
+
return (e = Vs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
5295
5298
|
}
|
|
5296
|
-
function
|
|
5297
|
-
var e =
|
|
5299
|
+
function Vs(t) {
|
|
5300
|
+
var e = Gs(t, "string");
|
|
5298
5301
|
return typeof e == "symbol" ? e : e + "";
|
|
5299
5302
|
}
|
|
5300
|
-
function
|
|
5303
|
+
function Gs(t, e) {
|
|
5301
5304
|
if (typeof t != "object" || !t)
|
|
5302
5305
|
return t;
|
|
5303
5306
|
var i = t[Symbol.toPrimitive];
|
|
@@ -5345,22 +5348,22 @@ class ve {
|
|
|
5345
5348
|
for (const r of i)
|
|
5346
5349
|
switch (r.provider) {
|
|
5347
5350
|
case "GOOGLE_GPT": {
|
|
5348
|
-
const o = new
|
|
5351
|
+
const o = new js(this.context);
|
|
5349
5352
|
await o.init(r), this.providers.GOOGLE_GPT = o;
|
|
5350
5353
|
break;
|
|
5351
5354
|
}
|
|
5352
5355
|
case "GOOGLE_IMA": {
|
|
5353
|
-
const o = new
|
|
5356
|
+
const o = new Ds(this.context);
|
|
5354
5357
|
await o.init(r), this.providers.GOOGLE_IMA = o;
|
|
5355
5358
|
break;
|
|
5356
5359
|
}
|
|
5357
5360
|
case "OKSPIN": {
|
|
5358
|
-
const o = new
|
|
5361
|
+
const o = new Ls(this.context);
|
|
5359
5362
|
await o.init(r), this.providers.OKSPIN = o;
|
|
5360
5363
|
break;
|
|
5361
5364
|
}
|
|
5362
5365
|
case "APPSROCKETS": {
|
|
5363
|
-
const o = new
|
|
5366
|
+
const o = new $s(this.context);
|
|
5364
5367
|
await o.init(r), this.providers.APPSROCKETS = o;
|
|
5365
5368
|
break;
|
|
5366
5369
|
}
|
|
@@ -5401,7 +5404,7 @@ class ve {
|
|
|
5401
5404
|
this.initialized = !1, this.preloadedAd = null;
|
|
5402
5405
|
}
|
|
5403
5406
|
async requestAd(e) {
|
|
5404
|
-
var i, n, r, o, s, a, d,
|
|
5407
|
+
var i, n, r, o, s, a, d, l, u, c, h, f;
|
|
5405
5408
|
if ((i = this.context.eventEmitter) == null || i.emit("isAdShowing", !0), this.initialized || await this.init(), !this.context.checkNetwork()) {
|
|
5406
5409
|
const v = F.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
|
|
5407
5410
|
(n = e.onAdError) == null || n.call(e, v);
|
|
@@ -5420,11 +5423,11 @@ class ve {
|
|
|
5420
5423
|
const g = w.sort((_, E) => _.seq - E.seq);
|
|
5421
5424
|
if (g.length === 0) {
|
|
5422
5425
|
const _ = F.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
|
|
5423
|
-
(
|
|
5426
|
+
(u = e.onAdError) == null || u.call(e, _);
|
|
5424
5427
|
return;
|
|
5425
5428
|
}
|
|
5426
5429
|
let A = !0, S = null;
|
|
5427
|
-
const p = new
|
|
5430
|
+
const p = new _s(this.context);
|
|
5428
5431
|
for (; g.length > 0; ) {
|
|
5429
5432
|
const _ = g.shift(), E = this.providers[_.provider];
|
|
5430
5433
|
if (E) {
|
|
@@ -5438,7 +5441,7 @@ class ve {
|
|
|
5438
5441
|
A && S && ((c = e.onAdError) == null || c.call(e, S));
|
|
5439
5442
|
} else {
|
|
5440
5443
|
const g = F.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
|
|
5441
|
-
(
|
|
5444
|
+
(l = e.onAdError) == null || l.call(e, g);
|
|
5442
5445
|
return;
|
|
5443
5446
|
}
|
|
5444
5447
|
} catch (v) {
|
|
@@ -5452,13 +5455,13 @@ class ve {
|
|
|
5452
5455
|
oe(ve, "STORAGE_KEY_INIT", "jolibox_afv_init_data");
|
|
5453
5456
|
oe(ve, "STORAGE_KEY_INFO", "jolibox_afv_info_data");
|
|
5454
5457
|
function ke(t, e, i) {
|
|
5455
|
-
return (e =
|
|
5458
|
+
return (e = qs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
5456
5459
|
}
|
|
5457
|
-
function
|
|
5458
|
-
var e =
|
|
5460
|
+
function qs(t) {
|
|
5461
|
+
var e = Ks(t, "string");
|
|
5459
5462
|
return typeof e == "symbol" ? e : e + "";
|
|
5460
5463
|
}
|
|
5461
|
-
function
|
|
5464
|
+
function Ks(t, e) {
|
|
5462
5465
|
if (typeof t != "object" || !t)
|
|
5463
5466
|
return t;
|
|
5464
5467
|
var i = t[Symbol.toPrimitive];
|
|
@@ -5470,7 +5473,7 @@ function qs(t, e) {
|
|
|
5470
5473
|
}
|
|
5471
5474
|
return (e === "string" ? String : Number)(t);
|
|
5472
5475
|
}
|
|
5473
|
-
class
|
|
5476
|
+
class ta extends Error {
|
|
5474
5477
|
constructor(e) {
|
|
5475
5478
|
super(e), ke(this, "name", void 0), ke(this, "message", void 0), ke(this, "errMsg", void 0), ke(this, "code", void 0), ke(this, "data", void 0), ke(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
|
|
5476
5479
|
}
|
|
@@ -5478,13 +5481,13 @@ class ea extends Error {
|
|
|
5478
5481
|
export {
|
|
5479
5482
|
F as AFVWrappedError,
|
|
5480
5483
|
ar as GoogleAdSenseProvider,
|
|
5481
|
-
|
|
5484
|
+
Ds as GoogleIMAProvider,
|
|
5482
5485
|
Uo as InterstitialAdManager,
|
|
5483
|
-
|
|
5486
|
+
ea as JoliboxAdsForGame,
|
|
5484
5487
|
ve as JoliboxAdsForVideo,
|
|
5485
5488
|
wo as OKSpinForGameProvider,
|
|
5486
|
-
|
|
5487
|
-
|
|
5489
|
+
Ls as OKSpinForVideoProvider,
|
|
5490
|
+
ta as ResponseError,
|
|
5488
5491
|
nn as RewardAdManager,
|
|
5489
5492
|
tn as initGPTServices
|
|
5490
5493
|
};
|