@everymatrix/cashier-page 1.74.6 → 1.74.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierConfirmModal-D6-yvknK.js → CashierConfirmModal-Dx60VYf6.js} +76 -76
- package/components/{CashierConfirmModal-C5Z0fFCo.cjs → CashierConfirmModal-irSMDzV_.cjs} +2 -2
- package/components/{CashierConfirmModal-DluW6utN.js → CashierConfirmModal-rwhmlwC5.js} +183 -183
- package/components/{CashierError-B_HILIqI.js → CashierError-BIqFaX3H.js} +1 -1
- package/components/{CashierError-CQ8ceQ8e.js → CashierError-BWuNinWy.js} +1 -1
- package/components/{CashierError-DZ5vqVXV.cjs → CashierError-CORG04aE.cjs} +1 -1
- package/components/{CashierHeader-CNyLXgin.js → CashierHeader-CXaZ-6Ua.js} +2 -2
- package/components/{CashierHeader-DW3Xs1f3.js → CashierHeader-Ca2cghIW.js} +2 -2
- package/components/{CashierHeader-Cjxrbu0V.cjs → CashierHeader-Dl6r6hK0.cjs} +1 -1
- package/components/{CashierIframeRedirect-IwNw_njq.js → CashierIframeRedirect-7GBPLJHr.js} +4 -4
- package/components/{CashierIframeRedirect-DU1GgNLD.cjs → CashierIframeRedirect-BjLvrvKL.cjs} +1 -1
- package/components/{CashierIframeRedirect-D81gVeBk.js → CashierIframeRedirect-ChyzshIQ.js} +4 -4
- package/components/{CashierMethodDetails-CfpOwAD9.js → CashierMethodDetails-BuRbRo-R.js} +1283 -1260
- package/components/{CashierMethodDetails-BI-MRKy-.js → CashierMethodDetails-CEFupmfP.js} +1173 -1150
- package/components/CashierMethodDetails-DxYPk7Br.cjs +86 -0
- package/components/{CashierMethodsList-CsOA_enM.cjs → CashierMethodsList-BI_GHUxf.cjs} +1 -1
- package/components/{CashierMethodsList-PU5P66EA.js → CashierMethodsList-BqmFmDOC.js} +3 -3
- package/components/{CashierMethodsList-CqVd20oA.js → CashierMethodsList-CB_m5hK-.js} +3 -3
- package/components/CashierModal-Bh6E-PDS.js +229 -0
- package/components/CashierModal-BwVWBmwZ.cjs +1 -0
- package/components/CashierModal-CTayVmDw.js +229 -0
- package/components/{CashierNotifications-CkXKlPIz.js → CashierNotifications-77FpsD4N.js} +1 -1
- package/components/{CashierNotifications-a3GpFzzw.js → CashierNotifications-CM4Cti_x.js} +1 -1
- package/components/{CashierNotifications-JBaW5ppf.cjs → CashierNotifications-YOOhP2yz.cjs} +1 -1
- package/components/{CashierPage-oKC2gyuD.js → CashierPage-B90j2bUX.js} +1133 -1124
- package/components/CashierPage-Bi90dl_Y.cjs +1 -0
- package/components/{CashierPage-CmBa1fJm.js → CashierPage-Dq-XwH-T.js} +1133 -1124
- package/components/{CashierReceiptPage-CZHo7bk4.js → CashierReceiptPage-BsBy8_a9.js} +213 -197
- package/components/{CashierReceiptPage-D1aUxYNu.cjs → CashierReceiptPage-C-5P1j5e.cjs} +1 -1
- package/components/{CashierReceiptPage-DKAwy-XO.js → CashierReceiptPage-TGTe-vYp.js} +211 -195
- package/components/{CashierSessionExpirationModal-B1ynET49.js → CashierSessionExpirationModal-Bwks132l.js} +46 -46
- package/components/{CashierSessionExpirationModal-CswZVz0A.js → CashierSessionExpirationModal-D7u1LLSa.js} +46 -46
- package/components/{CashierSessionExpirationModal-DztF8_bN.cjs → CashierSessionExpirationModal-lqr-I0nF.cjs} +2 -2
- package/components/{CashierSpinner-C0dfKfvc.cjs → CashierSpinner-BhE9RAhI.cjs} +1 -1
- package/components/{CashierSpinner-Pf85g3j2.js → CashierSpinner-C6RPqoHx.js} +1 -1
- package/components/{CashierSpinner-nZ-w8uRg.js → CashierSpinner-sEBjrLfs.js} +1 -1
- package/components/CashierTransactionHistory-BSO5XGtr.cjs +1 -0
- package/components/CashierTransactionHistory-CkMKi6Fz.js +1306 -0
- package/components/CashierTransactionHistory-DiONlMGi.js +1306 -0
- package/components/{CashierVerifications-DmMaSPNE.js → CashierVerifications-B63zidU5.js} +281 -351
- package/components/{CashierVerifications-CEYgwiGj.js → CashierVerifications-DkUcWYyo.js} +286 -356
- package/components/CashierVerifications-J6r2bd7v.cjs +1 -0
- package/components/{TxnStatusIcon-DIdoWxaS.js → TxnStatusIcon-Bqtf3sG3.js} +1 -1
- package/components/{TxnStatusIcon-Bk0oBxLN.cjs → TxnStatusIcon-C9hNDByt.cjs} +1 -1
- package/components/{TxnStatusIcon-DN0llRTe.js → TxnStatusIcon-fiVxFVX_.js} +1 -1
- package/components/{TxnTypeIcons-BPVFmF5k.js → TxnTypeIcons-CA9VDuG4.js} +1 -1
- package/components/{TxnTypeIcons-CVoF9ajj.cjs → TxnTypeIcons-D6ZYjaVc.cjs} +1 -1
- package/components/{TxnTypeIcons-BuQgMseI.js → TxnTypeIcons-DMjccElF.js} +1 -1
- 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/components/CashierMethodDetails-CijnX6lX.cjs +0 -86
- package/components/CashierModal-B4of2Oxh.js +0 -228
- package/components/CashierModal-CvWSs-3j.js +0 -228
- package/components/CashierModal-DSuBZJDR.cjs +0 -1
- package/components/CashierPage-BRFjfzR5.cjs +0 -1
- package/components/CashierTransactionHistory-BcgsMpUM.js +0 -1303
- package/components/CashierTransactionHistory-CLxBvVPx.cjs +0 -1
- package/components/CashierTransactionHistory-DSCunt4_.js +0 -1303
- package/components/CashierVerifications-CaQ-G815.cjs +0 -1
- package/components/CashierVideoModal-BAMzRbW4.js +0 -198
- package/components/CashierVideoModal-CqlPtM2X.js +0 -198
- package/components/CashierVideoModal-z4snZUdS.cjs +0 -1
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
import { U as O, S as U, b as A, f as g, c as D, a as F, d as G, A as J, k as W, t as m, p as b, q as N, v as j, x as P, y as R, z as T, e as V, g as y, j as h, J as M, l as C, V as I, u as K, m as Q, o as X, W as S, E as Y, F as v, G as Z } from "./CashierConfirmModal-D6-yvknK.js";
|
|
2
|
-
function k(i, { delay: t = 0, duration: e = 400, easing: n = O } = {}) {
|
|
3
|
-
const r = +getComputedStyle(i).opacity;
|
|
4
|
-
return {
|
|
5
|
-
delay: t,
|
|
6
|
-
duration: e,
|
|
7
|
-
easing: n,
|
|
8
|
-
css: (o) => `opacity: ${o * r}`
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
function $(i) {
|
|
12
|
-
G(i, "svelte-xb5pyq", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:4;top:0;left:0;background-color:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));container-type:inline-size;container-name:modal-window;border-radius:6px}.ModalContainer{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);padding:var(--emw--spacing-large, 20px);width:400px}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:32px;height:32px}.ModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}@container modal-window (max-width:750px){.ModalWindow .ModalContainer{width:90%;max-width:400px}}");
|
|
13
|
-
}
|
|
14
|
-
const tt = (i) => ({}), x = (i) => ({});
|
|
15
|
-
function z(i) {
|
|
16
|
-
let t, e, n, r, o, d;
|
|
17
|
-
const f = (
|
|
18
|
-
/*#slots*/
|
|
19
|
-
i[10].content
|
|
20
|
-
), a = V(
|
|
21
|
-
f,
|
|
22
|
-
i,
|
|
23
|
-
/*$$scope*/
|
|
24
|
-
i[9],
|
|
25
|
-
x
|
|
26
|
-
);
|
|
27
|
-
return {
|
|
28
|
-
c() {
|
|
29
|
-
t = y("div"), e = y("div"), n = y("div"), a && a.c(), h(n, "class", "ModalContainer"), h(n, "part", "ModalContainer"), h(e, "class", "ModalWindow"), h(e, "part", "ModalWindow"), h(e, "id", "Modal"), M(() => (
|
|
30
|
-
/*div1_elementresize_handler*/
|
|
31
|
-
i[12].call(e)
|
|
32
|
-
)), h(t, "part", "CustomStylingContainer");
|
|
33
|
-
},
|
|
34
|
-
m(l, c) {
|
|
35
|
-
W(l, t, c), C(t, e), C(e, n), a && a.m(n, null), i[11](e), r = I(
|
|
36
|
-
e,
|
|
37
|
-
/*div1_elementresize_handler*/
|
|
38
|
-
i[12].bind(e)
|
|
39
|
-
), i[13](t), d = !0;
|
|
40
|
-
},
|
|
41
|
-
p(l, c) {
|
|
42
|
-
i = l, a && a.p && (!d || c & /*$$scope*/
|
|
43
|
-
512) && K(
|
|
44
|
-
a,
|
|
45
|
-
f,
|
|
46
|
-
i,
|
|
47
|
-
/*$$scope*/
|
|
48
|
-
i[9],
|
|
49
|
-
d ? X(
|
|
50
|
-
f,
|
|
51
|
-
/*$$scope*/
|
|
52
|
-
i[9],
|
|
53
|
-
c,
|
|
54
|
-
tt
|
|
55
|
-
) : Q(
|
|
56
|
-
/*$$scope*/
|
|
57
|
-
i[9]
|
|
58
|
-
),
|
|
59
|
-
x
|
|
60
|
-
);
|
|
61
|
-
},
|
|
62
|
-
i(l) {
|
|
63
|
-
d || (m(a, l), l && M(() => {
|
|
64
|
-
d && (o || (o = S(
|
|
65
|
-
e,
|
|
66
|
-
k,
|
|
67
|
-
/*duration*/
|
|
68
|
-
i[2],
|
|
69
|
-
!0
|
|
70
|
-
)), o.run(1));
|
|
71
|
-
}), d = !0);
|
|
72
|
-
},
|
|
73
|
-
o(l) {
|
|
74
|
-
b(a, l), l && (o || (o = S(
|
|
75
|
-
e,
|
|
76
|
-
k,
|
|
77
|
-
/*duration*/
|
|
78
|
-
i[2],
|
|
79
|
-
!1
|
|
80
|
-
)), o.run(0)), d = !1;
|
|
81
|
-
},
|
|
82
|
-
d(l) {
|
|
83
|
-
l && j(t), a && a.d(l), i[11](null), r(), l && o && o.end(), i[13](null);
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
function et(i) {
|
|
88
|
-
let t, e, n = (
|
|
89
|
-
/*show*/
|
|
90
|
-
i[5] && z(i)
|
|
91
|
-
);
|
|
92
|
-
return {
|
|
93
|
-
c() {
|
|
94
|
-
n && n.c(), t = J();
|
|
95
|
-
},
|
|
96
|
-
m(r, o) {
|
|
97
|
-
n && n.m(r, o), W(r, t, o), e = !0;
|
|
98
|
-
},
|
|
99
|
-
p(r, [o]) {
|
|
100
|
-
/*show*/
|
|
101
|
-
r[5] ? n ? (n.p(r, o), o & /*show*/
|
|
102
|
-
32 && m(n, 1)) : (n = z(r), n.c(), m(n, 1), n.m(t.parentNode, t)) : n && (Y(), b(n, 1, 1, () => {
|
|
103
|
-
n = null;
|
|
104
|
-
}), N());
|
|
105
|
-
},
|
|
106
|
-
i(r) {
|
|
107
|
-
e || (m(n), e = !0);
|
|
108
|
-
},
|
|
109
|
-
o(r) {
|
|
110
|
-
b(n), e = !1;
|
|
111
|
-
},
|
|
112
|
-
d(r) {
|
|
113
|
-
r && j(t), n && n.d(r);
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
function it(i, t, e) {
|
|
118
|
-
let { $$slots: n = {}, $$scope: r } = t, { mbsource: o } = t, { clientstyling: d } = t, { clientstylingurl: f } = t, { duration: a = 200 } = t, { width: l } = t, { height: c } = t, _, u, w = !1;
|
|
119
|
-
const q = () => {
|
|
120
|
-
e(5, w = !1), window.postMessage({ type: "ClosedCashierModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
121
|
-
}, p = (s) => {
|
|
122
|
-
s.data.type == "ShowCashierModal" && (e(5, w = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), s.data.type == "HideCashierModal" && q();
|
|
123
|
-
};
|
|
124
|
-
P(() => (window.addEventListener("message", p, !1), () => {
|
|
125
|
-
window.removeEventListener("message", p);
|
|
126
|
-
}));
|
|
127
|
-
function B(s) {
|
|
128
|
-
v[s ? "unshift" : "push"](() => {
|
|
129
|
-
_ = s, e(4, _);
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
function H() {
|
|
133
|
-
l = this.clientWidth, c = this.clientHeight, e(0, l), e(1, c);
|
|
134
|
-
}
|
|
135
|
-
function L(s) {
|
|
136
|
-
v[s ? "unshift" : "push"](() => {
|
|
137
|
-
u = s, e(3, u);
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
return i.$$set = (s) => {
|
|
141
|
-
"mbsource" in s && e(6, o = s.mbsource), "clientstyling" in s && e(7, d = s.clientstyling), "clientstylingurl" in s && e(8, f = s.clientstylingurl), "duration" in s && e(2, a = s.duration), "width" in s && e(0, l = s.width), "height" in s && e(1, c = s.height), "$$scope" in s && e(9, r = s.$$scope);
|
|
142
|
-
}, i.$$.update = () => {
|
|
143
|
-
i.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
144
|
-
136 && d && u && Z(u, d), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
145
|
-
264 && f && u && R(u, f), i.$$.dirty & /*mbsource, customStylingContainer*/
|
|
146
|
-
72 && o && u && T(u, `${o}.Style`);
|
|
147
|
-
}, [
|
|
148
|
-
l,
|
|
149
|
-
c,
|
|
150
|
-
a,
|
|
151
|
-
u,
|
|
152
|
-
_,
|
|
153
|
-
w,
|
|
154
|
-
o,
|
|
155
|
-
d,
|
|
156
|
-
f,
|
|
157
|
-
r,
|
|
158
|
-
n,
|
|
159
|
-
B,
|
|
160
|
-
H,
|
|
161
|
-
L
|
|
162
|
-
];
|
|
163
|
-
}
|
|
164
|
-
class E extends U {
|
|
165
|
-
constructor(t) {
|
|
166
|
-
super(), A(
|
|
167
|
-
this,
|
|
168
|
-
t,
|
|
169
|
-
it,
|
|
170
|
-
et,
|
|
171
|
-
F,
|
|
172
|
-
{
|
|
173
|
-
mbsource: 6,
|
|
174
|
-
clientstyling: 7,
|
|
175
|
-
clientstylingurl: 8,
|
|
176
|
-
duration: 2,
|
|
177
|
-
width: 0,
|
|
178
|
-
height: 1
|
|
179
|
-
},
|
|
180
|
-
$
|
|
181
|
-
);
|
|
182
|
-
}
|
|
183
|
-
get mbsource() {
|
|
184
|
-
return this.$$.ctx[6];
|
|
185
|
-
}
|
|
186
|
-
set mbsource(t) {
|
|
187
|
-
this.$$set({ mbsource: t }), g();
|
|
188
|
-
}
|
|
189
|
-
get clientstyling() {
|
|
190
|
-
return this.$$.ctx[7];
|
|
191
|
-
}
|
|
192
|
-
set clientstyling(t) {
|
|
193
|
-
this.$$set({ clientstyling: t }), g();
|
|
194
|
-
}
|
|
195
|
-
get clientstylingurl() {
|
|
196
|
-
return this.$$.ctx[8];
|
|
197
|
-
}
|
|
198
|
-
set clientstylingurl(t) {
|
|
199
|
-
this.$$set({ clientstylingurl: t }), g();
|
|
200
|
-
}
|
|
201
|
-
get duration() {
|
|
202
|
-
return this.$$.ctx[2];
|
|
203
|
-
}
|
|
204
|
-
set duration(t) {
|
|
205
|
-
this.$$set({ duration: t }), g();
|
|
206
|
-
}
|
|
207
|
-
get width() {
|
|
208
|
-
return this.$$.ctx[0];
|
|
209
|
-
}
|
|
210
|
-
set width(t) {
|
|
211
|
-
this.$$set({ width: t }), g();
|
|
212
|
-
}
|
|
213
|
-
get height() {
|
|
214
|
-
return this.$$.ctx[1];
|
|
215
|
-
}
|
|
216
|
-
set height(t) {
|
|
217
|
-
this.$$set({ height: t }), g();
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
D(E, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
|
|
221
|
-
const st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
222
|
-
__proto__: null,
|
|
223
|
-
default: E
|
|
224
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
225
|
-
export {
|
|
226
|
-
st as C,
|
|
227
|
-
k as f
|
|
228
|
-
};
|
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
import { U as O, S as U, b as A, f as g, c as D, a as F, d as G, A as J, k as W, t as m, p as b, q as N, v as j, x as P, y as R, z as T, e as V, g as y, j as h, J as M, l as C, V as I, u as K, m as Q, o as X, W as S, E as Y, F as v, G as Z } from "./CashierConfirmModal-DluW6utN.js";
|
|
2
|
-
function k(i, { delay: t = 0, duration: e = 400, easing: n = O } = {}) {
|
|
3
|
-
const r = +getComputedStyle(i).opacity;
|
|
4
|
-
return {
|
|
5
|
-
delay: t,
|
|
6
|
-
duration: e,
|
|
7
|
-
easing: n,
|
|
8
|
-
css: (o) => `opacity: ${o * r}`
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
function $(i) {
|
|
12
|
-
G(i, "svelte-xb5pyq", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:4;top:0;left:0;background-color:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));container-type:inline-size;container-name:modal-window;border-radius:6px}.ModalContainer{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);padding:var(--emw--spacing-large, 20px);width:400px}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:32px;height:32px}.ModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}@container modal-window (max-width:750px){.ModalWindow .ModalContainer{width:90%;max-width:400px}}");
|
|
13
|
-
}
|
|
14
|
-
const tt = (i) => ({}), x = (i) => ({});
|
|
15
|
-
function z(i) {
|
|
16
|
-
let t, e, n, r, o, d;
|
|
17
|
-
const f = (
|
|
18
|
-
/*#slots*/
|
|
19
|
-
i[10].content
|
|
20
|
-
), a = V(
|
|
21
|
-
f,
|
|
22
|
-
i,
|
|
23
|
-
/*$$scope*/
|
|
24
|
-
i[9],
|
|
25
|
-
x
|
|
26
|
-
);
|
|
27
|
-
return {
|
|
28
|
-
c() {
|
|
29
|
-
t = y("div"), e = y("div"), n = y("div"), a && a.c(), h(n, "class", "ModalContainer"), h(n, "part", "ModalContainer"), h(e, "class", "ModalWindow"), h(e, "part", "ModalWindow"), h(e, "id", "Modal"), M(() => (
|
|
30
|
-
/*div1_elementresize_handler*/
|
|
31
|
-
i[12].call(e)
|
|
32
|
-
)), h(t, "part", "CustomStylingContainer");
|
|
33
|
-
},
|
|
34
|
-
m(l, c) {
|
|
35
|
-
W(l, t, c), C(t, e), C(e, n), a && a.m(n, null), i[11](e), r = I(
|
|
36
|
-
e,
|
|
37
|
-
/*div1_elementresize_handler*/
|
|
38
|
-
i[12].bind(e)
|
|
39
|
-
), i[13](t), d = !0;
|
|
40
|
-
},
|
|
41
|
-
p(l, c) {
|
|
42
|
-
i = l, a && a.p && (!d || c & /*$$scope*/
|
|
43
|
-
512) && K(
|
|
44
|
-
a,
|
|
45
|
-
f,
|
|
46
|
-
i,
|
|
47
|
-
/*$$scope*/
|
|
48
|
-
i[9],
|
|
49
|
-
d ? X(
|
|
50
|
-
f,
|
|
51
|
-
/*$$scope*/
|
|
52
|
-
i[9],
|
|
53
|
-
c,
|
|
54
|
-
tt
|
|
55
|
-
) : Q(
|
|
56
|
-
/*$$scope*/
|
|
57
|
-
i[9]
|
|
58
|
-
),
|
|
59
|
-
x
|
|
60
|
-
);
|
|
61
|
-
},
|
|
62
|
-
i(l) {
|
|
63
|
-
d || (m(a, l), l && M(() => {
|
|
64
|
-
d && (o || (o = S(
|
|
65
|
-
e,
|
|
66
|
-
k,
|
|
67
|
-
/*duration*/
|
|
68
|
-
i[2],
|
|
69
|
-
!0
|
|
70
|
-
)), o.run(1));
|
|
71
|
-
}), d = !0);
|
|
72
|
-
},
|
|
73
|
-
o(l) {
|
|
74
|
-
b(a, l), l && (o || (o = S(
|
|
75
|
-
e,
|
|
76
|
-
k,
|
|
77
|
-
/*duration*/
|
|
78
|
-
i[2],
|
|
79
|
-
!1
|
|
80
|
-
)), o.run(0)), d = !1;
|
|
81
|
-
},
|
|
82
|
-
d(l) {
|
|
83
|
-
l && j(t), a && a.d(l), i[11](null), r(), l && o && o.end(), i[13](null);
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
function et(i) {
|
|
88
|
-
let t, e, n = (
|
|
89
|
-
/*show*/
|
|
90
|
-
i[5] && z(i)
|
|
91
|
-
);
|
|
92
|
-
return {
|
|
93
|
-
c() {
|
|
94
|
-
n && n.c(), t = J();
|
|
95
|
-
},
|
|
96
|
-
m(r, o) {
|
|
97
|
-
n && n.m(r, o), W(r, t, o), e = !0;
|
|
98
|
-
},
|
|
99
|
-
p(r, [o]) {
|
|
100
|
-
/*show*/
|
|
101
|
-
r[5] ? n ? (n.p(r, o), o & /*show*/
|
|
102
|
-
32 && m(n, 1)) : (n = z(r), n.c(), m(n, 1), n.m(t.parentNode, t)) : n && (Y(), b(n, 1, 1, () => {
|
|
103
|
-
n = null;
|
|
104
|
-
}), N());
|
|
105
|
-
},
|
|
106
|
-
i(r) {
|
|
107
|
-
e || (m(n), e = !0);
|
|
108
|
-
},
|
|
109
|
-
o(r) {
|
|
110
|
-
b(n), e = !1;
|
|
111
|
-
},
|
|
112
|
-
d(r) {
|
|
113
|
-
r && j(t), n && n.d(r);
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
function it(i, t, e) {
|
|
118
|
-
let { $$slots: n = {}, $$scope: r } = t, { mbsource: o } = t, { clientstyling: d } = t, { clientstylingurl: f } = t, { duration: a = 200 } = t, { width: l } = t, { height: c } = t, _, u, w = !1;
|
|
119
|
-
const q = () => {
|
|
120
|
-
e(5, w = !1), window.postMessage({ type: "ClosedCashierModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
121
|
-
}, p = (s) => {
|
|
122
|
-
s.data.type == "ShowCashierModal" && (e(5, w = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), s.data.type == "HideCashierModal" && q();
|
|
123
|
-
};
|
|
124
|
-
P(() => (window.addEventListener("message", p, !1), () => {
|
|
125
|
-
window.removeEventListener("message", p);
|
|
126
|
-
}));
|
|
127
|
-
function B(s) {
|
|
128
|
-
v[s ? "unshift" : "push"](() => {
|
|
129
|
-
_ = s, e(4, _);
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
function H() {
|
|
133
|
-
l = this.clientWidth, c = this.clientHeight, e(0, l), e(1, c);
|
|
134
|
-
}
|
|
135
|
-
function L(s) {
|
|
136
|
-
v[s ? "unshift" : "push"](() => {
|
|
137
|
-
u = s, e(3, u);
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
return i.$$set = (s) => {
|
|
141
|
-
"mbsource" in s && e(6, o = s.mbsource), "clientstyling" in s && e(7, d = s.clientstyling), "clientstylingurl" in s && e(8, f = s.clientstylingurl), "duration" in s && e(2, a = s.duration), "width" in s && e(0, l = s.width), "height" in s && e(1, c = s.height), "$$scope" in s && e(9, r = s.$$scope);
|
|
142
|
-
}, i.$$.update = () => {
|
|
143
|
-
i.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
144
|
-
136 && d && u && Z(u, d), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
145
|
-
264 && f && u && R(u, f), i.$$.dirty & /*mbsource, customStylingContainer*/
|
|
146
|
-
72 && o && u && T(u, `${o}.Style`);
|
|
147
|
-
}, [
|
|
148
|
-
l,
|
|
149
|
-
c,
|
|
150
|
-
a,
|
|
151
|
-
u,
|
|
152
|
-
_,
|
|
153
|
-
w,
|
|
154
|
-
o,
|
|
155
|
-
d,
|
|
156
|
-
f,
|
|
157
|
-
r,
|
|
158
|
-
n,
|
|
159
|
-
B,
|
|
160
|
-
H,
|
|
161
|
-
L
|
|
162
|
-
];
|
|
163
|
-
}
|
|
164
|
-
class E extends U {
|
|
165
|
-
constructor(t) {
|
|
166
|
-
super(), A(
|
|
167
|
-
this,
|
|
168
|
-
t,
|
|
169
|
-
it,
|
|
170
|
-
et,
|
|
171
|
-
F,
|
|
172
|
-
{
|
|
173
|
-
mbsource: 6,
|
|
174
|
-
clientstyling: 7,
|
|
175
|
-
clientstylingurl: 8,
|
|
176
|
-
duration: 2,
|
|
177
|
-
width: 0,
|
|
178
|
-
height: 1
|
|
179
|
-
},
|
|
180
|
-
$
|
|
181
|
-
);
|
|
182
|
-
}
|
|
183
|
-
get mbsource() {
|
|
184
|
-
return this.$$.ctx[6];
|
|
185
|
-
}
|
|
186
|
-
set mbsource(t) {
|
|
187
|
-
this.$$set({ mbsource: t }), g();
|
|
188
|
-
}
|
|
189
|
-
get clientstyling() {
|
|
190
|
-
return this.$$.ctx[7];
|
|
191
|
-
}
|
|
192
|
-
set clientstyling(t) {
|
|
193
|
-
this.$$set({ clientstyling: t }), g();
|
|
194
|
-
}
|
|
195
|
-
get clientstylingurl() {
|
|
196
|
-
return this.$$.ctx[8];
|
|
197
|
-
}
|
|
198
|
-
set clientstylingurl(t) {
|
|
199
|
-
this.$$set({ clientstylingurl: t }), g();
|
|
200
|
-
}
|
|
201
|
-
get duration() {
|
|
202
|
-
return this.$$.ctx[2];
|
|
203
|
-
}
|
|
204
|
-
set duration(t) {
|
|
205
|
-
this.$$set({ duration: t }), g();
|
|
206
|
-
}
|
|
207
|
-
get width() {
|
|
208
|
-
return this.$$.ctx[0];
|
|
209
|
-
}
|
|
210
|
-
set width(t) {
|
|
211
|
-
this.$$set({ width: t }), g();
|
|
212
|
-
}
|
|
213
|
-
get height() {
|
|
214
|
-
return this.$$.ctx[1];
|
|
215
|
-
}
|
|
216
|
-
set height(t) {
|
|
217
|
-
this.$$set({ height: t }), g();
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
D(E, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
|
|
221
|
-
const st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
222
|
-
__proto__: null,
|
|
223
|
-
default: E
|
|
224
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
225
|
-
export {
|
|
226
|
-
st as C,
|
|
227
|
-
k as f
|
|
228
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("./CashierConfirmModal-C5Z0fFCo.cjs");function m(n,{delay:e=0,duration:i=400,easing:o=t.identity}={}){const s=+getComputedStyle(n).opacity;return{delay:e,duration:i,easing:o,css:l=>`opacity: ${l*s}`}}function v(n){t.append_styles(n,"svelte-xb5pyq","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:4;top:0;left:0;background-color:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));container-type:inline-size;container-name:modal-window;border-radius:6px}.ModalContainer{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);padding:var(--emw--spacing-large, 20px);width:400px}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:32px;height:32px}.ModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}@container modal-window (max-width:750px){.ModalWindow .ModalContainer{width:90%;max-width:400px}}")}const x=n=>({}),y=n=>({});function b(n){let e,i,o,s,l,c;const h=n[10].content,d=t.create_slot(h,n,n[9],y);return{c(){e=t.element("div"),i=t.element("div"),o=t.element("div"),d&&d.c(),t.attr(o,"class","ModalContainer"),t.attr(o,"part","ModalContainer"),t.attr(i,"class","ModalWindow"),t.attr(i,"part","ModalWindow"),t.attr(i,"id","Modal"),t.add_render_callback(()=>n[12].call(i)),t.attr(e,"part","CustomStylingContainer")},m(a,u){t.insert(a,e,u),t.append(e,i),t.append(i,o),d&&d.m(o,null),n[11](i),s=t.add_iframe_resize_listener(i,n[12].bind(i)),n[13](e),c=!0},p(a,u){n=a,d&&d.p&&(!c||u&512)&&t.update_slot_base(d,h,n,n[9],c?t.get_slot_changes(h,n[9],u,x):t.get_all_dirty_from_scope(n[9]),y)},i(a){c||(t.transition_in(d,a),a&&t.add_render_callback(()=>{c&&(l||(l=t.create_bidirectional_transition(i,m,n[2],!0)),l.run(1))}),c=!0)},o(a){t.transition_out(d,a),a&&(l||(l=t.create_bidirectional_transition(i,m,n[2],!1)),l.run(0)),c=!1},d(a){a&&t.detach(e),d&&d.d(a),n[11](null),s(),a&&l&&l.end(),n[13](null)}}}function z(n){let e,i,o=n[5]&&b(n);return{c(){o&&o.c(),e=t.empty()},m(s,l){o&&o.m(s,l),t.insert(s,e,l),i=!0},p(s,[l]){s[5]?o?(o.p(s,l),l&32&&t.transition_in(o,1)):(o=b(s),o.c(),t.transition_in(o,1),o.m(e.parentNode,e)):o&&(t.group_outros(),t.transition_out(o,1,1,()=>{o=null}),t.check_outros())},i(s){i||(t.transition_in(o),i=!0)},o(s){t.transition_out(o),i=!1},d(s){s&&t.detach(e),o&&o.d(s)}}}function W(n,e,i){let{$$slots:o={},$$scope:s}=e,{mbsource:l}=e,{clientstyling:c}=e,{clientstylingurl:h}=e,{duration:d=200}=e,{width:a}=e,{height:u}=e,g,f,_=!1;const M=()=>{i(5,_=!1),window.postMessage({type:"ClosedCashierModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},w=r=>{r.data.type=="ShowCashierModal"&&(i(5,_=!0),window.postMessage({type:"DisableScroll"},window.location.href)),r.data.type=="HideCashierModal"&&M()};t.onMount(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)}));function C(r){t.binding_callbacks[r?"unshift":"push"](()=>{g=r,i(4,g)})}function S(){a=this.clientWidth,u=this.clientHeight,i(0,a),i(1,u)}function k(r){t.binding_callbacks[r?"unshift":"push"](()=>{f=r,i(3,f)})}return n.$$set=r=>{"mbsource"in r&&i(6,l=r.mbsource),"clientstyling"in r&&i(7,c=r.clientstyling),"clientstylingurl"in r&&i(8,h=r.clientstylingurl),"duration"in r&&i(2,d=r.duration),"width"in r&&i(0,a=r.width),"height"in r&&i(1,u=r.height),"$$scope"in r&&i(9,s=r.$$scope)},n.$$.update=()=>{n.$$.dirty&136&&c&&f&&t.setClientStyling(f,c),n.$$.dirty&264&&h&&f&&t.setClientStylingURL(f,h),n.$$.dirty&72&&l&&f&&t.setStreamStyling(f,`${l}.Style`)},[a,u,d,f,g,_,l,c,h,s,o,C,S,k]}class p extends t.SvelteComponent{constructor(e){super(),t.init(this,e,W,z,t.safe_not_equal,{mbsource:6,clientstyling:7,clientstylingurl:8,duration:2,width:0,height:1},v)}get mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get duration(){return this.$$.ctx[2]}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:{},duration:{},width:{},height:{}},["content"],[],!0);const j=Object.freeze(Object.defineProperty({__proto__:null,default:p},Symbol.toStringTag,{value:"Module"}));exports.CashierModal_ce=j;exports.fade=m;
|