@everymatrix/cashier-method-details 1.64.8 → 1.65.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 (46) hide show
  1. package/components/{CashierConfirmModal-3pkCHAVZ.js → CashierConfirmModal-BzyMG3UR.js} +33 -33
  2. package/components/{CashierConfirmModal-CNzEOcOZ.js → CashierConfirmModal-_hdnB5XT.js} +33 -33
  3. package/components/{CashierError-Bisyjt8z.js → CashierError-C1ZcvUYr.js} +618 -622
  4. package/components/{CashierError-DV-HLY8d.js → CashierError-CBebkrdZ.js} +617 -621
  5. package/components/{CashierError-GVInnLO0.cjs → CashierError-qXbd3T4d.cjs} +16 -3
  6. package/components/{CashierHeader-Dpm_m2-F.cjs → CashierHeader-BbnypQYS.cjs} +1 -1
  7. package/components/{CashierHeader-BmFLcvOn.js → CashierHeader-CXnHNYfs.js} +38 -38
  8. package/components/{CashierHeader-D5rWgCkR.js → CashierHeader-SSuALKdn.js} +38 -38
  9. package/components/{CashierIframeRedirect-BeJ3BjdP.js → CashierIframeRedirect-BPh132E4.js} +32 -32
  10. package/components/{CashierIframeRedirect-UyIC5nCY.js → CashierIframeRedirect-BeIzPkcY.js} +30 -30
  11. package/components/{CashierIframeRedirect-OIn1YaZR.cjs → CashierIframeRedirect-CiJvxeWK.cjs} +1 -1
  12. package/components/{CashierMethodDetails-CbIHNNA7.js → CashierMethodDetails-BdPcAVmB.js} +54 -54
  13. package/components/{CashierMethodDetails-rb98ADfQ.js → CashierMethodDetails-CJosBjV2.js} +54 -54
  14. package/components/{CashierMethodDetails-HB5kpaqd.cjs → CashierMethodDetails-CMWNeKZq.cjs} +1 -1
  15. package/components/{CashierModal-PGQGrAgY.js → CashierModal-B2DUTbzl.js} +34 -34
  16. package/components/{CashierModal-Dv-7ZIuz.js → CashierModal-cAadEtV9.js} +34 -34
  17. package/components/{CashierNotifications-BMYdcdkg.js → CashierNotifications-BqrU3g7B.js} +19 -19
  18. package/components/{CashierNotifications-Dy0g_QWG.js → CashierNotifications-sCssNp8Z.js} +19 -19
  19. package/components/{CashierReceiptPage-CEUHu1XU.js → CashierReceiptPage-24Lr_kLo.js} +28 -28
  20. package/components/{CashierReceiptPage-DQdoyQtR.cjs → CashierReceiptPage-BdonZ5wU.cjs} +1 -1
  21. package/components/{CashierReceiptPage-Cy6AVN3x.js → CashierReceiptPage-Ctdksnjs.js} +28 -28
  22. package/components/CashierSpinner-BdCzICuN.cjs +1 -0
  23. package/components/CashierSpinner-FjymFjBK.js +71 -0
  24. package/components/CashierSpinner-oZ2qOf5M.js +71 -0
  25. package/es2015/cashier-method-details.cjs +1 -1
  26. package/es2015/cashier-method-details.js +1 -1
  27. package/esnext/cashier-method-details.js +1 -1
  28. package/package.json +1 -1
  29. package/stencil/index-97d17652-BzQXAkmg.js +558 -0
  30. package/stencil/index-97d17652-DYGS0vqJ.cjs +1 -0
  31. package/stencil/index-97d17652-mbOyENH9.js +542 -0
  32. package/stencil/{ui-image-CQQDA5b0.js → ui-image-BmTbGz5h.js} +1 -1
  33. package/stencil/{ui-image-CmwNU-jf.js → ui-image-CFddgpOe.js} +1 -1
  34. package/stencil/{ui-image-CMb1eK44.cjs → ui-image-DzutkFSv.cjs} +1 -1
  35. package/stencil/{ui-image-b7b48fe5-Cf9Vq5pI.js → ui-image-b7b48fe5-7wF4sIlr.js} +1 -1
  36. package/stencil/{ui-image-b7b48fe5-DCck2kk1.cjs → ui-image-b7b48fe5-DQE3WxuL.cjs} +1 -1
  37. package/stencil/{ui-image-b7b48fe5-V9vp4faA.js → ui-image-b7b48fe5-kIlLPkYB.js} +1 -1
  38. package/stencil/{ui-image_2-YkYxLKu7.cjs → ui-image_2-CJHJWEhi.cjs} +1 -1
  39. package/stencil/{ui-image_2-B56t6kXT.js → ui-image_2-Db7N7hzA.js} +2 -2
  40. package/stencil/{ui-image_2-BncuYpLi.js → ui-image_2-oohpKuRS.js} +2 -2
  41. package/components/CashierSpinner-Cxbw-HyX.cjs +0 -1
  42. package/components/CashierSpinner-D30EfqMz.js +0 -71
  43. package/components/CashierSpinner-Dq2vgm_x.js +0 -71
  44. package/stencil/index-97d17652-BEnqZAxL.js +0 -558
  45. package/stencil/index-97d17652-D5_8Vwfn.cjs +0 -1
  46. package/stencil/index-97d17652-WK_DbPS4.js +0 -542
