@everymatrix/cashier-page 1.76.3 → 1.76.5
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-D4Ly9gf-.cjs +8 -0
- package/components/CashierError-JGcUDe5q.js +4724 -0
- package/components/CashierError-Pah8UQRU.js +4687 -0
- package/components/CashierHeader-7TEoWnmr.cjs +1 -0
- package/components/{CashierHeader-DLG8WfO6.js → CashierHeader-B-6229QC.js} +94 -94
- package/components/{CashierHeader-BCdG7bez.js → CashierHeader-hmszYvmh.js} +96 -96
- package/components/{CashierIframeRedirect-Dk2xegfN.js → CashierIframeRedirect-CeCwhuEC.js} +22 -22
- package/components/{CashierIframeRedirect-CnEM1gDh.js → CashierIframeRedirect-D-UbBdvU.js} +32 -32
- package/components/{CashierIframeRedirect-CkRri0IY.cjs → CashierIframeRedirect-DufSDCHc.cjs} +1 -1
- package/components/CashierMethodDetails-CCvGvImq.cjs +100 -0
- package/components/{CashierMethodDetails-BoS6MlUx.js → CashierMethodDetails-DIPaEztP.js} +3171 -3247
- package/components/{CashierMethodDetails-B7K0QBeJ.js → CashierMethodDetails-DL0jGlq-.js} +3140 -3216
- package/components/{CashierMethodsList-CRFPceug.js → CashierMethodsList-Be1K_DSz.js} +129 -129
- package/components/CashierMethodsList-CmMjF5Qz.cjs +1 -0
- package/components/{CashierMethodsList-DhR3GOR6.js → CashierMethodsList-XVaC4KBw.js} +93 -93
- package/components/CashierModal-BD1P0e2M.js +268 -0
- package/components/CashierModal-CJQYy1vM.js +268 -0
- package/components/CashierModal-Du43ecUa.cjs +1 -0
- package/components/{CashierNotifications-BdzVIY--.cjs → CashierNotifications-4k9EHney.cjs} +1 -1
- package/components/{CashierNotifications-BJvuSaMv.js → CashierNotifications-BkEBfVRL.js} +32 -32
- package/components/{CashierNotifications-DVtcZTJB.js → CashierNotifications-Du3gv_p2.js} +32 -32
- package/components/CashierPage-CEg5bfhM.js +2555 -0
- package/components/CashierPage-D6O-bppA.js +2555 -0
- package/components/CashierPage-DY8eNfgA.cjs +1 -0
- package/components/CashierReceiptPage-BHip2xEe.js +1635 -0
- package/components/CashierReceiptPage-BJa57cwt.cjs +1 -0
- package/components/CashierReceiptPage-qZhdiDvO.js +1633 -0
- package/components/CashierSessionExpirationModal--BscQIqY.cjs +2 -0
- package/components/CashierSessionExpirationModal-OdxW_IRP.js +1202 -0
- package/components/CashierSessionExpirationModal-lfnxQ2Xv.js +1202 -0
- package/components/{CashierSpinner-nxLopx6S.js → CashierSpinner-BhprtVru.js} +16 -16
- package/components/{CashierSpinner-DGvMA7TT.js → CashierSpinner-dlGI7cAT.js} +15 -15
- package/components/{CashierSpinner-DtxnAuCX.cjs → CashierSpinner-frLgxxaM.cjs} +1 -1
- package/components/{CashierTransactionHistory-D9cuJwNg.js → CashierTransactionHistory-BmQFMz-n.js} +73 -73
- package/components/{CashierTransactionHistory-Bv4k6sdm.js → CashierTransactionHistory-CzTqqXqb.js} +116 -116
- package/components/{CashierTransactionHistory-tuj8kYsP.cjs → CashierTransactionHistory-D72Vabz1.cjs} +1 -1
- package/components/CashierVerifications-CNFGuUrd.js +604 -0
- package/components/CashierVerifications-CTurGxxs.js +608 -0
- package/components/CashierVerifications-lT3j_QiA.cjs +1 -0
- package/components/{TxnStatusIcon-Cz9gvTZb.js → TxnStatusIcon-C49SJ8zW.js} +19 -19
- package/components/{TxnStatusIcon-_w4gDvXk.js → TxnStatusIcon-PU4w1Svj.js} +23 -23
- package/components/{TxnStatusIcon-BnYqfnba.cjs → TxnStatusIcon-TDn0xXca.cjs} +1 -1
- package/components/{TxnTypeIcons-BoTS7N4H.js → TxnTypeIcons-B4sAslci.js} +14 -14
- package/components/{TxnTypeIcons-BpU4tRqc.cjs → TxnTypeIcons-Bf_EvSei.cjs} +1 -1
- package/components/{TxnTypeIcons-UBC4VGlN.js → TxnTypeIcons-BoUx1A9V.js} +14 -14
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-C7V2DWFg.js → index-97d17652--F7PvMq9.js} +176 -176
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/{index-97d17652-DIpvPU9H.js → index-97d17652-CCFHkzJw.js} +187 -187
- package/stencil/index-b2193545-BoSqyMpB.js +519 -0
- package/stencil/index-b2193545-D4dOaNlR.js +503 -0
- package/stencil/index-b2193545-DGHOe8n4.cjs +1 -0
- package/stencil/{ui-image-am9MgSQ8.js → ui-image-BWJXFWH1.js} +1 -1
- package/stencil/{ui-image-CNNeJmP0.cjs → ui-image-ByEXiBzx.cjs} +1 -1
- package/stencil/{ui-image-DCPAt25-.js → ui-image-DIEeZy5u.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-B-k0kWgx.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D8-wEkoZ.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-yceZ9WkN.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-CzFe50WB.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-Ha_4GYwN.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-z5LhXZY2.js → ui-image_2-qO3reSlr.js} +2 -2
- package/stencil/{ui-skeleton-vQGsM2TX.js → ui-skeleton-4-zrLsIW.js} +2 -2
- package/stencil/{ui-skeleton-D1L4lwNZ.js → ui-skeleton-9boHSjtG.js} +2 -2
- package/stencil/{ui-skeleton-D6had8uT.cjs → ui-skeleton-DgAs7VA3.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-Biyf8F-y.js → ui-skeleton-ae35c6f2-8tYGV8SR.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-DSTcB-py.cjs → ui-skeleton-ae35c6f2-DLHrpWJM.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-CzSGP5Of.js → ui-skeleton-ae35c6f2-IN_dPA5_.js} +1 -1
- package/components/CashierError-BEeh6TaY.cjs +0 -21
- package/components/CashierError-CyV-JySM.js +0 -4754
- package/components/CashierError-Dc34a9CC.js +0 -4717
- package/components/CashierHeader-DGEWiZlt.cjs +0 -1
- package/components/CashierMethodDetails-bl4ScKF1.cjs +0 -86
- package/components/CashierMethodsList-DY3MlNFY.cjs +0 -1
- package/components/CashierModal-Cd446Ova.cjs +0 -1
- package/components/CashierModal-CzXlonwB.js +0 -249
- package/components/CashierModal-DO7QbZLa.js +0 -249
- package/components/CashierPage-B0lu-4i9.js +0 -2343
- package/components/CashierPage-BrEwgGiY.js +0 -2343
- package/components/CashierPage-Cuva9Y9y.cjs +0 -1
- package/components/CashierReceiptPage-D0NlK-Nf.cjs +0 -1
- package/components/CashierReceiptPage-DZJjgSBw.js +0 -1607
- package/components/CashierReceiptPage-DvKEi_ba.js +0 -1605
- package/components/CashierSessionExpirationModal-B_Y3Xi95.js +0 -1212
- package/components/CashierSessionExpirationModal-CBFaRe-x.cjs +0 -2
- package/components/CashierSessionExpirationModal-XdME6XUb.js +0 -1212
- package/components/CashierVerifications-3sSSv6ir.js +0 -647
- package/components/CashierVerifications-cWStjKKK.js +0 -643
- package/components/CashierVerifications-lbOEU8Wv.cjs +0 -1
- package/stencil/index-97d17652-BgKdDb-e.cjs +0 -1
- package/stencil/index-b2193545-9IBTGq1X.cjs +0 -1
- package/stencil/index-b2193545-B5WVVmva.js +0 -519
- package/stencil/index-b2193545-CfiRkmy3.js +0 -503
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import { W as A, S as D, b as H, s as K, f as _, d as N, g as v, t as p, h as b, X as P, Y as R, l as k, v as T, r as X, e as Y, Z as L, K as x, u as F, j as G, k as I, p as d, m as w, _ as J, n as C, o as Q, y as M, z as V, A as $, U as S, C as tt, D as et, E as it, c as nt } from "./CashierError-Pah8UQRU.js";
|
|
2
|
+
function z(e, { delay: t = 0, duration: i = 400, easing: n = A } = {}) {
|
|
3
|
+
const l = +getComputedStyle(e).opacity;
|
|
4
|
+
return {
|
|
5
|
+
delay: t,
|
|
6
|
+
duration: i,
|
|
7
|
+
easing: n,
|
|
8
|
+
css: (o) => `opacity: ${o * l}`
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
function st(e) {
|
|
12
|
+
N(e, "svelte-16p7bax", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;justify-content:center;align-items:center;z-index:10}.ModalContainer{min-width:300px;height:100%;max-height:70%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--emw--spacing-large, 20px);position:relative;padding:var(--emw--spacing-medium, 15px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff);max-width:600px}.CloseButton{position:absolute;left:0;top:0;margin:10px;z-index:20}@container (max-width: 475px){.ModalContainer{max-width:90%;max-height:80vh;margin:auto}}");
|
|
13
|
+
}
|
|
14
|
+
const lt = (e) => ({}), j = (e) => ({});
|
|
15
|
+
function E(e) {
|
|
16
|
+
let t, i, n, l, o, g, c, h, r = (
|
|
17
|
+
/*modaltype*/
|
|
18
|
+
e[3] !== "error" && B(e)
|
|
19
|
+
);
|
|
20
|
+
const y = (
|
|
21
|
+
/*#slots*/
|
|
22
|
+
e[12].content
|
|
23
|
+
), u = Y(
|
|
24
|
+
y,
|
|
25
|
+
e,
|
|
26
|
+
/*$$scope*/
|
|
27
|
+
e[11],
|
|
28
|
+
j
|
|
29
|
+
);
|
|
30
|
+
return {
|
|
31
|
+
c() {
|
|
32
|
+
t = C("div"), i = C("div"), n = C("div"), r && r.c(), l = Q(), u && u.c(), d(n, "class", "ModalContainer"), d(n, "style", o = /*modaltype*/
|
|
33
|
+
e[3] === "video" ? "height: 70%" : "height: auto"), d(i, "id", "Modal"), x(() => (
|
|
34
|
+
/*div1_elementresize_handler*/
|
|
35
|
+
e[14].call(i)
|
|
36
|
+
));
|
|
37
|
+
},
|
|
38
|
+
m(a, f) {
|
|
39
|
+
k(a, t, f), w(t, i), w(i, n), r && r.m(n, null), w(n, l), u && u.m(n, null), e[13](i), g = J(
|
|
40
|
+
i,
|
|
41
|
+
/*div1_elementresize_handler*/
|
|
42
|
+
e[14].bind(i)
|
|
43
|
+
), e[15](t), h = !0;
|
|
44
|
+
},
|
|
45
|
+
p(a, f) {
|
|
46
|
+
e = a, /*modaltype*/
|
|
47
|
+
e[3] !== "error" ? r ? r.p(e, f) : (r = B(e), r.c(), r.m(n, l)) : r && (r.d(1), r = null), u && u.p && (!h || f & /*$$scope*/
|
|
48
|
+
2048) && F(
|
|
49
|
+
u,
|
|
50
|
+
y,
|
|
51
|
+
e,
|
|
52
|
+
/*$$scope*/
|
|
53
|
+
e[11],
|
|
54
|
+
h ? I(
|
|
55
|
+
y,
|
|
56
|
+
/*$$scope*/
|
|
57
|
+
e[11],
|
|
58
|
+
f,
|
|
59
|
+
lt
|
|
60
|
+
) : G(
|
|
61
|
+
/*$$scope*/
|
|
62
|
+
e[11]
|
|
63
|
+
),
|
|
64
|
+
j
|
|
65
|
+
), (!h || f & /*modaltype*/
|
|
66
|
+
8 && o !== (o = /*modaltype*/
|
|
67
|
+
e[3] === "video" ? "height: 70%" : "height: auto")) && d(n, "style", o);
|
|
68
|
+
},
|
|
69
|
+
i(a) {
|
|
70
|
+
h || (b(u, a), a && x(() => {
|
|
71
|
+
h && (c || (c = L(
|
|
72
|
+
i,
|
|
73
|
+
z,
|
|
74
|
+
/*duration*/
|
|
75
|
+
e[4],
|
|
76
|
+
!0
|
|
77
|
+
)), c.run(1));
|
|
78
|
+
}), h = !0);
|
|
79
|
+
},
|
|
80
|
+
o(a) {
|
|
81
|
+
p(u, a), a && (c || (c = L(
|
|
82
|
+
i,
|
|
83
|
+
z,
|
|
84
|
+
/*duration*/
|
|
85
|
+
e[4],
|
|
86
|
+
!1
|
|
87
|
+
)), c.run(0)), h = !1;
|
|
88
|
+
},
|
|
89
|
+
d(a) {
|
|
90
|
+
a && v(t), r && r.d(), u && u.d(a), e[13](null), g(), a && c && c.end(), e[15](null);
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
function B(e) {
|
|
95
|
+
let t, i, n, l;
|
|
96
|
+
return {
|
|
97
|
+
c() {
|
|
98
|
+
t = S("svg"), i = S("path"), d(i, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), d(i, "fill", "#111111"), d(t, "xmlns", "http://www.w3.org/2000/svg"), d(t, "width", "13"), d(t, "height", "13"), d(t, "viewBox", "0 0 13 13"), d(t, "fill", "none"), d(t, "class", "CloseButton");
|
|
99
|
+
},
|
|
100
|
+
m(o, g) {
|
|
101
|
+
k(o, t, g), w(t, i), n || (l = $(
|
|
102
|
+
t,
|
|
103
|
+
"click",
|
|
104
|
+
/*closeModal*/
|
|
105
|
+
e[7]
|
|
106
|
+
), n = !0);
|
|
107
|
+
},
|
|
108
|
+
p: V,
|
|
109
|
+
d(o) {
|
|
110
|
+
o && v(t), n = !1, l();
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
function ot(e) {
|
|
115
|
+
let t, i, n = (
|
|
116
|
+
/*show*/
|
|
117
|
+
e[2] === "true" && E(e)
|
|
118
|
+
);
|
|
119
|
+
return {
|
|
120
|
+
c() {
|
|
121
|
+
n && n.c(), t = T();
|
|
122
|
+
},
|
|
123
|
+
m(l, o) {
|
|
124
|
+
n && n.m(l, o), k(l, t, o), i = !0;
|
|
125
|
+
},
|
|
126
|
+
p(l, [o]) {
|
|
127
|
+
/*show*/
|
|
128
|
+
l[2] === "true" ? n ? (n.p(l, o), o & /*show*/
|
|
129
|
+
4 && b(n, 1)) : (n = E(l), n.c(), b(n, 1), n.m(t.parentNode, t)) : n && (P(), p(n, 1, 1, () => {
|
|
130
|
+
n = null;
|
|
131
|
+
}), R());
|
|
132
|
+
},
|
|
133
|
+
i(l) {
|
|
134
|
+
i || (b(n), i = !0);
|
|
135
|
+
},
|
|
136
|
+
o(l) {
|
|
137
|
+
p(n), i = !1;
|
|
138
|
+
},
|
|
139
|
+
d(l) {
|
|
140
|
+
l && v(t), n && n.d(l);
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
function at(e, t, i) {
|
|
145
|
+
let { $$slots: n = {}, $$scope: l } = t, { mbsource: o } = t, { clientstyling: g } = t, { clientstylingurl: c } = t, { show: h } = t, { modaltype: r = "" } = t, { duration: y = 200 } = t, { width: u } = t, { height: a } = t, f, m;
|
|
146
|
+
const U = () => {
|
|
147
|
+
window.dispatchEvent(new CustomEvent("modal-update", { detail: { type: "closed", data: {} } }));
|
|
148
|
+
};
|
|
149
|
+
X(() => () => {
|
|
150
|
+
});
|
|
151
|
+
function W(s) {
|
|
152
|
+
M[s ? "unshift" : "push"](() => {
|
|
153
|
+
f = s, i(6, f);
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
function Z() {
|
|
157
|
+
u = this.clientWidth, a = this.clientHeight, i(0, u), i(1, a);
|
|
158
|
+
}
|
|
159
|
+
function q(s) {
|
|
160
|
+
M[s ? "unshift" : "push"](() => {
|
|
161
|
+
m = s, i(5, m);
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
return e.$$set = (s) => {
|
|
165
|
+
"mbsource" in s && i(8, o = s.mbsource), "clientstyling" in s && i(9, g = s.clientstyling), "clientstylingurl" in s && i(10, c = s.clientstylingurl), "show" in s && i(2, h = s.show), "modaltype" in s && i(3, r = s.modaltype), "duration" in s && i(4, y = s.duration), "width" in s && i(0, u = s.width), "height" in s && i(1, a = s.height), "$$scope" in s && i(11, l = s.$$scope);
|
|
166
|
+
}, e.$$.update = () => {
|
|
167
|
+
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
168
|
+
544 && g && m && tt(m, g), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
169
|
+
1056 && c && m && et(m, c), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
170
|
+
288 && o && m && it(m, `${o}.Style`);
|
|
171
|
+
}, [
|
|
172
|
+
u,
|
|
173
|
+
a,
|
|
174
|
+
h,
|
|
175
|
+
r,
|
|
176
|
+
y,
|
|
177
|
+
m,
|
|
178
|
+
f,
|
|
179
|
+
U,
|
|
180
|
+
o,
|
|
181
|
+
g,
|
|
182
|
+
c,
|
|
183
|
+
l,
|
|
184
|
+
n,
|
|
185
|
+
W,
|
|
186
|
+
Z,
|
|
187
|
+
q
|
|
188
|
+
];
|
|
189
|
+
}
|
|
190
|
+
class O extends D {
|
|
191
|
+
constructor(t) {
|
|
192
|
+
super(), H(
|
|
193
|
+
this,
|
|
194
|
+
t,
|
|
195
|
+
at,
|
|
196
|
+
ot,
|
|
197
|
+
K,
|
|
198
|
+
{
|
|
199
|
+
mbsource: 8,
|
|
200
|
+
clientstyling: 9,
|
|
201
|
+
clientstylingurl: 10,
|
|
202
|
+
show: 2,
|
|
203
|
+
modaltype: 3,
|
|
204
|
+
duration: 4,
|
|
205
|
+
width: 0,
|
|
206
|
+
height: 1
|
|
207
|
+
},
|
|
208
|
+
st
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
get mbsource() {
|
|
212
|
+
return this.$$.ctx[8];
|
|
213
|
+
}
|
|
214
|
+
set mbsource(t) {
|
|
215
|
+
this.$$set({ mbsource: t }), _();
|
|
216
|
+
}
|
|
217
|
+
get clientstyling() {
|
|
218
|
+
return this.$$.ctx[9];
|
|
219
|
+
}
|
|
220
|
+
set clientstyling(t) {
|
|
221
|
+
this.$$set({ clientstyling: t }), _();
|
|
222
|
+
}
|
|
223
|
+
get clientstylingurl() {
|
|
224
|
+
return this.$$.ctx[10];
|
|
225
|
+
}
|
|
226
|
+
set clientstylingurl(t) {
|
|
227
|
+
this.$$set({ clientstylingurl: t }), _();
|
|
228
|
+
}
|
|
229
|
+
get show() {
|
|
230
|
+
return this.$$.ctx[2];
|
|
231
|
+
}
|
|
232
|
+
set show(t) {
|
|
233
|
+
this.$$set({ show: t }), _();
|
|
234
|
+
}
|
|
235
|
+
get modaltype() {
|
|
236
|
+
return this.$$.ctx[3];
|
|
237
|
+
}
|
|
238
|
+
set modaltype(t) {
|
|
239
|
+
this.$$set({ modaltype: t }), _();
|
|
240
|
+
}
|
|
241
|
+
get duration() {
|
|
242
|
+
return this.$$.ctx[4];
|
|
243
|
+
}
|
|
244
|
+
set duration(t) {
|
|
245
|
+
this.$$set({ duration: t }), _();
|
|
246
|
+
}
|
|
247
|
+
get width() {
|
|
248
|
+
return this.$$.ctx[0];
|
|
249
|
+
}
|
|
250
|
+
set width(t) {
|
|
251
|
+
this.$$set({ width: t }), _();
|
|
252
|
+
}
|
|
253
|
+
get height() {
|
|
254
|
+
return this.$$.ctx[1];
|
|
255
|
+
}
|
|
256
|
+
set height(t) {
|
|
257
|
+
this.$$set({ height: t }), _();
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
nt(O, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, show: {}, modaltype: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
|
|
261
|
+
const ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
262
|
+
__proto__: null,
|
|
263
|
+
default: O
|
|
264
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
265
|
+
export {
|
|
266
|
+
ut as C,
|
|
267
|
+
z as f
|
|
268
|
+
};
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import { W as A, S as D, b as H, s as K, f as _, c as N, e as v, t as p, g as b, X as P, Y as R, k, r as T, q as X, d as Y, Z as L, K as x, u as F, h as G, j as I, o as d, l as w, _ as J, m as C, n as Q, x as M, y as V, z as $, U as S, A as tt, B as et, C as it, D as nt } from "./CashierError-JGcUDe5q.js";
|
|
2
|
+
function z(e, { delay: t = 0, duration: i = 400, easing: n = A } = {}) {
|
|
3
|
+
const l = +getComputedStyle(e).opacity;
|
|
4
|
+
return {
|
|
5
|
+
delay: t,
|
|
6
|
+
duration: i,
|
|
7
|
+
easing: n,
|
|
8
|
+
css: (o) => `opacity: ${o * l}`
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
function st(e) {
|
|
12
|
+
N(e, "svelte-16p7bax", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;justify-content:center;align-items:center;z-index:10}.ModalContainer{min-width:300px;height:100%;max-height:70%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--emw--spacing-large, 20px);position:relative;padding:var(--emw--spacing-medium, 15px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff);max-width:600px}.CloseButton{position:absolute;left:0;top:0;margin:10px;z-index:20}@container (max-width: 475px){.ModalContainer{max-width:90%;max-height:80vh;margin:auto}}");
|
|
13
|
+
}
|
|
14
|
+
const lt = (e) => ({}), j = (e) => ({});
|
|
15
|
+
function B(e) {
|
|
16
|
+
let t, i, n, l, o, g, c, h, r = (
|
|
17
|
+
/*modaltype*/
|
|
18
|
+
e[3] !== "error" && E(e)
|
|
19
|
+
);
|
|
20
|
+
const y = (
|
|
21
|
+
/*#slots*/
|
|
22
|
+
e[12].content
|
|
23
|
+
), u = Y(
|
|
24
|
+
y,
|
|
25
|
+
e,
|
|
26
|
+
/*$$scope*/
|
|
27
|
+
e[11],
|
|
28
|
+
j
|
|
29
|
+
);
|
|
30
|
+
return {
|
|
31
|
+
c() {
|
|
32
|
+
t = C("div"), i = C("div"), n = C("div"), r && r.c(), l = Q(), u && u.c(), d(n, "class", "ModalContainer"), d(n, "style", o = /*modaltype*/
|
|
33
|
+
e[3] === "video" ? "height: 70%" : "height: auto"), d(i, "id", "Modal"), x(() => (
|
|
34
|
+
/*div1_elementresize_handler*/
|
|
35
|
+
e[14].call(i)
|
|
36
|
+
));
|
|
37
|
+
},
|
|
38
|
+
m(a, f) {
|
|
39
|
+
k(a, t, f), w(t, i), w(i, n), r && r.m(n, null), w(n, l), u && u.m(n, null), e[13](i), g = J(
|
|
40
|
+
i,
|
|
41
|
+
/*div1_elementresize_handler*/
|
|
42
|
+
e[14].bind(i)
|
|
43
|
+
), e[15](t), h = !0;
|
|
44
|
+
},
|
|
45
|
+
p(a, f) {
|
|
46
|
+
e = a, /*modaltype*/
|
|
47
|
+
e[3] !== "error" ? r ? r.p(e, f) : (r = E(e), r.c(), r.m(n, l)) : r && (r.d(1), r = null), u && u.p && (!h || f & /*$$scope*/
|
|
48
|
+
2048) && F(
|
|
49
|
+
u,
|
|
50
|
+
y,
|
|
51
|
+
e,
|
|
52
|
+
/*$$scope*/
|
|
53
|
+
e[11],
|
|
54
|
+
h ? I(
|
|
55
|
+
y,
|
|
56
|
+
/*$$scope*/
|
|
57
|
+
e[11],
|
|
58
|
+
f,
|
|
59
|
+
lt
|
|
60
|
+
) : G(
|
|
61
|
+
/*$$scope*/
|
|
62
|
+
e[11]
|
|
63
|
+
),
|
|
64
|
+
j
|
|
65
|
+
), (!h || f & /*modaltype*/
|
|
66
|
+
8 && o !== (o = /*modaltype*/
|
|
67
|
+
e[3] === "video" ? "height: 70%" : "height: auto")) && d(n, "style", o);
|
|
68
|
+
},
|
|
69
|
+
i(a) {
|
|
70
|
+
h || (b(u, a), a && x(() => {
|
|
71
|
+
h && (c || (c = L(
|
|
72
|
+
i,
|
|
73
|
+
z,
|
|
74
|
+
/*duration*/
|
|
75
|
+
e[4],
|
|
76
|
+
!0
|
|
77
|
+
)), c.run(1));
|
|
78
|
+
}), h = !0);
|
|
79
|
+
},
|
|
80
|
+
o(a) {
|
|
81
|
+
p(u, a), a && (c || (c = L(
|
|
82
|
+
i,
|
|
83
|
+
z,
|
|
84
|
+
/*duration*/
|
|
85
|
+
e[4],
|
|
86
|
+
!1
|
|
87
|
+
)), c.run(0)), h = !1;
|
|
88
|
+
},
|
|
89
|
+
d(a) {
|
|
90
|
+
a && v(t), r && r.d(), u && u.d(a), e[13](null), g(), a && c && c.end(), e[15](null);
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
function E(e) {
|
|
95
|
+
let t, i, n, l;
|
|
96
|
+
return {
|
|
97
|
+
c() {
|
|
98
|
+
t = S("svg"), i = S("path"), d(i, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), d(i, "fill", "#111111"), d(t, "xmlns", "http://www.w3.org/2000/svg"), d(t, "width", "13"), d(t, "height", "13"), d(t, "viewBox", "0 0 13 13"), d(t, "fill", "none"), d(t, "class", "CloseButton");
|
|
99
|
+
},
|
|
100
|
+
m(o, g) {
|
|
101
|
+
k(o, t, g), w(t, i), n || (l = $(
|
|
102
|
+
t,
|
|
103
|
+
"click",
|
|
104
|
+
/*closeModal*/
|
|
105
|
+
e[7]
|
|
106
|
+
), n = !0);
|
|
107
|
+
},
|
|
108
|
+
p: V,
|
|
109
|
+
d(o) {
|
|
110
|
+
o && v(t), n = !1, l();
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
function ot(e) {
|
|
115
|
+
let t, i, n = (
|
|
116
|
+
/*show*/
|
|
117
|
+
e[2] === "true" && B(e)
|
|
118
|
+
);
|
|
119
|
+
return {
|
|
120
|
+
c() {
|
|
121
|
+
n && n.c(), t = T();
|
|
122
|
+
},
|
|
123
|
+
m(l, o) {
|
|
124
|
+
n && n.m(l, o), k(l, t, o), i = !0;
|
|
125
|
+
},
|
|
126
|
+
p(l, [o]) {
|
|
127
|
+
/*show*/
|
|
128
|
+
l[2] === "true" ? n ? (n.p(l, o), o & /*show*/
|
|
129
|
+
4 && b(n, 1)) : (n = B(l), n.c(), b(n, 1), n.m(t.parentNode, t)) : n && (P(), p(n, 1, 1, () => {
|
|
130
|
+
n = null;
|
|
131
|
+
}), R());
|
|
132
|
+
},
|
|
133
|
+
i(l) {
|
|
134
|
+
i || (b(n), i = !0);
|
|
135
|
+
},
|
|
136
|
+
o(l) {
|
|
137
|
+
p(n), i = !1;
|
|
138
|
+
},
|
|
139
|
+
d(l) {
|
|
140
|
+
l && v(t), n && n.d(l);
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
function at(e, t, i) {
|
|
145
|
+
let { $$slots: n = {}, $$scope: l } = t, { mbsource: o } = t, { clientstyling: g } = t, { clientstylingurl: c } = t, { show: h } = t, { modaltype: r = "" } = t, { duration: y = 200 } = t, { width: u } = t, { height: a } = t, f, m;
|
|
146
|
+
const O = () => {
|
|
147
|
+
window.dispatchEvent(new CustomEvent("modal-update", { detail: { type: "closed", data: {} } }));
|
|
148
|
+
};
|
|
149
|
+
X(() => () => {
|
|
150
|
+
});
|
|
151
|
+
function U(s) {
|
|
152
|
+
M[s ? "unshift" : "push"](() => {
|
|
153
|
+
f = s, i(6, f);
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
function W() {
|
|
157
|
+
u = this.clientWidth, a = this.clientHeight, i(0, u), i(1, a);
|
|
158
|
+
}
|
|
159
|
+
function Z(s) {
|
|
160
|
+
M[s ? "unshift" : "push"](() => {
|
|
161
|
+
m = s, i(5, m);
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
return e.$$set = (s) => {
|
|
165
|
+
"mbsource" in s && i(8, o = s.mbsource), "clientstyling" in s && i(9, g = s.clientstyling), "clientstylingurl" in s && i(10, c = s.clientstylingurl), "show" in s && i(2, h = s.show), "modaltype" in s && i(3, r = s.modaltype), "duration" in s && i(4, y = s.duration), "width" in s && i(0, u = s.width), "height" in s && i(1, a = s.height), "$$scope" in s && i(11, l = s.$$scope);
|
|
166
|
+
}, e.$$.update = () => {
|
|
167
|
+
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
168
|
+
544 && g && m && tt(m, g), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
169
|
+
1056 && c && m && et(m, c), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
170
|
+
288 && o && m && it(m, `${o}.Style`);
|
|
171
|
+
}, [
|
|
172
|
+
u,
|
|
173
|
+
a,
|
|
174
|
+
h,
|
|
175
|
+
r,
|
|
176
|
+
y,
|
|
177
|
+
m,
|
|
178
|
+
f,
|
|
179
|
+
O,
|
|
180
|
+
o,
|
|
181
|
+
g,
|
|
182
|
+
c,
|
|
183
|
+
l,
|
|
184
|
+
n,
|
|
185
|
+
U,
|
|
186
|
+
W,
|
|
187
|
+
Z
|
|
188
|
+
];
|
|
189
|
+
}
|
|
190
|
+
class q extends D {
|
|
191
|
+
constructor(t) {
|
|
192
|
+
super(), H(
|
|
193
|
+
this,
|
|
194
|
+
t,
|
|
195
|
+
at,
|
|
196
|
+
ot,
|
|
197
|
+
K,
|
|
198
|
+
{
|
|
199
|
+
mbsource: 8,
|
|
200
|
+
clientstyling: 9,
|
|
201
|
+
clientstylingurl: 10,
|
|
202
|
+
show: 2,
|
|
203
|
+
modaltype: 3,
|
|
204
|
+
duration: 4,
|
|
205
|
+
width: 0,
|
|
206
|
+
height: 1
|
|
207
|
+
},
|
|
208
|
+
st
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
get mbsource() {
|
|
212
|
+
return this.$$.ctx[8];
|
|
213
|
+
}
|
|
214
|
+
set mbsource(t) {
|
|
215
|
+
this.$$set({ mbsource: t }), _();
|
|
216
|
+
}
|
|
217
|
+
get clientstyling() {
|
|
218
|
+
return this.$$.ctx[9];
|
|
219
|
+
}
|
|
220
|
+
set clientstyling(t) {
|
|
221
|
+
this.$$set({ clientstyling: t }), _();
|
|
222
|
+
}
|
|
223
|
+
get clientstylingurl() {
|
|
224
|
+
return this.$$.ctx[10];
|
|
225
|
+
}
|
|
226
|
+
set clientstylingurl(t) {
|
|
227
|
+
this.$$set({ clientstylingurl: t }), _();
|
|
228
|
+
}
|
|
229
|
+
get show() {
|
|
230
|
+
return this.$$.ctx[2];
|
|
231
|
+
}
|
|
232
|
+
set show(t) {
|
|
233
|
+
this.$$set({ show: t }), _();
|
|
234
|
+
}
|
|
235
|
+
get modaltype() {
|
|
236
|
+
return this.$$.ctx[3];
|
|
237
|
+
}
|
|
238
|
+
set modaltype(t) {
|
|
239
|
+
this.$$set({ modaltype: t }), _();
|
|
240
|
+
}
|
|
241
|
+
get duration() {
|
|
242
|
+
return this.$$.ctx[4];
|
|
243
|
+
}
|
|
244
|
+
set duration(t) {
|
|
245
|
+
this.$$set({ duration: t }), _();
|
|
246
|
+
}
|
|
247
|
+
get width() {
|
|
248
|
+
return this.$$.ctx[0];
|
|
249
|
+
}
|
|
250
|
+
set width(t) {
|
|
251
|
+
this.$$set({ width: t }), _();
|
|
252
|
+
}
|
|
253
|
+
get height() {
|
|
254
|
+
return this.$$.ctx[1];
|
|
255
|
+
}
|
|
256
|
+
set height(t) {
|
|
257
|
+
this.$$set({ height: t }), _();
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
nt(q, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, show: {}, modaltype: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
|
|
261
|
+
const ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
262
|
+
__proto__: null,
|
|
263
|
+
default: q
|
|
264
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
265
|
+
export {
|
|
266
|
+
ut as C,
|
|
267
|
+
z as f
|
|
268
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("./CashierError-D4Ly9gf-.cjs");function y(i,{delay:e=0,duration:n=400,easing:l=t.identity}={}){const r=+getComputedStyle(i).opacity;return{delay:e,duration:n,easing:l,css:o=>`opacity: ${o*r}`}}function x(i){t.append_styles(i,"svelte-16p7bax","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;justify-content:center;align-items:center;z-index:10}.ModalContainer{min-width:300px;height:100%;max-height:70%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--emw--spacing-large, 20px);position:relative;padding:var(--emw--spacing-medium, 15px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff);max-width:600px}.CloseButton{position:absolute;left:0;top:0;margin:10px;z-index:20}@container (max-width: 475px){.ModalContainer{max-width:90%;max-height:80vh;margin:auto}}")}const S=i=>({}),b=i=>({});function w(i){let e,n,l,r,o,g,d,h,u=i[3]!=="error"&&C(i);const m=i[12].content,c=t.create_slot(m,i,i[11],b);return{c(){e=t.element("div"),n=t.element("div"),l=t.element("div"),u&&u.c(),r=t.space(),c&&c.c(),t.attr(l,"class","ModalContainer"),t.attr(l,"style",o=i[3]==="video"?"height: 70%":"height: auto"),t.attr(n,"id","Modal"),t.add_render_callback(()=>i[14].call(n))},m(a,f){t.insert(a,e,f),t.append(e,n),t.append(n,l),u&&u.m(l,null),t.append(l,r),c&&c.m(l,null),i[13](n),g=t.add_iframe_resize_listener(n,i[14].bind(n)),i[15](e),h=!0},p(a,f){i=a,i[3]!=="error"?u?u.p(i,f):(u=C(i),u.c(),u.m(l,r)):u&&(u.d(1),u=null),c&&c.p&&(!h||f&2048)&&t.update_slot_base(c,m,i,i[11],h?t.get_slot_changes(m,i[11],f,S):t.get_all_dirty_from_scope(i[11]),b),(!h||f&8&&o!==(o=i[3]==="video"?"height: 70%":"height: auto"))&&t.attr(l,"style",o)},i(a){h||(t.transition_in(c,a),a&&t.add_render_callback(()=>{h&&(d||(d=t.create_bidirectional_transition(n,y,i[4],!0)),d.run(1))}),h=!0)},o(a){t.transition_out(c,a),a&&(d||(d=t.create_bidirectional_transition(n,y,i[4],!1)),d.run(0)),h=!1},d(a){a&&t.detach(e),u&&u.d(),c&&c.d(a),i[13](null),g(),a&&d&&d.end(),i[15](null)}}}function C(i){let e,n,l,r;return{c(){e=t.svg_element("svg"),n=t.svg_element("path"),t.attr(n,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),t.attr(n,"fill","#111111"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"width","13"),t.attr(e,"height","13"),t.attr(e,"viewBox","0 0 13 13"),t.attr(e,"fill","none"),t.attr(e,"class","CloseButton")},m(o,g){t.insert(o,e,g),t.append(e,n),l||(r=t.listen(e,"click",i[7]),l=!0)},p:t.noop,d(o){o&&t.detach(e),l=!1,r()}}}function z(i){let e,n,l=i[2]==="true"&&w(i);return{c(){l&&l.c(),e=t.empty()},m(r,o){l&&l.m(r,o),t.insert(r,e,o),n=!0},p(r,[o]){r[2]==="true"?l?(l.p(r,o),o&4&&t.transition_in(l,1)):(l=w(r),l.c(),t.transition_in(l,1),l.m(e.parentNode,e)):l&&(t.group_outros(),t.transition_out(l,1,1,()=>{l=null}),t.check_outros())},i(r){n||(t.transition_in(l),n=!0)},o(r){t.transition_out(l),n=!1},d(r){r&&t.detach(e),l&&l.d(r)}}}function j(i,e,n){let{$$slots:l={},$$scope:r}=e,{mbsource:o}=e,{clientstyling:g}=e,{clientstylingurl:d}=e,{show:h}=e,{modaltype:u=""}=e,{duration:m=200}=e,{width:c}=e,{height:a}=e,f,_;const v=()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"closed",data:{}}}))};t.onMount(()=>()=>{});function k(s){t.binding_callbacks[s?"unshift":"push"](()=>{f=s,n(6,f)})}function L(){c=this.clientWidth,a=this.clientHeight,n(0,c),n(1,a)}function M(s){t.binding_callbacks[s?"unshift":"push"](()=>{_=s,n(5,_)})}return i.$$set=s=>{"mbsource"in s&&n(8,o=s.mbsource),"clientstyling"in s&&n(9,g=s.clientstyling),"clientstylingurl"in s&&n(10,d=s.clientstylingurl),"show"in s&&n(2,h=s.show),"modaltype"in s&&n(3,u=s.modaltype),"duration"in s&&n(4,m=s.duration),"width"in s&&n(0,c=s.width),"height"in s&&n(1,a=s.height),"$$scope"in s&&n(11,r=s.$$scope)},i.$$.update=()=>{i.$$.dirty&544&&g&&_&&t.setClientStyling(_,g),i.$$.dirty&1056&&d&&_&&t.setClientStylingURL(_,d),i.$$.dirty&288&&o&&_&&t.setStreamStyling(_,`${o}.Style`)},[c,a,h,u,m,_,f,v,o,g,d,r,l,k,L,M]}class p extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,j,z,t.safe_not_equal,{mbsource:8,clientstyling:9,clientstylingurl:10,show:2,modaltype:3,duration:4,width:0,height:1},x)}get mbsource(){return this.$$.ctx[8]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get show(){return this.$$.ctx[2]}set show(e){this.$$set({show:e}),t.flush()}get modaltype(){return this.$$.ctx[3]}set modaltype(e){this.$$set({modaltype:e}),t.flush()}get duration(){return this.$$.ctx[4]}set duration(e){this.$$set({duration:e}),t.flush()}get width(){return this.$$.ctx[0]}set width(e){this.$$set({width:e}),t.flush()}get height(){return this.$$.ctx[1]}set height(e){this.$$set({height:e}),t.flush()}}t.create_custom_element(p,{mbsource:{},clientstyling:{},clientstylingurl:{},show:{},modaltype:{},duration:{},width:{},height:{}},["content"],[],!0);const E=Object.freeze(Object.defineProperty({__proto__:null,default:p},Symbol.toStringTag,{value:"Module"}));exports.CashierModal_ce=E;exports.fade=y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierError-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierError-D4Ly9gf-.cjs");function y(i){t.append_styles(i,"svelte-ags340",".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}")}function b(i){let e,s,c,f,o,r,l,d;return{c(){e=t.element("div"),s=t.element("span"),c=t.text(i[0]),f=t.space(),o=t.element("button"),r=t.text(i[1]),t.attr(e,"class","CashierNotifications")},m(a,u){t.insert(a,e,u),t.append(e,s),t.append(s,c),t.append(e,f),t.append(e,o),t.append(o,r),i[6](e),l||(d=t.listen(o,"click",i[3]),l=!0)},p(a,[u]){u&1&&t.set_data(c,a[0]),u&2&&t.set_data(r,a[1])},i:t.noop,o:t.noop,d(a){a&&t.detach(e),i[6](null),l=!1,d()}}}function x(i,e,s){let{text:c}=e,{button:f}=e,{clientstyling:o=""}=e,{clientstylingurl:r=""}=e,l;const d=()=>{window.postMessage({type:"NotificationButtonClick"},window.location.href)},a=()=>{let n=document.createElement("style");n.innerHTML=o,l.appendChild(n)},u=()=>{let n=new URL(r),h=document.createElement("style");fetch(n.href).then(m=>m.text()).then(m=>{h.innerHTML=m,setTimeout(()=>{l.appendChild(h)},1)})};function p(n){t.binding_callbacks[n?"unshift":"push"](()=>{l=n,s(2,l)})}return i.$$set=n=>{"text"in n&&s(0,c=n.text),"button"in n&&s(1,f=n.button),"clientstyling"in n&&s(4,o=n.clientstyling),"clientstylingurl"in n&&s(5,r=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&20&&o&&l&&a(),i.$$.dirty&36&&r&&l&&u()},[c,f,l,d,o,r,p]}class g extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,x,b,t.safe_not_equal,{text:0,button:1,clientstyling:4,clientstylingurl:5},y)}get text(){return this.$$.ctx[0]}set text(e){this.$$set({text:e}),t.flush()}get button(){return this.$$.ctx[1]}set button(e){this.$$set({button:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}}t.create_custom_element(g,{text:{},button:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=g;
|