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