moyasar-payment-form 2.2.13 → 2.3.0
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/dist/__vite-browser-external-DYxpcVy9.mjs +1 -1
- package/dist/moyasar.css +1 -1
- package/dist/moyasar.mjs +794 -767
- package/dist/moyasar.umd.js +3 -3
- package/package.json +1 -1
package/dist/moyasar.mjs
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: moyasar-payment-form
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.3.0
|
|
4
4
|
* description: Moyasar payment form utilities
|
|
5
5
|
* author: Jan Jagieła - Railwaymen Team
|
|
6
6
|
* homepage: https://docs.moyasar.com
|
|
7
7
|
*/
|
|
8
|
-
var
|
|
8
|
+
var _e = Object.defineProperty, Ne = Object.defineProperties;
|
|
9
9
|
var Ie = Object.getOwnPropertyDescriptors;
|
|
10
|
-
var
|
|
10
|
+
var MA = Object.getOwnPropertySymbols;
|
|
11
11
|
var gt = Object.prototype.hasOwnProperty, ht = Object.prototype.propertyIsEnumerable;
|
|
12
|
-
var yt = Math.pow, vt = (A, t, e) => t in A ?
|
|
12
|
+
var yt = Math.pow, vt = (A, t, e) => t in A ? _e(A, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : A[t] = e, B = (A, t) => {
|
|
13
13
|
for (var e in t || (t = {}))
|
|
14
14
|
gt.call(t, e) && vt(A, e, t[e]);
|
|
15
|
-
if (
|
|
16
|
-
for (var e of
|
|
15
|
+
if (MA)
|
|
16
|
+
for (var e of MA(t))
|
|
17
17
|
ht.call(t, e) && vt(A, e, t[e]);
|
|
18
18
|
return A;
|
|
19
|
-
},
|
|
20
|
-
var
|
|
19
|
+
}, N = (A, t) => Ne(A, Ie(t));
|
|
20
|
+
var gA = (A, t) => {
|
|
21
21
|
var e = {};
|
|
22
22
|
for (var n in A)
|
|
23
23
|
gt.call(A, n) && t.indexOf(n) < 0 && (e[n] = A[n]);
|
|
24
|
-
if (A != null &&
|
|
25
|
-
for (var n of
|
|
24
|
+
if (A != null && MA)
|
|
25
|
+
for (var n of MA(A))
|
|
26
26
|
t.indexOf(n) < 0 && ht.call(A, n) && (e[n] = A[n]);
|
|
27
27
|
return e;
|
|
28
28
|
};
|
|
29
|
-
var
|
|
30
|
-
var a = (
|
|
29
|
+
var R = (A, t, e) => new Promise((n, r) => {
|
|
30
|
+
var a = (i) => {
|
|
31
31
|
try {
|
|
32
|
-
l(e.next(
|
|
32
|
+
l(e.next(i));
|
|
33
33
|
} catch (s) {
|
|
34
34
|
r(s);
|
|
35
35
|
}
|
|
36
|
-
}, o = (
|
|
36
|
+
}, o = (i) => {
|
|
37
37
|
try {
|
|
38
|
-
l(e.throw(
|
|
38
|
+
l(e.throw(i));
|
|
39
39
|
} catch (s) {
|
|
40
40
|
r(s);
|
|
41
41
|
}
|
|
42
|
-
}, l = (
|
|
42
|
+
}, l = (i) => i.done ? n(i.value) : Promise.resolve(i.value).then(a, o);
|
|
43
43
|
l((e = e.apply(A, t)).next());
|
|
44
44
|
});
|
|
45
|
-
var zA, S, Ae,
|
|
46
|
-
function
|
|
45
|
+
var zA, S, Ae, sA, wt, te, ee, ne, at, YA, ZA, re, yA = {}, ae = [], Oe = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, bA = Array.isArray;
|
|
46
|
+
function aA(A, t) {
|
|
47
47
|
for (var e in t) A[e] = t[e];
|
|
48
48
|
return A;
|
|
49
49
|
}
|
|
@@ -60,16 +60,16 @@ function XA(A, t, e, n, r) {
|
|
|
60
60
|
var a = { type: A, props: t, key: e, ref: n, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: r == null ? ++Ae : r, __i: -1, __u: 0 };
|
|
61
61
|
return r == null && S.vnode != null && S.vnode(a), a;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function F(A) {
|
|
64
64
|
return A.children;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function nA(A, t) {
|
|
67
67
|
this.props = A, this.context = t;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
if (t == null) return A.__ ?
|
|
69
|
+
function uA(A, t) {
|
|
70
|
+
if (t == null) return A.__ ? uA(A.__, A.__i + 1) : null;
|
|
71
71
|
for (var e; t < A.__k.length; t++) if ((e = A.__k[t]) != null && e.__e != null) return e.__e;
|
|
72
|
-
return typeof A.type == "function" ?
|
|
72
|
+
return typeof A.type == "function" ? uA(A) : null;
|
|
73
73
|
}
|
|
74
74
|
function oe(A) {
|
|
75
75
|
var t, e;
|
|
@@ -82,21 +82,21 @@ function oe(A) {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
function HA(A) {
|
|
85
|
-
(!A.__d && (A.__d = !0) &&
|
|
85
|
+
(!A.__d && (A.__d = !0) && sA.push(A) && !LA.__r++ || wt != S.debounceRendering) && ((wt = S.debounceRendering) || te)(LA);
|
|
86
86
|
}
|
|
87
87
|
function LA() {
|
|
88
|
-
for (var A, t, e, n, r, a, o, l = 1;
|
|
88
|
+
for (var A, t, e, n, r, a, o, l = 1; sA.length; ) sA.length > l && sA.sort(ee), A = sA.shift(), l = sA.length, A.__d && (e = void 0, r = (n = (t = A).__v).__e, a = [], o = [], t.__P && ((e = aA({}, n)).__v = n.__v + 1, S.vnode && S.vnode(e), lt(t.__P, e, n, t.__n, t.__P.namespaceURI, 32 & n.__u ? [r] : null, a, r == null ? uA(n) : r, !!(32 & n.__u), o), e.__v = n.__v, e.__.__k[e.__i] = e, ie(a, e, o), e.__e != r && oe(e)));
|
|
89
89
|
LA.__r = 0;
|
|
90
90
|
}
|
|
91
|
-
function le(A, t, e, n, r, a, o, l,
|
|
92
|
-
var
|
|
93
|
-
for (
|
|
94
|
-
return e.__e =
|
|
91
|
+
function le(A, t, e, n, r, a, o, l, i, s, p) {
|
|
92
|
+
var c, f, d, y, b, v, m = n && n.__k || ae, g = t.length;
|
|
93
|
+
for (i = ze(e, t, m, i, g), c = 0; c < g; c++) (d = e.__k[c]) != null && (f = d.__i == -1 ? yA : m[d.__i] || yA, d.__i = c, v = lt(A, d, f, r, a, o, l, i, s, p), y = d.__e, d.ref && f.ref != d.ref && (f.ref && st(f.ref, null, d), p.push(d.ref, d.__c || y, d)), b == null && y != null && (b = y), 4 & d.__u || f.__k === d.__k ? i = se(d, i, A) : typeof d.type == "function" && v !== void 0 ? i = v : y && (i = y.nextSibling), d.__u &= -7);
|
|
94
|
+
return e.__e = b, i;
|
|
95
95
|
}
|
|
96
96
|
function ze(A, t, e, n, r) {
|
|
97
|
-
var a, o, l,
|
|
98
|
-
for (A.__k = new Array(r), a = 0; a < r; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (
|
|
99
|
-
if (
|
|
97
|
+
var a, o, l, i, s, p = e.length, c = p, f = 0;
|
|
98
|
+
for (A.__k = new Array(r), a = 0; a < r; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (i = a + f, (o = A.__k[a] = typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? XA(null, o, null, null, null) : bA(o) ? XA(F, { children: o }, null, null, null) : o.constructor == null && o.__b > 0 ? XA(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o).__ = A, o.__b = A.__b + 1, l = null, (s = o.__i = Ue(o, e, i, c)) != -1 && (c--, (l = e[s]) && (l.__u |= 2)), l == null || l.__v == null ? (s == -1 && (r > p ? f-- : r < p && f++), typeof o.type != "function" && (o.__u |= 4)) : s != i && (s == i - 1 ? f-- : s == i + 1 ? f++ : (s > i ? f-- : f++, o.__u |= 4))) : A.__k[a] = null;
|
|
99
|
+
if (c) for (a = 0; a < p; a++) (l = e[a]) != null && !(2 & l.__u) && (l.__e == n && (n = uA(l)), ue(l, l));
|
|
100
100
|
return n;
|
|
101
101
|
}
|
|
102
102
|
function se(A, t, e) {
|
|
@@ -105,27 +105,27 @@ function se(A, t, e) {
|
|
|
105
105
|
for (n = A.__k, r = 0; n && r < n.length; r++) n[r] && (n[r].__ = A, t = se(n[r], t, e));
|
|
106
106
|
return t;
|
|
107
107
|
}
|
|
108
|
-
A.__e != t && (t && A.type && !e.contains(t) && (t =
|
|
108
|
+
A.__e != t && (t && A.type && !e.contains(t) && (t = uA(A)), e.insertBefore(A.__e, t || null), t = A.__e);
|
|
109
109
|
do
|
|
110
110
|
t = t && t.nextSibling;
|
|
111
111
|
while (t != null && t.nodeType == 8);
|
|
112
112
|
return t;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
return t = t || [], A == null || typeof A == "boolean" || (
|
|
116
|
-
|
|
114
|
+
function _A(A, t) {
|
|
115
|
+
return t = t || [], A == null || typeof A == "boolean" || (bA(A) ? A.some(function(e) {
|
|
116
|
+
_A(e, t);
|
|
117
117
|
}) : t.push(A)), t;
|
|
118
118
|
}
|
|
119
119
|
function Ue(A, t, e, n) {
|
|
120
|
-
var r, a, o = A.key, l = A.type,
|
|
121
|
-
if (
|
|
122
|
-
if (n > (
|
|
120
|
+
var r, a, o = A.key, l = A.type, i = t[e];
|
|
121
|
+
if (i === null && A.key == null || i && o == i.key && l == i.type && !(2 & i.__u)) return e;
|
|
122
|
+
if (n > (i != null && !(2 & i.__u) ? 1 : 0)) for (r = e - 1, a = e + 1; r >= 0 || a < t.length; ) {
|
|
123
123
|
if (r >= 0) {
|
|
124
|
-
if ((
|
|
124
|
+
if ((i = t[r]) && !(2 & i.__u) && o == i.key && l == i.type) return r;
|
|
125
125
|
r--;
|
|
126
126
|
}
|
|
127
127
|
if (a < t.length) {
|
|
128
|
-
if ((
|
|
128
|
+
if ((i = t[a]) && !(2 & i.__u) && o == i.key && l == i.type) return a;
|
|
129
129
|
a++;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
@@ -162,43 +162,43 @@ function Ct(A) {
|
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
|
-
function lt(A, t, e, n, r, a, o, l,
|
|
166
|
-
var p,
|
|
165
|
+
function lt(A, t, e, n, r, a, o, l, i, s) {
|
|
166
|
+
var p, c, f, d, y, b, v, m, g, D, w, C, M, k, Q, P, O, L = t.type;
|
|
167
167
|
if (t.constructor != null) return null;
|
|
168
|
-
128 & e.__u && (
|
|
169
|
-
A: if (typeof
|
|
170
|
-
if (m = t.props, g = "prototype" in
|
|
168
|
+
128 & e.__u && (i = !!(32 & e.__u), a = [l = t.__e = e.__e]), (p = S.__b) && p(t);
|
|
169
|
+
A: if (typeof L == "function") try {
|
|
170
|
+
if (m = t.props, g = "prototype" in L && L.prototype.render, D = (p = L.contextType) && n[p.__c], w = p ? D ? D.props.value : p.__ : n, e.__c ? v = (c = t.__c = e.__c).__ = c.__E : (g ? t.__c = c = new L(m, w) : (t.__c = c = new nA(m, w), c.constructor = L, c.render = Ge), D && D.sub(c), c.props = m, c.state || (c.state = {}), c.context = w, c.__n = n, f = c.__d = !0, c.__h = [], c._sb = []), g && c.__s == null && (c.__s = c.state), g && L.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = aA({}, c.__s)), aA(c.__s, L.getDerivedStateFromProps(m, c.__s))), d = c.props, y = c.state, c.__v = t, f) g && L.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), g && c.componentDidMount != null && c.__h.push(c.componentDidMount);
|
|
171
171
|
else {
|
|
172
|
-
if (g &&
|
|
173
|
-
for (t.__v != e.__v && (
|
|
174
|
-
|
|
175
|
-
}),
|
|
176
|
-
|
|
172
|
+
if (g && L.getDerivedStateFromProps == null && m !== d && c.componentWillReceiveProps != null && c.componentWillReceiveProps(m, w), !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(m, c.__s, w) === !1 || t.__v == e.__v) {
|
|
173
|
+
for (t.__v != e.__v && (c.props = m, c.state = c.__s, c.__d = !1), t.__e = e.__e, t.__k = e.__k, t.__k.some(function(X) {
|
|
174
|
+
X && (X.__ = t);
|
|
175
|
+
}), C = 0; C < c._sb.length; C++) c.__h.push(c._sb[C]);
|
|
176
|
+
c._sb = [], c.__h.length && o.push(c);
|
|
177
177
|
break A;
|
|
178
178
|
}
|
|
179
|
-
|
|
180
|
-
|
|
179
|
+
c.componentWillUpdate != null && c.componentWillUpdate(m, c.__s, w), g && c.componentDidUpdate != null && c.__h.push(function() {
|
|
180
|
+
c.componentDidUpdate(d, y, b);
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
|
-
if (
|
|
184
|
-
for (
|
|
185
|
-
|
|
183
|
+
if (c.context = w, c.props = m, c.__P = A, c.__e = !1, M = S.__r, k = 0, g) {
|
|
184
|
+
for (c.state = c.__s, c.__d = !1, M && M(t), p = c.render(c.props, c.state, c.context), Q = 0; Q < c._sb.length; Q++) c.__h.push(c._sb[Q]);
|
|
185
|
+
c._sb = [];
|
|
186
186
|
} else do
|
|
187
|
-
|
|
188
|
-
while (
|
|
189
|
-
|
|
190
|
-
} catch (
|
|
191
|
-
if (t.__v = null,
|
|
192
|
-
for (t.__u |=
|
|
187
|
+
c.__d = !1, M && M(t), p = c.render(c.props, c.state, c.context), c.state = c.__s;
|
|
188
|
+
while (c.__d && ++k < 25);
|
|
189
|
+
c.state = c.__s, c.getChildContext != null && (n = aA(aA({}, n), c.getChildContext())), g && !f && c.getSnapshotBeforeUpdate != null && (b = c.getSnapshotBeforeUpdate(d, y)), P = p, p != null && p.type === F && p.key == null && (P = ce(p.props.children)), l = le(A, bA(P) ? P : [P], t, e, n, r, a, o, l, i, s), c.base = t.__e, t.__u &= -161, c.__h.length && o.push(c), v && (c.__E = c.__ = null);
|
|
190
|
+
} catch (X) {
|
|
191
|
+
if (t.__v = null, i || a != null) if (X.then) {
|
|
192
|
+
for (t.__u |= i ? 160 : 128; l && l.nodeType == 8 && l.nextSibling; ) l = l.nextSibling;
|
|
193
193
|
a[a.indexOf(l)] = null, t.__e = l;
|
|
194
|
-
} else for (
|
|
194
|
+
} else for (O = a.length; O--; ) ot(a[O]);
|
|
195
195
|
else t.__e = e.__e, t.__k = e.__k;
|
|
196
|
-
S.__e(
|
|
196
|
+
S.__e(X, t, e);
|
|
197
197
|
}
|
|
198
|
-
else a == null && t.__v == e.__v ? (t.__k = e.__k, t.__e = e.__e) : l = t.__e = Ee(e.__e, t, e, n, r, a, o,
|
|
198
|
+
else a == null && t.__v == e.__v ? (t.__k = e.__k, t.__e = e.__e) : l = t.__e = Ee(e.__e, t, e, n, r, a, o, i, s);
|
|
199
199
|
return (p = S.diffed) && p(t), 128 & t.__u ? void 0 : l;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function ie(A, t, e) {
|
|
202
202
|
for (var n = 0; n < e.length; n++) st(e[n], e[++n], e[++n]);
|
|
203
203
|
S.__c && S.__c(t, A), A.some(function(r) {
|
|
204
204
|
try {
|
|
@@ -210,11 +210,11 @@ function ce(A, t, e) {
|
|
|
210
210
|
}
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
return typeof A != "object" || A == null || A.__b && A.__b > 0 ? A :
|
|
213
|
+
function ce(A) {
|
|
214
|
+
return typeof A != "object" || A == null || A.__b && A.__b > 0 ? A : bA(A) ? A.map(ce) : aA({}, A);
|
|
215
215
|
}
|
|
216
|
-
function Ee(A, t, e, n, r, a, o, l,
|
|
217
|
-
var s, p,
|
|
216
|
+
function Ee(A, t, e, n, r, a, o, l, i) {
|
|
217
|
+
var s, p, c, f, d, y, b, v = e.props, m = t.props, g = t.type;
|
|
218
218
|
if (g == "svg" ? r = "http://www.w3.org/2000/svg" : g == "math" ? r = "http://www.w3.org/1998/Math/MathML" : r || (r = "http://www.w3.org/1999/xhtml"), a != null) {
|
|
219
219
|
for (s = 0; s < a.length; s++) if ((d = a[s]) && "setAttribute" in d == !!g && (g ? d.localName == g : d.nodeType == 3)) {
|
|
220
220
|
A = d, a[s] = null;
|
|
@@ -227,18 +227,18 @@ function Ee(A, t, e, n, r, a, o, l, c) {
|
|
|
227
227
|
}
|
|
228
228
|
if (g == null) v === m || l && A.data == m || (A.data = m);
|
|
229
229
|
else {
|
|
230
|
-
if (a = a && zA.call(A.childNodes), v = e.props ||
|
|
230
|
+
if (a = a && zA.call(A.childNodes), v = e.props || yA, !l && a != null) for (v = {}, s = 0; s < A.attributes.length; s++) v[(d = A.attributes[s]).name] = d.value;
|
|
231
231
|
for (s in v) if (d = v[s], s != "children") {
|
|
232
|
-
if (s == "dangerouslySetInnerHTML")
|
|
232
|
+
if (s == "dangerouslySetInnerHTML") c = d;
|
|
233
233
|
else if (!(s in m)) {
|
|
234
234
|
if (s == "value" && "defaultValue" in m || s == "checked" && "defaultChecked" in m) continue;
|
|
235
235
|
kA(A, s, null, d, r);
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
for (s in m) d = m[s], s == "children" ? f = d : s == "dangerouslySetInnerHTML" ? p = d : s == "value" ? y = d : s == "checked" ?
|
|
239
|
-
if (p) l ||
|
|
240
|
-
else if (
|
|
241
|
-
l || (s = "value", g == "progress" && y == null ? A.removeAttribute("value") : y != null && (y !== A[s] || g == "progress" && !y || g == "option" && y != v[s]) && kA(A, s, y, v[s], r), s = "checked",
|
|
238
|
+
for (s in m) d = m[s], s == "children" ? f = d : s == "dangerouslySetInnerHTML" ? p = d : s == "value" ? y = d : s == "checked" ? b = d : l && typeof d != "function" || v[s] === d || kA(A, s, d, v[s], r);
|
|
239
|
+
if (p) l || c && (p.__html == c.__html || p.__html == A.innerHTML) || (A.innerHTML = p.__html), t.__k = [];
|
|
240
|
+
else if (c && (A.innerHTML = ""), le(t.type == "template" ? A.content : A, bA(f) ? f : [f], t, e, n, g == "foreignObject" ? "http://www.w3.org/1999/xhtml" : r, a, o, a ? a[0] : e.__k && uA(e, 0), l, i), a != null) for (s = a.length; s--; ) ot(a[s]);
|
|
241
|
+
l || (s = "value", g == "progress" && y == null ? A.removeAttribute("value") : y != null && (y !== A[s] || g == "progress" && !y || g == "option" && y != v[s]) && kA(A, s, y, v[s], r), s = "checked", b != null && b != A[s] && kA(A, s, b, v[s], r));
|
|
242
242
|
}
|
|
243
243
|
return A;
|
|
244
244
|
}
|
|
@@ -270,9 +270,9 @@ function Ge(A, t, e) {
|
|
|
270
270
|
}
|
|
271
271
|
function Dt(A, t, e) {
|
|
272
272
|
var n, r, a, o;
|
|
273
|
-
t == document && (t = document.documentElement), S.__ && S.__(A, t), r = (n = !1) ? null : t.__k, a = [], o = [], lt(t, A = t.__k = KA(
|
|
273
|
+
t == document && (t = document.documentElement), S.__ && S.__(A, t), r = (n = !1) ? null : t.__k, a = [], o = [], lt(t, A = t.__k = KA(F, null, [A]), r || yA, yA, t.namespaceURI, r ? null : t.firstChild ? zA.call(t.childNodes) : null, a, r ? r.__e : t.firstChild, n, o), ie(a, A, o);
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function it(A) {
|
|
276
276
|
function t(e) {
|
|
277
277
|
var n, r;
|
|
278
278
|
return this.getChildContext || (n = /* @__PURE__ */ new Set(), (r = {})[t.__c] = this, this.getChildContext = function() {
|
|
@@ -302,88 +302,88 @@ zA = ae.slice, S = { __e: function(A, t, e, n) {
|
|
|
302
302
|
A = l;
|
|
303
303
|
}
|
|
304
304
|
throw A;
|
|
305
|
-
} }, Ae = 0,
|
|
305
|
+
} }, Ae = 0, nA.prototype.setState = function(A, t) {
|
|
306
306
|
var e;
|
|
307
|
-
e = this.__s != null && this.__s != this.state ? this.__s : this.__s =
|
|
308
|
-
},
|
|
307
|
+
e = this.__s != null && this.__s != this.state ? this.__s : this.__s = aA({}, this.state), typeof A == "function" && (A = A(aA({}, e), this.props)), A && aA(e, A), A != null && this.__v && (t && this._sb.push(t), HA(this));
|
|
308
|
+
}, nA.prototype.forceUpdate = function(A) {
|
|
309
309
|
this.__v && (this.__e = !0, A && this.__h.push(A), HA(this));
|
|
310
|
-
},
|
|
310
|
+
}, nA.prototype.render = F, sA = [], te = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, ee = function(A, t) {
|
|
311
311
|
return A.__v.__b - t.__v.__b;
|
|
312
312
|
}, LA.__r = 0, ne = /(PointerCapture)$|Capture$/i, at = 0, YA = Ct(!1), ZA = Ct(!0), re = 0;
|
|
313
313
|
var Je = 0;
|
|
314
314
|
function u(A, t, e, n, r, a) {
|
|
315
315
|
t || (t = {});
|
|
316
|
-
var o, l,
|
|
317
|
-
if ("ref" in
|
|
318
|
-
var s = { type: A, props:
|
|
319
|
-
if (typeof A == "function" && (o = A.defaultProps)) for (l in o)
|
|
316
|
+
var o, l, i = t;
|
|
317
|
+
if ("ref" in i) for (l in i = {}, t) l == "ref" ? o = t[l] : i[l] = t[l];
|
|
318
|
+
var s = { type: A, props: i, key: e, ref: o, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Je, __i: -1, __u: 0, __source: r, __self: a };
|
|
319
|
+
if (typeof A == "function" && (o = A.defaultProps)) for (l in o) i[l] === void 0 && (i[l] = o[l]);
|
|
320
320
|
return S.vnode && S.vnode(s), s;
|
|
321
321
|
}
|
|
322
|
-
const
|
|
323
|
-
var
|
|
322
|
+
const ct = "2.3.0", q = it({});
|
|
323
|
+
var pA, U, qA, Mt, wA = 0, pe = [], G = S, kt = G.__b, Bt = G.__r, St = G.diffed, Pt = G.__c, Xt = G.unmount, Tt = G.__;
|
|
324
324
|
function UA(A, t) {
|
|
325
|
-
G.__h && G.__h(
|
|
326
|
-
var e =
|
|
325
|
+
G.__h && G.__h(U, A, wA || t), wA = 0;
|
|
326
|
+
var e = U.__H || (U.__H = { __: [], __h: [] });
|
|
327
327
|
return A >= e.__.length && e.__.push({}), e.__[A];
|
|
328
328
|
}
|
|
329
|
-
function
|
|
330
|
-
return
|
|
329
|
+
function z(A) {
|
|
330
|
+
return wA = 1, xe(me, A);
|
|
331
331
|
}
|
|
332
332
|
function xe(A, t, e) {
|
|
333
|
-
var n = UA(
|
|
333
|
+
var n = UA(pA++, 2);
|
|
334
334
|
if (n.t = A, !n.__c && (n.__ = [e ? e(t) : me(void 0, t), function(l) {
|
|
335
|
-
var
|
|
336
|
-
|
|
337
|
-
}], n.__c =
|
|
338
|
-
var r = function(l,
|
|
335
|
+
var i = n.__N ? n.__N[0] : n.__[0], s = n.t(i, l);
|
|
336
|
+
i !== s && (n.__N = [s, n.__[1]], n.__c.setState({}));
|
|
337
|
+
}], n.__c = U, !U.__f)) {
|
|
338
|
+
var r = function(l, i, s) {
|
|
339
339
|
if (!n.__c.__H) return !0;
|
|
340
340
|
var p = n.__c.__H.__.filter(function(f) {
|
|
341
341
|
return !!f.__c;
|
|
342
342
|
});
|
|
343
343
|
if (p.every(function(f) {
|
|
344
344
|
return !f.__N;
|
|
345
|
-
})) return !a || a.call(this, l,
|
|
346
|
-
var
|
|
345
|
+
})) return !a || a.call(this, l, i, s);
|
|
346
|
+
var c = n.__c.props !== l;
|
|
347
347
|
return p.forEach(function(f) {
|
|
348
348
|
if (f.__N) {
|
|
349
349
|
var d = f.__[0];
|
|
350
|
-
f.__ = f.__N, f.__N = void 0, d !== f.__[0] && (
|
|
350
|
+
f.__ = f.__N, f.__N = void 0, d !== f.__[0] && (c = !0);
|
|
351
351
|
}
|
|
352
|
-
}), a && a.call(this, l,
|
|
352
|
+
}), a && a.call(this, l, i, s) || c;
|
|
353
353
|
};
|
|
354
|
-
|
|
355
|
-
var a =
|
|
356
|
-
|
|
354
|
+
U.__f = !0;
|
|
355
|
+
var a = U.shouldComponentUpdate, o = U.componentWillUpdate;
|
|
356
|
+
U.componentWillUpdate = function(l, i, s) {
|
|
357
357
|
if (this.__e) {
|
|
358
358
|
var p = a;
|
|
359
|
-
a = void 0, r(l,
|
|
359
|
+
a = void 0, r(l, i, s), a = p;
|
|
360
360
|
}
|
|
361
|
-
o && o.call(this, l,
|
|
362
|
-
},
|
|
361
|
+
o && o.call(this, l, i, s);
|
|
362
|
+
}, U.shouldComponentUpdate = r;
|
|
363
363
|
}
|
|
364
364
|
return n.__N || n.__;
|
|
365
365
|
}
|
|
366
366
|
function V(A, t) {
|
|
367
|
-
var e = UA(
|
|
368
|
-
!G.__s && fe(e.__H, t) && (e.__ = A, e.u = t,
|
|
367
|
+
var e = UA(pA++, 3);
|
|
368
|
+
!G.__s && fe(e.__H, t) && (e.__ = A, e.u = t, U.__H.__h.push(e));
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
return
|
|
370
|
+
function tA(A) {
|
|
371
|
+
return wA = 5, cA(function() {
|
|
372
372
|
return { current: A };
|
|
373
373
|
}, []);
|
|
374
374
|
}
|
|
375
|
-
function
|
|
376
|
-
var e = UA(
|
|
375
|
+
function cA(A, t) {
|
|
376
|
+
var e = UA(pA++, 7);
|
|
377
377
|
return fe(e.__H, t) && (e.__ = A(), e.__H = t, e.__h = A), e.__;
|
|
378
378
|
}
|
|
379
379
|
function de(A, t) {
|
|
380
|
-
return
|
|
380
|
+
return wA = 8, cA(function() {
|
|
381
381
|
return A;
|
|
382
382
|
}, t);
|
|
383
383
|
}
|
|
384
384
|
function E(A) {
|
|
385
|
-
var t =
|
|
386
|
-
return e.c = A, t ? (e.__ == null && (e.__ = !0, t.sub(
|
|
385
|
+
var t = U.context[A.__c], e = UA(pA++, 9);
|
|
386
|
+
return e.c = A, t ? (e.__ == null && (e.__ = !0, t.sub(U)), t.props.value) : A.__;
|
|
387
387
|
}
|
|
388
388
|
function qe() {
|
|
389
389
|
for (var A; A = pe.shift(); ) if (A.__P && A.__H) try {
|
|
@@ -393,21 +393,21 @@ function qe() {
|
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
G.__b = function(A) {
|
|
396
|
-
|
|
396
|
+
U = null, kt && kt(A);
|
|
397
397
|
}, G.__ = function(A, t) {
|
|
398
398
|
A && t.__k && t.__k.__m && (A.__m = t.__k.__m), Tt && Tt(A, t);
|
|
399
399
|
}, G.__r = function(A) {
|
|
400
|
-
Bt && Bt(A),
|
|
401
|
-
var t = (
|
|
402
|
-
t && (qA ===
|
|
400
|
+
Bt && Bt(A), pA = 0;
|
|
401
|
+
var t = (U = A.__c).__H;
|
|
402
|
+
t && (qA === U ? (t.__h = [], U.__h = [], t.__.forEach(function(e) {
|
|
403
403
|
e.__N && (e.__ = e.__N), e.u = e.__N = void 0;
|
|
404
|
-
})) : (t.__h.forEach(TA), t.__h.forEach(RA), t.__h = [],
|
|
404
|
+
})) : (t.__h.forEach(TA), t.__h.forEach(RA), t.__h = [], pA = 0)), qA = U;
|
|
405
405
|
}, G.diffed = function(A) {
|
|
406
406
|
St && St(A);
|
|
407
407
|
var t = A.__c;
|
|
408
408
|
t && t.__H && (t.__H.__h.length && (pe.push(t) !== 1 && Mt === G.requestAnimationFrame || ((Mt = G.requestAnimationFrame) || We)(qe)), t.__H.__.forEach(function(e) {
|
|
409
409
|
e.u && (e.__H = e.u), e.u = void 0;
|
|
410
|
-
})), qA =
|
|
410
|
+
})), qA = U = null;
|
|
411
411
|
}, G.__c = function(A, t) {
|
|
412
412
|
t.some(function(e) {
|
|
413
413
|
try {
|
|
@@ -439,12 +439,12 @@ function We(A) {
|
|
|
439
439
|
Qt && (t = requestAnimationFrame(e));
|
|
440
440
|
}
|
|
441
441
|
function TA(A) {
|
|
442
|
-
var t =
|
|
443
|
-
typeof e == "function" && (A.__c = void 0, e()),
|
|
442
|
+
var t = U, e = A.__c;
|
|
443
|
+
typeof e == "function" && (A.__c = void 0, e()), U = t;
|
|
444
444
|
}
|
|
445
445
|
function RA(A) {
|
|
446
|
-
var t =
|
|
447
|
-
A.__c = A.__(),
|
|
446
|
+
var t = U;
|
|
447
|
+
A.__c = A.__(), U = t;
|
|
448
448
|
}
|
|
449
449
|
function fe(A, t) {
|
|
450
450
|
return !A || A.length !== t.length || t.some(function(e, n) {
|
|
@@ -454,7 +454,7 @@ function fe(A, t) {
|
|
|
454
454
|
function me(A, t) {
|
|
455
455
|
return typeof t == "function" ? t(A) : t;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function Z() {
|
|
458
458
|
const { language: A, translations: t } = E(q);
|
|
459
459
|
function e(n) {
|
|
460
460
|
if (!t)
|
|
@@ -558,9 +558,9 @@ function Ve() {
|
|
|
558
558
|
);
|
|
559
559
|
}
|
|
560
560
|
const Ye = () => {
|
|
561
|
-
const { t: A } =
|
|
561
|
+
const { t: A } = Z(), { isTestMode: t, show_footer: e } = E(q);
|
|
562
562
|
return /* @__PURE__ */ u("div", { className: "mt-2 flex w-full flex-col items-center justify-center gap-5 text-xs", children: [
|
|
563
|
-
/* @__PURE__ */ u("a", { href: `https://moyasar.com/?ref=payment-form-v${
|
|
563
|
+
/* @__PURE__ */ u("a", { href: `https://moyasar.com/?ref=payment-form-v${ct}`, children: e && /* @__PURE__ */ u(Ve, {}) }),
|
|
564
564
|
t && /* @__PURE__ */ u("span", { class: "text-red-600", children: A("common.test_mode_disclaimer") })
|
|
565
565
|
] });
|
|
566
566
|
}, Ze = {
|
|
@@ -571,6 +571,8 @@ const Ye = () => {
|
|
|
571
571
|
"error.invalid_mobile": "رقم الجوال غير صحيح",
|
|
572
572
|
"error.invalid_otp": "رمز التحقق غير صحيح",
|
|
573
573
|
"error.invalid_request_error": "طلب دفع غير صحيح",
|
|
574
|
+
"error.invalid_client_secret": "تعذّر التحقق من جلسة الدفع. يرجى تحديث الصفحة والمحاولة مرة أخرى",
|
|
575
|
+
"error.intent_not_fulfillable": "لا يمكن إتمام هذه العملية، يرجى إعادة بدء عملية الدفع",
|
|
574
576
|
"error.mobile_not_registered": "رقم الجوال غير مسجل",
|
|
575
577
|
"error.account_inactive_error": "حساب التاجر غير نشط",
|
|
576
578
|
"error.invalid_name": "يجب إدخال الاسم الأول والأخير",
|
|
@@ -639,6 +641,8 @@ const Ye = () => {
|
|
|
639
641
|
"error.invalid_mobile": "Invalid mobile number",
|
|
640
642
|
"error.invalid_otp": "Invalid verification code",
|
|
641
643
|
"error.invalid_request_error": "Invalid payment request",
|
|
644
|
+
"error.invalid_client_secret": " We couldn't verify this payment session. Please refresh the page and try again.",
|
|
645
|
+
"error.intent_not_fulfillable": "This payment can no longer be completed, please restart the checkout",
|
|
642
646
|
"error.mobile_not_registered": "Mobile number is not registered",
|
|
643
647
|
"error.account_inactive_error": "Merchant account is not active",
|
|
644
648
|
"error.invalid_name": "First and last names are required",
|
|
@@ -723,7 +727,7 @@ function je() {
|
|
|
723
727
|
for (var A, t, e = 0, n = "", r = arguments.length; e < r; e++) (A = arguments[e]) && (t = ve(A)) && (n && (n += " "), n += t);
|
|
724
728
|
return n;
|
|
725
729
|
}
|
|
726
|
-
const
|
|
730
|
+
const rA = (...A) => je(A), NA = (A) => {
|
|
727
731
|
const d = A, {
|
|
728
732
|
children: t,
|
|
729
733
|
type: e = "button",
|
|
@@ -732,8 +736,8 @@ const tA = (...A) => je(A), _A = (A) => {
|
|
|
732
736
|
disabled: a,
|
|
733
737
|
busy: o,
|
|
734
738
|
fail: l,
|
|
735
|
-
success:
|
|
736
|
-
} = d, s =
|
|
739
|
+
success: i
|
|
740
|
+
} = d, s = gA(d, [
|
|
737
741
|
"children",
|
|
738
742
|
"type",
|
|
739
743
|
"variant",
|
|
@@ -742,22 +746,22 @@ const tA = (...A) => je(A), _A = (A) => {
|
|
|
742
746
|
"busy",
|
|
743
747
|
"fail",
|
|
744
748
|
"success"
|
|
745
|
-
]), { isProcessing: p } = E(q),
|
|
749
|
+
]), { isProcessing: p } = E(q), c = {
|
|
746
750
|
primary: "bg-primary text-white",
|
|
747
751
|
stc: "bg-stc text-white",
|
|
748
752
|
error: "bg-error text-white pointer-events-none",
|
|
749
753
|
success: "bg-success text-white"
|
|
750
754
|
};
|
|
751
755
|
function f() {
|
|
752
|
-
return l ?
|
|
756
|
+
return l ? c.error : i ? c.success : c[n];
|
|
753
757
|
}
|
|
754
758
|
return /* @__PURE__ */ u(
|
|
755
759
|
"button",
|
|
756
|
-
|
|
760
|
+
N(B({}, s), {
|
|
757
761
|
type: e,
|
|
758
762
|
disabled: p || a,
|
|
759
763
|
onClick: r,
|
|
760
|
-
class:
|
|
764
|
+
class: rA([
|
|
761
765
|
"flex h-11 w-full cursor-pointer items-center justify-center gap-2 rounded-lg px-3 py-2 transition-colors disabled:cursor-default disabled:opacity-70",
|
|
762
766
|
f(),
|
|
763
767
|
A.class,
|
|
@@ -812,7 +816,7 @@ const tA = (...A) => je(A), _A = (A) => {
|
|
|
812
816
|
]
|
|
813
817
|
}
|
|
814
818
|
),
|
|
815
|
-
|
|
819
|
+
i && /* @__PURE__ */ u(
|
|
816
820
|
"svg",
|
|
817
821
|
{
|
|
818
822
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -854,19 +858,19 @@ const tA = (...A) => je(A), _A = (A) => {
|
|
|
854
858
|
) : null, ut = ({
|
|
855
859
|
currency: A,
|
|
856
860
|
formattedAmount: t
|
|
857
|
-
}) => /* @__PURE__ */ u(
|
|
861
|
+
}) => /* @__PURE__ */ u(F, { children: [
|
|
858
862
|
/* @__PURE__ */ u(An, { currency: A }),
|
|
859
863
|
/* @__PURE__ */ u("span", { children: t })
|
|
860
|
-
] }),
|
|
861
|
-
const
|
|
864
|
+
] }), fA = (A) => {
|
|
865
|
+
const i = A, { name: t, placeholder: e, type: n = "text", onBlur: r, disabled: a } = i, o = gA(i, ["name", "placeholder", "type", "onBlur", "disabled"]), { isProcessing: l } = E(q);
|
|
862
866
|
return /* @__PURE__ */ u(
|
|
863
867
|
"input",
|
|
864
|
-
|
|
868
|
+
N(B({}, o), {
|
|
865
869
|
dir: "ltr",
|
|
866
870
|
id: t,
|
|
867
871
|
name: t,
|
|
868
872
|
disabled: l || a,
|
|
869
|
-
class:
|
|
873
|
+
class: rA([
|
|
870
874
|
"relative block w-full rounded-lg border-0 px-4 py-2 text-sm text-black placeholder-gray-300 shadow-input focus:z-[2] focus:shadow-input-focus focus:outline-none",
|
|
871
875
|
A.class,
|
|
872
876
|
l && "pointer-events-none grayscale",
|
|
@@ -880,7 +884,7 @@ const tA = (...A) => je(A), _A = (A) => {
|
|
|
880
884
|
}
|
|
881
885
|
})
|
|
882
886
|
);
|
|
883
|
-
}, pt =
|
|
887
|
+
}, pt = it({});
|
|
884
888
|
function tn(A, t) {
|
|
885
889
|
for (var e in t) A[e] = t[e];
|
|
886
890
|
return A;
|
|
@@ -890,15 +894,15 @@ function Lt(A, t) {
|
|
|
890
894
|
for (var n in t) if (n !== "__source" && A[n] !== t[n]) return !0;
|
|
891
895
|
return !1;
|
|
892
896
|
}
|
|
893
|
-
function
|
|
897
|
+
function _t(A, t) {
|
|
894
898
|
this.props = A, this.context = t;
|
|
895
899
|
}
|
|
896
|
-
(
|
|
900
|
+
(_t.prototype = new nA()).isPureReactComponent = !0, _t.prototype.shouldComponentUpdate = function(A, t) {
|
|
897
901
|
return Lt(this.props, A) || Lt(this.state, t);
|
|
898
902
|
};
|
|
899
|
-
var
|
|
903
|
+
var Nt = S.__b;
|
|
900
904
|
S.__b = function(A) {
|
|
901
|
-
A.type && A.type.__f && A.ref && (A.props.ref = A.ref, A.ref = null),
|
|
905
|
+
A.type && A.type.__f && A.ref && (A.props.ref = A.ref, A.ref = null), Nt && Nt(A);
|
|
902
906
|
};
|
|
903
907
|
var en = S.__e;
|
|
904
908
|
S.__e = function(A, t, e, n) {
|
|
@@ -933,7 +937,7 @@ function BA() {
|
|
|
933
937
|
S.unmount = function(A) {
|
|
934
938
|
var t = A.__c;
|
|
935
939
|
t && t.__R && t.__R(), t && 32 & A.__u && (A.type = null), It && It(A);
|
|
936
|
-
}, (WA.prototype = new
|
|
940
|
+
}, (WA.prototype = new nA()).__c = function(A, t) {
|
|
937
941
|
var e = t.__c, n = this;
|
|
938
942
|
n.o == null && (n.o = []), n.o.push(e);
|
|
939
943
|
var r = ye(n.__v), a = !1, o = function() {
|
|
@@ -943,8 +947,8 @@ S.unmount = function(A) {
|
|
|
943
947
|
var l = function() {
|
|
944
948
|
if (!--n.__u) {
|
|
945
949
|
if (n.state.__a) {
|
|
946
|
-
var
|
|
947
|
-
n.__v.__k[0] = he(
|
|
950
|
+
var i = n.state.__a;
|
|
951
|
+
n.__v.__k[0] = he(i, i.__c.__P, i.__c.__O);
|
|
948
952
|
}
|
|
949
953
|
var s;
|
|
950
954
|
for (n.setState({ __a: n.__b = null }); s = n.o.pop(); ) s.forceUpdate();
|
|
@@ -961,8 +965,8 @@ S.unmount = function(A) {
|
|
|
961
965
|
}
|
|
962
966
|
this.__b = null;
|
|
963
967
|
}
|
|
964
|
-
var r = t.__a && KA(
|
|
965
|
-
return r && (r.__u &= -33), [KA(
|
|
968
|
+
var r = t.__a && KA(F, null, A.fallback);
|
|
969
|
+
return r && (r.__u &= -33), [KA(F, null, t.__a ? null : A.children), r];
|
|
966
970
|
};
|
|
967
971
|
var Ot = function(A, t, e) {
|
|
968
972
|
if (++e[1] === e[0] && A.l.delete(t), A.props.revealOrder && (A.props.revealOrder[0] !== "t" || !A.l.size)) for (e = A.i; e; ) {
|
|
@@ -971,7 +975,7 @@ var Ot = function(A, t, e) {
|
|
|
971
975
|
A.i = e = e[2];
|
|
972
976
|
}
|
|
973
977
|
};
|
|
974
|
-
(BA.prototype = new
|
|
978
|
+
(BA.prototype = new nA()).__a = function(A) {
|
|
975
979
|
var t = this, e = ye(t.__v), n = t.l.get(A);
|
|
976
980
|
return n[0]++, function(r) {
|
|
977
981
|
var a = function() {
|
|
@@ -981,7 +985,7 @@ var Ot = function(A, t, e) {
|
|
|
981
985
|
};
|
|
982
986
|
}, BA.prototype.render = function(A) {
|
|
983
987
|
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
984
|
-
var t =
|
|
988
|
+
var t = _A(A.children);
|
|
985
989
|
A.revealOrder && A.revealOrder[0] === "b" && t.reverse();
|
|
986
990
|
for (var e = t.length; e--; ) this.l.set(t[e], this.i = [1, 0, this.i]);
|
|
987
991
|
return A.children;
|
|
@@ -994,8 +998,8 @@ var Ot = function(A, t, e) {
|
|
|
994
998
|
var nn = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.element") || 60103, rn = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, an = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, on = /[A-Z0-9]/g, ln = typeof document != "undefined", sn = function(A) {
|
|
995
999
|
return (typeof Symbol != "undefined" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(A);
|
|
996
1000
|
};
|
|
997
|
-
|
|
998
|
-
Object.defineProperty(
|
|
1001
|
+
nA.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(A) {
|
|
1002
|
+
Object.defineProperty(nA.prototype, A, { configurable: !0, get: function() {
|
|
999
1003
|
return this["UNSAFE_" + A];
|
|
1000
1004
|
}, set: function(t) {
|
|
1001
1005
|
Object.defineProperty(this, A, { configurable: !0, writable: !0, value: t });
|
|
@@ -1022,13 +1026,13 @@ S.vnode = function(A) {
|
|
|
1022
1026
|
for (var o in e) {
|
|
1023
1027
|
var l = e[o];
|
|
1024
1028
|
if (!(o === "value" && "defaultValue" in e && l == null || ln && o === "children" && n === "noscript" || o === "class" || o === "className")) {
|
|
1025
|
-
var
|
|
1026
|
-
o === "defaultValue" && "value" in e && e.value == null ? o = "value" : o === "download" && l === !0 ? l = "" :
|
|
1029
|
+
var i = o.toLowerCase();
|
|
1030
|
+
o === "defaultValue" && "value" in e && e.value == null ? o = "value" : o === "download" && l === !0 ? l = "" : i === "translate" && l === "no" ? l = !1 : i[0] === "o" && i[1] === "n" ? i === "ondoubleclick" ? o = "ondblclick" : i !== "onchange" || n !== "input" && n !== "textarea" || sn(e.type) ? i === "onfocus" ? o = "onfocusin" : i === "onblur" ? o = "onfocusout" : an.test(o) && (o = i) : i = o = "oninput" : a && rn.test(o) ? o = o.replace(on, "-$&").toLowerCase() : l === null && (l = void 0), i === "oninput" && r[o = i] && (o = "oninputCapture"), r[o] = l;
|
|
1027
1031
|
}
|
|
1028
1032
|
}
|
|
1029
|
-
n == "select" && r.multiple && Array.isArray(r.value) && (r.value =
|
|
1033
|
+
n == "select" && r.multiple && Array.isArray(r.value) && (r.value = _A(e.children).forEach(function(s) {
|
|
1030
1034
|
s.props.selected = r.value.indexOf(s.props.value) != -1;
|
|
1031
|
-
})), n == "select" && r.defaultValue != null && (r.value =
|
|
1035
|
+
})), n == "select" && r.defaultValue != null && (r.value = _A(e.children).forEach(function(s) {
|
|
1032
1036
|
s.props.selected = r.multiple ? r.defaultValue.indexOf(s.props.value) != -1 : r.defaultValue == s.props.value;
|
|
1033
1037
|
})), e.class && !e.className ? (r.class = e.class, Object.defineProperty(r, "className", dn)) : (e.className && !e.class || e.class && e.className) && (r.class = r.className = e.className), t.props = r;
|
|
1034
1038
|
}(A), A.$$typeof = nn, Ut && Ut(A);
|
|
@@ -1043,59 +1047,59 @@ S.diffed = function(A) {
|
|
|
1043
1047
|
var t = A.props, e = A.__e;
|
|
1044
1048
|
e != null && A.type === "textarea" && "value" in t && t.value !== e.value && (e.value = t.value == null ? "" : t.value);
|
|
1045
1049
|
};
|
|
1046
|
-
function
|
|
1047
|
-
var r = this, a =
|
|
1050
|
+
function mA(A, t, e, n) {
|
|
1051
|
+
var r = this, a = tA(null), o = tA(0), l = tA(0), i = tA(null), s = tA([]), p = tA(), c = tA(), f = tA(A), d = tA(!0);
|
|
1048
1052
|
f.current = A;
|
|
1049
|
-
var y = typeof window != "undefined",
|
|
1053
|
+
var y = typeof window != "undefined", b = !t && t !== 0 && y;
|
|
1050
1054
|
if (typeof A != "function") throw new TypeError("Expected a function");
|
|
1051
1055
|
t = +t || 0;
|
|
1052
|
-
var v = !!(e = e || {}).leading, m = !("trailing" in e) || !!e.trailing, g = "maxWait" in e,
|
|
1056
|
+
var v = !!(e = e || {}).leading, m = !("trailing" in e) || !!e.trailing, g = "maxWait" in e, D = "debounceOnServer" in e && !!e.debounceOnServer, w = g ? Math.max(+e.maxWait || 0, t) : null;
|
|
1053
1057
|
V(function() {
|
|
1054
1058
|
return d.current = !0, function() {
|
|
1055
1059
|
d.current = !1;
|
|
1056
1060
|
};
|
|
1057
1061
|
}, []);
|
|
1058
|
-
var
|
|
1059
|
-
var
|
|
1060
|
-
var
|
|
1061
|
-
return s.current = p.current = null, o.current =
|
|
1062
|
-
},
|
|
1063
|
-
|
|
1064
|
-
},
|
|
1062
|
+
var C = cA(function() {
|
|
1063
|
+
var M = function(_) {
|
|
1064
|
+
var T = s.current, Y = p.current;
|
|
1065
|
+
return s.current = p.current = null, o.current = _, l.current = l.current || _, c.current = f.current.apply(Y, T);
|
|
1066
|
+
}, k = function(_, T) {
|
|
1067
|
+
b && cancelAnimationFrame(i.current), i.current = b ? requestAnimationFrame(_) : setTimeout(_, T);
|
|
1068
|
+
}, Q = function(_) {
|
|
1065
1069
|
if (!d.current) return !1;
|
|
1066
|
-
var
|
|
1067
|
-
return !a.current ||
|
|
1068
|
-
},
|
|
1069
|
-
return
|
|
1070
|
-
},
|
|
1071
|
-
var
|
|
1072
|
-
if (v && l.current === o.current &&
|
|
1070
|
+
var T = _ - a.current;
|
|
1071
|
+
return !a.current || T >= t || T < 0 || g && _ - o.current >= w;
|
|
1072
|
+
}, P = function(_) {
|
|
1073
|
+
return i.current = null, m && s.current ? M(_) : (s.current = p.current = null, c.current);
|
|
1074
|
+
}, O = function _() {
|
|
1075
|
+
var T = Date.now();
|
|
1076
|
+
if (v && l.current === o.current && L(), Q(T)) return P(T);
|
|
1073
1077
|
if (d.current) {
|
|
1074
|
-
var
|
|
1075
|
-
|
|
1078
|
+
var Y = t - (T - a.current), $ = g ? Math.min(Y, w - (T - o.current)) : Y;
|
|
1079
|
+
k(_, $);
|
|
1076
1080
|
}
|
|
1077
|
-
},
|
|
1078
|
-
},
|
|
1079
|
-
if (y ||
|
|
1080
|
-
var
|
|
1081
|
-
if (s.current = [].slice.call(arguments), p.current = r, a.current =
|
|
1082
|
-
if (!
|
|
1083
|
-
if (g) return
|
|
1081
|
+
}, L = function() {
|
|
1082
|
+
}, X = function() {
|
|
1083
|
+
if (y || D) {
|
|
1084
|
+
var _ = Date.now(), T = Q(_);
|
|
1085
|
+
if (s.current = [].slice.call(arguments), p.current = r, a.current = _, T) {
|
|
1086
|
+
if (!i.current && d.current) return o.current = a.current, k(O, t), v ? M(a.current) : c.current;
|
|
1087
|
+
if (g) return k(O, t), M(a.current);
|
|
1084
1088
|
}
|
|
1085
|
-
return
|
|
1089
|
+
return i.current || k(O, t), c.current;
|
|
1086
1090
|
}
|
|
1087
1091
|
};
|
|
1088
|
-
return
|
|
1089
|
-
|
|
1090
|
-
},
|
|
1091
|
-
return !!
|
|
1092
|
-
},
|
|
1093
|
-
return
|
|
1094
|
-
},
|
|
1095
|
-
}, [v, g, t,
|
|
1096
|
-
return
|
|
1097
|
-
}
|
|
1098
|
-
var fn = Object.defineProperty, mn = (A, t, e) => t in A ? fn(A, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : A[t] = e,
|
|
1092
|
+
return X.cancel = function() {
|
|
1093
|
+
i.current && (b ? cancelAnimationFrame(i.current) : clearTimeout(i.current)), o.current = 0, s.current = a.current = p.current = i.current = null;
|
|
1094
|
+
}, X.isPending = function() {
|
|
1095
|
+
return !!i.current;
|
|
1096
|
+
}, X.flush = function() {
|
|
1097
|
+
return i.current ? P(Date.now()) : c.current;
|
|
1098
|
+
}, X;
|
|
1099
|
+
}, [v, g, t, w, m, b, y, D, n]);
|
|
1100
|
+
return C;
|
|
1101
|
+
}
|
|
1102
|
+
var fn = Object.defineProperty, mn = (A, t, e) => t in A ? fn(A, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : A[t] = e, hA = (A, t, e) => mn(A, typeof t != "symbol" ? t + "" : t, e);
|
|
1099
1103
|
const Jt = {
|
|
1100
1104
|
"#": { pattern: /[0-9]/ },
|
|
1101
1105
|
"@": { pattern: /[a-zA-Z]/ },
|
|
@@ -1111,25 +1115,25 @@ const Jt = {
|
|
|
1111
1115
|
}, vn = (A, t = !0, e) => {
|
|
1112
1116
|
var v, m, g;
|
|
1113
1117
|
var n, r, a, o;
|
|
1114
|
-
const l = ((n = e.number) == null ? void 0 : n.unsigned) !== !0 && A.startsWith("-") ? "-" : "",
|
|
1115
|
-
let s = qt(0,
|
|
1116
|
-
const p = s.formatToParts(1000.12),
|
|
1118
|
+
const l = ((n = e.number) == null ? void 0 : n.unsigned) !== !0 && A.startsWith("-") ? "-" : "", i = (v = (r = e.number) == null ? void 0 : r.fraction) != null ? v : 0;
|
|
1119
|
+
let s = qt(0, i, e);
|
|
1120
|
+
const p = s.formatToParts(1000.12), c = (m = (a = p.find((D) => D.type === "group")) == null ? void 0 : a.value) != null ? m : " ", f = (g = (o = p.find((D) => D.type === "decimal")) == null ? void 0 : o.value) != null ? g : ".", d = xt(A, c, f);
|
|
1117
1121
|
if (Number.isNaN(parseFloat(d))) return l;
|
|
1118
1122
|
const y = d.split(".");
|
|
1119
1123
|
if (y[1] != null && y[1].length >= 1) {
|
|
1120
|
-
const
|
|
1121
|
-
s = qt(
|
|
1124
|
+
const D = y[1].length <= i ? y[1].length : i;
|
|
1125
|
+
s = qt(D, i, e);
|
|
1122
1126
|
}
|
|
1123
|
-
let
|
|
1124
|
-
return t ?
|
|
1127
|
+
let b = s.format(parseFloat(d));
|
|
1128
|
+
return t ? i > 0 && d.endsWith(".") && !d.slice(0, -1).includes(".") && (b += f) : b = xt(b, c, f), l + b;
|
|
1125
1129
|
};
|
|
1126
1130
|
class gn {
|
|
1127
1131
|
constructor(t = {}) {
|
|
1128
1132
|
var n;
|
|
1129
|
-
|
|
1130
|
-
const e =
|
|
1133
|
+
hA(this, "opts", {}), hA(this, "memo", /* @__PURE__ */ new Map());
|
|
1134
|
+
const e = B({}, t);
|
|
1131
1135
|
if (e.tokens != null) {
|
|
1132
|
-
e.tokens = e.tokensReplace ?
|
|
1136
|
+
e.tokens = e.tokensReplace ? B({}, e.tokens) : B(B({}, Jt), e.tokens);
|
|
1133
1137
|
for (const r of Object.values(e.tokens))
|
|
1134
1138
|
typeof r.pattern == "string" && (r.pattern = new RegExp(r.pattern));
|
|
1135
1139
|
} else
|
|
@@ -1177,12 +1181,12 @@ class gn {
|
|
|
1177
1181
|
if (e == null) return t;
|
|
1178
1182
|
const r = `v=${t},mr=${e},m=${n ? 1 : 0}`;
|
|
1179
1183
|
if (this.memo.has(r)) return this.memo.get(r);
|
|
1180
|
-
const { mask: a, escaped: o } = this.escapeMask(e), l = [],
|
|
1181
|
-
let y,
|
|
1184
|
+
const { mask: a, escaped: o } = this.escapeMask(e), l = [], i = this.opts.tokens != null ? this.opts.tokens : {}, s = this.isReversed() ? -1 : 1, p = this.isReversed() ? "unshift" : "push", c = this.isReversed() ? 0 : a.length - 1, f = this.isReversed() ? () => v > -1 && m > -1 : () => v < a.length && m < t.length, d = (D) => !this.isReversed() && D <= c || this.isReversed() && D >= c;
|
|
1185
|
+
let y, b = -1, v = this.isReversed() ? a.length - 1 : 0, m = this.isReversed() ? t.length - 1 : 0, g = !1;
|
|
1182
1186
|
for (; f(); ) {
|
|
1183
|
-
const
|
|
1184
|
-
if (!o.includes(v) &&
|
|
1185
|
-
for (; d(v) && (
|
|
1187
|
+
const D = a.charAt(v), w = i[D], C = (w == null ? void 0 : w.transform) != null ? w.transform(t.charAt(m)) : t.charAt(m);
|
|
1188
|
+
if (!o.includes(v) && w != null ? (C.match(w.pattern) != null ? (l[p](C), w.repeated ? (b === -1 ? b = v : v === c && v !== b && (v = b - s), c === b && (v -= s)) : w.multiple && (g = !0, v -= s), v += s) : w.multiple ? g && (v += s, m -= s, g = !1) : C === y ? y = void 0 : w.optional && (v += s, m -= s), m += s) : (n && !this.isEager() && l[p](D), C === D && !this.isEager() ? m += s : y = D, this.isEager() || (v += s)), this.isEager())
|
|
1189
|
+
for (; d(v) && (i[a.charAt(v)] == null || o.includes(v)); ) {
|
|
1186
1190
|
if (n) {
|
|
1187
1191
|
if (l[p](a.charAt(v)), t.charAt(m) === a.charAt(v)) {
|
|
1188
1192
|
v += s, m += s;
|
|
@@ -1196,7 +1200,7 @@ class gn {
|
|
|
1196
1200
|
}
|
|
1197
1201
|
}
|
|
1198
1202
|
const we = (A) => JSON.parse(A.replaceAll("'", '"')), hn = (A, t = {}) => {
|
|
1199
|
-
const e =
|
|
1203
|
+
const e = B({}, t);
|
|
1200
1204
|
A.dataset.maska != null && A.dataset.maska !== "" && (e.mask = yn(A.dataset.maska)), A.dataset.maskaEager != null && (e.eager = SA(A.dataset.maskaEager)), A.dataset.maskaReversed != null && (e.reversed = SA(A.dataset.maskaReversed)), A.dataset.maskaTokensReplace != null && (e.tokensReplace = SA(A.dataset.maskaTokensReplace)), A.dataset.maskaTokens != null && (e.tokens = wn(A.dataset.maskaTokens));
|
|
1201
1205
|
const n = {};
|
|
1202
1206
|
return A.dataset.maskaNumberLocale != null && (n.locale = A.dataset.maskaNumberLocale), A.dataset.maskaNumberFraction != null && (n.fraction = parseInt(A.dataset.maskaNumberFraction)), A.dataset.maskaNumberUnsigned != null && (n.unsigned = SA(A.dataset.maskaNumberUnsigned)), (A.dataset.maskaNumber != null || Object.values(n).length > 0) && (e.number = n), e;
|
|
@@ -1216,17 +1220,17 @@ const we = (A) => JSON.parse(A.replaceAll("'", '"')), hn = (A, t = {}) => {
|
|
|
1216
1220
|
};
|
|
1217
1221
|
class EA {
|
|
1218
1222
|
constructor(t, e = {}) {
|
|
1219
|
-
|
|
1223
|
+
hA(this, "items", /* @__PURE__ */ new Map()), hA(this, "eventAbortController"), hA(this, "onInput", (n) => {
|
|
1220
1224
|
if (n instanceof CustomEvent && n.type === "input" && !n.isTrusted && !n.bubbles)
|
|
1221
1225
|
return;
|
|
1222
1226
|
const r = n.target, a = this.items.get(r);
|
|
1223
1227
|
if (a === void 0) return;
|
|
1224
|
-
const o = "inputType" in n && n.inputType.startsWith("delete"), l = a.isEager(),
|
|
1225
|
-
this.fixCursor(r, o, () => this.setValue(r,
|
|
1228
|
+
const o = "inputType" in n && n.inputType.startsWith("delete"), l = a.isEager(), i = o && l && a.unmasked(r.value) === "" ? "" : r.value;
|
|
1229
|
+
this.fixCursor(r, o, () => this.setValue(r, i));
|
|
1226
1230
|
}), this.options = e, this.eventAbortController = new AbortController(), this.init(this.getInputs(t));
|
|
1227
1231
|
}
|
|
1228
1232
|
update(t = {}) {
|
|
1229
|
-
this.options =
|
|
1233
|
+
this.options = B({}, t), this.init(Array.from(this.items.keys()));
|
|
1230
1234
|
}
|
|
1231
1235
|
updateValue(t) {
|
|
1232
1236
|
var e;
|
|
@@ -1251,16 +1255,16 @@ class EA {
|
|
|
1251
1255
|
}
|
|
1252
1256
|
getOptions(t) {
|
|
1253
1257
|
const o = t, { onMaska: e, preProcess: n, postProcess: r } = o;
|
|
1254
|
-
return
|
|
1258
|
+
return gA(o, ["onMaska", "preProcess", "postProcess"]);
|
|
1255
1259
|
}
|
|
1256
1260
|
fixCursor(t, e, n) {
|
|
1257
1261
|
var r, a;
|
|
1258
1262
|
const o = t.selectionStart, l = t.value;
|
|
1259
1263
|
if (n(), o === null || o === l.length && !e) return;
|
|
1260
|
-
const
|
|
1261
|
-
if (
|
|
1264
|
+
const i = t.value, s = l.slice(0, o), p = i.slice(0, o), c = (r = this.processInput(t, s)) == null ? void 0 : r.unmasked, f = (a = this.processInput(t, p)) == null ? void 0 : a.unmasked;
|
|
1265
|
+
if (c === void 0 || f === void 0) return;
|
|
1262
1266
|
let d = o;
|
|
1263
|
-
s !== p && (d += e ?
|
|
1267
|
+
s !== p && (d += e ? i.length - l.length : c.length - f.length), t.setSelectionRange(d, d);
|
|
1264
1268
|
}
|
|
1265
1269
|
setValue(t, e) {
|
|
1266
1270
|
const n = this.processInput(t, e);
|
|
@@ -1280,14 +1284,14 @@ class EA {
|
|
|
1280
1284
|
}
|
|
1281
1285
|
}
|
|
1282
1286
|
const bn = ({ showOtp: A, value: t, setValue: e }) => {
|
|
1283
|
-
const { t: n } =
|
|
1284
|
-
const p = s.target, { value:
|
|
1285
|
-
e(
|
|
1286
|
-
},
|
|
1287
|
+
const { t: n } = Z(), { handleBlur: r, err: a } = E(pt), o = "### ### ####", l = (s) => {
|
|
1288
|
+
const p = s.target, { value: c } = p;
|
|
1289
|
+
e(c);
|
|
1290
|
+
}, i = mA(r, 1e3);
|
|
1287
1291
|
return V(() => {
|
|
1288
1292
|
new EA('[name="mysr-stc-mobile"]');
|
|
1289
1293
|
}, []), /* @__PURE__ */ u(
|
|
1290
|
-
|
|
1294
|
+
fA,
|
|
1291
1295
|
{
|
|
1292
1296
|
name: "mysr-stc-mobile",
|
|
1293
1297
|
label: n("form.mobile"),
|
|
@@ -1296,13 +1300,13 @@ const bn = ({ showOtp: A, value: t, setValue: e }) => {
|
|
|
1296
1300
|
maxLength: o.length,
|
|
1297
1301
|
autocomplete: "tel-national",
|
|
1298
1302
|
placeholder: "05x xxx xxxx",
|
|
1299
|
-
class:
|
|
1303
|
+
class: rA(["animate-fade-in text-center", !A && "hidden"]),
|
|
1300
1304
|
onAnimationEnd: (s) => {
|
|
1301
1305
|
s.target && s.target.focus();
|
|
1302
1306
|
},
|
|
1303
1307
|
value: t,
|
|
1304
1308
|
onKeyUp: (s) => {
|
|
1305
|
-
l(s),
|
|
1309
|
+
l(s), i(s);
|
|
1306
1310
|
},
|
|
1307
1311
|
onBlur: r,
|
|
1308
1312
|
error: a.phone,
|
|
@@ -1311,14 +1315,14 @@ const bn = ({ showOtp: A, value: t, setValue: e }) => {
|
|
|
1311
1315
|
}
|
|
1312
1316
|
);
|
|
1313
1317
|
}, Cn = ({ showPhone: A, value: t, setValue: e }) => {
|
|
1314
|
-
const { t: n } =
|
|
1315
|
-
const s =
|
|
1318
|
+
const { t: n } = Z(), { handleBlur: r, err: a } = E(pt), o = (i) => {
|
|
1319
|
+
const s = i.target, { value: p } = s;
|
|
1316
1320
|
e(p);
|
|
1317
|
-
}, l =
|
|
1321
|
+
}, l = mA(r, 1e3);
|
|
1318
1322
|
return V(() => {
|
|
1319
1323
|
new EA('[name="mysr-stc-otp"]');
|
|
1320
1324
|
}, []), /* @__PURE__ */ u(
|
|
1321
|
-
|
|
1325
|
+
fA,
|
|
1322
1326
|
{
|
|
1323
1327
|
name: "mysr-stc-otp",
|
|
1324
1328
|
label: n("form.otp"),
|
|
@@ -1326,13 +1330,13 @@ const bn = ({ showOtp: A, value: t, setValue: e }) => {
|
|
|
1326
1330
|
inputMode: "numeric",
|
|
1327
1331
|
autocomplete: "one-time-code",
|
|
1328
1332
|
placeholder: n("form.code"),
|
|
1329
|
-
class:
|
|
1330
|
-
onAnimationEnd: (
|
|
1331
|
-
|
|
1333
|
+
class: rA(["animate-fade-in text-center", A && "hidden"]),
|
|
1334
|
+
onAnimationEnd: (i) => {
|
|
1335
|
+
i.target && i.target.focus();
|
|
1332
1336
|
},
|
|
1333
1337
|
value: t,
|
|
1334
|
-
onKeyUp: (
|
|
1335
|
-
o(
|
|
1338
|
+
onKeyUp: (i) => {
|
|
1339
|
+
o(i), l(i);
|
|
1336
1340
|
},
|
|
1337
1341
|
onBlur: r,
|
|
1338
1342
|
error: a.otp,
|
|
@@ -1344,10 +1348,10 @@ const bn = ({ showOtp: A, value: t, setValue: e }) => {
|
|
|
1344
1348
|
countTo: A,
|
|
1345
1349
|
callback: t
|
|
1346
1350
|
}) => {
|
|
1347
|
-
const e =
|
|
1351
|
+
const e = tA(null), n = de(() => {
|
|
1348
1352
|
const l = A ? new Date(A).getTime() - (/* @__PURE__ */ new Date()).getTime() : 0;
|
|
1349
1353
|
return l < 0 ? 0 : l;
|
|
1350
|
-
}, [A]), [r, a] =
|
|
1354
|
+
}, [A]), [r, a] = z(n());
|
|
1351
1355
|
V(() => (e.current = setInterval(() => {
|
|
1352
1356
|
a(n());
|
|
1353
1357
|
}, 500), () => {
|
|
@@ -1356,105 +1360,121 @@ const bn = ({ showOtp: A, value: t, setValue: e }) => {
|
|
|
1356
1360
|
r === 0 && (e.current && clearInterval(e.current), typeof t == "function" && t(0));
|
|
1357
1361
|
}, [t, r]);
|
|
1358
1362
|
const o = () => {
|
|
1359
|
-
const l = Math.floor(r / 1e3 / 60 / 60),
|
|
1363
|
+
const l = Math.floor(r / 1e3 / 60 / 60), i = Math.floor((r / 1e3 / 60 / 60 - l) * 60), s = Math.floor(((r / 1e3 / 60 / 60 - l) * 60 - i) * 60);
|
|
1360
1364
|
return /* @__PURE__ */ u("span", { children: [
|
|
1361
|
-
|
|
1365
|
+
i,
|
|
1362
1366
|
":",
|
|
1363
1367
|
s < 10 ? `0${s}` : s
|
|
1364
1368
|
] });
|
|
1365
1369
|
};
|
|
1366
|
-
return !A || !r ? null : /* @__PURE__ */ u("div", { class:
|
|
1370
|
+
return !A || !r ? null : /* @__PURE__ */ u("div", { class: rA("inline-flex gap-2 text-sm"), children: o() });
|
|
1367
1371
|
}, Mn = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%20512%20174'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20xmlns:serif='http://www.serif.com/'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;'%3e%3cg%3e%3cpath%20d='M326.531,121.529l-0,-74.676l12.663,0l0,5.988c3.854,-4.818%209.567,-7.433%2016.655,-7.433c14.592,-0%2025.053,11.631%2025.053,28.286c-0,16.656%20-10.53,28.494%20-25.053,28.494c-7.157,0%20-12.801,-2.753%20-16.655,-7.571l0,26.911l-12.663,-0l-0,0.001Zm12.664,-54.716l0,13.765c2.684,5.576%207.502,9.636%2014.453,9.636c8.398,-0%2014.041,-6.264%2014.041,-16.587c0,-10.186%20-5.643,-16.381%20-14.041,-16.381c-6.951,0.069%20-11.769,3.854%20-14.453,9.567'%20style='fill:%2302aa7c;fill-rule:nonzero;'%20/%3e%3cpath%20d='M389.093,85.258c-0,-9.085%205.643,-15.417%2015.003,-16.587l21.543,-2.753l-0,-2.684c-0,-3.234%20-1.652,-4.956%20-4.68,-4.956l-27.048,0l-0,-11.493l27.53,-0c10.943,-0%2016.931,5.368%2016.931,14.867l-0,38.885l-12.802,0l0,-6.538c-3.716,5.232%20-9.841,8.19%20-17.757,8.19c-11.149,0%20-18.72,-6.813%20-18.72,-16.931m21.817,6.607c6.469,-0%2012.457,-3.648%2014.659,-9.016l0,-6.745l-16.449,2.271c-4.542,0.62%20-7.089,3.028%20-7.089,6.952c0.001,4.198%203.235,6.538%208.879,6.538'%20style='fill:%2302aa7c;fill-rule:nonzero;'%20/%3e%3cpath%20d='M447.594,110.035l9.223,0c3.51,0%205.093,-1.446%206.263,-4.749l1.652,-4.75l-19.547,-53.752l13.215,-0l12.182,37.441l0.275,0l11.632,-37.441l13.007,-0l-21.404,61.736c-2.891,8.465%20-6.746,13.008%20-16.174,13.008l-10.323,-0l-0.001,-11.493Z'%20style='fill:%2302aa7c;fill-rule:nonzero;'%20/%3e%3cpath%20d='M61.142,158.488c14.729,0%2026.842,-4.611%2034.826,-12.319c5.987,-5.92%209.497,-13.903%209.497,-23.125c0,-8.328%20-3.097,-15.83%20-8.809,-21.543c-5.712,-5.713%20-13.903,-9.911%20-24.227,-11.907l-16.931,-3.304c-7.02,-1.307%20-11.011,-4.817%20-11.011,-9.703c-0,-6.402%206.194,-10.806%2016.105,-10.806c6.194,0%2011.493,1.996%2015.003,5.506c2.202,2.409%203.716,5.506%204.198,9.016l24.433,-5.506c-0.688,-7.02%20-3.992,-13.215%20-9.016,-18.307c-8.052,-7.915%20-20.372,-12.939%20-34.894,-12.939c-13.421,-0%20-24.639,4.405%20-32.416,11.425c-6.608,6.194%20-10.324,14.521%20-10.324,23.813c0,8.121%202.616,15.003%207.915,20.234c5.3,5.3%2013.008,9.223%2023.125,11.7l16.725,3.992c8.397,1.996%2012.113,5.093%2012.113,10.599c0,6.814%20-6.194,10.806%20-16.311,10.806c-7.295,-0%20-13.215,-2.41%20-16.931,-6.402c-2.616,-2.615%20-4.198,-6.194%20-4.405,-10.117l-25.122,5.507c0.688,7.502%204.198,14.109%209.498,19.409c8.327,8.74%2021.818,13.971%2036.959,13.971m185.965,0c16.311,0%2028.838,-5.919%2037.44,-14.315c6.814,-6.608%2011.012,-14.316%2013.215,-22.231l-25.74,-8.603c-1.102,3.992%20-3.304,8.19%20-6.814,11.425c-4.198,3.992%20-9.911,6.814%20-18.101,6.814c-7.502,-0%20-14.522,-2.891%20-19.615,-7.916c-5.093,-5.299%20-8.19,-13.007%20-8.19,-22.712c0,-9.911%203.098,-17.413%208.19,-22.713c5.024,-5.093%2011.907,-7.708%2019.409,-7.708c7.915,0%2013.421,2.616%2017.413,6.608c3.303,3.304%205.299,7.502%206.607,11.7l26.222,-8.81c-1.995,-7.708%20-6.193,-15.417%20-12.319,-21.817c-8.81,-8.603%20-21.611,-14.729%20-38.542,-14.729c-15.623,0%20-29.732,5.919%20-39.849,16.105c-10.118,10.324%20-16.312,24.709%20-16.312,41.433c0,16.725%206.401,31.04%2016.725,41.433c10.047,10.117%2024.362,16.036%2040.261,16.036m-88.991,0c11.425,0%2019.615,-3.51%2023.125,-6.607l0,-23.813c-2.684,1.996%20-7.915,4.405%20-14.797,4.405c-4.886,-0%20-8.397,-1.102%20-11.012,-3.51c-2.202,-2.202%20-3.303,-5.988%20-3.303,-11.012l-0,-100.828l-29.113,0l0,29.732l58.157,0l-0,28.219l-58.157,-0l0,50.035c0,10.117%203.097,18.307%208.603,24.02c6.194,6.055%2015.278,9.359%2026.497,9.359'%20style='fill:%23502c84;fill-rule:nonzero;'%20/%3e%3c/g%3e%3c/svg%3e";
|
|
1368
1372
|
function be(A) {
|
|
1369
1373
|
return A.errors !== void 0;
|
|
1370
1374
|
}
|
|
1371
1375
|
const kn = () => {
|
|
1372
|
-
const { t: A } =
|
|
1376
|
+
const { t: A } = Z(), [t, e] = z(!1), {
|
|
1373
1377
|
given_id: n,
|
|
1374
1378
|
amount: r,
|
|
1375
1379
|
currency: a,
|
|
1376
1380
|
description: o,
|
|
1377
1381
|
publishable_api_key: l,
|
|
1378
|
-
metadata:
|
|
1382
|
+
metadata: i,
|
|
1379
1383
|
invoice_id: s,
|
|
1380
1384
|
version: p,
|
|
1381
|
-
base_url:
|
|
1385
|
+
base_url: c,
|
|
1382
1386
|
apply_coupon: f,
|
|
1383
1387
|
splits: d,
|
|
1384
1388
|
on_failure: y,
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
+
use_payment_intent: b,
|
|
1390
|
+
payment_intent: v,
|
|
1391
|
+
setFormSettings: m
|
|
1392
|
+
} = E(q), g = (k) => {
|
|
1393
|
+
m && (e(k), m((Q) => N(B({}, Q), {
|
|
1394
|
+
isProcessing: k
|
|
1389
1395
|
})));
|
|
1390
|
-
},
|
|
1396
|
+
}, D = {
|
|
1391
1397
|
amount: r,
|
|
1392
1398
|
currency: a,
|
|
1393
1399
|
description: o,
|
|
1394
1400
|
publishable_api_key: l
|
|
1395
1401
|
};
|
|
1396
|
-
n && (
|
|
1397
|
-
const
|
|
1398
|
-
if (
|
|
1399
|
-
apiError: `${A("error." +
|
|
1402
|
+
n && (D.given_id = n), i && Object.keys(i).length > 0 && (D.metadata = i), s && (D.invoice_id = s.toLowerCase()), f !== void 0 && (D.apply_coupon = f), d && (D.splits = d);
|
|
1403
|
+
const w = (k) => R(void 0, null, function* () {
|
|
1404
|
+
if (m && (m((Q) => N(B({}, Q), {
|
|
1405
|
+
apiError: `${A("error." + k.type)}, ${k.message}`
|
|
1400
1406
|
})), y))
|
|
1401
1407
|
try {
|
|
1402
|
-
yield y(
|
|
1403
|
-
} catch (
|
|
1404
|
-
console.error("An error happened when firing failure callback"), console.error(
|
|
1408
|
+
yield y(k);
|
|
1409
|
+
} catch (Q) {
|
|
1410
|
+
console.error("An error happened when firing failure callback"), console.error(Q);
|
|
1405
1411
|
}
|
|
1406
|
-
}),
|
|
1407
|
-
|
|
1412
|
+
}), C = () => {
|
|
1413
|
+
m && m((k) => N(B({}, k), { apiError: "" }));
|
|
1408
1414
|
};
|
|
1409
1415
|
return {
|
|
1410
1416
|
processing: t,
|
|
1411
|
-
postData: (
|
|
1412
|
-
updatedPaymentConfig:
|
|
1413
|
-
data:
|
|
1417
|
+
postData: (O) => R(void 0, [O], function* ({
|
|
1418
|
+
updatedPaymentConfig: k,
|
|
1419
|
+
data: Q,
|
|
1414
1420
|
path: P
|
|
1415
1421
|
}) {
|
|
1416
|
-
|
|
1417
|
-
|
|
1422
|
+
var L, X;
|
|
1423
|
+
g(!0), C();
|
|
1418
1424
|
try {
|
|
1419
|
-
const X =
|
|
1425
|
+
const _ = k, T = (L = _.payment_intent) != null ? L : v, Y = (X = _.use_payment_intent) != null ? X : b, $ = B(B(B({}, D), Q), k);
|
|
1426
|
+
delete $.use_payment_intent, delete $.payment_intent;
|
|
1427
|
+
let oA = P || `${c}/v1/payments`;
|
|
1428
|
+
if (!P && Y) {
|
|
1429
|
+
if (!(T != null && T.id) || !(T != null && T.client_secret)) {
|
|
1430
|
+
yield w({
|
|
1431
|
+
type: "invalid_client_secret",
|
|
1432
|
+
message: "A payment intent id and client secret are required to fulfill the payment.",
|
|
1433
|
+
errors: null
|
|
1434
|
+
});
|
|
1435
|
+
return;
|
|
1436
|
+
}
|
|
1437
|
+
oA = `${c}/v1/payment_intents/${T.id}/fulfill`, $.client_secret = T.client_secret;
|
|
1438
|
+
}
|
|
1439
|
+
const K = yield fetch(oA, {
|
|
1420
1440
|
method: "POST",
|
|
1421
1441
|
headers: {
|
|
1422
1442
|
"Content-Type": "application/json",
|
|
1423
1443
|
"X-Moyasar-Form-Version": p
|
|
1424
1444
|
},
|
|
1425
|
-
body: JSON.stringify(
|
|
1445
|
+
body: JSON.stringify($)
|
|
1426
1446
|
});
|
|
1427
|
-
if (!
|
|
1428
|
-
if (typeof
|
|
1429
|
-
const
|
|
1430
|
-
if (console.error("fetch error:",
|
|
1431
|
-
yield
|
|
1447
|
+
if (!K.ok) {
|
|
1448
|
+
if (typeof K == "object") {
|
|
1449
|
+
const eA = yield K.json();
|
|
1450
|
+
if (console.error("fetch error:", eA), !be(eA)) {
|
|
1451
|
+
yield w({
|
|
1432
1452
|
type: "api_error",
|
|
1433
|
-
message: `Error code: ${
|
|
1453
|
+
message: `Error code: ${K.status}`,
|
|
1434
1454
|
errors: null
|
|
1435
1455
|
});
|
|
1436
1456
|
return;
|
|
1437
1457
|
}
|
|
1438
|
-
return yield
|
|
1458
|
+
return yield w(eA), eA;
|
|
1439
1459
|
}
|
|
1440
|
-
return yield Promise.reject(
|
|
1460
|
+
return yield Promise.reject(K);
|
|
1441
1461
|
}
|
|
1442
|
-
return yield
|
|
1443
|
-
} catch (
|
|
1462
|
+
return yield K.json();
|
|
1463
|
+
} catch (_) {
|
|
1444
1464
|
if (y)
|
|
1445
1465
|
try {
|
|
1446
|
-
yield y(
|
|
1466
|
+
yield y(_);
|
|
1447
1467
|
} catch (T) {
|
|
1448
1468
|
console.error("An error happened when firing failure callback"), console.error(T);
|
|
1449
1469
|
}
|
|
1450
|
-
console.error(
|
|
1470
|
+
console.error(_);
|
|
1451
1471
|
} finally {
|
|
1452
|
-
|
|
1472
|
+
g(!1);
|
|
1453
1473
|
}
|
|
1454
1474
|
})
|
|
1455
1475
|
};
|
|
1456
1476
|
}, Bn = () => {
|
|
1457
|
-
const { apiError: A } = E(q), [t, e] =
|
|
1477
|
+
const { apiError: A } = E(q), [t, e] = z(!1);
|
|
1458
1478
|
return V(() => {
|
|
1459
1479
|
e(!!A);
|
|
1460
1480
|
}, [A]), V(() => {
|
|
@@ -1467,7 +1487,7 @@ const kn = () => {
|
|
|
1467
1487
|
}, [t]), {
|
|
1468
1488
|
fail: t
|
|
1469
1489
|
};
|
|
1470
|
-
}, Sn = (n) =>
|
|
1490
|
+
}, Sn = (n) => R(void 0, [n], function* ({
|
|
1471
1491
|
source: A,
|
|
1472
1492
|
on_initiating: t,
|
|
1473
1493
|
setFormSettings: e
|
|
@@ -1482,11 +1502,16 @@ const kn = () => {
|
|
|
1482
1502
|
"amount",
|
|
1483
1503
|
"splits",
|
|
1484
1504
|
"publishable_api_key",
|
|
1485
|
-
"currency"
|
|
1505
|
+
"currency",
|
|
1506
|
+
"save_card",
|
|
1507
|
+
"use_payment_intent",
|
|
1508
|
+
"payment_intent"
|
|
1486
1509
|
];
|
|
1487
|
-
for (const
|
|
1488
|
-
if (!l.includes(
|
|
1489
|
-
throw new Error(`Changing ${
|
|
1510
|
+
for (const i in o)
|
|
1511
|
+
if (!l.includes(i))
|
|
1512
|
+
throw new Error(`Changing ${i} is not allowed!`);
|
|
1513
|
+
if (o && "save_card" in o && typeof o.save_card != "boolean")
|
|
1514
|
+
throw new Error("save_card must be a boolean");
|
|
1490
1515
|
return o;
|
|
1491
1516
|
};
|
|
1492
1517
|
if (!t)
|
|
@@ -1497,13 +1522,13 @@ const kn = () => {
|
|
|
1497
1522
|
if (typeof a == "boolean")
|
|
1498
1523
|
return a;
|
|
1499
1524
|
if (typeof a == "object")
|
|
1500
|
-
return r(a), e && a !== null && Object.keys(a).length > 0 && e((o) =>
|
|
1525
|
+
return r(a), e && a !== null && Object.keys(a).length > 0 && e((o) => B(B({}, o), a)), a;
|
|
1501
1526
|
throw new Error(`Invalid on_initiating handler result: ${a}`);
|
|
1502
|
-
}), VA = (A, t, e) =>
|
|
1527
|
+
}), VA = (A, t, e) => R(void 0, null, function* () {
|
|
1503
1528
|
var r;
|
|
1504
1529
|
const n = `${A}${A.indexOf("?") > -1 ? "&" : "?"}id=${t.id}&status=${t.status}&message=${(r = t.source) == null ? void 0 : r.message}`;
|
|
1505
1530
|
e && typeof e == "function" ? yield e(n) : window.location.href = n;
|
|
1506
|
-
}), Pn = (e) =>
|
|
1531
|
+
}), Pn = (e) => R(void 0, [e], function* ({
|
|
1507
1532
|
payment: A,
|
|
1508
1533
|
on_completed: t
|
|
1509
1534
|
}) {
|
|
@@ -1532,7 +1557,7 @@ const kn = () => {
|
|
|
1532
1557
|
"supportsCredit",
|
|
1533
1558
|
"supportsDebit",
|
|
1534
1559
|
"supportsEMV"
|
|
1535
|
-
], $A = ["creditcard", "applepay", "samsungpay"], Wt = [
|
|
1560
|
+
], $A = ["creditcard", "applepay", "samsungpay"], Tn = ["creditcard", "applepay", "samsungpay"], Wt = [
|
|
1536
1561
|
"NTID",
|
|
1537
1562
|
"PASN",
|
|
1538
1563
|
"DRLN",
|
|
@@ -1547,7 +1572,7 @@ const kn = () => {
|
|
|
1547
1572
|
"LAWE",
|
|
1548
1573
|
"MILI",
|
|
1549
1574
|
"TRVL"
|
|
1550
|
-
],
|
|
1575
|
+
], Qn = [
|
|
1551
1576
|
"pay",
|
|
1552
1577
|
"buy",
|
|
1553
1578
|
"plain",
|
|
@@ -1563,7 +1588,7 @@ const kn = () => {
|
|
|
1563
1588
|
"tip",
|
|
1564
1589
|
"top-up",
|
|
1565
1590
|
"continue"
|
|
1566
|
-
],
|
|
1591
|
+
], dA = {
|
|
1567
1592
|
ADP: 0,
|
|
1568
1593
|
AFN: 0,
|
|
1569
1594
|
ALL: 0,
|
|
@@ -1636,7 +1661,7 @@ const kn = () => {
|
|
|
1636
1661
|
YER: 0,
|
|
1637
1662
|
ZMK: 0,
|
|
1638
1663
|
ZWD: 0
|
|
1639
|
-
},
|
|
1664
|
+
}, Ln = [
|
|
1640
1665
|
"22337902",
|
|
1641
1666
|
"22337986",
|
|
1642
1667
|
"22402030",
|
|
@@ -1750,7 +1775,7 @@ const kn = () => {
|
|
|
1750
1775
|
t,
|
|
1751
1776
|
typeof e == "string" ? e.trim() : e
|
|
1752
1777
|
]).filter(([, t]) => t != null && t !== "")
|
|
1753
|
-
),
|
|
1778
|
+
), vA = ({
|
|
1754
1779
|
defaultError: A
|
|
1755
1780
|
}) => {
|
|
1756
1781
|
const {
|
|
@@ -1761,164 +1786,164 @@ const kn = () => {
|
|
|
1761
1786
|
sender: a,
|
|
1762
1787
|
recipient: o,
|
|
1763
1788
|
setFormSettings: l
|
|
1764
|
-
} = E(q), [
|
|
1765
|
-
function m(
|
|
1766
|
-
return
|
|
1767
|
-
var
|
|
1768
|
-
const
|
|
1769
|
-
updatedPaymentConfig:
|
|
1770
|
-
data:
|
|
1771
|
-
path:
|
|
1772
|
-
}),
|
|
1773
|
-
if (be(
|
|
1789
|
+
} = E(q), [i, s] = z(A), { processing: p, postData: c } = kn(), [f, d] = z(!1), [y, b] = z(!1), { fail: v } = Bn();
|
|
1790
|
+
function m(O, L) {
|
|
1791
|
+
return R(this, arguments, function* ({ data: w, path: C, onSuccess: M, onFailed: k, initPayment: Q }, P) {
|
|
1792
|
+
var T;
|
|
1793
|
+
const X = yield c({
|
|
1794
|
+
updatedPaymentConfig: P,
|
|
1795
|
+
data: w,
|
|
1796
|
+
path: C
|
|
1797
|
+
}), _ = typeof P == "object" && P !== null && "callback_url" in P && typeof P.callback_url == "string" ? P.callback_url : t;
|
|
1798
|
+
if (be(X)) {
|
|
1774
1799
|
d(!1);
|
|
1775
1800
|
return;
|
|
1776
1801
|
}
|
|
1777
|
-
|
|
1778
|
-
payment:
|
|
1802
|
+
X && (r && Q && (yield Pn({
|
|
1803
|
+
payment: X,
|
|
1779
1804
|
on_completed: r
|
|
1780
|
-
}).catch((
|
|
1781
|
-
console.error(
|
|
1782
|
-
})),
|
|
1783
|
-
VA(
|
|
1805
|
+
}).catch((Y) => {
|
|
1806
|
+
console.error(Y);
|
|
1807
|
+
})), M && X.status !== "failed" && M(X), ["paid", "authorized"].includes(X.status) && (b(!0), setTimeout(() => {
|
|
1808
|
+
VA(_, X, n).catch(() => {
|
|
1784
1809
|
});
|
|
1785
|
-
}, 100)),
|
|
1786
|
-
VA(
|
|
1810
|
+
}, 100)), X.status === "initiated" && ((T = X.source) == null ? void 0 : T.type) === "sadadbill" && (b(!0), setTimeout(() => {
|
|
1811
|
+
VA(_, X, n).catch(() => {
|
|
1787
1812
|
});
|
|
1788
|
-
}, 100)),
|
|
1789
|
-
VA(
|
|
1813
|
+
}, 100)), X.status === "failed" && (k && k(X), setTimeout(() => {
|
|
1814
|
+
VA(_, X, n).catch(() => {
|
|
1790
1815
|
});
|
|
1791
1816
|
}, 100))), d(!1);
|
|
1792
1817
|
});
|
|
1793
1818
|
}
|
|
1794
|
-
function g(
|
|
1795
|
-
return
|
|
1796
|
-
var
|
|
1819
|
+
function g(w) {
|
|
1820
|
+
return R(this, null, function* () {
|
|
1821
|
+
var Q;
|
|
1797
1822
|
d(!0);
|
|
1798
|
-
const
|
|
1799
|
-
data:
|
|
1823
|
+
const C = (Q = w.data.source) == null ? void 0 : Q.type, k = a && o && typeof C == "string" && $A.includes(C) ? N(B({}, w), {
|
|
1824
|
+
data: N(B({}, w.data), {
|
|
1800
1825
|
sender: Vt(a),
|
|
1801
1826
|
recipient: Vt(o)
|
|
1802
1827
|
})
|
|
1803
|
-
}) :
|
|
1804
|
-
if (
|
|
1805
|
-
let
|
|
1828
|
+
}) : w;
|
|
1829
|
+
if (k.initPayment) {
|
|
1830
|
+
let O = k.data.source;
|
|
1806
1831
|
try {
|
|
1807
|
-
(
|
|
1832
|
+
(O == null ? void 0 : O.type) === "creditcard" && typeof O.number == "string" && (O = {
|
|
1808
1833
|
type: "creditcard",
|
|
1809
|
-
bin:
|
|
1834
|
+
bin: O.number.substring(0, 8)
|
|
1810
1835
|
});
|
|
1811
|
-
const
|
|
1812
|
-
source:
|
|
1836
|
+
const L = yield Sn({
|
|
1837
|
+
source: O,
|
|
1813
1838
|
on_initiating: e,
|
|
1814
1839
|
setFormSettings: l
|
|
1815
1840
|
});
|
|
1816
|
-
if (typeof
|
|
1841
|
+
if (typeof L == "boolean" && !L) {
|
|
1817
1842
|
d(!1);
|
|
1818
1843
|
return;
|
|
1819
1844
|
}
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
} catch (
|
|
1823
|
-
console.error(
|
|
1845
|
+
const P = L && typeof L == "object" ? B({}, L) : {}, { save_card: _ } = P, T = gA(P, ["save_card"]), Y = typeof _ == "boolean" && typeof C == "string" && Tn.includes(C) ? N(B({}, k), { data: N(B({}, k.data), { source: N(B({}, k.data.source), { save_card: _ }) }) }) : k;
|
|
1846
|
+
yield m(Y, T);
|
|
1847
|
+
} catch (L) {
|
|
1848
|
+
console.error(L), d(!1);
|
|
1824
1849
|
}
|
|
1825
1850
|
return;
|
|
1826
1851
|
}
|
|
1827
|
-
yield m(
|
|
1852
|
+
yield m(k, {});
|
|
1828
1853
|
});
|
|
1829
1854
|
}
|
|
1830
|
-
const
|
|
1855
|
+
const D = cA(() => p || f, [p, f]);
|
|
1831
1856
|
return {
|
|
1832
1857
|
makePayment: g,
|
|
1833
1858
|
busy: f,
|
|
1834
1859
|
fail: v,
|
|
1835
1860
|
success: y,
|
|
1836
1861
|
processing: p,
|
|
1837
|
-
loading:
|
|
1838
|
-
error:
|
|
1862
|
+
loading: D,
|
|
1863
|
+
error: i,
|
|
1839
1864
|
setError: s
|
|
1840
1865
|
};
|
|
1841
1866
|
}, dt = ({ inForm: A = !1 }) => {
|
|
1842
1867
|
const { apiError: t, showForm: e } = E(q);
|
|
1843
1868
|
return e && !A ? null : /* @__PURE__ */ u("p", { class: "flex flex-col gap-2 rounded-md border border-error bg-red-100 px-4 py-2 text-xs font-medium text-error empty:hidden", children: t });
|
|
1844
|
-
},
|
|
1845
|
-
const { t: A } =
|
|
1869
|
+
}, _n = () => {
|
|
1870
|
+
const { t: A } = Z(), { formattedAmount: t, currency: e, isRtl: n, fixed_width: r, setFormSettings: a, showForm: o } = E(q), [l, i] = z(null), [s, p] = z(!1), c = {
|
|
1846
1871
|
phone: "",
|
|
1847
1872
|
otp: ""
|
|
1848
1873
|
}, {
|
|
1849
1874
|
makePayment: f,
|
|
1850
1875
|
busy: d,
|
|
1851
1876
|
fail: y,
|
|
1852
|
-
success:
|
|
1877
|
+
success: b,
|
|
1853
1878
|
loading: v,
|
|
1854
1879
|
error: m,
|
|
1855
1880
|
setError: g
|
|
1856
|
-
} =
|
|
1857
|
-
const
|
|
1858
|
-
return g((
|
|
1859
|
-
phone:
|
|
1860
|
-
})),
|
|
1861
|
-
},
|
|
1862
|
-
const
|
|
1863
|
-
return g((
|
|
1864
|
-
otp:
|
|
1865
|
-
})),
|
|
1866
|
-
},
|
|
1867
|
-
const { value:
|
|
1868
|
-
if (p(!1), !
|
|
1869
|
-
p(!
|
|
1881
|
+
} = vA({ defaultError: c }), [D, w] = z(""), [C, M] = z(""), [k, Q] = z(""), P = (J) => {
|
|
1882
|
+
const I = /^05[503649187][0-9]{7}$/.test(W(J));
|
|
1883
|
+
return g((H) => N(B({}, H), {
|
|
1884
|
+
phone: I ? "" : "error.invalid_mobile"
|
|
1885
|
+
})), I;
|
|
1886
|
+
}, O = (J) => {
|
|
1887
|
+
const I = /^[0-9]{4,}$/.test(W(J));
|
|
1888
|
+
return g((H) => N(B({}, H), {
|
|
1889
|
+
otp: I ? "" : "error.invalid_otp"
|
|
1890
|
+
})), I;
|
|
1891
|
+
}, L = (J) => {
|
|
1892
|
+
const { value: I, name: H } = J.target, lA = I.trim();
|
|
1893
|
+
if (p(!1), !lA) {
|
|
1894
|
+
p(!lA);
|
|
1870
1895
|
return;
|
|
1871
1896
|
}
|
|
1872
|
-
|
|
1873
|
-
},
|
|
1874
|
-
if (!
|
|
1875
|
-
function J(
|
|
1876
|
-
const { transaction_url:
|
|
1877
|
-
|
|
1897
|
+
H === "mysr-stc-mobile" && P(lA), H === "mysr-stc-otp" && O(lA);
|
|
1898
|
+
}, X = () => {
|
|
1899
|
+
if (!P(D)) return;
|
|
1900
|
+
function J(I) {
|
|
1901
|
+
const { transaction_url: H } = I.source;
|
|
1902
|
+
Q(H), i((/* @__PURE__ */ new Date()).getTime() + 5 * 60 * 1e3);
|
|
1878
1903
|
}
|
|
1879
1904
|
f({
|
|
1880
1905
|
data: {
|
|
1881
1906
|
source: {
|
|
1882
1907
|
type: "stcpay",
|
|
1883
|
-
mobile: W(
|
|
1908
|
+
mobile: W(D)
|
|
1884
1909
|
}
|
|
1885
1910
|
},
|
|
1886
1911
|
onSuccess: J,
|
|
1887
1912
|
initPayment: !0
|
|
1888
|
-
}).catch((
|
|
1889
|
-
console.error(
|
|
1913
|
+
}).catch((I) => {
|
|
1914
|
+
console.error(I);
|
|
1890
1915
|
});
|
|
1891
|
-
},
|
|
1892
|
-
if (!l || !
|
|
1893
|
-
function J(
|
|
1894
|
-
var
|
|
1895
|
-
|
|
1916
|
+
}, _ = () => {
|
|
1917
|
+
if (!l || !O(C)) return;
|
|
1918
|
+
function J(I) {
|
|
1919
|
+
var H;
|
|
1920
|
+
I.status === "failed" && ((H = I.source) == null ? void 0 : H.message) === "Invalid OTP" && (g((lA) => N(B({}, lA), {
|
|
1896
1921
|
otp: "error.invalid_otp"
|
|
1897
|
-
})),
|
|
1922
|
+
})), M(""), i(null));
|
|
1898
1923
|
}
|
|
1899
1924
|
f({
|
|
1900
1925
|
data: {
|
|
1901
|
-
otp_value: W(
|
|
1926
|
+
otp_value: W(C)
|
|
1902
1927
|
},
|
|
1903
|
-
path:
|
|
1928
|
+
path: k,
|
|
1904
1929
|
onFailed: J
|
|
1905
|
-
}).catch((
|
|
1906
|
-
console.error(
|
|
1930
|
+
}).catch((I) => {
|
|
1931
|
+
console.error(I);
|
|
1907
1932
|
});
|
|
1908
|
-
},
|
|
1909
|
-
if (J.preventDefault(), g(
|
|
1910
|
-
|
|
1933
|
+
}, T = (J) => {
|
|
1934
|
+
if (J.preventDefault(), g(c), !l) {
|
|
1935
|
+
X();
|
|
1911
1936
|
return;
|
|
1912
1937
|
}
|
|
1913
|
-
|
|
1914
|
-
},
|
|
1915
|
-
J > 0 || (g((
|
|
1938
|
+
_();
|
|
1939
|
+
}, Y = (J) => {
|
|
1940
|
+
J > 0 || (g((I) => N(B({}, I), {
|
|
1916
1941
|
otp: "error.otp_time_out"
|
|
1917
|
-
})),
|
|
1918
|
-
},
|
|
1919
|
-
|
|
1942
|
+
})), M(""), i(null));
|
|
1943
|
+
}, $ = cA(() => m.phone || l && m.otp && m.otp !== "error.otp_time_out" ? !0 : s || v, [m, s, v]), oA = (J) => a((I) => N(B({}, I), { showForm: J })), [K, eA] = z(!1), DA = () => {
|
|
1944
|
+
eA(!0);
|
|
1920
1945
|
}, xA = () => {
|
|
1921
|
-
|
|
1946
|
+
K && (w(""), M(""), g(c), oA(!1), eA(!1), p(!1));
|
|
1922
1947
|
};
|
|
1923
1948
|
return /* @__PURE__ */ u(
|
|
1924
1949
|
pt.Provider,
|
|
@@ -1926,10 +1951,10 @@ const kn = () => {
|
|
|
1926
1951
|
value: {
|
|
1927
1952
|
err: m,
|
|
1928
1953
|
setErr: g,
|
|
1929
|
-
handleBlur:
|
|
1954
|
+
handleBlur: L
|
|
1930
1955
|
},
|
|
1931
|
-
children: /* @__PURE__ */ u(
|
|
1932
|
-
/* @__PURE__ */ u(
|
|
1956
|
+
children: /* @__PURE__ */ u(F, { children: [
|
|
1957
|
+
/* @__PURE__ */ u(NA, { variant: "stc", onClick: () => oA(!0), children: /* @__PURE__ */ u(
|
|
1933
1958
|
"img",
|
|
1934
1959
|
{
|
|
1935
1960
|
class: "pointer-events-none h-4 max-h-full",
|
|
@@ -1939,32 +1964,32 @@ const kn = () => {
|
|
|
1939
1964
|
src: Re
|
|
1940
1965
|
}
|
|
1941
1966
|
) }),
|
|
1942
|
-
o && /* @__PURE__ */ u(
|
|
1967
|
+
o && /* @__PURE__ */ u(F, { children: [
|
|
1943
1968
|
/* @__PURE__ */ u(
|
|
1944
1969
|
"div",
|
|
1945
1970
|
{
|
|
1946
|
-
class:
|
|
1971
|
+
class: rA([
|
|
1947
1972
|
"fixed inset-0 z-[9] bg-gray-500/75 transition-opacity",
|
|
1948
|
-
|
|
1973
|
+
K ? "animate-fade-out duration-300" : "animate-fade-in duration-200"
|
|
1949
1974
|
])
|
|
1950
1975
|
}
|
|
1951
1976
|
),
|
|
1952
1977
|
/* @__PURE__ */ u("div", { class: "fixed inset-0 z-10 flex flex-col justify-end md:justify-center", children: /* @__PURE__ */ u(
|
|
1953
1978
|
"div",
|
|
1954
1979
|
{
|
|
1955
|
-
class:
|
|
1980
|
+
class: rA([
|
|
1956
1981
|
"flex w-full origin-bottom flex-col gap-4 rounded-t-lg border-neutral-300 bg-slate-100 p-4 shadow transition-all md:rounded-b-lg lg:p-10",
|
|
1957
1982
|
r && "md:mx-auto md:max-w-96 lg:max-w-screen-sm",
|
|
1958
|
-
|
|
1983
|
+
K ? "animate-dialog-out-mobile duration-200 md:animate-dialog-out" : "animate-dialog-in-mobile duration-300 md:animate-dialog-in"
|
|
1959
1984
|
]),
|
|
1960
1985
|
onAnimationEnd: xA,
|
|
1961
1986
|
children: [
|
|
1962
1987
|
/* @__PURE__ */ u(dt, { inForm: !0 }),
|
|
1963
1988
|
/* @__PURE__ */ u("div", { class: "flex items-center", children: [
|
|
1964
1989
|
/* @__PURE__ */ u("img", { alt: "", src: Mn, class: "h-5" }),
|
|
1965
|
-
/* @__PURE__ */ u("button", { onClick:
|
|
1990
|
+
/* @__PURE__ */ u("button", { onClick: DA, class: "ms-auto", children: "Cancel" })
|
|
1966
1991
|
] }),
|
|
1967
|
-
/* @__PURE__ */ u("form", { class: "flex flex-col gap-4", onSubmit:
|
|
1992
|
+
/* @__PURE__ */ u("form", { class: "flex flex-col gap-4", onSubmit: T, children: [
|
|
1968
1993
|
/* @__PURE__ */ u("div", { class: "space-y-2", children: [
|
|
1969
1994
|
/* @__PURE__ */ u("div", { class: "flex items-end justify-between text-xs font-medium", children: [
|
|
1970
1995
|
l ? /* @__PURE__ */ u("label", { for: "mysr-stc-mobile", children: A("form.otp") }) : /* @__PURE__ */ u("label", { for: "mysr-stc-otp", children: A("form.mobile") }),
|
|
@@ -1973,39 +1998,39 @@ const kn = () => {
|
|
|
1973
1998
|
/* @__PURE__ */ u(
|
|
1974
1999
|
bn,
|
|
1975
2000
|
{
|
|
1976
|
-
value:
|
|
1977
|
-
setValue:
|
|
2001
|
+
value: D,
|
|
2002
|
+
setValue: w,
|
|
1978
2003
|
showOtp: !l && typeof l != "number"
|
|
1979
2004
|
}
|
|
1980
2005
|
),
|
|
1981
2006
|
/* @__PURE__ */ u(
|
|
1982
2007
|
Cn,
|
|
1983
2008
|
{
|
|
1984
|
-
value:
|
|
1985
|
-
setValue:
|
|
2009
|
+
value: C,
|
|
2010
|
+
setValue: M,
|
|
1986
2011
|
showPhone: !l && typeof l != "number"
|
|
1987
2012
|
}
|
|
1988
2013
|
)
|
|
1989
2014
|
] }),
|
|
1990
2015
|
/* @__PURE__ */ u(
|
|
1991
|
-
|
|
2016
|
+
NA,
|
|
1992
2017
|
{
|
|
1993
|
-
success:
|
|
2018
|
+
success: b,
|
|
1994
2019
|
fail: y,
|
|
1995
2020
|
busy: d,
|
|
1996
2021
|
variant: "stc",
|
|
1997
2022
|
class: "flex gap-1",
|
|
1998
|
-
disabled:
|
|
2023
|
+
disabled: $,
|
|
1999
2024
|
type: "submit",
|
|
2000
2025
|
children: [
|
|
2001
2026
|
!n && A("button.pay"),
|
|
2002
2027
|
" ",
|
|
2003
|
-
l ? /* @__PURE__ */ u(Dn, { countTo: l, callback:
|
|
2028
|
+
l ? /* @__PURE__ */ u(Dn, { countTo: l, callback: Y }) : /* @__PURE__ */ u("span", { class: "currency-amount", children: /* @__PURE__ */ u(ut, { currency: e, formattedAmount: t }) })
|
|
2004
2029
|
]
|
|
2005
2030
|
}
|
|
2006
2031
|
)
|
|
2007
2032
|
] }),
|
|
2008
|
-
/* @__PURE__ */ u("p", { class: "flex flex-col gap-2 text-xs font-medium text-error empty:hidden", children: Object.entries(m).map(([J,
|
|
2033
|
+
/* @__PURE__ */ u("p", { class: "flex flex-col gap-2 text-xs font-medium text-error empty:hidden", children: Object.entries(m).map(([J, I]) => /* @__PURE__ */ u("span", { class: "empty:hidden", children: A(I) }, J)) })
|
|
2009
2034
|
]
|
|
2010
2035
|
}
|
|
2011
2036
|
) })
|
|
@@ -2014,7 +2039,7 @@ const kn = () => {
|
|
|
2014
2039
|
}
|
|
2015
2040
|
);
|
|
2016
2041
|
}, Nn = () => {
|
|
2017
|
-
const { t: A } =
|
|
2042
|
+
const { t: A } = Z(), {
|
|
2018
2043
|
base_url: t,
|
|
2019
2044
|
publishable_api_key: e,
|
|
2020
2045
|
apple_pay: n,
|
|
@@ -2022,14 +2047,14 @@ const kn = () => {
|
|
|
2022
2047
|
currency: a,
|
|
2023
2048
|
supported_networks: o,
|
|
2024
2049
|
decimalAmount: l,
|
|
2025
|
-
statement_descriptor:
|
|
2050
|
+
statement_descriptor: i,
|
|
2026
2051
|
setFormSettings: s,
|
|
2027
2052
|
on_failure: p
|
|
2028
|
-
} = E(q), { makePayment:
|
|
2053
|
+
} = E(q), { makePayment: c } = vA({ defaultError: {} });
|
|
2029
2054
|
function f() {
|
|
2030
2055
|
if (!ApplePaySession)
|
|
2031
2056
|
return;
|
|
2032
|
-
const d = (n == null ? void 0 : n.label) || (r == null ? void 0 : r.label),
|
|
2057
|
+
const d = (n == null ? void 0 : n.label) || (r == null ? void 0 : r.label), b = {
|
|
2033
2058
|
countryCode: (n == null ? void 0 : n.country) || (r == null ? void 0 : r.country),
|
|
2034
2059
|
currencyCode: a,
|
|
2035
2060
|
supportedNetworks: o.map(
|
|
@@ -2040,30 +2065,30 @@ const kn = () => {
|
|
|
2040
2065
|
label: d,
|
|
2041
2066
|
amount: l
|
|
2042
2067
|
}
|
|
2043
|
-
}, v = new ApplePaySession(n.version,
|
|
2068
|
+
}, v = new ApplePaySession(n.version, b);
|
|
2044
2069
|
v.onvalidatemerchant = (m) => {
|
|
2045
2070
|
const g = {
|
|
2046
2071
|
validation_url: m.validationURL,
|
|
2047
2072
|
display_name: d,
|
|
2048
2073
|
domain_name: window.location.hostname,
|
|
2049
2074
|
publishable_api_key: e
|
|
2050
|
-
},
|
|
2051
|
-
fetch(
|
|
2075
|
+
}, D = n.validate_merchant_url || `${t}/v1/applepay/initiate`;
|
|
2076
|
+
fetch(D, {
|
|
2052
2077
|
method: "POST",
|
|
2053
2078
|
headers: {
|
|
2054
2079
|
"Content-Type": "application/json"
|
|
2055
2080
|
},
|
|
2056
2081
|
body: JSON.stringify(g)
|
|
2057
|
-
}).then((
|
|
2058
|
-
v.completeMerchantValidation(
|
|
2059
|
-
}).catch((
|
|
2060
|
-
if (console.error("Apple Pay error:",
|
|
2082
|
+
}).then((w) => w.ok ? w : Promise.reject(w)).then((w) => w.json()).then((w) => {
|
|
2083
|
+
v.completeMerchantValidation(w);
|
|
2084
|
+
}).catch((w) => {
|
|
2085
|
+
if (console.error("Apple Pay error:", w), s((C) => N(B({}, C), {
|
|
2061
2086
|
apiError: A("error.applePay")
|
|
2062
2087
|
})), p)
|
|
2063
2088
|
try {
|
|
2064
|
-
p(
|
|
2065
|
-
} catch (
|
|
2066
|
-
console.error("An error happened when firing failure callback"), console.error(
|
|
2089
|
+
p(w);
|
|
2090
|
+
} catch (C) {
|
|
2091
|
+
console.error("An error happened when firing failure callback"), console.error(C);
|
|
2067
2092
|
}
|
|
2068
2093
|
v.abort();
|
|
2069
2094
|
});
|
|
@@ -2076,31 +2101,31 @@ const kn = () => {
|
|
|
2076
2101
|
save_card: !!(n != null && n.save_card)
|
|
2077
2102
|
}
|
|
2078
2103
|
};
|
|
2079
|
-
|
|
2080
|
-
function
|
|
2104
|
+
i && (g.source.statement_descriptor = i);
|
|
2105
|
+
function D(C) {
|
|
2081
2106
|
v.completePayment({
|
|
2082
2107
|
status: ApplePaySession.STATUS_FAILURE
|
|
2083
2108
|
});
|
|
2084
2109
|
}
|
|
2085
|
-
function C
|
|
2110
|
+
function w(C) {
|
|
2086
2111
|
v.completePayment({
|
|
2087
2112
|
status: ApplePaySession.STATUS_SUCCESS
|
|
2088
2113
|
});
|
|
2089
2114
|
}
|
|
2090
|
-
|
|
2115
|
+
c({
|
|
2091
2116
|
data: g,
|
|
2092
|
-
onFailed:
|
|
2093
|
-
onSuccess:
|
|
2117
|
+
onFailed: D,
|
|
2118
|
+
onSuccess: w,
|
|
2094
2119
|
initPayment: !0
|
|
2095
|
-
}).catch((
|
|
2096
|
-
console.error(
|
|
2120
|
+
}).catch((C) => {
|
|
2121
|
+
console.error(C);
|
|
2097
2122
|
});
|
|
2098
2123
|
}, v.oncancel = () => {
|
|
2099
2124
|
console.log("Apple Pay payment cancelled by user");
|
|
2100
2125
|
}, v.begin();
|
|
2101
2126
|
}
|
|
2102
2127
|
return /* @__PURE__ */ u("apple-pay-button", { buttonstyle: "black", type: "plain", onClick: f });
|
|
2103
|
-
}, _n = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeEAAABLCAMAAABwZM8AAAADAFBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f3+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7LtSl7AAAA/3RSTlMAAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyAhIiMkJSYnKCk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R7Y1zaoLqRlQfMTsay9LrRRhwsGsUCwJqVViVO85pDOXlFai82v6VfSTFOhmCKmK01UJ0YWnlH1Zv+4/YuSQXnbpiZKPUKGW3gg9RDnjkEpppXiSv7fgGx7L+67vz/9CotKWr7y1xuZCsEFMMrzeSixvg0YVHxiUd3Mp3y8Y0NF+qP6PncqDxo+tn7WyuoQrEKzBKspWqqg0RLdf+bSlSnAlIqoz8mle1UhXICTG20D7q3VVP6sC4ZRKLKsu4QqEQN+j5qgUjK1uwxUIbe8G9mlzleBKhLBqcZ++XDXSFQiFSyiwl7VU/awKRHRNjkdLqku4AiEx6E0qhNqyjpHVbbgCodFoE8NPQKGKSoOA2kGncm+hnb5QZbgiUWNkZyOHVb2sKqr4QEIadOJl/R9/eIVAmWuIbgAAAABJRU5ErkJggg==", In = () => {
|
|
2128
|
+
}, In = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeEAAABLCAMAAABwZM8AAAADAFBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f3+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/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TEDVvJwaEl/VCLKxNXsTI0vk0eO0elYPtce87Fl8+aM+vyi4fUmulbQu0jwJC6vFu8hWaI7AvAGfz6s/q+tco+WifD5hKZkLanPWo7uZ5bZNaUyQSQhow/7Uzvd//cXCNo6FfG8UoBGHf3hj1v5nLtR7Y1zaoLqRlQfMTsay9LrRRhwsGsUCwJqVViVO85pDOXlFai82v6VfSTFOhmCKmK01UJ0YWnlH1Zv+4/YuSQXnbpiZKPUKGW3gg9RDnjkEpppXiSv7fgGx7L+67vz/9CotKWr7y1xuZCsEFMMrzeSixvg0YVHxiUd3Mp3y8Y0NF+qP6PncqDxo+tn7WyuoQrEKzBKspWqqg0RLdf+bSlSnAlIqoz8mle1UhXICTG20D7q3VVP6sC4ZRKLKsu4QqEQN+j5qgUjK1uwxUIbe8G9mlzleBKhLBqcZ++XDXSFQiFSyiwl7VU/awKRHRNjkdLqku4AiEx6E0qhNqyjpHVbbgCodFoE8NPQKGKSoOA2kGncm+hnb5QZbgiUWNkZyOHVb2sKqr4QEIadOJl/R9/eIVAmWuIbgAAAABJRU5ErkJggg==", On = () => {
|
|
2104
2129
|
const {
|
|
2105
2130
|
payment_button_type: A,
|
|
2106
2131
|
samsung_pay: t,
|
|
@@ -2108,35 +2133,35 @@ const kn = () => {
|
|
|
2108
2133
|
supported_networks: n,
|
|
2109
2134
|
currency: r,
|
|
2110
2135
|
decimalAmount: a
|
|
2111
|
-
} = E(q), [o, l] =
|
|
2136
|
+
} = E(q), [o, l] = z(!1), [i, s] = z(!1), { makePayment: p } = vA({ defaultError: {} }), { t: c } = Z(), f = tA(null);
|
|
2112
2137
|
V(() => {
|
|
2113
|
-
let
|
|
2114
|
-
return o || (
|
|
2138
|
+
let b = null;
|
|
2139
|
+
return o || (b = setInterval(() => {
|
|
2115
2140
|
window.SamsungPay && l(!0);
|
|
2116
2141
|
}, 100)), () => {
|
|
2117
|
-
clearInterval(
|
|
2142
|
+
clearInterval(b);
|
|
2118
2143
|
};
|
|
2119
2144
|
}, [o]);
|
|
2120
|
-
const d =
|
|
2145
|
+
const d = cA(() => {
|
|
2121
2146
|
if (!(!o || !t))
|
|
2122
2147
|
return new SamsungPay.PaymentClient({ environment: t.environment });
|
|
2123
2148
|
}, [o]);
|
|
2124
|
-
if (V(() =>
|
|
2149
|
+
if (V(() => R(void 0, null, function* () {
|
|
2125
2150
|
if (!d || !t)
|
|
2126
2151
|
return;
|
|
2127
|
-
const
|
|
2152
|
+
const b = ["visa", "mastercard", "amex", "mada"], v = n == null ? void 0 : n.filter((g) => b.includes(g.toLowerCase())).map((g) => g.toLowerCase()), m = {
|
|
2128
2153
|
version: t.version.toString(),
|
|
2129
2154
|
serviceId: t.service_id,
|
|
2130
2155
|
protocol: "PROTOCOL_3DS",
|
|
2131
2156
|
allowedBrands: v
|
|
2132
2157
|
};
|
|
2133
|
-
f.current = () =>
|
|
2134
|
-
const { order_number: g, id:
|
|
2158
|
+
f.current = () => R(void 0, null, function* () {
|
|
2159
|
+
const { order_number: g, id: D, country: w, label: C } = t, M = C || (e == null ? void 0 : e.label), k = w || (e == null ? void 0 : e.country), Q = {
|
|
2135
2160
|
orderNumber: g,
|
|
2136
2161
|
merchant: {
|
|
2137
|
-
name:
|
|
2138
|
-
id:
|
|
2139
|
-
countryCode:
|
|
2162
|
+
name: M,
|
|
2163
|
+
id: D,
|
|
2164
|
+
countryCode: k,
|
|
2140
2165
|
url: window.location.hostname
|
|
2141
2166
|
},
|
|
2142
2167
|
amount: {
|
|
@@ -2144,44 +2169,44 @@ const kn = () => {
|
|
|
2144
2169
|
currency: r,
|
|
2145
2170
|
total: a
|
|
2146
2171
|
}
|
|
2147
|
-
},
|
|
2172
|
+
}, P = () => {
|
|
2148
2173
|
d.notify({
|
|
2149
2174
|
status: "CHARGED",
|
|
2150
2175
|
provider: "Moyasar"
|
|
2151
2176
|
});
|
|
2152
|
-
},
|
|
2177
|
+
}, O = (L) => {
|
|
2153
2178
|
d.notify({
|
|
2154
2179
|
status: "REJECTED",
|
|
2155
2180
|
provider: "Moyasar"
|
|
2156
2181
|
});
|
|
2157
2182
|
};
|
|
2158
2183
|
try {
|
|
2159
|
-
const
|
|
2184
|
+
const L = yield d.loadPaymentSheet(
|
|
2160
2185
|
m,
|
|
2161
|
-
|
|
2186
|
+
Q
|
|
2162
2187
|
);
|
|
2163
2188
|
yield p({
|
|
2164
2189
|
initPayment: !0,
|
|
2165
2190
|
data: {
|
|
2166
2191
|
source: {
|
|
2167
2192
|
type: "samsungpay",
|
|
2168
|
-
token:
|
|
2193
|
+
token: L["3DS"].data,
|
|
2169
2194
|
manual: !!(t != null && t.manual),
|
|
2170
2195
|
save_card: !!(t != null && t.save_card)
|
|
2171
2196
|
}
|
|
2172
2197
|
},
|
|
2173
|
-
onFailed:
|
|
2174
|
-
onSuccess:
|
|
2198
|
+
onFailed: O,
|
|
2199
|
+
onSuccess: P
|
|
2175
2200
|
});
|
|
2176
|
-
} catch (
|
|
2201
|
+
} catch (L) {
|
|
2177
2202
|
try {
|
|
2178
2203
|
d.notify({
|
|
2179
2204
|
status: "ERRED",
|
|
2180
2205
|
provider: "Moyasar"
|
|
2181
2206
|
});
|
|
2182
|
-
} catch (
|
|
2207
|
+
} catch (X) {
|
|
2183
2208
|
}
|
|
2184
|
-
console.error("Samsung Pay error: ",
|
|
2209
|
+
console.error("Samsung Pay error: ", L);
|
|
2185
2210
|
}
|
|
2186
2211
|
});
|
|
2187
2212
|
try {
|
|
@@ -2192,11 +2217,11 @@ const kn = () => {
|
|
|
2192
2217
|
status: "ERRED",
|
|
2193
2218
|
provider: "Moyasar"
|
|
2194
2219
|
});
|
|
2195
|
-
} catch (
|
|
2220
|
+
} catch (D) {
|
|
2196
2221
|
}
|
|
2197
2222
|
console.error("Samsung Pay Error: ", g);
|
|
2198
2223
|
}
|
|
2199
|
-
}), [d, t]), !o || !
|
|
2224
|
+
}), [d, t]), !o || !i)
|
|
2200
2225
|
return null;
|
|
2201
2226
|
const y = A === "pay" ? "pay-with" : A;
|
|
2202
2227
|
return /* @__PURE__ */ u(
|
|
@@ -2205,13 +2230,13 @@ const kn = () => {
|
|
|
2205
2230
|
class: "flex h-11 w-full items-center justify-center gap-1 rounded-md bg-black text-white",
|
|
2206
2231
|
onClick: f.current,
|
|
2207
2232
|
children: [
|
|
2208
|
-
/* @__PURE__ */ u("span", { children:
|
|
2209
|
-
/* @__PURE__ */ u("img", { src:
|
|
2233
|
+
/* @__PURE__ */ u("span", { children: c(`button.${y}`) }),
|
|
2234
|
+
/* @__PURE__ */ u("img", { src: In, alt: "", class: "-mb-[3px] h-[22px]" }),
|
|
2210
2235
|
/* @__PURE__ */ u("div", { class: "mb-0.5 h-[9px] w-[9px] rotate-45 rounded-sm border-r-[3px] border-t-[3px] border-white" })
|
|
2211
2236
|
]
|
|
2212
2237
|
}
|
|
2213
2238
|
);
|
|
2214
|
-
},
|
|
2239
|
+
}, zn = () => {
|
|
2215
2240
|
const {
|
|
2216
2241
|
language: A,
|
|
2217
2242
|
payment_button_type: t,
|
|
@@ -2221,28 +2246,28 @@ const kn = () => {
|
|
|
2221
2246
|
currency: a,
|
|
2222
2247
|
decimalAmount: o,
|
|
2223
2248
|
setFormSettings: l
|
|
2224
|
-
} = E(q), [
|
|
2249
|
+
} = E(q), [i, s] = z(!1), { makePayment: p } = vA({ defaultError: {} });
|
|
2225
2250
|
V(() => {
|
|
2226
2251
|
let f = null;
|
|
2227
|
-
return
|
|
2252
|
+
return i || (f = setInterval(() => {
|
|
2228
2253
|
var d, y;
|
|
2229
2254
|
(y = (d = window.google) == null ? void 0 : d.payments) != null && y.api && s(!0);
|
|
2230
2255
|
}, 100)), () => {
|
|
2231
2256
|
clearInterval(f);
|
|
2232
2257
|
};
|
|
2233
|
-
}, [
|
|
2234
|
-
const
|
|
2235
|
-
if (
|
|
2258
|
+
}, [i]);
|
|
2259
|
+
const c = cA(() => {
|
|
2260
|
+
if (i)
|
|
2236
2261
|
return new google.payments.api.PaymentsClient({
|
|
2237
2262
|
environment: e.environment
|
|
2238
2263
|
});
|
|
2239
|
-
}, [
|
|
2240
|
-
return V(() =>
|
|
2264
|
+
}, [i]);
|
|
2265
|
+
return V(() => R(void 0, null, function* () {
|
|
2241
2266
|
const f = document.getElementById("googlePay-container");
|
|
2242
|
-
if (!
|
|
2267
|
+
if (!c || !e || (f == null ? void 0 : f.children.length) >= 1)
|
|
2243
2268
|
return;
|
|
2244
2269
|
e.merchant_id;
|
|
2245
|
-
const d = r == null ? void 0 : r.filter((
|
|
2270
|
+
const d = r == null ? void 0 : r.filter((M) => M !== "mada").map((M) => M.toUpperCase()), y = e.auth_methods, b = {
|
|
2246
2271
|
apiVersion: 2,
|
|
2247
2272
|
apiVersionMinor: 0
|
|
2248
2273
|
}, v = {
|
|
@@ -2251,38 +2276,38 @@ const kn = () => {
|
|
|
2251
2276
|
allowedAuthMethods: y,
|
|
2252
2277
|
allowedCardNetworks: d
|
|
2253
2278
|
}
|
|
2254
|
-
}, m = Object.assign({},
|
|
2279
|
+
}, m = Object.assign({}, b);
|
|
2255
2280
|
m.allowedPaymentMethods = [v];
|
|
2256
|
-
const g = () =>
|
|
2257
|
-
const { country:
|
|
2258
|
-
allowedPaymentMethods: [
|
|
2281
|
+
const g = () => R(void 0, null, function* () {
|
|
2282
|
+
const { country: M, label: k, merchant_id: Q } = e, P = k || (n == null ? void 0 : n.label), O = M || (n == null ? void 0 : n.country), L = N(B({}, b), {
|
|
2283
|
+
allowedPaymentMethods: [C],
|
|
2259
2284
|
merchantInfo: {
|
|
2260
|
-
merchantId:
|
|
2261
|
-
merchantName:
|
|
2285
|
+
merchantId: Q,
|
|
2286
|
+
merchantName: P
|
|
2262
2287
|
},
|
|
2263
2288
|
transactionInfo: {
|
|
2264
|
-
countryCode:
|
|
2289
|
+
countryCode: O,
|
|
2265
2290
|
currencyCode: a,
|
|
2266
2291
|
totalPriceStatus: "FINAL",
|
|
2267
2292
|
totalPrice: o
|
|
2268
2293
|
}
|
|
2269
2294
|
});
|
|
2270
2295
|
try {
|
|
2271
|
-
const
|
|
2296
|
+
const X = yield c.loadPaymentData(L);
|
|
2272
2297
|
p({
|
|
2273
2298
|
initPayment: !0,
|
|
2274
2299
|
data: {
|
|
2275
2300
|
source: {
|
|
2276
2301
|
type: "googlepay",
|
|
2277
|
-
token:
|
|
2302
|
+
token: X.paymentMethodData.tokenizationData.token
|
|
2278
2303
|
}
|
|
2279
2304
|
}
|
|
2280
2305
|
});
|
|
2281
|
-
} catch (
|
|
2282
|
-
console.error(
|
|
2306
|
+
} catch (X) {
|
|
2307
|
+
console.error(X);
|
|
2283
2308
|
}
|
|
2284
|
-
}),
|
|
2285
|
-
const
|
|
2309
|
+
}), D = () => {
|
|
2310
|
+
const M = c.createButton({
|
|
2286
2311
|
onClick: g,
|
|
2287
2312
|
buttonLocale: A,
|
|
2288
2313
|
buttonColor: "black",
|
|
@@ -2290,38 +2315,38 @@ const kn = () => {
|
|
|
2290
2315
|
buttonRadius: 6,
|
|
2291
2316
|
buttonSizeMode: "fill"
|
|
2292
2317
|
});
|
|
2293
|
-
f.appendChild(
|
|
2294
|
-
},
|
|
2318
|
+
f.appendChild(M);
|
|
2319
|
+
}, w = {
|
|
2295
2320
|
type: "PAYMENT_GATEWAY",
|
|
2296
2321
|
parameters: {
|
|
2297
2322
|
gateway: "moyasar",
|
|
2298
2323
|
gatewayMerchantId: e.gateway_merchant_id
|
|
2299
2324
|
}
|
|
2300
|
-
},
|
|
2301
|
-
tokenizationSpecification:
|
|
2325
|
+
}, C = Object.assign({}, v, {
|
|
2326
|
+
tokenizationSpecification: w
|
|
2302
2327
|
});
|
|
2303
2328
|
try {
|
|
2304
|
-
(yield
|
|
2329
|
+
(yield c.isReadyToPay(m)).result ? D() : l((k) => N(B({}, k), {
|
|
2305
2330
|
apiError: "Cannot initialize Google Pay"
|
|
2306
2331
|
}));
|
|
2307
|
-
} catch (
|
|
2308
|
-
l((
|
|
2332
|
+
} catch (M) {
|
|
2333
|
+
l((k) => N(B({}, k), {
|
|
2309
2334
|
apiError: "Cannot initialize Google Pay"
|
|
2310
|
-
})), console.error("Google Pay Error: ",
|
|
2335
|
+
})), console.error("Google Pay Error: ", M);
|
|
2311
2336
|
}
|
|
2312
|
-
}), [
|
|
2337
|
+
}), [c, e]), i ? /* @__PURE__ */ u(
|
|
2313
2338
|
"div",
|
|
2314
2339
|
{
|
|
2315
2340
|
id: "googlePay-container",
|
|
2316
2341
|
class: "flex h-11 items-center justify-center rounded-md bg-black empty:hidden"
|
|
2317
2342
|
}
|
|
2318
2343
|
) : null;
|
|
2319
|
-
}, Yt = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2023.0.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='91%20347%20820%20306'%20style='enable-background:new%200%200%201000%201000;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23929497;}%20.st1{fill:%23ED7624;}%20%3c/style%3e%3cg%20id='Asset_1'%20transform='translate(295%20638)'%3e%3cg%20id='Layer_1_1_'%3e%3cpath%20id='Path_13'%20class='st0'%20d='M129.5-280.8H88.6C69.3-227.2,36.8-138.2,18.9-89.4c-1.8,4.7-4,9.2-6.7,13.5h28.3%20c7.7-0.5,14.6-4.8,18.3-11.6c0.6-1,1.2-2.1,1.6-3.2l17.1-46.7l0,0C98.7-195.5,127.4-274.4,129.5-280.8'/%3e%3cpath%20id='Path_14'%20class='st1'%20d='M564.2-178.3l-17.1,46.8c-3.2,8.3-10.9,14-19.8,14.6H499c2.9-4.6,5.4-9.5,7.2-14.6l17.1-46.8%20h-41l-17,46.8c-3.2,8.3-11,14-19.8,14.6H417c2.9-4.6,5.3-9.5,7.2-14.6l17.1-46.8h-41l-17,46.8c-3.2,8.3-10.9,14-19.8,14.6h-131%20c3-4.5,5.4-9.3,7.3-14.3l4.3-12c11.2-30.8-4.7-55.6-35.4-55.6h-46.6l-14.9,40.9H194c8.1,0,12.3,6.5,9.3,14.6l-4.5,12%20c-3.2,8.2-10.9,13.8-19.7,14.3h-67.4l-14.9,41h415.9c30.8,0,64.2-24.7,75.4-55.3l17.2-47.1L564.2-178.3z'/%3e%3cpath%20id='Path_15'%20class='st1'%20d='M-85.6-75.9h-108.3l14.9-41h108.4c8.9-0.6,16.7-6.3,20-14.6l4.2-11.6c2.9-8.1-1.2-14.6-9.3-14.6%20H-123l14.9-41h67.2c30.8,0,46.5,24.9,35.4,55.6l-4.2,11.6C-20.9-100.7-54.9-76-85.6-75.9'/%3e%3cpath%20id='Path_16'%20class='st0'%20d='M96.6-29.2h-5l-1.9,5.1h5L96.6-29.2z'/%3e%3cpath%20id='Path_17'%20class='st0'%20d='M107.3-14.1c-0.6,2-2,3.7-3.8,4.8c-1.6,0.7-3.4,1-5.2,0.9H85.7c-2,0.2-4.1-0.3-5.8-1.5%20c-1.3-1.2-1.4-3.3-0.3-6.3l2.9-7.7h-5.1l-2.9,7.7c-3.2,8.7,0,13.1,9.9,13.1h16.7c4.5,0,8.5-3,9.8-7.4l5-13.6h-5L107.3-14.1z'/%3e%3cpath%20id='Path_18'%20class='st0'%20d='M105.4-29.2h-5.1l-1.8,5.1h5L105.4-29.2z'/%3e%3cpath%20id='Path_19'%20class='st0'%20d='M140-13.3c0.6-1.7,1.6-3.2,2.9-4.5c1.2-1.3,2.9-2,4.7-2c2.4,0,3.6,1.2,3.6,3.6l5.2-2.1%20c-0.1-3.4-2.9-6.1-6.3-6c-0.2,0-0.4,0-0.6,0c-3.2,0-6.3,1.2-8.8,3.2c-2.6,2-4.7,4.6-5.9,7.7c-0.6,1.5-0.9,3.2-0.8,4.9h-8.3%20c-1.3,0.2-2.7-0.1-3.8-0.8c-0.7-0.7-0.7-2.2,0-4.4l7.1-19.3H124l-7.7,21.3c-0.9,1.9-1,4-0.3,6c1,1.7,2.9,2.7,4.9,2.4H151l1.9-5.3%20h-13.1c-0.7-1.6-0.7-3.4,0-4.9'/%3e%3cpath%20id='Path_20'%20class='st0'%20d='M210.5-33.5h-5l-1.9,5.1h5L210.5-33.5z'/%3e%3cpath%20id='Path_21'%20class='st0'%20d='M204.7-24.5c-6.5,0.3-12.2,4.5-14.3,10.6c-0.7,1.7-0.9,3.6-0.7,5.5h-12.6l2-5.4%20c2.2-6,0-10.4-5.8-10.4c-6.3,0.2-11.9,4.3-14.1,10.2c-2.2,6.1,0.6,10.7,6.2,10.7h4.9c-1.3,2.3-3.8,3.6-6.4,3.6l-1.5,4%20c5.5,0.3,10.5-2.7,12.8-7.7h21.7c6.5-0.3,12.1-4.5,14.2-10.6c2.2-6-0.2-10.8-6.4-10.8%20M171.9-8.6h-4.6c-2.8,0-3.8-2.6-2.8-5.7%20c1-3,3.7-5,6.9-5.2c2.7,0,3.6,1.9,2.8,4.7L171.9-8.6z%20M198.7-8.1c-3.1,0-4.2-2.7-3-6c0.9-3.2,3.7-5.6,7.1-5.9c3.1,0,4.3,2.6,3,6.1%20C204.8-10.7,202-8.4,198.7-8.1'/%3e%3cpath%20id='Path_22'%20class='st0'%20d='M299.4-13.2c-0.4,1.2-0.9,2.3-1.6,3.3c-1,1.1-2.4,1.6-3.8,1.5h-11.6c1.4-1.5,2.5-3.4,3-5.4%20l7-19.3h-5.1l-7.1,19.3c-0.4,1.3-1,2.5-1.8,3.5c-1,1.1-2.4,1.7-3.8,1.6h-7.7l0.5-1.3c1.1-2.4,1.1-5.3,0-7.7%20c-1.3-2.2-3.8-3.4-6.3-3.1c-3.1,0-6.2,1.1-8.6,3c-2.6,2-4.5,4.6-5.6,7.7c0,0.5-0.4,1-0.5,1.5h-10.7c2.9-7.9,1.6-12.9-3.8-15%20c-0.8-0.3-1.7-0.6-2.5-0.7h-4.8l-1.7,4.7c1.5,0,3,0.1,4.5,0.4c4.3,1,5.4,4.5,3.2,10.6h-16.7l-1.9,5.2h34.7%20c1.1,2.7,3.9,4.2,6.8,3.8c3.6,0,7.2-1.4,9.8-3.8h30.3c5.1,0.1,9.6-3.4,10.8-8.4l7.7-21.4h-5.2L299.4-13.2z%20M259.2-5.5%20c-1.2,1.1-2.7,1.7-4.3,1.7c-3.2,0-4.2-2.7-3-6c0.6-1.5,1.5-2.9,2.7-4c1.2-1.2,2.8-1.8,4.4-1.8c1.4-0.1,2.7,0.6,3.2,1.9%20c0.4,1.4,0.3,2.9-0.3,4.2C261.4-8.1,260.5-6.7,259.2-5.5'/%3e%3cpath%20id='Path_23'%20class='st0'%20d='M336.3-23.3c-0.8-0.3-1.7-0.6-2.5-0.7h-4.8l-1.7,4.7c1.5,0,3,0.1,4.5,0.4%20c4.3,1,5.4,4.5,3.2,10.6h-16.6l-1.9,5.2h21.9l1.9-5.2C343-16.2,341.7-21.2,336.3-23.3'/%3e%3cpath%20id='Path_24'%20class='st0'%20d='M343-3.1h5.1L359-32.9h-5.1L343-3.1z'/%3e%3cpath%20id='Path_25'%20class='st0'%20d='M417.9-13.5c-1.2,3.4-3.2,5.1-5.8,5.1h-4.9c1.5-1.6,2.6-3.5,3.1-5.6l3.8-10.1H409l-3.8,10.6%20c-1.2,3.4-3.2,5.1-5.8,5.1h-4.8v-0.3c1.3-1.6,2.2-3.4,2.8-5.4l3.8-10.1h-5.5l-3.8,10.2c-1.3,3.7-3.3,5.4-5.9,5.4h-9.5%20c2.8-7.7,1.6-12.9-3.8-15c-0.8-0.3-1.7-0.6-2.5-0.7h-4.8l-1.7,4.7c1.5,0,3,0.1,4.5,0.4c4.3,1,5.4,4.5,3.2,10.6h-16.7l-1.9,5.2h58%20c6.2-0.7,11.3-5,12.9-11l3.7-9.9H422L417.9-13.5z'/%3e%3cpath%20id='Path_26'%20class='st0'%20d='M465-24.1h-13c-7.2,0.3-13.4,5.3-15.4,12.3l-5.7,16.2h5.2l5.6-15.4c1.8-5,5.2-8.1,8.6-8.1h3.8%20c-1.4,1.6-2.6,3.4-3.3,5.4c-2.2,6,0.3,10.7,6.5,10.7c6.4-0.3,12-4.5,14.2-10.6c2.2-6.1-0.2-10.8-6.4-10.8%20M459.2-7.7%20c-3.1,0-4.3-2.7-3-6c0.9-3.2,3.7-5.6,7.1-5.9c3.2,0,4.2,2.6,3,6.1C465.3-10.3,462.5-8,459.2-7.7'/%3e%3cpath%20id='Path_27'%20class='st0'%20d='M524.6-33.4h-5l-1.9,5.1h5L524.6-33.4z'/%3e%3cpath%20id='Path_28'%20class='st0'%20d='M551.8-33.4h-5l-1.8,5.1h5L551.8-33.4z'/%3e%3cpath%20id='Path_29'%20class='st0'%20d='M543.3-24.1l-3.8,10.8c-0.4,1.2-0.9,2.3-1.6,3.3c-1,1.1-2.4,1.6-3.8,1.5h-8.3%20c3.8-10.5,1.6-15.8-6.2-15.8c-4.9,0-10.2,2.5-16.5,8l6.7-16.7h-5.1l-8.9,24.5h-10.6c-1.3,0.2-2.7-0.1-3.8-0.8%20c-0.7-0.7-0.7-2.2,0-4.4l7.1-19.3h-5l-7.7,21.3c-0.9,1.9-1.1,4-0.3,6c1,1.7,2.9,2.7,4.9,2.4h52.9c5.1,0.1,9.6-3.4,10.8-8.4%20l4.6-12.6L543.3-24.1z%20M520.2-8.4h-20.5c5.4-6.4,12.5-11.2,17.6-11.2c4.4,0,5.7,3.8,3.6,9.7c-0.1,0.5-0.3,1-0.6,1.5'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",
|
|
2320
|
-
const { t: A } =
|
|
2321
|
-
|
|
2344
|
+
}, Yt = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2023.0.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='91%20347%20820%20306'%20style='enable-background:new%200%200%201000%201000;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23929497;}%20.st1{fill:%23ED7624;}%20%3c/style%3e%3cg%20id='Asset_1'%20transform='translate(295%20638)'%3e%3cg%20id='Layer_1_1_'%3e%3cpath%20id='Path_13'%20class='st0'%20d='M129.5-280.8H88.6C69.3-227.2,36.8-138.2,18.9-89.4c-1.8,4.7-4,9.2-6.7,13.5h28.3%20c7.7-0.5,14.6-4.8,18.3-11.6c0.6-1,1.2-2.1,1.6-3.2l17.1-46.7l0,0C98.7-195.5,127.4-274.4,129.5-280.8'/%3e%3cpath%20id='Path_14'%20class='st1'%20d='M564.2-178.3l-17.1,46.8c-3.2,8.3-10.9,14-19.8,14.6H499c2.9-4.6,5.4-9.5,7.2-14.6l17.1-46.8%20h-41l-17,46.8c-3.2,8.3-11,14-19.8,14.6H417c2.9-4.6,5.3-9.5,7.2-14.6l17.1-46.8h-41l-17,46.8c-3.2,8.3-10.9,14-19.8,14.6h-131%20c3-4.5,5.4-9.3,7.3-14.3l4.3-12c11.2-30.8-4.7-55.6-35.4-55.6h-46.6l-14.9,40.9H194c8.1,0,12.3,6.5,9.3,14.6l-4.5,12%20c-3.2,8.2-10.9,13.8-19.7,14.3h-67.4l-14.9,41h415.9c30.8,0,64.2-24.7,75.4-55.3l17.2-47.1L564.2-178.3z'/%3e%3cpath%20id='Path_15'%20class='st1'%20d='M-85.6-75.9h-108.3l14.9-41h108.4c8.9-0.6,16.7-6.3,20-14.6l4.2-11.6c2.9-8.1-1.2-14.6-9.3-14.6%20H-123l14.9-41h67.2c30.8,0,46.5,24.9,35.4,55.6l-4.2,11.6C-20.9-100.7-54.9-76-85.6-75.9'/%3e%3cpath%20id='Path_16'%20class='st0'%20d='M96.6-29.2h-5l-1.9,5.1h5L96.6-29.2z'/%3e%3cpath%20id='Path_17'%20class='st0'%20d='M107.3-14.1c-0.6,2-2,3.7-3.8,4.8c-1.6,0.7-3.4,1-5.2,0.9H85.7c-2,0.2-4.1-0.3-5.8-1.5%20c-1.3-1.2-1.4-3.3-0.3-6.3l2.9-7.7h-5.1l-2.9,7.7c-3.2,8.7,0,13.1,9.9,13.1h16.7c4.5,0,8.5-3,9.8-7.4l5-13.6h-5L107.3-14.1z'/%3e%3cpath%20id='Path_18'%20class='st0'%20d='M105.4-29.2h-5.1l-1.8,5.1h5L105.4-29.2z'/%3e%3cpath%20id='Path_19'%20class='st0'%20d='M140-13.3c0.6-1.7,1.6-3.2,2.9-4.5c1.2-1.3,2.9-2,4.7-2c2.4,0,3.6,1.2,3.6,3.6l5.2-2.1%20c-0.1-3.4-2.9-6.1-6.3-6c-0.2,0-0.4,0-0.6,0c-3.2,0-6.3,1.2-8.8,3.2c-2.6,2-4.7,4.6-5.9,7.7c-0.6,1.5-0.9,3.2-0.8,4.9h-8.3%20c-1.3,0.2-2.7-0.1-3.8-0.8c-0.7-0.7-0.7-2.2,0-4.4l7.1-19.3H124l-7.7,21.3c-0.9,1.9-1,4-0.3,6c1,1.7,2.9,2.7,4.9,2.4H151l1.9-5.3%20h-13.1c-0.7-1.6-0.7-3.4,0-4.9'/%3e%3cpath%20id='Path_20'%20class='st0'%20d='M210.5-33.5h-5l-1.9,5.1h5L210.5-33.5z'/%3e%3cpath%20id='Path_21'%20class='st0'%20d='M204.7-24.5c-6.5,0.3-12.2,4.5-14.3,10.6c-0.7,1.7-0.9,3.6-0.7,5.5h-12.6l2-5.4%20c2.2-6,0-10.4-5.8-10.4c-6.3,0.2-11.9,4.3-14.1,10.2c-2.2,6.1,0.6,10.7,6.2,10.7h4.9c-1.3,2.3-3.8,3.6-6.4,3.6l-1.5,4%20c5.5,0.3,10.5-2.7,12.8-7.7h21.7c6.5-0.3,12.1-4.5,14.2-10.6c2.2-6-0.2-10.8-6.4-10.8%20M171.9-8.6h-4.6c-2.8,0-3.8-2.6-2.8-5.7%20c1-3,3.7-5,6.9-5.2c2.7,0,3.6,1.9,2.8,4.7L171.9-8.6z%20M198.7-8.1c-3.1,0-4.2-2.7-3-6c0.9-3.2,3.7-5.6,7.1-5.9c3.1,0,4.3,2.6,3,6.1%20C204.8-10.7,202-8.4,198.7-8.1'/%3e%3cpath%20id='Path_22'%20class='st0'%20d='M299.4-13.2c-0.4,1.2-0.9,2.3-1.6,3.3c-1,1.1-2.4,1.6-3.8,1.5h-11.6c1.4-1.5,2.5-3.4,3-5.4%20l7-19.3h-5.1l-7.1,19.3c-0.4,1.3-1,2.5-1.8,3.5c-1,1.1-2.4,1.7-3.8,1.6h-7.7l0.5-1.3c1.1-2.4,1.1-5.3,0-7.7%20c-1.3-2.2-3.8-3.4-6.3-3.1c-3.1,0-6.2,1.1-8.6,3c-2.6,2-4.5,4.6-5.6,7.7c0,0.5-0.4,1-0.5,1.5h-10.7c2.9-7.9,1.6-12.9-3.8-15%20c-0.8-0.3-1.7-0.6-2.5-0.7h-4.8l-1.7,4.7c1.5,0,3,0.1,4.5,0.4c4.3,1,5.4,4.5,3.2,10.6h-16.7l-1.9,5.2h34.7%20c1.1,2.7,3.9,4.2,6.8,3.8c3.6,0,7.2-1.4,9.8-3.8h30.3c5.1,0.1,9.6-3.4,10.8-8.4l7.7-21.4h-5.2L299.4-13.2z%20M259.2-5.5%20c-1.2,1.1-2.7,1.7-4.3,1.7c-3.2,0-4.2-2.7-3-6c0.6-1.5,1.5-2.9,2.7-4c1.2-1.2,2.8-1.8,4.4-1.8c1.4-0.1,2.7,0.6,3.2,1.9%20c0.4,1.4,0.3,2.9-0.3,4.2C261.4-8.1,260.5-6.7,259.2-5.5'/%3e%3cpath%20id='Path_23'%20class='st0'%20d='M336.3-23.3c-0.8-0.3-1.7-0.6-2.5-0.7h-4.8l-1.7,4.7c1.5,0,3,0.1,4.5,0.4%20c4.3,1,5.4,4.5,3.2,10.6h-16.6l-1.9,5.2h21.9l1.9-5.2C343-16.2,341.7-21.2,336.3-23.3'/%3e%3cpath%20id='Path_24'%20class='st0'%20d='M343-3.1h5.1L359-32.9h-5.1L343-3.1z'/%3e%3cpath%20id='Path_25'%20class='st0'%20d='M417.9-13.5c-1.2,3.4-3.2,5.1-5.8,5.1h-4.9c1.5-1.6,2.6-3.5,3.1-5.6l3.8-10.1H409l-3.8,10.6%20c-1.2,3.4-3.2,5.1-5.8,5.1h-4.8v-0.3c1.3-1.6,2.2-3.4,2.8-5.4l3.8-10.1h-5.5l-3.8,10.2c-1.3,3.7-3.3,5.4-5.9,5.4h-9.5%20c2.8-7.7,1.6-12.9-3.8-15c-0.8-0.3-1.7-0.6-2.5-0.7h-4.8l-1.7,4.7c1.5,0,3,0.1,4.5,0.4c4.3,1,5.4,4.5,3.2,10.6h-16.7l-1.9,5.2h58%20c6.2-0.7,11.3-5,12.9-11l3.7-9.9H422L417.9-13.5z'/%3e%3cpath%20id='Path_26'%20class='st0'%20d='M465-24.1h-13c-7.2,0.3-13.4,5.3-15.4,12.3l-5.7,16.2h5.2l5.6-15.4c1.8-5,5.2-8.1,8.6-8.1h3.8%20c-1.4,1.6-2.6,3.4-3.3,5.4c-2.2,6,0.3,10.7,6.5,10.7c6.4-0.3,12-4.5,14.2-10.6c2.2-6.1-0.2-10.8-6.4-10.8%20M459.2-7.7%20c-3.1,0-4.3-2.7-3-6c0.9-3.2,3.7-5.6,7.1-5.9c3.2,0,4.2,2.6,3,6.1C465.3-10.3,462.5-8,459.2-7.7'/%3e%3cpath%20id='Path_27'%20class='st0'%20d='M524.6-33.4h-5l-1.9,5.1h5L524.6-33.4z'/%3e%3cpath%20id='Path_28'%20class='st0'%20d='M551.8-33.4h-5l-1.8,5.1h5L551.8-33.4z'/%3e%3cpath%20id='Path_29'%20class='st0'%20d='M543.3-24.1l-3.8,10.8c-0.4,1.2-0.9,2.3-1.6,3.3c-1,1.1-2.4,1.6-3.8,1.5h-8.3%20c3.8-10.5,1.6-15.8-6.2-15.8c-4.9,0-10.2,2.5-16.5,8l6.7-16.7h-5.1l-8.9,24.5h-10.6c-1.3,0.2-2.7-0.1-3.8-0.8%20c-0.7-0.7-0.7-2.2,0-4.4l7.1-19.3h-5l-7.7,21.3c-0.9,1.9-1.1,4-0.3,6c1,1.7,2.9,2.7,4.9,2.4h52.9c5.1,0.1,9.6-3.4,10.8-8.4%20l4.6-12.6L543.3-24.1z%20M520.2-8.4h-20.5c5.4-6.4,12.5-11.2,17.6-11.2c4.4,0,5.7,3.8,3.6,9.7c-0.1,0.5-0.3,1-0.6,1.5'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Un = () => {
|
|
2345
|
+
const { t: A } = Z(), { formattedAmount: t, currency: e, sadadbill: n } = E(q), [r, a] = z(!1), [o, l] = z(!1), { makePayment: i, busy: s, fail: p, success: c, loading: f } = vA({ defaultError: {} }), d = () => {
|
|
2346
|
+
i({
|
|
2322
2347
|
initPayment: !0,
|
|
2323
2348
|
data: {
|
|
2324
|
-
source:
|
|
2349
|
+
source: B({
|
|
2325
2350
|
type: "sadadbill"
|
|
2326
2351
|
}, n != null ? n : {})
|
|
2327
2352
|
}
|
|
@@ -2330,10 +2355,10 @@ const kn = () => {
|
|
|
2330
2355
|
});
|
|
2331
2356
|
}, y = () => {
|
|
2332
2357
|
l(!0);
|
|
2333
|
-
},
|
|
2358
|
+
}, b = () => {
|
|
2334
2359
|
o && (a(!1), l(!1));
|
|
2335
2360
|
};
|
|
2336
|
-
return /* @__PURE__ */ u(
|
|
2361
|
+
return /* @__PURE__ */ u(F, { children: [
|
|
2337
2362
|
/* @__PURE__ */ u(
|
|
2338
2363
|
"button",
|
|
2339
2364
|
{
|
|
@@ -2344,11 +2369,11 @@ const kn = () => {
|
|
|
2344
2369
|
children: /* @__PURE__ */ u("img", { src: Yt, alt: A("sadad_bill.button"), class: "h-8" })
|
|
2345
2370
|
}
|
|
2346
2371
|
),
|
|
2347
|
-
r && /* @__PURE__ */ u(
|
|
2372
|
+
r && /* @__PURE__ */ u(F, { children: [
|
|
2348
2373
|
/* @__PURE__ */ u(
|
|
2349
2374
|
"div",
|
|
2350
2375
|
{
|
|
2351
|
-
class:
|
|
2376
|
+
class: rA([
|
|
2352
2377
|
"fixed inset-0 z-[9] bg-gray-500/75 transition-opacity",
|
|
2353
2378
|
o ? "animate-fade-out duration-300" : "animate-fade-in duration-200"
|
|
2354
2379
|
])
|
|
@@ -2357,11 +2382,11 @@ const kn = () => {
|
|
|
2357
2382
|
/* @__PURE__ */ u("div", { class: "fixed inset-0 z-10 flex flex-col justify-end md:justify-center", children: /* @__PURE__ */ u(
|
|
2358
2383
|
"div",
|
|
2359
2384
|
{
|
|
2360
|
-
class:
|
|
2385
|
+
class: rA([
|
|
2361
2386
|
"flex w-full origin-bottom flex-col gap-4 rounded-t-lg border-neutral-300 bg-slate-100 p-4 shadow transition-all md:mx-auto md:max-w-96 md:rounded-b-lg lg:max-w-screen-sm lg:p-10",
|
|
2362
2387
|
o ? "animate-dialog-out-mobile duration-200 md:animate-dialog-out" : "animate-dialog-in-mobile duration-300 md:animate-dialog-in"
|
|
2363
2388
|
]),
|
|
2364
|
-
onAnimationEnd:
|
|
2389
|
+
onAnimationEnd: b,
|
|
2365
2390
|
children: [
|
|
2366
2391
|
/* @__PURE__ */ u(dt, { inForm: !0 }),
|
|
2367
2392
|
/* @__PURE__ */ u("div", { class: "flex items-center", children: [
|
|
@@ -2370,9 +2395,9 @@ const kn = () => {
|
|
|
2370
2395
|
] }),
|
|
2371
2396
|
/* @__PURE__ */ u("p", { class: "text-sm leading-5 text-neutral-800/90", children: A("sadad_bill.description") }),
|
|
2372
2397
|
/* @__PURE__ */ u(
|
|
2373
|
-
|
|
2398
|
+
NA,
|
|
2374
2399
|
{
|
|
2375
|
-
success:
|
|
2400
|
+
success: c,
|
|
2376
2401
|
fail: p,
|
|
2377
2402
|
busy: s,
|
|
2378
2403
|
variant: "primary",
|
|
@@ -2391,14 +2416,14 @@ const kn = () => {
|
|
|
2391
2416
|
) })
|
|
2392
2417
|
] })
|
|
2393
2418
|
] });
|
|
2394
|
-
},
|
|
2395
|
-
const { t: A } =
|
|
2396
|
-
return !
|
|
2397
|
-
a && /* @__PURE__ */ u(
|
|
2398
|
-
|
|
2399
|
-
s && /* @__PURE__ */ u(
|
|
2400
|
-
p && /* @__PURE__ */ u(
|
|
2401
|
-
l && /* @__PURE__ */ u(
|
|
2419
|
+
}, En = () => {
|
|
2420
|
+
const { t: A } = Z(), { methods: t, apple_pay: e, samsung_pay: n, google_pay: r } = E(q), a = t.includes("stcpay"), o = t.includes("creditcard"), l = t.includes("sadadbill"), i = location.protocol === "https:" && t.includes("applepay") && typeof window.ApplePaySession != "undefined" && ApplePaySession.canMakePayments() && (e == null ? void 0 : e.version) && ApplePaySession.supportsVersion(e == null ? void 0 : e.version), s = !!(n != null && n.service_id), p = !!(r != null && r.merchant_id);
|
|
2421
|
+
return !i && !a && !s && !p && !l ? null : /* @__PURE__ */ u("div", { class: "flex w-full flex-col gap-4", role: "main", children: [
|
|
2422
|
+
a && /* @__PURE__ */ u(_n, {}),
|
|
2423
|
+
i && /* @__PURE__ */ u(Nn, {}),
|
|
2424
|
+
s && /* @__PURE__ */ u(On, {}),
|
|
2425
|
+
p && /* @__PURE__ */ u(zn, {}),
|
|
2426
|
+
l && /* @__PURE__ */ u(Un, {}),
|
|
2402
2427
|
o && /* @__PURE__ */ u("div", { class: "flex items-center gap-4", children: [
|
|
2403
2428
|
/* @__PURE__ */ u("hr", { class: "grow bg-neutral-300" }),
|
|
2404
2429
|
/* @__PURE__ */ u("span", { class: "text-neutral-800/90", children: A("form.or_pay_with_card") }),
|
|
@@ -2413,33 +2438,33 @@ const kn = () => {
|
|
|
2413
2438
|
isValidFormat: n,
|
|
2414
2439
|
isValid: !t && e && n
|
|
2415
2440
|
};
|
|
2416
|
-
},
|
|
2417
|
-
const { t: r } =
|
|
2418
|
-
const
|
|
2441
|
+
}, Gn = ({ value: A, setValue: t, err: e, setErr: n }) => {
|
|
2442
|
+
const { t: r } = Z(), [a, o] = z(!1), l = (p) => {
|
|
2443
|
+
const c = p.target.value.trim(), { isEmpty: f, isEnglishOnly: d, isValidFormat: y } = Ce(c);
|
|
2419
2444
|
if (f) {
|
|
2420
|
-
o(!
|
|
2445
|
+
o(!c);
|
|
2421
2446
|
return;
|
|
2422
2447
|
}
|
|
2423
2448
|
if (!d) {
|
|
2424
|
-
n((
|
|
2449
|
+
n((b) => N(B({}, b), { name: "validation.should_be_english_letters_only" }));
|
|
2425
2450
|
return;
|
|
2426
2451
|
}
|
|
2427
2452
|
if (!y) {
|
|
2428
|
-
n((
|
|
2453
|
+
n((b) => N(B({}, b), { name: "validation.first_and_last_name_required" }));
|
|
2429
2454
|
return;
|
|
2430
2455
|
}
|
|
2431
|
-
o(!1), n((
|
|
2432
|
-
},
|
|
2433
|
-
const
|
|
2456
|
+
o(!1), n((b) => N(B({}, b), { name: "" }));
|
|
2457
|
+
}, i = (p) => {
|
|
2458
|
+
const c = p.target, { value: f } = c;
|
|
2434
2459
|
t(f);
|
|
2435
|
-
}, s =
|
|
2460
|
+
}, s = mA(l, 1e3);
|
|
2436
2461
|
return /* @__PURE__ */ u("div", { class: "space-y-2", role: "complementary", "aria-label": r("form.name_on_card"), children: [
|
|
2437
2462
|
/* @__PURE__ */ u("div", { class: "flex items-end justify-between text-xs font-medium", children: [
|
|
2438
2463
|
/* @__PURE__ */ u("label", { for: "mysr-cc-name", children: r("form.name_on_card") }),
|
|
2439
2464
|
a && /* @__PURE__ */ u("span", { class: "uppercase text-error", children: r("form.required") })
|
|
2440
2465
|
] }),
|
|
2441
2466
|
/* @__PURE__ */ u(
|
|
2442
|
-
|
|
2467
|
+
fA,
|
|
2443
2468
|
{
|
|
2444
2469
|
name: "mysr-cc-name",
|
|
2445
2470
|
placeholder: r("form.name_on_card"),
|
|
@@ -2449,9 +2474,9 @@ const kn = () => {
|
|
|
2449
2474
|
dir: "ltr",
|
|
2450
2475
|
value: A,
|
|
2451
2476
|
onKeyUp: (p) => {
|
|
2452
|
-
|
|
2477
|
+
i(p), s(p);
|
|
2453
2478
|
},
|
|
2454
|
-
onChange:
|
|
2479
|
+
onChange: i
|
|
2455
2480
|
}
|
|
2456
2481
|
),
|
|
2457
2482
|
e.name && /* @__PURE__ */ u("p", { class: "text-xs font-medium text-error", children: r(e.name) })
|
|
@@ -2462,15 +2487,15 @@ const kn = () => {
|
|
|
2462
2487
|
isValid: e,
|
|
2463
2488
|
msg: e ? "" : "error.invalid_csc"
|
|
2464
2489
|
};
|
|
2465
|
-
}, GA =
|
|
2466
|
-
const { t } =
|
|
2467
|
-
const
|
|
2490
|
+
}, GA = it({}), Jn = ({ setValue: A }) => {
|
|
2491
|
+
const { t } = Z(), { handleBlur: e, err: n } = E(GA), r = "** / **", a = (l) => {
|
|
2492
|
+
const i = l.target, { value: s } = i;
|
|
2468
2493
|
A(s);
|
|
2469
|
-
}, o =
|
|
2494
|
+
}, o = mA(e, 1e3);
|
|
2470
2495
|
return V(() => {
|
|
2471
2496
|
new EA('[name="mysr-cc-exp"]');
|
|
2472
2497
|
}, []), /* @__PURE__ */ u(
|
|
2473
|
-
|
|
2498
|
+
fA,
|
|
2474
2499
|
{
|
|
2475
2500
|
"aria-label": t("form.date"),
|
|
2476
2501
|
name: "mysr-cc-exp",
|
|
@@ -2488,13 +2513,13 @@ const kn = () => {
|
|
|
2488
2513
|
error: n.exp
|
|
2489
2514
|
}
|
|
2490
2515
|
);
|
|
2491
|
-
},
|
|
2492
|
-
const { t: e } =
|
|
2493
|
-
const s =
|
|
2516
|
+
}, xn = ({ value: A, setValue: t }) => {
|
|
2517
|
+
const { t: e } = Z(), { handleBlur: n, err: r, config: a } = E(GA), o = (i) => {
|
|
2518
|
+
const s = i.target, { value: p } = s;
|
|
2494
2519
|
t(p);
|
|
2495
|
-
}, l =
|
|
2520
|
+
}, l = mA(n, 1e3);
|
|
2496
2521
|
return /* @__PURE__ */ u(
|
|
2497
|
-
|
|
2522
|
+
fA,
|
|
2498
2523
|
{
|
|
2499
2524
|
"aria-label": e("form.csc"),
|
|
2500
2525
|
name: "mysr-cc-csc",
|
|
@@ -2505,15 +2530,15 @@ const kn = () => {
|
|
|
2505
2530
|
inputMode: "numeric",
|
|
2506
2531
|
maxLength: a.csc,
|
|
2507
2532
|
value: A,
|
|
2508
|
-
onKeyUp: (
|
|
2509
|
-
o(
|
|
2533
|
+
onKeyUp: (i) => {
|
|
2534
|
+
o(i), l(i);
|
|
2510
2535
|
},
|
|
2511
2536
|
error: r.csc
|
|
2512
2537
|
}
|
|
2513
2538
|
);
|
|
2514
|
-
},
|
|
2539
|
+
}, qn = (A) => /^4/.test(W(A)), Wn = (A) => /^(?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)/.test(W(A)), Me = (A) => /^3[47]/.test(W(A)), ke = (A) => /^(62|60|81)[0-9]{14,17}$/.test(W(A)), Be = (A) => {
|
|
2515
2540
|
const t = W(A), e = t.slice(0, 6), n = t.slice(0, 8);
|
|
2516
|
-
for (const r of
|
|
2541
|
+
for (const r of Ln)
|
|
2517
2542
|
if (r == e || r == n)
|
|
2518
2543
|
return !0;
|
|
2519
2544
|
return !1;
|
|
@@ -2521,22 +2546,22 @@ const kn = () => {
|
|
|
2521
2546
|
const { supported_networks: A } = E(q);
|
|
2522
2547
|
function t(e) {
|
|
2523
2548
|
let n = "";
|
|
2524
|
-
return
|
|
2549
|
+
return qn(e) && (n = "visa"), Wn(e) && (n = "mastercard"), Me(e) && (n = "amex"), ke(e) && (n = "unionpay"), Be(e) && (n = "mada"), n === "" || !A.includes(n) ? "" : n;
|
|
2525
2550
|
}
|
|
2526
2551
|
return {
|
|
2527
2552
|
getCardSchema: t
|
|
2528
2553
|
};
|
|
2529
|
-
},
|
|
2530
|
-
const { t: e } =
|
|
2531
|
-
const p = s.target, { value:
|
|
2532
|
-
t(
|
|
2533
|
-
},
|
|
2554
|
+
}, Vn = ({ value: A, setValue: t }) => {
|
|
2555
|
+
const { t: e } = Z(), { handleBlur: n, err: r, setType: a } = E(GA), { getCardSchema: o } = ft(), l = (s) => {
|
|
2556
|
+
const p = s.target, { value: c } = p;
|
|
2557
|
+
t(c), a(o(c));
|
|
2558
|
+
}, i = mA(n, 1e3);
|
|
2534
2559
|
return V(() => {
|
|
2535
2560
|
new EA('[name="mysr-cc-number"]', {
|
|
2536
2561
|
mask: (s) => Me(s) ? "#### ###### #####" : "#### #### #### ####"
|
|
2537
2562
|
});
|
|
2538
2563
|
}, []), /* @__PURE__ */ u(
|
|
2539
|
-
|
|
2564
|
+
fA,
|
|
2540
2565
|
{
|
|
2541
2566
|
"aria-label": e("form.cc"),
|
|
2542
2567
|
name: "mysr-cc-number",
|
|
@@ -2547,38 +2572,38 @@ const kn = () => {
|
|
|
2547
2572
|
inputMode: "numeric",
|
|
2548
2573
|
value: A,
|
|
2549
2574
|
onKeyUp: (s) => {
|
|
2550
|
-
l(s),
|
|
2575
|
+
l(s), i(s);
|
|
2551
2576
|
},
|
|
2552
2577
|
onChange: l,
|
|
2553
2578
|
error: r.cc
|
|
2554
2579
|
}
|
|
2555
2580
|
);
|
|
2556
|
-
}, Vn = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%2096%2064'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20xmlns:serif='http://www.serif.com/'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;'%3e%3cpath%20d='M95,6.894c0,-3.253%20-2.641,-5.894%20-5.894,-5.894l-82.212,0c-3.253,0%20-5.894,2.641%20-5.894,5.894l0,50.212c0,3.253%202.641,5.894%205.894,5.894l82.212,0c3.253,0%205.894,-2.641%205.894,-5.894l0,-50.212Z'%20style='fill:%23fff;stroke:%237e7e7e;stroke-width:0.5px;'/%3e%3cclipPath%20id='_clip1'%3e%3crect%20x='7.179'%20y='18.832'%20width='81.642'%20height='26.336'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23_clip1)'%3e%3cg%3e%3cpath%20d='M47.418,19.387l-5.431,25.384l-6.567,0l5.432,-25.384l6.566,0Zm27.627,16.39l3.457,-9.532l1.989,9.532l-5.446,0Zm7.326,8.994l6.074,0l-5.3,-25.384l-5.607,0c-1.259,0%20-2.323,0.733%20-2.795,1.863l-9.852,23.521l6.895,0l1.37,-3.79l8.424,-0l0.791,3.79Zm-17.137,-8.287c0.028,-6.701%20-9.267,-7.069%20-9.201,-10.062c0.019,-0.912%200.887,-1.879%202.784,-2.127c0.943,-0.123%203.534,-0.218%206.476,1.136l1.152,-5.383c-1.58,-0.574%20-3.614,-1.125%20-6.143,-1.125c-6.49,-0%20-11.059,3.451%20-11.097,8.391c-0.041,3.655%203.261,5.693%205.75,6.908c2.557,1.245%203.417,2.041%203.406,3.154c-0.017,1.704%20-2.041,2.455%20-3.929,2.485c-3.302,0.052%20-5.218,-0.892%20-6.745,-1.603l-1.19,5.562c1.534,0.705%204.365,1.317%207.303,1.348c6.898,0%2011.411,-3.408%2011.434,-8.684Zm-27.2,-17.097l-10.639,25.384l-6.942,0l-5.235,-20.258c-0.318,-1.248%20-0.595,-1.705%20-1.562,-2.23c-1.576,-0.857%20-4.183,-1.66%20-6.477,-2.158l0.157,-0.738l11.173,0c1.423,0%202.705,0.948%203.028,2.588l2.765,14.69l6.833,-17.278l6.899,0Z'%20style='fill:%230d357f;fill-rule:nonzero;'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Yn = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%2096%2064'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20xmlns:serif='http://www.serif.com/'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;'%3e%3cpath%20d='M95,7.094c0,-3.363%20-2.731,-6.094%20-6.094,-6.094l-81.812,0c-3.363,0%20-6.094,2.731%20-6.094,6.094l-0,49.812c-0,3.363%202.731,6.094%206.094,6.094l81.812,0c3.363,0%206.094,-2.731%206.094,-6.094l0,-49.812Z'%20style='fill:%23fff;stroke:%23b1b1b1;stroke-width:0.5px;'/%3e%3cpath%20d='M95,6.894c0,-3.253%20-2.641,-5.894%20-5.894,-5.894l-82.212,0c-3.253,0%20-5.894,2.641%20-5.894,5.894l0,50.212c0,3.253%202.641,5.894%205.894,5.894l82.212,0c3.253,0%205.894,-2.641%205.894,-5.894l0,-50.212Z'%20style='fill:%23fff;stroke:%237e7e7e;stroke-width:0.5px;'/%3e%3cg%20opacity='0'%3e%3crect%20x='14.04'%20y='9.539'%20width='67.919'%20height='44.921'%20style='fill:%23fff;'/%3e%3c/g%3e%3crect%20x='39.044'%20y='17.366'%20width='17.917'%20height='29.263'%20style='fill:%23ff5f00;'/%3e%3cpath%20d='M40.89,32c-0.005,-5.706%202.619,-11.106%207.107,-14.629c-3.278,-2.576%20-7.329,-3.978%20-11.498,-3.978c-10.209,0%20-18.61,8.401%20-18.61,18.61c0,10.208%208.401,18.609%2018.61,18.609c4.169,-0%208.22,-1.401%2011.498,-3.978c-4.489,-3.524%20-7.113,-8.927%20-7.107,-14.634Z'%20style='fill:%23eb001b;fill-rule:nonzero;'/%3e%3cpath%20d='M76.33,43.533l0,-0.6l0.259,0l-0,-0.124l-0.615,-0l-0,0.124l0.242,0l0,0.6l0.114,-0Zm1.194,-0l0,-0.724l-0.186,-0l-0.217,0.517l-0.217,-0.517l-0.186,-0l-0,0.724l0.134,-0l0,-0.548l0.202,0.47l0.139,0l0.202,-0.47l0,0.548l0.129,-0Z'%20style='fill:%23f79e1b;fill-rule:nonzero;'/%3e%3cpath%20d='M78.108,32c0,10.209%20-8.4,18.609%20-18.609,18.609c-4.171,-0%20-8.223,-1.402%20-11.502,-3.98c4.487,-3.526%207.111,-8.926%207.111,-14.632c-0,-5.705%20-2.624,-11.106%20-7.111,-14.631c3.279,-2.578%207.331,-3.98%2011.502,-3.98c10.209,-0%2018.609,8.4%2018.609,18.609l0,0.005Z'%20style='fill:%23f79e1b;fill-rule:nonzero;'/%3e%3c/svg%3e", Zn = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%2096%2064'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20xmlns:serif='http://www.serif.com/'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;'%3e%3cpath%20d='M95,7.053c0,-3.341%20-2.712,-6.053%20-6.053,-6.053l-81.894,-0c-3.341,-0%20-6.053,2.712%20-6.053,6.053l0,49.894c0,3.341%202.712,6.053%206.053,6.053l81.894,0c3.341,0%206.053,-2.712%206.053,-6.053l0,-49.894Z'%20style='fill:%23006fcf;stroke:%237e7e7e;stroke-width:0.5px;'/%3e%3cg%3e%3cpath%20d='M54.459,9.71l-10.404,23.609l8.342,0l0,21.172l26.31,0l4.061,-4.51l4.063,4.534l7.933,0l0,-2.672l-6.538,0l-5.395,-5.867l-5.44,5.88l-22.088,0l0,-18.444l22.202,0l5.408,5.938l5.476,-5.963l6.352,-0l0,-2.626l-4.935,-0l-0,-12.769l-4.686,12.699l-4.45,0l-4.823,-12.608l0,12.647l-10.546,0l-1.49,-3.637l-8.559,0l-1.457,3.589l-5.544,0l8.116,-18.39l6.498,-0l8.058,18.438l-0,-18.443l7.875,-0l4.161,11.351l4.127,-11.364l7.714,0.003l0,-2.656l-9.767,-0l-2.048,5.839l-2.2,-5.8l-12.552,-0l-0.077,7.83l-3.474,-7.76l-10.223,-0.02Z'%20style='fill:%23fff;'/%3e%3cpath%20d='M59.526,16.941l-2.53,5.961l5.011,0l-2.481,-5.961Z'%20style='fill:%23fff;'/%3e%3cpath%20d='M60.312,37.605l10.641,-0l0,-4.147l8.738,9.184l-8.621,9.204l-0.101,0l0,-4.221l-10.669,-0l-0,-2.905l10.397,0l-0,-4.077l-10.397,0l0.012,-3.038Z'%20style='fill:%23fff;'/%3e%3cpath%20d='M94.723,47.865l0,3.969l-8.581,-9.23l8.59,-9.225l-0,3.95l-4.946,5.265l4.937,5.271Z'%20style='fill:%23fff;'/%3e%3c/g%3e%3c/svg%3e", Kn = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%2096%2064'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20xmlns:serif='http://www.serif.com/'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;'%3e%3cpath%20d='M95,6.894c0,-3.253%20-2.641,-5.894%20-5.894,-5.894l-82.212,0c-3.253,0%20-5.894,2.641%20-5.894,5.894l0,50.212c0,3.253%202.641,5.894%205.894,5.894l82.212,0c3.253,0%205.894,-2.641%205.894,-5.894l0,-50.212Z'%20style='fill:%23fff;stroke:%237e7e7e;stroke-width:0.5px;'/%3e%3cg%3e%3crect%20x='5.311'%20y='34.182'%20width='36.116'%20height='12.031'%20style='fill:%2384b740;'/%3e%3crect%20x='5.311'%20y='17.765'%20width='36.116'%20height='12.042'%20style='fill:%23259bd6;'/%3e%3cpath%20d='M77.542,43.769l-0.161,0.032c-0.557,0.107%20-0.761,0.15%20-1.168,0.15c-0.944,-0%20-2.059,-0.483%20-2.059,-2.756c-0,-1.169%200.193,-2.724%201.951,-2.724l0.011,0c0.3,0.022%200.644,0.054%201.287,0.247l0.139,0.043l0,5.008Zm0.29,-11.335l-0.29,0.054l0,4.203l-0.257,-0.075l-0.075,-0.021c-0.29,-0.086%20-0.954,-0.279%20-1.598,-0.279c-3.517,0%20-4.257,2.659%20-4.257,4.89c0,3.056%201.716,4.815%204.708,4.815c1.265,-0%202.198,-0.129%203.141,-0.44c0.869,-0.279%201.18,-0.676%201.18,-1.523l-0,-12.063c-0.836,0.15%20-1.705,0.3%20-2.552,0.439'%20style='fill:%2327292d;fill-rule:nonzero;'/%3e%3cpath%20d='M87.997,43.844l-0.15,0.043l-0.536,0.139c-0.504,0.129%20-0.954,0.204%20-1.297,0.204c-0.826,-0%20-1.319,-0.408%20-1.319,-1.105c-0,-0.45%200.203,-1.211%201.555,-1.211l1.747,-0l0,1.93Zm-1.233,-7.582c-1.083,0%20-2.198,0.193%20-3.581,0.622l-0.901,0.268l0.3,2.038l0.88,-0.29c0.922,-0.3%202.069,-0.493%202.927,-0.493c0.386,0%201.566,0%201.566,1.276l-0,0.558l-1.641,-0c-2.992,-0%20-4.375,0.954%20-4.375,3.002c-0,1.748%201.276,2.799%203.421,2.799c0.664,-0%201.587,-0.129%202.38,-0.322l0.043,-0.01l0.043,0.01l0.268,0.043c0.836,0.15%201.705,0.3%202.552,0.461l0,-6.691c0,-2.166%20-1.308,-3.271%20-3.882,-3.271'%20style='fill:%2327292d;fill-rule:nonzero;'/%3e%3cpath%20d='M67.162,43.844l-0.15,0.043l-0.536,0.139c-0.504,0.129%20-0.944,0.204%20-1.297,0.204c-0.826,-0%20-1.319,-0.408%20-1.319,-1.105c-0,-0.45%200.203,-1.211%201.544,-1.211l1.748,-0l0.01,1.93Zm-1.222,-7.582c-1.094,0%20-2.198,0.193%20-3.582,0.622l-0.9,0.268l0.3,2.038l0.879,-0.29c0.922,-0.3%202.07,-0.493%202.928,-0.493c0.386,0%201.565,0%201.565,1.276l0,0.558l-1.641,-0c-2.991,-0%20-4.385,0.954%20-4.385,3.002c-0,1.748%201.276,2.799%203.431,2.799c0.665,-0%201.587,-0.129%202.381,-0.322l0.043,-0.01l0.042,0.01l0.258,0.043c0.847,0.15%201.705,0.3%202.552,0.472l-0,-6.691c0.011,-2.188%20-1.298,-3.282%20-3.871,-3.282'%20style='fill:%2327292d;fill-rule:nonzero;'/%3e%3cpath%20d='M55.871,36.284c-1.362,-0%20-2.488,0.45%20-2.906,0.643l-0.107,0.054l-0.097,-0.075c-0.579,-0.418%20-1.426,-0.633%20-2.606,-0.633c-1.04,0%20-2.016,0.15%20-3.077,0.461c-0.912,0.279%20-1.266,0.719%20-1.266,1.544l0,7.646l2.853,0l-0,-7.067l0.139,-0.042c0.579,-0.193%200.922,-0.226%201.255,-0.226c0.826,0%201.244,0.44%201.244,1.298l-0,6.048l2.809,-0l0,-6.166c0,-0.365%20-0.075,-0.579%20-0.086,-0.622l-0.096,-0.182l0.193,-0.086c0.429,-0.193%200.901,-0.29%201.394,-0.29c0.568,0%201.244,0.226%201.244,1.298l-0,6.048l2.799,-0l-0,-6.327c-0,-2.241%20-1.201,-3.324%20-3.689,-3.324'%20style='fill:%2327292d;fill-rule:nonzero;'/%3e%3cpath%20d='M85.896,25.614c-0.419,0%20-1.116,-0.043%20-1.662,-0.15l-0.161,-0.032l-0,-4.128c-0,-0.344%20-0.065,-0.558%20-0.075,-0.59l-0.086,-0.172l0.182,-0.075c0.043,-0.021%200.086,-0.032%200.14,-0.053l0.032,-0.022c0.064,-0.021%200.128,-0.043%200.193,-0.064c0.032,-0.011%200.053,-0.022%200.075,-0.022c0.633,-0.171%201.212,-0.15%201.469,-0.171l0.011,-0c1.748,-0%201.951,1.555%201.951,2.723c-0.01,2.274%20-1.136,2.756%20-2.069,2.756m-0.011,-7.849l-0.075,-0c-1.641,-0%20-3.324,0.45%20-3.925,1.33c-0.321,0.429%20-0.504,0.965%20-0.514,1.597l-0,4.258c-0,0.364%20-0.076,0.504%20-0.086,0.536l-0.097,0.182l-5.179,-0l-0,-2.96l-0.011,0c-0.064,-3.12%20-1.909,-4.836%20-4.579,-4.836l-2.605,0c-0.108,0.762%20-0.193,1.298%20-0.301,2.059l2.595,0c1.362,0%202.081,1.158%202.081,2.938l-0,2.981l-0.183,-0.096c-0.032,-0.011%20-0.257,-0.086%20-0.611,-0.086l-4.482,-0c-0.086,0.568%20-0.193,1.308%20-0.311,2.048l13.779,0c0.472,-0.096%201.019,-0.182%201.491,-0.257c0.697,0.343%201.994,0.525%202.884,0.525c2.992,0%204.933,-2.005%204.933,-5.093c-0.011,-3.056%20-1.887,-5.062%20-4.804,-5.126'%20style='fill:%2327292d;fill-rule:nonzero;'/%3e%3cpath%20d='M57.78,28.971l4.074,-0c2.992,-0%204.386,-0.987%204.386,-3.421c0,-1.748%20-1.276,-3.142%20-3.421,-3.142l-2.755,0c-0.826,0%20-1.319,-0.472%20-1.319,-1.265c-0,-0.536%200.203,-1.201%201.554,-1.201l6.027,-0c0.129,-0.783%200.193,-1.276%200.311,-2.059l-6.262,-0c-2.917,-0%20-4.386,1.222%20-4.386,3.26c-0,2.016%201.276,3.067%203.42,3.067l2.756,-0c0.826,-0%201.319,0.654%201.319,1.34c0,0.45%20-0.203,1.383%20-1.544,1.383l-0.461,0l-8.825,-0.021l-1.609,-0c-1.361,-0%20-2.316,-0.772%20-2.316,-2.563l0,-1.233c0,-1.866%200.74,-3.024%202.316,-3.024l2.617,-0c0.118,-0.794%200.193,-1.298%200.3,-2.048l-3.571,-0c-2.67,-0%20-4.514,1.791%20-4.579,4.911l0,1.394c0.065,3.12%201.909,4.611%204.579,4.611l2.606,-0l4.783,0.011Z'%20style='fill:%2327292d;fill-rule:nonzero;'/%3e%3c/g%3e%3c/svg%3e", Hn = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20450.53%20281.82'%3e%3cdefs%3e%3cstyle%3e.a{fill:%23e21836;}.b{fill:%2300447c;}.c{fill:%23007b84;}.d{fill:%23fefefe;}%3c/style%3e%3c/defs%3e%3ctitle%3eunionpay%3c/title%3e%3cpath%20class='a'%20d='M88.23,0H200.68c15.7,0,25.46,12.79,21.8,28.54L170.13,253.32c-3.7,15.69-19.42,28.5-35.12,28.5H22.57c-15.68,0-25.46-12.81-21.8-28.5L53.14,28.54C56.81,12.79,72.51,0,88.23,0'/%3e%3cpath%20class='b'%20d='M191.32,0H320.64c15.69,0,8.62,12.79,4.92,28.54L273.22,253.32c-3.67,15.69-2.53,28.5-18.26,28.5H125.65c-15.73,0-25.46-12.81-21.77-28.5L156.23,28.54C159.94,12.79,175.62,0,191.32,0'/%3e%3cpath%20class='c'%20d='M315.51,0H428c15.72,0,25.48,12.79,21.79,28.54L397.41,253.32c-3.7,15.69-19.43,28.5-35.14,28.5H249.87c-15.73,0-25.48-12.81-21.8-28.5L280.42,28.54C284.09,12.79,299.78,0,315.51,0'/%3e%3cpath%20class='d'%20d='M117.6,72c-11.57.12-15,0-16.07-.25-.42,2-8.22,38-8.25,38-1.68,7.28-2.9,12.47-7,15.82a12.57,12.57,0,0,1-8.3,2.89c-5.13,0-8.12-2.55-8.62-7.38l-.09-1.65s1.56-9.76,1.56-9.81S79,76.86,80.43,72.53a3,3,0,0,0,.12-.5c-15.94.14-18.76,0-19-.25-.11.35-.5,2.38-.5,2.38l-8.36,37L52,114.27l-1.39,10.26a15.07,15.07,0,0,0,1.79,7.62c3.81,6.66,14.67,7.66,20.82,7.66,7.92,0,15.35-1.68,20.37-4.76,8.72-5.15,11-13.2,13-20.35l1-3.67S116,77,117.45,72.53A1.35,1.35,0,0,1,117.6,72Zm28.7,27.49a22.25,22.25,0,0,0-9.09,2.13c-1.21.62-2.35,1.34-3.56,2l1.09-3.94-.6-.66c-7.08,1.43-8.66,1.63-15.2,2.55l-.55.36a192.72,192.72,0,0,1-4.25,23.41c-1.07,4.56-2.18,9.16-3.3,13.71l.3.58c6.7-.35,8.74-.35,14.56-.26l.47-.51c.74-3.79.84-4.68,2.48-12.36.77-3.64,2.38-11.63,3.17-14.48a10.74,10.74,0,0,1,4.26-1.34c3.26,0,2.87,2.85,2.74,4-.14,1.91-1.33,8.13-2.55,13.47l-.81,3.45c-.57,2.55-1.19,5-1.76,7.55l.25.5c6.6-.35,8.62-.35,14.26-.26l.66-.51c1-5.92,1.32-7.5,3.13-16.12l.91-4c1.77-7.76,2.65-11.69,1.32-14.89C152.81,100.38,149.42,99.52,146.3,99.52Zm32.07,8.11c-3.51.68-5.75,1.13-8,1.42s-4.35.67-7.75,1.14l-.27.25-.24.19c-.36,2.53-.6,4.71-1.07,7.28s-1,5.68-2,10a39.64,39.64,0,0,1-1.6,5.65,48.24,48.24,0,0,0-1.77,5.56l.21.3.17.28c3.17-.15,5.24-.26,7.37-.28s4.34,0,7.76,0l.29-.24.32-.27c.5-2.94.57-3.74.87-5.17s.82-3.67,2.08-9.37c.6-2.68,1.26-5.34,1.88-8.07s1.32-5.4,2-8.07l-.09-.33Zm.07-10.94c-3.19-1.88-8.79-1.28-12.55,1.32s-4.19,6.16-1,8.07,8.76,1.29,12.49-1.34S181.59,98.56,178.44,96.69Zm19.3,43.61c6.45,0,13.07-1.78,18-7.06,3.83-4.28,5.59-10.65,6.2-13.27,2-8.7.44-12.75-1.5-15.23-3-3.77-8.15-5-13.54-5-3.25,0-11,.32-17,5.88-4.33,4-6.34,9.47-7.55,14.69s-2.62,14.91,6.19,18.47A25.77,25.77,0,0,0,197.74,140.3Zm-.51-19.56c1.49-6.58,3.25-12.11,7.73-12.11,3.52,0,3.77,4.11,2.21,10.72-.28,1.46-1.56,6.91-3.3,9.24-1.21,1.71-2.64,2.75-4.23,2.75-.47,0-3.27,0-3.32-4.17A28.6,28.6,0,0,1,197.23,120.74Zm40.89,18.71.51-.51c.71-3.79.83-4.68,2.41-12.35.8-3.64,2.44-11.64,3.21-14.49a10.63,10.63,0,0,1,4.28-1.34c3.24,0,2.85,2.85,2.72,4a130.37,130.37,0,0,1-2.55,13.47l-.77,3.45c-.59,2.55-1.23,5-1.8,7.55l.25.5c6.63-.35,8.56-.35,14.24-.26l.68-.51c1-5.92,1.27-7.51,3.13-16.12l.89-4c1.77-7.75,2.67-11.68,1.36-14.88-1.46-3.58-4.87-4.45-7.95-4.45a22.18,22.18,0,0,0-9.09,2.13c-1.18.62-2.37,1.34-3.54,2l1-3.93-.55-.67c-7.08,1.44-8.69,1.63-15.23,2.55l-.5.36a199,199,0,0,1-4.25,23.41c-1.07,4.56-2.18,9.16-3.3,13.71l.3.58C230.31,139.36,232.31,139.36,238.12,139.45Zm48.7.26c.41-2,2.89-14.09,2.91-14.09s2.11-8.84,2.24-9.16a5.31,5.31,0,0,1,1.32-1.29h1c9.21,0,19.6,0,27.75-6a29.57,29.57,0,0,0,11-17.56,26.55,26.55,0,0,0,.76-6.12,12.83,12.83,0,0,0-2.21-7.8c-4.15-5.82-12.43-5.92-22-6l-4.71,0c-12.23.15-17.13.1-19.14-.14-.17.89-.49,2.47-.49,2.47s-4.38,20.3-4.38,20.33-10.49,43.16-11,45.2C280.6,139.51,285,139.51,286.82,139.71Zm8.11-36.06,4.64-20.18.15-1,.06-.79,1.86.19,9.83.85c3.79,1.46,5.36,5.24,4.27,10.18A14.81,14.81,0,0,1,308.06,103c-3.1,1.55-6.89,1.68-10.79,1.68h-2.53Zm29,17.46c-1.23,5.25-2.65,14.83,6.12,18.25a17.1,17.1,0,0,0,7.85,1.41,12.87,12.87,0,0,0,7.48-3.43c-.2.79-.41,1.59-.62,2.39l.4.52c6.3-.27,8.26-.27,15.09-.22l.62-.47c1-5.87,1.94-11.56,4.53-22.78,1.27-5.38,2.53-10.7,3.83-16l-.21-.59c-7,1.31-8.94,1.58-15.72,2.55l-.52.42q-.11.81-.21,1.59a9.66,9.66,0,0,0-4.94-4.07c-3-1.19-10.11.34-16.2,5.89C327.15,110.48,325.09,115.91,323.93,121.11Zm14.81.32c1.51-6.46,3.25-11.93,7.74-11.93,2.85,0,4.34,2.62,4,7.09-.24,1.12-.5,2.3-.81,3.62-.45,1.93-.94,3.83-1.41,5.74a14.12,14.12,0,0,1-1.67,3.35,7.74,7.74,0,0,1-5.49,2.66c-.45,0-3.22,0-3.32-4.09A28.47,28.47,0,0,1,338.74,121.43Zm77.38-21.34-.54-.63c-7,1.42-8.25,1.64-14.66,2.51l-.47.47c0,.08-.05.19-.08.3l0-.11c-4.78,11-4.64,8.64-8.52,17.32,0-.4,0-.65-.05-1.06l-1-18.8-.61-.63c-7.31,1.42-7.49,1.64-14.24,2.51l-.53.47a5,5,0,0,0-.11.74l0,.1a96.43,96.43,0,0,1,1.49,10.16c.39,3.34.92,6.7,1.31,10,.67,5.52,1,8.24,1.86,16.67-4.56,7.52-5.64,10.37-10,17l0,.06-3.1,4.89a2.29,2.29,0,0,1-1.12,1,4.56,4.56,0,0,1-2,.29h-1.71l-2.54,8.47,8.73.15c5.13,0,8.35-2.42,10.09-5.64l5.49-9.41h-.09l.58-.67C388,148.3,416.12,100.09,416.12,100.09ZM323.93,211.32h-3.71L333.94,166h4.55l1.44-4.67.14,5.2c-.17,3.21,2.36,6.06,9,5.59h7.67l2.65-8.74H356.5c-1.66,0-2.43-.42-2.34-1.32l-.14-5.29H339.8v0c-4.59.1-18.32.44-21.1,1.18a25,25,0,0,0-6.91,3.42l1.4-4.68h-13.3L297.12,166,283.22,212h-2.7l-2.64,8.67h26.48l-.88,2.9h13l.86-2.9h3.67Zm-10.87-36.15a59.15,59.15,0,0,0-6.09,2.38l3.52-11.6h10.57l-2.55,8.45A34.06,34.06,0,0,0,313.06,175.17Zm.2,16.56s-3.32.42-5.5.91a55.49,55.49,0,0,0-6.19,2.71l3.64-12.06h10.62Zm-5.92,19.69h-10.6l3.07-10.18h10.57Zm25.53-28.13h15.27L346,190.4H330.47l-2.33,7.77h13.55l-10.26,14.44a4.24,4.24,0,0,1-2.08,1.74,6.11,6.11,0,0,1-2.75.79h-3.75l-2.59,8.51h9.83a12,12,0,0,0,10.36-5.37l7-9.63,1.51,9.78a4.57,4.57,0,0,0,2.53,3.31,9,9,0,0,0,3.43,1.47c1.55.07,2.66.12,3.4.12h4.83l2.9-9.53h-1.91c-1.09,0-3-.18-3.29-.53a4.88,4.88,0,0,1-.5-2l-1.53-9.79h-6.27l2.75-3.28h15.45l2.37-7.77h-14.3l2.23-7.11h14.26l2.64-8.77H335.47Zm-129,30.11,3.57-11.86h14.65l2.68-8.82H210.06l2.24-7.3h14.33l2.66-8.55H193.42l-2.6,8.55H199l-2.17,7.3h-8.17l-2.71,9h8.14l-4.75,15.7c-.64,2.07.3,2.87.9,3.83a4,4,0,0,0,2.62,1.92,15.85,15.85,0,0,0,3.76.51h16.52l2.95-9.77-7.33,1C207.32,214.88,203.4,214.71,203.83,213.4Zm1.68-56.78-3.71,6.71a7.63,7.63,0,0,1-2.16,2.79,7,7,0,0,1-3.32.51h-1.93l-2.6,8.58h6.44a14.58,14.58,0,0,0,6.61-1.7c1.22-.65,1.54-.28,2.48-1.19l2.17-1.88h20.1l2.67-8.94H217.55l2.56-4.88Zm29.67,57c-.34-.5-.1-1.37.43-3.17l5.49-18.18h19.54c2.85,0,4.9-.08,6.24-.17a12.94,12.94,0,0,0,4.7-1.59,8.74,8.74,0,0,0,3.42-3.15,27,27,0,0,0,3.37-7.64l6.9-23-20.27.12a64,64,0,0,0-9,1.94,36.54,36.54,0,0,0-6.73,4.3l1.83-6.31H238.57L221,214.88a35.71,35.71,0,0,0-1.14,4.88c0,1.06,1.34,2.11,2.23,2.91,1.05.79,2.6.66,4.09.79s3.79.19,6.86.19h9.63l2.95-10-8.62.82A2.28,2.28,0,0,1,235.18,213.58ZM244.64,180h20.53L263.86,184a13.42,13.42,0,0,0-2.71,0H243.38Zm4.11-13.72h20.7L268,171.16s-9.75-.1-11.31.19a23.07,23.07,0,0,0-10.89,4.86Zm15.57,31.5a2.21,2.21,0,0,1-.81,1.26,4,4,0,0,1-2.1.37h-2.92l.17-5H246.5l-.5,24.35c0,1.75.15,2.77,1.44,3.58,1.28,1,5.24,1.15,10.58,1.15h7.62l2.75-9.11-6.64.36-2.2.13a2.57,2.57,0,0,1-.91-.57c-.28-.28-.75-.11-.68-1.86l.06-6.24,7-.29a9,9,0,0,0,6.74-2.39,7.47,7.47,0,0,0,2.23-4.13l1.16-5.53h-9.56Z'/%3e%3c/svg%3e", Rn = ({ type: A }) => {
|
|
2581
|
+
}, Yn = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%2096%2064'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20xmlns:serif='http://www.serif.com/'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;'%3e%3cpath%20d='M95,6.894c0,-3.253%20-2.641,-5.894%20-5.894,-5.894l-82.212,0c-3.253,0%20-5.894,2.641%20-5.894,5.894l0,50.212c0,3.253%202.641,5.894%205.894,5.894l82.212,0c3.253,0%205.894,-2.641%205.894,-5.894l0,-50.212Z'%20style='fill:%23fff;stroke:%237e7e7e;stroke-width:0.5px;'/%3e%3cclipPath%20id='_clip1'%3e%3crect%20x='7.179'%20y='18.832'%20width='81.642'%20height='26.336'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23_clip1)'%3e%3cg%3e%3cpath%20d='M47.418,19.387l-5.431,25.384l-6.567,0l5.432,-25.384l6.566,0Zm27.627,16.39l3.457,-9.532l1.989,9.532l-5.446,0Zm7.326,8.994l6.074,0l-5.3,-25.384l-5.607,0c-1.259,0%20-2.323,0.733%20-2.795,1.863l-9.852,23.521l6.895,0l1.37,-3.79l8.424,-0l0.791,3.79Zm-17.137,-8.287c0.028,-6.701%20-9.267,-7.069%20-9.201,-10.062c0.019,-0.912%200.887,-1.879%202.784,-2.127c0.943,-0.123%203.534,-0.218%206.476,1.136l1.152,-5.383c-1.58,-0.574%20-3.614,-1.125%20-6.143,-1.125c-6.49,-0%20-11.059,3.451%20-11.097,8.391c-0.041,3.655%203.261,5.693%205.75,6.908c2.557,1.245%203.417,2.041%203.406,3.154c-0.017,1.704%20-2.041,2.455%20-3.929,2.485c-3.302,0.052%20-5.218,-0.892%20-6.745,-1.603l-1.19,5.562c1.534,0.705%204.365,1.317%207.303,1.348c6.898,0%2011.411,-3.408%2011.434,-8.684Zm-27.2,-17.097l-10.639,25.384l-6.942,0l-5.235,-20.258c-0.318,-1.248%20-0.595,-1.705%20-1.562,-2.23c-1.576,-0.857%20-4.183,-1.66%20-6.477,-2.158l0.157,-0.738l11.173,0c1.423,0%202.705,0.948%203.028,2.588l2.765,14.69l6.833,-17.278l6.899,0Z'%20style='fill:%230d357f;fill-rule:nonzero;'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Zn = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%2096%2064'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20xmlns:serif='http://www.serif.com/'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;'%3e%3cpath%20d='M95,7.094c0,-3.363%20-2.731,-6.094%20-6.094,-6.094l-81.812,0c-3.363,0%20-6.094,2.731%20-6.094,6.094l-0,49.812c-0,3.363%202.731,6.094%206.094,6.094l81.812,0c3.363,0%206.094,-2.731%206.094,-6.094l0,-49.812Z'%20style='fill:%23fff;stroke:%23b1b1b1;stroke-width:0.5px;'/%3e%3cpath%20d='M95,6.894c0,-3.253%20-2.641,-5.894%20-5.894,-5.894l-82.212,0c-3.253,0%20-5.894,2.641%20-5.894,5.894l0,50.212c0,3.253%202.641,5.894%205.894,5.894l82.212,0c3.253,0%205.894,-2.641%205.894,-5.894l0,-50.212Z'%20style='fill:%23fff;stroke:%237e7e7e;stroke-width:0.5px;'/%3e%3cg%20opacity='0'%3e%3crect%20x='14.04'%20y='9.539'%20width='67.919'%20height='44.921'%20style='fill:%23fff;'/%3e%3c/g%3e%3crect%20x='39.044'%20y='17.366'%20width='17.917'%20height='29.263'%20style='fill:%23ff5f00;'/%3e%3cpath%20d='M40.89,32c-0.005,-5.706%202.619,-11.106%207.107,-14.629c-3.278,-2.576%20-7.329,-3.978%20-11.498,-3.978c-10.209,0%20-18.61,8.401%20-18.61,18.61c0,10.208%208.401,18.609%2018.61,18.609c4.169,-0%208.22,-1.401%2011.498,-3.978c-4.489,-3.524%20-7.113,-8.927%20-7.107,-14.634Z'%20style='fill:%23eb001b;fill-rule:nonzero;'/%3e%3cpath%20d='M76.33,43.533l0,-0.6l0.259,0l-0,-0.124l-0.615,-0l-0,0.124l0.242,0l0,0.6l0.114,-0Zm1.194,-0l0,-0.724l-0.186,-0l-0.217,0.517l-0.217,-0.517l-0.186,-0l-0,0.724l0.134,-0l0,-0.548l0.202,0.47l0.139,0l0.202,-0.47l0,0.548l0.129,-0Z'%20style='fill:%23f79e1b;fill-rule:nonzero;'/%3e%3cpath%20d='M78.108,32c0,10.209%20-8.4,18.609%20-18.609,18.609c-4.171,-0%20-8.223,-1.402%20-11.502,-3.98c4.487,-3.526%207.111,-8.926%207.111,-14.632c-0,-5.705%20-2.624,-11.106%20-7.111,-14.631c3.279,-2.578%207.331,-3.98%2011.502,-3.98c10.209,-0%2018.609,8.4%2018.609,18.609l0,0.005Z'%20style='fill:%23f79e1b;fill-rule:nonzero;'/%3e%3c/svg%3e", Kn = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%2096%2064'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20xmlns:serif='http://www.serif.com/'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;'%3e%3cpath%20d='M95,7.053c0,-3.341%20-2.712,-6.053%20-6.053,-6.053l-81.894,-0c-3.341,-0%20-6.053,2.712%20-6.053,6.053l0,49.894c0,3.341%202.712,6.053%206.053,6.053l81.894,0c3.341,0%206.053,-2.712%206.053,-6.053l0,-49.894Z'%20style='fill:%23006fcf;stroke:%237e7e7e;stroke-width:0.5px;'/%3e%3cg%3e%3cpath%20d='M54.459,9.71l-10.404,23.609l8.342,0l0,21.172l26.31,0l4.061,-4.51l4.063,4.534l7.933,0l0,-2.672l-6.538,0l-5.395,-5.867l-5.44,5.88l-22.088,0l0,-18.444l22.202,0l5.408,5.938l5.476,-5.963l6.352,-0l0,-2.626l-4.935,-0l-0,-12.769l-4.686,12.699l-4.45,0l-4.823,-12.608l0,12.647l-10.546,0l-1.49,-3.637l-8.559,0l-1.457,3.589l-5.544,0l8.116,-18.39l6.498,-0l8.058,18.438l-0,-18.443l7.875,-0l4.161,11.351l4.127,-11.364l7.714,0.003l0,-2.656l-9.767,-0l-2.048,5.839l-2.2,-5.8l-12.552,-0l-0.077,7.83l-3.474,-7.76l-10.223,-0.02Z'%20style='fill:%23fff;'/%3e%3cpath%20d='M59.526,16.941l-2.53,5.961l5.011,0l-2.481,-5.961Z'%20style='fill:%23fff;'/%3e%3cpath%20d='M60.312,37.605l10.641,-0l0,-4.147l8.738,9.184l-8.621,9.204l-0.101,0l0,-4.221l-10.669,-0l-0,-2.905l10.397,0l-0,-4.077l-10.397,0l0.012,-3.038Z'%20style='fill:%23fff;'/%3e%3cpath%20d='M94.723,47.865l0,3.969l-8.581,-9.23l8.59,-9.225l-0,3.95l-4.946,5.265l4.937,5.271Z'%20style='fill:%23fff;'/%3e%3c/g%3e%3c/svg%3e", Hn = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%2096%2064'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20xmlns:serif='http://www.serif.com/'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;'%3e%3cpath%20d='M95,6.894c0,-3.253%20-2.641,-5.894%20-5.894,-5.894l-82.212,0c-3.253,0%20-5.894,2.641%20-5.894,5.894l0,50.212c0,3.253%202.641,5.894%205.894,5.894l82.212,0c3.253,0%205.894,-2.641%205.894,-5.894l0,-50.212Z'%20style='fill:%23fff;stroke:%237e7e7e;stroke-width:0.5px;'/%3e%3cg%3e%3crect%20x='5.311'%20y='34.182'%20width='36.116'%20height='12.031'%20style='fill:%2384b740;'/%3e%3crect%20x='5.311'%20y='17.765'%20width='36.116'%20height='12.042'%20style='fill:%23259bd6;'/%3e%3cpath%20d='M77.542,43.769l-0.161,0.032c-0.557,0.107%20-0.761,0.15%20-1.168,0.15c-0.944,-0%20-2.059,-0.483%20-2.059,-2.756c-0,-1.169%200.193,-2.724%201.951,-2.724l0.011,0c0.3,0.022%200.644,0.054%201.287,0.247l0.139,0.043l0,5.008Zm0.29,-11.335l-0.29,0.054l0,4.203l-0.257,-0.075l-0.075,-0.021c-0.29,-0.086%20-0.954,-0.279%20-1.598,-0.279c-3.517,0%20-4.257,2.659%20-4.257,4.89c0,3.056%201.716,4.815%204.708,4.815c1.265,-0%202.198,-0.129%203.141,-0.44c0.869,-0.279%201.18,-0.676%201.18,-1.523l-0,-12.063c-0.836,0.15%20-1.705,0.3%20-2.552,0.439'%20style='fill:%2327292d;fill-rule:nonzero;'/%3e%3cpath%20d='M87.997,43.844l-0.15,0.043l-0.536,0.139c-0.504,0.129%20-0.954,0.204%20-1.297,0.204c-0.826,-0%20-1.319,-0.408%20-1.319,-1.105c-0,-0.45%200.203,-1.211%201.555,-1.211l1.747,-0l0,1.93Zm-1.233,-7.582c-1.083,0%20-2.198,0.193%20-3.581,0.622l-0.901,0.268l0.3,2.038l0.88,-0.29c0.922,-0.3%202.069,-0.493%202.927,-0.493c0.386,0%201.566,0%201.566,1.276l-0,0.558l-1.641,-0c-2.992,-0%20-4.375,0.954%20-4.375,3.002c-0,1.748%201.276,2.799%203.421,2.799c0.664,-0%201.587,-0.129%202.38,-0.322l0.043,-0.01l0.043,0.01l0.268,0.043c0.836,0.15%201.705,0.3%202.552,0.461l0,-6.691c0,-2.166%20-1.308,-3.271%20-3.882,-3.271'%20style='fill:%2327292d;fill-rule:nonzero;'/%3e%3cpath%20d='M67.162,43.844l-0.15,0.043l-0.536,0.139c-0.504,0.129%20-0.944,0.204%20-1.297,0.204c-0.826,-0%20-1.319,-0.408%20-1.319,-1.105c-0,-0.45%200.203,-1.211%201.544,-1.211l1.748,-0l0.01,1.93Zm-1.222,-7.582c-1.094,0%20-2.198,0.193%20-3.582,0.622l-0.9,0.268l0.3,2.038l0.879,-0.29c0.922,-0.3%202.07,-0.493%202.928,-0.493c0.386,0%201.565,0%201.565,1.276l0,0.558l-1.641,-0c-2.991,-0%20-4.385,0.954%20-4.385,3.002c-0,1.748%201.276,2.799%203.431,2.799c0.665,-0%201.587,-0.129%202.381,-0.322l0.043,-0.01l0.042,0.01l0.258,0.043c0.847,0.15%201.705,0.3%202.552,0.472l-0,-6.691c0.011,-2.188%20-1.298,-3.282%20-3.871,-3.282'%20style='fill:%2327292d;fill-rule:nonzero;'/%3e%3cpath%20d='M55.871,36.284c-1.362,-0%20-2.488,0.45%20-2.906,0.643l-0.107,0.054l-0.097,-0.075c-0.579,-0.418%20-1.426,-0.633%20-2.606,-0.633c-1.04,0%20-2.016,0.15%20-3.077,0.461c-0.912,0.279%20-1.266,0.719%20-1.266,1.544l0,7.646l2.853,0l-0,-7.067l0.139,-0.042c0.579,-0.193%200.922,-0.226%201.255,-0.226c0.826,0%201.244,0.44%201.244,1.298l-0,6.048l2.809,-0l0,-6.166c0,-0.365%20-0.075,-0.579%20-0.086,-0.622l-0.096,-0.182l0.193,-0.086c0.429,-0.193%200.901,-0.29%201.394,-0.29c0.568,0%201.244,0.226%201.244,1.298l-0,6.048l2.799,-0l-0,-6.327c-0,-2.241%20-1.201,-3.324%20-3.689,-3.324'%20style='fill:%2327292d;fill-rule:nonzero;'/%3e%3cpath%20d='M85.896,25.614c-0.419,0%20-1.116,-0.043%20-1.662,-0.15l-0.161,-0.032l-0,-4.128c-0,-0.344%20-0.065,-0.558%20-0.075,-0.59l-0.086,-0.172l0.182,-0.075c0.043,-0.021%200.086,-0.032%200.14,-0.053l0.032,-0.022c0.064,-0.021%200.128,-0.043%200.193,-0.064c0.032,-0.011%200.053,-0.022%200.075,-0.022c0.633,-0.171%201.212,-0.15%201.469,-0.171l0.011,-0c1.748,-0%201.951,1.555%201.951,2.723c-0.01,2.274%20-1.136,2.756%20-2.069,2.756m-0.011,-7.849l-0.075,-0c-1.641,-0%20-3.324,0.45%20-3.925,1.33c-0.321,0.429%20-0.504,0.965%20-0.514,1.597l-0,4.258c-0,0.364%20-0.076,0.504%20-0.086,0.536l-0.097,0.182l-5.179,-0l-0,-2.96l-0.011,0c-0.064,-3.12%20-1.909,-4.836%20-4.579,-4.836l-2.605,0c-0.108,0.762%20-0.193,1.298%20-0.301,2.059l2.595,0c1.362,0%202.081,1.158%202.081,2.938l-0,2.981l-0.183,-0.096c-0.032,-0.011%20-0.257,-0.086%20-0.611,-0.086l-4.482,-0c-0.086,0.568%20-0.193,1.308%20-0.311,2.048l13.779,0c0.472,-0.096%201.019,-0.182%201.491,-0.257c0.697,0.343%201.994,0.525%202.884,0.525c2.992,0%204.933,-2.005%204.933,-5.093c-0.011,-3.056%20-1.887,-5.062%20-4.804,-5.126'%20style='fill:%2327292d;fill-rule:nonzero;'/%3e%3cpath%20d='M57.78,28.971l4.074,-0c2.992,-0%204.386,-0.987%204.386,-3.421c0,-1.748%20-1.276,-3.142%20-3.421,-3.142l-2.755,0c-0.826,0%20-1.319,-0.472%20-1.319,-1.265c-0,-0.536%200.203,-1.201%201.554,-1.201l6.027,-0c0.129,-0.783%200.193,-1.276%200.311,-2.059l-6.262,-0c-2.917,-0%20-4.386,1.222%20-4.386,3.26c-0,2.016%201.276,3.067%203.42,3.067l2.756,-0c0.826,-0%201.319,0.654%201.319,1.34c0,0.45%20-0.203,1.383%20-1.544,1.383l-0.461,0l-8.825,-0.021l-1.609,-0c-1.361,-0%20-2.316,-0.772%20-2.316,-2.563l0,-1.233c0,-1.866%200.74,-3.024%202.316,-3.024l2.617,-0c0.118,-0.794%200.193,-1.298%200.3,-2.048l-3.571,-0c-2.67,-0%20-4.514,1.791%20-4.579,4.911l0,1.394c0.065,3.12%201.909,4.611%204.579,4.611l2.606,-0l4.783,0.011Z'%20style='fill:%2327292d;fill-rule:nonzero;'/%3e%3c/g%3e%3c/svg%3e", Rn = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20450.53%20281.82'%3e%3cdefs%3e%3cstyle%3e.a{fill:%23e21836;}.b{fill:%2300447c;}.c{fill:%23007b84;}.d{fill:%23fefefe;}%3c/style%3e%3c/defs%3e%3ctitle%3eunionpay%3c/title%3e%3cpath%20class='a'%20d='M88.23,0H200.68c15.7,0,25.46,12.79,21.8,28.54L170.13,253.32c-3.7,15.69-19.42,28.5-35.12,28.5H22.57c-15.68,0-25.46-12.81-21.8-28.5L53.14,28.54C56.81,12.79,72.51,0,88.23,0'/%3e%3cpath%20class='b'%20d='M191.32,0H320.64c15.69,0,8.62,12.79,4.92,28.54L273.22,253.32c-3.67,15.69-2.53,28.5-18.26,28.5H125.65c-15.73,0-25.46-12.81-21.77-28.5L156.23,28.54C159.94,12.79,175.62,0,191.32,0'/%3e%3cpath%20class='c'%20d='M315.51,0H428c15.72,0,25.48,12.79,21.79,28.54L397.41,253.32c-3.7,15.69-19.43,28.5-35.14,28.5H249.87c-15.73,0-25.48-12.81-21.8-28.5L280.42,28.54C284.09,12.79,299.78,0,315.51,0'/%3e%3cpath%20class='d'%20d='M117.6,72c-11.57.12-15,0-16.07-.25-.42,2-8.22,38-8.25,38-1.68,7.28-2.9,12.47-7,15.82a12.57,12.57,0,0,1-8.3,2.89c-5.13,0-8.12-2.55-8.62-7.38l-.09-1.65s1.56-9.76,1.56-9.81S79,76.86,80.43,72.53a3,3,0,0,0,.12-.5c-15.94.14-18.76,0-19-.25-.11.35-.5,2.38-.5,2.38l-8.36,37L52,114.27l-1.39,10.26a15.07,15.07,0,0,0,1.79,7.62c3.81,6.66,14.67,7.66,20.82,7.66,7.92,0,15.35-1.68,20.37-4.76,8.72-5.15,11-13.2,13-20.35l1-3.67S116,77,117.45,72.53A1.35,1.35,0,0,1,117.6,72Zm28.7,27.49a22.25,22.25,0,0,0-9.09,2.13c-1.21.62-2.35,1.34-3.56,2l1.09-3.94-.6-.66c-7.08,1.43-8.66,1.63-15.2,2.55l-.55.36a192.72,192.72,0,0,1-4.25,23.41c-1.07,4.56-2.18,9.16-3.3,13.71l.3.58c6.7-.35,8.74-.35,14.56-.26l.47-.51c.74-3.79.84-4.68,2.48-12.36.77-3.64,2.38-11.63,3.17-14.48a10.74,10.74,0,0,1,4.26-1.34c3.26,0,2.87,2.85,2.74,4-.14,1.91-1.33,8.13-2.55,13.47l-.81,3.45c-.57,2.55-1.19,5-1.76,7.55l.25.5c6.6-.35,8.62-.35,14.26-.26l.66-.51c1-5.92,1.32-7.5,3.13-16.12l.91-4c1.77-7.76,2.65-11.69,1.32-14.89C152.81,100.38,149.42,99.52,146.3,99.52Zm32.07,8.11c-3.51.68-5.75,1.13-8,1.42s-4.35.67-7.75,1.14l-.27.25-.24.19c-.36,2.53-.6,4.71-1.07,7.28s-1,5.68-2,10a39.64,39.64,0,0,1-1.6,5.65,48.24,48.24,0,0,0-1.77,5.56l.21.3.17.28c3.17-.15,5.24-.26,7.37-.28s4.34,0,7.76,0l.29-.24.32-.27c.5-2.94.57-3.74.87-5.17s.82-3.67,2.08-9.37c.6-2.68,1.26-5.34,1.88-8.07s1.32-5.4,2-8.07l-.09-.33Zm.07-10.94c-3.19-1.88-8.79-1.28-12.55,1.32s-4.19,6.16-1,8.07,8.76,1.29,12.49-1.34S181.59,98.56,178.44,96.69Zm19.3,43.61c6.45,0,13.07-1.78,18-7.06,3.83-4.28,5.59-10.65,6.2-13.27,2-8.7.44-12.75-1.5-15.23-3-3.77-8.15-5-13.54-5-3.25,0-11,.32-17,5.88-4.33,4-6.34,9.47-7.55,14.69s-2.62,14.91,6.19,18.47A25.77,25.77,0,0,0,197.74,140.3Zm-.51-19.56c1.49-6.58,3.25-12.11,7.73-12.11,3.52,0,3.77,4.11,2.21,10.72-.28,1.46-1.56,6.91-3.3,9.24-1.21,1.71-2.64,2.75-4.23,2.75-.47,0-3.27,0-3.32-4.17A28.6,28.6,0,0,1,197.23,120.74Zm40.89,18.71.51-.51c.71-3.79.83-4.68,2.41-12.35.8-3.64,2.44-11.64,3.21-14.49a10.63,10.63,0,0,1,4.28-1.34c3.24,0,2.85,2.85,2.72,4a130.37,130.37,0,0,1-2.55,13.47l-.77,3.45c-.59,2.55-1.23,5-1.8,7.55l.25.5c6.63-.35,8.56-.35,14.24-.26l.68-.51c1-5.92,1.27-7.51,3.13-16.12l.89-4c1.77-7.75,2.67-11.68,1.36-14.88-1.46-3.58-4.87-4.45-7.95-4.45a22.18,22.18,0,0,0-9.09,2.13c-1.18.62-2.37,1.34-3.54,2l1-3.93-.55-.67c-7.08,1.44-8.69,1.63-15.23,2.55l-.5.36a199,199,0,0,1-4.25,23.41c-1.07,4.56-2.18,9.16-3.3,13.71l.3.58C230.31,139.36,232.31,139.36,238.12,139.45Zm48.7.26c.41-2,2.89-14.09,2.91-14.09s2.11-8.84,2.24-9.16a5.31,5.31,0,0,1,1.32-1.29h1c9.21,0,19.6,0,27.75-6a29.57,29.57,0,0,0,11-17.56,26.55,26.55,0,0,0,.76-6.12,12.83,12.83,0,0,0-2.21-7.8c-4.15-5.82-12.43-5.92-22-6l-4.71,0c-12.23.15-17.13.1-19.14-.14-.17.89-.49,2.47-.49,2.47s-4.38,20.3-4.38,20.33-10.49,43.16-11,45.2C280.6,139.51,285,139.51,286.82,139.71Zm8.11-36.06,4.64-20.18.15-1,.06-.79,1.86.19,9.83.85c3.79,1.46,5.36,5.24,4.27,10.18A14.81,14.81,0,0,1,308.06,103c-3.1,1.55-6.89,1.68-10.79,1.68h-2.53Zm29,17.46c-1.23,5.25-2.65,14.83,6.12,18.25a17.1,17.1,0,0,0,7.85,1.41,12.87,12.87,0,0,0,7.48-3.43c-.2.79-.41,1.59-.62,2.39l.4.52c6.3-.27,8.26-.27,15.09-.22l.62-.47c1-5.87,1.94-11.56,4.53-22.78,1.27-5.38,2.53-10.7,3.83-16l-.21-.59c-7,1.31-8.94,1.58-15.72,2.55l-.52.42q-.11.81-.21,1.59a9.66,9.66,0,0,0-4.94-4.07c-3-1.19-10.11.34-16.2,5.89C327.15,110.48,325.09,115.91,323.93,121.11Zm14.81.32c1.51-6.46,3.25-11.93,7.74-11.93,2.85,0,4.34,2.62,4,7.09-.24,1.12-.5,2.3-.81,3.62-.45,1.93-.94,3.83-1.41,5.74a14.12,14.12,0,0,1-1.67,3.35,7.74,7.74,0,0,1-5.49,2.66c-.45,0-3.22,0-3.32-4.09A28.47,28.47,0,0,1,338.74,121.43Zm77.38-21.34-.54-.63c-7,1.42-8.25,1.64-14.66,2.51l-.47.47c0,.08-.05.19-.08.3l0-.11c-4.78,11-4.64,8.64-8.52,17.32,0-.4,0-.65-.05-1.06l-1-18.8-.61-.63c-7.31,1.42-7.49,1.64-14.24,2.51l-.53.47a5,5,0,0,0-.11.74l0,.1a96.43,96.43,0,0,1,1.49,10.16c.39,3.34.92,6.7,1.31,10,.67,5.52,1,8.24,1.86,16.67-4.56,7.52-5.64,10.37-10,17l0,.06-3.1,4.89a2.29,2.29,0,0,1-1.12,1,4.56,4.56,0,0,1-2,.29h-1.71l-2.54,8.47,8.73.15c5.13,0,8.35-2.42,10.09-5.64l5.49-9.41h-.09l.58-.67C388,148.3,416.12,100.09,416.12,100.09ZM323.93,211.32h-3.71L333.94,166h4.55l1.44-4.67.14,5.2c-.17,3.21,2.36,6.06,9,5.59h7.67l2.65-8.74H356.5c-1.66,0-2.43-.42-2.34-1.32l-.14-5.29H339.8v0c-4.59.1-18.32.44-21.1,1.18a25,25,0,0,0-6.91,3.42l1.4-4.68h-13.3L297.12,166,283.22,212h-2.7l-2.64,8.67h26.48l-.88,2.9h13l.86-2.9h3.67Zm-10.87-36.15a59.15,59.15,0,0,0-6.09,2.38l3.52-11.6h10.57l-2.55,8.45A34.06,34.06,0,0,0,313.06,175.17Zm.2,16.56s-3.32.42-5.5.91a55.49,55.49,0,0,0-6.19,2.71l3.64-12.06h10.62Zm-5.92,19.69h-10.6l3.07-10.18h10.57Zm25.53-28.13h15.27L346,190.4H330.47l-2.33,7.77h13.55l-10.26,14.44a4.24,4.24,0,0,1-2.08,1.74,6.11,6.11,0,0,1-2.75.79h-3.75l-2.59,8.51h9.83a12,12,0,0,0,10.36-5.37l7-9.63,1.51,9.78a4.57,4.57,0,0,0,2.53,3.31,9,9,0,0,0,3.43,1.47c1.55.07,2.66.12,3.4.12h4.83l2.9-9.53h-1.91c-1.09,0-3-.18-3.29-.53a4.88,4.88,0,0,1-.5-2l-1.53-9.79h-6.27l2.75-3.28h15.45l2.37-7.77h-14.3l2.23-7.11h14.26l2.64-8.77H335.47Zm-129,30.11,3.57-11.86h14.65l2.68-8.82H210.06l2.24-7.3h14.33l2.66-8.55H193.42l-2.6,8.55H199l-2.17,7.3h-8.17l-2.71,9h8.14l-4.75,15.7c-.64,2.07.3,2.87.9,3.83a4,4,0,0,0,2.62,1.92,15.85,15.85,0,0,0,3.76.51h16.52l2.95-9.77-7.33,1C207.32,214.88,203.4,214.71,203.83,213.4Zm1.68-56.78-3.71,6.71a7.63,7.63,0,0,1-2.16,2.79,7,7,0,0,1-3.32.51h-1.93l-2.6,8.58h6.44a14.58,14.58,0,0,0,6.61-1.7c1.22-.65,1.54-.28,2.48-1.19l2.17-1.88h20.1l2.67-8.94H217.55l2.56-4.88Zm29.67,57c-.34-.5-.1-1.37.43-3.17l5.49-18.18h19.54c2.85,0,4.9-.08,6.24-.17a12.94,12.94,0,0,0,4.7-1.59,8.74,8.74,0,0,0,3.42-3.15,27,27,0,0,0,3.37-7.64l6.9-23-20.27.12a64,64,0,0,0-9,1.94,36.54,36.54,0,0,0-6.73,4.3l1.83-6.31H238.57L221,214.88a35.71,35.71,0,0,0-1.14,4.88c0,1.06,1.34,2.11,2.23,2.91,1.05.79,2.6.66,4.09.79s3.79.19,6.86.19h9.63l2.95-10-8.62.82A2.28,2.28,0,0,1,235.18,213.58ZM244.64,180h20.53L263.86,184a13.42,13.42,0,0,0-2.71,0H243.38Zm4.11-13.72h20.7L268,171.16s-9.75-.1-11.31.19a23.07,23.07,0,0,0-10.89,4.86Zm15.57,31.5a2.21,2.21,0,0,1-.81,1.26,4,4,0,0,1-2.1.37h-2.92l.17-5H246.5l-.5,24.35c0,1.75.15,2.77,1.44,3.58,1.28,1,5.24,1.15,10.58,1.15h7.62l2.75-9.11-6.64.36-2.2.13a2.57,2.57,0,0,1-.91-.57c-.28-.28-.75-.11-.68-1.86l.06-6.24,7-.29a9,9,0,0,0,6.74-2.39,7.47,7.47,0,0,0,2.23-4.13l1.16-5.53h-9.56Z'/%3e%3c/svg%3e", jn = ({ type: A }) => {
|
|
2557
2582
|
const { supported_networks: t } = E(q), e = "h-4 sm:h-5 w-auto object-contain object-center";
|
|
2558
2583
|
return /* @__PURE__ */ u("div", { class: "absolute right-2 top-1/4 z-[2] flex -translate-y-1/2 items-center gap-1", children: [
|
|
2559
2584
|
{
|
|
2560
2585
|
alt: "AMEX",
|
|
2561
|
-
src:
|
|
2586
|
+
src: Kn,
|
|
2562
2587
|
network: "amex"
|
|
2563
2588
|
},
|
|
2564
2589
|
{
|
|
2565
2590
|
alt: "MADA",
|
|
2566
|
-
src:
|
|
2591
|
+
src: Hn,
|
|
2567
2592
|
network: "mada"
|
|
2568
2593
|
},
|
|
2569
2594
|
{
|
|
2570
2595
|
alt: "Visa",
|
|
2571
|
-
src:
|
|
2596
|
+
src: Yn,
|
|
2572
2597
|
network: "visa"
|
|
2573
2598
|
},
|
|
2574
2599
|
{
|
|
2575
2600
|
alt: "MasterCard",
|
|
2576
|
-
src:
|
|
2601
|
+
src: Zn,
|
|
2577
2602
|
network: "mastercard"
|
|
2578
2603
|
},
|
|
2579
2604
|
{
|
|
2580
2605
|
alt: "UnionPay",
|
|
2581
|
-
src:
|
|
2606
|
+
src: Rn,
|
|
2582
2607
|
network: "unionpay"
|
|
2583
2608
|
}
|
|
2584
2609
|
].filter((r) => A !== "" ? A.toLowerCase() === r.alt.toLowerCase() : t == null ? void 0 : t.includes(r.network)).map((r) => /* @__PURE__ */ u("img", { class: e, alt: r.alt, src: r.src, loading: "lazy" }, r.network)) });
|
|
@@ -2621,7 +2646,7 @@ const kn = () => {
|
|
|
2621
2646
|
inValidMonth: r,
|
|
2622
2647
|
isValid: l && !o && r
|
|
2623
2648
|
};
|
|
2624
|
-
},
|
|
2649
|
+
}, Fn = (A) => {
|
|
2625
2650
|
const t = [0, 2, 4, 6, 8, 1, 3, 5, 7, 9];
|
|
2626
2651
|
if (typeof A != "string") throw new TypeError("Expected string input");
|
|
2627
2652
|
if (!A) return !1;
|
|
@@ -2638,35 +2663,35 @@ const kn = () => {
|
|
|
2638
2663
|
const r = n || A(e);
|
|
2639
2664
|
if (!r && e.length > 3)
|
|
2640
2665
|
return !1;
|
|
2641
|
-
const { validator: a } = Se(r), o = a(e), l =
|
|
2666
|
+
const { validator: a } = Se(r), o = a(e), l = Fn(e);
|
|
2642
2667
|
return o && l;
|
|
2643
2668
|
}
|
|
2644
2669
|
return {
|
|
2645
2670
|
isValidCc: t
|
|
2646
2671
|
};
|
|
2647
|
-
},
|
|
2648
|
-
const { t:
|
|
2649
|
-
const { value: m, name: g } = v.target,
|
|
2650
|
-
if (!
|
|
2651
|
-
p(!
|
|
2672
|
+
}, $n = ({ cc: A, setCc: t, cvc: e, setCvc: n, exp: r, setExp: a, err: o, setErr: l }) => {
|
|
2673
|
+
const { t: i } = Z(), [s, p] = z(!1), [c, f] = z(""), { isValidCc: d } = Xe(), y = de(() => Se(c), [c]), b = (v) => {
|
|
2674
|
+
const { value: m, name: g } = v.target, D = W(m.trim());
|
|
2675
|
+
if (!D) {
|
|
2676
|
+
p(!D);
|
|
2652
2677
|
return;
|
|
2653
2678
|
}
|
|
2654
2679
|
if (g === "mysr-cc-csc") {
|
|
2655
|
-
const { msg:
|
|
2656
|
-
l((
|
|
2657
|
-
csc:
|
|
2680
|
+
const { msg: w } = De(D, c);
|
|
2681
|
+
l((C) => N(B({}, C), {
|
|
2682
|
+
csc: w
|
|
2658
2683
|
}));
|
|
2659
2684
|
}
|
|
2660
2685
|
if (g === "mysr-cc-exp") {
|
|
2661
|
-
const { isValidExpFormat:
|
|
2662
|
-
l((
|
|
2663
|
-
exp_month:
|
|
2664
|
-
exp_year:
|
|
2665
|
-
exp:
|
|
2686
|
+
const { isValidExpFormat: w, isValidYear: C, inValidMonth: M } = Pe(D);
|
|
2687
|
+
l((k) => N(B({}, k), {
|
|
2688
|
+
exp_month: M ? "" : "error.invalid_month",
|
|
2689
|
+
exp_year: C ? "" : "error.invalid_year",
|
|
2690
|
+
exp: w ? "" : "error.invalid_date"
|
|
2666
2691
|
}));
|
|
2667
2692
|
}
|
|
2668
|
-
g === "mysr-cc-number" && l((
|
|
2669
|
-
cc:
|
|
2693
|
+
g === "mysr-cc-number" && l((w) => N(B({}, w), {
|
|
2694
|
+
cc: c === "" ? "error.unsupported_cc_type" : d(D) ? "" : "error.invalid_cc_number"
|
|
2670
2695
|
}));
|
|
2671
2696
|
};
|
|
2672
2697
|
return V(() => {
|
|
@@ -2677,28 +2702,28 @@ const kn = () => {
|
|
|
2677
2702
|
value: {
|
|
2678
2703
|
err: o,
|
|
2679
2704
|
setErr: l,
|
|
2680
|
-
handleBlur:
|
|
2681
|
-
type:
|
|
2705
|
+
handleBlur: b,
|
|
2706
|
+
type: c,
|
|
2682
2707
|
setType: f,
|
|
2683
2708
|
config: y()
|
|
2684
2709
|
},
|
|
2685
|
-
children: /* @__PURE__ */ u("div", { class: "space-y-2", role: "complementary", "aria-label":
|
|
2710
|
+
children: /* @__PURE__ */ u("div", { class: "space-y-2", role: "complementary", "aria-label": i("form.card_info"), children: [
|
|
2686
2711
|
/* @__PURE__ */ u("div", { class: "flex items-end justify-between text-xs font-medium", children: [
|
|
2687
|
-
/* @__PURE__ */ u("legend", { children:
|
|
2688
|
-
s && /* @__PURE__ */ u("span", { class: "uppercase text-error", children:
|
|
2712
|
+
/* @__PURE__ */ u("legend", { children: i("form.card_info") }),
|
|
2713
|
+
s && /* @__PURE__ */ u("span", { class: "uppercase text-error", children: i("form.required") })
|
|
2689
2714
|
] }),
|
|
2690
2715
|
/* @__PURE__ */ u("div", { class: "relative grid grid-cols-2 gap-y-[1px]", dir: "ltr", children: [
|
|
2691
|
-
/* @__PURE__ */ u(
|
|
2692
|
-
/* @__PURE__ */ u(
|
|
2693
|
-
/* @__PURE__ */ u(
|
|
2694
|
-
/* @__PURE__ */ u(
|
|
2716
|
+
/* @__PURE__ */ u(Vn, { value: A, setValue: t }),
|
|
2717
|
+
/* @__PURE__ */ u(jn, { type: c }),
|
|
2718
|
+
/* @__PURE__ */ u(Jn, { value: r, setValue: a }),
|
|
2719
|
+
/* @__PURE__ */ u(xn, { value: e, setValue: n })
|
|
2695
2720
|
] }),
|
|
2696
|
-
/* @__PURE__ */ u("p", { class: "flex flex-col gap-2 text-xs font-medium text-error", children: Object.entries(o).filter(([v]) => v !== "name").map(([v, m]) => /* @__PURE__ */ u("span", { class: "empty:hidden", children:
|
|
2721
|
+
/* @__PURE__ */ u("p", { class: "flex flex-col gap-2 text-xs font-medium text-error", children: Object.entries(o).filter(([v]) => v !== "name").map(([v, m]) => /* @__PURE__ */ u("span", { class: "empty:hidden", children: i(m) }, v)) })
|
|
2697
2722
|
] })
|
|
2698
2723
|
}
|
|
2699
2724
|
);
|
|
2700
|
-
},
|
|
2701
|
-
const { t: A } =
|
|
2725
|
+
}, Ar = () => {
|
|
2726
|
+
const { t: A } = Z(), {
|
|
2702
2727
|
formattedAmount: t,
|
|
2703
2728
|
isRtl: e,
|
|
2704
2729
|
credit_card: n,
|
|
@@ -2706,7 +2731,7 @@ const kn = () => {
|
|
|
2706
2731
|
callback_url: a,
|
|
2707
2732
|
payment_button_type: o,
|
|
2708
2733
|
currency: l
|
|
2709
|
-
} = E(q), [
|
|
2734
|
+
} = E(q), [i, s] = z(""), [p, c] = z(""), [f, d] = z(""), [y, b] = z(""), { getCardSchema: v } = ft(), { isValidCc: m } = Xe(), g = {
|
|
2710
2735
|
name: "",
|
|
2711
2736
|
csc: "",
|
|
2712
2737
|
cc: "",
|
|
@@ -2714,65 +2739,65 @@ const kn = () => {
|
|
|
2714
2739
|
exp_month: "",
|
|
2715
2740
|
exp_year: ""
|
|
2716
2741
|
}, {
|
|
2717
|
-
makePayment:
|
|
2718
|
-
busy:
|
|
2719
|
-
fail:
|
|
2720
|
-
success:
|
|
2721
|
-
loading:
|
|
2722
|
-
error:
|
|
2723
|
-
setError:
|
|
2724
|
-
} =
|
|
2725
|
-
return /* @__PURE__ */ u("form", { class: "space-y-6", onSubmit: (
|
|
2726
|
-
|
|
2727
|
-
const { isValid:
|
|
2728
|
-
if (!
|
|
2729
|
-
const
|
|
2730
|
-
|
|
2742
|
+
makePayment: D,
|
|
2743
|
+
busy: w,
|
|
2744
|
+
fail: C,
|
|
2745
|
+
success: M,
|
|
2746
|
+
loading: k,
|
|
2747
|
+
error: Q,
|
|
2748
|
+
setError: P
|
|
2749
|
+
} = vA({ defaultError: g });
|
|
2750
|
+
return /* @__PURE__ */ u("form", { class: "space-y-6", onSubmit: (X) => {
|
|
2751
|
+
X.preventDefault();
|
|
2752
|
+
const { isValid: _ } = Ce(i), T = W(p), Y = W(y), $ = W(f), oA = v(T), K = m(T, oA), { isValid: eA } = De($, oA), { isValid: DA } = Pe(Y);
|
|
2753
|
+
if (!_ || !K || !eA || !DA) {
|
|
2754
|
+
const AA = B({}, g);
|
|
2755
|
+
_ || (AA.name = A("error.invalid_name")), K || (AA.cc = A("error.invalid_cc_number")), eA || (AA.csc = A("error.invalid_csc")), DA || (AA.exp = A("error.invalid_date")), P(AA);
|
|
2731
2756
|
return;
|
|
2732
2757
|
}
|
|
2733
|
-
const [xA, J] =
|
|
2758
|
+
const [xA, J] = Y.split("/"), I = {
|
|
2734
2759
|
type: "creditcard",
|
|
2735
|
-
name:
|
|
2736
|
-
number:
|
|
2760
|
+
name: i,
|
|
2761
|
+
number: T,
|
|
2737
2762
|
month: xA,
|
|
2738
2763
|
year: J,
|
|
2739
|
-
cvc:
|
|
2764
|
+
cvc: $
|
|
2740
2765
|
};
|
|
2741
|
-
n != null && n.manual && (
|
|
2742
|
-
function
|
|
2743
|
-
const { transaction_url: mt } =
|
|
2766
|
+
n != null && n.manual && (I.manual = !0), n != null && n.save_card && (I.save_card = !0), r && (I.statement_descriptor = r);
|
|
2767
|
+
function H(AA) {
|
|
2768
|
+
const { transaction_url: mt } = AA.source;
|
|
2744
2769
|
mt && (n == null ? void 0 : n.auto_redirect_3ds) !== !1 && (window.location.href = mt);
|
|
2745
2770
|
}
|
|
2746
|
-
function
|
|
2747
|
-
console.error(
|
|
2771
|
+
function lA(AA) {
|
|
2772
|
+
console.error(AA);
|
|
2748
2773
|
}
|
|
2749
|
-
|
|
2774
|
+
D({
|
|
2750
2775
|
data: {
|
|
2751
2776
|
callback_url: a,
|
|
2752
|
-
source:
|
|
2777
|
+
source: I
|
|
2753
2778
|
},
|
|
2754
2779
|
initPayment: !0,
|
|
2755
|
-
onFailed:
|
|
2756
|
-
onSuccess:
|
|
2757
|
-
}).catch((
|
|
2758
|
-
console.error(
|
|
2780
|
+
onFailed: lA,
|
|
2781
|
+
onSuccess: H
|
|
2782
|
+
}).catch((AA) => {
|
|
2783
|
+
console.error(AA);
|
|
2759
2784
|
});
|
|
2760
2785
|
}, children: [
|
|
2761
|
-
/* @__PURE__ */ u(
|
|
2786
|
+
/* @__PURE__ */ u(Gn, { value: i, setValue: s, err: Q, setErr: P }),
|
|
2762
2787
|
/* @__PURE__ */ u(
|
|
2763
|
-
|
|
2788
|
+
$n,
|
|
2764
2789
|
{
|
|
2765
2790
|
cc: p,
|
|
2766
|
-
setCc:
|
|
2791
|
+
setCc: c,
|
|
2767
2792
|
cvc: f,
|
|
2768
2793
|
setCvc: d,
|
|
2769
2794
|
exp: y,
|
|
2770
|
-
setExp:
|
|
2771
|
-
err:
|
|
2772
|
-
setErr:
|
|
2795
|
+
setExp: b,
|
|
2796
|
+
err: Q,
|
|
2797
|
+
setErr: P
|
|
2773
2798
|
}
|
|
2774
2799
|
),
|
|
2775
|
-
/* @__PURE__ */ u(
|
|
2800
|
+
/* @__PURE__ */ u(NA, { type: "submit", disabled: k, success: M, fail: C, busy: w, children: /* @__PURE__ */ u(F, { children: [
|
|
2776
2801
|
(o !== "plain" || !e) && A(`button.${o}`),
|
|
2777
2802
|
" ",
|
|
2778
2803
|
/* @__PURE__ */ u("span", { class: "currency-amount", children: /* @__PURE__ */ u(ut, { currency: l, formattedAmount: t }) })
|
|
@@ -2814,7 +2839,7 @@ var At = function(A, t) {
|
|
|
2814
2839
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2815
2840
|
}, At(A, t);
|
|
2816
2841
|
};
|
|
2817
|
-
function
|
|
2842
|
+
function tr(A, t) {
|
|
2818
2843
|
if (typeof t != "function" && t !== null)
|
|
2819
2844
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
2820
2845
|
At(A, t);
|
|
@@ -2823,14 +2848,14 @@ function Ar(A, t) {
|
|
|
2823
2848
|
}
|
|
2824
2849
|
A.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
2825
2850
|
}
|
|
2826
|
-
var
|
|
2827
|
-
return
|
|
2851
|
+
var j = function() {
|
|
2852
|
+
return j = Object.assign || function(t) {
|
|
2828
2853
|
for (var e, n = 1, r = arguments.length; n < r; n++) {
|
|
2829
2854
|
e = arguments[n];
|
|
2830
2855
|
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && (t[a] = e[a]);
|
|
2831
2856
|
}
|
|
2832
2857
|
return t;
|
|
2833
|
-
},
|
|
2858
|
+
}, j.apply(this, arguments);
|
|
2834
2859
|
};
|
|
2835
2860
|
function JA(A, t, e, n) {
|
|
2836
2861
|
function r(a) {
|
|
@@ -2842,24 +2867,24 @@ function JA(A, t, e, n) {
|
|
|
2842
2867
|
function l(p) {
|
|
2843
2868
|
try {
|
|
2844
2869
|
s(n.next(p));
|
|
2845
|
-
} catch (
|
|
2846
|
-
o(
|
|
2870
|
+
} catch (c) {
|
|
2871
|
+
o(c);
|
|
2847
2872
|
}
|
|
2848
2873
|
}
|
|
2849
|
-
function
|
|
2874
|
+
function i(p) {
|
|
2850
2875
|
try {
|
|
2851
2876
|
s(n.throw(p));
|
|
2852
|
-
} catch (
|
|
2853
|
-
o(
|
|
2877
|
+
} catch (c) {
|
|
2878
|
+
o(c);
|
|
2854
2879
|
}
|
|
2855
2880
|
}
|
|
2856
2881
|
function s(p) {
|
|
2857
|
-
p.done ? a(p.value) : r(p.value).then(l,
|
|
2882
|
+
p.done ? a(p.value) : r(p.value).then(l, i);
|
|
2858
2883
|
}
|
|
2859
2884
|
s((n = n.apply(A, t || [])).next());
|
|
2860
2885
|
});
|
|
2861
2886
|
}
|
|
2862
|
-
function
|
|
2887
|
+
function CA(A, t) {
|
|
2863
2888
|
var e = { label: 0, sent: function() {
|
|
2864
2889
|
if (a[0] & 1) throw a[1];
|
|
2865
2890
|
return a[1];
|
|
@@ -2869,10 +2894,10 @@ function bA(A, t) {
|
|
|
2869
2894
|
}), o;
|
|
2870
2895
|
function l(s) {
|
|
2871
2896
|
return function(p) {
|
|
2872
|
-
return
|
|
2897
|
+
return i([s, p]);
|
|
2873
2898
|
};
|
|
2874
2899
|
}
|
|
2875
|
-
function
|
|
2900
|
+
function i(s) {
|
|
2876
2901
|
if (n) throw new TypeError("Generator is already executing.");
|
|
2877
2902
|
for (; o && (o = 0, s[0] && (e = 0)), e; ) try {
|
|
2878
2903
|
if (n = 1, r && (a = s[0] & 2 ? r.return : s[0] ? r.throw || ((a = r.return) && a.call(r), 0) : r.next) && !(a = a.call(r, s[1])).done) return a;
|
|
@@ -2964,7 +2989,7 @@ function Zt() {
|
|
|
2964
2989
|
};
|
|
2965
2990
|
});
|
|
2966
2991
|
}
|
|
2967
|
-
function
|
|
2992
|
+
function er(A) {
|
|
2968
2993
|
if (A) {
|
|
2969
2994
|
var t = {};
|
|
2970
2995
|
return Object.keys(A).forEach(function(e) {
|
|
@@ -2980,10 +3005,10 @@ function Kt(A) {
|
|
|
2980
3005
|
}), t;
|
|
2981
3006
|
}
|
|
2982
3007
|
}
|
|
2983
|
-
function
|
|
3008
|
+
function nr(A) {
|
|
2984
3009
|
return typeof A == "object" && typeof A.message != "undefined";
|
|
2985
3010
|
}
|
|
2986
|
-
function
|
|
3011
|
+
function rr(A) {
|
|
2987
3012
|
if (typeof A.stacktrace != "undefined" || typeof A["opera#sourceloc"] != "undefined") {
|
|
2988
3013
|
var t = A.stacktrace, e = t === void 0 ? "" : t;
|
|
2989
3014
|
return e.split(`
|
|
@@ -2999,7 +3024,7 @@ function nr(A) {
|
|
|
2999
3024
|
} else
|
|
3000
3025
|
return ["No stacktrace available"];
|
|
3001
3026
|
}
|
|
3002
|
-
function
|
|
3027
|
+
function ar(A) {
|
|
3003
3028
|
return Object.keys(A).map(function(t) {
|
|
3004
3029
|
return "".concat(encodeURIComponent(t), "=").concat(encodeURIComponent(A[t]));
|
|
3005
3030
|
}).join("&");
|
|
@@ -3010,7 +3035,7 @@ function Qe() {
|
|
|
3010
3035
|
function QA() {
|
|
3011
3036
|
return Qe() ? global : typeof window != "undefined" ? window : typeof self != "undefined" ? self : {};
|
|
3012
3037
|
}
|
|
3013
|
-
var
|
|
3038
|
+
var or = function() {
|
|
3014
3039
|
function A(t) {
|
|
3015
3040
|
this._data = t;
|
|
3016
3041
|
}
|
|
@@ -3019,7 +3044,7 @@ var ar = function() {
|
|
|
3019
3044
|
}, A.prototype.serialize = function() {
|
|
3020
3045
|
return this._data;
|
|
3021
3046
|
}, A;
|
|
3022
|
-
}(),
|
|
3047
|
+
}(), lr = "1.4.1", tt = function() {
|
|
3023
3048
|
function A() {
|
|
3024
3049
|
}
|
|
3025
3050
|
return A.serialize = function() {
|
|
@@ -3042,7 +3067,7 @@ var ar = function() {
|
|
|
3042
3067
|
}), typeof e == "function";
|
|
3043
3068
|
}();
|
|
3044
3069
|
}, A;
|
|
3045
|
-
}(),
|
|
3070
|
+
}(), sr = function() {
|
|
3046
3071
|
function A(t) {
|
|
3047
3072
|
this.url = t;
|
|
3048
3073
|
}
|
|
@@ -3055,13 +3080,13 @@ var ar = function() {
|
|
|
3055
3080
|
}, o.open("POST", e.url.replace(l, (a = window == null ? void 0 : window.location) === null || a === void 0 ? void 0 : a.protocol)), setTimeout(function() {
|
|
3056
3081
|
try {
|
|
3057
3082
|
o.send(t);
|
|
3058
|
-
} catch (
|
|
3059
|
-
r(
|
|
3083
|
+
} catch (i) {
|
|
3084
|
+
r(i);
|
|
3060
3085
|
}
|
|
3061
3086
|
}, 0);
|
|
3062
3087
|
});
|
|
3063
3088
|
}, A;
|
|
3064
|
-
}(),
|
|
3089
|
+
}(), ir = function() {
|
|
3065
3090
|
function A(t) {
|
|
3066
3091
|
this.url = t;
|
|
3067
3092
|
}
|
|
@@ -3085,7 +3110,7 @@ var ar = function() {
|
|
|
3085
3110
|
return A.prototype.send = function(t) {
|
|
3086
3111
|
return JA(this, void 0, void 0, function() {
|
|
3087
3112
|
var e, n, r;
|
|
3088
|
-
return
|
|
3113
|
+
return CA(this, function(a) {
|
|
3089
3114
|
switch (a.label) {
|
|
3090
3115
|
case 0:
|
|
3091
3116
|
return [4, fetch(this.url, {
|
|
@@ -3098,7 +3123,7 @@ var ar = function() {
|
|
|
3098
3123
|
});
|
|
3099
3124
|
});
|
|
3100
3125
|
}, A;
|
|
3101
|
-
}(),
|
|
3126
|
+
}(), ur = function() {
|
|
3102
3127
|
function A(t) {
|
|
3103
3128
|
this.url = t, this.https = import("./__vite-browser-external-DYxpcVy9.mjs");
|
|
3104
3129
|
}
|
|
@@ -3113,8 +3138,8 @@ var ar = function() {
|
|
|
3113
3138
|
return new Promise(function(r, a) {
|
|
3114
3139
|
e.https.then(function(o) {
|
|
3115
3140
|
var l = o.request(e.url, n, function() {
|
|
3116
|
-
}).on("error", function(
|
|
3117
|
-
return a(
|
|
3141
|
+
}).on("error", function(i) {
|
|
3142
|
+
return a(i);
|
|
3118
3143
|
});
|
|
3119
3144
|
l.write(t), l.end(), r({});
|
|
3120
3145
|
}).catch(function(o) {
|
|
@@ -3122,13 +3147,13 @@ var ar = function() {
|
|
|
3122
3147
|
});
|
|
3123
3148
|
});
|
|
3124
3149
|
}, A;
|
|
3125
|
-
}(),
|
|
3150
|
+
}(), pr = function() {
|
|
3126
3151
|
function A(t) {
|
|
3127
3152
|
this._uri = t.uri || "https://appsignal-endpoint.net/collect", this._apiKey = t.key, this._clientVersion = t.version, this._transport = this._createTransport(this._url());
|
|
3128
3153
|
}
|
|
3129
3154
|
return A.prototype.push = function(t) {
|
|
3130
3155
|
return JA(this, void 0, void 0, function() {
|
|
3131
|
-
return
|
|
3156
|
+
return CA(this, function(e) {
|
|
3132
3157
|
switch (e.label) {
|
|
3133
3158
|
case 0:
|
|
3134
3159
|
return [4, this._transport.send(t.toJSON())];
|
|
@@ -3140,17 +3165,17 @@ var ar = function() {
|
|
|
3140
3165
|
}, A.prototype._createTransport = function(t) {
|
|
3141
3166
|
switch (tt.transport()) {
|
|
3142
3167
|
case "XDomainRequest":
|
|
3143
|
-
return new lr(t);
|
|
3144
|
-
case "XMLHttpRequest":
|
|
3145
3168
|
return new sr(t);
|
|
3146
|
-
case "
|
|
3169
|
+
case "XMLHttpRequest":
|
|
3147
3170
|
return new ir(t);
|
|
3171
|
+
case "NodeHTTP":
|
|
3172
|
+
return new ur(t);
|
|
3148
3173
|
default:
|
|
3149
3174
|
return new cr(t);
|
|
3150
3175
|
}
|
|
3151
3176
|
}, A.prototype._url = function() {
|
|
3152
3177
|
var t = this._authorization();
|
|
3153
|
-
return "".concat(this._uri, "?").concat(
|
|
3178
|
+
return "".concat(this._uri, "?").concat(ar(t));
|
|
3154
3179
|
}, A.prototype._authorization = function() {
|
|
3155
3180
|
return {
|
|
3156
3181
|
api_key: this._apiKey,
|
|
@@ -3158,9 +3183,9 @@ var ar = function() {
|
|
|
3158
3183
|
};
|
|
3159
3184
|
}, A;
|
|
3160
3185
|
}(), PA = function(A) {
|
|
3161
|
-
|
|
3186
|
+
tr(t, A);
|
|
3162
3187
|
function t(e) {
|
|
3163
|
-
return A.call(this,
|
|
3188
|
+
return A.call(this, j({ timestamp: Math.round((/* @__PURE__ */ new Date()).getTime() / 1e3), namespace: "frontend", error: {
|
|
3164
3189
|
name: "NullError",
|
|
3165
3190
|
message: "No error has been set",
|
|
3166
3191
|
backtrace: []
|
|
@@ -3171,19 +3196,19 @@ var ar = function() {
|
|
|
3171
3196
|
}, t.prototype.setNamespace = function(e) {
|
|
3172
3197
|
return !e || typeof e != "string" ? this : (this._data.namespace = e, this);
|
|
3173
3198
|
}, t.prototype.setError = function(e) {
|
|
3174
|
-
return !e || !
|
|
3199
|
+
return !e || !nr(e) ? this : (this._data.error = {
|
|
3175
3200
|
name: e.name || "[unknown]",
|
|
3176
3201
|
message: e.message,
|
|
3177
|
-
backtrace:
|
|
3202
|
+
backtrace: rr(e)
|
|
3178
3203
|
}, this);
|
|
3179
3204
|
}, t.prototype.setTags = function(e) {
|
|
3180
|
-
return this._data.tags =
|
|
3205
|
+
return this._data.tags = j(j({}, this._data.tags), er(e)), this;
|
|
3181
3206
|
}, t.prototype.setParams = function(e) {
|
|
3182
|
-
return this._data.params =
|
|
3207
|
+
return this._data.params = j(j({}, this._data.params), e), this;
|
|
3183
3208
|
}, t.prototype.setBreadcrumbs = function(e) {
|
|
3184
3209
|
return this._data.breadcrumbs = e, this;
|
|
3185
3210
|
}, t.prototype.setEnvironment = function(e) {
|
|
3186
|
-
return this._data.environment =
|
|
3211
|
+
return this._data.environment = j(j({}, this._data.environment), e), this;
|
|
3187
3212
|
}, t.prototype.cleanBacktracePath = function(e) {
|
|
3188
3213
|
if (e.length === 0)
|
|
3189
3214
|
return this;
|
|
@@ -3191,14 +3216,14 @@ var ar = function() {
|
|
|
3191
3216
|
return this;
|
|
3192
3217
|
var n = 0;
|
|
3193
3218
|
return this._data.error.backtrace = this._data.error.backtrace.map(function(r) {
|
|
3194
|
-
var a, o, l =
|
|
3219
|
+
var a, o, l = dr(r);
|
|
3195
3220
|
if (!l)
|
|
3196
3221
|
return r;
|
|
3197
3222
|
try {
|
|
3198
|
-
for (var
|
|
3199
|
-
var p = s.value,
|
|
3200
|
-
if (!(!
|
|
3201
|
-
var f =
|
|
3223
|
+
for (var i = Te(e), s = i.next(); !s.done; s = i.next()) {
|
|
3224
|
+
var p = s.value, c = l.match(p);
|
|
3225
|
+
if (!(!c || c.length < 2)) {
|
|
3226
|
+
var f = c.slice(1).join("");
|
|
3202
3227
|
if (f)
|
|
3203
3228
|
return n++, r.replace(l, f);
|
|
3204
3229
|
}
|
|
@@ -3207,7 +3232,7 @@ var ar = function() {
|
|
|
3207
3232
|
a = { error: d };
|
|
3208
3233
|
} finally {
|
|
3209
3234
|
try {
|
|
3210
|
-
s && !s.done && (o =
|
|
3235
|
+
s && !s.done && (o = i.return) && o.call(i);
|
|
3211
3236
|
} finally {
|
|
3212
3237
|
if (a) throw a.error;
|
|
3213
3238
|
}
|
|
@@ -3217,8 +3242,8 @@ var ar = function() {
|
|
|
3217
3242
|
backtrace_paths_matched: n.toString()
|
|
3218
3243
|
}), this;
|
|
3219
3244
|
}, t;
|
|
3220
|
-
}(
|
|
3221
|
-
function
|
|
3245
|
+
}(or);
|
|
3246
|
+
function dr(A) {
|
|
3222
3247
|
var t = /^\s*at\s/, e = /at(?:\s.*)?\s\(?(.*):\d*:\d*\)?$/i;
|
|
3223
3248
|
if (A.match(t)) {
|
|
3224
3249
|
var n = A.match(e);
|
|
@@ -3230,7 +3255,7 @@ function pr(A) {
|
|
|
3230
3255
|
return n ? n[1] : void 0;
|
|
3231
3256
|
}
|
|
3232
3257
|
}
|
|
3233
|
-
var
|
|
3258
|
+
var fr = function() {
|
|
3234
3259
|
function A(t) {
|
|
3235
3260
|
this._data = t || [];
|
|
3236
3261
|
}
|
|
@@ -3242,7 +3267,7 @@ var dr = function() {
|
|
|
3242
3267
|
var e;
|
|
3243
3268
|
return Array.isArray(t) ? (e = this._data).push.apply(e, OA([], IA(t), !1)) : this._data.push(t);
|
|
3244
3269
|
}, A.prototype.drain = function() {
|
|
3245
|
-
return
|
|
3270
|
+
return CA(this, function(t) {
|
|
3246
3271
|
switch (t.label) {
|
|
3247
3272
|
case 0:
|
|
3248
3273
|
return this._data.length > 0 ? [4, this._data.shift()] : [3, 2];
|
|
@@ -3253,42 +3278,42 @@ var dr = function() {
|
|
|
3253
3278
|
}
|
|
3254
3279
|
});
|
|
3255
3280
|
}, A;
|
|
3256
|
-
}(),
|
|
3281
|
+
}(), mr = function() {
|
|
3257
3282
|
function A(t, e, n) {
|
|
3258
|
-
this._retries = 0, this._timerID = 0, this._duration = 0, this._api = e, this._queue = t, this.options =
|
|
3283
|
+
this._retries = 0, this._timerID = 0, this._duration = 0, this._api = e, this._queue = t, this.options = j({ limit: 5, initialDuration: 1e3 }, n), this.reset();
|
|
3259
3284
|
}
|
|
3260
3285
|
return A.prototype.schedule = function(t) {
|
|
3261
3286
|
var e = this;
|
|
3262
3287
|
t === void 0 && (t = this._duration);
|
|
3263
3288
|
var n = QA(), r = 1.3, a = function() {
|
|
3264
3289
|
return JA(e, void 0, void 0, function() {
|
|
3265
|
-
var o, l,
|
|
3266
|
-
return
|
|
3290
|
+
var o, l, i, s, p, c, f;
|
|
3291
|
+
return CA(this, function(d) {
|
|
3267
3292
|
switch (d.label) {
|
|
3268
3293
|
case 0:
|
|
3269
3294
|
d.trys.push([0, 7, 8, 9]), o = Te(this._queue.drain()), l = o.next(), d.label = 1;
|
|
3270
3295
|
case 1:
|
|
3271
3296
|
if (l.done) return [3, 6];
|
|
3272
|
-
if (
|
|
3297
|
+
if (i = l.value, !i)
|
|
3273
3298
|
return [2];
|
|
3274
3299
|
d.label = 2;
|
|
3275
3300
|
case 2:
|
|
3276
|
-
return d.trys.push([2, 4, , 5]), [4, this._api.push(
|
|
3301
|
+
return d.trys.push([2, 4, , 5]), [4, this._api.push(i)];
|
|
3277
3302
|
case 3:
|
|
3278
3303
|
return d.sent(), [3, 5];
|
|
3279
3304
|
case 4:
|
|
3280
|
-
return d.sent(), s = Math.floor(Math.pow(t, r)), this._retries = this._retries - 1, this._retries === 0 ? this.reset() : (this._queue.push(
|
|
3305
|
+
return d.sent(), s = Math.floor(Math.pow(t, r)), this._retries = this._retries - 1, this._retries === 0 ? this.reset() : (this._queue.push(i), this._timerID = this.schedule(s)), [2];
|
|
3281
3306
|
case 5:
|
|
3282
3307
|
return l = o.next(), [3, 1];
|
|
3283
3308
|
case 6:
|
|
3284
3309
|
return [3, 9];
|
|
3285
3310
|
case 7:
|
|
3286
|
-
return p = d.sent(),
|
|
3311
|
+
return p = d.sent(), c = { error: p }, [3, 9];
|
|
3287
3312
|
case 8:
|
|
3288
3313
|
try {
|
|
3289
3314
|
l && !l.done && (f = o.return) && f.call(o);
|
|
3290
3315
|
} finally {
|
|
3291
|
-
if (
|
|
3316
|
+
if (c) throw c.error;
|
|
3292
3317
|
}
|
|
3293
3318
|
return [7];
|
|
3294
3319
|
case 9:
|
|
@@ -3302,22 +3327,22 @@ var dr = function() {
|
|
|
3302
3327
|
var t = this.options, e = t.limit, n = t.initialDuration;
|
|
3303
3328
|
this._retries = e, this._duration = n;
|
|
3304
3329
|
}, A;
|
|
3305
|
-
}(),
|
|
3330
|
+
}(), vr = function() {
|
|
3306
3331
|
function A(t) {
|
|
3307
|
-
this.VERSION =
|
|
3332
|
+
this.VERSION = lr, this.ignored = [], this.matchBacktracePaths = [], this._breadcrumbs = [], this._hooks = {
|
|
3308
3333
|
decorators: Array(),
|
|
3309
3334
|
overrides: Array()
|
|
3310
|
-
}, this._env = tt.serialize(), this._queue = new
|
|
3335
|
+
}, this._env = tt.serialize(), this._queue = new fr([]);
|
|
3311
3336
|
var e = t.key, n = e === void 0 ? "" : e, r = t.uri, a = t.revision, o = t.ignoreErrors, l = t.matchBacktracePaths;
|
|
3312
|
-
a && typeof a != "string" && (t.revision = String(a)), n === "" && console.info("[APPSIGNAL]: No API key provided. Started in development mode. No data will be sent."), this._api = new
|
|
3337
|
+
a && typeof a != "string" && (t.revision = String(a)), n === "" && console.info("[APPSIGNAL]: No API key provided. Started in development mode. No data will be sent."), this._api = new pr({
|
|
3313
3338
|
key: n,
|
|
3314
3339
|
uri: r,
|
|
3315
3340
|
version: this.VERSION
|
|
3316
|
-
}), o && Array.isArray(o) && (this.ignored = o.filter(function(
|
|
3317
|
-
return
|
|
3318
|
-
}).map(Ht)), l && (Array.isArray(l) ? this.matchBacktracePaths = l : this.matchBacktracePaths = [l], this.matchBacktracePaths = this.matchBacktracePaths.filter(function(
|
|
3319
|
-
return
|
|
3320
|
-
}).map(Ht)), this._dispatcher = new
|
|
3341
|
+
}), o && Array.isArray(o) && (this.ignored = o.filter(function(i) {
|
|
3342
|
+
return i instanceof RegExp;
|
|
3343
|
+
}).map(Ht)), l && (Array.isArray(l) ? this.matchBacktracePaths = l : this.matchBacktracePaths = [l], this.matchBacktracePaths = this.matchBacktracePaths.filter(function(i) {
|
|
3344
|
+
return i instanceof RegExp;
|
|
3345
|
+
}).map(Ht)), this._dispatcher = new mr(this._queue, this._api), this._options = t;
|
|
3321
3346
|
}
|
|
3322
3347
|
return A.prototype.send = function(t, e, n) {
|
|
3323
3348
|
var r = this;
|
|
@@ -3346,8 +3371,8 @@ var dr = function() {
|
|
|
3346
3371
|
var l = a instanceof PA ? a : this._createSpanFromError(a);
|
|
3347
3372
|
if (this._hooks.decorators.length > 0 && Zt.apply(void 0, OA([], IA(this._hooks.decorators), !1))(l), e)
|
|
3348
3373
|
if (typeof e == "function") {
|
|
3349
|
-
var
|
|
3350
|
-
|
|
3374
|
+
var i = e;
|
|
3375
|
+
i(l);
|
|
3351
3376
|
} else {
|
|
3352
3377
|
console.warn("[APPSIGNAL]: DEPRECATED: Calling the `send`/`sendError` function with a tags object is deprecated. Use the callback argument instead.");
|
|
3353
3378
|
var s = Kt(e) || {};
|
|
@@ -3379,7 +3404,7 @@ var dr = function() {
|
|
|
3379
3404
|
}, A.prototype.wrap = function(t, e, n) {
|
|
3380
3405
|
return JA(this, void 0, void 0, function() {
|
|
3381
3406
|
var r;
|
|
3382
|
-
return
|
|
3407
|
+
return CA(this, function(a) {
|
|
3383
3408
|
switch (a.label) {
|
|
3384
3409
|
case 0:
|
|
3385
3410
|
return a.trys.push([0, 2, , 5]), [4, t()];
|
|
@@ -3409,7 +3434,7 @@ var dr = function() {
|
|
|
3409
3434
|
demo_sample: "true"
|
|
3410
3435
|
}), this.send(t);
|
|
3411
3436
|
}, A.prototype.addBreadcrumb = function(t) {
|
|
3412
|
-
var e =
|
|
3437
|
+
var e = j(j({ timestamp: Math.round((/* @__PURE__ */ new Date()).getTime() / 1e3) }, t), { metadata: Kt(t.metadata) });
|
|
3413
3438
|
if (!e.category) {
|
|
3414
3439
|
console.warn("[APPSIGNAL]: Breadcrumb not added. `category` is missing.");
|
|
3415
3440
|
return;
|
|
@@ -3427,11 +3452,11 @@ var dr = function() {
|
|
|
3427
3452
|
function Ht(A) {
|
|
3428
3453
|
return new RegExp(A.source, A.flags.replace("g", ""));
|
|
3429
3454
|
}
|
|
3430
|
-
const
|
|
3455
|
+
const gr = new vr({
|
|
3431
3456
|
key: "95fc54a8-f3ef-454c-b93d-e7e765de19f0",
|
|
3432
|
-
revision:
|
|
3457
|
+
revision: ct
|
|
3433
3458
|
});
|
|
3434
|
-
var
|
|
3459
|
+
var hr = /* @__PURE__ */ function() {
|
|
3435
3460
|
var A = function(t, e) {
|
|
3436
3461
|
return A = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
3437
3462
|
n.__proto__ = r;
|
|
@@ -3456,36 +3481,36 @@ var gr = /* @__PURE__ */ function() {
|
|
|
3456
3481
|
}
|
|
3457
3482
|
return A;
|
|
3458
3483
|
}, et.apply(this, arguments);
|
|
3459
|
-
},
|
|
3460
|
-
|
|
3484
|
+
}, yr = function(A) {
|
|
3485
|
+
hr(t, A);
|
|
3461
3486
|
function t() {
|
|
3462
3487
|
var e = A !== null && A.apply(this, arguments) || this;
|
|
3463
3488
|
return e.state = { error: void 0 }, e;
|
|
3464
3489
|
}
|
|
3465
3490
|
return t.prototype.componentDidCatch = function(e, n) {
|
|
3466
|
-
var r = this.props, a = r.instance, o = r.action, l = r.tags,
|
|
3467
|
-
|
|
3468
|
-
name:
|
|
3491
|
+
var r = this.props, a = r.instance, o = r.action, l = r.tags, i = e.name, s = e.message, p = e.stack, c = a.createSpan();
|
|
3492
|
+
c.setError({
|
|
3493
|
+
name: i,
|
|
3469
3494
|
message: s,
|
|
3470
3495
|
stack: p
|
|
3471
|
-
}).setTags(et({ framework: "Preact" }, l)), o && o !== "" &&
|
|
3496
|
+
}).setTags(et({ framework: "Preact" }, l)), o && o !== "" && c.setAction(o), a.send(c), this.setState({ error: e });
|
|
3472
3497
|
}, t.prototype.render = function() {
|
|
3473
3498
|
return this.state.error ? this.props.fallback ? this.props.fallback(this.state.error) : null : this.props.children;
|
|
3474
3499
|
}, t.defaultProps = {
|
|
3475
3500
|
action: ""
|
|
3476
3501
|
}, t;
|
|
3477
|
-
}(
|
|
3502
|
+
}(nA);
|
|
3478
3503
|
let nt = null;
|
|
3479
|
-
function
|
|
3504
|
+
function wr(A) {
|
|
3480
3505
|
nt = A;
|
|
3481
3506
|
}
|
|
3482
|
-
const
|
|
3507
|
+
const br = () => /* @__PURE__ */ u("div", { class: "mx-auto w-fit rounded-lg border-red-800 bg-red-500/20 p-4 font-mono text-sm leading-6", children: /* @__PURE__ */ u("h2", { class: "mb-4 text-center text-xl font-medium", children: "Something went wrong" }) });
|
|
3483
3508
|
function rt(A, t) {
|
|
3484
|
-
const e =
|
|
3509
|
+
const e = dA[t] || dA.default;
|
|
3485
3510
|
return e === 0 ? A : parseFloat((A / yt(10, e)).toFixed(e));
|
|
3486
3511
|
}
|
|
3487
3512
|
function Rt(A, t) {
|
|
3488
|
-
const e =
|
|
3513
|
+
const e = dA[t] || dA.default, n = rt(A, t);
|
|
3489
3514
|
let r = new Intl.NumberFormat("en", {
|
|
3490
3515
|
style: "currency",
|
|
3491
3516
|
currency: t,
|
|
@@ -3494,32 +3519,32 @@ function Rt(A, t) {
|
|
|
3494
3519
|
}).format(n);
|
|
3495
3520
|
return ["SAR", "AED"].includes(t) && (r = r.replace(t, "").trim()), r;
|
|
3496
3521
|
}
|
|
3497
|
-
function
|
|
3498
|
-
const { amount: t, currency: e, language: n, translations: r, publishable_api_key: a } = A, o = document.documentElement.dir === "rtl" || n === "ar", l =
|
|
3499
|
-
version:
|
|
3522
|
+
function Cr({ config: A }) {
|
|
3523
|
+
const { amount: t, currency: e, language: n, translations: r, publishable_api_key: a } = A, o = document.documentElement.dir === "rtl" || n === "ar", l = dA[e] || dA.default, i = rt(t, e), s = Rt(t, e), [p, c] = z(N(B({
|
|
3524
|
+
version: ct
|
|
3500
3525
|
}, A), {
|
|
3501
3526
|
translations: He(r),
|
|
3502
3527
|
formattedAmount: s,
|
|
3503
|
-
decimalAmount:
|
|
3528
|
+
decimalAmount: i.toFixed(l).toString(),
|
|
3504
3529
|
isProcessing: !1,
|
|
3505
3530
|
isRtl: o,
|
|
3506
3531
|
showForm: !1,
|
|
3507
3532
|
isTestMode: (a == null ? void 0 : a.startsWith("pk_test")) || location.protocol === "http:"
|
|
3508
3533
|
}));
|
|
3509
|
-
|
|
3510
|
-
|
|
3534
|
+
wr(c), V(() => {
|
|
3535
|
+
c((y) => N(B({}, y), {
|
|
3511
3536
|
amount: p.amount,
|
|
3512
3537
|
formattedAmount: Rt(p.amount, p.currency),
|
|
3513
3538
|
decimalAmount: rt(p.amount, p.currency).toFixed(l).toString()
|
|
3514
3539
|
}));
|
|
3515
3540
|
}, [p.amount]);
|
|
3516
|
-
const [f, d] =
|
|
3541
|
+
const [f, d] = z({
|
|
3517
3542
|
samsung: !A.samsung_pay,
|
|
3518
3543
|
google: !A.google_pay,
|
|
3519
3544
|
apple: !A.apple_pay
|
|
3520
3545
|
});
|
|
3521
3546
|
return V(() => {
|
|
3522
|
-
var
|
|
3547
|
+
var b, v;
|
|
3523
3548
|
const y = (m, g) => {
|
|
3524
3549
|
document.body.append(
|
|
3525
3550
|
Object.assign(document.createElement("script"), {
|
|
@@ -3530,39 +3555,39 @@ function br({ config: A }) {
|
|
|
3530
3555
|
};
|
|
3531
3556
|
!window.SamsungPay && A.samsung_pay && y(
|
|
3532
3557
|
"https://img.mpay.samsung.com/gsmpi/sdk/samsungpay_web_sdk.js",
|
|
3533
|
-
() => d((m) =>
|
|
3534
|
-
), !((v = (
|
|
3558
|
+
() => d((m) => N(B({}, m), { samsung: !0 }))
|
|
3559
|
+
), !((v = (b = window.google) == null ? void 0 : b.payments) != null && v.api) && A.google_pay && y(
|
|
3535
3560
|
"https://pay.google.com/gp/p/js/pay.js",
|
|
3536
|
-
() => d((m) =>
|
|
3561
|
+
() => d((m) => N(B({}, m), { google: !0 }))
|
|
3537
3562
|
), A.apple_pay && y(
|
|
3538
3563
|
"https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js",
|
|
3539
|
-
() => d((m) =>
|
|
3564
|
+
() => d((m) => N(B({}, m), { apple: !0 }))
|
|
3540
3565
|
);
|
|
3541
3566
|
}, []), /* @__PURE__ */ u(
|
|
3542
3567
|
q.Provider,
|
|
3543
3568
|
{
|
|
3544
|
-
value:
|
|
3545
|
-
setFormSettings:
|
|
3569
|
+
value: N(B({}, p), {
|
|
3570
|
+
setFormSettings: c,
|
|
3546
3571
|
scriptsLoaded: f
|
|
3547
3572
|
}),
|
|
3548
3573
|
children: /* @__PURE__ */ u(
|
|
3549
|
-
|
|
3574
|
+
yr,
|
|
3550
3575
|
{
|
|
3551
|
-
instance:
|
|
3576
|
+
instance: gr,
|
|
3552
3577
|
tags: { tag: "moyasar-payment-form" },
|
|
3553
|
-
fallback: () => /* @__PURE__ */ u(
|
|
3578
|
+
fallback: () => /* @__PURE__ */ u(br, {}),
|
|
3554
3579
|
children: /* @__PURE__ */ u("div", { id: "mysr", children: /* @__PURE__ */ u(
|
|
3555
3580
|
"div",
|
|
3556
3581
|
{
|
|
3557
|
-
class:
|
|
3582
|
+
class: rA([
|
|
3558
3583
|
"box-border flex w-full min-w-60 flex-col gap-4 text-base leading-4 text-black/90",
|
|
3559
3584
|
A.fixed_width && "md:mx-auto md:max-w-80"
|
|
3560
3585
|
]),
|
|
3561
3586
|
dir: n === "ar" ? "rtl" : "ltr",
|
|
3562
3587
|
children: [
|
|
3563
3588
|
/* @__PURE__ */ u(dt, {}),
|
|
3564
|
-
/* @__PURE__ */ u(
|
|
3565
|
-
A.methods.includes("creditcard") && /* @__PURE__ */ u(
|
|
3589
|
+
/* @__PURE__ */ u(En, {}),
|
|
3590
|
+
A.methods.includes("creditcard") && /* @__PURE__ */ u(Ar, {}),
|
|
3566
3591
|
/* @__PURE__ */ u(Ye, {})
|
|
3567
3592
|
]
|
|
3568
3593
|
}
|
|
@@ -3572,7 +3597,7 @@ function br({ config: A }) {
|
|
|
3572
3597
|
}
|
|
3573
3598
|
);
|
|
3574
3599
|
}
|
|
3575
|
-
const
|
|
3600
|
+
const Dr = {
|
|
3576
3601
|
first_name: { required: !0, max: 30 },
|
|
3577
3602
|
last_name: { required: !0, max: 35 },
|
|
3578
3603
|
address: { required: !0, max: 50 },
|
|
@@ -3583,7 +3608,7 @@ const Cr = {
|
|
|
3583
3608
|
postal_code: { max: 50 },
|
|
3584
3609
|
administrative_area: { max: 2 },
|
|
3585
3610
|
country_code: {}
|
|
3586
|
-
},
|
|
3611
|
+
}, Mr = {
|
|
3587
3612
|
first_name: { required: !0, max: 30 },
|
|
3588
3613
|
last_name: { required: !0, max: 35 },
|
|
3589
3614
|
address: { required: !0, max: 50 },
|
|
@@ -3596,87 +3621,89 @@ const Cr = {
|
|
|
3596
3621
|
};
|
|
3597
3622
|
function jt(A, t, e) {
|
|
3598
3623
|
if (typeof t != "object" || t === null || Array.isArray(t)) {
|
|
3599
|
-
|
|
3624
|
+
h(`\`${A}\` must be an object`);
|
|
3600
3625
|
return;
|
|
3601
3626
|
}
|
|
3602
3627
|
const n = t;
|
|
3603
3628
|
for (const r of Object.keys(n))
|
|
3604
|
-
Object.prototype.hasOwnProperty.call(e, r) ||
|
|
3629
|
+
Object.prototype.hasOwnProperty.call(e, r) || h(`\`${A}.${r}\` is not a supported field`);
|
|
3605
3630
|
for (const [r, a] of Object.entries(e)) {
|
|
3606
3631
|
const o = n[r], l = typeof o == "string" ? o.trim() : o;
|
|
3607
3632
|
if (l == null || l === "") {
|
|
3608
3633
|
a.required && x(`${A}.${r}`);
|
|
3609
3634
|
continue;
|
|
3610
3635
|
}
|
|
3611
|
-
typeof l != "string" &&
|
|
3636
|
+
typeof l != "string" && h(`\`${A}.${r}\` must be a string`), typeof l == "string" && a.max !== void 0 && l.length > a.max && h(`\`${A}.${r}\` must be at most ${a.max} characters`);
|
|
3612
3637
|
}
|
|
3613
3638
|
}
|
|
3614
|
-
const
|
|
3639
|
+
const kr = (A) => {
|
|
3615
3640
|
var n;
|
|
3616
3641
|
if (!A.sender && !A.recipient)
|
|
3617
3642
|
return !0;
|
|
3618
|
-
(!A.sender || !A.recipient) &&
|
|
3643
|
+
(!A.sender || !A.recipient) && h("`sender` and `recipient` must be provided together for AFT payments");
|
|
3619
3644
|
const e = [...(n = A.methods) != null ? n : [], ...A.google_pay ? ["googlepay"] : []].filter((r) => !$A.includes(r));
|
|
3620
|
-
return e.length > 0 &&
|
|
3645
|
+
return e.length > 0 && h(
|
|
3621
3646
|
`AFT payments support only ${$A.join(", ")}; disable ${e.join(", ")} when \`sender\`/\`recipient\` are provided`
|
|
3622
|
-
), jt("sender", A.sender,
|
|
3623
|
-
},
|
|
3647
|
+
), jt("sender", A.sender, Dr), jt("recipient", A.recipient, Mr), Wt.includes(A.sender.id_type) || h(`\`sender.id_type\` must be one of: ${Wt.join(", ")}`), A.sender.country_code && !$t(A.sender.country_code) && h("`sender.country_code` must be a 2-letter ISO 3166-1 alpha-2 code"), A.recipient.country && !$t(A.recipient.country) && h("`recipient.country` must be a 2-letter ISO 3166-1 alpha-2 code"), !0;
|
|
3648
|
+
}, Br = (A) => {
|
|
3624
3649
|
function t(e) {
|
|
3625
3650
|
if (typeof e != "function") return !1;
|
|
3626
3651
|
const n = (e == null ? void 0 : e.constructor.prototype.constructor.name) === "AsyncFunction", r = e.toString().startsWith("async");
|
|
3627
3652
|
return n || r;
|
|
3628
3653
|
}
|
|
3629
|
-
return A.on_initiating && !t(A.on_initiating) &&
|
|
3654
|
+
return A.on_initiating && !t(A.on_initiating) && h(
|
|
3630
3655
|
"On initiating must be a promise based callback, check documentation for implementation details"
|
|
3631
|
-
), A.on_completed && !t(A.on_completed) &&
|
|
3656
|
+
), A.on_completed && !t(A.on_completed) && h(
|
|
3632
3657
|
"On completed must be a promise based callback, check documentation for implementation details"
|
|
3633
|
-
), A.on_failure && !t(A.on_failure) &&
|
|
3658
|
+
), A.on_failure && !t(A.on_failure) && h(
|
|
3634
3659
|
"On failure must be a promise based callback, check documentation for implementation details"
|
|
3635
|
-
), A.on_redirect && !t(A.on_redirect) &&
|
|
3660
|
+
), A.on_redirect && !t(A.on_redirect) && h(
|
|
3636
3661
|
"On redirect must be a promise based callback, check documentation for implementation details"
|
|
3637
3662
|
), !0;
|
|
3638
3663
|
};
|
|
3639
|
-
function
|
|
3664
|
+
function Sr(A) {
|
|
3640
3665
|
for (const t of A)
|
|
3641
|
-
Object.prototype.hasOwnProperty.call(t, "amount") || x("amount"), typeof t.amount != "number" &&
|
|
3666
|
+
Object.prototype.hasOwnProperty.call(t, "amount") || x("amount"), typeof t.amount != "number" && h("`amount` must be a number"), Number.isInteger(t.amount) || h(
|
|
3642
3667
|
"amount must be in minor unit of selected currency, e.g. for $19.99 set amount to 1999."
|
|
3643
|
-
), t.amount == 0 &&
|
|
3668
|
+
), t.amount == 0 && h("amount must be non-zero value"), t.recipient_id || x("recipient_id"), typeof t.recipient_id != "string" && h("`recipient_id` must be a UUID string"), t.fee_source && typeof t.fee_source != "boolean" && h("`fee_source` must be a boolean"), t.refundable && typeof t.refundable != "boolean" && h("`refundable` must be a boolean"), t.reference && typeof t.reference != "string" && h("`reference` must be a string"), t.description && typeof t.description != "string" && h("`description` must be a string");
|
|
3644
3669
|
}
|
|
3645
|
-
const
|
|
3670
|
+
const Pr = (A) => {
|
|
3646
3671
|
var t, e;
|
|
3647
|
-
return A.payment_button_type && typeof A.payment_button_type != "string" &&
|
|
3672
|
+
return A.payment_button_type && typeof A.payment_button_type != "string" && iA("Payment button type"), A.given_id && (/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(A.given_id) || h("`given_id` must be a valid UUID v4")), A.payment_button_type && !Qn.includes(A.payment_button_type) && h("Unsupported button type, check documentation for list of supported types"), A.language && typeof A.language != "string" && iA("Language"), A.translations && typeof A.translations != "object" && iA("Translations"), A.metadata && typeof A.metadata != "object" && h("Metadata must be and object"), A.metadata && Object.entries(A.metadata).length > 50 && h("Only 50 Key/Value pairs are allowed in metadata"), A.invoice_id && typeof A.invoice_id != "string" && h("Invoice ID must be a string"), A.invoice_id && (/^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}$/.test(
|
|
3648
3673
|
(t = A.invoice_id) != null ? t : ""
|
|
3649
|
-
) ||
|
|
3674
|
+
) || h("Invalid invoice ID format")), A.statement_descriptor && typeof A.statement_descriptor != "string" && h("Statement descriptor must be a string"), A.statement_descriptor && (/^[\w\s\d\-~]{1,64}$/.test((e = A.statement_descriptor) != null ? e : "") || h(
|
|
3650
3675
|
'Invalid format for the statement descriptor [length between 1 and 64 characters, allowed alphanumeric characters, white-spaces, "/", "-" and "~" symbols] '
|
|
3651
|
-
)), A.fixed_width && typeof A.fixed_width != "boolean" &&
|
|
3652
|
-
}, Ft = (A, t) => A.every((e) => t.includes(e)),
|
|
3653
|
-
var t, e, n, r, a, o, l,
|
|
3654
|
-
if (A.methods && !Array.isArray(A.methods) &&
|
|
3655
|
-
const
|
|
3656
|
-
|
|
3676
|
+
)), A.fixed_width && typeof A.fixed_width != "boolean" && h("Fixed width expects boolean value"), A.apply_coupon && typeof A.apply_coupon != "boolean" && h("apply_coupon should be a boolean"), A.splits && !Array.isArray(A.splits) && h("splits must be an array"), A.splits && A.splits.length == 0 && h("splits must be an array that contains split details"), A.splits && A.splits.length > 0 && Sr(A.splits), !0;
|
|
3677
|
+
}, Ft = (A, t) => A.every((e) => t.includes(e)), Xr = (A) => {
|
|
3678
|
+
var t, e, n, r, a, o, l, i, s, p, c, f, d, y, b, v, m, g, D, w;
|
|
3679
|
+
if (A.methods && !Array.isArray(A.methods) && h("Methods must be an array"), A.methods.includes("creditcard") && ((t = A.credit_card) != null && t.manual && typeof A.credit_card.manual != "boolean" && h("Credit Card manual option must be a boolean"), (e = A.credit_card) != null && e.save_card && typeof A.credit_card.save_card != "boolean" && h("Credit Card save card option must be a boolean")), A.methods.includes("applepay") && (A.apple_pay || x("Apple Pay configuration"), A.apple_pay)) {
|
|
3680
|
+
const C = A.apple_pay.country || ((n = A.payment_options) == null ? void 0 : n.country), M = A.apple_pay.label || ((r = A.payment_options) == null ? void 0 : r.label), k = /^[\x20-\x7E]+$/;
|
|
3681
|
+
C || x("Apple Pay country or Payment Options country"), (C == null ? void 0 : C.trim().length) !== 2 && h("Country must be two-letter ISO 3166 country code"), M || x("Apple Pay label or Payment Options label"), (M == null ? void 0 : M.trim().length) === 0 && h("Apple Pay label or Payment Options label can't be empty"), typeof M == "string" && !k.test(M) && h("Apple Pay label or Payment Options label should be English characters only"), (a = A.apple_pay) != null && a.manual && typeof ((o = A.apple_pay) == null ? void 0 : o.manual) != "boolean" && h("Apple Pay manual option must be a boolean"), (l = A.apple_pay) != null && l.save_card && typeof ((i = A.apple_pay) == null ? void 0 : i.save_card) != "boolean" && h("Apple Pay save card option must be a boolean"), (s = A.samsung_pay) != null && s.manual && typeof ((p = A.samsung_pay) == null ? void 0 : p.manual) != "boolean" && h("Samsung Pay manual option must be a boolean"), (c = A.samsung_pay) != null && c.save_card && typeof ((f = A.samsung_pay) == null ? void 0 : f.save_card) != "boolean" && h("Samsung Pay save card option must be a boolean"), A.apple_pay.validate_merchant_url && !Le(A.apple_pay.validate_merchant_url) && iA("Apple Pay Validate Merchant URL"), (d = A.apple_pay) != null && d.merchant_capabilities && (Ft(A.apple_pay.merchant_capabilities, FA) || h(`Apple Pay merchant capabilities supports only ${FA.join(", ")}`)), (y = A.apple_pay) != null && y.supported_countries && !Array.isArray(A.apple_pay.supported_countries) && h("Apple Pay Supported Countries must be an array of country codes");
|
|
3657
3682
|
}
|
|
3658
3683
|
if (A.samsung_pay) {
|
|
3659
|
-
const
|
|
3660
|
-
!window.SamsungPay &&
|
|
3684
|
+
const C = A.samsung_pay.country || ((b = A.payment_options) == null ? void 0 : b.country), M = A.samsung_pay.label || ((v = A.payment_options) == null ? void 0 : v.label), k = A.samsung_pay.order_number, Q = A.publishable_api_key.startsWith("pk_test") || location.protocol === "http:";
|
|
3685
|
+
!window.SamsungPay && Q && console.warn(
|
|
3661
3686
|
"To speed up loading of Samsung Pay button you can include the Samsung Pay Web SDK JavaScript file in your website front-end directly. If there will be no Samsung Pay available on form initialization it will be loaded automatically"
|
|
3662
|
-
), A.samsung_pay.service_id || x("Samsung Pay service_id"), A.samsung_pay.service_id.trim().length === 0 &&
|
|
3687
|
+
), A.samsung_pay.service_id || x("Samsung Pay service_id"), A.samsung_pay.service_id.trim().length === 0 && h("Samsung Pay service_id can't be empty"), k || x("Samsung Pay order_number or Payment Options order_number"), (k == null ? void 0 : k.trim().length) === 0 && h("Order number can't be empty"), C || x("Samsung Pay country or Payment Options country"), (C == null ? void 0 : C.trim().length) !== 2 && h("Country must be two-letter ISO 3166 country code"), M || x("Samsung Pay label or Payment Options label"), (M == null ? void 0 : M.trim().length) === 0 && h("Samsung Pay label or Payment Options label can't be empty");
|
|
3663
3688
|
}
|
|
3664
3689
|
if (A.google_pay) {
|
|
3665
|
-
const
|
|
3666
|
-
!((
|
|
3690
|
+
const C = A.google_pay.country || ((m = A.payment_options) == null ? void 0 : m.country), M = A.google_pay.label || ((g = A.payment_options) == null ? void 0 : g.label), k = A.publishable_api_key.startsWith("pk_test") || location.protocol === "http:", Q = A.google_pay.environment;
|
|
3691
|
+
!((w = (D = window.google) == null ? void 0 : D.payments) != null && w.api) && k && console.warn(
|
|
3667
3692
|
"To speed up loading of Google Pay button you can include the Google Pay Web SDK JavaScript file in your website front-end directly. If there will be no Google Pay available on form initialization it will be loaded automatically"
|
|
3668
|
-
), A.google_pay.merchant_id || x("Google Pay service_id"), A.google_pay.merchant_id.trim().length === 0 &&
|
|
3669
|
-
const { auth_methods:
|
|
3670
|
-
|
|
3693
|
+
), A.google_pay.merchant_id || x("Google Pay service_id"), A.google_pay.merchant_id.trim().length === 0 && h("Google Pay service_id can't be empty"), C || x("Google Pay country or Payment Options country"), (C == null ? void 0 : C.trim().length) !== 2 && h("Country must be two-letter ISO 3166 country code"), M || x("Google Pay label or Payment Options label"), (M == null ? void 0 : M.trim().length) === 0 && h("Google Pay label or Payment Options label can't be empty"), Q && !["PRODUCTION", "TEST"].includes(Q) && h("Google Pay environment can be set to `TEST` or `PRODUCTION`");
|
|
3694
|
+
const { auth_methods: P } = A.google_pay;
|
|
3695
|
+
P && !Array.isArray(P) && h("Google Pay auth_methods must be an array"), P && !P.every((O) => O === "PAN_ONLY" || O === "CRYPTOGRAM_3DS") && h("Google Pay auth_methods must contain 'CRYPTOGRAM_3DS' and/or 'PAN_ONLY'");
|
|
3671
3696
|
}
|
|
3672
|
-
return A.supported_networks && (Ft(A.supported_networks, jA) ||
|
|
3673
|
-
},
|
|
3697
|
+
return A.supported_networks && (Ft(A.supported_networks, jA) || h(`Moyasar form supports only ${jA.join(", ")} networks`)), !0;
|
|
3698
|
+
}, Tr = (A) => (A.element || x("element"), typeof A.element != "string" && !(A.element instanceof Element) && iA("Element"), typeof A.element == "string" && !document.querySelector(A.element) && h(`Selector ${A.element} does't exist id DOM`), A.publishable_api_key.trim() || x("publishable_api_key"), A.publishable_api_key && (/^pk_(test|live)_/.test(A.publishable_api_key) || iA("Publishable API Key"), location.protocol.toLowerCase() === "http:" && A.publishable_api_key.startsWith("pk_live") && h(
|
|
3674
3699
|
"Production key (pk_live) require secure connection, for development use key starting with pk_test"
|
|
3675
|
-
)), A.amount || x("amount"), A.amount && ((typeof A.amount != "number" || A.amount < 100) &&
|
|
3700
|
+
)), A.amount || x("amount"), A.amount && ((typeof A.amount != "number" || A.amount < 100) && h("Amount must be a non-negative integer. Minimal supported value is 100."), Number.isInteger(A.amount) || h(
|
|
3676
3701
|
"Amount must be in minor unit of selected currency, e.g. for $19.99 set amount to 1999."
|
|
3677
|
-
)), A.currency || x("currency"), A.currency && A.currency.trim().length !== 3 &&
|
|
3702
|
+
)), A.currency || x("currency"), A.currency && A.currency.trim().length !== 3 && h("Currency must be in ISO 3166-1 alpha-3 country code format"), A.description || x("description"), A.description && A.description.trim().length === 0 && h("Description can't be empty"), A.callback_url || x("callback_url"), Le(A.callback_url) || iA("Callback URL"), !0), Qr = (A) => (A.use_payment_intent !== void 0 && typeof A.use_payment_intent != "boolean" && h("use_payment_intent must be a boolean"), A.payment_intent !== void 0 && ((typeof A.payment_intent != "object" || A.payment_intent === null) && h("payment_intent must be an object with an id and a client_secret"), (typeof A.payment_intent.id != "string" || !A.payment_intent.id.trim()) && h("payment_intent.id must be a non-empty string"), (typeof A.payment_intent.client_secret != "string" || !A.payment_intent.client_secret.trim()) && h("payment_intent.client_secret must be a non-empty string")), A.use_payment_intent === !0 && !A.payment_intent && !A.on_initiating && h(
|
|
3703
|
+
"use_payment_intent is enabled but no payment_intent was provided; supply payment_intent in the config or return it from on_initiating"
|
|
3704
|
+
), !0), h = (A) => {
|
|
3678
3705
|
throw window.silentError && console.error(A), new Error(A);
|
|
3679
|
-
}, x = (A) =>
|
|
3706
|
+
}, x = (A) => h(`Missing entry: ${A} is required`), iA = (A) => h(`${A} is invalid`), Le = (A) => typeof A == "string" && /^https?:\/\/.+/.test(A), $t = (A) => typeof A == "string" && /^[A-Za-z]{2}$/.test(A), Lr = (A, t = !1) => (t && (window.silentError = t), Tr(A), Xr(A), Pr(A), kr(A), Br(A), Qr(A), !0), _r = (A) => {
|
|
3680
3707
|
const t = A.publishable_api_key.startsWith("pk_test") || location.protocol === "http:", e = A.element;
|
|
3681
3708
|
let n;
|
|
3682
3709
|
if (typeof e == "string" && (n = document.querySelector(e)), e instanceof Element && (n = e), !n) {
|
|
@@ -3686,7 +3713,7 @@ const Sr = (A) => {
|
|
|
3686
3713
|
return;
|
|
3687
3714
|
}
|
|
3688
3715
|
try {
|
|
3689
|
-
|
|
3716
|
+
Lr(A, t);
|
|
3690
3717
|
} catch (r) {
|
|
3691
3718
|
console.error(r), Dt(/* @__PURE__ */ u(() => /* @__PURE__ */ u("div", { class: "mx-auto w-fit rounded-lg border-red-800 bg-red-500/20 p-4 font-mono text-sm leading-6", children: [
|
|
3692
3719
|
/* @__PURE__ */ u("h2", { class: "mb-4 text-center text-xl font-medium", children: "Form configuration issue!" }),
|
|
@@ -3695,29 +3722,29 @@ const Sr = (A) => {
|
|
|
3695
3722
|
] }), {}), n);
|
|
3696
3723
|
return;
|
|
3697
3724
|
}
|
|
3698
|
-
n.setAttribute("lang", A.language), Dt(/* @__PURE__ */ u(
|
|
3699
|
-
},
|
|
3700
|
-
let
|
|
3725
|
+
n.setAttribute("lang", A.language), Dt(/* @__PURE__ */ u(Cr, { config: A }), n);
|
|
3726
|
+
}, Nr = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
3727
|
+
let Ir = (A = 21) => {
|
|
3701
3728
|
let t = "", e = crypto.getRandomValues(new Uint8Array(A |= 0));
|
|
3702
3729
|
for (; A--; )
|
|
3703
|
-
t +=
|
|
3730
|
+
t += Nr[e[A] & 63];
|
|
3704
3731
|
return t;
|
|
3705
3732
|
};
|
|
3706
|
-
const
|
|
3707
|
-
const t =
|
|
3733
|
+
const Or = (A) => {
|
|
3734
|
+
const t = B({}, A);
|
|
3708
3735
|
return "show_footer" in A || (t.show_footer = !0), A.base_url || (t.base_url = "https://api.moyasar.com"), A.payment_button_type || (t.payment_button_type = "pay"), A.language || (t.language = document.documentElement.lang || "en"), A.methods || (t.methods = Xn), A.supported_networks || (t.supported_networks = jA.filter((e) => e !== "amex")), !A.fixed_width && A.fixed_width !== !1 && (t.fixed_width = !0), A.apple_pay && (A.apple_pay.version || (t.apple_pay.version = 6), A.apple_pay.merchant_capabilities || (t.apple_pay.merchant_capabilities = FA.filter(
|
|
3709
3736
|
(e) => e !== "supportsEMV"
|
|
3710
|
-
)), A.apple_pay.supported_countries || (t.apple_pay.supported_countries = ["SA"])), A.samsung_pay && (A.samsung_pay.version || (t.samsung_pay.version = 2), A.samsung_pay.environment || (t.samsung_pay.environment = "PRODUCTION")), A.google_pay && (A.google_pay.environment || (t.google_pay.environment = "PRODUCTION"), A.google_pay.auth_methods || (t.google_pay.auth_methods = ["PAN_ONLY", "CRYPTOGRAM_3DS"]), A.google_pay.gateway_merchant_id || (t.google_pay.gateway_merchant_id =
|
|
3737
|
+
)), A.apple_pay.supported_countries || (t.apple_pay.supported_countries = ["SA"])), A.samsung_pay && (A.samsung_pay.version || (t.samsung_pay.version = 2), A.samsung_pay.environment || (t.samsung_pay.environment = "PRODUCTION")), A.google_pay && (A.google_pay.environment || (t.google_pay.environment = "PRODUCTION"), A.google_pay.auth_methods || (t.google_pay.auth_methods = ["PAN_ONLY", "CRYPTOGRAM_3DS"]), A.google_pay.gateway_merchant_id || (t.google_pay.gateway_merchant_id = Ir(36))), t;
|
|
3711
3738
|
};
|
|
3712
|
-
class
|
|
3739
|
+
class Ur {
|
|
3713
3740
|
static init(t) {
|
|
3714
|
-
const e =
|
|
3715
|
-
|
|
3741
|
+
const e = Or(t);
|
|
3742
|
+
_r(e);
|
|
3716
3743
|
}
|
|
3717
3744
|
static setAmount(t) {
|
|
3718
|
-
nt ? nt((e) =>
|
|
3745
|
+
nt ? nt((e) => N(B({}, e), { amount: t })) : console.warn("Form not yet initialized.");
|
|
3719
3746
|
}
|
|
3720
3747
|
}
|
|
3721
3748
|
export {
|
|
3722
|
-
|
|
3749
|
+
Ur as default
|
|
3723
3750
|
};
|