@everymatrix/player-account-menu-nd 1.55.0 → 1.56.2

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.
@@ -0,0 +1,716 @@
1
+ import { a as de, $ as ge, c as ye, S as pe, i as fe, s as he, f as C, b as Ae, e as h, d as F, n as O, g as L, h as be, j as V, o as Me, k as Pe, l as we, m as ve, p as xe, q as H, r as k, t as z, u as g, v as a, w as W, x as ee, y as m, z as T, A as D, B as _e, C as X, D as ke } from "./GeneralLogout-lRqS5xnM.js";
2
+ import "../stencil/ui-skeleton-C5gPr5Xv.js";
3
+ function Z(n, e) {
4
+ de(n, e);
5
+ }
6
+ function Ce(n) {
7
+ ge.set(n);
8
+ }
9
+ const Q = {
10
+ en: {
11
+ title: "My Account"
12
+ },
13
+ "zh-hk": {
14
+ title: "我的帳戶"
15
+ },
16
+ fr: {
17
+ title: "Mon compte"
18
+ },
19
+ tr: {
20
+ title: "Hesabım"
21
+ },
22
+ ro: {
23
+ title: "Contul meu"
24
+ },
25
+ es: {
26
+ title: "Mi Cuenta"
27
+ },
28
+ pt: {
29
+ title: "Minha Conta"
30
+ },
31
+ hr: {
32
+ title: "Moj račun"
33
+ },
34
+ "pt-br": {
35
+ title: "Minha conta"
36
+ },
37
+ "es-mx": {
38
+ title: "Mi cuenta"
39
+ },
40
+ "en-us": {
41
+ title: "My Account"
42
+ }
43
+ };
44
+ if (typeof window < "u") {
45
+ let n = function(e) {
46
+ return function(...t) {
47
+ try {
48
+ return e.apply(this, t);
49
+ } catch (l) {
50
+ if (l instanceof DOMException && l.message.includes("has already been used with this registry") || l.message.includes("Cannot define multiple custom elements with the same tag name"))
51
+ return !1;
52
+ throw l;
53
+ }
54
+ };
55
+ };
56
+ customElements.define = n(customElements.define), import("./GeneralLogout-lRqS5xnM.js").then((e) => e.G).then(({ default: e }) => {
57
+ !customElements.get("general-logout") && customElements.define("general-logout", e.element);
58
+ });
59
+ }
60
+ function Ie(n) {
61
+ Ae(n, "svelte-7x6kyy", '.PlayerAccountMenuContainer{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;padding:0 15px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuContainer .skeletonLogOut{width:100%;border-radius:20px;overflow:hidden}.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:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-secondary, var(--emw--color-secondary, #E98B10))}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:var(--emw--font-size-small, 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:var(--emw--font-size-medium, 16px);line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;border-radius:var(--emw--border-radius-medium, 20px);border:2px solid transparent;cursor:pointer;transition:all 0.3s linear}.PlayerAccountMenuItemBox:hover{transition:all 0.3s linear;background:rgba(35, 176, 78, 0.3);border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 20px);color:var(--emw--color-white, #FFFFFF)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;height:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;height:30px;padding-top:15px}.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)}.PlayerAccountItemWrap{display:flex;gap:20px;padding:16px 20px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile{padding:5px;width:100%;box-sizing:border-box}.PlayerAccountItemWrap ui-skeleton:last-child{flex:1}.PlayerAccountLogOutArea{background-color:rgba(253, 40, 57, 0.3);color:var(--emw--color-white, #FFFFFF);border-radius:var(--emw--border-radius-medium, 20px);width:100%;flex-grow:0}.PlayerAccountMenuActiveItemBox{background:rgba(35, 176, 78, 0.3);color:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 20px);transition:all 0.3s linear}.PlayerAccountMobileContainer{height:unset;padding:0}.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:flex;flex-direction:column;align-items:flex-start;margin:0px 15px;min-height:900px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{background:rgba(35, 176, 78, 0.3);color:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 20px);height:60px;margin:5px 0;align-items:flex-start;position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;padding:0 10px 0 15px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox::after{content:"";display:inline-block;width:15px;height:15px;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2215%22 height=%2215%22 viewBox=%220 0 15 15%22%3E%3Cdefs%3E%3Cstyle%3E.aaa%7Bfill:var(--emw--color-white,%20%23FFFFFF);%7D%3C/style%3E%3C/defs%3E%3Cg transform=%22translate(-20%20-158)%22%3E%3Cg transform=%22translate(20%20158)%22%3E%3Cpath class=%22aaa%22 d=%22M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z%22 transform=%22translate(15%2015)%20rotate(180)%22%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E");background-size:contain;transform:scaleX(-1);background-repeat:no-repeat;position:absolute;right:15px;top:22px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;justify-items:center;align-items:center;flex-flow:row;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:var(--emw--font-size-medium, 16px);line-height:16px;font-weight:400;word-break:break-word;text-align:left;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;color:var(--emw--pam-color-secondary, var(--emw--color-secondary, #E98B10))}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:18px}.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,.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:12px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:var(--emw--font-size-large, 20px)}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}');
62
+ }
63
+ function J(n, e, t) {
64
+ const l = n.slice();
65
+ return l[41] = e[t], l;
66
+ }
67
+ function K(n, e, t) {
68
+ const l = n.slice();
69
+ return l[38] = e[t], l;
70
+ }
71
+ function Fe(n) {
72
+ let e, t, l, i, s, d, A, M, v, P, b, w, u = (
73
+ /*isMobile*/
74
+ n[12] && Ee(n)
75
+ ), c = (
76
+ /*isMobile*/
77
+ n[12] && Be(n)
78
+ ), y = H(
79
+ /*menuItems*/
80
+ n[7]
81
+ ), o = [];
82
+ for (let p = 0; p < y.length; p += 1)
83
+ o[p] = Y(J(n, y, p));
84
+ let x = !/*isMobile*/
85
+ n[12] && Te(n);
86
+ return {
87
+ c() {
88
+ e = h("div"), t = h("div"), u && u.c(), l = k(), i = h("p"), s = z(
89
+ /*profileUsername*/
90
+ n[9]
91
+ ), d = k(), A = h("p"), M = z(
92
+ /*profileEmail*/
93
+ n[10]
94
+ ), v = k(), c && c.c(), P = k(), b = h("div");
95
+ for (let p = 0; p < o.length; p += 1)
96
+ o[p].c();
97
+ w = k(), x && x.c(), g(i, "class", "PlayerAccountMenuUser"), g(A, "class", "PlayerAccountMenuEmail"), g(t, "class", "PlayerAccountMenuHeader " + /*isMobile*/
98
+ (n[12] ? "PlayerAccountMenuHeaderMobile" : "")), g(b, "class", "PlayerAccountMenuList"), g(e, "class", "PlayerAccountMenuContainer " + /*isMobile*/
99
+ (n[12] ? "PlayerAccountMobileContainer" : "") + " " + /*mediaQuery*/
100
+ (n[13].matches && /*isMobile*/
101
+ n[12] ? "PlayerAccountTabletContainer" : ""));
102
+ },
103
+ m(p, I) {
104
+ F(p, e, I), a(e, t), u && u.m(t, null), a(t, l), a(t, i), a(i, s), a(t, d), a(t, A), a(A, M), a(t, v), c && c.m(t, null), a(e, P), a(e, b);
105
+ for (let f = 0; f < o.length; f += 1)
106
+ o[f] && o[f].m(b, null);
107
+ a(e, w), x && x.m(e, null);
108
+ },
109
+ p(p, I) {
110
+ if (
111
+ /*isMobile*/
112
+ p[12] && u.p(p, I), I[0] & /*profileUsername*/
113
+ 512 && W(
114
+ s,
115
+ /*profileUsername*/
116
+ p[9]
117
+ ), I[0] & /*profileEmail*/
118
+ 1024 && W(
119
+ M,
120
+ /*profileEmail*/
121
+ p[10]
122
+ ), /*isMobile*/
123
+ p[12] && c.p(p, I), I[0] & /*selectedItem, menuItems, isMobile, openAccountSection*/
124
+ 20864
125
+ ) {
126
+ y = H(
127
+ /*menuItems*/
128
+ p[7]
129
+ );
130
+ let f;
131
+ for (f = 0; f < y.length; f += 1) {
132
+ const B = J(p, y, f);
133
+ o[f] ? o[f].p(B, I) : (o[f] = Y(B), o[f].c(), o[f].m(b, null));
134
+ }
135
+ for (; f < o.length; f += 1)
136
+ o[f].d(1);
137
+ o.length = y.length;
138
+ }
139
+ /*isMobile*/
140
+ p[12] || x.p(p, I);
141
+ },
142
+ d(p) {
143
+ p && L(e), u && u.d(), c && c.d(), ee(o, p), x && x.d();
144
+ }
145
+ };
146
+ }
147
+ function Le(n) {
148
+ let e, t, l, i, s, d, A, M, v, P, b = (
149
+ /*isMobile*/
150
+ n[12] && ze()
151
+ ), w = H(Array(18)), u = [];
152
+ for (let c = 0; c < w.length; c += 1)
153
+ u[c] = $(K(n, w, c));
154
+ return {
155
+ c() {
156
+ e = h("div"), t = h("div"), b && b.c(), l = k(), i = h("ui-skeleton"), s = k(), d = h("ui-skeleton"), A = k(), M = h("div");
157
+ for (let c = 0; c < u.length; c += 1)
158
+ u[c].c();
159
+ v = k(), P = h("div"), P.innerHTML = '<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>', m(i, "structure", "title"), m(i, "width", "100px"), m(i, "height", "20px"), m(i, "margin-top", "20px"), m(d, "structure", "text"), m(d, "width", "200px"), m(d, "height", "20px"), g(t, "class", "PlayerAccountMenuHeader " + /*isMobile*/
160
+ (n[12] ? "PlayerAccountMenuHeaderMobile" : "")), g(M, "class", "PlayerAccountMenuList"), g(P, "class", "skeletonLogOut"), g(e, "class", "PlayerAccountMenuContainer " + /*isMobile*/
161
+ (n[12] ? "PlayerAccountMobileContainer" : "") + " " + /*mediaQuery*/
162
+ (n[13].matches && /*isMobile*/
163
+ n[12] ? "PlayerAccountTabletContainer" : ""));
164
+ },
165
+ m(c, y) {
166
+ F(c, e, y), a(e, t), b && b.m(t, null), a(t, l), a(t, i), a(t, s), a(t, d), a(e, A), a(e, M);
167
+ for (let o = 0; o < u.length; o += 1)
168
+ u[o] && u[o].m(M, null);
169
+ a(e, v), a(e, P);
170
+ },
171
+ p(c, y) {
172
+ if (y[0] & /*isMobile*/
173
+ 4096) {
174
+ w = H(Array(18));
175
+ let o;
176
+ for (o = 0; o < w.length; o += 1) {
177
+ const x = K(c, w, o);
178
+ u[o] ? u[o].p(x, y) : (u[o] = $(x), u[o].c(), u[o].m(M, null));
179
+ }
180
+ for (; o < u.length; o += 1)
181
+ u[o].d(1);
182
+ u.length = w.length;
183
+ }
184
+ },
185
+ d(c) {
186
+ c && L(e), b && b.d(), ee(u, c);
187
+ }
188
+ };
189
+ }
190
+ function Ee(n) {
191
+ let e, t, l, i, s, d, A, M, v, P, b = (
192
+ /*$_*/
193
+ n[11]("title") + ""
194
+ ), w, u, c;
195
+ return {
196
+ c() {
197
+ e = h("div"), t = T("svg"), l = T("defs"), i = T("style"), s = z(".aaa{fill:var(--emw--color-white, #FFFFFF);}"), d = T("g"), A = T("g"), M = T("path"), v = k(), P = h("h3"), w = z(b), g(M, "class", "aaa"), g(M, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), g(M, "transform", "translate(15 15) rotate(180)"), g(A, "transform", "translate(20 158)"), g(d, "transform", "translate(-20 -158)"), g(t, "xmlns", "http://www.w3.org/2000/svg"), g(t, "width", "15"), g(t, "height", "15"), g(t, "viewBox", "0 0 15 15"), g(P, "class", "PlayerAccountMenuCategoryTitle"), g(e, "class", "PlayerAccountMenuCategoryWrapper");
198
+ },
199
+ m(y, o) {
200
+ F(y, e, o), a(e, t), a(t, l), a(l, i), a(i, s), a(t, d), a(d, A), a(A, M), a(e, v), a(e, P), a(P, w), u || (c = [
201
+ D(
202
+ t,
203
+ "click",
204
+ /*goToHome*/
205
+ n[15]
206
+ ),
207
+ D(
208
+ P,
209
+ "click",
210
+ /*goToHome*/
211
+ n[15]
212
+ )
213
+ ], u = !0);
214
+ },
215
+ p(y, o) {
216
+ o[0] & /*$_*/
217
+ 2048 && b !== (b = /*$_*/
218
+ y[11]("title") + "") && W(w, b);
219
+ },
220
+ d(y) {
221
+ y && L(e), u = !1, _e(c);
222
+ }
223
+ };
224
+ }
225
+ function Be(n) {
226
+ let e, t;
227
+ return {
228
+ c() {
229
+ e = h("div"), t = h("general-logout"), m(
230
+ t,
231
+ "endpoint",
232
+ /*endpoint*/
233
+ n[1]
234
+ ), m(
235
+ t,
236
+ "session",
237
+ /*session*/
238
+ n[0]
239
+ ), m(t, "buttonlocation", "PlayerAccountMenu"), m(
240
+ t,
241
+ "clientstyling",
242
+ /*clientstyling*/
243
+ n[2]
244
+ ), m(
245
+ t,
246
+ "clientstylingurl",
247
+ /*clientstylingurl*/
248
+ n[3]
249
+ ), m(
250
+ t,
251
+ "mbsource",
252
+ /*mbsource*/
253
+ n[4]
254
+ ), g(e, "class", "PlayerAccountLogOutArea");
255
+ },
256
+ m(l, i) {
257
+ F(l, e, i), a(e, t);
258
+ },
259
+ p(l, i) {
260
+ i[0] & /*endpoint*/
261
+ 2 && m(
262
+ t,
263
+ "endpoint",
264
+ /*endpoint*/
265
+ l[1]
266
+ ), i[0] & /*session*/
267
+ 1 && m(
268
+ t,
269
+ "session",
270
+ /*session*/
271
+ l[0]
272
+ ), i[0] & /*clientstyling*/
273
+ 4 && m(
274
+ t,
275
+ "clientstyling",
276
+ /*clientstyling*/
277
+ l[2]
278
+ ), i[0] & /*clientstylingurl*/
279
+ 8 && m(
280
+ t,
281
+ "clientstylingurl",
282
+ /*clientstylingurl*/
283
+ l[3]
284
+ ), i[0] & /*mbsource*/
285
+ 16 && m(
286
+ t,
287
+ "mbsource",
288
+ /*mbsource*/
289
+ l[4]
290
+ );
291
+ },
292
+ d(l) {
293
+ l && L(e);
294
+ }
295
+ };
296
+ }
297
+ function Y(n) {
298
+ let e, t, l, i, s, d, A = (
299
+ /*menuItem*/
300
+ n[41].label + ""
301
+ ), M, v, P, b, w;
302
+ function u() {
303
+ return (
304
+ /*click_handler*/
305
+ n[26](
306
+ /*menuItem*/
307
+ n[41]
308
+ )
309
+ );
310
+ }
311
+ return {
312
+ c() {
313
+ e = h("div"), t = h("p"), l = h("img"), s = k(), d = h("span"), M = z(A), v = k(), g(l, "class", "PlayerAccountMenuItemIcon " + /*isMobile*/
314
+ (n[12] ? "PlayerAccountMenuItemIconMobile" : "")), X(l.src, i = /*menuItem*/
315
+ n[41].img) || g(l, "src", i), g(d, "class", "PlayerAccountMenuItemTitle"), g(t, "class", "PlayerAccountMenuItemWrapper"), g(e, "class", P = "PlayerAccountMenuItemBox " + /*selectedItem*/
316
+ (n[8] === /*menuItem*/
317
+ n[41].id && !/*isMobile*/
318
+ n[12] ? "PlayerAccountMenuActiveItemBox" : ""));
319
+ },
320
+ m(c, y) {
321
+ F(c, e, y), a(e, t), a(t, l), a(t, s), a(t, d), a(d, M), a(e, v), b || (w = D(e, "click", u), b = !0);
322
+ },
323
+ p(c, y) {
324
+ n = c, y[0] & /*menuItems*/
325
+ 128 && !X(l.src, i = /*menuItem*/
326
+ n[41].img) && g(l, "src", i), y[0] & /*menuItems*/
327
+ 128 && A !== (A = /*menuItem*/
328
+ n[41].label + "") && W(M, A), y[0] & /*selectedItem, menuItems*/
329
+ 384 && P !== (P = "PlayerAccountMenuItemBox " + /*selectedItem*/
330
+ (n[8] === /*menuItem*/
331
+ n[41].id && !/*isMobile*/
332
+ n[12] ? "PlayerAccountMenuActiveItemBox" : "")) && g(e, "class", P);
333
+ },
334
+ d(c) {
335
+ c && L(e), b = !1, w();
336
+ }
337
+ };
338
+ }
339
+ function Te(n) {
340
+ let e, t;
341
+ return {
342
+ c() {
343
+ e = h("div"), t = h("general-logout"), m(
344
+ t,
345
+ "endpoint",
346
+ /*endpoint*/
347
+ n[1]
348
+ ), m(
349
+ t,
350
+ "session",
351
+ /*session*/
352
+ n[0]
353
+ ), m(t, "buttonlocation", "PlayerAccountMenu"), m(
354
+ t,
355
+ "clientstyling",
356
+ /*clientstyling*/
357
+ n[2]
358
+ ), m(
359
+ t,
360
+ "clientstylingurl",
361
+ /*clientstylingurl*/
362
+ n[3]
363
+ ), m(
364
+ t,
365
+ "mbsource",
366
+ /*mbsource*/
367
+ n[4]
368
+ ), g(e, "class", "PlayerAccountLogOutArea");
369
+ },
370
+ m(l, i) {
371
+ F(l, e, i), a(e, t);
372
+ },
373
+ p(l, i) {
374
+ i[0] & /*endpoint*/
375
+ 2 && m(
376
+ t,
377
+ "endpoint",
378
+ /*endpoint*/
379
+ l[1]
380
+ ), i[0] & /*session*/
381
+ 1 && m(
382
+ t,
383
+ "session",
384
+ /*session*/
385
+ l[0]
386
+ ), i[0] & /*clientstyling*/
387
+ 4 && m(
388
+ t,
389
+ "clientstyling",
390
+ /*clientstyling*/
391
+ l[2]
392
+ ), i[0] & /*clientstylingurl*/
393
+ 8 && m(
394
+ t,
395
+ "clientstylingurl",
396
+ /*clientstylingurl*/
397
+ l[3]
398
+ ), i[0] & /*mbsource*/
399
+ 16 && m(
400
+ t,
401
+ "mbsource",
402
+ /*mbsource*/
403
+ l[4]
404
+ );
405
+ },
406
+ d(l) {
407
+ l && L(e);
408
+ }
409
+ };
410
+ }
411
+ function ze(n) {
412
+ let e;
413
+ return {
414
+ c() {
415
+ e = h("div"), e.innerHTML = '<ui-skeleton structure="title" width="30px" height="40px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="40px"></ui-skeleton>', g(e, "class", "PlayerAccountMenuCategoryWrapper");
416
+ },
417
+ m(t, l) {
418
+ F(t, e, l);
419
+ },
420
+ d(t) {
421
+ t && L(e);
422
+ }
423
+ };
424
+ }
425
+ function He(n) {
426
+ let e;
427
+ return {
428
+ c() {
429
+ e = h("ui-skeleton"), m(e, "structure", "circle"), m(e, "size", "20px");
430
+ },
431
+ m(t, l) {
432
+ F(t, e, l);
433
+ },
434
+ d(t) {
435
+ t && L(e);
436
+ }
437
+ };
438
+ }
439
+ function $(n) {
440
+ let e, t, l, i, s = !/*isMobile*/
441
+ n[12] && He();
442
+ return {
443
+ c() {
444
+ e = h("div"), s && s.c(), t = k(), l = h("ui-skeleton"), i = k(), m(l, "structure", "rectangle"), m(l, "width", "100%"), m(
445
+ l,
446
+ "height",
447
+ /*isMobile*/
448
+ n[12] ? "60px" : "20px"
449
+ ), g(e, "class", "PlayerAccountItemWrap " + /*isMobile*/
450
+ (n[12] ? "PlayerAccountItemWrapMobile" : ""));
451
+ },
452
+ m(d, A) {
453
+ F(d, e, A), s && s.m(e, null), a(e, t), a(e, l), a(e, i);
454
+ },
455
+ p: O,
456
+ d(d) {
457
+ d && L(e), s && s.d();
458
+ }
459
+ };
460
+ }
461
+ function We(n) {
462
+ let e;
463
+ function t(s, d) {
464
+ return (
465
+ /*skeletonLoading*/
466
+ s[6] ? Le : Fe
467
+ );
468
+ }
469
+ let l = t(n), i = l(n);
470
+ return {
471
+ c() {
472
+ e = h("div"), i.c();
473
+ },
474
+ m(s, d) {
475
+ F(s, e, d), i.m(e, null), n[27](e);
476
+ },
477
+ p(s, d) {
478
+ l === (l = t(s)) && i ? i.p(s, d) : (i.d(1), i = l(s), i && (i.c(), i.m(e, null)));
479
+ },
480
+ i: O,
481
+ o: O,
482
+ d(s) {
483
+ s && L(e), i.d(), n[27](null);
484
+ }
485
+ };
486
+ }
487
+ function Se(n, e, t) {
488
+ let l;
489
+ be(n, ke, (r) => t(11, l = r));
490
+ let { endpoint: i = "" } = e, { cmsendpoint: s = "" } = e, { env: d = "" } = e, { session: A = "" } = e, { playerid: M = "" } = e, { lang: v = "en" } = e, { selecteditem: P = "" } = e, { userroles: b = "" } = e, { clientstyling: w = "" } = e, { clientstylingurl: u = "" } = e, { mbsource: c } = e, { translationurl: y = "" } = e, { activemenuitem: o = "" } = e, x = !1, p = !1, I = !0, f, B = [], S, U = window.navigator.userAgent, te = V(U) !== "PC", j = "", R = "";
491
+ const ne = window.matchMedia("(min-width: 768px)"), le = () => {
492
+ fetch(y).then((_) => _.json()).then((_) => {
493
+ Object.keys(_).forEach((E) => {
494
+ Z(E, _[E]);
495
+ });
496
+ }).catch((_) => {
497
+ console.error(_);
498
+ });
499
+ };
500
+ Object.keys(Q).forEach((r) => {
501
+ Z(r, Q[r]);
502
+ });
503
+ const N = (r) => {
504
+ if (r.data)
505
+ switch (r.data.type) {
506
+ case "AccountMenuDetails":
507
+ availableMenuItemsArray = r.data.accountMenuInfo;
508
+ break;
509
+ case "UserSessionID":
510
+ t(0, A = r.data.session);
511
+ break;
512
+ }
513
+ }, re = () => {
514
+ let r = V(U);
515
+ if (r)
516
+ return r === "PC" ? "dk" : "mtWeb";
517
+ }, ie = () => {
518
+ const r = new URL(`${s}/${v}/profile-menu?env=${d}`);
519
+ r.searchParams.append("device", re()), fetch(r.href).then((_) => _.json()).then((_) => {
520
+ t(7, B = _), G();
521
+ }).catch((_) => {
522
+ console.error("Error getting menu items", _);
523
+ }).finally(() => {
524
+ t(24, x = !0);
525
+ });
526
+ }, oe = () => {
527
+ let r = new URL(`${i}/v1/player/${M}/profile`);
528
+ r.searchParams.append("userRoles", b);
529
+ let _ = {
530
+ method: "GET",
531
+ headers: { "X-SessionID": A }
532
+ };
533
+ fetch(r.href, _).then((E) => E.json()).then(
534
+ (E) => {
535
+ t(9, j = E.username), t(10, R = E.email);
536
+ },
537
+ (E) => {
538
+ console.error(E);
539
+ }
540
+ ).finally(() => {
541
+ t(25, p = !0);
542
+ });
543
+ }, q = (r) => {
544
+ window.postMessage({ type: "ChangeAccountPage", page: r }, window.location.href), t(8, S = r.id);
545
+ }, G = () => {
546
+ t(8, S = B.find((r) => r.path.includes(o))?.id);
547
+ }, ae = () => {
548
+ window.postMessage({ type: "GoToHomepage" }, window.location.href);
549
+ }, ce = () => {
550
+ Ce(v);
551
+ }, se = () => {
552
+ oe();
553
+ };
554
+ Me(() => (window.addEventListener("message", N, !1), () => {
555
+ window.removeEventListener("message", N);
556
+ }));
557
+ const ue = (r) => q(r);
558
+ function me(r) {
559
+ ve[r ? "unshift" : "push"](() => {
560
+ f = r, t(5, f);
561
+ });
562
+ }
563
+ return n.$$set = (r) => {
564
+ "endpoint" in r && t(1, i = r.endpoint), "cmsendpoint" in r && t(16, s = r.cmsendpoint), "env" in r && t(17, d = r.env), "session" in r && t(0, A = r.session), "playerid" in r && t(18, M = r.playerid), "lang" in r && t(19, v = r.lang), "selecteditem" in r && t(20, P = r.selecteditem), "userroles" in r && t(21, b = r.userroles), "clientstyling" in r && t(2, w = r.clientstyling), "clientstylingurl" in r && t(3, u = r.clientstylingurl), "mbsource" in r && t(4, c = r.mbsource), "translationurl" in r && t(22, y = r.translationurl), "activemenuitem" in r && t(23, o = r.activemenuitem);
565
+ }, n.$$.update = () => {
566
+ n.$$.dirty[0] & /*menuLoaded, playerInfoLoaded*/
567
+ 50331648 && t(6, I = !x || !p), n.$$.dirty[0] & /*lang*/
568
+ 524288 && v && ce(), n.$$.dirty[0] & /*endpoint, session, playerid, lang*/
569
+ 786435 && i && A && M && v && se(), n.$$.dirty[0] & /*cmsendpoint, lang, env*/
570
+ 720896 && s && v && d && ie(), n.$$.dirty[0] & /*activemenuitem*/
571
+ 8388608 && o && G(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
572
+ 36 && w && f && xe(f, w), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
573
+ 40 && u && f && Pe(f, u), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
574
+ 48 && c && f && we(f, `${c}.Style`), n.$$.dirty[0] & /*translationurl*/
575
+ 4194304 && y && le();
576
+ }, [
577
+ A,
578
+ i,
579
+ w,
580
+ u,
581
+ c,
582
+ f,
583
+ I,
584
+ B,
585
+ S,
586
+ j,
587
+ R,
588
+ l,
589
+ te,
590
+ ne,
591
+ q,
592
+ ae,
593
+ s,
594
+ d,
595
+ M,
596
+ v,
597
+ P,
598
+ b,
599
+ y,
600
+ o,
601
+ x,
602
+ p,
603
+ ue,
604
+ me
605
+ ];
606
+ }
607
+ class Oe extends pe {
608
+ constructor(e) {
609
+ super(), fe(
610
+ this,
611
+ e,
612
+ Se,
613
+ We,
614
+ he,
615
+ {
616
+ endpoint: 1,
617
+ cmsendpoint: 16,
618
+ env: 17,
619
+ session: 0,
620
+ playerid: 18,
621
+ lang: 19,
622
+ selecteditem: 20,
623
+ userroles: 21,
624
+ clientstyling: 2,
625
+ clientstylingurl: 3,
626
+ mbsource: 4,
627
+ translationurl: 22,
628
+ activemenuitem: 23
629
+ },
630
+ Ie,
631
+ [-1, -1]
632
+ );
633
+ }
634
+ get endpoint() {
635
+ return this.$$.ctx[1];
636
+ }
637
+ set endpoint(e) {
638
+ this.$$set({ endpoint: e }), C();
639
+ }
640
+ get cmsendpoint() {
641
+ return this.$$.ctx[16];
642
+ }
643
+ set cmsendpoint(e) {
644
+ this.$$set({ cmsendpoint: e }), C();
645
+ }
646
+ get env() {
647
+ return this.$$.ctx[17];
648
+ }
649
+ set env(e) {
650
+ this.$$set({ env: e }), C();
651
+ }
652
+ get session() {
653
+ return this.$$.ctx[0];
654
+ }
655
+ set session(e) {
656
+ this.$$set({ session: e }), C();
657
+ }
658
+ get playerid() {
659
+ return this.$$.ctx[18];
660
+ }
661
+ set playerid(e) {
662
+ this.$$set({ playerid: e }), C();
663
+ }
664
+ get lang() {
665
+ return this.$$.ctx[19];
666
+ }
667
+ set lang(e) {
668
+ this.$$set({ lang: e }), C();
669
+ }
670
+ get selecteditem() {
671
+ return this.$$.ctx[20];
672
+ }
673
+ set selecteditem(e) {
674
+ this.$$set({ selecteditem: e }), C();
675
+ }
676
+ get userroles() {
677
+ return this.$$.ctx[21];
678
+ }
679
+ set userroles(e) {
680
+ this.$$set({ userroles: e }), C();
681
+ }
682
+ get clientstyling() {
683
+ return this.$$.ctx[2];
684
+ }
685
+ set clientstyling(e) {
686
+ this.$$set({ clientstyling: e }), C();
687
+ }
688
+ get clientstylingurl() {
689
+ return this.$$.ctx[3];
690
+ }
691
+ set clientstylingurl(e) {
692
+ this.$$set({ clientstylingurl: e }), C();
693
+ }
694
+ get mbsource() {
695
+ return this.$$.ctx[4];
696
+ }
697
+ set mbsource(e) {
698
+ this.$$set({ mbsource: e }), C();
699
+ }
700
+ get translationurl() {
701
+ return this.$$.ctx[22];
702
+ }
703
+ set translationurl(e) {
704
+ this.$$set({ translationurl: e }), C();
705
+ }
706
+ get activemenuitem() {
707
+ return this.$$.ctx[23];
708
+ }
709
+ set activemenuitem(e) {
710
+ this.$$set({ activemenuitem: e }), C();
711
+ }
712
+ }
713
+ ye(Oe, { endpoint: {}, cmsendpoint: {}, env: {}, session: {}, playerid: {}, lang: {}, selecteditem: {}, userroles: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, activemenuitem: {} }, [], [], !0);
714
+ export {
715
+ Oe as P
716
+ };