moyasar-payment-form 2.2.1 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/moyasar.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: moyasar-payment-form
3
- * version: v2.2.1
3
+ * version: v2.2.3
4
4
  * description: Moyasar payment form utilities
5
5
  * author: Jan Jagieła - Railwaymen Team
6
6
  * homepage: https://docs.moyasar.com
@@ -16,7 +16,7 @@ var mt = Math.pow, pt = (A, t, e) => t in A ? Be(A, t, { enumerable: !0, configu
16
16
  for (var e of DA(t))
17
17
  dt.call(t, e) && pt(A, e, t[e]);
18
18
  return A;
19
- }, P = (A, t) => Se(A, Pe(t));
19
+ }, X = (A, t) => Se(A, Pe(t));
20
20
  var MA = (A, t) => {
21
21
  var e = {};
22
22
  for (var n in A)
@@ -42,7 +42,7 @@ var K = (A, t, e) => new Promise((n, r) => {
42
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 UA, k, Yt, rA, vt, Zt, Kt, Ht, nt, xA, VA, Rt, gA = {}, jt = [], Xe = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, yA = Array.isArray;
45
+ var UA, B, Yt, rA, vt, Zt, Kt, Ht, nt, xA, VA, Rt, gA = {}, jt = [], Xe = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, yA = Array.isArray;
46
46
  function tA(A, t) {
47
47
  for (var e in t) A[e] = t[e];
48
48
  return A;
@@ -58,7 +58,7 @@ function YA(A, t, e) {
58
58
  }
59
59
  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 ? ++Yt : r, __i: -1, __u: 0 };
61
- return r == null && k.vnode != null && k.vnode(a), a;
61
+ return r == null && B.vnode != null && B.vnode(a), a;
62
62
  }
63
63
  function $(A) {
64
64
  return A.children;
@@ -82,20 +82,20 @@ function Ft(A) {
82
82
  }
83
83
  }
84
84
  function ZA(A) {
85
- (!A.__d && (A.__d = !0) && rA.push(A) && !LA.__r++ || vt != k.debounceRendering) && ((vt = k.debounceRendering) || Zt)(LA);
85
+ (!A.__d && (A.__d = !0) && rA.push(A) && !LA.__r++ || vt != B.debounceRendering) && ((vt = B.debounceRendering) || Zt)(LA);
86
86
  }
87
87
  function LA() {
88
- for (var A, t, e, n, r, a, o, l = 1; rA.length; ) rA.length > l && rA.sort(Kt), A = rA.shift(), l = rA.length, A.__d && (e = void 0, r = (n = (t = A).__v).__e, a = [], o = [], t.__P && ((e = tA({}, n)).__v = n.__v + 1, k.vnode && k.vnode(e), at(t.__P, e, n, t.__n, t.__P.namespaceURI, 32 & n.__u ? [r] : null, a, r == null ? iA(n) : r, !!(32 & n.__u), o), e.__v = n.__v, e.__.__k[e.__i] = e, te(a, e, o), e.__e != r && Ft(e)));
88
+ for (var A, t, e, n, r, a, o, l = 1; rA.length; ) rA.length > l && rA.sort(Kt), A = rA.shift(), l = rA.length, A.__d && (e = void 0, r = (n = (t = A).__v).__e, a = [], o = [], t.__P && ((e = tA({}, n)).__v = n.__v + 1, B.vnode && B.vnode(e), at(t.__P, e, n, t.__n, t.__P.namespaceURI, 32 & n.__u ? [r] : null, a, r == null ? iA(n) : r, !!(32 & n.__u), o), e.__v = n.__v, e.__.__k[e.__i] = e, te(a, e, o), e.__e != r && Ft(e)));
89
89
  LA.__r = 0;
90
90
  }
91
91
  function $t(A, t, e, n, r, a, o, l, i, s, u) {
92
- var c, v, f, w, h, g, d = n && n.__k || jt, m = t.length;
93
- for (i = Qe(e, t, d, i, m), c = 0; c < m; c++) (f = e.__k[c]) != null && (v = f.__i == -1 ? gA : d[f.__i] || gA, f.__i = c, g = at(A, f, v, r, a, o, l, i, s, u), w = f.__e, f.ref && v.ref != f.ref && (v.ref && ot(v.ref, null, f), u.push(f.ref, f.__c || w, f)), h == null && w != null && (h = w), 4 & f.__u || v.__k === f.__k ? i = Ae(f, i, A) : typeof f.type == "function" && g !== void 0 ? i = g : w && (i = w.nextSibling), f.__u &= -7);
94
- return e.__e = h, i;
92
+ var c, m, f, w, y, v, d = n && n.__k || jt, g = t.length;
93
+ for (i = Qe(e, t, d, i, g), c = 0; c < g; c++) (f = e.__k[c]) != null && (m = f.__i == -1 ? gA : d[f.__i] || gA, f.__i = c, v = at(A, f, m, r, a, o, l, i, s, u), w = f.__e, f.ref && m.ref != f.ref && (m.ref && ot(m.ref, null, f), u.push(f.ref, f.__c || w, f)), y == null && w != null && (y = w), 4 & f.__u || m.__k === f.__k ? i = Ae(f, i, A) : typeof f.type == "function" && v !== void 0 ? i = v : w && (i = w.nextSibling), f.__u &= -7);
94
+ return e.__e = y, i;
95
95
  }
96
96
  function Qe(A, t, e, n, r) {
97
- var a, o, l, i, s, u = e.length, c = u, v = 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 + v, (o = A.__k[a] = typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? XA(null, o, null, null, null) : yA(o) ? XA($, { 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 = Te(o, e, i, c)) != -1 && (c--, (l = e[s]) && (l.__u |= 2)), l == null || l.__v == null ? (s == -1 && (r > u ? v-- : r < u && v++), typeof o.type != "function" && (o.__u |= 4)) : s != i && (s == i - 1 ? v-- : s == i + 1 ? v++ : (s > i ? v-- : v++, o.__u |= 4))) : A.__k[a] = null;
97
+ var a, o, l, i, s, u = e.length, c = u, m = 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 + m, (o = A.__k[a] = typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? XA(null, o, null, null, null) : yA(o) ? XA($, { 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 = Te(o, e, i, c)) != -1 && (c--, (l = e[s]) && (l.__u |= 2)), l == null || l.__v == null ? (s == -1 && (r > u ? m-- : r < u && m++), typeof o.type != "function" && (o.__u |= 4)) : s != i && (s == i - 1 ? m-- : s == i + 1 ? m++ : (s > i ? m-- : m++, o.__u |= 4))) : A.__k[a] = null;
99
99
  if (c) for (a = 0; a < u; a++) (l = e[a]) != null && !(2 & l.__u) && (l.__e == n && (n = iA(l)), ne(l, l));
100
100
  return n;
101
101
  }
@@ -158,55 +158,55 @@ function ht(A) {
158
158
  var e = this.l[t.type + A];
159
159
  if (t.t == null) t.t = nt++;
160
160
  else if (t.t < e.u) return;
161
- return e(k.event ? k.event(t) : t);
161
+ return e(B.event ? B.event(t) : t);
162
162
  }
163
163
  };
164
164
  }
165
165
  function at(A, t, e, n, r, a, o, l, i, s) {
166
- var u, c, v, f, w, h, g, d, m, b, y, C, M, T, q, I, B, X = t.type;
166
+ var u, c, m, f, w, y, v, d, g, D, b, h, C, P, O, L, k, Q = t.type;
167
167
  if (t.constructor != null) return null;
168
- 128 & e.__u && (i = !!(32 & e.__u), a = [l = t.__e = e.__e]), (u = k.__b) && u(t);
169
- A: if (typeof X == "function") try {
170
- if (d = t.props, m = "prototype" in X && X.prototype.render, b = (u = X.contextType) && n[u.__c], y = u ? b ? b.props.value : u.__ : n, e.__c ? g = (c = t.__c = e.__c).__ = c.__E : (m ? t.__c = c = new X(d, y) : (t.__c = c = new F(d, y), c.constructor = X, c.render = Ne), b && b.sub(c), c.props = d, c.state || (c.state = {}), c.context = y, c.__n = n, v = c.__d = !0, c.__h = [], c._sb = []), m && c.__s == null && (c.__s = c.state), m && X.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = tA({}, c.__s)), tA(c.__s, X.getDerivedStateFromProps(d, c.__s))), f = c.props, w = c.state, c.__v = t, v) m && X.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), m && c.componentDidMount != null && c.__h.push(c.componentDidMount);
168
+ 128 & e.__u && (i = !!(32 & e.__u), a = [l = t.__e = e.__e]), (u = B.__b) && u(t);
169
+ A: if (typeof Q == "function") try {
170
+ if (d = t.props, g = "prototype" in Q && Q.prototype.render, D = (u = Q.contextType) && n[u.__c], b = u ? D ? D.props.value : u.__ : n, e.__c ? v = (c = t.__c = e.__c).__ = c.__E : (g ? t.__c = c = new Q(d, b) : (t.__c = c = new F(d, b), c.constructor = Q, c.render = Ne), D && D.sub(c), c.props = d, c.state || (c.state = {}), c.context = b, c.__n = n, m = c.__d = !0, c.__h = [], c._sb = []), g && c.__s == null && (c.__s = c.state), g && Q.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = tA({}, c.__s)), tA(c.__s, Q.getDerivedStateFromProps(d, c.__s))), f = c.props, w = c.state, c.__v = t, m) g && Q.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), g && c.componentDidMount != null && c.__h.push(c.componentDidMount);
171
171
  else {
172
- if (m && X.getDerivedStateFromProps == null && d !== f && c.componentWillReceiveProps != null && c.componentWillReceiveProps(d, y), !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(d, c.__s, y) === !1 || t.__v == e.__v) {
173
- for (t.__v != e.__v && (c.props = d, c.state = c.__s, c.__d = !1), t.__e = e.__e, t.__k = e.__k, t.__k.some(function(E) {
174
- E && (E.__ = t);
175
- }), C = 0; C < c._sb.length; C++) c.__h.push(c._sb[C]);
172
+ if (g && Q.getDerivedStateFromProps == null && d !== f && c.componentWillReceiveProps != null && c.componentWillReceiveProps(d, b), !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(d, c.__s, b) === !1 || t.__v == e.__v) {
173
+ for (t.__v != e.__v && (c.props = d, c.state = c.__s, c.__d = !1), t.__e = e.__e, t.__k = e.__k, t.__k.some(function(J) {
174
+ J && (J.__ = t);
175
+ }), h = 0; h < c._sb.length; h++) c.__h.push(c._sb[h]);
176
176
  c._sb = [], c.__h.length && o.push(c);
177
177
  break A;
178
178
  }
179
- c.componentWillUpdate != null && c.componentWillUpdate(d, c.__s, y), m && c.componentDidUpdate != null && c.__h.push(function() {
180
- c.componentDidUpdate(f, w, h);
179
+ c.componentWillUpdate != null && c.componentWillUpdate(d, c.__s, b), g && c.componentDidUpdate != null && c.__h.push(function() {
180
+ c.componentDidUpdate(f, w, y);
181
181
  });
182
182
  }
183
- if (c.context = y, c.props = d, c.__P = A, c.__e = !1, M = k.__r, T = 0, m) {
184
- for (c.state = c.__s, c.__d = !1, M && M(t), u = c.render(c.props, c.state, c.context), q = 0; q < c._sb.length; q++) c.__h.push(c._sb[q]);
183
+ if (c.context = b, c.props = d, c.__P = A, c.__e = !1, C = B.__r, P = 0, g) {
184
+ for (c.state = c.__s, c.__d = !1, C && C(t), u = c.render(c.props, c.state, c.context), O = 0; O < c._sb.length; O++) c.__h.push(c._sb[O]);
185
185
  c._sb = [];
186
186
  } else do
187
- c.__d = !1, M && M(t), u = c.render(c.props, c.state, c.context), c.state = c.__s;
188
- while (c.__d && ++T < 25);
189
- c.state = c.__s, c.getChildContext != null && (n = tA(tA({}, n), c.getChildContext())), m && !v && c.getSnapshotBeforeUpdate != null && (h = c.getSnapshotBeforeUpdate(f, w)), I = u, u != null && u.type === $ && u.key == null && (I = ee(u.props.children)), l = $t(A, yA(I) ? I : [I], t, e, n, r, a, o, l, i, s), c.base = t.__e, t.__u &= -161, c.__h.length && o.push(c), g && (c.__E = c.__ = null);
190
- } catch (E) {
191
- if (t.__v = null, i || a != null) if (E.then) {
187
+ c.__d = !1, C && C(t), u = c.render(c.props, c.state, c.context), c.state = c.__s;
188
+ while (c.__d && ++P < 25);
189
+ c.state = c.__s, c.getChildContext != null && (n = tA(tA({}, n), c.getChildContext())), g && !m && c.getSnapshotBeforeUpdate != null && (y = c.getSnapshotBeforeUpdate(f, w)), L = u, u != null && u.type === $ && u.key == null && (L = ee(u.props.children)), l = $t(A, yA(L) ? L : [L], 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 (J) {
191
+ if (t.__v = null, i || a != null) if (J.then) {
192
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 (B = a.length; B--; ) rt(a[B]);
194
+ } else for (k = a.length; k--; ) rt(a[k]);
195
195
  else t.__e = e.__e, t.__k = e.__k;
196
- k.__e(E, t, e);
196
+ B.__e(J, t, e);
197
197
  }
198
198
  else a == null && t.__v == e.__v ? (t.__k = e.__k, t.__e = e.__e) : l = t.__e = Le(e.__e, t, e, n, r, a, o, i, s);
199
- return (u = k.diffed) && u(t), 128 & t.__u ? void 0 : l;
199
+ return (u = B.diffed) && u(t), 128 & t.__u ? void 0 : l;
200
200
  }
201
201
  function te(A, t, e) {
202
202
  for (var n = 0; n < e.length; n++) ot(e[n], e[++n], e[++n]);
203
- k.__c && k.__c(t, A), A.some(function(r) {
203
+ B.__c && B.__c(t, A), A.some(function(r) {
204
204
  try {
205
205
  A = r.__h, r.__h = [], A.some(function(a) {
206
206
  a.call(r);
207
207
  });
208
208
  } catch (a) {
209
- k.__e(a, r.__v);
209
+ B.__e(a, r.__v);
210
210
  }
211
211
  });
212
212
  }
@@ -214,31 +214,31 @@ function ee(A) {
214
214
  return typeof A != "object" || A == null || A.__b && A.__b > 0 ? A : yA(A) ? A.map(ee) : tA({}, A);
215
215
  }
216
216
  function Le(A, t, e, n, r, a, o, l, i) {
217
- var s, u, c, v, f, w, h, g = e.props, d = t.props, m = t.type;
218
- if (m == "svg" ? r = "http://www.w3.org/2000/svg" : m == "math" ? r = "http://www.w3.org/1998/Math/MathML" : r || (r = "http://www.w3.org/1999/xhtml"), a != null) {
219
- for (s = 0; s < a.length; s++) if ((f = a[s]) && "setAttribute" in f == !!m && (m ? f.localName == m : f.nodeType == 3)) {
217
+ var s, u, c, m, f, w, y, v = e.props, d = t.props, g = t.type;
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
+ for (s = 0; s < a.length; s++) if ((f = a[s]) && "setAttribute" in f == !!g && (g ? f.localName == g : f.nodeType == 3)) {
220
220
  A = f, a[s] = null;
221
221
  break;
222
222
  }
223
223
  }
224
224
  if (A == null) {
225
- if (m == null) return document.createTextNode(d);
226
- A = document.createElementNS(r, m, d.is && d), l && (k.__m && k.__m(t, a), l = !1), a = null;
225
+ if (g == null) return document.createTextNode(d);
226
+ A = document.createElementNS(r, g, d.is && d), l && (B.__m && B.__m(t, a), l = !1), a = null;
227
227
  }
228
- if (m == null) g === d || l && A.data == d || (A.data = d);
228
+ if (g == null) v === d || l && A.data == d || (A.data = d);
229
229
  else {
230
- if (a = a && UA.call(A.childNodes), g = e.props || gA, !l && a != null) for (g = {}, s = 0; s < A.attributes.length; s++) g[(f = A.attributes[s]).name] = f.value;
231
- for (s in g) if (f = g[s], s != "children") {
230
+ if (a = a && UA.call(A.childNodes), v = e.props || gA, !l && a != null) for (v = {}, s = 0; s < A.attributes.length; s++) v[(f = A.attributes[s]).name] = f.value;
231
+ for (s in v) if (f = v[s], s != "children") {
232
232
  if (s == "dangerouslySetInnerHTML") c = f;
233
233
  else if (!(s in d)) {
234
234
  if (s == "value" && "defaultValue" in d || s == "checked" && "defaultChecked" in d) continue;
235
235
  kA(A, s, null, f, r);
236
236
  }
237
237
  }
238
- for (s in d) f = d[s], s == "children" ? v = f : s == "dangerouslySetInnerHTML" ? u = f : s == "value" ? w = f : s == "checked" ? h = f : l && typeof f != "function" || g[s] === f || kA(A, s, f, g[s], r);
238
+ for (s in d) f = d[s], s == "children" ? m = f : s == "dangerouslySetInnerHTML" ? u = f : s == "value" ? w = f : s == "checked" ? y = f : l && typeof f != "function" || v[s] === f || kA(A, s, f, v[s], r);
239
239
  if (u) l || c && (u.__html == c.__html || u.__html == A.innerHTML) || (A.innerHTML = u.__html), t.__k = [];
240
- else if (c && (A.innerHTML = ""), $t(t.type == "template" ? A.content : A, yA(v) ? v : [v], t, e, n, m == "foreignObject" ? "http://www.w3.org/1999/xhtml" : r, a, o, a ? a[0] : e.__k && iA(e, 0), l, i), a != null) for (s = a.length; s--; ) rt(a[s]);
241
- l || (s = "value", m == "progress" && w == null ? A.removeAttribute("value") : w != null && (w !== A[s] || m == "progress" && !w || m == "option" && w != g[s]) && kA(A, s, w, g[s], r), s = "checked", h != null && h != A[s] && kA(A, s, h, g[s], r));
240
+ else if (c && (A.innerHTML = ""), $t(t.type == "template" ? A.content : A, yA(m) ? m : [m], t, e, n, g == "foreignObject" ? "http://www.w3.org/1999/xhtml" : r, a, o, a ? a[0] : e.__k && iA(e, 0), l, i), a != null) for (s = a.length; s--; ) rt(a[s]);
241
+ l || (s = "value", g == "progress" && w == null ? A.removeAttribute("value") : w != null && (w !== A[s] || g == "progress" && !w || g == "option" && w != v[s]) && kA(A, s, w, v[s], r), s = "checked", y != null && y != A[s] && kA(A, s, y, v[s], r));
242
242
  }
243
243
  return A;
244
244
  }
@@ -249,16 +249,16 @@ function ot(A, t, e) {
249
249
  n && A.__u(), n && t == null || (A.__u = A(t));
250
250
  } else A.current = t;
251
251
  } catch (r) {
252
- k.__e(r, e);
252
+ B.__e(r, e);
253
253
  }
254
254
  }
255
255
  function ne(A, t, e) {
256
256
  var n, r;
257
- if (k.unmount && k.unmount(A), (n = A.ref) && (n.current && n.current != A.__e || ot(n, null, t)), (n = A.__c) != null) {
257
+ if (B.unmount && B.unmount(A), (n = A.ref) && (n.current && n.current != A.__e || ot(n, null, t)), (n = A.__c) != null) {
258
258
  if (n.componentWillUnmount) try {
259
259
  n.componentWillUnmount();
260
260
  } catch (a) {
261
- k.__e(a, t);
261
+ B.__e(a, t);
262
262
  }
263
263
  n.base = n.__P = null;
264
264
  }
@@ -270,7 +270,7 @@ function Ne(A, t, e) {
270
270
  }
271
271
  function yt(A, t, e) {
272
272
  var n, r, a, o;
273
- t == document && (t = document.documentElement), k.__ && k.__(A, t), r = (n = !1) ? null : t.__k, a = [], o = [], at(t, A = t.__k = YA($, null, [A]), r || gA, gA, t.namespaceURI, r ? null : t.firstChild ? UA.call(t.childNodes) : null, a, r ? r.__e : t.firstChild, n, o), te(a, A, o);
273
+ t == document && (t = document.documentElement), B.__ && B.__(A, t), r = (n = !1) ? null : t.__k, a = [], o = [], at(t, A = t.__k = YA($, null, [A]), r || gA, gA, t.namespaceURI, r ? null : t.firstChild ? UA.call(t.childNodes) : null, a, r ? r.__e : t.firstChild, n, o), te(a, A, o);
274
274
  }
275
275
  function lt(A) {
276
276
  function t(e) {
@@ -295,7 +295,7 @@ function lt(A) {
295
295
  return e.children(n);
296
296
  }).contextType = t, t;
297
297
  }
298
- UA = jt.slice, k = { __e: function(A, t, e, n) {
298
+ UA = jt.slice, B = { __e: function(A, t, e, n) {
299
299
  for (var r, a, o; t = t.__; ) if ((r = t.__c) && !r.__) try {
300
300
  if ((a = r.constructor) && a.getDerivedStateFromError != null && (r.setState(a.getDerivedStateFromError(A)), o = r.__d), r.componentDidCatch != null && (r.componentDidCatch(A, n || {}), o = r.__d), o) return r.__E = r;
301
301
  } catch (l) {
@@ -317,55 +317,55 @@ function p(A, t, e, n, r, a) {
317
317
  if ("ref" in i) for (l in i = {}, t) l == "ref" ? o = t[l] : i[l] = t[l];
318
318
  var s = { type: A, props: i, key: e, ref: o, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Ie, __i: -1, __u: 0, __source: r, __self: a };
319
319
  if (typeof A == "function" && (o = A.defaultProps)) for (l in o) i[l] === void 0 && (i[l] = o[l]);
320
- return k.vnode && k.vnode(s), s;
320
+ return B.vnode && B.vnode(s), s;
321
321
  }
322
- const st = "2.2.1", W = lt({});
323
- var cA, N, WA, wt, hA = 0, re = [], z = k, bt = z.__b, Ct = z.__r, Dt = z.diffed, Mt = z.__c, kt = z.unmount, Bt = z.__;
324
- function zA(A, t) {
325
- z.__h && z.__h(N, A, hA || t), hA = 0;
326
- var e = N.__H || (N.__H = { __: [], __h: [] });
322
+ const st = "2.2.3", q = lt({});
323
+ var cA, I, WA, wt, hA = 0, re = [], z = B, bt = z.__b, Ct = z.__r, Dt = z.diffed, Mt = z.__c, kt = z.unmount, Bt = z.__;
324
+ function _A(A, t) {
325
+ z.__h && z.__h(I, A, hA || t), hA = 0;
326
+ var e = I.__H || (I.__H = { __: [], __h: [] });
327
327
  return A >= e.__.length && e.__.push({}), e.__[A];
328
328
  }
329
- function L(A) {
329
+ function N(A) {
330
330
  return hA = 1, Oe(le, A);
331
331
  }
332
332
  function Oe(A, t, e) {
333
- var n = zA(cA++, 2);
333
+ var n = _A(cA++, 2);
334
334
  if (n.t = A, !n.__c && (n.__ = [e ? e(t) : le(void 0, t), function(l) {
335
335
  var i = n.__N ? n.__N[0] : n.__[0], s = n.t(i, l);
336
336
  i !== s && (n.__N = [s, n.__[1]], n.__c.setState({}));
337
- }], n.__c = N, !N.__f)) {
337
+ }], n.__c = I, !I.__f)) {
338
338
  var r = function(l, i, s) {
339
339
  if (!n.__c.__H) return !0;
340
- var u = n.__c.__H.__.filter(function(v) {
341
- return !!v.__c;
340
+ var u = n.__c.__H.__.filter(function(m) {
341
+ return !!m.__c;
342
342
  });
343
- if (u.every(function(v) {
344
- return !v.__N;
343
+ if (u.every(function(m) {
344
+ return !m.__N;
345
345
  })) return !a || a.call(this, l, i, s);
346
346
  var c = n.__c.props !== l;
347
- return u.forEach(function(v) {
348
- if (v.__N) {
349
- var f = v.__[0];
350
- v.__ = v.__N, v.__N = void 0, f !== v.__[0] && (c = !0);
347
+ return u.forEach(function(m) {
348
+ if (m.__N) {
349
+ var f = m.__[0];
350
+ m.__ = m.__N, m.__N = void 0, f !== m.__[0] && (c = !0);
351
351
  }
352
352
  }), a && a.call(this, l, i, s) || c;
353
353
  };
354
- N.__f = !0;
355
- var a = N.shouldComponentUpdate, o = N.componentWillUpdate;
356
- N.componentWillUpdate = function(l, i, s) {
354
+ I.__f = !0;
355
+ var a = I.shouldComponentUpdate, o = I.componentWillUpdate;
356
+ I.componentWillUpdate = function(l, i, s) {
357
357
  if (this.__e) {
358
358
  var u = a;
359
359
  a = void 0, r(l, i, s), a = u;
360
360
  }
361
361
  o && o.call(this, l, i, s);
362
- }, N.shouldComponentUpdate = r;
362
+ }, I.shouldComponentUpdate = r;
363
363
  }
364
364
  return n.__N || n.__;
365
365
  }
366
366
  function V(A, t) {
367
- var e = zA(cA++, 3);
368
- !z.__s && oe(e.__H, t) && (e.__ = A, e.u = t, N.__H.__h.push(e));
367
+ var e = _A(cA++, 3);
368
+ !z.__s && oe(e.__H, t) && (e.__ = A, e.u = t, I.__H.__h.push(e));
369
369
  }
370
370
  function j(A) {
371
371
  return hA = 5, oA(function() {
@@ -373,7 +373,7 @@ function j(A) {
373
373
  }, []);
374
374
  }
375
375
  function oA(A, t) {
376
- var e = zA(cA++, 7);
376
+ var e = _A(cA++, 7);
377
377
  return oe(e.__H, t) && (e.__ = A(), e.__H = t, e.__h = A), e.__;
378
378
  }
379
379
  function ae(A, t) {
@@ -381,9 +381,9 @@ function ae(A, t) {
381
381
  return A;
382
382
  }, t);
383
383
  }
384
- function O(A) {
385
- var t = N.context[A.__c], e = zA(cA++, 9);
386
- return e.c = A, t ? (e.__ == null && (e.__ = !0, t.sub(N)), t.props.value) : A.__;
384
+ function U(A) {
385
+ var t = I.context[A.__c], e = _A(cA++, 9);
386
+ return e.c = A, t ? (e.__ == null && (e.__ = !0, t.sub(I)), t.props.value) : A.__;
387
387
  }
388
388
  function Ue() {
389
389
  for (var A; A = re.shift(); ) if (A.__P && A.__H) try {
@@ -393,21 +393,21 @@ function Ue() {
393
393
  }
394
394
  }
395
395
  z.__b = function(A) {
396
- N = null, bt && bt(A);
396
+ I = null, bt && bt(A);
397
397
  }, z.__ = function(A, t) {
398
398
  A && t.__k && t.__k.__m && (A.__m = t.__k.__m), Bt && Bt(A, t);
399
399
  }, z.__r = function(A) {
400
400
  Ct && Ct(A), cA = 0;
401
- var t = (N = A.__c).__H;
402
- t && (WA === N ? (t.__h = [], N.__h = [], t.__.forEach(function(e) {
401
+ var t = (I = A.__c).__H;
402
+ t && (WA === I ? (t.__h = [], I.__h = [], t.__.forEach(function(e) {
403
403
  e.__N && (e.__ = e.__N), e.u = e.__N = void 0;
404
- })) : (t.__h.forEach(QA), t.__h.forEach(KA), t.__h = [], cA = 0)), WA = N;
404
+ })) : (t.__h.forEach(QA), t.__h.forEach(KA), t.__h = [], cA = 0)), WA = I;
405
405
  }, z.diffed = function(A) {
406
406
  Dt && Dt(A);
407
407
  var t = A.__c;
408
- t && t.__H && (t.__H.__h.length && (re.push(t) !== 1 && wt === z.requestAnimationFrame || ((wt = z.requestAnimationFrame) || ze)(Ue)), t.__H.__.forEach(function(e) {
408
+ t && t.__H && (t.__H.__h.length && (re.push(t) !== 1 && wt === z.requestAnimationFrame || ((wt = z.requestAnimationFrame) || _e)(Ue)), t.__H.__.forEach(function(e) {
409
409
  e.u && (e.__H = e.u), e.u = void 0;
410
- })), WA = N = null;
410
+ })), WA = I = null;
411
411
  }, z.__c = function(A, t) {
412
412
  t.some(function(e) {
413
413
  try {
@@ -432,19 +432,19 @@ z.__b = function(A) {
432
432
  }), e.__H = void 0, t && z.__e(t, e.__v));
433
433
  };
434
434
  var St = typeof requestAnimationFrame == "function";
435
- function ze(A) {
435
+ function _e(A) {
436
436
  var t, e = function() {
437
437
  clearTimeout(n), St && cancelAnimationFrame(t), setTimeout(A);
438
438
  }, n = setTimeout(e, 35);
439
439
  St && (t = requestAnimationFrame(e));
440
440
  }
441
441
  function QA(A) {
442
- var t = N, e = A.__c;
443
- typeof e == "function" && (A.__c = void 0, e()), N = t;
442
+ var t = I, e = A.__c;
443
+ typeof e == "function" && (A.__c = void 0, e()), I = t;
444
444
  }
445
445
  function KA(A) {
446
- var t = N;
447
- A.__c = A.__(), N = t;
446
+ var t = I;
447
+ A.__c = A.__(), I = t;
448
448
  }
449
449
  function oe(A, t) {
450
450
  return !A || A.length !== t.length || t.some(function(e, n) {
@@ -455,7 +455,7 @@ function le(A, t) {
455
455
  return typeof t == "function" ? t(A) : t;
456
456
  }
457
457
  function Y() {
458
- const { language: A, translations: t } = O(W);
458
+ const { language: A, translations: t } = U(q);
459
459
  function e(n) {
460
460
  if (!t)
461
461
  return n;
@@ -466,7 +466,7 @@ function Y() {
466
466
  t: e
467
467
  };
468
468
  }
469
- function _e() {
469
+ function ze() {
470
470
  return /* @__PURE__ */ p(
471
471
  "svg",
472
472
  {
@@ -558,9 +558,9 @@ function _e() {
558
558
  );
559
559
  }
560
560
  const Ge = () => {
561
- const { t: A } = Y(), { isTestMode: t, show_footer: e } = O(W);
561
+ const { t: A } = Y(), { isTestMode: t, show_footer: e } = U(q);
562
562
  return /* @__PURE__ */ p("div", { className: "mt-2 flex w-full flex-col items-center justify-center gap-5 text-xs", children: [
563
- /* @__PURE__ */ p("a", { href: `https://moyasar.com/?ref=payment-form-v${st}`, children: e && /* @__PURE__ */ p(_e, {}) }),
563
+ /* @__PURE__ */ p("a", { href: `https://moyasar.com/?ref=payment-form-v${st}`, children: e && /* @__PURE__ */ p(ze, {}) }),
564
564
  t && /* @__PURE__ */ p("span", { class: "text-red-600", children: A("common.test_mode_disclaimer") })
565
565
  ] });
566
566
  }, Ee = {
@@ -738,24 +738,24 @@ const nA = (...A) => xe(A), HA = (A) => {
738
738
  "busy",
739
739
  "fail",
740
740
  "success"
741
- ]), { isProcessing: u } = O(W), c = {
741
+ ]), { isProcessing: u } = U(q), c = {
742
742
  primary: "bg-primary text-white",
743
743
  stc: "bg-stc text-white",
744
744
  error: "bg-error text-white pointer-events-none",
745
745
  success: "bg-success text-white"
746
746
  };
747
- function v() {
747
+ function m() {
748
748
  return l ? c.error : i ? c.success : c[n];
749
749
  }
750
750
  return /* @__PURE__ */ p(
751
751
  "button",
752
- P(S({}, s), {
752
+ X(S({}, s), {
753
753
  type: e,
754
754
  disabled: u || a,
755
755
  onClick: r,
756
756
  class: nA([
757
757
  "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",
758
- v(),
758
+ m(),
759
759
  A.class,
760
760
  u && !l && "pointer-events-none grayscale"
761
761
  ]),
@@ -854,10 +854,10 @@ const nA = (...A) => xe(A), HA = (A) => {
854
854
  /* @__PURE__ */ p(Ze, { currency: A }),
855
855
  /* @__PURE__ */ p("span", { children: t })
856
856
  ] }), pA = (A) => {
857
- const i = A, { name: t, placeholder: e, type: n = "text", onBlur: r, disabled: a } = i, o = MA(i, ["name", "placeholder", "type", "onBlur", "disabled"]), { isProcessing: l } = O(W);
857
+ const i = A, { name: t, placeholder: e, type: n = "text", onBlur: r, disabled: a } = i, o = MA(i, ["name", "placeholder", "type", "onBlur", "disabled"]), { isProcessing: l } = U(q);
858
858
  return /* @__PURE__ */ p(
859
859
  "input",
860
- P(S({}, o), {
860
+ X(S({}, o), {
861
861
  dir: "ltr",
862
862
  id: t,
863
863
  name: t,
@@ -892,18 +892,18 @@ function Xt(A, t) {
892
892
  (Xt.prototype = new F()).isPureReactComponent = !0, Xt.prototype.shouldComponentUpdate = function(A, t) {
893
893
  return Pt(this.props, A) || Pt(this.state, t);
894
894
  };
895
- var Qt = k.__b;
896
- k.__b = function(A) {
895
+ var Qt = B.__b;
896
+ B.__b = function(A) {
897
897
  A.type && A.type.__f && A.ref && (A.props.ref = A.ref, A.ref = null), Qt && Qt(A);
898
898
  };
899
- var He = k.__e;
900
- k.__e = function(A, t, e, n) {
899
+ var He = B.__e;
900
+ B.__e = function(A, t, e, n) {
901
901
  if (A.then) {
902
902
  for (var r, a = t; a = a.__; ) if ((r = a.__c) && r.__c) return t.__e == null && (t.__e = e.__e, t.__k = e.__k), r.__c(A, t);
903
903
  }
904
904
  He(A, t, e, n);
905
905
  };
906
- var Tt = k.unmount;
906
+ var Tt = B.unmount;
907
907
  function ce(A, t, e) {
908
908
  return A && (A.__c && A.__c.__H && (A.__c.__H.__.forEach(function(n) {
909
909
  typeof n.__c == "function" && n.__c();
@@ -926,7 +926,7 @@ function pe(A) {
926
926
  function BA() {
927
927
  this.i = null, this.l = null;
928
928
  }
929
- k.unmount = function(A) {
929
+ B.unmount = function(A) {
930
930
  var t = A.__c;
931
931
  t && t.__R && t.__R(), t && 32 & A.__u && (A.type = null), Tt && Tt(A);
932
932
  }, (qA.prototype = new F()).__c = function(A, t) {
@@ -997,7 +997,7 @@ F.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveP
997
997
  Object.defineProperty(this, A, { configurable: !0, writable: !0, value: t });
998
998
  } });
999
999
  });
1000
- var Nt = k.event;
1000
+ var Nt = B.event;
1001
1001
  function en() {
1002
1002
  }
1003
1003
  function nn() {
@@ -1006,13 +1006,13 @@ function nn() {
1006
1006
  function rn() {
1007
1007
  return this.defaultPrevented;
1008
1008
  }
1009
- k.event = function(A) {
1009
+ B.event = function(A) {
1010
1010
  return Nt && (A = Nt(A)), A.persist = en, A.isPropagationStopped = nn, A.isDefaultPrevented = rn, A.nativeEvent = A;
1011
1011
  };
1012
1012
  var an = { enumerable: !1, configurable: !0, get: function() {
1013
1013
  return this.class;
1014
- } }, It = k.vnode;
1015
- k.vnode = function(A) {
1014
+ } }, It = B.vnode;
1015
+ B.vnode = function(A) {
1016
1016
  typeof A.type == "string" && function(t) {
1017
1017
  var e = t.props, n = t.type, r = {}, a = n.indexOf("-") === -1;
1018
1018
  for (var o in e) {
@@ -1029,74 +1029,74 @@ k.vnode = function(A) {
1029
1029
  })), e.class && !e.className ? (r.class = e.class, Object.defineProperty(r, "className", an)) : (e.className && !e.class || e.class && e.className) && (r.class = r.className = e.className), t.props = r;
1030
1030
  }(A), A.$$typeof = Re, It && It(A);
1031
1031
  };
1032
- var Ot = k.__r;
1033
- k.__r = function(A) {
1032
+ var Ot = B.__r;
1033
+ B.__r = function(A) {
1034
1034
  Ot && Ot(A), A.__c;
1035
1035
  };
1036
- var Ut = k.diffed;
1037
- k.diffed = function(A) {
1036
+ var Ut = B.diffed;
1037
+ B.diffed = function(A) {
1038
1038
  Ut && Ut(A);
1039
1039
  var t = A.props, e = A.__e;
1040
1040
  e != null && A.type === "textarea" && "value" in t && t.value !== e.value && (e.value = t.value == null ? "" : t.value);
1041
1041
  };
1042
1042
  function fA(A, t, e, n) {
1043
- var r = this, a = j(null), o = j(0), l = j(0), i = j(null), s = j([]), u = j(), c = j(), v = j(A), f = j(!0);
1044
- v.current = A;
1045
- var w = typeof window != "undefined", h = !t && t !== 0 && w;
1043
+ var r = this, a = j(null), o = j(0), l = j(0), i = j(null), s = j([]), u = j(), c = j(), m = j(A), f = j(!0);
1044
+ m.current = A;
1045
+ var w = typeof window != "undefined", y = !t && t !== 0 && w;
1046
1046
  if (typeof A != "function") throw new TypeError("Expected a function");
1047
1047
  t = +t || 0;
1048
- var g = !!(e = e || {}).leading, d = !("trailing" in e) || !!e.trailing, m = "maxWait" in e, b = "debounceOnServer" in e && !!e.debounceOnServer, y = m ? Math.max(+e.maxWait || 0, t) : null;
1048
+ var v = !!(e = e || {}).leading, d = !("trailing" in e) || !!e.trailing, g = "maxWait" in e, D = "debounceOnServer" in e && !!e.debounceOnServer, b = g ? Math.max(+e.maxWait || 0, t) : null;
1049
1049
  V(function() {
1050
1050
  return f.current = !0, function() {
1051
1051
  f.current = !1;
1052
1052
  };
1053
1053
  }, []);
1054
- var C = oA(function() {
1055
- var M = function(U) {
1056
- var _ = s.current, AA = u.current;
1057
- return s.current = u.current = null, o.current = U, l.current = l.current || U, c.current = v.current.apply(AA, _);
1058
- }, T = function(U, _) {
1059
- h && cancelAnimationFrame(i.current), i.current = h ? requestAnimationFrame(U) : setTimeout(U, _);
1060
- }, q = function(U) {
1054
+ var h = oA(function() {
1055
+ var C = function(_) {
1056
+ var G = s.current, AA = u.current;
1057
+ return s.current = u.current = null, o.current = _, l.current = l.current || _, c.current = m.current.apply(AA, G);
1058
+ }, P = function(_, G) {
1059
+ y && cancelAnimationFrame(i.current), i.current = y ? requestAnimationFrame(_) : setTimeout(_, G);
1060
+ }, O = function(_) {
1061
1061
  if (!f.current) return !1;
1062
- var _ = U - a.current;
1063
- return !a.current || _ >= t || _ < 0 || m && U - o.current >= y;
1064
- }, I = function(U) {
1065
- return i.current = null, d && s.current ? M(U) : (s.current = u.current = null, c.current);
1066
- }, B = function U() {
1067
- var _ = Date.now();
1068
- if (g && l.current === o.current && X(), q(_)) return I(_);
1062
+ var G = _ - a.current;
1063
+ return !a.current || G >= t || G < 0 || g && _ - o.current >= b;
1064
+ }, L = function(_) {
1065
+ return i.current = null, d && s.current ? C(_) : (s.current = u.current = null, c.current);
1066
+ }, k = function _() {
1067
+ var G = Date.now();
1068
+ if (v && l.current === o.current && Q(), O(G)) return L(G);
1069
1069
  if (f.current) {
1070
- var AA = t - (_ - a.current), lA = m ? Math.min(AA, y - (_ - o.current)) : AA;
1071
- T(U, lA);
1070
+ var AA = t - (G - a.current), lA = g ? Math.min(AA, b - (G - o.current)) : AA;
1071
+ P(_, lA);
1072
1072
  }
1073
- }, X = function() {
1074
- }, E = function() {
1075
- if (w || b) {
1076
- var U = Date.now(), _ = q(U);
1077
- if (s.current = [].slice.call(arguments), u.current = r, a.current = U, _) {
1078
- if (!i.current && f.current) return o.current = a.current, T(B, t), g ? M(a.current) : c.current;
1079
- if (m) return T(B, t), M(a.current);
1073
+ }, Q = function() {
1074
+ }, J = function() {
1075
+ if (w || D) {
1076
+ var _ = Date.now(), G = O(_);
1077
+ if (s.current = [].slice.call(arguments), u.current = r, a.current = _, G) {
1078
+ if (!i.current && f.current) return o.current = a.current, P(k, t), v ? C(a.current) : c.current;
1079
+ if (g) return P(k, t), C(a.current);
1080
1080
  }
1081
- return i.current || T(B, t), c.current;
1081
+ return i.current || P(k, t), c.current;
1082
1082
  }
1083
1083
  };
1084
- return E.cancel = function() {
1085
- i.current && (h ? cancelAnimationFrame(i.current) : clearTimeout(i.current)), o.current = 0, s.current = a.current = u.current = i.current = null;
1086
- }, E.isPending = function() {
1084
+ return J.cancel = function() {
1085
+ i.current && (y ? cancelAnimationFrame(i.current) : clearTimeout(i.current)), o.current = 0, s.current = a.current = u.current = i.current = null;
1086
+ }, J.isPending = function() {
1087
1087
  return !!i.current;
1088
- }, E.flush = function() {
1089
- return i.current ? I(Date.now()) : c.current;
1090
- }, E;
1091
- }, [g, m, t, y, d, h, w, b, n]);
1092
- return C;
1088
+ }, J.flush = function() {
1089
+ return i.current ? L(Date.now()) : c.current;
1090
+ }, J;
1091
+ }, [v, g, t, b, d, y, w, D, n]);
1092
+ return h;
1093
1093
  }
1094
1094
  var on = Object.defineProperty, ln = (A, t, e) => t in A ? on(A, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : A[t] = e, vA = (A, t, e) => ln(A, typeof t != "symbol" ? t + "" : t, e);
1095
- const zt = {
1095
+ const _t = {
1096
1096
  "#": { pattern: /[0-9]/ },
1097
1097
  "@": { pattern: /[a-zA-Z]/ },
1098
1098
  "*": { pattern: /[a-zA-Z0-9]/ }
1099
- }, _t = (A, t, e) => A.replaceAll(t, "").replace(e, ".").replace("..", ".").replace(/[^.\d]/g, ""), Gt = (A, t, e) => {
1099
+ }, zt = (A, t, e) => A.replaceAll(t, "").replace(e, ".").replace("..", ".").replace(/[^.\d]/g, ""), Gt = (A, t, e) => {
1100
1100
  var r;
1101
1101
  var n;
1102
1102
  return new Intl.NumberFormat((r = (n = e.number) == null ? void 0 : n.locale) != null ? r : "en", {
@@ -1105,19 +1105,19 @@ const zt = {
1105
1105
  roundingMode: "trunc"
1106
1106
  });
1107
1107
  }, sn = (A, t = !0, e) => {
1108
- var g, d, m;
1108
+ var v, d, g;
1109
1109
  var n, r, a, o;
1110
- const l = ((n = e.number) == null ? void 0 : n.unsigned) !== !0 && A.startsWith("-") ? "-" : "", i = (g = (r = e.number) == null ? void 0 : r.fraction) != null ? g : 0;
1110
+ 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;
1111
1111
  let s = Gt(0, i, e);
1112
- const u = s.formatToParts(1000.12), c = (d = (a = u.find((b) => b.type === "group")) == null ? void 0 : a.value) != null ? d : " ", v = (m = (o = u.find((b) => b.type === "decimal")) == null ? void 0 : o.value) != null ? m : ".", f = _t(A, c, v);
1112
+ const u = s.formatToParts(1000.12), c = (d = (a = u.find((D) => D.type === "group")) == null ? void 0 : a.value) != null ? d : " ", m = (g = (o = u.find((D) => D.type === "decimal")) == null ? void 0 : o.value) != null ? g : ".", f = zt(A, c, m);
1113
1113
  if (Number.isNaN(parseFloat(f))) return l;
1114
1114
  const w = f.split(".");
1115
1115
  if (w[1] != null && w[1].length >= 1) {
1116
- const b = w[1].length <= i ? w[1].length : i;
1117
- s = Gt(b, i, e);
1116
+ const D = w[1].length <= i ? w[1].length : i;
1117
+ s = Gt(D, i, e);
1118
1118
  }
1119
- let h = s.format(parseFloat(f));
1120
- return t ? i > 0 && f.endsWith(".") && !f.slice(0, -1).includes(".") && (h += v) : h = _t(h, c, v), l + h;
1119
+ let y = s.format(parseFloat(f));
1120
+ return t ? i > 0 && f.endsWith(".") && !f.slice(0, -1).includes(".") && (y += m) : y = zt(y, c, m), l + y;
1121
1121
  };
1122
1122
  class cn {
1123
1123
  constructor(t = {}) {
@@ -1125,11 +1125,11 @@ class cn {
1125
1125
  vA(this, "opts", {}), vA(this, "memo", /* @__PURE__ */ new Map());
1126
1126
  const e = S({}, t);
1127
1127
  if (e.tokens != null) {
1128
- e.tokens = e.tokensReplace ? S({}, e.tokens) : S(S({}, zt), e.tokens);
1128
+ e.tokens = e.tokensReplace ? S({}, e.tokens) : S(S({}, _t), e.tokens);
1129
1129
  for (const r of Object.values(e.tokens))
1130
1130
  typeof r.pattern == "string" && (r.pattern = new RegExp(r.pattern));
1131
1131
  } else
1132
- e.tokens = zt;
1132
+ e.tokens = _t;
1133
1133
  Array.isArray(e.mask) && (e.mask.length > 1 ? e.mask = [...e.mask].sort((r, a) => r.length - a.length) : e.mask = (n = e.mask[0]) != null ? n : ""), e.mask === "" && (e.mask = null), this.opts = e;
1134
1134
  }
1135
1135
  masked(t) {
@@ -1173,19 +1173,19 @@ class cn {
1173
1173
  if (e == null) return t;
1174
1174
  const r = `v=${t},mr=${e},m=${n ? 1 : 0}`;
1175
1175
  if (this.memo.has(r)) return this.memo.get(r);
1176
- const { mask: a, escaped: o } = this.escapeMask(e), l = [], i = this.opts.tokens != null ? this.opts.tokens : {}, s = this.isReversed() ? -1 : 1, u = this.isReversed() ? "unshift" : "push", c = this.isReversed() ? 0 : a.length - 1, v = this.isReversed() ? () => g > -1 && d > -1 : () => g < a.length && d < t.length, f = (b) => !this.isReversed() && b <= c || this.isReversed() && b >= c;
1177
- let w, h = -1, g = this.isReversed() ? a.length - 1 : 0, d = this.isReversed() ? t.length - 1 : 0, m = !1;
1178
- for (; v(); ) {
1179
- const b = a.charAt(g), y = i[b], C = (y == null ? void 0 : y.transform) != null ? y.transform(t.charAt(d)) : t.charAt(d);
1180
- if (!o.includes(g) && y != null ? (C.match(y.pattern) != null ? (l[u](C), y.repeated ? (h === -1 ? h = g : g === c && g !== h && (g = h - s), c === h && (g -= s)) : y.multiple && (m = !0, g -= s), g += s) : y.multiple ? m && (g += s, d -= s, m = !1) : C === w ? w = void 0 : y.optional && (g += s, d -= s), d += s) : (n && !this.isEager() && l[u](b), C === b && !this.isEager() ? d += s : w = b, this.isEager() || (g += s)), this.isEager())
1181
- for (; f(g) && (i[a.charAt(g)] == null || o.includes(g)); ) {
1176
+ const { mask: a, escaped: o } = this.escapeMask(e), l = [], i = this.opts.tokens != null ? this.opts.tokens : {}, s = this.isReversed() ? -1 : 1, u = this.isReversed() ? "unshift" : "push", c = this.isReversed() ? 0 : a.length - 1, m = this.isReversed() ? () => v > -1 && d > -1 : () => v < a.length && d < t.length, f = (D) => !this.isReversed() && D <= c || this.isReversed() && D >= c;
1177
+ let w, y = -1, v = this.isReversed() ? a.length - 1 : 0, d = this.isReversed() ? t.length - 1 : 0, g = !1;
1178
+ for (; m(); ) {
1179
+ const D = a.charAt(v), b = i[D], h = (b == null ? void 0 : b.transform) != null ? b.transform(t.charAt(d)) : t.charAt(d);
1180
+ if (!o.includes(v) && b != null ? (h.match(b.pattern) != null ? (l[u](h), b.repeated ? (y === -1 ? y = v : v === c && v !== y && (v = y - s), c === y && (v -= s)) : b.multiple && (g = !0, v -= s), v += s) : b.multiple ? g && (v += s, d -= s, g = !1) : h === w ? w = void 0 : b.optional && (v += s, d -= s), d += s) : (n && !this.isEager() && l[u](D), h === D && !this.isEager() ? d += s : w = D, this.isEager() || (v += s)), this.isEager())
1181
+ for (; f(v) && (i[a.charAt(v)] == null || o.includes(v)); ) {
1182
1182
  if (n) {
1183
- if (l[u](a.charAt(g)), t.charAt(d) === a.charAt(g)) {
1184
- g += s, d += s;
1183
+ if (l[u](a.charAt(v)), t.charAt(d) === a.charAt(v)) {
1184
+ v += s, d += s;
1185
1185
  continue;
1186
1186
  }
1187
- } else a.charAt(g) === t.charAt(d) && (d += s);
1188
- g += s;
1187
+ } else a.charAt(v) === t.charAt(d) && (d += s);
1188
+ v += s;
1189
1189
  }
1190
1190
  }
1191
1191
  return this.memo.set(r, l.join("")), this.memo.get(r);
@@ -1210,7 +1210,7 @@ const fe = (A) => JSON.parse(A.replaceAll("'", '"')), un = (A, t = {}) => {
1210
1210
  };
1211
1211
  }), t;
1212
1212
  };
1213
- class _A {
1213
+ class zA {
1214
1214
  constructor(t, e = {}) {
1215
1215
  vA(this, "items", /* @__PURE__ */ new Map()), vA(this, "eventAbortController"), vA(this, "onInput", (n) => {
1216
1216
  if (n instanceof CustomEvent && n.type === "input" && !n.isTrusted && !n.bubbles)
@@ -1253,10 +1253,10 @@ class _A {
1253
1253
  var r, a;
1254
1254
  const o = t.selectionStart, l = t.value;
1255
1255
  if (n(), o === null || o === l.length && !e) return;
1256
- const i = t.value, s = l.slice(0, o), u = i.slice(0, o), c = (r = this.processInput(t, s)) == null ? void 0 : r.unmasked, v = (a = this.processInput(t, u)) == null ? void 0 : a.unmasked;
1257
- if (c === void 0 || v === void 0) return;
1256
+ const i = t.value, s = l.slice(0, o), u = i.slice(0, o), c = (r = this.processInput(t, s)) == null ? void 0 : r.unmasked, m = (a = this.processInput(t, u)) == null ? void 0 : a.unmasked;
1257
+ if (c === void 0 || m === void 0) return;
1258
1258
  let f = o;
1259
- s !== u && (f += e ? i.length - l.length : c.length - v.length), t.setSelectionRange(f, f);
1259
+ s !== u && (f += e ? i.length - l.length : c.length - m.length), t.setSelectionRange(f, f);
1260
1260
  }
1261
1261
  setValue(t, e) {
1262
1262
  const n = this.processInput(t, e);
@@ -1276,12 +1276,12 @@ class _A {
1276
1276
  }
1277
1277
  }
1278
1278
  const dn = ({ showOtp: A, value: t, setValue: e }) => {
1279
- const { t: n } = Y(), { handleBlur: r, err: a } = O(it), o = "### ### ####", l = (s) => {
1279
+ const { t: n } = Y(), { handleBlur: r, err: a } = U(it), o = "### ### ####", l = (s) => {
1280
1280
  const u = s.target, { value: c } = u;
1281
1281
  e(c);
1282
1282
  }, i = fA(r, 1e3);
1283
1283
  return V(() => {
1284
- new _A('[name="mysr-stc-mobile"]');
1284
+ new zA('[name="mysr-stc-mobile"]');
1285
1285
  }, []), /* @__PURE__ */ p(
1286
1286
  pA,
1287
1287
  {
@@ -1307,12 +1307,12 @@ const dn = ({ showOtp: A, value: t, setValue: e }) => {
1307
1307
  }
1308
1308
  );
1309
1309
  }, mn = ({ showPhone: A, value: t, setValue: e }) => {
1310
- const { t: n } = Y(), { handleBlur: r, err: a } = O(it), o = (i) => {
1310
+ const { t: n } = Y(), { handleBlur: r, err: a } = U(it), o = (i) => {
1311
1311
  const s = i.target, { value: u } = s;
1312
1312
  e(u);
1313
1313
  }, l = fA(r, 1e3);
1314
1314
  return V(() => {
1315
- new _A('[name="mysr-stc-otp"]');
1315
+ new zA('[name="mysr-stc-otp"]');
1316
1316
  }, []), /* @__PURE__ */ p(
1317
1317
  pA,
1318
1318
  {
@@ -1343,7 +1343,7 @@ const dn = ({ showOtp: A, value: t, setValue: e }) => {
1343
1343
  const e = j(null), n = ae(() => {
1344
1344
  const l = A ? new Date(A).getTime() - (/* @__PURE__ */ new Date()).getTime() : 0;
1345
1345
  return l < 0 ? 0 : l;
1346
- }, [A]), [r, a] = L(n());
1346
+ }, [A]), [r, a] = N(n());
1347
1347
  V(() => (e.current = setInterval(() => {
1348
1348
  a(n());
1349
1349
  }, 500), () => {
@@ -1365,7 +1365,7 @@ function de(A) {
1365
1365
  return A.errors !== void 0;
1366
1366
  }
1367
1367
  const hn = () => {
1368
- const { t: A } = Y(), [t, e] = L(!1), {
1368
+ const { t: A } = Y(), [t, e] = N(!1), {
1369
1369
  given_id: n,
1370
1370
  amount: r,
1371
1371
  currency: a,
@@ -1375,13 +1375,13 @@ const hn = () => {
1375
1375
  invoice_id: s,
1376
1376
  version: u,
1377
1377
  base_url: c,
1378
- apply_coupon: v,
1378
+ apply_coupon: m,
1379
1379
  splits: f,
1380
1380
  on_failure: w,
1381
- setFormSettings: h
1382
- } = O(W), g = (C) => {
1383
- h && (e(C), h((M) => P(S({}, M), {
1384
- isProcessing: C
1381
+ setFormSettings: y
1382
+ } = U(q), v = (h) => {
1383
+ y && (e(h), y((C) => X(S({}, C), {
1384
+ isProcessing: h
1385
1385
  })));
1386
1386
  }, d = {
1387
1387
  amount: r,
@@ -1389,68 +1389,68 @@ const hn = () => {
1389
1389
  description: o,
1390
1390
  publishable_api_key: l
1391
1391
  };
1392
- n && (d.given_id = n), i && Object.keys(i).length > 0 && (d.metadata = i), s && (d.invoice_id = s.toLowerCase()), v !== void 0 && (d.apply_coupon = v), f && (d.splits = f);
1393
- const m = (C) => K(void 0, null, function* () {
1394
- if (h && (h((M) => P(S({}, M), {
1395
- apiError: `${A("error." + C.type)}, ${C.message}`
1392
+ n && (d.given_id = n), i && Object.keys(i).length > 0 && (d.metadata = i), s && (d.invoice_id = s.toLowerCase()), m !== void 0 && (d.apply_coupon = m), f && (d.splits = f);
1393
+ const g = (h) => K(void 0, null, function* () {
1394
+ if (y && (y((C) => X(S({}, C), {
1395
+ apiError: `${A("error." + h.type)}, ${h.message}`
1396
1396
  })), w))
1397
1397
  try {
1398
- yield w(C);
1399
- } catch (M) {
1400
- console.error("An error happened when firing failure callback"), console.error(M);
1398
+ yield w(h);
1399
+ } catch (C) {
1400
+ console.error("An error happened when firing failure callback"), console.error(C);
1401
1401
  }
1402
- }), b = () => {
1403
- h && h((C) => P(S({}, C), { apiError: "" }));
1402
+ }), D = () => {
1403
+ y && y((h) => X(S({}, h), { apiError: "" }));
1404
1404
  };
1405
1405
  return {
1406
1406
  processing: t,
1407
- postData: (q) => K(void 0, [q], function* ({
1408
- updatedPaymentConfig: C,
1409
- data: M,
1410
- path: T
1407
+ postData: (O) => K(void 0, [O], function* ({
1408
+ updatedPaymentConfig: h,
1409
+ data: C,
1410
+ path: P
1411
1411
  }) {
1412
- g(!0), b();
1413
- const I = T || `${c}/v1/payments`;
1412
+ v(!0), D();
1413
+ const L = P || `${c}/v1/payments`;
1414
1414
  try {
1415
- const B = yield fetch(I, {
1415
+ const k = yield fetch(L, {
1416
1416
  method: "POST",
1417
1417
  headers: {
1418
1418
  "Content-Type": "application/json",
1419
1419
  "X-Moyasar-Form-Version": u
1420
1420
  },
1421
- body: JSON.stringify(S(S(S({}, d), M), C))
1421
+ body: JSON.stringify(S(S(S({}, d), C), h))
1422
1422
  });
1423
- if (!B.ok) {
1424
- if (typeof B == "object") {
1425
- const X = yield B.json();
1426
- if (console.error("fetch error:", X), !de(X)) {
1427
- yield m({
1423
+ if (!k.ok) {
1424
+ if (typeof k == "object") {
1425
+ const Q = yield k.json();
1426
+ if (console.error("fetch error:", Q), !de(Q)) {
1427
+ yield g({
1428
1428
  type: "api_error",
1429
- message: `Error code: ${B.status}`,
1429
+ message: `Error code: ${k.status}`,
1430
1430
  errors: null
1431
1431
  });
1432
1432
  return;
1433
1433
  }
1434
- return yield m(X), X;
1434
+ return yield g(Q), Q;
1435
1435
  }
1436
- return yield Promise.reject(B);
1436
+ return yield Promise.reject(k);
1437
1437
  }
1438
- return yield B.json();
1439
- } catch (B) {
1438
+ return yield k.json();
1439
+ } catch (k) {
1440
1440
  if (w)
1441
1441
  try {
1442
- yield w(B);
1443
- } catch (X) {
1444
- console.error("An error happened when firing failure callback"), console.error(X);
1442
+ yield w(k);
1443
+ } catch (Q) {
1444
+ console.error("An error happened when firing failure callback"), console.error(Q);
1445
1445
  }
1446
- console.error(B);
1446
+ console.error(k);
1447
1447
  } finally {
1448
- g(!1);
1448
+ v(!1);
1449
1449
  }
1450
1450
  })
1451
1451
  };
1452
1452
  }, yn = () => {
1453
- const { apiError: A } = O(W), [t, e] = L(!1);
1453
+ const { apiError: A } = U(q), [t, e] = N(!1);
1454
1454
  return V(() => {
1455
1455
  e(!!A);
1456
1456
  }, [A]), V(() => {
@@ -1507,160 +1507,160 @@ const hn = () => {
1507
1507
  }), wA = ({
1508
1508
  defaultError: A
1509
1509
  }) => {
1510
- const { callback_url: t, on_initiating: e, on_redirect: n, on_completed: r, setFormSettings: a } = O(W), [o, l] = L(A), { processing: i, postData: s } = hn(), [u, c] = L(!1), [v, f] = L(!1), { fail: w } = yn();
1511
- function h(q, I) {
1512
- return K(this, arguments, function* ({ data: m, path: b, onSuccess: y, onFailed: C, initPayment: M }, T) {
1513
- const B = yield s({
1514
- updatedPaymentConfig: T,
1515
- data: m,
1516
- path: b
1510
+ const { callback_url: t, on_initiating: e, on_redirect: n, on_completed: r, setFormSettings: a } = U(q), [o, l] = N(A), { processing: i, postData: s } = hn(), [u, c] = N(!1), [m, f] = N(!1), { fail: w } = yn();
1511
+ function y(O, L) {
1512
+ return K(this, arguments, function* ({ data: g, path: D, onSuccess: b, onFailed: h, initPayment: C }, P) {
1513
+ const k = yield s({
1514
+ updatedPaymentConfig: P,
1515
+ data: g,
1516
+ path: D
1517
1517
  });
1518
- if (de(B)) {
1518
+ if (de(k)) {
1519
1519
  c(!1);
1520
1520
  return;
1521
1521
  }
1522
- B && (r && M && (yield bn({
1523
- payment: B,
1522
+ k && (r && C && (yield bn({
1523
+ payment: k,
1524
1524
  on_completed: r
1525
- }).catch((X) => {
1526
- console.error(X);
1527
- })), y && B.status !== "failed" && y(B), ["paid", "authorized"].includes(B.status) && (f(!0), setTimeout(() => {
1528
- Et(t, B, n).catch(() => {
1525
+ }).catch((Q) => {
1526
+ console.error(Q);
1527
+ })), b && k.status !== "failed" && b(k), ["paid", "authorized"].includes(k.status) && (f(!0), setTimeout(() => {
1528
+ Et(t, k, n).catch(() => {
1529
1529
  });
1530
- }, 100)), B.status === "failed" && (C && C(B), setTimeout(() => {
1531
- Et(t, B, n).catch(() => {
1530
+ }, 100)), k.status === "failed" && (h && h(k), setTimeout(() => {
1531
+ Et(t, k, n).catch(() => {
1532
1532
  });
1533
1533
  }, 100))), c(!1);
1534
1534
  });
1535
1535
  }
1536
- function g(m) {
1536
+ function v(g) {
1537
1537
  return K(this, null, function* () {
1538
- if (c(!0), m.initPayment) {
1539
- let b = m.data.source;
1538
+ if (c(!0), g.initPayment) {
1539
+ let D = g.data.source;
1540
1540
  try {
1541
- (b == null ? void 0 : b.type) === "creditcard" && typeof b.number == "string" && (b = {
1541
+ (D == null ? void 0 : D.type) === "creditcard" && typeof D.number == "string" && (D = {
1542
1542
  type: "creditcard",
1543
- bin: b.number.substring(0, 8)
1543
+ bin: D.number.substring(0, 8)
1544
1544
  });
1545
- const y = yield wn({
1546
- source: b,
1545
+ const b = yield wn({
1546
+ source: D,
1547
1547
  on_initiating: e,
1548
1548
  setFormSettings: a
1549
1549
  });
1550
- if (typeof y == "boolean" && !y) {
1550
+ if (typeof b == "boolean" && !b) {
1551
1551
  c(!1);
1552
1552
  return;
1553
1553
  }
1554
- let C = y;
1555
- typeof C != "object" && (C = {}), yield h(m, C);
1556
- } catch (y) {
1557
- console.error(y), c(!1);
1554
+ let h = b;
1555
+ typeof h != "object" && (h = {}), yield y(g, h);
1556
+ } catch (b) {
1557
+ console.error(b), c(!1);
1558
1558
  }
1559
1559
  return;
1560
1560
  }
1561
- yield h(m, {});
1561
+ yield y(g, {});
1562
1562
  });
1563
1563
  }
1564
1564
  const d = oA(() => i || u, [i, u]);
1565
1565
  return {
1566
- makePayment: g,
1566
+ makePayment: v,
1567
1567
  busy: u,
1568
1568
  fail: w,
1569
- success: v,
1569
+ success: m,
1570
1570
  processing: i,
1571
1571
  loading: d,
1572
1572
  error: o,
1573
1573
  setError: l
1574
1574
  };
1575
1575
  }, me = ({ inForm: A = !1 }) => {
1576
- const { apiError: t, showForm: e } = O(W);
1576
+ const { apiError: t, showForm: e } = U(q);
1577
1577
  return e && !A ? null : /* @__PURE__ */ p("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 });
1578
1578
  }, Cn = () => {
1579
- const { t: A } = Y(), { formattedAmount: t, currency: e, isRtl: n, fixed_width: r, setFormSettings: a, showForm: o } = O(W), [l, i] = L(null), [s, u] = L(!1), c = {
1579
+ const { t: A } = Y(), { formattedAmount: t, currency: e, isRtl: n, fixed_width: r, setFormSettings: a, showForm: o } = U(q), [l, i] = N(null), [s, u] = N(!1), c = {
1580
1580
  phone: "",
1581
1581
  otp: ""
1582
1582
  }, {
1583
- makePayment: v,
1583
+ makePayment: m,
1584
1584
  busy: f,
1585
1585
  fail: w,
1586
- success: h,
1587
- loading: g,
1586
+ success: y,
1587
+ loading: v,
1588
1588
  error: d,
1589
- setError: m
1590
- } = wA({ defaultError: c }), [b, y] = L(""), [C, M] = L(""), [T, q] = L(""), I = (G) => {
1591
- const Q = /^05[503649187][0-9]{7}$/.test(x(G));
1592
- return m((Z) => P(S({}, Z), {
1593
- phone: Q ? "" : "error.invalid_mobile"
1594
- })), Q;
1595
- }, B = (G) => {
1596
- const Q = /^[0-9]{4,}$/.test(x(G));
1597
- return m((Z) => P(S({}, Z), {
1598
- otp: Q ? "" : "error.invalid_otp"
1599
- })), Q;
1600
- }, X = (G) => {
1601
- const { value: Q, name: Z } = G.target, eA = Q.trim();
1589
+ setError: g
1590
+ } = wA({ defaultError: c }), [D, b] = N(""), [h, C] = N(""), [P, O] = N(""), L = (E) => {
1591
+ const T = /^05[503649187][0-9]{7}$/.test(x(E));
1592
+ return g((Z) => X(S({}, Z), {
1593
+ phone: T ? "" : "error.invalid_mobile"
1594
+ })), T;
1595
+ }, k = (E) => {
1596
+ const T = /^[0-9]{4,}$/.test(x(E));
1597
+ return g((Z) => X(S({}, Z), {
1598
+ otp: T ? "" : "error.invalid_otp"
1599
+ })), T;
1600
+ }, Q = (E) => {
1601
+ const { value: T, name: Z } = E.target, eA = T.trim();
1602
1602
  if (u(!1), !eA) {
1603
1603
  u(!eA);
1604
1604
  return;
1605
1605
  }
1606
- Z === "mysr-stc-mobile" && I(eA), Z === "mysr-stc-otp" && B(eA);
1607
- }, E = () => {
1608
- if (!I(b)) return;
1609
- function G(Q) {
1610
- const { transaction_url: Z } = Q.source;
1611
- q(Z), i((/* @__PURE__ */ new Date()).getTime() + 5 * 60 * 1e3);
1606
+ Z === "mysr-stc-mobile" && L(eA), Z === "mysr-stc-otp" && k(eA);
1607
+ }, J = () => {
1608
+ if (!L(D)) return;
1609
+ function E(T) {
1610
+ const { transaction_url: Z } = T.source;
1611
+ O(Z), i((/* @__PURE__ */ new Date()).getTime() + 5 * 60 * 1e3);
1612
1612
  }
1613
- v({
1613
+ m({
1614
1614
  data: {
1615
1615
  source: {
1616
1616
  type: "stcpay",
1617
- mobile: x(b)
1617
+ mobile: x(D)
1618
1618
  }
1619
1619
  },
1620
- onSuccess: G,
1620
+ onSuccess: E,
1621
1621
  initPayment: !0
1622
- }).catch((Q) => {
1623
- console.error(Q);
1622
+ }).catch((T) => {
1623
+ console.error(T);
1624
1624
  });
1625
- }, U = () => {
1626
- if (!l || !B(C)) return;
1627
- function G(Q) {
1625
+ }, _ = () => {
1626
+ if (!l || !k(h)) return;
1627
+ function E(T) {
1628
1628
  var Z;
1629
- Q.status === "failed" && ((Z = Q.source) == null ? void 0 : Z.message) === "Invalid OTP" && (m((eA) => P(S({}, eA), {
1629
+ T.status === "failed" && ((Z = T.source) == null ? void 0 : Z.message) === "Invalid OTP" && (g((eA) => X(S({}, eA), {
1630
1630
  otp: "error.invalid_otp"
1631
- })), M(""), i(null));
1631
+ })), C(""), i(null));
1632
1632
  }
1633
- v({
1633
+ m({
1634
1634
  data: {
1635
- otp_value: x(C)
1635
+ otp_value: x(h)
1636
1636
  },
1637
- path: T,
1638
- onFailed: G
1639
- }).catch((Q) => {
1640
- console.error(Q);
1637
+ path: P,
1638
+ onFailed: E
1639
+ }).catch((T) => {
1640
+ console.error(T);
1641
1641
  });
1642
- }, _ = (G) => {
1643
- if (G.preventDefault(), m(c), !l) {
1644
- E();
1642
+ }, G = (E) => {
1643
+ if (E.preventDefault(), g(c), !l) {
1644
+ J();
1645
1645
  return;
1646
1646
  }
1647
- U();
1648
- }, AA = (G) => {
1649
- G > 0 || (m((Q) => P(S({}, Q), {
1647
+ _();
1648
+ }, AA = (E) => {
1649
+ E > 0 || (g((T) => X(S({}, T), {
1650
1650
  otp: "error.otp_time_out"
1651
- })), M(""), i(null));
1652
- }, lA = oA(() => d.phone || l && d.otp && d.otp !== "error.otp_time_out" ? !0 : s || g, [d, s, g]), dA = (G) => a((Q) => P(S({}, Q), { showForm: G })), [sA, mA] = L(!1), CA = () => {
1651
+ })), C(""), i(null));
1652
+ }, lA = oA(() => d.phone || l && d.otp && d.otp !== "error.otp_time_out" ? !0 : s || v, [d, s, v]), dA = (E) => a((T) => X(S({}, T), { showForm: E })), [sA, mA] = N(!1), CA = () => {
1653
1653
  mA(!0);
1654
1654
  }, JA = () => {
1655
- sA && (y(""), M(""), m(c), dA(!1), mA(!1), u(!1));
1655
+ sA && (b(""), C(""), g(c), dA(!1), mA(!1), u(!1));
1656
1656
  };
1657
1657
  return /* @__PURE__ */ p(
1658
1658
  it.Provider,
1659
1659
  {
1660
1660
  value: {
1661
1661
  err: d,
1662
- setErr: m,
1663
- handleBlur: X
1662
+ setErr: g,
1663
+ handleBlur: Q
1664
1664
  },
1665
1665
  children: /* @__PURE__ */ p($, { children: [
1666
1666
  /* @__PURE__ */ p(HA, { variant: "stc", onClick: () => dA(!0), children: /* @__PURE__ */ p(
@@ -1698,7 +1698,7 @@ const hn = () => {
1698
1698
  /* @__PURE__ */ p("img", { alt: "", src: gn, class: "h-5" }),
1699
1699
  /* @__PURE__ */ p("button", { onClick: CA, class: "ms-auto", children: "Cancel" })
1700
1700
  ] }),
1701
- /* @__PURE__ */ p("form", { class: "flex flex-col gap-4", onSubmit: _, children: [
1701
+ /* @__PURE__ */ p("form", { class: "flex flex-col gap-4", onSubmit: G, children: [
1702
1702
  /* @__PURE__ */ p("div", { class: "space-y-2", children: [
1703
1703
  /* @__PURE__ */ p("div", { class: "flex items-end justify-between text-xs font-medium", children: [
1704
1704
  l ? /* @__PURE__ */ p("label", { for: "mysr-stc-mobile", children: A("form.otp") }) : /* @__PURE__ */ p("label", { for: "mysr-stc-otp", children: A("form.mobile") }),
@@ -1707,16 +1707,16 @@ const hn = () => {
1707
1707
  /* @__PURE__ */ p(
1708
1708
  dn,
1709
1709
  {
1710
- value: b,
1711
- setValue: y,
1710
+ value: D,
1711
+ setValue: b,
1712
1712
  showOtp: !l && typeof l != "number"
1713
1713
  }
1714
1714
  ),
1715
1715
  /* @__PURE__ */ p(
1716
1716
  mn,
1717
1717
  {
1718
- value: C,
1719
- setValue: M,
1718
+ value: h,
1719
+ setValue: C,
1720
1720
  showPhone: !l && typeof l != "number"
1721
1721
  }
1722
1722
  )
@@ -1724,7 +1724,7 @@ const hn = () => {
1724
1724
  /* @__PURE__ */ p(
1725
1725
  HA,
1726
1726
  {
1727
- success: h,
1727
+ success: y,
1728
1728
  fail: w,
1729
1729
  busy: f,
1730
1730
  variant: "stc",
@@ -1739,7 +1739,7 @@ const hn = () => {
1739
1739
  }
1740
1740
  )
1741
1741
  ] }),
1742
- /* @__PURE__ */ p("p", { class: "flex flex-col gap-2 text-xs font-medium text-error empty:hidden", children: Object.entries(d).map(([G, Q]) => /* @__PURE__ */ p("span", { class: "empty:hidden", children: A(Q) }, G)) })
1742
+ /* @__PURE__ */ p("p", { class: "flex flex-col gap-2 text-xs font-medium text-error empty:hidden", children: Object.entries(d).map(([E, T]) => /* @__PURE__ */ p("span", { class: "empty:hidden", children: A(T) }, E)) })
1743
1743
  ]
1744
1744
  }
1745
1745
  ) })
@@ -1759,11 +1759,11 @@ const hn = () => {
1759
1759
  statement_descriptor: i,
1760
1760
  setFormSettings: s,
1761
1761
  on_failure: u
1762
- } = O(W), { makePayment: c } = wA({ defaultError: {} });
1763
- function v() {
1762
+ } = U(q), { makePayment: c } = wA({ defaultError: {} });
1763
+ function m() {
1764
1764
  if (!ApplePaySession)
1765
1765
  return;
1766
- const f = (n == null ? void 0 : n.label) || (r == null ? void 0 : r.label), h = {
1766
+ const f = (n == null ? void 0 : n.label) || (r == null ? void 0 : r.label), y = {
1767
1767
  countryCode: (n == null ? void 0 : n.country) || (r == null ? void 0 : r.country),
1768
1768
  currencyCode: a,
1769
1769
  supportedNetworks: o,
@@ -1772,35 +1772,35 @@ const hn = () => {
1772
1772
  label: f,
1773
1773
  amount: l
1774
1774
  }
1775
- }, g = new ApplePaySession(n.version, h);
1776
- g.onvalidatemerchant = (d) => {
1777
- const m = {
1775
+ }, v = new ApplePaySession(n.version, y);
1776
+ v.onvalidatemerchant = (d) => {
1777
+ const g = {
1778
1778
  validation_url: d.validationURL,
1779
1779
  display_name: f,
1780
1780
  domain_name: window.location.hostname,
1781
1781
  publishable_api_key: e
1782
- }, b = n.validate_merchant_url || `${t}/v1/applepay/initiate`;
1783
- fetch(b, {
1782
+ }, D = n.validate_merchant_url || `${t}/v1/applepay/initiate`;
1783
+ fetch(D, {
1784
1784
  method: "POST",
1785
1785
  headers: {
1786
1786
  "Content-Type": "application/json"
1787
1787
  },
1788
- body: JSON.stringify(m)
1789
- }).then((y) => y.ok ? y : Promise.reject(y)).then((y) => y.json()).then((y) => {
1790
- g.completeMerchantValidation(y);
1791
- }).catch((y) => {
1792
- if (console.error("Apple Pay error:", y), s((C) => P(S({}, C), {
1788
+ body: JSON.stringify(g)
1789
+ }).then((b) => b.ok ? b : Promise.reject(b)).then((b) => b.json()).then((b) => {
1790
+ v.completeMerchantValidation(b);
1791
+ }).catch((b) => {
1792
+ if (console.error("Apple Pay error:", b), s((h) => X(S({}, h), {
1793
1793
  apiError: A("error.applePay")
1794
1794
  })), u)
1795
1795
  try {
1796
- u(y);
1797
- } catch (C) {
1798
- console.error("An error happened when firing failure callback"), console.error(C);
1796
+ u(b);
1797
+ } catch (h) {
1798
+ console.error("An error happened when firing failure callback"), console.error(h);
1799
1799
  }
1800
- g.abort();
1800
+ v.abort();
1801
1801
  });
1802
- }, g.onpaymentauthorized = (d) => {
1803
- const m = {
1802
+ }, v.onpaymentauthorized = (d) => {
1803
+ const g = {
1804
1804
  source: {
1805
1805
  type: "applepay",
1806
1806
  token: JSON.stringify(d.payment.token),
@@ -1808,30 +1808,30 @@ const hn = () => {
1808
1808
  save_card: !!(n != null && n.save_card)
1809
1809
  }
1810
1810
  };
1811
- i && (m.source.statement_descriptor = i);
1812
- function b(C) {
1813
- g.completePayment({
1811
+ i && (g.source.statement_descriptor = i);
1812
+ function D(h) {
1813
+ v.completePayment({
1814
1814
  status: ApplePaySession.STATUS_FAILURE
1815
1815
  });
1816
1816
  }
1817
- function y(C) {
1818
- g.completePayment({
1817
+ function b(h) {
1818
+ v.completePayment({
1819
1819
  status: ApplePaySession.STATUS_SUCCESS
1820
1820
  });
1821
1821
  }
1822
1822
  c({
1823
- data: m,
1824
- onFailed: b,
1825
- onSuccess: y,
1823
+ data: g,
1824
+ onFailed: D,
1825
+ onSuccess: b,
1826
1826
  initPayment: !0
1827
- }).catch((C) => {
1828
- console.error(C);
1827
+ }).catch((h) => {
1828
+ console.error(h);
1829
1829
  });
1830
- }, g.oncancel = () => {
1830
+ }, v.oncancel = () => {
1831
1831
  console.log("Apple Pay payment cancelled by user");
1832
- }, g.begin();
1832
+ }, v.begin();
1833
1833
  }
1834
- return /* @__PURE__ */ p("apple-pay-button", { buttonstyle: "black", type: "plain", onClick: v });
1834
+ return /* @__PURE__ */ p("apple-pay-button", { buttonstyle: "black", type: "plain", onClick: m });
1835
1835
  }, Mn = "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/3RST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ZkLanPWo7uZ5bZNaUyQSQhow/7Uzvd//cXCNo6FfG8UoBGHf3hj1v5nLtR7Y1zaoLqRlQfMTsay9LrRRhwsGsUCwJqVViVO85pDOXlFai82v6VfSTFOhmCKmK01UJ0YWnlH1Zv+4/YuSQXnbpiZKPUKGW3gg9RDnjkEpppXiSv7fgGx7L+67vz/9CotKWr7y1xuZCsEFMMrzeSixvg0YVHxiUd3Mp3y8Y0NF+qP6PncqDxo+tn7WyuoQrEKzBKspWqqg0RLdf+bSlSnAlIqoz8mle1UhXICTG20D7q3VVP6sC4ZRKLKsu4QqEQN+j5qgUjK1uwxUIbe8G9mlzleBKhLBqcZ++XDXSFQiFSyiwl7VU/awKRHRNjkdLqku4AiEx6E0qhNqyjpHVbbgCodFoE8NPQKGKSoOA2kGncm+hnb5QZbgiUWNkZyOHVb2sKqr4QEIadOJl/R9/eIVAmWuIbgAAAABJRU5ErkJggg==", kn = () => {
1836
1836
  const {
1837
1837
  payment_button_type: A,
@@ -1840,13 +1840,13 @@ const hn = () => {
1840
1840
  supported_networks: n,
1841
1841
  currency: r,
1842
1842
  decimalAmount: a
1843
- } = O(W), [o, l] = L(!1), [i, s] = L(!1), { makePayment: u } = wA({ defaultError: {} }), { t: c } = Y(), v = j(null);
1843
+ } = U(q), [o, l] = N(!1), [i, s] = N(!1), { makePayment: u } = wA({ defaultError: {} }), { t: c } = Y(), m = j(null);
1844
1844
  V(() => {
1845
- let h = null;
1846
- return o || (h = setInterval(() => {
1845
+ let y = null;
1846
+ return o || (y = setInterval(() => {
1847
1847
  window.SamsungPay && l(!0);
1848
1848
  }, 100)), () => {
1849
- clearInterval(h);
1849
+ clearInterval(y);
1850
1850
  };
1851
1851
  }, [o]);
1852
1852
  const f = oA(() => {
@@ -1856,19 +1856,19 @@ const hn = () => {
1856
1856
  if (V(() => K(void 0, null, function* () {
1857
1857
  if (!f || !t)
1858
1858
  return;
1859
- const h = n == null ? void 0 : n.map((d) => d.toLowerCase()), g = {
1859
+ const y = n == null ? void 0 : n.map((d) => d.toLowerCase()), v = {
1860
1860
  version: t.version.toString(),
1861
1861
  serviceId: t.service_id,
1862
1862
  protocol: "PROTOCOL_3DS",
1863
- allowedBrands: h
1863
+ allowedBrands: y
1864
1864
  };
1865
- v.current = () => K(void 0, null, function* () {
1866
- const { order_number: d, id: m, country: b, label: y } = t, C = y || (e == null ? void 0 : e.label), M = b || (e == null ? void 0 : e.country), T = {
1865
+ m.current = () => K(void 0, null, function* () {
1866
+ const { order_number: d, id: g, country: D, label: b } = t, h = b || (e == null ? void 0 : e.label), C = D || (e == null ? void 0 : e.country), P = {
1867
1867
  orderNumber: d,
1868
1868
  merchant: {
1869
- name: C,
1870
- id: m,
1871
- countryCode: M,
1869
+ name: h,
1870
+ id: g,
1871
+ countryCode: C,
1872
1872
  url: window.location.hostname
1873
1873
  },
1874
1874
  amount: {
@@ -1876,53 +1876,55 @@ const hn = () => {
1876
1876
  currency: r,
1877
1877
  total: a
1878
1878
  }
1879
- }, q = () => {
1879
+ }, O = () => {
1880
1880
  f.notify({
1881
1881
  status: "CHARGED",
1882
1882
  provider: "Moyasar"
1883
1883
  });
1884
- }, I = (B) => {
1884
+ }, L = (k) => {
1885
1885
  f.notify({
1886
1886
  status: "REJECTED",
1887
1887
  provider: "Moyasar"
1888
1888
  });
1889
1889
  };
1890
1890
  try {
1891
- const B = yield f.loadPaymentSheet(
1892
- g,
1893
- T
1891
+ const k = yield f.loadPaymentSheet(
1892
+ v,
1893
+ P
1894
1894
  );
1895
1895
  yield u({
1896
1896
  initPayment: !0,
1897
1897
  data: {
1898
1898
  source: {
1899
1899
  type: "samsungpay",
1900
- token: B["3DS"].data
1900
+ token: k["3DS"].data,
1901
+ manual: !!(t != null && t.manual),
1902
+ save_card: !!(t != null && t.save_card)
1901
1903
  }
1902
1904
  },
1903
- onFailed: I,
1904
- onSuccess: q
1905
+ onFailed: L,
1906
+ onSuccess: O
1905
1907
  });
1906
- } catch (B) {
1908
+ } catch (k) {
1907
1909
  try {
1908
1910
  f.notify({
1909
1911
  status: "ERRED",
1910
1912
  provider: "Moyasar"
1911
1913
  });
1912
- } catch (X) {
1914
+ } catch (Q) {
1913
1915
  }
1914
- console.error("Samsung Pay error: ", B);
1916
+ console.error("Samsung Pay error: ", k);
1915
1917
  }
1916
1918
  });
1917
1919
  try {
1918
- (yield f.isReadyToPay(g)).result ? s(!0) : console.error("Cannot initialize Samsung Pay");
1920
+ (yield f.isReadyToPay(v)).result ? s(!0) : console.error("Cannot initialize Samsung Pay");
1919
1921
  } catch (d) {
1920
1922
  try {
1921
1923
  f.notify({
1922
1924
  status: "ERRED",
1923
1925
  provider: "Moyasar"
1924
1926
  });
1925
- } catch (m) {
1927
+ } catch (g) {
1926
1928
  }
1927
1929
  console.error("Samsung Pay Error: ", d);
1928
1930
  }
@@ -1933,7 +1935,7 @@ const hn = () => {
1933
1935
  "button",
1934
1936
  {
1935
1937
  class: "flex h-11 w-full items-center justify-center gap-1 rounded-md bg-black text-white",
1936
- onClick: v.current,
1938
+ onClick: m.current,
1937
1939
  children: [
1938
1940
  /* @__PURE__ */ p("span", { children: c(`button.${w}`) }),
1939
1941
  /* @__PURE__ */ p("img", { src: Mn, alt: "", class: "-mb-[3px] h-[22px]" }),
@@ -1951,14 +1953,14 @@ const hn = () => {
1951
1953
  currency: a,
1952
1954
  decimalAmount: o,
1953
1955
  setFormSettings: l
1954
- } = O(W), [i, s] = L(!1), { makePayment: u } = wA({ defaultError: {} });
1956
+ } = U(q), [i, s] = N(!1), { makePayment: u } = wA({ defaultError: {} });
1955
1957
  V(() => {
1956
- let v = null;
1957
- return i || (v = setInterval(() => {
1958
+ let m = null;
1959
+ return i || (m = setInterval(() => {
1958
1960
  var f, w;
1959
1961
  (w = (f = window.google) == null ? void 0 : f.payments) != null && w.api && s(!0);
1960
1962
  }, 100)), () => {
1961
- clearInterval(v);
1963
+ clearInterval(m);
1962
1964
  };
1963
1965
  }, [i]);
1964
1966
  const c = oA(() => {
@@ -1968,76 +1970,76 @@ const hn = () => {
1968
1970
  });
1969
1971
  }, [i]);
1970
1972
  return V(() => K(void 0, null, function* () {
1971
- const v = document.getElementById("googlePay-container");
1972
- if (!c || !e || (v == null ? void 0 : v.children.length) >= 1)
1973
+ const m = document.getElementById("googlePay-container");
1974
+ if (!c || !e || (m == null ? void 0 : m.children.length) >= 1)
1973
1975
  return;
1974
1976
  e.merchant_id;
1975
- const f = r == null ? void 0 : r.filter((M) => M !== "mada").map((M) => M.toUpperCase()), w = e.auth_methods, h = {
1977
+ const f = r == null ? void 0 : r.filter((C) => C !== "mada").map((C) => C.toUpperCase()), w = e.auth_methods, y = {
1976
1978
  apiVersion: 2,
1977
1979
  apiVersionMinor: 0
1978
- }, g = {
1980
+ }, v = {
1979
1981
  type: "CARD",
1980
1982
  parameters: {
1981
1983
  allowedAuthMethods: w,
1982
1984
  allowedCardNetworks: f
1983
1985
  }
1984
- }, d = Object.assign({}, h);
1985
- d.allowedPaymentMethods = [g];
1986
- const m = () => K(void 0, null, function* () {
1987
- const { country: M, label: T, merchant_id: q } = e, I = T || (n == null ? void 0 : n.label), B = M || (n == null ? void 0 : n.country), X = P(S({}, h), {
1988
- allowedPaymentMethods: [C],
1986
+ }, d = Object.assign({}, y);
1987
+ d.allowedPaymentMethods = [v];
1988
+ const g = () => K(void 0, null, function* () {
1989
+ const { country: C, label: P, merchant_id: O } = e, L = P || (n == null ? void 0 : n.label), k = C || (n == null ? void 0 : n.country), Q = X(S({}, y), {
1990
+ allowedPaymentMethods: [h],
1989
1991
  merchantInfo: {
1990
- merchantId: q,
1991
- merchantName: I
1992
+ merchantId: O,
1993
+ merchantName: L
1992
1994
  },
1993
1995
  transactionInfo: {
1994
- countryCode: B,
1996
+ countryCode: k,
1995
1997
  currencyCode: a,
1996
1998
  totalPriceStatus: "FINAL",
1997
1999
  totalPrice: o
1998
2000
  }
1999
2001
  });
2000
2002
  try {
2001
- const E = yield c.loadPaymentData(X);
2003
+ const J = yield c.loadPaymentData(Q);
2002
2004
  u({
2003
2005
  initPayment: !0,
2004
2006
  data: {
2005
2007
  source: {
2006
2008
  type: "googlepay",
2007
- token: E.paymentMethodData.tokenizationData.token
2009
+ token: J.paymentMethodData.tokenizationData.token
2008
2010
  }
2009
2011
  }
2010
2012
  });
2011
- } catch (E) {
2012
- console.error(E);
2013
+ } catch (J) {
2014
+ console.error(J);
2013
2015
  }
2014
- }), b = () => {
2015
- const M = c.createButton({
2016
- onClick: m,
2016
+ }), D = () => {
2017
+ const C = c.createButton({
2018
+ onClick: g,
2017
2019
  buttonLocale: A,
2018
2020
  buttonColor: "black",
2019
2021
  buttonType: t,
2020
2022
  buttonRadius: 6,
2021
2023
  buttonSizeMode: "fill"
2022
2024
  });
2023
- v.appendChild(M);
2024
- }, y = {
2025
+ m.appendChild(C);
2026
+ }, b = {
2025
2027
  type: "PAYMENT_GATEWAY",
2026
2028
  parameters: {
2027
2029
  gateway: "moyasar",
2028
2030
  gatewayMerchantId: e.gateway_merchant_id
2029
2031
  }
2030
- }, C = Object.assign({}, g, {
2031
- tokenizationSpecification: y
2032
+ }, h = Object.assign({}, v, {
2033
+ tokenizationSpecification: b
2032
2034
  });
2033
2035
  try {
2034
- (yield c.isReadyToPay(d)).result ? b() : l((T) => P(S({}, T), {
2036
+ (yield c.isReadyToPay(d)).result ? D() : l((P) => X(S({}, P), {
2035
2037
  apiError: "Cannot initialize Google Pay"
2036
2038
  }));
2037
- } catch (M) {
2038
- l((T) => P(S({}, T), {
2039
+ } catch (C) {
2040
+ l((P) => X(S({}, P), {
2039
2041
  apiError: "Cannot initialize Google Pay"
2040
- })), console.error("Google Pay Error: ", M);
2042
+ })), console.error("Google Pay Error: ", C);
2041
2043
  }
2042
2044
  }), [c, e]), i ? /* @__PURE__ */ p(
2043
2045
  "div",
@@ -2047,7 +2049,7 @@ const hn = () => {
2047
2049
  }
2048
2050
  ) : null;
2049
2051
  }, Sn = () => {
2050
- const { t: A } = Y(), { methods: t, apple_pay: e, samsung_pay: n, google_pay: r } = O(W), a = t.includes("stcpay"), o = t.includes("creditcard"), l = 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), i = !!(n != null && n.service_id), s = !!(r != null && r.merchant_id);
2052
+ const { t: A } = Y(), { methods: t, apple_pay: e, samsung_pay: n, google_pay: r } = U(q), a = t.includes("stcpay"), o = t.includes("creditcard"), l = 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), i = !!(n != null && n.service_id), s = !!(r != null && r.merchant_id);
2051
2053
  return !l && !a && !i && !s ? null : /* @__PURE__ */ p("div", { class: "flex w-full flex-col gap-4", role: "main", children: [
2052
2054
  a && /* @__PURE__ */ p(Cn, {}),
2053
2055
  l && /* @__PURE__ */ p(Dn, {}),
@@ -2276,24 +2278,24 @@ const hn = () => {
2276
2278
  isValid: !t && e && n
2277
2279
  };
2278
2280
  }, Tn = ({ value: A, setValue: t, err: e, setErr: n }) => {
2279
- const { t: r } = Y(), [a, o] = L(!1), l = (u) => {
2280
- const c = u.target.value.trim(), { isEmpty: v, isEnglishOnly: f, isValidFormat: w } = ve(c);
2281
- if (v) {
2281
+ const { t: r } = Y(), [a, o] = N(!1), l = (u) => {
2282
+ const c = u.target.value.trim(), { isEmpty: m, isEnglishOnly: f, isValidFormat: w } = ve(c);
2283
+ if (m) {
2282
2284
  o(!c);
2283
2285
  return;
2284
2286
  }
2285
2287
  if (!f) {
2286
- n((h) => P(S({}, h), { name: "validation.should_be_english_letters_only" }));
2288
+ n((y) => X(S({}, y), { name: "validation.should_be_english_letters_only" }));
2287
2289
  return;
2288
2290
  }
2289
2291
  if (!w) {
2290
- n((h) => P(S({}, h), { name: "validation.first_and_last_name_required" }));
2292
+ n((y) => X(S({}, y), { name: "validation.first_and_last_name_required" }));
2291
2293
  return;
2292
2294
  }
2293
- o(!1), n((h) => P(S({}, h), { name: "" }));
2295
+ o(!1), n((y) => X(S({}, y), { name: "" }));
2294
2296
  }, i = (u) => {
2295
- const c = u.target, { value: v } = c;
2296
- t(v);
2297
+ const c = u.target, { value: m } = c;
2298
+ t(m);
2297
2299
  }, s = fA(l, 1e3);
2298
2300
  return /* @__PURE__ */ p("div", { class: "space-y-2", role: "complementary", "aria-label": r("form.name_on_card"), children: [
2299
2301
  /* @__PURE__ */ p("div", { class: "flex items-end justify-between text-xs font-medium", children: [
@@ -2325,12 +2327,12 @@ const hn = () => {
2325
2327
  msg: e ? "" : "error.invalid_csc"
2326
2328
  };
2327
2329
  }, GA = lt({}), Ln = ({ setValue: A }) => {
2328
- const { t } = Y(), { handleBlur: e, err: n } = O(GA), r = "** / **", a = (l) => {
2330
+ const { t } = Y(), { handleBlur: e, err: n } = U(GA), r = "** / **", a = (l) => {
2329
2331
  const i = l.target, { value: s } = i;
2330
2332
  A(s);
2331
2333
  }, o = fA(e, 1e3);
2332
2334
  return V(() => {
2333
- new _A('[name="mysr-cc-exp"]');
2335
+ new zA('[name="mysr-cc-exp"]');
2334
2336
  }, []), /* @__PURE__ */ p(
2335
2337
  pA,
2336
2338
  {
@@ -2351,7 +2353,7 @@ const hn = () => {
2351
2353
  }
2352
2354
  );
2353
2355
  }, Nn = ({ value: A, setValue: t }) => {
2354
- const { t: e } = Y(), { handleBlur: n, err: r, config: a } = O(GA), o = (i) => {
2356
+ const { t: e } = Y(), { handleBlur: n, err: r, config: a } = U(GA), o = (i) => {
2355
2357
  const s = i.target, { value: u } = s;
2356
2358
  t(u);
2357
2359
  }, l = fA(n, 1e3);
@@ -2380,7 +2382,7 @@ const hn = () => {
2380
2382
  return !0;
2381
2383
  return !1;
2382
2384
  }, ct = () => {
2383
- const { supported_networks: A } = O(W);
2385
+ const { supported_networks: A } = U(q);
2384
2386
  function t(e) {
2385
2387
  let n = "";
2386
2388
  return In(e) && (n = "visa"), On(e) && (n = "mastercard"), he(e) && (n = "amex"), ye(e) && (n = "mada"), n === "" || !A.includes(n) ? "" : n;
@@ -2389,12 +2391,12 @@ const hn = () => {
2389
2391
  getCardSchema: t
2390
2392
  };
2391
2393
  }, Un = ({ value: A, setValue: t }) => {
2392
- const { t: e } = Y(), { handleBlur: n, err: r, setType: a } = O(GA), { getCardSchema: o } = ct(), l = (s) => {
2394
+ const { t: e } = Y(), { handleBlur: n, err: r, setType: a } = U(GA), { getCardSchema: o } = ct(), l = (s) => {
2393
2395
  const u = s.target, { value: c } = u;
2394
2396
  t(c), a(o(c));
2395
2397
  }, i = fA(n, 1e3);
2396
2398
  return V(() => {
2397
- new _A('[name="mysr-cc-number"]', {
2399
+ new zA('[name="mysr-cc-number"]', {
2398
2400
  mask: (s) => he(s) ? "#### ###### #####" : "#### #### #### ####"
2399
2401
  });
2400
2402
  }, []), /* @__PURE__ */ p(
@@ -2415,8 +2417,8 @@ const hn = () => {
2415
2417
  error: r.cc
2416
2418
  }
2417
2419
  );
2418
- }, 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,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", _n = "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", Gn = "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", En = "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", Jn = ({ type: A }) => {
2419
- const { supported_networks: t } = O(W), e = "h-4 sm:h-5 w-auto object-contain object-center";
2420
+ }, _n = "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", Gn = "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", En = "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", Jn = ({ type: A }) => {
2421
+ const { supported_networks: t } = U(q), e = "h-4 sm:h-5 w-auto object-contain object-center";
2420
2422
  return /* @__PURE__ */ p("div", { class: "absolute right-2 top-1/4 z-[2] flex -translate-y-1/2 items-center gap-1", children: [
2421
2423
  {
2422
2424
  alt: "AMEX",
@@ -2430,12 +2432,12 @@ const hn = () => {
2430
2432
  },
2431
2433
  {
2432
2434
  alt: "Visa",
2433
- src: zn,
2435
+ src: _n,
2434
2436
  network: "visa"
2435
2437
  },
2436
2438
  {
2437
2439
  alt: "MasterCard",
2438
- src: _n,
2440
+ src: zn,
2439
2441
  network: "mastercard"
2440
2442
  }
2441
2443
  ].filter((r) => A !== "" ? A.toLowerCase() === r.alt.toLowerCase() : t == null ? void 0 : t.includes(r.network)).map((r) => /* @__PURE__ */ p("img", { class: e, alt: r.alt, src: r.src, loading: "lazy" }, r.network)) });
@@ -2497,41 +2499,41 @@ const hn = () => {
2497
2499
  isValidCc: t
2498
2500
  };
2499
2501
  }, qn = ({ cc: A, setCc: t, cvc: e, setCvc: n, exp: r, setExp: a, err: o, setErr: l }) => {
2500
- const { t: i } = Y(), [s, u] = L(!1), [c, v] = L(""), { isValidCc: f } = Ce(), w = ae(() => we(c), [c]), h = (g) => {
2501
- const { value: d, name: m } = g.target, b = x(d.trim());
2502
- if (!b) {
2503
- u(!b);
2502
+ const { t: i } = Y(), [s, u] = N(!1), [c, m] = N(""), { isValidCc: f } = Ce(), w = ae(() => we(c), [c]), y = (v) => {
2503
+ const { value: d, name: g } = v.target, D = x(d.trim());
2504
+ if (!D) {
2505
+ u(!D);
2504
2506
  return;
2505
2507
  }
2506
- if (m === "mysr-cc-csc") {
2507
- const { msg: y } = ge(b, c);
2508
- l((C) => P(S({}, C), {
2509
- csc: y
2508
+ if (g === "mysr-cc-csc") {
2509
+ const { msg: b } = ge(D, c);
2510
+ l((h) => X(S({}, h), {
2511
+ csc: b
2510
2512
  }));
2511
2513
  }
2512
- if (m === "mysr-cc-exp") {
2513
- const { isValidExpFormat: y, isValidYear: C, inValidMonth: M } = be(b);
2514
- l((T) => P(S({}, T), {
2515
- exp_month: M ? "" : "error.invalid_month",
2516
- exp_year: C ? "" : "error.invalid_year",
2517
- exp: y ? "" : "error.invalid_date"
2514
+ if (g === "mysr-cc-exp") {
2515
+ const { isValidExpFormat: b, isValidYear: h, inValidMonth: C } = be(D);
2516
+ l((P) => X(S({}, P), {
2517
+ exp_month: C ? "" : "error.invalid_month",
2518
+ exp_year: h ? "" : "error.invalid_year",
2519
+ exp: b ? "" : "error.invalid_date"
2518
2520
  }));
2519
2521
  }
2520
- m === "mysr-cc-number" && l((y) => P(S({}, y), {
2521
- cc: c === "" ? "error.unsupported_cc_type" : f(b) ? "" : "error.invalid_cc_number"
2522
+ g === "mysr-cc-number" && l((b) => X(S({}, b), {
2523
+ cc: c === "" ? "error.unsupported_cc_type" : f(D) ? "" : "error.invalid_cc_number"
2522
2524
  }));
2523
2525
  };
2524
2526
  return V(() => {
2525
- Object.values(o).filter((g) => g).length === 0 && u(!1);
2527
+ Object.values(o).filter((v) => v).length === 0 && u(!1);
2526
2528
  }, [o]), /* @__PURE__ */ p(
2527
2529
  GA.Provider,
2528
2530
  {
2529
2531
  value: {
2530
2532
  err: o,
2531
2533
  setErr: l,
2532
- handleBlur: h,
2534
+ handleBlur: y,
2533
2535
  type: c,
2534
- setType: v,
2536
+ setType: m,
2535
2537
  config: w()
2536
2538
  },
2537
2539
  children: /* @__PURE__ */ p("div", { class: "space-y-2", role: "complementary", "aria-label": i("form.card_info"), children: [
@@ -2545,7 +2547,7 @@ const hn = () => {
2545
2547
  /* @__PURE__ */ p(Ln, { value: r, setValue: a }),
2546
2548
  /* @__PURE__ */ p(Nn, { value: e, setValue: n })
2547
2549
  ] }),
2548
- /* @__PURE__ */ p("p", { class: "flex flex-col gap-2 text-xs font-medium text-error", children: Object.entries(o).filter(([g]) => g !== "name").map(([g, d]) => /* @__PURE__ */ p("span", { class: "empty:hidden", children: i(d) }, g)) })
2550
+ /* @__PURE__ */ p("p", { class: "flex flex-col gap-2 text-xs font-medium text-error", children: Object.entries(o).filter(([v]) => v !== "name").map(([v, d]) => /* @__PURE__ */ p("span", { class: "empty:hidden", children: i(d) }, v)) })
2549
2551
  ] })
2550
2552
  }
2551
2553
  );
@@ -2558,7 +2560,7 @@ const hn = () => {
2558
2560
  callback_url: a,
2559
2561
  payment_button_type: o,
2560
2562
  currency: l
2561
- } = O(W), [i, s] = L(""), [u, c] = L(""), [v, f] = L(""), [w, h] = L(""), { getCardSchema: g } = ct(), { isValidCc: d } = Ce(), m = {
2563
+ } = U(q), [i, s] = N(""), [u, c] = N(""), [m, f] = N(""), [w, y] = N(""), { getCardSchema: v } = ct(), { isValidCc: d } = Ce(), g = {
2562
2564
  name: "",
2563
2565
  csc: "",
2564
2566
  cc: "",
@@ -2566,31 +2568,31 @@ const hn = () => {
2566
2568
  exp_month: "",
2567
2569
  exp_year: ""
2568
2570
  }, {
2569
- makePayment: b,
2570
- busy: y,
2571
- fail: C,
2572
- success: M,
2573
- loading: T,
2574
- error: q,
2575
- setError: I
2576
- } = wA({ defaultError: m });
2577
- return /* @__PURE__ */ p("form", { class: "space-y-6", onSubmit: (E) => {
2578
- E.preventDefault();
2579
- const { isValid: U } = ve(i), _ = x(u), AA = x(w), lA = x(v), dA = g(_), sA = d(_, dA), { isValid: mA } = ge(lA, dA), { isValid: CA } = be(AA);
2580
- if (!U || !sA || !mA || !CA) {
2581
- const R = S({}, m);
2582
- U || (R.name = A("error.invalid_name")), sA || (R.cc = A("error.invalid_cc_number")), mA || (R.csc = A("error.invalid_csc")), CA || (R.exp = A("error.invalid_date")), I(R);
2571
+ makePayment: D,
2572
+ busy: b,
2573
+ fail: h,
2574
+ success: C,
2575
+ loading: P,
2576
+ error: O,
2577
+ setError: L
2578
+ } = wA({ defaultError: g });
2579
+ return /* @__PURE__ */ p("form", { class: "space-y-6", onSubmit: (J) => {
2580
+ J.preventDefault();
2581
+ const { isValid: _ } = ve(i), G = x(u), AA = x(w), lA = x(m), dA = v(G), sA = d(G, dA), { isValid: mA } = ge(lA, dA), { isValid: CA } = be(AA);
2582
+ if (!_ || !sA || !mA || !CA) {
2583
+ const R = S({}, g);
2584
+ _ || (R.name = A("error.invalid_name")), sA || (R.cc = A("error.invalid_cc_number")), mA || (R.csc = A("error.invalid_csc")), CA || (R.exp = A("error.invalid_date")), L(R);
2583
2585
  return;
2584
2586
  }
2585
- const [JA, G] = AA.split("/"), Q = {
2587
+ const [JA, E] = AA.split("/"), T = {
2586
2588
  type: "creditcard",
2587
2589
  name: i,
2588
- number: _,
2590
+ number: G,
2589
2591
  month: JA,
2590
- year: G,
2592
+ year: E,
2591
2593
  cvc: lA
2592
2594
  };
2593
- n != null && n.manual && (Q.manual = !0), n != null && n.save_card && (Q.save_card = !0), r && (Q.statement_descriptor = r);
2595
+ n != null && n.manual && (T.manual = !0), n != null && n.save_card && (T.save_card = !0), r && (T.statement_descriptor = r);
2594
2596
  function Z(R) {
2595
2597
  const { transaction_url: ut } = R.source;
2596
2598
  ut && (window.location.href = ut);
@@ -2598,10 +2600,10 @@ const hn = () => {
2598
2600
  function eA(R) {
2599
2601
  console.error(R);
2600
2602
  }
2601
- b({
2603
+ D({
2602
2604
  data: {
2603
2605
  callback_url: a,
2604
- source: Q
2606
+ source: T
2605
2607
  },
2606
2608
  initPayment: !0,
2607
2609
  onFailed: eA,
@@ -2610,21 +2612,21 @@ const hn = () => {
2610
2612
  console.error(R);
2611
2613
  });
2612
2614
  }, children: [
2613
- /* @__PURE__ */ p(Tn, { value: i, setValue: s, err: q, setErr: I }),
2615
+ /* @__PURE__ */ p(Tn, { value: i, setValue: s, err: O, setErr: L }),
2614
2616
  /* @__PURE__ */ p(
2615
2617
  qn,
2616
2618
  {
2617
2619
  cc: u,
2618
2620
  setCc: c,
2619
- cvc: v,
2621
+ cvc: m,
2620
2622
  setCvc: f,
2621
2623
  exp: w,
2622
- setExp: h,
2623
- err: q,
2624
- setErr: I
2624
+ setExp: y,
2625
+ err: O,
2626
+ setErr: L
2625
2627
  }
2626
2628
  ),
2627
- /* @__PURE__ */ p(HA, { type: "submit", disabled: T, success: M, fail: C, busy: y, children: /* @__PURE__ */ p($, { children: [
2629
+ /* @__PURE__ */ p(HA, { type: "submit", disabled: P, success: C, fail: h, busy: b, children: /* @__PURE__ */ p($, { children: [
2628
2630
  (o !== "plain" || !e) && A(`button.${o}`),
2629
2631
  " ",
2630
2632
  /* @__PURE__ */ p("span", { class: "currency-amount", children: /* @__PURE__ */ p(ie, { currency: l, formattedAmount: t }) })
@@ -3050,9 +3052,9 @@ var Rn = function() {
3050
3052
  for (var i = De(e), s = i.next(); !s.done; s = i.next()) {
3051
3053
  var u = s.value, c = l.match(u);
3052
3054
  if (!(!c || c.length < 2)) {
3053
- var v = c.slice(1).join("");
3054
- if (v)
3055
- return n++, r.replace(l, v);
3055
+ var m = c.slice(1).join("");
3056
+ if (m)
3057
+ return n++, r.replace(l, m);
3056
3058
  }
3057
3059
  }
3058
3060
  } catch (f) {
@@ -3114,7 +3116,7 @@ var rr = function() {
3114
3116
  t === void 0 && (t = this._duration);
3115
3117
  var n = TA(), r = 1.3, a = function() {
3116
3118
  return EA(e, void 0, void 0, function() {
3117
- var o, l, i, s, u, c, v;
3119
+ var o, l, i, s, u, c, m;
3118
3120
  return bA(this, function(f) {
3119
3121
  switch (f.label) {
3120
3122
  case 0:
@@ -3138,7 +3140,7 @@ var rr = function() {
3138
3140
  return u = f.sent(), c = { error: u }, [3, 9];
3139
3141
  case 8:
3140
3142
  try {
3141
- l && !l.done && (v = o.return) && v.call(o);
3143
+ l && !l.done && (m = o.return) && m.call(o);
3142
3144
  } finally {
3143
3145
  if (c) throw c.error;
3144
3146
  }
@@ -3347,7 +3349,7 @@ function xt(A, t) {
3347
3349
  return ["SAR", "AED"].includes(t) && (r = r.replace(t, "").trim()), r;
3348
3350
  }
3349
3351
  function pr({ config: A }) {
3350
- const { amount: t, currency: e, language: n, translations: r, publishable_api_key: a } = A, o = document.documentElement.dir === "rtl" || n === "ar", l = uA[e] || uA.default, i = et(t, e), s = xt(t, e), [u, c] = L(P(S({
3352
+ const { amount: t, currency: e, language: n, translations: r, publishable_api_key: a } = A, o = document.documentElement.dir === "rtl" || n === "ar", l = uA[e] || uA.default, i = et(t, e), s = xt(t, e), [u, c] = N(X(S({
3351
3353
  version: st
3352
3354
  }, A), {
3353
3355
  translations: We(r),
@@ -3359,43 +3361,43 @@ function pr({ config: A }) {
3359
3361
  isTestMode: (a == null ? void 0 : a.startsWith("pk_test")) || location.protocol === "http:"
3360
3362
  }));
3361
3363
  cr(c), V(() => {
3362
- c((w) => P(S({}, w), {
3364
+ c((w) => X(S({}, w), {
3363
3365
  amount: u.amount,
3364
3366
  formattedAmount: xt(u.amount, u.currency),
3365
3367
  decimalAmount: et(u.amount, u.currency).toFixed(l).toString()
3366
3368
  }));
3367
3369
  }, [u.amount]);
3368
- const [v, f] = L({
3370
+ const [m, f] = N({
3369
3371
  samsung: !A.samsung_pay,
3370
3372
  google: !A.google_pay,
3371
3373
  apple: !A.apple_pay
3372
3374
  });
3373
3375
  return V(() => {
3374
- var h, g;
3375
- const w = (d, m) => {
3376
+ var y, v;
3377
+ const w = (d, g) => {
3376
3378
  document.body.append(
3377
3379
  Object.assign(document.createElement("script"), {
3378
3380
  src: d,
3379
- onload: m
3381
+ onload: g
3380
3382
  })
3381
3383
  );
3382
3384
  };
3383
3385
  !window.SamsungPay && A.samsung_pay && w(
3384
3386
  "https://img.mpay.samsung.com/gsmpi/sdk/samsungpay_web_sdk.js",
3385
- () => f((d) => P(S({}, d), { samsung: !0 }))
3386
- ), !((g = (h = window.google) == null ? void 0 : h.payments) != null && g.api) && A.google_pay && w(
3387
+ () => f((d) => X(S({}, d), { samsung: !0 }))
3388
+ ), !((v = (y = window.google) == null ? void 0 : y.payments) != null && v.api) && A.google_pay && w(
3387
3389
  "https://pay.google.com/gp/p/js/pay.js",
3388
- () => f((d) => P(S({}, d), { google: !0 }))
3389
- ), A.apple_pay && w(
3390
+ () => f((d) => X(S({}, d), { google: !0 }))
3391
+ ), !window.ApplePaySession && A.apple_pay && w(
3390
3392
  "https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js",
3391
- () => f((d) => P(S({}, d), { apple: !0 }))
3393
+ () => f((d) => X(S({}, d), { apple: !0 }))
3392
3394
  );
3393
3395
  }, []), /* @__PURE__ */ p(
3394
- W.Provider,
3396
+ q.Provider,
3395
3397
  {
3396
- value: P(S({}, u), {
3398
+ value: X(S({}, u), {
3397
3399
  setFormSettings: c,
3398
- scriptsLoaded: v
3400
+ scriptsLoaded: m
3399
3401
  }),
3400
3402
  children: /* @__PURE__ */ p(
3401
3403
  ir,
@@ -3430,57 +3432,57 @@ const fr = (A) => {
3430
3432
  const n = (e == null ? void 0 : e.constructor.prototype.constructor.name) === "AsyncFunction", r = e.toString().startsWith("async");
3431
3433
  return n || r;
3432
3434
  }
3433
- return A.on_initiating && !t(A.on_initiating) && D(
3435
+ return A.on_initiating && !t(A.on_initiating) && M(
3434
3436
  "On initiating must be a promise based callback, check documentation for implementation details"
3435
- ), A.on_completed && !t(A.on_completed) && D(
3437
+ ), A.on_completed && !t(A.on_completed) && M(
3436
3438
  "On completed must be a promise based callback, check documentation for implementation details"
3437
- ), A.on_failure && !t(A.on_failure) && D(
3439
+ ), A.on_failure && !t(A.on_failure) && M(
3438
3440
  "On failure must be a promise based callback, check documentation for implementation details"
3439
- ), A.on_redirect && !t(A.on_redirect) && D(
3441
+ ), A.on_redirect && !t(A.on_redirect) && M(
3440
3442
  "On redirect must be a promise based callback, check documentation for implementation details"
3441
3443
  ), !0;
3442
3444
  };
3443
3445
  function dr(A) {
3444
3446
  for (const t of A)
3445
- Object.prototype.hasOwnProperty.call(t, "amount") || J("amount"), typeof t.amount != "number" && D("`amount` must be a number"), Number.isInteger(t.amount) || D(
3447
+ Object.prototype.hasOwnProperty.call(t, "amount") || W("amount"), typeof t.amount != "number" && M("`amount` must be a number"), Number.isInteger(t.amount) || M(
3446
3448
  "amount must be in minor unit of selected currency, e.g. for $19.99 set amount to 1999."
3447
- ), t.amount == 0 && D("amount must be non-zero value"), t.recipient_id || J("recipient_id"), typeof t.recipient_id != "string" && D("`recipient_id` must be a UUID string"), t.fee_source && typeof t.fee_source != "boolean" && D("`fee_source` must be a boolean"), t.refundable && typeof t.refundable != "boolean" && D("`refundable` must be a boolean"), t.reference && typeof t.reference != "string" && D("`reference` must be a string"), t.description && typeof t.description != "string" && D("`description` must be a string");
3449
+ ), t.amount == 0 && M("amount must be non-zero value"), t.recipient_id || W("recipient_id"), typeof t.recipient_id != "string" && M("`recipient_id` must be a UUID string"), t.fee_source && typeof t.fee_source != "boolean" && M("`fee_source` must be a boolean"), t.refundable && typeof t.refundable != "boolean" && M("`refundable` must be a boolean"), t.reference && typeof t.reference != "string" && M("`reference` must be a string"), t.description && typeof t.description != "string" && M("`description` must be a string");
3448
3450
  }
3449
3451
  const mr = (A) => {
3450
3452
  var t, e;
3451
- return A.payment_button_type && typeof A.payment_button_type != "string" && aA("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) || D("`given_id` must be a valid UUID v4")), A.payment_button_type && !Xn.includes(A.payment_button_type) && D("Unsupported button type, check documentation for list of supported types"), A.language && typeof A.language != "string" && aA("Language"), A.translations && typeof A.translations != "object" && aA("Translations"), A.metadata && typeof A.metadata != "object" && D("Metadata must be and object"), A.metadata && Object.entries(A.metadata).length > 50 && D("Only 50 Key/Value pairs are allowed in metadata"), A.invoice_id && typeof A.invoice_id != "string" && D("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(
3453
+ return A.payment_button_type && typeof A.payment_button_type != "string" && aA("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) || M("`given_id` must be a valid UUID v4")), A.payment_button_type && !Xn.includes(A.payment_button_type) && M("Unsupported button type, check documentation for list of supported types"), A.language && typeof A.language != "string" && aA("Language"), A.translations && typeof A.translations != "object" && aA("Translations"), A.metadata && typeof A.metadata != "object" && M("Metadata must be and object"), A.metadata && Object.entries(A.metadata).length > 50 && M("Only 50 Key/Value pairs are allowed in metadata"), A.invoice_id && typeof A.invoice_id != "string" && M("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(
3452
3454
  (t = A.invoice_id) != null ? t : ""
3453
- ) || D("Invalid invoice ID format")), A.statement_descriptor && typeof A.statement_descriptor != "string" && D("Statement descriptor must be a string"), A.statement_descriptor && (/^[\w\s\d\-~]{1,64}$/.test((e = A.statement_descriptor) != null ? e : "") || D(
3455
+ ) || M("Invalid invoice ID format")), A.statement_descriptor && typeof A.statement_descriptor != "string" && M("Statement descriptor must be a string"), A.statement_descriptor && (/^[\w\s\d\-~]{1,64}$/.test((e = A.statement_descriptor) != null ? e : "") || M(
3454
3456
  'Invalid format for the statement descriptor [length between 1 and 64 characters, allowed alphanumeric characters, white-spaces, "/", "-" and "~" symbols] '
3455
- )), A.fixed_width && typeof A.fixed_width != "boolean" && D("Fixed width expects boolean value"), A.apply_coupon && typeof A.apply_coupon != "boolean" && D("apply_coupon should be a boolean"), A.splits && !Array.isArray(A.splits) && D("splits must be an array"), A.splits && A.splits.length == 0 && D("splits must be an array that contains split details"), A.splits && A.splits.length > 0 && dr(A.splits), !0;
3457
+ )), A.fixed_width && typeof A.fixed_width != "boolean" && M("Fixed width expects boolean value"), A.apply_coupon && typeof A.apply_coupon != "boolean" && M("apply_coupon should be a boolean"), A.splits && !Array.isArray(A.splits) && M("splits must be an array"), A.splits && A.splits.length == 0 && M("splits must be an array that contains split details"), A.splits && A.splits.length > 0 && dr(A.splits), !0;
3456
3458
  }, Vt = (A, t) => A.every((e) => t.includes(e)), vr = (A) => {
3457
- var t, e, n, r, a, o, l, i, s, u, c, v, f, w, h, g;
3458
- if (A.methods && !Array.isArray(A.methods) && D("Methods must be an array"), A.methods.includes("creditcard") && ((t = A.credit_card) != null && t.manual && typeof A.credit_card.manual != "boolean" && D("Credit Card manual option must be a boolean"), (e = A.credit_card) != null && e.save_card && typeof A.credit_card.save_card != "boolean" && D("Credit Card save card option must be a boolean")), A.methods.includes("applepay") && (A.apple_pay || J("Apple Pay configuration"), A.apple_pay)) {
3459
- const d = 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), b = /^[\x20-\x7E]+$/;
3460
- d || J("Apple Pay country or Payment Options country"), (d == null ? void 0 : d.trim().length) !== 2 && D("Country must be two-letter ISO 3166 country code"), m || J("Apple Pay label or Payment Options label"), (m == null ? void 0 : m.trim().length) === 0 && D("Apple Pay label or Payment Options label can't be empty"), typeof m == "string" && !b.test(m) && D("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" && D("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" && D("Apple Pay save card option must be a boolean"), A.apple_pay.validate_merchant_url && !ke(A.apple_pay.validate_merchant_url) && aA("Apple Pay Validate Merchant URL"), (s = A.apple_pay) != null && s.merchant_capabilities && (Vt(A.apple_pay.merchant_capabilities, jA) || D(`Apple Pay merchant capabilities supports only ${jA.join(", ")}`)), (u = A.apple_pay) != null && u.supported_countries && !Array.isArray(A.apple_pay.supported_countries) && D("Apple Pay Supported Countries must be an array of country codes");
3459
+ var t, e, n, r, a, o, l, i, s, u, c, m, f, w, y, v, d, g, D, b;
3460
+ if (A.methods && !Array.isArray(A.methods) && M("Methods must be an array"), A.methods.includes("creditcard") && ((t = A.credit_card) != null && t.manual && typeof A.credit_card.manual != "boolean" && M("Credit Card manual option must be a boolean"), (e = A.credit_card) != null && e.save_card && typeof A.credit_card.save_card != "boolean" && M("Credit Card save card option must be a boolean")), A.methods.includes("applepay") && (A.apple_pay || W("Apple Pay configuration"), A.apple_pay)) {
3461
+ const h = A.apple_pay.country || ((n = A.payment_options) == null ? void 0 : n.country), C = A.apple_pay.label || ((r = A.payment_options) == null ? void 0 : r.label), P = /^[\x20-\x7E]+$/;
3462
+ h || W("Apple Pay country or Payment Options country"), (h == null ? void 0 : h.trim().length) !== 2 && M("Country must be two-letter ISO 3166 country code"), C || W("Apple Pay label or Payment Options label"), (C == null ? void 0 : C.trim().length) === 0 && M("Apple Pay label or Payment Options label can't be empty"), typeof C == "string" && !P.test(C) && M("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" && M("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" && M("Apple Pay save card option must be a boolean"), (s = A.samsung_pay) != null && s.manual && typeof ((u = A.samsung_pay) == null ? void 0 : u.manual) != "boolean" && M("Samsung Pay manual option must be a boolean"), (c = A.samsung_pay) != null && c.save_card && typeof ((m = A.samsung_pay) == null ? void 0 : m.save_card) != "boolean" && M("Samsung Pay save card option must be a boolean"), A.apple_pay.validate_merchant_url && !ke(A.apple_pay.validate_merchant_url) && aA("Apple Pay Validate Merchant URL"), (f = A.apple_pay) != null && f.merchant_capabilities && (Vt(A.apple_pay.merchant_capabilities, jA) || M(`Apple Pay merchant capabilities supports only ${jA.join(", ")}`)), (w = A.apple_pay) != null && w.supported_countries && !Array.isArray(A.apple_pay.supported_countries) && M("Apple Pay Supported Countries must be an array of country codes");
3461
3463
  }
3462
3464
  if (A.samsung_pay) {
3463
- const d = A.samsung_pay.country || ((c = A.payment_options) == null ? void 0 : c.country), m = A.samsung_pay.label || ((v = A.payment_options) == null ? void 0 : v.label), b = A.samsung_pay.order_number, y = A.publishable_api_key.startsWith("pk_test") || location.protocol === "http:";
3464
- !window.SamsungPay && y && console.warn(
3465
+ const h = A.samsung_pay.country || ((y = A.payment_options) == null ? void 0 : y.country), C = A.samsung_pay.label || ((v = A.payment_options) == null ? void 0 : v.label), P = A.samsung_pay.order_number, O = A.publishable_api_key.startsWith("pk_test") || location.protocol === "http:";
3466
+ !window.SamsungPay && O && console.warn(
3465
3467
  "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"
3466
- ), A.samsung_pay.service_id || J("Samsung Pay service_id"), A.samsung_pay.service_id.trim().length === 0 && D("Samsung Pay service_id can't be empty"), b || J("Samsung Pay order_number or Payment Options order_number"), (b == null ? void 0 : b.trim().length) === 0 && D("Order number can't be empty"), d || J("Samsung Pay country or Payment Options country"), (d == null ? void 0 : d.trim().length) !== 2 && D("Country must be two-letter ISO 3166 country code"), m || J("Samsung Pay label or Payment Options label"), (m == null ? void 0 : m.trim().length) === 0 && D("Samsung Pay label or Payment Options label can't be empty");
3468
+ ), A.samsung_pay.service_id || W("Samsung Pay service_id"), A.samsung_pay.service_id.trim().length === 0 && M("Samsung Pay service_id can't be empty"), P || W("Samsung Pay order_number or Payment Options order_number"), (P == null ? void 0 : P.trim().length) === 0 && M("Order number can't be empty"), h || W("Samsung Pay country or Payment Options country"), (h == null ? void 0 : h.trim().length) !== 2 && M("Country must be two-letter ISO 3166 country code"), C || W("Samsung Pay label or Payment Options label"), (C == null ? void 0 : C.trim().length) === 0 && M("Samsung Pay label or Payment Options label can't be empty");
3467
3469
  }
3468
3470
  if (A.google_pay) {
3469
- const d = A.google_pay.country || ((f = A.payment_options) == null ? void 0 : f.country), m = A.google_pay.label || ((w = A.payment_options) == null ? void 0 : w.label), b = A.publishable_api_key.startsWith("pk_test") || location.protocol === "http:", y = A.google_pay.environment;
3470
- !((g = (h = window.google) == null ? void 0 : h.payments) != null && g.api) && b && console.warn(
3471
+ const h = A.google_pay.country || ((d = A.payment_options) == null ? void 0 : d.country), C = A.google_pay.label || ((g = A.payment_options) == null ? void 0 : g.label), P = A.publishable_api_key.startsWith("pk_test") || location.protocol === "http:", O = A.google_pay.environment;
3472
+ !((b = (D = window.google) == null ? void 0 : D.payments) != null && b.api) && P && console.warn(
3471
3473
  "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"
3472
- ), A.google_pay.merchant_id || J("Google Pay service_id"), A.google_pay.merchant_id.trim().length === 0 && D("Google Pay service_id can't be empty"), d || J("Google Pay country or Payment Options country"), (d == null ? void 0 : d.trim().length) !== 2 && D("Country must be two-letter ISO 3166 country code"), m || J("Google Pay label or Payment Options label"), (m == null ? void 0 : m.trim().length) === 0 && D("Google Pay label or Payment Options label can't be empty"), y && !["PRODUCTION", "TEST"].includes(y) && D("Google Pay environment can be set to `TEST` or `PRODUCTION`");
3473
- const { auth_methods: C } = A.google_pay;
3474
- C && !Array.isArray(C) && D("Google Pay auth_methods must be an array"), C && !C.every((M) => M === "PAN_ONLY" || M === "CRYPTOGRAM_3DS") && D("Google Pay auth_methods must contain 'CRYPTOGRAM_3DS' and/or 'PAN_ONLY'");
3474
+ ), A.google_pay.merchant_id || W("Google Pay service_id"), A.google_pay.merchant_id.trim().length === 0 && M("Google Pay service_id can't be empty"), h || W("Google Pay country or Payment Options country"), (h == null ? void 0 : h.trim().length) !== 2 && M("Country must be two-letter ISO 3166 country code"), C || W("Google Pay label or Payment Options label"), (C == null ? void 0 : C.trim().length) === 0 && M("Google Pay label or Payment Options label can't be empty"), O && !["PRODUCTION", "TEST"].includes(O) && M("Google Pay environment can be set to `TEST` or `PRODUCTION`");
3475
+ const { auth_methods: L } = A.google_pay;
3476
+ L && !Array.isArray(L) && M("Google Pay auth_methods must be an array"), L && !L.every((k) => k === "PAN_ONLY" || k === "CRYPTOGRAM_3DS") && M("Google Pay auth_methods must contain 'CRYPTOGRAM_3DS' and/or 'PAN_ONLY'");
3475
3477
  }
3476
- return A.supported_networks && (Vt(A.supported_networks, RA) || D(`Moyasar form supports only ${RA.join(", ")} networks`)), !0;
3477
- }, gr = (A) => (A.element || J("element"), typeof A.element != "string" && !(A.element instanceof Element) && aA("Element"), typeof A.element == "string" && !document.querySelector(A.element) && D(`Selector ${A.element} does't exist id DOM`), A.publishable_api_key.trim() || J("publishable_api_key"), A.publishable_api_key && (/^pk_(test|live)_/.test(A.publishable_api_key) || aA("Publishable API Key"), location.protocol.toLowerCase() === "http:" && A.publishable_api_key.startsWith("pk_live") && D(
3478
+ return A.supported_networks && (Vt(A.supported_networks, RA) || M(`Moyasar form supports only ${RA.join(", ")} networks`)), !0;
3479
+ }, gr = (A) => (A.element || W("element"), typeof A.element != "string" && !(A.element instanceof Element) && aA("Element"), typeof A.element == "string" && !document.querySelector(A.element) && M(`Selector ${A.element} does't exist id DOM`), A.publishable_api_key.trim() || W("publishable_api_key"), A.publishable_api_key && (/^pk_(test|live)_/.test(A.publishable_api_key) || aA("Publishable API Key"), location.protocol.toLowerCase() === "http:" && A.publishable_api_key.startsWith("pk_live") && M(
3478
3480
  "Production key (pk_live) require secure connection, for development use key starting with pk_test"
3479
- )), A.amount || J("amount"), A.amount && ((typeof A.amount != "number" || A.amount < 100) && D("Amount must be a non-negative integer. Minimal supported value is 100."), Number.isInteger(A.amount) || D(
3481
+ )), A.amount || W("amount"), A.amount && ((typeof A.amount != "number" || A.amount < 100) && M("Amount must be a non-negative integer. Minimal supported value is 100."), Number.isInteger(A.amount) || M(
3480
3482
  "Amount must be in minor unit of selected currency, e.g. for $19.99 set amount to 1999."
3481
- )), A.currency || J("currency"), A.currency && A.currency.trim().length !== 3 && D("Currency must be in ISO 3166-1 alpha-3 country code format"), A.description || J("description"), A.description && A.description.trim().length === 0 && D("Description can't be empty"), A.callback_url || J("callback_url"), ke(A.callback_url) || aA("Callback URL"), !0), D = (A) => {
3483
+ )), A.currency || W("currency"), A.currency && A.currency.trim().length !== 3 && M("Currency must be in ISO 3166-1 alpha-3 country code format"), A.description || W("description"), A.description && A.description.trim().length === 0 && M("Description can't be empty"), A.callback_url || W("callback_url"), ke(A.callback_url) || aA("Callback URL"), !0), M = (A) => {
3482
3484
  throw window.silentError && console.error(A), new Error(A);
3483
- }, J = (A) => D(`Missing entry: ${A} is required`), aA = (A) => D(`${A} is invalid`), ke = (A) => typeof A == "string" && /^https?:\/\/.+/.test(A), hr = (A, t = !1) => (t && (window.silentError = t), gr(A), vr(A), mr(A), fr(A), !0), yr = (A) => {
3485
+ }, W = (A) => M(`Missing entry: ${A} is required`), aA = (A) => M(`${A} is invalid`), ke = (A) => typeof A == "string" && /^https?:\/\/.+/.test(A), hr = (A, t = !1) => (t && (window.silentError = t), gr(A), vr(A), mr(A), fr(A), !0), yr = (A) => {
3484
3486
  const t = A.publishable_api_key.startsWith("pk_test") || location.protocol === "http:", e = A.element;
3485
3487
  let n;
3486
3488
  if (typeof e == "string" && (n = document.querySelector(e)), e instanceof Element && (n = e), !n) {
@@ -3519,7 +3521,7 @@ class Mr {
3519
3521
  yr(e);
3520
3522
  }
3521
3523
  static setAmount(t) {
3522
- tt ? tt((e) => P(S({}, e), { amount: t })) : console.warn("Form not yet initialized.");
3524
+ tt ? tt((e) => X(S({}, e), { amount: t })) : console.warn("Form not yet initialized.");
3523
3525
  }
3524
3526
  }
3525
3527
  export {