@everymatrix/player-account-controller 1.53.12 → 1.54.0
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/{GeneralLogout-Ddt-oH9k.js → GeneralLogout-CsWa2j6i.js} +1131 -1094
- package/components/GeneralLogout-DfI2_eQe.cjs +8 -0
- package/components/{PlayerAccountBettingHistory-C7xwYi03.js → PlayerAccountBettingHistory-D_8K8e-E.js} +35 -34
- package/components/PlayerAccountBettingHistory-ldAp8-yN.cjs +1 -0
- package/components/PlayerAccountBiometrics-Cft2jzuJ.cjs +1 -0
- package/components/{PlayerAccountBiometrics-D7WS5cnI.js → PlayerAccountBiometrics-FWYyFKmB.js} +1 -1
- package/components/{PlayerAccountClosure-yRlo8hXR.js → PlayerAccountClosure-BJP8eejl.js} +1 -1
- package/components/PlayerAccountClosure-DvHhtHhl.cjs +1 -0
- package/components/PlayerAccountController-DDLO4xVW.cjs +1 -0
- package/components/{PlayerAccountController-BZYAo3oo.js → PlayerAccountController-DQGj69Re.js} +353 -336
- package/components/{PlayerAccountGamingLimits-CTBhVGgC.js → PlayerAccountGamingLimits-Dt8hOZzW.js} +3 -3
- package/components/PlayerAccountGamingLimits-EQC_UZag.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CuQvNzww.js → PlayerAccountGamingLimitsConfirmationModal-B6SPYMpk.js} +1 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-Ciz1fSFW.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsGroupEdit-Du2YQlDU.js → PlayerAccountGamingLimitsGroupEdit-BG2VPqUz.js} +16 -16
- package/components/PlayerAccountGamingLimitsGroupEdit-CLjUmEQv.cjs +10 -0
- package/components/{PlayerAccountGamingLimitsHistory2-CXKA0L0d.js → PlayerAccountGamingLimitsHistory2-65MLJ2rD.js} +132 -121
- package/components/PlayerAccountGamingLimitsHistory2-CG4RnfZE.cjs +1 -0
- package/components/PlayerAccountGamingLimitsInfoCard-Au2vobro.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsInfoCard-CWTybgoQ.js → PlayerAccountGamingLimitsInfoCard-CqTAvCh7.js} +4 -4
- package/components/{PlayerAccountGamingLimitsPage2Gm16-CXjNcIFP.js → PlayerAccountGamingLimitsPage2Gm16-C3dTjA-p.js} +768 -737
- package/components/PlayerAccountGamingLimitsPage2Gm16-CMnCgRU1.cjs +21 -0
- package/components/PlayerAccountGamingLimitsPopup-BtbGIQFb.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsPopup-CJu5RRl6.js → PlayerAccountGamingLimitsPopup-diUVGesC.js} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-BdpxEDlV.js → PlayerAccountGamingLimitsWrapper2-BmDihzLr.js} +81 -75
- package/components/PlayerAccountGamingLimitsWrapper2-CW3N7E83.cjs +1 -0
- package/components/{PlayerAccountGeneralConfirmationModal-DG0N686t.js → PlayerAccountGeneralConfirmationModal-D3tbAl7Q.js} +1 -1
- package/components/PlayerAccountGeneralConfirmationModal-xMxALug3.cjs +1 -0
- package/components/{PlayerAccountMenu-CZBa8_5G.js → PlayerAccountMenu-CbXhpL1a.js} +67 -66
- package/components/PlayerAccountMenu-DHGBVm64.cjs +1 -0
- package/components/{PlayerAccountModal-BmKjtXKT.js → PlayerAccountModal-5TJbkUF8.js} +1 -1
- package/components/PlayerAccountModal-BitbPM3Z.cjs +1 -0
- package/components/{PlayerAccountNotifications-B4Ht-hHj.js → PlayerAccountNotifications-BVY-SXyT.js} +1 -1
- package/components/PlayerAccountNotifications-DDu6ZWkh.cjs +1 -0
- package/components/PlayerAccountSelfExclusion-9vzbBY28.cjs +3828 -0
- package/components/{PlayerAccountSelfExclusion-DxGHXTb8.js → PlayerAccountSelfExclusion-BGfuEA4r.js} +1572 -1488
- package/components/{PlayerAccountTimeout-DOSjICsY.js → PlayerAccountTimeout-BDDMm0XX.js} +4 -4
- package/components/PlayerAccountTimeout-f4vPyQE-.cjs +1 -0
- package/components/PlayerActiveBonuses-BVQwAh2z.cjs +1 -0
- package/components/{PlayerActiveBonuses-DMAG7NUP.js → PlayerActiveBonuses-D0RUTvjl.js} +120 -119
- package/components/{PlayerBonusCard-Dss1REmn.js → PlayerBonusCard-CU67pLmG.js} +2 -2
- package/components/PlayerBonusCard-UTTIEBwb.cjs +1 -0
- package/components/{PlayerBonusHistory-BxBiQwQf.js → PlayerBonusHistory-BLedlLHg.js} +53 -53
- package/components/PlayerBonusHistory-EXOvKzDr.cjs +1 -0
- package/components/{PlayerChangePassword-DnCj-wcc.js → PlayerChangePassword-8ZD6eOj-.js} +1 -1
- package/components/PlayerChangePassword-XpKJjnFu.cjs +3 -0
- package/components/{PlayerDeposit-CHIQ8EaC.js → PlayerDeposit-D5Xuk21T.js} +1 -1
- package/components/PlayerDeposit-Do7vb_4b.cjs +1 -0
- package/components/PlayerGamingHistory-OEU1L3Q2.cjs +1 -0
- package/components/{PlayerGamingHistory-BtQ73TId.js → PlayerGamingHistory-tb-rMGdz.js} +388 -375
- package/components/PlayerPendingWithdrawals-Bu2MOezw.cjs +1 -0
- package/components/{PlayerPendingWithdrawals-BbTa7_8U.js → PlayerPendingWithdrawals-DuN3Qn3P.js} +1 -1
- package/components/{PlayerProfileInfo-CvAqD3Dk.js → PlayerProfileInfo-DmKFg0dn.js} +549 -532
- package/components/PlayerProfileInfo-lMeb2jBi.cjs +1 -0
- package/components/{PlayerRealityCheck-3d-B64ie.js → PlayerRealityCheck-BUW8tvj3.js} +191 -175
- package/components/PlayerRealityCheck-CA0P_3BC.cjs +1 -0
- package/components/PlayerTransactionHistory-CvZcvyBx.cjs +1 -0
- package/components/{PlayerTransactionHistory-BYJNabMB.js → PlayerTransactionHistory-hGi2tOL2.js} +1 -1
- package/components/{PlayerWithdrawal-DDWroufG.js → PlayerWithdrawal-CR3Xpytk.js} +1 -1
- package/components/PlayerWithdrawal-DxLwjX7x.cjs +1 -0
- package/es2015/player-account-controller.cjs +1 -0
- package/es2015/player-account-controller.js +16 -0
- package/package.json +33 -12
- package/stencil/active-mixin-59dfae2a-1hMz67mM.cjs +1519 -0
- package/stencil/{active-mixin-59dfae2a-BphP4pp5.js → active-mixin-59dfae2a-CJN1Jc-g.js} +776 -745
- package/stencil/app-globals-0f993ce5-8artnnwr.cjs +1 -0
- package/stencil/{checkbox-group-input_9-CMFoK7_E.js → checkbox-group-input_9-DQoOMgN8.js} +1942 -1873
- package/stencil/checkbox-group-input_9-DiXERGqn.cjs +4193 -0
- package/stencil/{general-input-DnFPstQP.js → general-input-bzWxIJkt.js} +1 -1
- package/stencil/general-input-fzGwoSoE.cjs +1 -0
- package/stencil/index-062e829b-CpXLBOEz.cjs +1 -0
- package/stencil/{index-062e829b-DAFsZs6D.js → index-062e829b-DPj_pEuI.js} +236 -220
- package/stencil/index-33f005e1-BS5PFnj3.cjs +1 -0
- package/stencil/{index-33f005e1-fFxPaeNy.js → index-33f005e1-DGGQe5wK.js} +239 -223
- package/stencil/{index-9b3245b3-rzHgwqlB.js → index-9b3245b3-3zj7bxxu.js} +193 -166
- package/stencil/index-9b3245b3-ByXtSZIM.cjs +1 -0
- package/stencil/{index-fc58390d-BSwfXuUs.js → index-fc58390d-DeoeGpBS.js} +294 -267
- package/stencil/index-fc58390d-DgBOSsU7.cjs +1 -0
- package/stencil/locale-B5abSHU_.cjs +1 -0
- package/stencil/password-input_2-DvDzz75b.cjs +1248 -0
- package/stencil/{password-input_2-Bb9Q6Fe0.js → password-input_2-Dx1lICIg.js} +154 -136
- package/stencil/player-change-password-gm2-98dcb7bc-CCEw2GA2.cjs +1 -0
- package/stencil/{player-change-password-gm2-98dcb7bc-gLcZhl3S.js → player-change-password-gm2-98dcb7bc-F9HM0T8d.js} +1 -1
- package/stencil/player-change-password-gm2-BEYcuzS-.cjs +1 -0
- package/stencil/player-change-password-gm2-NWnv4CCw.js +25 -0
- package/stencil/player-kyc-verification-_iT3bbO9.cjs +180 -0
- package/stencil/{player-kyc-verification-BQZdJFEJ.js → player-kyc-verification-o-RUWyY4.js} +83 -61
- package/stencil/{toggle-checkbox-input-CCLW6-uK.js → toggle-checkbox-input-BCrxxTpc.js} +1 -1
- package/stencil/toggle-checkbox-input-BYoIi-jG.cjs +1 -0
- package/stencil/tooltipIcon-ee9760a8-Bd9l1O5C.cjs +1 -0
- package/stencil/{user-deposit-withdrawal-CmF0LoNb.js → user-deposit-withdrawal-DEMVRyvk.js} +197 -175
- package/stencil/user-deposit-withdrawal-_jt0Ivg5.cjs +59 -0
- package/stencil/{user-transaction-history-BgV-k2Cl.js → user-transaction-history-CevHOCcm.js} +107 -81
- package/stencil/user-transaction-history-U0c__t1q.cjs +1 -0
- package/esnext/player-account-controller.js +0 -14
- package/stencil/player-change-password-gm2-DR3e2gh5.js +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ae, $ as ie, S as ce, i as se, f as F, c as ue, s as me, b as ye, e as v, k as T, o as D, p as E, q as ge, u as O, v as pe, x as de, y as fe, K as R, d as k, t as H, g as s, l as a, n as z, L as he, w as L, m as W, r as Ae, j as
|
|
1
|
+
import { a as ae, $ as ie, S as ce, i as se, f as F, c as ue, s as me, b as ye, e as v, k as T, o as D, p as E, q as ge, u as O, v as pe, x as de, y as fe, K as R, d as k, t as H, g as s, l as a, n as z, L as he, w as L, m as W, r as Ae, j as P, X as q } from "./GeneralLogout-CsWa2j6i.js";
|
|
2
2
|
function N(n, e) {
|
|
3
3
|
ae(n, e);
|
|
4
4
|
}
|
|
@@ -40,7 +40,7 @@ const G = {
|
|
|
40
40
|
title: "My Account"
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
if (typeof window
|
|
43
|
+
if (typeof window != "undefined") {
|
|
44
44
|
let n = function(e) {
|
|
45
45
|
return function(...t) {
|
|
46
46
|
try {
|
|
@@ -52,7 +52,7 @@ if (typeof window < "u") {
|
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
-
customElements.define = n(customElements.define), import("./GeneralLogout-
|
|
55
|
+
customElements.define = n(customElements.define), import("./GeneralLogout-CsWa2j6i.js").then((e) => e.a4).then(({ default: e }) => {
|
|
56
56
|
!customElements.get("general-logout") && customElements.define("general-logout", e.element);
|
|
57
57
|
});
|
|
58
58
|
}
|
|
@@ -64,7 +64,7 @@ function X(n, e, t) {
|
|
|
64
64
|
return o[35] = e[t], o;
|
|
65
65
|
}
|
|
66
66
|
function be(n) {
|
|
67
|
-
let e, t, o, r, y, m, p,
|
|
67
|
+
let e, t, o, r, y, m, p, A, w, b, f, _, M = (
|
|
68
68
|
/*isMobile*/
|
|
69
69
|
n[10] && we(n)
|
|
70
70
|
), g = (
|
|
@@ -80,13 +80,13 @@ function be(n) {
|
|
|
80
80
|
n[10] && _e(n);
|
|
81
81
|
return {
|
|
82
82
|
c() {
|
|
83
|
-
e = v("div"), t = v("div"),
|
|
83
|
+
e = v("div"), t = v("div"), M && M.c(), o = k(), r = v("p"), y = H(
|
|
84
84
|
/*profileUsername*/
|
|
85
85
|
n[7]
|
|
86
|
-
), m = k(), p = v("p"),
|
|
86
|
+
), m = k(), p = v("p"), A = H(
|
|
87
87
|
/*profileEmail*/
|
|
88
88
|
n[8]
|
|
89
|
-
), w = k(), g && g.c(),
|
|
89
|
+
), w = k(), g && g.c(), b = k(), f = v("div");
|
|
90
90
|
for (let i = 0; i < u.length; i += 1)
|
|
91
91
|
u[i].c();
|
|
92
92
|
_ = k(), C && C.c(), s(r, "class", "PlayerAccountMenuUser"), s(p, "class", "PlayerAccountMenuEmail"), s(t, "class", "PlayerAccountMenuHeader " + /*isMobile*/
|
|
@@ -96,7 +96,7 @@ function be(n) {
|
|
|
96
96
|
n[10] ? "PlayerAccountTabletContainer" : ""));
|
|
97
97
|
},
|
|
98
98
|
m(i, I) {
|
|
99
|
-
T(i, e, I), a(e, t),
|
|
99
|
+
T(i, e, I), a(e, t), M && M.m(t, null), a(t, o), a(t, r), a(r, y), a(t, m), a(t, p), a(p, A), a(t, w), g && g.m(t, null), a(e, b), a(e, f);
|
|
100
100
|
for (let d = 0; d < u.length; d += 1)
|
|
101
101
|
u[d] && u[d].m(f, null);
|
|
102
102
|
a(e, _), C && C.m(e, null);
|
|
@@ -104,14 +104,14 @@ function be(n) {
|
|
|
104
104
|
p(i, I) {
|
|
105
105
|
if (
|
|
106
106
|
/*isMobile*/
|
|
107
|
-
i[10] &&
|
|
107
|
+
i[10] && M.p(i, I), I[0] & /*profileUsername*/
|
|
108
108
|
128 && z(
|
|
109
109
|
y,
|
|
110
110
|
/*profileUsername*/
|
|
111
111
|
i[7]
|
|
112
112
|
), I[0] & /*profileEmail*/
|
|
113
113
|
256 && z(
|
|
114
|
-
|
|
114
|
+
A,
|
|
115
115
|
/*profileEmail*/
|
|
116
116
|
i[8]
|
|
117
117
|
), /*isMobile*/
|
|
@@ -135,21 +135,21 @@ function be(n) {
|
|
|
135
135
|
i[10] || C.p(i, I);
|
|
136
136
|
},
|
|
137
137
|
d(i) {
|
|
138
|
-
i && E(e),
|
|
138
|
+
i && E(e), M && M.d(), g && g.d(), he(u, i), C && C.d();
|
|
139
139
|
}
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
142
|
function we(n) {
|
|
143
|
-
let e, t, o, r, y, m, p,
|
|
143
|
+
let e, t, o, r, y, m, p, A, w, b, f = (
|
|
144
144
|
/*$_*/
|
|
145
145
|
n[9]("title") + ""
|
|
146
|
-
), _,
|
|
146
|
+
), _, M, g;
|
|
147
147
|
return {
|
|
148
148
|
c() {
|
|
149
|
-
e = v("div"), t = L("svg"), o = L("defs"), r = L("style"), y = H(".aaa{fill:var(--emw--color-white, #FFFFFF);}"), m = L("g"), p = L("g"),
|
|
149
|
+
e = v("div"), t = L("svg"), o = L("defs"), r = L("style"), y = H(".aaa{fill:var(--emw--color-white, #FFFFFF);}"), m = L("g"), p = L("g"), A = L("path"), w = k(), b = v("h3"), _ = H(f), s(A, "class", "aaa"), s(A, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), s(A, "transform", "translate(15 15) rotate(180)"), s(p, "transform", "translate(20 158)"), s(m, "transform", "translate(-20 -158)"), s(t, "xmlns", "http://www.w3.org/2000/svg"), s(t, "width", "15"), s(t, "height", "15"), s(t, "viewBox", "0 0 15 15"), s(b, "class", "PlayerAccountMenuCategoryTitle"), s(e, "class", "PlayerAccountMenuCategoryWrapper");
|
|
150
150
|
},
|
|
151
151
|
m(c, u) {
|
|
152
|
-
T(c, e, u), a(e, t), a(t, o), a(o, r), a(r, y), a(t, m), a(m, p), a(p,
|
|
152
|
+
T(c, e, u), a(e, t), a(t, o), a(o, r), a(r, y), a(t, m), a(m, p), a(p, A), a(e, w), a(e, b), a(b, _), M || (g = [
|
|
153
153
|
W(
|
|
154
154
|
t,
|
|
155
155
|
"click",
|
|
@@ -157,12 +157,12 @@ function we(n) {
|
|
|
157
157
|
n[13]
|
|
158
158
|
),
|
|
159
159
|
W(
|
|
160
|
-
|
|
160
|
+
b,
|
|
161
161
|
"click",
|
|
162
162
|
/*goToHome*/
|
|
163
163
|
n[13]
|
|
164
164
|
)
|
|
165
|
-
],
|
|
165
|
+
], M = !0);
|
|
166
166
|
},
|
|
167
167
|
p(c, u) {
|
|
168
168
|
u[0] & /*$_*/
|
|
@@ -170,7 +170,7 @@ function we(n) {
|
|
|
170
170
|
c[9]("title") + "") && z(_, f);
|
|
171
171
|
},
|
|
172
172
|
d(c) {
|
|
173
|
-
c && E(e),
|
|
173
|
+
c && E(e), M = !1, Ae(g);
|
|
174
174
|
}
|
|
175
175
|
};
|
|
176
176
|
}
|
|
@@ -178,22 +178,22 @@ function ve(n) {
|
|
|
178
178
|
let e, t;
|
|
179
179
|
return {
|
|
180
180
|
c() {
|
|
181
|
-
e = v("div"), t = v("general-logout"),
|
|
181
|
+
e = v("div"), t = v("general-logout"), P(
|
|
182
182
|
t,
|
|
183
183
|
"endpoint",
|
|
184
184
|
/*endpoint*/
|
|
185
185
|
n[1]
|
|
186
|
-
),
|
|
186
|
+
), P(
|
|
187
187
|
t,
|
|
188
188
|
"session",
|
|
189
189
|
/*session*/
|
|
190
190
|
n[0]
|
|
191
|
-
),
|
|
191
|
+
), P(t, "buttonlocation", "PlayerAccountMenu"), P(
|
|
192
192
|
t,
|
|
193
193
|
"clientstyling",
|
|
194
194
|
/*clientstyling*/
|
|
195
195
|
n[2]
|
|
196
|
-
),
|
|
196
|
+
), P(
|
|
197
197
|
t,
|
|
198
198
|
"clientstylingurl",
|
|
199
199
|
/*clientstylingurl*/
|
|
@@ -205,25 +205,25 @@ function ve(n) {
|
|
|
205
205
|
},
|
|
206
206
|
p(o, r) {
|
|
207
207
|
r[0] & /*endpoint*/
|
|
208
|
-
2 &&
|
|
208
|
+
2 && P(
|
|
209
209
|
t,
|
|
210
210
|
"endpoint",
|
|
211
211
|
/*endpoint*/
|
|
212
212
|
o[1]
|
|
213
213
|
), r[0] & /*session*/
|
|
214
|
-
1 &&
|
|
214
|
+
1 && P(
|
|
215
215
|
t,
|
|
216
216
|
"session",
|
|
217
217
|
/*session*/
|
|
218
218
|
o[0]
|
|
219
219
|
), r[0] & /*clientstyling*/
|
|
220
|
-
4 &&
|
|
220
|
+
4 && P(
|
|
221
221
|
t,
|
|
222
222
|
"clientstyling",
|
|
223
223
|
/*clientstyling*/
|
|
224
224
|
o[2]
|
|
225
225
|
), r[0] & /*clientstylingurl*/
|
|
226
|
-
8 &&
|
|
226
|
+
8 && P(
|
|
227
227
|
t,
|
|
228
228
|
"clientstylingurl",
|
|
229
229
|
/*clientstylingurl*/
|
|
@@ -239,8 +239,8 @@ function K(n) {
|
|
|
239
239
|
let e, t, o, r, y, m, p = (
|
|
240
240
|
/*menuItem*/
|
|
241
241
|
n[35].label + ""
|
|
242
|
-
),
|
|
243
|
-
function
|
|
242
|
+
), A, w, b, f, _;
|
|
243
|
+
function M() {
|
|
244
244
|
return (
|
|
245
245
|
/*click_handler*/
|
|
246
246
|
n[21](
|
|
@@ -251,26 +251,26 @@ function K(n) {
|
|
|
251
251
|
}
|
|
252
252
|
return {
|
|
253
253
|
c() {
|
|
254
|
-
e = v("div"), t = v("p"), o = v("img"), y = k(), m = v("span"),
|
|
254
|
+
e = v("div"), t = v("p"), o = v("img"), y = k(), m = v("span"), A = H(p), w = k(), s(o, "class", "PlayerAccountMenuItemIcon " + /*isMobile*/
|
|
255
255
|
(n[10] ? "PlayerAccountMenuItemIconMobile" : "")), q(o.src, r = /*menuItem*/
|
|
256
|
-
n[35].img) || s(o, "src", r), s(m, "class", "PlayerAccountMenuItemTitle"), s(t, "class", "PlayerAccountMenuItemWrapper"), s(e, "class",
|
|
256
|
+
n[35].img) || s(o, "src", r), s(m, "class", "PlayerAccountMenuItemTitle"), s(t, "class", "PlayerAccountMenuItemWrapper"), s(e, "class", b = "PlayerAccountMenuItemBox " + /*selectedItem*/
|
|
257
257
|
(n[6] === /*menuItem*/
|
|
258
258
|
n[35].id && !/*isMobile*/
|
|
259
259
|
n[10] ? "PlayerAccountMenuActiveItemBox" : ""));
|
|
260
260
|
},
|
|
261
261
|
m(g, c) {
|
|
262
|
-
T(g, e, c), a(e, t), a(t, o), a(t, y), a(t, m), a(m,
|
|
262
|
+
T(g, e, c), a(e, t), a(t, o), a(t, y), a(t, m), a(m, A), a(e, w), f || (_ = W(e, "click", M), f = !0);
|
|
263
263
|
},
|
|
264
264
|
p(g, c) {
|
|
265
265
|
n = g, c[0] & /*menuItems*/
|
|
266
266
|
32 && !q(o.src, r = /*menuItem*/
|
|
267
267
|
n[35].img) && s(o, "src", r), c[0] & /*menuItems*/
|
|
268
268
|
32 && p !== (p = /*menuItem*/
|
|
269
|
-
n[35].label + "") && z(
|
|
270
|
-
96 &&
|
|
269
|
+
n[35].label + "") && z(A, p), c[0] & /*selectedItem, menuItems*/
|
|
270
|
+
96 && b !== (b = "PlayerAccountMenuItemBox " + /*selectedItem*/
|
|
271
271
|
(n[6] === /*menuItem*/
|
|
272
272
|
n[35].id && !/*isMobile*/
|
|
273
|
-
n[10] ? "PlayerAccountMenuActiveItemBox" : "")) && s(e, "class",
|
|
273
|
+
n[10] ? "PlayerAccountMenuActiveItemBox" : "")) && s(e, "class", b);
|
|
274
274
|
},
|
|
275
275
|
d(g) {
|
|
276
276
|
g && E(e), f = !1, _();
|
|
@@ -281,22 +281,22 @@ function _e(n) {
|
|
|
281
281
|
let e, t;
|
|
282
282
|
return {
|
|
283
283
|
c() {
|
|
284
|
-
e = v("div"), t = v("general-logout"),
|
|
284
|
+
e = v("div"), t = v("general-logout"), P(
|
|
285
285
|
t,
|
|
286
286
|
"endpoint",
|
|
287
287
|
/*endpoint*/
|
|
288
288
|
n[1]
|
|
289
|
-
),
|
|
289
|
+
), P(
|
|
290
290
|
t,
|
|
291
291
|
"session",
|
|
292
292
|
/*session*/
|
|
293
293
|
n[0]
|
|
294
|
-
),
|
|
294
|
+
), P(t, "buttonlocation", "PlayerAccountMenu"), P(
|
|
295
295
|
t,
|
|
296
296
|
"clientstyling",
|
|
297
297
|
/*clientstyling*/
|
|
298
298
|
n[2]
|
|
299
|
-
),
|
|
299
|
+
), P(
|
|
300
300
|
t,
|
|
301
301
|
"clientstylingurl",
|
|
302
302
|
/*clientstylingurl*/
|
|
@@ -308,25 +308,25 @@ function _e(n) {
|
|
|
308
308
|
},
|
|
309
309
|
p(o, r) {
|
|
310
310
|
r[0] & /*endpoint*/
|
|
311
|
-
2 &&
|
|
311
|
+
2 && P(
|
|
312
312
|
t,
|
|
313
313
|
"endpoint",
|
|
314
314
|
/*endpoint*/
|
|
315
315
|
o[1]
|
|
316
316
|
), r[0] & /*session*/
|
|
317
|
-
1 &&
|
|
317
|
+
1 && P(
|
|
318
318
|
t,
|
|
319
319
|
"session",
|
|
320
320
|
/*session*/
|
|
321
321
|
o[0]
|
|
322
322
|
), r[0] & /*clientstyling*/
|
|
323
|
-
4 &&
|
|
323
|
+
4 && P(
|
|
324
324
|
t,
|
|
325
325
|
"clientstyling",
|
|
326
326
|
/*clientstyling*/
|
|
327
327
|
o[2]
|
|
328
328
|
), r[0] & /*clientstylingurl*/
|
|
329
|
-
8 &&
|
|
329
|
+
8 && P(
|
|
330
330
|
t,
|
|
331
331
|
"clientstylingurl",
|
|
332
332
|
/*clientstylingurl*/
|
|
@@ -364,14 +364,14 @@ function xe(n) {
|
|
|
364
364
|
function Ce(n, e, t) {
|
|
365
365
|
let o;
|
|
366
366
|
ge(n, fe, (l) => t(9, o = l));
|
|
367
|
-
let { endpoint: r = "" } = e, { cmsendpoint: y = "" } = e, { env: m = "" } = e, { session: p = "" } = e, { playerid:
|
|
367
|
+
let { endpoint: r = "" } = e, { cmsendpoint: y = "" } = e, { env: m = "" } = e, { session: p = "" } = e, { playerid: A = "" } = e, { lang: w = "en" } = e, { userroles: b = "" } = e, { clientstyling: f = "" } = e, { clientstylingurl: _ = "" } = e, { translationurl: M = "" } = e, { activemenuitem: g = "" } = e, c, u = [], C, i = window.navigator.userAgent, I = O(i) !== "PC", d = "", B = "";
|
|
368
368
|
const Q = window.matchMedia("(min-width: 768px)"), V = () => {
|
|
369
|
-
fetch(
|
|
370
|
-
Object.keys(
|
|
371
|
-
N(x,
|
|
369
|
+
fetch(M).then((h) => h.json()).then((h) => {
|
|
370
|
+
Object.keys(h).forEach((x) => {
|
|
371
|
+
N(x, h[x]);
|
|
372
372
|
});
|
|
373
|
-
}).catch((
|
|
374
|
-
console.error(
|
|
373
|
+
}).catch((h) => {
|
|
374
|
+
console.error(h);
|
|
375
375
|
});
|
|
376
376
|
};
|
|
377
377
|
Object.keys(G).forEach((l) => {
|
|
@@ -390,19 +390,19 @@ function Ce(n, e, t) {
|
|
|
390
390
|
return l === "PC" ? "dk" : "mtWeb";
|
|
391
391
|
}, J = () => {
|
|
392
392
|
const l = new URL(`${y}/${w}/profile-menu?env=${m}`);
|
|
393
|
-
l.searchParams.append("device", Z()), fetch(l.href).then((
|
|
394
|
-
t(5, u =
|
|
395
|
-
}).catch((
|
|
396
|
-
console.error("Error getting menu items",
|
|
393
|
+
l.searchParams.append("device", Z()), fetch(l.href).then((h) => h.json()).then((h) => {
|
|
394
|
+
t(5, u = h), j();
|
|
395
|
+
}).catch((h) => {
|
|
396
|
+
console.error("Error getting menu items", h);
|
|
397
397
|
});
|
|
398
398
|
}, Y = () => {
|
|
399
|
-
let l = new URL(`${r}/v1/player/${
|
|
400
|
-
l.searchParams.append("userRoles",
|
|
401
|
-
let
|
|
399
|
+
let l = new URL(`${r}/v1/player/${A}/profile`);
|
|
400
|
+
l.searchParams.append("userRoles", b);
|
|
401
|
+
let h = {
|
|
402
402
|
method: "GET",
|
|
403
403
|
headers: { "X-SessionID": p }
|
|
404
404
|
};
|
|
405
|
-
fetch(l.href,
|
|
405
|
+
fetch(l.href, h).then((x) => x.json()).then(
|
|
406
406
|
(x) => {
|
|
407
407
|
t(7, d = x.username), t(8, B = x.email);
|
|
408
408
|
},
|
|
@@ -413,7 +413,8 @@ function Ce(n, e, t) {
|
|
|
413
413
|
}, U = (l) => {
|
|
414
414
|
window.postMessage({ type: "ChangeAccountPage", page: l }, window.location.href), t(6, C = l.id);
|
|
415
415
|
}, j = () => {
|
|
416
|
-
|
|
416
|
+
var l;
|
|
417
|
+
t(6, C = (l = u.find((h) => h.path.includes(g))) == null ? void 0 : l.id);
|
|
417
418
|
}, $ = () => {
|
|
418
419
|
Me(w);
|
|
419
420
|
}, ee = () => {
|
|
@@ -424,11 +425,11 @@ function Ce(n, e, t) {
|
|
|
424
425
|
let l = document.createElement("style");
|
|
425
426
|
l.innerHTML = f, c.appendChild(l);
|
|
426
427
|
}, le = () => {
|
|
427
|
-
let l = new URL(_),
|
|
428
|
+
let l = new URL(_), h = document.createElement("style");
|
|
428
429
|
fetch(l.href).then((x) => x.text()).then((x) => {
|
|
429
|
-
|
|
430
|
+
h.innerHTML = x, setTimeout(
|
|
430
431
|
() => {
|
|
431
|
-
c.appendChild(
|
|
432
|
+
c.appendChild(h);
|
|
432
433
|
},
|
|
433
434
|
1
|
|
434
435
|
);
|
|
@@ -444,16 +445,16 @@ function Ce(n, e, t) {
|
|
|
444
445
|
});
|
|
445
446
|
}
|
|
446
447
|
return n.$$set = (l) => {
|
|
447
|
-
"endpoint" in l && t(1, r = l.endpoint), "cmsendpoint" in l && t(14, y = l.cmsendpoint), "env" in l && t(15, m = l.env), "session" in l && t(0, p = l.session), "playerid" in l && t(16,
|
|
448
|
+
"endpoint" in l && t(1, r = l.endpoint), "cmsendpoint" in l && t(14, y = l.cmsendpoint), "env" in l && t(15, m = l.env), "session" in l && t(0, p = l.session), "playerid" in l && t(16, A = l.playerid), "lang" in l && t(17, w = l.lang), "userroles" in l && t(18, b = l.userroles), "clientstyling" in l && t(2, f = l.clientstyling), "clientstylingurl" in l && t(3, _ = l.clientstylingurl), "translationurl" in l && t(19, M = l.translationurl), "activemenuitem" in l && t(20, g = l.activemenuitem);
|
|
448
449
|
}, n.$$.update = () => {
|
|
449
450
|
n.$$.dirty[0] & /*lang*/
|
|
450
451
|
131072 && w && $(), n.$$.dirty[0] & /*endpoint, session, playerid, lang*/
|
|
451
|
-
196611 && r && p &&
|
|
452
|
+
196611 && r && p && A && w && ee(), n.$$.dirty[0] & /*cmsendpoint, lang, env*/
|
|
452
453
|
180224 && y && w && m && J(), n.$$.dirty[0] & /*activemenuitem*/
|
|
453
454
|
1048576 && g && j(), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
454
455
|
24 && _ && c && le(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
455
456
|
20 && f && c && ne(), n.$$.dirty[0] & /*translationurl*/
|
|
456
|
-
524288 &&
|
|
457
|
+
524288 && M && V();
|
|
457
458
|
}, [
|
|
458
459
|
p,
|
|
459
460
|
r,
|
|
@@ -471,10 +472,10 @@ function Ce(n, e, t) {
|
|
|
471
472
|
te,
|
|
472
473
|
y,
|
|
473
474
|
m,
|
|
474
|
-
h,
|
|
475
|
-
w,
|
|
476
|
-
P,
|
|
477
475
|
A,
|
|
476
|
+
w,
|
|
477
|
+
b,
|
|
478
|
+
M,
|
|
478
479
|
g,
|
|
479
480
|
oe,
|
|
480
481
|
re
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-DfI2_eQe.cjs");function k(l,t){e.addMessages(l,t)}function Q(l){e.$locale.set(l)}const L={en:{title:"My Account"},"zh-hk":{title:"我的帳戶"},fr:{title:"Mon compte"},tr:{title:"Hesabım"},ro:{title:"Contul meu"},es:{title:"Mi Cuenta"},pt:{title:"Minha Conta"},hr:{title:"Moj račun"},"pt-br":{title:"Minha conta"},"es-mx":{title:"Mi cuenta"},"en-us":{title:"My Account"}};if(typeof window!="undefined"){let l=function(t){return function(...n){try{return t.apply(this,n)}catch(o){if(o instanceof DOMException&&o.message.includes("has already been used with this registry")||o.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw o}}};customElements.define=l(customElements.define),Promise.resolve().then(()=>require("./GeneralLogout-DfI2_eQe.cjs")).then(t=>t.GeneralLogout_ce).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function V(l){e.append_styles(l,"svelte-g6nv6v",".PlayerAccountMenuContainer{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;border-right:2px solid #58586b}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuHeader{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:14px;text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuHeaderMobile{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox{padding:16px 20px;font-size:16px;line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;padding-top:15px}.PlayerAccountMenuList{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emw--color-gray-100, #E6E6E6) var(--emw--color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emw--color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emw--color-gray-100, #E6E6E6)}.PlayerAccountLogOutArea{background:var(--emw--color-gray-300, #58586B);color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));width:100%;flex-grow:0;border-top:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer{height:unset}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryWrapper{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:grid;grid-template-columns:calc(33% - 6.66px) calc(33% - 6.66px) calc(33% - 6.66px);column-gap:10px;row-gap:10px;padding:0 20px 20px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{border:1px solid var(--emw--color-gray-300, #58586B);border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));border-bottom:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:30px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;align-items:center;justify-content:space-between;flex-flow:column;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:20px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}")}function T(l,t,n){const o=l.slice();return o[35]=t[n],o}function X(l){let t,n,o,r,m,u,d,h,M,A,y,P,_=l[10]&&Z(l),p=l[10]&&J(l),i=e.ensure_array_like(l[5]),s=[];for(let c=0;c<i.length;c+=1)s[c]=E(T(l,i,c));let v=!l[10]&&K(l);return{c(){t=e.element("div"),n=e.element("div"),_&&_.c(),o=e.space(),r=e.element("p"),m=e.text(l[7]),u=e.space(),d=e.element("p"),h=e.text(l[8]),M=e.space(),p&&p.c(),A=e.space(),y=e.element("div");for(let c=0;c<s.length;c+=1)s[c].c();P=e.space(),v&&v.c(),e.attr(r,"class","PlayerAccountMenuUser"),e.attr(d,"class","PlayerAccountMenuEmail"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[10]?"PlayerAccountMenuHeaderMobile":"")),e.attr(y,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[10]?"PlayerAccountMobileContainer":"")+" "+(l[11].matches&&l[10]?"PlayerAccountTabletContainer":""))},m(c,w){e.insert(c,t,w),e.append(t,n),_&&_.m(n,null),e.append(n,o),e.append(n,r),e.append(r,m),e.append(n,u),e.append(n,d),e.append(d,h),e.append(n,M),p&&p.m(n,null),e.append(t,A),e.append(t,y);for(let g=0;g<s.length;g+=1)s[g]&&s[g].m(y,null);e.append(t,P),v&&v.m(t,null)},p(c,w){if(c[10]&&_.p(c,w),w[0]&128&&e.set_data(m,c[7]),w[0]&256&&e.set_data(h,c[8]),c[10]&&p.p(c,w),w[0]&5216){i=e.ensure_array_like(c[5]);let g;for(g=0;g<i.length;g+=1){const x=T(c,i,g);s[g]?s[g].p(x,w):(s[g]=E(x),s[g].c(),s[g].m(y,null))}for(;g<s.length;g+=1)s[g].d(1);s.length=i.length}c[10]||v.p(c,w)},d(c){c&&e.detach(t),_&&_.d(),p&&p.d(),e.destroy_each(s,c),v&&v.d()}}}function Z(l){let t,n,o,r,m,u,d,h,M,A,y=l[9]("title")+"",P,_,p;return{c(){t=e.element("div"),n=e.svg_element("svg"),o=e.svg_element("defs"),r=e.svg_element("style"),m=e.text(".aaa{fill:var(--emw--color-white, #FFFFFF);}"),u=e.svg_element("g"),d=e.svg_element("g"),h=e.svg_element("path"),M=e.space(),A=e.element("h3"),P=e.text(y),e.attr(h,"class","aaa"),e.attr(h,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(h,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(u,"transform","translate(-20 -158)"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","15"),e.attr(n,"height","15"),e.attr(n,"viewBox","0 0 15 15"),e.attr(A,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(i,s){e.insert(i,t,s),e.append(t,n),e.append(n,o),e.append(o,r),e.append(r,m),e.append(n,u),e.append(u,d),e.append(d,h),e.append(t,M),e.append(t,A),e.append(A,P),_||(p=[e.listen(n,"click",l[13]),e.listen(A,"click",l[13])],_=!0)},p(i,s){s[0]&512&&y!==(y=i[9]("title")+"")&&e.set_data(P,y)},d(i){i&&e.detach(t),_=!1,e.run_all(p)}}}function J(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.attr(t,"class","PlayerAccountLogOutArea")},m(o,r){e.insert(o,t,r),e.append(t,n)},p(o,r){r[0]&2&&e.set_custom_element_data(n,"endpoint",o[1]),r[0]&1&&e.set_custom_element_data(n,"session",o[0]),r[0]&4&&e.set_custom_element_data(n,"clientstyling",o[2]),r[0]&8&&e.set_custom_element_data(n,"clientstylingurl",o[3])},d(o){o&&e.detach(t)}}}function E(l){let t,n,o,r,m,u,d=l[35].label+"",h,M,A,y,P;function _(){return l[21](l[35])}return{c(){t=e.element("div"),n=e.element("p"),o=e.element("img"),m=e.space(),u=e.element("span"),h=e.text(d),M=e.space(),e.attr(o,"class","PlayerAccountMenuItemIcon "+(l[10]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(o.src,r=l[35].img)||e.attr(o,"src",r),e.attr(u,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",A="PlayerAccountMenuItemBox "+(l[6]===l[35].id&&!l[10]?"PlayerAccountMenuActiveItemBox":""))},m(p,i){e.insert(p,t,i),e.append(t,n),e.append(n,o),e.append(n,m),e.append(n,u),e.append(u,h),e.append(t,M),y||(P=e.listen(t,"click",_),y=!0)},p(p,i){l=p,i[0]&32&&!e.src_url_equal(o.src,r=l[35].img)&&e.attr(o,"src",r),i[0]&32&&d!==(d=l[35].label+"")&&e.set_data(h,d),i[0]&96&&A!==(A="PlayerAccountMenuItemBox "+(l[6]===l[35].id&&!l[10]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",A)},d(p){p&&e.detach(t),y=!1,P()}}}function K(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.attr(t,"class","PlayerAccountLogOutArea")},m(o,r){e.insert(o,t,r),e.append(t,n)},p(o,r){r[0]&2&&e.set_custom_element_data(n,"endpoint",o[1]),r[0]&1&&e.set_custom_element_data(n,"session",o[0]),r[0]&4&&e.set_custom_element_data(n,"clientstyling",o[2]),r[0]&8&&e.set_custom_element_data(n,"clientstylingurl",o[3])},d(o){o&&e.detach(t)}}}function Y(l){let t;function n(m,u){return X}let r=n()(l);return{c(){t=e.element("div"),r.c()},m(m,u){e.insert(m,t,u),r.m(t,null),l[22](t)},p(m,u){r.p(m,u)},i:e.noop,o:e.noop,d(m){m&&e.detach(t),r.d(),l[22](null)}}}function $(l,t,n){let o;e.component_subscribe(l,e.$format,a=>n(9,o=a));let{endpoint:r=""}=t,{cmsendpoint:m=""}=t,{env:u=""}=t,{session:d=""}=t,{playerid:h=""}=t,{lang:M="en"}=t,{userroles:A=""}=t,{clientstyling:y=""}=t,{clientstylingurl:P=""}=t,{translationurl:_=""}=t,{activemenuitem:p=""}=t,i,s=[],v,c=window.navigator.userAgent,w=e.getDevice(c)!=="PC",g="",x="";const H=window.matchMedia("(min-width: 768px)"),z=()=>{fetch(_).then(f=>f.json()).then(f=>{Object.keys(f).forEach(b=>{k(b,f[b])})}).catch(f=>{console.error(f)})};Object.keys(L).forEach(a=>{k(a,L[a])});const C=a=>{if(a.data)switch(a.data.type){case"UserSessionID":n(0,d=a.data.session);break}},S=()=>{let a=e.getDevice(c);if(a)return a==="PC"?"dk":"mtWeb"},W=()=>{const a=new URL(`${m}/${M}/profile-menu?env=${u}`);a.searchParams.append("device",S()),fetch(a.href).then(f=>f.json()).then(f=>{n(5,s=f),F()}).catch(f=>{console.error("Error getting menu items",f)})},D=()=>{let a=new URL(`${r}/v1/player/${h}/profile`);a.searchParams.append("userRoles",A);let f={method:"GET",headers:{"X-SessionID":d}};fetch(a.href,f).then(b=>b.json()).then(b=>{n(7,g=b.username),n(8,x=b.email)},b=>{console.error(b)})},I=a=>{window.postMessage({type:"ChangeAccountPage",page:a},window.location.href),n(6,v=a.id)},F=()=>{var a;n(6,v=(a=s.find(f=>f.path.includes(p)))==null?void 0:a.id)},O=()=>{Q(M)},U=()=>{D()},j=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},R=()=>{let a=document.createElement("style");a.innerHTML=y,i.appendChild(a)},q=()=>{let a=new URL(P),f=document.createElement("style");fetch(a.href).then(b=>b.text()).then(b=>{f.innerHTML=b,setTimeout(()=>{i.appendChild(f)},1)})};e.onMount(()=>(window.addEventListener("message",C,!1),()=>{window.removeEventListener("message",C)}));const G=a=>I(a);function N(a){e.binding_callbacks[a?"unshift":"push"](()=>{i=a,n(4,i)})}return l.$$set=a=>{"endpoint"in a&&n(1,r=a.endpoint),"cmsendpoint"in a&&n(14,m=a.cmsendpoint),"env"in a&&n(15,u=a.env),"session"in a&&n(0,d=a.session),"playerid"in a&&n(16,h=a.playerid),"lang"in a&&n(17,M=a.lang),"userroles"in a&&n(18,A=a.userroles),"clientstyling"in a&&n(2,y=a.clientstyling),"clientstylingurl"in a&&n(3,P=a.clientstylingurl),"translationurl"in a&&n(19,_=a.translationurl),"activemenuitem"in a&&n(20,p=a.activemenuitem)},l.$$.update=()=>{l.$$.dirty[0]&131072&&M&&O(),l.$$.dirty[0]&196611&&r&&d&&h&&M&&U(),l.$$.dirty[0]&180224&&m&&M&&u&&W(),l.$$.dirty[0]&1048576&&p&&F(),l.$$.dirty[0]&24&&P&&i&&q(),l.$$.dirty[0]&20&&y&&i&&R(),l.$$.dirty[0]&524288&&_&&z()},[d,r,y,P,i,s,v,g,x,o,w,H,I,j,m,u,h,M,A,_,p,G,N]}class B extends e.SvelteComponent{constructor(t){super(),e.init(this,t,$,Y,e.safe_not_equal,{endpoint:1,cmsendpoint:14,env:15,session:0,playerid:16,lang:17,userroles:18,clientstyling:2,clientstylingurl:3,translationurl:19,activemenuitem:20},V,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get cmsendpoint(){return this.$$.ctx[14]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[15]}set env(t){this.$$set({env:t}),e.flush()}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[16]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get userroles(){return this.$$.ctx[18]}set userroles(t){this.$$set({userroles:t}),e.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[19]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get activemenuitem(){return this.$$.ctx[20]}set activemenuitem(t){this.$$set({activemenuitem:t}),e.flush()}}e.create_custom_element(B,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},userroles:{},clientstyling:{},clientstylingurl:{},translationurl:{},activemenuitem:{}},[],[],!0);exports.default=B;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as B, S as F, i as P, f, c as R, s as U, b as W, B as j, k as L, H as m, I as w, Z as q, p as E, v as A, D as G, e as _, g as y, l as M, E as I, F as N, G as Y, P as Z, _ as C, a0 as J, x as k } from "./GeneralLogout-
|
|
1
|
+
import { Y as B, S as F, i as P, f, c as R, s as U, b as W, B as j, k as L, H as m, I as w, Z as q, p as E, v as A, D as G, e as _, g as y, l as M, E as I, F as N, G as Y, P as Z, _ as C, a0 as J, x as k } from "./GeneralLogout-CsWa2j6i.js";
|
|
2
2
|
function p(t, { delay: e = 0, duration: i = 400, easing: n = B } = {}) {
|
|
3
3
|
const s = +getComputedStyle(t).opacity;
|
|
4
4
|
return {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./GeneralLogout-DfI2_eQe.cjs");function y(n,{delay:e=0,duration:l=400,easing:i=t.identity}={}){const s=+getComputedStyle(n).opacity;return{delay:e,duration:l,easing:i,css:r=>`opacity: ${r*s}`}}function k(n){t.append_styles(n,"svelte-126fglp","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0}")}function w(n){let e,l,i,s,r;const f=n[8].default,u=t.create_slot(f,n,n[7],null);return{c(){e=t.element("div"),l=t.element("div"),i=t.element("div"),u&&u.c(),t.attr(i,"class","ModalContainer"),t.attr(l,"class","ModalWindow"),t.attr(l,"id","Modal")},m(a,d){t.insert(a,e,d),t.append(e,l),t.append(l,i),u&&u.m(i,null),n[9](l),n[10](e),r=!0},p(a,d){n=a,u&&u.p&&(!r||d&128)&&t.update_slot_base(u,f,n,n[7],r?t.get_slot_changes(f,n[7],d,null):t.get_all_dirty_from_scope(n[7]),null)},i(a){r||(t.transition_in(u,a),a&&t.add_render_callback(()=>{r&&(s||(s=t.create_bidirectional_transition(l,y,{transitionDuration:n[1]},!0)),s.run(1))}),r=!0)},o(a){t.transition_out(u,a),a&&(s||(s=t.create_bidirectional_transition(l,y,{transitionDuration:n[1]},!1)),s.run(0)),r=!1},d(a){a&&t.detach(e),u&&u.d(a),n[9](null),a&&s&&s.end(),n[10](null)}}}function S(n){let e,l,i=n[0]&&w(n);return{c(){i&&i.c(),e=t.empty()},m(s,r){i&&i.m(s,r),t.insert(s,e,r),l=!0},p(s,[r]){s[0]?i?(i.p(s,r),r&1&&t.transition_in(i,1)):(i=w(s),i.c(),t.transition_in(i,1),i.m(e.parentNode,e)):i&&(t.group_outros(),t.transition_out(i,1,1,()=>{i=null}),t.check_outros())},i(s){l||(t.transition_in(i),l=!0)},o(s){t.transition_out(i),l=!1},d(s){s&&t.detach(e),i&&i.d(s)}}}function L(n,e,l){let{$$slots:i={},$$scope:s}=e,{show:r=!1}=e,{duration:f=350}=e,{clientstyling:u=""}=e,{clientstylingurl:a=""}=e,{showmodaleventname:d="ShowLimitsConfirmationModal"}=e,c,h;const _=o=>{switch(o.data.type){case"ModalClosed":l(0,r=!1);break;case d:l(0,r=!0),window.postMessage({type:"DisableScroll"},window.location.href);break}},M=()=>{let o=document.createElement("style");o.innerHTML=u,c.appendChild(o)},v=()=>{let o=new URL(a),g=document.createElement("style");fetch(o.href).then(m=>m.text()).then(m=>{g.innerHTML=m,setTimeout(()=>{c.appendChild(g)},1)})};t.onMount(()=>(window.addEventListener("message",_,!1),()=>{window.removeEventListener("message",_)}));function p(o){t.binding_callbacks[o?"unshift":"push"](()=>{h=o,l(3,h)})}function C(o){t.binding_callbacks[o?"unshift":"push"](()=>{c=o,l(2,c)})}return n.$$set=o=>{"show"in o&&l(0,r=o.show),"duration"in o&&l(1,f=o.duration),"clientstyling"in o&&l(4,u=o.clientstyling),"clientstylingurl"in o&&l(5,a=o.clientstylingurl),"showmodaleventname"in o&&l(6,d=o.showmodaleventname),"$$scope"in o&&l(7,s=o.$$scope)},n.$$.update=()=>{n.$$.dirty&36&&a&&c&&v(),n.$$.dirty&20&&u&&c&&M()},[r,f,c,h,u,a,d,s,i,p,C]}class b extends t.SvelteComponent{constructor(e){super(),t.init(this,e,L,S,t.safe_not_equal,{show:0,duration:1,clientstyling:4,clientstylingurl:5,showmodaleventname:6},k)}get show(){return this.$$.ctx[0]}set show(e){this.$$set({show:e}),t.flush()}get duration(){return this.$$.ctx[1]}set duration(e){this.$$set({duration:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get showmodaleventname(){return this.$$.ctx[6]}set showmodaleventname(e){this.$$set({showmodaleventname:e}),t.flush()}}t.create_custom_element(b,{show:{type:"Boolean"},duration:{},clientstyling:{},clientstylingurl:{},showmodaleventname:{}},["default"],[],!0);exports.default=b;
|
package/components/{PlayerAccountNotifications-B4Ht-hHj.js → PlayerAccountNotifications-BVY-SXyT.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as U, i as W, f as x, c as j, s as q, b as K, e as A, k as C, o as k, p as v, u as T, x as Q, K as F, g as u, L as V, d as _, t as X, X as M, W as B, l as p, n as G } from "./GeneralLogout-
|
|
1
|
+
import { S as U, i as W, f as x, c as j, s as q, b as K, e as A, k as C, o as k, p as v, u as T, x as Q, K as F, g as u, L as V, d as _, t as X, X as M, W as B, l as p, n as G } from "./GeneralLogout-CsWa2j6i.js";
|
|
2
2
|
function J(n) {
|
|
3
3
|
K(n, "svelte-8rjudp", '.PlayerAccountNotificationsContainer{padding:0 5px}.PlayerAccountNotificationBox{display:block;padding:20px;margin:20px auto 10px auto;border-radius:5px;width:100%;background:var(--emw--color-gray-300, #58586B);color:var(--emw--color-white, #FFFFFF);box-sizing:border-box;text-decoration:none;word-break:break-all}.PlayerAccountNotificationBoxHeader{display:grid;width:100%;grid-template-areas:"nav main aside";grid-template-rows:auto;grid-template-columns:34px calc(100% - 34px);align-items:center}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationIcon{width:24px;margin-right:10px;flex:1}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationTitle{font-size:16px;flex:2}.PlayerAccountNotificationText{margin:0;font-size:14px;font-weight:300}.PlayerAccountNotificationText a{text-decoration:none;color:var(--emw--color-white, #FFFFFF)}.PlayerAccountNotificationsMobileContainer{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationBoxHeader{grid-template-columns:40px calc(100% - 40px)}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationTitle{font-size:14px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationIcon{width:30px;margin-right:10px}.PlayerAccountNotificationsTabletContainer{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px 40px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationBoxHeader{grid-template-columns:80px calc(100% - 80px)}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationTitle{font-size:24px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationText{font-size:16px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationIcon{width:60px;margin-right:20px}');
|
|
4
4
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./GeneralLogout-DfI2_eQe.cjs");function M(o){t.append_styles(o,"svelte-8rjudp",'.PlayerAccountNotificationsContainer{padding:0 5px}.PlayerAccountNotificationBox{display:block;padding:20px;margin:20px auto 10px auto;border-radius:5px;width:100%;background:var(--emw--color-gray-300, #58586B);color:var(--emw--color-white, #FFFFFF);box-sizing:border-box;text-decoration:none;word-break:break-all}.PlayerAccountNotificationBoxHeader{display:grid;width:100%;grid-template-areas:"nav main aside";grid-template-rows:auto;grid-template-columns:34px calc(100% - 34px);align-items:center}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationIcon{width:24px;margin-right:10px;flex:1}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationTitle{font-size:16px;flex:2}.PlayerAccountNotificationText{margin:0;font-size:14px;font-weight:300}.PlayerAccountNotificationText a{text-decoration:none;color:var(--emw--color-white, #FFFFFF)}.PlayerAccountNotificationsMobileContainer{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationBoxHeader{grid-template-columns:40px calc(100% - 40px)}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationTitle{font-size:14px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationIcon{width:30px;margin-right:10px}.PlayerAccountNotificationsTabletContainer{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px 40px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationBoxHeader{grid-template-columns:80px calc(100% - 80px)}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationTitle{font-size:24px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationText{font-size:16px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationIcon{width:60px;margin-right:20px}')}function x(o,e,a){const n=o.slice();return n[20]=e[a],n}function B(o){let e,a=t.ensure_array_like(o[1]),n=[];for(let i=0;i<a.length;i+=1)n[i]=A(x(o,a,i));return{c(){e=t.element("div");for(let i=0;i<n.length;i+=1)n[i].c();t.attr(e,"class","PlayerAccountNotificationsContainer "+(o[2]&&o[3].matches?"PlayerAccountNotificationsTabletContainer":o[2]?"PlayerAccountNotificationsMobileContainer":"")),t.attr(e,"part","PlayerAccountNotificationsContainer "+(o[2]&&o[3].matches?"PlayerAccountNotificationsTabletContainer":o[2]?"PlayerAccountNotificationsMobileContainer":""))},m(i,r){t.insert(i,e,r);for(let c=0;c<n.length;c+=1)n[c]&&n[c].m(e,null)},p(i,r){if(r&2){a=t.ensure_array_like(i[1]);let c;for(c=0;c<a.length;c+=1){const u=x(i,a,c);n[c]?n[c].p(u,r):(n[c]=A(u),n[c].c(),n[c].m(e,null))}for(;c<n.length;c+=1)n[c].d(1);n.length=a.length}},d(i){i&&t.detach(e),t.destroy_each(n,i)}}}function A(o){let e,a,n,i,r,c,u,d=o[20].title+"",h,f,p,P=o[20].description+"",y;return{c(){e=t.element("div"),a=t.element("div"),n=t.element("img"),c=t.space(),u=t.element("p"),h=t.text(d),f=t.space(),p=t.element("p"),y=t.space(),t.attr(n,"class","PlayerAccountNotificationIcon"),t.src_url_equal(n.src,i=o[20].icon)||t.attr(n,"src",i),t.attr(n,"alt",r=o[20].title),t.attr(u,"class","PlayerAccountNotificationTitle"),t.attr(a,"class","PlayerAccountNotificationBoxHeader"),t.attr(p,"class","PlayerAccountNotificationText"),t.attr(e,"class","PlayerAccountNotificationBox"),t.set_style(e,"background",o[20].backgroundColor)},m(s,g){t.insert(s,e,g),t.append(e,a),t.append(a,n),t.append(a,c),t.append(a,u),t.append(u,h),t.append(e,f),t.append(e,p),p.innerHTML=P,t.append(e,y)},p(s,g){g&2&&!t.src_url_equal(n.src,i=s[20].icon)&&t.attr(n,"src",i),g&2&&r!==(r=s[20].title)&&t.attr(n,"alt",r),g&2&&d!==(d=s[20].title+"")&&t.set_data(h,d),g&2&&P!==(P=s[20].description+"")&&(p.innerHTML=P),g&2&&t.set_style(e,"background",s[20].backgroundColor)},d(s){s&&t.detach(e)}}}function H(o){let e;function a(r,c){if(r[1].length)return B}let n=a(o),i=n&&n(o);return{c(){e=t.element("div"),i&&i.c()},m(r,c){t.insert(r,e,c),i&&i.m(e,null),o[11](e)},p(r,[c]){n===(n=a(r))&&i?i.p(r,c):(i&&i.d(1),i=n&&n(r),i&&(i.c(),i.m(e,null)))},i:t.noop,o:t.noop,d(r){r&&t.detach(e),i&&i.d(),o[11](null)}}}function L(o,e,a){let{lang:n=""}=e,{cmsendpoint:i=""}=e,{env:r=""}=e,{userroles:c=""}=e,{customnotif:u=""}=e,{clientstyling:d=""}=e,{clientstylingurl:h=""}=e,f,p=window.navigator.userAgent,P=t.getDevice(p)!=="PC",y=[],s=[],g=C();const v=window.matchMedia("(min-width: 768px)");function C(){const l=t.getDevice(p);if(l)return l==="PC"?"dk":"mtWeb"}const w=()=>{const l=new URL(`${i}/${n}/support-information`);l.searchParams.append("env",r),l.searchParams.append("userRoles",c),l.searchParams.append("device",g),fetch(l.href).then(m=>m.json()).then(m=>{m.length&&(a(1,y=m[0].children),y.forEach(_=>{s.length&&(_.backgroundColor=s[0],s.shift())}))},m=>{console.error(m)})},b=()=>{u.replace(" ",""),s=u.split(",")},T=()=>{let l=document.createElement("style");l.innerHTML=d,f.appendChild(l)},k=()=>{let l=new URL(h),m=document.createElement("style");fetch(l.href).then(_=>_.text()).then(_=>{m.innerHTML=_,setTimeout(()=>{f.appendChild(m)},1)})};function F(l){t.binding_callbacks[l?"unshift":"push"](()=>{f=l,a(0,f)})}return o.$$set=l=>{"lang"in l&&a(4,n=l.lang),"cmsendpoint"in l&&a(5,i=l.cmsendpoint),"env"in l&&a(6,r=l.env),"userroles"in l&&a(7,c=l.userroles),"customnotif"in l&&a(8,u=l.customnotif),"clientstyling"in l&&a(9,d=l.clientstyling),"clientstylingurl"in l&&a(10,h=l.clientstylingurl)},o.$$.update=()=>{o.$$.dirty&256&&u&&b(),o.$$.dirty&2&&y&&b(),o.$$.dirty&240&&c&&i&&r&&n&&w(),o.$$.dirty&1025&&h&&f&&k(),o.$$.dirty&513&&d&&f&&T()},[f,y,P,v,n,i,r,c,u,d,h,F]}class N extends t.SvelteComponent{constructor(e){super(),t.init(this,e,L,H,t.safe_not_equal,{lang:4,cmsendpoint:5,env:6,userroles:7,customnotif:8,clientstyling:9,clientstylingurl:10},M)}get lang(){return this.$$.ctx[4]}set lang(e){this.$$set({lang:e}),t.flush()}get cmsendpoint(){return this.$$.ctx[5]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),t.flush()}get env(){return this.$$.ctx[6]}set env(e){this.$$set({env:e}),t.flush()}get userroles(){return this.$$.ctx[7]}set userroles(e){this.$$set({userroles:e}),t.flush()}get customnotif(){return this.$$.ctx[8]}set customnotif(e){this.$$set({customnotif:e}),t.flush()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}}t.create_custom_element(N,{lang:{},cmsendpoint:{},env:{},userroles:{},customnotif:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=N;
|