@everymatrix/casino-header-controller-nd 1.54.12 → 1.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/components/{CasinoHamburgerMenuNd-C0vs2463.js → CasinoHamburgerMenuNd-CAV9ARg-.js} +915 -893
  2. package/components/CasinoHamburgerMenuNd-CSCV-5CJ.cjs +5 -0
  3. package/components/{CasinoHamburgerMenuNd-ByOv9WYg.js → CasinoHamburgerMenuNd-DNYzzmAB.js} +904 -882
  4. package/components/{CasinoHeaderControllerNd-DNfULXvS.js → CasinoHeaderControllerNd-B4Hgo5oq.js} +87 -87
  5. package/components/{CasinoHeaderControllerNd-C0iBDw78.cjs → CasinoHeaderControllerNd-Cd6hH1wA.cjs} +1 -1
  6. package/components/{CasinoHeaderControllerNd-Bj0vkyt0.js → CasinoHeaderControllerNd-bGnLcz2g.js} +85 -85
  7. package/components/{PlayerAccountBalanceModalNd-bDU8dGTK.js → PlayerAccountBalanceModalNd-BJJzPbdP.js} +96 -96
  8. package/components/{PlayerAccountBalanceModalNd-B4Yp_9Au.js → PlayerAccountBalanceModalNd-Ca8dF_9M.js} +93 -93
  9. package/components/{PlayerAccountBalanceModalNd-CjlZ6-7s.cjs → PlayerAccountBalanceModalNd-P1iLuuUG.cjs} +1 -1
  10. package/components/PlayerDeposit-B0r58Ypp.js +414 -0
  11. package/components/PlayerDeposit-BkVMpjA9.js +414 -0
  12. package/components/PlayerDeposit-CjEddUaf.cjs +1 -0
  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/package.json +1 -1
  17. package/stencil/{gamification-dropdown-370424de-CedFjFMQ.js → gamification-dropdown-456bb56a-BJ9kAxaI.js} +4 -4
  18. package/stencil/{gamification-dropdown-370424de-G0GDuoBY.js → gamification-dropdown-456bb56a-CldmfDdk.js} +9 -9
  19. package/stencil/gamification-dropdown-456bb56a-ClnsHPoT.cjs +1 -0
  20. package/stencil/{gamification-dropdown-CnI6W6X-.js → gamification-dropdown-BdMkPvQc.js} +1 -1
  21. package/stencil/{gamification-dropdown-Dy-qtuaZ.cjs → gamification-dropdown-CnrQK1ei.cjs} +1 -1
  22. package/stencil/{gamification-dropdown-BhM9nF9V.js → gamification-dropdown-FVqK4we0.js} +1 -1
  23. package/stencil/{gamification-dropdown_4-DgJc4ulv.js → gamification-dropdown_4-BZffGACN.js} +10 -10
  24. package/stencil/{gamification-dropdown_4-DFXXWsNB.js → gamification-dropdown_4-Cg4EiNTS.js} +9 -9
  25. package/stencil/gamification-dropdown_4-DNV5b4s7.cjs +192 -0
  26. package/stencil/index-171550cf-BY--MwdX.cjs +1 -0
  27. package/stencil/index-171550cf-CVTOm2AV.js +799 -0
  28. package/stencil/index-171550cf-JwZ7TN-k.js +772 -0
  29. package/stencil/{player-elevate-card-l6Kpw4ym.js → player-elevate-card-Bo3fCMU8.js} +4 -4
  30. package/stencil/{player-elevate-card-CdmFcZg6.js → player-elevate-card-CGn57laL.js} +4 -4
  31. package/stencil/player-elevate-card-CW-95gEJ.cjs +64 -0
  32. package/stencil/{player-elevate-card-items-4e46b4c8-CP-E64XG.js → player-elevate-card-items-2078bd83-CUXuMGCR.js} +3 -1
  33. package/stencil/player-elevate-card-items-2078bd83-DSxFMBLz.cjs +1 -0
  34. package/stencil/{player-elevate-card-items-4e46b4c8-BDoQLG1C.js → player-elevate-card-items-2078bd83-DvW50KrW.js} +3 -1
  35. package/stencil/player-elevate-pointcard-DVgy3cq3.cjs +1 -0
  36. package/stencil/{player-elevate-pointcard-D8gCv0PA.js → player-elevate-pointcard-jLOeOCx0.js} +7 -7
  37. package/stencil/{player-elevate-pointcard-DOd_C-CP.js → player-elevate-pointcard-teAW1AOh.js} +7 -7
  38. package/components/CasinoHamburgerMenuNd-C_mDzbID.cjs +0 -5
  39. package/components/PlayerDeposit-C__xk64-.js +0 -395
  40. package/components/PlayerDeposit-CmyD00QS.js +0 -395
  41. package/components/PlayerDeposit-DGMSukDR.cjs +0 -1
  42. package/stencil/gamification-dropdown-370424de-pf_jqgr1.cjs +0 -1
  43. package/stencil/gamification-dropdown_4-BDv_Y1ow.cjs +0 -192
  44. package/stencil/index-1ed44842-Cv2DDELg.js +0 -832
  45. package/stencil/index-1ed44842-Cv7p6OfM.js +0 -859
  46. package/stencil/index-1ed44842-Dr1nsipr.cjs +0 -1
  47. package/stencil/player-elevate-card-Btncg_vx.cjs +0 -64
  48. package/stencil/player-elevate-card-items-4e46b4c8-aapR8B2m.cjs +0 -1
  49. package/stencil/player-elevate-pointcard-CcFdRk9Q.cjs +0 -1
