gotrip-fx-transaction-form 1.0.97 → 1.0.98

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/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as Re from "react";
2
- import zr, { createContext as Hs, useContext as Yn, forwardRef as Xe, useMemo as Ot, memo as tv, createElement as Nb, Children as Eh, isValidElement as dR, cloneElement as fR, useRef as wt, useLayoutEffect as af, useEffect as $t, useSyncExternalStore as hR, useCallback as Wt, useInsertionEffect as pR, useState as ht, useId as hi, Fragment as u0, Component as h5, useImperativeHandle as Mte, StrictMode as Lte } from "react";
2
+ import zr, { createContext as Hs, useContext as Yn, forwardRef as Xe, useMemo as Pt, memo as tv, createElement as Nb, Children as Eh, isValidElement as dR, cloneElement as fR, useRef as wt, useLayoutEffect as af, useEffect as $t, useSyncExternalStore as hR, useCallback as Wt, useInsertionEffect as pR, useState as ht, useId as hi, Fragment as u0, Component as h5, useImperativeHandle as Mte, StrictMode as Lte } from "react";
3
3
  import p5, { createPortal as d0 } from "react-dom";
4
4
  var ll = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
5
5
  function kl(e) {
@@ -4471,7 +4471,7 @@ function Oie(e) {
4471
4471
  return typeof e == "string" && Pie.has(e);
4472
4472
  }
4473
4473
  function Nie(e, t, r) {
4474
- const { css: n, isValidProperty: a } = j0(), { children: i, ...o } = e, s = Ot(() => {
4474
+ const { css: n, isValidProperty: a } = j0(), { children: i, ...o } = e, s = Pt(() => {
4475
4475
  const [h, m] = Yp(
4476
4476
  o,
4477
4477
  (A) => r(A, t.variantKeys)
@@ -4485,12 +4485,12 @@ function Nie(e, t, r) {
4485
4485
  styleProps: x,
4486
4486
  elementProps: S
4487
4487
  };
4488
- }, [t.variantKeys, r, o, a]), { css: c, ...l } = s.styleProps, u = Ot(() => {
4488
+ }, [t.variantKeys, r, o, a]), { css: c, ...l } = s.styleProps, u = Pt(() => {
4489
4489
  const h = { ...s.variantProps };
4490
4490
  return t.variantKeys.includes("colorPalette") || (h.colorPalette = o.colorPalette), t.variantKeys.includes("orientation") || (h.orientation = o.orientation), t(h);
4491
4491
  }, [t, s.variantProps, o.colorPalette, o.orientation]);
4492
4492
  return {
4493
- styles: Ot(() => n(u, ...Die(c), l), [n, u, c, l]),
4493
+ styles: Pt(() => n(u, ...Die(c), l), [n, u, c, l]),
4494
4494
  props: {
4495
4495
  ...s.forwardedProps,
4496
4496
  ...s.elementProps,
@@ -4618,7 +4618,7 @@ const aM = ({ cache: e, serialized: t, isStringTag: r }) => {
4618
4618
  }), Cn = jie, $ie = (e, t) => e && !t ? e : !e && t ? t : e.merge(t);
4619
4619
  function MR(e) {
4620
4620
  const { key: t, recipe: r } = e, n = j0();
4621
- return Ot(() => {
4621
+ return Pt(() => {
4622
4622
  const a = r || (t != null ? n.getRecipe(t) : {});
4623
4623
  return n.cva(structuredClone(a));
4624
4624
  }, [t, r, n]);
@@ -4636,7 +4636,7 @@ function Th(e) {
4636
4636
  const { unstyled: u, ...f } = l, h = MR({
4637
4637
  key: t,
4638
4638
  recipe: f.recipe || r
4639
- }), [m, y] = Ot(
4639
+ }), [m, y] = Pt(
4640
4640
  () => h.splitVariantProps(f),
4641
4641
  [h, f]
4642
4642
  );
@@ -4648,7 +4648,7 @@ function Th(e) {
4648
4648
  }
4649
4649
  const s = (l, u) => {
4650
4650
  const f = Cn(l, {}, u), h = Xe((m, y) => {
4651
- const v = i(), x = Ot(
4651
+ const v = i(), x = Pt(
4652
4652
  () => fy(v, m),
4653
4653
  [m, v]
4654
4654
  ), { styles: S, className: A, props: C } = o(x);
@@ -6402,7 +6402,7 @@ function lce(e, t) {
6402
6402
  () => Dd(e.state)
6403
6403
  );
6404
6404
  e.setOptions({ actions: r });
6405
- const c = Ot(() => Q6(n ?? {}), [n]);
6405
+ const c = Pt(() => Q6(n ?? {}), [n]);
6406
6406
  sce(() => {
6407
6407
  const f = Object.entries(c), h = e.contextSnapshot ?? {};
6408
6408
  f.map(([v, x]) => ({
@@ -6416,7 +6416,7 @@ function lce(e, t) {
6416
6416
  $t(() => {
6417
6417
  i.current = s, o.current = l;
6418
6418
  });
6419
- const u = Ot(() => /* @__PURE__ */ new WeakMap(), []);
6419
+ const u = Pt(() => /* @__PURE__ */ new WeakMap(), []);
6420
6420
  return B6(s, l, u, cce);
6421
6421
  }
6422
6422
  function uce(e) {
@@ -9518,7 +9518,7 @@ const Bj = Xe((e, t) => {
9518
9518
  });
9519
9519
  Bj.displayName = "CheckboxLabel";
9520
9520
  const fue = (e = {}) => {
9521
- const t = uue(), r = Go(), n = Ot(() => it(e, (t == null ? void 0 : t.getItemProps({ value: e.value })) ?? {}), [e, t]), { getRootNode: a } = zs(), { dir: i } = Dc(), o = {
9521
+ const t = uue(), r = Go(), n = Pt(() => it(e, (t == null ? void 0 : t.getItemProps({ value: e.value })) ?? {}), [e, t]), { getRootNode: a } = zs(), { dir: i } = Dc(), o = {
9522
9522
  id: hi(),
9523
9523
  ids: {
9524
9524
  label: r == null ? void 0 : r.ids.label,
@@ -10692,10 +10692,10 @@ const Uue = typeof window < "u" ? af : $t, [Z7e, Vue] = Tn({
10692
10692
  const ce = new U.MutationObserver(B);
10693
10693
  return ce.observe(D, { childList: !0, subtree: !0 }), () => ce.disconnect();
10694
10694
  }, [h, m]);
10695
- const v = Ot(() => {
10695
+ const v = Pt(() => {
10696
10696
  const D = [];
10697
10697
  return s.current && a && D.push(h), c.current && D.push(m), D.join(" ") || void 0;
10698
- }, [a, h, m]), x = Ot(
10698
+ }, [a, h, m]), x = Pt(
10699
10699
  () => () => ({
10700
10700
  ...sd.root.attrs,
10701
10701
  id: f,
@@ -10706,7 +10706,7 @@ const Uue = typeof window < "u" ? af : $t, [Z7e, Vue] = Tn({
10706
10706
  "data-readonly": ct(i)
10707
10707
  }),
10708
10708
  [n, a, i, f]
10709
- ), S = Ot(
10709
+ ), S = Pt(
10710
10710
  () => () => ({
10711
10711
  ...sd.label.attrs,
10712
10712
  id: y,
@@ -10716,7 +10716,7 @@ const Uue = typeof window < "u" ? af : $t, [Z7e, Vue] = Tn({
10716
10716
  htmlFor: l
10717
10717
  }),
10718
10718
  [n, a, i, l, y]
10719
- ), A = Ot(
10719
+ ), A = Pt(
10720
10720
  () => () => ({
10721
10721
  "aria-describedby": v,
10722
10722
  "aria-invalid": Ub(a),
@@ -10729,39 +10729,39 @@ const Uue = typeof window < "u" ? af : $t, [Z7e, Vue] = Tn({
10729
10729
  readOnly: i
10730
10730
  }),
10731
10731
  [v, a, o, i, l, n]
10732
- ), C = Ot(
10732
+ ), C = Pt(
10733
10733
  () => () => ({
10734
10734
  ...A(),
10735
10735
  ...sd.input.attrs
10736
10736
  }),
10737
10737
  [A]
10738
- ), R = Ot(
10738
+ ), R = Pt(
10739
10739
  () => () => ({
10740
10740
  ...A(),
10741
10741
  ...sd.textarea.attrs
10742
10742
  }),
10743
10743
  [A]
10744
- ), I = Ot(
10744
+ ), I = Pt(
10745
10745
  () => () => ({
10746
10746
  ...A(),
10747
10747
  ...sd.select.attrs
10748
10748
  }),
10749
10749
  [A]
10750
- ), _ = Ot(
10750
+ ), _ = Pt(
10751
10751
  () => () => ({
10752
10752
  id: m,
10753
10753
  ...sd.helperText.attrs,
10754
10754
  "data-disabled": ct(n)
10755
10755
  }),
10756
10756
  [n, m]
10757
- ), k = Ot(
10757
+ ), k = Pt(
10758
10758
  () => () => ({
10759
10759
  id: h,
10760
10760
  ...sd.errorText.attrs,
10761
10761
  "aria-live": "polite"
10762
10762
  }),
10763
10763
  [h]
10764
- ), P = Ot(
10764
+ ), P = Pt(
10765
10765
  () => () => ({
10766
10766
  "aria-hidden": !0,
10767
10767
  ...sd.requiredIndicator.attrs
@@ -11477,7 +11477,7 @@ const h8 = Xe(
11477
11477
  );
11478
11478
  h8.displayName = "FileUploadTrigger";
11479
11479
  const rde = (e) => typeof e == "function", nde = (e, ...t) => rde(e) ? e(...t) : e, ade = (e) => {
11480
- const { value: t, children: r } = e, [n, a] = ht(), i = Ot(() => () => nde(t) ?? (n == null ? void 0 : n.ownerDocument) ?? document, [t, n]), o = Ot(
11480
+ const { value: t, children: r } = e, [n, a] = ht(), i = Pt(() => () => nde(t) ?? (n == null ? void 0 : n.ownerDocument) ?? document, [t, n]), o = Pt(
11481
11481
  () => ({
11482
11482
  getRootNode: i,
11483
11483
  getWindow: () => fi(i()),
@@ -27101,7 +27101,7 @@ const Is = (d5 = __.variants) == null ? void 0 : d5.variant, J0e = xr({
27101
27101
  xH(P_);
27102
27102
  function Cge(e) {
27103
27103
  const { key: t, recipe: r } = e, n = j0();
27104
- return Ot(() => {
27104
+ return Pt(() => {
27105
27105
  const a = r || (t != null ? n.getSlotRecipe(t) : {});
27106
27106
  return n.sva(structuredClone(a));
27107
27107
  }, [t, r, n]);
@@ -27126,12 +27126,12 @@ const Ege = (e) => e.charAt(0).toUpperCase() + e.slice(1), Ao = (e) => {
27126
27126
  const { unstyled: v, ...x } = y, S = Cge({
27127
27127
  key: t,
27128
27128
  recipe: x.recipe || r
27129
- }), [A, C] = Ot(
27129
+ }), [A, C] = Pt(
27130
27130
  () => S.splitVariantProps(x),
27131
27131
  [x, S]
27132
27132
  );
27133
27133
  return {
27134
- styles: Ot(
27134
+ styles: Pt(
27135
27135
  () => v ? Sae : S(A),
27136
27136
  [v, A, S]
27137
27137
  ),
@@ -27141,7 +27141,7 @@ const Ege = (e) => e.charAt(0).toUpperCase() + e.slice(1), Ao = (e) => {
27141
27141
  }
27142
27142
  function f(y, v = {}) {
27143
27143
  const { defaultProps: x } = v, S = (A) => {
27144
- const C = l(), R = Ot(
27144
+ const C = l(), R = Pt(
27145
27145
  () => fy(x, C, A),
27146
27146
  [C, A]
27147
27147
  ), { styles: I, classNames: _, props: k } = u(R);
@@ -27158,7 +27158,7 @@ const Ege = (e) => e.charAt(0).toUpperCase() + e.slice(1), Ao = (e) => {
27158
27158
  withProvider: (y, v, x) => {
27159
27159
  const { defaultProps: S, ...A } = x ?? {}, C = Cn(y, {}, A), R = Xe((I, _) => {
27160
27160
  var ee;
27161
- const k = l(), P = Ot(
27161
+ const k = l(), P = Pt(
27162
27162
  () => fy(S ?? {}, k, I),
27163
27163
  [k, I]
27164
27164
  ), { styles: D, props: U, classNames: W } = u(P), B = W[v], ce = /* @__PURE__ */ g.jsx(a, { value: D, children: /* @__PURE__ */ g.jsx(o, { value: W, children: /* @__PURE__ */ g.jsx(
@@ -27316,7 +27316,7 @@ const { withContext: Dge } = Th({
27316
27316
  { key: "button" }
27317
27317
  ), rs = Xe(
27318
27318
  function(t, r) {
27319
- const n = Fge(), a = Ot(
27319
+ const n = Fge(), a = Pt(
27320
27320
  () => fy(n, t),
27321
27321
  [n, t]
27322
27322
  ), i = Lge(a), {
@@ -28021,10 +28021,10 @@ const UH = Xe(
28021
28021
  separator: l,
28022
28022
  className: u,
28023
28023
  ...f
28024
- } = t, h = Ot(
28024
+ } = t, h = Pt(
28025
28025
  () => bme({ gap: o, direction: n }),
28026
28026
  [o, n]
28027
- ), m = Ot(() => l ? Ame(c).map((y, v, x) => {
28027
+ ), m = Pt(() => l ? Ame(c).map((y, v, x) => {
28028
28028
  const S = typeof y.key < "u" ? y.key : v, A = fR(l, {
28029
28029
  css: [h, l.props.css]
28030
28030
  });
@@ -28107,7 +28107,7 @@ const kme = H$, {
28107
28107
  withContext: ju
28108
28108
  } = Ao({ key: "table" }), $H = Xe(
28109
28109
  function({ native: t, ...r }, n) {
28110
- const { styles: a, props: i, classNames: o } = Pme(r), s = Ot(() => t ? {
28110
+ const { styles: a, props: i, classNames: o } = Pme(r), s = Pt(() => t ? {
28111
28111
  ...a.root,
28112
28112
  "& thead": a.header,
28113
28113
  "& tbody": a.body,
@@ -30199,7 +30199,7 @@ const qe = {
30199
30199
  setSelected: t,
30200
30200
  primaryColor: r = "#fe8e0b"
30201
30201
  }) => {
30202
- const [n] = uG(), a = q0(), i = n.get("for") === "booker", { groups: o } = Eve(), s = Ot(() => (i && (o[0].useCases[1].hide = !1), o), [i, o]);
30202
+ const [n] = uG(), a = q0(), i = n.get("for") === "booker", { groups: o } = Eve(), s = Pt(() => (i && (o[0].useCases[1].hide = !1), o), [i, o]);
30203
30203
  return /* @__PURE__ */ g.jsx(at, { gap: 2, flexDir: ["column", null, "row"], children: s.map((c) => /* @__PURE__ */ g.jsxs(at, { flexDir: "column", children: [
30204
30204
  /* @__PURE__ */ g.jsx(ze, { textAlign: ["left", null, "center"], fontSize: "24px", fontWeight: "bold", children: c.name }),
30205
30205
  /* @__PURE__ */ g.jsx(
@@ -35318,7 +35318,7 @@ function vbe(e) {
35318
35318
  }
35319
35319
  var sW = /\d/, ps = /\d\d/, cW = /\d{3}/, iP = /\d{4}/, LA = /[+-]?\d{6}/, oa = /\d\d?/, lW = /\d\d\d\d?/, uW = /\d\d\d\d\d\d?/, FA = /\d{1,3}/, oP = /\d{1,4}/, BA = /[+-]?\d{1,6}/, tg = /\d+/, UA = /[+-]?\d+/, xbe = /Z|[+-]\d\d:?\d\d/gi, VA = /Z|[+-]\d\d(?::?\d\d)?/gi, Sbe = /[+-]?\d+(\.\d{1,3})?/, Ev = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, rg = /^[1-9]\d?/, sP = /^([1-9]\d|\d)/, l1;
35320
35320
  l1 = {};
35321
- function Pt(e, t, r) {
35321
+ function Ot(e, t, r) {
35322
35322
  l1[e] = Dl(t) ? t : function(n, a) {
35323
35323
  return n && r ? r : t;
35324
35324
  };
@@ -35376,11 +35376,11 @@ zt(0, ["YY", 2], 0, function() {
35376
35376
  zt(0, ["YYYY", 4], 0, "year");
35377
35377
  zt(0, ["YYYYY", 5], 0, "year");
35378
35378
  zt(0, ["YYYYYY", 6, !0], 0, "year");
35379
- Pt("Y", UA);
35380
- Pt("YY", oa, ps);
35381
- Pt("YYYY", oP, iP);
35382
- Pt("YYYYY", BA, LA);
35383
- Pt("YYYYYY", BA, LA);
35379
+ Ot("Y", UA);
35380
+ Ot("YY", oa, ps);
35381
+ Ot("YYYY", oP, iP);
35382
+ Ot("YYYYY", BA, LA);
35383
+ Ot("YYYYYY", BA, LA);
35384
35384
  Un(["YYYYY", "YYYYYY"], Ji);
35385
35385
  Un("YYYY", function(e, t) {
35386
35386
  t[Ji] = e.length === 2 ? At.parseTwoDigitYear(e) : Kr(e);
@@ -35497,12 +35497,12 @@ zt("MMM", 0, 0, function(e) {
35497
35497
  zt("MMMM", 0, 0, function(e) {
35498
35498
  return this.localeData().months(this, e);
35499
35499
  });
35500
- Pt("M", oa, rg);
35501
- Pt("MM", oa, ps);
35502
- Pt("MMM", function(e, t) {
35500
+ Ot("M", oa, rg);
35501
+ Ot("MM", oa, ps);
35502
+ Ot("MMM", function(e, t) {
35503
35503
  return t.monthsShortRegex(e);
35504
35504
  });
35505
- Pt("MMMM", function(e, t) {
35505
+ Ot("MMMM", function(e, t) {
35506
35506
  return t.monthsRegex(e);
35507
35507
  });
35508
35508
  Un(["M", "MM"], function(e, t) {
@@ -35621,10 +35621,10 @@ function xu(e, t, r) {
35621
35621
  }
35622
35622
  zt("w", ["ww", 2], "wo", "week");
35623
35623
  zt("W", ["WW", 2], "Wo", "isoWeek");
35624
- Pt("w", oa, rg);
35625
- Pt("ww", oa, ps);
35626
- Pt("W", oa, rg);
35627
- Pt("WW", oa, ps);
35624
+ Ot("w", oa, rg);
35625
+ Ot("ww", oa, ps);
35626
+ Ot("W", oa, rg);
35627
+ Ot("WW", oa, ps);
35628
35628
  Tv(
35629
35629
  ["w", "ww", "W", "WW"],
35630
35630
  function(e, t, r, n) {
@@ -35666,16 +35666,16 @@ zt("dddd", 0, 0, function(e) {
35666
35666
  });
35667
35667
  zt("e", 0, 0, "weekday");
35668
35668
  zt("E", 0, 0, "isoWeekday");
35669
- Pt("d", oa);
35670
- Pt("e", oa);
35671
- Pt("E", oa);
35672
- Pt("dd", function(e, t) {
35669
+ Ot("d", oa);
35670
+ Ot("e", oa);
35671
+ Ot("E", oa);
35672
+ Ot("dd", function(e, t) {
35673
35673
  return t.weekdaysMinRegex(e);
35674
35674
  });
35675
- Pt("ddd", function(e, t) {
35675
+ Ot("ddd", function(e, t) {
35676
35676
  return t.weekdaysShortRegex(e);
35677
35677
  });
35678
- Pt("dddd", function(e, t) {
35678
+ Ot("dddd", function(e, t) {
35679
35679
  return t.weekdaysRegex(e);
35680
35680
  });
35681
35681
  Tv(["dd", "ddd", "dddd"], function(e, t, r, n) {
@@ -35825,18 +35825,18 @@ SW("A", !1);
35825
35825
  function bW(e, t) {
35826
35826
  return t._meridiemParse;
35827
35827
  }
35828
- Pt("a", bW);
35829
- Pt("A", bW);
35830
- Pt("H", oa, sP);
35831
- Pt("h", oa, rg);
35832
- Pt("k", oa, rg);
35833
- Pt("HH", oa, ps);
35834
- Pt("hh", oa, ps);
35835
- Pt("kk", oa, ps);
35836
- Pt("hmm", lW);
35837
- Pt("hmmss", uW);
35838
- Pt("Hmm", lW);
35839
- Pt("Hmmss", uW);
35828
+ Ot("a", bW);
35829
+ Ot("A", bW);
35830
+ Ot("H", oa, sP);
35831
+ Ot("h", oa, rg);
35832
+ Ot("k", oa, rg);
35833
+ Ot("HH", oa, ps);
35834
+ Ot("hh", oa, ps);
35835
+ Ot("kk", oa, ps);
35836
+ Ot("hmm", lW);
35837
+ Ot("hmmss", uW);
35838
+ Ot("Hmm", lW);
35839
+ Ot("Hmmss", uW);
35840
35840
  Un(["H", "HH"], Za);
35841
35841
  Un(["k", "kk"], function(e, t, r) {
35842
35842
  var n = Kr(e);
@@ -36317,8 +36317,8 @@ function kW(e, t) {
36317
36317
  }
36318
36318
  kW("Z", ":");
36319
36319
  kW("ZZ", "");
36320
- Pt("Z", VA);
36321
- Pt("ZZ", VA);
36320
+ Ot("Z", VA);
36321
+ Ot("ZZ", VA);
36322
36322
  Un(["Z", "ZZ"], function(e, t, r) {
36323
36323
  r._useUTC = !0, r._tzm = mP(VA, e);
36324
36324
  });
@@ -36816,11 +36816,11 @@ zt("y", ["y", 1], "yo", "eraYear");
36816
36816
  zt("y", ["yy", 2], 0, "eraYear");
36817
36817
  zt("y", ["yyy", 3], 0, "eraYear");
36818
36818
  zt("y", ["yyyy", 4], 0, "eraYear");
36819
- Pt("N", vP);
36820
- Pt("NN", vP);
36821
- Pt("NNN", vP);
36822
- Pt("NNNN", tCe);
36823
- Pt("NNNNN", rCe);
36819
+ Ot("N", vP);
36820
+ Ot("NN", vP);
36821
+ Ot("NNN", vP);
36822
+ Ot("NNNN", tCe);
36823
+ Ot("NNNNN", rCe);
36824
36824
  Un(
36825
36825
  ["N", "NN", "NNN", "NNNN", "NNNNN"],
36826
36826
  function(e, t, r, n) {
@@ -36828,11 +36828,11 @@ Un(
36828
36828
  a ? Dr(r).era = a : Dr(r).invalidEra = e;
36829
36829
  }
36830
36830
  );
36831
- Pt("y", tg);
36832
- Pt("yy", tg);
36833
- Pt("yyy", tg);
36834
- Pt("yyyy", tg);
36835
- Pt("yo", nCe);
36831
+ Ot("y", tg);
36832
+ Ot("yy", tg);
36833
+ Ot("yyy", tg);
36834
+ Ot("yyyy", tg);
36835
+ Ot("yo", nCe);
36836
36836
  Un(["y", "yy", "yyy", "yyyy"], Ji);
36837
36837
  Un(["yo"], function(e, t, r, n) {
36838
36838
  var a;
@@ -36955,14 +36955,14 @@ GA("gggg", "weekYear");
36955
36955
  GA("ggggg", "weekYear");
36956
36956
  GA("GGGG", "isoWeekYear");
36957
36957
  GA("GGGGG", "isoWeekYear");
36958
- Pt("G", UA);
36959
- Pt("g", UA);
36960
- Pt("GG", oa, ps);
36961
- Pt("gg", oa, ps);
36962
- Pt("GGGG", oP, iP);
36963
- Pt("gggg", oP, iP);
36964
- Pt("GGGGG", BA, LA);
36965
- Pt("ggggg", BA, LA);
36958
+ Ot("G", UA);
36959
+ Ot("g", UA);
36960
+ Ot("GG", oa, ps);
36961
+ Ot("gg", oa, ps);
36962
+ Ot("GGGG", oP, iP);
36963
+ Ot("gggg", oP, iP);
36964
+ Ot("GGGGG", BA, LA);
36965
+ Ot("ggggg", BA, LA);
36966
36966
  Tv(
36967
36967
  ["gggg", "ggggg", "GGGG", "GGGGG"],
36968
36968
  function(e, t, r, n) {
@@ -37015,7 +37015,7 @@ function uCe(e, t, r, n, a) {
37015
37015
  return this.year(o.getUTCFullYear()), this.month(o.getUTCMonth()), this.date(o.getUTCDate()), this;
37016
37016
  }
37017
37017
  zt("Q", 0, "Qo", "quarter");
37018
- Pt("Q", sW);
37018
+ Ot("Q", sW);
37019
37019
  Un("Q", function(e, t) {
37020
37020
  t[fu] = (Kr(e) - 1) * 3;
37021
37021
  });
@@ -37023,9 +37023,9 @@ function dCe(e) {
37023
37023
  return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
37024
37024
  }
37025
37025
  zt("D", ["DD", 2], "Do", "date");
37026
- Pt("D", oa, rg);
37027
- Pt("DD", oa, ps);
37028
- Pt("Do", function(e, t) {
37026
+ Ot("D", oa, rg);
37027
+ Ot("DD", oa, ps);
37028
+ Ot("Do", function(e, t) {
37029
37029
  return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
37030
37030
  });
37031
37031
  Un(["D", "DD"], sl);
@@ -37034,8 +37034,8 @@ Un("Do", function(e, t) {
37034
37034
  });
37035
37035
  var VW = ng("Date", !0);
37036
37036
  zt("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
37037
- Pt("DDD", FA);
37038
- Pt("DDDD", cW);
37037
+ Ot("DDD", FA);
37038
+ Ot("DDDD", cW);
37039
37039
  Un(["DDD", "DDDD"], function(e, t, r) {
37040
37040
  r._dayOfYear = Kr(e);
37041
37041
  });
@@ -37046,13 +37046,13 @@ function fCe(e) {
37046
37046
  return e == null ? t : this.add(e - t, "d");
37047
37047
  }
37048
37048
  zt("m", ["mm", 2], 0, "minute");
37049
- Pt("m", oa, sP);
37050
- Pt("mm", oa, ps);
37049
+ Ot("m", oa, sP);
37050
+ Ot("mm", oa, ps);
37051
37051
  Un(["m", "mm"], bc);
37052
37052
  var hCe = ng("Minutes", !1);
37053
37053
  zt("s", ["ss", 2], 0, "second");
37054
- Pt("s", oa, sP);
37055
- Pt("ss", oa, ps);
37054
+ Ot("s", oa, sP);
37055
+ Ot("ss", oa, ps);
37056
37056
  Un(["s", "ss"], hu);
37057
37057
  var pCe = ng("Seconds", !1);
37058
37058
  zt("S", 0, 0, function() {
@@ -37080,12 +37080,12 @@ zt(0, ["SSSSSSSS", 8], 0, function() {
37080
37080
  zt(0, ["SSSSSSSSS", 9], 0, function() {
37081
37081
  return this.millisecond() * 1e6;
37082
37082
  });
37083
- Pt("S", FA, sW);
37084
- Pt("SS", FA, ps);
37085
- Pt("SSS", FA, cW);
37083
+ Ot("S", FA, sW);
37084
+ Ot("SS", FA, ps);
37085
+ Ot("SSS", FA, cW);
37086
37086
  var Ld, jW;
37087
37087
  for (Ld = "SSSS"; Ld.length <= 9; Ld += "S")
37088
- Pt(Ld, tg);
37088
+ Ot(Ld, tg);
37089
37089
  function gCe(e, t) {
37090
37090
  t[Yf] = Kr(("0." + e) * 1e3);
37091
37091
  }
@@ -37477,8 +37477,8 @@ on.toIsoString = Ys(
37477
37477
  on.lang = DW;
37478
37478
  zt("X", 0, 0, "unix");
37479
37479
  zt("x", 0, 0, "valueOf");
37480
- Pt("x", UA);
37481
- Pt("X", Sbe);
37480
+ Ot("x", UA);
37481
+ Ot("X", Sbe);
37482
37482
  Un("X", function(e, t, r) {
37483
37483
  r._d = new Date(parseFloat(e) * 1e3);
37484
37484
  });
@@ -37677,7 +37677,7 @@ const rEe = (e) => {
37677
37677
  sm: "25%",
37678
37678
  md: "20%",
37679
37679
  lg: `${16.666666666666668}%`
37680
- }), i = Ot(() => oEe(e, n), [e, n]);
37680
+ }), i = Pt(() => oEe(e, n), [e, n]);
37681
37681
  return $t(() => {
37682
37682
  var o;
37683
37683
  if (!t && i.length > 0) {
@@ -40312,7 +40312,7 @@ const lTe = ({ children: e, initial: t, isPresent: r, onExitComplete: n, custom:
40312
40312
  if (!m)
40313
40313
  return;
40314
40314
  n && n();
40315
- }, [c, n]), f = Ot(
40315
+ }, [c, n]), f = Pt(
40316
40316
  () => ({
40317
40317
  id: l,
40318
40318
  initial: t,
@@ -40328,7 +40328,7 @@ const lTe = ({ children: e, initial: t, isPresent: r, onExitComplete: n, custom:
40328
40328
  */
40329
40329
  i ? [Math.random(), u] : [r, u]
40330
40330
  );
40331
- return Ot(() => {
40331
+ return Pt(() => {
40332
40332
  c.forEach((h, m) => c.set(m, !1));
40333
40333
  }, [r]), Re.useEffect(() => {
40334
40334
  !r && !c.size && n && n();
@@ -40363,7 +40363,7 @@ function _F(e) {
40363
40363
  }), t;
40364
40364
  }
40365
40365
  const hTe = ({ children: e, custom: t, initial: r = !0, onExitComplete: n, presenceAffectsLayout: a = !0, mode: i = "sync", propagate: o = !1, anchorX: s = "left" }) => {
40366
- const [c, l] = dz(o), u = Ot(() => _F(e), [e]), f = o && !c ? [] : u.map(fS), h = wt(!0), m = wt(u), y = IP(() => /* @__PURE__ */ new Map()), [v, x] = ht(u), [S, A] = ht(u);
40366
+ const [c, l] = dz(o), u = Pt(() => _F(e), [e]), f = o && !c ? [] : u.map(fS), h = wt(!0), m = wt(u), y = IP(() => /* @__PURE__ */ new Map()), [v, x] = ht(u), [S, A] = ht(u);
40367
40367
  uz(() => {
40368
40368
  h.current = !1, m.current = u;
40369
40369
  for (let I = 0; I < S.length; I++) {
@@ -41094,7 +41094,7 @@ function FTe(e, t) {
41094
41094
  }
41095
41095
  function BTe(e) {
41096
41096
  const { initial: t, animate: r } = FTe(e, Yn(YA));
41097
- return Ot(() => ({ initial: t, animate: r }), [BF(t), BF(r)]);
41097
+ return Pt(() => ({ initial: t, animate: r }), [BF(t), BF(r)]);
41098
41098
  }
41099
41099
  function BF(e) {
41100
41100
  return Array.isArray(e) ? e.join(" ") : e;
@@ -41381,7 +41381,7 @@ function Pz(e, t, r) {
41381
41381
  !Ki(t[n]) && !Rz(n, r) && (e[n] = t[n]);
41382
41382
  }
41383
41383
  function awe({ transformTemplate: e }, t) {
41384
- return Ot(() => {
41384
+ return Pt(() => {
41385
41385
  const r = zP();
41386
41386
  return WP(r, t, e), Object.assign({}, r.vars, r.style);
41387
41387
  }, [t]);
@@ -41487,7 +41487,7 @@ const Oz = () => ({
41487
41487
  attrs: {}
41488
41488
  }), XP = (e) => typeof e == "string" && e.toLowerCase() === "svg";
41489
41489
  function fwe(e, t, r, n) {
41490
- const a = Ot(() => {
41490
+ const a = Pt(() => {
41491
41491
  const i = Oz();
41492
41492
  return YP(i, t, XP(n), e.transformTemplate), {
41493
41493
  ...i.attrs,
@@ -41502,7 +41502,7 @@ function fwe(e, t, r, n) {
41502
41502
  }
41503
41503
  function hwe(e = !1) {
41504
41504
  return (r, n, a, { latestValues: i }, o) => {
41505
- const c = (KP(r) ? fwe : owe)(n, i, o, r), l = MTe(n, typeof r == "string", e), u = r !== u0 ? { ...l, ...c, ref: a } : {}, { children: f } = n, h = Ot(() => Ki(f) ? f.get() : f, [f]);
41505
+ const c = (KP(r) ? fwe : owe)(n, i, o, r), l = MTe(n, typeof r == "string", e), u = r !== u0 ? { ...l, ...c, ref: a } : {}, { children: f } = n, h = Pt(() => Ki(f) ? f.get() : f, [f]);
41506
41506
  return Nb(r, {
41507
41507
  ...u,
41508
41508
  children: h
@@ -51066,7 +51066,7 @@ function XLe(e = {}) {
51066
51066
  ];
51067
51067
  }
51068
51068
  function JLe(e) {
51069
- const { cssVarsRoot: t, theme: r, children: n } = e, a = Ot(() => W_e(r), [r]);
51069
+ const { cssVarsRoot: t, theme: r, children: n } = e, a = Pt(() => W_e(r), [r]);
51070
51070
  return /* @__PURE__ */ g.jsxs(h6, { theme: a, children: [
51071
51071
  /* @__PURE__ */ g.jsx(ZLe, { root: t }),
51072
51072
  n
@@ -51131,7 +51131,7 @@ var qLe = {
51131
51131
  $t(() => {
51132
51132
  m && i && a();
51133
51133
  }, [m, i, a]), iTe(x, f);
51134
- const S = Ot(
51134
+ const S = Pt(
51135
51135
  () => ({
51136
51136
  pointerEvents: "auto",
51137
51137
  maxWidth: 560,
@@ -51140,7 +51140,7 @@ var qLe = {
51140
51140
  ...c
51141
51141
  }),
51142
51142
  [c, u]
51143
- ), A = Ot(() => rTe(o), [o]);
51143
+ ), A = Pt(() => rTe(o), [o]);
51144
51144
  return /* @__PURE__ */ g.jsx(
51145
51145
  VRe.div,
51146
51146
  {
@@ -51692,7 +51692,7 @@ var [xKe, pFe] = Dv({
51692
51692
  }
51693
51693
  );
51694
51694
  }, xFe = (e) => {
51695
- const { children: t, containerRef: r, appendToParentPortal: n } = e, a = r.current, i = a ?? (typeof window < "u" ? document.body : void 0), o = Ot(() => {
51695
+ const { children: t, containerRef: r, appendToParentPortal: n } = e, a = r.current, i = a ?? (typeof window < "u" ? document.body : void 0), o = Pt(() => {
51696
51696
  const c = a == null ? void 0 : a.ownerDocument.createElement("div");
51697
51697
  return c && (c.className = x2), c;
51698
51698
  }, [a]), [, s] = ht({});
@@ -67700,7 +67700,7 @@ function k7(e, t, r, n, a, i) {
67700
67700
  }, f = e, h = r;
67701
67701
  o0(e) && (f = c.numAsString, h = !0);
67702
67702
  var m = o(f, h);
67703
- return Ot(function() {
67703
+ return Pt(function() {
67704
67704
  l(m);
67705
67705
  }, [m.formattedValue]), [c, u];
67706
67706
  }
@@ -68911,10 +68911,10 @@ function lC(e) {
68911
68911
  return g.jsx(O2, { className: t, count: n, offset: c, wrap: !0, children: v });
68912
68912
  }
68913
68913
  function uC(e) {
68914
- var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, i = e.formatAbbr, o = e.locale, s = e.maxDate, c = e.maxDateTransform, l = e.minDate, u = e.minDateTransform, f = e.onClick, h = e.onMouseOver, m = e.style, y = e.tileClassName, v = e.tileContent, x = e.tileDisabled, S = e.view, A = Ot(function() {
68914
+ var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, i = e.formatAbbr, o = e.locale, s = e.maxDate, c = e.maxDateTransform, l = e.minDate, u = e.minDateTransform, f = e.onClick, h = e.onMouseOver, m = e.style, y = e.tileClassName, v = e.tileContent, x = e.tileDisabled, S = e.view, A = Pt(function() {
68915
68915
  var R = { activeStartDate: t, date: a, view: S };
68916
68916
  return typeof y == "function" ? y(R) : y;
68917
- }, [t, a, y, S]), C = Ot(function() {
68917
+ }, [t, a, y, S]), C = Pt(function() {
68918
68918
  var R = { activeStartDate: t, date: a, view: S };
68919
68919
  return typeof v == "function" ? v(R) : v;
68920
68920
  }, [t, a, v, S]);
@@ -70984,7 +70984,7 @@ function oK(e) {
70984
70984
  K && !st && K.removeAttribute("style");
70985
70985
  }, className: hr, children: Q }) });
70986
70986
  }
70987
- var Qr = Ot(function() {
70987
+ var Qr = Pt(function() {
70988
70988
  return E4e(he);
70989
70989
  }, [he]);
70990
70990
  return g.jsxs("div", Bd({ className: js(so, "".concat(so, "--").concat(Me || st ? "open" : "closed"), "".concat(so, "--").concat(S ? "disabled" : "enabled"), o), "data-testid": h, id: I }, Qr, { onFocus: qn, ref: Bt, children: [jr(), Mn(), rr()] }));
@@ -70996,12 +70996,12 @@ const T3 = ({
70996
70996
  placeholder: n = "Tìm kiếm...",
70997
70997
  styles: a
70998
70998
  }) => {
70999
- const { open: i, onOpen: o, onClose: s } = ej(), [c, l] = ht(""), u = wt(null), f = wt(null), h = a != null && a.container ? a.container({}) : {}, m = a != null && a.menu ? a.menu({}) : {}, y = a != null && a.control ? a.control({}) : {}, v = Ot(
70999
+ const { open: i, onOpen: o, onClose: s } = ej(), [c, l] = ht(""), u = wt(null), f = wt(null), h = a != null && a.container ? a.container({}) : {}, m = a != null && a.menu ? a.menu({}) : {}, y = a != null && a.control ? a.control({}) : {}, v = Pt(
71000
71000
  () => e.filter(
71001
71001
  (A) => A.label.toLowerCase().includes(c.toLowerCase()) || A.value.toLowerCase().includes(c.toLowerCase())
71002
71002
  ),
71003
71003
  [c, e]
71004
- ), x = e.find((A) => A.value === t);
71004
+ ), x = Pt(() => typeof t == "string" || typeof t == "number" ? e.find((A) => A.value === t) : t, [t, e]);
71005
71005
  $t(() => {
71006
71006
  const A = (C) => {
71007
71007
  f.current && !f.current.contains(C.target) && s();
@@ -71025,9 +71025,7 @@ const T3 = ({
71025
71025
  }, 0);
71026
71026
  }, [i]);
71027
71027
  const S = (A) => {
71028
- r(A), s();
71029
- const C = e.find((R) => R.value === A);
71030
- l((C == null ? void 0 : C.label) || "");
71028
+ r(A), s(), l((A == null ? void 0 : A.label) || "");
71031
71029
  };
71032
71030
  return /* @__PURE__ */ g.jsxs(Jt, { ref: f, position: "relative", minW: "200px", width: "100%", style: h, children: [
71033
71031
  /* @__PURE__ */ g.jsxs(
@@ -71079,7 +71077,7 @@ const T3 = ({
71079
71077
  border: "1px solid",
71080
71078
  borderColor: "gray.50",
71081
71079
  onKeyDown: (A) => {
71082
- A.key === "Enter" && (A.preventDefault(), S(c));
71080
+ A.key === "Enter" && A.preventDefault();
71083
71081
  },
71084
71082
  onFocus: (A) => {
71085
71083
  A.stopPropagation();
@@ -71097,16 +71095,16 @@ const T3 = ({
71097
71095
  py: 2,
71098
71096
  cursor: "pointer",
71099
71097
  _hover: {
71100
- bg: A.value === t ? "blue.500" : "blue.100",
71101
- color: A.value === t ? "white" : "black"
71098
+ bg: A.value === (x == null ? void 0 : x.value) ? "blue.500" : "blue.100",
71099
+ color: A.value === (x == null ? void 0 : x.value) ? "white" : "black"
71102
71100
  },
71103
- bg: A.value === t ? "blue.500" : "white",
71104
- color: A.value === t ? "white" : "black",
71101
+ bg: A.value === (x == null ? void 0 : x.value) ? "blue.500" : "white",
71102
+ color: A.value === (x == null ? void 0 : x.value) ? "white" : "black",
71105
71103
  onMouseDown: (R) => {
71106
- R.stopPropagation(), S(A.value);
71104
+ R.stopPropagation(), S(A);
71107
71105
  },
71108
71106
  role: "option",
71109
- "aria-selected": A.value === t,
71107
+ "aria-selected": A.value === (x == null ? void 0 : x.value),
71110
71108
  children: A.label
71111
71109
  },
71112
71110
  `${A.value}-${C}`
@@ -71184,7 +71182,7 @@ const T3 = ({
71184
71182
  const pt = new URLSearchParams(window.location.search).get("ref_code");
71185
71183
  pt && re(pt);
71186
71184
  }, []);
71187
- const [Ve, Y] = ht(), Ue = Ot(() => {
71185
+ const [Ve, Y] = ht(), Ue = Pt(() => {
71188
71186
  if (!(Ve != null && Ve.settings))
71189
71187
  return yh({ items: [] });
71190
71188
  const Le = Ve.settings.availableCurrencies || [];
@@ -71224,7 +71222,7 @@ const T3 = ({
71224
71222
  B(Le), Te("currencyCode", Le), Me("currencyCode"), $e();
71225
71223
  },
71226
71224
  [$e]
71227
- ), ft = Ot(() => u[`${W}-${Ve == null ? void 0 : Ve.shortName}`] || "0", [W, Ve]), {
71225
+ ), ft = Pt(() => u[`${W}-${Ve == null ? void 0 : Ve.shortName}`] || "0", [W, Ve]), {
71228
71226
  register: Ae,
71229
71227
  handleSubmit: X,
71230
71228
  formState: { errors: z },
@@ -71385,7 +71383,7 @@ const T3 = ({
71385
71383
  }
71386
71384
  m();
71387
71385
  } catch (pt) {
71388
- console.log((Le = pt.response) == null ? void 0 : Le.data), A({
71386
+ console.error((Le = pt.response) == null ? void 0 : Le.data), A({
71389
71387
  isOpen: !0,
71390
71388
  message: "Lấy thông tin chuyến bay không thành công. Tuy nhiên điều này không cần thiết để đặt mua ngoại tệ."
71391
71389
  });
@@ -71749,9 +71747,12 @@ const T3 = ({
71749
71747
  label: Le.airline,
71750
71748
  value: Le.iata
71751
71749
  })),
71752
- value: he("airlineCode"),
71750
+ value: {
71751
+ label: he("airlineName"),
71752
+ value: he("airlineCode")
71753
+ },
71753
71754
  onChange: (Le) => {
71754
- Te("airlineCode", Le), Te("airlineName", Le), Me("airlineName");
71755
+ Te("airlineCode", Le.value), Te("airlineName", Le.label), Me("airlineName");
71755
71756
  },
71756
71757
  placeholder: "Tìm hãng hàng không",
71757
71758
  styles: {
@@ -71818,9 +71819,12 @@ const T3 = ({
71818
71819
  value: Le.alpha2
71819
71820
  })
71820
71821
  ),
71821
- value: he("countryCodeDes"),
71822
71822
  onChange: (Le) => {
71823
- Te("countryCodeDes", Le), Te("countryNameDes", Le), Me("countryNameDes");
71823
+ Te("countryCodeDes", Le.value), Te("countryNameDes", Le.label), Me("countryNameDes");
71824
+ },
71825
+ value: {
71826
+ label: he("countryNameDes"),
71827
+ value: he("countryCodeDes")
71824
71828
  },
71825
71829
  placeholder: "Tìm quốc gia đến",
71826
71830
  styles: {
@@ -72027,7 +72031,7 @@ const T3 = ({
72027
72031
  }, _Ue = () => {
72028
72032
  const { user: e } = wl();
72029
72033
  return {
72030
- items: Ot(() => {
72034
+ items: Pt(() => {
72031
72035
  var n, a;
72032
72036
  if (!e)
72033
72037
  return [];
@@ -72856,7 +72860,7 @@ const T3 = ({
72856
72860
  document3: [],
72857
72861
  document4: [],
72858
72862
  document5: []
72859
- }), _ = Ot(() => yh({
72863
+ }), _ = Pt(() => yh({
72860
72864
  items: [
72861
72865
  {
72862
72866
  label: "USD",
@@ -73520,7 +73524,7 @@ var vK = function(t) {
73520
73524
  zIndex: 1
73521
73525
  };
73522
73526
  }, _Ve = function(t) {
73523
- var r = t.appendTo, n = t.children, a = t.controlElement, i = t.innerProps, o = t.menuPlacement, s = t.menuPosition, c = wt(null), l = wt(null), u = ht(vK(o)), f = Tu(u, 2), h = f[0], m = f[1], y = Ot(function() {
73527
+ var r = t.appendTo, n = t.children, a = t.controlElement, i = t.innerProps, o = t.menuPlacement, s = t.menuPosition, c = wt(null), l = wt(null), u = ht(vK(o)), f = Tu(u, 2), h = f[0], m = f[1], y = Pt(function() {
73524
73528
  return {
73525
73529
  setPortalPlacement: m
73526
73530
  };
@@ -74109,9 +74113,9 @@ var O5e = {
74109
74113
  return "".concat(n).concat(r ? " for search term " + r : "", ".");
74110
74114
  }
74111
74115
  }, M5e = function(t) {
74112
- var r = t.ariaSelection, n = t.focusedOption, a = t.focusedValue, i = t.focusableOptions, o = t.isFocused, s = t.selectValue, c = t.selectProps, l = t.id, u = t.isAppleDevice, f = c.ariaLiveMessages, h = c.getOptionLabel, m = c.inputValue, y = c.isMulti, v = c.isOptionDisabled, x = c.isSearchable, S = c.menuIsOpen, A = c.options, C = c.screenReaderStatus, R = c.tabSelectsValue, I = c.isLoading, _ = c["aria-label"], k = c["aria-live"], P = Ot(function() {
74116
+ var r = t.ariaSelection, n = t.focusedOption, a = t.focusedValue, i = t.focusableOptions, o = t.isFocused, s = t.selectValue, c = t.selectProps, l = t.id, u = t.isAppleDevice, f = c.ariaLiveMessages, h = c.getOptionLabel, m = c.inputValue, y = c.isMulti, v = c.isOptionDisabled, x = c.isSearchable, S = c.menuIsOpen, A = c.options, C = c.screenReaderStatus, R = c.tabSelectsValue, I = c.isLoading, _ = c["aria-label"], k = c["aria-live"], P = Pt(function() {
74113
74117
  return Qt(Qt({}, D5e), f || {});
74114
- }, [f]), D = Ot(function() {
74118
+ }, [f]), D = Pt(function() {
74115
74119
  var se = "";
74116
74120
  if (r && P.onChange) {
74117
74121
  var ne = r.option, re = r.options, be = r.removedValue, q = r.removedValues, le = r.value, Oe = function(xe) {
@@ -74126,7 +74130,7 @@ var O5e = {
74126
74130
  se = P.onChange(De);
74127
74131
  }
74128
74132
  return se;
74129
- }, [r, P, v, s, h]), U = Ot(function() {
74133
+ }, [r, P, v, s, h]), U = Pt(function() {
74130
74134
  var se = "", ne = n || a, re = !!(n && s && s.includes(n));
74131
74135
  if (ne && P.onFocus) {
74132
74136
  var be = {
@@ -74142,7 +74146,7 @@ var O5e = {
74142
74146
  se = P.onFocus(be);
74143
74147
  }
74144
74148
  return se;
74145
- }, [n, a, h, v, P, i, s, u]), W = Ot(function() {
74149
+ }, [n, a, h, v, P, i, s, u]), W = Pt(function() {
74146
74150
  var se = "";
74147
74151
  if (S && A.length && !I && P.onFilter) {
74148
74152
  var ne = C({
@@ -74154,7 +74158,7 @@ var O5e = {
74154
74158
  });
74155
74159
  }
74156
74160
  return se;
74157
- }, [i, m, S, P, A, C, I]), B = (r == null ? void 0 : r.action) === "initial-input-focus", ce = Ot(function() {
74161
+ }, [i, m, S, P, A, C, I]), B = (r == null ? void 0 : r.action) === "initial-input-focus", ce = Pt(function() {
74158
74162
  var se = "";
74159
74163
  if (P.guidance) {
74160
74164
  var ne = a ? "value" : S ? "menu" : "input";
@@ -76220,7 +76224,7 @@ const am = 10 * 1024 * 1024, im = 5, FK = ({ total: e = 100, uploaded: t = 0 })
76220
76224
  document1: [],
76221
76225
  document2: [],
76222
76226
  document3: []
76223
- }), _ = Ot(() => yh({
76227
+ }), _ = Pt(() => yh({
76224
76228
  items: [
76225
76229
  {
76226
76230
  label: "USD",
@@ -80330,17 +80334,17 @@ const T6e = ({
80330
80334
  setSelectedBank: a,
80331
80335
  setAmount: i
80332
80336
  }) => {
80333
- const o = wt(null), s = wt(null), [c, l] = ht([]), [u, f] = ht([]), [h, m] = ht([]), y = wt({}), v = q0(), x = Ot(() => yh({
80337
+ const o = wt(null), s = wt(null), [c, l] = ht([]), [u, f] = ht([]), [h, m] = ht([]), y = wt({}), v = q0(), x = Pt(() => yh({
80334
80338
  items: u.map((_) => ({
80335
80339
  label: _,
80336
80340
  value: _
80337
80341
  }))
80338
- }), [u]), S = Ot(() => yh({
80342
+ }), [u]), S = Pt(() => yh({
80339
80343
  items: h.map((_) => ({
80340
80344
  label: _.name,
80341
80345
  value: _.shortName
80342
80346
  }))
80343
- }), [h]), A = Ot(() => y.current[`${e}-${t}`] || "0", [e, t]), C = Wt((_) => {
80347
+ }), [h]), A = Pt(() => y.current[`${e}-${t}`] || "0", [e, t]), C = Wt((_) => {
80344
80348
  n(_);
80345
80349
  }, []), R = Wt((_) => {
80346
80350
  a(_);
@@ -102006,7 +102010,7 @@ const P7e = Ec().shape({
102006
102010
  // 'Ngân hàng': 'bankCode',
102007
102011
  "Số lượng muốn mua": "amount"
102008
102012
  }, O7e = (e) => {
102009
- const { user: t } = wl(), [r, n] = ht([]), [a, i] = ht(null), o = wt(null), [s, c] = ht(!1), { setModalSuccess: l, setModalError: u } = L0(), [f, h] = ht([]), [m, y] = ht(!1), [v, x] = ht(!1), [S, A] = ht(), [C, R] = ht("USD"), I = Ot(() => yh({
102013
+ const { user: t } = wl(), [r, n] = ht([]), [a, i] = ht(null), o = wt(null), [s, c] = ht(!1), { setModalSuccess: l, setModalError: u } = L0(), [f, h] = ht([]), [m, y] = ht(!1), [v, x] = ht(!1), [S, A] = ht(), [C, R] = ht("USD"), I = Pt(() => yh({
102010
102014
  items: r.filter(
102011
102015
  (Ue) => {
102012
102016
  var $e;
@@ -102016,7 +102020,7 @@ const P7e = Ec().shape({
102016
102020
  label: Ue,
102017
102021
  value: Ue
102018
102022
  }))
102019
- }), [r]), [_, k] = ht(!1), P = Ot(() => {
102023
+ }), [r]), [_, k] = ht(!1), P = Pt(() => {
102020
102024
  const Ue = v ? Ec().shape({
102021
102025
  name: Kt().required("Vui lòng nhập tên người đại diện"),
102022
102026
  idNo: Kt().required("Vui lòng nhập số CMND/CCCD").matches(A2, "Số CMND/CCCD không hợp lệ"),
@@ -102073,7 +102077,7 @@ const P7e = Ec().shape({
102073
102077
  idNo: (t == null ? void 0 : t.identityNumber) || ""
102074
102078
  }
102075
102079
  }
102076
- }), q = Ot(() => Object.values(ce).length > 0 || !S || !C, [ce, S, C]), le = Wt(async () => {
102080
+ }), q = Pt(() => Object.values(ce).length > 0 || !S || !C, [ce, S, C]), le = Wt(async () => {
102077
102081
  var $e;
102078
102082
  return S ? (($e = (await Oi.get(Vo.currency.list(S == null ? void 0 : S.shortName))).data) == null ? void 0 : $e[S == null ? void 0 : S.shortName]) || [] : [];
102079
102083
  }, [S]);
@@ -102083,7 +102087,7 @@ const P7e = Ec().shape({
102083
102087
  n(_7e($e));
102084
102088
  });
102085
102089
  }, [le]);
102086
- const Oe = Ot(() => r.map((Ue) => ({
102090
+ const Oe = Pt(() => r.map((Ue) => ({
102087
102091
  label: Ue,
102088
102092
  value: Ue
102089
102093
  })), [r]), H = async (Ue) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gotrip-fx-transaction-form",
3
- "version": "1.0.97",
3
+ "version": "1.0.98",
4
4
  "description": "FX Transaction Form ES6 module",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -4,8 +4,8 @@ export type Option = {
4
4
  };
5
5
  type ChakraSelectSearchableProps = {
6
6
  options: Option[];
7
- value?: string;
8
- onChange: (value: string) => void;
7
+ value?: string | number | Option;
8
+ onChange: (value: Option) => void;
9
9
  placeholder?: string;
10
10
  styles?: {
11
11
  container?: (base: React.CSSProperties) => React.CSSProperties;