@everymatrix/cashier-modal 1.45.0 → 1.45.2
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.
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var bt = Object.defineProperty, xt = Object.defineProperties;
|
|
2
|
+
var Ct = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var nt = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var q = (e, t, n) => t in e ?
|
|
4
|
+
var Et = Object.prototype.hasOwnProperty, vt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var q = (e, t, n) => t in e ? bt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, it = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
Et.call(t, n) && q(e, n, t[n]);
|
|
8
8
|
if (nt)
|
|
9
9
|
for (var n of nt(t))
|
|
10
|
-
|
|
10
|
+
vt.call(t, n) && q(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
}, st = (e, t) =>
|
|
13
|
-
var
|
|
12
|
+
}, st = (e, t) => xt(e, Ct(t));
|
|
13
|
+
var m = (e, t, n) => q(e, typeof t != "symbol" ? t + "" : t, n);
|
|
14
14
|
var rt = (e, t, n) => new Promise((i, r) => {
|
|
15
15
|
var s = (u) => {
|
|
16
16
|
try {
|
|
@@ -27,42 +27,42 @@ var rt = (e, t, n) => new Promise((i, r) => {
|
|
|
27
27
|
}, o = (u) => u.done ? i(u.value) : Promise.resolve(u.value).then(s, l);
|
|
28
28
|
o((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function W() {
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
function
|
|
32
|
+
const $t = (e) => e;
|
|
33
|
+
function Mt(e, t) {
|
|
34
34
|
for (const n in t) e[n] = t[n];
|
|
35
35
|
return (
|
|
36
36
|
/** @type {T & S} */
|
|
37
37
|
e
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function _t(e) {
|
|
41
41
|
return e();
|
|
42
42
|
}
|
|
43
43
|
function ot() {
|
|
44
44
|
return /* @__PURE__ */ Object.create(null);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
e.forEach(
|
|
46
|
+
function L(e) {
|
|
47
|
+
e.forEach(_t);
|
|
48
48
|
}
|
|
49
49
|
function Y(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function kt(e, t) {
|
|
53
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function St(e) {
|
|
56
56
|
return Object.keys(e).length === 0;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function jt(e, t, n, i) {
|
|
59
59
|
if (e) {
|
|
60
|
-
const r =
|
|
60
|
+
const r = gt(e, t, n, i);
|
|
61
61
|
return e[0](r);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
return e[1] && i ?
|
|
64
|
+
function gt(e, t, n, i) {
|
|
65
|
+
return e[1] && i ? Mt(n.ctx.slice(), e[1](i(t))) : n.ctx;
|
|
66
66
|
}
|
|
67
67
|
function Lt(e, t, n, i) {
|
|
68
68
|
if (e[2] && i) {
|
|
@@ -79,13 +79,13 @@ function Lt(e, t, n, i) {
|
|
|
79
79
|
}
|
|
80
80
|
return t.dirty;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Ot(e, t, n, i, r, s) {
|
|
83
83
|
if (r) {
|
|
84
|
-
const l =
|
|
84
|
+
const l = gt(t, n, i, s);
|
|
85
85
|
e.p(l, r);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function At(e) {
|
|
89
89
|
if (e.ctx.length > 32) {
|
|
90
90
|
const t = [], n = e.ctx.length / 32;
|
|
91
91
|
for (let i = 0; i < n; i++)
|
|
@@ -95,16 +95,16 @@ function Ot(e) {
|
|
|
95
95
|
return -1;
|
|
96
96
|
}
|
|
97
97
|
const mt = typeof window != "undefined";
|
|
98
|
-
let
|
|
98
|
+
let Nt = mt ? () => window.performance.now() : () => Date.now(), Z = mt ? (e) => requestAnimationFrame(e) : W;
|
|
99
99
|
const k = /* @__PURE__ */ new Set();
|
|
100
|
-
function
|
|
100
|
+
function pt(e) {
|
|
101
101
|
k.forEach((t) => {
|
|
102
102
|
t.c(e) || (k.delete(t), t.f());
|
|
103
|
-
}), k.size !== 0 && Z(
|
|
103
|
+
}), k.size !== 0 && Z(pt);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function zt(e) {
|
|
106
106
|
let t;
|
|
107
|
-
return k.size === 0 && Z(
|
|
107
|
+
return k.size === 0 && Z(pt), {
|
|
108
108
|
promise: new Promise((n) => {
|
|
109
109
|
k.add(t = { c: e, f: n });
|
|
110
110
|
}),
|
|
@@ -116,11 +116,11 @@ function Nt(e) {
|
|
|
116
116
|
function F(e, t) {
|
|
117
117
|
e.appendChild(t);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Pt(e, t, n) {
|
|
120
120
|
const i = tt(e);
|
|
121
121
|
if (!i.getElementById(t)) {
|
|
122
|
-
const r =
|
|
123
|
-
r.id = t, r.textContent = n,
|
|
122
|
+
const r = E("style");
|
|
123
|
+
r.id = t, r.textContent = n, yt(i, r);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
function tt(e) {
|
|
@@ -132,11 +132,11 @@ function tt(e) {
|
|
|
132
132
|
t
|
|
133
133
|
) : e.ownerDocument;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
const t =
|
|
137
|
-
return t.textContent = "/* empty */",
|
|
135
|
+
function Bt(e) {
|
|
136
|
+
const t = E("style");
|
|
137
|
+
return t.textContent = "/* empty */", yt(tt(e), t), t.sheet;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function yt(e, t) {
|
|
140
140
|
return F(
|
|
141
141
|
/** @type {Document} */
|
|
142
142
|
e.head || e,
|
|
@@ -149,7 +149,7 @@ function et(e, t, n) {
|
|
|
149
149
|
function O(e) {
|
|
150
150
|
e.parentNode && e.parentNode.removeChild(e);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function E(e) {
|
|
153
153
|
return document.createElement(e);
|
|
154
154
|
}
|
|
155
155
|
function Rt(e) {
|
|
@@ -161,32 +161,32 @@ function Wt() {
|
|
|
161
161
|
function lt(e, t, n, i) {
|
|
162
162
|
return e.addEventListener(t, n, i), () => e.removeEventListener(t, n, i);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function x(e, t, n) {
|
|
165
165
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
166
166
|
}
|
|
167
167
|
function Ht(e) {
|
|
168
168
|
return Array.from(e.childNodes);
|
|
169
169
|
}
|
|
170
|
-
let
|
|
171
|
-
function
|
|
172
|
-
if (
|
|
173
|
-
|
|
170
|
+
let T;
|
|
171
|
+
function Tt() {
|
|
172
|
+
if (T === void 0) {
|
|
173
|
+
T = !1;
|
|
174
174
|
try {
|
|
175
175
|
typeof window != "undefined" && window.parent && window.parent.document;
|
|
176
176
|
} catch (e) {
|
|
177
|
-
|
|
177
|
+
T = !0;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
return
|
|
180
|
+
return T;
|
|
181
181
|
}
|
|
182
182
|
function Dt(e, t) {
|
|
183
183
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
184
|
-
const i =
|
|
184
|
+
const i = E("iframe");
|
|
185
185
|
i.setAttribute(
|
|
186
186
|
"style",
|
|
187
187
|
"display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
|
|
188
188
|
), i.setAttribute("aria-hidden", "true"), i.tabIndex = -1;
|
|
189
|
-
const r =
|
|
189
|
+
const r = Tt();
|
|
190
190
|
let s;
|
|
191
191
|
return r ? (i.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = lt(
|
|
192
192
|
window,
|
|
@@ -201,10 +201,10 @@ function Dt(e, t) {
|
|
|
201
201
|
(r || s && i.contentWindow) && s(), O(i);
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function It(e, t, { bubbles: n = !1, cancelable: i = !1 } = {}) {
|
|
205
205
|
return new CustomEvent(e, { detail: t, bubbles: n, cancelable: i });
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Ft(e) {
|
|
208
208
|
const t = {};
|
|
209
209
|
return e.childNodes.forEach(
|
|
210
210
|
/** @param {Element} node */
|
|
@@ -215,13 +215,13 @@ function It(e) {
|
|
|
215
215
|
}
|
|
216
216
|
const U = /* @__PURE__ */ new Map();
|
|
217
217
|
let J = 0;
|
|
218
|
-
function
|
|
218
|
+
function Ut(e) {
|
|
219
219
|
let t = 5381, n = e.length;
|
|
220
220
|
for (; n--; ) t = (t << 5) - t ^ e.charCodeAt(n);
|
|
221
221
|
return t >>> 0;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
const n = { stylesheet:
|
|
223
|
+
function Jt(e, t) {
|
|
224
|
+
const n = { stylesheet: Bt(t), rules: {} };
|
|
225
225
|
return U.set(e, n), n;
|
|
226
226
|
}
|
|
227
227
|
function ct(e, t, n, i, r, s, l, o = 0) {
|
|
@@ -229,24 +229,24 @@ function ct(e, t, n, i, r, s, l, o = 0) {
|
|
|
229
229
|
let c = `{
|
|
230
230
|
`;
|
|
231
231
|
for (let $ = 0; $ <= 1; $ += u) {
|
|
232
|
-
const
|
|
233
|
-
c += $ * 100 + `%{${l(
|
|
232
|
+
const w = t + (n - t) * s($);
|
|
233
|
+
c += $ * 100 + `%{${l(w, 1 - w)}}
|
|
234
234
|
`;
|
|
235
235
|
}
|
|
236
236
|
const h = c + `100% {${l(n, 1 - n)}}
|
|
237
|
-
}`,
|
|
238
|
-
d[
|
|
239
|
-
const
|
|
240
|
-
return e.style.animation = `${
|
|
237
|
+
}`, f = `__svelte_${Ut(h)}_${o}`, _ = tt(e), { stylesheet: p, rules: d } = U.get(_) || Jt(_, e);
|
|
238
|
+
d[f] || (d[f] = !0, p.insertRule(`@keyframes ${f} ${h}`, p.cssRules.length));
|
|
239
|
+
const g = e.style.animation || "";
|
|
240
|
+
return e.style.animation = `${g ? `${g}, ` : ""}${f} ${i}ms linear ${r}ms 1 both`, J += 1, f;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function Vt(e, t) {
|
|
243
243
|
const n = (e.style.animation || "").split(", "), i = n.filter(
|
|
244
244
|
t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
|
|
245
245
|
// remove all Svelte animations
|
|
246
246
|
), r = n.length - i.length;
|
|
247
|
-
r && (e.style.animation = i.join(", "), J -= r, J ||
|
|
247
|
+
r && (e.style.animation = i.join(", "), J -= r, J || qt());
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function qt() {
|
|
250
250
|
Z(() => {
|
|
251
251
|
J || (U.forEach((e) => {
|
|
252
252
|
const { ownerNode: t } = e.stylesheet;
|
|
@@ -254,43 +254,43 @@ function Vt() {
|
|
|
254
254
|
}), U.clear());
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
|
-
let
|
|
258
|
-
function
|
|
259
|
-
|
|
257
|
+
let H;
|
|
258
|
+
function B(e) {
|
|
259
|
+
H = e;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
if (!
|
|
263
|
-
return
|
|
261
|
+
function Gt() {
|
|
262
|
+
if (!H) throw new Error("Function called outside component initialization");
|
|
263
|
+
return H;
|
|
264
264
|
}
|
|
265
|
-
function
|
|
266
|
-
|
|
265
|
+
function Kt(e) {
|
|
266
|
+
Gt().$$.on_mount.push(e);
|
|
267
267
|
}
|
|
268
268
|
const M = [], V = [];
|
|
269
269
|
let S = [];
|
|
270
|
-
const ut = [],
|
|
270
|
+
const ut = [], Qt = /* @__PURE__ */ Promise.resolve();
|
|
271
271
|
let Q = !1;
|
|
272
|
-
function
|
|
273
|
-
Q || (Q = !0,
|
|
272
|
+
function Xt() {
|
|
273
|
+
Q || (Q = !0, Qt.then(C));
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function j(e) {
|
|
276
276
|
S.push(e);
|
|
277
277
|
}
|
|
278
278
|
const G = /* @__PURE__ */ new Set();
|
|
279
|
-
let
|
|
280
|
-
function
|
|
281
|
-
if (
|
|
279
|
+
let v = 0;
|
|
280
|
+
function C() {
|
|
281
|
+
if (v !== 0)
|
|
282
282
|
return;
|
|
283
|
-
const e =
|
|
283
|
+
const e = H;
|
|
284
284
|
do {
|
|
285
285
|
try {
|
|
286
|
-
for (;
|
|
287
|
-
const t = M[
|
|
288
|
-
|
|
286
|
+
for (; v < M.length; ) {
|
|
287
|
+
const t = M[v];
|
|
288
|
+
v++, B(t), Yt(t.$$);
|
|
289
289
|
}
|
|
290
290
|
} catch (t) {
|
|
291
|
-
throw M.length = 0,
|
|
291
|
+
throw M.length = 0, v = 0, t;
|
|
292
292
|
}
|
|
293
|
-
for (
|
|
293
|
+
for (B(null), M.length = 0, v = 0; V.length; ) V.pop()();
|
|
294
294
|
for (let t = 0; t < S.length; t += 1) {
|
|
295
295
|
const n = S[t];
|
|
296
296
|
G.has(n) || (G.add(n), n());
|
|
@@ -299,100 +299,100 @@ function v() {
|
|
|
299
299
|
} while (M.length);
|
|
300
300
|
for (; ut.length; )
|
|
301
301
|
ut.pop()();
|
|
302
|
-
Q = !1, G.clear(),
|
|
302
|
+
Q = !1, G.clear(), B(e);
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function Yt(e) {
|
|
305
305
|
if (e.fragment !== null) {
|
|
306
|
-
e.update(),
|
|
306
|
+
e.update(), L(e.before_update);
|
|
307
307
|
const t = e.dirty;
|
|
308
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
308
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(j);
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function Zt(e) {
|
|
312
312
|
const t = [], n = [];
|
|
313
313
|
S.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : n.push(i)), n.forEach((i) => i()), S = t;
|
|
314
314
|
}
|
|
315
315
|
let P;
|
|
316
|
-
function
|
|
316
|
+
function te() {
|
|
317
317
|
return P || (P = Promise.resolve(), P.then(() => {
|
|
318
318
|
P = null;
|
|
319
319
|
})), P;
|
|
320
320
|
}
|
|
321
321
|
function K(e, t, n) {
|
|
322
|
-
e.dispatchEvent(
|
|
322
|
+
e.dispatchEvent(It(`${t ? "intro" : "outro"}${n}`));
|
|
323
323
|
}
|
|
324
|
-
const
|
|
325
|
-
let
|
|
326
|
-
function
|
|
327
|
-
|
|
324
|
+
const D = /* @__PURE__ */ new Set();
|
|
325
|
+
let y;
|
|
326
|
+
function ee() {
|
|
327
|
+
y = {
|
|
328
328
|
r: 0,
|
|
329
329
|
c: [],
|
|
330
|
-
p:
|
|
330
|
+
p: y
|
|
331
331
|
// parent group
|
|
332
332
|
};
|
|
333
333
|
}
|
|
334
|
-
function
|
|
335
|
-
|
|
334
|
+
function ne() {
|
|
335
|
+
y.r || L(y.c), y = y.p;
|
|
336
336
|
}
|
|
337
|
-
function
|
|
338
|
-
e && e.i && (
|
|
337
|
+
function R(e, t) {
|
|
338
|
+
e && e.i && (D.delete(e), e.i(t));
|
|
339
339
|
}
|
|
340
340
|
function X(e, t, n, i) {
|
|
341
341
|
if (e && e.o) {
|
|
342
|
-
if (
|
|
343
|
-
|
|
344
|
-
|
|
342
|
+
if (D.has(e)) return;
|
|
343
|
+
D.add(e), y.c.push(() => {
|
|
344
|
+
D.delete(e), i && (n && e.d(1), i());
|
|
345
345
|
}), e.o(t);
|
|
346
346
|
} else i && i();
|
|
347
347
|
}
|
|
348
|
-
const
|
|
349
|
-
function
|
|
348
|
+
const ie = { duration: 0 };
|
|
349
|
+
function at(e, t, n, i) {
|
|
350
350
|
let s = t(e, n, { direction: "both" }), l = i ? 0 : 1, o = null, u = null, c = null, h;
|
|
351
|
-
function
|
|
352
|
-
c &&
|
|
351
|
+
function f() {
|
|
352
|
+
c && Vt(e, c);
|
|
353
353
|
}
|
|
354
|
-
function _(d,
|
|
354
|
+
function _(d, g) {
|
|
355
355
|
const $ = (
|
|
356
356
|
/** @type {Program['d']} */
|
|
357
357
|
d.b - l
|
|
358
358
|
);
|
|
359
|
-
return
|
|
359
|
+
return g *= Math.abs($), {
|
|
360
360
|
a: l,
|
|
361
361
|
b: d.b,
|
|
362
362
|
d: $,
|
|
363
|
-
duration:
|
|
363
|
+
duration: g,
|
|
364
364
|
start: d.start,
|
|
365
|
-
end: d.start +
|
|
365
|
+
end: d.start + g,
|
|
366
366
|
group: d.group
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
369
|
function p(d) {
|
|
370
370
|
const {
|
|
371
|
-
delay:
|
|
371
|
+
delay: g = 0,
|
|
372
372
|
duration: $ = 300,
|
|
373
|
-
easing:
|
|
374
|
-
tick: A =
|
|
373
|
+
easing: w = $t,
|
|
374
|
+
tick: A = W,
|
|
375
375
|
css: N
|
|
376
|
-
} = s ||
|
|
377
|
-
start:
|
|
376
|
+
} = s || ie, a = {
|
|
377
|
+
start: Nt() + g,
|
|
378
378
|
b: d
|
|
379
379
|
};
|
|
380
|
-
d || (
|
|
381
|
-
e.inert, e.inert = !0)), o || u ? u =
|
|
382
|
-
if (u &&
|
|
380
|
+
d || (a.group = y, y.r += 1), "inert" in e && (d ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
|
|
381
|
+
e.inert, e.inert = !0)), o || u ? u = a : (N && (f(), c = ct(e, l, d, $, g, w, N)), d && A(0, 1), o = _(a, $), j(() => K(e, d, "start")), zt((b) => {
|
|
382
|
+
if (u && b > u.start && (o = _(u, $), u = null, K(e, o.b, "start"), N && (f(), c = ct(
|
|
383
383
|
e,
|
|
384
384
|
l,
|
|
385
385
|
o.b,
|
|
386
386
|
o.duration,
|
|
387
387
|
0,
|
|
388
|
-
|
|
388
|
+
w,
|
|
389
389
|
s.css
|
|
390
390
|
))), o) {
|
|
391
|
-
if (
|
|
392
|
-
A(l = o.b, 1 - l), K(e, o.b, "end"), u || (o.b ?
|
|
393
|
-
else if (
|
|
394
|
-
const z =
|
|
395
|
-
l = o.a + o.d *
|
|
391
|
+
if (b >= o.end)
|
|
392
|
+
A(l = o.b, 1 - l), K(e, o.b, "end"), u || (o.b ? f() : --o.group.r || L(o.group.c)), o = null;
|
|
393
|
+
else if (b >= o.start) {
|
|
394
|
+
const z = b - o.start;
|
|
395
|
+
l = o.a + o.d * w(z / o.duration), A(l, 1 - l);
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
return !!(o || u);
|
|
@@ -400,38 +400,38 @@ function ft(e, t, n, i) {
|
|
|
400
400
|
}
|
|
401
401
|
return {
|
|
402
402
|
run(d) {
|
|
403
|
-
Y(s) ?
|
|
403
|
+
Y(s) ? te().then(() => {
|
|
404
404
|
s = s({ direction: d ? "in" : "out" }), p(d);
|
|
405
405
|
}) : p(d);
|
|
406
406
|
},
|
|
407
407
|
end() {
|
|
408
|
-
|
|
408
|
+
f(), o = u = null;
|
|
409
409
|
}
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function se(e, t, n) {
|
|
413
413
|
const { fragment: i, after_update: r } = e.$$;
|
|
414
|
-
i && i.m(t, n),
|
|
415
|
-
const s = e.$$.on_mount.map(
|
|
416
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
417
|
-
}), r.forEach(
|
|
414
|
+
i && i.m(t, n), j(() => {
|
|
415
|
+
const s = e.$$.on_mount.map(_t).filter(Y);
|
|
416
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : L(s), e.$$.on_mount = [];
|
|
417
|
+
}), r.forEach(j);
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function re(e, t) {
|
|
420
420
|
const n = e.$$;
|
|
421
|
-
n.fragment !== null && (
|
|
421
|
+
n.fragment !== null && (Zt(n.after_update), L(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
422
422
|
}
|
|
423
|
-
function
|
|
424
|
-
e.$$.dirty[0] === -1 && (M.push(e),
|
|
423
|
+
function oe(e, t) {
|
|
424
|
+
e.$$.dirty[0] === -1 && (M.push(e), Xt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
425
425
|
}
|
|
426
|
-
function
|
|
427
|
-
const u =
|
|
428
|
-
|
|
426
|
+
function le(e, t, n, i, r, s, l = null, o = [-1]) {
|
|
427
|
+
const u = H;
|
|
428
|
+
B(e);
|
|
429
429
|
const c = e.$$ = {
|
|
430
430
|
fragment: null,
|
|
431
431
|
ctx: [],
|
|
432
432
|
// state
|
|
433
433
|
props: s,
|
|
434
|
-
update:
|
|
434
|
+
update: W,
|
|
435
435
|
not_equal: r,
|
|
436
436
|
bound: ot(),
|
|
437
437
|
// lifecycle
|
|
@@ -449,41 +449,41 @@ function oe(e, t, n, i, r, s, l = null, o = [-1]) {
|
|
|
449
449
|
};
|
|
450
450
|
l && l(c.root);
|
|
451
451
|
let h = !1;
|
|
452
|
-
if (c.ctx = n ? n(e, t.props || {}, (
|
|
452
|
+
if (c.ctx = n ? n(e, t.props || {}, (f, _, ...p) => {
|
|
453
453
|
const d = p.length ? p[0] : _;
|
|
454
|
-
return c.ctx && r(c.ctx[
|
|
455
|
-
}) : [], c.update(), h = !0,
|
|
454
|
+
return c.ctx && r(c.ctx[f], c.ctx[f] = d) && (!c.skip_bound && c.bound[f] && c.bound[f](d), h && oe(e, f)), _;
|
|
455
|
+
}) : [], c.update(), h = !0, L(c.before_update), c.fragment = i ? i(c.ctx) : !1, t.target) {
|
|
456
456
|
if (t.hydrate) {
|
|
457
|
-
const
|
|
458
|
-
c.fragment && c.fragment.l(
|
|
457
|
+
const f = Ht(t.target);
|
|
458
|
+
c.fragment && c.fragment.l(f), f.forEach(O);
|
|
459
459
|
} else
|
|
460
460
|
c.fragment && c.fragment.c();
|
|
461
|
-
t.intro &&
|
|
461
|
+
t.intro && R(e.$$.fragment), se(e, t.target, t.anchor), C();
|
|
462
462
|
}
|
|
463
|
-
|
|
463
|
+
B(u);
|
|
464
464
|
}
|
|
465
465
|
let wt;
|
|
466
466
|
typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
467
467
|
constructor(t, n, i) {
|
|
468
468
|
super();
|
|
469
469
|
/** The Svelte component constructor */
|
|
470
|
-
|
|
470
|
+
m(this, "$$ctor");
|
|
471
471
|
/** Slots */
|
|
472
|
-
|
|
472
|
+
m(this, "$$s");
|
|
473
473
|
/** The Svelte component instance */
|
|
474
|
-
|
|
474
|
+
m(this, "$$c");
|
|
475
475
|
/** Whether or not the custom element is connected */
|
|
476
|
-
|
|
476
|
+
m(this, "$$cn", !1);
|
|
477
477
|
/** Component props data */
|
|
478
|
-
|
|
478
|
+
m(this, "$$d", {});
|
|
479
479
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
480
|
-
|
|
480
|
+
m(this, "$$r", !1);
|
|
481
481
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
482
|
-
|
|
482
|
+
m(this, "$$p_d", {});
|
|
483
483
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
484
|
-
|
|
484
|
+
m(this, "$$l", {});
|
|
485
485
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
486
|
-
|
|
486
|
+
m(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
487
487
|
this.$$ctor = t, this.$$s = n, i && this.attachShadow({ mode: "open" });
|
|
488
488
|
}
|
|
489
489
|
addEventListener(t, n, i) {
|
|
@@ -507,7 +507,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
507
507
|
let l;
|
|
508
508
|
return {
|
|
509
509
|
c: function() {
|
|
510
|
-
l =
|
|
510
|
+
l = E("slot"), s !== "default" && x(l, "name", s);
|
|
511
511
|
},
|
|
512
512
|
/**
|
|
513
513
|
* @param {HTMLElement} target
|
|
@@ -524,7 +524,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
524
524
|
};
|
|
525
525
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
526
526
|
return;
|
|
527
|
-
const n = {}, i =
|
|
527
|
+
const n = {}, i = Ft(this);
|
|
528
528
|
for (const s of this.$$s)
|
|
529
529
|
s in i && (n[s] = [t(s)]);
|
|
530
530
|
for (const s of this.attributes) {
|
|
@@ -613,7 +613,7 @@ function I(e, t, n, i) {
|
|
|
613
613
|
return t;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function ce(e, t, n, i, r, s) {
|
|
617
617
|
let l = class extends wt {
|
|
618
618
|
constructor() {
|
|
619
619
|
super(e, n, r), this.$$p_d = t;
|
|
@@ -644,7 +644,7 @@ function le(e, t, n, i, r, s) {
|
|
|
644
644
|
}), e.element = /** @type {any} */
|
|
645
645
|
l, l;
|
|
646
646
|
}
|
|
647
|
-
class
|
|
647
|
+
class ue {
|
|
648
648
|
constructor() {
|
|
649
649
|
/**
|
|
650
650
|
* ### PRIVATE API
|
|
@@ -653,7 +653,7 @@ class ce {
|
|
|
653
653
|
*
|
|
654
654
|
* @type {any}
|
|
655
655
|
*/
|
|
656
|
-
|
|
656
|
+
m(this, "$$");
|
|
657
657
|
/**
|
|
658
658
|
* ### PRIVATE API
|
|
659
659
|
*
|
|
@@ -661,11 +661,11 @@ class ce {
|
|
|
661
661
|
*
|
|
662
662
|
* @type {any}
|
|
663
663
|
*/
|
|
664
|
-
|
|
664
|
+
m(this, "$$set");
|
|
665
665
|
}
|
|
666
666
|
/** @returns {void} */
|
|
667
667
|
$destroy() {
|
|
668
|
-
|
|
668
|
+
re(this, 1), this.$destroy = W;
|
|
669
669
|
}
|
|
670
670
|
/**
|
|
671
671
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -675,7 +675,7 @@ class ce {
|
|
|
675
675
|
*/
|
|
676
676
|
$on(t, n) {
|
|
677
677
|
if (!Y(n))
|
|
678
|
-
return
|
|
678
|
+
return W;
|
|
679
679
|
const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
680
680
|
return i.push(n), () => {
|
|
681
681
|
const r = i.indexOf(n);
|
|
@@ -687,12 +687,12 @@ class ce {
|
|
|
687
687
|
* @returns {void}
|
|
688
688
|
*/
|
|
689
689
|
$set(t) {
|
|
690
|
-
this.$$set && !
|
|
690
|
+
this.$$set && !St(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
691
691
|
}
|
|
692
692
|
}
|
|
693
|
-
const
|
|
694
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
695
|
-
function
|
|
693
|
+
const ae = "4";
|
|
694
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ae);
|
|
695
|
+
function ft(e, { delay: t = 0, duration: n = 400, easing: i = $t } = {}) {
|
|
696
696
|
const r = +getComputedStyle(e).opacity;
|
|
697
697
|
return {
|
|
698
698
|
delay: t,
|
|
@@ -702,26 +702,27 @@ function at(e, { delay: t = 0, duration: n = 400, easing: i = ht } = {}) {
|
|
|
702
702
|
};
|
|
703
703
|
}
|
|
704
704
|
function fe(e) {
|
|
705
|
-
|
|
705
|
+
Pt(e, "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}}");
|
|
706
706
|
}
|
|
707
|
-
|
|
707
|
+
const de = (e) => ({}), dt = (e) => ({});
|
|
708
|
+
function ht(e) {
|
|
708
709
|
let t, n, i, r, s, l;
|
|
709
710
|
const o = (
|
|
710
711
|
/*#slots*/
|
|
711
|
-
e[9].
|
|
712
|
-
), u =
|
|
712
|
+
e[9].content
|
|
713
|
+
), u = jt(
|
|
713
714
|
o,
|
|
714
715
|
e,
|
|
715
716
|
/*$$scope*/
|
|
716
717
|
e[8],
|
|
717
|
-
|
|
718
|
+
dt
|
|
718
719
|
);
|
|
719
720
|
return {
|
|
720
721
|
c() {
|
|
721
|
-
t =
|
|
722
|
+
t = E("div"), n = E("div"), i = E("div"), u && u.c(), x(i, "class", "ModalContainer"), x(i, "part", "ModalContainer"), x(n, "class", "ModalWindow"), x(n, "part", "ModalWindow"), x(n, "id", "Modal"), j(() => (
|
|
722
723
|
/*div1_elementresize_handler*/
|
|
723
724
|
e[11].call(n)
|
|
724
|
-
)),
|
|
725
|
+
)), x(t, "part", "CustomStylingContainer");
|
|
725
726
|
},
|
|
726
727
|
m(c, h) {
|
|
727
728
|
et(c, t, h), F(t, n), F(n, i), u && u.m(i, null), e[10](n), r = Dt(
|
|
@@ -732,7 +733,7 @@ function dt(e) {
|
|
|
732
733
|
},
|
|
733
734
|
p(c, h) {
|
|
734
735
|
e = c, u && u.p && (!l || h & /*$$scope*/
|
|
735
|
-
256) &&
|
|
736
|
+
256) && Ot(
|
|
736
737
|
u,
|
|
737
738
|
o,
|
|
738
739
|
e,
|
|
@@ -743,24 +744,24 @@ function dt(e) {
|
|
|
743
744
|
/*$$scope*/
|
|
744
745
|
e[8],
|
|
745
746
|
h,
|
|
746
|
-
|
|
747
|
-
) :
|
|
747
|
+
de
|
|
748
|
+
) : At(
|
|
748
749
|
/*$$scope*/
|
|
749
750
|
e[8]
|
|
750
751
|
),
|
|
751
|
-
|
|
752
|
+
dt
|
|
752
753
|
);
|
|
753
754
|
},
|
|
754
755
|
i(c) {
|
|
755
|
-
l || (
|
|
756
|
-
l && (s || (s =
|
|
756
|
+
l || (R(u, c), c && j(() => {
|
|
757
|
+
l && (s || (s = at(n, ft, { duration: (
|
|
757
758
|
/*duration*/
|
|
758
759
|
e[2]
|
|
759
760
|
) }, !0)), s.run(1));
|
|
760
761
|
}), l = !0);
|
|
761
762
|
},
|
|
762
763
|
o(c) {
|
|
763
|
-
X(u, c), c && (s || (s =
|
|
764
|
+
X(u, c), c && (s || (s = at(n, ft, { duration: (
|
|
764
765
|
/*duration*/
|
|
765
766
|
e[2]
|
|
766
767
|
) }, !1)), s.run(0)), l = !1;
|
|
@@ -770,10 +771,10 @@ function dt(e) {
|
|
|
770
771
|
}
|
|
771
772
|
};
|
|
772
773
|
}
|
|
773
|
-
function
|
|
774
|
+
function he(e) {
|
|
774
775
|
let t, n, i = (
|
|
775
776
|
/*show*/
|
|
776
|
-
e[5] &&
|
|
777
|
+
e[5] && ht(e)
|
|
777
778
|
);
|
|
778
779
|
return {
|
|
779
780
|
c() {
|
|
@@ -785,12 +786,12 @@ function ae(e) {
|
|
|
785
786
|
p(r, [s]) {
|
|
786
787
|
/*show*/
|
|
787
788
|
r[5] ? i ? (i.p(r, s), s & /*show*/
|
|
788
|
-
32 &&
|
|
789
|
+
32 && R(i, 1)) : (i = ht(r), i.c(), R(i, 1), i.m(t.parentNode, t)) : i && (ee(), X(i, 1, 1, () => {
|
|
789
790
|
i = null;
|
|
790
|
-
}),
|
|
791
|
+
}), ne());
|
|
791
792
|
},
|
|
792
793
|
i(r) {
|
|
793
|
-
n || (
|
|
794
|
+
n || (R(i), n = !0);
|
|
794
795
|
},
|
|
795
796
|
o(r) {
|
|
796
797
|
X(i), n = !1;
|
|
@@ -800,72 +801,72 @@ function ae(e) {
|
|
|
800
801
|
}
|
|
801
802
|
};
|
|
802
803
|
}
|
|
803
|
-
function
|
|
804
|
-
let { $$slots: i = {}, $$scope: r } = t, { clientstyling: s = "" } = t, { clientstylingurl: l = "" } = t, { duration: o =
|
|
804
|
+
function $e(e, t, n) {
|
|
805
|
+
let { $$slots: i = {}, $$scope: r } = t, { clientstyling: s = "" } = t, { clientstylingurl: l = "" } = t, { duration: o = 200 } = t, { width: u } = t, { height: c } = t, h, f, _ = !1;
|
|
805
806
|
const p = () => {
|
|
806
807
|
n(5, _ = !1), window.postMessage({ type: "ClosedCashierModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
807
|
-
}, d = (
|
|
808
|
-
|
|
809
|
-
},
|
|
810
|
-
let
|
|
811
|
-
|
|
808
|
+
}, d = (a) => {
|
|
809
|
+
a.data.type == "ShowCashierModal" && (n(5, _ = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), a.data.type == "HideCashierModal" && p();
|
|
810
|
+
}, g = () => {
|
|
811
|
+
let a = document.createElement("style");
|
|
812
|
+
a.innerHTML = s, f.appendChild(a);
|
|
812
813
|
}, $ = () => {
|
|
813
|
-
let
|
|
814
|
-
fetch(
|
|
815
|
-
|
|
814
|
+
let a = new URL(l), b = document.createElement("style");
|
|
815
|
+
fetch(a.href).then((z) => z.text()).then((z) => {
|
|
816
|
+
b.innerHTML = z, setTimeout(
|
|
816
817
|
() => {
|
|
817
|
-
|
|
818
|
+
f.appendChild(b);
|
|
818
819
|
},
|
|
819
820
|
1
|
|
820
821
|
);
|
|
821
822
|
});
|
|
822
823
|
};
|
|
823
|
-
|
|
824
|
+
Kt(() => (window.addEventListener("message", d, !1), () => {
|
|
824
825
|
window.removeEventListener("message", d);
|
|
825
826
|
}));
|
|
826
|
-
function
|
|
827
|
-
V[
|
|
828
|
-
h =
|
|
827
|
+
function w(a) {
|
|
828
|
+
V[a ? "unshift" : "push"](() => {
|
|
829
|
+
h = a, n(4, h);
|
|
829
830
|
});
|
|
830
831
|
}
|
|
831
832
|
function A() {
|
|
832
833
|
u = this.clientWidth, c = this.clientHeight, n(0, u), n(1, c);
|
|
833
834
|
}
|
|
834
|
-
function N(
|
|
835
|
-
V[
|
|
836
|
-
|
|
835
|
+
function N(a) {
|
|
836
|
+
V[a ? "unshift" : "push"](() => {
|
|
837
|
+
f = a, n(3, f);
|
|
837
838
|
});
|
|
838
839
|
}
|
|
839
|
-
return e.$$set = (
|
|
840
|
-
"clientstyling" in
|
|
840
|
+
return e.$$set = (a) => {
|
|
841
|
+
"clientstyling" in a && n(6, s = 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, r = a.$$scope);
|
|
841
842
|
}, e.$$.update = () => {
|
|
842
843
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
843
|
-
72 && s &&
|
|
844
|
-
136 && l &&
|
|
844
|
+
72 && s && f && g(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
845
|
+
136 && l && f && $();
|
|
845
846
|
}, [
|
|
846
847
|
u,
|
|
847
848
|
c,
|
|
848
849
|
o,
|
|
849
|
-
|
|
850
|
+
f,
|
|
850
851
|
h,
|
|
851
852
|
_,
|
|
852
853
|
s,
|
|
853
854
|
l,
|
|
854
855
|
r,
|
|
855
856
|
i,
|
|
856
|
-
|
|
857
|
+
w,
|
|
857
858
|
A,
|
|
858
859
|
N
|
|
859
860
|
];
|
|
860
861
|
}
|
|
861
|
-
class
|
|
862
|
+
class _e extends ue {
|
|
862
863
|
constructor(t) {
|
|
863
|
-
super(),
|
|
864
|
+
super(), le(
|
|
864
865
|
this,
|
|
865
866
|
t,
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
867
|
+
$e,
|
|
868
|
+
he,
|
|
869
|
+
kt,
|
|
869
870
|
{
|
|
870
871
|
clientstyling: 6,
|
|
871
872
|
clientstylingurl: 7,
|
|
@@ -880,34 +881,34 @@ class he extends ce {
|
|
|
880
881
|
return this.$$.ctx[6];
|
|
881
882
|
}
|
|
882
883
|
set clientstyling(t) {
|
|
883
|
-
this.$$set({ clientstyling: t }),
|
|
884
|
+
this.$$set({ clientstyling: t }), C();
|
|
884
885
|
}
|
|
885
886
|
get clientstylingurl() {
|
|
886
887
|
return this.$$.ctx[7];
|
|
887
888
|
}
|
|
888
889
|
set clientstylingurl(t) {
|
|
889
|
-
this.$$set({ clientstylingurl: t }),
|
|
890
|
+
this.$$set({ clientstylingurl: t }), C();
|
|
890
891
|
}
|
|
891
892
|
get duration() {
|
|
892
893
|
return this.$$.ctx[2];
|
|
893
894
|
}
|
|
894
895
|
set duration(t) {
|
|
895
|
-
this.$$set({ duration: t }),
|
|
896
|
+
this.$$set({ duration: t }), C();
|
|
896
897
|
}
|
|
897
898
|
get width() {
|
|
898
899
|
return this.$$.ctx[0];
|
|
899
900
|
}
|
|
900
901
|
set width(t) {
|
|
901
|
-
this.$$set({ width: t }),
|
|
902
|
+
this.$$set({ width: t }), C();
|
|
902
903
|
}
|
|
903
904
|
get height() {
|
|
904
905
|
return this.$$.ctx[1];
|
|
905
906
|
}
|
|
906
907
|
set height(t) {
|
|
907
|
-
this.$$set({ height: t }),
|
|
908
|
+
this.$$set({ height: t }), C();
|
|
908
909
|
}
|
|
909
910
|
}
|
|
910
|
-
|
|
911
|
+
ce(_e, { clientstyling: {}, clientstylingurl: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
|
|
911
912
|
export {
|
|
912
|
-
|
|
913
|
+
_e as default
|
|
913
914
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";var xt=Object.defineProperty,Ct=Object.defineProperties;var Et=Object.getOwnPropertyDescriptors;var nt=Object.getOwnPropertySymbols;var vt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable;var q=(e,t,n)=>t in e?xt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,it=(e,t)=>{for(var n in t||(t={}))vt.call(t,n)&&q(e,n,t[n]);if(nt)for(var n of nt(t))Mt.call(t,n)&&q(e,n,t[n]);return e},st=(e,t)=>Ct(e,Et(t));var m=(e,t,n)=>q(e,typeof t!="symbol"?t+"":t,n);var rt=(e,t,n)=>new Promise((i,r)=>{var s=u=>{try{o(n.next(u))}catch(c){r(c)}},l=u=>{try{o(n.throw(u))}catch(c){r(c)}},o=u=>u.done?i(u.value):Promise.resolve(u.value).then(s,l);o((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function W(){}const $t=e=>e;function kt(e,t){for(const n in t)e[n]=t[n];return e}function _t(e){return e()}function ot(){return Object.create(null)}function L(e){e.forEach(_t)}function Y(e){return typeof e=="function"}function St(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function jt(e){return Object.keys(e).length===0}function Lt(e,t,n,i){if(e){const r=gt(e,t,n,i);return e[0](r)}}function gt(e,t,n,i){return e[1]&&i?kt(n.ctx.slice(),e[1](i(t))):n.ctx}function Ot(e,t,n,i){if(e[2]&&i){const r=e[2](i(n));if(t.dirty===void 0)return r;if(typeof r=="object"){const s=[],l=Math.max(t.dirty.length,r.length);for(let o=0;o<l;o+=1)s[o]=t.dirty[o]|r[o];return s}return t.dirty|r}return t.dirty}function At(e,t,n,i,r,s){if(r){const l=gt(t,n,i,s);e.p(l,r)}}function Nt(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let i=0;i<n;i++)t[i]=-1;return t}return-1}const mt=typeof window!="undefined";let zt=mt?()=>window.performance.now():()=>Date.now(),Z=mt?e=>requestAnimationFrame(e):W;const k=new Set;function pt(e){k.forEach(t=>{t.c(e)||(k.delete(t),t.f())}),k.size!==0&&Z(pt)}function Pt(e){let t;return k.size===0&&Z(pt),{promise:new Promise(n=>{k.add(t={c:e,f:n})}),abort(){k.delete(t)}}}function F(e,t){e.appendChild(t)}function Bt(e,t,n){const i=tt(e);if(!i.getElementById(t)){const r=E("style");r.id=t,r.textContent=n,yt(i,r)}}function tt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Rt(e){const t=E("style");return t.textContent="/* empty */",yt(tt(e),t),t.sheet}function yt(e,t){return F(e.head||e,t),t.sheet}function et(e,t,n){e.insertBefore(t,n||null)}function O(e){e.parentNode&&e.parentNode.removeChild(e)}function E(e){return document.createElement(e)}function Wt(e){return document.createTextNode(e)}function Ht(){return Wt("")}function lt(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function x(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Tt(e){return Array.from(e.childNodes)}let T;function Dt(){if(T===void 0){T=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){T=!0}}return T}function It(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const i=E("iframe");i.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),i.setAttribute("aria-hidden","true"),i.tabIndex=-1;const r=Dt();let s;return r?(i.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=lt(window,"message",l=>{l.source===i.contentWindow&&t()})):(i.src="about:blank",i.onload=()=>{s=lt(i.contentWindow,"resize",t),t()}),F(e,i),()=>{(r||s&&i.contentWindow)&&s(),O(i)}}function Ft(e,t,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:i})}function Ut(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const U=new Map;let J=0;function Jt(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function Vt(e,t){const n={stylesheet:Rt(t),rules:{}};return U.set(e,n),n}function ct(e,t,n,i,r,s,l,o=0){const u=16.666/i;let c=`{
|
|
2
|
+
`;for(let $=0;$<=1;$+=u){const w=t+(n-t)*s($);c+=$*100+`%{${l(w,1-w)}}
|
|
3
|
+
`}const h=c+`100% {${l(n,1-n)}}
|
|
4
|
+
}`,f=`__svelte_${Jt(h)}_${o}`,_=tt(e),{stylesheet:p,rules:d}=U.get(_)||Vt(_,e);d[f]||(d[f]=!0,p.insertRule(`@keyframes ${f} ${h}`,p.cssRules.length));const g=e.style.animation||"";return e.style.animation=`${g?`${g}, `:""}${f} ${i}ms linear ${r}ms 1 both`,J+=1,f}function qt(e,t){const n=(e.style.animation||"").split(", "),i=n.filter(t?s=>s.indexOf(t)<0:s=>s.indexOf("__svelte")===-1),r=n.length-i.length;r&&(e.style.animation=i.join(", "),J-=r,J||Gt())}function Gt(){Z(()=>{J||(U.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&O(t)}),U.clear())})}let H;function B(e){H=e}function Kt(){if(!H)throw new Error("Function called outside component initialization");return H}function Qt(e){Kt().$$.on_mount.push(e)}const M=[],V=[];let S=[];const ut=[],Xt=Promise.resolve();let Q=!1;function Yt(){Q||(Q=!0,Xt.then(C))}function j(e){S.push(e)}const G=new Set;let v=0;function C(){if(v!==0)return;const e=H;do{try{for(;v<M.length;){const t=M[v];v++,B(t),Zt(t.$$)}}catch(t){throw M.length=0,v=0,t}for(B(null),M.length=0,v=0;V.length;)V.pop()();for(let t=0;t<S.length;t+=1){const n=S[t];G.has(n)||(G.add(n),n())}S.length=0}while(M.length);for(;ut.length;)ut.pop()();Q=!1,G.clear(),B(e)}function Zt(e){if(e.fragment!==null){e.update(),L(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(j)}}function te(e){const t=[],n=[];S.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),S=t}let P;function ee(){return P||(P=Promise.resolve(),P.then(()=>{P=null})),P}function K(e,t,n){e.dispatchEvent(Ft(`${t?"intro":"outro"}${n}`))}const D=new Set;let y;function ne(){y={r:0,c:[],p:y}}function ie(){y.r||L(y.c),y=y.p}function R(e,t){e&&e.i&&(D.delete(e),e.i(t))}function X(e,t,n,i){if(e&&e.o){if(D.has(e))return;D.add(e),y.c.push(()=>{D.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}const se={duration:0};function at(e,t,n,i){let s=t(e,n,{direction:"both"}),l=i?0:1,o=null,u=null,c=null,h;function f(){c&&qt(e,c)}function _(d,g){const $=d.b-l;return g*=Math.abs($),{a:l,b:d.b,d:$,duration:g,start:d.start,end:d.start+g,group:d.group}}function p(d){const{delay:g=0,duration:$=300,easing:w=$t,tick:A=W,css:N}=s||se,a={start:zt()+g,b:d};d||(a.group=y,y.r+=1),"inert"in e&&(d?h!==void 0&&(e.inert=h):(h=e.inert,e.inert=!0)),o||u?u=a:(N&&(f(),c=ct(e,l,d,$,g,w,N)),d&&A(0,1),o=_(a,$),j(()=>K(e,d,"start")),Pt(b=>{if(u&&b>u.start&&(o=_(u,$),u=null,K(e,o.b,"start"),N&&(f(),c=ct(e,l,o.b,o.duration,0,w,s.css))),o){if(b>=o.end)A(l=o.b,1-l),K(e,o.b,"end"),u||(o.b?f():--o.group.r||L(o.group.c)),o=null;else if(b>=o.start){const z=b-o.start;l=o.a+o.d*w(z/o.duration),A(l,1-l)}}return!!(o||u)}))}return{run(d){Y(s)?ee().then(()=>{s=s({direction:d?"in":"out"}),p(d)}):p(d)},end(){f(),o=u=null}}}function re(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),j(()=>{const s=e.$$.on_mount.map(_t).filter(Y);e.$$.on_destroy?e.$$.on_destroy.push(...s):L(s),e.$$.on_mount=[]}),r.forEach(j)}function oe(e,t){const n=e.$$;n.fragment!==null&&(te(n.after_update),L(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function le(e,t){e.$$.dirty[0]===-1&&(M.push(e),Yt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ce(e,t,n,i,r,s,l=null,o=[-1]){const u=H;B(e);const c=e.$$={fragment:null,ctx:[],props:s,update:W,not_equal:r,bound:ot(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:ot(),dirty:o,skip_bound:!1,root:t.target||u.$$.root};l&&l(c.root);let h=!1;if(c.ctx=n?n(e,t.props||{},(f,_,...p)=>{const d=p.length?p[0]:_;return c.ctx&&r(c.ctx[f],c.ctx[f]=d)&&(!c.skip_bound&&c.bound[f]&&c.bound[f](d),h&&le(e,f)),_}):[],c.update(),h=!0,L(c.before_update),c.fragment=i?i(c.ctx):!1,t.target){if(t.hydrate){const f=Tt(t.target);c.fragment&&c.fragment.l(f),f.forEach(O)}else c.fragment&&c.fragment.c();t.intro&&R(e.$$.fragment),re(e,t.target,t.anchor),C()}B(u)}let wt;typeof HTMLElement=="function"&&(wt=class extends HTMLElement{constructor(t,n,i){super();m(this,"$$ctor");m(this,"$$s");m(this,"$$c");m(this,"$$cn",!1);m(this,"$$d",{});m(this,"$$r",!1);m(this,"$$p_d",{});m(this,"$$l",{});m(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}connectedCallback(){return rt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let l;return{c:function(){l=E("slot"),s!=="default"&&x(l,"name",s)},m:function(c,h){et(c,l,h)},d:function(c){c&&O(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Ut(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=I(l,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:st(it({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const l=I(s,this.$$d[s],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,l)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const l of this.$$l[s]){const o=this.$$c.$on(s,l);this.$$l_u.set(l,o)}this.$$l={}}})}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=I(t,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function I(e,t,n,i){var s;const r=(s=n[e])==null?void 0:s.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ue(e,t,n,i,r,s){let l=class extends wt{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Object.keys(t).forEach(o=>{Object.defineProperty(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){var c;u=I(o,u,t),this.$$d[o]=u,(c=this.$$c)==null||c.$set({[o]:u})}})}),i.forEach(o=>{Object.defineProperty(l.prototype,o,{get(){var u;return(u=this.$$c)==null?void 0:u[o]}})}),e.element=l,l}class ae{constructor(){m(this,"$$");m(this,"$$set")}$destroy(){oe(this,1),this.$destroy=W}$on(t,n){if(!Y(n))return W;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!jt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const fe="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(fe);function ft(e,{delay:t=0,duration:n=400,easing:i=$t}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:i,css:s=>`opacity: ${s*r}`}}function de(e){Bt(e,"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}}")}const he=e=>({}),dt=e=>({});function ht(e){let t,n,i,r,s,l;const o=e[9].content,u=Lt(o,e,e[8],dt);return{c(){t=E("div"),n=E("div"),i=E("div"),u&&u.c(),x(i,"class","ModalContainer"),x(i,"part","ModalContainer"),x(n,"class","ModalWindow"),x(n,"part","ModalWindow"),x(n,"id","Modal"),j(()=>e[11].call(n)),x(t,"part","CustomStylingContainer")},m(c,h){et(c,t,h),F(t,n),F(n,i),u&&u.m(i,null),e[10](n),r=It(n,e[11].bind(n)),e[12](t),l=!0},p(c,h){e=c,u&&u.p&&(!l||h&256)&&At(u,o,e,e[8],l?Ot(o,e[8],h,he):Nt(e[8]),dt)},i(c){l||(R(u,c),c&&j(()=>{l&&(s||(s=at(n,ft,{duration:e[2]},!0)),s.run(1))}),l=!0)},o(c){X(u,c),c&&(s||(s=at(n,ft,{duration:e[2]},!1)),s.run(0)),l=!1},d(c){c&&O(t),u&&u.d(c),e[10](null),r(),c&&s&&s.end(),e[12](null)}}}function $e(e){let t,n,i=e[5]&&ht(e);return{c(){i&&i.c(),t=Ht()},m(r,s){i&&i.m(r,s),et(r,t,s),n=!0},p(r,[s]){r[5]?i?(i.p(r,s),s&32&&R(i,1)):(i=ht(r),i.c(),R(i,1),i.m(t.parentNode,t)):i&&(ne(),X(i,1,1,()=>{i=null}),ie())},i(r){n||(R(i),n=!0)},o(r){X(i),n=!1},d(r){r&&O(t),i&&i.d(r)}}}function _e(e,t,n){let{$$slots:i={},$$scope:r}=t,{clientstyling:s=""}=t,{clientstylingurl:l=""}=t,{duration:o=200}=t,{width:u}=t,{height:c}=t,h,f,_=!1;const p=()=>{n(5,_=!1),window.postMessage({type:"ClosedCashierModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},d=a=>{a.data.type=="ShowCashierModal"&&(n(5,_=!0),window.postMessage({type:"DisableScroll"},window.location.href)),a.data.type=="HideCashierModal"&&p()},g=()=>{let a=document.createElement("style");a.innerHTML=s,f.appendChild(a)},$=()=>{let a=new URL(l),b=document.createElement("style");fetch(a.href).then(z=>z.text()).then(z=>{b.innerHTML=z,setTimeout(()=>{f.appendChild(b)},1)})};Qt(()=>(window.addEventListener("message",d,!1),()=>{window.removeEventListener("message",d)}));function w(a){V[a?"unshift":"push"](()=>{h=a,n(4,h)})}function A(){u=this.clientWidth,c=this.clientHeight,n(0,u),n(1,c)}function N(a){V[a?"unshift":"push"](()=>{f=a,n(3,f)})}return e.$$set=a=>{"clientstyling"in a&&n(6,s=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,r=a.$$scope)},e.$$.update=()=>{e.$$.dirty&72&&s&&f&&g(),e.$$.dirty&136&&l&&f&&$()},[u,c,o,f,h,_,s,l,r,i,w,A,N]}class bt extends ae{constructor(t){super(),ce(this,t,_e,$e,St,{clientstyling:6,clientstylingurl:7,duration:2,width:0,height:1},de)}get clientstyling(){return this.$$.ctx[6]}set clientstyling(t){this.$$set({clientstyling:t}),C()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),C()}get duration(){return this.$$.ctx[2]}set duration(t){this.$$set({duration:t}),C()}get width(){return this.$$.ctx[0]}set width(t){this.$$set({width:t}),C()}get height(){return this.$$.ctx[1]}set height(t){this.$$set({height:t}),C()}}ue(bt,{clientstyling:{},clientstylingurl:{},duration:{},width:{},height:{}},["content"],[],!0);exports.default=bt;
|
package/es2015/cashier-modal.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierModal-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierModal-DHBJtzxv.cjs")).then(({default:t})=>{!customElements.get("cashier-modal")&&customElements.define("cashier-modal",t.element)})}
|
package/es2015/cashier-modal.js
CHANGED
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CashierModal-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CashierModal-8bnrkIFI.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("cashier-modal") && customElements.define("cashier-modal", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/cashier-modal",
|
|
3
|
-
"version": "1.45.
|
|
3
|
+
"version": "1.45.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "es2015/cashier-modal.cjs",
|
|
6
6
|
"module": "es2015/cashier-modal.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"./es2015/cashier-modal.cjs": "./es2015/cashier-modal.cjs"
|
|
13
13
|
},
|
|
14
|
-
|
|
14
|
+
"files": [
|
|
15
15
|
"es2015/",
|
|
16
16
|
"components"
|
|
17
17
|
],
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";var bt=Object.defineProperty,vt=Object.defineProperties;var xt=Object.getOwnPropertyDescriptors;var nt=Object.getOwnPropertySymbols;var Ct=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable;var q=(e,t,n)=>t in e?bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,it=(e,t)=>{for(var n in t||(t={}))Ct.call(t,n)&&q(e,n,t[n]);if(nt)for(var n of nt(t))Et.call(t,n)&&q(e,n,t[n]);return e},st=(e,t)=>vt(e,xt(t));var g=(e,t,n)=>q(e,typeof t!="symbol"?t+"":t,n);var rt=(e,t,n)=>new Promise((i,r)=>{var s=u=>{try{o(n.next(u))}catch(c){r(c)}},l=u=>{try{o(n.throw(u))}catch(c){r(c)}},o=u=>u.done?i(u.value):Promise.resolve(u.value).then(s,l);o((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function H(){}const ht=e=>e;function Mt(e,t){for(const n in t)e[n]=t[n];return e}function $t(e){return e()}function ot(){return Object.create(null)}function L(e){e.forEach($t)}function Y(e){return typeof e=="function"}function kt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function St(e){return Object.keys(e).length===0}function jt(e,t,n,i){if(e){const r=_t(e,t,n,i);return e[0](r)}}function _t(e,t,n,i){return e[1]&&i?Mt(n.ctx.slice(),e[1](i(t))):n.ctx}function Lt(e,t,n,i){if(e[2]&&i){const r=e[2](i(n));if(t.dirty===void 0)return r;if(typeof r=="object"){const s=[],l=Math.max(t.dirty.length,r.length);for(let o=0;o<l;o+=1)s[o]=t.dirty[o]|r[o];return s}return t.dirty|r}return t.dirty}function Ot(e,t,n,i,r,s){if(r){const l=_t(t,n,i,s);e.p(l,r)}}function At(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let i=0;i<n;i++)t[i]=-1;return t}return-1}const mt=typeof window!="undefined";let Nt=mt?()=>window.performance.now():()=>Date.now(),Z=mt?e=>requestAnimationFrame(e):H;const k=new Set;function gt(e){k.forEach(t=>{t.c(e)||(k.delete(t),t.f())}),k.size!==0&&Z(gt)}function zt(e){let t;return k.size===0&&Z(gt),{promise:new Promise(n=>{k.add(t={c:e,f:n})}),abort(){k.delete(t)}}}function F(e,t){e.appendChild(t)}function Pt(e,t,n){const i=tt(e);if(!i.getElementById(t)){const r=C("style");r.id=t,r.textContent=n,pt(i,r)}}function tt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Rt(e){const t=C("style");return t.textContent="/* empty */",pt(tt(e),t),t.sheet}function pt(e,t){return F(e.head||e,t),t.sheet}function et(e,t,n){e.insertBefore(t,n||null)}function O(e){e.parentNode&&e.parentNode.removeChild(e)}function C(e){return document.createElement(e)}function Wt(e){return document.createTextNode(e)}function Ht(){return Wt("")}function lt(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function b(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Tt(e){return Array.from(e.childNodes)}let B;function Bt(){if(B===void 0){B=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){B=!0}}return B}function Dt(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const i=C("iframe");i.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),i.setAttribute("aria-hidden","true"),i.tabIndex=-1;const r=Bt();let s;return r?(i.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=lt(window,"message",l=>{l.source===i.contentWindow&&t()})):(i.src="about:blank",i.onload=()=>{s=lt(i.contentWindow,"resize",t),t()}),F(e,i),()=>{(r||s&&i.contentWindow)&&s(),O(i)}}function It(e,t,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:i})}function Ft(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const U=new Map;let J=0;function Ut(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function Jt(e,t){const n={stylesheet:Rt(t),rules:{}};return U.set(e,n),n}function ct(e,t,n,i,r,s,l,o=0){const u=16.666/i;let c=`{
|
|
2
|
-
`;for(let $=0;$<=1;$+=u){const w=t+(n-t)*s($);c+=$*100+`%{${l(w,1-w)}}
|
|
3
|
-
`}const h=c+`100% {${l(n,1-n)}}
|
|
4
|
-
}`,a=`__svelte_${Ut(h)}_${o}`,_=tt(e),{stylesheet:p,rules:d}=U.get(_)||Jt(_,e);d[a]||(d[a]=!0,p.insertRule(`@keyframes ${a} ${h}`,p.cssRules.length));const m=e.style.animation||"";return e.style.animation=`${m?`${m}, `:""}${a} ${i}ms linear ${r}ms 1 both`,J+=1,a}function Vt(e,t){const n=(e.style.animation||"").split(", "),i=n.filter(t?s=>s.indexOf(t)<0:s=>s.indexOf("__svelte")===-1),r=n.length-i.length;r&&(e.style.animation=i.join(", "),J-=r,J||qt())}function qt(){Z(()=>{J||(U.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&O(t)}),U.clear())})}let T;function R(e){T=e}function Gt(){if(!T)throw new Error("Function called outside component initialization");return T}function Kt(e){Gt().$$.on_mount.push(e)}const M=[],V=[];let S=[];const ut=[],Qt=Promise.resolve();let Q=!1;function Xt(){Q||(Q=!0,Qt.then(x))}function j(e){S.push(e)}const G=new Set;let E=0;function x(){if(E!==0)return;const e=T;do{try{for(;E<M.length;){const t=M[E];E++,R(t),Yt(t.$$)}}catch(t){throw M.length=0,E=0,t}for(R(null),M.length=0,E=0;V.length;)V.pop()();for(let t=0;t<S.length;t+=1){const n=S[t];G.has(n)||(G.add(n),n())}S.length=0}while(M.length);for(;ut.length;)ut.pop()();Q=!1,G.clear(),R(e)}function Yt(e){if(e.fragment!==null){e.update(),L(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(j)}}function Zt(e){const t=[],n=[];S.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),S=t}let P;function te(){return P||(P=Promise.resolve(),P.then(()=>{P=null})),P}function K(e,t,n){e.dispatchEvent(It(`${t?"intro":"outro"}${n}`))}const D=new Set;let y;function ee(){y={r:0,c:[],p:y}}function ne(){y.r||L(y.c),y=y.p}function W(e,t){e&&e.i&&(D.delete(e),e.i(t))}function X(e,t,n,i){if(e&&e.o){if(D.has(e))return;D.add(e),y.c.push(()=>{D.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}const ie={duration:0};function ft(e,t,n,i){let s=t(e,n,{direction:"both"}),l=i?0:1,o=null,u=null,c=null,h;function a(){c&&Vt(e,c)}function _(d,m){const $=d.b-l;return m*=Math.abs($),{a:l,b:d.b,d:$,duration:m,start:d.start,end:d.start+m,group:d.group}}function p(d){const{delay:m=0,duration:$=300,easing:w=ht,tick:A=H,css:N}=s||ie,f={start:Nt()+m,b:d};d||(f.group=y,y.r+=1),"inert"in e&&(d?h!==void 0&&(e.inert=h):(h=e.inert,e.inert=!0)),o||u?u=f:(N&&(a(),c=ct(e,l,d,$,m,w,N)),d&&A(0,1),o=_(f,$),j(()=>K(e,d,"start")),zt(v=>{if(u&&v>u.start&&(o=_(u,$),u=null,K(e,o.b,"start"),N&&(a(),c=ct(e,l,o.b,o.duration,0,w,s.css))),o){if(v>=o.end)A(l=o.b,1-l),K(e,o.b,"end"),u||(o.b?a():--o.group.r||L(o.group.c)),o=null;else if(v>=o.start){const z=v-o.start;l=o.a+o.d*w(z/o.duration),A(l,1-l)}}return!!(o||u)}))}return{run(d){Y(s)?te().then(()=>{s=s({direction:d?"in":"out"}),p(d)}):p(d)},end(){a(),o=u=null}}}function se(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),j(()=>{const s=e.$$.on_mount.map($t).filter(Y);e.$$.on_destroy?e.$$.on_destroy.push(...s):L(s),e.$$.on_mount=[]}),r.forEach(j)}function re(e,t){const n=e.$$;n.fragment!==null&&(Zt(n.after_update),L(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function oe(e,t){e.$$.dirty[0]===-1&&(M.push(e),Xt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function le(e,t,n,i,r,s,l=null,o=[-1]){const u=T;R(e);const c=e.$$={fragment:null,ctx:[],props:s,update:H,not_equal:r,bound:ot(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:ot(),dirty:o,skip_bound:!1,root:t.target||u.$$.root};l&&l(c.root);let h=!1;if(c.ctx=n?n(e,t.props||{},(a,_,...p)=>{const d=p.length?p[0]:_;return c.ctx&&r(c.ctx[a],c.ctx[a]=d)&&(!c.skip_bound&&c.bound[a]&&c.bound[a](d),h&&oe(e,a)),_}):[],c.update(),h=!0,L(c.before_update),c.fragment=i?i(c.ctx):!1,t.target){if(t.hydrate){const a=Tt(t.target);c.fragment&&c.fragment.l(a),a.forEach(O)}else c.fragment&&c.fragment.c();t.intro&&W(e.$$.fragment),se(e,t.target,t.anchor),x()}R(u)}let yt;typeof HTMLElement=="function"&&(yt=class extends HTMLElement{constructor(t,n,i){super();g(this,"$$ctor");g(this,"$$s");g(this,"$$c");g(this,"$$cn",!1);g(this,"$$d",{});g(this,"$$r",!1);g(this,"$$p_d",{});g(this,"$$l",{});g(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}connectedCallback(){return rt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let l;return{c:function(){l=C("slot"),s!=="default"&&b(l,"name",s)},m:function(c,h){et(c,l,h)},d:function(c){c&&O(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Ft(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=I(l,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:st(it({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const l=I(s,this.$$d[s],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,l)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const l of this.$$l[s]){const o=this.$$c.$on(s,l);this.$$l_u.set(l,o)}this.$$l={}}})}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=I(t,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function I(e,t,n,i){var s;const r=(s=n[e])==null?void 0:s.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ce(e,t,n,i,r,s){let l=class extends yt{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Object.keys(t).forEach(o=>{Object.defineProperty(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){var c;u=I(o,u,t),this.$$d[o]=u,(c=this.$$c)==null||c.$set({[o]:u})}})}),i.forEach(o=>{Object.defineProperty(l.prototype,o,{get(){var u;return(u=this.$$c)==null?void 0:u[o]}})}),e.element=l,l}class ue{constructor(){g(this,"$$");g(this,"$$set")}$destroy(){re(this,1),this.$destroy=H}$on(t,n){if(!Y(n))return H;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!St(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const fe="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(fe);function at(e,{delay:t=0,duration:n=400,easing:i=ht}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:i,css:s=>`opacity: ${s*r}`}}function ae(e){Pt(e,"svelte-1mtwlr2",".svelte-1mtwlr2.svelte-1mtwlr2,.svelte-1mtwlr2.svelte-1mtwlr2::before,.svelte-1mtwlr2.svelte-1mtwlr2::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow.svelte-1mtwlr2.svelte-1mtwlr2{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.svelte-1mtwlr2.svelte-1mtwlr2{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);padding:var(--emw--spacing-large, 20px);width:400px}@container modal-window (max-width:750px){.ModalWindow.svelte-1mtwlr2 .ModalContainer.svelte-1mtwlr2{width:90%;max-width:400px}}")}function dt(e){let t,n,i,r,s,l;const o=e[9].default,u=jt(o,e,e[8],null);return{c(){t=C("div"),n=C("div"),i=C("div"),u&&u.c(),b(i,"class","ModalContainer svelte-1mtwlr2"),b(i,"part","ModalContainer"),b(n,"class","ModalWindow svelte-1mtwlr2"),b(n,"part","ModalWindow"),b(n,"id","Modal"),j(()=>e[11].call(n)),b(t,"part","CustomStylingContainer"),b(t,"class","svelte-1mtwlr2")},m(c,h){et(c,t,h),F(t,n),F(n,i),u&&u.m(i,null),e[10](n),r=Dt(n,e[11].bind(n)),e[12](t),l=!0},p(c,h){e=c,u&&u.p&&(!l||h&256)&&Ot(u,o,e,e[8],l?Lt(o,e[8],h,null):At(e[8]),null)},i(c){l||(W(u,c),c&&j(()=>{l&&(s||(s=ft(n,at,{transitionDuration:e[2]},!0)),s.run(1))}),l=!0)},o(c){X(u,c),c&&(s||(s=ft(n,at,{transitionDuration:e[2]},!1)),s.run(0)),l=!1},d(c){c&&O(t),u&&u.d(c),e[10](null),r(),c&&s&&s.end(),e[12](null)}}}function de(e){let t,n,i=e[5]&&dt(e);return{c(){i&&i.c(),t=Ht()},m(r,s){i&&i.m(r,s),et(r,t,s),n=!0},p(r,[s]){r[5]?i?(i.p(r,s),s&32&&W(i,1)):(i=dt(r),i.c(),W(i,1),i.m(t.parentNode,t)):i&&(ee(),X(i,1,1,()=>{i=null}),ne())},i(r){n||(W(i),n=!0)},o(r){X(i),n=!1},d(r){r&&O(t),i&&i.d(r)}}}function he(e,t,n){let{$$slots:i={},$$scope:r}=t,{clientstyling:s=""}=t,{clientstylingurl:l=""}=t,{duration:o="5ms"}=t,{width:u}=t,{height:c}=t,h,a,_=!1;const p=()=>{n(5,_=!1),window.postMessage({type:"ClosedCashierModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},d=f=>{f.data.type=="ShowCashierModal"&&(n(5,_=!0),window.postMessage({type:"DisableScroll"},window.location.href)),f.data.type=="HideCashierModal"&&p()},m=()=>{let f=document.createElement("style");f.innerHTML=s,a.appendChild(f)},$=()=>{let f=new URL(l),v=document.createElement("style");fetch(f.href).then(z=>z.text()).then(z=>{v.innerHTML=z,setTimeout(()=>{a.appendChild(v)},1)})};Kt(()=>(window.addEventListener("message",d,!1),()=>{window.removeEventListener("message",d)}));function w(f){V[f?"unshift":"push"](()=>{h=f,n(4,h)})}function A(){u=this.clientWidth,c=this.clientHeight,n(0,u),n(1,c)}function N(f){V[f?"unshift":"push"](()=>{a=f,n(3,a)})}return e.$$set=f=>{"clientstyling"in f&&n(6,s=f.clientstyling),"clientstylingurl"in f&&n(7,l=f.clientstylingurl),"duration"in f&&n(2,o=f.duration),"width"in f&&n(0,u=f.width),"height"in f&&n(1,c=f.height),"$$scope"in f&&n(8,r=f.$$scope)},e.$$.update=()=>{e.$$.dirty&72&&s&&a&&m(),e.$$.dirty&136&&l&&a&&$()},[u,c,o,a,h,_,s,l,r,i,w,A,N]}class wt extends ue{constructor(t){super(),le(this,t,he,de,kt,{clientstyling:6,clientstylingurl:7,duration:2,width:0,height:1},ae)}get clientstyling(){return this.$$.ctx[6]}set clientstyling(t){this.$$set({clientstyling:t}),x()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),x()}get duration(){return this.$$.ctx[2]}set duration(t){this.$$set({duration:t}),x()}get width(){return this.$$.ctx[0]}set width(t){this.$$set({width:t}),x()}get height(){return this.$$.ctx[1]}set height(t){this.$$set({height:t}),x()}}ce(wt,{clientstyling:{},clientstylingurl:{},duration:{},width:{},height:{}},["default"],[],!0);exports.default=wt;
|