@everymatrix/cashier-page 1.69.4 → 1.69.70
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/CashierCarousel-CBJt8F6x.js +5377 -0
- package/components/CashierCarousel-CfmPEPcN.js +5414 -0
- package/components/CashierCarousel-D5kSWky0.cjs +23 -0
- package/components/CashierError-CdOvfojJ.js +438 -0
- package/components/CashierError-DGNe2xuq.js +438 -0
- package/components/CashierError-DNuC45d1.cjs +1 -0
- package/components/CashierHeader-Cs8CEaF9.js +397 -0
- package/components/CashierHeader-DdCbhGSh.cjs +1 -0
- package/components/CashierHeader-xmXCTyKW.js +397 -0
- package/components/CashierIframeRedirect-BXHKd8sC.cjs +1 -0
- package/components/CashierIframeRedirect-WvZUPBqV.js +398 -0
- package/components/CashierIframeRedirect-qUGXGx3s.js +398 -0
- package/components/CashierMethodDetails-CZH49Fbk.js +8896 -0
- package/components/CashierMethodDetails-D-yMmahK.cjs +85 -0
- package/components/CashierMethodDetails-DtBMR3Gl.js +8873 -0
- package/components/CashierMethodsList-BashajhV.js +745 -0
- package/components/CashierMethodsList-DSEMnW8P.cjs +1 -0
- package/components/CashierMethodsList-WHF8nfid.js +733 -0
- package/components/CashierModal-C3xM7LBv.js +268 -0
- package/components/CashierModal-Dt6jrD_7.js +268 -0
- package/components/CashierModal-R8kFj8iv.cjs +1 -0
- package/components/{CashierNotifications-dn6rnyK_.js → CashierNotifications-BlLqvSEs.js} +11 -11
- package/components/CashierNotifications-CkPy_2A7.cjs +1 -0
- package/components/{CashierNotifications-C48iLynX.js → CashierNotifications-DE3qEdiQ.js} +12 -12
- package/components/CashierPage-CRr4WELR.cjs +1 -0
- package/components/CashierPage-CokXt1Bz.js +2674 -0
- package/components/CashierPage-D3wSp1F6.js +2674 -0
- package/components/CashierReceiptPage-COrAdE73.cjs +26 -0
- package/components/CashierReceiptPage-DOh9j1sj.js +1693 -0
- package/components/CashierReceiptPage-DRKp8sTO.js +1689 -0
- package/components/CashierSessionExpirationModal-DpWXu2Pn.cjs +2 -0
- package/components/CashierSessionExpirationModal-Dz0mjHXB.js +1184 -0
- package/components/CashierSessionExpirationModal-S7cl-cVx.js +1184 -0
- package/components/CashierSpinner-BOrGTt9R.js +78 -0
- package/components/CashierSpinner-Bkz2A3Ui.cjs +1 -0
- package/components/CashierSpinner-ClchrEIo.js +78 -0
- package/components/CashierTransactionHistory-BckTfimD.js +1305 -0
- package/components/CashierTransactionHistory-ByijXCaI.cjs +1 -0
- package/components/CashierTransactionHistory-Dp7iiTLc.js +1305 -0
- package/components/CashierVerifications-BPurxVwq.js +597 -0
- package/components/CashierVerifications-DCnW6JT6.cjs +1 -0
- package/components/CashierVerifications-DySlpNtZ.js +601 -0
- package/components/TxnStatusIcon-B8ahOe2h.js +142 -0
- package/components/TxnStatusIcon-Bgj9uqou.cjs +1 -0
- package/components/TxnStatusIcon-CcSmN-7i.js +142 -0
- package/components/TxnTypeIcons-CBpa5s-y.cjs +1 -0
- package/components/TxnTypeIcons-DA9zdId9.js +101 -0
- package/components/TxnTypeIcons-zaR71CG9.js +101 -0
- 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-97d17652-D6HPqRtr.js → index-97d17652--F7PvMq9.js} +2 -2
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/{index-97d17652-B0NIExnR.js → index-97d17652-CCFHkzJw.js} +2 -2
- 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-DfVgiF6v.js → ui-image-BWJXFWH1.js} +2 -2
- package/stencil/{ui-image-DJSOH8ZL.cjs → ui-image-ByEXiBzx.cjs} +1 -1
- package/stencil/{ui-image-BY8ZO6br.js → ui-image-DIEeZy5u.js} +2 -2
- package/stencil/{ui-image-b7b48fe5-BXmf73Ou.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-c0NIgcTj.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DaWM2RbJ.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-L-CYescb.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-Cdo33umq.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-DbQ7SENq.js → ui-image_2-qO3reSlr.js} +2 -2
- 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/CashierConfirmModal-4RYp7Eiq.js +0 -1120
- package/components/CashierConfirmModal-DMmJumcl.cjs +0 -4
- package/components/CashierConfirmModal-untxGhsx.js +0 -1083
- package/components/CashierError-B3QY-Z04.js +0 -3800
- package/components/CashierError-B9QN5m8g.cjs +0 -5
- package/components/CashierError-lJcr3S9j.js +0 -3800
- package/components/CashierHeader-0a_PwGVg.js +0 -401
- package/components/CashierHeader-6fDSkiu1.js +0 -401
- package/components/CashierHeader-BWRxu_17.cjs +0 -1
- package/components/CashierIframeRedirect-2c-BnFeJ.js +0 -378
- package/components/CashierIframeRedirect-Bxe3aDw_.js +0 -378
- package/components/CashierIframeRedirect-DnE9lXCw.cjs +0 -1
- package/components/CashierMethodDetails-Bd3dJIne.js +0 -8271
- package/components/CashierMethodDetails-C1IkwS7r.cjs +0 -83
- package/components/CashierMethodDetails-CbzQCKZu.js +0 -8285
- package/components/CashierMethodsList-C1Roz4a7.js +0 -864
- package/components/CashierMethodsList-GlWqnvHm.cjs +0 -1
- package/components/CashierMethodsList-wbpWQlt7.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/CashierNotifications-BLJS7gpv.cjs +0 -1
- package/components/CashierPage-CeDNrFtr.cjs +0 -1
- package/components/CashierPage-D1XOiV_V.js +0 -2202
- package/components/CashierPage-DHASkcsL.js +0 -2202
- package/components/CashierReceiptPage--u9KEoCs.js +0 -1174
- package/components/CashierReceiptPage-BnvakxJQ.js +0 -1172
- package/components/CashierReceiptPage-DT0yYD3A.cjs +0 -1
- package/components/CashierSessionExpirationModal-BM6h05_P.js +0 -1208
- package/components/CashierSessionExpirationModal-DQBxk3nF.cjs +0 -2
- package/components/CashierSessionExpirationModal-DT7l33oM.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-75SCP1rv.cjs +0 -1
- package/components/CashierTransactionHistory-CfdEK8dI.js +0 -569
- package/components/CashierTransactionHistory-DxaRw8iZ.js +0 -569
- package/components/CashierVerifications-BTorcj-t.cjs +0 -1
- package/components/CashierVerifications-Bt9z1qXM.js +0 -624
- package/components/CashierVerifications-BvPWg9O1.js +0 -620
- package/components/CashierVideoModal-BZg_b6bd.cjs +0 -1
- package/components/CashierVideoModal-CVDvqrcy.js +0 -202
- package/components/CashierVideoModal-DHNu0BQz.js +0 -202
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
- package/stencil/index-97d17652-DNpK20ur.cjs +0 -1
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
import { Q as F, S as O, b as U, s as N, f as g, c as P, e as H, t as p, g as m, D as Q, k as A, l as L, w as G, H as I, d as J, R as C, F as v, u as K, h as V, j as X, m as k, T as Y, o as y, q as h, z as S, E as Z } from "./CashierConfirmModal-untxGhsx.js";
|
|
2
|
-
function x(n, { delay: t = 0, duration: e = 400, easing: i = F } = {}) {
|
|
3
|
-
const l = +getComputedStyle(n).opacity;
|
|
4
|
-
return {
|
|
5
|
-
delay: t,
|
|
6
|
-
duration: e,
|
|
7
|
-
easing: i,
|
|
8
|
-
css: (o) => `opacity: ${o * l}`
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
function $(n) {
|
|
12
|
-
P(n, "svelte-pil2bm", "*,*::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(--mmw--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(--mmw--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 = (n) => ({}), z = (n) => ({});
|
|
15
|
-
function E(n) {
|
|
16
|
-
let t, e, i, l, o, d;
|
|
17
|
-
const f = (
|
|
18
|
-
/*#slots*/
|
|
19
|
-
n[9].content
|
|
20
|
-
), a = J(
|
|
21
|
-
f,
|
|
22
|
-
n,
|
|
23
|
-
/*$$scope*/
|
|
24
|
-
n[8],
|
|
25
|
-
z
|
|
26
|
-
);
|
|
27
|
-
return {
|
|
28
|
-
c() {
|
|
29
|
-
t = y("div"), e = y("div"), i = y("div"), a && a.c(), h(i, "class", "ModalContainer"), h(i, "part", "ModalContainer"), h(e, "class", "ModalWindow"), h(e, "part", "ModalWindow"), h(e, "id", "Modal"), v(() => (
|
|
30
|
-
/*div1_elementresize_handler*/
|
|
31
|
-
n[11].call(e)
|
|
32
|
-
)), h(t, "part", "CustomStylingContainer");
|
|
33
|
-
},
|
|
34
|
-
m(r, c) {
|
|
35
|
-
L(r, t, c), k(t, e), k(e, i), a && a.m(i, null), n[10](e), l = Y(
|
|
36
|
-
e,
|
|
37
|
-
/*div1_elementresize_handler*/
|
|
38
|
-
n[11].bind(e)
|
|
39
|
-
), n[12](t), d = !0;
|
|
40
|
-
},
|
|
41
|
-
p(r, c) {
|
|
42
|
-
n = r, a && a.p && (!d || c & /*$$scope*/
|
|
43
|
-
256) && K(
|
|
44
|
-
a,
|
|
45
|
-
f,
|
|
46
|
-
n,
|
|
47
|
-
/*$$scope*/
|
|
48
|
-
n[8],
|
|
49
|
-
d ? X(
|
|
50
|
-
f,
|
|
51
|
-
/*$$scope*/
|
|
52
|
-
n[8],
|
|
53
|
-
c,
|
|
54
|
-
tt
|
|
55
|
-
) : V(
|
|
56
|
-
/*$$scope*/
|
|
57
|
-
n[8]
|
|
58
|
-
),
|
|
59
|
-
z
|
|
60
|
-
);
|
|
61
|
-
},
|
|
62
|
-
i(r) {
|
|
63
|
-
d || (m(a, r), r && v(() => {
|
|
64
|
-
d && (o || (o = C(
|
|
65
|
-
e,
|
|
66
|
-
x,
|
|
67
|
-
/*duration*/
|
|
68
|
-
n[2],
|
|
69
|
-
!0
|
|
70
|
-
)), o.run(1));
|
|
71
|
-
}), d = !0);
|
|
72
|
-
},
|
|
73
|
-
o(r) {
|
|
74
|
-
p(a, r), r && (o || (o = C(
|
|
75
|
-
e,
|
|
76
|
-
x,
|
|
77
|
-
/*duration*/
|
|
78
|
-
n[2],
|
|
79
|
-
!1
|
|
80
|
-
)), o.run(0)), d = !1;
|
|
81
|
-
},
|
|
82
|
-
d(r) {
|
|
83
|
-
r && H(t), a && a.d(r), n[10](null), l(), r && o && o.end(), n[12](null);
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
function et(n) {
|
|
88
|
-
let t, e, i = (
|
|
89
|
-
/*show*/
|
|
90
|
-
n[5] && E(n)
|
|
91
|
-
);
|
|
92
|
-
return {
|
|
93
|
-
c() {
|
|
94
|
-
i && i.c(), t = G();
|
|
95
|
-
},
|
|
96
|
-
m(l, o) {
|
|
97
|
-
i && i.m(l, o), L(l, t, o), e = !0;
|
|
98
|
-
},
|
|
99
|
-
p(l, [o]) {
|
|
100
|
-
/*show*/
|
|
101
|
-
l[5] ? i ? (i.p(l, o), o & /*show*/
|
|
102
|
-
32 && m(i, 1)) : (i = E(l), i.c(), m(i, 1), i.m(t.parentNode, t)) : i && (Q(), p(i, 1, 1, () => {
|
|
103
|
-
i = null;
|
|
104
|
-
}), A());
|
|
105
|
-
},
|
|
106
|
-
i(l) {
|
|
107
|
-
e || (m(i), e = !0);
|
|
108
|
-
},
|
|
109
|
-
o(l) {
|
|
110
|
-
p(i), e = !1;
|
|
111
|
-
},
|
|
112
|
-
d(l) {
|
|
113
|
-
l && H(t), i && i.d(l);
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
function nt(n, t, e) {
|
|
118
|
-
let { $$slots: i = {}, $$scope: l } = t, { clientstyling: o = "" } = t, { clientstylingurl: d = "" } = t, { duration: f = 200 } = t, { width: a } = t, { height: r } = t, c, u, _ = !1;
|
|
119
|
-
const T = () => {
|
|
120
|
-
e(5, _ = !1), window.postMessage({ type: "ClosedCashierModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
121
|
-
}, b = (s) => {
|
|
122
|
-
s.data.type == "ShowCashierModal" && (e(5, _ = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), s.data.type == "HideCashierModal" && T();
|
|
123
|
-
}, W = () => {
|
|
124
|
-
let s = document.createElement("style");
|
|
125
|
-
s.innerHTML = o, u.appendChild(s);
|
|
126
|
-
}, B = () => {
|
|
127
|
-
let s = new URL(d), M = document.createElement("style");
|
|
128
|
-
fetch(s.href).then((w) => w.text()).then((w) => {
|
|
129
|
-
M.innerHTML = w, setTimeout(
|
|
130
|
-
() => {
|
|
131
|
-
u.appendChild(M);
|
|
132
|
-
},
|
|
133
|
-
1
|
|
134
|
-
);
|
|
135
|
-
});
|
|
136
|
-
};
|
|
137
|
-
I(() => (window.addEventListener("message", b, !1), () => {
|
|
138
|
-
window.removeEventListener("message", b);
|
|
139
|
-
}));
|
|
140
|
-
function R(s) {
|
|
141
|
-
S[s ? "unshift" : "push"](() => {
|
|
142
|
-
c = s, e(4, c);
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
function q() {
|
|
146
|
-
a = this.clientWidth, r = this.clientHeight, e(0, a), e(1, r);
|
|
147
|
-
}
|
|
148
|
-
function D(s) {
|
|
149
|
-
S[s ? "unshift" : "push"](() => {
|
|
150
|
-
u = s, e(3, u);
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
return n.$$set = (s) => {
|
|
154
|
-
"clientstyling" in s && e(6, o = s.clientstyling), "clientstylingurl" in s && e(7, d = s.clientstylingurl), "duration" in s && e(2, f = s.duration), "width" in s && e(0, a = s.width), "height" in s && e(1, r = s.height), "$$scope" in s && e(8, l = s.$$scope);
|
|
155
|
-
}, n.$$.update = () => {
|
|
156
|
-
n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
157
|
-
72 && o && u && W(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
158
|
-
136 && d && u && B();
|
|
159
|
-
}, [
|
|
160
|
-
a,
|
|
161
|
-
r,
|
|
162
|
-
f,
|
|
163
|
-
u,
|
|
164
|
-
c,
|
|
165
|
-
_,
|
|
166
|
-
o,
|
|
167
|
-
d,
|
|
168
|
-
l,
|
|
169
|
-
i,
|
|
170
|
-
R,
|
|
171
|
-
q,
|
|
172
|
-
D
|
|
173
|
-
];
|
|
174
|
-
}
|
|
175
|
-
class j extends O {
|
|
176
|
-
constructor(t) {
|
|
177
|
-
super(), U(
|
|
178
|
-
this,
|
|
179
|
-
t,
|
|
180
|
-
nt,
|
|
181
|
-
et,
|
|
182
|
-
N,
|
|
183
|
-
{
|
|
184
|
-
clientstyling: 6,
|
|
185
|
-
clientstylingurl: 7,
|
|
186
|
-
duration: 2,
|
|
187
|
-
width: 0,
|
|
188
|
-
height: 1
|
|
189
|
-
},
|
|
190
|
-
$
|
|
191
|
-
);
|
|
192
|
-
}
|
|
193
|
-
get clientstyling() {
|
|
194
|
-
return this.$$.ctx[6];
|
|
195
|
-
}
|
|
196
|
-
set clientstyling(t) {
|
|
197
|
-
this.$$set({ clientstyling: t }), g();
|
|
198
|
-
}
|
|
199
|
-
get clientstylingurl() {
|
|
200
|
-
return this.$$.ctx[7];
|
|
201
|
-
}
|
|
202
|
-
set clientstylingurl(t) {
|
|
203
|
-
this.$$set({ clientstylingurl: t }), g();
|
|
204
|
-
}
|
|
205
|
-
get duration() {
|
|
206
|
-
return this.$$.ctx[2];
|
|
207
|
-
}
|
|
208
|
-
set duration(t) {
|
|
209
|
-
this.$$set({ duration: t }), g();
|
|
210
|
-
}
|
|
211
|
-
get width() {
|
|
212
|
-
return this.$$.ctx[0];
|
|
213
|
-
}
|
|
214
|
-
set width(t) {
|
|
215
|
-
this.$$set({ width: t }), g();
|
|
216
|
-
}
|
|
217
|
-
get height() {
|
|
218
|
-
return this.$$.ctx[1];
|
|
219
|
-
}
|
|
220
|
-
set height(t) {
|
|
221
|
-
this.$$set({ height: t }), g();
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
Z(j, { clientstyling: {}, clientstylingurl: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
|
|
225
|
-
const st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
226
|
-
__proto__: null,
|
|
227
|
-
default: j
|
|
228
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
229
|
-
export {
|
|
230
|
-
st as C,
|
|
231
|
-
x as f
|
|
232
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("./CashierConfirmModal-DMmJumcl.cjs");function m(i,{delay:e=0,duration:n=400,easing:l=t.identity}={}){const s=+getComputedStyle(i).opacity;return{delay:e,duration:n,easing:l,css:r=>`opacity: ${r*s}`}}function E(i){t.append_styles(i,"svelte-pil2bm","*,*::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(--mmw--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(--mmw--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 L=i=>({}),p=i=>({});function b(i){let e,n,l,s,r,c;const h=i[9].content,d=t.create_slot(h,i,i[8],p);return{c(){e=t.element("div"),n=t.element("div"),l=t.element("div"),d&&d.c(),t.attr(l,"class","ModalContainer"),t.attr(l,"part","ModalContainer"),t.attr(n,"class","ModalWindow"),t.attr(n,"part","ModalWindow"),t.attr(n,"id","Modal"),t.add_render_callback(()=>i[11].call(n)),t.attr(e,"part","CustomStylingContainer")},m(a,u){t.insert(a,e,u),t.append(e,n),t.append(n,l),d&&d.m(l,null),i[10](n),s=t.add_iframe_resize_listener(n,i[11].bind(n)),i[12](e),c=!0},p(a,u){i=a,d&&d.p&&(!c||u&256)&&t.update_slot_base(d,h,i,i[8],c?t.get_slot_changes(h,i[8],u,L):t.get_all_dirty_from_scope(i[8]),p)},i(a){c||(t.transition_in(d,a),a&&t.add_render_callback(()=>{c&&(r||(r=t.create_bidirectional_transition(n,m,i[2],!0)),r.run(1))}),c=!0)},o(a){t.transition_out(d,a),a&&(r||(r=t.create_bidirectional_transition(n,m,i[2],!1)),r.run(0)),c=!1},d(a){a&&t.detach(e),d&&d.d(a),i[10](null),s(),a&&r&&r.end(),i[12](null)}}}function H(i){let e,n,l=i[5]&&b(i);return{c(){l&&l.c(),e=t.empty()},m(s,r){l&&l.m(s,r),t.insert(s,e,r),n=!0},p(s,[r]){s[5]?l?(l.p(s,r),r&32&&t.transition_in(l,1)):(l=b(s),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(s){n||(t.transition_in(l),n=!0)},o(s){t.transition_out(l),n=!1},d(s){s&&t.detach(e),l&&l.d(s)}}}function W(i,e,n){let{$$slots:l={},$$scope:s}=e,{clientstyling:r=""}=e,{clientstylingurl:c=""}=e,{duration:h=200}=e,{width:d}=e,{height:a}=e,u,f,g=!1;const C=()=>{n(5,g=!1),window.postMessage({type:"ClosedCashierModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},w=o=>{o.data.type=="ShowCashierModal"&&(n(5,g=!0),window.postMessage({type:"DisableScroll"},window.location.href)),o.data.type=="HideCashierModal"&&C()},v=()=>{let o=document.createElement("style");o.innerHTML=r,f.appendChild(o)},k=()=>{let o=new URL(c),y=document.createElement("style");fetch(o.href).then(_=>_.text()).then(_=>{y.innerHTML=_,setTimeout(()=>{f.appendChild(y)},1)})};t.onMount(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)}));function S(o){t.binding_callbacks[o?"unshift":"push"](()=>{u=o,n(4,u)})}function x(){d=this.clientWidth,a=this.clientHeight,n(0,d),n(1,a)}function z(o){t.binding_callbacks[o?"unshift":"push"](()=>{f=o,n(3,f)})}return i.$$set=o=>{"clientstyling"in o&&n(6,r=o.clientstyling),"clientstylingurl"in o&&n(7,c=o.clientstylingurl),"duration"in o&&n(2,h=o.duration),"width"in o&&n(0,d=o.width),"height"in o&&n(1,a=o.height),"$$scope"in o&&n(8,s=o.$$scope)},i.$$.update=()=>{i.$$.dirty&72&&r&&f&&v(),i.$$.dirty&136&&c&&f&&k()},[d,a,h,f,u,g,r,c,s,l,S,x,z]}class M extends t.SvelteComponent{constructor(e){super(),t.init(this,e,W,H,t.safe_not_equal,{clientstyling:6,clientstylingurl:7,duration:2,width:0,height:1},E)}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}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(M,{clientstyling:{},clientstylingurl:{},duration:{},width:{},height:{}},["content"],[],!0);const j=Object.freeze(Object.defineProperty({__proto__:null,default:M},Symbol.toStringTag,{value:"Module"}));exports.CashierModal_ce=j;exports.fade=m;
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
import { Q as U, S as q, b as A, s as D, f as g, c as N, e as H, t as p, g as m, k as P, l as Q, m as L, x as G, H as I, d as J, R as C, F as v, u as K, h as V, j as X, o as k, T as Y, p as y, v as h, A as S, E as Z } from "./CashierConfirmModal-4RYp7Eiq.js";
|
|
2
|
-
function x(n, { delay: t = 0, duration: e = 400, easing: i = U } = {}) {
|
|
3
|
-
const l = +getComputedStyle(n).opacity;
|
|
4
|
-
return {
|
|
5
|
-
delay: t,
|
|
6
|
-
duration: e,
|
|
7
|
-
easing: i,
|
|
8
|
-
css: (o) => `opacity: ${o * l}`
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
function $(n) {
|
|
12
|
-
N(n, "svelte-pil2bm", "*,*::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(--mmw--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(--mmw--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 = (n) => ({}), z = (n) => ({});
|
|
15
|
-
function E(n) {
|
|
16
|
-
let t, e, i, l, o, d;
|
|
17
|
-
const f = (
|
|
18
|
-
/*#slots*/
|
|
19
|
-
n[9].content
|
|
20
|
-
), a = J(
|
|
21
|
-
f,
|
|
22
|
-
n,
|
|
23
|
-
/*$$scope*/
|
|
24
|
-
n[8],
|
|
25
|
-
z
|
|
26
|
-
);
|
|
27
|
-
return {
|
|
28
|
-
c() {
|
|
29
|
-
t = y("div"), e = y("div"), i = y("div"), a && a.c(), h(i, "class", "ModalContainer"), h(i, "part", "ModalContainer"), h(e, "class", "ModalWindow"), h(e, "part", "ModalWindow"), h(e, "id", "Modal"), v(() => (
|
|
30
|
-
/*div1_elementresize_handler*/
|
|
31
|
-
n[11].call(e)
|
|
32
|
-
)), h(t, "part", "CustomStylingContainer");
|
|
33
|
-
},
|
|
34
|
-
m(r, c) {
|
|
35
|
-
L(r, t, c), k(t, e), k(e, i), a && a.m(i, null), n[10](e), l = Y(
|
|
36
|
-
e,
|
|
37
|
-
/*div1_elementresize_handler*/
|
|
38
|
-
n[11].bind(e)
|
|
39
|
-
), n[12](t), d = !0;
|
|
40
|
-
},
|
|
41
|
-
p(r, c) {
|
|
42
|
-
n = r, a && a.p && (!d || c & /*$$scope*/
|
|
43
|
-
256) && K(
|
|
44
|
-
a,
|
|
45
|
-
f,
|
|
46
|
-
n,
|
|
47
|
-
/*$$scope*/
|
|
48
|
-
n[8],
|
|
49
|
-
d ? X(
|
|
50
|
-
f,
|
|
51
|
-
/*$$scope*/
|
|
52
|
-
n[8],
|
|
53
|
-
c,
|
|
54
|
-
tt
|
|
55
|
-
) : V(
|
|
56
|
-
/*$$scope*/
|
|
57
|
-
n[8]
|
|
58
|
-
),
|
|
59
|
-
z
|
|
60
|
-
);
|
|
61
|
-
},
|
|
62
|
-
i(r) {
|
|
63
|
-
d || (m(a, r), r && v(() => {
|
|
64
|
-
d && (o || (o = C(
|
|
65
|
-
e,
|
|
66
|
-
x,
|
|
67
|
-
/*duration*/
|
|
68
|
-
n[2],
|
|
69
|
-
!0
|
|
70
|
-
)), o.run(1));
|
|
71
|
-
}), d = !0);
|
|
72
|
-
},
|
|
73
|
-
o(r) {
|
|
74
|
-
p(a, r), r && (o || (o = C(
|
|
75
|
-
e,
|
|
76
|
-
x,
|
|
77
|
-
/*duration*/
|
|
78
|
-
n[2],
|
|
79
|
-
!1
|
|
80
|
-
)), o.run(0)), d = !1;
|
|
81
|
-
},
|
|
82
|
-
d(r) {
|
|
83
|
-
r && H(t), a && a.d(r), n[10](null), l(), r && o && o.end(), n[12](null);
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
function et(n) {
|
|
88
|
-
let t, e, i = (
|
|
89
|
-
/*show*/
|
|
90
|
-
n[5] && E(n)
|
|
91
|
-
);
|
|
92
|
-
return {
|
|
93
|
-
c() {
|
|
94
|
-
i && i.c(), t = G();
|
|
95
|
-
},
|
|
96
|
-
m(l, o) {
|
|
97
|
-
i && i.m(l, o), L(l, t, o), e = !0;
|
|
98
|
-
},
|
|
99
|
-
p(l, [o]) {
|
|
100
|
-
/*show*/
|
|
101
|
-
l[5] ? i ? (i.p(l, o), o & /*show*/
|
|
102
|
-
32 && m(i, 1)) : (i = E(l), i.c(), m(i, 1), i.m(t.parentNode, t)) : i && (P(), p(i, 1, 1, () => {
|
|
103
|
-
i = null;
|
|
104
|
-
}), Q());
|
|
105
|
-
},
|
|
106
|
-
i(l) {
|
|
107
|
-
e || (m(i), e = !0);
|
|
108
|
-
},
|
|
109
|
-
o(l) {
|
|
110
|
-
p(i), e = !1;
|
|
111
|
-
},
|
|
112
|
-
d(l) {
|
|
113
|
-
l && H(t), i && i.d(l);
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
function nt(n, t, e) {
|
|
118
|
-
let { $$slots: i = {}, $$scope: l } = t, { clientstyling: o = "" } = t, { clientstylingurl: d = "" } = t, { duration: f = 200 } = t, { width: a } = t, { height: r } = t, c, u, _ = !1;
|
|
119
|
-
const T = () => {
|
|
120
|
-
e(5, _ = !1), window.postMessage({ type: "ClosedCashierModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
121
|
-
}, b = (s) => {
|
|
122
|
-
s.data.type == "ShowCashierModal" && (e(5, _ = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), s.data.type == "HideCashierModal" && T();
|
|
123
|
-
}, W = () => {
|
|
124
|
-
let s = document.createElement("style");
|
|
125
|
-
s.innerHTML = o, u.appendChild(s);
|
|
126
|
-
}, B = () => {
|
|
127
|
-
let s = new URL(d), M = document.createElement("style");
|
|
128
|
-
fetch(s.href).then((w) => w.text()).then((w) => {
|
|
129
|
-
M.innerHTML = w, setTimeout(
|
|
130
|
-
() => {
|
|
131
|
-
u.appendChild(M);
|
|
132
|
-
},
|
|
133
|
-
1
|
|
134
|
-
);
|
|
135
|
-
});
|
|
136
|
-
};
|
|
137
|
-
I(() => (window.addEventListener("message", b, !1), () => {
|
|
138
|
-
window.removeEventListener("message", b);
|
|
139
|
-
}));
|
|
140
|
-
function R(s) {
|
|
141
|
-
S[s ? "unshift" : "push"](() => {
|
|
142
|
-
c = s, e(4, c);
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
function F() {
|
|
146
|
-
a = this.clientWidth, r = this.clientHeight, e(0, a), e(1, r);
|
|
147
|
-
}
|
|
148
|
-
function O(s) {
|
|
149
|
-
S[s ? "unshift" : "push"](() => {
|
|
150
|
-
u = s, e(3, u);
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
return n.$$set = (s) => {
|
|
154
|
-
"clientstyling" in s && e(6, o = s.clientstyling), "clientstylingurl" in s && e(7, d = s.clientstylingurl), "duration" in s && e(2, f = s.duration), "width" in s && e(0, a = s.width), "height" in s && e(1, r = s.height), "$$scope" in s && e(8, l = s.$$scope);
|
|
155
|
-
}, n.$$.update = () => {
|
|
156
|
-
n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
157
|
-
72 && o && u && W(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
158
|
-
136 && d && u && B();
|
|
159
|
-
}, [
|
|
160
|
-
a,
|
|
161
|
-
r,
|
|
162
|
-
f,
|
|
163
|
-
u,
|
|
164
|
-
c,
|
|
165
|
-
_,
|
|
166
|
-
o,
|
|
167
|
-
d,
|
|
168
|
-
l,
|
|
169
|
-
i,
|
|
170
|
-
R,
|
|
171
|
-
F,
|
|
172
|
-
O
|
|
173
|
-
];
|
|
174
|
-
}
|
|
175
|
-
class j extends q {
|
|
176
|
-
constructor(t) {
|
|
177
|
-
super(), A(
|
|
178
|
-
this,
|
|
179
|
-
t,
|
|
180
|
-
nt,
|
|
181
|
-
et,
|
|
182
|
-
D,
|
|
183
|
-
{
|
|
184
|
-
clientstyling: 6,
|
|
185
|
-
clientstylingurl: 7,
|
|
186
|
-
duration: 2,
|
|
187
|
-
width: 0,
|
|
188
|
-
height: 1
|
|
189
|
-
},
|
|
190
|
-
$
|
|
191
|
-
);
|
|
192
|
-
}
|
|
193
|
-
get clientstyling() {
|
|
194
|
-
return this.$$.ctx[6];
|
|
195
|
-
}
|
|
196
|
-
set clientstyling(t) {
|
|
197
|
-
this.$$set({ clientstyling: t }), g();
|
|
198
|
-
}
|
|
199
|
-
get clientstylingurl() {
|
|
200
|
-
return this.$$.ctx[7];
|
|
201
|
-
}
|
|
202
|
-
set clientstylingurl(t) {
|
|
203
|
-
this.$$set({ clientstylingurl: t }), g();
|
|
204
|
-
}
|
|
205
|
-
get duration() {
|
|
206
|
-
return this.$$.ctx[2];
|
|
207
|
-
}
|
|
208
|
-
set duration(t) {
|
|
209
|
-
this.$$set({ duration: t }), g();
|
|
210
|
-
}
|
|
211
|
-
get width() {
|
|
212
|
-
return this.$$.ctx[0];
|
|
213
|
-
}
|
|
214
|
-
set width(t) {
|
|
215
|
-
this.$$set({ width: t }), g();
|
|
216
|
-
}
|
|
217
|
-
get height() {
|
|
218
|
-
return this.$$.ctx[1];
|
|
219
|
-
}
|
|
220
|
-
set height(t) {
|
|
221
|
-
this.$$set({ height: t }), g();
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
Z(j, { clientstyling: {}, clientstylingurl: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
|
|
225
|
-
const st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
226
|
-
__proto__: null,
|
|
227
|
-
default: j
|
|
228
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
229
|
-
export {
|
|
230
|
-
st as C,
|
|
231
|
-
x as f
|
|
232
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-DMmJumcl.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,a,l,d;return{c(){e=t.element("div"),s=t.element("span"),c=t.text(i[0]),f=t.space(),o=t.element("button"),a=t.text(i[1]),t.attr(e,"class","CashierNotifications")},m(r,u){t.insert(r,e,u),t.append(e,s),t.append(s,c),t.append(e,f),t.append(e,o),t.append(o,a),i[6](e),l||(d=t.listen(o,"click",i[3]),l=!0)},p(r,[u]){u&1&&t.set_data(c,r[0]),u&2&&t.set_data(a,r[1])},i:t.noop,o:t.noop,d(r){r&&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:a=""}=e,l;const d=()=>{window.postMessage({type:"NotificationButtonClick"},window.location.href)},r=()=>{let n=document.createElement("style");n.innerHTML=o,l.appendChild(n)},u=()=>{let n=new URL(a),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,a=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&20&&o&&l&&r(),i.$$.dirty&36&&a&&l&&u()},[c,f,l,d,o,a,p]}class g extends t.SvelteComponent{constructor(e){super(),t.init(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;
|