@everymatrix/player-account-menu-nd 1.86.4 → 1.86.6
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-CG0fvyvl.js → GeneralLogout-BaeX2ybf.js} +755 -734
- package/components/GeneralLogout-CnzW2nQw.cjs +18 -0
- package/components/{GeneralLogout-SlMGGcp3.js → GeneralLogout-CsSWfRQq.js} +780 -759
- package/components/{PlayerAccountMenuNd-BOcdKnFh.js → PlayerAccountMenuNd-BjAKtxsm.js} +28 -28
- package/components/{PlayerAccountMenuNd-D-BqY4Sz.cjs → PlayerAccountMenuNd-DMN-EKNC.cjs} +1 -1
- package/components/{PlayerAccountMenuNd-emsf9oFi.js → PlayerAccountMenuNd-xPIs6CdB.js} +30 -30
- 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 +1 -1
- package/stencil/index-b2193545-9K-aI7zC.cjs +1 -0
- package/stencil/index-b2193545-DsMHU6jb.js +519 -0
- package/stencil/index-b2193545-R7ZoV-kY.js +503 -0
- package/stencil/{ui-skeleton-C7KTfaPd.cjs → ui-skeleton-BreIU6e5.cjs} +1 -1
- package/stencil/{ui-skeleton-Cn9Rv2BY.js → ui-skeleton-W50o8tfg.js} +2 -2
- package/stencil/{ui-skeleton-ed169f8f-BA-lE0xf.js → ui-skeleton-ed169f8f-CVY4B-CP.js} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-cGTgZqRU.cjs → ui-skeleton-ed169f8f-CpiCXJrP.cjs} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-b70BXhTZ.js → ui-skeleton-ed169f8f-D3TjbVKy.js} +1 -1
- package/stencil/{ui-skeleton-YNoAIoec.js → ui-skeleton-xXZA3rYO.js} +2 -2
- package/components/GeneralLogout-HeC3H3zO.cjs +0 -18
- package/stencil/index-b2193545-CMoQ4Pov.js +0 -503
- package/stencil/index-b2193545-CQaBo5im.cjs +0 -1
- package/stencil/index-b2193545-DvP9W4Go.js +0 -519
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as me, $ as de, c as ge, S as fe, i as ye, s as pe, f as I, b as he,
|
|
2
|
-
import "../stencil/ui-skeleton-
|
|
1
|
+
import { a as me, $ as de, c as ge, S as fe, i as ye, s as pe, f as I, b as he, n as O, d as F, e as E, g as b, h as be, j as V, o as Ae, k as Me, l as z, m as ee, p as a, q as k, r as m, t as d, u as T, v as W, w as we, x as j, y as H, z as X, A as ve, B as Pe, C as _e, D as xe } from "./GeneralLogout-BaeX2ybf.js";
|
|
2
|
+
import "../stencil/ui-skeleton-W50o8tfg.js";
|
|
3
3
|
function Z(n, e) {
|
|
4
4
|
me(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-BaeX2ybf.js").then((e) => e.G).then(({ default: e }) => {
|
|
57
57
|
!customElements.get("general-logout") && customElements.define("general-logout", e.element);
|
|
58
58
|
});
|
|
59
59
|
}
|
|
@@ -99,7 +99,7 @@ function Ce(n) {
|
|
|
99
99
|
(n[12] ? "PlayerAccountMobileContainer" : ""));
|
|
100
100
|
},
|
|
101
101
|
m(y, C) {
|
|
102
|
-
|
|
102
|
+
E(y, e, C), a(e, t), u && u.m(t, null), a(t, l), a(t, r), a(r, s), a(t, g), a(t, h), a(h, M), a(t, P), c && c.m(t, null), a(e, w), a(e, A);
|
|
103
103
|
for (let p = 0; p < o.length; p += 1)
|
|
104
104
|
o[p] && o[p].m(A, null);
|
|
105
105
|
a(e, v), _ && _.m(e, null);
|
|
@@ -138,7 +138,7 @@ function Ce(n) {
|
|
|
138
138
|
y[12] || _.p(y, C);
|
|
139
139
|
},
|
|
140
140
|
d(y) {
|
|
141
|
-
y &&
|
|
141
|
+
y && F(e), u && u.d(), c && c.d(), ee(o, y), _ && _.d();
|
|
142
142
|
}
|
|
143
143
|
};
|
|
144
144
|
}
|
|
@@ -159,7 +159,7 @@ function Fe(n) {
|
|
|
159
159
|
(n[12] ? "PlayerAccountMobileContainer" : ""));
|
|
160
160
|
},
|
|
161
161
|
m(c, f) {
|
|
162
|
-
|
|
162
|
+
E(c, e, f), a(e, t), A && A.m(t, null), a(t, l), a(t, r), a(t, s), a(t, g), a(e, h), a(e, M);
|
|
163
163
|
for (let o = 0; o < u.length; o += 1)
|
|
164
164
|
u[o] && u[o].m(M, null);
|
|
165
165
|
a(e, P), a(e, w);
|
|
@@ -179,7 +179,7 @@ function Fe(n) {
|
|
|
179
179
|
}
|
|
180
180
|
},
|
|
181
181
|
d(c) {
|
|
182
|
-
c &&
|
|
182
|
+
c && F(e), A && A.d(), ee(u, c);
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
185
|
}
|
|
@@ -193,7 +193,7 @@ function Ee(n) {
|
|
|
193
193
|
e = b("div"), t = H("svg"), l = H("defs"), r = H("style"), s = W(".aaa{fill:var(--emw--color-white, #FFFFFF);}"), g = H("g"), h = H("g"), M = H("path"), P = k(), w = b("h3"), v = W(A), d(M, "class", "aaa"), d(M, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), d(M, "transform", "translate(15 15) rotate(180)"), d(h, "transform", "translate(20 158)"), d(g, "transform", "translate(-20 -158)"), d(t, "xmlns", "http://www.w3.org/2000/svg"), d(t, "width", "15"), d(t, "height", "15"), d(t, "viewBox", "0 0 15 15"), d(w, "class", "PlayerAccountMenuCategoryTitle"), d(e, "class", "PlayerAccountMenuCategoryWrapper");
|
|
194
194
|
},
|
|
195
195
|
m(f, o) {
|
|
196
|
-
|
|
196
|
+
E(f, e, o), a(e, t), a(t, l), a(l, r), a(r, s), a(t, g), a(g, h), a(h, M), a(e, P), a(e, w), a(w, v), u || (c = [
|
|
197
197
|
j(
|
|
198
198
|
t,
|
|
199
199
|
"click",
|
|
@@ -214,7 +214,7 @@ function Ee(n) {
|
|
|
214
214
|
f[11]("title") + "") && T(v, A);
|
|
215
215
|
},
|
|
216
216
|
d(f) {
|
|
217
|
-
f &&
|
|
217
|
+
f && F(e), u = !1, we(c);
|
|
218
218
|
}
|
|
219
219
|
};
|
|
220
220
|
}
|
|
@@ -250,7 +250,7 @@ function Le(n) {
|
|
|
250
250
|
), d(e, "class", "PlayerAccountLogOutArea");
|
|
251
251
|
},
|
|
252
252
|
m(l, r) {
|
|
253
|
-
|
|
253
|
+
E(l, e, r), a(e, t);
|
|
254
254
|
},
|
|
255
255
|
p(l, r) {
|
|
256
256
|
r[0] & /*endpoint*/
|
|
@@ -286,7 +286,7 @@ function Le(n) {
|
|
|
286
286
|
);
|
|
287
287
|
},
|
|
288
288
|
d(l) {
|
|
289
|
-
l &&
|
|
289
|
+
l && F(e);
|
|
290
290
|
}
|
|
291
291
|
};
|
|
292
292
|
}
|
|
@@ -314,7 +314,7 @@ function Y(n) {
|
|
|
314
314
|
n[12] ? "PlayerAccountMenuActiveItemBox" : ""));
|
|
315
315
|
},
|
|
316
316
|
m(c, f) {
|
|
317
|
-
|
|
317
|
+
E(c, e, f), a(e, t), a(t, l), a(t, s), a(t, g), a(g, M), a(e, P), A || (v = j(e, "click", u), A = !0);
|
|
318
318
|
},
|
|
319
319
|
p(c, f) {
|
|
320
320
|
n = c, f[0] & /*menuItems*/
|
|
@@ -328,7 +328,7 @@ function Y(n) {
|
|
|
328
328
|
n[12] ? "PlayerAccountMenuActiveItemBox" : "")) && d(e, "class", w);
|
|
329
329
|
},
|
|
330
330
|
d(c) {
|
|
331
|
-
c &&
|
|
331
|
+
c && F(e), A = !1, v();
|
|
332
332
|
}
|
|
333
333
|
};
|
|
334
334
|
}
|
|
@@ -364,7 +364,7 @@ function Be(n) {
|
|
|
364
364
|
), d(e, "class", "PlayerAccountLogOutArea");
|
|
365
365
|
},
|
|
366
366
|
m(l, r) {
|
|
367
|
-
|
|
367
|
+
E(l, e, r), a(e, t);
|
|
368
368
|
},
|
|
369
369
|
p(l, r) {
|
|
370
370
|
r[0] & /*endpoint*/
|
|
@@ -400,7 +400,7 @@ function Be(n) {
|
|
|
400
400
|
);
|
|
401
401
|
},
|
|
402
402
|
d(l) {
|
|
403
|
-
l &&
|
|
403
|
+
l && F(e);
|
|
404
404
|
}
|
|
405
405
|
};
|
|
406
406
|
}
|
|
@@ -411,10 +411,10 @@ function He(n) {
|
|
|
411
411
|
e = b("div"), e.innerHTML = '<ui-skeleton structure="title" width="30px" height="40px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="40px"></ui-skeleton>', d(e, "class", "PlayerAccountMenuCategoryWrapper");
|
|
412
412
|
},
|
|
413
413
|
m(t, l) {
|
|
414
|
-
|
|
414
|
+
E(t, e, l);
|
|
415
415
|
},
|
|
416
416
|
d(t) {
|
|
417
|
-
t &&
|
|
417
|
+
t && F(e);
|
|
418
418
|
}
|
|
419
419
|
};
|
|
420
420
|
}
|
|
@@ -425,10 +425,10 @@ function We(n) {
|
|
|
425
425
|
e = b("ui-skeleton"), m(e, "structure", "circle"), m(e, "size", "20px");
|
|
426
426
|
},
|
|
427
427
|
m(t, l) {
|
|
428
|
-
|
|
428
|
+
E(t, e, l);
|
|
429
429
|
},
|
|
430
430
|
d(t) {
|
|
431
|
-
t &&
|
|
431
|
+
t && F(e);
|
|
432
432
|
}
|
|
433
433
|
};
|
|
434
434
|
}
|
|
@@ -446,11 +446,11 @@ function $(n) {
|
|
|
446
446
|
(n[12] ? "PlayerAccountItemWrapMobile" : ""));
|
|
447
447
|
},
|
|
448
448
|
m(g, h) {
|
|
449
|
-
|
|
449
|
+
E(g, e, h), s && s.m(e, null), a(e, t), a(e, l), a(e, r);
|
|
450
450
|
},
|
|
451
451
|
p: O,
|
|
452
452
|
d(g) {
|
|
453
|
-
g &&
|
|
453
|
+
g && F(e), s && s.d();
|
|
454
454
|
}
|
|
455
455
|
};
|
|
456
456
|
}
|
|
@@ -468,7 +468,7 @@ function ze(n) {
|
|
|
468
468
|
e = b("div"), r.c();
|
|
469
469
|
},
|
|
470
470
|
m(s, g) {
|
|
471
|
-
|
|
471
|
+
E(s, e, g), r.m(e, null), n[26](e);
|
|
472
472
|
},
|
|
473
473
|
p(s, g) {
|
|
474
474
|
l === (l = t(s)) && r ? r.p(s, g) : (r.d(1), r = l(s), r && (r.c(), r.m(e, null)));
|
|
@@ -476,13 +476,13 @@ function ze(n) {
|
|
|
476
476
|
i: O,
|
|
477
477
|
o: O,
|
|
478
478
|
d(s) {
|
|
479
|
-
s &&
|
|
479
|
+
s && F(e), r.d(), n[26](null);
|
|
480
480
|
}
|
|
481
481
|
};
|
|
482
482
|
}
|
|
483
483
|
function Te(n, e, t) {
|
|
484
484
|
let l;
|
|
485
|
-
be(n,
|
|
485
|
+
be(n, ve, (i) => t(11, l = i));
|
|
486
486
|
let { endpoint: r = "" } = e, { cmsendpoint: s = "" } = e, { env: g = "" } = e, { session: h = "" } = e, { playerid: M = "" } = e, { lang: P = "en" } = e, { selecteditem: w = "" } = e, { userroles: A = "" } = e, { clientstyling: v = "" } = e, { clientstylingurl: u = "" } = e, { mbsource: c } = e, { translationurl: f = "" } = e, { activemenuitem: o = "" } = e, _ = !1, y = !1, C = !0, p, B = [], S, D = window.navigator.userAgent, te = V(D) !== "PC", U = "", R = "";
|
|
487
487
|
window.matchMedia("(min-width: 768px)");
|
|
488
488
|
const ne = () => {
|
|
@@ -553,7 +553,7 @@ function Te(n, e, t) {
|
|
|
553
553
|
}));
|
|
554
554
|
const se = (i) => q(i);
|
|
555
555
|
function ue(i) {
|
|
556
|
-
|
|
556
|
+
Me[i ? "unshift" : "push"](() => {
|
|
557
557
|
p = i, t(5, p);
|
|
558
558
|
});
|
|
559
559
|
}
|
|
@@ -566,9 +566,9 @@ function Te(n, e, t) {
|
|
|
566
566
|
393219 && r && h && M && P && ce(), n.$$.dirty[0] & /*cmsendpoint, lang, env*/
|
|
567
567
|
360448 && s && P && g && ie(), n.$$.dirty[0] & /*activemenuitem*/
|
|
568
568
|
4194304 && o && G(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
569
|
-
36 && v && p &&
|
|
570
|
-
40 && u && p &&
|
|
571
|
-
48 && c && p &&
|
|
569
|
+
36 && v && p && Pe(p, v), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
570
|
+
40 && u && p && _e(p, u), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
571
|
+
48 && c && p && xe(p, `${c}.Style`), n.$$.dirty[0] & /*translationurl*/
|
|
572
572
|
2097152 && f && ne();
|
|
573
573
|
}, [
|
|
574
574
|
h,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-HeC3H3zO.cjs");require("../stencil/ui-skeleton-C7KTfaPd.cjs");function H(l,t){e.addMessages(l,t)}function K(l){e.$locale.set(l)}const W={en:{title:"My Account"},"zh-hk":{title:"我的帳戶"},fr:{title:"Mon compte"},tr:{title:"Hesabım"},ro:{title:"Contul meu"},es:{title:"Mi Cuenta"},pt:{title:"Minha Conta"},hr:{title:"Moj račun"},"pt-br":{title:"Minha conta"},"es-mx":{title:"Mi cuenta"},"en-us":{title:"My Account"}};if(typeof window!="undefined"){let l=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=l(customElements.define),Promise.resolve().then(()=>require("./GeneralLogout-HeC3H3zO.cjs")).then(t=>t.GeneralLogout_ce).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function Q(l){e.append_styles(l,"svelte-j26xf8",'.PlayerAccountMenuContainer{background:var(--emw--color-primary, #184026);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:10px;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:14px 20px;margin:2px 0;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, 10px);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, 10px);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, 10px);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, 10px);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, 10px);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, #22B04E))}.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}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function T(l,t,n){const a=l.slice();return a[41]=t[n],a}function z(l,t,n){const a=l.slice();return a[38]=t[n],a}function Y(l){let t,n,a,i,c,m,f,_,A,y,h,b,u=l[12]&&ee(l),s=l[12]&&te(l),d=e.ensure_array_like(l[7]),o=[];for(let p=0;p<d.length;p+=1)o[p]=S(T(l,d,p));let v=!l[12]&&ne(l);return{c(){t=e.element("div"),n=e.element("div"),u&&u.c(),a=e.space(),i=e.element("p"),c=e.text(l[9]),m=e.space(),f=e.element("p"),_=e.text(l[10]),A=e.space(),s&&s.c(),y=e.space(),h=e.element("div");for(let p=0;p<o.length;p+=1)o[p].c();b=e.space(),v&&v.c(),e.attr(i,"class","PlayerAccountMenuUser"),e.attr(i,"translate","no"),e.attr(f,"class","PlayerAccountMenuEmail"),e.attr(f,"translate","no"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(h,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":""))},m(p,w){e.insert(p,t,w),e.append(t,n),u&&u.m(n,null),e.append(n,a),e.append(n,i),e.append(i,c),e.append(n,m),e.append(n,f),e.append(f,_),e.append(n,A),s&&s.m(n,null),e.append(t,y),e.append(t,h);for(let g=0;g<o.length;g+=1)o[g]&&o[g].m(h,null);e.append(t,b),v&&v.m(t,null)},p(p,w){if(p[12]&&u.p(p,w),w[0]&512&&e.set_data(c,p[9]),w[0]&1024&&e.set_data(_,p[10]),p[12]&&s.p(p,w),w[0]&12672){d=e.ensure_array_like(p[7]);let g;for(g=0;g<d.length;g+=1){const x=T(p,d,g);o[g]?o[g].p(x,w):(o[g]=S(x),o[g].c(),o[g].m(h,null))}for(;g<o.length;g+=1)o[g].d(1);o.length=d.length}p[12]||v.p(p,w)},d(p){p&&e.detach(t),u&&u.d(),s&&s.d(),e.destroy_each(o,p),v&&v.d()}}}function $(l){let t,n,a,i,c,m,f,_,A,y,h=l[12]&&le(),b=e.ensure_array_like(Array(18)),u=[];for(let s=0;s<b.length;s+=1)u[s]=O(z(l,b,s));return{c(){t=e.element("div"),n=e.element("div"),h&&h.c(),a=e.space(),i=e.element("ui-skeleton"),c=e.space(),m=e.element("ui-skeleton"),f=e.space(),_=e.element("div");for(let s=0;s<u.length;s+=1)u[s].c();A=e.space(),y=e.element("div"),y.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>',e.set_custom_element_data(i,"structure","title"),e.set_custom_element_data(i,"width","100px"),e.set_custom_element_data(i,"height","20px"),e.set_custom_element_data(i,"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 "+(l[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(_,"class","PlayerAccountMenuList"),e.attr(y,"class","skeletonLogOut"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":""))},m(s,d){e.insert(s,t,d),e.append(t,n),h&&h.m(n,null),e.append(n,a),e.append(n,i),e.append(n,c),e.append(n,m),e.append(t,f),e.append(t,_);for(let o=0;o<u.length;o+=1)u[o]&&u[o].m(_,null);e.append(t,A),e.append(t,y)},p(s,d){if(d[0]&4096){b=e.ensure_array_like(Array(18));let o;for(o=0;o<b.length;o+=1){const v=z(s,b,o);u[o]?u[o].p(v,d):(u[o]=O(v),u[o].c(),u[o].m(_,null))}for(;o<u.length;o+=1)u[o].d(1);u.length=b.length}},d(s){s&&e.detach(t),h&&h.d(),e.destroy_each(u,s)}}}function ee(l){let t,n,a,i,c,m,f,_,A,y,h=l[11]("title")+"",b,u,s;return{c(){t=e.element("div"),n=e.svg_element("svg"),a=e.svg_element("defs"),i=e.svg_element("style"),c=e.text(".aaa{fill:var(--emw--color-white, #FFFFFF);}"),m=e.svg_element("g"),f=e.svg_element("g"),_=e.svg_element("path"),A=e.space(),y=e.element("h3"),b=e.text(h),e.attr(_,"class","aaa"),e.attr(_,"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(_,"transform","translate(15 15) rotate(180)"),e.attr(f,"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(y,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(d,o){e.insert(d,t,o),e.append(t,n),e.append(n,a),e.append(a,i),e.append(i,c),e.append(n,m),e.append(m,f),e.append(f,_),e.append(t,A),e.append(t,y),e.append(y,b),u||(s=[e.listen(n,"click",l[14]),e.listen(y,"click",l[14])],u=!0)},p(d,o){o[0]&2048&&h!==(h=d[11]("title")+"")&&e.set_data(b,h)},d(d){d&&e.detach(t),u=!1,e.run_all(s)}}}function te(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.set_custom_element_data(n,"mbsource",l[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(a,i){e.insert(a,t,i),e.append(t,n)},p(a,i){i[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),i[0]&1&&e.set_custom_element_data(n,"session",a[0]),i[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),i[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),i[0]&16&&e.set_custom_element_data(n,"mbsource",a[4])},d(a){a&&e.detach(t)}}}function S(l){let t,n,a,i,c,m,f=l[41].label+"",_,A,y,h,b;function u(){return l[25](l[41])}return{c(){t=e.element("div"),n=e.element("p"),a=e.element("img"),c=e.space(),m=e.element("span"),_=e.text(f),A=e.space(),e.attr(a,"class","PlayerAccountMenuItemIcon "+(l[12]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(a.src,i=l[41].img)||e.attr(a,"src",i),e.attr(m,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",y="PlayerAccountMenuItemBox "+(l[8]===l[41].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))},m(s,d){e.insert(s,t,d),e.append(t,n),e.append(n,a),e.append(n,c),e.append(n,m),e.append(m,_),e.append(t,A),h||(b=e.listen(t,"click",u),h=!0)},p(s,d){l=s,d[0]&128&&!e.src_url_equal(a.src,i=l[41].img)&&e.attr(a,"src",i),d[0]&128&&f!==(f=l[41].label+"")&&e.set_data(_,f),d[0]&384&&y!==(y="PlayerAccountMenuItemBox "+(l[8]===l[41].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",y)},d(s){s&&e.detach(t),h=!1,b()}}}function ne(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.set_custom_element_data(n,"mbsource",l[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(a,i){e.insert(a,t,i),e.append(t,n)},p(a,i){i[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),i[0]&1&&e.set_custom_element_data(n,"session",a[0]),i[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),i[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),i[0]&16&&e.set_custom_element_data(n,"mbsource",a[4])},d(a){a&&e.detach(t)}}}function le(l){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,a){e.insert(n,t,a)},d(n){n&&e.detach(t)}}}function ae(l){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,a){e.insert(n,t,a)},d(n){n&&e.detach(t)}}}function O(l){let t,n,a,i,c=!l[12]&&ae();return{c(){t=e.element("div"),c&&c.c(),n=e.space(),a=e.element("ui-skeleton"),i=e.space(),e.set_custom_element_data(a,"structure","rectangle"),e.set_custom_element_data(a,"width","100%"),e.set_custom_element_data(a,"height",l[12]?"60px":"20px"),e.attr(t,"class","PlayerAccountItemWrap "+(l[12]?"PlayerAccountItemWrapMobile":""))},m(m,f){e.insert(m,t,f),c&&c.m(t,null),e.append(t,n),e.append(t,a),e.append(t,i)},p:e.noop,d(m){m&&e.detach(t),c&&c.d()}}}function re(l){let t;function n(c,m){return c[6]?$:Y}let a=n(l),i=a(l);return{c(){t=e.element("div"),i.c()},m(c,m){e.insert(c,t,m),i.m(t,null),l[26](t)},p(c,m){a===(a=n(c))&&i?i.p(c,m):(i.d(1),i=a(c),i&&(i.c(),i.m(t,null)))},i:e.noop,o:e.noop,d(c){c&&e.detach(t),i.d(),l[26](null)}}}function ie(l,t,n){let a;e.component_subscribe(l,e.$format,r=>n(11,a=r));let{endpoint:i=""}=t,{cmsendpoint:c=""}=t,{env:m=""}=t,{session:f=""}=t,{playerid:_=""}=t,{lang:A="en"}=t,{selecteditem:y=""}=t,{userroles:h=""}=t,{clientstyling:b=""}=t,{clientstylingurl:u=""}=t,{mbsource:s}=t,{translationurl:d=""}=t,{activemenuitem:o=""}=t,v=!1,p=!1,w=!0,g,x=[],k,I=window.navigator.userAgent,D=e.getDevice(I)!=="PC",C="",F="";window.matchMedia("(min-width: 768px)");const U=()=>{fetch(d).then(M=>M.json()).then(M=>{Object.keys(M).forEach(P=>{H(P,M[P])})}).catch(M=>{console.error(M)})};Object.keys(W).forEach(r=>{H(r,W[r])});const E=r=>{if(r.data)switch(r.data.type){case"AccountMenuDetails":availableMenuItemsArray=r.data.accountMenuInfo;break;case"UserSessionID":n(0,f=r.data.session);break}},q=()=>{let r=e.getDevice(I);if(r)return r==="PC"?"dk":"mtWeb"},R=()=>{const r=new URL(`${c}/${A}/profile-menu?env=${m}`);r.searchParams.append("device",q()),fetch(r.href).then(M=>M.json()).then(M=>{n(7,x=M),B()}).catch(M=>{console.error("Error getting menu items",M)}).finally(()=>{n(23,v=!0)})},G=()=>{let r=new URL(`${i}/v1/player/${_}/profile`);r.searchParams.append("userRoles",h);let M={method:"GET",headers:{"X-SessionID":f}};fetch(r.href,M).then(P=>P.json()).then(P=>{n(9,C=P.username),n(10,F=P.email)},P=>{console.error(P)}).finally(()=>{n(24,p=!0)})},L=r=>{window.postMessage({type:"ChangeAccountPage",page:r},window.location.href),n(8,k=r.id)},B=()=>{var r;n(8,k=(r=x.find(M=>M.path.includes(o)))==null?void 0:r.id)},N=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},V=()=>{K(A)},X=()=>{G()};e.onMount(()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)}));const Z=r=>L(r);function J(r){e.binding_callbacks[r?"unshift":"push"](()=>{g=r,n(5,g)})}return l.$$set=r=>{"endpoint"in r&&n(1,i=r.endpoint),"cmsendpoint"in r&&n(15,c=r.cmsendpoint),"env"in r&&n(16,m=r.env),"session"in r&&n(0,f=r.session),"playerid"in r&&n(17,_=r.playerid),"lang"in r&&n(18,A=r.lang),"selecteditem"in r&&n(19,y=r.selecteditem),"userroles"in r&&n(20,h=r.userroles),"clientstyling"in r&&n(2,b=r.clientstyling),"clientstylingurl"in r&&n(3,u=r.clientstylingurl),"mbsource"in r&&n(4,s=r.mbsource),"translationurl"in r&&n(21,d=r.translationurl),"activemenuitem"in r&&n(22,o=r.activemenuitem)},l.$$.update=()=>{l.$$.dirty[0]&25165824&&n(6,w=!v||!p),l.$$.dirty[0]&262144&&A&&V(),l.$$.dirty[0]&393219&&i&&f&&_&&A&&X(),l.$$.dirty[0]&360448&&c&&A&&m&&R(),l.$$.dirty[0]&4194304&&o&&B(),l.$$.dirty[0]&36&&b&&g&&e.setClientStyling(g,b),l.$$.dirty[0]&40&&u&&g&&e.setClientStylingURL(g,u),l.$$.dirty[0]&48&&s&&g&&e.setStreamStyling(g,`${s}.Style`),l.$$.dirty[0]&2097152&&d&&U()},[f,i,b,u,s,g,w,x,k,C,F,a,D,L,N,c,m,_,A,y,h,d,o,v,p,Z,J]}class j extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ie,re,e.safe_not_equal,{endpoint:1,cmsendpoint:15,env:16,session:0,playerid:17,lang:18,selecteditem:19,userroles:20,clientstyling:2,clientstylingurl:3,mbsource:4,translationurl:21,activemenuitem:22},Q,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get cmsendpoint(){return this.$$.ctx[15]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[16]}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[17]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),e.flush()}get selecteditem(){return this.$$.ctx[19]}set selecteditem(t){this.$$set({selecteditem:t}),e.flush()}get userroles(){return this.$$.ctx[20]}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[21]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get activemenuitem(){return this.$$.ctx[22]}set activemenuitem(t){this.$$set({activemenuitem:t}),e.flush()}}e.create_custom_element(j,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},selecteditem:{},userroles:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},activemenuitem:{}},[],[],!0);exports.default=j;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-CnzW2nQw.cjs");require("../stencil/ui-skeleton-BreIU6e5.cjs");function H(l,t){e.addMessages(l,t)}function K(l){e.$locale.set(l)}const W={en:{title:"My Account"},"zh-hk":{title:"我的帳戶"},fr:{title:"Mon compte"},tr:{title:"Hesabım"},ro:{title:"Contul meu"},es:{title:"Mi Cuenta"},pt:{title:"Minha Conta"},hr:{title:"Moj račun"},"pt-br":{title:"Minha conta"},"es-mx":{title:"Mi cuenta"},"en-us":{title:"My Account"}};if(typeof window!="undefined"){let l=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=l(customElements.define),Promise.resolve().then(()=>require("./GeneralLogout-CnzW2nQw.cjs")).then(t=>t.GeneralLogout_ce).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function Q(l){e.append_styles(l,"svelte-j26xf8",'.PlayerAccountMenuContainer{background:var(--emw--color-primary, #184026);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:10px;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:14px 20px;margin:2px 0;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, 10px);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, 10px);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, 10px);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, 10px);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, 10px);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, #22B04E))}.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}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function T(l,t,n){const a=l.slice();return a[41]=t[n],a}function z(l,t,n){const a=l.slice();return a[38]=t[n],a}function Y(l){let t,n,a,i,c,m,f,_,A,y,h,b,u=l[12]&&ee(l),s=l[12]&&te(l),d=e.ensure_array_like(l[7]),o=[];for(let p=0;p<d.length;p+=1)o[p]=S(T(l,d,p));let v=!l[12]&&ne(l);return{c(){t=e.element("div"),n=e.element("div"),u&&u.c(),a=e.space(),i=e.element("p"),c=e.text(l[9]),m=e.space(),f=e.element("p"),_=e.text(l[10]),A=e.space(),s&&s.c(),y=e.space(),h=e.element("div");for(let p=0;p<o.length;p+=1)o[p].c();b=e.space(),v&&v.c(),e.attr(i,"class","PlayerAccountMenuUser"),e.attr(i,"translate","no"),e.attr(f,"class","PlayerAccountMenuEmail"),e.attr(f,"translate","no"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(h,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":""))},m(p,w){e.insert(p,t,w),e.append(t,n),u&&u.m(n,null),e.append(n,a),e.append(n,i),e.append(i,c),e.append(n,m),e.append(n,f),e.append(f,_),e.append(n,A),s&&s.m(n,null),e.append(t,y),e.append(t,h);for(let g=0;g<o.length;g+=1)o[g]&&o[g].m(h,null);e.append(t,b),v&&v.m(t,null)},p(p,w){if(p[12]&&u.p(p,w),w[0]&512&&e.set_data(c,p[9]),w[0]&1024&&e.set_data(_,p[10]),p[12]&&s.p(p,w),w[0]&12672){d=e.ensure_array_like(p[7]);let g;for(g=0;g<d.length;g+=1){const x=T(p,d,g);o[g]?o[g].p(x,w):(o[g]=S(x),o[g].c(),o[g].m(h,null))}for(;g<o.length;g+=1)o[g].d(1);o.length=d.length}p[12]||v.p(p,w)},d(p){p&&e.detach(t),u&&u.d(),s&&s.d(),e.destroy_each(o,p),v&&v.d()}}}function $(l){let t,n,a,i,c,m,f,_,A,y,h=l[12]&&le(),b=e.ensure_array_like(Array(18)),u=[];for(let s=0;s<b.length;s+=1)u[s]=O(z(l,b,s));return{c(){t=e.element("div"),n=e.element("div"),h&&h.c(),a=e.space(),i=e.element("ui-skeleton"),c=e.space(),m=e.element("ui-skeleton"),f=e.space(),_=e.element("div");for(let s=0;s<u.length;s+=1)u[s].c();A=e.space(),y=e.element("div"),y.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>',e.set_custom_element_data(i,"structure","title"),e.set_custom_element_data(i,"width","100px"),e.set_custom_element_data(i,"height","20px"),e.set_custom_element_data(i,"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 "+(l[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(_,"class","PlayerAccountMenuList"),e.attr(y,"class","skeletonLogOut"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":""))},m(s,d){e.insert(s,t,d),e.append(t,n),h&&h.m(n,null),e.append(n,a),e.append(n,i),e.append(n,c),e.append(n,m),e.append(t,f),e.append(t,_);for(let o=0;o<u.length;o+=1)u[o]&&u[o].m(_,null);e.append(t,A),e.append(t,y)},p(s,d){if(d[0]&4096){b=e.ensure_array_like(Array(18));let o;for(o=0;o<b.length;o+=1){const v=z(s,b,o);u[o]?u[o].p(v,d):(u[o]=O(v),u[o].c(),u[o].m(_,null))}for(;o<u.length;o+=1)u[o].d(1);u.length=b.length}},d(s){s&&e.detach(t),h&&h.d(),e.destroy_each(u,s)}}}function ee(l){let t,n,a,i,c,m,f,_,A,y,h=l[11]("title")+"",b,u,s;return{c(){t=e.element("div"),n=e.svg_element("svg"),a=e.svg_element("defs"),i=e.svg_element("style"),c=e.text(".aaa{fill:var(--emw--color-white, #FFFFFF);}"),m=e.svg_element("g"),f=e.svg_element("g"),_=e.svg_element("path"),A=e.space(),y=e.element("h3"),b=e.text(h),e.attr(_,"class","aaa"),e.attr(_,"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(_,"transform","translate(15 15) rotate(180)"),e.attr(f,"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(y,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(d,o){e.insert(d,t,o),e.append(t,n),e.append(n,a),e.append(a,i),e.append(i,c),e.append(n,m),e.append(m,f),e.append(f,_),e.append(t,A),e.append(t,y),e.append(y,b),u||(s=[e.listen(n,"click",l[14]),e.listen(y,"click",l[14])],u=!0)},p(d,o){o[0]&2048&&h!==(h=d[11]("title")+"")&&e.set_data(b,h)},d(d){d&&e.detach(t),u=!1,e.run_all(s)}}}function te(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.set_custom_element_data(n,"mbsource",l[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(a,i){e.insert(a,t,i),e.append(t,n)},p(a,i){i[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),i[0]&1&&e.set_custom_element_data(n,"session",a[0]),i[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),i[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),i[0]&16&&e.set_custom_element_data(n,"mbsource",a[4])},d(a){a&&e.detach(t)}}}function S(l){let t,n,a,i,c,m,f=l[41].label+"",_,A,y,h,b;function u(){return l[25](l[41])}return{c(){t=e.element("div"),n=e.element("p"),a=e.element("img"),c=e.space(),m=e.element("span"),_=e.text(f),A=e.space(),e.attr(a,"class","PlayerAccountMenuItemIcon "+(l[12]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(a.src,i=l[41].img)||e.attr(a,"src",i),e.attr(m,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",y="PlayerAccountMenuItemBox "+(l[8]===l[41].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))},m(s,d){e.insert(s,t,d),e.append(t,n),e.append(n,a),e.append(n,c),e.append(n,m),e.append(m,_),e.append(t,A),h||(b=e.listen(t,"click",u),h=!0)},p(s,d){l=s,d[0]&128&&!e.src_url_equal(a.src,i=l[41].img)&&e.attr(a,"src",i),d[0]&128&&f!==(f=l[41].label+"")&&e.set_data(_,f),d[0]&384&&y!==(y="PlayerAccountMenuItemBox "+(l[8]===l[41].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",y)},d(s){s&&e.detach(t),h=!1,b()}}}function ne(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.set_custom_element_data(n,"mbsource",l[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(a,i){e.insert(a,t,i),e.append(t,n)},p(a,i){i[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),i[0]&1&&e.set_custom_element_data(n,"session",a[0]),i[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),i[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),i[0]&16&&e.set_custom_element_data(n,"mbsource",a[4])},d(a){a&&e.detach(t)}}}function le(l){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,a){e.insert(n,t,a)},d(n){n&&e.detach(t)}}}function ae(l){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,a){e.insert(n,t,a)},d(n){n&&e.detach(t)}}}function O(l){let t,n,a,i,c=!l[12]&&ae();return{c(){t=e.element("div"),c&&c.c(),n=e.space(),a=e.element("ui-skeleton"),i=e.space(),e.set_custom_element_data(a,"structure","rectangle"),e.set_custom_element_data(a,"width","100%"),e.set_custom_element_data(a,"height",l[12]?"60px":"20px"),e.attr(t,"class","PlayerAccountItemWrap "+(l[12]?"PlayerAccountItemWrapMobile":""))},m(m,f){e.insert(m,t,f),c&&c.m(t,null),e.append(t,n),e.append(t,a),e.append(t,i)},p:e.noop,d(m){m&&e.detach(t),c&&c.d()}}}function re(l){let t;function n(c,m){return c[6]?$:Y}let a=n(l),i=a(l);return{c(){t=e.element("div"),i.c()},m(c,m){e.insert(c,t,m),i.m(t,null),l[26](t)},p(c,m){a===(a=n(c))&&i?i.p(c,m):(i.d(1),i=a(c),i&&(i.c(),i.m(t,null)))},i:e.noop,o:e.noop,d(c){c&&e.detach(t),i.d(),l[26](null)}}}function ie(l,t,n){let a;e.component_subscribe(l,e.$format,r=>n(11,a=r));let{endpoint:i=""}=t,{cmsendpoint:c=""}=t,{env:m=""}=t,{session:f=""}=t,{playerid:_=""}=t,{lang:A="en"}=t,{selecteditem:y=""}=t,{userroles:h=""}=t,{clientstyling:b=""}=t,{clientstylingurl:u=""}=t,{mbsource:s}=t,{translationurl:d=""}=t,{activemenuitem:o=""}=t,v=!1,p=!1,w=!0,g,x=[],k,I=window.navigator.userAgent,D=e.getDevice(I)!=="PC",C="",F="";window.matchMedia("(min-width: 768px)");const U=()=>{fetch(d).then(M=>M.json()).then(M=>{Object.keys(M).forEach(P=>{H(P,M[P])})}).catch(M=>{console.error(M)})};Object.keys(W).forEach(r=>{H(r,W[r])});const E=r=>{if(r.data)switch(r.data.type){case"AccountMenuDetails":availableMenuItemsArray=r.data.accountMenuInfo;break;case"UserSessionID":n(0,f=r.data.session);break}},q=()=>{let r=e.getDevice(I);if(r)return r==="PC"?"dk":"mtWeb"},R=()=>{const r=new URL(`${c}/${A}/profile-menu?env=${m}`);r.searchParams.append("device",q()),fetch(r.href).then(M=>M.json()).then(M=>{n(7,x=M),B()}).catch(M=>{console.error("Error getting menu items",M)}).finally(()=>{n(23,v=!0)})},G=()=>{let r=new URL(`${i}/v1/player/${_}/profile`);r.searchParams.append("userRoles",h);let M={method:"GET",headers:{"X-SessionID":f}};fetch(r.href,M).then(P=>P.json()).then(P=>{n(9,C=P.username),n(10,F=P.email)},P=>{console.error(P)}).finally(()=>{n(24,p=!0)})},L=r=>{window.postMessage({type:"ChangeAccountPage",page:r},window.location.href),n(8,k=r.id)},B=()=>{var r;n(8,k=(r=x.find(M=>M.path.includes(o)))==null?void 0:r.id)},N=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},V=()=>{K(A)},X=()=>{G()};e.onMount(()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)}));const Z=r=>L(r);function J(r){e.binding_callbacks[r?"unshift":"push"](()=>{g=r,n(5,g)})}return l.$$set=r=>{"endpoint"in r&&n(1,i=r.endpoint),"cmsendpoint"in r&&n(15,c=r.cmsendpoint),"env"in r&&n(16,m=r.env),"session"in r&&n(0,f=r.session),"playerid"in r&&n(17,_=r.playerid),"lang"in r&&n(18,A=r.lang),"selecteditem"in r&&n(19,y=r.selecteditem),"userroles"in r&&n(20,h=r.userroles),"clientstyling"in r&&n(2,b=r.clientstyling),"clientstylingurl"in r&&n(3,u=r.clientstylingurl),"mbsource"in r&&n(4,s=r.mbsource),"translationurl"in r&&n(21,d=r.translationurl),"activemenuitem"in r&&n(22,o=r.activemenuitem)},l.$$.update=()=>{l.$$.dirty[0]&25165824&&n(6,w=!v||!p),l.$$.dirty[0]&262144&&A&&V(),l.$$.dirty[0]&393219&&i&&f&&_&&A&&X(),l.$$.dirty[0]&360448&&c&&A&&m&&R(),l.$$.dirty[0]&4194304&&o&&B(),l.$$.dirty[0]&36&&b&&g&&e.setClientStyling(g,b),l.$$.dirty[0]&40&&u&&g&&e.setClientStylingURL(g,u),l.$$.dirty[0]&48&&s&&g&&e.setStreamStyling(g,`${s}.Style`),l.$$.dirty[0]&2097152&&d&&U()},[f,i,b,u,s,g,w,x,k,C,F,a,D,L,N,c,m,_,A,y,h,d,o,v,p,Z,J]}class j extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ie,re,e.safe_not_equal,{endpoint:1,cmsendpoint:15,env:16,session:0,playerid:17,lang:18,selecteditem:19,userroles:20,clientstyling:2,clientstylingurl:3,mbsource:4,translationurl:21,activemenuitem:22},Q,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get cmsendpoint(){return this.$$.ctx[15]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[16]}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[17]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),e.flush()}get selecteditem(){return this.$$.ctx[19]}set selecteditem(t){this.$$set({selecteditem:t}),e.flush()}get userroles(){return this.$$.ctx[20]}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[21]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get activemenuitem(){return this.$$.ctx[22]}set activemenuitem(t){this.$$set({activemenuitem:t}),e.flush()}}e.create_custom_element(j,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},selecteditem:{},userroles:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},activemenuitem:{}},[],[],!0);exports.default=j;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as me, $ as de, S as ge, i as fe, f as I,
|
|
2
|
-
import "../stencil/ui-skeleton-
|
|
1
|
+
import { a as me, $ as de, S as ge, i as fe, f as I, s as ye, c as pe, b as he, n as O, d as F, e as E, g as b, h as be, j as V, o as Ae, k as Me, l as z, m as ee, p as a, q as k, r as m, t as d, u as T, v as W, w as we, x as j, y as H, z as X, A as ve, B as Pe, C as _e, D as xe } from "./GeneralLogout-CsSWfRQq.js";
|
|
2
|
+
import "../stencil/ui-skeleton-xXZA3rYO.js";
|
|
3
3
|
function Z(n, e) {
|
|
4
4
|
me(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-CsSWfRQq.js").then((e) => e.G).then(({ default: e }) => {
|
|
57
57
|
!customElements.get("general-logout") && customElements.define("general-logout", e.element);
|
|
58
58
|
});
|
|
59
59
|
}
|
|
@@ -99,7 +99,7 @@ function Ce(n) {
|
|
|
99
99
|
(n[12] ? "PlayerAccountMobileContainer" : ""));
|
|
100
100
|
},
|
|
101
101
|
m(y, C) {
|
|
102
|
-
|
|
102
|
+
E(y, e, C), a(e, t), u && u.m(t, null), a(t, l), a(t, r), a(r, s), a(t, g), a(t, h), a(h, M), a(t, P), c && c.m(t, null), a(e, w), a(e, A);
|
|
103
103
|
for (let p = 0; p < o.length; p += 1)
|
|
104
104
|
o[p] && o[p].m(A, null);
|
|
105
105
|
a(e, v), x && x.m(e, null);
|
|
@@ -138,7 +138,7 @@ function Ce(n) {
|
|
|
138
138
|
y[12] || x.p(y, C);
|
|
139
139
|
},
|
|
140
140
|
d(y) {
|
|
141
|
-
y &&
|
|
141
|
+
y && F(e), u && u.d(), c && c.d(), ee(o, y), x && x.d();
|
|
142
142
|
}
|
|
143
143
|
};
|
|
144
144
|
}
|
|
@@ -159,7 +159,7 @@ function Fe(n) {
|
|
|
159
159
|
(n[12] ? "PlayerAccountMobileContainer" : ""));
|
|
160
160
|
},
|
|
161
161
|
m(c, f) {
|
|
162
|
-
|
|
162
|
+
E(c, e, f), a(e, t), A && A.m(t, null), a(t, l), a(t, r), a(t, s), a(t, g), a(e, h), a(e, M);
|
|
163
163
|
for (let o = 0; o < u.length; o += 1)
|
|
164
164
|
u[o] && u[o].m(M, null);
|
|
165
165
|
a(e, P), a(e, w);
|
|
@@ -179,7 +179,7 @@ function Fe(n) {
|
|
|
179
179
|
}
|
|
180
180
|
},
|
|
181
181
|
d(c) {
|
|
182
|
-
c &&
|
|
182
|
+
c && F(e), A && A.d(), ee(u, c);
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
185
|
}
|
|
@@ -193,7 +193,7 @@ function Ee(n) {
|
|
|
193
193
|
e = b("div"), t = H("svg"), l = H("defs"), r = H("style"), s = W(".aaa{fill:var(--emw--color-white, #FFFFFF);}"), g = H("g"), h = H("g"), M = H("path"), P = k(), w = b("h3"), v = W(A), d(M, "class", "aaa"), d(M, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), d(M, "transform", "translate(15 15) rotate(180)"), d(h, "transform", "translate(20 158)"), d(g, "transform", "translate(-20 -158)"), d(t, "xmlns", "http://www.w3.org/2000/svg"), d(t, "width", "15"), d(t, "height", "15"), d(t, "viewBox", "0 0 15 15"), d(w, "class", "PlayerAccountMenuCategoryTitle"), d(e, "class", "PlayerAccountMenuCategoryWrapper");
|
|
194
194
|
},
|
|
195
195
|
m(f, o) {
|
|
196
|
-
|
|
196
|
+
E(f, e, o), a(e, t), a(t, l), a(l, r), a(r, s), a(t, g), a(g, h), a(h, M), a(e, P), a(e, w), a(w, v), u || (c = [
|
|
197
197
|
j(
|
|
198
198
|
t,
|
|
199
199
|
"click",
|
|
@@ -214,7 +214,7 @@ function Ee(n) {
|
|
|
214
214
|
f[11]("title") + "") && T(v, A);
|
|
215
215
|
},
|
|
216
216
|
d(f) {
|
|
217
|
-
f &&
|
|
217
|
+
f && F(e), u = !1, we(c);
|
|
218
218
|
}
|
|
219
219
|
};
|
|
220
220
|
}
|
|
@@ -250,7 +250,7 @@ function Le(n) {
|
|
|
250
250
|
), d(e, "class", "PlayerAccountLogOutArea");
|
|
251
251
|
},
|
|
252
252
|
m(l, r) {
|
|
253
|
-
|
|
253
|
+
E(l, e, r), a(e, t);
|
|
254
254
|
},
|
|
255
255
|
p(l, r) {
|
|
256
256
|
r[0] & /*endpoint*/
|
|
@@ -286,7 +286,7 @@ function Le(n) {
|
|
|
286
286
|
);
|
|
287
287
|
},
|
|
288
288
|
d(l) {
|
|
289
|
-
l &&
|
|
289
|
+
l && F(e);
|
|
290
290
|
}
|
|
291
291
|
};
|
|
292
292
|
}
|
|
@@ -314,7 +314,7 @@ function Y(n) {
|
|
|
314
314
|
n[12] ? "PlayerAccountMenuActiveItemBox" : ""));
|
|
315
315
|
},
|
|
316
316
|
m(c, f) {
|
|
317
|
-
|
|
317
|
+
E(c, e, f), a(e, t), a(t, l), a(t, s), a(t, g), a(g, M), a(e, P), A || (v = j(e, "click", u), A = !0);
|
|
318
318
|
},
|
|
319
319
|
p(c, f) {
|
|
320
320
|
n = c, f[0] & /*menuItems*/
|
|
@@ -328,7 +328,7 @@ function Y(n) {
|
|
|
328
328
|
n[12] ? "PlayerAccountMenuActiveItemBox" : "")) && d(e, "class", w);
|
|
329
329
|
},
|
|
330
330
|
d(c) {
|
|
331
|
-
c &&
|
|
331
|
+
c && F(e), A = !1, v();
|
|
332
332
|
}
|
|
333
333
|
};
|
|
334
334
|
}
|
|
@@ -364,7 +364,7 @@ function Be(n) {
|
|
|
364
364
|
), d(e, "class", "PlayerAccountLogOutArea");
|
|
365
365
|
},
|
|
366
366
|
m(l, r) {
|
|
367
|
-
|
|
367
|
+
E(l, e, r), a(e, t);
|
|
368
368
|
},
|
|
369
369
|
p(l, r) {
|
|
370
370
|
r[0] & /*endpoint*/
|
|
@@ -400,7 +400,7 @@ function Be(n) {
|
|
|
400
400
|
);
|
|
401
401
|
},
|
|
402
402
|
d(l) {
|
|
403
|
-
l &&
|
|
403
|
+
l && F(e);
|
|
404
404
|
}
|
|
405
405
|
};
|
|
406
406
|
}
|
|
@@ -411,10 +411,10 @@ function He(n) {
|
|
|
411
411
|
e = b("div"), e.innerHTML = '<ui-skeleton structure="title" width="30px" height="40px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="40px"></ui-skeleton>', d(e, "class", "PlayerAccountMenuCategoryWrapper");
|
|
412
412
|
},
|
|
413
413
|
m(t, l) {
|
|
414
|
-
|
|
414
|
+
E(t, e, l);
|
|
415
415
|
},
|
|
416
416
|
d(t) {
|
|
417
|
-
t &&
|
|
417
|
+
t && F(e);
|
|
418
418
|
}
|
|
419
419
|
};
|
|
420
420
|
}
|
|
@@ -425,10 +425,10 @@ function We(n) {
|
|
|
425
425
|
e = b("ui-skeleton"), m(e, "structure", "circle"), m(e, "size", "20px");
|
|
426
426
|
},
|
|
427
427
|
m(t, l) {
|
|
428
|
-
|
|
428
|
+
E(t, e, l);
|
|
429
429
|
},
|
|
430
430
|
d(t) {
|
|
431
|
-
t &&
|
|
431
|
+
t && F(e);
|
|
432
432
|
}
|
|
433
433
|
};
|
|
434
434
|
}
|
|
@@ -446,11 +446,11 @@ function $(n) {
|
|
|
446
446
|
(n[12] ? "PlayerAccountItemWrapMobile" : ""));
|
|
447
447
|
},
|
|
448
448
|
m(g, h) {
|
|
449
|
-
|
|
449
|
+
E(g, e, h), s && s.m(e, null), a(e, t), a(e, l), a(e, r);
|
|
450
450
|
},
|
|
451
451
|
p: O,
|
|
452
452
|
d(g) {
|
|
453
|
-
g &&
|
|
453
|
+
g && F(e), s && s.d();
|
|
454
454
|
}
|
|
455
455
|
};
|
|
456
456
|
}
|
|
@@ -468,7 +468,7 @@ function ze(n) {
|
|
|
468
468
|
e = b("div"), r.c();
|
|
469
469
|
},
|
|
470
470
|
m(s, g) {
|
|
471
|
-
|
|
471
|
+
E(s, e, g), r.m(e, null), n[26](e);
|
|
472
472
|
},
|
|
473
473
|
p(s, g) {
|
|
474
474
|
l === (l = t(s)) && r ? r.p(s, g) : (r.d(1), r = l(s), r && (r.c(), r.m(e, null)));
|
|
@@ -476,13 +476,13 @@ function ze(n) {
|
|
|
476
476
|
i: O,
|
|
477
477
|
o: O,
|
|
478
478
|
d(s) {
|
|
479
|
-
s &&
|
|
479
|
+
s && F(e), r.d(), n[26](null);
|
|
480
480
|
}
|
|
481
481
|
};
|
|
482
482
|
}
|
|
483
483
|
function Te(n, e, t) {
|
|
484
484
|
let l;
|
|
485
|
-
be(n,
|
|
485
|
+
be(n, ve, (i) => t(11, l = i));
|
|
486
486
|
let { endpoint: r = "" } = e, { cmsendpoint: s = "" } = e, { env: g = "" } = e, { session: h = "" } = e, { playerid: M = "" } = e, { lang: P = "en" } = e, { selecteditem: w = "" } = e, { userroles: A = "" } = e, { clientstyling: v = "" } = e, { clientstylingurl: u = "" } = e, { mbsource: c } = e, { translationurl: f = "" } = e, { activemenuitem: o = "" } = e, x = !1, y = !1, C = !0, p, B = [], S, D = window.navigator.userAgent, te = V(D) !== "PC", U = "", R = "";
|
|
487
487
|
window.matchMedia("(min-width: 768px)");
|
|
488
488
|
const ne = () => {
|
|
@@ -554,7 +554,7 @@ function Te(n, e, t) {
|
|
|
554
554
|
}));
|
|
555
555
|
const se = (i) => q(i);
|
|
556
556
|
function ue(i) {
|
|
557
|
-
|
|
557
|
+
Me[i ? "unshift" : "push"](() => {
|
|
558
558
|
p = i, t(5, p);
|
|
559
559
|
});
|
|
560
560
|
}
|
|
@@ -567,9 +567,9 @@ function Te(n, e, t) {
|
|
|
567
567
|
393219 && r && h && M && P && ce(), n.$$.dirty[0] & /*cmsendpoint, lang, env*/
|
|
568
568
|
360448 && s && P && g && ie(), n.$$.dirty[0] & /*activemenuitem*/
|
|
569
569
|
4194304 && o && G(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
570
|
-
36 && v && p &&
|
|
571
|
-
40 && u && p &&
|
|
572
|
-
48 && c && p &&
|
|
570
|
+
36 && v && p && Pe(p, v), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
571
|
+
40 && u && p && _e(p, u), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
572
|
+
48 && c && p && xe(p, `${c}.Style`), n.$$.dirty[0] & /*translationurl*/
|
|
573
573
|
2097152 && f && ne();
|
|
574
574
|
}, [
|
|
575
575
|
h,
|
|
@@ -608,7 +608,7 @@ class Se extends ge {
|
|
|
608
608
|
e,
|
|
609
609
|
Te,
|
|
610
610
|
ze,
|
|
611
|
-
|
|
611
|
+
ye,
|
|
612
612
|
{
|
|
613
613
|
endpoint: 1,
|
|
614
614
|
cmsendpoint: 15,
|
|
@@ -707,7 +707,7 @@ class Se extends ge {
|
|
|
707
707
|
this.$$set({ activemenuitem: e }), I();
|
|
708
708
|
}
|
|
709
709
|
}
|
|
710
|
-
|
|
710
|
+
pe(Se, { endpoint: {}, cmsendpoint: {}, env: {}, session: {}, playerid: {}, lang: {}, selecteditem: {}, userroles: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, activemenuitem: {} }, [], [], !0);
|
|
711
711
|
export {
|
|
712
712
|
Se as default
|
|
713
713
|
};
|
|
@@ -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-DMN-EKNC.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-xPIs6CdB.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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var P=(e,t,s)=>new Promise((r,n)=>{var a=i=>{try{o(s.next(i))}catch($){n($)}},l=i=>{try{o(s.throw(i))}catch($){n($)}},o=i=>i.done?r(i.value):Promise.resolve(i.value).then(a,l);o((s=s.apply(e,t)).next())});const ue="ui-skeleton",fe={hydratedSelectorName:"hydrated"};var de=Object.defineProperty,me=(e,t)=>{for(var s in t)de(e,s,{get:t[s],enumerable:!0})},U=new WeakMap,b=e=>U.get(e),ve=(e,t)=>U.set(t.$lazyInstance$=e,t),ge=(e,t)=>{const s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return s.$onReadyPromise$=new Promise(r=>s.$onReadyResolve$=r),e["s-p"]=[],e["s-rc"]=[],U.set(e,s)},E=(e,t)=>(0,console.error)(e,t),O=new Map,he=(e,t,s)=>{const r=e.$tagName$.replace(/-/g,"_"),n=e.$lazyBundleId$;if(!n)return;const a=O.get(n);if(a)return a[r];{const l=o=>(O.set(n,o),o[r]);switch(n){case"ui-skeleton":return Promise.resolve().then(()=>require("./ui-skeleton-BreIU6e5.cjs")).then(l,E)}}return import(`./${n}.entry.js`).then(l=>(O.set(n,l),l[r]),E)},L=new Map,pe="{visibility:hidden}.hydrated{visibility:inherit}",J="slot-fb{display:contents}slot-fb[hidden]{display:none}",B=typeof window!="undefined"?window:{},y=B.document||{head:{}},g={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,r)=>e.addEventListener(t,s,r),rel:(e,t,s,r)=>e.removeEventListener(t,s,r),ce:(e,t)=>new CustomEvent(e,t)},K=e=>Promise.resolve(e),ye=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),A=!1,C=[],Q=[],Se=(e,t)=>s=>{e.push(s),A||(A=!0,g.$flags$&4?z(I):g.raf(I))},D=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){E(s)}e.length=0},I=()=>{D(C),D(Q),(A=C.length>0)&&g.raf(I)},z=e=>K().then(e),be=Se(Q),F={},X=e=>(e=typeof e,e==="object"||e==="function");function Z(e){var t,s,r;return(r=(s=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:s.getAttribute("content"))!=null?r:void 0}var ke={};me(ke,{err:()=>R,map:()=>Ee,ok:()=>H,unwrap:()=>we,unwrapErr:()=>Pe});var H=e=>({isOk:!0,isErr:!1,value:e}),R=e=>({isOk:!1,isErr:!0,value:e});function Ee(e,t){if(e.isOk){const s=t(e.value);return s instanceof Promise?s.then(r=>H(r)):H(s)}if(e.isErr){const s=e.value;return R(s)}throw"should never get here"}var we=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)=>()=>{},V=(e,t,...s)=>{let r=null,n=null,a=!1,l=!1;const o=[],i=c=>{for(let u=0;u<c.length;u++)r=c[u],Array.isArray(r)?i(r):r!=null&&typeof r!="boolean"&&((a=typeof e!="function"&&!X(r))&&(r=String(r)),a&&l?o[o.length-1].$text$+=r:o.push(a?N(null,r):r),l=a)};if(i(s),t){t.key&&(n=t.key);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter(u=>c[u]).join(" "))}}const $=N(e,null);return $.$attrs$=t,o.length>0&&($.$children$=o),$.$key$=n,$},N=(e,t)=>{const s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return s.$attrs$=null,s.$key$=null,s},ee={},Te=e=>e&&e.$tag$===ee,Le=(e,t)=>e!=null&&!X(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,_e=(e,t,s)=>{const r=g.ce(t,s);return e.dispatchEvent(r),r},M=new WeakMap,je=(e,t,s)=>{let r=L.get(e);ye&&s?(r=r||new CSSStyleSheet,typeof r=="string"?r=t:r.replaceSync(t)):r=t,L.set(e,r)},Oe=(e,t,s)=>{var r;const n=te(t),a=L.get(n);if(e=e.nodeType===11?e:y,a)if(typeof a=="string"){e=e.head||e;let l=M.get(e),o;if(l||M.set(e,l=new Set),!l.has(n)){{o=y.createElement("style"),o.innerHTML=a;const i=(r=g.$nonce$)!=null?r:Z(y);i!=null&&o.setAttribute("nonce",i),e.insertBefore(o,e.querySelector("link"))}t.$flags$&4&&(o.innerHTML+=J),l&&l.add(n)}}else e.adoptedStyleSheets.includes(a)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return n},Ae=e=>{const t=e.$cmpMeta$,s=e.$hostElement$,r=S("attachStyles",t.$tagName$);Oe(s.getRootNode(),t),r()},te=(e,t)=>"sc-"+e.$tagName$,W=(e,t,s,r,n,a)=>{if(s!==r&&(t.toLowerCase(),t==="class")){const l=e.classList,o=Y(s),i=Y(r);l.remove(...o.filter($=>$&&!i.includes($))),l.add(...i.filter($=>$&&!o.includes($)))}},Ie=/\s/,Y=e=>e?e.split(Ie):[],ne=(e,t,s)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,n=e&&e.$attrs$||F,a=t.$attrs$||F;for(const l of G(Object.keys(n)))l in a||W(r,l,n[l],void 0);for(const l of G(Object.keys(a)))W(r,l,n[l],a[l])};function G(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var se,_=(e,t,s,r)=>{const n=t.$children$[s];let a=0,l,o;if(n.$text$!==null)l=n.$elm$=y.createTextNode(n.$text$);else if(l=n.$elm$=y.createElement(n.$tag$),ne(null,n),n.$children$)for(a=0;a<n.$children$.length;++a)o=_(e,n,a),o&&l.appendChild(o);return l["s-hn"]=se,l},re=(e,t,s,r,n,a)=>{let l=e,o;for(;n<=a;++n)r[n]&&(o=_(null,s,n),o&&(r[n].$elm$=o,T(l,o,t)))},le=(e,t,s)=>{for(let r=t;r<=s;++r){const n=e[r];if(n){const a=n.$elm$;a&&a.remove()}}},He=(e,t,s,r,n=!1)=>{let a=0,l=0,o=0,i=0,$=t.length-1,c=t[0],u=t[$],f=r.length-1,d=r[0],m=r[f],v,h;for(;a<=$&&l<=f;)if(c==null)c=t[++a];else if(u==null)u=t[--$];else if(d==null)d=r[++l];else if(m==null)m=r[--f];else if(x(c,d,n))k(c,d,n),c=t[++a],d=r[++l];else if(x(u,m,n))k(u,m,n),u=t[--$],m=r[--f];else if(x(c,m,n))k(c,m,n),T(e,c.$elm$,u.$elm$.nextSibling),c=t[++a],m=r[--f];else if(x(u,d,n))k(u,d,n),T(e,u.$elm$,c.$elm$),u=t[--$],d=r[++l];else{for(o=-1,i=a;i<=$;++i)if(t[i]&&t[i].$key$!==null&&t[i].$key$===d.$key$){o=i;break}o>=0?(h=t[o],h.$tag$!==d.$tag$?v=_(t&&t[l],s,o):(k(h,d,n),t[o]=void 0,v=h.$elm$),d=r[++l]):(v=_(t&&t[l],s,l),d=r[++l]),v&&T(c.$elm$.parentNode,v,c.$elm$)}a>$?re(e,r[f+1]==null?null:r[f+1].$elm$,s,r,l,f):l>f&&le(t,a,$)},x=(e,t,s=!1)=>e.$tag$===t.$tag$?s?!0:e.$key$===t.$key$:!1,k=(e,t,s=!1)=>{const r=t.$elm$=e.$elm$,n=e.$children$,a=t.$children$,l=t.$text$;l===null?(ne(e,t),n!==null&&a!==null?He(r,n,t,a,s):a!==null?(e.$text$!==null&&(r.textContent=""),re(r,null,t,a,0,a.length-1)):n!==null&&le(n,0,n.length-1)):e.$text$!==l&&(r.data=l)},T=(e,t,s)=>e==null?void 0:e.insertBefore(t,s),Ne=(e,t,s=!1)=>{const r=e.$hostElement$,n=e.$vnode$||N(null,null),a=Te(t)?t:V(null,null,t);if(se=r.tagName,s&&a.$attrs$)for(const l of Object.keys(a.$attrs$))r.hasAttribute(l)&&!["key","ref","style","class"].includes(l)&&(a.$attrs$[l]=r[l]);a.$tag$=null,a.$flags$|=4,e.$vnode$=a,a.$elm$=n.$elm$=r,k(n,a,s)},ae=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(s=>e.$onRenderResolve$=s))},q=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return ae(e,e.$ancestorComponent$),be(()=>Ue(e,t))},Ue=(e,t)=>{const s=e.$hostElement$,r=S("scheduleUpdate",e.$cmpMeta$.$tagName$),n=e.$lazyInstance$;if(!n)throw new Error(`Can't render component <${s.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 r(),Be(a,()=>qe(e,n,t))},Be=(e,t)=>ze(e)?e.then(t).catch(s=>{console.error(s),t()}):t(),ze=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",qe=(e,t,s)=>P(exports,null,function*(){var r;const n=e.$hostElement$,a=S("update",e.$cmpMeta$.$tagName$),l=n["s-rc"];s&&Ae(e);const o=S("render",e.$cmpMeta$.$tagName$);Ce(e,t,n,s),l&&(l.map(i=>i()),n["s-rc"]=void 0),o(),a();{const i=(r=n["s-p"])!=null?r:[],$=()=>De(e);i.length===0?$():(Promise.all(i).then($),e.$flags$|=4,i.length=0)}}),Ce=(e,t,s,r)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Ne(e,t,r)}catch(n){E(n,e.$hostElement$)}return null},De=e=>{const t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,r=S("postUpdate",t),n=e.$ancestorComponent$;e.$flags$&64?r():(e.$flags$|=64,oe(s),r(),e.$onReadyResolve$(s),n||ie()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&z(()=>q(e,!1)),e.$flags$&=-517},ie=e=>{oe(y.documentElement),z(()=>_e(B,"appload",{detail:{namespace:ue}}))},oe=e=>{var t;return e.classList.add((t=fe.hydratedSelectorName)!=null?t:"hydrated")},Fe=(e,t)=>b(e).$instanceValues$.get(t),Me=(e,t,s,r)=>{const n=b(e);if(!n)throw new Error(`Couldn't find host element for "${r.$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=n.$hostElement$,l=n.$instanceValues$.get(t),o=n.$flags$,i=n.$lazyInstance$;s=Le(s,r.$members$[t][0]);const $=Number.isNaN(l)&&Number.isNaN(s),c=s!==l&&!$;if((!(o&8)||l===void 0)&&c&&(n.$instanceValues$.set(t,s),i)){if(r.$watchers$&&o&128){const u=r.$watchers$[t];u&&u.map(f=>{try{i[f](s,l,t)}catch(d){E(d,a)}})}(o&18)===2&&q(n,!1)}},$e=(e,t,s)=>{var r,n;const a=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const l=Object.entries((r=t.$members$)!=null?r:{});if(l.map(([o,[i]])=>{(i&31||s&2&&i&32)&&Object.defineProperty(a,o,{get(){return Fe(this,o)},set($){Me(this,o,$,t)},configurable:!0,enumerable:!0})}),s&1){const o=new Map;a.attributeChangedCallback=function(i,$,c){g.jmp(()=>{var u;const f=o.get(i);if(this.hasOwnProperty(f))c=this[f],delete this[f];else{if(a.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==c)return;if(f==null){const d=b(this),m=d==null?void 0:d.$flags$;if(m&&!(m&8)&&m&128&&c!==$){const v=d.$lazyInstance$,h=(u=t.$watchers$)==null?void 0:u[i];h==null||h.forEach(p=>{v[p]!=null&&v[p].call(v,c,$,i)})}return}}this[f]=c===null&&typeof this[f]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.$watchers$)!=null?n:{}),...l.filter(([i,$])=>$[0]&15).map(([i,$])=>{const c=$[1]||i;return o.set(c,i),c})]))}}return e},We=(e,t,s,r)=>P(exports,null,function*(){let n;if(!(t.$flags$&32)){if(t.$flags$|=32,s.$lazyBundleId$){const i=he(s);if(i&&"then"in i){const c=xe();n=yield i,c()}else n=i;if(!n)throw new Error(`Constructor for "${s.$tagName$}#${t.$modeName$}" was not found`);n.isProxied||(s.$watchers$=n.watchers,$e(n,s,2),n.isProxied=!0);const $=S("createInstance",s.$tagName$);t.$flags$|=8;try{new n(t)}catch(c){E(c)}t.$flags$&=-9,t.$flags$|=128,$()}else{n=e.constructor;const i=e.localName;customElements.whenDefined(i).then(()=>t.$flags$|=128)}if(n&&n.style){let i;typeof n.style=="string"&&(i=n.style);const $=te(s);if(!L.has($)){const c=S("registerStyles",s.$tagName$);je($,i,!!(s.$flags$&1)),c()}}}const a=t.$ancestorComponent$,l=()=>q(t,!0);a&&a["s-rc"]?a["s-rc"].push(l):l()}),Ye=e=>{},Ge=e=>{if(!(g.$flags$&1)){const t=b(e),s=t.$cmpMeta$,r=S("connectedCallback",s.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Ye());else{t.$flags$|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ae(t,t.$ancestorComponent$=n);break}}s.$members$&&Object.entries(s.$members$).map(([n,[a]])=>{if(a&31&&e.hasOwnProperty(n)){const l=e[n];delete e[n],e[n]=l}}),We(e,t,s)}r()}},Je=e=>{},Ke=e=>P(exports,null,function*(){if(!(g.$flags$&1)){const t=b(e);t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Je())}}),Qe=(e,t={})=>{var s;const r=S(),n=[],a=t.exclude||[],l=B.customElements,o=y.head,i=o.querySelector("meta[charset]"),$=y.createElement("style"),c=[];let u,f=!0;Object.assign(g,t),g.$resourcesUrl$=new URL(t.resourcesUrl||"./",y.baseURI).href;let d=!1;if(e.map(m=>{m[1].map(v=>{var h;const p={$flags$:v[0],$tagName$:v[1],$members$:v[2],$listeners$:v[3]};p.$flags$&4&&(d=!0),p.$members$=v[2],p.$watchers$=(h=v[4])!=null?h:{};const w=p.$tagName$,ce=class extends HTMLElement{constructor(j){super(j),this.hasRegisteredEventListeners=!1,j=this,ge(j,p)}connectedCallback(){b(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),u&&(clearTimeout(u),u=null),f?c.push(this):g.jmp(()=>Ge(this))}disconnectedCallback(){g.jmp(()=>Ke(this))}componentOnReady(){return b(this).$onReadyPromise$}};p.$lazyBundleId$=m[0],!a.includes(w)&&!l.get(w)&&(n.push(w),l.define(w,$e(ce,p,1)))})}),n.length>0&&(d&&($.textContent+=J),$.textContent+=n.sort()+pe,$.innerHTML.length)){$.setAttribute("data-styles","");const m=(s=g.$nonce$)!=null?s:Z(y);m!=null&&$.setAttribute("nonce",m),o.insertBefore($,i?i.nextSibling:o.firstChild)}f=!1,c.length?c.map(m=>m.connectedCallback()):g.jmp(()=>u=setTimeout(ie,30)),r()};exports.Host=ee;exports.bootstrapLazy=Qe;exports.h=V;exports.promiseResolve=K;exports.registerInstance=ve;
|