@hybr1d-tech/charizard 0.3.59 → 0.3.60
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/hybr1d-ui.js +115 -113
- package/dist/hybr1d-ui.umd.cjs +6 -6
- package/dist/select/Select.d.ts +2 -1
- package/package.json +1 -1
package/dist/hybr1d-ui.js
CHANGED
|
@@ -59,10 +59,10 @@ function Jo() {
|
|
|
59
59
|
z.unshift("Warning: " + A), Function.prototype.apply.call(console[g], console, z);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
var _ = !1,
|
|
62
|
+
var _ = !1, E = !1, S = !1, w = !1, N = !1, j;
|
|
63
63
|
j = Symbol.for("react.module.reference");
|
|
64
64
|
function H(g) {
|
|
65
|
-
return !!(typeof g == "string" || typeof g == "function" || g === o || g === a ||
|
|
65
|
+
return !!(typeof g == "string" || typeof g == "function" || g === o || g === a || N || g === n || g === c || g === d || w || g === b || _ || E || S || typeof g == "object" && g !== null && (g.$$typeof === h || g.$$typeof === p || g.$$typeof === l || g.$$typeof === u || g.$$typeof === i || // This needs to include all possible module reference object
|
|
66
66
|
// types supported by any Flight configuration anywhere since
|
|
67
67
|
// we don't know which Flight build this will end up being used
|
|
68
68
|
// with.
|
|
@@ -1062,8 +1062,8 @@ function Ia({
|
|
|
1062
1062
|
}, v = (C) => {
|
|
1063
1063
|
let x = !1;
|
|
1064
1064
|
return e.forEach((_) => {
|
|
1065
|
-
_.values.forEach((
|
|
1066
|
-
if (
|
|
1065
|
+
_.values.forEach((E) => {
|
|
1066
|
+
if (E === C) {
|
|
1067
1067
|
x = !0;
|
|
1068
1068
|
return;
|
|
1069
1069
|
}
|
|
@@ -1576,7 +1576,7 @@ function Ig({
|
|
|
1576
1576
|
infiniteScrollConfig: b
|
|
1577
1577
|
}) {
|
|
1578
1578
|
var X;
|
|
1579
|
-
const [f, v] = y.useState([]), [I, m] = y.useState({}), [C, x] = y.useState({}), { ref: _, inView:
|
|
1579
|
+
const [f, v] = y.useState([]), [I, m] = y.useState({}), [C, x] = y.useState({}), { ref: _, inView: E } = Xo(), S = !e.isFetching && !e.isError && !t.length, { isCheckbox: w, isRadio: N, setSelectedRows: j } = a;
|
|
1580
1580
|
Mn(() => {
|
|
1581
1581
|
if (!n || !f.length)
|
|
1582
1582
|
return;
|
|
@@ -1588,8 +1588,8 @@ function Ig({
|
|
|
1588
1588
|
const B = k.getSelectedRowModel().rows.map((M) => M.original);
|
|
1589
1589
|
j([...B]);
|
|
1590
1590
|
}, [C]), y.useEffect(() => {
|
|
1591
|
-
b &&
|
|
1592
|
-
}, [b == null ? void 0 : b.fetchNextPage,
|
|
1591
|
+
b && E && b.fetchNextPage();
|
|
1592
|
+
}, [b == null ? void 0 : b.fetchNextPage, E]);
|
|
1593
1593
|
const H = [
|
|
1594
1594
|
{
|
|
1595
1595
|
id: ft,
|
|
@@ -1650,7 +1650,7 @@ function Ig({
|
|
|
1650
1650
|
enableRowSelection: !0,
|
|
1651
1651
|
// enableRowSelection: row => row.original.age > 18, // or enable row selection conditionally per row
|
|
1652
1652
|
onRowSelectionChange: (a == null ? void 0 : a.setRowSelection) || x,
|
|
1653
|
-
enableMultiRowSelection: !
|
|
1653
|
+
enableMultiRowSelection: !N,
|
|
1654
1654
|
manualPagination: !0,
|
|
1655
1655
|
manualFiltering: !0,
|
|
1656
1656
|
getCoreRowModel: Ho(),
|
|
@@ -1662,7 +1662,7 @@ function Ig({
|
|
|
1662
1662
|
getRowId: a != null && a.rowIdKey ? (B) => B[a == null ? void 0 : a.rowIdKey] : void 0
|
|
1663
1663
|
});
|
|
1664
1664
|
return y.useLayoutEffect(() => {
|
|
1665
|
-
if (w &&
|
|
1665
|
+
if (w && N)
|
|
1666
1666
|
throw new Error(
|
|
1667
1667
|
"Hybrid UI<Table>: Can not use both checkbox and radio columns, please use only one"
|
|
1668
1668
|
);
|
|
@@ -1671,7 +1671,7 @@ function Ig({
|
|
|
1671
1671
|
w || (B = k.getColumn(ft)) == null || B.toggleVisibility(!1);
|
|
1672
1672
|
}, []), y.useLayoutEffect(() => {
|
|
1673
1673
|
var B;
|
|
1674
|
-
|
|
1674
|
+
N || (B = k.getColumn(St)) == null || B.toggleVisibility(!1);
|
|
1675
1675
|
}, []), y.useLayoutEffect(() => {
|
|
1676
1676
|
var B;
|
|
1677
1677
|
l.isDropdownActions || (B = k.getColumn(Gt)) == null || B.toggleVisibility(!1);
|
|
@@ -1714,7 +1714,7 @@ function Ig({
|
|
|
1714
1714
|
{
|
|
1715
1715
|
table: k,
|
|
1716
1716
|
isCheckbox: w,
|
|
1717
|
-
isRadio:
|
|
1717
|
+
isRadio: N,
|
|
1718
1718
|
loaderConfig: e,
|
|
1719
1719
|
isEmpty: S,
|
|
1720
1720
|
emptyStateConfig: p,
|
|
@@ -1727,7 +1727,7 @@ function Ig({
|
|
|
1727
1727
|
{
|
|
1728
1728
|
table: k,
|
|
1729
1729
|
isCheckbox: w,
|
|
1730
|
-
isRadio:
|
|
1730
|
+
isRadio: N,
|
|
1731
1731
|
loaderConfig: e,
|
|
1732
1732
|
isEmpty: S,
|
|
1733
1733
|
emptyStateConfig: p,
|
|
@@ -1837,30 +1837,30 @@ function Cg({
|
|
|
1837
1837
|
}) {
|
|
1838
1838
|
const [b, f] = y.useState(l), [v, I] = y.useState(""), m = Jt.collection({
|
|
1839
1839
|
items: l,
|
|
1840
|
-
itemToValue: (
|
|
1841
|
-
itemToString: (
|
|
1840
|
+
itemToValue: (E) => E.value,
|
|
1841
|
+
itemToString: (E) => E.label
|
|
1842
1842
|
}), [C, x] = Se(
|
|
1843
1843
|
Jt.machine({
|
|
1844
1844
|
id: Ro(),
|
|
1845
1845
|
collection: m,
|
|
1846
|
-
onOpenChange(
|
|
1847
|
-
|
|
1846
|
+
onOpenChange(E) {
|
|
1847
|
+
E.open && f(l);
|
|
1848
1848
|
},
|
|
1849
|
-
async onInputValueChange({ value:
|
|
1850
|
-
if (I(
|
|
1849
|
+
async onInputValueChange({ value: E }) {
|
|
1850
|
+
if (I(E[0]), !u) {
|
|
1851
1851
|
const S = b.filter(
|
|
1852
|
-
(w) => w.label.toLowerCase().includes(
|
|
1852
|
+
(w) => w.label.toLowerCase().includes(E[0].toLowerCase())
|
|
1853
1853
|
);
|
|
1854
1854
|
f(S);
|
|
1855
1855
|
return;
|
|
1856
1856
|
}
|
|
1857
|
-
|
|
1857
|
+
E[0] && i && (f([]), i(E[0]));
|
|
1858
1858
|
},
|
|
1859
1859
|
disabled: a,
|
|
1860
1860
|
inputValue: h,
|
|
1861
1861
|
// when multiple is allowed the onValueChange function will change
|
|
1862
1862
|
multiple: !1,
|
|
1863
|
-
onValueChange(
|
|
1863
|
+
onValueChange(E) {
|
|
1864
1864
|
}
|
|
1865
1865
|
}),
|
|
1866
1866
|
{
|
|
@@ -1887,16 +1887,16 @@ function Cg({
|
|
|
1887
1887
|
..._.contentProps,
|
|
1888
1888
|
className: Ze.options,
|
|
1889
1889
|
style: { maxHeight: p },
|
|
1890
|
-
children: b.map((
|
|
1890
|
+
children: b.map((E, S) => /* @__PURE__ */ s.jsx(
|
|
1891
1891
|
"li",
|
|
1892
1892
|
{
|
|
1893
1893
|
className: Ze.option,
|
|
1894
1894
|
..._.getItemProps({
|
|
1895
|
-
item:
|
|
1895
|
+
item: E
|
|
1896
1896
|
}),
|
|
1897
|
-
children:
|
|
1897
|
+
children: E.listComponent ? E.listComponent : E.label
|
|
1898
1898
|
},
|
|
1899
|
-
`${
|
|
1899
|
+
`${E.value}:${S}`
|
|
1900
1900
|
))
|
|
1901
1901
|
}
|
|
1902
1902
|
) : v && /* @__PURE__ */ s.jsxs(
|
|
@@ -1976,11 +1976,11 @@ function xg({
|
|
|
1976
1976
|
showHeaderBorder: v = !0,
|
|
1977
1977
|
drawerPosition: I = "right"
|
|
1978
1978
|
}) {
|
|
1979
|
-
const m = y.useRef(null), C = y.useRef(null), x = y.useRef(null), _ = I === "left" ? "-100%" : "100%",
|
|
1979
|
+
const m = y.useRef(null), C = y.useRef(null), x = y.useRef(null), _ = I === "left" ? "-100%" : "100%", E = !i && !c;
|
|
1980
1980
|
return y.useEffect(() => {
|
|
1981
1981
|
const S = setTimeout(() => {
|
|
1982
|
-
var w,
|
|
1983
|
-
m.current && C && x && (m.current.style.transform = t ? "translateX(0)" : `translateX(${_})`, C.current.style.maxHeight = `calc(100vh - (1.75rem * 2) - ${(w = x.current) == null ? void 0 : w.clientHeight}px)`, C.current.style.height = `calc(100vh - (1.75rem * 2) - ${(
|
|
1982
|
+
var w, N;
|
|
1983
|
+
m.current && C && x && (m.current.style.transform = t ? "translateX(0)" : `translateX(${_})`, C.current.style.maxHeight = `calc(100vh - (1.75rem * 2) - ${(w = x.current) == null ? void 0 : w.clientHeight}px)`, C.current.style.height = `calc(100vh - (1.75rem * 2) - ${(N = x.current) == null ? void 0 : N.clientHeight}px)`);
|
|
1984
1984
|
}, 0);
|
|
1985
1985
|
return () => {
|
|
1986
1986
|
clearTimeout(S);
|
|
@@ -2012,7 +2012,7 @@ function xg({
|
|
|
2012
2012
|
{
|
|
2013
2013
|
className: R(
|
|
2014
2014
|
ce.descriptionContainer,
|
|
2015
|
-
{ [ce.fullHeight]:
|
|
2015
|
+
{ [ce.fullHeight]: E },
|
|
2016
2016
|
b
|
|
2017
2017
|
),
|
|
2018
2018
|
ref: C,
|
|
@@ -2145,8 +2145,8 @@ function Lt({
|
|
|
2145
2145
|
i(!1), b(!0);
|
|
2146
2146
|
else {
|
|
2147
2147
|
i(!0);
|
|
2148
|
-
const x = (C = c.current) == null ? void 0 : C.getBoundingClientRect(), _ = (x == null ? void 0 : x.right) + (x == null ? void 0 : x.width),
|
|
2149
|
-
_ >
|
|
2148
|
+
const x = (C = c.current) == null ? void 0 : C.getBoundingClientRect(), _ = (x == null ? void 0 : x.right) + (x == null ? void 0 : x.width), E = window.innerWidth - 100;
|
|
2149
|
+
_ > E && b(!1);
|
|
2150
2150
|
}
|
|
2151
2151
|
}, I = (C) => (C.label + " " + C.value).toLowerCase().includes(d.toLowerCase());
|
|
2152
2152
|
return /* @__PURE__ */ s.jsxs(
|
|
@@ -2756,18 +2756,20 @@ function Vg({
|
|
|
2756
2756
|
isSearchable: f = !0,
|
|
2757
2757
|
isMulti: v = !1,
|
|
2758
2758
|
isClearable: I = !1,
|
|
2759
|
-
|
|
2759
|
+
customValue: m,
|
|
2760
|
+
CustomDropdownIndicator: C
|
|
2760
2761
|
}) {
|
|
2761
2762
|
return /* @__PURE__ */ s.jsxs(
|
|
2762
2763
|
"div",
|
|
2763
2764
|
{
|
|
2764
|
-
onClick: (
|
|
2765
|
+
onClick: (x) => x.stopPropagation(),
|
|
2765
2766
|
style: c,
|
|
2766
2767
|
className: ne.selectContainer,
|
|
2767
2768
|
children: [
|
|
2768
2769
|
/* @__PURE__ */ s.jsx(
|
|
2769
2770
|
Mo,
|
|
2770
2771
|
{
|
|
2772
|
+
value: m,
|
|
2771
2773
|
isMulti: v,
|
|
2772
2774
|
placeholder: a,
|
|
2773
2775
|
defaultValue: u,
|
|
@@ -2783,15 +2785,15 @@ function Vg({
|
|
|
2783
2785
|
Option: Cn,
|
|
2784
2786
|
MultiValueLabel: xn,
|
|
2785
2787
|
MultiValueRemove: An,
|
|
2786
|
-
DropdownIndicator:
|
|
2788
|
+
DropdownIndicator: C || _n,
|
|
2787
2789
|
ClearIndicator: yn,
|
|
2788
2790
|
SingleValue: En
|
|
2789
2791
|
},
|
|
2790
2792
|
isDisabled: b,
|
|
2791
|
-
onChange: (
|
|
2793
|
+
onChange: (x, _) => {
|
|
2792
2794
|
e(
|
|
2793
|
-
v ?
|
|
2794
|
-
|
|
2795
|
+
v ? x.map((E) => E.value) : (x == null ? void 0 : x.value) ?? "",
|
|
2796
|
+
_
|
|
2795
2797
|
);
|
|
2796
2798
|
},
|
|
2797
2799
|
formatGroupLabel: i,
|
|
@@ -3194,8 +3196,8 @@ function Cu(t, e) {
|
|
|
3194
3196
|
threshold: du(0, cu(1, i)) || 1
|
|
3195
3197
|
};
|
|
3196
3198
|
let x = !0;
|
|
3197
|
-
function _(
|
|
3198
|
-
const S =
|
|
3199
|
+
function _(E) {
|
|
3200
|
+
const S = E[0].intersectionRatio;
|
|
3199
3201
|
if (S !== i) {
|
|
3200
3202
|
if (!x)
|
|
3201
3203
|
return l();
|
|
@@ -3392,7 +3394,7 @@ function Lu(t) {
|
|
|
3392
3394
|
};
|
|
3393
3395
|
if (!r || !r.offsetParent)
|
|
3394
3396
|
return c;
|
|
3395
|
-
var d = i.getBoundingClientRect(), p = d.height, h = r.getBoundingClientRect(), b = h.bottom, f = h.height, v = h.top, I = r.offsetParent.getBoundingClientRect(), m = I.top, C = l ? window.innerHeight : Nu(i), x = Mr(i), _ = parseInt(getComputedStyle(r).marginBottom, 10),
|
|
3397
|
+
var d = i.getBoundingClientRect(), p = d.height, h = r.getBoundingClientRect(), b = h.bottom, f = h.height, v = h.top, I = r.offsetParent.getBoundingClientRect(), m = I.top, C = l ? window.innerHeight : Nu(i), x = Mr(i), _ = parseInt(getComputedStyle(r).marginBottom, 10), E = parseInt(getComputedStyle(r).marginTop, 10), S = m - E, w = C - v, N = S + x, j = p - x - v, H = b - C + x + _, k = x + v - E, X = 160;
|
|
3396
3398
|
switch (n) {
|
|
3397
3399
|
case "auto":
|
|
3398
3400
|
case "bottom":
|
|
@@ -3415,7 +3417,7 @@ function Lu(t) {
|
|
|
3415
3417
|
};
|
|
3416
3418
|
}
|
|
3417
3419
|
if (n === "auto" || l) {
|
|
3418
|
-
var M = e, O = l ? S :
|
|
3420
|
+
var M = e, O = l ? S : N;
|
|
3419
3421
|
return O >= o && (M = Math.min(O - _ - u, e)), {
|
|
3420
3422
|
placement: "top",
|
|
3421
3423
|
maxHeight: M
|
|
@@ -3433,14 +3435,14 @@ function Lu(t) {
|
|
|
3433
3435
|
placement: "top",
|
|
3434
3436
|
maxHeight: e
|
|
3435
3437
|
};
|
|
3436
|
-
if (
|
|
3438
|
+
if (N >= f && !l)
|
|
3437
3439
|
return a && Ct(i, k, X), {
|
|
3438
3440
|
placement: "top",
|
|
3439
3441
|
maxHeight: e
|
|
3440
3442
|
};
|
|
3441
|
-
if (!l &&
|
|
3443
|
+
if (!l && N >= o || l && S >= o) {
|
|
3442
3444
|
var Y = e;
|
|
3443
|
-
return (!l &&
|
|
3445
|
+
return (!l && N >= o || l && S >= o) && (Y = l ? S - E : N - E), a && Ct(i, k, X), {
|
|
3444
3446
|
placement: "top",
|
|
3445
3447
|
maxHeight: Y
|
|
3446
3448
|
};
|
|
@@ -3477,18 +3479,18 @@ var Yr = function(e) {
|
|
|
3477
3479
|
}, Jr = /* @__PURE__ */ Po(null), Xu = function(e) {
|
|
3478
3480
|
var r = e.children, o = e.minMenuHeight, n = e.maxMenuHeight, a = e.menuPlacement, l = e.menuPosition, u = e.menuShouldScrollIntoView, i = e.theme, c = To(Jr) || {}, d = c.setPortalPlacement, p = Ne(null), h = ge(n), b = se(h, 2), f = b[0], v = b[1], I = ge(null), m = se(I, 2), C = m[0], x = m[1], _ = i.spacing.controlHeight;
|
|
3479
3481
|
return pn(function() {
|
|
3480
|
-
var
|
|
3481
|
-
if (
|
|
3482
|
-
var S = l === "fixed", w = u && !S,
|
|
3482
|
+
var E = p.current;
|
|
3483
|
+
if (E) {
|
|
3484
|
+
var S = l === "fixed", w = u && !S, N = Lu({
|
|
3483
3485
|
maxHeight: n,
|
|
3484
|
-
menuEl:
|
|
3486
|
+
menuEl: E,
|
|
3485
3487
|
minHeight: o,
|
|
3486
3488
|
placement: a,
|
|
3487
3489
|
shouldScroll: w,
|
|
3488
3490
|
isFixedPosition: S,
|
|
3489
3491
|
controlHeight: _
|
|
3490
3492
|
});
|
|
3491
|
-
v(
|
|
3493
|
+
v(N.maxHeight), x(N.placement), d == null || d(N.placement);
|
|
3492
3494
|
}
|
|
3493
3495
|
}, [n, a, l, u, o, d, _]), r({
|
|
3494
3496
|
ref: p,
|
|
@@ -3566,7 +3568,7 @@ var Yr = function(e) {
|
|
|
3566
3568
|
};
|
|
3567
3569
|
}, []), v = ge(null), I = se(v, 2), m = I[0], C = I[1], x = le(function() {
|
|
3568
3570
|
if (n) {
|
|
3569
|
-
var w = wu(n),
|
|
3571
|
+
var w = wu(n), N = u === "fixed" ? 0 : window.pageYOffset, j = w[h] + N;
|
|
3570
3572
|
(j !== (m == null ? void 0 : m.offset) || w.left !== (m == null ? void 0 : m.rect.left) || w.width !== (m == null ? void 0 : m.rect.width)) && C({
|
|
3571
3573
|
offset: j,
|
|
3572
3574
|
rect: w
|
|
@@ -3584,13 +3586,13 @@ var Yr = function(e) {
|
|
|
3584
3586
|
pn(function() {
|
|
3585
3587
|
_();
|
|
3586
3588
|
}, [_]);
|
|
3587
|
-
var
|
|
3589
|
+
var E = le(function(w) {
|
|
3588
3590
|
i.current = w, _();
|
|
3589
3591
|
}, [_]);
|
|
3590
3592
|
if (!r && u !== "fixed" || !m)
|
|
3591
3593
|
return null;
|
|
3592
3594
|
var S = T("div", P({
|
|
3593
|
-
ref:
|
|
3595
|
+
ref: E
|
|
3594
3596
|
}, $(F(F({}, e), {}, {
|
|
3595
3597
|
offset: m.offset,
|
|
3596
3598
|
position: u,
|
|
@@ -4167,11 +4169,11 @@ var td = process.env.NODE_ENV === "production" ? {
|
|
|
4167
4169
|
return "".concat(o).concat(r ? " for search term " + r : "", ".");
|
|
4168
4170
|
}
|
|
4169
4171
|
}, od = function(e) {
|
|
4170
|
-
var r = e.ariaSelection, o = e.focusedOption, n = e.focusedValue, a = e.focusableOptions, l = e.isFocused, u = e.selectValue, i = e.selectProps, c = e.id, d = e.isAppleDevice, p = i.ariaLiveMessages, h = i.getOptionLabel, b = i.inputValue, f = i.isMulti, v = i.isOptionDisabled, I = i.isSearchable, m = i.menuIsOpen, C = i.options, x = i.screenReaderStatus, _ = i.tabSelectsValue,
|
|
4172
|
+
var r = e.ariaSelection, o = e.focusedOption, n = e.focusedValue, a = e.focusableOptions, l = e.isFocused, u = e.selectValue, i = e.selectProps, c = e.id, d = e.isAppleDevice, p = i.ariaLiveMessages, h = i.getOptionLabel, b = i.inputValue, f = i.isMulti, v = i.isOptionDisabled, I = i.isSearchable, m = i.menuIsOpen, C = i.options, x = i.screenReaderStatus, _ = i.tabSelectsValue, E = i.isLoading, S = i["aria-label"], w = i["aria-live"], N = Me(function() {
|
|
4171
4173
|
return F(F({}, rd), p || {});
|
|
4172
4174
|
}, [p]), j = Me(function() {
|
|
4173
4175
|
var O = "";
|
|
4174
|
-
if (r &&
|
|
4176
|
+
if (r && N.onChange) {
|
|
4175
4177
|
var Y = r.option, be = r.options, re = r.removedValue, Ae = r.removedValues, Ie = r.value, Te = function(ue) {
|
|
4176
4178
|
return Array.isArray(ue) ? null : ue;
|
|
4177
4179
|
}, J = re || Y || Te(Ie), ie = J ? h(J) : "", Ce = be || Ae || void 0, de = Ce ? Ce.map(h) : [], ae = F({
|
|
@@ -4181,12 +4183,12 @@ var td = process.env.NODE_ENV === "production" ? {
|
|
|
4181
4183
|
label: ie,
|
|
4182
4184
|
labels: de
|
|
4183
4185
|
}, r);
|
|
4184
|
-
O =
|
|
4186
|
+
O = N.onChange(ae);
|
|
4185
4187
|
}
|
|
4186
4188
|
return O;
|
|
4187
|
-
}, [r,
|
|
4189
|
+
}, [r, N, v, u, h]), H = Me(function() {
|
|
4188
4190
|
var O = "", Y = o || n, be = !!(o && u && u.includes(o));
|
|
4189
|
-
if (Y &&
|
|
4191
|
+
if (Y && N.onFocus) {
|
|
4190
4192
|
var re = {
|
|
4191
4193
|
focused: Y,
|
|
4192
4194
|
label: h(Y),
|
|
@@ -4197,26 +4199,26 @@ var td = process.env.NODE_ENV === "production" ? {
|
|
|
4197
4199
|
selectValue: u,
|
|
4198
4200
|
isAppleDevice: d
|
|
4199
4201
|
};
|
|
4200
|
-
O =
|
|
4202
|
+
O = N.onFocus(re);
|
|
4201
4203
|
}
|
|
4202
4204
|
return O;
|
|
4203
|
-
}, [o, n, h, v,
|
|
4205
|
+
}, [o, n, h, v, N, a, u, d]), k = Me(function() {
|
|
4204
4206
|
var O = "";
|
|
4205
|
-
if (m && C.length && !
|
|
4207
|
+
if (m && C.length && !E && N.onFilter) {
|
|
4206
4208
|
var Y = x({
|
|
4207
4209
|
count: a.length
|
|
4208
4210
|
});
|
|
4209
|
-
O =
|
|
4211
|
+
O = N.onFilter({
|
|
4210
4212
|
inputValue: b,
|
|
4211
4213
|
resultsMessage: Y
|
|
4212
4214
|
});
|
|
4213
4215
|
}
|
|
4214
4216
|
return O;
|
|
4215
|
-
}, [a, b, m,
|
|
4217
|
+
}, [a, b, m, N, C, x, E]), X = (r == null ? void 0 : r.action) === "initial-input-focus", B = Me(function() {
|
|
4216
4218
|
var O = "";
|
|
4217
|
-
if (
|
|
4219
|
+
if (N.guidance) {
|
|
4218
4220
|
var Y = n ? "value" : m ? "menu" : "input";
|
|
4219
|
-
O =
|
|
4221
|
+
O = N.guidance({
|
|
4220
4222
|
"aria-label": S,
|
|
4221
4223
|
context: Y,
|
|
4222
4224
|
isDisabled: o && v(o, u),
|
|
@@ -4227,7 +4229,7 @@ var td = process.env.NODE_ENV === "production" ? {
|
|
|
4227
4229
|
});
|
|
4228
4230
|
}
|
|
4229
4231
|
return O;
|
|
4230
|
-
}, [S, o, n, f, v, I, m,
|
|
4232
|
+
}, [S, o, n, f, v, I, m, N, u, _, X]), M = T(sn, null, T("span", {
|
|
4231
4233
|
id: "aria-selection"
|
|
4232
4234
|
}, j), T("span", {
|
|
4233
4235
|
id: "aria-focused"
|
|
@@ -4558,8 +4560,8 @@ var gd = function(e) {
|
|
|
4558
4560
|
function pd(t) {
|
|
4559
4561
|
var e = t.isEnabled, r = t.onBottomArrive, o = t.onBottomLeave, n = t.onTopArrive, a = t.onTopLeave, l = Ne(!1), u = Ne(!1), i = Ne(0), c = Ne(null), d = le(function(I, m) {
|
|
4560
4562
|
if (c.current !== null) {
|
|
4561
|
-
var C = c.current, x = C.scrollTop, _ = C.scrollHeight,
|
|
4562
|
-
|
|
4563
|
+
var C = c.current, x = C.scrollTop, _ = C.scrollHeight, E = C.clientHeight, S = c.current, w = m > 0, N = _ - E - x, j = !1;
|
|
4564
|
+
N > m && l.current && (o && o(I), l.current = !1), w && u.current && (a && a(I), u.current = !1), w && m > N ? (r && !l.current && r(I), S.scrollTop = _, j = !0, l.current = !0) : !w && -m > x && (n && !u.current && n(I), S.scrollTop = 0, j = !0, u.current = !0), j && gd(I);
|
|
4563
4565
|
}
|
|
4564
4566
|
}, [r, o, n, a]), p = le(function(I) {
|
|
4565
4567
|
d(I, I.deltaY);
|
|
@@ -5140,7 +5142,7 @@ var go = function(e) {
|
|
|
5140
5142
|
}, n.onValueInputFocus = function(i) {
|
|
5141
5143
|
i.preventDefault(), i.stopPropagation(), n.focus();
|
|
5142
5144
|
}, n.onKeyDown = function(i) {
|
|
5143
|
-
var c = n.props, d = c.isMulti, p = c.backspaceRemovesValue, h = c.escapeClearsValue, b = c.inputValue, f = c.isClearable, v = c.isDisabled, I = c.menuIsOpen, m = c.onKeyDown, C = c.tabSelectsValue, x = c.openMenuOnFocus, _ = n.state,
|
|
5145
|
+
var c = n.props, d = c.isMulti, p = c.backspaceRemovesValue, h = c.escapeClearsValue, b = c.inputValue, f = c.isClearable, v = c.isDisabled, I = c.menuIsOpen, m = c.onKeyDown, C = c.tabSelectsValue, x = c.openMenuOnFocus, _ = n.state, E = _.focusedOption, S = _.focusedValue, w = _.selectValue;
|
|
5144
5146
|
if (!v && !(typeof m == "function" && (m(i), i.defaultPrevented))) {
|
|
5145
5147
|
switch (n.blockOptionHover = !0, i.key) {
|
|
5146
5148
|
case "ArrowLeft":
|
|
@@ -5166,19 +5168,19 @@ var go = function(e) {
|
|
|
5166
5168
|
}
|
|
5167
5169
|
break;
|
|
5168
5170
|
case "Tab":
|
|
5169
|
-
if (n.isComposing || i.shiftKey || !I || !C || !
|
|
5171
|
+
if (n.isComposing || i.shiftKey || !I || !C || !E || // don't capture the event if the menu opens on focus and the focused
|
|
5170
5172
|
// option is already selected; it breaks the flow of navigation
|
|
5171
|
-
x && n.isOptionSelected(
|
|
5173
|
+
x && n.isOptionSelected(E, w))
|
|
5172
5174
|
return;
|
|
5173
|
-
n.selectOption(
|
|
5175
|
+
n.selectOption(E);
|
|
5174
5176
|
break;
|
|
5175
5177
|
case "Enter":
|
|
5176
5178
|
if (i.keyCode === 229)
|
|
5177
5179
|
break;
|
|
5178
5180
|
if (I) {
|
|
5179
|
-
if (!
|
|
5181
|
+
if (!E || n.isComposing)
|
|
5180
5182
|
return;
|
|
5181
|
-
n.selectOption(
|
|
5183
|
+
n.selectOption(E);
|
|
5182
5184
|
break;
|
|
5183
5185
|
}
|
|
5184
5186
|
return;
|
|
@@ -5197,9 +5199,9 @@ var go = function(e) {
|
|
|
5197
5199
|
n.openMenu("first");
|
|
5198
5200
|
break;
|
|
5199
5201
|
}
|
|
5200
|
-
if (!
|
|
5202
|
+
if (!E)
|
|
5201
5203
|
return;
|
|
5202
|
-
n.selectOption(
|
|
5204
|
+
n.selectOption(E);
|
|
5203
5205
|
break;
|
|
5204
5206
|
case "ArrowUp":
|
|
5205
5207
|
I ? n.focusOption("up") : n.openMenu("last");
|
|
@@ -5525,7 +5527,7 @@ var go = function(e) {
|
|
|
5525
5527
|
}, {
|
|
5526
5528
|
key: "renderPlaceholderOrValue",
|
|
5527
5529
|
value: function() {
|
|
5528
|
-
var n = this, a = this.getComponents(), l = a.MultiValue, u = a.MultiValueContainer, i = a.MultiValueLabel, c = a.MultiValueRemove, d = a.SingleValue, p = a.Placeholder, h = this.commonProps, b = this.props, f = b.controlShouldRenderValue, v = b.isDisabled, I = b.isMulti, m = b.inputValue, C = b.placeholder, x = this.state, _ = x.selectValue,
|
|
5530
|
+
var n = this, a = this.getComponents(), l = a.MultiValue, u = a.MultiValueContainer, i = a.MultiValueLabel, c = a.MultiValueRemove, d = a.SingleValue, p = a.Placeholder, h = this.commonProps, b = this.props, f = b.controlShouldRenderValue, v = b.isDisabled, I = b.isMulti, m = b.inputValue, C = b.placeholder, x = this.state, _ = x.selectValue, E = x.focusedValue, S = x.isFocused;
|
|
5529
5531
|
if (!this.hasValue() || !f)
|
|
5530
5532
|
return m ? null : /* @__PURE__ */ y.createElement(p, P({}, h, {
|
|
5531
5533
|
key: "placeholder",
|
|
@@ -5536,8 +5538,8 @@ var go = function(e) {
|
|
|
5536
5538
|
}
|
|
5537
5539
|
}), C);
|
|
5538
5540
|
if (I)
|
|
5539
|
-
return _.map(function(
|
|
5540
|
-
var H =
|
|
5541
|
+
return _.map(function(N, j) {
|
|
5542
|
+
var H = N === E, k = "".concat(n.getOptionLabel(N), "-").concat(n.getOptionValue(N));
|
|
5541
5543
|
return /* @__PURE__ */ y.createElement(l, P({}, h, {
|
|
5542
5544
|
components: {
|
|
5543
5545
|
Container: u,
|
|
@@ -5550,17 +5552,17 @@ var go = function(e) {
|
|
|
5550
5552
|
index: j,
|
|
5551
5553
|
removeProps: {
|
|
5552
5554
|
onClick: function() {
|
|
5553
|
-
return n.removeValue(
|
|
5555
|
+
return n.removeValue(N);
|
|
5554
5556
|
},
|
|
5555
5557
|
onTouchEnd: function() {
|
|
5556
|
-
return n.removeValue(
|
|
5558
|
+
return n.removeValue(N);
|
|
5557
5559
|
},
|
|
5558
5560
|
onMouseDown: function(B) {
|
|
5559
5561
|
B.preventDefault();
|
|
5560
5562
|
}
|
|
5561
5563
|
},
|
|
5562
|
-
data:
|
|
5563
|
-
}), n.formatOptionLabel(
|
|
5564
|
+
data: N
|
|
5565
|
+
}), n.formatOptionLabel(N, "value"));
|
|
5564
5566
|
});
|
|
5565
5567
|
if (m)
|
|
5566
5568
|
return null;
|
|
@@ -5633,7 +5635,7 @@ var go = function(e) {
|
|
|
5633
5635
|
}, {
|
|
5634
5636
|
key: "renderMenu",
|
|
5635
5637
|
value: function() {
|
|
5636
|
-
var n = this, a = this.getComponents(), l = a.Group, u = a.GroupHeading, i = a.Menu, c = a.MenuList, d = a.MenuPortal, p = a.LoadingMessage, h = a.NoOptionsMessage, b = a.Option, f = this.commonProps, v = this.state.focusedOption, I = this.props, m = I.captureMenuScroll, C = I.inputValue, x = I.isLoading, _ = I.loadingMessage,
|
|
5638
|
+
var n = this, a = this.getComponents(), l = a.Group, u = a.GroupHeading, i = a.Menu, c = a.MenuList, d = a.MenuPortal, p = a.LoadingMessage, h = a.NoOptionsMessage, b = a.Option, f = this.commonProps, v = this.state.focusedOption, I = this.props, m = I.captureMenuScroll, C = I.inputValue, x = I.isLoading, _ = I.loadingMessage, E = I.minMenuHeight, S = I.maxMenuHeight, w = I.menuIsOpen, N = I.menuPlacement, j = I.menuPosition, H = I.menuPortalTarget, k = I.menuShouldBlockScroll, X = I.menuShouldScrollIntoView, B = I.noOptionsMessage, M = I.onMenuScrollToTop, O = I.onMenuScrollToBottom;
|
|
5637
5639
|
if (!w)
|
|
5638
5640
|
return null;
|
|
5639
5641
|
var Y = function(ie, Ce) {
|
|
@@ -5700,9 +5702,9 @@ var go = function(e) {
|
|
|
5700
5702
|
be = /* @__PURE__ */ y.createElement(h, f, Ae);
|
|
5701
5703
|
}
|
|
5702
5704
|
var Ie = {
|
|
5703
|
-
minMenuHeight:
|
|
5705
|
+
minMenuHeight: E,
|
|
5704
5706
|
maxMenuHeight: S,
|
|
5705
|
-
menuPlacement:
|
|
5707
|
+
menuPlacement: N,
|
|
5706
5708
|
menuPosition: j,
|
|
5707
5709
|
menuShouldScrollIntoView: X
|
|
5708
5710
|
}, Te = /* @__PURE__ */ y.createElement(Xu, P({}, f, Ie), function(J) {
|
|
@@ -5739,7 +5741,7 @@ var go = function(e) {
|
|
|
5739
5741
|
return H || j === "fixed" ? /* @__PURE__ */ y.createElement(d, P({}, f, {
|
|
5740
5742
|
appendTo: H,
|
|
5741
5743
|
controlElement: this.controlRef,
|
|
5742
|
-
menuPlacement:
|
|
5744
|
+
menuPlacement: N,
|
|
5743
5745
|
menuPosition: j
|
|
5744
5746
|
}), Te) : Te;
|
|
5745
5747
|
}
|
|
@@ -5834,12 +5836,12 @@ var go = function(e) {
|
|
|
5834
5836
|
value: function(n, a) {
|
|
5835
5837
|
var l = a.prevProps, u = a.clearFocusValueOnUpdate, i = a.inputIsHiddenAfterUpdate, c = a.ariaSelection, d = a.isFocused, p = a.prevWasFocused, h = a.instancePrefix, b = n.options, f = n.value, v = n.menuIsOpen, I = n.inputValue, m = n.isMulti, C = Tt(f), x = {};
|
|
5836
5838
|
if (l && (f !== l.value || b !== l.options || v !== l.menuIsOpen || I !== l.inputValue)) {
|
|
5837
|
-
var _ = v ? jd(n, C) : [],
|
|
5839
|
+
var _ = v ? jd(n, C) : [], E = v ? Cr(At(n, C), "".concat(h, "-option")) : [], S = u ? Wd(a, C) : null, w = Ld(a, _), N = on(E, w);
|
|
5838
5840
|
x = {
|
|
5839
5841
|
selectValue: C,
|
|
5840
5842
|
focusedOption: w,
|
|
5841
|
-
focusedOptionId:
|
|
5842
|
-
focusableOptionsWithIds:
|
|
5843
|
+
focusedOptionId: N,
|
|
5844
|
+
focusableOptionsWithIds: E,
|
|
5843
5845
|
focusedValue: S,
|
|
5844
5846
|
clearFocusValueOnUpdate: !1
|
|
5845
5847
|
};
|
|
@@ -5863,7 +5865,7 @@ var go = function(e) {
|
|
|
5863
5865
|
Fn.defaultProps = Pd;
|
|
5864
5866
|
var Od = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
5865
5867
|
function po(t) {
|
|
5866
|
-
var e = t.defaultInputValue, r = e === void 0 ? "" : e, o = t.defaultMenuIsOpen, n = o === void 0 ? !1 : o, a = t.defaultValue, l = a === void 0 ? null : a, u = t.inputValue, i = t.menuIsOpen, c = t.onChange, d = t.onInputChange, p = t.onMenuClose, h = t.onMenuOpen, b = t.value, f = Be(t, Od), v = ge(u !== void 0 ? u : r), I = se(v, 2), m = I[0], C = I[1], x = ge(i !== void 0 ? i : n), _ = se(x, 2),
|
|
5868
|
+
var e = t.defaultInputValue, r = e === void 0 ? "" : e, o = t.defaultMenuIsOpen, n = o === void 0 ? !1 : o, a = t.defaultValue, l = a === void 0 ? null : a, u = t.inputValue, i = t.menuIsOpen, c = t.onChange, d = t.onInputChange, p = t.onMenuClose, h = t.onMenuOpen, b = t.value, f = Be(t, Od), v = ge(u !== void 0 ? u : r), I = se(v, 2), m = I[0], C = I[1], x = ge(i !== void 0 ? i : n), _ = se(x, 2), E = _[0], S = _[1], w = ge(b !== void 0 ? b : l), N = se(w, 2), j = N[0], H = N[1], k = le(function(re, Ae) {
|
|
5867
5869
|
typeof c == "function" && c(re, Ae), H(re);
|
|
5868
5870
|
}, [c]), X = le(function(re, Ae) {
|
|
5869
5871
|
var Ie;
|
|
@@ -5872,7 +5874,7 @@ function po(t) {
|
|
|
5872
5874
|
typeof h == "function" && h(), S(!0);
|
|
5873
5875
|
}, [h]), M = le(function() {
|
|
5874
5876
|
typeof p == "function" && p(), S(!1);
|
|
5875
|
-
}, [p]), O = u !== void 0 ? u : m, Y = i !== void 0 ? i :
|
|
5877
|
+
}, [p]), O = u !== void 0 ? u : m, Y = i !== void 0 ? i : E, be = b !== void 0 ? b : j;
|
|
5876
5878
|
return F(F({}, f), {}, {
|
|
5877
5879
|
inputValue: O,
|
|
5878
5880
|
menuIsOpen: Y,
|
|
@@ -5887,7 +5889,7 @@ var Xd = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
|
|
|
5887
5889
|
function Zd(t) {
|
|
5888
5890
|
var e = t.defaultOptions, r = e === void 0 ? !1 : e, o = t.cacheOptions, n = o === void 0 ? !1 : o, a = t.loadOptions;
|
|
5889
5891
|
t.options;
|
|
5890
|
-
var l = t.isLoading, u = l === void 0 ? !1 : l, i = t.onInputChange, c = t.filterOption, d = c === void 0 ? null : c, p = Be(t, Xd), h = p.inputValue, b = Ne(void 0), f = Ne(!1), v = ge(Array.isArray(r) ? r : void 0), I = se(v, 2), m = I[0], C = I[1], x = ge(typeof h < "u" ? h : ""), _ = se(x, 2),
|
|
5892
|
+
var l = t.isLoading, u = l === void 0 ? !1 : l, i = t.onInputChange, c = t.filterOption, d = c === void 0 ? null : c, p = Be(t, Xd), h = p.inputValue, b = Ne(void 0), f = Ne(!1), v = ge(Array.isArray(r) ? r : void 0), I = se(v, 2), m = I[0], C = I[1], x = ge(typeof h < "u" ? h : ""), _ = se(x, 2), E = _[0], S = _[1], w = ge(r === !0), N = se(w, 2), j = N[0], H = N[1], k = ge(void 0), X = se(k, 2), B = X[0], M = X[1], O = ge([]), Y = se(O, 2), be = Y[0], re = Y[1], Ae = ge(!1), Ie = se(Ae, 2), Te = Ie[0], J = Ie[1], ie = ge({}), Ce = se(ie, 2), de = Ce[0], ae = Ce[1], xe = ge(void 0), ue = se(xe, 2), Fe = ue[0], De = ue[1], ze = ge(void 0), Oe = se(ze, 2), st = Oe[0], Ue = Oe[1];
|
|
5891
5893
|
n !== st && (ae({}), Ue(n)), r !== Fe && (C(Array.isArray(r) ? r : void 0), De(r)), yt(function() {
|
|
5892
5894
|
return f.current = !0, function() {
|
|
5893
5895
|
f.current = !1;
|
|
@@ -5902,7 +5904,7 @@ function Zd(t) {
|
|
|
5902
5904
|
});
|
|
5903
5905
|
}, [a]);
|
|
5904
5906
|
yt(function() {
|
|
5905
|
-
r === !0 && Re(
|
|
5907
|
+
r === !0 && Re(E, function(Xe) {
|
|
5906
5908
|
f.current && (C(Xe || []), H(!!b.current));
|
|
5907
5909
|
});
|
|
5908
5910
|
}, []);
|
|
@@ -5920,7 +5922,7 @@ function Zd(t) {
|
|
|
5920
5922
|
f && Xt === b.current && (b.current = void 0, H(!1), M(me), re(Ye || []), J(!1), ae(Ye ? F(F({}, de), {}, rt({}, me, Ye)) : de));
|
|
5921
5923
|
});
|
|
5922
5924
|
}
|
|
5923
|
-
}, [n, Re, B, de, i]), vt = Te ? [] :
|
|
5925
|
+
}, [n, Re, B, de, i]), vt = Te ? [] : E && B ? be : m || [];
|
|
5924
5926
|
return F(F({}, p), {}, {
|
|
5925
5927
|
options: vt,
|
|
5926
5928
|
isLoading: j || u,
|
|
@@ -6024,14 +6026,14 @@ var kd = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
|
|
|
6024
6026
|
}
|
|
6025
6027
|
};
|
|
6026
6028
|
function Yd(t) {
|
|
6027
|
-
var e = t.allowCreateWhileLoading, r = e === void 0 ? !1 : e, o = t.createOptionPosition, n = o === void 0 ? "last" : o, a = t.formatCreateLabel, l = a === void 0 ? an.formatCreateLabel : a, u = t.isValidNewOption, i = u === void 0 ? an.isValidNewOption : u, c = t.getNewOptionData, d = c === void 0 ? an.getNewOptionData : c, p = t.onCreateOption, h = t.options, b = h === void 0 ? [] : h, f = t.onChange, v = Be(t, kd), I = v.getOptionValue, m = I === void 0 ? oo : I, C = v.getOptionLabel, x = C === void 0 ? ro : C, _ = v.inputValue,
|
|
6029
|
+
var e = t.allowCreateWhileLoading, r = e === void 0 ? !1 : e, o = t.createOptionPosition, n = o === void 0 ? "last" : o, a = t.formatCreateLabel, l = a === void 0 ? an.formatCreateLabel : a, u = t.isValidNewOption, i = u === void 0 ? an.isValidNewOption : u, c = t.getNewOptionData, d = c === void 0 ? an.getNewOptionData : c, p = t.onCreateOption, h = t.options, b = h === void 0 ? [] : h, f = t.onChange, v = Be(t, kd), I = v.getOptionValue, m = I === void 0 ? oo : I, C = v.getOptionLabel, x = C === void 0 ? ro : C, _ = v.inputValue, E = v.isLoading, S = v.isMulti, w = v.value, N = v.name, j = Me(function() {
|
|
6028
6030
|
return i(_, Tt(w), b, {
|
|
6029
6031
|
getOptionValue: m,
|
|
6030
6032
|
getOptionLabel: x
|
|
6031
6033
|
}) ? d(_, l(_)) : void 0;
|
|
6032
6034
|
}, [l, d, x, m, _, i, b, w]), H = Me(function() {
|
|
6033
|
-
return (r || !
|
|
6034
|
-
}, [r, n,
|
|
6035
|
+
return (r || !E) && j ? n === "first" ? [j].concat(ot(b)) : [].concat(ot(b), [j]) : b;
|
|
6036
|
+
}, [r, n, E, j, b]), k = le(function(X, B) {
|
|
6035
6037
|
if (B.action !== "select-option")
|
|
6036
6038
|
return f(X, B);
|
|
6037
6039
|
var M = Array.isArray(X) ? X : [X];
|
|
@@ -6041,7 +6043,7 @@ function Yd(t) {
|
|
|
6041
6043
|
else {
|
|
6042
6044
|
var O = d(_, _), Y = {
|
|
6043
6045
|
action: "create-option",
|
|
6044
|
-
name:
|
|
6046
|
+
name: N,
|
|
6045
6047
|
option: O
|
|
6046
6048
|
};
|
|
6047
6049
|
f(bt(S, [].concat(ot(Tt(w)), [O]), O), Y);
|
|
@@ -6049,7 +6051,7 @@ function Yd(t) {
|
|
|
6049
6051
|
return;
|
|
6050
6052
|
}
|
|
6051
6053
|
f(X, B);
|
|
6052
|
-
}, [d, _, S,
|
|
6054
|
+
}, [d, _, S, N, j, p, f, w]);
|
|
6053
6055
|
return F(F({}, v), {}, {
|
|
6054
6056
|
options: H,
|
|
6055
6057
|
onChange: k
|
|
@@ -6116,13 +6118,13 @@ function Pg({
|
|
|
6116
6118
|
onChange: async (x) => {
|
|
6117
6119
|
if (x)
|
|
6118
6120
|
if (v) {
|
|
6119
|
-
const _ = x.filter((w) => w.__isNew__),
|
|
6120
|
-
let S =
|
|
6121
|
+
const _ = x.filter((w) => w.__isNew__), E = x.filter((w) => !w.__isNew__);
|
|
6122
|
+
let S = E;
|
|
6121
6123
|
if (_.length > 0) {
|
|
6122
6124
|
const w = await m(
|
|
6123
|
-
_.map((
|
|
6125
|
+
_.map((N) => N.value)
|
|
6124
6126
|
);
|
|
6125
|
-
w && (x = x.map((
|
|
6127
|
+
w && (x = x.map((N) => (N.__isNew__ && (N.value = w[0].value, delete N.__isNew__), N)), await C(), S = [...E, ...w]);
|
|
6126
6128
|
}
|
|
6127
6129
|
e(
|
|
6128
6130
|
S.map((w) => w.value),
|
|
@@ -6131,8 +6133,8 @@ function Pg({
|
|
|
6131
6133
|
} else {
|
|
6132
6134
|
let _;
|
|
6133
6135
|
if (x.__isNew__) {
|
|
6134
|
-
const
|
|
6135
|
-
await C(), delete x.__isNew__, _ =
|
|
6136
|
+
const E = await m(x.value);
|
|
6137
|
+
await C(), delete x.__isNew__, _ = E.value;
|
|
6136
6138
|
} else
|
|
6137
6139
|
_ = x.value;
|
|
6138
6140
|
e(_ ?? "", x.actionMeta);
|
|
@@ -6243,24 +6245,24 @@ function Wg({
|
|
|
6243
6245
|
f(p);
|
|
6244
6246
|
}, [p]);
|
|
6245
6247
|
const x = async () => {
|
|
6246
|
-
const
|
|
6248
|
+
const N = t[b].onContinueClick;
|
|
6247
6249
|
try {
|
|
6248
|
-
|
|
6250
|
+
N ? N.constructor && N.constructor.name === "AsyncFunction" ? (await N(), _()) : (N(), _()) : m && (r(), I(!0));
|
|
6249
6251
|
} catch {
|
|
6250
6252
|
return;
|
|
6251
6253
|
}
|
|
6252
6254
|
}, _ = () => {
|
|
6253
6255
|
m && !C ? (r(), I(!0)) : b < t.length - 1 && !C && f(b + 1);
|
|
6254
|
-
},
|
|
6256
|
+
}, E = () => {
|
|
6255
6257
|
f(b - 1), I(!1);
|
|
6256
|
-
}, S = (
|
|
6257
|
-
c &&
|
|
6258
|
+
}, S = (N) => {
|
|
6259
|
+
c && N < b && f(N);
|
|
6258
6260
|
}, w = () => {
|
|
6259
6261
|
h(), f(b + 1);
|
|
6260
6262
|
};
|
|
6261
6263
|
return /* @__PURE__ */ s.jsxs("div", { className: ve.progressContainer, children: [
|
|
6262
6264
|
/* @__PURE__ */ s.jsxs("div", { className: ve.header, children: [
|
|
6263
|
-
/* @__PURE__ */ s.jsx("div", { className: ve.steps, children: t.map((
|
|
6265
|
+
/* @__PURE__ */ s.jsx("div", { className: ve.steps, children: t.map((N, j) => /* @__PURE__ */ s.jsxs("div", { className: ve.step, onClick: () => S(j), children: [
|
|
6264
6266
|
j > 0 && /* @__PURE__ */ s.jsx("div", { className: ve.line }),
|
|
6265
6267
|
/* @__PURE__ */ s.jsxs("div", { className: ve.labelContainer, children: [
|
|
6266
6268
|
/* @__PURE__ */ s.jsx(
|
|
@@ -6274,7 +6276,7 @@ function Wg({
|
|
|
6274
6276
|
children: j < b || v ? /* @__PURE__ */ s.jsx(oe, { path: m0, width: 20 }) : j + 1
|
|
6275
6277
|
}
|
|
6276
6278
|
),
|
|
6277
|
-
/* @__PURE__ */ s.jsx("div", { className: R(ve.label, b === j && ve.active), children:
|
|
6279
|
+
/* @__PURE__ */ s.jsx("div", { className: R(ve.label, b === j && ve.active), children: N.label })
|
|
6278
6280
|
] })
|
|
6279
6281
|
] }, j)) }),
|
|
6280
6282
|
l && /* @__PURE__ */ s.jsxs("div", { className: ve.btnsFlex, children: [
|
|
@@ -6287,7 +6289,7 @@ function Wg({
|
|
|
6287
6289
|
u && /* @__PURE__ */ s.jsxs("div", { className: ve.footer, children: [
|
|
6288
6290
|
/* @__PURE__ */ s.jsx(pe, { variant: We.SECONDARY, onClick: e, children: "Cancel" }),
|
|
6289
6291
|
/* @__PURE__ */ s.jsxs("div", { className: ve.btnsFlex, children: [
|
|
6290
|
-
b > 0 && /* @__PURE__ */ s.jsx(pe, { variant: We.SECONDARY, onClick:
|
|
6292
|
+
b > 0 && /* @__PURE__ */ s.jsx(pe, { variant: We.SECONDARY, onClick: E, children: "Back" }),
|
|
6291
6293
|
a && b === o && /* @__PURE__ */ s.jsx(pe, { onClick: w, variant: We.GHOST, children: d }),
|
|
6292
6294
|
/* @__PURE__ */ s.jsx(pe, { onClick: x, children: m ? n : "Continue" })
|
|
6293
6295
|
] })
|