@everymatrix/casino-header-controller-nd 1.53.0 → 1.53.10

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