@everymatrix/cashier-method-details 1.77.5 → 1.77.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/components/{CashierError-DohAsTU9.js → CashierError-DF-u83bh.js} +1 -1
  2. package/components/{CashierError-XM-zLW-s.cjs → CashierError-DGbaIkKw.cjs} +1 -1
  3. package/components/{CashierError-BsBgFLdZ.js → CashierError-DPlMj_aG.js} +1 -1
  4. package/components/{CashierMethodDetails-7IMoMf7C.cjs → CashierMethodDetails-DCeEk9ge.cjs} +2 -2
  5. package/components/{CashierMethodDetails-DrvIMHge.js → CashierMethodDetails-DnmwydeN.js} +6 -6
  6. package/components/{CashierMethodDetails-BO133hRe.js → CashierMethodDetails-zD3MMp3U.js} +6 -6
  7. package/components/{CashierModal-B8mAYtg1.cjs → CashierModal-BRkWSAyS.cjs} +1 -1
  8. package/components/{CashierModal-DU_HOWO6.js → CashierModal-C8eqkt3x.js} +1 -1
  9. package/components/{CashierModal-CsvX6JLM.js → CashierModal-D2J1GlPr.js} +1 -1
  10. package/components/{CashierNotifications-BOr23XH6.cjs → CashierNotifications-B6xUAhsL.cjs} +1 -1
  11. package/components/{CashierNotifications-ElwLvwt1.js → CashierNotifications-BaYbigj9.js} +1 -1
  12. package/components/{CashierNotifications-ZLegMjG5.js → CashierNotifications-CRzI0zZM.js} +1 -1
  13. package/components/{CashierReceiptPage-CuY_gAMZ.js → CashierReceiptPage-D2d0fSmj.js} +3 -3
  14. package/components/{CashierReceiptPage-BeufADrl.cjs → CashierReceiptPage-DEynYfD5.cjs} +1 -1
  15. package/components/{CashierReceiptPage-DWNUFP3w.js → CashierReceiptPage-EUJ7lIUj.js} +3 -3
  16. package/components/{CashierSpinner-B6l8-0Zq.js → CashierSpinner-CNRWXQEh.js} +1 -1
  17. package/components/{CashierSpinner-KmXh-4G3.cjs → CashierSpinner-DQIeaO2S.cjs} +1 -1
  18. package/components/{CashierSpinner-BCoFGxGC.js → CashierSpinner-DTGXsOoU.js} +1 -1
  19. package/es2015/cashier-method-details.cjs +1 -1
  20. package/es2015/cashier-method-details.js +1 -1
  21. package/esnext/cashier-method-details.js +1 -1
  22. package/package.json +1 -1
  23. package/stencil/index-256b7d4e-7jcaQ7rC.js +543 -0
  24. package/stencil/index-256b7d4e-BnoVkrXr.cjs +1 -0
  25. package/stencil/index-256b7d4e-CSg5Fmgt.js +559 -0
  26. package/stencil/ui-image-8975d115-BIwRmPA-.cjs +1 -0
  27. package/stencil/ui-image-8975d115-C8pJTCfZ.js +71 -0
  28. package/stencil/ui-image-8975d115-DxO6YS6C.js +71 -0
  29. package/stencil/{ui-image-C0Jfm_O4.js → ui-image-Bn9a7Spu.js} +1 -1
  30. package/stencil/{ui-image-DmRWEjrp.js → ui-image-CfDP8dmz.js} +1 -1
  31. package/stencil/{ui-image-EfKW3THf.cjs → ui-image-DB-cMaV6.cjs} +1 -1
  32. package/stencil/{ui-image_2-CLk629jW.cjs → ui-image_2-CXGY1IY3.cjs} +1 -1
  33. package/stencil/{ui-image_2-VgK3B8gQ.js → ui-image_2-DwuycSdC.js} +2 -2
  34. package/stencil/{ui-image_2-B21W_djK.js → ui-image_2-rhY_9uoo.js} +2 -2
  35. package/stencil/index-242ac81a-BqeIndhr.js +0 -554
  36. package/stencil/index-242ac81a-CI4JxPRf.js +0 -538
  37. package/stencil/index-242ac81a-CjjM4VND.cjs +0 -1
  38. package/stencil/ui-image-2ff23cd5-BHGIWJop.cjs +0 -1
  39. package/stencil/ui-image-2ff23cd5-D0rXudCW.js +0 -86
  40. package/stencil/ui-image-2ff23cd5-DCLQ0SIO.js +0 -86
