@everymatrix/player-account-menu 1.99.57 → 1.99.59

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 "../stencil/ui-skeleton-W50o8tfg.js";
1
+ import "../stencil/ui-skeleton-COR_76lv.js";
2
2
  function N() {
3
3
  }
4
4
  function kt(e) {
@@ -46,8 +46,7 @@ function Nr(e, t, r) {
46
46
  }
47
47
  }
48
48
  function Rr(e) {
49
- if (!e)
50
- return document;
49
+ if (!e) return document;
51
50
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
52
51
  return t && /** @type {ShadowRoot} */
53
52
  t.host ? (
@@ -118,8 +117,7 @@ function ae(e) {
118
117
  ue = e;
119
118
  }
120
119
  function Dr() {
121
- if (!ue)
122
- throw new Error("Function called outside component initialization");
120
+ if (!ue) throw new Error("Function called outside component initialization");
123
121
  return ue;
124
122
  }
125
123
  function Gr(e) {
@@ -150,8 +148,7 @@ function C() {
150
148
  } catch (t) {
151
149
  throw z.length = 0, W = 0, t;
152
150
  }
153
- for (ae(null), z.length = 0, W = 0; De.length; )
154
- De.pop()();
151
+ for (ae(null), z.length = 0, W = 0; De.length; ) De.pop()();
155
152
  for (let t = 0; t < Q.length; t += 1) {
156
153
  const r = Q[t];
157
154
  Ie.has(r) || (Ie.add(r), r());
@@ -473,8 +470,7 @@ var je = function(e, t) {
473
470
  return je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
474
471
  r.__proto__ = n;
475
472
  } || function(r, n) {
476
- for (var i in n)
477
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
473
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
478
474
  }, je(e, t);
479
475
  };
480
476
  function he(e, t) {
@@ -488,40 +484,34 @@ function he(e, t) {
488
484
  }
489
485
  function Ve(e) {
490
486
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
491
- if (r)
492
- return r.call(e);
493
- if (e && typeof e.length == "number")
494
- return {
495
- next: function() {
496
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
497
- }
498
- };
487
+ if (r) return r.call(e);
488
+ if (e && typeof e.length == "number") return {
489
+ next: function() {
490
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
491
+ }
492
+ };
499
493
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
500
494
  }
501
495
  function We(e, t) {
502
496
  var r = typeof Symbol == "function" && e[Symbol.iterator];
503
- if (!r)
504
- return e;
497
+ if (!r) return e;
505
498
  var n = r.call(e), i, o = [], s;
506
499
  try {
507
- for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
508
- o.push(i.value);
500
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
509
501
  } catch (a) {
510
502
  s = { error: a };
511
503
  } finally {
512
504
  try {
513
505
  i && !i.done && (r = n.return) && r.call(n);
514
506
  } finally {
515
- if (s)
516
- throw s.error;
507
+ if (s) throw s.error;
517
508
  }
518
509
  }
519
510
  return o;
520
511
  }
521
512
  function Xe(e, t, r) {
522
- if (arguments.length === 2)
523
- for (var n = 0, i = t.length, o; n < i; n++)
524
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
513
+ if (arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
514
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
525
515
  return e.concat(o || t);
526
516
  }
527
517
  function D(e) {
@@ -570,8 +560,7 @@ var Pe = function() {
570
560
  try {
571
561
  l && !l.done && (r = a.return) && r.call(a);
572
562
  } finally {
573
- if (t)
574
- throw t.error;
563
+ if (t) throw t.error;
575
564
  }
576
565
  }
577
566
  else
@@ -601,8 +590,7 @@ var Pe = function() {
601
590
  try {
602
591
  p && !p.done && (i = f.return) && i.call(f);
603
592
  } finally {
604
- if (n)
605
- throw n.error;
593
+ if (n) throw n.error;
606
594
  }
607
595
  }
608
596
  }
@@ -869,8 +857,7 @@ var pn = zt(function(e) {
869
857
  try {
870
858
  a && !a.done && (o = s.return) && o.call(s);
871
859
  } finally {
872
- if (i)
873
- throw i.error;
860
+ if (i) throw i.error;
874
861
  }
875
862
  }
876
863
  }
@@ -1115,8 +1102,7 @@ var Qe = function(e, t) {
1115
1102
  return Qe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1116
1103
  r.__proto__ = n;
1117
1104
  } || function(r, n) {
1118
- for (var i in n)
1119
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1105
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1120
1106
  }, Qe(e, t);
1121
1107
  };
1122
1108
  function Te(e, t) {
@@ -1132,25 +1118,22 @@ var F = function() {
1132
1118
  return F = Object.assign || function(t) {
1133
1119
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1134
1120
  r = arguments[n];
1135
- for (var o in r)
1136
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1121
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1137
1122
  }
1138
1123
  return t;
1139
1124
  }, F.apply(this, arguments);
1140
1125
  };
1141
1126
  function Cn(e, t) {
1142
1127
  var r = {};
1143
- for (var n in e)
1144
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1128
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1145
1129
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
1146
1130
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1147
1131
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1148
1132
  return r;
1149
1133
  }
1150
1134
  function Ce(e, t, r) {
1151
- if (r || arguments.length === 2)
1152
- for (var n = 0, i = t.length, o; n < i; n++)
1153
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1135
+ if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
1136
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1154
1137
  return e.concat(o || Array.prototype.slice.call(t));
1155
1138
  }
1156
1139
  function Le(e, t) {
@@ -1205,8 +1188,7 @@ var Fn = function() {
1205
1188
  return Ee = Object.assign || function(t) {
1206
1189
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1207
1190
  r = arguments[n];
1208
- for (var o in r)
1209
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1191
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1210
1192
  }
1211
1193
  return t;
1212
1194
  }, Ee.apply(this, arguments);
@@ -1352,8 +1334,7 @@ var H = function() {
1352
1334
  return H = Object.assign || function(t) {
1353
1335
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1354
1336
  r = arguments[n];
1355
- for (var o in r)
1356
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1337
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1357
1338
  }
1358
1339
  return t;
1359
1340
  }, H.apply(this, arguments);
@@ -2995,8 +2976,7 @@ function Jn(e, t) {
2995
2976
  r += l;
2996
2977
  for (; s-- > 0; )
2997
2978
  r = u + r;
2998
- } else
2999
- i === "J" ? r += "H" : r += i;
2979
+ } else i === "J" ? r += "H" : r += i;
3000
2980
  }
3001
2981
  return r;
3002
2982
  }
@@ -3599,8 +3579,7 @@ function tt(e) {
3599
3579
  if (delete t.location, or(t) || sr(t))
3600
3580
  for (var r in t.options)
3601
3581
  delete t.options[r].location, tt(t.options[r].value);
3602
- else
3603
- rr(t) && ur(t.style) || (nr(t) || ir(t)) && qe(t.style) ? delete t.style.location : ar(t) && tt(t.children);
3582
+ else rr(t) && ur(t.style) || (nr(t) || ir(t)) && qe(t.style) ? delete t.style.location : ar(t) && tt(t.children);
3604
3583
  });
3605
3584
  }
