@everymatrix/cashier-spinner 1.87.26 → 1.87.28
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.
- package/components/CashierSpinner-CYInQ4ui.cjs +1 -0
- package/components/{CashierSpinner-CFVv9PKS.js → CashierSpinner-CyU-Hpql.js} +192 -164
- package/components/{CashierSpinner-DMInk4J_.js → CashierSpinner-Dds8Ddi0.js} +239 -210
- package/es2015/cashier-spinner.cjs +1 -1
- package/es2015/cashier-spinner.js +1 -1
- package/esnext/cashier-spinner.js +1 -1
- package/package.json +1 -1
- package/components/CashierSpinner-CSZG1tQw.cjs +0 -1
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
var
|
|
1
|
+
var G = Object.defineProperty, J = Object.defineProperties;
|
|
2
2
|
var V = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var x = (e, t, n) => t in e ?
|
|
3
|
+
var N = Object.getOwnPropertySymbols;
|
|
4
|
+
var K = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var x = (e, t, n) => t in e ? G(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, B = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
K.call(t, n) && x(e, n, t[n]);
|
|
8
|
+
if (N)
|
|
9
|
+
for (var n of N(t))
|
|
10
|
+
W.call(t, n) && x(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, T = (e, t) => J(e, V(t));
|
|
13
13
|
var f = (e, t, n) => (x(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
|
-
var
|
|
15
|
-
var
|
|
14
|
+
var R = (e, t, n) => new Promise((s, i) => {
|
|
15
|
+
var r = (l) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
17
|
+
u(n.next(l));
|
|
18
|
+
} catch (c) {
|
|
19
|
+
i(c);
|
|
20
20
|
}
|
|
21
|
-
}, o = (
|
|
21
|
+
}, o = (l) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
|
|
23
|
+
u(n.throw(l));
|
|
24
|
+
} catch (c) {
|
|
25
|
+
i(c);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, u = (l) => l.done ? s(l.value) : Promise.resolve(l.value).then(r, o);
|
|
28
|
+
u((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function _() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function U(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function P() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function S(e) {
|
|
39
|
+
e.forEach(U);
|
|
40
40
|
}
|
|
41
41
|
function z(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Y(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function q(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Q(e, t) {
|
|
51
51
|
e.appendChild(t);
|
|
52
52
|
}
|
|
53
53
|
function X(e, t, n) {
|
|
54
|
-
const s =
|
|
54
|
+
const s = Z(e);
|
|
55
55
|
if (!s.getElementById(t)) {
|
|
56
|
-
const
|
|
57
|
-
|
|
56
|
+
const i = O("style");
|
|
57
|
+
i.id = t, i.textContent = n, tt(s, i);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Z(e) {
|
|
61
61
|
if (!e)
|
|
62
62
|
return document;
|
|
63
63
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -67,29 +67,29 @@ function Y(e) {
|
|
|
67
67
|
t
|
|
68
68
|
) : e.ownerDocument;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
return
|
|
70
|
+
function tt(e, t) {
|
|
71
|
+
return Q(
|
|
72
72
|
/** @type {Document} */
|
|
73
73
|
e.head || e,
|
|
74
74
|
t
|
|
75
75
|
), t.sheet;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function D(e, t, n) {
|
|
78
78
|
e.insertBefore(t, n || null);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function j(e) {
|
|
81
81
|
e.parentNode && e.parentNode.removeChild(e);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function O(e) {
|
|
84
84
|
return document.createElement(e);
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function I(e, t, n) {
|
|
87
87
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function et(e) {
|
|
90
90
|
return Array.from(e.childNodes);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function nt(e) {
|
|
93
93
|
const t = {};
|
|
94
94
|
return e.childNodes.forEach(
|
|
95
95
|
/** @param {Element} node */
|
|
@@ -99,124 +99,124 @@ function et(e) {
|
|
|
99
99
|
), t;
|
|
100
100
|
}
|
|
101
101
|
let g;
|
|
102
|
-
function
|
|
102
|
+
function y(e) {
|
|
103
103
|
g = e;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function st() {
|
|
106
106
|
if (!g)
|
|
107
107
|
throw new Error("Function called outside component initialization");
|
|
108
108
|
return g;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
|
|
110
|
+
function rt(e) {
|
|
111
|
+
st().$$.on_mount.push(e);
|
|
112
112
|
}
|
|
113
|
-
const
|
|
114
|
-
let
|
|
115
|
-
const
|
|
116
|
-
let
|
|
117
|
-
function
|
|
118
|
-
|
|
113
|
+
const d = [], C = [];
|
|
114
|
+
let p = [];
|
|
115
|
+
const H = [], it = /* @__PURE__ */ Promise.resolve();
|
|
116
|
+
let E = !1;
|
|
117
|
+
function ot() {
|
|
118
|
+
E || (E = !0, it.then(m));
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
|
|
120
|
+
function L(e) {
|
|
121
|
+
p.push(e);
|
|
122
122
|
}
|
|
123
123
|
const k = /* @__PURE__ */ new Set();
|
|
124
|
-
let
|
|
125
|
-
function
|
|
126
|
-
if (
|
|
124
|
+
let h = 0;
|
|
125
|
+
function m() {
|
|
126
|
+
if (h !== 0)
|
|
127
127
|
return;
|
|
128
128
|
const e = g;
|
|
129
129
|
do {
|
|
130
130
|
try {
|
|
131
|
-
for (;
|
|
132
|
-
const t = h
|
|
133
|
-
|
|
131
|
+
for (; h < d.length; ) {
|
|
132
|
+
const t = d[h];
|
|
133
|
+
h++, y(t), ct(t.$$);
|
|
134
134
|
}
|
|
135
135
|
} catch (t) {
|
|
136
|
-
throw
|
|
136
|
+
throw d.length = 0, h = 0, t;
|
|
137
137
|
}
|
|
138
|
-
for (
|
|
139
|
-
|
|
140
|
-
for (let t = 0; t <
|
|
141
|
-
const n =
|
|
138
|
+
for (y(null), d.length = 0, h = 0; C.length; )
|
|
139
|
+
C.pop()();
|
|
140
|
+
for (let t = 0; t < p.length; t += 1) {
|
|
141
|
+
const n = p[t];
|
|
142
142
|
k.has(n) || (k.add(n), n());
|
|
143
143
|
}
|
|
144
|
-
|
|
145
|
-
} while (
|
|
146
|
-
for (;
|
|
147
|
-
|
|
148
|
-
|
|
144
|
+
p.length = 0;
|
|
145
|
+
} while (d.length);
|
|
146
|
+
for (; H.length; )
|
|
147
|
+
H.pop()();
|
|
148
|
+
E = !1, k.clear(), y(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function ct(e) {
|
|
151
151
|
if (e.fragment !== null) {
|
|
152
|
-
e.update(),
|
|
152
|
+
e.update(), S(e.before_update);
|
|
153
153
|
const t = e.dirty;
|
|
154
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
154
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(L);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function ut(e) {
|
|
158
158
|
const t = [], n = [];
|
|
159
|
-
|
|
159
|
+
p.forEach((s) => e.indexOf(s) === -1 ? t.push(s) : n.push(s)), n.forEach((s) => s()), p = t;
|
|
160
160
|
}
|
|
161
|
-
const
|
|
162
|
-
function
|
|
163
|
-
e && e.i && (
|
|
161
|
+
const lt = /* @__PURE__ */ new Set();
|
|
162
|
+
function ft(e, t) {
|
|
163
|
+
e && e.i && (lt.delete(e), e.i(t));
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
const { fragment: s, after_update:
|
|
167
|
-
s && s.m(t, n),
|
|
168
|
-
const
|
|
169
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
170
|
-
}),
|
|
165
|
+
function at(e, t, n) {
|
|
166
|
+
const { fragment: s, after_update: i } = e.$$;
|
|
167
|
+
s && s.m(t, n), L(() => {
|
|
168
|
+
const r = e.$$.on_mount.map(U).filter(z);
|
|
169
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...r) : S(r), e.$$.on_mount = [];
|
|
170
|
+
}), i.forEach(L);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function ht(e, t) {
|
|
173
173
|
const n = e.$$;
|
|
174
|
-
n.fragment !== null && (
|
|
174
|
+
n.fragment !== null && (ut(n.after_update), S(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
e.$$.dirty[0] === -1 && (
|
|
176
|
+
function dt(e, t) {
|
|
177
|
+
e.$$.dirty[0] === -1 && (d.push(e), ot(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
const
|
|
181
|
-
|
|
182
|
-
const
|
|
179
|
+
function $t(e, t, n, s, i, r, o = null, u = [-1]) {
|
|
180
|
+
const l = g;
|
|
181
|
+
y(e);
|
|
182
|
+
const c = e.$$ = {
|
|
183
183
|
fragment: null,
|
|
184
184
|
ctx: [],
|
|
185
185
|
// state
|
|
186
|
-
props:
|
|
187
|
-
update:
|
|
188
|
-
not_equal:
|
|
189
|
-
bound:
|
|
186
|
+
props: r,
|
|
187
|
+
update: _,
|
|
188
|
+
not_equal: i,
|
|
189
|
+
bound: P(),
|
|
190
190
|
// lifecycle
|
|
191
191
|
on_mount: [],
|
|
192
192
|
on_destroy: [],
|
|
193
193
|
on_disconnect: [],
|
|
194
194
|
before_update: [],
|
|
195
195
|
after_update: [],
|
|
196
|
-
context: new Map(t.context || (
|
|
196
|
+
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
197
197
|
// everything else
|
|
198
|
-
callbacks:
|
|
199
|
-
dirty:
|
|
198
|
+
callbacks: P(),
|
|
199
|
+
dirty: u,
|
|
200
200
|
skip_bound: !1,
|
|
201
|
-
root: t.target ||
|
|
201
|
+
root: t.target || l.$$.root
|
|
202
202
|
};
|
|
203
|
-
o && o(
|
|
204
|
-
let
|
|
205
|
-
if (
|
|
206
|
-
const
|
|
207
|
-
return
|
|
208
|
-
}) : [],
|
|
203
|
+
o && o(c.root);
|
|
204
|
+
let b = !1;
|
|
205
|
+
if (c.ctx = n ? n(e, t.props || {}, (a, A, ...v) => {
|
|
206
|
+
const M = v.length ? v[0] : A;
|
|
207
|
+
return c.ctx && i(c.ctx[a], c.ctx[a] = M) && (!c.skip_bound && c.bound[a] && c.bound[a](M), b && dt(e, a)), A;
|
|
208
|
+
}) : [], c.update(), b = !0, S(c.before_update), c.fragment = s ? s(c.ctx) : !1, t.target) {
|
|
209
209
|
if (t.hydrate) {
|
|
210
|
-
const a =
|
|
211
|
-
|
|
210
|
+
const a = et(t.target);
|
|
211
|
+
c.fragment && c.fragment.l(a), a.forEach(j);
|
|
212
212
|
} else
|
|
213
|
-
|
|
214
|
-
t.intro &&
|
|
213
|
+
c.fragment && c.fragment.c();
|
|
214
|
+
t.intro && ft(e.$$.fragment), at(e, t.target, t.anchor), m();
|
|
215
215
|
}
|
|
216
|
-
|
|
216
|
+
y(l);
|
|
217
217
|
}
|
|
218
|
-
let
|
|
219
|
-
typeof HTMLElement == "function" && (
|
|
218
|
+
let F;
|
|
219
|
+
typeof HTMLElement == "function" && (F = class extends HTMLElement {
|
|
220
220
|
constructor(t, n, s) {
|
|
221
221
|
super();
|
|
222
222
|
/** The Svelte component constructor */
|
|
@@ -241,79 +241,79 @@ typeof HTMLElement == "function" && (D = class extends HTMLElement {
|
|
|
241
241
|
}
|
|
242
242
|
addEventListener(t, n, s) {
|
|
243
243
|
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
|
|
244
|
-
const
|
|
245
|
-
this.$$l_u.set(n,
|
|
244
|
+
const i = this.$$c.$on(t, n);
|
|
245
|
+
this.$$l_u.set(n, i);
|
|
246
246
|
}
|
|
247
247
|
super.addEventListener(t, n, s);
|
|
248
248
|
}
|
|
249
249
|
removeEventListener(t, n, s) {
|
|
250
250
|
if (super.removeEventListener(t, n, s), this.$$c) {
|
|
251
|
-
const
|
|
252
|
-
|
|
251
|
+
const i = this.$$l_u.get(n);
|
|
252
|
+
i && (i(), this.$$l_u.delete(n));
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
connectedCallback() {
|
|
256
|
-
return
|
|
256
|
+
return R(this, null, function* () {
|
|
257
257
|
if (this.$$cn = !0, !this.$$c) {
|
|
258
|
-
let t = function(
|
|
258
|
+
let t = function(r) {
|
|
259
259
|
return () => {
|
|
260
260
|
let o;
|
|
261
261
|
return {
|
|
262
262
|
c: function() {
|
|
263
|
-
o =
|
|
263
|
+
o = O("slot"), r !== "default" && I(o, "name", r);
|
|
264
264
|
},
|
|
265
265
|
/**
|
|
266
266
|
* @param {HTMLElement} target
|
|
267
267
|
* @param {HTMLElement} [anchor]
|
|
268
268
|
*/
|
|
269
|
-
m: function(
|
|
270
|
-
|
|
269
|
+
m: function(c, b) {
|
|
270
|
+
D(c, o, b);
|
|
271
271
|
},
|
|
272
|
-
d: function(
|
|
273
|
-
|
|
272
|
+
d: function(c) {
|
|
273
|
+
c && j(o);
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
276
|
};
|
|
277
277
|
};
|
|
278
278
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
279
279
|
return;
|
|
280
|
-
const n = {}, s =
|
|
281
|
-
for (const
|
|
282
|
-
|
|
283
|
-
for (const
|
|
284
|
-
const o = this.$$g_p(
|
|
285
|
-
o in this.$$d || (this.$$d[o] =
|
|
280
|
+
const n = {}, s = nt(this);
|
|
281
|
+
for (const r of this.$$s)
|
|
282
|
+
r in s && (n[r] = [t(r)]);
|
|
283
|
+
for (const r of this.attributes) {
|
|
284
|
+
const o = this.$$g_p(r.name);
|
|
285
|
+
o in this.$$d || (this.$$d[o] = w(o, r.value, this.$$p_d, "toProp"));
|
|
286
286
|
}
|
|
287
|
-
for (const
|
|
288
|
-
!(
|
|
287
|
+
for (const r in this.$$p_d)
|
|
288
|
+
!(r in this.$$d) && this[r] !== void 0 && (this.$$d[r] = this[r], delete this[r]);
|
|
289
289
|
this.$$c = new this.$$ctor({
|
|
290
290
|
target: this.shadowRoot || this,
|
|
291
|
-
props: B(
|
|
291
|
+
props: T(B({}, this.$$d), {
|
|
292
292
|
$$slots: n,
|
|
293
293
|
$$scope: {
|
|
294
294
|
ctx: []
|
|
295
295
|
}
|
|
296
296
|
})
|
|
297
297
|
});
|
|
298
|
-
const
|
|
298
|
+
const i = () => {
|
|
299
299
|
this.$$r = !0;
|
|
300
|
-
for (const
|
|
301
|
-
if (this.$$d[
|
|
302
|
-
const o =
|
|
303
|
-
|
|
304
|
-
this.$$d[
|
|
300
|
+
for (const r in this.$$p_d)
|
|
301
|
+
if (this.$$d[r] = this.$$c.$$.ctx[this.$$c.$$.props[r]], this.$$p_d[r].reflect) {
|
|
302
|
+
const o = w(
|
|
303
|
+
r,
|
|
304
|
+
this.$$d[r],
|
|
305
305
|
this.$$p_d,
|
|
306
306
|
"toAttribute"
|
|
307
307
|
);
|
|
308
|
-
o == null ? this.removeAttribute(this.$$p_d[
|
|
308
|
+
o == null ? this.removeAttribute(this.$$p_d[r].attribute || r) : this.setAttribute(this.$$p_d[r].attribute || r, o);
|
|
309
309
|
}
|
|
310
310
|
this.$$r = !1;
|
|
311
311
|
};
|
|
312
|
-
this.$$c.$$.after_update.push(
|
|
313
|
-
for (const
|
|
314
|
-
for (const o of this.$$l[
|
|
315
|
-
const
|
|
316
|
-
this.$$l_u.set(o,
|
|
312
|
+
this.$$c.$$.after_update.push(i), i();
|
|
313
|
+
for (const r in this.$$l)
|
|
314
|
+
for (const o of this.$$l[r]) {
|
|
315
|
+
const u = this.$$c.$on(r, o);
|
|
316
|
+
this.$$l_u.set(o, u);
|
|
317
317
|
}
|
|
318
318
|
this.$$l = {};
|
|
319
319
|
}
|
|
@@ -322,8 +322,8 @@ typeof HTMLElement == "function" && (D = class extends HTMLElement {
|
|
|
322
322
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
323
323
|
// and setting attributes through setAttribute etc, this is helpful
|
|
324
324
|
attributeChangedCallback(t, n, s) {
|
|
325
|
-
var
|
|
326
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
325
|
+
var i;
|
|
326
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = w(t, s, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
327
327
|
}
|
|
328
328
|
disconnectedCallback() {
|
|
329
329
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -336,13 +336,13 @@ typeof HTMLElement == "function" && (D = class extends HTMLElement {
|
|
|
336
336
|
) || t;
|
|
337
337
|
}
|
|
338
338
|
});
|
|
339
|
-
function
|
|
340
|
-
var
|
|
341
|
-
const
|
|
342
|
-
if (t =
|
|
339
|
+
function w(e, t, n, s) {
|
|
340
|
+
var r;
|
|
341
|
+
const i = (r = n[e]) == null ? void 0 : r.type;
|
|
342
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !s || !n[e])
|
|
343
343
|
return t;
|
|
344
344
|
if (s === "toAttribute")
|
|
345
|
-
switch (
|
|
345
|
+
switch (i) {
|
|
346
346
|
case "Object":
|
|
347
347
|
case "Array":
|
|
348
348
|
return t == null ? null : JSON.stringify(t);
|
|
@@ -354,7 +354,7 @@ function b(e, t, n, s) {
|
|
|
354
354
|
return t;
|
|
355
355
|
}
|
|
356
356
|
else
|
|
357
|
-
switch (
|
|
357
|
+
switch (i) {
|
|
358
358
|
case "Object":
|
|
359
359
|
case "Array":
|
|
360
360
|
return t && JSON.parse(t);
|
|
@@ -366,38 +366,38 @@ function b(e, t, n, s) {
|
|
|
366
366
|
return t;
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
let o = class extends
|
|
369
|
+
function _t(e, t, n, s, i, r) {
|
|
370
|
+
let o = class extends F {
|
|
371
371
|
constructor() {
|
|
372
|
-
super(e, n,
|
|
372
|
+
super(e, n, i), this.$$p_d = t;
|
|
373
373
|
}
|
|
374
374
|
static get observedAttributes() {
|
|
375
375
|
return Object.keys(t).map(
|
|
376
|
-
(
|
|
376
|
+
(u) => (t[u].attribute || u).toLowerCase()
|
|
377
377
|
);
|
|
378
378
|
}
|
|
379
379
|
};
|
|
380
|
-
return Object.keys(t).forEach((
|
|
381
|
-
Object.defineProperty(o.prototype,
|
|
380
|
+
return Object.keys(t).forEach((u) => {
|
|
381
|
+
Object.defineProperty(o.prototype, u, {
|
|
382
382
|
get() {
|
|
383
|
-
return this.$$c &&
|
|
383
|
+
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
384
384
|
},
|
|
385
|
-
set(
|
|
386
|
-
var
|
|
387
|
-
|
|
385
|
+
set(l) {
|
|
386
|
+
var c;
|
|
387
|
+
l = w(u, l, t), this.$$d[u] = l, (c = this.$$c) == null || c.$set({ [u]: l });
|
|
388
388
|
}
|
|
389
389
|
});
|
|
390
|
-
}), s.forEach((
|
|
391
|
-
Object.defineProperty(o.prototype,
|
|
390
|
+
}), s.forEach((u) => {
|
|
391
|
+
Object.defineProperty(o.prototype, u, {
|
|
392
392
|
get() {
|
|
393
|
-
var
|
|
394
|
-
return (
|
|
393
|
+
var l;
|
|
394
|
+
return (l = this.$$c) == null ? void 0 : l[u];
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
397
|
}), e.element = /** @type {any} */
|
|
398
398
|
o, o;
|
|
399
399
|
}
|
|
400
|
-
class
|
|
400
|
+
class pt {
|
|
401
401
|
constructor() {
|
|
402
402
|
/**
|
|
403
403
|
* ### PRIVATE API
|
|
@@ -418,7 +418,7 @@ class _t {
|
|
|
418
418
|
}
|
|
419
419
|
/** @returns {void} */
|
|
420
420
|
$destroy() {
|
|
421
|
-
|
|
421
|
+
ht(this, 1), this.$destroy = _;
|
|
422
422
|
}
|
|
423
423
|
/**
|
|
424
424
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -428,11 +428,11 @@ class _t {
|
|
|
428
428
|
*/
|
|
429
429
|
$on(t, n) {
|
|
430
430
|
if (!z(n))
|
|
431
|
-
return
|
|
431
|
+
return _;
|
|
432
432
|
const s = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
433
433
|
return s.push(n), () => {
|
|
434
|
-
const
|
|
435
|
-
|
|
434
|
+
const i = s.indexOf(n);
|
|
435
|
+
i !== -1 && s.splice(i, 1);
|
|
436
436
|
};
|
|
437
437
|
}
|
|
438
438
|
/**
|
|
@@ -440,12 +440,13 @@ class _t {
|
|
|
440
440
|
* @returns {void}
|
|
441
441
|
*/
|
|
442
442
|
$set(t) {
|
|
443
|
-
this.$$set && !
|
|
443
|
+
this.$$set && !q(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
const
|
|
447
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
448
|
-
|
|
446
|
+
const yt = "4";
|
|
447
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(yt);
|
|
448
|
+
const $ = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
449
|
+
function mt(e, t) {
|
|
449
450
|
if (e) {
|
|
450
451
|
const n = document.createElement("style");
|
|
451
452
|
n.innerHTML = t, e.appendChild(n);
|
|
@@ -456,94 +457,122 @@ function gt(e, t) {
|
|
|
456
457
|
return;
|
|
457
458
|
const n = new URL(t);
|
|
458
459
|
fetch(n.href).then((s) => s.text()).then((s) => {
|
|
459
|
-
const
|
|
460
|
-
|
|
460
|
+
const i = document.createElement("style");
|
|
461
|
+
i.innerHTML = s, e && e.appendChild(i);
|
|
461
462
|
}).catch((s) => {
|
|
462
463
|
console.error("There was an error while trying to load client styling from URL", s);
|
|
463
464
|
});
|
|
464
465
|
}
|
|
465
|
-
function
|
|
466
|
-
if (window.emMessageBus)
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
466
|
+
function bt(e, t, n, s = !1) {
|
|
467
|
+
if (!window.emMessageBus)
|
|
468
|
+
return;
|
|
469
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !s)
|
|
470
|
+
return n = wt(e, t), n;
|
|
471
|
+
window[$] || (window[$] = {}), n = St(e, t);
|
|
472
|
+
const r = n.unsubscribe.bind(n), o = () => {
|
|
473
|
+
if (window[$][t]) {
|
|
474
|
+
const u = window[$][t];
|
|
475
|
+
u.refCount > 1 ? u.refCount = u.refCount - 1 : delete window[$][t];
|
|
476
|
+
}
|
|
477
|
+
r();
|
|
478
|
+
};
|
|
479
|
+
return n.unsubscribe = o, n;
|
|
480
|
+
}
|
|
481
|
+
function wt(e, t) {
|
|
482
|
+
const n = document.createElement("style");
|
|
483
|
+
return window.emMessageBus.subscribe(t, (s) => {
|
|
484
|
+
e && (n.innerHTML = s, e.appendChild(n));
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
function St(e, t) {
|
|
488
|
+
return window.emMessageBus.subscribe(t, (n) => {
|
|
489
|
+
var u;
|
|
490
|
+
if (!e)
|
|
491
|
+
return;
|
|
492
|
+
const s = e.getRootNode(), i = window[$];
|
|
493
|
+
let r = (u = i[t]) == null ? void 0 : u.sheet;
|
|
494
|
+
r ? i[t].refCount = i[t].refCount + 1 : (r = new CSSStyleSheet(), r.replaceSync(n), i[t] = {
|
|
495
|
+
sheet: r,
|
|
496
|
+
refCount: 1
|
|
470
497
|
});
|
|
471
|
-
|
|
498
|
+
const o = s.adoptedStyleSheets || [];
|
|
499
|
+
o.includes(r) || (s.adoptedStyleSheets = [...o, r]);
|
|
500
|
+
});
|
|
472
501
|
}
|
|
473
|
-
function
|
|
502
|
+
function xt(e) {
|
|
474
503
|
X(e, "svelte-sjjtuo", ".CashierSpinner{display:block;width:var(--emw--spinner-size, 32px);height:var(--emw--spinner-size, 32px);position:absolute;top:var(--emw--spinner-top-position, 50%);left:var(--emw--spinner-left-position, 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-width:var(--emw--stroke-width, 2px);stroke:var(--emw--spinner-color, #2dcc70)}@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}}");
|
|
475
504
|
}
|
|
476
|
-
function
|
|
505
|
+
function kt(e) {
|
|
477
506
|
let t;
|
|
478
507
|
return {
|
|
479
508
|
c() {
|
|
480
|
-
t =
|
|
509
|
+
t = O("div"), t.innerHTML = '<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-miterlimit="10"></circle></svg>', I(t, "class", "CashierSpinner");
|
|
481
510
|
},
|
|
482
511
|
m(n, s) {
|
|
483
|
-
|
|
512
|
+
D(n, t, s), e[4](t);
|
|
484
513
|
},
|
|
485
|
-
p:
|
|
486
|
-
i:
|
|
487
|
-
o:
|
|
514
|
+
p: _,
|
|
515
|
+
i: _,
|
|
516
|
+
o: _,
|
|
488
517
|
d(n) {
|
|
489
|
-
n &&
|
|
518
|
+
n && j(t), e[4](null);
|
|
490
519
|
}
|
|
491
520
|
};
|
|
492
521
|
}
|
|
493
|
-
function
|
|
494
|
-
let { clientstyling: s = "" } = t, { clientstylingurl:
|
|
495
|
-
|
|
522
|
+
function Ct(e, t, n) {
|
|
523
|
+
let { clientstyling: s = "" } = t, { clientstylingurl: i = "" } = t, { mbsource: r = "" } = t, o, u;
|
|
524
|
+
rt(() => () => {
|
|
496
525
|
});
|
|
497
526
|
function l(c) {
|
|
498
|
-
|
|
527
|
+
C[c ? "unshift" : "push"](() => {
|
|
499
528
|
o = c, n(0, o);
|
|
500
529
|
});
|
|
501
530
|
}
|
|
502
531
|
return e.$$set = (c) => {
|
|
503
|
-
"clientstyling" in c && n(1, s = c.clientstyling), "clientstylingurl" in c && n(2,
|
|
532
|
+
"clientstyling" in c && n(1, s = c.clientstyling), "clientstylingurl" in c && n(2, i = c.clientstylingurl), "mbsource" in c && n(3, r = c.mbsource);
|
|
504
533
|
}, e.$$.update = () => {
|
|
505
534
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
506
|
-
3 && s && o &&
|
|
507
|
-
5 &&
|
|
508
|
-
9 &&
|
|
509
|
-
}, [o, s,
|
|
535
|
+
3 && s && o && mt(o, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
536
|
+
5 && i && o && gt(o, i), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
537
|
+
9 && r && o && bt(o, `${r}.Style`, u);
|
|
538
|
+
}, [o, s, i, r, l];
|
|
510
539
|
}
|
|
511
|
-
class
|
|
540
|
+
class Et extends pt {
|
|
512
541
|
constructor(t) {
|
|
513
|
-
super(),
|
|
542
|
+
super(), $t(
|
|
514
543
|
this,
|
|
515
544
|
t,
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
545
|
+
Ct,
|
|
546
|
+
kt,
|
|
547
|
+
Y,
|
|
519
548
|
{
|
|
520
549
|
clientstyling: 1,
|
|
521
550
|
clientstylingurl: 2,
|
|
522
551
|
mbsource: 3
|
|
523
552
|
},
|
|
524
|
-
|
|
553
|
+
xt
|
|
525
554
|
);
|
|
526
555
|
}
|
|
527
556
|
get clientstyling() {
|
|
528
557
|
return this.$$.ctx[1];
|
|
529
558
|
}
|
|
530
559
|
set clientstyling(t) {
|
|
531
|
-
this.$$set({ clientstyling: t }),
|
|
560
|
+
this.$$set({ clientstyling: t }), m();
|
|
532
561
|
}
|
|
533
562
|
get clientstylingurl() {
|
|
534
563
|
return this.$$.ctx[2];
|
|
535
564
|
}
|
|
536
565
|
set clientstylingurl(t) {
|
|
537
|
-
this.$$set({ clientstylingurl: t }),
|
|
566
|
+
this.$$set({ clientstylingurl: t }), m();
|
|
538
567
|
}
|
|
539
568
|
get mbsource() {
|
|
540
569
|
return this.$$.ctx[3];
|
|
541
570
|
}
|
|
542
571
|
set mbsource(t) {
|
|
543
|
-
this.$$set({ mbsource: t }),
|
|
572
|
+
this.$$set({ mbsource: t }), m();
|
|
544
573
|
}
|
|
545
574
|
}
|
|
546
|
-
|
|
575
|
+
_t(Et, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
547
576
|
export {
|
|
548
|
-
|
|
577
|
+
Et as default
|
|
549
578
|
};
|