@babylonlabs-io/core-ui 1.14.0 → 1.16.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.d.ts +6 -1
- package/dist/elements/FinalityProviderItem/FinalityProviderItem.js +3 -1
- package/dist/elements/ProvidersList/ProvidersList.d.ts +3 -1
- package/dist/elements/ProvidersList/ProvidersList.js +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +400 -399
- package/dist/index.es.js.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/widgets/sections/FeesSection/FeesSection.d.ts +4 -4
- package/dist/widgets/sections/FeesSection/FeesSection.js +1 -1
- package/dist/widgets/sections/FeesSection/FeesSection.stories.d.ts +1 -0
- package/dist/widgets/sections/FeesSection/FeesSection.stories.js +4 -0
- package/dist/widgets/sections/FinalityProviderSubsection/FinalityProviderSubsection.d.ts +3 -1
- package/dist/widgets/sections/FinalityProviderSubsection/FinalityProviderSubsection.js +2 -2
- package/dist/widgets/sections/FinalityProviderSubsection/FinalityProviderSubsection.stories.d.ts +1 -0
- package/dist/widgets/sections/FinalityProviderSubsection/FinalityProviderSubsection.stories.js +21 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as c, jsxs as x, Fragment as nt } from "react/jsx-runtime";
|
|
2
2
|
import * as Ke from "react";
|
|
3
|
-
import
|
|
4
|
-
import { twJoin as
|
|
3
|
+
import B, { useState as oe, useRef as it, useCallback as ae, createContext as sr, useMemo as We, forwardRef as De, useContext as Lt, useEffect as ce, createElement as yr, Children as Xt, cloneElement as br, isValidElement as wr, useImperativeHandle as An, useId as Sn } from "react";
|
|
4
|
+
import { twJoin as A, twMerge as ve } from "tailwind-merge";
|
|
5
5
|
import * as Mi from "react-dom";
|
|
6
6
|
import { createPortal as Pi } from "react-dom";
|
|
7
7
|
function lt({
|
|
@@ -44,7 +44,7 @@ function ul({
|
|
|
44
44
|
}),
|
|
45
45
|
[t, o, i, l]
|
|
46
46
|
);
|
|
47
|
-
return /* @__PURE__ */ c(xr.Provider, { value: f, children: /* @__PURE__ */ c("div", { className:
|
|
47
|
+
return /* @__PURE__ */ c(xr.Provider, { value: f, children: /* @__PURE__ */ c("div", { className: A("bbn-accordion", i && "bbn-accordion-disabled", n), children: s }) });
|
|
48
48
|
}
|
|
49
49
|
const Ue = De(
|
|
50
50
|
({ variant: e = "contained", size: t = "large", color: r = "primary", fluid: n = !1, className: i, disabled: s, ...o }, a) => /* @__PURE__ */ c(
|
|
@@ -53,7 +53,7 @@ const Ue = De(
|
|
|
53
53
|
...o,
|
|
54
54
|
disabled: s,
|
|
55
55
|
ref: a,
|
|
56
|
-
className:
|
|
56
|
+
className: A(
|
|
57
57
|
"bbn-btn",
|
|
58
58
|
`bbn-btn-${e}`,
|
|
59
59
|
`bbn-btn-${r}`,
|
|
@@ -65,14 +65,14 @@ const Ue = De(
|
|
|
65
65
|
)
|
|
66
66
|
);
|
|
67
67
|
Ue.displayName = "Button";
|
|
68
|
-
const Fn = ({ className: e, ...t }) => /* @__PURE__ */ c("button", { ...t, className:
|
|
68
|
+
const Fn = ({ className: e, ...t }) => /* @__PURE__ */ c("button", { ...t, className: A("bbn-btn-icon", e) }), Ln = De(
|
|
69
69
|
({ className: e, ...t }, r) => /* @__PURE__ */ c(
|
|
70
70
|
Ue,
|
|
71
71
|
{
|
|
72
72
|
...t,
|
|
73
73
|
ref: r,
|
|
74
74
|
variant: "contained",
|
|
75
|
-
className:
|
|
75
|
+
className: A(
|
|
76
76
|
"!bg-error-main text-white font-medium !text-sm hover:!bg-error-main/90 transition-colors",
|
|
77
77
|
e
|
|
78
78
|
)
|
|
@@ -87,15 +87,15 @@ function fl({
|
|
|
87
87
|
renderIcon: n = () => null
|
|
88
88
|
}) {
|
|
89
89
|
const { expanded: i, toggle: s } = Lt(xr), o = n(i);
|
|
90
|
-
return /* @__PURE__ */ x("div", { className:
|
|
90
|
+
return /* @__PURE__ */ x("div", { className: A("bbn-accordion-summary", e), onClick: s, children: [
|
|
91
91
|
r,
|
|
92
|
-
o && /* @__PURE__ */ c(Fn, { className:
|
|
92
|
+
o && /* @__PURE__ */ c(Fn, { className: A("bbn-accordion-icon", t), children: o })
|
|
93
93
|
] });
|
|
94
94
|
}
|
|
95
95
|
function Nr(e, t) {
|
|
96
96
|
return typeof e != "number" ? typeof t == "number" ? Nr(t) : t : `${e}px`;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function ji(e = !0) {
|
|
99
99
|
const [t, r] = oe("0px"), [n, i] = oe(), s = it(null);
|
|
100
100
|
return ce(() => {
|
|
101
101
|
const o = new ResizeObserver((a) => {
|
|
@@ -121,7 +121,7 @@ function dl({
|
|
|
121
121
|
wrapperClassName: n,
|
|
122
122
|
children: i
|
|
123
123
|
}) {
|
|
124
|
-
const { expanded: s } = Lt(xr), [o, a] = oe(s), l = o || !e, { height: f, ref: u } =
|
|
124
|
+
const { expanded: s } = Lt(xr), [o, a] = oe(s), l = o || !e, { height: f, ref: u } = ji(l);
|
|
125
125
|
return ce(
|
|
126
126
|
function() {
|
|
127
127
|
if (s === o)
|
|
@@ -139,13 +139,13 @@ function dl({
|
|
|
139
139
|
), /* @__PURE__ */ c(
|
|
140
140
|
"div",
|
|
141
141
|
{
|
|
142
|
-
className:
|
|
142
|
+
className: A("bbn-accordion-details", n),
|
|
143
143
|
style: {
|
|
144
144
|
height: s ? f : "0px",
|
|
145
145
|
visibility: o ? "visible" : "hidden",
|
|
146
146
|
transitionDuration: `${t}ms`
|
|
147
147
|
},
|
|
148
|
-
children: l ? /* @__PURE__ */ c("div", { ref: u, className:
|
|
148
|
+
children: l ? /* @__PURE__ */ c("div", { ref: u, className: A("bbn-accordion-content", r), children: i }) : null
|
|
149
149
|
}
|
|
150
150
|
);
|
|
151
151
|
}
|
|
@@ -155,7 +155,7 @@ const W = De(
|
|
|
155
155
|
{
|
|
156
156
|
...i,
|
|
157
157
|
ref: s,
|
|
158
|
-
className:
|
|
158
|
+
className: A(`bbn-text-${e}`, n)
|
|
159
159
|
},
|
|
160
160
|
r
|
|
161
161
|
)
|
|
@@ -167,14 +167,14 @@ const Cr = De(
|
|
|
167
167
|
{
|
|
168
168
|
...i,
|
|
169
169
|
ref: s,
|
|
170
|
-
className:
|
|
170
|
+
className: A(`bbn-${e}`, n)
|
|
171
171
|
},
|
|
172
172
|
r
|
|
173
173
|
)
|
|
174
174
|
);
|
|
175
175
|
Cr.displayName = "Heading";
|
|
176
176
|
function Yt({ className: e, style: t, size: r = "large", variant: n = "circular", alt: i, url: s, children: o }) {
|
|
177
|
-
return /* @__PURE__ */ c("div", { style: t, className:
|
|
177
|
+
return /* @__PURE__ */ c("div", { style: t, className: A("bbn-avatar", `bbn-avatar-${r}`, `bbn-avatar-${n}`, e), children: s ? /* @__PURE__ */ c("img", { className: "bbn-avatar-img", src: s, alt: i }) : o });
|
|
178
178
|
}
|
|
179
179
|
const hl = ({
|
|
180
180
|
max: e = 1 / 0,
|
|
@@ -185,7 +185,7 @@ const hl = ({
|
|
|
185
185
|
...s
|
|
186
186
|
}) => {
|
|
187
187
|
const o = Xt.count(r);
|
|
188
|
-
return /* @__PURE__ */ x("div", { className:
|
|
188
|
+
return /* @__PURE__ */ x("div", { className: A("bbn-avatar-group", t), children: [
|
|
189
189
|
Xt.map(
|
|
190
190
|
r,
|
|
191
191
|
(a, l) => wr(a) && l + 1 <= e ? br(a, {
|
|
@@ -222,7 +222,7 @@ const hl = ({
|
|
|
222
222
|
var _;
|
|
223
223
|
y(w.currentTarget.checked), (_ = i == null ? void 0 : i.onChange) == null || _.call(i, w);
|
|
224
224
|
}
|
|
225
|
-
const M = /* @__PURE__ */ x("span", { className:
|
|
225
|
+
const M = /* @__PURE__ */ x("span", { className: A("bbn-switcher", o && "bbn-switcher-disabled", a), children: [
|
|
226
226
|
u(N),
|
|
227
227
|
/* @__PURE__ */ c(
|
|
228
228
|
"input",
|
|
@@ -243,7 +243,7 @@ const hl = ({
|
|
|
243
243
|
{
|
|
244
244
|
as: "label",
|
|
245
245
|
variant: "body1",
|
|
246
|
-
className:
|
|
246
|
+
className: A(
|
|
247
247
|
"bbn-switcher-label",
|
|
248
248
|
s === "left" ? "bbn-switcher-left" : "bbn-switcher-right",
|
|
249
249
|
f
|
|
@@ -254,7 +254,7 @@ const hl = ({
|
|
|
254
254
|
]
|
|
255
255
|
}
|
|
256
256
|
) : M;
|
|
257
|
-
}),
|
|
257
|
+
}), Bi = {
|
|
258
258
|
false: /* @__PURE__ */ c("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ c(
|
|
259
259
|
"path",
|
|
260
260
|
{
|
|
@@ -269,8 +269,8 @@ const hl = ({
|
|
|
269
269
|
fill: "currentColor"
|
|
270
270
|
}
|
|
271
271
|
) })
|
|
272
|
-
},
|
|
273
|
-
return /* @__PURE__ */ c(Vn, { ref: r, ...t, inputType: "checkbox", renderIcon: (n) =>
|
|
272
|
+
}, Ri = De(function(t, r) {
|
|
273
|
+
return /* @__PURE__ */ c(Vn, { ref: r, ...t, inputType: "checkbox", renderIcon: (n) => Bi[n.toString()] });
|
|
274
274
|
}), Ii = {
|
|
275
275
|
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(
|
|
276
276
|
"path",
|
|
@@ -295,7 +295,7 @@ var _n = {
|
|
|
295
295
|
className: void 0,
|
|
296
296
|
style: void 0,
|
|
297
297
|
attr: void 0
|
|
298
|
-
}, Xr =
|
|
298
|
+
}, Xr = B.createContext && /* @__PURE__ */ B.createContext(_n), Hi = ["attr", "size", "title"];
|
|
299
299
|
function Wi(e, t) {
|
|
300
300
|
if (e == null) return {};
|
|
301
301
|
var r = Ui(e, t), n, i;
|
|
@@ -365,12 +365,12 @@ function Zi(e, t) {
|
|
|
365
365
|
return (t === "string" ? String : Number)(e);
|
|
366
366
|
}
|
|
367
367
|
function Dn(e) {
|
|
368
|
-
return e && e.map((t, r) => /* @__PURE__ */
|
|
368
|
+
return e && e.map((t, r) => /* @__PURE__ */ B.createElement(t.tag, Kt({
|
|
369
369
|
key: r
|
|
370
370
|
}, t.attr), Dn(t.child)));
|
|
371
371
|
}
|
|
372
372
|
function Vt(e) {
|
|
373
|
-
return (t) => /* @__PURE__ */
|
|
373
|
+
return (t) => /* @__PURE__ */ B.createElement(Xi, Gt({
|
|
374
374
|
attr: Kt({}, e.attr)
|
|
375
375
|
}, t), Dn(e.child));
|
|
376
376
|
}
|
|
@@ -381,7 +381,7 @@ function Xi(e) {
|
|
|
381
381
|
size: i,
|
|
382
382
|
title: s
|
|
383
383
|
} = e, o = Wi(e, Hi), a = i || r.size || "1em", l;
|
|
384
|
-
return r.className && (l = r.className), e.className && (l = (l ? l + " " : "") + e.className), /* @__PURE__ */
|
|
384
|
+
return r.className && (l = r.className), e.className && (l = (l ? l + " " : "") + e.className), /* @__PURE__ */ B.createElement("svg", Gt({
|
|
385
385
|
stroke: "currentColor",
|
|
386
386
|
fill: "currentColor",
|
|
387
387
|
strokeWidth: "0"
|
|
@@ -393,9 +393,9 @@ function Xi(e) {
|
|
|
393
393
|
height: a,
|
|
394
394
|
width: a,
|
|
395
395
|
xmlns: "http://www.w3.org/2000/svg"
|
|
396
|
-
}), s && /* @__PURE__ */
|
|
396
|
+
}), s && /* @__PURE__ */ B.createElement("title", null, s), e.children);
|
|
397
397
|
};
|
|
398
|
-
return Xr !== void 0 ? /* @__PURE__ */
|
|
398
|
+
return Xr !== void 0 ? /* @__PURE__ */ B.createElement(Xr.Consumer, null, (r) => t(r)) : t(_n);
|
|
399
399
|
}
|
|
400
400
|
function Yi(e) {
|
|
401
401
|
return Vt({ attr: { viewBox: "0 0 24 24", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M12 16L6 10H18L12 16Z" }, child: [] }] })(e);
|
|
@@ -522,7 +522,7 @@ function Er(e) {
|
|
|
522
522
|
height: n
|
|
523
523
|
};
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function jn(e, t) {
|
|
526
526
|
var r = t.getRootNode && t.getRootNode();
|
|
527
527
|
if (e.contains(t))
|
|
528
528
|
return !0;
|
|
@@ -536,7 +536,7 @@ function Rn(e, t) {
|
|
|
536
536
|
}
|
|
537
537
|
return !1;
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Be(e) {
|
|
540
540
|
return ge(e).getComputedStyle(e);
|
|
541
541
|
}
|
|
542
542
|
function hs(e) {
|
|
@@ -562,18 +562,18 @@ function or(e) {
|
|
|
562
562
|
}
|
|
563
563
|
function Qr(e) {
|
|
564
564
|
return !be(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
565
|
-
|
|
565
|
+
Be(e).position === "fixed" ? null : e.offsetParent;
|
|
566
566
|
}
|
|
567
567
|
function ms(e) {
|
|
568
568
|
var t = /firefox/i.test(pr()), r = /Trident/i.test(pr());
|
|
569
569
|
if (r && be(e)) {
|
|
570
|
-
var n =
|
|
570
|
+
var n = Be(e);
|
|
571
571
|
if (n.position === "fixed")
|
|
572
572
|
return null;
|
|
573
573
|
}
|
|
574
574
|
var i = or(e);
|
|
575
575
|
for (Or(i) && (i = i.host); be(i) && ["html", "body"].indexOf(Ve(i)) < 0; ) {
|
|
576
|
-
var s =
|
|
576
|
+
var s = Be(i);
|
|
577
577
|
if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || t && s.willChange === "filter" || t && s.filter && s.filter !== "none")
|
|
578
578
|
return i;
|
|
579
579
|
i = i.parentNode;
|
|
@@ -581,11 +581,11 @@ function ms(e) {
|
|
|
581
581
|
return null;
|
|
582
582
|
}
|
|
583
583
|
function Dt(e) {
|
|
584
|
-
for (var t = ge(e), r = Qr(e); r && hs(r) &&
|
|
584
|
+
for (var t = ge(e), r = Qr(e); r && hs(r) && Be(r).position === "static"; )
|
|
585
585
|
r = Qr(r);
|
|
586
|
-
return r && (Ve(r) === "html" || Ve(r) === "body" &&
|
|
586
|
+
return r && (Ve(r) === "html" || Ve(r) === "body" && Be(r).position === "static") ? t : r || ms(e) || t;
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function Ar(e) {
|
|
589
589
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
590
590
|
}
|
|
591
591
|
function Nt(e, t, r) {
|
|
@@ -595,7 +595,7 @@ function ps(e, t, r) {
|
|
|
595
595
|
var n = Nt(e, t, r);
|
|
596
596
|
return n > r ? r : n;
|
|
597
597
|
}
|
|
598
|
-
function
|
|
598
|
+
function Bn() {
|
|
599
599
|
return {
|
|
600
600
|
top: 0,
|
|
601
601
|
right: 0,
|
|
@@ -603,8 +603,8 @@ function jn() {
|
|
|
603
603
|
left: 0
|
|
604
604
|
};
|
|
605
605
|
}
|
|
606
|
-
function
|
|
607
|
-
return Object.assign({},
|
|
606
|
+
function Rn(e) {
|
|
607
|
+
return Object.assign({}, Bn(), e);
|
|
608
608
|
}
|
|
609
609
|
function In(e, t) {
|
|
610
610
|
return t.reduce(function(r, n) {
|
|
@@ -614,18 +614,18 @@ function In(e, t) {
|
|
|
614
614
|
var vs = function(t, r) {
|
|
615
615
|
return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
|
|
616
616
|
placement: r.placement
|
|
617
|
-
})) : t,
|
|
617
|
+
})) : t, Rn(typeof t != "number" ? t : In(t, _t));
|
|
618
618
|
};
|
|
619
619
|
function gs(e) {
|
|
620
|
-
var t, r = e.state, n = e.name, i = e.options, s = r.elements.arrow, o = r.modifiersData.popperOffsets, a = Le(r.placement), l =
|
|
620
|
+
var t, r = e.state, n = e.name, i = e.options, s = r.elements.arrow, o = r.modifiersData.popperOffsets, a = Le(r.placement), l = Ar(a), f = [he, xe].indexOf(a) >= 0, u = f ? "height" : "width";
|
|
621
621
|
if (!(!s || !o)) {
|
|
622
|
-
var d = vs(i.padding, r), m = Er(s), v = l === "y" ? de : he, N = l === "y" ? we : xe, y = r.rects.reference[u] + r.rects.reference[l] - o[l] - r.rects.popper[u], b = o[l] - r.rects.reference[l], M = Dt(s), w = M ? l === "y" ? M.clientHeight || 0 : M.clientWidth || 0 : 0, _ = y / 2 - b / 2, O = d[v], L = w - m[u] - d[N],
|
|
623
|
-
r.modifiersData[n] = (t = {}, t[$] = k, t.centerOffset = k -
|
|
622
|
+
var d = vs(i.padding, r), m = Er(s), v = l === "y" ? de : he, N = l === "y" ? we : xe, y = r.rects.reference[u] + r.rects.reference[l] - o[l] - r.rects.popper[u], b = o[l] - r.rects.reference[l], M = Dt(s), w = M ? l === "y" ? M.clientHeight || 0 : M.clientWidth || 0 : 0, _ = y / 2 - b / 2, O = d[v], L = w - m[u] - d[N], S = w / 2 - m[u] / 2 + _, k = Nt(O, S, L), $ = l;
|
|
623
|
+
r.modifiersData[n] = (t = {}, t[$] = k, t.centerOffset = k - S, t);
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
626
|
function ys(e) {
|
|
627
627
|
var t = e.state, r = e.options, n = r.element, i = n === void 0 ? "[data-popper-arrow]" : n;
|
|
628
|
-
i != null && (typeof i == "string" && (i = t.elements.popper.querySelector(i), !i) ||
|
|
628
|
+
i != null && (typeof i == "string" && (i = t.elements.popper.querySelector(i), !i) || jn(t.elements.popper, i) && (t.elements.arrow = i));
|
|
629
629
|
}
|
|
630
630
|
const bs = {
|
|
631
631
|
name: "arrow",
|
|
@@ -663,25 +663,25 @@ function en(e) {
|
|
|
663
663
|
v = b.x, y = b.y;
|
|
664
664
|
var M = o.hasOwnProperty("x"), w = o.hasOwnProperty("y"), _ = he, O = de, L = window;
|
|
665
665
|
if (f) {
|
|
666
|
-
var
|
|
667
|
-
if (
|
|
666
|
+
var S = Dt(r), k = "clientHeight", $ = "clientWidth";
|
|
667
|
+
if (S === ge(r) && (S = qe(r), Be(S).position !== "static" && a === "absolute" && (k = "scrollHeight", $ = "scrollWidth")), S = S, i === de || (i === he || i === xe) && s === Et) {
|
|
668
668
|
O = we;
|
|
669
|
-
var
|
|
669
|
+
var R = d && S === L && L.visualViewport ? L.visualViewport.height : (
|
|
670
670
|
// $FlowFixMe[prop-missing]
|
|
671
|
-
|
|
671
|
+
S[k]
|
|
672
672
|
);
|
|
673
|
-
y -=
|
|
673
|
+
y -= R - n.height, y *= l ? 1 : -1;
|
|
674
674
|
}
|
|
675
675
|
if (i === he || (i === de || i === we) && s === Et) {
|
|
676
676
|
_ = xe;
|
|
677
|
-
var H = d &&
|
|
677
|
+
var H = d && S === L && L.visualViewport ? L.visualViewport.width : (
|
|
678
678
|
// $FlowFixMe[prop-missing]
|
|
679
|
-
|
|
679
|
+
S[$]
|
|
680
680
|
);
|
|
681
681
|
v -= H - n.width, v *= l ? 1 : -1;
|
|
682
682
|
}
|
|
683
683
|
}
|
|
684
|
-
var
|
|
684
|
+
var j = Object.assign({
|
|
685
685
|
position: a
|
|
686
686
|
}, f && ws), D = u === !0 ? xs({
|
|
687
687
|
x: v,
|
|
@@ -692,9 +692,9 @@ function en(e) {
|
|
|
692
692
|
};
|
|
693
693
|
if (v = D.x, y = D.y, l) {
|
|
694
694
|
var I;
|
|
695
|
-
return Object.assign({},
|
|
695
|
+
return Object.assign({}, j, (I = {}, I[O] = w ? "0" : "", I[_] = M ? "0" : "", I.transform = (L.devicePixelRatio || 1) <= 1 ? "translate(" + v + "px, " + y + "px)" : "translate3d(" + v + "px, " + y + "px, 0)", I));
|
|
696
696
|
}
|
|
697
|
-
return Object.assign({},
|
|
697
|
+
return Object.assign({}, j, (t = {}, t[O] = w ? y + "px" : "", t[_] = M ? v + "px" : "", t.transform = "", t));
|
|
698
698
|
}
|
|
699
699
|
function Ns(e) {
|
|
700
700
|
var t = e.state, r = e.options, n = r.gpuAcceleration, i = n === void 0 ? !0 : n, s = r.adaptive, o = s === void 0 ? !0 : s, a = r.roundOffsets, l = a === void 0 ? !0 : a, f = {
|
|
@@ -759,16 +759,16 @@ function qt(e) {
|
|
|
759
759
|
return Es[t];
|
|
760
760
|
});
|
|
761
761
|
}
|
|
762
|
-
var
|
|
762
|
+
var As = {
|
|
763
763
|
start: "end",
|
|
764
764
|
end: "start"
|
|
765
765
|
};
|
|
766
766
|
function tn(e) {
|
|
767
767
|
return e.replace(/start|end/g, function(t) {
|
|
768
|
-
return
|
|
768
|
+
return As[t];
|
|
769
769
|
});
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function Sr(e) {
|
|
772
772
|
var t = ge(e), r = t.pageXOffset, n = t.pageYOffset;
|
|
773
773
|
return {
|
|
774
774
|
scrollLeft: r,
|
|
@@ -776,9 +776,9 @@ function Ar(e) {
|
|
|
776
776
|
};
|
|
777
777
|
}
|
|
778
778
|
function Fr(e) {
|
|
779
|
-
return ft(qe(e)).left +
|
|
779
|
+
return ft(qe(e)).left + Sr(e).scrollLeft;
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function Ss(e, t) {
|
|
782
782
|
var r = ge(e), n = qe(e), i = r.visualViewport, s = n.clientWidth, o = n.clientHeight, a = 0, l = 0;
|
|
783
783
|
if (i) {
|
|
784
784
|
s = i.width, o = i.height;
|
|
@@ -793,8 +793,8 @@ function As(e, t) {
|
|
|
793
793
|
};
|
|
794
794
|
}
|
|
795
795
|
function Fs(e) {
|
|
796
|
-
var t, r = qe(e), n =
|
|
797
|
-
return
|
|
796
|
+
var t, r = qe(e), n = Sr(e), i = (t = e.ownerDocument) == null ? void 0 : t.body, s = Qe(r.scrollWidth, r.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), o = Qe(r.scrollHeight, r.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), a = -n.scrollLeft + Fr(e), l = -n.scrollTop;
|
|
797
|
+
return Be(i || r).direction === "rtl" && (a += Qe(r.clientWidth, i ? i.clientWidth : 0) - s), {
|
|
798
798
|
width: s,
|
|
799
799
|
height: o,
|
|
800
800
|
x: a,
|
|
@@ -802,7 +802,7 @@ function Fs(e) {
|
|
|
802
802
|
};
|
|
803
803
|
}
|
|
804
804
|
function Lr(e) {
|
|
805
|
-
var t =
|
|
805
|
+
var t = Be(e), r = t.overflow, n = t.overflowX, i = t.overflowY;
|
|
806
806
|
return /auto|scroll|overlay|hidden/.test(r + i + n);
|
|
807
807
|
}
|
|
808
808
|
function $n(e) {
|
|
@@ -830,12 +830,12 @@ function Ls(e, t) {
|
|
|
830
830
|
return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
|
|
831
831
|
}
|
|
832
832
|
function rn(e, t, r) {
|
|
833
|
-
return t === Tn ? vr(
|
|
833
|
+
return t === Tn ? vr(Ss(e, r)) : tt(t) ? Ls(t, r) : vr(Fs(qe(e)));
|
|
834
834
|
}
|
|
835
835
|
function Vs(e) {
|
|
836
|
-
var t = Ct(or(e)), r = ["absolute", "fixed"].indexOf(
|
|
836
|
+
var t = Ct(or(e)), r = ["absolute", "fixed"].indexOf(Be(e).position) >= 0, n = r && be(e) ? Dt(e) : e;
|
|
837
837
|
return tt(n) ? t.filter(function(i) {
|
|
838
|
-
return tt(i) &&
|
|
838
|
+
return tt(i) && jn(i, n) && Ve(i) !== "body";
|
|
839
839
|
}) : [];
|
|
840
840
|
}
|
|
841
841
|
function _s(e, t, r, n) {
|
|
@@ -878,7 +878,7 @@ function Hn(e) {
|
|
|
878
878
|
y: t.y
|
|
879
879
|
};
|
|
880
880
|
}
|
|
881
|
-
var f = i ?
|
|
881
|
+
var f = i ? Ar(i) : null;
|
|
882
882
|
if (f != null) {
|
|
883
883
|
var u = f === "y" ? "height" : "width";
|
|
884
884
|
switch (s) {
|
|
@@ -892,20 +892,20 @@ function Hn(e) {
|
|
|
892
892
|
}
|
|
893
893
|
return l;
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function At(e, t) {
|
|
896
896
|
t === void 0 && (t = {});
|
|
897
|
-
var r = t, n = r.placement, i = n === void 0 ? e.placement : n, s = r.strategy, o = s === void 0 ? e.strategy : s, a = r.boundary, l = a === void 0 ? Ji : a, f = r.rootBoundary, u = f === void 0 ? Tn : f, d = r.elementContext, m = d === void 0 ? bt : d, v = r.altBoundary, N = v === void 0 ? !1 : v, y = r.padding, b = y === void 0 ? 0 : y, M =
|
|
898
|
-
reference:
|
|
897
|
+
var r = t, n = r.placement, i = n === void 0 ? e.placement : n, s = r.strategy, o = s === void 0 ? e.strategy : s, a = r.boundary, l = a === void 0 ? Ji : a, f = r.rootBoundary, u = f === void 0 ? Tn : f, d = r.elementContext, m = d === void 0 ? bt : d, v = r.altBoundary, N = v === void 0 ? !1 : v, y = r.padding, b = y === void 0 ? 0 : y, M = Rn(typeof b != "number" ? b : In(b, _t)), w = m === bt ? Qi : bt, _ = e.rects.popper, O = e.elements[N ? w : m], L = _s(tt(O) ? O : O.contextElement || qe(e.elements.popper), l, u, o), S = ft(e.elements.reference), k = Hn({
|
|
898
|
+
reference: S,
|
|
899
899
|
element: _,
|
|
900
900
|
placement: i
|
|
901
|
-
}), $ = vr(Object.assign({}, _, k)),
|
|
902
|
-
top: L.top -
|
|
903
|
-
bottom:
|
|
904
|
-
left: L.left -
|
|
905
|
-
right:
|
|
906
|
-
},
|
|
907
|
-
if (m === bt &&
|
|
908
|
-
var D =
|
|
901
|
+
}), $ = vr(Object.assign({}, _, k)), R = m === bt ? $ : S, H = {
|
|
902
|
+
top: L.top - R.top + M.top,
|
|
903
|
+
bottom: R.bottom - L.bottom + M.bottom,
|
|
904
|
+
left: L.left - R.left + M.left,
|
|
905
|
+
right: R.right - L.right + M.right
|
|
906
|
+
}, j = e.modifiersData.offset;
|
|
907
|
+
if (m === bt && j) {
|
|
908
|
+
var D = j[i];
|
|
909
909
|
Object.keys(H).forEach(function(I) {
|
|
910
910
|
var q = [xe, we].indexOf(I) >= 0 ? 1 : -1, J = [de, we].indexOf(I) >= 0 ? "y" : "x";
|
|
911
911
|
H[I] += D[J] * q;
|
|
@@ -922,7 +922,7 @@ function Ds(e, t) {
|
|
|
922
922
|
});
|
|
923
923
|
m.length === 0 && (m = d);
|
|
924
924
|
var v = m.reduce(function(N, y) {
|
|
925
|
-
return N[y] =
|
|
925
|
+
return N[y] = At(e, {
|
|
926
926
|
placement: y,
|
|
927
927
|
boundary: i,
|
|
928
928
|
rootBoundary: s,
|
|
@@ -942,8 +942,8 @@ function Ts(e) {
|
|
|
942
942
|
function Ms(e) {
|
|
943
943
|
var t = e.state, r = e.options, n = e.name;
|
|
944
944
|
if (!t.modifiersData[n]._skip) {
|
|
945
|
-
for (var i = r.mainAxis, s = i === void 0 ? !0 : i, o = r.altAxis, a = o === void 0 ? !0 : o, l = r.fallbackPlacements, f = r.padding, u = r.boundary, d = r.rootBoundary, m = r.altBoundary, v = r.flipVariations, N = v === void 0 ? !0 : v, y = r.allowedAutoPlacements, b = t.options.placement, M = Le(b), w = M === b, _ = l || (w || !N ? [qt(b)] : Ts(b)), O = [b].concat(_).reduce(function(
|
|
946
|
-
return
|
|
945
|
+
for (var i = r.mainAxis, s = i === void 0 ? !0 : i, o = r.altAxis, a = o === void 0 ? !0 : o, l = r.fallbackPlacements, f = r.padding, u = r.boundary, d = r.rootBoundary, m = r.altBoundary, v = r.flipVariations, N = v === void 0 ? !0 : v, y = r.allowedAutoPlacements, b = t.options.placement, M = Le(b), w = M === b, _ = l || (w || !N ? [qt(b)] : Ts(b)), O = [b].concat(_).reduce(function(Re, Ce) {
|
|
946
|
+
return Re.concat(Le(Ce) === kr ? Ds(t, {
|
|
947
947
|
placement: Ce,
|
|
948
948
|
boundary: u,
|
|
949
949
|
rootBoundary: d,
|
|
@@ -951,40 +951,40 @@ function Ms(e) {
|
|
|
951
951
|
flipVariations: N,
|
|
952
952
|
allowedAutoPlacements: y
|
|
953
953
|
}) : Ce);
|
|
954
|
-
}, []), L = t.rects.reference,
|
|
955
|
-
var
|
|
956
|
-
placement:
|
|
954
|
+
}, []), L = t.rects.reference, S = t.rects.popper, k = /* @__PURE__ */ new Map(), $ = !0, R = O[0], H = 0; H < O.length; H++) {
|
|
955
|
+
var j = O[H], D = Le(j), I = dt(j) === ct, q = [de, we].indexOf(D) >= 0, J = q ? "width" : "height", X = At(t, {
|
|
956
|
+
placement: j,
|
|
957
957
|
boundary: u,
|
|
958
958
|
rootBoundary: d,
|
|
959
959
|
altBoundary: m,
|
|
960
960
|
padding: f
|
|
961
961
|
}), Q = q ? I ? xe : he : I ? we : de;
|
|
962
|
-
L[J] >
|
|
962
|
+
L[J] > S[J] && (Q = qt(Q));
|
|
963
963
|
var Ee = qt(Q), ue = [];
|
|
964
|
-
if (s && ue.push(X[D] <= 0), a && ue.push(X[Q] <= 0, X[Ee] <= 0), ue.every(function(
|
|
965
|
-
return
|
|
964
|
+
if (s && ue.push(X[D] <= 0), a && ue.push(X[Q] <= 0, X[Ee] <= 0), ue.every(function(Re) {
|
|
965
|
+
return Re;
|
|
966
966
|
})) {
|
|
967
|
-
|
|
967
|
+
R = j, $ = !1;
|
|
968
968
|
break;
|
|
969
969
|
}
|
|
970
|
-
k.set(
|
|
970
|
+
k.set(j, ue);
|
|
971
971
|
}
|
|
972
972
|
if ($)
|
|
973
973
|
for (var Te = N ? 3 : 1, ot = function(Ce) {
|
|
974
974
|
var Xe = O.find(function(Ie) {
|
|
975
|
-
var
|
|
976
|
-
if (
|
|
977
|
-
return
|
|
975
|
+
var Ae = k.get(Ie);
|
|
976
|
+
if (Ae)
|
|
977
|
+
return Ae.slice(0, Ce).every(function(Ye) {
|
|
978
978
|
return Ye;
|
|
979
979
|
});
|
|
980
980
|
});
|
|
981
981
|
if (Xe)
|
|
982
|
-
return
|
|
982
|
+
return R = Xe, "break";
|
|
983
983
|
}, ze = Te; ze > 0; ze--) {
|
|
984
984
|
var Ze = ot(ze);
|
|
985
985
|
if (Ze === "break") break;
|
|
986
986
|
}
|
|
987
|
-
t.placement !==
|
|
987
|
+
t.placement !== R && (t.modifiersData[n]._skip = !0, t.placement = R, t.reset = !0);
|
|
988
988
|
}
|
|
989
989
|
}
|
|
990
990
|
const Ps = {
|
|
@@ -1013,10 +1013,10 @@ function sn(e) {
|
|
|
1013
1013
|
return e[t] >= 0;
|
|
1014
1014
|
});
|
|
1015
1015
|
}
|
|
1016
|
-
function
|
|
1017
|
-
var t = e.state, r = e.name, n = t.rects.reference, i = t.rects.popper, s = t.modifiersData.preventOverflow, o =
|
|
1016
|
+
function js(e) {
|
|
1017
|
+
var t = e.state, r = e.name, n = t.rects.reference, i = t.rects.popper, s = t.modifiersData.preventOverflow, o = At(t, {
|
|
1018
1018
|
elementContext: "reference"
|
|
1019
|
-
}), a =
|
|
1019
|
+
}), a = At(t, {
|
|
1020
1020
|
altBoundary: !0
|
|
1021
1021
|
}), l = nn(o, n), f = nn(a, i, s), u = sn(l), d = sn(f);
|
|
1022
1022
|
t.modifiersData[r] = {
|
|
@@ -1029,14 +1029,14 @@ function Rs(e) {
|
|
|
1029
1029
|
"data-popper-escaped": d
|
|
1030
1030
|
});
|
|
1031
1031
|
}
|
|
1032
|
-
const
|
|
1032
|
+
const Bs = {
|
|
1033
1033
|
name: "hide",
|
|
1034
1034
|
enabled: !0,
|
|
1035
1035
|
phase: "main",
|
|
1036
1036
|
requiresIfExists: ["preventOverflow"],
|
|
1037
|
-
fn:
|
|
1037
|
+
fn: js
|
|
1038
1038
|
};
|
|
1039
|
-
function
|
|
1039
|
+
function Rs(e, t, r) {
|
|
1040
1040
|
var n = Le(e), i = [he, de].indexOf(n) >= 0 ? -1 : 1, s = typeof r == "function" ? r(Object.assign({}, t, {
|
|
1041
1041
|
placement: e
|
|
1042
1042
|
})) : r, o = s[0], a = s[1];
|
|
@@ -1050,7 +1050,7 @@ function Bs(e, t, r) {
|
|
|
1050
1050
|
}
|
|
1051
1051
|
function Is(e) {
|
|
1052
1052
|
var t = e.state, r = e.options, n = e.name, i = r.offset, s = i === void 0 ? [0, 0] : i, o = Mn.reduce(function(u, d) {
|
|
1053
|
-
return u[d] =
|
|
1053
|
+
return u[d] = Rs(d, t.rects, s), u;
|
|
1054
1054
|
}, {}), a = o[t.placement], l = a.x, f = a.y;
|
|
1055
1055
|
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += l, t.modifiersData.popperOffsets.y += f), t.modifiersData[n] = o;
|
|
1056
1056
|
}
|
|
@@ -1080,34 +1080,34 @@ function Us(e) {
|
|
|
1080
1080
|
return e === "x" ? "y" : "x";
|
|
1081
1081
|
}
|
|
1082
1082
|
function qs(e) {
|
|
1083
|
-
var t = e.state, r = e.options, n = e.name, i = r.mainAxis, s = i === void 0 ? !0 : i, o = r.altAxis, a = o === void 0 ? !1 : o, l = r.boundary, f = r.rootBoundary, u = r.altBoundary, d = r.padding, m = r.tether, v = m === void 0 ? !0 : m, N = r.tetherOffset, y = N === void 0 ? 0 : N, b =
|
|
1083
|
+
var t = e.state, r = e.options, n = e.name, i = r.mainAxis, s = i === void 0 ? !0 : i, o = r.altAxis, a = o === void 0 ? !1 : o, l = r.boundary, f = r.rootBoundary, u = r.altBoundary, d = r.padding, m = r.tether, v = m === void 0 ? !0 : m, N = r.tetherOffset, y = N === void 0 ? 0 : N, b = At(t, {
|
|
1084
1084
|
boundary: l,
|
|
1085
1085
|
rootBoundary: f,
|
|
1086
1086
|
padding: d,
|
|
1087
1087
|
altBoundary: u
|
|
1088
|
-
}), M = Le(t.placement), w = dt(t.placement), _ = !w, O =
|
|
1088
|
+
}), M = Le(t.placement), w = dt(t.placement), _ = !w, O = Ar(M), L = Us(O), S = t.modifiersData.popperOffsets, k = t.rects.reference, $ = t.rects.popper, R = typeof y == "function" ? y(Object.assign({}, t.rects, {
|
|
1089
1089
|
placement: t.placement
|
|
1090
|
-
})) : y, H = typeof
|
|
1091
|
-
mainAxis:
|
|
1092
|
-
altAxis:
|
|
1090
|
+
})) : y, H = typeof R == "number" ? {
|
|
1091
|
+
mainAxis: R,
|
|
1092
|
+
altAxis: R
|
|
1093
1093
|
} : Object.assign({
|
|
1094
1094
|
mainAxis: 0,
|
|
1095
1095
|
altAxis: 0
|
|
1096
|
-
},
|
|
1096
|
+
}, R), j = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, D = {
|
|
1097
1097
|
x: 0,
|
|
1098
1098
|
y: 0
|
|
1099
1099
|
};
|
|
1100
|
-
if (
|
|
1100
|
+
if (S) {
|
|
1101
1101
|
if (s) {
|
|
1102
|
-
var I, q = O === "y" ? de : he, J = O === "y" ? we : xe, X = O === "y" ? "height" : "width", Q =
|
|
1102
|
+
var I, q = O === "y" ? de : he, J = O === "y" ? we : xe, X = O === "y" ? "height" : "width", Q = S[O], Ee = Q + b[q], ue = Q - b[J], Te = v ? -$[X] / 2 : 0, ot = w === ct ? k[X] : $[X], ze = w === ct ? -$[X] : -k[X], Ze = t.elements.arrow, Re = v && Ze ? Er(Ze) : {
|
|
1103
1103
|
width: 0,
|
|
1104
1104
|
height: 0
|
|
1105
|
-
}, Ce = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding :
|
|
1106
|
-
|
|
1105
|
+
}, Ce = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Bn(), Xe = Ce[q], Ie = Ce[J], Ae = Nt(0, k[X], Re[X]), Ye = _ ? k[X] / 2 - Te - Ae - Xe - H.mainAxis : ot - Ae - Xe - H.mainAxis, gt = _ ? -k[X] / 2 + Te + Ae + Ie + H.mainAxis : ze + Ae + Ie + H.mainAxis, yt = t.elements.arrow && Dt(t.elements.arrow), Mt = yt ? O === "y" ? yt.clientTop || 0 : yt.clientLeft || 0 : 0, Pt = (I = j == null ? void 0 : j[O]) != null ? I : 0, jt = Q + Ye - Pt - Mt, Bt = Q + gt - Pt, Rt = Nt(v ? Jt(Ee, jt) : Ee, Q, v ? Qe(ue, Bt) : ue);
|
|
1106
|
+
S[O] = Rt, D[O] = Rt - Q;
|
|
1107
1107
|
}
|
|
1108
1108
|
if (a) {
|
|
1109
|
-
var It, qr = O === "x" ? de : he, $t = O === "x" ? we : xe, h =
|
|
1110
|
-
|
|
1109
|
+
var It, qr = O === "x" ? de : he, $t = O === "x" ? we : xe, h = S[L], p = L === "y" ? "height" : "width", g = h + b[qr], V = h - b[$t], E = [de, he].indexOf(M) !== -1, C = (It = j == null ? void 0 : j[L]) != null ? It : 0, P = E ? g : h - k[p] - $[p] - C + H.altAxis, U = E ? h + k[p] + $[p] - C - H.altAxis : V, z = v && E ? ps(P, h, U) : Nt(v ? P : g, h, v ? U : V);
|
|
1110
|
+
S[L] = z, D[L] = z - h;
|
|
1111
1111
|
}
|
|
1112
1112
|
t.modifiersData[n] = D;
|
|
1113
1113
|
}
|
|
@@ -1126,7 +1126,7 @@ function Zs(e) {
|
|
|
1126
1126
|
};
|
|
1127
1127
|
}
|
|
1128
1128
|
function Xs(e) {
|
|
1129
|
-
return e === ge(e) || !be(e) ?
|
|
1129
|
+
return e === ge(e) || !be(e) ? Sr(e) : Zs(e);
|
|
1130
1130
|
}
|
|
1131
1131
|
function Ys(e) {
|
|
1132
1132
|
var t = e.getBoundingClientRect(), r = ut(t.width) / e.offsetWidth || 1, n = ut(t.height) / e.offsetHeight || 1;
|
|
@@ -1259,11 +1259,11 @@ function to(e) {
|
|
|
1259
1259
|
u.reset = !1, O = -1;
|
|
1260
1260
|
continue;
|
|
1261
1261
|
}
|
|
1262
|
-
var L = u.orderedModifiers[O],
|
|
1263
|
-
typeof
|
|
1262
|
+
var L = u.orderedModifiers[O], S = L.fn, k = L.options, $ = k === void 0 ? {} : k, R = L.name;
|
|
1263
|
+
typeof S == "function" && (u = S({
|
|
1264
1264
|
state: u,
|
|
1265
1265
|
options: $,
|
|
1266
|
-
name:
|
|
1266
|
+
name: R,
|
|
1267
1267
|
instance: v
|
|
1268
1268
|
}) || u);
|
|
1269
1269
|
}
|
|
@@ -1295,9 +1295,9 @@ function to(e) {
|
|
|
1295
1295
|
name: M,
|
|
1296
1296
|
instance: v,
|
|
1297
1297
|
options: _
|
|
1298
|
-
}),
|
|
1298
|
+
}), S = function() {
|
|
1299
1299
|
};
|
|
1300
|
-
d.push(L ||
|
|
1300
|
+
d.push(L || S);
|
|
1301
1301
|
}
|
|
1302
1302
|
});
|
|
1303
1303
|
}
|
|
@@ -1309,7 +1309,7 @@ function to(e) {
|
|
|
1309
1309
|
return v;
|
|
1310
1310
|
};
|
|
1311
1311
|
}
|
|
1312
|
-
var ro = [Os, Ws, Cs, ds, $s, Ps, zs, bs,
|
|
1312
|
+
var ro = [Os, Ws, Cs, ds, $s, Ps, zs, bs, Bs], no = /* @__PURE__ */ to({
|
|
1313
1313
|
defaultModifiers: ro
|
|
1314
1314
|
}), Ut = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1315
1315
|
function Wn(e) {
|
|
@@ -1504,7 +1504,7 @@ function Un({
|
|
|
1504
1504
|
placement: n,
|
|
1505
1505
|
modifiers: [{ name: "offset", options: { offset: i } }]
|
|
1506
1506
|
});
|
|
1507
|
-
return po([l, r], a, { enabled: e }), /* @__PURE__ */ c(ar, { mounted: e, children: /* @__PURE__ */ c("div", { ref: f, style: { ...u.popper, ...o }, className:
|
|
1507
|
+
return po([l, r], a, { enabled: e }), /* @__PURE__ */ c(ar, { mounted: e, children: /* @__PURE__ */ c("div", { ref: f, style: { ...u.popper, ...o }, className: A("bbn-popover", t), children: s }) });
|
|
1508
1508
|
}
|
|
1509
1509
|
function vo(e) {
|
|
1510
1510
|
const [t, r] = oe({ width: 0, height: 0 });
|
|
@@ -1544,24 +1544,24 @@ const go = (e) => e.label, qn = De(
|
|
|
1544
1544
|
...y
|
|
1545
1545
|
}, b) => {
|
|
1546
1546
|
const M = it(null);
|
|
1547
|
-
|
|
1547
|
+
An(b, () => M.current, []);
|
|
1548
1548
|
const { width: w } = vo(M.current), [_, O] = lt({
|
|
1549
1549
|
value: s,
|
|
1550
1550
|
defaultValue: o,
|
|
1551
|
-
onStateChange: (
|
|
1552
|
-
}), [L,
|
|
1551
|
+
onStateChange: (j) => void (j ? d == null ? void 0 : d() : v == null ? void 0 : v())
|
|
1552
|
+
}), [L, S] = lt({
|
|
1553
1553
|
value: r,
|
|
1554
1554
|
defaultValue: n,
|
|
1555
1555
|
onStateChange: m
|
|
1556
1556
|
}), k = We(
|
|
1557
|
-
() => a.find((
|
|
1557
|
+
() => a.find((j) => j.value === L),
|
|
1558
1558
|
[a, L]
|
|
1559
1559
|
), $ = ae(
|
|
1560
|
-
(
|
|
1561
|
-
|
|
1560
|
+
(j) => {
|
|
1561
|
+
S(j.value), O(!1);
|
|
1562
1562
|
},
|
|
1563
|
-
[
|
|
1564
|
-
),
|
|
1563
|
+
[S, O]
|
|
1564
|
+
), R = ae(() => {
|
|
1565
1565
|
O(!1);
|
|
1566
1566
|
}, [O]), H = ae(() => {
|
|
1567
1567
|
e || O(!_);
|
|
@@ -1571,13 +1571,13 @@ const go = (e) => e.label, qn = De(
|
|
|
1571
1571
|
"div",
|
|
1572
1572
|
{
|
|
1573
1573
|
ref: M,
|
|
1574
|
-
className:
|
|
1574
|
+
className: A("bbn-select", e && "bbn-select-disabled", `bbn-select-${u}`, t),
|
|
1575
1575
|
onClick: H,
|
|
1576
1576
|
tabIndex: e ? -1 : 0,
|
|
1577
1577
|
...y,
|
|
1578
1578
|
children: [
|
|
1579
1579
|
/* @__PURE__ */ c("span", { children: k ? N(k) : i }),
|
|
1580
|
-
/* @__PURE__ */ c(Gi, { className:
|
|
1580
|
+
/* @__PURE__ */ c(Gi, { className: A("bbn-select-icon", _ && "bbn-select-icon-open"), size: 20 })
|
|
1581
1581
|
]
|
|
1582
1582
|
}
|
|
1583
1583
|
),
|
|
@@ -1585,24 +1585,24 @@ const go = (e) => e.label, qn = De(
|
|
|
1585
1585
|
Un,
|
|
1586
1586
|
{
|
|
1587
1587
|
anchorEl: M.current,
|
|
1588
|
-
className:
|
|
1588
|
+
className: A("bbn-select-menu custom-scrollbar", f),
|
|
1589
1589
|
open: _ && !e,
|
|
1590
|
-
onClickOutside:
|
|
1590
|
+
onClickOutside: R,
|
|
1591
1591
|
offset: [0, 4],
|
|
1592
1592
|
placement: "bottom-start",
|
|
1593
1593
|
style: { width: w },
|
|
1594
|
-
children: a.map((
|
|
1594
|
+
children: a.map((j) => /* @__PURE__ */ c(
|
|
1595
1595
|
"div",
|
|
1596
1596
|
{
|
|
1597
|
-
className:
|
|
1597
|
+
className: A(
|
|
1598
1598
|
"bbn-select-option",
|
|
1599
|
-
(k == null ? void 0 : k.value) ===
|
|
1599
|
+
(k == null ? void 0 : k.value) === j.value && "bbn-select-option-selected",
|
|
1600
1600
|
l
|
|
1601
1601
|
),
|
|
1602
|
-
onClick: () => $(
|
|
1603
|
-
children:
|
|
1602
|
+
onClick: () => $(j),
|
|
1603
|
+
children: j.label
|
|
1604
1604
|
},
|
|
1605
|
-
|
|
1605
|
+
j.value
|
|
1606
1606
|
))
|
|
1607
1607
|
}
|
|
1608
1608
|
)
|
|
@@ -1611,20 +1611,20 @@ const go = (e) => e.label, qn = De(
|
|
|
1611
1611
|
);
|
|
1612
1612
|
qn.displayName = "Select";
|
|
1613
1613
|
const Vr = De(
|
|
1614
|
-
({ className: e, prefix: t, suffix: r, disabled: n = !1, state: i = "default", ...s }, o) => /* @__PURE__ */ x("div", { className:
|
|
1614
|
+
({ className: e, prefix: t, suffix: r, disabled: n = !1, state: i = "default", ...s }, o) => /* @__PURE__ */ x("div", { className: A("bbn-input", n && "bbn-input-disabled", `bbn-input-${i}`), children: [
|
|
1615
1615
|
t && /* @__PURE__ */ c("div", { className: "bbn-input-prefix", children: t }),
|
|
1616
|
-
/* @__PURE__ */ c("input", { ref: o, className:
|
|
1616
|
+
/* @__PURE__ */ c("input", { ref: o, className: A("bbn-input-field", e), disabled: n, ...s }),
|
|
1617
1617
|
r && /* @__PURE__ */ c("div", { className: "bbn-input-suffix", children: r })
|
|
1618
1618
|
] })
|
|
1619
1619
|
);
|
|
1620
1620
|
Vr.displayName = "Input";
|
|
1621
1621
|
function lr({ children: e, label: t, hint: r, state: n = "default", className: i }) {
|
|
1622
|
-
return /* @__PURE__ */ x("div", { className:
|
|
1622
|
+
return /* @__PURE__ */ x("div", { className: A("bbn-form-control", i), children: [
|
|
1623
1623
|
t ? /* @__PURE__ */ x("label", { className: "bbn-form-control-label", children: [
|
|
1624
1624
|
/* @__PURE__ */ c("div", { className: "bbn-form-control-title", children: t }),
|
|
1625
1625
|
e
|
|
1626
1626
|
] }) : e,
|
|
1627
|
-
r && /* @__PURE__ */ c("div", { className:
|
|
1627
|
+
r && /* @__PURE__ */ c("div", { className: A("bbn-form-control-hint", `bbn-form-control-hint-${n}`), children: r })
|
|
1628
1628
|
] });
|
|
1629
1629
|
}
|
|
1630
1630
|
const zn = sr({
|
|
@@ -1651,7 +1651,7 @@ function ml({ children: e }) {
|
|
|
1651
1651
|
return /* @__PURE__ */ c(zn.Provider, { value: o, children: e });
|
|
1652
1652
|
}
|
|
1653
1653
|
function Zn({ open: e = !1 } = {}) {
|
|
1654
|
-
const t =
|
|
1654
|
+
const t = Sn(), [r, n] = oe(e), { updateDialog: i, removeDialog: s } = Lt(zn), o = e || r;
|
|
1655
1655
|
ce(
|
|
1656
1656
|
() => () => {
|
|
1657
1657
|
s(t);
|
|
@@ -1674,7 +1674,7 @@ const Xn = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
|
|
|
1674
1674
|
"div",
|
|
1675
1675
|
{
|
|
1676
1676
|
...t,
|
|
1677
|
-
className:
|
|
1677
|
+
className: A("bbn-backdrop", e ? "animate-backdrop-in" : "animate-backdrop-out", t.className)
|
|
1678
1678
|
}
|
|
1679
1679
|
), yo = ({
|
|
1680
1680
|
children: e,
|
|
@@ -1688,10 +1688,10 @@ const Xn = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
|
|
|
1688
1688
|
}) => {
|
|
1689
1689
|
const { mounted: l, unmount: f } = Zn({ open: t });
|
|
1690
1690
|
return /* @__PURE__ */ x(ar, { mounted: l, children: [
|
|
1691
|
-
/* @__PURE__ */ c("div", { ...a, className:
|
|
1691
|
+
/* @__PURE__ */ c("div", { ...a, className: A("bbn-dialog-wrapper", r), children: /* @__PURE__ */ c(
|
|
1692
1692
|
"div",
|
|
1693
1693
|
{
|
|
1694
|
-
className:
|
|
1694
|
+
className: A("bbn-dialog", t ? "animate-modal-in" : "animate-modal-out", o),
|
|
1695
1695
|
onAnimationEnd: f,
|
|
1696
1696
|
children: e
|
|
1697
1697
|
}
|
|
@@ -1718,7 +1718,7 @@ const Xn = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
|
|
|
1718
1718
|
return /* @__PURE__ */ c(
|
|
1719
1719
|
"div",
|
|
1720
1720
|
{
|
|
1721
|
-
className:
|
|
1721
|
+
className: A(
|
|
1722
1722
|
"flex items-center justify-center",
|
|
1723
1723
|
i && {
|
|
1724
1724
|
default: "bg-accent-secondary/10",
|
|
@@ -1796,7 +1796,7 @@ const Xn = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
|
|
|
1796
1796
|
viewBox: "0 0 14 16",
|
|
1797
1797
|
fill: "none",
|
|
1798
1798
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1799
|
-
className:
|
|
1799
|
+
className: A("transition-opacity duration-200", i, e),
|
|
1800
1800
|
children: /* @__PURE__ */ c(
|
|
1801
1801
|
"path",
|
|
1802
1802
|
{
|
|
@@ -1820,7 +1820,7 @@ const Xn = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
|
|
|
1820
1820
|
viewBox: "0 0 14 14",
|
|
1821
1821
|
fill: "none",
|
|
1822
1822
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1823
|
-
className:
|
|
1823
|
+
className: A("transition-opacity duration-200", i, e),
|
|
1824
1824
|
children: /* @__PURE__ */ c(
|
|
1825
1825
|
"path",
|
|
1826
1826
|
{
|
|
@@ -1845,7 +1845,7 @@ const Xn = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
|
|
|
1845
1845
|
"div",
|
|
1846
1846
|
{
|
|
1847
1847
|
...i,
|
|
1848
|
-
className:
|
|
1848
|
+
className: A(
|
|
1849
1849
|
"bbn-dialog-mobile",
|
|
1850
1850
|
t ? "animate-mobile-modal-in" : "animate-mobile-modal-out",
|
|
1851
1851
|
r
|
|
@@ -1867,7 +1867,7 @@ const Xn = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
|
|
|
1867
1867
|
),
|
|
1868
1868
|
/* @__PURE__ */ c(Xn, { open: t, onClick: n })
|
|
1869
1869
|
] });
|
|
1870
|
-
}, No = ({ className: e, children: t, title: r, onClose: n }) => /* @__PURE__ */ x("div", { className:
|
|
1870
|
+
}, No = ({ className: e, children: t, title: r, onClose: n }) => /* @__PURE__ */ x("div", { className: A("bbn-dialog-header", e), children: [
|
|
1871
1871
|
/* @__PURE__ */ x("div", { className: "bbn-dialog-title", children: [
|
|
1872
1872
|
/* @__PURE__ */ c(Cr, { variant: "h5", children: r }),
|
|
1873
1873
|
!!n && /* @__PURE__ */ c(Fn, { 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(
|
|
@@ -1879,44 +1879,44 @@ const Xn = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
|
|
|
1879
1879
|
) }) })
|
|
1880
1880
|
] }),
|
|
1881
1881
|
t
|
|
1882
|
-
] }), Co = (e) => /* @__PURE__ */ c("div", { ...e, className:
|
|
1882
|
+
] }), Co = (e) => /* @__PURE__ */ c("div", { ...e, className: A("bbn-dialog-body", e.className) }), ko = (e) => /* @__PURE__ */ c("div", { ...e, className: A("bbn-dialog-footer", e.className) });
|
|
1883
1883
|
function pl({ className: e, ...t }) {
|
|
1884
|
-
return /* @__PURE__ */ c("span", { ...t, className:
|
|
1884
|
+
return /* @__PURE__ */ c("span", { ...t, className: A("bbn-chip", e) });
|
|
1885
1885
|
}
|
|
1886
1886
|
function vl({ size: e = 40, className: t }) {
|
|
1887
1887
|
return /* @__PURE__ */ c("span", { className: ve("bbn-loader text-current", t), style: { width: e, height: e }, children: /* @__PURE__ */ c("svg", { viewBox: "22 22 44 44", children: /* @__PURE__ */ c("circle", { cx: "44", cy: "44", r: "20.2", fill: "none", stroke: "currentColor", strokeWidth: "3.6" }) }) });
|
|
1888
1888
|
}
|
|
1889
|
-
var Qn = "Expected a function", ln = NaN, Oo = "[object Symbol]", Eo = /^\s+|\s+$/g,
|
|
1889
|
+
var Qn = "Expected a function", ln = NaN, Oo = "[object Symbol]", Eo = /^\s+|\s+$/g, Ao = /^[-+]0x[0-9a-f]+$/i, So = /^0b[01]+$/i, Fo = /^0o[0-7]+$/i, Lo = parseInt, Vo = typeof Ut == "object" && Ut && Ut.Object === Object && Ut, _o = typeof self == "object" && self && self.Object === Object && self, Do = Vo || _o || Function("return this")(), To = Object.prototype, Mo = To.toString, Po = Math.max, jo = Math.min, dr = function() {
|
|
1890
1890
|
return Do.Date.now();
|
|
1891
1891
|
};
|
|
1892
|
-
function
|
|
1892
|
+
function Bo(e, t, r) {
|
|
1893
1893
|
var n, i, s, o, a, l, f = 0, u = !1, d = !1, m = !0;
|
|
1894
1894
|
if (typeof e != "function")
|
|
1895
1895
|
throw new TypeError(Qn);
|
|
1896
1896
|
t = cn(t) || 0, Qt(r) && (u = !!r.leading, d = "maxWait" in r, s = d ? Po(cn(r.maxWait) || 0, t) : s, m = "trailing" in r ? !!r.trailing : m);
|
|
1897
|
-
function v(
|
|
1897
|
+
function v(S) {
|
|
1898
1898
|
var k = n, $ = i;
|
|
1899
|
-
return n = i = void 0, f =
|
|
1899
|
+
return n = i = void 0, f = S, o = e.apply($, k), o;
|
|
1900
1900
|
}
|
|
1901
|
-
function N(
|
|
1902
|
-
return f =
|
|
1901
|
+
function N(S) {
|
|
1902
|
+
return f = S, a = setTimeout(M, t), u ? v(S) : o;
|
|
1903
1903
|
}
|
|
1904
|
-
function y(
|
|
1905
|
-
var k =
|
|
1906
|
-
return d ?
|
|
1904
|
+
function y(S) {
|
|
1905
|
+
var k = S - l, $ = S - f, R = t - k;
|
|
1906
|
+
return d ? jo(R, s - $) : R;
|
|
1907
1907
|
}
|
|
1908
|
-
function b(
|
|
1909
|
-
var k =
|
|
1908
|
+
function b(S) {
|
|
1909
|
+
var k = S - l, $ = S - f;
|
|
1910
1910
|
return l === void 0 || k >= t || k < 0 || d && $ >= s;
|
|
1911
1911
|
}
|
|
1912
1912
|
function M() {
|
|
1913
|
-
var
|
|
1914
|
-
if (b(
|
|
1915
|
-
return w(
|
|
1916
|
-
a = setTimeout(M, y(
|
|
1913
|
+
var S = dr();
|
|
1914
|
+
if (b(S))
|
|
1915
|
+
return w(S);
|
|
1916
|
+
a = setTimeout(M, y(S));
|
|
1917
1917
|
}
|
|
1918
|
-
function w(
|
|
1919
|
-
return a = void 0, m && n ? v(
|
|
1918
|
+
function w(S) {
|
|
1919
|
+
return a = void 0, m && n ? v(S) : (n = i = void 0, o);
|
|
1920
1920
|
}
|
|
1921
1921
|
function _() {
|
|
1922
1922
|
a !== void 0 && clearTimeout(a), f = 0, n = l = i = a = void 0;
|
|
@@ -1925,8 +1925,8 @@ function jo(e, t, r) {
|
|
|
1925
1925
|
return a === void 0 ? o : w(dr());
|
|
1926
1926
|
}
|
|
1927
1927
|
function L() {
|
|
1928
|
-
var
|
|
1929
|
-
if (n = arguments, i = this, l =
|
|
1928
|
+
var S = dr(), k = b(S);
|
|
1929
|
+
if (n = arguments, i = this, l = S, k) {
|
|
1930
1930
|
if (a === void 0)
|
|
1931
1931
|
return N(l);
|
|
1932
1932
|
if (d)
|
|
@@ -1936,11 +1936,11 @@ function jo(e, t, r) {
|
|
|
1936
1936
|
}
|
|
1937
1937
|
return L.cancel = _, L.flush = O, L;
|
|
1938
1938
|
}
|
|
1939
|
-
function
|
|
1939
|
+
function Ro(e, t, r) {
|
|
1940
1940
|
var n = !0, i = !0;
|
|
1941
1941
|
if (typeof e != "function")
|
|
1942
1942
|
throw new TypeError(Qn);
|
|
1943
|
-
return Qt(r) && (n = "leading" in r ? !!r.leading : n, i = "trailing" in r ? !!r.trailing : i),
|
|
1943
|
+
return Qt(r) && (n = "leading" in r ? !!r.leading : n, i = "trailing" in r ? !!r.trailing : i), Bo(e, t, {
|
|
1944
1944
|
leading: n,
|
|
1945
1945
|
maxWait: t,
|
|
1946
1946
|
trailing: i
|
|
@@ -1968,10 +1968,10 @@ function cn(e) {
|
|
|
1968
1968
|
if (typeof e != "string")
|
|
1969
1969
|
return e === 0 ? e : +e;
|
|
1970
1970
|
e = e.replace(Eo, "");
|
|
1971
|
-
var r =
|
|
1972
|
-
return r || Fo.test(e) ? Lo(e.slice(2), r ? 2 : 8) :
|
|
1971
|
+
var r = So.test(e);
|
|
1972
|
+
return r || Fo.test(e) ? Lo(e.slice(2), r ? 2 : 8) : Ao.test(e) ? ln : +e;
|
|
1973
1973
|
}
|
|
1974
|
-
var Ho =
|
|
1974
|
+
var Ho = Ro;
|
|
1975
1975
|
const ei = /* @__PURE__ */ Wn(Ho);
|
|
1976
1976
|
function Wo(e, { onLoadMore: t, hasMore: r = !1, loading: n = !1 } = {}) {
|
|
1977
1977
|
const [i, s] = oe(!1);
|
|
@@ -2006,7 +2006,7 @@ function Uo({
|
|
|
2006
2006
|
{
|
|
2007
2007
|
variant: "caption",
|
|
2008
2008
|
as: "th",
|
|
2009
|
-
className:
|
|
2009
|
+
className: A("bbn-cell-left", n && "bbn-table-sortable", t),
|
|
2010
2010
|
onClick: () => {
|
|
2011
2011
|
if (n && e) {
|
|
2012
2012
|
const u = s.find((d) => d.key === e);
|
|
@@ -2021,7 +2021,7 @@ function Uo({
|
|
|
2021
2021
|
/* @__PURE__ */ c(
|
|
2022
2022
|
Ki,
|
|
2023
2023
|
{
|
|
2024
|
-
className:
|
|
2024
|
+
className: A(
|
|
2025
2025
|
"bbn-sort-icon bbn-sort-icon-up",
|
|
2026
2026
|
f === "asc" ? "bbn-sort-icon-active" : "bbn-sort-icon-inactive"
|
|
2027
2027
|
)
|
|
@@ -2030,7 +2030,7 @@ function Uo({
|
|
|
2030
2030
|
/* @__PURE__ */ c(
|
|
2031
2031
|
Yi,
|
|
2032
2032
|
{
|
|
2033
|
-
className:
|
|
2033
|
+
className: A(
|
|
2034
2034
|
"bbn-sort-icon bbn-sort-icon-down",
|
|
2035
2035
|
f === "desc" ? "bbn-sort-icon-active" : "bbn-sort-icon-inactive"
|
|
2036
2036
|
)
|
|
@@ -2086,7 +2086,7 @@ function zo({
|
|
|
2086
2086
|
{
|
|
2087
2087
|
variant: "body2",
|
|
2088
2088
|
as: "td",
|
|
2089
|
-
className:
|
|
2089
|
+
className: A("bbn-cell-left", e),
|
|
2090
2090
|
"data-column": n,
|
|
2091
2091
|
...i,
|
|
2092
2092
|
children: t ? t(r) : r
|
|
@@ -2103,7 +2103,7 @@ function Zo({
|
|
|
2103
2103
|
return /* @__PURE__ */ c(
|
|
2104
2104
|
"tr",
|
|
2105
2105
|
{
|
|
2106
|
-
className:
|
|
2106
|
+
className: A(
|
|
2107
2107
|
r && "selected",
|
|
2108
2108
|
!!i && n && "cursor-pointer",
|
|
2109
2109
|
!n && "opacity-50"
|
|
@@ -2138,7 +2138,7 @@ function Xo({
|
|
|
2138
2138
|
...m
|
|
2139
2139
|
}, v) {
|
|
2140
2140
|
const N = it(null);
|
|
2141
|
-
|
|
2141
|
+
An(v, () => N.current, []);
|
|
2142
2142
|
const { sortStates: y, handleColumnSort: b, sortedData: M } = qo(e, t), { isScrolledTop: w } = Wo(N, { onLoadMore: o, hasMore: i, loading: s }), [_, O] = lt({
|
|
2143
2143
|
value: f,
|
|
2144
2144
|
defaultValue: u ?? null,
|
|
@@ -2150,7 +2150,7 @@ function Xo({
|
|
|
2150
2150
|
O($), a($ === null ? null : k);
|
|
2151
2151
|
},
|
|
2152
2152
|
[a, l, _, O]
|
|
2153
|
-
),
|
|
2153
|
+
), S = We(
|
|
2154
2154
|
() => ({
|
|
2155
2155
|
data: M,
|
|
2156
2156
|
columns: t,
|
|
@@ -2160,8 +2160,8 @@ function Xo({
|
|
|
2160
2160
|
}),
|
|
2161
2161
|
[M, t, y, b, L]
|
|
2162
2162
|
);
|
|
2163
|
-
return /* @__PURE__ */ c(ti.Provider, { value:
|
|
2164
|
-
/* @__PURE__ */ c("thead", { className:
|
|
2163
|
+
return /* @__PURE__ */ c(ti.Provider, { value: S, children: /* @__PURE__ */ c("div", { ref: N, className: A("bbn-table-wrapper", n), children: /* @__PURE__ */ x("table", { className: A("bbn-table", r), ...m, children: [
|
|
2164
|
+
/* @__PURE__ */ c("thead", { className: A("bbn-table-header", w && "scrolled-top"), children: /* @__PURE__ */ c("tr", { children: t.map((k) => /* @__PURE__ */ c(Uo, { className: k.headerClassName, name: k.key, sorter: k.sorter, children: k.header }, k.key)) }) }),
|
|
2165
2165
|
/* @__PURE__ */ c("tbody", { className: "bbn-table-body", children: M.map((k) => /* @__PURE__ */ c(
|
|
2166
2166
|
Zo,
|
|
2167
2167
|
{
|
|
@@ -2177,7 +2177,7 @@ function Xo({
|
|
|
2177
2177
|
}
|
|
2178
2178
|
const gl = De(Xo);
|
|
2179
2179
|
function Yo({ as: e = "div", className: t, children: r }) {
|
|
2180
|
-
return yr(e, { className:
|
|
2180
|
+
return yr(e, { className: A("bbn-card", t) }, r);
|
|
2181
2181
|
}
|
|
2182
2182
|
function yl(e) {
|
|
2183
2183
|
const [t = !1, r] = lt({
|
|
@@ -2187,7 +2187,7 @@ function yl(e) {
|
|
|
2187
2187
|
});
|
|
2188
2188
|
return /* @__PURE__ */ x("div", { className: "bbn-toggle", onClick: () => void r(!t), children: [
|
|
2189
2189
|
/* @__PURE__ */ c("span", { className: "bbn-toggle-bg", children: e.activeIcon }),
|
|
2190
|
-
/* @__PURE__ */ c("span", { className:
|
|
2190
|
+
/* @__PURE__ */ c("span", { className: A("bbn-toggle-control", t && "bbn-toggle-control-active") }),
|
|
2191
2191
|
/* @__PURE__ */ c("span", { className: "bbn-toggle-bg", children: e.inactiveIcon })
|
|
2192
2192
|
] });
|
|
2193
2193
|
}
|
|
@@ -2205,17 +2205,17 @@ function bl({ className: e, orientation: t = "vertical", children: r }) {
|
|
|
2205
2205
|
) });
|
|
2206
2206
|
}
|
|
2207
2207
|
function wl({ className: e, orientation: t = "horizontal", title: r, value: n, suffix: i }) {
|
|
2208
|
-
return /* @__PURE__ */ x("div", { className:
|
|
2208
|
+
return /* @__PURE__ */ x("div", { className: A("bbn-list-item", `bbn-list-item-${t}`, e), children: [
|
|
2209
2209
|
/* @__PURE__ */ c(
|
|
2210
2210
|
W,
|
|
2211
2211
|
{
|
|
2212
2212
|
as: "div",
|
|
2213
|
-
className:
|
|
2213
|
+
className: A("bbn-list-title", `bbn-list-title-${t}`),
|
|
2214
2214
|
variant: t === "horizontal" ? "body1" : "body2",
|
|
2215
2215
|
children: r
|
|
2216
2216
|
}
|
|
2217
2217
|
),
|
|
2218
|
-
/* @__PURE__ */ x(W, { as: "div", className:
|
|
2218
|
+
/* @__PURE__ */ x(W, { as: "div", className: A("bbn-list-value", `bbn-list-value-${t}`), variant: "body1", children: [
|
|
2219
2219
|
n,
|
|
2220
2220
|
i
|
|
2221
2221
|
] })
|
|
@@ -2232,16 +2232,16 @@ function xl({
|
|
|
2232
2232
|
contentClassName: a
|
|
2233
2233
|
}) {
|
|
2234
2234
|
const l = typeof t == "number" ? t > 0 : t != null, f = typeof t == "number" && t > r ? `${r}+` : t, u = `bbn-badge-${n}`, d = `bbn-badge-${i}`;
|
|
2235
|
-
return /* @__PURE__ */ x("div", { className:
|
|
2235
|
+
return /* @__PURE__ */ x("div", { className: A("bbn-badge", s), children: [
|
|
2236
2236
|
e,
|
|
2237
|
-
l && /* @__PURE__ */ c("span", { className:
|
|
2237
|
+
l && /* @__PURE__ */ c("span", { className: A("bbn-badge-indicator", u, d, o), children: /* @__PURE__ */ c("span", { className: A("bbn-badge-content", a), children: f }) })
|
|
2238
2238
|
] });
|
|
2239
2239
|
}
|
|
2240
2240
|
const Dr = ({
|
|
2241
2241
|
children: e,
|
|
2242
2242
|
style: t,
|
|
2243
2243
|
className: r
|
|
2244
|
-
}) => /* @__PURE__ */ c("div", { className:
|
|
2244
|
+
}) => /* @__PURE__ */ c("div", { className: A("flex rounded bg-secondary-highlight p-4 text-accent-primary", r), style: t, children: e });
|
|
2245
2245
|
function Ko(e) {
|
|
2246
2246
|
return Vt({ attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8Z" }, child: [] }, { tag: "path", attr: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8Z" }, child: [] }] })(e);
|
|
2247
2247
|
}
|
|
@@ -2250,7 +2250,7 @@ function Jo({ counter: e, max: t, onAdd: r, alwaysShowCounter: n = !1 }) {
|
|
|
2250
2250
|
return /* @__PURE__ */ x(
|
|
2251
2251
|
"div",
|
|
2252
2252
|
{
|
|
2253
|
-
className:
|
|
2253
|
+
className: A(
|
|
2254
2254
|
"bg-primary-highlight flex overflow-hidden rounded-md border border-accent-primary w-fit",
|
|
2255
2255
|
i && "cursor-pointer",
|
|
2256
2256
|
!s && !i && "hidden",
|
|
@@ -2259,7 +2259,7 @@ function Jo({ counter: e, max: t, onAdd: r, alwaysShowCounter: n = !1 }) {
|
|
|
2259
2259
|
onClick: i ? r : void 0,
|
|
2260
2260
|
children: [
|
|
2261
2261
|
i && /* @__PURE__ */ c("div", { className: "flex h-10 w-10 items-center justify-center", children: /* @__PURE__ */ c(Ko, { size: 20 }) }),
|
|
2262
|
-
s && /* @__PURE__ */ x("div", { className:
|
|
2262
|
+
s && /* @__PURE__ */ x("div", { className: A(
|
|
2263
2263
|
"flex h-10 items-center px-2 text-sm sm:px-4 sm:text-base",
|
|
2264
2264
|
i && "border-l border-accent-primary"
|
|
2265
2265
|
), children: [
|
|
@@ -2292,7 +2292,7 @@ const ri = sr(void 0), ni = () => Lt(ri), Qo = ({ children: e, value: t }) => /*
|
|
|
2292
2292
|
}, v = () => f || r ? /* @__PURE__ */ x(
|
|
2293
2293
|
"div",
|
|
2294
2294
|
{
|
|
2295
|
-
className:
|
|
2295
|
+
className: A(
|
|
2296
2296
|
"flex items-center p-4",
|
|
2297
2297
|
u && "border-b border-[#38708533] dark:border-[#404040]"
|
|
2298
2298
|
),
|
|
@@ -2329,7 +2329,7 @@ const ri = sr(void 0), ni = () => Lt(ri), Qo = ({ children: e, value: t }) => /*
|
|
|
2329
2329
|
r && /* @__PURE__ */ c(
|
|
2330
2330
|
"h3",
|
|
2331
2331
|
{
|
|
2332
|
-
className:
|
|
2332
|
+
className: A(
|
|
2333
2333
|
"flex-1 text-sm font-medium text-accent-primary",
|
|
2334
2334
|
f ? "ml-3" : "",
|
|
2335
2335
|
m[s]
|
|
@@ -2347,7 +2347,7 @@ const ri = sr(void 0), ni = () => Lt(ri), Qo = ({ children: e, value: t }) => /*
|
|
|
2347
2347
|
d && /* @__PURE__ */ c(
|
|
2348
2348
|
"div",
|
|
2349
2349
|
{
|
|
2350
|
-
className:
|
|
2350
|
+
className: A(
|
|
2351
2351
|
"fixed inset-0 z-40 bg-black/50 transition-opacity duration-300",
|
|
2352
2352
|
e ? "opacity-100" : "pointer-events-none opacity-0"
|
|
2353
2353
|
),
|
|
@@ -2357,7 +2357,7 @@ const ri = sr(void 0), ni = () => Lt(ri), Qo = ({ children: e, value: t }) => /*
|
|
|
2357
2357
|
/* @__PURE__ */ c(
|
|
2358
2358
|
"div",
|
|
2359
2359
|
{
|
|
2360
|
-
className:
|
|
2360
|
+
className: A(
|
|
2361
2361
|
"transform transition-transform duration-300 ease-in-out",
|
|
2362
2362
|
"bg-[#FFFFFF] dark:bg-[#252525]",
|
|
2363
2363
|
"fixed inset-y-0 right-0 z-50",
|
|
@@ -2371,7 +2371,7 @@ const ri = sr(void 0), ni = () => Lt(ri), Qo = ({ children: e, value: t }) => /*
|
|
|
2371
2371
|
] }) : /* @__PURE__ */ c(
|
|
2372
2372
|
"div",
|
|
2373
2373
|
{
|
|
2374
|
-
className:
|
|
2374
|
+
className: A(
|
|
2375
2375
|
"transform transition-transform duration-300 ease-in-out",
|
|
2376
2376
|
"bg-[#FFFFFF] dark:bg-[#252525]",
|
|
2377
2377
|
"absolute inset-0 rounded-lg",
|
|
@@ -2404,7 +2404,7 @@ const oi = ({
|
|
|
2404
2404
|
r === void 0 && f(M), n == null || n(M);
|
|
2405
2405
|
}, N = () => v(!1), y = /* @__PURE__ */ c("div", { className: "relative w-full overflow-hidden", children: e }), b = t || /* @__PURE__ */ c("button", { className: "rounded p-2 hover:bg-gray-100 dark:hover:bg-gray-800", onClick: () => v(!m), children: "Menu" });
|
|
2406
2406
|
return /* @__PURE__ */ x(Qo, { value: { isOpen: m, setIsOpen: v, onClose: N, isMobile: d }, children: [
|
|
2407
|
-
/* @__PURE__ */ c("div", { ref: u, className: "inline-block", children:
|
|
2407
|
+
/* @__PURE__ */ c("div", { ref: u, className: "inline-block", children: B.isValidElement(b) && B.cloneElement(b, {
|
|
2408
2408
|
onClick: () => v(!m),
|
|
2409
2409
|
"aria-haspopup": "true",
|
|
2410
2410
|
"aria-expanded": m
|
|
@@ -2414,7 +2414,7 @@ const oi = ({
|
|
|
2414
2414
|
{
|
|
2415
2415
|
open: m,
|
|
2416
2416
|
onClose: N,
|
|
2417
|
-
className:
|
|
2417
|
+
className: A(
|
|
2418
2418
|
"relative bg-[#FFFFFF] dark:bg-[#252525] text-primary-main",
|
|
2419
2419
|
o
|
|
2420
2420
|
),
|
|
@@ -2440,7 +2440,7 @@ const oi = ({
|
|
|
2440
2440
|
offset: s,
|
|
2441
2441
|
placement: i,
|
|
2442
2442
|
onClickOutside: N,
|
|
2443
|
-
className:
|
|
2443
|
+
className: A(
|
|
2444
2444
|
"rounded-lg border border-[#38708533] bg-[#FFFFFF] shadow-lg dark:border-[#404040] dark:bg-[#252525]",
|
|
2445
2445
|
"min-w-[294px]",
|
|
2446
2446
|
o
|
|
@@ -2469,7 +2469,7 @@ const oi = ({
|
|
|
2469
2469
|
{
|
|
2470
2470
|
onClick: d,
|
|
2471
2471
|
disabled: i,
|
|
2472
|
-
className:
|
|
2472
|
+
className: A("w-full text-left", i && "cursor-not-allowed opacity-50", s),
|
|
2473
2473
|
children: o
|
|
2474
2474
|
}
|
|
2475
2475
|
) : /* @__PURE__ */ x(
|
|
@@ -2477,7 +2477,7 @@ const oi = ({
|
|
|
2477
2477
|
{
|
|
2478
2478
|
onClick: d,
|
|
2479
2479
|
disabled: i,
|
|
2480
|
-
className:
|
|
2480
|
+
className: A(
|
|
2481
2481
|
"flex w-full items-center justify-between p-6",
|
|
2482
2482
|
"transition-colors hover:bg-accent-secondary/5",
|
|
2483
2483
|
"text-left",
|
|
@@ -2540,7 +2540,7 @@ const oi = ({
|
|
|
2540
2540
|
"button",
|
|
2541
2541
|
{
|
|
2542
2542
|
onClick: () => u(!0),
|
|
2543
|
-
className:
|
|
2543
|
+
className: A(
|
|
2544
2544
|
"flex w-full items-center justify-between p-6",
|
|
2545
2545
|
"transition-colors hover:bg-accent-secondary/5",
|
|
2546
2546
|
"text-left focus:outline-none",
|
|
@@ -2570,7 +2570,7 @@ const oi = ({
|
|
|
2570
2570
|
fullHeight: d == null ? void 0 : d.isMobile,
|
|
2571
2571
|
fullWidth: d == null ? void 0 : d.isMobile,
|
|
2572
2572
|
onBackdropClick: d != null && d.isMobile ? void 0 : () => u(!1),
|
|
2573
|
-
className:
|
|
2573
|
+
className: A(d != null && d.isMobile ? "z-60" : "z-50", a),
|
|
2574
2574
|
children: e
|
|
2575
2575
|
}
|
|
2576
2576
|
)
|
|
@@ -2600,7 +2600,7 @@ const oi = ({
|
|
|
2600
2600
|
role: "menuitem",
|
|
2601
2601
|
onClick: r,
|
|
2602
2602
|
disabled: o,
|
|
2603
|
-
className:
|
|
2603
|
+
className: A(
|
|
2604
2604
|
"flex w-full items-center justify-between p-4",
|
|
2605
2605
|
"transition-colors hover:bg-accent-secondary/5",
|
|
2606
2606
|
"text-left focus:outline-none",
|
|
@@ -2631,7 +2631,7 @@ const ai = ({
|
|
|
2631
2631
|
symbols: t = 8,
|
|
2632
2632
|
size: r = "body2",
|
|
2633
2633
|
className: n
|
|
2634
|
-
}) => e ? /* @__PURE__ */ c(W, { variant: r, className:
|
|
2634
|
+
}) => e ? /* @__PURE__ */ c(W, { variant: r, className: A("text-accent-primary", n), children: /* @__PURE__ */ c("span", { children: ra(e, t) ?? e }) }) : null;
|
|
2635
2635
|
function li(e = {}) {
|
|
2636
2636
|
const { copiedText: t = "Copied ✓", timeout: r = 2e3 } = e, [n, i] = oe({}), [s, o] = oe({}), a = ae(
|
|
2637
2637
|
(d, m) => {
|
|
@@ -2671,7 +2671,7 @@ const Cl = ({
|
|
|
2671
2671
|
copiedText: s,
|
|
2672
2672
|
timeout: o = 2e3
|
|
2673
2673
|
}) => {
|
|
2674
|
-
const a =
|
|
2674
|
+
const a = Sn(), l = {
|
|
2675
2675
|
copiedText: s,
|
|
2676
2676
|
timeout: o
|
|
2677
2677
|
}, {
|
|
@@ -2715,7 +2715,7 @@ const Cl = ({
|
|
|
2715
2715
|
);
|
|
2716
2716
|
};
|
|
2717
2717
|
function kl({ children: e, className: t }) {
|
|
2718
|
-
return /* @__PURE__ */ x("div", { className:
|
|
2718
|
+
return /* @__PURE__ */ x("div", { className: A("bbn-warning", t), children: [
|
|
2719
2719
|
/* @__PURE__ */ c("img", { src: "/images/status/warning_dark2.svg", alt: "Warning icon", className: "bbn-warning-icon" }),
|
|
2720
2720
|
/* @__PURE__ */ c("p", { className: "bbn-warning-message", children: e })
|
|
2721
2721
|
] });
|
|
@@ -2779,11 +2779,11 @@ const er = {
|
|
|
2779
2779
|
pattern: "pattern",
|
|
2780
2780
|
required: "required",
|
|
2781
2781
|
validate: "validate"
|
|
2782
|
-
},
|
|
2783
|
-
|
|
2784
|
-
const ht = () =>
|
|
2782
|
+
}, jr = B.createContext(null);
|
|
2783
|
+
jr.displayName = "HookFormContext";
|
|
2784
|
+
const ht = () => B.useContext(jr), sa = (e) => {
|
|
2785
2785
|
const { children: t, ...r } = e;
|
|
2786
|
-
return
|
|
2786
|
+
return B.createElement(jr.Provider, { value: r }, t);
|
|
2787
2787
|
};
|
|
2788
2788
|
var di = (e, t, r, n = !0) => {
|
|
2789
2789
|
const i = {
|
|
@@ -2798,9 +2798,9 @@ var di = (e, t, r, n = !0) => {
|
|
|
2798
2798
|
});
|
|
2799
2799
|
return i;
|
|
2800
2800
|
};
|
|
2801
|
-
const
|
|
2801
|
+
const Br = typeof window < "u" ? B.useLayoutEffect : B.useEffect;
|
|
2802
2802
|
function hi(e) {
|
|
2803
|
-
const t = ht(), { control: r = t.control, disabled: n, name: i, exact: s } = e || {}, [o, a] =
|
|
2803
|
+
const t = ht(), { control: r = t.control, disabled: n, name: i, exact: s } = e || {}, [o, a] = B.useState(r._formState), l = B.useRef({
|
|
2804
2804
|
isDirty: !1,
|
|
2805
2805
|
isLoading: !1,
|
|
2806
2806
|
dirtyFields: !1,
|
|
@@ -2810,7 +2810,7 @@ function hi(e) {
|
|
|
2810
2810
|
isValid: !1,
|
|
2811
2811
|
errors: !1
|
|
2812
2812
|
});
|
|
2813
|
-
return
|
|
2813
|
+
return Br(() => r._subscribe({
|
|
2814
2814
|
name: i,
|
|
2815
2815
|
formState: l.current,
|
|
2816
2816
|
exact: s,
|
|
@@ -2820,11 +2820,11 @@ function hi(e) {
|
|
|
2820
2820
|
...f
|
|
2821
2821
|
});
|
|
2822
2822
|
}
|
|
2823
|
-
}), [i, n, s]),
|
|
2823
|
+
}), [i, n, s]), B.useEffect(() => {
|
|
2824
2824
|
l.current.isValid && r._setValid(!0);
|
|
2825
|
-
}, [r]),
|
|
2825
|
+
}, [r]), B.useMemo(() => di(o, r, l.current, !1), [o, r]);
|
|
2826
2826
|
}
|
|
2827
|
-
var
|
|
2827
|
+
var Se = (e) => typeof e == "string", mi = (e, t, r, n, i) => Se(e) ? (n && t.watch.add(e), F(r, e, i)) : Array.isArray(e) ? e.map((s) => (n && t.watch.add(s), F(r, s))) : (n && (t.watchAll = !0), r), gr = (e) => le(e) || !ci(e);
|
|
2828
2828
|
function Pe(e, t, r = /* @__PURE__ */ new WeakSet()) {
|
|
2829
2829
|
if (gr(e) || gr(t))
|
|
2830
2830
|
return e === t;
|
|
@@ -2849,10 +2849,10 @@ function Pe(e, t, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
2849
2849
|
return !0;
|
|
2850
2850
|
}
|
|
2851
2851
|
function pi(e) {
|
|
2852
|
-
const t = ht(), { control: r = t.control, name: n, defaultValue: i, disabled: s, exact: o, compute: a } = e || {}, l =
|
|
2852
|
+
const t = ht(), { control: r = t.control, name: n, defaultValue: i, disabled: s, exact: o, compute: a } = e || {}, l = B.useRef(i), f = B.useRef(a), u = B.useRef(void 0);
|
|
2853
2853
|
f.current = a;
|
|
2854
|
-
const d =
|
|
2855
|
-
return
|
|
2854
|
+
const d = B.useMemo(() => r._getWatch(n, l.current), [r, n]), [m, v] = B.useState(f.current ? f.current(d) : d);
|
|
2855
|
+
return Br(() => r._subscribe({
|
|
2856
2856
|
name: n,
|
|
2857
2857
|
formState: {
|
|
2858
2858
|
values: !0
|
|
@@ -2868,10 +2868,10 @@ function pi(e) {
|
|
|
2868
2868
|
v(y);
|
|
2869
2869
|
}
|
|
2870
2870
|
}
|
|
2871
|
-
}), [r, s, n, o]),
|
|
2871
|
+
}), [r, s, n, o]), B.useEffect(() => r._removeUnmounted()), m;
|
|
2872
2872
|
}
|
|
2873
2873
|
function oa(e) {
|
|
2874
|
-
const t = ht(), { name: r, disabled: n, control: i = t.control, shouldUnregister: s, defaultValue: o } = e, a = fi(i._names.array, r), l =
|
|
2874
|
+
const t = ht(), { name: r, disabled: n, control: i = t.control, shouldUnregister: s, defaultValue: o } = e, a = fi(i._names.array, r), l = B.useMemo(() => F(i._formValues, r, F(i._defaultValues, r, o)), [i, r, o]), f = pi({
|
|
2875
2875
|
control: i,
|
|
2876
2876
|
name: r,
|
|
2877
2877
|
defaultValue: l,
|
|
@@ -2880,13 +2880,13 @@ function oa(e) {
|
|
|
2880
2880
|
control: i,
|
|
2881
2881
|
name: r,
|
|
2882
2882
|
exact: !0
|
|
2883
|
-
}), d =
|
|
2883
|
+
}), d = B.useRef(e), m = B.useRef(i.register(r, {
|
|
2884
2884
|
...e.rules,
|
|
2885
2885
|
value: f,
|
|
2886
2886
|
...me(e.disabled) ? { disabled: e.disabled } : {}
|
|
2887
2887
|
}));
|
|
2888
2888
|
d.current = e;
|
|
2889
|
-
const v =
|
|
2889
|
+
const v = B.useMemo(() => Object.defineProperties({}, {
|
|
2890
2890
|
invalid: {
|
|
2891
2891
|
enumerable: !0,
|
|
2892
2892
|
get: () => !!F(u.errors, r)
|
|
@@ -2907,19 +2907,19 @@ function oa(e) {
|
|
|
2907
2907
|
enumerable: !0,
|
|
2908
2908
|
get: () => F(u.errors, r)
|
|
2909
2909
|
}
|
|
2910
|
-
}), [u, r]), N =
|
|
2910
|
+
}), [u, r]), N = B.useCallback((w) => m.current.onChange({
|
|
2911
2911
|
target: {
|
|
2912
2912
|
value: ui(w),
|
|
2913
2913
|
name: r
|
|
2914
2914
|
},
|
|
2915
2915
|
type: er.CHANGE
|
|
2916
|
-
}), [r]), y =
|
|
2916
|
+
}), [r]), y = B.useCallback(() => m.current.onBlur({
|
|
2917
2917
|
target: {
|
|
2918
2918
|
value: F(i._formValues, r),
|
|
2919
2919
|
name: r
|
|
2920
2920
|
},
|
|
2921
2921
|
type: er.BLUR
|
|
2922
|
-
}), [r, i._formValues]), b =
|
|
2922
|
+
}), [r, i._formValues]), b = B.useCallback((w) => {
|
|
2923
2923
|
const _ = F(i._fields, r);
|
|
2924
2924
|
_ && w && (_._f.ref = {
|
|
2925
2925
|
focus: () => w.focus && w.focus(),
|
|
@@ -2927,7 +2927,7 @@ function oa(e) {
|
|
|
2927
2927
|
setCustomValidity: (O) => w.setCustomValidity(O),
|
|
2928
2928
|
reportValidity: () => w.reportValidity()
|
|
2929
2929
|
});
|
|
2930
|
-
}, [i._fields, r]), M =
|
|
2930
|
+
}, [i._fields, r]), M = B.useMemo(() => ({
|
|
2931
2931
|
name: r,
|
|
2932
2932
|
value: f,
|
|
2933
2933
|
...me(n) || u.disabled ? { disabled: u.disabled || n } : {},
|
|
@@ -2935,15 +2935,15 @@ function oa(e) {
|
|
|
2935
2935
|
onBlur: y,
|
|
2936
2936
|
ref: b
|
|
2937
2937
|
}), [r, n, u.disabled, N, y, b, f]);
|
|
2938
|
-
return
|
|
2938
|
+
return B.useEffect(() => {
|
|
2939
2939
|
const w = i._options.shouldUnregister || s;
|
|
2940
2940
|
i.register(r, {
|
|
2941
2941
|
...d.current.rules,
|
|
2942
2942
|
...me(d.current.disabled) ? { disabled: d.current.disabled } : {}
|
|
2943
2943
|
});
|
|
2944
2944
|
const _ = (O, L) => {
|
|
2945
|
-
const
|
|
2946
|
-
|
|
2945
|
+
const S = F(i._fields, O);
|
|
2946
|
+
S && S._f && (S._f.mount = L);
|
|
2947
2947
|
};
|
|
2948
2948
|
if (_(r, !0), w) {
|
|
2949
2949
|
const O = ie(F(i._options.defaultValues, r));
|
|
@@ -2952,12 +2952,12 @@ function oa(e) {
|
|
|
2952
2952
|
return !a && i.register(r), () => {
|
|
2953
2953
|
(a ? w && !i._state.action : w) ? i.unregister(r) : _(r, !1);
|
|
2954
2954
|
};
|
|
2955
|
-
}, [r, i, a, s]),
|
|
2955
|
+
}, [r, i, a, s]), B.useEffect(() => {
|
|
2956
2956
|
i._setDisabledField({
|
|
2957
2957
|
disabled: n,
|
|
2958
2958
|
name: r
|
|
2959
2959
|
});
|
|
2960
|
-
}, [n, r, i]),
|
|
2960
|
+
}, [n, r, i]), B.useMemo(() => ({
|
|
2961
2961
|
field: M,
|
|
2962
2962
|
formState: u,
|
|
2963
2963
|
fieldState: v
|
|
@@ -2988,7 +2988,7 @@ var vi = (e, t, r, n, i) => t ? {
|
|
|
2988
2988
|
e = [];
|
|
2989
2989
|
}
|
|
2990
2990
|
};
|
|
2991
|
-
}, fe = (e) => te(e) && !Object.keys(e).length,
|
|
2991
|
+
}, fe = (e) => te(e) && !Object.keys(e).length, Rr = (e) => e.type === "file", Oe = (e) => typeof e == "function", tr = (e) => {
|
|
2992
2992
|
if (!Tr)
|
|
2993
2993
|
return !1;
|
|
2994
2994
|
const t = e ? e.ownerDocument : 0;
|
|
@@ -3048,7 +3048,7 @@ var wi = (e) => {
|
|
|
3048
3048
|
) : fn;
|
|
3049
3049
|
}
|
|
3050
3050
|
return fn;
|
|
3051
|
-
}, xi = (e, { valueAsNumber: t, valueAsDate: r, setValueAs: n }) => ee(e) ? e : t ? e === "" ? NaN : e && +e : r &&
|
|
3051
|
+
}, xi = (e, { valueAsNumber: t, valueAsDate: r, setValueAs: n }) => ee(e) ? e : t ? e === "" ? NaN : e && +e : r && Se(e) ? new Date(e) : n ? n(e) : e;
|
|
3052
3052
|
const hn = {
|
|
3053
3053
|
isValid: !1,
|
|
3054
3054
|
value: null
|
|
@@ -3059,7 +3059,7 @@ var Ni = (e) => Array.isArray(e) ? e.reduce((t, r) => r && r.checked && !r.disab
|
|
|
3059
3059
|
} : t, hn) : hn;
|
|
3060
3060
|
function mn(e) {
|
|
3061
3061
|
const t = e.ref;
|
|
3062
|
-
return
|
|
3062
|
+
return Rr(t) ? t.files : Ir(t) ? Ni(e.refs).value : gi(t) ? [...t.selectedOptions].map(({ value: r }) => r) : Tt(t) ? wi(e.refs).value : xi(ee(t.value) ? e.ref.value : t.value, e);
|
|
3063
3063
|
}
|
|
3064
3064
|
var ua = (e, t, r, n) => {
|
|
3065
3065
|
const i = {};
|
|
@@ -3134,7 +3134,7 @@ var ha = (e, t, r, n) => {
|
|
|
3134
3134
|
}, ma = (e, t, r) => !e || !t || e === t || kt(e).some((n) => n && (r ? n === t : n.startsWith(t) || t.startsWith(n))), pa = (e, t, r, n, i) => i.isOnAll ? !1 : !r && i.isOnTouch ? !(t || e) : (r ? n.isOnBlur : i.isOnBlur) ? !e : (r ? n.isOnChange : i.isOnChange) ? e : !0, va = (e, t) => !Mr(F(e, t)).length && re(e, t), ga = (e, t, r) => {
|
|
3135
3135
|
const n = kt(F(e, r));
|
|
3136
3136
|
return Z(n, "root", t[r]), Z(e, r, n), e;
|
|
3137
|
-
}, Zt = (e) =>
|
|
3137
|
+
}, Zt = (e) => Se(e);
|
|
3138
3138
|
function bn(e, t, r = "validate") {
|
|
3139
3139
|
if (Zt(e) || Array.isArray(e) && e.every(Zt) || me(e) && !e)
|
|
3140
3140
|
return {
|
|
@@ -3152,7 +3152,7 @@ var at = (e) => te(e) && !nr(e) ? e : {
|
|
|
3152
3152
|
return {};
|
|
3153
3153
|
const _ = a ? a[0] : o, O = (D) => {
|
|
3154
3154
|
i && _.reportValidity && (_.setCustomValidity(me(D) ? "" : D || ""), _.reportValidity());
|
|
3155
|
-
}, L = {},
|
|
3155
|
+
}, L = {}, S = Ir(o), k = Tt(o), $ = S || k, R = (b || Rr(o)) && ee(o.value) && ee(w) || tr(o) && o.value === "" || w === "" || Array.isArray(w) && !w.length, H = vi.bind(null, y, n, L), j = (D, I, q, J = Me.maxLength, X = Me.minLength) => {
|
|
3156
3156
|
const Q = D ? I : q;
|
|
3157
3157
|
L[y] = {
|
|
3158
3158
|
type: D ? J : X,
|
|
@@ -3161,7 +3161,7 @@ var at = (e) => te(e) && !nr(e) ? e : {
|
|
|
3161
3161
|
...H(D ? J : X, Q)
|
|
3162
3162
|
};
|
|
3163
3163
|
};
|
|
3164
|
-
if (s ? !Array.isArray(w) || !w.length : l && (!$ && (
|
|
3164
|
+
if (s ? !Array.isArray(w) || !w.length : l && (!$ && (R || le(w)) || me(w) && !w || k && !wi(a).isValid || S && !Ni(a).isValid)) {
|
|
3165
3165
|
const { value: D, message: I } = Zt(l) ? { value: !!l, message: l } : at(l);
|
|
3166
3166
|
if (D && (L[y] = {
|
|
3167
3167
|
type: Me.required,
|
|
@@ -3171,7 +3171,7 @@ var at = (e) => te(e) && !nr(e) ? e : {
|
|
|
3171
3171
|
}, !n))
|
|
3172
3172
|
return O(I), L;
|
|
3173
3173
|
}
|
|
3174
|
-
if (!
|
|
3174
|
+
if (!R && (!le(d) || !le(m))) {
|
|
3175
3175
|
let D, I;
|
|
3176
3176
|
const q = at(m), J = at(d);
|
|
3177
3177
|
if (!le(w) && !isNaN(w)) {
|
|
@@ -3179,17 +3179,17 @@ var at = (e) => te(e) && !nr(e) ? e : {
|
|
|
3179
3179
|
le(q.value) || (D = X > q.value), le(J.value) || (I = X < J.value);
|
|
3180
3180
|
} else {
|
|
3181
3181
|
const X = o.valueAsDate || new Date(w), Q = (Te) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Te), Ee = o.type == "time", ue = o.type == "week";
|
|
3182
|
-
|
|
3182
|
+
Se(q.value) && w && (D = Ee ? Q(w) > Q(q.value) : ue ? w > q.value : X > new Date(q.value)), Se(J.value) && w && (I = Ee ? Q(w) < Q(J.value) : ue ? w < J.value : X < new Date(J.value));
|
|
3183
3183
|
}
|
|
3184
|
-
if ((D || I) && (
|
|
3184
|
+
if ((D || I) && (j(!!D, q.message, J.message, Me.max, Me.min), !n))
|
|
3185
3185
|
return O(L[y].message), L;
|
|
3186
3186
|
}
|
|
3187
|
-
if ((f || u) && !
|
|
3187
|
+
if ((f || u) && !R && (Se(w) || s && Array.isArray(w))) {
|
|
3188
3188
|
const D = at(f), I = at(u), q = !le(D.value) && w.length > +D.value, J = !le(I.value) && w.length < +I.value;
|
|
3189
|
-
if ((q || J) && (
|
|
3189
|
+
if ((q || J) && (j(q, D.message, I.message), !n))
|
|
3190
3190
|
return O(L[y].message), L;
|
|
3191
3191
|
}
|
|
3192
|
-
if (v && !
|
|
3192
|
+
if (v && !R && Se(w)) {
|
|
3193
3193
|
const { value: D, message: I } = at(v);
|
|
3194
3194
|
if (nr(D) && !w.match(D) && (L[y] = {
|
|
3195
3195
|
type: Me.pattern,
|
|
@@ -3281,7 +3281,7 @@ function ba(e = {}) {
|
|
|
3281
3281
|
clearTimeout(f), f = setTimeout(h, p);
|
|
3282
3282
|
}, y = async (h) => {
|
|
3283
3283
|
if (!t.disabled && (u.isValid || d.isValid || h)) {
|
|
3284
|
-
const p = t.resolver ? fe((await k()).errors) : await
|
|
3284
|
+
const p = t.resolver ? fe((await k()).errors) : await R(n, !0);
|
|
3285
3285
|
p !== r.isValid && m.state.next({
|
|
3286
3286
|
isValid: p
|
|
3287
3287
|
});
|
|
@@ -3309,7 +3309,7 @@ function ba(e = {}) {
|
|
|
3309
3309
|
}
|
|
3310
3310
|
(u.dirtyFields || d.dirtyFields) && (r.dirtyFields = wt(i, s)), m.state.next({
|
|
3311
3311
|
name: h,
|
|
3312
|
-
isDirty:
|
|
3312
|
+
isDirty: j(h, p),
|
|
3313
3313
|
dirtyFields: r.dirtyFields,
|
|
3314
3314
|
errors: r.errors,
|
|
3315
3315
|
isValid: r.isValid
|
|
@@ -3338,7 +3338,7 @@ function ba(e = {}) {
|
|
|
3338
3338
|
};
|
|
3339
3339
|
if (!t.disabled) {
|
|
3340
3340
|
if (!g || V) {
|
|
3341
|
-
(u.isDirty || d.isDirty) && (P = r.isDirty, r.isDirty = U.isDirty =
|
|
3341
|
+
(u.isDirty || d.isDirty) && (P = r.isDirty, r.isDirty = U.isDirty = j(), C = P !== U.isDirty);
|
|
3342
3342
|
const z = Pe(F(i, h), p);
|
|
3343
3343
|
P = !!F(r.dirtyFields, h), z ? re(r.dirtyFields, h) : Z(r.dirtyFields, h, !0), U.dirtyFields = r.dirtyFields, C = C || (u.dirtyFields || d.dirtyFields) && P !== !z;
|
|
3344
3344
|
}
|
|
@@ -3349,7 +3349,7 @@ function ba(e = {}) {
|
|
|
3349
3349
|
C && E && m.state.next(U);
|
|
3350
3350
|
}
|
|
3351
3351
|
return C ? U : {};
|
|
3352
|
-
},
|
|
3352
|
+
}, S = (h, p, g, V) => {
|
|
3353
3353
|
const E = F(r.errors, h), C = (u.isValid || d.isValid) && me(p) && r.isValid !== p;
|
|
3354
3354
|
if (t.delayError && g ? (l = N(() => w(h, g)), l(t.delayError)) : (clearTimeout(f), l = null, g ? Z(r.errors, h, g) : re(r.errors, h)), (g ? !Pe(E, g) : E) || !fe(V) || C) {
|
|
3355
3355
|
const P = {
|
|
@@ -3377,7 +3377,7 @@ function ba(e = {}) {
|
|
|
3377
3377
|
else
|
|
3378
3378
|
r.errors = p;
|
|
3379
3379
|
return p;
|
|
3380
|
-
},
|
|
3380
|
+
}, R = async (h, p, g = {
|
|
3381
3381
|
valid: !0
|
|
3382
3382
|
}) => {
|
|
3383
3383
|
for (const V in h) {
|
|
@@ -3392,7 +3392,7 @@ function ba(e = {}) {
|
|
|
3392
3392
|
break;
|
|
3393
3393
|
!p && (F(ye, C.name) ? U ? ga(r.errors, ye, C.name) : Z(r.errors, C.name, ye[C.name]) : re(r.errors, C.name));
|
|
3394
3394
|
}
|
|
3395
|
-
!fe(P) && await
|
|
3395
|
+
!fe(P) && await R(P, p, g);
|
|
3396
3396
|
}
|
|
3397
3397
|
}
|
|
3398
3398
|
return g.valid;
|
|
@@ -3402,8 +3402,8 @@ function ba(e = {}) {
|
|
|
3402
3402
|
p && (p._f.refs ? p._f.refs.every((g) => !hr(g)) : !hr(p._f.ref)) && Ie(h);
|
|
3403
3403
|
}
|
|
3404
3404
|
a.unMount = /* @__PURE__ */ new Set();
|
|
3405
|
-
},
|
|
3406
|
-
...o.mount ? s : ee(p) ? i :
|
|
3405
|
+
}, j = (h, p) => !t.disabled && (h && p && Z(s, h, p), !Pe(Te(), i)), D = (h, p, g) => mi(h, a, {
|
|
3406
|
+
...o.mount ? s : ee(p) ? i : Se(h) ? { [h]: p } : p
|
|
3407
3407
|
}, g, p), I = (h) => Mr(F(o.mount ? s : i, h, t.shouldUnregister ? F(i, h, []) : [])), q = (h, p, g = {}) => {
|
|
3408
3408
|
const V = F(n, h);
|
|
3409
3409
|
let E = p;
|
|
@@ -3411,7 +3411,7 @@ function ba(e = {}) {
|
|
|
3411
3411
|
const C = V._f;
|
|
3412
3412
|
C && (!C.disabled && Z(s, h, xi(p, C)), E = tr(C.ref) && le(p) ? "" : p, gi(C.ref) ? [...C.ref.options].forEach((P) => P.selected = E.includes(P.value)) : C.refs ? Tt(C.ref) ? C.refs.forEach((P) => {
|
|
3413
3413
|
(!P.defaultChecked || !P.disabled) && (Array.isArray(E) ? P.checked = !!E.find((U) => U === P.value) : P.checked = E === P.value || !!E);
|
|
3414
|
-
}) : C.refs.forEach((P) => P.checked = P.value === E) :
|
|
3414
|
+
}) : C.refs.forEach((P) => P.checked = P.value === E) : Rr(C.ref) ? C.ref.value = "" : (C.ref.value = E, C.ref.type || m.state.next({
|
|
3415
3415
|
name: h,
|
|
3416
3416
|
values: ie(s)
|
|
3417
3417
|
})));
|
|
@@ -3432,7 +3432,7 @@ function ba(e = {}) {
|
|
|
3432
3432
|
}), (u.isDirty || u.dirtyFields || d.isDirty || d.dirtyFields) && g.shouldDirty && m.state.next({
|
|
3433
3433
|
name: h,
|
|
3434
3434
|
dirtyFields: wt(i, s),
|
|
3435
|
-
isDirty:
|
|
3435
|
+
isDirty: j(h, C)
|
|
3436
3436
|
})) : V && !V._f && !le(C) ? J(h, C, g) : q(h, C, g), gn(h, a) && m.state.next({ ...r, name: h }), m.state.next({
|
|
3437
3437
|
name: o.mount ? h : void 0,
|
|
3438
3438
|
values: ie(s)
|
|
@@ -3462,8 +3462,8 @@ function ba(e = {}) {
|
|
|
3462
3462
|
z = Zr.error, g = Zr.name, ye = fe(zr);
|
|
3463
3463
|
}
|
|
3464
3464
|
} else
|
|
3465
|
-
b([g], !0), z = (await wn(E, a.disabled, s, v, t.shouldUseNativeValidation))[g], b([g]), C(Ht), V && (z ? ye = !1 : (u.isValid || d.isValid) && (ye = await
|
|
3466
|
-
V && (E._f.deps && ue(E._f.deps),
|
|
3465
|
+
b([g], !0), z = (await wn(E, a.disabled, s, v, t.shouldUseNativeValidation))[g], b([g]), C(Ht), V && (z ? ye = !1 : (u.isValid || d.isValid) && (ye = await R(n, !0)));
|
|
3466
|
+
V && (E._f.deps && ue(E._f.deps), S(g, ye, z, fr));
|
|
3467
3467
|
}
|
|
3468
3468
|
}, Ee = (h, p) => {
|
|
3469
3469
|
if (F(r.errors, p) && h.focus)
|
|
@@ -3476,10 +3476,10 @@ function ba(e = {}) {
|
|
|
3476
3476
|
g = fe(C), V = h ? !E.some((P) => F(C, P)) : g;
|
|
3477
3477
|
} else h ? (V = (await Promise.all(E.map(async (C) => {
|
|
3478
3478
|
const P = F(n, C);
|
|
3479
|
-
return await
|
|
3480
|
-
}))).every(Boolean), !(!V && !r.isValid) && y()) : V = g = await
|
|
3479
|
+
return await R(P && P._f ? { [C]: P } : P);
|
|
3480
|
+
}))).every(Boolean), !(!V && !r.isValid) && y()) : V = g = await R(n);
|
|
3481
3481
|
return m.state.next({
|
|
3482
|
-
...!
|
|
3482
|
+
...!Se(h) || (u.isValid || d.isValid) && g !== r.isValid ? {} : { name: h },
|
|
3483
3483
|
...t.resolver || !h ? { isValid: g } : {},
|
|
3484
3484
|
errors: r.errors
|
|
3485
3485
|
}), p.shouldFocus && !V && Ot(n, Ee, h ? E : a.mount), V;
|
|
@@ -3487,7 +3487,7 @@ function ba(e = {}) {
|
|
|
3487
3487
|
const p = {
|
|
3488
3488
|
...o.mount ? s : i
|
|
3489
3489
|
};
|
|
3490
|
-
return ee(h) ? p :
|
|
3490
|
+
return ee(h) ? p : Se(h) ? F(p, h) : h.map((g) => F(p, g));
|
|
3491
3491
|
}, ot = (h, p) => ({
|
|
3492
3492
|
invalid: !!F((p || r).errors, h),
|
|
3493
3493
|
isDirty: !!F((p || r).dirtyFields, h),
|
|
@@ -3509,7 +3509,7 @@ function ba(e = {}) {
|
|
|
3509
3509
|
errors: r.errors,
|
|
3510
3510
|
isValid: !1
|
|
3511
3511
|
}), g && g.shouldFocus && V && V.focus && V.focus();
|
|
3512
|
-
},
|
|
3512
|
+
}, Re = (h, p) => Oe(h) ? m.state.subscribe({
|
|
3513
3513
|
next: (g) => "values" in g && h(D(void 0, p), g)
|
|
3514
3514
|
}) : D(h, p, !0), Ce = (h) => m.state.subscribe({
|
|
3515
3515
|
next: (p) => {
|
|
@@ -3533,9 +3533,9 @@ function ba(e = {}) {
|
|
|
3533
3533
|
values: ie(s)
|
|
3534
3534
|
}), m.state.next({
|
|
3535
3535
|
...r,
|
|
3536
|
-
...p.keepDirty ? { isDirty:
|
|
3536
|
+
...p.keepDirty ? { isDirty: j() } : {}
|
|
3537
3537
|
}), !p.keepIsValid && y();
|
|
3538
|
-
},
|
|
3538
|
+
}, Ae = ({ disabled: h, name: p }) => {
|
|
3539
3539
|
(me(h) && o.mount || h || a.disabled.has(p)) && (h ? a.disabled.add(p) : a.disabled.delete(p));
|
|
3540
3540
|
}, Ye = (h, p = {}) => {
|
|
3541
3541
|
let g = F(n, h);
|
|
@@ -3548,7 +3548,7 @@ function ba(e = {}) {
|
|
|
3548
3548
|
mount: !0,
|
|
3549
3549
|
...p
|
|
3550
3550
|
}
|
|
3551
|
-
}), a.mount.add(h), g ?
|
|
3551
|
+
}), a.mount.add(h), g ? Ae({
|
|
3552
3552
|
disabled: me(p.disabled) ? p.disabled : t.disabled,
|
|
3553
3553
|
name: h
|
|
3554
3554
|
}) : O(h, !0, p.value), {
|
|
@@ -3604,7 +3604,7 @@ function ba(e = {}) {
|
|
|
3604
3604
|
const { errors: C, values: P } = await k();
|
|
3605
3605
|
r.errors = C, E = ie(P);
|
|
3606
3606
|
} else
|
|
3607
|
-
await
|
|
3607
|
+
await R(n);
|
|
3608
3608
|
if (a.disabled.size)
|
|
3609
3609
|
for (const C of a.disabled)
|
|
3610
3610
|
re(E, C);
|
|
@@ -3628,8 +3628,8 @@ function ba(e = {}) {
|
|
|
3628
3628
|
}), V)
|
|
3629
3629
|
throw V;
|
|
3630
3630
|
}, Pt = (h, p = {}) => {
|
|
3631
|
-
F(n, h) && (ee(p.defaultValue) ? X(h, ie(F(i, h))) : (X(h, p.defaultValue), Z(i, h, ie(p.defaultValue))), p.keepTouched || re(r.touchedFields, h), p.keepDirty || (re(r.dirtyFields, h), r.isDirty = p.defaultValue ?
|
|
3632
|
-
},
|
|
3631
|
+
F(n, h) && (ee(p.defaultValue) ? X(h, ie(F(i, h))) : (X(h, p.defaultValue), Z(i, h, ie(p.defaultValue))), p.keepTouched || re(r.touchedFields, h), p.keepDirty || (re(r.dirtyFields, h), r.isDirty = p.defaultValue ? j(h, ie(F(i, h))) : j()), p.keepError || (re(r.errors, h), u.isValid && y()), m.state.next({ ...r }));
|
|
3632
|
+
}, jt = (h, p = {}) => {
|
|
3633
3633
|
const g = h ? ie(h) : i, V = ie(g), E = fe(h), C = E ? i : V;
|
|
3634
3634
|
if (p.keepDefaultValues || (i = g), !p.keepValues) {
|
|
3635
3635
|
if (p.keepDirtyValues) {
|
|
@@ -3684,7 +3684,7 @@ function ba(e = {}) {
|
|
|
3684
3684
|
isSubmitSuccessful: p.keepIsSubmitSuccessful ? r.isSubmitSuccessful : !1,
|
|
3685
3685
|
isSubmitting: !1
|
|
3686
3686
|
});
|
|
3687
|
-
},
|
|
3687
|
+
}, Bt = (h, p) => jt(Oe(h) ? h(s) : h, p), Rt = (h, p = {}) => {
|
|
3688
3688
|
const g = F(n, h), V = g && g._f;
|
|
3689
3689
|
if (V) {
|
|
3690
3690
|
const E = V.refs ? V.refs[0] : V.ref;
|
|
@@ -3706,15 +3706,15 @@ function ba(e = {}) {
|
|
|
3706
3706
|
_runSchema: k,
|
|
3707
3707
|
_focusError: gt,
|
|
3708
3708
|
_getWatch: D,
|
|
3709
|
-
_getDirty:
|
|
3709
|
+
_getDirty: j,
|
|
3710
3710
|
_setValid: y,
|
|
3711
3711
|
_setFieldArray: M,
|
|
3712
|
-
_setDisabledField:
|
|
3712
|
+
_setDisabledField: Ae,
|
|
3713
3713
|
_setErrors: _,
|
|
3714
3714
|
_getFieldArray: I,
|
|
3715
|
-
_reset:
|
|
3715
|
+
_reset: jt,
|
|
3716
3716
|
_resetDefaultValues: () => Oe(t.defaultValues) && t.defaultValues().then((h) => {
|
|
3717
|
-
|
|
3717
|
+
Bt(h, t.resetOptions), m.state.next({
|
|
3718
3718
|
isLoading: !1
|
|
3719
3719
|
});
|
|
3720
3720
|
}),
|
|
@@ -3760,15 +3760,15 @@ function ba(e = {}) {
|
|
|
3760
3760
|
trigger: ue,
|
|
3761
3761
|
register: Ye,
|
|
3762
3762
|
handleSubmit: Mt,
|
|
3763
|
-
watch:
|
|
3763
|
+
watch: Re,
|
|
3764
3764
|
setValue: X,
|
|
3765
3765
|
getValues: Te,
|
|
3766
|
-
reset:
|
|
3766
|
+
reset: Bt,
|
|
3767
3767
|
resetField: Pt,
|
|
3768
3768
|
clearErrors: ze,
|
|
3769
3769
|
unregister: Ie,
|
|
3770
3770
|
setError: Ze,
|
|
3771
|
-
setFocus:
|
|
3771
|
+
setFocus: Rt,
|
|
3772
3772
|
getFieldState: ot
|
|
3773
3773
|
};
|
|
3774
3774
|
return {
|
|
@@ -3777,7 +3777,7 @@ function ba(e = {}) {
|
|
|
3777
3777
|
};
|
|
3778
3778
|
}
|
|
3779
3779
|
function wa(e = {}) {
|
|
3780
|
-
const t =
|
|
3780
|
+
const t = B.useRef(void 0), r = B.useRef(void 0), [n, i] = B.useState({
|
|
3781
3781
|
isDirty: !1,
|
|
3782
3782
|
isValidating: !1,
|
|
3783
3783
|
isLoading: Oe(e.defaultValues),
|
|
@@ -3808,7 +3808,7 @@ function wa(e = {}) {
|
|
|
3808
3808
|
};
|
|
3809
3809
|
}
|
|
3810
3810
|
const s = t.current.control;
|
|
3811
|
-
return s._options = e,
|
|
3811
|
+
return s._options = e, Br(() => {
|
|
3812
3812
|
const o = s._subscribe({
|
|
3813
3813
|
formState: s._proxyFormState,
|
|
3814
3814
|
callback: () => i({ ...s._formState }),
|
|
@@ -3818,27 +3818,27 @@ function wa(e = {}) {
|
|
|
3818
3818
|
...a,
|
|
3819
3819
|
isReady: !0
|
|
3820
3820
|
})), s._formState.isReady = !0, o;
|
|
3821
|
-
}, [s]),
|
|
3821
|
+
}, [s]), B.useEffect(() => s._disableForm(e.disabled), [s, e.disabled]), B.useEffect(() => {
|
|
3822
3822
|
e.mode && (s._options.mode = e.mode), e.reValidateMode && (s._options.reValidateMode = e.reValidateMode);
|
|
3823
|
-
}, [s, e.mode, e.reValidateMode]),
|
|
3823
|
+
}, [s, e.mode, e.reValidateMode]), B.useEffect(() => {
|
|
3824
3824
|
e.errors && (s._setErrors(e.errors), s._focusError());
|
|
3825
|
-
}, [s, e.errors]),
|
|
3825
|
+
}, [s, e.errors]), B.useEffect(() => {
|
|
3826
3826
|
e.shouldUnregister && s._subjects.state.next({
|
|
3827
3827
|
values: s._getWatch()
|
|
3828
3828
|
});
|
|
3829
|
-
}, [s, e.shouldUnregister]),
|
|
3829
|
+
}, [s, e.shouldUnregister]), B.useEffect(() => {
|
|
3830
3830
|
if (s._proxyFormState.isDirty) {
|
|
3831
3831
|
const o = s._getDirty();
|
|
3832
3832
|
o !== n.isDirty && s._subjects.state.next({
|
|
3833
3833
|
isDirty: o
|
|
3834
3834
|
});
|
|
3835
3835
|
}
|
|
3836
|
-
}, [s, n.isDirty]),
|
|
3836
|
+
}, [s, n.isDirty]), B.useEffect(() => {
|
|
3837
3837
|
e.values && !Pe(e.values, r.current) ? (s._reset(e.values, {
|
|
3838
3838
|
keepFieldsRef: !0,
|
|
3839
3839
|
...s._options.resetOptions
|
|
3840
3840
|
}), r.current = e.values, i((o) => ({ ...o }))) : s._resetDefaultValues();
|
|
3841
|
-
}, [s, e.values]),
|
|
3841
|
+
}, [s, e.values]), B.useEffect(() => {
|
|
3842
3842
|
s._state.mount || (s._setValid(), s._state.mount = !0), s._state.watch && (s._state.watch = !1, s._subjects.state.next({ ...s._formState })), s._removeUnmounted();
|
|
3843
3843
|
}), t.current.formState = di(n, s), t.current;
|
|
3844
3844
|
}
|
|
@@ -3917,7 +3917,7 @@ function Ol({
|
|
|
3917
3917
|
}, [f, u.watch]), /* @__PURE__ */ c(sa, { ...u, children: /* @__PURE__ */ c(
|
|
3918
3918
|
"form",
|
|
3919
3919
|
{
|
|
3920
|
-
className:
|
|
3920
|
+
className: A("bbn-form", e),
|
|
3921
3921
|
name: t,
|
|
3922
3922
|
onSubmit: u.handleSubmit(l),
|
|
3923
3923
|
...a,
|
|
@@ -3948,7 +3948,7 @@ function El(e) {
|
|
|
3948
3948
|
return Array.isArray(e) ? e.map((i) => t(i, r)) : t(e, r);
|
|
3949
3949
|
}
|
|
3950
3950
|
const ka = /^-?\d*\.?\d*$/;
|
|
3951
|
-
function
|
|
3951
|
+
function Al({
|
|
3952
3952
|
name: e,
|
|
3953
3953
|
id: t = e,
|
|
3954
3954
|
label: r,
|
|
@@ -3973,8 +3973,8 @@ function Sl({
|
|
|
3973
3973
|
invalid: _,
|
|
3974
3974
|
onChange: O,
|
|
3975
3975
|
onBlur: L
|
|
3976
|
-
} = mt({ name: e, defaultValue: l, autoFocus: a, shouldUnregister: v, validateOnMount: y }),
|
|
3977
|
-
return /* @__PURE__ */ c(lr, { label: r, className: s, state:
|
|
3976
|
+
} = mt({ name: e, defaultValue: l, autoFocus: a, shouldUnregister: v, validateOnMount: y }), S = _ ? "error" : N;
|
|
3977
|
+
return /* @__PURE__ */ c(lr, { label: r, className: s, state: S, hint: _ ? w : n, children: /* @__PURE__ */ c(
|
|
3978
3978
|
Vr,
|
|
3979
3979
|
{
|
|
3980
3980
|
inputMode: "decimal",
|
|
@@ -3990,15 +3990,15 @@ function Sl({
|
|
|
3990
3990
|
placeholder: f,
|
|
3991
3991
|
suffix: d,
|
|
3992
3992
|
prefix: m,
|
|
3993
|
-
state:
|
|
3994
|
-
onChange: (
|
|
3995
|
-
ka.test(
|
|
3993
|
+
state: S,
|
|
3994
|
+
onChange: (R) => {
|
|
3995
|
+
ka.test(R.target.value) && O(R.target.value);
|
|
3996
3996
|
},
|
|
3997
3997
|
onBlur: L
|
|
3998
3998
|
}
|
|
3999
3999
|
) });
|
|
4000
4000
|
}
|
|
4001
|
-
function
|
|
4001
|
+
function Sl({
|
|
4002
4002
|
name: e,
|
|
4003
4003
|
id: t = e,
|
|
4004
4004
|
label: r,
|
|
@@ -4023,8 +4023,8 @@ function Al({
|
|
|
4023
4023
|
invalid: _,
|
|
4024
4024
|
onChange: O,
|
|
4025
4025
|
onBlur: L
|
|
4026
|
-
} = mt({ name: e, defaultValue: l, autoFocus: a, shouldUnregister: v, validateOnMount: y }),
|
|
4027
|
-
return /* @__PURE__ */ c(lr, { label: r, className: s, state:
|
|
4026
|
+
} = mt({ name: e, defaultValue: l, autoFocus: a, shouldUnregister: v, validateOnMount: y }), S = _ ? "error" : N;
|
|
4027
|
+
return /* @__PURE__ */ c(lr, { label: r, className: s, state: S, hint: _ ? w : n, children: /* @__PURE__ */ c(
|
|
4028
4028
|
Vr,
|
|
4029
4029
|
{
|
|
4030
4030
|
ref: b,
|
|
@@ -4038,7 +4038,7 @@ function Al({
|
|
|
4038
4038
|
placeholder: f,
|
|
4039
4039
|
suffix: d,
|
|
4040
4040
|
prefix: m,
|
|
4041
|
-
state:
|
|
4041
|
+
state: S,
|
|
4042
4042
|
onChange: O,
|
|
4043
4043
|
onBlur: L
|
|
4044
4044
|
}
|
|
@@ -4057,7 +4057,7 @@ function Fl({
|
|
|
4057
4057
|
}) {
|
|
4058
4058
|
const { ref: f, value: u = !1, onChange: d, onBlur: m } = mt({ name: e });
|
|
4059
4059
|
return /* @__PURE__ */ c(
|
|
4060
|
-
|
|
4060
|
+
Ri,
|
|
4061
4061
|
{
|
|
4062
4062
|
ref: f,
|
|
4063
4063
|
name: e,
|
|
@@ -4133,29 +4133,29 @@ function Vl({
|
|
|
4133
4133
|
}) {
|
|
4134
4134
|
const {
|
|
4135
4135
|
ref: L,
|
|
4136
|
-
value:
|
|
4136
|
+
value: S = "",
|
|
4137
4137
|
error: k,
|
|
4138
4138
|
invalid: $,
|
|
4139
|
-
onChange:
|
|
4139
|
+
onChange: R,
|
|
4140
4140
|
onBlur: H
|
|
4141
|
-
} = mt({ name: s, defaultValue: v, autoFocus: m, shouldUnregister: y, validateOnMount: M }),
|
|
4142
|
-
return /* @__PURE__ */ c(lr, { label: a, className: u, state:
|
|
4141
|
+
} = mt({ name: s, defaultValue: v, autoFocus: m, shouldUnregister: y, validateOnMount: M }), j = $ ? "error" : b;
|
|
4142
|
+
return /* @__PURE__ */ c(lr, { label: a, className: u, state: j, hint: $ ? k : l, children: /* @__PURE__ */ c(
|
|
4143
4143
|
qn,
|
|
4144
4144
|
{
|
|
4145
4145
|
open: e,
|
|
4146
4146
|
defaultOpen: t,
|
|
4147
4147
|
options: r,
|
|
4148
4148
|
ref: L,
|
|
4149
|
-
value:
|
|
4149
|
+
value: S,
|
|
4150
4150
|
id: o,
|
|
4151
4151
|
name: s,
|
|
4152
4152
|
className: f,
|
|
4153
4153
|
disabled: d,
|
|
4154
4154
|
placeholder: N,
|
|
4155
|
-
state:
|
|
4155
|
+
state: j,
|
|
4156
4156
|
optionClassName: n,
|
|
4157
4157
|
popoverClassName: i,
|
|
4158
|
-
onSelect:
|
|
4158
|
+
onSelect: R,
|
|
4159
4159
|
onBlur: H,
|
|
4160
4160
|
onOpen: w,
|
|
4161
4161
|
onClose: () => {
|
|
@@ -4182,7 +4182,7 @@ const Ea = {
|
|
|
4182
4182
|
logo: "size-5",
|
|
4183
4183
|
subLogo: "text-[0.4rem]"
|
|
4184
4184
|
}
|
|
4185
|
-
},
|
|
4185
|
+
}, Aa = ({ logoUrl: e, rank: t, moniker: r, size: n = "md", className: i }) => {
|
|
4186
4186
|
const [s, o] = oe(!1), a = Ea[n], l = (r == null ? void 0 : r.charAt(0).toUpperCase()) ?? String(t);
|
|
4187
4187
|
return /* @__PURE__ */ c("span", { className: ve("relative inline-block", a.logo, i), children: e && !s ? /* @__PURE__ */ c(
|
|
4188
4188
|
"img",
|
|
@@ -4201,39 +4201,39 @@ const Ea = {
|
|
|
4201
4201
|
}
|
|
4202
4202
|
) });
|
|
4203
4203
|
};
|
|
4204
|
-
function ki({ bsnId: e, bsnName: t, bsnLogoUrl: r, address: n, provider: i, onRemove: s }) {
|
|
4205
|
-
var
|
|
4204
|
+
function ki({ bsnId: e, bsnName: t, bsnLogoUrl: r, address: n, provider: i, onRemove: s, showChain: o = !0 }) {
|
|
4205
|
+
var u, d;
|
|
4206
4206
|
if (!i) return null;
|
|
4207
|
-
const
|
|
4207
|
+
const a = () => {
|
|
4208
4208
|
if (r)
|
|
4209
4209
|
return /* @__PURE__ */ c(Yt, { url: r, alt: t, variant: "rounded", size: "tiny", className: "mr-1" });
|
|
4210
|
-
const
|
|
4210
|
+
const m = (t == null ? void 0 : t.charAt(0).toUpperCase()) || "?";
|
|
4211
4211
|
return /* @__PURE__ */ c(Yt, { variant: "rounded", size: "tiny", className: "mr-1", children: /* @__PURE__ */ c(
|
|
4212
4212
|
W,
|
|
4213
4213
|
{
|
|
4214
4214
|
as: "span",
|
|
4215
4215
|
className: "inline-flex h-full w-full items-center justify-center bg-secondary-main text-xs text-accent-contrast",
|
|
4216
|
-
children:
|
|
4216
|
+
children: m
|
|
4217
4217
|
}
|
|
4218
4218
|
) });
|
|
4219
|
-
},
|
|
4220
|
-
|
|
4219
|
+
}, l = (m) => !m || m.length <= 12 ? m : `${m.slice(0, 6)}...${m.slice(-6)}`, f = () => o ? n ? /* @__PURE__ */ c("div", { className: "text-xs text-accent-secondary", children: l(n) }) : /* @__PURE__ */ x("div", { className: "flex items-center text-xs text-accent-secondary", children: [
|
|
4220
|
+
a(),
|
|
4221
4221
|
t
|
|
4222
|
-
] });
|
|
4222
|
+
] }) : null;
|
|
4223
4223
|
return /* @__PURE__ */ x("div", { className: "flex flex-row items-center justify-between", children: [
|
|
4224
4224
|
/* @__PURE__ */ x("div", { className: "flex h-10 flex-row gap-2", children: [
|
|
4225
4225
|
/* @__PURE__ */ c("div", { className: "shrink-0", children: /* @__PURE__ */ c(
|
|
4226
|
-
|
|
4226
|
+
Aa,
|
|
4227
4227
|
{
|
|
4228
4228
|
logoUrl: i.logo_url,
|
|
4229
4229
|
rank: i.rank,
|
|
4230
|
-
moniker: (
|
|
4230
|
+
moniker: (u = i.description) == null ? void 0 : u.moniker,
|
|
4231
4231
|
size: "lg"
|
|
4232
4232
|
}
|
|
4233
4233
|
) }),
|
|
4234
4234
|
/* @__PURE__ */ x("div", { className: "flex flex-col justify-center text-accent-primary", children: [
|
|
4235
|
-
|
|
4236
|
-
/* @__PURE__ */ c(W, { as: "div", className: "text-base font-medium text-accent-primary", children: (
|
|
4235
|
+
f(),
|
|
4236
|
+
/* @__PURE__ */ c(W, { as: "div", className: "text-base font-medium text-accent-primary", children: (d = i.description) == null ? void 0 : d.moniker })
|
|
4237
4237
|
] })
|
|
4238
4238
|
] }),
|
|
4239
4239
|
s ? /* @__PURE__ */ c(
|
|
@@ -4276,7 +4276,7 @@ const _l = ({
|
|
|
4276
4276
|
children: r ? "Selected" : "Select"
|
|
4277
4277
|
}
|
|
4278
4278
|
)
|
|
4279
|
-
] }),
|
|
4279
|
+
] }), Sa = ({
|
|
4280
4280
|
amount: e,
|
|
4281
4281
|
currencyIcon: t,
|
|
4282
4282
|
currencyName: r,
|
|
@@ -4376,11 +4376,11 @@ T.decimalPlaces = T.dp = function() {
|
|
|
4376
4376
|
return r < 0 ? 0 : r;
|
|
4377
4377
|
};
|
|
4378
4378
|
T.dividedBy = T.div = function(e) {
|
|
4379
|
-
return
|
|
4379
|
+
return je(this, new this.constructor(e));
|
|
4380
4380
|
};
|
|
4381
4381
|
T.dividedToIntegerBy = T.idiv = function(e) {
|
|
4382
4382
|
var t = this, r = t.constructor;
|
|
4383
|
-
return Y(
|
|
4383
|
+
return Y(je(t, new r(e), 0, 1), r.precision);
|
|
4384
4384
|
};
|
|
4385
4385
|
T.equals = T.eq = function(e) {
|
|
4386
4386
|
return !this.cmp(e);
|
|
@@ -4418,22 +4418,22 @@ T.logarithm = T.log = function(e) {
|
|
|
4418
4418
|
e = new n(10);
|
|
4419
4419
|
else if (e = new n(e), e.s < 1 || e.eq(pe)) throw Error(Ne + "NaN");
|
|
4420
4420
|
if (r.s < 1) throw Error(Ne + (r.s ? "NaN" : "-Infinity"));
|
|
4421
|
-
return r.eq(pe) ? new n(0) : (K = !1, t =
|
|
4421
|
+
return r.eq(pe) ? new n(0) : (K = !1, t = je(St(r, s), St(e, s), s), K = !0, Y(t, i));
|
|
4422
4422
|
};
|
|
4423
4423
|
T.minus = T.sub = function(e) {
|
|
4424
4424
|
var t = this;
|
|
4425
|
-
return e = new t.constructor(e), t.s == e.s ?
|
|
4425
|
+
return e = new t.constructor(e), t.s == e.s ? Si(t, e) : Ei(t, (e.s = -e.s, e));
|
|
4426
4426
|
};
|
|
4427
4427
|
T.modulo = T.mod = function(e) {
|
|
4428
4428
|
var t, r = this, n = r.constructor, i = n.precision;
|
|
4429
4429
|
if (e = new n(e), !e.s) throw Error(Ne + "NaN");
|
|
4430
|
-
return r.s ? (K = !1, t =
|
|
4430
|
+
return r.s ? (K = !1, t = je(r, e, 0, 1).times(e), K = !0, r.minus(t)) : Y(new n(r), i);
|
|
4431
4431
|
};
|
|
4432
4432
|
T.naturalExponential = T.exp = function() {
|
|
4433
|
-
return
|
|
4433
|
+
return Ai(this);
|
|
4434
4434
|
};
|
|
4435
4435
|
T.naturalLogarithm = T.ln = function() {
|
|
4436
|
-
return
|
|
4436
|
+
return St(this);
|
|
4437
4437
|
};
|
|
4438
4438
|
T.negated = T.neg = function() {
|
|
4439
4439
|
var e = new this.constructor(this);
|
|
@@ -4441,7 +4441,7 @@ T.negated = T.neg = function() {
|
|
|
4441
4441
|
};
|
|
4442
4442
|
T.plus = T.add = function(e) {
|
|
4443
4443
|
var t = this;
|
|
4444
|
-
return e = new t.constructor(e), t.s == e.s ? Ei(t, e) :
|
|
4444
|
+
return e = new t.constructor(e), t.s == e.s ? Ei(t, e) : Si(t, (e.s = -e.s, e));
|
|
4445
4445
|
};
|
|
4446
4446
|
T.precision = T.sd = function(e) {
|
|
4447
4447
|
var t, r, n, i = this;
|
|
@@ -4459,7 +4459,7 @@ T.squareRoot = T.sqrt = function() {
|
|
|
4459
4459
|
throw Error(Ne + "NaN");
|
|
4460
4460
|
}
|
|
4461
4461
|
for (e = ne(a), K = !1, i = Math.sqrt(+a), i == 0 || i == 1 / 0 ? (t = Fe(a.d), (t.length + e) % 2 == 0 && (t += "0"), i = Math.sqrt(t), e = vt((e + 1) / 2) - (e < 0 || e % 2), i == 1 / 0 ? t = "5e" + e : (t = i.toExponential(), t = t.slice(0, t.indexOf("e") + 1) + e), n = new l(t)) : n = new l(i.toString()), r = l.precision, i = o = r + 3; ; )
|
|
4462
|
-
if (s = n, n = s.plus(
|
|
4462
|
+
if (s = n, n = s.plus(je(a, s, o + 2)).times(0.5), Fe(s.d).slice(0, o) === (t = Fe(n.d)).slice(0, o)) {
|
|
4463
4463
|
if (t = t.slice(o - 3, o + 1), i == o && t == "4999") {
|
|
4464
4464
|
if (Y(s, r + 1, 0), s.times(s).eq(a)) {
|
|
4465
4465
|
n = s;
|
|
@@ -4518,7 +4518,7 @@ T.toPower = T.pow = function(e) {
|
|
|
4518
4518
|
return K = !0, e.s < 0 ? new l(pe).div(i) : Y(i, n);
|
|
4519
4519
|
}
|
|
4520
4520
|
} else if (s < 0) throw Error(Ne + "NaN");
|
|
4521
|
-
return s = s < 0 && e.d[Math.max(t, r)] & 1 ? -1 : 1, a.s = 1, K = !1, i = e.times(
|
|
4521
|
+
return s = s < 0 && e.d[Math.max(t, r)] & 1 ? -1 : 1, a.s = 1, K = !1, i = e.times(St(a, n + f)), K = !0, i = Ai(i), i.s = s, i;
|
|
4522
4522
|
};
|
|
4523
4523
|
T.toPrecision = function(e, t) {
|
|
4524
4524
|
var r, n, i = this, s = i.constructor;
|
|
@@ -4560,7 +4560,7 @@ function Fe(e) {
|
|
|
4560
4560
|
for (; o % 10 === 0; ) o /= 10;
|
|
4561
4561
|
return s + o;
|
|
4562
4562
|
}
|
|
4563
|
-
var
|
|
4563
|
+
var je = /* @__PURE__ */ function() {
|
|
4564
4564
|
function e(n, i) {
|
|
4565
4565
|
var s, o = 0, a = n.length;
|
|
4566
4566
|
for (n = n.slice(); a--; )
|
|
@@ -4585,32 +4585,32 @@ var Re = /* @__PURE__ */ function() {
|
|
|
4585
4585
|
for (; !n[0] && n.length > 1; ) n.shift();
|
|
4586
4586
|
}
|
|
4587
4587
|
return function(n, i, s, o) {
|
|
4588
|
-
var a, l, f, u, d, m, v, N, y, b, M, w, _, O, L,
|
|
4589
|
-
if (!n.s) return new
|
|
4588
|
+
var a, l, f, u, d, m, v, N, y, b, M, w, _, O, L, S, k, $, R = n.constructor, H = n.s == i.s ? 1 : -1, j = n.d, D = i.d;
|
|
4589
|
+
if (!n.s) return new R(n);
|
|
4590
4590
|
if (!i.s) throw Error(Ne + "Division by zero");
|
|
4591
|
-
for (l = n.e - i.e, k = D.length, L =
|
|
4592
|
-
if (D[f] > (
|
|
4591
|
+
for (l = n.e - i.e, k = D.length, L = j.length, v = new R(H), N = v.d = [], f = 0; D[f] == (j[f] || 0); ) ++f;
|
|
4592
|
+
if (D[f] > (j[f] || 0) && --l, s == null ? w = s = R.precision : o ? w = s + (ne(n) - ne(i)) + 1 : w = s, w < 0) return new R(0);
|
|
4593
4593
|
if (w = w / G + 2 | 0, f = 0, k == 1)
|
|
4594
4594
|
for (u = 0, D = D[0], w++; (f < L || u) && w--; f++)
|
|
4595
|
-
_ = u * se + (
|
|
4595
|
+
_ = u * se + (j[f] || 0), N[f] = _ / D | 0, u = _ % D | 0;
|
|
4596
4596
|
else {
|
|
4597
|
-
for (u = se / (D[0] + 1) | 0, u > 1 && (D = e(D, u),
|
|
4598
|
-
$ = D.slice(), $.unshift(0),
|
|
4597
|
+
for (u = se / (D[0] + 1) | 0, u > 1 && (D = e(D, u), j = e(j, u), k = D.length, L = j.length), O = k, y = j.slice(0, k), b = y.length; b < k; ) y[b++] = 0;
|
|
4598
|
+
$ = D.slice(), $.unshift(0), S = D[0], D[1] >= se / 2 && ++S;
|
|
4599
4599
|
do
|
|
4600
|
-
u = 0, a = t(D, y, k, b), a < 0 ? (M = y[0], k != b && (M = M * se + (y[1] || 0)), u = M /
|
|
4600
|
+
u = 0, a = t(D, y, k, b), a < 0 ? (M = y[0], k != b && (M = M * se + (y[1] || 0)), u = M / S | 0, u > 1 ? (u >= se && (u = se - 1), d = e(D, u), m = d.length, b = y.length, a = t(d, y, m, b), a == 1 && (u--, r(d, k < m ? $ : D, m))) : (u == 0 && (a = u = 1), d = D.slice()), m = d.length, m < b && d.unshift(0), r(y, d, b), a == -1 && (b = y.length, a = t(D, y, k, b), a < 1 && (u++, r(y, k < b ? $ : D, b))), b = y.length) : a === 0 && (u++, y = [0]), N[f++] = u, a && y[0] ? y[b++] = j[O] || 0 : (y = [j[O]], b = 1);
|
|
4601
4601
|
while ((O++ < L || y[0] !== void 0) && w--);
|
|
4602
4602
|
}
|
|
4603
4603
|
return N[0] || N.shift(), v.e = l, Y(v, o ? s + ne(v) + 1 : s);
|
|
4604
4604
|
};
|
|
4605
4605
|
}();
|
|
4606
|
-
function
|
|
4606
|
+
function Ai(e, t) {
|
|
4607
4607
|
var r, n, i, s, o, a, l = 0, f = 0, u = e.constructor, d = u.precision;
|
|
4608
4608
|
if (ne(e) > 16) throw Error($r + ne(e));
|
|
4609
4609
|
if (!e.s) return new u(pe);
|
|
4610
4610
|
for (K = !1, a = d, o = new u(0.03125); e.abs().gte(0.1); )
|
|
4611
4611
|
e = e.times(o), f += 5;
|
|
4612
4612
|
for (n = Math.log(Ge(2, f)) / Math.LN10 * 2 + 5 | 0, a += n, r = i = s = new u(pe), u.precision = a; ; ) {
|
|
4613
|
-
if (i = Y(i.times(e), a), r = r.times(++l), o = s.plus(
|
|
4613
|
+
if (i = Y(i.times(e), a), r = r.times(++l), o = s.plus(je(i, r, a)), Fe(o.d).slice(0, a) === Fe(s.d).slice(0, a)) {
|
|
4614
4614
|
for (; f--; ) s = Y(s.times(s), a);
|
|
4615
4615
|
return u.precision = d, t == null ? (K = !0, Y(s, d)) : s;
|
|
4616
4616
|
}
|
|
@@ -4630,7 +4630,7 @@ function He(e) {
|
|
|
4630
4630
|
for (var t = ""; e--; ) t += "0";
|
|
4631
4631
|
return t;
|
|
4632
4632
|
}
|
|
4633
|
-
function
|
|
4633
|
+
function St(e, t) {
|
|
4634
4634
|
var r, n, i, s, o, a, l, f, u, d = 1, m = 10, v = e, N = v.d, y = v.constructor, b = y.precision;
|
|
4635
4635
|
if (v.s < 1) throw Error(Ne + (v.s ? "NaN" : "-Infinity"));
|
|
4636
4636
|
if (v.eq(pe)) return new y(0);
|
|
@@ -4641,10 +4641,10 @@ function At(e, t) {
|
|
|
4641
4641
|
v = v.times(e), r = Fe(v.d), n = r.charAt(0), d++;
|
|
4642
4642
|
s = ne(v), n > 1 ? (v = new y("0." + r), s++) : v = new y(n + "." + r.slice(1));
|
|
4643
4643
|
} else
|
|
4644
|
-
return l = mr(y, f + 2, b).times(s + ""), v =
|
|
4645
|
-
for (a = o = v =
|
|
4646
|
-
if (o = Y(o.times(u), f), l = a.plus(
|
|
4647
|
-
return a = a.times(2), s !== 0 && (a = a.plus(mr(y, f + 2, b).times(s + ""))), a =
|
|
4644
|
+
return l = mr(y, f + 2, b).times(s + ""), v = St(new y(n + "." + r.slice(1)), f - m).plus(l), y.precision = b, t == null ? (K = !0, Y(v, b)) : v;
|
|
4645
|
+
for (a = o = v = je(v.minus(pe), v.plus(pe), f), u = Y(v.times(v), f), i = 3; ; ) {
|
|
4646
|
+
if (o = Y(o.times(u), f), l = a.plus(je(o, new y(i), f)), Fe(l.d).slice(0, f) === Fe(a.d).slice(0, f))
|
|
4647
|
+
return a = a.times(2), s !== 0 && (a = a.plus(mr(y, f + 2, b).times(s + ""))), a = je(a, new y(d), f), y.precision = b, t == null ? (K = !0, Y(a, b)) : a;
|
|
4648
4648
|
a = l, i += 2;
|
|
4649
4649
|
}
|
|
4650
4650
|
}
|
|
@@ -4691,7 +4691,7 @@ function Y(e, t, r) {
|
|
|
4691
4691
|
throw Error($r + ne(e));
|
|
4692
4692
|
return e;
|
|
4693
4693
|
}
|
|
4694
|
-
function
|
|
4694
|
+
function Si(e, t) {
|
|
4695
4695
|
var r, n, i, s, o, a, l, f, u, d, m = e.constructor, v = m.precision;
|
|
4696
4696
|
if (!e.s || !t.s)
|
|
4697
4697
|
return t.s ? t.s = -t.s : t = new m(e), K ? Y(t, v) : t;
|
|
@@ -4810,7 +4810,7 @@ function Ta(e, t, r) {
|
|
|
4810
4810
|
const n = e * t;
|
|
4811
4811
|
return Da(n, r);
|
|
4812
4812
|
}
|
|
4813
|
-
const Ma = (e, t, r) => new Hr(e).toDecimalPlaces(t, r).toNumber(), Wr = 8, Pa = 5,
|
|
4813
|
+
const Ma = (e, t, r) => new Hr(e).toDecimalPlaces(t, r).toNumber(), Wr = 8, Pa = 5, ja = 640, Dl = ({
|
|
4814
4814
|
fieldName: e,
|
|
4815
4815
|
currencyIcon: t,
|
|
4816
4816
|
currencyName: r,
|
|
@@ -4835,7 +4835,7 @@ const Ma = (e, t, r) => new Hr(e).toDecimalPlaces(t, r).toNumber(), Wr = 8, Pa =
|
|
|
4835
4835
|
return /* @__PURE__ */ x(nt, { children: [
|
|
4836
4836
|
/* @__PURE__ */ c(Oa, { name: e, defaultValue: "" }),
|
|
4837
4837
|
/* @__PURE__ */ c(Dr, { className: "flex w-full flex-col content-center justify-between gap-4", children: /* @__PURE__ */ c(
|
|
4838
|
-
|
|
4838
|
+
Sa,
|
|
4839
4839
|
{
|
|
4840
4840
|
amount: f,
|
|
4841
4841
|
currencyIcon: t,
|
|
@@ -4854,28 +4854,29 @@ const Ma = (e, t, r) => new Hr(e).toDecimalPlaces(t, r).toNumber(), Wr = 8, Pa =
|
|
|
4854
4854
|
) })
|
|
4855
4855
|
] });
|
|
4856
4856
|
};
|
|
4857
|
-
function
|
|
4858
|
-
const
|
|
4859
|
-
return
|
|
4857
|
+
function Ba({ items: e, onRemove: t, showChain: r = !0 }) {
|
|
4858
|
+
const n = We(() => e, [e]);
|
|
4859
|
+
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(
|
|
4860
4860
|
ki,
|
|
4861
4861
|
{
|
|
4862
|
-
bsnId:
|
|
4863
|
-
bsnName:
|
|
4864
|
-
bsnLogoUrl:
|
|
4865
|
-
provider:
|
|
4866
|
-
onRemove: t
|
|
4862
|
+
bsnId: i,
|
|
4863
|
+
bsnName: s,
|
|
4864
|
+
bsnLogoUrl: o,
|
|
4865
|
+
provider: a,
|
|
4866
|
+
onRemove: t,
|
|
4867
|
+
showChain: r
|
|
4867
4868
|
},
|
|
4868
|
-
`${
|
|
4869
|
+
`${i}-${a.rank}`
|
|
4869
4870
|
)) });
|
|
4870
4871
|
}
|
|
4871
|
-
function Tl({ max: e, items: t = [], actionText: r, onAdd: n, onRemove: i }) {
|
|
4872
|
-
const
|
|
4872
|
+
function Tl({ max: e, items: t = [], actionText: r, onAdd: n, onRemove: i, showChain: s = !0 }) {
|
|
4873
|
+
const o = We(() => t.length, [t]);
|
|
4873
4874
|
return /* @__PURE__ */ c(Dr, { children: /* @__PURE__ */ x("div", { className: "flex w-full flex-col gap-4", children: [
|
|
4874
4875
|
/* @__PURE__ */ c("div", { className: "flex flex-row", children: /* @__PURE__ */ x("div", { className: "flex w-full flex-row content-center items-center justify-between font-normal", children: [
|
|
4875
4876
|
/* @__PURE__ */ c("span", { className: "text-sm sm:text-base", children: r }),
|
|
4876
|
-
/* @__PURE__ */ c(Jo, { counter:
|
|
4877
|
+
/* @__PURE__ */ c(Jo, { counter: o, max: e, onAdd: n })
|
|
4877
4878
|
] }) }),
|
|
4878
|
-
|
|
4879
|
+
o > 0 && /* @__PURE__ */ c(Ba, { items: t, onRemove: i, showChain: s })
|
|
4879
4880
|
] }) });
|
|
4880
4881
|
}
|
|
4881
4882
|
function Ur({ title: e, children: t, className: r, hint: n }) {
|
|
@@ -4897,7 +4898,7 @@ function Ur({ title: e, children: t, className: r, hint: n }) {
|
|
|
4897
4898
|
}
|
|
4898
4899
|
);
|
|
4899
4900
|
}
|
|
4900
|
-
function
|
|
4901
|
+
function Ra(e) {
|
|
4901
4902
|
return Vt({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M362.7 19.3L314.3 67.7 444.3 197.7l48.4-48.4c25-25 25-65.5 0-90.5L453.3 19.3c-25-25-65.5-25-90.5 0zm-71 71L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4L1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L421.7 220.3 291.7 90.3z" }, child: [] }] })(e);
|
|
4902
4903
|
}
|
|
4903
4904
|
function Ia({ value: e, onEdit: t, title: r = "Network Fee Rate", className: n }) {
|
|
@@ -4906,7 +4907,7 @@ function Ia({ value: e, onEdit: t, title: r = "Network Fee Rate", className: n }
|
|
|
4906
4907
|
e,
|
|
4907
4908
|
" sats/vB"
|
|
4908
4909
|
] }),
|
|
4909
|
-
t && /* @__PURE__ */ c(Ue, { size: "small", variant: "outlined", className: "h-6 w-6 pl-1 text-secondary-strokeDark", onClick: t, children: /* @__PURE__ */ c(
|
|
4910
|
+
t && /* @__PURE__ */ c(Ue, { size: "small", variant: "outlined", className: "h-6 w-6 pl-1 text-secondary-strokeDark", onClick: t, children: /* @__PURE__ */ c(Ra, { size: 16, className: "text-secondary-strokeDark" }) })
|
|
4910
4911
|
] });
|
|
4911
4912
|
}
|
|
4912
4913
|
function $a({ amount: e, coinSymbol: t, hint: r, title: n, className: i, decimals: s = Wr }) {
|
|
@@ -4954,8 +4955,8 @@ function Ml({
|
|
|
4954
4955
|
bbnFeeDecimals: d
|
|
4955
4956
|
}) {
|
|
4956
4957
|
return /* @__PURE__ */ c(Dr, { className: ve("flex w-full flex-col content-center justify-between gap-4", e), children: /* @__PURE__ */ x("div", { className: "flex flex-col gap-6 p-4", children: [
|
|
4957
|
-
/* @__PURE__ */ c(Ia, { value: t, onEdit: r }),
|
|
4958
|
-
/* @__PURE__ */ c($a, { amount: n, coinSymbol: i, hint: s }),
|
|
4958
|
+
t !== void 0 && /* @__PURE__ */ c(Ia, { value: t, onEdit: r }),
|
|
4959
|
+
n !== void 0 && i !== void 0 && /* @__PURE__ */ c($a, { amount: n, coinSymbol: i, hint: s }),
|
|
4959
4960
|
l !== void 0 && f ? /* @__PURE__ */ c(
|
|
4960
4961
|
Ha,
|
|
4961
4962
|
{
|
|
@@ -4965,8 +4966,8 @@ function Ml({
|
|
|
4965
4966
|
decimals: d
|
|
4966
4967
|
}
|
|
4967
4968
|
) : null,
|
|
4968
|
-
/* @__PURE__ */ c("div", { className: "divider my-4" }),
|
|
4969
|
-
/* @__PURE__ */ c(Wa, { total: o, coinSymbol: i, hint: a })
|
|
4969
|
+
o !== void 0 && i !== void 0 && /* @__PURE__ */ c("div", { className: "divider my-4" }),
|
|
4970
|
+
o !== void 0 && i !== void 0 && /* @__PURE__ */ c(Wa, { total: o, coinSymbol: i, hint: a })
|
|
4970
4971
|
] }) });
|
|
4971
4972
|
}
|
|
4972
4973
|
const Ua = ({ data: e }) => {
|
|
@@ -5002,7 +5003,7 @@ const Ua = ({ data: e }) => {
|
|
|
5002
5003
|
] }) });
|
|
5003
5004
|
};
|
|
5004
5005
|
function qa({ className: e, ...t }) {
|
|
5005
|
-
const n = si(
|
|
5006
|
+
const n = si(ja) ? Jn : yo;
|
|
5006
5007
|
return /* @__PURE__ */ c(n, { ...t, className: ve("w-[41.25rem] max-w-full", e) });
|
|
5007
5008
|
}
|
|
5008
5009
|
const Pl = ({
|
|
@@ -5156,7 +5157,7 @@ function Ya({
|
|
|
5156
5157
|
n && /* @__PURE__ */ c("div", { className: "bg-surface p-3 sm:p-4 rounded space-y-3 sm:space-y-4 overflow-x-auto", children: t.map((s, o) => /* @__PURE__ */ c(kn, { label: s.label, value: s.value }, o)) })
|
|
5157
5158
|
] });
|
|
5158
5159
|
}
|
|
5159
|
-
function
|
|
5160
|
+
function jl({ data: e, className: t }) {
|
|
5160
5161
|
return /* @__PURE__ */ x(
|
|
5161
5162
|
"div",
|
|
5162
5163
|
{
|
|
@@ -5194,12 +5195,12 @@ const Ga = ({ size: e = "md" }) => /* @__PURE__ */ c("div", { className: {
|
|
|
5194
5195
|
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",
|
|
5195
5196
|
fill: "#9E9E9E"
|
|
5196
5197
|
}
|
|
5197
|
-
) }), Li = () => /* @__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" }) }), Ja = ({ children: e, className: t = "" }) => /* @__PURE__ */ c(W, { variant: "body1", className:
|
|
5198
|
+
) }), Li = () => /* @__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" }) }), Ja = ({ children: e, className: t = "" }) => /* @__PURE__ */ c(W, { variant: "body1", className: A("px-7 pb-6 text-accent-primary md:hidden", t), children: e }), Qa = ({
|
|
5198
5199
|
background: e = "none",
|
|
5199
5200
|
backgroundClassName: t = "",
|
|
5200
5201
|
className: r = "",
|
|
5201
5202
|
children: n
|
|
5202
|
-
}) => /* @__PURE__ */ c("div", { className:
|
|
5203
|
+
}) => /* @__PURE__ */ c("div", { className: A((() => {
|
|
5203
5204
|
switch (e) {
|
|
5204
5205
|
case "secondary":
|
|
5205
5206
|
return "mx-[21px] rounded-lg bg-secondary-highlight md:mx-0 md:bg-transparent";
|
|
@@ -5217,10 +5218,10 @@ const Ga = ({ size: e = "md" }) => /* @__PURE__ */ c("div", { className: {
|
|
|
5217
5218
|
className: s = "",
|
|
5218
5219
|
children: o
|
|
5219
5220
|
}) => {
|
|
5220
|
-
const a =
|
|
5221
|
-
(m) => typeof m == "string" ||
|
|
5221
|
+
const a = B.Children.toArray(o), l = a.find(
|
|
5222
|
+
(m) => typeof m == "string" || B.isValidElement(m) && m.type !== Ft
|
|
5222
5223
|
), f = a.find(
|
|
5223
|
-
(m) =>
|
|
5224
|
+
(m) => B.isValidElement(m) && m.type === Ft
|
|
5224
5225
|
), u = typeof l == "string" ? l : "", d = r ? /* @__PURE__ */ c(Li, {}) : void 0;
|
|
5225
5226
|
return /* @__PURE__ */ c(
|
|
5226
5227
|
ea,
|
|
@@ -5236,11 +5237,11 @@ const Ga = ({ size: e = "md" }) => /* @__PURE__ */ c("div", { className: {
|
|
|
5236
5237
|
}
|
|
5237
5238
|
);
|
|
5238
5239
|
}, el = ({ icon: e, className: t = "", children: r }) => {
|
|
5239
|
-
const n =
|
|
5240
|
-
(l) => typeof l == "string" ||
|
|
5240
|
+
const n = B.Children.toArray(r), i = n.find(
|
|
5241
|
+
(l) => typeof l == "string" || B.isValidElement(l) && l.type !== Ft
|
|
5241
5242
|
), s = n.find(
|
|
5242
|
-
(l) =>
|
|
5243
|
-
), o = n.filter((l) =>
|
|
5243
|
+
(l) => B.isValidElement(l) && l.type === Ft
|
|
5244
|
+
), o = n.filter((l) => B.isValidElement(l) && l.type === Vi);
|
|
5244
5245
|
return /* @__PURE__ */ c(
|
|
5245
5246
|
ta,
|
|
5246
5247
|
{
|
|
@@ -5294,7 +5295,7 @@ const On = ({
|
|
|
5294
5295
|
isCopied: i,
|
|
5295
5296
|
onCopy: s,
|
|
5296
5297
|
className: o
|
|
5297
|
-
}) => /* @__PURE__ */ c("div", { className:
|
|
5298
|
+
}) => /* @__PURE__ */ c("div", { className: A(
|
|
5298
5299
|
"bg-secondary-highlight dark:bg-secondary-strokeLight rounded-[4px] p-3 flex-1 md:p-4",
|
|
5299
5300
|
o
|
|
5300
5301
|
), children: /* @__PURE__ */ x("div", { className: "flex flex-col w-full", children: [
|
|
@@ -5349,7 +5350,7 @@ const On = ({
|
|
|
5349
5350
|
n || t(!e);
|
|
5350
5351
|
},
|
|
5351
5352
|
disabled: n,
|
|
5352
|
-
className:
|
|
5353
|
+
className: A(
|
|
5353
5354
|
"relative inline-flex h-[31px] w-[55px] items-center rounded-full transition-colors duration-300 ease-in-out",
|
|
5354
5355
|
"focus:outline-none focus:ring-2 focus:ring-primary-main focus:ring-offset-2",
|
|
5355
5356
|
e ? "bg-primary-main dark:bg-primary-light" : "bg-[#78788029]",
|
|
@@ -5364,7 +5365,7 @@ const On = ({
|
|
|
5364
5365
|
children: /* @__PURE__ */ c(
|
|
5365
5366
|
"span",
|
|
5366
5367
|
{
|
|
5367
|
-
className:
|
|
5368
|
+
className: A(
|
|
5368
5369
|
"inline-block w-[27px] h-[27px] transform rounded-full bg-white transition-transform duration-300 ease-in-out",
|
|
5369
5370
|
"flex items-center justify-center shadow-sm",
|
|
5370
5371
|
e ? "translate-x-[26px]" : "translate-x-[2px]"
|
|
@@ -5379,7 +5380,7 @@ const On = ({
|
|
|
5379
5380
|
value: n,
|
|
5380
5381
|
onChange: i,
|
|
5381
5382
|
className: s
|
|
5382
|
-
}) => /* @__PURE__ */ x("div", { className:
|
|
5383
|
+
}) => /* @__PURE__ */ x("div", { className: A(
|
|
5383
5384
|
"flex items-center justify-between w-full bg-secondary-highlight dark:bg-secondary-strokeLight rounded-[4px] p-3 md:bg-transparent md:dark:bg-transparent md:p-0 md:mb-0",
|
|
5384
5385
|
s
|
|
5385
5386
|
), children: [
|
|
@@ -5411,7 +5412,7 @@ const On = ({
|
|
|
5411
5412
|
onCopy: n,
|
|
5412
5413
|
className: i,
|
|
5413
5414
|
icon: s
|
|
5414
|
-
}) => /* @__PURE__ */ c("div", { className:
|
|
5415
|
+
}) => /* @__PURE__ */ c("div", { className: A(
|
|
5415
5416
|
"flex items-center justify-between w-full bg-secondary-highlight dark:bg-secondary-strokeLight rounded-[4px] p-3 md:bg-transparent md:dark:bg-transparent md:p-0 md:mb-0",
|
|
5416
5417
|
i
|
|
5417
5418
|
), children: /* @__PURE__ */ c("div", { className: "flex flex-col w-full", children: /* @__PURE__ */ x("div", { className: "flex items-center gap-4 mb-3", children: [
|
|
@@ -5444,7 +5445,7 @@ const On = ({
|
|
|
5444
5445
|
}
|
|
5445
5446
|
)
|
|
5446
5447
|
] })
|
|
5447
|
-
] }) }) }),
|
|
5448
|
+
] }) }) }), Bl = ({
|
|
5448
5449
|
trigger: e,
|
|
5449
5450
|
btcAddress: t,
|
|
5450
5451
|
bbnAddress: r,
|
|
@@ -5459,7 +5460,7 @@ const On = ({
|
|
|
5459
5460
|
forceOpen: d = !1,
|
|
5460
5461
|
onOpenChange: m
|
|
5461
5462
|
}) => {
|
|
5462
|
-
var _, O, L,
|
|
5463
|
+
var _, O, L, S;
|
|
5463
5464
|
const { copyToClipboard: v, isCopied: N } = li(), [y, b] = oe(d), M = ae((k) => {
|
|
5464
5465
|
b(k), m == null || m(k);
|
|
5465
5466
|
}, [m]), w = ae(() => {
|
|
@@ -5491,7 +5492,7 @@ const On = ({
|
|
|
5491
5492
|
{
|
|
5492
5493
|
walletType: "Babylon",
|
|
5493
5494
|
walletName: (L = n.BBN) == null ? void 0 : L.name,
|
|
5494
|
-
walletIcon: (
|
|
5495
|
+
walletIcon: (S = n.BBN) == null ? void 0 : S.icon,
|
|
5495
5496
|
address: r,
|
|
5496
5497
|
isCopied: N("bbn"),
|
|
5497
5498
|
onCopy: () => v("bbn", r)
|
|
@@ -5546,7 +5547,7 @@ const On = ({
|
|
|
5546
5547
|
horizontal: "vertical",
|
|
5547
5548
|
vertical: "horizontal"
|
|
5548
5549
|
};
|
|
5549
|
-
function
|
|
5550
|
+
function Rl({ className: e, orientation: t = "vertical", children: r }) {
|
|
5550
5551
|
return /* @__PURE__ */ c("div", { className: ve("bbn-list-legacy", `bbn-list-legacy-${t}`, e), children: Xt.map(
|
|
5551
5552
|
r,
|
|
5552
5553
|
(n) => wr(n) ? br(n, {
|
|
@@ -5555,12 +5556,12 @@ function Bl({ className: e, orientation: t = "vertical", children: r }) {
|
|
|
5555
5556
|
) });
|
|
5556
5557
|
}
|
|
5557
5558
|
function Il({ className: e, orientation: t = "horizontal", title: r, value: n, suffix: i }) {
|
|
5558
|
-
return /* @__PURE__ */ x("div", { className:
|
|
5559
|
+
return /* @__PURE__ */ x("div", { className: A("bbn-list-item-legacy", `bbn-list-item-legacy-${t}`, e), children: [
|
|
5559
5560
|
/* @__PURE__ */ c(
|
|
5560
5561
|
W,
|
|
5561
5562
|
{
|
|
5562
5563
|
as: "div",
|
|
5563
|
-
className:
|
|
5564
|
+
className: A("bbn-list-title-legacy", `bbn-list-title-legacy-${t}`),
|
|
5564
5565
|
variant: t === "horizontal" ? "body1" : "body2",
|
|
5565
5566
|
children: r
|
|
5566
5567
|
}
|
|
@@ -5569,7 +5570,7 @@ function Il({ className: e, orientation: t = "horizontal", title: r, value: n, s
|
|
|
5569
5570
|
W,
|
|
5570
5571
|
{
|
|
5571
5572
|
as: "div",
|
|
5572
|
-
className:
|
|
5573
|
+
className: A("bbn-list-value-legacy", `bbn-list-value-legacy-${t}`),
|
|
5573
5574
|
variant: "body1",
|
|
5574
5575
|
children: [
|
|
5575
5576
|
n,
|
|
@@ -5583,7 +5584,7 @@ export {
|
|
|
5583
5584
|
ul as Accordion,
|
|
5584
5585
|
dl as AccordionDetails,
|
|
5585
5586
|
fl as AccordionSummary,
|
|
5586
|
-
|
|
5587
|
+
jl as ActivityCard,
|
|
5587
5588
|
za as ActivityCardActionSection,
|
|
5588
5589
|
Za as ActivityCardAmountSection,
|
|
5589
5590
|
Ya as ActivityCardDetailsSection,
|
|
@@ -5599,7 +5600,7 @@ export {
|
|
|
5599
5600
|
Ue as Button,
|
|
5600
5601
|
Yo as Card,
|
|
5601
5602
|
zo as Cell,
|
|
5602
|
-
|
|
5603
|
+
Ri as Checkbox,
|
|
5603
5604
|
Fl as CheckboxField,
|
|
5604
5605
|
pl as Chip,
|
|
5605
5606
|
Gn as CloseIcon,
|
|
@@ -5615,7 +5616,7 @@ export {
|
|
|
5615
5616
|
Ur as FeeItem,
|
|
5616
5617
|
Ml as FeesSection,
|
|
5617
5618
|
ki as FinalityProviderItem,
|
|
5618
|
-
|
|
5619
|
+
Aa as FinalityProviderLogo,
|
|
5619
5620
|
Tl as FinalityProviderSubsection,
|
|
5620
5621
|
Ol as Form,
|
|
5621
5622
|
lr as FormControl,
|
|
@@ -5627,13 +5628,13 @@ export {
|
|
|
5627
5628
|
bl as List,
|
|
5628
5629
|
wl as ListItem,
|
|
5629
5630
|
Il as ListItemLegacy,
|
|
5630
|
-
|
|
5631
|
+
Rl as ListLegacy,
|
|
5631
5632
|
vl as Loader,
|
|
5632
5633
|
oi as Menu,
|
|
5633
5634
|
ii as MenuDrawer,
|
|
5634
5635
|
ea as MenuItem,
|
|
5635
5636
|
Jn as MobileDialog,
|
|
5636
|
-
|
|
5637
|
+
Al as NumberField,
|
|
5637
5638
|
Un as Popover,
|
|
5638
5639
|
ar as Portal,
|
|
5639
5640
|
Pl as PreviewModal,
|
|
@@ -5655,7 +5656,7 @@ export {
|
|
|
5655
5656
|
gl as Table,
|
|
5656
5657
|
_l as TableElement,
|
|
5657
5658
|
W as Text,
|
|
5658
|
-
|
|
5659
|
+
Sl as TextField,
|
|
5659
5660
|
_r as ThemedIcon,
|
|
5660
5661
|
yl as Toggle,
|
|
5661
5662
|
Wa as Total,
|
|
@@ -5663,7 +5664,7 @@ export {
|
|
|
5663
5664
|
Ln as WalletDisconnectButton,
|
|
5664
5665
|
On as WalletInfoCard,
|
|
5665
5666
|
il as WalletInfoSection,
|
|
5666
|
-
|
|
5667
|
+
Bl as WalletMenu,
|
|
5667
5668
|
En as WalletSettingItem,
|
|
5668
5669
|
nl as WalletToggle,
|
|
5669
5670
|
kl as Warning,
|