3606
3585
  function bi(e, t) {
@@ -4285,8 +4264,7 @@ function oo(e, t) {
4285
4264
  }
4286
4265
  }
4287
4266
  function so(e, t) {
4288
- if (!e || !t)
4289
- return;
4267
+ if (!e || !t) return;
4290
4268
  const r = new URL(t);
4291
4269
  fetch(r.href).then((n) => n.text()).then((n) => {
4292
4270
  const i = document.createElement("style");
@@ -4296,8 +4274,7 @@ function so(e, t) {
4296
4274
  });
4297
4275
  }
4298
4276
  function ao(e, t, r, n = !1) {
4299
- if (!window.emMessageBus)
4300
- return;
4277
+ if (!window.emMessageBus) return;
4301
4278
  if (!("adoptedStyleSheets" in Document.prototype) || !n)
4302
4279
  return r = uo(e, t), r;
4303
4280
  window[Z] || (window[Z] = {}), r = lo(e, t);
@@ -4318,8 +4295,7 @@ function uo(e, t) {
4318
4295
  }
4319
4296
  function lo(e, t) {
4320
4297
  return window.emMessageBus.subscribe(t, (r) => {
4321
- if (!e)
4322
- return;
4298
+ if (!e) return;
4323
4299
  const n = e.getRootNode(), i = window[Z];
4324
4300
  let o = i[t] && i[t].sheet;
4325
4301
  o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
@@ -4342,7 +4318,7 @@ if (typeof window < "u") {
4342
4318
  }
4343
4319
  };
4344
4320
  };
4345
- customElements.define = e(customElements.define), import("./GeneralLogout-BFpAutro.js").then(({ default: t }) => {
4321
+ customElements.define = e(customElements.define), import("./GeneralLogout-B6idm4MX.js").then(({ default: t }) => {
4346
4322
  !customElements.get("general-logout") && customElements.define("general-logout", t.element);
4347
4323
  });
4348
4324
  }
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountMenu-BONCpeyS.cjs")).then(e=>e.PlayerAccountMenu_ce).then(({default:e})=>{!customElements.get("player-account-menu")&&customElements.define("player-account-menu",e.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountMenu-CCGxtjCD.cjs")).then(e=>e.PlayerAccountMenu_ce).then(({default:e})=>{!customElements.get("player-account-menu")&&customElements.define("player-account-menu",e.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/PlayerAccountMenu-gooXNa1g.js").then((e) => e.P).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/PlayerAccountMenu-C8v7qiqn.js").then((e) => e.P).then(({ default: e }) => {
14
14
  !customElements.get("player-account-menu") && customElements.define("player-account-menu", e.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { P as s } from "../components/PlayerAccountMenu-1azra0LK.js";
1
+ import { P as s } from "../components/PlayerAccountMenu-CZVftQoL.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",
3
- "version": "1.99.57",
3
+ "version": "1.99.59",
4
4
  "type": "module",
5
5
  "main": "es2015/player-account-menu.cjs",
6
6
  "module": "esnext/player-account-menu.js",
@@ -26,7 +26,7 @@ var $e = Object.defineProperty, ce = (e, t) => {
26
26
  case "ui-skeleton":
27
27
  return import(
28
28
  /* webpackMode: "lazy" */
29
- "./ui-skeleton-W50o8tfg.js"
29
+ "./ui-skeleton-COR_76lv.js"
30
30
  ).then(l, E);
31
31
  }
32
32
  }
@@ -151,8 +151,7 @@ var Se = (e) => {
151
151
  }
152
152
  t.$flags$ & 4 && (i.innerHTML += G), l && l.add(n);
153
153
  }
154
- } else
155
- e.adoptedStyleSheets.includes(a) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, a]);
154
+ } else e.adoptedStyleSheets.includes(a) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, a]);
156
155
  return n;