@@ -0,0 +1,559 @@
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 ve = "ui-image", ge = (
18
+ /* ui-image */
19
+ { hydratedSelectorName: "hydrated" }
20
+ );
21
+ var pe = Object.defineProperty, he = (e, t) => {
22
+ for (var n in t)
23
+ pe(e, n, { get: t[n], enumerable: !0 });
24
+ }, B = /* @__PURE__ */ new WeakMap(), E = (e) => B.get(e), tt = (e, t) => B.set(t.$lazyInstance$ = e, t), ye = (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"] = [], B.set(e, n);
32
+ }, D = (e, t) => t in e, k = (e, t) => (0, console.error)(e, t), w = /* @__PURE__ */ new Map(), me = (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-DwuycSdC.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(), Se = "{visibility:hidden}.hydrated{visibility:inherit}", Z = "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
+ }, Ee = (e) => Promise.resolve(e), ke = /* @__PURE__ */ (() => {
65
+ try {
66
+ return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
67
+ } catch (e) {
68
+ }
69
+ return !1;
70
+ })(), I = !1, W = [], R = [], be = (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(R), (I = W.length > 0) && p.raf(U);
82
+ }, C = (e) => Ee().then(e), xe = /* @__PURE__ */ be(R), G = {}, q = (e) => (e = typeof e, e === "object" || e === "function");
83
+ function N(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 Pe = {};
88
+ he(Pe, {
89
+ err: () => V,
90
+ map: () => Te,
91
+ ok: () => H,
92
+ unwrap: () => _e,
93
+ unwrapErr: () => Ae
94
+ });
95
+ var H = (e) => ({
96
+ isOk: !0,
97
+ isErr: !1,
98
+ value: e
99
+ }), V = (e) => ({
100
+ isOk: !1,
101
+ isErr: !0,
102
+ value: e
103
+ });
104
+ function Te(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 V(n);
112
+ }
113
+ throw "should never get here";
114
+ }
115
+ var _e = (e) => {
116
+ if (e.isOk)
117
+ return e.value;
118
+ throw e.value;
119
+ }, Ae = (e) => {
120
+ if (e.isErr)
121
+ return e.value;
122
+ throw e.value;
123
+ }, S = (e, t = "") => () => {
124
+ }, Le = (e, t) => () => {
125
+ }, je = (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 ? z(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 = z(e, null);
139
+ return o.$attrs$ = t, $.length > 0 && (o.$children$ = $), o.$key$ = r, o;
140
+ }, z = (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
+ }, Oe = {}, we = (e) => e && e.$tag$ === Oe, Ie = (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$, Ue = (e, t, n) => {
150
+ const s = p.ce(t, n);
151
+ return e.dispatchEvent(s), s;
152
+ }, X = /* @__PURE__ */ new WeakMap(), He = (e, t, n) => {
153
+ let s = A.get(e);
154
+ ke && n ? (s = s || new CSSStyleSheet(), typeof s == "string" ? s = t : s.replaceSync(t)) : s = t, A.set(e, s);
155
+ }, ze = (e, t, n) => {
156
+ var s;
157
+ const r = ee(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 : N(m);
166
+ a != null && $.setAttribute("nonce", a), e.insertBefore($, e.querySelector("link"));
167
+ }
168
+ t.$flags$ & 4 && ($.innerHTML += Z), l && l.add(r);
169
+ }
170
+ } else
171
+ e.adoptedStyleSheets.includes(i) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, i]);
172
+ return r;
173
+ }, Be = (e) => {
174
+ const t = e.$cmpMeta$, n = e.$hostElement$, s = S("attachStyles", t.$tagName$);
175
+ ze(
176
+ n.getRootNode(),
177
+ t
178
+ ), s();
179
+ }, ee = (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(te);
196
+ t = t.replace(qe, ""), 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) && !r)
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
+ }, Ce = /\s/, J = (e) => e ? e.split(Ce) : [], te = "Capture", qe = new RegExp(te + "$"), se = (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 ne, re = !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
+ ), se(null, r, re), r.$children$)
237
+ for (i = 0; i < r.$children$.length; ++i)
238
+ $ = L(e, r, i), $ && l.appendChild($);
239
+ return l["s-hn"] = ne, l;
240
+ }, le = (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
+ }, ae = (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
+ ie(r), i && i.remove();
250
+ }
251
+ }
252
+ }, Fe = (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 ? le(
280
+ e,
281
+ s[u + 1] == null ? null : s[u + 1].$elm$,
282
+ n,
283
+ s,
284
+ l,
285
+ u
286
+ ) : l > u && ae(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 ? (se(e, t, re), r !== null && i !== null ? Fe(s, r, t, i, n) : i !== null ? (e.$text$ !== null && (s.textContent = ""), le(s, null, t, i, 0, i.length - 1)) : r !== null && ae(r, 0, r.length - 1)) : e.$text$ !== l && (s.data = l);
290
+ }, ie = (e) => {
291
+ e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(ie);
292
+ }, _ = (e, t, n) => e == null ? void 0 : e.insertBefore(t, n), De = (e, t, n = !1) => {
293
+ const s = e.$hostElement$, r = e.$vnode$ || z(null, null), i = we(t) ? t : je(null, null, t);
294
+ if (ne = 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
+ }, $e = (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 $e(e, e.$ancestorComponent$), xe(() => We(e, t));
306
+ }, We = (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(), Me(i, () => Xe(e, r, t));
314
+ }, Me = (e, t) => Ge(e) ? e.then(t).catch((n) => {
315
+ console.error(n), t();
316
+ }) : t(), Ge = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Xe = (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 && Be(e);
320
+ const $ = S("render", e.$cmpMeta$.$tagName$);
321
+ Ye(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 = () => Je(e);
324
+ a.length === 0 ? o() : (Promise.all(a).then(o), e.$flags$ |= 4, a.length = 0);
325
+ }
326
+ }), Ye = (e, t, n, s) => {
327
+ try {
328
+ t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, De(e, t, s);
329
+ } catch (r) {
330
+ k(r, e.$hostElement$);
331
+ }
332
+ return null;
333
+ }, Je = (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, fe(n), ce(r, "componentDidLoad"), s(), e.$onReadyResolve$(n), i || oe()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && C(() => F(e, !1)), e.$flags$ &= -517;
336
+ }, oe = (e) => {
337
+ fe(m.documentElement), C(() => Ue(j, "appload", { detail: { namespace: ve } }));
338
+ }, ce = (e, t, n) => {
339
+ if (e && e[t])
340
+ try {
341
+ return e[t](n);
342
+ } catch (s) {
343
+ k(s);
344
+ }
345
+ }, fe = (e) => {
346
+ var t;
347
+ return e.classList.add((t = ge.hydratedSelectorName) != null ? t : "hydrated");
348
+ }, Ke = (e, t) => E(e).$instanceValues$.get(t), Qe = (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 = Ie(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
+ }, ue = (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 Ke(this, $);
380
+ },
381
+ set(o) {
382
+ Qe(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
+ }, Ze = (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 = me(n);
431
+ if (a && "then" in a) {
432
+ const c = Le();
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, ue(
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 = ee(n);
464
+ if (!A.has(o)) {
465
+ const c = S("registerStyles", n.$tagName$);
466
+ He(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
+ }), Re = (e) => {
473
+ }, Ne = (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(() => Re());
478
+ else {
479
+ t.$flags$ |= 1;
480
+ {
481
+ let r = e;
482
+ for (; r = r.parentNode || r.host; )
483
+ if (r["s-p"]) {
484
+ $e(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
+ }), Ze(e, t, n);
494
+ }
495
+ s();
496
+ }
497
+ }, Q = (e) => {
498
+ ce(e, "disconnectedCallback");
499
+ }, Ve = (e) => P(void 0, null, function* () {
500
+ if (!(p.$flags$ & 1)) {
501
+ const t = E(e);
502
+ t != null && t.$lazyInstance$ ? Q(t.$lazyInstance$) : t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => Q(t.$lazyInstance$));
503
+ }
504
+ }), nt = (e, t = {}) => {
505
+ var n;
506
+ const s = S(), r = [], i = t.exclude || [], l = j.customElements, $ = m.head, a = /* @__PURE__ */ $.querySelector("meta[charset]"), o = /* @__PURE__ */ m.createElement("style"), c = [];
507
+ let f, u = !0;
508
+ Object.assign(p, t), p.$resourcesUrl$ = new URL(t.resourcesUrl || "./", m.baseURI).href;
509
+ let d = !1;
510
+ if (e.map((v) => {
511
+ v[1].map((g) => {
512
+ var h;
513
+ const y = {
514
+ $flags$: g[0],
515
+ $tagName$: g[1],
516
+ $members$: g[2],
517
+ $listeners$: g[3]
518
+ };
519
+ y.$flags$ & 4 && (d = !0), y.$members$ = g[2], y.$watchers$ = (h = g[4]) != null ? h : {};
520
+ const x = y.$tagName$, de = class extends HTMLElement {
521
+ // StencilLazyHost
522
+ constructor(O) {
523
+ super(O), this.hasRegisteredEventListeners = !1, O = this, ye(O, y);
524
+ }
525
+ connectedCallback() {
526
+ E(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), f && (clearTimeout(f), f = null), u ? c.push(this) : p.jmp(() => Ne(this));
527
+ }
528
+ disconnectedCallback() {
529
+ p.jmp(() => Ve(this));
530
+ }
531
+ componentOnReady() {
532
+ return E(this).$onReadyPromise$;
533
+ }
534
+ };
535
+ y.$lazyBundleId$ = v[0], !i.includes(x) && !l.get(x) && (r.push(x), l.define(
536
+ x,
537
+ ue(
538
+ de,
539
+ y,
540
+ 1
541
+ /* isElementConstructor */
542
+ )
543
+ ));
544
+ });
545
+ }), r.length > 0 && (d && (o.textContent += Z), o.textContent += r.sort() + Se, o.innerHTML.length)) {
546
+ o.setAttribute("data-styles", "");
547
+ const v = (n = p.$nonce$) != null ? n : N(m);
548
+ v != null && o.setAttribute("nonce", v), $.insertBefore(o, a ? a.nextSibling : $.firstChild);
549
+ }
550
+ u = !1, c.length ? c.map((v) => v.connectedCallback()) : p.jmp(() => f = setTimeout(oe, 30)), s();
551
+ };
552
+ export {
553
+ Oe as H,
554
+ nt as b,
555
+ st as g,
556
+ je as h,
557
+ Ee as p,
558
+ tt as r
559
+ };
@@ -0,0 +1 @@
1
+ "use strict";const i=require("./index-256b7d4e-BnoVkrXr.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._onLoad=()=>{this.imgLoaded=!0},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(),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.imgEl&&(this.imgEl.src="")}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}beginLoad(){this.hasStarted||this.imgEl&&this.src&&(this.hasStarted=!0,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,onLoad:this._onLoad,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,71 @@
1
+ import { r as n, h as t, H as r, g as a } from "./index-256b7d4e-CSg5Fmgt.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(i) {
4
+ n(this, i), this.hasStarted = !1, this._onLoad = () => {
5
+ this.imgLoaded = !0;
6
+ }, 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;
7
+ }
8
+ onSrcChange() {
9
+ this.loading !== "eager" && (this.imgLoaded = !1, this.hasStarted = !1, (typeof window == "undefined" || !("IntersectionObserver" in window)) && this.beginLoad());
10
+ }
11
+ onLoadingChange(i, e) {
12
+ i !== e && (this.cleanupObserver(), i === "eager" ? (this.imgEl && this.src && (this.imgEl.src = this.src), this.hasStarted = !0) : (this.imgLoaded = !1, this.hasStarted = !1, this.setupObserver()));
13
+ }
14
+ componentDidLoad() {
15
+ this.loading !== "eager" && this.setupObserver();
16
+ }
17
+ disconnectedCallback() {
18
+ this.cleanupObserver(), this.imgEl && (this.imgEl.src = "");
19
+ }
20
+ canUseIO() {
21
+ return typeof window != "undefined" && "IntersectionObserver" in window;
22
+ }
23
+ setupObserver() {
24
+ if (this.loading !== "eager") {
25
+ if (!this.canUseIO()) {
26
+ this.beginLoad();
27
+ return;
28
+ }
29
+ this.io = new IntersectionObserver((i) => {
30
+ var e;
31
+ for (const s of i)
32
+ if (s.isIntersecting) {
33
+ this.beginLoad(), (e = this.io) === null || e === void 0 || e.unobserve(s.target), this.cleanupObserver();
34
+ break;
35
+ }
36
+ }, { root: null, rootMargin: this.detectDistance, threshold: 0 }), this.io.observe(this.el);
37
+ }
38
+ }
39
+ cleanupObserver() {
40
+ var i;
41
+ (i = this.io) === null || i === void 0 || i.disconnect(), this.io = void 0;
42
+ }
43
+ beginLoad() {
44
+ this.hasStarted || this.imgEl && this.src && (this.hasStarted = !0, this.imgEl.src = this.src, this.imgEl.complete && this.imgEl.naturalWidth > 0 && (this.imgLoaded = !0));
45
+ }
46
+ get showSkeleton() {
47
+ return this.loading !== "eager" && !this.imgLoaded;
48
+ }
49
+ renderEager() {
50
+ 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" }));
51
+ }
52
+ renderLazy() {
53
+ 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: (i) => this.imgEl = i, src: void 0, decoding: "async", style: this.styles, onLoad: this._onLoad, class: `UiContainer ${this.imgLoaded ? "Visible" : "Hidden"}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" }));
54
+ }
55
+ render() {
56
+ return this.loading === "eager" ? this.renderEager() : this.renderLazy();
57
+ }
58
+ get el() {
59
+ return a(this);
60
+ }
61
+ static get watchers() {
62
+ return {
63
+ src: ["onSrcChange"],
64
+ loading: ["onLoadingChange"]
65
+ };
66
+ }
67
+ };
68
+ d.style = o;
69
+ export {
70
+ d as U
71
+ };