mainstack-payments 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { jsx as b, jsxs as J, Fragment as _n } from "react/jsx-runtime";
2
2
  import { Colors as Jt, CancelFilledIcon as Ec, Input as fa, CountrySelect as L0, Button as dn, LockIcon as z0, customSnackbar as zt, SnackbarType as Vt, GooglePayIcon as V0, NotificationsFilledIcon as nf, ExpandMoreIcon as U0, ClickTooltip as rf, InfoIcon as af, CloseIcon as G0, Loader as W0, MainstackProvider as H0 } from "mainstack-design-system";
3
3
  import * as R from "react";
4
- import xe, { forwardRef as rn, useContext as Ke, createContext as Gt, useLayoutEffect as Os, useEffect as ve, useState as se, useRef as $e, useMemo as st, useCallback as fe, useReducer as K0, useInsertionEffect as qm, createElement as Ym, useId as Ma, cloneElement as q0, Children as Y0, isValidElement as Zm, memo as Z0, useSyncExternalStore as X0, PureComponent as J0, useImperativeHandle as Q0 } from "react";
4
+ import xe, { forwardRef as rn, useContext as Ke, createContext as Gt, useLayoutEffect as Os, useEffect as he, useState as le, useRef as $e, useMemo as st, useCallback as fe, useReducer as K0, useInsertionEffect as qm, createElement as Ym, useId as Ma, cloneElement as q0, Children as Y0, isValidElement as Zm, memo as Z0, useSyncExternalStore as X0, PureComponent as J0, useImperativeHandle as Q0 } from "react";
5
5
  import { createPortal as Xm } from "react-dom";
6
6
  import of from "axios";
7
7
  function eS(e) {
@@ -776,7 +776,7 @@ function IS() {
776
776
  }
777
777
  }
778
778
  }
779
- var C = l, M = c, _ = s, B = i, D = t, ae = u, K = r, re = m, pe = h, q = n, le = o, ne = a, ce = d, ye = !1;
779
+ var C = l, M = c, _ = s, B = i, D = t, ae = u, K = r, re = m, pe = h, q = n, oe = o, ne = a, ce = d, ye = !1;
780
780
  function Me(O) {
781
781
  return ye || (ye = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), $(O) || P(O) === l;
782
782
  }
