@babylonlabs-io/core-ui 1.27.0 → 1.28.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/elements/FinalityProviderItem/FinalityProviderItem.js +3 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +328 -325
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as c, jsxs as y, Fragment as ze } from "react/jsx-runtime";
|
|
2
2
|
import * as Je from "react";
|
|
3
|
-
import P, { useState as ee, useRef as it, useCallback as oe, createContext as ur, useMemo as _e, forwardRef as Se, useContext as Dt, useEffect as le, createElement as Lr, Children as Qt, cloneElement as Vr, isValidElement as Fr, useImperativeHandle as
|
|
3
|
+
import P, { useState as ee, useRef as it, useCallback as oe, createContext as ur, useMemo as _e, forwardRef as Se, useContext as Dt, useEffect as le, createElement as Lr, Children as Qt, cloneElement as Vr, isValidElement as Fr, useImperativeHandle as Bn, useId as Pn } from "react";
|
|
4
4
|
import { twJoin as O, twMerge as ce } from "tailwind-merge";
|
|
5
5
|
import * as Ui from "react-dom";
|
|
6
6
|
import { createPortal as zi } from "react-dom";
|
|
@@ -21,7 +21,7 @@ const Dr = ur({
|
|
|
21
21
|
disabled: !1,
|
|
22
22
|
expanded: !1
|
|
23
23
|
});
|
|
24
|
-
function
|
|
24
|
+
function Cl({
|
|
25
25
|
expanded: e,
|
|
26
26
|
defaultExpanded: t,
|
|
27
27
|
onChange: r,
|
|
@@ -66,7 +66,7 @@ const we = Se(
|
|
|
66
66
|
)
|
|
67
67
|
);
|
|
68
68
|
we.displayName = "Button";
|
|
69
|
-
const
|
|
69
|
+
const In = Se(
|
|
70
70
|
({ variant: e = "outlined", size: t = "large", className: r, ...n }, i) => /* @__PURE__ */ c(
|
|
71
71
|
"button",
|
|
72
72
|
{
|
|
@@ -80,7 +80,7 @@ const Pn = Se(
|
|
|
80
80
|
)
|
|
81
81
|
}
|
|
82
82
|
)
|
|
83
|
-
),
|
|
83
|
+
), jn = Se(
|
|
84
84
|
({ className: e, ...t }, r) => /* @__PURE__ */ c(
|
|
85
85
|
we,
|
|
86
86
|
{
|
|
@@ -94,8 +94,8 @@ const Pn = Se(
|
|
|
94
94
|
}
|
|
95
95
|
)
|
|
96
96
|
);
|
|
97
|
-
|
|
98
|
-
function
|
|
97
|
+
jn.displayName = "WalletDisconnectButton";
|
|
98
|
+
function kl({
|
|
99
99
|
className: e,
|
|
100
100
|
iconClassName: t,
|
|
101
101
|
iconProps: r,
|
|
@@ -105,7 +105,7 @@ function Cl({
|
|
|
105
105
|
const { expanded: s, toggle: o } = Dt(Dr), a = i(s);
|
|
106
106
|
return /* @__PURE__ */ y("div", { className: O("bbn-accordion-summary", e), onClick: o, children: [
|
|
107
107
|
n,
|
|
108
|
-
a && /* @__PURE__ */ c(
|
|
108
|
+
a && /* @__PURE__ */ c(In, { className: O("bbn-accordion-icon", t), ...r, children: a })
|
|
109
109
|
] });
|
|
110
110
|
}
|
|
111
111
|
function _r(e, t) {
|
|
@@ -130,7 +130,7 @@ function qi(e = !0) {
|
|
|
130
130
|
[e, n]
|
|
131
131
|
), { height: t, ref: s };
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Ol({
|
|
134
134
|
unmountOnExit: e = !1,
|
|
135
135
|
animationDuration: t = 200,
|
|
136
136
|
className: r,
|
|
@@ -192,7 +192,7 @@ Mr.displayName = "Heading";
|
|
|
192
192
|
function er({ className: e, style: t, size: r = "large", variant: n = "circular", alt: i, url: s, children: o }) {
|
|
193
193
|
return /* @__PURE__ */ c("div", { style: t, className: O("bbn-avatar", `bbn-avatar-${r}`, `bbn-avatar-${n}`, e), children: s ? /* @__PURE__ */ c("img", { className: "bbn-avatar-img", src: s, alt: i }) : o });
|
|
194
194
|
}
|
|
195
|
-
const
|
|
195
|
+
const El = ({
|
|
196
196
|
max: e = 1 / 0,
|
|
197
197
|
className: t,
|
|
198
198
|
children: r,
|
|
@@ -215,7 +215,7 @@ const Ol = ({
|
|
|
215
215
|
o - e
|
|
216
216
|
] })
|
|
217
217
|
] });
|
|
218
|
-
},
|
|
218
|
+
}, $n = Se(function({
|
|
219
219
|
label: t,
|
|
220
220
|
checked: r,
|
|
221
221
|
defaultChecked: n = !1,
|
|
@@ -286,7 +286,7 @@ const Ol = ({
|
|
|
286
286
|
}
|
|
287
287
|
) })
|
|
288
288
|
}, Xi = Se(function(t, r) {
|
|
289
|
-
return /* @__PURE__ */ c(
|
|
289
|
+
return /* @__PURE__ */ c($n, { ref: r, ...t, inputType: "checkbox", renderIcon: (n) => Zi[n.toString()] });
|
|
290
290
|
}), Gi = {
|
|
291
291
|
true: /* @__PURE__ */ c("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ c(
|
|
292
292
|
"path",
|
|
@@ -303,15 +303,15 @@ const Ol = ({
|
|
|
303
303
|
}
|
|
304
304
|
) })
|
|
305
305
|
}, Yi = Se(function(t, r) {
|
|
306
|
-
return /* @__PURE__ */ c(
|
|
306
|
+
return /* @__PURE__ */ c($n, { ref: r, ...t, inputType: "radio", renderIcon: (n) => Gi[n.toString()] });
|
|
307
307
|
});
|
|
308
|
-
var
|
|
308
|
+
var Hn = {
|
|
309
309
|
color: void 0,
|
|
310
310
|
size: void 0,
|
|
311
311
|
className: void 0,
|
|
312
312
|
style: void 0,
|
|
313
313
|
attr: void 0
|
|
314
|
-
},
|
|
314
|
+
}, an = P.createContext && /* @__PURE__ */ P.createContext(Hn), Ki = ["attr", "size", "title"];
|
|
315
315
|
function Ji(e, t) {
|
|
316
316
|
if (e == null) return {};
|
|
317
317
|
var r = Qi(e, t), n, i;
|
|
@@ -342,7 +342,7 @@ function tr() {
|
|
|
342
342
|
return e;
|
|
343
343
|
}, tr.apply(this, arguments);
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function on(e, t) {
|
|
346
346
|
var r = Object.keys(e);
|
|
347
347
|
if (Object.getOwnPropertySymbols) {
|
|
348
348
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -355,9 +355,9 @@ function an(e, t) {
|
|
|
355
355
|
function rr(e) {
|
|
356
356
|
for (var t = 1; t < arguments.length; t++) {
|
|
357
357
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
358
|
-
t % 2 ?
|
|
358
|
+
t % 2 ? on(Object(r), !0).forEach(function(n) {
|
|
359
359
|
es(e, n, r[n]);
|
|
360
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
360
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : on(Object(r)).forEach(function(n) {
|
|
361
361
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
362
362
|
});
|
|
363
363
|
}
|
|
@@ -380,15 +380,15 @@ function rs(e, t) {
|
|
|
380
380
|
}
|
|
381
381
|
return (t === "string" ? String : Number)(e);
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function Wn(e) {
|
|
384
384
|
return e && e.map((t, r) => /* @__PURE__ */ P.createElement(t.tag, rr({
|
|
385
385
|
key: r
|
|
386
|
-
}, t.attr),
|
|
386
|
+
}, t.attr), Wn(t.child)));
|
|
387
387
|
}
|
|
388
388
|
function st(e) {
|
|
389
389
|
return (t) => /* @__PURE__ */ P.createElement(ns, tr({
|
|
390
390
|
attr: rr({}, e.attr)
|
|
391
|
-
}, t),
|
|
391
|
+
}, t), Wn(e.child));
|
|
392
392
|
}
|
|
393
393
|
function ns(e) {
|
|
394
394
|
var t = (r) => {
|
|
@@ -411,7 +411,7 @@ function ns(e) {
|
|
|
411
411
|
xmlns: "http://www.w3.org/2000/svg"
|
|
412
412
|
}), s && /* @__PURE__ */ P.createElement("title", null, s), e.children);
|
|
413
413
|
};
|
|
414
|
-
return
|
|
414
|
+
return an !== void 0 ? /* @__PURE__ */ P.createElement(an.Consumer, null, (r) => t(r)) : t(Hn);
|
|
415
415
|
}
|
|
416
416
|
function is(e) {
|
|
417
417
|
return st({ attr: { viewBox: "0 0 24 24", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M12 16L6 10H18L12 16Z" }, child: [] }] })(e);
|
|
@@ -425,14 +425,14 @@ function as(e) {
|
|
|
425
425
|
function os(e) {
|
|
426
426
|
return st({ attr: { viewBox: "0 0 24 24", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" }, child: [] }] })(e);
|
|
427
427
|
}
|
|
428
|
-
var
|
|
428
|
+
var ln = function(t) {
|
|
429
429
|
return t.reduce(function(r, n) {
|
|
430
430
|
var i = n[0], s = n[1];
|
|
431
431
|
return r[i] = s, r;
|
|
432
432
|
}, {});
|
|
433
|
-
},
|
|
433
|
+
}, cn = typeof window < "u" && window.document && window.document.createElement ? Je.useLayoutEffect : Je.useEffect, he = "top", xe = "bottom", Ne = "right", me = "left", Tr = "auto", _t = [he, xe, Ne, me], ft = "start", At = "end", ls = "clippingParents", Un = "viewport", xt = "popper", cs = "reference", un = /* @__PURE__ */ _t.reduce(function(e, t) {
|
|
434
434
|
return e.concat([t + "-" + ft, t + "-" + At]);
|
|
435
|
-
}, []),
|
|
435
|
+
}, []), zn = /* @__PURE__ */ [].concat(_t, [Tr]).reduce(function(e, t) {
|
|
436
436
|
return e.concat([t, t + "-" + ft, t + "-" + At]);
|
|
437
437
|
}, []), us = "beforeRead", fs = "read", ds = "afterRead", hs = "beforeMain", ms = "main", ps = "afterMain", vs = "beforeWrite", gs = "write", bs = "afterWrite", ys = [us, fs, ds, hs, ms, ps, vs, gs, bs];
|
|
438
438
|
function Me(e) {
|
|
@@ -513,14 +513,14 @@ function Or() {
|
|
|
513
513
|
return t.brand + "/" + t.version;
|
|
514
514
|
}).join(" ") : navigator.userAgent;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function qn() {
|
|
517
517
|
return !/^((?!chrome|android).)*safari/i.test(Or());
|
|
518
518
|
}
|
|
519
519
|
function ht(e, t, r) {
|
|
520
520
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
521
521
|
var n = e.getBoundingClientRect(), i = 1, s = 1;
|
|
522
522
|
t && ye(e) && (i = e.offsetWidth > 0 && dt(n.width) / e.offsetWidth || 1, s = e.offsetHeight > 0 && dt(n.height) / e.offsetHeight || 1);
|
|
523
|
-
var o = rt(e) ? ge(e) : window, a = o.visualViewport, l = !
|
|
523
|
+
var o = rt(e) ? ge(e) : window, a = o.visualViewport, l = !qn() && r, f = (n.left + (l && a ? a.offsetLeft : 0)) / i, u = (n.top + (l && a ? a.offsetTop : 0)) / s, d = n.width / i, m = n.height / s;
|
|
524
524
|
return {
|
|
525
525
|
width: d,
|
|
526
526
|
height: m,
|
|
@@ -541,7 +541,7 @@ function Br(e) {
|
|
|
541
541
|
height: n
|
|
542
542
|
};
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function Zn(e, t) {
|
|
545
545
|
var r = t.getRootNode && t.getRootNode();
|
|
546
546
|
if (e.contains(t))
|
|
547
547
|
return !0;
|
|
@@ -579,7 +579,7 @@ function fr(e) {
|
|
|
579
579
|
qe(e)
|
|
580
580
|
);
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function fn(e) {
|
|
583
583
|
return !ye(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
584
584
|
je(e).position === "fixed" ? null : e.offsetParent;
|
|
585
585
|
}
|
|
@@ -600,8 +600,8 @@ function ks(e) {
|
|
|
600
600
|
return null;
|
|
601
601
|
}
|
|
602
602
|
function Mt(e) {
|
|
603
|
-
for (var t = ge(e), r =
|
|
604
|
-
r =
|
|
603
|
+
for (var t = ge(e), r = fn(e); r && Cs(r) && je(r).position === "static"; )
|
|
604
|
+
r = fn(r);
|
|
605
605
|
return r && (Me(r) === "html" || Me(r) === "body" && je(r).position === "static") ? t : r || ks(e) || t;
|
|
606
606
|
}
|
|
607
607
|
function Pr(e) {
|
|
@@ -614,7 +614,7 @@ function Os(e, t, r) {
|
|
|
614
614
|
var n = kt(e, t, r);
|
|
615
615
|
return n > r ? r : n;
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function Xn() {
|
|
618
618
|
return {
|
|
619
619
|
top: 0,
|
|
620
620
|
right: 0,
|
|
@@ -622,10 +622,10 @@ function Zn() {
|
|
|
622
622
|
left: 0
|
|
623
623
|
};
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
return Object.assign({},
|
|
625
|
+
function Gn(e) {
|
|
626
|
+
return Object.assign({}, Xn(), e);
|
|
627
627
|
}
|
|
628
|
-
function
|
|
628
|
+
function Yn(e, t) {
|
|
629
629
|
return t.reduce(function(r, n) {
|
|
630
630
|
return r[n] = e, r;
|
|
631
631
|
}, {});
|
|
@@ -633,7 +633,7 @@ function Gn(e, t) {
|
|
|
633
633
|
var Es = function(t, r) {
|
|
634
634
|
return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
|
|
635
635
|
placement: r.placement
|
|
636
|
-
})) : t,
|
|
636
|
+
})) : t, Gn(typeof t != "number" ? t : Yn(t, _t));
|
|
637
637
|
};
|
|
638
638
|
function Ss(e) {
|
|
639
639
|
var t, r = e.state, n = e.name, i = e.options, s = r.elements.arrow, o = r.modifiersData.popperOffsets, a = De(r.placement), l = Pr(a), f = [me, Ne].indexOf(a) >= 0, u = f ? "height" : "width";
|
|
@@ -644,7 +644,7 @@ function Ss(e) {
|
|
|
644
644
|
}
|
|
645
645
|
function As(e) {
|
|
646
646
|
var t = e.state, r = e.options, n = r.element, i = n === void 0 ? "[data-popper-arrow]" : n;
|
|
647
|
-
i != null && (typeof i == "string" && (i = t.elements.popper.querySelector(i), !i) ||
|
|
647
|
+
i != null && (typeof i == "string" && (i = t.elements.popper.querySelector(i), !i) || Zn(t.elements.popper, i) && (t.elements.arrow = i));
|
|
648
648
|
}
|
|
649
649
|
const Ls = {
|
|
650
650
|
name: "arrow",
|
|
@@ -671,7 +671,7 @@ function Fs(e, t) {
|
|
|
671
671
|
y: dt(n * i) / i || 0
|
|
672
672
|
};
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function dn(e) {
|
|
675
675
|
var t, r = e.popper, n = e.popperRect, i = e.placement, s = e.variation, o = e.offsets, a = e.position, l = e.gpuAcceleration, f = e.adaptive, u = e.roundOffsets, d = e.isFixed, m = o.x, v = m === void 0 ? 0 : m, N = o.y, g = N === void 0 ? 0 : N, w = typeof u == "function" ? u({
|
|
676
676
|
x: v,
|
|
677
677
|
y: g
|
|
@@ -724,12 +724,12 @@ function Ds(e) {
|
|
|
724
724
|
gpuAcceleration: i,
|
|
725
725
|
isFixed: t.options.strategy === "fixed"
|
|
726
726
|
};
|
|
727
|
-
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper,
|
|
727
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, dn(Object.assign({}, f, {
|
|
728
728
|
offsets: t.modifiersData.popperOffsets,
|
|
729
729
|
position: t.options.strategy,
|
|
730
730
|
adaptive: o,
|
|
731
731
|
roundOffsets: l
|
|
732
|
-
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow,
|
|
732
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, dn(Object.assign({}, f, {
|
|
733
733
|
offsets: t.modifiersData.arrow,
|
|
734
734
|
position: "absolute",
|
|
735
735
|
adaptive: !1,
|
|
@@ -782,7 +782,7 @@ var Bs = {
|
|
|
782
782
|
start: "end",
|
|
783
783
|
end: "start"
|
|
784
784
|
};
|
|
785
|
-
function
|
|
785
|
+
function hn(e) {
|
|
786
786
|
return e.replace(/start|end/g, function(t) {
|
|
787
787
|
return Bs[t];
|
|
788
788
|
});
|
|
@@ -801,7 +801,7 @@ function Ps(e, t) {
|
|
|
801
801
|
var r = ge(e), n = qe(e), i = r.visualViewport, s = n.clientWidth, o = n.clientHeight, a = 0, l = 0;
|
|
802
802
|
if (i) {
|
|
803
803
|
s = i.width, o = i.height;
|
|
804
|
-
var f =
|
|
804
|
+
var f = qn();
|
|
805
805
|
(f || !f && t === "fixed") && (a = i.offsetLeft, l = i.offsetTop);
|
|
806
806
|
}
|
|
807
807
|
return {
|
|
@@ -824,13 +824,13 @@ function $r(e) {
|
|
|
824
824
|
var t = je(e), r = t.overflow, n = t.overflowX, i = t.overflowY;
|
|
825
825
|
return /auto|scroll|overlay|hidden/.test(r + i + n);
|
|
826
826
|
}
|
|
827
|
-
function
|
|
828
|
-
return ["html", "body", "#document"].indexOf(Me(e)) >= 0 ? e.ownerDocument.body : ye(e) && $r(e) ? e :
|
|
827
|
+
function Kn(e) {
|
|
828
|
+
return ["html", "body", "#document"].indexOf(Me(e)) >= 0 ? e.ownerDocument.body : ye(e) && $r(e) ? e : Kn(fr(e));
|
|
829
829
|
}
|
|
830
830
|
function Ot(e, t) {
|
|
831
831
|
var r;
|
|
832
832
|
t === void 0 && (t = []);
|
|
833
|
-
var n =
|
|
833
|
+
var n = Kn(e), i = n === ((r = e.ownerDocument) == null ? void 0 : r.body), s = ge(n), o = i ? [s].concat(s.visualViewport || [], $r(n) ? n : []) : n, a = t.concat(o);
|
|
834
834
|
return i ? a : (
|
|
835
835
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
836
836
|
a.concat(Ot(fr(o)))
|
|
@@ -848,23 +848,23 @@ function js(e, t) {
|
|
|
848
848
|
var r = ht(e, !1, t === "fixed");
|
|
849
849
|
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;
|
|
850
850
|
}
|
|
851
|
-
function
|
|
852
|
-
return t ===
|
|
851
|
+
function mn(e, t, r) {
|
|
852
|
+
return t === Un ? Er(Ps(e, r)) : rt(t) ? js(t, r) : Er(Is(qe(e)));
|
|
853
853
|
}
|
|
854
854
|
function $s(e) {
|
|
855
855
|
var t = Ot(fr(e)), r = ["absolute", "fixed"].indexOf(je(e).position) >= 0, n = r && ye(e) ? Mt(e) : e;
|
|
856
856
|
return rt(n) ? t.filter(function(i) {
|
|
857
|
-
return rt(i) &&
|
|
857
|
+
return rt(i) && Zn(i, n) && Me(i) !== "body";
|
|
858
858
|
}) : [];
|
|
859
859
|
}
|
|
860
860
|
function Hs(e, t, r, n) {
|
|
861
861
|
var i = t === "clippingParents" ? $s(e) : [].concat(t), s = [].concat(i, [r]), o = s[0], a = s.reduce(function(l, f) {
|
|
862
|
-
var u =
|
|
862
|
+
var u = mn(e, f, n);
|
|
863
863
|
return l.top = et(u.top, l.top), l.right = nr(u.right, l.right), l.bottom = nr(u.bottom, l.bottom), l.left = et(u.left, l.left), l;
|
|
864
|
-
},
|
|
864
|
+
}, mn(e, o, n));
|
|
865
865
|
return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function Jn(e) {
|
|
868
868
|
var t = e.reference, r = e.element, n = e.placement, i = n ? De(n) : null, s = n ? mt(n) : null, o = t.x + t.width / 2 - r.width / 2, a = t.y + t.height / 2 - r.height / 2, l;
|
|
869
869
|
switch (i) {
|
|
870
870
|
case he:
|
|
@@ -913,7 +913,7 @@ function Kn(e) {
|
|
|
913
913
|
}
|
|
914
914
|
function Lt(e, t) {
|
|
915
915
|
t === void 0 && (t = {});
|
|
916
|
-
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 ? ls : a, f = r.rootBoundary, u = f === void 0 ?
|
|
916
|
+
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 ? ls : a, f = r.rootBoundary, u = f === void 0 ? Un : f, d = r.elementContext, m = d === void 0 ? xt : d, v = r.altBoundary, N = v === void 0 ? !1 : v, g = r.padding, w = g === void 0 ? 0 : g, M = Gn(typeof w != "number" ? w : Yn(w, _t)), x = m === xt ? cs : xt, F = e.rects.popper, k = e.elements[N ? x : m], E = Hs(rt(k) ? k : k.contextElement || qe(e.elements.popper), l, u, o), A = ht(e.elements.reference), _ = Jn({
|
|
917
917
|
reference: A,
|
|
918
918
|
element: F,
|
|
919
919
|
placement: i
|
|
@@ -934,7 +934,7 @@ function Lt(e, t) {
|
|
|
934
934
|
}
|
|
935
935
|
function Ws(e, t) {
|
|
936
936
|
t === void 0 && (t = {});
|
|
937
|
-
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 ?
|
|
937
|
+
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 ? zn : l, u = mt(n), d = u ? a ? un : un.filter(function(N) {
|
|
938
938
|
return mt(N) === u;
|
|
939
939
|
}) : _t, m = d.filter(function(N) {
|
|
940
940
|
return f.indexOf(N) >= 0;
|
|
@@ -956,7 +956,7 @@ function Us(e) {
|
|
|
956
956
|
if (De(e) === Tr)
|
|
957
957
|
return [];
|
|
958
958
|
var t = Yt(e);
|
|
959
|
-
return [
|
|
959
|
+
return [hn(e), t, hn(t)];
|
|
960
960
|
}
|
|
961
961
|
function zs(e) {
|
|
962
962
|
var t = e.state, r = e.options, n = e.name;
|
|
@@ -1016,7 +1016,7 @@ const qs = {
|
|
|
1016
1016
|
_skip: !1
|
|
1017
1017
|
}
|
|
1018
1018
|
};
|
|
1019
|
-
function
|
|
1019
|
+
function pn(e, t, r) {
|
|
1020
1020
|
return r === void 0 && (r = {
|
|
1021
1021
|
x: 0,
|
|
1022
1022
|
y: 0
|
|
@@ -1027,7 +1027,7 @@ function mn(e, t, r) {
|
|
|
1027
1027
|
left: e.left - t.width - r.x
|
|
1028
1028
|
};
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1030
|
+
function vn(e) {
|
|
1031
1031
|
return [he, Ne, xe, me].some(function(t) {
|
|
1032
1032
|
return e[t] >= 0;
|
|
1033
1033
|
});
|
|
@@ -1037,7 +1037,7 @@ function Zs(e) {
|
|
|
1037
1037
|
elementContext: "reference"
|
|
1038
1038
|
}), a = Lt(t, {
|
|
1039
1039
|
altBoundary: !0
|
|
1040
|
-
}), l =
|
|
1040
|
+
}), l = pn(o, n), f = pn(a, i, s), u = vn(l), d = vn(f);
|
|
1041
1041
|
t.modifiersData[r] = {
|
|
1042
1042
|
referenceClippingOffsets: l,
|
|
1043
1043
|
popperEscapeOffsets: f,
|
|
@@ -1068,7 +1068,7 @@ function Gs(e, t, r) {
|
|
|
1068
1068
|
};
|
|
1069
1069
|
}
|
|
1070
1070
|
function Ys(e) {
|
|
1071
|
-
var t = e.state, r = e.options, n = e.name, i = r.offset, s = i === void 0 ? [0, 0] : i, o =
|
|
1071
|
+
var t = e.state, r = e.options, n = e.name, i = r.offset, s = i === void 0 ? [0, 0] : i, o = zn.reduce(function(u, d) {
|
|
1072
1072
|
return u[d] = Gs(d, t.rects, s), u;
|
|
1073
1073
|
}, {}), a = o[t.placement], l = a.x, f = a.y;
|
|
1074
1074
|
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += l, t.modifiersData.popperOffsets.y += f), t.modifiersData[n] = o;
|
|
@@ -1082,7 +1082,7 @@ const Ks = {
|
|
|
1082
1082
|
};
|
|
1083
1083
|
function Js(e) {
|
|
1084
1084
|
var t = e.state, r = e.name;
|
|
1085
|
-
t.modifiersData[r] =
|
|
1085
|
+
t.modifiersData[r] = Jn({
|
|
1086
1086
|
reference: t.rects.reference,
|
|
1087
1087
|
element: t.rects.popper,
|
|
1088
1088
|
placement: t.placement
|
|
@@ -1121,11 +1121,11 @@ function ta(e) {
|
|
|
1121
1121
|
var j, z = k === "y" ? he : me, J = k === "y" ? xe : Ne, X = k === "y" ? "height" : "width", Q = A[k], Ae = Q + w[z], fe = Q - w[J], Re = v ? -$[X] / 2 : 0, ot = x === ft ? _[X] : $[X], Ze = x === ft ? -$[X] : -_[X], Xe = t.elements.arrow, $e = v && Xe ? Br(Xe) : {
|
|
1122
1122
|
width: 0,
|
|
1123
1123
|
height: 0
|
|
1124
|
-
}, ke = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding :
|
|
1124
|
+
}, ke = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Xn(), Ge = ke[z], He = ke[J], Le = kt(0, _[X], $e[X]), Ye = F ? _[X] / 2 - Re - Le - Ge - H.mainAxis : ot - Le - Ge - H.mainAxis, yt = F ? -_[X] / 2 + Re + Le + He + H.mainAxis : Ze + Le + He + H.mainAxis, wt = t.elements.arrow && Mt(t.elements.arrow), jt = wt ? k === "y" ? wt.clientTop || 0 : wt.clientLeft || 0 : 0, $t = (j = V == null ? void 0 : V[k]) != null ? j : 0, Ht = Q + Ye - $t - jt, Wt = Q + yt - $t, Ut = kt(v ? nr(Ae, Ht) : Ae, Q, v ? et(fe, Wt) : fe);
|
|
1125
1125
|
A[k] = Ut, T[k] = Ut - Q;
|
|
1126
1126
|
}
|
|
1127
1127
|
if (a) {
|
|
1128
|
-
var zt,
|
|
1128
|
+
var zt, rn = k === "x" ? he : me, qt = k === "x" ? xe : Ne, h = A[E], p = E === "y" ? "height" : "width", b = h + w[rn], D = h - w[qt], S = [he, me].indexOf(M) !== -1, C = (zt = V == null ? void 0 : V[E]) != null ? zt : 0, B = S ? b : h - _[p] - $[p] - C + H.altAxis, U = S ? h + _[p] + $[p] - C - H.altAxis : D, q = v && S ? Os(B, h, U) : kt(v ? B : b, h, v ? U : D);
|
|
1129
1129
|
A[E] = q, T[E] = q - h;
|
|
1130
1130
|
}
|
|
1131
1131
|
t.modifiersData[n] = T;
|
|
@@ -1217,12 +1217,12 @@ function ua(e) {
|
|
|
1217
1217
|
return t[r];
|
|
1218
1218
|
});
|
|
1219
1219
|
}
|
|
1220
|
-
var
|
|
1220
|
+
var gn = {
|
|
1221
1221
|
placement: "bottom",
|
|
1222
1222
|
modifiers: [],
|
|
1223
1223
|
strategy: "absolute"
|
|
1224
1224
|
};
|
|
1225
|
-
function
|
|
1225
|
+
function bn() {
|
|
1226
1226
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
1227
1227
|
t[r] = arguments[r];
|
|
1228
1228
|
return !t.some(function(n) {
|
|
@@ -1231,13 +1231,13 @@ function gn() {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
function fa(e) {
|
|
1233
1233
|
e === void 0 && (e = {});
|
|
1234
|
-
var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, i = t.defaultOptions, s = i === void 0 ?
|
|
1234
|
+
var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, i = t.defaultOptions, s = i === void 0 ? gn : i;
|
|
1235
1235
|
return function(a, l, f) {
|
|
1236
1236
|
f === void 0 && (f = s);
|
|
1237
1237
|
var u = {
|
|
1238
1238
|
placement: "bottom",
|
|
1239
1239
|
orderedModifiers: [],
|
|
1240
|
-
options: Object.assign({},
|
|
1240
|
+
options: Object.assign({}, gn, s),
|
|
1241
1241
|
modifiersData: {},
|
|
1242
1242
|
elements: {
|
|
1243
1243
|
reference: a,
|
|
@@ -1266,7 +1266,7 @@ function fa(e) {
|
|
|
1266
1266
|
forceUpdate: function() {
|
|
1267
1267
|
if (!m) {
|
|
1268
1268
|
var M = u.elements, x = M.reference, F = M.popper;
|
|
1269
|
-
if (
|
|
1269
|
+
if (bn(x, F)) {
|
|
1270
1270
|
u.rects = {
|
|
1271
1271
|
reference: aa(x, Mt(F), u.options.strategy === "fixed"),
|
|
1272
1272
|
popper: Br(F)
|
|
@@ -1300,7 +1300,7 @@ function fa(e) {
|
|
|
1300
1300
|
g(), m = !0;
|
|
1301
1301
|
}
|
|
1302
1302
|
};
|
|
1303
|
-
if (!
|
|
1303
|
+
if (!bn(a, l))
|
|
1304
1304
|
return v;
|
|
1305
1305
|
v.setOptions(f).then(function(w) {
|
|
1306
1306
|
!m && f.onFirstUpdate && f.onFirstUpdate(w);
|
|
@@ -1331,7 +1331,7 @@ function fa(e) {
|
|
|
1331
1331
|
var da = [Ts, Qs, _s, Ns, Ks, qs, ra, Ls, Xs], ha = /* @__PURE__ */ fa({
|
|
1332
1332
|
defaultModifiers: da
|
|
1333
1333
|
}), Gt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1334
|
-
function
|
|
1334
|
+
function Qn(e) {
|
|
1335
1335
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1336
1336
|
}
|
|
1337
1337
|
var ma = typeof Element < "u", pa = typeof Map == "function", va = typeof Set == "function", ga = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
@@ -1390,7 +1390,7 @@ var ba = function(t, r) {
|
|
|
1390
1390
|
throw n;
|
|
1391
1391
|
}
|
|
1392
1392
|
};
|
|
1393
|
-
const ya = /* @__PURE__ */
|
|
1393
|
+
const ya = /* @__PURE__ */ Qn(ba);
|
|
1394
1394
|
var wa = [], xa = function(t, r, n) {
|
|
1395
1395
|
n === void 0 && (n = {});
|
|
1396
1396
|
var i = Je.useRef(null), s = {
|
|
@@ -1419,10 +1419,10 @@ var wa = [], xa = function(t, r, n) {
|
|
|
1419
1419
|
var N = v.state, g = Object.keys(N.elements);
|
|
1420
1420
|
Ui.flushSync(function() {
|
|
1421
1421
|
l({
|
|
1422
|
-
styles:
|
|
1422
|
+
styles: ln(g.map(function(w) {
|
|
1423
1423
|
return [w, N.styles[w] || {}];
|
|
1424
1424
|
})),
|
|
1425
|
-
attributes:
|
|
1425
|
+
attributes: ln(g.map(function(w) {
|
|
1426
1426
|
return [w, N.attributes[w]];
|
|
1427
1427
|
}))
|
|
1428
1428
|
});
|
|
@@ -1442,9 +1442,9 @@ var wa = [], xa = function(t, r, n) {
|
|
|
1442
1442
|
};
|
|
1443
1443
|
return ya(i.current, m) ? i.current || m : (i.current = m, m);
|
|
1444
1444
|
}, [s.onFirstUpdate, s.placement, s.strategy, s.modifiers, f]), d = Je.useRef();
|
|
1445
|
-
return
|
|
1445
|
+
return cn(function() {
|
|
1446
1446
|
d.current && d.current.setOptions(u);
|
|
1447
|
-
}, [u]),
|
|
1447
|
+
}, [u]), cn(function() {
|
|
1448
1448
|
if (!(t == null || r == null)) {
|
|
1449
1449
|
var m = n.createPopper || ha, v = m(t, r, u);
|
|
1450
1450
|
return d.current = v, function() {
|
|
@@ -1509,7 +1509,7 @@ function ka(e, t = () => null, { enabled: r = !0 } = {}) {
|
|
|
1509
1509
|
};
|
|
1510
1510
|
}, [i, r, t]);
|
|
1511
1511
|
}
|
|
1512
|
-
function
|
|
1512
|
+
function ei({
|
|
1513
1513
|
open: e = !1,
|
|
1514
1514
|
className: t,
|
|
1515
1515
|
anchorEl: r,
|
|
@@ -1543,7 +1543,7 @@ function Oa(e) {
|
|
|
1543
1543
|
};
|
|
1544
1544
|
}, [e]), t;
|
|
1545
1545
|
}
|
|
1546
|
-
const Ea = (e) => e.label,
|
|
1546
|
+
const Ea = (e) => e.label, ti = Se(
|
|
1547
1547
|
({
|
|
1548
1548
|
disabled: e,
|
|
1549
1549
|
className: t,
|
|
@@ -1563,7 +1563,7 @@ const Ea = (e) => e.label, ei = Se(
|
|
|
1563
1563
|
...g
|
|
1564
1564
|
}, w) => {
|
|
1565
1565
|
const M = it(null);
|
|
1566
|
-
|
|
1566
|
+
Bn(w, () => M.current, []);
|
|
1567
1567
|
const { width: x } = Oa(M.current), [F, k] = ut({
|
|
1568
1568
|
value: s,
|
|
1569
1569
|
defaultValue: o,
|
|
@@ -1601,7 +1601,7 @@ const Ea = (e) => e.label, ei = Se(
|
|
|
1601
1601
|
}
|
|
1602
1602
|
),
|
|
1603
1603
|
/* @__PURE__ */ c(
|
|
1604
|
-
|
|
1604
|
+
ei,
|
|
1605
1605
|
{
|
|
1606
1606
|
anchorEl: M.current,
|
|
1607
1607
|
className: O("bbn-select-menu custom-scrollbar", f),
|
|
@@ -1628,7 +1628,7 @@ const Ea = (e) => e.label, ei = Se(
|
|
|
1628
1628
|
] });
|
|
1629
1629
|
}
|
|
1630
1630
|
);
|
|
1631
|
-
|
|
1631
|
+
ti.displayName = "Select";
|
|
1632
1632
|
const hr = Se(
|
|
1633
1633
|
({ className: e, prefix: t, suffix: r, disabled: n = !1, state: i = "default", ...s }, o) => /* @__PURE__ */ y("div", { className: O("bbn-input", `bbn-input-${i}`, n && "bbn-input-disabled", r && "bbn-input-has-suffix"), children: [
|
|
1634
1634
|
t && /* @__PURE__ */ c("div", { className: "bbn-input-prefix", children: t }),
|
|
@@ -1646,11 +1646,11 @@ function mr({ children: e, label: t, hint: r, state: n = "default", className: i
|
|
|
1646
1646
|
r && /* @__PURE__ */ c("div", { className: O("bbn-form-control-hint", `bbn-form-control-hint-${n}`), children: r })
|
|
1647
1647
|
] });
|
|
1648
1648
|
}
|
|
1649
|
-
const
|
|
1649
|
+
const ri = ur({
|
|
1650
1650
|
removeDialog: () => null,
|
|
1651
1651
|
updateDialog: () => null
|
|
1652
1652
|
});
|
|
1653
|
-
function
|
|
1653
|
+
function Sl({ children: e }) {
|
|
1654
1654
|
const [t, r] = ee({}), n = _e(() => Object.values(t).some((a) => a), [t]);
|
|
1655
1655
|
le(
|
|
1656
1656
|
function() {
|
|
@@ -1667,10 +1667,10 @@ function El({ children: e }) {
|
|
|
1667
1667
|
}, []), s = oe((a, l) => {
|
|
1668
1668
|
r((f) => ({ ...f, [a]: l }));
|
|
1669
1669
|
}, []), o = _e(() => ({ removeDialog: i, updateDialog: s }), [i, s]);
|
|
1670
|
-
return /* @__PURE__ */ c(
|
|
1670
|
+
return /* @__PURE__ */ c(ri.Provider, { value: o, children: e });
|
|
1671
1671
|
}
|
|
1672
|
-
function
|
|
1673
|
-
const t =
|
|
1672
|
+
function ni({ open: e = !1 } = {}) {
|
|
1673
|
+
const t = Pn(), [r, n] = ee(e), { updateDialog: i, removeDialog: s } = Dt(ri), o = e || r;
|
|
1674
1674
|
le(
|
|
1675
1675
|
() => () => {
|
|
1676
1676
|
s(t);
|
|
@@ -1689,7 +1689,7 @@ function ri({ open: e = !1 } = {}) {
|
|
|
1689
1689
|
unmount: a
|
|
1690
1690
|
};
|
|
1691
1691
|
}
|
|
1692
|
-
const
|
|
1692
|
+
const ii = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
|
|
1693
1693
|
"div",
|
|
1694
1694
|
{
|
|
1695
1695
|
...t,
|
|
@@ -1705,7 +1705,7 @@ const ni = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
|
|
|
1705
1705
|
dialogClassName: o,
|
|
1706
1706
|
...a
|
|
1707
1707
|
}) => {
|
|
1708
|
-
const { mounted: l, unmount: f } =
|
|
1708
|
+
const { mounted: l, unmount: f } = ni({ open: t });
|
|
1709
1709
|
return /* @__PURE__ */ y(dr, { mounted: l, children: [
|
|
1710
1710
|
/* @__PURE__ */ c("div", { ...a, className: O("bbn-dialog-wrapper", r), children: /* @__PURE__ */ c(
|
|
1711
1711
|
"div",
|
|
@@ -1715,7 +1715,7 @@ const ni = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
|
|
|
1715
1715
|
children: e
|
|
1716
1716
|
}
|
|
1717
1717
|
) }),
|
|
1718
|
-
i && /* @__PURE__ */ c(
|
|
1718
|
+
i && /* @__PURE__ */ c(ii, { className: s, open: t, onClick: n })
|
|
1719
1719
|
] });
|
|
1720
1720
|
}, Hr = ({
|
|
1721
1721
|
children: e,
|
|
@@ -1801,7 +1801,7 @@ const ni = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
|
|
|
1801
1801
|
/* @__PURE__ */ c("path", { d: "M10 15C12.7614 15 15 12.7614 15 10C15 7.23858 12.7614 5 10 5C7.23858 5 5 7.23858 5 10C5 12.7614 7.23858 15 10 15Z" })
|
|
1802
1802
|
]
|
|
1803
1803
|
}
|
|
1804
|
-
) }),
|
|
1804
|
+
) }), Wr = ({
|
|
1805
1805
|
className: e = "",
|
|
1806
1806
|
size: t = 16,
|
|
1807
1807
|
variant: r = "default",
|
|
@@ -1956,7 +1956,7 @@ const ni = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
|
|
|
1956
1956
|
"accent-primary": "text-accent-primary",
|
|
1957
1957
|
"accent-secondary": "text-accent-secondary"
|
|
1958
1958
|
}, Rt = ({ children: e, open: t = !1, className: r, onClose: n, ...i }) => {
|
|
1959
|
-
const { mounted: s, unmount: o } =
|
|
1959
|
+
const { mounted: s, unmount: o } = ni({ open: t });
|
|
1960
1960
|
return /* @__PURE__ */ y(dr, { mounted: s, children: [
|
|
1961
1961
|
/* @__PURE__ */ y(
|
|
1962
1962
|
"div",
|
|
@@ -1982,12 +1982,12 @@ const ni = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
|
|
|
1982
1982
|
]
|
|
1983
1983
|
}
|
|
1984
1984
|
),
|
|
1985
|
-
/* @__PURE__ */ c(
|
|
1985
|
+
/* @__PURE__ */ c(ii, { open: t, onClick: n })
|
|
1986
1986
|
] });
|
|
1987
1987
|
}, vr = ({ className: e, children: t, title: r, onClose: n }) => /* @__PURE__ */ y("div", { className: O("bbn-dialog-header", e), children: [
|
|
1988
1988
|
/* @__PURE__ */ y("div", { className: "bbn-dialog-title", children: [
|
|
1989
1989
|
/* @__PURE__ */ c(Mr, { variant: "h5", children: r }),
|
|
1990
|
-
!!n && /* @__PURE__ */ c(
|
|
1990
|
+
!!n && /* @__PURE__ */ c(In, { className: "shrink-0", onClick: n, children: /* @__PURE__ */ c("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ c(
|
|
1991
1991
|
"path",
|
|
1992
1992
|
{
|
|
1993
1993
|
d: "M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",
|
|
@@ -1996,21 +1996,21 @@ const ni = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
|
|
|
1996
1996
|
) }) })
|
|
1997
1997
|
] }),
|
|
1998
1998
|
t
|
|
1999
|
-
] }), gr = (e) => /* @__PURE__ */ c("div", { ...e, className: O("bbn-dialog-body", e.className) }),
|
|
2000
|
-
function
|
|
1999
|
+
] }), gr = (e) => /* @__PURE__ */ c("div", { ...e, className: O("bbn-dialog-body", e.className) }), Ur = (e) => /* @__PURE__ */ c("div", { ...e, className: O("bbn-dialog-footer", e.className) });
|
|
2000
|
+
function Al({ className: e, ...t }) {
|
|
2001
2001
|
return /* @__PURE__ */ c("span", { ...t, className: O("bbn-chip", e) });
|
|
2002
2002
|
}
|
|
2003
|
-
function
|
|
2003
|
+
function Ll({ size: e = 40, className: t }) {
|
|
2004
2004
|
return /* @__PURE__ */ c("span", { className: ce("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" }) }) });
|
|
2005
2005
|
}
|
|
2006
|
-
var ai = "Expected a function",
|
|
2006
|
+
var ai = "Expected a function", yn = NaN, _a = "[object Symbol]", Ma = /^\s+|\s+$/g, Ta = /^[-+]0x[0-9a-f]+$/i, Ra = /^0b[01]+$/i, Ba = /^0o[0-7]+$/i, Pa = parseInt, Ia = typeof Gt == "object" && Gt && Gt.Object === Object && Gt, ja = typeof self == "object" && self && self.Object === Object && self, $a = Ia || ja || Function("return this")(), Ha = Object.prototype, Wa = Ha.toString, Ua = Math.max, za = Math.min, Nr = function() {
|
|
2007
2007
|
return $a.Date.now();
|
|
2008
2008
|
};
|
|
2009
2009
|
function qa(e, t, r) {
|
|
2010
2010
|
var n, i, s, o, a, l, f = 0, u = !1, d = !1, m = !0;
|
|
2011
2011
|
if (typeof e != "function")
|
|
2012
2012
|
throw new TypeError(ai);
|
|
2013
|
-
t =
|
|
2013
|
+
t = wn(t) || 0, ir(r) && (u = !!r.leading, d = "maxWait" in r, s = d ? Ua(wn(r.maxWait) || 0, t) : s, m = "trailing" in r ? !!r.trailing : m);
|
|
2014
2014
|
function v(A) {
|
|
2015
2015
|
var _ = n, $ = i;
|
|
2016
2016
|
return n = i = void 0, f = A, o = e.apply($, _), o;
|
|
@@ -2073,11 +2073,11 @@ function Xa(e) {
|
|
|
2073
2073
|
function Ga(e) {
|
|
2074
2074
|
return typeof e == "symbol" || Xa(e) && Wa.call(e) == _a;
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2076
|
+
function wn(e) {
|
|
2077
2077
|
if (typeof e == "number")
|
|
2078
2078
|
return e;
|
|
2079
2079
|
if (Ga(e))
|
|
2080
|
-
return
|
|
2080
|
+
return yn;
|
|
2081
2081
|
if (ir(e)) {
|
|
2082
2082
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
2083
2083
|
e = ir(t) ? t + "" : t;
|
|
@@ -2086,10 +2086,10 @@ function yn(e) {
|
|
|
2086
2086
|
return e === 0 ? e : +e;
|
|
2087
2087
|
e = e.replace(Ma, "");
|
|
2088
2088
|
var r = Ra.test(e);
|
|
2089
|
-
return r || Ba.test(e) ? Pa(e.slice(2), r ? 2 : 8) : Ta.test(e) ?
|
|
2089
|
+
return r || Ba.test(e) ? Pa(e.slice(2), r ? 2 : 8) : Ta.test(e) ? yn : +e;
|
|
2090
2090
|
}
|
|
2091
2091
|
var Ya = Za;
|
|
2092
|
-
const oi = /* @__PURE__ */
|
|
2092
|
+
const oi = /* @__PURE__ */ Qn(Ya);
|
|
2093
2093
|
function Ka(e, { onLoadMore: t, hasMore: r = !1, loading: n = !1 } = {}) {
|
|
2094
2094
|
const [i, s] = ee(!1);
|
|
2095
2095
|
return le(() => {
|
|
@@ -2279,7 +2279,7 @@ function no({
|
|
|
2279
2279
|
...v
|
|
2280
2280
|
}, N) {
|
|
2281
2281
|
const g = it(null);
|
|
2282
|
-
|
|
2282
|
+
Bn(N, () => g.current, []);
|
|
2283
2283
|
const { sortStates: w, handleColumnSort: M, sortedData: x } = eo(e, t), { isScrolledTop: F } = Ka(g, { onLoadMore: a, hasMore: s, loading: o }), { isLeftScrolled: k, isRightScrolled: E } = Ja(g), [A, _] = ut({
|
|
2284
2284
|
value: u,
|
|
2285
2285
|
defaultValue: d ?? null,
|
|
@@ -2333,7 +2333,7 @@ const io = Se(no);
|
|
|
2333
2333
|
function so({ as: e = "div", className: t, children: r }) {
|
|
2334
2334
|
return Lr(e, { className: O("bbn-card", t) }, r);
|
|
2335
2335
|
}
|
|
2336
|
-
function
|
|
2336
|
+
function Vl(e) {
|
|
2337
2337
|
const [t = !1, r] = ut({
|
|
2338
2338
|
value: e.value,
|
|
2339
2339
|
defaultValue: e.defaultValue,
|
|
@@ -2350,7 +2350,7 @@ const ao = {
|
|
|
2350
2350
|
horizontal: "vertical",
|
|
2351
2351
|
vertical: "horizontal"
|
|
2352
2352
|
};
|
|
2353
|
-
function
|
|
2353
|
+
function Fl({ className: e, orientation: t = "vertical", children: r }) {
|
|
2354
2354
|
return /* @__PURE__ */ c("div", { className: ce("bbn-list", `bbn-list-${t}`, e), children: Qt.map(
|
|
2355
2355
|
r,
|
|
2356
2356
|
(n) => Fr(n) ? Vr(n, {
|
|
@@ -2358,7 +2358,7 @@ function Vl({ className: e, orientation: t = "vertical", children: r }) {
|
|
|
2358
2358
|
}) : n
|
|
2359
2359
|
) });
|
|
2360
2360
|
}
|
|
2361
|
-
function
|
|
2361
|
+
function Dl({ className: e, orientation: t = "horizontal", title: r, value: n, suffix: i }) {
|
|
2362
2362
|
return /* @__PURE__ */ y("div", { className: O("bbn-list-item", `bbn-list-item-${t}`, e), children: [
|
|
2363
2363
|
/* @__PURE__ */ c(
|
|
2364
2364
|
W,
|
|
@@ -2375,7 +2375,7 @@ function Fl({ className: e, orientation: t = "horizontal", title: r, value: n, s
|
|
|
2375
2375
|
] })
|
|
2376
2376
|
] });
|
|
2377
2377
|
}
|
|
2378
|
-
function
|
|
2378
|
+
function _l({
|
|
2379
2379
|
children: e,
|
|
2380
2380
|
count: t = 0,
|
|
2381
2381
|
max: r = 99,
|
|
@@ -2595,7 +2595,7 @@ const di = ({
|
|
|
2595
2595
|
children: g
|
|
2596
2596
|
}
|
|
2597
2597
|
) : /* @__PURE__ */ c(
|
|
2598
|
-
|
|
2598
|
+
ei,
|
|
2599
2599
|
{
|
|
2600
2600
|
anchorEl: u.current,
|
|
2601
2601
|
open: m,
|
|
@@ -2737,7 +2737,7 @@ const di = ({
|
|
|
2737
2737
|
}
|
|
2738
2738
|
)
|
|
2739
2739
|
] });
|
|
2740
|
-
},
|
|
2740
|
+
}, Ml = ({
|
|
2741
2741
|
label: e,
|
|
2742
2742
|
description: t,
|
|
2743
2743
|
onClick: r,
|
|
@@ -2781,7 +2781,7 @@ const di = ({
|
|
|
2781
2781
|
]
|
|
2782
2782
|
}
|
|
2783
2783
|
);
|
|
2784
|
-
},
|
|
2784
|
+
}, zr = ({
|
|
2785
2785
|
amount: e,
|
|
2786
2786
|
currencyIcon: t,
|
|
2787
2787
|
currencyName: r,
|
|
@@ -2868,7 +2868,7 @@ function mi(e = {}) {
|
|
|
2868
2868
|
copyToClipboard: a
|
|
2869
2869
|
};
|
|
2870
2870
|
}
|
|
2871
|
-
const
|
|
2871
|
+
const mo = ({
|
|
2872
2872
|
children: e,
|
|
2873
2873
|
value: t,
|
|
2874
2874
|
className: r,
|
|
@@ -2877,7 +2877,7 @@ const Ml = ({
|
|
|
2877
2877
|
copiedText: s,
|
|
2878
2878
|
timeout: o = 2e3
|
|
2879
2879
|
}) => {
|
|
2880
|
-
const a =
|
|
2880
|
+
const a = Pn(), l = {
|
|
2881
2881
|
copiedText: s,
|
|
2882
2882
|
timeout: o
|
|
2883
2883
|
}, {
|
|
@@ -2935,17 +2935,17 @@ function pi({ children: e, className: t, iconClassName: r, messageClassName: n }
|
|
|
2935
2935
|
}
|
|
2936
2936
|
var It = (e) => e.type === "checkbox", Qe = (e) => e instanceof Date, ue = (e) => e == null;
|
|
2937
2937
|
const vi = (e) => typeof e == "object";
|
|
2938
|
-
var re = (e) => !ue(e) && !Array.isArray(e) && vi(e) && !Qe(e), gi = (e) => re(e) && e.target ? It(e.target) ? e.target.checked : e.target.value : e,
|
|
2938
|
+
var re = (e) => !ue(e) && !Array.isArray(e) && vi(e) && !Qe(e), gi = (e) => re(e) && e.target ? It(e.target) ? e.target.checked : e.target.value : e, po = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, bi = (e, t) => e.has(po(t)), vo = (e) => {
|
|
2939
2939
|
const t = e.constructor && e.constructor.prototype;
|
|
2940
2940
|
return re(t) && t.hasOwnProperty("isPrototypeOf");
|
|
2941
|
-
},
|
|
2941
|
+
}, qr = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
2942
2942
|
function se(e) {
|
|
2943
2943
|
let t;
|
|
2944
2944
|
const r = Array.isArray(e), n = typeof FileList < "u" ? e instanceof FileList : !1;
|
|
2945
2945
|
if (e instanceof Date)
|
|
2946
2946
|
t = new Date(e);
|
|
2947
|
-
else if (!(
|
|
2948
|
-
if (t = r ? [] : {}, !r && !
|
|
2947
|
+
else if (!(qr && (e instanceof Blob || n)) && (r || re(e)))
|
|
2948
|
+
if (t = r ? [] : {}, !r && !vo(e))
|
|
2949
2949
|
t = e;
|
|
2950
2950
|
else
|
|
2951
2951
|
for (const i in e)
|
|
@@ -2954,14 +2954,14 @@ function se(e) {
|
|
|
2954
2954
|
return e;
|
|
2955
2955
|
return t;
|
|
2956
2956
|
}
|
|
2957
|
-
var br = (e) => /^\w*$/.test(e), te = (e) => e === void 0,
|
|
2957
|
+
var br = (e) => /^\w*$/.test(e), te = (e) => e === void 0, Zr = (e) => Array.isArray(e) ? e.filter(Boolean) : [], Xr = (e) => Zr(e.replace(/["|']|\]/g, "").split(/\.|\[/)), L = (e, t, r) => {
|
|
2958
2958
|
if (!t || !re(e))
|
|
2959
2959
|
return r;
|
|
2960
|
-
const n = (br(t) ? [t] :
|
|
2960
|
+
const n = (br(t) ? [t] : Xr(t)).reduce((i, s) => ue(i) ? i : i[s], e);
|
|
2961
2961
|
return te(n) || n === e ? te(e[t]) ? r : e[t] : n;
|
|
2962
2962
|
}, pe = (e) => typeof e == "boolean", Z = (e, t, r) => {
|
|
2963
2963
|
let n = -1;
|
|
2964
|
-
const i = br(t) ? [t] :
|
|
2964
|
+
const i = br(t) ? [t] : Xr(t), s = i.length, o = s - 1;
|
|
2965
2965
|
for (; ++n < s; ) {
|
|
2966
2966
|
const a = i[n];
|
|
2967
2967
|
let l = r;
|
|
@@ -2992,11 +2992,11 @@ const sr = {
|
|
|
2992
2992
|
pattern: "pattern",
|
|
2993
2993
|
required: "required",
|
|
2994
2994
|
validate: "validate"
|
|
2995
|
-
},
|
|
2996
|
-
|
|
2997
|
-
const pt = () => P.useContext(
|
|
2995
|
+
}, Gr = P.createContext(null);
|
|
2996
|
+
Gr.displayName = "HookFormContext";
|
|
2997
|
+
const pt = () => P.useContext(Gr), go = (e) => {
|
|
2998
2998
|
const { children: t, ...r } = e;
|
|
2999
|
-
return P.createElement(
|
|
2999
|
+
return P.createElement(Gr.Provider, { value: r }, t);
|
|
3000
3000
|
};
|
|
3001
3001
|
var yi = (e, t, r, n = !0) => {
|
|
3002
3002
|
const i = {
|
|
@@ -3011,7 +3011,7 @@ var yi = (e, t, r, n = !0) => {
|
|
|
3011
3011
|
});
|
|
3012
3012
|
return i;
|
|
3013
3013
|
};
|
|
3014
|
-
const
|
|
3014
|
+
const Yr = typeof window < "u" ? P.useLayoutEffect : P.useEffect;
|
|
3015
3015
|
function wi(e) {
|
|
3016
3016
|
const t = pt(), { control: r = t.control, disabled: n, name: i, exact: s } = e || {}, [o, a] = P.useState(r._formState), l = P.useRef({
|
|
3017
3017
|
isDirty: !1,
|
|
@@ -3023,7 +3023,7 @@ function wi(e) {
|
|
|
3023
3023
|
isValid: !1,
|
|
3024
3024
|
errors: !1
|
|
3025
3025
|
});
|
|
3026
|
-
return
|
|
3026
|
+
return Yr(() => r._subscribe({
|
|
3027
3027
|
name: i,
|
|
3028
3028
|
formState: l.current,
|
|
3029
3029
|
exact: s,
|
|
@@ -3065,7 +3065,7 @@ function Ni(e) {
|
|
|
3065
3065
|
const t = pt(), { control: r = t.control, name: n, defaultValue: i, disabled: s, exact: o, compute: a } = e || {}, l = P.useRef(i), f = P.useRef(a), u = P.useRef(void 0);
|
|
3066
3066
|
f.current = a;
|
|
3067
3067
|
const d = P.useMemo(() => r._getWatch(n, l.current), [r, n]), [m, v] = P.useState(f.current ? f.current(d) : d);
|
|
3068
|
-
return
|
|
3068
|
+
return Yr(() => r._subscribe({
|
|
3069
3069
|
name: n,
|
|
3070
3070
|
formState: {
|
|
3071
3071
|
values: !0
|
|
@@ -3083,7 +3083,7 @@ function Ni(e) {
|
|
|
3083
3083
|
}
|
|
3084
3084
|
}), [r, s, n, o]), P.useEffect(() => r._removeUnmounted()), m;
|
|
3085
3085
|
}
|
|
3086
|
-
function
|
|
3086
|
+
function bo(e) {
|
|
3087
3087
|
const t = pt(), { name: r, disabled: n, control: i = t.control, shouldUnregister: s, defaultValue: o } = e, a = bi(i._names.array, r), l = P.useMemo(() => L(i._formValues, r, L(i._defaultValues, r, o)), [i, r, o]), f = Ni({
|
|
3088
3088
|
control: i,
|
|
3089
3089
|
name: r,
|
|
@@ -3182,7 +3182,7 @@ var Ci = (e, t, r, n, i) => t ? {
|
|
|
3182
3182
|
...r[e] && r[e].types ? r[e].types : {},
|
|
3183
3183
|
[n]: i || !0
|
|
3184
3184
|
}
|
|
3185
|
-
} : {}, Et = (e) => Array.isArray(e) ? e : [e],
|
|
3185
|
+
} : {}, Et = (e) => Array.isArray(e) ? e : [e], xn = () => {
|
|
3186
3186
|
let e = [];
|
|
3187
3187
|
return {
|
|
3188
3188
|
get observers() {
|
|
@@ -3201,28 +3201,28 @@ var Ci = (e, t, r, n, i) => t ? {
|
|
|
3201
3201
|
e = [];
|
|
3202
3202
|
}
|
|
3203
3203
|
};
|
|
3204
|
-
}, de = (e) => re(e) && !Object.keys(e).length,
|
|
3205
|
-
if (!
|
|
3204
|
+
}, de = (e) => re(e) && !Object.keys(e).length, Kr = (e) => e.type === "file", Ee = (e) => typeof e == "function", ar = (e) => {
|
|
3205
|
+
if (!qr)
|
|
3206
3206
|
return !1;
|
|
3207
3207
|
const t = e ? e.ownerDocument : 0;
|
|
3208
3208
|
return e instanceof (t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement);
|
|
3209
|
-
}, ki = (e) => e.type === "select-multiple",
|
|
3210
|
-
function
|
|
3209
|
+
}, ki = (e) => e.type === "select-multiple", Jr = (e) => e.type === "radio", yo = (e) => Jr(e) || It(e), Cr = (e) => ar(e) && e.isConnected;
|
|
3210
|
+
function wo(e, t) {
|
|
3211
3211
|
const r = t.slice(0, -1).length;
|
|
3212
3212
|
let n = 0;
|
|
3213
3213
|
for (; n < r; )
|
|
3214
3214
|
e = te(e) ? n++ : e[t[n++]];
|
|
3215
3215
|
return e;
|
|
3216
3216
|
}
|
|
3217
|
-
function
|
|
3217
|
+
function xo(e) {
|
|
3218
3218
|
for (const t in e)
|
|
3219
3219
|
if (e.hasOwnProperty(t) && !te(e[t]))
|
|
3220
3220
|
return !1;
|
|
3221
3221
|
return !0;
|
|
3222
3222
|
}
|
|
3223
3223
|
function ne(e, t) {
|
|
3224
|
-
const r = Array.isArray(t) ? t : br(t) ? [t] :
|
|
3225
|
-
return n && delete n[s], i !== 0 && (re(n) && de(n) || Array.isArray(n) &&
|
|
3224
|
+
const r = Array.isArray(t) ? t : br(t) ? [t] : Xr(t), n = r.length === 1 ? e : wo(e, r), i = r.length - 1, s = r[i];
|
|
3225
|
+
return n && delete n[s], i !== 0 && (re(n) && de(n) || Array.isArray(n) && xo(n)) && ne(e, r.slice(0, -1)), e;
|
|
3226
3226
|
}
|
|
3227
3227
|
var Oi = (e) => {
|
|
3228
3228
|
for (const t in e)
|
|
@@ -3245,10 +3245,10 @@ function Ei(e, t, r) {
|
|
|
3245
3245
|
return r;
|
|
3246
3246
|
}
|
|
3247
3247
|
var Nt = (e, t) => Ei(e, t, or(t));
|
|
3248
|
-
const
|
|
3248
|
+
const Nn = {
|
|
3249
3249
|
value: !1,
|
|
3250
3250
|
isValid: !1
|
|
3251
|
-
},
|
|
3251
|
+
}, Cn = { value: !0, isValid: !0 };
|
|
3252
3252
|
var Si = (e) => {
|
|
3253
3253
|
if (Array.isArray(e)) {
|
|
3254
3254
|
if (e.length > 1) {
|
|
@@ -3257,24 +3257,24 @@ var Si = (e) => {
|
|
|
3257
3257
|
}
|
|
3258
3258
|
return e[0].checked && !e[0].disabled ? (
|
|
3259
3259
|
// @ts-expect-error expected to work in the browser
|
|
3260
|
-
e[0].attributes && !te(e[0].attributes.value) ? te(e[0].value) || e[0].value === "" ?
|
|
3261
|
-
) :
|
|
3260
|
+
e[0].attributes && !te(e[0].attributes.value) ? te(e[0].value) || e[0].value === "" ? Cn : { value: e[0].value, isValid: !0 } : Cn
|
|
3261
|
+
) : Nn;
|
|
3262
3262
|
}
|
|
3263
|
-
return
|
|
3263
|
+
return Nn;
|
|
3264
3264
|
}, Ai = (e, { valueAsNumber: t, valueAsDate: r, setValueAs: n }) => te(e) ? e : t ? e === "" ? NaN : e && +e : r && Ve(e) ? new Date(e) : n ? n(e) : e;
|
|
3265
|
-
const
|
|
3265
|
+
const kn = {
|
|
3266
3266
|
isValid: !1,
|
|
3267
3267
|
value: null
|
|
3268
3268
|
};
|
|
3269
3269
|
var Li = (e) => Array.isArray(e) ? e.reduce((t, r) => r && r.checked && !r.disabled ? {
|
|
3270
3270
|
isValid: !0,
|
|
3271
3271
|
value: r.value
|
|
3272
|
-
} : t,
|
|
3273
|
-
function
|
|
3272
|
+
} : t, kn) : kn;
|
|
3273
|
+
function On(e) {
|
|
3274
3274
|
const t = e.ref;
|
|
3275
|
-
return
|
|
3275
|
+
return Kr(t) ? t.files : Jr(t) ? Li(e.refs).value : ki(t) ? [...t.selectedOptions].map(({ value: r }) => r) : It(t) ? Si(e.refs).value : Ai(te(t.value) ? e.ref.value : t.value, e);
|
|
3276
3276
|
}
|
|
3277
|
-
var
|
|
3277
|
+
var No = (e, t, r, n) => {
|
|
3278
3278
|
const i = {};
|
|
3279
3279
|
for (const s of e) {
|
|
3280
3280
|
const o = L(t, s);
|
|
@@ -3286,15 +3286,15 @@ var xo = (e, t, r, n) => {
|
|
|
3286
3286
|
fields: i,
|
|
3287
3287
|
shouldUseNativeValidation: n
|
|
3288
3288
|
};
|
|
3289
|
-
}, lr = (e) => e instanceof RegExp, Ct = (e) => te(e) ? e : lr(e) ? e.source : re(e) ? lr(e.value) ? e.value.source : e.value : e,
|
|
3289
|
+
}, lr = (e) => e instanceof RegExp, Ct = (e) => te(e) ? e : lr(e) ? e.source : re(e) ? lr(e.value) ? e.value.source : e.value : e, En = (e) => ({
|
|
3290
3290
|
isOnSubmit: !e || e === Oe.onSubmit,
|
|
3291
3291
|
isOnBlur: e === Oe.onBlur,
|
|
3292
3292
|
isOnChange: e === Oe.onChange,
|
|
3293
3293
|
isOnAll: e === Oe.all,
|
|
3294
3294
|
isOnTouch: e === Oe.onTouched
|
|
3295
3295
|
});
|
|
3296
|
-
const
|
|
3297
|
-
var
|
|
3296
|
+
const Sn = "AsyncFunction";
|
|
3297
|
+
var Co = (e) => !!e && !!e.validate && !!(Ee(e.validate) && e.validate.constructor.name === Sn || re(e.validate) && Object.values(e.validate).find((t) => t.constructor.name === Sn)), ko = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), An = (e, t, r) => !r && (t.watchAll || t.watch.has(e) || [...t.watch].some((n) => e.startsWith(n) && /^\.\w+/.test(e.slice(n.length))));
|
|
3298
3298
|
const St = (e, t, r, n) => {
|
|
3299
3299
|
for (const i of r || Object.keys(e)) {
|
|
3300
3300
|
const s = L(e, i);
|
|
@@ -3312,7 +3312,7 @@ const St = (e, t, r, n) => {
|
|
|
3312
3312
|
}
|
|
3313
3313
|
}
|
|
3314
3314
|
};
|
|
3315
|
-
function
|
|
3315
|
+
function Ln(e, t, r) {
|
|
3316
3316
|
const n = L(e, r);
|
|
3317
3317
|
if (n || br(r))
|
|
3318
3318
|
return {
|
|
@@ -3340,15 +3340,15 @@ function An(e, t, r) {
|
|
|
3340
3340
|
name: r
|
|
3341
3341
|
};
|
|
3342
3342
|
}
|
|
3343
|
-
var
|
|
3343
|
+
var Oo = (e, t, r, n) => {
|
|
3344
3344
|
r(e);
|
|
3345
3345
|
const { name: i, ...s } = e;
|
|
3346
3346
|
return de(s) || Object.keys(s).length >= Object.keys(t).length || Object.keys(s).find((o) => t[o] === (!n || Oe.all));
|
|
3347
|
-
},
|
|
3347
|
+
}, Eo = (e, t, r) => !e || !t || e === t || Et(e).some((n) => n && (r ? n === t : n.startsWith(t) || t.startsWith(n))), So = (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, Ao = (e, t) => !Zr(L(e, t)).length && ne(e, t), Lo = (e, t, r) => {
|
|
3348
3348
|
const n = Et(L(e, r));
|
|
3349
3349
|
return Z(n, "root", t[r]), Z(e, r, n), e;
|
|
3350
3350
|
}, Jt = (e) => Ve(e);
|
|
3351
|
-
function
|
|
3351
|
+
function Vn(e, t, r = "validate") {
|
|
3352
3352
|
if (Jt(e) || Array.isArray(e) && e.every(Jt) || pe(e) && !e)
|
|
3353
3353
|
return {
|
|
3354
3354
|
type: r,
|
|
@@ -3359,13 +3359,13 @@ function Ln(e, t, r = "validate") {
|
|
|
3359
3359
|
var lt = (e) => re(e) && !lr(e) ? e : {
|
|
3360
3360
|
value: e,
|
|
3361
3361
|
message: ""
|
|
3362
|
-
},
|
|
3362
|
+
}, Fn = async (e, t, r, n, i, s) => {
|
|
3363
3363
|
const { ref: o, refs: a, required: l, maxLength: f, minLength: u, min: d, max: m, pattern: v, validate: N, name: g, valueAsNumber: w, mount: M } = e._f, x = L(r, g);
|
|
3364
3364
|
if (!M || t.has(g))
|
|
3365
3365
|
return {};
|
|
3366
3366
|
const F = a ? a[0] : o, k = (T) => {
|
|
3367
3367
|
i && F.reportValidity && (F.setCustomValidity(pe(T) ? "" : T || ""), F.reportValidity());
|
|
3368
|
-
}, E = {}, A =
|
|
3368
|
+
}, E = {}, A = Jr(o), _ = It(o), $ = A || _, I = (w || Kr(o)) && te(o.value) && te(x) || ar(o) && o.value === "" || x === "" || Array.isArray(x) && !x.length, H = Ci.bind(null, g, n, E), V = (T, j, z, J = Be.maxLength, X = Be.minLength) => {
|
|
3369
3369
|
const Q = T ? j : z;
|
|
3370
3370
|
E[g] = {
|
|
3371
3371
|
type: T ? J : X,
|
|
@@ -3414,7 +3414,7 @@ var lt = (e) => re(e) && !lr(e) ? e : {
|
|
|
3414
3414
|
}
|
|
3415
3415
|
if (N) {
|
|
3416
3416
|
if (Ee(N)) {
|
|
3417
|
-
const T = await N(x, r), j =
|
|
3417
|
+
const T = await N(x, r), j = Vn(T, F);
|
|
3418
3418
|
if (j && (E[g] = {
|
|
3419
3419
|
...j,
|
|
3420
3420
|
...H(Be.validate, j.message)
|
|
@@ -3425,7 +3425,7 @@ var lt = (e) => re(e) && !lr(e) ? e : {
|
|
|
3425
3425
|
for (const j in N) {
|
|
3426
3426
|
if (!de(T) && !n)
|
|
3427
3427
|
break;
|
|
3428
|
-
const z =
|
|
3428
|
+
const z = Vn(await N[j](x, r), F, j);
|
|
3429
3429
|
z && (T = {
|
|
3430
3430
|
...z,
|
|
3431
3431
|
...H(j, z.message)
|
|
@@ -3440,14 +3440,14 @@ var lt = (e) => re(e) && !lr(e) ? e : {
|
|
|
3440
3440
|
}
|
|
3441
3441
|
return k(!0), E;
|
|
3442
3442
|
};
|
|
3443
|
-
const
|
|
3443
|
+
const Vo = {
|
|
3444
3444
|
mode: Oe.onSubmit,
|
|
3445
3445
|
reValidateMode: Oe.onChange,
|
|
3446
3446
|
shouldFocusError: !0
|
|
3447
3447
|
};
|
|
3448
|
-
function
|
|
3448
|
+
function Fo(e = {}) {
|
|
3449
3449
|
let t = {
|
|
3450
|
-
...
|
|
3450
|
+
...Vo,
|
|
3451
3451
|
...e
|
|
3452
3452
|
}, r = {
|
|
3453
3453
|
submitCount: 0,
|
|
@@ -3488,8 +3488,8 @@ function Vo(e = {}) {
|
|
|
3488
3488
|
...u
|
|
3489
3489
|
};
|
|
3490
3490
|
const m = {
|
|
3491
|
-
array:
|
|
3492
|
-
state:
|
|
3491
|
+
array: xn(),
|
|
3492
|
+
state: xn()
|
|
3493
3493
|
}, v = t.criteriaMode === Oe.all, N = (h) => (p) => {
|
|
3494
3494
|
clearTimeout(f), f = setTimeout(h, p);
|
|
3495
3495
|
}, g = async (h) => {
|
|
@@ -3514,7 +3514,7 @@ function Vo(e = {}) {
|
|
|
3514
3514
|
}
|
|
3515
3515
|
if (C && Array.isArray(L(r.errors, h))) {
|
|
3516
3516
|
const B = b(L(r.errors, h), D.argA, D.argB);
|
|
3517
|
-
S && Z(r.errors, h, B),
|
|
3517
|
+
S && Z(r.errors, h, B), Ao(r.errors, h);
|
|
3518
3518
|
}
|
|
3519
3519
|
if ((u.touchedFields || d.touchedFields) && C && Array.isArray(L(r.touchedFields, h))) {
|
|
3520
3520
|
const B = b(L(r.touchedFields, h), D.argA, D.argB);
|
|
@@ -3542,7 +3542,7 @@ function Vo(e = {}) {
|
|
|
3542
3542
|
const S = L(n, h);
|
|
3543
3543
|
if (S) {
|
|
3544
3544
|
const C = L(s, h, te(b) ? L(i, h) : b);
|
|
3545
|
-
te(C) || D && D.defaultChecked || p ? Z(s, h, p ? C :
|
|
3545
|
+
te(C) || D && D.defaultChecked || p ? Z(s, h, p ? C : On(S._f)) : z(h, C), o.mount && g();
|
|
3546
3546
|
}
|
|
3547
3547
|
}, E = (h, p, b, D, S) => {
|
|
3548
3548
|
let C = !1, B = !1;
|
|
@@ -3578,7 +3578,7 @@ function Vo(e = {}) {
|
|
|
3578
3578
|
}
|
|
3579
3579
|
}, _ = async (h) => {
|
|
3580
3580
|
w(h, !0);
|
|
3581
|
-
const p = await t.resolver(s, t.context,
|
|
3581
|
+
const p = await t.resolver(s, t.context, No(h || a.mount, n, t.criteriaMode, t.shouldUseNativeValidation));
|
|
3582
3582
|
return w(h), p;
|
|
3583
3583
|
}, $ = async (h) => {
|
|
3584
3584
|
const { errors: p } = await _(h);
|
|
@@ -3598,12 +3598,12 @@ function Vo(e = {}) {
|
|
|
3598
3598
|
if (S) {
|
|
3599
3599
|
const { _f: C, ...B } = S;
|
|
3600
3600
|
if (C) {
|
|
3601
|
-
const U = a.array.has(C.name), q = S._f &&
|
|
3601
|
+
const U = a.array.has(C.name), q = S._f && Co(S._f);
|
|
3602
3602
|
q && u.validatingFields && w([D], !0);
|
|
3603
|
-
const be = await
|
|
3603
|
+
const be = await Fn(S, a.disabled, s, v, t.shouldUseNativeValidation && !p, U);
|
|
3604
3604
|
if (q && u.validatingFields && w([D]), be[C.name] && (b.valid = !1, p))
|
|
3605
3605
|
break;
|
|
3606
|
-
!p && (L(be, C.name) ? U ?
|
|
3606
|
+
!p && (L(be, C.name) ? U ? Lo(r.errors, be, C.name) : Z(r.errors, C.name, be[C.name]) : ne(r.errors, C.name));
|
|
3607
3607
|
}
|
|
3608
3608
|
!de(B) && await I(B, p, b);
|
|
3609
3609
|
}
|
|
@@ -3617,14 +3617,14 @@ function Vo(e = {}) {
|
|
|
3617
3617
|
a.unMount = /* @__PURE__ */ new Set();
|
|
3618
3618
|
}, V = (h, p) => !t.disabled && (h && p && Z(s, h, p), !Pe(Re(), i)), T = (h, p, b) => xi(h, a, {
|
|
3619
3619
|
...o.mount ? s : te(p) ? i : Ve(h) ? { [h]: p } : p
|
|
3620
|
-
}, b, p), j = (h) =>
|
|
3620
|
+
}, b, p), j = (h) => Zr(L(o.mount ? s : i, h, t.shouldUnregister ? L(i, h, []) : [])), z = (h, p, b = {}) => {
|
|
3621
3621
|
const D = L(n, h);
|
|
3622
3622
|
let S = p;
|
|
3623
3623
|
if (D) {
|
|
3624
3624
|
const C = D._f;
|
|
3625
3625
|
C && (!C.disabled && Z(s, h, Ai(p, C)), S = ar(C.ref) && ue(p) ? "" : p, ki(C.ref) ? [...C.ref.options].forEach((B) => B.selected = S.includes(B.value)) : C.refs ? It(C.ref) ? C.refs.forEach((B) => {
|
|
3626
3626
|
(!B.defaultChecked || !B.disabled) && (Array.isArray(S) ? B.checked = !!S.find((U) => U === B.value) : B.checked = S === B.value || !!S);
|
|
3627
|
-
}) : C.refs.forEach((B) => B.checked = B.value === S) :
|
|
3627
|
+
}) : C.refs.forEach((B) => B.checked = B.value === S) : Kr(C.ref) ? C.ref.value = "" : (C.ref.value = S, C.ref.type || m.state.next({
|
|
3628
3628
|
name: h,
|
|
3629
3629
|
values: se(s)
|
|
3630
3630
|
})));
|
|
@@ -3646,7 +3646,7 @@ function Vo(e = {}) {
|
|
|
3646
3646
|
name: h,
|
|
3647
3647
|
dirtyFields: Nt(i, s),
|
|
3648
3648
|
isDirty: V(h, C)
|
|
3649
|
-
})) : D && !D._f && !ue(C) ? J(h, C, b) : z(h, C, b),
|
|
3649
|
+
})) : D && !D._f && !ue(C) ? J(h, C, b) : z(h, C, b), An(h, a) && m.state.next({ ...r, name: h }), m.state.next({
|
|
3650
3650
|
name: o.mount ? h : void 0,
|
|
3651
3651
|
values: se(s)
|
|
3652
3652
|
});
|
|
@@ -3656,10 +3656,10 @@ function Vo(e = {}) {
|
|
|
3656
3656
|
let b = p.name, D = !0;
|
|
3657
3657
|
const S = L(n, b), C = (q) => {
|
|
3658
3658
|
D = Number.isNaN(q) || Qe(q) && isNaN(q.getTime()) || Pe(q, L(s, b, q));
|
|
3659
|
-
}, B =
|
|
3659
|
+
}, B = En(t.mode), U = En(t.reValidateMode);
|
|
3660
3660
|
if (S) {
|
|
3661
3661
|
let q, be;
|
|
3662
|
-
const Zt = p.type ?
|
|
3662
|
+
const Zt = p.type ? On(S._f) : gi(h), We = h.type === sr.BLUR || h.type === sr.FOCUS_OUT, $i = !ko(S._f) && !t.resolver && !L(r.errors, b) && !S._f.deps || So(We, L(r.touchedFields, b), r.isSubmitted, U, B), wr = An(b, a, We);
|
|
3663
3663
|
Z(s, b, Zt), We ? (S._f.onBlur && S._f.onBlur(h), l && l(0)) : S._f.onChange && S._f.onChange(h);
|
|
3664
3664
|
const xr = E(b, Zt, We), Hi = !de(xr) || wr;
|
|
3665
3665
|
if (!We && m.state.next({
|
|
@@ -3669,13 +3669,13 @@ function Vo(e = {}) {
|
|
|
3669
3669
|
}), $i)
|
|
3670
3670
|
return (u.isValid || d.isValid) && (t.mode === "onBlur" ? We && g() : We || g()), Hi && m.state.next({ name: b, ...wr ? {} : xr });
|
|
3671
3671
|
if (!We && wr && m.state.next({ ...r }), t.resolver) {
|
|
3672
|
-
const { errors:
|
|
3672
|
+
const { errors: nn } = await _([b]);
|
|
3673
3673
|
if (C(Zt), D) {
|
|
3674
|
-
const Wi =
|
|
3675
|
-
q =
|
|
3674
|
+
const Wi = Ln(r.errors, n, b), sn = Ln(nn, n, Wi.name || b);
|
|
3675
|
+
q = sn.error, b = sn.name, be = de(nn);
|
|
3676
3676
|
}
|
|
3677
3677
|
} else
|
|
3678
|
-
w([b], !0), q = (await
|
|
3678
|
+
w([b], !0), q = (await Fn(S, a.disabled, s, v, t.shouldUseNativeValidation))[b], w([b]), C(Zt), D && (q ? be = !1 : (u.isValid || d.isValid) && (be = await I(n, !0)));
|
|
3679
3679
|
D && (S._f.deps && fe(S._f.deps), A(b, be, q, xr));
|
|
3680
3680
|
}
|
|
3681
3681
|
}, Ae = (h, p) => {
|
|
@@ -3726,7 +3726,7 @@ function Vo(e = {}) {
|
|
|
3726
3726
|
next: (b) => "values" in b && h(T(void 0, p), b)
|
|
3727
3727
|
}) : T(h, p, !0), ke = (h) => m.state.subscribe({
|
|
3728
3728
|
next: (p) => {
|
|
3729
|
-
|
|
3729
|
+
Eo(h.name, p.name, h.exact) && Oo(p, h.formState || u, zt, h.reRenderRoot) && h.callback({
|
|
3730
3730
|
values: { ...s },
|
|
3731
3731
|
...r,
|
|
3732
3732
|
...p,
|
|
@@ -3780,7 +3780,7 @@ function Vo(e = {}) {
|
|
|
3780
3780
|
ref: (S) => {
|
|
3781
3781
|
if (S) {
|
|
3782
3782
|
Ye(h, p), b = L(n, h);
|
|
3783
|
-
const C = te(S.value) && S.querySelectorAll && S.querySelectorAll("input,select,textarea")[0] || S, B =
|
|
3783
|
+
const C = te(S.value) && S.querySelectorAll && S.querySelectorAll("input,select,textarea")[0] || S, B = yo(C), U = b._f.refs || [];
|
|
3784
3784
|
if (B ? U.find((q) => q === C) : C === b._f.ref)
|
|
3785
3785
|
return;
|
|
3786
3786
|
Z(n, h, {
|
|
@@ -3853,7 +3853,7 @@ function Vo(e = {}) {
|
|
|
3853
3853
|
for (const U of Array.from(B))
|
|
3854
3854
|
L(r.dirtyFields, U) ? Z(C, U, L(s, U)) : X(U, L(C, U));
|
|
3855
3855
|
} else {
|
|
3856
|
-
if (
|
|
3856
|
+
if (qr && te(h))
|
|
3857
3857
|
for (const B of a.mount) {
|
|
3858
3858
|
const U = L(n, B);
|
|
3859
3859
|
if (U && U._f) {
|
|
@@ -3989,7 +3989,7 @@ function Vo(e = {}) {
|
|
|
3989
3989
|
formControl: qt
|
|
3990
3990
|
};
|
|
3991
3991
|
}
|
|
3992
|
-
function
|
|
3992
|
+
function Do(e = {}) {
|
|
3993
3993
|
const t = P.useRef(void 0), r = P.useRef(void 0), [n, i] = P.useState({
|
|
3994
3994
|
isDirty: !1,
|
|
3995
3995
|
isValidating: !1,
|
|
@@ -4014,14 +4014,14 @@ function Fo(e = {}) {
|
|
|
4014
4014
|
formState: n
|
|
4015
4015
|
}, e.defaultValues && !Ee(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
|
|
4016
4016
|
else {
|
|
4017
|
-
const { formControl: o, ...a } =
|
|
4017
|
+
const { formControl: o, ...a } = Fo(e);
|
|
4018
4018
|
t.current = {
|
|
4019
4019
|
...a,
|
|
4020
4020
|
formState: n
|
|
4021
4021
|
};
|
|
4022
4022
|
}
|
|
4023
4023
|
const s = t.current.control;
|
|
4024
|
-
return s._options = e,
|
|
4024
|
+
return s._options = e, Yr(() => {
|
|
4025
4025
|
const o = s._subscribe({
|
|
4026
4026
|
formState: s._proxyFormState,
|
|
4027
4027
|
callback: () => i({ ...s._formState }),
|
|
@@ -4055,7 +4055,7 @@ function Fo(e = {}) {
|
|
|
4055
4055
|
s._state.mount || (s._setValid(), s._state.mount = !0), s._state.watch && (s._state.watch = !1, s._subjects.state.next({ ...s._formState })), s._removeUnmounted();
|
|
4056
4056
|
}), t.current.formState = yi(n, s), t.current;
|
|
4057
4057
|
}
|
|
4058
|
-
const
|
|
4058
|
+
const Dn = (e, t, r) => {
|
|
4059
4059
|
if (e && "reportValidity" in e) {
|
|
4060
4060
|
const n = L(r, t);
|
|
4061
4061
|
e.setCustomValidity(n && n.message || ""), e.reportValidity();
|
|
@@ -4063,21 +4063,21 @@ const Fn = (e, t, r) => {
|
|
|
4063
4063
|
}, Vi = (e, t) => {
|
|
4064
4064
|
for (const r in t.fields) {
|
|
4065
4065
|
const n = t.fields[r];
|
|
4066
|
-
n && n.ref && "reportValidity" in n.ref ?
|
|
4066
|
+
n && n.ref && "reportValidity" in n.ref ? Dn(n.ref, r, e) : n.refs && n.refs.forEach((i) => Dn(i, r, e));
|
|
4067
4067
|
}
|
|
4068
|
-
},
|
|
4068
|
+
}, _o = (e, t) => {
|
|
4069
4069
|
t.shouldUseNativeValidation && Vi(e, t);
|
|
4070
4070
|
const r = {};
|
|
4071
4071
|
for (const n in e) {
|
|
4072
4072
|
const i = L(t.fields, n), s = Object.assign(e[n] || {}, { ref: i && i.ref });
|
|
4073
|
-
if (
|
|
4073
|
+
if (Mo(t.names || Object.keys(e), n)) {
|
|
4074
4074
|
const o = Object.assign({}, L(r, n));
|
|
4075
4075
|
Z(o, "root", s), Z(r, n, o);
|
|
4076
4076
|
} else Z(r, n, s);
|
|
4077
4077
|
}
|
|
4078
4078
|
return r;
|
|
4079
|
-
},
|
|
4080
|
-
function
|
|
4079
|
+
}, Mo = (e, t) => e.some((r) => r.startsWith(t + "."));
|
|
4080
|
+
function To(e, t, r) {
|
|
4081
4081
|
return t === void 0 && (t = {}), r === void 0 && (r = {}), function(n, i, s) {
|
|
4082
4082
|
try {
|
|
4083
4083
|
return Promise.resolve(function(o, a) {
|
|
@@ -4091,7 +4091,7 @@ function Mo(e, t, r) {
|
|
|
4091
4091
|
return l && l.then ? l.then(void 0, a) : l;
|
|
4092
4092
|
}(0, function(o) {
|
|
4093
4093
|
if (!o.inner) throw o;
|
|
4094
|
-
return { values: {}, errors:
|
|
4094
|
+
return { values: {}, errors: _o((a = o, l = !s.shouldUseNativeValidation && s.criteriaMode === "all", (a.inner || []).reduce(function(f, u) {
|
|
4095
4095
|
if (f[u.path] || (f[u.path] = { message: u.message, type: u.type }), l) {
|
|
4096
4096
|
var d = f[u.path].types, m = d && d[u.type];
|
|
4097
4097
|
f[u.path] = Ci(u.path, l, f, u.type, m ? [].concat(m, u.message) : u.message);
|
|
@@ -4117,17 +4117,17 @@ function Tl({
|
|
|
4117
4117
|
onSubmit: l = () => null,
|
|
4118
4118
|
onChange: f
|
|
4119
4119
|
}) {
|
|
4120
|
-
const u =
|
|
4120
|
+
const u = Do({
|
|
4121
4121
|
mode: n,
|
|
4122
4122
|
reValidateMode: i,
|
|
4123
4123
|
defaultValues: s,
|
|
4124
|
-
resolver: o ?
|
|
4124
|
+
resolver: o ? To(o) : void 0
|
|
4125
4125
|
});
|
|
4126
4126
|
return le(() => {
|
|
4127
4127
|
if (!f) return;
|
|
4128
4128
|
const { unsubscribe: d } = u.watch(f);
|
|
4129
4129
|
return d;
|
|
4130
|
-
}, [f, u.watch]), /* @__PURE__ */ c(
|
|
4130
|
+
}, [f, u.watch]), /* @__PURE__ */ c(go, { ...u, children: /* @__PURE__ */ c(
|
|
4131
4131
|
"form",
|
|
4132
4132
|
{
|
|
4133
4133
|
className: O("bbn-form", e),
|
|
@@ -4146,7 +4146,7 @@ function vt({
|
|
|
4146
4146
|
shouldUnregister: i = !1,
|
|
4147
4147
|
validateOnMount: s = !0
|
|
4148
4148
|
}) {
|
|
4149
|
-
const { setFocus: o, trigger: a } = pt(), { field: l, fieldState: f } =
|
|
4149
|
+
const { setFocus: o, trigger: a } = pt(), { field: l, fieldState: f } = bo({ name: e, defaultValue: t, disabled: r, shouldUnregister: i }), { invalid: u, isTouched: d, error: m } = f;
|
|
4150
4150
|
return le(() => {
|
|
4151
4151
|
s ? a(e, { shouldFocus: n }) : n && o(e);
|
|
4152
4152
|
}, [e, s]), {
|
|
@@ -4160,7 +4160,7 @@ function Rl(e) {
|
|
|
4160
4160
|
const { getFieldState: t } = pt(), r = wi({ name: e });
|
|
4161
4161
|
return Array.isArray(e) ? e.map((i) => t(i, r)) : t(e, r);
|
|
4162
4162
|
}
|
|
4163
|
-
const
|
|
4163
|
+
const Ro = /^-?\d*\.?\d*$/;
|
|
4164
4164
|
function Bl({
|
|
4165
4165
|
name: e,
|
|
4166
4166
|
id: t = e,
|
|
@@ -4205,7 +4205,7 @@ function Bl({
|
|
|
4205
4205
|
prefix: m,
|
|
4206
4206
|
state: A,
|
|
4207
4207
|
onChange: (I) => {
|
|
4208
|
-
|
|
4208
|
+
Ro.test(I.target.value) && k(I.target.value);
|
|
4209
4209
|
},
|
|
4210
4210
|
onBlur: E
|
|
4211
4211
|
}
|
|
@@ -4353,7 +4353,7 @@ function $l({
|
|
|
4353
4353
|
onBlur: H
|
|
4354
4354
|
} = vt({ name: s, defaultValue: v, autoFocus: m, shouldUnregister: g, validateOnMount: M }), V = $ ? "error" : w;
|
|
4355
4355
|
return /* @__PURE__ */ c(mr, { label: a, className: u, state: V, hint: $ ? _ : l, children: /* @__PURE__ */ c(
|
|
4356
|
-
|
|
4356
|
+
ti,
|
|
4357
4357
|
{
|
|
4358
4358
|
open: e,
|
|
4359
4359
|
defaultOpen: t,
|
|
@@ -4378,11 +4378,11 @@ function $l({
|
|
|
4378
4378
|
}
|
|
4379
4379
|
) });
|
|
4380
4380
|
}
|
|
4381
|
-
function
|
|
4381
|
+
function Bo({ displayError: e = !1, ...t }) {
|
|
4382
4382
|
const { error: r, value: n, onChange: i, onBlur: s, disabled: o, name: a, ref: l } = vt(t), f = /* @__PURE__ */ c("input", { ref: l, type: "hidden", name: a, disabled: o, value: n, onChange: i, onBlur: s });
|
|
4383
4383
|
return e ? /* @__PURE__ */ c(mr, { hint: e ? r : "", state: e ? "error" : "default", children: f }) : f;
|
|
4384
4384
|
}
|
|
4385
|
-
const
|
|
4385
|
+
const Po = {
|
|
4386
4386
|
lg: {
|
|
4387
4387
|
logo: "size-10",
|
|
4388
4388
|
subLogo: "text-[0.8rem]"
|
|
@@ -4395,8 +4395,8 @@ const Bo = {
|
|
|
4395
4395
|
logo: "size-5",
|
|
4396
4396
|
subLogo: "text-[0.4rem]"
|
|
4397
4397
|
}
|
|
4398
|
-
},
|
|
4399
|
-
const [s, o] = ee(!1), a =
|
|
4398
|
+
}, Io = ({ logoUrl: e, rank: t, moniker: r, size: n = "md", className: i }) => {
|
|
4399
|
+
const [s, o] = ee(!1), a = Po[n], l = (r == null ? void 0 : r.charAt(0).toUpperCase()) ?? String(t);
|
|
4400
4400
|
return /* @__PURE__ */ c("span", { className: ce("relative inline-block", a.logo, i), children: e && !s ? /* @__PURE__ */ c(
|
|
4401
4401
|
"img",
|
|
4402
4402
|
{
|
|
@@ -4429,14 +4429,17 @@ function Fi({ bsnId: e, bsnName: t, bsnLogoUrl: r, address: n, provider: i, onRe
|
|
|
4429
4429
|
children: m
|
|
4430
4430
|
}
|
|
4431
4431
|
) });
|
|
4432
|
-
}, l = (m) => !m || m.length <= 12 ? m : `${m.slice(0, 6)}...${m.slice(-6)}`, f = () => o ? n ? /* @__PURE__ */
|
|
4432
|
+
}, l = (m) => !m || m.length <= 12 ? m : `${m.slice(0, 6)}...${m.slice(-6)}`, f = () => o ? n ? /* @__PURE__ */ y("div", { className: "flex items-center gap-1 text-xs text-accent-secondary", children: [
|
|
4433
|
+
l(n),
|
|
4434
|
+
/* @__PURE__ */ c(mo, { value: n, className: "cursor-pointer", copiedText: "✓", children: /* @__PURE__ */ c(Wr, { size: 12 }) })
|
|
4435
|
+
] }) : /* @__PURE__ */ y("div", { className: "flex items-center text-xs text-accent-secondary", children: [
|
|
4433
4436
|
a(),
|
|
4434
4437
|
t
|
|
4435
4438
|
] }) : null;
|
|
4436
4439
|
return /* @__PURE__ */ y("div", { className: "flex flex-row items-center justify-between", children: [
|
|
4437
4440
|
/* @__PURE__ */ y("div", { className: "flex h-10 flex-row gap-2", children: [
|
|
4438
4441
|
/* @__PURE__ */ c("div", { className: "shrink-0", children: /* @__PURE__ */ c(
|
|
4439
|
-
|
|
4442
|
+
Io,
|
|
4440
4443
|
{
|
|
4441
4444
|
logoUrl: i.logo_url,
|
|
4442
4445
|
rank: i.rank,
|
|
@@ -4489,11 +4492,11 @@ const Hl = ({
|
|
|
4489
4492
|
children: r ? "Selected" : "Select"
|
|
4490
4493
|
}
|
|
4491
4494
|
)
|
|
4492
|
-
] }),
|
|
4493
|
-
function
|
|
4495
|
+
] }), Qr = 8, jo = 5, yr = 640, Di = 500;
|
|
4496
|
+
function $o(e) {
|
|
4494
4497
|
return st({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z" }, child: [] }] })(e);
|
|
4495
4498
|
}
|
|
4496
|
-
function
|
|
4499
|
+
function Ho({ className: e, ...t }) {
|
|
4497
4500
|
const n = Pt(yr) ? Rt : pr;
|
|
4498
4501
|
return /* @__PURE__ */ c(n, { ...t, className: ce("w-[41.25rem] max-w-full", e) });
|
|
4499
4502
|
}
|
|
@@ -4513,12 +4516,12 @@ const Wl = ({
|
|
|
4513
4516
|
l("");
|
|
4514
4517
|
},
|
|
4515
4518
|
className: "opacity-60 hover:opacity-100 transition-opacity",
|
|
4516
|
-
children: /* @__PURE__ */ c(
|
|
4519
|
+
children: /* @__PURE__ */ c($o, { size: 18, className: "text-secondary-strokeDark" })
|
|
4517
4520
|
}
|
|
4518
4521
|
) : /* @__PURE__ */ c("span", { className: "text-secondary-strokeDark", children: /* @__PURE__ */ c(os, { size: 20 }) }), d = _e(() => a.trim() ? t.filter(
|
|
4519
4522
|
(m) => m.name.toLowerCase().includes(a.toLowerCase())
|
|
4520
4523
|
) : t, [t, a]);
|
|
4521
|
-
return /* @__PURE__ */ y(
|
|
4524
|
+
return /* @__PURE__ */ y(Ho, { open: e, onClose: n, children: [
|
|
4522
4525
|
/* @__PURE__ */ c(vr, { title: s, onClose: n, className: "text-accent-primary" }),
|
|
4523
4526
|
/* @__PURE__ */ y(
|
|
4524
4527
|
gr,
|
|
@@ -4554,7 +4557,7 @@ const Wl = ({
|
|
|
4554
4557
|
)
|
|
4555
4558
|
] });
|
|
4556
4559
|
};
|
|
4557
|
-
var gt = 1e9,
|
|
4560
|
+
var gt = 1e9, Wo = {
|
|
4558
4561
|
// These values must be integers within the stated ranges (inclusive).
|
|
4559
4562
|
// Most of these values can be changed during run-time using `Decimal.config`.
|
|
4560
4563
|
// The maximum number of significant digits of the result of a calculation or base conversion.
|
|
@@ -4590,7 +4593,7 @@ var gt = 1e9, Ho = {
|
|
|
4590
4593
|
// The natural logarithm of 10.
|
|
4591
4594
|
// 115 digits
|
|
4592
4595
|
LN10: "2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"
|
|
4593
|
-
},
|
|
4596
|
+
}, tn, K = !0, Ce = "[DecimalError] ", tt = Ce + "Invalid argument: ", en = Ce + "Exponent out of range: ", bt = Math.floor, Ke = Math.pow, Uo = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, ve, ae = 1e7, Y = 7, _i = 9007199254740991, cr = bt(_i / Y), R = {};
|
|
4594
4597
|
R.absoluteValue = R.abs = function() {
|
|
4595
4598
|
var e = new this.constructor(this);
|
|
4596
4599
|
return e.s && (e.s = 1), e;
|
|
@@ -4746,8 +4749,8 @@ R.toPower = R.pow = function(e) {
|
|
|
4746
4749
|
if (n = l.precision, e.eq(ve)) return G(a, n);
|
|
4747
4750
|
if (t = e.e, r = e.d.length - 1, o = t >= r, s = a.s, o) {
|
|
4748
4751
|
if ((r = u < 0 ? -u : u) <= _i) {
|
|
4749
|
-
for (i = new l(ve), t = Math.ceil(n / Y + 4), K = !1; r % 2 && (i = i.times(a),
|
|
4750
|
-
a = a.times(a),
|
|
4752
|
+
for (i = new l(ve), t = Math.ceil(n / Y + 4), K = !1; r % 2 && (i = i.times(a), Mn(i.d, t)), r = bt(r / 2), r !== 0; )
|
|
4753
|
+
a = a.times(a), Mn(a.d, t);
|
|
4751
4754
|
return K = !0, e.s < 0 ? new l(ve).div(i) : G(i, n);
|
|
4752
4755
|
}
|
|
4753
4756
|
} else if (s < 0) throw Error(Ce + "NaN");
|
|
@@ -4838,7 +4841,7 @@ var Ie = /* @__PURE__ */ function() {
|
|
|
4838
4841
|
}();
|
|
4839
4842
|
function Ti(e, t) {
|
|
4840
4843
|
var r, n, i, s, o, a, l = 0, f = 0, u = e.constructor, d = u.precision;
|
|
4841
|
-
if (ie(e) > 16) throw Error(
|
|
4844
|
+
if (ie(e) > 16) throw Error(en + ie(e));
|
|
4842
4845
|
if (!e.s) return new u(ve);
|
|
4843
4846
|
for (K = !1, a = d, o = new u(0.03125); e.abs().gte(0.1); )
|
|
4844
4847
|
e = e.times(o), f += 5;
|
|
@@ -4881,7 +4884,7 @@ function Vt(e, t) {
|
|
|
4881
4884
|
a = l, i += 2;
|
|
4882
4885
|
}
|
|
4883
4886
|
}
|
|
4884
|
-
function
|
|
4887
|
+
function _n(e, t) {
|
|
4885
4888
|
var r, n, i;
|
|
4886
4889
|
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;
|
|
4887
4890
|
for (i = t.length; t.charCodeAt(i - 1) === 48; ) --i;
|
|
@@ -4892,7 +4895,7 @@ function Dn(e, t) {
|
|
|
4892
4895
|
} else
|
|
4893
4896
|
n -= i;
|
|
4894
4897
|
for (; n--; ) t += "0";
|
|
4895
|
-
if (e.d.push(+t), K && (e.e > cr || e.e < -cr)) throw Error(
|
|
4898
|
+
if (e.d.push(+t), K && (e.e > cr || e.e < -cr)) throw Error(en + r);
|
|
4896
4899
|
} else
|
|
4897
4900
|
e.s = 0, e.e = 0, e.d = [0];
|
|
4898
4901
|
return e;
|
|
@@ -4921,7 +4924,7 @@ function G(e, t, r) {
|
|
|
4921
4924
|
}
|
|
4922
4925
|
for (n = d.length; d[--n] === 0; ) d.pop();
|
|
4923
4926
|
if (K && (e.e > cr || e.e < -cr))
|
|
4924
|
-
throw Error(
|
|
4927
|
+
throw Error(en + ie(e));
|
|
4925
4928
|
return e;
|
|
4926
4929
|
}
|
|
4927
4930
|
function Ri(e, t) {
|
|
@@ -4955,7 +4958,7 @@ function nt(e, t, r) {
|
|
|
4955
4958
|
var n, i = ie(e), s = Fe(e.d), o = s.length;
|
|
4956
4959
|
return t ? (r && (n = r - o) > 0 ? s = s.charAt(0) + "." + s.slice(1) + Ue(n) : o > 1 && (s = s.charAt(0) + "." + s.slice(1)), s = s + (i < 0 ? "e" : "e+") + i) : i < 0 ? (s = "0." + Ue(-i - 1) + s, r && (n = r - o) > 0 && (s += Ue(n))) : i >= o ? (s += Ue(i + 1 - o), r && (n = r - i - 1) > 0 && (s = s + "." + Ue(n))) : ((n = i + 1) < o && (s = s.slice(0, n) + "." + s.slice(n)), r && (n = r - o) > 0 && (i + 1 === o && (s += "."), s += Ue(n))), e.s < 0 ? "-" + s : s;
|
|
4957
4960
|
}
|
|
4958
|
-
function
|
|
4961
|
+
function Mn(e, t) {
|
|
4959
4962
|
if (e.length > t)
|
|
4960
4963
|
return e.length = t, !0;
|
|
4961
4964
|
}
|
|
@@ -4983,17 +4986,17 @@ function Bi(e) {
|
|
|
4983
4986
|
o.e = 0, o.d = [s];
|
|
4984
4987
|
return;
|
|
4985
4988
|
}
|
|
4986
|
-
return
|
|
4989
|
+
return _n(o, s.toString());
|
|
4987
4990
|
} else if (typeof s != "string")
|
|
4988
4991
|
throw Error(tt + s);
|
|
4989
|
-
if (s.charCodeAt(0) === 45 ? (s = s.slice(1), o.s = -1) : o.s = 1,
|
|
4992
|
+
if (s.charCodeAt(0) === 45 ? (s = s.slice(1), o.s = -1) : o.s = 1, Uo.test(s)) _n(o, s);
|
|
4990
4993
|
else throw Error(tt + s);
|
|
4991
4994
|
}
|
|
4992
|
-
if (i.prototype = R, 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 = Bi, i.config = i.set =
|
|
4995
|
+
if (i.prototype = R, 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 = Bi, i.config = i.set = zo, e === void 0 && (e = {}), e)
|
|
4993
4996
|
for (n = ["precision", "rounding", "toExpNeg", "toExpPos", "LN10"], t = 0; t < n.length; ) e.hasOwnProperty(r = n[t++]) || (e[r] = this[r]);
|
|
4994
4997
|
return i.config(e), i;
|
|
4995
4998
|
}
|
|
4996
|
-
function
|
|
4999
|
+
function zo(e) {
|
|
4997
5000
|
if (!e || typeof e != "object")
|
|
4998
5001
|
throw Error(Ce + "Object expected");
|
|
4999
5002
|
var t, r, n, i = [
|
|
@@ -5019,9 +5022,9 @@ function Uo(e) {
|
|
|
5019
5022
|
else throw Error(tt + r + ": " + n);
|
|
5020
5023
|
return this;
|
|
5021
5024
|
}
|
|
5022
|
-
var
|
|
5023
|
-
ve = new
|
|
5024
|
-
const
|
|
5025
|
+
var tn = Bi(Wo);
|
|
5026
|
+
ve = new tn(1);
|
|
5027
|
+
const qo = {
|
|
5025
5028
|
prefix: "$",
|
|
5026
5029
|
precision: 2,
|
|
5027
5030
|
zeroDisplay: "-",
|
|
@@ -5030,9 +5033,9 @@ const zo = {
|
|
|
5030
5033
|
maximumFractionDigits: 2
|
|
5031
5034
|
}
|
|
5032
5035
|
};
|
|
5033
|
-
function
|
|
5036
|
+
function Zo(e, t = {}) {
|
|
5034
5037
|
const { prefix: r, precision: n, zeroDisplay: i, format: s } = {
|
|
5035
|
-
...
|
|
5038
|
+
...qo,
|
|
5036
5039
|
...t
|
|
5037
5040
|
};
|
|
5038
5041
|
if (e === 0) return i;
|
|
@@ -5041,9 +5044,9 @@ function qo(e, t = {}) {
|
|
|
5041
5044
|
}
|
|
5042
5045
|
function Pi(e, t, r) {
|
|
5043
5046
|
const n = e * t;
|
|
5044
|
-
return
|
|
5047
|
+
return Zo(n, r);
|
|
5045
5048
|
}
|
|
5046
|
-
const
|
|
5049
|
+
const Xo = (e, t, r) => new tn(e).toDecimalPlaces(t, r).toNumber(), Ul = ({
|
|
5047
5050
|
fieldName: e,
|
|
5048
5051
|
currencyIcon: t,
|
|
5049
5052
|
currencyName: r,
|
|
@@ -5073,10 +5076,10 @@ const Zo = (e, t, r) => new en(e).toDecimalPlaces(t, r).toNumber(), Ul = ({
|
|
|
5073
5076
|
(x.key === "ArrowUp" || x.key === "ArrowDown") && x.preventDefault();
|
|
5074
5077
|
};
|
|
5075
5078
|
let M;
|
|
5076
|
-
return s && (M = `${
|
|
5077
|
-
/* @__PURE__ */ c(
|
|
5079
|
+
return s && (M = `${Xo(Number(s.balance), s.decimals ?? Qr)} ${s.symbol}`, o && (M = `${o}: ${M}`)), /* @__PURE__ */ y(ze, { children: [
|
|
5080
|
+
/* @__PURE__ */ c(Bo, { name: e, defaultValue: "" }),
|
|
5078
5081
|
/* @__PURE__ */ c(Bt, { className: "flex w-full flex-col content-center justify-between gap-4", children: /* @__PURE__ */ c(
|
|
5079
|
-
|
|
5082
|
+
zr,
|
|
5080
5083
|
{
|
|
5081
5084
|
amount: d,
|
|
5082
5085
|
currencyIcon: t,
|
|
@@ -5095,7 +5098,7 @@ const Zo = (e, t, r) => new en(e).toDecimalPlaces(t, r).toNumber(), Ul = ({
|
|
|
5095
5098
|
) })
|
|
5096
5099
|
] });
|
|
5097
5100
|
};
|
|
5098
|
-
function
|
|
5101
|
+
function Go({ items: e, onRemove: t, showChain: r = !0 }) {
|
|
5099
5102
|
const n = _e(() => e, [e]);
|
|
5100
5103
|
return n.length === 0 ? null : /* @__PURE__ */ c("div", { className: "flex flex-col gap-8", children: n.map(({ bsnId: i, bsnName: s, bsnLogoUrl: o, provider: a }) => /* @__PURE__ */ c(
|
|
5101
5104
|
Fi,
|
|
@@ -5117,7 +5120,7 @@ function zl({ max: e, items: t = [], actionText: r, onAdd: n, onRemove: i, showC
|
|
|
5117
5120
|
/* @__PURE__ */ c("span", { className: "text-sm sm:text-base", children: r }),
|
|
5118
5121
|
/* @__PURE__ */ c(lo, { counter: o, max: e, onAdd: n })
|
|
5119
5122
|
] }) }),
|
|
5120
|
-
o > 0 && /* @__PURE__ */ c(
|
|
5123
|
+
o > 0 && /* @__PURE__ */ c(Go, { items: t, onRemove: i, showChain: s })
|
|
5121
5124
|
] }) });
|
|
5122
5125
|
}
|
|
5123
5126
|
function ct({ title: e, children: t, className: r, hint: n }) {
|
|
@@ -5139,19 +5142,19 @@ function ct({ title: e, children: t, className: r, hint: n }) {
|
|
|
5139
5142
|
}
|
|
5140
5143
|
);
|
|
5141
5144
|
}
|
|
5142
|
-
function
|
|
5145
|
+
function Yo(e) {
|
|
5143
5146
|
return st({ 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);
|
|
5144
5147
|
}
|
|
5145
|
-
function
|
|
5148
|
+
function Ko({ value: e, onEdit: t, title: r = "Network Fee Rate", className: n }) {
|
|
5146
5149
|
return /* @__PURE__ */ y(ct, { title: r, className: n, children: [
|
|
5147
5150
|
/* @__PURE__ */ y("span", { children: [
|
|
5148
5151
|
e,
|
|
5149
5152
|
" sats/vB"
|
|
5150
5153
|
] }),
|
|
5151
|
-
t && /* @__PURE__ */ c(we, { size: "small", variant: "outlined", className: "h-6 w-6 pl-1 text-secondary-strokeDark", onClick: t, children: /* @__PURE__ */ c(
|
|
5154
|
+
t && /* @__PURE__ */ c(we, { size: "small", variant: "outlined", className: "h-6 w-6 pl-1 text-secondary-strokeDark", onClick: t, children: /* @__PURE__ */ c(Yo, { size: 16, className: "text-secondary-strokeDark" }) })
|
|
5152
5155
|
] });
|
|
5153
5156
|
}
|
|
5154
|
-
function
|
|
5157
|
+
function Jo({ amount: e, coinSymbol: t, hint: r, title: n, className: i, decimals: s = Qr }) {
|
|
5155
5158
|
let o;
|
|
5156
5159
|
return typeof e == "number" ? e === 0 ? o = "0" : o = e.toFixed(s).replace(/0+$/, "").replace(/\.$/, "") : o = e, /* @__PURE__ */ y(ct, { title: n ?? `${t} Network Fee`, hint: r, className: i, children: [
|
|
5157
5160
|
o,
|
|
@@ -5159,7 +5162,7 @@ function Ko({ amount: e, coinSymbol: t, hint: r, title: n, className: i, decimal
|
|
|
5159
5162
|
t
|
|
5160
5163
|
] });
|
|
5161
5164
|
}
|
|
5162
|
-
function
|
|
5165
|
+
function Qo({ amount: e, coinSymbol: t, hint: r, title: n, className: i, decimals: s = jo }) {
|
|
5163
5166
|
const o = typeof e == "number" ? e.toFixed(s) : e;
|
|
5164
5167
|
return /* @__PURE__ */ y(ct, { title: n ?? `${t} Network Fee`, hint: r, className: i, children: [
|
|
5165
5168
|
o,
|
|
@@ -5167,7 +5170,7 @@ function Jo({ amount: e, coinSymbol: t, hint: r, title: n, className: i, decimal
|
|
|
5167
5170
|
t
|
|
5168
5171
|
] });
|
|
5169
5172
|
}
|
|
5170
|
-
function
|
|
5173
|
+
function el({ total: e, coinSymbol: t, hint: r, title: n = "Total", className: i, decimals: s = Qr }) {
|
|
5171
5174
|
let o;
|
|
5172
5175
|
return typeof e == "number" ? e === 0 ? o = "0" : o = e.toFixed(s).replace(/0+$/, "").replace(/\.$/, "") : o = e, /* @__PURE__ */ y("div", { className: ce("flex flex-row items-start justify-between text-accent-primary", i), children: [
|
|
5173
5176
|
/* @__PURE__ */ c(W, { variant: "body1", className: "font-bold", children: n }),
|
|
@@ -5196,10 +5199,10 @@ function ql({
|
|
|
5196
5199
|
bbnFeeDecimals: d
|
|
5197
5200
|
}) {
|
|
5198
5201
|
return /* @__PURE__ */ c(Bt, { className: ce("flex w-full flex-col content-center justify-between gap-4", e), children: /* @__PURE__ */ y("div", { className: "flex flex-col gap-6 p-4", children: [
|
|
5199
|
-
t !== void 0 && /* @__PURE__ */ c(
|
|
5200
|
-
n !== void 0 && i !== void 0 && /* @__PURE__ */ c(
|
|
5202
|
+
t !== void 0 && /* @__PURE__ */ c(Ko, { value: t, onEdit: r }),
|
|
5203
|
+
n !== void 0 && i !== void 0 && /* @__PURE__ */ c(Jo, { amount: n, coinSymbol: i, hint: s }),
|
|
5201
5204
|
l !== void 0 && f ? /* @__PURE__ */ c(
|
|
5202
|
-
|
|
5205
|
+
Qo,
|
|
5203
5206
|
{
|
|
5204
5207
|
amount: l,
|
|
5205
5208
|
coinSymbol: f,
|
|
@@ -5208,10 +5211,10 @@ function ql({
|
|
|
5208
5211
|
}
|
|
5209
5212
|
) : null,
|
|
5210
5213
|
o !== void 0 && i !== void 0 && /* @__PURE__ */ c("div", { className: "divider my-4" }),
|
|
5211
|
-
o !== void 0 && i !== void 0 && /* @__PURE__ */ c(
|
|
5214
|
+
o !== void 0 && i !== void 0 && /* @__PURE__ */ c(el, { total: o, coinSymbol: i, hint: a })
|
|
5212
5215
|
] }) });
|
|
5213
5216
|
}
|
|
5214
|
-
const
|
|
5217
|
+
const tl = ({ data: e }) => {
|
|
5215
5218
|
if (!e || e.length === 0) return null;
|
|
5216
5219
|
const t = e[0], r = e.slice(1), i = {
|
|
5217
5220
|
gridTemplateColumns: `repeat(${t.length}, minmax(0, 1fr))`
|
|
@@ -5243,7 +5246,7 @@ const el = ({ data: e }) => {
|
|
|
5243
5246
|
))
|
|
5244
5247
|
] }) });
|
|
5245
5248
|
};
|
|
5246
|
-
function
|
|
5249
|
+
function rl({ className: e, ...t }) {
|
|
5247
5250
|
const n = Pt(yr) ? Rt : pr;
|
|
5248
5251
|
return /* @__PURE__ */ c(n, { ...t, className: ce("w-[41.25rem] max-w-full", e) });
|
|
5249
5252
|
}
|
|
@@ -5318,10 +5321,10 @@ const Zl = ({
|
|
|
5318
5321
|
];
|
|
5319
5322
|
})
|
|
5320
5323
|
];
|
|
5321
|
-
return /* @__PURE__ */ y(
|
|
5324
|
+
return /* @__PURE__ */ y(rl, { open: e, onClose: r, children: [
|
|
5322
5325
|
/* @__PURE__ */ c(vr, { title: "Preview", onClose: r, className: "text-accent-primary" }),
|
|
5323
5326
|
/* @__PURE__ */ y(gr, { className: "no-scrollbar mb-8 mt-4 flex max-h-[calc(100vh-12rem)] flex-col gap-4 overflow-y-auto text-accent-primary", children: [
|
|
5324
|
-
/* @__PURE__ */ c(
|
|
5327
|
+
/* @__PURE__ */ c(tl, { data: v }),
|
|
5325
5328
|
/* @__PURE__ */ c("div", { className: "flex flex-col", children: d.map((N, g) => /* @__PURE__ */ y("div", { className: "flex flex-row items-center justify-between py-3", children: [
|
|
5326
5329
|
/* @__PURE__ */ c(W, { variant: "body1", className: "text-secondary font-normal", children: N.label }),
|
|
5327
5330
|
/* @__PURE__ */ c(W, { variant: "body1", className: "text-right font-normal", children: N.value })
|
|
@@ -5335,13 +5338,13 @@ const Zl = ({
|
|
|
5335
5338
|
] })
|
|
5336
5339
|
] })
|
|
5337
5340
|
] }),
|
|
5338
|
-
/* @__PURE__ */ y(
|
|
5341
|
+
/* @__PURE__ */ y(Ur, { className: "flex flex-col gap-4 pb-8 pt-0 sm:flex-row", children: [
|
|
5339
5342
|
/* @__PURE__ */ c(we, { variant: "contained", color: "primary", onClick: n, className: "w-full sm:flex-1 sm:order-2", disabled: t, children: t ? "Processing..." : f }),
|
|
5340
5343
|
/* @__PURE__ */ c(we, { variant: "outlined", color: "primary", onClick: r, className: "w-full sm:flex-1 sm:order-1", children: "Cancel" })
|
|
5341
5344
|
] })
|
|
5342
5345
|
] });
|
|
5343
5346
|
};
|
|
5344
|
-
function
|
|
5347
|
+
function nl({
|
|
5345
5348
|
actions: e
|
|
5346
5349
|
}) {
|
|
5347
5350
|
return /* @__PURE__ */ c("div", { className: "mt-4 sm:mt-6 flex gap-2", children: e.map((t, r) => /* @__PURE__ */ c(
|
|
@@ -5356,7 +5359,7 @@ function rl({
|
|
|
5356
5359
|
`${t.label}-${r}`
|
|
5357
5360
|
)) });
|
|
5358
5361
|
}
|
|
5359
|
-
function
|
|
5362
|
+
function il({
|
|
5360
5363
|
formattedAmount: e,
|
|
5361
5364
|
icon: t,
|
|
5362
5365
|
iconAlt: r,
|
|
@@ -5389,7 +5392,7 @@ function nl({
|
|
|
5389
5392
|
] })
|
|
5390
5393
|
] });
|
|
5391
5394
|
}
|
|
5392
|
-
function
|
|
5395
|
+
function sl({ item: e, className: t }) {
|
|
5393
5396
|
return /* @__PURE__ */ y("div", { className: ce("flex items-center gap-2 min-w-0", t), children: [
|
|
5394
5397
|
/* @__PURE__ */ c("span", { className: "text-xs sm:text-sm text-accent-primary font-medium truncate flex items-center", children: e.name }),
|
|
5395
5398
|
e.icon && /* @__PURE__ */ c("div", { className: "flex items-center w-4 h-4 flex-shrink-0 justify-center text-xs sm:text-sm", children: typeof e.icon == "string" ? /* @__PURE__ */ c(
|
|
@@ -5437,7 +5440,7 @@ function Ar({ label: e, value: t, collapsible: r = !1, nestedDetails: n }) {
|
|
|
5437
5440
|
/* @__PURE__ */ c("span", { className: "text-xs sm:text-sm text-accent-primary font-medium text-right min-w-0 overflow-x-auto whitespace-nowrap", children: t })
|
|
5438
5441
|
] });
|
|
5439
5442
|
}
|
|
5440
|
-
function
|
|
5443
|
+
function al({
|
|
5441
5444
|
details: e,
|
|
5442
5445
|
optionalDetails: t,
|
|
5443
5446
|
listItems: r
|
|
@@ -5460,7 +5463,7 @@ function sl({
|
|
|
5460
5463
|
className: "bg-surface p-3 sm:p-4 rounded space-y-3 sm:space-y-4 overflow-x-auto",
|
|
5461
5464
|
children: /* @__PURE__ */ y("div", { className: "flex justify-between items-start gap-2", children: [
|
|
5462
5465
|
/* @__PURE__ */ c("span", { className: "text-xs sm:text-sm text-accent-secondary", children: s.label }),
|
|
5463
|
-
/* @__PURE__ */ c("div", { className: "flex flex-wrap gap-2", children: s.items.map((a, l) => /* @__PURE__ */ c(
|
|
5466
|
+
/* @__PURE__ */ c("div", { className: "flex flex-wrap gap-2", children: s.items.map((a, l) => /* @__PURE__ */ c(sl, { item: a }, a.id || l)) })
|
|
5464
5467
|
] })
|
|
5465
5468
|
},
|
|
5466
5469
|
o
|
|
@@ -5485,7 +5488,7 @@ function Xl({ data: e, className: t }) {
|
|
|
5485
5488
|
children: [
|
|
5486
5489
|
/* @__PURE__ */ y("div", { className: "space-y-3 sm:space-y-4", children: [
|
|
5487
5490
|
/* @__PURE__ */ c(
|
|
5488
|
-
|
|
5491
|
+
il,
|
|
5489
5492
|
{
|
|
5490
5493
|
formattedAmount: e.formattedAmount,
|
|
5491
5494
|
icon: e.icon,
|
|
@@ -5496,14 +5499,14 @@ function Xl({ data: e, className: t }) {
|
|
|
5496
5499
|
}
|
|
5497
5500
|
),
|
|
5498
5501
|
/* @__PURE__ */ c(
|
|
5499
|
-
|
|
5502
|
+
al,
|
|
5500
5503
|
{
|
|
5501
5504
|
details: e.details,
|
|
5502
5505
|
optionalDetails: e.optionalDetails,
|
|
5503
5506
|
listItems: e.listItems
|
|
5504
5507
|
}
|
|
5505
5508
|
),
|
|
5506
|
-
e.secondaryActions && e.secondaryActions.length > 0 && /* @__PURE__ */ c(
|
|
5509
|
+
e.secondaryActions && e.secondaryActions.length > 0 && /* @__PURE__ */ c(nl, { actions: e.secondaryActions })
|
|
5507
5510
|
] }),
|
|
5508
5511
|
e.primaryAction && /* @__PURE__ */ c(
|
|
5509
5512
|
we,
|
|
@@ -5519,7 +5522,7 @@ function Xl({ data: e, className: t }) {
|
|
|
5519
5522
|
}
|
|
5520
5523
|
);
|
|
5521
5524
|
}
|
|
5522
|
-
function
|
|
5525
|
+
function ol({ className: e, ...t }) {
|
|
5523
5526
|
const n = Pt(yr) ? Rt : pr;
|
|
5524
5527
|
return /* @__PURE__ */ c(n, { ...t, className: ce("w-[41.25rem] max-w-full", e) });
|
|
5525
5528
|
}
|
|
@@ -5533,7 +5536,7 @@ const Gl = ({
|
|
|
5533
5536
|
warning: o,
|
|
5534
5537
|
amount: a,
|
|
5535
5538
|
transactionFees: l
|
|
5536
|
-
}) => /* @__PURE__ */ y(
|
|
5539
|
+
}) => /* @__PURE__ */ y(ol, { open: e, onClose: n, children: [
|
|
5537
5540
|
/* @__PURE__ */ c(vr, { title: r, className: "text-accent-primary" }),
|
|
5538
5541
|
/* @__PURE__ */ y(gr, { className: "no-scrollbar mb-[40px] mt-8 flex max-h-[calc(100vh-12rem)] flex-col gap-[40px] overflow-y-auto text-accent-primary", children: [
|
|
5539
5542
|
/* @__PURE__ */ y("div", { className: "flex flex-col gap-2", children: [
|
|
@@ -5548,7 +5551,7 @@ const Gl = ({
|
|
|
5548
5551
|
] }),
|
|
5549
5552
|
/* @__PURE__ */ c(pi, { children: o })
|
|
5550
5553
|
] }),
|
|
5551
|
-
/* @__PURE__ */ y(
|
|
5554
|
+
/* @__PURE__ */ y(Ur, { className: "flex flex-col gap-4 pt-0 sm:flex-row", children: [
|
|
5552
5555
|
/* @__PURE__ */ c(we, { variant: "contained", color: "primary", onClick: i, className: "w-full sm:flex-1 sm:order-2", disabled: t, children: t ? "Processing..." : "Proceed" }),
|
|
5553
5556
|
/* @__PURE__ */ c(we, { variant: "outlined", color: "primary", onClick: n, className: "w-full sm:flex-1 sm:order-1", children: "Cancel" })
|
|
5554
5557
|
] })
|
|
@@ -5561,7 +5564,7 @@ const Gl = ({
|
|
|
5561
5564
|
{ zeroDisplay: "$0.00" }
|
|
5562
5565
|
);
|
|
5563
5566
|
return /* @__PURE__ */ c(
|
|
5564
|
-
|
|
5567
|
+
zr,
|
|
5565
5568
|
{
|
|
5566
5569
|
amount: n.amount,
|
|
5567
5570
|
currencyIcon: n.currencyIcon,
|
|
@@ -5584,17 +5587,17 @@ const Gl = ({
|
|
|
5584
5587
|
);
|
|
5585
5588
|
}),
|
|
5586
5589
|
/* @__PURE__ */ c(we, { onClick: t, disabled: r, children: "Claim" })
|
|
5587
|
-
] }),
|
|
5590
|
+
] }), ll = ({ size: e = "md" }) => /* @__PURE__ */ c("div", { className: {
|
|
5588
5591
|
sm: "mt-2",
|
|
5589
5592
|
md: "mt-4",
|
|
5590
5593
|
lg: "mt-6"
|
|
5591
|
-
}[e] }),
|
|
5594
|
+
}[e] }), cl = () => /* @__PURE__ */ c("svg", { width: "29", height: "28", viewBox: "0 0 29 28", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ c(
|
|
5592
5595
|
"path",
|
|
5593
5596
|
{
|
|
5594
5597
|
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",
|
|
5595
5598
|
fill: "#9E9E9E"
|
|
5596
5599
|
}
|
|
5597
|
-
) }), Ii = () => /* @__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" }) }),
|
|
5600
|
+
) }), Ii = () => /* @__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" }) }), ul = ({ children: e, className: t = "" }) => /* @__PURE__ */ c(W, { variant: "body1", className: O("px-7 pb-6 text-accent-primary md:hidden", t), children: e }), fl = ({
|
|
5598
5601
|
background: e = "none",
|
|
5599
5602
|
backgroundClassName: t = "",
|
|
5600
5603
|
className: r = "",
|
|
@@ -5635,7 +5638,7 @@ const Gl = ({
|
|
|
5635
5638
|
suffix: t || d
|
|
5636
5639
|
}
|
|
5637
5640
|
);
|
|
5638
|
-
},
|
|
5641
|
+
}, dl = ({ icon: e, className: t = "", children: r }) => {
|
|
5639
5642
|
const n = P.Children.toArray(r), i = n.find(
|
|
5640
5643
|
(l) => typeof l == "string" || P.isValidElement(l) && l.type !== Ft
|
|
5641
5644
|
), s = n.find(
|
|
@@ -5652,7 +5655,7 @@ const Gl = ({
|
|
|
5652
5655
|
children: o
|
|
5653
5656
|
}
|
|
5654
5657
|
);
|
|
5655
|
-
},
|
|
5658
|
+
}, hl = ({ children: e, className: t = "" }) => /* @__PURE__ */ c("div", { className: t, children: e }), ml = ({
|
|
5656
5659
|
trigger: e,
|
|
5657
5660
|
open: t,
|
|
5658
5661
|
onOpenChange: r,
|
|
@@ -5668,7 +5671,7 @@ const Gl = ({
|
|
|
5668
5671
|
{
|
|
5669
5672
|
className: "flex h-10 w-10 items-center justify-center rounded-lg transition-colors hover:bg-accent-primary/10",
|
|
5670
5673
|
"aria-label": "Settings menu",
|
|
5671
|
-
children: /* @__PURE__ */ c(
|
|
5674
|
+
children: /* @__PURE__ */ c(cl, {})
|
|
5672
5675
|
}
|
|
5673
5676
|
),
|
|
5674
5677
|
open: t,
|
|
@@ -5678,15 +5681,15 @@ const Gl = ({
|
|
|
5678
5681
|
offset: s,
|
|
5679
5682
|
children: o
|
|
5680
5683
|
}
|
|
5681
|
-
), at =
|
|
5682
|
-
at.Title =
|
|
5683
|
-
at.Group =
|
|
5684
|
+
), at = ml;
|
|
5685
|
+
at.Title = ul;
|
|
5686
|
+
at.Group = fl;
|
|
5684
5687
|
at.Item = ji;
|
|
5685
|
-
at.SubMenu =
|
|
5688
|
+
at.SubMenu = dl;
|
|
5686
5689
|
at.Description = Ft;
|
|
5687
|
-
at.CustomContent =
|
|
5688
|
-
at.Spacer =
|
|
5689
|
-
const
|
|
5690
|
+
at.CustomContent = hl;
|
|
5691
|
+
at.Spacer = ll;
|
|
5692
|
+
const Tn = ({
|
|
5690
5693
|
walletType: e,
|
|
5691
5694
|
walletName: t,
|
|
5692
5695
|
walletIcon: r,
|
|
@@ -5732,11 +5735,11 @@ const Mn = ({
|
|
|
5732
5735
|
{
|
|
5733
5736
|
onClick: s,
|
|
5734
5737
|
className: "flex-shrink-0 ml-3 p-1 rounded hover:bg-surface-tertiary transition-colors h-6 w-6 flex items-center justify-center hover:opacity-80",
|
|
5735
|
-
children: /* @__PURE__ */ c(
|
|
5738
|
+
children: /* @__PURE__ */ c(Wr, { size: 14, className: "md:w-4 md:h-4" })
|
|
5736
5739
|
}
|
|
5737
5740
|
)
|
|
5738
5741
|
] })
|
|
5739
|
-
] }) }),
|
|
5742
|
+
] }) }), pl = ({
|
|
5740
5743
|
value: e,
|
|
5741
5744
|
onChange: t,
|
|
5742
5745
|
className: r = "",
|
|
@@ -5772,7 +5775,7 @@ const Mn = ({
|
|
|
5772
5775
|
}
|
|
5773
5776
|
)
|
|
5774
5777
|
}
|
|
5775
|
-
),
|
|
5778
|
+
), Rn = ({
|
|
5776
5779
|
icon: e,
|
|
5777
5780
|
title: t,
|
|
5778
5781
|
status: r,
|
|
@@ -5798,13 +5801,13 @@ const Mn = ({
|
|
|
5798
5801
|
] })
|
|
5799
5802
|
] }),
|
|
5800
5803
|
/* @__PURE__ */ c(
|
|
5801
|
-
|
|
5804
|
+
pl,
|
|
5802
5805
|
{
|
|
5803
5806
|
value: n,
|
|
5804
5807
|
onChange: i
|
|
5805
5808
|
}
|
|
5806
5809
|
)
|
|
5807
|
-
] }),
|
|
5810
|
+
] }), vl = ({
|
|
5808
5811
|
title: e,
|
|
5809
5812
|
value: t,
|
|
5810
5813
|
isCopied: r,
|
|
@@ -5840,7 +5843,7 @@ const Mn = ({
|
|
|
5840
5843
|
{
|
|
5841
5844
|
onClick: n,
|
|
5842
5845
|
className: "flex-shrink-0 ml-3 p-1 rounded hover:bg-surface-tertiary transition-colors h-6 w-6 flex items-center justify-center hover:opacity-80 self-center",
|
|
5843
|
-
children: /* @__PURE__ */ c(
|
|
5846
|
+
children: /* @__PURE__ */ c(Wr, { size: 16 })
|
|
5844
5847
|
}
|
|
5845
5848
|
)
|
|
5846
5849
|
] })
|
|
@@ -5876,7 +5879,7 @@ const Mn = ({
|
|
|
5876
5879
|
children: /* @__PURE__ */ y("div", { className: "p-4 space-y-6 w-full text-primary-main", children: [
|
|
5877
5880
|
/* @__PURE__ */ y("div", { className: "flex flex-row gap-2 w-full md:flex-col overflow-x-auto", children: [
|
|
5878
5881
|
/* @__PURE__ */ c(
|
|
5879
|
-
|
|
5882
|
+
Tn,
|
|
5880
5883
|
{
|
|
5881
5884
|
walletType: "Bitcoin",
|
|
5882
5885
|
walletName: (F = n.BTC) == null ? void 0 : F.name,
|
|
@@ -5887,7 +5890,7 @@ const Mn = ({
|
|
|
5887
5890
|
}
|
|
5888
5891
|
),
|
|
5889
5892
|
/* @__PURE__ */ c(
|
|
5890
|
-
|
|
5893
|
+
Tn,
|
|
5891
5894
|
{
|
|
5892
5895
|
walletType: "Babylon",
|
|
5893
5896
|
walletName: (E = n.BBN) == null ? void 0 : E.name,
|
|
@@ -5900,7 +5903,7 @@ const Mn = ({
|
|
|
5900
5903
|
] }),
|
|
5901
5904
|
/* @__PURE__ */ y("div", { className: "flex flex-col gap-8 w-full", children: [
|
|
5902
5905
|
/* @__PURE__ */ c(
|
|
5903
|
-
|
|
5906
|
+
Rn,
|
|
5904
5907
|
{
|
|
5905
5908
|
icon: /* @__PURE__ */ c(La, {}),
|
|
5906
5909
|
title: "Using Inscriptions",
|
|
@@ -5910,7 +5913,7 @@ const Mn = ({
|
|
|
5910
5913
|
}
|
|
5911
5914
|
),
|
|
5912
5915
|
/* @__PURE__ */ c(
|
|
5913
|
-
|
|
5916
|
+
Rn,
|
|
5914
5917
|
{
|
|
5915
5918
|
icon: /* @__PURE__ */ c(Aa, {}),
|
|
5916
5919
|
title: "Linked Wallet Stakes",
|
|
@@ -5920,7 +5923,7 @@ const Mn = ({
|
|
|
5920
5923
|
}
|
|
5921
5924
|
),
|
|
5922
5925
|
/* @__PURE__ */ c(
|
|
5923
|
-
|
|
5926
|
+
vl,
|
|
5924
5927
|
{
|
|
5925
5928
|
title: "Bitcoin Public Key",
|
|
5926
5929
|
value: f,
|
|
@@ -5931,7 +5934,7 @@ const Mn = ({
|
|
|
5931
5934
|
)
|
|
5932
5935
|
] }),
|
|
5933
5936
|
/* @__PURE__ */ c("div", { className: "pt-2", children: /* @__PURE__ */ c(
|
|
5934
|
-
|
|
5937
|
+
jn,
|
|
5935
5938
|
{
|
|
5936
5939
|
onClick: x,
|
|
5937
5940
|
fluid: !0,
|
|
@@ -5942,7 +5945,7 @@ const Mn = ({
|
|
|
5942
5945
|
}
|
|
5943
5946
|
);
|
|
5944
5947
|
};
|
|
5945
|
-
function
|
|
5948
|
+
function gl({ className: e, ...t }) {
|
|
5946
5949
|
const n = Pt(yr) ? Rt : pr;
|
|
5947
5950
|
return /* @__PURE__ */ c(n, { ...t, className: ce("w-[41.25rem] max-w-full", e) });
|
|
5948
5951
|
}
|
|
@@ -5961,7 +5964,7 @@ const Jl = ({
|
|
|
5961
5964
|
warningText: f,
|
|
5962
5965
|
actionButtonText: u = "Unbond",
|
|
5963
5966
|
onActionClick: d
|
|
5964
|
-
}) => /* @__PURE__ */ y(
|
|
5967
|
+
}) => /* @__PURE__ */ y(gl, { open: e, onClose: t, children: [
|
|
5965
5968
|
/* @__PURE__ */ c(vr, { title: r, onClose: t, className: "text-accent-primary" }),
|
|
5966
5969
|
/* @__PURE__ */ y(
|
|
5967
5970
|
gr,
|
|
@@ -5971,7 +5974,7 @@ const Jl = ({
|
|
|
5971
5974
|
children: [
|
|
5972
5975
|
n && /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(W, { variant: "body2", className: "text-accent-secondary whitespace-pre-line", children: n }) }),
|
|
5973
5976
|
/* @__PURE__ */ c(Bt, { className: "flex w-full flex-col content-center justify-between gap-4", children: /* @__PURE__ */ c(
|
|
5974
|
-
|
|
5977
|
+
zr,
|
|
5975
5978
|
{
|
|
5976
5979
|
amount: i.amount,
|
|
5977
5980
|
currencyIcon: i.currencyIcon,
|
|
@@ -5993,14 +5996,14 @@ const Jl = ({
|
|
|
5993
5996
|
]
|
|
5994
5997
|
}
|
|
5995
5998
|
),
|
|
5996
|
-
u && /* @__PURE__ */ c(
|
|
5999
|
+
u && /* @__PURE__ */ c(Ur, { className: "flex justify-end mt-[80px]", children: /* @__PURE__ */ c(
|
|
5997
6000
|
we,
|
|
5998
6001
|
{
|
|
5999
6002
|
onClick: d,
|
|
6000
6003
|
children: u
|
|
6001
6004
|
}
|
|
6002
6005
|
) })
|
|
6003
|
-
] }),
|
|
6006
|
+
] }), bl = {
|
|
6004
6007
|
adaptive: "adaptive",
|
|
6005
6008
|
horizontal: "vertical",
|
|
6006
6009
|
vertical: "horizontal"
|
|
@@ -6009,7 +6012,7 @@ function Ql({ className: e, orientation: t = "vertical", children: r }) {
|
|
|
6009
6012
|
return /* @__PURE__ */ c("div", { className: ce("bbn-list-legacy", `bbn-list-legacy-${t}`, e), children: Qt.map(
|
|
6010
6013
|
r,
|
|
6011
6014
|
(n) => Fr(n) ? Vr(n, {
|
|
6012
|
-
orientation:
|
|
6015
|
+
orientation: bl[t]
|
|
6013
6016
|
}) : n
|
|
6014
6017
|
) });
|
|
6015
6018
|
}
|
|
@@ -6039,99 +6042,99 @@ function ec({ className: e, orientation: t = "horizontal", title: r, value: n, s
|
|
|
6039
6042
|
] });
|
|
6040
6043
|
}
|
|
6041
6044
|
export {
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
+
Cl as Accordion,
|
|
6046
|
+
Ol as AccordionDetails,
|
|
6047
|
+
kl as AccordionSummary,
|
|
6045
6048
|
Xl as ActivityCard,
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6049
|
+
nl as ActivityCardActionSection,
|
|
6050
|
+
il as ActivityCardAmountSection,
|
|
6051
|
+
al as ActivityCardDetailsSection,
|
|
6052
|
+
sl as ActivityListItem,
|
|
6053
|
+
zr as AmountItem,
|
|
6051
6054
|
Ul as AmountSubsection,
|
|
6052
6055
|
er as Avatar,
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6056
|
+
El as AvatarGroup,
|
|
6057
|
+
Qo as BBNFeeAmount,
|
|
6058
|
+
Jo as BTCFeeAmount,
|
|
6059
|
+
Ko as BTCFeeRate,
|
|
6060
|
+
_l as Badge,
|
|
6058
6061
|
Sa as BitcoinPublicKeyIcon,
|
|
6059
6062
|
we as Button,
|
|
6060
6063
|
so as Card,
|
|
6061
6064
|
to as Cell,
|
|
6062
6065
|
Xi as Checkbox,
|
|
6063
6066
|
Il as CheckboxField,
|
|
6064
|
-
|
|
6067
|
+
Al as Chip,
|
|
6065
6068
|
si as CloseIcon,
|
|
6066
6069
|
Fa as CollapseIcon,
|
|
6067
6070
|
Qa as Column,
|
|
6068
|
-
|
|
6069
|
-
|
|
6071
|
+
mo as Copy,
|
|
6072
|
+
Wr as CopyIcon,
|
|
6070
6073
|
lo as CounterButton,
|
|
6071
6074
|
pr as Dialog,
|
|
6072
6075
|
gr as DialogBody,
|
|
6073
|
-
|
|
6076
|
+
Ur as DialogFooter,
|
|
6074
6077
|
vr as DialogHeader,
|
|
6075
6078
|
hi as DisplayHash,
|
|
6076
6079
|
ct as FeeItem,
|
|
6077
6080
|
ql as FeesSection,
|
|
6078
6081
|
Fi as FinalityProviderItem,
|
|
6079
|
-
|
|
6082
|
+
Io as FinalityProviderLogo,
|
|
6080
6083
|
zl as FinalityProviderSubsection,
|
|
6081
6084
|
Tl as Form,
|
|
6082
6085
|
mr as FormControl,
|
|
6083
6086
|
Mr as Heading,
|
|
6084
|
-
|
|
6085
|
-
|
|
6087
|
+
Bo as HiddenField,
|
|
6088
|
+
In as IconButton,
|
|
6086
6089
|
hr as Input,
|
|
6087
6090
|
Aa as LinkWalletIcon,
|
|
6088
|
-
|
|
6089
|
-
|
|
6091
|
+
Fl as List,
|
|
6092
|
+
Dl as ListItem,
|
|
6090
6093
|
ec as ListItemLegacy,
|
|
6091
6094
|
Ql as ListLegacy,
|
|
6092
|
-
|
|
6095
|
+
Ll as Loader,
|
|
6093
6096
|
di as Menu,
|
|
6094
6097
|
fi as MenuDrawer,
|
|
6095
6098
|
uo as MenuItem,
|
|
6096
6099
|
Rt as MobileDialog,
|
|
6097
6100
|
Bl as NumberField,
|
|
6098
6101
|
Da as OpenIcon,
|
|
6099
|
-
|
|
6102
|
+
ei as Popover,
|
|
6100
6103
|
dr as Portal,
|
|
6101
6104
|
Zl as PreviewModal,
|
|
6102
6105
|
Yi as Radio,
|
|
6103
6106
|
jl as RadioField,
|
|
6104
6107
|
Gl as RewardsPreviewModal,
|
|
6105
6108
|
Yl as RewardsSubsection,
|
|
6106
|
-
|
|
6107
|
-
|
|
6109
|
+
Sl as ScrollLocker,
|
|
6110
|
+
ti as Select,
|
|
6108
6111
|
$l as SelectField,
|
|
6109
6112
|
at as SettingMenu,
|
|
6110
|
-
|
|
6113
|
+
hl as SettingMenuCustomContent,
|
|
6111
6114
|
Ft as SettingMenuDescription,
|
|
6112
|
-
|
|
6115
|
+
fl as SettingMenuGroup,
|
|
6113
6116
|
ji as SettingMenuItem,
|
|
6114
|
-
|
|
6115
|
-
|
|
6117
|
+
dl as SettingMenuSubMenu,
|
|
6118
|
+
ul as SettingMenuTitle,
|
|
6116
6119
|
fo as SubMenu,
|
|
6117
|
-
|
|
6120
|
+
Ml as SubMenuItem,
|
|
6118
6121
|
Bt as SubSection,
|
|
6119
6122
|
io as Table,
|
|
6120
6123
|
Hl as TableElement,
|
|
6121
6124
|
W as Text,
|
|
6122
6125
|
Pl as TextField,
|
|
6123
6126
|
Hr as ThemedIcon,
|
|
6124
|
-
|
|
6125
|
-
|
|
6127
|
+
Vl as Toggle,
|
|
6128
|
+
el as Total,
|
|
6126
6129
|
Jl as UnbondingModal,
|
|
6127
6130
|
La as UsingInscriptionIcon,
|
|
6128
6131
|
Wl as ValidatorSelector,
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
+
jn as WalletDisconnectButton,
|
|
6133
|
+
Tn as WalletInfoCard,
|
|
6134
|
+
vl as WalletInfoSection,
|
|
6132
6135
|
Kl as WalletMenu,
|
|
6133
|
-
|
|
6134
|
-
|
|
6136
|
+
Rn as WalletSettingItem,
|
|
6137
|
+
pl as WalletToggle,
|
|
6135
6138
|
pi as Warning,
|
|
6136
6139
|
Va as WarningIcon,
|
|
6137
6140
|
Tt as iconColorVariants,
|
|
@@ -6146,7 +6149,7 @@ export {
|
|
|
6146
6149
|
Pt as useIsMobile,
|
|
6147
6150
|
Ca as useMemoizedArray,
|
|
6148
6151
|
ui as useMenuContext,
|
|
6149
|
-
|
|
6152
|
+
ni as useModalManager,
|
|
6150
6153
|
Oa as useResizeObserver,
|
|
6151
6154
|
Ka as useTableScroll,
|
|
6152
6155
|
eo as useTableSort,
|