@everymatrix/player-account-menu-nd 1.52.6 → 1.53.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,8 @@
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-DVIGabm4.js";
1
+ import { a as ie, $ as ce, c as se, S as ue, i as me, s as de, f as I, b as ge, e as v, d as L, n as O, g as B, h as ye, j as R, o as pe, k as fe, l as he, m as N, p as k, t as z, q as s, r as o, u as H, v as Ae, w as E, x as W, y as Me, z as M, A as q } from "./GeneralLogout-BYNkUOix.js";
2
2
  function G(n, e) {
3
3
  ie(n, e);
4
4
  }
5
- function Me(n) {
5
+ function be(n) {
6
6
  ce.set(n);
7
7
  }
8
8
  const V = {
@@ -40,7 +40,7 @@ const V = {
40
40
  title: "My Account"
41
41
  }
42
42
  };
43
- if (typeof window != "undefined") {
43
+ if (typeof window < "u") {
44
44
  let n = function(e) {
45
45
  return function(...t) {
46
46
  try {
@@ -52,104 +52,104 @@ if (typeof window != "undefined") {
52
52
  }
53
53
  };
54
54
  };
55
- customElements.define = n(customElements.define), import("./GeneralLogout-DVIGabm4.js").then((e) => e.G).then(({ default: e }) => {
55
+ customElements.define = n(customElements.define), import("./GeneralLogout-BYNkUOix.js").then((e) => e.G).then(({ default: e }) => {
56
56
  !customElements.get("general-logout") && customElements.define("general-logout", e.element);
57
57
  });
58
58
  }
59
59
  function Pe(n) {
60
- 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}');
60
+ ge(n, "svelte-br9jas", '.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: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;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: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}');
61
61
  }
62
62
  function X(n, e, t) {
63
63
  const l = n.slice();
64
64
  return l[37] = e[t], l;
65
65
  }
66
66
  function we(n) {
67
- let e, t, l, a, d, m, y, h, P, w, A, x, b = (
67
+ let e, t, l, a, d, m, y, f, P, w, h, x, A = (
68
68
  /*isMobile*/
69
69
  n[10] && ve(n)
70
70
  ), g = (
71
71
  /*isMobile*/
72
72
  n[10] && xe(n)
73
- ), u = q(
73
+ ), u = N(
74
74
  /*menuItems*/
75
75
  n[5]
76
76
  ), c = [];
77
77
  for (let i = 0; i < u.length; i += 1)
78
78
  c[i] = Z(X(n, u, i));
79
- let I = !/*isMobile*/
79
+ let F = !/*isMobile*/
80
80
  n[10] && _e(n);
81
81
  return {
82
82
  c() {
83
- e = v("div"), t = v("div"), b && b.c(), l = k(), a = v("p"), d = H(
83
+ e = v("div"), t = v("div"), A && A.c(), l = k(), a = v("p"), d = z(
84
84
  /*profileUsername*/
85
85
  n[7]
86
- ), m = k(), y = v("p"), h = H(
86
+ ), m = k(), y = v("p"), f = z(
87
87
  /*profileEmail*/
88
88
  n[8]
89
- ), P = k(), g && g.c(), w = k(), A = v("div");
89
+ ), P = k(), g && g.c(), w = k(), h = v("div");
90
90
  for (let i = 0; i < c.length; i += 1)
91
91
  c[i].c();
92
- x = k(), I && I.c(), s(a, "class", "PlayerAccountMenuUser"), s(y, "class", "PlayerAccountMenuEmail"), s(t, "class", "PlayerAccountMenuHeader " + /*isMobile*/
93
- (n[10] ? "PlayerAccountMenuHeaderMobile" : "")), s(A, "class", "PlayerAccountMenuList"), s(e, "class", "PlayerAccountMenuContainer " + /*isMobile*/
92
+ x = k(), F && F.c(), s(a, "class", "PlayerAccountMenuUser"), s(y, "class", "PlayerAccountMenuEmail"), s(t, "class", "PlayerAccountMenuHeader " + /*isMobile*/
93
+ (n[10] ? "PlayerAccountMenuHeaderMobile" : "")), s(h, "class", "PlayerAccountMenuList"), s(e, "class", "PlayerAccountMenuContainer " + /*isMobile*/
94
94
  (n[10] ? "PlayerAccountMobileContainer" : "") + " " + /*mediaQuery*/
95
95
  (n[11].matches && /*isMobile*/
96
96
  n[10] ? "PlayerAccountTabletContainer" : ""));
97
97
  },
98
98
  m(i, C) {
99
- 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);
99
+ L(i, e, C), o(e, t), A && A.m(t, null), o(t, l), o(t, a), o(a, d), o(t, m), o(t, y), o(y, f), o(t, P), g && g.m(t, null), o(e, w), o(e, h);
100
100
  for (let p = 0; p < c.length; p += 1)
101
- c[p] && c[p].m(A, null);
102
- o(e, x), I && I.m(e, null);
101
+ c[p] && c[p].m(h, null);
102
+ o(e, x), F && F.m(e, null);
103
103
  },
104
104
  p(i, C) {
105
105
  if (
106
106
  /*isMobile*/
107
- i[10] && b.p(i, C), C[0] & /*profileUsername*/
108
- 128 && z(
107
+ i[10] && A.p(i, C), C[0] & /*profileUsername*/
108
+ 128 && H(
109
109
  d,
110
110
  /*profileUsername*/
111
111
  i[7]
112
112
  ), C[0] & /*profileEmail*/
113
- 256 && z(
114
- h,
113
+ 256 && H(
114
+ f,
115
115
  /*profileEmail*/
116
116
  i[8]
117
117
  ), /*isMobile*/
118
118
  i[10] && g.p(i, C), C[0] & /*selectedItem, menuItems, isMobile, openAccountSection*/
119
119
  5216
120
120
  ) {
121
- u = q(
121
+ u = N(
122
122
  /*menuItems*/
123
123
  i[5]
124
124
  );
125
125
  let p;
126
126
  for (p = 0; p < u.length; p += 1) {
127
127
  const T = X(i, u, p);
128
- c[p] ? c[p].p(T, C) : (c[p] = Z(T), c[p].c(), c[p].m(A, null));
128
+ c[p] ? c[p].p(T, C) : (c[p] = Z(T), c[p].c(), c[p].m(h, null));
129
129
  }
130
130
  for (; p < c.length; p += 1)
131
131
  c[p].d(1);
132
132
  c.length = u.length;
133
133
  }
134
134
  /*isMobile*/
135
- i[10] || I.p(i, C);
135
+ i[10] || F.p(i, C);
136
136
  },
137
137
  d(i) {
138
- i && B(e), b && b.d(), g && g.d(), Ae(c, i), I && I.d();
138
+ i && B(e), A && A.d(), g && g.d(), Ae(c, i), F && F.d();
139
139
  }
140
140
  };
141
141
  }
142
142
  function ve(n) {
143
- let e, t, l, a, d, m, y, h, P, w, A = (
143
+ let e, t, l, a, d, m, y, f, P, w, h = (
144
144
  /*$_*/
145
145
  n[9]("title") + ""
146
- ), x, b, g;
146
+ ), x, A, g;
147
147
  return {
148
148
  c() {
149
- 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");
149
+ e = v("div"), t = E("svg"), l = E("defs"), a = E("style"), d = z(".aaa{fill:var(--emw--color-white, #FFFFFF);}"), m = E("g"), y = E("g"), f = E("path"), P = k(), w = v("h3"), x = z(h), s(f, "class", "aaa"), s(f, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), s(f, "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");
150
150
  },
151
151
  m(u, c) {
152
- 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 = [
152
+ L(u, e, c), o(e, t), o(t, l), o(l, a), o(a, d), o(t, m), o(m, y), o(y, f), o(e, P), o(e, w), o(w, x), A || (g = [
153
153
  W(
154
154
  t,
155
155
  "click",
@@ -162,15 +162,15 @@ function ve(n) {
162
162
  /*goToHome*/
163
163
  n[13]
164
164
  )
165
- ], b = !0);
165
+ ], A = !0);
166
166
  },
167
167
  p(u, c) {
168
168
  c[0] & /*$_*/
169
- 512 && A !== (A = /*$_*/
170
- u[9]("title") + "") && z(x, A);
169
+ 512 && h !== (h = /*$_*/
170
+ u[9]("title") + "") && H(x, h);
171
171
  },
172
172
  d(u) {
173
- u && B(e), b = !1, be(g);
173
+ u && B(e), A = !1, Me(g);
174
174
  }
175
175
  };
176
176
  }
@@ -239,8 +239,8 @@ function Z(n) {
239
239
  let e, t, l, a, d, m, y = (
240
240
  /*menuItem*/
241
241
  n[37].label + ""
242
- ), h, P, w, A, x;
243
- function b() {
242
+ ), f, P, w, h, x;
243
+ function A() {
244
244
  return (
245
245
  /*click_handler*/
246
246
  n[22](
@@ -251,29 +251,29 @@ function Z(n) {
251
251
  }
252
252
  return {
253
253
  c() {
254
- e = v("div"), t = v("p"), l = v("img"), d = k(), m = v("span"), h = H(y), P = k(), s(l, "class", "PlayerAccountMenuItemIcon " + /*isMobile*/
255
- (n[10] ? "PlayerAccountMenuItemIconMobile" : "")), N(l.src, a = /*menuItem*/
254
+ e = v("div"), t = v("p"), l = v("img"), d = k(), m = v("span"), f = z(y), P = k(), s(l, "class", "PlayerAccountMenuItemIcon " + /*isMobile*/
255
+ (n[10] ? "PlayerAccountMenuItemIconMobile" : "")), q(l.src, a = /*menuItem*/
256
256
  n[37].img) || s(l, "src", a), s(m, "class", "PlayerAccountMenuItemTitle"), s(t, "class", "PlayerAccountMenuItemWrapper"), s(e, "class", w = "PlayerAccountMenuItemBox " + /*selectedItem*/
257
257
  (n[6] === /*menuItem*/
258
258
  n[37].id && !/*isMobile*/
259
259
  n[10] ? "PlayerAccountMenuActiveItemBox" : ""));
260
260
  },
261
261
  m(g, u) {
262
- L(g, e, u), o(e, t), o(t, l), o(t, d), o(t, m), o(m, h), o(e, P), A || (x = W(e, "click", b), A = !0);
262
+ L(g, e, u), o(e, t), o(t, l), o(t, d), o(t, m), o(m, f), o(e, P), h || (x = W(e, "click", A), h = !0);
263
263
  },
264
264
  p(g, u) {
265
265
  n = g, u[0] & /*menuItems*/
266
- 32 && !N(l.src, a = /*menuItem*/
266
+ 32 && !q(l.src, a = /*menuItem*/
267
267
  n[37].img) && s(l, "src", a), u[0] & /*menuItems*/
268
268
  32 && y !== (y = /*menuItem*/
269
- n[37].label + "") && z(h, y), u[0] & /*selectedItem, menuItems*/
269
+ n[37].label + "") && H(f, y), u[0] & /*selectedItem, menuItems*/
270
270
  96 && w !== (w = "PlayerAccountMenuItemBox " + /*selectedItem*/
271
271
  (n[6] === /*menuItem*/
272
272
  n[37].id && !/*isMobile*/
273
273
  n[10] ? "PlayerAccountMenuActiveItemBox" : "")) && s(e, "class", w);
274
274
  },
275
275
  d(g) {
276
- g && B(e), A = !1, x();
276
+ g && B(e), h = !1, x();
277
277
  }
278
278
  };
279
279
  }
@@ -354,24 +354,24 @@ function Ce(n) {
354
354
  p(d, m) {
355
355
  a.p(d, m);
356
356
  },
357
- i: j,
358
- o: j,
357
+ i: O,
358
+ o: O,
359
359
  d(d) {
360
360
  d && B(e), a.d(), n[23](null);
361
361
  }
362
362
  };
363
363
  }
364
- function Fe(n, e, t) {
364
+ function Ie(n, e, t) {
365
365
  let l;
366
366
  ye(n, he, (r) => t(9, l = r));
367
- 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 = "";
367
+ let { endpoint: a = "" } = e, { cmsendpoint: d = "" } = e, { env: m = "" } = e, { session: y = "" } = e, { playerid: f = "" } = e, { lang: P = "en" } = e, { selecteditem: w = "" } = e, { userroles: h = "" } = e, { clientstyling: x = "" } = e, { clientstylingurl: A = "" } = e, { translationurl: g = "" } = e, { activemenuitem: u = "" } = e, c, F = [], i, C = window.navigator.userAgent, p = R(C) !== "PC", T = "", S = "";
368
368
  const Q = window.matchMedia("(min-width: 768px)"), J = () => {
369
- fetch(g).then((f) => f.json()).then((f) => {
370
- Object.keys(f).forEach((_) => {
371
- G(_, f[_]);
369
+ fetch(g).then((b) => b.json()).then((b) => {
370
+ Object.keys(b).forEach((_) => {
371
+ G(_, b[_]);
372
372
  });
373
- }).catch((f) => {
374
- console.error(f);
373
+ }).catch((b) => {
374
+ console.error(b);
375
375
  });
376
376
  };
377
377
  Object.keys(V).forEach((r) => {
@@ -393,19 +393,19 @@ function Fe(n, e, t) {
393
393
  return r === "PC" ? "dk" : "mtWeb";
394
394
  }, Y = () => {
395
395
  const r = new URL(`${d}/${P}/profile-menu?env=${m}`);
396
- r.searchParams.append("device", K()), fetch(r.href).then((f) => f.json()).then((f) => {
397
- t(5, I = f), O();
398
- }).catch((f) => {
399
- console.error("Error getting menu items", f);
396
+ r.searchParams.append("device", K()), fetch(r.href).then((b) => b.json()).then((b) => {
397
+ t(5, F = b), D();
398
+ }).catch((b) => {
399
+ console.error("Error getting menu items", b);
400
400
  });
401
401
  }, $ = () => {
402
- let r = new URL(`${a}/v1/player/${h}/profile`);
403
- r.searchParams.append("userRoles", A);
404
- let f = {
402
+ let r = new URL(`${a}/v1/player/${f}/profile`);
403
+ r.searchParams.append("userRoles", h);
404
+ let b = {
405
405
  method: "GET",
406
406
  headers: { "X-SessionID": y }
407
407
  };
408
- fetch(r.href, f).then((_) => _.json()).then(
408
+ fetch(r.href, b).then((_) => _.json()).then(
409
409
  (_) => {
410
410
  t(7, T = _.username), t(8, S = _.email);
411
411
  },
@@ -413,26 +413,25 @@ function Fe(n, e, t) {
413
413
  console.error(_);
414
414
  }
415
415
  );
416
- }, D = (r) => {
416
+ }, j = (r) => {
417
417
  window.postMessage({ type: "ChangeAccountPage", page: r }, window.location.href), t(6, i = r.id);
418
- }, O = () => {
419
- var r;
420
- t(6, i = (r = I.find((f) => f.path.includes(u))) == null ? void 0 : r.id);
418
+ }, D = () => {
419
+ t(6, i = F.find((r) => r.path.includes(u))?.id);
421
420
  }, ee = () => {
422
421
  window.postMessage({ type: "GoToHomepage" }, window.location.href);
423
422
  }, te = () => {
424
- Me(P);
423
+ be(P);
425
424
  }, ne = () => {
426
425
  $();
427
426
  }, re = () => {
428
427
  let r = document.createElement("style");
429
428
  r.innerHTML = x, c.appendChild(r);
430
429
  }, le = () => {
431
- let r = new URL(b), f = document.createElement("style");
430
+ let r = new URL(A), b = document.createElement("style");
432
431
  fetch(r.href).then((_) => _.text()).then((_) => {
433
- f.innerHTML = _, setTimeout(
432
+ b.innerHTML = _, setTimeout(
434
433
  () => {
435
- c.appendChild(f);
434
+ c.appendChild(b);
436
435
  },
437
436
  1
438
437
  );
@@ -441,56 +440,56 @@ function Fe(n, e, t) {
441
440
  pe(() => (window.addEventListener("message", U, !1), () => {
442
441
  window.removeEventListener("message", U);
443
442
  }));
444
- const ae = (r) => D(r);
443
+ const ae = (r) => j(r);
445
444
  function oe(r) {
446
445
  fe[r ? "unshift" : "push"](() => {
447
446
  c = r, t(4, c);
448
447
  });
449
448
  }
450
449
  return n.$$set = (r) => {
451
- "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);
450
+ "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, f = r.playerid), "lang" in r && t(17, P = r.lang), "selecteditem" in r && t(18, w = r.selecteditem), "userroles" in r && t(19, h = r.userroles), "clientstyling" in r && t(2, x = r.clientstyling), "clientstylingurl" in r && t(3, A = r.clientstylingurl), "translationurl" in r && t(20, g = r.translationurl), "activemenuitem" in r && t(21, u = r.activemenuitem);
452
451
  }, n.$$.update = () => {
453
452
  n.$$.dirty[0] & /*lang*/
454
453
  131072 && P && te(), n.$$.dirty[0] & /*endpoint, session, playerid, lang*/
455
- 196611 && a && y && h && P && ne(), n.$$.dirty[0] & /*cmsendpoint, lang, env*/
454
+ 196611 && a && y && f && P && ne(), n.$$.dirty[0] & /*cmsendpoint, lang, env*/
456
455
  180224 && d && P && m && Y(), n.$$.dirty[0] & /*activemenuitem*/
457
- 2097152 && u && O(), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
458
- 24 && b && c && le(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
456
+ 2097152 && u && D(), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
457
+ 24 && A && c && le(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
459
458
  20 && x && c && re(), n.$$.dirty[0] & /*translationurl*/
460
459
  1048576 && g && J();
461
460
  }, [
462
461
  y,
463
462
  a,
464
463
  x,
465
- b,
464
+ A,
466
465
  c,
467
- I,
466
+ F,
468
467
  i,
469
468
  T,
470
469
  S,
471
470
  l,
472
471
  p,
473
472
  Q,
474
- D,
473
+ j,
475
474
  ee,
476
475
  d,
477
476
  m,
478
- h,
477
+ f,
479
478
  P,
480
479
  w,
481
- A,
480
+ h,
482
481
  g,
483
482
  u,
484
483
  ae,
485
484
  oe
486
485
  ];
487
486
  }
488
- class Ie extends se {
487
+ class Fe extends ue {
489
488
  constructor(e) {
490
- super(), ue(
489
+ super(), me(
491
490
  this,
492
491
  e,
493
- Fe,
492
+ Ie,
494
493
  Ce,
495
494
  de,
496
495
  {
@@ -515,76 +514,76 @@ class Ie extends se {
515
514
  return this.$$.ctx[1];
516
515
  }
517
516
  set endpoint(e) {
518
- this.$$set({ endpoint: e }), F();
517
+ this.$$set({ endpoint: e }), I();
519
518
  }
520
519
  get cmsendpoint() {
521
520
  return this.$$.ctx[14];
522
521
  }
523
522
  set cmsendpoint(e) {
524
- this.$$set({ cmsendpoint: e }), F();
523
+ this.$$set({ cmsendpoint: e }), I();
525
524
  }
526
525
  get env() {
527
526
  return this.$$.ctx[15];
528
527
  }
529
528
  set env(e) {
530
- this.$$set({ env: e }), F();
529
+ this.$$set({ env: e }), I();
531
530
  }
532
531
  get session() {
533
532
  return this.$$.ctx[0];
534
533
  }
535
534
  set session(e) {
536
- this.$$set({ session: e }), F();
535
+ this.$$set({ session: e }), I();
537
536
  }
538
537
  get playerid() {
539
538
  return this.$$.ctx[16];
540
539
  }
541
540
  set playerid(e) {
542
- this.$$set({ playerid: e }), F();
541
+ this.$$set({ playerid: e }), I();
543
542
  }
544
543
  get lang() {
545
544
  return this.$$.ctx[17];
546
545
  }
547
546
  set lang(e) {
548
- this.$$set({ lang: e }), F();
547
+ this.$$set({ lang: e }), I();
549
548
  }
550
549
  get selecteditem() {
551
550
  return this.$$.ctx[18];
552
551
  }
553
552
  set selecteditem(e) {
554
- this.$$set({ selecteditem: e }), F();
553
+ this.$$set({ selecteditem: e }), I();
555
554
  }
556
555
  get userroles() {
557
556
  return this.$$.ctx[19];
558
557
  }
559
558
  set userroles(e) {
560
- this.$$set({ userroles: e }), F();
559
+ this.$$set({ userroles: e }), I();
561
560
  }
562
561
  get clientstyling() {
563
562
  return this.$$.ctx[2];
564
563
  }
565
564
  set clientstyling(e) {
566
- this.$$set({ clientstyling: e }), F();
565
+ this.$$set({ clientstyling: e }), I();
567
566
  }
568
567
  get clientstylingurl() {
569
568
  return this.$$.ctx[3];
570
569
  }
571
570
  set clientstylingurl(e) {
572
- this.$$set({ clientstylingurl: e }), F();
571
+ this.$$set({ clientstylingurl: e }), I();
573
572
  }
574
573
  get translationurl() {
575
574
  return this.$$.ctx[20];
576
575
  }
577
576
  set translationurl(e) {
578
- this.$$set({ translationurl: e }), F();
577
+ this.$$set({ translationurl: e }), I();
579
578
  }
580
579
  get activemenuitem() {
581
580
  return this.$$.ctx[21];
582
581
  }
583
582
  set activemenuitem(e) {
584
- this.$$set({ activemenuitem: e }), F();
583
+ this.$$set({ activemenuitem: e }), I();
585
584
  }
586
585
  }
587
- me(Ie, { endpoint: {}, cmsendpoint: {}, env: {}, session: {}, playerid: {}, lang: {}, selecteditem: {}, userroles: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, activemenuitem: {} }, [], [], !0);
586
+ se(Fe, { endpoint: {}, cmsendpoint: {}, env: {}, session: {}, playerid: {}, lang: {}, selecteditem: {}, userroles: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, activemenuitem: {} }, [], [], !0);
588
587
  export {
589
- Ie as default
588
+ Fe as P
590
589
  };
@@ -0,0 +1,14 @@
1
+ import { P as s } from "../components/PlayerAccountMenuNd-D5LdiSBw.js";
2
+ function a(t) {
3
+ return function(...n) {
4
+ try {
5
+ return t.apply(this, n);
6
+ } catch (e) {
7
+ 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"))
8
+ return !1;
9
+ throw e;
10
+ }
11
+ };
12
+ }
13
+ customElements.define = a(customElements.define);
14
+ !customElements.get("player-account-menu-nd") && customElements.define("player-account-menu-nd", s.element);
package/package.json CHANGED
@@ -1,25 +1,21 @@
1
+
1
2
  {
2
3
  "name": "@everymatrix/player-account-menu-nd",
3
- "version": "1.52.6",
4
+ "version": "1.53.10",
4
5
  "type": "module",
5
- "main": "es2015/player-account-menu-nd.cjs",
6
- "module": "es2015/player-account-menu-nd.js",
6
+ "main": "esnext/player-account-menu-nd.js",
7
+ "module": "esnext/player-account-menu-nd.js",
7
8
  "exports": {
8
- ".": {
9
- "import": "./es2015/player-account-menu-nd.js",
10
- "require": "./es2015/player-account-menu-nd.cjs"
11
- },
12
9
  "./es2015/player-account-menu-nd.cjs": "./es2015/player-account-menu-nd.cjs"
13
10
  },
14
11
  "files": [
12
+ "components/",
15
13
  "es2015/",
16
- "components",
17
- "stencil"
14
+ "stencil",
15
+ "angular",
16
+ "esnext/"
18
17
  ],
19
18
  "publishConfig": {
20
19
  "access": "public"
21
- },
22
- "dependencies": {
23
- "@everymatrix/general-logout": "1.45.7"
24
20
  }
25
21
  }