@everymatrix/player-account-menu 1.94.113 → 1.94.115
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-DuOU6vBb.cjs → GeneralLogout-B8Kxp4BT.cjs} +1 -1
- package/components/{GeneralLogout-ZlblYby5.js → GeneralLogout-BFpAutro.js} +1 -1
- package/components/{GeneralLogout-CYJVffHd.js → GeneralLogout-DeCJHu_R.js} +1 -1
- package/components/{PlayerAccountMenu-Cqx8Op2P.js → PlayerAccountMenu-1azra0LK.js} +4 -3
- package/components/{PlayerAccountMenu-CTC6Nvug.cjs → PlayerAccountMenu-BONCpeyS.cjs} +3 -3
- package/components/{PlayerAccountMenu-DL8CZrtm.js → PlayerAccountMenu-gooXNa1g.js} +75 -74
- package/es2015/player-account-menu.cjs +1 -1
- package/es2015/player-account-menu.js +1 -1
- package/esnext/player-account-menu.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-aZT0Suei.cjs → ui-skeleton-BreIU6e5.cjs} +1 -1
- package/stencil/{ui-skeleton-B9VBo72p.js → ui-skeleton-W50o8tfg.js} +2 -2
- package/stencil/{ui-skeleton-ed169f8f-8UVsv6jT.js → ui-skeleton-ed169f8f-CVY4B-CP.js} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-CQoA7I2l.cjs → ui-skeleton-ed169f8f-CpiCXJrP.cjs} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-BQ-1TtKf.js → ui-skeleton-ed169f8f-D3TjbVKy.js} +1 -1
- package/stencil/{ui-skeleton-C7JH5ymf.js → ui-skeleton-xXZA3rYO.js} +2 -2
- package/stencil/index-b2193545-BK1eKuNv.js +0 -493
- package/stencil/index-b2193545-BzLH-hhx.js +0 -509
- package/stencil/index-b2193545-CIfou2cI.cjs +0 -1
|
@@ -27,7 +27,7 @@ var yt = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import "../stencil/ui-skeleton-
|
|
30
|
+
import "../stencil/ui-skeleton-xXZA3rYO.js";
|
|
31
31
|
function R() {
|
|
32
32
|
}
|
|
33
33
|
function Zt(e) {
|
|
@@ -601,8 +601,8 @@ var Se = function() {
|
|
|
601
601
|
var u = l.value;
|
|
602
602
|
u.remove(this);
|
|
603
603
|
}
|
|
604
|
-
} catch (
|
|
605
|
-
t = { error:
|
|
604
|
+
} catch (b) {
|
|
605
|
+
t = { error: b };
|
|
606
606
|
} finally {
|
|
607
607
|
try {
|
|
608
608
|
l && !l.done && (r = a.return) && r.call(a);
|
|
@@ -617,8 +617,8 @@ var Se = function() {
|
|
|
617
617
|
if (G(c))
|
|
618
618
|
try {
|
|
619
619
|
c();
|
|
620
|
-
} catch (
|
|
621
|
-
o =
|
|
620
|
+
} catch (b) {
|
|
621
|
+
o = b instanceof Le ? b.errors : [b];
|
|
622
622
|
}
|
|
623
623
|
var h = this._finalizers;
|
|
624
624
|
if (h) {
|
|
@@ -628,12 +628,12 @@ var Se = function() {
|
|
|
628
628
|
var m = p.value;
|
|
629
629
|
try {
|
|
630
630
|
xt(m);
|
|
631
|
-
} catch (
|
|
632
|
-
o = o != null ? o : [],
|
|
631
|
+
} catch (b) {
|
|
632
|
+
o = o != null ? o : [], b instanceof Le ? o = Ze(Ze([], ze(o)), ze(b.errors)) : o.push(b);
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
|
-
} catch (
|
|
636
|
-
n = { error:
|
|
635
|
+
} catch (b) {
|
|
636
|
+
n = { error: b };
|
|
637
637
|
} finally {
|
|
638
638
|
try {
|
|
639
639
|
p && !p.done && (i = f.return) && i.call(f);
|
|
@@ -1059,13 +1059,13 @@ function ne(e, t, r) {
|
|
|
1059
1059
|
const m = t(n ? u[0] : u, s, a);
|
|
1060
1060
|
o ? s(m) : h = st(m) ? m : R;
|
|
1061
1061
|
}, p = i.map(
|
|
1062
|
-
(m,
|
|
1062
|
+
(m, b) => qt(
|
|
1063
1063
|
m,
|
|
1064
1064
|
(y) => {
|
|
1065
|
-
u[
|
|
1065
|
+
u[b] = y, c &= ~(1 << b), l && f();
|
|
1066
1066
|
},
|
|
1067
1067
|
() => {
|
|
1068
|
-
c |= 1 <<
|
|
1068
|
+
c |= 1 << b;
|
|
1069
1069
|
}
|
|
1070
1070
|
)
|
|
1071
1071
|
);
|
|
@@ -3370,18 +3370,18 @@ var wi = (
|
|
|
3370
3370
|
var m = this.tryParseArgumentClose(i);
|
|
3371
3371
|
if (m.err)
|
|
3372
3372
|
return m;
|
|
3373
|
-
var
|
|
3373
|
+
var b = E(i, this.clonePosition());
|
|
3374
3374
|
if (u && Ct(u == null ? void 0 : u.style, "::", 0)) {
|
|
3375
3375
|
var y = Ei(u.style.slice(2));
|
|
3376
3376
|
if (a === "number") {
|
|
3377
3377
|
var h = this.parseNumberSkeletonFromString(y, u.styleLocation);
|
|
3378
3378
|
return h.err ? h : {
|
|
3379
|
-
val: { type: T.number, value: n, location:
|
|
3379
|
+
val: { type: T.number, value: n, location: b, style: h.val },
|
|
3380
3380
|
err: null
|
|
3381
3381
|
};
|
|
3382
3382
|
} else {
|
|
3383
3383
|
if (y.length === 0)
|
|
3384
|
-
return this.error(v.EXPECT_DATE_TIME_SKELETON,
|
|
3384
|
+
return this.error(v.EXPECT_DATE_TIME_SKELETON, b);
|
|
3385
3385
|
var M = y;
|
|
3386
3386
|
this.locale && (M = li(y, this.locale));
|
|
3387
3387
|
var f = {
|
|
@@ -3391,7 +3391,7 @@ var wi = (
|
|
|
3391
3391
|
parsedOptions: this.shouldParseSkeletons ? ri(M) : {}
|
|
3392
3392
|
}, x = a === "date" ? T.date : T.time;
|
|
3393
3393
|
return {
|
|
3394
|
-
val: { type: x, value: n, location:
|
|
3394
|
+
val: { type: x, value: n, location: b, style: f },
|
|
3395
3395
|
err: null
|
|
3396
3396
|
};
|
|
3397
3397
|
}
|
|
@@ -3400,7 +3400,7 @@ var wi = (
|
|
|
3400
3400
|
val: {
|
|
3401
3401
|
type: a === "number" ? T.number : a === "date" ? T.date : T.time,
|
|
3402
3402
|
value: n,
|
|
3403
|
-
location:
|
|
3403
|
+
location: b,
|
|
3404
3404
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3405
3405
|
},
|
|
3406
3406
|
err: null
|
|
@@ -3527,9 +3527,9 @@ var wi = (
|
|
|
3527
3527
|
var m = this.parseMessage(t + 1, r, n);
|
|
3528
3528
|
if (m.err)
|
|
3529
3529
|
return m;
|
|
3530
|
-
var
|
|
3531
|
-
if (
|
|
3532
|
-
return
|
|
3530
|
+
var b = this.tryParseArgumentClose(p);
|
|
3531
|
+
if (b.err)
|
|
3532
|
+
return b;
|
|
3533
3533
|
a.push([
|
|
3534
3534
|
u,
|
|
3535
3535
|
{
|
|
@@ -3765,9 +3765,9 @@ function ve(e, t, r, n, i, o, s) {
|
|
|
3765
3765
|
continue;
|
|
3766
3766
|
}
|
|
3767
3767
|
if (pr(c)) {
|
|
3768
|
-
var m = c.children,
|
|
3768
|
+
var m = c.children, b = c.value, y = i[b];
|
|
3769
3769
|
if (!Oi(y))
|
|
3770
|
-
throw new Mi(
|
|
3770
|
+
throw new Mi(b, "function", s);
|
|
3771
3771
|
var M = ve(m, t, r, n, i, o), x = y(M.map(function(O) {
|
|
3772
3772
|
return O.value;
|
|
3773
3773
|
}));
|
|
@@ -4379,7 +4379,7 @@ if (typeof window != "undefined") {
|
|
|
4379
4379
|
}
|
|
4380
4380
|
};
|
|
4381
4381
|
};
|
|
4382
|
-
customElements.define = e(customElements.define), import("./GeneralLogout-
|
|
4382
|
+
customElements.define = e(customElements.define), import("./GeneralLogout-DeCJHu_R.js").then(({ default: t }) => {
|
|
4383
4383
|
!customElements.get("general-logout") && customElements.define("general-logout", t.element);
|
|
4384
4384
|
});
|
|
4385
4385
|
}
|
|
@@ -4401,12 +4401,12 @@ function wo(e) {
|
|
|
4401
4401
|
), m = (
|
|
4402
4402
|
/*isMobile*/
|
|
4403
4403
|
e[12] && To(e)
|
|
4404
|
-
),
|
|
4404
|
+
), b = Ee(
|
|
4405
4405
|
/*menuItems*/
|
|
4406
4406
|
e[7]
|
|
4407
4407
|
), y = [];
|
|
4408
|
-
for (let x = 0; x <
|
|
4409
|
-
y[x] = Xt(Vt(e,
|
|
4408
|
+
for (let x = 0; x < b.length; x += 1)
|
|
4409
|
+
y[x] = Xt(Vt(e, b, x));
|
|
4410
4410
|
let M = !/*isMobile*/
|
|
4411
4411
|
e[12] && Ho(e);
|
|
4412
4412
|
return {
|
|
@@ -4447,18 +4447,18 @@ function wo(e) {
|
|
|
4447
4447
|
x[12] && m.p(x, w), w[0] & /*selectedItem, menuItems, isMobile, openAccountSection*/
|
|
4448
4448
|
12672
|
|
4449
4449
|
) {
|
|
4450
|
-
|
|
4450
|
+
b = Ee(
|
|
4451
4451
|
/*menuItems*/
|
|
4452
4452
|
x[7]
|
|
4453
4453
|
);
|
|
4454
4454
|
let S;
|
|
4455
|
-
for (S = 0; S <
|
|
4456
|
-
const O = Vt(x,
|
|
4455
|
+
for (S = 0; S < b.length; S += 1) {
|
|
4456
|
+
const O = Vt(x, b, S);
|
|
4457
4457
|
y[S] ? y[S].p(O, w) : (y[S] = Xt(O), y[S].c(), y[S].m(h, null));
|
|
4458
4458
|
}
|
|
4459
4459
|
for (; S < y.length; S += 1)
|
|
4460
4460
|
y[S].d(1);
|
|
4461
|
-
y.length =
|
|
4461
|
+
y.length = b.length;
|
|
4462
4462
|
}
|
|
4463
4463
|
/*isMobile*/
|
|
4464
4464
|
x[12] || M.p(x, w);
|
|
@@ -4484,20 +4484,20 @@ function Po(e) {
|
|
|
4484
4484
|
(e[12] ? "PlayerAccountMenuHeaderMobile" : "")), _(l, "class", "PlayerAccountMenuList"), _(c, "class", "skeletonLogOut"), _(t, "class", "PlayerAccountMenuContainer " + /*isMobile*/
|
|
4485
4485
|
(e[12] ? "PlayerAccountMobileContainer" : ""));
|
|
4486
4486
|
},
|
|
4487
|
-
m(m,
|
|
4488
|
-
F(m, t,
|
|
4487
|
+
m(m, b) {
|
|
4488
|
+
F(m, t, b), g(t, r), h && h.m(r, null), g(r, n), g(r, i), g(r, o), g(r, s), g(t, a), g(t, l);
|
|
4489
4489
|
for (let y = 0; y < p.length; y += 1)
|
|
4490
4490
|
p[y] && p[y].m(l, null);
|
|
4491
4491
|
g(t, u), g(t, c);
|
|
4492
4492
|
},
|
|
4493
|
-
p(m,
|
|
4494
|
-
if (
|
|
4493
|
+
p(m, b) {
|
|
4494
|
+
if (b[0] & /*isMobile*/
|
|
4495
4495
|
4096) {
|
|
4496
4496
|
f = Ee(Array(18));
|
|
4497
4497
|
let y;
|
|
4498
4498
|
for (y = 0; y < f.length; y += 1) {
|
|
4499
4499
|
const M = Wt(m, f, y);
|
|
4500
|
-
p[y] ? p[y].p(M,
|
|
4500
|
+
p[y] ? p[y].p(M, b) : (p[y] = zt(M), p[y].c(), p[y].m(l, null));
|
|
4501
4501
|
}
|
|
4502
4502
|
for (; y < p.length; y += 1)
|
|
4503
4503
|
p[y].d(1);
|
|
@@ -4518,8 +4518,8 @@ function So(e) {
|
|
|
4518
4518
|
c() {
|
|
4519
4519
|
t = P("div"), r = W("svg"), n = W("defs"), i = W("style"), o = J(".aaa{fill:var(--emw--color-white, #FFFFFF);}"), s = W("g"), a = W("g"), l = W("path"), u = L(), c = P("h3"), f = J(h), _(l, "class", "aaa"), _(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), _(l, "transform", "translate(15 15) rotate(180)"), _(a, "transform", "translate(20 158)"), _(s, "transform", "translate(-20 -158)"), _(r, "xmlns", "http://www.w3.org/2000/svg"), _(r, "width", "15"), _(r, "height", "15"), _(r, "viewBox", "0 0 15 15"), _(c, "class", "PlayerAccountMenuCategoryTitle"), _(t, "class", "PlayerAccountMenuCategoryWrapper");
|
|
4520
4520
|
},
|
|
4521
|
-
m(
|
|
4522
|
-
F(
|
|
4521
|
+
m(b, y) {
|
|
4522
|
+
F(b, t, y), g(t, r), g(r, n), g(n, i), g(i, o), g(r, s), g(s, a), g(a, l), g(t, u), g(t, c), g(c, f), p || (m = [
|
|
4523
4523
|
Ge(
|
|
4524
4524
|
r,
|
|
4525
4525
|
"click",
|
|
@@ -4534,13 +4534,13 @@ function So(e) {
|
|
|
4534
4534
|
)
|
|
4535
4535
|
], p = !0);
|
|
4536
4536
|
},
|
|
4537
|
-
p(
|
|
4537
|
+
p(b, y) {
|
|
4538
4538
|
y[0] & /*$_*/
|
|
4539
4539
|
2048 && h !== (h = /*$_*/
|
|
4540
|
-
|
|
4540
|
+
b[11]("title") + "") && xe(f, h);
|
|
4541
4541
|
},
|
|
4542
|
-
d(
|
|
4543
|
-
|
|
4542
|
+
d(b) {
|
|
4543
|
+
b && $(t), p = !1, re(m);
|
|
4544
4544
|
}
|
|
4545
4545
|
};
|
|
4546
4546
|
}
|
|
@@ -4639,15 +4639,15 @@ function Xt(e) {
|
|
|
4639
4639
|
e[40].id && !/*isMobile*/
|
|
4640
4640
|
e[12] ? "PlayerAccountMenuActiveItemBox" : ""));
|
|
4641
4641
|
},
|
|
4642
|
-
m(m,
|
|
4643
|
-
F(m, t,
|
|
4642
|
+
m(m, b) {
|
|
4643
|
+
F(m, t, b), g(t, r), g(r, n), g(r, o), g(r, s), g(s, l), g(t, u), h || (f = Ge(t, "click", p), h = !0);
|
|
4644
4644
|
},
|
|
4645
|
-
p(m,
|
|
4646
|
-
e = m,
|
|
4645
|
+
p(m, b) {
|
|
4646
|
+
e = m, b[0] & /*menuItems*/
|
|
4647
4647
|
128 && !vt(n.src, i = /*menuItem*/
|
|
4648
|
-
e[40].img) && _(n, "src", i),
|
|
4648
|
+
e[40].img) && _(n, "src", i), b[0] & /*menuItems*/
|
|
4649
4649
|
128 && a !== (a = /*menuItem*/
|
|
4650
|
-
e[40].label + "") && xe(l, a),
|
|
4650
|
+
e[40].label + "") && xe(l, a), b[0] & /*selectedItem, menuItems*/
|
|
4651
4651
|
384 && c !== (c = "PlayerAccountMenuItemBox " + /*selectedItem*/
|
|
4652
4652
|
(e[8] === /*menuItem*/
|
|
4653
4653
|
e[40].id && !/*isMobile*/
|
|
@@ -4808,8 +4808,8 @@ function Io(e) {
|
|
|
4808
4808
|
}
|
|
4809
4809
|
function Oo(e, t, r) {
|
|
4810
4810
|
let n;
|
|
4811
|
-
Xr(e, bo, (
|
|
4812
|
-
let { endpoint: i = "" } = t, { cmsendpoint: o = "" } = t, { env: s = "" } = t, { session: a = "" } = t, { playerid: l = "" } = t, { lang: u = "en" } = t, { userroles: c = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: p = "" } = t, { activemenuitem: m = "" } = t, { mbsource:
|
|
4811
|
+
Xr(e, bo, (d) => r(11, n = d));
|
|
4812
|
+
let { endpoint: i = "" } = t, { cmsendpoint: o = "" } = t, { env: s = "" } = t, { session: a = "" } = t, { playerid: l = "" } = t, { lang: u = "en" } = t, { userroles: c = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: p = "" } = t, { activemenuitem: m = "" } = t, { mbsource: b } = t, y = !1, M = !1, x = !0, w, S, O = [], j, se = window.navigator.userAgent, Br = Gt(se) !== "PC", lt = "", ct = "";
|
|
4813
4813
|
window.matchMedia("(min-width: 768px)");
|
|
4814
4814
|
const Ir = () => {
|
|
4815
4815
|
fetch(p).then((B) => B.json()).then((B) => {
|
|
@@ -4820,22 +4820,23 @@ function Oo(e, t, r) {
|
|
|
4820
4820
|
console.error(B);
|
|
4821
4821
|
});
|
|
4822
4822
|
};
|
|
4823
|
-
Object.keys(kt).forEach((
|
|
4824
|
-
jt(
|
|
4823
|
+
Object.keys(kt).forEach((d) => {
|
|
4824
|
+
jt(d, kt[d]);
|
|
4825
4825
|
});
|
|
4826
|
-
const ht = (
|
|
4827
|
-
if (
|
|
4828
|
-
switch (
|
|
4826
|
+
const ht = (d) => {
|
|
4827
|
+
if (d.data)
|
|
4828
|
+
switch (d.data.type) {
|
|
4829
4829
|
case "UserSessionID":
|
|
4830
|
-
r(0, a =
|
|
4830
|
+
r(0, a = d.data.session);
|
|
4831
4831
|
break;
|
|
4832
4832
|
}
|
|
4833
4833
|
}, Or = () => {
|
|
4834
|
-
let
|
|
4835
|
-
|
|
4834
|
+
let d = Gt(se);
|
|
4835
|
+
if (d)
|
|
4836
|
+
return d === "PC" ? "dk" : "mtWeb";
|
|
4836
4837
|
}, Cr = () => {
|
|
4837
|
-
const
|
|
4838
|
-
|
|
4838
|
+
const d = new URL(`${o}/${u}/profile-menu?env=${s}`);
|
|
4839
|
+
d.searchParams.append("device", Or()), fetch(d.href).then((B) => B.json()).then((B) => {
|
|
4839
4840
|
r(7, O = B), pt();
|
|
4840
4841
|
}).catch((B) => {
|
|
4841
4842
|
console.error("Error getting menu items", B);
|
|
@@ -4843,13 +4844,13 @@ function Oo(e, t, r) {
|
|
|
4843
4844
|
r(22, y = !0);
|
|
4844
4845
|
});
|
|
4845
4846
|
}, Lr = () => {
|
|
4846
|
-
let
|
|
4847
|
-
|
|
4847
|
+
let d = new URL(`${i}/v1/player/${l}/profile`);
|
|
4848
|
+
d.searchParams.append("userRoles", c);
|
|
4848
4849
|
let B = {
|
|
4849
4850
|
method: "GET",
|
|
4850
4851
|
headers: { "X-SessionID": a }
|
|
4851
4852
|
};
|
|
4852
|
-
fetch(
|
|
4853
|
+
fetch(d.href, B).then((D) => D.json()).then(
|
|
4853
4854
|
(D) => {
|
|
4854
4855
|
r(9, lt = D.username), r(10, ct = D.email);
|
|
4855
4856
|
},
|
|
@@ -4859,11 +4860,11 @@ function Oo(e, t, r) {
|
|
|
4859
4860
|
).finally(() => {
|
|
4860
4861
|
r(23, M = !0);
|
|
4861
4862
|
});
|
|
4862
|
-
}, ft = (
|
|
4863
|
-
window.postMessage({ type: "ChangeAccountPage", page:
|
|
4863
|
+
}, ft = (d) => {
|
|
4864
|
+
window.postMessage({ type: "ChangeAccountPage", page: d }, window.location.href), r(8, j = d.id);
|
|
4864
4865
|
}, pt = () => {
|
|
4865
|
-
var
|
|
4866
|
-
r(8, j = (
|
|
4866
|
+
var d;
|
|
4867
|
+
r(8, j = (d = O.find((B) => B.path.includes(m))) == null ? void 0 : d.id);
|
|
4867
4868
|
}, Nr = () => {
|
|
4868
4869
|
yo(u);
|
|
4869
4870
|
}, Rr = () => {
|
|
@@ -4874,14 +4875,14 @@ function Oo(e, t, r) {
|
|
|
4874
4875
|
Kr(() => (window.addEventListener("message", ht, !1), () => {
|
|
4875
4876
|
window.removeEventListener("message", ht);
|
|
4876
4877
|
}));
|
|
4877
|
-
const Fr = (
|
|
4878
|
-
function Ur(
|
|
4879
|
-
je[
|
|
4880
|
-
w =
|
|
4878
|
+
const Fr = (d) => ft(d);
|
|
4879
|
+
function Ur(d) {
|
|
4880
|
+
je[d ? "unshift" : "push"](() => {
|
|
4881
|
+
w = d, r(5, w);
|
|
4881
4882
|
});
|
|
4882
4883
|
}
|
|
4883
|
-
return e.$$set = (
|
|
4884
|
-
"endpoint" in
|
|
4884
|
+
return e.$$set = (d) => {
|
|
4885
|
+
"endpoint" in d && r(1, i = d.endpoint), "cmsendpoint" in d && r(15, o = d.cmsendpoint), "env" in d && r(16, s = d.env), "session" in d && r(0, a = d.session), "playerid" in d && r(17, l = d.playerid), "lang" in d && r(18, u = d.lang), "userroles" in d && r(19, c = d.userroles), "clientstyling" in d && r(2, h = d.clientstyling), "clientstylingurl" in d && r(3, f = d.clientstylingurl), "translationurl" in d && r(20, p = d.translationurl), "activemenuitem" in d && r(21, m = d.activemenuitem), "mbsource" in d && r(4, b = d.mbsource);
|
|
4885
4886
|
}, e.$$.update = () => {
|
|
4886
4887
|
e.$$.dirty[0] & /*menuLoaded, playerInfoLoaded*/
|
|
4887
4888
|
12582912 && r(6, x = !y || !M), e.$$.dirty[0] & /*lang*/
|
|
@@ -4891,14 +4892,14 @@ function Oo(e, t, r) {
|
|
|
4891
4892
|
2097152 && m && pt(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4892
4893
|
36 && h && w && go(w, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4893
4894
|
40 && f && w && vo(w, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4894
|
-
48 &&
|
|
4895
|
+
48 && b && w && _o(w, `${b}.Style`, S), e.$$.dirty[0] & /*translationurl*/
|
|
4895
4896
|
1048576 && p && Ir();
|
|
4896
4897
|
}, [
|
|
4897
4898
|
a,
|
|
4898
4899
|
i,
|
|
4899
4900
|
h,
|
|
4900
4901
|
f,
|
|
4901
|
-
|
|
4902
|
+
b,
|
|
4902
4903
|
w,
|
|
4903
4904
|
x,
|
|
4904
4905
|
O,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountMenu-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountMenu-BONCpeyS.cjs")).then(e=>e.PlayerAccountMenu_ce).then(({default:e})=>{!customElements.get("player-account-menu")&&customElements.define("player-account-menu",e.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/PlayerAccountMenu-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/PlayerAccountMenu-gooXNa1g.js").then((e) => e.P).then(({ default: e }) => {
|
|
14
14
|
!customElements.get("player-account-menu") && customElements.define("player-account-menu", e.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;
|