@everymatrix/casino-header-controller 1.99.57 → 1.99.60
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/components/{CasinoHamburgerMenu-CXUi_NcT.js → CasinoHamburgerMenu-8Yv9Es4K.js} +1 -1
- package/components/{CasinoHamburgerMenu-DPONn7Oe.cjs → CasinoHamburgerMenu-CL8nhGpg.cjs} +1 -1
- package/components/{CasinoHamburgerMenu-uR8GGiGu.js → CasinoHamburgerMenu-DMqFMBMA.js} +1 -1
- package/components/{CasinoHeaderController-4pGirukJ.cjs → CasinoHeaderController-BebwEw_f.cjs} +2 -2
- package/components/{CasinoHeaderController-DkBA9yLf.js → CasinoHeaderController-D2WkLDTh.js} +44 -75
- package/components/{CasinoHeaderController-CSlIjF2w.js → CasinoHeaderController-TyLRlsLr.js} +43 -74
- package/components/{CasinoSlider-CElWGDXe.js → CasinoSlider-B6pPpBAN.js} +2 -3
- package/components/{CasinoSlider-Cp-AeQjz.js → CasinoSlider-BxI7dLGq.js} +2 -3
- package/components/{CasinoSlider-7EQwu2tM.cjs → CasinoSlider-CDBccV9o.cjs} +1 -1
- package/components/{PlayerAccountBalanceModal-CQH4-Eew.js → PlayerAccountBalanceModal-BE5tx44-.js} +4 -7
- package/components/{PlayerAccountBalanceModal-jtA37xTC.cjs → PlayerAccountBalanceModal-DLseHG5s.cjs} +1 -1
- package/components/{PlayerAccountBalanceModal-CiC5x5pH.js → PlayerAccountBalanceModal-DjiFDthK.js} +4 -7
- package/components/{PlayerDeposit-CEvi6Jjd.cjs → PlayerDeposit-BJuqOzia.cjs} +1 -1
- package/components/{PlayerDeposit-BBdZhQ-P.js → PlayerDeposit-CaAWV9OS.js} +1 -1
- package/components/{PlayerDeposit-JwFZg0JI.js → PlayerDeposit-vUdMmlPG.js} +1 -1
- package/es2015/casino-header-controller.cjs +1 -1
- package/es2015/casino-header-controller.js +1 -1
- package/esnext/casino-header-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{gamification-dropdown-CVnzUphm.cjs → gamification-dropdown-D8NaAbqg.cjs} +1 -1
- package/stencil/{gamification-dropdown-BQS6hhP4.js → gamification-dropdown-DSrBVk8H.js} +1 -1
- package/stencil/{gamification-dropdown-f420baf5-BfpzhUn7.js → gamification-dropdown-f420baf5-B2t9VWTr.js} +4 -7
- package/stencil/{gamification-dropdown-f420baf5-BCKjHtD4.js → gamification-dropdown-f420baf5-DNcHSm2H.js} +4 -7
- package/stencil/{gamification-dropdown-f420baf5-alSGPW2H.cjs → gamification-dropdown-f420baf5-ZxOVTTGg.cjs} +1 -1
- package/stencil/{gamification-dropdown-BUiRE_Yx.js → gamification-dropdown-wl7rjLTt.js} +1 -1
- package/stencil/{gamification-dropdown_4-SKRyZsxx.js → gamification-dropdown_4-BuGJb-5U.js} +4 -4
- package/stencil/{gamification-dropdown_4-DzQLLC_4.cjs → gamification-dropdown_4-CkUSH1P_.cjs} +1 -1
- package/stencil/{gamification-dropdown_4-DWLkL87g.js → gamification-dropdown_4-zpRTTBrB.js} +4 -4
- package/stencil/{index-2ff63899-Bmsl_n53.js → index-2ff63899-BQ-GC1uS.js} +22 -24
- package/stencil/{index-2ff63899-M3OBLBOo.js → index-2ff63899-DKFAXj5b.js} +22 -24
- package/stencil/{index-71b1bdfa-CspYmQxH.cjs → index-71b1bdfa-CboQhAlR.cjs} +1 -1
- package/stencil/{index-71b1bdfa-84w5HKVY.js → index-71b1bdfa-DC7qXgDk.js} +29 -32
- package/stencil/{index-71b1bdfa-BZYNHaid.js → index-71b1bdfa-Dm_5jCHa.js} +29 -32
- package/stencil/{player-elevate-card-DhtGdXIs.js → player-elevate-card-Bq3dgNbQ.js} +2 -2
- package/stencil/{player-elevate-card-DLTz3i6G.js → player-elevate-card-DaBGRCCF.js} +2 -2
- package/stencil/{player-elevate-card-DGfdSEPc.cjs → player-elevate-card-DqVxatD1.cjs} +1 -1
- package/stencil/{player-elevate-card-items-00ff462d-BG3JQcrm.js → player-elevate-card-items-00ff462d-BgCFriKE.js} +3 -5
- package/stencil/{player-elevate-card-items-00ff462d-BpMYjbkg.js → player-elevate-card-items-00ff462d-DV0OTglS.js} +3 -5
- package/stencil/{player-elevate-card-items-00ff462d-H3eXn_1V.cjs → player-elevate-card-items-00ff462d-soRu-WUH.cjs} +1 -1
- package/stencil/{player-elevate-optcard-CXMaEK83.js → player-elevate-optcard-C1qOeyX4.js} +6 -6
- package/stencil/player-elevate-optcard-CveO6eHp.cjs +1 -0
- package/stencil/{player-elevate-optcard-Con-pI2g.js → player-elevate-optcard-mxT5ihy4.js} +4 -4
- package/stencil/{player-elevate-pointcard-BS2urXJv.cjs → player-elevate-pointcard-BKonevSI.cjs} +1 -1
- package/stencil/{player-elevate-pointcard-8tLbC5i_.js → player-elevate-pointcard-Bnmj1qZw.js} +2 -2
- package/stencil/{player-elevate-pointcard-DfasvCvq.js → player-elevate-pointcard-Dkc7UkBV.js} +2 -2
- package/stencil/{player-rakeback-card-DjtoaBPw.cjs → player-rakeback-card-Wq2A87v3.cjs} +1 -1
- package/stencil/{player-rakeback-card-NWvDs0b6.js → player-rakeback-card-mirK503J.js} +1 -1
- package/stencil/{player-rakeback-card-C6_twj91.js → player-rakeback-card-syCyRnvA.js} +1 -1
- package/stencil/{player-step-up-auth_2-sIyE7PcU.js → player-step-up-auth_2-DOHSo_hl.js} +26 -51
- package/stencil/{player-step-up-auth_2-CTrT3eAX.js → player-step-up-auth_2-fYr_xGVR.js} +26 -51
- package/stencil/{user-deposit-withdrawal-vUNB12t8.js → user-deposit-withdrawal-D0uCr6L-.js} +1 -1
- package/stencil/{user-deposit-withdrawal-Ds_hHXZo.js → user-deposit-withdrawal-DaN2eAki.js} +1 -1
- package/stencil/player-elevate-optcard-DXaMieTo.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as Xe, h, F as ze, g as st, H as ot } from "./index-2ff63899-
|
|
1
|
+
import { r as Xe, h, F as ze, g as st, H as ot } from "./index-2ff63899-BQ-GC1uS.js";
|
|
2
2
|
const Ae = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
3
3
|
function Ie(e, t) {
|
|
4
4
|
if (e) {
|
|
@@ -7,8 +7,7 @@ function Ie(e, t) {
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
function Ue(e, t) {
|
|
10
|
-
if (!e || !t)
|
|
11
|
-
return;
|
|
10
|
+
if (!e || !t) return;
|
|
12
11
|
const i = new URL(t);
|
|
13
12
|
fetch(i.href).then((n) => n.text()).then((n) => {
|
|
14
13
|
const p = document.createElement("style");
|
|
@@ -18,8 +17,7 @@ function Ue(e, t) {
|
|
|
18
17
|
});
|
|
19
18
|
}
|
|
20
19
|
function Ze(e, t, i, n = !1) {
|
|
21
|
-
if (!window.emMessageBus)
|
|
22
|
-
return;
|
|
20
|
+
if (!window.emMessageBus) return;
|
|
23
21
|
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
24
22
|
return i = dt(e, t), i;
|
|
25
23
|
window[Ae] || (window[Ae] = {}), i = lt(e, t);
|
|
@@ -40,8 +38,7 @@ function dt(e, t) {
|
|
|
40
38
|
}
|
|
41
39
|
function lt(e, t) {
|
|
42
40
|
return window.emMessageBus.subscribe(t, (i) => {
|
|
43
|
-
if (!e)
|
|
44
|
-
return;
|
|
41
|
+
if (!e) return;
|
|
45
42
|
const n = e.getRootNode(), p = window[Ae];
|
|
46
43
|
let E = p[t] && p[t].sheet;
|
|
47
44
|
E ? p[t].refCount = p[t].refCount + 1 : (E = new CSSStyleSheet(), E.replaceSync(i), p[t] = {
|
|
@@ -737,8 +734,7 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
737
734
|
var l = -g.utcOffset(), a = Math.abs(l), u = Math.floor(a / 60), o = a % 60;
|
|
738
735
|
return (l <= 0 ? "+" : "-") + A(u, 2, "0") + ":" + A(o, 2, "0");
|
|
739
736
|
}, m: function g(l, a) {
|
|
740
|
-
if (l.date() < a.date())
|
|
741
|
-
return -g(a, l);
|
|
737
|
+
if (l.date() < a.date()) return -g(a, l);
|
|
742
738
|
var u = 12 * (a.year() - l.year()) + (a.month() - l.month()), o = l.clone().add(u, W), m = a - o < 0, y = l.clone().add(u + (m ? -1 : 1), W);
|
|
743
739
|
return +(-(u + (a - o) / (m ? o - y : y - o)) || 0);
|
|
744
740
|
}, a: function(g) {
|
|
@@ -753,22 +749,19 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
753
749
|
return g instanceof se || !(!g || !g[he]);
|
|
754
750
|
}, ae = function g(l, a, u) {
|
|
755
751
|
var o;
|
|
756
|
-
if (!l)
|
|
757
|
-
return ne;
|
|
752
|
+
if (!l) return ne;
|
|
758
753
|
if (typeof l == "string") {
|
|
759
754
|
var m = l.toLowerCase();
|
|
760
755
|
Q[m] && (o = m), a && (Q[m] = a, o = m);
|
|
761
756
|
var y = l.split("-");
|
|
762
|
-
if (!o && y.length > 1)
|
|
763
|
-
return g(y[0]);
|
|
757
|
+
if (!o && y.length > 1) return g(y[0]);
|
|
764
758
|
} else {
|
|
765
759
|
var C = l.name;
|
|
766
760
|
Q[C] = l, o = C;
|
|
767
761
|
}
|
|
768
762
|
return !u && o && (ne = o), o || !u && ne;
|
|
769
763
|
}, k = function(g, l) {
|
|
770
|
-
if (Ee(g))
|
|
771
|
-
return g.clone();
|
|
764
|
+
if (Ee(g)) return g.clone();
|
|
772
765
|
var a = typeof l == "object" ? l : {};
|
|
773
766
|
return a.date = g, a.args = arguments, new se(a);
|
|
774
767
|
}, M = ie;
|
|
@@ -783,12 +776,9 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
783
776
|
return l.parse = function(a) {
|
|
784
777
|
this.$d = function(u) {
|
|
785
778
|
var o = u.date, m = u.utc;
|
|
786
|
-
if (o === null)
|
|
787
|
-
|
|
788
|
-
if (
|
|
789
|
-
return /* @__PURE__ */ new Date();
|
|
790
|
-
if (o instanceof Date)
|
|
791
|
-
return new Date(o);
|
|
779
|
+
if (o === null) return /* @__PURE__ */ new Date(NaN);
|
|
780
|
+
if (M.u(o)) return /* @__PURE__ */ new Date();
|
|
781
|
+
if (o instanceof Date) return new Date(o);
|
|
792
782
|
if (typeof o == "string" && !/Z$/i.test(o)) {
|
|
793
783
|
var y = o.match(Y);
|
|
794
784
|
if (y) {
|
|
@@ -852,8 +842,7 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
852
842
|
if (m === W || m === q) {
|
|
853
843
|
var U = this.clone().set(re, 1);
|
|
854
844
|
U.$d[C](x), U.init(), this.$d = U.set(re, Math.min(this.$D, U.daysInMonth())).$d;
|
|
855
|
-
} else
|
|
856
|
-
C && this.$d[C](x);
|
|
845
|
+
} else C && this.$d[C](x);
|
|
857
846
|
return this.init(), this;
|
|
858
847
|
}, l.set = function(a, u) {
|
|
859
848
|
return this.clone().$set(a, u);
|
|
@@ -866,22 +855,17 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
866
855
|
var Z = k(m);
|
|
867
856
|
return M.w(Z.date(Z.date() + Math.round(N * a)), m);
|
|
868
857
|
};
|
|
869
|
-
if (y === W)
|
|
870
|
-
|
|
871
|
-
if (y ===
|
|
872
|
-
|
|
873
|
-
if (y === I)
|
|
874
|
-
return C(1);
|
|
875
|
-
if (y === we)
|
|
876
|
-
return C(7);
|
|
858
|
+
if (y === W) return this.set(W, this.$M + a);
|
|
859
|
+
if (y === q) return this.set(q, this.$y + a);
|
|
860
|
+
if (y === I) return C(1);
|
|
861
|
+
if (y === we) return C(7);
|
|
877
862
|
var x = (o = {}, o[_] = n, o[O] = p, o[F] = i, o)[y] || 1, U = this.$d.getTime() + a * x;
|
|
878
863
|
return M.w(U, this);
|
|
879
864
|
}, l.subtract = function(a, u) {
|
|
880
865
|
return this.add(-1 * a, u);
|
|
881
866
|
}, l.format = function(a) {
|
|
882
867
|
var u = this, o = this.$locale();
|
|
883
|
-
if (!this.isValid())
|
|
884
|
-
return o.invalidDate || v;
|
|
868
|
+
if (!this.isValid()) return o.invalidDate || v;
|
|
885
869
|
var m = a || "YYYY-MM-DDTHH:mm:ssZ", y = M.z(this), C = this.$H, x = this.$m, U = this.$M, N = o.weekdays, Z = o.months, be = o.meridiem, pe = function(H, j, Te, Me) {
|
|
886
870
|
return H && (H[j] || H(u, m)) || Te[j].slice(0, Me);
|
|
887
871
|
}, fe = function(H) {
|
|
@@ -985,8 +969,7 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
985
969
|
}, l.$locale = function() {
|
|
986
970
|
return Q[this.$L];
|
|
987
971
|
}, l.locale = function(a, u) {
|
|
988
|
-
if (!a)
|
|
989
|
-
return this.$L;
|
|
972
|
+
if (!a) return this.$L;
|
|
990
973
|
var o = this.clone(), m = ae(a, u, !0);
|
|
991
974
|
return m && (o.$L = m), o;
|
|
992
975
|
}, l.clone = function() {
|
|
@@ -1039,31 +1022,25 @@ var rt = { exports: {} };
|
|
|
1039
1022
|
if (this.$u) {
|
|
1040
1023
|
var v = this.$d;
|
|
1041
1024
|
this.$y = v.getUTCFullYear(), this.$M = v.getUTCMonth(), this.$D = v.getUTCDate(), this.$W = v.getUTCDay(), this.$H = v.getUTCHours(), this.$m = v.getUTCMinutes(), this.$s = v.getUTCSeconds(), this.$ms = v.getUTCMilliseconds();
|
|
1042
|
-
} else
|
|
1043
|
-
we.call(this);
|
|
1025
|
+
} else we.call(this);
|
|
1044
1026
|
};
|
|
1045
1027
|
var W = O.utcOffset;
|
|
1046
1028
|
O.utcOffset = function(v, Y) {
|
|
1047
1029
|
var ue = this.$utils().u;
|
|
1048
|
-
if (ue(v))
|
|
1049
|
-
return this.$u ? 0 : ue(this.$offset) ? W.call(this) : this.$offset;
|
|
1030
|
+
if (ue(v)) return this.$u ? 0 : ue(this.$offset) ? W.call(this) : this.$offset;
|
|
1050
1031
|
if (typeof v == "string" && (v = function(ne) {
|
|
1051
1032
|
ne === void 0 && (ne = "");
|
|
1052
1033
|
var Q = ne.match(n);
|
|
1053
|
-
if (!Q)
|
|
1054
|
-
return null;
|
|
1034
|
+
if (!Q) return null;
|
|
1055
1035
|
var he = ("" + Q[0]).match(p) || ["-", 0, 0], Ee = he[0], ae = 60 * +he[1] + +he[2];
|
|
1056
1036
|
return ae === 0 ? 0 : Ee === "+" ? ae : -ae;
|
|
1057
|
-
}(v), v === null))
|
|
1058
|
-
return this;
|
|
1037
|
+
}(v), v === null)) return this;
|
|
1059
1038
|
var ce = Math.abs(v) <= 16 ? 60 * v : v, A = this;
|
|
1060
|
-
if (Y)
|
|
1061
|
-
return A.$offset = ce, A.$u = v === 0, A;
|
|
1039
|
+
if (Y) return A.$offset = ce, A.$u = v === 0, A;
|
|
1062
1040
|
if (v !== 0) {
|
|
1063
1041
|
var ie = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
1064
1042
|
(A = this.local().add(ce + ie, i)).$offset = ce, A.$x.$localOffset = ie;
|
|
1065
|
-
} else
|
|
1066
|
-
A = this.utc();
|
|
1043
|
+
} else A = this.utc();
|
|
1067
1044
|
return A;
|
|
1068
1045
|
};
|
|
1069
1046
|
var Ce = O.format;
|
|
@@ -1086,8 +1063,7 @@ var rt = { exports: {} };
|
|
|
1086
1063
|
};
|
|
1087
1064
|
var re = O.diff;
|
|
1088
1065
|
O.diff = function(v, Y, ue) {
|
|
1089
|
-
if (v && this.$u === v.$u)
|
|
1090
|
-
return re.call(this, v, Y, ue);
|
|
1066
|
+
if (v && this.$u === v.$u) return re.call(this, v, Y, ue);
|
|
1091
1067
|
var ce = this.local(), A = _(v).local();
|
|
1092
1068
|
return re.call(ce, A, Y, ue);
|
|
1093
1069
|
};
|
|
@@ -1967,8 +1943,7 @@ const Ct = class {
|
|
|
1967
1943
|
if (i === We.TWO_FACTOR_AUTH) {
|
|
1968
1944
|
const { body: { challengeId: n } = {} } = t;
|
|
1969
1945
|
n ? this.triggerStepUpAuth(n) : console.error(`${We.TWO_FACTOR_AUTH} received but challengeId not found in body`);
|
|
1970
|
-
} else
|
|
1971
|
-
i === We.SESSION_EXPIRATION && (console.info("[SSE] SESSION_EXPIRATION received, closing connection"), window.postMessage({ type: "SessionExpiration", reason: St.FAILED_2FA }, window.location.href), this.closeSSEStream());
|
|
1946
|
+
} else i === We.SESSION_EXPIRATION && (console.info("[SSE] SESSION_EXPIRATION received, closing connection"), window.postMessage({ type: "SessionExpiration", reason: St.FAILED_2FA }, window.location.href), this.closeSSEStream());
|
|
1972
1947
|
} catch (t) {
|
|
1973
1948
|
console.error("Error parsing SSE message:", t);
|
|
1974
1949
|
}
|
|
@@ -14,7 +14,7 @@ var i = (t, r, n) => new Promise((o, a) => {
|
|
|
14
14
|
}, l = (e) => e.done ? o(e.value) : Promise.resolve(e.value).then(u, p);
|
|
15
15
|
l((n = n.apply(t, r)).next());
|
|
16
16
|
});
|
|
17
|
-
import { b as c, p as h } from "./index-2ff63899-
|
|
17
|
+
import { b as c, p as h } from "./index-2ff63899-DKFAXj5b.js";
|
|
18
18
|
import { g } from "./app-globals-0f993ce5-Cgk0KVAu.js";
|
|
19
19
|
var d = () => {
|
|
20
20
|
const t = import.meta.url, r = {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var d=(t,e,o)=>new Promise((a,l)=>{var h=i=>{try{r(o.next(i))}catch(s){l(s)}},f=i=>{try{r(o.throw(i))}catch(s){l(s)}},r=i=>i.done?a(i.value):Promise.resolve(i.value).then(h,f);r((o=o.apply(t,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-71b1bdfa-CspYmQxH.cjs"),c=require("./locale-9O1EQzoO.cjs"),g=":host{display:block;width:100%;box-sizing:border-box;background:var(--emw--color-black-15, #0b1511)}.OptCard{display:flex;flex-direction:column;width:100%;box-sizing:border-box;max-width:100%;min-width:0;box-sizing:border-box;padding:22px 20px 14px;gap:0}.OptInButton{width:100%;height:54px;border:2px solid var(--emw--button-contrast-background, #087b36);border-radius:30px;cursor:pointer;background:var(--emw--button-contrast-background);color:var(--emw--button-typography-contrast, #ffffff);font-size:16px;font-weight:700;transition:opacity 0.2s ease}.OptInButton:hover{opacity:0.9}.OptInButton:active{transform:scale(0.99)}.OptInButton.OptOutButton{background:transparent;color:var(--c-base-07, #999);border:1px solid var(--c-base-07, #999)}.OptInButton:disabled{opacity:0.5;cursor:not-allowed}.Description{margin:16px 0 14px;font-size:13px;line-height:15px;font-weight:400;width:100%;max-width:428px;box-sizing:border-box;color:var(--emw--color-typography, #ffffff);white-space:pre-line;overflow-wrap:break-word}.TermsLink{display:flex;justify-content:center;align-items:center;gap:5px;margin-top:0;font-size:13px;font-weight:700;color:var(--emw--color-secondary, #16c653);cursor:pointer;text-decoration:none}.TermsLink:hover{text-decoration:underline}",u=g,p=class{constructor(t){n.registerInstance(this,t),this.endpoint=void 0,this.session=void 0,this.language="en",this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.translationUrl="",this.optIn=void 0,this.complianceUrl="",this.description=""}onSessionOrEndpointChange(){this.paramProxy=Object.assign(Object.assign({},this.paramProxy),{session:this.session,endpoint:this.endpoint,language:this.language}),this.loadTerms()}handleMessage(t){var e;t.origin===window.location.origin&&((e=t.data)===null||e===void 0?void 0:e.type)==="userUpdateOptLoyaltySuccess"&&(this.optIn=!0)}playerElevateLeveLoadedHandler(t){var e;typeof((e=t.detail)===null||e===void 0?void 0:e.optIn)=="boolean"&&(this.optIn=t.detail.optIn)}onButtonClick(){window.postMessage({type:this.optIn?"BEE_OPT_OUT_CLICKED":"BEE_OPT_IN_CLICKED"},window.location.origin)}loadTerms(){return d(this,null,function*(){var t,e;if(this.endpoint)try{const a=yield(yield fetch(`${this.endpoint}/v1/elevate/optIn/terms?language=${this.language}`)).json();a.success&&(this.complianceUrl=((t=a.data)===null||t===void 0?void 0:t.complianceUrl)||"",this.description=((e=a.data)===null||e===void 0?void 0:e.complianceDesc)||"")}catch(o){console.error("Failed to load opt-in terms",o)}})}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language},this.loadTerms()}render(){return n.h("div",{key:"2a61bab32150215270af23f4a95b7ccf823cc6c9",class:"OptCard"},n.h("general-styling-wrapper",{key:"5a82e13f9d58066adf518ff94f44ce64306bdfa1",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:c.TRANSLATIONS,translationUrl:this.translationUrl,mbSource:this.mbSource}),n.h("player-elevate-card-data",{key:"db9465ee05877105128bf4640b60fdf0a001ef0b",params:this.paramProxy}),this.optIn!==void 0&&n.h("button",{key:"7683432936cca8181089024146e5d274c5a3ac92",class:{OptInButton:!0,OptOutButton:this.optIn},onClick:()=>this.onButtonClick()},c.translate(this.optIn?"optOut":"optIn",this.language)),this.description&&n.h("div",{key:"1aa7343e9f43dd1a770820671cc994cf4a5a6cb3",class:"Description"},this.description),this.complianceUrl&&n.h("a",{key:"fa510c583facb9513ae135ce704c1720904196fd",href:this.complianceUrl,target:"_blank",rel:"noopener noreferrer",class:"TermsLink"},c.translate("termsAndConditions",this.language),n.h("svg",{key:"6414feecba959dc7fbfc57b55f8c953258b0a998",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},n.h("path",{key:"ec2716dfa2f465945193ba80d455df8c2ba7f6ca",d:"M14 3h7v7"}),n.h("path",{key:"e9a1b86d1e9f22109303e3dc9915158f5786f411",d:"M10 14L21 3"}),n.h("path",{key:"5f34ff03f7a790ca4fc72811efa076b2c520c6fe",d:"M21 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5"}))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};p.style=u;exports.player_elevate_optcard=p;
|