@everymatrix/cashier-method-details 1.72.2 → 1.73.1

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