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