@@ -807,7 +807,7 @@ function IS() {
807
807
  function G(O) {
808
808
  return P(O) === n;
809
809
  }
810
- function oe(O) {
810
+ function ie(O) {
811
811
  return P(O) === o;
812
812
  }
813
813
  function te(O) {
@@ -816,7 +816,7 @@ function IS() {
816
816
  function Se(O) {
817
817
  return P(O) === d;
818
818
  }
819
- _e.AsyncMode = C, _e.ConcurrentMode = M, _e.ContextConsumer = _, _e.ContextProvider = B, _e.Element = D, _e.ForwardRef = ae, _e.Fragment = K, _e.Lazy = re, _e.Memo = pe, _e.Portal = q, _e.Profiler = le, _e.StrictMode = ne, _e.Suspense = ce, _e.isAsyncMode = Me, _e.isConcurrentMode = $, _e.isContextConsumer = F, _e.isContextProvider = j, _e.isElement = N, _e.isForwardRef = H, _e.isFragment = ee, _e.isLazy = V, _e.isMemo = X, _e.isPortal = G, _e.isProfiler = oe, _e.isStrictMode = te, _e.isSuspense = Se, _e.isValidElementType = E, _e.typeOf = P;
819
+ _e.AsyncMode = C, _e.ConcurrentMode = M, _e.ContextConsumer = _, _e.ContextProvider = B, _e.Element = D, _e.ForwardRef = ae, _e.Fragment = K, _e.Lazy = re, _e.Memo = pe, _e.Portal = q, _e.Profiler = oe, _e.StrictMode = ne, _e.Suspense = ce, _e.isAsyncMode = Me, _e.isConcurrentMode = $, _e.isContextConsumer = F, _e.isContextProvider = j, _e.isElement = N, _e.isForwardRef = H, _e.isFragment = ee, _e.isLazy = V, _e.isMemo = X, _e.isPortal = G, _e.isProfiler = ie, _e.isStrictMode = te, _e.isSuspense = Se, _e.isValidElementType = E, _e.typeOf = P;
820
820
  }()), _e;
821
821
  }
822
822
  process.env.NODE_ENV === "production" ? Tc.exports = OS() : Tc.exports = IS();
@@ -1726,7 +1726,7 @@ function hg(e) {
1726
1726
  return /* @__PURE__ */ b(px, { value: { zIndex: n }, children: t });
1727
1727
  }
1728
1728
  hg.displayName = "PortalManager";
1729
- var wo = globalThis != null && globalThis.document ? Os : ve, [mg, mx] = yn({
1729
+ var wo = globalThis != null && globalThis.document ? Os : he, [mg, mx] = yn({
1730
1730
  strict: !1,
1731
1731
  name: "PortalContext"
1732
1732
  }), _u = "chakra-portal", gx = ".chakra-portal", vx = (e) => /* @__PURE__ */ b(
@@ -1745,8 +1745,8 @@ var wo = globalThis != null && globalThis.document ? Os : ve, [mg, mx] = yn({
1745
1745
  children: e.children
1746
1746
  }
1747
1747
  ), yx = (e) => {
1748
- const { appendToParentPortal: t, children: n } = e, [r, a] = se(null), o = $e(null), [, i] = se({});
1749
- ve(() => i({}), []);
1748
+ const { appendToParentPortal: t, children: n } = e, [r, a] = le(null), o = $e(null), [, i] = le({});
1749
+ he(() => i({}), []);
1750
1750
  const s = mx(), l = hx();
1751
1751
  wo(() => {
1752
1752
  if (!r)
@@ -1776,7 +1776,7 @@ var wo = globalThis != null && globalThis.document ? Os : ve, [mg, mx] = yn({
1776
1776
  const { children: t, containerRef: n, appendToParentPortal: r } = e, a = n.current, o = a ?? (typeof window < "u" ? document.body : void 0), i = st(() => {
1777
1777
  const l = a == null ? void 0 : a.ownerDocument.createElement("div");
1778
1778
  return l && (l.className = _u), l;
1779
- }, [a]), [, s] = se({});
1779
+ }, [a]), [, s] = le({});
1780
1780
  return wo(() => s({}), []), wo(() => {
1781
1781
  if (!(!i || !o))
1782
1782
  return o.appendChild(i), () => {
@@ -1898,9 +1898,9 @@ function vg(e) {
1898
1898
  disableTransitionOnChange: o
1899
1899
  } = {},
1900
1900
  colorModeManager: i = Ex
1901
- } = e, s = a === "dark" ? "dark" : "light", [l, c] = se(
1901
+ } = e, s = a === "dark" ? "dark" : "light", [l, c] = le(
1902
1902
  () => Tf(i, s)
1903
- ), [u, d] = se(
1903
+ ), [u, d] = le(
1904
1904
  () => Tf(i)
1905
1905
  ), { getSystemTheme: f, setClassName: h, setDataset: m, addListener: p } = st(
1906
1906
  () => Sx({ preventTransition: o }),
@@ -1914,7 +1914,7 @@ function vg(e) {
1914
1914
  );
1915
1915
  wo(() => {
1916
1916
  a === "system" && d(f());
1917
- }, []), ve(() => {
1917
+ }, []), he(() => {
1918
1918
  const P = i.get();
1919
1919
  if (P) {
1920
1920
  y(P);
@@ -1929,7 +1929,7 @@ function vg(e) {
1929
1929
  const w = fe(() => {
1930
1930
  y(v === "dark" ? "light" : "dark");
1931
1931
  }, [v, y]);
1932
- ve(() => {
1932
+ he(() => {
1933
1933
  if (r)
1934
1934
  return p(y);
1935
1935
  }, [r, p, y]);
@@ -1973,9 +1973,9 @@ function Xa(...e) {
1973
1973
  var hs = { exports: {} };
1974
1974
  hs.exports;
1975
1975
  (function(e, t) {
1976
- var n = 200, r = "__lodash_hash_undefined__", a = 800, o = 16, i = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", u = "[object Boolean]", d = "[object Date]", f = "[object Error]", h = "[object Function]", m = "[object GeneratorFunction]", p = "[object Map]", v = "[object Number]", y = "[object Null]", w = "[object Object]", E = "[object Proxy]", P = "[object RegExp]", C = "[object Set]", M = "[object String]", _ = "[object Undefined]", B = "[object WeakMap]", D = "[object ArrayBuffer]", ae = "[object DataView]", K = "[object Float32Array]", re = "[object Float64Array]", pe = "[object Int8Array]", q = "[object Int16Array]", le = "[object Int32Array]", ne = "[object Uint8Array]", ce = "[object Uint8ClampedArray]", ye = "[object Uint16Array]", Me = "[object Uint32Array]", $ = /[\\^$.*+?()[\]{}|]/g, F = /^\[object .+?Constructor\]$/, j = /^(?:0|[1-9]\d*)$/, N = {};
1977
- N[K] = N[re] = N[pe] = N[q] = N[le] = N[ne] = N[ce] = N[ye] = N[Me] = !0, N[s] = N[l] = N[D] = N[u] = N[ae] = N[d] = N[f] = N[h] = N[p] = N[v] = N[w] = N[P] = N[C] = N[M] = N[B] = !1;
1978
- var H = typeof Ci == "object" && Ci && Ci.Object === Object && Ci, ee = typeof self == "object" && self && self.Object === Object && self, V = H || ee || Function("return this")(), X = t && !t.nodeType && t, G = X && !0 && e && !e.nodeType && e, oe = G && G.exports === X, te = oe && H.process, Se = function() {
1976
+ var n = 200, r = "__lodash_hash_undefined__", a = 800, o = 16, i = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", u = "[object Boolean]", d = "[object Date]", f = "[object Error]", h = "[object Function]", m = "[object GeneratorFunction]", p = "[object Map]", v = "[object Number]", y = "[object Null]", w = "[object Object]", E = "[object Proxy]", P = "[object RegExp]", C = "[object Set]", M = "[object String]", _ = "[object Undefined]", B = "[object WeakMap]", D = "[object ArrayBuffer]", ae = "[object DataView]", K = "[object Float32Array]", re = "[object Float64Array]", pe = "[object Int8Array]", q = "[object Int16Array]", oe = "[object Int32Array]", ne = "[object Uint8Array]", ce = "[object Uint8ClampedArray]", ye = "[object Uint16Array]", Me = "[object Uint32Array]", $ = /[\\^$.*+?()[\]{}|]/g, F = /^\[object .+?Constructor\]$/, j = /^(?:0|[1-9]\d*)$/, N = {};
1977
+ N[K] = N[re] = N[pe] = N[q] = N[oe] = N[ne] = N[ce] = N[ye] = N[Me] = !0, N[s] = N[l] = N[D] = N[u] = N[ae] = N[d] = N[f] = N[h] = N[p] = N[v] = N[w] = N[P] = N[C] = N[M] = N[B] = !1;
1978
+ var H = typeof Ci == "object" && Ci && Ci.Object === Object && Ci, ee = typeof self == "object" && self && self.Object === Object && self, V = H || ee || Function("return this")(), X = t && !t.nodeType && t, G = X && !0 && e && !e.nodeType && e, ie = G && G.exports === X, te = ie && H.process, Se = function() {
1979
1979
  try {
1980
1980
  var g = G && G.require && G.require("util").types;
1981
1981
  return g || te && te.binding && te.binding("util");
@@ -2016,9 +2016,9 @@ hs.exports;
2016
2016
  var ue = Array.prototype, ht = Function.prototype, lt = Object.prototype, Wt = V["__core-js_shared__"], T = ht.toString, I = lt.hasOwnProperty, z = function() {
2017
2017
  var g = /[^.]+$/.exec(Wt && Wt.keys && Wt.keys.IE_PROTO || "");
2018
2018
  return g ? "Symbol(src)_1." + g : "";
2019
- }(), W = lt.toString, de = T.call(Object), he = RegExp(
2019
+ }(), W = lt.toString, de = T.call(Object), me = RegExp(
2020
2020
  "^" + T.call(I).replace($, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2021
- ), ke = oe ? V.Buffer : void 0, mt = V.Symbol, U = V.Uint8Array, Ht = ke ? ke.allocUnsafe : void 0, En = We(Object.getPrototypeOf, Object), Cn = Object.create, ir = lt.propertyIsEnumerable, Kt = ue.splice, qt = mt ? mt.toStringTag : void 0, gt = function() {
2021
+ ), ke = ie ? V.Buffer : void 0, mt = V.Symbol, U = V.Uint8Array, Ht = ke ? ke.allocUnsafe : void 0, En = We(Object.getPrototypeOf, Object), Cn = Object.create, ir = lt.propertyIsEnumerable, Kt = ue.splice, qt = mt ? mt.toStringTag : void 0, gt = function() {
2022
2022
  try {
2023
2023
  var g = gl(Object, "defineProperty");
2024
2024
  return g({}, "", {}), g;
@@ -2155,14 +2155,14 @@ hs.exports;
2155
2155
  }
2156
2156
  Tn.prototype.clear = li, Tn.prototype.delete = ci, Tn.prototype.get = ui, Tn.prototype.has = di, Tn.prototype.set = fi;
2157
2157
  function pi(g, S) {
2158
- var k = bl(g), L = !k && yl(g), be = !k && !L && Zd(g), Re = !k && !L && !be && Jd(g), Ve = k || L || be || Re, me = Ve ? Rt(g.length, String) : [], Ue = me.length;
2158
+ var k = bl(g), L = !k && yl(g), be = !k && !L && Zd(g), Re = !k && !L && !be && Jd(g), Ve = k || L || be || Re, ge = Ve ? Rt(g.length, String) : [], Ue = ge.length;
2159
2159
  for (var Ot in g)
2160
2160
  (S || I.call(g, Ot)) && !(Ve && // Safari 9 has enumerable `arguments.length` in strict mode.
2161
2161
  (Ot == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
2162
2162
  be && (Ot == "offset" || Ot == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
2163
2163
  Re && (Ot == "buffer" || Ot == "byteLength" || Ot == "byteOffset") || // Skip index properties.
2164
- qd(Ot, Ue))) && me.push(Ot);
2165
- return me;
2164
+ qd(Ot, Ue))) && ge.push(Ot);
2165
+ return ge;
2166
2166
  }
2167
2167
  function Gr(g, S, k) {
2168
2168
  (k !== void 0 && !wi(g[S], k) || k === void 0 && !(S in g)) && Wr(g, S, k);
@@ -2195,7 +2195,7 @@ hs.exports;
2195
2195
  function gi(g) {
2196
2196
  if (!ur(g) || k0(g))
2197
2197
  return !1;
2198
- var S = xl(g) ? he : F;
2198
+ var S = xl(g) ? me : F;
2199
2199
  return S.test(R0(g));
2200
2200
  }
2201
2201
  function yi(g) {
@@ -2214,25 +2214,25 @@ hs.exports;
2214
2214
  if (be || (be = new Tn()), ur(Re))
2215
2215
  Si(g, S, Ve, k, Na, L, be);
2216
2216
  else {
2217
- var me = L ? L(vl(g, Ve), Re, Ve + "", g, S, be) : void 0;
2218
- me === void 0 && (me = Re), Gr(g, Ve, me);
2217
+ var ge = L ? L(vl(g, Ve), Re, Ve + "", g, S, be) : void 0;
2218
+ ge === void 0 && (ge = Re), Gr(g, Ve, ge);
2219
2219
  }
2220
2220
  }, Qd);
2221
2221
  }
2222
2222
  function Si(g, S, k, L, be, Re, Ve) {
2223
- var me = vl(g, k), Ue = vl(S, k), Ot = Ve.get(Ue);
2223
+ var ge = vl(g, k), Ue = vl(S, k), Ot = Ve.get(Ue);
2224
2224
  if (Ot) {
2225
2225
  Gr(g, k, Ot);
2226
2226
  return;
2227
2227
  }
2228
- var kt = Re ? Re(me, Ue, k + "", g, S, Ve) : void 0, ja = kt === void 0;
2228
+ var kt = Re ? Re(ge, Ue, k + "", g, S, Ve) : void 0, ja = kt === void 0;
2229
2229
  if (ja) {
2230
2230
  var wl = bl(Ue), El = !wl && Zd(Ue), tf = !wl && !El && Jd(Ue);
2231
- kt = Ue, wl || El || tf ? bl(me) ? kt = me : O0(me) ? kt = b0(me) : El ? (ja = !1, kt = xt(Ue, !0)) : tf ? (ja = !1, kt = Ze(Ue, !0)) : kt = [] : I0(Ue) || yl(Ue) ? (kt = me, yl(me) ? kt = D0(me) : (!ur(me) || xl(me)) && (kt = C0(Ue))) : ja = !1;
2231
+ kt = Ue, wl || El || tf ? bl(ge) ? kt = ge : O0(ge) ? kt = b0(ge) : El ? (ja = !1, kt = xt(Ue, !0)) : tf ? (ja = !1, kt = Ze(Ue, !0)) : kt = [] : I0(Ue) || yl(Ue) ? (kt = ge, yl(ge) ? kt = D0(ge) : (!ur(ge) || xl(ge)) && (kt = C0(Ue))) : ja = !1;
2232
2232
  }
2233
2233
  ja && (Ve.set(Ue, kt), be(kt, Ue, L, Re, Ve), Ve.delete(Ue)), Gr(g, k, kt);
2234
2234
  }
2235
- function ie(g, S) {
2235
+ function se(g, S) {
2236
2236
  return F0($0(g, S, ef), g + "");
2237
2237
  }
2238
2238
  var Be = gt ? function(g, S) {
@@ -2267,25 +2267,25 @@ hs.exports;
2267
2267
  var be = !k;
2268
2268
  k || (k = {});
2269
2269
  for (var Re = -1, Ve = S.length; ++Re < Ve; ) {
2270
- var me = S[Re], Ue = L ? L(k[me], g[me], me, k, g) : void 0;
2271
- Ue === void 0 && (Ue = g[me]), be ? Wr(k, me, Ue) : hi(k, me, Ue);
2270
+ var ge = S[Re], Ue = L ? L(k[ge], g[ge], ge, k, g) : void 0;
2271
+ Ue === void 0 && (Ue = g[ge]), be ? Wr(k, ge, Ue) : hi(k, ge, Ue);
2272
2272
  }
2273
2273
  return k;
2274
2274
  }
2275
2275
  function x0(g) {
2276
- return ie(function(S, k) {
2276
+ return se(function(S, k) {
2277
2277
  var L = -1, be = k.length, Re = be > 1 ? k[be - 1] : void 0, Ve = be > 2 ? k[2] : void 0;
2278
2278
  for (Re = g.length > 3 && typeof Re == "function" ? (be--, Re) : void 0, Ve && A0(k[0], k[1], Ve) && (Re = be < 3 ? void 0 : Re, be = 1), S = Object(S); ++L < be; ) {
2279
- var me = k[L];
2280
- me && g(S, me, L, Re);
2279
+ var ge = k[L];
2280
+ ge && g(S, ge, L, Re);
2281
2281
  }
2282
2282
  return S;
2283
2283
  });
2284
2284
  }
2285
2285
  function w0(g) {
2286
2286
  return function(S, k, L) {
2287
- for (var be = -1, Re = Object(S), Ve = L(S), me = Ve.length; me--; ) {
2288
- var Ue = Ve[g ? me : ++be];
2287
+ for (var be = -1, Re = Object(S), Ve = L(S), ge = Ve.length; ge--; ) {
2288
+ var Ue = Ve[g ? ge : ++be];
2289
2289
  if (k(Re[Ue], Ue, Re) === !1)
2290
2290
  break;
2291
2291
  }
@@ -2349,9 +2349,9 @@ hs.exports;
2349
2349
  for (var L = arguments, be = -1, Re = St(L.length - S, 0), Ve = Array(Re); ++be < Re; )
2350
2350
  Ve[be] = L[S + be];
2351
2351
  be = -1;
2352
- for (var me = Array(S + 1); ++be < S; )
2353
- me[be] = L[be];
2354
- return me[S] = k(Ve), Je(g, this, me);
2352
+ for (var ge = Array(S + 1); ++be < S; )
2353
+ ge[be] = L[be];
2354
+ return ge[S] = k(Ve), Je(g, this, ge);
2355
2355
  };
2356
2356
  }
2357
2357
  function vl(g, S) {
@@ -2617,7 +2617,7 @@ function Ux(e) {
2617
2617
  var Gx = (e) => {
2618
2618
  const t = parseFloat(e.toString()), n = e.toString().replace(String(t), "");
2619
2619
  return { unitless: !n, value: t, unit: n };
2620
- }, sn = (e) => (t) => `${e}(${t})`, ge = {
2620
+ }, sn = (e) => (t) => `${e}(${t})`, ve = {
2621
2621
  filter(e) {
2622
2622
  return e !== "auto" ? e : Ix;
2623
2623
  },
@@ -2625,7 +2625,7 @@ var Gx = (e) => {
2625
2625
  return e !== "auto" ? e : Dx;
2626
2626
  },
2627
2627
  ring(e) {
2628
- return Nx(ge.px(e));
2628
+ return Nx(ve.px(e));
2629
2629
  },
2630
2630
  bgClip(e) {
2631
2631
  return e === "text" ? { color: "transparent", backgroundClip: "text" } : { backgroundClip: e };
@@ -2662,7 +2662,7 @@ var Gx = (e) => {
2662
2662
  contrast: sn("contrast"),
2663
2663
  dropShadow: sn("drop-shadow"),
2664
2664
  grayscale: sn("grayscale"),
2665
- hueRotate: (e) => sn("hue-rotate")(ge.degree(e)),
2665
+ hueRotate: (e) => sn("hue-rotate")(ve.degree(e)),
2666
2666
  invert: sn("invert"),
2667
2667
  saturate: sn("saturate"),
2668
2668
  sepia: sn("sepia"),
@@ -2683,12 +2683,12 @@ var Gx = (e) => {
2683
2683
  borderStyles: It("borderStyles"),
2684
2684
  colors: It("colors"),
2685
2685
  borders: It("borders"),
2686
- gradients: It("gradients", ge.gradient),
2687
- radii: It("radii", ge.px),
2688
- space: It("space", Ti(ge.vh, ge.px)),
2689
- spaceT: It("space", Ti(ge.vh, ge.px)),
2686
+ gradients: It("gradients", ve.gradient),
2687
+ radii: It("radii", ve.px),
2688
+ space: It("space", Ti(ve.vh, ve.px)),
2689
+ spaceT: It("space", Ti(ve.vh, ve.px)),
2690
2690
  degreeT(e) {
2691
- return { property: e, transform: ge.degree };
2691
+ return { property: e, transform: ve.degree };
2692
2692
  },
2693
2693
  prop(e, t, n) {
2694
2694
  return {
@@ -2702,11 +2702,11 @@ var Gx = (e) => {
2702
2702
  propT(e, t) {
2703
2703
  return { property: e, transform: t };
2704
2704
  },
2705
- sizes: It("sizes", Ti(ge.vh, ge.px)),
2706
- sizesT: It("sizes", Ti(ge.vh, ge.fraction)),
2705
+ sizes: It("sizes", Ti(ve.vh, ve.px)),
2706
+ sizesT: It("sizes", Ti(ve.vh, ve.fraction)),
2707
2707
  shadows: It("shadows"),
2708
2708
  logical: Mx,
2709
- blur: It("blur", ge.blur)
2709
+ blur: It("blur", ve.blur)
2710
2710
  }, Zi = {
2711
2711
  background: x.colors("background"),
2712
2712
  backgroundColor: x.colors("backgroundColor"),
@@ -2715,7 +2715,7 @@ var Gx = (e) => {
2715
2715
  backgroundPosition: !0,
2716
2716
  backgroundRepeat: !0,
2717
2717
  backgroundAttachment: !0,
2718
- backgroundClip: { transform: ge.bgClip },
2718
+ backgroundClip: { transform: ve.bgClip },
2719
2719
  bgSize: x.prop("backgroundSize"),
2720
2720
  bgPosition: x.prop("backgroundPosition"),
2721
2721
  bg: x.colors("background"),
@@ -2724,7 +2724,7 @@ var Gx = (e) => {
2724
2724
  bgRepeat: x.prop("backgroundRepeat"),
2725
2725
  bgAttachment: x.prop("backgroundAttachment"),
2726
2726
  bgGradient: x.gradients("backgroundImage"),
2727
- bgClip: { transform: ge.bgClip }
2727
+ bgClip: { transform: ve.bgClip }
2728
2728
  };
2729
2729
  Object.assign(Zi, {
2730
2730
  bgImage: Zi.backgroundImage,
@@ -2880,34 +2880,34 @@ Object.assign($c, {
2880
2880
  shadow: $c.boxShadow
2881
2881
  });
2882
2882
  var Hx = {
2883
- filter: { transform: ge.filter },
2883
+ filter: { transform: ve.filter },
2884
2884
  blur: x.blur("--chakra-blur"),
2885
- brightness: x.propT("--chakra-brightness", ge.brightness),
2886
- contrast: x.propT("--chakra-contrast", ge.contrast),
2887
- hueRotate: x.propT("--chakra-hue-rotate", ge.hueRotate),
2888
- invert: x.propT("--chakra-invert", ge.invert),
2889
- saturate: x.propT("--chakra-saturate", ge.saturate),
2890
- dropShadow: x.propT("--chakra-drop-shadow", ge.dropShadow),
2891
- backdropFilter: { transform: ge.backdropFilter },
2885
+ brightness: x.propT("--chakra-brightness", ve.brightness),
2886
+ contrast: x.propT("--chakra-contrast", ve.contrast),
2887
+ hueRotate: x.propT("--chakra-hue-rotate", ve.hueRotate),
2888
+ invert: x.propT("--chakra-invert", ve.invert),
2889
+ saturate: x.propT("--chakra-saturate", ve.saturate),
2890
+ dropShadow: x.propT("--chakra-drop-shadow", ve.dropShadow),
2891
+ backdropFilter: { transform: ve.backdropFilter },
2892
2892
  backdropBlur: x.blur("--chakra-backdrop-blur"),
2893
2893
  backdropBrightness: x.propT(
2894
2894
  "--chakra-backdrop-brightness",
2895
- ge.brightness
2895
+ ve.brightness
2896
2896
  ),
2897
- backdropContrast: x.propT("--chakra-backdrop-contrast", ge.contrast),
2897
+ backdropContrast: x.propT("--chakra-backdrop-contrast", ve.contrast),
2898
2898
  backdropHueRotate: x.propT(
2899
2899
  "--chakra-backdrop-hue-rotate",
2900
- ge.hueRotate
2900
+ ve.hueRotate
2901
2901
  ),
2902
- backdropInvert: x.propT("--chakra-backdrop-invert", ge.invert),
2903
- backdropSaturate: x.propT("--chakra-backdrop-saturate", ge.saturate)
2902
+ backdropInvert: x.propT("--chakra-backdrop-invert", ve.invert),
2903
+ backdropSaturate: x.propT("--chakra-backdrop-saturate", ve.saturate)
2904
2904
  }, ms = {
2905
2905
  alignItems: !0,
2906
2906
  alignContent: !0,
2907
2907
  justifyItems: !0,
2908
2908
  justifyContent: !0,
2909
2909
  flexWrap: !0,
2910
- flexDirection: { transform: ge.flexDirection },
2910
+ flexDirection: { transform: ve.flexDirection },
2911
2911
  flex: !0,
2912
2912
  flexFlow: !0,
2913
2913
  flexGrow: !0,
@@ -2950,7 +2950,7 @@ var bg = {
2950
2950
  resize: !0,
2951
2951
  userSelect: !0,
2952
2952
  pointerEvents: !0,
2953
- outline: { transform: ge.outline },
2953
+ outline: { transform: ve.outline },
2954
2954
  outlineOffset: !0,
2955
2955
  outlineColor: x.colors("outlineColor")
2956
2956
  }, jt = {
@@ -2992,7 +2992,7 @@ var bg = {
2992
2992
  verticalAlign: !0,
2993
2993
  boxSizing: !0,
2994
2994
  boxDecorationBreak: !0,
2995
- float: x.propT("float", ge.float),
2995
+ float: x.propT("float", ve.float),
2996
2996
  objectFit: !0,
2997
2997
  objectPosition: !0,
2998
2998
  visibility: !0,
@@ -3105,7 +3105,7 @@ Object.assign(oo, {
3105
3105
  insetEnd: oo.insetInlineEnd
3106
3106
  });
3107
3107
  var t1 = {
3108
- ring: { transform: ge.ring },
3108
+ ring: { transform: ve.ring },
3109
3109
  ringColor: x.colors("--chakra-ring-color"),
3110
3110
  ringOffset: x.prop("--chakra-ring-offset-width"),
3111
3111
  ringOffsetColor: x.colors("--chakra-ring-offset-color"),
@@ -3173,7 +3173,7 @@ var n1 = {
3173
3173
  textShadow: x.shadows("textShadow")
3174
3174
  }, r1 = {
3175
3175
  clipPath: !0,
3176
- transform: x.propT("transform", ge.transform),
3176
+ transform: x.propT("transform", ve.transform),
3177
3177
  transformOrigin: !0,
3178
3178
  translateX: x.spaceT("--chakra-translate-x"),
3179
3179
  translateY: x.spaceT("--chakra-translate-y"),
@@ -3196,7 +3196,7 @@ var n1 = {
3196
3196
  )
3197
3197
  }, o1 = {
3198
3198
  fontFamily: x.prop("fontFamily", "fonts"),
3199
- fontSize: x.prop("fontSize", "fontSizes", ge.px),
3199
+ fontSize: x.prop("fontSize", "fontSizes", ve.px),
3200
3200
  fontWeight: x.prop("fontWeight", "fontWeights"),
3201
3201
  lineHeight: x.prop("lineHeight", "lineHeights"),
3202
3202
  letterSpacing: x.prop("letterSpacing", "letterSpacings"),
@@ -8071,7 +8071,7 @@ function WP(e) {
8071
8071
  }
8072
8072
  function HP(e, t = []) {
8073
8073
  const n = $e(e);
8074
- return ve(() => {
8074
+ return he(() => {
8075
8075
  n.current = e;
8076
8076
  }), fe((...r) => {
8077
8077
  var a;
@@ -8080,7 +8080,7 @@ function HP(e, t = []) {
8080
8080
  }
8081
8081
  function KP(e, t) {
8082
8082
  const n = HP(e);
8083
- ve(() => {
8083
+ he(() => {
8084
8084
  if (t == null)
8085
8085
  return;
8086
8086
  let r = null;
@@ -8093,11 +8093,11 @@ function KP(e, t) {
8093
8093
  }
8094
8094
  function Sp(e, t) {
8095
8095
  const n = $e(!1), r = $e(!1);
8096
- ve(() => {
8096
+ he(() => {
8097
8097
  if (n.current && r.current)
8098
8098
  return e();
8099
8099
  r.current = !0;
8100
- }, t), ve(() => (n.current = !0, () => {
8100
+ }, t), he(() => (n.current = !0, () => {
8101
8101
  n.current = !1;
8102
8102
  }), []);
8103
8103
  }
@@ -8105,7 +8105,7 @@ const Hg = Gt({
8105
8105
  transformPagePoint: (e) => e,
8106
8106
  isStatic: !1,
8107
8107
  reducedMotion: "never"
8108
- }), Ws = Gt({}), Vo = Gt(null), Hs = typeof document < "u", Vu = Hs ? Os : ve, Kg = Gt({ strict: !1 }), Uu = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), qP = "framerAppearId", qg = "data-" + Uu(qP);
8108
+ }), Ws = Gt({}), Vo = Gt(null), Hs = typeof document < "u", Vu = Hs ? Os : he, Kg = Gt({ strict: !1 }), Uu = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), qP = "framerAppearId", qg = "data-" + Uu(qP);
8109
8109
  function YP(e, t, n, r) {
8110
8110
  const { visualElement: a } = Ke(Ws), o = Ke(Kg), i = Ke(Vo), s = Ke(Hg).reducedMotion, l = $e();
8111
8111
  r = r || o.renderer, !l.current && r && (l.current = r(e, {
@@ -8123,7 +8123,7 @@ function YP(e, t, n, r) {
8123
8123
  const u = $e(!!(n[qg] && !window.HandoffComplete));
8124
8124
  return Vu(() => {
8125
8125
  c && (c.render(), u.current && c.animationState && c.animationState.animateChanges());
8126
- }), ve(() => {
8126
+ }), he(() => {
8127
8127
  c && (c.updateFeatures(), !u.current && c.animationState && c.animationState.animateChanges(), u.current && (u.current = !1, window.HandoffComplete = !0));
8128
8128
  }), c;
8129
8129
  }
@@ -9572,7 +9572,7 @@ function As({ autoplay: e = !0, delay: t = 0, driver: n = O2, keyframes: r, type
9572
9572
  let re = 1 / 0, pe = 1 / 0;
9573
9573
  K !== null && (re = K + i, pe = re * (o + 1) - i);
9574
9574
  let q = 0;
9575
- const le = (F) => {
9575
+ const oe = (F) => {
9576
9576
  if (D === null)
9577
9577
  return;
9578
9578
  h > 0 && (D = Math.min(D, F)), h < 0 && (D = Math.min(F - pe / h, D)), B !== null ? q = B : q = Math.round(F - D) * h;
@@ -9580,9 +9580,9 @@ function As({ autoplay: e = !0, delay: t = 0, driver: n = O2, keyframes: r, type
9580
9580
  q = Math.max(j, 0), _ === "finished" && B === null && (q = pe);
9581
9581
  let H = q, ee = C;
9582
9582
  if (o) {
9583
- const oe = Math.min(q, pe) / re;
9584
- let te = Math.floor(oe), Se = oe % 1;
9585
- !Se && oe >= 1 && (Se = 1), Se === 1 && te--, te = Math.min(te, o + 1), !!(te % 2) && (s === "reverse" ? (Se = 1 - Se, i && (Se -= i / re)) : s === "mirror" && (ee = M)), H = Qn(0, 1, Se) * re;
9583
+ const ie = Math.min(q, pe) / re;
9584
+ let te = Math.floor(ie), Se = ie % 1;
9585
+ !Se && ie >= 1 && (Se = 1), Se === 1 && te--, te = Math.min(te, o + 1), !!(te % 2) && (s === "reverse" ? (Se = 1 - Se, i && (Se -= i / re)) : s === "mirror" && (ee = M)), H = Qn(0, 1, Se) * re;
9586
9586
  }
9587
9587
  const V = N ? { done: !1, value: r[0] } : ee.next(H);
9588
9588
  P && (V.value = P(V.value));
@@ -9599,7 +9599,7 @@ function As({ autoplay: e = !0, delay: t = 0, driver: n = O2, keyframes: r, type
9599
9599
  }, Me = () => {
9600
9600
  if (m)
9601
9601
  return;
9602
- w || (w = n(le));
9602
+ w || (w = n(oe));
9603
9603
  const F = w.now();
9604
9604
  l && l(), B !== null ? D = F - B : (!D || _ === "finished") && (D = F), _ === "finished" && y(), ae = D, B = null, _ = "running", w.start();
9605
9605
  };
@@ -9635,12 +9635,12 @@ function As({ autoplay: e = !0, delay: t = 0, driver: n = O2, keyframes: r, type
9635
9635
  m = !0, _ !== "idle" && (_ = "idle", c && c(), ce());
9636
9636
  },
9637
9637
  cancel: () => {
9638
- ae !== null && le(ae), ce();
9638
+ ae !== null && oe(ae), ce();
9639
9639
  },
9640
9640
  complete: () => {
9641
9641
  _ = "finished";
9642
9642
  },
9643
- sample: (F) => (D = 0, le(F))
9643
+ sample: (F) => (D = 0, oe(F))
9644
9644
  };
9645
9645
  return $;
9646
9646
  }
@@ -10295,7 +10295,7 @@ function S$(e) {
10295
10295
  const { prevResolvedValues: pe = {} } = E, q = {
10296
10296
  ...pe,
10297
10297
  ...re
10298
- }, le = (ne) => {
10298
+ }, oe = (ne) => {
10299
10299
  D = !0, h.has(ne) && (ae = !0, h.delete(ne)), E.needsAnimating[ne] = !0;
10300
10300
  };
10301
10301
  for (const ne in q) {
@@ -10303,7 +10303,7 @@ function S$(e) {
10303
10303
  if (m.hasOwnProperty(ne))
10304
10304
  continue;
10305
10305
  let Me = !1;
10306
- ws(ce) && ws(ye) ? Me = !gv(ce, ye) : Me = ce !== ye, Me ? ce !== void 0 ? le(ne) : h.add(ne) : ce !== void 0 && h.has(ne) ? le(ne) : E.protectedKeys[ne] = !0;
10306
+ ws(ce) && ws(ye) ? Me = !gv(ce, ye) : Me = ce !== ye, Me ? ce !== void 0 ? oe(ne) : h.add(ne) : ce !== void 0 && h.has(ne) ? oe(ne) : E.protectedKeys[ne] = !0;
10307
10307
  }
10308
10308
  E.prevProp = P, E.prevResolvedValues = re, E.isActive && (m = { ...m, ...re }), r && e.blockInitialAnimation && (D = !1), D && (!_ || ae) && f.push(...K.map((ne) => ({
10309
10309
  animation: ne,
@@ -10953,7 +10953,7 @@ function ty() {
10953
10953
  if (e === null)
10954
10954
  return [!0, null];
10955
10955
  const { isPresent: t, onExitComplete: n, register: r } = e, a = Ma();
10956
- return ve(() => r(a), []), !t && n ? [!1, () => n && n(a)] : [!0];
10956
+ return he(() => r(a), []), !t && n ? [!1, () => n && n(a)] : [!0];
10957
10957
  }
10958
10958
  function q$() {
10959
10959
  return Y$(Ke(Vo));
@@ -12311,7 +12311,7 @@ function hy() {
12311
12311
  }), []), e;
12312
12312
  }
12313
12313
  function rM() {
12314
- const e = hy(), [t, n] = se(0), r = fe(() => {
12314
+ const e = hy(), [t, n] = le(0), r = fe(() => {
12315
12315
  e.current && n(t + 1);
12316
12316
  }, [t]);
12317
12317
  return [fe(() => De.postRender(r), [r]), t];
@@ -12393,7 +12393,7 @@ function iM() {
12393
12393
  return /* @__PURE__ */ new Map();
12394
12394
  }
12395
12395
  function sM(e) {
12396
- return ve(() => () => e(), []);
12396
+ return he(() => () => e(), []);
12397
12397
  }
12398
12398
  const mr = (e) => e.key || "";
12399
12399
  function lM(e, t) {
@@ -12497,7 +12497,7 @@ var uM = {
12497
12497
  containerStyle: l,
12498
12498
  motionVariants: c = uM,
12499
12499
  toastSpacing: u = "0.5rem"
12500
- } = e, [d, f] = se(s), h = q$();
12500
+ } = e, [d, f] = le(s), h = q$();
12501
12501
  Sp(() => {
12502
12502
  h || r == null || r();
12503
12503
  }, [h]), Sp(() => {
@@ -12506,7 +12506,7 @@ var uM = {
12506
12506
  const m = () => f(null), p = () => f(s), v = () => {
12507
12507
  h && a();
12508
12508
  };
12509
- ve(() => {
12509
+ he(() => {
12510
12510
  h && o && a();
12511
12511
  }, [h, o, a]), KP(v, d);
12512
12512
  const y = st(
@@ -13149,8 +13149,8 @@ var kr = {
13149
13149
  transition: c,
13150
13150
  transitionEnd: u,
13151
13151
  ...d
13152
- } = e, [f, h] = se(!1);
13153
- ve(() => {
13152
+ } = e, [f, h] = le(!1);
13153
+ he(() => {
13154
13154
  const w = setTimeout(() => {
13155
13155
  h(!0);
13156
13156
  });
@@ -13441,7 +13441,7 @@ function VM(e) {
13441
13441
  isDisabled: a,
13442
13442
  isReadOnly: o,
13443
13443
  ...i
13444
- } = e, s = Ma(), l = t || `field-${s}`, c = `${l}-label`, u = `${l}-feedback`, d = `${l}-helptext`, [f, h] = se(!1), [m, p] = se(!1), [v, y] = se(!1), w = fe(
13444
+ } = e, s = Ma(), l = t || `field-${s}`, c = `${l}-label`, u = `${l}-feedback`, d = `${l}-helptext`, [f, h] = le(!1), [m, p] = le(!1), [v, y] = le(!1), w = fe(
13445
13445
  (_ = {}, B = null) => ({
13446
13446
  id: d,
13447
13447
  ..._,
@@ -13741,7 +13741,7 @@ function KM() {
13741
13741
  function v($) {
13742
13742
  if (process.env.NODE_ENV !== "production")
13743
13743
  var F = {}, j = 0;
13744
- function N(ee, V, X, G, oe, te, Se) {
13744
+ function N(ee, V, X, G, ie, te, Se) {
13745
13745
  if (G = G || f, te = te || X, Se !== n) {
13746
13746
  if (l) {
13747
13747
  var O = new Error(
@@ -13756,15 +13756,15 @@ function KM() {
13756
13756
  ), F[Je] = !0, j++);
13757
13757
  }
13758
13758
  }
13759
- return V[X] == null ? ee ? V[X] === null ? new p("The " + oe + " `" + te + "` is marked as required " + ("in `" + G + "`, but its value is `null`.")) : new p("The " + oe + " `" + te + "` is marked as required in " + ("`" + G + "`, but its value is `undefined`.")) : null : $(V, X, G, oe, te);
13759
+ return V[X] == null ? ee ? V[X] === null ? new p("The " + ie + " `" + te + "` is marked as required " + ("in `" + G + "`, but its value is `null`.")) : new p("The " + ie + " `" + te + "` is marked as required in " + ("`" + G + "`, but its value is `undefined`.")) : null : $(V, X, G, ie, te);
13760
13760
  }
13761
13761
  var H = N.bind(null, !1);
13762
13762
  return H.isRequired = N.bind(null, !0), H;
13763
13763
  }
13764
13764
  function y($) {
13765
13765
  function F(j, N, H, ee, V, X) {
13766
- var G = j[N], oe = ne(G);
13767
- if (oe !== $) {
13766
+ var G = j[N], ie = ne(G);
13767
+ if (ie !== $) {
13768
13768
  var te = ce(G);
13769
13769
  return new p(
13770
13770
  "Invalid " + ee + " `" + V + "` of type " + ("`" + te + "` supplied to `" + H + "`, expected ") + ("`" + $ + "`."),
@@ -13787,8 +13787,8 @@ function KM() {
13787
13787
  var G = ne(X);
13788
13788
  return new p("Invalid " + ee + " `" + V + "` of type " + ("`" + G + "` supplied to `" + H + "`, expected an array."));
13789
13789
  }
13790
- for (var oe = 0; oe < X.length; oe++) {
13791
- var te = $(X, oe, H, ee, V + "[" + oe + "]", n);
13790
+ for (var ie = 0; ie < X.length; ie++) {
13791
+ var te = $(X, ie, H, ee, V + "[" + ie + "]", n);
13792
13792
  if (te instanceof Error)
13793
13793
  return te;
13794
13794
  }
@@ -13837,11 +13837,11 @@ function KM() {
13837
13837
  for (var X = j[N], G = 0; G < $.length; G++)
13838
13838
  if (m(X, $[G]))
13839
13839
  return null;
13840
- var oe = JSON.stringify($, function(Se, O) {
13840
+ var ie = JSON.stringify($, function(Se, O) {
13841
13841
  var Je = ce(O);
13842
13842
  return Je === "symbol" ? String(O) : O;
13843
13843
  });
13844
- return new p("Invalid " + ee + " `" + V + "` of value `" + String(X) + "` " + ("supplied to `" + H + "`, expected one of " + oe + "."));
13844
+ return new p("Invalid " + ee + " `" + V + "` of value `" + String(X) + "` " + ("supplied to `" + H + "`, expected one of " + ie + "."));
13845
13845
  }
13846
13846
  return v(F);
13847
13847
  }
@@ -13852,9 +13852,9 @@ function KM() {
13852
13852
  var X = j[N], G = ne(X);
13853
13853
  if (G !== "object")
13854
13854
  return new p("Invalid " + ee + " `" + V + "` of type " + ("`" + G + "` supplied to `" + H + "`, expected an object."));
13855
- for (var oe in X)
13856
- if (r(X, oe)) {
13857
- var te = $(X, oe, H, ee, V + "." + oe, n);
13855
+ for (var ie in X)
13856
+ if (r(X, ie)) {
13857
+ var te = $(X, ie, H, ee, V + "." + ie, n);
13858
13858
  if (te instanceof Error)
13859
13859
  return te;
13860
13860
  }
@@ -13873,13 +13873,13 @@ function KM() {
13873
13873
  ), i;
13874
13874
  }
13875
13875
  function N(H, ee, V, X, G) {
13876
- for (var oe = [], te = 0; te < $.length; te++) {
13876
+ for (var ie = [], te = 0; te < $.length; te++) {
13877
13877
  var Se = $[te], O = Se(H, ee, V, X, G, n);
13878
13878
  if (O == null)
13879
13879
  return null;
13880
- O.data && r(O.data, "expectedType") && oe.push(O.data.expectedType);
13880
+ O.data && r(O.data, "expectedType") && ie.push(O.data.expectedType);
13881
13881
  }
13882
- var Je = oe.length > 0 ? ", expected one of type [" + oe.join(", ") + "]" : "";
13882
+ var Je = ie.length > 0 ? ", expected one of type [" + ie.join(", ") + "]" : "";
13883
13883
  return new p("Invalid " + X + " `" + G + "` supplied to " + ("`" + V + "`" + Je + "."));
13884
13884
  }
13885
13885
  return v(N);
@@ -13900,11 +13900,11 @@ function KM() {
13900
13900
  var X = j[N], G = ne(X);
13901
13901
  if (G !== "object")
13902
13902
  return new p("Invalid " + ee + " `" + V + "` of type `" + G + "` " + ("supplied to `" + H + "`, expected `object`."));
13903
- for (var oe in $) {
13904
- var te = $[oe];
13903
+ for (var ie in $) {
13904
+ var te = $[ie];
13905
13905
  if (typeof te != "function")
13906
- return K(H, ee, V, oe, ce(te));
13907
- var Se = te(X, oe, H, ee, V + "." + oe, n);
13906
+ return K(H, ee, V, ie, ce(te));
13907
+ var Se = te(X, ie, H, ee, V + "." + ie, n);
13908
13908
  if (Se)
13909
13909
  return Se;
13910
13910
  }
@@ -13917,8 +13917,8 @@ function KM() {
13917
13917
  var X = j[N], G = ne(X);
13918
13918
  if (G !== "object")
13919
13919
  return new p("Invalid " + ee + " `" + V + "` of type `" + G + "` " + ("supplied to `" + H + "`, expected `object`."));
13920
- var oe = t({}, j[N], $);
13921
- for (var te in oe) {
13920
+ var ie = t({}, j[N], $);
13921
+ for (var te in ie) {
13922
13922
  var Se = $[te];
13923
13923
  if (r($, te) && typeof Se != "function")
13924
13924
  return K(H, ee, V, te, ce(Se));
@@ -13968,12 +13968,12 @@ Valid keys: ` + JSON.stringify(Object.keys($), null, " ")
13968
13968
  return !1;
13969
13969
  }
13970
13970
  }
13971
- function le($, F) {
13971
+ function oe($, F) {
13972
13972
  return $ === "symbol" ? !0 : F ? F["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && F instanceof Symbol : !1;
13973
13973
  }
13974
13974
  function ne($) {
13975
13975
  var F = typeof $;
13976
- return Array.isArray($) ? "array" : $ instanceof RegExp ? "object" : le(F, $) ? "symbol" : F;
13976
+ return Array.isArray($) ? "array" : $ instanceof RegExp ? "object" : oe(F, $) ? "symbol" : F;
13977
13977
  }
13978
13978
  function ce($) {
13979
13979
  if (typeof $ > "u" || $ === null)
@@ -14068,7 +14068,7 @@ function lc(e, t) {
14068
14068
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
14069
14069
  }
14070
14070
  function eR(e, t) {
14071
- var n = se(function() {
14071
+ var n = le(function() {
14072
14072
  return {
14073
14073
  // value
14074
14074
  value: e,
@@ -14232,7 +14232,7 @@ var Oy = md({}, function(e) {
14232
14232
  async: !0,
14233
14233
  ssr: typeof document < "u"
14234
14234
  }), iR = /* @__PURE__ */ Gt(void 0), sR = [], Dy = /* @__PURE__ */ R.forwardRef(function(t, n) {
14235
- var r, a = R.useState(), o = a[0], i = a[1], s = R.useRef(), l = R.useRef(!1), c = R.useRef(null), u = R.useState({}), d = u[1], f = t.children, h = t.disabled, m = h === void 0 ? !1 : h, p = t.noFocusGuards, v = p === void 0 ? !1 : p, y = t.persistentFocus, w = y === void 0 ? !1 : y, E = t.crossFrame, P = E === void 0 ? !0 : E, C = t.autoFocus, M = C === void 0 ? !0 : C, _ = t.allowTextSelection, B = t.group, D = t.className, ae = t.whiteList, K = t.hasPositiveIndices, re = t.shards, pe = re === void 0 ? sR : re, q = t.as, le = q === void 0 ? "div" : q, ne = t.lockProps, ce = ne === void 0 ? {} : ne, ye = t.sideCar, Me = t.returnFocus, $ = Me === void 0 ? !1 : Me, F = t.focusOptions, j = t.onActivation, N = t.onDeactivation, H = R.useState({}), ee = H[0], V = R.useCallback(function(We) {
14235
+ var r, a = R.useState(), o = a[0], i = a[1], s = R.useRef(), l = R.useRef(!1), c = R.useRef(null), u = R.useState({}), d = u[1], f = t.children, h = t.disabled, m = h === void 0 ? !1 : h, p = t.noFocusGuards, v = p === void 0 ? !1 : p, y = t.persistentFocus, w = y === void 0 ? !1 : y, E = t.crossFrame, P = E === void 0 ? !0 : E, C = t.autoFocus, M = C === void 0 ? !0 : C, _ = t.allowTextSelection, B = t.group, D = t.className, ae = t.whiteList, K = t.hasPositiveIndices, re = t.shards, pe = re === void 0 ? sR : re, q = t.as, oe = q === void 0 ? "div" : q, ne = t.lockProps, ce = ne === void 0 ? {} : ne, ye = t.sideCar, Me = t.returnFocus, $ = Me === void 0 ? !1 : Me, F = t.focusOptions, j = t.onActivation, N = t.onDeactivation, H = R.useState({}), ee = H[0], V = R.useCallback(function(We) {
14236
14236
  var ue = We.captureFocusRestore;
14237
14237
  if (!c.current) {
14238
14238
  var ht, lt = (ht = document) == null ? void 0 : ht.activeElement;
@@ -14252,13 +14252,13 @@ var Oy = md({}, function(e) {
14252
14252
  }) : ht.focus(Wt);
14253
14253
  }
14254
14254
  }
14255
- }, [$]), oe = R.useCallback(function(We) {
14255
+ }, [$]), ie = R.useCallback(function(We) {
14256
14256
  l.current && Oy.useMedium(We);
14257
14257
  }, []), te = Iy.useMedium, Se = R.useCallback(function(We) {
14258
14258
  s.current !== We && (s.current = We, i(We));
14259
14259
  }, []);
14260
14260
  process.env.NODE_ENV !== "production" && (typeof _ < "u" && console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"), R.useEffect(function() {
14261
- !s.current && typeof le != "string" && console.error("FocusLock: could not obtain ref to internal node");
14261
+ !s.current && typeof oe != "string" && console.error("FocusLock: could not obtain ref to internal node");
14262
14262
  }, []));
14263
14263
  var O = Fr((r = {}, r[ky] = m && "disabled", r[Jc] = B, r), ce), Je = v !== !0, Rt = Je && v !== "tail", xn = Py([n, Se]), wn = R.useMemo(function() {
14264
14264
  return {
@@ -14295,12 +14295,12 @@ var Oy = md({}, function(e) {
14295
14295
  onDeactivation: X,
14296
14296
  returnFocus: G,
14297
14297
  focusOptions: F
14298
- }), /* @__PURE__ */ R.createElement(le, Fr({
14298
+ }), /* @__PURE__ */ R.createElement(oe, Fr({
14299
14299
  ref: xn
14300
14300
  }, O, {
14301
14301
  className: D,
14302
14302
  onBlur: te,
14303
- onFocus: oe
14303
+ onFocus: ie
14304
14304
  }), /* @__PURE__ */ R.createElement(iR.Provider, {
14305
14305
  value: wn
14306
14306
  }, f)), Rt && /* @__PURE__ */ R.createElement("div", {
@@ -15090,7 +15090,7 @@ var Hh, CO = (Hh = Wh.default) != null ? Hh : Wh, ob = (e) => {
15090
15090
  );
15091
15091
  };
15092
15092
  ob.displayName = "FocusLock";
15093
- var AO = dP ? Os : ve;
15093
+ var AO = dP ? Os : he;
15094
15094
  function Kh(e, t = []) {
15095
15095
  const n = $e(e);
15096
15096
  return AO(() => {
@@ -15117,7 +15117,7 @@ function qh(e = {}) {
15117
15117
  onOpen: n,
15118
15118
  isOpen: r,
15119
15119
  id: a
15120
- } = e, o = Kh(n), i = Kh(t), [s, l] = se(e.defaultIsOpen || !1), [c, u] = kO(r, s), d = TO(a, "disclosure"), f = fe(() => {
15120
+ } = e, o = Kh(n), i = Kh(t), [s, l] = le(e.defaultIsOpen || !1), [c, u] = kO(r, s), d = TO(a, "disclosure"), f = fe(() => {
15121
15121
  c || l(!1), i == null || i();
15122
15122
  }, [c, i]), h = fe(() => {
15123
15123
  c || l(!0), o == null || o();
@@ -15278,11 +15278,11 @@ function kd(e, t = {}) {
15278
15278
  const { ssr: n = !0, fallback: r } = t, { getWindow: a } = zP(), o = Array.isArray(e) ? e : [e];
15279
15279
  let i = Array.isArray(r) ? r : [r];
15280
15280
  i = i.filter((c) => c != null);
15281
- const [s, l] = se(() => o.map((c, u) => ({
15281
+ const [s, l] = le(() => o.map((c, u) => ({
15282
15282
  media: c,
15283
15283
  matches: n ? !!i[u] : a().matchMedia(c).matches
15284
15284
  })));
15285
- return ve(() => {
15285
+ return he(() => {
15286
15286
  const c = a();
15287
15287
  l(
15288
15288
  o.map((f) => ({
@@ -15346,8 +15346,8 @@ var RO = Object.defineProperty, OO = (e, t, n) => t in e ? RO(e, t, { enumerable
15346
15346
  }
15347
15347
  }, ru = new DO();
15348
15348
  function lb(e, t) {
15349
- const [n, r] = se(0);
15350
- return ve(() => {
15349
+ const [n, r] = le(0);
15350
+ return he(() => {
15351
15351
  const a = e.current;
15352
15352
  if (a) {
15353
15353
  if (t) {
@@ -15433,7 +15433,7 @@ function zO(e) {
15433
15433
  D.key === "Escape" && (D.stopPropagation(), o && (n == null || n()), l == null || l());
15434
15434
  },
15435
15435
  [o, n, l]
15436
- ), [w, E] = se(!1), [P, C] = se(!1), M = fe(
15436
+ ), [w, E] = le(!1), [P, C] = le(!1), M = fe(
15437
15437
  (D = {}, ae = null) => ({
15438
15438
  role: "dialog",
15439
15439
  ...D,
@@ -15480,7 +15480,7 @@ function zO(e) {
15480
15480
  }
15481
15481
  function VO(e, t) {
15482
15482
  const n = e.current;
15483
- ve(() => {
15483
+ he(() => {
15484
15484
  if (!(!e.current || !t))
15485
15485
  return LO(e.current);
15486
15486
  }, [t, e, n]);
@@ -15879,7 +15879,7 @@ function gb(e) {
15879
15879
  lockFocusAcrossFrames: u,
15880
15880
  isOpen: d
15881
15881
  } = tr(), [f, h] = ty();
15882
- ve(() => {
15882
+ he(() => {
15883
15883
  !f && h && setTimeout(h);
15884
15884
  }, [f, h]);
15885
15885
  const m = lb(r, d);
@@ -16052,7 +16052,7 @@ bb.displayName = "ModalFooter";
16052
16052
  var _d = Ge(
16053
16053
  (e, t) => {
16054
16054
  const { className: n, ...r } = e, { headerId: a, setHeaderMounted: o } = tr();
16055
- ve(() => (o(!0), () => o(!1)), [o]);
16055
+ he(() => (o(!0), () => o(!1)), [o]);
16056
16056
  const i = Ye("chakra-modal__header", n), l = {
16057
16057
  flex: 0,
16058
16058
  ...Nr().header
@@ -16095,7 +16095,7 @@ var kI = Fe(ar.div), $d = Ge(
16095
16095
  $d.displayName = "ModalOverlay";
16096
16096
  var Fd = Ge((e, t) => {
16097
16097
  const { className: n, ...r } = e, { bodyId: a, setBodyMounted: o } = tr();
16098
- ve(() => (o(!0), () => o(!1)), [o]);
16098
+ he(() => (o(!0), () => o(!1)), [o]);
16099
16099
  const i = Ye("chakra-modal__body", n), s = Nr();
16100
16100
  return /* @__PURE__ */ b(
16101
16101
  Fe.div,
@@ -16385,12 +16385,12 @@ var su = function(t) {
16385
16385
  return t.charAt(0).toUpperCase() + t.slice(1);
16386
16386
  }, at = function(t, n) {
16387
16387
  var r = "".concat(zI(t), "Element"), a = function(l) {
16388
- var c = l.id, u = l.className, d = l.options, f = d === void 0 ? {} : d, h = l.onBlur, m = l.onFocus, p = l.onReady, v = l.onChange, y = l.onEscape, w = l.onClick, E = l.onLoadError, P = l.onLoaderStart, C = l.onNetworksChange, M = l.onConfirm, _ = l.onCancel, B = l.onShippingAddressChange, D = l.onShippingRateChange, ae = su("mounts <".concat(r, ">")), K = "elements" in ae ? ae.elements : null, re = "customCheckoutSdk" in ae ? ae.customCheckoutSdk : null, pe = xe.useState(null), q = wb(pe, 2), le = q[0], ne = q[1], ce = xe.useRef(null), ye = xe.useRef(null);
16389
- Pt(le, "blur", h), Pt(le, "focus", m), Pt(le, "escape", y), Pt(le, "click", w), Pt(le, "loaderror", E), Pt(le, "loaderstart", P), Pt(le, "networkschange", C), Pt(le, "confirm", M), Pt(le, "cancel", _), Pt(le, "shippingaddresschange", B), Pt(le, "shippingratechange", D), Pt(le, "change", v);
16388
+ var c = l.id, u = l.className, d = l.options, f = d === void 0 ? {} : d, h = l.onBlur, m = l.onFocus, p = l.onReady, v = l.onChange, y = l.onEscape, w = l.onClick, E = l.onLoadError, P = l.onLoaderStart, C = l.onNetworksChange, M = l.onConfirm, _ = l.onCancel, B = l.onShippingAddressChange, D = l.onShippingRateChange, ae = su("mounts <".concat(r, ">")), K = "elements" in ae ? ae.elements : null, re = "customCheckoutSdk" in ae ? ae.customCheckoutSdk : null, pe = xe.useState(null), q = wb(pe, 2), oe = q[0], ne = q[1], ce = xe.useRef(null), ye = xe.useRef(null);
16389
+ Pt(oe, "blur", h), Pt(oe, "focus", m), Pt(oe, "escape", y), Pt(oe, "click", w), Pt(oe, "loaderror", E), Pt(oe, "loaderstart", P), Pt(oe, "networkschange", C), Pt(oe, "confirm", M), Pt(oe, "cancel", _), Pt(oe, "shippingaddresschange", B), Pt(oe, "shippingratechange", D), Pt(oe, "change", v);
16390
16390
  var Me;
16391
16391
  p && (t === "expressCheckout" ? Me = p : Me = function() {
16392
- p(le);
16393
- }), Pt(le, "ready", Me), xe.useLayoutEffect(function() {
16392
+ p(oe);
16393
+ }), Pt(oe, "ready", Me), xe.useLayoutEffect(function() {
16394
16394
  if (ce.current === null && ye.current !== null && (K || re)) {
16395
16395
  var F = null;
16396
16396
  re ? F = re.createElement(t, f) : K && (F = K.create(t, f)), ce.current = F, ne(F), F && F.mount(ye.current);
@@ -16549,7 +16549,7 @@ const Md = ({
16549
16549
  enabled: t = !0,
16550
16550
  dependingOn: n = []
16551
16551
  }) => {
16552
- const [r, a] = se(), [o, i] = se(!1), [s, l] = se(), c = async () => {
16552
+ const [r, a] = le(), [o, i] = le(!1), [s, l] = le(), c = async () => {
16553
16553
  const u = {
16554
16554
  data: {},
16555
16555
  isSuccess: !0,
@@ -16566,7 +16566,7 @@ const Md = ({
16566
16566
  }
16567
16567
  return u;
16568
16568
  };
16569
- return ve(() => {
16569
+ return he(() => {
16570
16570
  t && c();
16571
16571
  }, [...n]), {
16572
16572
  data: r,
@@ -16576,7 +16576,7 @@ const Md = ({
16576
16576
  }, Mb = ({
16577
16577
  mutationFn: e
16578
16578
  }) => {
16579
- const [t, n] = se(), [r, a] = se(!1);
16579
+ const [t, n] = le(), [r, a] = le(!1);
16580
16580
  return {
16581
16581
  data: t,
16582
16582
  isLoading: r,
@@ -17576,14 +17576,14 @@ function Nj(e) {
17576
17576
  validateOnMount: i,
17577
17577
  onSubmit: u
17578
17578
  }, d), h = $e(f.initialValues), m = $e(f.initialErrors || fr), p = $e(f.initialTouched || Wi), v = $e(f.initialStatus), y = $e(!1), w = $e({});
17579
- process.env.NODE_ENV !== "production" && ve(function() {
17579
+ process.env.NODE_ENV !== "production" && he(function() {
17580
17580
  typeof s > "u" || (process.env.NODE_ENV !== "production" ? ua(!1, "isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead.") : ua(!1));
17581
- }, []), ve(function() {
17581
+ }, []), he(function() {
17582
17582
  return y.current = !0, function() {
17583
17583
  y.current = !1;
17584
17584
  };
17585
17585
  }, []);
17586
- var E = se(0), P = E[1], C = $e({
17586
+ var E = le(0), P = E[1], C = $e({
17587
17587
  values: Gi(f.initialValues),
17588
17588
  errors: Gi(f.initialErrors) || fr,
17589
17589
  touched: Gi(f.initialTouched) || Wi,
@@ -17599,19 +17599,19 @@ function Nj(e) {
17599
17599
  }, []), B = fe(function(T, I) {
17600
17600
  return new Promise(function(z, W) {
17601
17601
  var de = f.validate(T, I);
17602
- de == null ? z(fr) : Sc(de) ? de.then(function(he) {
17603
- z(he || fr);
17604
- }, function(he) {
17605
- process.env.NODE_ENV !== "production" && console.warn("Warning: An unhandled error was caught during validation in <Formik validate />", he), W(he);
17602
+ de == null ? z(fr) : Sc(de) ? de.then(function(me) {
17603
+ z(me || fr);
17604
+ }, function(me) {
17605
+ process.env.NODE_ENV !== "production" && console.warn("Warning: An unhandled error was caught during validation in <Formik validate />", me), W(me);
17606
17606
  }) : z(de);
17607
17607
  });
17608
17608
  }, [f.validate]), D = fe(function(T, I) {
17609
17609
  var z = f.validationSchema, W = Xt(z) ? z(I) : z, de = I && W.validateAt ? W.validateAt(I, T) : jj(T, W);
17610
- return new Promise(function(he, ke) {
17610
+ return new Promise(function(me, ke) {
17611
17611
  de.then(function() {
17612
- he(fr);
17612
+ me(fr);
17613
17613
  }, function(mt) {
17614
- mt.name === "ValidationError" ? he(Bj(mt)) : (process.env.NODE_ENV !== "production" && console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />", mt), ke(mt));
17614
+ mt.name === "ValidationError" ? me(Bj(mt)) : (process.env.NODE_ENV !== "production" && console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />", mt), ke(mt));
17615
17615
  });
17616
17616
  });
17617
17617
  }, [f.validationSchema]), ae = fe(function(T, I) {
@@ -17625,16 +17625,16 @@ function Nj(e) {
17625
17625
  return ae(W, _t(T, W));
17626
17626
  }) : [Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];
17627
17627
  return Promise.all(z).then(function(W) {
17628
- return W.reduce(function(de, he, ke) {
17629
- return he === "DO_NOT_DELETE_YOU_WILL_BE_FIRED" || he && (de = _r(de, I[ke], he)), de;
17628
+ return W.reduce(function(de, me, ke) {
17629
+ return me === "DO_NOT_DELETE_YOU_WILL_BE_FIRED" || me && (de = _r(de, I[ke], me)), de;
17630
17630
  }, {});
17631
17631
  });
17632
17632
  }, [ae]), re = fe(function(T) {
17633
17633
  return Promise.all([K(T), f.validationSchema ? D(T) : {}, f.validate ? B(T) : {}]).then(function(I) {
17634
- var z = I[0], W = I[1], de = I[2], he = lu.all([z, W, de], {
17634
+ var z = I[0], W = I[1], de = I[2], me = lu.all([z, W, de], {
17635
17635
  arrayMerge: Lj
17636
17636
  });
17637
- return he;
17637
+ return me;
17638
17638
  });
17639
17639
  }, [f.validate, f.validationSchema, K, B, D]), pe = Nt(function(T) {
17640
17640
  return T === void 0 && (T = M.values), _({
@@ -17650,13 +17650,13 @@ function Nj(e) {
17650
17650
  })), I;
17651
17651
  });
17652
17652
  });
17653
- ve(function() {
17653
+ he(function() {
17654
17654
  i && y.current === !0 && vr(h.current, f.initialValues) && pe(h.current);
17655
17655
  }, [i, pe]);
17656
17656
  var q = fe(function(T) {
17657
17657
  var I = T && T.values ? T.values : h.current, z = T && T.errors ? T.errors : m.current ? m.current : f.initialErrors || {}, W = T && T.touched ? T.touched : p.current ? p.current : f.initialTouched || {}, de = T && T.status ? T.status : v.current ? v.current : f.initialStatus;
17658
17658
  h.current = I, m.current = z, p.current = W, v.current = de;
17659
- var he = function() {
17659
+ var me = function() {
17660
17660
  _({
17661
17661
  type: "RESET_FORM",
17662
17662
  payload: {
@@ -17672,29 +17672,29 @@ function Nj(e) {
17672
17672
  };
17673
17673
  if (f.onReset) {
17674
17674
  var ke = f.onReset(M.values, Je);
17675
- Sc(ke) ? ke.then(he) : he();
17675
+ Sc(ke) ? ke.then(me) : me();
17676
17676
  } else
17677
- he();
17677
+ me();
17678
17678
  }, [f.initialErrors, f.initialStatus, f.initialTouched, f.onReset]);
17679
- ve(function() {
17679
+ he(function() {
17680
17680
  y.current === !0 && !vr(h.current, f.initialValues) && c && (h.current = f.initialValues, q(), i && pe(h.current));
17681
- }, [c, f.initialValues, q, i, pe]), ve(function() {
17681
+ }, [c, f.initialValues, q, i, pe]), he(function() {
17682
17682
  c && y.current === !0 && !vr(m.current, f.initialErrors) && (m.current = f.initialErrors || fr, _({
17683
17683
  type: "SET_ERRORS",
17684
17684
  payload: f.initialErrors || fr
17685
17685
  }));
17686
- }, [c, f.initialErrors]), ve(function() {
17686
+ }, [c, f.initialErrors]), he(function() {
17687
17687
  c && y.current === !0 && !vr(p.current, f.initialTouched) && (p.current = f.initialTouched || Wi, _({
17688
17688
  type: "SET_TOUCHED",
17689
17689
  payload: f.initialTouched || Wi
17690
17690
  }));
17691
- }, [c, f.initialTouched]), ve(function() {
17691
+ }, [c, f.initialTouched]), he(function() {
17692
17692
  c && y.current === !0 && !vr(v.current, f.initialStatus) && (v.current = f.initialStatus, _({
17693
17693
  type: "SET_STATUS",
17694
17694
  payload: f.initialStatus
17695
17695
  }));
17696
17696
  }, [c, f.initialStatus, f.initialTouched]);
17697
- var le = Nt(function(T) {
17697
+ var oe = Nt(function(T) {
17698
17698
  if (w.current[T] && Xt(w.current[T].validate)) {
17699
17699
  var I = _t(M.values, T), z = w.current[T].validate(I);
17700
17700
  return Sc(z) ? (_({
@@ -17788,7 +17788,7 @@ function Nj(e) {
17788
17788
  var z = I, W = T, de;
17789
17789
  if (!bc(T)) {
17790
17790
  T.persist && T.persist();
17791
- var he = T.target ? T.target : T.currentTarget, ke = he.type, mt = he.name, U = he.id, Ht = he.value, En = he.checked, Cn = he.outerHTML, ir = he.options, Kt = he.multiple;
17791
+ var me = T.target ? T.target : T.currentTarget, ke = me.type, mt = me.name, U = me.id, Ht = me.value, En = me.checked, Cn = me.outerHTML, ir = me.options, Kt = me.multiple;
17792
17792
  z = I || mt || U, !z && process.env.NODE_ENV !== "production" && Nm({
17793
17793
  htmlContent: Cn,
17794
17794
  documentationAnchorLink: "handlechange-e-reactchangeeventany--void",
@@ -17814,9 +17814,9 @@ function Nj(e) {
17814
17814
  return W ? pe(M.values) : Promise.resolve();
17815
17815
  }), V = fe(function(T, I) {
17816
17816
  T.persist && T.persist();
17817
- var z = T.target, W = z.name, de = z.id, he = z.outerHTML, ke = I || W || de;
17817
+ var z = T.target, W = z.name, de = z.id, me = z.outerHTML, ke = I || W || de;
17818
17818
  !ke && process.env.NODE_ENV !== "production" && Nm({
17819
- htmlContent: he,
17819
+ htmlContent: me,
17820
17820
  documentationAnchorLink: "handleblur-e-any--void",
17821
17821
  handlerName: "handleBlur"
17822
17822
  }), ee(ke, !0);
@@ -17836,7 +17836,7 @@ function Nj(e) {
17836
17836
  return T;
17837
17837
  }
17838
17838
  });
17839
- }, []), oe = fe(function(T) {
17839
+ }, []), ie = fe(function(T) {
17840
17840
  _({
17841
17841
  type: "SET_STATUS",
17842
17842
  payload: T
@@ -17885,12 +17885,12 @@ function Nj(e) {
17885
17885
  }), Je = {
17886
17886
  resetForm: q,
17887
17887
  validateForm: pe,
17888
- validateField: le,
17888
+ validateField: oe,
17889
17889
  setErrors: Me,
17890
17890
  setFieldError: F,
17891
17891
  setFieldTouched: ee,
17892
17892
  setFieldValue: j,
17893
- setStatus: oe,
17893
+ setStatus: ie,
17894
17894
  setSubmitting: te,
17895
17895
  setTouched: ye,
17896
17896
  setValues: $,
@@ -17929,8 +17929,8 @@ function Nj(e) {
17929
17929
  onBlur: X
17930
17930
  };
17931
17931
  if (I) {
17932
- var he = T.type, ke = T.value, mt = T.as, U = T.multiple;
17933
- he === "checkbox" ? ke === void 0 ? de.checked = !!W : (de.checked = !!(Array.isArray(W) && ~W.indexOf(ke)), de.value = ke) : he === "radio" ? (de.checked = W === ke, de.value = ke) : mt === "select" && U && (de.value = de.value || [], de.multiple = !0);
17932
+ var me = T.type, ke = T.value, mt = T.as, U = T.multiple;
17933
+ me === "checkbox" ? ke === void 0 ? de.checked = !!W : (de.checked = !!(Array.isArray(W) && ~W.indexOf(ke)), de.value = ke) : me === "radio" ? (de.checked = W === ke, de.value = ke) : mt === "select" && U && (de.value = de.value || [], de.multiple = !0);
17934
17934
  }
17935
17935
  return de;
17936
17936
  }, [X, H, M.values]), ht = st(function() {
@@ -17952,13 +17952,13 @@ function Nj(e) {
17952
17952
  setFieldTouched: ee,
17953
17953
  setFieldValue: j,
17954
17954
  setFieldError: F,
17955
- setStatus: oe,
17955
+ setStatus: ie,
17956
17956
  setSubmitting: te,
17957
17957
  setTouched: ye,
17958
17958
  setValues: $,
17959
17959
  submitForm: Se,
17960
17960
  validateForm: pe,
17961
- validateField: le,
17961
+ validateField: oe,
17962
17962
  isValid: lt,
17963
17963
  dirty: ht,
17964
17964
  unregisterField: ce,
@@ -18046,7 +18046,7 @@ function Vj(e, t, n) {
18046
18046
  return !!t;
18047
18047
  return t && n && !a ? r.concat(n) : a ? r.slice(0, o).concat(r.slice(o + 1)) : r;
18048
18048
  }
18049
- var Uj = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Os : ve;
18049
+ var Uj = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Os : he;
18050
18050
  function Nt(e) {
18051
18051
  var t = $e(e);
18052
18052
  return Uj(function() {
@@ -21277,10 +21277,10 @@ const Wm = /* @__PURE__ */ new Map([
21277
21277
  onPaymentComplete: l,
21278
21278
  Request: c
21279
21279
  }) => {
21280
- const u = Pb(), d = Tb(), f = typeof window < "u" ? JSON.parse(window.localStorage.getItem("userIp")) : "", { mutate: h, data: m } = Rb(c), [p, v] = se(!1), [y, w] = se(""), [E, P] = se((f == null ? void 0 : f.country_name) || ""), [C, M] = se(""), [_, B] = se("");
21281
- se(!1);
21280
+ const u = Pb(), d = Tb(), f = typeof window < "u" ? JSON.parse(window.localStorage.getItem("userIp")) : "", { mutate: h, data: m } = Rb(c), [p, v] = le(!1), [y, w] = le(""), [E, P] = le((f == null ? void 0 : f.country_name) || ""), [C, M] = le(""), [_, B] = le("");
21281
+ le(!1);
21282
21282
  const D = async (q) => {
21283
- var le, ne;
21283
+ var oe, ne;
21284
21284
  if (v(!0), q.preventDefault(), !(!u || !d))
21285
21285
  if (a)
21286
21286
  l({
@@ -21300,7 +21300,7 @@ const Wm = /* @__PURE__ */ new Map([
21300
21300
  address_zip: _
21301
21301
  });
21302
21302
  if (ye.error)
21303
- v(!1), zt((le = ye == null ? void 0 : ye.error) == null ? void 0 : le.message, Vt.error);
21303
+ v(!1), zt((oe = ye == null ? void 0 : ye.error) == null ? void 0 : oe.message, Vt.error);
21304
21304
  else {
21305
21305
  const Me = {
21306
21306
  source: (ne = ye == null ? void 0 : ye.token) == null ? void 0 : ne.id,
@@ -21342,7 +21342,7 @@ const Wm = /* @__PURE__ */ new Map([
21342
21342
  },
21343
21343
  lineHeight: "20px",
21344
21344
  letterSpacing: "-0.064px"
21345
- }, [re, pe] = se(null);
21345
+ }, [re, pe] = le(null);
21346
21346
  return /* @__PURE__ */ b(pt, { children: a ? /* @__PURE__ */ b(_n, {}) : /* @__PURE__ */ b(pd, { in: o, animateOpacity: !0, children: /* @__PURE__ */ J(
21347
21347
  pt,
21348
21348
  {
@@ -21542,11 +21542,11 @@ const Wm = /* @__PURE__ */ new Map([
21542
21542
  type: "text",
21543
21543
  bg: "#EFF1F6",
21544
21544
  onChange: (q) => {
21545
- var le, ne;
21545
+ var oe, ne;
21546
21546
  B(q.target.value), r.setFieldValue("zipCode", q.target.value), pe(
21547
- ((le = Xr == null ? void 0 : Xr.find(
21547
+ ((oe = Xr == null ? void 0 : Xr.find(
21548
21548
  (ce) => ce.name === r.values.country
21549
- )) == null ? void 0 : le.alpha2Code) ?? "" ? LL(
21549
+ )) == null ? void 0 : oe.alpha2Code) ?? "" ? LL(
21550
21550
  q.target.value,
21551
21551
  ((ne = Xr == null ? void 0 : Xr.find(
21552
21552
  (ce) => ce.name === r.values.country
@@ -25660,8 +25660,8 @@ const WL = "Payment Completed", HL = ({
25660
25660
  isOpen: t,
25661
25661
  handleCloseModal: n
25662
25662
  }) => {
25663
- const [r, a] = se(!1), o = $e(null), [i] = kd("(max-width: 600px)");
25664
- return ve(() => {
25663
+ const [r, a] = le(!1), o = $e(null), [i] = kd("(max-width: 600px)");
25664
+ return he(() => {
25665
25665
  const l = (c) => {
25666
25666
  c.data.type === WL && n();
25667
25667
  };
@@ -25902,8 +25902,8 @@ const WL = "Payment Completed", HL = ({
25902
25902
  onPaymentComplete: o,
25903
25903
  Request: i
25904
25904
  }) => {
25905
- const s = Pb(), l = Tb(), [c, u] = se(null), [d, f] = se(null), [h, m] = se(!1);
25906
- return ve(() => {
25905
+ const s = Pb(), l = Tb(), [c, u] = le(null), [d, f] = le(null), [h, m] = le(!1);
25906
+ return he(() => {
25907
25907
  if (s && n > 0) {
25908
25908
  t.email = r.values.email, t.name = r.values.fullname;
25909
25909
  const p = s == null ? void 0 : s.paymentRequest({
@@ -26041,12 +26041,16 @@ const WL = "Payment Completed", HL = ({
26041
26041
  authMSUrl: _,
26042
26042
  hasDiscountCode: B,
26043
26043
  mainstackProductId: D
26044
- } = e, ae = p == null ? void 0 : p.hideDetails, K = p == null ? void 0 : p.isSingleColumn, { Request: re, AuthMSRequest: pe } = ZL(M, _), [q, le] = se(h), [ne, ce] = se(!1), [ye, Me] = se(!0), [$, F] = se(!1), [j, N] = se(), [H, ee] = se(!1), [V, X] = se(""), [G, oe] = se({
26044
+ } = e, ae = p == null ? void 0 : p.hideDetails, K = p == null ? void 0 : p.isSingleColumn, { Request: re, AuthMSRequest: pe } = ZL(M, _), [q, oe] = le(h), [ne, ce] = le(!1), [ye, Me] = le(!0), [$, F] = le(!1), [j, N] = le(), [H, ee] = le(!1), [V, X] = le(""), [G, ie] = le({
26045
26045
  amount: 0,
26046
26046
  type: "",
26047
26047
  value: 0,
26048
26048
  isFullDiscount: !1
26049
- }), { isOpen: te, onToggle: Se } = qh(), O = (ie) => !w || w.length <= 0 ? !0 : w == null ? void 0 : w.includes(ie), Je = bu().shape({
26049
+ });
26050
+ he(() => {
26051
+ oe(h);
26052
+ }, [h]);
26053
+ const { isOpen: te, onToggle: Se } = qh(), O = (se) => !w || w.length <= 0 ? !0 : w == null ? void 0 : w.includes(se), Je = bu().shape({
26050
26054
  email: Bt().matches(
26051
26055
  /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
26052
26056
  "Please enter a valid email"
@@ -26079,7 +26083,7 @@ const WL = "Payment Completed", HL = ({
26079
26083
  data: z,
26080
26084
  refetch: W,
26081
26085
  isLoading: de
26082
- } = tD(j == null ? void 0 : j.reference, re), [he, ke] = se(!1), mt = Wt || I || de || he, U = Nj({
26086
+ } = tD(j == null ? void 0 : j.reference, re), [me, ke] = le(!1), mt = Wt || I || de || me, U = Nj({
26083
26087
  initialValues: {
26084
26088
  email: (i == null ? void 0 : i.email) ?? "",
26085
26089
  fullname: (i == null ? void 0 : i.fullname) ?? "",
@@ -26097,11 +26101,11 @@ const WL = "Payment Completed", HL = ({
26097
26101
  },
26098
26102
  validationSchema: H ? Je : Rt,
26099
26103
  validateOnChange: !1,
26100
- onSubmit: (ie, { setSubmitting: Be }) => {
26104
+ onSubmit: (se, { setSubmitting: Be }) => {
26101
26105
  if (gt === 0) {
26102
26106
  c({
26103
- fullname: ie.fullname,
26104
- email: ie.email,
26107
+ fullname: se.fullname,
26108
+ email: se.email,
26105
26109
  reference: d,
26106
26110
  amount: 0
26107
26111
  });
@@ -26116,7 +26120,7 @@ const WL = "Payment Completed", HL = ({
26116
26120
  },
26117
26121
  {
26118
26122
  onSuccess: () => {
26119
- ie.currency === Wn.NGN && O("paystack") || ie.currency === Wn.GHS && O("startbutton") ? T(
26123
+ se.currency === Wn.NGN && O("paystack") || se.currency === Wn.GHS && O("startbutton") ? T(
26120
26124
  {
26121
26125
  amount: gt,
26122
26126
  currency: f,
@@ -26148,17 +26152,17 @@ const WL = "Payment Completed", HL = ({
26148
26152
  );
26149
26153
  }
26150
26154
  });
26151
- ve(() => {
26155
+ he(() => {
26152
26156
  U.setFieldValue("email", (i == null ? void 0 : i.email) ?? ""), U.setFieldValue("fullname", (i == null ? void 0 : i.fullname) ?? ""), U.setTouched({}, !1);
26153
26157
  }, [i]), Q0(u, () => ({
26154
- updateCustomFormValues(ie, Be) {
26155
- U.setFieldValue(ie, Be);
26158
+ updateCustomFormValues(se, Be) {
26159
+ U.setFieldValue(se, Be);
26156
26160
  }
26157
26161
  }));
26158
26162
  const Ht = ((Jo = ue == null ? void 0 : ue.payload) == null ? void 0 : Jo.local_amount) ?? 0, En = ((Qo = ue == null ? void 0 : ue.payload) == null ? void 0 : Qo.local_transaction_fee) ?? 0, Cn = ((ei = ue == null ? void 0 : ue.payload) == null ? void 0 : ei.local_international_card_fee) ?? 0, ir = ((ti = ue == null ? void 0 : ue.payload) == null ? void 0 : ti.dollar_international_card_fee) ?? 0, Kt = parseFloat(Ht) + parseFloat(En) + (f !== Wn.NGN && (U.values.country !== "" || (We == null ? void 0 : We.currency) !== f) && wn((ni = U == null ? void 0 : U.values) == null ? void 0 : ni.country) !== f ? Number(Cn) : 0), qt = U.values.country !== "" ? wn((An = U == null ? void 0 : U.values) == null ? void 0 : An.country) !== f : (We == null ? void 0 : We.currency) !== f, gt = st(() => {
26159
- var ie;
26163
+ var se;
26160
26164
  return f === Wn.UGX ? Math.ceil(Kt) * 100 : Math.round(
26161
- Kt * ((ie = ue == null ? void 0 : ue.payload) != null && ie.is_zero_decimal_currency ? 1 : 100)
26165
+ Kt * ((se = ue == null ? void 0 : ue.payload) != null && se.is_zero_decimal_currency ? 1 : 100)
26162
26166
  );
26163
26167
  }, [
26164
26168
  Kt,
@@ -26194,11 +26198,11 @@ const WL = "Payment Completed", HL = ({
26194
26198
  },
26195
26199
  re
26196
26200
  ), sr = async () => {
26197
- var ie, Be, xt, on;
26201
+ var se, Be, xt, on;
26198
26202
  if (V !== "") {
26199
26203
  const Ze = await cl();
26200
- Ze.isSuccess ? (oe({
26201
- amount: (ie = Ze == null ? void 0 : Ze.data) == null ? void 0 : ie.discounted_amount,
26204
+ Ze.isSuccess ? (ie({
26205
+ amount: (se = Ze == null ? void 0 : Ze.data) == null ? void 0 : se.discounted_amount,
26202
26206
  type: (Be = Ze == null ? void 0 : Ze.data) == null ? void 0 : Be.discount_type,
26203
26207
  value: (xt = Ze == null ? void 0 : Ze.data) == null ? void 0 : xt.discount_value,
26204
26208
  isFullDiscount: gt - ((on = Ze == null ? void 0 : Ze.data) == null ? void 0 : on.discounted_amount) === 0
@@ -26208,9 +26212,9 @@ const WL = "Payment Completed", HL = ({
26208
26212
  }, ul = () => {
26209
26213
  X("");
26210
26214
  };
26211
- ve(() => {
26212
- const { amount: ie } = G;
26213
- ie !== 0 && V !== "" && (Number(h) - ie > 0 && Number(h) - ie < 1 ? le(1) : le(h - ie));
26215
+ he(() => {
26216
+ const { amount: se } = G;
26217
+ se !== 0 && V !== "" && (Number(h) - se > 0 && Number(h) - se < 1 ? oe(1) : oe(h - se));
26214
26218
  }, [G, U]);
26215
26219
  const an = async () => {
26216
26220
  try {
@@ -26221,7 +26225,7 @@ const WL = "Payment Completed", HL = ({
26221
26225
  zt("Error loading payment gateway", Vt.error);
26222
26226
  }
26223
26227
  };
26224
- ve(() => {
26228
+ he(() => {
26225
26229
  ce(
26226
26230
  // isFree
26227
26231
  f !== "NGN" && f !== "GHS"
@@ -26229,13 +26233,13 @@ const WL = "Payment Completed", HL = ({
26229
26233
  }, [f]);
26230
26234
  const dl = async () => {
26231
26235
  ke(!0);
26232
- let ie = {};
26236
+ let se = {};
26233
26237
  if (l) {
26234
26238
  const Be = await l(U.values);
26235
- if (ie = await U.validateForm(), Be.terminate)
26239
+ if (se = await U.validateForm(), Be.terminate)
26236
26240
  return;
26237
26241
  }
26238
- if (Object.keys(ie).length <= 0) {
26242
+ if (Object.keys(se).length <= 0) {
26239
26243
  if (ee(!0), gt === 0) {
26240
26244
  c({
26241
26245
  fullname: U.values.fullname,
@@ -26274,13 +26278,13 @@ const WL = "Payment Completed", HL = ({
26274
26278
  ...Be,
26275
26279
  url: void 0
26276
26280
  }));
26277
- const ie = await W();
26278
- ie.isSuccess ? c({
26281
+ const se = await W();
26282
+ se.isSuccess ? c({
26279
26283
  fullname: U.values.fullname,
26280
26284
  email: U.values.email,
26281
26285
  reference: j == null ? void 0 : j.reference,
26282
- ...ie.data
26283
- }) : zt(`${ie == null ? void 0 : ie.error}`, Vt.error);
26286
+ ...se.data
26287
+ }) : zt(`${se == null ? void 0 : se.error}`, Vt.error);
26284
26288
  };
26285
26289
  return /* @__PURE__ */ b(_n, { children: /* @__PURE__ */ J(
26286
26290
  Td,
@@ -26312,7 +26316,7 @@ const WL = "Payment Completed", HL = ({
26312
26316
  id: "fullname",
26313
26317
  label: "Your name",
26314
26318
  name: "fullname",
26315
- onChange: (ie) => U.setFieldValue("fullname", ie.target.value),
26319
+ onChange: (se) => U.setFieldValue("fullname", se.target.value),
26316
26320
  value: (li = U.values) == null ? void 0 : li.fullname,
26317
26321
  placeholder: "name",
26318
26322
  type: "text",
@@ -26327,7 +26331,7 @@ const WL = "Payment Completed", HL = ({
26327
26331
  id: "email",
26328
26332
  label: "Email address",
26329
26333
  name: "email",
26330
- onChange: (ie) => U.setFieldValue("email", ie.target.value),
26334
+ onChange: (se) => U.setFieldValue("email", se.target.value),
26331
26335
  value: (di = U.values) == null ? void 0 : di.email,
26332
26336
  placeholder: "email",
26333
26337
  type: "email",
@@ -26358,8 +26362,8 @@ const WL = "Payment Completed", HL = ({
26358
26362
  formik: U,
26359
26363
  checkForErrors: async () => {
26360
26364
  l && await l(U.values);
26361
- const ie = await U.validateForm();
26362
- return Object.keys(ie).length > 0;
26365
+ const se = await U.validateForm();
26366
+ return Object.keys(se).length > 0;
26363
26367
  },
26364
26368
  onPaymentComplete: c,
26365
26369
  Request: re
@@ -26463,8 +26467,8 @@ const WL = "Payment Completed", HL = ({
26463
26467
  width: "100%",
26464
26468
  type: "submit",
26465
26469
  isLoading: mt,
26466
- onClick: async (ie) => {
26467
- if (ie.preventDefault(), ke(!0), U.submitForm(), l) {
26470
+ onClick: async (se) => {
26471
+ if (se.preventDefault(), ke(!0), U.submitForm(), l) {
26468
26472
  const Be = await l(U.values);
26469
26473
  if (Be != null && Be.terminate) {
26470
26474
  ke(!1);
@@ -26472,7 +26476,7 @@ const WL = "Payment Completed", HL = ({
26472
26476
  }
26473
26477
  ke(!1);
26474
26478
  } else
26475
- ke(!1), U.submitForm();
26479
+ ke(!1);
26476
26480
  },
26477
26481
  _hover: {
26478
26482
  opacity: 0.8,
@@ -26552,9 +26556,9 @@ const WL = "Payment Completed", HL = ({
26552
26556
  placeholder: "Discount Code",
26553
26557
  name: "discount_code",
26554
26558
  type: "text",
26555
- onChange: (ie) => {
26559
+ onChange: (se) => {
26556
26560
  var Be;
26557
- X((Be = ie == null ? void 0 : ie.target) == null ? void 0 : Be.value);
26561
+ X((Be = se == null ? void 0 : se.target) == null ? void 0 : Be.value);
26558
26562
  },
26559
26563
  value: V
26560
26564
  }