@@ -1,71 +0,0 @@
1
- import { S as y, b as g, s as m, f as h, c as p, n as c, e as k, m as C, p as x, v as S, A as _, E as v } from "./CashierConfirmModal-3pkCHAVZ.js";
2
- function b(n) {
3
- p(n, "svelte-fidj5e", ".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}");
4
- }
5
- function w(n) {
6
- let t;
7
- return {
8
- c() {
9
- t = x("div"), t.innerHTML = '<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>', S(t, "class", "CashierSpinner");
10
- },
11
- m(s, r) {
12
- C(s, t, r), n[3](t);
13
- },
14
- p: c,
15
- i: c,
16
- o: c,
17
- d(s) {
18
- s && k(t), n[3](null);
19
- }
20
- };
21
- }
22
- function E(n, t, s) {
23
- let { clientstyling: r = "" } = t, { clientstylingurl: l = "" } = t, i;
24
- const d = () => {
25
- let e = document.createElement("style");
26
- e.innerHTML = r, i.appendChild(e);
27
- }, f = () => {
28
- let e = new URL(l), o = document.createElement("style");
29
- fetch(e.href).then((a) => a.text()).then((a) => {
30
- o.innerHTML = a, setTimeout(
31
- () => {
32
- i.appendChild(o);
33
- },
34
- 1
35
- );
36
- });
37
- };
38
- function u(e) {
39
- _[e ? "unshift" : "push"](() => {
40
- i = e, s(0, i);
41
- });
42
- }
43
- return n.$$set = (e) => {
44
- "clientstyling" in e && s(1, r = e.clientstyling), "clientstylingurl" in e && s(2, l = e.clientstylingurl);
45
- }, n.$$.update = () => {
46
- n.$$.dirty & /*clientstyling, customStylingContainer*/
47
- 3 && r && i && d(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
48
- 5 && l && i && f();
49
- }, [i, r, l, u];
50
- }
51
- class L extends y {
52
- constructor(t) {
53
- super(), g(this, t, E, w, m, { clientstyling: 1, clientstylingurl: 2 }, b);
54
- }
55
- get clientstyling() {
56
- return this.$$.ctx[1];
57
- }
58
- set clientstyling(t) {
59
- this.$$set({ clientstyling: t }), h();
60
- }
61
- get clientstylingurl() {
62
- return this.$$.ctx[2];
63
- }
64
- set clientstylingurl(t) {
65
- this.$$set({ clientstylingurl: t }), h();
66
- }
67
- }
68
- v(L, { clientstyling: {}, clientstylingurl: {} }, [], [], !0);
69
- export {
70
- L as default
71
- };
@@ -1,71 +0,0 @@
1
- import { S as y, b as g, s as m, f as h, c as p, n as c, e as k, m as C, p as x, v as S, A as _, E as v } from "./CashierConfirmModal-CNzEOcOZ.js";
2
- function b(n) {
3
- p(n, "svelte-fidj5e", ".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}");
4
- }
5
- function w(n) {
6
- let t;
7
- return {
8
- c() {
9
- t = x("div"), t.innerHTML = '<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>', S(t, "class", "CashierSpinner");
10
- },
11
- m(s, r) {
12
- C(s, t, r), n[3](t);
13
- },
14
- p: c,
15
- i: c,
16
- o: c,
17
- d(s) {
18
- s && k(t), n[3](null);
19
- }
20
- };
21
- }
22
- function E(n, t, s) {
23
- let { clientstyling: r = "" } = t, { clientstylingurl: l = "" } = t, i;
24
- const d = () => {
25
- let e = document.createElement("style");
26
- e.innerHTML = r, i.appendChild(e);
27
- }, f = () => {
28
- let e = new URL(l), o = document.createElement("style");
29
- fetch(e.href).then((a) => a.text()).then((a) => {
30
- o.innerHTML = a, setTimeout(
31
- () => {
32
- i.appendChild(o);
33
- },
34
- 1
35
- );
36
- });
37
- };
38
- function u(e) {
39
- _[e ? "unshift" : "push"](() => {
40
- i = e, s(0, i);
41
- });
42
- }
43
- return n.$$set = (e) => {
44
- "clientstyling" in e && s(1, r = e.clientstyling), "clientstylingurl" in e && s(2, l = e.clientstylingurl);
45
- }, n.$$.update = () => {
46
- n.$$.dirty & /*clientstyling, customStylingContainer*/
47
- 3 && r && i && d(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
48
- 5 && l && i && f();
49
- }, [i, r, l, u];
50
- }
51
- class L extends y {
52
- constructor(t) {
53
- super(), g(this, t, E, w, m, { clientstyling: 1, clientstylingurl: 2 }, b);
54
- }
55
- get clientstyling() {
56
- return this.$$.ctx[1];
57
- }
58
- set clientstyling(t) {
59
- this.$$set({ clientstyling: t }), h();
60
- }
61
- get clientstylingurl() {
62
- return this.$$.ctx[2];
63
- }
64
- set clientstylingurl(t) {
65
- this.$$set({ clientstylingurl: t }), h();
66
- }
67
- }
68
- v(L, { clientstyling: {}, clientstylingurl: {} }, [], [], !0);
69
- export {
70
- L as default
71
- };
@@ -1,558 +0,0 @@
1
- var P = (e, t, n) => new Promise((s, r) => {
2
- var i = (a) => {
3
- try {
4
- $(n.next(a));
5
- } catch (o) {
6
- r(o);
7
- }
8
- }, l = (a) => {
9
- try {
10
- $(n.throw(a));
11
- } catch (o) {
12
- r(o);
13
- }
14
- }, $ = (a) => a.done ? s(a.value) : Promise.resolve(a.value).then(i, l);
15
- $((n = n.apply(e, t)).next());
16
- });
17
- const ue = "ui-image", de = (
18
- /* ui-image */
19
- { hydratedSelectorName: "hydrated" }
20
- );
21
- var ve = Object.defineProperty, ge = (e, t) => {
22
- for (var n in t)
23
- ve(e, n, { get: t[n], enumerable: !0 });
24
- }, z = /* @__PURE__ */ new WeakMap(), E = (e) => z.get(e), tt = (e, t) => z.set(t.$lazyInstance$ = e, t), pe = (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"] = [], z.set(e, n);
32
- }, D = (e, t) => t in e, k = (e, t) => (0, console.error)(e, t), w = /* @__PURE__ */ new Map(), he = (e, t, n) => {
33
- const s = e.$tagName$.replace(/-/g, "_"), r = e.$lazyBundleId$;
34
- if (!r)
35
- return;
36
- const i = w.get(r);
37
- if (i)
38
- return i[s];
39
- {
40
- const l = ($) => (w.set(r, $), $[s]);
41
- switch (r) {
42
- case "ui-image_2":
43
- return import(
44
- /* webpackMode: "lazy" */
45
- "./ui-image_2-B56t6kXT.js"
46
- ).then(l, k);
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) => (w.set(r, l), l[s]), k);
56
- }, A = /* @__PURE__ */ new Map(), ye = "{visibility:hidden}.hydrated{visibility:inherit}", Q = "slot-fb{display:contents}slot-fb[hidden]{display:none}", j = typeof window != "undefined" ? window : {}, m = j.document || { head: {} }, p = {
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
- }, me = (e) => Promise.resolve(e), Se = /* @__PURE__ */ (() => {
65
- try {
66
- return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
67
- } catch (e) {
68
- }
69
- return !1;
70
- })(), I = !1, W = [], Z = [], Ee = (e, t) => (n) => {
71
- e.push(n), I || (I = !0, p.$flags$ & 4 ? C(U) : p.raf(U));
72
- }, M = (e) => {
73
- for (let t = 0; t < e.length; t++)
74
- try {
75
- e[t](performance.now());
76
- } catch (n) {
77
- k(n);
78
- }
79
- e.length = 0;
80
- }, U = () => {
81
- M(W), M(Z), (I = W.length > 0) && p.raf(U);
82
- }, C = (e) => me().then(e), ke = /* @__PURE__ */ Ee(Z), G = {}, q = (e) => (e = typeof e, e === "object" || e === "function");
83
- function R(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 be = {};
88
- ge(be, {
89
- err: () => N,
90
- map: () => xe,
91
- ok: () => H,
92
- unwrap: () => Pe,
93
- unwrapErr: () => Te
94
- });
95
- var H = (e) => ({
96
- isOk: !0,
97
- isErr: !1,
98
- value: e
99
- }), N = (e) => ({
100
- isOk: !1,
101
- isErr: !0,
102
- value: e
103
- });
104
- function xe(e, t) {
105
- if (e.isOk) {
106
- const n = t(e.value);
107
- return n instanceof Promise ? n.then((s) => H(s)) : H(n);
108
- }
109
- if (e.isErr) {
110
- const n = e.value;
111
- return N(n);
112
- }
113
- throw "should never get here";
114
- }
115
- var Pe = (e) => {
116
- if (e.isOk)
117
- return e.value;
118
- throw e.value;
119
- }, Te = (e) => {
120
- if (e.isErr)
121
- return e.value;
122
- throw e.value;
123
- }, S = (e, t = "") => () => {
124
- }, _e = (e, t) => () => {
125
- }, Ae = (e, t, ...n) => {
126
- let s = null, r = null, i = !1, l = !1;
127
- const $ = [], 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" && !q(s)) && (s = String(s)), i && l ? $[$.length - 1].$text$ += s : $.push(i ? B(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 o = B(e, null);
139
- return o.$attrs$ = t, $.length > 0 && (o.$children$ = $), o.$key$ = r, o;
140
- }, B = (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
- }, Le = {}, je = (e) => e && e.$tag$ === Le, Oe = (e, t) => e != null && !q(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, st = (e) => E(e).$hostElement$, we = (e, t, n) => {
150
- const s = p.ce(t, n);
151
- return e.dispatchEvent(s), s;
152
- }, X = /* @__PURE__ */ new WeakMap(), Ie = (e, t, n) => {
153
- let s = A.get(e);
154
- Se && n ? (s = s || new CSSStyleSheet(), typeof s == "string" ? s = t : s.replaceSync(t)) : s = t, A.set(e, s);
155
- }, Ue = (e, t, n) => {
156
- var s;
157
- const r = V(t), i = A.get(r);
158
- if (e = e.nodeType === 11 ? e : m, i)
159
- if (typeof i == "string") {
160
- e = e.head || e;
161
- let l = X.get(e), $;
162
- if (l || X.set(e, l = /* @__PURE__ */ new Set()), !l.has(r)) {
163
- {
164
- $ = m.createElement("style"), $.innerHTML = i;
165
- const a = (s = p.$nonce$) != null ? s : R(m);
166
- a != null && $.setAttribute("nonce", a), e.insertBefore($, e.querySelector("link"));
167
- }
168
- t.$flags$ & 4 && ($.innerHTML += Q), l && l.add(r);
169
- }
170
- } else
171
- e.adoptedStyleSheets.includes(i) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, i]);
172
- return r;
173
- }, He = (e) => {
174
- const t = e.$cmpMeta$, n = e.$hostElement$, s = S("attachStyles", t.$tagName$);
175
- Ue(
176
- n.getRootNode(),
177
- t
178
- ), s();
179
- }, V = (e, t) => "sc-" + e.$tagName$, Y = (e, t, n, s, r, i) => {
180
- if (n !== s) {
181
- let l = D(e, t), $ = t.toLowerCase();
182
- if (t === "class") {
183
- const a = e.classList, o = J(n), c = J(s);
184
- a.remove(...o.filter((f) => f && !c.includes(f))), a.add(...c.filter((f) => f && !o.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) : D(j, $) ? t = $.slice(2) : t = $[2] + t.slice(3), n || s) {
195
- const a = t.endsWith(ee);
196
- t = t.replace(ze, ""), n && p.rel(e, t, n, a), s && p.ael(e, t, s, a);
197
- }
198
- } else {
199
- const a = q(s);
200
- if (l || a && s !== null)
201
- try {
202
- if (e.tagName.includes("-"))
203
- e[t] = s;
204
- else {
205
- const o = s == null ? "" : s;
206
- t === "list" ? l = !1 : (n == null || e[t] != o) && (e[t] = o);
207
- }
208
- } catch (o) {
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
- }, Be = /\s/, J = (e) => e ? e.split(Be) : [], ee = "Capture", ze = new RegExp(ee + "$"), te = (e, t, n) => {
214
- const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = e && e.$attrs$ || G, i = t.$attrs$ || G;
215
- for (const l of K(Object.keys(r)))
216
- l in i || Y(s, l, r[l], void 0, n, t.$flags$);
217
- for (const l of K(Object.keys(i)))
218
- Y(s, l, r[l], i[l], n, t.$flags$);
219
- };
220
- function K(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 se, ne = !1, L = (e, t, n, s) => {
230
- const r = t.$children$[n];
231
- let i = 0, l, $;
232
- if (r.$text$ !== null)
233
- l = r.$elm$ = m.createTextNode(r.$text$);
234
- else if (l = r.$elm$ = m.createElement(
235
- r.$tag$
236
- ), te(null, r, ne), r.$children$)
237
- for (i = 0; i < r.$children$.length; ++i)
238
- $ = L(e, r, i), $ && l.appendChild($);
239
- return l["s-hn"] = se, l;
240
- }, re = (e, t, n, s, r, i) => {
241
- let l = e, $;
242
- for (; r <= i; ++r)
243
- s[r] && ($ = L(null, n, r), $ && (s[r].$elm$ = $, _(l, $, t)));
244
- }, le = (e, t, n) => {
245
- for (let s = t; s <= n; ++s) {
246
- const r = e[s];
247
- if (r) {
248
- const i = r.$elm$;
249
- ae(r), i && i.remove();
250
- }
251
- }
252
- }, Ce = (e, t, n, s, r = !1) => {
253
- let i = 0, l = 0, $ = 0, a = 0, o = t.length - 1, c = t[0], f = t[o], u = s.length - 1, d = s[0], v = s[u], g, h;
254
- for (; i <= o && l <= u; )
255
- if (c == null)
256
- c = t[++i];
257
- else if (f == null)
258
- f = t[--o];
259
- else if (d == null)
260
- d = s[++l];
261
- else if (v == null)
262
- v = s[--u];
263
- else if (T(c, d, r))
264
- b(c, d, r), c = t[++i], d = s[++l];
265
- else if (T(f, v, r))
266
- b(f, v, r), f = t[--o], v = s[--u];
267
- else if (T(c, v, r))
268
- b(c, v, r), _(e, c.$elm$, f.$elm$.nextSibling), c = t[++i], v = s[--u];
269
- else if (T(f, d, r))
270
- b(f, d, r), _(e, f.$elm$, c.$elm$), f = t[--o], d = s[++l];
271
- else {
272
- for ($ = -1, a = i; a <= o; ++a)
273
- if (t[a] && t[a].$key$ !== null && t[a].$key$ === d.$key$) {
274
- $ = a;
275
- break;
276
- }
277
- $ >= 0 ? (h = t[$], h.$tag$ !== d.$tag$ ? g = L(t && t[l], n, $) : (b(h, d, r), t[$] = void 0, g = h.$elm$), d = s[++l]) : (g = L(t && t[l], n, l), d = s[++l]), g && _(c.$elm$.parentNode, g, c.$elm$);
278
- }
279
- i > o ? re(
280
- e,
281
- s[u + 1] == null ? null : s[u + 1].$elm$,
282
- n,
283
- s,
284
- l,
285
- u
286
- ) : l > u && le(t, i, o);
287
- }, T = (e, t, n = !1) => e.$tag$ === t.$tag$ ? n ? !0 : e.$key$ === t.$key$ : !1, b = (e, t, n = !1) => {
288
- const s = t.$elm$ = e.$elm$, r = e.$children$, i = t.$children$, l = t.$text$;
289
- l === null ? (te(e, t, ne), r !== null && i !== null ? Ce(s, r, t, i, n) : i !== null ? (e.$text$ !== null && (s.textContent = ""), re(s, null, t, i, 0, i.length - 1)) : r !== null && le(r, 0, r.length - 1)) : e.$text$ !== l && (s.data = l);
290
- }, ae = (e) => {
291
- e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(ae);
292
- }, _ = (e, t, n) => e == null ? void 0 : e.insertBefore(t, n), qe = (e, t, n = !1) => {
293
- const s = e.$hostElement$, r = e.$vnode$ || B(null, null), i = je(t) ? t : Ae(null, null, t);
294
- if (se = s.tagName, n && i.$attrs$)
295
- for (const l of Object.keys(i.$attrs$))
296
- s.hasAttribute(l) && !["key", "ref", "style", "class"].includes(l) && (i.$attrs$[l] = s[l]);
297
- i.$tag$ = null, i.$flags$ |= 4, e.$vnode$ = i, i.$elm$ = r.$elm$ = s, b(r, i, n);
298
- }, ie = (e, t) => {
299
- t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((n) => e.$onRenderResolve$ = n));
300
- }, F = (e, t) => {
301
- if (e.$flags$ |= 16, e.$flags$ & 4) {
302
- e.$flags$ |= 512;
303
- return;
304
- }
305
- return ie(e, e.$ancestorComponent$), ke(() => Fe(e, t));
306
- }, Fe = (e, t) => {
307
- const n = e.$hostElement$, s = S("scheduleUpdate", e.$cmpMeta$.$tagName$), r = e.$lazyInstance$;
308
- if (!r)
309
- throw new Error(
310
- `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`
311
- );
312
- let i;
313
- return s(), De(i, () => Me(e, r, t));
314
- }, De = (e, t) => We(e) ? e.then(t).catch((n) => {
315
- console.error(n), t();
316
- }) : t(), We = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Me = (e, t, n) => P(void 0, null, function* () {
317
- var s;
318
- const r = e.$hostElement$, i = S("update", e.$cmpMeta$.$tagName$), l = r["s-rc"];
319
- n && He(e);
320
- const $ = S("render", e.$cmpMeta$.$tagName$);
321
- Ge(e, t, r, n), l && (l.map((a) => a()), r["s-rc"] = void 0), $(), i();
322
- {
323
- const a = (s = r["s-p"]) != null ? s : [], o = () => Xe(e);
324
- a.length === 0 ? o() : (Promise.all(a).then(o), e.$flags$ |= 4, a.length = 0);
325
- }
326
- }), Ge = (e, t, n, s) => {
327
- try {
328
- t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, qe(e, t, s);
329
- } catch (r) {
330
- k(r, e.$hostElement$);
331
- }
332
- return null;
333
- }, Xe = (e) => {
334
- const t = e.$cmpMeta$.$tagName$, n = e.$hostElement$, s = S("postUpdate", t), r = e.$lazyInstance$, i = e.$ancestorComponent$;
335
- e.$flags$ & 64 ? s() : (e.$flags$ |= 64, oe(n), Ye(r, "componentDidLoad"), s(), e.$onReadyResolve$(n), i || $e()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && C(() => F(e, !1)), e.$flags$ &= -517;
336
- }, $e = (e) => {
337
- oe(m.documentElement), C(() => we(j, "appload", { detail: { namespace: ue } }));
338
- }, Ye = (e, t, n) => {
339
- if (e && e[t])
340
- try {
341
- return e[t](n);
342
- } catch (s) {
343
- k(s);
344
- }
345
- }, oe = (e) => {
346
- var t;
347
- return e.classList.add((t = de.hydratedSelectorName) != null ? t : "hydrated");
348
- }, Je = (e, t) => E(e).$instanceValues$.get(t), Ke = (e, t, n, s) => {
349
- const r = E(e);
350
- if (!r)
351
- throw new Error(
352
- `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).`
353
- );
354
- const i = r.$hostElement$, l = r.$instanceValues$.get(t), $ = r.$flags$, a = r.$lazyInstance$;
355
- n = Oe(n, s.$members$[t][0]);
356
- const o = Number.isNaN(l) && Number.isNaN(n), c = n !== l && !o;
357
- if ((!($ & 8) || l === void 0) && c && (r.$instanceValues$.set(t, n), a)) {
358
- if (s.$watchers$ && $ & 128) {
359
- const f = s.$watchers$[t];
360
- f && f.map((u) => {
361
- try {
362
- a[u](n, l, t);
363
- } catch (d) {
364
- k(d, i);
365
- }
366
- });
367
- }
368
- ($ & 18) === 2 && F(r, !1);
369
- }
370
- }, ce = (e, t, n) => {
371
- var s, r;
372
- const i = e.prototype;
373
- if (t.$members$ || t.$watchers$ || e.watchers) {
374
- e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
375
- const l = Object.entries((s = t.$members$) != null ? s : {});
376
- if (l.map(([$, [a]]) => {
377
- (a & 31 || n & 2 && a & 32) && Object.defineProperty(i, $, {
378
- get() {
379
- return Je(this, $);
380
- },
381
- set(o) {
382
- Ke(this, $, o, t);
383
- },
384
- configurable: !0,
385
- enumerable: !0
386
- });
387
- }), n & 1) {
388
- const $ = /* @__PURE__ */ new Map();
389
- i.attributeChangedCallback = function(a, o, c) {
390
- p.jmp(() => {
391
- var f;
392
- const u = $.get(a);
393
- if (this.hasOwnProperty(u))
394
- c = this[u], delete this[u];
395
- else {
396
- if (i.hasOwnProperty(u) && typeof this[u] == "number" && this[u] == c)
397
- return;
398
- if (u == null) {
399
- const d = E(this), v = d == null ? void 0 : d.$flags$;
400
- if (v && !(v & 8) && v & 128 && c !== o) {
401
- const g = d.$lazyInstance$, h = (f = t.$watchers$) == null ? void 0 : f[a];
402
- h == null || h.forEach((y) => {
403
- g[y] != null && g[y].call(g, c, o, a);
404
- });
405
- }
406
- return;
407
- }
408
- }
409
- this[u] = c === null && typeof this[u] == "boolean" ? !1 : c;
410
- });
411
- }, e.observedAttributes = Array.from(
412
- /* @__PURE__ */ new Set([
413
- ...Object.keys((r = t.$watchers$) != null ? r : {}),
414
- ...l.filter(
415
- ([a, o]) => o[0] & 15
416
- /* HasAttribute */
417
- ).map(([a, o]) => {
418
- const c = o[1] || a;
419
- return $.set(c, a), c;
420
- })
421
- ])
422
- );
423
- }
424
- }
425
- return e;
426
- }, Qe = (e, t, n, s) => P(void 0, null, function* () {
427
- let r;
428
- if (!(t.$flags$ & 32)) {
429
- if (t.$flags$ |= 32, n.$lazyBundleId$) {
430
- const a = he(n);
431
- if (a && "then" in a) {
432
- const c = _e();
433
- r = yield a, c();
434
- } else
435
- r = a;
436
- if (!r)
437
- throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);
438
- r.isProxied || (n.$watchers$ = r.watchers, ce(
439
- r,
440
- n,
441
- 2
442
- /* proxyState */
443
- ), r.isProxied = !0);
444
- const o = S("createInstance", n.$tagName$);
445
- t.$flags$ |= 8;
446
- try {
447
- new r(t);
448
- } catch (c) {
449
- k(c);
450
- }
451
- t.$flags$ &= -9, t.$flags$ |= 128, o();
452
- } else {
453
- r = e.constructor;
454
- const a = e.localName;
455
- customElements.whenDefined(a).then(
456
- () => t.$flags$ |= 128
457
- /* isWatchReady */
458
- );
459
- }
460
- if (r && r.style) {
461
- let a;
462
- typeof r.style == "string" && (a = r.style);
463
- const o = V(n);
464
- if (!A.has(o)) {
465
- const c = S("registerStyles", n.$tagName$);
466
- Ie(o, a, !!(n.$flags$ & 1)), c();
467
- }
468
- }
469
- }
470
- const i = t.$ancestorComponent$, l = () => F(t, !0);
471
- i && i["s-rc"] ? i["s-rc"].push(l) : l();
472
- }), Ze = (e) => {
473
- }, Re = (e) => {
474
- if (!(p.$flags$ & 1)) {
475
- const t = E(e), n = t.$cmpMeta$, s = S("connectedCallback", n.$tagName$);
476
- if (t.$flags$ & 1)
477
- t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => Ze());
478
- else {
479
- t.$flags$ |= 1;
480
- {
481
- let r = e;
482
- for (; r = r.parentNode || r.host; )
483
- if (r["s-p"]) {
484
- ie(t, t.$ancestorComponent$ = r);
485
- break;
486
- }
487
- }
488
- n.$members$ && Object.entries(n.$members$).map(([r, [i]]) => {
489
- if (i & 31 && e.hasOwnProperty(r)) {
490
- const l = e[r];
491
- delete e[r], e[r] = l;
492
- }
493
- }), Qe(e, t, n);
494
- }
495
- s();
496
- }
497
- }, Ne = (e) => {
498
- }, Ve = (e) => P(void 0, null, function* () {
499
- if (!(p.$flags$ & 1)) {
500
- const t = E(e);
501
- t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => Ne());
502
- }
503
- }), nt = (e, t = {}) => {
504
- var n;
505
- const s = S(), r = [], i = t.exclude || [], l = j.customElements, $ = m.head, a = /* @__PURE__ */ $.querySelector("meta[charset]"), o = /* @__PURE__ */ m.createElement("style"), c = [];
506
- let f, u = !0;
507
- Object.assign(p, t), p.$resourcesUrl$ = new URL(t.resourcesUrl || "./", m.baseURI).href;
508
- let d = !1;
509
- if (e.map((v) => {
510
- v[1].map((g) => {
511
- var h;
512
- const y = {
513
- $flags$: g[0],
514
- $tagName$: g[1],
515
- $members$: g[2],
516
- $listeners$: g[3]
517
- };
518
- y.$flags$ & 4 && (d = !0), y.$members$ = g[2], y.$watchers$ = (h = g[4]) != null ? h : {};
519
- const x = y.$tagName$, fe = class extends HTMLElement {
520
- // StencilLazyHost
521
- constructor(O) {
522
- super(O), this.hasRegisteredEventListeners = !1, O = this, pe(O, y);
523
- }
524
- connectedCallback() {
525
- E(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), f && (clearTimeout(f), f = null), u ? c.push(this) : p.jmp(() => Re(this));
526
- }
527
- disconnectedCallback() {
528
- p.jmp(() => Ve(this));
529
- }
530
- componentOnReady() {
531
- return E(this).$onReadyPromise$;
532
- }
533
- };
534
- y.$lazyBundleId$ = v[0], !i.includes(x) && !l.get(x) && (r.push(x), l.define(
535
- x,
536
- ce(
537
- fe,
538
- y,
539
- 1
540
- /* isElementConstructor */
541
- )
542
- ));
543
- });
544
- }), r.length > 0 && (d && (o.textContent += Q), o.textContent += r.sort() + ye, o.innerHTML.length)) {
545
- o.setAttribute("data-styles", "");
546
- const v = (n = p.$nonce$) != null ? n : R(m);
547
- v != null && o.setAttribute("nonce", v), $.insertBefore(o, a ? a.nextSibling : $.firstChild);
548
- }
549
- u = !1, c.length ? c.map((v) => v.connectedCallback()) : p.jmp(() => f = setTimeout($e, 30)), s();
550
- };
551
- export {
552
- Le as H,
553
- nt as b,
554
- st as g,
555
- Ae as h,
556
- me as p,
557
- tt as r
558
- };