@everymatrix/cashier-method-details 1.64.7 → 1.65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierConfirmModal-3pkCHAVZ.js → CashierConfirmModal-BzyMG3UR.js} +33 -33
- package/components/{CashierConfirmModal-CNzEOcOZ.js → CashierConfirmModal-_hdnB5XT.js} +33 -33
- package/components/{CashierError-Bisyjt8z.js → CashierError-C1ZcvUYr.js} +618 -622
- package/components/{CashierError-DV-HLY8d.js → CashierError-CBebkrdZ.js} +617 -621
- package/components/{CashierError-GVInnLO0.cjs → CashierError-qXbd3T4d.cjs} +16 -3
- package/components/{CashierHeader-Dpm_m2-F.cjs → CashierHeader-BbnypQYS.cjs} +1 -1
- package/components/{CashierHeader-BmFLcvOn.js → CashierHeader-CXnHNYfs.js} +38 -38
- package/components/{CashierHeader-D5rWgCkR.js → CashierHeader-SSuALKdn.js} +38 -38
- package/components/{CashierIframeRedirect-BeJ3BjdP.js → CashierIframeRedirect-BPh132E4.js} +32 -32
- package/components/{CashierIframeRedirect-UyIC5nCY.js → CashierIframeRedirect-BeIzPkcY.js} +30 -30
- package/components/{CashierIframeRedirect-OIn1YaZR.cjs → CashierIframeRedirect-CiJvxeWK.cjs} +1 -1
- package/components/{CashierMethodDetails-CbIHNNA7.js → CashierMethodDetails-BdPcAVmB.js} +54 -54
- package/components/{CashierMethodDetails-rb98ADfQ.js → CashierMethodDetails-CJosBjV2.js} +54 -54
- package/components/{CashierMethodDetails-HB5kpaqd.cjs → CashierMethodDetails-CMWNeKZq.cjs} +1 -1
- package/components/{CashierModal-PGQGrAgY.js → CashierModal-B2DUTbzl.js} +34 -34
- package/components/{CashierModal-Dv-7ZIuz.js → CashierModal-cAadEtV9.js} +34 -34
- package/components/{CashierNotifications-BMYdcdkg.js → CashierNotifications-BqrU3g7B.js} +19 -19
- package/components/{CashierNotifications-Dy0g_QWG.js → CashierNotifications-sCssNp8Z.js} +19 -19
- package/components/{CashierReceiptPage-CEUHu1XU.js → CashierReceiptPage-24Lr_kLo.js} +28 -28
- package/components/{CashierReceiptPage-DQdoyQtR.cjs → CashierReceiptPage-BdonZ5wU.cjs} +1 -1
- package/components/{CashierReceiptPage-Cy6AVN3x.js → CashierReceiptPage-Ctdksnjs.js} +28 -28
- package/components/CashierSpinner-BdCzICuN.cjs +1 -0
- package/components/CashierSpinner-FjymFjBK.js +71 -0
- package/components/CashierSpinner-oZ2qOf5M.js +71 -0
- 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-BzQXAkmg.js +558 -0
- package/stencil/index-97d17652-DYGS0vqJ.cjs +1 -0
- package/stencil/index-97d17652-mbOyENH9.js +542 -0
- package/stencil/{ui-image-CQQDA5b0.js → ui-image-BmTbGz5h.js} +1 -1
- package/stencil/{ui-image-CmwNU-jf.js → ui-image-CFddgpOe.js} +1 -1
- package/stencil/{ui-image-CMb1eK44.cjs → ui-image-DzutkFSv.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-Cf9Vq5pI.js → ui-image-b7b48fe5-7wF4sIlr.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DCck2kk1.cjs → ui-image-b7b48fe5-DQE3WxuL.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-V9vp4faA.js → ui-image-b7b48fe5-kIlLPkYB.js} +1 -1
- package/stencil/{ui-image_2-YkYxLKu7.cjs → ui-image_2-CJHJWEhi.cjs} +1 -1
- package/stencil/{ui-image_2-B56t6kXT.js → ui-image_2-Db7N7hzA.js} +2 -2
- package/stencil/{ui-image_2-BncuYpLi.js → ui-image_2-oohpKuRS.js} +2 -2
- package/components/CashierSpinner-Cxbw-HyX.cjs +0 -1
- package/components/CashierSpinner-D30EfqMz.js +0 -71
- package/components/CashierSpinner-Dq2vgm_x.js +0 -71
- package/stencil/index-97d17652-BEnqZAxL.js +0 -558
- package/stencil/index-97d17652-D5_8Vwfn.cjs +0 -1
- package/stencil/index-97d17652-WK_DbPS4.js +0 -542
@@ -0,0 +1,542 @@
|
|
1
|
+
const de = "ui-image", I = (
|
2
|
+
/* ui-image */
|
3
|
+
{ allRenderFn: !0, appendChildSlotFix: !1, asyncLoading: !0, asyncQueue: !1, attachStyles: !0, cloneNodeFix: !1, cmpDidLoad: !0, cmpDidRender: !1, cmpDidUnload: !1, cmpDidUpdate: !1, cmpShouldUpdate: !1, cmpWillLoad: !1, cmpWillRender: !1, cmpWillUpdate: !1, connectedCallback: !1, constructableCSS: !0, cssAnnotations: !0, devTools: !1, disconnectedCallback: !1, element: !1, event: !1, experimentalScopedSlotChanges: !1, experimentalSlotFixes: !1, formAssociated: !1, hasRenderFn: !0, hostListener: !1, hostListenerTarget: !1, hostListenerTargetBody: !1, hostListenerTargetDocument: !1, hostListenerTargetParent: !1, hostListenerTargetWindow: !1, hotModuleReplacement: !1, hydrateClientSide: !1, hydrateServerSide: !1, hydratedAttribute: !1, hydratedClass: !0, hydratedSelectorName: "hydrated", initializeNextTick: !1, invisiblePrehydration: !0, isDebug: !1, isDev: !1, isTesting: !1, lazyLoad: !0, lifecycle: !0, lifecycleDOMEvents: !1, member: !0, method: !1, mode: !1, observeAttribute: !0, profile: !1, prop: !0, propBoolean: !0, propMutable: !1, propNumber: !0, propString: !0, reflect: !1, scoped: !1, scopedSlotTextContentFix: !1, scriptDataOpts: !1, shadowDelegatesFocus: !1, shadowDom: !1, slot: !1, slotChildNodesFix: !1, slotRelocation: !1, state: !0, style: !0, svg: !1, taskQueue: !0, transformTagName: !1, updatable: !0, vdomAttribute: !0, vdomClass: !0, vdomFunctional: !1, vdomKey: !0, vdomListener: !0, vdomPropOrAttr: !0, vdomRef: !0, vdomRender: !0, vdomStyle: !0, vdomText: !0, vdomXlink: !1, watchCallback: !0 }
|
4
|
+
);
|
5
|
+
var pe = Object.defineProperty, ve = (e, t) => {
|
6
|
+
for (var n in t)
|
7
|
+
pe(e, n, { get: t[n], enumerable: !0 });
|
8
|
+
}, B = /* @__PURE__ */ new WeakMap(), E = (e) => B.get(e), tt = (e, t) => B.set(t.$lazyInstance$ = e, t), he = (e, t) => {
|
9
|
+
const n = {
|
10
|
+
$flags$: 0,
|
11
|
+
$hostElement$: e,
|
12
|
+
$cmpMeta$: t,
|
13
|
+
$instanceValues$: /* @__PURE__ */ new Map()
|
14
|
+
};
|
15
|
+
return n.$onReadyPromise$ = new Promise((s) => n.$onReadyResolve$ = s), e["s-p"] = [], e["s-rc"] = [], B.set(e, n);
|
16
|
+
}, q = (e, t) => t in e, k = (e, t) => (0, console.error)(e, t), O = /* @__PURE__ */ new Map(), ge = (e, t, n) => {
|
17
|
+
const s = e.$tagName$.replace(/-/g, "_"), r = e.$lazyBundleId$;
|
18
|
+
if (!r)
|
19
|
+
return;
|
20
|
+
const a = O.get(r);
|
21
|
+
if (a)
|
22
|
+
return a[s];
|
23
|
+
{
|
24
|
+
const l = (o) => (O.set(r, o), o[s]);
|
25
|
+
switch (r) {
|
26
|
+
case "ui-image_2":
|
27
|
+
return import(
|
28
|
+
/* webpackMode: "lazy" */
|
29
|
+
"./ui-image_2-Db7N7hzA.js"
|
30
|
+
).then(l, k);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
return import(
|
34
|
+
/* @vite-ignore */
|
35
|
+
/* webpackInclude: /\.entry\.js$/ */
|
36
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
37
|
+
/* webpackMode: "lazy" */
|
38
|
+
`./${r}.entry.js`
|
39
|
+
).then((l) => (O.set(r, l), l[s]), k);
|
40
|
+
}, L = /* @__PURE__ */ new Map(), ye = "{visibility:hidden}.hydrated{visibility:inherit}", J = "slot-fb{display:contents}slot-fb[hidden]{display:none}", w = typeof window < "u" ? window : {}, m = w.document || { head: {} }, h = {
|
41
|
+
$flags$: 0,
|
42
|
+
$resourcesUrl$: "",
|
43
|
+
jmp: (e) => e(),
|
44
|
+
raf: (e) => requestAnimationFrame(e),
|
45
|
+
ael: (e, t, n, s) => e.addEventListener(t, n, s),
|
46
|
+
rel: (e, t, n, s) => e.removeEventListener(t, n, s),
|
47
|
+
ce: (e, t) => new CustomEvent(e, t)
|
48
|
+
}, me = I.shadowDom, Se = (e) => Promise.resolve(e), Ee = /* @__PURE__ */ (() => {
|
49
|
+
try {
|
50
|
+
return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
|
51
|
+
} catch {
|
52
|
+
}
|
53
|
+
return !1;
|
54
|
+
})(), C = !1, W = [], K = [], ke = (e, t) => (n) => {
|
55
|
+
e.push(n), C || (C = !0, h.$flags$ & 4 ? F(j) : h.raf(j));
|
56
|
+
}, M = (e) => {
|
57
|
+
for (let t = 0; t < e.length; t++)
|
58
|
+
try {
|
59
|
+
e[t](performance.now());
|
60
|
+
} catch (n) {
|
61
|
+
k(n);
|
62
|
+
}
|
63
|
+
e.length = 0;
|
64
|
+
}, j = () => {
|
65
|
+
M(W), M(K), (C = W.length > 0) && h.raf(j);
|
66
|
+
}, F = (e) => Se().then(e), be = /* @__PURE__ */ ke(K), R = {}, H = (e) => (e = typeof e, e === "object" || e === "function");
|
67
|
+
function Z(e) {
|
68
|
+
var t, n, s;
|
69
|
+
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;
|
70
|
+
}
|
71
|
+
var xe = {};
|
72
|
+
ve(xe, {
|
73
|
+
err: () => N,
|
74
|
+
map: () => Te,
|
75
|
+
ok: () => U,
|
76
|
+
unwrap: () => Pe,
|
77
|
+
unwrapErr: () => Le
|
78
|
+
});
|
79
|
+
var U = (e) => ({
|
80
|
+
isOk: !0,
|
81
|
+
isErr: !1,
|
82
|
+
value: e
|
83
|
+
}), N = (e) => ({
|
84
|
+
isOk: !1,
|
85
|
+
isErr: !0,
|
86
|
+
value: e
|
87
|
+
});
|
88
|
+
function Te(e, t) {
|
89
|
+
if (e.isOk) {
|
90
|
+
const n = t(e.value);
|
91
|
+
return n instanceof Promise ? n.then((s) => U(s)) : U(n);
|
92
|
+
}
|
93
|
+
if (e.isErr) {
|
94
|
+
const n = e.value;
|
95
|
+
return N(n);
|
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
|
+
}, Le = (e) => {
|
104
|
+
if (e.isErr)
|
105
|
+
return e.value;
|
106
|
+
throw e.value;
|
107
|
+
}, S = (e, t = "") => () => {
|
108
|
+
}, Ae = (e, t) => () => {
|
109
|
+
}, we = (e, t, ...n) => {
|
110
|
+
let s = null, r = null, a = !1, l = !1;
|
111
|
+
const o = [], i = ($) => {
|
112
|
+
for (let f = 0; f < $.length; f++)
|
113
|
+
s = $[f], Array.isArray(s) ? i(s) : s != null && typeof s != "boolean" && ((a = typeof e != "function" && !H(s)) && (s = String(s)), a && l ? o[o.length - 1].$text$ += s : o.push(a ? D(null, s) : s), l = a);
|
114
|
+
};
|
115
|
+
if (i(n), t) {
|
116
|
+
t.key && (r = t.key);
|
117
|
+
{
|
118
|
+
const $ = t.className || t.class;
|
119
|
+
$ && (t.class = typeof $ != "object" ? $ : Object.keys($).filter((f) => $[f]).join(" "));
|
120
|
+
}
|
121
|
+
}
|
122
|
+
const c = D(e, null);
|
123
|
+
return c.$attrs$ = t, o.length > 0 && (c.$children$ = o), c.$key$ = r, c;
|
124
|
+
}, D = (e, t) => {
|
125
|
+
const n = {
|
126
|
+
$flags$: 0,
|
127
|
+
$tag$: e,
|
128
|
+
$text$: t,
|
129
|
+
$elm$: null,
|
130
|
+
$children$: null
|
131
|
+
};
|
132
|
+
return n.$attrs$ = null, n.$key$ = null, n;
|
133
|
+
}, _e = {}, Oe = (e) => e && e.$tag$ === _e, Ce = (e, t) => e != null && !H(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, st = (e) => E(e).$hostElement$, je = (e, t, n) => {
|
134
|
+
const s = h.ce(t, n);
|
135
|
+
return e.dispatchEvent(s), s;
|
136
|
+
}, X = /* @__PURE__ */ new WeakMap(), Ue = (e, t, n) => {
|
137
|
+
let s = L.get(e);
|
138
|
+
Ee && n ? (s = s || new CSSStyleSheet(), typeof s == "string" ? s = t : s.replaceSync(t)) : s = t, L.set(e, s);
|
139
|
+
}, De = (e, t, n) => {
|
140
|
+
var s;
|
141
|
+
const r = V(t), a = L.get(r);
|
142
|
+
if (e = e.nodeType === 11 ? e : m, a)
|
143
|
+
if (typeof a == "string") {
|
144
|
+
e = e.head || e;
|
145
|
+
let l = X.get(e), o;
|
146
|
+
if (l || X.set(e, l = /* @__PURE__ */ new Set()), !l.has(r)) {
|
147
|
+
{
|
148
|
+
o = m.createElement("style"), o.innerHTML = a;
|
149
|
+
const i = (s = h.$nonce$) != null ? s : Z(m);
|
150
|
+
i != null && o.setAttribute("nonce", i), e.insertBefore(o, e.querySelector("link"));
|
151
|
+
}
|
152
|
+
t.$flags$ & 4 && (o.innerHTML += J), l && l.add(r);
|
153
|
+
}
|
154
|
+
} else
|
155
|
+
e.adoptedStyleSheets.includes(a) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, a]);
|
156
|
+
return r;
|
157
|
+
}, Ie = (e) => {
|
158
|
+
const t = e.$cmpMeta$, n = e.$hostElement$, s = S("attachStyles", t.$tagName$);
|
159
|
+
De(
|
160
|
+
n.getRootNode(),
|
161
|
+
t
|
162
|
+
), s();
|
163
|
+
}, V = (e, t) => "sc-" + e.$tagName$, G = (e, t, n, s, r, a) => {
|
164
|
+
if (n !== s) {
|
165
|
+
let l = q(e, t), o = t.toLowerCase();
|
166
|
+
if (t === "class") {
|
167
|
+
const i = e.classList, c = Q(n), $ = Q(s);
|
168
|
+
i.remove(...c.filter((f) => f && !$.includes(f))), i.add(...$.filter((f) => f && !c.includes(f)));
|
169
|
+
} else if (t === "style") {
|
170
|
+
for (const i in n)
|
171
|
+
(!s || s[i] == null) && (i.includes("-") ? e.style.removeProperty(i) : e.style[i] = "");
|
172
|
+
for (const i in s)
|
173
|
+
(!n || s[i] !== n[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 if (!l && t[0] === "o" && t[1] === "n") {
|
178
|
+
if (t[2] === "-" ? t = t.slice(3) : q(w, o) ? t = o.slice(2) : t = o[2] + t.slice(3), n || s) {
|
179
|
+
const i = t.endsWith(ee);
|
180
|
+
t = t.replace(Fe, ""), n && h.rel(e, t, n, i), s && h.ael(e, t, s, i);
|
181
|
+
}
|
182
|
+
} else {
|
183
|
+
const i = H(s);
|
184
|
+
if ((l || i && s !== null) && !r)
|
185
|
+
try {
|
186
|
+
if (e.tagName.includes("-"))
|
187
|
+
e[t] = s;
|
188
|
+
else {
|
189
|
+
const c = s ?? "";
|
190
|
+
t === "list" ? l = !1 : (n == null || e[t] != c) && (e[t] = c);
|
191
|
+
}
|
192
|
+
} catch {
|
193
|
+
}
|
194
|
+
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));
|
195
|
+
}
|
196
|
+
}
|
197
|
+
}, Be = /\s/, Q = (e) => e ? e.split(Be) : [], ee = "Capture", Fe = new RegExp(ee + "$"), te = (e, t, n) => {
|
198
|
+
const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = e && e.$attrs$ || R, a = t.$attrs$ || R;
|
199
|
+
for (const l of Y(Object.keys(r)))
|
200
|
+
l in a || G(s, l, r[l], void 0, n, t.$flags$);
|
201
|
+
for (const l of Y(Object.keys(a)))
|
202
|
+
G(s, l, r[l], a[l], n, t.$flags$);
|
203
|
+
};
|
204
|
+
function Y(e) {
|
205
|
+
return e.includes("ref") ? (
|
206
|
+
// we need to sort these to ensure that `'ref'` is the last attr
|
207
|
+
[...e.filter((t) => t !== "ref"), "ref"]
|
208
|
+
) : (
|
209
|
+
// no need to sort, return the original array
|
210
|
+
e
|
211
|
+
);
|
212
|
+
}
|
213
|
+
var se, ne = !1, re = !1, A = (e, t, n, s) => {
|
214
|
+
const r = t.$children$[n];
|
215
|
+
let a = 0, l, o;
|
216
|
+
if (r.$text$ !== null)
|
217
|
+
l = r.$elm$ = m.createTextNode(r.$text$);
|
218
|
+
else if (l = r.$elm$ = m.createElement(
|
219
|
+
!ne && I.slotRelocation && r.$flags$ & 2 ? "slot-fb" : r.$tag$
|
220
|
+
), te(null, r, re), r.$children$)
|
221
|
+
for (a = 0; a < r.$children$.length; ++a)
|
222
|
+
o = A(e, r, a), o && l.appendChild(o);
|
223
|
+
return l["s-hn"] = se, l;
|
224
|
+
}, le = (e, t, n, s, r, a) => {
|
225
|
+
let l = e, o;
|
226
|
+
for (; r <= a; ++r)
|
227
|
+
s[r] && (o = A(null, n, r), o && (s[r].$elm$ = o, P(l, o, t)));
|
228
|
+
}, ae = (e, t, n) => {
|
229
|
+
for (let s = t; s <= n; ++s) {
|
230
|
+
const r = e[s];
|
231
|
+
if (r) {
|
232
|
+
const a = r.$elm$;
|
233
|
+
ie(r), a && a.remove();
|
234
|
+
}
|
235
|
+
}
|
236
|
+
}, He = (e, t, n, s, r = !1) => {
|
237
|
+
let a = 0, l = 0, o = 0, i = 0, c = t.length - 1, $ = t[0], f = t[c], u = s.length - 1, d = s[0], p = s[u], v, g;
|
238
|
+
for (; a <= c && l <= u; )
|
239
|
+
if ($ == null)
|
240
|
+
$ = t[++a];
|
241
|
+
else if (f == null)
|
242
|
+
f = t[--c];
|
243
|
+
else if (d == null)
|
244
|
+
d = s[++l];
|
245
|
+
else if (p == null)
|
246
|
+
p = s[--u];
|
247
|
+
else if (T($, d, r))
|
248
|
+
b($, d, r), $ = t[++a], d = s[++l];
|
249
|
+
else if (T(f, p, r))
|
250
|
+
b(f, p, r), f = t[--c], p = s[--u];
|
251
|
+
else if (T($, p, r))
|
252
|
+
b($, p, r), P(e, $.$elm$, f.$elm$.nextSibling), $ = t[++a], p = s[--u];
|
253
|
+
else if (T(f, d, r))
|
254
|
+
b(f, d, r), P(e, f.$elm$, $.$elm$), f = t[--c], d = s[++l];
|
255
|
+
else {
|
256
|
+
for (o = -1, i = a; i <= c; ++i)
|
257
|
+
if (t[i] && t[i].$key$ !== null && t[i].$key$ === d.$key$) {
|
258
|
+
o = i;
|
259
|
+
break;
|
260
|
+
}
|
261
|
+
o >= 0 ? (g = t[o], g.$tag$ !== d.$tag$ ? v = A(t && t[l], n, o) : (b(g, d, r), t[o] = void 0, v = g.$elm$), d = s[++l]) : (v = A(t && t[l], n, l), d = s[++l]), v && P($.$elm$.parentNode, v, $.$elm$);
|
262
|
+
}
|
263
|
+
a > c ? le(
|
264
|
+
e,
|
265
|
+
s[u + 1] == null ? null : s[u + 1].$elm$,
|
266
|
+
n,
|
267
|
+
s,
|
268
|
+
l,
|
269
|
+
u
|
270
|
+
) : l > u && ae(t, a, c);
|
271
|
+
}, T = (e, t, n = !1) => e.$tag$ === t.$tag$ ? n ? !0 : e.$key$ === t.$key$ : !1, b = (e, t, n = !1) => {
|
272
|
+
const s = t.$elm$ = e.$elm$, r = e.$children$, a = t.$children$, l = t.$text$;
|
273
|
+
l === null ? (te(e, t, re), r !== null && a !== null ? He(s, r, t, a, n) : a !== null ? (e.$text$ !== null && (s.textContent = ""), le(s, null, t, a, 0, a.length - 1)) : r !== null && ae(r, 0, r.length - 1)) : e.$text$ !== l && (s.data = l);
|
274
|
+
}, ie = (e) => {
|
275
|
+
e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(ie);
|
276
|
+
}, P = (e, t, n) => e?.insertBefore(t, n), ze = (e, t, n = !1) => {
|
277
|
+
const s = e.$hostElement$, r = e.$vnode$ || D(null, null), a = Oe(t) ? t : we(null, null, t);
|
278
|
+
if (se = s.tagName, n && a.$attrs$)
|
279
|
+
for (const l of Object.keys(a.$attrs$))
|
280
|
+
s.hasAttribute(l) && !["key", "ref", "style", "class"].includes(l) && (a.$attrs$[l] = s[l]);
|
281
|
+
a.$tag$ = null, a.$flags$ |= 4, e.$vnode$ = a, a.$elm$ = r.$elm$ = s, ne = me, b(r, a, n);
|
282
|
+
}, oe = (e, t) => {
|
283
|
+
t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((n) => e.$onRenderResolve$ = n));
|
284
|
+
}, z = (e, t) => {
|
285
|
+
if (e.$flags$ |= 16, e.$flags$ & 4) {
|
286
|
+
e.$flags$ |= 512;
|
287
|
+
return;
|
288
|
+
}
|
289
|
+
return oe(e, e.$ancestorComponent$), be(() => qe(e, t));
|
290
|
+
}, qe = (e, t) => {
|
291
|
+
const n = e.$hostElement$, s = S("scheduleUpdate", e.$cmpMeta$.$tagName$), r = e.$lazyInstance$;
|
292
|
+
if (!r)
|
293
|
+
throw new Error(
|
294
|
+
`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`
|
295
|
+
);
|
296
|
+
let a;
|
297
|
+
return s(), We(a, () => Re(e, r, t));
|
298
|
+
}, We = (e, t) => Me(e) ? e.then(t).catch((n) => {
|
299
|
+
console.error(n), t();
|
300
|
+
}) : t(), Me = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Re = async (e, t, n) => {
|
301
|
+
var s;
|
302
|
+
const r = e.$hostElement$, a = S("update", e.$cmpMeta$.$tagName$), l = r["s-rc"];
|
303
|
+
n && Ie(e);
|
304
|
+
const o = S("render", e.$cmpMeta$.$tagName$);
|
305
|
+
Xe(e, t, r, n), l && (l.map((i) => i()), r["s-rc"] = void 0), o(), a();
|
306
|
+
{
|
307
|
+
const i = (s = r["s-p"]) != null ? s : [], c = () => Ge(e);
|
308
|
+
i.length === 0 ? c() : (Promise.all(i).then(c), e.$flags$ |= 4, i.length = 0);
|
309
|
+
}
|
310
|
+
}, Xe = (e, t, n, s) => {
|
311
|
+
try {
|
312
|
+
t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, ze(e, t, s);
|
313
|
+
} catch (r) {
|
314
|
+
k(r, e.$hostElement$);
|
315
|
+
}
|
316
|
+
return null;
|
317
|
+
}, Ge = (e) => {
|
318
|
+
const t = e.$cmpMeta$.$tagName$, n = e.$hostElement$, s = S("postUpdate", t), r = e.$lazyInstance$, a = e.$ancestorComponent$;
|
319
|
+
e.$flags$ & 64 ? s() : (e.$flags$ |= 64, $e(n), Qe(r, "componentDidLoad"), s(), e.$onReadyResolve$(n), a || ce()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && F(() => z(e, !1)), e.$flags$ &= -517;
|
320
|
+
}, ce = (e) => {
|
321
|
+
$e(m.documentElement), F(() => je(w, "appload", { detail: { namespace: de } }));
|
322
|
+
}, Qe = (e, t, n) => {
|
323
|
+
if (e && e[t])
|
324
|
+
try {
|
325
|
+
return e[t](n);
|
326
|
+
} catch (s) {
|
327
|
+
k(s);
|
328
|
+
}
|
329
|
+
}, $e = (e) => {
|
330
|
+
var t;
|
331
|
+
return e.classList.add((t = I.hydratedSelectorName) != null ? t : "hydrated");
|
332
|
+
}, Ye = (e, t) => E(e).$instanceValues$.get(t), Je = (e, t, n, s) => {
|
333
|
+
const r = E(e);
|
334
|
+
if (!r)
|
335
|
+
throw new Error(
|
336
|
+
`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).`
|
337
|
+
);
|
338
|
+
const a = r.$hostElement$, l = r.$instanceValues$.get(t), o = r.$flags$, i = r.$lazyInstance$;
|
339
|
+
n = Ce(n, s.$members$[t][0]);
|
340
|
+
const c = Number.isNaN(l) && Number.isNaN(n), $ = n !== l && !c;
|
341
|
+
if ((!(o & 8) || l === void 0) && $ && (r.$instanceValues$.set(t, n), i)) {
|
342
|
+
if (s.$watchers$ && o & 128) {
|
343
|
+
const f = s.$watchers$[t];
|
344
|
+
f && f.map((u) => {
|
345
|
+
try {
|
346
|
+
i[u](n, l, t);
|
347
|
+
} catch (d) {
|
348
|
+
k(d, a);
|
349
|
+
}
|
350
|
+
});
|
351
|
+
}
|
352
|
+
(o & 18) === 2 && z(r, !1);
|
353
|
+
}
|
354
|
+
}, fe = (e, t, n) => {
|
355
|
+
var s, r;
|
356
|
+
const a = e.prototype;
|
357
|
+
if (t.$members$ || t.$watchers$ || e.watchers) {
|
358
|
+
e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
|
359
|
+
const l = Object.entries((s = t.$members$) != null ? s : {});
|
360
|
+
if (l.map(([o, [i]]) => {
|
361
|
+
(i & 31 || n & 2 && i & 32) && Object.defineProperty(a, o, {
|
362
|
+
get() {
|
363
|
+
return Ye(this, o);
|
364
|
+
},
|
365
|
+
set(c) {
|
366
|
+
Je(this, o, c, t);
|
367
|
+
},
|
368
|
+
configurable: !0,
|
369
|
+
enumerable: !0
|
370
|
+
});
|
371
|
+
}), n & 1) {
|
372
|
+
const o = /* @__PURE__ */ new Map();
|
373
|
+
a.attributeChangedCallback = function(i, c, $) {
|
374
|
+
h.jmp(() => {
|
375
|
+
var f;
|
376
|
+
const u = o.get(i);
|
377
|
+
if (this.hasOwnProperty(u))
|
378
|
+
$ = this[u], delete this[u];
|
379
|
+
else {
|
380
|
+
if (a.hasOwnProperty(u) && typeof this[u] == "number" && this[u] == $)
|
381
|
+
return;
|
382
|
+
if (u == null) {
|
383
|
+
const d = E(this), p = d?.$flags$;
|
384
|
+
if (p && !(p & 8) && p & 128 && $ !== c) {
|
385
|
+
const v = d.$lazyInstance$, g = (f = t.$watchers$) == null ? void 0 : f[i];
|
386
|
+
g?.forEach((y) => {
|
387
|
+
v[y] != null && v[y].call(v, $, c, i);
|
388
|
+
});
|
389
|
+
}
|
390
|
+
return;
|
391
|
+
}
|
392
|
+
}
|
393
|
+
this[u] = $ === null && typeof this[u] == "boolean" ? !1 : $;
|
394
|
+
});
|
395
|
+
}, e.observedAttributes = Array.from(
|
396
|
+
/* @__PURE__ */ new Set([
|
397
|
+
...Object.keys((r = t.$watchers$) != null ? r : {}),
|
398
|
+
...l.filter(
|
399
|
+
([i, c]) => c[0] & 15
|
400
|
+
/* HasAttribute */
|
401
|
+
).map(([i, c]) => {
|
402
|
+
const $ = c[1] || i;
|
403
|
+
return o.set($, i), $;
|
404
|
+
})
|
405
|
+
])
|
406
|
+
);
|
407
|
+
}
|
408
|
+
}
|
409
|
+
return e;
|
410
|
+
}, Ke = async (e, t, n, s) => {
|
411
|
+
let r;
|
412
|
+
if (!(t.$flags$ & 32)) {
|
413
|
+
if (t.$flags$ |= 32, n.$lazyBundleId$) {
|
414
|
+
const i = ge(n);
|
415
|
+
if (i && "then" in i) {
|
416
|
+
const $ = Ae();
|
417
|
+
r = await i, $();
|
418
|
+
} else
|
419
|
+
r = i;
|
420
|
+
if (!r)
|
421
|
+
throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);
|
422
|
+
r.isProxied || (n.$watchers$ = r.watchers, fe(
|
423
|
+
r,
|
424
|
+
n,
|
425
|
+
2
|
426
|
+
/* proxyState */
|
427
|
+
), r.isProxied = !0);
|
428
|
+
const c = S("createInstance", n.$tagName$);
|
429
|
+
t.$flags$ |= 8;
|
430
|
+
try {
|
431
|
+
new r(t);
|
432
|
+
} catch ($) {
|
433
|
+
k($);
|
434
|
+
}
|
435
|
+
t.$flags$ &= -9, t.$flags$ |= 128, c();
|
436
|
+
} else {
|
437
|
+
r = e.constructor;
|
438
|
+
const i = e.localName;
|
439
|
+
customElements.whenDefined(i).then(
|
440
|
+
() => t.$flags$ |= 128
|
441
|
+
/* isWatchReady */
|
442
|
+
);
|
443
|
+
}
|
444
|
+
if (r && r.style) {
|
445
|
+
let i;
|
446
|
+
typeof r.style == "string" && (i = r.style);
|
447
|
+
const c = V(n);
|
448
|
+
if (!L.has(c)) {
|
449
|
+
const $ = S("registerStyles", n.$tagName$);
|
450
|
+
Ue(c, i, !!(n.$flags$ & 1)), $();
|
451
|
+
}
|
452
|
+
}
|
453
|
+
}
|
454
|
+
const a = t.$ancestorComponent$, l = () => z(t, !0);
|
455
|
+
a && a["s-rc"] ? a["s-rc"].push(l) : l();
|
456
|
+
}, Ze = (e) => {
|
457
|
+
}, Ne = (e) => {
|
458
|
+
if (!(h.$flags$ & 1)) {
|
459
|
+
const t = E(e), n = t.$cmpMeta$, s = S("connectedCallback", n.$tagName$);
|
460
|
+
if (t.$flags$ & 1)
|
461
|
+
t?.$lazyInstance$ || t?.$onReadyPromise$ && t.$onReadyPromise$.then(() => Ze());
|
462
|
+
else {
|
463
|
+
t.$flags$ |= 1;
|
464
|
+
{
|
465
|
+
let r = e;
|
466
|
+
for (; r = r.parentNode || r.host; )
|
467
|
+
if (r["s-p"]) {
|
468
|
+
oe(t, t.$ancestorComponent$ = r);
|
469
|
+
break;
|
470
|
+
}
|
471
|
+
}
|
472
|
+
n.$members$ && Object.entries(n.$members$).map(([r, [a]]) => {
|
473
|
+
if (a & 31 && e.hasOwnProperty(r)) {
|
474
|
+
const l = e[r];
|
475
|
+
delete e[r], e[r] = l;
|
476
|
+
}
|
477
|
+
}), Ke(e, t, n);
|
478
|
+
}
|
479
|
+
s();
|
480
|
+
}
|
481
|
+
}, Ve = (e) => {
|
482
|
+
}, et = async (e) => {
|
483
|
+
if (!(h.$flags$ & 1)) {
|
484
|
+
const t = E(e);
|
485
|
+
t?.$lazyInstance$ || t?.$onReadyPromise$ && t.$onReadyPromise$.then(() => Ve());
|
486
|
+
}
|
487
|
+
}, nt = (e, t = {}) => {
|
488
|
+
var n;
|
489
|
+
const s = S(), r = [], a = t.exclude || [], l = w.customElements, o = m.head, i = /* @__PURE__ */ o.querySelector("meta[charset]"), c = /* @__PURE__ */ m.createElement("style"), $ = [];
|
490
|
+
let f, u = !0;
|
491
|
+
Object.assign(h, t), h.$resourcesUrl$ = new URL(t.resourcesUrl || "./", m.baseURI).href;
|
492
|
+
let d = !1;
|
493
|
+
if (e.map((p) => {
|
494
|
+
p[1].map((v) => {
|
495
|
+
var g;
|
496
|
+
const y = {
|
497
|
+
$flags$: v[0],
|
498
|
+
$tagName$: v[1],
|
499
|
+
$members$: v[2],
|
500
|
+
$listeners$: v[3]
|
501
|
+
};
|
502
|
+
y.$flags$ & 4 && (d = !0), y.$members$ = v[2], y.$watchers$ = (g = v[4]) != null ? g : {};
|
503
|
+
const x = y.$tagName$, ue = class extends HTMLElement {
|
504
|
+
// StencilLazyHost
|
505
|
+
constructor(_) {
|
506
|
+
super(_), this.hasRegisteredEventListeners = !1, _ = this, he(_, y);
|
507
|
+
}
|
508
|
+
connectedCallback() {
|
509
|
+
E(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), f && (clearTimeout(f), f = null), u ? $.push(this) : h.jmp(() => Ne(this));
|
510
|
+
}
|
511
|
+
disconnectedCallback() {
|
512
|
+
h.jmp(() => et(this));
|
513
|
+
}
|
514
|
+
componentOnReady() {
|
515
|
+
return E(this).$onReadyPromise$;
|
516
|
+
}
|
517
|
+
};
|
518
|
+
y.$lazyBundleId$ = p[0], !a.includes(x) && !l.get(x) && (r.push(x), l.define(
|
519
|
+
x,
|
520
|
+
fe(
|
521
|
+
ue,
|
522
|
+
y,
|
523
|
+
1
|
524
|
+
/* isElementConstructor */
|
525
|
+
)
|
526
|
+
));
|
527
|
+
});
|
528
|
+
}), r.length > 0 && (d && (c.textContent += J), c.textContent += r.sort() + ye, c.innerHTML.length)) {
|
529
|
+
c.setAttribute("data-styles", "");
|
530
|
+
const p = (n = h.$nonce$) != null ? n : Z(m);
|
531
|
+
p != null && c.setAttribute("nonce", p), o.insertBefore(c, i ? i.nextSibling : o.firstChild);
|
532
|
+
}
|
533
|
+
u = !1, $.length ? $.map((p) => p.connectedCallback()) : h.jmp(() => f = setTimeout(ce, 30)), s();
|
534
|
+
};
|
535
|
+
export {
|
536
|
+
_e as H,
|
537
|
+
nt as b,
|
538
|
+
st as g,
|
539
|
+
we as h,
|
540
|
+
Se as p,
|
541
|
+
tt as r
|
542
|
+
};
|
@@ -14,7 +14,7 @@ var n = (t, o, e) => new Promise((m, s) => {
|
|
14
14
|
}, a = (r) => r.done ? m(r.value) : Promise.resolve(r.value).then(c, l);
|
15
15
|
a((e = e.apply(t, o)).next());
|
16
16
|
});
|
17
|
-
import { b as g, p as u } from "./index-97d17652-
|
17
|
+
import { b as g, p as u } from "./index-97d17652-BzQXAkmg.js";
|
18
18
|
import { g as d } from "./app-globals-0f993ce5-D-kw1sls.js";
|
19
19
|
var h = () => {
|
20
20
|
const t = import.meta.url, o = {};
|
@@ -1 +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-
|
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-DYGS0vqJ.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-DzutkFSv.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)}));
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r, h as s, H as n, g as a } from "./index-97d17652-
|
1
|
+
import { r, h as s, H as n, g as a } from "./index-97d17652-BzQXAkmg.js";
|
2
2
|
const d = ".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 = d, h = class {
|
3
3
|
constructor(e) {
|
4
4
|
r(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;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const i=require("./index-97d17652-
|
1
|
+
"use strict";const i=require("./index-97d17652-DYGS0vqJ.cjs"),r=".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}",d=r,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;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r, h as s, H as n, g as a } from "./index-97d17652-
|
1
|
+
import { r, h as s, H as n, g as a } from "./index-97d17652-mbOyENH9.js";
|
2
2
|
const d = ".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 = d, h = class {
|
3
3
|
constructor(e) {
|
4
4
|
r(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;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./ui-image-b7b48fe5-
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./ui-image-b7b48fe5-DQE3WxuL.cjs"),t=require("./index-97d17652-DYGS0vqJ.cjs"),n=":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, inherit)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}",s=n,o=class{constructor(e){t.registerInstance(this,e),this.structure=void 0,this.width=void 0,this.height=void 0,this.borderRadius=void 0,this.marginBottom=void 0,this.marginTop=void 0,this.marginLeft=void 0,this.marginRight=void 0,this.animation=!0,this.rows=void 0,this.size=void 0,this.color=void 0,this.primaryColor=void 0,this.secondaryColor=void 0}handleStructureChange(e,r){r!==e&&this.handleStructure(e)}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,r)=>t.h("div",{key:r,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
|
2
2
|
:host {
|
3
3
|
--emw-skeleton-logo-width: ${this.width};
|
4
4
|
--emw-skeleton-logo-height: ${this.height};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { U as h } from "./ui-image-b7b48fe5-
|
2
|
-
import { r as o, h as t, H as i } from "./index-97d17652-
|
1
|
+
import { U as h } from "./ui-image-b7b48fe5-kIlLPkYB.js";
|
2
|
+
import { r as o, h as t, H as i } from "./index-97d17652-mbOyENH9.js";
|
3
3
|
const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, inherit)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}", s = n, a = class {
|
4
4
|
constructor(e) {
|
5
5
|
o(this, e), this.structure = void 0, this.width = void 0, this.height = void 0, this.borderRadius = void 0, this.marginBottom = void 0, this.marginTop = void 0, this.marginLeft = void 0, this.marginRight = void 0, this.animation = !0, this.rows = void 0, this.size = void 0, this.color = void 0, this.primaryColor = void 0, this.secondaryColor = void 0;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { U as h } from "./ui-image-b7b48fe5-
|
2
|
-
import { r as o, h as t, H as i } from "./index-97d17652-
|
1
|
+
import { U as h } from "./ui-image-b7b48fe5-7wF4sIlr.js";
|
2
|
+
import { r as o, h as t, H as i } from "./index-97d17652-BzQXAkmg.js";
|
3
3
|
const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, inherit)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}", s = n, a = class {
|
4
4
|
constructor(e) {
|
5
5
|
o(this, e), this.structure = void 0, this.width = void 0, this.height = void 0, this.borderRadius = void 0, this.marginBottom = void 0, this.marginTop = void 0, this.marginLeft = void 0, this.marginRight = void 0, this.animation = !0, this.rows = void 0, this.size = void 0, this.color = void 0, this.primaryColor = void 0, this.secondaryColor = void 0;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-CiWxBakF.cjs");function y(i){e.append_styles(i,"svelte-fidj5e",".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}")}function g(i){let t;return{c(){t=e.element("div"),t.innerHTML='<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>',e.attr(t,"class","CashierSpinner")},m(s,l){e.insert(s,t,l),i[3](t)},p:e.noop,i:e.noop,o:e.noop,d(s){s&&e.detach(t),i[3](null)}}}function p(i,t,s){let{clientstyling:l=""}=t,{clientstylingurl:a=""}=t,r;const h=()=>{let n=document.createElement("style");n.innerHTML=l,r.appendChild(n)},u=()=>{let n=new URL(a),c=document.createElement("style");fetch(n.href).then(o=>o.text()).then(o=>{c.innerHTML=o,setTimeout(()=>{r.appendChild(c)},1)})};function f(n){e.binding_callbacks[n?"unshift":"push"](()=>{r=n,s(0,r)})}return i.$$set=n=>{"clientstyling"in n&&s(1,l=n.clientstyling),"clientstylingurl"in n&&s(2,a=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&3&&l&&r&&h(),i.$$.dirty&5&&a&&r&&u()},[r,l,a,f]}class d extends e.SvelteComponent{constructor(t){super(),e.init(this,t,p,g,e.safe_not_equal,{clientstyling:1,clientstylingurl:2},y)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}}e.create_custom_element(d,{clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=d;
|