@everymatrix/cashier-modal 1.65.2 → 1.65.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierModal-h_mBPMEv.js → CashierModal-D6bVcmwu.js} +64 -64
- package/components/{CashierModal-C5A6rF4K.js → CashierModal-DUBIli2d.js} +81 -81
- package/components/CashierModal-omkRoYg2.cjs +4 -0
- package/es2015/cashier-modal.cjs +1 -1
- package/es2015/cashier-modal.js +1 -1
- package/esnext/cashier-modal.js +1 -1
- package/package.json +1 -1
- package/components/CashierModal-D4w4G_Z-.cjs +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function R() {
|
|
2
2
|
}
|
|
3
|
-
const
|
|
3
|
+
const lt = (t) => t;
|
|
4
4
|
function _t(t, e) {
|
|
5
5
|
for (const n in e)
|
|
6
6
|
t[n] = e[n];
|
|
@@ -42,8 +42,8 @@ function yt(t, e, n, i) {
|
|
|
42
42
|
if (e.dirty === void 0)
|
|
43
43
|
return s;
|
|
44
44
|
if (typeof s == "object") {
|
|
45
|
-
const r = [],
|
|
46
|
-
for (let o = 0; o <
|
|
45
|
+
const r = [], l = Math.max(e.dirty.length, s.length);
|
|
46
|
+
for (let o = 0; o < l; o += 1)
|
|
47
47
|
r[o] = e.dirty[o] | s[o];
|
|
48
48
|
return r;
|
|
49
49
|
}
|
|
@@ -53,8 +53,8 @@ function yt(t, e, n, i) {
|
|
|
53
53
|
}
|
|
54
54
|
function wt(t, e, n, i, s, r) {
|
|
55
55
|
if (s) {
|
|
56
|
-
const
|
|
57
|
-
t.p(
|
|
56
|
+
const l = at(e, n, i, r);
|
|
57
|
+
t.p(l, s);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
function bt(t) {
|
|
@@ -165,8 +165,8 @@ function Lt(t, e) {
|
|
|
165
165
|
window,
|
|
166
166
|
"message",
|
|
167
167
|
/** @param {MessageEvent} event */
|
|
168
|
-
(
|
|
169
|
-
|
|
168
|
+
(l) => {
|
|
169
|
+
l.source === i.contentWindow && e();
|
|
170
170
|
}
|
|
171
171
|
)) : (i.src = "about:blank", i.onload = () => {
|
|
172
172
|
r = et(i.contentWindow, "resize", e), e();
|
|
@@ -198,16 +198,16 @@ function zt(t, e) {
|
|
|
198
198
|
const n = { stylesheet: vt(e), rules: {} };
|
|
199
199
|
return F.set(t, n), n;
|
|
200
200
|
}
|
|
201
|
-
function nt(t, e, n, i, s, r,
|
|
201
|
+
function nt(t, e, n, i, s, r, l, o = 0) {
|
|
202
202
|
const u = 16.666 / i;
|
|
203
|
-
let
|
|
203
|
+
let c = `{
|
|
204
204
|
`;
|
|
205
205
|
for (let $ = 0; $ <= 1; $ += u) {
|
|
206
206
|
const y = e + (n - e) * r($);
|
|
207
|
-
|
|
207
|
+
c += $ * 100 + `%{${l(y, 1 - y)}}
|
|
208
208
|
`;
|
|
209
209
|
}
|
|
210
|
-
const h =
|
|
210
|
+
const h = c + `100% {${l(n, 1 - n)}}
|
|
211
211
|
}`, f = `__svelte_${Nt(h)}_${o}`, _ = Y(t), { stylesheet: m, rules: d } = F.get(_) || zt(_, t);
|
|
212
212
|
d[f] || (d[f] = !0, m.insertRule(`@keyframes ${f} ${h}`, m.cssRules.length));
|
|
213
213
|
const g = t.style.animation || "";
|
|
@@ -325,17 +325,17 @@ function K(t, e, n, i) {
|
|
|
325
325
|
}
|
|
326
326
|
const Vt = { duration: 0 };
|
|
327
327
|
function st(t, e, n, i) {
|
|
328
|
-
let r = e(t, n, { direction: "both" }),
|
|
328
|
+
let r = e(t, n, { direction: "both" }), l = i ? 0 : 1, o = null, u = null, c = null, h;
|
|
329
329
|
function f() {
|
|
330
|
-
|
|
330
|
+
c && Pt(t, c);
|
|
331
331
|
}
|
|
332
332
|
function _(d, g) {
|
|
333
333
|
const $ = (
|
|
334
334
|
/** @type {Program['d']} */
|
|
335
|
-
d.b -
|
|
335
|
+
d.b - l
|
|
336
336
|
);
|
|
337
337
|
return g *= Math.abs($), {
|
|
338
|
-
a:
|
|
338
|
+
a: l,
|
|
339
339
|
b: d.b,
|
|
340
340
|
d: $,
|
|
341
341
|
duration: g,
|
|
@@ -348,7 +348,7 @@ function st(t, e, n, i) {
|
|
|
348
348
|
const {
|
|
349
349
|
delay: g = 0,
|
|
350
350
|
duration: $ = 300,
|
|
351
|
-
easing: y =
|
|
351
|
+
easing: y = lt,
|
|
352
352
|
tick: O = R,
|
|
353
353
|
css: A
|
|
354
354
|
} = r || Vt, a = {
|
|
@@ -356,10 +356,10 @@ function st(t, e, n, i) {
|
|
|
356
356
|
b: d
|
|
357
357
|
};
|
|
358
358
|
d || (a.group = p, p.r += 1), "inert" in t && (d ? h !== void 0 && (t.inert = h) : (h = /** @type {HTMLElement} */
|
|
359
|
-
t.inert, t.inert = !0)), o || u ? u = a : (A && (f(),
|
|
360
|
-
if (u && w > u.start && (o = _(u, $), u = null, q(t, o.b, "start"), A && (f(),
|
|
359
|
+
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) => {
|
|
360
|
+
if (u && w > u.start && (o = _(u, $), u = null, q(t, o.b, "start"), A && (f(), c = nt(
|
|
361
361
|
t,
|
|
362
|
-
|
|
362
|
+
l,
|
|
363
363
|
o.b,
|
|
364
364
|
o.duration,
|
|
365
365
|
0,
|
|
@@ -367,10 +367,10 @@ function st(t, e, n, i) {
|
|
|
367
367
|
r.css
|
|
368
368
|
))), o) {
|
|
369
369
|
if (w >= o.end)
|
|
370
|
-
O(
|
|
370
|
+
O(l = o.b, 1 - l), q(t, o.b, "end"), u || (o.b ? f() : --o.group.r || j(o.group.c)), o = null;
|
|
371
371
|
else if (w >= o.start) {
|
|
372
372
|
const N = w - o.start;
|
|
373
|
-
|
|
373
|
+
l = o.a + o.d * y(N / o.duration), O(l, 1 - l);
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
return !!(o || u);
|
|
@@ -401,10 +401,10 @@ function Gt(t, e) {
|
|
|
401
401
|
function Kt(t, e) {
|
|
402
402
|
t.$$.dirty[0] === -1 && (v.push(t), Tt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
403
403
|
}
|
|
404
|
-
function Qt(t, e, n, i, s, r,
|
|
404
|
+
function Qt(t, e, n, i, s, r, l = null, o = [-1]) {
|
|
405
405
|
const u = W;
|
|
406
406
|
P(t);
|
|
407
|
-
const
|
|
407
|
+
const c = t.$$ = {
|
|
408
408
|
fragment: null,
|
|
409
409
|
ctx: [],
|
|
410
410
|
// state
|
|
@@ -425,17 +425,17 @@ function Qt(t, e, n, i, s, r, c = null, o = [-1]) {
|
|
|
425
425
|
skip_bound: !1,
|
|
426
426
|
root: e.target || u.$$.root
|
|
427
427
|
};
|
|
428
|
-
|
|
428
|
+
l && l(c.root);
|
|
429
429
|
let h = !1;
|
|
430
|
-
if (
|
|
430
|
+
if (c.ctx = n(t, e.props || {}, (f, _, ...m) => {
|
|
431
431
|
const d = m.length ? m[0] : _;
|
|
432
|
-
return
|
|
433
|
-
})
|
|
432
|
+
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)), _;
|
|
433
|
+
}), c.update(), h = !0, j(c.before_update), c.fragment = i(c.ctx), e.target) {
|
|
434
434
|
if (e.hydrate) {
|
|
435
435
|
const f = St(e.target);
|
|
436
|
-
|
|
436
|
+
c.fragment && c.fragment.l(f), f.forEach(L);
|
|
437
437
|
} else
|
|
438
|
-
|
|
438
|
+
c.fragment && c.fragment.c();
|
|
439
439
|
e.intro && B(t.$$.fragment), qt(t, e.target, e.anchor), x();
|
|
440
440
|
}
|
|
441
441
|
P(u);
|
|
@@ -489,8 +489,8 @@ typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
|
489
489
|
* @param {HTMLElement} target
|
|
490
490
|
* @param {HTMLElement} [anchor]
|
|
491
491
|
*/
|
|
492
|
-
m: function(u,
|
|
493
|
-
Z(u, r,
|
|
492
|
+
m: function(u, c) {
|
|
493
|
+
Z(u, r, c);
|
|
494
494
|
},
|
|
495
495
|
d: function(u) {
|
|
496
496
|
u && L(r);
|
|
@@ -536,8 +536,8 @@ typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
|
536
536
|
this.$$c.$$.after_update.push(i), i();
|
|
537
537
|
for (const s in this.$$l)
|
|
538
538
|
for (const r of this.$$l[s]) {
|
|
539
|
-
const
|
|
540
|
-
this.$$l_u.set(r,
|
|
539
|
+
const l = this.$$c.$on(s, r);
|
|
540
|
+
this.$$l_u.set(r, l);
|
|
541
541
|
}
|
|
542
542
|
this.$$l = {};
|
|
543
543
|
}
|
|
@@ -588,7 +588,7 @@ function D(t, e, n, i) {
|
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
590
|
function Xt(t, e, n, i, s, r) {
|
|
591
|
-
let
|
|
591
|
+
let l = class extends $t {
|
|
592
592
|
constructor() {
|
|
593
593
|
super(t, n, s), this.$$p_d = e;
|
|
594
594
|
}
|
|
@@ -599,7 +599,7 @@ function Xt(t, e, n, i, s, r) {
|
|
|
599
599
|
}
|
|
600
600
|
};
|
|
601
601
|
return Object.keys(e).forEach((o) => {
|
|
602
|
-
Object.defineProperty(
|
|
602
|
+
Object.defineProperty(l.prototype, o, {
|
|
603
603
|
get() {
|
|
604
604
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
605
605
|
},
|
|
@@ -608,13 +608,13 @@ function Xt(t, e, n, i, s, r) {
|
|
|
608
608
|
}
|
|
609
609
|
});
|
|
610
610
|
}), i.forEach((o) => {
|
|
611
|
-
Object.defineProperty(
|
|
611
|
+
Object.defineProperty(l.prototype, o, {
|
|
612
612
|
get() {
|
|
613
613
|
return this.$$c?.[o];
|
|
614
614
|
}
|
|
615
615
|
});
|
|
616
616
|
}), t.element = /** @type {any} */
|
|
617
|
-
|
|
617
|
+
l, l;
|
|
618
618
|
}
|
|
619
619
|
class Yt {
|
|
620
620
|
/**
|
|
@@ -662,7 +662,7 @@ class Yt {
|
|
|
662
662
|
}
|
|
663
663
|
const Zt = "4";
|
|
664
664
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Zt);
|
|
665
|
-
function rt(t, { delay: e = 0, duration: n = 400, easing: i =
|
|
665
|
+
function rt(t, { delay: e = 0, duration: n = 400, easing: i = lt } = {}) {
|
|
666
666
|
const s = +getComputedStyle(t).opacity;
|
|
667
667
|
return {
|
|
668
668
|
delay: e,
|
|
@@ -675,8 +675,8 @@ function te(t) {
|
|
|
675
675
|
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}}");
|
|
676
676
|
}
|
|
677
677
|
const ee = (t) => ({}), ot = (t) => ({});
|
|
678
|
-
function
|
|
679
|
-
let e, n, i, s, r,
|
|
678
|
+
function ct(t) {
|
|
679
|
+
let e, n, i, s, r, l;
|
|
680
680
|
const o = (
|
|
681
681
|
/*#slots*/
|
|
682
682
|
t[9].content
|
|
@@ -694,22 +694,22 @@ function lt(t) {
|
|
|
694
694
|
t[11].call(n)
|
|
695
695
|
)), b(e, "part", "CustomStylingContainer");
|
|
696
696
|
},
|
|
697
|
-
m(
|
|
698
|
-
Z(
|
|
697
|
+
m(c, h) {
|
|
698
|
+
Z(c, e, h), I(e, n), I(n, i), u && u.m(i, null), t[10](n), s = Lt(
|
|
699
699
|
n,
|
|
700
700
|
/*div1_elementresize_handler*/
|
|
701
701
|
t[11].bind(n)
|
|
702
|
-
), t[12](e),
|
|
702
|
+
), t[12](e), l = !0;
|
|
703
703
|
},
|
|
704
|
-
p(
|
|
705
|
-
t =
|
|
704
|
+
p(c, h) {
|
|
705
|
+
t = c, u && u.p && (!l || h & /*$$scope*/
|
|
706
706
|
256) && wt(
|
|
707
707
|
u,
|
|
708
708
|
o,
|
|
709
709
|
t,
|
|
710
710
|
/*$$scope*/
|
|
711
711
|
t[8],
|
|
712
|
-
|
|
712
|
+
l ? yt(
|
|
713
713
|
o,
|
|
714
714
|
/*$$scope*/
|
|
715
715
|
t[8],
|
|
@@ -722,35 +722,35 @@ function lt(t) {
|
|
|
722
722
|
ot
|
|
723
723
|
);
|
|
724
724
|
},
|
|
725
|
-
i(
|
|
726
|
-
|
|
727
|
-
|
|
725
|
+
i(c) {
|
|
726
|
+
l || (B(u, c), c && S(() => {
|
|
727
|
+
l && (r || (r = st(
|
|
728
728
|
n,
|
|
729
729
|
rt,
|
|
730
730
|
/*duration*/
|
|
731
731
|
t[2],
|
|
732
732
|
!0
|
|
733
733
|
)), r.run(1));
|
|
734
|
-
}),
|
|
734
|
+
}), l = !0);
|
|
735
735
|
},
|
|
736
|
-
o(
|
|
737
|
-
K(u,
|
|
736
|
+
o(c) {
|
|
737
|
+
K(u, c), c && (r || (r = st(
|
|
738
738
|
n,
|
|
739
739
|
rt,
|
|
740
740
|
/*duration*/
|
|
741
741
|
t[2],
|
|
742
742
|
!1
|
|
743
|
-
)), r.run(0)),
|
|
743
|
+
)), r.run(0)), l = !1;
|
|
744
744
|
},
|
|
745
|
-
d(
|
|
746
|
-
|
|
745
|
+
d(c) {
|
|
746
|
+
c && L(e), u && u.d(c), t[10](null), s(), c && r && r.end(), t[12](null);
|
|
747
747
|
}
|
|
748
748
|
};
|
|
749
749
|
}
|
|
750
750
|
function ne(t) {
|
|
751
751
|
let e, n, i = (
|
|
752
752
|
/*show*/
|
|
753
|
-
t[5] &&
|
|
753
|
+
t[5] && ct(t)
|
|
754
754
|
);
|
|
755
755
|
return {
|
|
756
756
|
c() {
|
|
@@ -762,7 +762,7 @@ function ne(t) {
|
|
|
762
762
|
p(s, [r]) {
|
|
763
763
|
/*show*/
|
|
764
764
|
s[5] ? i ? (i.p(s, r), r & /*show*/
|
|
765
|
-
32 && B(i, 1)) : (i =
|
|
765
|
+
32 && B(i, 1)) : (i = ct(s), i.c(), B(i, 1), i.m(e.parentNode, e)) : i && (Ut(), K(i, 1, 1, () => {
|
|
766
766
|
i = null;
|
|
767
767
|
}), Jt());
|
|
768
768
|
},
|
|
@@ -778,7 +778,7 @@ function ne(t) {
|
|
|
778
778
|
};
|
|
779
779
|
}
|
|
780
780
|
function ie(t, e, n) {
|
|
781
|
-
let { $$slots: i = {}, $$scope: s } = e, { clientstyling: r = "" } = e, { clientstylingurl:
|
|
781
|
+
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;
|
|
782
782
|
const m = () => {
|
|
783
783
|
n(5, _ = !1), window.postMessage({ type: "ClosedCashierModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
784
784
|
}, d = (a) => {
|
|
@@ -787,7 +787,7 @@ function ie(t, e, n) {
|
|
|
787
787
|
let a = document.createElement("style");
|
|
788
788
|
a.innerHTML = r, f.appendChild(a);
|
|
789
789
|
}, $ = () => {
|
|
790
|
-
let a = new URL(
|
|
790
|
+
let a = new URL(l), w = document.createElement("style");
|
|
791
791
|
fetch(a.href).then((N) => N.text()).then((N) => {
|
|
792
792
|
w.innerHTML = N, setTimeout(
|
|
793
793
|
() => {
|
|
@@ -806,7 +806,7 @@ function ie(t, e, n) {
|
|
|
806
806
|
});
|
|
807
807
|
}
|
|
808
808
|
function O() {
|
|
809
|
-
u = this.clientWidth,
|
|
809
|
+
u = this.clientWidth, c = this.clientHeight, n(0, u), n(1, c);
|
|
810
810
|
}
|
|
811
811
|
function A(a) {
|
|
812
812
|
J[a ? "unshift" : "push"](() => {
|
|
@@ -814,20 +814,20 @@ function ie(t, e, n) {
|
|
|
814
814
|
});
|
|
815
815
|
}
|
|
816
816
|
return t.$$set = (a) => {
|
|
817
|
-
"clientstyling" in a && n(6, r = a.clientstyling), "clientstylingurl" in a && n(7,
|
|
817
|
+
"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);
|
|
818
818
|
}, t.$$.update = () => {
|
|
819
819
|
t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
820
820
|
72 && r && f && g(), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
821
|
-
136 &&
|
|
821
|
+
136 && l && f && $();
|
|
822
822
|
}, [
|
|
823
823
|
u,
|
|
824
|
-
|
|
824
|
+
c,
|
|
825
825
|
o,
|
|
826
826
|
f,
|
|
827
827
|
h,
|
|
828
828
|
_,
|
|
829
829
|
r,
|
|
830
|
-
|
|
830
|
+
l,
|
|
831
831
|
s,
|
|
832
832
|
i,
|
|
833
833
|
y,
|
|
@@ -15,16 +15,16 @@ var rt = (e, t, n) => new Promise((i, r) => {
|
|
|
15
15
|
var s = (u) => {
|
|
16
16
|
try {
|
|
17
17
|
o(n.next(u));
|
|
18
|
-
} catch (
|
|
19
|
-
r(
|
|
18
|
+
} catch (l) {
|
|
19
|
+
r(l);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, c = (u) => {
|
|
22
22
|
try {
|
|
23
23
|
o(n.throw(u));
|
|
24
|
-
} catch (
|
|
25
|
-
r(
|
|
24
|
+
} catch (l) {
|
|
25
|
+
r(l);
|
|
26
26
|
}
|
|
27
|
-
}, o = (u) => u.done ? i(u.value) : Promise.resolve(u.value).then(s,
|
|
27
|
+
}, o = (u) => u.done ? i(u.value) : Promise.resolve(u.value).then(s, c);
|
|
28
28
|
o((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function W() {
|
|
@@ -71,8 +71,8 @@ function Lt(e, t, n, i) {
|
|
|
71
71
|
if (t.dirty === void 0)
|
|
72
72
|
return r;
|
|
73
73
|
if (typeof r == "object") {
|
|
74
|
-
const s = [],
|
|
75
|
-
for (let o = 0; o <
|
|
74
|
+
const s = [], c = Math.max(t.dirty.length, r.length);
|
|
75
|
+
for (let o = 0; o < c; o += 1)
|
|
76
76
|
s[o] = t.dirty[o] | r[o];
|
|
77
77
|
return s;
|
|
78
78
|
}
|
|
@@ -82,8 +82,8 @@ function Lt(e, t, n, i) {
|
|
|
82
82
|
}
|
|
83
83
|
function Ot(e, t, n, i, r, s) {
|
|
84
84
|
if (r) {
|
|
85
|
-
const
|
|
86
|
-
e.p(
|
|
85
|
+
const c = gt(t, n, i, s);
|
|
86
|
+
e.p(c, r);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
function At(e) {
|
|
@@ -160,7 +160,7 @@ function Rt(e) {
|
|
|
160
160
|
function Wt() {
|
|
161
161
|
return Rt("");
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function ct(e, t, n, i) {
|
|
164
164
|
return e.addEventListener(t, n, i), () => e.removeEventListener(t, n, i);
|
|
165
165
|
}
|
|
166
166
|
function x(e, t, n) {
|
|
@@ -190,15 +190,15 @@ function Dt(e, t) {
|
|
|
190
190
|
), i.setAttribute("aria-hidden", "true"), i.tabIndex = -1;
|
|
191
191
|
const r = Tt();
|
|
192
192
|
let s;
|
|
193
|
-
return r ? (i.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s =
|
|
193
|
+
return r ? (i.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = ct(
|
|
194
194
|
window,
|
|
195
195
|
"message",
|
|
196
196
|
/** @param {MessageEvent} event */
|
|
197
|
-
(
|
|
198
|
-
|
|
197
|
+
(c) => {
|
|
198
|
+
c.source === i.contentWindow && t();
|
|
199
199
|
}
|
|
200
200
|
)) : (i.src = "about:blank", i.onload = () => {
|
|
201
|
-
s =
|
|
201
|
+
s = ct(i.contentWindow, "resize", t), t();
|
|
202
202
|
}), F(e, i), () => {
|
|
203
203
|
(r || s && i.contentWindow) && s(), O(i);
|
|
204
204
|
};
|
|
@@ -227,16 +227,16 @@ function Jt(e, t) {
|
|
|
227
227
|
const n = { stylesheet: Bt(t), rules: {} };
|
|
228
228
|
return U.set(e, n), n;
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function lt(e, t, n, i, r, s, c, o = 0) {
|
|
231
231
|
const u = 16.666 / i;
|
|
232
|
-
let
|
|
232
|
+
let l = `{
|
|
233
233
|
`;
|
|
234
234
|
for (let $ = 0; $ <= 1; $ += u) {
|
|
235
235
|
const w = t + (n - t) * s($);
|
|
236
|
-
|
|
236
|
+
l += $ * 100 + `%{${c(w, 1 - w)}}
|
|
237
237
|
`;
|
|
238
238
|
}
|
|
239
|
-
const h =
|
|
239
|
+
const h = l + `100% {${c(n, 1 - n)}}
|
|
240
240
|
}`, f = `__svelte_${Ut(h)}_${o}`, _ = tt(e), { stylesheet: p, rules: d } = U.get(_) || Jt(_, e);
|
|
241
241
|
d[f] || (d[f] = !0, p.insertRule(`@keyframes ${f} ${h}`, p.cssRules.length));
|
|
242
242
|
const g = e.style.animation || "";
|
|
@@ -354,17 +354,17 @@ function X(e, t, n, i) {
|
|
|
354
354
|
}
|
|
355
355
|
const ie = { duration: 0 };
|
|
356
356
|
function at(e, t, n, i) {
|
|
357
|
-
let s = t(e, n, { direction: "both" }),
|
|
357
|
+
let s = t(e, n, { direction: "both" }), c = i ? 0 : 1, o = null, u = null, l = null, h;
|
|
358
358
|
function f() {
|
|
359
|
-
|
|
359
|
+
l && Vt(e, l);
|
|
360
360
|
}
|
|
361
361
|
function _(d, g) {
|
|
362
362
|
const $ = (
|
|
363
363
|
/** @type {Program['d']} */
|
|
364
|
-
d.b -
|
|
364
|
+
d.b - c
|
|
365
365
|
);
|
|
366
366
|
return g *= Math.abs($), {
|
|
367
|
-
a:
|
|
367
|
+
a: c,
|
|
368
368
|
b: d.b,
|
|
369
369
|
d: $,
|
|
370
370
|
duration: g,
|
|
@@ -385,10 +385,10 @@ function at(e, t, n, i) {
|
|
|
385
385
|
b: d
|
|
386
386
|
};
|
|
387
387
|
d || (a.group = y, y.r += 1), "inert" in e && (d ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
|
|
388
|
-
e.inert, e.inert = !0)), o || u ? u = a : (N && (f(),
|
|
389
|
-
if (u && b > u.start && (o = _(u, $), u = null, K(e, o.b, "start"), N && (f(),
|
|
388
|
+
e.inert, e.inert = !0)), o || u ? u = a : (N && (f(), l = lt(e, c, d, $, g, w, N)), d && A(0, 1), o = _(a, $), j(() => K(e, d, "start")), zt((b) => {
|
|
389
|
+
if (u && b > u.start && (o = _(u, $), u = null, K(e, o.b, "start"), N && (f(), l = lt(
|
|
390
390
|
e,
|
|
391
|
-
|
|
391
|
+
c,
|
|
392
392
|
o.b,
|
|
393
393
|
o.duration,
|
|
394
394
|
0,
|
|
@@ -396,10 +396,10 @@ function at(e, t, n, i) {
|
|
|
396
396
|
s.css
|
|
397
397
|
))), o) {
|
|
398
398
|
if (b >= o.end)
|
|
399
|
-
A(
|
|
399
|
+
A(c = o.b, 1 - c), K(e, o.b, "end"), u || (o.b ? f() : --o.group.r || L(o.group.c)), o = null;
|
|
400
400
|
else if (b >= o.start) {
|
|
401
401
|
const z = b - o.start;
|
|
402
|
-
|
|
402
|
+
c = o.a + o.d * w(z / o.duration), A(c, 1 - c);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
return !!(o || u);
|
|
@@ -430,10 +430,10 @@ function re(e, t) {
|
|
|
430
430
|
function oe(e, t) {
|
|
431
431
|
e.$$.dirty[0] === -1 && (M.push(e), Xt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function ce(e, t, n, i, r, s, c = null, o = [-1]) {
|
|
434
434
|
const u = H;
|
|
435
435
|
B(e);
|
|
436
|
-
const
|
|
436
|
+
const l = e.$$ = {
|
|
437
437
|
fragment: null,
|
|
438
438
|
ctx: [],
|
|
439
439
|
// state
|
|
@@ -454,17 +454,17 @@ function le(e, t, n, i, r, s, l = null, o = [-1]) {
|
|
|
454
454
|
skip_bound: !1,
|
|
455
455
|
root: t.target || u.$$.root
|
|
456
456
|
};
|
|
457
|
-
|
|
457
|
+
c && c(l.root);
|
|
458
458
|
let h = !1;
|
|
459
|
-
if (
|
|
459
|
+
if (l.ctx = n(e, t.props || {}, (f, _, ...p) => {
|
|
460
460
|
const d = p.length ? p[0] : _;
|
|
461
|
-
return
|
|
462
|
-
})
|
|
461
|
+
return l.ctx && r(l.ctx[f], l.ctx[f] = d) && (!l.skip_bound && l.bound[f] && l.bound[f](d), h && oe(e, f)), _;
|
|
462
|
+
}), l.update(), h = !0, L(l.before_update), l.fragment = i(l.ctx), t.target) {
|
|
463
463
|
if (t.hydrate) {
|
|
464
464
|
const f = Ht(t.target);
|
|
465
|
-
|
|
465
|
+
l.fragment && l.fragment.l(f), f.forEach(O);
|
|
466
466
|
} else
|
|
467
|
-
|
|
467
|
+
l.fragment && l.fragment.c();
|
|
468
468
|
t.intro && R(e.$$.fragment), se(e, t.target, t.anchor), C();
|
|
469
469
|
}
|
|
470
470
|
B(u);
|
|
@@ -511,20 +511,20 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
511
511
|
if (this.$$cn = !0, !this.$$c) {
|
|
512
512
|
let t = function(s) {
|
|
513
513
|
return () => {
|
|
514
|
-
let
|
|
514
|
+
let c;
|
|
515
515
|
return {
|
|
516
516
|
c: function() {
|
|
517
|
-
|
|
517
|
+
c = E("slot"), s !== "default" && x(c, "name", s);
|
|
518
518
|
},
|
|
519
519
|
/**
|
|
520
520
|
* @param {HTMLElement} target
|
|
521
521
|
* @param {HTMLElement} [anchor]
|
|
522
522
|
*/
|
|
523
|
-
m: function(
|
|
524
|
-
et(
|
|
523
|
+
m: function(l, h) {
|
|
524
|
+
et(l, c, h);
|
|
525
525
|
},
|
|
526
|
-
d: function(
|
|
527
|
-
|
|
526
|
+
d: function(l) {
|
|
527
|
+
l && O(c);
|
|
528
528
|
}
|
|
529
529
|
};
|
|
530
530
|
};
|
|
@@ -535,8 +535,8 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
535
535
|
for (const s of this.$$s)
|
|
536
536
|
s in i && (n[s] = [t(s)]);
|
|
537
537
|
for (const s of this.attributes) {
|
|
538
|
-
const
|
|
539
|
-
|
|
538
|
+
const c = this.$$g_p(s.name);
|
|
539
|
+
c in this.$$d || (this.$$d[c] = I(c, s.value, this.$$p_d, "toProp"));
|
|
540
540
|
}
|
|
541
541
|
for (const s in this.$$p_d)
|
|
542
542
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
@@ -553,21 +553,21 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
553
553
|
this.$$r = !0;
|
|
554
554
|
for (const s in this.$$p_d)
|
|
555
555
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
556
|
-
const
|
|
556
|
+
const c = I(
|
|
557
557
|
s,
|
|
558
558
|
this.$$d[s],
|
|
559
559
|
this.$$p_d,
|
|
560
560
|
"toAttribute"
|
|
561
561
|
);
|
|
562
|
-
|
|
562
|
+
c == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, c);
|
|
563
563
|
}
|
|
564
564
|
this.$$r = !1;
|
|
565
565
|
};
|
|
566
566
|
this.$$c.$$.after_update.push(r), r();
|
|
567
567
|
for (const s in this.$$l)
|
|
568
|
-
for (const
|
|
569
|
-
const o = this.$$c.$on(s,
|
|
570
|
-
this.$$l_u.set(
|
|
568
|
+
for (const c of this.$$l[s]) {
|
|
569
|
+
const o = this.$$c.$on(s, c);
|
|
570
|
+
this.$$l_u.set(c, o);
|
|
571
571
|
}
|
|
572
572
|
this.$$l = {};
|
|
573
573
|
}
|
|
@@ -620,8 +620,8 @@ function I(e, t, n, i) {
|
|
|
620
620
|
return t;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
let
|
|
623
|
+
function le(e, t, n, i, r, s) {
|
|
624
|
+
let c = class extends wt {
|
|
625
625
|
constructor() {
|
|
626
626
|
super(e, n, r), this.$$p_d = t;
|
|
627
627
|
}
|
|
@@ -632,24 +632,24 @@ function ce(e, t, n, i, r, s) {
|
|
|
632
632
|
}
|
|
633
633
|
};
|
|
634
634
|
return Object.keys(t).forEach((o) => {
|
|
635
|
-
Object.defineProperty(
|
|
635
|
+
Object.defineProperty(c.prototype, o, {
|
|
636
636
|
get() {
|
|
637
637
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
638
638
|
},
|
|
639
639
|
set(u) {
|
|
640
|
-
var
|
|
641
|
-
u = I(o, u, t), this.$$d[o] = u, (
|
|
640
|
+
var l;
|
|
641
|
+
u = I(o, u, t), this.$$d[o] = u, (l = this.$$c) == null || l.$set({ [o]: u });
|
|
642
642
|
}
|
|
643
643
|
});
|
|
644
644
|
}), i.forEach((o) => {
|
|
645
|
-
Object.defineProperty(
|
|
645
|
+
Object.defineProperty(c.prototype, o, {
|
|
646
646
|
get() {
|
|
647
647
|
var u;
|
|
648
648
|
return (u = this.$$c) == null ? void 0 : u[o];
|
|
649
649
|
}
|
|
650
650
|
});
|
|
651
651
|
}), e.element = /** @type {any} */
|
|
652
|
-
|
|
652
|
+
c, c;
|
|
653
653
|
}
|
|
654
654
|
class ue {
|
|
655
655
|
constructor() {
|
|
@@ -713,7 +713,7 @@ function fe(e) {
|
|
|
713
713
|
}
|
|
714
714
|
const de = (e) => ({}), dt = (e) => ({});
|
|
715
715
|
function ht(e) {
|
|
716
|
-
let t, n, i, r, s,
|
|
716
|
+
let t, n, i, r, s, c;
|
|
717
717
|
const o = (
|
|
718
718
|
/*#slots*/
|
|
719
719
|
e[9].content
|
|
@@ -731,22 +731,22 @@ function ht(e) {
|
|
|
731
731
|
e[11].call(n)
|
|
732
732
|
)), x(t, "part", "CustomStylingContainer");
|
|
733
733
|
},
|
|
734
|
-
m(
|
|
735
|
-
et(
|
|
734
|
+
m(l, h) {
|
|
735
|
+
et(l, t, h), F(t, n), F(n, i), u && u.m(i, null), e[10](n), r = Dt(
|
|
736
736
|
n,
|
|
737
737
|
/*div1_elementresize_handler*/
|
|
738
738
|
e[11].bind(n)
|
|
739
|
-
), e[12](t),
|
|
739
|
+
), e[12](t), c = !0;
|
|
740
740
|
},
|
|
741
|
-
p(
|
|
742
|
-
e =
|
|
741
|
+
p(l, h) {
|
|
742
|
+
e = l, u && u.p && (!c || h & /*$$scope*/
|
|
743
743
|
256) && Ot(
|
|
744
744
|
u,
|
|
745
745
|
o,
|
|
746
746
|
e,
|
|
747
747
|
/*$$scope*/
|
|
748
748
|
e[8],
|
|
749
|
-
|
|
749
|
+
c ? Lt(
|
|
750
750
|
o,
|
|
751
751
|
/*$$scope*/
|
|
752
752
|
e[8],
|
|
@@ -759,28 +759,28 @@ function ht(e) {
|
|
|
759
759
|
dt
|
|
760
760
|
);
|
|
761
761
|
},
|
|
762
|
-
i(
|
|
763
|
-
|
|
764
|
-
|
|
762
|
+
i(l) {
|
|
763
|
+
c || (R(u, l), l && j(() => {
|
|
764
|
+
c && (s || (s = at(
|
|
765
765
|
n,
|
|
766
766
|
ft,
|
|
767
767
|
/*duration*/
|
|
768
768
|
e[2],
|
|
769
769
|
!0
|
|
770
770
|
)), s.run(1));
|
|
771
|
-
}),
|
|
771
|
+
}), c = !0);
|
|
772
772
|
},
|
|
773
|
-
o(
|
|
774
|
-
X(u,
|
|
773
|
+
o(l) {
|
|
774
|
+
X(u, l), l && (s || (s = at(
|
|
775
775
|
n,
|
|
776
776
|
ft,
|
|
777
777
|
/*duration*/
|
|
778
778
|
e[2],
|
|
779
779
|
!1
|
|
780
|
-
)), s.run(0)),
|
|
780
|
+
)), s.run(0)), c = !1;
|
|
781
781
|
},
|
|
782
|
-
d(
|
|
783
|
-
|
|
782
|
+
d(l) {
|
|
783
|
+
l && O(t), u && u.d(l), e[10](null), r(), l && s && s.end(), e[12](null);
|
|
784
784
|
}
|
|
785
785
|
};
|
|
786
786
|
}
|
|
@@ -815,7 +815,7 @@ function he(e) {
|
|
|
815
815
|
};
|
|
816
816
|
}
|
|
817
817
|
function $e(e, t, n) {
|
|
818
|
-
let { $$slots: i = {}, $$scope: r } = t, { clientstyling: s = "" } = t, { clientstylingurl:
|
|
818
|
+
let { $$slots: i = {}, $$scope: r } = t, { clientstyling: s = "" } = t, { clientstylingurl: c = "" } = t, { duration: o = 200 } = t, { width: u } = t, { height: l } = t, h, f, _ = !1;
|
|
819
819
|
const p = () => {
|
|
820
820
|
n(5, _ = !1), window.postMessage({ type: "ClosedCashierModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
821
821
|
}, d = (a) => {
|
|
@@ -824,7 +824,7 @@ function $e(e, t, n) {
|
|
|
824
824
|
let a = document.createElement("style");
|
|
825
825
|
a.innerHTML = s, f.appendChild(a);
|
|
826
826
|
}, $ = () => {
|
|
827
|
-
let a = new URL(
|
|
827
|
+
let a = new URL(c), b = document.createElement("style");
|
|
828
828
|
fetch(a.href).then((z) => z.text()).then((z) => {
|
|
829
829
|
b.innerHTML = z, setTimeout(
|
|
830
830
|
() => {
|
|
@@ -843,7 +843,7 @@ function $e(e, t, n) {
|
|
|
843
843
|
});
|
|
844
844
|
}
|
|
845
845
|
function A() {
|
|
846
|
-
u = this.clientWidth,
|
|
846
|
+
u = this.clientWidth, l = this.clientHeight, n(0, u), n(1, l);
|
|
847
847
|
}
|
|
848
848
|
function N(a) {
|
|
849
849
|
V[a ? "unshift" : "push"](() => {
|
|
@@ -851,20 +851,20 @@ function $e(e, t, n) {
|
|
|
851
851
|
});
|
|
852
852
|
}
|
|
853
853
|
return e.$$set = (a) => {
|
|
854
|
-
"clientstyling" in a && n(6, s = a.clientstyling), "clientstylingurl" in a && n(7,
|
|
854
|
+
"clientstyling" in a && n(6, s = a.clientstyling), "clientstylingurl" in a && n(7, c = a.clientstylingurl), "duration" in a && n(2, o = a.duration), "width" in a && n(0, u = a.width), "height" in a && n(1, l = a.height), "$$scope" in a && n(8, r = a.$$scope);
|
|
855
855
|
}, e.$$.update = () => {
|
|
856
856
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
857
857
|
72 && s && f && g(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
858
|
-
136 &&
|
|
858
|
+
136 && c && f && $();
|
|
859
859
|
}, [
|
|
860
860
|
u,
|
|
861
|
-
|
|
861
|
+
l,
|
|
862
862
|
o,
|
|
863
863
|
f,
|
|
864
864
|
h,
|
|
865
865
|
_,
|
|
866
866
|
s,
|
|
867
|
-
|
|
867
|
+
c,
|
|
868
868
|
r,
|
|
869
869
|
i,
|
|
870
870
|
w,
|
|
@@ -874,7 +874,7 @@ function $e(e, t, n) {
|
|
|
874
874
|
}
|
|
875
875
|
class _e extends ue {
|
|
876
876
|
constructor(t) {
|
|
877
|
-
super(),
|
|
877
|
+
super(), ce(
|
|
878
878
|
this,
|
|
879
879
|
t,
|
|
880
880
|
$e,
|
|
@@ -921,7 +921,7 @@ class _e extends ue {
|
|
|
921
921
|
this.$$set({ height: t }), C();
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
|
-
|
|
924
|
+
le(_e, { clientstyling: {}, clientstylingurl: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
|
|
925
925
|
export {
|
|
926
926
|
_e as default
|
|
927
927
|
};
|
|
@@ -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),n);var rt=(e,t,n)=>new Promise((i,r)=>{var s=u=>{try{o(n.next(u))}catch(l){r(l)}},c=u=>{try{o(n.throw(u))}catch(l){r(l)}},o=u=>u.done?i(u.value):Promise.resolve(u.value).then(s,c);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=[],c=Math.max(t.dirty.length,r.length);for(let o=0;o<c;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 c=gt(t,n,i,s);e.p(c,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 ct(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=ct(window,"message",c=>{c.source===i.contentWindow&&t()})):(i.src="about:blank",i.onload=()=>{s=ct(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 lt(e,t,n,i,r,s,c,o=0){const u=16.666/i;let l=`{
|
|
2
|
+
`;for(let $=0;$<=1;$+=u){const w=t+(n-t)*s($);l+=$*100+`%{${c(w,1-w)}}
|
|
3
|
+
`}const h=l+`100% {${c(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"}),c=i?0:1,o=null,u=null,l=null,h;function f(){l&&qt(e,l)}function _(d,g){const $=d.b-c;return g*=Math.abs($),{a:c,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(),l=lt(e,c,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(),l=lt(e,c,o.b,o.duration,0,w,s.css))),o){if(b>=o.end)A(c=o.b,1-c),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;c=o.a+o.d*w(z/o.duration),A(c,1-c)}}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 ce(e,t){e.$$.dirty[0]===-1&&(M.push(e),Yt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function le(e,t,n,i,r,s,c=null,o=[-1]){const u=H;B(e);const l=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};c&&c(l.root);let h=!1;if(l.ctx=n(e,t.props||{},(f,_,...p)=>{const d=p.length?p[0]:_;return l.ctx&&r(l.ctx[f],l.ctx[f]=d)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](d),h&&ce(e,f)),_}),l.update(),h=!0,L(l.before_update),l.fragment=i(l.ctx),t.target){if(t.hydrate){const f=Tt(t.target);l.fragment&&l.fragment.l(f),f.forEach(O)}else l.fragment&&l.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 c;return{c:function(){c=E("slot"),s!=="default"&&x(c,"name",s)},m:function(l,h){et(l,c,h)},d:function(l){l&&O(c)}}}};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 c=this.$$g_p(s.name);c in this.$$d||(this.$$d[c]=I(c,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 c=I(s,this.$$d[s],this.$$p_d,"toAttribute");c==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,c)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const c of this.$$l[s]){const o=this.$$c.$on(s,c);this.$$l_u.set(c,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 c=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(c.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){var l;u=I(o,u,t),this.$$d[o]=u,(l=this.$$c)==null||l.$set({[o]:u})}})}),i.forEach(o=>{Object.defineProperty(c.prototype,o,{get(){var u;return(u=this.$$c)==null?void 0:u[o]}})}),e.element=c,c}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,c;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(l,h){et(l,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),c=!0},p(l,h){e=l,u&&u.p&&(!c||h&256)&&At(u,o,e,e[8],c?Ot(o,e[8],h,he):Nt(e[8]),dt)},i(l){c||(R(u,l),l&&j(()=>{c&&(s||(s=at(n,ft,e[2],!0)),s.run(1))}),c=!0)},o(l){X(u,l),l&&(s||(s=at(n,ft,e[2],!1)),s.run(0)),c=!1},d(l){l&&O(t),u&&u.d(l),e[10](null),r(),l&&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:c=""}=t,{duration:o=200}=t,{width:u}=t,{height:l}=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(c),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,l=this.clientHeight,n(0,u),n(1,l)}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,c=a.clientstylingurl),"duration"in a&&n(2,o=a.duration),"width"in a&&n(0,u=a.width),"height"in a&&n(1,l=a.height),"$$scope"in a&&n(8,r=a.$$scope)},e.$$.update=()=>{e.$$.dirty&72&&s&&f&&g(),e.$$.dirty&136&&c&&f&&$()},[u,l,o,f,h,_,s,c,r,i,w,A,N]}class bt extends ae{constructor(t){super(),le(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-omkRoYg2.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-DUBIli2d.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("cashier-modal") && customElements.define("cashier-modal", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/esnext/cashier-modal.js
CHANGED
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
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),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,e[2],!0)),s.run(1))}),l=!0)},o(c){X(u,c),c&&(s||(s=at(n,ft,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;
|