@everymatrix/casino-header-controller-nd 1.77.26 → 1.77.27

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.
Files changed (67) hide show
  1. package/components/{CasinoHamburgerMenuNd-8GXv1cKy.js → CasinoHamburgerMenuNd-BSRyHOo3.js} +1065 -1044
  2. package/components/{CasinoHamburgerMenuNd-COfnXPEa.js → CasinoHamburgerMenuNd-CAynNbpM.js} +1028 -1007
  3. package/components/CasinoHamburgerMenuNd-DDnDX1YR.cjs +18 -0
  4. package/components/{CasinoHeaderControllerNd-_r4VOofr.cjs → CasinoHeaderControllerNd-BC0WBfO0.cjs} +1 -1
  5. package/components/{CasinoHeaderControllerNd-0EOLuKeO.js → CasinoHeaderControllerNd-BC1OEvie.js} +100 -100
  6. package/components/{CasinoHeaderControllerNd-Dx1ZJpp1.js → CasinoHeaderControllerNd-DyTLbeld.js} +98 -98
  7. package/components/PlayerAccountBalanceModalNd-B8wlx7t-.js +1440 -0
  8. package/components/PlayerAccountBalanceModalNd-Cwus0sL3.js +1469 -0
  9. package/components/PlayerAccountBalanceModalNd-DEzvP-8k.cjs +7 -0
  10. package/components/{PlayerDeposit-CJvNBeMW.js → PlayerDeposit-CVY4XAfd.js} +77 -77
  11. package/components/PlayerDeposit-FGC50pxT.cjs +1 -0
  12. package/components/{PlayerDeposit-B3E8WIZ1.js → PlayerDeposit-QQW2yvO_.js} +73 -73
  13. package/es2015/casino-header-controller-nd.cjs +1 -1
  14. package/es2015/casino-header-controller-nd.js +1 -1
  15. package/esnext/casino-header-controller-nd.js +1 -1
  16. package/lazy/{casino-hamburger-menu-nd-DKK4TPQ7.js → casino-hamburger-menu-nd-5oAi8SmF.js} +1 -1
  17. package/lazy/{casino-hamburger-menu-nd-CM2fSz9t.cjs → casino-hamburger-menu-nd-8X36zJfz.cjs} +1 -1
  18. package/lazy/{casino-hamburger-menu-nd-DWi2frNW.js → casino-hamburger-menu-nd-jo4JA9d8.js} +1 -1
  19. package/lazy/gamification-dropdown-B0uRqHF5.cjs +1 -0
  20. package/lazy/gamification-dropdown-B3HxrtUy.js +754 -0
  21. package/lazy/{gamification-dropdown-BaFOd6fn.js → gamification-dropdown-BXn4YJ1N.js} +267 -271
  22. package/lazy/{player-account-balance-modal-nd-BcH5WeWW.js → player-account-balance-modal-nd-BX1ju5fg.js} +1 -1
  23. package/lazy/{player-account-balance-modal-nd-BH9Fqdu7.js → player-account-balance-modal-nd-DY91l88Y.js} +1 -1
  24. package/lazy/{player-account-balance-modal-nd-BW0LA74v.cjs → player-account-balance-modal-nd-heHIpdkq.cjs} +1 -1
  25. package/lazy/{player-deposit-ske2xU5w.cjs → player-deposit-BknMYFwF.cjs} +1 -1
  26. package/lazy/{player-deposit-CFXvFbnU.js → player-deposit-DYr-PS2i.js} +1 -1
  27. package/lazy/{player-deposit-Dw1jX7cK.js → player-deposit-aoi_Q3Do.js} +1 -1
  28. package/lazy/user-deposit-withdrawal-D0rShkq5.js +557 -0
  29. package/lazy/user-deposit-withdrawal-Dpqnwy_H.js +573 -0
  30. package/lazy/user-deposit-withdrawal-bNF3b4Ug.cjs +1 -0
  31. package/package.json +1 -1
  32. package/stencil/{gamification-dropdown-60536faa-DrF9DatI.js → gamification-dropdown-60536faa-BaZ65Kym.js} +1 -1
  33. package/stencil/{gamification-dropdown-60536faa-DG0qo8BP.js → gamification-dropdown-60536faa-Btk2lBsp.js} +1 -1
  34. package/stencil/{gamification-dropdown-60536faa-Dd38VLHA.cjs → gamification-dropdown-60536faa-bzjUnWRO.cjs} +1 -1
  35. package/stencil/{gamification-dropdown-BZSXhhwn.js → gamification-dropdown-8J8PxOuh.js} +2 -2
  36. package/stencil/{gamification-dropdown-C24UQNDX.js → gamification-dropdown-CvPOzjV9.js} +2 -2
  37. package/stencil/{gamification-dropdown-CbqnmfjN.cjs → gamification-dropdown-Wyj17azl.cjs} +1 -1
  38. package/stencil/{gamification-dropdown_4-pLW8IB2g.js → gamification-dropdown_4-8aFyNwqe.js} +5 -5
  39. package/stencil/{gamification-dropdown_4-B_k6XDAT.js → gamification-dropdown_4-BDWTzE3w.js} +5 -5
  40. package/stencil/gamification-dropdown_4-xEVOXclk.cjs +192 -0
  41. package/stencil/{player-elevate-card-DKH18h3D.js → player-elevate-card-6r1cEI_B.js} +2 -2
  42. package/stencil/{player-elevate-card-CkKtsiks.js → player-elevate-card-CJeovOge.js} +2 -2
  43. package/stencil/{player-elevate-card-CxO-3JX2.cjs → player-elevate-card-L2dn16do.cjs} +1 -1
  44. package/stencil/{player-elevate-card-items-08c6fbd8-CfvM5vel.js → player-elevate-card-items-08c6fbd8-B8m8Wk7Z.js} +235 -237
  45. package/stencil/player-elevate-card-items-08c6fbd8-DvFxvIKq.cjs +102 -0
  46. package/stencil/{player-elevate-card-items-08c6fbd8-Dr68wxu_.js → player-elevate-card-items-08c6fbd8-cDevB0xr.js} +235 -237
  47. package/stencil/{player-elevate-pointcard-BMf9Mr9j.js → player-elevate-pointcard-6Y0Wq9rs.js} +2 -2
  48. package/stencil/{player-elevate-pointcard-DictB_eB.js → player-elevate-pointcard-BLmnotv_.js} +2 -2
  49. package/stencil/{player-elevate-pointcard-DlbU2sPb.cjs → player-elevate-pointcard-DUipzlXL.cjs} +1 -1
  50. package/stencil/{player-rakeback-card-JziPsU1h.js → player-rakeback-card-Cj366-ZL.js} +1 -1
  51. package/stencil/{player-rakeback-card-UPJI89E_.cjs → player-rakeback-card-DBPn2wfp.cjs} +1 -1
  52. package/stencil/{player-rakeback-card-B2LhDhvP.js → player-rakeback-card-uw0ZOQ2u.js} +1 -1
  53. package/stencil/{user-deposit-withdrawal-kTtBpXqI.js → user-deposit-withdrawal-6wE6l893.js} +1 -1
  54. package/stencil/{user-deposit-withdrawal-C8LQdB1d.js → user-deposit-withdrawal-B_d-ipGD.js} +1 -1
  55. package/stencil/{user-deposit-withdrawal-QsNIWYak.cjs → user-deposit-withdrawal-Div9Us4I.cjs} +1 -1
  56. package/components/CasinoHamburgerMenuNd-DITuSEJd.cjs +0 -18
  57. package/components/PlayerAccountBalanceModalNd-B_nZXNGB.js +0 -1440
  58. package/components/PlayerAccountBalanceModalNd-h8-n54Ol.cjs +0 -7
  59. package/components/PlayerAccountBalanceModalNd-nm7Wg-91.js +0 -1469
  60. package/components/PlayerDeposit-oWVZZxvC.cjs +0 -1
  61. package/lazy/gamification-dropdown-C_wwdEnw.cjs +0 -1
  62. package/lazy/gamification-dropdown-DtJ5neR-.js +0 -758
  63. package/lazy/user-deposit-withdrawal-CqsQgzdf.js +0 -557
  64. package/lazy/user-deposit-withdrawal-Cyp0NZNS.js +0 -573
  65. package/lazy/user-deposit-withdrawal-DOO3AZ5o.cjs +0 -1
  66. package/stencil/gamification-dropdown_4-CUPhUUIx.cjs +0 -192
  67. package/stencil/player-elevate-card-items-08c6fbd8-Cg0tJK0X.cjs +0 -102
