@everymatrix/cashier-page 1.0.69 → 1.0.71

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