@everymatrix/player-account-menu-nd 1.49.2 → 1.50.1

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 ie, $ as ce, S as se, i as ue, f as k, c as me, s as de, b as ge, e as v, d as L, n as j, g as B, h as fe, j as R, o as ye, k as pe, l as he, m as N, p as I, t as H, q as s, r as o, u as z, v as Ae, w as E, x as W, y as be, z as M, A as q } from "./GeneralLogout-DDPYB_bZ.js";
1
+ import { a as ie, $ as ce, S as se, i as ue, f as F, c as me, s as de, b as ge, e as v, d as L, n as j, g as B, h as ye, j as R, o as pe, k as fe, l as he, m as q, p as k, t as H, q as s, r as o, u as z, v as Ae, w as E, x as W, y as be, z as M, A as N } from "./GeneralLogout-DIXk5kpO.js";
2
2
  function G(n, e) {
3
3
  ie(n, e);
4
4
  }
@@ -49,54 +49,54 @@ if (typeof window != "undefined") {
49
49
  }
50
50
  };
51
51
  };
52
- customElements.define = n(customElements.define), import("./GeneralLogout-DDPYB_bZ.js").then((e) => e.G).then(({ default: e }) => {
52
+ customElements.define = n(customElements.define), import("./GeneralLogout-DIXk5kpO.js").then((e) => e.G).then(({ default: e }) => {
53
53
  !customElements.get("general-logout") && customElements.define("general-logout", e.element);
54
54
  });
55
55
  }
56
56
  function Pe(n) {
57
- ge(n, "svelte-1vkpekd", '.PlayerAccountMenuContainer{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;padding:0 15px}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuHeader{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px;color:var(--emfe-w-pam-color-secondary, var(--emfe-w-color-secondary, #E98B10))}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:14px;text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuHeaderMobile{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox{padding:16px 20px;font-size: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(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 20px);color:var(--emfe-w-color-white, #FFFFFF)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;padding-top:15px}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emfe-w-color-gray-100, #E6E6E6)}.PlayerAccountLogOutArea{background-color:rgba(253, 40, 57, 0.3);color:var(--emfe-w-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(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #23B04E));border:2px solid var(--emfe-w-pam-color-primary, var(--emfe-w-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}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{background:rgba(35, 176, 78, 0.3);color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #23B04E));border:2px solid var(--emfe-w-pam-color-primary, var(--emfe-w-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(--emfe-w-pam-color-primary, var(--emfe-w-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(--emfe-w-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:16px;line-height:16px;font-weight:400;word-break:break-word;text-align:left;color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-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(--emfe-w-pam-color-secondary, var(--emfe-w-color-secondary, #E98B10))}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:20px}.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{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}');
57
+ ge(n, "svelte-pqb66s", '.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}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.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:18px;color:var(--emw--pam-color-secondary, var(--emw--color-secondary, #E98B10))}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size: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: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;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width: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)}.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}.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: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:20px}.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{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}');
58
58
  }
59
59
  function X(n, e, t) {
60
60
  const l = n.slice();
61
61
  return l[37] = e[t], l;
62
62
  }
63
63
  function we(n) {
64
- let e, t, l, a, d, m, f, h, P, w, A, x, b = (
64
+ let e, t, l, a, d, m, y, h, P, w, A, x, b = (
65
65
  /*isMobile*/
66
66
  n[10] && ve(n)
67
67
  ), g = (
68
68
  /*isMobile*/
69
69
  n[10] && xe(n)
70
- ), u = N(
70
+ ), u = q(
71
71
  /*menuItems*/
72
72
  n[5]
73
73
  ), c = [];
74
74
  for (let i = 0; i < u.length; i += 1)
75
75
  c[i] = Z(X(n, u, i));
76
- let F = !/*isMobile*/
76
+ let I = !/*isMobile*/
77
77
  n[10] && _e(n);
78
78
  return {
79
79
  c() {
80
- e = v("div"), t = v("div"), b && b.c(), l = I(), a = v("p"), d = H(
80
+ e = v("div"), t = v("div"), b && b.c(), l = k(), a = v("p"), d = H(
81
81
  /*profileUsername*/
82
82
  n[7]
83
- ), m = I(), f = v("p"), h = H(
83
+ ), m = k(), y = v("p"), h = H(
84
84
  /*profileEmail*/
85
85
  n[8]
86
- ), P = I(), g && g.c(), w = I(), A = v("div");
86
+ ), P = k(), g && g.c(), w = k(), A = v("div");
87
87
  for (let i = 0; i < c.length; i += 1)
88
88
  c[i].c();
89
- x = I(), F && F.c(), s(a, "class", "PlayerAccountMenuUser"), s(f, "class", "PlayerAccountMenuEmail"), s(t, "class", "PlayerAccountMenuHeader " + /*isMobile*/
89
+ x = k(), I && I.c(), s(a, "class", "PlayerAccountMenuUser"), s(y, "class", "PlayerAccountMenuEmail"), s(t, "class", "PlayerAccountMenuHeader " + /*isMobile*/
90
90
  (n[10] ? "PlayerAccountMenuHeaderMobile" : "")), s(A, "class", "PlayerAccountMenuList"), s(e, "class", "PlayerAccountMenuContainer " + /*isMobile*/
91
91
  (n[10] ? "PlayerAccountMobileContainer" : "") + " " + /*mediaQuery*/
92
92
  (n[11].matches && /*isMobile*/
93
93
  n[10] ? "PlayerAccountTabletContainer" : ""));
94
94
  },
95
95
  m(i, C) {
96
- L(i, e, C), o(e, t), b && b.m(t, null), o(t, l), o(t, a), o(a, d), o(t, m), o(t, f), o(f, h), o(t, P), g && g.m(t, null), o(e, w), o(e, A);
97
- for (let y = 0; y < c.length; y += 1)
98
- c[y] && c[y].m(A, null);
99
- o(e, x), F && F.m(e, null);
96
+ L(i, e, C), o(e, t), b && b.m(t, null), o(t, l), o(t, a), o(a, d), o(t, m), o(t, y), o(y, h), o(t, P), g && g.m(t, null), o(e, w), o(e, A);
97
+ for (let p = 0; p < c.length; p += 1)
98
+ c[p] && c[p].m(A, null);
99
+ o(e, x), I && I.m(e, null);
100
100
  },
101
101
  p(i, C) {
102
102
  if (
@@ -115,38 +115,38 @@ function we(n) {
115
115
  i[10] && g.p(i, C), C[0] & /*selectedItem, menuItems, isMobile, openAccountSection*/
116
116
  5216
117
117
  ) {
118
- u = N(
118
+ u = q(
119
119
  /*menuItems*/
120
120
  i[5]
121
121
  );
122
- let y;
123
- for (y = 0; y < u.length; y += 1) {
124
- const T = X(i, u, y);
125
- c[y] ? c[y].p(T, C) : (c[y] = Z(T), c[y].c(), c[y].m(A, null));
122
+ let p;
123
+ for (p = 0; p < u.length; p += 1) {
124
+ const T = X(i, u, p);
125
+ c[p] ? c[p].p(T, C) : (c[p] = Z(T), c[p].c(), c[p].m(A, null));
126
126
  }
127
- for (; y < c.length; y += 1)
128
- c[y].d(1);
127
+ for (; p < c.length; p += 1)
128
+ c[p].d(1);
129
129
  c.length = u.length;
130
130
  }
131
131
  /*isMobile*/
132
- i[10] || F.p(i, C);
132
+ i[10] || I.p(i, C);
133
133
  },
134
134
  d(i) {
135
- i && B(e), b && b.d(), g && g.d(), Ae(c, i), F && F.d();
135
+ i && B(e), b && b.d(), g && g.d(), Ae(c, i), I && I.d();
136
136
  }
137
137
  };
138
138
  }
139
139
  function ve(n) {
140
- let e, t, l, a, d, m, f, h, P, w, A = (
140
+ let e, t, l, a, d, m, y, h, P, w, A = (
141
141
  /*$_*/
142
142
  n[9]("title") + ""
143
143
  ), x, b, g;
144
144
  return {
145
145
  c() {
146
- e = v("div"), t = E("svg"), l = E("defs"), a = E("style"), d = H(".aaa{fill:var(--emfe-w-color-white, #FFFFFF);}"), m = E("g"), f = E("g"), h = E("path"), P = I(), w = v("h3"), x = H(A), s(h, "class", "aaa"), s(h, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), s(h, "transform", "translate(15 15) rotate(180)"), s(f, "transform", "translate(20 158)"), s(m, "transform", "translate(-20 -158)"), s(t, "xmlns", "http://www.w3.org/2000/svg"), s(t, "width", "15"), s(t, "height", "15"), s(t, "viewBox", "0 0 15 15"), s(w, "class", "PlayerAccountMenuCategoryTitle"), s(e, "class", "PlayerAccountMenuCategoryWrapper");
146
+ e = v("div"), t = E("svg"), l = E("defs"), a = E("style"), d = H(".aaa{fill:var(--emw--color-white, #FFFFFF);}"), m = E("g"), y = E("g"), h = E("path"), P = k(), w = v("h3"), x = H(A), s(h, "class", "aaa"), s(h, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), s(h, "transform", "translate(15 15) rotate(180)"), s(y, "transform", "translate(20 158)"), s(m, "transform", "translate(-20 -158)"), s(t, "xmlns", "http://www.w3.org/2000/svg"), s(t, "width", "15"), s(t, "height", "15"), s(t, "viewBox", "0 0 15 15"), s(w, "class", "PlayerAccountMenuCategoryTitle"), s(e, "class", "PlayerAccountMenuCategoryWrapper");
147
147
  },
148
148
  m(u, c) {
149
- L(u, e, c), o(e, t), o(t, l), o(l, a), o(a, d), o(t, m), o(m, f), o(f, h), o(e, P), o(e, w), o(w, x), b || (g = [
149
+ L(u, e, c), o(e, t), o(t, l), o(l, a), o(a, d), o(t, m), o(m, y), o(y, h), o(e, P), o(e, w), o(w, x), b || (g = [
150
150
  W(
151
151
  t,
152
152
  "click",
@@ -233,7 +233,7 @@ function xe(n) {
233
233
  };
234
234
  }
235
235
  function Z(n) {
236
- let e, t, l, a, d, m, f = (
236
+ let e, t, l, a, d, m, y = (
237
237
  /*menuItem*/
238
238
  n[37].label + ""
239
239
  ), h, P, w, A, x;
@@ -248,8 +248,8 @@ function Z(n) {
248
248
  }
249
249
  return {
250
250
  c() {
251
- e = v("div"), t = v("p"), l = v("img"), d = I(), m = v("span"), h = H(f), P = I(), s(l, "class", "PlayerAccountMenuItemIcon " + /*isMobile*/
252
- (n[10] ? "PlayerAccountMenuItemIconMobile" : "")), q(l.src, a = /*menuItem*/
251
+ e = v("div"), t = v("p"), l = v("img"), d = k(), m = v("span"), h = H(y), P = k(), s(l, "class", "PlayerAccountMenuItemIcon " + /*isMobile*/
252
+ (n[10] ? "PlayerAccountMenuItemIconMobile" : "")), N(l.src, a = /*menuItem*/
253
253
  n[37].img) || s(l, "src", a), s(m, "class", "PlayerAccountMenuItemTitle"), s(t, "class", "PlayerAccountMenuItemWrapper"), s(e, "class", w = "PlayerAccountMenuItemBox " + /*selectedItem*/
254
254
  (n[6] === /*menuItem*/
255
255
  n[37].id && !/*isMobile*/
@@ -260,10 +260,10 @@ function Z(n) {
260
260
  },
261
261
  p(g, u) {
262
262
  n = g, u[0] & /*menuItems*/
263
- 32 && !q(l.src, a = /*menuItem*/
263
+ 32 && !N(l.src, a = /*menuItem*/
264
264
  n[37].img) && s(l, "src", a), u[0] & /*menuItems*/
265
- 32 && f !== (f = /*menuItem*/
266
- n[37].label + "") && z(h, f), u[0] & /*selectedItem, menuItems*/
265
+ 32 && y !== (y = /*menuItem*/
266
+ n[37].label + "") && z(h, y), u[0] & /*selectedItem, menuItems*/
267
267
  96 && w !== (w = "PlayerAccountMenuItemBox " + /*selectedItem*/
268
268
  (n[6] === /*menuItem*/
269
269
  n[37].id && !/*isMobile*/
@@ -358,17 +358,17 @@ function Ce(n) {
358
358
  }
359
359
  };
360
360
  }
361
- function ke(n, e, t) {
361
+ function Fe(n, e, t) {
362
362
  let l;
363
- fe(n, he, (r) => t(9, l = r));
364
- let { endpoint: a = "" } = e, { cmsendpoint: d = "" } = e, { env: m = "" } = e, { session: f = "" } = e, { playerid: h = "" } = e, { lang: P = "en" } = e, { selecteditem: w = "" } = e, { userroles: A = "" } = e, { clientstyling: x = "" } = e, { clientstylingurl: b = "" } = e, { translationurl: g = "" } = e, { activemenuitem: u = "" } = e, c, F = [], i, C = window.navigator.userAgent, y = R(C) !== "PC", T = "", S = "";
363
+ ye(n, he, (r) => t(9, l = r));
364
+ let { endpoint: a = "" } = e, { cmsendpoint: d = "" } = e, { env: m = "" } = e, { session: y = "" } = e, { playerid: h = "" } = e, { lang: P = "en" } = e, { selecteditem: w = "" } = e, { userroles: A = "" } = e, { clientstyling: x = "" } = e, { clientstylingurl: b = "" } = e, { translationurl: g = "" } = e, { activemenuitem: u = "" } = e, c, I = [], i, C = window.navigator.userAgent, p = R(C) !== "PC", T = "", S = "";
365
365
  const Q = window.matchMedia("(min-width: 768px)"), J = () => {
366
- fetch(g).then((p) => p.json()).then((p) => {
367
- Object.keys(p).forEach((_) => {
368
- G(_, p[_]);
366
+ fetch(g).then((f) => f.json()).then((f) => {
367
+ Object.keys(f).forEach((_) => {
368
+ G(_, f[_]);
369
369
  });
370
- }).catch((p) => {
371
- console.error(p);
370
+ }).catch((f) => {
371
+ console.error(f);
372
372
  });
373
373
  };
374
374
  Object.keys(V).forEach((r) => {
@@ -381,7 +381,7 @@ function ke(n, e, t) {
381
381
  availableMenuItemsArray = r.data.accountMenuInfo;
382
382
  break;
383
383
  case "UserSessionID":
384
- t(0, f = r.data.session);
384
+ t(0, y = r.data.session);
385
385
  break;
386
386
  }
387
387
  }, K = () => {
@@ -390,19 +390,19 @@ function ke(n, e, t) {
390
390
  return r === "PC" ? "dk" : "mtWeb";
391
391
  }, Y = () => {
392
392
  const r = new URL(`${d}/${P}/profile-menu?env=${m}`);
393
- r.searchParams.append("device", K()), fetch(r.href).then((p) => p.json()).then((p) => {
394
- t(5, F = p), O();
395
- }).catch((p) => {
396
- console.error("Error getting menu items", p);
393
+ r.searchParams.append("device", K()), fetch(r.href).then((f) => f.json()).then((f) => {
394
+ t(5, I = f), O();
395
+ }).catch((f) => {
396
+ console.error("Error getting menu items", f);
397
397
  });
398
398
  }, $ = () => {
399
399
  let r = new URL(`${a}/v1/player/${h}/profile`);
400
400
  r.searchParams.append("userRoles", A);
401
- let p = {
401
+ let f = {
402
402
  method: "GET",
403
- headers: { "X-SessionID": f }
403
+ headers: { "X-SessionID": y }
404
404
  };
405
- fetch(r.href, p).then((_) => _.json()).then(
405
+ fetch(r.href, f).then((_) => _.json()).then(
406
406
  (_) => {
407
407
  t(7, T = _.username), t(8, S = _.email);
408
408
  },
@@ -414,7 +414,7 @@ function ke(n, e, t) {
414
414
  window.postMessage({ type: "ChangeAccountPage", page: r }, window.location.href), t(6, i = r.id);
415
415
  }, O = () => {
416
416
  var r;
417
- t(6, i = (r = F.find((p) => p.path.includes(u))) == null ? void 0 : r.id);
417
+ t(6, i = (r = I.find((f) => f.path.includes(u))) == null ? void 0 : r.id);
418
418
  }, ee = () => {
419
419
  window.postMessage({ type: "GoToHomepage" }, window.location.href);
420
420
  }, te = () => {
@@ -425,48 +425,48 @@ function ke(n, e, t) {
425
425
  let r = document.createElement("style");
426
426
  r.innerHTML = x, c.appendChild(r);
427
427
  }, le = () => {
428
- let r = new URL(b), p = document.createElement("style");
428
+ let r = new URL(b), f = document.createElement("style");
429
429
  fetch(r.href).then((_) => _.text()).then((_) => {
430
- p.innerHTML = _, setTimeout(
430
+ f.innerHTML = _, setTimeout(
431
431
  () => {
432
- c.appendChild(p);
432
+ c.appendChild(f);
433
433
  },
434
434
  1
435
435
  );
436
436
  });
437
437
  };
438
- ye(() => (window.addEventListener("message", U, !1), () => {
438
+ pe(() => (window.addEventListener("message", U, !1), () => {
439
439
  window.removeEventListener("message", U);
440
440
  }));
441
441
  const ae = (r) => D(r);
442
442
  function oe(r) {
443
- pe[r ? "unshift" : "push"](() => {
443
+ fe[r ? "unshift" : "push"](() => {
444
444
  c = r, t(4, c);
445
445
  });
446
446
  }
447
447
  return n.$$set = (r) => {
448
- "endpoint" in r && t(1, a = r.endpoint), "cmsendpoint" in r && t(14, d = r.cmsendpoint), "env" in r && t(15, m = r.env), "session" in r && t(0, f = r.session), "playerid" in r && t(16, h = r.playerid), "lang" in r && t(17, P = r.lang), "selecteditem" in r && t(18, w = r.selecteditem), "userroles" in r && t(19, A = r.userroles), "clientstyling" in r && t(2, x = r.clientstyling), "clientstylingurl" in r && t(3, b = r.clientstylingurl), "translationurl" in r && t(20, g = r.translationurl), "activemenuitem" in r && t(21, u = r.activemenuitem);
448
+ "endpoint" in r && t(1, a = r.endpoint), "cmsendpoint" in r && t(14, d = r.cmsendpoint), "env" in r && t(15, m = r.env), "session" in r && t(0, y = r.session), "playerid" in r && t(16, h = r.playerid), "lang" in r && t(17, P = r.lang), "selecteditem" in r && t(18, w = r.selecteditem), "userroles" in r && t(19, A = r.userroles), "clientstyling" in r && t(2, x = r.clientstyling), "clientstylingurl" in r && t(3, b = r.clientstylingurl), "translationurl" in r && t(20, g = r.translationurl), "activemenuitem" in r && t(21, u = r.activemenuitem);
449
449
  }, n.$$.update = () => {
450
450
  n.$$.dirty[0] & /*lang*/
451
451
  131072 && P && te(), n.$$.dirty[0] & /*endpoint, session, playerid, lang*/
452
- 196611 && a && f && h && P && ne(), n.$$.dirty[0] & /*cmsendpoint, lang, env*/
452
+ 196611 && a && y && h && P && ne(), n.$$.dirty[0] & /*cmsendpoint, lang, env*/
453
453
  180224 && d && P && m && Y(), n.$$.dirty[0] & /*activemenuitem*/
454
454
  2097152 && u && O(), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
455
455
  24 && b && c && le(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
456
456
  20 && x && c && re(), n.$$.dirty[0] & /*translationurl*/
457
457
  1048576 && g && J();
458
458
  }, [
459
- f,
459
+ y,
460
460
  a,
461
461
  x,
462
462
  b,
463
463
  c,
464
- F,
464
+ I,
465
465
  i,
466
466
  T,
467
467
  S,
468
468
  l,
469
- y,
469
+ p,
470
470
  Q,
471
471
  D,
472
472
  ee,
@@ -482,12 +482,12 @@ function ke(n, e, t) {
482
482
  oe
483
483
  ];
484
484
  }
485
- class Fe extends se {
485
+ class Ie extends se {
486
486
  constructor(e) {
487
487
  super(), ue(
488
488
  this,
489
489
  e,
490
- ke,
490
+ Fe,
491
491
  Ce,
492
492
  de,
493
493
  {
@@ -512,76 +512,76 @@ class Fe extends se {
512
512
  return this.$$.ctx[1];
513
513
  }
514
514
  set endpoint(e) {
515
- this.$$set({ endpoint: e }), k();
515
+ this.$$set({ endpoint: e }), F();
516
516
  }
517
517
  get cmsendpoint() {
518
518
  return this.$$.ctx[14];
519
519
  }
520
520
  set cmsendpoint(e) {
521
- this.$$set({ cmsendpoint: e }), k();
521
+ this.$$set({ cmsendpoint: e }), F();
522
522
  }
523
523
  get env() {
524
524
  return this.$$.ctx[15];
525
525
  }
526
526
  set env(e) {
527
- this.$$set({ env: e }), k();
527
+ this.$$set({ env: e }), F();
528
528
  }
529
529
  get session() {
530
530
  return this.$$.ctx[0];
531
531
  }
532
532
  set session(e) {
533
- this.$$set({ session: e }), k();
533
+ this.$$set({ session: e }), F();
534
534
  }
535
535
  get playerid() {
536
536
  return this.$$.ctx[16];
537
537
  }
538
538
  set playerid(e) {
539
- this.$$set({ playerid: e }), k();
539
+ this.$$set({ playerid: e }), F();
540
540
  }
541
541
  get lang() {
542
542
  return this.$$.ctx[17];
543
543
  }
544
544
  set lang(e) {
545
- this.$$set({ lang: e }), k();
545
+ this.$$set({ lang: e }), F();
546
546
  }
547
547
  get selecteditem() {
548
548
  return this.$$.ctx[18];
549
549
  }
550
550
  set selecteditem(e) {
551
- this.$$set({ selecteditem: e }), k();
551
+ this.$$set({ selecteditem: e }), F();
552
552
  }
553
553
  get userroles() {
554
554
  return this.$$.ctx[19];
555
555
  }
556
556
  set userroles(e) {
557
- this.$$set({ userroles: e }), k();
557
+ this.$$set({ userroles: e }), F();
558
558
  }
559
559
  get clientstyling() {
560
560
  return this.$$.ctx[2];
561
561
  }
562
562
  set clientstyling(e) {
563
- this.$$set({ clientstyling: e }), k();
563
+ this.$$set({ clientstyling: e }), F();
564
564
  }
565
565
  get clientstylingurl() {
566
566
  return this.$$.ctx[3];
567
567
  }
568
568
  set clientstylingurl(e) {
569
- this.$$set({ clientstylingurl: e }), k();
569
+ this.$$set({ clientstylingurl: e }), F();
570
570
  }
571
571
  get translationurl() {
572
572
  return this.$$.ctx[20];
573
573
  }
574
574
  set translationurl(e) {
575
- this.$$set({ translationurl: e }), k();
575
+ this.$$set({ translationurl: e }), F();
576
576
  }
577
577
  get activemenuitem() {
578
578
  return this.$$.ctx[21];
579
579
  }
580
580
  set activemenuitem(e) {
581
- this.$$set({ activemenuitem: e }), k();
581
+ this.$$set({ activemenuitem: e }), F();
582
582
  }
583
583
  }
584
- me(Fe, { endpoint: {}, cmsendpoint: {}, env: {}, session: {}, playerid: {}, lang: {}, selecteditem: {}, userroles: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, activemenuitem: {} }, [], [], !0);
584
+ me(Ie, { endpoint: {}, cmsendpoint: {}, env: {}, session: {}, playerid: {}, lang: {}, selecteditem: {}, userroles: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, activemenuitem: {} }, [], [], !0);
585
585
  export {
586
- Fe as default
586
+ Ie as default
587
587
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-ClZ4anLg.cjs");function E(a,t){e.addMessages(a,t)}function X(a){e.$locale.set(a)}const L={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"}};if(typeof window!="undefined"){let a=function(t){return function(...n){try{return t.apply(this,n)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./GeneralLogout-ClZ4anLg.cjs")).then(t=>t.GeneralLogout_ce).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function Z(a){e.append_styles(a,"svelte-pqb66s",'.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}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.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:18px;color:var(--emw--pam-color-secondary, var(--emw--color-secondary, #E98B10))}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size: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: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;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width: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)}.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}.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: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:20px}.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{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}')}function T(a,t,n){const r=a.slice();return r[37]=t[n],r}function Q(a){let t,n,r,o,m,u,p,f,A,b,h,M,_=a[10]&&J(a),d=a[10]&&K(a),s=e.ensure_array_like(a[5]),c=[];for(let i=0;i<s.length;i+=1)c[i]=B(T(a,s,i));let v=!a[10]&&Y(a);return{c(){t=e.element("div"),n=e.element("div"),_&&_.c(),r=e.space(),o=e.element("p"),m=e.text(a[7]),u=e.space(),p=e.element("p"),f=e.text(a[8]),A=e.space(),d&&d.c(),b=e.space(),h=e.element("div");for(let i=0;i<c.length;i+=1)c[i].c();M=e.space(),v&&v.c(),e.attr(o,"class","PlayerAccountMenuUser"),e.attr(p,"class","PlayerAccountMenuEmail"),e.attr(n,"class","PlayerAccountMenuHeader "+(a[10]?"PlayerAccountMenuHeaderMobile":"")),e.attr(h,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(a[10]?"PlayerAccountMobileContainer":"")+" "+(a[11].matches&&a[10]?"PlayerAccountTabletContainer":""))},m(i,w){e.insert(i,t,w),e.append(t,n),_&&_.m(n,null),e.append(n,r),e.append(n,o),e.append(o,m),e.append(n,u),e.append(n,p),e.append(p,f),e.append(n,A),d&&d.m(n,null),e.append(t,b),e.append(t,h);for(let g=0;g<c.length;g+=1)c[g]&&c[g].m(h,null);e.append(t,M),v&&v.m(t,null)},p(i,w){if(i[10]&&_.p(i,w),w[0]&128&&e.set_data(m,i[7]),w[0]&256&&e.set_data(f,i[8]),i[10]&&d.p(i,w),w[0]&5216){s=e.ensure_array_like(i[5]);let g;for(g=0;g<s.length;g+=1){const x=T(i,s,g);c[g]?c[g].p(x,w):(c[g]=B(x),c[g].c(),c[g].m(h,null))}for(;g<c.length;g+=1)c[g].d(1);c.length=s.length}i[10]||v.p(i,w)},d(i){i&&e.detach(t),_&&_.d(),d&&d.d(),e.destroy_each(c,i),v&&v.d()}}}function J(a){let t,n,r,o,m,u,p,f,A,b,h=a[9]("title")+"",M,_,d;return{c(){t=e.element("div"),n=e.svg_element("svg"),r=e.svg_element("defs"),o=e.svg_element("style"),m=e.text(".aaa{fill:var(--emw--color-white, #FFFFFF);}"),u=e.svg_element("g"),p=e.svg_element("g"),f=e.svg_element("path"),A=e.space(),b=e.element("h3"),M=e.text(h),e.attr(f,"class","aaa"),e.attr(f,"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(f,"transform","translate(15 15) rotate(180)"),e.attr(p,"transform","translate(20 158)"),e.attr(u,"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(b,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(s,c){e.insert(s,t,c),e.append(t,n),e.append(n,r),e.append(r,o),e.append(o,m),e.append(n,u),e.append(u,p),e.append(p,f),e.append(t,A),e.append(t,b),e.append(b,M),_||(d=[e.listen(n,"click",a[13]),e.listen(b,"click",a[13])],_=!0)},p(s,c){c[0]&512&&h!==(h=s[9]("title")+"")&&e.set_data(M,h)},d(s){s&&e.detach(t),_=!1,e.run_all(d)}}}function K(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.attr(t,"class","PlayerAccountLogOutArea")},m(r,o){e.insert(r,t,o),e.append(t,n)},p(r,o){o[0]&2&&e.set_custom_element_data(n,"endpoint",r[1]),o[0]&1&&e.set_custom_element_data(n,"session",r[0]),o[0]&4&&e.set_custom_element_data(n,"clientstyling",r[2]),o[0]&8&&e.set_custom_element_data(n,"clientstylingurl",r[3])},d(r){r&&e.detach(t)}}}function B(a){let t,n,r,o,m,u,p=a[37].label+"",f,A,b,h,M;function _(){return a[22](a[37])}return{c(){t=e.element("div"),n=e.element("p"),r=e.element("img"),m=e.space(),u=e.element("span"),f=e.text(p),A=e.space(),e.attr(r,"class","PlayerAccountMenuItemIcon "+(a[10]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(r.src,o=a[37].img)||e.attr(r,"src",o),e.attr(u,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",b="PlayerAccountMenuItemBox "+(a[6]===a[37].id&&!a[10]?"PlayerAccountMenuActiveItemBox":""))},m(d,s){e.insert(d,t,s),e.append(t,n),e.append(n,r),e.append(n,m),e.append(n,u),e.append(u,f),e.append(t,A),h||(M=e.listen(t,"click",_),h=!0)},p(d,s){a=d,s[0]&32&&!e.src_url_equal(r.src,o=a[37].img)&&e.attr(r,"src",o),s[0]&32&&p!==(p=a[37].label+"")&&e.set_data(f,p),s[0]&96&&b!==(b="PlayerAccountMenuItemBox "+(a[6]===a[37].id&&!a[10]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",b)},d(d){d&&e.detach(t),h=!1,M()}}}function Y(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.attr(t,"class","PlayerAccountLogOutArea")},m(r,o){e.insert(r,t,o),e.append(t,n)},p(r,o){o[0]&2&&e.set_custom_element_data(n,"endpoint",r[1]),o[0]&1&&e.set_custom_element_data(n,"session",r[0]),o[0]&4&&e.set_custom_element_data(n,"clientstyling",r[2]),o[0]&8&&e.set_custom_element_data(n,"clientstylingurl",r[3])},d(r){r&&e.detach(t)}}}function $(a){let t;function n(m,u){return Q}let o=n()(a);return{c(){t=e.element("div"),o.c()},m(m,u){e.insert(m,t,u),o.m(t,null),a[23](t)},p(m,u){o.p(m,u)},i:e.noop,o:e.noop,d(m){m&&e.detach(t),o.d(),a[23](null)}}}function ee(a,t,n){let r;e.component_subscribe(a,e.$format,l=>n(9,r=l));let{endpoint:o=""}=t,{cmsendpoint:m=""}=t,{env:u=""}=t,{session:p=""}=t,{playerid:f=""}=t,{lang:A="en"}=t,{selecteditem:b=""}=t,{userroles:h=""}=t,{clientstyling:M=""}=t,{clientstylingurl:_=""}=t,{translationurl:d=""}=t,{activemenuitem:s=""}=t,c,v=[],i,w=window.navigator.userAgent,g=e.getDevice(w)!=="PC",x="",C="";const z=window.matchMedia("(min-width: 768px)"),S=()=>{fetch(d).then(y=>y.json()).then(y=>{Object.keys(y).forEach(P=>{E(P,y[P])})}).catch(y=>{console.error(y)})};Object.keys(L).forEach(l=>{E(l,L[l])});const F=l=>{if(l.data)switch(l.data.type){case"AccountMenuDetails":availableMenuItemsArray=l.data.accountMenuInfo;break;case"UserSessionID":n(0,p=l.data.session);break}},W=()=>{let l=e.getDevice(w);if(l)return l==="PC"?"dk":"mtWeb"},D=()=>{const l=new URL(`${m}/${A}/profile-menu?env=${u}`);l.searchParams.append("device",W()),fetch(l.href).then(y=>y.json()).then(y=>{n(5,v=y),k()}).catch(y=>{console.error("Error getting menu items",y)})},O=()=>{let l=new URL(`${o}/v1/player/${f}/profile`);l.searchParams.append("userRoles",h);let y={method:"GET",headers:{"X-SessionID":p}};fetch(l.href,y).then(P=>P.json()).then(P=>{n(7,x=P.username),n(8,C=P.email)},P=>{console.error(P)})},I=l=>{window.postMessage({type:"ChangeAccountPage",page:l},window.location.href),n(6,i=l.id)},k=()=>{var l;n(6,i=(l=v.find(y=>y.path.includes(s)))==null?void 0:l.id)},U=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},j=()=>{X(A)},q=()=>{O()},R=()=>{let l=document.createElement("style");l.innerHTML=M,c.appendChild(l)},G=()=>{let l=new URL(_),y=document.createElement("style");fetch(l.href).then(P=>P.text()).then(P=>{y.innerHTML=P,setTimeout(()=>{c.appendChild(y)},1)})};e.onMount(()=>(window.addEventListener("message",F,!1),()=>{window.removeEventListener("message",F)}));const N=l=>I(l);function V(l){e.binding_callbacks[l?"unshift":"push"](()=>{c=l,n(4,c)})}return a.$$set=l=>{"endpoint"in l&&n(1,o=l.endpoint),"cmsendpoint"in l&&n(14,m=l.cmsendpoint),"env"in l&&n(15,u=l.env),"session"in l&&n(0,p=l.session),"playerid"in l&&n(16,f=l.playerid),"lang"in l&&n(17,A=l.lang),"selecteditem"in l&&n(18,b=l.selecteditem),"userroles"in l&&n(19,h=l.userroles),"clientstyling"in l&&n(2,M=l.clientstyling),"clientstylingurl"in l&&n(3,_=l.clientstylingurl),"translationurl"in l&&n(20,d=l.translationurl),"activemenuitem"in l&&n(21,s=l.activemenuitem)},a.$$.update=()=>{a.$$.dirty[0]&131072&&A&&j(),a.$$.dirty[0]&196611&&o&&p&&f&&A&&q(),a.$$.dirty[0]&180224&&m&&A&&u&&D(),a.$$.dirty[0]&2097152&&s&&k(),a.$$.dirty[0]&24&&_&&c&&G(),a.$$.dirty[0]&20&&M&&c&&R(),a.$$.dirty[0]&1048576&&d&&S()},[p,o,M,_,c,v,i,x,C,r,g,z,I,U,m,u,f,A,b,h,d,s,N,V]}class H extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ee,$,e.safe_not_equal,{endpoint:1,cmsendpoint:14,env:15,session:0,playerid:16,lang:17,selecteditem:18,userroles:19,clientstyling:2,clientstylingurl:3,translationurl:20,activemenuitem:21},Z,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get cmsendpoint(){return this.$$.ctx[14]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[15]}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[16]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get selecteditem(){return this.$$.ctx[18]}set selecteditem(t){this.$$set({selecteditem:t}),e.flush()}get userroles(){return this.$$.ctx[19]}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 translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get activemenuitem(){return this.$$.ctx[21]}set activemenuitem(t){this.$$set({activemenuitem:t}),e.flush()}}e.create_custom_element(H,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},selecteditem:{},userroles:{},clientstyling:{},clientstylingurl:{},translationurl:{},activemenuitem:{}},[],[],!0);exports.default=H;
@@ -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-QjPMalIw.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-DHpsvJ56.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-D9n2vxXX.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/PlayerAccountMenuNd-BSvqH1nL.js").then(({ default: t }) => {
14
14
  !customElements.get("player-account-menu-nd") && customElements.define("player-account-menu-nd", t.element);
15
15
  });
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-account-menu-nd",
3
- "version": "1.49.2",
3
+ "version": "1.50.1",
4
4
  "type": "module",
5
5
  "main": "es2015/player-account-menu-nd.cjs",
6
6
  "module": "es2015/player-account-menu-nd.js",