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