@everymatrix/cashier-page 1.54.0 → 1.54.4

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