@aveonline/ui-react 1.15.2 → 1.15.4
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/README.md +126 -126
- package/dist/components/atoms/Avatar/IAvatar.d.ts +2 -1
- package/dist/components/molecules/DropdownUser/DropdownUser.d.ts +1 -1
- package/dist/components/molecules/DropdownUser/IDropdownUser.d.ts +6 -1
- package/dist/reset.css +273 -273
- package/dist/tailwind.config.js +242 -242
- package/dist/tailwind.css +1 -1
- package/dist/tokens.css +160 -160
- package/dist/ui-react.mjs +854 -849
- package/dist/ui-react.umd.js +23 -23
- package/dist/vite-env.d.ts +2 -2
- package/package.json +108 -108
- package/dist/components/molecules/Selectable/select.d.ts +0 -27
package/dist/ui-react.mjs
CHANGED
|
@@ -67,26 +67,26 @@ function _l({
|
|
|
67
67
|
return "text-letter-default hover:bg-action-opacity-hovered active:bg-action-opacity-active active:text-letter-default disabled:bg-white";
|
|
68
68
|
if (t === "plain-destructive")
|
|
69
69
|
return "text-letter-critical hover:bg-surface-critical-hovered active:bg-surface-critical-active active:text-letter-critical disabled:bg-white";
|
|
70
|
-
},
|
|
70
|
+
}, u = () => [
|
|
71
71
|
"primary",
|
|
72
72
|
"basic",
|
|
73
73
|
"destructive",
|
|
74
74
|
"disabled"
|
|
75
|
-
].includes(t != null ? t : "primary"),
|
|
76
|
-
"h-[56px] w-[56px]": i === "md" &&
|
|
77
|
-
"h-[36px] w-[36px]": i === "sm" &&
|
|
78
|
-
"h-[40px] w-[40px]": i === "md" && !
|
|
79
|
-
"h-[30px] w-[30px]": i === "sm" && !
|
|
75
|
+
].includes(t != null ? t : "primary"), c = K("p-sm", {
|
|
76
|
+
"h-[56px] w-[56px]": i === "md" && u(),
|
|
77
|
+
"h-[36px] w-[36px]": i === "sm" && u(),
|
|
78
|
+
"h-[40px] w-[40px]": i === "md" && !u(),
|
|
79
|
+
"h-[30px] w-[30px]": i === "sm" && !u()
|
|
80
80
|
}), d = K("leading-xs", e ? "px-sm" : "p-[2.7px]", {
|
|
81
|
-
"h-[36px] py-xs": i === "sm" &&
|
|
82
|
-
"h-[56px] py-md": i === "md" &&
|
|
83
|
-
"h-[30px] py-[5px]": i === "sm" && !
|
|
84
|
-
"h-[40px] py-[10px]": i === "md" && !
|
|
81
|
+
"h-[36px] py-xs": i === "sm" && u() && e,
|
|
82
|
+
"h-[56px] py-md": i === "md" && u() && e,
|
|
83
|
+
"h-[30px] py-[5px]": i === "sm" && !u() && e,
|
|
84
|
+
"h-[40px] py-[10px]": i === "md" && !u() && e
|
|
85
85
|
}), f = () => a ? "" : r ? "w-full" : "w-auto";
|
|
86
86
|
return { getClass: () => K(
|
|
87
87
|
"rounded-sm text-xs font-sans font-medium disabled:text-letter-disabled flex items-center gap-x-2 focus:outline-none whitespace-nowrap",
|
|
88
88
|
n ? "relative" : "",
|
|
89
|
-
a ?
|
|
89
|
+
a ? c : d,
|
|
90
90
|
f(),
|
|
91
91
|
s(),
|
|
92
92
|
{
|
|
@@ -113,14 +113,14 @@ function $l() {
|
|
|
113
113
|
return Mn;
|
|
114
114
|
po = 1;
|
|
115
115
|
var e = be, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
116
|
-
function a(l, s,
|
|
117
|
-
var
|
|
118
|
-
|
|
119
|
-
for (
|
|
120
|
-
i.call(s,
|
|
116
|
+
function a(l, s, u) {
|
|
117
|
+
var c, d = {}, f = null, g = null;
|
|
118
|
+
u !== void 0 && (f = "" + u), s.key !== void 0 && (f = "" + s.key), s.ref !== void 0 && (g = s.ref);
|
|
119
|
+
for (c in s)
|
|
120
|
+
i.call(s, c) && !o.hasOwnProperty(c) && (d[c] = s[c]);
|
|
121
121
|
if (l && l.defaultProps)
|
|
122
|
-
for (
|
|
123
|
-
d[
|
|
122
|
+
for (c in s = l.defaultProps, s)
|
|
123
|
+
d[c] === void 0 && (d[c] = s[c]);
|
|
124
124
|
return { $$typeof: t, type: l, key: f, ref: g, props: d, _owner: r.current };
|
|
125
125
|
}
|
|
126
126
|
return Mn.Fragment = n, Mn.jsx = a, Mn.jsxs = a, Mn;
|
|
@@ -138,7 +138,7 @@ var Fn = {};
|
|
|
138
138
|
var mo;
|
|
139
139
|
function es() {
|
|
140
140
|
return mo || (mo = 1, process.env.NODE_ENV !== "production" && function() {
|
|
141
|
-
var e = be, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), l = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"),
|
|
141
|
+
var e = be, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), l = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), p = Symbol.iterator, C = "@@iterator";
|
|
142
142
|
function E(y) {
|
|
143
143
|
if (y === null || typeof y != "object")
|
|
144
144
|
return null;
|
|
@@ -166,7 +166,7 @@ function es() {
|
|
|
166
166
|
var I = !1, m = !1, b = !1, h = !1, x = !1, Q;
|
|
167
167
|
Q = Symbol.for("react.module.reference");
|
|
168
168
|
function N(y) {
|
|
169
|
-
return !!(typeof y == "string" || typeof y == "function" || y === i || y === o || x || y === r || y ===
|
|
169
|
+
return !!(typeof y == "string" || typeof y == "function" || y === i || y === o || x || y === r || y === u || y === c || h || y === g || I || m || b || typeof y == "object" && y !== null && (y.$$typeof === f || y.$$typeof === d || y.$$typeof === a || y.$$typeof === l || y.$$typeof === s || y.$$typeof === Q || y.getModuleId !== void 0));
|
|
170
170
|
}
|
|
171
171
|
function H(y, U, te) {
|
|
172
172
|
var ce = y.displayName;
|
|
@@ -194,9 +194,9 @@ function es() {
|
|
|
194
194
|
return "Profiler";
|
|
195
195
|
case r:
|
|
196
196
|
return "StrictMode";
|
|
197
|
-
case c:
|
|
198
|
-
return "Suspense";
|
|
199
197
|
case u:
|
|
198
|
+
return "Suspense";
|
|
199
|
+
case c:
|
|
200
200
|
return "SuspenseList";
|
|
201
201
|
}
|
|
202
202
|
if (typeof y == "object")
|
|
@@ -390,9 +390,9 @@ function es() {
|
|
|
390
390
|
if (typeof y == "string")
|
|
391
391
|
return q(y);
|
|
392
392
|
switch (y) {
|
|
393
|
-
case c:
|
|
394
|
-
return q("Suspense");
|
|
395
393
|
case u:
|
|
394
|
+
return q("Suspense");
|
|
395
|
+
case c:
|
|
396
396
|
return q("SuspenseList");
|
|
397
397
|
}
|
|
398
398
|
if (typeof y == "object")
|
|
@@ -971,7 +971,7 @@ function Xa(e) {
|
|
|
971
971
|
className: a,
|
|
972
972
|
onClick: l,
|
|
973
973
|
htmlFor: s
|
|
974
|
-
} = e, { getClass:
|
|
974
|
+
} = e, { getClass: u } = ns({
|
|
975
975
|
size: o,
|
|
976
976
|
weight: i,
|
|
977
977
|
variant: t,
|
|
@@ -982,7 +982,7 @@ function Xa(e) {
|
|
|
982
982
|
return { attributes: {
|
|
983
983
|
...l && { onClick: l },
|
|
984
984
|
...s && { htmlFor: s }
|
|
985
|
-
}, getClass:
|
|
985
|
+
}, getClass: u };
|
|
986
986
|
}
|
|
987
987
|
function Ie(e) {
|
|
988
988
|
const {
|
|
@@ -1198,20 +1198,20 @@ function vt(e, t, n = !0, i = null) {
|
|
|
1198
1198
|
if (t & 8)
|
|
1199
1199
|
return o.length - 1;
|
|
1200
1200
|
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
1201
|
-
})(), s = t & 32 ? { preventScroll: !0 } : {},
|
|
1201
|
+
})(), s = t & 32 ? { preventScroll: !0 } : {}, u = 0, c = o.length, d;
|
|
1202
1202
|
do {
|
|
1203
|
-
if (
|
|
1203
|
+
if (u >= c || u + c <= 0)
|
|
1204
1204
|
return 0;
|
|
1205
|
-
let f = l +
|
|
1205
|
+
let f = l + u;
|
|
1206
1206
|
if (t & 16)
|
|
1207
|
-
f = (f +
|
|
1207
|
+
f = (f + c) % c;
|
|
1208
1208
|
else {
|
|
1209
1209
|
if (f < 0)
|
|
1210
1210
|
return 3;
|
|
1211
|
-
if (f >=
|
|
1211
|
+
if (f >= c)
|
|
1212
1212
|
return 1;
|
|
1213
1213
|
}
|
|
1214
|
-
d = o[f], d == null || d.focus(s),
|
|
1214
|
+
d = o[f], d == null || d.focus(s), u += a;
|
|
1215
1215
|
} while (d !== r.activeElement);
|
|
1216
1216
|
return t & 6 && as(d) && d.select(), d.hasAttribute("tabindex") || d.setAttribute("tabindex", "0"), 2;
|
|
1217
1217
|
}
|
|
@@ -1234,18 +1234,18 @@ function Ya(e, t, n = !0) {
|
|
|
1234
1234
|
function r(a, l) {
|
|
1235
1235
|
if (!i.current || a.defaultPrevented)
|
|
1236
1236
|
return;
|
|
1237
|
-
let s = function
|
|
1238
|
-
return typeof d == "function" ?
|
|
1239
|
-
}(e),
|
|
1240
|
-
if (
|
|
1241
|
-
for (let
|
|
1242
|
-
if (
|
|
1237
|
+
let s = function c(d) {
|
|
1238
|
+
return typeof d == "function" ? c(d()) : Array.isArray(d) || d instanceof Set ? d : [d];
|
|
1239
|
+
}(e), u = l(a);
|
|
1240
|
+
if (u !== null && !!u.getRootNode().contains(u)) {
|
|
1241
|
+
for (let c of s) {
|
|
1242
|
+
if (c === null)
|
|
1243
1243
|
continue;
|
|
1244
|
-
let d =
|
|
1245
|
-
if (d != null && d.contains(
|
|
1244
|
+
let d = c instanceof HTMLElement ? c : c.current;
|
|
1245
|
+
if (d != null && d.contains(u))
|
|
1246
1246
|
return;
|
|
1247
1247
|
}
|
|
1248
|
-
return !bi(
|
|
1248
|
+
return !bi(u, hi.Loose) && u.tabIndex !== -1 && a.preventDefault(), t(a, u);
|
|
1249
1249
|
}
|
|
1250
1250
|
}
|
|
1251
1251
|
let o = oe(null);
|
|
@@ -1297,9 +1297,9 @@ function Ka({ container: e, accept: t, walk: n, enabled: i = !0 }) {
|
|
|
1297
1297
|
let a = nn(e);
|
|
1298
1298
|
if (!a)
|
|
1299
1299
|
return;
|
|
1300
|
-
let l = r.current, s = o.current,
|
|
1301
|
-
for (;
|
|
1302
|
-
s(
|
|
1300
|
+
let l = r.current, s = o.current, u = Object.assign((d) => l(d), { acceptNode: l }), c = a.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, u, !1);
|
|
1301
|
+
for (; c.nextNode(); )
|
|
1302
|
+
s(c.currentNode);
|
|
1303
1303
|
}, [e, i, r, o]);
|
|
1304
1304
|
}
|
|
1305
1305
|
function ss(e) {
|
|
@@ -1315,7 +1315,7 @@ function us(e, t) {
|
|
|
1315
1315
|
case 0:
|
|
1316
1316
|
return n.findIndex((a) => !t.resolveDisabled(a));
|
|
1317
1317
|
case 1: {
|
|
1318
|
-
let a = n.slice().reverse().findIndex((l, s,
|
|
1318
|
+
let a = n.slice().reverse().findIndex((l, s, u) => r !== -1 && u.length - s - 1 >= r ? !1 : !t.resolveDisabled(l));
|
|
1319
1319
|
return a === -1 ? a : n.length - 1 - a;
|
|
1320
1320
|
}
|
|
1321
1321
|
case 2:
|
|
@@ -1341,39 +1341,39 @@ function Le({ ourProps: e, theirProps: t, slot: n, defaultTag: i, features: r, v
|
|
|
1341
1341
|
return f1(l, n, i, a);
|
|
1342
1342
|
let s = r != null ? r : 0;
|
|
1343
1343
|
if (s & 2) {
|
|
1344
|
-
let { static:
|
|
1345
|
-
if (
|
|
1346
|
-
return f1(
|
|
1344
|
+
let { static: u = !1, ...c } = l;
|
|
1345
|
+
if (u)
|
|
1346
|
+
return f1(c, n, i, a);
|
|
1347
1347
|
}
|
|
1348
1348
|
if (s & 1) {
|
|
1349
|
-
let { unmount:
|
|
1350
|
-
return Xe(
|
|
1349
|
+
let { unmount: u = !0, ...c } = l;
|
|
1350
|
+
return Xe(u ? 0 : 1, { [0]() {
|
|
1351
1351
|
return null;
|
|
1352
1352
|
}, [1]() {
|
|
1353
|
-
return f1({ ...
|
|
1353
|
+
return f1({ ...c, hidden: !0, style: { display: "none" } }, n, i, a);
|
|
1354
1354
|
} });
|
|
1355
1355
|
}
|
|
1356
1356
|
return f1(l, n, i, a);
|
|
1357
1357
|
}
|
|
1358
1358
|
function f1(e, t = {}, n, i) {
|
|
1359
|
-
let { as: r = n, children: o, refName: a = "ref", ...l } = gr(e, ["unmount", "static"]), s = e.ref !== void 0 ? { [a]: e.ref } : {},
|
|
1359
|
+
let { as: r = n, children: o, refName: a = "ref", ...l } = gr(e, ["unmount", "static"]), s = e.ref !== void 0 ? { [a]: e.ref } : {}, u = typeof o == "function" ? o(t) : o;
|
|
1360
1360
|
l.className && typeof l.className == "function" && (l.className = l.className(t));
|
|
1361
|
-
let
|
|
1361
|
+
let c = {};
|
|
1362
1362
|
if (t) {
|
|
1363
1363
|
let d = !1, f = [];
|
|
1364
1364
|
for (let [g, p] of Object.entries(t))
|
|
1365
1365
|
typeof p == "boolean" && (d = !0), p === !0 && f.push(g);
|
|
1366
|
-
d && (
|
|
1366
|
+
d && (c["data-headlessui-state"] = f.join(" "));
|
|
1367
1367
|
}
|
|
1368
1368
|
if (r === Ye && Object.keys(R1(l)).length > 0) {
|
|
1369
|
-
if (!Yl(
|
|
1369
|
+
if (!Yl(u) || Array.isArray(u) && u.length > 1)
|
|
1370
1370
|
throw new Error(['Passing props on "Fragment"!', "", `The current component <${i} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(l).map((d) => ` - ${d}`).join(`
|
|
1371
1371
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((d) => ` - ${d}`).join(`
|
|
1372
1372
|
`)].join(`
|
|
1373
1373
|
`));
|
|
1374
|
-
return Jl(
|
|
1374
|
+
return Jl(u, Object.assign({}, qa(u.props, R1(gr(l, ["ref"]))), c, s, cs(u.ref, s.ref)));
|
|
1375
1375
|
}
|
|
1376
|
-
return It(r, Object.assign({}, gr(l, ["ref"]), r !== Ye && s, r !== Ye &&
|
|
1376
|
+
return It(r, Object.assign({}, gr(l, ["ref"]), r !== Ye && s, r !== Ye && c), u);
|
|
1377
1377
|
}
|
|
1378
1378
|
function cs(...e) {
|
|
1379
1379
|
return { ref: e.every((t) => t == null) ? void 0 : (t) => {
|
|
@@ -1485,7 +1485,7 @@ function yi({
|
|
|
1485
1485
|
var fe = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(fe || {});
|
|
1486
1486
|
function n2(e, t, n) {
|
|
1487
1487
|
let [i, r] = ae(n), o = e !== void 0, a = oe(o), l = oe(!1), s = oe(!1);
|
|
1488
|
-
return o && !a.current && !l.current ? (l.current = !0, a.current = o, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !o && a.current && !s.current && (s.current = !0, a.current = o, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [o ? e : i, ue((
|
|
1488
|
+
return o && !a.current && !l.current ? (l.current = !0, a.current = o, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !o && a.current && !s.current && (s.current = !0, a.current = o, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [o ? e : i, ue((u) => (o || r(u), t == null ? void 0 : t(u)))];
|
|
1489
1489
|
}
|
|
1490
1490
|
function r2(e, t) {
|
|
1491
1491
|
let n = oe([]), i = ue(e);
|
|
@@ -1547,7 +1547,7 @@ let On = Object.assign(ke(function(e, t) {
|
|
|
1547
1547
|
ps({
|
|
1548
1548
|
ownerDocument: s
|
|
1549
1549
|
}, Boolean(a & 16));
|
|
1550
|
-
let
|
|
1550
|
+
let u = ms({
|
|
1551
1551
|
ownerDocument: s,
|
|
1552
1552
|
container: n,
|
|
1553
1553
|
initialFocus: r
|
|
@@ -1556,11 +1556,11 @@ let On = Object.assign(ke(function(e, t) {
|
|
|
1556
1556
|
ownerDocument: s,
|
|
1557
1557
|
container: n,
|
|
1558
1558
|
containers: o,
|
|
1559
|
-
previousActiveElement:
|
|
1559
|
+
previousActiveElement: u
|
|
1560
1560
|
}, Boolean(a & 8));
|
|
1561
|
-
let
|
|
1561
|
+
let c = gs(), d = ue(() => {
|
|
1562
1562
|
let g = n.current;
|
|
1563
|
-
!g || Xe(
|
|
1563
|
+
!g || Xe(c.current, {
|
|
1564
1564
|
[$r.Forwards]: () => vt(g, et.First),
|
|
1565
1565
|
[$r.Backwards]: () => vt(g, et.Last)
|
|
1566
1566
|
});
|
|
@@ -1644,8 +1644,8 @@ function Es({
|
|
|
1644
1644
|
let s = i.current;
|
|
1645
1645
|
if (!s)
|
|
1646
1646
|
return;
|
|
1647
|
-
let
|
|
1648
|
-
|
|
1647
|
+
let u = a.target;
|
|
1648
|
+
u && u instanceof HTMLElement ? vs(l, u) ? (i.current = u, dn(u)) : (a.preventDefault(), a.stopPropagation(), dn(s)) : dn(i.current);
|
|
1649
1649
|
}, !0);
|
|
1650
1650
|
}
|
|
1651
1651
|
function vs(e, t) {
|
|
@@ -1724,18 +1724,18 @@ function bs(e) {
|
|
|
1724
1724
|
}, [n, o, t]), r;
|
|
1725
1725
|
}
|
|
1726
1726
|
let Bs = Ye, ys = ke(function(e, t) {
|
|
1727
|
-
let n = e, i = oe(null), r = je(Ua((
|
|
1728
|
-
i.current =
|
|
1727
|
+
let n = e, i = oe(null), r = je(Ua((c) => {
|
|
1728
|
+
i.current = c;
|
|
1729
1729
|
}), t), o = e1(i), a = bs(i), [l] = ae(() => {
|
|
1730
|
-
var
|
|
1731
|
-
return Z1 ? null : (
|
|
1732
|
-
}), s = wn(),
|
|
1730
|
+
var c;
|
|
1731
|
+
return Z1 ? null : (c = o == null ? void 0 : o.createElement("div")) != null ? c : null;
|
|
1732
|
+
}), s = wn(), u = oe(!1);
|
|
1733
1733
|
return Ue(() => {
|
|
1734
|
-
if (
|
|
1734
|
+
if (u.current = !1, !(!a || !l))
|
|
1735
1735
|
return a.contains(l) || (l.setAttribute("data-headlessui-portal", ""), a.appendChild(l)), () => {
|
|
1736
|
-
|
|
1737
|
-
var
|
|
1738
|
-
!
|
|
1736
|
+
u.current = !0, _n(() => {
|
|
1737
|
+
var c;
|
|
1738
|
+
!u.current || !a || !l || (a.removeChild(l), a.childNodes.length <= 0 && ((c = a.parentElement) == null || c.removeChild(a)));
|
|
1739
1739
|
});
|
|
1740
1740
|
};
|
|
1741
1741
|
}, [a, l]), s ? !a || !l ? null : y1(Le({
|
|
@@ -1858,13 +1858,13 @@ function Os(e, t) {
|
|
|
1858
1858
|
if (!t || !e)
|
|
1859
1859
|
return;
|
|
1860
1860
|
let i = Ht();
|
|
1861
|
-
function r(l, s,
|
|
1862
|
-
let
|
|
1861
|
+
function r(l, s, u) {
|
|
1862
|
+
let c = l.style.getPropertyValue(s);
|
|
1863
1863
|
return Object.assign(l.style, {
|
|
1864
|
-
[s]:
|
|
1864
|
+
[s]: u
|
|
1865
1865
|
}), i.add(() => {
|
|
1866
1866
|
Object.assign(l.style, {
|
|
1867
|
-
[s]:
|
|
1867
|
+
[s]: c
|
|
1868
1868
|
});
|
|
1869
1869
|
});
|
|
1870
1870
|
}
|
|
@@ -1890,12 +1890,12 @@ let Ds = "div", Ls = Ot.RenderStrategy | Ot.Static, ks = ke(function(e, t) {
|
|
|
1890
1890
|
initialFocus: r,
|
|
1891
1891
|
__demoMode: o = !1,
|
|
1892
1892
|
...a
|
|
1893
|
-
} = e, [l, s] = ae(0),
|
|
1894
|
-
n === void 0 &&
|
|
1893
|
+
} = e, [l, s] = ae(0), u = $n();
|
|
1894
|
+
n === void 0 && u !== null && (n = Xe(u, {
|
|
1895
1895
|
[pt.Open]: !0,
|
|
1896
1896
|
[pt.Closed]: !1
|
|
1897
1897
|
}));
|
|
1898
|
-
let
|
|
1898
|
+
let c = oe(/* @__PURE__ */ new Set()), d = oe(null), f = je(d, t), g = oe(null), p = e1(d), C = e.hasOwnProperty("open") || u !== null, E = e.hasOwnProperty("onClose");
|
|
1899
1899
|
if (!C && !E)
|
|
1900
1900
|
throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
|
|
1901
1901
|
if (!C)
|
|
@@ -1949,10 +1949,10 @@ let Ds = "div", Ls = Ot.RenderStrategy | Ot.Static, ks = ke(function(e, t) {
|
|
|
1949
1949
|
onUpdate: ue((T, Y, z) => {
|
|
1950
1950
|
Y === "Dialog" && Xe(T, {
|
|
1951
1951
|
[ni.Add]() {
|
|
1952
|
-
|
|
1952
|
+
c.current.add(z), s((re) => re + 1);
|
|
1953
1953
|
},
|
|
1954
1954
|
[ni.Remove]() {
|
|
1955
|
-
|
|
1955
|
+
c.current.add(z), s((re) => re - 1);
|
|
1956
1956
|
}
|
|
1957
1957
|
});
|
|
1958
1958
|
})
|
|
@@ -1970,7 +1970,7 @@ let Ds = "div", Ls = Ot.RenderStrategy | Ot.Static, ks = ke(function(e, t) {
|
|
|
1970
1970
|
name: "Dialog.Description",
|
|
1971
1971
|
children: /* @__PURE__ */ A(On, {
|
|
1972
1972
|
initialFocus: r,
|
|
1973
|
-
containers:
|
|
1973
|
+
containers: c,
|
|
1974
1974
|
features: b ? Xe(Q, {
|
|
1975
1975
|
parent: On.features.RestoreFocus,
|
|
1976
1976
|
leaf: On.features.All & ~On.features.FocusLock
|
|
@@ -2162,16 +2162,16 @@ let _s = Ye, $s = ke(function(e, t) {
|
|
|
2162
2162
|
...i
|
|
2163
2163
|
} = e, r = `headlessui-disclosure-button-${ot()}`, o = `headlessui-disclosure-panel-${ot()}`, a = oe(null), l = je(t, Ua((v) => {
|
|
2164
2164
|
a.current = v;
|
|
2165
|
-
}, e.as === void 0 || e.as === Ye)), s = oe(null),
|
|
2165
|
+
}, e.as === void 0 || e.as === Ye)), s = oe(null), u = oe(null), c = qn(qs, {
|
|
2166
2166
|
disclosureState: n ? 0 : 1,
|
|
2167
2167
|
linkedPanel: !1,
|
|
2168
|
-
buttonRef:
|
|
2168
|
+
buttonRef: u,
|
|
2169
2169
|
panelRef: s,
|
|
2170
2170
|
buttonId: r,
|
|
2171
2171
|
panelId: o
|
|
2172
2172
|
}), [{
|
|
2173
2173
|
disclosureState: d
|
|
2174
|
-
}, f] =
|
|
2174
|
+
}, f] = c;
|
|
2175
2175
|
ve(() => f({
|
|
2176
2176
|
type: 2,
|
|
2177
2177
|
buttonId: r
|
|
@@ -2197,7 +2197,7 @@ let _s = Ye, $s = ke(function(e, t) {
|
|
|
2197
2197
|
ref: l
|
|
2198
2198
|
};
|
|
2199
2199
|
return be.createElement(Si.Provider, {
|
|
2200
|
-
value:
|
|
2200
|
+
value: c
|
|
2201
2201
|
}, be.createElement(Vi.Provider, {
|
|
2202
2202
|
value: p
|
|
2203
2203
|
}, be.createElement(yi, {
|
|
@@ -2235,13 +2235,13 @@ let _s = Ye, $s = ke(function(e, t) {
|
|
|
2235
2235
|
});
|
|
2236
2236
|
break;
|
|
2237
2237
|
}
|
|
2238
|
-
}),
|
|
2238
|
+
}), u = ue((C) => {
|
|
2239
2239
|
switch (C.key) {
|
|
2240
2240
|
case fe.Space:
|
|
2241
2241
|
C.preventDefault();
|
|
2242
2242
|
break;
|
|
2243
2243
|
}
|
|
2244
|
-
}),
|
|
2244
|
+
}), c = ue((C) => {
|
|
2245
2245
|
var E;
|
|
2246
2246
|
Bn(C.currentTarget) || e.disabled || (o ? (i({
|
|
2247
2247
|
type: 0
|
|
@@ -2254,7 +2254,7 @@ let _s = Ye, $s = ke(function(e, t) {
|
|
|
2254
2254
|
ref: l,
|
|
2255
2255
|
type: f,
|
|
2256
2256
|
onKeyDown: s,
|
|
2257
|
-
onClick:
|
|
2257
|
+
onClick: c
|
|
2258
2258
|
} : {
|
|
2259
2259
|
ref: l,
|
|
2260
2260
|
id: n.buttonId,
|
|
@@ -2262,8 +2262,8 @@ let _s = Ye, $s = ke(function(e, t) {
|
|
|
2262
2262
|
"aria-expanded": e.disabled ? void 0 : n.disclosureState === 0,
|
|
2263
2263
|
"aria-controls": n.linkedPanel ? n.panelId : void 0,
|
|
2264
2264
|
onKeyDown: s,
|
|
2265
|
-
onKeyUp:
|
|
2266
|
-
onClick:
|
|
2265
|
+
onKeyUp: u,
|
|
2266
|
+
onClick: c
|
|
2267
2267
|
};
|
|
2268
2268
|
return Le({
|
|
2269
2269
|
ourProps: p,
|
|
@@ -2282,15 +2282,15 @@ let _s = Ye, $s = ke(function(e, t) {
|
|
|
2282
2282
|
}), a = $n(), l = (() => a !== null ? a === pt.Open : n.disclosureState === 0)(), s = se(() => ({
|
|
2283
2283
|
open: n.disclosureState === 0,
|
|
2284
2284
|
close: r
|
|
2285
|
-
}), [n, r]),
|
|
2285
|
+
}), [n, r]), u = e, c = {
|
|
2286
2286
|
ref: o,
|
|
2287
2287
|
id: n.panelId
|
|
2288
2288
|
};
|
|
2289
2289
|
return /* @__PURE__ */ A(Pi.Provider, {
|
|
2290
2290
|
value: n.panelId,
|
|
2291
2291
|
children: Le({
|
|
2292
|
-
ourProps:
|
|
2293
|
-
theirProps:
|
|
2292
|
+
ourProps: c,
|
|
2293
|
+
theirProps: u,
|
|
2294
2294
|
slot: s,
|
|
2295
2295
|
defaultTag: nu,
|
|
2296
2296
|
features: ru,
|
|
@@ -2420,10 +2420,10 @@ let cu = Ye, du = ke(function(e, t) {
|
|
|
2420
2420
|
a({
|
|
2421
2421
|
type: 1
|
|
2422
2422
|
});
|
|
2423
|
-
}),
|
|
2423
|
+
}), u = se(() => ({
|
|
2424
2424
|
open: i === 0,
|
|
2425
2425
|
close: s
|
|
2426
|
-
}), [i, s]),
|
|
2426
|
+
}), [i, s]), c = e, d = {
|
|
2427
2427
|
ref: l
|
|
2428
2428
|
};
|
|
2429
2429
|
return be.createElement(Mi.Provider, {
|
|
@@ -2435,8 +2435,8 @@ let cu = Ye, du = ke(function(e, t) {
|
|
|
2435
2435
|
})
|
|
2436
2436
|
}, Le({
|
|
2437
2437
|
ourProps: d,
|
|
2438
|
-
theirProps:
|
|
2439
|
-
slot:
|
|
2438
|
+
theirProps: c,
|
|
2439
|
+
slot: u,
|
|
2440
2440
|
defaultTag: cu,
|
|
2441
2441
|
name: "Menu"
|
|
2442
2442
|
})));
|
|
@@ -2463,13 +2463,13 @@ let cu = Ye, du = ke(function(e, t) {
|
|
|
2463
2463
|
}));
|
|
2464
2464
|
break;
|
|
2465
2465
|
}
|
|
2466
|
-
}),
|
|
2466
|
+
}), u = ue((p) => {
|
|
2467
2467
|
switch (p.key) {
|
|
2468
2468
|
case fe.Space:
|
|
2469
2469
|
p.preventDefault();
|
|
2470
2470
|
break;
|
|
2471
2471
|
}
|
|
2472
|
-
}),
|
|
2472
|
+
}), c = ue((p) => {
|
|
2473
2473
|
if (Bn(p.currentTarget))
|
|
2474
2474
|
return p.preventDefault();
|
|
2475
2475
|
e.disabled || (i.menuState === 0 ? (r({
|
|
@@ -2492,8 +2492,8 @@ let cu = Ye, du = ke(function(e, t) {
|
|
|
2492
2492
|
"aria-controls": (n = i.itemsRef.current) == null ? void 0 : n.id,
|
|
2493
2493
|
"aria-expanded": e.disabled ? void 0 : i.menuState === 0,
|
|
2494
2494
|
onKeyDown: s,
|
|
2495
|
-
onKeyUp:
|
|
2496
|
-
onClick:
|
|
2495
|
+
onKeyUp: u,
|
|
2496
|
+
onClick: c
|
|
2497
2497
|
};
|
|
2498
2498
|
return Le({
|
|
2499
2499
|
ourProps: g,
|
|
@@ -2504,7 +2504,7 @@ let cu = Ye, du = ke(function(e, t) {
|
|
|
2504
2504
|
});
|
|
2505
2505
|
}), gu = "div", Cu = Ot.RenderStrategy | Ot.Static, pu = ke(function(e, t) {
|
|
2506
2506
|
var n, i;
|
|
2507
|
-
let [r, o] = Y1("Menu.Items"), a = je(r.itemsRef, t), l = e1(r.itemsRef), s = `headlessui-menu-items-${ot()}`,
|
|
2507
|
+
let [r, o] = Y1("Menu.Items"), a = je(r.itemsRef, t), l = e1(r.itemsRef), s = `headlessui-menu-items-${ot()}`, u = j1(), c = $n(), d = (() => c !== null ? c === pt.Open : r.menuState === 0)();
|
|
2508
2508
|
ve(() => {
|
|
2509
2509
|
let v = r.itemsRef.current;
|
|
2510
2510
|
!v || r.menuState === 0 && v !== (l == null ? void 0 : l.activeElement) && v.focus({
|
|
@@ -2522,7 +2522,7 @@ let cu = Ye, du = ke(function(e, t) {
|
|
|
2522
2522
|
});
|
|
2523
2523
|
let f = ue((v) => {
|
|
2524
2524
|
var w, V;
|
|
2525
|
-
switch (
|
|
2525
|
+
switch (u.dispose(), v.key) {
|
|
2526
2526
|
case fe.Space:
|
|
2527
2527
|
if (r.searchQuery !== "")
|
|
2528
2528
|
return v.preventDefault(), v.stopPropagation(), o({
|
|
@@ -2583,7 +2583,7 @@ let cu = Ye, du = ke(function(e, t) {
|
|
|
2583
2583
|
v.key.length === 1 && (o({
|
|
2584
2584
|
type: 3,
|
|
2585
2585
|
value: v.key
|
|
2586
|
-
}),
|
|
2586
|
+
}), u.setTimeout(() => o({
|
|
2587
2587
|
type: 4
|
|
2588
2588
|
}), 350));
|
|
2589
2589
|
break;
|
|
@@ -2619,7 +2619,7 @@ let cu = Ye, du = ke(function(e, t) {
|
|
|
2619
2619
|
let {
|
|
2620
2620
|
disabled: n = !1,
|
|
2621
2621
|
...i
|
|
2622
|
-
} = e, [r, o] = Y1("Menu.Item"), a = `headlessui-menu-item-${ot()}`, l = r.activeItemIndex !== null ? r.items[r.activeItemIndex].id === a : !1, s = oe(null),
|
|
2622
|
+
} = e, [r, o] = Y1("Menu.Item"), a = `headlessui-menu-item-${ot()}`, l = r.activeItemIndex !== null ? r.items[r.activeItemIndex].id === a : !1, s = oe(null), u = je(t, s);
|
|
2623
2623
|
Ue(() => {
|
|
2624
2624
|
if (r.menuState !== 0 || !l || r.activationTrigger === 0)
|
|
2625
2625
|
return;
|
|
@@ -2631,23 +2631,23 @@ let cu = Ye, du = ke(function(e, t) {
|
|
|
2631
2631
|
});
|
|
2632
2632
|
}), v.dispose;
|
|
2633
2633
|
}, [s, l, r.menuState, r.activationTrigger, r.activeItemIndex]);
|
|
2634
|
-
let
|
|
2634
|
+
let c = oe({
|
|
2635
2635
|
disabled: n,
|
|
2636
2636
|
domRef: s
|
|
2637
2637
|
});
|
|
2638
2638
|
Ue(() => {
|
|
2639
|
-
|
|
2640
|
-
}, [
|
|
2639
|
+
c.current.disabled = n;
|
|
2640
|
+
}, [c, n]), Ue(() => {
|
|
2641
2641
|
var v, w;
|
|
2642
|
-
|
|
2643
|
-
}, [
|
|
2642
|
+
c.current.textValue = (w = (v = s.current) == null ? void 0 : v.textContent) == null ? void 0 : w.toLowerCase();
|
|
2643
|
+
}, [c, s]), Ue(() => (o({
|
|
2644
2644
|
type: 5,
|
|
2645
2645
|
id: a,
|
|
2646
|
-
dataRef:
|
|
2646
|
+
dataRef: c
|
|
2647
2647
|
}), () => o({
|
|
2648
2648
|
type: 6,
|
|
2649
2649
|
id: a
|
|
2650
|
-
})), [
|
|
2650
|
+
})), [c, a]);
|
|
2651
2651
|
let d = ue(() => {
|
|
2652
2652
|
o({
|
|
2653
2653
|
type: 1
|
|
@@ -2689,7 +2689,7 @@ let cu = Ye, du = ke(function(e, t) {
|
|
|
2689
2689
|
return Le({
|
|
2690
2690
|
ourProps: {
|
|
2691
2691
|
id: a,
|
|
2692
|
-
ref:
|
|
2692
|
+
ref: u,
|
|
2693
2693
|
role: "menuitem",
|
|
2694
2694
|
tabIndex: n === !0 ? void 0 : -1,
|
|
2695
2695
|
"aria-disabled": n === !0 ? !0 : void 0,
|
|
@@ -2802,16 +2802,16 @@ let yu = "div", Ru = ke(function(e, t) {
|
|
|
2802
2802
|
by: a = (D, G) => D === G,
|
|
2803
2803
|
disabled: l = !1,
|
|
2804
2804
|
...s
|
|
2805
|
-
} = e,
|
|
2805
|
+
} = e, u = ue(typeof a == "string" ? (D, G) => {
|
|
2806
2806
|
let T = a;
|
|
2807
2807
|
return (D == null ? void 0 : D[T]) === (G == null ? void 0 : G[T]);
|
|
2808
|
-
} : a), [
|
|
2808
|
+
} : a), [c, d] = qn(Bu, {
|
|
2809
2809
|
options: []
|
|
2810
|
-
}), f =
|
|
2810
|
+
}), f = c.options, [g, p] = Fi(), [C, E] = W1(), v = `headlessui-radiogroup-${ot()}`, w = oe(null), V = je(w, t), [I, m] = n2(n, o, i), b = se(() => f.find((D) => !D.propsRef.current.disabled), [f]), h = se(() => f.some((D) => u(D.propsRef.current.value, I)), [f, I]), x = ue((D) => {
|
|
2811
2811
|
var G;
|
|
2812
|
-
if (l ||
|
|
2812
|
+
if (l || u(D, I))
|
|
2813
2813
|
return !1;
|
|
2814
|
-
let T = (G = f.find((Y) =>
|
|
2814
|
+
let T = (G = f.find((Y) => u(Y.propsRef.current.value, D))) == null ? void 0 : G.propsRef.current;
|
|
2815
2815
|
return T != null && T.disabled ? !1 : (m == null || m(D), !0);
|
|
2816
2816
|
});
|
|
2817
2817
|
Ka({
|
|
@@ -2867,8 +2867,8 @@ let yu = "div", Ru = ke(function(e, t) {
|
|
|
2867
2867
|
change: x,
|
|
2868
2868
|
disabled: l,
|
|
2869
2869
|
value: I,
|
|
2870
|
-
compare:
|
|
2871
|
-
}), [N, b, h, x, l, I,
|
|
2870
|
+
compare: u
|
|
2871
|
+
}), [N, b, h, x, l, I, u]), Z = {
|
|
2872
2872
|
ref: V,
|
|
2873
2873
|
id: v,
|
|
2874
2874
|
role: "radiogroup",
|
|
@@ -2912,8 +2912,8 @@ let yu = "div", Ru = ke(function(e, t) {
|
|
|
2912
2912
|
var wu = ((e) => (e[e.Empty = 1] = "Empty", e[e.Active = 2] = "Active", e))(wu || {});
|
|
2913
2913
|
let xu = "div", Su = ke(function(e, t) {
|
|
2914
2914
|
let n = oe(null), i = je(n, t), r = `headlessui-radiogroup-option-${ot()}`, [o, a] = Fi(), [l, s] = W1(), {
|
|
2915
|
-
addFlag:
|
|
2916
|
-
removeFlag:
|
|
2915
|
+
addFlag: u,
|
|
2916
|
+
removeFlag: c,
|
|
2917
2917
|
hasFlag: d
|
|
2918
2918
|
} = vu(1), {
|
|
2919
2919
|
value: f,
|
|
@@ -2946,12 +2946,12 @@ let xu = "div", Su = ke(function(e, t) {
|
|
|
2946
2946
|
var T;
|
|
2947
2947
|
if (Bn(G.currentTarget))
|
|
2948
2948
|
return G.preventDefault();
|
|
2949
|
-
!w(f) || (
|
|
2949
|
+
!w(f) || (u(2), (T = n.current) == null || T.focus());
|
|
2950
2950
|
}), x = ue((G) => {
|
|
2951
2951
|
if (Bn(G.currentTarget))
|
|
2952
2952
|
return G.preventDefault();
|
|
2953
|
-
|
|
2954
|
-
}), Q = ue(() =>
|
|
2953
|
+
u(2);
|
|
2954
|
+
}), Q = ue(() => c(2)), N = (V == null ? void 0 : V.id) === r, H = v || g, Z = b(m, f), j = {
|
|
2955
2955
|
ref: i,
|
|
2956
2956
|
id: r,
|
|
2957
2957
|
role: "radio",
|
|
@@ -2994,7 +2994,7 @@ function Vu(e) {
|
|
|
2994
2994
|
setSwitch: n,
|
|
2995
2995
|
labelledby: i,
|
|
2996
2996
|
describedby: o
|
|
2997
|
-
}), [t, n, i, o]), s = {},
|
|
2997
|
+
}), [t, n, i, o]), s = {}, u = e;
|
|
2998
2998
|
return be.createElement(a, {
|
|
2999
2999
|
name: "Switch.Description"
|
|
3000
3000
|
}, be.createElement(r, {
|
|
@@ -3010,7 +3010,7 @@ function Vu(e) {
|
|
|
3010
3010
|
value: l
|
|
3011
3011
|
}, Le({
|
|
3012
3012
|
ourProps: s,
|
|
3013
|
-
theirProps:
|
|
3013
|
+
theirProps: u,
|
|
3014
3014
|
defaultTag: Qu,
|
|
3015
3015
|
name: "Switch.Group"
|
|
3016
3016
|
}))));
|
|
@@ -3023,7 +3023,7 @@ let Pu = "button", Mu = ke(function(e, t) {
|
|
|
3023
3023
|
name: o,
|
|
3024
3024
|
value: a,
|
|
3025
3025
|
...l
|
|
3026
|
-
} = e, s = `headlessui-switch-${ot()}`,
|
|
3026
|
+
} = e, s = `headlessui-switch-${ot()}`, u = We(Ni), c = oe(null), d = je(c, t, u === null ? null : u.setSwitch), [f, g] = n2(n, r, i), p = ue(() => g == null ? void 0 : g(!f)), C = ue((I) => {
|
|
3027
3027
|
if (Bn(I.currentTarget))
|
|
3028
3028
|
return I.preventDefault();
|
|
3029
3029
|
I.preventDefault(), p();
|
|
@@ -3035,11 +3035,11 @@ let Pu = "button", Mu = ke(function(e, t) {
|
|
|
3035
3035
|
id: s,
|
|
3036
3036
|
ref: d,
|
|
3037
3037
|
role: "switch",
|
|
3038
|
-
type: X1(e,
|
|
3038
|
+
type: X1(e, c),
|
|
3039
3039
|
tabIndex: 0,
|
|
3040
3040
|
"aria-checked": f,
|
|
3041
|
-
"aria-labelledby":
|
|
3042
|
-
"aria-describedby":
|
|
3041
|
+
"aria-labelledby": u == null ? void 0 : u.labelledby,
|
|
3042
|
+
"aria-describedby": u == null ? void 0 : u.describedby,
|
|
3043
3043
|
onClick: C,
|
|
3044
3044
|
onKeyUp: E,
|
|
3045
3045
|
onKeyPress: v
|
|
@@ -3187,8 +3187,8 @@ let ku = Ye, Gu = ke(function(e, t) {
|
|
|
3187
3187
|
selectedIndex: a = null,
|
|
3188
3188
|
...l
|
|
3189
3189
|
} = e;
|
|
3190
|
-
const s = i ? "vertical" : "horizontal",
|
|
3191
|
-
let
|
|
3190
|
+
const s = i ? "vertical" : "horizontal", u = r ? "manual" : "auto";
|
|
3191
|
+
let c = a !== null, d = je(t), [f, g] = qn(Lu, {
|
|
3192
3192
|
selectedIndex: a != null ? a : n,
|
|
3193
3193
|
tabs: [],
|
|
3194
3194
|
panels: []
|
|
@@ -3197,9 +3197,9 @@ let ku = Ye, Gu = ke(function(e, t) {
|
|
|
3197
3197
|
}), [f.selectedIndex]), C = ht(o || (() => {
|
|
3198
3198
|
})), E = ht(f.tabs), v = se(() => ({
|
|
3199
3199
|
orientation: s,
|
|
3200
|
-
activation:
|
|
3200
|
+
activation: u,
|
|
3201
3201
|
...f
|
|
3202
|
-
}), [s,
|
|
3202
|
+
}), [s, u, f]), w = ht(c ? e.selectedIndex : f.selectedIndex), V = se(() => ({
|
|
3203
3203
|
registerTab(b) {
|
|
3204
3204
|
return g({
|
|
3205
3205
|
type: 1,
|
|
@@ -3219,12 +3219,12 @@ let ku = Ye, Gu = ke(function(e, t) {
|
|
|
3219
3219
|
});
|
|
3220
3220
|
},
|
|
3221
3221
|
change(b) {
|
|
3222
|
-
w.current !== b && C.current(b),
|
|
3222
|
+
w.current !== b && C.current(b), c || g({
|
|
3223
3223
|
type: 0,
|
|
3224
3224
|
index: b
|
|
3225
3225
|
});
|
|
3226
3226
|
}
|
|
3227
|
-
}), [g,
|
|
3227
|
+
}), [g, c]);
|
|
3228
3228
|
Ue(() => {
|
|
3229
3229
|
g({
|
|
3230
3230
|
type: 0,
|
|
@@ -3283,9 +3283,9 @@ let ku = Ye, Gu = ke(function(e, t) {
|
|
|
3283
3283
|
activation: a,
|
|
3284
3284
|
selectedIndex: l,
|
|
3285
3285
|
tabs: s,
|
|
3286
|
-
panels:
|
|
3287
|
-
} = yn("Tab"),
|
|
3288
|
-
Ue(() =>
|
|
3286
|
+
panels: u
|
|
3287
|
+
} = yn("Tab"), c = Ti("Tab"), d = yn("Tab"), f = Li("Tab"), g = oe(null), p = je(g, t);
|
|
3288
|
+
Ue(() => c.registerTab(g), [c, g]);
|
|
3289
3289
|
let C = f.current.tabs.indexOf(r);
|
|
3290
3290
|
C === -1 && (C = f.current.tabs.push(r) - 1);
|
|
3291
3291
|
let E = s.indexOf(g);
|
|
@@ -3295,13 +3295,13 @@ let ku = Ye, Gu = ke(function(e, t) {
|
|
|
3295
3295
|
let Z = N();
|
|
3296
3296
|
if (Z === qt.Success && a === "auto") {
|
|
3297
3297
|
let j = (H = nn(g)) == null ? void 0 : H.activeElement, D = d.tabs.findIndex((G) => G.current === j);
|
|
3298
|
-
D !== -1 &&
|
|
3298
|
+
D !== -1 && c.change(D);
|
|
3299
3299
|
}
|
|
3300
3300
|
return Z;
|
|
3301
3301
|
}), V = ue((N) => {
|
|
3302
3302
|
let H = s.map((Z) => Z.current).filter(Boolean);
|
|
3303
3303
|
if (N.key === fe.Space || N.key === fe.Enter) {
|
|
3304
|
-
N.preventDefault(), N.stopPropagation(),
|
|
3304
|
+
N.preventDefault(), N.stopPropagation(), c.change(E);
|
|
3305
3305
|
return;
|
|
3306
3306
|
}
|
|
3307
3307
|
switch (N.key) {
|
|
@@ -3323,7 +3323,7 @@ let ku = Ye, Gu = ke(function(e, t) {
|
|
|
3323
3323
|
return N.preventDefault();
|
|
3324
3324
|
}), I = oe(!1), m = ue(() => {
|
|
3325
3325
|
var N;
|
|
3326
|
-
I.current || (I.current = !0, (N = g.current) == null || N.focus(),
|
|
3326
|
+
I.current || (I.current = !0, (N = g.current) == null || N.focus(), c.change(E), _n(() => {
|
|
3327
3327
|
I.current = !1;
|
|
3328
3328
|
}));
|
|
3329
3329
|
}), b = ue((N) => {
|
|
@@ -3338,7 +3338,7 @@ let ku = Ye, Gu = ke(function(e, t) {
|
|
|
3338
3338
|
id: r,
|
|
3339
3339
|
role: "tab",
|
|
3340
3340
|
type: X1(e, g),
|
|
3341
|
-
"aria-controls": (i = (n =
|
|
3341
|
+
"aria-controls": (i = (n = u[E]) == null ? void 0 : n.current) == null ? void 0 : i.id,
|
|
3342
3342
|
"aria-selected": v,
|
|
3343
3343
|
tabIndex: v ? 0 : -1
|
|
3344
3344
|
};
|
|
@@ -3370,10 +3370,10 @@ let ku = Ye, Gu = ke(function(e, t) {
|
|
|
3370
3370
|
selectedIndex: a,
|
|
3371
3371
|
tabs: l,
|
|
3372
3372
|
panels: s
|
|
3373
|
-
} = yn("Tab.Panel"),
|
|
3374
|
-
Ue(() =>
|
|
3375
|
-
let p =
|
|
3376
|
-
p === -1 && (p =
|
|
3373
|
+
} = yn("Tab.Panel"), u = Ti("Tab.Panel"), c = Li("Tab.Panel"), d = `headlessui-tabs-panel-${ot()}`, f = oe(null), g = je(f, t);
|
|
3374
|
+
Ue(() => u.registerPanel(f), [u, f]);
|
|
3375
|
+
let p = c.current.panels.indexOf(d);
|
|
3376
|
+
p === -1 && (p = c.current.panels.push(d) - 1);
|
|
3377
3377
|
let C = s.indexOf(f);
|
|
3378
3378
|
C === -1 && (C = p);
|
|
3379
3379
|
let E = C === a, v = se(() => ({
|
|
@@ -3422,16 +3422,16 @@ function Ku(e, t) {
|
|
|
3422
3422
|
if (!e)
|
|
3423
3423
|
return n.dispose;
|
|
3424
3424
|
let { transitionDuration: i, transitionDelay: r } = getComputedStyle(e), [o, a] = [i, r].map((l) => {
|
|
3425
|
-
let [s = 0] = l.split(",").filter(Boolean).map((
|
|
3425
|
+
let [s = 0] = l.split(",").filter(Boolean).map((u) => u.includes("ms") ? parseFloat(u) : parseFloat(u) * 1e3).sort((u, c) => c - u);
|
|
3426
3426
|
return s;
|
|
3427
3427
|
});
|
|
3428
3428
|
if (o + a !== 0) {
|
|
3429
3429
|
let l = [];
|
|
3430
3430
|
l.push(n.addEventListener(e, "transitionrun", (s) => {
|
|
3431
|
-
s.target === s.currentTarget && (l.splice(0).forEach((
|
|
3432
|
-
|
|
3433
|
-
}), n.addEventListener(e, "transitioncancel", (
|
|
3434
|
-
|
|
3431
|
+
s.target === s.currentTarget && (l.splice(0).forEach((u) => u()), l.push(n.addEventListener(e, "transitionend", (u) => {
|
|
3432
|
+
u.target === u.currentTarget && (t("ended"), l.splice(0).forEach((c) => c()));
|
|
3433
|
+
}), n.addEventListener(e, "transitioncancel", (u) => {
|
|
3434
|
+
u.target === u.currentTarget && (t("cancelled"), l.splice(0).forEach((c) => c()));
|
|
3435
3435
|
})));
|
|
3436
3436
|
}));
|
|
3437
3437
|
} else
|
|
@@ -3442,9 +3442,9 @@ function qu(e, t, n, i) {
|
|
|
3442
3442
|
let r = n ? "enter" : "leave", o = Ht(), a = i !== void 0 ? Uu(i) : () => {
|
|
3443
3443
|
};
|
|
3444
3444
|
r === "enter" && (e.removeAttribute("hidden"), e.style.display = "");
|
|
3445
|
-
let l = Xe(r, { enter: () => t.enter, leave: () => t.leave }), s = Xe(r, { enter: () => t.enterTo, leave: () => t.leaveTo }),
|
|
3446
|
-
return Er(e, ...t.enter, ...t.enterTo, ...t.enterFrom, ...t.leave, ...t.leaveFrom, ...t.leaveTo, ...t.entered), mr(e, ...l, ...
|
|
3447
|
-
Er(e, ...
|
|
3445
|
+
let l = Xe(r, { enter: () => t.enter, leave: () => t.leave }), s = Xe(r, { enter: () => t.enterTo, leave: () => t.leaveTo }), u = Xe(r, { enter: () => t.enterFrom, leave: () => t.leaveFrom });
|
|
3446
|
+
return Er(e, ...t.enter, ...t.enterTo, ...t.enterFrom, ...t.leave, ...t.leaveFrom, ...t.leaveTo, ...t.entered), mr(e, ...l, ...u), o.nextFrame(() => {
|
|
3447
|
+
Er(e, ...u), mr(e, ...s), Ku(e, (c) => (c === "ended" && (Er(e, ...l), mr(e, ...t.entered)), a(c)));
|
|
3448
3448
|
}), o.dispose;
|
|
3449
3449
|
}
|
|
3450
3450
|
function _u({ container: e, direction: t, classes: n, onStart: i, onStop: r }) {
|
|
@@ -3452,10 +3452,10 @@ function _u({ container: e, direction: t, classes: n, onStart: i, onStop: r }) {
|
|
|
3452
3452
|
Ue(() => {
|
|
3453
3453
|
let s = Ht();
|
|
3454
3454
|
a.add(s.dispose);
|
|
3455
|
-
let
|
|
3456
|
-
if (!!
|
|
3457
|
-
return s.dispose(), i.current(l.current), s.add(qu(
|
|
3458
|
-
s.dispose(), Xe(
|
|
3455
|
+
let u = e.current;
|
|
3456
|
+
if (!!u && l.current !== "idle" && !!o.current)
|
|
3457
|
+
return s.dispose(), i.current(l.current), s.add(qu(u, n.current, l.current === "enter", (c) => {
|
|
3458
|
+
s.dispose(), Xe(c, { [ri.Ended]() {
|
|
3459
3459
|
r.current(l.current);
|
|
3460
3460
|
}, [ri.Cancelled]: () => {
|
|
3461
3461
|
} });
|
|
@@ -3513,7 +3513,7 @@ function g2(e, t) {
|
|
|
3513
3513
|
el: g,
|
|
3514
3514
|
state: "visible"
|
|
3515
3515
|
}), () => a(g, Gt.Unmount);
|
|
3516
|
-
}), s = oe([]),
|
|
3516
|
+
}), s = oe([]), u = oe(Promise.resolve()), c = oe({
|
|
3517
3517
|
enter: [],
|
|
3518
3518
|
leave: [],
|
|
3519
3519
|
idle: []
|
|
@@ -3521,10 +3521,10 @@ function g2(e, t) {
|
|
|
3521
3521
|
s.current.splice(0), t && (t.chains.current[p] = t.chains.current[p].filter(([E]) => E !== g)), t == null || t.chains.current[p].push([g, new Promise((E) => {
|
|
3522
3522
|
s.current.push(E);
|
|
3523
3523
|
})]), t == null || t.chains.current[p].push([g, new Promise((E) => {
|
|
3524
|
-
Promise.all(
|
|
3525
|
-
})]), p === "enter" ?
|
|
3524
|
+
Promise.all(c.current[p].map(([v, w]) => w)).then(() => E());
|
|
3525
|
+
})]), p === "enter" ? u.current = u.current.then(() => t == null ? void 0 : t.wait.current).then(() => C(p)) : C(p);
|
|
3526
3526
|
}), f = ue((g, p, C) => {
|
|
3527
|
-
Promise.all(
|
|
3527
|
+
Promise.all(c.current[p].splice(0).map(([E, v]) => v)).then(() => {
|
|
3528
3528
|
var E;
|
|
3529
3529
|
(E = s.current.shift()) == null || E();
|
|
3530
3530
|
}).then(() => C(p));
|
|
@@ -3535,9 +3535,9 @@ function g2(e, t) {
|
|
|
3535
3535
|
unregister: a,
|
|
3536
3536
|
onStart: d,
|
|
3537
3537
|
onStop: f,
|
|
3538
|
-
wait:
|
|
3539
|
-
chains:
|
|
3540
|
-
}), [l, a, i, d, f,
|
|
3538
|
+
wait: u,
|
|
3539
|
+
chains: c
|
|
3540
|
+
}), [l, a, i, d, f, c, u]);
|
|
3541
3541
|
}
|
|
3542
3542
|
function nc() {
|
|
3543
3543
|
}
|
|
@@ -3564,8 +3564,8 @@ let oc = "div", C2 = Ot.RenderStrategy, p2 = ke(function(e, t) {
|
|
|
3564
3564
|
enter: a,
|
|
3565
3565
|
enterFrom: l,
|
|
3566
3566
|
enterTo: s,
|
|
3567
|
-
entered:
|
|
3568
|
-
leave:
|
|
3567
|
+
entered: u,
|
|
3568
|
+
leave: c,
|
|
3569
3569
|
leaveFrom: d,
|
|
3570
3570
|
leaveTo: f,
|
|
3571
3571
|
...g
|
|
@@ -3593,8 +3593,8 @@ let oc = "div", C2 = Ot.RenderStrategy, p2 = ke(function(e, t) {
|
|
|
3593
3593
|
enter: un(a),
|
|
3594
3594
|
enterFrom: un(l),
|
|
3595
3595
|
enterTo: un(s),
|
|
3596
|
-
entered: un(
|
|
3597
|
-
leave: un(
|
|
3596
|
+
entered: un(u),
|
|
3597
|
+
leave: un(c),
|
|
3598
3598
|
leaveFrom: un(d),
|
|
3599
3599
|
leaveTo: un(f)
|
|
3600
3600
|
}), H = ic({
|
|
@@ -3667,8 +3667,8 @@ let oc = "div", C2 = Ot.RenderStrategy, p2 = ke(function(e, t) {
|
|
|
3667
3667
|
[pt.Closed]: !1
|
|
3668
3668
|
})), ![!0, !1].includes(n))
|
|
3669
3669
|
throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
3670
|
-
let [
|
|
3671
|
-
|
|
3670
|
+
let [u, c] = ae(n ? "visible" : "hidden"), d = g2(() => {
|
|
3671
|
+
c("hidden");
|
|
3672
3672
|
}), [f, g] = ae(!0), p = oe([n]);
|
|
3673
3673
|
Ue(() => {
|
|
3674
3674
|
f !== !1 && p.current[p.current.length - 1] !== n && (p.current.push(n), g(!1));
|
|
@@ -3680,15 +3680,15 @@ let oc = "div", C2 = Ot.RenderStrategy, p2 = ke(function(e, t) {
|
|
|
3680
3680
|
}), [n, i, f]);
|
|
3681
3681
|
ve(() => {
|
|
3682
3682
|
if (n)
|
|
3683
|
-
|
|
3683
|
+
c("visible");
|
|
3684
3684
|
else if (!K1(d))
|
|
3685
|
-
|
|
3685
|
+
c("hidden");
|
|
3686
3686
|
else {
|
|
3687
3687
|
let v = a.current;
|
|
3688
3688
|
if (!v)
|
|
3689
3689
|
return;
|
|
3690
3690
|
let w = v.getBoundingClientRect();
|
|
3691
|
-
w.x === 0 && w.y === 0 && w.width === 0 && w.height === 0 &&
|
|
3691
|
+
w.x === 0 && w.y === 0 && w.width === 0 && w.height === 0 && c("hidden");
|
|
3692
3692
|
}
|
|
3693
3693
|
}, [n, d]);
|
|
3694
3694
|
let E = {
|
|
@@ -3711,7 +3711,7 @@ let oc = "div", C2 = Ot.RenderStrategy, p2 = ke(function(e, t) {
|
|
|
3711
3711
|
theirProps: {},
|
|
3712
3712
|
defaultTag: Ye,
|
|
3713
3713
|
features: C2,
|
|
3714
|
-
visible:
|
|
3714
|
+
visible: u === "visible",
|
|
3715
3715
|
name: "Transition"
|
|
3716
3716
|
})
|
|
3717
3717
|
})
|
|
@@ -3739,13 +3739,13 @@ function x7({
|
|
|
3739
3739
|
hasFrozenState: r = !1,
|
|
3740
3740
|
...o
|
|
3741
3741
|
}) {
|
|
3742
|
-
const [a, l] = ae(t), s = (
|
|
3742
|
+
const [a, l] = ae(t), s = (c) => {
|
|
3743
3743
|
if (r)
|
|
3744
|
-
return l(!
|
|
3745
|
-
l(
|
|
3746
|
-
},
|
|
3747
|
-
checked:
|
|
3748
|
-
}) => n ? "bg-surface-disabled" :
|
|
3744
|
+
return l(!c), e(!c);
|
|
3745
|
+
l(c), e(c);
|
|
3746
|
+
}, u = ({
|
|
3747
|
+
checked: c
|
|
3748
|
+
}) => n ? "bg-surface-disabled" : c ? "bg-action-primary-default" : "bg-action-primary-disabled";
|
|
3749
3749
|
return /* @__PURE__ */ A(Fu, {
|
|
3750
3750
|
name: i,
|
|
3751
3751
|
checked: a,
|
|
@@ -3753,16 +3753,16 @@ function x7({
|
|
|
3753
3753
|
as: Ye,
|
|
3754
3754
|
...o,
|
|
3755
3755
|
children: ({
|
|
3756
|
-
checked:
|
|
3756
|
+
checked: c
|
|
3757
3757
|
}) => /* @__PURE__ */ _("button", {
|
|
3758
3758
|
disabled: n,
|
|
3759
|
-
className: K("relative inline-flex h-6 w-12 items-center rounded-full",
|
|
3760
|
-
checked:
|
|
3759
|
+
className: K("relative inline-flex h-6 w-12 items-center rounded-full", u({
|
|
3760
|
+
checked: c
|
|
3761
3761
|
})),
|
|
3762
3762
|
children: [/* @__PURE__ */ A("span", {
|
|
3763
3763
|
className: "sr-only"
|
|
3764
3764
|
}), /* @__PURE__ */ A("span", {
|
|
3765
|
-
className: K("inline-block h-4 w-4 transform rounded-full transition",
|
|
3765
|
+
className: K("inline-block h-4 w-4 transform rounded-full transition", c ? "translate-x-7" : "translate-x-1", n ? "bg-icon-disabled" : "bg-icon-on")
|
|
3766
3766
|
})]
|
|
3767
3767
|
})
|
|
3768
3768
|
});
|
|
@@ -4217,9 +4217,9 @@ function wo(e, t, n) {
|
|
|
4217
4217
|
reference: i,
|
|
4218
4218
|
floating: r
|
|
4219
4219
|
} = e;
|
|
4220
|
-
const o = i.x + i.width / 2 - r.width / 2, a = i.y + i.height / 2 - r.height / 2, l = r1(t), s = Hi(l),
|
|
4220
|
+
const o = i.x + i.width / 2 - r.width / 2, a = i.y + i.height / 2 - r.height / 2, l = r1(t), s = Hi(l), u = i[s] / 2 - r[s] / 2, c = n1(t), d = l === "x";
|
|
4221
4221
|
let f;
|
|
4222
|
-
switch (
|
|
4222
|
+
switch (c) {
|
|
4223
4223
|
case "top":
|
|
4224
4224
|
f = {
|
|
4225
4225
|
x: o,
|
|
@@ -4252,10 +4252,10 @@ function wo(e, t, n) {
|
|
|
4252
4252
|
}
|
|
4253
4253
|
switch ($1(t)) {
|
|
4254
4254
|
case "start":
|
|
4255
|
-
f[l] -=
|
|
4255
|
+
f[l] -= u * (n && d ? -1 : 1);
|
|
4256
4256
|
break;
|
|
4257
4257
|
case "end":
|
|
4258
|
-
f[l] +=
|
|
4258
|
+
f[l] += u * (n && d ? -1 : 1);
|
|
4259
4259
|
break;
|
|
4260
4260
|
}
|
|
4261
4261
|
return f;
|
|
@@ -4277,14 +4277,14 @@ const lc = async (e, t, n) => {
|
|
|
4277
4277
|
throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement` middleware", "detected. This will lead to an infinite loop. Ensure only one of", "either has been passed to the `middleware` array."].join(" "));
|
|
4278
4278
|
(!e || !t) && console.error(["Floating UI: The reference and/or floating element was not defined", "when `computePosition()` was called. Ensure that both elements have", "been created and can be measured."].join(" "));
|
|
4279
4279
|
}
|
|
4280
|
-
let
|
|
4280
|
+
let u = await a.getElementRects({
|
|
4281
4281
|
reference: e,
|
|
4282
4282
|
floating: t,
|
|
4283
4283
|
strategy: r
|
|
4284
4284
|
}), {
|
|
4285
|
-
x:
|
|
4285
|
+
x: c,
|
|
4286
4286
|
y: d
|
|
4287
|
-
} = wo(
|
|
4287
|
+
} = wo(u, i, s), f = i, g = {}, p = 0;
|
|
4288
4288
|
for (let C = 0; C < l.length; C++) {
|
|
4289
4289
|
const {
|
|
4290
4290
|
name: E,
|
|
@@ -4295,39 +4295,39 @@ const lc = async (e, t, n) => {
|
|
|
4295
4295
|
data: I,
|
|
4296
4296
|
reset: m
|
|
4297
4297
|
} = await v({
|
|
4298
|
-
x:
|
|
4298
|
+
x: c,
|
|
4299
4299
|
y: d,
|
|
4300
4300
|
initialPlacement: i,
|
|
4301
4301
|
placement: f,
|
|
4302
4302
|
strategy: r,
|
|
4303
4303
|
middlewareData: g,
|
|
4304
|
-
rects:
|
|
4304
|
+
rects: u,
|
|
4305
4305
|
platform: a,
|
|
4306
4306
|
elements: {
|
|
4307
4307
|
reference: e,
|
|
4308
4308
|
floating: t
|
|
4309
4309
|
}
|
|
4310
4310
|
});
|
|
4311
|
-
if (
|
|
4311
|
+
if (c = w != null ? w : c, d = V != null ? V : d, g = {
|
|
4312
4312
|
...g,
|
|
4313
4313
|
[E]: {
|
|
4314
4314
|
...g[E],
|
|
4315
4315
|
...I
|
|
4316
4316
|
}
|
|
4317
4317
|
}, process.env.NODE_ENV !== "production" && p > 50 && console.warn(["Floating UI: The middleware lifecycle appears to be running in an", "infinite loop. This is usually caused by a `reset` continually", "being returned without a break condition."].join(" ")), m && p <= 50) {
|
|
4318
|
-
p++, typeof m == "object" && (m.placement && (f = m.placement), m.rects && (
|
|
4318
|
+
p++, typeof m == "object" && (m.placement && (f = m.placement), m.rects && (u = m.rects === !0 ? await a.getElementRects({
|
|
4319
4319
|
reference: e,
|
|
4320
4320
|
floating: t,
|
|
4321
4321
|
strategy: r
|
|
4322
4322
|
}) : m.rects), {
|
|
4323
|
-
x:
|
|
4323
|
+
x: c,
|
|
4324
4324
|
y: d
|
|
4325
|
-
} = wo(
|
|
4325
|
+
} = wo(u, f, s)), C = -1;
|
|
4326
4326
|
continue;
|
|
4327
4327
|
}
|
|
4328
4328
|
}
|
|
4329
4329
|
return {
|
|
4330
|
-
x:
|
|
4330
|
+
x: c,
|
|
4331
4331
|
y: d,
|
|
4332
4332
|
placement: f,
|
|
4333
4333
|
strategy: r,
|
|
@@ -4371,15 +4371,15 @@ async function E2(e, t) {
|
|
|
4371
4371
|
elements: l,
|
|
4372
4372
|
strategy: s
|
|
4373
4373
|
} = e, {
|
|
4374
|
-
boundary:
|
|
4375
|
-
rootBoundary:
|
|
4374
|
+
boundary: u = "clippingAncestors",
|
|
4375
|
+
rootBoundary: c = "viewport",
|
|
4376
4376
|
elementContext: d = "floating",
|
|
4377
4377
|
altBoundary: f = !1,
|
|
4378
4378
|
padding: g = 0
|
|
4379
4379
|
} = t, p = m2(g), E = l[f ? d === "floating" ? "reference" : "floating" : d], v = S1(await o.getClippingRect({
|
|
4380
4380
|
element: (n = await (o.isElement == null ? void 0 : o.isElement(E))) == null || n ? E : E.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(l.floating)),
|
|
4381
|
-
boundary:
|
|
4382
|
-
rootBoundary:
|
|
4381
|
+
boundary: u,
|
|
4382
|
+
rootBoundary: c,
|
|
4383
4383
|
strategy: s
|
|
4384
4384
|
})), w = S1(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4385
4385
|
rect: d === "floating" ? {
|
|
@@ -4417,15 +4417,15 @@ const xo = (e) => ({
|
|
|
4417
4417
|
} = t;
|
|
4418
4418
|
if (n == null)
|
|
4419
4419
|
return process.env.NODE_ENV !== "production" && console.warn("Floating UI: No `element` was passed to the `arrow` middleware."), {};
|
|
4420
|
-
const
|
|
4420
|
+
const u = m2(i), c = {
|
|
4421
4421
|
x: r,
|
|
4422
4422
|
y: o
|
|
4423
|
-
}, d = r1(a), f = $1(a), g = Hi(d), p = await s.getDimensions(n), C = d === "y" ? "top" : "left", E = d === "y" ? "bottom" : "right", v = l.reference[g] + l.reference[d] -
|
|
4423
|
+
}, d = r1(a), f = $1(a), g = Hi(d), p = await s.getDimensions(n), C = d === "y" ? "top" : "left", E = d === "y" ? "bottom" : "right", v = l.reference[g] + l.reference[d] - c[d] - l.floating[g], w = c[d] - l.reference[d], V = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(n));
|
|
4424
4424
|
let I = V ? d === "y" ? V.clientHeight || 0 : V.clientWidth || 0 : 0;
|
|
4425
4425
|
I === 0 && (I = l.floating[g]);
|
|
4426
|
-
const m = v / 2 - w / 2, b =
|
|
4426
|
+
const m = v / 2 - w / 2, b = u[C], h = I - p[g] - u[E], x = I / 2 - p[g] / 2 + m, Q = oi(b, x, h), Z = (f === "start" ? u[C] : u[E]) > 0 && x !== Q && l.reference[g] <= l.floating[g] ? x < b ? b - x : h - x : 0;
|
|
4427
4427
|
return {
|
|
4428
|
-
[d]:
|
|
4428
|
+
[d]: c[d] - Z,
|
|
4429
4429
|
data: {
|
|
4430
4430
|
[d]: Q,
|
|
4431
4431
|
centerOffset: x - Q
|
|
@@ -4475,15 +4475,15 @@ const Cc = function(e) {
|
|
|
4475
4475
|
platform: l,
|
|
4476
4476
|
elements: s
|
|
4477
4477
|
} = t, {
|
|
4478
|
-
mainAxis:
|
|
4479
|
-
crossAxis:
|
|
4478
|
+
mainAxis: u = !0,
|
|
4479
|
+
crossAxis: c = !0,
|
|
4480
4480
|
fallbackPlacements: d,
|
|
4481
4481
|
fallbackStrategy: f = "bestFit",
|
|
4482
4482
|
flipAlignment: g = !0,
|
|
4483
4483
|
...p
|
|
4484
4484
|
} = e, C = n1(i), v = d || (C === a || !g ? [Q1(a)] : gc(a)), w = [a, ...v], V = await E2(t, p), I = [];
|
|
4485
4485
|
let m = ((n = r.flip) == null ? void 0 : n.overflows) || [];
|
|
4486
|
-
if (
|
|
4486
|
+
if (u && I.push(V[C]), c) {
|
|
4487
4487
|
const {
|
|
4488
4488
|
main: Q,
|
|
4489
4489
|
cross: N
|
|
@@ -4534,7 +4534,7 @@ async function pc(e, t) {
|
|
|
4534
4534
|
placement: n,
|
|
4535
4535
|
platform: i,
|
|
4536
4536
|
elements: r
|
|
4537
|
-
} = e, o = await (i.isRTL == null ? void 0 : i.isRTL(r.floating)), a = n1(n), l = $1(n), s = r1(n) === "x",
|
|
4537
|
+
} = e, o = await (i.isRTL == null ? void 0 : i.isRTL(r.floating)), a = n1(n), l = $1(n), s = r1(n) === "x", u = ["left", "top"].includes(a) ? -1 : 1, c = o && s ? -1 : 1, d = typeof t == "function" ? t(e) : t;
|
|
4538
4538
|
let {
|
|
4539
4539
|
mainAxis: f,
|
|
4540
4540
|
crossAxis: g,
|
|
@@ -4550,11 +4550,11 @@ async function pc(e, t) {
|
|
|
4550
4550
|
...d
|
|
4551
4551
|
};
|
|
4552
4552
|
return l && typeof p == "number" && (g = l === "end" ? p * -1 : p), s ? {
|
|
4553
|
-
x: g *
|
|
4554
|
-
y: f *
|
|
4553
|
+
x: g * c,
|
|
4554
|
+
y: f * u
|
|
4555
4555
|
} : {
|
|
4556
|
-
x: f *
|
|
4557
|
-
y: g *
|
|
4556
|
+
x: f * u,
|
|
4557
|
+
y: g * c
|
|
4558
4558
|
};
|
|
4559
4559
|
}
|
|
4560
4560
|
const mc = function(e) {
|
|
@@ -4602,17 +4602,17 @@ const vc = function(e) {
|
|
|
4602
4602
|
}
|
|
4603
4603
|
},
|
|
4604
4604
|
...s
|
|
4605
|
-
} = e,
|
|
4605
|
+
} = e, u = {
|
|
4606
4606
|
x: n,
|
|
4607
4607
|
y: i
|
|
4608
|
-
},
|
|
4609
|
-
let g =
|
|
4608
|
+
}, c = await E2(t, s), d = r1(n1(r)), f = Ec(d);
|
|
4609
|
+
let g = u[d], p = u[f];
|
|
4610
4610
|
if (o) {
|
|
4611
|
-
const E = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", w = g +
|
|
4611
|
+
const E = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", w = g + c[E], V = g - c[v];
|
|
4612
4612
|
g = oi(w, g, V);
|
|
4613
4613
|
}
|
|
4614
4614
|
if (a) {
|
|
4615
|
-
const E = f === "y" ? "top" : "left", v = f === "y" ? "bottom" : "right", w = p +
|
|
4615
|
+
const E = f === "y" ? "top" : "left", v = f === "y" ? "bottom" : "right", w = p + c[E], V = p - c[v];
|
|
4616
4616
|
p = oi(w, p, V);
|
|
4617
4617
|
}
|
|
4618
4618
|
const C = l.fn({
|
|
@@ -4699,9 +4699,9 @@ function Xt(e, t, n) {
|
|
|
4699
4699
|
var i, r, o, a;
|
|
4700
4700
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
4701
4701
|
const l = e.getBoundingClientRect();
|
|
4702
|
-
let s = 1,
|
|
4703
|
-
t && jt(e) && (s = e.offsetWidth > 0 && V1(l.width) / e.offsetWidth || 1,
|
|
4704
|
-
const
|
|
4702
|
+
let s = 1, u = 1;
|
|
4703
|
+
t && jt(e) && (s = e.offsetWidth > 0 && V1(l.width) / e.offsetWidth || 1, u = e.offsetHeight > 0 && V1(l.height) / e.offsetHeight || 1);
|
|
4704
|
+
const c = Tt(e) ? zt(e) : window, d = !h2() && n, f = (l.left + (d && (i = (r = c.visualViewport) == null ? void 0 : r.offsetLeft) != null ? i : 0)) / s, g = (l.top + (d && (o = (a = c.visualViewport) == null ? void 0 : a.offsetTop) != null ? o : 0)) / u, p = l.width / s, C = l.height / u;
|
|
4705
4705
|
return {
|
|
4706
4706
|
width: p,
|
|
4707
4707
|
height: C,
|
|
@@ -4828,8 +4828,8 @@ function xc(e, t) {
|
|
|
4828
4828
|
let o = i.clientWidth, a = i.clientHeight, l = 0, s = 0;
|
|
4829
4829
|
if (r) {
|
|
4830
4830
|
o = r.width, a = r.height;
|
|
4831
|
-
const
|
|
4832
|
-
(
|
|
4831
|
+
const u = h2();
|
|
4832
|
+
(u || !u && t === "fixed") && (l = r.offsetLeft, s = r.offsetTop);
|
|
4833
4833
|
}
|
|
4834
4834
|
return {
|
|
4835
4835
|
width: o,
|
|
@@ -4893,9 +4893,9 @@ function Pc(e) {
|
|
|
4893
4893
|
rootBoundary: i,
|
|
4894
4894
|
strategy: r
|
|
4895
4895
|
} = e;
|
|
4896
|
-
const a = [...n === "clippingAncestors" ? Vc(t) : [].concat(n), i], l = a[0], s = a.reduce((
|
|
4897
|
-
const d = Fo(t,
|
|
4898
|
-
return
|
|
4896
|
+
const a = [...n === "clippingAncestors" ? Vc(t) : [].concat(n), i], l = a[0], s = a.reduce((u, c) => {
|
|
4897
|
+
const d = Fo(t, c, r);
|
|
4898
|
+
return u.top = Zn(d.top, u.top), u.right = Vo(d.right, u.right), u.bottom = Vo(d.bottom, u.bottom), u.left = Zn(d.left, u.left), u;
|
|
4899
4899
|
}, Fo(t, l, r));
|
|
4900
4900
|
return {
|
|
4901
4901
|
width: s.right - s.left,
|
|
@@ -4937,18 +4937,18 @@ function y2(e, t, n, i) {
|
|
|
4937
4937
|
ancestorResize: o = !0,
|
|
4938
4938
|
elementResize: a = !0,
|
|
4939
4939
|
animationFrame: l = !1
|
|
4940
|
-
} = i, s = r && !l,
|
|
4941
|
-
|
|
4940
|
+
} = i, s = r && !l, u = s || o ? [...Tt(e) ? $t(e) : e.contextElement ? $t(e.contextElement) : [], ...$t(t)] : [];
|
|
4941
|
+
u.forEach((p) => {
|
|
4942
4942
|
s && p.addEventListener("scroll", n, {
|
|
4943
4943
|
passive: !0
|
|
4944
4944
|
}), o && p.addEventListener("resize", n);
|
|
4945
4945
|
});
|
|
4946
|
-
let
|
|
4946
|
+
let c = null;
|
|
4947
4947
|
if (a) {
|
|
4948
4948
|
let p = !0;
|
|
4949
|
-
|
|
4949
|
+
c = new ResizeObserver(() => {
|
|
4950
4950
|
p || n(), p = !1;
|
|
4951
|
-
}), Tt(e) && !l &&
|
|
4951
|
+
}), Tt(e) && !l && c.observe(e), !Tt(e) && e.contextElement && !l && c.observe(e.contextElement), c.observe(t);
|
|
4952
4952
|
}
|
|
4953
4953
|
let d, f = l ? Xt(e) : null;
|
|
4954
4954
|
l && g();
|
|
@@ -4958,9 +4958,9 @@ function y2(e, t, n, i) {
|
|
|
4958
4958
|
}
|
|
4959
4959
|
return n(), () => {
|
|
4960
4960
|
var p;
|
|
4961
|
-
|
|
4961
|
+
u.forEach((C) => {
|
|
4962
4962
|
s && C.removeEventListener("scroll", n), o && C.removeEventListener("resize", n);
|
|
4963
|
-
}), (p =
|
|
4963
|
+
}), (p = c) == null || p.disconnect(), c = null, l && cancelAnimationFrame(d);
|
|
4964
4964
|
};
|
|
4965
4965
|
}
|
|
4966
4966
|
const Fc = (e, t, n) => lc(e, t, {
|
|
@@ -5020,8 +5020,8 @@ function Nc(e) {
|
|
|
5020
5020
|
middlewareData: {}
|
|
5021
5021
|
}), [l, s] = B.useState(t);
|
|
5022
5022
|
P1(l, t) || s(t);
|
|
5023
|
-
const
|
|
5024
|
-
!
|
|
5023
|
+
const u = B.useRef(null), c = B.useRef(null), d = B.useRef(null), f = B.useRef(o), g = Oc(r), p = B.useCallback(() => {
|
|
5024
|
+
!u.current || !c.current || Fc(u.current, c.current, {
|
|
5025
5025
|
middleware: l,
|
|
5026
5026
|
placement: n,
|
|
5027
5027
|
strategy: i
|
|
@@ -5039,19 +5039,19 @@ function Nc(e) {
|
|
|
5039
5039
|
C.current = !1;
|
|
5040
5040
|
}), []);
|
|
5041
5041
|
const E = B.useCallback(() => {
|
|
5042
|
-
if (typeof d.current == "function" && (d.current(), d.current = null),
|
|
5042
|
+
if (typeof d.current == "function" && (d.current(), d.current = null), u.current && c.current)
|
|
5043
5043
|
if (g.current) {
|
|
5044
|
-
const I = g.current(
|
|
5044
|
+
const I = g.current(u.current, c.current, p);
|
|
5045
5045
|
d.current = I;
|
|
5046
5046
|
} else
|
|
5047
5047
|
p();
|
|
5048
5048
|
}, [p, g]), v = B.useCallback((I) => {
|
|
5049
|
-
c.current = I, E();
|
|
5050
|
-
}, [E]), w = B.useCallback((I) => {
|
|
5051
5049
|
u.current = I, E();
|
|
5050
|
+
}, [E]), w = B.useCallback((I) => {
|
|
5051
|
+
c.current = I, E();
|
|
5052
5052
|
}, [E]), V = B.useMemo(() => ({
|
|
5053
|
-
reference:
|
|
5054
|
-
floating:
|
|
5053
|
+
reference: u,
|
|
5054
|
+
floating: c
|
|
5055
5055
|
}), []);
|
|
5056
5056
|
return B.useMemo(() => ({
|
|
5057
5057
|
...o,
|
|
@@ -5151,7 +5151,7 @@ function Xc(e) {
|
|
|
5151
5151
|
strategy: a,
|
|
5152
5152
|
nodeId: l
|
|
5153
5153
|
} = e === void 0 ? {} : e;
|
|
5154
|
-
const [s,
|
|
5154
|
+
const [s, u] = B.useState(null), c = Xi(), d = B.useRef(null), f = B.useRef({}), g = B.useState(() => Lc())[0], p = Nc({
|
|
5155
5155
|
placement: r,
|
|
5156
5156
|
middleware: o,
|
|
5157
5157
|
strategy: a,
|
|
@@ -5172,13 +5172,13 @@ function Xc(e) {
|
|
|
5172
5172
|
}
|
|
5173
5173
|
}), [p, l, g, t, C, E, s]);
|
|
5174
5174
|
gn(() => {
|
|
5175
|
-
const I =
|
|
5175
|
+
const I = c == null ? void 0 : c.nodesRef.current.find((m) => m.id === l);
|
|
5176
5176
|
I && (I.context = v);
|
|
5177
5177
|
});
|
|
5178
5178
|
const {
|
|
5179
5179
|
reference: w
|
|
5180
5180
|
} = p, V = B.useCallback((I) => {
|
|
5181
|
-
(cn(I) || I === null) && (v.refs.domReference.current = I,
|
|
5181
|
+
(cn(I) || I === null) && (v.refs.domReference.current = I, u(I)), w(I);
|
|
5182
5182
|
}, [w, v.refs]);
|
|
5183
5183
|
return B.useMemo(() => ({
|
|
5184
5184
|
...p,
|
|
@@ -5198,11 +5198,11 @@ function Ir(e, t, n) {
|
|
|
5198
5198
|
let [l, s] = a;
|
|
5199
5199
|
if (l.indexOf("on") === 0) {
|
|
5200
5200
|
if (i.has(l) || i.set(l, []), typeof s == "function") {
|
|
5201
|
-
var
|
|
5202
|
-
(
|
|
5203
|
-
for (var
|
|
5201
|
+
var u;
|
|
5202
|
+
(u = i.get(l)) == null || u.push(s), r[l] = function() {
|
|
5203
|
+
for (var c, d = arguments.length, f = new Array(d), g = 0; g < d; g++)
|
|
5204
5204
|
f[g] = arguments[g];
|
|
5205
|
-
(
|
|
5205
|
+
(c = i.get(l)) == null || c.forEach((p) => p(...f));
|
|
5206
5206
|
};
|
|
5207
5207
|
}
|
|
5208
5208
|
} else
|
|
@@ -5239,8 +5239,8 @@ function hr(e, t) {
|
|
|
5239
5239
|
r = (o = e.filter((a) => {
|
|
5240
5240
|
var l;
|
|
5241
5241
|
return (l = r) == null ? void 0 : l.some((s) => {
|
|
5242
|
-
var
|
|
5243
|
-
return a.parentId === s.id && ((
|
|
5242
|
+
var u;
|
|
5243
|
+
return a.parentId === s.id && ((u = a.context) == null ? void 0 : u.open);
|
|
5244
5244
|
});
|
|
5245
5245
|
})) != null ? o : [], i = i.concat(r);
|
|
5246
5246
|
}
|
|
@@ -5304,16 +5304,16 @@ const Kc = function(e, t) {
|
|
|
5304
5304
|
} = t === void 0 ? {} : t;
|
|
5305
5305
|
const {
|
|
5306
5306
|
open: s,
|
|
5307
|
-
onOpenChange:
|
|
5308
|
-
dataRef:
|
|
5307
|
+
onOpenChange: u,
|
|
5308
|
+
dataRef: c,
|
|
5309
5309
|
events: d,
|
|
5310
5310
|
refs: f,
|
|
5311
5311
|
_: g
|
|
5312
5312
|
} = e, p = Xi(), C = R2(), E = ko(r), v = ko(i), w = Uc(s), V = B.useRef(), I = B.useRef(), m = B.useRef(), b = B.useRef(), h = B.useRef(!0), x = B.useRef(!1), Q = B.useCallback(() => {
|
|
5313
5313
|
var j;
|
|
5314
|
-
const D = (j =
|
|
5314
|
+
const D = (j = c.current.openEvent) == null ? void 0 : j.type;
|
|
5315
5315
|
return (D == null ? void 0 : D.includes("mouse")) && D !== "mousedown";
|
|
5316
|
-
}, [
|
|
5316
|
+
}, [c]);
|
|
5317
5317
|
B.useEffect(() => {
|
|
5318
5318
|
if (!n)
|
|
5319
5319
|
return;
|
|
@@ -5327,18 +5327,18 @@ const Kc = function(e, t) {
|
|
|
5327
5327
|
if (!n || !E.current)
|
|
5328
5328
|
return;
|
|
5329
5329
|
function j() {
|
|
5330
|
-
Q() &&
|
|
5330
|
+
Q() && u(!1);
|
|
5331
5331
|
}
|
|
5332
5332
|
const D = Kt(f.floating.current).documentElement;
|
|
5333
5333
|
return D.addEventListener("mouseleave", j), () => {
|
|
5334
5334
|
D.removeEventListener("mouseleave", j);
|
|
5335
5335
|
};
|
|
5336
|
-
}, [f,
|
|
5336
|
+
}, [f, u, n, E, c, Q]);
|
|
5337
5337
|
const N = B.useCallback(function(j) {
|
|
5338
5338
|
j === void 0 && (j = !0);
|
|
5339
5339
|
const D = br(v.current, "close", V.current);
|
|
5340
|
-
D && !m.current ? (clearTimeout(I.current), I.current = setTimeout(() =>
|
|
5341
|
-
}, [v,
|
|
5340
|
+
D && !m.current ? (clearTimeout(I.current), I.current = setTimeout(() => u(!1), D)) : j && (clearTimeout(I.current), u(!1));
|
|
5341
|
+
}, [v, u]), H = B.useCallback(() => {
|
|
5342
5342
|
m.current && (Kt(f.floating.current).removeEventListener("pointermove", m.current), m.current = void 0);
|
|
5343
5343
|
}, [f]), Z = B.useCallback(() => {
|
|
5344
5344
|
Kt(f.floating.current).body.style.pointerEvents = "", x.current = !1;
|
|
@@ -5347,16 +5347,16 @@ const Kc = function(e, t) {
|
|
|
5347
5347
|
if (!n)
|
|
5348
5348
|
return;
|
|
5349
5349
|
function j() {
|
|
5350
|
-
return
|
|
5350
|
+
return c.current.openEvent ? ["click", "mousedown"].includes(c.current.openEvent.type) : !1;
|
|
5351
5351
|
}
|
|
5352
5352
|
function D(re) {
|
|
5353
5353
|
if (clearTimeout(I.current), h.current = !1, o && V.current !== "mouse" || a > 0 && br(v.current, "open") === 0)
|
|
5354
5354
|
return;
|
|
5355
|
-
|
|
5355
|
+
c.current.openEvent = re;
|
|
5356
5356
|
const F = br(v.current, "open", V.current);
|
|
5357
5357
|
F ? I.current = setTimeout(() => {
|
|
5358
|
-
|
|
5359
|
-
}, F) :
|
|
5358
|
+
u(!0);
|
|
5359
|
+
}, F) : u(!0);
|
|
5360
5360
|
}
|
|
5361
5361
|
function G(re) {
|
|
5362
5362
|
if (j())
|
|
@@ -5405,13 +5405,13 @@ const Kc = function(e, t) {
|
|
|
5405
5405
|
N,
|
|
5406
5406
|
H,
|
|
5407
5407
|
Z,
|
|
5408
|
-
|
|
5408
|
+
u,
|
|
5409
5409
|
s,
|
|
5410
5410
|
p,
|
|
5411
5411
|
f,
|
|
5412
5412
|
v,
|
|
5413
5413
|
E,
|
|
5414
|
-
|
|
5414
|
+
c
|
|
5415
5415
|
]), gn(() => {
|
|
5416
5416
|
if (!!n && s && E.current && E.current.__options.blockPointerEvents && Q()) {
|
|
5417
5417
|
Kt(f.floating.current).body.style.pointerEvents = "none", x.current = !0;
|
|
@@ -5424,7 +5424,7 @@ const Kc = function(e, t) {
|
|
|
5424
5424
|
};
|
|
5425
5425
|
}
|
|
5426
5426
|
}
|
|
5427
|
-
}, [n, s, C, f, p, E,
|
|
5427
|
+
}, [n, s, C, f, p, E, c, Q]), gn(() => {
|
|
5428
5428
|
w && !s && (V.current = void 0, H(), Z());
|
|
5429
5429
|
}), B.useEffect(() => () => {
|
|
5430
5430
|
H(), clearTimeout(I.current), clearTimeout(b.current), x.current && Z();
|
|
@@ -5440,7 +5440,7 @@ const Kc = function(e, t) {
|
|
|
5440
5440
|
onPointerEnter: j,
|
|
5441
5441
|
onMouseMove() {
|
|
5442
5442
|
s || a === 0 || (clearTimeout(b.current), b.current = setTimeout(() => {
|
|
5443
|
-
h.current ||
|
|
5443
|
+
h.current || u(!0);
|
|
5444
5444
|
}, a));
|
|
5445
5445
|
}
|
|
5446
5446
|
},
|
|
@@ -5453,7 +5453,7 @@ const Kc = function(e, t) {
|
|
|
5453
5453
|
}
|
|
5454
5454
|
}
|
|
5455
5455
|
};
|
|
5456
|
-
}, [n, a, s,
|
|
5456
|
+
}, [n, a, s, u, N]);
|
|
5457
5457
|
}, qc = function(e, t) {
|
|
5458
5458
|
let {
|
|
5459
5459
|
open: n
|
|
@@ -5519,8 +5519,8 @@ const _c = {
|
|
|
5519
5519
|
} = e, {
|
|
5520
5520
|
enabled: l = !0,
|
|
5521
5521
|
escapeKey: s = !0,
|
|
5522
|
-
outsidePress:
|
|
5523
|
-
outsidePressEvent:
|
|
5522
|
+
outsidePress: u = !0,
|
|
5523
|
+
outsidePressEvent: c = "pointerdown",
|
|
5524
5524
|
referencePress: d = !1,
|
|
5525
5525
|
referencePressEvent: f = "pointerdown",
|
|
5526
5526
|
ancestorScroll: g = !1,
|
|
@@ -5563,7 +5563,7 @@ const _c = {
|
|
|
5563
5563
|
i(!1);
|
|
5564
5564
|
}
|
|
5565
5565
|
const m = Kt(r.floating.current);
|
|
5566
|
-
s && m.addEventListener("keydown", w),
|
|
5566
|
+
s && m.addEventListener("keydown", w), u && m.addEventListener(c, V);
|
|
5567
5567
|
let b = [];
|
|
5568
5568
|
return g && (cn(r.domReference.current) && (b = $t(r.domReference.current)), cn(r.floating.current) && (b = b.concat($t(r.floating.current))), !cn(r.reference.current) && r.reference.current && r.reference.current.contextElement && (b = b.concat(
|
|
5569
5569
|
$t(r.reference.current.contextElement)
|
|
@@ -5575,24 +5575,24 @@ const _c = {
|
|
|
5575
5575
|
passive: !0
|
|
5576
5576
|
});
|
|
5577
5577
|
}), () => {
|
|
5578
|
-
s && m.removeEventListener("keydown", w),
|
|
5578
|
+
s && m.removeEventListener("keydown", w), u && m.removeEventListener(c, V), b.forEach((h) => {
|
|
5579
5579
|
h.removeEventListener("scroll", I);
|
|
5580
5580
|
});
|
|
5581
5581
|
};
|
|
5582
|
-
}, [s,
|
|
5582
|
+
}, [s, u, c, o, C, a, n, i, g, l, p, r, E]), B.useEffect(() => {
|
|
5583
5583
|
v.current = !1;
|
|
5584
|
-
}, [
|
|
5584
|
+
}, [u, c]), B.useMemo(() => l ? {
|
|
5585
5585
|
reference: {
|
|
5586
5586
|
[_c[f]]: () => {
|
|
5587
5587
|
d && (o.emit("dismiss"), i(!1));
|
|
5588
5588
|
}
|
|
5589
5589
|
},
|
|
5590
5590
|
floating: {
|
|
5591
|
-
[$c[
|
|
5591
|
+
[$c[c]]: () => {
|
|
5592
5592
|
v.current = !0;
|
|
5593
5593
|
}
|
|
5594
5594
|
}
|
|
5595
|
-
} : {}, [l, o, d,
|
|
5595
|
+
} : {}, [l, o, d, c, f, i]);
|
|
5596
5596
|
}, t0 = function(e, t) {
|
|
5597
5597
|
let {
|
|
5598
5598
|
open: n,
|
|
@@ -5604,7 +5604,7 @@ const _c = {
|
|
|
5604
5604
|
enabled: l = !0,
|
|
5605
5605
|
keyboardOnly: s = !0
|
|
5606
5606
|
} = t === void 0 ? {} : t;
|
|
5607
|
-
const
|
|
5607
|
+
const u = B.useRef(""), c = B.useRef(!1), d = B.useRef();
|
|
5608
5608
|
return B.useEffect(() => {
|
|
5609
5609
|
var f;
|
|
5610
5610
|
if (!l)
|
|
@@ -5620,7 +5620,7 @@ const _c = {
|
|
|
5620
5620
|
if (!l)
|
|
5621
5621
|
return;
|
|
5622
5622
|
function f() {
|
|
5623
|
-
|
|
5623
|
+
c.current = !0;
|
|
5624
5624
|
}
|
|
5625
5625
|
return a.on("dismiss", f), () => {
|
|
5626
5626
|
a.off("dismiss", f);
|
|
@@ -5633,20 +5633,20 @@ const _c = {
|
|
|
5633
5633
|
let {
|
|
5634
5634
|
pointerType: g
|
|
5635
5635
|
} = f;
|
|
5636
|
-
|
|
5636
|
+
u.current = g, c.current = !!(g && s);
|
|
5637
5637
|
},
|
|
5638
5638
|
onPointerLeave() {
|
|
5639
|
-
|
|
5639
|
+
c.current = !1;
|
|
5640
5640
|
},
|
|
5641
5641
|
onFocus(f) {
|
|
5642
5642
|
var g, p, C;
|
|
5643
|
-
|
|
5643
|
+
c.current || f.type === "focus" && ((g = r.current.openEvent) == null ? void 0 : g.type) === "mousedown" && (p = o.domReference.current) != null && p.contains((C = r.current.openEvent) == null ? void 0 : C.target) || (r.current.openEvent = f.nativeEvent, i(!0));
|
|
5644
5644
|
},
|
|
5645
5645
|
onBlur(f) {
|
|
5646
5646
|
const g = f.relatedTarget;
|
|
5647
5647
|
d.current = setTimeout(() => {
|
|
5648
5648
|
var p, C;
|
|
5649
|
-
(p = o.floating.current) != null && p.contains(g) || (C = o.domReference.current) != null && C.contains(g) || (
|
|
5649
|
+
(p = o.floating.current) != null && p.contains(g) || (C = o.domReference.current) != null && C.contains(g) || (c.current = !1, i(!1));
|
|
5650
5650
|
});
|
|
5651
5651
|
}
|
|
5652
5652
|
}
|
|
@@ -5658,13 +5658,13 @@ const _c = {
|
|
|
5658
5658
|
children: i,
|
|
5659
5659
|
...r
|
|
5660
5660
|
} = e, o = B.useMemo(() => _1([n.floating, t]), [n.floating, t]), a = () => {
|
|
5661
|
-
const
|
|
5661
|
+
const u = {
|
|
5662
5662
|
top: "bottom",
|
|
5663
5663
|
right: "left",
|
|
5664
5664
|
bottom: "top",
|
|
5665
5665
|
left: "right"
|
|
5666
5666
|
}[n.placement.split("-")[0]], {
|
|
5667
|
-
arrow:
|
|
5667
|
+
arrow: c
|
|
5668
5668
|
} = n.middlewareData;
|
|
5669
5669
|
return /* @__PURE__ */ A("div", {
|
|
5670
5670
|
ref: n.arrowRef,
|
|
@@ -5673,9 +5673,9 @@ const _c = {
|
|
|
5673
5673
|
width: "10px",
|
|
5674
5674
|
height: "10px",
|
|
5675
5675
|
background: "white",
|
|
5676
|
-
left: (
|
|
5677
|
-
top: (
|
|
5678
|
-
[
|
|
5676
|
+
left: (c == null ? void 0 : c.x) != null ? `${c == null ? void 0 : c.x}px` : "",
|
|
5677
|
+
top: (c == null ? void 0 : c.y) != null ? `${c == null ? void 0 : c.y}px` : "",
|
|
5678
|
+
[u]: "-2px",
|
|
5679
5679
|
transform: "rotate(45deg)"
|
|
5680
5680
|
}
|
|
5681
5681
|
});
|
|
@@ -5702,13 +5702,13 @@ const _c = {
|
|
|
5702
5702
|
fullWidthContainer: o = !1,
|
|
5703
5703
|
classNameContainer: a = "",
|
|
5704
5704
|
...l
|
|
5705
|
-
} = e, s = n.ref,
|
|
5705
|
+
} = e, s = n.ref, u = B.useMemo(() => _1([i.reference, t, s]), [i.reference, t, s]);
|
|
5706
5706
|
return r && B.isValidElement(n) ? B.cloneElement(n, i.getReferenceProps({
|
|
5707
|
-
ref:
|
|
5707
|
+
ref: u,
|
|
5708
5708
|
...l,
|
|
5709
5709
|
...n.props
|
|
5710
5710
|
})) : /* @__PURE__ */ A("button", {
|
|
5711
|
-
ref:
|
|
5711
|
+
ref: u,
|
|
5712
5712
|
...i.getReferenceProps(l),
|
|
5713
5713
|
className: K(o ? "w-full text-left" : "", a),
|
|
5714
5714
|
children: n
|
|
@@ -5726,7 +5726,7 @@ function i0(e) {
|
|
|
5726
5726
|
onOpenChange: o,
|
|
5727
5727
|
whileElementsMounted: y2,
|
|
5728
5728
|
middleware: a
|
|
5729
|
-
}),
|
|
5729
|
+
}), u = s.context, c = Kc(u, { move: !1 }), d = t0(u), f = e0(u), g = qc(u, { role: "tooltip" }), p = zc([c, d, f, g]);
|
|
5730
5730
|
return se(() => ({
|
|
5731
5731
|
open: r,
|
|
5732
5732
|
setOpen: o,
|
|
@@ -5779,8 +5779,8 @@ const o0 = St((e, t) => {
|
|
|
5779
5779
|
label: a,
|
|
5780
5780
|
helpText: l,
|
|
5781
5781
|
onChange: s,
|
|
5782
|
-
checked:
|
|
5783
|
-
color:
|
|
5782
|
+
checked: u,
|
|
5783
|
+
color: c = "default"
|
|
5784
5784
|
} = e, d = ({
|
|
5785
5785
|
target: {
|
|
5786
5786
|
value: p,
|
|
@@ -5802,7 +5802,7 @@ const o0 = St((e, t) => {
|
|
|
5802
5802
|
name: i,
|
|
5803
5803
|
disabled: r,
|
|
5804
5804
|
onChange: d,
|
|
5805
|
-
checked:
|
|
5805
|
+
checked: u,
|
|
5806
5806
|
value: o,
|
|
5807
5807
|
className: K("border-2", f())
|
|
5808
5808
|
}), a && /* @__PURE__ */ _("div", {
|
|
@@ -5812,7 +5812,7 @@ const o0 = St((e, t) => {
|
|
|
5812
5812
|
variant: "body",
|
|
5813
5813
|
className: "break-words",
|
|
5814
5814
|
htmlFor: n,
|
|
5815
|
-
color: r ? "disabled" :
|
|
5815
|
+
color: r ? "disabled" : c,
|
|
5816
5816
|
children: a
|
|
5817
5817
|
}), l && /* @__PURE__ */ A(Ie, {
|
|
5818
5818
|
variant: "body",
|
|
@@ -6409,8 +6409,8 @@ const Q2 = St((e, t) => {
|
|
|
6409
6409
|
label: a,
|
|
6410
6410
|
helpText: l,
|
|
6411
6411
|
onChange: s,
|
|
6412
|
-
isError:
|
|
6413
|
-
checked:
|
|
6412
|
+
isError: u,
|
|
6413
|
+
checked: c,
|
|
6414
6414
|
color: d = "default",
|
|
6415
6415
|
size: f = "sm"
|
|
6416
6416
|
} = e;
|
|
@@ -6435,8 +6435,8 @@ const Q2 = St((e, t) => {
|
|
|
6435
6435
|
});
|
|
6436
6436
|
},
|
|
6437
6437
|
value: o,
|
|
6438
|
-
checked:
|
|
6439
|
-
className: K((() => r ? "border-border-disabled checked:text-action-primary-disabled bg-action-secondary-default disabled:bg-action-secondary-disabled checked:hover:bg-action-secondary-disabled" :
|
|
6438
|
+
checked: c,
|
|
6439
|
+
className: K((() => r ? "border-border-disabled checked:text-action-primary-disabled bg-action-secondary-default disabled:bg-action-secondary-disabled checked:hover:bg-action-secondary-disabled" : u ? "checked:bg-action-critical-default checked:text-letter-critical active:bg-action-critical-default border-border-critical-default checked:hover:bg-action-critical-default focus:ring-none ring-offset-0 active:ring-transparent focus:ring-transparent focus:ring-offset-0 focus:ring-critical-default" : "border-border-default hover:border-border-hovered focus:ring-focused-default ring-offset-1 active:ring-1 focus:ring-1 focus:ring-offset-1 cursor-pointer")(), "rounded-[5px] bg-white border-[1.5px]", f === "sm" && "h-[18px] w-[18px]", f === "md" && "h-[20px] w-[20px]")
|
|
6440
6440
|
}), a && /* @__PURE__ */ _("div", {
|
|
6441
6441
|
className: "flex flex-col items-start justify-center",
|
|
6442
6442
|
children: [/* @__PURE__ */ A(Ie, {
|
|
@@ -6567,12 +6567,12 @@ function on(e, t) {
|
|
|
6567
6567
|
}
|
|
6568
6568
|
var E0 = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
6569
6569
|
function zi(e) {
|
|
6570
|
-
var t = e.defaultInputValue, n = t === void 0 ? "" : t, i = e.defaultMenuIsOpen, r = i === void 0 ? !1 : i, o = e.defaultValue, a = o === void 0 ? null : o, l = e.inputValue, s = e.menuIsOpen,
|
|
6571
|
-
typeof
|
|
6572
|
-
}, [
|
|
6570
|
+
var t = e.defaultInputValue, n = t === void 0 ? "" : t, i = e.defaultMenuIsOpen, r = i === void 0 ? !1 : i, o = e.defaultValue, a = o === void 0 ? null : o, l = e.inputValue, s = e.menuIsOpen, u = e.onChange, c = e.onInputChange, d = e.onMenuClose, f = e.onMenuOpen, g = e.value, p = on(e, E0), C = ae(l !== void 0 ? l : n), E = rt(C, 2), v = E[0], w = E[1], V = ae(s !== void 0 ? s : r), I = rt(V, 2), m = I[0], b = I[1], h = ae(g !== void 0 ? g : a), x = rt(h, 2), Q = x[0], N = x[1], H = Je(function(z, re) {
|
|
6571
|
+
typeof u == "function" && u(z, re), N(z);
|
|
6572
|
+
}, [u]), Z = Je(function(z, re) {
|
|
6573
6573
|
var F;
|
|
6574
|
-
typeof
|
|
6575
|
-
}, [
|
|
6574
|
+
typeof c == "function" && (F = c(z, re)), w(F !== void 0 ? F : z);
|
|
6575
|
+
}, [c]), j = Je(function() {
|
|
6576
6576
|
typeof f == "function" && f(), b(!0);
|
|
6577
6577
|
}, [f]), D = Je(function() {
|
|
6578
6578
|
typeof d == "function" && d(), b(!1);
|
|
@@ -6881,7 +6881,7 @@ function X0(e) {
|
|
|
6881
6881
|
return D2(B1("", null, null, null, [""], e = N2(e), 0, [0], e));
|
|
6882
6882
|
}
|
|
6883
6883
|
function B1(e, t, n, i, r, o, a, l, s) {
|
|
6884
|
-
for (var
|
|
6884
|
+
for (var u = 0, c = 0, d = a, f = 0, g = 0, p = 0, C = 1, E = 1, v = 1, w = 0, V = "", I = r, m = o, b = i, h = V; E; )
|
|
6885
6885
|
switch (p = w, w = Ct()) {
|
|
6886
6886
|
case 40:
|
|
6887
6887
|
if (p != 108 && it(h, d - 1) == 58) {
|
|
@@ -6913,7 +6913,7 @@ function B1(e, t, n, i, r, o, a, l, s) {
|
|
|
6913
6913
|
}
|
|
6914
6914
|
break;
|
|
6915
6915
|
case 123 * C:
|
|
6916
|
-
l[
|
|
6916
|
+
l[u++] = Mt(h) * v;
|
|
6917
6917
|
case 125 * C:
|
|
6918
6918
|
case 59:
|
|
6919
6919
|
case 0:
|
|
@@ -6921,14 +6921,14 @@ function B1(e, t, n, i, r, o, a, l, s) {
|
|
|
6921
6921
|
case 0:
|
|
6922
6922
|
case 125:
|
|
6923
6923
|
E = 0;
|
|
6924
|
-
case 59 +
|
|
6924
|
+
case 59 + c:
|
|
6925
6925
|
g > 0 && Mt(h) - d && g1(g > 32 ? Zo(h + ";", i, n, d - 1) : Zo(Oe(h, " ", "") + ";", i, n, d - 2), s);
|
|
6926
6926
|
break;
|
|
6927
6927
|
case 59:
|
|
6928
6928
|
h += ";";
|
|
6929
6929
|
default:
|
|
6930
|
-
if (g1(b = Ho(h, t, n,
|
|
6931
|
-
if (
|
|
6930
|
+
if (g1(b = Ho(h, t, n, u, c, r, l, V, I = [], m = [], d), o), w === 123)
|
|
6931
|
+
if (c === 0)
|
|
6932
6932
|
B1(h, t, b, b, I, o, d, l, m);
|
|
6933
6933
|
else
|
|
6934
6934
|
switch (f === 99 && it(h, 3) === 110 ? 100 : f) {
|
|
@@ -6941,7 +6941,7 @@ function B1(e, t, n, i, r, o, a, l, s) {
|
|
|
6941
6941
|
B1(h, b, b, b, [""], m, 0, l, m);
|
|
6942
6942
|
}
|
|
6943
6943
|
}
|
|
6944
|
-
|
|
6944
|
+
u = c = g = 0, C = v = 1, V = h = "", d = a;
|
|
6945
6945
|
break;
|
|
6946
6946
|
case 58:
|
|
6947
6947
|
d = 1 + Mt(h), g = p;
|
|
@@ -6954,13 +6954,13 @@ function B1(e, t, n, i, r, o, a, l, s) {
|
|
|
6954
6954
|
}
|
|
6955
6955
|
switch (h += nr(w), w * C) {
|
|
6956
6956
|
case 38:
|
|
6957
|
-
v =
|
|
6957
|
+
v = c > 0 ? 1 : (h += "\f", -1);
|
|
6958
6958
|
break;
|
|
6959
6959
|
case 44:
|
|
6960
|
-
l[
|
|
6960
|
+
l[u++] = (Mt(h) - 1) * v, v = 1;
|
|
6961
6961
|
break;
|
|
6962
6962
|
case 64:
|
|
6963
|
-
Ft() === 45 && (h += b1(Ct())), f = Ft(),
|
|
6963
|
+
Ft() === 45 && (h += b1(Ct())), f = Ft(), c = d = Mt(V = h += j0(h1())), w++;
|
|
6964
6964
|
break;
|
|
6965
6965
|
case 45:
|
|
6966
6966
|
p === 45 && Mt(h) == 2 && (C = 0);
|
|
@@ -6968,11 +6968,11 @@ function B1(e, t, n, i, r, o, a, l, s) {
|
|
|
6968
6968
|
}
|
|
6969
6969
|
return o;
|
|
6970
6970
|
}
|
|
6971
|
-
function Ho(e, t, n, i, r, o, a, l, s,
|
|
6971
|
+
function Ho(e, t, n, i, r, o, a, l, s, u, c) {
|
|
6972
6972
|
for (var d = r - 1, f = r === 0 ? o : [""], g = Ui(f), p = 0, C = 0, E = 0; p < i; ++p)
|
|
6973
6973
|
for (var v = 0, w = Wn(e, d + 1, d = F0(C = a[p])), V = e; v < g; ++v)
|
|
6974
6974
|
(V = F2(C > 0 ? f[v] + " " + w : Oe(w, /&\f/g, f[v]))) && (s[E++] = V);
|
|
6975
|
-
return ir(e, t, n, r === 0 ? Yi : l, s,
|
|
6975
|
+
return ir(e, t, n, r === 0 ? Yi : l, s, u, c);
|
|
6976
6976
|
}
|
|
6977
6977
|
function z0(e, t, n) {
|
|
6978
6978
|
return ir(e, t, n, Wi, nr(k0()), Wn(e, 2, -2), 0);
|
|
@@ -7051,9 +7051,9 @@ var K0 = function(t, n, i) {
|
|
|
7051
7051
|
return;
|
|
7052
7052
|
if (!(t.props.length === 1 && n.charCodeAt(0) !== 58 && !jo.get(i)) && !r) {
|
|
7053
7053
|
jo.set(t, !0);
|
|
7054
|
-
for (var o = [], a = _0(n, o), l = i.props, s = 0,
|
|
7055
|
-
for (var
|
|
7056
|
-
t.props[
|
|
7054
|
+
for (var o = [], a = _0(n, o), l = i.props, s = 0, u = 0; s < a.length; s++)
|
|
7055
|
+
for (var c = 0; c < l.length; c++, u++)
|
|
7056
|
+
t.props[u] = o[s] ? a[s].replace(/&\f/g, l[c]) : l[c] + " " + a[s];
|
|
7057
7057
|
}
|
|
7058
7058
|
}
|
|
7059
7059
|
}, e3 = function(t) {
|
|
@@ -7069,17 +7069,17 @@ var K0 = function(t, n, i) {
|
|
|
7069
7069
|
var o = n.value.match(/(:first|:nth|:nth-last)-child/g);
|
|
7070
7070
|
if (o) {
|
|
7071
7071
|
for (var a = n.parent === r[0], l = a ? r[0].children : r, s = l.length - 1; s >= 0; s--) {
|
|
7072
|
-
var
|
|
7073
|
-
if (
|
|
7072
|
+
var u = l[s];
|
|
7073
|
+
if (u.line < n.line)
|
|
7074
7074
|
break;
|
|
7075
|
-
if (
|
|
7076
|
-
if (n3(
|
|
7075
|
+
if (u.column < n.column) {
|
|
7076
|
+
if (n3(u))
|
|
7077
7077
|
return;
|
|
7078
7078
|
break;
|
|
7079
7079
|
}
|
|
7080
7080
|
}
|
|
7081
|
-
o.forEach(function(
|
|
7082
|
-
console.error('The pseudo class "' +
|
|
7081
|
+
o.forEach(function(c) {
|
|
7082
|
+
console.error('The pseudo class "' + c + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + c.split("-child")[0] + '-of-type".');
|
|
7083
7083
|
});
|
|
7084
7084
|
}
|
|
7085
7085
|
}
|
|
@@ -7265,22 +7265,22 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
7265
7265
|
l.push(C);
|
|
7266
7266
|
}
|
|
7267
7267
|
);
|
|
7268
|
-
var s,
|
|
7269
|
-
process.env.NODE_ENV !== "production" &&
|
|
7268
|
+
var s, u = [$0, e3];
|
|
7269
|
+
process.env.NODE_ENV !== "production" && u.push(r3({
|
|
7270
7270
|
get compat() {
|
|
7271
7271
|
return p.compat;
|
|
7272
7272
|
}
|
|
7273
7273
|
}), o3);
|
|
7274
7274
|
{
|
|
7275
|
-
var
|
|
7276
|
-
C.root || (C.return ?
|
|
7275
|
+
var c, d = [W0, process.env.NODE_ENV !== "production" ? function(C) {
|
|
7276
|
+
C.root || (C.return ? c.insert(C.return) : C.value && C.type !== Wi && c.insert(C.value + "{}"));
|
|
7277
7277
|
} : J0(function(C) {
|
|
7278
|
-
|
|
7279
|
-
})], f = Y0(
|
|
7278
|
+
c.insert(C);
|
|
7279
|
+
})], f = Y0(u.concat(r, d)), g = function(E) {
|
|
7280
7280
|
return hn(X0(E), f);
|
|
7281
7281
|
};
|
|
7282
7282
|
s = function(E, v, w, V) {
|
|
7283
|
-
|
|
7283
|
+
c = w, process.env.NODE_ENV !== "production" && v.map !== void 0 && (c = {
|
|
7284
7284
|
insert: function(m) {
|
|
7285
7285
|
w.insert(m + v.map);
|
|
7286
7286
|
}
|
|
@@ -7317,7 +7317,7 @@ function u3() {
|
|
|
7317
7317
|
if (zo)
|
|
7318
7318
|
return Ve;
|
|
7319
7319
|
zo = 1;
|
|
7320
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111,
|
|
7320
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, C = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
|
|
7321
7321
|
function V(m) {
|
|
7322
7322
|
if (typeof m == "object" && m !== null) {
|
|
7323
7323
|
var b = m.$$typeof;
|
|
@@ -7325,7 +7325,7 @@ function u3() {
|
|
|
7325
7325
|
case t:
|
|
7326
7326
|
switch (m = m.type, m) {
|
|
7327
7327
|
case s:
|
|
7328
|
-
case
|
|
7328
|
+
case u:
|
|
7329
7329
|
case i:
|
|
7330
7330
|
case o:
|
|
7331
7331
|
case r:
|
|
@@ -7334,7 +7334,7 @@ function u3() {
|
|
|
7334
7334
|
default:
|
|
7335
7335
|
switch (m = m && m.$$typeof, m) {
|
|
7336
7336
|
case l:
|
|
7337
|
-
case
|
|
7337
|
+
case c:
|
|
7338
7338
|
case p:
|
|
7339
7339
|
case g:
|
|
7340
7340
|
case a:
|
|
@@ -7349,9 +7349,9 @@ function u3() {
|
|
|
7349
7349
|
}
|
|
7350
7350
|
}
|
|
7351
7351
|
function I(m) {
|
|
7352
|
-
return V(m) ===
|
|
7352
|
+
return V(m) === u;
|
|
7353
7353
|
}
|
|
7354
|
-
return Ve.AsyncMode = s, Ve.ConcurrentMode =
|
|
7354
|
+
return Ve.AsyncMode = s, Ve.ConcurrentMode = u, Ve.ContextConsumer = l, Ve.ContextProvider = a, Ve.Element = t, Ve.ForwardRef = c, Ve.Fragment = i, Ve.Lazy = p, Ve.Memo = g, Ve.Portal = n, Ve.Profiler = o, Ve.StrictMode = r, Ve.Suspense = d, Ve.isAsyncMode = function(m) {
|
|
7355
7355
|
return I(m) || V(m) === s;
|
|
7356
7356
|
}, Ve.isConcurrentMode = I, Ve.isContextConsumer = function(m) {
|
|
7357
7357
|
return V(m) === l;
|
|
@@ -7360,7 +7360,7 @@ function u3() {
|
|
|
7360
7360
|
}, Ve.isElement = function(m) {
|
|
7361
7361
|
return typeof m == "object" && m !== null && m.$$typeof === t;
|
|
7362
7362
|
}, Ve.isForwardRef = function(m) {
|
|
7363
|
-
return V(m) ===
|
|
7363
|
+
return V(m) === c;
|
|
7364
7364
|
}, Ve.isFragment = function(m) {
|
|
7365
7365
|
return V(m) === i;
|
|
7366
7366
|
}, Ve.isLazy = function(m) {
|
|
@@ -7376,7 +7376,7 @@ function u3() {
|
|
|
7376
7376
|
}, Ve.isSuspense = function(m) {
|
|
7377
7377
|
return V(m) === d;
|
|
7378
7378
|
}, Ve.isValidElementType = function(m) {
|
|
7379
|
-
return typeof m == "string" || typeof m == "function" || m === i || m ===
|
|
7379
|
+
return typeof m == "string" || typeof m == "function" || m === i || m === u || m === o || m === r || m === d || m === f || typeof m == "object" && m !== null && (m.$$typeof === p || m.$$typeof === g || m.$$typeof === a || m.$$typeof === l || m.$$typeof === c || m.$$typeof === E || m.$$typeof === v || m.$$typeof === w || m.$$typeof === C);
|
|
7380
7380
|
}, Ve.typeOf = V, Ve;
|
|
7381
7381
|
}
|
|
7382
7382
|
var Pe = {};
|
|
@@ -7391,9 +7391,9 @@ var Pe = {};
|
|
|
7391
7391
|
var Wo;
|
|
7392
7392
|
function c3() {
|
|
7393
7393
|
return Wo || (Wo = 1, process.env.NODE_ENV !== "production" && function() {
|
|
7394
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111,
|
|
7394
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, C = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
|
|
7395
7395
|
function V(S) {
|
|
7396
|
-
return typeof S == "string" || typeof S == "function" || S === i || S ===
|
|
7396
|
+
return typeof S == "string" || typeof S == "function" || S === i || S === u || S === o || S === r || S === d || S === f || typeof S == "object" && S !== null && (S.$$typeof === p || S.$$typeof === g || S.$$typeof === a || S.$$typeof === l || S.$$typeof === c || S.$$typeof === E || S.$$typeof === v || S.$$typeof === w || S.$$typeof === C);
|
|
7397
7397
|
}
|
|
7398
7398
|
function I(S) {
|
|
7399
7399
|
if (typeof S == "object" && S !== null) {
|
|
@@ -7403,7 +7403,7 @@ function c3() {
|
|
|
7403
7403
|
var ne = S.type;
|
|
7404
7404
|
switch (ne) {
|
|
7405
7405
|
case s:
|
|
7406
|
-
case
|
|
7406
|
+
case u:
|
|
7407
7407
|
case i:
|
|
7408
7408
|
case o:
|
|
7409
7409
|
case r:
|
|
@@ -7413,7 +7413,7 @@ function c3() {
|
|
|
7413
7413
|
var ee = ne && ne.$$typeof;
|
|
7414
7414
|
switch (ee) {
|
|
7415
7415
|
case l:
|
|
7416
|
-
case
|
|
7416
|
+
case c:
|
|
7417
7417
|
case p:
|
|
7418
7418
|
case g:
|
|
7419
7419
|
case a:
|
|
@@ -7427,12 +7427,12 @@ function c3() {
|
|
|
7427
7427
|
}
|
|
7428
7428
|
}
|
|
7429
7429
|
}
|
|
7430
|
-
var m = s, b =
|
|
7430
|
+
var m = s, b = u, h = l, x = a, Q = t, N = c, H = i, Z = p, j = g, D = n, G = o, T = r, Y = d, z = !1;
|
|
7431
7431
|
function re(S) {
|
|
7432
7432
|
return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), F(S) || I(S) === s;
|
|
7433
7433
|
}
|
|
7434
7434
|
function F(S) {
|
|
7435
|
-
return I(S) ===
|
|
7435
|
+
return I(S) === u;
|
|
7436
7436
|
}
|
|
7437
7437
|
function X(S) {
|
|
7438
7438
|
return I(S) === l;
|
|
@@ -7444,7 +7444,7 @@ function c3() {
|
|
|
7444
7444
|
return typeof S == "object" && S !== null && S.$$typeof === t;
|
|
7445
7445
|
}
|
|
7446
7446
|
function R(S) {
|
|
7447
|
-
return I(S) ===
|
|
7447
|
+
return I(S) === c;
|
|
7448
7448
|
}
|
|
7449
7449
|
function M(S) {
|
|
7450
7450
|
return I(S) === i;
|
|
@@ -7646,7 +7646,7 @@ function Jn(e, t, n) {
|
|
|
7646
7646
|
}
|
|
7647
7647
|
case "string":
|
|
7648
7648
|
if (process.env.NODE_ENV !== "production") {
|
|
7649
|
-
var l = [], s = n.replace(j2, function(
|
|
7649
|
+
var l = [], s = n.replace(j2, function(c, d, f) {
|
|
7650
7650
|
var g = "animation" + l.length;
|
|
7651
7651
|
return l.push("const " + g + " = keyframes`" + f.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + g + "}";
|
|
7652
7652
|
});
|
|
@@ -7661,8 +7661,8 @@ You should wrap it with \`css\` like this:
|
|
|
7661
7661
|
}
|
|
7662
7662
|
if (t == null)
|
|
7663
7663
|
return n;
|
|
7664
|
-
var
|
|
7665
|
-
return
|
|
7664
|
+
var u = t[n];
|
|
7665
|
+
return u !== void 0 ? u : n;
|
|
7666
7666
|
}
|
|
7667
7667
|
function B3(e, t, n) {
|
|
7668
7668
|
var i = "";
|
|
@@ -7711,9 +7711,9 @@ var Rt, Un = function(t, n, i) {
|
|
|
7711
7711
|
process.env.NODE_ENV !== "production" && (o = o.replace(z2, function(f) {
|
|
7712
7712
|
return s = f, "";
|
|
7713
7713
|
})), Ko.lastIndex = 0;
|
|
7714
|
-
for (var
|
|
7715
|
-
|
|
7716
|
-
var d = g3(o) +
|
|
7714
|
+
for (var u = "", c; (c = Ko.exec(o)) !== null; )
|
|
7715
|
+
u += "-" + c[1];
|
|
7716
|
+
var d = g3(o) + u;
|
|
7717
7717
|
return process.env.NODE_ENV !== "production" ? {
|
|
7718
7718
|
name: d,
|
|
7719
7719
|
styles: o,
|
|
@@ -7791,14 +7791,14 @@ var _o = function(t) {
|
|
|
7791
7791
|
s && (l = Un([l, "label:" + s + ";"]));
|
|
7792
7792
|
}
|
|
7793
7793
|
a += t.key + "-" + l.name;
|
|
7794
|
-
var
|
|
7795
|
-
for (var
|
|
7796
|
-
$i.call(e,
|
|
7797
|
-
return
|
|
7794
|
+
var u = {};
|
|
7795
|
+
for (var c in e)
|
|
7796
|
+
$i.call(e, c) && c !== "css" && c !== di && (process.env.NODE_ENV === "production" || c !== Ai) && (u[c] = e[c]);
|
|
7797
|
+
return u.ref = n, u.className = a, /* @__PURE__ */ It(Ye, null, /* @__PURE__ */ It(V3, {
|
|
7798
7798
|
cache: t,
|
|
7799
7799
|
serialized: l,
|
|
7800
7800
|
isStringTag: typeof r == "string"
|
|
7801
|
-
}), /* @__PURE__ */ It(r,
|
|
7801
|
+
}), /* @__PURE__ */ It(r, u));
|
|
7802
7802
|
});
|
|
7803
7803
|
process.env.NODE_ENV !== "production" && (J2.displayName = "EmotionCssPropInternal");
|
|
7804
7804
|
var P3 = {
|
|
@@ -8013,16 +8013,16 @@ var D3 = function(t) {
|
|
|
8013
8013
|
var n = !1, i = [], r = function() {
|
|
8014
8014
|
if (n && process.env.NODE_ENV !== "production")
|
|
8015
8015
|
throw new Error("css can only be used during render");
|
|
8016
|
-
for (var
|
|
8017
|
-
|
|
8018
|
-
var f = Un(
|
|
8016
|
+
for (var u = arguments.length, c = new Array(u), d = 0; d < u; d++)
|
|
8017
|
+
c[d] = arguments[d];
|
|
8018
|
+
var f = Un(c, t.registered);
|
|
8019
8019
|
return i.push(f), Ki(t, f, !1), t.key + "-" + f.name;
|
|
8020
8020
|
}, o = function() {
|
|
8021
8021
|
if (n && process.env.NODE_ENV !== "production")
|
|
8022
8022
|
throw new Error("cx can only be used during render");
|
|
8023
|
-
for (var
|
|
8024
|
-
|
|
8025
|
-
return N3(t.registered, r, O3(
|
|
8023
|
+
for (var u = arguments.length, c = new Array(u), d = 0; d < u; d++)
|
|
8024
|
+
c[d] = arguments[d];
|
|
8025
|
+
return N3(t.registered, r, O3(c));
|
|
8026
8026
|
}, a = {
|
|
8027
8027
|
css: r,
|
|
8028
8028
|
cx: o,
|
|
@@ -8111,8 +8111,8 @@ function C1(e, t) {
|
|
|
8111
8111
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : D1, r = q2(e), o = t - r, a = 10, l = 0;
|
|
8112
8112
|
function s() {
|
|
8113
8113
|
l += a;
|
|
8114
|
-
var
|
|
8115
|
-
k1(e,
|
|
8114
|
+
var u = z3(l, r, o, n);
|
|
8115
|
+
k1(e, u), l < n ? window.requestAnimationFrame(s) : i(e);
|
|
8116
8116
|
}
|
|
8117
8117
|
s();
|
|
8118
8118
|
}
|
|
@@ -8169,18 +8169,18 @@ var _3 = function(t) {
|
|
|
8169
8169
|
return !i.includes(s);
|
|
8170
8170
|
});
|
|
8171
8171
|
return o.reduce(function(a, l) {
|
|
8172
|
-
var s = rt(l, 2),
|
|
8173
|
-
return a[
|
|
8172
|
+
var s = rt(l, 2), u = s[0], c = s[1];
|
|
8173
|
+
return a[u] = c, a;
|
|
8174
8174
|
}, {});
|
|
8175
8175
|
};
|
|
8176
8176
|
function $3(e) {
|
|
8177
|
-
var t = e.maxHeight, n = e.menuEl, i = e.minHeight, r = e.placement, o = e.shouldScroll, a = e.isFixedPosition, l = e.theme, s = l.spacing,
|
|
8177
|
+
var t = e.maxHeight, n = e.menuEl, i = e.minHeight, r = e.placement, o = e.shouldScroll, a = e.isFixedPosition, l = e.theme, s = l.spacing, u = X3(n), c = {
|
|
8178
8178
|
placement: "bottom",
|
|
8179
8179
|
maxHeight: t
|
|
8180
8180
|
};
|
|
8181
8181
|
if (!n || !n.offsetParent)
|
|
8182
|
-
return
|
|
8183
|
-
var d =
|
|
8182
|
+
return c;
|
|
8183
|
+
var d = u.getBoundingClientRect(), f = d.height, g = n.getBoundingClientRect(), p = g.bottom, C = g.height, E = g.top, v = n.offsetParent.getBoundingClientRect(), w = v.top, V = a ? window.innerHeight : j3(u), I = q2(u), m = parseInt(getComputedStyle(n).marginBottom, 10), b = parseInt(getComputedStyle(n).marginTop, 10), h = w - b, x = V - E, Q = h + I, N = f - I - E, H = p - V + I + m, Z = I + E - b, j = 160;
|
|
8184
8184
|
switch (r) {
|
|
8185
8185
|
case "auto":
|
|
8186
8186
|
case "bottom":
|
|
@@ -8190,12 +8190,12 @@ function $3(e) {
|
|
|
8190
8190
|
maxHeight: t
|
|
8191
8191
|
};
|
|
8192
8192
|
if (N >= C && !a)
|
|
8193
|
-
return o && C1(
|
|
8193
|
+
return o && C1(u, H, j), {
|
|
8194
8194
|
placement: "bottom",
|
|
8195
8195
|
maxHeight: t
|
|
8196
8196
|
};
|
|
8197
8197
|
if (!a && N >= i || a && x >= i) {
|
|
8198
|
-
o && C1(
|
|
8198
|
+
o && C1(u, H, j);
|
|
8199
8199
|
var D = a ? x - m : N - m;
|
|
8200
8200
|
return {
|
|
8201
8201
|
placement: "bottom",
|
|
@@ -8210,7 +8210,7 @@ function $3(e) {
|
|
|
8210
8210
|
};
|
|
8211
8211
|
}
|
|
8212
8212
|
if (r === "bottom")
|
|
8213
|
-
return o && k1(
|
|
8213
|
+
return o && k1(u, H), {
|
|
8214
8214
|
placement: "bottom",
|
|
8215
8215
|
maxHeight: t
|
|
8216
8216
|
};
|
|
@@ -8222,13 +8222,13 @@ function $3(e) {
|
|
|
8222
8222
|
maxHeight: t
|
|
8223
8223
|
};
|
|
8224
8224
|
if (Q >= C && !a)
|
|
8225
|
-
return o && C1(
|
|
8225
|
+
return o && C1(u, Z, j), {
|
|
8226
8226
|
placement: "top",
|
|
8227
8227
|
maxHeight: t
|
|
8228
8228
|
};
|
|
8229
8229
|
if (!a && Q >= i || a && h >= i) {
|
|
8230
8230
|
var Y = t;
|
|
8231
|
-
return (!a && Q >= i || a && h >= i) && (Y = a ? h - b : Q - b), o && C1(
|
|
8231
|
+
return (!a && Q >= i || a && h >= i) && (Y = a ? h - b : Q - b), o && C1(u, Z, j), {
|
|
8232
8232
|
placement: "top",
|
|
8233
8233
|
maxHeight: Y
|
|
8234
8234
|
};
|
|
@@ -8240,7 +8240,7 @@ function $3(e) {
|
|
|
8240
8240
|
default:
|
|
8241
8241
|
throw new Error('Invalid placement provided "'.concat(r, '".'));
|
|
8242
8242
|
}
|
|
8243
|
-
return
|
|
8243
|
+
return c;
|
|
8244
8244
|
}
|
|
8245
8245
|
function e5(e) {
|
|
8246
8246
|
var t = {
|
|
@@ -8257,7 +8257,7 @@ var $2 = function(t) {
|
|
|
8257
8257
|
label: "menu"
|
|
8258
8258
|
}, yt(n, e5(i), "100%"), yt(n, "backgroundColor", l.neutral0), yt(n, "borderRadius", o), yt(n, "boxShadow", "0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"), yt(n, "marginBottom", a.menuGutter), yt(n, "marginTop", a.menuGutter), yt(n, "position", "absolute"), yt(n, "width", "100%"), yt(n, "zIndex", 1), n;
|
|
8259
8259
|
}, el = /* @__PURE__ */ qe(null), n5 = function(t) {
|
|
8260
|
-
var n = t.children, i = t.minMenuHeight, r = t.maxMenuHeight, o = t.menuPlacement, a = t.menuPosition, l = t.menuShouldScrollIntoView, s = t.theme,
|
|
8260
|
+
var n = t.children, i = t.minMenuHeight, r = t.maxMenuHeight, o = t.menuPlacement, a = t.menuPosition, l = t.menuShouldScrollIntoView, s = t.theme, u = We(el) || {}, c = u.setPortalPlacement, d = oe(null), f = ae(r), g = rt(f, 2), p = g[0], C = g[1], E = ae(null), v = rt(E, 2), w = v[0], V = v[1];
|
|
8261
8261
|
return fi(function() {
|
|
8262
8262
|
var I = d.current;
|
|
8263
8263
|
if (!!I) {
|
|
@@ -8270,9 +8270,9 @@ var $2 = function(t) {
|
|
|
8270
8270
|
isFixedPosition: m,
|
|
8271
8271
|
theme: s
|
|
8272
8272
|
});
|
|
8273
|
-
C(h.maxHeight), V(h.placement),
|
|
8273
|
+
C(h.maxHeight), V(h.placement), c == null || c(h.placement);
|
|
8274
8274
|
}
|
|
8275
|
-
}, [r, o, a, l, i,
|
|
8275
|
+
}, [r, o, a, l, i, c, s]), n({
|
|
8276
8276
|
ref: d,
|
|
8277
8277
|
placerProps: Se(Se({}, t), {}, {
|
|
8278
8278
|
placement: w || $2(o),
|
|
@@ -8351,19 +8351,19 @@ var s5 = function(t) {
|
|
|
8351
8351
|
zIndex: 1
|
|
8352
8352
|
};
|
|
8353
8353
|
}, u5 = function(t) {
|
|
8354
|
-
var n = t.appendTo, i = t.children, r = t.className, o = t.controlElement, a = t.cx, l = t.innerProps, s = t.menuPlacement,
|
|
8354
|
+
var n = t.appendTo, i = t.children, r = t.className, o = t.controlElement, a = t.cx, l = t.innerProps, s = t.menuPlacement, u = t.menuPosition, c = t.getStyles, d = oe(null), f = oe(null), g = ae($2(s)), p = rt(g, 2), C = p[0], E = p[1], v = se(function() {
|
|
8355
8355
|
return {
|
|
8356
8356
|
setPortalPlacement: E
|
|
8357
8357
|
};
|
|
8358
8358
|
}, []), w = ae(null), V = rt(w, 2), I = V[0], m = V[1], b = Je(function() {
|
|
8359
8359
|
if (!!o) {
|
|
8360
|
-
var N = W3(o), H =
|
|
8360
|
+
var N = W3(o), H = u === "fixed" ? 0 : window.pageYOffset, Z = N[C] + H;
|
|
8361
8361
|
(Z !== (I == null ? void 0 : I.offset) || N.left !== (I == null ? void 0 : I.rect.left) || N.width !== (I == null ? void 0 : I.rect.width)) && m({
|
|
8362
8362
|
offset: Z,
|
|
8363
8363
|
rect: N
|
|
8364
8364
|
});
|
|
8365
8365
|
}
|
|
8366
|
-
}, [o,
|
|
8366
|
+
}, [o, u, C, I == null ? void 0 : I.offset, I == null ? void 0 : I.rect.left, I == null ? void 0 : I.rect.width]);
|
|
8367
8367
|
fi(function() {
|
|
8368
8368
|
b();
|
|
8369
8369
|
}, [b]);
|
|
@@ -8378,13 +8378,13 @@ var s5 = function(t) {
|
|
|
8378
8378
|
var x = Je(function(N) {
|
|
8379
8379
|
d.current = N, h();
|
|
8380
8380
|
}, [h]);
|
|
8381
|
-
if (!n &&
|
|
8381
|
+
if (!n && u !== "fixed" || !I)
|
|
8382
8382
|
return null;
|
|
8383
8383
|
var Q = le("div", He({
|
|
8384
8384
|
ref: x,
|
|
8385
|
-
css:
|
|
8385
|
+
css: c("menuPortal", {
|
|
8386
8386
|
offset: I.offset,
|
|
8387
|
-
position:
|
|
8387
|
+
position: u,
|
|
8388
8388
|
rect: I.rect
|
|
8389
8389
|
}),
|
|
8390
8390
|
className: a({
|
|
@@ -8608,7 +8608,7 @@ var x5 = function(t) {
|
|
|
8608
8608
|
}
|
|
8609
8609
|
};
|
|
8610
8610
|
}, S5 = function(t) {
|
|
8611
|
-
var n = t.children, i = t.cx, r = t.getStyles, o = t.className, a = t.isDisabled, l = t.isFocused, s = t.innerRef,
|
|
8611
|
+
var n = t.children, i = t.cx, r = t.getStyles, o = t.className, a = t.isDisabled, l = t.isFocused, s = t.innerRef, u = t.innerProps, c = t.menuIsOpen;
|
|
8612
8612
|
return le("div", He({
|
|
8613
8613
|
ref: s,
|
|
8614
8614
|
css: r("control", t),
|
|
@@ -8616,9 +8616,9 @@ var x5 = function(t) {
|
|
|
8616
8616
|
control: !0,
|
|
8617
8617
|
"control--is-disabled": a,
|
|
8618
8618
|
"control--is-focused": l,
|
|
8619
|
-
"control--menu-is-open":
|
|
8619
|
+
"control--menu-is-open": c
|
|
8620
8620
|
}, o)
|
|
8621
|
-
},
|
|
8621
|
+
}, u), n);
|
|
8622
8622
|
}, Q5 = ["data"], V5 = function(t) {
|
|
8623
8623
|
var n = t.theme.spacing;
|
|
8624
8624
|
return {
|
|
@@ -8626,7 +8626,7 @@ var x5 = function(t) {
|
|
|
8626
8626
|
paddingTop: n.baseUnit * 2
|
|
8627
8627
|
};
|
|
8628
8628
|
}, P5 = function(t) {
|
|
8629
|
-
var n = t.children, i = t.className, r = t.cx, o = t.getStyles, a = t.Heading, l = t.headingProps, s = t.innerProps,
|
|
8629
|
+
var n = t.children, i = t.className, r = t.cx, o = t.getStyles, a = t.Heading, l = t.headingProps, s = t.innerProps, u = t.label, c = t.theme, d = t.selectProps;
|
|
8630
8630
|
return le("div", He({
|
|
8631
8631
|
css: o("group", t),
|
|
8632
8632
|
className: r({
|
|
@@ -8634,10 +8634,10 @@ var x5 = function(t) {
|
|
|
8634
8634
|
}, i)
|
|
8635
8635
|
}, s), le(a, He({}, l, {
|
|
8636
8636
|
selectProps: d,
|
|
8637
|
-
theme:
|
|
8637
|
+
theme: c,
|
|
8638
8638
|
getStyles: o,
|
|
8639
8639
|
cx: r
|
|
8640
|
-
}),
|
|
8640
|
+
}), u), le("div", null, n));
|
|
8641
8641
|
}, M5 = function(t) {
|
|
8642
8642
|
var n = t.theme.spacing;
|
|
8643
8643
|
return {
|
|
@@ -8699,7 +8699,7 @@ var x5 = function(t) {
|
|
|
8699
8699
|
width: "100%"
|
|
8700
8700
|
}, sl);
|
|
8701
8701
|
}, k5 = function(t) {
|
|
8702
|
-
var n = t.className, i = t.cx, r = t.getStyles, o = t.value, a = K2(t), l = a.innerRef, s = a.isDisabled,
|
|
8702
|
+
var n = t.className, i = t.cx, r = t.getStyles, o = t.value, a = K2(t), l = a.innerRef, s = a.isDisabled, u = a.isHidden, c = a.inputClassName, d = on(a, O5);
|
|
8703
8703
|
return le("div", {
|
|
8704
8704
|
className: i({
|
|
8705
8705
|
"input-container": !0
|
|
@@ -8709,9 +8709,9 @@ var x5 = function(t) {
|
|
|
8709
8709
|
}, le("input", He({
|
|
8710
8710
|
className: i({
|
|
8711
8711
|
input: !0
|
|
8712
|
-
},
|
|
8712
|
+
}, c),
|
|
8713
8713
|
ref: l,
|
|
8714
|
-
style: L5(
|
|
8714
|
+
style: L5(u),
|
|
8715
8715
|
disabled: s
|
|
8716
8716
|
}, d)));
|
|
8717
8717
|
}, G5 = function(t) {
|
|
@@ -8763,7 +8763,7 @@ function X5(e) {
|
|
|
8763
8763
|
}));
|
|
8764
8764
|
}
|
|
8765
8765
|
var z5 = function(t) {
|
|
8766
|
-
var n = t.children, i = t.className, r = t.components, o = t.cx, a = t.data, l = t.getStyles, s = t.innerProps,
|
|
8766
|
+
var n = t.children, i = t.className, r = t.components, o = t.cx, a = t.data, l = t.getStyles, s = t.innerProps, u = t.isDisabled, c = t.removeProps, d = t.selectProps, f = r.Container, g = r.Label, p = r.Remove;
|
|
8767
8767
|
return le(U2, null, function(C) {
|
|
8768
8768
|
var E = C.css, v = C.cx;
|
|
8769
8769
|
return le(f, {
|
|
@@ -8771,7 +8771,7 @@ var z5 = function(t) {
|
|
|
8771
8771
|
innerProps: Se({
|
|
8772
8772
|
className: v(E(l("multiValue", t)), o({
|
|
8773
8773
|
"multi-value": !0,
|
|
8774
|
-
"multi-value--is-disabled":
|
|
8774
|
+
"multi-value--is-disabled": u
|
|
8775
8775
|
}, i))
|
|
8776
8776
|
}, s),
|
|
8777
8777
|
selectProps: d
|
|
@@ -8790,7 +8790,7 @@ var z5 = function(t) {
|
|
|
8790
8790
|
"multi-value__remove": !0
|
|
8791
8791
|
}, i)),
|
|
8792
8792
|
"aria-label": "Remove ".concat(n || "option")
|
|
8793
|
-
},
|
|
8793
|
+
}, c),
|
|
8794
8794
|
selectProps: d
|
|
8795
8795
|
}));
|
|
8796
8796
|
});
|
|
@@ -8812,7 +8812,7 @@ var z5 = function(t) {
|
|
|
8812
8812
|
}
|
|
8813
8813
|
};
|
|
8814
8814
|
}, Y5 = function(t) {
|
|
8815
|
-
var n = t.children, i = t.className, r = t.cx, o = t.getStyles, a = t.isDisabled, l = t.isFocused, s = t.isSelected,
|
|
8815
|
+
var n = t.children, i = t.className, r = t.cx, o = t.getStyles, a = t.isDisabled, l = t.isFocused, s = t.isSelected, u = t.innerRef, c = t.innerProps;
|
|
8816
8816
|
return le("div", He({
|
|
8817
8817
|
css: o("option", t),
|
|
8818
8818
|
className: r({
|
|
@@ -8821,9 +8821,9 @@ var z5 = function(t) {
|
|
|
8821
8821
|
"option--is-focused": l,
|
|
8822
8822
|
"option--is-selected": s
|
|
8823
8823
|
}, i),
|
|
8824
|
-
ref:
|
|
8824
|
+
ref: u,
|
|
8825
8825
|
"aria-disabled": a
|
|
8826
|
-
},
|
|
8826
|
+
}, c), n);
|
|
8827
8827
|
}, J5 = function(t) {
|
|
8828
8828
|
var n = t.theme, i = n.spacing, r = n.colors;
|
|
8829
8829
|
return {
|
|
@@ -8971,14 +8971,14 @@ var r4 = process.env.NODE_ENV === "production" ? {
|
|
|
8971
8971
|
}
|
|
8972
8972
|
},
|
|
8973
8973
|
onFocus: function(t) {
|
|
8974
|
-
var n = t.context, i = t.focused, r = t.options, o = t.label, a = o === void 0 ? "" : o, l = t.selectValue, s = t.isDisabled,
|
|
8974
|
+
var n = t.context, i = t.focused, r = t.options, o = t.label, a = o === void 0 ? "" : o, l = t.selectValue, s = t.isDisabled, u = t.isSelected, c = function(p, C) {
|
|
8975
8975
|
return p && p.length ? "".concat(p.indexOf(C) + 1, " of ").concat(p.length) : "";
|
|
8976
8976
|
};
|
|
8977
8977
|
if (n === "value" && l)
|
|
8978
|
-
return "value ".concat(a, " focused, ").concat(
|
|
8978
|
+
return "value ".concat(a, " focused, ").concat(c(l, i), ".");
|
|
8979
8979
|
if (n === "menu") {
|
|
8980
|
-
var d = s ? " disabled" : "", f = "".concat(
|
|
8981
|
-
return "option ".concat(a, " ").concat(f, ", ").concat(
|
|
8980
|
+
var d = s ? " disabled" : "", f = "".concat(u ? "selected" : "focused").concat(d);
|
|
8981
|
+
return "option ".concat(a, " ").concat(f, ", ").concat(c(r, i), ".");
|
|
8982
8982
|
}
|
|
8983
8983
|
return "";
|
|
8984
8984
|
},
|
|
@@ -8987,9 +8987,9 @@ var r4 = process.env.NODE_ENV === "production" ? {
|
|
|
8987
8987
|
return "".concat(i).concat(n ? " for search term " + n : "", ".");
|
|
8988
8988
|
}
|
|
8989
8989
|
}, o4 = function(t) {
|
|
8990
|
-
var n = t.ariaSelection, i = t.focusedOption, r = t.focusedValue, o = t.focusableOptions, a = t.isFocused, l = t.selectValue, s = t.selectProps,
|
|
8991
|
-
return Se(Se({}, i4),
|
|
8992
|
-
}, [
|
|
8990
|
+
var n = t.ariaSelection, i = t.focusedOption, r = t.focusedValue, o = t.focusableOptions, a = t.isFocused, l = t.selectValue, s = t.selectProps, u = t.id, c = s.ariaLiveMessages, d = s.getOptionLabel, f = s.inputValue, g = s.isMulti, p = s.isOptionDisabled, C = s.isSearchable, E = s.menuIsOpen, v = s.options, w = s.screenReaderStatus, V = s.tabSelectsValue, I = s["aria-label"], m = s["aria-live"], b = se(function() {
|
|
8991
|
+
return Se(Se({}, i4), c || {});
|
|
8992
|
+
}, [c]), h = se(function() {
|
|
8993
8993
|
var D = "";
|
|
8994
8994
|
if (n && b.onChange) {
|
|
8995
8995
|
var G = n.option, T = n.options, Y = n.removedValue, z = n.removedValues, re = n.value, F = function(k) {
|
|
@@ -9049,7 +9049,7 @@ var r4 = process.env.NODE_ENV === "production" ? {
|
|
|
9049
9049
|
id: "aria-context"
|
|
9050
9050
|
}, H)), j = (n == null ? void 0 : n.action) === "initial-input-focus";
|
|
9051
9051
|
return le(Ye, null, le(la, {
|
|
9052
|
-
id:
|
|
9052
|
+
id: u
|
|
9053
9053
|
}, j && Z), le(la, {
|
|
9054
9054
|
"aria-live": m,
|
|
9055
9055
|
"aria-atomic": "false",
|
|
@@ -9331,8 +9331,8 @@ var dl = function(t) {
|
|
|
9331
9331
|
stringify: s4,
|
|
9332
9332
|
trim: !0,
|
|
9333
9333
|
matchFrom: "any"
|
|
9334
|
-
}, t), o = r.ignoreCase, a = r.ignoreAccents, l = r.stringify, s = r.trim,
|
|
9335
|
-
return o && (
|
|
9334
|
+
}, t), o = r.ignoreCase, a = r.ignoreAccents, l = r.stringify, s = r.trim, u = r.matchFrom, c = s ? sa(i) : i, d = s ? sa(l(n)) : l(n);
|
|
9335
|
+
return o && (c = c.toLowerCase(), d = d.toLowerCase()), a && (c = l4(c), d = dl(d)), u === "start" ? d.substr(0, c.length) === c : d.indexOf(c) > -1;
|
|
9336
9336
|
};
|
|
9337
9337
|
}, c4 = ["innerRef"];
|
|
9338
9338
|
function d4(e) {
|
|
@@ -9362,19 +9362,19 @@ var A4 = function(t) {
|
|
|
9362
9362
|
t.preventDefault(), t.stopPropagation();
|
|
9363
9363
|
};
|
|
9364
9364
|
function f4(e) {
|
|
9365
|
-
var t = e.isEnabled, n = e.onBottomArrive, i = e.onBottomLeave, r = e.onTopArrive, o = e.onTopLeave, a = oe(!1), l = oe(!1), s = oe(0),
|
|
9366
|
-
if (
|
|
9367
|
-
var w =
|
|
9365
|
+
var t = e.isEnabled, n = e.onBottomArrive, i = e.onBottomLeave, r = e.onTopArrive, o = e.onTopLeave, a = oe(!1), l = oe(!1), s = oe(0), u = oe(null), c = Je(function(E, v) {
|
|
9366
|
+
if (u.current !== null) {
|
|
9367
|
+
var w = u.current, V = w.scrollTop, I = w.scrollHeight, m = w.clientHeight, b = u.current, h = v > 0, x = I - m - V, Q = !1;
|
|
9368
9368
|
x > v && a.current && (i && i(E), a.current = !1), h && l.current && (o && o(E), l.current = !1), h && v > x ? (n && !a.current && n(E), b.scrollTop = I, Q = !0, a.current = !0) : !h && -v > V && (r && !l.current && r(E), b.scrollTop = 0, Q = !0, l.current = !0), Q && A4(E);
|
|
9369
9369
|
}
|
|
9370
9370
|
}, [n, i, r, o]), d = Je(function(E) {
|
|
9371
|
-
|
|
9372
|
-
}, [
|
|
9371
|
+
c(E, E.deltaY);
|
|
9372
|
+
}, [c]), f = Je(function(E) {
|
|
9373
9373
|
s.current = E.changedTouches[0].clientY;
|
|
9374
9374
|
}, []), g = Je(function(E) {
|
|
9375
9375
|
var v = s.current - E.changedTouches[0].clientY;
|
|
9376
|
-
|
|
9377
|
-
}, [
|
|
9376
|
+
c(E, v);
|
|
9377
|
+
}, [c]), p = Je(function(E) {
|
|
9378
9378
|
if (!!E) {
|
|
9379
9379
|
var v = U3 ? {
|
|
9380
9380
|
passive: !1
|
|
@@ -9386,13 +9386,13 @@ function f4(e) {
|
|
|
9386
9386
|
}, [g, f, d]);
|
|
9387
9387
|
return ve(function() {
|
|
9388
9388
|
if (!!t) {
|
|
9389
|
-
var E =
|
|
9389
|
+
var E = u.current;
|
|
9390
9390
|
return p(E), function() {
|
|
9391
9391
|
C(E);
|
|
9392
9392
|
};
|
|
9393
9393
|
}
|
|
9394
9394
|
}, [t, p, C]), function(E) {
|
|
9395
|
-
|
|
9395
|
+
u.current = E;
|
|
9396
9396
|
};
|
|
9397
9397
|
}
|
|
9398
9398
|
var ua = ["boxSizing", "height", "overflow", "paddingRight", "position"], ca = {
|
|
@@ -9421,26 +9421,26 @@ var Ca = !!(typeof window < "u" && window.document && window.document.createElem
|
|
|
9421
9421
|
function g4(e) {
|
|
9422
9422
|
var t = e.isEnabled, n = e.accountForScrollbars, i = n === void 0 ? !0 : n, r = oe({}), o = oe(null), a = Je(function(s) {
|
|
9423
9423
|
if (!!Ca) {
|
|
9424
|
-
var
|
|
9424
|
+
var u = document.body, c = u && u.style;
|
|
9425
9425
|
if (i && ua.forEach(function(p) {
|
|
9426
|
-
var C =
|
|
9426
|
+
var C = c && c[p];
|
|
9427
9427
|
r.current[p] = C;
|
|
9428
9428
|
}), i && Ln < 1) {
|
|
9429
9429
|
var d = parseInt(r.current.paddingRight, 10) || 0, f = document.body ? document.body.clientWidth : 0, g = window.innerWidth - f + d || 0;
|
|
9430
9430
|
Object.keys(ca).forEach(function(p) {
|
|
9431
9431
|
var C = ca[p];
|
|
9432
|
-
|
|
9433
|
-
}),
|
|
9432
|
+
c && (c[p] = C);
|
|
9433
|
+
}), c && (c.paddingRight = "".concat(g, "px"));
|
|
9434
9434
|
}
|
|
9435
|
-
|
|
9435
|
+
u && ga() && (u.addEventListener("touchmove", da, vn), s && (s.addEventListener("touchstart", fa, vn), s.addEventListener("touchmove", Aa, vn))), Ln += 1;
|
|
9436
9436
|
}
|
|
9437
9437
|
}, [i]), l = Je(function(s) {
|
|
9438
9438
|
if (!!Ca) {
|
|
9439
|
-
var
|
|
9439
|
+
var u = document.body, c = u && u.style;
|
|
9440
9440
|
Ln = Math.max(Ln - 1, 0), i && Ln < 1 && ua.forEach(function(d) {
|
|
9441
9441
|
var f = r.current[d];
|
|
9442
|
-
|
|
9443
|
-
}),
|
|
9442
|
+
c && (c[d] = f);
|
|
9443
|
+
}), u && ga() && (u.removeEventListener("touchmove", da, vn), s && (s.removeEventListener("touchstart", fa, vn), s.removeEventListener("touchmove", Aa, vn)));
|
|
9444
9444
|
}
|
|
9445
9445
|
}, [i]);
|
|
9446
9446
|
return ve(function() {
|
|
@@ -9469,16 +9469,16 @@ var p4 = function() {
|
|
|
9469
9469
|
toString: C4
|
|
9470
9470
|
};
|
|
9471
9471
|
function E4(e) {
|
|
9472
|
-
var t = e.children, n = e.lockEnabled, i = e.captureEnabled, r = i === void 0 ? !0 : i, o = e.onBottomArrive, a = e.onBottomLeave, l = e.onTopArrive, s = e.onTopLeave,
|
|
9472
|
+
var t = e.children, n = e.lockEnabled, i = e.captureEnabled, r = i === void 0 ? !0 : i, o = e.onBottomArrive, a = e.onBottomLeave, l = e.onTopArrive, s = e.onTopLeave, u = f4({
|
|
9473
9473
|
isEnabled: r,
|
|
9474
9474
|
onBottomArrive: o,
|
|
9475
9475
|
onBottomLeave: a,
|
|
9476
9476
|
onTopArrive: l,
|
|
9477
9477
|
onTopLeave: s
|
|
9478
|
-
}),
|
|
9478
|
+
}), c = g4({
|
|
9479
9479
|
isEnabled: n
|
|
9480
9480
|
}), d = function(g) {
|
|
9481
|
-
|
|
9481
|
+
u(g), c(g);
|
|
9482
9482
|
};
|
|
9483
9483
|
return le(Ye, null, n && le("div", {
|
|
9484
9484
|
onClick: p4,
|
|
@@ -9724,10 +9724,10 @@ var hl = function(t) {
|
|
|
9724
9724
|
}, r.inputRef = null, r.getInputRef = function(l) {
|
|
9725
9725
|
r.inputRef = l;
|
|
9726
9726
|
}, r.focus = r.focusInput, r.blur = r.blurInput, r.onChange = function(l, s) {
|
|
9727
|
-
var
|
|
9728
|
-
s.name = d, r.ariaOnChange(l, s),
|
|
9729
|
-
}, r.setValue = function(l, s,
|
|
9730
|
-
var
|
|
9727
|
+
var u = r.props, c = u.onChange, d = u.name;
|
|
9728
|
+
s.name = d, r.ariaOnChange(l, s), c(l, s);
|
|
9729
|
+
}, r.setValue = function(l, s, u) {
|
|
9730
|
+
var c = r.props, d = c.closeMenuOnSelect, f = c.isMulti, g = c.inputValue;
|
|
9731
9731
|
r.onInputChange("", {
|
|
9732
9732
|
action: "set-value",
|
|
9733
9733
|
prevInputValue: g
|
|
@@ -9737,17 +9737,17 @@ var hl = function(t) {
|
|
|
9737
9737
|
clearFocusValueOnUpdate: !0
|
|
9738
9738
|
}), r.onChange(l, {
|
|
9739
9739
|
action: s,
|
|
9740
|
-
option:
|
|
9740
|
+
option: u
|
|
9741
9741
|
});
|
|
9742
9742
|
}, r.selectOption = function(l) {
|
|
9743
|
-
var s = r.props,
|
|
9743
|
+
var s = r.props, u = s.blurInputOnSelect, c = s.isMulti, d = s.name, f = r.state.selectValue, g = c && r.isOptionSelected(l, f), p = r.isOptionDisabled(l, f);
|
|
9744
9744
|
if (g) {
|
|
9745
9745
|
var C = r.getOptionValue(l);
|
|
9746
9746
|
r.setValue(f.filter(function(E) {
|
|
9747
9747
|
return r.getOptionValue(E) !== C;
|
|
9748
9748
|
}), "deselect-option", l);
|
|
9749
9749
|
} else if (!p)
|
|
9750
|
-
|
|
9750
|
+
c ? r.setValue([].concat(jn(f), [l]), "select-option", l) : r.setValue(l, "select-option");
|
|
9751
9751
|
else {
|
|
9752
9752
|
r.ariaOnChange(l, {
|
|
9753
9753
|
action: "select-option",
|
|
@@ -9756,10 +9756,10 @@ var hl = function(t) {
|
|
|
9756
9756
|
});
|
|
9757
9757
|
return;
|
|
9758
9758
|
}
|
|
9759
|
-
|
|
9759
|
+
u && r.blurInput();
|
|
9760
9760
|
}, r.removeValue = function(l) {
|
|
9761
|
-
var s = r.props.isMulti,
|
|
9762
|
-
return r.getOptionValue(g) !==
|
|
9761
|
+
var s = r.props.isMulti, u = r.state.selectValue, c = r.getOptionValue(l), d = u.filter(function(g) {
|
|
9762
|
+
return r.getOptionValue(g) !== c;
|
|
9763
9763
|
}), f = Hn(s, d, d[0] || null);
|
|
9764
9764
|
r.onChange(f, {
|
|
9765
9765
|
action: "remove-value",
|
|
@@ -9772,26 +9772,26 @@ var hl = function(t) {
|
|
|
9772
9772
|
removedValues: l
|
|
9773
9773
|
});
|
|
9774
9774
|
}, r.popValue = function() {
|
|
9775
|
-
var l = r.props.isMulti, s = r.state.selectValue,
|
|
9775
|
+
var l = r.props.isMulti, s = r.state.selectValue, u = s[s.length - 1], c = s.slice(0, s.length - 1), d = Hn(l, c, c[0] || null);
|
|
9776
9776
|
r.onChange(d, {
|
|
9777
9777
|
action: "pop-value",
|
|
9778
|
-
removedValue:
|
|
9778
|
+
removedValue: u
|
|
9779
9779
|
});
|
|
9780
9780
|
}, r.getValue = function() {
|
|
9781
9781
|
return r.state.selectValue;
|
|
9782
9782
|
}, r.cx = function() {
|
|
9783
|
-
for (var l = arguments.length, s = new Array(l),
|
|
9784
|
-
s[
|
|
9783
|
+
for (var l = arguments.length, s = new Array(l), u = 0; u < l; u++)
|
|
9784
|
+
s[u] = arguments[u];
|
|
9785
9785
|
return H3.apply(void 0, [r.props.classNamePrefix].concat(s));
|
|
9786
9786
|
}, r.getOptionLabel = function(l) {
|
|
9787
9787
|
return ml(r.props, l);
|
|
9788
9788
|
}, r.getOptionValue = function(l) {
|
|
9789
9789
|
return G1(r.props, l);
|
|
9790
9790
|
}, r.getStyles = function(l, s) {
|
|
9791
|
-
var
|
|
9792
|
-
|
|
9793
|
-
var
|
|
9794
|
-
return
|
|
9791
|
+
var u = y4[l](s);
|
|
9792
|
+
u.boxSizing = "border-box";
|
|
9793
|
+
var c = r.props.styles[l];
|
|
9794
|
+
return c ? c(u, s) : u;
|
|
9795
9795
|
}, r.getElementId = function(l) {
|
|
9796
9796
|
return "".concat(r.instancePrefix, "-").concat(l);
|
|
9797
9797
|
}, r.getComponents = function() {
|
|
@@ -9821,9 +9821,9 @@ var hl = function(t) {
|
|
|
9821
9821
|
}
|
|
9822
9822
|
}, r.onDropdownIndicatorMouseDown = function(l) {
|
|
9823
9823
|
if (!(l && l.type === "mousedown" && l.button !== 0) && !r.props.isDisabled) {
|
|
9824
|
-
var s = r.props,
|
|
9825
|
-
r.focusInput(),
|
|
9826
|
-
inputIsHiddenAfterUpdate: !
|
|
9824
|
+
var s = r.props, u = s.isMulti, c = s.menuIsOpen;
|
|
9825
|
+
r.focusInput(), c ? (r.setState({
|
|
9826
|
+
inputIsHiddenAfterUpdate: !u
|
|
9827
9827
|
}), r.onMenuClose()) : r.openMenu("first"), l.preventDefault();
|
|
9828
9828
|
}
|
|
9829
9829
|
}, r.onClearIndicatorMouseDown = function(l) {
|
|
@@ -9837,13 +9837,13 @@ var hl = function(t) {
|
|
|
9837
9837
|
}, r.onCompositionEnd = function() {
|
|
9838
9838
|
r.isComposing = !1;
|
|
9839
9839
|
}, r.onTouchStart = function(l) {
|
|
9840
|
-
var s = l.touches,
|
|
9841
|
-
!
|
|
9840
|
+
var s = l.touches, u = s && s.item(0);
|
|
9841
|
+
!u || (r.initialTouchX = u.clientX, r.initialTouchY = u.clientY, r.userIsDragging = !1);
|
|
9842
9842
|
}, r.onTouchMove = function(l) {
|
|
9843
|
-
var s = l.touches,
|
|
9844
|
-
if (!!
|
|
9845
|
-
var
|
|
9846
|
-
r.userIsDragging =
|
|
9843
|
+
var s = l.touches, u = s && s.item(0);
|
|
9844
|
+
if (!!u) {
|
|
9845
|
+
var c = Math.abs(u.clientX - r.initialTouchX), d = Math.abs(u.clientY - r.initialTouchY), f = 5;
|
|
9846
|
+
r.userIsDragging = c > f || d > f;
|
|
9847
9847
|
}
|
|
9848
9848
|
}, r.onTouchEnd = function(l) {
|
|
9849
9849
|
r.userIsDragging || (r.controlRef && !r.controlRef.contains(l.target) && r.menuListRef && !r.menuListRef.contains(l.target) && r.blurInput(), r.initialTouchX = 0, r.initialTouchY = 0);
|
|
@@ -9854,10 +9854,10 @@ var hl = function(t) {
|
|
|
9854
9854
|
}, r.onDropdownIndicatorTouchEnd = function(l) {
|
|
9855
9855
|
r.userIsDragging || r.onDropdownIndicatorMouseDown(l);
|
|
9856
9856
|
}, r.handleInputChange = function(l) {
|
|
9857
|
-
var s = r.props.inputValue,
|
|
9857
|
+
var s = r.props.inputValue, u = l.currentTarget.value;
|
|
9858
9858
|
r.setState({
|
|
9859
9859
|
inputIsHiddenAfterUpdate: !1
|
|
9860
|
-
}), r.onInputChange(
|
|
9860
|
+
}), r.onInputChange(u, {
|
|
9861
9861
|
action: "input-change",
|
|
9862
9862
|
prevInputValue: s
|
|
9863
9863
|
}), r.props.menuIsOpen || r.onMenuOpen();
|
|
@@ -9888,16 +9888,16 @@ var hl = function(t) {
|
|
|
9888
9888
|
}, r.onValueInputFocus = function(l) {
|
|
9889
9889
|
l.preventDefault(), l.stopPropagation(), r.focus();
|
|
9890
9890
|
}, r.onKeyDown = function(l) {
|
|
9891
|
-
var s = r.props,
|
|
9891
|
+
var s = r.props, u = s.isMulti, c = s.backspaceRemovesValue, d = s.escapeClearsValue, f = s.inputValue, g = s.isClearable, p = s.isDisabled, C = s.menuIsOpen, E = s.onKeyDown, v = s.tabSelectsValue, w = s.openMenuOnFocus, V = r.state, I = V.focusedOption, m = V.focusedValue, b = V.selectValue;
|
|
9892
9892
|
if (!p && !(typeof E == "function" && (E(l), l.defaultPrevented))) {
|
|
9893
9893
|
switch (r.blockOptionHover = !0, l.key) {
|
|
9894
9894
|
case "ArrowLeft":
|
|
9895
|
-
if (!
|
|
9895
|
+
if (!u || f)
|
|
9896
9896
|
return;
|
|
9897
9897
|
r.focusValue("previous");
|
|
9898
9898
|
break;
|
|
9899
9899
|
case "ArrowRight":
|
|
9900
|
-
if (!
|
|
9900
|
+
if (!u || f)
|
|
9901
9901
|
return;
|
|
9902
9902
|
r.focusValue("next");
|
|
9903
9903
|
break;
|
|
@@ -9908,9 +9908,9 @@ var hl = function(t) {
|
|
|
9908
9908
|
if (m)
|
|
9909
9909
|
r.removeValue(m);
|
|
9910
9910
|
else {
|
|
9911
|
-
if (!
|
|
9911
|
+
if (!c)
|
|
9912
9912
|
return;
|
|
9913
|
-
|
|
9913
|
+
u ? r.popValue() : g && r.clearValue();
|
|
9914
9914
|
}
|
|
9915
9915
|
break;
|
|
9916
9916
|
case "Tab":
|
|
@@ -10035,15 +10035,15 @@ var hl = function(t) {
|
|
|
10035
10035
|
}, {
|
|
10036
10036
|
key: "openMenu",
|
|
10037
10037
|
value: function(r) {
|
|
10038
|
-
var o = this, a = this.state, l = a.selectValue, s = a.isFocused,
|
|
10038
|
+
var o = this, a = this.state, l = a.selectValue, s = a.isFocused, u = this.buildFocusableOptions(), c = r === "first" ? 0 : u.length - 1;
|
|
10039
10039
|
if (!this.props.isMulti) {
|
|
10040
|
-
var d =
|
|
10041
|
-
d > -1 && (
|
|
10040
|
+
var d = u.indexOf(l[0]);
|
|
10041
|
+
d > -1 && (c = d);
|
|
10042
10042
|
}
|
|
10043
10043
|
this.scrollToFocusedOptionOnUpdate = !(s && this.menuListRef), this.setState({
|
|
10044
10044
|
inputIsHiddenAfterUpdate: !1,
|
|
10045
10045
|
focusedValue: null,
|
|
10046
|
-
focusedOption: c
|
|
10046
|
+
focusedOption: u[c]
|
|
10047
10047
|
}, function() {
|
|
10048
10048
|
return o.onMenuOpen();
|
|
10049
10049
|
});
|
|
@@ -10058,19 +10058,19 @@ var hl = function(t) {
|
|
|
10058
10058
|
});
|
|
10059
10059
|
var s = a.indexOf(l);
|
|
10060
10060
|
l || (s = -1);
|
|
10061
|
-
var
|
|
10061
|
+
var u = a.length - 1, c = -1;
|
|
10062
10062
|
if (!!a.length) {
|
|
10063
10063
|
switch (r) {
|
|
10064
10064
|
case "previous":
|
|
10065
|
-
s === 0 ?
|
|
10065
|
+
s === 0 ? c = 0 : s === -1 ? c = u : c = s - 1;
|
|
10066
10066
|
break;
|
|
10067
10067
|
case "next":
|
|
10068
|
-
s > -1 && s <
|
|
10068
|
+
s > -1 && s < u && (c = s + 1);
|
|
10069
10069
|
break;
|
|
10070
10070
|
}
|
|
10071
10071
|
this.setState({
|
|
10072
|
-
inputIsHidden:
|
|
10073
|
-
focusedValue: a[
|
|
10072
|
+
inputIsHidden: c !== -1,
|
|
10073
|
+
focusedValue: a[c]
|
|
10074
10074
|
});
|
|
10075
10075
|
}
|
|
10076
10076
|
}
|
|
@@ -10080,8 +10080,8 @@ var hl = function(t) {
|
|
|
10080
10080
|
value: function() {
|
|
10081
10081
|
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "first", o = this.props.pageSize, a = this.state.focusedOption, l = this.getFocusableOptions();
|
|
10082
10082
|
if (!!l.length) {
|
|
10083
|
-
var s = 0,
|
|
10084
|
-
a || (
|
|
10083
|
+
var s = 0, u = l.indexOf(a);
|
|
10084
|
+
a || (u = -1), r === "up" ? s = u > 0 ? u - 1 : l.length - 1 : r === "down" ? s = (u + 1) % l.length : r === "pageup" ? (s = u - o, s < 0 && (s = 0)) : r === "pagedown" ? (s = u + o, s > l.length - 1 && (s = l.length - 1)) : r === "last" && (s = l.length - 1), this.scrollToFocusedOptionOnUpdate = !0, this.setState({
|
|
10085
10085
|
focusedOption: l[s],
|
|
10086
10086
|
focusedValue: null
|
|
10087
10087
|
});
|
|
@@ -10095,7 +10095,7 @@ var hl = function(t) {
|
|
|
10095
10095
|
}, {
|
|
10096
10096
|
key: "getCommonProps",
|
|
10097
10097
|
value: function() {
|
|
10098
|
-
var r = this.clearValue, o = this.cx, a = this.getStyles, l = this.getValue, s = this.selectOption,
|
|
10098
|
+
var r = this.clearValue, o = this.cx, a = this.getStyles, l = this.getValue, s = this.selectOption, u = this.setValue, c = this.props, d = c.isMulti, f = c.isRtl, g = c.options, p = this.hasValue();
|
|
10099
10099
|
return {
|
|
10100
10100
|
clearValue: r,
|
|
10101
10101
|
cx: o,
|
|
@@ -10106,8 +10106,8 @@ var hl = function(t) {
|
|
|
10106
10106
|
isRtl: f,
|
|
10107
10107
|
options: g,
|
|
10108
10108
|
selectOption: s,
|
|
10109
|
-
selectProps:
|
|
10110
|
-
setValue:
|
|
10109
|
+
selectProps: c,
|
|
10110
|
+
setValue: u,
|
|
10111
10111
|
theme: this.getTheme()
|
|
10112
10112
|
};
|
|
10113
10113
|
}
|
|
@@ -10184,7 +10184,7 @@ var hl = function(t) {
|
|
|
10184
10184
|
}, {
|
|
10185
10185
|
key: "renderInput",
|
|
10186
10186
|
value: function() {
|
|
10187
|
-
var r = this.props, o = r.isDisabled, a = r.isSearchable, l = r.inputId, s = r.inputValue,
|
|
10187
|
+
var r = this.props, o = r.isDisabled, a = r.isSearchable, l = r.inputId, s = r.inputValue, u = r.tabIndex, c = r.form, d = r.menuIsOpen, f = r.required, g = this.getComponents(), p = g.Input, C = this.state, E = C.inputIsHidden, v = C.ariaSelection, w = this.commonProps, V = l || this.getElementId("input"), I = Se(Se(Se({
|
|
10188
10188
|
"aria-autocomplete": "list",
|
|
10189
10189
|
"aria-expanded": d,
|
|
10190
10190
|
"aria-haspopup": !0,
|
|
@@ -10217,8 +10217,8 @@ var hl = function(t) {
|
|
|
10217
10217
|
onChange: this.handleInputChange,
|
|
10218
10218
|
onFocus: this.onInputFocus,
|
|
10219
10219
|
spellCheck: "false",
|
|
10220
|
-
tabIndex:
|
|
10221
|
-
form:
|
|
10220
|
+
tabIndex: u,
|
|
10221
|
+
form: c,
|
|
10222
10222
|
type: "text",
|
|
10223
10223
|
value: s,
|
|
10224
10224
|
...I
|
|
@@ -10229,9 +10229,9 @@ var hl = function(t) {
|
|
|
10229
10229
|
onChange: D1,
|
|
10230
10230
|
onFocus: this.onInputFocus,
|
|
10231
10231
|
disabled: o,
|
|
10232
|
-
tabIndex:
|
|
10232
|
+
tabIndex: u,
|
|
10233
10233
|
inputMode: "none",
|
|
10234
|
-
form:
|
|
10234
|
+
form: c,
|
|
10235
10235
|
value: "",
|
|
10236
10236
|
...I
|
|
10237
10237
|
});
|
|
@@ -10239,7 +10239,7 @@ var hl = function(t) {
|
|
|
10239
10239
|
}, {
|
|
10240
10240
|
key: "renderPlaceholderOrValue",
|
|
10241
10241
|
value: function() {
|
|
10242
|
-
var r = this, o = this.getComponents(), a = o.MultiValue, l = o.MultiValueContainer, s = o.MultiValueLabel,
|
|
10242
|
+
var r = this, o = this.getComponents(), a = o.MultiValue, l = o.MultiValueContainer, s = o.MultiValueLabel, u = o.MultiValueRemove, c = o.SingleValue, d = o.Placeholder, f = this.commonProps, g = this.props, p = g.controlShouldRenderValue, C = g.isDisabled, E = g.isMulti, v = g.inputValue, w = g.placeholder, V = this.state, I = V.selectValue, m = V.focusedValue, b = V.isFocused;
|
|
10243
10243
|
if (!this.hasValue() || !p)
|
|
10244
10244
|
return v ? null : /* @__PURE__ */ It(d, {
|
|
10245
10245
|
...f,
|
|
@@ -10258,7 +10258,7 @@ var hl = function(t) {
|
|
|
10258
10258
|
components: {
|
|
10259
10259
|
Container: l,
|
|
10260
10260
|
Label: s,
|
|
10261
|
-
Remove:
|
|
10261
|
+
Remove: u
|
|
10262
10262
|
},
|
|
10263
10263
|
isFocused: N,
|
|
10264
10264
|
isDisabled: C,
|
|
@@ -10281,7 +10281,7 @@ var hl = function(t) {
|
|
|
10281
10281
|
if (v)
|
|
10282
10282
|
return null;
|
|
10283
10283
|
var h = I[0];
|
|
10284
|
-
return /* @__PURE__ */ A(
|
|
10284
|
+
return /* @__PURE__ */ A(c, {
|
|
10285
10285
|
...f,
|
|
10286
10286
|
data: h,
|
|
10287
10287
|
isDisabled: C,
|
|
@@ -10291,8 +10291,8 @@ var hl = function(t) {
|
|
|
10291
10291
|
}, {
|
|
10292
10292
|
key: "renderClearIndicator",
|
|
10293
10293
|
value: function() {
|
|
10294
|
-
var r = this.getComponents(), o = r.ClearIndicator, a = this.commonProps, l = this.props, s = l.isDisabled,
|
|
10295
|
-
if (!this.isClearable() || !o || s || !this.hasValue() ||
|
|
10294
|
+
var r = this.getComponents(), o = r.ClearIndicator, a = this.commonProps, l = this.props, s = l.isDisabled, u = l.isLoading, c = this.state.isFocused;
|
|
10295
|
+
if (!this.isClearable() || !o || s || !this.hasValue() || u)
|
|
10296
10296
|
return null;
|
|
10297
10297
|
var d = {
|
|
10298
10298
|
onMouseDown: this.onClearIndicatorMouseDown,
|
|
@@ -10302,14 +10302,14 @@ var hl = function(t) {
|
|
|
10302
10302
|
return /* @__PURE__ */ A(o, {
|
|
10303
10303
|
...a,
|
|
10304
10304
|
innerProps: d,
|
|
10305
|
-
isFocused:
|
|
10305
|
+
isFocused: c
|
|
10306
10306
|
});
|
|
10307
10307
|
}
|
|
10308
10308
|
}, {
|
|
10309
10309
|
key: "renderLoadingIndicator",
|
|
10310
10310
|
value: function() {
|
|
10311
|
-
var r = this.getComponents(), o = r.LoadingIndicator, a = this.commonProps, l = this.props, s = l.isDisabled,
|
|
10312
|
-
if (!o || !
|
|
10311
|
+
var r = this.getComponents(), o = r.LoadingIndicator, a = this.commonProps, l = this.props, s = l.isDisabled, u = l.isLoading, c = this.state.isFocused;
|
|
10312
|
+
if (!o || !u)
|
|
10313
10313
|
return null;
|
|
10314
10314
|
var d = {
|
|
10315
10315
|
"aria-hidden": "true"
|
|
@@ -10318,7 +10318,7 @@ var hl = function(t) {
|
|
|
10318
10318
|
...a,
|
|
10319
10319
|
innerProps: d,
|
|
10320
10320
|
isDisabled: s,
|
|
10321
|
-
isFocused:
|
|
10321
|
+
isFocused: c
|
|
10322
10322
|
});
|
|
10323
10323
|
}
|
|
10324
10324
|
}, {
|
|
@@ -10327,11 +10327,11 @@ var hl = function(t) {
|
|
|
10327
10327
|
var r = this.getComponents(), o = r.DropdownIndicator, a = r.IndicatorSeparator;
|
|
10328
10328
|
if (!o || !a)
|
|
10329
10329
|
return null;
|
|
10330
|
-
var l = this.commonProps, s = this.props.isDisabled,
|
|
10330
|
+
var l = this.commonProps, s = this.props.isDisabled, u = this.state.isFocused;
|
|
10331
10331
|
return /* @__PURE__ */ A(a, {
|
|
10332
10332
|
...l,
|
|
10333
10333
|
isDisabled: s,
|
|
10334
|
-
isFocused:
|
|
10334
|
+
isFocused: u
|
|
10335
10335
|
});
|
|
10336
10336
|
}
|
|
10337
10337
|
}, {
|
|
@@ -10340,14 +10340,14 @@ var hl = function(t) {
|
|
|
10340
10340
|
var r = this.getComponents(), o = r.DropdownIndicator;
|
|
10341
10341
|
if (!o)
|
|
10342
10342
|
return null;
|
|
10343
|
-
var a = this.commonProps, l = this.props.isDisabled, s = this.state.isFocused,
|
|
10343
|
+
var a = this.commonProps, l = this.props.isDisabled, s = this.state.isFocused, u = {
|
|
10344
10344
|
onMouseDown: this.onDropdownIndicatorMouseDown,
|
|
10345
10345
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
10346
10346
|
"aria-hidden": "true"
|
|
10347
10347
|
};
|
|
10348
10348
|
return /* @__PURE__ */ A(o, {
|
|
10349
10349
|
...a,
|
|
10350
|
-
innerProps:
|
|
10350
|
+
innerProps: u,
|
|
10351
10351
|
isDisabled: l,
|
|
10352
10352
|
isFocused: s
|
|
10353
10353
|
});
|
|
@@ -10355,7 +10355,7 @@ var hl = function(t) {
|
|
|
10355
10355
|
}, {
|
|
10356
10356
|
key: "renderMenu",
|
|
10357
10357
|
value: function() {
|
|
10358
|
-
var r = this, o = this.getComponents(), a = o.Group, l = o.GroupHeading, s = o.Menu,
|
|
10358
|
+
var r = this, o = this.getComponents(), a = o.Group, l = o.GroupHeading, s = o.Menu, u = o.MenuList, c = o.MenuPortal, d = o.LoadingMessage, f = o.NoOptionsMessage, g = o.Option, p = this.commonProps, C = this.state.focusedOption, E = this.props, v = E.captureMenuScroll, w = E.inputValue, V = E.isLoading, I = E.loadingMessage, m = E.minMenuHeight, b = E.maxMenuHeight, h = E.menuIsOpen, x = E.menuPlacement, Q = E.menuPosition, N = E.menuPortalTarget, H = E.menuShouldBlockScroll, Z = E.menuShouldScrollIntoView, j = E.noOptionsMessage, D = E.onMenuScrollToTop, G = E.onMenuScrollToBottom;
|
|
10359
10359
|
if (!h)
|
|
10360
10360
|
return null;
|
|
10361
10361
|
var T = function(P, R) {
|
|
@@ -10454,7 +10454,7 @@ var hl = function(t) {
|
|
|
10454
10454
|
onBottomArrive: G,
|
|
10455
10455
|
lockEnabled: H,
|
|
10456
10456
|
children: function(k) {
|
|
10457
|
-
return /* @__PURE__ */ A(
|
|
10457
|
+
return /* @__PURE__ */ A(u, {
|
|
10458
10458
|
...p,
|
|
10459
10459
|
innerRef: function(J) {
|
|
10460
10460
|
r.getMenuListRef(J), k(J);
|
|
@@ -10469,7 +10469,7 @@ var hl = function(t) {
|
|
|
10469
10469
|
});
|
|
10470
10470
|
}
|
|
10471
10471
|
});
|
|
10472
|
-
return N || Q === "fixed" ? /* @__PURE__ */ A(
|
|
10472
|
+
return N || Q === "fixed" ? /* @__PURE__ */ A(c, {
|
|
10473
10473
|
...p,
|
|
10474
10474
|
appendTo: N,
|
|
10475
10475
|
controlElement: this.controlRef,
|
|
@@ -10481,11 +10481,11 @@ var hl = function(t) {
|
|
|
10481
10481
|
}, {
|
|
10482
10482
|
key: "renderFormField",
|
|
10483
10483
|
value: function() {
|
|
10484
|
-
var r = this, o = this.props, a = o.delimiter, l = o.isDisabled, s = o.isMulti,
|
|
10485
|
-
if (!(!
|
|
10486
|
-
if (
|
|
10484
|
+
var r = this, o = this.props, a = o.delimiter, l = o.isDisabled, s = o.isMulti, u = o.name, c = o.required, d = this.state.selectValue;
|
|
10485
|
+
if (!(!u || l)) {
|
|
10486
|
+
if (c && !this.hasValue())
|
|
10487
10487
|
return /* @__PURE__ */ A(h4, {
|
|
10488
|
-
name:
|
|
10488
|
+
name: u,
|
|
10489
10489
|
onFocus: this.onValueInputFocus
|
|
10490
10490
|
});
|
|
10491
10491
|
if (s)
|
|
@@ -10494,19 +10494,19 @@ var hl = function(t) {
|
|
|
10494
10494
|
return r.getOptionValue(C);
|
|
10495
10495
|
}).join(a);
|
|
10496
10496
|
return /* @__PURE__ */ A("input", {
|
|
10497
|
-
name:
|
|
10497
|
+
name: u,
|
|
10498
10498
|
type: "hidden",
|
|
10499
10499
|
value: f
|
|
10500
10500
|
});
|
|
10501
10501
|
} else {
|
|
10502
10502
|
var g = d.length > 0 ? d.map(function(C, E) {
|
|
10503
10503
|
return /* @__PURE__ */ A("input", {
|
|
10504
|
-
name:
|
|
10504
|
+
name: u,
|
|
10505
10505
|
type: "hidden",
|
|
10506
10506
|
value: r.getOptionValue(C)
|
|
10507
10507
|
}, "i-".concat(E));
|
|
10508
10508
|
}) : /* @__PURE__ */ A("input", {
|
|
10509
|
-
name:
|
|
10509
|
+
name: u,
|
|
10510
10510
|
type: "hidden",
|
|
10511
10511
|
value: ""
|
|
10512
10512
|
});
|
|
@@ -10517,7 +10517,7 @@ var hl = function(t) {
|
|
|
10517
10517
|
else {
|
|
10518
10518
|
var p = d[0] ? this.getOptionValue(d[0]) : "";
|
|
10519
10519
|
return /* @__PURE__ */ A("input", {
|
|
10520
|
-
name:
|
|
10520
|
+
name: u,
|
|
10521
10521
|
type: "hidden",
|
|
10522
10522
|
value: p
|
|
10523
10523
|
});
|
|
@@ -10527,25 +10527,25 @@ var hl = function(t) {
|
|
|
10527
10527
|
}, {
|
|
10528
10528
|
key: "renderLiveRegion",
|
|
10529
10529
|
value: function() {
|
|
10530
|
-
var r = this.commonProps, o = this.state, a = o.ariaSelection, l = o.focusedOption, s = o.focusedValue,
|
|
10530
|
+
var r = this.commonProps, o = this.state, a = o.ariaSelection, l = o.focusedOption, s = o.focusedValue, u = o.isFocused, c = o.selectValue, d = this.getFocusableOptions();
|
|
10531
10531
|
return /* @__PURE__ */ A(o4, {
|
|
10532
10532
|
...r,
|
|
10533
10533
|
id: this.getElementId("live-region"),
|
|
10534
10534
|
ariaSelection: a,
|
|
10535
10535
|
focusedOption: l,
|
|
10536
10536
|
focusedValue: s,
|
|
10537
|
-
isFocused:
|
|
10538
|
-
selectValue:
|
|
10537
|
+
isFocused: u,
|
|
10538
|
+
selectValue: c,
|
|
10539
10539
|
focusableOptions: d
|
|
10540
10540
|
});
|
|
10541
10541
|
}
|
|
10542
10542
|
}, {
|
|
10543
10543
|
key: "render",
|
|
10544
10544
|
value: function() {
|
|
10545
|
-
var r = this.getComponents(), o = r.Control, a = r.IndicatorsContainer, l = r.SelectContainer, s = r.ValueContainer,
|
|
10545
|
+
var r = this.getComponents(), o = r.Control, a = r.IndicatorsContainer, l = r.SelectContainer, s = r.ValueContainer, u = this.props, c = u.className, d = u.id, f = u.isDisabled, g = u.menuIsOpen, p = this.state.isFocused, C = this.commonProps = this.getCommonProps();
|
|
10546
10546
|
return /* @__PURE__ */ _(l, {
|
|
10547
10547
|
...C,
|
|
10548
|
-
className:
|
|
10548
|
+
className: c,
|
|
10549
10549
|
innerProps: {
|
|
10550
10550
|
id: d,
|
|
10551
10551
|
onKeyDown: this.onKeyDown
|
|
@@ -10577,7 +10577,7 @@ var hl = function(t) {
|
|
|
10577
10577
|
}], [{
|
|
10578
10578
|
key: "getDerivedStateFromProps",
|
|
10579
10579
|
value: function(r, o) {
|
|
10580
|
-
var a = o.prevProps, l = o.clearFocusValueOnUpdate, s = o.inputIsHiddenAfterUpdate,
|
|
10580
|
+
var a = o.prevProps, l = o.clearFocusValueOnUpdate, s = o.inputIsHiddenAfterUpdate, u = o.ariaSelection, c = o.isFocused, d = o.prevWasFocused, f = r.options, g = r.value, p = r.menuIsOpen, C = r.inputValue, E = r.isMulti, v = L1(g), w = {};
|
|
10581
10581
|
if (a && (g !== a.value || f !== a.options || p !== a.menuIsOpen || C !== a.inputValue)) {
|
|
10582
10582
|
var V = p ? P4(r, v) : [], I = l ? M4(o, v) : null, m = F4(o, V);
|
|
10583
10583
|
w = {
|
|
@@ -10590,12 +10590,12 @@ var hl = function(t) {
|
|
|
10590
10590
|
var b = s != null && r !== a ? {
|
|
10591
10591
|
inputIsHidden: s,
|
|
10592
10592
|
inputIsHiddenAfterUpdate: void 0
|
|
10593
|
-
} : {}, h =
|
|
10594
|
-
return
|
|
10593
|
+
} : {}, h = u, x = c && d;
|
|
10594
|
+
return c && !x && (h = {
|
|
10595
10595
|
value: Hn(E, v, v[0] || null),
|
|
10596
10596
|
options: v,
|
|
10597
10597
|
action: "initial-input-focus"
|
|
10598
|
-
}, x = !d), (
|
|
10598
|
+
}, x = !d), (u == null ? void 0 : u.action) === "initial-input-focus" && (h = null), Se(Se(Se({}, w), b), {}, {
|
|
10599
10599
|
prevProps: r,
|
|
10600
10600
|
ariaSelection: h,
|
|
10601
10601
|
prevWasFocused: x
|
|
@@ -10828,8 +10828,8 @@ function Q7({
|
|
|
10828
10828
|
helpText: a = "",
|
|
10829
10829
|
hasLabelPlaceholder: l = !1,
|
|
10830
10830
|
onChange: s,
|
|
10831
|
-
isSearchable:
|
|
10832
|
-
isClearable:
|
|
10831
|
+
isSearchable: u = !1,
|
|
10832
|
+
isClearable: c = !0,
|
|
10833
10833
|
error: d = "",
|
|
10834
10834
|
isError: f,
|
|
10835
10835
|
showErrorText: g,
|
|
@@ -10863,7 +10863,7 @@ function Q7({
|
|
|
10863
10863
|
name: o,
|
|
10864
10864
|
placeholder: t,
|
|
10865
10865
|
isDisabled: i,
|
|
10866
|
-
isClearable:
|
|
10866
|
+
isClearable: c,
|
|
10867
10867
|
styles: h,
|
|
10868
10868
|
iconTooltip: m,
|
|
10869
10869
|
hasLabelPlaceholder: l,
|
|
@@ -10873,7 +10873,7 @@ function Q7({
|
|
|
10873
10873
|
}, N = {
|
|
10874
10874
|
onBlur: p,
|
|
10875
10875
|
options: e,
|
|
10876
|
-
isSearchable:
|
|
10876
|
+
isSearchable: u,
|
|
10877
10877
|
components: x
|
|
10878
10878
|
}, H = () => (n == null ? void 0 : n.label) && (n == null ? void 0 : n.value) ? n : void 0, Z = () => (C == null ? void 0 : C.label) && (C == null ? void 0 : C.value) ? C : void 0;
|
|
10879
10879
|
return /* @__PURE__ */ A(l1, {
|
|
@@ -10895,7 +10895,7 @@ var D4 = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
|
|
|
10895
10895
|
function bl(e) {
|
|
10896
10896
|
var t = e.defaultOptions, n = t === void 0 ? !1 : t, i = e.cacheOptions, r = i === void 0 ? !1 : i, o = e.loadOptions;
|
|
10897
10897
|
e.options;
|
|
10898
|
-
var a = e.isLoading, l = a === void 0 ? !1 : a, s = e.onInputChange,
|
|
10898
|
+
var a = e.isLoading, l = a === void 0 ? !1 : a, s = e.onInputChange, u = e.filterOption, c = u === void 0 ? null : u, d = on(e, D4), f = d.inputValue, g = oe(void 0), p = oe(!1), C = ae(Array.isArray(n) ? n : void 0), E = rt(C, 2), v = E[0], w = E[1], V = ae(typeof f < "u" ? f : ""), I = rt(V, 2), m = I[0], b = I[1], h = ae(n === !0), x = rt(h, 2), Q = x[0], N = x[1], H = ae(void 0), Z = rt(H, 2), j = Z[0], D = Z[1], G = ae([]), T = rt(G, 2), Y = T[0], z = T[1], re = ae(!1), F = rt(re, 2), X = F[0], O = F[1], P = ae({}), R = rt(P, 2), M = R[0], L = R[1], k = ae(void 0), q = rt(k, 2), J = q[0], W = q[1], ie = ae(void 0), S = rt(ie, 2), $ = S[0], ne = S[1];
|
|
10899
10899
|
r !== $ && (L({}), ne(r)), n !== J && (w(Array.isArray(n) ? n : void 0), W(n)), ve(function() {
|
|
10900
10900
|
return p.current = !0, function() {
|
|
10901
10901
|
p.current = !1;
|
|
@@ -10933,7 +10933,7 @@ function bl(e) {
|
|
|
10933
10933
|
options: Ge,
|
|
10934
10934
|
isLoading: Q || l,
|
|
10935
10935
|
onInputChange: Ae,
|
|
10936
|
-
filterOption:
|
|
10936
|
+
filterOption: c
|
|
10937
10937
|
});
|
|
10938
10938
|
}
|
|
10939
10939
|
var L4 = /* @__PURE__ */ St(function(e, t) {
|
|
@@ -10953,8 +10953,8 @@ function V7({
|
|
|
10953
10953
|
isDisabled: a = !1,
|
|
10954
10954
|
isClearable: l = !0,
|
|
10955
10955
|
defaultValue: s,
|
|
10956
|
-
onChange:
|
|
10957
|
-
isLoading:
|
|
10956
|
+
onChange: u,
|
|
10957
|
+
isLoading: c,
|
|
10958
10958
|
loadOptions: d,
|
|
10959
10959
|
isError: f,
|
|
10960
10960
|
showErrorText: g,
|
|
@@ -11004,14 +11004,14 @@ function V7({
|
|
|
11004
11004
|
children: /* @__PURE__ */ A(L4, {
|
|
11005
11005
|
...Q,
|
|
11006
11006
|
cacheOptions: !0,
|
|
11007
|
-
isLoading:
|
|
11007
|
+
isLoading: c,
|
|
11008
11008
|
onBlur: p,
|
|
11009
11009
|
menuIsOpen: E,
|
|
11010
11010
|
components: x,
|
|
11011
11011
|
defaultOptions: !0,
|
|
11012
11012
|
defaultValue: N(),
|
|
11013
11013
|
value: H(),
|
|
11014
|
-
onChange: (Z) =>
|
|
11014
|
+
onChange: (Z) => u && u(Z),
|
|
11015
11015
|
loadOptions: (Z) => d && d(Z)
|
|
11016
11016
|
})
|
|
11017
11017
|
});
|
|
@@ -11026,10 +11026,10 @@ const k4 = ({
|
|
|
11026
11026
|
}) => {
|
|
11027
11027
|
const o = n.data;
|
|
11028
11028
|
if (o.notSelect) {
|
|
11029
|
-
const a = n.selectProps, l = (
|
|
11030
|
-
var
|
|
11029
|
+
const a = n.selectProps, l = (u) => {
|
|
11030
|
+
var c;
|
|
11031
11031
|
if (o.notSelect)
|
|
11032
|
-
return
|
|
11032
|
+
return u(o), (c = a.onClickFirstItem) == null ? void 0 : c.call(a, o);
|
|
11033
11033
|
}, s = {
|
|
11034
11034
|
addButton: () => l(a.addButton)
|
|
11035
11035
|
};
|
|
@@ -11067,8 +11067,8 @@ function P7({
|
|
|
11067
11067
|
name: a = "default",
|
|
11068
11068
|
helpText: l = "",
|
|
11069
11069
|
hasLabelPlaceholder: s = !1,
|
|
11070
|
-
onChange:
|
|
11071
|
-
isSearchable:
|
|
11070
|
+
onChange: u,
|
|
11071
|
+
isSearchable: c = !0,
|
|
11072
11072
|
isClearable: d = !0,
|
|
11073
11073
|
alignButton: f = "start",
|
|
11074
11074
|
onClickFirstItem: g,
|
|
@@ -11116,7 +11116,7 @@ function P7({
|
|
|
11116
11116
|
loadingMessage: () => I
|
|
11117
11117
|
}, Z = {
|
|
11118
11118
|
onBlur: E,
|
|
11119
|
-
isSearchable:
|
|
11119
|
+
isSearchable: c,
|
|
11120
11120
|
options: e,
|
|
11121
11121
|
components: N
|
|
11122
11122
|
}, j = () => (n == null ? void 0 : n.label) && (n == null ? void 0 : n.value) ? n : void 0, D = () => (V == null ? void 0 : V.label) && (V == null ? void 0 : V.value) ? V : void 0;
|
|
@@ -11132,7 +11132,7 @@ function P7({
|
|
|
11132
11132
|
className: "font-sans",
|
|
11133
11133
|
defaultValue: j(),
|
|
11134
11134
|
value: D(),
|
|
11135
|
-
onChange: (G) =>
|
|
11135
|
+
onChange: (G) => u && u(G),
|
|
11136
11136
|
addButton: g
|
|
11137
11137
|
})
|
|
11138
11138
|
});
|
|
@@ -11224,8 +11224,8 @@ function M7({
|
|
|
11224
11224
|
error: a = "",
|
|
11225
11225
|
isSearchable: l = !1,
|
|
11226
11226
|
helpText: s = "",
|
|
11227
|
-
onChange:
|
|
11228
|
-
isClearable:
|
|
11227
|
+
onChange: u,
|
|
11228
|
+
isClearable: c = !0,
|
|
11229
11229
|
isError: d,
|
|
11230
11230
|
showErrorText: f,
|
|
11231
11231
|
onBlur: g,
|
|
@@ -11260,7 +11260,7 @@ function M7({
|
|
|
11260
11260
|
name: t,
|
|
11261
11261
|
placeholder: n,
|
|
11262
11262
|
isDisabled: o,
|
|
11263
|
-
isClearable:
|
|
11263
|
+
isClearable: c,
|
|
11264
11264
|
styles: m,
|
|
11265
11265
|
iconTooltip: I,
|
|
11266
11266
|
noOptionsMessage: () => w,
|
|
@@ -11282,7 +11282,7 @@ function M7({
|
|
|
11282
11282
|
menuIsOpen: p,
|
|
11283
11283
|
defaultValue: Q(),
|
|
11284
11284
|
value: N(),
|
|
11285
|
-
onChange: (H) =>
|
|
11285
|
+
onChange: (H) => u && u(H)
|
|
11286
11286
|
})
|
|
11287
11287
|
});
|
|
11288
11288
|
}
|
|
@@ -11309,12 +11309,12 @@ var z4 = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
|
|
|
11309
11309
|
}
|
|
11310
11310
|
};
|
|
11311
11311
|
function W4(e) {
|
|
11312
|
-
var t = e.allowCreateWhileLoading, n = t === void 0 ? !1 : t, i = e.createOptionPosition, r = i === void 0 ? "last" : i, o = e.formatCreateLabel, a = o === void 0 ? Vr.formatCreateLabel : o, l = e.isValidNewOption, s = l === void 0 ? Vr.isValidNewOption : l,
|
|
11312
|
+
var t = e.allowCreateWhileLoading, n = t === void 0 ? !1 : t, i = e.createOptionPosition, r = i === void 0 ? "last" : i, o = e.formatCreateLabel, a = o === void 0 ? Vr.formatCreateLabel : o, l = e.isValidNewOption, s = l === void 0 ? Vr.isValidNewOption : l, u = e.getNewOptionData, c = u === void 0 ? Vr.getNewOptionData : u, d = e.onCreateOption, f = e.options, g = f === void 0 ? [] : f, p = e.onChange, C = on(e, z4), E = C.getOptionValue, v = E === void 0 ? fl : E, w = C.getOptionLabel, V = w === void 0 ? Al : w, I = C.inputValue, m = C.isLoading, b = C.isMulti, h = C.value, x = C.name, Q = se(function() {
|
|
11313
11313
|
return s(I, L1(h), g, {
|
|
11314
11314
|
getOptionValue: v,
|
|
11315
11315
|
getOptionLabel: V
|
|
11316
|
-
}) ?
|
|
11317
|
-
}, [a,
|
|
11316
|
+
}) ? c(I, a(I)) : void 0;
|
|
11317
|
+
}, [a, c, V, v, I, s, g, h]), N = se(function() {
|
|
11318
11318
|
return (n || !m) && Q ? r === "first" ? [Q].concat(jn(g)) : [].concat(jn(g), [Q]) : g;
|
|
11319
11319
|
}, [n, r, m, Q, g]), H = Je(function(Z, j) {
|
|
11320
11320
|
if (j.action !== "select-option")
|
|
@@ -11324,7 +11324,7 @@ function W4(e) {
|
|
|
11324
11324
|
if (d)
|
|
11325
11325
|
d(I);
|
|
11326
11326
|
else {
|
|
11327
|
-
var G =
|
|
11327
|
+
var G = c(I, I), T = {
|
|
11328
11328
|
action: "create-option",
|
|
11329
11329
|
name: x,
|
|
11330
11330
|
option: G
|
|
@@ -11334,7 +11334,7 @@ function W4(e) {
|
|
|
11334
11334
|
return;
|
|
11335
11335
|
}
|
|
11336
11336
|
p(Z, j);
|
|
11337
|
-
}, [
|
|
11337
|
+
}, [c, I, b, x, Q, d, p, h]);
|
|
11338
11338
|
return Se(Se({}, C), {}, {
|
|
11339
11339
|
options: N,
|
|
11340
11340
|
onChange: H
|
|
@@ -11357,8 +11357,8 @@ function F7({
|
|
|
11357
11357
|
isDisabled: a = !1,
|
|
11358
11358
|
isClearable: l = !0,
|
|
11359
11359
|
defaultValue: s,
|
|
11360
|
-
onChange:
|
|
11361
|
-
isLoading:
|
|
11360
|
+
onChange: u,
|
|
11361
|
+
isLoading: c,
|
|
11362
11362
|
loadOptions: d,
|
|
11363
11363
|
isError: f,
|
|
11364
11364
|
showErrorText: g,
|
|
@@ -11410,7 +11410,7 @@ function F7({
|
|
|
11410
11410
|
label: z,
|
|
11411
11411
|
value: z
|
|
11412
11412
|
};
|
|
11413
|
-
N(F),
|
|
11413
|
+
N(F), u == null || u(F);
|
|
11414
11414
|
}
|
|
11415
11415
|
return Q;
|
|
11416
11416
|
}, [Q]);
|
|
@@ -11423,7 +11423,7 @@ function F7({
|
|
|
11423
11423
|
...j,
|
|
11424
11424
|
cacheOptions: !0,
|
|
11425
11425
|
menuIsOpen: E,
|
|
11426
|
-
isLoading:
|
|
11426
|
+
isLoading: c,
|
|
11427
11427
|
defaultOptions: !0,
|
|
11428
11428
|
onBlur: p,
|
|
11429
11429
|
components: Z,
|
|
@@ -11437,11 +11437,11 @@ function F7({
|
|
|
11437
11437
|
onChange: (z, {
|
|
11438
11438
|
action: re
|
|
11439
11439
|
}) => {
|
|
11440
|
-
if (
|
|
11440
|
+
if (u && (u(z), re === "clear"))
|
|
11441
11441
|
return N({
|
|
11442
11442
|
label: "",
|
|
11443
11443
|
value: ""
|
|
11444
|
-
}),
|
|
11444
|
+
}), u({
|
|
11445
11445
|
label: "",
|
|
11446
11446
|
value: ""
|
|
11447
11447
|
});
|
|
@@ -11472,7 +11472,7 @@ function O7({
|
|
|
11472
11472
|
selected: a,
|
|
11473
11473
|
isDisabled: l,
|
|
11474
11474
|
nameTab: s,
|
|
11475
|
-
total:
|
|
11475
|
+
total: u
|
|
11476
11476
|
}) => t === "fitted" ? /* @__PURE__ */ _(Ie, {
|
|
11477
11477
|
variant: "button",
|
|
11478
11478
|
color: i({
|
|
@@ -11483,12 +11483,12 @@ function O7({
|
|
|
11483
11483
|
selected: a,
|
|
11484
11484
|
isDisabled: l
|
|
11485
11485
|
})),
|
|
11486
|
-
children: [s,
|
|
11486
|
+
children: [s, u && /* @__PURE__ */ A("span", {
|
|
11487
11487
|
className: K("flex h-5 items-center rounded-sm bg-surface-neutral-default py-[2px] px-2", r({
|
|
11488
11488
|
selected: a,
|
|
11489
11489
|
isDisabled: l
|
|
11490
11490
|
})),
|
|
11491
|
-
children:
|
|
11491
|
+
children: u
|
|
11492
11492
|
})]
|
|
11493
11493
|
}) : /* @__PURE__ */ A(Ie, {
|
|
11494
11494
|
variant: "button",
|
|
@@ -11512,23 +11512,23 @@ function O7({
|
|
|
11512
11512
|
children: Object.entries(e).map(([a, {
|
|
11513
11513
|
isDisabled: l,
|
|
11514
11514
|
total: s
|
|
11515
|
-
}],
|
|
11515
|
+
}], u) => /* @__PURE__ */ A(Nn, {
|
|
11516
11516
|
className: ({
|
|
11517
|
-
selected:
|
|
11517
|
+
selected: c
|
|
11518
11518
|
}) => n({
|
|
11519
|
-
selected:
|
|
11519
|
+
selected: c,
|
|
11520
11520
|
isDisabled: l
|
|
11521
11521
|
}),
|
|
11522
11522
|
disabled: l,
|
|
11523
11523
|
children: ({
|
|
11524
|
-
selected:
|
|
11524
|
+
selected: c
|
|
11525
11525
|
}) => o({
|
|
11526
|
-
selected:
|
|
11526
|
+
selected: c,
|
|
11527
11527
|
isDisabled: l,
|
|
11528
11528
|
nameTab: a,
|
|
11529
11529
|
total: s
|
|
11530
11530
|
})
|
|
11531
|
-
},
|
|
11531
|
+
}, u))
|
|
11532
11532
|
}), /* @__PURE__ */ A(Nn.Panels, {
|
|
11533
11533
|
className: "mt-3",
|
|
11534
11534
|
children: Object.values(e).map((a, l) => !a.isDisabled && /* @__PURE__ */ A(Nn.Panel, {
|
|
@@ -11572,9 +11572,9 @@ function N7({
|
|
|
11572
11572
|
showClose: a = !0,
|
|
11573
11573
|
onClose: l,
|
|
11574
11574
|
className: s,
|
|
11575
|
-
children:
|
|
11575
|
+
children: u
|
|
11576
11576
|
}) {
|
|
11577
|
-
const
|
|
11577
|
+
const c = () => /* @__PURE__ */ _("header", {
|
|
11578
11578
|
className: "mb-xl flex items-center justify-between",
|
|
11579
11579
|
children: [/* @__PURE__ */ _("div", {
|
|
11580
11580
|
className: "flex items-center gap-x-2",
|
|
@@ -11592,7 +11592,7 @@ function N7({
|
|
|
11592
11592
|
}), d = () => /* @__PURE__ */ _(ze, {
|
|
11593
11593
|
children: [o.includes("top") && /* @__PURE__ */ A("div", {
|
|
11594
11594
|
className: "mb-xs border-b border-border-disabled"
|
|
11595
|
-
}),
|
|
11595
|
+
}), u, o.includes("bottom") && /* @__PURE__ */ A("div", {
|
|
11596
11596
|
className: "mt-xs border-t border-border-disabled"
|
|
11597
11597
|
})]
|
|
11598
11598
|
});
|
|
@@ -11609,7 +11609,7 @@ function N7({
|
|
|
11609
11609
|
className: "flex min-h-full items-center justify-center",
|
|
11610
11610
|
children: /* @__PURE__ */ _(x1.Panel, {
|
|
11611
11611
|
className: K("mx-auto rounded-sm bg-surface-default p-xl shadow-popup", s),
|
|
11612
|
-
children: [
|
|
11612
|
+
children: [c(), n && /* @__PURE__ */ A(Ie, {
|
|
11613
11613
|
variant: "caption",
|
|
11614
11614
|
color: "subdued",
|
|
11615
11615
|
className: "mb-sm",
|
|
@@ -11641,22 +11641,22 @@ function D7({
|
|
|
11641
11641
|
color: i ? "disabled" : "default",
|
|
11642
11642
|
children: e
|
|
11643
11643
|
}) : e
|
|
11644
|
-
}), s = (
|
|
11645
|
-
children: typeof
|
|
11644
|
+
}), s = (c, d) => /* @__PURE__ */ A(Ye, {
|
|
11645
|
+
children: typeof c == "string" ? /* @__PURE__ */ A(Ie, {
|
|
11646
11646
|
variant: "body",
|
|
11647
11647
|
color: i ? "disabled" : "subdued",
|
|
11648
|
-
children:
|
|
11649
|
-
}) :
|
|
11650
|
-
}, d),
|
|
11651
|
-
label:
|
|
11648
|
+
children: c
|
|
11649
|
+
}) : c
|
|
11650
|
+
}, d), u = ({
|
|
11651
|
+
label: c,
|
|
11652
11652
|
value: d
|
|
11653
11653
|
}, f) => /* @__PURE__ */ _("div", {
|
|
11654
11654
|
className: "flex items-center justify-between",
|
|
11655
|
-
children: [typeof
|
|
11655
|
+
children: [typeof c == "string" ? /* @__PURE__ */ A(Ie, {
|
|
11656
11656
|
variant: "body",
|
|
11657
11657
|
color: i ? "disabled" : "default",
|
|
11658
|
-
children:
|
|
11659
|
-
}) :
|
|
11658
|
+
children: c
|
|
11659
|
+
}) : c, typeof d == "string" ? /* @__PURE__ */ A(Ie, {
|
|
11660
11660
|
variant: "body",
|
|
11661
11661
|
color: i ? "disabled" : "subdued",
|
|
11662
11662
|
children: d
|
|
@@ -11677,15 +11677,15 @@ function D7({
|
|
|
11677
11677
|
}) : /* @__PURE__ */ A(Cr, {
|
|
11678
11678
|
defaultOpen: n,
|
|
11679
11679
|
children: ({
|
|
11680
|
-
open:
|
|
11680
|
+
open: c
|
|
11681
11681
|
}) => /* @__PURE__ */ _("div", {
|
|
11682
11682
|
className: K("mb-sm", o),
|
|
11683
11683
|
children: [/* @__PURE__ */ _(Cr.Button, {
|
|
11684
|
-
className: K("flex min-h-[56px] w-full flex-wrap items-center justify-between bg-action-secondary-default py-xs px-sm hover:bg-action-secondary-hovered focus:outline-none focus-visible:outline-none active:bg-action-secondary-active",
|
|
11684
|
+
className: K("flex min-h-[56px] w-full flex-wrap items-center justify-between bg-action-secondary-default py-xs px-sm hover:bg-action-secondary-hovered focus:outline-none focus-visible:outline-none active:bg-action-secondary-active", c ? "rounded-tl-sm rounded-tr-sm border-t border-l border-r border-border-shadow-subdued" : "rounded-sm"),
|
|
11685
11685
|
children: [/* @__PURE__ */ _("div", {
|
|
11686
11686
|
className: "flex gap-x-sm",
|
|
11687
11687
|
children: [/* @__PURE__ */ A(De, {
|
|
11688
|
-
kind:
|
|
11688
|
+
kind: c ? "up" : "down",
|
|
11689
11689
|
color: i ? "disabled" : "default"
|
|
11690
11690
|
}), l()]
|
|
11691
11691
|
}), /* @__PURE__ */ A("div", {
|
|
@@ -11693,8 +11693,8 @@ function D7({
|
|
|
11693
11693
|
children: t == null ? void 0 : t.map(s)
|
|
11694
11694
|
})]
|
|
11695
11695
|
}), /* @__PURE__ */ A(Cr.Panel, {
|
|
11696
|
-
className: K("space-y-sm rounded-br-sm rounded-bl-sm border border-t-border-subdued bg-action-secondary-default py-sm pr-sm pl-[48px]",
|
|
11697
|
-
children: r.length > 0 ? r.map(
|
|
11696
|
+
className: K("space-y-sm rounded-br-sm rounded-bl-sm border border-t-border-subdued bg-action-secondary-default py-sm pr-sm pl-[48px]", c ? "border-b border-r border-l border-border-shadow-subdued" : ""),
|
|
11697
|
+
children: r.length > 0 ? r.map(u) : a
|
|
11698
11698
|
})]
|
|
11699
11699
|
})
|
|
11700
11700
|
});
|
|
@@ -12071,7 +12071,7 @@ var Nt = function(e) {
|
|
|
12071
12071
|
var n = Nt(t.join("")), i = new RegExp("[^\\d" + n + "]", "gi");
|
|
12072
12072
|
return e.replace(i, "");
|
|
12073
12073
|
}, Pr = function(e) {
|
|
12074
|
-
var t = e.value, n = e.groupSeparator, i = n === void 0 ? "," : n, r = e.decimalSeparator, o = r === void 0 ? "." : r, a = e.allowDecimals, l = a === void 0 ? !0 : a, s = e.decimalsLimit,
|
|
12074
|
+
var t = e.value, n = e.groupSeparator, i = n === void 0 ? "," : n, r = e.decimalSeparator, o = r === void 0 ? "." : r, a = e.allowDecimals, l = a === void 0 ? !0 : a, s = e.decimalsLimit, u = s === void 0 ? 2 : s, c = e.allowNegativeValue, d = c === void 0 ? !0 : c, f = e.disableAbbreviations, g = f === void 0 ? !1 : f, p = e.prefix, C = p === void 0 ? "" : p, E = e.transformRawValue, v = E === void 0 ? function(F) {
|
|
12075
12075
|
return F;
|
|
12076
12076
|
} : E, w = v(t);
|
|
12077
12077
|
if (w === "-")
|
|
@@ -12087,7 +12087,7 @@ var Nt = function(e) {
|
|
|
12087
12087
|
}
|
|
12088
12088
|
var D = m && d ? "-" : "";
|
|
12089
12089
|
if (o && Z.includes(o)) {
|
|
12090
|
-
var G = H.split(o), T = G[0], Y = G[1], z =
|
|
12090
|
+
var G = H.split(o), T = G[0], Y = G[1], z = u && Y ? Y.slice(0, u) : Y, re = l ? "" + o + z : "";
|
|
12091
12091
|
return "" + D + T + re;
|
|
12092
12092
|
}
|
|
12093
12093
|
return "" + D + Z;
|
|
@@ -12114,22 +12114,22 @@ var Nt = function(e) {
|
|
|
12114
12114
|
return "";
|
|
12115
12115
|
if (t === "-")
|
|
12116
12116
|
return "-";
|
|
12117
|
-
var
|
|
12117
|
+
var u = new RegExp("^\\d?-" + (a ? Nt(a) + "?" : "") + "\\d").test(t), c = n !== "." ? n8(t, n, u) : t, d = {
|
|
12118
12118
|
minimumFractionDigits: r || 0,
|
|
12119
12119
|
maximumFractionDigits: 20
|
|
12120
12120
|
}, f = i ? new Intl.NumberFormat(i.locale, i.currency ? Te(Te({}, d), {
|
|
12121
12121
|
style: "currency",
|
|
12122
12122
|
currency: i.currency
|
|
12123
|
-
}) : d) : new Intl.NumberFormat(void 0, d), g = f.formatToParts(Number(
|
|
12123
|
+
}) : d) : new Intl.NumberFormat(void 0, d), g = f.formatToParts(Number(c)), p = r8(g, e), C = Rl(p, Te({}, e)), E = t.slice(-1) === n ? n : "", v = c.match(RegExp("\\d+\\.(\\d+)")) || [], w = v[1];
|
|
12124
12124
|
return r === void 0 && w && n && (p.includes(n) ? p = p.replace(RegExp("(\\d+)(" + Nt(n) + ")(\\d+)", "g"), "$1$2" + w) : C && !s ? p = p.replace(C, "" + n + w + C) : p = "" + p + n + w), s && E ? "" + p + E + s : C && E ? p.replace(C, "" + E + C) : C && s ? p.replace(C, "" + E + s) : [p, E, s].join("");
|
|
12125
12125
|
}, n8 = function(e, t, n) {
|
|
12126
12126
|
var i = e;
|
|
12127
12127
|
return t && t !== "." && (i = i.replace(RegExp(Nt(t), "g"), "."), n && t === "-" && (i = "-" + i.slice(1))), i;
|
|
12128
12128
|
}, r8 = function(e, t) {
|
|
12129
12129
|
var n = t.prefix, i = t.groupSeparator, r = t.decimalSeparator, o = t.decimalScale, a = t.disableGroupSeparators, l = a === void 0 ? !1 : a;
|
|
12130
|
-
return e.reduce(function(s,
|
|
12131
|
-
var d =
|
|
12132
|
-
return
|
|
12130
|
+
return e.reduce(function(s, u, c) {
|
|
12131
|
+
var d = u.type, f = u.value;
|
|
12132
|
+
return c === 0 && n ? d === "minusSign" ? [f, n] : d === "currency" ? gt(gt([], s), [n]) : [n, f] : d === "currency" ? n ? s : gt(gt([], s), [f]) : d === "group" ? l ? s : gt(gt([], s), [i !== void 0 ? i : f]) : d === "decimal" ? o !== void 0 && o === 0 ? s : gt(gt([], s), [r !== void 0 ? r : f]) : d === "fraction" ? gt(gt([], s), [o !== void 0 ? f.slice(0, o) : f]) : gt(gt([], s), [f]);
|
|
12133
12133
|
}, [""]).join("");
|
|
12134
12134
|
}, i8 = {
|
|
12135
12135
|
currencySymbol: "",
|
|
@@ -12186,7 +12186,7 @@ var Nt = function(e) {
|
|
|
12186
12186
|
cursorPosition: t
|
|
12187
12187
|
};
|
|
12188
12188
|
}, Ci = St(function(e, t) {
|
|
12189
|
-
var n = e.allowDecimals, i = n === void 0 ? !0 : n, r = e.allowNegativeValue, o = r === void 0 ? !0 : r, a = e.id, l = e.name, s = e.className,
|
|
12189
|
+
var n = e.allowDecimals, i = n === void 0 ? !0 : n, r = e.allowNegativeValue, o = r === void 0 ? !0 : r, a = e.id, l = e.name, s = e.className, u = e.customInput, c = e.decimalsLimit, d = e.defaultValue, f = e.disabled, g = f === void 0 ? !1 : f, p = e.maxLength, C = e.value, E = e.onValueChange, v = e.fixedDecimalLength, w = e.placeholder, V = e.decimalScale, I = e.prefix, m = e.suffix, b = e.intlConfig, h = e.step, x = e.min, Q = e.max, N = e.disableGroupSeparators, H = N === void 0 ? !1 : N, Z = e.disableAbbreviations, j = Z === void 0 ? !1 : Z, D = e.decimalSeparator, G = e.groupSeparator, T = e.onChange, Y = e.onFocus, z = e.onBlur, re = e.onKeyDown, F = e.onKeyUp, X = e.transformRawValue, O = K4(e, ["allowDecimals", "allowNegativeValue", "id", "name", "className", "customInput", "decimalsLimit", "defaultValue", "disabled", "maxLength", "value", "onValueChange", "fixedDecimalLength", "placeholder", "decimalScale", "prefix", "suffix", "intlConfig", "step", "min", "max", "disableGroupSeparators", "disableAbbreviations", "decimalSeparator", "groupSeparator", "onChange", "onFocus", "onBlur", "onKeyDown", "onKeyUp", "transformRawValue"]);
|
|
12190
12190
|
if (D && va(D))
|
|
12191
12191
|
throw new Error("decimalSeparator cannot be a number");
|
|
12192
12192
|
if (G && va(G))
|
|
@@ -12207,7 +12207,7 @@ var Nt = function(e) {
|
|
|
12207
12207
|
decimalSeparator: R,
|
|
12208
12208
|
groupSeparator: M,
|
|
12209
12209
|
allowDecimals: i,
|
|
12210
|
-
decimalsLimit:
|
|
12210
|
+
decimalsLimit: c || v || 2,
|
|
12211
12211
|
allowNegativeValue: o,
|
|
12212
12212
|
disableAbbreviations: j,
|
|
12213
12213
|
prefix: I || P.prefix,
|
|
@@ -12326,8 +12326,8 @@ var Nt = function(e) {
|
|
|
12326
12326
|
value: ln(),
|
|
12327
12327
|
ref: nt
|
|
12328
12328
|
}, O);
|
|
12329
|
-
if (
|
|
12330
|
-
var pn =
|
|
12329
|
+
if (u) {
|
|
12330
|
+
var pn = u;
|
|
12331
12331
|
return /* @__PURE__ */ A(pn, {
|
|
12332
12332
|
...Te({}, Cn)
|
|
12333
12333
|
});
|
|
@@ -12351,7 +12351,7 @@ function s8() {
|
|
|
12351
12351
|
if (Ia)
|
|
12352
12352
|
return Me;
|
|
12353
12353
|
Ia = 1;
|
|
12354
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111,
|
|
12354
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, C = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
|
|
12355
12355
|
function V(m) {
|
|
12356
12356
|
if (typeof m == "object" && m !== null) {
|
|
12357
12357
|
var b = m.$$typeof;
|
|
@@ -12359,7 +12359,7 @@ function s8() {
|
|
|
12359
12359
|
case t:
|
|
12360
12360
|
switch (m = m.type, m) {
|
|
12361
12361
|
case s:
|
|
12362
|
-
case
|
|
12362
|
+
case u:
|
|
12363
12363
|
case i:
|
|
12364
12364
|
case o:
|
|
12365
12365
|
case r:
|
|
@@ -12368,7 +12368,7 @@ function s8() {
|
|
|
12368
12368
|
default:
|
|
12369
12369
|
switch (m = m && m.$$typeof, m) {
|
|
12370
12370
|
case l:
|
|
12371
|
-
case
|
|
12371
|
+
case c:
|
|
12372
12372
|
case p:
|
|
12373
12373
|
case g:
|
|
12374
12374
|
case a:
|
|
@@ -12383,9 +12383,9 @@ function s8() {
|
|
|
12383
12383
|
}
|
|
12384
12384
|
}
|
|
12385
12385
|
function I(m) {
|
|
12386
|
-
return V(m) ===
|
|
12386
|
+
return V(m) === u;
|
|
12387
12387
|
}
|
|
12388
|
-
return Me.AsyncMode = s, Me.ConcurrentMode =
|
|
12388
|
+
return Me.AsyncMode = s, Me.ConcurrentMode = u, Me.ContextConsumer = l, Me.ContextProvider = a, Me.Element = t, Me.ForwardRef = c, Me.Fragment = i, Me.Lazy = p, Me.Memo = g, Me.Portal = n, Me.Profiler = o, Me.StrictMode = r, Me.Suspense = d, Me.isAsyncMode = function(m) {
|
|
12389
12389
|
return I(m) || V(m) === s;
|
|
12390
12390
|
}, Me.isConcurrentMode = I, Me.isContextConsumer = function(m) {
|
|
12391
12391
|
return V(m) === l;
|
|
@@ -12394,7 +12394,7 @@ function s8() {
|
|
|
12394
12394
|
}, Me.isElement = function(m) {
|
|
12395
12395
|
return typeof m == "object" && m !== null && m.$$typeof === t;
|
|
12396
12396
|
}, Me.isForwardRef = function(m) {
|
|
12397
|
-
return V(m) ===
|
|
12397
|
+
return V(m) === c;
|
|
12398
12398
|
}, Me.isFragment = function(m) {
|
|
12399
12399
|
return V(m) === i;
|
|
12400
12400
|
}, Me.isLazy = function(m) {
|
|
@@ -12410,7 +12410,7 @@ function s8() {
|
|
|
12410
12410
|
}, Me.isSuspense = function(m) {
|
|
12411
12411
|
return V(m) === d;
|
|
12412
12412
|
}, Me.isValidElementType = function(m) {
|
|
12413
|
-
return typeof m == "string" || typeof m == "function" || m === i || m ===
|
|
12413
|
+
return typeof m == "string" || typeof m == "function" || m === i || m === u || m === o || m === r || m === d || m === f || typeof m == "object" && m !== null && (m.$$typeof === p || m.$$typeof === g || m.$$typeof === a || m.$$typeof === l || m.$$typeof === c || m.$$typeof === E || m.$$typeof === v || m.$$typeof === w || m.$$typeof === C);
|
|
12414
12414
|
}, Me.typeOf = V, Me;
|
|
12415
12415
|
}
|
|
12416
12416
|
var Fe = {};
|
|
@@ -12425,9 +12425,9 @@ var Fe = {};
|
|
|
12425
12425
|
var ha;
|
|
12426
12426
|
function u8() {
|
|
12427
12427
|
return ha || (ha = 1, process.env.NODE_ENV !== "production" && function() {
|
|
12428
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111,
|
|
12428
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, C = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
|
|
12429
12429
|
function V(S) {
|
|
12430
|
-
return typeof S == "string" || typeof S == "function" || S === i || S ===
|
|
12430
|
+
return typeof S == "string" || typeof S == "function" || S === i || S === u || S === o || S === r || S === d || S === f || typeof S == "object" && S !== null && (S.$$typeof === p || S.$$typeof === g || S.$$typeof === a || S.$$typeof === l || S.$$typeof === c || S.$$typeof === E || S.$$typeof === v || S.$$typeof === w || S.$$typeof === C);
|
|
12431
12431
|
}
|
|
12432
12432
|
function I(S) {
|
|
12433
12433
|
if (typeof S == "object" && S !== null) {
|
|
@@ -12437,7 +12437,7 @@ function u8() {
|
|
|
12437
12437
|
var ne = S.type;
|
|
12438
12438
|
switch (ne) {
|
|
12439
12439
|
case s:
|
|
12440
|
-
case
|
|
12440
|
+
case u:
|
|
12441
12441
|
case i:
|
|
12442
12442
|
case o:
|
|
12443
12443
|
case r:
|
|
@@ -12447,7 +12447,7 @@ function u8() {
|
|
|
12447
12447
|
var ee = ne && ne.$$typeof;
|
|
12448
12448
|
switch (ee) {
|
|
12449
12449
|
case l:
|
|
12450
|
-
case
|
|
12450
|
+
case c:
|
|
12451
12451
|
case p:
|
|
12452
12452
|
case g:
|
|
12453
12453
|
case a:
|
|
@@ -12461,12 +12461,12 @@ function u8() {
|
|
|
12461
12461
|
}
|
|
12462
12462
|
}
|
|
12463
12463
|
}
|
|
12464
|
-
var m = s, b =
|
|
12464
|
+
var m = s, b = u, h = l, x = a, Q = t, N = c, H = i, Z = p, j = g, D = n, G = o, T = r, Y = d, z = !1;
|
|
12465
12465
|
function re(S) {
|
|
12466
12466
|
return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), F(S) || I(S) === s;
|
|
12467
12467
|
}
|
|
12468
12468
|
function F(S) {
|
|
12469
|
-
return I(S) ===
|
|
12469
|
+
return I(S) === u;
|
|
12470
12470
|
}
|
|
12471
12471
|
function X(S) {
|
|
12472
12472
|
return I(S) === l;
|
|
@@ -12478,7 +12478,7 @@ function u8() {
|
|
|
12478
12478
|
return typeof S == "object" && S !== null && S.$$typeof === t;
|
|
12479
12479
|
}
|
|
12480
12480
|
function R(S) {
|
|
12481
|
-
return I(S) ===
|
|
12481
|
+
return I(S) === c;
|
|
12482
12482
|
}
|
|
12483
12483
|
function M(S) {
|
|
12484
12484
|
return I(S) === i;
|
|
@@ -12535,28 +12535,28 @@ function c8() {
|
|
|
12535
12535
|
return !1;
|
|
12536
12536
|
for (var a = {}, l = 0; l < 10; l++)
|
|
12537
12537
|
a["_" + String.fromCharCode(l)] = l;
|
|
12538
|
-
var s = Object.getOwnPropertyNames(a).map(function(
|
|
12539
|
-
return a[
|
|
12538
|
+
var s = Object.getOwnPropertyNames(a).map(function(c) {
|
|
12539
|
+
return a[c];
|
|
12540
12540
|
});
|
|
12541
12541
|
if (s.join("") !== "0123456789")
|
|
12542
12542
|
return !1;
|
|
12543
|
-
var
|
|
12544
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
12545
|
-
c
|
|
12546
|
-
}), Object.keys(Object.assign({},
|
|
12543
|
+
var u = {};
|
|
12544
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(c) {
|
|
12545
|
+
u[c] = c;
|
|
12546
|
+
}), Object.keys(Object.assign({}, u)).join("") === "abcdefghijklmnopqrst";
|
|
12547
12547
|
} catch {
|
|
12548
12548
|
return !1;
|
|
12549
12549
|
}
|
|
12550
12550
|
}
|
|
12551
12551
|
return Or = r() ? Object.assign : function(o, a) {
|
|
12552
|
-
for (var l, s = i(o),
|
|
12553
|
-
l = Object(arguments[
|
|
12552
|
+
for (var l, s = i(o), u, c = 1; c < arguments.length; c++) {
|
|
12553
|
+
l = Object(arguments[c]);
|
|
12554
12554
|
for (var d in l)
|
|
12555
12555
|
t.call(l, d) && (s[d] = l[d]);
|
|
12556
12556
|
if (e) {
|
|
12557
|
-
|
|
12558
|
-
for (var f = 0; f <
|
|
12559
|
-
n.call(l,
|
|
12557
|
+
u = e(l);
|
|
12558
|
+
for (var f = 0; f < u.length; f++)
|
|
12559
|
+
n.call(l, u[f]) && (s[u[f]] = l[u[f]]);
|
|
12560
12560
|
}
|
|
12561
12561
|
}
|
|
12562
12562
|
return s;
|
|
@@ -12592,27 +12592,27 @@ function d8() {
|
|
|
12592
12592
|
}
|
|
12593
12593
|
};
|
|
12594
12594
|
}
|
|
12595
|
-
function r(o, a, l, s,
|
|
12595
|
+
function r(o, a, l, s, u) {
|
|
12596
12596
|
if (process.env.NODE_ENV !== "production") {
|
|
12597
|
-
for (var
|
|
12598
|
-
if (i(o,
|
|
12597
|
+
for (var c in o)
|
|
12598
|
+
if (i(o, c)) {
|
|
12599
12599
|
var d;
|
|
12600
12600
|
try {
|
|
12601
|
-
if (typeof o[
|
|
12601
|
+
if (typeof o[c] != "function") {
|
|
12602
12602
|
var f = Error(
|
|
12603
|
-
(s || "React class") + ": " + l + " type `" +
|
|
12603
|
+
(s || "React class") + ": " + l + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
12604
12604
|
);
|
|
12605
12605
|
throw f.name = "Invariant Violation", f;
|
|
12606
12606
|
}
|
|
12607
|
-
d = o[
|
|
12607
|
+
d = o[c](a, c, s, l, null, t);
|
|
12608
12608
|
} catch (p) {
|
|
12609
12609
|
d = p;
|
|
12610
12610
|
}
|
|
12611
12611
|
if (d && !(d instanceof Error) && e(
|
|
12612
|
-
(s || "React class") + ": type specification of " + l + " `" +
|
|
12612
|
+
(s || "React class") + ": type specification of " + l + " `" + c + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
12613
12613
|
), d instanceof Error && !(d.message in n)) {
|
|
12614
12614
|
n[d.message] = !0;
|
|
12615
|
-
var g =
|
|
12615
|
+
var g = u ? u() : "";
|
|
12616
12616
|
e(
|
|
12617
12617
|
"Failed " + l + " type: " + d.message + (g != null ? g : "")
|
|
12618
12618
|
);
|
|
@@ -12643,9 +12643,9 @@ function A8() {
|
|
|
12643
12643
|
return null;
|
|
12644
12644
|
}
|
|
12645
12645
|
return kr = function(l, s) {
|
|
12646
|
-
var
|
|
12646
|
+
var u = typeof Symbol == "function" && Symbol.iterator, c = "@@iterator";
|
|
12647
12647
|
function d(F) {
|
|
12648
|
-
var X = F && (
|
|
12648
|
+
var X = F && (u && F[u] || F[c]);
|
|
12649
12649
|
if (typeof X == "function")
|
|
12650
12650
|
return X;
|
|
12651
12651
|
}
|
|
@@ -12956,7 +12956,7 @@ function f8() {
|
|
|
12956
12956
|
function n() {
|
|
12957
12957
|
}
|
|
12958
12958
|
return n.resetWarningCache = t, Gr = function() {
|
|
12959
|
-
function i(a, l, s,
|
|
12959
|
+
function i(a, l, s, u, c, d) {
|
|
12960
12960
|
if (d !== e) {
|
|
12961
12961
|
var f = new Error(
|
|
12962
12962
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -13014,20 +13014,20 @@ function Vl() {
|
|
|
13014
13014
|
if (process.env.NODE_ENV !== "production" && n === void 0)
|
|
13015
13015
|
throw new Error("invariant requires an error message argument");
|
|
13016
13016
|
if (!t) {
|
|
13017
|
-
var
|
|
13017
|
+
var u;
|
|
13018
13018
|
if (n === void 0)
|
|
13019
|
-
|
|
13019
|
+
u = new Error(
|
|
13020
13020
|
"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
|
|
13021
13021
|
);
|
|
13022
13022
|
else {
|
|
13023
|
-
var
|
|
13024
|
-
|
|
13023
|
+
var c = [i, r, o, a, l, s], d = 0;
|
|
13024
|
+
u = new Error(
|
|
13025
13025
|
n.replace(/%s/g, function() {
|
|
13026
|
-
return
|
|
13026
|
+
return c[d++];
|
|
13027
13027
|
})
|
|
13028
|
-
),
|
|
13028
|
+
), u.name = "Invariant Violation";
|
|
13029
13029
|
}
|
|
13030
|
-
throw
|
|
13030
|
+
throw u.framesToPop = 1, u;
|
|
13031
13031
|
}
|
|
13032
13032
|
};
|
|
13033
13033
|
return Tr = e, Tr;
|
|
@@ -13045,12 +13045,12 @@ function Pl() {
|
|
|
13045
13045
|
o = new Array(a > 1 ? a - 1 : 0);
|
|
13046
13046
|
for (var l = 1; l < a; l++)
|
|
13047
13047
|
o[l - 1] = arguments[l];
|
|
13048
|
-
var s = 0,
|
|
13048
|
+
var s = 0, u = "Warning: " + r.replace(/%s/g, function() {
|
|
13049
13049
|
return o[s++];
|
|
13050
13050
|
});
|
|
13051
|
-
typeof console < "u" && console.error(
|
|
13051
|
+
typeof console < "u" && console.error(u);
|
|
13052
13052
|
try {
|
|
13053
|
-
throw new Error(
|
|
13053
|
+
throw new Error(u);
|
|
13054
13054
|
} catch {
|
|
13055
13055
|
}
|
|
13056
13056
|
};
|
|
@@ -13108,10 +13108,10 @@ function g8() {
|
|
|
13108
13108
|
function s(m) {
|
|
13109
13109
|
return requestAnimationFrame(m);
|
|
13110
13110
|
}
|
|
13111
|
-
function
|
|
13111
|
+
function u(m) {
|
|
13112
13112
|
cancelAnimationFrame(m);
|
|
13113
13113
|
}
|
|
13114
|
-
function
|
|
13114
|
+
function c(m) {
|
|
13115
13115
|
var b = m.ownerDocument;
|
|
13116
13116
|
return b.hasFocus() && b.activeElement === m;
|
|
13117
13117
|
}
|
|
@@ -13145,7 +13145,7 @@ function g8() {
|
|
|
13145
13145
|
return H.current;
|
|
13146
13146
|
}, []), G = t.useCallback(function(F) {
|
|
13147
13147
|
var X = Z();
|
|
13148
|
-
X &&
|
|
13148
|
+
X && c(X) && (function(O, P, R) {
|
|
13149
13149
|
R === void 0 && (R = P), O.setSelectionRange(P, R);
|
|
13150
13150
|
}(X, F.start, F.end), H.current = j());
|
|
13151
13151
|
}, [Z, j]), T = t.useCallback(function() {
|
|
@@ -13155,14 +13155,14 @@ function g8() {
|
|
|
13155
13155
|
h(), x.current = s(F);
|
|
13156
13156
|
}();
|
|
13157
13157
|
}, [h]), N = t.useCallback(function() {
|
|
13158
|
-
|
|
13158
|
+
u(x.current), x.current = null;
|
|
13159
13159
|
}, []), t.useEffect(function() {
|
|
13160
13160
|
x.current && (N(), Q());
|
|
13161
|
-
}, [Q, N]), t.useEffect(
|
|
13161
|
+
}, [Q, N]), t.useEffect(u, []), [Q, N]), z = Y[0], re = Y[1];
|
|
13162
13162
|
return t.useLayoutEffect(function() {
|
|
13163
13163
|
if (b) {
|
|
13164
13164
|
var F = Z();
|
|
13165
|
-
return F.addEventListener("focus", z), F.addEventListener("blur", re),
|
|
13165
|
+
return F.addEventListener("focus", z), F.addEventListener("blur", re), c(F) && z(), function() {
|
|
13166
13166
|
F.removeEventListener("focus", z), F.removeEventListener("blur", re), re();
|
|
13167
13167
|
};
|
|
13168
13168
|
}
|
|
@@ -13330,13 +13330,13 @@ function g8() {
|
|
|
13330
13330
|
return "" + S;
|
|
13331
13331
|
}((z ? m.value : m.defaultValue) || ""), T), X = F.inputRef, O = F.getInputState, P = F.setInputState, R = F.getLastInputState, M = g(X);
|
|
13332
13332
|
if (T && z) {
|
|
13333
|
-
var L = M(), k = L &&
|
|
13333
|
+
var L = M(), k = L && c(L) || h || m.value ? G.formatValue(m.value) : m.value;
|
|
13334
13334
|
H && (k = H({ nextState: { value: k, selection: { start: null, end: null } } }).value), P(o({}, R(), { value: k }));
|
|
13335
13335
|
}
|
|
13336
13336
|
var q = R(), J = q.selection, W = q.value;
|
|
13337
13337
|
t.useLayoutEffect(function() {
|
|
13338
13338
|
if (T) {
|
|
13339
|
-
var S =
|
|
13339
|
+
var S = c(M()), $ = J, ne = O(), ee = o({}, ne);
|
|
13340
13340
|
if (!z) {
|
|
13341
13341
|
var Ae = ne.value, Ge = G.formatValue(Ae), Ne = G.isValueEmpty(Ge);
|
|
13342
13342
|
!Ne || S || h ? ee.value = Ge : Ne && !S && (ee.value = "");
|
|
@@ -13366,10 +13366,10 @@ function g8() {
|
|
|
13366
13366
|
H && (ee = H({ currentState: $, previousState: ne, nextState: ee })), P(ee), m.onChange && m.onChange(S);
|
|
13367
13367
|
} : m.onChange, onMouseDown: T && Y ? function(S) {
|
|
13368
13368
|
var $ = M(), ne = O().value, ee = d($);
|
|
13369
|
-
if (!
|
|
13369
|
+
if (!c($) && !G.isValueFilled(ne)) {
|
|
13370
13370
|
var Ae = S.clientX, Ge = S.clientY, Ne = new Date().getTime();
|
|
13371
13371
|
ee.addEventListener("mouseup", function ge(Qe) {
|
|
13372
|
-
if (ee.removeEventListener("mouseup", ge),
|
|
13372
|
+
if (ee.removeEventListener("mouseup", ge), c($)) {
|
|
13373
13373
|
var lt = Math.abs(Qe.clientX - Ae), st = Math.abs(Qe.clientY - Ge), Wt = Math.max(lt, st), nt = new Date().getTime() - Ne;
|
|
13374
13374
|
if (Wt <= 10 && nt <= 200 || Wt <= 5 && nt <= 300) {
|
|
13375
13375
|
var Qt = R(), Yt = o({}, Qt, { selection: G.getDefaultSelectionForValue(Qt.value) });
|
|
@@ -13418,10 +13418,10 @@ function C8() {
|
|
|
13418
13418
|
return O;
|
|
13419
13419
|
}, s.apply(this, arguments);
|
|
13420
13420
|
}
|
|
13421
|
-
function
|
|
13421
|
+
function u(O, P) {
|
|
13422
13422
|
O.prototype = Object.create(P.prototype), O.prototype.constructor = O, l(O, P);
|
|
13423
13423
|
}
|
|
13424
|
-
function
|
|
13424
|
+
function c(O, P) {
|
|
13425
13425
|
if (O == null)
|
|
13426
13426
|
return {};
|
|
13427
13427
|
var R = {}, M = Object.keys(O), L, k;
|
|
@@ -13756,17 +13756,17 @@ function C8() {
|
|
|
13756
13756
|
};
|
|
13757
13757
|
}, this.maskOptions = z(P);
|
|
13758
13758
|
}, F = /* @__PURE__ */ function(O) {
|
|
13759
|
-
|
|
13759
|
+
u(P, O);
|
|
13760
13760
|
function P() {
|
|
13761
13761
|
return O.apply(this, arguments) || this;
|
|
13762
13762
|
}
|
|
13763
13763
|
var R = P.prototype;
|
|
13764
13764
|
return R.render = function() {
|
|
13765
|
-
var L = this.props, k = L.children, q =
|
|
13765
|
+
var L = this.props, k = L.children, q = c(L, ["children"]);
|
|
13766
13766
|
return n.cloneElement(k, q);
|
|
13767
13767
|
}, P;
|
|
13768
13768
|
}(n.Component), X = t.forwardRef(function(P, R) {
|
|
13769
|
-
var M = P.alwaysShowMask, L = P.children, k = P.mask, q = P.maskPlaceholder, J = P.beforeMaskedStateChange, W =
|
|
13769
|
+
var M = P.alwaysShowMask, L = P.children, k = P.mask, q = P.maskPlaceholder, J = P.beforeMaskedStateChange, W = c(P, ["alwaysShowMask", "children", "mask", "maskPlaceholder", "beforeMaskedStateChange"]);
|
|
13770
13770
|
G(P), T(P);
|
|
13771
13771
|
var ie = new re({
|
|
13772
13772
|
mask: k,
|
|
@@ -13901,26 +13901,26 @@ function m8({
|
|
|
13901
13901
|
value: a,
|
|
13902
13902
|
isError: l
|
|
13903
13903
|
}) {
|
|
13904
|
-
const s = oe(null), [
|
|
13905
|
-
const m = Number(
|
|
13906
|
-
return
|
|
13904
|
+
const s = oe(null), [u, c] = ae(a != null ? a : ""), [d, f] = ae(!1), g = (m) => (c(m.target.value), o == null ? void 0 : o(m.target.value)), p = (m) => (c(m), o == null ? void 0 : o(m)), C = () => {
|
|
13905
|
+
const m = Number(u) + 1;
|
|
13906
|
+
return c(String(m)), o == null ? void 0 : o(String(m));
|
|
13907
13907
|
}, E = () => {
|
|
13908
|
-
const m = Number(
|
|
13909
|
-
return
|
|
13908
|
+
const m = Number(u) - 1;
|
|
13909
|
+
return c(String(m)), o == null ? void 0 : o(String(m));
|
|
13910
13910
|
}, v = () => {
|
|
13911
13911
|
var m;
|
|
13912
|
-
return
|
|
13912
|
+
return c(""), o == null || o(""), s && ((m = s.current) == null ? void 0 : m.focus());
|
|
13913
13913
|
}, w = () => e ? "disabled" : "subdued", V = () => e ? "disabled" : d && t === "password" ? "default" : "subdued", I = K(
|
|
13914
13914
|
"w-full rounded-sm bg-action-secondary-default py-md px-sm font-sans text-xs font-book leading-xs text-letter-default caret-icon-default placeholder:font-sans placeholder:text-xs placeholder:font-book placeholder:leading-xs placeholder:text-letter-subdued focus:ring-0 focus:outline-none focus-visible:ring-0 disabled:bg-action-secondary-disabled disabled:text-letter-disabled disabled:placeholder:text-letter-disabled",
|
|
13915
13915
|
i || l ? "border border-action-critical-default focus:border-action-critical-default" : "border-none focus:rounded-[5px] focus:shadow-[0px_0px_0px_1px_#3EADFE]",
|
|
13916
13916
|
{
|
|
13917
|
-
"pr-8":
|
|
13917
|
+
"pr-8": u && !n && !r,
|
|
13918
13918
|
"pr-14": n,
|
|
13919
13919
|
"pl-10": r
|
|
13920
13920
|
}
|
|
13921
13921
|
);
|
|
13922
13922
|
return {
|
|
13923
|
-
inputValue:
|
|
13923
|
+
inputValue: u,
|
|
13924
13924
|
inputRef: s,
|
|
13925
13925
|
handleChange: g,
|
|
13926
13926
|
handleChangeCustom: p,
|
|
@@ -14005,8 +14005,8 @@ const v8 = St((e, t) => {
|
|
|
14005
14005
|
placeholder: a,
|
|
14006
14006
|
autoComplete: l = "off",
|
|
14007
14007
|
type: s = "text",
|
|
14008
|
-
iconLeft:
|
|
14009
|
-
iconRight:
|
|
14008
|
+
iconLeft: u,
|
|
14009
|
+
iconRight: c,
|
|
14010
14010
|
helpText: d,
|
|
14011
14011
|
logo: f,
|
|
14012
14012
|
error: g,
|
|
@@ -14023,9 +14023,9 @@ const v8 = St((e, t) => {
|
|
|
14023
14023
|
} = e, x = m8({
|
|
14024
14024
|
isDisabled: r,
|
|
14025
14025
|
type: s,
|
|
14026
|
-
iconRight:
|
|
14026
|
+
iconRight: c,
|
|
14027
14027
|
error: g,
|
|
14028
|
-
iconLeft:
|
|
14028
|
+
iconLeft: u,
|
|
14029
14029
|
onChange: p,
|
|
14030
14030
|
value: C,
|
|
14031
14031
|
isError: w
|
|
@@ -14047,11 +14047,11 @@ const v8 = St((e, t) => {
|
|
|
14047
14047
|
title: E == null ? void 0 : E.title,
|
|
14048
14048
|
description: E == null ? void 0 : E.description,
|
|
14049
14049
|
children: /* @__PURE__ */ A(De, {
|
|
14050
|
-
kind:
|
|
14050
|
+
kind: c,
|
|
14051
14051
|
color: G()
|
|
14052
14052
|
})
|
|
14053
14053
|
}) : /* @__PURE__ */ A(De, {
|
|
14054
|
-
kind:
|
|
14054
|
+
kind: c,
|
|
14055
14055
|
color: G()
|
|
14056
14056
|
}), P = {
|
|
14057
14057
|
id: n,
|
|
@@ -14134,8 +14134,8 @@ const v8 = St((e, t) => {
|
|
|
14134
14134
|
...P
|
|
14135
14135
|
});
|
|
14136
14136
|
})(),
|
|
14137
|
-
renderIconLeft:
|
|
14138
|
-
kind:
|
|
14137
|
+
renderIconLeft: u && /* @__PURE__ */ A(De, {
|
|
14138
|
+
kind: u,
|
|
14139
14139
|
color: G()
|
|
14140
14140
|
}),
|
|
14141
14141
|
children: [/* @__PURE__ */ A(In.Delete, {
|
|
@@ -14188,9 +14188,9 @@ function H7({
|
|
|
14188
14188
|
customWidth: a,
|
|
14189
14189
|
onClose: l,
|
|
14190
14190
|
shadow: s = "basic",
|
|
14191
|
-
children:
|
|
14191
|
+
children: u
|
|
14192
14192
|
}) {
|
|
14193
|
-
const
|
|
14193
|
+
const c = () => e === "default" ? "default" : e === "success" ? "success" : e === "warning" ? "warning" : e === "error" ? "critical" : "default", d = K({
|
|
14194
14194
|
"max-w-[420px]": o === "lg" && !a,
|
|
14195
14195
|
"max-w-[288px]": o === "sm" && !a,
|
|
14196
14196
|
"w-1/3 min-w-[200px]": o === "xl" && !a,
|
|
@@ -14208,7 +14208,7 @@ function H7({
|
|
|
14208
14208
|
children: [t ? /* @__PURE__ */ A(De, {
|
|
14209
14209
|
kind: t,
|
|
14210
14210
|
size: "sm",
|
|
14211
|
-
color:
|
|
14211
|
+
color: c(),
|
|
14212
14212
|
className: "flex-none self-start flex"
|
|
14213
14213
|
}) : null, /* @__PURE__ */ _("div", {
|
|
14214
14214
|
className: "flex-1",
|
|
@@ -14220,9 +14220,9 @@ function H7({
|
|
|
14220
14220
|
}) : null, n ? /* @__PURE__ */ A(Ie, {
|
|
14221
14221
|
variant: "body",
|
|
14222
14222
|
color: "default",
|
|
14223
|
-
className: K(
|
|
14223
|
+
className: K(u ? "mb-sm" : ""),
|
|
14224
14224
|
children: n
|
|
14225
|
-
}) : null,
|
|
14225
|
+
}) : null, u]
|
|
14226
14226
|
}), r && /* @__PURE__ */ A(De, {
|
|
14227
14227
|
kind: "delete",
|
|
14228
14228
|
size: "sm",
|
|
@@ -14238,7 +14238,7 @@ function Z7({
|
|
|
14238
14238
|
email: t,
|
|
14239
14239
|
items: n,
|
|
14240
14240
|
footer: i,
|
|
14241
|
-
|
|
14241
|
+
avatar: r
|
|
14242
14242
|
}) {
|
|
14243
14243
|
return /* @__PURE__ */ A(ct, {
|
|
14244
14244
|
as: "div",
|
|
@@ -14246,13 +14246,13 @@ function Z7({
|
|
|
14246
14246
|
children: ({
|
|
14247
14247
|
open: o
|
|
14248
14248
|
}) => {
|
|
14249
|
-
var a;
|
|
14249
|
+
var a, l, s;
|
|
14250
14250
|
return /* @__PURE__ */ _(ze, {
|
|
14251
14251
|
children: [/* @__PURE__ */ A(ct.Button, {
|
|
14252
14252
|
className: "flex w-full rounded-md items-center",
|
|
14253
14253
|
children: /* @__PURE__ */ A(Eo, {
|
|
14254
|
-
|
|
14255
|
-
size: "sm",
|
|
14254
|
+
imageUrl: r == null ? void 0 : r.imageUrl,
|
|
14255
|
+
size: (a = r == null ? void 0 : r.sizeMain) != null ? a : "sm",
|
|
14256
14256
|
isActive: o
|
|
14257
14257
|
})
|
|
14258
14258
|
}), /* @__PURE__ */ A(q1, {
|
|
@@ -14264,15 +14264,15 @@ function Z7({
|
|
|
14264
14264
|
leaveFrom: "transform opacity-100 scale-100",
|
|
14265
14265
|
leaveTo: "transform opacity-0 scale-95",
|
|
14266
14266
|
children: /* @__PURE__ */ _(ct.Items, {
|
|
14267
|
-
className: "absolute z-10 right-0 mt-2 min-w-[280px]
|
|
14267
|
+
className: "absolute z-10 right-0 mt-2 min-w-[280px] origin-top-right divide-y divide-border-subdued rounded-sm bg-white shadow-[0px_2px_10px_0px_#0000001A]",
|
|
14268
14268
|
children: [/* @__PURE__ */ _("div", {
|
|
14269
14269
|
children: [/* @__PURE__ */ _("div", {
|
|
14270
14270
|
className: "flex items-center h-[72px] px-4",
|
|
14271
14271
|
children: [/* @__PURE__ */ A("div", {
|
|
14272
14272
|
className: "min-w-[41px]",
|
|
14273
14273
|
children: /* @__PURE__ */ A(Eo, {
|
|
14274
|
-
|
|
14275
|
-
size: "md"
|
|
14274
|
+
imageUrl: r == null ? void 0 : r.imageUrl,
|
|
14275
|
+
size: (l = r == null ? void 0 : r.sizeSecondary) != null ? l : "md"
|
|
14276
14276
|
})
|
|
14277
14277
|
}), /* @__PURE__ */ _("div", {
|
|
14278
14278
|
className: "flex flex-col pl-2",
|
|
@@ -14287,14 +14287,14 @@ function Z7({
|
|
|
14287
14287
|
children: t
|
|
14288
14288
|
})]
|
|
14289
14289
|
})]
|
|
14290
|
-
}), n && n.map((
|
|
14290
|
+
}), n && n.map((u, c) => /* @__PURE__ */ A(ct.Item, {
|
|
14291
14291
|
children: /* @__PURE__ */ A(Tn, {
|
|
14292
14292
|
className: "cursor-pointer h-[36px] px-4 flex items-center",
|
|
14293
14293
|
variant: "body",
|
|
14294
|
-
onClick:
|
|
14295
|
-
children:
|
|
14294
|
+
onClick: u == null ? void 0 : u.onClick,
|
|
14295
|
+
children: u == null ? void 0 : u.title
|
|
14296
14296
|
})
|
|
14297
|
-
},
|
|
14297
|
+
}, c))]
|
|
14298
14298
|
}), /* @__PURE__ */ A("footer", {
|
|
14299
14299
|
className: "px-1",
|
|
14300
14300
|
children: /* @__PURE__ */ A(ct.Item, {
|
|
@@ -14302,7 +14302,7 @@ function Z7({
|
|
|
14302
14302
|
className: "cursor-pointer h-[36px] px-4 flex items-center",
|
|
14303
14303
|
variant: "body",
|
|
14304
14304
|
onClick: i == null ? void 0 : i.onClick,
|
|
14305
|
-
children: (
|
|
14305
|
+
children: (s = i == null ? void 0 : i.title) != null ? s : "Salir"
|
|
14306
14306
|
})
|
|
14307
14307
|
})
|
|
14308
14308
|
})]
|
|
@@ -14317,7 +14317,7 @@ function j7({
|
|
|
14317
14317
|
listOptions: t,
|
|
14318
14318
|
onSelected: n
|
|
14319
14319
|
}) {
|
|
14320
|
-
const [i, r] = ae([]), o = (l) => r((s) => s.includes(l) ? (n(s.filter((
|
|
14320
|
+
const [i, r] = ae([]), o = (l) => r((s) => s.includes(l) ? (n(s.filter((u) => u !== l)), s.filter((u) => u !== l)) : (n([...s, l]), [...s, l])), a = (l) => i.some((s) => s.id === l.id && s.label === l.label);
|
|
14321
14321
|
return /* @__PURE__ */ A("div", {
|
|
14322
14322
|
className: "flex gap-x-2",
|
|
14323
14323
|
children: /* @__PURE__ */ _(ct, {
|
|
@@ -14343,10 +14343,15 @@ function j7({
|
|
|
14343
14343
|
leaveFrom: "transform opacity-100 scale-100",
|
|
14344
14344
|
leaveTo: "transform opacity-0 scale-95",
|
|
14345
14345
|
children: /* @__PURE__ */ A(ct.Items, {
|
|
14346
|
-
className: "absolute z-10 right-0 mt-3 w-[
|
|
14346
|
+
className: "absolute z-10 right-0 mt-3 min-w-[230px] bg-action-secondary-default origin-top-right rounded-sm shadow-[0px_2px_10px_0px_#0000001A]",
|
|
14347
14347
|
children: /* @__PURE__ */ A("div", {
|
|
14348
|
-
className: "flex flex-col
|
|
14348
|
+
className: "flex flex-col",
|
|
14349
14349
|
children: t == null ? void 0 : t.map((l, s) => /* @__PURE__ */ A("div", {
|
|
14350
|
+
className: K("hover:bg-action-secondary-hovered pl-[16px] py-[8px] ", {
|
|
14351
|
+
"rounded-t-sm": s === 0,
|
|
14352
|
+
"rounded-b-sm": s === t.length - 1,
|
|
14353
|
+
"bg-action-secondary-active ": a(l)
|
|
14354
|
+
}),
|
|
14350
14355
|
children: /* @__PURE__ */ A(Q2, {
|
|
14351
14356
|
checked: a(l),
|
|
14352
14357
|
label: l.label,
|
|
@@ -14399,17 +14404,17 @@ function de(e, t, n) {
|
|
|
14399
14404
|
let o;
|
|
14400
14405
|
n.key && n.debug && (o = Date.now());
|
|
14401
14406
|
const a = e();
|
|
14402
|
-
if (!(a.length !== i.length || a.some((
|
|
14407
|
+
if (!(a.length !== i.length || a.some((u, c) => i[c] !== u)))
|
|
14403
14408
|
return r;
|
|
14404
14409
|
i = a;
|
|
14405
14410
|
let s;
|
|
14406
14411
|
if (n.key && n.debug && (s = Date.now()), r = t(...a), n == null || n.onChange == null || n.onChange(r), n.key && n.debug && n != null && n.debug()) {
|
|
14407
|
-
const
|
|
14412
|
+
const u = Math.round((Date.now() - o) * 100) / 100, c = Math.round((Date.now() - s) * 100) / 100, d = c / 16, f = (g, p) => {
|
|
14408
14413
|
for (g = String(g); g.length < p; )
|
|
14409
14414
|
g = " " + g;
|
|
14410
14415
|
return g;
|
|
14411
14416
|
};
|
|
14412
|
-
console.info(`%c\u23F1 ${f(
|
|
14417
|
+
console.info(`%c\u23F1 ${f(c, 5)} /${f(u, 5)} ms`, `
|
|
14413
14418
|
font-size: .6rem;
|
|
14414
14419
|
font-weight: bold;
|
|
14415
14420
|
color: hsl(${Math.max(0, Math.min(120 - 120 * d, 120))}deg 100% 31%);`, n == null ? void 0 : n.key);
|
|
@@ -14423,19 +14428,19 @@ function h8(e, t, n, i) {
|
|
|
14423
14428
|
...e._getDefaultColumnDef(),
|
|
14424
14429
|
...t
|
|
14425
14430
|
}, s = l.accessorKey;
|
|
14426
|
-
let
|
|
14427
|
-
if (l.accessorFn ?
|
|
14431
|
+
let u = (r = (o = l.id) != null ? o : s ? s.replace(".", "_") : void 0) != null ? r : typeof l.header == "string" ? l.header : void 0, c;
|
|
14432
|
+
if (l.accessorFn ? c = l.accessorFn : s && (s.includes(".") ? c = (f) => {
|
|
14428
14433
|
let g = f;
|
|
14429
14434
|
for (const C of s.split(".")) {
|
|
14430
14435
|
var p;
|
|
14431
14436
|
g = (p = g) == null ? void 0 : p[C], process.env.NODE_ENV !== "production" && g === void 0 && console.warn(`"${C}" in deeply nested key "${s}" returned undefined.`);
|
|
14432
14437
|
}
|
|
14433
14438
|
return g;
|
|
14434
|
-
} :
|
|
14439
|
+
} : c = (f) => f[l.accessorKey]), !u)
|
|
14435
14440
|
throw process.env.NODE_ENV !== "production" ? new Error(l.accessorFn ? "Columns require an id when using an accessorFn" : "Columns require an id when using a non-string header") : new Error();
|
|
14436
14441
|
let d = {
|
|
14437
|
-
id: `${String(
|
|
14438
|
-
accessorFn:
|
|
14442
|
+
id: `${String(u)}`,
|
|
14443
|
+
accessorFn: c,
|
|
14439
14444
|
parent: i,
|
|
14440
14445
|
depth: n,
|
|
14441
14446
|
columnDef: l,
|
|
@@ -14500,8 +14505,8 @@ const b8 = {
|
|
|
14500
14505
|
createTable: (e) => ({
|
|
14501
14506
|
getHeaderGroups: de(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (t, n, i, r) => {
|
|
14502
14507
|
var o, a;
|
|
14503
|
-
const l = (o = i == null ? void 0 : i.map((d) => n.find((f) => f.id === d)).filter(Boolean)) != null ? o : [], s = (a = r == null ? void 0 : r.map((d) => n.find((f) => f.id === d)).filter(Boolean)) != null ? a : [],
|
|
14504
|
-
return E1(t, [...l, ...
|
|
14508
|
+
const l = (o = i == null ? void 0 : i.map((d) => n.find((f) => f.id === d)).filter(Boolean)) != null ? o : [], s = (a = r == null ? void 0 : r.map((d) => n.find((f) => f.id === d)).filter(Boolean)) != null ? a : [], u = n.filter((d) => !(i != null && i.includes(d.id)) && !(r != null && r.includes(d.id)));
|
|
14509
|
+
return E1(t, [...l, ...u, ...s], e);
|
|
14505
14510
|
}, {
|
|
14506
14511
|
key: process.env.NODE_ENV === "development" && "getHeaderGroups",
|
|
14507
14512
|
debug: () => {
|
|
@@ -14625,8 +14630,8 @@ const b8 = {
|
|
|
14625
14630
|
}
|
|
14626
14631
|
}),
|
|
14627
14632
|
getLeafHeaders: de(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (t, n, i) => {
|
|
14628
|
-
var r, o, a, l, s,
|
|
14629
|
-
return [...(r = (o = t[0]) == null ? void 0 : o.headers) != null ? r : [], ...(a = (l = n[0]) == null ? void 0 : l.headers) != null ? a : [], ...(s = (
|
|
14633
|
+
var r, o, a, l, s, u;
|
|
14634
|
+
return [...(r = (o = t[0]) == null ? void 0 : o.headers) != null ? r : [], ...(a = (l = n[0]) == null ? void 0 : l.headers) != null ? a : [], ...(s = (u = i[0]) == null ? void 0 : u.headers) != null ? s : []].map((c) => c.getLeafHeaders()).flat();
|
|
14630
14635
|
}, {
|
|
14631
14636
|
key: process.env.NODE_ENV === "development" && "getLeafHeaders",
|
|
14632
14637
|
debug: () => {
|
|
@@ -14647,7 +14652,7 @@ function E1(e, t, n, i) {
|
|
|
14647
14652
|
};
|
|
14648
14653
|
l(e);
|
|
14649
14654
|
let s = [];
|
|
14650
|
-
const
|
|
14655
|
+
const u = (f, g) => {
|
|
14651
14656
|
const p = {
|
|
14652
14657
|
depth: g,
|
|
14653
14658
|
id: [i, `${g}`].filter(Boolean).join("_"),
|
|
@@ -14669,12 +14674,12 @@ function E1(e, t, n, i) {
|
|
|
14669
14674
|
m.subHeaders.push(E), C.push(m);
|
|
14670
14675
|
}
|
|
14671
14676
|
p.headers.push(E), E.headerGroup = p;
|
|
14672
|
-
}), s.push(p), g > 0 &&
|
|
14673
|
-
},
|
|
14677
|
+
}), s.push(p), g > 0 && u(C, g - 1);
|
|
14678
|
+
}, c = t.map((f, g) => Oa(n, f, {
|
|
14674
14679
|
depth: a,
|
|
14675
14680
|
index: g
|
|
14676
14681
|
}));
|
|
14677
|
-
c
|
|
14682
|
+
u(c, a - 1), s.reverse();
|
|
14678
14683
|
const d = (f) => f.filter((p) => p.column.getIsVisible()).map((p) => {
|
|
14679
14684
|
let C = 0, E = 0, v = [0];
|
|
14680
14685
|
p.subHeaders && p.subHeaders.length ? (v = [], d(p.subHeaders).forEach((V) => {
|
|
@@ -14769,7 +14774,7 @@ const v1 = {
|
|
|
14769
14774
|
return (r) => {
|
|
14770
14775
|
if (!n || !i || (r.persist == null || r.persist(), Xr(r) && r.touches && r.touches.length > 1))
|
|
14771
14776
|
return;
|
|
14772
|
-
const o = e.getSize(), a = e ? e.getLeafHeaders().map((C) => [C.column.id, C.column.getSize()]) : [[n.id, n.getSize()]], l = Xr(r) ? Math.round(r.touches[0].clientX) : r.clientX, s = {},
|
|
14777
|
+
const o = e.getSize(), a = e ? e.getLeafHeaders().map((C) => [C.column.id, C.column.getSize()]) : [[n.id, n.getSize()]], l = Xr(r) ? Math.round(r.touches[0].clientX) : r.clientX, s = {}, u = (C, E) => {
|
|
14773
14778
|
typeof E == "number" && (t.setColumnSizingInfo((v) => {
|
|
14774
14779
|
var w, V;
|
|
14775
14780
|
const I = E - ((w = v == null ? void 0 : v.startOffset) != null ? w : 0), m = Math.max(I / ((V = v == null ? void 0 : v.startSize) != null ? V : 0), -0.999999);
|
|
@@ -14785,8 +14790,8 @@ const v1 = {
|
|
|
14785
14790
|
...v,
|
|
14786
14791
|
...s
|
|
14787
14792
|
})));
|
|
14788
|
-
},
|
|
14789
|
-
|
|
14793
|
+
}, c = (C) => u("move", C), d = (C) => {
|
|
14794
|
+
u("end", C), t.setColumnSizingInfo((E) => ({
|
|
14790
14795
|
...E,
|
|
14791
14796
|
isResizingColumn: !1,
|
|
14792
14797
|
startOffset: null,
|
|
@@ -14796,12 +14801,12 @@ const v1 = {
|
|
|
14796
14801
|
columnSizingStart: []
|
|
14797
14802
|
}));
|
|
14798
14803
|
}, f = {
|
|
14799
|
-
moveHandler: (C) =>
|
|
14804
|
+
moveHandler: (C) => c(C.clientX),
|
|
14800
14805
|
upHandler: (C) => {
|
|
14801
14806
|
document.removeEventListener("mousemove", f.moveHandler), document.removeEventListener("mouseup", f.upHandler), d(C.clientX);
|
|
14802
14807
|
}
|
|
14803
14808
|
}, g = {
|
|
14804
|
-
moveHandler: (C) => (C.cancelable && (C.preventDefault(), C.stopPropagation()),
|
|
14809
|
+
moveHandler: (C) => (C.cancelable && (C.preventDefault(), C.stopPropagation()), c(C.touches[0].clientX), !1),
|
|
14805
14810
|
upHandler: (C) => {
|
|
14806
14811
|
var E;
|
|
14807
14812
|
document.removeEventListener("touchmove", g.moveHandler), document.removeEventListener("touchend", g.upHandler), C.cancelable && (C.preventDefault(), C.stopPropagation()), d((E = C.touches[0]) == null ? void 0 : E.clientX);
|
|
@@ -15081,18 +15086,18 @@ const w8 = {
|
|
|
15081
15086
|
},
|
|
15082
15087
|
setFilterValue: (n) => {
|
|
15083
15088
|
t.setColumnFilters((i) => {
|
|
15084
|
-
const r = e.getFilterFn(), o = i == null ? void 0 : i.find((
|
|
15089
|
+
const r = e.getFilterFn(), o = i == null ? void 0 : i.find((c) => c.id === e.id), a = _t(n, o ? o.value : void 0);
|
|
15085
15090
|
if (Na(r, a, e)) {
|
|
15086
15091
|
var l;
|
|
15087
|
-
return (l = i == null ? void 0 : i.filter((
|
|
15092
|
+
return (l = i == null ? void 0 : i.filter((c) => c.id !== e.id)) != null ? l : [];
|
|
15088
15093
|
}
|
|
15089
15094
|
const s = {
|
|
15090
15095
|
id: e.id,
|
|
15091
15096
|
value: a
|
|
15092
15097
|
};
|
|
15093
15098
|
if (o) {
|
|
15094
|
-
var
|
|
15095
|
-
return (
|
|
15099
|
+
var u;
|
|
15100
|
+
return (u = i == null ? void 0 : i.map((c) => c.id === e.id ? s : c)) != null ? u : [];
|
|
15096
15101
|
}
|
|
15097
15102
|
return i != null && i.length ? [...i, s] : [s];
|
|
15098
15103
|
});
|
|
@@ -15308,8 +15313,8 @@ const k8 = {
|
|
|
15308
15313
|
else {
|
|
15309
15314
|
const a = [...t], l = [...r];
|
|
15310
15315
|
for (; l.length && a.length; ) {
|
|
15311
|
-
const s = a.shift(),
|
|
15312
|
-
|
|
15316
|
+
const s = a.shift(), u = l.findIndex((c) => c.id === s);
|
|
15317
|
+
u > -1 && o.push(l.splice(u, 1)[0]);
|
|
15313
15318
|
}
|
|
15314
15319
|
o = [...o, ...l];
|
|
15315
15320
|
}
|
|
@@ -15446,10 +15451,10 @@ const k8 = {
|
|
|
15446
15451
|
};
|
|
15447
15452
|
}
|
|
15448
15453
|
if (n === "left") {
|
|
15449
|
-
var
|
|
15454
|
+
var u, c;
|
|
15450
15455
|
return {
|
|
15451
|
-
left: [...((
|
|
15452
|
-
right: ((
|
|
15456
|
+
left: [...((u = r == null ? void 0 : r.left) != null ? u : []).filter((d) => !(i != null && i.includes(d))), ...i],
|
|
15457
|
+
right: ((c = r == null ? void 0 : r.right) != null ? c : []).filter((d) => !(i != null && i.includes(d)))
|
|
15453
15458
|
};
|
|
15454
15459
|
}
|
|
15455
15460
|
return {
|
|
@@ -15707,12 +15712,12 @@ const k8 = {
|
|
|
15707
15712
|
function Jr(e, t) {
|
|
15708
15713
|
const n = e.getState().rowSelection, i = [], r = {}, o = function(a, l) {
|
|
15709
15714
|
return a.map((s) => {
|
|
15710
|
-
var
|
|
15711
|
-
const
|
|
15712
|
-
if (
|
|
15715
|
+
var u;
|
|
15716
|
+
const c = uo(s, n);
|
|
15717
|
+
if (c && (i.push(s), r[s.id] = s), (u = s.subRows) != null && u.length && (s = {
|
|
15713
15718
|
...s,
|
|
15714
15719
|
subRows: o(s.subRows)
|
|
15715
|
-
}),
|
|
15720
|
+
}), c)
|
|
15716
15721
|
return s;
|
|
15717
15722
|
}).filter(Boolean);
|
|
15718
15723
|
};
|
|
@@ -15811,22 +15816,22 @@ const Gn = {
|
|
|
15811
15816
|
const r = e.getNextSortingOrder(), o = typeof n < "u" && n !== null;
|
|
15812
15817
|
t.setSorting((a) => {
|
|
15813
15818
|
const l = a == null ? void 0 : a.find((g) => g.id === e.id), s = a == null ? void 0 : a.findIndex((g) => g.id === e.id);
|
|
15814
|
-
let
|
|
15815
|
-
if (a != null && a.length && e.getCanMultiSort() && i ? l ?
|
|
15819
|
+
let u = [], c, d = o ? n : r === "desc";
|
|
15820
|
+
if (a != null && a.length && e.getCanMultiSort() && i ? l ? c = "toggle" : c = "add" : a != null && a.length && s !== a.length - 1 ? c = "replace" : l ? c = "toggle" : c = "replace", c === "toggle" && (o || r || (c = "remove")), c === "add") {
|
|
15816
15821
|
var f;
|
|
15817
|
-
|
|
15822
|
+
u = [...a, {
|
|
15818
15823
|
id: e.id,
|
|
15819
15824
|
desc: d
|
|
15820
|
-
}],
|
|
15825
|
+
}], u.splice(0, u.length - ((f = t.options.maxMultiSortColCount) != null ? f : Number.MAX_SAFE_INTEGER));
|
|
15821
15826
|
} else
|
|
15822
|
-
|
|
15827
|
+
c === "toggle" ? u = a.map((g) => g.id === e.id ? {
|
|
15823
15828
|
...g,
|
|
15824
15829
|
desc: d
|
|
15825
|
-
} : g) :
|
|
15830
|
+
} : g) : c === "remove" ? u = a.filter((g) => g.id !== e.id) : u = [{
|
|
15826
15831
|
id: e.id,
|
|
15827
15832
|
desc: d
|
|
15828
15833
|
}];
|
|
15829
|
-
return
|
|
15834
|
+
return u;
|
|
15830
15835
|
});
|
|
15831
15836
|
},
|
|
15832
15837
|
getFirstSortDir: () => {
|
|
@@ -15958,29 +15963,29 @@ function K8(e) {
|
|
|
15958
15963
|
let n = {
|
|
15959
15964
|
_features: La
|
|
15960
15965
|
};
|
|
15961
|
-
const i = n._features.reduce((
|
|
15966
|
+
const i = n._features.reduce((c, d) => Object.assign(c, d.getDefaultOptions == null ? void 0 : d.getDefaultOptions(n)), {}), r = (c) => n.options.mergeOptions ? n.options.mergeOptions(i, c) : {
|
|
15962
15967
|
...i,
|
|
15963
|
-
...
|
|
15968
|
+
...c
|
|
15964
15969
|
};
|
|
15965
15970
|
let a = {
|
|
15966
15971
|
...{},
|
|
15967
15972
|
...(t = e.initialState) != null ? t : {}
|
|
15968
15973
|
};
|
|
15969
|
-
n._features.forEach((
|
|
15974
|
+
n._features.forEach((c) => {
|
|
15970
15975
|
var d;
|
|
15971
|
-
a = (d =
|
|
15976
|
+
a = (d = c.getInitialState == null ? void 0 : c.getInitialState(a)) != null ? d : a;
|
|
15972
15977
|
});
|
|
15973
15978
|
const l = [];
|
|
15974
15979
|
let s = !1;
|
|
15975
|
-
const
|
|
15980
|
+
const u = {
|
|
15976
15981
|
_features: La,
|
|
15977
15982
|
options: {
|
|
15978
15983
|
...i,
|
|
15979
15984
|
...e
|
|
15980
15985
|
},
|
|
15981
15986
|
initialState: a,
|
|
15982
|
-
_queue: (
|
|
15983
|
-
l.push(
|
|
15987
|
+
_queue: (c) => {
|
|
15988
|
+
l.push(c), s || (s = !0, Promise.resolve().then(() => {
|
|
15984
15989
|
for (; l.length; )
|
|
15985
15990
|
l.shift()();
|
|
15986
15991
|
s = !1;
|
|
@@ -15991,29 +15996,29 @@ function K8(e) {
|
|
|
15991
15996
|
reset: () => {
|
|
15992
15997
|
n.setState(n.initialState);
|
|
15993
15998
|
},
|
|
15994
|
-
setOptions: (
|
|
15995
|
-
const d = _t(
|
|
15999
|
+
setOptions: (c) => {
|
|
16000
|
+
const d = _t(c, n.options);
|
|
15996
16001
|
n.options = r(d);
|
|
15997
16002
|
},
|
|
15998
16003
|
getState: () => n.options.state,
|
|
15999
|
-
setState: (
|
|
16000
|
-
n.options.onStateChange == null || n.options.onStateChange(
|
|
16004
|
+
setState: (c) => {
|
|
16005
|
+
n.options.onStateChange == null || n.options.onStateChange(c);
|
|
16001
16006
|
},
|
|
16002
|
-
_getRowId: (
|
|
16007
|
+
_getRowId: (c, d, f) => {
|
|
16003
16008
|
var g;
|
|
16004
|
-
return (g = n.options.getRowId == null ? void 0 : n.options.getRowId(
|
|
16009
|
+
return (g = n.options.getRowId == null ? void 0 : n.options.getRowId(c, d, f)) != null ? g : `${f ? [f.id, d].join(".") : d}`;
|
|
16005
16010
|
},
|
|
16006
16011
|
getCoreRowModel: () => (n._getCoreRowModel || (n._getCoreRowModel = n.options.getCoreRowModel(n)), n._getCoreRowModel()),
|
|
16007
16012
|
getRowModel: () => n.getPaginationRowModel(),
|
|
16008
|
-
getRow: (
|
|
16009
|
-
const d = n.getRowModel().rowsById[
|
|
16013
|
+
getRow: (c) => {
|
|
16014
|
+
const d = n.getRowModel().rowsById[c];
|
|
16010
16015
|
if (!d)
|
|
16011
|
-
throw process.env.NODE_ENV !== "production" ? new Error(`getRow expected an ID, but got ${
|
|
16016
|
+
throw process.env.NODE_ENV !== "production" ? new Error(`getRow expected an ID, but got ${c}`) : new Error();
|
|
16012
16017
|
return d;
|
|
16013
16018
|
},
|
|
16014
|
-
_getDefaultColumnDef: de(() => [n.options.defaultColumn], (
|
|
16019
|
+
_getDefaultColumnDef: de(() => [n.options.defaultColumn], (c) => {
|
|
16015
16020
|
var d;
|
|
16016
|
-
return
|
|
16021
|
+
return c = (d = c) != null ? d : {}, {
|
|
16017
16022
|
header: (f) => {
|
|
16018
16023
|
const g = f.header.column.columnDef;
|
|
16019
16024
|
return g.accessorKey ? g.accessorKey : g.accessorFn ? g.id : null;
|
|
@@ -16023,61 +16028,61 @@ function K8(e) {
|
|
|
16023
16028
|
return (g = (p = f.renderValue()) == null || p.toString == null ? void 0 : p.toString()) != null ? g : null;
|
|
16024
16029
|
},
|
|
16025
16030
|
...n._features.reduce((f, g) => Object.assign(f, g.getDefaultColumnDef == null ? void 0 : g.getDefaultColumnDef()), {}),
|
|
16026
|
-
...
|
|
16031
|
+
...c
|
|
16027
16032
|
};
|
|
16028
16033
|
}, {
|
|
16029
16034
|
debug: () => {
|
|
16030
|
-
var
|
|
16031
|
-
return (
|
|
16035
|
+
var c;
|
|
16036
|
+
return (c = n.options.debugAll) != null ? c : n.options.debugColumns;
|
|
16032
16037
|
},
|
|
16033
16038
|
key: process.env.NODE_ENV === "development" && "getDefaultColumnDef"
|
|
16034
16039
|
}),
|
|
16035
16040
|
_getColumnDefs: () => n.options.columns,
|
|
16036
|
-
getAllColumns: de(() => [n._getColumnDefs()], (
|
|
16041
|
+
getAllColumns: de(() => [n._getColumnDefs()], (c) => {
|
|
16037
16042
|
const d = function(f, g, p) {
|
|
16038
16043
|
return p === void 0 && (p = 0), f.map((C) => {
|
|
16039
16044
|
const E = h8(n, C, p, g), v = C;
|
|
16040
16045
|
return E.columns = v.columns ? d(v.columns, E, p + 1) : [], E;
|
|
16041
16046
|
});
|
|
16042
16047
|
};
|
|
16043
|
-
return d(
|
|
16048
|
+
return d(c);
|
|
16044
16049
|
}, {
|
|
16045
16050
|
key: process.env.NODE_ENV === "development" && "getAllColumns",
|
|
16046
16051
|
debug: () => {
|
|
16047
|
-
var
|
|
16048
|
-
return (
|
|
16052
|
+
var c;
|
|
16053
|
+
return (c = n.options.debugAll) != null ? c : n.options.debugColumns;
|
|
16049
16054
|
}
|
|
16050
16055
|
}),
|
|
16051
|
-
getAllFlatColumns: de(() => [n.getAllColumns()], (
|
|
16056
|
+
getAllFlatColumns: de(() => [n.getAllColumns()], (c) => c.flatMap((d) => d.getFlatColumns()), {
|
|
16052
16057
|
key: process.env.NODE_ENV === "development" && "getAllFlatColumns",
|
|
16053
16058
|
debug: () => {
|
|
16054
|
-
var
|
|
16055
|
-
return (
|
|
16059
|
+
var c;
|
|
16060
|
+
return (c = n.options.debugAll) != null ? c : n.options.debugColumns;
|
|
16056
16061
|
}
|
|
16057
16062
|
}),
|
|
16058
|
-
_getAllFlatColumnsById: de(() => [n.getAllFlatColumns()], (
|
|
16063
|
+
_getAllFlatColumnsById: de(() => [n.getAllFlatColumns()], (c) => c.reduce((d, f) => (d[f.id] = f, d), {}), {
|
|
16059
16064
|
key: process.env.NODE_ENV === "development" && "getAllFlatColumnsById",
|
|
16060
16065
|
debug: () => {
|
|
16061
|
-
var
|
|
16062
|
-
return (
|
|
16066
|
+
var c;
|
|
16067
|
+
return (c = n.options.debugAll) != null ? c : n.options.debugColumns;
|
|
16063
16068
|
}
|
|
16064
16069
|
}),
|
|
16065
|
-
getAllLeafColumns: de(() => [n.getAllColumns(), n._getOrderColumnsFn()], (
|
|
16066
|
-
let f =
|
|
16070
|
+
getAllLeafColumns: de(() => [n.getAllColumns(), n._getOrderColumnsFn()], (c, d) => {
|
|
16071
|
+
let f = c.flatMap((g) => g.getLeafColumns());
|
|
16067
16072
|
return d(f);
|
|
16068
16073
|
}, {
|
|
16069
16074
|
key: process.env.NODE_ENV === "development" && "getAllLeafColumns",
|
|
16070
16075
|
debug: () => {
|
|
16071
|
-
var
|
|
16072
|
-
return (
|
|
16076
|
+
var c;
|
|
16077
|
+
return (c = n.options.debugAll) != null ? c : n.options.debugColumns;
|
|
16073
16078
|
}
|
|
16074
16079
|
}),
|
|
16075
|
-
getColumn: (
|
|
16076
|
-
const d = n._getAllFlatColumnsById()[
|
|
16077
|
-
return process.env.NODE_ENV !== "production" && !d && console.error(`[Table] Column with id '${
|
|
16080
|
+
getColumn: (c) => {
|
|
16081
|
+
const d = n._getAllFlatColumnsById()[c];
|
|
16082
|
+
return process.env.NODE_ENV !== "production" && !d && console.error(`[Table] Column with id '${c}' does not exist.`), d;
|
|
16078
16083
|
}
|
|
16079
16084
|
};
|
|
16080
|
-
return Object.assign(n,
|
|
16085
|
+
return Object.assign(n, u), n._features.forEach((c) => Object.assign(n, c.createTable == null ? void 0 : c.createTable(n))), n;
|
|
16081
16086
|
}
|
|
16082
16087
|
function q8(e, t, n, i) {
|
|
16083
16088
|
const r = () => {
|
|
@@ -16089,13 +16094,13 @@ function q8(e, t, n, i) {
|
|
|
16089
16094
|
column: n,
|
|
16090
16095
|
getValue: () => t.getValue(i),
|
|
16091
16096
|
renderValue: r,
|
|
16092
|
-
getContext: de(() => [e, n, t, o], (a, l, s,
|
|
16097
|
+
getContext: de(() => [e, n, t, o], (a, l, s, u) => ({
|
|
16093
16098
|
table: a,
|
|
16094
16099
|
column: l,
|
|
16095
16100
|
row: s,
|
|
16096
|
-
cell:
|
|
16097
|
-
getValue:
|
|
16098
|
-
renderValue:
|
|
16101
|
+
cell: u,
|
|
16102
|
+
getValue: u.getValue,
|
|
16103
|
+
renderValue: u.renderValue
|
|
16099
16104
|
}), {
|
|
16100
16105
|
key: process.env.NODE_ENV === "development" && "cell.getContext",
|
|
16101
16106
|
debug: () => e.options.debugAll
|
|
@@ -16140,7 +16145,7 @@ const Ao = (e, t, n, i, r, o) => {
|
|
|
16140
16145
|
return (l = e.options.debugAll) != null ? l : e.options.debugRows;
|
|
16141
16146
|
}
|
|
16142
16147
|
}),
|
|
16143
|
-
_getAllCellsByColumnId: de(() => [a.getAllCells()], (l) => l.reduce((s,
|
|
16148
|
+
_getAllCellsByColumnId: de(() => [a.getAllCells()], (l) => l.reduce((s, u) => (s[u.column.id] = u, s), {}), {
|
|
16144
16149
|
key: process.env.NODE_ENV === "production" && "row.getAllCellsByColumnId",
|
|
16145
16150
|
debug: () => {
|
|
16146
16151
|
var l;
|
|
@@ -16163,11 +16168,11 @@ function _8() {
|
|
|
16163
16168
|
}, i = function(r, o, a) {
|
|
16164
16169
|
o === void 0 && (o = 0);
|
|
16165
16170
|
const l = [];
|
|
16166
|
-
for (let
|
|
16167
|
-
const
|
|
16168
|
-
if (n.flatRows.push(
|
|
16171
|
+
for (let u = 0; u < r.length; u++) {
|
|
16172
|
+
const c = Ao(e, e._getRowId(r[u], u, a), r[u], u, o);
|
|
16173
|
+
if (n.flatRows.push(c), n.rowsById[c.id] = c, l.push(c), e.options.getSubRows) {
|
|
16169
16174
|
var s;
|
|
16170
|
-
|
|
16175
|
+
c.originalSubRows = e.options.getSubRows(r[u], u), (s = c.originalSubRows) != null && s.length && (c.subRows = i(c.originalSubRows, o + 1, c));
|
|
16171
16176
|
}
|
|
16172
16177
|
}
|
|
16173
16178
|
return l;
|
|
@@ -16189,26 +16194,26 @@ function $8(e, t, n) {
|
|
|
16189
16194
|
}
|
|
16190
16195
|
function e7(e, t, n) {
|
|
16191
16196
|
var i;
|
|
16192
|
-
const r = [], o = {}, a = (i = n.options.maxLeafRowFilterDepth) != null ? i : 100, l = function(s,
|
|
16193
|
-
|
|
16194
|
-
const
|
|
16197
|
+
const r = [], o = {}, a = (i = n.options.maxLeafRowFilterDepth) != null ? i : 100, l = function(s, u) {
|
|
16198
|
+
u === void 0 && (u = 0);
|
|
16199
|
+
const c = [];
|
|
16195
16200
|
for (let f = 0; f < s.length; f++) {
|
|
16196
16201
|
var d;
|
|
16197
16202
|
let g = s[f];
|
|
16198
16203
|
const p = Ao(n, g.id, g.original, g.index, g.depth);
|
|
16199
|
-
if (p.columnFilters = g.columnFilters, (d = g.subRows) != null && d.length &&
|
|
16200
|
-
if (p.subRows = l(g.subRows,
|
|
16201
|
-
|
|
16204
|
+
if (p.columnFilters = g.columnFilters, (d = g.subRows) != null && d.length && u < a) {
|
|
16205
|
+
if (p.subRows = l(g.subRows, u + 1), g = p, t(g) && !p.subRows.length) {
|
|
16206
|
+
c.push(g), o[g.id] = g, o[f] = g;
|
|
16202
16207
|
continue;
|
|
16203
16208
|
}
|
|
16204
16209
|
if (t(g) || p.subRows.length) {
|
|
16205
|
-
|
|
16210
|
+
c.push(g), o[g.id] = g, o[f] = g;
|
|
16206
16211
|
continue;
|
|
16207
16212
|
}
|
|
16208
16213
|
} else
|
|
16209
|
-
g = p, t(g) && (
|
|
16214
|
+
g = p, t(g) && (c.push(g), o[g.id] = g, o[f] = g);
|
|
16210
16215
|
}
|
|
16211
|
-
return
|
|
16216
|
+
return c;
|
|
16212
16217
|
};
|
|
16213
16218
|
return {
|
|
16214
16219
|
rows: l(e),
|
|
@@ -16218,21 +16223,21 @@ function e7(e, t, n) {
|
|
|
16218
16223
|
}
|
|
16219
16224
|
function t7(e, t, n) {
|
|
16220
16225
|
var i;
|
|
16221
|
-
const r = [], o = {}, a = (i = n.options.maxLeafRowFilterDepth) != null ? i : 100, l = function(s,
|
|
16222
|
-
|
|
16223
|
-
const
|
|
16226
|
+
const r = [], o = {}, a = (i = n.options.maxLeafRowFilterDepth) != null ? i : 100, l = function(s, u) {
|
|
16227
|
+
u === void 0 && (u = 0);
|
|
16228
|
+
const c = [];
|
|
16224
16229
|
for (let f = 0; f < s.length; f++) {
|
|
16225
16230
|
let g = s[f];
|
|
16226
16231
|
if (t(g)) {
|
|
16227
16232
|
var d;
|
|
16228
|
-
if ((d = g.subRows) != null && d.length &&
|
|
16233
|
+
if ((d = g.subRows) != null && d.length && u < a) {
|
|
16229
16234
|
const C = Ao(n, g.id, g.original, g.index, g.depth);
|
|
16230
|
-
C.subRows = l(g.subRows,
|
|
16235
|
+
C.subRows = l(g.subRows, u + 1), g = C;
|
|
16231
16236
|
}
|
|
16232
|
-
|
|
16237
|
+
c.push(g), r.push(g), o[g.id] = g;
|
|
16233
16238
|
}
|
|
16234
16239
|
}
|
|
16235
|
-
return
|
|
16240
|
+
return c;
|
|
16236
16241
|
};
|
|
16237
16242
|
return {
|
|
16238
16243
|
rows: l(e),
|
|
@@ -16273,22 +16278,22 @@ function n7() {
|
|
|
16273
16278
|
resolvedValue: (g = l.resolveFilterValue == null ? void 0 : l.resolveFilterValue(i)) != null ? g : i
|
|
16274
16279
|
});
|
|
16275
16280
|
}));
|
|
16276
|
-
let
|
|
16281
|
+
let u, c;
|
|
16277
16282
|
for (let f = 0; f < t.flatRows.length; f++) {
|
|
16278
16283
|
const g = t.flatRows[f];
|
|
16279
16284
|
if (g.columnFilters = {}, r.length)
|
|
16280
16285
|
for (let p = 0; p < r.length; p++) {
|
|
16281
|
-
|
|
16282
|
-
const C =
|
|
16283
|
-
g.columnFilters[C] =
|
|
16286
|
+
u = r[p];
|
|
16287
|
+
const C = u.id;
|
|
16288
|
+
g.columnFilters[C] = u.filterFn(g, C, u.resolvedValue, (E) => {
|
|
16284
16289
|
g.columnFiltersMeta[C] = E;
|
|
16285
16290
|
});
|
|
16286
16291
|
}
|
|
16287
16292
|
if (o.length) {
|
|
16288
16293
|
for (let p = 0; p < o.length; p++) {
|
|
16289
|
-
|
|
16290
|
-
const C =
|
|
16291
|
-
if (
|
|
16294
|
+
c = o[p];
|
|
16295
|
+
const C = c.id;
|
|
16296
|
+
if (c.filterFn(g, C, c.resolvedValue, (E) => {
|
|
16292
16297
|
g.columnFiltersMeta[C] = E;
|
|
16293
16298
|
})) {
|
|
16294
16299
|
g.columnFilters.__global__ = !0;
|
|
@@ -16321,37 +16326,37 @@ function r7() {
|
|
|
16321
16326
|
if (!n.rows.length || !(t != null && t.length))
|
|
16322
16327
|
return n;
|
|
16323
16328
|
const i = e.getState().sorting, r = [], o = i.filter((s) => {
|
|
16324
|
-
var
|
|
16325
|
-
return (
|
|
16329
|
+
var u;
|
|
16330
|
+
return (u = e.getColumn(s.id)) == null ? void 0 : u.getCanSort();
|
|
16326
16331
|
}), a = {};
|
|
16327
16332
|
o.forEach((s) => {
|
|
16328
|
-
const
|
|
16329
|
-
!
|
|
16330
|
-
sortUndefined:
|
|
16331
|
-
invertSorting:
|
|
16332
|
-
sortingFn:
|
|
16333
|
+
const u = e.getColumn(s.id);
|
|
16334
|
+
!u || (a[s.id] = {
|
|
16335
|
+
sortUndefined: u.columnDef.sortUndefined,
|
|
16336
|
+
invertSorting: u.columnDef.invertSorting,
|
|
16337
|
+
sortingFn: u.getSortingFn()
|
|
16333
16338
|
});
|
|
16334
16339
|
});
|
|
16335
16340
|
const l = (s) => {
|
|
16336
|
-
const
|
|
16337
|
-
return
|
|
16341
|
+
const u = [...s];
|
|
16342
|
+
return u.sort((c, d) => {
|
|
16338
16343
|
for (let g = 0; g < o.length; g += 1) {
|
|
16339
16344
|
var f;
|
|
16340
16345
|
const p = o[g], C = a[p.id], E = (f = p == null ? void 0 : p.desc) != null ? f : !1;
|
|
16341
16346
|
if (C.sortUndefined) {
|
|
16342
|
-
const w =
|
|
16347
|
+
const w = c.getValue(p.id), V = d.getValue(p.id), I = typeof w > "u", m = typeof V > "u";
|
|
16343
16348
|
if (I || m)
|
|
16344
16349
|
return I && m ? 0 : I ? C.sortUndefined : -C.sortUndefined;
|
|
16345
16350
|
}
|
|
16346
|
-
let v = C.sortingFn(
|
|
16351
|
+
let v = C.sortingFn(c, d, p.id);
|
|
16347
16352
|
if (v !== 0)
|
|
16348
16353
|
return E && (v *= -1), C.invertSorting && (v *= -1), v;
|
|
16349
16354
|
}
|
|
16350
|
-
return
|
|
16351
|
-
}),
|
|
16355
|
+
return c.index - d.index;
|
|
16356
|
+
}), u.forEach((c) => {
|
|
16352
16357
|
var d;
|
|
16353
|
-
r.push(
|
|
16354
|
-
}),
|
|
16358
|
+
r.push(c), (d = c.subRows) != null && d.length && (c.subRows = l(c.subRows));
|
|
16359
|
+
}), u;
|
|
16355
16360
|
};
|
|
16356
16361
|
return {
|
|
16357
16362
|
rows: l(n.rows),
|
|
@@ -16393,8 +16398,8 @@ function o7(e) {
|
|
|
16393
16398
|
flatRows: l,
|
|
16394
16399
|
rowsById: s
|
|
16395
16400
|
} = i;
|
|
16396
|
-
const
|
|
16397
|
-
a = a.slice(
|
|
16401
|
+
const u = r * o, c = u + r;
|
|
16402
|
+
a = a.slice(u, c);
|
|
16398
16403
|
let d;
|
|
16399
16404
|
t.options.paginateExpandedRows ? d = {
|
|
16400
16405
|
rows: a,
|
|
@@ -16919,11 +16924,11 @@ function f7(e, t, n) {
|
|
|
16919
16924
|
const l = r[a];
|
|
16920
16925
|
let s = ka(l.itemValue, t, n);
|
|
16921
16926
|
const {
|
|
16922
|
-
minRanking:
|
|
16923
|
-
maxRanking:
|
|
16927
|
+
minRanking: u,
|
|
16928
|
+
maxRanking: c,
|
|
16924
16929
|
threshold: d = n.threshold
|
|
16925
16930
|
} = l.attributes;
|
|
16926
|
-
s <
|
|
16931
|
+
s < u && s >= dt.MATCHES ? s = u : s > c && (s = c), s = Math.min(s, c), s >= d && s > o.rank && (o.rank = s, o.passed = !0, o.accessorIndex = a, o.accessorThreshold = d, o.rankedValue = l.itemValue);
|
|
16927
16932
|
}
|
|
16928
16933
|
return o;
|
|
16929
16934
|
}
|
|
@@ -16940,23 +16945,23 @@ function g7(e) {
|
|
|
16940
16945
|
}
|
|
16941
16946
|
function C7(e, t) {
|
|
16942
16947
|
let n = 0, i = 0;
|
|
16943
|
-
function r(s,
|
|
16944
|
-
for (let d =
|
|
16945
|
-
if (
|
|
16948
|
+
function r(s, u, c) {
|
|
16949
|
+
for (let d = c, f = u.length; d < f; d++)
|
|
16950
|
+
if (u[d] === s)
|
|
16946
16951
|
return n += 1, d + 1;
|
|
16947
16952
|
return -1;
|
|
16948
16953
|
}
|
|
16949
16954
|
function o(s) {
|
|
16950
|
-
const
|
|
16951
|
-
return dt.MATCHES +
|
|
16955
|
+
const u = 1 / s, c = n / t.length;
|
|
16956
|
+
return dt.MATCHES + c * u;
|
|
16952
16957
|
}
|
|
16953
16958
|
const a = r(t[0], e, 0);
|
|
16954
16959
|
if (a < 0)
|
|
16955
16960
|
return dt.NO_MATCH;
|
|
16956
16961
|
i = a;
|
|
16957
|
-
for (let s = 1,
|
|
16958
|
-
const
|
|
16959
|
-
if (i = r(
|
|
16962
|
+
for (let s = 1, u = t.length; s < u; s++) {
|
|
16963
|
+
const c = t[s];
|
|
16964
|
+
if (i = r(c, e, i), !(i > -1))
|
|
16960
16965
|
return dt.NO_MATCH;
|
|
16961
16966
|
}
|
|
16962
16967
|
const l = i - a;
|
|
@@ -16978,7 +16983,7 @@ function m7(e, t) {
|
|
|
16978
16983
|
const n = [];
|
|
16979
16984
|
for (let i = 0, r = t.length; i < r; i++) {
|
|
16980
16985
|
const o = t[i], a = E7(o), l = p7(e, o);
|
|
16981
|
-
for (let s = 0,
|
|
16986
|
+
for (let s = 0, u = l.length; s < u; s++)
|
|
16982
16987
|
n.push({
|
|
16983
16988
|
itemValue: l[s],
|
|
16984
16989
|
attributes: a
|
|
@@ -17018,11 +17023,11 @@ function v7({
|
|
|
17018
17023
|
}), /* @__PURE__ */ A("select", {
|
|
17019
17024
|
className: "focus:ring-none text-letter-default text-xxs p-0 flex justify-center items-center appearance-none bg-none border-transparent ring-transparent focus:shadow-none focus:outline-none focus:border-none",
|
|
17020
17025
|
value: n,
|
|
17021
|
-
onChange: (
|
|
17022
|
-
children: s == null ? void 0 : s.map((
|
|
17023
|
-
value:
|
|
17024
|
-
children:
|
|
17025
|
-
},
|
|
17026
|
+
onChange: (u) => i(Number(u.target.value)),
|
|
17027
|
+
children: s == null ? void 0 : s.map((u) => /* @__PURE__ */ A("option", {
|
|
17028
|
+
value: u,
|
|
17029
|
+
children: u
|
|
17030
|
+
}, u))
|
|
17026
17031
|
}), /* @__PURE__ */ A("button", {
|
|
17027
17032
|
onClick: r,
|
|
17028
17033
|
disabled: !o,
|
|
@@ -17077,7 +17082,7 @@ function X7({
|
|
|
17077
17082
|
hasPagination: r = !1,
|
|
17078
17083
|
paginationOptionList: o = [10, 20, 30, 40, 50]
|
|
17079
17084
|
}) {
|
|
17080
|
-
const [a] = ae(() => [...t]), l = se(() => n, []), [s,
|
|
17085
|
+
const [a] = ae(() => [...t]), l = se(() => n, []), [s, u] = ae([]), [c, d] = ae(""), f = (p, C, E, v) => {
|
|
17081
17086
|
const w = f7(p.getValue(C), E);
|
|
17082
17087
|
return v({
|
|
17083
17088
|
itemRank: w
|
|
@@ -17090,9 +17095,9 @@ function X7({
|
|
|
17090
17095
|
},
|
|
17091
17096
|
state: {
|
|
17092
17097
|
columnFilters: s,
|
|
17093
|
-
globalFilter:
|
|
17098
|
+
globalFilter: c
|
|
17094
17099
|
},
|
|
17095
|
-
onColumnFiltersChange:
|
|
17100
|
+
onColumnFiltersChange: u,
|
|
17096
17101
|
onGlobalFilterChange: d,
|
|
17097
17102
|
globalFilterFn: f,
|
|
17098
17103
|
getCoreRowModel: _8(),
|
|
@@ -17105,7 +17110,7 @@ function X7({
|
|
|
17105
17110
|
return /* @__PURE__ */ _("div", {
|
|
17106
17111
|
className: "p-2",
|
|
17107
17112
|
children: [e ? /* @__PURE__ */ A(I7, {
|
|
17108
|
-
value:
|
|
17113
|
+
value: c != null ? c : "",
|
|
17109
17114
|
onChange: (p) => d(String(p)),
|
|
17110
17115
|
placeholder: i
|
|
17111
17116
|
}) : null, /* @__PURE__ */ _("table", {
|
|
@@ -17223,8 +17228,8 @@ function W7({
|
|
|
17223
17228
|
onChange: n
|
|
17224
17229
|
}) {
|
|
17225
17230
|
const i = (a, l) => l != null && l.error ? "border-action-critical-default" : (l == null ? void 0 : l.isDisabled) || (l == null ? void 0 : l.isLoading) ? "border-border-disabled" : a ? "shadow-[0px_0px_0px_1px_#3EADFE]" : "border-border-default hover:border-border-hovered", r = (a, l) => {
|
|
17226
|
-
var s,
|
|
17227
|
-
return ((s = a == null ? void 0 : a.id) == null ? void 0 : s.toLowerCase()) === ((
|
|
17231
|
+
var s, u;
|
|
17232
|
+
return ((s = a == null ? void 0 : a.id) == null ? void 0 : s.toLowerCase()) === ((u = l == null ? void 0 : l.id) == null ? void 0 : u.toLowerCase());
|
|
17228
17233
|
}, o = se(() => e, [e]);
|
|
17229
17234
|
return o.length > 0 ? /* @__PURE__ */ A(yo, {
|
|
17230
17235
|
value: t,
|
|
@@ -17240,7 +17245,7 @@ function W7({
|
|
|
17240
17245
|
children: ({
|
|
17241
17246
|
checked: l
|
|
17242
17247
|
}) => {
|
|
17243
|
-
var s,
|
|
17248
|
+
var s, u;
|
|
17244
17249
|
return /* @__PURE__ */ _(ze, {
|
|
17245
17250
|
children: [(a == null ? void 0 : a.isLoading) && /* @__PURE__ */ A("div", {
|
|
17246
17251
|
className: "flex justify-center w-full",
|
|
@@ -17275,7 +17280,7 @@ function W7({
|
|
|
17275
17280
|
variant: "highlight",
|
|
17276
17281
|
className: "whitespace-nowrap",
|
|
17277
17282
|
color: a != null && a.isDisabled ? "disabled" : "subdued",
|
|
17278
|
-
children: (
|
|
17283
|
+
children: (u = a == null ? void 0 : a.description) != null ? u : ""
|
|
17279
17284
|
})]
|
|
17280
17285
|
})]
|
|
17281
17286
|
})]
|
|
@@ -17296,8 +17301,8 @@ function Y7({
|
|
|
17296
17301
|
titleNotFound: n = "No hay coincidencias",
|
|
17297
17302
|
onSelected: i
|
|
17298
17303
|
}) {
|
|
17299
|
-
const [r, o] = ae([]), [a, l] = ae(""), [s,
|
|
17300
|
-
l(E),
|
|
17304
|
+
const [r, o] = ae([]), [a, l] = ae(""), [s, u] = ae([]), c = (E) => o((v) => v.includes(E) ? (i(v.filter((w) => w !== E)), v.filter((w) => w !== E)) : (i([...v, E]), [...v, E])), d = (E) => r.some((v) => v.value === E.value && v.label === E.label), f = (E) => {
|
|
17305
|
+
l(E), u(e.filter((v) => String(v.label).includes(E)));
|
|
17301
17306
|
}, g = r.map((E, v) => /* @__PURE__ */ A("div", {
|
|
17302
17307
|
className: " bg-surface-neutral-default pl-[8px] pr-[4px] py-[4px] rounded",
|
|
17303
17308
|
children: /* @__PURE__ */ _("span", {
|
|
@@ -17307,7 +17312,7 @@ function Y7({
|
|
|
17307
17312
|
children: /* @__PURE__ */ A(De, {
|
|
17308
17313
|
kind: "delete",
|
|
17309
17314
|
color: "default",
|
|
17310
|
-
onClick: () =>
|
|
17315
|
+
onClick: () => c(E)
|
|
17311
17316
|
})
|
|
17312
17317
|
})]
|
|
17313
17318
|
})
|
|
@@ -17319,7 +17324,7 @@ function Y7({
|
|
|
17319
17324
|
children: /* @__PURE__ */ A(Q2, {
|
|
17320
17325
|
checked: d(v),
|
|
17321
17326
|
label: v.label,
|
|
17322
|
-
onChange: () =>
|
|
17327
|
+
onChange: () => c(v)
|
|
17323
17328
|
})
|
|
17324
17329
|
}, `options${w}`))
|
|
17325
17330
|
});
|
|
@@ -17490,8 +17495,8 @@ const b7 = St((e, t) => {
|
|
|
17490
17495
|
isLoading: a = !1,
|
|
17491
17496
|
isDisabled: l = !1,
|
|
17492
17497
|
align: s = "center",
|
|
17493
|
-
onlyOneIcon:
|
|
17494
|
-
type:
|
|
17498
|
+
onlyOneIcon: u,
|
|
17499
|
+
type: c = "button",
|
|
17495
17500
|
children: d,
|
|
17496
17501
|
onClick: f,
|
|
17497
17502
|
className: g
|
|
@@ -17504,7 +17509,7 @@ const b7 = St((e, t) => {
|
|
|
17504
17509
|
size: r,
|
|
17505
17510
|
fullWidth: o,
|
|
17506
17511
|
align: s,
|
|
17507
|
-
onlyOneIcon:
|
|
17512
|
+
onlyOneIcon: u,
|
|
17508
17513
|
className: g
|
|
17509
17514
|
}), C = () => typeof d == "string" ? /* @__PURE__ */ A("span", {
|
|
17510
17515
|
className: a ? "invisible" : "",
|
|
@@ -17512,7 +17517,7 @@ const b7 = St((e, t) => {
|
|
|
17512
17517
|
}) : d;
|
|
17513
17518
|
return /* @__PURE__ */ _("button", {
|
|
17514
17519
|
ref: t,
|
|
17515
|
-
type:
|
|
17520
|
+
type: c,
|
|
17516
17521
|
className: p(),
|
|
17517
17522
|
disabled: l || a,
|
|
17518
17523
|
onClick: f,
|