@everymatrix/cashier-method-details 1.76.11 → 1.76.12
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.
- package/components/{CashierError-DrD5wNGs.js → CashierError-BTJqKSJF.js} +1 -1
- package/components/{CashierError-DLBDWGpI.cjs → CashierError-Bt-_E2Pn.cjs} +1 -1
- package/components/{CashierError-CBPaSvpB.js → CashierError-CbXT6_FP.js} +1 -1
- package/components/{CashierMethodDetails-CGWpL_sX.js → CashierMethodDetails-D6oLstq2.js} +6 -6
- package/components/{CashierMethodDetails-B9_rn-ZR.cjs → CashierMethodDetails-DYT5RMs3.cjs} +2 -2
- package/components/{CashierMethodDetails-DKQsXKr-.js → CashierMethodDetails-ofHTvxQi.js} +6 -6
- package/components/{CashierModal-BZybFnWL.cjs → CashierModal-BsgPzXz6.cjs} +1 -1
- package/components/{CashierModal-DOxpUJ75.js → CashierModal-BzJU1GrX.js} +1 -1
- package/components/{CashierModal-BGtsyo8L.js → CashierModal-CyXB5i2d.js} +1 -1
- package/components/{CashierNotifications-DlIbcdOZ.cjs → CashierNotifications-C-Mj2H9E.cjs} +1 -1
- package/components/{CashierNotifications-BqJHqrfP.js → CashierNotifications-CNHv00es.js} +1 -1
- package/components/{CashierNotifications-CbhYkLrA.js → CashierNotifications-DaWBholW.js} +1 -1
- package/components/{CashierReceiptPage-vWo8mgXv.cjs → CashierReceiptPage-BWxS-GFk.cjs} +1 -1
- package/components/{CashierReceiptPage-DNoutU0a.js → CashierReceiptPage-BqgNKrhH.js} +3 -3
- package/components/{CashierReceiptPage-BlTsImdD.js → CashierReceiptPage-uF2p9-w1.js} +3 -3
- package/components/{CashierSpinner-BUcuwI5f.cjs → CashierSpinner-B08s-ur8.cjs} +1 -1
- package/components/{CashierSpinner-ENaGBZtx.js → CashierSpinner-BEg8DQ-G.js} +1 -1
- package/components/{CashierSpinner-NX156aKF.js → CashierSpinner-CmmYtc3Y.js} +1 -1
- package/es2015/cashier-method-details.cjs +1 -1
- package/es2015/cashier-method-details.js +1 -1
- package/esnext/cashier-method-details.js +1 -1
- package/package.json +1 -1
- package/stencil/index-242ac81a-BqeIndhr.js +554 -0
- package/stencil/index-242ac81a-CI4JxPRf.js +538 -0
- package/stencil/index-242ac81a-CjjM4VND.cjs +1 -0
- package/stencil/ui-image-2ff23cd5-BHGIWJop.cjs +1 -0
- package/stencil/ui-image-2ff23cd5-D0rXudCW.js +86 -0
- package/stencil/ui-image-2ff23cd5-DCLQ0SIO.js +86 -0
- package/stencil/ui-image-C0Jfm_O4.js +7 -0
- package/stencil/ui-image-DmRWEjrp.js +25 -0
- package/stencil/ui-image-EfKW3THf.cjs +1 -0
- package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-B21W_djK.js} +2 -2
- package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-CLk629jW.cjs} +1 -1
- package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-VgK3B8gQ.js} +2 -2
- package/stencil/index-97d17652--F7PvMq9.js +0 -542
- package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
- package/stencil/index-97d17652-CCFHkzJw.js +0 -558
- package/stencil/ui-image-BaHsVAxH.cjs +0 -1
- package/stencil/ui-image-C7s6Uvn5.js +0 -25
- package/stencil/ui-image-CHeV8e9p.js +0 -7
- package/stencil/ui-image-b7b48fe5-ByRuJtdE.js +0 -39
- package/stencil/ui-image-b7b48fe5-D6iig_uN.js +0 -39
- package/stencil/ui-image-b7b48fe5-DG83WzAo.cjs +0 -1
@@ -0,0 +1,538 @@
|
|
1
|
+
const fe = "ui-image", ue = (
|
2
|
+
/* ui-image */
|
3
|
+
{ hydratedSelectorName: "hydrated" }
|
4
|
+
);
|
5
|
+
var de = Object.defineProperty, ve = (e, t) => {
|
6
|
+
for (var r in t)
|
7
|
+
de(e, r, { get: t[r], enumerable: !0 });
|
8
|
+
}, z = /* @__PURE__ */ new WeakMap(), b = (e) => z.get(e), Ze = (e, t) => z.set(t.$lazyInstance$ = e, t), ge = (e, t) => {
|
9
|
+
const r = {
|
10
|
+
$flags$: 0,
|
11
|
+
$hostElement$: e,
|
12
|
+
$cmpMeta$: t,
|
13
|
+
$instanceValues$: /* @__PURE__ */ new Map()
|
14
|
+
};
|
15
|
+
return r.$onReadyPromise$ = new Promise((s) => r.$onReadyResolve$ = s), e["s-p"] = [], e["s-rc"] = [], z.set(e, r);
|
16
|
+
}, he = (e, t) => t in e, E = (e, t) => (0, console.error)(e, t), L = /* @__PURE__ */ new Map(), pe = (e, t, r) => {
|
17
|
+
const s = e.$tagName$.replace(/-/g, "_"), n = e.$lazyBundleId$;
|
18
|
+
if (!n)
|
19
|
+
return;
|
20
|
+
const a = L.get(n);
|
21
|
+
if (a)
|
22
|
+
return a[s];
|
23
|
+
{
|
24
|
+
const l = (i) => (L.set(n, i), i[s]);
|
25
|
+
switch (n) {
|
26
|
+
case "ui-image_2":
|
27
|
+
return import(
|
28
|
+
/* webpackMode: "lazy" */
|
29
|
+
"./ui-image_2-B21W_djK.js"
|
30
|
+
).then(l, E);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
return import(
|
34
|
+
/* @vite-ignore */
|
35
|
+
/* webpackInclude: /\.entry\.js$/ */
|
36
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
37
|
+
/* webpackMode: "lazy" */
|
38
|
+
`./${n}.entry.js`
|
39
|
+
).then((l) => (L.set(n, l), l[s]), E);
|
40
|
+
}, T = /* @__PURE__ */ new Map(), me = "{visibility:hidden}.hydrated{visibility:inherit}", N = "slot-fb{display:contents}slot-fb[hidden]{display:none}", U = typeof window < "u" ? window : {}, y = U.document || { head: {} }, h = {
|
41
|
+
$flags$: 0,
|
42
|
+
$resourcesUrl$: "",
|
43
|
+
jmp: (e) => e(),
|
44
|
+
raf: (e) => requestAnimationFrame(e),
|
45
|
+
ael: (e, t, r, s) => e.addEventListener(t, r, s),
|
46
|
+
rel: (e, t, r, s) => e.removeEventListener(t, r, s),
|
47
|
+
ce: (e, t) => new CustomEvent(e, t)
|
48
|
+
}, ye = (e) => Promise.resolve(e), Se = /* @__PURE__ */ (() => {
|
49
|
+
try {
|
50
|
+
return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
|
51
|
+
} catch {
|
52
|
+
}
|
53
|
+
return !1;
|
54
|
+
})(), j = !1, D = [], Q = [], be = (e, t) => (r) => {
|
55
|
+
e.push(r), j || (j = !0, h.$flags$ & 4 ? B(O) : h.raf(O));
|
56
|
+
}, F = (e) => {
|
57
|
+
for (let t = 0; t < e.length; t++)
|
58
|
+
try {
|
59
|
+
e[t](performance.now());
|
60
|
+
} catch (r) {
|
61
|
+
E(r);
|
62
|
+
}
|
63
|
+
e.length = 0;
|
64
|
+
}, O = () => {
|
65
|
+
F(D), F(Q), (j = D.length > 0) && h.raf(O);
|
66
|
+
}, B = (e) => ye().then(e), Ee = /* @__PURE__ */ be(Q), M = {}, q = (e) => (e = typeof e, e === "object" || e === "function");
|
67
|
+
function X(e) {
|
68
|
+
var t, r, s;
|
69
|
+
return (s = (r = (t = e.head) == null ? void 0 : t.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : r.getAttribute("content")) != null ? s : void 0;
|
70
|
+
}
|
71
|
+
var ke = {};
|
72
|
+
ve(ke, {
|
73
|
+
err: () => Z,
|
74
|
+
map: () => xe,
|
75
|
+
ok: () => I,
|
76
|
+
unwrap: () => Pe,
|
77
|
+
unwrapErr: () => Ae
|
78
|
+
});
|
79
|
+
var I = (e) => ({
|
80
|
+
isOk: !0,
|
81
|
+
isErr: !1,
|
82
|
+
value: e
|
83
|
+
}), Z = (e) => ({
|
84
|
+
isOk: !1,
|
85
|
+
isErr: !0,
|
86
|
+
value: e
|
87
|
+
});
|
88
|
+
function xe(e, t) {
|
89
|
+
if (e.isOk) {
|
90
|
+
const r = t(e.value);
|
91
|
+
return r instanceof Promise ? r.then((s) => I(s)) : I(r);
|
92
|
+
}
|
93
|
+
if (e.isErr) {
|
94
|
+
const r = e.value;
|
95
|
+
return Z(r);
|
96
|
+
}
|
97
|
+
throw "should never get here";
|
98
|
+
}
|
99
|
+
var Pe = (e) => {
|
100
|
+
if (e.isOk)
|
101
|
+
return e.value;
|
102
|
+
throw e.value;
|
103
|
+
}, Ae = (e) => {
|
104
|
+
if (e.isErr)
|
105
|
+
return e.value;
|
106
|
+
throw e.value;
|
107
|
+
}, S = (e, t = "") => () => {
|
108
|
+
}, Te = (e, t) => () => {
|
109
|
+
}, _e = (e, t, ...r) => {
|
110
|
+
let s = null, n = null, a = !1, l = !1;
|
111
|
+
const i = [], $ = (o) => {
|
112
|
+
for (let f = 0; f < o.length; f++)
|
113
|
+
s = o[f], Array.isArray(s) ? $(s) : s != null && typeof s != "boolean" && ((a = typeof e != "function" && !q(s)) && (s = String(s)), a && l ? i[i.length - 1].$text$ += s : i.push(a ? H(null, s) : s), l = a);
|
114
|
+
};
|
115
|
+
if ($(r), t) {
|
116
|
+
t.key && (n = t.key);
|
117
|
+
{
|
118
|
+
const o = t.className || t.class;
|
119
|
+
o && (t.class = typeof o != "object" ? o : Object.keys(o).filter((f) => o[f]).join(" "));
|
120
|
+
}
|
121
|
+
}
|
122
|
+
const c = H(e, null);
|
123
|
+
return c.$attrs$ = t, i.length > 0 && (c.$children$ = i), c.$key$ = n, c;
|
124
|
+
}, H = (e, t) => {
|
125
|
+
const r = {
|
126
|
+
$flags$: 0,
|
127
|
+
$tag$: e,
|
128
|
+
$text$: t,
|
129
|
+
$elm$: null,
|
130
|
+
$children$: null
|
131
|
+
};
|
132
|
+
return r.$attrs$ = null, r.$key$ = null, r;
|
133
|
+
}, we = {}, Le = (e) => e && e.$tag$ === we, je = (e, t) => e != null && !q(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, Re = (e) => b(e).$hostElement$, Oe = (e, t, r) => {
|
134
|
+
const s = h.ce(t, r);
|
135
|
+
return e.dispatchEvent(s), s;
|
136
|
+
}, W = /* @__PURE__ */ new WeakMap(), Ie = (e, t, r) => {
|
137
|
+
let s = T.get(e);
|
138
|
+
Se && r ? (s = s || new CSSStyleSheet(), typeof s == "string" ? s = t : s.replaceSync(t)) : s = t, T.set(e, s);
|
139
|
+
}, He = (e, t, r) => {
|
140
|
+
var s;
|
141
|
+
const n = R(t), a = T.get(n);
|
142
|
+
if (e = e.nodeType === 11 ? e : y, a)
|
143
|
+
if (typeof a == "string") {
|
144
|
+
e = e.head || e;
|
145
|
+
let l = W.get(e), i;
|
146
|
+
if (l || W.set(e, l = /* @__PURE__ */ new Set()), !l.has(n)) {
|
147
|
+
{
|
148
|
+
i = y.createElement("style"), i.innerHTML = a;
|
149
|
+
const $ = (s = h.$nonce$) != null ? s : X(y);
|
150
|
+
$ != null && i.setAttribute("nonce", $), e.insertBefore(i, e.querySelector("link"));
|
151
|
+
}
|
152
|
+
t.$flags$ & 4 && (i.innerHTML += N), l && l.add(n);
|
153
|
+
}
|
154
|
+
} else
|
155
|
+
e.adoptedStyleSheets.includes(a) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, a]);
|
156
|
+
return n;
|
157
|
+
}, ze = (e) => {
|
158
|
+
const t = e.$cmpMeta$, r = e.$hostElement$, s = S("attachStyles", t.$tagName$);
|
159
|
+
He(
|
160
|
+
r.getRootNode(),
|
161
|
+
t
|
162
|
+
), s();
|
163
|
+
}, R = (e, t) => "sc-" + e.$tagName$, Y = (e, t, r, s, n, a) => {
|
164
|
+
if (r !== s) {
|
165
|
+
let l = he(e, t);
|
166
|
+
if (t.toLowerCase(), t === "class") {
|
167
|
+
const i = e.classList, $ = G(r), c = G(s);
|
168
|
+
i.remove(...$.filter((o) => o && !c.includes(o))), i.add(...c.filter((o) => o && !$.includes(o)));
|
169
|
+
} else if (t === "style") {
|
170
|
+
for (const i in r)
|
171
|
+
(!s || s[i] == null) && (i.includes("-") ? e.style.removeProperty(i) : e.style[i] = "");
|
172
|
+
for (const i in s)
|
173
|
+
(!r || s[i] !== r[i]) && (i.includes("-") ? e.style.setProperty(i, s[i]) : e.style[i] = s[i]);
|
174
|
+
} else if (t !== "key")
|
175
|
+
if (t === "ref")
|
176
|
+
s && s(e);
|
177
|
+
else {
|
178
|
+
const i = q(s);
|
179
|
+
if ((l || i && s !== null) && !n)
|
180
|
+
try {
|
181
|
+
if (e.tagName.includes("-"))
|
182
|
+
e[t] = s;
|
183
|
+
else {
|
184
|
+
const $ = s ?? "";
|
185
|
+
t === "list" ? l = !1 : (r == null || e[t] != $) && (e[t] = $);
|
186
|
+
}
|
187
|
+
} catch {
|
188
|
+
}
|
189
|
+
s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!l || a & 4 || n) && !i && (s = s === !0 ? "" : s, e.setAttribute(t, s));
|
190
|
+
}
|
191
|
+
}
|
192
|
+
}, Ue = /\s/, G = (e) => e ? e.split(Ue) : [], V = (e, t, r) => {
|
193
|
+
const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, n = e && e.$attrs$ || M, a = t.$attrs$ || M;
|
194
|
+
for (const l of J(Object.keys(n)))
|
195
|
+
l in a || Y(s, l, n[l], void 0, r, t.$flags$);
|
196
|
+
for (const l of J(Object.keys(a)))
|
197
|
+
Y(s, l, n[l], a[l], r, t.$flags$);
|
198
|
+
};
|
199
|
+
function J(e) {
|
200
|
+
return e.includes("ref") ? (
|
201
|
+
// we need to sort these to ensure that `'ref'` is the last attr
|
202
|
+
[...e.filter((t) => t !== "ref"), "ref"]
|
203
|
+
) : (
|
204
|
+
// no need to sort, return the original array
|
205
|
+
e
|
206
|
+
);
|
207
|
+
}
|
208
|
+
var ee, te = !1, _ = (e, t, r, s) => {
|
209
|
+
const n = t.$children$[r];
|
210
|
+
let a = 0, l, i;
|
211
|
+
if (n.$text$ !== null)
|
212
|
+
l = n.$elm$ = y.createTextNode(n.$text$);
|
213
|
+
else if (l = n.$elm$ = y.createElement(
|
214
|
+
n.$tag$
|
215
|
+
), V(null, n, te), n.$children$)
|
216
|
+
for (a = 0; a < n.$children$.length; ++a)
|
217
|
+
i = _(e, n, a), i && l.appendChild(i);
|
218
|
+
return l["s-hn"] = ee, l;
|
219
|
+
}, se = (e, t, r, s, n, a) => {
|
220
|
+
let l = e, i;
|
221
|
+
for (; n <= a; ++n)
|
222
|
+
s[n] && (i = _(null, r, n), i && (s[n].$elm$ = i, A(l, i, t)));
|
223
|
+
}, ne = (e, t, r) => {
|
224
|
+
for (let s = t; s <= r; ++s) {
|
225
|
+
const n = e[s];
|
226
|
+
if (n) {
|
227
|
+
const a = n.$elm$;
|
228
|
+
re(n), a && a.remove();
|
229
|
+
}
|
230
|
+
}
|
231
|
+
}, Be = (e, t, r, s, n = !1) => {
|
232
|
+
let a = 0, l = 0, i = 0, $ = 0, c = t.length - 1, o = t[0], f = t[c], u = s.length - 1, d = s[0], v = s[u], g, p;
|
233
|
+
for (; a <= c && l <= u; )
|
234
|
+
if (o == null)
|
235
|
+
o = t[++a];
|
236
|
+
else if (f == null)
|
237
|
+
f = t[--c];
|
238
|
+
else if (d == null)
|
239
|
+
d = s[++l];
|
240
|
+
else if (v == null)
|
241
|
+
v = s[--u];
|
242
|
+
else if (P(o, d, n))
|
243
|
+
k(o, d, n), o = t[++a], d = s[++l];
|
244
|
+
else if (P(f, v, n))
|
245
|
+
k(f, v, n), f = t[--c], v = s[--u];
|
246
|
+
else if (P(o, v, n))
|
247
|
+
k(o, v, n), A(e, o.$elm$, f.$elm$.nextSibling), o = t[++a], v = s[--u];
|
248
|
+
else if (P(f, d, n))
|
249
|
+
k(f, d, n), A(e, f.$elm$, o.$elm$), f = t[--c], d = s[++l];
|
250
|
+
else {
|
251
|
+
for (i = -1, $ = a; $ <= c; ++$)
|
252
|
+
if (t[$] && t[$].$key$ !== null && t[$].$key$ === d.$key$) {
|
253
|
+
i = $;
|
254
|
+
break;
|
255
|
+
}
|
256
|
+
i >= 0 ? (p = t[i], p.$tag$ !== d.$tag$ ? g = _(t && t[l], r, i) : (k(p, d, n), t[i] = void 0, g = p.$elm$), d = s[++l]) : (g = _(t && t[l], r, l), d = s[++l]), g && A(o.$elm$.parentNode, g, o.$elm$);
|
257
|
+
}
|
258
|
+
a > c ? se(
|
259
|
+
e,
|
260
|
+
s[u + 1] == null ? null : s[u + 1].$elm$,
|
261
|
+
r,
|
262
|
+
s,
|
263
|
+
l,
|
264
|
+
u
|
265
|
+
) : l > u && ne(t, a, c);
|
266
|
+
}, P = (e, t, r = !1) => e.$tag$ === t.$tag$ ? r ? !0 : e.$key$ === t.$key$ : !1, k = (e, t, r = !1) => {
|
267
|
+
const s = t.$elm$ = e.$elm$, n = e.$children$, a = t.$children$, l = t.$text$;
|
268
|
+
l === null ? (V(e, t, te), n !== null && a !== null ? Be(s, n, t, a, r) : a !== null ? (e.$text$ !== null && (s.textContent = ""), se(s, null, t, a, 0, a.length - 1)) : n !== null && ne(n, 0, n.length - 1)) : e.$text$ !== l && (s.data = l);
|
269
|
+
}, re = (e) => {
|
270
|
+
e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(re);
|
271
|
+
}, A = (e, t, r) => e?.insertBefore(t, r), qe = (e, t, r = !1) => {
|
272
|
+
const s = e.$hostElement$, n = e.$vnode$ || H(null, null), a = Le(t) ? t : _e(null, null, t);
|
273
|
+
if (ee = s.tagName, r && a.$attrs$)
|
274
|
+
for (const l of Object.keys(a.$attrs$))
|
275
|
+
s.hasAttribute(l) && !["key", "ref", "style", "class"].includes(l) && (a.$attrs$[l] = s[l]);
|
276
|
+
a.$tag$ = null, a.$flags$ |= 4, e.$vnode$ = a, a.$elm$ = n.$elm$ = s, k(n, a, r);
|
277
|
+
}, le = (e, t) => {
|
278
|
+
t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((r) => e.$onRenderResolve$ = r));
|
279
|
+
}, C = (e, t) => {
|
280
|
+
if (e.$flags$ |= 16, e.$flags$ & 4) {
|
281
|
+
e.$flags$ |= 512;
|
282
|
+
return;
|
283
|
+
}
|
284
|
+
return le(e, e.$ancestorComponent$), Ee(() => Ce(e, t));
|
285
|
+
}, Ce = (e, t) => {
|
286
|
+
const r = e.$hostElement$, s = S("scheduleUpdate", e.$cmpMeta$.$tagName$), n = e.$lazyInstance$;
|
287
|
+
if (!n)
|
288
|
+
throw new Error(
|
289
|
+
`Can't render component <${r.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`
|
290
|
+
);
|
291
|
+
let a;
|
292
|
+
return s(), De(a, () => Me(e, n, t));
|
293
|
+
}, De = (e, t) => Fe(e) ? e.then(t).catch((r) => {
|
294
|
+
console.error(r), t();
|
295
|
+
}) : t(), Fe = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Me = async (e, t, r) => {
|
296
|
+
var s;
|
297
|
+
const n = e.$hostElement$, a = S("update", e.$cmpMeta$.$tagName$), l = n["s-rc"];
|
298
|
+
r && ze(e);
|
299
|
+
const i = S("render", e.$cmpMeta$.$tagName$);
|
300
|
+
We(e, t, n, r), l && (l.map(($) => $()), n["s-rc"] = void 0), i(), a();
|
301
|
+
{
|
302
|
+
const $ = (s = n["s-p"]) != null ? s : [], c = () => Ye(e);
|
303
|
+
$.length === 0 ? c() : (Promise.all($).then(c), e.$flags$ |= 4, $.length = 0);
|
304
|
+
}
|
305
|
+
}, We = (e, t, r, s) => {
|
306
|
+
try {
|
307
|
+
t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, qe(e, t, s);
|
308
|
+
} catch (n) {
|
309
|
+
E(n, e.$hostElement$);
|
310
|
+
}
|
311
|
+
return null;
|
312
|
+
}, Ye = (e) => {
|
313
|
+
const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = S("postUpdate", t), n = e.$lazyInstance$, a = e.$ancestorComponent$;
|
314
|
+
e.$flags$ & 64 ? s() : (e.$flags$ |= 64, $e(r), ie(n, "componentDidLoad"), s(), e.$onReadyResolve$(r), a || ae()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && B(() => C(e, !1)), e.$flags$ &= -517;
|
315
|
+
}, ae = (e) => {
|
316
|
+
$e(y.documentElement), B(() => Oe(U, "appload", { detail: { namespace: fe } }));
|
317
|
+
}, ie = (e, t, r) => {
|
318
|
+
if (e && e[t])
|
319
|
+
try {
|
320
|
+
return e[t](r);
|
321
|
+
} catch (s) {
|
322
|
+
E(s);
|
323
|
+
}
|
324
|
+
}, $e = (e) => {
|
325
|
+
var t;
|
326
|
+
return e.classList.add((t = ue.hydratedSelectorName) != null ? t : "hydrated");
|
327
|
+
}, Ge = (e, t) => b(e).$instanceValues$.get(t), Je = (e, t, r, s) => {
|
328
|
+
const n = b(e);
|
329
|
+
if (!n)
|
330
|
+
throw new Error(
|
331
|
+
`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).`
|
332
|
+
);
|
333
|
+
const a = n.$hostElement$, l = n.$instanceValues$.get(t), i = n.$flags$, $ = n.$lazyInstance$;
|
334
|
+
r = je(r, s.$members$[t][0]);
|
335
|
+
const c = Number.isNaN(l) && Number.isNaN(r), o = r !== l && !c;
|
336
|
+
if ((!(i & 8) || l === void 0) && o && (n.$instanceValues$.set(t, r), $)) {
|
337
|
+
if (s.$watchers$ && i & 128) {
|
338
|
+
const f = s.$watchers$[t];
|
339
|
+
f && f.map((u) => {
|
340
|
+
try {
|
341
|
+
$[u](r, l, t);
|
342
|
+
} catch (d) {
|
343
|
+
E(d, a);
|
344
|
+
}
|
345
|
+
});
|
346
|
+
}
|
347
|
+
(i & 18) === 2 && C(n, !1);
|
348
|
+
}
|
349
|
+
}, oe = (e, t, r) => {
|
350
|
+
var s, n;
|
351
|
+
const a = e.prototype;
|
352
|
+
if (t.$members$ || t.$watchers$ || e.watchers) {
|
353
|
+
e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
|
354
|
+
const l = Object.entries((s = t.$members$) != null ? s : {});
|
355
|
+
if (l.map(([i, [$]]) => {
|
356
|
+
($ & 31 || r & 2 && $ & 32) && Object.defineProperty(a, i, {
|
357
|
+
get() {
|
358
|
+
return Ge(this, i);
|
359
|
+
},
|
360
|
+
set(c) {
|
361
|
+
Je(this, i, c, t);
|
362
|
+
},
|
363
|
+
configurable: !0,
|
364
|
+
enumerable: !0
|
365
|
+
});
|
366
|
+
}), r & 1) {
|
367
|
+
const i = /* @__PURE__ */ new Map();
|
368
|
+
a.attributeChangedCallback = function($, c, o) {
|
369
|
+
h.jmp(() => {
|
370
|
+
var f;
|
371
|
+
const u = i.get($);
|
372
|
+
if (this.hasOwnProperty(u))
|
373
|
+
o = this[u], delete this[u];
|
374
|
+
else {
|
375
|
+
if (a.hasOwnProperty(u) && typeof this[u] == "number" && this[u] == o)
|
376
|
+
return;
|
377
|
+
if (u == null) {
|
378
|
+
const d = b(this), v = d?.$flags$;
|
379
|
+
if (v && !(v & 8) && v & 128 && o !== c) {
|
380
|
+
const g = d.$lazyInstance$, p = (f = t.$watchers$) == null ? void 0 : f[$];
|
381
|
+
p?.forEach((m) => {
|
382
|
+
g[m] != null && g[m].call(g, o, c, $);
|
383
|
+
});
|
384
|
+
}
|
385
|
+
return;
|
386
|
+
}
|
387
|
+
}
|
388
|
+
this[u] = o === null && typeof this[u] == "boolean" ? !1 : o;
|
389
|
+
});
|
390
|
+
}, e.observedAttributes = Array.from(
|
391
|
+
/* @__PURE__ */ new Set([
|
392
|
+
...Object.keys((n = t.$watchers$) != null ? n : {}),
|
393
|
+
...l.filter(
|
394
|
+
([$, c]) => c[0] & 15
|
395
|
+
/* HasAttribute */
|
396
|
+
).map(([$, c]) => {
|
397
|
+
const o = c[1] || $;
|
398
|
+
return i.set(o, $), o;
|
399
|
+
})
|
400
|
+
])
|
401
|
+
);
|
402
|
+
}
|
403
|
+
}
|
404
|
+
return e;
|
405
|
+
}, Ke = async (e, t, r, s) => {
|
406
|
+
let n;
|
407
|
+
if (!(t.$flags$ & 32)) {
|
408
|
+
if (t.$flags$ |= 32, r.$lazyBundleId$) {
|
409
|
+
const $ = pe(r);
|
410
|
+
if ($ && "then" in $) {
|
411
|
+
const o = Te();
|
412
|
+
n = await $, o();
|
413
|
+
} else
|
414
|
+
n = $;
|
415
|
+
if (!n)
|
416
|
+
throw new Error(`Constructor for "${r.$tagName$}#${t.$modeName$}" was not found`);
|
417
|
+
n.isProxied || (r.$watchers$ = n.watchers, oe(
|
418
|
+
n,
|
419
|
+
r,
|
420
|
+
2
|
421
|
+
/* proxyState */
|
422
|
+
), n.isProxied = !0);
|
423
|
+
const c = S("createInstance", r.$tagName$);
|
424
|
+
t.$flags$ |= 8;
|
425
|
+
try {
|
426
|
+
new n(t);
|
427
|
+
} catch (o) {
|
428
|
+
E(o);
|
429
|
+
}
|
430
|
+
t.$flags$ &= -9, t.$flags$ |= 128, c();
|
431
|
+
} else {
|
432
|
+
n = e.constructor;
|
433
|
+
const $ = e.localName;
|
434
|
+
customElements.whenDefined($).then(
|
435
|
+
() => t.$flags$ |= 128
|
436
|
+
/* isWatchReady */
|
437
|
+
);
|
438
|
+
}
|
439
|
+
if (n && n.style) {
|
440
|
+
let $;
|
441
|
+
typeof n.style == "string" && ($ = n.style);
|
442
|
+
const c = R(r);
|
443
|
+
if (!T.has(c)) {
|
444
|
+
const o = S("registerStyles", r.$tagName$);
|
445
|
+
Ie(c, $, !!(r.$flags$ & 1)), o();
|
446
|
+
}
|
447
|
+
}
|
448
|
+
}
|
449
|
+
const a = t.$ancestorComponent$, l = () => C(t, !0);
|
450
|
+
a && a["s-rc"] ? a["s-rc"].push(l) : l();
|
451
|
+
}, Ne = (e) => {
|
452
|
+
}, Qe = (e) => {
|
453
|
+
if (!(h.$flags$ & 1)) {
|
454
|
+
const t = b(e), r = t.$cmpMeta$, s = S("connectedCallback", r.$tagName$);
|
455
|
+
if (t.$flags$ & 1)
|
456
|
+
t?.$lazyInstance$ || t?.$onReadyPromise$ && t.$onReadyPromise$.then(() => Ne());
|
457
|
+
else {
|
458
|
+
t.$flags$ |= 1;
|
459
|
+
{
|
460
|
+
let n = e;
|
461
|
+
for (; n = n.parentNode || n.host; )
|
462
|
+
if (n["s-p"]) {
|
463
|
+
le(t, t.$ancestorComponent$ = n);
|
464
|
+
break;
|
465
|
+
}
|
466
|
+
}
|
467
|
+
r.$members$ && Object.entries(r.$members$).map(([n, [a]]) => {
|
468
|
+
if (a & 31 && e.hasOwnProperty(n)) {
|
469
|
+
const l = e[n];
|
470
|
+
delete e[n], e[n] = l;
|
471
|
+
}
|
472
|
+
}), Ke(e, t, r);
|
473
|
+
}
|
474
|
+
s();
|
475
|
+
}
|
476
|
+
}, K = (e) => {
|
477
|
+
ie(e, "disconnectedCallback");
|
478
|
+
}, Xe = async (e) => {
|
479
|
+
if (!(h.$flags$ & 1)) {
|
480
|
+
const t = b(e);
|
481
|
+
t?.$lazyInstance$ ? K(t.$lazyInstance$) : t?.$onReadyPromise$ && t.$onReadyPromise$.then(() => K(t.$lazyInstance$));
|
482
|
+
}
|
483
|
+
}, Ve = (e, t = {}) => {
|
484
|
+
var r;
|
485
|
+
const s = S(), n = [], a = t.exclude || [], l = U.customElements, i = y.head, $ = /* @__PURE__ */ i.querySelector("meta[charset]"), c = /* @__PURE__ */ y.createElement("style"), o = [];
|
486
|
+
let f, u = !0;
|
487
|
+
Object.assign(h, t), h.$resourcesUrl$ = new URL(t.resourcesUrl || "./", y.baseURI).href;
|
488
|
+
let d = !1;
|
489
|
+
if (e.map((v) => {
|
490
|
+
v[1].map((g) => {
|
491
|
+
var p;
|
492
|
+
const m = {
|
493
|
+
$flags$: g[0],
|
494
|
+
$tagName$: g[1],
|
495
|
+
$members$: g[2],
|
496
|
+
$listeners$: g[3]
|
497
|
+
};
|
498
|
+
m.$flags$ & 4 && (d = !0), m.$members$ = g[2], m.$watchers$ = (p = g[4]) != null ? p : {};
|
499
|
+
const x = m.$tagName$, ce = class extends HTMLElement {
|
500
|
+
// StencilLazyHost
|
501
|
+
constructor(w) {
|
502
|
+
super(w), this.hasRegisteredEventListeners = !1, w = this, ge(w, m);
|
503
|
+
}
|
504
|
+
connectedCallback() {
|
505
|
+
b(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), f && (clearTimeout(f), f = null), u ? o.push(this) : h.jmp(() => Qe(this));
|
506
|
+
}
|
507
|
+
disconnectedCallback() {
|
508
|
+
h.jmp(() => Xe(this));
|
509
|
+
}
|
510
|
+
componentOnReady() {
|
511
|
+
return b(this).$onReadyPromise$;
|
512
|
+
}
|
513
|
+
};
|
514
|
+
m.$lazyBundleId$ = v[0], !a.includes(x) && !l.get(x) && (n.push(x), l.define(
|
515
|
+
x,
|
516
|
+
oe(
|
517
|
+
ce,
|
518
|
+
m,
|
519
|
+
1
|
520
|
+
/* isElementConstructor */
|
521
|
+
)
|
522
|
+
));
|
523
|
+
});
|
524
|
+
}), n.length > 0 && (d && (c.textContent += N), c.textContent += n.sort() + me, c.innerHTML.length)) {
|
525
|
+
c.setAttribute("data-styles", "");
|
526
|
+
const v = (r = h.$nonce$) != null ? r : X(y);
|
527
|
+
v != null && c.setAttribute("nonce", v), i.insertBefore(c, $ ? $.nextSibling : i.firstChild);
|
528
|
+
}
|
529
|
+
u = !1, o.length ? o.map((v) => v.connectedCallback()) : h.jmp(() => f = setTimeout(ae, 30)), s();
|
530
|
+
};
|
531
|
+
export {
|
532
|
+
we as H,
|
533
|
+
Ve as b,
|
534
|
+
Re as g,
|
535
|
+
_e as h,
|
536
|
+
ye as p,
|
537
|
+
Ze as r
|
538
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";var x=(e,t,n)=>new Promise((s,r)=>{var a=$=>{try{i(n.next($))}catch(c){r(c)}},l=$=>{try{i(n.throw($))}catch(c){r(c)}},i=$=>$.done?s($.value):Promise.resolve($.value).then(a,l);i((n=n.apply(e,t)).next())});const ge="ui-image",he={hydratedSelectorName:"hydrated"};var me=Object.defineProperty,pe=(e,t)=>{for(var n in t)me(e,n,{get:t[n],enumerable:!0})},U=new WeakMap,b=e=>U.get(e),ye=(e,t)=>U.set(t.$lazyInstance$=e,t),Se=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onReadyPromise$=new Promise(s=>n.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],U.set(e,n)},be=(e,t)=>t in e,E=(e,t)=>(0,console.error)(e,t),j=new Map,Ee=(e,t,n)=>{const s=e.$tagName$.replace(/-/g,"_"),r=e.$lazyBundleId$;if(!r)return;const a=j.get(r);if(a)return a[s];{const l=i=>(j.set(r,i),i[s]);switch(r){case"ui-image_2":return Promise.resolve().then(()=>require("./ui-image_2-CLk629jW.cjs")).then(l,E)}}return import(`./${r}.entry.js`).then(l=>(j.set(r,l),l[s]),E)},T=new Map,ke="{visibility:hidden}.hydrated{visibility:inherit}",Q="slot-fb{display:contents}slot-fb[hidden]{display:none}",B=typeof window!="undefined"?window:{},y=B.document||{head:{}},h={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},X=e=>Promise.resolve(e),Pe=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),O=!1,F=[],Z=[],xe=(e,t)=>n=>{e.push(n),O||(O=!0,h.$flags$&4?q(I):h.raf(I))},M=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){E(n)}e.length=0},I=()=>{M(F),M(Z),(O=F.length>0)&&h.raf(I)},q=e=>X().then(e),Ae=xe(Z),W={},C=e=>(e=typeof e,e==="object"||e==="function");function R(e){var t,n,s;return(s=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?s:void 0}var Le={};pe(Le,{err:()=>V,map:()=>Te,ok:()=>z,unwrap:()=>_e,unwrapErr:()=>we});var z=e=>({isOk:!0,isErr:!1,value:e}),V=e=>({isOk:!1,isErr:!0,value:e});function Te(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then(s=>z(s)):z(n)}if(e.isErr){const n=e.value;return V(n)}throw"should never get here"}var _e=e=>{if(e.isOk)return e.value;throw e.value},we=e=>{if(e.isErr)return e.value;throw e.value},S=(e,t="")=>()=>{},je=(e,t)=>()=>{},ee=(e,t,...n)=>{let s=null,r=null,a=!1,l=!1;const i=[],$=o=>{for(let f=0;f<o.length;f++)s=o[f],Array.isArray(s)?$(s):s!=null&&typeof s!="boolean"&&((a=typeof e!="function"&&!C(s))&&(s=String(s)),a&&l?i[i.length-1].$text$+=s:i.push(a?H(null,s):s),l=a)};if($(n),t){t.key&&(r=t.key);{const o=t.className||t.class;o&&(t.class=typeof o!="object"?o:Object.keys(o).filter(f=>o[f]).join(" "))}}const c=H(e,null);return c.$attrs$=t,i.length>0&&(c.$children$=i),c.$key$=r,c},H=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n},te={},Oe=e=>e&&e.$tag$===te,Ie=(e,t)=>e!=null&&!C(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,ze=e=>b(e).$hostElement$,He=(e,t,n)=>{const s=h.ce(t,n);return e.dispatchEvent(s),s},Y=new WeakMap,Ue=(e,t,n)=>{let s=T.get(e);Pe&&n?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,T.set(e,s)},Be=(e,t,n)=>{var s;const r=se(t),a=T.get(r);if(e=e.nodeType===11?e:y,a)if(typeof a=="string"){e=e.head||e;let l=Y.get(e),i;if(l||Y.set(e,l=new Set),!l.has(r)){{i=y.createElement("style"),i.innerHTML=a;const $=(s=h.$nonce$)!=null?s:R(y);$!=null&&i.setAttribute("nonce",$),e.insertBefore(i,e.querySelector("link"))}t.$flags$&4&&(i.innerHTML+=Q),l&&l.add(r)}}else e.adoptedStyleSheets.includes(a)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return r},qe=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,s=S("attachStyles",t.$tagName$);Be(n.getRootNode(),t),s()},se=(e,t)=>"sc-"+e.$tagName$,G=(e,t,n,s,r,a)=>{if(n!==s){let l=be(e,t);if(t.toLowerCase(),t==="class"){const i=e.classList,$=J(n),c=J(s);i.remove(...$.filter(o=>o&&!c.includes(o))),i.add(...c.filter(o=>o&&!$.includes(o)))}else if(t==="style"){for(const i in n)(!s||s[i]==null)&&(i.includes("-")?e.style.removeProperty(i):e.style[i]="");for(const i in s)(!n||s[i]!==n[i])&&(i.includes("-")?e.style.setProperty(i,s[i]):e.style[i]=s[i])}else if(t!=="key")if(t==="ref")s&&s(e);else{const i=C(s);if((l||i&&s!==null)&&!r)try{if(e.tagName.includes("-"))e[t]=s;else{const $=s==null?"":s;t==="list"?l=!1:(n==null||e[t]!=$)&&(e[t]=$)}}catch($){}s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!l||a&4||r)&&!i&&(s=s===!0?"":s,e.setAttribute(t,s))}}},Ce=/\s/,J=e=>e?e.split(Ce):[],ne=(e,t,n)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||W,a=t.$attrs$||W;for(const l of K(Object.keys(r)))l in a||G(s,l,r[l],void 0,n,t.$flags$);for(const l of K(Object.keys(a)))G(s,l,r[l],a[l],n,t.$flags$)};function K(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var re,le=!1,_=(e,t,n,s)=>{const r=t.$children$[n];let a=0,l,i;if(r.$text$!==null)l=r.$elm$=y.createTextNode(r.$text$);else if(l=r.$elm$=y.createElement(r.$tag$),ne(null,r,le),r.$children$)for(a=0;a<r.$children$.length;++a)i=_(e,r,a),i&&l.appendChild(i);return l["s-hn"]=re,l},ae=(e,t,n,s,r,a)=>{let l=e,i;for(;r<=a;++r)s[r]&&(i=_(null,n,r),i&&(s[r].$elm$=i,L(l,i,t)))},ie=(e,t,n)=>{for(let s=t;s<=n;++s){const r=e[s];if(r){const a=r.$elm$;$e(r),a&&a.remove()}}},De=(e,t,n,s,r=!1)=>{let a=0,l=0,i=0,$=0,c=t.length-1,o=t[0],f=t[c],u=s.length-1,d=s[0],v=s[u],g,m;for(;a<=c&&l<=u;)if(o==null)o=t[++a];else if(f==null)f=t[--c];else if(d==null)d=s[++l];else if(v==null)v=s[--u];else if(A(o,d,r))k(o,d,r),o=t[++a],d=s[++l];else if(A(f,v,r))k(f,v,r),f=t[--c],v=s[--u];else if(A(o,v,r))k(o,v,r),L(e,o.$elm$,f.$elm$.nextSibling),o=t[++a],v=s[--u];else if(A(f,d,r))k(f,d,r),L(e,f.$elm$,o.$elm$),f=t[--c],d=s[++l];else{for(i=-1,$=a;$<=c;++$)if(t[$]&&t[$].$key$!==null&&t[$].$key$===d.$key$){i=$;break}i>=0?(m=t[i],m.$tag$!==d.$tag$?g=_(t&&t[l],n,i):(k(m,d,r),t[i]=void 0,g=m.$elm$),d=s[++l]):(g=_(t&&t[l],n,l),d=s[++l]),g&&L(o.$elm$.parentNode,g,o.$elm$)}a>c?ae(e,s[u+1]==null?null:s[u+1].$elm$,n,s,l,u):l>u&&ie(t,a,c)},A=(e,t,n=!1)=>e.$tag$===t.$tag$?n?!0:e.$key$===t.$key$:!1,k=(e,t,n=!1)=>{const s=t.$elm$=e.$elm$,r=e.$children$,a=t.$children$,l=t.$text$;l===null?(ne(e,t,le),r!==null&&a!==null?De(s,r,t,a,n):a!==null?(e.$text$!==null&&(s.textContent=""),ae(s,null,t,a,0,a.length-1)):r!==null&&ie(r,0,r.length-1)):e.$text$!==l&&(s.data=l)},$e=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map($e)},L=(e,t,n)=>e==null?void 0:e.insertBefore(t,n),Fe=(e,t,n=!1)=>{const s=e.$hostElement$,r=e.$vnode$||H(null,null),a=Oe(t)?t:ee(null,null,t);if(re=s.tagName,n&&a.$attrs$)for(const l of Object.keys(a.$attrs$))s.hasAttribute(l)&&!["key","ref","style","class"].includes(l)&&(a.$attrs$[l]=s[l]);a.$tag$=null,a.$flags$|=4,e.$vnode$=a,a.$elm$=r.$elm$=s,k(r,a,n)},oe=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(n=>e.$onRenderResolve$=n))},D=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return oe(e,e.$ancestorComponent$),Ae(()=>Me(e,t))},Me=(e,t)=>{const n=e.$hostElement$,s=S("scheduleUpdate",e.$cmpMeta$.$tagName$),r=e.$lazyInstance$;if(!r)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let a;return s(),We(a,()=>Ge(e,r,t))},We=(e,t)=>Ye(e)?e.then(t).catch(n=>{console.error(n),t()}):t(),Ye=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ge=(e,t,n)=>x(exports,null,function*(){var s;const r=e.$hostElement$,a=S("update",e.$cmpMeta$.$tagName$),l=r["s-rc"];n&&qe(e);const i=S("render",e.$cmpMeta$.$tagName$);Je(e,t,r,n),l&&(l.map($=>$()),r["s-rc"]=void 0),i(),a();{const $=(s=r["s-p"])!=null?s:[],c=()=>Ke(e);$.length===0?c():(Promise.all($).then(c),e.$flags$|=4,$.length=0)}}),Je=(e,t,n,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Fe(e,t,s)}catch(r){E(r,e.$hostElement$)}return null},Ke=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,s=S("postUpdate",t),r=e.$lazyInstance$,a=e.$ancestorComponent$;e.$flags$&64?s():(e.$flags$|=64,ue(n),fe(r,"componentDidLoad"),s(),e.$onReadyResolve$(n),a||ce()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&q(()=>D(e,!1)),e.$flags$&=-517},ce=e=>{ue(y.documentElement),q(()=>He(B,"appload",{detail:{namespace:ge}}))},fe=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(s){E(s)}},ue=e=>{var t;return e.classList.add((t=he.hydratedSelectorName)!=null?t:"hydrated")},Ne=(e,t)=>b(e).$instanceValues$.get(t),Qe=(e,t,n,s)=>{const r=b(e);if(!r)throw new Error(`Couldn't find host element for "${s.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const a=r.$hostElement$,l=r.$instanceValues$.get(t),i=r.$flags$,$=r.$lazyInstance$;n=Ie(n,s.$members$[t][0]);const c=Number.isNaN(l)&&Number.isNaN(n),o=n!==l&&!c;if((!(i&8)||l===void 0)&&o&&(r.$instanceValues$.set(t,n),$)){if(s.$watchers$&&i&128){const f=s.$watchers$[t];f&&f.map(u=>{try{$[u](n,l,t)}catch(d){E(d,a)}})}(i&18)===2&&D(r,!1)}},de=(e,t,n)=>{var s,r;const a=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const l=Object.entries((s=t.$members$)!=null?s:{});if(l.map(([i,[$]])=>{($&31||n&2&&$&32)&&Object.defineProperty(a,i,{get(){return Ne(this,i)},set(c){Qe(this,i,c,t)},configurable:!0,enumerable:!0})}),n&1){const i=new Map;a.attributeChangedCallback=function($,c,o){h.jmp(()=>{var f;const u=i.get($);if(this.hasOwnProperty(u))o=this[u],delete this[u];else{if(a.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==o)return;if(u==null){const d=b(this),v=d==null?void 0:d.$flags$;if(v&&!(v&8)&&v&128&&o!==c){const g=d.$lazyInstance$,m=(f=t.$watchers$)==null?void 0:f[$];m==null||m.forEach(p=>{g[p]!=null&&g[p].call(g,o,c,$)})}return}}this[u]=o===null&&typeof this[u]=="boolean"?!1:o})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!=null?r:{}),...l.filter(([$,c])=>c[0]&15).map(([$,c])=>{const o=c[1]||$;return i.set(o,$),o})]))}}return e},Xe=(e,t,n,s)=>x(exports,null,function*(){let r;if(!(t.$flags$&32)){if(t.$flags$|=32,n.$lazyBundleId$){const $=Ee(n);if($&&"then"in $){const o=je();r=yield $,o()}else r=$;if(!r)throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);r.isProxied||(n.$watchers$=r.watchers,de(r,n,2),r.isProxied=!0);const c=S("createInstance",n.$tagName$);t.$flags$|=8;try{new r(t)}catch(o){E(o)}t.$flags$&=-9,t.$flags$|=128,c()}else{r=e.constructor;const $=e.localName;customElements.whenDefined($).then(()=>t.$flags$|=128)}if(r&&r.style){let $;typeof r.style=="string"&&($=r.style);const c=se(n);if(!T.has(c)){const o=S("registerStyles",n.$tagName$);Ue(c,$,!!(n.$flags$&1)),o()}}}const a=t.$ancestorComponent$,l=()=>D(t,!0);a&&a["s-rc"]?a["s-rc"].push(l):l()}),Ze=e=>{},Re=e=>{if(!(h.$flags$&1)){const t=b(e),n=t.$cmpMeta$,s=S("connectedCallback",n.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Ze());else{t.$flags$|=1;{let r=e;for(;r=r.parentNode||r.host;)if(r["s-p"]){oe(t,t.$ancestorComponent$=r);break}}n.$members$&&Object.entries(n.$members$).map(([r,[a]])=>{if(a&31&&e.hasOwnProperty(r)){const l=e[r];delete e[r],e[r]=l}}),Xe(e,t,n)}s()}},N=e=>{fe(e,"disconnectedCallback")},Ve=e=>x(exports,null,function*(){if(!(h.$flags$&1)){const t=b(e);t!=null&&t.$lazyInstance$?N(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>N(t.$lazyInstance$))}}),et=(e,t={})=>{var n;const s=S(),r=[],a=t.exclude||[],l=B.customElements,i=y.head,$=i.querySelector("meta[charset]"),c=y.createElement("style"),o=[];let f,u=!0;Object.assign(h,t),h.$resourcesUrl$=new URL(t.resourcesUrl||"./",y.baseURI).href;let d=!1;if(e.map(v=>{v[1].map(g=>{var m;const p={$flags$:g[0],$tagName$:g[1],$members$:g[2],$listeners$:g[3]};p.$flags$&4&&(d=!0),p.$members$=g[2],p.$watchers$=(m=g[4])!=null?m:{};const P=p.$tagName$,ve=class extends HTMLElement{constructor(w){super(w),this.hasRegisteredEventListeners=!1,w=this,Se(w,p)}connectedCallback(){b(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),u?o.push(this):h.jmp(()=>Re(this))}disconnectedCallback(){h.jmp(()=>Ve(this))}componentOnReady(){return b(this).$onReadyPromise$}};p.$lazyBundleId$=v[0],!a.includes(P)&&!l.get(P)&&(r.push(P),l.define(P,de(ve,p,1)))})}),r.length>0&&(d&&(c.textContent+=Q),c.textContent+=r.sort()+ke,c.innerHTML.length)){c.setAttribute("data-styles","");const v=(n=h.$nonce$)!=null?n:R(y);v!=null&&c.setAttribute("nonce",v),i.insertBefore(c,$?$.nextSibling:i.firstChild)}u=!1,o.length?o.map(v=>v.connectedCallback()):h.jmp(()=>f=setTimeout(ce,30)),s()};exports.Host=te;exports.bootstrapLazy=et;exports.getElement=ze;exports.h=ee;exports.promiseResolve=X;exports.registerInstance=ye;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const i=require("./index-242ac81a-CjjM4VND.cjs"),n=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}",a=n,r=class{constructor(e){i.registerInstance(this,e),this.hasStarted=!1,this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.loading="lazy",this.imgLoaded=!1}onSrcChange(){this.loading!=="eager"&&(this.imgLoaded=!1,this.hasStarted=!1,(typeof window=="undefined"||!("IntersectionObserver"in window))&&this.beginLoad())}onLoadingChange(e,t){e!==t&&(this.cleanupObserver(),this.detachImgHandlers(),e==="eager"?(this.imgEl&&this.src&&(this.imgEl.src=this.src),this.hasStarted=!0):(this.imgLoaded=!1,this.hasStarted=!1,this.setupObserver()))}componentDidLoad(){this.loading!=="eager"&&this.setupObserver()}disconnectedCallback(){this.cleanupObserver(),this.detachImgHandlers()}canUseIO(){return typeof window!="undefined"&&"IntersectionObserver"in window}setupObserver(){if(this.loading!=="eager"){if(!this.canUseIO()){this.beginLoad();return}this.io=new IntersectionObserver(e=>{var t;for(const s of e)if(s.isIntersecting){this.beginLoad(),(t=this.io)===null||t===void 0||t.unobserve(s.target),this.cleanupObserver();break}},{root:null,rootMargin:this.detectDistance,threshold:0}),this.io.observe(this.el)}}cleanupObserver(){var e;(e=this.io)===null||e===void 0||e.disconnect(),this.io=void 0}wireOnceHandlers(){this.imgEl&&(this.detachImgHandlers(),this._onLoad=()=>{var e;this.currentSrc&&(!((e=this.imgEl)===null||e===void 0)&&e.currentSrc)&&!this.imgEl.currentSrc.includes(this.currentSrc)||(this.imgLoaded=!0)},this._onError=()=>{console.error("Load image failed:",this.src)},this.imgEl.addEventListener("load",this._onLoad,{once:!0}),this.imgEl.addEventListener("error",this._onError,{once:!0}))}detachImgHandlers(){this.imgEl&&(this._onLoad&&this.imgEl.removeEventListener("load",this._onLoad),this._onError&&this.imgEl.removeEventListener("error",this._onError),this._onLoad=void 0,this._onError=void 0)}beginLoad(){if(!this.hasStarted&&this.imgEl&&this.src){if(this.hasStarted=!0,this.wireOnceHandlers(),this.imgEl.complete&&this.imgEl.naturalWidth>0){this.imgLoaded=!0;return}this.currentSrc=this.src,this.imgEl.src=this.src,this.imgEl.complete&&this.imgEl.naturalWidth>0&&(this.imgLoaded=!0)}}get showSkeleton(){return this.loading!=="eager"&&!this.imgLoaded}renderEager(){return i.h(i.Host,{class:"HostContainer"},i.h("img",{src:this.src,decoding:"async",style:this.styles,class:"UiContainer Visible",alt:this.alt,width:this.width,height:this.height,loading:"eager"}))}renderLazy(){return i.h(i.Host,{class:"HostContainer","aria-busy":this.imgLoaded?"false":"true"},this.showSkeleton&&i.h("ui-skeleton",{class:"UiContainer",structure:"image",width:"100%",height:"100%"}),i.h("img",{ref:e=>this.imgEl=e,src:void 0,decoding:"async",style:this.styles,class:`UiContainer ${this.imgLoaded?"Visible":"Hidden"}`,alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}render(){return this.loading==="eager"?this.renderEager():this.renderLazy()}get el(){return i.getElement(this)}static get watchers(){return{src:["onSrcChange"],loading:["onLoadingChange"]}}};r.style=a;exports.UiImage=r;
|
@@ -0,0 +1,86 @@
|
|
1
|
+
import { r as n, h as t, H as r, g as a } from "./index-242ac81a-CI4JxPRf.js";
|
2
|
+
const h = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}", o = h, d = class {
|
3
|
+
constructor(e) {
|
4
|
+
n(this, e), this.hasStarted = !1, this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.styles = void 0, this.detectDistance = "200px", this.loading = "lazy", this.imgLoaded = !1;
|
5
|
+
}
|
6
|
+
onSrcChange() {
|
7
|
+
this.loading !== "eager" && (this.imgLoaded = !1, this.hasStarted = !1, (typeof window > "u" || !("IntersectionObserver" in window)) && this.beginLoad());
|
8
|
+
}
|
9
|
+
onLoadingChange(e, i) {
|
10
|
+
e !== i && (this.cleanupObserver(), this.detachImgHandlers(), e === "eager" ? (this.imgEl && this.src && (this.imgEl.src = this.src), this.hasStarted = !0) : (this.imgLoaded = !1, this.hasStarted = !1, this.setupObserver()));
|
11
|
+
}
|
12
|
+
componentDidLoad() {
|
13
|
+
this.loading !== "eager" && this.setupObserver();
|
14
|
+
}
|
15
|
+
disconnectedCallback() {
|
16
|
+
this.cleanupObserver(), this.detachImgHandlers();
|
17
|
+
}
|
18
|
+
canUseIO() {
|
19
|
+
return typeof window < "u" && "IntersectionObserver" in window;
|
20
|
+
}
|
21
|
+
setupObserver() {
|
22
|
+
if (this.loading !== "eager") {
|
23
|
+
if (!this.canUseIO()) {
|
24
|
+
this.beginLoad();
|
25
|
+
return;
|
26
|
+
}
|
27
|
+
this.io = new IntersectionObserver((e) => {
|
28
|
+
var i;
|
29
|
+
for (const s of e)
|
30
|
+
if (s.isIntersecting) {
|
31
|
+
this.beginLoad(), (i = this.io) === null || i === void 0 || i.unobserve(s.target), this.cleanupObserver();
|
32
|
+
break;
|
33
|
+
}
|
34
|
+
}, { root: null, rootMargin: this.detectDistance, threshold: 0 }), this.io.observe(this.el);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
cleanupObserver() {
|
38
|
+
var e;
|
39
|
+
(e = this.io) === null || e === void 0 || e.disconnect(), this.io = void 0;
|
40
|
+
}
|
41
|
+
wireOnceHandlers() {
|
42
|
+
this.imgEl && (this.detachImgHandlers(), this._onLoad = () => {
|
43
|
+
var e;
|
44
|
+
this.currentSrc && (!((e = this.imgEl) === null || e === void 0) && e.currentSrc) && !this.imgEl.currentSrc.includes(this.currentSrc) || (this.imgLoaded = !0);
|
45
|
+
}, this._onError = () => {
|
46
|
+
console.error("Load image failed:", this.src);
|
47
|
+
}, this.imgEl.addEventListener("load", this._onLoad, { once: !0 }), this.imgEl.addEventListener("error", this._onError, { once: !0 }));
|
48
|
+
}
|
49
|
+
detachImgHandlers() {
|
50
|
+
this.imgEl && (this._onLoad && this.imgEl.removeEventListener("load", this._onLoad), this._onError && this.imgEl.removeEventListener("error", this._onError), this._onLoad = void 0, this._onError = void 0);
|
51
|
+
}
|
52
|
+
beginLoad() {
|
53
|
+
if (!this.hasStarted && this.imgEl && this.src) {
|
54
|
+
if (this.hasStarted = !0, this.wireOnceHandlers(), this.imgEl.complete && this.imgEl.naturalWidth > 0) {
|
55
|
+
this.imgLoaded = !0;
|
56
|
+
return;
|
57
|
+
}
|
58
|
+
this.currentSrc = this.src, this.imgEl.src = this.src, this.imgEl.complete && this.imgEl.naturalWidth > 0 && (this.imgLoaded = !0);
|
59
|
+
}
|
60
|
+
}
|
61
|
+
get showSkeleton() {
|
62
|
+
return this.loading !== "eager" && !this.imgLoaded;
|
63
|
+
}
|
64
|
+
renderEager() {
|
65
|
+
return t(r, { class: "HostContainer" }, t("img", { src: this.src, decoding: "async", style: this.styles, class: "UiContainer Visible", alt: this.alt, width: this.width, height: this.height, loading: "eager" }));
|
66
|
+
}
|
67
|
+
renderLazy() {
|
68
|
+
return t(r, { class: "HostContainer", "aria-busy": this.imgLoaded ? "false" : "true" }, this.showSkeleton && t("ui-skeleton", { class: "UiContainer", structure: "image", width: "100%", height: "100%" }), t("img", { ref: (e) => this.imgEl = e, src: void 0, decoding: "async", style: this.styles, class: `UiContainer ${this.imgLoaded ? "Visible" : "Hidden"}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" }));
|
69
|
+
}
|
70
|
+
render() {
|
71
|
+
return this.loading === "eager" ? this.renderEager() : this.renderLazy();
|
72
|
+
}
|
73
|
+
get el() {
|
74
|
+
return a(this);
|
75
|
+
}
|
76
|
+
static get watchers() {
|
77
|
+
return {
|
78
|
+
src: ["onSrcChange"],
|
79
|
+
loading: ["onLoadingChange"]
|
80
|
+
};
|
81
|
+
}
|
82
|
+
};
|
83
|
+
d.style = o;
|
84
|
+
export {
|
85
|
+
d as U
|
86
|
+
};
|