@everymatrix/cashier-page 1.55.0 → 1.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/components/CashierConfirmModal-B_XfWSC2.cjs +4 -0
  2. package/components/{CashierConfirmModal-Bho8FqJK.js → CashierConfirmModal-CnmhfysD.js} +520 -440
  3. package/components/CashierConfirmModal-DjJI47WY.js +1095 -0
  4. package/components/{CashierError-R8ZhIjyI.js → CashierError-BhW9Bd5u.js} +340 -342
  5. package/components/{CashierError-B6UnQRtt.js → CashierError-CcFXZ705.js} +340 -342
  6. package/components/{CashierError-Dj9dAyT_.cjs → CashierError-wHAQP3_C.cjs} +3 -3
  7. package/components/{CashierHeader-Ckcwhr6m.cjs → CashierHeader-BKrGT2Ae.cjs} +1 -1
  8. package/components/{CashierHeader-siQceHGX.js → CashierHeader-BUMem-fU.js} +44 -44
  9. package/components/{CashierHeader-CGdNSxx6.js → CashierHeader-B_qUwnRz.js} +42 -42
  10. package/components/{CashierIframeRedirect-C7zvMq6i.cjs → CashierIframeRedirect-BDIr-k4X.cjs} +1 -1
  11. package/components/{CashierIframeRedirect-Cf280zGs.js → CashierIframeRedirect-DK3-V6GJ.js} +33 -33
  12. package/components/{CashierIframeRedirect-BJdtHTt_.js → CashierIframeRedirect-DiWIODGM.js} +32 -32
  13. package/components/{CashierMethodDetails-0n7uERIs.js → CashierMethodDetails-B5Y9sYOg.js} +693 -689
  14. package/components/{CashierMethodDetails-Bh0qCR4w.js → CashierMethodDetails-C-KT1A-h.js} +708 -704
  15. package/components/{CashierMethodDetails-Bs5PGaZC.cjs → CashierMethodDetails-D8AGMiCO.cjs} +3 -3
  16. package/components/{CashierMethodsList-DIGc9AUv.js → CashierMethodsList-CbNajSX5.js} +89 -89
  17. package/components/{CashierMethodsList-C8rrtr0q.cjs → CashierMethodsList-DCPVijk5.cjs} +1 -1
  18. package/components/{CashierMethodsList-CNZycJM8.js → CashierMethodsList-Q3OYWKGV.js} +100 -100
  19. package/components/{CashierModal-FkJdngyj.cjs → CashierModal-B9SMcvPJ.cjs} +1 -1
  20. package/components/{CashierModal-_JYkOwJz.js → CashierModal-BQ75P20m.js} +37 -37
  21. package/components/{CashierModal-XEf2DPsH.js → CashierModal-DoTNxAOf.js} +31 -31
  22. package/components/{CashierNotifications-Dx7SHS2Y.js → CashierNotifications-BdcWgN-t.js} +18 -18
  23. package/components/{CashierNotifications-BJzRxOV_.cjs → CashierNotifications-C5qqk3s5.cjs} +1 -1
  24. package/components/{CashierNotifications-n-WNsBs_.js → CashierNotifications-DVCfwUo9.js} +19 -19
  25. package/components/{CashierPage-Z3s-AE-W.js → CashierPage-BGaDrX6p.js} +920 -776
  26. package/components/{CashierPage-HjIA5R5P.cjs → CashierPage-C67H_0uR.cjs} +1 -1
  27. package/components/{CashierPage-CUsOGi4E.js → CashierPage-Ckv_ecQa.js} +920 -776
  28. package/components/{CashierReceiptPage-CS5M5RZ6.js → CashierReceiptPage-B6Ot4u-u.js} +76 -76
  29. package/components/{CashierReceiptPage-DzQqg8nv.js → CashierReceiptPage-Cjz4isz4.js} +76 -76
  30. package/components/{CashierReceiptPage-DZyFyBqS.cjs → CashierReceiptPage-bBNHsfW5.cjs} +1 -1
  31. package/components/{CashierSessionExpirationModal-CXDh6poB.js → CashierSessionExpirationModal-8p7dxVmt.js} +47 -56
  32. package/components/{CashierSessionExpirationModal-CdyR3b34.cjs → CashierSessionExpirationModal-CWKlvhPF.cjs} +2 -2
  33. package/components/{CashierSessionExpirationModal-CBmx5SD7.js → CashierSessionExpirationModal-CbrAJQvx.js} +47 -56
  34. package/components/{CashierSpinner-CwTAvuPD.js → CashierSpinner-Cv-DKF1H.js} +26 -26
  35. package/components/{CashierSpinner-CySOWnIQ.cjs → CashierSpinner-CxYzgF3b.cjs} +1 -1
  36. package/components/{CashierSpinner-CQi2Ol7j.js → CashierSpinner-Y3YCsQEf.js} +25 -25
  37. package/components/CashierTransactionHistory-DRX91Hoc.cjs +1 -0
  38. package/components/CashierTransactionHistory-DmVVMYYd.js +567 -0
  39. package/components/CashierTransactionHistory-SjIsxvK5.js +567 -0
  40. package/components/{CashierVerifications-Dj7MJocZ.js → CashierVerifications-Cqc-k576.js} +72 -72
  41. package/components/{CashierVerifications-oj-eHRhw.cjs → CashierVerifications-D-3Ycigl.cjs} +1 -1
  42. package/components/{CashierVerifications-C1NppS_0.js → CashierVerifications-DL2hsNCJ.js} +26 -26
  43. package/components/{CashierVideoModal-BWI2U3UH.cjs → CashierVideoModal-CBBnFyqd.cjs} +1 -1
  44. package/components/{CashierVideoModal-CgS8X4Od.js → CashierVideoModal-DkujQ3WY.js} +33 -33
  45. package/components/{CashierVideoModal-C8etvcxP.js → CashierVideoModal-YsTJSZa7.js} +37 -37
  46. package/es2015/cashier-page.cjs +1 -1
  47. package/es2015/cashier-page.js +1 -1
  48. package/esnext/cashier-page.js +1 -1
  49. package/package.json +1 -1
  50. package/components/CashierConfirmModal-KmRU3Mgr.cjs +0 -4
  51. package/components/CashierConfirmModal-h87-4Uqk.js +0 -1015
