@everymatrix/cashier-page 1.72.2 → 1.73.1
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-4RYp7Eiq.js → CashierConfirmModal-BCk4hvRj.js} +3 -3
- package/components/{CashierConfirmModal-untxGhsx.js → CashierConfirmModal-DXlKhIue.js} +3 -3
- package/components/{CashierError-Zu3Whx-d.js → CashierError-BydkW7s_.js} +2 -2
- package/components/{CashierError-DfpdiheS.cjs → CashierError-Dpt_Z7yL.cjs} +1 -1
- package/components/{CashierError-yts9rF-i.js → CashierError-Dz_HsnJl.js} +2 -2
- package/components/{CashierHeader-BX6LLGb8.js → CashierHeader-86wrgmgP.js} +2 -2
- package/components/{CashierHeader-B9cdsOYh.cjs → CashierHeader-BXKYku0i.cjs} +1 -1
- package/components/{CashierHeader-C9V5_NVw.js → CashierHeader-DtS_U-De.js} +2 -2
- package/components/CashierIframeRedirect-BARMuRTc.cjs +1 -0
- package/components/CashierIframeRedirect-CmqcfGcT.js +429 -0
- package/components/CashierIframeRedirect-Xzpx4Rjk.js +429 -0
- package/components/{CashierMethodDetails-D1ZeLJFI.js → CashierMethodDetails-B1jSb3IC.js} +3506 -2966
- package/components/{CashierMethodDetails-DhkT1TEG.js → CashierMethodDetails-CZ1Xj4bB.js} +3415 -2875
- package/components/CashierMethodDetails-D9tO8F-N.cjs +99 -0
- package/components/CashierMethodsList-BoP67Zj_.js +828 -0
- package/components/CashierMethodsList-F_QBfadW.cjs +1 -0
- package/components/{CashierMethodsList-Bd0awrSP.js → CashierMethodsList-pOyUlgCs.js} +372 -396
- package/components/CashierModal-B4b12-Am.js +229 -0
- package/components/CashierModal-C-yyjQ8m.cjs +1 -0
- package/components/CashierModal-DCgiaC4V.js +229 -0
- package/components/{CashierNotifications-dn6rnyK_.js → CashierNotifications-BZCaBrRm.js} +1 -1
- package/components/{CashierNotifications-C48iLynX.js → CashierNotifications-CWqwdi55.js} +1 -1
- package/components/{CashierPage-DagcI5W-.js → CashierPage-B14Zambu.js} +824 -587
- package/components/{CashierPage-BbiDGdpa.js → CashierPage-BVN_y5LM.js} +824 -587
- package/components/CashierPage-BZCoKtSr.cjs +1 -0
- package/components/CashierReceiptPage-BM8IB2en.js +1451 -0
- package/components/CashierReceiptPage-DY4vYKOg.cjs +1 -0
- package/components/CashierReceiptPage-hbrIFE7Z.js +1453 -0
- package/components/CashierSessionExpirationModal-4QgY4tj0.js +1205 -0
- package/components/CashierSessionExpirationModal-B-JloK58.cjs +2 -0
- package/components/CashierSessionExpirationModal-BZjFbzTF.js +1205 -0
- package/components/CashierSpinner-BdeNFm1c.js +79 -0
- package/components/CashierSpinner-COjPdCUV.js +79 -0
- package/components/CashierSpinner-CpkB8Zoj.cjs +1 -0
- package/components/CashierTransactionHistory-BRRK3_Wm.cjs +1 -0
- package/components/CashierTransactionHistory-DwBe7fCZ.js +614 -0
- package/components/CashierTransactionHistory-DzdL--gs.js +614 -0
- package/components/{CashierVerifications-8ZmmqlLE.js → CashierVerifications-Ct5BMC4Z.js} +324 -277
- package/components/CashierVerifications-DEJgktmX.cjs +1 -0
- package/components/{CashierVerifications-DJ8j0wXs.js → CashierVerifications-bo5F0ePz.js} +332 -285
- package/components/CashierVideoModal-8I67tMwv.cjs +1 -0
- package/components/{CashierVideoModal-CVDvqrcy.js → CashierVideoModal-CQLJKJAK.js} +91 -94
- package/components/{CashierVideoModal-DHNu0BQz.js → CashierVideoModal-CzRdJr4V.js} +91 -94
- 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/app-globals-0f993ce5-BD-Q0C8R.cjs +1 -0
- package/stencil/app-globals-0f993ce5-Cgk0KVAu.js +7 -0
- package/stencil/index-b2193545-B8kMF2bI.cjs +1 -0
- package/stencil/index-b2193545-BoSqyMpB.js +519 -0
- package/stencil/index-b2193545-D4dOaNlR.js +503 -0
- package/stencil/{ui-image-C7s6Uvn5.js → ui-image-BWJXFWH1.js} +1 -1
- package/stencil/{ui-image-BaHsVAxH.cjs → ui-image-ByEXiBzx.cjs} +1 -1
- package/stencil/{ui-image-CHeV8e9p.js → ui-image-DIEeZy5u.js} +1 -1
- package/stencil/ui-skeleton-4-zrLsIW.js +11 -0
- package/stencil/ui-skeleton-9boHSjtG.js +29 -0
- package/stencil/ui-skeleton-_yJvAdAL.cjs +1 -0
- package/stencil/ui-skeleton-ae35c6f2-8tYGV8SR.js +155 -0
- package/stencil/ui-skeleton-ae35c6f2-CKgUXOQC.cjs +55 -0
- package/stencil/ui-skeleton-ae35c6f2-IN_dPA5_.js +155 -0
- package/components/CashierIframeRedirect-3Ttb1Wdk.js +0 -378
- package/components/CashierIframeRedirect-BIMJNSib.js +0 -378
- package/components/CashierIframeRedirect-NF0DKl7A.cjs +0 -1
- package/components/CashierMethodDetails-Cgu5TXSP.cjs +0 -84
- package/components/CashierMethodsList-D4ou6zMr.cjs +0 -1
- package/components/CashierMethodsList-z8dlFfeS.js +0 -852
- package/components/CashierModal-BrwIBn9a.js +0 -232
- package/components/CashierModal-BuM2Yq-y.cjs +0 -1
- package/components/CashierModal-ZfKvGxFq.js +0 -232
- package/components/CashierPage-eEO1eHcj.cjs +0 -1
- package/components/CashierReceiptPage--SlIuxeH.js +0 -1174
- package/components/CashierReceiptPage-Si7b2HWz.js +0 -1172
- package/components/CashierReceiptPage-dUPhckvS.cjs +0 -1
- package/components/CashierSessionExpirationModal-BmFSh_r0.js +0 -1208
- package/components/CashierSessionExpirationModal-CVnU7oKj.cjs +0 -2
- package/components/CashierSessionExpirationModal-QHzlcCYu.js +0 -1208
- package/components/CashierSpinner-BAfTKICK.js +0 -71
- package/components/CashierSpinner-BhmndmKG.cjs +0 -1
- package/components/CashierSpinner-y6HodxHT.js +0 -71
- package/components/CashierTransactionHistory-CBJrAtki.js +0 -569
- package/components/CashierTransactionHistory-DwYyVBtn.cjs +0 -1
- package/components/CashierTransactionHistory-LW9NA8-t.js +0 -569
- package/components/CashierVerifications-CYRbG7DV.cjs +0 -1
- package/components/CashierVideoModal-BZg_b6bd.cjs +0 -1
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { Q as O, S as R, b as T, s as A, f as g, c as D, e as j, t as b, g as m, k as F, l as G, m as E, x as N, F as P, d as Q, R as M, G as C, u as U, h as I, j as J, o as S, T as K, p as y, v as h, A as v, E as V } from "./CashierConfirmModal-BCk4hvRj.js";
|
|
2
|
+
import { s as X, a as Y, b as Z } from "./CashierIframeRedirect-CmqcfGcT.js";
|
|
3
|
+
function k(i, { delay: t = 0, duration: e = 400, easing: n = O } = {}) {
|
|
4
|
+
const r = +getComputedStyle(i).opacity;
|
|
5
|
+
return {
|
|
6
|
+
delay: t,
|
|
7
|
+
duration: e,
|
|
8
|
+
easing: n,
|
|
9
|
+
css: (o) => `opacity: ${o * r}`
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function $(i) {
|
|
13
|
+
D(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}}");
|
|
14
|
+
}
|
|
15
|
+
const tt = (i) => ({}), x = (i) => ({});
|
|
16
|
+
function z(i) {
|
|
17
|
+
let t, e, n, r, o, d;
|
|
18
|
+
const f = (
|
|
19
|
+
/*#slots*/
|
|
20
|
+
i[10].content
|
|
21
|
+
), a = Q(
|
|
22
|
+
f,
|
|
23
|
+
i,
|
|
24
|
+
/*$$scope*/
|
|
25
|
+
i[9],
|
|
26
|
+
x
|
|
27
|
+
);
|
|
28
|
+
return {
|
|
29
|
+
c() {
|
|
30
|
+
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"), C(() => (
|
|
31
|
+
/*div1_elementresize_handler*/
|
|
32
|
+
i[12].call(e)
|
|
33
|
+
)), h(t, "part", "CustomStylingContainer");
|
|
34
|
+
},
|
|
35
|
+
m(l, c) {
|
|
36
|
+
E(l, t, c), S(t, e), S(e, n), a && a.m(n, null), i[11](e), r = K(
|
|
37
|
+
e,
|
|
38
|
+
/*div1_elementresize_handler*/
|
|
39
|
+
i[12].bind(e)
|
|
40
|
+
), i[13](t), d = !0;
|
|
41
|
+
},
|
|
42
|
+
p(l, c) {
|
|
43
|
+
i = l, a && a.p && (!d || c & /*$$scope*/
|
|
44
|
+
512) && U(
|
|
45
|
+
a,
|
|
46
|
+
f,
|
|
47
|
+
i,
|
|
48
|
+
/*$$scope*/
|
|
49
|
+
i[9],
|
|
50
|
+
d ? J(
|
|
51
|
+
f,
|
|
52
|
+
/*$$scope*/
|
|
53
|
+
i[9],
|
|
54
|
+
c,
|
|
55
|
+
tt
|
|
56
|
+
) : I(
|
|
57
|
+
/*$$scope*/
|
|
58
|
+
i[9]
|
|
59
|
+
),
|
|
60
|
+
x
|
|
61
|
+
);
|
|
62
|
+
},
|
|
63
|
+
i(l) {
|
|
64
|
+
d || (m(a, l), l && C(() => {
|
|
65
|
+
d && (o || (o = M(
|
|
66
|
+
e,
|
|
67
|
+
k,
|
|
68
|
+
/*duration*/
|
|
69
|
+
i[2],
|
|
70
|
+
!0
|
|
71
|
+
)), o.run(1));
|
|
72
|
+
}), d = !0);
|
|
73
|
+
},
|
|
74
|
+
o(l) {
|
|
75
|
+
b(a, l), l && (o || (o = M(
|
|
76
|
+
e,
|
|
77
|
+
k,
|
|
78
|
+
/*duration*/
|
|
79
|
+
i[2],
|
|
80
|
+
!1
|
|
81
|
+
)), o.run(0)), d = !1;
|
|
82
|
+
},
|
|
83
|
+
d(l) {
|
|
84
|
+
l && j(t), a && a.d(l), i[11](null), r(), l && o && o.end(), i[13](null);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function et(i) {
|
|
89
|
+
let t, e, n = (
|
|
90
|
+
/*show*/
|
|
91
|
+
i[5] && z(i)
|
|
92
|
+
);
|
|
93
|
+
return {
|
|
94
|
+
c() {
|
|
95
|
+
n && n.c(), t = N();
|
|
96
|
+
},
|
|
97
|
+
m(r, o) {
|
|
98
|
+
n && n.m(r, o), E(r, t, o), e = !0;
|
|
99
|
+
},
|
|
100
|
+
p(r, [o]) {
|
|
101
|
+
/*show*/
|
|
102
|
+
r[5] ? n ? (n.p(r, o), o & /*show*/
|
|
103
|
+
32 && m(n, 1)) : (n = z(r), n.c(), m(n, 1), n.m(t.parentNode, t)) : n && (F(), b(n, 1, 1, () => {
|
|
104
|
+
n = null;
|
|
105
|
+
}), G());
|
|
106
|
+
},
|
|
107
|
+
i(r) {
|
|
108
|
+
e || (m(n), e = !0);
|
|
109
|
+
},
|
|
110
|
+
o(r) {
|
|
111
|
+
b(n), e = !1;
|
|
112
|
+
},
|
|
113
|
+
d(r) {
|
|
114
|
+
r && j(t), n && n.d(r);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
function it(i, t, e) {
|
|
119
|
+
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;
|
|
120
|
+
const B = () => {
|
|
121
|
+
e(5, w = !1), window.postMessage({ type: "ClosedCashierModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
122
|
+
}, p = (s) => {
|
|
123
|
+
s.data.type == "ShowCashierModal" && (e(5, w = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), s.data.type == "HideCashierModal" && B();
|
|
124
|
+
};
|
|
125
|
+
P(() => (window.addEventListener("message", p, !1), () => {
|
|
126
|
+
window.removeEventListener("message", p);
|
|
127
|
+
}));
|
|
128
|
+
function H(s) {
|
|
129
|
+
v[s ? "unshift" : "push"](() => {
|
|
130
|
+
_ = s, e(4, _);
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
function L() {
|
|
134
|
+
l = this.clientWidth, c = this.clientHeight, e(0, l), e(1, c);
|
|
135
|
+
}
|
|
136
|
+
function q(s) {
|
|
137
|
+
v[s ? "unshift" : "push"](() => {
|
|
138
|
+
u = s, e(3, u);
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
return i.$$set = (s) => {
|
|
142
|
+
"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);
|
|
143
|
+
}, i.$$.update = () => {
|
|
144
|
+
i.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
145
|
+
136 && d && u && X(u, d), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
146
|
+
264 && f && u && Y(u, f), i.$$.dirty & /*mbsource, customStylingContainer*/
|
|
147
|
+
72 && o && u && Z(u, `${o}.Style`);
|
|
148
|
+
}, [
|
|
149
|
+
l,
|
|
150
|
+
c,
|
|
151
|
+
a,
|
|
152
|
+
u,
|
|
153
|
+
_,
|
|
154
|
+
w,
|
|
155
|
+
o,
|
|
156
|
+
d,
|
|
157
|
+
f,
|
|
158
|
+
r,
|
|
159
|
+
n,
|
|
160
|
+
H,
|
|
161
|
+
L,
|
|
162
|
+
q
|
|
163
|
+
];
|
|
164
|
+
}
|
|
165
|
+
class W extends R {
|
|
166
|
+
constructor(t) {
|
|
167
|
+
super(), T(
|
|
168
|
+
this,
|
|
169
|
+
t,
|
|
170
|
+
it,
|
|
171
|
+
et,
|
|
172
|
+
A,
|
|
173
|
+
{
|
|
174
|
+
mbsource: 6,
|
|
175
|
+
clientstyling: 7,
|
|
176
|
+
clientstylingurl: 8,
|
|
177
|
+
duration: 2,
|
|
178
|
+
width: 0,
|
|
179
|
+
height: 1
|
|
180
|
+
},
|
|
181
|
+
$
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
get mbsource() {
|
|
185
|
+
return this.$$.ctx[6];
|
|
186
|
+
}
|
|
187
|
+
set mbsource(t) {
|
|
188
|
+
this.$$set({ mbsource: t }), g();
|
|
189
|
+
}
|
|
190
|
+
get clientstyling() {
|
|
191
|
+
return this.$$.ctx[7];
|
|
192
|
+
}
|
|
193
|
+
set clientstyling(t) {
|
|
194
|
+
this.$$set({ clientstyling: t }), g();
|
|
195
|
+
}
|
|
196
|
+
get clientstylingurl() {
|
|
197
|
+
return this.$$.ctx[8];
|
|
198
|
+
}
|
|
199
|
+
set clientstylingurl(t) {
|
|
200
|
+
this.$$set({ clientstylingurl: t }), g();
|
|
201
|
+
}
|
|
202
|
+
get duration() {
|
|
203
|
+
return this.$$.ctx[2];
|
|
204
|
+
}
|
|
205
|
+
set duration(t) {
|
|
206
|
+
this.$$set({ duration: t }), g();
|
|
207
|
+
}
|
|
208
|
+
get width() {
|
|
209
|
+
return this.$$.ctx[0];
|
|
210
|
+
}
|
|
211
|
+
set width(t) {
|
|
212
|
+
this.$$set({ width: t }), g();
|
|
213
|
+
}
|
|
214
|
+
get height() {
|
|
215
|
+
return this.$$.ctx[1];
|
|
216
|
+
}
|
|
217
|
+
set height(t) {
|
|
218
|
+
this.$$set({ height: t }), g();
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
V(W, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
|
|
222
|
+
const ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
223
|
+
__proto__: null,
|
|
224
|
+
default: W
|
|
225
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
226
|
+
export {
|
|
227
|
+
ot as C,
|
|
228
|
+
k as f
|
|
229
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("./CashierConfirmModal-DMmJumcl.cjs"),m=require("./CashierIframeRedirect-BARMuRTc.cjs");function w(n,{delay:e=0,duration:i=400,easing:r=t.identity}={}){const l=+getComputedStyle(n).opacity;return{delay:e,duration:i,easing:r,css:s=>`opacity: ${s*l}`}}function x(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 z=n=>({}),b=n=>({});function p(n){let e,i,r,l,s,c;const h=n[10].content,d=t.create_slot(h,n,n[9],b);return{c(){e=t.element("div"),i=t.element("div"),r=t.element("div"),d&&d.c(),t.attr(r,"class","ModalContainer"),t.attr(r,"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,r),d&&d.m(r,null),n[11](i),l=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,z):t.get_all_dirty_from_scope(n[9]),b)},i(a){c||(t.transition_in(d,a),a&&t.add_render_callback(()=>{c&&(s||(s=t.create_bidirectional_transition(i,w,n[2],!0)),s.run(1))}),c=!0)},o(a){t.transition_out(d,a),a&&(s||(s=t.create_bidirectional_transition(i,w,n[2],!1)),s.run(0)),c=!1},d(a){a&&t.detach(e),d&&d.d(a),n[11](null),l(),a&&s&&s.end(),n[13](null)}}}function W(n){let e,i,r=n[5]&&p(n);return{c(){r&&r.c(),e=t.empty()},m(l,s){r&&r.m(l,s),t.insert(l,e,s),i=!0},p(l,[s]){l[5]?r?(r.p(l,s),s&32&&t.transition_in(r,1)):(r=p(l),r.c(),t.transition_in(r,1),r.m(e.parentNode,e)):r&&(t.group_outros(),t.transition_out(r,1,1,()=>{r=null}),t.check_outros())},i(l){i||(t.transition_in(r),i=!0)},o(l){t.transition_out(r),i=!1},d(l){l&&t.detach(e),r&&r.d(l)}}}function j(n,e,i){let{$$slots:r={},$$scope:l}=e,{mbsource:s}=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)},y=o=>{o.data.type=="ShowCashierModal"&&(i(5,_=!0),window.postMessage({type:"DisableScroll"},window.location.href)),o.data.type=="HideCashierModal"&&M()};t.onMount(()=>(window.addEventListener("message",y,!1),()=>{window.removeEventListener("message",y)}));function S(o){t.binding_callbacks[o?"unshift":"push"](()=>{g=o,i(4,g)})}function k(){a=this.clientWidth,u=this.clientHeight,i(0,a),i(1,u)}function v(o){t.binding_callbacks[o?"unshift":"push"](()=>{f=o,i(3,f)})}return n.$$set=o=>{"mbsource"in o&&i(6,s=o.mbsource),"clientstyling"in o&&i(7,c=o.clientstyling),"clientstylingurl"in o&&i(8,h=o.clientstylingurl),"duration"in o&&i(2,d=o.duration),"width"in o&&i(0,a=o.width),"height"in o&&i(1,u=o.height),"$$scope"in o&&i(9,l=o.$$scope)},n.$$.update=()=>{n.$$.dirty&136&&c&&f&&m.setClientStyling(f,c),n.$$.dirty&264&&h&&f&&m.setClientStylingURL(f,h),n.$$.dirty&72&&s&&f&&m.setStreamStyling(f,`${s}.Style`)},[a,u,d,f,g,_,s,c,h,l,r,S,k,v]}class C extends t.SvelteComponent{constructor(e){super(),t.init(this,e,j,W,t.safe_not_equal,{mbsource:6,clientstyling:7,clientstylingurl:8,duration:2,width:0,height:1},x)}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(C,{mbsource:{},clientstyling:{},clientstylingurl:{},duration:{},width:{},height:{}},["content"],[],!0);const q=Object.freeze(Object.defineProperty({__proto__:null,default:C},Symbol.toStringTag,{value:"Module"}));exports.CashierModal_ce=q;exports.fade=w;
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { Q as D, S as O, b as R, s as T, f as g, c as F, e as j, t as b, g as m, D as G, k as N, l as E, w as P, F as Q, d as U, R as M, G as C, u as A, h as I, j as J, m as S, T as K, o as y, q as h, z as v, E as V } from "./CashierConfirmModal-DXlKhIue.js";
|
|
2
|
+
import { s as X, a as Y, b as Z } from "./CashierIframeRedirect-Xzpx4Rjk.js";
|
|
3
|
+
function k(i, { delay: t = 0, duration: e = 400, easing: n = D } = {}) {
|
|
4
|
+
const r = +getComputedStyle(i).opacity;
|
|
5
|
+
return {
|
|
6
|
+
delay: t,
|
|
7
|
+
duration: e,
|
|
8
|
+
easing: n,
|
|
9
|
+
css: (o) => `opacity: ${o * r}`
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function $(i) {
|
|
13
|
+
F(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}}");
|
|
14
|
+
}
|
|
15
|
+
const tt = (i) => ({}), x = (i) => ({});
|
|
16
|
+
function z(i) {
|
|
17
|
+
let t, e, n, r, o, d;
|
|
18
|
+
const f = (
|
|
19
|
+
/*#slots*/
|
|
20
|
+
i[10].content
|
|
21
|
+
), a = U(
|
|
22
|
+
f,
|
|
23
|
+
i,
|
|
24
|
+
/*$$scope*/
|
|
25
|
+
i[9],
|
|
26
|
+
x
|
|
27
|
+
);
|
|
28
|
+
return {
|
|
29
|
+
c() {
|
|
30
|
+
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"), C(() => (
|
|
31
|
+
/*div1_elementresize_handler*/
|
|
32
|
+
i[12].call(e)
|
|
33
|
+
)), h(t, "part", "CustomStylingContainer");
|
|
34
|
+
},
|
|
35
|
+
m(l, c) {
|
|
36
|
+
E(l, t, c), S(t, e), S(e, n), a && a.m(n, null), i[11](e), r = K(
|
|
37
|
+
e,
|
|
38
|
+
/*div1_elementresize_handler*/
|
|
39
|
+
i[12].bind(e)
|
|
40
|
+
), i[13](t), d = !0;
|
|
41
|
+
},
|
|
42
|
+
p(l, c) {
|
|
43
|
+
i = l, a && a.p && (!d || c & /*$$scope*/
|
|
44
|
+
512) && A(
|
|
45
|
+
a,
|
|
46
|
+
f,
|
|
47
|
+
i,
|
|
48
|
+
/*$$scope*/
|
|
49
|
+
i[9],
|
|
50
|
+
d ? J(
|
|
51
|
+
f,
|
|
52
|
+
/*$$scope*/
|
|
53
|
+
i[9],
|
|
54
|
+
c,
|
|
55
|
+
tt
|
|
56
|
+
) : I(
|
|
57
|
+
/*$$scope*/
|
|
58
|
+
i[9]
|
|
59
|
+
),
|
|
60
|
+
x
|
|
61
|
+
);
|
|
62
|
+
},
|
|
63
|
+
i(l) {
|
|
64
|
+
d || (m(a, l), l && C(() => {
|
|
65
|
+
d && (o || (o = M(
|
|
66
|
+
e,
|
|
67
|
+
k,
|
|
68
|
+
/*duration*/
|
|
69
|
+
i[2],
|
|
70
|
+
!0
|
|
71
|
+
)), o.run(1));
|
|
72
|
+
}), d = !0);
|
|
73
|
+
},
|
|
74
|
+
o(l) {
|
|
75
|
+
b(a, l), l && (o || (o = M(
|
|
76
|
+
e,
|
|
77
|
+
k,
|
|
78
|
+
/*duration*/
|
|
79
|
+
i[2],
|
|
80
|
+
!1
|
|
81
|
+
)), o.run(0)), d = !1;
|
|
82
|
+
},
|
|
83
|
+
d(l) {
|
|
84
|
+
l && j(t), a && a.d(l), i[11](null), r(), l && o && o.end(), i[13](null);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function et(i) {
|
|
89
|
+
let t, e, n = (
|
|
90
|
+
/*show*/
|
|
91
|
+
i[5] && z(i)
|
|
92
|
+
);
|
|
93
|
+
return {
|
|
94
|
+
c() {
|
|
95
|
+
n && n.c(), t = P();
|
|
96
|
+
},
|
|
97
|
+
m(r, o) {
|
|
98
|
+
n && n.m(r, o), E(r, t, o), e = !0;
|
|
99
|
+
},
|
|
100
|
+
p(r, [o]) {
|
|
101
|
+
/*show*/
|
|
102
|
+
r[5] ? n ? (n.p(r, o), o & /*show*/
|
|
103
|
+
32 && m(n, 1)) : (n = z(r), n.c(), m(n, 1), n.m(t.parentNode, t)) : n && (G(), b(n, 1, 1, () => {
|
|
104
|
+
n = null;
|
|
105
|
+
}), N());
|
|
106
|
+
},
|
|
107
|
+
i(r) {
|
|
108
|
+
e || (m(n), e = !0);
|
|
109
|
+
},
|
|
110
|
+
o(r) {
|
|
111
|
+
b(n), e = !1;
|
|
112
|
+
},
|
|
113
|
+
d(r) {
|
|
114
|
+
r && j(t), n && n.d(r);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
function it(i, t, e) {
|
|
119
|
+
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;
|
|
120
|
+
const q = () => {
|
|
121
|
+
e(5, w = !1), window.postMessage({ type: "ClosedCashierModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
122
|
+
}, p = (s) => {
|
|
123
|
+
s.data.type == "ShowCashierModal" && (e(5, w = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), s.data.type == "HideCashierModal" && q();
|
|
124
|
+
};
|
|
125
|
+
Q(() => (window.addEventListener("message", p, !1), () => {
|
|
126
|
+
window.removeEventListener("message", p);
|
|
127
|
+
}));
|
|
128
|
+
function B(s) {
|
|
129
|
+
v[s ? "unshift" : "push"](() => {
|
|
130
|
+
_ = s, e(4, _);
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
function H() {
|
|
134
|
+
l = this.clientWidth, c = this.clientHeight, e(0, l), e(1, c);
|
|
135
|
+
}
|
|
136
|
+
function L(s) {
|
|
137
|
+
v[s ? "unshift" : "push"](() => {
|
|
138
|
+
u = s, e(3, u);
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
return i.$$set = (s) => {
|
|
142
|
+
"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);
|
|
143
|
+
}, i.$$.update = () => {
|
|
144
|
+
i.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
145
|
+
136 && d && u && X(u, d), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
146
|
+
264 && f && u && Y(u, f), i.$$.dirty & /*mbsource, customStylingContainer*/
|
|
147
|
+
72 && o && u && Z(u, `${o}.Style`);
|
|
148
|
+
}, [
|
|
149
|
+
l,
|
|
150
|
+
c,
|
|
151
|
+
a,
|
|
152
|
+
u,
|
|
153
|
+
_,
|
|
154
|
+
w,
|
|
155
|
+
o,
|
|
156
|
+
d,
|
|
157
|
+
f,
|
|
158
|
+
r,
|
|
159
|
+
n,
|
|
160
|
+
B,
|
|
161
|
+
H,
|
|
162
|
+
L
|
|
163
|
+
];
|
|
164
|
+
}
|
|
165
|
+
class W extends O {
|
|
166
|
+
constructor(t) {
|
|
167
|
+
super(), R(
|
|
168
|
+
this,
|
|
169
|
+
t,
|
|
170
|
+
it,
|
|
171
|
+
et,
|
|
172
|
+
T,
|
|
173
|
+
{
|
|
174
|
+
mbsource: 6,
|
|
175
|
+
clientstyling: 7,
|
|
176
|
+
clientstylingurl: 8,
|
|
177
|
+
duration: 2,
|
|
178
|
+
width: 0,
|
|
179
|
+
height: 1
|
|
180
|
+
},
|
|
181
|
+
$
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
get mbsource() {
|
|
185
|
+
return this.$$.ctx[6];
|
|
186
|
+
}
|
|
187
|
+
set mbsource(t) {
|
|
188
|
+
this.$$set({ mbsource: t }), g();
|
|
189
|
+
}
|
|
190
|
+
get clientstyling() {
|
|
191
|
+
return this.$$.ctx[7];
|
|
192
|
+
}
|
|
193
|
+
set clientstyling(t) {
|
|
194
|
+
this.$$set({ clientstyling: t }), g();
|
|
195
|
+
}
|
|
196
|
+
get clientstylingurl() {
|
|
197
|
+
return this.$$.ctx[8];
|
|
198
|
+
}
|
|
199
|
+
set clientstylingurl(t) {
|
|
200
|
+
this.$$set({ clientstylingurl: t }), g();
|
|
201
|
+
}
|
|
202
|
+
get duration() {
|
|
203
|
+
return this.$$.ctx[2];
|
|
204
|
+
}
|
|
205
|
+
set duration(t) {
|
|
206
|
+
this.$$set({ duration: t }), g();
|
|
207
|
+
}
|
|
208
|
+
get width() {
|
|
209
|
+
return this.$$.ctx[0];
|
|
210
|
+
}
|
|
211
|
+
set width(t) {
|
|
212
|
+
this.$$set({ width: t }), g();
|
|
213
|
+
}
|
|
214
|
+
get height() {
|
|
215
|
+
return this.$$.ctx[1];
|
|
216
|
+
}
|
|
217
|
+
set height(t) {
|
|
218
|
+
this.$$set({ height: t }), g();
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
V(W, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
|
|
222
|
+
const ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
223
|
+
__proto__: null,
|
|
224
|
+
default: W
|
|
225
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
226
|
+
export {
|
|
227
|
+
ot as C,
|
|
228
|
+
k as f
|
|
229
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as C, b as v, s as _, f as d, c as N, n as b, e as k, x as p, l as z, m as f, A as E, o as h, y as x, p as S, q as L, z as M, E as T } from "./CashierConfirmModal-
|
|
1
|
+
import { S as C, b as v, s as _, f as d, c as N, n as b, e as k, x as p, l as z, m as f, A as E, o as h, y as x, p as S, q as L, z as M, E as T } from "./CashierConfirmModal-DXlKhIue.js";
|
|
2
2
|
function q(n) {
|
|
3
3
|
N(n, "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}");
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as C, b as v, s as _, f as d, c as N, n as b, e as k, y as p, m as z, o as f, B as E, p as h, z as x, q as S, v as L, A as M, E as T } from "./CashierConfirmModal-
|
|
1
|
+
import { S as C, b as v, s as _, f as d, c as N, n as b, e as k, y as p, m as z, o as f, B as E, p as h, z as x, q as S, v as L, A as M, E as T } from "./CashierConfirmModal-BCk4hvRj.js";
|
|
2
2
|
function q(n) {
|
|
3
3
|
N(n, "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}");
|
|
4
4
|
}
|