@@ -0,0 +1,573 @@
1
+ var P = (e, t, n) => new Promise((s, r) => {
2
+ var i = (a) => {
3
+ try {
4
+ o(n.next(a));
5
+ } catch ($) {
6
+ r($);
7
+ }
8
+ }, l = (a) => {
9
+ try {
10
+ o(n.throw(a));
11
+ } catch ($) {
12
+ r($);
13
+ }
14
+ }, o = (a) => a.done ? s(a.value) : Promise.resolve(a.value).then(i, l);
15
+ o((n = n.apply(e, t)).next());
16
+ });
17
+ const ge = "user-deposit-withdrawal", pe = (
18
+ /* user-deposit-withdrawal */
19
+ { hydratedSelectorName: "hydrated" }
20
+ );
21
+ var he = Object.defineProperty, ye = (e, t) => {
22
+ for (var n in t)
23
+ he(e, n, { get: t[n], enumerable: !0 });
24
+ }, q = /* @__PURE__ */ new WeakMap(), w = (e) => q.get(e), lt = (e, t) => q.set(t.$lazyInstance$ = e, t), me = (e, t) => {
25
+ const n = {
26
+ $flags$: 0,
27
+ $hostElement$: e,
28
+ $cmpMeta$: t,
29
+ $instanceValues$: /* @__PURE__ */ new Map()
30
+ };
31
+ return n.$onReadyPromise$ = new Promise((s) => n.$onReadyResolve$ = s), e["s-p"] = [], e["s-rc"] = [], q.set(e, n);
32
+ }, G = (e, t) => t in e, b = (e, t) => (0, console.error)(e, t), U = /* @__PURE__ */ new Map(), Se = (e, t, n) => {
33
+ const s = e.$tagName$.replace(/-/g, "_"), r = e.$lazyBundleId$;
34
+ if (!r)
35
+ return;
36
+ const i = U.get(r);
37
+ if (i)
38
+ return i[s];
39
+ {
40
+ const l = (o) => (U.set(r, o), o[s]);
41
+ switch (r) {
42
+ case "user-deposit-withdrawal":
43
+ return import(
44
+ /* webpackMode: "lazy" */
45
+ "../stencil/user-deposit-withdrawal-6wE6l893.js"
46
+ ).then((o) => o.a).then(l, b);
47
+ }
48
+ }
49
+ return import(
50
+ /* @vite-ignore */
51
+ /* webpackInclude: /\.entry\.js$/ */
52
+ /* webpackExclude: /\.system\.entry\.js$/ */
53
+ /* webpackMode: "lazy" */
54
+ `./${r}.entry.js`
55
+ ).then((l) => (U.set(r, l), l[s]), b);
56
+ }, j = /* @__PURE__ */ new Map(), Ee = "{visibility:hidden}.hydrated{visibility:inherit}", ee = "slot-fb{display:contents}slot-fb[hidden]{display:none}", I = typeof window != "undefined" ? window : {}, S = I.document || { head: {} }, g = {
57
+ $flags$: 0,
58
+ $resourcesUrl$: "",
59
+ jmp: (e) => e(),
60
+ raf: (e) => requestAnimationFrame(e),
61
+ ael: (e, t, n, s) => e.addEventListener(t, n, s),
62
+ rel: (e, t, n, s) => e.removeEventListener(t, n, s),
63
+ ce: (e, t) => new CustomEvent(e, t)
64
+ }, ke = (e) => Promise.resolve(e), we = /* @__PURE__ */ (() => {
65
+ try {
66
+ return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
67
+ } catch (e) {
68
+ }
69
+ return !1;
70
+ })(), H = !1, X = [], te = [], be = (e, t) => (n) => {
71
+ e.push(n), H || (H = !0, g.$flags$ & 4 ? R(z) : g.raf(z));
72
+ }, Y = (e) => {
73
+ for (let t = 0; t < e.length; t++)
74
+ try {
75
+ e[t](performance.now());
76
+ } catch (n) {
77
+ b(n);
78
+ }
79
+ e.length = 0;
80
+ }, z = () => {
81
+ Y(X), Y(te), (H = X.length > 0) && g.raf(z);
82
+ }, R = (e) => ke().then(e), xe = /* @__PURE__ */ be(te), J = {}, Te = "http://www.w3.org/2000/svg", Pe = "http://www.w3.org/1999/xhtml", _e = (e) => e != null, M = (e) => (e = typeof e, e === "object" || e === "function");
83
+ function se(e) {
84
+ var t, n, s;
85
+ return (s = (n = (t = e.head) == null ? void 0 : t.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : n.getAttribute("content")) != null ? s : void 0;
86
+ }
87
+ var Ae = {};
88
+ ye(Ae, {
89
+ err: () => ne,
90
+ map: () => Le,
91
+ ok: () => B,
92
+ unwrap: () => je,
93
+ unwrapErr: () => Oe
94
+ });
95
+ var B = (e) => ({
96
+ isOk: !0,
97
+ isErr: !1,
98
+ value: e
99
+ }), ne = (e) => ({
100
+ isOk: !1,
101
+ isErr: !0,
102
+ value: e
103
+ });
104
+ function Le(e, t) {
105
+ if (e.isOk) {
106
+ const n = t(e.value);
107
+ return n instanceof Promise ? n.then((s) => B(s)) : B(n);
108
+ }
109
+ if (e.isErr) {
110
+ const n = e.value;
111
+ return ne(n);
112
+ }
113
+ throw "should never get here";
114
+ }
115
+ var je = (e) => {
116
+ if (e.isOk)
117
+ return e.value;
118
+ throw e.value;
119
+ }, Oe = (e) => {
120
+ if (e.isErr)
121
+ return e.value;
122
+ throw e.value;
123
+ }, E = (e, t = "") => () => {
124
+ }, Ie = (e, t) => () => {
125
+ }, Ue = (e, t, ...n) => {
126
+ let s = null, r = null, i = !1, l = !1;
127
+ const o = [], a = (c) => {
128
+ for (let f = 0; f < c.length; f++)
129
+ s = c[f], Array.isArray(s) ? a(s) : s != null && typeof s != "boolean" && ((i = typeof e != "function" && !M(s)) && (s = String(s)), i && l ? o[o.length - 1].$text$ += s : o.push(i ? C(null, s) : s), l = i);
130
+ };
131
+ if (a(n), t) {
132
+ t.key && (r = t.key);
133
+ {
134
+ const c = t.className || t.class;
135
+ c && (t.class = typeof c != "object" ? c : Object.keys(c).filter((f) => c[f]).join(" "));
136
+ }
137
+ }
138
+ const $ = C(e, null);
139
+ return $.$attrs$ = t, o.length > 0 && ($.$children$ = o), $.$key$ = r, $;
140
+ }, C = (e, t) => {
141
+ const n = {
142
+ $flags$: 0,
143
+ $tag$: e,
144
+ $text$: t,
145
+ $elm$: null,
146
+ $children$: null
147
+ };
148
+ return n.$attrs$ = null, n.$key$ = null, n;
149
+ }, He = {}, ze = (e) => e && e.$tag$ === He, Be = (e, t) => e != null && !M(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 1 ? String(e) : e : e, Ce = (e, t, n) => {
150
+ const s = g.ce(t, n);
151
+ return e.dispatchEvent(s), s;
152
+ }, K = /* @__PURE__ */ new WeakMap(), qe = (e, t, n) => {
153
+ let s = j.get(e);
154
+ we && n ? (s = s || new CSSStyleSheet(), typeof s == "string" ? s = t : s.replaceSync(t)) : s = t, j.set(e, s);
155
+ }, Re = (e, t, n) => {
156
+ var s;
157
+ const r = re(t), i = j.get(r);
158
+ if (e = e.nodeType === 11 ? e : S, i)
159
+ if (typeof i == "string") {
160
+ e = e.head || e;
161
+ let l = K.get(e), o;
162
+ if (l || K.set(e, l = /* @__PURE__ */ new Set()), !l.has(r)) {
163
+ {
164
+ o = S.createElement("style"), o.innerHTML = i;
165
+ const a = (s = g.$nonce$) != null ? s : se(S);
166
+ a != null && o.setAttribute("nonce", a), e.insertBefore(o, e.querySelector("link"));
167
+ }
168
+ t.$flags$ & 4 && (o.innerHTML += ee), l && l.add(r);
169
+ }
170
+ } else
171
+ e.adoptedStyleSheets.includes(i) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, i]);
172
+ return r;
173
+ }, Me = (e) => {
174
+ const t = e.$cmpMeta$, n = e.$hostElement$, s = t.$flags$, r = E("attachStyles", t.$tagName$), i = Re(
175
+ n.shadowRoot ? n.shadowRoot : n.getRootNode(),
176
+ t
177
+ );
178
+ s & 10 && (n["s-sc"] = i, n.classList.add(i + "-h")), r();
179
+ }, re = (e, t) => "sc-" + e.$tagName$, Q = (e, t, n, s, r, i) => {
180
+ if (n !== s) {
181
+ let l = G(e, t), o = t.toLowerCase();
182
+ if (t === "class") {
183
+ const a = e.classList, $ = Z(n), c = Z(s);
184
+ a.remove(...$.filter((f) => f && !c.includes(f))), a.add(...c.filter((f) => f && !$.includes(f)));
185
+ } else if (t === "style") {
186
+ for (const a in n)
187
+ (!s || s[a] == null) && (a.includes("-") ? e.style.removeProperty(a) : e.style[a] = "");
188
+ for (const a in s)
189
+ (!n || s[a] !== n[a]) && (a.includes("-") ? e.style.setProperty(a, s[a]) : e.style[a] = s[a]);
190
+ } else if (t !== "key")
191
+ if (t === "ref")
192
+ s && s(e);
193
+ else if (!l && t[0] === "o" && t[1] === "n") {
194
+ if (t[2] === "-" ? t = t.slice(3) : G(I, o) ? t = o.slice(2) : t = o[2] + t.slice(3), n || s) {
195
+ const a = t.endsWith(le);
196
+ t = t.replace(We, ""), n && g.rel(e, t, n, a), s && g.ael(e, t, s, a);
197
+ }
198
+ } else {
199
+ const a = M(s);
200
+ if ((l || a && s !== null) && !r)
201
+ try {
202
+ if (e.tagName.includes("-"))
203
+ e[t] = s;
204
+ else {
205
+ const $ = s == null ? "" : s;
206
+ t === "list" ? l = !1 : (n == null || e[t] != $) && (e[t] = $);
207
+ }
208
+ } catch ($) {
209
+ }
210
+ s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!l || i & 4 || r) && !a && (s = s === !0 ? "" : s, e.setAttribute(t, s));
211
+ }
212
+ }
213
+ }, De = /\s/, Z = (e) => e ? e.split(De) : [], le = "Capture", We = new RegExp(le + "$"), ae = (e, t, n) => {
214
+ const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = e && e.$attrs$ || J, i = t.$attrs$ || J;
215
+ for (const l of N(Object.keys(r)))
216
+ l in i || Q(s, l, r[l], void 0, n, t.$flags$);
217
+ for (const l of N(Object.keys(i)))
218
+ Q(s, l, r[l], i[l], n, t.$flags$);
219
+ };
220
+ function N(e) {
221
+ return e.includes("ref") ? (
222
+ // we need to sort these to ensure that `'ref'` is the last attr
223
+ [...e.filter((t) => t !== "ref"), "ref"]
224
+ ) : (
225
+ // no need to sort, return the original array
226
+ e
227
+ );
228
+ }
229
+ var A, D, y = !1, O = (e, t, n, s) => {
230
+ const r = t.$children$[n];
231
+ let i = 0, l, o;
232
+ if (r.$text$ !== null)
233
+ l = r.$elm$ = S.createTextNode(r.$text$);
234
+ else {
235
+ if (y || (y = r.$tag$ === "svg"), l = r.$elm$ = S.createElementNS(
236
+ y ? Te : Pe,
237
+ r.$tag$
238
+ ), y && r.$tag$ === "foreignObject" && (y = !1), ae(null, r, y), _e(A) && l["s-si"] !== A && l.classList.add(l["s-si"] = A), r.$children$)
239
+ for (i = 0; i < r.$children$.length; ++i)
240
+ o = O(e, r, i), o && l.appendChild(o);
241
+ r.$tag$ === "svg" ? y = !1 : l.tagName === "foreignObject" && (y = !0);
242
+ }
243
+ return l["s-hn"] = D, l;
244
+ }, ie = (e, t, n, s, r, i) => {
245
+ let l = e, o;
246
+ for (l.shadowRoot && l.tagName === D && (l = l.shadowRoot); r <= i; ++r)
247
+ s[r] && (o = O(null, n, r), o && (s[r].$elm$ = o, L(l, o, t)));
248
+ }, oe = (e, t, n) => {
249
+ for (let s = t; s <= n; ++s) {
250
+ const r = e[s];
251
+ if (r) {
252
+ const i = r.$elm$;
253
+ $e(r), i && i.remove();
254
+ }
255
+ }
256
+ }, Fe = (e, t, n, s, r = !1) => {
257
+ let i = 0, l = 0, o = 0, a = 0, $ = t.length - 1, c = t[0], f = t[$], d = s.length - 1, u = s[0], v = s[d], p, m;
258
+ for (; i <= $ && l <= d; )
259
+ if (c == null)
260
+ c = t[++i];
261
+ else if (f == null)
262
+ f = t[--$];
263
+ else if (u == null)
264
+ u = s[++l];
265
+ else if (v == null)
266
+ v = s[--d];
267
+ else if (_(c, u, r))
268
+ x(c, u, r), c = t[++i], u = s[++l];
269
+ else if (_(f, v, r))
270
+ x(f, v, r), f = t[--$], v = s[--d];
271
+ else if (_(c, v, r))
272
+ x(c, v, r), L(e, c.$elm$, f.$elm$.nextSibling), c = t[++i], v = s[--d];
273
+ else if (_(f, u, r))
274
+ x(f, u, r), L(e, f.$elm$, c.$elm$), f = t[--$], u = s[++l];
275
+ else {
276
+ for (o = -1, a = i; a <= $; ++a)
277
+ if (t[a] && t[a].$key$ !== null && t[a].$key$ === u.$key$) {
278
+ o = a;
279
+ break;
280
+ }
281
+ o >= 0 ? (m = t[o], m.$tag$ !== u.$tag$ ? p = O(t && t[l], n, o) : (x(m, u, r), t[o] = void 0, p = m.$elm$), u = s[++l]) : (p = O(t && t[l], n, l), u = s[++l]), p && L(c.$elm$.parentNode, p, c.$elm$);
282
+ }
283
+ i > $ ? ie(
284
+ e,
285
+ s[d + 1] == null ? null : s[d + 1].$elm$,
286
+ n,
287
+ s,
288
+ l,
289
+ d
290
+ ) : l > d && oe(t, i, $);
291
+ }, _ = (e, t, n = !1) => e.$tag$ === t.$tag$ ? n ? !0 : e.$key$ === t.$key$ : !1, x = (e, t, n = !1) => {
292
+ const s = t.$elm$ = e.$elm$, r = e.$children$, i = t.$children$, l = t.$tag$, o = t.$text$;
293
+ o === null ? (y = l === "svg" ? !0 : l === "foreignObject" ? !1 : y, ae(e, t, y), r !== null && i !== null ? Fe(s, r, t, i, n) : i !== null ? (e.$text$ !== null && (s.textContent = ""), ie(s, null, t, i, 0, i.length - 1)) : r !== null && oe(r, 0, r.length - 1), y && l === "svg" && (y = !1)) : e.$text$ !== o && (s.data = o);
294
+ }, $e = (e) => {
295
+ e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map($e);
296
+ }, L = (e, t, n) => e == null ? void 0 : e.insertBefore(t, n), Ge = (e, t, n = !1) => {
297
+ const s = e.$hostElement$, r = e.$cmpMeta$, i = e.$vnode$ || C(null, null), l = ze(t) ? t : Ue(null, null, t);
298
+ if (D = s.tagName, r.$attrsToReflect$ && (l.$attrs$ = l.$attrs$ || {}, r.$attrsToReflect$.map(
299
+ ([o, a]) => l.$attrs$[a] = s[o]
300
+ )), n && l.$attrs$)
301
+ for (const o of Object.keys(l.$attrs$))
302
+ s.hasAttribute(o) && !["key", "ref", "style", "class"].includes(o) && (l.$attrs$[o] = s[o]);
303
+ l.$tag$ = null, l.$flags$ |= 4, e.$vnode$ = l, l.$elm$ = i.$elm$ = s.shadowRoot || s, A = s["s-sc"], r.$flags$ & 1, x(i, l, n);
304
+ }, ce = (e, t) => {
305
+ t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((n) => e.$onRenderResolve$ = n));
306
+ }, W = (e, t) => {
307
+ if (e.$flags$ |= 16, e.$flags$ & 4) {
308
+ e.$flags$ |= 512;
309
+ return;
310
+ }
311
+ return ce(e, e.$ancestorComponent$), xe(() => Xe(e, t));
312
+ }, Xe = (e, t) => {
313
+ const n = e.$hostElement$, s = E("scheduleUpdate", e.$cmpMeta$.$tagName$), r = e.$lazyInstance$;
314
+ if (!r)
315
+ throw new Error(
316
+ `Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
317
+ );
318
+ let i;
319
+ return t && (i = F(r, "componentWillLoad")), s(), Ye(i, () => Ke(e, r, t));
320
+ }, Ye = (e, t) => Je(e) ? e.then(t).catch((n) => {
321
+ console.error(n), t();
322
+ }) : t(), Je = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Ke = (e, t, n) => P(void 0, null, function* () {
323
+ var s;
324
+ const r = e.$hostElement$, i = E("update", e.$cmpMeta$.$tagName$), l = r["s-rc"];
325
+ n && Me(e);
326
+ const o = E("render", e.$cmpMeta$.$tagName$);
327
+ Qe(e, t, r, n), l && (l.map((a) => a()), r["s-rc"] = void 0), o(), i();
328
+ {
329
+ const a = (s = r["s-p"]) != null ? s : [], $ = () => Ze(e);
330
+ a.length === 0 ? $() : (Promise.all(a).then($), e.$flags$ |= 4, a.length = 0);
331
+ }
332
+ }), Qe = (e, t, n, s) => {
333
+ try {
334
+ t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Ge(e, t, s);
335
+ } catch (r) {
336
+ b(r, e.$hostElement$);
337
+ }
338
+ return null;
339
+ }, Ze = (e) => {
340
+ const t = e.$cmpMeta$.$tagName$, n = e.$hostElement$, s = E("postUpdate", t), r = e.$lazyInstance$, i = e.$ancestorComponent$;
341
+ e.$flags$ & 64 ? s() : (e.$flags$ |= 64, de(n), F(r, "componentDidLoad"), s(), e.$onReadyResolve$(n), i || fe()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && R(() => W(e, !1)), e.$flags$ &= -517;
342
+ }, fe = (e) => {
343
+ de(S.documentElement), R(() => Ce(I, "appload", { detail: { namespace: ge } }));
344
+ }, F = (e, t, n) => {
345
+ if (e && e[t])
346
+ try {
347
+ return e[t](n);
348
+ } catch (s) {
349
+ b(s);
350
+ }
351
+ }, de = (e) => {
352
+ var t;
353
+ return e.classList.add((t = pe.hydratedSelectorName) != null ? t : "hydrated");
354
+ }, Ne = (e, t) => w(e).$instanceValues$.get(t), Ve = (e, t, n, s) => {
355
+ const r = w(e);
356
+ if (!r)
357
+ throw new Error(
358
+ `Couldn't find host element for "${s.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
359
+ );
360
+ const i = r.$hostElement$, l = r.$instanceValues$.get(t), o = r.$flags$, a = r.$lazyInstance$;
361
+ n = Be(n, s.$members$[t][0]);
362
+ const $ = Number.isNaN(l) && Number.isNaN(n), c = n !== l && !$;
363
+ if ((!(o & 8) || l === void 0) && c && (r.$instanceValues$.set(t, n), a)) {
364
+ if (s.$watchers$ && o & 128) {
365
+ const f = s.$watchers$[t];
366
+ f && f.map((d) => {
367
+ try {
368
+ a[d](n, l, t);
369
+ } catch (u) {
370
+ b(u, i);
371
+ }
372
+ });
373
+ }
374
+ (o & 18) === 2 && W(r, !1);
375
+ }
376
+ }, ue = (e, t, n) => {
377
+ var s, r;
378
+ const i = e.prototype;
379
+ if (t.$members$ || t.$watchers$ || e.watchers) {
380
+ e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
381
+ const l = Object.entries((s = t.$members$) != null ? s : {});
382
+ if (l.map(([o, [a]]) => {
383
+ (a & 31 || n & 2 && a & 32) && Object.defineProperty(i, o, {
384
+ get() {
385
+ return Ne(this, o);
386
+ },
387
+ set($) {
388
+ Ve(this, o, $, t);
389
+ },
390
+ configurable: !0,
391
+ enumerable: !0
392
+ });
393
+ }), n & 1) {
394
+ const o = /* @__PURE__ */ new Map();
395
+ i.attributeChangedCallback = function(a, $, c) {
396
+ g.jmp(() => {
397
+ var f;
398
+ const d = o.get(a);
399
+ if (this.hasOwnProperty(d))
400
+ c = this[d], delete this[d];
401
+ else {
402
+ if (i.hasOwnProperty(d) && typeof this[d] == "number" && this[d] == c)
403
+ return;
404
+ if (d == null) {
405
+ const u = w(this), v = u == null ? void 0 : u.$flags$;
406
+ if (v && !(v & 8) && v & 128 && c !== $) {
407
+ const p = u.$lazyInstance$, m = (f = t.$watchers$) == null ? void 0 : f[a];
408
+ m == null || m.forEach((h) => {
409
+ p[h] != null && p[h].call(p, c, $, a);
410
+ });
411
+ }
412
+ return;
413
+ }
414
+ }
415
+ this[d] = c === null && typeof this[d] == "boolean" ? !1 : c;
416
+ });
417
+ }, e.observedAttributes = Array.from(
418
+ /* @__PURE__ */ new Set([
419
+ ...Object.keys((r = t.$watchers$) != null ? r : {}),
420
+ ...l.filter(
421
+ ([a, $]) => $[0] & 15
422
+ /* HasAttribute */
423
+ ).map(([a, $]) => {
424
+ var c;
425
+ const f = $[1] || a;
426
+ return o.set(f, a), $[0] & 512 && ((c = t.$attrsToReflect$) == null || c.push([a, f])), f;
427
+ })
428
+ ])
429
+ );
430
+ }
431
+ }
432
+ return e;
433
+ }, et = (e, t, n, s) => P(void 0, null, function* () {
434
+ let r;
435
+ if (!(t.$flags$ & 32)) {
436
+ if (t.$flags$ |= 32, n.$lazyBundleId$) {
437
+ const a = Se(n);
438
+ if (a && "then" in a) {
439
+ const c = Ie();
440
+ r = yield a, c();
441
+ } else
442
+ r = a;
443
+ if (!r)
444
+ throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);
445
+ r.isProxied || (n.$watchers$ = r.watchers, ue(
446
+ r,
447
+ n,
448
+ 2
449
+ /* proxyState */
450
+ ), r.isProxied = !0);
451
+ const $ = E("createInstance", n.$tagName$);
452
+ t.$flags$ |= 8;
453
+ try {
454
+ new r(t);
455
+ } catch (c) {
456
+ b(c);
457
+ }
458
+ t.$flags$ &= -9, t.$flags$ |= 128, $();
459
+ } else {
460
+ r = e.constructor;
461
+ const a = e.localName;
462
+ customElements.whenDefined(a).then(
463
+ () => t.$flags$ |= 128
464
+ /* isWatchReady */
465
+ );
466
+ }
467
+ if (r && r.style) {
468
+ let a;
469
+ typeof r.style == "string" && (a = r.style);
470
+ const $ = re(n);
471
+ if (!j.has($)) {
472
+ const c = E("registerStyles", n.$tagName$);
473
+ qe($, a, !!(n.$flags$ & 1)), c();
474
+ }
475
+ }
476
+ }
477
+ const i = t.$ancestorComponent$, l = () => W(t, !0);
478
+ i && i["s-rc"] ? i["s-rc"].push(l) : l();
479
+ }), tt = (e) => {
480
+ }, st = (e) => {
481
+ if (!(g.$flags$ & 1)) {
482
+ const t = w(e), n = t.$cmpMeta$, s = E("connectedCallback", n.$tagName$);
483
+ if (t.$flags$ & 1)
484
+ t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => tt());
485
+ else {
486
+ t.$flags$ |= 1;
487
+ {
488
+ let r = e;
489
+ for (; r = r.parentNode || r.host; )
490
+ if (r["s-p"]) {
491
+ ce(t, t.$ancestorComponent$ = r);
492
+ break;
493
+ }
494
+ }
495
+ n.$members$ && Object.entries(n.$members$).map(([r, [i]]) => {
496
+ if (i & 31 && e.hasOwnProperty(r)) {
497
+ const l = e[r];
498
+ delete e[r], e[r] = l;
499
+ }
500
+ }), et(e, t, n);
501
+ }
502
+ s();
503
+ }
504
+ }, V = (e) => {
505
+ F(e, "disconnectedCallback");
506
+ }, nt = (e) => P(void 0, null, function* () {
507
+ if (!(g.$flags$ & 1)) {
508
+ const t = w(e);
509
+ t != null && t.$lazyInstance$ ? V(t.$lazyInstance$) : t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => V(t.$lazyInstance$));
510
+ }
511
+ }), at = (e, t = {}) => {
512
+ var n;
513
+ const s = E(), r = [], i = t.exclude || [], l = I.customElements, o = S.head, a = /* @__PURE__ */ o.querySelector("meta[charset]"), $ = /* @__PURE__ */ S.createElement("style"), c = [];
514
+ let f, d = !0;
515
+ Object.assign(g, t), g.$resourcesUrl$ = new URL(t.resourcesUrl || "./", S.baseURI).href;
516
+ let u = !1;
517
+ if (e.map((v) => {
518
+ v[1].map((p) => {
519
+ var m;
520
+ const h = {
521
+ $flags$: p[0],
522
+ $tagName$: p[1],
523
+ $members$: p[2],
524
+ $listeners$: p[3]
525
+ };
526
+ h.$flags$ & 4 && (u = !0), h.$members$ = p[2], h.$attrsToReflect$ = [], h.$watchers$ = (m = p[4]) != null ? m : {};
527
+ const T = h.$tagName$, ve = class extends HTMLElement {
528
+ // StencilLazyHost
529
+ constructor(k) {
530
+ if (super(k), this.hasRegisteredEventListeners = !1, k = this, me(k, h), h.$flags$ & 1) {
531
+ if (!k.shadowRoot)
532
+ k.attachShadow({ mode: "open" });
533
+ else if (k.shadowRoot.mode !== "open")
534
+ throw new Error(
535
+ `Unable to re-use existing shadow root for ${h.$tagName$}! Mode is set to ${k.shadowRoot.mode} but Stencil only supports open shadow roots.`
536
+ );
537
+ }
538
+ }
539
+ connectedCallback() {
540
+ w(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), f && (clearTimeout(f), f = null), d ? c.push(this) : g.jmp(() => st(this));
541
+ }
542
+ disconnectedCallback() {
543
+ g.jmp(() => nt(this));
544
+ }
545
+ componentOnReady() {
546
+ return w(this).$onReadyPromise$;
547
+ }
548
+ };
549
+ h.$lazyBundleId$ = v[0], !i.includes(T) && !l.get(T) && (r.push(T), l.define(
550
+ T,
551
+ ue(
552
+ ve,
553
+ h,
554
+ 1
555
+ /* isElementConstructor */
556
+ )
557
+ ));
558
+ });
559
+ }), r.length > 0 && (u && ($.textContent += ee), $.textContent += r.sort() + Ee, $.innerHTML.length)) {
560
+ $.setAttribute("data-styles", "");
561
+ const v = (n = g.$nonce$) != null ? n : se(S);
562
+ v != null && $.setAttribute("nonce", v), o.insertBefore($, a ? a.nextSibling : o.firstChild);
563
+ }
564
+ d = !1, c.length ? c.map((v) => v.connectedCallback()) : g.jmp(() => f = setTimeout(fe, 30)), s();
565
+ }, it = (e) => g.$nonce$ = e;
566
+ export {
567
+ He as H,
568
+ at as b,
569
+ Ue as h,
570
+ ke as p,
571
+ lt as r,
572
+ it as s
573
+ };
@@ -0,0 +1 @@
1
+ "use strict";var x=(e,t,n)=>new Promise((s,r)=>{var i=a=>{try{o(n.next(a))}catch($){r($)}},l=a=>{try{o(n.throw(a))}catch($){r($)}},o=a=>a.done?s(a.value):Promise.resolve(a.value).then(i,l);o((n=n.apply(e,t)).next())});const ye="user-deposit-withdrawal",me={hydratedSelectorName:"hydrated"};var Se=Object.defineProperty,Ee=(e,t)=>{for(var n in t)Se(e,n,{get:t[n],enumerable:!0})},q=new WeakMap,w=e=>q.get(e),ke=(e,t)=>q.set(t.$lazyInstance$=e,t),we=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onReadyPromise$=new Promise(s=>n.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],q.set(e,n)},G=(e,t)=>t in e,b=(e,t)=>(0,console.error)(e,t),U=new Map,be=(e,t,n)=>{const s=e.$tagName$.replace(/-/g,"_"),r=e.$lazyBundleId$;if(!r)return;const i=U.get(r);if(i)return i[s];{const l=o=>(U.set(r,o),o[s]);switch(r){case"user-deposit-withdrawal":return Promise.resolve().then(()=>require("../stencil/user-deposit-withdrawal-Div9Us4I.cjs")).then(o=>o.userDepositWithdrawal_entry).then(l,b)}}return import(`./${r}.entry.js`).then(l=>(U.set(r,l),l[s]),b)},j=new Map,Te="{visibility:hidden}.hydrated{visibility:inherit}",ee="slot-fb{display:contents}slot-fb[hidden]{display:none}",I=typeof window!="undefined"?window:{},S=I.document||{head:{}},g={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},te=e=>Promise.resolve(e),Pe=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),H=!1,X=[],se=[],xe=(e,t)=>n=>{e.push(n),H||(H=!0,g.$flags$&4?R(z):g.raf(z))},Y=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){b(n)}e.length=0},z=()=>{Y(X),Y(se),(H=X.length>0)&&g.raf(z)},R=e=>te().then(e),_e=xe(se),J={},Le="http://www.w3.org/2000/svg",Ae="http://www.w3.org/1999/xhtml",je=e=>e!=null,D=e=>(e=typeof e,e==="object"||e==="function");function ne(e){var t,n,s;return(s=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?s:void 0}var Oe={};Ee(Oe,{err:()=>re,map:()=>Ie,ok:()=>B,unwrap:()=>Ue,unwrapErr:()=>He});var B=e=>({isOk:!0,isErr:!1,value:e}),re=e=>({isOk:!1,isErr:!0,value:e});function Ie(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then(s=>B(s)):B(n)}if(e.isErr){const n=e.value;return re(n)}throw"should never get here"}var Ue=e=>{if(e.isOk)return e.value;throw e.value},He=e=>{if(e.isErr)return e.value;throw e.value},E=(e,t="")=>()=>{},ze=(e,t)=>()=>{},le=(e,t,...n)=>{let s=null,r=null,i=!1,l=!1;const o=[],a=c=>{for(let f=0;f<c.length;f++)s=c[f],Array.isArray(s)?a(s):s!=null&&typeof s!="boolean"&&((i=typeof e!="function"&&!D(s))&&(s=String(s)),i&&l?o[o.length-1].$text$+=s:o.push(i?C(null,s):s),l=i)};if(a(n),t){t.key&&(r=t.key);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter(f=>c[f]).join(" "))}}const $=C(e,null);return $.$attrs$=t,o.length>0&&($.$children$=o),$.$key$=r,$},C=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n},ae={},Be=e=>e&&e.$tag$===ae,Ce=(e,t)=>e!=null&&!D(e)?t&4?e==="false"?!1:e===""||!!e:t&1?String(e):e:e,qe=(e,t,n)=>{const s=g.ce(t,n);return e.dispatchEvent(s),s},K=new WeakMap,Re=(e,t,n)=>{let s=j.get(e);Pe&&n?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,j.set(e,s)},De=(e,t,n)=>{var s;const r=ie(t),i=j.get(r);if(e=e.nodeType===11?e:S,i)if(typeof i=="string"){e=e.head||e;let l=K.get(e),o;if(l||K.set(e,l=new Set),!l.has(r)){{o=S.createElement("style"),o.innerHTML=i;const a=(s=g.$nonce$)!=null?s:ne(S);a!=null&&o.setAttribute("nonce",a),e.insertBefore(o,e.querySelector("link"))}t.$flags$&4&&(o.innerHTML+=ee),l&&l.add(r)}}else e.adoptedStyleSheets.includes(i)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]);return r},Me=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,s=t.$flags$,r=E("attachStyles",t.$tagName$),i=De(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);s&10&&(n["s-sc"]=i,n.classList.add(i+"-h")),r()},ie=(e,t)=>"sc-"+e.$tagName$,Q=(e,t,n,s,r,i)=>{if(n!==s){let l=G(e,t),o=t.toLowerCase();if(t==="class"){const a=e.classList,$=Z(n),c=Z(s);a.remove(...$.filter(f=>f&&!c.includes(f))),a.add(...c.filter(f=>f&&!$.includes(f)))}else if(t==="style"){for(const a in n)(!s||s[a]==null)&&(a.includes("-")?e.style.removeProperty(a):e.style[a]="");for(const a in s)(!n||s[a]!==n[a])&&(a.includes("-")?e.style.setProperty(a,s[a]):e.style[a]=s[a])}else if(t!=="key")if(t==="ref")s&&s(e);else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):G(I,o)?t=o.slice(2):t=o[2]+t.slice(3),n||s){const a=t.endsWith(oe);t=t.replace(Fe,""),n&&g.rel(e,t,n,a),s&&g.ael(e,t,s,a)}}else{const a=D(s);if((l||a&&s!==null)&&!r)try{if(e.tagName.includes("-"))e[t]=s;else{const $=s==null?"":s;t==="list"?l=!1:(n==null||e[t]!=$)&&(e[t]=$)}}catch($){}s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!l||i&4||r)&&!a&&(s=s===!0?"":s,e.setAttribute(t,s))}}},We=/\s/,Z=e=>e?e.split(We):[],oe="Capture",Fe=new RegExp(oe+"$"),$e=(e,t,n)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||J,i=t.$attrs$||J;for(const l of N(Object.keys(r)))l in i||Q(s,l,r[l],void 0,n,t.$flags$);for(const l of N(Object.keys(i)))Q(s,l,r[l],i[l],n,t.$flags$)};function N(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var L,M,y=!1,O=(e,t,n,s)=>{const r=t.$children$[n];let i=0,l,o;if(r.$text$!==null)l=r.$elm$=S.createTextNode(r.$text$);else{if(y||(y=r.$tag$==="svg"),l=r.$elm$=S.createElementNS(y?Le:Ae,r.$tag$),y&&r.$tag$==="foreignObject"&&(y=!1),$e(null,r,y),je(L)&&l["s-si"]!==L&&l.classList.add(l["s-si"]=L),r.$children$)for(i=0;i<r.$children$.length;++i)o=O(e,r,i),o&&l.appendChild(o);r.$tag$==="svg"?y=!1:l.tagName==="foreignObject"&&(y=!0)}return l["s-hn"]=M,l},ce=(e,t,n,s,r,i)=>{let l=e,o;for(l.shadowRoot&&l.tagName===M&&(l=l.shadowRoot);r<=i;++r)s[r]&&(o=O(null,n,r),o&&(s[r].$elm$=o,A(l,o,t)))},fe=(e,t,n)=>{for(let s=t;s<=n;++s){const r=e[s];if(r){const i=r.$elm$;de(r),i&&i.remove()}}},Ge=(e,t,n,s,r=!1)=>{let i=0,l=0,o=0,a=0,$=t.length-1,c=t[0],f=t[$],d=s.length-1,u=s[0],v=s[d],h,m;for(;i<=$&&l<=d;)if(c==null)c=t[++i];else if(f==null)f=t[--$];else if(u==null)u=s[++l];else if(v==null)v=s[--d];else if(_(c,u,r))T(c,u,r),c=t[++i],u=s[++l];else if(_(f,v,r))T(f,v,r),f=t[--$],v=s[--d];else if(_(c,v,r))T(c,v,r),A(e,c.$elm$,f.$elm$.nextSibling),c=t[++i],v=s[--d];else if(_(f,u,r))T(f,u,r),A(e,f.$elm$,c.$elm$),f=t[--$],u=s[++l];else{for(o=-1,a=i;a<=$;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===u.$key$){o=a;break}o>=0?(m=t[o],m.$tag$!==u.$tag$?h=O(t&&t[l],n,o):(T(m,u,r),t[o]=void 0,h=m.$elm$),u=s[++l]):(h=O(t&&t[l],n,l),u=s[++l]),h&&A(c.$elm$.parentNode,h,c.$elm$)}i>$?ce(e,s[d+1]==null?null:s[d+1].$elm$,n,s,l,d):l>d&&fe(t,i,$)},_=(e,t,n=!1)=>e.$tag$===t.$tag$?n?!0:e.$key$===t.$key$:!1,T=(e,t,n=!1)=>{const s=t.$elm$=e.$elm$,r=e.$children$,i=t.$children$,l=t.$tag$,o=t.$text$;o===null?(y=l==="svg"?!0:l==="foreignObject"?!1:y,$e(e,t,y),r!==null&&i!==null?Ge(s,r,t,i,n):i!==null?(e.$text$!==null&&(s.textContent=""),ce(s,null,t,i,0,i.length-1)):r!==null&&fe(r,0,r.length-1),y&&l==="svg"&&(y=!1)):e.$text$!==o&&(s.data=o)},de=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(de)},A=(e,t,n)=>e==null?void 0:e.insertBefore(t,n),Xe=(e,t,n=!1)=>{const s=e.$hostElement$,r=e.$cmpMeta$,i=e.$vnode$||C(null,null),l=Be(t)?t:le(null,null,t);if(M=s.tagName,r.$attrsToReflect$&&(l.$attrs$=l.$attrs$||{},r.$attrsToReflect$.map(([o,a])=>l.$attrs$[a]=s[o])),n&&l.$attrs$)for(const o of Object.keys(l.$attrs$))s.hasAttribute(o)&&!["key","ref","style","class"].includes(o)&&(l.$attrs$[o]=s[o]);l.$tag$=null,l.$flags$|=4,e.$vnode$=l,l.$elm$=i.$elm$=s.shadowRoot||s,L=s["s-sc"],r.$flags$&1,T(i,l,n)},ue=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(n=>e.$onRenderResolve$=n))},W=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return ue(e,e.$ancestorComponent$),_e(()=>Ye(e,t))},Ye=(e,t)=>{const n=e.$hostElement$,s=E("scheduleUpdate",e.$cmpMeta$.$tagName$),r=e.$lazyInstance$;if(!r)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return t&&(i=F(r,"componentWillLoad")),s(),Je(i,()=>Qe(e,r,t))},Je=(e,t)=>Ke(e)?e.then(t).catch(n=>{console.error(n),t()}):t(),Ke=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Qe=(e,t,n)=>x(exports,null,function*(){var s;const r=e.$hostElement$,i=E("update",e.$cmpMeta$.$tagName$),l=r["s-rc"];n&&Me(e);const o=E("render",e.$cmpMeta$.$tagName$);Ze(e,t,r,n),l&&(l.map(a=>a()),r["s-rc"]=void 0),o(),i();{const a=(s=r["s-p"])!=null?s:[],$=()=>Ne(e);a.length===0?$():(Promise.all(a).then($),e.$flags$|=4,a.length=0)}}),Ze=(e,t,n,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Xe(e,t,s)}catch(r){b(r,e.$hostElement$)}return null},Ne=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,s=E("postUpdate",t),r=e.$lazyInstance$,i=e.$ancestorComponent$;e.$flags$&64?s():(e.$flags$|=64,ge(n),F(r,"componentDidLoad"),s(),e.$onReadyResolve$(n),i||ve()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&R(()=>W(e,!1)),e.$flags$&=-517},ve=e=>{ge(S.documentElement),R(()=>qe(I,"appload",{detail:{namespace:ye}}))},F=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(s){b(s)}},ge=e=>{var t;return e.classList.add((t=me.hydratedSelectorName)!=null?t:"hydrated")},Ve=(e,t)=>w(e).$instanceValues$.get(t),et=(e,t,n,s)=>{const r=w(e);if(!r)throw new Error(`Couldn't find host element for "${s.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,l=r.$instanceValues$.get(t),o=r.$flags$,a=r.$lazyInstance$;n=Ce(n,s.$members$[t][0]);const $=Number.isNaN(l)&&Number.isNaN(n),c=n!==l&&!$;if((!(o&8)||l===void 0)&&c&&(r.$instanceValues$.set(t,n),a)){if(s.$watchers$&&o&128){const f=s.$watchers$[t];f&&f.map(d=>{try{a[d](n,l,t)}catch(u){b(u,i)}})}(o&18)===2&&W(r,!1)}},he=(e,t,n)=>{var s,r;const i=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const l=Object.entries((s=t.$members$)!=null?s:{});if(l.map(([o,[a]])=>{(a&31||n&2&&a&32)&&Object.defineProperty(i,o,{get(){return Ve(this,o)},set($){et(this,o,$,t)},configurable:!0,enumerable:!0})}),n&1){const o=new Map;i.attributeChangedCallback=function(a,$,c){g.jmp(()=>{var f;const d=o.get(a);if(this.hasOwnProperty(d))c=this[d],delete this[d];else{if(i.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;if(d==null){const u=w(this),v=u==null?void 0:u.$flags$;if(v&&!(v&8)&&v&128&&c!==$){const h=u.$lazyInstance$,m=(f=t.$watchers$)==null?void 0:f[a];m==null||m.forEach(p=>{h[p]!=null&&h[p].call(h,c,$,a)})}return}}this[d]=c===null&&typeof this[d]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!=null?r:{}),...l.filter(([a,$])=>$[0]&15).map(([a,$])=>{var c;const f=$[1]||a;return o.set(f,a),$[0]&512&&((c=t.$attrsToReflect$)==null||c.push([a,f])),f})]))}}return e},tt=(e,t,n,s)=>x(exports,null,function*(){let r;if(!(t.$flags$&32)){if(t.$flags$|=32,n.$lazyBundleId$){const a=be(n);if(a&&"then"in a){const c=ze();r=yield a,c()}else r=a;if(!r)throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);r.isProxied||(n.$watchers$=r.watchers,he(r,n,2),r.isProxied=!0);const $=E("createInstance",n.$tagName$);t.$flags$|=8;try{new r(t)}catch(c){b(c)}t.$flags$&=-9,t.$flags$|=128,$()}else{r=e.constructor;const a=e.localName;customElements.whenDefined(a).then(()=>t.$flags$|=128)}if(r&&r.style){let a;typeof r.style=="string"&&(a=r.style);const $=ie(n);if(!j.has($)){const c=E("registerStyles",n.$tagName$);Re($,a,!!(n.$flags$&1)),c()}}}const i=t.$ancestorComponent$,l=()=>W(t,!0);i&&i["s-rc"]?i["s-rc"].push(l):l()}),st=e=>{},nt=e=>{if(!(g.$flags$&1)){const t=w(e),n=t.$cmpMeta$,s=E("connectedCallback",n.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>st());else{t.$flags$|=1;{let r=e;for(;r=r.parentNode||r.host;)if(r["s-p"]){ue(t,t.$ancestorComponent$=r);break}}n.$members$&&Object.entries(n.$members$).map(([r,[i]])=>{if(i&31&&e.hasOwnProperty(r)){const l=e[r];delete e[r],e[r]=l}}),tt(e,t,n)}s()}},V=e=>{F(e,"disconnectedCallback")},rt=e=>x(exports,null,function*(){if(!(g.$flags$&1)){const t=w(e);t!=null&&t.$lazyInstance$?V(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>V(t.$lazyInstance$))}}),lt=(e,t={})=>{var n;const s=E(),r=[],i=t.exclude||[],l=I.customElements,o=S.head,a=o.querySelector("meta[charset]"),$=S.createElement("style"),c=[];let f,d=!0;Object.assign(g,t),g.$resourcesUrl$=new URL(t.resourcesUrl||"./",S.baseURI).href;let u=!1;if(e.map(v=>{v[1].map(h=>{var m;const p={$flags$:h[0],$tagName$:h[1],$members$:h[2],$listeners$:h[3]};p.$flags$&4&&(u=!0),p.$members$=h[2],p.$attrsToReflect$=[],p.$watchers$=(m=h[4])!=null?m:{};const P=p.$tagName$,pe=class extends HTMLElement{constructor(k){if(super(k),this.hasRegisteredEventListeners=!1,k=this,we(k,p),p.$flags$&1){if(!k.shadowRoot)k.attachShadow({mode:"open"});else if(k.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${p.$tagName$}! Mode is set to ${k.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){w(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),d?c.push(this):g.jmp(()=>nt(this))}disconnectedCallback(){g.jmp(()=>rt(this))}componentOnReady(){return w(this).$onReadyPromise$}};p.$lazyBundleId$=v[0],!i.includes(P)&&!l.get(P)&&(r.push(P),l.define(P,he(pe,p,1)))})}),r.length>0&&(u&&($.textContent+=ee),$.textContent+=r.sort()+Te,$.innerHTML.length)){$.setAttribute("data-styles","");const v=(n=g.$nonce$)!=null?n:ne(S);v!=null&&$.setAttribute("nonce",v),o.insertBefore($,a?a.nextSibling:o.firstChild)}d=!1,c.length?c.map(v=>v.connectedCallback()):g.jmp(()=>f=setTimeout(ve,30)),s()},at=e=>g.$nonce$=e;exports.Host=ae;exports.bootstrapLazy=lt;exports.h=le;exports.promiseResolve=te;exports.registerInstance=ke;exports.setNonce=at;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-header-controller-nd",
3
- "version": "1.77.26",
3
+ "version": "1.77.27",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-header-controller-nd.cjs",
6
6
  "module": "esnext/casino-header-controller-nd.js",
@@ -14,7 +14,7 @@ var p = (i, t, n) => new Promise((e, o) => {
14
14
  }, a = (l) => l.done ? e(l.value) : Promise.resolve(l.value).then(s, c);
15
15
  a((n = n.apply(i, t)).next());
16
16
  });
17
- import { r as u, h as r, g as y } from "../lazy/gamification-dropdown-BaFOd6fn.js";
17
+ import { r as u, h as r, g as y } from "../lazy/gamification-dropdown-BXn4YJ1N.js";
18
18
  const w = "en";
19
19
  let h = {
20
20
  en: {
@@ -1,4 +1,4 @@
1
- import { r as g, h as a, g as f } from "../lazy/gamification-dropdown-DtJ5neR-.js";
1
+ import { r as g, h as a, g as f } from "../lazy/gamification-dropdown-B3HxrtUy.js";
2
2
  const m = "en";
3
3
  let l = {
4
4
  en: {
@@ -1 +1 @@
1
- "use strict";var f=(i,t,n)=>new Promise((e,o)=>{var s=r=>{try{l(n.next(r))}catch(d){o(d)}},c=r=>{try{l(n.throw(r))}catch(d){o(d)}},l=r=>r.done?e(r.value):Promise.resolve(r.value).then(s,c);l((n=n.apply(i,t)).next())});const a=require("../lazy/gamification-dropdown-C_wwdEnw.cjs"),w="en";let h={en:{gamificationNoPoints:"No points"},de:{gamificationNoPoints:"No points"},ro:{gamificationNoPoints:"No points"},fr:{gamificationNoPoints:"No points"},ar:{gamificationNoPoints:"No points"},hr:{gamificationNoPoints:"No points"}};const m=i=>new Promise(t=>{fetch(i).then(n=>n.json()).then(n=>{Object.keys(n).forEach(e=>{h[e]||(h[e]={});for(let o in n[e])h[e][o]=n[e][o]}),t(!0)})}),v=(i,t)=>{const n=t;return h[n!==void 0&&n in h?n:w][i]};function p(i,t){if(i){const n=document.createElement("style");n.innerHTML=t,i.appendChild(n)}}function g(i,t){const n=new URL(t);fetch(n.href).then(e=>e.text()).then(e=>{const o=document.createElement("style");o.innerHTML=e,i&&i.appendChild(o)}).catch(e=>{console.error("There was an error while trying to load client styling from URL",e)})}function y(i,t,n){if(window.emMessageBus){const e=document.createElement("style");window.emMessageBus.subscribe(t,o=>{e.innerHTML=o,i&&i.appendChild(e)})}}const S=":host{display:block}.GamificationDropdownContainer{position:relative}.GamificationDropdownContainer .GamificationDropdown{position:absolute;left:0;z-index:200;overflow:hidden;cursor:pointer}.GamificationDropdownButton{cursor:pointer;font-size:14px;height:20px;background-color:unset;color:var(--emw--color-typography, #FFFFFF);padding:0;border:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center;line-height:0}.GamificationDropdownButton:hover{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton:hover svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton .TriangleActive,.GamificationDropdownButton .TriangleInactive{display:block;transition:all 0.2s}.GamificationDropdownButton .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px);fill:var(--emw--color-primary, #52d004);margin-top:4px}.GamificationDropdownButton svg{fill:var(--emw--color-typography, #FFFFFF);margin-left:8px;width:16px}",C=S,u=class{constructor(i){a.registerInstance(this,i),this.messageHandler=t=>{t.data&&t.data.type==="UpdateGamificationXp"&&(this.loyaltyPoints=t.data.points)},this.navigateToGamification=()=>{window.postMessage({type:"NavigateToGamification"},window.location.href),this.isOpen=!1},this.handleOutsideClick=t=>{t.composedPath().includes(this.el)||(this.isOpen=!1,document.removeEventListener("click",this.handleOutsideClick))},this.handleDropdownClick=t=>{t.stopPropagation(),this.isOpen=!this.isOpen,this.isOpen?document.addEventListener("click",this.handleOutsideClick):document.removeEventListener("click",this.handleOutsideClick)},this.endpoint=void 0,this.language="en",this.session="",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.isOpen=!1,this.isLoading=!1,this.loyaltyPoints=void 0}handleNewTranslations(){this.isLoading=!0,m(this.translationUrl).then(()=>{this.isLoading=!1})}handleClientStylingChange(i,t){i!=t&&p(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(i,t){i!=t&&this.clientStylingUrl&&g(this.stylingContainer,this.clientStylingUrl)}componentWillLoad(){return f(this,null,function*(){if(this.translationUrl.length>2&&(yield m(this.translationUrl)),this.endpoint&&this.language)return this.fetchPointsData()})}componentDidLoad(){window.addEventListener("message",this.messageHandler),this.stylingContainer&&(window.emMessageBus!=null?y(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&p(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&g(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),window.removeEventListener("message",this.messageHandler)}fetchPointsData(){let i=new URL(`${this.endpoint}/v1/elevate/playerInfo`);i.searchParams.append("language",this.language);const t=new Headers;t.append("X-SessionId",this.session);const n={method:"GET",headers:t};return new Promise((e,o)=>{this.isLoading=!0,fetch(i.href,n).then(s=>s.json()).then(s=>{var c,l;this.loyaltyPoints=(l=(c=s==null?void 0:s.data)===null||c===void 0?void 0:c.level)===null||l===void 0?void 0:l.loyaltyPoints,e(!0)}).catch(s=>{console.error(s),o(s)}).finally(()=>{this.isLoading=!1})})}render(){return this.isLoading?null:a.h("div",{ref:i=>this.stylingContainer=i,class:"GamificationDropdownContainer"},a.h("button",{class:`GamificationDropdownButton ${this.isOpen?"IsOpen":""}`,type:"button",onClick:i=>this.handleDropdownClick(i),title:typeof this.loyaltyPoints=="number"?String(this.loyaltyPoints):v("gamificationNoPoints",this.language)},typeof this.loyaltyPoints=="number"?`${this.loyaltyPoints} XP`:"...",a.h("span",{class:this.isOpen?"TriangleActive":"TriangleInactive"},a.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"6.835",viewBox:"0 0 14 6.835"},a.h("path",{id:"arrow",d:"M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z",transform:"translate(-274.511 -441.088)"})))),this.isOpen&&a.h("div",{class:"GamificationDropdown",onClick:this.navigateToGamification},a.h("player-elevate-loyaltycard",{endpoint:this.endpoint,session:this.session,language:this.language,"client-styling-url":this.clientStylingUrl,"client-styling":this.clientStyling,"mb-source":this.mbSource})))}get el(){return a.getElement(this)}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};u.style=C;exports.GamificationDropdown=u;exports.setClientStyling=p;exports.setClientStylingURL=g;exports.setStreamStyling=y;
1
+ "use strict";var f=(i,t,n)=>new Promise((e,o)=>{var s=r=>{try{l(n.next(r))}catch(d){o(d)}},c=r=>{try{l(n.throw(r))}catch(d){o(d)}},l=r=>r.done?e(r.value):Promise.resolve(r.value).then(s,c);l((n=n.apply(i,t)).next())});const a=require("../lazy/gamification-dropdown-B0uRqHF5.cjs"),w="en";let h={en:{gamificationNoPoints:"No points"},de:{gamificationNoPoints:"No points"},ro:{gamificationNoPoints:"No points"},fr:{gamificationNoPoints:"No points"},ar:{gamificationNoPoints:"No points"},hr:{gamificationNoPoints:"No points"}};const m=i=>new Promise(t=>{fetch(i).then(n=>n.json()).then(n=>{Object.keys(n).forEach(e=>{h[e]||(h[e]={});for(let o in n[e])h[e][o]=n[e][o]}),t(!0)})}),v=(i,t)=>{const n=t;return h[n!==void 0&&n in h?n:w][i]};function p(i,t){if(i){const n=document.createElement("style");n.innerHTML=t,i.appendChild(n)}}function g(i,t){const n=new URL(t);fetch(n.href).then(e=>e.text()).then(e=>{const o=document.createElement("style");o.innerHTML=e,i&&i.appendChild(o)}).catch(e=>{console.error("There was an error while trying to load client styling from URL",e)})}function y(i,t,n){if(window.emMessageBus){const e=document.createElement("style");window.emMessageBus.subscribe(t,o=>{e.innerHTML=o,i&&i.appendChild(e)})}}const S=":host{display:block}.GamificationDropdownContainer{position:relative}.GamificationDropdownContainer .GamificationDropdown{position:absolute;left:0;z-index:200;overflow:hidden;cursor:pointer}.GamificationDropdownButton{cursor:pointer;font-size:14px;height:20px;background-color:unset;color:var(--emw--color-typography, #FFFFFF);padding:0;border:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center;line-height:0}.GamificationDropdownButton:hover{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton:hover svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton .TriangleActive,.GamificationDropdownButton .TriangleInactive{display:block;transition:all 0.2s}.GamificationDropdownButton .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px);fill:var(--emw--color-primary, #52d004);margin-top:4px}.GamificationDropdownButton svg{fill:var(--emw--color-typography, #FFFFFF);margin-left:8px;width:16px}",C=S,u=class{constructor(i){a.registerInstance(this,i),this.messageHandler=t=>{t.data&&t.data.type==="UpdateGamificationXp"&&(this.loyaltyPoints=t.data.points)},this.navigateToGamification=()=>{window.postMessage({type:"NavigateToGamification"},window.location.href),this.isOpen=!1},this.handleOutsideClick=t=>{t.composedPath().includes(this.el)||(this.isOpen=!1,document.removeEventListener("click",this.handleOutsideClick))},this.handleDropdownClick=t=>{t.stopPropagation(),this.isOpen=!this.isOpen,this.isOpen?document.addEventListener("click",this.handleOutsideClick):document.removeEventListener("click",this.handleOutsideClick)},this.endpoint=void 0,this.language="en",this.session="",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.isOpen=!1,this.isLoading=!1,this.loyaltyPoints=void 0}handleNewTranslations(){this.isLoading=!0,m(this.translationUrl).then(()=>{this.isLoading=!1})}handleClientStylingChange(i,t){i!=t&&p(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(i,t){i!=t&&this.clientStylingUrl&&g(this.stylingContainer,this.clientStylingUrl)}componentWillLoad(){return f(this,null,function*(){if(this.translationUrl.length>2&&(yield m(this.translationUrl)),this.endpoint&&this.language)return this.fetchPointsData()})}componentDidLoad(){window.addEventListener("message",this.messageHandler),this.stylingContainer&&(window.emMessageBus!=null?y(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&p(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&g(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),window.removeEventListener("message",this.messageHandler)}fetchPointsData(){let i=new URL(`${this.endpoint}/v1/elevate/playerInfo`);i.searchParams.append("language",this.language);const t=new Headers;t.append("X-SessionId",this.session);const n={method:"GET",headers:t};return new Promise((e,o)=>{this.isLoading=!0,fetch(i.href,n).then(s=>s.json()).then(s=>{var c,l;this.loyaltyPoints=(l=(c=s==null?void 0:s.data)===null||c===void 0?void 0:c.level)===null||l===void 0?void 0:l.loyaltyPoints,e(!0)}).catch(s=>{console.error(s),o(s)}).finally(()=>{this.isLoading=!1})})}render(){return this.isLoading?null:a.h("div",{ref:i=>this.stylingContainer=i,class:"GamificationDropdownContainer"},a.h("button",{class:`GamificationDropdownButton ${this.isOpen?"IsOpen":""}`,type:"button",onClick:i=>this.handleDropdownClick(i),title:typeof this.loyaltyPoints=="number"?String(this.loyaltyPoints):v("gamificationNoPoints",this.language)},typeof this.loyaltyPoints=="number"?`${this.loyaltyPoints} XP`:"...",a.h("span",{class:this.isOpen?"TriangleActive":"TriangleInactive"},a.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"6.835",viewBox:"0 0 14 6.835"},a.h("path",{id:"arrow",d:"M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z",transform:"translate(-274.511 -441.088)"})))),this.isOpen&&a.h("div",{class:"GamificationDropdown",onClick:this.navigateToGamification},a.h("player-elevate-loyaltycard",{endpoint:this.endpoint,session:this.session,language:this.language,"client-styling-url":this.clientStylingUrl,"client-styling":this.clientStyling,"mb-source":this.mbSource})))}get el(){return a.getElement(this)}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};u.style=C;exports.GamificationDropdown=u;exports.setClientStyling=p;exports.setClientStylingURL=g;exports.setStreamStyling=y;