@@ -0,0 +1,1095 @@
1
+ function M() {
2
+ }
3
+ const ot = (t) => t;
4
+ function St(t, e) {
5
+ for (const n in e) t[n] = e[n];
6
+ return (
7
+ /** @type {T & S} */
8
+ t
9
+ );
10
+ }
11
+ function Ct(t) {
12
+ return t();
13
+ }
14
+ function $t() {
15
+ return /* @__PURE__ */ Object.create(null);
16
+ }
17
+ function L(t) {
18
+ t.forEach(Ct);
19
+ }
20
+ function W(t) {
21
+ return typeof t == "function";
22
+ }
23
+ function At(t, e) {
24
+ return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
25
+ }
26
+ let H;
27
+ function ce(t, e) {
28
+ return t === e ? !0 : (H || (H = document.createElement("a")), H.href = e, t === H.href);
29
+ }
30
+ function Nt(t) {
31
+ return Object.keys(t).length === 0;
32
+ }
33
+ function Pt(t, ...e) {
34
+ if (t == null) {
35
+ for (const i of e)
36
+ i(void 0);
37
+ return M;
38
+ }
39
+ const n = t.subscribe(...e);
40
+ return n.unsubscribe ? () => n.unsubscribe() : n;
41
+ }
42
+ function ae(t, e, n) {
43
+ t.$$.on_destroy.push(Pt(e, n));
44
+ }
45
+ function I(t, e, n, i) {
46
+ if (t) {
47
+ const s = xt(t, e, n, i);
48
+ return t[0](s);
49
+ }
50
+ }
51
+ function xt(t, e, n, i) {
52
+ return t[1] && i ? St(n.ctx.slice(), t[1](i(e))) : n.ctx;
53
+ }
54
+ function q(t, e, n, i) {
55
+ if (t[2] && i) {
56
+ const s = t[2](i(n));
57
+ if (e.dirty === void 0)
58
+ return s;
59
+ if (typeof s == "object") {
60
+ const o = [], l = Math.max(e.dirty.length, s.length);
61
+ for (let r = 0; r < l; r += 1)
62
+ o[r] = e.dirty[r] | s[r];
63
+ return o;
64
+ }
65
+ return e.dirty | s;
66
+ }
67
+ return e.dirty;
68
+ }
69
+ function F(t, e, n, i, s, o) {
70
+ if (s) {
71
+ const l = xt(e, n, i, o);
72
+ t.p(l, s);
73
+ }
74
+ }
75
+ function U(t) {
76
+ if (t.ctx.length > 32) {
77
+ const e = [], n = t.ctx.length / 32;
78
+ for (let i = 0; i < n; i++)
79
+ e[i] = -1;
80
+ return e;
81
+ }
82
+ return -1;
83
+ }
84
+ const vt = typeof window < "u";
85
+ let lt = vt ? () => window.performance.now() : () => Date.now(), ct = vt ? (t) => requestAnimationFrame(t) : M;
86
+ const A = /* @__PURE__ */ new Set();
87
+ function kt(t) {
88
+ A.forEach((e) => {
89
+ e.c(t) || (A.delete(e), e.f());
90
+ }), A.size !== 0 && ct(kt);
91
+ }
92
+ function at(t) {
93
+ let e;
94
+ return A.size === 0 && ct(kt), {
95
+ promise: new Promise((n) => {
96
+ A.add(e = { c: t, f: n });
97
+ }),
98
+ abort() {
99
+ A.delete(e);
100
+ }
101
+ };
102
+ }
103
+ const ue = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : (
104
+ // @ts-ignore Node typings have this
105
+ global
106
+ );
107
+ function v(t, e) {
108
+ t.appendChild(e);
109
+ }
110
+ function zt(t, e, n) {
111
+ const i = ut(t);
112
+ if (!i.getElementById(e)) {
113
+ const s = E("style");
114
+ s.id = e, s.textContent = n, Et(i, s);
115
+ }
116
+ }
117
+ function ut(t) {
118
+ if (!t) return document;
119
+ const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
120
+ return e && /** @type {ShadowRoot} */
121
+ e.host ? (
122
+ /** @type {ShadowRoot} */
123
+ e
124
+ ) : t.ownerDocument;
125
+ }
126
+ function Bt(t) {
127
+ const e = E("style");
128
+ return e.textContent = "/* empty */", Et(ut(t), e), e.sheet;
129
+ }
130
+ function Et(t, e) {
131
+ return v(
132
+ /** @type {Document} */
133
+ t.head || t,
134
+ e
135
+ ), e.sheet;
136
+ }
137
+ function ft(t, e, n) {
138
+ t.insertBefore(e, n || null);
139
+ }
140
+ function z(t) {
141
+ t.parentNode && t.parentNode.removeChild(t);
142
+ }
143
+ function fe(t, e) {
144
+ for (let n = 0; n < t.length; n += 1)
145
+ t[n] && t[n].d(e);
146
+ }
147
+ function E(t) {
148
+ return document.createElement(t);
149
+ }
150
+ function mt(t) {
151
+ return document.createElementNS("http://www.w3.org/2000/svg", t);
152
+ }
153
+ function Mt(t) {
154
+ return document.createTextNode(t);
155
+ }
156
+ function nt() {
157
+ return Mt(" ");
158
+ }
159
+ function de() {
160
+ return Mt("");
161
+ }
162
+ function Q(t, e, n, i) {
163
+ return t.addEventListener(e, n, i), () => t.removeEventListener(e, n, i);
164
+ }
165
+ function he(t) {
166
+ return function(e) {
167
+ return e.preventDefault(), t.call(this, e);
168
+ };
169
+ }
170
+ function y(t, e, n) {
171
+ n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
172
+ }
173
+ function _e(t, e, n) {
174
+ const i = e.toLowerCase();
175
+ i in t ? t[i] = typeof t[i] == "boolean" && n === "" ? !0 : n : e in t ? t[e] = typeof t[e] == "boolean" && n === "" ? !0 : n : y(t, e, n);
176
+ }
177
+ function $e(t) {
178
+ return t === "" ? null : +t;
179
+ }
180
+ function Tt(t) {
181
+ return Array.from(t.childNodes);
182
+ }
183
+ function me(t, e) {
184
+ e = "" + e, t.data !== e && (t.data = /** @type {string} */
185
+ e);
186
+ }
187
+ function ge(t, e) {
188
+ t.value = e ?? "";
189
+ }
190
+ function pe(t, e, n, i) {
191
+ n == null ? t.style.removeProperty(e) : t.style.setProperty(e, n, "");
192
+ }
193
+ let J;
194
+ function Rt() {
195
+ if (J === void 0) {
196
+ J = !1;
197
+ try {
198
+ typeof window < "u" && window.parent && window.parent.document;
199
+ } catch {
200
+ J = !0;
201
+ }
202
+ }
203
+ return J;
204
+ }
205
+ function ye(t, e) {
206
+ getComputedStyle(t).position === "static" && (t.style.position = "relative");
207
+ const i = E("iframe");
208
+ i.setAttribute(
209
+ "style",
210
+ "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
211
+ ), i.setAttribute("aria-hidden", "true"), i.tabIndex = -1;
212
+ const s = Rt();
213
+ let o;
214
+ return s ? (i.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = Q(
215
+ window,
216
+ "message",
217
+ /** @param {MessageEvent} event */
218
+ (l) => {
219
+ l.source === i.contentWindow && e();
220
+ }
221
+ )) : (i.src = "about:blank", i.onload = () => {
222
+ o = Q(i.contentWindow, "resize", e), e();
223
+ }), v(t, i), () => {
224
+ (s || o && i.contentWindow) && o(), z(i);
225
+ };
226
+ }
227
+ function be(t, e, n) {
228
+ t.classList.toggle(e, !!n);
229
+ }
230
+ function Lt(t, e, { bubbles: n = !1, cancelable: i = !1 } = {}) {
231
+ return new CustomEvent(t, { detail: e, bubbles: n, cancelable: i });
232
+ }
233
+ function Dt(t) {
234
+ const e = {};
235
+ return t.childNodes.forEach(
236
+ /** @param {Element} node */
237
+ (n) => {
238
+ e[n.slot || "default"] = !0;
239
+ }
240
+ ), e;
241
+ }
242
+ const X = /* @__PURE__ */ new Map();
243
+ let Y = 0;
244
+ function Wt(t) {
245
+ let e = 5381, n = t.length;
246
+ for (; n--; ) e = (e << 5) - e ^ t.charCodeAt(n);
247
+ return e >>> 0;
248
+ }
249
+ function Ht(t, e) {
250
+ const n = { stylesheet: Bt(e), rules: {} };
251
+ return X.set(t, n), n;
252
+ }
253
+ function Z(t, e, n, i, s, o, l, r = 0) {
254
+ const u = 16.666 / i;
255
+ let c = `{
256
+ `;
257
+ for (let p = 0; p <= 1; p += u) {
258
+ const $ = e + (n - e) * o(p);
259
+ c += p * 100 + `%{${l($, 1 - $)}}
260
+ `;
261
+ }
262
+ const m = c + `100% {${l(n, 1 - n)}}
263
+ }`, _ = `__svelte_${Wt(m)}_${r}`, g = ut(t), { stylesheet: a, rules: d } = X.get(g) || Ht(g, t);
264
+ d[_] || (d[_] = !0, a.insertRule(`@keyframes ${_} ${m}`, a.cssRules.length));
265
+ const h = t.style.animation || "";
266
+ return t.style.animation = `${h ? `${h}, ` : ""}${_} ${i}ms linear ${s}ms 1 both`, Y += 1, _;
267
+ }
268
+ function tt(t, e) {
269
+ const n = (t.style.animation || "").split(", "), i = n.filter(
270
+ e ? (o) => o.indexOf(e) < 0 : (o) => o.indexOf("__svelte") === -1
271
+ // remove all Svelte animations
272
+ ), s = n.length - i.length;
273
+ s && (t.style.animation = i.join(", "), Y -= s, Y || It());
274
+ }
275
+ function It() {
276
+ ct(() => {
277
+ Y || (X.forEach((t) => {
278
+ const { ownerNode: e } = t.stylesheet;
279
+ e && z(e);
280
+ }), X.clear());
281
+ });
282
+ }
283
+ let D;
284
+ function R(t) {
285
+ D = t;
286
+ }
287
+ function dt() {
288
+ if (!D) throw new Error("Function called outside component initialization");
289
+ return D;
290
+ }
291
+ function we(t) {
292
+ dt().$$.on_mount.push(t);
293
+ }
294
+ function Ce(t) {
295
+ dt().$$.on_destroy.push(t);
296
+ }
297
+ function xe() {
298
+ const t = dt();
299
+ return (e, n, { cancelable: i = !1 } = {}) => {
300
+ const s = t.$$.callbacks[e];
301
+ if (s) {
302
+ const o = Lt(
303
+ /** @type {string} */
304
+ e,
305
+ n,
306
+ { cancelable: i }
307
+ );
308
+ return s.slice().forEach((l) => {
309
+ l.call(t, o);
310
+ }), !o.defaultPrevented;
311
+ }
312
+ return !0;
313
+ };
314
+ }
315
+ const S = [], st = [];
316
+ let N = [];
317
+ const gt = [], qt = /* @__PURE__ */ Promise.resolve();
318
+ let rt = !1;
319
+ function Ft() {
320
+ rt || (rt = !0, qt.then(et));
321
+ }
322
+ function P(t) {
323
+ N.push(t);
324
+ }
325
+ const it = /* @__PURE__ */ new Set();
326
+ let O = 0;
327
+ function et() {
328
+ if (O !== 0)
329
+ return;
330
+ const t = D;
331
+ do {
332
+ try {
333
+ for (; O < S.length; ) {
334
+ const e = S[O];
335
+ O++, R(e), Ut(e.$$);
336
+ }
337
+ } catch (e) {
338
+ throw S.length = 0, O = 0, e;
339
+ }
340
+ for (R(null), S.length = 0, O = 0; st.length; ) st.pop()();
341
+ for (let e = 0; e < N.length; e += 1) {
342
+ const n = N[e];
343
+ it.has(n) || (it.add(n), n());
344
+ }
345
+ N.length = 0;
346
+ } while (S.length);
347
+ for (; gt.length; )
348
+ gt.pop()();
349
+ rt = !1, it.clear(), R(t);
350
+ }
351
+ function Ut(t) {
352
+ if (t.fragment !== null) {
353
+ t.update(), L(t.before_update);
354
+ const e = t.dirty;
355
+ t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(P);
356
+ }
357
+ }
358
+ function Jt(t) {
359
+ const e = [], n = [];
360
+ N.forEach((i) => t.indexOf(i) === -1 ? e.push(i) : n.push(i)), n.forEach((i) => i()), N = e;
361
+ }
362
+ let B;
363
+ function ht() {
364
+ return B || (B = Promise.resolve(), B.then(() => {
365
+ B = null;
366
+ })), B;
367
+ }
368
+ function j(t, e, n) {
369
+ t.dispatchEvent(Lt(`${e ? "intro" : "outro"}${n}`));
370
+ }
371
+ const G = /* @__PURE__ */ new Set();
372
+ let k;
373
+ function ve() {
374
+ k = {
375
+ r: 0,
376
+ c: [],
377
+ p: k
378
+ // parent group
379
+ };
380
+ }
381
+ function ke() {
382
+ k.r || L(k.c), k = k.p;
383
+ }
384
+ function T(t, e) {
385
+ t && t.i && (G.delete(t), t.i(e));
386
+ }
387
+ function V(t, e, n, i) {
388
+ if (t && t.o) {
389
+ if (G.has(t)) return;
390
+ G.add(t), k.c.push(() => {
391
+ G.delete(t), i && (n && t.d(1), i());
392
+ }), t.o(e);
393
+ } else i && i();
394
+ }
395
+ const _t = { duration: 0 };
396
+ function Ee(t, e, n) {
397
+ const i = { direction: "in" };
398
+ let s = e(t, n, i), o = !1, l, r, u = 0;
399
+ function c() {
400
+ l && tt(t, l);
401
+ }
402
+ function m() {
403
+ const {
404
+ delay: g = 0,
405
+ duration: a = 300,
406
+ easing: d = ot,
407
+ tick: h = M,
408
+ css: p
409
+ } = s || _t;
410
+ p && (l = Z(t, 0, 1, a, g, d, p, u++)), h(0, 1);
411
+ const $ = lt() + g, w = $ + a;
412
+ r && r.abort(), o = !0, P(() => j(t, !0, "start")), r = at((C) => {
413
+ if (o) {
414
+ if (C >= w)
415
+ return h(1, 0), j(t, !0, "end"), c(), o = !1;
416
+ if (C >= $) {
417
+ const b = d((C - $) / a);
418
+ h(b, 1 - b);
419
+ }
420
+ }
421
+ return o;
422
+ });
423
+ }
424
+ let _ = !1;
425
+ return {
426
+ start() {
427
+ _ || (_ = !0, tt(t), W(s) ? (s = s(i), ht().then(m)) : m());
428
+ },
429
+ invalidate() {
430
+ _ = !1;
431
+ },
432
+ end() {
433
+ o && (c(), o = !1);
434
+ }
435
+ };
436
+ }
437
+ function Me(t, e, n) {
438
+ const i = { direction: "out" };
439
+ let s = e(t, n, i), o = !0, l;
440
+ const r = k;
441
+ r.r += 1;
442
+ let u;
443
+ function c() {
444
+ const {
445
+ delay: m = 0,
446
+ duration: _ = 300,
447
+ easing: g = ot,
448
+ tick: a = M,
449
+ css: d
450
+ } = s || _t;
451
+ d && (l = Z(t, 1, 0, _, m, g, d));
452
+ const h = lt() + m, p = h + _;
453
+ P(() => j(t, !1, "start")), "inert" in t && (u = /** @type {HTMLElement} */
454
+ t.inert, t.inert = !0), at(($) => {
455
+ if (o) {
456
+ if ($ >= p)
457
+ return a(0, 1), j(t, !1, "end"), --r.r || L(r.c), !1;
458
+ if ($ >= h) {
459
+ const w = g(($ - h) / _);
460
+ a(1 - w, w);
461
+ }
462
+ }
463
+ return o;
464
+ });
465
+ }
466
+ return W(s) ? ht().then(() => {
467
+ s = s(i), c();
468
+ }) : c(), {
469
+ end(m) {
470
+ m && "inert" in t && (t.inert = u), m && s.tick && s.tick(1, 0), o && (l && tt(t, l), o = !1);
471
+ }
472
+ };
473
+ }
474
+ function Le(t, e, n, i) {
475
+ let o = e(t, n, { direction: "both" }), l = i ? 0 : 1, r = null, u = null, c = null, m;
476
+ function _() {
477
+ c && tt(t, c);
478
+ }
479
+ function g(d, h) {
480
+ const p = (
481
+ /** @type {Program['d']} */
482
+ d.b - l
483
+ );
484
+ return h *= Math.abs(p), {
485
+ a: l,
486
+ b: d.b,
487
+ d: p,
488
+ duration: h,
489
+ start: d.start,
490
+ end: d.start + h,
491
+ group: d.group
492
+ };
493
+ }
494
+ function a(d) {
495
+ const {
496
+ delay: h = 0,
497
+ duration: p = 300,
498
+ easing: $ = ot,
499
+ tick: w = M,
500
+ css: C
501
+ } = o || _t, b = {
502
+ start: lt() + h,
503
+ b: d
504
+ };
505
+ d || (b.group = k, k.r += 1), "inert" in t && (d ? m !== void 0 && (t.inert = m) : (m = /** @type {HTMLElement} */
506
+ t.inert, t.inert = !0)), r || u ? u = b : (C && (_(), c = Z(t, l, d, p, h, $, C)), d && w(0, 1), r = g(b, p), P(() => j(t, d, "start")), at((f) => {
507
+ if (u && f > u.start && (r = g(u, p), u = null, j(t, r.b, "start"), C && (_(), c = Z(
508
+ t,
509
+ l,
510
+ r.b,
511
+ r.duration,
512
+ 0,
513
+ $,
514
+ o.css
515
+ ))), r) {
516
+ if (f >= r.end)
517
+ w(l = r.b, 1 - l), j(t, r.b, "end"), u || (r.b ? _() : --r.group.r || L(r.group.c)), r = null;
518
+ else if (f >= r.start) {
519
+ const x = f - r.start;
520
+ l = r.a + r.d * $(x / r.duration), w(l, 1 - l);
521
+ }
522
+ }
523
+ return !!(r || u);
524
+ }));
525
+ }
526
+ return {
527
+ run(d) {
528
+ W(o) ? ht().then(() => {
529
+ o = o({ direction: d ? "in" : "out" }), a(d);
530
+ }) : a(d);
531
+ },
532
+ end() {
533
+ _(), r = u = null;
534
+ }
535
+ };
536
+ }
537
+ function je(t) {
538
+ return t?.length !== void 0 ? t : Array.from(t);
539
+ }
540
+ function Vt(t, e, n) {
541
+ const { fragment: i, after_update: s } = t.$$;
542
+ i && i.m(e, n), P(() => {
543
+ const o = t.$$.on_mount.map(Ct).filter(W);
544
+ t.$$.on_destroy ? t.$$.on_destroy.push(...o) : L(o), t.$$.on_mount = [];
545
+ }), s.forEach(P);
546
+ }
547
+ function Gt(t, e) {
548
+ const n = t.$$;
549
+ n.fragment !== null && (Jt(n.after_update), L(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
550
+ }
551
+ function Kt(t, e) {
552
+ t.$$.dirty[0] === -1 && (S.push(t), Ft(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
553
+ }
554
+ function Qt(t, e, n, i, s, o, l = null, r = [-1]) {
555
+ const u = D;
556
+ R(t);
557
+ const c = t.$$ = {
558
+ fragment: null,
559
+ ctx: [],
560
+ // state
561
+ props: o,
562
+ update: M,
563
+ not_equal: s,
564
+ bound: $t(),
565
+ // lifecycle
566
+ on_mount: [],
567
+ on_destroy: [],
568
+ on_disconnect: [],
569
+ before_update: [],
570
+ after_update: [],
571
+ context: new Map(e.context || (u ? u.$$.context : [])),
572
+ // everything else
573
+ callbacks: $t(),
574
+ dirty: r,
575
+ skip_bound: !1,
576
+ root: e.target || u.$$.root
577
+ };
578
+ l && l(c.root);
579
+ let m = !1;
580
+ if (c.ctx = n ? n(t, e.props || {}, (_, g, ...a) => {
581
+ const d = a.length ? a[0] : g;
582
+ return c.ctx && s(c.ctx[_], c.ctx[_] = d) && (!c.skip_bound && c.bound[_] && c.bound[_](d), m && Kt(t, _)), g;
583
+ }) : [], c.update(), m = !0, L(c.before_update), c.fragment = i ? i(c.ctx) : !1, e.target) {
584
+ if (e.hydrate) {
585
+ const _ = Tt(e.target);
586
+ c.fragment && c.fragment.l(_), _.forEach(z);
587
+ } else
588
+ c.fragment && c.fragment.c();
589
+ e.intro && T(t.$$.fragment), Vt(t, e.target, e.anchor), et();
590
+ }
591
+ R(u);
592
+ }
593
+ let jt;
594
+ typeof HTMLElement == "function" && (jt = class extends HTMLElement {
595
+ /** The Svelte component constructor */
596
+ $$ctor;
597
+ /** Slots */
598
+ $$s;
599
+ /** The Svelte component instance */
600
+ $$c;
601
+ /** Whether or not the custom element is connected */
602
+ $$cn = !1;
603
+ /** Component props data */
604
+ $$d = {};
605
+ /** `true` if currently in the process of reflecting component props back to attributes */
606
+ $$r = !1;
607
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
608
+ $$p_d = {};
609
+ /** @type {Record<string, Function[]>} Event listeners */
610
+ $$l = {};
611
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
612
+ $$l_u = /* @__PURE__ */ new Map();
613
+ constructor(t, e, n) {
614
+ super(), this.$$ctor = t, this.$$s = e, n && this.attachShadow({ mode: "open" });
615
+ }
616
+ addEventListener(t, e, n) {
617
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(e), this.$$c) {
618
+ const i = this.$$c.$on(t, e);
619
+ this.$$l_u.set(e, i);
620
+ }
621
+ super.addEventListener(t, e, n);
622
+ }
623
+ removeEventListener(t, e, n) {
624
+ if (super.removeEventListener(t, e, n), this.$$c) {
625
+ const i = this.$$l_u.get(e);
626
+ i && (i(), this.$$l_u.delete(e));
627
+ }
628
+ }
629
+ async connectedCallback() {
630
+ if (this.$$cn = !0, !this.$$c) {
631
+ let t = function(s) {
632
+ return () => {
633
+ let o;
634
+ return {
635
+ c: function() {
636
+ o = E("slot"), s !== "default" && y(o, "name", s);
637
+ },
638
+ /**
639
+ * @param {HTMLElement} target
640
+ * @param {HTMLElement} [anchor]
641
+ */
642
+ m: function(u, c) {
643
+ ft(u, o, c);
644
+ },
645
+ d: function(u) {
646
+ u && z(o);
647
+ }
648
+ };
649
+ };
650
+ };
651
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
652
+ return;
653
+ const e = {}, n = Dt(this);
654
+ for (const s of this.$$s)
655
+ s in n && (e[s] = [t(s)]);
656
+ for (const s of this.attributes) {
657
+ const o = this.$$g_p(s.name);
658
+ o in this.$$d || (this.$$d[o] = K(o, s.value, this.$$p_d, "toProp"));
659
+ }
660
+ for (const s in this.$$p_d)
661
+ !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
662
+ this.$$c = new this.$$ctor({
663
+ target: this.shadowRoot || this,
664
+ props: {
665
+ ...this.$$d,
666
+ $$slots: e,
667
+ $$scope: {
668
+ ctx: []
669
+ }
670
+ }
671
+ });
672
+ const i = () => {
673
+ this.$$r = !0;
674
+ for (const s in this.$$p_d)
675
+ if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
676
+ const o = K(
677
+ s,
678
+ this.$$d[s],
679
+ this.$$p_d,
680
+ "toAttribute"
681
+ );
682
+ o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
683
+ }
684
+ this.$$r = !1;
685
+ };
686
+ this.$$c.$$.after_update.push(i), i();
687
+ for (const s in this.$$l)
688
+ for (const o of this.$$l[s]) {
689
+ const l = this.$$c.$on(s, o);
690
+ this.$$l_u.set(o, l);
691
+ }
692
+ this.$$l = {};
693
+ }
694
+ }
695
+ // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
696
+ // and setting attributes through setAttribute etc, this is helpful
697
+ attributeChangedCallback(t, e, n) {
698
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = K(t, n, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
699
+ }
700
+ disconnectedCallback() {
701
+ this.$$cn = !1, Promise.resolve().then(() => {
702
+ !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
703
+ });
704
+ }
705
+ $$g_p(t) {
706
+ return Object.keys(this.$$p_d).find(
707
+ (e) => this.$$p_d[e].attribute === t || !this.$$p_d[e].attribute && e.toLowerCase() === t
708
+ ) || t;
709
+ }
710
+ });
711
+ function K(t, e, n, i) {
712
+ const s = n[t]?.type;
713
+ if (e = s === "Boolean" && typeof e != "boolean" ? e != null : e, !i || !n[t])
714
+ return e;
715
+ if (i === "toAttribute")
716
+ switch (s) {
717
+ case "Object":
718
+ case "Array":
719
+ return e == null ? null : JSON.stringify(e);
720
+ case "Boolean":
721
+ return e ? "" : null;
722
+ case "Number":
723
+ return e ?? null;
724
+ default:
725
+ return e;
726
+ }
727
+ else
728
+ switch (s) {
729
+ case "Object":
730
+ case "Array":
731
+ return e && JSON.parse(e);
732
+ case "Boolean":
733
+ return e;
734
+ case "Number":
735
+ return e != null ? +e : e;
736
+ default:
737
+ return e;
738
+ }
739
+ }
740
+ function Xt(t, e, n, i, s, o) {
741
+ let l = class extends jt {
742
+ constructor() {
743
+ super(t, n, s), this.$$p_d = e;
744
+ }
745
+ static get observedAttributes() {
746
+ return Object.keys(e).map(
747
+ (r) => (e[r].attribute || r).toLowerCase()
748
+ );
749
+ }
750
+ };
751
+ return Object.keys(e).forEach((r) => {
752
+ Object.defineProperty(l.prototype, r, {
753
+ get() {
754
+ return this.$$c && r in this.$$c ? this.$$c[r] : this.$$d[r];
755
+ },
756
+ set(u) {
757
+ u = K(r, u, e), this.$$d[r] = u, this.$$c?.$set({ [r]: u });
758
+ }
759
+ });
760
+ }), i.forEach((r) => {
761
+ Object.defineProperty(l.prototype, r, {
762
+ get() {
763
+ return this.$$c?.[r];
764
+ }
765
+ });
766
+ }), t.element = /** @type {any} */
767
+ l, l;
768
+ }
769
+ class Yt {
770
+ /**
771
+ * ### PRIVATE API
772
+ *
773
+ * Do not use, may change at any time
774
+ *
775
+ * @type {any}
776
+ */
777
+ $$ = void 0;
778
+ /**
779
+ * ### PRIVATE API
780
+ *
781
+ * Do not use, may change at any time
782
+ *
783
+ * @type {any}
784
+ */
785
+ $$set = void 0;
786
+ /** @returns {void} */
787
+ $destroy() {
788
+ Gt(this, 1), this.$destroy = M;
789
+ }
790
+ /**
791
+ * @template {Extract<keyof Events, string>} K
792
+ * @param {K} type
793
+ * @param {((e: Events[K]) => void) | null | undefined} callback
794
+ * @returns {() => void}
795
+ */
796
+ $on(e, n) {
797
+ if (!W(n))
798
+ return M;
799
+ const i = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
800
+ return i.push(n), () => {
801
+ const s = i.indexOf(n);
802
+ s !== -1 && i.splice(s, 1);
803
+ };
804
+ }
805
+ /**
806
+ * @param {Partial<Props>} props
807
+ * @returns {void}
808
+ */
809
+ $set(e) {
810
+ this.$$set && !Nt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
811
+ }
812
+ }
813
+ const Zt = "4";
814
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Zt);
815
+ function te(t) {
816
+ zt(t, "svelte-1m890h5", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CashierModalWindow{container-type:inline-size;container-name:confirm-modal;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-background, rgba(0, 0, 0, 0.1))}.CashierModalContainer{width:500px;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;box-shadow:0 2px 6px 0 var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff)}.ModalOkBtn{color:var(--emw--color-white, #fff);display:flex;align-items:center;justify-content:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-normal, 400);font-family:inherit;height:46px;width:100%;border:none;border-radius:50px;line-height:125%;background-color:var(--emw--color-primary, #7EC51E);margin-top:var(--emw--spacing-small, 12px);cursor:pointer}.ModalCloseBtn{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:var(--emw--spacing-small, 12px) var(--emw--spacing-small, 12px);height:inherit;right:0;top:0;cursor:pointer}@container confirm-modal (max-width: 750px){.CashierModalContainer{margin:var(--emw--spacing-x-large, 30px) var(--emw--spacing-small, 12px)}}");
817
+ }
818
+ const ee = (t) => ({}), pt = (t) => ({}), ne = (t) => ({}), yt = (t) => ({}), ie = (t) => ({}), bt = (t) => ({ class: "CashierModalText" }), se = (t) => ({}), wt = (t) => ({ class: "CashierModalTitle" });
819
+ function re(t) {
820
+ let e, n;
821
+ return {
822
+ c() {
823
+ e = mt("svg"), n = mt("path"), y(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"), y(n, "fill", "#111111"), y(e, "xmlns", "http://www.w3.org/2000/svg"), y(e, "width", "13"), y(e, "height", "20"), y(e, "viewBox", "0 0 13 13"), y(e, "fill", "none");
824
+ },
825
+ m(i, s) {
826
+ ft(i, e, s), v(e, n);
827
+ },
828
+ p: M,
829
+ d(i) {
830
+ i && z(e);
831
+ }
832
+ };
833
+ }
834
+ function oe(t) {
835
+ let e, n, i, s, o, l, r, u, c, m, _;
836
+ const g = (
837
+ /*#slots*/
838
+ t[6].title
839
+ ), a = I(
840
+ g,
841
+ t,
842
+ /*$$scope*/
843
+ t[5],
844
+ wt
845
+ ), d = (
846
+ /*#slots*/
847
+ t[6].text
848
+ ), h = I(
849
+ d,
850
+ t,
851
+ /*$$scope*/
852
+ t[5],
853
+ bt
854
+ ), p = (
855
+ /*#slots*/
856
+ t[6].confirm
857
+ ), $ = I(
858
+ p,
859
+ t,
860
+ /*$$scope*/
861
+ t[5],
862
+ yt
863
+ ), w = (
864
+ /*#slots*/
865
+ t[6].close
866
+ ), C = I(
867
+ w,
868
+ t,
869
+ /*$$scope*/
870
+ t[5],
871
+ pt
872
+ ), b = C || re();
873
+ return {
874
+ c() {
875
+ e = E("div"), n = E("div"), i = E("div"), a && a.c(), s = nt(), h && h.c(), o = nt(), l = E("span"), $ && $.c(), r = nt(), u = E("span"), b && b.c(), y(l, "class", "ModalOkBtn"), y(l, "role", "button"), y(u, "class", "ModalCloseBtn"), y(u, "role", "button"), y(i, "class", "CashierModalContainer"), y(i, "part", "CashierModalContainer"), y(n, "class", "CashierModalWindow"), y(n, "part", "CashierModalWindow"), y(n, "id", "Modal"), y(e, "part", "CustomStylingContainer");
876
+ },
877
+ m(f, x) {
878
+ ft(f, e, x), v(e, n), v(n, i), a && a.m(i, null), v(i, s), h && h.m(i, null), v(i, o), v(i, l), $ && $.m(l, null), v(i, r), v(i, u), b && b.m(u, null), t[7](e), c = !0, m || (_ = [
879
+ Q(
880
+ l,
881
+ "click",
882
+ /*confirm*/
883
+ t[2]
884
+ ),
885
+ Q(
886
+ u,
887
+ "click",
888
+ /*close*/
889
+ t[1]
890
+ )
891
+ ], m = !0);
892
+ },
893
+ p(f, [x]) {
894
+ a && a.p && (!c || x & /*$$scope*/
895
+ 32) && F(
896
+ a,
897
+ g,
898
+ f,
899
+ /*$$scope*/
900
+ f[5],
901
+ c ? q(
902
+ g,
903
+ /*$$scope*/
904
+ f[5],
905
+ x,
906
+ se
907
+ ) : U(
908
+ /*$$scope*/
909
+ f[5]
910
+ ),
911
+ wt
912
+ ), h && h.p && (!c || x & /*$$scope*/
913
+ 32) && F(
914
+ h,
915
+ d,
916
+ f,
917
+ /*$$scope*/
918
+ f[5],
919
+ c ? q(
920
+ d,
921
+ /*$$scope*/
922
+ f[5],
923
+ x,
924
+ ie
925
+ ) : U(
926
+ /*$$scope*/
927
+ f[5]
928
+ ),
929
+ bt
930
+ ), $ && $.p && (!c || x & /*$$scope*/
931
+ 32) && F(
932
+ $,
933
+ p,
934
+ f,
935
+ /*$$scope*/
936
+ f[5],
937
+ c ? q(
938
+ p,
939
+ /*$$scope*/
940
+ f[5],
941
+ x,
942
+ ne
943
+ ) : U(
944
+ /*$$scope*/
945
+ f[5]
946
+ ),
947
+ yt
948
+ ), C && C.p && (!c || x & /*$$scope*/
949
+ 32) && F(
950
+ C,
951
+ w,
952
+ f,
953
+ /*$$scope*/
954
+ f[5],
955
+ c ? q(
956
+ w,
957
+ /*$$scope*/
958
+ f[5],
959
+ x,
960
+ ee
961
+ ) : U(
962
+ /*$$scope*/
963
+ f[5]
964
+ ),
965
+ pt
966
+ );
967
+ },
968
+ i(f) {
969
+ c || (T(a, f), T(h, f), T($, f), T(b, f), c = !0);
970
+ },
971
+ o(f) {
972
+ V(a, f), V(h, f), V($, f), V(b, f), c = !1;
973
+ },
974
+ d(f) {
975
+ f && z(e), a && a.d(f), h && h.d(f), $ && $.d(f), b && b.d(f), t[7](null), m = !1, L(_);
976
+ }
977
+ };
978
+ }
979
+ function le(t, e, n) {
980
+ let { $$slots: i = {}, $$scope: s } = e, { clientstyling: o = "" } = e, { clientstylingurl: l = "" } = e, r;
981
+ const u = () => {
982
+ window.postMessage({ type: "CloseModal" }, window.location.href);
983
+ }, c = () => {
984
+ window.postMessage({ type: "ConfirmModal" }, window.location.href), u();
985
+ }, m = () => {
986
+ let a = document.createElement("style");
987
+ a.innerHTML = o, r.appendChild(a);
988
+ }, _ = () => {
989
+ let a = new URL(l), d = document.createElement("style");
990
+ fetch(a.href).then((h) => h.text()).then((h) => {
991
+ d.innerHTML = h, setTimeout(
992
+ () => {
993
+ r.appendChild(d);
994
+ },
995
+ 1
996
+ );
997
+ });
998
+ };
999
+ function g(a) {
1000
+ st[a ? "unshift" : "push"](() => {
1001
+ r = a, n(0, r);
1002
+ });
1003
+ }
1004
+ return t.$$set = (a) => {
1005
+ "clientstyling" in a && n(3, o = a.clientstyling), "clientstylingurl" in a && n(4, l = a.clientstylingurl), "$$scope" in a && n(5, s = a.$$scope);
1006
+ }, t.$$.update = () => {
1007
+ t.$$.dirty & /*clientstyling, customStylingContainer*/
1008
+ 9 && o && r && m(), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
1009
+ 17 && l && r && _();
1010
+ }, [
1011
+ r,
1012
+ u,
1013
+ c,
1014
+ o,
1015
+ l,
1016
+ s,
1017
+ i,
1018
+ g
1019
+ ];
1020
+ }
1021
+ class Ot extends Yt {
1022
+ constructor(e) {
1023
+ super(), Qt(this, e, le, oe, At, { clientstyling: 3, clientstylingurl: 4 }, te);
1024
+ }
1025
+ get clientstyling() {
1026
+ return this.$$.ctx[3];
1027
+ }
1028
+ set clientstyling(e) {
1029
+ this.$$set({ clientstyling: e }), et();
1030
+ }
1031
+ get clientstylingurl() {
1032
+ return this.$$.ctx[4];
1033
+ }
1034
+ set clientstylingurl(e) {
1035
+ this.$$set({ clientstylingurl: e }), et();
1036
+ }
1037
+ }
1038
+ Xt(Ot, { clientstyling: {}, clientstylingurl: {} }, ["title", "text", "confirm", "close"], [], !0);
1039
+ const Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1040
+ __proto__: null,
1041
+ default: Ot
1042
+ }, Symbol.toStringTag, { value: "Module" }));
1043
+ export {
1044
+ Q as A,
1045
+ ce as B,
1046
+ ve as C,
1047
+ Xt as D,
1048
+ _e as E,
1049
+ P as F,
1050
+ ue as G,
1051
+ we as H,
1052
+ $e as I,
1053
+ be as J,
1054
+ je as K,
1055
+ fe as L,
1056
+ he as M,
1057
+ mt as N,
1058
+ ge as O,
1059
+ pe as P,
1060
+ xe as Q,
1061
+ ot as R,
1062
+ Yt as S,
1063
+ Le as T,
1064
+ ye as U,
1065
+ Ce as V,
1066
+ Me as W,
1067
+ Ee as X,
1068
+ Oe as Y,
1069
+ Pt as a,
1070
+ Qt as b,
1071
+ zt as c,
1072
+ I as d,
1073
+ z as e,
1074
+ et as f,
1075
+ T as g,
1076
+ U as h,
1077
+ W as i,
1078
+ q as j,
1079
+ ke as k,
1080
+ ft as l,
1081
+ v as m,
1082
+ M as n,
1083
+ E as o,
1084
+ nt as p,
1085
+ y as q,
1086
+ L as r,
1087
+ At as s,
1088
+ V as t,
1089
+ F as u,
1090
+ ae as v,
1091
+ de as w,
1092
+ me as x,
1093
+ Mt as y,
1094
+ st as z
1095
+ };