@everymatrix/player-account-controller 1.0.16 → 1.0.70
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-CA9TEW-a.cjs +8 -0
- package/components/GeneralLogout-DtE4YABi.js +4829 -0
- package/components/PlayerAccountBettingHistory-BcTxHKyO.js +328 -0
- package/components/PlayerAccountBettingHistory-NrSjgArQ.cjs +1 -0
- package/components/PlayerAccountBiometrics-BGnkL646.js +300 -0
- package/components/PlayerAccountBiometrics-Bl0LyqT2.cjs +1 -0
- package/components/PlayerAccountClosure-B3Zq9k2d.cjs +1 -0
- package/components/PlayerAccountClosure-CHDX6d_o.js +339 -0
- package/components/PlayerAccountController-CdygDjsk.js +6188 -0
- package/components/PlayerAccountController-D9QoMCz_.cjs +1 -0
- package/components/PlayerAccountGamingLimits-BSeZY_AM.cjs +1 -0
- package/components/PlayerAccountGamingLimits-CFEgRcLO.js +758 -0
- package/components/PlayerAccountGamingLimitsConfirmationModal-CETKCaaj.js +306 -0
- package/components/PlayerAccountGamingLimitsConfirmationModal-Zflhyn-z.cjs +1 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-DPZ-Uvd4.js +4148 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-_BasEjEB.cjs +10 -0
- package/components/PlayerAccountGamingLimitsHistory2-Bu-OW2oW.js +734 -0
- package/components/PlayerAccountGamingLimitsHistory2-FhMXdXTq.cjs +1 -0
- package/components/PlayerAccountGamingLimitsInfoCard-BUG8OODX.js +1488 -0
- package/components/PlayerAccountGamingLimitsInfoCard-sBX1tBDZ.cjs +1 -0
- package/components/PlayerAccountGamingLimitsPage2Gm16-BFnH54ZW.js +2764 -0
- package/components/PlayerAccountGamingLimitsPage2Gm16-CiGWLvn2.cjs +21 -0
- package/components/PlayerAccountGamingLimitsPopup-BrO_Lno2.cjs +1 -0
- package/components/PlayerAccountGamingLimitsPopup-CmAXnOQe.js +337 -0
- package/components/PlayerAccountGamingLimitsWrapper2-CQ1mGZNj.cjs +1 -0
- package/components/PlayerAccountGamingLimitsWrapper2-DWdHKdUm.js +844 -0
- package/components/PlayerAccountMenu-Bh0HKBfq.js +587 -0
- package/components/PlayerAccountMenu-D4sBRaIm.cjs +1 -0
- package/components/PlayerAccountModal-Blsborh1.js +198 -0
- package/components/PlayerAccountModal-DW8I9i4u.cjs +1 -0
- package/components/PlayerAccountNotifications-CEsL3JWV.cjs +1 -0
- package/components/PlayerAccountNotifications-DbUpordy.js +222 -0
- package/components/PlayerAccountSelfExclusion-BPADa27T.js +15842 -0
- package/components/PlayerAccountSelfExclusion-DxHpS1Fj.cjs +3693 -0
- package/components/PlayerAccountTimeout-BRQZuU_T.cjs +1 -0
- package/components/PlayerAccountTimeout-CSUT1HiR.js +448 -0
- package/components/PlayerActiveBonuses-CwHXPu9X.js +987 -0
- package/components/PlayerActiveBonuses-ReOEMRDU.cjs +1 -0
- package/components/PlayerBonusCard-665KSNoF.js +555 -0
- package/components/PlayerBonusCard-CQIuJjY5.cjs +1 -0
- package/components/PlayerBonusHistory-BaBcSSSm.js +824 -0
- package/components/PlayerBonusHistory-Dzk7jL5w.cjs +1 -0
- package/components/PlayerChangePassword-B78Gb7rT.js +1162 -0
- package/components/PlayerChangePassword-L1wYKbsT.cjs +3 -0
- package/components/PlayerDeposit-BO0nDKOB.cjs +1 -0
- package/components/PlayerDeposit-CqgNmu8i.js +395 -0
- package/components/PlayerGamingHistory-CmufIVok.cjs +1 -0
- package/components/PlayerGamingHistory-ovbzB3YP.js +920 -0
- package/components/PlayerPendingWithdrawals-CsC5mrrE.js +307 -0
- package/components/PlayerPendingWithdrawals-DXh2yA-M.cjs +1 -0
- package/components/PlayerProfileInfo-3Wp8IotN.js +1730 -0
- package/components/PlayerProfileInfo-BWzgjhyD.cjs +1 -0
- package/components/PlayerRealityCheck-8QghFLS2.cjs +1 -0
- package/components/PlayerRealityCheck-Cg1tL1KV.js +567 -0
- package/components/PlayerTransactionHistory-Cfq6pzue.js +311 -0
- package/components/PlayerTransactionHistory-iyQVlg_5.cjs +1 -0
- package/components/PlayerWithdrawal-BZdcsIWI.cjs +1 -0
- package/components/PlayerWithdrawal-DJfHPWUz.js +365 -0
- package/es2015/player-account-controller.cjs +1 -0
- package/es2015/player-account-controller.js +16 -0
- package/package.json +38 -33
- package/README.md +0 -0
- package/dist/player-account-controller.js +0 -1691
- package/dist/player-account-controller.js.map +0 -1
- package/documentation.md +0 -166
- package/index.html +0 -47
- package/index.js +0 -1
- package/public/favicon.png +0 -0
- package/public/reset.css +0 -48
- package/rollup.config.js +0 -67
- package/src/PlayerAccountController.svelte +0 -925
- package/src/PlayerAccountController.types.ts +0 -5
- package/src/i18n.js +0 -27
- package/src/index.ts +0 -4
- package/src/translations.js +0 -74
- package/stories/PlayerAccountPage.stories.js +0 -13
- package/tsconfig.json +0 -6
|
@@ -0,0 +1,587 @@
|
|
|
1
|
+
import { a as ae, $ as ie, S as ce, i as ue, f as I, c as me, s as ye, b as ge, e as w, k as T, o as O, p as E, q as de, u as R, v as fe, x as pe, y as ve, K as q, d as k, t as H, g as c, l as o, n as z, L as he, w as L, m as W, r as Ae, j as M, X as N } from "./GeneralLogout-DtE4YABi.js";
|
|
2
|
+
function G(n, e) {
|
|
3
|
+
ae(n, e);
|
|
4
|
+
}
|
|
5
|
+
function Me(n) {
|
|
6
|
+
ie.set(n);
|
|
7
|
+
}
|
|
8
|
+
const X = {
|
|
9
|
+
en: {
|
|
10
|
+
title: "My Account"
|
|
11
|
+
},
|
|
12
|
+
"zh-hk": {
|
|
13
|
+
title: "我的帳戶"
|
|
14
|
+
},
|
|
15
|
+
fr: {
|
|
16
|
+
title: "Mon compte"
|
|
17
|
+
},
|
|
18
|
+
tr: {
|
|
19
|
+
title: "Hesabım"
|
|
20
|
+
},
|
|
21
|
+
ro: {
|
|
22
|
+
title: "Contul meu"
|
|
23
|
+
},
|
|
24
|
+
es: {
|
|
25
|
+
title: "Mi Cuenta"
|
|
26
|
+
},
|
|
27
|
+
pt: {
|
|
28
|
+
title: "Minha Conta"
|
|
29
|
+
},
|
|
30
|
+
hr: {
|
|
31
|
+
title: "Moj račun"
|
|
32
|
+
},
|
|
33
|
+
"pt-br": {
|
|
34
|
+
title: "Minha conta"
|
|
35
|
+
},
|
|
36
|
+
"es-mx": {
|
|
37
|
+
title: "Mi cuenta"
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
if (typeof window != "undefined") {
|
|
41
|
+
let n = function(e) {
|
|
42
|
+
return function(...t) {
|
|
43
|
+
try {
|
|
44
|
+
return e.apply(this, t);
|
|
45
|
+
} catch (r) {
|
|
46
|
+
if (r instanceof DOMException && r.message.includes("has already been used with this registry") || r.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
47
|
+
return !1;
|
|
48
|
+
throw r;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
customElements.define = n(customElements.define), import("./GeneralLogout-DtE4YABi.js").then((e) => e.a2).then(({ default: e }) => {
|
|
53
|
+
!customElements.get("general-logout") && customElements.define("general-logout", e.element);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
function Pe(n) {
|
|
57
|
+
ge(n, "svelte-12es30r", ".PlayerAccountMenuContainer.svelte-12es30r.svelte-12es30r{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;border-right:2px solid #58586b}.PlayerAccountMenuContainer.svelte-12es30r .PlayerAccountMenuItemWrapper.svelte-12es30r{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer.svelte-12es30r .PlayerAccountMenuItemWrapper span.svelte-12es30r{display:flex;align-items:center}.PlayerAccountMenuHeader.svelte-12es30r.svelte-12es30r{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader.svelte-12es30r .PlayerAccountMenuUser.svelte-12es30r{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader.svelte-12es30r .PlayerAccountMenuEmail.svelte-12es30r{font-size:14px;text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader.svelte-12es30r p.svelte-12es30r{font-weight:300}.PlayerAccountMenuHeaderMobile.svelte-12es30r.svelte-12es30r{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox.svelte-12es30r.svelte-12es30r{padding:16px 20px;font-size:16px;line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox.svelte-12es30r .PlayerAccountMenuItemTitle.svelte-12es30r{margin-left:20px}.PlayerAccountMenuItemBox.svelte-12es30r.svelte-12es30r:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-150, #828282)}.PlayerAccountMenuItemBox.svelte-12es30r .PlayerAccountMenuItemIcon.svelte-12es30r{width:20px;padding-top:unset}.PlayerAccountMenuItemBox.svelte-12es30r .PlayerAccountMenuItemIconMobile.svelte-12es30r{width:30px;padding-top:15px}.PlayerAccountMenuList.svelte-12es30r.svelte-12es30r{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emfe-w-color-gray-100, #E6E6E6) var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList.svelte-12es30r.svelte-12es30r::-webkit-scrollbar{width:6px}.PlayerAccountMenuList.svelte-12es30r.svelte-12es30r::-webkit-scrollbar-track{background:var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList.svelte-12es30r.svelte-12es30r::-webkit-scrollbar-thumb{background:var(--emfe-w-color-gray-100, #E6E6E6)}.PlayerAccountLogOutArea.svelte-12es30r.svelte-12es30r{background:var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));width:100%;flex-grow:0;border-top:1px solid var(--emfe-w-color-gray-150, #828282)}.PlayerAccountMenuActiveItemBox.svelte-12es30r.svelte-12es30r{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMobileContainer.svelte-12es30r.svelte-12es30r{height:unset}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuCategoryWrapper.svelte-12es30r{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuCategoryTitle.svelte-12es30r{margin:0;font-weight:600}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuItemTitle.svelte-12es30r{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuEmail.svelte-12es30r{margin:0}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuList.svelte-12es30r{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.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemBox.svelte-12es30r{border:1px solid var(--emfe-w-color-gray-300, #58586B);border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox.svelte-12es30r{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border-bottom:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon.svelte-12es30r{width:30px}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemWrapper.svelte-12es30r{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.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle.svelte-12es30r{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountLogOutArea.svelte-12es30r{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuHeader.svelte-12es30r{padding:30px 40px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuCategoryTitle.svelte-12es30r{font-size:32px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuUser.svelte-12es30r{font-size:26px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuEmail.svelte-12es30r{font-size:20px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuList.svelte-12es30r{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon.svelte-12es30r{width:80px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemWrapper.svelte-12es30r{gap:28px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle.svelte-12es30r{font-size:24px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountLogOutArea.svelte-12es30r{right:54px;top:72px}");
|
|
58
|
+
}
|
|
59
|
+
function K(n, e, t) {
|
|
60
|
+
const r = n.slice();
|
|
61
|
+
return r[37] = e[t], r;
|
|
62
|
+
}
|
|
63
|
+
function be(n) {
|
|
64
|
+
let e, t, r, s, y, m, d, v, P, b, h, x, A = (
|
|
65
|
+
/*isMobile*/
|
|
66
|
+
n[10] && we(n)
|
|
67
|
+
), g = (
|
|
68
|
+
/*isMobile*/
|
|
69
|
+
n[10] && xe(n)
|
|
70
|
+
), u = q(
|
|
71
|
+
/*menuItems*/
|
|
72
|
+
n[5]
|
|
73
|
+
), i = [];
|
|
74
|
+
for (let a = 0; a < u.length; a += 1)
|
|
75
|
+
i[a] = Q(K(n, u, a));
|
|
76
|
+
let F = !/*isMobile*/
|
|
77
|
+
n[10] && _e(n);
|
|
78
|
+
return {
|
|
79
|
+
c() {
|
|
80
|
+
e = w("div"), t = w("div"), A && A.c(), r = k(), s = w("p"), y = H(
|
|
81
|
+
/*profileUsername*/
|
|
82
|
+
n[7]
|
|
83
|
+
), m = k(), d = w("p"), v = H(
|
|
84
|
+
/*profileEmail*/
|
|
85
|
+
n[8]
|
|
86
|
+
), P = k(), g && g.c(), b = k(), h = w("div");
|
|
87
|
+
for (let a = 0; a < i.length; a += 1)
|
|
88
|
+
i[a].c();
|
|
89
|
+
x = k(), F && F.c(), c(s, "class", "PlayerAccountMenuUser svelte-12es30r"), c(d, "class", "PlayerAccountMenuEmail svelte-12es30r"), c(t, "class", "PlayerAccountMenuHeader " + /*isMobile*/
|
|
90
|
+
(n[10] ? "PlayerAccountMenuHeaderMobile" : "") + " svelte-12es30r"), c(h, "class", "PlayerAccountMenuList svelte-12es30r"), c(e, "class", "PlayerAccountMenuContainer " + /*isMobile*/
|
|
91
|
+
(n[10] ? "PlayerAccountMobileContainer" : "") + " " + /*mediaQuery*/
|
|
92
|
+
(n[11].matches && /*isMobile*/
|
|
93
|
+
n[10] ? "PlayerAccountTabletContainer" : "") + " svelte-12es30r");
|
|
94
|
+
},
|
|
95
|
+
m(a, C) {
|
|
96
|
+
T(a, e, C), o(e, t), A && A.m(t, null), o(t, r), o(t, s), o(s, y), o(t, m), o(t, d), o(d, v), o(t, P), g && g.m(t, null), o(e, b), o(e, h);
|
|
97
|
+
for (let f = 0; f < i.length; f += 1)
|
|
98
|
+
i[f] && i[f].m(h, null);
|
|
99
|
+
o(e, x), F && F.m(e, null);
|
|
100
|
+
},
|
|
101
|
+
p(a, C) {
|
|
102
|
+
if (
|
|
103
|
+
/*isMobile*/
|
|
104
|
+
a[10] && A.p(a, C), C[0] & /*profileUsername*/
|
|
105
|
+
128 && z(
|
|
106
|
+
y,
|
|
107
|
+
/*profileUsername*/
|
|
108
|
+
a[7]
|
|
109
|
+
), C[0] & /*profileEmail*/
|
|
110
|
+
256 && z(
|
|
111
|
+
v,
|
|
112
|
+
/*profileEmail*/
|
|
113
|
+
a[8]
|
|
114
|
+
), /*isMobile*/
|
|
115
|
+
a[10] && g.p(a, C), C[0] & /*selectedItem, menuItems, isMobile, openAccountSection*/
|
|
116
|
+
5216
|
|
117
|
+
) {
|
|
118
|
+
u = q(
|
|
119
|
+
/*menuItems*/
|
|
120
|
+
a[5]
|
|
121
|
+
);
|
|
122
|
+
let f;
|
|
123
|
+
for (f = 0; f < u.length; f += 1) {
|
|
124
|
+
const B = K(a, u, f);
|
|
125
|
+
i[f] ? i[f].p(B, C) : (i[f] = Q(B), i[f].c(), i[f].m(h, null));
|
|
126
|
+
}
|
|
127
|
+
for (; f < i.length; f += 1)
|
|
128
|
+
i[f].d(1);
|
|
129
|
+
i.length = u.length;
|
|
130
|
+
}
|
|
131
|
+
/*isMobile*/
|
|
132
|
+
a[10] || F.p(a, C);
|
|
133
|
+
},
|
|
134
|
+
d(a) {
|
|
135
|
+
a && E(e), A && A.d(), g && g.d(), he(i, a), F && F.d();
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
function we(n) {
|
|
140
|
+
let e, t, r, s, y, m, d, v, P, b, h = (
|
|
141
|
+
/*$_*/
|
|
142
|
+
n[9]("title") + ""
|
|
143
|
+
), x, A, g;
|
|
144
|
+
return {
|
|
145
|
+
c() {
|
|
146
|
+
e = w("div"), t = L("svg"), r = L("defs"), s = L("style"), y = H(".aaa{fill:var(--emfe-w-color-white, #FFFFFF);}"), m = L("g"), d = L("g"), v = L("path"), P = k(), b = w("h3"), x = H(h), c(v, "class", "aaa"), c(v, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), c(v, "transform", "translate(15 15) rotate(180)"), c(d, "transform", "translate(20 158)"), c(m, "transform", "translate(-20 -158)"), c(t, "xmlns", "http://www.w3.org/2000/svg"), c(t, "width", "15"), c(t, "height", "15"), c(t, "viewBox", "0 0 15 15"), c(b, "class", "PlayerAccountMenuCategoryTitle svelte-12es30r"), c(e, "class", "PlayerAccountMenuCategoryWrapper svelte-12es30r");
|
|
147
|
+
},
|
|
148
|
+
m(u, i) {
|
|
149
|
+
T(u, e, i), o(e, t), o(t, r), o(r, s), o(s, y), o(t, m), o(m, d), o(d, v), o(e, P), o(e, b), o(b, x), A || (g = [
|
|
150
|
+
W(
|
|
151
|
+
t,
|
|
152
|
+
"click",
|
|
153
|
+
/*goToHome*/
|
|
154
|
+
n[13]
|
|
155
|
+
),
|
|
156
|
+
W(
|
|
157
|
+
b,
|
|
158
|
+
"click",
|
|
159
|
+
/*goToHome*/
|
|
160
|
+
n[13]
|
|
161
|
+
)
|
|
162
|
+
], A = !0);
|
|
163
|
+
},
|
|
164
|
+
p(u, i) {
|
|
165
|
+
i[0] & /*$_*/
|
|
166
|
+
512 && h !== (h = /*$_*/
|
|
167
|
+
u[9]("title") + "") && z(x, h);
|
|
168
|
+
},
|
|
169
|
+
d(u) {
|
|
170
|
+
u && E(e), A = !1, Ae(g);
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
function xe(n) {
|
|
175
|
+
let e, t;
|
|
176
|
+
return {
|
|
177
|
+
c() {
|
|
178
|
+
e = w("div"), t = w("general-logout"), M(
|
|
179
|
+
t,
|
|
180
|
+
"endpoint",
|
|
181
|
+
/*endpoint*/
|
|
182
|
+
n[1]
|
|
183
|
+
), M(
|
|
184
|
+
t,
|
|
185
|
+
"session",
|
|
186
|
+
/*session*/
|
|
187
|
+
n[0]
|
|
188
|
+
), M(t, "buttonlocation", "PlayerAccountMenu"), M(
|
|
189
|
+
t,
|
|
190
|
+
"clientstyling",
|
|
191
|
+
/*clientstyling*/
|
|
192
|
+
n[2]
|
|
193
|
+
), M(
|
|
194
|
+
t,
|
|
195
|
+
"clientstylingurl",
|
|
196
|
+
/*clientstylingurl*/
|
|
197
|
+
n[3]
|
|
198
|
+
), c(e, "class", "PlayerAccountLogOutArea svelte-12es30r");
|
|
199
|
+
},
|
|
200
|
+
m(r, s) {
|
|
201
|
+
T(r, e, s), o(e, t);
|
|
202
|
+
},
|
|
203
|
+
p(r, s) {
|
|
204
|
+
s[0] & /*endpoint*/
|
|
205
|
+
2 && M(
|
|
206
|
+
t,
|
|
207
|
+
"endpoint",
|
|
208
|
+
/*endpoint*/
|
|
209
|
+
r[1]
|
|
210
|
+
), s[0] & /*session*/
|
|
211
|
+
1 && M(
|
|
212
|
+
t,
|
|
213
|
+
"session",
|
|
214
|
+
/*session*/
|
|
215
|
+
r[0]
|
|
216
|
+
), s[0] & /*clientstyling*/
|
|
217
|
+
4 && M(
|
|
218
|
+
t,
|
|
219
|
+
"clientstyling",
|
|
220
|
+
/*clientstyling*/
|
|
221
|
+
r[2]
|
|
222
|
+
), s[0] & /*clientstylingurl*/
|
|
223
|
+
8 && M(
|
|
224
|
+
t,
|
|
225
|
+
"clientstylingurl",
|
|
226
|
+
/*clientstylingurl*/
|
|
227
|
+
r[3]
|
|
228
|
+
);
|
|
229
|
+
},
|
|
230
|
+
d(r) {
|
|
231
|
+
r && E(e);
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
function Q(n) {
|
|
236
|
+
let e, t, r, s, y, m, d = (
|
|
237
|
+
/*menuItem*/
|
|
238
|
+
n[37].label + ""
|
|
239
|
+
), v, P, b, h, x;
|
|
240
|
+
function A() {
|
|
241
|
+
return (
|
|
242
|
+
/*click_handler*/
|
|
243
|
+
n[22](
|
|
244
|
+
/*menuItem*/
|
|
245
|
+
n[37]
|
|
246
|
+
)
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
return {
|
|
250
|
+
c() {
|
|
251
|
+
e = w("div"), t = w("p"), r = w("img"), y = k(), m = w("span"), v = H(d), P = k(), c(r, "class", "PlayerAccountMenuItemIcon " + /*isMobile*/
|
|
252
|
+
(n[10] ? "PlayerAccountMenuItemIconMobile" : "") + " svelte-12es30r"), N(r.src, s = /*menuItem*/
|
|
253
|
+
n[37].img) || c(r, "src", s), c(m, "class", "PlayerAccountMenuItemTitle svelte-12es30r"), c(t, "class", "PlayerAccountMenuItemWrapper svelte-12es30r"), c(e, "class", b = "PlayerAccountMenuItemBox " + /*selectedItem*/
|
|
254
|
+
(n[6] === /*menuItem*/
|
|
255
|
+
n[37].id && !/*isMobile*/
|
|
256
|
+
n[10] ? "PlayerAccountMenuActiveItemBox" : "") + " svelte-12es30r");
|
|
257
|
+
},
|
|
258
|
+
m(g, u) {
|
|
259
|
+
T(g, e, u), o(e, t), o(t, r), o(t, y), o(t, m), o(m, v), o(e, P), h || (x = W(e, "click", A), h = !0);
|
|
260
|
+
},
|
|
261
|
+
p(g, u) {
|
|
262
|
+
n = g, u[0] & /*menuItems*/
|
|
263
|
+
32 && !N(r.src, s = /*menuItem*/
|
|
264
|
+
n[37].img) && c(r, "src", s), u[0] & /*menuItems*/
|
|
265
|
+
32 && d !== (d = /*menuItem*/
|
|
266
|
+
n[37].label + "") && z(v, d), u[0] & /*selectedItem, menuItems*/
|
|
267
|
+
96 && b !== (b = "PlayerAccountMenuItemBox " + /*selectedItem*/
|
|
268
|
+
(n[6] === /*menuItem*/
|
|
269
|
+
n[37].id && !/*isMobile*/
|
|
270
|
+
n[10] ? "PlayerAccountMenuActiveItemBox" : "") + " svelte-12es30r") && c(e, "class", b);
|
|
271
|
+
},
|
|
272
|
+
d(g) {
|
|
273
|
+
g && E(e), h = !1, x();
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
function _e(n) {
|
|
278
|
+
let e, t;
|
|
279
|
+
return {
|
|
280
|
+
c() {
|
|
281
|
+
e = w("div"), t = w("general-logout"), M(
|
|
282
|
+
t,
|
|
283
|
+
"endpoint",
|
|
284
|
+
/*endpoint*/
|
|
285
|
+
n[1]
|
|
286
|
+
), M(
|
|
287
|
+
t,
|
|
288
|
+
"session",
|
|
289
|
+
/*session*/
|
|
290
|
+
n[0]
|
|
291
|
+
), M(t, "buttonlocation", "PlayerAccountMenu"), M(
|
|
292
|
+
t,
|
|
293
|
+
"clientstyling",
|
|
294
|
+
/*clientstyling*/
|
|
295
|
+
n[2]
|
|
296
|
+
), M(
|
|
297
|
+
t,
|
|
298
|
+
"clientstylingurl",
|
|
299
|
+
/*clientstylingurl*/
|
|
300
|
+
n[3]
|
|
301
|
+
), c(e, "class", "PlayerAccountLogOutArea svelte-12es30r");
|
|
302
|
+
},
|
|
303
|
+
m(r, s) {
|
|
304
|
+
T(r, e, s), o(e, t);
|
|
305
|
+
},
|
|
306
|
+
p(r, s) {
|
|
307
|
+
s[0] & /*endpoint*/
|
|
308
|
+
2 && M(
|
|
309
|
+
t,
|
|
310
|
+
"endpoint",
|
|
311
|
+
/*endpoint*/
|
|
312
|
+
r[1]
|
|
313
|
+
), s[0] & /*session*/
|
|
314
|
+
1 && M(
|
|
315
|
+
t,
|
|
316
|
+
"session",
|
|
317
|
+
/*session*/
|
|
318
|
+
r[0]
|
|
319
|
+
), s[0] & /*clientstyling*/
|
|
320
|
+
4 && M(
|
|
321
|
+
t,
|
|
322
|
+
"clientstyling",
|
|
323
|
+
/*clientstyling*/
|
|
324
|
+
r[2]
|
|
325
|
+
), s[0] & /*clientstylingurl*/
|
|
326
|
+
8 && M(
|
|
327
|
+
t,
|
|
328
|
+
"clientstylingurl",
|
|
329
|
+
/*clientstylingurl*/
|
|
330
|
+
r[3]
|
|
331
|
+
);
|
|
332
|
+
},
|
|
333
|
+
d(r) {
|
|
334
|
+
r && E(e);
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
function Ce(n) {
|
|
339
|
+
let e;
|
|
340
|
+
function t(y, m) {
|
|
341
|
+
return be;
|
|
342
|
+
}
|
|
343
|
+
let s = t()(n);
|
|
344
|
+
return {
|
|
345
|
+
c() {
|
|
346
|
+
e = w("div"), s.c();
|
|
347
|
+
},
|
|
348
|
+
m(y, m) {
|
|
349
|
+
T(y, e, m), s.m(e, null), n[23](e);
|
|
350
|
+
},
|
|
351
|
+
p(y, m) {
|
|
352
|
+
s.p(y, m);
|
|
353
|
+
},
|
|
354
|
+
i: O,
|
|
355
|
+
o: O,
|
|
356
|
+
d(y) {
|
|
357
|
+
y && E(e), s.d(), n[23](null);
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
function Ie(n, e, t) {
|
|
362
|
+
let r;
|
|
363
|
+
de(n, ve, (l) => t(9, r = l));
|
|
364
|
+
let { endpoint: s = "" } = e, { cmsendpoint: y = "" } = e, { env: m = "" } = e, { session: d = "" } = e, { playerid: v = "" } = e, { lang: P = "en" } = e, { selecteditem: b = "" } = e, { userroles: h = "" } = e, { clientstyling: x = "" } = e, { clientstylingurl: A = "" } = e, { translationurl: g = "" } = e, { activemenuitem: u = "" } = e, i, F = [], a, C = window.navigator.userAgent, f = R(C) !== "PC", B = "", D = "";
|
|
365
|
+
const V = window.matchMedia("(min-width: 768px)"), Z = () => {
|
|
366
|
+
fetch(g).then((p) => p.json()).then((p) => {
|
|
367
|
+
Object.keys(p).forEach((_) => {
|
|
368
|
+
G(_, p[_]);
|
|
369
|
+
});
|
|
370
|
+
}).catch((p) => {
|
|
371
|
+
console.error(p);
|
|
372
|
+
});
|
|
373
|
+
};
|
|
374
|
+
Object.keys(X).forEach((l) => {
|
|
375
|
+
G(l, X[l]);
|
|
376
|
+
});
|
|
377
|
+
const S = (l) => {
|
|
378
|
+
if (l.data)
|
|
379
|
+
switch (l.data.type) {
|
|
380
|
+
case "AccountMenuDetails":
|
|
381
|
+
availableMenuItemsArray = l.data.accountMenuInfo;
|
|
382
|
+
break;
|
|
383
|
+
case "UserSessionID":
|
|
384
|
+
t(0, d = l.data.session);
|
|
385
|
+
break;
|
|
386
|
+
}
|
|
387
|
+
}, J = () => {
|
|
388
|
+
let l = R(C);
|
|
389
|
+
if (l)
|
|
390
|
+
return l === "PC" ? "dk" : "mtWeb";
|
|
391
|
+
}, Y = () => {
|
|
392
|
+
const l = new URL(`${y}/${P}/profile-menu?env=${m}`);
|
|
393
|
+
l.searchParams.append("device", J()), fetch(l.href).then((p) => p.json()).then((p) => {
|
|
394
|
+
t(5, F = p), j();
|
|
395
|
+
}).catch((p) => {
|
|
396
|
+
console.error("Error getting menu items", p);
|
|
397
|
+
});
|
|
398
|
+
}, $ = () => {
|
|
399
|
+
let l = new URL(`${s}/v1/player/${v}/profile`);
|
|
400
|
+
l.searchParams.append("userRoles", h);
|
|
401
|
+
let p = {
|
|
402
|
+
method: "GET",
|
|
403
|
+
headers: { "X-SessionID": d }
|
|
404
|
+
};
|
|
405
|
+
fetch(l.href, p).then((_) => _.json()).then(
|
|
406
|
+
(_) => {
|
|
407
|
+
t(7, B = _.username), t(8, D = _.email);
|
|
408
|
+
},
|
|
409
|
+
(_) => {
|
|
410
|
+
console.error(_);
|
|
411
|
+
}
|
|
412
|
+
);
|
|
413
|
+
}, U = (l) => {
|
|
414
|
+
window.postMessage({ type: "ChangeAccountPage", page: l }, window.location.href), t(6, a = l.id);
|
|
415
|
+
}, j = () => {
|
|
416
|
+
var l;
|
|
417
|
+
t(6, a = (l = F.find((p) => p.path.includes(u))) == null ? void 0 : l.id);
|
|
418
|
+
}, ee = () => {
|
|
419
|
+
window.postMessage({ type: "GoToHomepage" }, window.location.href);
|
|
420
|
+
}, te = () => {
|
|
421
|
+
Me(P);
|
|
422
|
+
}, ne = () => {
|
|
423
|
+
$();
|
|
424
|
+
}, le = () => {
|
|
425
|
+
let l = document.createElement("style");
|
|
426
|
+
l.innerHTML = x, i.appendChild(l);
|
|
427
|
+
}, re = () => {
|
|
428
|
+
let l = new URL(A), p = document.createElement("style");
|
|
429
|
+
fetch(l.href).then((_) => _.text()).then((_) => {
|
|
430
|
+
p.innerHTML = _, setTimeout(
|
|
431
|
+
() => {
|
|
432
|
+
i.appendChild(p);
|
|
433
|
+
},
|
|
434
|
+
1
|
|
435
|
+
);
|
|
436
|
+
});
|
|
437
|
+
};
|
|
438
|
+
fe(() => (window.addEventListener("message", S, !1), () => {
|
|
439
|
+
window.removeEventListener("message", S);
|
|
440
|
+
}));
|
|
441
|
+
const se = (l) => U(l);
|
|
442
|
+
function oe(l) {
|
|
443
|
+
pe[l ? "unshift" : "push"](() => {
|
|
444
|
+
i = l, t(4, i);
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
return n.$$set = (l) => {
|
|
448
|
+
"endpoint" in l && t(1, s = l.endpoint), "cmsendpoint" in l && t(14, y = l.cmsendpoint), "env" in l && t(15, m = l.env), "session" in l && t(0, d = l.session), "playerid" in l && t(16, v = l.playerid), "lang" in l && t(17, P = l.lang), "selecteditem" in l && t(18, b = l.selecteditem), "userroles" in l && t(19, h = l.userroles), "clientstyling" in l && t(2, x = l.clientstyling), "clientstylingurl" in l && t(3, A = l.clientstylingurl), "translationurl" in l && t(20, g = l.translationurl), "activemenuitem" in l && t(21, u = l.activemenuitem);
|
|
449
|
+
}, n.$$.update = () => {
|
|
450
|
+
n.$$.dirty[0] & /*lang*/
|
|
451
|
+
131072 && P && te(), n.$$.dirty[0] & /*endpoint, session, playerid, lang*/
|
|
452
|
+
196611 && s && d && v && P && ne(), n.$$.dirty[0] & /*cmsendpoint, lang, env*/
|
|
453
|
+
180224 && y && P && m && Y(), n.$$.dirty[0] & /*activemenuitem*/
|
|
454
|
+
2097152 && u && j(), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
455
|
+
24 && A && i && re(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
456
|
+
20 && x && i && le(), n.$$.dirty[0] & /*translationurl*/
|
|
457
|
+
1048576 && g && Z();
|
|
458
|
+
}, [
|
|
459
|
+
d,
|
|
460
|
+
s,
|
|
461
|
+
x,
|
|
462
|
+
A,
|
|
463
|
+
i,
|
|
464
|
+
F,
|
|
465
|
+
a,
|
|
466
|
+
B,
|
|
467
|
+
D,
|
|
468
|
+
r,
|
|
469
|
+
f,
|
|
470
|
+
V,
|
|
471
|
+
U,
|
|
472
|
+
ee,
|
|
473
|
+
y,
|
|
474
|
+
m,
|
|
475
|
+
v,
|
|
476
|
+
P,
|
|
477
|
+
b,
|
|
478
|
+
h,
|
|
479
|
+
g,
|
|
480
|
+
u,
|
|
481
|
+
se,
|
|
482
|
+
oe
|
|
483
|
+
];
|
|
484
|
+
}
|
|
485
|
+
class Fe extends ce {
|
|
486
|
+
constructor(e) {
|
|
487
|
+
super(), ue(
|
|
488
|
+
this,
|
|
489
|
+
e,
|
|
490
|
+
Ie,
|
|
491
|
+
Ce,
|
|
492
|
+
ye,
|
|
493
|
+
{
|
|
494
|
+
endpoint: 1,
|
|
495
|
+
cmsendpoint: 14,
|
|
496
|
+
env: 15,
|
|
497
|
+
session: 0,
|
|
498
|
+
playerid: 16,
|
|
499
|
+
lang: 17,
|
|
500
|
+
selecteditem: 18,
|
|
501
|
+
userroles: 19,
|
|
502
|
+
clientstyling: 2,
|
|
503
|
+
clientstylingurl: 3,
|
|
504
|
+
translationurl: 20,
|
|
505
|
+
activemenuitem: 21
|
|
506
|
+
},
|
|
507
|
+
Pe,
|
|
508
|
+
[-1, -1]
|
|
509
|
+
);
|
|
510
|
+
}
|
|
511
|
+
get endpoint() {
|
|
512
|
+
return this.$$.ctx[1];
|
|
513
|
+
}
|
|
514
|
+
set endpoint(e) {
|
|
515
|
+
this.$$set({ endpoint: e }), I();
|
|
516
|
+
}
|
|
517
|
+
get cmsendpoint() {
|
|
518
|
+
return this.$$.ctx[14];
|
|
519
|
+
}
|
|
520
|
+
set cmsendpoint(e) {
|
|
521
|
+
this.$$set({ cmsendpoint: e }), I();
|
|
522
|
+
}
|
|
523
|
+
get env() {
|
|
524
|
+
return this.$$.ctx[15];
|
|
525
|
+
}
|
|
526
|
+
set env(e) {
|
|
527
|
+
this.$$set({ env: e }), I();
|
|
528
|
+
}
|
|
529
|
+
get session() {
|
|
530
|
+
return this.$$.ctx[0];
|
|
531
|
+
}
|
|
532
|
+
set session(e) {
|
|
533
|
+
this.$$set({ session: e }), I();
|
|
534
|
+
}
|
|
535
|
+
get playerid() {
|
|
536
|
+
return this.$$.ctx[16];
|
|
537
|
+
}
|
|
538
|
+
set playerid(e) {
|
|
539
|
+
this.$$set({ playerid: e }), I();
|
|
540
|
+
}
|
|
541
|
+
get lang() {
|
|
542
|
+
return this.$$.ctx[17];
|
|
543
|
+
}
|
|
544
|
+
set lang(e) {
|
|
545
|
+
this.$$set({ lang: e }), I();
|
|
546
|
+
}
|
|
547
|
+
get selecteditem() {
|
|
548
|
+
return this.$$.ctx[18];
|
|
549
|
+
}
|
|
550
|
+
set selecteditem(e) {
|
|
551
|
+
this.$$set({ selecteditem: e }), I();
|
|
552
|
+
}
|
|
553
|
+
get userroles() {
|
|
554
|
+
return this.$$.ctx[19];
|
|
555
|
+
}
|
|
556
|
+
set userroles(e) {
|
|
557
|
+
this.$$set({ userroles: e }), I();
|
|
558
|
+
}
|
|
559
|
+
get clientstyling() {
|
|
560
|
+
return this.$$.ctx[2];
|
|
561
|
+
}
|
|
562
|
+
set clientstyling(e) {
|
|
563
|
+
this.$$set({ clientstyling: e }), I();
|
|
564
|
+
}
|
|
565
|
+
get clientstylingurl() {
|
|
566
|
+
return this.$$.ctx[3];
|
|
567
|
+
}
|
|
568
|
+
set clientstylingurl(e) {
|
|
569
|
+
this.$$set({ clientstylingurl: e }), I();
|
|
570
|
+
}
|
|
571
|
+
get translationurl() {
|
|
572
|
+
return this.$$.ctx[20];
|
|
573
|
+
}
|
|
574
|
+
set translationurl(e) {
|
|
575
|
+
this.$$set({ translationurl: e }), I();
|
|
576
|
+
}
|
|
577
|
+
get activemenuitem() {
|
|
578
|
+
return this.$$.ctx[21];
|
|
579
|
+
}
|
|
580
|
+
set activemenuitem(e) {
|
|
581
|
+
this.$$set({ activemenuitem: e }), I();
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
me(Fe, { endpoint: {}, cmsendpoint: {}, env: {}, session: {}, playerid: {}, lang: {}, selecteditem: {}, userroles: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, activemenuitem: {} }, [], [], !0);
|
|
585
|
+
export {
|
|
586
|
+
Fe as default
|
|
587
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-CA9TEW-a.cjs");function L(l,t){e.addMessages(l,t)}function V(l){e.$locale.set(l)}const T={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"}};if(typeof window!="undefined"){let l=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=l(customElements.define),Promise.resolve().then(()=>require("./GeneralLogout-CA9TEW-a.cjs")).then(t=>t.GeneralLogout_ce).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function X(l){e.append_styles(l,"svelte-12es30r",".PlayerAccountMenuContainer.svelte-12es30r.svelte-12es30r{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;border-right:2px solid #58586b}.PlayerAccountMenuContainer.svelte-12es30r .PlayerAccountMenuItemWrapper.svelte-12es30r{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer.svelte-12es30r .PlayerAccountMenuItemWrapper span.svelte-12es30r{display:flex;align-items:center}.PlayerAccountMenuHeader.svelte-12es30r.svelte-12es30r{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader.svelte-12es30r .PlayerAccountMenuUser.svelte-12es30r{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader.svelte-12es30r .PlayerAccountMenuEmail.svelte-12es30r{font-size:14px;text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader.svelte-12es30r p.svelte-12es30r{font-weight:300}.PlayerAccountMenuHeaderMobile.svelte-12es30r.svelte-12es30r{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox.svelte-12es30r.svelte-12es30r{padding:16px 20px;font-size:16px;line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox.svelte-12es30r .PlayerAccountMenuItemTitle.svelte-12es30r{margin-left:20px}.PlayerAccountMenuItemBox.svelte-12es30r.svelte-12es30r:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-150, #828282)}.PlayerAccountMenuItemBox.svelte-12es30r .PlayerAccountMenuItemIcon.svelte-12es30r{width:20px;padding-top:unset}.PlayerAccountMenuItemBox.svelte-12es30r .PlayerAccountMenuItemIconMobile.svelte-12es30r{width:30px;padding-top:15px}.PlayerAccountMenuList.svelte-12es30r.svelte-12es30r{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emfe-w-color-gray-100, #E6E6E6) var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList.svelte-12es30r.svelte-12es30r::-webkit-scrollbar{width:6px}.PlayerAccountMenuList.svelte-12es30r.svelte-12es30r::-webkit-scrollbar-track{background:var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList.svelte-12es30r.svelte-12es30r::-webkit-scrollbar-thumb{background:var(--emfe-w-color-gray-100, #E6E6E6)}.PlayerAccountLogOutArea.svelte-12es30r.svelte-12es30r{background:var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));width:100%;flex-grow:0;border-top:1px solid var(--emfe-w-color-gray-150, #828282)}.PlayerAccountMenuActiveItemBox.svelte-12es30r.svelte-12es30r{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMobileContainer.svelte-12es30r.svelte-12es30r{height:unset}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuCategoryWrapper.svelte-12es30r{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuCategoryTitle.svelte-12es30r{margin:0;font-weight:600}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuItemTitle.svelte-12es30r{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuEmail.svelte-12es30r{margin:0}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuList.svelte-12es30r{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.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemBox.svelte-12es30r{border:1px solid var(--emfe-w-color-gray-300, #58586B);border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox.svelte-12es30r{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border-bottom:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon.svelte-12es30r{width:30px}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemWrapper.svelte-12es30r{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.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle.svelte-12es30r{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountLogOutArea.svelte-12es30r{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuHeader.svelte-12es30r{padding:30px 40px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuCategoryTitle.svelte-12es30r{font-size:32px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuUser.svelte-12es30r{font-size:26px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuEmail.svelte-12es30r{font-size:20px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuList.svelte-12es30r{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon.svelte-12es30r{width:80px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemWrapper.svelte-12es30r{gap:28px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle.svelte-12es30r{font-size:24px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountLogOutArea.svelte-12es30r{right:54px;top:72px}")}function E(l,t,n){const s=l.slice();return s[37]=t[n],s}function Z(l){let t,n,s,a,m,u,p,f,_,A,v,M,h=l[10]&&J(l),d=l[10]&&K(l),i=e.ensure_array_like(l[5]),c=[];for(let o=0;o<i.length;o+=1)c[o]=B(E(l,i,o));let w=!l[10]&&Y(l);return{c(){t=e.element("div"),n=e.element("div"),h&&h.c(),s=e.space(),a=e.element("p"),m=e.text(l[7]),u=e.space(),p=e.element("p"),f=e.text(l[8]),_=e.space(),d&&d.c(),A=e.space(),v=e.element("div");for(let o=0;o<c.length;o+=1)c[o].c();M=e.space(),w&&w.c(),e.attr(a,"class","PlayerAccountMenuUser svelte-12es30r"),e.attr(p,"class","PlayerAccountMenuEmail svelte-12es30r"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[10]?"PlayerAccountMenuHeaderMobile":"")+" svelte-12es30r"),e.attr(v,"class","PlayerAccountMenuList svelte-12es30r"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[10]?"PlayerAccountMobileContainer":"")+" "+(l[11].matches&&l[10]?"PlayerAccountTabletContainer":"")+" svelte-12es30r")},m(o,b){e.insert(o,t,b),e.append(t,n),h&&h.m(n,null),e.append(n,s),e.append(n,a),e.append(a,m),e.append(n,u),e.append(n,p),e.append(p,f),e.append(n,_),d&&d.m(n,null),e.append(t,A),e.append(t,v);for(let g=0;g<c.length;g+=1)c[g]&&c[g].m(v,null);e.append(t,M),w&&w.m(t,null)},p(o,b){if(o[10]&&h.p(o,b),b[0]&128&&e.set_data(m,o[7]),b[0]&256&&e.set_data(f,o[8]),o[10]&&d.p(o,b),b[0]&5216){i=e.ensure_array_like(o[5]);let g;for(g=0;g<i.length;g+=1){const x=E(o,i,g);c[g]?c[g].p(x,b):(c[g]=B(x),c[g].c(),c[g].m(v,null))}for(;g<c.length;g+=1)c[g].d(1);c.length=i.length}o[10]||w.p(o,b)},d(o){o&&e.detach(t),h&&h.d(),d&&d.d(),e.destroy_each(c,o),w&&w.d()}}}function J(l){let t,n,s,a,m,u,p,f,_,A,v=l[9]("title")+"",M,h,d;return{c(){t=e.element("div"),n=e.svg_element("svg"),s=e.svg_element("defs"),a=e.svg_element("style"),m=e.text(".aaa{fill:var(--emfe-w-color-white, #FFFFFF);}"),u=e.svg_element("g"),p=e.svg_element("g"),f=e.svg_element("path"),_=e.space(),A=e.element("h3"),M=e.text(v),e.attr(f,"class","aaa"),e.attr(f,"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(f,"transform","translate(15 15) rotate(180)"),e.attr(p,"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 svelte-12es30r"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper svelte-12es30r")},m(i,c){e.insert(i,t,c),e.append(t,n),e.append(n,s),e.append(s,a),e.append(a,m),e.append(n,u),e.append(u,p),e.append(p,f),e.append(t,_),e.append(t,A),e.append(A,M),h||(d=[e.listen(n,"click",l[13]),e.listen(A,"click",l[13])],h=!0)},p(i,c){c[0]&512&&v!==(v=i[9]("title")+"")&&e.set_data(M,v)},d(i){i&&e.detach(t),h=!1,e.run_all(d)}}}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 svelte-12es30r")},m(s,a){e.insert(s,t,a),e.append(t,n)},p(s,a){a[0]&2&&e.set_custom_element_data(n,"endpoint",s[1]),a[0]&1&&e.set_custom_element_data(n,"session",s[0]),a[0]&4&&e.set_custom_element_data(n,"clientstyling",s[2]),a[0]&8&&e.set_custom_element_data(n,"clientstylingurl",s[3])},d(s){s&&e.detach(t)}}}function B(l){let t,n,s,a,m,u,p=l[37].label+"",f,_,A,v,M;function h(){return l[22](l[37])}return{c(){t=e.element("div"),n=e.element("p"),s=e.element("img"),m=e.space(),u=e.element("span"),f=e.text(p),_=e.space(),e.attr(s,"class","PlayerAccountMenuItemIcon "+(l[10]?"PlayerAccountMenuItemIconMobile":"")+" svelte-12es30r"),e.src_url_equal(s.src,a=l[37].img)||e.attr(s,"src",a),e.attr(u,"class","PlayerAccountMenuItemTitle svelte-12es30r"),e.attr(n,"class","PlayerAccountMenuItemWrapper svelte-12es30r"),e.attr(t,"class",A="PlayerAccountMenuItemBox "+(l[6]===l[37].id&&!l[10]?"PlayerAccountMenuActiveItemBox":"")+" svelte-12es30r")},m(d,i){e.insert(d,t,i),e.append(t,n),e.append(n,s),e.append(n,m),e.append(n,u),e.append(u,f),e.append(t,_),v||(M=e.listen(t,"click",h),v=!0)},p(d,i){l=d,i[0]&32&&!e.src_url_equal(s.src,a=l[37].img)&&e.attr(s,"src",a),i[0]&32&&p!==(p=l[37].label+"")&&e.set_data(f,p),i[0]&96&&A!==(A="PlayerAccountMenuItemBox "+(l[6]===l[37].id&&!l[10]?"PlayerAccountMenuActiveItemBox":"")+" svelte-12es30r")&&e.attr(t,"class",A)},d(d){d&&e.detach(t),v=!1,M()}}}function Y(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 svelte-12es30r")},m(s,a){e.insert(s,t,a),e.append(t,n)},p(s,a){a[0]&2&&e.set_custom_element_data(n,"endpoint",s[1]),a[0]&1&&e.set_custom_element_data(n,"session",s[0]),a[0]&4&&e.set_custom_element_data(n,"clientstyling",s[2]),a[0]&8&&e.set_custom_element_data(n,"clientstylingurl",s[3])},d(s){s&&e.detach(t)}}}function $(l){let t;function n(m,u){return Z}let a=n()(l);return{c(){t=e.element("div"),a.c()},m(m,u){e.insert(m,t,u),a.m(t,null),l[23](t)},p(m,u){a.p(m,u)},i:e.noop,o:e.noop,d(m){m&&e.detach(t),a.d(),l[23](null)}}}function ee(l,t,n){let s;e.component_subscribe(l,e.$format,r=>n(9,s=r));let{endpoint:a=""}=t,{cmsendpoint:m=""}=t,{env:u=""}=t,{session:p=""}=t,{playerid:f=""}=t,{lang:_="en"}=t,{selecteditem:A=""}=t,{userroles:v=""}=t,{clientstyling:M=""}=t,{clientstylingurl:h=""}=t,{translationurl:d=""}=t,{activemenuitem:i=""}=t,c,w=[],o,b=window.navigator.userAgent,g=e.getDevice(b)!=="PC",x="",C="";const z=window.matchMedia("(min-width: 768px)"),D=()=>{fetch(d).then(y=>y.json()).then(y=>{Object.keys(y).forEach(P=>{L(P,y[P])})}).catch(y=>{console.error(y)})};Object.keys(T).forEach(r=>{L(r,T[r])});const I=r=>{if(r.data)switch(r.data.type){case"AccountMenuDetails":availableMenuItemsArray=r.data.accountMenuInfo;break;case"UserSessionID":n(0,p=r.data.session);break}},S=()=>{let r=e.getDevice(b);if(r)return r==="PC"?"dk":"mtWeb"},W=()=>{const r=new URL(`${m}/${_}/profile-menu?env=${u}`);r.searchParams.append("device",S()),fetch(r.href).then(y=>y.json()).then(y=>{n(5,w=y),k()}).catch(y=>{console.error("Error getting menu items",y)})},O=()=>{let r=new URL(`${a}/v1/player/${f}/profile`);r.searchParams.append("userRoles",v);let y={method:"GET",headers:{"X-SessionID":p}};fetch(r.href,y).then(P=>P.json()).then(P=>{n(7,x=P.username),n(8,C=P.email)},P=>{console.error(P)})},F=r=>{window.postMessage({type:"ChangeAccountPage",page:r},window.location.href),n(6,o=r.id)},k=()=>{var r;n(6,o=(r=w.find(y=>y.path.includes(i)))==null?void 0:r.id)},U=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},j=()=>{V(_)},R=()=>{O()},q=()=>{let r=document.createElement("style");r.innerHTML=M,c.appendChild(r)},G=()=>{let r=new URL(h),y=document.createElement("style");fetch(r.href).then(P=>P.text()).then(P=>{y.innerHTML=P,setTimeout(()=>{c.appendChild(y)},1)})};e.onMount(()=>(window.addEventListener("message",I,!1),()=>{window.removeEventListener("message",I)}));const N=r=>F(r);function Q(r){e.binding_callbacks[r?"unshift":"push"](()=>{c=r,n(4,c)})}return l.$$set=r=>{"endpoint"in r&&n(1,a=r.endpoint),"cmsendpoint"in r&&n(14,m=r.cmsendpoint),"env"in r&&n(15,u=r.env),"session"in r&&n(0,p=r.session),"playerid"in r&&n(16,f=r.playerid),"lang"in r&&n(17,_=r.lang),"selecteditem"in r&&n(18,A=r.selecteditem),"userroles"in r&&n(19,v=r.userroles),"clientstyling"in r&&n(2,M=r.clientstyling),"clientstylingurl"in r&&n(3,h=r.clientstylingurl),"translationurl"in r&&n(20,d=r.translationurl),"activemenuitem"in r&&n(21,i=r.activemenuitem)},l.$$.update=()=>{l.$$.dirty[0]&131072&&_&&j(),l.$$.dirty[0]&196611&&a&&p&&f&&_&&R(),l.$$.dirty[0]&180224&&m&&_&&u&&W(),l.$$.dirty[0]&2097152&&i&&k(),l.$$.dirty[0]&24&&h&&c&&G(),l.$$.dirty[0]&20&&M&&c&&q(),l.$$.dirty[0]&1048576&&d&&D()},[p,a,M,h,c,w,o,x,C,s,g,z,F,U,m,u,f,_,A,v,d,i,N,Q]}class H extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ee,$,e.safe_not_equal,{endpoint:1,cmsendpoint:14,env:15,session:0,playerid:16,lang:17,selecteditem:18,userroles:19,clientstyling:2,clientstylingurl:3,translationurl:20,activemenuitem:21},X,[-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 selecteditem(){return this.$$.ctx[18]}set selecteditem(t){this.$$set({selecteditem:t}),e.flush()}get userroles(){return this.$$.ctx[19]}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[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get activemenuitem(){return this.$$.ctx[21]}set activemenuitem(t){this.$$set({activemenuitem:t}),e.flush()}}e.create_custom_element(H,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},selecteditem:{},userroles:{},clientstyling:{},clientstylingurl:{},translationurl:{},activemenuitem:{}},[],[],!0);exports.default=H;
|