@everymatrix/player-account-menu-nd 1.59.0 → 1.59.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.
- package/components/GeneralLogout-C645ag3Y.cjs +18 -0
- package/components/{GeneralLogout-DYiom6lN.js → GeneralLogout-lRqS5xnM.js} +574 -552
- package/components/{GeneralLogout-DOA4fn9r.js → GeneralLogout-nPLOHMgC.js} +613 -591
- package/components/{PlayerAccountMenuNd-B8qiXHWj.js → PlayerAccountMenuNd-BzBcsJR_.js} +29 -29
- package/components/{PlayerAccountMenuNd-Bj_BBVlB.js → PlayerAccountMenuNd-C-lM0H4r.js} +27 -27
- package/components/{PlayerAccountMenuNd-Cbx4lG47.cjs → PlayerAccountMenuNd-N2kx0DSl.cjs} +1 -1
- package/es2015/player-account-menu-nd.cjs +1 -1
- package/es2015/player-account-menu-nd.js +1 -1
- package/esnext/player-account-menu-nd.js +1 -1
- package/package.json +3 -2
- package/stencil/index-ae04a8b1-DPYODDdm.cjs +1 -0
- package/stencil/index-ae04a8b1-DRAR7dln.js +532 -0
- package/stencil/index-ae04a8b1-eSktas_K.js +516 -0
- package/stencil/{ui-skeleton-IHMCRYEX.cjs → ui-skeleton-C1buDKbo.cjs} +1 -1
- package/stencil/{ui-skeleton-DFpfaKvi.js → ui-skeleton-C5gPr5Xv.js} +2 -2
- package/stencil/{ui-skeleton-UUT_AJxa.js → ui-skeleton-M7HNQCk1.js} +2 -2
- package/stencil/{ui-skeleton-a642cced-BNXFvvk_.js → ui-skeleton-a642cced-BFJMszWG.js} +1 -1
- package/stencil/{ui-skeleton-a642cced-5nW6b8_l.cjs → ui-skeleton-a642cced-DO34s50a.cjs} +1 -1
- package/stencil/{ui-skeleton-a642cced-DdY2eEM0.js → ui-skeleton-a642cced-p8tGooXk.js} +1 -1
- package/components/GeneralLogout-i6PS_xB2.cjs +0 -18
- package/stencil/index-ae04a8b1-BxaX26xW.js +0 -516
- package/stencil/index-ae04a8b1-D7qYBP-T.js +0 -532
- package/stencil/index-ae04a8b1-Dk7mk6oB.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as de, $ as ge, S as ye, i as pe, f as C,
|
|
2
|
-
import "../stencil/ui-skeleton-
|
|
1
|
+
import { a as de, $ as ge, S as ye, i as pe, f as C, c as fe, s as he, 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-nPLOHMgC.js";
|
|
2
|
+
import "../stencil/ui-skeleton-M7HNQCk1.js";
|
|
3
3
|
function Z(n, e) {
|
|
4
4
|
de(n, e);
|
|
5
5
|
}
|
|
@@ -53,7 +53,7 @@ if (typeof window != "undefined") {
|
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
|
-
customElements.define = n(customElements.define), import("./GeneralLogout-
|
|
56
|
+
customElements.define = n(customElements.define), import("./GeneralLogout-nPLOHMgC.js").then((e) => e.G).then(({ default: e }) => {
|
|
57
57
|
!customElements.get("general-logout") && customElements.define("general-logout", e.element);
|
|
58
58
|
});
|
|
59
59
|
}
|
|
@@ -101,7 +101,7 @@ function Fe(n) {
|
|
|
101
101
|
n[12] ? "PlayerAccountTabletContainer" : ""));
|
|
102
102
|
},
|
|
103
103
|
m(p, I) {
|
|
104
|
-
|
|
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
105
|
for (let f = 0; f < o.length; f += 1)
|
|
106
106
|
o[f] && o[f].m(b, null);
|
|
107
107
|
a(e, w), _ && _.m(e, null);
|
|
@@ -140,7 +140,7 @@ function Fe(n) {
|
|
|
140
140
|
p[12] || _.p(p, I);
|
|
141
141
|
},
|
|
142
142
|
d(p) {
|
|
143
|
-
p &&
|
|
143
|
+
p && L(e), u && u.d(), c && c.d(), ee(o, p), _ && _.d();
|
|
144
144
|
}
|
|
145
145
|
};
|
|
146
146
|
}
|
|
@@ -163,7 +163,7 @@ function Le(n) {
|
|
|
163
163
|
n[12] ? "PlayerAccountTabletContainer" : ""));
|
|
164
164
|
},
|
|
165
165
|
m(c, y) {
|
|
166
|
-
|
|
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
167
|
for (let o = 0; o < u.length; o += 1)
|
|
168
168
|
u[o] && u[o].m(M, null);
|
|
169
169
|
a(e, v), a(e, P);
|
|
@@ -183,7 +183,7 @@ function Le(n) {
|
|
|
183
183
|
}
|
|
184
184
|
},
|
|
185
185
|
d(c) {
|
|
186
|
-
c &&
|
|
186
|
+
c && L(e), b && b.d(), ee(u, c);
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
189
|
}
|
|
@@ -197,7 +197,7 @@ function Ee(n) {
|
|
|
197
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
198
|
},
|
|
199
199
|
m(y, o) {
|
|
200
|
-
|
|
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
201
|
D(
|
|
202
202
|
t,
|
|
203
203
|
"click",
|
|
@@ -218,7 +218,7 @@ function Ee(n) {
|
|
|
218
218
|
y[11]("title") + "") && W(w, b);
|
|
219
219
|
},
|
|
220
220
|
d(y) {
|
|
221
|
-
y &&
|
|
221
|
+
y && L(e), u = !1, _e(c);
|
|
222
222
|
}
|
|
223
223
|
};
|
|
224
224
|
}
|
|
@@ -254,7 +254,7 @@ function Be(n) {
|
|
|
254
254
|
), g(e, "class", "PlayerAccountLogOutArea");
|
|
255
255
|
},
|
|
256
256
|
m(l, i) {
|
|
257
|
-
|
|
257
|
+
F(l, e, i), a(e, t);
|
|
258
258
|
},
|
|
259
259
|
p(l, i) {
|
|
260
260
|
i[0] & /*endpoint*/
|
|
@@ -290,7 +290,7 @@ function Be(n) {
|
|
|
290
290
|
);
|
|
291
291
|
},
|
|
292
292
|
d(l) {
|
|
293
|
-
l &&
|
|
293
|
+
l && L(e);
|
|
294
294
|
}
|
|
295
295
|
};
|
|
296
296
|
}
|
|
@@ -318,7 +318,7 @@ function Y(n) {
|
|
|
318
318
|
n[12] ? "PlayerAccountMenuActiveItemBox" : ""));
|
|
319
319
|
},
|
|
320
320
|
m(c, y) {
|
|
321
|
-
|
|
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
322
|
},
|
|
323
323
|
p(c, y) {
|
|
324
324
|
n = c, y[0] & /*menuItems*/
|
|
@@ -332,7 +332,7 @@ function Y(n) {
|
|
|
332
332
|
n[12] ? "PlayerAccountMenuActiveItemBox" : "")) && g(e, "class", P);
|
|
333
333
|
},
|
|
334
334
|
d(c) {
|
|
335
|
-
c &&
|
|
335
|
+
c && L(e), b = !1, w();
|
|
336
336
|
}
|
|
337
337
|
};
|
|
338
338
|
}
|
|
@@ -368,7 +368,7 @@ function Te(n) {
|
|
|
368
368
|
), g(e, "class", "PlayerAccountLogOutArea");
|
|
369
369
|
},
|
|
370
370
|
m(l, i) {
|
|
371
|
-
|
|
371
|
+
F(l, e, i), a(e, t);
|
|
372
372
|
},
|
|
373
373
|
p(l, i) {
|
|
374
374
|
i[0] & /*endpoint*/
|
|
@@ -404,7 +404,7 @@ function Te(n) {
|
|
|
404
404
|
);
|
|
405
405
|
},
|
|
406
406
|
d(l) {
|
|
407
|
-
l &&
|
|
407
|
+
l && L(e);
|
|
408
408
|
}
|
|
409
409
|
};
|
|
410
410
|
}
|
|
@@ -415,10 +415,10 @@ function ze(n) {
|
|
|
415
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
416
|
},
|
|
417
417
|
m(t, l) {
|
|
418
|
-
|
|
418
|
+
F(t, e, l);
|
|
419
419
|
},
|
|
420
420
|
d(t) {
|
|
421
|
-
t &&
|
|
421
|
+
t && L(e);
|
|
422
422
|
}
|
|
423
423
|
};
|
|
424
424
|
}
|
|
@@ -429,10 +429,10 @@ function He(n) {
|
|
|
429
429
|
e = h("ui-skeleton"), m(e, "structure", "circle"), m(e, "size", "20px");
|
|
430
430
|
},
|
|
431
431
|
m(t, l) {
|
|
432
|
-
|
|
432
|
+
F(t, e, l);
|
|
433
433
|
},
|
|
434
434
|
d(t) {
|
|
435
|
-
t &&
|
|
435
|
+
t && L(e);
|
|
436
436
|
}
|
|
437
437
|
};
|
|
438
438
|
}
|
|
@@ -450,11 +450,11 @@ function $(n) {
|
|
|
450
450
|
(n[12] ? "PlayerAccountItemWrapMobile" : ""));
|
|
451
451
|
},
|
|
452
452
|
m(d, A) {
|
|
453
|
-
|
|
453
|
+
F(d, e, A), s && s.m(e, null), a(e, t), a(e, l), a(e, i);
|
|
454
454
|
},
|
|
455
455
|
p: O,
|
|
456
456
|
d(d) {
|
|
457
|
-
d &&
|
|
457
|
+
d && L(e), s && s.d();
|
|
458
458
|
}
|
|
459
459
|
};
|
|
460
460
|
}
|
|
@@ -472,7 +472,7 @@ function We(n) {
|
|
|
472
472
|
e = h("div"), i.c();
|
|
473
473
|
},
|
|
474
474
|
m(s, d) {
|
|
475
|
-
|
|
475
|
+
F(s, e, d), i.m(e, null), n[27](e);
|
|
476
476
|
},
|
|
477
477
|
p(s, d) {
|
|
478
478
|
l === (l = t(s)) && i ? i.p(s, d) : (i.d(1), i = l(s), i && (i.c(), i.m(e, null)));
|
|
@@ -480,13 +480,13 @@ function We(n) {
|
|
|
480
480
|
i: O,
|
|
481
481
|
o: O,
|
|
482
482
|
d(s) {
|
|
483
|
-
s &&
|
|
483
|
+
s && L(e), i.d(), n[27](null);
|
|
484
484
|
}
|
|
485
485
|
};
|
|
486
486
|
}
|
|
487
487
|
function Se(n, e, t) {
|
|
488
488
|
let l;
|
|
489
|
-
be(n,
|
|
489
|
+
be(n, ke, (r) => t(11, l = r));
|
|
490
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, _ = !1, p = !1, I = !0, f, B = [], S, U = window.navigator.userAgent, te = V(U) !== "PC", j = "", R = "";
|
|
491
491
|
const ne = window.matchMedia("(min-width: 768px)"), le = () => {
|
|
492
492
|
fetch(y).then((x) => x.json()).then((x) => {
|
|
@@ -557,7 +557,7 @@ function Se(n, e, t) {
|
|
|
557
557
|
}));
|
|
558
558
|
const ue = (r) => q(r);
|
|
559
559
|
function me(r) {
|
|
560
|
-
|
|
560
|
+
ve[r ? "unshift" : "push"](() => {
|
|
561
561
|
f = r, t(5, f);
|
|
562
562
|
});
|
|
563
563
|
}
|
|
@@ -571,8 +571,8 @@ function Se(n, e, t) {
|
|
|
571
571
|
720896 && s && v && d && ie(), n.$$.dirty[0] & /*activemenuitem*/
|
|
572
572
|
8388608 && o && G(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
573
573
|
36 && w && f && xe(f, w), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
574
|
-
40 && u && f &&
|
|
575
|
-
48 && c && f &&
|
|
574
|
+
40 && u && f && Pe(f, u), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
575
|
+
48 && c && f && we(f, `${c}.Style`), n.$$.dirty[0] & /*translationurl*/
|
|
576
576
|
4194304 && y && le();
|
|
577
577
|
}, [
|
|
578
578
|
A,
|
|
@@ -612,7 +612,7 @@ class Oe extends ye {
|
|
|
612
612
|
e,
|
|
613
613
|
Se,
|
|
614
614
|
We,
|
|
615
|
-
|
|
615
|
+
he,
|
|
616
616
|
{
|
|
617
617
|
endpoint: 1,
|
|
618
618
|
cmsendpoint: 16,
|
|
@@ -711,7 +711,7 @@ class Oe extends ye {
|
|
|
711
711
|
this.$$set({ activemenuitem: e }), C();
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
|
-
|
|
714
|
+
fe(Oe, { endpoint: {}, cmsendpoint: {}, env: {}, session: {}, playerid: {}, lang: {}, selecteditem: {}, userroles: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, activemenuitem: {} }, [], [], !0);
|
|
715
715
|
export {
|
|
716
716
|
Oe as default
|
|
717
717
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
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,
|
|
2
|
-
import "../stencil/ui-skeleton-
|
|
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
3
|
function Z(n, e) {
|
|
4
4
|
de(n, e);
|
|
5
5
|
}
|
|
@@ -53,7 +53,7 @@ if (typeof window < "u") {
|
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
|
-
customElements.define = n(customElements.define), import("./GeneralLogout-
|
|
56
|
+
customElements.define = n(customElements.define), import("./GeneralLogout-lRqS5xnM.js").then((e) => e.G).then(({ default: e }) => {
|
|
57
57
|
!customElements.get("general-logout") && customElements.define("general-logout", e.element);
|
|
58
58
|
});
|
|
59
59
|
}
|
|
@@ -101,7 +101,7 @@ function Fe(n) {
|
|
|
101
101
|
n[12] ? "PlayerAccountTabletContainer" : ""));
|
|
102
102
|
},
|
|
103
103
|
m(p, I) {
|
|
104
|
-
|
|
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
105
|
for (let f = 0; f < o.length; f += 1)
|
|
106
106
|
o[f] && o[f].m(b, null);
|
|
107
107
|
a(e, w), x && x.m(e, null);
|
|
@@ -140,7 +140,7 @@ function Fe(n) {
|
|
|
140
140
|
p[12] || x.p(p, I);
|
|
141
141
|
},
|
|
142
142
|
d(p) {
|
|
143
|
-
p &&
|
|
143
|
+
p && L(e), u && u.d(), c && c.d(), ee(o, p), x && x.d();
|
|
144
144
|
}
|
|
145
145
|
};
|
|
146
146
|
}
|
|
@@ -163,7 +163,7 @@ function Le(n) {
|
|
|
163
163
|
n[12] ? "PlayerAccountTabletContainer" : ""));
|
|
164
164
|
},
|
|
165
165
|
m(c, y) {
|
|
166
|
-
|
|
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
167
|
for (let o = 0; o < u.length; o += 1)
|
|
168
168
|
u[o] && u[o].m(M, null);
|
|
169
169
|
a(e, v), a(e, P);
|
|
@@ -183,7 +183,7 @@ function Le(n) {
|
|
|
183
183
|
}
|
|
184
184
|
},
|
|
185
185
|
d(c) {
|
|
186
|
-
c &&
|
|
186
|
+
c && L(e), b && b.d(), ee(u, c);
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
189
|
}
|
|
@@ -197,7 +197,7 @@ function Ee(n) {
|
|
|
197
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
198
|
},
|
|
199
199
|
m(y, o) {
|
|
200
|
-
|
|
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
201
|
D(
|
|
202
202
|
t,
|
|
203
203
|
"click",
|
|
@@ -218,7 +218,7 @@ function Ee(n) {
|
|
|
218
218
|
y[11]("title") + "") && W(w, b);
|
|
219
219
|
},
|
|
220
220
|
d(y) {
|
|
221
|
-
y &&
|
|
221
|
+
y && L(e), u = !1, _e(c);
|
|
222
222
|
}
|
|
223
223
|
};
|
|
224
224
|
}
|
|
@@ -254,7 +254,7 @@ function Be(n) {
|
|
|
254
254
|
), g(e, "class", "PlayerAccountLogOutArea");
|
|
255
255
|
},
|
|
256
256
|
m(l, i) {
|
|
257
|
-
|
|
257
|
+
F(l, e, i), a(e, t);
|
|
258
258
|
},
|
|
259
259
|
p(l, i) {
|
|
260
260
|
i[0] & /*endpoint*/
|
|
@@ -290,7 +290,7 @@ function Be(n) {
|
|
|
290
290
|
);
|
|
291
291
|
},
|
|
292
292
|
d(l) {
|
|
293
|
-
l &&
|
|
293
|
+
l && L(e);
|
|
294
294
|
}
|
|
295
295
|
};
|
|
296
296
|
}
|
|
@@ -318,7 +318,7 @@ function Y(n) {
|
|
|
318
318
|
n[12] ? "PlayerAccountMenuActiveItemBox" : ""));
|
|
319
319
|
},
|
|
320
320
|
m(c, y) {
|
|
321
|
-
|
|
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
322
|
},
|
|
323
323
|
p(c, y) {
|
|
324
324
|
n = c, y[0] & /*menuItems*/
|
|
@@ -332,7 +332,7 @@ function Y(n) {
|
|
|
332
332
|
n[12] ? "PlayerAccountMenuActiveItemBox" : "")) && g(e, "class", P);
|
|
333
333
|
},
|
|
334
334
|
d(c) {
|
|
335
|
-
c &&
|
|
335
|
+
c && L(e), b = !1, w();
|
|
336
336
|
}
|
|
337
337
|
};
|
|
338
338
|
}
|
|
@@ -368,7 +368,7 @@ function Te(n) {
|
|
|
368
368
|
), g(e, "class", "PlayerAccountLogOutArea");
|
|
369
369
|
},
|
|
370
370
|
m(l, i) {
|
|
371
|
-
|
|
371
|
+
F(l, e, i), a(e, t);
|
|
372
372
|
},
|
|
373
373
|
p(l, i) {
|
|
374
374
|
i[0] & /*endpoint*/
|
|
@@ -404,7 +404,7 @@ function Te(n) {
|
|
|
404
404
|
);
|
|
405
405
|
},
|
|
406
406
|
d(l) {
|
|
407
|
-
l &&
|
|
407
|
+
l && L(e);
|
|
408
408
|
}
|
|
409
409
|
};
|
|
410
410
|
}
|
|
@@ -415,10 +415,10 @@ function ze(n) {
|
|
|
415
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
416
|
},
|
|
417
417
|
m(t, l) {
|
|
418
|
-
|
|
418
|
+
F(t, e, l);
|
|
419
419
|
},
|
|
420
420
|
d(t) {
|
|
421
|
-
t &&
|
|
421
|
+
t && L(e);
|
|
422
422
|
}
|
|
423
423
|
};
|
|
424
424
|
}
|
|
@@ -429,10 +429,10 @@ function He(n) {
|
|
|
429
429
|
e = h("ui-skeleton"), m(e, "structure", "circle"), m(e, "size", "20px");
|
|
430
430
|
},
|
|
431
431
|
m(t, l) {
|
|
432
|
-
|
|
432
|
+
F(t, e, l);
|
|
433
433
|
},
|
|
434
434
|
d(t) {
|
|
435
|
-
t &&
|
|
435
|
+
t && L(e);
|
|
436
436
|
}
|
|
437
437
|
};
|
|
438
438
|
}
|
|
@@ -450,11 +450,11 @@ function $(n) {
|
|
|
450
450
|
(n[12] ? "PlayerAccountItemWrapMobile" : ""));
|
|
451
451
|
},
|
|
452
452
|
m(d, A) {
|
|
453
|
-
|
|
453
|
+
F(d, e, A), s && s.m(e, null), a(e, t), a(e, l), a(e, i);
|
|
454
454
|
},
|
|
455
455
|
p: O,
|
|
456
456
|
d(d) {
|
|
457
|
-
d &&
|
|
457
|
+
d && L(e), s && s.d();
|
|
458
458
|
}
|
|
459
459
|
};
|
|
460
460
|
}
|
|
@@ -472,7 +472,7 @@ function We(n) {
|
|
|
472
472
|
e = h("div"), i.c();
|
|
473
473
|
},
|
|
474
474
|
m(s, d) {
|
|
475
|
-
|
|
475
|
+
F(s, e, d), i.m(e, null), n[27](e);
|
|
476
476
|
},
|
|
477
477
|
p(s, d) {
|
|
478
478
|
l === (l = t(s)) && i ? i.p(s, d) : (i.d(1), i = l(s), i && (i.c(), i.m(e, null)));
|
|
@@ -480,13 +480,13 @@ function We(n) {
|
|
|
480
480
|
i: O,
|
|
481
481
|
o: O,
|
|
482
482
|
d(s) {
|
|
483
|
-
s &&
|
|
483
|
+
s && L(e), i.d(), n[27](null);
|
|
484
484
|
}
|
|
485
485
|
};
|
|
486
486
|
}
|
|
487
487
|
function Se(n, e, t) {
|
|
488
488
|
let l;
|
|
489
|
-
be(n,
|
|
489
|
+
be(n, ke, (r) => t(11, l = r));
|
|
490
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
491
|
const ne = window.matchMedia("(min-width: 768px)"), le = () => {
|
|
492
492
|
fetch(y).then((_) => _.json()).then((_) => {
|
|
@@ -556,7 +556,7 @@ function Se(n, e, t) {
|
|
|
556
556
|
}));
|
|
557
557
|
const ue = (r) => q(r);
|
|
558
558
|
function me(r) {
|
|
559
|
-
|
|
559
|
+
ve[r ? "unshift" : "push"](() => {
|
|
560
560
|
f = r, t(5, f);
|
|
561
561
|
});
|
|
562
562
|
}
|
|
@@ -570,8 +570,8 @@ function Se(n, e, t) {
|
|
|
570
570
|
720896 && s && v && d && ie(), n.$$.dirty[0] & /*activemenuitem*/
|
|
571
571
|
8388608 && o && G(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
572
572
|
36 && w && f && xe(f, w), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
573
|
-
40 && u && f &&
|
|
574
|
-
48 && c && f &&
|
|
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
575
|
4194304 && y && le();
|
|
576
576
|
}, [
|
|
577
577
|
A,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-i6PS_xB2.cjs");require("../stencil/ui-skeleton-IHMCRYEX.cjs");function B(a,t){e.addMessages(a,t)}function K(a){e.$locale.set(a)}const H={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 a=function(t){return function(...n){try{return t.apply(this,n)}catch(l){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"))return!1;throw l}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./GeneralLogout-i6PS_xB2.cjs")).then(t=>t.GeneralLogout_ce).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function Y(a){e.append_styles(a,"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}}')}function z(a,t,n){const l=a.slice();return l[41]=t[n],l}function W(a,t,n){const l=a.slice();return l[38]=t[n],l}function $(a){let t,n,l,o,s,m,y,h,A,_,f,b,u=a[12]&&te(a),c=a[12]&&ne(a),d=e.ensure_array_like(a[7]),i=[];for(let p=0;p<d.length;p+=1)i[p]=S(z(a,d,p));let P=!a[12]&&ae(a);return{c(){t=e.element("div"),n=e.element("div"),u&&u.c(),l=e.space(),o=e.element("p"),s=e.text(a[9]),m=e.space(),y=e.element("p"),h=e.text(a[10]),A=e.space(),c&&c.c(),_=e.space(),f=e.element("div");for(let p=0;p<i.length;p+=1)i[p].c();b=e.space(),P&&P.c(),e.attr(o,"class","PlayerAccountMenuUser"),e.attr(y,"class","PlayerAccountMenuEmail"),e.attr(n,"class","PlayerAccountMenuHeader "+(a[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(f,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(a[12]?"PlayerAccountMobileContainer":"")+" "+(a[13].matches&&a[12]?"PlayerAccountTabletContainer":""))},m(p,w){e.insert(p,t,w),e.append(t,n),u&&u.m(n,null),e.append(n,l),e.append(n,o),e.append(o,s),e.append(n,m),e.append(n,y),e.append(y,h),e.append(n,A),c&&c.m(n,null),e.append(t,_),e.append(t,f);for(let g=0;g<i.length;g+=1)i[g]&&i[g].m(f,null);e.append(t,b),P&&P.m(t,null)},p(p,w){if(p[12]&&u.p(p,w),w[0]&512&&e.set_data(s,p[9]),w[0]&1024&&e.set_data(h,p[10]),p[12]&&c.p(p,w),w[0]&20864){d=e.ensure_array_like(p[7]);let g;for(g=0;g<d.length;g+=1){const x=z(p,d,g);i[g]?i[g].p(x,w):(i[g]=S(x),i[g].c(),i[g].m(f,null))}for(;g<i.length;g+=1)i[g].d(1);i.length=d.length}p[12]||P.p(p,w)},d(p){p&&e.detach(t),u&&u.d(),c&&c.d(),e.destroy_each(i,p),P&&P.d()}}}function ee(a){let t,n,l,o,s,m,y,h,A,_,f=a[12]&&le(),b=e.ensure_array_like(Array(18)),u=[];for(let c=0;c<b.length;c+=1)u[c]=O(W(a,b,c));return{c(){t=e.element("div"),n=e.element("div"),f&&f.c(),l=e.space(),o=e.element("ui-skeleton"),s=e.space(),m=e.element("ui-skeleton"),y=e.space(),h=e.element("div");for(let c=0;c<u.length;c+=1)u[c].c();A=e.space(),_=e.element("div"),_.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>',e.set_custom_element_data(o,"structure","title"),e.set_custom_element_data(o,"width","100px"),e.set_custom_element_data(o,"height","20px"),e.set_custom_element_data(o,"margin-top","20px"),e.set_custom_element_data(m,"structure","text"),e.set_custom_element_data(m,"width","200px"),e.set_custom_element_data(m,"height","20px"),e.attr(n,"class","PlayerAccountMenuHeader "+(a[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(h,"class","PlayerAccountMenuList"),e.attr(_,"class","skeletonLogOut"),e.attr(t,"class","PlayerAccountMenuContainer "+(a[12]?"PlayerAccountMobileContainer":"")+" "+(a[13].matches&&a[12]?"PlayerAccountTabletContainer":""))},m(c,d){e.insert(c,t,d),e.append(t,n),f&&f.m(n,null),e.append(n,l),e.append(n,o),e.append(n,s),e.append(n,m),e.append(t,y),e.append(t,h);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(h,null);e.append(t,A),e.append(t,_)},p(c,d){if(d[0]&4096){b=e.ensure_array_like(Array(18));let i;for(i=0;i<b.length;i+=1){const P=W(c,b,i);u[i]?u[i].p(P,d):(u[i]=O(P),u[i].c(),u[i].m(h,null))}for(;i<u.length;i+=1)u[i].d(1);u.length=b.length}},d(c){c&&e.detach(t),f&&f.d(),e.destroy_each(u,c)}}}function te(a){let t,n,l,o,s,m,y,h,A,_,f=a[11]("title")+"",b,u,c;return{c(){t=e.element("div"),n=e.svg_element("svg"),l=e.svg_element("defs"),o=e.svg_element("style"),s=e.text(".aaa{fill:var(--emw--color-white, #FFFFFF);}"),m=e.svg_element("g"),y=e.svg_element("g"),h=e.svg_element("path"),A=e.space(),_=e.element("h3"),b=e.text(f),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(y,"transform","translate(20 158)"),e.attr(m,"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(_,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(d,i){e.insert(d,t,i),e.append(t,n),e.append(n,l),e.append(l,o),e.append(o,s),e.append(n,m),e.append(m,y),e.append(y,h),e.append(t,A),e.append(t,_),e.append(_,b),u||(c=[e.listen(n,"click",a[15]),e.listen(_,"click",a[15])],u=!0)},p(d,i){i[0]&2048&&f!==(f=d[11]("title")+"")&&e.set_data(b,f)},d(d){d&&e.detach(t),u=!1,e.run_all(c)}}}function ne(a){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",a[1]),e.set_custom_element_data(n,"session",a[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",a[2]),e.set_custom_element_data(n,"clientstylingurl",a[3]),e.set_custom_element_data(n,"mbsource",a[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(l,o){e.insert(l,t,o),e.append(t,n)},p(l,o){o[0]&2&&e.set_custom_element_data(n,"endpoint",l[1]),o[0]&1&&e.set_custom_element_data(n,"session",l[0]),o[0]&4&&e.set_custom_element_data(n,"clientstyling",l[2]),o[0]&8&&e.set_custom_element_data(n,"clientstylingurl",l[3]),o[0]&16&&e.set_custom_element_data(n,"mbsource",l[4])},d(l){l&&e.detach(t)}}}function S(a){let t,n,l,o,s,m,y=a[41].label+"",h,A,_,f,b;function u(){return a[26](a[41])}return{c(){t=e.element("div"),n=e.element("p"),l=e.element("img"),s=e.space(),m=e.element("span"),h=e.text(y),A=e.space(),e.attr(l,"class","PlayerAccountMenuItemIcon "+(a[12]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(l.src,o=a[41].img)||e.attr(l,"src",o),e.attr(m,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",_="PlayerAccountMenuItemBox "+(a[8]===a[41].id&&!a[12]?"PlayerAccountMenuActiveItemBox":""))},m(c,d){e.insert(c,t,d),e.append(t,n),e.append(n,l),e.append(n,s),e.append(n,m),e.append(m,h),e.append(t,A),f||(b=e.listen(t,"click",u),f=!0)},p(c,d){a=c,d[0]&128&&!e.src_url_equal(l.src,o=a[41].img)&&e.attr(l,"src",o),d[0]&128&&y!==(y=a[41].label+"")&&e.set_data(h,y),d[0]&384&&_!==(_="PlayerAccountMenuItemBox "+(a[8]===a[41].id&&!a[12]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",_)},d(c){c&&e.detach(t),f=!1,b()}}}function ae(a){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",a[1]),e.set_custom_element_data(n,"session",a[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",a[2]),e.set_custom_element_data(n,"clientstylingurl",a[3]),e.set_custom_element_data(n,"mbsource",a[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(l,o){e.insert(l,t,o),e.append(t,n)},p(l,o){o[0]&2&&e.set_custom_element_data(n,"endpoint",l[1]),o[0]&1&&e.set_custom_element_data(n,"session",l[0]),o[0]&4&&e.set_custom_element_data(n,"clientstyling",l[2]),o[0]&8&&e.set_custom_element_data(n,"clientstylingurl",l[3]),o[0]&16&&e.set_custom_element_data(n,"mbsource",l[4])},d(l){l&&e.detach(t)}}}function le(a){let t;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="title" width="30px" height="40px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="40px"></ui-skeleton>',e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(n,l){e.insert(n,t,l)},d(n){n&&e.detach(t)}}}function re(a){let t;return{c(){t=e.element("ui-skeleton"),e.set_custom_element_data(t,"structure","circle"),e.set_custom_element_data(t,"size","20px")},m(n,l){e.insert(n,t,l)},d(n){n&&e.detach(t)}}}function O(a){let t,n,l,o,s=!a[12]&&re();return{c(){t=e.element("div"),s&&s.c(),n=e.space(),l=e.element("ui-skeleton"),o=e.space(),e.set_custom_element_data(l,"structure","rectangle"),e.set_custom_element_data(l,"width","100%"),e.set_custom_element_data(l,"height",a[12]?"60px":"20px"),e.attr(t,"class","PlayerAccountItemWrap "+(a[12]?"PlayerAccountItemWrapMobile":""))},m(m,y){e.insert(m,t,y),s&&s.m(t,null),e.append(t,n),e.append(t,l),e.append(t,o)},p:e.noop,d(m){m&&e.detach(t),s&&s.d()}}}function oe(a){let t;function n(s,m){return s[6]?ee:$}let l=n(a),o=l(a);return{c(){t=e.element("div"),o.c()},m(s,m){e.insert(s,t,m),o.m(t,null),a[27](t)},p(s,m){l===(l=n(s))&&o?o.p(s,m):(o.d(1),o=l(s),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(s){s&&e.detach(t),o.d(),a[27](null)}}}function ie(a,t,n){let l;e.component_subscribe(a,e.$format,r=>n(11,l=r));let{endpoint:o=""}=t,{cmsendpoint:s=""}=t,{env:m=""}=t,{session:y=""}=t,{playerid:h=""}=t,{lang:A="en"}=t,{selecteditem:_=""}=t,{userroles:f=""}=t,{clientstyling:b=""}=t,{clientstylingurl:u=""}=t,{mbsource:c}=t,{translationurl:d=""}=t,{activemenuitem:i=""}=t,P=!1,p=!1,w=!0,g,x=[],k,C=window.navigator.userAgent,U=e.getDevice(C)!=="PC",I="",F="";const j=window.matchMedia("(min-width: 768px)"),q=()=>{fetch(d).then(M=>M.json()).then(M=>{Object.keys(M).forEach(v=>{B(v,M[v])})}).catch(M=>{console.error(M)})};Object.keys(H).forEach(r=>{B(r,H[r])});const L=r=>{if(r.data)switch(r.data.type){case"AccountMenuDetails":availableMenuItemsArray=r.data.accountMenuInfo;break;case"UserSessionID":n(0,y=r.data.session);break}},R=()=>{let r=e.getDevice(C);if(r)return r==="PC"?"dk":"mtWeb"},G=()=>{const r=new URL(`${s}/${A}/profile-menu?env=${m}`);r.searchParams.append("device",R()),fetch(r.href).then(M=>M.json()).then(M=>{n(7,x=M),T()}).catch(M=>{console.error("Error getting menu items",M)}).finally(()=>{n(24,P=!0)})},N=()=>{let r=new URL(`${o}/v1/player/${h}/profile`);r.searchParams.append("userRoles",f);let M={method:"GET",headers:{"X-SessionID":y}};fetch(r.href,M).then(v=>v.json()).then(v=>{n(9,I=v.username),n(10,F=v.email)},v=>{console.error(v)}).finally(()=>{n(25,p=!0)})},E=r=>{window.postMessage({type:"ChangeAccountPage",page:r},window.location.href),n(8,k=r.id)},T=()=>{var r;n(8,k=(r=x.find(M=>M.path.includes(i)))==null?void 0:r.id)},V=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},X=()=>{K(A)},Z=()=>{N()};e.onMount(()=>(window.addEventListener("message",L,!1),()=>{window.removeEventListener("message",L)}));const Q=r=>E(r);function J(r){e.binding_callbacks[r?"unshift":"push"](()=>{g=r,n(5,g)})}return a.$$set=r=>{"endpoint"in r&&n(1,o=r.endpoint),"cmsendpoint"in r&&n(16,s=r.cmsendpoint),"env"in r&&n(17,m=r.env),"session"in r&&n(0,y=r.session),"playerid"in r&&n(18,h=r.playerid),"lang"in r&&n(19,A=r.lang),"selecteditem"in r&&n(20,_=r.selecteditem),"userroles"in r&&n(21,f=r.userroles),"clientstyling"in r&&n(2,b=r.clientstyling),"clientstylingurl"in r&&n(3,u=r.clientstylingurl),"mbsource"in r&&n(4,c=r.mbsource),"translationurl"in r&&n(22,d=r.translationurl),"activemenuitem"in r&&n(23,i=r.activemenuitem)},a.$$.update=()=>{a.$$.dirty[0]&50331648&&n(6,w=!P||!p),a.$$.dirty[0]&524288&&A&&X(),a.$$.dirty[0]&786435&&o&&y&&h&&A&&Z(),a.$$.dirty[0]&720896&&s&&A&&m&&G(),a.$$.dirty[0]&8388608&&i&&T(),a.$$.dirty[0]&36&&b&&g&&e.setClientStyling(g,b),a.$$.dirty[0]&40&&u&&g&&e.setClientStylingURL(g,u),a.$$.dirty[0]&48&&c&&g&&e.setStreamStyling(g,`${c}.Style`),a.$$.dirty[0]&4194304&&d&&q()},[y,o,b,u,c,g,w,x,k,I,F,l,U,j,E,V,s,m,h,A,_,f,d,i,P,p,Q,J]}class D extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ie,oe,e.safe_not_equal,{endpoint:1,cmsendpoint:16,env:17,session:0,playerid:18,lang:19,selecteditem:20,userroles:21,clientstyling:2,clientstylingurl:3,mbsource:4,translationurl:22,activemenuitem:23},Y,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get cmsendpoint(){return this.$$.ctx[16]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[17]}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[18]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[19]}set lang(t){this.$$set({lang:t}),e.flush()}get selecteditem(){return this.$$.ctx[20]}set selecteditem(t){this.$$set({selecteditem:t}),e.flush()}get userroles(){return this.$$.ctx[21]}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 mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get translationurl(){return this.$$.ctx[22]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get activemenuitem(){return this.$$.ctx[23]}set activemenuitem(t){this.$$set({activemenuitem:t}),e.flush()}}e.create_custom_element(D,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},selecteditem:{},userroles:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},activemenuitem:{}},[],[],!0);exports.default=D;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-C645ag3Y.cjs");require("../stencil/ui-skeleton-C1buDKbo.cjs");function B(a,t){e.addMessages(a,t)}function K(a){e.$locale.set(a)}const H={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 a=function(t){return function(...n){try{return t.apply(this,n)}catch(l){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"))return!1;throw l}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./GeneralLogout-C645ag3Y.cjs")).then(t=>t.GeneralLogout_ce).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function Y(a){e.append_styles(a,"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}}')}function z(a,t,n){const l=a.slice();return l[41]=t[n],l}function W(a,t,n){const l=a.slice();return l[38]=t[n],l}function $(a){let t,n,l,o,s,m,y,h,A,_,f,b,u=a[12]&&te(a),c=a[12]&&ne(a),d=e.ensure_array_like(a[7]),i=[];for(let p=0;p<d.length;p+=1)i[p]=S(z(a,d,p));let P=!a[12]&&ae(a);return{c(){t=e.element("div"),n=e.element("div"),u&&u.c(),l=e.space(),o=e.element("p"),s=e.text(a[9]),m=e.space(),y=e.element("p"),h=e.text(a[10]),A=e.space(),c&&c.c(),_=e.space(),f=e.element("div");for(let p=0;p<i.length;p+=1)i[p].c();b=e.space(),P&&P.c(),e.attr(o,"class","PlayerAccountMenuUser"),e.attr(y,"class","PlayerAccountMenuEmail"),e.attr(n,"class","PlayerAccountMenuHeader "+(a[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(f,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(a[12]?"PlayerAccountMobileContainer":"")+" "+(a[13].matches&&a[12]?"PlayerAccountTabletContainer":""))},m(p,w){e.insert(p,t,w),e.append(t,n),u&&u.m(n,null),e.append(n,l),e.append(n,o),e.append(o,s),e.append(n,m),e.append(n,y),e.append(y,h),e.append(n,A),c&&c.m(n,null),e.append(t,_),e.append(t,f);for(let g=0;g<i.length;g+=1)i[g]&&i[g].m(f,null);e.append(t,b),P&&P.m(t,null)},p(p,w){if(p[12]&&u.p(p,w),w[0]&512&&e.set_data(s,p[9]),w[0]&1024&&e.set_data(h,p[10]),p[12]&&c.p(p,w),w[0]&20864){d=e.ensure_array_like(p[7]);let g;for(g=0;g<d.length;g+=1){const x=z(p,d,g);i[g]?i[g].p(x,w):(i[g]=S(x),i[g].c(),i[g].m(f,null))}for(;g<i.length;g+=1)i[g].d(1);i.length=d.length}p[12]||P.p(p,w)},d(p){p&&e.detach(t),u&&u.d(),c&&c.d(),e.destroy_each(i,p),P&&P.d()}}}function ee(a){let t,n,l,o,s,m,y,h,A,_,f=a[12]&&le(),b=e.ensure_array_like(Array(18)),u=[];for(let c=0;c<b.length;c+=1)u[c]=O(W(a,b,c));return{c(){t=e.element("div"),n=e.element("div"),f&&f.c(),l=e.space(),o=e.element("ui-skeleton"),s=e.space(),m=e.element("ui-skeleton"),y=e.space(),h=e.element("div");for(let c=0;c<u.length;c+=1)u[c].c();A=e.space(),_=e.element("div"),_.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>',e.set_custom_element_data(o,"structure","title"),e.set_custom_element_data(o,"width","100px"),e.set_custom_element_data(o,"height","20px"),e.set_custom_element_data(o,"margin-top","20px"),e.set_custom_element_data(m,"structure","text"),e.set_custom_element_data(m,"width","200px"),e.set_custom_element_data(m,"height","20px"),e.attr(n,"class","PlayerAccountMenuHeader "+(a[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(h,"class","PlayerAccountMenuList"),e.attr(_,"class","skeletonLogOut"),e.attr(t,"class","PlayerAccountMenuContainer "+(a[12]?"PlayerAccountMobileContainer":"")+" "+(a[13].matches&&a[12]?"PlayerAccountTabletContainer":""))},m(c,d){e.insert(c,t,d),e.append(t,n),f&&f.m(n,null),e.append(n,l),e.append(n,o),e.append(n,s),e.append(n,m),e.append(t,y),e.append(t,h);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(h,null);e.append(t,A),e.append(t,_)},p(c,d){if(d[0]&4096){b=e.ensure_array_like(Array(18));let i;for(i=0;i<b.length;i+=1){const P=W(c,b,i);u[i]?u[i].p(P,d):(u[i]=O(P),u[i].c(),u[i].m(h,null))}for(;i<u.length;i+=1)u[i].d(1);u.length=b.length}},d(c){c&&e.detach(t),f&&f.d(),e.destroy_each(u,c)}}}function te(a){let t,n,l,o,s,m,y,h,A,_,f=a[11]("title")+"",b,u,c;return{c(){t=e.element("div"),n=e.svg_element("svg"),l=e.svg_element("defs"),o=e.svg_element("style"),s=e.text(".aaa{fill:var(--emw--color-white, #FFFFFF);}"),m=e.svg_element("g"),y=e.svg_element("g"),h=e.svg_element("path"),A=e.space(),_=e.element("h3"),b=e.text(f),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(y,"transform","translate(20 158)"),e.attr(m,"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(_,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(d,i){e.insert(d,t,i),e.append(t,n),e.append(n,l),e.append(l,o),e.append(o,s),e.append(n,m),e.append(m,y),e.append(y,h),e.append(t,A),e.append(t,_),e.append(_,b),u||(c=[e.listen(n,"click",a[15]),e.listen(_,"click",a[15])],u=!0)},p(d,i){i[0]&2048&&f!==(f=d[11]("title")+"")&&e.set_data(b,f)},d(d){d&&e.detach(t),u=!1,e.run_all(c)}}}function ne(a){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",a[1]),e.set_custom_element_data(n,"session",a[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",a[2]),e.set_custom_element_data(n,"clientstylingurl",a[3]),e.set_custom_element_data(n,"mbsource",a[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(l,o){e.insert(l,t,o),e.append(t,n)},p(l,o){o[0]&2&&e.set_custom_element_data(n,"endpoint",l[1]),o[0]&1&&e.set_custom_element_data(n,"session",l[0]),o[0]&4&&e.set_custom_element_data(n,"clientstyling",l[2]),o[0]&8&&e.set_custom_element_data(n,"clientstylingurl",l[3]),o[0]&16&&e.set_custom_element_data(n,"mbsource",l[4])},d(l){l&&e.detach(t)}}}function S(a){let t,n,l,o,s,m,y=a[41].label+"",h,A,_,f,b;function u(){return a[26](a[41])}return{c(){t=e.element("div"),n=e.element("p"),l=e.element("img"),s=e.space(),m=e.element("span"),h=e.text(y),A=e.space(),e.attr(l,"class","PlayerAccountMenuItemIcon "+(a[12]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(l.src,o=a[41].img)||e.attr(l,"src",o),e.attr(m,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",_="PlayerAccountMenuItemBox "+(a[8]===a[41].id&&!a[12]?"PlayerAccountMenuActiveItemBox":""))},m(c,d){e.insert(c,t,d),e.append(t,n),e.append(n,l),e.append(n,s),e.append(n,m),e.append(m,h),e.append(t,A),f||(b=e.listen(t,"click",u),f=!0)},p(c,d){a=c,d[0]&128&&!e.src_url_equal(l.src,o=a[41].img)&&e.attr(l,"src",o),d[0]&128&&y!==(y=a[41].label+"")&&e.set_data(h,y),d[0]&384&&_!==(_="PlayerAccountMenuItemBox "+(a[8]===a[41].id&&!a[12]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",_)},d(c){c&&e.detach(t),f=!1,b()}}}function ae(a){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",a[1]),e.set_custom_element_data(n,"session",a[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",a[2]),e.set_custom_element_data(n,"clientstylingurl",a[3]),e.set_custom_element_data(n,"mbsource",a[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(l,o){e.insert(l,t,o),e.append(t,n)},p(l,o){o[0]&2&&e.set_custom_element_data(n,"endpoint",l[1]),o[0]&1&&e.set_custom_element_data(n,"session",l[0]),o[0]&4&&e.set_custom_element_data(n,"clientstyling",l[2]),o[0]&8&&e.set_custom_element_data(n,"clientstylingurl",l[3]),o[0]&16&&e.set_custom_element_data(n,"mbsource",l[4])},d(l){l&&e.detach(t)}}}function le(a){let t;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="title" width="30px" height="40px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="40px"></ui-skeleton>',e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(n,l){e.insert(n,t,l)},d(n){n&&e.detach(t)}}}function re(a){let t;return{c(){t=e.element("ui-skeleton"),e.set_custom_element_data(t,"structure","circle"),e.set_custom_element_data(t,"size","20px")},m(n,l){e.insert(n,t,l)},d(n){n&&e.detach(t)}}}function O(a){let t,n,l,o,s=!a[12]&&re();return{c(){t=e.element("div"),s&&s.c(),n=e.space(),l=e.element("ui-skeleton"),o=e.space(),e.set_custom_element_data(l,"structure","rectangle"),e.set_custom_element_data(l,"width","100%"),e.set_custom_element_data(l,"height",a[12]?"60px":"20px"),e.attr(t,"class","PlayerAccountItemWrap "+(a[12]?"PlayerAccountItemWrapMobile":""))},m(m,y){e.insert(m,t,y),s&&s.m(t,null),e.append(t,n),e.append(t,l),e.append(t,o)},p:e.noop,d(m){m&&e.detach(t),s&&s.d()}}}function oe(a){let t;function n(s,m){return s[6]?ee:$}let l=n(a),o=l(a);return{c(){t=e.element("div"),o.c()},m(s,m){e.insert(s,t,m),o.m(t,null),a[27](t)},p(s,m){l===(l=n(s))&&o?o.p(s,m):(o.d(1),o=l(s),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(s){s&&e.detach(t),o.d(),a[27](null)}}}function ie(a,t,n){let l;e.component_subscribe(a,e.$format,r=>n(11,l=r));let{endpoint:o=""}=t,{cmsendpoint:s=""}=t,{env:m=""}=t,{session:y=""}=t,{playerid:h=""}=t,{lang:A="en"}=t,{selecteditem:_=""}=t,{userroles:f=""}=t,{clientstyling:b=""}=t,{clientstylingurl:u=""}=t,{mbsource:c}=t,{translationurl:d=""}=t,{activemenuitem:i=""}=t,P=!1,p=!1,w=!0,g,x=[],k,C=window.navigator.userAgent,U=e.getDevice(C)!=="PC",I="",F="";const j=window.matchMedia("(min-width: 768px)"),q=()=>{fetch(d).then(M=>M.json()).then(M=>{Object.keys(M).forEach(v=>{B(v,M[v])})}).catch(M=>{console.error(M)})};Object.keys(H).forEach(r=>{B(r,H[r])});const L=r=>{if(r.data)switch(r.data.type){case"AccountMenuDetails":availableMenuItemsArray=r.data.accountMenuInfo;break;case"UserSessionID":n(0,y=r.data.session);break}},R=()=>{let r=e.getDevice(C);if(r)return r==="PC"?"dk":"mtWeb"},G=()=>{const r=new URL(`${s}/${A}/profile-menu?env=${m}`);r.searchParams.append("device",R()),fetch(r.href).then(M=>M.json()).then(M=>{n(7,x=M),T()}).catch(M=>{console.error("Error getting menu items",M)}).finally(()=>{n(24,P=!0)})},N=()=>{let r=new URL(`${o}/v1/player/${h}/profile`);r.searchParams.append("userRoles",f);let M={method:"GET",headers:{"X-SessionID":y}};fetch(r.href,M).then(v=>v.json()).then(v=>{n(9,I=v.username),n(10,F=v.email)},v=>{console.error(v)}).finally(()=>{n(25,p=!0)})},E=r=>{window.postMessage({type:"ChangeAccountPage",page:r},window.location.href),n(8,k=r.id)},T=()=>{var r;n(8,k=(r=x.find(M=>M.path.includes(i)))==null?void 0:r.id)},V=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},X=()=>{K(A)},Z=()=>{N()};e.onMount(()=>(window.addEventListener("message",L,!1),()=>{window.removeEventListener("message",L)}));const Q=r=>E(r);function J(r){e.binding_callbacks[r?"unshift":"push"](()=>{g=r,n(5,g)})}return a.$$set=r=>{"endpoint"in r&&n(1,o=r.endpoint),"cmsendpoint"in r&&n(16,s=r.cmsendpoint),"env"in r&&n(17,m=r.env),"session"in r&&n(0,y=r.session),"playerid"in r&&n(18,h=r.playerid),"lang"in r&&n(19,A=r.lang),"selecteditem"in r&&n(20,_=r.selecteditem),"userroles"in r&&n(21,f=r.userroles),"clientstyling"in r&&n(2,b=r.clientstyling),"clientstylingurl"in r&&n(3,u=r.clientstylingurl),"mbsource"in r&&n(4,c=r.mbsource),"translationurl"in r&&n(22,d=r.translationurl),"activemenuitem"in r&&n(23,i=r.activemenuitem)},a.$$.update=()=>{a.$$.dirty[0]&50331648&&n(6,w=!P||!p),a.$$.dirty[0]&524288&&A&&X(),a.$$.dirty[0]&786435&&o&&y&&h&&A&&Z(),a.$$.dirty[0]&720896&&s&&A&&m&&G(),a.$$.dirty[0]&8388608&&i&&T(),a.$$.dirty[0]&36&&b&&g&&e.setClientStyling(g,b),a.$$.dirty[0]&40&&u&&g&&e.setClientStylingURL(g,u),a.$$.dirty[0]&48&&c&&g&&e.setStreamStyling(g,`${c}.Style`),a.$$.dirty[0]&4194304&&d&&q()},[y,o,b,u,c,g,w,x,k,I,F,l,U,j,E,V,s,m,h,A,_,f,d,i,P,p,Q,J]}class D extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ie,oe,e.safe_not_equal,{endpoint:1,cmsendpoint:16,env:17,session:0,playerid:18,lang:19,selecteditem:20,userroles:21,clientstyling:2,clientstylingurl:3,mbsource:4,translationurl:22,activemenuitem:23},Y,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get cmsendpoint(){return this.$$.ctx[16]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[17]}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[18]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[19]}set lang(t){this.$$set({lang:t}),e.flush()}get selecteditem(){return this.$$.ctx[20]}set selecteditem(t){this.$$set({selecteditem:t}),e.flush()}get userroles(){return this.$$.ctx[21]}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 mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get translationurl(){return this.$$.ctx[22]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get activemenuitem(){return this.$$.ctx[23]}set activemenuitem(t){this.$$set({activemenuitem:t}),e.flush()}}e.create_custom_element(D,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},selecteditem:{},userroles:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},activemenuitem:{}},[],[],!0);exports.default=D;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountMenuNd-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountMenuNd-N2kx0DSl.cjs")).then(({default:t})=>{!customElements.get("player-account-menu-nd")&&customElements.define("player-account-menu-nd",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/PlayerAccountMenuNd-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/PlayerAccountMenuNd-BzBcsJR_.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("player-account-menu-nd") && customElements.define("player-account-menu-nd", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/player-account-menu-nd",
|
|
3
|
-
"version": "1.59.
|
|
3
|
+
"version": "1.59.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "esnext/player-account-menu-nd.js",
|
|
6
6
|
"module": "esnext/player-account-menu-nd.js",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
|
-
"import": "./esnext/player-account-menu-nd.js"
|
|
9
|
+
"import": "./esnext/player-account-menu-nd.js",
|
|
10
|
+
"require": "./es2015/player-account-menu-nd.cjs"
|
|
10
11
|
},
|
|
11
12
|
"./es2015/player-account-menu-nd.cjs": "./es2015/player-account-menu-nd.cjs",
|
|
12
13
|
"./es2015/player-account-menu-nd.js": "./es2015/player-account-menu-nd.js"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var L=(e,t,n)=>new Promise((s,r)=>{var a=o=>{try{i(n.next(o))}catch(c){r(c)}},l=o=>{try{i(n.throw(o))}catch(c){r(c)}},i=o=>o.done?s(o.value):Promise.resolve(o.value).then(a,l);i((n=n.apply(e,t)).next())});const ue="ui-skeleton",I={allRenderFn:!0,appendChildSlotFix:!1,asyncLoading:!0,asyncQueue:!1,attachStyles:!0,cloneNodeFix:!1,cmpDidLoad:!0,cmpDidRender:!1,cmpDidUnload:!1,cmpDidUpdate:!1,cmpShouldUpdate:!1,cmpWillLoad:!1,cmpWillRender:!1,cmpWillUpdate:!1,connectedCallback:!1,constructableCSS:!0,cssAnnotations:!0,devTools:!1,disconnectedCallback:!1,element:!1,event:!1,experimentalScopedSlotChanges:!1,experimentalSlotFixes:!1,formAssociated:!1,hasRenderFn:!0,hostListener:!1,hostListenerTarget:!1,hostListenerTargetBody:!1,hostListenerTargetDocument:!1,hostListenerTargetParent:!1,hostListenerTargetWindow:!1,hotModuleReplacement:!1,hydrateClientSide:!1,hydrateServerSide:!1,hydratedAttribute:!1,hydratedClass:!0,hydratedSelectorName:"hydrated",initializeNextTick:!1,invisiblePrehydration:!0,isDebug:!1,isDev:!1,isTesting:!1,lazyLoad:!0,lifecycle:!0,lifecycleDOMEvents:!1,member:!0,method:!1,mode:!1,observeAttribute:!0,profile:!1,prop:!0,propBoolean:!0,propMutable:!1,propNumber:!0,propString:!0,reflect:!1,scoped:!1,scopedSlotTextContentFix:!1,scriptDataOpts:!1,shadowDelegatesFocus:!1,shadowDom:!1,slot:!1,slotChildNodesFix:!1,slotRelocation:!1,state:!1,style:!0,svg:!1,taskQueue:!0,transformTagName:!1,updatable:!0,vdomAttribute:!0,vdomClass:!0,vdomFunctional:!1,vdomKey:!0,vdomListener:!1,vdomPropOrAttr:!1,vdomRef:!0,vdomRender:!0,vdomStyle:!0,vdomText:!1,vdomXlink:!1,watchCallback:!0};var me=Object.defineProperty,ve=(e,t)=>{for(var n in t)me(e,n,{get:t[n],enumerable:!0})},N=new WeakMap,b=e=>N.get(e),pe=(e,t)=>N.set(t.$lazyInstance$=e,t),he=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onReadyPromise$=new Promise(s=>n.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],N.set(e,n)},k=(e,t)=>(0,console.error)(e,t),_=new Map,ge=(e,t,n)=>{const s=e.$tagName$.replace(/-/g,"_"),r=e.$lazyBundleId$;if(!r)return;const a=_.get(r);if(a)return a[s];{const l=i=>(_.set(r,i),i[s]);switch(r){case"ui-skeleton":return Promise.resolve().then(()=>require("./ui-skeleton-C1buDKbo.cjs")).then(l,k)}}return import(`./${r}.entry.js`).then(l=>(_.set(r,l),l[s]),k)},x=new Map,ye="{visibility:hidden}.hydrated{visibility:inherit}",G="slot-fb{display:contents}slot-fb[hidden]{display:none}",z=typeof window!="undefined"?window:{},y=z.document||{head:{}},p={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},Se=I.shadowDom,J=e=>Promise.resolve(e),be=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),j=!1,F=[],K=[],ke=(e,t)=>n=>{e.push(n),j||(j=!0,p.$flags$&4?B(C):p.raf(C))},q=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){k(n)}e.length=0},C=()=>{q(F),q(K),(j=F.length>0)&&p.raf(C)},B=e=>J().then(e),Ee=ke(K),W={},X=e=>(e=typeof e,e==="object"||e==="function");function Z(e){var t,n,s;return(s=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?s:void 0}var we={};ve(we,{err:()=>V,map:()=>Le,ok:()=>D,unwrap:()=>Te,unwrapErr:()=>Pe});var D=e=>({isOk:!0,isErr:!1,value:e}),V=e=>({isOk:!1,isErr:!0,value:e});function Le(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then(s=>D(s)):D(n)}if(e.isErr){const n=e.value;return V(n)}throw"should never get here"}var Te=e=>{if(e.isOk)return e.value;throw e.value},Pe=e=>{if(e.isErr)return e.value;throw e.value},S=(e,t="")=>()=>{},xe=(e,t)=>()=>{},ee=(e,t,...n)=>{let s=null,r=null,a=!1,l=!1;const i=[],o=$=>{for(let f=0;f<$.length;f++)s=$[f],Array.isArray(s)?o(s):s!=null&&typeof s!="boolean"&&((a=typeof e!="function"&&!X(s))&&(s=String(s)),a&&l?i[i.length-1].$text$+=s:i.push(a?U(null,s):s),l=a)};if(o(n),t){t.key&&(r=t.key);{const $=t.className||t.class;$&&(t.class=typeof $!="object"?$:Object.keys($).filter(f=>$[f]).join(" "))}}const c=U(e,null);return c.$attrs$=t,i.length>0&&(c.$children$=i),c.$key$=r,c},U=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n},Ae={},Oe=e=>e&&e.$tag$===Ae,_e=(e,t)=>e!=null&&!X(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,je=(e,t,n)=>{const s=p.ce(t,n);return e.dispatchEvent(s),s},M=new WeakMap,Ce=(e,t,n)=>{let s=x.get(e);be&&n?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,x.set(e,s)},De=(e,t,n)=>{var s;const r=te(t),a=x.get(r);if(e=e.nodeType===11?e:y,a)if(typeof a=="string"){e=e.head||e;let l=M.get(e),i;if(l||M.set(e,l=new Set),!l.has(r)){{i=y.createElement("style"),i.innerHTML=a;const o=(s=p.$nonce$)!=null?s:Z(y);o!=null&&i.setAttribute("nonce",o),e.insertBefore(i,e.querySelector("link"))}t.$flags$&4&&(i.innerHTML+=G),l&&l.add(r)}}else e.adoptedStyleSheets.includes(a)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return r},Ue=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,s=S("attachStyles",t.$tagName$);De(n.getRootNode(),t),s()},te=(e,t)=>"sc-"+e.$tagName$,Q=(e,t,n,s,r,a)=>{if(n!==s)if(t.toLowerCase(),t==="class"){const l=e.classList,i=R(n),o=R(s);l.remove(...i.filter(c=>c&&!o.includes(c))),l.add(...o.filter(c=>c&&!i.includes(c)))}else if(t==="style"){for(const l in n)(!s||s[l]==null)&&(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in s)(!n||s[l]!==n[l])&&(l.includes("-")?e.style.setProperty(l,s[l]):e.style[l]=s[l])}else t==="key"||t==="ref"&&s&&s(e)},Ie=/\s/,R=e=>e?e.split(Ie):[],se=(e,t,n)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||W,a=t.$attrs$||W;for(const l of Y(Object.keys(r)))l in a||Q(s,l,r[l],void 0);for(const l of Y(Object.keys(a)))Q(s,l,r[l],a[l])};function Y(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var ne,re=!1,A=(e,t,n,s)=>{const r=t.$children$[n];let a=0,l,i;if(l=r.$elm$=y.createElement(!re&&I.slotRelocation&&r.$flags$&2?"slot-fb":r.$tag$),se(null,r),r.$children$)for(a=0;a<r.$children$.length;++a)i=A(e,r,a),i&&l.appendChild(i);return l["s-hn"]=ne,l},le=(e,t,n,s,r,a)=>{let l=e,i;for(;r<=a;++r)s[r]&&(i=A(null,n,r),i&&(s[r].$elm$=i,P(l,i,t)))},ae=(e,t,n)=>{for(let s=t;s<=n;++s){const r=e[s];if(r){const a=r.$elm$;oe(r),a&&a.remove()}}},Ne=(e,t,n,s,r=!1)=>{let a=0,l=0,i=0,o=0,c=t.length-1,$=t[0],f=t[c],d=s.length-1,u=s[0],m=s[d],v,h;for(;a<=c&&l<=d;)if($==null)$=t[++a];else if(f==null)f=t[--c];else if(u==null)u=s[++l];else if(m==null)m=s[--d];else if(T($,u,r))E($,u,r),$=t[++a],u=s[++l];else if(T(f,m,r))E(f,m,r),f=t[--c],m=s[--d];else if(T($,m,r))E($,m,r),P(e,$.$elm$,f.$elm$.nextSibling),$=t[++a],m=s[--d];else if(T(f,u,r))E(f,u,r),P(e,f.$elm$,$.$elm$),f=t[--c],u=s[++l];else{for(i=-1,o=a;o<=c;++o)if(t[o]&&t[o].$key$!==null&&t[o].$key$===u.$key$){i=o;break}i>=0?(h=t[i],h.$tag$!==u.$tag$?v=A(t&&t[l],n,i):(E(h,u,r),t[i]=void 0,v=h.$elm$),u=s[++l]):(v=A(t&&t[l],n,l),u=s[++l]),v&&P($.$elm$.parentNode,v,$.$elm$)}a>c?le(e,s[d+1]==null?null:s[d+1].$elm$,n,s,l,d):l>d&&ae(t,a,c)},T=(e,t,n=!1)=>e.$tag$===t.$tag$?n?!0:e.$key$===t.$key$:!1,E=(e,t,n=!1)=>{const s=t.$elm$=e.$elm$,r=e.$children$,a=t.$children$;se(e,t),r!==null&&a!==null?Ne(s,r,t,a,n):a!==null?le(s,null,t,a,0,a.length-1):r!==null&&ae(r,0,r.length-1)},oe=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(oe)},P=(e,t,n)=>e==null?void 0:e.insertBefore(t,n),ze=(e,t,n=!1)=>{const s=e.$hostElement$,r=e.$vnode$||U(null,null),a=Oe(t)?t:ee(null,null,t);if(ne=s.tagName,n&&a.$attrs$)for(const l of Object.keys(a.$attrs$))s.hasAttribute(l)&&!["key","ref","style","class"].includes(l)&&(a.$attrs$[l]=s[l]);a.$tag$=null,a.$flags$|=4,e.$vnode$=a,a.$elm$=r.$elm$=s,re=Se,E(r,a,n)},ie=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(n=>e.$onRenderResolve$=n))},H=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return ie(e,e.$ancestorComponent$),Ee(()=>Be(e,t))},Be=(e,t)=>{const n=e.$hostElement$,s=S("scheduleUpdate",e.$cmpMeta$.$tagName$),r=e.$lazyInstance$;if(!r)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let a;return s(),He(a,()=>qe(e,r,t))},He=(e,t)=>Fe(e)?e.then(t).catch(n=>{console.error(n),t()}):t(),Fe=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",qe=(e,t,n)=>L(exports,null,function*(){var s;const r=e.$hostElement$,a=S("update",e.$cmpMeta$.$tagName$),l=r["s-rc"];n&&Ue(e);const i=S("render",e.$cmpMeta$.$tagName$);We(e,t,r,n),l&&(l.map(o=>o()),r["s-rc"]=void 0),i(),a();{const o=(s=r["s-p"])!=null?s:[],c=()=>Me(e);o.length===0?c():(Promise.all(o).then(c),e.$flags$|=4,o.length=0)}}),We=(e,t,n,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,ze(e,t,s)}catch(r){k(r,e.$hostElement$)}return null},Me=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,s=S("postUpdate",t),r=e.$lazyInstance$,a=e.$ancestorComponent$;e.$flags$&64?s():(e.$flags$|=64,$e(n),Qe(r,"componentDidLoad"),s(),e.$onReadyResolve$(n),a||ce()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&B(()=>H(e,!1)),e.$flags$&=-517},ce=e=>{$e(y.documentElement),B(()=>je(z,"appload",{detail:{namespace:ue}}))},Qe=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(s){k(s)}},$e=e=>{var t;return e.classList.add((t=I.hydratedSelectorName)!=null?t:"hydrated")},Re=(e,t)=>b(e).$instanceValues$.get(t),Ye=(e,t,n,s)=>{const r=b(e);if(!r)throw new Error(`Couldn't find host element for "${s.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const a=r.$hostElement$,l=r.$instanceValues$.get(t),i=r.$flags$,o=r.$lazyInstance$;n=_e(n,s.$members$[t][0]);const c=Number.isNaN(l)&&Number.isNaN(n),$=n!==l&&!c;if((!(i&8)||l===void 0)&&$&&(r.$instanceValues$.set(t,n),o)){if(s.$watchers$&&i&128){const f=s.$watchers$[t];f&&f.map(d=>{try{o[d](n,l,t)}catch(u){k(u,a)}})}(i&18)===2&&H(r,!1)}},fe=(e,t,n)=>{var s,r;const a=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const l=Object.entries((s=t.$members$)!=null?s:{});if(l.map(([i,[o]])=>{(o&31||n&2&&o&32)&&Object.defineProperty(a,i,{get(){return Re(this,i)},set(c){Ye(this,i,c,t)},configurable:!0,enumerable:!0})}),n&1){const i=new Map;a.attributeChangedCallback=function(o,c,$){p.jmp(()=>{var f;const d=i.get(o);if(this.hasOwnProperty(d))$=this[d],delete this[d];else{if(a.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==$)return;if(d==null){const u=b(this),m=u==null?void 0:u.$flags$;if(m&&!(m&8)&&m&128&&$!==c){const v=u.$lazyInstance$,h=(f=t.$watchers$)==null?void 0:f[o];h==null||h.forEach(g=>{v[g]!=null&&v[g].call(v,$,c,o)})}return}}this[d]=$===null&&typeof this[d]=="boolean"?!1:$})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!=null?r:{}),...l.filter(([o,c])=>c[0]&15).map(([o,c])=>{const $=c[1]||o;return i.set($,o),$})]))}}return e},Ge=(e,t,n,s)=>L(exports,null,function*(){let r;if(!(t.$flags$&32)){if(t.$flags$|=32,n.$lazyBundleId$){const o=ge(n);if(o&&"then"in o){const $=xe();r=yield o,$()}else r=o;if(!r)throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);r.isProxied||(n.$watchers$=r.watchers,fe(r,n,2),r.isProxied=!0);const c=S("createInstance",n.$tagName$);t.$flags$|=8;try{new r(t)}catch($){k($)}t.$flags$&=-9,t.$flags$|=128,c()}else{r=e.constructor;const o=e.localName;customElements.whenDefined(o).then(()=>t.$flags$|=128)}if(r&&r.style){let o;typeof r.style=="string"&&(o=r.style);const c=te(n);if(!x.has(c)){const $=S("registerStyles",n.$tagName$);Ce(c,o,!!(n.$flags$&1)),$()}}}const a=t.$ancestorComponent$,l=()=>H(t,!0);a&&a["s-rc"]?a["s-rc"].push(l):l()}),Je=e=>{},Ke=e=>{if(!(p.$flags$&1)){const t=b(e),n=t.$cmpMeta$,s=S("connectedCallback",n.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Je());else{t.$flags$|=1;{let r=e;for(;r=r.parentNode||r.host;)if(r["s-p"]){ie(t,t.$ancestorComponent$=r);break}}n.$members$&&Object.entries(n.$members$).map(([r,[a]])=>{if(a&31&&e.hasOwnProperty(r)){const l=e[r];delete e[r],e[r]=l}}),Ge(e,t,n)}s()}},Xe=e=>{},Ze=e=>L(exports,null,function*(){if(!(p.$flags$&1)){const t=b(e);t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Xe())}}),Ve=(e,t={})=>{var n;const s=S(),r=[],a=t.exclude||[],l=z.customElements,i=y.head,o=i.querySelector("meta[charset]"),c=y.createElement("style"),$=[];let f,d=!0;Object.assign(p,t),p.$resourcesUrl$=new URL(t.resourcesUrl||"./",y.baseURI).href;let u=!1;if(e.map(m=>{m[1].map(v=>{var h;const g={$flags$:v[0],$tagName$:v[1],$members$:v[2],$listeners$:v[3]};g.$flags$&4&&(u=!0),g.$members$=v[2],g.$watchers$=(h=v[4])!=null?h:{};const w=g.$tagName$,de=class extends HTMLElement{constructor(O){super(O),this.hasRegisteredEventListeners=!1,O=this,he(O,g)}connectedCallback(){b(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),d?$.push(this):p.jmp(()=>Ke(this))}disconnectedCallback(){p.jmp(()=>Ze(this))}componentOnReady(){return b(this).$onReadyPromise$}};g.$lazyBundleId$=m[0],!a.includes(w)&&!l.get(w)&&(r.push(w),l.define(w,fe(de,g,1)))})}),r.length>0&&(u&&(c.textContent+=G),c.textContent+=r.sort()+ye,c.innerHTML.length)){c.setAttribute("data-styles","");const m=(n=p.$nonce$)!=null?n:Z(y);m!=null&&c.setAttribute("nonce",m),i.insertBefore(c,o?o.nextSibling:i.firstChild)}d=!1,$.length?$.map(m=>m.connectedCallback()):p.jmp(()=>f=setTimeout(ce,30)),s()};exports.bootstrapLazy=Ve;exports.h=ee;exports.promiseResolve=J;exports.registerInstance=pe;
|