157
156
  }, Le = (e) => {
158
157
  const t = e.$cmpMeta$, r = e.$hostElement$, s = S("attachStyles", t.$tagName$);
@@ -42,7 +42,7 @@ var ce = Object.defineProperty, ue = (e, t) => {
42
42
  case "ui-skeleton":
43
43
  return import(
44
44
  /* webpackMode: "lazy" */
45
- "./ui-skeleton-xXZA3rYO.js"
45
+ "./ui-skeleton-BjsoPeRQ.js"
46
46
  ).then(l, E);
47
47
  }
48
48
  }
@@ -167,8 +167,7 @@ var be = (e) => {
167
167
  }
168
168
  t.$flags$ & 4 && (o.innerHTML += J), l && l.add(n);
169
169
  }
170
- } else
171
- e.adoptedStyleSheets.includes(a) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, a]);
170
+ } else e.adoptedStyleSheets.includes(a) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, a]);
172
171
  return n;
173
172
  }, Oe = (e) => {
174
173
  const t = e.$cmpMeta$, s = e.$hostElement$, r = S("attachStyles", t.$tagName$);
@@ -14,9 +14,9 @@ var n = (t, e, o) => new Promise((m, s) => {
14
14
  }, a = (r) => r.done ? m(r.value) : Promise.resolve(r.value).then(u, g);
15
15
  a((o = o.apply(t, e)).next());
16
16
  });
