@everymatrix/cashier-spinner 1.53.0 → 1.53.11

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,470 @@
1
+ function h() {
2
+ }
3
+ function v(t) {
4
+ return t();
5
+ }
6
+ function A() {
7
+ return /* @__PURE__ */ Object.create(null);
8
+ }
9
+ function m(t) {
10
+ t.forEach(v);
11
+ }
12
+ function P(t) {
13
+ return typeof t == "function";
14
+ }
15
+ function T(t, e) {
16
+ return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
17
+ }
18
+ function H(t) {
19
+ return Object.keys(t).length === 0;
20
+ }
21
+ function I(t, e) {
22
+ t.appendChild(e);
23
+ }
24
+ function U(t, e, n) {
25
+ const i = D(t);
26
+ if (!i.getElementById(e)) {
27
+ const s = E("style");
28
+ s.id = e, s.textContent = n, J(i, s);
29
+ }
30
+ }
31
+ function D(t) {
32
+ if (!t) return document;
33
+ const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
34
+ return e && /** @type {ShadowRoot} */
35
+ e.host ? (
36
+ /** @type {ShadowRoot} */
37
+ e
38
+ ) : t.ownerDocument;
39
+ }
40
+ function J(t, e) {
41
+ return I(
42
+ /** @type {Document} */
43
+ t.head || t,
44
+ e
45
+ ), e.sheet;
46
+ }
47
+ function B(t, e, n) {
48
+ t.insertBefore(e, n || null);
49
+ }
50
+ function C(t) {
51
+ t.parentNode && t.parentNode.removeChild(t);
52
+ }
53
+ function E(t) {
54
+ return document.createElement(t);
55
+ }
56
+ function M(t, e, n) {
57
+ n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
58
+ }
59
+ function V(t) {
60
+ return Array.from(t.childNodes);
61
+ }
62
+ function z(t) {
63
+ const e = {};
64
+ return t.childNodes.forEach(
65
+ /** @param {Element} node */
66
+ (n) => {
67
+ e[n.slot || "default"] = !0;
68
+ }
69
+ ), e;
70
+ }
71
+ let S;
72
+ function g(t) {
73
+ S = t;
74
+ }
75
+ const f = [], k = [];
76
+ let d = [];
77
+ const N = [], F = /* @__PURE__ */ Promise.resolve();
78
+ let x = !1;
79
+ function q() {
80
+ x || (x = !0, F.then(y));
81
+ }
82
+ function w(t) {
83
+ d.push(t);
84
+ }
85
+ const b = /* @__PURE__ */ new Set();
86
+ let a = 0;
87
+ function y() {
88
+ if (a !== 0)
89
+ return;
90
+ const t = S;
91
+ do {
92
+ try {
93
+ for (; a < f.length; ) {
94
+ const e = f[a];
95
+ a++, g(e), G(e.$$);
96
+ }
97
+ } catch (e) {
98
+ throw f.length = 0, a = 0, e;
99
+ }
100
+ for (g(null), f.length = 0, a = 0; k.length; ) k.pop()();
101
+ for (let e = 0; e < d.length; e += 1) {
102
+ const n = d[e];
103
+ b.has(n) || (b.add(n), n());
104
+ }
105
+ d.length = 0;
106
+ } while (f.length);
107
+ for (; N.length; )
108
+ N.pop()();
109
+ x = !1, b.clear(), g(t);
110
+ }
111
+ function G(t) {
112
+ if (t.fragment !== null) {
113
+ t.update(), m(t.before_update);
114
+ const e = t.dirty;
115
+ t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(w);
116
+ }
117
+ }
118
+ function K(t) {
119
+ const e = [], n = [];
120
+ d.forEach((i) => t.indexOf(i) === -1 ? e.push(i) : n.push(i)), n.forEach((i) => i()), d = e;
121
+ }
122
+ const Q = /* @__PURE__ */ new Set();
123
+ function W(t, e) {
124
+ t && t.i && (Q.delete(t), t.i(e));
125
+ }
126
+ function X(t, e, n) {
127
+ const { fragment: i, after_update: s } = t.$$;
128
+ i && i.m(e, n), w(() => {
129
+ const o = t.$$.on_mount.map(v).filter(P);
130
+ t.$$.on_destroy ? t.$$.on_destroy.push(...o) : m(o), t.$$.on_mount = [];
131
+ }), s.forEach(w);
132
+ }
133
+ function Y(t, e) {
134
+ const n = t.$$;
135
+ n.fragment !== null && (K(n.after_update), m(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
136
+ }
137
+ function Z(t, e) {
138
+ t.$$.dirty[0] === -1 && (f.push(t), q(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
139
+ }
140
+ function tt(t, e, n, i, s, o, u = null, c = [-1]) {
141
+ const l = S;
142
+ g(t);
143
+ const r = t.$$ = {
144
+ fragment: null,
145
+ ctx: [],
146
+ // state
147
+ props: o,
148
+ update: h,
149
+ not_equal: s,
150
+ bound: A(),
151
+ // lifecycle
152
+ on_mount: [],
153
+ on_destroy: [],
154
+ on_disconnect: [],
155
+ before_update: [],
156
+ after_update: [],
157
+ context: new Map(e.context || (l ? l.$$.context : [])),
158
+ // everything else
159
+ callbacks: A(),
160
+ dirty: c,
161
+ skip_bound: !1,
162
+ root: e.target || l.$$.root
163
+ };
164
+ u && u(r.root);
165
+ let _ = !1;
166
+ if (r.ctx = n(t, e.props || {}, ($, j, ...L) => {
167
+ const O = L.length ? L[0] : j;
168
+ return r.ctx && s(r.ctx[$], r.ctx[$] = O) && (!r.skip_bound && r.bound[$] && r.bound[$](O), _ && Z(t, $)), j;
169
+ }), r.update(), _ = !0, m(r.before_update), r.fragment = i(r.ctx), e.target) {
170
+ if (e.hydrate) {
171
+ const $ = V(e.target);
172
+ r.fragment && r.fragment.l($), $.forEach(C);
173
+ } else
174
+ r.fragment && r.fragment.c();
175
+ e.intro && W(t.$$.fragment), X(t, e.target, e.anchor), y();
176
+ }
177
+ g(l);
178
+ }
179
+ let R;
180
+ typeof HTMLElement == "function" && (R = class extends HTMLElement {
181
+ /** The Svelte component constructor */
182
+ $$ctor;
183
+ /** Slots */
184
+ $$s;
185
+ /** The Svelte component instance */
186
+ $$c;
187
+ /** Whether or not the custom element is connected */
188
+ $$cn = !1;
189
+ /** Component props data */
190
+ $$d = {};
191
+ /** `true` if currently in the process of reflecting component props back to attributes */
192
+ $$r = !1;
193
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
194
+ $$p_d = {};
195
+ /** @type {Record<string, Function[]>} Event listeners */
196
+ $$l = {};
197
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
198
+ $$l_u = /* @__PURE__ */ new Map();
199
+ constructor(t, e, n) {
200
+ super(), this.$$ctor = t, this.$$s = e, n && this.attachShadow({ mode: "open" });
201
+ }
202
+ addEventListener(t, e, n) {
203
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(e), this.$$c) {
204
+ const i = this.$$c.$on(t, e);
205
+ this.$$l_u.set(e, i);
206
+ }
207
+ super.addEventListener(t, e, n);
208
+ }
209
+ removeEventListener(t, e, n) {
210
+ if (super.removeEventListener(t, e, n), this.$$c) {
211
+ const i = this.$$l_u.get(e);
212
+ i && (i(), this.$$l_u.delete(e));
213
+ }
214
+ }
215
+ async connectedCallback() {
216
+ if (this.$$cn = !0, !this.$$c) {
217
+ let t = function(s) {
218
+ return () => {
219
+ let o;
220
+ return {
221
+ c: function() {
222
+ o = E("slot"), s !== "default" && M(o, "name", s);
223
+ },
224
+ /**
225
+ * @param {HTMLElement} target
226
+ * @param {HTMLElement} [anchor]
227
+ */
228
+ m: function(l, r) {
229
+ B(l, o, r);
230
+ },
231
+ d: function(l) {
232
+ l && C(o);
233
+ }
234
+ };
235
+ };
236
+ };
237
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
238
+ return;
239
+ const e = {}, n = z(this);
240
+ for (const s of this.$$s)
241
+ s in n && (e[s] = [t(s)]);
242
+ for (const s of this.attributes) {
243
+ const o = this.$$g_p(s.name);
244
+ o in this.$$d || (this.$$d[o] = p(o, s.value, this.$$p_d, "toProp"));
245
+ }
246
+ for (const s in this.$$p_d)
247
+ !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
248
+ this.$$c = new this.$$ctor({
249
+ target: this.shadowRoot || this,
250
+ props: {
251
+ ...this.$$d,
252
+ $$slots: e,
253
+ $$scope: {
254
+ ctx: []
255
+ }
256
+ }
257
+ });
258
+ const i = () => {
259
+ this.$$r = !0;
260
+ for (const s in this.$$p_d)
261
+ if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
262
+ const o = p(
263
+ s,
264
+ this.$$d[s],
265
+ this.$$p_d,
266
+ "toAttribute"
267
+ );
268
+ o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
269
+ }
270
+ this.$$r = !1;
271
+ };
272
+ this.$$c.$$.after_update.push(i), i();
273
+ for (const s in this.$$l)
274
+ for (const o of this.$$l[s]) {
275
+ const u = this.$$c.$on(s, o);
276
+ this.$$l_u.set(o, u);
277
+ }
278
+ this.$$l = {};
279
+ }
280
+ }
281
+ // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
282
+ // and setting attributes through setAttribute etc, this is helpful
283
+ attributeChangedCallback(t, e, n) {
284
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = p(t, n, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
285
+ }
286
+ disconnectedCallback() {
287
+ this.$$cn = !1, Promise.resolve().then(() => {
288
+ !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
289
+ });
290
+ }
291
+ $$g_p(t) {
292
+ return Object.keys(this.$$p_d).find(
293
+ (e) => this.$$p_d[e].attribute === t || !this.$$p_d[e].attribute && e.toLowerCase() === t
294
+ ) || t;
295
+ }
296
+ });
297
+ function p(t, e, n, i) {
298
+ const s = n[t]?.type;
299
+ if (e = s === "Boolean" && typeof e != "boolean" ? e != null : e, !i || !n[t])
300
+ return e;
301
+ if (i === "toAttribute")
302
+ switch (s) {
303
+ case "Object":
304
+ case "Array":
305
+ return e == null ? null : JSON.stringify(e);
306
+ case "Boolean":
307
+ return e ? "" : null;
308
+ case "Number":
309
+ return e ?? null;
310
+ default:
311
+ return e;
312
+ }
313
+ else
314
+ switch (s) {
315
+ case "Object":
316
+ case "Array":
317
+ return e && JSON.parse(e);
318
+ case "Boolean":
319
+ return e;
320
+ case "Number":
321
+ return e != null ? +e : e;
322
+ default:
323
+ return e;
324
+ }
325
+ }
326
+ function et(t, e, n, i, s, o) {
327
+ let u = class extends R {
328
+ constructor() {
329
+ super(t, n, s), this.$$p_d = e;
330
+ }
331
+ static get observedAttributes() {
332
+ return Object.keys(e).map(
333
+ (c) => (e[c].attribute || c).toLowerCase()
334
+ );
335
+ }
336
+ };
337
+ return Object.keys(e).forEach((c) => {
338
+ Object.defineProperty(u.prototype, c, {
339
+ get() {
340
+ return this.$$c && c in this.$$c ? this.$$c[c] : this.$$d[c];
341
+ },
342
+ set(l) {
343
+ l = p(c, l, e), this.$$d[c] = l, this.$$c?.$set({ [c]: l });
344
+ }
345
+ });
346
+ }), i.forEach((c) => {
347
+ Object.defineProperty(u.prototype, c, {
348
+ get() {
349
+ return this.$$c?.[c];
350
+ }
351
+ });
352
+ }), t.element = /** @type {any} */
353
+ u, u;
354
+ }
355
+ class nt {
356
+ /**
357
+ * ### PRIVATE API
358
+ *
359
+ * Do not use, may change at any time
360
+ *
361
+ * @type {any}
362
+ */
363
+ $$ = void 0;
364
+ /**
365
+ * ### PRIVATE API
366
+ *
367
+ * Do not use, may change at any time
368
+ *
369
+ * @type {any}
370
+ */
371
+ $$set = void 0;
372
+ /** @returns {void} */
373
+ $destroy() {
374
+ Y(this, 1), this.$destroy = h;
375
+ }
376
+ /**
377
+ * @template {Extract<keyof Events, string>} K
378
+ * @param {K} type
379
+ * @param {((e: Events[K]) => void) | null | undefined} callback
380
+ * @returns {() => void}
381
+ */
382
+ $on(e, n) {
383
+ if (!P(n))
384
+ return h;
385
+ const i = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
386
+ return i.push(n), () => {
387
+ const s = i.indexOf(n);
388
+ s !== -1 && i.splice(s, 1);
389
+ };
390
+ }
391
+ /**
392
+ * @param {Partial<Props>} props
393
+ * @returns {void}
394
+ */
395
+ $set(e) {
396
+ this.$$set && !H(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
397
+ }
398
+ }
399
+ const st = "4";
400
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(st);
401
+ function it(t) {
402
+ U(t, "svelte-fidj5e", ".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}");
403
+ }
404
+ function rt(t) {
405
+ let e;
406
+ return {
407
+ c() {
408
+ e = E("div"), e.innerHTML = '<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>', M(e, "class", "CashierSpinner");
409
+ },
410
+ m(n, i) {
411
+ B(n, e, i), t[3](e);
412
+ },
413
+ p: h,
414
+ i: h,
415
+ o: h,
416
+ d(n) {
417
+ n && C(e), t[3](null);
418
+ }
419
+ };
420
+ }
421
+ function ot(t, e, n) {
422
+ let { clientstyling: i = "" } = e, { clientstylingurl: s = "" } = e, o;
423
+ const u = () => {
424
+ let r = document.createElement("style");
425
+ r.innerHTML = i, o.appendChild(r);
426
+ }, c = () => {
427
+ let r = new URL(s), _ = document.createElement("style");
428
+ fetch(r.href).then(($) => $.text()).then(($) => {
429
+ _.innerHTML = $, setTimeout(
430
+ () => {
431
+ o.appendChild(_);
432
+ },
433
+ 1
434
+ );
435
+ });
436
+ };
437
+ function l(r) {
438
+ k[r ? "unshift" : "push"](() => {
439
+ o = r, n(0, o);
440
+ });
441
+ }
442
+ return t.$$set = (r) => {
443
+ "clientstyling" in r && n(1, i = r.clientstyling), "clientstylingurl" in r && n(2, s = r.clientstylingurl);
444
+ }, t.$$.update = () => {
445
+ t.$$.dirty & /*clientstyling, customStylingContainer*/
446
+ 3 && i && o && u(), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
447
+ 5 && s && o && c();
448
+ }, [o, i, s, l];
449
+ }
450
+ class ct extends nt {
451
+ constructor(e) {
452
+ super(), tt(this, e, ot, rt, T, { clientstyling: 1, clientstylingurl: 2 }, it);
453
+ }
454
+ get clientstyling() {
455
+ return this.$$.ctx[1];
456
+ }
457
+ set clientstyling(e) {
458
+ this.$$set({ clientstyling: e }), y();
459
+ }
460
+ get clientstylingurl() {
461
+ return this.$$.ctx[2];
462
+ }
463
+ set clientstylingurl(e) {
464
+ this.$$set({ clientstylingurl: e }), y();
465
+ }
466
+ }
467
+ et(ct, { clientstyling: {}, clientstylingurl: {} }, [], [], !0);
468
+ export {
469
+ ct as C
470
+ };
@@ -0,0 +1,14 @@
1
+ import { C as s } from "../components/CashierSpinner-BoG2cSM8.js";
2
+ function i(t) {
3
+ return function(...n) {
4
+ try {
5
+ return t.apply(this, n);
6
+ } catch (e) {
7
+ if (e instanceof DOMException && e.message.includes("has already been used with this registry") || e.message.includes("Cannot define multiple custom elements with the same tag name"))
8
+ return !1;
9
+ throw e;
10
+ }
11
+ };
12
+ }
13
+ customElements.define = i(customElements.define);
14
+ !customElements.get("cashier-spinner") && customElements.define("cashier-spinner", s.element);
package/package.json CHANGED
@@ -1,22 +1,26 @@
1
+
1
2
  {
2
3
  "name": "@everymatrix/cashier-spinner",
3
- "version": "1.53.0",
4
+ "version": "1.53.11",
4
5
  "type": "module",
5
- "main": "es2015/cashier-spinner.cjs",
6
- "module": "es2015/cashier-spinner.js",
6
+ "main": "esnext/cashier-spinner.js",
7
+ "module": "esnext/cashier-spinner.js",
7
8
  "exports": {
8
9
  ".": {
9
- "import": "./es2015/cashier-spinner.js",
10
- "require": "./es2015/cashier-spinner.cjs"
10
+ "import": "./esnext/casino-favorites-section.js"
11
11
  },
12
- "./es2015/cashier-spinner.cjs": "./es2015/cashier-spinner.cjs"
12
+ "./es2015/cashier-spinner.cjs": "./es2015/cashier-spinner.cjs",
13
+ "./es2015/cashier-spinner.js": "./es2015/cashier-spinner.js"
13
14
  },
14
15
  "files": [
16
+ "components/",
15
17
  "es2015/",
16
- "components",
17
- "stencil"
18
+ "stencil",
19
+ "angular",
20
+ "esnext/"
18
21
  ],
19
22
  "publishConfig": {
20
23
  "access": "public"
21
24
  }
22
25
  }
26
+
@@ -1,507 +0,0 @@
1
- var V = Object.defineProperty, z = Object.defineProperties;
2
- var F = Object.getOwnPropertyDescriptors;
3
- var v = Object.getOwnPropertySymbols;
4
- var q = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable;
5
- var k = (e, t, n) => t in e ? V(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, P = (e, t) => {
6
- for (var n in t || (t = {}))
7
- q.call(t, n) && k(e, n, t[n]);
8
- if (v)
9
- for (var n of v(t))
10
- G.call(t, n) && k(e, n, t[n]);
11
- return e;
12
- }, B = (e, t) => z(e, F(t));
13
- var f = (e, t, n) => k(e, typeof t != "symbol" ? t + "" : t, n);
14
- var M = (e, t, n) => new Promise((i, o) => {
15
- var s = (l) => {
16
- try {
17
- u(n.next(l));
18
- } catch (r) {
19
- o(r);
20
- }
21
- }, c = (l) => {
22
- try {
23
- u(n.throw(l));
24
- } catch (r) {
25
- o(r);
26
- }
27
- }, u = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(s, c);
28
- u((n = n.apply(e, t)).next());
29
- });
30
- function _() {
31
- }
32
- function H(e) {
33
- return e();
34
- }
35
- function R() {
36
- return /* @__PURE__ */ Object.create(null);
37
- }
38
- function b(e) {
39
- e.forEach(H);
40
- }
41
- function I(e) {
42
- return typeof e == "function";
43
- }
44
- function K(e, t) {
45
- return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
- }
47
- function Q(e) {
48
- return Object.keys(e).length === 0;
49
- }
50
- function W(e, t) {
51
- e.appendChild(t);
52
- }
53
- function X(e, t, n) {
54
- const i = Y(e);
55
- if (!i.getElementById(t)) {
56
- const o = j("style");
57
- o.id = t, o.textContent = n, Z(i, o);
58
- }
59
- }
60
- function Y(e) {
61
- if (!e) return document;
62
- const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
63
- return t && /** @type {ShadowRoot} */
64
- t.host ? (
65
- /** @type {ShadowRoot} */
66
- t
67
- ) : e.ownerDocument;
68
- }
69
- function Z(e, t) {
70
- return W(
71
- /** @type {Document} */
72
- e.head || e,
73
- t
74
- ), t.sheet;
75
- }
76
- function U(e, t, n) {
77
- e.insertBefore(t, n || null);
78
- }
79
- function S(e) {
80
- e.parentNode && e.parentNode.removeChild(e);
81
- }
82
- function j(e) {
83
- return document.createElement(e);
84
- }
85
- function D(e, t, n) {
86
- n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
87
- }
88
- function tt(e) {
89
- return Array.from(e.childNodes);
90
- }
91
- function et(e) {
92
- const t = {};
93
- return e.childNodes.forEach(
94
- /** @param {Element} node */
95
- (n) => {
96
- t[n.slot || "default"] = !0;
97
- }
98
- ), t;
99
- }
100
- let L;
101
- function p(e) {
102
- L = e;
103
- }
104
- const d = [], w = [];
105
- let g = [];
106
- const T = [], nt = /* @__PURE__ */ Promise.resolve();
107
- let E = !1;
108
- function st() {
109
- E || (E = !0, nt.then(m));
110
- }
111
- function C(e) {
112
- g.push(e);
113
- }
114
- const x = /* @__PURE__ */ new Set();
115
- let h = 0;
116
- function m() {
117
- if (h !== 0)
118
- return;
119
- const e = L;
120
- do {
121
- try {
122
- for (; h < d.length; ) {
123
- const t = d[h];
124
- h++, p(t), it(t.$$);
125
- }
126
- } catch (t) {
127
- throw d.length = 0, h = 0, t;
128
- }
129
- for (p(null), d.length = 0, h = 0; w.length; ) w.pop()();
130
- for (let t = 0; t < g.length; t += 1) {
131
- const n = g[t];
132
- x.has(n) || (x.add(n), n());
133
- }
134
- g.length = 0;
135
- } while (d.length);
136
- for (; T.length; )
137
- T.pop()();
138
- E = !1, x.clear(), p(e);
139
- }
140
- function it(e) {
141
- if (e.fragment !== null) {
142
- e.update(), b(e.before_update);
143
- const t = e.dirty;
144
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(C);
145
- }
146
- }
147
- function rt(e) {
148
- const t = [], n = [];
149
- g.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : n.push(i)), n.forEach((i) => i()), g = t;
150
- }
151
- const ot = /* @__PURE__ */ new Set();
152
- function ct(e, t) {
153
- e && e.i && (ot.delete(e), e.i(t));
154
- }
155
- function lt(e, t, n) {
156
- const { fragment: i, after_update: o } = e.$$;
157
- i && i.m(t, n), C(() => {
158
- const s = e.$$.on_mount.map(H).filter(I);
159
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : b(s), e.$$.on_mount = [];
160
- }), o.forEach(C);
161
- }
162
- function ut(e, t) {
163
- const n = e.$$;
164
- n.fragment !== null && (rt(n.after_update), b(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
165
- }
166
- function $t(e, t) {
167
- e.$$.dirty[0] === -1 && (d.push(e), st(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
168
- }
169
- function ft(e, t, n, i, o, s, c = null, u = [-1]) {
170
- const l = L;
171
- p(e);
172
- const r = e.$$ = {
173
- fragment: null,
174
- ctx: [],
175
- // state
176
- props: s,
177
- update: _,
178
- not_equal: o,
179
- bound: R(),
180
- // lifecycle
181
- on_mount: [],
182
- on_destroy: [],
183
- on_disconnect: [],
184
- before_update: [],
185
- after_update: [],
186
- context: new Map(t.context || (l ? l.$$.context : [])),
187
- // everything else
188
- callbacks: R(),
189
- dirty: u,
190
- skip_bound: !1,
191
- root: t.target || l.$$.root
192
- };
193
- c && c(r.root);
194
- let a = !1;
195
- if (r.ctx = n ? n(e, t.props || {}, ($, O, ...A) => {
196
- const N = A.length ? A[0] : O;
197
- return r.ctx && o(r.ctx[$], r.ctx[$] = N) && (!r.skip_bound && r.bound[$] && r.bound[$](N), a && $t(e, $)), O;
198
- }) : [], r.update(), a = !0, b(r.before_update), r.fragment = i ? i(r.ctx) : !1, t.target) {
199
- if (t.hydrate) {
200
- const $ = tt(t.target);
201
- r.fragment && r.fragment.l($), $.forEach(S);
202
- } else
203
- r.fragment && r.fragment.c();
204
- t.intro && ct(e.$$.fragment), lt(e, t.target, t.anchor), m();
205
- }
206
- p(l);
207
- }
208
- let J;
209
- typeof HTMLElement == "function" && (J = class extends HTMLElement {
210
- constructor(t, n, i) {
211
- super();
212
- /** The Svelte component constructor */
213
- f(this, "$$ctor");
214
- /** Slots */
215
- f(this, "$$s");
216
- /** The Svelte component instance */
217
- f(this, "$$c");
218
- /** Whether or not the custom element is connected */
219
- f(this, "$$cn", !1);
220
- /** Component props data */
221
- f(this, "$$d", {});
222
- /** `true` if currently in the process of reflecting component props back to attributes */
223
- f(this, "$$r", !1);
224
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
225
- f(this, "$$p_d", {});
226
- /** @type {Record<string, Function[]>} Event listeners */
227
- f(this, "$$l", {});
228
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
229
- f(this, "$$l_u", /* @__PURE__ */ new Map());
230
- this.$$ctor = t, this.$$s = n, i && this.attachShadow({ mode: "open" });
231
- }
232
- addEventListener(t, n, i) {
233
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
234
- const o = this.$$c.$on(t, n);
235
- this.$$l_u.set(n, o);
236
- }
237
- super.addEventListener(t, n, i);
238
- }
239
- removeEventListener(t, n, i) {
240
- if (super.removeEventListener(t, n, i), this.$$c) {
241
- const o = this.$$l_u.get(n);
242
- o && (o(), this.$$l_u.delete(n));
243
- }
244
- }
245
- connectedCallback() {
246
- return M(this, null, function* () {
247
- if (this.$$cn = !0, !this.$$c) {
248
- let t = function(s) {
249
- return () => {
250
- let c;
251
- return {
252
- c: function() {
253
- c = j("slot"), s !== "default" && D(c, "name", s);
254
- },
255
- /**
256
- * @param {HTMLElement} target
257
- * @param {HTMLElement} [anchor]
258
- */
259
- m: function(r, a) {
260
- U(r, c, a);
261
- },
262
- d: function(r) {
263
- r && S(c);
264
- }
265
- };
266
- };
267
- };
268
- if (yield Promise.resolve(), !this.$$cn || this.$$c)
269
- return;
270
- const n = {}, i = et(this);
271
- for (const s of this.$$s)
272
- s in i && (n[s] = [t(s)]);
273
- for (const s of this.attributes) {
274
- const c = this.$$g_p(s.name);
275
- c in this.$$d || (this.$$d[c] = y(c, s.value, this.$$p_d, "toProp"));
276
- }
277
- for (const s in this.$$p_d)
278
- !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
279
- this.$$c = new this.$$ctor({
280
- target: this.shadowRoot || this,
281
- props: B(P({}, this.$$d), {
282
- $$slots: n,
283
- $$scope: {
284
- ctx: []
285
- }
286
- })
287
- });
288
- const o = () => {
289
- this.$$r = !0;
290
- for (const s in this.$$p_d)
291
- if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
292
- const c = y(
293
- s,
294
- this.$$d[s],
295
- this.$$p_d,
296
- "toAttribute"
297
- );
298
- c == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, c);
299
- }
300
- this.$$r = !1;
301
- };
302
- this.$$c.$$.after_update.push(o), o();
303
- for (const s in this.$$l)
304
- for (const c of this.$$l[s]) {
305
- const u = this.$$c.$on(s, c);
306
- this.$$l_u.set(c, u);
307
- }
308
- this.$$l = {};
309
- }
310
- });
311
- }
312
- // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
313
- // and setting attributes through setAttribute etc, this is helpful
314
- attributeChangedCallback(t, n, i) {
315
- var o;
316
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = y(t, i, this.$$p_d, "toProp"), (o = this.$$c) == null || o.$set({ [t]: this.$$d[t] }));
317
- }
318
- disconnectedCallback() {
319
- this.$$cn = !1, Promise.resolve().then(() => {
320
- !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
321
- });
322
- }
323
- $$g_p(t) {
324
- return Object.keys(this.$$p_d).find(
325
- (n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
326
- ) || t;
327
- }
328
- });
329
- function y(e, t, n, i) {
330
- var s;
331
- const o = (s = n[e]) == null ? void 0 : s.type;
332
- if (t = o === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !n[e])
333
- return t;
334
- if (i === "toAttribute")
335
- switch (o) {
336
- case "Object":
337
- case "Array":
338
- return t == null ? null : JSON.stringify(t);
339
- case "Boolean":
340
- return t ? "" : null;
341
- case "Number":
342
- return t == null ? null : t;
343
- default:
344
- return t;
345
- }
346
- else
347
- switch (o) {
348
- case "Object":
349
- case "Array":
350
- return t && JSON.parse(t);
351
- case "Boolean":
352
- return t;
353
- case "Number":
354
- return t != null ? +t : t;
355
- default:
356
- return t;
357
- }
358
- }
359
- function at(e, t, n, i, o, s) {
360
- let c = class extends J {
361
- constructor() {
362
- super(e, n, o), this.$$p_d = t;
363
- }
364
- static get observedAttributes() {
365
- return Object.keys(t).map(
366
- (u) => (t[u].attribute || u).toLowerCase()
367
- );
368
- }
369
- };
370
- return Object.keys(t).forEach((u) => {
371
- Object.defineProperty(c.prototype, u, {
372
- get() {
373
- return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
374
- },
375
- set(l) {
376
- var r;
377
- l = y(u, l, t), this.$$d[u] = l, (r = this.$$c) == null || r.$set({ [u]: l });
378
- }
379
- });
380
- }), i.forEach((u) => {
381
- Object.defineProperty(c.prototype, u, {
382
- get() {
383
- var l;
384
- return (l = this.$$c) == null ? void 0 : l[u];
385
- }
386
- });
387
- }), e.element = /** @type {any} */
388
- c, c;
389
- }
390
- class ht {
391
- constructor() {
392
- /**
393
- * ### PRIVATE API
394
- *
395
- * Do not use, may change at any time
396
- *
397
- * @type {any}
398
- */
399
- f(this, "$$");
400
- /**
401
- * ### PRIVATE API
402
- *
403
- * Do not use, may change at any time
404
- *
405
- * @type {any}
406
- */
407
- f(this, "$$set");
408
- }
409
- /** @returns {void} */
410
- $destroy() {
411
- ut(this, 1), this.$destroy = _;
412
- }
413
- /**
414
- * @template {Extract<keyof Events, string>} K
415
- * @param {K} type
416
- * @param {((e: Events[K]) => void) | null | undefined} callback
417
- * @returns {() => void}
418
- */
419
- $on(t, n) {
420
- if (!I(n))
421
- return _;
422
- const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
423
- return i.push(n), () => {
424
- const o = i.indexOf(n);
425
- o !== -1 && i.splice(o, 1);
426
- };
427
- }
428
- /**
429
- * @param {Partial<Props>} props
430
- * @returns {void}
431
- */
432
- $set(t) {
433
- this.$$set && !Q(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
434
- }
435
- }
436
- const dt = "4";
437
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(dt);
438
- function _t(e) {
439
- X(e, "svelte-fidj5e", ".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}");
440
- }
441
- function gt(e) {
442
- let t;
443
- return {
444
- c() {
445
- t = j("div"), t.innerHTML = '<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>', D(t, "class", "CashierSpinner");
446
- },
447
- m(n, i) {
448
- U(n, t, i), e[3](t);
449
- },
450
- p: _,
451
- i: _,
452
- o: _,
453
- d(n) {
454
- n && S(t), e[3](null);
455
- }
456
- };
457
- }
458
- function pt(e, t, n) {
459
- let { clientstyling: i = "" } = t, { clientstylingurl: o = "" } = t, s;
460
- const c = () => {
461
- let r = document.createElement("style");
462
- r.innerHTML = i, s.appendChild(r);
463
- }, u = () => {
464
- let r = new URL(o), a = document.createElement("style");
465
- fetch(r.href).then(($) => $.text()).then(($) => {
466
- a.innerHTML = $, setTimeout(
467
- () => {
468
- s.appendChild(a);
469
- },
470
- 1
471
- );
472
- });
473
- };
474
- function l(r) {
475
- w[r ? "unshift" : "push"](() => {
476
- s = r, n(0, s);
477
- });
478
- }
479
- return e.$$set = (r) => {
480
- "clientstyling" in r && n(1, i = r.clientstyling), "clientstylingurl" in r && n(2, o = r.clientstylingurl);
481
- }, e.$$.update = () => {
482
- e.$$.dirty & /*clientstyling, customStylingContainer*/
483
- 3 && i && s && c(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
484
- 5 && o && s && u();
485
- }, [s, i, o, l];
486
- }
487
- class yt extends ht {
488
- constructor(t) {
489
- super(), ft(this, t, pt, gt, K, { clientstyling: 1, clientstylingurl: 2 }, _t);
490
- }
491
- get clientstyling() {
492
- return this.$$.ctx[1];
493
- }
494
- set clientstyling(t) {
495
- this.$$set({ clientstyling: t }), m();
496
- }
497
- get clientstylingurl() {
498
- return this.$$.ctx[2];
499
- }
500
- set clientstylingurl(t) {
501
- this.$$set({ clientstylingurl: t }), m();
502
- }
503
- }
504
- at(yt, { clientstyling: {}, clientstylingurl: {} }, [], [], !0);
505
- export {
506
- yt as default
507
- };
@@ -1 +0,0 @@
1
- "use strict";var z=Object.defineProperty,F=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var k=(e,t,n)=>t in e?z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P=(e,t)=>{for(var n in t||(t={}))G.call(t,n)&&k(e,n,t[n]);if(v)for(var n of v(t))K.call(t,n)&&k(e,n,t[n]);return e},M=(e,t)=>F(e,q(t));var f=(e,t,n)=>k(e,typeof t!="symbol"?t+"":t,n);var B=(e,t,n)=>new Promise((i,o)=>{var s=l=>{try{u(n.next(l))}catch(r){o(r)}},c=l=>{try{u(n.throw(l))}catch(r){o(r)}},u=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,c);u((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function _(){}function H(e){return e()}function T(){return Object.create(null)}function b(e){e.forEach(H)}function I(e){return typeof e=="function"}function Q(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function W(e){return Object.keys(e).length===0}function X(e,t){e.appendChild(t)}function Y(e,t,n){const i=Z(e);if(!i.getElementById(t)){const o=j("style");o.id=t,o.textContent=n,tt(i,o)}}function Z(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function tt(e,t){return X(e.head||e,t),t.sheet}function U(e,t,n){e.insertBefore(t,n||null)}function S(e){e.parentNode&&e.parentNode.removeChild(e)}function j(e){return document.createElement(e)}function D(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function et(e){return Array.from(e.childNodes)}function nt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let O;function y(e){O=e}const d=[],x=[];let g=[];const R=[],st=Promise.resolve();let E=!1;function it(){E||(E=!0,st.then(m))}function C(e){g.push(e)}const w=new Set;let h=0;function m(){if(h!==0)return;const e=O;do{try{for(;h<d.length;){const t=d[h];h++,y(t),rt(t.$$)}}catch(t){throw d.length=0,h=0,t}for(y(null),d.length=0,h=0;x.length;)x.pop()();for(let t=0;t<g.length;t+=1){const n=g[t];w.has(n)||(w.add(n),n())}g.length=0}while(d.length);for(;R.length;)R.pop()();E=!1,w.clear(),y(e)}function rt(e){if(e.fragment!==null){e.update(),b(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(C)}}function ot(e){const t=[],n=[];g.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),g=t}const ct=new Set;function lt(e,t){e&&e.i&&(ct.delete(e),e.i(t))}function ut(e,t,n){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,n),C(()=>{const s=e.$$.on_mount.map(H).filter(I);e.$$.on_destroy?e.$$.on_destroy.push(...s):b(s),e.$$.on_mount=[]}),o.forEach(C)}function $t(e,t){const n=e.$$;n.fragment!==null&&(ot(n.after_update),b(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ft(e,t){e.$$.dirty[0]===-1&&(d.push(e),it(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function at(e,t,n,i,o,s,c=null,u=[-1]){const l=O;y(e);const r=e.$$={fragment:null,ctx:[],props:s,update:_,not_equal:o,bound:T(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:T(),dirty:u,skip_bound:!1,root:t.target||l.$$.root};c&&c(r.root);let a=!1;if(r.ctx=n?n(e,t.props||{},($,L,...A)=>{const N=A.length?A[0]:L;return r.ctx&&o(r.ctx[$],r.ctx[$]=N)&&(!r.skip_bound&&r.bound[$]&&r.bound[$](N),a&&ft(e,$)),L}):[],r.update(),a=!0,b(r.before_update),r.fragment=i?i(r.ctx):!1,t.target){if(t.hydrate){const $=et(t.target);r.fragment&&r.fragment.l($),$.forEach(S)}else r.fragment&&r.fragment.c();t.intro&&lt(e.$$.fragment),ut(e,t.target,t.anchor),m()}y(l)}let J;typeof HTMLElement=="function"&&(J=class extends HTMLElement{constructor(t,n,i){super();f(this,"$$ctor");f(this,"$$s");f(this,"$$c");f(this,"$$cn",!1);f(this,"$$d",{});f(this,"$$r",!1);f(this,"$$p_d",{});f(this,"$$l",{});f(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const o=this.$$c.$on(t,n);this.$$l_u.set(n,o)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const o=this.$$l_u.get(n);o&&(o(),this.$$l_u.delete(n))}}connectedCallback(){return B(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let c;return{c:function(){c=j("slot"),s!=="default"&&D(c,"name",s)},m:function(r,a){U(r,c,a)},d:function(r){r&&S(c)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=nt(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const c=this.$$g_p(s.name);c in this.$$d||(this.$$d[c]=p(c,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:M(P({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const o=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const c=p(s,this.$$d[s],this.$$p_d,"toAttribute");c==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,c)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const s in this.$$l)for(const c of this.$$l[s]){const u=this.$$c.$on(s,c);this.$$l_u.set(c,u)}this.$$l={}}})}attributeChangedCallback(t,n,i){var o;this.$$r||(t=this.$$g_p(t),this.$$d[t]=p(t,i,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function p(e,t,n,i){var s;const o=(s=n[e])==null?void 0:s.type;if(t=o==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(o){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ht(e,t,n,i,o,s){let c=class extends J{constructor(){super(e,n,o),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(c.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(l){var r;l=p(u,l,t),this.$$d[u]=l,(r=this.$$c)==null||r.$set({[u]:l})}})}),i.forEach(u=>{Object.defineProperty(c.prototype,u,{get(){var l;return(l=this.$$c)==null?void 0:l[u]}})}),e.element=c,c}class dt{constructor(){f(this,"$$");f(this,"$$set")}$destroy(){$t(this,1),this.$destroy=_}$on(t,n){if(!I(n))return _;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const o=i.indexOf(n);o!==-1&&i.splice(o,1)}}$set(t){this.$$set&&!W(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const _t="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(_t);function gt(e){Y(e,"svelte-fidj5e",".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}")}function yt(e){let t;return{c(){t=j("div"),t.innerHTML='<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>',D(t,"class","CashierSpinner")},m(n,i){U(n,t,i),e[3](t)},p:_,i:_,o:_,d(n){n&&S(t),e[3](null)}}}function pt(e,t,n){let{clientstyling:i=""}=t,{clientstylingurl:o=""}=t,s;const c=()=>{let r=document.createElement("style");r.innerHTML=i,s.appendChild(r)},u=()=>{let r=new URL(o),a=document.createElement("style");fetch(r.href).then($=>$.text()).then($=>{a.innerHTML=$,setTimeout(()=>{s.appendChild(a)},1)})};function l(r){x[r?"unshift":"push"](()=>{s=r,n(0,s)})}return e.$$set=r=>{"clientstyling"in r&&n(1,i=r.clientstyling),"clientstylingurl"in r&&n(2,o=r.clientstylingurl)},e.$$.update=()=>{e.$$.dirty&3&&i&&s&&c(),e.$$.dirty&5&&o&&s&&u()},[s,i,o,l]}class V extends dt{constructor(t){super(),at(this,t,pt,yt,Q,{clientstyling:1,clientstylingurl:2},gt)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),m()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),m()}}ht(V,{clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=V;
@@ -1 +0,0 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierSpinner-gwVhaE0o.cjs")).then(({default:t})=>{!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",t.element)})}
@@ -1,16 +0,0 @@
1
- if (typeof window != "undefined") {
2
- let n = function(t) {
3
- return function(...s) {
4
- try {
5
- return t.apply(this, s);
6
- } catch (e) {
7
- if (e instanceof DOMException && e.message.includes("has already been used with this registry") || e.message.includes("Cannot define multiple custom elements with the same tag name"))
8
- return !1;
9
- throw e;
10
- }
11
- };
12
- };
13
- customElements.define = n(customElements.define), import("../components/CashierSpinner-CqC-ZElS.js").then(({ default: t }) => {
14
- !customElements.get("cashier-spinner") && customElements.define("cashier-spinner", t.element);
15
- });
16
- }