@babylonlabs-io/core-ui 1.10.2 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,15 +1,15 @@
1
- import { jsx as c, jsxs as x, Fragment as Ft } from "react/jsx-runtime";
1
+ import { jsx as c, jsxs as x, Fragment as rt } from "react/jsx-runtime";
2
2
  import * as Pe from "react";
3
- import R, { useState as oe, useRef as rt, useCallback as ae, createContext as sr, useMemo as Ue, forwardRef as De, useContext as Lt, useEffect as ce, createElement as br, Children as Xt, cloneElement as yr, isValidElement as wr, useImperativeHandle as Sn, useId as An } from "react";
4
- import { twJoin as S, twMerge as be } from "tailwind-merge";
3
+ import R, { useState as oe, useRef as nt, useCallback as ae, createContext as sr, useMemo as Ue, forwardRef as De, useContext as Lt, useEffect as ce, createElement as yr, Children as Xt, cloneElement as br, isValidElement as wr, useImperativeHandle as Sn, useId as An } from "react";
4
+ import { twJoin as S, twMerge as ye } from "tailwind-merge";
5
5
  import * as Ti from "react-dom";
6
6
  import { createPortal as Mi } from "react-dom";
7
- function ot({
7
+ function at({
8
8
  value: e,
9
9
  defaultValue: t,
10
10
  onStateChange: r
11
11
  } = {}) {
12
- const [n, i] = oe(t), { current: s } = rt(e != null), o = s ? e : n, a = ae(
12
+ const [n, i] = oe(t), { current: s } = nt(e != null), o = s ? e : n, a = ae(
13
13
  (l) => {
14
14
  s || i(l), r == null || r(l);
15
15
  },
@@ -21,7 +21,7 @@ const xr = sr({
21
21
  disabled: !1,
22
22
  expanded: !1
23
23
  });
24
- function il({
24
+ function sl({
25
25
  expanded: e,
26
26
  defaultExpanded: t,
27
27
  onChange: r,
@@ -29,7 +29,7 @@ function il({
29
29
  disabled: i = !1,
30
30
  children: s
31
31
  }) {
32
- const [o = !1, a] = ot({
32
+ const [o = !1, a] = at({
33
33
  value: e,
34
34
  defaultValue: t,
35
35
  onStateChange: r
@@ -46,7 +46,7 @@ function il({
46
46
  );
47
47
  return /* @__PURE__ */ c(xr.Provider, { value: f, children: /* @__PURE__ */ c("div", { className: S("bbn-accordion", i && "bbn-accordion-disabled", n), children: s }) });
48
48
  }
49
- const at = De(
49
+ const lt = De(
50
50
  ({ variant: e = "contained", size: t = "large", color: r = "primary", fluid: n = !1, className: i, disabled: s, ...o }, a) => /* @__PURE__ */ c(
51
51
  "button",
52
52
  {
@@ -64,10 +64,10 @@ const at = De(
64
64
  }
65
65
  )
66
66
  );
67
- at.displayName = "Button";
67
+ lt.displayName = "Button";
68
68
  const Fn = ({ className: e, ...t }) => /* @__PURE__ */ c("button", { ...t, className: S("bbn-btn-icon", e) }), Ln = De(
69
69
  ({ className: e, ...t }, r) => /* @__PURE__ */ c(
70
- at,
70
+ lt,
71
71
  {
72
72
  ...t,
73
73
  ref: r,
@@ -80,7 +80,7 @@ const Fn = ({ className: e, ...t }) => /* @__PURE__ */ c("button", { ...t, class
80
80
  )
81
81
  );
82
82
  Ln.displayName = "WalletDisconnectButton";
83
- function sl({
83
+ function ol({
84
84
  className: e,
85
85
  iconClassName: t,
86
86
  children: r,
@@ -96,7 +96,7 @@ function Nr(e, t) {
96
96
  return typeof e != "number" ? typeof t == "number" ? Nr(t) : t : `${e}px`;
97
97
  }
98
98
  function Pi(e = !0) {
99
- const [t, r] = oe("0px"), [n, i] = oe(), s = rt(null);
99
+ const [t, r] = oe("0px"), [n, i] = oe(), s = nt(null);
100
100
  return ce(() => {
101
101
  const o = new ResizeObserver((a) => {
102
102
  const [l] = a;
@@ -114,7 +114,7 @@ function Pi(e = !0) {
114
114
  [e, n]
115
115
  ), { height: t, ref: s };
116
116
  }
117
- function ol({
117
+ function al({
118
118
  unmountOnExit: e = !1,
119
119
  animationDuration: t = 200,
120
120
  className: r,
@@ -150,7 +150,7 @@ function ol({
150
150
  );
151
151
  }
152
152
  const W = De(
153
- ({ variant: e = "body1", as: t = "p", children: r, className: n, ...i }, s) => br(
153
+ ({ variant: e = "body1", as: t = "p", children: r, className: n, ...i }, s) => yr(
154
154
  t,
155
155
  {
156
156
  ...i,
@@ -162,7 +162,7 @@ const W = De(
162
162
  );
163
163
  W.displayName = "Text";
164
164
  const Cr = De(
165
- ({ variant: e, as: t = e, children: r, className: n, ...i }, s) => br(
165
+ ({ variant: e, as: t = e, children: r, className: n, ...i }, s) => yr(
166
166
  t,
167
167
  {
168
168
  ...i,
@@ -176,7 +176,7 @@ Cr.displayName = "Heading";
176
176
  function Yt({ className: e, style: t, size: r = "large", variant: n = "circular", alt: i, url: s, children: o }) {
177
177
  return /* @__PURE__ */ c("div", { style: t, className: S("bbn-avatar", `bbn-avatar-${r}`, `bbn-avatar-${n}`, e), children: s ? /* @__PURE__ */ c("img", { className: "bbn-avatar-img", src: s, alt: i }) : o });
178
178
  }
179
- const al = ({
179
+ const ll = ({
180
180
  max: e = 1 / 0,
181
181
  className: t,
182
182
  children: r,
@@ -188,9 +188,9 @@ const al = ({
188
188
  return /* @__PURE__ */ x("div", { className: S("bbn-avatar-group", t), children: [
189
189
  Xt.map(
190
190
  r,
191
- (a, l) => wr(a) && l + 1 <= e ? yr(a, {
191
+ (a, l) => wr(a) && l + 1 <= e ? br(a, {
192
192
  ...s,
193
- className: be(n, a.props.className),
193
+ className: ye(n, a.props.className),
194
194
  variant: i
195
195
  }) : null
196
196
  ),
@@ -213,7 +213,7 @@ const al = ({
213
213
  onChange: d,
214
214
  ...p
215
215
  }, v) {
216
- const [N = !1, b] = ot({
216
+ const [N = !1, b] = at({
217
217
  value: r,
218
218
  defaultValue: n,
219
219
  onStateChange: d
@@ -411,10 +411,10 @@ var Gr = function(t) {
411
411
  var i = n[0], s = n[1];
412
412
  return r[i] = s, r;
413
413
  }, {});
414
- }, Kr = typeof window < "u" && window.document && window.document.createElement ? Pe.useLayoutEffect : Pe.useEffect, de = "top", we = "bottom", xe = "right", he = "left", kr = "auto", _t = [de, we, xe, he], lt = "start", Ot = "end", Ki = "clippingParents", Tn = "viewport", bt = "popper", Ji = "reference", Jr = /* @__PURE__ */ _t.reduce(function(e, t) {
415
- return e.concat([t + "-" + lt, t + "-" + Ot]);
414
+ }, Kr = typeof window < "u" && window.document && window.document.createElement ? Pe.useLayoutEffect : Pe.useEffect, de = "top", we = "bottom", xe = "right", he = "left", kr = "auto", _t = [de, we, xe, he], ct = "start", Et = "end", Ki = "clippingParents", Tn = "viewport", bt = "popper", Ji = "reference", Jr = /* @__PURE__ */ _t.reduce(function(e, t) {
415
+ return e.concat([t + "-" + ct, t + "-" + Et]);
416
416
  }, []), Mn = /* @__PURE__ */ [].concat(_t, [kr]).reduce(function(e, t) {
417
- return e.concat([t, t + "-" + lt, t + "-" + Ot]);
417
+ return e.concat([t, t + "-" + ct, t + "-" + Et]);
418
418
  }, []), Qi = "beforeRead", es = "read", ts = "afterRead", rs = "beforeMain", ns = "main", is = "afterMain", ss = "beforeWrite", os = "write", as = "afterWrite", ls = [Qi, es, ts, rs, ns, is, ss, os, as];
419
419
  function Ve(e) {
420
420
  return e ? (e.nodeName || "").toLowerCase() : null;
@@ -432,7 +432,7 @@ function et(e) {
432
432
  var t = ve(e).Element;
433
433
  return e instanceof t || e instanceof Element;
434
434
  }
435
- function ye(e) {
435
+ function be(e) {
436
436
  var t = ve(e).HTMLElement;
437
437
  return e instanceof t || e instanceof HTMLElement;
438
438
  }
@@ -446,7 +446,7 @@ function cs(e) {
446
446
  var t = e.state;
447
447
  Object.keys(t.elements).forEach(function(r) {
448
448
  var n = t.styles[r] || {}, i = t.attributes[r] || {}, s = t.elements[r];
449
- !ye(s) || !Ve(s) || (Object.assign(s.style, n), Object.keys(i).forEach(function(o) {
449
+ !be(s) || !Ve(s) || (Object.assign(s.style, n), Object.keys(i).forEach(function(o) {
450
450
  var a = i[o];
451
451
  a === !1 ? s.removeAttribute(o) : s.setAttribute(o, a === !0 ? "" : a);
452
452
  }));
@@ -470,7 +470,7 @@ function us(e) {
470
470
  var i = t.elements[n], s = t.attributes[n] || {}, o = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), a = o.reduce(function(l, f) {
471
471
  return l[f] = "", l;
472
472
  }, {});
473
- !ye(i) || !Ve(i) || (Object.assign(i.style, a), Object.keys(s).forEach(function(l) {
473
+ !be(i) || !Ve(i) || (Object.assign(i.style, a), Object.keys(s).forEach(function(l) {
474
474
  i.removeAttribute(l);
475
475
  }));
476
476
  });
@@ -487,7 +487,7 @@ const fs = {
487
487
  function Le(e) {
488
488
  return e.split("-")[0];
489
489
  }
490
- var Je = Math.max, Jt = Math.min, ct = Math.round;
490
+ var Je = Math.max, Jt = Math.min, ut = Math.round;
491
491
  function mr() {
492
492
  var e = navigator.userAgentData;
493
493
  return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
@@ -497,10 +497,10 @@ function mr() {
497
497
  function Pn() {
498
498
  return !/^((?!chrome|android).)*safari/i.test(mr());
499
499
  }
500
- function ut(e, t, r) {
500
+ function ft(e, t, r) {
501
501
  t === void 0 && (t = !1), r === void 0 && (r = !1);
502
502
  var n = e.getBoundingClientRect(), i = 1, s = 1;
503
- t && ye(e) && (i = e.offsetWidth > 0 && ct(n.width) / e.offsetWidth || 1, s = e.offsetHeight > 0 && ct(n.height) / e.offsetHeight || 1);
503
+ t && be(e) && (i = e.offsetWidth > 0 && ut(n.width) / e.offsetWidth || 1, s = e.offsetHeight > 0 && ut(n.height) / e.offsetHeight || 1);
504
504
  var o = et(e) ? ve(e) : window, a = o.visualViewport, l = !Pn() && r, f = (n.left + (l && a ? a.offsetLeft : 0)) / i, u = (n.top + (l && a ? a.offsetTop : 0)) / s, d = n.width / i, p = n.height / s;
505
505
  return {
506
506
  width: d,
@@ -514,7 +514,7 @@ function ut(e, t, r) {
514
514
  };
515
515
  }
516
516
  function Er(e) {
517
- var t = ut(e), r = e.offsetWidth, n = e.offsetHeight;
517
+ var t = ft(e), r = e.offsetWidth, n = e.offsetHeight;
518
518
  return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
519
519
  x: e.offsetLeft,
520
520
  y: e.offsetTop,
@@ -561,18 +561,18 @@ function or(e) {
561
561
  );
562
562
  }
563
563
  function Qr(e) {
564
- return !ye(e) || // https://github.com/popperjs/popper-core/issues/837
564
+ return !be(e) || // https://github.com/popperjs/popper-core/issues/837
565
565
  Re(e).position === "fixed" ? null : e.offsetParent;
566
566
  }
567
567
  function hs(e) {
568
568
  var t = /firefox/i.test(mr()), r = /Trident/i.test(mr());
569
- if (r && ye(e)) {
569
+ if (r && be(e)) {
570
570
  var n = Re(e);
571
571
  if (n.position === "fixed")
572
572
  return null;
573
573
  }
574
574
  var i = or(e);
575
- for (Or(i) && (i = i.host); ye(i) && ["html", "body"].indexOf(Ve(i)) < 0; ) {
575
+ for (Or(i) && (i = i.host); be(i) && ["html", "body"].indexOf(Ve(i)) < 0; ) {
576
576
  var s = Re(i);
577
577
  if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || t && s.willChange === "filter" || t && s.filter && s.filter !== "none")
578
578
  return i;
@@ -588,11 +588,11 @@ function Dt(e) {
588
588
  function Sr(e) {
589
589
  return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
590
590
  }
591
- function xt(e, t, r) {
591
+ function Nt(e, t, r) {
592
592
  return Je(e, Jt(t, r));
593
593
  }
594
594
  function ps(e, t, r) {
595
- var n = xt(e, t, r);
595
+ var n = Nt(e, t, r);
596
596
  return n > r ? r : n;
597
597
  }
598
598
  function Rn() {
@@ -619,7 +619,7 @@ var ms = function(t, r) {
619
619
  function vs(e) {
620
620
  var t, r = e.state, n = e.name, i = e.options, s = r.elements.arrow, o = r.modifiersData.popperOffsets, a = Le(r.placement), l = Sr(a), f = [he, xe].indexOf(a) >= 0, u = f ? "height" : "width";
621
621
  if (!(!s || !o)) {
622
- var d = ms(i.padding, r), p = Er(s), v = l === "y" ? de : he, N = l === "y" ? we : xe, b = r.rects.reference[u] + r.rects.reference[l] - o[l] - r.rects.popper[u], y = o[l] - r.rects.reference[l], _ = Dt(s), w = _ ? l === "y" ? _.clientHeight || 0 : _.clientWidth || 0 : 0, M = b / 2 - y / 2, E = d[v], F = w - p[u] - d[N], L = w / 2 - p[u] / 2 + M, k = xt(E, L, F), $ = l;
622
+ var d = ms(i.padding, r), p = Er(s), v = l === "y" ? de : he, N = l === "y" ? we : xe, b = r.rects.reference[u] + r.rects.reference[l] - o[l] - r.rects.popper[u], y = o[l] - r.rects.reference[l], _ = Dt(s), w = _ ? l === "y" ? _.clientHeight || 0 : _.clientWidth || 0 : 0, M = b / 2 - y / 2, E = d[v], F = w - p[u] - d[N], L = w / 2 - p[u] / 2 + M, k = Nt(E, L, F), $ = l;
623
623
  r.modifiersData[n] = (t = {}, t[$] = k, t.centerOffset = k - L, t);
624
624
  }
625
625
  }
@@ -627,7 +627,7 @@ function gs(e) {
627
627
  var t = e.state, r = e.options, n = r.element, i = n === void 0 ? "[data-popper-arrow]" : n;
628
628
  i != null && (typeof i == "string" && (i = t.elements.popper.querySelector(i), !i) || Bn(t.elements.popper, i) && (t.elements.arrow = i));
629
629
  }
630
- const bs = {
630
+ const ys = {
631
631
  name: "arrow",
632
632
  enabled: !0,
633
633
  phase: "main",
@@ -636,10 +636,10 @@ const bs = {
636
636
  requires: ["popperOffsets"],
637
637
  requiresIfExists: ["preventOverflow"]
638
638
  };
639
- function ft(e) {
639
+ function dt(e) {
640
640
  return e.split("-")[1];
641
641
  }
642
- var ys = {
642
+ var bs = {
643
643
  top: "auto",
644
644
  right: "auto",
645
645
  bottom: "auto",
@@ -648,8 +648,8 @@ var ys = {
648
648
  function ws(e, t) {
649
649
  var r = e.x, n = e.y, i = t.devicePixelRatio || 1;
650
650
  return {
651
- x: ct(r * i) / i || 0,
652
- y: ct(n * i) / i || 0
651
+ x: ut(r * i) / i || 0,
652
+ y: ut(n * i) / i || 0
653
653
  };
654
654
  }
655
655
  function en(e) {
@@ -664,7 +664,7 @@ function en(e) {
664
664
  var _ = o.hasOwnProperty("x"), w = o.hasOwnProperty("y"), M = he, E = de, F = window;
665
665
  if (f) {
666
666
  var L = Dt(r), k = "clientHeight", $ = "clientWidth";
667
- if (L === ve(r) && (L = qe(r), Re(L).position !== "static" && a === "absolute" && (k = "scrollHeight", $ = "scrollWidth")), L = L, i === de || (i === he || i === xe) && s === Ot) {
667
+ if (L === ve(r) && (L = qe(r), Re(L).position !== "static" && a === "absolute" && (k = "scrollHeight", $ = "scrollWidth")), L = L, i === de || (i === he || i === xe) && s === Et) {
668
668
  E = we;
669
669
  var j = d && L === F && F.visualViewport ? F.visualViewport.height : (
670
670
  // $FlowFixMe[prop-missing]
@@ -672,7 +672,7 @@ function en(e) {
672
672
  );
673
673
  b -= j - n.height, b *= l ? 1 : -1;
674
674
  }
675
- if (i === he || (i === de || i === we) && s === Ot) {
675
+ if (i === he || (i === de || i === we) && s === Et) {
676
676
  M = xe;
677
677
  var H = d && L === F && F.visualViewport ? F.visualViewport.width : (
678
678
  // $FlowFixMe[prop-missing]
@@ -683,7 +683,7 @@ function en(e) {
683
683
  }
684
684
  var B = Object.assign({
685
685
  position: a
686
- }, f && ys), D = u === !0 ? ws({
686
+ }, f && bs), D = u === !0 ? ws({
687
687
  x: v,
688
688
  y: b
689
689
  }, ve(r)) : {
@@ -699,7 +699,7 @@ function en(e) {
699
699
  function xs(e) {
700
700
  var t = e.state, r = e.options, n = r.gpuAcceleration, i = n === void 0 ? !0 : n, s = r.adaptive, o = s === void 0 ? !0 : s, a = r.roundOffsets, l = a === void 0 ? !0 : a, f = {
701
701
  placement: Le(t.placement),
702
- variation: ft(t.placement),
702
+ variation: dt(t.placement),
703
703
  popper: t.elements.popper,
704
704
  popperRect: t.rects.popper,
705
705
  gpuAcceleration: i,
@@ -776,7 +776,7 @@ function Ar(e) {
776
776
  };
777
777
  }
778
778
  function Fr(e) {
779
- return ut(qe(e)).left + Ar(e).scrollLeft;
779
+ return ft(qe(e)).left + Ar(e).scrollLeft;
780
780
  }
781
781
  function Ss(e, t) {
782
782
  var r = ve(e), n = qe(e), i = r.visualViewport, s = n.clientWidth, o = n.clientHeight, a = 0, l = 0;
@@ -806,15 +806,15 @@ function Lr(e) {
806
806
  return /auto|scroll|overlay|hidden/.test(r + i + n);
807
807
  }
808
808
  function $n(e) {
809
- return ["html", "body", "#document"].indexOf(Ve(e)) >= 0 ? e.ownerDocument.body : ye(e) && Lr(e) ? e : $n(or(e));
809
+ return ["html", "body", "#document"].indexOf(Ve(e)) >= 0 ? e.ownerDocument.body : be(e) && Lr(e) ? e : $n(or(e));
810
810
  }
811
- function Nt(e, t) {
811
+ function Ct(e, t) {
812
812
  var r;
813
813
  t === void 0 && (t = []);
814
814
  var n = $n(e), i = n === ((r = e.ownerDocument) == null ? void 0 : r.body), s = ve(n), o = i ? [s].concat(s.visualViewport || [], Lr(n) ? n : []) : n, a = t.concat(o);
815
815
  return i ? a : (
816
816
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
817
- a.concat(Nt(or(o)))
817
+ a.concat(Ct(or(o)))
818
818
  );
819
819
  }
820
820
  function vr(e) {
@@ -826,14 +826,14 @@ function vr(e) {
826
826
  });
827
827
  }
828
828
  function Fs(e, t) {
829
- var r = ut(e, !1, t === "fixed");
829
+ var r = ft(e, !1, t === "fixed");
830
830
  return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
831
831
  }
832
832
  function rn(e, t, r) {
833
833
  return t === Tn ? vr(Ss(e, r)) : et(t) ? Fs(t, r) : vr(As(qe(e)));
834
834
  }
835
835
  function Ls(e) {
836
- var t = Nt(or(e)), r = ["absolute", "fixed"].indexOf(Re(e).position) >= 0, n = r && ye(e) ? Dt(e) : e;
836
+ var t = Ct(or(e)), r = ["absolute", "fixed"].indexOf(Re(e).position) >= 0, n = r && be(e) ? Dt(e) : e;
837
837
  return et(n) ? t.filter(function(i) {
838
838
  return et(i) && Bn(i, n) && Ve(i) !== "body";
839
839
  }) : [];
@@ -846,7 +846,7 @@ function Vs(e, t, r, n) {
846
846
  return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
847
847
  }
848
848
  function Hn(e) {
849
- var t = e.reference, r = e.element, n = e.placement, i = n ? Le(n) : null, s = n ? ft(n) : null, o = t.x + t.width / 2 - r.width / 2, a = t.y + t.height / 2 - r.height / 2, l;
849
+ var t = e.reference, r = e.element, n = e.placement, i = n ? Le(n) : null, s = n ? dt(n) : null, o = t.x + t.width / 2 - r.width / 2, a = t.y + t.height / 2 - r.height / 2, l;
850
850
  switch (i) {
851
851
  case de:
852
852
  l = {
@@ -882,19 +882,19 @@ function Hn(e) {
882
882
  if (f != null) {
883
883
  var u = f === "y" ? "height" : "width";
884
884
  switch (s) {
885
- case lt:
885
+ case ct:
886
886
  l[f] = l[f] - (t[u] / 2 - r[u] / 2);
887
887
  break;
888
- case Ot:
888
+ case Et:
889
889
  l[f] = l[f] + (t[u] / 2 - r[u] / 2);
890
890
  break;
891
891
  }
892
892
  }
893
893
  return l;
894
894
  }
895
- function Et(e, t) {
895
+ function St(e, t) {
896
896
  t === void 0 && (t = {});
897
- var r = t, n = r.placement, i = n === void 0 ? e.placement : n, s = r.strategy, o = s === void 0 ? e.strategy : s, a = r.boundary, l = a === void 0 ? Ki : a, f = r.rootBoundary, u = f === void 0 ? Tn : f, d = r.elementContext, p = d === void 0 ? bt : d, v = r.altBoundary, N = v === void 0 ? !1 : v, b = r.padding, y = b === void 0 ? 0 : b, _ = jn(typeof y != "number" ? y : In(y, _t)), w = p === bt ? Ji : bt, M = e.rects.popper, E = e.elements[N ? w : p], F = Vs(et(E) ? E : E.contextElement || qe(e.elements.popper), l, u, o), L = ut(e.elements.reference), k = Hn({
897
+ var r = t, n = r.placement, i = n === void 0 ? e.placement : n, s = r.strategy, o = s === void 0 ? e.strategy : s, a = r.boundary, l = a === void 0 ? Ki : a, f = r.rootBoundary, u = f === void 0 ? Tn : f, d = r.elementContext, p = d === void 0 ? bt : d, v = r.altBoundary, N = v === void 0 ? !1 : v, b = r.padding, y = b === void 0 ? 0 : b, _ = jn(typeof y != "number" ? y : In(y, _t)), w = p === bt ? Ji : bt, M = e.rects.popper, E = e.elements[N ? w : p], F = Vs(et(E) ? E : E.contextElement || qe(e.elements.popper), l, u, o), L = ft(e.elements.reference), k = Hn({
898
898
  reference: L,
899
899
  element: M,
900
900
  placement: i
@@ -915,14 +915,14 @@ function Et(e, t) {
915
915
  }
916
916
  function _s(e, t) {
917
917
  t === void 0 && (t = {});
918
- var r = t, n = r.placement, i = r.boundary, s = r.rootBoundary, o = r.padding, a = r.flipVariations, l = r.allowedAutoPlacements, f = l === void 0 ? Mn : l, u = ft(n), d = u ? a ? Jr : Jr.filter(function(N) {
919
- return ft(N) === u;
918
+ var r = t, n = r.placement, i = r.boundary, s = r.rootBoundary, o = r.padding, a = r.flipVariations, l = r.allowedAutoPlacements, f = l === void 0 ? Mn : l, u = dt(n), d = u ? a ? Jr : Jr.filter(function(N) {
919
+ return dt(N) === u;
920
920
  }) : _t, p = d.filter(function(N) {
921
921
  return f.indexOf(N) >= 0;
922
922
  });
923
923
  p.length === 0 && (p = d);
924
924
  var v = p.reduce(function(N, b) {
925
- return N[b] = Et(e, {
925
+ return N[b] = St(e, {
926
926
  placement: b,
927
927
  boundary: i,
928
928
  rootBoundary: s,
@@ -952,7 +952,7 @@ function Ts(e) {
952
952
  allowedAutoPlacements: b
953
953
  }) : Ce);
954
954
  }, []), F = t.rects.reference, L = t.rects.popper, k = /* @__PURE__ */ new Map(), $ = !0, j = E[0], H = 0; H < E.length; H++) {
955
- var B = E[H], D = Le(B), I = ft(B) === lt, q = [de, we].indexOf(D) >= 0, J = q ? "width" : "height", X = Et(t, {
955
+ var B = E[H], D = Le(B), I = dt(B) === ct, q = [de, we].indexOf(D) >= 0, J = q ? "width" : "height", X = St(t, {
956
956
  placement: B,
957
957
  boundary: u,
958
958
  rootBoundary: d,
@@ -970,7 +970,7 @@ function Ts(e) {
970
970
  k.set(B, ue);
971
971
  }
972
972
  if ($)
973
- for (var Te = N ? 3 : 1, it = function(Ce) {
973
+ for (var Te = N ? 3 : 1, st = function(Ce) {
974
974
  var Xe = E.find(function(Ie) {
975
975
  var Se = k.get(Ie);
976
976
  if (Se)
@@ -981,7 +981,7 @@ function Ts(e) {
981
981
  if (Xe)
982
982
  return j = Xe, "break";
983
983
  }, ze = Te; ze > 0; ze--) {
984
- var Ze = it(ze);
984
+ var Ze = st(ze);
985
985
  if (Ze === "break") break;
986
986
  }
987
987
  t.placement !== j && (t.modifiersData[n]._skip = !0, t.placement = j, t.reset = !0);
@@ -1014,9 +1014,9 @@ function sn(e) {
1014
1014
  });
1015
1015
  }
1016
1016
  function Ps(e) {
1017
- var t = e.state, r = e.name, n = t.rects.reference, i = t.rects.popper, s = t.modifiersData.preventOverflow, o = Et(t, {
1017
+ var t = e.state, r = e.name, n = t.rects.reference, i = t.rects.popper, s = t.modifiersData.preventOverflow, o = St(t, {
1018
1018
  elementContext: "reference"
1019
- }), a = Et(t, {
1019
+ }), a = St(t, {
1020
1020
  altBoundary: !0
1021
1021
  }), l = nn(o, n), f = nn(a, i, s), u = sn(l), d = sn(f);
1022
1022
  t.modifiersData[r] = {
@@ -1080,12 +1080,12 @@ function Ws(e) {
1080
1080
  return e === "x" ? "y" : "x";
1081
1081
  }
1082
1082
  function Us(e) {
1083
- var t = e.state, r = e.options, n = e.name, i = r.mainAxis, s = i === void 0 ? !0 : i, o = r.altAxis, a = o === void 0 ? !1 : o, l = r.boundary, f = r.rootBoundary, u = r.altBoundary, d = r.padding, p = r.tether, v = p === void 0 ? !0 : p, N = r.tetherOffset, b = N === void 0 ? 0 : N, y = Et(t, {
1083
+ var t = e.state, r = e.options, n = e.name, i = r.mainAxis, s = i === void 0 ? !0 : i, o = r.altAxis, a = o === void 0 ? !1 : o, l = r.boundary, f = r.rootBoundary, u = r.altBoundary, d = r.padding, p = r.tether, v = p === void 0 ? !0 : p, N = r.tetherOffset, b = N === void 0 ? 0 : N, y = St(t, {
1084
1084
  boundary: l,
1085
1085
  rootBoundary: f,
1086
1086
  padding: d,
1087
1087
  altBoundary: u
1088
- }), _ = Le(t.placement), w = ft(t.placement), M = !w, E = Sr(_), F = Ws(E), L = t.modifiersData.popperOffsets, k = t.rects.reference, $ = t.rects.popper, j = typeof b == "function" ? b(Object.assign({}, t.rects, {
1088
+ }), _ = Le(t.placement), w = dt(t.placement), M = !w, E = Sr(_), F = Ws(E), L = t.modifiersData.popperOffsets, k = t.rects.reference, $ = t.rects.popper, j = typeof b == "function" ? b(Object.assign({}, t.rects, {
1089
1089
  placement: t.placement
1090
1090
  })) : b, H = typeof j == "number" ? {
1091
1091
  mainAxis: j,
@@ -1099,14 +1099,14 @@ function Us(e) {
1099
1099
  };
1100
1100
  if (L) {
1101
1101
  if (s) {
1102
- var I, q = E === "y" ? de : he, J = E === "y" ? we : xe, X = E === "y" ? "height" : "width", Q = L[E], Ee = Q + y[q], ue = Q - y[J], Te = v ? -$[X] / 2 : 0, it = w === lt ? k[X] : $[X], ze = w === lt ? -$[X] : -k[X], Ze = t.elements.arrow, je = v && Ze ? Er(Ze) : {
1102
+ var I, q = E === "y" ? de : he, J = E === "y" ? we : xe, X = E === "y" ? "height" : "width", Q = L[E], Ee = Q + y[q], ue = Q - y[J], Te = v ? -$[X] / 2 : 0, st = w === ct ? k[X] : $[X], ze = w === ct ? -$[X] : -k[X], Ze = t.elements.arrow, je = v && Ze ? Er(Ze) : {
1103
1103
  width: 0,
1104
1104
  height: 0
1105
- }, Ce = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Rn(), Xe = Ce[q], Ie = Ce[J], Se = xt(0, k[X], je[X]), Ye = M ? k[X] / 2 - Te - Se - Xe - H.mainAxis : it - Se - Xe - H.mainAxis, vt = M ? -k[X] / 2 + Te + Se + Ie + H.mainAxis : ze + Se + Ie + H.mainAxis, gt = t.elements.arrow && Dt(t.elements.arrow), Mt = gt ? E === "y" ? gt.clientTop || 0 : gt.clientLeft || 0 : 0, Pt = (I = B == null ? void 0 : B[E]) != null ? I : 0, Bt = Q + Ye - Pt - Mt, Rt = Q + vt - Pt, jt = xt(v ? Jt(Ee, Bt) : Ee, Q, v ? Je(ue, Rt) : ue);
1105
+ }, Ce = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Rn(), Xe = Ce[q], Ie = Ce[J], Se = Nt(0, k[X], je[X]), Ye = M ? k[X] / 2 - Te - Se - Xe - H.mainAxis : st - Se - Xe - H.mainAxis, gt = M ? -k[X] / 2 + Te + Se + Ie + H.mainAxis : ze + Se + Ie + H.mainAxis, yt = t.elements.arrow && Dt(t.elements.arrow), Mt = yt ? E === "y" ? yt.clientTop || 0 : yt.clientLeft || 0 : 0, Pt = (I = B == null ? void 0 : B[E]) != null ? I : 0, Bt = Q + Ye - Pt - Mt, Rt = Q + gt - Pt, jt = Nt(v ? Jt(Ee, Bt) : Ee, Q, v ? Je(ue, Rt) : ue);
1106
1106
  L[E] = jt, D[E] = jt - Q;
1107
1107
  }
1108
1108
  if (a) {
1109
- var It, qr = E === "x" ? de : he, $t = E === "x" ? we : xe, h = L[F], m = F === "y" ? "height" : "width", g = h + y[qr], V = h - y[$t], O = [de, he].indexOf(_) !== -1, C = (It = B == null ? void 0 : B[F]) != null ? It : 0, P = O ? g : h - k[m] - $[m] - C + H.altAxis, U = O ? h + k[m] + $[m] - C - H.altAxis : V, z = v && O ? ps(P, h, U) : xt(v ? P : g, h, v ? U : V);
1109
+ var It, qr = E === "x" ? de : he, $t = E === "x" ? we : xe, h = L[F], m = F === "y" ? "height" : "width", g = h + y[qr], V = h - y[$t], O = [de, he].indexOf(_) !== -1, C = (It = B == null ? void 0 : B[F]) != null ? It : 0, P = O ? g : h - k[m] - $[m] - C + H.altAxis, U = O ? h + k[m] + $[m] - C - H.altAxis : V, z = v && O ? ps(P, h, U) : Nt(v ? P : g, h, v ? U : V);
1110
1110
  L[F] = z, D[F] = z - h;
1111
1111
  }
1112
1112
  t.modifiersData[n] = D;
@@ -1126,15 +1126,15 @@ function zs(e) {
1126
1126
  };
1127
1127
  }
1128
1128
  function Zs(e) {
1129
- return e === ve(e) || !ye(e) ? Ar(e) : zs(e);
1129
+ return e === ve(e) || !be(e) ? Ar(e) : zs(e);
1130
1130
  }
1131
1131
  function Xs(e) {
1132
- var t = e.getBoundingClientRect(), r = ct(t.width) / e.offsetWidth || 1, n = ct(t.height) / e.offsetHeight || 1;
1132
+ var t = e.getBoundingClientRect(), r = ut(t.width) / e.offsetWidth || 1, n = ut(t.height) / e.offsetHeight || 1;
1133
1133
  return r !== 1 || n !== 1;
1134
1134
  }
1135
1135
  function Ys(e, t, r) {
1136
1136
  r === void 0 && (r = !1);
1137
- var n = ye(t), i = ye(t) && Xs(t), s = qe(t), o = ut(e, i, r), a = {
1137
+ var n = be(t), i = be(t) && Xs(t), s = qe(t), o = ft(e, i, r), a = {
1138
1138
  scrollLeft: 0,
1139
1139
  scrollTop: 0
1140
1140
  }, l = {
@@ -1142,7 +1142,7 @@ function Ys(e, t, r) {
1142
1142
  y: 0
1143
1143
  };
1144
1144
  return (n || !n && !r) && ((Ve(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
1145
- Lr(s)) && (a = Zs(t)), ye(t) ? (l = ut(t, !0), l.x += t.clientLeft, l.y += t.clientTop) : s && (l.x = Fr(s))), {
1145
+ Lr(s)) && (a = Zs(t)), be(t) ? (l = ft(t, !0), l.x += t.clientLeft, l.y += t.clientTop) : s && (l.x = Fr(s))), {
1146
1146
  x: o.left + a.scrollLeft - l.x,
1147
1147
  y: o.top + a.scrollTop - l.y,
1148
1148
  width: o.width,
@@ -1231,8 +1231,8 @@ function eo(e) {
1231
1231
  setOptions: function(_) {
1232
1232
  var w = typeof _ == "function" ? _(u.options) : _;
1233
1233
  b(), u.options = Object.assign({}, s, u.options, w), u.scrollParents = {
1234
- reference: et(a) ? Nt(a) : a.contextElement ? Nt(a.contextElement) : [],
1235
- popper: Nt(l)
1234
+ reference: et(a) ? Ct(a) : a.contextElement ? Ct(a.contextElement) : [],
1235
+ popper: Ct(l)
1236
1236
  };
1237
1237
  var M = Ks(Qs([].concat(n, u.options.modifiers)));
1238
1238
  return u.orderedModifiers = M.filter(function(E) {
@@ -1309,7 +1309,7 @@ function eo(e) {
1309
1309
  return v;
1310
1310
  };
1311
1311
  }
1312
- var to = [ks, Hs, Ns, fs, Is, Ms, qs, bs, Bs], ro = /* @__PURE__ */ eo({
1312
+ var to = [ks, Hs, Ns, fs, Is, Ms, qs, ys, Bs], ro = /* @__PURE__ */ eo({
1313
1313
  defaultModifiers: to
1314
1314
  }), Ut = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1315
1315
  function Wn(e) {
@@ -1476,7 +1476,7 @@ function fo(e, t) {
1476
1476
  return !0;
1477
1477
  }
1478
1478
  function ho(e) {
1479
- const t = rt(e);
1479
+ const t = nt(e);
1480
1480
  return fo(t.current, e) || (t.current = e), t.current;
1481
1481
  }
1482
1482
  function po(e, t = () => null, { enabled: r = !0 } = {}) {
@@ -1543,13 +1543,13 @@ const vo = (e) => e.label, qn = De(
1543
1543
  renderSelectedOption: N = vo,
1544
1544
  ...b
1545
1545
  }, y) => {
1546
- const _ = rt(null);
1546
+ const _ = nt(null);
1547
1547
  Sn(y, () => _.current, []);
1548
- const { width: w } = mo(_.current), [M, E] = ot({
1548
+ const { width: w } = mo(_.current), [M, E] = at({
1549
1549
  value: s,
1550
1550
  defaultValue: o,
1551
1551
  onStateChange: (B) => void (B ? d == null ? void 0 : d() : v == null ? void 0 : v())
1552
- }), [F, L] = ot({
1552
+ }), [F, L] = at({
1553
1553
  value: r,
1554
1554
  defaultValue: n,
1555
1555
  onStateChange: p
@@ -1566,7 +1566,7 @@ const vo = (e) => e.label, qn = De(
1566
1566
  }, [E]), H = ae(() => {
1567
1567
  e || E(!M);
1568
1568
  }, [M, e, E]);
1569
- return /* @__PURE__ */ x(Ft, { children: [
1569
+ return /* @__PURE__ */ x(rt, { children: [
1570
1570
  /* @__PURE__ */ x(
1571
1571
  "div",
1572
1572
  {
@@ -1631,7 +1631,7 @@ const zn = sr({
1631
1631
  removeDialog: () => null,
1632
1632
  updateDialog: () => null
1633
1633
  });
1634
- function ll({ children: e }) {
1634
+ function cl({ children: e }) {
1635
1635
  const [t, r] = oe({}), n = Ue(() => Object.values(t).some((a) => a), [t]);
1636
1636
  ce(
1637
1637
  function() {
@@ -1740,7 +1740,7 @@ const Xn = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
1740
1740
  children: e
1741
1741
  }
1742
1742
  );
1743
- }, bo = ({
1743
+ }, yo = ({
1744
1744
  className: e = "",
1745
1745
  size: t = 24,
1746
1746
  variant: r = "primary"
@@ -1753,7 +1753,7 @@ const Xn = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
1753
1753
  xmlns: "http://www.w3.org/2000/svg",
1754
1754
  children: /* @__PURE__ */ c("path", { d: "M20 4H11.65C10.83 1.67 8.61 0 6 0C2.69 0 0 2.69 0 6C0 9.31 2.69 12 6 12C8.61 12 10.83 10.33 11.65 8H12L14 10L16 8L18 10L22 5.96L20 4ZM6 9C4.35 9 3 7.65 3 6C3 4.35 4.35 3 6 3C7.65 3 9 4.35 9 6C9 7.65 7.65 9 6 9Z" })
1755
1755
  }
1756
- ) }), yo = ({
1756
+ ) }), bo = ({
1757
1757
  className: e = "",
1758
1758
  size: t = 24,
1759
1759
  variant: r = "primary"
@@ -1880,11 +1880,11 @@ const Xn = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
1880
1880
  ] }),
1881
1881
  t
1882
1882
  ] }), Co = (e) => /* @__PURE__ */ c("div", { ...e, className: S("bbn-dialog-body", e.className) }), ko = (e) => /* @__PURE__ */ c("div", { ...e, className: S("bbn-dialog-footer", e.className) });
1883
- function cl({ className: e, ...t }) {
1883
+ function ul({ className: e, ...t }) {
1884
1884
  return /* @__PURE__ */ c("span", { ...t, className: S("bbn-chip", e) });
1885
1885
  }
1886
- function ul({ size: e = 40, className: t }) {
1887
- return /* @__PURE__ */ c("span", { className: be("bbn-loader text-current", t), style: { width: e, height: e }, children: /* @__PURE__ */ c("svg", { viewBox: "22 22 44 44", children: /* @__PURE__ */ c("circle", { cx: "44", cy: "44", r: "20.2", fill: "none", stroke: "currentColor", strokeWidth: "3.6" }) }) });
1886
+ function fl({ size: e = 40, className: t }) {
1887
+ return /* @__PURE__ */ c("span", { className: ye("bbn-loader text-current", t), style: { width: e, height: e }, children: /* @__PURE__ */ c("svg", { viewBox: "22 22 44 44", children: /* @__PURE__ */ c("circle", { cx: "44", cy: "44", r: "20.2", fill: "none", stroke: "currentColor", strokeWidth: "3.6" }) }) });
1888
1888
  }
1889
1889
  var Jn = "Expected a function", ln = NaN, Oo = "[object Symbol]", Eo = /^\s+|\s+$/g, So = /^[-+]0x[0-9a-f]+$/i, Ao = /^0b[01]+$/i, Fo = /^0o[0-7]+$/i, Lo = parseInt, Vo = typeof Ut == "object" && Ut && Ut.Object === Object && Ut, _o = typeof self == "object" && self && self.Object === Object && self, Do = Vo || _o || Function("return this")(), To = Object.prototype, Mo = To.toString, Po = Math.max, Bo = Math.min, dr = function() {
1890
1890
  return Do.Date.now();
@@ -2137,9 +2137,9 @@ function Xo({
2137
2137
  onSelectedRowChange: d,
2138
2138
  ...p
2139
2139
  }, v) {
2140
- const N = rt(null);
2140
+ const N = nt(null);
2141
2141
  Sn(v, () => N.current, []);
2142
- const { sortStates: b, handleColumnSort: y, sortedData: _ } = qo(e, t), { isScrolledTop: w } = Wo(N, { onLoadMore: o, hasMore: i, loading: s }), [M, E] = ot({
2142
+ const { sortStates: b, handleColumnSort: y, sortedData: _ } = qo(e, t), { isScrolledTop: w } = Wo(N, { onLoadMore: o, hasMore: i, loading: s }), [M, E] = at({
2143
2143
  value: f,
2144
2144
  defaultValue: u ?? null,
2145
2145
  onStateChange: d
@@ -2175,12 +2175,12 @@ function Xo({
2175
2175
  )) })
2176
2176
  ] }) }) });
2177
2177
  }
2178
- const fl = De(Xo);
2178
+ const dl = De(Xo);
2179
2179
  function Yo({ as: e = "div", className: t, children: r }) {
2180
- return br(e, { className: S("bbn-card", t) }, r);
2180
+ return yr(e, { className: S("bbn-card", t) }, r);
2181
2181
  }
2182
- function dl(e) {
2183
- const [t = !1, r] = ot({
2182
+ function hl(e) {
2183
+ const [t = !1, r] = at({
2184
2184
  value: e.value,
2185
2185
  defaultValue: e.defaultValue,
2186
2186
  onStateChange: e.onChange
@@ -2196,15 +2196,15 @@ const Go = {
2196
2196
  horizontal: "vertical",
2197
2197
  vertical: "horizontal"
2198
2198
  };
2199
- function hl({ className: e, orientation: t = "vertical", children: r }) {
2200
- return /* @__PURE__ */ c("div", { className: be("bbn-list", `bbn-list-${t}`, e), children: Xt.map(
2199
+ function pl({ className: e, orientation: t = "vertical", children: r }) {
2200
+ return /* @__PURE__ */ c("div", { className: ye("bbn-list", `bbn-list-${t}`, e), children: Xt.map(
2201
2201
  r,
2202
- (n) => wr(n) ? yr(n, {
2202
+ (n) => wr(n) ? br(n, {
2203
2203
  orientation: Go[t]
2204
2204
  }) : n
2205
2205
  ) });
2206
2206
  }
2207
- function pl({ className: e, orientation: t = "horizontal", title: r, value: n, suffix: i }) {
2207
+ function ml({ className: e, orientation: t = "horizontal", title: r, value: n, suffix: i }) {
2208
2208
  return /* @__PURE__ */ x("div", { className: S("bbn-list-item", `bbn-list-item-${t}`, e), children: [
2209
2209
  /* @__PURE__ */ c(
2210
2210
  W,
@@ -2221,7 +2221,7 @@ function pl({ className: e, orientation: t = "horizontal", title: r, value: n, s
2221
2221
  ] })
2222
2222
  ] });
2223
2223
  }
2224
- function ml({
2224
+ function vl({
2225
2225
  children: e,
2226
2226
  count: t = 0,
2227
2227
  max: r = 99,
@@ -2339,7 +2339,7 @@ const ti = sr(void 0), ri = () => Lt(ti), Qo = ({ children: e, value: t }) => /*
2339
2339
  )
2340
2340
  ]
2341
2341
  }
2342
- ) : null, N = () => /* @__PURE__ */ x(Ft, { children: [
2342
+ ) : null, N = () => /* @__PURE__ */ x(rt, { children: [
2343
2343
  v(),
2344
2344
  /* @__PURE__ */ c("div", { className: "flex-1 overflow-y-auto", children: n })
2345
2345
  ] });
@@ -2383,7 +2383,7 @@ const ti = sr(void 0), ri = () => Lt(ti), Qo = ({ children: e, value: t }) => /*
2383
2383
  );
2384
2384
  };
2385
2385
  function ii(e = 768, t = 100) {
2386
- const [r, n] = oe(() => typeof window < "u" ? window.innerWidth < e : !1), i = rt(), s = ae(() => {
2386
+ const [r, n] = oe(() => typeof window < "u" ? window.innerWidth < e : !1), i = nt(), s = ae(() => {
2387
2387
  n(window.innerWidth < e);
2388
2388
  }, [e]);
2389
2389
  return ce(() => (i.current = Qn(s, t), s(), window.addEventListener("resize", i.current), () => {
@@ -2400,7 +2400,7 @@ const si = ({
2400
2400
  className: o,
2401
2401
  mobileMode: a = "dialog"
2402
2402
  }) => {
2403
- const [l, f] = oe(!1), u = rt(null), d = ii(), p = r !== void 0 ? r : l, v = (_) => {
2403
+ const [l, f] = oe(!1), u = nt(null), d = ii(), p = r !== void 0 ? r : l, v = (_) => {
2404
2404
  r === void 0 && f(_), n == null || n(_);
2405
2405
  }, N = () => v(!1), b = /* @__PURE__ */ c("div", { className: "relative w-full overflow-hidden", children: e }), y = t || /* @__PURE__ */ c("button", { className: "rounded p-2 hover:bg-gray-100 dark:hover:bg-gray-800", onClick: () => v(!p), children: "Menu" });
2406
2406
  return /* @__PURE__ */ x(Qo, { value: { isOpen: p, setIsOpen: v, onClose: N, isMobile: d }, children: [
@@ -2535,7 +2535,7 @@ const si = ({
2535
2535
  children: /* @__PURE__ */ c("path", { d: "M6 4L10 8L6 12", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
2536
2536
  }
2537
2537
  );
2538
- return /* @__PURE__ */ x(Ft, { children: [
2538
+ return /* @__PURE__ */ x(rt, { children: [
2539
2539
  /* @__PURE__ */ x(
2540
2540
  "button",
2541
2541
  {
@@ -2575,7 +2575,7 @@ const si = ({
2575
2575
  }
2576
2576
  )
2577
2577
  ] });
2578
- }, vl = ({
2578
+ }, gl = ({
2579
2579
  label: e,
2580
2580
  description: t,
2581
2581
  onClick: r,
@@ -2662,7 +2662,7 @@ function ai(e = {}) {
2662
2662
  copyToClipboard: a
2663
2663
  };
2664
2664
  }
2665
- const gl = ({
2665
+ const yl = ({
2666
2666
  children: e,
2667
2667
  value: t,
2668
2668
  className: r,
@@ -2684,7 +2684,7 @@ const gl = ({
2684
2684
  return /* @__PURE__ */ c(
2685
2685
  "div",
2686
2686
  {
2687
- className: be(
2687
+ className: ye(
2688
2688
  "inline-flex items-center cursor-pointer hover:opacity-100 transition-opacity duration-200",
2689
2689
  r
2690
2690
  ),
@@ -2693,7 +2693,7 @@ const gl = ({
2693
2693
  /* @__PURE__ */ c(
2694
2694
  "div",
2695
2695
  {
2696
- className: be(
2696
+ className: ye(
2697
2697
  "transition-opacity duration-300 ease-in-out",
2698
2698
  v && "opacity-0"
2699
2699
  ),
@@ -2703,7 +2703,7 @@ const gl = ({
2703
2703
  v && /* @__PURE__ */ c(
2704
2704
  "div",
2705
2705
  {
2706
- className: be(
2706
+ className: ye(
2707
2707
  "absolute inset-0 flex items-center transition-opacity duration-300 ease-in-out text-green-600",
2708
2708
  "opacity-100"
2709
2709
  ),
@@ -2775,7 +2775,7 @@ const er = {
2775
2775
  validate: "validate"
2776
2776
  }, Br = R.createContext(null);
2777
2777
  Br.displayName = "HookFormContext";
2778
- const dt = () => R.useContext(Br), sa = (e) => {
2778
+ const ht = () => R.useContext(Br), sa = (e) => {
2779
2779
  const { children: t, ...r } = e;
2780
2780
  return R.createElement(Br.Provider, { value: r }, t);
2781
2781
  };
@@ -2794,7 +2794,7 @@ var fi = (e, t, r, n = !0) => {
2794
2794
  };
2795
2795
  const Rr = typeof window < "u" ? Pe.useLayoutEffect : Pe.useEffect;
2796
2796
  function di(e) {
2797
- const t = dt(), { control: r = t.control, disabled: n, name: i, exact: s } = e || {}, [o, a] = R.useState(r._formState), l = R.useRef({
2797
+ const t = ht(), { control: r = t.control, disabled: n, name: i, exact: s } = e || {}, [o, a] = R.useState(r._formState), l = R.useRef({
2798
2798
  isDirty: !1,
2799
2799
  isLoading: !1,
2800
2800
  dirtyFields: !1,
@@ -2820,7 +2820,7 @@ function di(e) {
2820
2820
  }
2821
2821
  var Ae = (e) => typeof e == "string", hi = (e, t, r, n, i) => Ae(e) ? (n && t.watch.add(e), A(r, e, i)) : Array.isArray(e) ? e.map((s) => (n && t.watch.add(s), A(r, s))) : (n && (t.watchAll = !0), r);
2822
2822
  function pi(e) {
2823
- const t = dt(), { control: r = t.control, name: n, defaultValue: i, disabled: s, exact: o } = e || {}, a = R.useRef(i), [l, f] = R.useState(r._getWatch(n, a.current));
2823
+ const t = ht(), { control: r = t.control, name: n, defaultValue: i, disabled: s, exact: o } = e || {}, a = R.useRef(i), [l, f] = R.useState(r._getWatch(n, a.current));
2824
2824
  return Rr(() => r._subscribe({
2825
2825
  name: n,
2826
2826
  formState: {
@@ -2831,7 +2831,7 @@ function pi(e) {
2831
2831
  }), [n, r, s, o]), R.useEffect(() => r._removeUnmounted()), l;
2832
2832
  }
2833
2833
  function oa(e) {
2834
- const t = dt(), { name: r, disabled: n, control: i = t.control, shouldUnregister: s } = e, o = ui(i._names.array, r), a = pi({
2834
+ const t = ht(), { name: r, disabled: n, control: i = t.control, shouldUnregister: s } = e, o = ui(i._names.array, r), a = pi({
2835
2835
  control: i,
2836
2836
  name: r,
2837
2837
  defaultValue: A(i._formValues, r, A(i._defaultValues, r, e.defaultValue)),
@@ -2927,7 +2927,7 @@ var mi = (e, t, r, n, i) => t ? {
2927
2927
  ...r[e] && r[e].types ? r[e].types : {},
2928
2928
  [n]: i || !0
2929
2929
  }
2930
- } : {}, Ct = (e) => Array.isArray(e) ? e : [e], un = () => {
2930
+ } : {}, kt = (e) => Array.isArray(e) ? e : [e], un = () => {
2931
2931
  let e = [];
2932
2932
  return {
2933
2933
  get observers() {
@@ -3006,19 +3006,19 @@ function rr(e, t = {}) {
3006
3006
  Array.isArray(e[n]) || te(e[n]) && !gi(e[n]) ? (t[n] = Array.isArray(e[n]) ? [] : {}, rr(e[n], t[n])) : le(e[n]) || (t[n] = !0);
3007
3007
  return t;
3008
3008
  }
3009
- function bi(e, t, r) {
3009
+ function yi(e, t, r) {
3010
3010
  const n = Array.isArray(e);
3011
3011
  if (te(e) || n)
3012
3012
  for (const i in e)
3013
- Array.isArray(e[i]) || te(e[i]) && !gi(e[i]) ? ee(t) || gr(r[i]) ? r[i] = Array.isArray(e[i]) ? rr(e[i], []) : { ...rr(e[i]) } : bi(e[i], le(t) ? {} : t[i], r[i]) : r[i] = !We(e[i], t[i]);
3013
+ Array.isArray(e[i]) || te(e[i]) && !gi(e[i]) ? ee(t) || gr(r[i]) ? r[i] = Array.isArray(e[i]) ? rr(e[i], []) : { ...rr(e[i]) } : yi(e[i], le(t) ? {} : t[i], r[i]) : r[i] = !We(e[i], t[i]);
3014
3014
  return r;
3015
3015
  }
3016
- var yt = (e, t) => bi(e, t, rr(t));
3016
+ var wt = (e, t) => yi(e, t, rr(t));
3017
3017
  const fn = {
3018
3018
  value: !1,
3019
3019
  isValid: !1
3020
3020
  }, dn = { value: !0, isValid: !0 };
3021
- var yi = (e) => {
3021
+ var bi = (e) => {
3022
3022
  if (Array.isArray(e)) {
3023
3023
  if (e.length > 1) {
3024
3024
  const t = e.filter((r) => r && r.checked && !r.disabled).map((r) => r.value);
@@ -3041,7 +3041,7 @@ var xi = (e) => Array.isArray(e) ? e.reduce((t, r) => r && r.checked && !r.disab
3041
3041
  } : t, hn) : hn;
3042
3042
  function pn(e) {
3043
3043
  const t = e.ref;
3044
- return jr(t) ? t.files : Ir(t) ? xi(e.refs).value : vi(t) ? [...t.selectedOptions].map(({ value: r }) => r) : Tt(t) ? yi(e.refs).value : wi(ee(t.value) ? e.ref.value : t.value, e);
3044
+ return jr(t) ? t.files : Ir(t) ? xi(e.refs).value : vi(t) ? [...t.selectedOptions].map(({ value: r }) => r) : Tt(t) ? bi(e.refs).value : wi(ee(t.value) ? e.ref.value : t.value, e);
3045
3045
  }
3046
3046
  var ua = (e, t, r, n) => {
3047
3047
  const i = {};
@@ -3055,7 +3055,7 @@ var ua = (e, t, r, n) => {
3055
3055
  fields: i,
3056
3056
  shouldUseNativeValidation: n
3057
3057
  };
3058
- }, nr = (e) => e instanceof RegExp, wt = (e) => ee(e) ? e : nr(e) ? e.source : te(e) ? nr(e.value) ? e.value.source : e.value : e, mn = (e) => ({
3058
+ }, nr = (e) => e instanceof RegExp, xt = (e) => ee(e) ? e : nr(e) ? e.source : te(e) ? nr(e.value) ? e.value.source : e.value : e, mn = (e) => ({
3059
3059
  isOnSubmit: !e || e === ke.onSubmit,
3060
3060
  isOnBlur: e === ke.onBlur,
3061
3061
  isOnChange: e === ke.onChange,
@@ -3064,7 +3064,7 @@ var ua = (e, t, r, n) => {
3064
3064
  });
3065
3065
  const vn = "AsyncFunction";
3066
3066
  var fa = (e) => !!e && !!e.validate && !!(Oe(e.validate) && e.validate.constructor.name === vn || te(e.validate) && Object.values(e.validate).find((t) => t.constructor.name === vn)), da = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), gn = (e, t, r) => !r && (t.watchAll || t.watch.has(e) || [...t.watch].some((n) => e.startsWith(n) && /^\.\w+/.test(e.slice(n.length))));
3067
- const kt = (e, t, r, n) => {
3067
+ const Ot = (e, t, r, n) => {
3068
3068
  for (const i of r || Object.keys(e)) {
3069
3069
  const s = A(e, i);
3070
3070
  if (s) {
@@ -3074,14 +3074,14 @@ const kt = (e, t, r, n) => {
3074
3074
  return !0;
3075
3075
  if (o.ref && t(o.ref, o.name) && !n)
3076
3076
  return !0;
3077
- if (kt(a, t))
3077
+ if (Ot(a, t))
3078
3078
  break;
3079
- } else if (te(a) && kt(a, t))
3079
+ } else if (te(a) && Ot(a, t))
3080
3080
  break;
3081
3081
  }
3082
3082
  }
3083
3083
  };
3084
- function bn(e, t, r) {
3084
+ function yn(e, t, r) {
3085
3085
  const n = A(e, r);
3086
3086
  if (n || cr(r))
3087
3087
  return {
@@ -3113,11 +3113,11 @@ var ha = (e, t, r, n) => {
3113
3113
  r(e);
3114
3114
  const { name: i, ...s } = e;
3115
3115
  return fe(s) || Object.keys(s).length >= Object.keys(t).length || Object.keys(s).find((o) => t[o] === (!n || ke.all));
3116
- }, pa = (e, t, r) => !e || !t || e === t || Ct(e).some((n) => n && (r ? n === t : n.startsWith(t) || t.startsWith(n))), ma = (e, t, r, n, i) => i.isOnAll ? !1 : !r && i.isOnTouch ? !(t || e) : (r ? n.isOnBlur : i.isOnBlur) ? !e : (r ? n.isOnChange : i.isOnChange) ? e : !0, va = (e, t) => !Mr(A(e, t)).length && re(e, t), ga = (e, t, r) => {
3117
- const n = Ct(A(e, r));
3116
+ }, pa = (e, t, r) => !e || !t || e === t || kt(e).some((n) => n && (r ? n === t : n.startsWith(t) || t.startsWith(n))), ma = (e, t, r, n, i) => i.isOnAll ? !1 : !r && i.isOnTouch ? !(t || e) : (r ? n.isOnBlur : i.isOnBlur) ? !e : (r ? n.isOnChange : i.isOnChange) ? e : !0, va = (e, t) => !Mr(A(e, t)).length && re(e, t), ga = (e, t, r) => {
3117
+ const n = kt(A(e, r));
3118
3118
  return Z(n, "root", t[r]), Z(e, r, n), e;
3119
3119
  }, Zt = (e) => Ae(e);
3120
- function yn(e, t, r = "validate") {
3120
+ function bn(e, t, r = "validate") {
3121
3121
  if (Zt(e) || Array.isArray(e) && e.every(Zt) || pe(e) && !e)
3122
3122
  return {
3123
3123
  type: r,
@@ -3125,7 +3125,7 @@ function yn(e, t, r = "validate") {
3125
3125
  ref: t
3126
3126
  };
3127
3127
  }
3128
- var st = (e) => te(e) && !nr(e) ? e : {
3128
+ var ot = (e) => te(e) && !nr(e) ? e : {
3129
3129
  value: e,
3130
3130
  message: ""
3131
3131
  }, wn = async (e, t, r, n, i, s) => {
@@ -3143,8 +3143,8 @@ var st = (e) => te(e) && !nr(e) ? e : {
3143
3143
  ...H(D ? J : X, Q)
3144
3144
  };
3145
3145
  };
3146
- if (s ? !Array.isArray(w) || !w.length : l && (!$ && (j || le(w)) || pe(w) && !w || k && !yi(a).isValid || L && !xi(a).isValid)) {
3147
- const { value: D, message: I } = Zt(l) ? { value: !!l, message: l } : st(l);
3146
+ if (s ? !Array.isArray(w) || !w.length : l && (!$ && (j || le(w)) || pe(w) && !w || k && !bi(a).isValid || L && !xi(a).isValid)) {
3147
+ const { value: D, message: I } = Zt(l) ? { value: !!l, message: l } : ot(l);
3148
3148
  if (D && (F[b] = {
3149
3149
  type: Me.required,
3150
3150
  message: I,
@@ -3155,7 +3155,7 @@ var st = (e) => te(e) && !nr(e) ? e : {
3155
3155
  }
3156
3156
  if (!j && (!le(d) || !le(p))) {
3157
3157
  let D, I;
3158
- const q = st(p), J = st(d);
3158
+ const q = ot(p), J = ot(d);
3159
3159
  if (!le(w) && !isNaN(w)) {
3160
3160
  const X = o.valueAsNumber || w && +w;
3161
3161
  le(q.value) || (D = X > q.value), le(J.value) || (I = X < J.value);
@@ -3167,12 +3167,12 @@ var st = (e) => te(e) && !nr(e) ? e : {
3167
3167
  return E(F[b].message), F;
3168
3168
  }
3169
3169
  if ((f || u) && !j && (Ae(w) || s && Array.isArray(w))) {
3170
- const D = st(f), I = st(u), q = !le(D.value) && w.length > +D.value, J = !le(I.value) && w.length < +I.value;
3170
+ const D = ot(f), I = ot(u), q = !le(D.value) && w.length > +D.value, J = !le(I.value) && w.length < +I.value;
3171
3171
  if ((q || J) && (B(q, D.message, I.message), !n))
3172
3172
  return E(F[b].message), F;
3173
3173
  }
3174
3174
  if (v && !j && Ae(w)) {
3175
- const { value: D, message: I } = st(v);
3175
+ const { value: D, message: I } = ot(v);
3176
3176
  if (nr(D) && !w.match(D) && (F[b] = {
3177
3177
  type: Me.pattern,
3178
3178
  message: I,
@@ -3183,7 +3183,7 @@ var st = (e) => te(e) && !nr(e) ? e : {
3183
3183
  }
3184
3184
  if (N) {
3185
3185
  if (Oe(N)) {
3186
- const D = await N(w, r), I = yn(D, M);
3186
+ const D = await N(w, r), I = bn(D, M);
3187
3187
  if (I && (F[b] = {
3188
3188
  ...I,
3189
3189
  ...H(Me.validate, I.message)
@@ -3194,7 +3194,7 @@ var st = (e) => te(e) && !nr(e) ? e : {
3194
3194
  for (const I in N) {
3195
3195
  if (!fe(D) && !n)
3196
3196
  break;
3197
- const q = yn(await N[I](w, r), M, I);
3197
+ const q = bn(await N[I](w, r), M, I);
3198
3198
  q && (D = {
3199
3199
  ...q,
3200
3200
  ...H(I, q.message)
@@ -3209,14 +3209,14 @@ var st = (e) => te(e) && !nr(e) ? e : {
3209
3209
  }
3210
3210
  return E(!0), F;
3211
3211
  };
3212
- const ba = {
3212
+ const ya = {
3213
3213
  mode: ke.onSubmit,
3214
3214
  reValidateMode: ke.onChange,
3215
3215
  shouldFocusError: !0
3216
3216
  };
3217
- function ya(e = {}) {
3217
+ function ba(e = {}) {
3218
3218
  let t = {
3219
- ...ba,
3219
+ ...ya,
3220
3220
  ...e
3221
3221
  }, r = {
3222
3222
  submitCount: 0,
@@ -3289,7 +3289,7 @@ function ya(e = {}) {
3289
3289
  const P = g(A(r.touchedFields, h), V.argA, V.argB);
3290
3290
  O && Z(r.touchedFields, h, P);
3291
3291
  }
3292
- (u.dirtyFields || d.dirtyFields) && (r.dirtyFields = yt(i, s)), p.state.next({
3292
+ (u.dirtyFields || d.dirtyFields) && (r.dirtyFields = wt(i, s)), p.state.next({
3293
3293
  name: h,
3294
3294
  isDirty: B(h, m),
3295
3295
  dirtyFields: r.dirtyFields,
@@ -3413,7 +3413,7 @@ function ya(e = {}) {
3413
3413
  values: ie(s)
3414
3414
  }), (u.isDirty || u.dirtyFields || d.isDirty || d.dirtyFields) && g.shouldDirty && p.state.next({
3415
3415
  name: h,
3416
- dirtyFields: yt(i, s),
3416
+ dirtyFields: wt(i, s),
3417
3417
  isDirty: B(h, C)
3418
3418
  })) : V && !V._f && !le(C) ? J(h, C, g) : q(h, C, g), gn(h, a) && p.state.next({ ...r }), p.state.next({
3419
3419
  name: o.mount ? h : void 0,
@@ -3440,7 +3440,7 @@ function ya(e = {}) {
3440
3440
  if (!$e && ur && p.state.next({ ...r }), t.resolver) {
3441
3441
  const { errors: zr } = await k([g]);
3442
3442
  if (C(Ht), V) {
3443
- const Di = bn(r.errors, n, g), Zr = bn(zr, n, Di.name || g);
3443
+ const Di = yn(r.errors, n, g), Zr = yn(zr, n, Di.name || g);
3444
3444
  z = Zr.error, g = Zr.name, ge = fe(zr);
3445
3445
  }
3446
3446
  } else
@@ -3452,7 +3452,7 @@ function ya(e = {}) {
3452
3452
  return h.focus(), 1;
3453
3453
  }, ue = async (h, m = {}) => {
3454
3454
  let g, V;
3455
- const O = Ct(h);
3455
+ const O = kt(h);
3456
3456
  if (t.resolver) {
3457
3457
  const C = await $(ee(h) ? h : O);
3458
3458
  g = fe(C), V = h ? !O.some((P) => A(C, P)) : g;
@@ -3464,20 +3464,20 @@ function ya(e = {}) {
3464
3464
  ...!Ae(h) || (u.isValid || d.isValid) && g !== r.isValid ? {} : { name: h },
3465
3465
  ...t.resolver || !h ? { isValid: g } : {},
3466
3466
  errors: r.errors
3467
- }), m.shouldFocus && !V && kt(n, Ee, h ? O : a.mount), V;
3467
+ }), m.shouldFocus && !V && Ot(n, Ee, h ? O : a.mount), V;
3468
3468
  }, Te = (h) => {
3469
3469
  const m = {
3470
3470
  ...o.mount ? s : i
3471
3471
  };
3472
3472
  return ee(h) ? m : Ae(h) ? A(m, h) : h.map((g) => A(m, g));
3473
- }, it = (h, m) => ({
3473
+ }, st = (h, m) => ({
3474
3474
  invalid: !!A((m || r).errors, h),
3475
3475
  isDirty: !!A((m || r).dirtyFields, h),
3476
3476
  error: A((m || r).errors, h),
3477
3477
  isValidating: !!A(r.validatingFields, h),
3478
3478
  isTouched: !!A((m || r).touchedFields, h)
3479
3479
  }), ze = (h) => {
3480
- h && Ct(h).forEach((m) => re(r.errors, m)), p.state.next({
3480
+ h && kt(h).forEach((m) => re(r.errors, m)), p.state.next({
3481
3481
  errors: h ? r.errors : {}
3482
3482
  });
3483
3483
  }, Ze = (h, m, g) => {
@@ -3508,7 +3508,7 @@ function ya(e = {}) {
3508
3508
  ...h,
3509
3509
  formState: d
3510
3510
  })), Ie = (h, m = {}) => {
3511
- for (const g of h ? Ct(h) : a.mount)
3511
+ for (const g of h ? kt(h) : a.mount)
3512
3512
  a.mount.delete(g), a.array.delete(g), m.keepValue || (re(n, g), re(s, g)), !m.keepError && re(r.errors, g), !m.keepDirty && re(r.dirtyFields, g), !m.keepTouched && re(r.touchedFields, g), !m.keepIsValidating && re(r.validatingFields, g), !t.shouldUnregister && !m.keepDefaultValue && re(i, g);
3513
3513
  p.state.next({
3514
3514
  values: ie(s)
@@ -3536,11 +3536,11 @@ function ya(e = {}) {
3536
3536
  ...V ? { disabled: m.disabled || t.disabled } : {},
3537
3537
  ...t.progressive ? {
3538
3538
  required: !!m.required,
3539
- min: wt(m.min),
3540
- max: wt(m.max),
3541
- minLength: wt(m.minLength),
3542
- maxLength: wt(m.maxLength),
3543
- pattern: wt(m.pattern)
3539
+ min: xt(m.min),
3540
+ max: xt(m.max),
3541
+ minLength: xt(m.minLength),
3542
+ maxLength: xt(m.maxLength),
3543
+ pattern: xt(m.pattern)
3544
3544
  } : {},
3545
3545
  name: h,
3546
3546
  onChange: Q,
@@ -3568,8 +3568,8 @@ function ya(e = {}) {
3568
3568
  g = A(n, h, {}), g._f && (g._f.mount = !1), (t.shouldUnregister || m.shouldUnregister) && !(ui(a.array, h) && o.action) && a.unMount.add(h);
3569
3569
  }
3570
3570
  };
3571
- }, vt = () => t.shouldFocusError && kt(n, Ee, a.mount), gt = (h) => {
3572
- pe(h) && (p.state.next({ disabled: h }), kt(n, (m, g) => {
3571
+ }, gt = () => t.shouldFocusError && Ot(n, Ee, a.mount), yt = (h) => {
3572
+ pe(h) && (p.state.next({ disabled: h }), Ot(n, (m, g) => {
3573
3573
  const V = A(n, g);
3574
3574
  V && (m.disabled = V._f.disabled || h, Array.isArray(V._f.refs) && V._f.refs.forEach((O) => {
3575
3575
  O.disabled = V._f.disabled || h;
@@ -3599,7 +3599,7 @@ function ya(e = {}) {
3599
3599
  V = C;
3600
3600
  }
3601
3601
  } else
3602
- m && await m({ ...r.errors }, g), vt(), setTimeout(vt);
3602
+ m && await m({ ...r.errors }, g), gt(), setTimeout(gt);
3603
3603
  if (p.state.next({
3604
3604
  isSubmitted: !0,
3605
3605
  isSubmitting: !1,
@@ -3616,7 +3616,7 @@ function ya(e = {}) {
3616
3616
  if (m.keepDirtyValues) {
3617
3617
  const P = /* @__PURE__ */ new Set([
3618
3618
  ...a.mount,
3619
- ...Object.keys(yt(i, s))
3619
+ ...Object.keys(wt(i, s))
3620
3620
  ]);
3621
3621
  for (const U of Array.from(P))
3622
3622
  A(r.dirtyFields, U) ? Z(C, U, A(s, U)) : X(U, A(C, U));
@@ -3659,7 +3659,7 @@ function ya(e = {}) {
3659
3659
  submitCount: m.keepSubmitCount ? r.submitCount : 0,
3660
3660
  isDirty: O ? !1 : m.keepDirty ? r.isDirty : !!(m.keepDefaultValues && !We(h, i)),
3661
3661
  isSubmitted: m.keepIsSubmitted ? r.isSubmitted : !1,
3662
- dirtyFields: O ? {} : m.keepDirtyValues ? m.keepDefaultValues && s ? yt(i, s) : r.dirtyFields : m.keepDefaultValues && h ? yt(i, h) : m.keepDirty ? r.dirtyFields : {},
3662
+ dirtyFields: O ? {} : m.keepDirtyValues ? m.keepDefaultValues && s ? wt(i, s) : r.dirtyFields : m.keepDefaultValues && h ? wt(i, h) : m.keepDirty ? r.dirtyFields : {},
3663
3663
  touchedFields: m.keepTouched ? r.touchedFields : {},
3664
3664
  errors: m.keepErrors ? r.errors : {},
3665
3665
  isSubmitSuccessful: m.keepIsSubmitSuccessful ? r.isSubmitSuccessful : !1,
@@ -3680,12 +3680,12 @@ function ya(e = {}) {
3680
3680
  control: {
3681
3681
  register: Ye,
3682
3682
  unregister: Ie,
3683
- getFieldState: it,
3683
+ getFieldState: st,
3684
3684
  handleSubmit: Mt,
3685
3685
  setError: Ze,
3686
3686
  _subscribe: Ce,
3687
3687
  _runSchema: k,
3688
- _focusError: vt,
3688
+ _focusError: gt,
3689
3689
  _getWatch: D,
3690
3690
  _getDirty: B,
3691
3691
  _setValid: b,
@@ -3700,7 +3700,7 @@ function ya(e = {}) {
3700
3700
  });
3701
3701
  }),
3702
3702
  _removeUnmounted: H,
3703
- _disableForm: gt,
3703
+ _disableForm: yt,
3704
3704
  _subjects: p,
3705
3705
  _proxyFormState: u,
3706
3706
  get _fields() {
@@ -3750,7 +3750,7 @@ function ya(e = {}) {
3750
3750
  unregister: Ie,
3751
3751
  setError: Ze,
3752
3752
  setFocus: jt,
3753
- getFieldState: it
3753
+ getFieldState: st
3754
3754
  };
3755
3755
  return {
3756
3756
  ...$t,
@@ -3782,7 +3782,7 @@ function wa(e = {}) {
3782
3782
  formState: n
3783
3783
  }, e.defaultValues && !Oe(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
3784
3784
  else {
3785
- const { formControl: o, ...a } = ya(e);
3785
+ const { formControl: o, ...a } = ba(e);
3786
3786
  t.current = {
3787
3787
  ...a,
3788
3788
  formState: n
@@ -3906,7 +3906,7 @@ function bl({
3906
3906
  }
3907
3907
  ) });
3908
3908
  }
3909
- function ht({
3909
+ function pt({
3910
3910
  name: e,
3911
3911
  defaultValue: t,
3912
3912
  disabled: r = !1,
@@ -3914,7 +3914,7 @@ function ht({
3914
3914
  shouldUnregister: i = !1,
3915
3915
  validateOnMount: s = !0
3916
3916
  }) {
3917
- const { setFocus: o, trigger: a } = dt(), { field: l, fieldState: f } = oa({ name: e, defaultValue: t, disabled: r, shouldUnregister: i }), { invalid: u, isTouched: d, error: p } = f;
3917
+ const { setFocus: o, trigger: a } = ht(), { field: l, fieldState: f } = oa({ name: e, defaultValue: t, disabled: r, shouldUnregister: i }), { invalid: u, isTouched: d, error: p } = f;
3918
3918
  return ce(() => {
3919
3919
  s ? a(e, { shouldFocus: n }) : n && o(e);
3920
3920
  }, [e, s]), {
@@ -3924,12 +3924,12 @@ function ht({
3924
3924
  error: (p == null ? void 0 : p.message) ?? ""
3925
3925
  };
3926
3926
  }
3927
- function yl(e) {
3928
- const { getFieldState: t } = dt(), r = di({ name: e });
3927
+ function wl(e) {
3928
+ const { getFieldState: t } = ht(), r = di({ name: e });
3929
3929
  return Array.isArray(e) ? e.map((i) => t(i, r)) : t(e, r);
3930
3930
  }
3931
3931
  const ka = /^-?\d*\.?\d*$/;
3932
- function wl({
3932
+ function xl({
3933
3933
  name: e,
3934
3934
  id: t = e,
3935
3935
  label: r,
@@ -3954,7 +3954,7 @@ function wl({
3954
3954
  invalid: M,
3955
3955
  onChange: E,
3956
3956
  onBlur: F
3957
- } = ht({ name: e, defaultValue: l, autoFocus: a, shouldUnregister: v, validateOnMount: b }), L = M ? "error" : N;
3957
+ } = pt({ name: e, defaultValue: l, autoFocus: a, shouldUnregister: v, validateOnMount: b }), L = M ? "error" : N;
3958
3958
  return /* @__PURE__ */ c(lr, { label: r, className: s, state: L, hint: M ? w : n, children: /* @__PURE__ */ c(
3959
3959
  Vr,
3960
3960
  {
@@ -3979,7 +3979,7 @@ function wl({
3979
3979
  }
3980
3980
  ) });
3981
3981
  }
3982
- function xl({
3982
+ function Nl({
3983
3983
  name: e,
3984
3984
  id: t = e,
3985
3985
  label: r,
@@ -4004,7 +4004,7 @@ function xl({
4004
4004
  invalid: M,
4005
4005
  onChange: E,
4006
4006
  onBlur: F
4007
- } = ht({ name: e, defaultValue: l, autoFocus: a, shouldUnregister: v, validateOnMount: b }), L = M ? "error" : N;
4007
+ } = pt({ name: e, defaultValue: l, autoFocus: a, shouldUnregister: v, validateOnMount: b }), L = M ? "error" : N;
4008
4008
  return /* @__PURE__ */ c(lr, { label: r, className: s, state: L, hint: M ? w : n, children: /* @__PURE__ */ c(
4009
4009
  Vr,
4010
4010
  {
@@ -4025,7 +4025,7 @@ function xl({
4025
4025
  }
4026
4026
  ) });
4027
4027
  }
4028
- function Nl({
4028
+ function Cl({
4029
4029
  name: e,
4030
4030
  id: t = e,
4031
4031
  label: r,
@@ -4036,7 +4036,7 @@ function Nl({
4036
4036
  labelClassName: a,
4037
4037
  orientation: l
4038
4038
  }) {
4039
- const { ref: f, value: u = !1, onChange: d, onBlur: p } = ht({ name: e });
4039
+ const { ref: f, value: u = !1, onChange: d, onBlur: p } = pt({ name: e });
4040
4040
  return /* @__PURE__ */ c(
4041
4041
  Ri,
4042
4042
  {
@@ -4055,7 +4055,7 @@ function Nl({
4055
4055
  }
4056
4056
  );
4057
4057
  }
4058
- function Cl({
4058
+ function kl({
4059
4059
  name: e,
4060
4060
  id: t = e,
4061
4061
  label: r,
@@ -4071,7 +4071,7 @@ function Cl({
4071
4071
  value: u,
4072
4072
  onChange: d,
4073
4073
  onBlur: p
4074
- } = ht({ name: e, disabled: i, defaultValue: o ? s : void 0 });
4074
+ } = pt({ name: e, disabled: i, defaultValue: o ? s : void 0 });
4075
4075
  return /* @__PURE__ */ c(
4076
4076
  Ii,
4077
4077
  {
@@ -4089,7 +4089,7 @@ function Cl({
4089
4089
  }
4090
4090
  );
4091
4091
  }
4092
- function kl({
4092
+ function Ol({
4093
4093
  open: e,
4094
4094
  defaultOpen: t,
4095
4095
  options: r,
@@ -4119,7 +4119,7 @@ function kl({
4119
4119
  invalid: $,
4120
4120
  onChange: j,
4121
4121
  onBlur: H
4122
- } = ht({ name: s, defaultValue: v, autoFocus: p, shouldUnregister: b, validateOnMount: _ }), B = $ ? "error" : y;
4122
+ } = pt({ name: s, defaultValue: v, autoFocus: p, shouldUnregister: b, validateOnMount: _ }), B = $ ? "error" : y;
4123
4123
  return /* @__PURE__ */ c(lr, { label: a, className: u, state: B, hint: $ ? k : l, children: /* @__PURE__ */ c(
4124
4124
  qn,
4125
4125
  {
@@ -4147,7 +4147,7 @@ function kl({
4147
4147
  ) });
4148
4148
  }
4149
4149
  function Oa({ displayError: e = !1, ...t }) {
4150
- const { error: r, value: n, onChange: i, onBlur: s, disabled: o, name: a, ref: l } = ht(t), f = /* @__PURE__ */ c("input", { ref: l, type: "hidden", name: a, disabled: o, value: n, onChange: i, onBlur: s });
4150
+ const { error: r, value: n, onChange: i, onBlur: s, disabled: o, name: a, ref: l } = pt(t), f = /* @__PURE__ */ c("input", { ref: l, type: "hidden", name: a, disabled: o, value: n, onChange: i, onBlur: s });
4151
4151
  return e ? /* @__PURE__ */ c(lr, { hint: e ? r : "", state: e ? "error" : "default", children: f }) : f;
4152
4152
  }
4153
4153
  const Ea = {
@@ -4165,7 +4165,7 @@ const Ea = {
4165
4165
  }
4166
4166
  }, Sa = ({ logoUrl: e, rank: t, moniker: r, size: n = "md", className: i }) => {
4167
4167
  const [s, o] = oe(!1), a = Ea[n], l = (r == null ? void 0 : r.charAt(0).toUpperCase()) ?? String(t);
4168
- return /* @__PURE__ */ c("span", { className: be("relative inline-block", a.logo, i), children: e && !s ? /* @__PURE__ */ c(
4168
+ return /* @__PURE__ */ c("span", { className: ye("relative inline-block", a.logo, i), children: e && !s ? /* @__PURE__ */ c(
4169
4169
  "img",
4170
4170
  {
4171
4171
  src: e,
@@ -4227,7 +4227,7 @@ function Ci({ bsnId: e, bsnName: t, bsnLogoUrl: r, address: n, provider: i, onRe
4227
4227
  ) : null
4228
4228
  ] });
4229
4229
  }
4230
- const Ol = ({
4230
+ const El = ({
4231
4231
  attributes: e,
4232
4232
  providerItemProps: t,
4233
4233
  isSelected: r = !1,
@@ -4248,7 +4248,7 @@ const Ol = ({
4248
4248
  s
4249
4249
  )),
4250
4250
  i && /* @__PURE__ */ c(
4251
- at,
4251
+ lt,
4252
4252
  {
4253
4253
  className: "mt-4",
4254
4254
  onClick: i,
@@ -4257,8 +4257,52 @@ const Ol = ({
4257
4257
  children: r ? "Selected" : "Select"
4258
4258
  }
4259
4259
  )
4260
+ ] }), Aa = ({
4261
+ amount: e,
4262
+ currencyIcon: t,
4263
+ currencyName: r,
4264
+ placeholder: n = "Enter Amount",
4265
+ subtitle: i,
4266
+ displayBalance: s,
4267
+ balanceDetails: o,
4268
+ min: a,
4269
+ step: l,
4270
+ autoFocus: f,
4271
+ onChange: u,
4272
+ onKeyDown: d,
4273
+ amountUsd: p,
4274
+ disabled: v = !1
4275
+ }) => /* @__PURE__ */ x(rt, { children: [
4276
+ /* @__PURE__ */ x("div", { className: "flex w-full flex-row content-center items-center justify-between font-normal", children: [
4277
+ /* @__PURE__ */ x("div", { className: "flex items-center gap-2", children: [
4278
+ /* @__PURE__ */ c("img", { src: t, alt: r, className: "h-10 max-h-[2.5rem] w-10 max-w-[2.5rem]" }),
4279
+ /* @__PURE__ */ c("div", { className: "text-lg", children: r })
4280
+ ] }),
4281
+ /* @__PURE__ */ c(
4282
+ "input",
4283
+ {
4284
+ type: "number",
4285
+ value: e ?? "",
4286
+ min: a,
4287
+ step: l,
4288
+ onChange: u,
4289
+ onKeyDown: d,
4290
+ disabled: v,
4291
+ placeholder: n,
4292
+ autoFocus: f,
4293
+ className: "w-2/3 bg-transparent text-right text-lg outline-none appearance-none [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"
4294
+ }
4295
+ )
4296
+ ] }),
4297
+ o && s ? /* @__PURE__ */ x("div", { className: "flex w-full flex-row content-center justify-between text-sm", children: [
4298
+ /* @__PURE__ */ c("span", { className: "cursor-default", children: i }),
4299
+ o.displayUSD && o.price !== void 0 && /* @__PURE__ */ x("div", { children: [
4300
+ p,
4301
+ " USD"
4302
+ ] })
4303
+ ] }) : null
4260
4304
  ] });
4261
- var pt = 1e9, Aa = {
4305
+ var mt = 1e9, Fa = {
4262
4306
  // These values must be integers within the stated ranges (inclusive).
4263
4307
  // Most of these values can be changed during run-time using `Decimal.config`.
4264
4308
  // The maximum number of significant digits of the result of a calculation or base conversion.
@@ -4294,7 +4338,7 @@ var pt = 1e9, Aa = {
4294
4338
  // The natural logarithm of 10.
4295
4339
  // 115 digits
4296
4340
  LN10: "2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"
4297
- }, Hr, K = !0, Ne = "[DecimalError] ", Qe = Ne + "Invalid argument: ", $r = Ne + "Exponent out of range: ", mt = Math.floor, Ge = Math.pow, Fa = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, me, se = 1e7, G = 7, ki = 9007199254740991, ir = mt(ki / G), T = {};
4341
+ }, Hr, K = !0, Ne = "[DecimalError] ", Qe = Ne + "Invalid argument: ", $r = Ne + "Exponent out of range: ", vt = Math.floor, Ge = Math.pow, La = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, me, se = 1e7, G = 7, ki = 9007199254740991, ir = vt(ki / G), T = {};
4298
4342
  T.absoluteValue = T.abs = function() {
4299
4343
  var e = new this.constructor(this);
4300
4344
  return e.s && (e.s = 1), e;
@@ -4355,7 +4399,7 @@ T.logarithm = T.log = function(e) {
4355
4399
  e = new n(10);
4356
4400
  else if (e = new n(e), e.s < 1 || e.eq(me)) throw Error(Ne + "NaN");
4357
4401
  if (r.s < 1) throw Error(Ne + (r.s ? "NaN" : "-Infinity"));
4358
- return r.eq(me) ? new n(0) : (K = !1, t = Be(St(r, s), St(e, s), s), K = !0, Y(t, i));
4402
+ return r.eq(me) ? new n(0) : (K = !1, t = Be(At(r, s), At(e, s), s), K = !0, Y(t, i));
4359
4403
  };
4360
4404
  T.minus = T.sub = function(e) {
4361
4405
  var t = this;
@@ -4370,7 +4414,7 @@ T.naturalExponential = T.exp = function() {
4370
4414
  return Ei(this);
4371
4415
  };
4372
4416
  T.naturalLogarithm = T.ln = function() {
4373
- return St(this);
4417
+ return At(this);
4374
4418
  };
4375
4419
  T.negated = T.neg = function() {
4376
4420
  var e = new this.constructor(this);
@@ -4395,7 +4439,7 @@ T.squareRoot = T.sqrt = function() {
4395
4439
  if (!a.s) return new l(0);
4396
4440
  throw Error(Ne + "NaN");
4397
4441
  }
4398
- for (e = ne(a), K = !1, i = Math.sqrt(+a), i == 0 || i == 1 / 0 ? (t = Fe(a.d), (t.length + e) % 2 == 0 && (t += "0"), i = Math.sqrt(t), e = mt((e + 1) / 2) - (e < 0 || e % 2), i == 1 / 0 ? t = "5e" + e : (t = i.toExponential(), t = t.slice(0, t.indexOf("e") + 1) + e), n = new l(t)) : n = new l(i.toString()), r = l.precision, i = o = r + 3; ; )
4442
+ for (e = ne(a), K = !1, i = Math.sqrt(+a), i == 0 || i == 1 / 0 ? (t = Fe(a.d), (t.length + e) % 2 == 0 && (t += "0"), i = Math.sqrt(t), e = vt((e + 1) / 2) - (e < 0 || e % 2), i == 1 / 0 ? t = "5e" + e : (t = i.toExponential(), t = t.slice(0, t.indexOf("e") + 1) + e), n = new l(t)) : n = new l(i.toString()), r = l.precision, i = o = r + 3; ; )
4399
4443
  if (s = n, n = s.plus(Be(a, s, o + 2)).times(0.5), Fe(s.d).slice(0, o) === (t = Fe(n.d)).slice(0, o)) {
4400
4444
  if (t = t.slice(o - 3, o + 1), i == o && t == "4999") {
4401
4445
  if (Y(s, r + 1, 0), s.times(s).eq(a)) {
@@ -4422,15 +4466,15 @@ T.times = T.mul = function(e) {
4422
4466
  };
4423
4467
  T.toDecimalPlaces = T.todp = function(e, t) {
4424
4468
  var r = this, n = r.constructor;
4425
- return r = new n(r), e === void 0 ? r : (_e(e, 0, pt), t === void 0 ? t = n.rounding : _e(t, 0, 8), Y(r, e + ne(r) + 1, t));
4469
+ return r = new n(r), e === void 0 ? r : (_e(e, 0, mt), t === void 0 ? t = n.rounding : _e(t, 0, 8), Y(r, e + ne(r) + 1, t));
4426
4470
  };
4427
4471
  T.toExponential = function(e, t) {
4428
4472
  var r, n = this, i = n.constructor;
4429
- return e === void 0 ? r = tt(n, !0) : (_e(e, 0, pt), t === void 0 ? t = i.rounding : _e(t, 0, 8), n = Y(new i(n), e + 1, t), r = tt(n, !0, e + 1)), r;
4473
+ return e === void 0 ? r = tt(n, !0) : (_e(e, 0, mt), t === void 0 ? t = i.rounding : _e(t, 0, 8), n = Y(new i(n), e + 1, t), r = tt(n, !0, e + 1)), r;
4430
4474
  };
4431
4475
  T.toFixed = function(e, t) {
4432
4476
  var r, n, i = this, s = i.constructor;
4433
- return e === void 0 ? tt(i) : (_e(e, 0, pt), t === void 0 ? t = s.rounding : _e(t, 0, 8), n = Y(new s(i), e + ne(i) + 1, t), r = tt(n.abs(), !1, e + ne(n) + 1), i.isneg() && !i.isZero() ? "-" + r : r);
4477
+ return e === void 0 ? tt(i) : (_e(e, 0, mt), t === void 0 ? t = s.rounding : _e(t, 0, 8), n = Y(new s(i), e + ne(i) + 1, t), r = tt(n.abs(), !1, e + ne(n) + 1), i.isneg() && !i.isZero() ? "-" + r : r);
4434
4478
  };
4435
4479
  T.toInteger = T.toint = function() {
4436
4480
  var e = this, t = e.constructor;
@@ -4450,20 +4494,20 @@ T.toPower = T.pow = function(e) {
4450
4494
  if (n = l.precision, e.eq(me)) return Y(a, n);
4451
4495
  if (t = e.e, r = e.d.length - 1, o = t >= r, s = a.s, o) {
4452
4496
  if ((r = u < 0 ? -u : u) <= ki) {
4453
- for (i = new l(me), t = Math.ceil(n / G + 4), K = !1; r % 2 && (i = i.times(a), Cn(i.d, t)), r = mt(r / 2), r !== 0; )
4497
+ for (i = new l(me), t = Math.ceil(n / G + 4), K = !1; r % 2 && (i = i.times(a), Cn(i.d, t)), r = vt(r / 2), r !== 0; )
4454
4498
  a = a.times(a), Cn(a.d, t);
4455
4499
  return K = !0, e.s < 0 ? new l(me).div(i) : Y(i, n);
4456
4500
  }
4457
4501
  } else if (s < 0) throw Error(Ne + "NaN");
4458
- return s = s < 0 && e.d[Math.max(t, r)] & 1 ? -1 : 1, a.s = 1, K = !1, i = e.times(St(a, n + f)), K = !0, i = Ei(i), i.s = s, i;
4502
+ return s = s < 0 && e.d[Math.max(t, r)] & 1 ? -1 : 1, a.s = 1, K = !1, i = e.times(At(a, n + f)), K = !0, i = Ei(i), i.s = s, i;
4459
4503
  };
4460
4504
  T.toPrecision = function(e, t) {
4461
4505
  var r, n, i = this, s = i.constructor;
4462
- return e === void 0 ? (r = ne(i), n = tt(i, r <= s.toExpNeg || r >= s.toExpPos)) : (_e(e, 1, pt), t === void 0 ? t = s.rounding : _e(t, 0, 8), i = Y(new s(i), e, t), r = ne(i), n = tt(i, e <= r || r <= s.toExpNeg, e)), n;
4506
+ return e === void 0 ? (r = ne(i), n = tt(i, r <= s.toExpNeg || r >= s.toExpPos)) : (_e(e, 1, mt), t === void 0 ? t = s.rounding : _e(t, 0, 8), i = Y(new s(i), e, t), r = ne(i), n = tt(i, e <= r || r <= s.toExpNeg, e)), n;
4463
4507
  };
4464
4508
  T.toSignificantDigits = T.tosd = function(e, t) {
4465
4509
  var r = this, n = r.constructor;
4466
- return e === void 0 ? (e = n.precision, t = n.rounding) : (_e(e, 1, pt), t === void 0 ? t = n.rounding : _e(t, 0, 8)), Y(new n(r), e, t);
4510
+ return e === void 0 ? (e = n.precision, t = n.rounding) : (_e(e, 1, mt), t === void 0 ? t = n.rounding : _e(t, 0, 8)), Y(new n(r), e, t);
4467
4511
  };
4468
4512
  T.toString = T.valueOf = T.val = T.toJSON = T[Symbol.for("nodejs.util.inspect.custom")] = function() {
4469
4513
  var e = this, t = ne(e), r = e.constructor;
@@ -4567,7 +4611,7 @@ function He(e) {
4567
4611
  for (var t = ""; e--; ) t += "0";
4568
4612
  return t;
4569
4613
  }
4570
- function St(e, t) {
4614
+ function At(e, t) {
4571
4615
  var r, n, i, s, o, a, l, f, u, d = 1, p = 10, v = e, N = v.d, b = v.constructor, y = b.precision;
4572
4616
  if (v.s < 1) throw Error(Ne + (v.s ? "NaN" : "-Infinity"));
4573
4617
  if (v.eq(me)) return new b(0);
@@ -4578,7 +4622,7 @@ function St(e, t) {
4578
4622
  v = v.times(e), r = Fe(v.d), n = r.charAt(0), d++;
4579
4623
  s = ne(v), n > 1 ? (v = new b("0." + r), s++) : v = new b(n + "." + r.slice(1));
4580
4624
  } else
4581
- return l = pr(b, f + 2, y).times(s + ""), v = St(new b(n + "." + r.slice(1)), f - p).plus(l), b.precision = y, t == null ? (K = !0, Y(v, y)) : v;
4625
+ return l = pr(b, f + 2, y).times(s + ""), v = At(new b(n + "." + r.slice(1)), f - p).plus(l), b.precision = y, t == null ? (K = !0, Y(v, y)) : v;
4582
4626
  for (a = o = v = Be(v.minus(me), v.plus(me), f), u = Y(v.times(v), f), i = 3; ; ) {
4583
4627
  if (o = Y(o.times(u), f), l = a.plus(Be(o, new b(i), f)), Fe(l.d).slice(0, f) === Fe(a.d).slice(0, f))
4584
4628
  return a = a.times(2), s !== 0 && (a = a.plus(pr(b, f + 2, y).times(s + ""))), a = Be(a, new b(d), f), b.precision = y, t == null ? (K = !0, Y(a, y)) : a;
@@ -4590,7 +4634,7 @@ function Nn(e, t) {
4590
4634
  for ((r = t.indexOf(".")) > -1 && (t = t.replace(".", "")), (n = t.search(/e/i)) > 0 ? (r < 0 && (r = n), r += +t.slice(n + 1), t = t.substring(0, n)) : r < 0 && (r = t.length), n = 0; t.charCodeAt(n) === 48; ) ++n;
4591
4635
  for (i = t.length; t.charCodeAt(i - 1) === 48; ) --i;
4592
4636
  if (t = t.slice(n, i), t) {
4593
- if (i -= n, r = r - n - 1, e.e = mt(r / G), e.d = [], n = (r + 1) % G, r < 0 && (n += G), n < i) {
4637
+ if (i -= n, r = r - n - 1, e.e = vt(r / G), e.d = [], n = (r + 1) % G, r < 0 && (n += G), n < i) {
4594
4638
  for (n && e.d.push(+t.slice(0, n)), i -= G; n < i; ) e.d.push(+t.slice(n, n += G));
4595
4639
  t = t.slice(n), n = G - t.length;
4596
4640
  } else
@@ -4613,7 +4657,7 @@ function Y(e, t, r) {
4613
4657
  }
4614
4658
  if (r !== void 0 && (s = Ge(10, o - i - 1), a = f / s % 10 | 0, l = t < 0 || d[u + 1] !== void 0 || f % s, l = r < 4 ? (a || l) && (r == 0 || r == (e.s < 0 ? 3 : 2)) : a > 5 || a == 5 && (r == 4 || l || r == 6 && // Check whether the digit to the left of the rounding digit is odd.
4615
4659
  (n > 0 ? i > 0 ? f / Ge(10, o - i) : 0 : d[u - 1]) % 10 & 1 || r == (e.s < 0 ? 8 : 7))), t < 1 || !d[0])
4616
- return l ? (s = ne(e), d.length = 1, t = t - s - 1, d[0] = Ge(10, (G - t % G) % G), e.e = mt(-t / G) || 0) : (d.length = 1, d[0] = e.e = e.s = 0), e;
4660
+ return l ? (s = ne(e), d.length = 1, t = t - s - 1, d[0] = Ge(10, (G - t % G) % G), e.e = vt(-t / G) || 0) : (d.length = 1, d[0] = e.e = e.s = 0), e;
4617
4661
  if (n == 0 ? (d.length = u, s = 1, u--) : (d.length = u + 1, s = Ge(10, G - n), d[u] = i > 0 ? (f / Ge(10, o - i) % Ge(10, i) | 0) * s : 0), l)
4618
4662
  for (; ; )
4619
4663
  if (u == 0) {
@@ -4690,20 +4734,20 @@ function Ai(e) {
4690
4734
  return Nn(o, s.toString());
4691
4735
  } else if (typeof s != "string")
4692
4736
  throw Error(Qe + s);
4693
- if (s.charCodeAt(0) === 45 ? (s = s.slice(1), o.s = -1) : o.s = 1, Fa.test(s)) Nn(o, s);
4737
+ if (s.charCodeAt(0) === 45 ? (s = s.slice(1), o.s = -1) : o.s = 1, La.test(s)) Nn(o, s);
4694
4738
  else throw Error(Qe + s);
4695
4739
  }
4696
- if (i.prototype = T, i.ROUND_UP = 0, i.ROUND_DOWN = 1, i.ROUND_CEIL = 2, i.ROUND_FLOOR = 3, i.ROUND_HALF_UP = 4, i.ROUND_HALF_DOWN = 5, i.ROUND_HALF_EVEN = 6, i.ROUND_HALF_CEIL = 7, i.ROUND_HALF_FLOOR = 8, i.clone = Ai, i.config = i.set = La, e === void 0 && (e = {}), e)
4740
+ if (i.prototype = T, i.ROUND_UP = 0, i.ROUND_DOWN = 1, i.ROUND_CEIL = 2, i.ROUND_FLOOR = 3, i.ROUND_HALF_UP = 4, i.ROUND_HALF_DOWN = 5, i.ROUND_HALF_EVEN = 6, i.ROUND_HALF_CEIL = 7, i.ROUND_HALF_FLOOR = 8, i.clone = Ai, i.config = i.set = Va, e === void 0 && (e = {}), e)
4697
4741
  for (n = ["precision", "rounding", "toExpNeg", "toExpPos", "LN10"], t = 0; t < n.length; ) e.hasOwnProperty(r = n[t++]) || (e[r] = this[r]);
4698
4742
  return i.config(e), i;
4699
4743
  }
4700
- function La(e) {
4744
+ function Va(e) {
4701
4745
  if (!e || typeof e != "object")
4702
4746
  throw Error(Ne + "Object expected");
4703
4747
  var t, r, n, i = [
4704
4748
  "precision",
4705
4749
  1,
4706
- pt,
4750
+ mt,
4707
4751
  "rounding",
4708
4752
  0,
4709
4753
  8,
@@ -4716,16 +4760,16 @@ function La(e) {
4716
4760
  ];
4717
4761
  for (t = 0; t < i.length; t += 3)
4718
4762
  if ((n = e[r = i[t]]) !== void 0)
4719
- if (mt(n) === n && n >= i[t + 1] && n <= i[t + 2]) this[r] = n;
4763
+ if (vt(n) === n && n >= i[t + 1] && n <= i[t + 2]) this[r] = n;
4720
4764
  else throw Error(Qe + r + ": " + n);
4721
4765
  if ((n = e[r = "LN10"]) !== void 0)
4722
4766
  if (n == Math.LN10) this[r] = new this(n);
4723
4767
  else throw Error(Qe + r + ": " + n);
4724
4768
  return this;
4725
4769
  }
4726
- var Hr = Ai(Aa);
4770
+ var Hr = Ai(Fa);
4727
4771
  me = new Hr(1);
4728
- const Va = {
4772
+ const _a = {
4729
4773
  prefix: "$",
4730
4774
  precision: 2,
4731
4775
  zeroDisplay: "-",
@@ -4734,20 +4778,20 @@ const Va = {
4734
4778
  maximumFractionDigits: 2
4735
4779
  }
4736
4780
  };
4737
- function _a(e, t = {}) {
4781
+ function Da(e, t = {}) {
4738
4782
  const { prefix: r, precision: n, zeroDisplay: i, format: s } = {
4739
- ...Va,
4783
+ ..._a,
4740
4784
  ...t
4741
4785
  };
4742
4786
  if (e === 0) return i;
4743
4787
  const o = e.toLocaleString("en", s ?? { maximumFractionDigits: n });
4744
4788
  return `${r}${o}`;
4745
4789
  }
4746
- function Da(e, t, r) {
4790
+ function Ta(e, t, r) {
4747
4791
  const n = e * t;
4748
- return _a(n, r);
4792
+ return Da(n, r);
4749
4793
  }
4750
- const Ta = (e, t, r) => new Hr(e).toDecimalPlaces(t, r).toNumber(), Wr = 8, Ma = 5, El = ({
4794
+ const Ma = (e, t, r) => new Hr(e).toDecimalPlaces(t, r).toNumber(), Wr = 8, Pa = 5, Sl = ({
4751
4795
  fieldName: e,
4752
4796
  currencyIcon: t,
4753
4797
  currencyName: r,
@@ -4758,55 +4802,40 @@ const Ta = (e, t, r) => new Hr(e).toDecimalPlaces(t, r).toNumber(), Wr = 8, Ma =
4758
4802
  step: a = "any",
4759
4803
  autoFocus: l = !0
4760
4804
  }) => {
4761
- const f = pi({ name: e, defaultValue: "" }), { setValue: u } = dt(), d = parseFloat(f || "0"), p = Da(d, (s == null ? void 0 : s.price) ?? 0, {
4805
+ const f = pi({ name: e, defaultValue: "" }), { setValue: u } = ht(), d = parseFloat(f || "0"), p = Ta(d, (s == null ? void 0 : s.price) ?? 0, {
4762
4806
  zeroDisplay: "$0.00"
4763
- });
4764
- return /* @__PURE__ */ x(Dr, { className: "flex w-full flex-col content-center justify-between gap-4", children: [
4765
- /* @__PURE__ */ x("div", { className: "flex w-full flex-row content-center items-center justify-between font-normal", children: [
4766
- /* @__PURE__ */ x("div", { className: "flex items-center gap-2", children: [
4767
- /* @__PURE__ */ c("img", { src: t, alt: r, className: "h-10 max-h-[2.5rem] w-10 max-w-[2.5rem]" }),
4768
- /* @__PURE__ */ c("div", { className: "text-lg", children: r })
4769
- ] }),
4770
- /* @__PURE__ */ c(
4771
- "input",
4772
- {
4773
- type: "number",
4774
- value: f ?? "",
4775
- min: o,
4776
- step: a,
4777
- onChange: (b) => {
4778
- u(e, b.target.value, {
4779
- shouldValidate: !0,
4780
- shouldDirty: !0,
4781
- shouldTouch: !0
4782
- });
4783
- },
4784
- onKeyDown: (b) => {
4785
- (b.key === "ArrowUp" || b.key === "ArrowDown") && b.preventDefault();
4786
- },
4787
- placeholder: i,
4788
- autoFocus: l,
4789
- className: "w-2/3 bg-transparent text-right text-lg outline-none appearance-none [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"
4790
- }
4791
- )
4792
- ] }),
4807
+ }), v = (y) => {
4808
+ u(e, y.target.value, {
4809
+ shouldValidate: !0,
4810
+ shouldDirty: !0,
4811
+ shouldTouch: !0
4812
+ });
4813
+ }, N = (y) => {
4814
+ (y.key === "ArrowUp" || y.key === "ArrowDown") && y.preventDefault();
4815
+ }, b = `Stakable: ${Ma(Number(s == null ? void 0 : s.balance), (s == null ? void 0 : s.decimals) ?? Wr)} ${s == null ? void 0 : s.symbol}`;
4816
+ return /* @__PURE__ */ x(rt, { children: [
4793
4817
  /* @__PURE__ */ c(Oa, { name: e, defaultValue: "" }),
4794
- s && n ? /* @__PURE__ */ x("div", { className: "flex w-full flex-row content-center justify-between text-sm", children: [
4795
- /* @__PURE__ */ x("div", { children: [
4796
- "Stakable:",
4797
- " ",
4798
- /* @__PURE__ */ c("span", { className: "cursor-default", children: Ta(Number(s.balance), s.decimals ?? Wr) }),
4799
- " ",
4800
- s.symbol
4801
- ] }),
4802
- s.displayUSD && s.price !== void 0 && /* @__PURE__ */ x("div", { children: [
4803
- p,
4804
- " USD"
4805
- ] })
4806
- ] }) : null
4818
+ /* @__PURE__ */ c(Dr, { className: "flex w-full flex-col content-center justify-between gap-4", children: /* @__PURE__ */ c(
4819
+ Aa,
4820
+ {
4821
+ amount: f,
4822
+ currencyIcon: t,
4823
+ currencyName: r,
4824
+ placeholder: i,
4825
+ displayBalance: n,
4826
+ balanceDetails: s,
4827
+ min: o,
4828
+ step: a,
4829
+ autoFocus: l,
4830
+ onChange: v,
4831
+ onKeyDown: N,
4832
+ amountUsd: p,
4833
+ subtitle: b
4834
+ }
4835
+ ) })
4807
4836
  ] });
4808
4837
  };
4809
- function Pa({ items: e, onRemove: t }) {
4838
+ function Ba({ items: e, onRemove: t }) {
4810
4839
  const r = Ue(() => e, [e]);
4811
4840
  return r.length === 0 ? null : /* @__PURE__ */ c("div", { className: "flex flex-col gap-8", children: r.map(({ bsnId: n, bsnName: i, bsnLogoUrl: s, provider: o }) => /* @__PURE__ */ c(
4812
4841
  Ci,
@@ -4820,21 +4849,21 @@ function Pa({ items: e, onRemove: t }) {
4820
4849
  `${n}-${o.rank}`
4821
4850
  )) });
4822
4851
  }
4823
- function Sl({ max: e, items: t = [], actionText: r, onAdd: n, onRemove: i }) {
4852
+ function Al({ max: e, items: t = [], actionText: r, onAdd: n, onRemove: i }) {
4824
4853
  const s = Ue(() => t.length, [t]);
4825
4854
  return /* @__PURE__ */ c(Dr, { children: /* @__PURE__ */ x("div", { className: "flex w-full flex-col gap-4", children: [
4826
4855
  /* @__PURE__ */ c("div", { className: "flex flex-row", children: /* @__PURE__ */ x("div", { className: "flex w-full flex-row content-center items-center justify-between font-normal", children: [
4827
4856
  /* @__PURE__ */ c("span", { className: "text-sm sm:text-base", children: r }),
4828
4857
  /* @__PURE__ */ c(Jo, { counter: s, max: e, onAdd: n })
4829
4858
  ] }) }),
4830
- s > 0 && /* @__PURE__ */ c(Pa, { items: t, onRemove: i })
4859
+ s > 0 && /* @__PURE__ */ c(Ba, { items: t, onRemove: i })
4831
4860
  ] }) });
4832
4861
  }
4833
4862
  function Ur({ title: e, children: t, className: r, hint: n }) {
4834
4863
  return /* @__PURE__ */ x(
4835
4864
  "div",
4836
4865
  {
4837
- className: be(
4866
+ className: ye(
4838
4867
  "flex flex-row items-center justify-between text-accent-primary",
4839
4868
  n && "items-start",
4840
4869
  r
@@ -4849,19 +4878,19 @@ function Ur({ title: e, children: t, className: r, hint: n }) {
4849
4878
  }
4850
4879
  );
4851
4880
  }
4852
- function Ba(e) {
4881
+ function Ra(e) {
4853
4882
  return Vt({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M362.7 19.3L314.3 67.7 444.3 197.7l48.4-48.4c25-25 25-65.5 0-90.5L453.3 19.3c-25-25-65.5-25-90.5 0zm-71 71L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4L1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L421.7 220.3 291.7 90.3z" }, child: [] }] })(e);
4854
4883
  }
4855
- function Ra({ value: e, onEdit: t, title: r = "Network Fee Rate", className: n }) {
4884
+ function ja({ value: e, onEdit: t, title: r = "Network Fee Rate", className: n }) {
4856
4885
  return /* @__PURE__ */ x(Ur, { title: r, className: n, children: [
4857
4886
  /* @__PURE__ */ x("span", { children: [
4858
4887
  e,
4859
4888
  " sats/vB"
4860
4889
  ] }),
4861
- t && /* @__PURE__ */ c(at, { size: "small", variant: "outlined", className: "h-6 w-6 pl-1 text-secondary-strokeDark", onClick: t, children: /* @__PURE__ */ c(Ba, { size: 16, className: "text-secondary-strokeDark" }) })
4890
+ t && /* @__PURE__ */ c(lt, { size: "small", variant: "outlined", className: "h-6 w-6 pl-1 text-secondary-strokeDark", onClick: t, children: /* @__PURE__ */ c(Ra, { size: 16, className: "text-secondary-strokeDark" }) })
4862
4891
  ] });
4863
4892
  }
4864
- function ja({ amount: e, coinSymbol: t, hint: r, title: n, className: i, decimals: s = Wr }) {
4893
+ function Ia({ amount: e, coinSymbol: t, hint: r, title: n, className: i, decimals: s = Wr }) {
4865
4894
  let o;
4866
4895
  return typeof e == "number" ? e === 0 ? o = "0" : o = e.toFixed(s).replace(/0+$/, "").replace(/\.$/, "") : o = e, /* @__PURE__ */ x(Ur, { title: n ?? `${t} Network Fee`, hint: r, className: i, children: [
4867
4896
  o,
@@ -4869,7 +4898,7 @@ function ja({ amount: e, coinSymbol: t, hint: r, title: n, className: i, decimal
4869
4898
  t
4870
4899
  ] });
4871
4900
  }
4872
- function Ia({ amount: e, coinSymbol: t, hint: r, title: n, className: i, decimals: s = Ma }) {
4901
+ function $a({ amount: e, coinSymbol: t, hint: r, title: n, className: i, decimals: s = Pa }) {
4873
4902
  const o = typeof e == "number" ? e.toFixed(s) : e;
4874
4903
  return /* @__PURE__ */ x(Ur, { title: n ?? `${t} Network Fee`, hint: r, className: i, children: [
4875
4904
  o,
@@ -4877,9 +4906,9 @@ function Ia({ amount: e, coinSymbol: t, hint: r, title: n, className: i, decimal
4877
4906
  t
4878
4907
  ] });
4879
4908
  }
4880
- function $a({ total: e, coinSymbol: t, hint: r, title: n = "Total", className: i, decimals: s = Wr }) {
4909
+ function Ha({ total: e, coinSymbol: t, hint: r, title: n = "Total", className: i, decimals: s = Wr }) {
4881
4910
  let o;
4882
- return typeof e == "number" ? e === 0 ? o = "0" : o = e.toFixed(s).replace(/0+$/, "").replace(/\.$/, "") : o = e, /* @__PURE__ */ x("div", { className: be("flex flex-row items-start justify-between text-accent-primary", i), children: [
4911
+ return typeof e == "number" ? e === 0 ? o = "0" : o = e.toFixed(s).replace(/0+$/, "").replace(/\.$/, "") : o = e, /* @__PURE__ */ x("div", { className: ye("flex flex-row items-start justify-between text-accent-primary", i), children: [
4883
4912
  /* @__PURE__ */ c(W, { variant: "body1", className: "font-bold", children: n }),
4884
4913
  /* @__PURE__ */ x("div", { className: "flex flex-col items-end justify-center", children: [
4885
4914
  /* @__PURE__ */ x(W, { variant: "body1", className: "font-bold", children: [
@@ -4891,7 +4920,7 @@ function $a({ total: e, coinSymbol: t, hint: r, title: n = "Total", className: i
4891
4920
  ] })
4892
4921
  ] });
4893
4922
  }
4894
- function Al({
4923
+ function Fl({
4895
4924
  className: e,
4896
4925
  feeRate: t,
4897
4926
  onFeeRateEdit: r,
@@ -4905,11 +4934,11 @@ function Al({
4905
4934
  bbnFeeAmountHint: u,
4906
4935
  bbnFeeDecimals: d
4907
4936
  }) {
4908
- return /* @__PURE__ */ c(Dr, { className: be("flex w-full flex-col content-center justify-between gap-4", e), children: /* @__PURE__ */ x("div", { className: "flex flex-col gap-6 p-4", children: [
4909
- /* @__PURE__ */ c(Ra, { value: t, onEdit: r }),
4910
- /* @__PURE__ */ c(ja, { amount: n, coinSymbol: i, hint: s }),
4937
+ return /* @__PURE__ */ c(Dr, { className: ye("flex w-full flex-col content-center justify-between gap-4", e), children: /* @__PURE__ */ x("div", { className: "flex flex-col gap-6 p-4", children: [
4938
+ /* @__PURE__ */ c(ja, { value: t, onEdit: r }),
4939
+ /* @__PURE__ */ c(Ia, { amount: n, coinSymbol: i, hint: s }),
4911
4940
  l !== void 0 && f ? /* @__PURE__ */ c(
4912
- Ia,
4941
+ $a,
4913
4942
  {
4914
4943
  amount: l,
4915
4944
  coinSymbol: f,
@@ -4918,7 +4947,7 @@ function Al({
4918
4947
  }
4919
4948
  ) : null,
4920
4949
  /* @__PURE__ */ c("div", { className: "divider my-4" }),
4921
- /* @__PURE__ */ c($a, { total: o, coinSymbol: i, hint: a })
4950
+ /* @__PURE__ */ c(Ha, { total: o, coinSymbol: i, hint: a })
4922
4951
  ] }) });
4923
4952
  }
4924
4953
  const kn = (e) => {
@@ -4928,12 +4957,12 @@ const kn = (e) => {
4928
4957
  n >= "a" && n <= "z" || n >= "0" && n <= "9" ? t += n : t.length > 0 && t[t.length - 1] !== "-" && (t += "-");
4929
4958
  }
4930
4959
  return t.endsWith("-") && (t = t.slice(0, -1)), t;
4931
- }, Ha = 640;
4932
- function Wa({ className: e, ...t }) {
4933
- const n = ii(Ha) ? Kn : go;
4934
- return /* @__PURE__ */ c(n, { ...t, className: be("w-[41.25rem] max-w-full", e) });
4960
+ }, Wa = 640;
4961
+ function Ua({ className: e, ...t }) {
4962
+ const n = ii(Wa) ? Kn : go;
4963
+ return /* @__PURE__ */ c(n, { ...t, className: ye("w-[41.25rem] max-w-full", e) });
4935
4964
  }
4936
- const Fl = ({
4965
+ const Ll = ({
4937
4966
  open: e,
4938
4967
  processing: t = !1,
4939
4968
  onClose: r,
@@ -4948,7 +4977,7 @@ const Fl = ({
4948
4977
  { label: "Transaction Fees", value: o.transactionFees },
4949
4978
  {
4950
4979
  label: "Term",
4951
- value: /* @__PURE__ */ x(Ft, { children: [
4980
+ value: /* @__PURE__ */ x(rt, { children: [
4952
4981
  o.term.blocks,
4953
4982
  /* @__PURE__ */ c("br", {}),
4954
4983
  /* @__PURE__ */ c("span", { className: "text-md text-secondary", children: o.term.duration })
@@ -4957,7 +4986,7 @@ const Fl = ({
4957
4986
  { label: "Unbonding", value: o.unbonding },
4958
4987
  { label: "Unbonding Fee", value: o.unbondingFee }
4959
4988
  ];
4960
- return /* @__PURE__ */ x(Wa, { open: e, onClose: r, children: [
4989
+ return /* @__PURE__ */ x(Ua, { open: e, onClose: r, children: [
4961
4990
  /* @__PURE__ */ c(No, { title: "Preview", onClose: r, className: "text-accent-primary" }),
4962
4991
  /* @__PURE__ */ x(Co, { className: "no-scrollbar mb-8 mt-4 flex max-h-[calc(100vh-12rem)] flex-col gap-4 overflow-y-auto text-accent-primary", children: [
4963
4992
  /* @__PURE__ */ c(Yo, { className: "p-6 pt-4", children: /* @__PURE__ */ x("div", { className: "flex flex-col", children: [
@@ -4988,21 +5017,21 @@ const Fl = ({
4988
5017
  ] })
4989
5018
  ] }),
4990
5019
  /* @__PURE__ */ x(ko, { className: "flex flex-col gap-4 pb-8 pt-0 sm:flex-row", children: [
4991
- /* @__PURE__ */ c(at, { variant: "contained", color: "primary", onClick: n, className: "w-full sm:flex-1 sm:order-2", disabled: t, children: t ? "Processing..." : "Proceed to Signing" }),
4992
- /* @__PURE__ */ c(at, { variant: "outlined", color: "primary", onClick: r, className: "w-full sm:flex-1 sm:order-1", children: "Cancel" })
5020
+ /* @__PURE__ */ c(lt, { variant: "contained", color: "primary", onClick: n, className: "w-full sm:flex-1 sm:order-2", disabled: t, children: t ? "Processing..." : "Proceed to Signing" }),
5021
+ /* @__PURE__ */ c(lt, { variant: "outlined", color: "primary", onClick: r, className: "w-full sm:flex-1 sm:order-1", children: "Cancel" })
4993
5022
  ] })
4994
5023
  ] });
4995
- }, Ua = ({ size: e = "md" }) => /* @__PURE__ */ c("div", { className: {
5024
+ }, qa = ({ size: e = "md" }) => /* @__PURE__ */ c("div", { className: {
4996
5025
  sm: "mt-2",
4997
5026
  md: "mt-4",
4998
5027
  lg: "mt-6"
4999
- }[e] }), qa = () => /* @__PURE__ */ c("svg", { width: "29", height: "28", viewBox: "0 0 29 28", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ c(
5028
+ }[e] }), za = () => /* @__PURE__ */ c("svg", { width: "29", height: "28", viewBox: "0 0 29 28", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ c(
5000
5029
  "path",
5001
5030
  {
5002
5031
  d: "M24.9127 15.3708C24.9711 14.9333 25.0002 14.4812 25.0002 14C25.0002 13.5333 24.9711 13.0667 24.8982 12.6292L27.8586 10.325C28.1211 10.1208 28.194 9.72708 28.0336 9.43542L25.2336 4.59375C25.0586 4.27292 24.694 4.17083 24.3732 4.27292L20.8877 5.67292C20.1586 5.11875 19.3857 4.65208 18.5252 4.30208L18.0002 0.597916C17.9419 0.247916 17.6502 0 17.3002 0H11.7002C11.3502 0 11.0732 0.247916 11.0148 0.597916L10.4898 4.30208C9.62941 4.65208 8.84191 5.13333 8.12732 5.67292L4.64191 4.27292C4.32107 4.15625 3.95649 4.27292 3.78149 4.59375L0.996075 9.43542C0.821075 9.74167 0.879408 10.1208 1.17107 10.325L4.13149 12.6292C4.05857 13.0667 4.00024 13.5479 4.00024 14C4.00024 14.4521 4.02941 14.9333 4.10232 15.3708L1.14191 17.675C0.879408 17.8792 0.806491 18.2729 0.966908 18.5646L3.76691 23.4062C3.94191 23.7271 4.30649 23.8292 4.62732 23.7271L8.11274 22.3271C8.84191 22.8812 9.61482 23.3479 10.4752 23.6979L11.0002 27.4021C11.0732 27.7521 11.3502 28 11.7002 28H17.3002C17.6502 28 17.9419 27.7521 17.9857 27.4021L18.5107 23.6979C19.3711 23.3479 20.1586 22.8812 20.8732 22.3271L24.3586 23.7271C24.6794 23.8438 25.044 23.7271 25.219 23.4062L28.019 18.5646C28.194 18.2437 28.1211 17.8792 27.844 17.675L24.9127 15.3708ZM14.5002 19.25C11.6127 19.25 9.25024 16.8875 9.25024 14C9.25024 11.1125 11.6127 8.75 14.5002 8.75C17.3877 8.75 19.7502 11.1125 19.7502 14C19.7502 16.8875 17.3877 19.25 14.5002 19.25Z",
5003
5032
  fill: "#9E9E9E"
5004
5033
  }
5005
- ) }), Fi = () => /* @__PURE__ */ c("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ c("path", { d: "M9 18L15 12L9 6", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), za = ({ children: e, className: t = "" }) => /* @__PURE__ */ c(W, { variant: "body1", className: S("px-7 pb-6 text-accent-primary md:hidden", t), children: e }), Za = ({
5034
+ ) }), Fi = () => /* @__PURE__ */ c("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ c("path", { d: "M9 18L15 12L9 6", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), Za = ({ children: e, className: t = "" }) => /* @__PURE__ */ c(W, { variant: "body1", className: S("px-7 pb-6 text-accent-primary md:hidden", t), children: e }), Xa = ({
5006
5035
  background: e = "none",
5007
5036
  backgroundClassName: t = "",
5008
5037
  className: r = "",
@@ -5016,7 +5045,7 @@ const Fl = ({
5016
5045
  default:
5017
5046
  return "";
5018
5047
  }
5019
- })(), r), children: n }), At = ({ children: e }) => /* @__PURE__ */ c(Ft, { children: e }), Li = ({
5048
+ })(), r), children: n }), Ft = ({ children: e }) => /* @__PURE__ */ c(rt, { children: e }), Li = ({
5020
5049
  icon: e,
5021
5050
  suffix: t,
5022
5051
  onClick: r,
@@ -5026,9 +5055,9 @@ const Fl = ({
5026
5055
  children: o
5027
5056
  }) => {
5028
5057
  const a = R.Children.toArray(o), l = a.find(
5029
- (p) => typeof p == "string" || R.isValidElement(p) && p.type !== At
5058
+ (p) => typeof p == "string" || R.isValidElement(p) && p.type !== Ft
5030
5059
  ), f = a.find(
5031
- (p) => R.isValidElement(p) && p.type === At
5060
+ (p) => R.isValidElement(p) && p.type === Ft
5032
5061
  ), u = typeof l == "string" ? l : "", d = r ? /* @__PURE__ */ c(Fi, {}) : void 0;
5033
5062
  return /* @__PURE__ */ c(
5034
5063
  ea,
@@ -5043,11 +5072,11 @@ const Fl = ({
5043
5072
  suffix: t || d
5044
5073
  }
5045
5074
  );
5046
- }, Xa = ({ icon: e, className: t = "", children: r }) => {
5075
+ }, Ya = ({ icon: e, className: t = "", children: r }) => {
5047
5076
  const n = R.Children.toArray(r), i = n.find(
5048
- (l) => typeof l == "string" || R.isValidElement(l) && l.type !== At
5077
+ (l) => typeof l == "string" || R.isValidElement(l) && l.type !== Ft
5049
5078
  ), s = n.find(
5050
- (l) => R.isValidElement(l) && l.type === At
5079
+ (l) => R.isValidElement(l) && l.type === Ft
5051
5080
  ), o = n.filter((l) => R.isValidElement(l) && l.type === Li);
5052
5081
  return /* @__PURE__ */ c(
5053
5082
  ta,
@@ -5060,7 +5089,7 @@ const Fl = ({
5060
5089
  children: o
5061
5090
  }
5062
5091
  );
5063
- }, Ya = ({ children: e, className: t = "" }) => /* @__PURE__ */ c("div", { className: t, children: e }), Ga = ({
5092
+ }, Ga = ({ children: e, className: t = "" }) => /* @__PURE__ */ c("div", { className: t, children: e }), Ka = ({
5064
5093
  trigger: e,
5065
5094
  open: t,
5066
5095
  onOpenChange: r,
@@ -5076,7 +5105,7 @@ const Fl = ({
5076
5105
  {
5077
5106
  className: "flex h-10 w-10 items-center justify-center rounded-lg transition-colors hover:bg-accent-primary/10",
5078
5107
  "aria-label": "Settings menu",
5079
- children: /* @__PURE__ */ c(qa, {})
5108
+ children: /* @__PURE__ */ c(za, {})
5080
5109
  }
5081
5110
  ),
5082
5111
  open: t,
@@ -5086,14 +5115,14 @@ const Fl = ({
5086
5115
  offset: s,
5087
5116
  children: o
5088
5117
  }
5089
- ), nt = Ga;
5090
- nt.Title = za;
5091
- nt.Group = Za;
5092
- nt.Item = Li;
5093
- nt.SubMenu = Xa;
5094
- nt.Description = At;
5095
- nt.CustomContent = Ya;
5096
- nt.Spacer = Ua;
5118
+ ), it = Ka;
5119
+ it.Title = Za;
5120
+ it.Group = Xa;
5121
+ it.Item = Li;
5122
+ it.SubMenu = Ya;
5123
+ it.Description = Ft;
5124
+ it.CustomContent = Ga;
5125
+ it.Spacer = qa;
5097
5126
  const On = ({
5098
5127
  walletType: e,
5099
5128
  walletName: t,
@@ -5144,7 +5173,7 @@ const On = ({
5144
5173
  }
5145
5174
  )
5146
5175
  ] })
5147
- ] }) }), Ka = ({
5176
+ ] }) }), Ja = ({
5148
5177
  value: e,
5149
5178
  onChange: t,
5150
5179
  className: r = "",
@@ -5206,13 +5235,13 @@ const On = ({
5206
5235
  ] })
5207
5236
  ] }),
5208
5237
  /* @__PURE__ */ c(
5209
- Ka,
5238
+ Ja,
5210
5239
  {
5211
5240
  value: n,
5212
5241
  onChange: i
5213
5242
  }
5214
5243
  )
5215
- ] }), Ja = ({
5244
+ ] }), Qa = ({
5216
5245
  title: e,
5217
5246
  value: t,
5218
5247
  isCopied: r,
@@ -5252,7 +5281,7 @@ const On = ({
5252
5281
  }
5253
5282
  )
5254
5283
  ] })
5255
- ] }) }) }), Ll = ({
5284
+ ] }) }) }), Vl = ({
5256
5285
  trigger: e,
5257
5286
  btcAddress: t,
5258
5287
  bbnAddress: r,
@@ -5320,7 +5349,7 @@ const On = ({
5320
5349
  /* @__PURE__ */ c(
5321
5350
  En,
5322
5351
  {
5323
- icon: /* @__PURE__ */ c(yo, {}),
5352
+ icon: /* @__PURE__ */ c(bo, {}),
5324
5353
  title: "Linked Wallet Stakes",
5325
5354
  status: s ? "On" : "Off",
5326
5355
  value: s,
@@ -5328,13 +5357,13 @@ const On = ({
5328
5357
  }
5329
5358
  ),
5330
5359
  /* @__PURE__ */ c(
5331
- Ja,
5360
+ Qa,
5332
5361
  {
5333
5362
  title: "Bitcoin Public Key",
5334
5363
  value: f,
5335
5364
  isCopied: N("publicKey"),
5336
5365
  onCopy: () => v("publicKey", f),
5337
- icon: /* @__PURE__ */ c(bo, {})
5366
+ icon: /* @__PURE__ */ c(yo, {})
5338
5367
  }
5339
5368
  )
5340
5369
  ] }),
@@ -5349,20 +5378,20 @@ const On = ({
5349
5378
  ] })
5350
5379
  }
5351
5380
  );
5352
- }, Qa = {
5381
+ }, el = {
5353
5382
  adaptive: "adaptive",
5354
5383
  horizontal: "vertical",
5355
5384
  vertical: "horizontal"
5356
5385
  };
5357
- function Vl({ className: e, orientation: t = "vertical", children: r }) {
5358
- return /* @__PURE__ */ c("div", { className: be("bbn-list-legacy", `bbn-list-legacy-${t}`, e), children: Xt.map(
5386
+ function _l({ className: e, orientation: t = "vertical", children: r }) {
5387
+ return /* @__PURE__ */ c("div", { className: ye("bbn-list-legacy", `bbn-list-legacy-${t}`, e), children: Xt.map(
5359
5388
  r,
5360
- (n) => wr(n) ? yr(n, {
5361
- orientation: Qa[t]
5389
+ (n) => wr(n) ? br(n, {
5390
+ orientation: el[t]
5362
5391
  }) : n
5363
5392
  ) });
5364
5393
  }
5365
- function _l({ className: e, orientation: t = "horizontal", title: r, value: n, suffix: i }) {
5394
+ function Dl({ className: e, orientation: t = "horizontal", title: r, value: n, suffix: i }) {
5366
5395
  return /* @__PURE__ */ x("div", { className: S("bbn-list-item-legacy", `bbn-list-item-legacy-${t}`, e), children: [
5367
5396
  /* @__PURE__ */ c(
5368
5397
  W,
@@ -5388,26 +5417,26 @@ function _l({ className: e, orientation: t = "horizontal", title: r, value: n, s
5388
5417
  ] });
5389
5418
  }
5390
5419
  export {
5391
- il as Accordion,
5392
- ol as AccordionDetails,
5393
- sl as AccordionSummary,
5394
- El as AmountSubsection,
5420
+ sl as Accordion,
5421
+ al as AccordionDetails,
5422
+ ol as AccordionSummary,
5423
+ Sl as AmountSubsection,
5395
5424
  Yt as Avatar,
5396
- al as AvatarGroup,
5397
- Ia as BBNFeeAmount,
5398
- ja as BTCFeeAmount,
5399
- Ra as BTCFeeRate,
5400
- ml as Badge,
5401
- bo as BitcoinPublicKeyIcon,
5402
- at as Button,
5425
+ ll as AvatarGroup,
5426
+ $a as BBNFeeAmount,
5427
+ Ia as BTCFeeAmount,
5428
+ ja as BTCFeeRate,
5429
+ vl as Badge,
5430
+ yo as BitcoinPublicKeyIcon,
5431
+ lt as Button,
5403
5432
  Yo as Card,
5404
5433
  zo as Cell,
5405
5434
  Ri as Checkbox,
5406
- Nl as CheckboxField,
5407
- cl as Chip,
5435
+ Cl as CheckboxField,
5436
+ ul as Chip,
5408
5437
  xo as CloseIcon,
5409
5438
  Uo as Column,
5410
- gl as Copy,
5439
+ yl as Copy,
5411
5440
  Yn as CopyIcon,
5412
5441
  Jo as CounterButton,
5413
5442
  go as Dialog,
@@ -5416,66 +5445,66 @@ export {
5416
5445
  No as DialogHeader,
5417
5446
  oi as DisplayHash,
5418
5447
  Ur as FeeItem,
5419
- Al as FeesSection,
5448
+ Fl as FeesSection,
5420
5449
  Ci as FinalityProviderItem,
5421
5450
  Sa as FinalityProviderLogo,
5422
- Sl as FinalityProviderSubsection,
5451
+ Al as FinalityProviderSubsection,
5423
5452
  bl as Form,
5424
5453
  lr as FormControl,
5425
5454
  Cr as Heading,
5426
5455
  Oa as HiddenField,
5427
5456
  Fn as IconButton,
5428
5457
  Vr as Input,
5429
- yo as LinkWalletIcon,
5430
- hl as List,
5431
- pl as ListItem,
5432
- _l as ListItemLegacy,
5433
- Vl as ListLegacy,
5434
- ul as Loader,
5458
+ bo as LinkWalletIcon,
5459
+ pl as List,
5460
+ ml as ListItem,
5461
+ Dl as ListItemLegacy,
5462
+ _l as ListLegacy,
5463
+ fl as Loader,
5435
5464
  si as Menu,
5436
5465
  ni as MenuDrawer,
5437
5466
  ea as MenuItem,
5438
5467
  Kn as MobileDialog,
5439
- wl as NumberField,
5468
+ xl as NumberField,
5440
5469
  Un as Popover,
5441
5470
  ar as Portal,
5442
- Fl as PreviewModal,
5471
+ Ll as PreviewModal,
5443
5472
  Ii as Radio,
5444
- Cl as RadioField,
5445
- ll as ScrollLocker,
5473
+ kl as RadioField,
5474
+ cl as ScrollLocker,
5446
5475
  qn as Select,
5447
- kl as SelectField,
5448
- nt as SettingMenu,
5449
- Ya as SettingMenuCustomContent,
5450
- At as SettingMenuDescription,
5451
- Za as SettingMenuGroup,
5476
+ Ol as SelectField,
5477
+ it as SettingMenu,
5478
+ Ga as SettingMenuCustomContent,
5479
+ Ft as SettingMenuDescription,
5480
+ Xa as SettingMenuGroup,
5452
5481
  Li as SettingMenuItem,
5453
- Xa as SettingMenuSubMenu,
5454
- za as SettingMenuTitle,
5482
+ Ya as SettingMenuSubMenu,
5483
+ Za as SettingMenuTitle,
5455
5484
  ta as SubMenu,
5456
- vl as SubMenuItem,
5485
+ gl as SubMenuItem,
5457
5486
  Dr as SubSection,
5458
- fl as Table,
5459
- Ol as TableElement,
5487
+ dl as Table,
5488
+ El as TableElement,
5460
5489
  W as Text,
5461
- xl as TextField,
5490
+ Nl as TextField,
5462
5491
  _r as ThemedIcon,
5463
- dl as Toggle,
5464
- $a as Total,
5492
+ hl as Toggle,
5493
+ Ha as Total,
5465
5494
  wo as UsingInscriptionIcon,
5466
5495
  Ln as WalletDisconnectButton,
5467
5496
  On as WalletInfoCard,
5468
- Ja as WalletInfoSection,
5469
- Ll as WalletMenu,
5497
+ Qa as WalletInfoSection,
5498
+ Vl as WalletMenu,
5470
5499
  En as WalletSettingItem,
5471
- Ka as WalletToggle,
5500
+ Ja as WalletToggle,
5472
5501
  Gn as iconColorVariants,
5473
5502
  po as useClickOutside,
5474
- ot as useControlledState,
5503
+ at as useControlledState,
5475
5504
  ai as useCopy,
5476
- ht as useField,
5477
- yl as useFieldState,
5478
- dt as useFormContext,
5505
+ pt as useField,
5506
+ wl as useFieldState,
5507
+ ht as useFormContext,
5479
5508
  di as useFormState,
5480
5509
  ii as useIsMobile,
5481
5510
  ho as useMemoizedArray,