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