@everymatrix/cashier-method-details 1.63.2 → 1.64.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/{CashierError-C8SV6iVo.cjs → CashierError-B90Fovz1.cjs} +3 -3
- package/components/{CashierError-CY8DxD03.js → CashierError-D05ZOiyZ.js} +3 -2
- package/components/{CashierError-v64dB0JF.js → CashierError-DletG-nz.js} +3 -2
- package/components/{CashierHeader-Dn0OJseH.cjs → CashierHeader-4ue0Gap7.cjs} +1 -1
- package/components/{CashierHeader-Bt6u4hVb.js → CashierHeader-BKhW9U-k.js} +1 -1
- package/components/{CashierHeader-CU4dPfgu.js → CashierHeader-zZXvyvHx.js} +1 -1
- package/components/{CashierIframeRedirect-YZFYiw3B.cjs → CashierIframeRedirect-BT_SymGW.cjs} +1 -1
- package/components/{CashierIframeRedirect-BwP1y-Yz.js → CashierIframeRedirect-BZbyzVJy.js} +2 -2
- package/components/{CashierIframeRedirect-Ce8YK4Ql.js → CashierIframeRedirect-D5Fhv5bq.js} +2 -2
- package/components/{CashierMethodDetails-DrNEEXUe.js → CashierMethodDetails-BMLBg5tI.js} +2149 -2165
- package/components/{CashierMethodDetails-cXltdzy0.js → CashierMethodDetails-CL7ZEED9.js} +1991 -1971
- package/components/CashierMethodDetails-DZPm8tes.cjs +18 -0
- package/components/{CashierReceiptPage-DsB8MFp4.cjs → CashierReceiptPage-C32peTEl.cjs} +1 -1
- package/components/{CashierReceiptPage-B2-TTsJ4.js → CashierReceiptPage-D0rwdNa6.js} +20 -26
- package/components/{CashierReceiptPage-l8XTo_MF.js → CashierReceiptPage-V1a0b-4d.js} +21 -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-C616IYj2.js → index-97d17652-BEnqZAxL.js} +1 -1
- package/stencil/{index-97d17652-C9Ph2JiE.cjs → index-97d17652-D5_8Vwfn.cjs} +1 -1
- package/stencil/{index-97d17652-B8yQdy7J.js → index-97d17652-WK_DbPS4.js} +1 -1
- package/stencil/{ui-image-Bz0nQwNJ.cjs → ui-image-CMb1eK44.cjs} +1 -1
- package/stencil/{ui-image-DX8NqsyA.js → ui-image-CQQDA5b0.js} +1 -1
- package/stencil/{ui-image-o9dMcntc.js → ui-image-CmwNU-jf.js} +1 -1
- package/stencil/{ui-image-7da92f1f-26DzsVFt.js → ui-image-b7b48fe5-Cf9Vq5pI.js} +6 -6
- package/stencil/ui-image-b7b48fe5-DCck2kk1.cjs +1 -0
- package/stencil/{ui-image-7da92f1f-BAghvEDf.js → ui-image-b7b48fe5-V9vp4faA.js} +6 -6
- package/stencil/{ui-image_2-Cyqb4u7k.js → ui-image_2-B56t6kXT.js} +2 -2
- package/stencil/{ui-image_2-BXgptLvl.js → ui-image_2-BncuYpLi.js} +2 -2
- package/stencil/{ui-image_2-Cctik3aF.cjs → ui-image_2-YkYxLKu7.cjs} +1 -1
- package/components/CashierMethodDetails-CzXDpfKe.cjs +0 -18
- package/stencil/ui-image-7da92f1f-BiVBd_OW.cjs +0 -1
@@ -1,11 +1,11 @@
|
|
1
1
|
import { S as je, b as he, s as ke, f as E, c as Ee, n as K, e as v, o as p, G as Be, m as d, p as z, q as B, C as G, v as a, w as we, H as Le, A as te, y as M, B as I, z as R, D as Z, K as fe, L as Ze, x as Me, E as Re } from "./CashierConfirmModal-3pkCHAVZ.js";
|
2
|
-
import { d as Ae, u as Qe } from "./CashierMethodDetails-
|
3
|
-
import { a as
|
2
|
+
import { d as Ae, u as Qe } from "./CashierMethodDetails-BMLBg5tI.js";
|
3
|
+
import { a as xe, i as Se, $ as De, b as Ge } from "./CashierError-DletG-nz.js";
|
4
4
|
function ie(A, e) {
|
5
|
-
|
5
|
+
xe(A, e);
|
6
6
|
}
|
7
7
|
function Ue(A) {
|
8
|
-
|
8
|
+
Se({
|
9
9
|
fallbackLocale: "en"
|
10
10
|
}), De.set(A);
|
11
11
|
}
|
@@ -390,7 +390,7 @@ function Ve(A) {
|
|
390
390
|
};
|
391
391
|
}
|
392
392
|
function _e(A) {
|
393
|
-
let e, n, t, f, l, c, u, o, s, J, w, X, P, b, Q,
|
393
|
+
let e, n, t, f, l, c, u, o, s, J, w, X, P, b, Q, x, S, U, T, D, C = (
|
394
394
|
/*$_*/
|
395
395
|
A[18]("close") + ""
|
396
396
|
), N, F, Y, j = (
|
@@ -416,14 +416,14 @@ function _e(A) {
|
|
416
416
|
), w = B(), X = z("div"), P = R(
|
417
417
|
/*subTitle*/
|
418
418
|
A[11]
|
419
|
-
), b = B(), Q = z("div"),
|
419
|
+
), b = B(), Q = z("div"), x = R(
|
420
420
|
/*text*/
|
421
421
|
A[13]
|
422
|
-
),
|
422
|
+
), S = B(), H && H.c(), U = B(), g && g.c(), T = B(), D = z("button"), N = R(C), a(e, "class", "HeaderButtonContainer"), G(l.src, c = /*statusImageUrl*/
|
423
423
|
A[14]) || a(l, "src", c), a(l, "class", "StatusLogo"), a(s, "class", "Title"), a(X, "class", "SubTitle"), a(o, "class", "TitleWrapper"), a(f, "class", "ReceiptWrapper"), a(Q, "class", "Text"), a(D, "class", "PrimaryButton");
|
424
424
|
},
|
425
425
|
m(r, m) {
|
426
|
-
d(r, e, m), j && j.m(e, null), p(e, n), h && h.m(e, null), d(r, t, m), d(r, f, m), p(f, l), p(f, u), p(f, o), p(o, s), p(s, J), p(o, w), p(o, X), p(X, P), d(r, b, m), d(r, Q, m), p(Q,
|
426
|
+
d(r, e, m), j && j.m(e, null), p(e, n), h && h.m(e, null), d(r, t, m), d(r, f, m), p(f, l), p(f, u), p(f, o), p(o, s), p(s, J), p(o, w), p(o, X), p(X, P), d(r, b, m), d(r, Q, m), p(Q, x), d(r, S, m), H && H.m(r, m), d(r, U, m), g && g.m(r, m), d(r, T, m), d(r, D, m), p(D, N), F || (Y = I(
|
427
427
|
D,
|
428
428
|
"click",
|
429
429
|
/*closeReceipt*/
|
@@ -449,7 +449,7 @@ function _e(A) {
|
|
449
449
|
r[11]
|
450
450
|
), m[0] & /*text*/
|
451
451
|
8192 && M(
|
452
|
-
|
452
|
+
x,
|
453
453
|
/*text*/
|
454
454
|
r[13]
|
455
455
|
), /*txnInfo*/
|
@@ -459,7 +459,7 @@ function _e(A) {
|
|
459
459
|
r[18]("close") + "") && M(N, C);
|
460
460
|
},
|
461
461
|
d(r) {
|
462
|
-
r && (v(e), v(t), v(f), v(b), v(Q), v(
|
462
|
+
r && (v(e), v(t), v(f), v(b), v(Q), v(S), v(U), v(T), v(D)), j && j.d(), h && h.d(), H && H.d(r), g && g.d(r), F = !1, Y();
|
463
463
|
}
|
464
464
|
};
|
465
465
|
}
|
@@ -846,11 +846,11 @@ let on = "https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js", r
|
|
846
846
|
function an(A, e, n) {
|
847
847
|
let t;
|
848
848
|
we(A, Ge, (i) => n(18, t = i)), Ae.extend(Qe);
|
849
|
-
let { endpoint: f } = e, { session: l } = e, { lang: c = "en" } = e, { local: u = "en-US" } = e, { showerrors: o = "true" } = e, { showclosebutton: s = "false" } = e, { showcontactbutton: J = "false" } = e, { translationurl: w } = e, { assetsurl: X = "" } = e, { customerid: P } = e, { transactionid: b } = e, { clientstyling: Q = "" } = e, { clientstylingurl:
|
850
|
-
var
|
849
|
+
let { endpoint: f } = e, { session: l } = e, { lang: c = "en" } = e, { local: u = "en-US" } = e, { showerrors: o = "true" } = e, { showclosebutton: s = "false" } = e, { showcontactbutton: J = "false" } = e, { translationurl: w } = e, { assetsurl: X = "" } = e, { customerid: P } = e, { transactionid: b } = e, { clientstyling: Q = "" } = e, { clientstylingurl: x = "" } = e;
|
850
|
+
var S;
|
851
851
|
(function(i) {
|
852
852
|
i.Success = "Success", i.Maintenance = "Maintenance";
|
853
|
-
})(
|
853
|
+
})(S || (S = {}));
|
854
854
|
const U = {
|
855
855
|
Success: ce,
|
856
856
|
Voided: ce,
|
@@ -921,7 +921,7 @@ function an(A, e, n) {
|
|
921
921
|
let i = document.createElement("style");
|
922
922
|
i.innerHTML = Q, g.appendChild(i);
|
923
923
|
}, pe = () => {
|
924
|
-
let i = new URL(
|
924
|
+
let i = new URL(x), y = document.createElement("style");
|
925
925
|
fetch(i.href).then((L) => L.text()).then((L) => {
|
926
926
|
y.innerHTML = L, setTimeout(
|
927
927
|
() => {
|
@@ -956,7 +956,7 @@ function an(A, e, n) {
|
|
956
956
|
body: JSON.stringify({ TransactionCode: b })
|
957
957
|
};
|
958
958
|
fetch(i, L).then((k) => k.json()).then((k) => {
|
959
|
-
if (k.ResponseCode !==
|
959
|
+
if (k.ResponseCode !== S.Success) {
|
960
960
|
n(16, m = k.ResponseCode), n(17, W = o.toLowerCase() === "false" || !o), Xe();
|
961
961
|
return;
|
962
962
|
}
|
@@ -979,13 +979,7 @@ function an(A, e, n) {
|
|
979
979
|
amount: ze.format(Number(N.amount)),
|
980
980
|
currency: N.currency
|
981
981
|
}
|
982
|
-
})), n(11, Y = t(Oe(N.status, N.type))), n(13, h = t(qe(N.status, N.type), { values: { errorText: N.message } })), X ? n(14, H = Ce(X, N.status)) : n(14, H = U[N.status])
|
983
|
-
{
|
984
|
-
type: "StartSessionCountdown",
|
985
|
-
xPaymentSessionToken: l
|
986
|
-
},
|
987
|
-
window.location.href
|
988
|
-
);
|
982
|
+
})), n(11, Y = t(Oe(N.status, N.type))), n(13, h = t(qe(N.status, N.type), { values: { errorText: N.message } })), X ? n(14, H = Ce(X, N.status)) : n(14, H = U[N.status]);
|
989
983
|
});
|
990
984
|
}, ne = (i) => {
|
991
985
|
i && window.postMessage(
|
@@ -1012,23 +1006,23 @@ function an(A, e, n) {
|
|
1012
1006
|
});
|
1013
1007
|
}
|
1014
1008
|
return A.$$set = (i) => {
|
1015
|
-
"endpoint" in i && n(22, f = i.endpoint), "session" in i && n(23, l = i.session), "lang" in i && n(24, c = i.lang), "local" in i && n(25, u = i.local), "showerrors" in i && n(26, o = i.showerrors), "showclosebutton" in i && n(0, s = i.showclosebutton), "showcontactbutton" in i && n(1, J = i.showcontactbutton), "translationurl" in i && n(2, w = i.translationurl), "assetsurl" in i && n(3, X = i.assetsurl), "customerid" in i && n(27, P = i.customerid), "transactionid" in i && n(28, b = i.transactionid), "clientstyling" in i && n(4, Q = i.clientstyling), "clientstylingurl" in i && n(5,
|
1009
|
+
"endpoint" in i && n(22, f = i.endpoint), "session" in i && n(23, l = i.session), "lang" in i && n(24, c = i.lang), "local" in i && n(25, u = i.local), "showerrors" in i && n(26, o = i.showerrors), "showclosebutton" in i && n(0, s = i.showclosebutton), "showcontactbutton" in i && n(1, J = i.showcontactbutton), "translationurl" in i && n(2, w = i.translationurl), "assetsurl" in i && n(3, X = i.assetsurl), "customerid" in i && n(27, P = i.customerid), "transactionid" in i && n(28, b = i.transactionid), "clientstyling" in i && n(4, Q = i.clientstyling), "clientstylingurl" in i && n(5, x = i.clientstylingurl);
|
1016
1010
|
}, A.$$.update = () => {
|
1017
1011
|
A.$$.dirty[0] & /*endpoint, session, customerid, transactionid, showerrors*/
|
1018
1012
|
482344960 && f && l && P && b && o && be(), A.$$.dirty[0] & /*lang*/
|
1019
1013
|
16777216 && c && Te(), A.$$.dirty[0] & /*lang, translationurl*/
|
1020
1014
|
16777220 && c && w && me(), A.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
1021
1015
|
80 && Q && g && Pe(), A.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
1022
|
-
96 &&
|
1016
|
+
96 && x && g && pe();
|
1023
1017
|
}, [
|
1024
1018
|
s,
|
1025
1019
|
J,
|
1026
1020
|
w,
|
1027
1021
|
X,
|
1028
1022
|
Q,
|
1029
|
-
S,
|
1030
|
-
g,
|
1031
1023
|
x,
|
1024
|
+
g,
|
1025
|
+
S,
|
1032
1026
|
T,
|
1033
1027
|
N,
|
1034
1028
|
F,
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { S as Be, b as we, s as Le, f as E, c as Ze, n as K, e as v, o as p, G as Me, m as d, p as z, q as B, C as G, v as a, w as Re, H as Qe, A as le, y as M, B as I, z as R, D as Z, K as ce, L as
|
2
|
-
import { d as oe, u as Ge } from "./CashierMethodDetails-
|
3
|
-
import { a as Ue, i as Ce, $ as Fe, b as Oe } from "./CashierError-
|
1
|
+
import { S as Be, b as we, s as Le, f as E, c as Ze, n as K, e as v, o as p, G as Me, m as d, p as z, q as B, C as G, v as a, w as Re, H as Qe, A as le, y as M, B as I, z as R, D as Z, K as ce, L as xe, x as Se, E as De } from "./CashierConfirmModal-CNzEOcOZ.js";
|
2
|
+
import { d as oe, u as Ge } from "./CashierMethodDetails-CL7ZEED9.js";
|
3
|
+
import { a as Ue, i as Ce, $ as Fe, b as Oe } from "./CashierError-D05ZOiyZ.js";
|
4
4
|
function re(A, e) {
|
5
5
|
Ue(A, e);
|
6
6
|
}
|
@@ -390,7 +390,7 @@ function nn(A) {
|
|
390
390
|
};
|
391
391
|
}
|
392
392
|
function tn(A) {
|
393
|
-
let e, n, t, f, l, c, u, o, s, J, w, b, P, H, Q,
|
393
|
+
let e, n, t, f, l, c, u, o, s, J, w, b, P, H, Q, x, S, U, T, D, C = (
|
394
394
|
/*$_*/
|
395
395
|
A[18]("close") + ""
|
396
396
|
), N, F, Y, j = (
|
@@ -416,14 +416,14 @@ function tn(A) {
|
|
416
416
|
), w = B(), b = z("div"), P = R(
|
417
417
|
/*subTitle*/
|
418
418
|
A[11]
|
419
|
-
), H = B(), Q = z("div"),
|
419
|
+
), H = B(), Q = z("div"), x = R(
|
420
420
|
/*text*/
|
421
421
|
A[13]
|
422
|
-
),
|
422
|
+
), S = B(), y && y.c(), U = B(), g && g.c(), T = B(), D = z("button"), N = R(C), a(e, "class", "HeaderButtonContainer"), G(l.src, c = /*statusImageUrl*/
|
423
423
|
A[14]) || a(l, "src", c), a(l, "class", "StatusLogo"), a(s, "class", "Title"), a(b, "class", "SubTitle"), a(o, "class", "TitleWrapper"), a(f, "class", "ReceiptWrapper"), a(Q, "class", "Text"), a(D, "class", "PrimaryButton");
|
424
424
|
},
|
425
425
|
m(r, m) {
|
426
|
-
d(r, e, m), j && j.m(e, null), p(e, n), h && h.m(e, null), d(r, t, m), d(r, f, m), p(f, l), p(f, u), p(f, o), p(o, s), p(s, J), p(o, w), p(o, b), p(b, P), d(r, H, m), d(r, Q, m), p(Q,
|
426
|
+
d(r, e, m), j && j.m(e, null), p(e, n), h && h.m(e, null), d(r, t, m), d(r, f, m), p(f, l), p(f, u), p(f, o), p(o, s), p(s, J), p(o, w), p(o, b), p(b, P), d(r, H, m), d(r, Q, m), p(Q, x), d(r, S, m), y && y.m(r, m), d(r, U, m), g && g.m(r, m), d(r, T, m), d(r, D, m), p(D, N), F || (Y = I(
|
427
427
|
D,
|
428
428
|
"click",
|
429
429
|
/*closeReceipt*/
|
@@ -449,7 +449,7 @@ function tn(A) {
|
|
449
449
|
r[11]
|
450
450
|
), m[0] & /*text*/
|
451
451
|
8192 && M(
|
452
|
-
|
452
|
+
x,
|
453
453
|
/*text*/
|
454
454
|
r[13]
|
455
455
|
), /*txnInfo*/
|
@@ -459,7 +459,7 @@ function tn(A) {
|
|
459
459
|
r[18]("close") + "") && M(N, C);
|
460
460
|
},
|
461
461
|
d(r) {
|
462
|
-
r && (v(e), v(t), v(f), v(H), v(Q), v(
|
462
|
+
r && (v(e), v(t), v(f), v(H), v(Q), v(S), v(U), v(T), v(D)), j && j.d(), h && h.d(), y && y.d(r), g && g.d(r), F = !1, Y();
|
463
463
|
}
|
464
464
|
};
|
465
465
|
}
|
@@ -615,7 +615,7 @@ function me(A) {
|
|
615
615
|
c() {
|
616
616
|
for (let f = 0; f < t.length; f += 1)
|
617
617
|
t[f].c();
|
618
|
-
e =
|
618
|
+
e = Se();
|
619
619
|
},
|
620
620
|
m(f, l) {
|
621
621
|
for (let c = 0; c < t.length; c += 1)
|
@@ -640,7 +640,7 @@ function me(A) {
|
|
640
640
|
}
|
641
641
|
},
|
642
642
|
d(f) {
|
643
|
-
f && v(e),
|
643
|
+
f && v(e), xe(t, f);
|
644
644
|
}
|
645
645
|
};
|
646
646
|
}
|
@@ -846,11 +846,11 @@ let un = "https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js", v
|
|
846
846
|
function dn(A, e, n) {
|
847
847
|
let t;
|
848
848
|
Re(A, Oe, (i) => n(18, t = i)), oe.extend(Ge);
|
849
|
-
let { endpoint: f } = e, { session: l } = e, { lang: c = "en" } = e, { local: u = "en-US" } = e, { showerrors: o = "true" } = e, { showclosebutton: s = "false" } = e, { showcontactbutton: J = "false" } = e, { translationurl: w } = e, { assetsurl: b = "" } = e, { customerid: P } = e, { transactionid: H } = e, { clientstyling: Q = "" } = e, { clientstylingurl:
|
850
|
-
var
|
849
|
+
let { endpoint: f } = e, { session: l } = e, { lang: c = "en" } = e, { local: u = "en-US" } = e, { showerrors: o = "true" } = e, { showclosebutton: s = "false" } = e, { showcontactbutton: J = "false" } = e, { translationurl: w } = e, { assetsurl: b = "" } = e, { customerid: P } = e, { transactionid: H } = e, { clientstyling: Q = "" } = e, { clientstylingurl: x = "" } = e;
|
850
|
+
var S;
|
851
851
|
(function(i) {
|
852
852
|
i.Success = "Success", i.Maintenance = "Maintenance";
|
853
|
-
})(
|
853
|
+
})(S || (S = {}));
|
854
854
|
const U = {
|
855
855
|
Success: se,
|
856
856
|
Voided: se,
|
@@ -922,7 +922,7 @@ function dn(A, e, n) {
|
|
922
922
|
let i = document.createElement("style");
|
923
923
|
i.innerHTML = Q, g.appendChild(i);
|
924
924
|
}, be = () => {
|
925
|
-
let i = new URL(
|
925
|
+
let i = new URL(x), X = document.createElement("style");
|
926
926
|
fetch(i.href).then((L) => L.text()).then((L) => {
|
927
927
|
X.innerHTML = L, setTimeout(
|
928
928
|
() => {
|
@@ -958,7 +958,7 @@ function dn(A, e, n) {
|
|
958
958
|
};
|
959
959
|
fetch(i, L).then((k) => k.json()).then((k) => {
|
960
960
|
var te, fe, Ae, ie;
|
961
|
-
if (k.ResponseCode !==
|
961
|
+
if (k.ResponseCode !== S.Success) {
|
962
962
|
n(16, m = k.ResponseCode), n(17, W = o.toLowerCase() === "false" || !o), Ne();
|
963
963
|
return;
|
964
964
|
}
|
@@ -981,13 +981,7 @@ function dn(A, e, n) {
|
|
981
981
|
amount: pe.format(Number(N.amount)),
|
982
982
|
currency: N.currency
|
983
983
|
}
|
984
|
-
})), n(11, Y = t(Ie(N.status, N.type))), n(13, h = t(We(N.status, N.type), { values: { errorText: N.message } })), b ? n(14, y = Ye(b, N.status)) : n(14, y = U[N.status])
|
985
|
-
{
|
986
|
-
type: "StartSessionCountdown",
|
987
|
-
xPaymentSessionToken: l
|
988
|
-
},
|
989
|
-
window.location.href
|
990
|
-
);
|
984
|
+
})), n(11, Y = t(Ie(N.status, N.type))), n(13, h = t(We(N.status, N.type), { values: { errorText: N.message } })), b ? n(14, y = Ye(b, N.status)) : n(14, y = U[N.status]);
|
991
985
|
});
|
992
986
|
}, ne = (i) => {
|
993
987
|
i && window.postMessage(
|
@@ -1014,23 +1008,23 @@ function dn(A, e, n) {
|
|
1014
1008
|
});
|
1015
1009
|
}
|
1016
1010
|
return A.$$set = (i) => {
|
1017
|
-
"endpoint" in i && n(22, f = i.endpoint), "session" in i && n(23, l = i.session), "lang" in i && n(24, c = i.lang), "local" in i && n(25, u = i.local), "showerrors" in i && n(26, o = i.showerrors), "showclosebutton" in i && n(0, s = i.showclosebutton), "showcontactbutton" in i && n(1, J = i.showcontactbutton), "translationurl" in i && n(2, w = i.translationurl), "assetsurl" in i && n(3, b = i.assetsurl), "customerid" in i && n(27, P = i.customerid), "transactionid" in i && n(28, H = i.transactionid), "clientstyling" in i && n(4, Q = i.clientstyling), "clientstylingurl" in i && n(5,
|
1011
|
+
"endpoint" in i && n(22, f = i.endpoint), "session" in i && n(23, l = i.session), "lang" in i && n(24, c = i.lang), "local" in i && n(25, u = i.local), "showerrors" in i && n(26, o = i.showerrors), "showclosebutton" in i && n(0, s = i.showclosebutton), "showcontactbutton" in i && n(1, J = i.showcontactbutton), "translationurl" in i && n(2, w = i.translationurl), "assetsurl" in i && n(3, b = i.assetsurl), "customerid" in i && n(27, P = i.customerid), "transactionid" in i && n(28, H = i.transactionid), "clientstyling" in i && n(4, Q = i.clientstyling), "clientstylingurl" in i && n(5, x = i.clientstylingurl);
|
1018
1012
|
}, A.$$.update = () => {
|
1019
1013
|
A.$$.dirty[0] & /*endpoint, session, customerid, transactionid, showerrors*/
|
1020
1014
|
482344960 && f && l && P && H && o && je(), A.$$.dirty[0] & /*lang*/
|
1021
1015
|
16777216 && c && ge(), A.$$.dirty[0] & /*lang, translationurl*/
|
1022
1016
|
16777220 && c && w && Je(), A.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
1023
1017
|
80 && Q && g && Xe(), A.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
1024
|
-
96 &&
|
1018
|
+
96 && x && g && be();
|
1025
1019
|
}, [
|
1026
1020
|
s,
|
1027
1021
|
J,
|
1028
1022
|
w,
|
1029
1023
|
b,
|
1030
1024
|
Q,
|
1031
|
-
S,
|
1032
|
-
g,
|
1033
1025
|
x,
|
1026
|
+
g,
|
1027
|
+
S,
|
1034
1028
|
T,
|
1035
1029
|
N,
|
1036
1030
|
F,
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let s=function(e){return function(...n){try{return e.apply(this,n)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CashierMethodDetails-
|
1
|
+
"use strict";if(typeof window!="undefined"){let s=function(e){return function(...n){try{return e.apply(this,n)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CashierMethodDetails-DZPm8tes.cjs")).then(e=>e.CashierMethodDetails_ce).then(({default:e})=>{!customElements.get("cashier-method-details")&&customElements.define("cashier-method-details",e.element)})}
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
10
10
|
}
|
11
11
|
};
|
12
12
|
};
|
13
|
-
customElements.define = n(customElements.define), import("../components/CashierMethodDetails-
|
13
|
+
customElements.define = n(customElements.define), import("../components/CashierMethodDetails-CL7ZEED9.js").then((e) => e.C).then(({ default: e }) => {
|
14
14
|
!customElements.get("cashier-method-details") && customElements.define("cashier-method-details", e.element);
|
15
15
|
});
|
16
16
|
}
|
package/package.json
CHANGED
@@ -1 +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;
|
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-YkYxLKu7.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;
|
@@ -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-D5_8Vwfn.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-CMb1eK44.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)}));
|
@@ -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-BEnqZAxL.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,7 +1,7 @@
|
|
1
|
-
import { r
|
2
|
-
const
|
1
|
+
import { r, h as s, H as n, g as a } from "./index-97d17652-WK_DbPS4.js";
|
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;
|
5
5
|
}
|
6
6
|
handleSrc() {
|
7
7
|
if (!this.shouldLoad)
|
@@ -22,10 +22,10 @@ const o = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;bord
|
|
22
22
|
}, { rootMargin: this.detectDistance })), window.EMUxObserver.observe(this.el)) : (this.shouldLoad = !0, this.handleSrc());
|
23
23
|
}
|
24
24
|
render() {
|
25
|
-
return s(
|
25
|
+
return s(n, { 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
26
|
}
|
27
27
|
get el() {
|
28
|
-
return
|
28
|
+
return a(this);
|
29
29
|
}
|
30
30
|
static get watchers() {
|
31
31
|
return {
|
@@ -33,7 +33,7 @@ const o = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;bord
|
|
33
33
|
};
|
34
34
|
}
|
35
35
|
};
|
36
|
-
h.style =
|
36
|
+
h.style = o;
|
37
37
|
export {
|
38
38
|
h as U
|
39
39
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const i=require("./index-97d17652-D5_8Vwfn.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,7 +1,7 @@
|
|
1
|
-
import { r
|
2
|
-
const
|
1
|
+
import { r, h as s, H as n, g as a } from "./index-97d17652-BEnqZAxL.js";
|
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;
|
5
5
|
}
|
6
6
|
handleSrc() {
|
7
7
|
if (!this.shouldLoad)
|
@@ -22,10 +22,10 @@ const o = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;bord
|
|
22
22
|
}, { rootMargin: this.detectDistance })), window.EMUxObserver.observe(this.el)) : (this.shouldLoad = !0, this.handleSrc());
|
23
23
|
}
|
24
24
|
render() {
|
25
|
-
return s(
|
25
|
+
return s(n, { 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
26
|
}
|
27
27
|
get el() {
|
28
|
-
return
|
28
|
+
return a(this);
|
29
29
|
}
|
30
30
|
static get watchers() {
|
31
31
|
return {
|
@@ -33,7 +33,7 @@ const o = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;bord
|
|
33
33
|
};
|
34
34
|
}
|
35
35
|
};
|
36
|
-
h.style =
|
36
|
+
h.style = o;
|
37
37
|
export {
|
38
38
|
h as U
|
39
39
|
};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { U as h } from "./ui-image-
|
2
|
-
import { r as o, h as t, H as i } from "./index-97d17652-
|
1
|
+
import { U as h } from "./ui-image-b7b48fe5-V9vp4faA.js";
|
2
|
+
import { r as o, h as t, H as i } from "./index-97d17652-BEnqZAxL.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-
|
2
|
-
import { r as o, h as t, H as i } from "./index-97d17652-
|
1
|
+
import { U as h } from "./ui-image-b7b48fe5-Cf9Vq5pI.js";
|
2
|
+
import { r as o, h as t, H as i } from "./index-97d17652-WK_DbPS4.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,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./ui-image-
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./ui-image-b7b48fe5-DCck2kk1.cjs"),t=require("./index-97d17652-D5_8Vwfn.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};
|