@everymatrix/cashier-method-details 1.62.0 → 1.62.2
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/{CashierConfirmModal-BzyMG3UR.js → CashierConfirmModal-3pkCHAVZ.js} +33 -33
- package/components/{CashierConfirmModal-_hdnB5XT.js → CashierConfirmModal-CNzEOcOZ.js} +33 -33
- package/components/{CashierError-B6McF-k3.js → CashierError-54HEmuGo.js} +664 -660
- package/components/{CashierError-B5moVKPa.js → CashierError-BdesR9Lk.js} +663 -659
- package/components/{CashierError-CpurblKL.cjs → CashierError-DzZN_dUA.cjs} +3 -16
- package/components/{CashierHeader--Nl05VG1.js → CashierHeader-BI0hpgde.js} +38 -38
- package/components/{CashierHeader-Cl8p01HE.cjs → CashierHeader-CMk46giO.cjs} +1 -1
- package/components/{CashierHeader-DfkOztXW.js → CashierHeader-DJ5Q1vFZ.js} +38 -38
- package/components/{CashierIframeRedirect-CG-TISLS.js → CashierIframeRedirect-B_p94vZr.js} +30 -30
- package/components/{CashierIframeRedirect-DeYUvDgV.cjs → CashierIframeRedirect-Csn8eKuO.cjs} +1 -1
- package/components/{CashierIframeRedirect-Bcj_O92b.js → CashierIframeRedirect-posRqua2.js} +32 -32
- package/components/{CashierMethodDetails-liiK2Dkd.cjs → CashierMethodDetails-BWsvMub7.cjs} +1 -1
- package/components/{CashierMethodDetails-DfYB6twn.js → CashierMethodDetails-D09YxmfK.js} +55 -55
- package/components/{CashierMethodDetails-dtFzfq5E.js → CashierMethodDetails-D7zplW4u.js} +55 -55
- package/components/{CashierModal-cAadEtV9.js → CashierModal-Dv-7ZIuz.js} +34 -34
- package/components/{CashierModal-B2DUTbzl.js → CashierModal-PGQGrAgY.js} +34 -34
- package/components/{CashierNotifications-BqrU3g7B.js → CashierNotifications-BMYdcdkg.js} +19 -19
- package/components/{CashierNotifications-sCssNp8Z.js → CashierNotifications-Dy0g_QWG.js} +19 -19
- package/components/{CashierReceiptPage-mGY6IAnl.cjs → CashierReceiptPage-CZRoK15t.cjs} +1 -1
- package/components/{CashierReceiptPage-CMCjTz1a.js → CashierReceiptPage-Dj3up9w-.js} +28 -28
- package/components/{CashierReceiptPage-CVy0Rii8.js → CashierReceiptPage-hMKm4Odg.js} +28 -28
- package/components/{CashierSpinner-BMBhQseZ.js → CashierSpinner-D30EfqMz.js} +27 -27
- package/components/{CashierSpinner-D3kcfOR-.js → CashierSpinner-Dq2vgm_x.js} +27 -27
- 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-97d17652-B8yQdy7J.js +542 -0
- package/stencil/index-97d17652-C616IYj2.js +558 -0
- package/stencil/index-97d17652-C9Ph2JiE.cjs +1 -0
- package/stencil/ui-image-7da92f1f-26DzsVFt.js +39 -0
- package/stencil/ui-image-7da92f1f-BAghvEDf.js +39 -0
- package/stencil/ui-image-7da92f1f-BiVBd_OW.cjs +1 -0
- package/stencil/ui-image-Bz0nQwNJ.cjs +1 -0
- package/stencil/ui-image-DX8NqsyA.js +25 -0
- package/stencil/ui-image-o9dMcntc.js +7 -0
- package/stencil/ui-image_2-BXgptLvl.js +154 -0
- package/stencil/ui-image_2-Cctik3aF.cjs +73 -0
- package/stencil/ui-image_2-Cyqb4u7k.js +154 -0
- package/stencil/index-b7bbd57e-6KaMTlNN.js +0 -534
- package/stencil/index-b7bbd57e-BSagye0B.js +0 -550
- package/stencil/index-b7bbd57e-DIQXXTTR.cjs +0 -1
- package/stencil/ui-image-38c3c15f-CumwWbNu.js +0 -39
- package/stencil/ui-image-38c3c15f-Dxl-aZb-.js +0 -39
- package/stencil/ui-image-38c3c15f-y5t5ZLG0.cjs +0 -1
- package/stencil/ui-image-BQa5UbqU.js +0 -11
- package/stencil/ui-image-Bi4jDe3D.js +0 -29
- package/stencil/ui-image-z441BZiX.cjs +0 -1
@@ -0,0 +1,558 @@
|
|
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-Cyqb4u7k.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
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";var x=(e,t,n)=>new Promise((s,r)=>{var i=a=>{try{$(n.next(a))}catch(o){r(o)}},l=a=>{try{$(n.throw(a))}catch(o){r(o)}},$=a=>a.done?s(a.value):Promise.resolve(a.value).then(i,l);$((n=n.apply(e,t)).next())});const ge="ui-image",he={hydratedSelectorName:"hydrated"};var pe=Object.defineProperty,ye=(e,t)=>{for(var n in t)pe(e,n,{get:t[n],enumerable:!0})},B=new WeakMap,E=e=>B.get(e),me=(e,t)=>B.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"]=[],B.set(e,n)},D=(e,t)=>t in e,k=(e,t)=>(0,console.error)(e,t),w=new Map,Ee=(e,t,n)=>{const s=e.$tagName$.replace(/-/g,"_"),r=e.$lazyBundleId$;if(!r)return;const i=w.get(r);if(i)return i[s];{const l=$=>(w.set(r,$),$[s]);switch(r){case"ui-image_2":return Promise.resolve().then(()=>require("./ui-image_2-Cctik3aF.cjs")).then(l,k)}}return import(`./${r}.entry.js`).then(l=>(w.set(r,l),l[s]),k)},A=new Map,ke="{visibility:hidden}.hydrated{visibility:inherit}",Q="slot-fb{display:contents}slot-fb[hidden]{display:none}",j=typeof window!="undefined"?window:{},m=j.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)},Z=e=>Promise.resolve(e),be=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),I=!1,W=[],R=[],Pe=(e,t)=>n=>{e.push(n),I||(I=!0,h.$flags$&4?C(U):h.raf(U))},M=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){k(n)}e.length=0},U=()=>{M(W),M(R),(I=W.length>0)&&h.raf(U)},C=e=>Z().then(e),xe=Pe(R),G={},q=e=>(e=typeof e,e==="object"||e==="function");function N(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 Te={};ye(Te,{err:()=>V,map:()=>_e,ok:()=>H,unwrap:()=>Ae,unwrapErr:()=>Le});var H=e=>({isOk:!0,isErr:!1,value:e}),V=e=>({isOk:!1,isErr:!0,value:e});function _e(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then(s=>H(s)):H(n)}if(e.isErr){const n=e.value;return V(n)}throw"should never get here"}var Ae=e=>{if(e.isOk)return e.value;throw e.value},Le=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,i=!1,l=!1;const $=[],a=c=>{for(let f=0;f<c.length;f++)s=c[f],Array.isArray(s)?a(s):s!=null&&typeof s!="boolean"&&((i=typeof e!="function"&&!q(s))&&(s=String(s)),i&&l?$[$.length-1].$text$+=s:$.push(i?z(null,s):s),l=i)};if(a(n),t){t.key&&(r=t.key);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter(f=>c[f]).join(" "))}}const o=z(e,null);return o.$attrs$=t,$.length>0&&(o.$children$=$),o.$key$=r,o},z=(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,we=(e,t)=>e!=null&&!q(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,Ie=e=>E(e).$hostElement$,Ue=(e,t,n)=>{const s=h.ce(t,n);return e.dispatchEvent(s),s},X=new WeakMap,He=(e,t,n)=>{let s=A.get(e);be&&n?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,A.set(e,s)},ze=(e,t,n)=>{var s;const r=se(t),i=A.get(r);if(e=e.nodeType===11?e:m,i)if(typeof i=="string"){e=e.head||e;let l=X.get(e),$;if(l||X.set(e,l=new Set),!l.has(r)){{$=m.createElement("style"),$.innerHTML=i;const a=(s=h.$nonce$)!=null?s:N(m);a!=null&&$.setAttribute("nonce",a),e.insertBefore($,e.querySelector("link"))}t.$flags$&4&&($.innerHTML+=Q),l&&l.add(r)}}else e.adoptedStyleSheets.includes(i)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]);return r},Be=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,s=S("attachStyles",t.$tagName$);ze(n.getRootNode(),t),s()},se=(e,t)=>"sc-"+e.$tagName$,Y=(e,t,n,s,r,i)=>{if(n!==s){let l=D(e,t),$=t.toLowerCase();if(t==="class"){const a=e.classList,o=J(n),c=J(s);a.remove(...o.filter(f=>f&&!c.includes(f))),a.add(...c.filter(f=>f&&!o.includes(f)))}else if(t==="style"){for(const a in n)(!s||s[a]==null)&&(a.includes("-")?e.style.removeProperty(a):e.style[a]="");for(const a in s)(!n||s[a]!==n[a])&&(a.includes("-")?e.style.setProperty(a,s[a]):e.style[a]=s[a])}else if(t!=="key")if(t==="ref")s&&s(e);else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):D(j,$)?t=$.slice(2):t=$[2]+t.slice(3),n||s){const a=t.endsWith(ne);t=t.replace(qe,""),n&&h.rel(e,t,n,a),s&&h.ael(e,t,s,a)}}else{const a=q(s);if(l||a&&s!==null)try{if(e.tagName.includes("-"))e[t]=s;else{const o=s==null?"":s;t==="list"?l=!1:(n==null||e[t]!=o)&&(e[t]=o)}}catch(o){}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))}}},Ce=/\s/,J=e=>e?e.split(Ce):[],ne="Capture",qe=new RegExp(ne+"$"),re=(e,t,n)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||G,i=t.$attrs$||G;for(const l of K(Object.keys(r)))l in i||Y(s,l,r[l],void 0,n,t.$flags$);for(const l of K(Object.keys(i)))Y(s,l,r[l],i[l],n,t.$flags$)};function K(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var le,ae=!1,L=(e,t,n,s)=>{const r=t.$children$[n];let i=0,l,$;if(r.$text$!==null)l=r.$elm$=m.createTextNode(r.$text$);else if(l=r.$elm$=m.createElement(r.$tag$),re(null,r,ae),r.$children$)for(i=0;i<r.$children$.length;++i)$=L(e,r,i),$&&l.appendChild($);return l["s-hn"]=le,l},ie=(e,t,n,s,r,i)=>{let l=e,$;for(;r<=i;++r)s[r]&&($=L(null,n,r),$&&(s[r].$elm$=$,_(l,$,t)))},$e=(e,t,n)=>{for(let s=t;s<=n;++s){const r=e[s];if(r){const i=r.$elm$;oe(r),i&&i.remove()}}},Fe=(e,t,n,s,r=!1)=>{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,p;for(;i<=o&&l<=u;)if(c==null)c=t[++i];else if(f==null)f=t[--o];else if(d==null)d=s[++l];else if(v==null)v=s[--u];else if(T(c,d,r))b(c,d,r),c=t[++i],d=s[++l];else if(T(f,v,r))b(f,v,r),f=t[--o],v=s[--u];else if(T(c,v,r))b(c,v,r),_(e,c.$elm$,f.$elm$.nextSibling),c=t[++i],v=s[--u];else if(T(f,d,r))b(f,d,r),_(e,f.$elm$,c.$elm$),f=t[--o],d=s[++l];else{for($=-1,a=i;a<=o;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===d.$key$){$=a;break}$>=0?(p=t[$],p.$tag$!==d.$tag$?g=L(t&&t[l],n,$):(b(p,d,r),t[$]=void 0,g=p.$elm$),d=s[++l]):(g=L(t&&t[l],n,l),d=s[++l]),g&&_(c.$elm$.parentNode,g,c.$elm$)}i>o?ie(e,s[u+1]==null?null:s[u+1].$elm$,n,s,l,u):l>u&&$e(t,i,o)},T=(e,t,n=!1)=>e.$tag$===t.$tag$?n?!0:e.$key$===t.$key$:!1,b=(e,t,n=!1)=>{const s=t.$elm$=e.$elm$,r=e.$children$,i=t.$children$,l=t.$text$;l===null?(re(e,t,ae),r!==null&&i!==null?Fe(s,r,t,i,n):i!==null?(e.$text$!==null&&(s.textContent=""),ie(s,null,t,i,0,i.length-1)):r!==null&&$e(r,0,r.length-1)):e.$text$!==l&&(s.data=l)},oe=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(oe)},_=(e,t,n)=>e==null?void 0:e.insertBefore(t,n),De=(e,t,n=!1)=>{const s=e.$hostElement$,r=e.$vnode$||z(null,null),i=Oe(t)?t:ee(null,null,t);if(le=s.tagName,n&&i.$attrs$)for(const l of Object.keys(i.$attrs$))s.hasAttribute(l)&&!["key","ref","style","class"].includes(l)&&(i.$attrs$[l]=s[l]);i.$tag$=null,i.$flags$|=4,e.$vnode$=i,i.$elm$=r.$elm$=s,b(r,i,n)},ce=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(n=>e.$onRenderResolve$=n))},F=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return ce(e,e.$ancestorComponent$),xe(()=>We(e,t))},We=(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 i;return s(),Me(i,()=>Xe(e,r,t))},Me=(e,t)=>Ge(e)?e.then(t).catch(n=>{console.error(n),t()}):t(),Ge=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Xe=(e,t,n)=>x(exports,null,function*(){var s;const r=e.$hostElement$,i=S("update",e.$cmpMeta$.$tagName$),l=r["s-rc"];n&&Be(e);const $=S("render",e.$cmpMeta$.$tagName$);Ye(e,t,r,n),l&&(l.map(a=>a()),r["s-rc"]=void 0),$(),i();{const a=(s=r["s-p"])!=null?s:[],o=()=>Je(e);a.length===0?o():(Promise.all(a).then(o),e.$flags$|=4,a.length=0)}}),Ye=(e,t,n,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,De(e,t,s)}catch(r){k(r,e.$hostElement$)}return null},Je=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,s=S("postUpdate",t),r=e.$lazyInstance$,i=e.$ancestorComponent$;e.$flags$&64?s():(e.$flags$|=64,ue(n),Ke(r,"componentDidLoad"),s(),e.$onReadyResolve$(n),i||fe()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&C(()=>F(e,!1)),e.$flags$&=-517},fe=e=>{ue(m.documentElement),C(()=>Ue(j,"appload",{detail:{namespace:ge}}))},Ke=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(s){k(s)}},ue=e=>{var t;return e.classList.add((t=he.hydratedSelectorName)!=null?t:"hydrated")},Qe=(e,t)=>E(e).$instanceValues$.get(t),Ze=(e,t,n,s)=>{const r=E(e);if(!r)throw new Error(`Couldn't find host element for "${s.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,l=r.$instanceValues$.get(t),$=r.$flags$,a=r.$lazyInstance$;n=we(n,s.$members$[t][0]);const o=Number.isNaN(l)&&Number.isNaN(n),c=n!==l&&!o;if((!($&8)||l===void 0)&&c&&(r.$instanceValues$.set(t,n),a)){if(s.$watchers$&&$&128){const f=s.$watchers$[t];f&&f.map(u=>{try{a[u](n,l,t)}catch(d){k(d,i)}})}($&18)===2&&F(r,!1)}},de=(e,t,n)=>{var s,r;const i=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const l=Object.entries((s=t.$members$)!=null?s:{});if(l.map(([$,[a]])=>{(a&31||n&2&&a&32)&&Object.defineProperty(i,$,{get(){return Qe(this,$)},set(o){Ze(this,$,o,t)},configurable:!0,enumerable:!0})}),n&1){const $=new Map;i.attributeChangedCallback=function(a,o,c){h.jmp(()=>{var f;const u=$.get(a);if(this.hasOwnProperty(u))c=this[u],delete this[u];else{if(i.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==c)return;if(u==null){const d=E(this),v=d==null?void 0:d.$flags$;if(v&&!(v&8)&&v&128&&c!==o){const g=d.$lazyInstance$,p=(f=t.$watchers$)==null?void 0:f[a];p==null||p.forEach(y=>{g[y]!=null&&g[y].call(g,c,o,a)})}return}}this[u]=c===null&&typeof this[u]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!=null?r:{}),...l.filter(([a,o])=>o[0]&15).map(([a,o])=>{const c=o[1]||a;return $.set(c,a),c})]))}}return e},Re=(e,t,n,s)=>x(exports,null,function*(){let r;if(!(t.$flags$&32)){if(t.$flags$|=32,n.$lazyBundleId$){const a=Ee(n);if(a&&"then"in a){const c=je();r=yield a,c()}else r=a;if(!r)throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);r.isProxied||(n.$watchers$=r.watchers,de(r,n,2),r.isProxied=!0);const o=S("createInstance",n.$tagName$);t.$flags$|=8;try{new r(t)}catch(c){k(c)}t.$flags$&=-9,t.$flags$|=128,o()}else{r=e.constructor;const a=e.localName;customElements.whenDefined(a).then(()=>t.$flags$|=128)}if(r&&r.style){let a;typeof r.style=="string"&&(a=r.style);const o=se(n);if(!A.has(o)){const c=S("registerStyles",n.$tagName$);He(o,a,!!(n.$flags$&1)),c()}}}const i=t.$ancestorComponent$,l=()=>F(t,!0);i&&i["s-rc"]?i["s-rc"].push(l):l()}),Ne=e=>{},Ve=e=>{if(!(h.$flags$&1)){const t=E(e),n=t.$cmpMeta$,s=S("connectedCallback",n.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Ne());else{t.$flags$|=1;{let r=e;for(;r=r.parentNode||r.host;)if(r["s-p"]){ce(t,t.$ancestorComponent$=r);break}}n.$members$&&Object.entries(n.$members$).map(([r,[i]])=>{if(i&31&&e.hasOwnProperty(r)){const l=e[r];delete e[r],e[r]=l}}),Re(e,t,n)}s()}},et=e=>{},tt=e=>x(exports,null,function*(){if(!(h.$flags$&1)){const t=E(e);t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>et())}}),st=(e,t={})=>{var n;const s=S(),r=[],i=t.exclude||[],l=j.customElements,$=m.head,a=$.querySelector("meta[charset]"),o=m.createElement("style"),c=[];let f,u=!0;Object.assign(h,t),h.$resourcesUrl$=new URL(t.resourcesUrl||"./",m.baseURI).href;let d=!1;if(e.map(v=>{v[1].map(g=>{var p;const y={$flags$:g[0],$tagName$:g[1],$members$:g[2],$listeners$:g[3]};y.$flags$&4&&(d=!0),y.$members$=g[2],y.$watchers$=(p=g[4])!=null?p:{};const P=y.$tagName$,ve=class extends HTMLElement{constructor(O){super(O),this.hasRegisteredEventListeners=!1,O=this,Se(O,y)}connectedCallback(){E(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),u?c.push(this):h.jmp(()=>Ve(this))}disconnectedCallback(){h.jmp(()=>tt(this))}componentOnReady(){return E(this).$onReadyPromise$}};y.$lazyBundleId$=v[0],!i.includes(P)&&!l.get(P)&&(r.push(P),l.define(P,de(ve,y,1)))})}),r.length>0&&(d&&(o.textContent+=Q),o.textContent+=r.sort()+ke,o.innerHTML.length)){o.setAttribute("data-styles","");const v=(n=h.$nonce$)!=null?n:N(m);v!=null&&o.setAttribute("nonce",v),$.insertBefore(o,a?a.nextSibling:$.firstChild)}u=!1,c.length?c.map(v=>v.connectedCallback()):h.jmp(()=>f=setTimeout(fe,30)),s()};exports.Host=te;exports.bootstrapLazy=st;exports.getElement=Ie;exports.h=ee;exports.promiseResolve=Z;exports.registerInstance=me;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { r as n, h as s, H as a, g as r } from "./index-97d17652-C616IYj2.js";
|
2
|
+
const o = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;transition:opacity 0.5s ease-in-out}", d = o, h = class {
|
3
|
+
constructor(e) {
|
4
|
+
n(this, e), this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.styles = void 0, this.detectDistance = "200px", this.imgLoaded = !1, this.shouldLoad = !1;
|
5
|
+
}
|
6
|
+
handleSrc() {
|
7
|
+
if (!this.shouldLoad)
|
8
|
+
return;
|
9
|
+
const e = new Image();
|
10
|
+
e.onload = () => {
|
11
|
+
this.image && (this.image.src = this.src, this.imgLoaded = !0, e.onload = null);
|
12
|
+
}, e.src = this.src;
|
13
|
+
}
|
14
|
+
componentDidLoad() {
|
15
|
+
"IntersectionObserver" in window ? (this.el.__uxComponent = this, window.EMUxObserver || (window.EMUxObserver = new IntersectionObserver((e) => {
|
16
|
+
e.forEach((i) => {
|
17
|
+
if (i.isIntersecting) {
|
18
|
+
const t = i.target.__uxComponent;
|
19
|
+
t && (t.shouldLoad = !0, t.handleSrc()), window.EMUxObserver.unobserve(i.target);
|
20
|
+
}
|
21
|
+
});
|
22
|
+
}, { rootMargin: this.detectDistance })), window.EMUxObserver.observe(this.el)) : (this.shouldLoad = !0, this.handleSrc());
|
23
|
+
}
|
24
|
+
render() {
|
25
|
+
return s(a, { key: "f506ba73852f257ad80bf59ca177d2065a5f365e", class: "HostContainer" }, !this.imgLoaded && s("ui-skeleton", { key: "564ebfab701f827ddc2debccb7615926dbc9e876", class: "UiContainer", structure: "image", width: "100%", height: "100%" }), s("img", { key: "2188ca4494c10587f064acc5459ffc468948f497", ref: (e) => this.image = e, src: this.shouldLoad ? this.src : void 0, onLoad: () => this.imgLoaded = !0, style: this.styles, class: `UiContainer ${this.imgLoaded ? "Visible" : "Hidden"}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" }));
|
26
|
+
}
|
27
|
+
get el() {
|
28
|
+
return r(this);
|
29
|
+
}
|
30
|
+
static get watchers() {
|
31
|
+
return {
|
32
|
+
src: ["handleSrc"]
|
33
|
+
};
|
34
|
+
}
|
35
|
+
};
|
36
|
+
h.style = d;
|
37
|
+
export {
|
38
|
+
h as U
|
39
|
+
};
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { r as n, h as s, H as a, g as r } from "./index-97d17652-B8yQdy7J.js";
|
2
|
+
const o = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;transition:opacity 0.5s ease-in-out}", d = o, h = class {
|
3
|
+
constructor(e) {
|
4
|
+
n(this, e), this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.styles = void 0, this.detectDistance = "200px", this.imgLoaded = !1, this.shouldLoad = !1;
|
5
|
+
}
|
6
|
+
handleSrc() {
|
7
|
+
if (!this.shouldLoad)
|
8
|
+
return;
|
9
|
+
const e = new Image();
|
10
|
+
e.onload = () => {
|
11
|
+
this.image && (this.image.src = this.src, this.imgLoaded = !0, e.onload = null);
|
12
|
+
}, e.src = this.src;
|
13
|
+
}
|
14
|
+
componentDidLoad() {
|
15
|
+
"IntersectionObserver" in window ? (this.el.__uxComponent = this, window.EMUxObserver || (window.EMUxObserver = new IntersectionObserver((e) => {
|
16
|
+
e.forEach((i) => {
|
17
|
+
if (i.isIntersecting) {
|
18
|
+
const t = i.target.__uxComponent;
|
19
|
+
t && (t.shouldLoad = !0, t.handleSrc()), window.EMUxObserver.unobserve(i.target);
|
20
|
+
}
|
21
|
+
});
|
22
|
+
}, { rootMargin: this.detectDistance })), window.EMUxObserver.observe(this.el)) : (this.shouldLoad = !0, this.handleSrc());
|
23
|
+
}
|
24
|
+
render() {
|
25
|
+
return s(a, { key: "f506ba73852f257ad80bf59ca177d2065a5f365e", class: "HostContainer" }, !this.imgLoaded && s("ui-skeleton", { key: "564ebfab701f827ddc2debccb7615926dbc9e876", class: "UiContainer", structure: "image", width: "100%", height: "100%" }), s("img", { key: "2188ca4494c10587f064acc5459ffc468948f497", ref: (e) => this.image = e, src: this.shouldLoad ? this.src : void 0, onLoad: () => this.imgLoaded = !0, style: this.styles, class: `UiContainer ${this.imgLoaded ? "Visible" : "Hidden"}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" }));
|
26
|
+
}
|
27
|
+
get el() {
|
28
|
+
return r(this);
|
29
|
+
}
|
30
|
+
static get watchers() {
|
31
|
+
return {
|
32
|
+
src: ["handleSrc"]
|
33
|
+
};
|
34
|
+
}
|
35
|
+
};
|
36
|
+
h.style = d;
|
37
|
+
export {
|
38
|
+
h as U
|
39
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const i=require("./index-97d17652-C9Ph2JiE.cjs"),a=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;transition:opacity 0.5s ease-in-out}",d=a,n=class{constructor(e){i.registerInstance(this,e),this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.imgLoaded=!1,this.shouldLoad=!1}handleSrc(){if(!this.shouldLoad)return;const e=new Image;e.onload=()=>{this.image&&(this.image.src=this.src,this.imgLoaded=!0,e.onload=null)},e.src=this.src}componentDidLoad(){"IntersectionObserver"in window?(this.el.__uxComponent=this,window.EMUxObserver||(window.EMUxObserver=new IntersectionObserver(e=>{e.forEach(t=>{if(t.isIntersecting){const s=t.target.__uxComponent;s&&(s.shouldLoad=!0,s.handleSrc()),window.EMUxObserver.unobserve(t.target)}})},{rootMargin:this.detectDistance})),window.EMUxObserver.observe(this.el)):(this.shouldLoad=!0,this.handleSrc())}render(){return i.h(i.Host,{key:"f506ba73852f257ad80bf59ca177d2065a5f365e",class:"HostContainer"},!this.imgLoaded&&i.h("ui-skeleton",{key:"564ebfab701f827ddc2debccb7615926dbc9e876",class:"UiContainer",structure:"image",width:"100%",height:"100%"}),i.h("img",{key:"2188ca4494c10587f064acc5459ffc468948f497",ref:e=>this.image=e,src:this.shouldLoad?this.src:void 0,onLoad:()=>this.imgLoaded=!0,style:this.styles,class:`UiContainer ${this.imgLoaded?"Visible":"Hidden"}`,alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}get el(){return i.getElement(this)}static get watchers(){return{src:["handleSrc"]}}};n.style=d;exports.UiImage=n;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";var s=(r,t,i)=>new Promise((l,c)=>{var d=e=>{try{o(i.next(e))}catch(n){c(n)}},m=e=>{try{o(i.throw(e))}catch(n){c(n)}},o=e=>e.done?l(e.value):Promise.resolve(e.value).then(d,m);o((i=i.apply(r,t)).next())});const u=require("./index-97d17652-C9Ph2JiE.cjs"),g=require("./app-globals-0f993ce5-sCt45RkC.cjs");var a=typeof document!="undefined"?document.currentScript:null,h=()=>{const r=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:a&&a.tagName.toUpperCase()==="SCRIPT"&&a.src||new URL("stencil/ui-image-Bz0nQwNJ.cjs",document.baseURI).href,t={};return r!==""&&(t.resourcesUrl=new URL(".",r).href),u.promiseResolve(t)};h().then(r=>s(exports,null,function*(){return yield g.globalScripts(),u.bootstrapLazy([["ui-image_2",[[0,"ui-image",{src:[1],width:[1],height:[1],alt:[1],styles:[8],detectDistance:[1,"detect-distance"],imgLoaded:[32],shouldLoad:[32]},null,{src:["handleSrc"]}],[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[2,"border-radius"],marginBottom:[2,"margin-bottom"],marginTop:[2,"margin-top"],marginLeft:[2,"margin-left"],marginRight:[2,"margin-right"],animation:[4],rows:[2],size:[1],color:[1],primaryColor:[1,"primary-color"],secondaryColor:[1,"secondary-color"]},null,{structure:["handleStructureChange"]}]]]],r)}));
|