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