@everymatrix/cashier-method-details 1.52.6 → 1.53.10

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