@everymatrix/cashier-method-details 1.74.6 → 1.74.8
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/CashierConfirmModal-CptRwG7E.cjs +1 -0
- package/components/CashierConfirmModal-DHQhXBLq.js +855 -0
- package/components/CashierConfirmModal-mBbcNR6k.js +892 -0
- package/components/{CashierError-BrhXjIFy.js → CashierError-CxC9JUxE.js} +978 -1582
- package/components/CashierError-DnIbQhz-.cjs +18 -0
- package/components/{CashierError-FFDY8Bjv.js → CashierError-F-JdF-yR.js} +968 -1609
- package/components/CashierMethodDetails-BYUtOrl-.cjs +86 -0
- package/components/{CashierMethodDetails-BiiNEsT6.js → CashierMethodDetails-CFo6ZuQl.js} +1166 -1142
- package/components/{CashierMethodDetails-sy5JAl_g.js → CashierMethodDetails-DLTg6RpP.js} +1187 -1163
- package/components/{CashierNotifications-B2kZUm6v.js → CashierNotifications-BdfHI3lV.js} +14 -14
- package/components/CashierNotifications-Dt9Itbd7.cjs +1 -0
- package/components/{CashierNotifications-CblRF1Eh.js → CashierNotifications-mhxDKO1J.js} +14 -14
- package/components/{CashierReceiptPage-ClV-mqNk.js → CashierReceiptPage-CfgCGXm-.js} +213 -196
- package/components/{CashierReceiptPage-DScjyKix.js → CashierReceiptPage-CrP-r8ja.js} +211 -194
- package/components/CashierReceiptPage-L8-ZgSVM.cjs +1 -0
- package/components/{CashierSpinner-DH_zy27t.js → CashierSpinner-BjBxLMiY.js} +10 -10
- package/components/CashierSpinner-DBOsp-ou.cjs +1 -0
- package/components/{CashierSpinner-DU3_6EXm.js → CashierSpinner-Rar1657O.js} +10 -10
- package/es2015/cashier-method-details.cjs +1 -1
- package/es2015/cashier-method-details.js +1 -1
- package/esnext/cashier-method-details.js +1 -1
- package/package.json +1 -1
- package/components/CashierError-bGDEVexB.cjs +0 -18
- package/components/CashierMethodDetails-D1XDpCNB.cjs +0 -86
- package/components/CashierNotifications-uWkM_JBz.cjs +0 -1
- package/components/CashierReceiptPage-niSgDM25.cjs +0 -1
- package/components/CashierSpinner-CWVXjWja.cjs +0 -1
@@ -0,0 +1,892 @@
|
|
1
|
+
var _t = Object.defineProperty, pt = Object.defineProperties;
|
2
|
+
var bt = Object.getOwnPropertyDescriptors;
|
3
|
+
var Y = Object.getOwnPropertySymbols;
|
4
|
+
var yt = Object.prototype.hasOwnProperty, wt = Object.prototype.propertyIsEnumerable;
|
5
|
+
var V = (t, e, n) => e in t ? _t(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, tt = (t, e) => {
|
6
|
+
for (var n in e || (e = {}))
|
7
|
+
yt.call(e, n) && V(t, n, e[n]);
|
8
|
+
if (Y)
|
9
|
+
for (var n of Y(e))
|
10
|
+
wt.call(e, n) && V(t, n, e[n]);
|
11
|
+
return t;
|
12
|
+
}, et = (t, e) => pt(t, bt(e));
|
13
|
+
var m = (t, e, n) => (V(t, typeof e != "symbol" ? e + "" : e, n), n);
|
14
|
+
var nt = (t, e, n) => new Promise((s, i) => {
|
15
|
+
var o = (l) => {
|
16
|
+
try {
|
17
|
+
u(n.next(l));
|
18
|
+
} catch (r) {
|
19
|
+
i(r);
|
20
|
+
}
|
21
|
+
}, c = (l) => {
|
22
|
+
try {
|
23
|
+
u(n.throw(l));
|
24
|
+
} catch (r) {
|
25
|
+
i(r);
|
26
|
+
}
|
27
|
+
}, u = (l) => l.done ? s(l.value) : Promise.resolve(l.value).then(o, c);
|
28
|
+
u((n = n.apply(t, e)).next());
|
29
|
+
});
|
30
|
+
function B() {
|
31
|
+
}
|
32
|
+
function xt(t, e) {
|
33
|
+
for (const n in e)
|
34
|
+
t[n] = e[n];
|
35
|
+
return (
|
36
|
+
/** @type {T & S} */
|
37
|
+
t
|
38
|
+
);
|
39
|
+
}
|
40
|
+
function at(t) {
|
41
|
+
return t();
|
42
|
+
}
|
43
|
+
function st() {
|
44
|
+
return /* @__PURE__ */ Object.create(null);
|
45
|
+
}
|
46
|
+
function j(t) {
|
47
|
+
t.forEach(at);
|
48
|
+
}
|
49
|
+
function dt(t) {
|
50
|
+
return typeof t == "function";
|
51
|
+
}
|
52
|
+
function Ct(t, e) {
|
53
|
+
return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
|
54
|
+
}
|
55
|
+
let T;
|
56
|
+
function ne(t, e) {
|
57
|
+
return t === e ? !0 : (T || (T = document.createElement("a")), T.href = e, t === T.href);
|
58
|
+
}
|
59
|
+
function Lt(t) {
|
60
|
+
return Object.keys(t).length === 0;
|
61
|
+
}
|
62
|
+
function Mt(t, ...e) {
|
63
|
+
if (t == null) {
|
64
|
+
for (const s of e)
|
65
|
+
s(void 0);
|
66
|
+
return B;
|
67
|
+
}
|
68
|
+
const n = t.subscribe(...e);
|
69
|
+
return n.unsubscribe ? () => n.unsubscribe() : n;
|
70
|
+
}
|
71
|
+
function se(t, e, n) {
|
72
|
+
t.$$.on_destroy.push(Mt(e, n));
|
73
|
+
}
|
74
|
+
function P(t, e, n, s) {
|
75
|
+
if (t) {
|
76
|
+
const i = ht(t, e, n, s);
|
77
|
+
return t[0](i);
|
78
|
+
}
|
79
|
+
}
|
80
|
+
function ht(t, e, n, s) {
|
81
|
+
return t[1] && s ? xt(n.ctx.slice(), t[1](s(e))) : n.ctx;
|
82
|
+
}
|
83
|
+
function z(t, e, n, s) {
|
84
|
+
if (t[2] && s) {
|
85
|
+
const i = t[2](s(n));
|
86
|
+
if (e.dirty === void 0)
|
87
|
+
return i;
|
88
|
+
if (typeof i == "object") {
|
89
|
+
const o = [], c = Math.max(e.dirty.length, i.length);
|
90
|
+
for (let u = 0; u < c; u += 1)
|
91
|
+
o[u] = e.dirty[u] | i[u];
|
92
|
+
return o;
|
93
|
+
}
|
94
|
+
return e.dirty | i;
|
95
|
+
}
|
96
|
+
return e.dirty;
|
97
|
+
}
|
98
|
+
function R(t, e, n, s, i, o) {
|
99
|
+
if (i) {
|
100
|
+
const c = ht(e, n, s, o);
|
101
|
+
t.p(c, i);
|
102
|
+
}
|
103
|
+
}
|
104
|
+
function H(t) {
|
105
|
+
if (t.ctx.length > 32) {
|
106
|
+
const e = [], n = t.ctx.length / 32;
|
107
|
+
for (let s = 0; s < n; s++)
|
108
|
+
e[s] = -1;
|
109
|
+
return e;
|
110
|
+
}
|
111
|
+
return -1;
|
112
|
+
}
|
113
|
+
const ie = typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : (
|
114
|
+
// @ts-ignore Node typings have this
|
115
|
+
global
|
116
|
+
);
|
117
|
+
function y(t, e) {
|
118
|
+
t.appendChild(e);
|
119
|
+
}
|
120
|
+
function Et(t, e, n) {
|
121
|
+
const s = vt(t);
|
122
|
+
if (!s.getElementById(e)) {
|
123
|
+
const i = x("style");
|
124
|
+
i.id = e, i.textContent = n, jt(s, i);
|
125
|
+
}
|
126
|
+
}
|
127
|
+
function vt(t) {
|
128
|
+
if (!t)
|
129
|
+
return document;
|
130
|
+
const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
131
|
+
return e && /** @type {ShadowRoot} */
|
132
|
+
e.host ? (
|
133
|
+
/** @type {ShadowRoot} */
|
134
|
+
e
|
135
|
+
) : t.ownerDocument;
|
136
|
+
}
|
137
|
+
function jt(t, e) {
|
138
|
+
return y(
|
139
|
+
/** @type {Document} */
|
140
|
+
t.head || t,
|
141
|
+
e
|
142
|
+
), e.sheet;
|
143
|
+
}
|
144
|
+
function X(t, e, n) {
|
145
|
+
t.insertBefore(e, n || null);
|
146
|
+
}
|
147
|
+
function q(t) {
|
148
|
+
t.parentNode && t.parentNode.removeChild(t);
|
149
|
+
}
|
150
|
+
function oe(t, e) {
|
151
|
+
for (let n = 0; n < t.length; n += 1)
|
152
|
+
t[n] && t[n].d(e);
|
153
|
+
}
|
154
|
+
function x(t) {
|
155
|
+
return document.createElement(t);
|
156
|
+
}
|
157
|
+
function it(t) {
|
158
|
+
return document.createElementNS("http://www.w3.org/2000/svg", t);
|
159
|
+
}
|
160
|
+
function $t(t) {
|
161
|
+
return document.createTextNode(t);
|
162
|
+
}
|
163
|
+
function W() {
|
164
|
+
return $t(" ");
|
165
|
+
}
|
166
|
+
function re() {
|
167
|
+
return $t("");
|
168
|
+
}
|
169
|
+
function ot(t, e, n, s) {
|
170
|
+
return t.addEventListener(e, n, s), () => t.removeEventListener(e, n, s);
|
171
|
+
}
|
172
|
+
function ce(t) {
|
173
|
+
return function(e) {
|
174
|
+
return e.preventDefault(), t.call(this, e);
|
175
|
+
};
|
176
|
+
}
|
177
|
+
function d(t, e, n) {
|
178
|
+
n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
|
179
|
+
}
|
180
|
+
function le(t, e, n) {
|
181
|
+
const s = e.toLowerCase();
|
182
|
+
s in t ? t[s] = typeof t[s] == "boolean" && n === "" ? !0 : n : e in t ? t[e] = typeof t[e] == "boolean" && n === "" ? !0 : n : d(t, e, n);
|
183
|
+
}
|
184
|
+
function ue(t) {
|
185
|
+
return t === "" ? null : +t;
|
186
|
+
}
|
187
|
+
function kt(t) {
|
188
|
+
return Array.from(t.childNodes);
|
189
|
+
}
|
190
|
+
function fe(t, e) {
|
191
|
+
e = "" + e, t.data !== e && (t.data = /** @type {string} */
|
192
|
+
e);
|
193
|
+
}
|
194
|
+
function ae(t, e) {
|
195
|
+
t.value = e == null ? "" : e;
|
196
|
+
}
|
197
|
+
function de(t, e, n, s) {
|
198
|
+
n == null ? t.style.removeProperty(e) : t.style.setProperty(e, n, "");
|
199
|
+
}
|
200
|
+
function he(t, e, n) {
|
201
|
+
t.classList.toggle(e, !!n);
|
202
|
+
}
|
203
|
+
function Ot(t) {
|
204
|
+
const e = {};
|
205
|
+
return t.childNodes.forEach(
|
206
|
+
/** @param {Element} node */
|
207
|
+
(n) => {
|
208
|
+
e[n.slot || "default"] = !0;
|
209
|
+
}
|
210
|
+
), e;
|
211
|
+
}
|
212
|
+
let N;
|
213
|
+
function O(t) {
|
214
|
+
N = t;
|
215
|
+
}
|
216
|
+
function St() {
|
217
|
+
if (!N)
|
218
|
+
throw new Error("Function called outside component initialization");
|
219
|
+
return N;
|
220
|
+
}
|
221
|
+
function Bt(t) {
|
222
|
+
St().$$.on_mount.push(t);
|
223
|
+
}
|
224
|
+
const E = [], K = [];
|
225
|
+
let v = [];
|
226
|
+
const rt = [], Nt = /* @__PURE__ */ Promise.resolve();
|
227
|
+
let Q = !1;
|
228
|
+
function At() {
|
229
|
+
Q || (Q = !0, Nt.then(S));
|
230
|
+
}
|
231
|
+
function Z(t) {
|
232
|
+
v.push(t);
|
233
|
+
}
|
234
|
+
const G = /* @__PURE__ */ new Set();
|
235
|
+
let M = 0;
|
236
|
+
function S() {
|
237
|
+
if (M !== 0)
|
238
|
+
return;
|
239
|
+
const t = N;
|
240
|
+
do {
|
241
|
+
try {
|
242
|
+
for (; M < E.length; ) {
|
243
|
+
const e = E[M];
|
244
|
+
M++, O(e), Tt(e.$$);
|
245
|
+
}
|
246
|
+
} catch (e) {
|
247
|
+
throw E.length = 0, M = 0, e;
|
248
|
+
}
|
249
|
+
for (O(null), E.length = 0, M = 0; K.length; )
|
250
|
+
K.pop()();
|
251
|
+
for (let e = 0; e < v.length; e += 1) {
|
252
|
+
const n = v[e];
|
253
|
+
G.has(n) || (G.add(n), n());
|
254
|
+
}
|
255
|
+
v.length = 0;
|
256
|
+
} while (E.length);
|
257
|
+
for (; rt.length; )
|
258
|
+
rt.pop()();
|
259
|
+
Q = !1, G.clear(), O(t);
|
260
|
+
}
|
261
|
+
function Tt(t) {
|
262
|
+
if (t.fragment !== null) {
|
263
|
+
t.update(), j(t.before_update);
|
264
|
+
const e = t.dirty;
|
265
|
+
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Z);
|
266
|
+
}
|
267
|
+
}
|
268
|
+
function Pt(t) {
|
269
|
+
const e = [], n = [];
|
270
|
+
v.forEach((s) => t.indexOf(s) === -1 ? e.push(s) : n.push(s)), n.forEach((s) => s()), v = e;
|
271
|
+
}
|
272
|
+
const D = /* @__PURE__ */ new Set();
|
273
|
+
let C;
|
274
|
+
function $e() {
|
275
|
+
C = {
|
276
|
+
r: 0,
|
277
|
+
c: [],
|
278
|
+
p: C
|
279
|
+
// parent group
|
280
|
+
};
|
281
|
+
}
|
282
|
+
function me() {
|
283
|
+
C.r || j(C.c), C = C.p;
|
284
|
+
}
|
285
|
+
function k(t, e) {
|
286
|
+
t && t.i && (D.delete(t), t.i(e));
|
287
|
+
}
|
288
|
+
function U(t, e, n, s) {
|
289
|
+
if (t && t.o) {
|
290
|
+
if (D.has(t))
|
291
|
+
return;
|
292
|
+
D.add(t), C.c.push(() => {
|
293
|
+
D.delete(t), s && (n && t.d(1), s());
|
294
|
+
}), t.o(e);
|
295
|
+
} else
|
296
|
+
s && s();
|
297
|
+
}
|
298
|
+
function ge(t) {
|
299
|
+
return (t == null ? void 0 : t.length) !== void 0 ? t : Array.from(t);
|
300
|
+
}
|
301
|
+
function zt(t, e, n) {
|
302
|
+
const { fragment: s, after_update: i } = t.$$;
|
303
|
+
s && s.m(e, n), Z(() => {
|
304
|
+
const o = t.$$.on_mount.map(at).filter(dt);
|
305
|
+
t.$$.on_destroy ? t.$$.on_destroy.push(...o) : j(o), t.$$.on_mount = [];
|
306
|
+
}), i.forEach(Z);
|
307
|
+
}
|
308
|
+
function Rt(t, e) {
|
309
|
+
const n = t.$$;
|
310
|
+
n.fragment !== null && (Pt(n.after_update), j(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
|
311
|
+
}
|
312
|
+
function Ht(t, e) {
|
313
|
+
t.$$.dirty[0] === -1 && (E.push(t), At(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
314
|
+
}
|
315
|
+
function Ut(t, e, n, s, i, o, c = null, u = [-1]) {
|
316
|
+
const l = N;
|
317
|
+
O(t);
|
318
|
+
const r = t.$$ = {
|
319
|
+
fragment: null,
|
320
|
+
ctx: [],
|
321
|
+
// state
|
322
|
+
props: o,
|
323
|
+
update: B,
|
324
|
+
not_equal: i,
|
325
|
+
bound: st(),
|
326
|
+
// lifecycle
|
327
|
+
on_mount: [],
|
328
|
+
on_destroy: [],
|
329
|
+
on_disconnect: [],
|
330
|
+
before_update: [],
|
331
|
+
after_update: [],
|
332
|
+
context: new Map(e.context || (l ? l.$$.context : [])),
|
333
|
+
// everything else
|
334
|
+
callbacks: st(),
|
335
|
+
dirty: u,
|
336
|
+
skip_bound: !1,
|
337
|
+
root: e.target || l.$$.root
|
338
|
+
};
|
339
|
+
c && c(r.root);
|
340
|
+
let p = !1;
|
341
|
+
if (r.ctx = n ? n(t, e.props || {}, ($, a, ...h) => {
|
342
|
+
const L = h.length ? h[0] : a;
|
343
|
+
return r.ctx && i(r.ctx[$], r.ctx[$] = L) && (!r.skip_bound && r.bound[$] && r.bound[$](L), p && Ht(t, $)), a;
|
344
|
+
}) : [], r.update(), p = !0, j(r.before_update), r.fragment = s ? s(r.ctx) : !1, e.target) {
|
345
|
+
if (e.hydrate) {
|
346
|
+
const $ = kt(e.target);
|
347
|
+
r.fragment && r.fragment.l($), $.forEach(q);
|
348
|
+
} else
|
349
|
+
r.fragment && r.fragment.c();
|
350
|
+
e.intro && k(t.$$.fragment), zt(t, e.target, e.anchor), S();
|
351
|
+
}
|
352
|
+
O(l);
|
353
|
+
}
|
354
|
+
let mt;
|
355
|
+
typeof HTMLElement == "function" && (mt = class extends HTMLElement {
|
356
|
+
constructor(e, n, s) {
|
357
|
+
super();
|
358
|
+
/** The Svelte component constructor */
|
359
|
+
m(this, "$$ctor");
|
360
|
+
/** Slots */
|
361
|
+
m(this, "$$s");
|
362
|
+
/** The Svelte component instance */
|
363
|
+
m(this, "$$c");
|
364
|
+
/** Whether or not the custom element is connected */
|
365
|
+
m(this, "$$cn", !1);
|
366
|
+
/** Component props data */
|
367
|
+
m(this, "$$d", {});
|
368
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
369
|
+
m(this, "$$r", !1);
|
370
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
371
|
+
m(this, "$$p_d", {});
|
372
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
373
|
+
m(this, "$$l", {});
|
374
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
375
|
+
m(this, "$$l_u", /* @__PURE__ */ new Map());
|
376
|
+
this.$$ctor = e, this.$$s = n, s && this.attachShadow({ mode: "open" });
|
377
|
+
}
|
378
|
+
addEventListener(e, n, s) {
|
379
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(n), this.$$c) {
|
380
|
+
const i = this.$$c.$on(e, n);
|
381
|
+
this.$$l_u.set(n, i);
|
382
|
+
}
|
383
|
+
super.addEventListener(e, n, s);
|
384
|
+
}
|
385
|
+
removeEventListener(e, n, s) {
|
386
|
+
if (super.removeEventListener(e, n, s), this.$$c) {
|
387
|
+
const i = this.$$l_u.get(n);
|
388
|
+
i && (i(), this.$$l_u.delete(n));
|
389
|
+
}
|
390
|
+
}
|
391
|
+
connectedCallback() {
|
392
|
+
return nt(this, null, function* () {
|
393
|
+
if (this.$$cn = !0, !this.$$c) {
|
394
|
+
let e = function(o) {
|
395
|
+
return () => {
|
396
|
+
let c;
|
397
|
+
return {
|
398
|
+
c: function() {
|
399
|
+
c = x("slot"), o !== "default" && d(c, "name", o);
|
400
|
+
},
|
401
|
+
/**
|
402
|
+
* @param {HTMLElement} target
|
403
|
+
* @param {HTMLElement} [anchor]
|
404
|
+
*/
|
405
|
+
m: function(r, p) {
|
406
|
+
X(r, c, p);
|
407
|
+
},
|
408
|
+
d: function(r) {
|
409
|
+
r && q(c);
|
410
|
+
}
|
411
|
+
};
|
412
|
+
};
|
413
|
+
};
|
414
|
+
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
415
|
+
return;
|
416
|
+
const n = {}, s = Ot(this);
|
417
|
+
for (const o of this.$$s)
|
418
|
+
o in s && (n[o] = [e(o)]);
|
419
|
+
for (const o of this.attributes) {
|
420
|
+
const c = this.$$g_p(o.name);
|
421
|
+
c in this.$$d || (this.$$d[c] = I(c, o.value, this.$$p_d, "toProp"));
|
422
|
+
}
|
423
|
+
for (const o in this.$$p_d)
|
424
|
+
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
425
|
+
this.$$c = new this.$$ctor({
|
426
|
+
target: this.shadowRoot || this,
|
427
|
+
props: et(tt({}, this.$$d), {
|
428
|
+
$$slots: n,
|
429
|
+
$$scope: {
|
430
|
+
ctx: []
|
431
|
+
}
|
432
|
+
})
|
433
|
+
});
|
434
|
+
const i = () => {
|
435
|
+
this.$$r = !0;
|
436
|
+
for (const o in this.$$p_d)
|
437
|
+
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
438
|
+
const c = I(
|
439
|
+
o,
|
440
|
+
this.$$d[o],
|
441
|
+
this.$$p_d,
|
442
|
+
"toAttribute"
|
443
|
+
);
|
444
|
+
c == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, c);
|
445
|
+
}
|
446
|
+
this.$$r = !1;
|
447
|
+
};
|
448
|
+
this.$$c.$$.after_update.push(i), i();
|
449
|
+
for (const o in this.$$l)
|
450
|
+
for (const c of this.$$l[o]) {
|
451
|
+
const u = this.$$c.$on(o, c);
|
452
|
+
this.$$l_u.set(c, u);
|
453
|
+
}
|
454
|
+
this.$$l = {};
|
455
|
+
}
|
456
|
+
});
|
457
|
+
}
|
458
|
+
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
459
|
+
// and setting attributes through setAttribute etc, this is helpful
|
460
|
+
attributeChangedCallback(e, n, s) {
|
461
|
+
var i;
|
462
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = I(e, s, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [e]: this.$$d[e] }));
|
463
|
+
}
|
464
|
+
disconnectedCallback() {
|
465
|
+
this.$$cn = !1, Promise.resolve().then(() => {
|
466
|
+
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
467
|
+
});
|
468
|
+
}
|
469
|
+
$$g_p(e) {
|
470
|
+
return Object.keys(this.$$p_d).find(
|
471
|
+
(n) => this.$$p_d[n].attribute === e || !this.$$p_d[n].attribute && n.toLowerCase() === e
|
472
|
+
) || e;
|
473
|
+
}
|
474
|
+
});
|
475
|
+
function I(t, e, n, s) {
|
476
|
+
var o;
|
477
|
+
const i = (o = n[t]) == null ? void 0 : o.type;
|
478
|
+
if (e = i === "Boolean" && typeof e != "boolean" ? e != null : e, !s || !n[t])
|
479
|
+
return e;
|
480
|
+
if (s === "toAttribute")
|
481
|
+
switch (i) {
|
482
|
+
case "Object":
|
483
|
+
case "Array":
|
484
|
+
return e == null ? null : JSON.stringify(e);
|
485
|
+
case "Boolean":
|
486
|
+
return e ? "" : null;
|
487
|
+
case "Number":
|
488
|
+
return e == null ? null : e;
|
489
|
+
default:
|
490
|
+
return e;
|
491
|
+
}
|
492
|
+
else
|
493
|
+
switch (i) {
|
494
|
+
case "Object":
|
495
|
+
case "Array":
|
496
|
+
return e && JSON.parse(e);
|
497
|
+
case "Boolean":
|
498
|
+
return e;
|
499
|
+
case "Number":
|
500
|
+
return e != null ? +e : e;
|
501
|
+
default:
|
502
|
+
return e;
|
503
|
+
}
|
504
|
+
}
|
505
|
+
function Dt(t, e, n, s, i, o) {
|
506
|
+
let c = class extends mt {
|
507
|
+
constructor() {
|
508
|
+
super(t, n, i), this.$$p_d = e;
|
509
|
+
}
|
510
|
+
static get observedAttributes() {
|
511
|
+
return Object.keys(e).map(
|
512
|
+
(u) => (e[u].attribute || u).toLowerCase()
|
513
|
+
);
|
514
|
+
}
|
515
|
+
};
|
516
|
+
return Object.keys(e).forEach((u) => {
|
517
|
+
Object.defineProperty(c.prototype, u, {
|
518
|
+
get() {
|
519
|
+
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
520
|
+
},
|
521
|
+
set(l) {
|
522
|
+
var r;
|
523
|
+
l = I(u, l, e), this.$$d[u] = l, (r = this.$$c) == null || r.$set({ [u]: l });
|
524
|
+
}
|
525
|
+
});
|
526
|
+
}), s.forEach((u) => {
|
527
|
+
Object.defineProperty(c.prototype, u, {
|
528
|
+
get() {
|
529
|
+
var l;
|
530
|
+
return (l = this.$$c) == null ? void 0 : l[u];
|
531
|
+
}
|
532
|
+
});
|
533
|
+
}), t.element = /** @type {any} */
|
534
|
+
c, c;
|
535
|
+
}
|
536
|
+
class It {
|
537
|
+
constructor() {
|
538
|
+
/**
|
539
|
+
* ### PRIVATE API
|
540
|
+
*
|
541
|
+
* Do not use, may change at any time
|
542
|
+
*
|
543
|
+
* @type {any}
|
544
|
+
*/
|
545
|
+
m(this, "$$");
|
546
|
+
/**
|
547
|
+
* ### PRIVATE API
|
548
|
+
*
|
549
|
+
* Do not use, may change at any time
|
550
|
+
*
|
551
|
+
* @type {any}
|
552
|
+
*/
|
553
|
+
m(this, "$$set");
|
554
|
+
}
|
555
|
+
/** @returns {void} */
|
556
|
+
$destroy() {
|
557
|
+
Rt(this, 1), this.$destroy = B;
|
558
|
+
}
|
559
|
+
/**
|
560
|
+
* @template {Extract<keyof Events, string>} K
|
561
|
+
* @param {K} type
|
562
|
+
* @param {((e: Events[K]) => void) | null | undefined} callback
|
563
|
+
* @returns {() => void}
|
564
|
+
*/
|
565
|
+
$on(e, n) {
|
566
|
+
if (!dt(n))
|
567
|
+
return B;
|
568
|
+
const s = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
569
|
+
return s.push(n), () => {
|
570
|
+
const i = s.indexOf(n);
|
571
|
+
i !== -1 && s.splice(i, 1);
|
572
|
+
};
|
573
|
+
}
|
574
|
+
/**
|
575
|
+
* @param {Partial<Props>} props
|
576
|
+
* @returns {void}
|
577
|
+
*/
|
578
|
+
$set(e) {
|
579
|
+
this.$$set && !Lt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
580
|
+
}
|
581
|
+
}
|
582
|
+
const qt = "4";
|
583
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(qt);
|
584
|
+
function Ft(t, e) {
|
585
|
+
if (t) {
|
586
|
+
const n = document.createElement("style");
|
587
|
+
n.innerHTML = e, t.appendChild(n);
|
588
|
+
}
|
589
|
+
}
|
590
|
+
function Jt(t, e) {
|
591
|
+
const n = new URL(e);
|
592
|
+
fetch(n.href).then((s) => s.text()).then((s) => {
|
593
|
+
const i = document.createElement("style");
|
594
|
+
i.innerHTML = s, t && t.appendChild(i);
|
595
|
+
}).catch((s) => {
|
596
|
+
console.error("There was an error while trying to load client styling from URL", s);
|
597
|
+
});
|
598
|
+
}
|
599
|
+
function Vt(t, e, n) {
|
600
|
+
if (window.emMessageBus) {
|
601
|
+
const s = document.createElement("style");
|
602
|
+
window.emMessageBus.subscribe(e, (i) => {
|
603
|
+
s.innerHTML = i, t && t.appendChild(s);
|
604
|
+
});
|
605
|
+
}
|
606
|
+
}
|
607
|
+
function Wt(t) {
|
608
|
+
Et(t, "svelte-kug7b4", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CashierModalWindow{container-type:inline-size;container-name:confirm-modal;display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:4;top:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.1))}.CashierModalContainer{width:500px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--emw--spacing-large, 20px);position:relative;padding:var(--emw--spacing-medium, 15px);min-height:200px;box-shadow:0 2px 6px 0 var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff)}.ModalOkBtn{color:var(--emw--color-white, #fff);display:flex;align-items:center;justify-content:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-normal, 400);font-family:inherit;height:46px;width:100%;border:none;border-radius:50px;line-height:125%;background-color:var(--emw--color-primary, #7EC51E);margin-top:var(--emw--spacing-small, 12px);cursor:pointer}.ModalCloseBtn{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:var(--emw--spacing-small, 12px) var(--emw--spacing-small, 12px);height:inherit;right:0;top:0;cursor:pointer}@container confirm-modal (max-width: 750px){.CashierModalContainer{margin:var(--emw--spacing-x-large, 30px) var(--emw--spacing-small, 12px)}}");
|
609
|
+
}
|
610
|
+
const Gt = (t) => ({}), ct = (t) => ({}), Kt = (t) => ({}), lt = (t) => ({}), Qt = (t) => ({}), ut = (t) => ({ class: "CashierModalText" }), Zt = (t) => ({}), ft = (t) => ({ class: "CashierModalTitle" });
|
611
|
+
function Xt(t) {
|
612
|
+
let e, n;
|
613
|
+
return {
|
614
|
+
c() {
|
615
|
+
e = it("svg"), n = it("path"), d(n, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), d(n, "fill", "#111111"), d(e, "xmlns", "http://www.w3.org/2000/svg"), d(e, "width", "13"), d(e, "height", "20"), d(e, "viewBox", "0 0 13 13"), d(e, "fill", "none");
|
616
|
+
},
|
617
|
+
m(s, i) {
|
618
|
+
X(s, e, i), y(e, n);
|
619
|
+
},
|
620
|
+
p: B,
|
621
|
+
d(s) {
|
622
|
+
s && q(e);
|
623
|
+
}
|
624
|
+
};
|
625
|
+
}
|
626
|
+
function Yt(t) {
|
627
|
+
let e, n, s, i, o, c, u, l, r, p, $;
|
628
|
+
const a = (
|
629
|
+
/*#slots*/
|
630
|
+
t[7].title
|
631
|
+
), h = P(
|
632
|
+
a,
|
633
|
+
t,
|
634
|
+
/*$$scope*/
|
635
|
+
t[6],
|
636
|
+
ft
|
637
|
+
), L = (
|
638
|
+
/*#slots*/
|
639
|
+
t[7].text
|
640
|
+
), g = P(
|
641
|
+
L,
|
642
|
+
t,
|
643
|
+
/*$$scope*/
|
644
|
+
t[6],
|
645
|
+
ut
|
646
|
+
), F = (
|
647
|
+
/*#slots*/
|
648
|
+
t[7].confirm
|
649
|
+
), _ = P(
|
650
|
+
F,
|
651
|
+
t,
|
652
|
+
/*$$scope*/
|
653
|
+
t[6],
|
654
|
+
lt
|
655
|
+
), J = (
|
656
|
+
/*#slots*/
|
657
|
+
t[7].close
|
658
|
+
), A = P(
|
659
|
+
J,
|
660
|
+
t,
|
661
|
+
/*$$scope*/
|
662
|
+
t[6],
|
663
|
+
ct
|
664
|
+
), w = A || Xt();
|
665
|
+
return {
|
666
|
+
c() {
|
667
|
+
e = x("div"), n = x("div"), s = x("div"), h && h.c(), i = W(), g && g.c(), o = W(), c = x("span"), _ && _.c(), u = W(), l = x("span"), w && w.c(), d(c, "class", "ModalOkBtn"), d(c, "role", "button"), d(l, "class", "ModalCloseBtn"), d(l, "role", "button"), d(s, "class", "CashierModalContainer"), d(n, "class", "CashierModalWindow"), d(n, "id", "Modal");
|
668
|
+
},
|
669
|
+
m(f, b) {
|
670
|
+
X(f, e, b), y(e, n), y(n, s), h && h.m(s, null), y(s, i), g && g.m(s, null), y(s, o), y(s, c), _ && _.m(c, null), y(s, u), y(s, l), w && w.m(l, null), t[8](e), r = !0, p || ($ = [
|
671
|
+
ot(
|
672
|
+
c,
|
673
|
+
"click",
|
674
|
+
/*confirm*/
|
675
|
+
t[2]
|
676
|
+
),
|
677
|
+
ot(
|
678
|
+
l,
|
679
|
+
"click",
|
680
|
+
/*close*/
|
681
|
+
t[1]
|
682
|
+
)
|
683
|
+
], p = !0);
|
684
|
+
},
|
685
|
+
p(f, [b]) {
|
686
|
+
h && h.p && (!r || b & /*$$scope*/
|
687
|
+
64) && R(
|
688
|
+
h,
|
689
|
+
a,
|
690
|
+
f,
|
691
|
+
/*$$scope*/
|
692
|
+
f[6],
|
693
|
+
r ? z(
|
694
|
+
a,
|
695
|
+
/*$$scope*/
|
696
|
+
f[6],
|
697
|
+
b,
|
698
|
+
Zt
|
699
|
+
) : H(
|
700
|
+
/*$$scope*/
|
701
|
+
f[6]
|
702
|
+
),
|
703
|
+
ft
|
704
|
+
), g && g.p && (!r || b & /*$$scope*/
|
705
|
+
64) && R(
|
706
|
+
g,
|
707
|
+
L,
|
708
|
+
f,
|
709
|
+
/*$$scope*/
|
710
|
+
f[6],
|
711
|
+
r ? z(
|
712
|
+
L,
|
713
|
+
/*$$scope*/
|
714
|
+
f[6],
|
715
|
+
b,
|
716
|
+
Qt
|
717
|
+
) : H(
|
718
|
+
/*$$scope*/
|
719
|
+
f[6]
|
720
|
+
),
|
721
|
+
ut
|
722
|
+
), _ && _.p && (!r || b & /*$$scope*/
|
723
|
+
64) && R(
|
724
|
+
_,
|
725
|
+
F,
|
726
|
+
f,
|
727
|
+
/*$$scope*/
|
728
|
+
f[6],
|
729
|
+
r ? z(
|
730
|
+
F,
|
731
|
+
/*$$scope*/
|
732
|
+
f[6],
|
733
|
+
b,
|
734
|
+
Kt
|
735
|
+
) : H(
|
736
|
+
/*$$scope*/
|
737
|
+
f[6]
|
738
|
+
),
|
739
|
+
lt
|
740
|
+
), A && A.p && (!r || b & /*$$scope*/
|
741
|
+
64) && R(
|
742
|
+
A,
|
743
|
+
J,
|
744
|
+
f,
|
745
|
+
/*$$scope*/
|
746
|
+
f[6],
|
747
|
+
r ? z(
|
748
|
+
J,
|
749
|
+
/*$$scope*/
|
750
|
+
f[6],
|
751
|
+
b,
|
752
|
+
Gt
|
753
|
+
) : H(
|
754
|
+
/*$$scope*/
|
755
|
+
f[6]
|
756
|
+
),
|
757
|
+
ct
|
758
|
+
);
|
759
|
+
},
|
760
|
+
i(f) {
|
761
|
+
r || (k(h, f), k(g, f), k(_, f), k(w, f), r = !0);
|
762
|
+
},
|
763
|
+
o(f) {
|
764
|
+
U(h, f), U(g, f), U(_, f), U(w, f), r = !1;
|
765
|
+
},
|
766
|
+
d(f) {
|
767
|
+
f && q(e), h && h.d(f), g && g.d(f), _ && _.d(f), w && w.d(f), t[8](null), p = !1, j($);
|
768
|
+
}
|
769
|
+
};
|
770
|
+
}
|
771
|
+
function te(t, e, n) {
|
772
|
+
let { $$slots: s = {}, $$scope: i } = e, { clientstyling: o = "" } = e, { clientstylingurl: c = "" } = e, { mbsource: u = "" } = e, l;
|
773
|
+
const r = () => {
|
774
|
+
window.postMessage({ type: "CloseModal" }, window.location.href);
|
775
|
+
}, p = () => {
|
776
|
+
window.postMessage({ type: "ConfirmModal" }, window.location.href), r();
|
777
|
+
};
|
778
|
+
Bt(() => () => {
|
779
|
+
});
|
780
|
+
function $(a) {
|
781
|
+
K[a ? "unshift" : "push"](() => {
|
782
|
+
l = a, n(0, l);
|
783
|
+
});
|
784
|
+
}
|
785
|
+
return t.$$set = (a) => {
|
786
|
+
"clientstyling" in a && n(3, o = a.clientstyling), "clientstylingurl" in a && n(4, c = a.clientstylingurl), "mbsource" in a && n(5, u = a.mbsource), "$$scope" in a && n(6, i = a.$$scope);
|
787
|
+
}, t.$$.update = () => {
|
788
|
+
t.$$.dirty & /*clientstyling, customStylingContainer*/
|
789
|
+
9 && o && l && Ft(l, o), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
790
|
+
17 && c && l && Jt(l, c), t.$$.dirty & /*mbsource, customStylingContainer*/
|
791
|
+
33 && u && l && Vt(l, `${u}.Style`);
|
792
|
+
}, [
|
793
|
+
l,
|
794
|
+
r,
|
795
|
+
p,
|
796
|
+
o,
|
797
|
+
c,
|
798
|
+
u,
|
799
|
+
i,
|
800
|
+
s,
|
801
|
+
$
|
802
|
+
];
|
803
|
+
}
|
804
|
+
class gt extends It {
|
805
|
+
constructor(e) {
|
806
|
+
super(), Ut(
|
807
|
+
this,
|
808
|
+
e,
|
809
|
+
te,
|
810
|
+
Yt,
|
811
|
+
Ct,
|
812
|
+
{
|
813
|
+
clientstyling: 3,
|
814
|
+
clientstylingurl: 4,
|
815
|
+
mbsource: 5
|
816
|
+
},
|
817
|
+
Wt
|
818
|
+
);
|
819
|
+
}
|
820
|
+
get clientstyling() {
|
821
|
+
return this.$$.ctx[3];
|
822
|
+
}
|
823
|
+
set clientstyling(e) {
|
824
|
+
this.$$set({ clientstyling: e }), S();
|
825
|
+
}
|
826
|
+
get clientstylingurl() {
|
827
|
+
return this.$$.ctx[4];
|
828
|
+
}
|
829
|
+
set clientstylingurl(e) {
|
830
|
+
this.$$set({ clientstylingurl: e }), S();
|
831
|
+
}
|
832
|
+
get mbsource() {
|
833
|
+
return this.$$.ctx[5];
|
834
|
+
}
|
835
|
+
set mbsource(e) {
|
836
|
+
this.$$set({ mbsource: e }), S();
|
837
|
+
}
|
838
|
+
}
|
839
|
+
Dt(gt, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, ["title", "text", "confirm", "close"], [], !0);
|
840
|
+
const _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
841
|
+
__proto__: null,
|
842
|
+
default: gt
|
843
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
844
|
+
export {
|
845
|
+
re as A,
|
846
|
+
$t as B,
|
847
|
+
fe as C,
|
848
|
+
ot as D,
|
849
|
+
$e as E,
|
850
|
+
K as F,
|
851
|
+
Ft as G,
|
852
|
+
ne as H,
|
853
|
+
le as I,
|
854
|
+
Z as J,
|
855
|
+
ie as K,
|
856
|
+
he as L,
|
857
|
+
ue as M,
|
858
|
+
ge as N,
|
859
|
+
ce as O,
|
860
|
+
oe as P,
|
861
|
+
ae as Q,
|
862
|
+
it as R,
|
863
|
+
It as S,
|
864
|
+
de as T,
|
865
|
+
_e as U,
|
866
|
+
Ct as a,
|
867
|
+
Ut as b,
|
868
|
+
Dt as c,
|
869
|
+
Et as d,
|
870
|
+
P as e,
|
871
|
+
S as f,
|
872
|
+
x as g,
|
873
|
+
W as h,
|
874
|
+
dt as i,
|
875
|
+
d as j,
|
876
|
+
X as k,
|
877
|
+
y as l,
|
878
|
+
H as m,
|
879
|
+
B as n,
|
880
|
+
z as o,
|
881
|
+
U as p,
|
882
|
+
me as q,
|
883
|
+
j as r,
|
884
|
+
Mt as s,
|
885
|
+
k as t,
|
886
|
+
R as u,
|
887
|
+
q as v,
|
888
|
+
se as w,
|
889
|
+
Bt as x,
|
890
|
+
Jt as y,
|
891
|
+
Vt as z
|
892
|
+
};
|