17
- import { b as p, p as l } from "./index-b2193545-DsMHU6jb.js";
17
+ import { b as p, p as l } from "./index-b2193545-OkT1QrQq.js";
18
18
  import { g as h } from "./app-globals-0f993ce5-D-kw1sls.js";
19
- import { U as k } from "./ui-skeleton-ed169f8f-D3TjbVKy.js";
19
+ import { U as k } from "./ui-skeleton-ed169f8f-BJHdC-wv.js";
20
20
  var c = () => {
21
21
  const t = import.meta.url, e = {};
22
22
  return t !== "" && (e.resourcesUrl = new URL(".", t).href), l(e);
@@ -1,6 +1,6 @@
1
- import { b as e, p as o } from "./index-b2193545-R7ZoV-kY.js";
1
+ import { b as e, p as o } from "./index-b2193545-D9zpmD3Q.js";
2
2
  import { g as a } from "./app-globals-0f993ce5-D-kw1sls.js";
3
- import { U as g } from "./ui-skeleton-ed169f8f-CVY4B-CP.js";
3
+ import { U as g } from "./ui-skeleton-ed169f8f-Df2MlRR-.js";
4
4
  var i = () => {
5
5
  const r = import.meta.url, t = {};
6
6
  return r !== "" && (t.resourcesUrl = new URL(".", r).href), o(t);
@@ -1,4 +1,4 @@
1
- import { r as n, h as t, H as r } from "./index-b2193545-R7ZoV-kY.js";
1
+ import { r as n, h as t, H as r } from "./index-b2193545-OkT1QrQq.js";
2
2
  const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", l = s, a = class {
3
3
  constructor(e) {
4
4
  n(this, e), this.stylingValue = {
@@ -1,4 +1,4 @@
1
- import { r as n, h as t, H as r } from "./index-b2193545-DsMHU6jb.js";
1
+ import { r as n, h as t, H as r } from "./index-b2193545-D9zpmD3Q.js";
2
2
  const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", l = s, a = class {
3
3
  constructor(e) {
4
4
  n(this, e), this.stylingValue = {
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./PlayerAccountMenu-BONCpeyS.cjs"),C=(n,e={})=>{const l=new CustomEvent("track-custom-event",{detail:{type:n,data:e},bubbles:!0,composed:!0});document.dispatchEvent(l)};function v(n,e){t.addMessages(n,e)}function T(n){t.$locale.set(n)}const x={en:{logoutButton:"Logout"},"zh-hk":{logoutButton:"登出"},fr:{logoutButton:"Déconnexion"},tr:{logoutButton:"Çıkış Yap"},ro:{logoutButton:"Iesire"},es:{logoutButton:"Cerrar sesión"},pt:{logoutButton:"Sair"},hr:{logoutButton:"Odjava"},"pt-br":{logoutButton:"Fechar Sessão"},"es-mx":{logoutButton:"Cerrar sesión"},"en-us":{logoutButton:"Logout"}};function O(n){t.append_styles(n,"svelte-xtnqa3","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}")}function j(n){let e,l,a,o=n[2]("logoutButton")+"",s,r,d;return{c(){e=t.element("div"),l=t.element("button"),a=t.element("span"),s=t.text(o),t.attr(e,"class","GeneralLogout")},m(u,g){t.insert(u,e,g),t.append(e,l),t.append(l,a),t.append(a,s),r||(d=t.listen(l,"click",n[14]),r=!0)},p(u,g){g&4&&o!==(o=u[2]("logoutButton")+"")&&t.set_data(s,o)},d(u){u&&t.detach(e),r=!1,d()}}}function H(n){let e,l,a,o,s,r,d,u,g,m,y,f=!n[3]&&G(n);return{c(){e=t.element("p"),l=t.element("span"),a=t.svg_element("svg"),o=t.svg_element("defs"),s=t.svg_element("style"),r=t.text(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"),d=t.svg_element("path"),u=t.svg_element("path"),g=t.space(),f&&f.c(),t.attr(d,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),t.attr(d,"d","M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"),t.attr(u,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),t.attr(u,"d","M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"),t.attr(a,"id","bbfaf345-72af-4296-bf4b-2fd41fc03d5d"),t.attr(a,"data-name","Layer 1"),t.attr(a,"xmlns","http://www.w3.org/2000/svg"),t.attr(a,"viewBox","0 0 150 150"),t.set_style(l,"width",n[3]?n[4].matches?"20px":"24px":"20px"),t.attr(e,"class","PlayerAccountMenuItemBox "+(n[3]?"PlayerAccountMenuItemBoxMobile":"")+" "+(n[4].matches&&n[3]?"PlayerAccountMenuItemBoxTablet":""))},m(h,c){t.insert(h,e,c),t.append(e,l),t.append(l,a),t.append(a,o),t.append(o,s),t.append(s,r),t.append(a,d),t.append(a,u),t.append(e,g),f&&f.m(e,null),m||(y=t.listen(e,"click",n[13]),m=!0)},p(h,c){h[3]||f.p(h,c)},d(h){h&&t.detach(e),f&&f.d(),m=!1,y()}}}function G(n){let e,l=n[2]("logoutButton")+"",a;return{c(){e=t.element("span"),a=t.text(l),t.attr(e,"class","PlayerLogoutText")},m(o,s){t.insert(o,e,s),t.append(e,a)},p(o,s){s&4&&l!==(l=o[2]("logoutButton")+"")&&t.set_data(a,l)},d(o){o&&t.detach(e)}}}function N(n){let e;function l(s,r){return s[0]==="PlayerAccountMenu"?H:j}let a=l(n),o=a(n);return{c(){e=t.element("div"),o.c()},m(s,r){t.insert(s,e,r),o.m(e,null),n[15](e)},p(s,[r]){a===(a=l(s))&&o?o.p(s,r):(o.d(1),o=a(s),o&&(o.c(),o.m(e,null)))},i:t.noop,o:t.noop,d(s){s&&t.detach(e),o.d(),n[15](null)}}}function R(n,e,l){let a;t.component_subscribe(n,t.$format,i=>l(2,a=i));let{endpoint:o=""}=e,{session:s=""}=e,{buttonlocation:r=""}=e,{lang:d=""}=e,{mbsource:u}=e,{clientstyling:g=""}=e,{clientstylingurl:m=""}=e,{translationurl:y=""}=e,f="",h=!1,c,B,M=window.navigator.userAgent,A=t.getDevice(M)!=="PC";const F=window.matchMedia("(min-width: 768px)"),L=()=>{fetch(y).then(b=>b.json()).then(b=>{Object.keys(b).forEach(_=>{v(_,b[_])})}).catch(b=>{console.log(b)})};Object.keys(x).forEach(i=>{v(i,x[i])});const p=()=>{let i=new Headers;i.append("Content-type","application/json"),i.append("X-SessionID",s);let b={method:"DELETE",headers:i};fetch(`${o}/v1/player/session/player`,b).then(_=>{window.postMessage({type:"LogoutSuccessfull"},window.location.href),C("logged_out",{})})},k=()=>(o||(f="GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.",h=!0,console.error(f)),s||(f="GENERAL-LOGOUT - Session is missing! Please provide a valid session.",h=!0,console.error(f)),h),P=()=>{T(d)};t.onMount(()=>()=>{});const S=()=>p(),E=()=>p();function I(i){t.binding_callbacks[i?"unshift":"push"](()=>{c=i,l(1,c)})}return n.$$set=i=>{"endpoint"in i&&l(6,o=i.endpoint),"session"in i&&l(7,s=i.session),"buttonlocation"in i&&l(0,r=i.buttonlocation),"lang"in i&&l(8,d=i.lang),"mbsource"in i&&l(9,u=i.mbsource),"clientstyling"in i&&l(10,g=i.clientstyling),"clientstylingurl"in i&&l(11,m=i.clientstylingurl),"translationurl"in i&&l(12,y=i.translationurl)},n.$$.update=()=>{n.$$.dirty&193&&o&&s&&r&&k(),n.$$.dirty&256&&d&&P(),n.$$.dirty&1026&&g&&c&&t.setClientStyling(),n.$$.dirty&1026&&g&&c&&t.setClientStyling(c,g),n.$$.dirty&2050&&m&&c&&t.setClientStylingURL(c,m),n.$$.dirty&514&&u&&c&&t.setStreamStyling(c,`${u}.Style`,B),n.$$.dirty&4096&&y&&L()},[r,c,a,A,F,p,o,s,d,u,g,m,y,S,E,I]}class w extends t.SvelteComponent{constructor(e){super(),t.init(this,e,R,N,t.safe_not_equal,{endpoint:6,session:7,buttonlocation:0,lang:8,mbsource:9,clientstyling:10,clientstylingurl:11,translationurl:12},O)}get endpoint(){return this.$$.ctx[6]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get session(){return this.$$.ctx[7]}set session(e){this.$$set({session:e}),t.flush()}get buttonlocation(){return this.$$.ctx[0]}set buttonlocation(e){this.$$set({buttonlocation:e}),t.flush()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),t.flush()}get mbsource(){return this.$$.ctx[9]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}}t.create_custom_element(w,{endpoint:{},session:{},buttonlocation:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=w;
@@ -1,300 +0,0 @@
1
- import { a as q, $ as D, S as V, i as Z, f as p, s as Q, c as X, b as Y, n as F, d as v, e as B, g as w, h as J, j as K, o as W, k as $, l as f, m as E, p as x, t as k, q as tt, r as b, u as et, v as I, w as nt, x as L, y as ot, z as st } from "./PlayerAccountMenu-1azra0LK.js";
2
- const lt = (e, t = {}) => {
3
- const o = new CustomEvent("track-custom-event", {
4
- detail: {
5
- type: e,
6
- data: t
7
- },
8
- bubbles: !0,
9
- composed: !0
10
- });
11
- document.dispatchEvent(o);
12
- };
13
- function P(e, t) {
14
- q(e, t);
15
- }
16
- function it(e) {
17
- D.set(e);
18
- }
19
- const S = {
20
- en: {
21
- logoutButton: "Logout"
22
- },
23
- "zh-hk": {
24
- logoutButton: "登出"
25
- },
26
- fr: {
27
- logoutButton: "Déconnexion"
28
- },
29
- tr: {
30
- logoutButton: "Çıkış Yap"
31
- },
32
- ro: {
33
- logoutButton: "Iesire"
34
- },
35
- es: {
36
- logoutButton: "Cerrar sesión"
37
- },
38
- pt: {
39
- logoutButton: "Sair"
40
- },
41
- hr: {
42
- logoutButton: "Odjava"
43
- },
44
- "pt-br": {
45
- logoutButton: "Fechar Sessão"
46
- },
47
- "es-mx": {
48
- logoutButton: "Cerrar sesión"
49
- },
50
- "en-us": {
51
- logoutButton: "Logout"
52
- }
53
- };
54
- function at(e) {
55
- Y(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
56
- }
57
- function rt(e) {
58
- let t, o, i, n = (
59
- /*$_*/
60
- e[2]("logoutButton") + ""
61
- ), l, a, c;
62
- return {
63
- c() {
64
- t = w("div"), o = w("button"), i = w("span"), l = k(n), b(t, "class", "GeneralLogout");
65
- },
66
- m(r, d) {
67
- B(r, t, d), f(t, o), f(o, i), f(i, l), a || (c = E(
68
- o,
69
- "click",
70
- /*click_handler_1*/
71
- e[14]
72
- ), a = !0);
73
- },
74
- p(r, d) {
75
- d & /*$_*/
76
- 4 && n !== (n = /*$_*/
77
- r[2]("logoutButton") + "") && I(l, n);
78
- },
79
- d(r) {
80
- r && v(t), a = !1, c();
81
- }
82
- };
83
- }
84
- function ut(e) {
85
- let t, o, i, n, l, a, c, r, d, h, _, g = !/*isMobile*/
86
- e[3] && ct(e);
87
- return {
88
- c() {
89
- t = w("p"), o = w("span"), i = x("svg"), n = x("defs"), l = x("style"), a = k(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), c = x("path"), r = x("path"), d = tt(), g && g.c(), b(c, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), b(c, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), b(r, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), b(r, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), b(i, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), b(i, "data-name", "Layer 1"), b(i, "xmlns", "http://www.w3.org/2000/svg"), b(i, "viewBox", "0 0 150 150"), et(o, "width", /*isMobile*/
90
- e[3] ? (
91
- /*mediaQuery*/
92
- e[4].matches ? "20px" : "24px"
93
- ) : "20px"), b(t, "class", "PlayerAccountMenuItemBox " + /*isMobile*/
94
- (e[3] ? "PlayerAccountMenuItemBoxMobile" : "") + " " + /*mediaQuery*/
95
- (e[4].matches && /*isMobile*/
96
- e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
97
- },
98
- m(y, u) {
99
- B(y, t, u), f(t, o), f(o, i), f(i, n), f(n, l), f(l, a), f(i, c), f(i, r), f(t, d), g && g.m(t, null), h || (_ = E(
100
- t,
101
- "click",
102
- /*click_handler*/
103
- e[13]
104
- ), h = !0);
105
- },
106
- p(y, u) {
107
- /*isMobile*/
108
- y[3] || g.p(y, u);
109
- },
110
- d(y) {
111
- y && v(t), g && g.d(), h = !1, _();
112
- }
113
- };
114
- }
115
- function ct(e) {
116
- let t, o = (
117
- /*$_*/
118
- e[2]("logoutButton") + ""
119
- ), i;
120
- return {
121
- c() {
122
- t = w("span"), i = k(o), b(t, "class", "PlayerLogoutText");
123
- },
124
- m(n, l) {
125
- B(n, t, l), f(t, i);
126
- },
127
- p(n, l) {
128
- l & /*$_*/
129
- 4 && o !== (o = /*$_*/
130
- n[2]("logoutButton") + "") && I(i, o);
131
- },
132
- d(n) {
133
- n && v(t);
134
- }
135
- };
136
- }
137
- function dt(e) {
138
- let t;
139
- function o(l, a) {
140
- return (
141
- /*buttonlocation*/
142
- l[0] === "PlayerAccountMenu" ? ut : rt
143
- );
144
- }
145
- let i = o(e), n = i(e);
146
- return {
147
- c() {
148
- t = w("div"), n.c();
149
- },
150
- m(l, a) {
151
- B(l, t, a), n.m(t, null), e[15](t);
152
- },
153
- p(l, [a]) {
154
- i === (i = o(l)) && n ? n.p(l, a) : (n.d(1), n = i(l), n && (n.c(), n.m(t, null)));
155
- },
156
- i: F,
157
- o: F,
158
- d(l) {
159
- l && v(t), n.d(), e[15](null);
160
- }
161
- };
162
- }
163
- function gt(e, t, o) {
164
- let i;
165
- J(e, nt, (s) => o(2, i = s));
166
- let { endpoint: n = "" } = t, { session: l = "" } = t, { buttonlocation: a = "" } = t, { lang: c = "" } = t, { mbsource: r } = t, { clientstyling: d = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: _ = "" } = t, g = "", y = !1, u, C, T = window.navigator.userAgent, O = K(T) !== "PC";
167
- const j = window.matchMedia("(min-width: 768px)"), H = () => {
168
- fetch(_).then((m) => m.json()).then((m) => {
169
- Object.keys(m).forEach((A) => {
170
- P(A, m[A]);
171
- });
172
- }).catch((m) => {
173
- console.log(m);
174
- });
175
- };
176
- Object.keys(S).forEach((s) => {
177
- P(s, S[s]);
178
- });
179
- const M = () => {
180
- let s = new Headers();
181
- s.append("Content-type", "application/json"), s.append("X-SessionID", l);
182
- let m = { method: "DELETE", headers: s };
183
- fetch(`${n}/v1/player/session/player`, m).then((A) => {
184
- window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), lt("logged_out", {});
185
- });
186
- }, G = () => (n || (g = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", y = !0, console.error(g)), l || (g = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", y = !0, console.error(g)), y), z = () => {
187
- it(c);
188
- };
189
- W(() => () => {
190
- });
191
- const N = () => M(), R = () => M();
192
- function U(s) {
193
- $[s ? "unshift" : "push"](() => {
194
- u = s, o(1, u);
195
- });
196
- }
197
- return e.$$set = (s) => {
198
- "endpoint" in s && o(6, n = s.endpoint), "session" in s && o(7, l = s.session), "buttonlocation" in s && o(0, a = s.buttonlocation), "lang" in s && o(8, c = s.lang), "mbsource" in s && o(9, r = s.mbsource), "clientstyling" in s && o(10, d = s.clientstyling), "clientstylingurl" in s && o(11, h = s.clientstylingurl), "translationurl" in s && o(12, _ = s.translationurl);
199
- }, e.$$.update = () => {
200
- e.$$.dirty & /*endpoint, session, buttonlocation*/
201
- 193 && n && l && a && G(), e.$$.dirty & /*lang*/
202
- 256 && c && z(), e.$$.dirty & /*clientstyling, customStylingContainer*/
203
- 1026 && d && u && L(), e.$$.dirty & /*clientstyling, customStylingContainer*/
204
- 1026 && d && u && L(u, d), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
205
- 2050 && h && u && ot(u, h), e.$$.dirty & /*mbsource, customStylingContainer*/
206
- 514 && r && u && st(u, `${r}.Style`, C), e.$$.dirty & /*translationurl*/
207
- 4096 && _ && H();
208
- }, [
209
- a,
210
- u,
211
- i,
212
- O,
213
- j,
214
- M,
215
- n,
216
- l,
217
- c,
218
- r,
219
- d,
220
- h,
221
- _,
222
- N,
223
- R,
224
- U
225
- ];
226
- }
227
- class ft extends V {
228
- constructor(t) {
229
- super(), Z(
230
- this,
231
- t,
232
- gt,
233
- dt,
234
- Q,
235
- {
236
- endpoint: 6,
237
- session: 7,
238
- buttonlocation: 0,
239
- lang: 8,
240
- mbsource: 9,
241
- clientstyling: 10,
242
- clientstylingurl: 11,
243
- translationurl: 12
244
- },
245
- at
246
- );
247
- }
248
- get endpoint() {
249
- return this.$$.ctx[6];
250
- }
251
- set endpoint(t) {
252
- this.$$set({ endpoint: t }), p();
253
- }
254
- get session() {
255
- return this.$$.ctx[7];
256
- }
257
- set session(t) {
258
- this.$$set({ session: t }), p();
259
- }
260
- get buttonlocation() {
261
- return this.$$.ctx[0];
262
- }
263
- set buttonlocation(t) {
264
- this.$$set({ buttonlocation: t }), p();
265
- }
266
- get lang() {
267
- return this.$$.ctx[8];
268
- }
269
- set lang(t) {
270
- this.$$set({ lang: t }), p();
271
- }
272
- get mbsource() {
273
- return this.$$.ctx[9];
274
- }
275
- set mbsource(t) {
276
- this.$$set({ mbsource: t }), p();
277
- }
278
- get clientstyling() {
279
- return this.$$.ctx[10];
280
- }
281
- set clientstyling(t) {
282
- this.$$set({ clientstyling: t }), p();
283
- }
284
- get clientstylingurl() {
285
- return this.$$.ctx[11];
286
- }
287
- set clientstylingurl(t) {
288
- this.$$set({ clientstylingurl: t }), p();
289
- }
290
- get translationurl() {
291
- return this.$$.ctx[12];
292
- }
293
- set translationurl(t) {
294
- this.$$set({ translationurl: t }), p();
295
- }
296
- }
297
- X(ft, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
298
- export {
299
- ft as default
300
- };