@everymatrix/cashier-method-details 1.45.2 → 1.45.3
Sign up to get free protection for your applications and to get access to all the features.
- package/components/{CashierMethodDetails-5wGvaaR0.js → CashierMethodDetails-Bf-5bGxo.js} +1606 -1579
- package/components/CashierMethodDetails-C4PD_IWn.cjs +18 -0
- package/components/CashierModal-9BGQdqOF.cjs +1 -0
- package/components/{CashierModal-BFlGJozz.js → CashierModal-BInN_GEx.js} +32 -26
- package/components/{CashierReceiptPage-gWSm3RqW.cjs → CashierReceiptPage-BVJ9-Fkt.cjs} +1 -1
- package/components/{CashierReceiptPage-CY8dJVSv.js → CashierReceiptPage-CWW92liL.js} +1 -1
- package/es2015/cashier-method-details.cjs +1 -1
- package/es2015/cashier-method-details.js +1 -1
- package/package.json +1 -1
- package/components/CashierMethodDetails-DPowLei9.cjs +0 -18
- package/components/CashierModal-DljNagOg.cjs +0 -1
@@ -1,11 +1,11 @@
|
|
1
1
|
import { R as q, S as D, b as F, f as g, c as G, a as N, d as A, x as I, k as H, t as m, p, q as J, v as L, H as K, e as O, g as y, j as h, G as M, l as v, T as P, u as Q, m as V, o as X, U as k, B as Y, C as x } from "./CashierConfirmModal-Dw8BnUfp.js";
|
2
2
|
function S(n, { delay: t = 0, duration: e = 400, easing: i = q } = {}) {
|
3
|
-
const
|
3
|
+
const o = +getComputedStyle(n).opacity;
|
4
4
|
return {
|
5
5
|
delay: t,
|
6
6
|
duration: e,
|
7
7
|
easing: i,
|
8
|
-
css: (
|
8
|
+
css: (l) => `opacity: ${l * o}`
|
9
9
|
};
|
10
10
|
}
|
11
11
|
function Z(n) {
|
@@ -13,7 +13,7 @@ function Z(n) {
|
|
13
13
|
}
|
14
14
|
const $ = (n) => ({}), z = (n) => ({});
|
15
15
|
function E(n) {
|
16
|
-
let t, e, i,
|
16
|
+
let t, e, i, o, l, d;
|
17
17
|
const f = (
|
18
18
|
/*#slots*/
|
19
19
|
n[9].content
|
@@ -32,7 +32,7 @@ function E(n) {
|
|
32
32
|
)), h(t, "part", "CustomStylingContainer");
|
33
33
|
},
|
34
34
|
m(a, c) {
|
35
|
-
H(a, t, c), v(t, e), v(e, i), r && r.m(i, null), n[10](e),
|
35
|
+
H(a, t, c), v(t, e), v(e, i), r && r.m(i, null), n[10](e), o = P(
|
36
36
|
e,
|
37
37
|
/*div1_elementresize_handler*/
|
38
38
|
n[11].bind(e)
|
@@ -61,20 +61,26 @@ function E(n) {
|
|
61
61
|
},
|
62
62
|
i(a) {
|
63
63
|
d || (m(r, a), a && M(() => {
|
64
|
-
d && (
|
64
|
+
d && (l || (l = k(
|
65
|
+
e,
|
66
|
+
S,
|
65
67
|
/*duration*/
|
66
|
-
n[2]
|
67
|
-
|
68
|
+
n[2],
|
69
|
+
!0
|
70
|
+
)), l.run(1));
|
68
71
|
}), d = !0);
|
69
72
|
},
|
70
73
|
o(a) {
|
71
|
-
p(r, a), a && (
|
74
|
+
p(r, a), a && (l || (l = k(
|
75
|
+
e,
|
76
|
+
S,
|
72
77
|
/*duration*/
|
73
|
-
n[2]
|
74
|
-
|
78
|
+
n[2],
|
79
|
+
!1
|
80
|
+
)), l.run(0)), d = !1;
|
75
81
|
},
|
76
82
|
d(a) {
|
77
|
-
a && L(t), r && r.d(a), n[10](null),
|
83
|
+
a && L(t), r && r.d(a), n[10](null), o(), a && l && l.end(), n[12](null);
|
78
84
|
}
|
79
85
|
};
|
80
86
|
}
|
@@ -87,36 +93,36 @@ function tt(n) {
|
|
87
93
|
c() {
|
88
94
|
i && i.c(), t = I();
|
89
95
|
},
|
90
|
-
m(
|
91
|
-
i && i.m(
|
96
|
+
m(o, l) {
|
97
|
+
i && i.m(o, l), H(o, t, l), e = !0;
|
92
98
|
},
|
93
|
-
p(
|
99
|
+
p(o, [l]) {
|
94
100
|
/*show*/
|
95
|
-
|
96
|
-
32 && m(i, 1)) : (i = E(
|
101
|
+
o[5] ? i ? (i.p(o, l), l & /*show*/
|
102
|
+
32 && m(i, 1)) : (i = E(o), i.c(), m(i, 1), i.m(t.parentNode, t)) : i && (Y(), p(i, 1, 1, () => {
|
97
103
|
i = null;
|
98
104
|
}), J());
|
99
105
|
},
|
100
|
-
i(
|
106
|
+
i(o) {
|
101
107
|
e || (m(i), e = !0);
|
102
108
|
},
|
103
|
-
o(
|
109
|
+
o(o) {
|
104
110
|
p(i), e = !1;
|
105
111
|
},
|
106
|
-
d(
|
107
|
-
|
112
|
+
d(o) {
|
113
|
+
o && L(t), i && i.d(o);
|
108
114
|
}
|
109
115
|
};
|
110
116
|
}
|
111
117
|
function et(n, t, e) {
|
112
|
-
let { $$slots: i = {}, $$scope:
|
118
|
+
let { $$slots: i = {}, $$scope: o } = t, { clientstyling: l = "" } = t, { clientstylingurl: d = "" } = t, { duration: f = 200 } = t, { width: r } = t, { height: a } = t, c, u, w = !1;
|
113
119
|
const W = () => {
|
114
120
|
e(5, w = !1), window.postMessage({ type: "ClosedCashierModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
115
121
|
}, b = (s) => {
|
116
122
|
s.data.type == "ShowCashierModal" && (e(5, w = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), s.data.type == "HideCashierModal" && W();
|
117
123
|
}, B = () => {
|
118
124
|
let s = document.createElement("style");
|
119
|
-
s.innerHTML =
|
125
|
+
s.innerHTML = l, u.appendChild(s);
|
120
126
|
}, T = () => {
|
121
127
|
let s = new URL(d), C = document.createElement("style");
|
122
128
|
fetch(s.href).then((_) => _.text()).then((_) => {
|
@@ -145,10 +151,10 @@ function et(n, t, e) {
|
|
145
151
|
});
|
146
152
|
}
|
147
153
|
return n.$$set = (s) => {
|
148
|
-
"clientstyling" in s && e(6,
|
154
|
+
"clientstyling" in s && e(6, l = s.clientstyling), "clientstylingurl" in s && e(7, d = s.clientstylingurl), "duration" in s && e(2, f = s.duration), "width" in s && e(0, r = s.width), "height" in s && e(1, a = s.height), "$$scope" in s && e(8, o = s.$$scope);
|
149
155
|
}, n.$$.update = () => {
|
150
156
|
n.$$.dirty & /*clientstyling, customStylingContainer*/
|
151
|
-
72 &&
|
157
|
+
72 && l && u && B(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
152
158
|
136 && d && u && T();
|
153
159
|
}, [
|
154
160
|
r,
|
@@ -157,9 +163,9 @@ function et(n, t, e) {
|
|
157
163
|
u,
|
158
164
|
c,
|
159
165
|
w,
|
160
|
-
o,
|
161
|
-
d,
|
162
166
|
l,
|
167
|
+
d,
|
168
|
+
o,
|
163
169
|
i,
|
164
170
|
j,
|
165
171
|
R,
|