@@ -1,832 +0,0 @@
1
- const je = "gamification-dropdown", I = (
2
- /* gamification-dropdown */
3
- { experimentalSlotFixes: !1, hydratedSelectorName: "hydrated", lazyLoad: !0, slotRelocation: !0, updatable: !0 }
4
- );
5
- var Re = Object.defineProperty, Ie = (e, t) => {
6
- for (var s in t)
7
- Re(e, s, { get: t[s], enumerable: !0 });
8
- }, He = "http://www.w3.org/2000/svg", ze = "http://www.w3.org/1999/xhtml", M = /* @__PURE__ */ new WeakMap(), x = (e) => M.get(e), bt = (e, t) => {
9
- M.set(t.$lazyInstance$ = e, t);
10
- }, Ue = (e, t) => {
11
- const s = {
12
- $flags$: 0,
13
- $hostElement$: e,
14
- $cmpMeta$: t,
15
- $instanceValues$: /* @__PURE__ */ new Map()
16
- };
17
- return s.$onReadyPromise$ = new Promise((r) => s.$onReadyResolve$ = r), e["s-p"] = [], e["s-rc"] = [], M.set(e, s);
18
- }, ne = (e, t) => t in e, L = (e, t) => (0, console.error)(e, t), W = /* @__PURE__ */ new Map(), qe = (e, t, s) => {
19
- const n = e.$tagName$.replace(/-/g, "_"), r = e.$lazyBundleId$;
20
- if (!r)
21
- return;
22
- const i = W.get(r);
23
- if (i)
24
- return i[n];
25
- {
26
- const a = (l) => (W.set(r, l), l[n]);
27
- switch (r) {
28
- case "gamification-dropdown_4":
29
- return import(
30
- /* webpackMode: "lazy" */
31
- "./gamification-dropdown_4-DFXXWsNB.js"
32
- ).then(a, L);
33
- case "player-elevate-card":
34
- return import(
35
- /* webpackMode: "lazy" */
36
- "./player-elevate-card-l6Kpw4ym.js"
37
- ).then(a, L);
38
- case "player-elevate-pointcard":
39
- return import(
40
- /* webpackMode: "lazy" */
41
- "./player-elevate-pointcard-D8gCv0PA.js"
42
- ).then(a, L);
43
- }
44
- }
45
- return import(
46
- /* @vite-ignore */
47
- /* webpackInclude: /\.entry\.js$/ */
48
- /* webpackExclude: /\.system\.entry\.js$/ */
49
- /* webpackMode: "lazy" */
50
- `./${r}.entry.js`
51
- ).then(
52
- (a) => (W.set(r, a), a[n]),
53
- (a) => {
54
- L(a, t.$hostElement$);
55
- }
56
- );
57
- }, U = /* @__PURE__ */ new Map(), Be = "sty-id", De = "{visibility:hidden}.hydrated{visibility:inherit}", fe = "slot-fb{display:contents}slot-fb[hidden]{display:none}", m = typeof window < "u" ? window : {}, E = m.document || { head: {} }, p = {
58
- $flags$: 0,
59
- $resourcesUrl$: "",
60
- jmp: (e) => e(),
61
- raf: (e) => requestAnimationFrame(e),
62
- ael: (e, t, s, n) => e.addEventListener(t, s, n),
63
- rel: (e, t, s, n) => e.removeEventListener(t, s, n),
64
- ce: (e, t) => new CustomEvent(e, t)
65
- }, Ce = /* @__PURE__ */ (() => {
66
- let e = !1;
67
- try {
68
- E.addEventListener(
69
- "e",
70
- null,
71
- Object.defineProperty({}, "passive", {
72
- get() {
73
- e = !0;
74
- }
75
- })
76
- );
77
- } catch {
78
- }
79
- return e;
80
- })(), Fe = (e) => Promise.resolve(e), de = /* @__PURE__ */ (() => {
81
- try {
82
- return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
83
- } catch {
84
- }
85
- return !1;
86
- })(), Y = !1, re = [], ue = [], We = (e, t) => (s) => {
87
- e.push(s), Y || (Y = !0, p.$flags$ & 4 ? N(X) : p.raf(X));
88
- }, le = (e) => {
89
- for (let t = 0; t < e.length; t++)
90
- try {
91
- e[t](performance.now());
92
- } catch (s) {
93
- L(s);
94
- }
95
- e.length = 0;
96
- }, X = () => {
97
- le(re), le(ue), (Y = re.length > 0) && p.raf(X);
98
- }, N = (e) => Fe().then(e), Ge = /* @__PURE__ */ We(ue), wt = (e) => {
99
- const t = new URL(e, p.$resourcesUrl$);
100
- return t.origin !== m.location.origin ? t.href : t.pathname;
101
- }, V = (e) => (e = typeof e, e === "object" || e === "function");
102
- function he(e) {
103
- var t, s, n;
104
- return (n = (s = (t = e.head) == null ? void 0 : t.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : s.getAttribute("content")) != null ? n : void 0;
105
- }
106
- var Ye = {};
107
- Ie(Ye, {
108
- err: () => pe,
109
- map: () => Xe,
110
- ok: () => J,
111
- unwrap: () => Je,
112
- unwrapErr: () => Ke
113
- });
114
- var J = (e) => ({
115
- isOk: !0,
116
- isErr: !1,
117
- value: e
118
- }), pe = (e) => ({
119
- isOk: !1,
120
- isErr: !0,
121
- value: e
122
- });
123
- function Xe(e, t) {
124
- if (e.isOk) {
125
- const s = t(e.value);
126
- return s instanceof Promise ? s.then((n) => J(n)) : J(s);
127
- }
128
- if (e.isErr) {
129
- const s = e.value;
130
- return pe(s);
131
- }
132
- throw "should never get here";
133
- }
134
- var Je = (e) => {
135
- if (e.isOk)
136
- return e.value;
137
- throw e.value;
138
- }, Ke = (e) => {
139
- if (e.isErr)
140
- return e.value;
141
- throw e.value;
142
- }, ve = (e) => {
143
- const t = e.__childNodes || e.childNodes;
144
- e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && ge(t, e.tagName).forEach((s) => {
145
- var n;
146
- s.nodeType === 1 && s.tagName === "SLOT-FB" && ((n = Qe(s, s["s-sn"], !1)) != null && n.length ? s.hidden = !0 : s.hidden = !1);
147
- });
148
- for (const s of t)
149
- s.nodeType === 1 && (s.__childNodes || s.childNodes).length && ve(s);
150
- };
151
- function ge(e, t, s) {
152
- let n = 0, r = [], i;
153
- for (; n < e.length; n++)
154
- i = e[n], i["s-sr"] && i["s-hn"] === t && s === void 0 && r.push(i), r = [...r, ...ge(i.childNodes, t, s)];
155
- return r;
156
- }
157
- var Qe = (e, t, s = !0) => {
158
- const n = [];
159
- for ((s && e["s-sr"] || !e["s-sr"]) && n.push(e); (e = e.nextSibling) && e["s-sn"] === t; )
160
- n.push(e);
161
- return n;
162
- }, ie = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", w = (e, t = "") => () => {
163
- }, Ze = (e, t) => () => {
164
- }, ye = (e, t, ...s) => {
165
- let n = null, r = null, i = null, a = !1, l = !1;
166
- const $ = [], c = (d) => {
167
- for (let o = 0; o < d.length; o++)
168
- n = d[o], Array.isArray(n) ? c(n) : n != null && typeof n != "boolean" && ((a = typeof e != "function" && !V(n)) && (n = String(n)), a && l ? $[$.length - 1].$text$ += n : $.push(a ? q(null, n) : n), l = a);
169
- };
170
- if (c(s), t) {
171
- t.key && (r = t.key), t.name && (i = t.name);
172
- {
173
- const d = t.className || t.class;
174
- d && (t.class = typeof d != "object" ? d : Object.keys(d).filter((o) => d[o]).join(" "));
175
- }
176
- }
177
- if (typeof e == "function")
178
- return e(
179
- t === null ? {} : t,
180
- $,
181
- Ve
182
- );
183
- const f = q(e, null);
184
- return f.$attrs$ = t, $.length > 0 && (f.$children$ = $), f.$key$ = r, f.$name$ = i, f;
185
- }, q = (e, t) => {
186
- const s = {
187
- $flags$: 0,
188
- $tag$: e,
189
- $text$: t,
190
- $elm$: null,
191
- $children$: null
192
- };
193
- return s.$attrs$ = null, s.$key$ = null, s.$name$ = null, s;
194
- }, Me = {}, Ne = (e) => e && e.$tag$ === Me, Ve = {
195
- forEach: (e, t) => e.map(oe).forEach(t),
196
- map: (e, t) => e.map(oe).map(t).map(et)
197
- }, oe = (e) => ({
198
- vattrs: e.$attrs$,
199
- vchildren: e.$children$,
200
- vkey: e.$key$,
201
- vname: e.$name$,
202
- vtag: e.$tag$,
203
- vtext: e.$text$
204
- }), et = (e) => {
205
- if (typeof e.vtag == "function") {
206
- const s = { ...e.vattrs };
207
- return e.vkey && (s.key = e.vkey), e.vname && (s.name = e.vname), ye(e.vtag, s, ...e.vchildren || []);
208
- }
209
- const t = q(e.vtag, e.vtext);
210
- return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname, t;
211
- }, K = (e, t) => e != null && !V(e) && t & 1 ? String(e) : e, tt = (e) => x(e).$hostElement$, Ot = (e, t, s) => {
212
- const n = tt(e);
213
- return {
214
- emit: (r) => Se(n, t, {
215
- bubbles: !0,
216
- composed: !0,
217
- cancelable: !0,
218
- detail: r
219
- })
220
- };
221
- }, Se = (e, t, s) => {
222
- const n = p.ce(t, s);
223
- return e.dispatchEvent(n), n;
224
- }, A = /* @__PURE__ */ new WeakMap(), st = (e, t, s) => {
225
- let n = U.get(e);
226
- de && s ? (n = n || new CSSStyleSheet(), typeof n == "string" ? n = t : n.replaceSync(t)) : n = t, U.set(e, n);
227
- }, nt = (e, t, s) => {
228
- var n;
229
- const r = ke(t), i = U.get(r);
230
- if (e = e.nodeType === 11 ? e : E, i)
231
- if (typeof i == "string") {
232
- e = e.head || e;
233
- let a = A.get(e), l;
234
- if (a || A.set(e, a = /* @__PURE__ */ new Set()), !a.has(r)) {
235
- {
236
- l = document.querySelector(`[${Be}="${r}"]`) || E.createElement("style"), l.innerHTML = i;
237
- const $ = (n = p.$nonce$) != null ? n : he(E);
238
- if ($ != null && l.setAttribute("nonce", $), !(t.$flags$ & 1))
239
- if (e.nodeName === "HEAD") {
240
- const c = e.querySelectorAll("link[rel=preconnect]"), f = c.length > 0 ? c[c.length - 1].nextSibling : e.querySelector("style");
241
- e.insertBefore(
242
- l,
243
- f?.parentNode === e ? f : null
244
- );
245
- } else if ("host" in e)
246
- if (de) {
247
- const c = new CSSStyleSheet();
248
- c.replaceSync(i), e.adoptedStyleSheets = [c, ...e.adoptedStyleSheets];
249
- } else {
250
- const c = e.querySelector("style");
251
- c ? c.innerHTML = i + c.innerHTML : e.prepend(l);
252
- }
253
- else
254
- e.append(l);
255
- t.$flags$ & 1 && e.insertBefore(l, null);
256
- }
257
- t.$flags$ & 4 && (l.innerHTML += fe), a && a.add(r);
258
- }
259
- } else e.adoptedStyleSheets.includes(i) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, i]);
260
- return r;
261
- }, rt = (e) => {
262
- const t = e.$cmpMeta$, s = e.$hostElement$, n = t.$flags$, r = w("attachStyles", t.$tagName$), i = nt(
263
- s.shadowRoot ? s.shadowRoot : s.getRootNode(),
264
- t
265
- );
266
- (n & 10 && n & 2 || n & 128) && (s["s-sc"] = i, s.classList.add(i + "-h")), r();
267
- }, ke = (e, t) => "sc-" + e.$tagName$, ae = (e, t, s, n, r, i, a) => {
268
- if (s !== n) {
269
- let l = ne(e, t), $ = t.toLowerCase();
270
- if (t === "class") {
271
- const c = e.classList, f = $e(s);
272
- let d = $e(n);
273
- c.remove(...f.filter((o) => o && !d.includes(o))), c.add(...d.filter((o) => o && !f.includes(o)));
274
- } else if (t === "style") {
275
- for (const c in s)
276
- (!n || n[c] == null) && (c.includes("-") ? e.style.removeProperty(c) : e.style[c] = "");
277
- for (const c in n)
278
- (!s || n[c] !== s[c]) && (c.includes("-") ? e.style.setProperty(c, n[c]) : e.style[c] = n[c]);
279
- } else if (t !== "key") if (t === "ref")
280
- n && n(e);
281
- else if (!l && t[0] === "o" && t[1] === "n") {
282
- if (t[2] === "-" ? t = t.slice(3) : ne(m, $) ? t = $.slice(2) : t = $[2] + t.slice(3), s || n) {
283
- const c = t.endsWith(Ee);
284
- t = t.replace(it, ""), s && p.rel(e, t, s, c), n && p.ael(e, t, n, c);
285
- }
286
- } else {
287
- const c = V(n);
288
- if ((l || c && n !== null) && !r)
289
- try {
290
- if (e.tagName.includes("-"))
291
- e[t] !== n && (e[t] = n);
292
- else {
293
- const f = n ?? "";
294
- t === "list" ? l = !1 : (s == null || e[t] != f) && (typeof e.__lookupSetter__(t) == "function" ? e[t] = f : e.setAttribute(t, f));
295
- }
296
- } catch {
297
- }
298
- n == null || n === !1 ? (n !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!l || i & 4 || r) && !c && (n = n === !0 ? "" : n, e.setAttribute(t, n));
299
- }
300
- }
301
- }, lt = /\s/, $e = (e) => (typeof e == "object" && e && "baseVal" in e && (e = e.baseVal), !e || typeof e != "string" ? [] : e.split(lt)), Ee = "Capture", it = new RegExp(Ee + "$"), _e = (e, t, s, n) => {
302
- const r = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, i = e && e.$attrs$ || {}, a = t.$attrs$ || {};
303
- for (const l of ce(Object.keys(i)))
304
- l in a || ae(
305
- r,
306
- l,
307
- i[l],
308
- void 0,
309
- s,
310
- t.$flags$
311
- );
312
- for (const l of ce(Object.keys(a)))
313
- ae(
314
- r,
315
- l,
316
- i[l],
317
- a[l],
318
- s,
319
- t.$flags$
320
- );
321
- };
322
- function ce(e) {
323
- return e.includes("ref") ? (
324
- // we need to sort these to ensure that `'ref'` is the last attr
325
- [...e.filter((t) => t !== "ref"), "ref"]
326
- ) : (
327
- // no need to sort, return the original array
328
- e
329
- );
330
- }
331
- var Q, F, B = !1, D = !1, ee = !1, k = !1, C = (e, t, s) => {
332
- var n;
333
- const r = t.$children$[s];
334
- let i = 0, a, l, $;
335
- if (B || (ee = !0, r.$tag$ === "slot" && (r.$flags$ |= r.$children$ ? (
336
- // slot element has fallback content
337
- // still create an element that "mocks" the slot element
338
- 2
339
- ) : (
340
- // slot element does not have fallback content
341
- // create an html comment we'll use to always reference
342
- // where actual slot content should sit next to
343
- 1
344
- ))), r.$text$ !== null)
345
- a = r.$elm$ = E.createTextNode(r.$text$);
346
- else if (r.$flags$ & 1)
347
- a = r.$elm$ = E.createTextNode("");
348
- else {
349
- if (k || (k = r.$tag$ === "svg"), a = r.$elm$ = E.createElementNS(
350
- k ? He : ze,
351
- !B && I.slotRelocation && r.$flags$ & 2 ? "slot-fb" : r.$tag$
352
- ), k && r.$tag$ === "foreignObject" && (k = !1), _e(null, r, k), r.$children$)
353
- for (i = 0; i < r.$children$.length; ++i)
354
- l = C(e, r, i), l && a.appendChild(l);
355
- r.$tag$ === "svg" ? k = !1 : a.tagName === "foreignObject" && (k = !0);
356
- }
357
- return a["s-hn"] = F, r.$flags$ & 3 && (a["s-sr"] = !0, a["s-cr"] = Q, a["s-sn"] = r.$name$ || "", a["s-rf"] = (n = r.$attrs$) == null ? void 0 : n.ref, $ = e && e.$children$ && e.$children$[s], $ && $.$tag$ === r.$tag$ && e.$elm$ && j(e.$elm$, !1)), a;
358
- }, j = (e, t) => {
359
- p.$flags$ |= 1;
360
- const s = Array.from(e.__childNodes || e.childNodes);
361
- e["s-sr"] && I.experimentalSlotFixes;
362
- for (let n = s.length - 1; n >= 0; n--) {
363
- const r = s[n];
364
- r["s-hn"] !== F && r["s-ol"] && (O(R(r).parentNode, r, R(r)), r["s-ol"].remove(), r["s-ol"] = void 0, r["s-sh"] = void 0, ee = !0), t && j(r, t);
365
- }
366
- p.$flags$ &= -2;
367
- }, Te = (e, t, s, n, r, i) => {
368
- let a = e["s-cr"] && e["s-cr"].parentNode || e, l;
369
- for (a.shadowRoot && a.tagName === F && (a = a.shadowRoot); r <= i; ++r)
370
- n[r] && (l = C(null, s, r), l && (n[r].$elm$ = l, O(a, l, R(t))));
371
- }, xe = (e, t, s) => {
372
- for (let n = t; n <= s; ++n) {
373
- const r = e[n];
374
- if (r) {
375
- const i = r.$elm$;
376
- be(r), i && (D = !0, i["s-ol"] ? i["s-ol"].remove() : j(i, !0), i.remove());
377
- }
378
- }
379
- }, ot = (e, t, s, n, r = !1) => {
380
- let i = 0, a = 0, l = 0, $ = 0, c = t.length - 1, f = t[0], d = t[c], o = n.length - 1, u = n[0], h = n[o], v, S;
381
- for (; i <= c && a <= o; )
382
- if (f == null)
383
- f = t[++i];
384
- else if (d == null)
385
- d = t[--c];
386
- else if (u == null)
387
- u = n[++a];
388
- else if (h == null)
389
- h = n[--o];
390
- else if (z(f, u, r))
391
- P(f, u, r), f = t[++i], u = n[++a];
392
- else if (z(d, h, r))
393
- P(d, h, r), d = t[--c], h = n[--o];
394
- else if (z(f, h, r))
395
- (f.$tag$ === "slot" || h.$tag$ === "slot") && j(f.$elm$.parentNode, !1), P(f, h, r), O(e, f.$elm$, d.$elm$.nextSibling), f = t[++i], h = n[--o];
396
- else if (z(d, u, r))
397
- (f.$tag$ === "slot" || h.$tag$ === "slot") && j(d.$elm$.parentNode, !1), P(d, u, r), O(e, d.$elm$, f.$elm$), d = t[--c], u = n[++a];
398
- else {
399
- for (l = -1, $ = i; $ <= c; ++$)
400
- if (t[$] && t[$].$key$ !== null && t[$].$key$ === u.$key$) {
401
- l = $;
402
- break;
403
- }
404
- l >= 0 ? (S = t[l], S.$tag$ !== u.$tag$ ? v = C(t && t[a], s, l) : (P(S, u, r), t[l] = void 0, v = S.$elm$), u = n[++a]) : (v = C(t && t[a], s, a), u = n[++a]), v && O(
405
- R(f.$elm$).parentNode,
406
- v,
407
- R(f.$elm$)
408
- );
409
- }
410
- i > c ? Te(
411
- e,
412
- n[o + 1] == null ? null : n[o + 1].$elm$,
413
- s,
414
- n,
415
- a,
416
- o
417
- ) : a > o && xe(t, i, c);
418
- }, z = (e, t, s = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : s ? (s && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, R = (e) => e && e["s-ol"] || e, P = (e, t, s = !1) => {
419
- const n = t.$elm$ = e.$elm$, r = e.$children$, i = t.$children$, a = t.$tag$, l = t.$text$;
420
- let $;
421
- l === null ? (k = a === "svg" ? !0 : a === "foreignObject" ? !1 : k, a === "slot" && !B || _e(e, t, k), r !== null && i !== null ? ot(n, r, t, i, s) : i !== null ? (e.$text$ !== null && (n.textContent = ""), Te(n, null, t, i, 0, i.length - 1)) : (
422
- // don't do this on initial render as it can cause non-hydrated content to be removed
423
- !s && I.updatable && r !== null && xe(r, 0, r.length - 1)
424
- ), k && a === "svg" && (k = !1)) : ($ = n["s-cr"]) ? $.parentNode.textContent = l : e.$text$ !== l && (n.data = l);
425
- }, b = [], Le = (e) => {
426
- let t, s, n;
427
- const r = e.__childNodes || e.childNodes;
428
- for (const i of r) {
429
- if (i["s-sr"] && (t = i["s-cr"]) && t.parentNode) {
430
- s = t.parentNode.__childNodes || t.parentNode.childNodes;
431
- const a = i["s-sn"];
432
- for (n = s.length - 1; n >= 0; n--)
433
- if (t = s[n], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== i["s-hn"])
434
- if (ie(t, a)) {
435
- let l = b.find(($) => $.$nodeToRelocate$ === t);
436
- D = !0, t["s-sn"] = t["s-sn"] || a, l ? (l.$nodeToRelocate$["s-sh"] = i["s-hn"], l.$slotRefNode$ = i) : (t["s-sh"] = i["s-hn"], b.push({
437
- $slotRefNode$: i,
438
- $nodeToRelocate$: t
439
- })), t["s-sr"] && b.map(($) => {
440
- ie($.$nodeToRelocate$, t["s-sn"]) && (l = b.find((c) => c.$nodeToRelocate$ === t), l && !$.$slotRefNode$ && ($.$slotRefNode$ = l.$slotRefNode$));
441
- });
442
- } else b.some((l) => l.$nodeToRelocate$ === t) || b.push({
443
- $nodeToRelocate$: t
444
- });
445
- }
446
- i.nodeType === 1 && Le(i);
447
- }
448
- }, be = (e) => {
449
- e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(be);
450
- }, O = (e, t, s) => e?.insertBefore(t, s), at = (e, t, s = !1) => {
451
- var n, r, i, a;
452
- const l = e.$hostElement$, $ = e.$cmpMeta$, c = e.$vnode$ || q(null, null), f = Ne(t) ? t : ye(null, null, t);
453
- if (F = l.tagName, $.$attrsToReflect$ && (f.$attrs$ = f.$attrs$ || {}, $.$attrsToReflect$.map(
454
- ([d, o]) => f.$attrs$[o] = l[d]
455
- )), s && f.$attrs$)
456
- for (const d of Object.keys(f.$attrs$))
457
- l.hasAttribute(d) && !["key", "ref", "style", "class"].includes(d) && (f.$attrs$[d] = l[d]);
458
- f.$tag$ = null, f.$flags$ |= 4, e.$vnode$ = f, f.$elm$ = c.$elm$ = l.shadowRoot || l, B = !!($.$flags$ & 1) && !($.$flags$ & 128), Q = l["s-cr"], D = !1, P(c, f, s);
459
- {
460
- if (p.$flags$ |= 1, ee) {
461
- Le(f.$elm$);
462
- for (const d of b) {
463
- const o = d.$nodeToRelocate$;
464
- if (!o["s-ol"]) {
465
- const u = E.createTextNode("");
466
- u["s-nr"] = o, O(o.parentNode, o["s-ol"] = u, o);
467
- }
468
- }
469
- for (const d of b) {
470
- const o = d.$nodeToRelocate$, u = d.$slotRefNode$;
471
- if (u) {
472
- const h = u.parentNode;
473
- let v = u.nextSibling;
474
- {
475
- let _ = (n = o["s-ol"]) == null ? void 0 : n.previousSibling;
476
- for (; _; ) {
477
- let y = (r = _["s-nr"]) != null ? r : null;
478
- if (y && y["s-sn"] === o["s-sn"] && h === (y.__parentNode || y.parentNode)) {
479
- for (y = y.nextSibling; y === o || y?.["s-sr"]; )
480
- y = y?.nextSibling;
481
- if (!y || !y["s-nr"]) {
482
- v = y;
483
- break;
484
- }
485
- }
486
- _ = _.previousSibling;
487
- }
488
- }
489
- const S = o.__parentNode || o.parentNode, g = o.__nextSibling || o.nextSibling;
490
- (!v && h !== S || g !== v) && o !== v && (!o["s-hn"] && o["s-ol"] && (o["s-hn"] = o["s-ol"].parentNode.nodeName), O(h, o, v), o.nodeType === 1 && o.tagName !== "SLOT-FB" && (o.hidden = (i = o["s-ih"]) != null ? i : !1)), o && typeof u["s-rf"] == "function" && u["s-rf"](o);
491
- } else
492
- o.nodeType === 1 && (s && (o["s-ih"] = (a = o.hidden) != null ? a : !1), o.hidden = !0);
493
- }
494
- }
495
- D && ve(f.$elm$), p.$flags$ &= -2, b.length = 0;
496
- }
497
- Q = void 0;
498
- }, we = (e, t) => {
499
- if (t && !e.$onRenderResolve$ && t["s-p"]) {
500
- const s = t["s-p"].push(
501
- new Promise(
502
- (n) => e.$onRenderResolve$ = () => {
503
- t["s-p"].splice(s - 1, 1), n();
504
- }
505
- )
506
- );
507
- }
508
- }, te = (e, t) => {
509
- if (e.$flags$ |= 16, e.$flags$ & 4) {
510
- e.$flags$ |= 512;
511
- return;
512
- }
513
- return we(e, e.$ancestorComponent$), Ge(() => $t(e, t));
514
- }, $t = (e, t) => {
515
- const s = e.$hostElement$, n = w("scheduleUpdate", e.$cmpMeta$.$tagName$), r = e.$lazyInstance$;
516
- if (!r)
517
- throw new Error(
518
- `Can't render component <${s.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`
519
- );
520
- let i;
521
- return t && (e.$flags$ |= 256, e.$queuedListeners$ && (e.$queuedListeners$.map(([a, l]) => Z(r, a, l, s)), e.$queuedListeners$ = void 0), i = Z(r, "componentWillLoad", void 0, s)), n(), ct(i, () => dt(e, r, t));
522
- }, ct = (e, t) => ft(e) ? e.then(t).catch((s) => {
523
- console.error(s), t();
524
- }) : t(), ft = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", dt = async (e, t, s) => {
525
- var n;
526
- const r = e.$hostElement$, i = w("update", e.$cmpMeta$.$tagName$), a = r["s-rc"];
527
- s && rt(e);
528
- const l = w("render", e.$cmpMeta$.$tagName$);
529
- ut(e, t, r, s), a && (a.map(($) => $()), r["s-rc"] = void 0), l(), i();
530
- {
531
- const $ = (n = r["s-p"]) != null ? n : [], c = () => ht(e);
532
- $.length === 0 ? c() : (Promise.all($).then(c), e.$flags$ |= 4, $.length = 0);
533
- }
534
- }, ut = (e, t, s, n) => {
535
- try {
536
- t = t.render && t.render(), e.$flags$ &= -17, e.$flags$ |= 2, at(e, t, n);
537
- } catch (r) {
538
- L(r, e.$hostElement$);
539
- }
540
- return null;
541
- }, ht = (e) => {
542
- const t = e.$cmpMeta$.$tagName$, s = e.$hostElement$, n = w("postUpdate", t), r = e.$lazyInstance$, i = e.$ancestorComponent$;
543
- Z(r, "componentDidRender", void 0, s), e.$flags$ & 64 ? n() : (e.$flags$ |= 64, pt(s), n(), e.$onReadyResolve$(s), i || Oe()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && N(() => te(e, !1)), e.$flags$ &= -517;
544
- }, Oe = (e) => {
545
- N(() => Se(m, "appload", { detail: { namespace: je } }));
546
- }, Z = (e, t, s, n) => {
547
- if (e && e[t])
548
- try {
549
- return e[t](s);
550
- } catch (r) {
551
- L(r, n);
552
- }
553
- }, pt = (e) => {
554
- var t;
555
- return e.classList.add((t = I.hydratedSelectorName) != null ? t : "hydrated");
556
- }, vt = (e, t) => x(e).$instanceValues$.get(t), G = (e, t, s, n) => {
557
- const r = x(e);
558
- if (!r)
559
- throw new Error(
560
- `Couldn't find host element for "${n.$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).`
561
- );
562
- const i = r.$hostElement$, a = r.$instanceValues$.get(t), l = r.$flags$, $ = r.$lazyInstance$;
563
- s = K(s, n.$members$[t][0]);
564
- const c = Number.isNaN(a) && Number.isNaN(s), f = s !== a && !c;
565
- if ((!(l & 8) || a === void 0) && f && (r.$instanceValues$.set(t, s), $)) {
566
- if (n.$watchers$ && l & 128) {
567
- const d = n.$watchers$[t];
568
- d && d.map((o) => {
569
- try {
570
- $[o](s, a, t);
571
- } catch (u) {
572
- L(u, i);
573
- }
574
- });
575
- }
576
- (l & 18) === 2 && te(r, !1);
577
- }
578
- }, Pe = (e, t, s) => {
579
- var n, r;
580
- const i = e.prototype;
581
- if (t.$members$ || t.$watchers$ || e.watchers) {
582
- e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
583
- const a = Object.entries((n = t.$members$) != null ? n : {});
584
- if (a.map(([l, [$]]) => {
585
- if ($ & 31 || s & 2 && $ & 32) {
586
- const { get: c, set: f } = Object.getOwnPropertyDescriptor(i, l) || {};
587
- c && (t.$members$[l][0] |= 2048), f && (t.$members$[l][0] |= 4096), (s & 1 || !c) && Object.defineProperty(i, l, {
588
- get() {
589
- {
590
- if (!(t.$members$[l][0] & 2048))
591
- return vt(this, l);
592
- const d = x(this), o = d ? d.$lazyInstance$ : i;
593
- return o ? o[l] : void 0;
594
- }
595
- },
596
- configurable: !0,
597
- enumerable: !0
598
- }), Object.defineProperty(i, l, {
599
- set(d) {
600
- const o = x(this);
601
- if (f) {
602
- const u = $ & 32 ? this[l] : o.$hostElement$[l];
603
- typeof u > "u" && o.$instanceValues$.get(l) ? d = o.$instanceValues$.get(l) : !o.$instanceValues$.get(l) && u && o.$instanceValues$.set(l, u), f.apply(this, [K(d, $)]), d = $ & 32 ? this[l] : o.$hostElement$[l], G(this, l, d, t);
604
- return;
605
- }
606
- {
607
- if (!(s & 1) || !(t.$members$[l][0] & 4096)) {
608
- G(this, l, d, t), s & 1 && !o.$lazyInstance$ && o.$onReadyPromise$.then(() => {
609
- t.$members$[l][0] & 4096 && o.$lazyInstance$[l] !== o.$instanceValues$.get(l) && (o.$lazyInstance$[l] = d);
610
- });
611
- return;
612
- }
613
- const u = () => {
614
- const h = o.$lazyInstance$[l];
615
- !o.$instanceValues$.get(l) && h && o.$instanceValues$.set(l, h), o.$lazyInstance$[l] = K(d, $), G(this, l, o.$lazyInstance$[l], t);
616
- };
617
- o.$lazyInstance$ ? u() : o.$onReadyPromise$.then(() => u());
618
- }
619
- }
620
- });
621
- }
622
- }), s & 1) {
623
- const l = /* @__PURE__ */ new Map();
624
- i.attributeChangedCallback = function($, c, f) {
625
- p.jmp(() => {
626
- var d;
627
- const o = l.get($);
628
- if (this.hasOwnProperty(o) && I.lazyLoad)
629
- f = this[o], delete this[o];
630
- else {
631
- if (i.hasOwnProperty(o) && typeof this[o] == "number" && // cast type to number to avoid TS compiler issues
632
- this[o] == f)
633
- return;
634
- if (o == null) {
635
- const h = x(this), v = h?.$flags$;
636
- if (v && !(v & 8) && v & 128 && f !== c) {
637
- const S = h.$lazyInstance$, g = (d = t.$watchers$) == null ? void 0 : d[$];
638
- g?.forEach((_) => {
639
- S[_] != null && S[_].call(S, f, c, $);
640
- });
641
- }
642
- return;
643
- }
644
- }
645
- const u = Object.getOwnPropertyDescriptor(i, o);
646
- f = f === null && typeof this[o] == "boolean" ? !1 : f, f !== this[o] && (!u.get || u.set) && (this[o] = f);
647
- });
648
- }, e.observedAttributes = Array.from(
649
- /* @__PURE__ */ new Set([
650
- ...Object.keys((r = t.$watchers$) != null ? r : {}),
651
- ...a.filter(
652
- ([$, c]) => c[0] & 15
653
- /* HasAttribute */
654
- ).map(([$, c]) => {
655
- var f;
656
- const d = c[1] || $;
657
- return l.set(d, $), c[0] & 512 && ((f = t.$attrsToReflect$) == null || f.push([$, d])), d;
658
- })
659
- ])
660
- );
661
- }
662
- }
663
- return e;
664
- }, gt = async (e, t, s, n) => {
665
- let r;
666
- if (!(t.$flags$ & 32)) {
667
- if (t.$flags$ |= 32, s.$lazyBundleId$) {
668
- const $ = qe(s, t);
669
- if ($ && "then" in $) {
670
- const f = Ze();
671
- r = await $, f();
672
- } else
673
- r = $;
674
- if (!r)
675
- throw new Error(`Constructor for "${s.$tagName$}#${t.$modeName$}" was not found`);
676
- r.isProxied || (s.$watchers$ = r.watchers, Pe(
677
- r,
678
- s,
679
- 2
680
- /* proxyState */
681
- ), r.isProxied = !0);
682
- const c = w("createInstance", s.$tagName$);
683
- t.$flags$ |= 8;
684
- try {
685
- new r(t);
686
- } catch (f) {
687
- L(f, e);
688
- }
689
- t.$flags$ &= -9, t.$flags$ |= 128, c();
690
- } else {
691
- r = e.constructor;
692
- const $ = e.localName;
693
- customElements.whenDefined($).then(
694
- () => t.$flags$ |= 128
695
- /* isWatchReady */
696
- );
697
- }
698
- if (r && r.style) {
699
- let $;
700
- typeof r.style == "string" && ($ = r.style);
701
- const c = ke(s);
702
- if (!U.has(c)) {
703
- const f = w("registerStyles", s.$tagName$);
704
- st(c, $, !!(s.$flags$ & 1)), f();
705
- }
706
- }
707
- }
708
- const i = t.$ancestorComponent$, a = () => te(t, !0);
709
- i && i["s-rc"] ? i["s-rc"].push(a) : a();
710
- }, yt = (e, t) => {
711
- }, St = (e) => {
712
- if (!(p.$flags$ & 1)) {
713
- const t = x(e), s = t.$cmpMeta$, n = w("connectedCallback", s.$tagName$);
714
- if (t.$flags$ & 1)
715
- Ae(e, t, s.$listeners$), t?.$lazyInstance$ || t?.$onReadyPromise$ && t.$onReadyPromise$.then(() => yt());
716
- else {
717
- t.$flags$ |= 1, // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
718
- s.$flags$ & 12 && kt(e);
719
- {
720
- let r = e;
721
- for (; r = r.parentNode || r.host; )
722
- if (r["s-p"]) {
723
- we(t, t.$ancestorComponent$ = r);
724
- break;
725
- }
726
- }
727
- s.$members$ && Object.entries(s.$members$).map(([r, [i]]) => {
728
- if (i & 31 && e.hasOwnProperty(r)) {
729
- const a = e[r];
730
- delete e[r], e[r] = a;
731
- }
732
- }), gt(e, t, s);
733
- }
734
- n();
735
- }
736
- }, kt = (e) => {
737
- const t = e["s-cr"] = E.createComment(
738
- ""
739
- );
740
- t["s-cn"] = !0, O(e, t, e.firstChild);
741
- }, Et = (e, t) => {
742
- }, _t = async (e) => {
743
- if (!(p.$flags$ & 1)) {
744
- const t = x(e);
745
- t.$rmListeners$ && (t.$rmListeners$.map((s) => s()), t.$rmListeners$ = void 0), t?.$lazyInstance$ || t?.$onReadyPromise$ && t.$onReadyPromise$.then(() => Et());
746
- }
747
- A.has(e) && A.delete(e), e.shadowRoot && A.has(e.shadowRoot) && A.delete(e.shadowRoot);
748
- }, Pt = (e, t = {}) => {
749
- var s;
750
- const n = w(), r = [], i = t.exclude || [], a = m.customElements, l = E.head, $ = /* @__PURE__ */ l.querySelector("meta[charset]"), c = /* @__PURE__ */ E.createElement("style"), f = [];
751
- let d, o = !0;
752
- Object.assign(p, t), p.$resourcesUrl$ = new URL(t.resourcesUrl || "./", E.baseURI).href;
753
- let u = !1;
754
- if (e.map((h) => {
755
- h[1].map((v) => {
756
- var S;
757
- const g = {
758
- $flags$: v[0],
759
- $tagName$: v[1],
760
- $members$: v[2],
761
- $listeners$: v[3]
762
- };
763
- g.$flags$ & 4 && (u = !0), g.$members$ = v[2], g.$listeners$ = v[3], g.$attrsToReflect$ = [], g.$watchers$ = (S = v[4]) != null ? S : {};
764
- const _ = g.$tagName$, y = class extends HTMLElement {
765
- // StencilLazyHost
766
- constructor(T) {
767
- if (super(T), this.hasRegisteredEventListeners = !1, T = this, Ue(T, g), g.$flags$ & 1) {
768
- if (!T.shadowRoot)
769
- T.attachShadow({ mode: "open" });
770
- else if (T.shadowRoot.mode !== "open")
771
- throw new Error(
772
- `Unable to re-use existing shadow root for ${g.$tagName$}! Mode is set to ${T.shadowRoot.mode} but Stencil only supports open shadow roots.`
773
- );
774
- }
775
- }
776
- connectedCallback() {
777
- const T = x(this);
778
- this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0, Ae(this, T, g.$listeners$)), d && (clearTimeout(d), d = null), o ? f.push(this) : p.jmp(() => St(this));
779
- }
780
- disconnectedCallback() {
781
- p.jmp(() => _t(this)), p.raf(() => {
782
- var T;
783
- const H = x(this), se = f.findIndex((me) => me === this);
784
- se > -1 && f.splice(se, 1), ((T = H?.$vnode$) == null ? void 0 : T.$elm$) instanceof Node && !H.$vnode$.$elm$.isConnected && delete H.$vnode$.$elm$;
785
- });
786
- }
787
- componentOnReady() {
788
- return x(this).$onReadyPromise$;
789
- }
790
- };
791
- g.$lazyBundleId$ = h[0], !i.includes(_) && !a.get(_) && (r.push(_), a.define(
792
- _,
793
- Pe(
794
- y,
795
- g,
796
- 1
797
- /* isElementConstructor */
798
- )
799
- ));
800
- });
801
- }), r.length > 0 && (u && (c.textContent += fe), c.textContent += r.sort() + De, c.innerHTML.length)) {
802
- c.setAttribute("data-styles", "");
803
- const h = (s = p.$nonce$) != null ? s : he(E);
804
- h != null && c.setAttribute("nonce", h), l.insertBefore(c, $ ? $.nextSibling : l.firstChild);
805
- }
806
- o = !1, f.length ? f.map((h) => h.connectedCallback()) : p.jmp(() => d = setTimeout(Oe, 30)), n();
807
- }, At = (e, t) => t, Ae = (e, t, s, n) => {
808
- s && s.map(([r, i, a]) => {
809
- const l = xt(e, r), $ = Tt(t, a), c = Lt(r);
810
- p.ael(l, i, $, c), (t.$rmListeners$ = t.$rmListeners$ || []).push(() => p.rel(l, i, $, c));
811
- });
812
- }, Tt = (e, t) => (s) => {
813
- var n;
814
- try {
815
- e.$flags$ & 256 ? (n = e.$lazyInstance$) == null || n[t](s) : (e.$queuedListeners$ = e.$queuedListeners$ || []).push([t, s]);
816
- } catch (r) {
817
- L(r, e.$hostElement$);
818
- }
819
- }, xt = (e, t) => t & 8 ? m : e, Lt = (e) => Ce ? {
820
- passive: (e & 1) !== 0,
821
- capture: (e & 2) !== 0
822
- } : (e & 2) !== 0;
823
- export {
824
- At as F,
825
- wt as a,
826
- Pt as b,
827
- Ot as c,
828
- tt as g,
829
- ye as h,
830
- Fe as p,
831
- bt as r
832
- };