@everymatrix/player-account-menu-nd 1.62.3 → 1.63.0

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.
@@ -1,4 +1,4 @@
1
- import { a as de, $ as ge, S as ye, i as pe, f as C, s as fe, c as he, b as Ae, n as O, d as F, e as L, g as h, h as be, j as V, o as Me, k as Pe, l as H, m as ee, p as a, q as k, r as m, t as g, u as W, v as z, w as we, x as D, y as T, z as X, A as ve, B as xe, C as _e, D as ke } from "./GeneralLogout-Dft2a1Gy.js";
1
+ import { a as de, $ as ge, S as ye, i as pe, f as C, s as fe, c as he, b as Ae, n as O, d as F, e as L, g as A, h as be, j as V, o as Me, k as Pe, l as H, m as ee, p as a, q as k, r as m, t as d, u as W, v as z, w as we, x as D, y as T, z as X, A as ve, B as xe, C as _e, D as ke } from "./GeneralLogout-Dft2a1Gy.js";
2
2
  import "../stencil/ui-skeleton-Bk5dn5mu.js";
3
3
  function Z(n, e) {
4
4
  de(n, e);
@@ -69,7 +69,7 @@ function K(n, e, t) {
69
69
  return l[38] = e[t], l;
70
70
  }
71
71
  function Fe(n) {
72
- let e, t, l, i, s, d, A, M, v, P, b, w, u = (
72
+ let e, t, l, i, s, g, h, M, v, P, b, w, u = (
73
73
  /*isMobile*/
74
74
  n[12] && Ee(n)
75
75
  ), c = (
@@ -85,23 +85,23 @@ function Fe(n) {
85
85
  n[12] && Te(n);
86
86
  return {
87
87
  c() {
88
- e = h("div"), t = h("div"), u && u.c(), l = k(), i = h("p"), s = z(
88
+ e = A("div"), t = A("div"), u && u.c(), l = k(), i = A("p"), s = z(
89
89
  /*profileUsername*/
90
90
  n[9]
91
- ), d = k(), A = h("p"), M = z(
91
+ ), g = k(), h = A("p"), M = z(
92
92
  /*profileEmail*/
93
93
  n[10]
94
- ), v = k(), c && c.c(), P = k(), b = h("div");
94
+ ), v = k(), c && c.c(), P = k(), b = A("div");
95
95
  for (let p = 0; p < o.length; p += 1)
96
96
  o[p].c();
97
- w = k(), _ && _.c(), g(i, "class", "PlayerAccountMenuUser"), g(A, "class", "PlayerAccountMenuEmail"), g(t, "class", "PlayerAccountMenuHeader " + /*isMobile*/
98
- (n[12] ? "PlayerAccountMenuHeaderMobile" : "")), g(b, "class", "PlayerAccountMenuList"), g(e, "class", "PlayerAccountMenuContainer " + /*isMobile*/
97
+ w = k(), _ && _.c(), d(i, "class", "PlayerAccountMenuUser"), d(i, "translate", "no"), d(h, "class", "PlayerAccountMenuEmail"), d(h, "translate", "no"), d(t, "class", "PlayerAccountMenuHeader " + /*isMobile*/
98
+ (n[12] ? "PlayerAccountMenuHeaderMobile" : "")), d(b, "class", "PlayerAccountMenuList"), d(e, "class", "PlayerAccountMenuContainer " + /*isMobile*/
99
99
  (n[12] ? "PlayerAccountMobileContainer" : "") + " " + /*mediaQuery*/
100
100
  (n[13].matches && /*isMobile*/
101
101
  n[12] ? "PlayerAccountTabletContainer" : ""));
102
102
  },
103
103
  m(p, I) {
104
- L(p, e, I), a(e, t), u && u.m(t, null), a(t, l), a(t, i), a(i, s), a(t, d), a(t, A), a(A, M), a(t, v), c && c.m(t, null), a(e, P), a(e, b);
104
+ L(p, e, I), a(e, t), u && u.m(t, null), a(t, l), a(t, i), a(i, s), a(t, g), a(t, h), a(h, M), a(t, v), c && c.m(t, null), a(e, P), a(e, b);
105
105
  for (let f = 0; f < o.length; f += 1)
106
106
  o[f] && o[f].m(b, null);
107
107
  a(e, w), _ && _.m(e, null);
@@ -145,7 +145,7 @@ function Fe(n) {
145
145
  };
146
146
  }
147
147
  function Le(n) {
148
- let e, t, l, i, s, d, A, M, v, P, b = (
148
+ let e, t, l, i, s, g, h, M, v, P, b = (
149
149
  /*isMobile*/
150
150
  n[12] && ze()
151
151
  ), w = H(Array(18)), u = [];
@@ -153,17 +153,17 @@ function Le(n) {
153
153
  u[c] = $(K(n, w, c));
154
154
  return {
155
155
  c() {
156
- e = h("div"), t = h("div"), b && b.c(), l = k(), i = h("ui-skeleton"), s = k(), d = h("ui-skeleton"), A = k(), M = h("div");
156
+ e = A("div"), t = A("div"), b && b.c(), l = k(), i = A("ui-skeleton"), s = k(), g = A("ui-skeleton"), h = k(), M = A("div");
157
157
  for (let c = 0; c < u.length; c += 1)
158
158
  u[c].c();
159
- v = k(), P = h("div"), P.innerHTML = '<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>', m(i, "structure", "title"), m(i, "width", "100px"), m(i, "height", "20px"), m(i, "margin-top", "20px"), m(d, "structure", "text"), m(d, "width", "200px"), m(d, "height", "20px"), g(t, "class", "PlayerAccountMenuHeader " + /*isMobile*/
160
- (n[12] ? "PlayerAccountMenuHeaderMobile" : "")), g(M, "class", "PlayerAccountMenuList"), g(P, "class", "skeletonLogOut"), g(e, "class", "PlayerAccountMenuContainer " + /*isMobile*/
159
+ v = k(), P = A("div"), P.innerHTML = '<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>', m(i, "structure", "title"), m(i, "width", "100px"), m(i, "height", "20px"), m(i, "margin-top", "20px"), m(g, "structure", "text"), m(g, "width", "200px"), m(g, "height", "20px"), d(t, "class", "PlayerAccountMenuHeader " + /*isMobile*/
160
+ (n[12] ? "PlayerAccountMenuHeaderMobile" : "")), d(M, "class", "PlayerAccountMenuList"), d(P, "class", "skeletonLogOut"), d(e, "class", "PlayerAccountMenuContainer " + /*isMobile*/
161
161
  (n[12] ? "PlayerAccountMobileContainer" : "") + " " + /*mediaQuery*/
162
162
  (n[13].matches && /*isMobile*/
163
163
  n[12] ? "PlayerAccountTabletContainer" : ""));
164
164
  },
165
165
  m(c, y) {
166
- L(c, e, y), a(e, t), b && b.m(t, null), a(t, l), a(t, i), a(t, s), a(t, d), a(e, A), a(e, M);
166
+ L(c, e, y), a(e, t), b && b.m(t, null), a(t, l), a(t, i), a(t, s), a(t, g), a(e, h), a(e, M);
167
167
  for (let o = 0; o < u.length; o += 1)
168
168
  u[o] && u[o].m(M, null);
169
169
  a(e, v), a(e, P);
@@ -188,16 +188,16 @@ function Le(n) {
188
188
  };
189
189
  }
190
190
  function Ee(n) {
191
- let e, t, l, i, s, d, A, M, v, P, b = (
191
+ let e, t, l, i, s, g, h, M, v, P, b = (
192
192
  /*$_*/
193
193
  n[11]("title") + ""
194
194
  ), w, u, c;
195
195
  return {
196
196
  c() {
197
- e = h("div"), t = T("svg"), l = T("defs"), i = T("style"), s = z(".aaa{fill:var(--emw--color-white, #FFFFFF);}"), d = T("g"), A = T("g"), M = T("path"), v = k(), P = h("h3"), w = z(b), g(M, "class", "aaa"), g(M, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), g(M, "transform", "translate(15 15) rotate(180)"), g(A, "transform", "translate(20 158)"), g(d, "transform", "translate(-20 -158)"), g(t, "xmlns", "http://www.w3.org/2000/svg"), g(t, "width", "15"), g(t, "height", "15"), g(t, "viewBox", "0 0 15 15"), g(P, "class", "PlayerAccountMenuCategoryTitle"), g(e, "class", "PlayerAccountMenuCategoryWrapper");
197
+ e = A("div"), t = T("svg"), l = T("defs"), i = T("style"), s = z(".aaa{fill:var(--emw--color-white, #FFFFFF);}"), g = T("g"), h = T("g"), M = T("path"), v = k(), P = A("h3"), w = z(b), 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(P, "class", "PlayerAccountMenuCategoryTitle"), d(e, "class", "PlayerAccountMenuCategoryWrapper");
198
198
  },
199
199
  m(y, o) {
200
- L(y, e, o), a(e, t), a(t, l), a(l, i), a(i, s), a(t, d), a(d, A), a(A, M), a(e, v), a(e, P), a(P, w), u || (c = [
200
+ L(y, e, o), a(e, t), a(t, l), a(l, i), a(i, s), a(t, g), a(g, h), a(h, M), a(e, v), a(e, P), a(P, w), u || (c = [
201
201
  D(
202
202
  t,
203
203
  "click",
@@ -226,7 +226,7 @@ function Be(n) {
226
226
  let e, t;
227
227
  return {
228
228
  c() {
229
- e = h("div"), t = h("general-logout"), m(
229
+ e = A("div"), t = A("general-logout"), m(
230
230
  t,
231
231
  "endpoint",
232
232
  /*endpoint*/
@@ -251,7 +251,7 @@ function Be(n) {
251
251
  "mbsource",
252
252
  /*mbsource*/
253
253
  n[4]
254
- ), g(e, "class", "PlayerAccountLogOutArea");
254
+ ), d(e, "class", "PlayerAccountLogOutArea");
255
255
  },
256
256
  m(l, i) {
257
257
  L(l, e, i), a(e, t);
@@ -295,7 +295,7 @@ function Be(n) {
295
295
  };
296
296
  }
297
297
  function Y(n) {
298
- let e, t, l, i, s, d, A = (
298
+ let e, t, l, i, s, g, h = (
299
299
  /*menuItem*/
300
300
  n[41].label + ""
301
301
  ), M, v, P, b, w;
@@ -310,26 +310,26 @@ function Y(n) {
310
310
  }
311
311
  return {
312
312
  c() {
313
- e = h("div"), t = h("p"), l = h("img"), s = k(), d = h("span"), M = z(A), v = k(), g(l, "class", "PlayerAccountMenuItemIcon " + /*isMobile*/
313
+ e = A("div"), t = A("p"), l = A("img"), s = k(), g = A("span"), M = z(h), v = k(), d(l, "class", "PlayerAccountMenuItemIcon " + /*isMobile*/
314
314
  (n[12] ? "PlayerAccountMenuItemIconMobile" : "")), X(l.src, i = /*menuItem*/
315
- n[41].img) || g(l, "src", i), g(d, "class", "PlayerAccountMenuItemTitle"), g(t, "class", "PlayerAccountMenuItemWrapper"), g(e, "class", P = "PlayerAccountMenuItemBox " + /*selectedItem*/
315
+ n[41].img) || d(l, "src", i), d(g, "class", "PlayerAccountMenuItemTitle"), d(t, "class", "PlayerAccountMenuItemWrapper"), d(e, "class", P = "PlayerAccountMenuItemBox " + /*selectedItem*/
316
316
  (n[8] === /*menuItem*/
317
317
  n[41].id && !/*isMobile*/
318
318
  n[12] ? "PlayerAccountMenuActiveItemBox" : ""));
319
319
  },
320
320
  m(c, y) {
321
- L(c, e, y), a(e, t), a(t, l), a(t, s), a(t, d), a(d, M), a(e, v), b || (w = D(e, "click", u), b = !0);
321
+ L(c, e, y), a(e, t), a(t, l), a(t, s), a(t, g), a(g, M), a(e, v), b || (w = D(e, "click", u), b = !0);
322
322
  },
323
323
  p(c, y) {
324
324
  n = c, y[0] & /*menuItems*/
325
325
  128 && !X(l.src, i = /*menuItem*/
326
- n[41].img) && g(l, "src", i), y[0] & /*menuItems*/
327
- 128 && A !== (A = /*menuItem*/
328
- n[41].label + "") && W(M, A), y[0] & /*selectedItem, menuItems*/
326
+ n[41].img) && d(l, "src", i), y[0] & /*menuItems*/
327
+ 128 && h !== (h = /*menuItem*/
328
+ n[41].label + "") && W(M, h), y[0] & /*selectedItem, menuItems*/
329
329
  384 && P !== (P = "PlayerAccountMenuItemBox " + /*selectedItem*/
330
330
  (n[8] === /*menuItem*/
331
331
  n[41].id && !/*isMobile*/
332
- n[12] ? "PlayerAccountMenuActiveItemBox" : "")) && g(e, "class", P);
332
+ n[12] ? "PlayerAccountMenuActiveItemBox" : "")) && d(e, "class", P);
333
333
  },
334
334
  d(c) {
335
335
  c && F(e), b = !1, w();
@@ -340,7 +340,7 @@ function Te(n) {
340
340
  let e, t;
341
341
  return {
342
342
  c() {
343
- e = h("div"), t = h("general-logout"), m(
343
+ e = A("div"), t = A("general-logout"), m(
344
344
  t,
345
345
  "endpoint",
346
346
  /*endpoint*/
@@ -365,7 +365,7 @@ function Te(n) {
365
365
  "mbsource",
366
366
  /*mbsource*/
367
367
  n[4]
368
- ), g(e, "class", "PlayerAccountLogOutArea");
368
+ ), d(e, "class", "PlayerAccountLogOutArea");
369
369
  },
370
370
  m(l, i) {
371
371
  L(l, e, i), a(e, t);
@@ -412,7 +412,7 @@ function ze(n) {
412
412
  let e;
413
413
  return {
414
414
  c() {
415
- e = h("div"), e.innerHTML = '<ui-skeleton structure="title" width="30px" height="40px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="40px"></ui-skeleton>', g(e, "class", "PlayerAccountMenuCategoryWrapper");
415
+ e = A("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");
416
416
  },
417
417
  m(t, l) {
418
418
  L(t, e, l);
@@ -426,7 +426,7 @@ function He(n) {
426
426
  let e;
427
427
  return {
428
428
  c() {
429
- e = h("ui-skeleton"), m(e, "structure", "circle"), m(e, "size", "20px");
429
+ e = A("ui-skeleton"), m(e, "structure", "circle"), m(e, "size", "20px");
430
430
  },
431
431
  m(t, l) {
432
432
  L(t, e, l);
@@ -441,26 +441,26 @@ function $(n) {
441
441
  n[12] && He();
442
442
  return {
443
443
  c() {
444
- e = h("div"), s && s.c(), t = k(), l = h("ui-skeleton"), i = k(), m(l, "structure", "rectangle"), m(l, "width", "100%"), m(
444
+ e = A("div"), s && s.c(), t = k(), l = A("ui-skeleton"), i = k(), m(l, "structure", "rectangle"), m(l, "width", "100%"), m(
445
445
  l,
446
446
  "height",
447
447
  /*isMobile*/
448
448
  n[12] ? "60px" : "20px"
449
- ), g(e, "class", "PlayerAccountItemWrap " + /*isMobile*/
449
+ ), d(e, "class", "PlayerAccountItemWrap " + /*isMobile*/
450
450
  (n[12] ? "PlayerAccountItemWrapMobile" : ""));
451
451
  },
452
- m(d, A) {
453
- L(d, e, A), s && s.m(e, null), a(e, t), a(e, l), a(e, i);
452
+ m(g, h) {
453
+ L(g, e, h), s && s.m(e, null), a(e, t), a(e, l), a(e, i);
454
454
  },
455
455
  p: O,
456
- d(d) {
457
- d && F(e), s && s.d();
456
+ d(g) {
457
+ g && F(e), s && s.d();
458
458
  }
459
459
  };
460
460
  }
461
461
  function We(n) {
462
462
  let e;
463
- function t(s, d) {
463
+ function t(s, g) {
464
464
  return (
465
465
  /*skeletonLoading*/
466
466
  s[6] ? Le : Fe
@@ -469,13 +469,13 @@ function We(n) {
469
469
  let l = t(n), i = l(n);
470
470
  return {
471
471
  c() {
472
- e = h("div"), i.c();
472
+ e = A("div"), i.c();
473
473
  },
474
- m(s, d) {
475
- L(s, e, d), i.m(e, null), n[27](e);
474
+ m(s, g) {
475
+ L(s, e, g), i.m(e, null), n[27](e);
476
476
  },
477
- p(s, d) {
478
- l === (l = t(s)) && i ? i.p(s, d) : (i.d(1), i = l(s), i && (i.c(), i.m(e, null)));
477
+ p(s, g) {
478
+ l === (l = t(s)) && i ? i.p(s, g) : (i.d(1), i = l(s), i && (i.c(), i.m(e, null)));
479
479
  },
480
480
  i: O,
481
481
  o: O,
@@ -487,7 +487,7 @@ function We(n) {
487
487
  function Se(n, e, t) {
488
488
  let l;
489
489
  be(n, ve, (r) => t(11, l = r));
490
- let { endpoint: i = "" } = e, { cmsendpoint: s = "" } = e, { env: d = "" } = e, { session: A = "" } = e, { playerid: M = "" } = e, { lang: v = "en" } = e, { selecteditem: P = "" } = e, { userroles: b = "" } = e, { clientstyling: w = "" } = e, { clientstylingurl: u = "" } = e, { mbsource: c } = e, { translationurl: y = "" } = e, { activemenuitem: o = "" } = e, _ = !1, p = !1, I = !0, f, B = [], S, U = window.navigator.userAgent, te = V(U) !== "PC", j = "", R = "";
490
+ let { endpoint: i = "" } = e, { cmsendpoint: s = "" } = e, { env: g = "" } = e, { session: h = "" } = e, { playerid: M = "" } = e, { lang: v = "en" } = e, { selecteditem: P = "" } = e, { userroles: b = "" } = e, { clientstyling: w = "" } = e, { clientstylingurl: u = "" } = e, { mbsource: c } = e, { translationurl: y = "" } = e, { activemenuitem: o = "" } = e, _ = !1, p = !1, I = !0, f, B = [], S, U = window.navigator.userAgent, te = V(U) !== "PC", j = "", R = "";
491
491
  const ne = window.matchMedia("(min-width: 768px)"), le = () => {
492
492
  fetch(y).then((x) => x.json()).then((x) => {
493
493
  Object.keys(x).forEach((E) => {
@@ -507,7 +507,7 @@ function Se(n, e, t) {
507
507
  availableMenuItemsArray = r.data.accountMenuInfo;
508
508
  break;
509
509
  case "UserSessionID":
510
- t(0, A = r.data.session);
510
+ t(0, h = r.data.session);
511
511
  break;
512
512
  }
513
513
  }, re = () => {
@@ -515,7 +515,7 @@ function Se(n, e, t) {
515
515
  if (r)
516
516
  return r === "PC" ? "dk" : "mtWeb";
517
517
  }, ie = () => {
518
- const r = new URL(`${s}/${v}/profile-menu?env=${d}`);
518
+ const r = new URL(`${s}/${v}/profile-menu?env=${g}`);
519
519
  r.searchParams.append("device", re()), fetch(r.href).then((x) => x.json()).then((x) => {
520
520
  t(7, B = x), G();
521
521
  }).catch((x) => {
@@ -528,7 +528,7 @@ function Se(n, e, t) {
528
528
  r.searchParams.append("userRoles", b);
529
529
  let x = {
530
530
  method: "GET",
531
- headers: { "X-SessionID": A }
531
+ headers: { "X-SessionID": h }
532
532
  };
533
533
  fetch(r.href, x).then((E) => E.json()).then(
534
534
  (E) => {
@@ -562,20 +562,20 @@ function Se(n, e, t) {
562
562
  });
563
563
  }
564
564
  return n.$$set = (r) => {
565
- "endpoint" in r && t(1, i = r.endpoint), "cmsendpoint" in r && t(16, s = r.cmsendpoint), "env" in r && t(17, d = r.env), "session" in r && t(0, A = r.session), "playerid" in r && t(18, M = r.playerid), "lang" in r && t(19, v = r.lang), "selecteditem" in r && t(20, P = r.selecteditem), "userroles" in r && t(21, b = r.userroles), "clientstyling" in r && t(2, w = r.clientstyling), "clientstylingurl" in r && t(3, u = r.clientstylingurl), "mbsource" in r && t(4, c = r.mbsource), "translationurl" in r && t(22, y = r.translationurl), "activemenuitem" in r && t(23, o = r.activemenuitem);
565
+ "endpoint" in r && t(1, i = r.endpoint), "cmsendpoint" in r && t(16, s = r.cmsendpoint), "env" in r && t(17, g = r.env), "session" in r && t(0, h = r.session), "playerid" in r && t(18, M = r.playerid), "lang" in r && t(19, v = r.lang), "selecteditem" in r && t(20, P = r.selecteditem), "userroles" in r && t(21, b = r.userroles), "clientstyling" in r && t(2, w = r.clientstyling), "clientstylingurl" in r && t(3, u = r.clientstylingurl), "mbsource" in r && t(4, c = r.mbsource), "translationurl" in r && t(22, y = r.translationurl), "activemenuitem" in r && t(23, o = r.activemenuitem);
566
566
  }, n.$$.update = () => {
567
567
  n.$$.dirty[0] & /*menuLoaded, playerInfoLoaded*/
568
568
  50331648 && t(6, I = !_ || !p), n.$$.dirty[0] & /*lang*/
569
569
  524288 && v && ce(), n.$$.dirty[0] & /*endpoint, session, playerid, lang*/
570
- 786435 && i && A && M && v && se(), n.$$.dirty[0] & /*cmsendpoint, lang, env*/
571
- 720896 && s && v && d && ie(), n.$$.dirty[0] & /*activemenuitem*/
570
+ 786435 && i && h && M && v && se(), n.$$.dirty[0] & /*cmsendpoint, lang, env*/
571
+ 720896 && s && v && g && ie(), n.$$.dirty[0] & /*activemenuitem*/
572
572
  8388608 && o && G(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
573
573
  36 && w && f && xe(f, w), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
574
574
  40 && u && f && _e(f, u), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
575
575
  48 && c && f && ke(f, `${c}.Style`), n.$$.dirty[0] & /*translationurl*/
576
576
  4194304 && y && le();
577
577
  }, [
578
- A,
578
+ h,
579
579
  i,
580
580
  w,
581
581
  u,
@@ -592,7 +592,7 @@ function Se(n, e, t) {
592
592
  q,
593
593
  ae,
594
594
  s,
595
- d,
595
+ g,
596
596
  M,
597
597
  v,
598
598
  P,
@@ -1,4 +1,4 @@
1
- import { a as de, $ as ge, c as ye, S as pe, i as fe, s as he, f as C, b as Ae, n as O, d as F, e as L, g as h, h as be, j as V, o as Me, k as Pe, l as H, m as ee, p as a, q as k, r as m, t as g, u as W, v as z, w as we, x as D, y as T, z as X, A as ve, B as xe, C as _e, D as ke } from "./GeneralLogout-AfFowssF.js";
1
+ import { a as de, $ as ge, c as ye, S as pe, i as fe, s as he, f as C, b as Ae, n as O, d as F, e as L, g as A, h as be, j as V, o as Me, k as Pe, l as H, m as ee, p as a, q as k, r as m, t as d, u as W, v as z, w as we, x as D, y as T, z as X, A as ve, B as xe, C as _e, D as ke } from "./GeneralLogout-AfFowssF.js";
2
2
  import "../stencil/ui-skeleton-4ifa-7wH.js";
3
3
  function Z(n, e) {
4
4
  de(n, e);
@@ -69,7 +69,7 @@ function K(n, e, t) {
69
69
  return l[38] = e[t], l;
70
70
  }
71
71
  function Fe(n) {
72
- let e, t, l, i, s, d, A, M, v, P, b, w, u = (
72
+ let e, t, l, i, s, g, h, M, v, P, b, w, u = (
73
73
  /*isMobile*/
74
74
  n[12] && Ee(n)
75
75
  ), c = (
@@ -85,23 +85,23 @@ function Fe(n) {
85
85
  n[12] && Te(n);
86
86
  return {
87
87
  c() {
88
- e = h("div"), t = h("div"), u && u.c(), l = k(), i = h("p"), s = z(
88
+ e = A("div"), t = A("div"), u && u.c(), l = k(), i = A("p"), s = z(
89
89
  /*profileUsername*/
90
90
  n[9]
91
- ), d = k(), A = h("p"), M = z(
91
+ ), g = k(), h = A("p"), M = z(
92
92
  /*profileEmail*/
93
93
  n[10]
94
- ), v = k(), c && c.c(), P = k(), b = h("div");
94
+ ), v = k(), c && c.c(), P = k(), b = A("div");
95
95
  for (let p = 0; p < o.length; p += 1)
96
96
  o[p].c();
97
- w = k(), x && x.c(), g(i, "class", "PlayerAccountMenuUser"), g(A, "class", "PlayerAccountMenuEmail"), g(t, "class", "PlayerAccountMenuHeader " + /*isMobile*/
98
- (n[12] ? "PlayerAccountMenuHeaderMobile" : "")), g(b, "class", "PlayerAccountMenuList"), g(e, "class", "PlayerAccountMenuContainer " + /*isMobile*/
97
+ w = k(), x && x.c(), d(i, "class", "PlayerAccountMenuUser"), d(i, "translate", "no"), d(h, "class", "PlayerAccountMenuEmail"), d(h, "translate", "no"), d(t, "class", "PlayerAccountMenuHeader " + /*isMobile*/
98
+ (n[12] ? "PlayerAccountMenuHeaderMobile" : "")), d(b, "class", "PlayerAccountMenuList"), d(e, "class", "PlayerAccountMenuContainer " + /*isMobile*/
99
99
  (n[12] ? "PlayerAccountMobileContainer" : "") + " " + /*mediaQuery*/
100
100
  (n[13].matches && /*isMobile*/
101
101
  n[12] ? "PlayerAccountTabletContainer" : ""));
102
102
  },
103
103
  m(p, I) {
104
- L(p, e, I), a(e, t), u && u.m(t, null), a(t, l), a(t, i), a(i, s), a(t, d), a(t, A), a(A, M), a(t, v), c && c.m(t, null), a(e, P), a(e, b);
104
+ L(p, e, I), a(e, t), u && u.m(t, null), a(t, l), a(t, i), a(i, s), a(t, g), a(t, h), a(h, M), a(t, v), c && c.m(t, null), a(e, P), a(e, b);
105
105
  for (let f = 0; f < o.length; f += 1)
106
106
  o[f] && o[f].m(b, null);
107
107
  a(e, w), x && x.m(e, null);
@@ -145,7 +145,7 @@ function Fe(n) {
145
145
  };
146
146
  }
147
147
  function Le(n) {
148
- let e, t, l, i, s, d, A, M, v, P, b = (
148
+ let e, t, l, i, s, g, h, M, v, P, b = (
149
149
  /*isMobile*/
150
150
  n[12] && ze()
151
151
  ), w = H(Array(18)), u = [];
@@ -153,17 +153,17 @@ function Le(n) {
153
153
  u[c] = $(K(n, w, c));
154
154
  return {
155
155
  c() {
156
- e = h("div"), t = h("div"), b && b.c(), l = k(), i = h("ui-skeleton"), s = k(), d = h("ui-skeleton"), A = k(), M = h("div");
156
+ e = A("div"), t = A("div"), b && b.c(), l = k(), i = A("ui-skeleton"), s = k(), g = A("ui-skeleton"), h = k(), M = A("div");
157
157
  for (let c = 0; c < u.length; c += 1)
158
158
  u[c].c();
159
- v = k(), P = h("div"), P.innerHTML = '<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>', m(i, "structure", "title"), m(i, "width", "100px"), m(i, "height", "20px"), m(i, "margin-top", "20px"), m(d, "structure", "text"), m(d, "width", "200px"), m(d, "height", "20px"), g(t, "class", "PlayerAccountMenuHeader " + /*isMobile*/
160
- (n[12] ? "PlayerAccountMenuHeaderMobile" : "")), g(M, "class", "PlayerAccountMenuList"), g(P, "class", "skeletonLogOut"), g(e, "class", "PlayerAccountMenuContainer " + /*isMobile*/
159
+ v = k(), P = A("div"), P.innerHTML = '<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>', m(i, "structure", "title"), m(i, "width", "100px"), m(i, "height", "20px"), m(i, "margin-top", "20px"), m(g, "structure", "text"), m(g, "width", "200px"), m(g, "height", "20px"), d(t, "class", "PlayerAccountMenuHeader " + /*isMobile*/
160
+ (n[12] ? "PlayerAccountMenuHeaderMobile" : "")), d(M, "class", "PlayerAccountMenuList"), d(P, "class", "skeletonLogOut"), d(e, "class", "PlayerAccountMenuContainer " + /*isMobile*/
161
161
  (n[12] ? "PlayerAccountMobileContainer" : "") + " " + /*mediaQuery*/
162
162
  (n[13].matches && /*isMobile*/
163
163
  n[12] ? "PlayerAccountTabletContainer" : ""));
164
164
  },
165
165
  m(c, y) {
166
- L(c, e, y), a(e, t), b && b.m(t, null), a(t, l), a(t, i), a(t, s), a(t, d), a(e, A), a(e, M);
166
+ L(c, e, y), a(e, t), b && b.m(t, null), a(t, l), a(t, i), a(t, s), a(t, g), a(e, h), a(e, M);
167
167
  for (let o = 0; o < u.length; o += 1)
168
168
  u[o] && u[o].m(M, null);
169
169
  a(e, v), a(e, P);
@@ -188,16 +188,16 @@ function Le(n) {
188
188
  };
189
189
  }
190
190
  function Ee(n) {
191
- let e, t, l, i, s, d, A, M, v, P, b = (
191
+ let e, t, l, i, s, g, h, M, v, P, b = (
192
192
  /*$_*/
193
193
  n[11]("title") + ""
194
194
  ), w, u, c;
195
195
  return {
196
196
  c() {
197
- e = h("div"), t = T("svg"), l = T("defs"), i = T("style"), s = z(".aaa{fill:var(--emw--color-white, #FFFFFF);}"), d = T("g"), A = T("g"), M = T("path"), v = k(), P = h("h3"), w = z(b), g(M, "class", "aaa"), g(M, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), g(M, "transform", "translate(15 15) rotate(180)"), g(A, "transform", "translate(20 158)"), g(d, "transform", "translate(-20 -158)"), g(t, "xmlns", "http://www.w3.org/2000/svg"), g(t, "width", "15"), g(t, "height", "15"), g(t, "viewBox", "0 0 15 15"), g(P, "class", "PlayerAccountMenuCategoryTitle"), g(e, "class", "PlayerAccountMenuCategoryWrapper");
197
+ e = A("div"), t = T("svg"), l = T("defs"), i = T("style"), s = z(".aaa{fill:var(--emw--color-white, #FFFFFF);}"), g = T("g"), h = T("g"), M = T("path"), v = k(), P = A("h3"), w = z(b), 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(P, "class", "PlayerAccountMenuCategoryTitle"), d(e, "class", "PlayerAccountMenuCategoryWrapper");
198
198
  },
199
199
  m(y, o) {
200
- L(y, e, o), a(e, t), a(t, l), a(l, i), a(i, s), a(t, d), a(d, A), a(A, M), a(e, v), a(e, P), a(P, w), u || (c = [
200
+ L(y, e, o), a(e, t), a(t, l), a(l, i), a(i, s), a(t, g), a(g, h), a(h, M), a(e, v), a(e, P), a(P, w), u || (c = [
201
201
  D(
202
202
  t,
203
203
  "click",
@@ -226,7 +226,7 @@ function Be(n) {
226
226
  let e, t;
227
227
  return {
228
228
  c() {
229
- e = h("div"), t = h("general-logout"), m(
229
+ e = A("div"), t = A("general-logout"), m(
230
230
  t,
231
231
  "endpoint",
232
232
  /*endpoint*/
@@ -251,7 +251,7 @@ function Be(n) {
251
251
  "mbsource",
252
252
  /*mbsource*/
253
253
  n[4]
254
- ), g(e, "class", "PlayerAccountLogOutArea");
254
+ ), d(e, "class", "PlayerAccountLogOutArea");
255
255
  },
256
256
  m(l, i) {
257
257
  L(l, e, i), a(e, t);
@@ -295,7 +295,7 @@ function Be(n) {
295
295
  };
296
296
  }
297
297
  function Y(n) {
298
- let e, t, l, i, s, d, A = (
298
+ let e, t, l, i, s, g, h = (
299
299
  /*menuItem*/
300
300
  n[41].label + ""
301
301
  ), M, v, P, b, w;
@@ -310,26 +310,26 @@ function Y(n) {
310
310
  }
311
311
  return {
312
312
  c() {
313
- e = h("div"), t = h("p"), l = h("img"), s = k(), d = h("span"), M = z(A), v = k(), g(l, "class", "PlayerAccountMenuItemIcon " + /*isMobile*/
313
+ e = A("div"), t = A("p"), l = A("img"), s = k(), g = A("span"), M = z(h), v = k(), d(l, "class", "PlayerAccountMenuItemIcon " + /*isMobile*/
314
314
  (n[12] ? "PlayerAccountMenuItemIconMobile" : "")), X(l.src, i = /*menuItem*/
315
- n[41].img) || g(l, "src", i), g(d, "class", "PlayerAccountMenuItemTitle"), g(t, "class", "PlayerAccountMenuItemWrapper"), g(e, "class", P = "PlayerAccountMenuItemBox " + /*selectedItem*/
315
+ n[41].img) || d(l, "src", i), d(g, "class", "PlayerAccountMenuItemTitle"), d(t, "class", "PlayerAccountMenuItemWrapper"), d(e, "class", P = "PlayerAccountMenuItemBox " + /*selectedItem*/
316
316
  (n[8] === /*menuItem*/
317
317
  n[41].id && !/*isMobile*/
318
318
  n[12] ? "PlayerAccountMenuActiveItemBox" : ""));
319
319
  },
320
320
  m(c, y) {
321
- L(c, e, y), a(e, t), a(t, l), a(t, s), a(t, d), a(d, M), a(e, v), b || (w = D(e, "click", u), b = !0);
321
+ L(c, e, y), a(e, t), a(t, l), a(t, s), a(t, g), a(g, M), a(e, v), b || (w = D(e, "click", u), b = !0);
322
322
  },
323
323
  p(c, y) {
324
324
  n = c, y[0] & /*menuItems*/
325
325
  128 && !X(l.src, i = /*menuItem*/
326
- n[41].img) && g(l, "src", i), y[0] & /*menuItems*/
327
- 128 && A !== (A = /*menuItem*/
328
- n[41].label + "") && W(M, A), y[0] & /*selectedItem, menuItems*/
326
+ n[41].img) && d(l, "src", i), y[0] & /*menuItems*/
327
+ 128 && h !== (h = /*menuItem*/
328
+ n[41].label + "") && W(M, h), y[0] & /*selectedItem, menuItems*/
329
329
  384 && P !== (P = "PlayerAccountMenuItemBox " + /*selectedItem*/
330
330
  (n[8] === /*menuItem*/
331
331
  n[41].id && !/*isMobile*/
332
- n[12] ? "PlayerAccountMenuActiveItemBox" : "")) && g(e, "class", P);
332
+ n[12] ? "PlayerAccountMenuActiveItemBox" : "")) && d(e, "class", P);
333
333
  },
334
334
  d(c) {
335
335
  c && F(e), b = !1, w();
@@ -340,7 +340,7 @@ function Te(n) {
340
340
  let e, t;
341
341
  return {
342
342
  c() {
343
- e = h("div"), t = h("general-logout"), m(
343
+ e = A("div"), t = A("general-logout"), m(
344
344
  t,
345
345
  "endpoint",
346
346
  /*endpoint*/
@@ -365,7 +365,7 @@ function Te(n) {
365
365
  "mbsource",
366
366
  /*mbsource*/
367
367
  n[4]
368
- ), g(e, "class", "PlayerAccountLogOutArea");
368
+ ), d(e, "class", "PlayerAccountLogOutArea");
369
369
  },
370
370
  m(l, i) {
371
371
  L(l, e, i), a(e, t);
@@ -412,7 +412,7 @@ function ze(n) {
412
412
  let e;
413
413
  return {
414
414
  c() {
415
- e = h("div"), e.innerHTML = '<ui-skeleton structure="title" width="30px" height="40px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="40px"></ui-skeleton>', g(e, "class", "PlayerAccountMenuCategoryWrapper");
415
+ e = A("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");
416
416
  },
417
417
  m(t, l) {
418
418
  L(t, e, l);
@@ -426,7 +426,7 @@ function He(n) {
426
426
  let e;
427
427
  return {
428
428
  c() {
429
- e = h("ui-skeleton"), m(e, "structure", "circle"), m(e, "size", "20px");
429
+ e = A("ui-skeleton"), m(e, "structure", "circle"), m(e, "size", "20px");
430
430
  },
431
431
  m(t, l) {
432
432
  L(t, e, l);
@@ -441,26 +441,26 @@ function $(n) {
441
441
  n[12] && He();
442
442
  return {
443
443
  c() {
444
- e = h("div"), s && s.c(), t = k(), l = h("ui-skeleton"), i = k(), m(l, "structure", "rectangle"), m(l, "width", "100%"), m(
444
+ e = A("div"), s && s.c(), t = k(), l = A("ui-skeleton"), i = k(), m(l, "structure", "rectangle"), m(l, "width", "100%"), m(
445
445
  l,
446
446
  "height",
447
447
  /*isMobile*/
448
448
  n[12] ? "60px" : "20px"
449
- ), g(e, "class", "PlayerAccountItemWrap " + /*isMobile*/
449
+ ), d(e, "class", "PlayerAccountItemWrap " + /*isMobile*/
450
450
  (n[12] ? "PlayerAccountItemWrapMobile" : ""));
451
451
  },
452
- m(d, A) {
453
- L(d, e, A), s && s.m(e, null), a(e, t), a(e, l), a(e, i);
452
+ m(g, h) {
453
+ L(g, e, h), s && s.m(e, null), a(e, t), a(e, l), a(e, i);
454
454
  },
455
455
  p: O,
456
- d(d) {
457
- d && F(e), s && s.d();
456
+ d(g) {
457
+ g && F(e), s && s.d();
458
458
  }
459
459
  };
460
460
  }
461
461
  function We(n) {
462
462
  let e;
463
- function t(s, d) {
463
+ function t(s, g) {
464
464
  return (
465
465
  /*skeletonLoading*/
466
466
  s[6] ? Le : Fe
@@ -469,13 +469,13 @@ function We(n) {
469
469
  let l = t(n), i = l(n);
470
470
  return {
471
471
  c() {
472
- e = h("div"), i.c();
472
+ e = A("div"), i.c();
473
473
  },
474
- m(s, d) {
475
- L(s, e, d), i.m(e, null), n[27](e);
474
+ m(s, g) {
475
+ L(s, e, g), i.m(e, null), n[27](e);
476
476
  },
477
- p(s, d) {
478
- l === (l = t(s)) && i ? i.p(s, d) : (i.d(1), i = l(s), i && (i.c(), i.m(e, null)));
477
+ p(s, g) {
478
+ l === (l = t(s)) && i ? i.p(s, g) : (i.d(1), i = l(s), i && (i.c(), i.m(e, null)));
479
479
  },
480
480
  i: O,
481
481
  o: O,
@@ -487,7 +487,7 @@ function We(n) {
487
487
  function Se(n, e, t) {
488
488
  let l;
489
489
  be(n, ve, (r) => t(11, l = r));
490
- let { endpoint: i = "" } = e, { cmsendpoint: s = "" } = e, { env: d = "" } = e, { session: A = "" } = e, { playerid: M = "" } = e, { lang: v = "en" } = e, { selecteditem: P = "" } = e, { userroles: b = "" } = e, { clientstyling: w = "" } = e, { clientstylingurl: u = "" } = e, { mbsource: c } = e, { translationurl: y = "" } = e, { activemenuitem: o = "" } = e, x = !1, p = !1, I = !0, f, B = [], S, U = window.navigator.userAgent, te = V(U) !== "PC", j = "", R = "";
490
+ let { endpoint: i = "" } = e, { cmsendpoint: s = "" } = e, { env: g = "" } = e, { session: h = "" } = e, { playerid: M = "" } = e, { lang: v = "en" } = e, { selecteditem: P = "" } = e, { userroles: b = "" } = e, { clientstyling: w = "" } = e, { clientstylingurl: u = "" } = e, { mbsource: c } = e, { translationurl: y = "" } = e, { activemenuitem: o = "" } = e, x = !1, p = !1, I = !0, f, B = [], S, U = window.navigator.userAgent, te = V(U) !== "PC", j = "", R = "";
491
491
  const ne = window.matchMedia("(min-width: 768px)"), le = () => {
492
492
  fetch(y).then((_) => _.json()).then((_) => {
493
493
  Object.keys(_).forEach((E) => {
@@ -507,7 +507,7 @@ function Se(n, e, t) {
507
507
  availableMenuItemsArray = r.data.accountMenuInfo;
508
508
  break;
509
509
  case "UserSessionID":
510
- t(0, A = r.data.session);
510
+ t(0, h = r.data.session);
511
511
  break;
512
512
  }
513
513
  }, re = () => {
@@ -515,7 +515,7 @@ function Se(n, e, t) {
515
515
  if (r)
516
516
  return r === "PC" ? "dk" : "mtWeb";
517
517
  }, ie = () => {
518
- const r = new URL(`${s}/${v}/profile-menu?env=${d}`);
518
+ const r = new URL(`${s}/${v}/profile-menu?env=${g}`);
519
519
  r.searchParams.append("device", re()), fetch(r.href).then((_) => _.json()).then((_) => {
520
520
  t(7, B = _), G();
521
521
  }).catch((_) => {
@@ -528,7 +528,7 @@ function Se(n, e, t) {
528
528
  r.searchParams.append("userRoles", b);
529
529
  let _ = {
530
530
  method: "GET",
531
- headers: { "X-SessionID": A }
531
+ headers: { "X-SessionID": h }
532
532
  };
533
533
  fetch(r.href, _).then((E) => E.json()).then(
534
534
  (E) => {
@@ -561,20 +561,20 @@ function Se(n, e, t) {
561
561
  });
562
562
  }
563
563
  return n.$$set = (r) => {
564
- "endpoint" in r && t(1, i = r.endpoint), "cmsendpoint" in r && t(16, s = r.cmsendpoint), "env" in r && t(17, d = r.env), "session" in r && t(0, A = r.session), "playerid" in r && t(18, M = r.playerid), "lang" in r && t(19, v = r.lang), "selecteditem" in r && t(20, P = r.selecteditem), "userroles" in r && t(21, b = r.userroles), "clientstyling" in r && t(2, w = r.clientstyling), "clientstylingurl" in r && t(3, u = r.clientstylingurl), "mbsource" in r && t(4, c = r.mbsource), "translationurl" in r && t(22, y = r.translationurl), "activemenuitem" in r && t(23, o = r.activemenuitem);
564
+ "endpoint" in r && t(1, i = r.endpoint), "cmsendpoint" in r && t(16, s = r.cmsendpoint), "env" in r && t(17, g = r.env), "session" in r && t(0, h = r.session), "playerid" in r && t(18, M = r.playerid), "lang" in r && t(19, v = r.lang), "selecteditem" in r && t(20, P = r.selecteditem), "userroles" in r && t(21, b = r.userroles), "clientstyling" in r && t(2, w = r.clientstyling), "clientstylingurl" in r && t(3, u = r.clientstylingurl), "mbsource" in r && t(4, c = r.mbsource), "translationurl" in r && t(22, y = r.translationurl), "activemenuitem" in r && t(23, o = r.activemenuitem);
565
565
  }, n.$$.update = () => {
566
566
  n.$$.dirty[0] & /*menuLoaded, playerInfoLoaded*/
567
567
  50331648 && t(6, I = !x || !p), n.$$.dirty[0] & /*lang*/
568
568
  524288 && v && ce(), n.$$.dirty[0] & /*endpoint, session, playerid, lang*/
569
- 786435 && i && A && M && v && se(), n.$$.dirty[0] & /*cmsendpoint, lang, env*/
570
- 720896 && s && v && d && ie(), n.$$.dirty[0] & /*activemenuitem*/
569
+ 786435 && i && h && M && v && se(), n.$$.dirty[0] & /*cmsendpoint, lang, env*/
570
+ 720896 && s && v && g && ie(), n.$$.dirty[0] & /*activemenuitem*/
571
571
  8388608 && o && G(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
572
572
  36 && w && f && xe(f, w), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
573
573
  40 && u && f && _e(f, u), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
574
574
  48 && c && f && ke(f, `${c}.Style`), n.$$.dirty[0] & /*translationurl*/
575
575
  4194304 && y && le();
576
576
  }, [
577
- A,
577
+ h,
578
578
  i,
579
579
  w,
580
580
  u,
@@ -591,7 +591,7 @@ function Se(n, e, t) {
591
591
  q,
592
592
  ae,
593
593
  s,
594
- d,
594
+ g,
595
595
  M,
596
596
  v,
597
597
  P,
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-CADV1Q8l.cjs");require("../stencil/ui-skeleton-CCXvjIzA.cjs");function B(a,t){e.addMessages(a,t)}function K(a){e.$locale.set(a)}const H={en:{title:"My Account"},"zh-hk":{title:"我的帳戶"},fr:{title:"Mon compte"},tr:{title:"Hesabım"},ro:{title:"Contul meu"},es:{title:"Mi Cuenta"},pt:{title:"Minha Conta"},hr:{title:"Moj račun"},"pt-br":{title:"Minha conta"},"es-mx":{title:"Mi cuenta"},"en-us":{title:"My Account"}};if(typeof window!="undefined"){let a=function(t){return function(...n){try{return t.apply(this,n)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./GeneralLogout-CADV1Q8l.cjs")).then(t=>t.GeneralLogout_ce).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function Y(a){e.append_styles(a,"svelte-7x6kyy",'.PlayerAccountMenuContainer{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;padding:0 15px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuContainer .skeletonLogOut{width:100%;border-radius:20px;overflow:hidden}.PlayerAccountMenuHeader{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-secondary, var(--emw--color-secondary, #E98B10))}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:var(--emw--font-size-small, 14px);text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuHeaderMobile{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox{padding:16px 20px;font-size:var(--emw--font-size-medium, 16px);line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;border-radius:var(--emw--border-radius-medium, 20px);border:2px solid transparent;cursor:pointer;transition:all 0.3s linear}.PlayerAccountMenuItemBox:hover{transition:all 0.3s linear;background:rgba(35, 176, 78, 0.3);border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 20px);color:var(--emw--color-white, #FFFFFF)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;height:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;height:30px;padding-top:15px}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emw--color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emw--color-gray-100, #E6E6E6)}.PlayerAccountItemWrap{display:flex;gap:20px;padding:16px 20px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile{padding:5px;width:100%;box-sizing:border-box}.PlayerAccountItemWrap ui-skeleton:last-child{flex:1}.PlayerAccountLogOutArea{background-color:rgba(253, 40, 57, 0.3);color:var(--emw--color-white, #FFFFFF);border-radius:var(--emw--border-radius-medium, 20px);width:100%;flex-grow:0}.PlayerAccountMenuActiveItemBox{background:rgba(35, 176, 78, 0.3);color:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 20px);transition:all 0.3s linear}.PlayerAccountMobileContainer{height:unset;padding:0}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryWrapper{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:flex;flex-direction:column;align-items:flex-start;margin:0px 15px;min-height:900px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{background:rgba(35, 176, 78, 0.3);color:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 20px);height:60px;margin:5px 0;align-items:flex-start;position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;padding:0 10px 0 15px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox::after{content:"";display:inline-block;width:15px;height:15px;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2215%22 height=%2215%22 viewBox=%220 0 15 15%22%3E%3Cdefs%3E%3Cstyle%3E.aaa%7Bfill:var(--emw--color-white,%20%23FFFFFF);%7D%3C/style%3E%3C/defs%3E%3Cg transform=%22translate(-20%20-158)%22%3E%3Cg transform=%22translate(20%20158)%22%3E%3Cpath class=%22aaa%22 d=%22M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z%22 transform=%22translate(15%2015)%20rotate(180)%22%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E");background-size:contain;transform:scaleX(-1);background-repeat:no-repeat;position:absolute;right:15px;top:22px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;justify-items:center;align-items:center;flex-flow:row;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:var(--emw--font-size-medium, 16px);line-height:16px;font-weight:400;word-break:break-word;text-align:left;color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px;color:var(--emw--pam-color-secondary, var(--emw--color-secondary, #E98B10))}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:18px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon,.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:12px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:var(--emw--font-size-large, 20px)}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function z(a,t,n){const l=a.slice();return l[41]=t[n],l}function W(a,t,n){const l=a.slice();return l[38]=t[n],l}function $(a){let t,n,l,o,s,m,y,h,A,_,f,b,u=a[12]&&te(a),c=a[12]&&ne(a),d=e.ensure_array_like(a[7]),i=[];for(let p=0;p<d.length;p+=1)i[p]=S(z(a,d,p));let P=!a[12]&&ae(a);return{c(){t=e.element("div"),n=e.element("div"),u&&u.c(),l=e.space(),o=e.element("p"),s=e.text(a[9]),m=e.space(),y=e.element("p"),h=e.text(a[10]),A=e.space(),c&&c.c(),_=e.space(),f=e.element("div");for(let p=0;p<i.length;p+=1)i[p].c();b=e.space(),P&&P.c(),e.attr(o,"class","PlayerAccountMenuUser"),e.attr(o,"translate","no"),e.attr(y,"class","PlayerAccountMenuEmail"),e.attr(y,"translate","no"),e.attr(n,"class","PlayerAccountMenuHeader "+(a[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(f,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(a[12]?"PlayerAccountMobileContainer":"")+" "+(a[13].matches&&a[12]?"PlayerAccountTabletContainer":""))},m(p,w){e.insert(p,t,w),e.append(t,n),u&&u.m(n,null),e.append(n,l),e.append(n,o),e.append(o,s),e.append(n,m),e.append(n,y),e.append(y,h),e.append(n,A),c&&c.m(n,null),e.append(t,_),e.append(t,f);for(let g=0;g<i.length;g+=1)i[g]&&i[g].m(f,null);e.append(t,b),P&&P.m(t,null)},p(p,w){if(p[12]&&u.p(p,w),w[0]&512&&e.set_data(s,p[9]),w[0]&1024&&e.set_data(h,p[10]),p[12]&&c.p(p,w),w[0]&20864){d=e.ensure_array_like(p[7]);let g;for(g=0;g<d.length;g+=1){const x=z(p,d,g);i[g]?i[g].p(x,w):(i[g]=S(x),i[g].c(),i[g].m(f,null))}for(;g<i.length;g+=1)i[g].d(1);i.length=d.length}p[12]||P.p(p,w)},d(p){p&&e.detach(t),u&&u.d(),c&&c.d(),e.destroy_each(i,p),P&&P.d()}}}function ee(a){let t,n,l,o,s,m,y,h,A,_,f=a[12]&&le(),b=e.ensure_array_like(Array(18)),u=[];for(let c=0;c<b.length;c+=1)u[c]=O(W(a,b,c));return{c(){t=e.element("div"),n=e.element("div"),f&&f.c(),l=e.space(),o=e.element("ui-skeleton"),s=e.space(),m=e.element("ui-skeleton"),y=e.space(),h=e.element("div");for(let c=0;c<u.length;c+=1)u[c].c();A=e.space(),_=e.element("div"),_.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>',e.set_custom_element_data(o,"structure","title"),e.set_custom_element_data(o,"width","100px"),e.set_custom_element_data(o,"height","20px"),e.set_custom_element_data(o,"margin-top","20px"),e.set_custom_element_data(m,"structure","text"),e.set_custom_element_data(m,"width","200px"),e.set_custom_element_data(m,"height","20px"),e.attr(n,"class","PlayerAccountMenuHeader "+(a[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(h,"class","PlayerAccountMenuList"),e.attr(_,"class","skeletonLogOut"),e.attr(t,"class","PlayerAccountMenuContainer "+(a[12]?"PlayerAccountMobileContainer":"")+" "+(a[13].matches&&a[12]?"PlayerAccountTabletContainer":""))},m(c,d){e.insert(c,t,d),e.append(t,n),f&&f.m(n,null),e.append(n,l),e.append(n,o),e.append(n,s),e.append(n,m),e.append(t,y),e.append(t,h);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(h,null);e.append(t,A),e.append(t,_)},p(c,d){if(d[0]&4096){b=e.ensure_array_like(Array(18));let i;for(i=0;i<b.length;i+=1){const P=W(c,b,i);u[i]?u[i].p(P,d):(u[i]=O(P),u[i].c(),u[i].m(h,null))}for(;i<u.length;i+=1)u[i].d(1);u.length=b.length}},d(c){c&&e.detach(t),f&&f.d(),e.destroy_each(u,c)}}}function te(a){let t,n,l,o,s,m,y,h,A,_,f=a[11]("title")+"",b,u,c;return{c(){t=e.element("div"),n=e.svg_element("svg"),l=e.svg_element("defs"),o=e.svg_element("style"),s=e.text(".aaa{fill:var(--emw--color-white, #FFFFFF);}"),m=e.svg_element("g"),y=e.svg_element("g"),h=e.svg_element("path"),A=e.space(),_=e.element("h3"),b=e.text(f),e.attr(h,"class","aaa"),e.attr(h,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(h,"transform","translate(15 15) rotate(180)"),e.attr(y,"transform","translate(20 158)"),e.attr(m,"transform","translate(-20 -158)"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","15"),e.attr(n,"height","15"),e.attr(n,"viewBox","0 0 15 15"),e.attr(_,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(d,i){e.insert(d,t,i),e.append(t,n),e.append(n,l),e.append(l,o),e.append(o,s),e.append(n,m),e.append(m,y),e.append(y,h),e.append(t,A),e.append(t,_),e.append(_,b),u||(c=[e.listen(n,"click",a[15]),e.listen(_,"click",a[15])],u=!0)},p(d,i){i[0]&2048&&f!==(f=d[11]("title")+"")&&e.set_data(b,f)},d(d){d&&e.detach(t),u=!1,e.run_all(c)}}}function ne(a){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",a[1]),e.set_custom_element_data(n,"session",a[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",a[2]),e.set_custom_element_data(n,"clientstylingurl",a[3]),e.set_custom_element_data(n,"mbsource",a[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(l,o){e.insert(l,t,o),e.append(t,n)},p(l,o){o[0]&2&&e.set_custom_element_data(n,"endpoint",l[1]),o[0]&1&&e.set_custom_element_data(n,"session",l[0]),o[0]&4&&e.set_custom_element_data(n,"clientstyling",l[2]),o[0]&8&&e.set_custom_element_data(n,"clientstylingurl",l[3]),o[0]&16&&e.set_custom_element_data(n,"mbsource",l[4])},d(l){l&&e.detach(t)}}}function S(a){let t,n,l,o,s,m,y=a[41].label+"",h,A,_,f,b;function u(){return a[26](a[41])}return{c(){t=e.element("div"),n=e.element("p"),l=e.element("img"),s=e.space(),m=e.element("span"),h=e.text(y),A=e.space(),e.attr(l,"class","PlayerAccountMenuItemIcon "+(a[12]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(l.src,o=a[41].img)||e.attr(l,"src",o),e.attr(m,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",_="PlayerAccountMenuItemBox "+(a[8]===a[41].id&&!a[12]?"PlayerAccountMenuActiveItemBox":""))},m(c,d){e.insert(c,t,d),e.append(t,n),e.append(n,l),e.append(n,s),e.append(n,m),e.append(m,h),e.append(t,A),f||(b=e.listen(t,"click",u),f=!0)},p(c,d){a=c,d[0]&128&&!e.src_url_equal(l.src,o=a[41].img)&&e.attr(l,"src",o),d[0]&128&&y!==(y=a[41].label+"")&&e.set_data(h,y),d[0]&384&&_!==(_="PlayerAccountMenuItemBox "+(a[8]===a[41].id&&!a[12]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",_)},d(c){c&&e.detach(t),f=!1,b()}}}function ae(a){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",a[1]),e.set_custom_element_data(n,"session",a[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",a[2]),e.set_custom_element_data(n,"clientstylingurl",a[3]),e.set_custom_element_data(n,"mbsource",a[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(l,o){e.insert(l,t,o),e.append(t,n)},p(l,o){o[0]&2&&e.set_custom_element_data(n,"endpoint",l[1]),o[0]&1&&e.set_custom_element_data(n,"session",l[0]),o[0]&4&&e.set_custom_element_data(n,"clientstyling",l[2]),o[0]&8&&e.set_custom_element_data(n,"clientstylingurl",l[3]),o[0]&16&&e.set_custom_element_data(n,"mbsource",l[4])},d(l){l&&e.detach(t)}}}function le(a){let t;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="title" width="30px" height="40px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="40px"></ui-skeleton>',e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(n,l){e.insert(n,t,l)},d(n){n&&e.detach(t)}}}function re(a){let t;return{c(){t=e.element("ui-skeleton"),e.set_custom_element_data(t,"structure","circle"),e.set_custom_element_data(t,"size","20px")},m(n,l){e.insert(n,t,l)},d(n){n&&e.detach(t)}}}function O(a){let t,n,l,o,s=!a[12]&&re();return{c(){t=e.element("div"),s&&s.c(),n=e.space(),l=e.element("ui-skeleton"),o=e.space(),e.set_custom_element_data(l,"structure","rectangle"),e.set_custom_element_data(l,"width","100%"),e.set_custom_element_data(l,"height",a[12]?"60px":"20px"),e.attr(t,"class","PlayerAccountItemWrap "+(a[12]?"PlayerAccountItemWrapMobile":""))},m(m,y){e.insert(m,t,y),s&&s.m(t,null),e.append(t,n),e.append(t,l),e.append(t,o)},p:e.noop,d(m){m&&e.detach(t),s&&s.d()}}}function oe(a){let t;function n(s,m){return s[6]?ee:$}let l=n(a),o=l(a);return{c(){t=e.element("div"),o.c()},m(s,m){e.insert(s,t,m),o.m(t,null),a[27](t)},p(s,m){l===(l=n(s))&&o?o.p(s,m):(o.d(1),o=l(s),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(s){s&&e.detach(t),o.d(),a[27](null)}}}function ie(a,t,n){let l;e.component_subscribe(a,e.$format,r=>n(11,l=r));let{endpoint:o=""}=t,{cmsendpoint:s=""}=t,{env:m=""}=t,{session:y=""}=t,{playerid:h=""}=t,{lang:A="en"}=t,{selecteditem:_=""}=t,{userroles:f=""}=t,{clientstyling:b=""}=t,{clientstylingurl:u=""}=t,{mbsource:c}=t,{translationurl:d=""}=t,{activemenuitem:i=""}=t,P=!1,p=!1,w=!0,g,x=[],k,C=window.navigator.userAgent,U=e.getDevice(C)!=="PC",I="",F="";const j=window.matchMedia("(min-width: 768px)"),q=()=>{fetch(d).then(M=>M.json()).then(M=>{Object.keys(M).forEach(v=>{B(v,M[v])})}).catch(M=>{console.error(M)})};Object.keys(H).forEach(r=>{B(r,H[r])});const L=r=>{if(r.data)switch(r.data.type){case"AccountMenuDetails":availableMenuItemsArray=r.data.accountMenuInfo;break;case"UserSessionID":n(0,y=r.data.session);break}},R=()=>{let r=e.getDevice(C);if(r)return r==="PC"?"dk":"mtWeb"},G=()=>{const r=new URL(`${s}/${A}/profile-menu?env=${m}`);r.searchParams.append("device",R()),fetch(r.href).then(M=>M.json()).then(M=>{n(7,x=M),T()}).catch(M=>{console.error("Error getting menu items",M)}).finally(()=>{n(24,P=!0)})},N=()=>{let r=new URL(`${o}/v1/player/${h}/profile`);r.searchParams.append("userRoles",f);let M={method:"GET",headers:{"X-SessionID":y}};fetch(r.href,M).then(v=>v.json()).then(v=>{n(9,I=v.username),n(10,F=v.email)},v=>{console.error(v)}).finally(()=>{n(25,p=!0)})},E=r=>{window.postMessage({type:"ChangeAccountPage",page:r},window.location.href),n(8,k=r.id)},T=()=>{var r;n(8,k=(r=x.find(M=>M.path.includes(i)))==null?void 0:r.id)},V=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},X=()=>{K(A)},Z=()=>{N()};e.onMount(()=>(window.addEventListener("message",L,!1),()=>{window.removeEventListener("message",L)}));const Q=r=>E(r);function J(r){e.binding_callbacks[r?"unshift":"push"](()=>{g=r,n(5,g)})}return a.$$set=r=>{"endpoint"in r&&n(1,o=r.endpoint),"cmsendpoint"in r&&n(16,s=r.cmsendpoint),"env"in r&&n(17,m=r.env),"session"in r&&n(0,y=r.session),"playerid"in r&&n(18,h=r.playerid),"lang"in r&&n(19,A=r.lang),"selecteditem"in r&&n(20,_=r.selecteditem),"userroles"in r&&n(21,f=r.userroles),"clientstyling"in r&&n(2,b=r.clientstyling),"clientstylingurl"in r&&n(3,u=r.clientstylingurl),"mbsource"in r&&n(4,c=r.mbsource),"translationurl"in r&&n(22,d=r.translationurl),"activemenuitem"in r&&n(23,i=r.activemenuitem)},a.$$.update=()=>{a.$$.dirty[0]&50331648&&n(6,w=!P||!p),a.$$.dirty[0]&524288&&A&&X(),a.$$.dirty[0]&786435&&o&&y&&h&&A&&Z(),a.$$.dirty[0]&720896&&s&&A&&m&&G(),a.$$.dirty[0]&8388608&&i&&T(),a.$$.dirty[0]&36&&b&&g&&e.setClientStyling(g,b),a.$$.dirty[0]&40&&u&&g&&e.setClientStylingURL(g,u),a.$$.dirty[0]&48&&c&&g&&e.setStreamStyling(g,`${c}.Style`),a.$$.dirty[0]&4194304&&d&&q()},[y,o,b,u,c,g,w,x,k,I,F,l,U,j,E,V,s,m,h,A,_,f,d,i,P,p,Q,J]}class D extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ie,oe,e.safe_not_equal,{endpoint:1,cmsendpoint:16,env:17,session:0,playerid:18,lang:19,selecteditem:20,userroles:21,clientstyling:2,clientstylingurl:3,mbsource:4,translationurl:22,activemenuitem:23},Y,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get cmsendpoint(){return this.$$.ctx[16]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[17]}set env(t){this.$$set({env:t}),e.flush()}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[18]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[19]}set lang(t){this.$$set({lang:t}),e.flush()}get selecteditem(){return this.$$.ctx[20]}set selecteditem(t){this.$$set({selecteditem:t}),e.flush()}get userroles(){return this.$$.ctx[21]}set userroles(t){this.$$set({userroles:t}),e.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get translationurl(){return this.$$.ctx[22]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get activemenuitem(){return this.$$.ctx[23]}set activemenuitem(t){this.$$set({activemenuitem:t}),e.flush()}}e.create_custom_element(D,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},selecteditem:{},userroles:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},activemenuitem:{}},[],[],!0);exports.default=D;
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountMenuNd-DwZUmMTh.cjs")).then(({default:t})=>{!customElements.get("player-account-menu-nd")&&customElements.define("player-account-menu-nd",t.element)})}
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-DCuTiVMN.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-Gg4yKyQu.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/PlayerAccountMenuNd-BqvOTFRR.js").then(({ default: t }) => {
14
14
  !customElements.get("player-account-menu-nd") && customElements.define("player-account-menu-nd", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { P as s } from "../components/PlayerAccountMenuNd-DEhG-o8w.js";
1
+ import { P as s } from "../components/PlayerAccountMenuNd-Co3iAJbV.js";
2
2
  function a(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-account-menu-nd",
3
- "version": "1.62.3",
3
+ "version": "1.63.0",
4
4
  "type": "module",
5
5
  "main": "es2015/player-account-menu-nd.cjs",
6
6
  "module": "esnext/player-account-menu-nd.js",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-CADV1Q8l.cjs");require("../stencil/ui-skeleton-CCXvjIzA.cjs");function B(a,t){e.addMessages(a,t)}function K(a){e.$locale.set(a)}const H={en:{title:"My Account"},"zh-hk":{title:"我的帳戶"},fr:{title:"Mon compte"},tr:{title:"Hesabım"},ro:{title:"Contul meu"},es:{title:"Mi Cuenta"},pt:{title:"Minha Conta"},hr:{title:"Moj račun"},"pt-br":{title:"Minha conta"},"es-mx":{title:"Mi cuenta"},"en-us":{title:"My Account"}};if(typeof window!="undefined"){let a=function(t){return function(...n){try{return t.apply(this,n)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./GeneralLogout-CADV1Q8l.cjs")).then(t=>t.GeneralLogout_ce).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function Y(a){e.append_styles(a,"svelte-7x6kyy",'.PlayerAccountMenuContainer{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;padding:0 15px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuContainer .skeletonLogOut{width:100%;border-radius:20px;overflow:hidden}.PlayerAccountMenuHeader{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-secondary, var(--emw--color-secondary, #E98B10))}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:var(--emw--font-size-small, 14px);text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuHeaderMobile{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox{padding:16px 20px;font-size:var(--emw--font-size-medium, 16px);line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;border-radius:var(--emw--border-radius-medium, 20px);border:2px solid transparent;cursor:pointer;transition:all 0.3s linear}.PlayerAccountMenuItemBox:hover{transition:all 0.3s linear;background:rgba(35, 176, 78, 0.3);border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 20px);color:var(--emw--color-white, #FFFFFF)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;height:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;height:30px;padding-top:15px}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emw--color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emw--color-gray-100, #E6E6E6)}.PlayerAccountItemWrap{display:flex;gap:20px;padding:16px 20px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile{padding:5px;width:100%;box-sizing:border-box}.PlayerAccountItemWrap ui-skeleton:last-child{flex:1}.PlayerAccountLogOutArea{background-color:rgba(253, 40, 57, 0.3);color:var(--emw--color-white, #FFFFFF);border-radius:var(--emw--border-radius-medium, 20px);width:100%;flex-grow:0}.PlayerAccountMenuActiveItemBox{background:rgba(35, 176, 78, 0.3);color:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 20px);transition:all 0.3s linear}.PlayerAccountMobileContainer{height:unset;padding:0}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryWrapper{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:flex;flex-direction:column;align-items:flex-start;margin:0px 15px;min-height:900px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{background:rgba(35, 176, 78, 0.3);color:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 20px);height:60px;margin:5px 0;align-items:flex-start;position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;padding:0 10px 0 15px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox::after{content:"";display:inline-block;width:15px;height:15px;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2215%22 height=%2215%22 viewBox=%220 0 15 15%22%3E%3Cdefs%3E%3Cstyle%3E.aaa%7Bfill:var(--emw--color-white,%20%23FFFFFF);%7D%3C/style%3E%3C/defs%3E%3Cg transform=%22translate(-20%20-158)%22%3E%3Cg transform=%22translate(20%20158)%22%3E%3Cpath class=%22aaa%22 d=%22M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z%22 transform=%22translate(15%2015)%20rotate(180)%22%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E");background-size:contain;transform:scaleX(-1);background-repeat:no-repeat;position:absolute;right:15px;top:22px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;justify-items:center;align-items:center;flex-flow:row;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:var(--emw--font-size-medium, 16px);line-height:16px;font-weight:400;word-break:break-word;text-align:left;color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px;color:var(--emw--pam-color-secondary, var(--emw--color-secondary, #E98B10))}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:18px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon,.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:12px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:var(--emw--font-size-large, 20px)}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function z(a,t,n){const l=a.slice();return l[41]=t[n],l}function W(a,t,n){const l=a.slice();return l[38]=t[n],l}function $(a){let t,n,l,o,s,m,y,h,A,_,f,b,u=a[12]&&te(a),c=a[12]&&ne(a),d=e.ensure_array_like(a[7]),i=[];for(let p=0;p<d.length;p+=1)i[p]=S(z(a,d,p));let P=!a[12]&&ae(a);return{c(){t=e.element("div"),n=e.element("div"),u&&u.c(),l=e.space(),o=e.element("p"),s=e.text(a[9]),m=e.space(),y=e.element("p"),h=e.text(a[10]),A=e.space(),c&&c.c(),_=e.space(),f=e.element("div");for(let p=0;p<i.length;p+=1)i[p].c();b=e.space(),P&&P.c(),e.attr(o,"class","PlayerAccountMenuUser"),e.attr(y,"class","PlayerAccountMenuEmail"),e.attr(n,"class","PlayerAccountMenuHeader "+(a[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(f,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(a[12]?"PlayerAccountMobileContainer":"")+" "+(a[13].matches&&a[12]?"PlayerAccountTabletContainer":""))},m(p,w){e.insert(p,t,w),e.append(t,n),u&&u.m(n,null),e.append(n,l),e.append(n,o),e.append(o,s),e.append(n,m),e.append(n,y),e.append(y,h),e.append(n,A),c&&c.m(n,null),e.append(t,_),e.append(t,f);for(let g=0;g<i.length;g+=1)i[g]&&i[g].m(f,null);e.append(t,b),P&&P.m(t,null)},p(p,w){if(p[12]&&u.p(p,w),w[0]&512&&e.set_data(s,p[9]),w[0]&1024&&e.set_data(h,p[10]),p[12]&&c.p(p,w),w[0]&20864){d=e.ensure_array_like(p[7]);let g;for(g=0;g<d.length;g+=1){const x=z(p,d,g);i[g]?i[g].p(x,w):(i[g]=S(x),i[g].c(),i[g].m(f,null))}for(;g<i.length;g+=1)i[g].d(1);i.length=d.length}p[12]||P.p(p,w)},d(p){p&&e.detach(t),u&&u.d(),c&&c.d(),e.destroy_each(i,p),P&&P.d()}}}function ee(a){let t,n,l,o,s,m,y,h,A,_,f=a[12]&&le(),b=e.ensure_array_like(Array(18)),u=[];for(let c=0;c<b.length;c+=1)u[c]=O(W(a,b,c));return{c(){t=e.element("div"),n=e.element("div"),f&&f.c(),l=e.space(),o=e.element("ui-skeleton"),s=e.space(),m=e.element("ui-skeleton"),y=e.space(),h=e.element("div");for(let c=0;c<u.length;c+=1)u[c].c();A=e.space(),_=e.element("div"),_.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>',e.set_custom_element_data(o,"structure","title"),e.set_custom_element_data(o,"width","100px"),e.set_custom_element_data(o,"height","20px"),e.set_custom_element_data(o,"margin-top","20px"),e.set_custom_element_data(m,"structure","text"),e.set_custom_element_data(m,"width","200px"),e.set_custom_element_data(m,"height","20px"),e.attr(n,"class","PlayerAccountMenuHeader "+(a[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(h,"class","PlayerAccountMenuList"),e.attr(_,"class","skeletonLogOut"),e.attr(t,"class","PlayerAccountMenuContainer "+(a[12]?"PlayerAccountMobileContainer":"")+" "+(a[13].matches&&a[12]?"PlayerAccountTabletContainer":""))},m(c,d){e.insert(c,t,d),e.append(t,n),f&&f.m(n,null),e.append(n,l),e.append(n,o),e.append(n,s),e.append(n,m),e.append(t,y),e.append(t,h);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(h,null);e.append(t,A),e.append(t,_)},p(c,d){if(d[0]&4096){b=e.ensure_array_like(Array(18));let i;for(i=0;i<b.length;i+=1){const P=W(c,b,i);u[i]?u[i].p(P,d):(u[i]=O(P),u[i].c(),u[i].m(h,null))}for(;i<u.length;i+=1)u[i].d(1);u.length=b.length}},d(c){c&&e.detach(t),f&&f.d(),e.destroy_each(u,c)}}}function te(a){let t,n,l,o,s,m,y,h,A,_,f=a[11]("title")+"",b,u,c;return{c(){t=e.element("div"),n=e.svg_element("svg"),l=e.svg_element("defs"),o=e.svg_element("style"),s=e.text(".aaa{fill:var(--emw--color-white, #FFFFFF);}"),m=e.svg_element("g"),y=e.svg_element("g"),h=e.svg_element("path"),A=e.space(),_=e.element("h3"),b=e.text(f),e.attr(h,"class","aaa"),e.attr(h,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(h,"transform","translate(15 15) rotate(180)"),e.attr(y,"transform","translate(20 158)"),e.attr(m,"transform","translate(-20 -158)"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","15"),e.attr(n,"height","15"),e.attr(n,"viewBox","0 0 15 15"),e.attr(_,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(d,i){e.insert(d,t,i),e.append(t,n),e.append(n,l),e.append(l,o),e.append(o,s),e.append(n,m),e.append(m,y),e.append(y,h),e.append(t,A),e.append(t,_),e.append(_,b),u||(c=[e.listen(n,"click",a[15]),e.listen(_,"click",a[15])],u=!0)},p(d,i){i[0]&2048&&f!==(f=d[11]("title")+"")&&e.set_data(b,f)},d(d){d&&e.detach(t),u=!1,e.run_all(c)}}}function ne(a){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",a[1]),e.set_custom_element_data(n,"session",a[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",a[2]),e.set_custom_element_data(n,"clientstylingurl",a[3]),e.set_custom_element_data(n,"mbsource",a[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(l,o){e.insert(l,t,o),e.append(t,n)},p(l,o){o[0]&2&&e.set_custom_element_data(n,"endpoint",l[1]),o[0]&1&&e.set_custom_element_data(n,"session",l[0]),o[0]&4&&e.set_custom_element_data(n,"clientstyling",l[2]),o[0]&8&&e.set_custom_element_data(n,"clientstylingurl",l[3]),o[0]&16&&e.set_custom_element_data(n,"mbsource",l[4])},d(l){l&&e.detach(t)}}}function S(a){let t,n,l,o,s,m,y=a[41].label+"",h,A,_,f,b;function u(){return a[26](a[41])}return{c(){t=e.element("div"),n=e.element("p"),l=e.element("img"),s=e.space(),m=e.element("span"),h=e.text(y),A=e.space(),e.attr(l,"class","PlayerAccountMenuItemIcon "+(a[12]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(l.src,o=a[41].img)||e.attr(l,"src",o),e.attr(m,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",_="PlayerAccountMenuItemBox "+(a[8]===a[41].id&&!a[12]?"PlayerAccountMenuActiveItemBox":""))},m(c,d){e.insert(c,t,d),e.append(t,n),e.append(n,l),e.append(n,s),e.append(n,m),e.append(m,h),e.append(t,A),f||(b=e.listen(t,"click",u),f=!0)},p(c,d){a=c,d[0]&128&&!e.src_url_equal(l.src,o=a[41].img)&&e.attr(l,"src",o),d[0]&128&&y!==(y=a[41].label+"")&&e.set_data(h,y),d[0]&384&&_!==(_="PlayerAccountMenuItemBox "+(a[8]===a[41].id&&!a[12]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",_)},d(c){c&&e.detach(t),f=!1,b()}}}function ae(a){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",a[1]),e.set_custom_element_data(n,"session",a[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",a[2]),e.set_custom_element_data(n,"clientstylingurl",a[3]),e.set_custom_element_data(n,"mbsource",a[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(l,o){e.insert(l,t,o),e.append(t,n)},p(l,o){o[0]&2&&e.set_custom_element_data(n,"endpoint",l[1]),o[0]&1&&e.set_custom_element_data(n,"session",l[0]),o[0]&4&&e.set_custom_element_data(n,"clientstyling",l[2]),o[0]&8&&e.set_custom_element_data(n,"clientstylingurl",l[3]),o[0]&16&&e.set_custom_element_data(n,"mbsource",l[4])},d(l){l&&e.detach(t)}}}function le(a){let t;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="title" width="30px" height="40px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="40px"></ui-skeleton>',e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(n,l){e.insert(n,t,l)},d(n){n&&e.detach(t)}}}function re(a){let t;return{c(){t=e.element("ui-skeleton"),e.set_custom_element_data(t,"structure","circle"),e.set_custom_element_data(t,"size","20px")},m(n,l){e.insert(n,t,l)},d(n){n&&e.detach(t)}}}function O(a){let t,n,l,o,s=!a[12]&&re();return{c(){t=e.element("div"),s&&s.c(),n=e.space(),l=e.element("ui-skeleton"),o=e.space(),e.set_custom_element_data(l,"structure","rectangle"),e.set_custom_element_data(l,"width","100%"),e.set_custom_element_data(l,"height",a[12]?"60px":"20px"),e.attr(t,"class","PlayerAccountItemWrap "+(a[12]?"PlayerAccountItemWrapMobile":""))},m(m,y){e.insert(m,t,y),s&&s.m(t,null),e.append(t,n),e.append(t,l),e.append(t,o)},p:e.noop,d(m){m&&e.detach(t),s&&s.d()}}}function oe(a){let t;function n(s,m){return s[6]?ee:$}let l=n(a),o=l(a);return{c(){t=e.element("div"),o.c()},m(s,m){e.insert(s,t,m),o.m(t,null),a[27](t)},p(s,m){l===(l=n(s))&&o?o.p(s,m):(o.d(1),o=l(s),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(s){s&&e.detach(t),o.d(),a[27](null)}}}function ie(a,t,n){let l;e.component_subscribe(a,e.$format,r=>n(11,l=r));let{endpoint:o=""}=t,{cmsendpoint:s=""}=t,{env:m=""}=t,{session:y=""}=t,{playerid:h=""}=t,{lang:A="en"}=t,{selecteditem:_=""}=t,{userroles:f=""}=t,{clientstyling:b=""}=t,{clientstylingurl:u=""}=t,{mbsource:c}=t,{translationurl:d=""}=t,{activemenuitem:i=""}=t,P=!1,p=!1,w=!0,g,x=[],k,C=window.navigator.userAgent,U=e.getDevice(C)!=="PC",I="",F="";const j=window.matchMedia("(min-width: 768px)"),q=()=>{fetch(d).then(M=>M.json()).then(M=>{Object.keys(M).forEach(v=>{B(v,M[v])})}).catch(M=>{console.error(M)})};Object.keys(H).forEach(r=>{B(r,H[r])});const L=r=>{if(r.data)switch(r.data.type){case"AccountMenuDetails":availableMenuItemsArray=r.data.accountMenuInfo;break;case"UserSessionID":n(0,y=r.data.session);break}},R=()=>{let r=e.getDevice(C);if(r)return r==="PC"?"dk":"mtWeb"},G=()=>{const r=new URL(`${s}/${A}/profile-menu?env=${m}`);r.searchParams.append("device",R()),fetch(r.href).then(M=>M.json()).then(M=>{n(7,x=M),T()}).catch(M=>{console.error("Error getting menu items",M)}).finally(()=>{n(24,P=!0)})},N=()=>{let r=new URL(`${o}/v1/player/${h}/profile`);r.searchParams.append("userRoles",f);let M={method:"GET",headers:{"X-SessionID":y}};fetch(r.href,M).then(v=>v.json()).then(v=>{n(9,I=v.username),n(10,F=v.email)},v=>{console.error(v)}).finally(()=>{n(25,p=!0)})},E=r=>{window.postMessage({type:"ChangeAccountPage",page:r},window.location.href),n(8,k=r.id)},T=()=>{var r;n(8,k=(r=x.find(M=>M.path.includes(i)))==null?void 0:r.id)},V=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},X=()=>{K(A)},Z=()=>{N()};e.onMount(()=>(window.addEventListener("message",L,!1),()=>{window.removeEventListener("message",L)}));const Q=r=>E(r);function J(r){e.binding_callbacks[r?"unshift":"push"](()=>{g=r,n(5,g)})}return a.$$set=r=>{"endpoint"in r&&n(1,o=r.endpoint),"cmsendpoint"in r&&n(16,s=r.cmsendpoint),"env"in r&&n(17,m=r.env),"session"in r&&n(0,y=r.session),"playerid"in r&&n(18,h=r.playerid),"lang"in r&&n(19,A=r.lang),"selecteditem"in r&&n(20,_=r.selecteditem),"userroles"in r&&n(21,f=r.userroles),"clientstyling"in r&&n(2,b=r.clientstyling),"clientstylingurl"in r&&n(3,u=r.clientstylingurl),"mbsource"in r&&n(4,c=r.mbsource),"translationurl"in r&&n(22,d=r.translationurl),"activemenuitem"in r&&n(23,i=r.activemenuitem)},a.$$.update=()=>{a.$$.dirty[0]&50331648&&n(6,w=!P||!p),a.$$.dirty[0]&524288&&A&&X(),a.$$.dirty[0]&786435&&o&&y&&h&&A&&Z(),a.$$.dirty[0]&720896&&s&&A&&m&&G(),a.$$.dirty[0]&8388608&&i&&T(),a.$$.dirty[0]&36&&b&&g&&e.setClientStyling(g,b),a.$$.dirty[0]&40&&u&&g&&e.setClientStylingURL(g,u),a.$$.dirty[0]&48&&c&&g&&e.setStreamStyling(g,`${c}.Style`),a.$$.dirty[0]&4194304&&d&&q()},[y,o,b,u,c,g,w,x,k,I,F,l,U,j,E,V,s,m,h,A,_,f,d,i,P,p,Q,J]}class D extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ie,oe,e.safe_not_equal,{endpoint:1,cmsendpoint:16,env:17,session:0,playerid:18,lang:19,selecteditem:20,userroles:21,clientstyling:2,clientstylingurl:3,mbsource:4,translationurl:22,activemenuitem:23},Y,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get cmsendpoint(){return this.$$.ctx[16]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[17]}set env(t){this.$$set({env:t}),e.flush()}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[18]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[19]}set lang(t){this.$$set({lang:t}),e.flush()}get selecteditem(){return this.$$.ctx[20]}set selecteditem(t){this.$$set({selecteditem:t}),e.flush()}get userroles(){return this.$$.ctx[21]}set userroles(t){this.$$set({userroles:t}),e.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get translationurl(){return this.$$.ctx[22]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get activemenuitem(){return this.$$.ctx[23]}set activemenuitem(t){this.$$set({activemenuitem:t}),e.flush()}}e.create_custom_element(D,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},selecteditem:{},userroles:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},activemenuitem:{}},[],[],!0);exports.default=D;