docthub-core-components 2.74.0 → 2.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +629 -622
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as c, jsxs as S, Fragment as Ut } from "react/jsx-runtime";
|
|
2
2
|
import { c as I } from "react-compiler-runtime";
|
|
3
3
|
import * as L from "react";
|
|
4
|
-
import _l, { useState as
|
|
4
|
+
import _l, { useState as Ne, useId as xt, useEffect as Je, useRef as ht, useDeferredValue as Nr, useMemo as Yt, useCallback as Me, memo as kr, forwardRef as Dr } from "react";
|
|
5
5
|
import { LoaderCircle as Cr, EyeOff as Sr, Eye as $r, X as Ct, Search as Ir, ChevronsUpDown as Ar, CheckIcon as _r, ChevronDown as bt, Check as Rl, Minus as es, ChevronUp as Er, MapPin as Rr, Mail as Os, Phone as Or, Building as Fr, CalendarDays as Fs, ChevronLeft as Ts, ChevronRight as Ol, Filter as Tr, User as Mr, AlertCircle as bs, AlertTriangle as Ms, CheckCircle2 as Ps, Info as Zl, Circle as zs, XCircle as Pr, ArrowRight as Ls, MoreHorizontal as zr } from "lucide-react";
|
|
6
6
|
import { clsx as Lr } from "clsx";
|
|
7
7
|
import { twMerge as Br } from "tailwind-merge";
|
|
@@ -23,7 +23,7 @@ import { DayPicker as qs } from "react-day-picker";
|
|
|
23
23
|
import { Collapsible as mt } from "@base-ui/react/collapsible";
|
|
24
24
|
import { Avatar as ts } from "@base-ui/react/avatar";
|
|
25
25
|
import { Drawer as Tt } from "vaul";
|
|
26
|
-
import { Menu as
|
|
26
|
+
import { Menu as it } from "@base-ui/react/menu";
|
|
27
27
|
import { Progress as Hl } from "@base-ui/react/progress";
|
|
28
28
|
import { Radio as vs } from "@base-ui/react/radio";
|
|
29
29
|
import { RadioGroup as Vr } from "@base-ui/react/radio-group";
|
|
@@ -163,23 +163,23 @@ const Rt = (n) => {
|
|
|
163
163
|
fridged: o,
|
|
164
164
|
...x
|
|
165
165
|
} = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s, e[4] = r, e[5] = o, e[6] = i, e[7] = a, e[8] = d, e[9] = u, e[10] = m, e[11] = f, e[12] = h, e[13] = b, e[14] = p, e[15] = g, e[16] = x, e[17] = w, e[18] = v, e[19] = y, e[20] = N) : (t = e[1], l = e[2], s = e[3], r = e[4], o = e[5], i = e[6], a = e[7], d = e[8], u = e[9], m = e[10], f = e[11], h = e[12], b = e[13], p = e[14], g = e[15], x = e[16], w = e[17], v = e[18], y = e[19], N = e[20]);
|
|
166
|
-
const D = y === void 0 ? "text" : y, [C, E] =
|
|
166
|
+
const D = y === void 0 ? "text" : y, [C, E] = Ne(typeof N == "string" ? N.length : String(N ?? "").length), B = xt(), R = xt(), _ = p || o, z = t || m, F = x["aria-describedby"];
|
|
167
167
|
let j;
|
|
168
168
|
e[21] !== r || e[22] !== R || e[23] !== i || e[24] !== F ? (j = [F, i || r ? R : void 0].filter(Boolean).join(" ") || void 0, e[21] = r, e[22] = R, e[23] = i, e[24] = F, e[25] = j) : j = e[25];
|
|
169
169
|
const $ = j;
|
|
170
170
|
let V, O;
|
|
171
171
|
e[26] !== o ? (V = () => {
|
|
172
172
|
o && process.env.NODE_ENV !== "production" && console.warn('[LabeledInput] The "fridged" prop is deprecated and will be removed in v3.0. Please use "readOnly" instead.');
|
|
173
|
-
}, O = [o], e[26] = o, e[27] = V, e[28] = O) : (V = e[27], O = e[28]),
|
|
173
|
+
}, O = [o], e[26] = o, e[27] = V, e[28] = O) : (V = e[27], O = e[28]), Je(V, O);
|
|
174
174
|
let G;
|
|
175
|
-
e[29] !== f || e[30] !== h ? (G = (
|
|
176
|
-
f == null || f(
|
|
175
|
+
e[29] !== f || e[30] !== h ? (G = (Z) => {
|
|
176
|
+
f == null || f(Z), h == null || h(Z.target.value), E(Z.target.value.length);
|
|
177
177
|
}, e[29] = f, e[30] = h, e[31] = G) : G = e[31];
|
|
178
178
|
const T = G;
|
|
179
179
|
let Y, H;
|
|
180
180
|
e[32] !== N ? (Y = () => {
|
|
181
181
|
N !== void 0 && E(typeof N == "string" ? N.length : String(N).length);
|
|
182
|
-
}, H = [N], e[32] = N, e[33] = Y, e[34] = H) : (Y = e[33], H = e[34]),
|
|
182
|
+
}, H = [N], e[32] = N, e[33] = Y, e[34] = H) : (Y = e[33], H = e[34]), Je(Y, H);
|
|
183
183
|
const P = v && typeof z == "number";
|
|
184
184
|
let M;
|
|
185
185
|
e[35] !== l ? (M = k("space-y-1", l), e[35] = l, e[36] = M) : M = e[36];
|
|
@@ -192,12 +192,12 @@ const Rt = (n) => {
|
|
|
192
192
|
e[41] !== u ? (q = u && /* @__PURE__ */ c("div", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none", children: u }), e[41] = u, e[42] = q) : q = e[42];
|
|
193
193
|
let Q;
|
|
194
194
|
e[43] !== w || e[44] !== P ? (Q = w && !P && /* @__PURE__ */ c("div", { className: "absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none", children: w }), e[43] = w, e[44] = P, e[45] = Q) : Q = e[45];
|
|
195
|
-
const
|
|
195
|
+
const J = u && "pl-10", K = w && "pr-10", re = P && "pr-16", te = r && "border-destructive", se = _ && "cursor-not-allowed bg-muted text-muted-foreground opacity-70";
|
|
196
196
|
let le;
|
|
197
|
-
e[46] !== a || e[47] !==
|
|
198
|
-
const
|
|
197
|
+
e[46] !== a || e[47] !== J || e[48] !== K || e[49] !== re || e[50] !== te || e[51] !== se ? (le = k(J, K, re, te, se, a), e[46] = a, e[47] = J, e[48] = K, e[49] = re, e[50] = te, e[51] = se, e[52] = le) : le = e[52];
|
|
198
|
+
const U = !!r || void 0, ue = g || void 0;
|
|
199
199
|
let ie;
|
|
200
|
-
e[53] !== $ || e[54] !== s || e[55] !== z || e[56] !== T || e[57] !== B || e[58] !== _ || e[59] !== b || e[60] !== x || e[61] !== le || e[62] !==
|
|
200
|
+
e[53] !== $ || e[54] !== s || e[55] !== z || e[56] !== T || e[57] !== B || e[58] !== _ || e[59] !== b || e[60] !== x || e[61] !== le || e[62] !== U || e[63] !== ue || e[64] !== D || e[65] !== N ? (ie = /* @__PURE__ */ c(Vt, { id: B, type: D, placeholder: b, disabled: s, readOnly: _, value: N, maxLength: z, onChange: T, className: le, "aria-invalid": U, "aria-required": ue, "aria-describedby": $, ...x }), e[53] = $, e[54] = s, e[55] = z, e[56] = T, e[57] = B, e[58] = _, e[59] = b, e[60] = x, e[61] = le, e[62] = U, e[63] = ue, e[64] = D, e[65] = N, e[66] = ie) : ie = e[66];
|
|
201
201
|
let ee;
|
|
202
202
|
e[67] !== C || e[68] !== z || e[69] !== P ? (ee = P && /* @__PURE__ */ S("span", { className: "absolute right-3 top-1/2 -translate-y-1/2 text-xs text-muted-foreground pointer-events-none", "aria-live": "polite", "aria-atomic": "true", children: [
|
|
203
203
|
C,
|
|
@@ -257,8 +257,8 @@ const Rt = (n) => {
|
|
|
257
257
|
r(M);
|
|
258
258
|
const A = Math.min(T + P.length, h - 1);
|
|
259
259
|
(q = w.current[A]) == null || q.focus(), M.every(Wr) && (o && o(M.join("")), g && queueMicrotask(() => {
|
|
260
|
-
var
|
|
261
|
-
const Q = (
|
|
260
|
+
var J;
|
|
261
|
+
const Q = (J = w.current[T]) == null ? void 0 : J.closest("form");
|
|
262
262
|
Q && Q.requestSubmit();
|
|
263
263
|
}));
|
|
264
264
|
}, B = (T, Y) => {
|
|
@@ -313,9 +313,9 @@ function ws(n) {
|
|
|
313
313
|
} = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s, e[4] = r, e[5] = o, e[6] = i, e[7] = a, e[8] = d, e[9] = u, e[10] = m, e[11] = f, e[12] = h, e[13] = b, e[14] = p) : (t = e[1], l = e[2], s = e[3], r = e[4], o = e[5], i = e[6], a = e[7], d = e[8], u = e[9], m = e[10], f = e[11], h = e[12], b = e[13], p = e[14]);
|
|
314
314
|
const g = f === void 0 ? "Enter password" : f, x = h === void 0 ? !1 : h, w = b === void 0 ? "current-password" : b, v = xt(), y = xt(), N = xt(), D = (m == null ? void 0 : m.id) ?? y;
|
|
315
315
|
let C;
|
|
316
|
-
e[15] !== o || e[16] !== i || e[17] !== d ? (C = (
|
|
317
|
-
const
|
|
318
|
-
o == null || o(
|
|
316
|
+
e[15] !== o || e[16] !== i || e[17] !== d ? (C = (J) => {
|
|
317
|
+
const K = J.target.value;
|
|
318
|
+
o == null || o(K), i == null || i(J), d == null || d(K);
|
|
319
319
|
}, e[15] = o, e[16] = i, e[17] = d, e[18] = C) : C = e[18];
|
|
320
320
|
const E = C;
|
|
321
321
|
let B;
|
|
@@ -1390,9 +1390,9 @@ const Xs = L.forwardRef((n, e) => {
|
|
|
1390
1390
|
const H = z ? "border-destructive" : "border-input", P = D === "none" && "resize-none", M = D === "vertical" && "resize-y", A = D === "horizontal" && "resize-x", q = D === "both" && "resize";
|
|
1391
1391
|
let Q;
|
|
1392
1392
|
t[30] !== P || t[31] !== M || t[32] !== A || t[33] !== q || t[34] !== H ? (Q = k("flex min-h-[80px] w-full rounded-md border bg-background px-3 py-2 text-base", "placeholder:text-muted-foreground", "focus-visible:outline-none", "disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", H, P, M, A, q), t[30] = P, t[31] = M, t[32] = A, t[33] = q, t[34] = H, t[35] = Q) : Q = t[35];
|
|
1393
|
-
const
|
|
1393
|
+
const J = z || void 0, K = b || void 0, re = i || _ ? j : void 0;
|
|
1394
1394
|
let te;
|
|
1395
|
-
t[36] !== R || t[37] !== F || t[38] !== G || t[39] !== y || t[40] !== h || t[41] !== e || t[42] !== b || t[43] !== N || t[44] !== Q || t[45] !==
|
|
1395
|
+
t[36] !== R || t[37] !== F || t[38] !== G || t[39] !== y || t[40] !== h || t[41] !== e || t[42] !== b || t[43] !== N || t[44] !== Q || t[45] !== J || t[46] !== K || t[47] !== re || t[48] !== v ? (te = /* @__PURE__ */ c("textarea", { ref: e, id: R, placeholder: y, rows: N, maxLength: F, value: v, onChange: G, required: b, className: Q, "aria-invalid": J, "aria-required": K, "aria-describedby": re, ...h }), t[36] = R, t[37] = F, t[38] = G, t[39] = y, t[40] = h, t[41] = e, t[42] = b, t[43] = N, t[44] = Q, t[45] = J, t[46] = K, t[47] = re, t[48] = v, t[49] = te) : te = t[49];
|
|
1396
1396
|
let se;
|
|
1397
1397
|
t[50] !== C || t[51] !== F || t[52] !== p ? (se = p && F && /* @__PURE__ */ S("div", { className: "absolute bottom-2 right-2 text-xs text-muted-foreground", children: [
|
|
1398
1398
|
C,
|
|
@@ -1404,14 +1404,14 @@ const Xs = L.forwardRef((n, e) => {
|
|
|
1404
1404
|
te,
|
|
1405
1405
|
se
|
|
1406
1406
|
] }), t[54] = te, t[55] = se, t[56] = le) : le = t[56];
|
|
1407
|
-
let
|
|
1408
|
-
t[57] !== _ || t[58] !== z || t[59] !== j || t[60] !== i ? (
|
|
1407
|
+
let U;
|
|
1408
|
+
t[57] !== _ || t[58] !== z || t[59] !== j || t[60] !== i ? (U = (i || _) && /* @__PURE__ */ c("p", { id: j, className: k("text-xs", z ? "text-destructive" : "text-muted-foreground"), children: _ || i }), t[57] = _, t[58] = z, t[59] = j, t[60] = i, t[61] = U) : U = t[61];
|
|
1409
1409
|
let ue;
|
|
1410
|
-
return t[62] !== le || t[63] !==
|
|
1410
|
+
return t[62] !== le || t[63] !== U || t[64] !== T || t[65] !== Y ? (ue = /* @__PURE__ */ S("div", { className: T, children: [
|
|
1411
1411
|
Y,
|
|
1412
1412
|
le,
|
|
1413
|
-
|
|
1414
|
-
] }), t[62] = le, t[63] =
|
|
1413
|
+
U
|
|
1414
|
+
] }), t[62] = le, t[63] = U, t[64] = T, t[65] = Y, t[66] = ue) : ue = t[66], ue;
|
|
1415
1415
|
});
|
|
1416
1416
|
Xs.displayName = "Textarea";
|
|
1417
1417
|
let hl = null;
|
|
@@ -1427,7 +1427,7 @@ function ks(n) {
|
|
|
1427
1427
|
hl === n && (hl = null);
|
|
1428
1428
|
}
|
|
1429
1429
|
function er() {
|
|
1430
|
-
const n = I(9), [e, t] =
|
|
1430
|
+
const n = I(9), [e, t] = Ne(0);
|
|
1431
1431
|
let l;
|
|
1432
1432
|
n[0] === Symbol.for("react.memo_cache_sentinel") ? (l = () => {
|
|
1433
1433
|
t(vo);
|
|
@@ -1436,7 +1436,7 @@ function er() {
|
|
|
1436
1436
|
let r, o;
|
|
1437
1437
|
n[1] === Symbol.for("react.memo_cache_sentinel") ? (r = () => () => {
|
|
1438
1438
|
ks(s);
|
|
1439
|
-
}, o = [s], n[1] = r, n[2] = o) : (r = n[1], o = n[2]),
|
|
1439
|
+
}, o = [s], n[1] = r, n[2] = o) : (r = n[1], o = n[2]), Je(r, o);
|
|
1440
1440
|
let i;
|
|
1441
1441
|
n[3] === Symbol.for("react.memo_cache_sentinel") ? (i = () => {
|
|
1442
1442
|
Wl(s);
|
|
@@ -1627,7 +1627,7 @@ const qa = ({
|
|
|
1627
1627
|
onPointerDown: Y,
|
|
1628
1628
|
...H
|
|
1629
1629
|
}) => {
|
|
1630
|
-
const [P, M] =
|
|
1630
|
+
const [P, M] = Ne(!1), [A, q] = Ne(""), [Q, J] = Ne(""), [K, re] = Ne(-1), [te, se] = Ne(!1), [le, U] = Ne({
|
|
1631
1631
|
top: 0,
|
|
1632
1632
|
left: 0,
|
|
1633
1633
|
width: 0
|
|
@@ -1635,23 +1635,23 @@ const qa = ({
|
|
|
1635
1635
|
containerProps: ue,
|
|
1636
1636
|
onOpenChange: ie
|
|
1637
1637
|
} = er();
|
|
1638
|
-
|
|
1638
|
+
Je(() => {
|
|
1639
1639
|
if (V <= 0) {
|
|
1640
|
-
|
|
1640
|
+
J(A);
|
|
1641
1641
|
return;
|
|
1642
1642
|
}
|
|
1643
|
-
const
|
|
1644
|
-
return () => clearTimeout(
|
|
1643
|
+
const W = setTimeout(() => J(A), V);
|
|
1644
|
+
return () => clearTimeout(W);
|
|
1645
1645
|
}, [A, V]);
|
|
1646
|
-
const ee = Nr(Q), oe = ht(null), me = ht(null), fe = ht(null),
|
|
1646
|
+
const ee = Nr(Q), oe = ht(null), me = ht(null), fe = ht(null), Z = ht(!1), he = xt(), Be = e.length > 0 ? e : n, ae = Yt(() => C || ((W, X) => ko(W, X, D, R)), [C, D, R]), ke = Yt(() => {
|
|
1647
1647
|
if (ee.length < O)
|
|
1648
|
-
return
|
|
1649
|
-
let
|
|
1650
|
-
return i && Array.isArray(t) && (
|
|
1648
|
+
return Be;
|
|
1649
|
+
let W = Be;
|
|
1650
|
+
return i && Array.isArray(t) && (W = Be.filter((X) => !t.some((pe) => ae(X, pe)))), !i && !te && t && ee === N(t) ? W : y ? y(W, {
|
|
1651
1651
|
inputValue: ee
|
|
1652
|
-
}) : Do(
|
|
1652
|
+
}) : Do(W, ee, N, R);
|
|
1653
1653
|
}, [
|
|
1654
|
-
|
|
1654
|
+
Be,
|
|
1655
1655
|
t,
|
|
1656
1656
|
ee,
|
|
1657
1657
|
// Use deferred value
|
|
@@ -1662,16 +1662,16 @@ const qa = ({
|
|
|
1662
1662
|
R,
|
|
1663
1663
|
te,
|
|
1664
1664
|
O
|
|
1665
|
-
]),
|
|
1666
|
-
const
|
|
1667
|
-
se(!0), q(
|
|
1665
|
+
]), He = Me((W) => {
|
|
1666
|
+
const X = W.target.value;
|
|
1667
|
+
se(!0), q(X), r == null || r(W, X), !P && X && M(!0);
|
|
1668
1668
|
}, [P, r]);
|
|
1669
|
-
|
|
1669
|
+
Je(() => {
|
|
1670
1670
|
if (i || te) return;
|
|
1671
|
-
const
|
|
1671
|
+
const X = ((pe) => {
|
|
1672
1672
|
if (pe == null) return "";
|
|
1673
1673
|
if (typeof pe == "object") return N(pe);
|
|
1674
|
-
const we =
|
|
1674
|
+
const we = Be.find((De) => ae(De, pe));
|
|
1675
1675
|
if (we) return N(we);
|
|
1676
1676
|
try {
|
|
1677
1677
|
return String(pe);
|
|
@@ -1679,34 +1679,34 @@ const qa = ({
|
|
|
1679
1679
|
return "";
|
|
1680
1680
|
}
|
|
1681
1681
|
})(t);
|
|
1682
|
-
q(
|
|
1683
|
-
}, [t, i, te,
|
|
1682
|
+
q(X);
|
|
1683
|
+
}, [t, i, te, Be, N, ae]), Je(() => {
|
|
1684
1684
|
s && process.env.NODE_ENV !== "production" && console.warn('[DoctAutocomplete] The "change" prop is deprecated. Please use "onChange" instead. "change" will be removed in v3.0.');
|
|
1685
1685
|
}, [s]);
|
|
1686
|
-
const
|
|
1686
|
+
const Xe = Me((W) => {
|
|
1687
1687
|
if (i) {
|
|
1688
|
-
const
|
|
1688
|
+
const X = Array.isArray(t) ? t : [], pe = X.some((De) => ae(W, De));
|
|
1689
1689
|
let we;
|
|
1690
|
-
pe ? we =
|
|
1690
|
+
pe ? we = X.filter((De) => !ae(W, De)) : we = [...X, W], l == null || l(null, we), s == null || s({
|
|
1691
1691
|
itemData: we
|
|
1692
1692
|
}), T && q(""), se(!1), v || M(!1), setTimeout(() => {
|
|
1693
|
-
var
|
|
1694
|
-
(
|
|
1693
|
+
var De;
|
|
1694
|
+
(De = oe.current) == null || De.focus();
|
|
1695
1695
|
}, 0);
|
|
1696
1696
|
} else
|
|
1697
|
-
l == null || l(null,
|
|
1698
|
-
itemData:
|
|
1699
|
-
}), q(N(
|
|
1697
|
+
l == null || l(null, W), s == null || s({
|
|
1698
|
+
itemData: W
|
|
1699
|
+
}), q(N(W)), se(!1), v || M(!1);
|
|
1700
1700
|
re(-1);
|
|
1701
|
-
}, [i, t, ae, l, s, v, N, T]),
|
|
1701
|
+
}, [i, t, ae, l, s, v, N, T]), Ee = Me((W) => {
|
|
1702
1702
|
if (i && Array.isArray(t)) {
|
|
1703
|
-
const
|
|
1704
|
-
l == null || l(null,
|
|
1705
|
-
itemData:
|
|
1703
|
+
const X = t.filter((pe) => !ae(W, pe));
|
|
1704
|
+
l == null || l(null, X), s == null || s({
|
|
1705
|
+
itemData: X
|
|
1706
1706
|
});
|
|
1707
1707
|
}
|
|
1708
|
-
}, [i, t, ae, l, s]),
|
|
1709
|
-
|
|
1708
|
+
}, [i, t, ae, l, s]), Re = Me((W) => {
|
|
1709
|
+
W.stopPropagation(), i ? (q(""), se(!1), r == null || r({
|
|
1710
1710
|
target: {
|
|
1711
1711
|
value: ""
|
|
1712
1712
|
}
|
|
@@ -1721,21 +1721,21 @@ const qa = ({
|
|
|
1721
1721
|
}, ""), setTimeout(() => {
|
|
1722
1722
|
oe.current && (oe.current.value = "", oe.current.focus());
|
|
1723
1723
|
}, 0), M(!1));
|
|
1724
|
-
}, [l, s, i, r]),
|
|
1725
|
-
if (!P && (
|
|
1724
|
+
}, [l, s, i, r]), Ge = Yt(() => i ? Array.isArray(t) && t.length > 0 : t != null, [i, t]), et = Yt(() => !w || d ? !1 : i ? A !== "" : Ge, [w, d, i, A, Ge]), We = Me((W) => {
|
|
1725
|
+
if (!P && (W.key === "ArrowDown" || W.key === "ArrowUp")) {
|
|
1726
1726
|
M(!0);
|
|
1727
1727
|
return;
|
|
1728
1728
|
}
|
|
1729
1729
|
if (P)
|
|
1730
|
-
switch (
|
|
1730
|
+
switch (W.key) {
|
|
1731
1731
|
case "ArrowDown":
|
|
1732
|
-
|
|
1732
|
+
W.preventDefault(), re((X) => X < ke.length - 1 ? X + 1 : 0);
|
|
1733
1733
|
break;
|
|
1734
1734
|
case "ArrowUp":
|
|
1735
|
-
|
|
1735
|
+
W.preventDefault(), re((X) => X > 0 ? X - 1 : ke.length - 1);
|
|
1736
1736
|
break;
|
|
1737
1737
|
case "Enter":
|
|
1738
|
-
|
|
1738
|
+
W.preventDefault(), K >= 0 && ke[K] ? Xe(ke[K]) : a && A && Xe(A);
|
|
1739
1739
|
break;
|
|
1740
1740
|
case "Escape":
|
|
1741
1741
|
M(!1), re(-1);
|
|
@@ -1744,24 +1744,24 @@ const qa = ({
|
|
|
1744
1744
|
M(!1);
|
|
1745
1745
|
break;
|
|
1746
1746
|
}
|
|
1747
|
-
}, [P,
|
|
1747
|
+
}, [P, ke, K, Xe, a, A]), Se = Me(() => {
|
|
1748
1748
|
if (fe.current) {
|
|
1749
|
-
const
|
|
1750
|
-
|
|
1749
|
+
const W = fe.current.getBoundingClientRect(), X = fe.current.querySelector(".relative.overflow-visible"), pe = X ? X.getBoundingClientRect() : W;
|
|
1750
|
+
U({
|
|
1751
1751
|
top: pe.bottom + window.scrollY,
|
|
1752
1752
|
left: pe.left + window.scrollX,
|
|
1753
1753
|
width: pe.width
|
|
1754
1754
|
});
|
|
1755
1755
|
}
|
|
1756
|
-
}, []),
|
|
1756
|
+
}, []), je = Me(() => {
|
|
1757
1757
|
P || (Se(), A === "" && (r == null || r({
|
|
1758
1758
|
target: {
|
|
1759
1759
|
value: ""
|
|
1760
1760
|
}
|
|
1761
1761
|
}, ""))), M(!P);
|
|
1762
|
-
}, [P, Se, A, r]),
|
|
1763
|
-
if (
|
|
1764
|
-
|
|
1762
|
+
}, [P, Se, A, r]), Ke = Me(() => {
|
|
1763
|
+
if (Z.current) {
|
|
1764
|
+
Z.current = !1, Se(), se(!1), !i && !t && (q(""), r == null || r({
|
|
1765
1765
|
target: {
|
|
1766
1766
|
value: ""
|
|
1767
1767
|
}
|
|
@@ -1773,66 +1773,73 @@ const qa = ({
|
|
|
1773
1773
|
value: ""
|
|
1774
1774
|
}
|
|
1775
1775
|
}, ""));
|
|
1776
|
-
}, [Se, i, t, r]),
|
|
1777
|
-
document.activeElement === oe.current && M((
|
|
1776
|
+
}, [Se, i, t, r]), Oe = Me((W) => {
|
|
1777
|
+
document.activeElement === oe.current && M((X) => !X), Y == null || Y(W);
|
|
1778
1778
|
}, [Y]);
|
|
1779
|
-
|
|
1780
|
-
const
|
|
1781
|
-
const we = pe.target,
|
|
1782
|
-
|
|
1783
|
-
},
|
|
1779
|
+
Je(() => {
|
|
1780
|
+
const W = (pe) => {
|
|
1781
|
+
const we = pe.target, De = fe.current && !fe.current.contains(we), Ve = me.current && !me.current.contains(we);
|
|
1782
|
+
De && Ve && M(!1);
|
|
1783
|
+
}, X = () => {
|
|
1784
1784
|
P && Se();
|
|
1785
1785
|
};
|
|
1786
|
-
return document.addEventListener("mousedown",
|
|
1787
|
-
document.removeEventListener("mousedown",
|
|
1786
|
+
return document.addEventListener("mousedown", W), window.addEventListener("resize", X), window.addEventListener("scroll", X), () => {
|
|
1787
|
+
document.removeEventListener("mousedown", W), window.removeEventListener("resize", X), window.removeEventListener("scroll", X);
|
|
1788
1788
|
};
|
|
1789
|
-
}, [P, Se]),
|
|
1790
|
-
if (P &&
|
|
1791
|
-
const
|
|
1792
|
-
|
|
1789
|
+
}, [P, Se]), Je(() => {
|
|
1790
|
+
if (P && K >= 0 && me.current) {
|
|
1791
|
+
const W = me.current.children[K];
|
|
1792
|
+
W && W.scrollIntoView({
|
|
1793
1793
|
block: "nearest"
|
|
1794
1794
|
});
|
|
1795
1795
|
}
|
|
1796
|
-
}, [
|
|
1796
|
+
}, [K, P]), Je(() => {
|
|
1797
1797
|
if (!P || !i) return;
|
|
1798
|
-
const
|
|
1798
|
+
const W = requestAnimationFrame(() => {
|
|
1799
1799
|
Se();
|
|
1800
1800
|
});
|
|
1801
|
-
return () => cancelAnimationFrame(
|
|
1802
|
-
}, [P, i, t, Se]),
|
|
1801
|
+
return () => cancelAnimationFrame(W);
|
|
1802
|
+
}, [P, i, t, Se]), Je(() => {
|
|
1803
1803
|
M(!1);
|
|
1804
|
-
}, []),
|
|
1804
|
+
}, []), Je(() => {
|
|
1805
1805
|
ie(P);
|
|
1806
1806
|
}, [P, ie]);
|
|
1807
|
-
const ve =
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
}
|
|
1807
|
+
const ve = Me(() => {
|
|
1808
|
+
var W;
|
|
1809
|
+
document.activeElement !== oe.current && (Z.current = !0), M(!1), (W = oe.current) == null || W.focus();
|
|
1810
|
+
}, []), Fe = Yt(() => !i || !Array.isArray(t) || t.length === 0 ? null : B ? B(t, Ee) : (
|
|
1811
|
+
// biome-ignore lint/a11y/noStaticElementInteractions: chips container wraps nested buttons (tag remove)
|
|
1812
|
+
// biome-ignore lint/a11y/useKeyWithClickEvents: Escape/click-outside already close; click is convenience
|
|
1813
|
+
/* @__PURE__ */ c("div", { className: "flex flex-wrap gap-1 mb-1 min-h-0", onClick: ve, children: t.map((W, X) => {
|
|
1814
|
+
const pe = D ? String(D(W)) : `${N(W)}-${X}`;
|
|
1815
|
+
return /* @__PURE__ */ c(sr, { tag: W, index: X, getOptionLabel: N, onRemove: Ee, chipClassName: $ }, pe);
|
|
1816
|
+
}) })
|
|
1817
|
+
), [i, t, B, Ee, ve, N, D, $]), rt = Yt(() => `
|
|
1811
1818
|
relative flex items-center rounded-md
|
|
1812
1819
|
${p ? "border border-destructive" : wo[f]}
|
|
1813
1820
|
${xo[m]}
|
|
1814
1821
|
${d ? "opacity-50 cursor-not-allowed" : "cursor-text"}
|
|
1815
1822
|
transition-colors ${j}
|
|
1816
|
-
`, [f, m, p, d, j]),
|
|
1823
|
+
`, [f, m, p, d, j]), Pe = z ?? _;
|
|
1817
1824
|
return /* @__PURE__ */ S("div", { className: `relative ${x ? "w-full" : "w-auto"} ${F}`, ref: fe, children: [
|
|
1818
|
-
h && /* @__PURE__ */ S("label", { htmlFor: he, className: "block text-sm font-medium mb-1
|
|
1819
|
-
var
|
|
1820
|
-
|
|
1821
|
-
}, onKeyDown: (
|
|
1822
|
-
var
|
|
1823
|
-
(
|
|
1825
|
+
h && /* @__PURE__ */ S("label", { htmlFor: he, className: "block text-sm font-medium mb-1 w-full", onClick: (W) => {
|
|
1826
|
+
var X;
|
|
1827
|
+
W.preventDefault(), document.activeElement !== oe.current && (Z.current = !0), M(!1), (X = oe.current) == null || X.focus();
|
|
1828
|
+
}, onKeyDown: (W) => {
|
|
1829
|
+
var X;
|
|
1830
|
+
(W.key === "Enter" || W.key === " ") && (W.preventDefault(), document.activeElement !== oe.current && (Z.current = !0), M(!1), (X = oe.current) == null || X.focus());
|
|
1824
1831
|
}, children: [
|
|
1825
1832
|
h,
|
|
1826
1833
|
g && /* @__PURE__ */ c("span", { className: "text-destructive ml-1", children: "*" })
|
|
1827
1834
|
] }),
|
|
1828
1835
|
/* @__PURE__ */ c("div", { ...ue, children: /* @__PURE__ */ S("div", { className: "relative overflow-visible", children: [
|
|
1829
|
-
|
|
1830
|
-
/* @__PURE__ */ S("div", { className:
|
|
1831
|
-
/* @__PURE__ */ c(Vt, { id: he, ref: oe, value: A, onChange:
|
|
1836
|
+
Fe,
|
|
1837
|
+
/* @__PURE__ */ S("div", { className: rt, children: [
|
|
1838
|
+
/* @__PURE__ */ c(Vt, { id: he, ref: oe, value: A, onChange: He, onKeyDown: We, onFocus: Ke, onPointerDown: Oe, placeholder: o, disabled: d, className: "px-0 border-0 shadow-none focus-visible:ring-0 focus-visible:ring-offset-0 bg-transparent rounded-md", ...H }),
|
|
1832
1839
|
/* @__PURE__ */ S("div", { className: "flex items-center gap-1 ml-auto", children: [
|
|
1833
1840
|
u && /* @__PURE__ */ c("div", { className: "animate-spin rounded-full h-4 w-4 border-2 border-muted-foreground border-t-transparent" }),
|
|
1834
|
-
|
|
1835
|
-
/* @__PURE__ */ c("button", { type: "button", disabled: d, onClick:
|
|
1841
|
+
et && /* @__PURE__ */ c("button", { type: "button", onClick: Re, className: "p-1 hover:bg-accent rounded-sm transition-colors", tabIndex: -1, "data-testid": "autocomplete-clear", children: /* @__PURE__ */ c(Ct, { className: "h-4 w-4 text-muted-foreground" }) }),
|
|
1842
|
+
/* @__PURE__ */ c("button", { type: "button", disabled: d, onClick: je, className: `p-1 hover:bg-accent rounded-sm transition-colors ${d ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}`, tabIndex: -1, "data-testid": "autocomplete-toggle", children: /* @__PURE__ */ c(bt, { className: `h-4 w-4 text-muted-foreground transition-transform ${P ? "rotate-180" : ""}` }) })
|
|
1836
1843
|
] })
|
|
1837
1844
|
] }),
|
|
1838
1845
|
P && Bs(/* @__PURE__ */ c("div", { className: `
|
|
@@ -1843,21 +1850,21 @@ const qa = ({
|
|
|
1843
1850
|
top: le.top + 4,
|
|
1844
1851
|
left: le.left,
|
|
1845
1852
|
width: le.width
|
|
1846
|
-
}, ref: me, children:
|
|
1847
|
-
const pe = i ? Array.isArray(t) && t.some((
|
|
1848
|
-
const
|
|
1849
|
-
if (!
|
|
1853
|
+
}, ref: me, children: ke.length === 0 && !a ? /* @__PURE__ */ c("div", { className: "p-3 text-sm text-muted-foreground text-center", children: Pe }) : ke.map((W, X) => {
|
|
1854
|
+
const pe = i ? Array.isArray(t) && t.some((ze) => ae(W, ze)) : ae(W, t), we = X === K, De = D ? String(D(W)) : `${N(W)}-${X}`, Ve = (ze) => ze.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), tt = (ze) => {
|
|
1855
|
+
const ge = N(ze), Le = G ? String(ee || "").trim() : "";
|
|
1856
|
+
if (!Le) return /* @__PURE__ */ c("span", { children: ge });
|
|
1850
1857
|
try {
|
|
1851
|
-
const
|
|
1852
|
-
return /* @__PURE__ */ c("span", { children:
|
|
1853
|
-
const
|
|
1854
|
-
return
|
|
1858
|
+
const qe = new RegExp(`(${Ve(Le)})`, "ig"), Ye = ge.split(qe);
|
|
1859
|
+
return /* @__PURE__ */ c("span", { children: Ye.map((Te, Ue) => {
|
|
1860
|
+
const Ie = Te.toLowerCase() === Le.toLowerCase(), Qe = `${Te}-${Ue}`;
|
|
1861
|
+
return Ie ? /* @__PURE__ */ c("span", { className: "font-bold", children: Te }, Qe) : /* @__PURE__ */ c("span", { children: Te }, Qe);
|
|
1855
1862
|
}) });
|
|
1856
1863
|
} catch {
|
|
1857
|
-
return /* @__PURE__ */ c("span", { children:
|
|
1864
|
+
return /* @__PURE__ */ c("span", { children: ge });
|
|
1858
1865
|
}
|
|
1859
1866
|
};
|
|
1860
|
-
return /* @__PURE__ */ c(lr, { option:
|
|
1867
|
+
return /* @__PURE__ */ c(lr, { option: W, index: X, isSelected: pe, isHighlighted: we, onSelect: Xe, getOptionLabel: N, renderOption: E || ((ze) => tt(ze)) }, De);
|
|
1861
1868
|
}) }), document.body)
|
|
1862
1869
|
] }) }),
|
|
1863
1870
|
(b || p) && /* @__PURE__ */ c("p", { className: `mt-1 text-xs ${p ? "text-destructive" : "text-muted-foreground"}`, children: p || b })
|
|
@@ -2013,8 +2020,8 @@ const $o = (n) => {
|
|
|
2013
2020
|
outlined: "border border-brandBlue text-brandBlue",
|
|
2014
2021
|
soft: "bg-brandBlue/10 text-brandBlue"
|
|
2015
2022
|
}
|
|
2016
|
-
}, fe = C ? "opacity-50 cursor-not-allowed" : "",
|
|
2017
|
-
B = k("inline-flex items-center gap-1 font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2", ee[y], oe[N], me[v][w], fe,
|
|
2023
|
+
}, fe = C ? "opacity-50 cursor-not-allowed" : "", Z = a && !C ? "cursor-pointer" : "";
|
|
2024
|
+
B = k("inline-flex items-center gap-1 font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2", ee[y], oe[N], me[v][w], fe, Z, a && !C && "focus:ring-2 focus:ring-offset-2", E), e[17] = E, e[18] = v, e[19] = C, e[20] = a, e[21] = N, e[22] = y, e[23] = w, e[24] = B;
|
|
2018
2025
|
} else
|
|
2019
2026
|
B = e[24];
|
|
2020
2027
|
const R = B;
|
|
@@ -2042,7 +2049,7 @@ const $o = (n) => {
|
|
|
2042
2049
|
e[38] !== C || e[39] !== V || e[40] !== d ? (T = (ee) => {
|
|
2043
2050
|
!C && d && (ee.key === "Delete" || ee.key === "Backspace") && (ee.preventDefault(), V(ee));
|
|
2044
2051
|
}, e[38] = C, e[39] = V, e[40] = d, e[41] = T) : T = e[41];
|
|
2045
|
-
const Y = T, H = y === "small" ? 12 : y === "large" ? 18 : 14, P = ht(null), [M, A] =
|
|
2052
|
+
const Y = T, H = y === "small" ? 12 : y === "large" ? 18 : 14, P = ht(null), [M, A] = Ne(!1);
|
|
2046
2053
|
let q, Q;
|
|
2047
2054
|
e[42] === Symbol.for("react.memo_cache_sentinel") ? (q = () => {
|
|
2048
2055
|
const ee = P.current;
|
|
@@ -2054,10 +2061,10 @@ const $o = (n) => {
|
|
|
2054
2061
|
return oe(), window.addEventListener("resize", oe), () => {
|
|
2055
2062
|
window.removeEventListener("resize", oe);
|
|
2056
2063
|
};
|
|
2057
|
-
}, Q = [], e[42] = q, e[43] = Q) : (q = e[42], Q = e[43]),
|
|
2058
|
-
let
|
|
2059
|
-
e[44] !== i ? (
|
|
2060
|
-
const
|
|
2064
|
+
}, Q = [], e[42] = q, e[43] = Q) : (q = e[42], Q = e[43]), Je(q, Q);
|
|
2065
|
+
let J;
|
|
2066
|
+
e[44] !== i ? (J = /* @__PURE__ */ c("span", { ref: P, className: "max-w-72 truncate", children: i }), e[44] = i, e[45] = J) : J = e[45];
|
|
2067
|
+
const K = J, re = !!a;
|
|
2061
2068
|
let te;
|
|
2062
2069
|
e[46] !== t || e[47] !== C || e[48] !== z || e[49] !== j || e[50] !== re || e[51] !== i ? (te = re ? {
|
|
2063
2070
|
onClick: z,
|
|
@@ -2073,20 +2080,20 @@ const $o = (n) => {
|
|
|
2073
2080
|
e[57] !== l || e[58] !== o || e[59] !== H ? (le = o && !l && /* @__PURE__ */ c("div", { className: "flex items-center", "aria-hidden": "true", children: _l.isValidElement(o) ? _l.cloneElement(o, {
|
|
2074
2081
|
size: H
|
|
2075
2082
|
}) : o }), e[57] = l, e[58] = o, e[59] = H, e[60] = le) : le = e[60];
|
|
2076
|
-
let
|
|
2077
|
-
e[61] !== M || e[62] !== i || e[63] !==
|
|
2078
|
-
/* @__PURE__ */ c(fs, { asChild: !0, children:
|
|
2083
|
+
let U;
|
|
2084
|
+
e[61] !== M || e[62] !== i || e[63] !== K ? (U = M ? /* @__PURE__ */ c(us, { delayDuration: 0, children: /* @__PURE__ */ S(rr, { children: [
|
|
2085
|
+
/* @__PURE__ */ c(fs, { asChild: !0, children: K }),
|
|
2079
2086
|
/* @__PURE__ */ c(ms, { children: i })
|
|
2080
|
-
] }) }) :
|
|
2087
|
+
] }) }) : K, e[61] = M, e[62] = i, e[63] = K, e[64] = U) : U = e[64];
|
|
2081
2088
|
let ue;
|
|
2082
2089
|
e[65] !== s || e[66] !== D || e[67] !== r || e[68] !== C || e[69] !== Y || e[70] !== G || e[71] !== H || e[72] !== i ? (ue = D && /* @__PURE__ */ c("button", { type: "button", onMouseDown: G, onKeyDown: Y, className: k("ml-1 rounded-full p-0.5 transition-colors focus:outline-none focus:ring-1 focus:ring-offset-1", s, C ? "cursor-not-allowed" : ""), disabled: C, "aria-label": r || `Remove ${i}`, tabIndex: C ? -1 : 0, children: /* @__PURE__ */ c(Ct, { size: H }) }), e[65] = s, e[66] = D, e[67] = r, e[68] = C, e[69] = Y, e[70] = G, e[71] = H, e[72] = i, e[73] = ue) : ue = e[73];
|
|
2083
2090
|
let ie;
|
|
2084
|
-
return e[74] !== R || e[75] !== u || e[76] !== te || e[77] !== se || e[78] !== le || e[79] !==
|
|
2091
|
+
return e[74] !== R || e[75] !== u || e[76] !== te || e[77] !== se || e[78] !== le || e[79] !== U || e[80] !== ue ? (ie = /* @__PURE__ */ S("div", { ...u, className: R, ...te, children: [
|
|
2085
2092
|
se,
|
|
2086
2093
|
le,
|
|
2087
|
-
|
|
2094
|
+
U,
|
|
2088
2095
|
ue
|
|
2089
|
-
] }), e[74] = R, e[75] = u, e[76] = te, e[77] = se, e[78] = le, e[79] =
|
|
2096
|
+
] }), e[74] = R, e[75] = u, e[76] = te, e[77] = se, e[78] = le, e[79] = U, e[80] = ue, e[81] = ie) : ie = e[81], ie;
|
|
2090
2097
|
}, Io = {
|
|
2091
2098
|
small: "h-8 text-sm",
|
|
2092
2099
|
medium: "h-10",
|
|
@@ -2202,11 +2209,11 @@ function To({
|
|
|
2202
2209
|
isOptionEqualToValue: u,
|
|
2203
2210
|
filterOptions: m
|
|
2204
2211
|
}) {
|
|
2205
|
-
const [f, h] =
|
|
2212
|
+
const [f, h] = Ne(!1), [b, p] = Ne(""), [g, x] = Ne(-1), [, w] = Ne(!1), [v, y] = Ne({
|
|
2206
2213
|
top: 0,
|
|
2207
2214
|
left: 0,
|
|
2208
2215
|
width: 0
|
|
2209
|
-
}), N = ht(null), D = ht(null), C = ht(null), E = ht(null), B = ht(!1), R = Yt(() => u || ((A, q) => Oo(A, q, d, i)), [u, d, i]), _ =
|
|
2216
|
+
}), N = ht(null), D = ht(null), C = ht(null), E = ht(null), B = ht(!1), R = Yt(() => u || ((A, q) => Oo(A, q, d, i)), [u, d, i]), _ = Me((A) => {
|
|
2210
2217
|
try {
|
|
2211
2218
|
return a(A);
|
|
2212
2219
|
} catch {
|
|
@@ -2220,13 +2227,13 @@ function To({
|
|
|
2220
2227
|
});
|
|
2221
2228
|
const q = Fo(A, b, a, i);
|
|
2222
2229
|
if (o && b && b.trim() !== "")
|
|
2223
|
-
if (n.length === 0 || n.every((
|
|
2224
|
-
if (!q.some((
|
|
2230
|
+
if (n.length === 0 || n.every((J) => typeof J == "string")) {
|
|
2231
|
+
if (!q.some((K) => _(K).toLowerCase() === b.toLowerCase()))
|
|
2225
2232
|
return [...q, b];
|
|
2226
2233
|
} else
|
|
2227
2234
|
process.env.NODE_ENV !== "production" && console.warn("[useAutocompleteCheckbox] freeSolo is only supported for string types. For object types, consider using a different approach or constraining your generic to string.");
|
|
2228
2235
|
return q;
|
|
2229
|
-
}, [n, b, m, a, i, o, _]), j =
|
|
2236
|
+
}, [n, b, m, a, i, o, _]), j = Me((A) => z.some((q) => R(A, q)), [z, R]), $ = Me(() => {
|
|
2230
2237
|
const A = E.current || C.current;
|
|
2231
2238
|
if (A) {
|
|
2232
2239
|
const q = A.getBoundingClientRect();
|
|
@@ -2236,22 +2243,22 @@ function To({
|
|
|
2236
2243
|
width: q.width
|
|
2237
2244
|
});
|
|
2238
2245
|
}
|
|
2239
|
-
}, []), V =
|
|
2246
|
+
}, []), V = Me((A) => {
|
|
2240
2247
|
const q = A.target.value;
|
|
2241
2248
|
w(!0), p(q), l == null || l(A, q), !f && q && h(!0);
|
|
2242
|
-
}, [f, l]), O =
|
|
2249
|
+
}, [f, l]), O = Me((A) => {
|
|
2243
2250
|
if (s) return;
|
|
2244
|
-
const q = z, Q = q.some((
|
|
2245
|
-
let
|
|
2246
|
-
Q ?
|
|
2247
|
-
var
|
|
2248
|
-
(
|
|
2251
|
+
const q = z, Q = q.some((K) => R(A, K));
|
|
2252
|
+
let J;
|
|
2253
|
+
Q ? J = q.filter((K) => !R(A, K)) : J = [...q, A], t == null || t(null, J), w(!1), r || h(!1), setTimeout(() => {
|
|
2254
|
+
var K;
|
|
2255
|
+
(K = N.current) == null || K.focus();
|
|
2249
2256
|
}, 0), x(-1);
|
|
2250
|
-
}, [s, z, R, t, r]), G =
|
|
2257
|
+
}, [s, z, R, t, r]), G = Me((A) => {
|
|
2251
2258
|
if (s) return;
|
|
2252
2259
|
const q = z.filter((Q) => !R(A, Q));
|
|
2253
2260
|
t == null || t(null, q);
|
|
2254
|
-
}, [s, z, R, t]), T =
|
|
2261
|
+
}, [s, z, R, t]), T = Me((A) => {
|
|
2255
2262
|
A.stopPropagation(), p(""), w(!1), l == null || l({
|
|
2256
2263
|
target: {
|
|
2257
2264
|
value: ""
|
|
@@ -2259,9 +2266,9 @@ function To({
|
|
|
2259
2266
|
}, ""), setTimeout(() => {
|
|
2260
2267
|
N.current && (N.current.value = "", N.current.focus());
|
|
2261
2268
|
}, 0), h(!1);
|
|
2262
|
-
}, [l]), Y =
|
|
2269
|
+
}, [l]), Y = Me(() => {
|
|
2263
2270
|
s || (t == null || t(null, []), p(""));
|
|
2264
|
-
}, [s, t]), H =
|
|
2271
|
+
}, [s, t]), H = Me((A) => {
|
|
2265
2272
|
if (!f && (A.key === "ArrowDown" || A.key === "ArrowUp")) {
|
|
2266
2273
|
h(!0);
|
|
2267
2274
|
return;
|
|
@@ -2284,22 +2291,22 @@ function To({
|
|
|
2284
2291
|
h(!1);
|
|
2285
2292
|
break;
|
|
2286
2293
|
}
|
|
2287
|
-
}, [f, F, g, O, o, b, n]), P =
|
|
2294
|
+
}, [f, F, g, O, o, b, n]), P = Me(() => {
|
|
2288
2295
|
f || b === "" && (l == null || l({
|
|
2289
2296
|
target: {
|
|
2290
2297
|
value: ""
|
|
2291
2298
|
}
|
|
2292
2299
|
}, "")), h(!f);
|
|
2293
|
-
}, [f, b, l]), M =
|
|
2300
|
+
}, [f, b, l]), M = Me(() => {
|
|
2294
2301
|
$(), h(!0), w(!1);
|
|
2295
2302
|
}, [$]);
|
|
2296
|
-
return
|
|
2303
|
+
return Je(() => {
|
|
2297
2304
|
B.current && !f && (p(""), w(!1), l == null || l({
|
|
2298
2305
|
target: {
|
|
2299
2306
|
value: ""
|
|
2300
2307
|
}
|
|
2301
2308
|
}, "")), B.current = f;
|
|
2302
|
-
}, [f, l]),
|
|
2309
|
+
}, [f, l]), Je(() => {
|
|
2303
2310
|
if (!f) return;
|
|
2304
2311
|
const A = (q) => {
|
|
2305
2312
|
const Q = q.target;
|
|
@@ -2308,11 +2315,11 @@ function To({
|
|
|
2308
2315
|
return typeof window < "u" && document.addEventListener("mousedown", A), () => {
|
|
2309
2316
|
typeof window < "u" && document.removeEventListener("mousedown", A);
|
|
2310
2317
|
};
|
|
2311
|
-
}, [f]),
|
|
2318
|
+
}, [f]), Je(() => {
|
|
2312
2319
|
f && ($(), requestAnimationFrame(() => {
|
|
2313
2320
|
$();
|
|
2314
2321
|
}));
|
|
2315
|
-
}, [f, $]),
|
|
2322
|
+
}, [f, $]), Je(() => {
|
|
2316
2323
|
if (!f) return;
|
|
2317
2324
|
const A = () => {
|
|
2318
2325
|
$();
|
|
@@ -2379,7 +2386,7 @@ const Mo = {
|
|
|
2379
2386
|
} = n, g = d === void 0 ? !1 : d;
|
|
2380
2387
|
let x;
|
|
2381
2388
|
e[0] !== u ? (x = u === void 0 ? [] : u, e[0] = u, e[1] = x) : x = e[1];
|
|
2382
|
-
const w = x, v = ht(null), [y, N] =
|
|
2389
|
+
const w = x, v = ht(null), [y, N] = Ne(!1);
|
|
2383
2390
|
let D;
|
|
2384
2391
|
e[2] !== o || e[3] !== t ? (D = () => {
|
|
2385
2392
|
o(t);
|
|
@@ -2400,20 +2407,20 @@ const Mo = {
|
|
|
2400
2407
|
e[17] === Symbol.for("react.memo_cache_sentinel") ? (j = () => {
|
|
2401
2408
|
const he = () => {
|
|
2402
2409
|
if (v.current) {
|
|
2403
|
-
const
|
|
2404
|
-
N(
|
|
2410
|
+
const ke = v.current.scrollWidth > v.current.clientWidth;
|
|
2411
|
+
N(ke);
|
|
2405
2412
|
}
|
|
2406
2413
|
};
|
|
2407
2414
|
he();
|
|
2408
|
-
const
|
|
2415
|
+
const Be = new ResizeObserver(() => {
|
|
2409
2416
|
he();
|
|
2410
2417
|
});
|
|
2411
|
-
v.current &&
|
|
2418
|
+
v.current && Be.observe(v.current);
|
|
2412
2419
|
const ae = setTimeout(he, 0);
|
|
2413
2420
|
return () => {
|
|
2414
|
-
|
|
2421
|
+
Be.disconnect(), clearTimeout(ae);
|
|
2415
2422
|
};
|
|
2416
|
-
}, $ = [], e[17] = j, e[18] = $) : (j = e[17], $ = e[18]),
|
|
2423
|
+
}, $ = [], e[17] = j, e[18] = $) : (j = e[17], $ = e[18]), Je(j, $);
|
|
2417
2424
|
let V;
|
|
2418
2425
|
e[19] !== h ? (V = h ?? {}, e[19] = h, e[20] = V) : V = e[20];
|
|
2419
2426
|
let O, G, T, Y;
|
|
@@ -2428,25 +2435,25 @@ const Mo = {
|
|
|
2428
2435
|
e[26] !== O || e[27] !== M ? (A = k("pointer-events-none border-2 opacity-100 flex items-center justify-center !rounded-sm", M, O), e[26] = O, e[27] = M, e[28] = A) : A = e[28];
|
|
2429
2436
|
let q;
|
|
2430
2437
|
e[29] !== T || e[30] !== s || e[31] !== H || e[32] !== P || e[33] !== A ? (q = /* @__PURE__ */ c(or, { checked: s, tabIndex: P, className: A, color: H, ...T }), e[29] = T, e[30] = s, e[31] = H, e[32] = P, e[33] = A, e[34] = q) : q = e[34];
|
|
2431
|
-
const Q = q,
|
|
2432
|
-
let
|
|
2433
|
-
e[35] !==
|
|
2438
|
+
const Q = q, J = b == null ? void 0 : b.className;
|
|
2439
|
+
let K;
|
|
2440
|
+
e[35] !== J ? (K = k("flex-shrink-0", J), e[35] = J, e[36] = K) : K = e[36];
|
|
2434
2441
|
let re;
|
|
2435
|
-
e[37] !== b || e[38] !==
|
|
2442
|
+
e[37] !== b || e[38] !== K ? (re = {
|
|
2436
2443
|
size: "small",
|
|
2437
2444
|
variant: "soft",
|
|
2438
2445
|
...b,
|
|
2439
|
-
className:
|
|
2440
|
-
}, e[37] = b, e[38] =
|
|
2446
|
+
className: K
|
|
2447
|
+
}, e[37] = b, e[38] = K, e[39] = re) : re = e[39];
|
|
2441
2448
|
const te = re, se = m === "left";
|
|
2442
2449
|
let le;
|
|
2443
2450
|
e[40] !== F ? (le = /* @__PURE__ */ c("span", { ref: v, className: "flex-1 truncate", children: F }), e[40] = F, e[41] = le) : le = e[41];
|
|
2444
|
-
const
|
|
2451
|
+
const U = le;
|
|
2445
2452
|
let ue;
|
|
2446
|
-
e[42] !== y || e[43] !== F || e[44] !==
|
|
2447
|
-
/* @__PURE__ */ c(fs, { asChild: !0, children:
|
|
2453
|
+
e[42] !== y || e[43] !== F || e[44] !== U ? (ue = y ? /* @__PURE__ */ S(rr, { children: [
|
|
2454
|
+
/* @__PURE__ */ c(fs, { asChild: !0, children: U }),
|
|
2448
2455
|
/* @__PURE__ */ c(ms, { children: /* @__PURE__ */ c("p", { children: F }) })
|
|
2449
|
-
] }) :
|
|
2456
|
+
] }) : U, e[42] = y, e[43] = F, e[44] = U, e[45] = ue) : ue = e[45];
|
|
2450
2457
|
const ie = ue, ee = r ? "bg-accent text-accent-foreground" : "", oe = _ && "italic";
|
|
2451
2458
|
let me;
|
|
2452
2459
|
e[46] !== ee || e[47] !== oe ? (me = k("px-3 py-2 cursor-pointer flex items-center", "text-sm transition-colors mx-2.5 rounded-md my-0.5 hover:bg-[#F5F5F5]", ee, oe), e[46] = ee, e[47] = oe, e[48] = me) : me = e[48];
|
|
@@ -2457,8 +2464,8 @@ const Mo = {
|
|
|
2457
2464
|
f && /* @__PURE__ */ c($o, { label: F, ...te }),
|
|
2458
2465
|
!se && Q
|
|
2459
2466
|
] }), e[49] = Q, e[50] = te, e[51] = l, e[52] = se, e[53] = t, e[54] = F, e[55] = a, e[56] = f, e[57] = ie, e[58] = fe) : fe = e[58];
|
|
2460
|
-
let
|
|
2461
|
-
return e[59] !== C || e[60] !== B || e[61] !== l || e[62] !== s || e[63] !== me || e[64] !== fe ? (
|
|
2467
|
+
let Z;
|
|
2468
|
+
return e[59] !== C || e[60] !== B || e[61] !== l || e[62] !== s || e[63] !== me || e[64] !== fe ? (Z = /* @__PURE__ */ c("div", { role: "option", "aria-selected": s, tabIndex: 0, onClick: C, onKeyDown: B, "data-option-index": l, className: me, children: fe }), e[59] = C, e[60] = B, e[61] = l, e[62] = s, e[63] = me, e[64] = fe, e[65] = Z) : Z = e[65], Z;
|
|
2462
2469
|
}, Lo = (n) => {
|
|
2463
2470
|
const e = I(17), {
|
|
2464
2471
|
tag: t,
|
|
@@ -2529,13 +2536,13 @@ function Ya(n) {
|
|
|
2529
2536
|
portalContainer: A,
|
|
2530
2537
|
disablePortal: q,
|
|
2531
2538
|
dropdownWidth: Q,
|
|
2532
|
-
getOptionLabel:
|
|
2533
|
-
getOptionValue:
|
|
2539
|
+
getOptionLabel: J,
|
|
2540
|
+
getOptionValue: K,
|
|
2534
2541
|
isOptionEqualToValue: re,
|
|
2535
2542
|
filterOptions: te,
|
|
2536
2543
|
renderOption: se,
|
|
2537
2544
|
renderTags: le,
|
|
2538
|
-
limitTags:
|
|
2545
|
+
limitTags: U,
|
|
2539
2546
|
fields: ue
|
|
2540
2547
|
} = n;
|
|
2541
2548
|
let ie;
|
|
@@ -2546,127 +2553,127 @@ function Ya(n) {
|
|
|
2546
2553
|
const me = oe;
|
|
2547
2554
|
let fe;
|
|
2548
2555
|
e[4] !== s ? (fe = s === void 0 ? [] : s, e[4] = s, e[5] = fe) : fe = e[5];
|
|
2549
|
-
const
|
|
2550
|
-
let
|
|
2551
|
-
e[6] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2552
|
-
|
|
2553
|
-
}, e[6] =
|
|
2554
|
-
let
|
|
2555
|
-
e[7] !==
|
|
2556
|
-
const
|
|
2557
|
-
let
|
|
2558
|
-
e[9] !== o || e[10] !== r ? (
|
|
2559
|
-
r == null || r(Ce,
|
|
2560
|
-
itemData:
|
|
2556
|
+
const Z = fe, he = a === void 0 ? "Search..." : a, Be = f === void 0 ? "No options" : f, ae = b === void 0 ? !1 : b, ke = p === void 0 ? !1 : p, He = g === void 0 ? !1 : g, Xe = x === void 0 ? !0 : x, Ee = w === void 0 ? !0 : w, Re = v === void 0 ? !1 : v, Ge = y === void 0 ? "medium" : y, et = N === void 0 ? "outlined" : N, We = D === void 0 ? !0 : D, Se = B === void 0 ? "right" : B, je = R === void 0 ? !1 : R, Ke = _ === void 0 ? !0 : _, Oe = j === void 0 ? "#000000" : j, ve = $ === void 0 ? !1 : $, Fe = O === void 0 ? "input" : O, rt = q === void 0 ? !1 : q, Pe = Q === void 0 ? "220px" : Q, W = xt(), [X, pe] = Ne(!1);
|
|
2557
|
+
let we;
|
|
2558
|
+
e[6] === Symbol.for("react.memo_cache_sentinel") ? (we = () => {
|
|
2559
|
+
pe(!1);
|
|
2560
|
+
}, e[6] = we) : we = e[6];
|
|
2561
|
+
let De;
|
|
2562
|
+
e[7] !== Z ? (De = [Z], e[7] = Z, e[8] = De) : De = e[8], Je(we, De);
|
|
2563
|
+
const Ve = me.length > 0 ? me : ee;
|
|
2564
|
+
let tt;
|
|
2565
|
+
e[9] !== o || e[10] !== r ? (tt = (Ce, _e) => {
|
|
2566
|
+
r == null || r(Ce, _e), o == null || o({
|
|
2567
|
+
itemData: _e
|
|
2561
2568
|
});
|
|
2562
|
-
}, e[9] = o, e[10] = r, e[11] =
|
|
2563
|
-
let
|
|
2564
|
-
e[12] !==
|
|
2565
|
-
options:
|
|
2566
|
-
value:
|
|
2567
|
-
onChange:
|
|
2569
|
+
}, e[9] = o, e[10] = r, e[11] = tt) : tt = e[11];
|
|
2570
|
+
let ze;
|
|
2571
|
+
e[12] !== Ee || e[13] !== ae || e[14] !== Ve || e[15] !== ue || e[16] !== te || e[17] !== Re || e[18] !== J || e[19] !== K || e[20] !== re || e[21] !== i || e[22] !== tt || e[23] !== Z ? (ze = {
|
|
2572
|
+
options: Ve,
|
|
2573
|
+
value: Z,
|
|
2574
|
+
onChange: tt,
|
|
2568
2575
|
onInputChange: i,
|
|
2569
2576
|
disabled: ae,
|
|
2570
|
-
disableCloseOnSelect:
|
|
2571
|
-
freeSolo:
|
|
2572
|
-
getOptionLabel:
|
|
2573
|
-
getOptionValue:
|
|
2577
|
+
disableCloseOnSelect: Ee,
|
|
2578
|
+
freeSolo: Re,
|
|
2579
|
+
getOptionLabel: J,
|
|
2580
|
+
getOptionValue: K,
|
|
2574
2581
|
isOptionEqualToValue: re,
|
|
2575
2582
|
filterOptions: te,
|
|
2576
2583
|
fields: ue
|
|
2577
|
-
}, e[12] =
|
|
2584
|
+
}, e[12] = Ee, e[13] = ae, e[14] = Ve, e[15] = ue, e[16] = te, e[17] = Re, e[18] = J, e[19] = K, e[20] = re, e[21] = i, e[22] = tt, e[23] = Z, e[24] = ze) : ze = e[24];
|
|
2578
2585
|
const {
|
|
2579
2586
|
open: ge,
|
|
2580
|
-
inputValue:
|
|
2581
|
-
highlightedIndex:
|
|
2582
|
-
filteredOptions:
|
|
2583
|
-
dropdownPosition:
|
|
2584
|
-
inputRef:
|
|
2587
|
+
inputValue: Le,
|
|
2588
|
+
highlightedIndex: qe,
|
|
2589
|
+
filteredOptions: Ye,
|
|
2590
|
+
dropdownPosition: Te,
|
|
2591
|
+
inputRef: Ue,
|
|
2585
2592
|
listRef: Ie,
|
|
2586
|
-
containerRef:
|
|
2593
|
+
containerRef: Qe,
|
|
2587
2594
|
triggerRef: pt,
|
|
2588
|
-
handleInputChange:
|
|
2595
|
+
handleInputChange: lt,
|
|
2589
2596
|
handleOptionSelect: ce,
|
|
2590
2597
|
handleTagRemove: ne,
|
|
2591
|
-
handleClear:
|
|
2592
|
-
handleKeyDown:
|
|
2598
|
+
handleClear: Ze,
|
|
2599
|
+
handleKeyDown: st,
|
|
2593
2600
|
handleToggle: at,
|
|
2594
2601
|
handleFocus: St,
|
|
2595
2602
|
isOptionSelected: Mt,
|
|
2596
|
-
getOptionLabelSafe:
|
|
2597
|
-
} = To(
|
|
2603
|
+
getOptionLabelSafe: ot
|
|
2604
|
+
} = To(ze), Pt = Xe && !ae && Le !== "" && !ve && Fe !== "button";
|
|
2598
2605
|
let Nt;
|
|
2599
2606
|
e: {
|
|
2600
|
-
if (!
|
|
2607
|
+
if (!Ke || Fe === "button") {
|
|
2601
2608
|
Nt = null;
|
|
2602
2609
|
break e;
|
|
2603
2610
|
}
|
|
2604
|
-
if (!Array.isArray(
|
|
2611
|
+
if (!Array.isArray(Z) || Z.length === 0) {
|
|
2605
2612
|
Nt = null;
|
|
2606
2613
|
break e;
|
|
2607
2614
|
}
|
|
2608
2615
|
if (le) {
|
|
2609
2616
|
let ft;
|
|
2610
|
-
e[25] !== ne || e[26] !== le || e[27] !==
|
|
2617
|
+
e[25] !== ne || e[26] !== le || e[27] !== Z ? (ft = le(Z, ne), e[25] = ne, e[26] = le, e[27] = Z, e[28] = ft) : ft = e[28], Nt = ft;
|
|
2611
2618
|
break e;
|
|
2612
2619
|
}
|
|
2613
|
-
let Ce =
|
|
2614
|
-
if (
|
|
2620
|
+
let Ce = Z;
|
|
2621
|
+
if (U && Z.length > U && !X) {
|
|
2615
2622
|
let ft;
|
|
2616
|
-
e[29] !==
|
|
2623
|
+
e[29] !== U || e[30] !== Z ? (ft = Z.slice(0, U), e[29] = U, e[30] = Z, e[31] = ft) : ft = e[31], Ce = ft;
|
|
2617
2624
|
}
|
|
2618
|
-
let
|
|
2619
|
-
if (e[32] !==
|
|
2625
|
+
let _e;
|
|
2626
|
+
if (e[32] !== ot || e[33] !== K || e[34] !== ne || e[35] !== Ce) {
|
|
2620
2627
|
let ft;
|
|
2621
|
-
e[37] !==
|
|
2628
|
+
e[37] !== ot || e[38] !== K || e[39] !== ne ? (ft = (yl, hs) => /* @__PURE__ */ c(Lo, { tag: yl, index: hs, getOptionLabel: ot, onRemove: ne }, typeof yl == "string" ? yl : String((K == null ? void 0 : K(yl)) ?? hs)), e[37] = ot, e[38] = K, e[39] = ne, e[40] = ft) : ft = e[40], _e = Ce.map(ft), e[32] = ot, e[33] = K, e[34] = ne, e[35] = Ce, e[36] = _e;
|
|
2622
2629
|
} else
|
|
2623
|
-
|
|
2630
|
+
_e = e[36];
|
|
2624
2631
|
let Et;
|
|
2625
|
-
e[41] !==
|
|
2632
|
+
e[41] !== U || e[42] !== X || e[43] !== Z ? (Et = U && Z.length > U && !X && /* @__PURE__ */ S("button", { type: "button", onClick: () => pe(!0), className: "inline-flex items-center px-2.5 py-0.5 text-xs font-medium bg-muted text-muted-foreground rounded-full hover:bg-muted/80 transition-colors cursor-pointer", children: [
|
|
2626
2633
|
"+",
|
|
2627
|
-
|
|
2634
|
+
Z.length - U,
|
|
2628
2635
|
" more"
|
|
2629
|
-
] }), e[41] =
|
|
2636
|
+
] }), e[41] = U, e[42] = X, e[43] = Z, e[44] = Et) : Et = e[44];
|
|
2630
2637
|
let gt;
|
|
2631
|
-
e[45] !==
|
|
2638
|
+
e[45] !== U || e[46] !== X || e[47] !== Z ? (gt = U && Z.length > U && X && /* @__PURE__ */ c("button", { type: "button", onClick: () => pe(!1), className: "inline-flex items-center px-2.5 py-0.5 text-xs font-medium bg-muted text-muted-foreground rounded-full hover:bg-muted/80 transition-colors cursor-pointer", children: "Show less" }), e[45] = U, e[46] = X, e[47] = Z, e[48] = gt) : gt = e[48];
|
|
2632
2639
|
let Wt;
|
|
2633
|
-
e[49] !==
|
|
2634
|
-
|
|
2640
|
+
e[49] !== _e || e[50] !== Et || e[51] !== gt ? (Wt = /* @__PURE__ */ S("div", { className: "flex flex-wrap gap-1 mb-1", children: [
|
|
2641
|
+
_e,
|
|
2635
2642
|
Et,
|
|
2636
2643
|
gt
|
|
2637
|
-
] }), e[49] =
|
|
2644
|
+
] }), e[49] = _e, e[50] = Et, e[51] = gt, e[52] = Wt) : Wt = e[52], Nt = Wt;
|
|
2638
2645
|
}
|
|
2639
|
-
const zt = Nt, wt =
|
|
2646
|
+
const zt = Nt, wt = Fe === "button", ll = m ? "border border-destructive" : Po[et], sl = Mo[Ge], rl = ae ? "opacity-50 cursor-not-allowed" : "cursor-text";
|
|
2640
2647
|
let Xt;
|
|
2641
2648
|
e[53] !== E || e[54] !== ll || e[55] !== sl || e[56] !== rl ? (Xt = k("relative flex items-center rounded-md", ll, sl, rl, "transition-colors", E), e[53] = E, e[54] = ll, e[55] = sl, e[56] = rl, e[57] = Xt) : Xt = e[57];
|
|
2642
2649
|
const de = Xt, be = ae ? "opacity-50 cursor-not-allowed" : "cursor-pointer";
|
|
2643
|
-
let
|
|
2644
|
-
e[58] !== E || e[59] !== be ? (
|
|
2645
|
-
const xe =
|
|
2650
|
+
let Ae;
|
|
2651
|
+
e[58] !== E || e[59] !== be ? (Ae = k("relative inline-flex items-center gap-2", be, E), e[58] = E, e[59] = be, e[60] = Ae) : Ae = e[60];
|
|
2652
|
+
const xe = Ae, dt = h ?? Be, nt = xt(), kt = ht(null), ut = ht(null);
|
|
2646
2653
|
let qt, Ht;
|
|
2647
2654
|
e[61] !== ge || e[62] !== ve ? (qt = () => {
|
|
2648
2655
|
var Ce;
|
|
2649
2656
|
ge && ve && ((Ce = kt.current) == null || Ce.focus());
|
|
2650
|
-
}, Ht = [ge, ve], e[61] = ge, e[62] = ve, e[63] = qt, e[64] = Ht) : (qt = e[63], Ht = e[64]),
|
|
2657
|
+
}, Ht = [ge, ve], e[61] = ge, e[62] = ve, e[63] = qt, e[64] = Ht) : (qt = e[63], Ht = e[64]), Je(qt, Ht);
|
|
2651
2658
|
let $t;
|
|
2652
2659
|
e[65] !== ce || e[66] !== ge || e[67] !== ve ? ($t = (Ce) => {
|
|
2653
2660
|
ce(Ce), ve && ge && setTimeout(() => {
|
|
2654
|
-
var
|
|
2655
|
-
(
|
|
2661
|
+
var _e;
|
|
2662
|
+
(_e = kt.current) == null || _e.focus();
|
|
2656
2663
|
}, 10);
|
|
2657
2664
|
}, e[65] = ce, e[66] = ge, e[67] = ve, e[68] = $t) : $t = e[68];
|
|
2658
2665
|
const Lt = $t;
|
|
2659
2666
|
let It, At;
|
|
2660
|
-
e[69] !==
|
|
2661
|
-
if (!(!ge ||
|
|
2667
|
+
e[69] !== Ye.length || e[70] !== qe || e[71] !== Ie || e[72] !== ge ? (It = () => {
|
|
2668
|
+
if (!(!ge || qe < 0 || !Ie.current) && Ye.length !== 0 && !(qe >= Ye.length))
|
|
2662
2669
|
return ut.current !== null && (cancelAnimationFrame(ut.current), ut.current = null), ut.current = requestAnimationFrame(() => {
|
|
2663
2670
|
if (!Ie.current)
|
|
2664
2671
|
return;
|
|
2665
2672
|
const Ce = Ie.current.querySelector('div.max-h-60, div[class*="max-h-60"]');
|
|
2666
2673
|
if (!Ce)
|
|
2667
2674
|
return;
|
|
2668
|
-
const
|
|
2669
|
-
|
|
2675
|
+
const _e = Ce.querySelector(`[data-option-index="${qe}"]`);
|
|
2676
|
+
_e && _e.scrollIntoView({
|
|
2670
2677
|
behavior: "auto",
|
|
2671
2678
|
block: "nearest",
|
|
2672
2679
|
inline: "nearest"
|
|
@@ -2674,27 +2681,27 @@ function Ya(n) {
|
|
|
2674
2681
|
}), () => {
|
|
2675
2682
|
ut.current !== null && (cancelAnimationFrame(ut.current), ut.current = null);
|
|
2676
2683
|
};
|
|
2677
|
-
}, At = [
|
|
2684
|
+
}, At = [qe, ge, Ye.length, Ie], e[69] = Ye.length, e[70] = qe, e[71] = Ie, e[72] = ge, e[73] = It, e[74] = At) : (It = e[73], At = e[74]), Je(It, At);
|
|
2678
2685
|
let _t;
|
|
2679
2686
|
e: {
|
|
2680
2687
|
if (typeof G == "function") {
|
|
2681
2688
|
let Ce;
|
|
2682
|
-
e[75] !==
|
|
2683
|
-
let
|
|
2684
|
-
e[77] !== Ce || e[78] !== G ? (
|
|
2689
|
+
e[75] !== Z ? (Ce = Z ?? [], e[75] = Z, e[76] = Ce) : Ce = e[76];
|
|
2690
|
+
let _e;
|
|
2691
|
+
e[77] !== Ce || e[78] !== G ? (_e = G(Ce), e[77] = Ce, e[78] = G, e[79] = _e) : _e = e[79], _t = _e;
|
|
2685
2692
|
break e;
|
|
2686
2693
|
}
|
|
2687
2694
|
if (G !== void 0) {
|
|
2688
2695
|
_t = G;
|
|
2689
2696
|
break e;
|
|
2690
2697
|
}
|
|
2691
|
-
if (Array.isArray(
|
|
2692
|
-
if (
|
|
2698
|
+
if (Array.isArray(Z) && Z.length > 0) {
|
|
2699
|
+
if (Z.length === 1) {
|
|
2693
2700
|
let Ce;
|
|
2694
|
-
e[80] !==
|
|
2701
|
+
e[80] !== ot || e[81] !== Z[0] ? (Ce = ot(Z[0]), e[80] = ot, e[81] = Z[0], e[82] = Ce) : Ce = e[82], _t = Ce;
|
|
2695
2702
|
break e;
|
|
2696
2703
|
}
|
|
2697
|
-
_t = `${
|
|
2704
|
+
_t = `${Z.length} selected`;
|
|
2698
2705
|
break e;
|
|
2699
2706
|
}
|
|
2700
2707
|
_t = he;
|
|
@@ -2709,62 +2716,62 @@ function Ya(n) {
|
|
|
2709
2716
|
className: il,
|
|
2710
2717
|
...nl
|
|
2711
2718
|
} = ol, e[85] = ol, e[86] = nl, e[87] = il, e[88] = Cl, e[89] = Gt) : (nl = e[86], il = e[87], Cl = e[88], Gt = e[89]);
|
|
2712
|
-
const Ll = T ?? "outline", Bl = Y ?? "small", jl = Cl ??
|
|
2719
|
+
const Ll = T ?? "outline", Bl = Y ?? "small", jl = Cl ?? We ?? !1, al = M ?? "right";
|
|
2713
2720
|
let Sl;
|
|
2714
2721
|
e[90] !== ge || e[91] !== al || e[92] !== P ? (Sl = P ?? (al === "left" ? /* @__PURE__ */ c(bt, { className: k("h-4 w-4 transition-transform", ge ? "-rotate-180" : "") }) : /* @__PURE__ */ c(bt, { className: k("h-4 w-4 transition-transform", ge ? "rotate-180" : "") })), e[90] = ge, e[91] = al, e[92] = P, e[93] = Sl) : Sl = e[93];
|
|
2715
2722
|
const Vl = Sl, ql = "w-auto", Yl = wt ? "" : C;
|
|
2716
2723
|
let cl;
|
|
2717
2724
|
e[94] !== ql || e[95] !== Yl ? (cl = k("relative", ql, Yl), e[94] = ql, e[95] = Yl, e[96] = cl) : cl = e[96];
|
|
2718
2725
|
let dl;
|
|
2719
|
-
e[97] !==
|
|
2726
|
+
e[97] !== W || e[98] !== d || e[99] !== He ? (dl = d && /* @__PURE__ */ S("label", { htmlFor: W, className: "block text-sm font-medium mb-1", children: [
|
|
2720
2727
|
d,
|
|
2721
|
-
|
|
2722
|
-
] }), e[97] =
|
|
2728
|
+
He && /* @__PURE__ */ c("span", { className: "text-destructive ml-1", children: "*" })
|
|
2729
|
+
] }), e[97] = W, e[98] = d, e[99] = He, e[100] = dl) : dl = e[100];
|
|
2723
2730
|
let ul;
|
|
2724
|
-
e[101] !== xe || e[102] !== zl || e[103] !== de || e[104] !== ae || e[105] !==
|
|
2725
|
-
/* @__PURE__ */ c("input", { id:
|
|
2726
|
-
/* @__PURE__ */ c(jt, { variant: Ll, size: Bl, icon: Vl, iconPosition: al, fullWidth: jl, disabled: ae, type: "button", "aria-haspopup": "listbox", "aria-expanded": ge, "aria-controls":
|
|
2731
|
+
e[101] !== xe || e[102] !== zl || e[103] !== de || e[104] !== ae || e[105] !== Ze || e[106] !== St || e[107] !== lt || e[108] !== st || e[109] !== at || e[110] !== W || e[111] !== Ue || e[112] !== Le || e[113] !== wt || e[114] !== nt || e[115] !== ke || e[116] !== ge || e[117] !== he || e[118] !== jl || e[119] !== Vl || e[120] !== al || e[121] !== Bl || e[122] !== Ll || e[123] !== nl || e[124] !== Pt || e[125] !== ve || e[126] !== il || e[127] !== Gt || e[128] !== pt ? (ul = wt ? /* @__PURE__ */ S("div", { ref: pt, className: xe, children: [
|
|
2732
|
+
/* @__PURE__ */ c("input", { id: W, ref: Ue, value: Le, onChange: lt, onKeyDown: st, onFocus: St, "aria-hidden": "true", tabIndex: -1, readOnly: !0, className: "sr-only" }),
|
|
2733
|
+
/* @__PURE__ */ c(jt, { variant: Ll, size: Bl, icon: Vl, iconPosition: al, fullWidth: jl, disabled: ae, type: "button", "aria-haspopup": "listbox", "aria-expanded": ge, "aria-controls": nt, className: k("hover:bg-transparent active:bg-transparent focus-visible:bg-transparent focus-visible:ring-0", il), ...nl, onClick: (Ce) => {
|
|
2727
2734
|
if (Gt == null || Gt(Ce), ae)
|
|
2728
2735
|
return;
|
|
2729
|
-
const
|
|
2730
|
-
at(),
|
|
2736
|
+
const _e = !ge;
|
|
2737
|
+
at(), _e && setTimeout(() => {
|
|
2731
2738
|
var Et;
|
|
2732
|
-
(Et =
|
|
2739
|
+
(Et = Ue.current) == null || Et.focus();
|
|
2733
2740
|
}, 0);
|
|
2734
2741
|
}, children: zl }),
|
|
2735
|
-
|
|
2742
|
+
ke && /* @__PURE__ */ c("div", { className: "ml-2 animate-spin rounded-full h-4 w-4 border-2 border-muted-foreground border-t-transparent" })
|
|
2736
2743
|
] }) : /* @__PURE__ */ S("div", { ref: pt, className: de, children: [
|
|
2737
|
-
/* @__PURE__ */ c(Vt, { id:
|
|
2744
|
+
/* @__PURE__ */ c(Vt, { id: W, ref: Ue, value: ve ? "" : Le, onChange: ve ? void 0 : lt, onKeyDown: st, onFocus: St, placeholder: he, disabled: ae, readOnly: ve, className: "px-0 border-0 shadow-none focus-visible:ring-0 focus-visible:ring-offset-0 bg-transparent rounded-md", role: "combobox", "aria-expanded": ge, "aria-controls": nt, "aria-autocomplete": "list" }),
|
|
2738
2745
|
/* @__PURE__ */ S("div", { className: "flex items-center gap-1 ml-auto", children: [
|
|
2739
|
-
|
|
2740
|
-
Pt && /* @__PURE__ */ c("button", { type: "button", onClick:
|
|
2746
|
+
ke && /* @__PURE__ */ c("div", { className: "animate-spin rounded-full h-4 w-4 border-2 border-muted-foreground border-t-transparent" }),
|
|
2747
|
+
Pt && /* @__PURE__ */ c("button", { type: "button", onClick: Ze, className: "p-1 hover:bg-accent rounded-sm transition-colors", tabIndex: -1, children: /* @__PURE__ */ c(Ct, { className: "h-4 w-4 text-muted-foreground" }) }),
|
|
2741
2748
|
/* @__PURE__ */ c("button", { type: "button", disabled: ae, onClick: at, className: k("p-1 hover:bg-accent rounded-sm transition-colors", ae ? "opacity-50 cursor-not-allowed" : "cursor-pointer"), tabIndex: -1, "aria-label": ge ? "Close options" : "Open options", children: /* @__PURE__ */ c(bt, { className: k("h-4 w-4 text-muted-foreground transition-transform", ge ? "rotate-180" : "") }) })
|
|
2742
2749
|
] })
|
|
2743
|
-
] }), e[101] = xe, e[102] = zl, e[103] = de, e[104] = ae, e[105] =
|
|
2750
|
+
] }), e[101] = xe, e[102] = zl, e[103] = de, e[104] = ae, e[105] = Ze, e[106] = St, e[107] = lt, e[108] = st, e[109] = at, e[110] = W, e[111] = Ue, e[112] = Le, e[113] = wt, e[114] = nt, e[115] = ke, e[116] = ge, e[117] = he, e[118] = jl, e[119] = Vl, e[120] = al, e[121] = Bl, e[122] = Ll, e[123] = nl, e[124] = Pt, e[125] = ve, e[126] = il, e[127] = Gt, e[128] = pt, e[129] = ul) : ul = e[129];
|
|
2744
2751
|
let fl;
|
|
2745
|
-
e[130] !==
|
|
2746
|
-
const Ce =
|
|
2747
|
-
const gt = () => wt ? typeof
|
|
2752
|
+
e[130] !== Oe || e[131] !== Se || e[132] !== z || e[133] !== F || e[134] !== rt || e[135] !== ae || e[136] !== Te || e[137] !== Pe || e[138] !== Ve || e[139] !== Ye || e[140] !== Re || e[141] !== ot || e[142] !== K || e[143] !== lt || e[144] !== st || e[145] !== Lt || e[146] !== qe || e[147] !== E || e[148] !== Le || e[149] !== wt || e[150] !== Mt || e[151] !== d || e[152] !== Ie || e[153] !== nt || e[154] !== dt || e[155] !== ge || e[156] !== he || e[157] !== A || e[158] !== se || e[159] !== V || e[160] !== je || e[161] !== ve ? (fl = ge && (() => {
|
|
2753
|
+
const Ce = Te.width > 0 || Te.top > 0, _e = /* @__PURE__ */ c(us, { delayDuration: 0, children: /* @__PURE__ */ S("div", { id: nt, role: "listbox", "aria-label": d || "Options", "data-dialog-interactive-layer": "true", className: k("fixed z-[99999] pointer-events-auto bg-popover border border-border rounded-md shadow-lg", "flex flex-col overflow-hidden", !Ce && "invisible", E), style: (() => {
|
|
2754
|
+
const gt = () => wt ? typeof Pe == "number" ? `${Pe}px` : typeof Pe == "string" ? Pe : "220px" : Te.width;
|
|
2748
2755
|
return {
|
|
2749
|
-
top:
|
|
2750
|
-
left:
|
|
2751
|
-
minWidth: wt ? void 0 :
|
|
2756
|
+
top: Te.top + 4,
|
|
2757
|
+
left: Te.left,
|
|
2758
|
+
minWidth: wt ? void 0 : Te.width,
|
|
2752
2759
|
width: gt(),
|
|
2753
2760
|
zIndex: 99999,
|
|
2754
2761
|
pointerEvents: "auto"
|
|
2755
2762
|
};
|
|
2756
2763
|
})(), ref: Ie, children: [
|
|
2757
|
-
ve && /* @__PURE__ */ c("div", { className: "p-2 bg-popover", children: /* @__PURE__ */ c(ps, { ref: kt, query:
|
|
2758
|
-
/* @__PURE__ */ c("div", { className: k("max-h-60 overflow-auto", "[scrollbar-gutter:stable]", "[&::-webkit-scrollbar]:w-2", "[&::-webkit-scrollbar-track]:bg-transparent", "[&::-webkit-scrollbar-thumb]:bg-gray-300", "[&::-webkit-scrollbar-thumb]:rounded-full", "[&::-webkit-scrollbar-thumb]:border-0", "[&::-webkit-scrollb#F5F5F5ar-thumb]:min-h-[30px]", "scrollbar-thin scrollbar-thumb-gray-300 scrollbar-track-transparent"), children:
|
|
2764
|
+
ve && /* @__PURE__ */ c("div", { className: "p-2 bg-popover", children: /* @__PURE__ */ c(ps, { ref: kt, query: Le, onChange: lt, onKeyDown: st, placeholder: V ?? he, className: "w-full", "aria-label": "Search options", disabled: ae, size: "small" }) }),
|
|
2765
|
+
/* @__PURE__ */ c("div", { className: k("max-h-60 overflow-auto", "[scrollbar-gutter:stable]", "[&::-webkit-scrollbar]:w-2", "[&::-webkit-scrollbar-track]:bg-transparent", "[&::-webkit-scrollbar-thumb]:bg-gray-300", "[&::-webkit-scrollbar-thumb]:rounded-full", "[&::-webkit-scrollbar-thumb]:border-0", "[&::-webkit-scrollb#F5F5F5ar-thumb]:min-h-[30px]", "scrollbar-thin scrollbar-thumb-gray-300 scrollbar-track-transparent"), children: Ye.length === 0 ? /* @__PURE__ */ c("div", { className: "p-3 text-sm text-muted-foreground text-center", children: dt }) : Ye.map((gt, Wt) => {
|
|
2759
2766
|
const ft = Mt(gt);
|
|
2760
|
-
return /* @__PURE__ */ c(zo, { option: gt, index: Wt, isSelected: ft, isHighlighted: Wt ===
|
|
2767
|
+
return /* @__PURE__ */ c(zo, { option: gt, index: Wt, isSelected: ft, isHighlighted: Wt === qe, onSelect: Lt, getOptionLabel: ot, renderOption: se, freeSolo: Re, originalOptions: Ve, checkboxPosition: Se, showChip: je, checkboxProps: z, chipProps: F, checkboxColor: Oe }, typeof gt == "string" ? gt : String((K == null ? void 0 : K(gt)) ?? Wt));
|
|
2761
2768
|
}) })
|
|
2762
2769
|
] }) });
|
|
2763
|
-
if (
|
|
2764
|
-
return
|
|
2770
|
+
if (rt)
|
|
2771
|
+
return _e;
|
|
2765
2772
|
const Et = A ?? document.body;
|
|
2766
|
-
return Bs(
|
|
2767
|
-
})(), e[130] =
|
|
2773
|
+
return Bs(_e, Et);
|
|
2774
|
+
})(), e[130] = Oe, e[131] = Se, e[132] = z, e[133] = F, e[134] = rt, e[135] = ae, e[136] = Te, e[137] = Pe, e[138] = Ve, e[139] = Ye, e[140] = Re, e[141] = ot, e[142] = K, e[143] = lt, e[144] = st, e[145] = Lt, e[146] = qe, e[147] = E, e[148] = Le, e[149] = wt, e[150] = Mt, e[151] = d, e[152] = Ie, e[153] = nt, e[154] = dt, e[155] = ge, e[156] = he, e[157] = A, e[158] = se, e[159] = V, e[160] = je, e[161] = ve, e[162] = fl) : fl = e[162];
|
|
2768
2775
|
let ml;
|
|
2769
2776
|
e[163] !== zt || e[164] !== ul || e[165] !== fl ? (ml = /* @__PURE__ */ S("div", { className: "relative overflow-visible", children: [
|
|
2770
2777
|
zt,
|
|
@@ -2774,11 +2781,11 @@ function Ya(n) {
|
|
|
2774
2781
|
let pl;
|
|
2775
2782
|
e[167] !== m || e[168] !== u ? (pl = (u || m) && /* @__PURE__ */ c("p", { className: k("mt-1 text-xs", m ? "text-destructive" : "text-muted-foreground"), children: m || u }), e[167] = m, e[168] = u, e[169] = pl) : pl = e[169];
|
|
2776
2783
|
let $l;
|
|
2777
|
-
return e[170] !==
|
|
2784
|
+
return e[170] !== Qe || e[171] !== cl || e[172] !== dl || e[173] !== ml || e[174] !== pl ? ($l = /* @__PURE__ */ S("div", { className: cl, ref: Qe, children: [
|
|
2778
2785
|
dl,
|
|
2779
2786
|
ml,
|
|
2780
2787
|
pl
|
|
2781
|
-
] }), e[170] =
|
|
2788
|
+
] }), e[170] = Qe, e[171] = cl, e[172] = dl, e[173] = ml, e[174] = pl, e[175] = $l) : $l = e[175], $l;
|
|
2782
2789
|
}
|
|
2783
2790
|
const gl = (n) => {
|
|
2784
2791
|
const e = I(12);
|
|
@@ -2937,7 +2944,7 @@ const jo = L.forwardRef((n, e) => {
|
|
|
2937
2944
|
});
|
|
2938
2945
|
jo.displayName = "SelectSeparator";
|
|
2939
2946
|
function Nl(n) {
|
|
2940
|
-
var
|
|
2947
|
+
var Pe;
|
|
2941
2948
|
const e = I(84), {
|
|
2942
2949
|
label: t,
|
|
2943
2950
|
placeholder: l,
|
|
@@ -2962,36 +2969,36 @@ function Nl(n) {
|
|
|
2962
2969
|
instanceKey: z,
|
|
2963
2970
|
containerProps: F,
|
|
2964
2971
|
onOpenChange: j
|
|
2965
|
-
} = er(), $ = u || a, V = m || d, O = r !== void 0, [G, T] =
|
|
2972
|
+
} = er(), $ = u || a, V = m || d, O = r !== void 0, [G, T] = Ne(void 0), [Y, H] = Ne(0), P = O ? r : G;
|
|
2966
2973
|
let M;
|
|
2967
2974
|
e: {
|
|
2968
2975
|
if (!P) {
|
|
2969
2976
|
M = void 0;
|
|
2970
2977
|
break e;
|
|
2971
2978
|
}
|
|
2972
|
-
let
|
|
2973
|
-
e[0] !== s || e[1] !== P ? (
|
|
2979
|
+
let W;
|
|
2980
|
+
e[0] !== s || e[1] !== P ? (W = (Pe = s.find((X) => X.value === P)) == null ? void 0 : Pe.label, e[0] = s, e[1] = P, e[2] = W) : W = e[2], M = W;
|
|
2974
2981
|
}
|
|
2975
2982
|
const A = M;
|
|
2976
2983
|
let q;
|
|
2977
|
-
e[3] !== O || e[4] !== i || e[5] !== o ? (q = (
|
|
2978
|
-
O || T(
|
|
2984
|
+
e[3] !== O || e[4] !== i || e[5] !== o ? (q = (W) => {
|
|
2985
|
+
O || T(W), o == null || o(W), i == null || i(W);
|
|
2979
2986
|
}, e[3] = O, e[4] = i, e[5] = o, e[6] = q) : q = e[6];
|
|
2980
2987
|
const Q = q;
|
|
2981
|
-
let
|
|
2982
|
-
e[7] !== O || e[8] !== i || e[9] !== o ? (
|
|
2988
|
+
let J;
|
|
2989
|
+
e[7] !== O || e[8] !== i || e[9] !== o ? (J = () => {
|
|
2983
2990
|
O || T(void 0), H(Wo), o == null || o(""), i == null || i("");
|
|
2984
|
-
}, e[7] = O, e[8] = i, e[9] = o, e[10] =
|
|
2985
|
-
const
|
|
2991
|
+
}, e[7] = O, e[8] = i, e[9] = o, e[10] = J) : J = e[10];
|
|
2992
|
+
const K = J;
|
|
2986
2993
|
let re;
|
|
2987
2994
|
if (e[11] !== s) {
|
|
2988
|
-
const
|
|
2989
|
-
s.forEach((
|
|
2990
|
-
var
|
|
2991
|
-
|
|
2995
|
+
const W = /* @__PURE__ */ new Map(), X = [];
|
|
2996
|
+
s.forEach((pe) => {
|
|
2997
|
+
var we;
|
|
2998
|
+
pe.group ? (W.has(pe.group) || W.set(pe.group, []), (we = W.get(pe.group)) == null || we.push(pe)) : X.push(pe);
|
|
2992
2999
|
}), re = {
|
|
2993
|
-
groups:
|
|
2994
|
-
ungrouped:
|
|
3000
|
+
groups: W,
|
|
3001
|
+
ungrouped: X
|
|
2995
3002
|
}, e[11] = s, e[12] = re;
|
|
2996
3003
|
} else
|
|
2997
3004
|
re = e[12];
|
|
@@ -3003,62 +3010,62 @@ function Nl(n) {
|
|
|
3003
3010
|
t,
|
|
3004
3011
|
b && /* @__PURE__ */ c("span", { className: "text-destructive ml-1", "aria-hidden": "true", children: "*" })
|
|
3005
3012
|
] }), e[15] = p, e[16] = t, e[17] = _, e[18] = b, e[19] = B, e[20] = le) : le = e[20];
|
|
3006
|
-
let
|
|
3007
|
-
e[21] !== $ ? (
|
|
3008
|
-
const ue = `${z}-${Y}`, ie = P && P !== "" ? P : "", ee = f || h ? R : void 0, oe = !!h || void 0, me = b || void 0, fe = p || D,
|
|
3013
|
+
let U;
|
|
3014
|
+
e[21] !== $ ? (U = $ && /* @__PURE__ */ c("div", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none z-10", children: $ }), e[21] = $, e[22] = U) : U = e[22];
|
|
3015
|
+
const ue = `${z}-${Y}`, ie = P && P !== "" ? P : "", ee = f || h ? R : void 0, oe = !!h || void 0, me = b || void 0, fe = p || D, Z = h && "border-destructive", he = E === "gray" && "bg-gray-100 border-gray-300 text-gray-700", Be = (p || D) && "opacity-50 cursor-not-allowed";
|
|
3009
3016
|
let ae;
|
|
3010
|
-
e[23] !== y || e[24] !==
|
|
3011
|
-
let
|
|
3012
|
-
e[28] !== $ ? (
|
|
3013
|
-
const
|
|
3014
|
-
let Je;
|
|
3015
|
-
e[30] !== A || e[31] !== Ve ? (Je = /* @__PURE__ */ c(vl, { placeholder: Ve, children: A }), e[30] = A, e[31] = Ve, e[32] = Je) : Je = e[32];
|
|
3016
|
-
let Oe;
|
|
3017
|
-
e[33] !== V ? (Oe = V && /* @__PURE__ */ c("div", { className: "ml-auto text-gray-400", children: V }), e[33] = V, e[34] = Oe) : Oe = e[34];
|
|
3018
|
-
let Fe;
|
|
3019
|
-
e[35] !== C || e[36] !== p || e[37] !== W || e[38] !== P ? (Fe = C && !!P && !p && /* @__PURE__ */ c("button", { type: "button", "aria-label": "Clear selection", className: "ml-auto text-gray-400 hover:text-gray-600 relative z-10", onMouseDown: Go, onPointerDown: Ho, onClick: (K) => {
|
|
3020
|
-
K.preventDefault(), K.stopPropagation(), W();
|
|
3021
|
-
}, onKeyDown: (K) => {
|
|
3022
|
-
(K.key === "Enter" || K.key === " ") && (K.preventDefault(), K.stopPropagation(), W());
|
|
3023
|
-
}, children: /* @__PURE__ */ c(Ct, { strokeWidth: 1.5, className: "h-4 w-4 mr-3 text-gray-400" }) }), e[35] = C, e[36] = p, e[37] = W, e[38] = P, e[39] = Fe) : Fe = e[39];
|
|
3024
|
-
let qe;
|
|
3025
|
-
e[40] !== De || e[41] !== Je || e[42] !== Oe || e[43] !== Fe ? (qe = /* @__PURE__ */ S("div", { className: "flex items-center gap-2 w-full", children: [
|
|
3026
|
-
De,
|
|
3027
|
-
Je,
|
|
3028
|
-
Oe,
|
|
3029
|
-
Fe
|
|
3030
|
-
] }), e[40] = De, e[41] = Je, e[42] = Oe, e[43] = Fe, e[44] = qe) : qe = e[44];
|
|
3017
|
+
e[23] !== y || e[24] !== Z || e[25] !== he || e[26] !== Be ? (ae = k("border-input", Z, he, Be, y), e[23] = y, e[24] = Z, e[25] = he, e[26] = Be, e[27] = ae) : ae = e[27];
|
|
3018
|
+
let ke;
|
|
3019
|
+
e[28] !== $ ? (ke = $ && /* @__PURE__ */ c("div", { className: "text-gray-400", children: $ }), e[28] = $, e[29] = ke) : ke = e[29];
|
|
3020
|
+
const He = D ? "Loading..." : N;
|
|
3031
3021
|
let Xe;
|
|
3032
|
-
e[
|
|
3033
|
-
let
|
|
3034
|
-
e[
|
|
3022
|
+
e[30] !== A || e[31] !== He ? (Xe = /* @__PURE__ */ c(vl, { placeholder: He, children: A }), e[30] = A, e[31] = He, e[32] = Xe) : Xe = e[32];
|
|
3023
|
+
let Ee;
|
|
3024
|
+
e[33] !== V ? (Ee = V && /* @__PURE__ */ c("div", { className: "ml-auto text-gray-400", children: V }), e[33] = V, e[34] = Ee) : Ee = e[34];
|
|
3025
|
+
let Re;
|
|
3026
|
+
e[35] !== C || e[36] !== p || e[37] !== K || e[38] !== P ? (Re = C && !!P && !p && /* @__PURE__ */ c("button", { type: "button", "aria-label": "Clear selection", className: "ml-auto text-gray-400 hover:text-gray-600 relative z-10", onMouseDown: Go, onPointerDown: Ho, onClick: (W) => {
|
|
3027
|
+
W.preventDefault(), W.stopPropagation(), K();
|
|
3028
|
+
}, onKeyDown: (W) => {
|
|
3029
|
+
(W.key === "Enter" || W.key === " ") && (W.preventDefault(), W.stopPropagation(), K());
|
|
3030
|
+
}, children: /* @__PURE__ */ c(Ct, { strokeWidth: 1.5, className: "h-4 w-4 mr-3 text-gray-400" }) }), e[35] = C, e[36] = p, e[37] = K, e[38] = P, e[39] = Re) : Re = e[39];
|
|
3031
|
+
let Ge;
|
|
3032
|
+
e[40] !== ke || e[41] !== Xe || e[42] !== Ee || e[43] !== Re ? (Ge = /* @__PURE__ */ S("div", { className: "flex items-center gap-2 w-full", children: [
|
|
3033
|
+
ke,
|
|
3034
|
+
Xe,
|
|
3035
|
+
Ee,
|
|
3036
|
+
Re
|
|
3037
|
+
] }), e[40] = ke, e[41] = Xe, e[42] = Ee, e[43] = Re, e[44] = Ge) : Ge = e[44];
|
|
3038
|
+
let et;
|
|
3039
|
+
e[45] !== _ || e[46] !== B || e[47] !== ee || e[48] !== oe || e[49] !== me || e[50] !== fe || e[51] !== ae || e[52] !== Ge ? (et = /* @__PURE__ */ c(xl, { id: B, "aria-labelledby": _, "aria-describedby": ee, "aria-invalid": oe, "aria-required": me, disabled: fe, className: ae, children: Ge }), e[45] = _, e[46] = B, e[47] = ee, e[48] = oe, e[49] = me, e[50] = fe, e[51] = ae, e[52] = Ge, e[53] = et) : et = e[53];
|
|
3040
|
+
let We;
|
|
3041
|
+
e[54] !== F || e[55] !== et ? (We = /* @__PURE__ */ c("div", { ...F, children: et }), e[54] = F, e[55] = et, e[56] = We) : We = e[56];
|
|
3035
3042
|
let Se;
|
|
3036
3043
|
e[57] !== te.ungrouped ? (Se = te.ungrouped.map(Yo), e[57] = te.ungrouped, e[58] = Se) : Se = e[58];
|
|
3037
|
-
let
|
|
3038
|
-
e[59] !== te.groups ? (
|
|
3039
|
-
let
|
|
3040
|
-
e[61] !== Se || e[62] !==
|
|
3044
|
+
let je;
|
|
3045
|
+
e[59] !== te.groups ? (je = Array.from(te.groups.entries()).map(Vo), e[59] = te.groups, e[60] = je) : je = e[60];
|
|
3046
|
+
let Ke;
|
|
3047
|
+
e[61] !== Se || e[62] !== je ? (Ke = /* @__PURE__ */ S(wl, { children: [
|
|
3041
3048
|
Se,
|
|
3042
|
-
|
|
3043
|
-
] }), e[61] = Se, e[62] =
|
|
3044
|
-
let
|
|
3045
|
-
e[64] !== Q || e[65] !== j || e[66] !== ue || e[67] !== ie || e[68] !==
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
] }, ue), e[64] = Q, e[65] = j, e[66] = ue, e[67] = ie, e[68] =
|
|
3049
|
+
je
|
|
3050
|
+
] }), e[61] = Se, e[62] = je, e[63] = Ke) : Ke = e[63];
|
|
3051
|
+
let Oe;
|
|
3052
|
+
e[64] !== Q || e[65] !== j || e[66] !== ue || e[67] !== ie || e[68] !== We || e[69] !== Ke ? (Oe = /* @__PURE__ */ S(gl, { value: ie, onValueChange: Q, onOpenChange: j, children: [
|
|
3053
|
+
We,
|
|
3054
|
+
Ke
|
|
3055
|
+
] }, ue), e[64] = Q, e[65] = j, e[66] = ue, e[67] = ie, e[68] = We, e[69] = Ke, e[70] = Oe) : Oe = e[70];
|
|
3049
3056
|
let ve;
|
|
3050
|
-
e[71] !==
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
] }), e[71] =
|
|
3054
|
-
let
|
|
3055
|
-
e[74] !== p || e[75] !== h || e[76] !== R || e[77] !== f ? (
|
|
3056
|
-
let
|
|
3057
|
-
return e[79] !== le || e[80] !== ve || e[81] !==
|
|
3057
|
+
e[71] !== U || e[72] !== Oe ? (ve = /* @__PURE__ */ S("div", { className: "relative", children: [
|
|
3058
|
+
U,
|
|
3059
|
+
Oe
|
|
3060
|
+
] }), e[71] = U, e[72] = Oe, e[73] = ve) : ve = e[73];
|
|
3061
|
+
let Fe;
|
|
3062
|
+
e[74] !== p || e[75] !== h || e[76] !== R || e[77] !== f ? (Fe = (f || h) && /* @__PURE__ */ c("p", { id: R, className: k("text-xs", h ? "text-destructive" : p ? "text-gray-400" : "text-gray-500"), role: h ? "alert" : void 0, children: h || f }), e[74] = p, e[75] = h, e[76] = R, e[77] = f, e[78] = Fe) : Fe = e[78];
|
|
3063
|
+
let rt;
|
|
3064
|
+
return e[79] !== le || e[80] !== ve || e[81] !== Fe || e[82] !== se ? (rt = /* @__PURE__ */ S("div", { className: se, children: [
|
|
3058
3065
|
le,
|
|
3059
3066
|
ve,
|
|
3060
|
-
|
|
3061
|
-
] }), e[79] = le, e[80] = ve, e[81] =
|
|
3067
|
+
Fe
|
|
3068
|
+
] }), e[79] = le, e[80] = ve, e[81] = Fe, e[82] = se, e[83] = rt) : rt = e[83], rt;
|
|
3062
3069
|
}
|
|
3063
3070
|
function Vo(n) {
|
|
3064
3071
|
const [e, t] = n;
|
|
@@ -3329,10 +3336,10 @@ const Zo = L.memo(function(e) {
|
|
|
3329
3336
|
const z = D === void 0 ? "en" : D, F = C === void 0 ? "YYYY-MM-DD" : C, j = E === void 0 ? !1 : E, $ = B === void 0 ? !1 : B, V = R === void 0 ? "end" : R, [O, G] = L.useState(!1), T = s !== void 0 ? s : O, Y = p || G, [H, P] = L.useState(""), [M, A] = L.useState(_);
|
|
3330
3337
|
let q;
|
|
3331
3338
|
e[27] !== l || e[28] !== _ ? (q = l ?? _ ?? /* @__PURE__ */ new Date(), e[27] = l, e[28] = _, e[29] = q) : q = e[29];
|
|
3332
|
-
const [Q,
|
|
3339
|
+
const [Q, J] = L.useState(q), K = l ?? Q;
|
|
3333
3340
|
let re;
|
|
3334
3341
|
e[30] !== b ? (re = (ce) => {
|
|
3335
|
-
b ? b(ce) :
|
|
3342
|
+
b ? b(ce) : J(ce);
|
|
3336
3343
|
}, e[30] = b, e[31] = re) : re = e[31];
|
|
3337
3344
|
const te = re;
|
|
3338
3345
|
let se;
|
|
@@ -3349,35 +3356,35 @@ const Zo = L.memo(function(e) {
|
|
|
3349
3356
|
se = ce;
|
|
3350
3357
|
}
|
|
3351
3358
|
const le = se;
|
|
3352
|
-
let
|
|
3359
|
+
let U;
|
|
3353
3360
|
e: {
|
|
3354
3361
|
if (x) {
|
|
3355
|
-
|
|
3362
|
+
U = x;
|
|
3356
3363
|
break e;
|
|
3357
3364
|
}
|
|
3358
3365
|
if (!$) {
|
|
3359
|
-
|
|
3366
|
+
U = "Click to select date";
|
|
3360
3367
|
break e;
|
|
3361
3368
|
}
|
|
3362
3369
|
let ce;
|
|
3363
|
-
e[33] !== F ? (ce = F.toLowerCase(), e[33] = F, e[34] = ce) : ce = e[34],
|
|
3370
|
+
e[33] !== F ? (ce = F.toLowerCase(), e[33] = F, e[34] = ce) : ce = e[34], U = ce;
|
|
3364
3371
|
}
|
|
3365
|
-
const ue =
|
|
3372
|
+
const ue = U;
|
|
3366
3373
|
let ie;
|
|
3367
3374
|
e[35] !== F || e[36] !== le ? (ie = (ce) => {
|
|
3368
3375
|
const ne = ce.replace(/\D/g, ""), {
|
|
3369
|
-
separator:
|
|
3376
|
+
separator: Ze
|
|
3370
3377
|
} = le;
|
|
3371
3378
|
if (ne.length <= 2)
|
|
3372
3379
|
return ne;
|
|
3373
3380
|
switch (F) {
|
|
3374
3381
|
case "MM/DD/YYYY":
|
|
3375
3382
|
case "DD/MM/YYYY":
|
|
3376
|
-
return ne.length <= 4 ? `${ne.substring(0, 2)}${
|
|
3383
|
+
return ne.length <= 4 ? `${ne.substring(0, 2)}${Ze}${ne.substring(2)}` : `${ne.substring(0, 2)}${Ze}${ne.substring(2, 4)}${Ze}${ne.substring(4, 8)}`;
|
|
3377
3384
|
case "YYYY-MM-DD":
|
|
3378
|
-
return ne.length <= 4 ? ne : ne.length <= 6 ? `${ne.substring(0, 4)}${
|
|
3385
|
+
return ne.length <= 4 ? ne : ne.length <= 6 ? `${ne.substring(0, 4)}${Ze}${ne.substring(4)}` : `${ne.substring(0, 4)}${Ze}${ne.substring(4, 6)}${Ze}${ne.substring(6, 8)}`;
|
|
3379
3386
|
case "DD-MM-YYYY":
|
|
3380
|
-
return ne.length <= 4 ? `${ne.substring(0, 2)}${
|
|
3387
|
+
return ne.length <= 4 ? `${ne.substring(0, 2)}${Ze}${ne.substring(2)}` : `${ne.substring(0, 2)}${Ze}${ne.substring(2, 4)}${Ze}${ne.substring(4, 8)}`;
|
|
3381
3388
|
case "DD MMM YYYY":
|
|
3382
3389
|
return ce;
|
|
3383
3390
|
default:
|
|
@@ -3393,7 +3400,7 @@ const Zo = L.memo(function(e) {
|
|
|
3393
3400
|
const me = oe;
|
|
3394
3401
|
let fe;
|
|
3395
3402
|
e[40] !== F ? (fe = (ce) => Dt(ce).format(F), e[40] = F, e[41] = fe) : fe = e[41];
|
|
3396
|
-
const
|
|
3403
|
+
const Z = fe;
|
|
3397
3404
|
let he;
|
|
3398
3405
|
e[42] === Symbol.for("react.memo_cache_sentinel") ? (he = {
|
|
3399
3406
|
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
@@ -3419,13 +3426,13 @@ const Zo = L.memo(function(e) {
|
|
|
3419
3426
|
day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
|
|
3420
3427
|
day_hidden: "invisible"
|
|
3421
3428
|
}, e[42] = he) : he = e[42];
|
|
3422
|
-
const
|
|
3423
|
-
let ae,
|
|
3424
|
-
e[43] !== l || e[44] !==
|
|
3425
|
-
P(_ ?
|
|
3426
|
-
},
|
|
3427
|
-
let
|
|
3428
|
-
e[49] !== ee || e[50] !== $ || e[51] !== m || e[52] !== f || e[53] !== h || e[54] !== g || e[55] !== me ? (
|
|
3429
|
+
const Be = he;
|
|
3430
|
+
let ae, ke;
|
|
3431
|
+
e[43] !== l || e[44] !== Z || e[45] !== z || e[46] !== _ ? (ae = () => {
|
|
3432
|
+
P(_ ? Z(_) : ""), A(_), _ && !l && J(_), Dt.locale(z);
|
|
3433
|
+
}, ke = [_, z, Z, l], e[43] = l, e[44] = Z, e[45] = z, e[46] = _, e[47] = ae, e[48] = ke) : (ae = e[47], ke = e[48]), L.useEffect(ae, ke);
|
|
3434
|
+
let He;
|
|
3435
|
+
e[49] !== ee || e[50] !== $ || e[51] !== m || e[52] !== f || e[53] !== h || e[54] !== g || e[55] !== me ? (He = (ce) => {
|
|
3429
3436
|
if (!$)
|
|
3430
3437
|
return;
|
|
3431
3438
|
let ne = ce.target.value;
|
|
@@ -3433,32 +3440,32 @@ const Zo = L.memo(function(e) {
|
|
|
3433
3440
|
A(void 0), g == null || g(void 0), h == null || h(void 0);
|
|
3434
3441
|
return;
|
|
3435
3442
|
}
|
|
3436
|
-
const
|
|
3437
|
-
|
|
3438
|
-
const
|
|
3439
|
-
if (
|
|
3440
|
-
const at =
|
|
3443
|
+
const Ze = ee(ne);
|
|
3444
|
+
Ze !== ne && ne.replace(/\D/g, "").length > 1 && (P(Ze), ne = Ze);
|
|
3445
|
+
const st = me(ne);
|
|
3446
|
+
if (st != null && st.isValid()) {
|
|
3447
|
+
const at = st.toDate();
|
|
3441
3448
|
(!f || at >= f) && (!m || at <= m) && (A(at), g == null || g(at), h == null || h(at));
|
|
3442
3449
|
}
|
|
3443
|
-
}, e[49] = ee, e[50] = $, e[51] = m, e[52] = f, e[53] = h, e[54] = g, e[55] = me, e[56] =
|
|
3444
|
-
const
|
|
3445
|
-
let
|
|
3446
|
-
e[57] !==
|
|
3447
|
-
M && P(
|
|
3448
|
-
}, e[57] =
|
|
3449
|
-
const
|
|
3450
|
-
let
|
|
3451
|
-
e[60] !==
|
|
3452
|
-
ce && (P(
|
|
3453
|
-
}, e[60] =
|
|
3454
|
-
const
|
|
3455
|
-
let
|
|
3456
|
-
e[65] !== h || e[66] !== g ? (
|
|
3450
|
+
}, e[49] = ee, e[50] = $, e[51] = m, e[52] = f, e[53] = h, e[54] = g, e[55] = me, e[56] = He) : He = e[56];
|
|
3451
|
+
const Xe = He;
|
|
3452
|
+
let Ee;
|
|
3453
|
+
e[57] !== Z || e[58] !== M ? (Ee = () => {
|
|
3454
|
+
M && P(Z(M));
|
|
3455
|
+
}, e[57] = Z, e[58] = M, e[59] = Ee) : Ee = e[59];
|
|
3456
|
+
const Re = Ee;
|
|
3457
|
+
let Ge;
|
|
3458
|
+
e[60] !== Z || e[61] !== Y || e[62] !== h || e[63] !== g ? (Ge = (ce) => {
|
|
3459
|
+
ce && (P(Z(ce)), A(ce), g == null || g(ce), h == null || h(ce), Y(!1));
|
|
3460
|
+
}, e[60] = Z, e[61] = Y, e[62] = h, e[63] = g, e[64] = Ge) : Ge = e[64];
|
|
3461
|
+
const et = Ge;
|
|
3462
|
+
let We;
|
|
3463
|
+
e[65] !== h || e[66] !== g ? (We = (ce) => {
|
|
3457
3464
|
ce.stopPropagation(), P(""), A(void 0), g == null || g(void 0), h == null || h(void 0);
|
|
3458
|
-
}, e[65] = h, e[66] = g, e[67] =
|
|
3459
|
-
const Se =
|
|
3460
|
-
let
|
|
3461
|
-
e[68] !== le.pattern || e[69] !==
|
|
3465
|
+
}, e[65] = h, e[66] = g, e[67] = We) : We = e[67];
|
|
3466
|
+
const Se = We;
|
|
3467
|
+
let je;
|
|
3468
|
+
e[68] !== le.pattern || e[69] !== Re || e[70] !== Y || e[71] !== $ || e[72] !== T ? (je = (ce) => {
|
|
3462
3469
|
if (!$) {
|
|
3463
3470
|
(ce.key === "Enter" || ce.key === " ") && (ce.preventDefault(), Y(!T));
|
|
3464
3471
|
return;
|
|
@@ -3467,72 +3474,72 @@ const Zo = L.memo(function(e) {
|
|
|
3467
3474
|
ce.preventDefault();
|
|
3468
3475
|
return;
|
|
3469
3476
|
}
|
|
3470
|
-
ce.key === "Enter" && (ce.preventDefault(),
|
|
3471
|
-
}, e[68] = le.pattern, e[69] =
|
|
3472
|
-
const
|
|
3473
|
-
let
|
|
3474
|
-
e[74] !== t ? (
|
|
3477
|
+
ce.key === "Enter" && (ce.preventDefault(), Re());
|
|
3478
|
+
}, e[68] = le.pattern, e[69] = Re, e[70] = Y, e[71] = $, e[72] = T, e[73] = je) : je = e[73];
|
|
3479
|
+
const Ke = je;
|
|
3480
|
+
let Oe;
|
|
3481
|
+
e[74] !== t ? (Oe = k("space-y-1", t), e[74] = t, e[75] = Oe) : Oe = e[75];
|
|
3475
3482
|
let ve;
|
|
3476
3483
|
e[76] !== u || e[77] !== v ? (ve = u && /* @__PURE__ */ S(Zt, { className: "text-sm font-medium text-gray-700", children: [
|
|
3477
3484
|
u,
|
|
3478
3485
|
v && /* @__PURE__ */ c("span", { className: "text-red-500 ml-1", children: "*" })
|
|
3479
3486
|
] }), e[76] = u, e[77] = v, e[78] = ve) : ve = e[78];
|
|
3480
|
-
let
|
|
3481
|
-
e[79] !== d ? (
|
|
3482
|
-
const
|
|
3483
|
-
let
|
|
3484
|
-
e[81] !== o || e[82] !== Y || e[83] !== $ || e[84] !== w ? (
|
|
3487
|
+
let Fe;
|
|
3488
|
+
e[79] !== d ? (Fe = k("w-60 relative", d), e[79] = d, e[80] = Fe) : Fe = e[80];
|
|
3489
|
+
const rt = w || !$;
|
|
3490
|
+
let Pe;
|
|
3491
|
+
e[81] !== o || e[82] !== Y || e[83] !== $ || e[84] !== w ? (Pe = () => {
|
|
3485
3492
|
!$ && !o && !w && Y(!0);
|
|
3486
|
-
}, e[81] = o, e[82] = Y, e[83] = $, e[84] = w, e[85] =
|
|
3487
|
-
const
|
|
3493
|
+
}, e[81] = o, e[82] = Y, e[83] = $, e[84] = w, e[85] = Pe) : Pe = e[85];
|
|
3494
|
+
const W = i && "border border-destructive focus-visible:ring-destructive", X = !$ && "cursor-pointer";
|
|
3495
|
+
let pe;
|
|
3496
|
+
e[86] !== W || e[87] !== X ? (pe = k("w-full pr-12", W, X), e[86] = W, e[87] = X, e[88] = pe) : pe = e[88];
|
|
3488
3497
|
let we;
|
|
3489
|
-
e[
|
|
3490
|
-
let
|
|
3491
|
-
e[
|
|
3492
|
-
let
|
|
3493
|
-
e[
|
|
3494
|
-
let Ze;
|
|
3495
|
-
e[106] === Symbol.for("react.memo_cache_sentinel") ? (Ze = {
|
|
3498
|
+
e[89] !== o || e[90] !== ue || e[91] !== Re || e[92] !== Xe || e[93] !== Ke || e[94] !== H || e[95] !== rt || e[96] !== Pe || e[97] !== pe ? (we = /* @__PURE__ */ c(Vt, { type: "text", value: H, onChange: Xe, onBlur: Re, onKeyDown: Ke, placeholder: ue, disabled: o, readOnly: rt, onClick: Pe, className: pe }), e[89] = o, e[90] = ue, e[91] = Re, e[92] = Xe, e[93] = Ke, e[94] = H, e[95] = rt, e[96] = Pe, e[97] = pe, e[98] = we) : we = e[98];
|
|
3499
|
+
let De;
|
|
3500
|
+
e[99] !== j || e[100] !== o || e[101] !== Se || e[102] !== M || e[103] !== w || e[104] !== _ ? (De = j && (_ ?? M) && !o && !w && /* @__PURE__ */ c("button", { type: "button", onClick: Se, className: "absolute right-10 top-1/2 -translate-y-1/2 p-1 rounded hover:bg-muted focus:outline-none focus:ring-2 focus:ring-ring", "aria-label": "Clear date", children: /* @__PURE__ */ c(Ct, { className: "h-4 w-4 text-muted-foreground" }) }), e[99] = j, e[100] = o, e[101] = Se, e[102] = M, e[103] = w, e[104] = _, e[105] = De) : De = e[105];
|
|
3501
|
+
let Ve;
|
|
3502
|
+
e[106] === Symbol.for("react.memo_cache_sentinel") ? (Ve = {
|
|
3496
3503
|
height: "1.75rem",
|
|
3497
3504
|
width: "1.75rem"
|
|
3498
|
-
}, e[106] =
|
|
3499
|
-
let
|
|
3500
|
-
e[107] !== Y || e[108] !== T ? (
|
|
3501
|
-
const
|
|
3505
|
+
}, e[106] = Ve) : Ve = e[106];
|
|
3506
|
+
let tt;
|
|
3507
|
+
e[107] !== Y || e[108] !== T ? (tt = () => Y(!T), e[107] = Y, e[108] = T, e[109] = tt) : tt = e[109];
|
|
3508
|
+
const ze = o || w;
|
|
3502
3509
|
let ge;
|
|
3503
3510
|
e[110] === Symbol.for("react.memo_cache_sentinel") ? (ge = /* @__PURE__ */ c(Fs, { strokeWidth: 1, className: "h-5 w-5" }), e[110] = ge) : ge = e[110];
|
|
3504
|
-
let
|
|
3505
|
-
e[111] !==
|
|
3506
|
-
let
|
|
3507
|
-
e[114] !==
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
] }), e[114] =
|
|
3512
|
-
let
|
|
3513
|
-
e[119] !== te || e[120] !== z || e[121] !==
|
|
3514
|
-
let
|
|
3515
|
-
e[123] !== r || e[124] !==
|
|
3516
|
-
let
|
|
3517
|
-
e[132] !==
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
] }), e[132] =
|
|
3511
|
+
let Le;
|
|
3512
|
+
e[111] !== tt || e[112] !== ze ? (Le = /* @__PURE__ */ c(Tl, { asChild: !0, children: /* @__PURE__ */ c("button", { type: "button", className: "absolute right-1 top-1/2 -translate-y-1/2 bg-transparent border-0 outline-none text-black hover:text-black", style: Ve, onClick: tt, disabled: ze, "aria-label": "Open calendar", children: ge }) }), e[111] = tt, e[112] = ze, e[113] = Le) : Le = e[113];
|
|
3513
|
+
let qe;
|
|
3514
|
+
e[114] !== Fe || e[115] !== we || e[116] !== De || e[117] !== Le ? (qe = /* @__PURE__ */ S("div", { className: Fe, children: [
|
|
3515
|
+
we,
|
|
3516
|
+
De,
|
|
3517
|
+
Le
|
|
3518
|
+
] }), e[114] = Fe, e[115] = we, e[116] = De, e[117] = Le, e[118] = qe) : qe = e[118];
|
|
3519
|
+
let Ye;
|
|
3520
|
+
e[119] !== te || e[120] !== z || e[121] !== K ? (Ye = /* @__PURE__ */ c(Zo, { month: K, onMonthChange: te, locale: z }), e[119] = te, e[120] = z, e[121] = K, e[122] = Ye) : Ye = e[122];
|
|
3521
|
+
let Te;
|
|
3522
|
+
e[123] !== r || e[124] !== et || e[125] !== te || e[126] !== M || e[127] !== m || e[128] !== f || e[129] !== K || e[130] !== N ? (Te = /* @__PURE__ */ c("div", { className: "p-3", children: /* @__PURE__ */ c(qs, { mode: "single", selected: M, onSelect: et, month: K, onMonthChange: te, fromDate: f, toDate: m, showOutsideDays: N, className: "p-0", classNames: Be, ...r }) }), e[123] = r, e[124] = et, e[125] = te, e[126] = M, e[127] = m, e[128] = f, e[129] = K, e[130] = N, e[131] = Te) : Te = e[131];
|
|
3523
|
+
let Ue;
|
|
3524
|
+
e[132] !== Ye || e[133] !== Te ? (Ue = /* @__PURE__ */ S("div", { className: "bg-white rounded-md border shadow-md", children: [
|
|
3525
|
+
Ye,
|
|
3526
|
+
Te
|
|
3527
|
+
] }), e[132] = Ye, e[133] = Te, e[134] = Ue) : Ue = e[134];
|
|
3521
3528
|
let Ie;
|
|
3522
|
-
e[135] !== V || e[136] !==
|
|
3523
|
-
let
|
|
3524
|
-
e[138] !== Y || e[139] !== T || e[140] !==
|
|
3525
|
-
|
|
3529
|
+
e[135] !== V || e[136] !== Ue ? (Ie = /* @__PURE__ */ c(Ml, { className: "w-auto p-0 mt-2", align: V, children: Ue }), e[135] = V, e[136] = Ue, e[137] = Ie) : Ie = e[137];
|
|
3530
|
+
let Qe;
|
|
3531
|
+
e[138] !== Y || e[139] !== T || e[140] !== qe || e[141] !== Ie ? (Qe = /* @__PURE__ */ S(is, { open: T, onOpenChange: Y, children: [
|
|
3532
|
+
qe,
|
|
3526
3533
|
Ie
|
|
3527
|
-
] }), e[138] = Y, e[139] = T, e[140] =
|
|
3534
|
+
] }), e[138] = Y, e[139] = T, e[140] = qe, e[141] = Ie, e[142] = Qe) : Qe = e[142];
|
|
3528
3535
|
let pt;
|
|
3529
3536
|
e[143] !== i || e[144] !== a ? (pt = (a || i) && /* @__PURE__ */ c("p", { className: k("text-xs", i ? "text-destructive" : "text-gray-500"), children: i || a }), e[143] = i, e[144] = a, e[145] = pt) : pt = e[145];
|
|
3530
|
-
let
|
|
3531
|
-
return e[146] !== y || e[147] !==
|
|
3537
|
+
let lt;
|
|
3538
|
+
return e[146] !== y || e[147] !== Oe || e[148] !== ve || e[149] !== Qe || e[150] !== pt ? (lt = /* @__PURE__ */ S("div", { className: Oe, ...y, children: [
|
|
3532
3539
|
ve,
|
|
3533
|
-
|
|
3540
|
+
Qe,
|
|
3534
3541
|
pt
|
|
3535
|
-
] }), e[146] = y, e[147] =
|
|
3542
|
+
] }), e[146] = y, e[147] = Oe, e[148] = ve, e[149] = Qe, e[150] = pt, e[151] = lt) : lt = e[151], lt;
|
|
3536
3543
|
});
|
|
3537
3544
|
El.displayName = "DatePickerField";
|
|
3538
3545
|
function Jo(n, e) {
|
|
@@ -3584,18 +3591,18 @@ const en = [{
|
|
|
3584
3591
|
dateFrom: x,
|
|
3585
3592
|
dateTo: w
|
|
3586
3593
|
}, e[0] = p, e[1] = g, e[2] = x, e[3] = w, e[4] = v) : v = e[4];
|
|
3587
|
-
const [y, N] =
|
|
3594
|
+
const [y, N] = Ne(v), [D, C] = Ne(!1), [E, B] = Ne(!1);
|
|
3588
3595
|
let R;
|
|
3589
3596
|
e[5] !== y.dateFrom ? (R = y.dateFrom ?? /* @__PURE__ */ new Date(), e[5] = y.dateFrom, e[6] = R) : R = e[6];
|
|
3590
|
-
const [_, z] =
|
|
3597
|
+
const [_, z] = Ne(R);
|
|
3591
3598
|
let F;
|
|
3592
3599
|
e[7] !== y.dateTo ? (F = y.dateTo ?? /* @__PURE__ */ new Date(), e[7] = y.dateTo, e[8] = F) : F = e[8];
|
|
3593
|
-
const [j, $] =
|
|
3600
|
+
const [j, $] = Ne(F);
|
|
3594
3601
|
let V;
|
|
3595
|
-
e[9] !== y || e[10] !== a ? (V = (
|
|
3602
|
+
e[9] !== y || e[10] !== a ? (V = (U, ue) => {
|
|
3596
3603
|
const ie = {
|
|
3597
3604
|
...y,
|
|
3598
|
-
[
|
|
3605
|
+
[U]: ue
|
|
3599
3606
|
};
|
|
3600
3607
|
N(ie), a == null || a(ie);
|
|
3601
3608
|
}, e[9] = y, e[10] = a, e[11] = V) : V = e[11];
|
|
@@ -3613,7 +3620,7 @@ const en = [{
|
|
|
3613
3620
|
let H;
|
|
3614
3621
|
e[14] !== t ? (H = k("space-y-4", t), e[14] = t, e[15] = H) : H = e[15];
|
|
3615
3622
|
let P;
|
|
3616
|
-
e[16] !== i ? (P = (
|
|
3623
|
+
e[16] !== i ? (P = (U) => i == null ? void 0 : i(U.target.value), e[16] = i, e[17] = P) : P = e[17];
|
|
3617
3624
|
let M;
|
|
3618
3625
|
e[18] !== m || e[19] !== P ? (M = /* @__PURE__ */ c(ps, { size: "medium", placeholder: m, onChange: P }), e[18] = m, e[19] = P, e[20] = M) : M = e[20];
|
|
3619
3626
|
let A;
|
|
@@ -3622,20 +3629,20 @@ const en = [{
|
|
|
3622
3629
|
/* @__PURE__ */ c("span", { className: "text-sm font-medium text-gray-700", children: "Filters:" })
|
|
3623
3630
|
] }), e[21] = A) : A = e[21];
|
|
3624
3631
|
let q;
|
|
3625
|
-
e[22] !== O ? (q = (
|
|
3632
|
+
e[22] !== O ? (q = (U) => O("category", U), e[22] = O, e[23] = q) : q = e[23];
|
|
3626
3633
|
let Q;
|
|
3627
3634
|
e[24] !== f || e[25] !== q ? (Q = /* @__PURE__ */ c(Nl, { placeholder: "Category", options: f, onValueChange: q, className: "min-w-[140px]" }), e[24] = f, e[25] = q, e[26] = Q) : Q = e[26];
|
|
3628
|
-
let
|
|
3629
|
-
e[27] !== O ? (
|
|
3630
|
-
let
|
|
3631
|
-
e[29] !== h || e[30] !==
|
|
3635
|
+
let J;
|
|
3636
|
+
e[27] !== O ? (J = (U) => O("sort", U), e[27] = O, e[28] = J) : J = e[28];
|
|
3637
|
+
let K;
|
|
3638
|
+
e[29] !== h || e[30] !== J ? (K = /* @__PURE__ */ c(Nl, { placeholder: "Sort by", options: h, onValueChange: J, className: "min-w-[140px]" }), e[29] = h, e[30] = J, e[31] = K) : K = e[31];
|
|
3632
3639
|
let re;
|
|
3633
3640
|
e[32] !== y.dateFrom || e[33] !== y.dateTo || e[34] !== O || e[35] !== _ || e[36] !== j || e[37] !== D || e[38] !== E || e[39] !== b ? (re = b && /* @__PURE__ */ S(Ut, { children: [
|
|
3634
|
-
/* @__PURE__ */ c(El, { placeholder: "From date", value: y.dateFrom, onSelect: (
|
|
3635
|
-
O("dateFrom",
|
|
3641
|
+
/* @__PURE__ */ c(El, { placeholder: "From date", value: y.dateFrom, onSelect: (U) => {
|
|
3642
|
+
O("dateFrom", U), z(U ?? _);
|
|
3636
3643
|
}, className: "min-w-[140px]", open: D, onOpenChange: C, month: _, onMonthChange: z }),
|
|
3637
|
-
/* @__PURE__ */ c(El, { placeholder: "To date", value: y.dateTo, onSelect: (
|
|
3638
|
-
O("dateTo",
|
|
3644
|
+
/* @__PURE__ */ c(El, { placeholder: "To date", value: y.dateTo, onSelect: (U) => {
|
|
3645
|
+
O("dateTo", U), $(U ?? j);
|
|
3639
3646
|
}, className: "min-w-[140px]", open: E, onOpenChange: B, month: j, onMonthChange: $ })
|
|
3640
3647
|
] }), e[32] = y.dateFrom, e[33] = y.dateTo, e[34] = O, e[35] = _, e[36] = j, e[37] = D, e[38] = E, e[39] = b, e[40] = re) : re = e[40];
|
|
3641
3648
|
let te;
|
|
@@ -3644,13 +3651,13 @@ const en = [{
|
|
|
3644
3651
|
"Clear"
|
|
3645
3652
|
] }), e[41] = T, e[42] = Y, e[43] = te) : te = e[43];
|
|
3646
3653
|
let se;
|
|
3647
|
-
e[44] !== Q || e[45] !==
|
|
3654
|
+
e[44] !== Q || e[45] !== K || e[46] !== re || e[47] !== te ? (se = /* @__PURE__ */ S("div", { className: "flex flex-wrap items-center gap-4", children: [
|
|
3648
3655
|
A,
|
|
3649
3656
|
Q,
|
|
3650
|
-
|
|
3657
|
+
K,
|
|
3651
3658
|
re,
|
|
3652
3659
|
te
|
|
3653
|
-
] }), e[44] = Q, e[45] =
|
|
3660
|
+
] }), e[44] = Q, e[45] = K, e[46] = re, e[47] = te, e[48] = se) : se = e[48];
|
|
3654
3661
|
let le;
|
|
3655
3662
|
return e[49] !== H || e[50] !== M || e[51] !== se ? (le = /* @__PURE__ */ S("div", { className: H, children: [
|
|
3656
3663
|
M,
|
|
@@ -3676,10 +3683,10 @@ function Ka(n) {
|
|
|
3676
3683
|
showDateOfBirth: l,
|
|
3677
3684
|
accountTypes: s,
|
|
3678
3685
|
onValueChange: r
|
|
3679
|
-
} = n, o = l === void 0 ? !0 : l, i = s === void 0 ? sn : s, [a, d] =
|
|
3686
|
+
} = n, o = l === void 0 ? !0 : l, i = s === void 0 ? sn : s, [a, d] = Ne(), [u, m] = Ne(!1), [f, h] = Ne(!1), [b, p] = Ne(!1);
|
|
3680
3687
|
let g;
|
|
3681
3688
|
e[0] !== a ? (g = a ?? /* @__PURE__ */ new Date(), e[0] = a, e[1] = g) : g = e[1];
|
|
3682
|
-
const [x, w] =
|
|
3689
|
+
const [x, w] = Ne(g), [v, y] = Ne(""), [N, D] = Ne("");
|
|
3683
3690
|
let C;
|
|
3684
3691
|
e[2] !== t ? (C = k("space-y-4", t), e[2] = t, e[3] = C) : C = e[3];
|
|
3685
3692
|
let E;
|
|
@@ -3800,8 +3807,8 @@ function Ua(n) {
|
|
|
3800
3807
|
clickableArea: f
|
|
3801
3808
|
} = n, h = s === void 0 ? !1 : s, b = u === void 0 ? 200 : u, p = m === void 0 ? !1 : m, g = f === void 0 ? "full" : f, [x, w] = L.useState(h), v = r !== void 0 ? r : x;
|
|
3802
3809
|
let y;
|
|
3803
|
-
e[0] !== r || e[1] !== o ? (y = (
|
|
3804
|
-
r === void 0 && w(
|
|
3810
|
+
e[0] !== r || e[1] !== o ? (y = (Z) => {
|
|
3811
|
+
r === void 0 && w(Z), o == null || o(Z);
|
|
3805
3812
|
}, e[0] = r, e[1] = o, e[2] = y) : y = e[2];
|
|
3806
3813
|
const N = y;
|
|
3807
3814
|
let D;
|
|
@@ -3815,8 +3822,8 @@ function Ua(n) {
|
|
|
3815
3822
|
}, e[7] = g, e[8] = C, e[9] = E) : E = e[9];
|
|
3816
3823
|
const B = E, R = nn;
|
|
3817
3824
|
let _;
|
|
3818
|
-
e[10] !== C ? (_ = (
|
|
3819
|
-
(
|
|
3825
|
+
e[10] !== C ? (_ = (Z) => {
|
|
3826
|
+
(Z.key === "Enter" || Z.key === " ") && (Z.preventDefault(), C());
|
|
3820
3827
|
}, e[10] = C, e[11] = _) : _ = e[11];
|
|
3821
3828
|
const z = _, F = on, j = p && "opacity-50 cursor-not-allowed";
|
|
3822
3829
|
let $;
|
|
@@ -3849,15 +3856,15 @@ function Ua(n) {
|
|
|
3849
3856
|
let q;
|
|
3850
3857
|
e[34] !== p || e[35] !== H || e[36] !== M || e[37] !== A ? (q = /* @__PURE__ */ c("button", { type: "button", onClick: R, onKeyDown: F, disabled: p, className: H, style: M, "aria-label": A }), e[34] = p, e[35] = H, e[36] = M, e[37] = A, e[38] = q) : q = e[38];
|
|
3851
3858
|
const Q = v && "rotate-180";
|
|
3852
|
-
let
|
|
3853
|
-
e[39] !== Q ? (
|
|
3854
|
-
const
|
|
3859
|
+
let J;
|
|
3860
|
+
e[39] !== Q ? (J = k("h-5 w-5 transition-transform", Q), e[39] = Q, e[40] = J) : J = e[40];
|
|
3861
|
+
const K = `${b}ms`;
|
|
3855
3862
|
let re;
|
|
3856
|
-
e[41] !==
|
|
3857
|
-
transitionDuration:
|
|
3858
|
-
}, e[41] =
|
|
3863
|
+
e[41] !== K ? (re = {
|
|
3864
|
+
transitionDuration: K
|
|
3865
|
+
}, e[41] = K, e[42] = re) : re = e[42];
|
|
3859
3866
|
let te;
|
|
3860
|
-
e[43] !==
|
|
3867
|
+
e[43] !== J || e[44] !== re ? (te = /* @__PURE__ */ c(bt, { className: J, style: re }), e[43] = J, e[44] = re, e[45] = te) : te = e[45];
|
|
3861
3868
|
let se;
|
|
3862
3869
|
e[46] !== q || e[47] !== te ? (se = /* @__PURE__ */ c(mt.Trigger, { render: q, children: te }), e[46] = q, e[47] = te, e[48] = se) : se = e[48];
|
|
3863
3870
|
let le;
|
|
@@ -3865,11 +3872,11 @@ function Ua(n) {
|
|
|
3865
3872
|
T,
|
|
3866
3873
|
se
|
|
3867
3874
|
] }), e[49] = O, e[50] = G, e[51] = T, e[52] = se, e[53] = le) : le = e[53];
|
|
3868
|
-
const
|
|
3875
|
+
const U = `${b}ms`;
|
|
3869
3876
|
let ue;
|
|
3870
|
-
e[54] !==
|
|
3871
|
-
"--collapsible-duration":
|
|
3872
|
-
}, e[54] =
|
|
3877
|
+
e[54] !== U ? (ue = {
|
|
3878
|
+
"--collapsible-duration": U
|
|
3879
|
+
}, e[54] = U, e[55] = ue) : ue = e[55];
|
|
3873
3880
|
const ie = ue;
|
|
3874
3881
|
let ee;
|
|
3875
3882
|
e[56] !== l || e[57] !== (d == null ? void 0 : d.align) || e[58] !== (d == null ? void 0 : d.className) || e[59] !== (d == null ? void 0 : d.color) || e[60] !== (d == null ? void 0 : d.variant) || e[61] !== (d == null ? void 0 : d.weight) ? (ee = L.isValidElement(l) ? l : /* @__PURE__ */ c($e, { variant: (d == null ? void 0 : d.variant) ?? "body2", weight: (d == null ? void 0 : d.weight) ?? "regular", align: d == null ? void 0 : d.align, color: d == null ? void 0 : d.color, className: k("text-muted-foreground", d == null ? void 0 : d.className), children: l }), e[56] = l, e[57] = d == null ? void 0 : d.align, e[58] = d == null ? void 0 : d.className, e[59] = d == null ? void 0 : d.color, e[60] = d == null ? void 0 : d.variant, e[61] = d == null ? void 0 : d.weight, e[62] = ee) : ee = e[62];
|
|
@@ -4011,10 +4018,10 @@ const an = L.memo(function(e) {
|
|
|
4011
4018
|
iconColor: m,
|
|
4012
4019
|
...C
|
|
4013
4020
|
} = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s, e[4] = r, e[5] = o, e[6] = i, e[7] = a, e[8] = d, e[9] = u, e[10] = m, e[11] = f, e[12] = h, e[13] = b, e[14] = p, e[15] = g, e[16] = x, e[17] = w, e[18] = v, e[19] = y, e[20] = N, e[21] = D, e[22] = C, e[23] = E, e[24] = B, e[25] = R, e[26] = _, e[27] = z, e[28] = F, e[29] = j, e[30] = $) : (t = e[1], l = e[2], s = e[3], r = e[4], o = e[5], i = e[6], a = e[7], d = e[8], u = e[9], m = e[10], f = e[11], h = e[12], b = e[13], p = e[14], g = e[15], x = e[16], w = e[17], v = e[18], y = e[19], N = e[20], D = e[21], C = e[22], E = e[23], B = e[24], R = e[25], _ = e[26], z = e[27], F = e[28], j = e[29], $ = e[30]);
|
|
4014
|
-
const V = B === void 0 ? "en" : B, O = R === void 0 ? "YYYY-MM-DD" : R, G = _ === void 0 ? !1 : _, T = z === void 0 ? !1 : z, Y = F === void 0 ? "end" : F, H = j === void 0 ? "right" : j, [P, M] = L.useState(!1), A = s !== void 0 ? s : P, q = w || M, [Q,
|
|
4021
|
+
const V = B === void 0 ? "en" : B, O = R === void 0 ? "YYYY-MM-DD" : R, G = _ === void 0 ? !1 : _, T = z === void 0 ? !1 : z, Y = F === void 0 ? "end" : F, H = j === void 0 ? "right" : j, [P, M] = L.useState(!1), A = s !== void 0 ? s : P, q = w || M, [Q, J] = L.useState(""), [K, re] = L.useState($);
|
|
4015
4022
|
let te;
|
|
4016
4023
|
e[31] !== l || e[32] !== ($ == null ? void 0 : $.from) ? (te = l ?? ($ == null ? void 0 : $.from) ?? /* @__PURE__ */ new Date(), e[31] = l, e[32] = $ == null ? void 0 : $.from, e[33] = te) : te = e[33];
|
|
4017
|
-
const [se, le] = L.useState(te),
|
|
4024
|
+
const [se, le] = L.useState(te), U = l ?? se;
|
|
4018
4025
|
let ue;
|
|
4019
4026
|
e[34] !== x ? (ue = (de) => {
|
|
4020
4027
|
x ? x(de) : le(de);
|
|
@@ -4039,39 +4046,39 @@ const an = L.memo(function(e) {
|
|
|
4039
4046
|
let me;
|
|
4040
4047
|
e[40] !== O || e[41] !== V ? (me = (de) => Dt(de).locale(V).format(O), e[40] = O, e[41] = V, e[42] = me) : me = e[42];
|
|
4041
4048
|
const fe = me;
|
|
4042
|
-
let
|
|
4043
|
-
e[43] !== fe ? (
|
|
4044
|
-
const he =
|
|
4045
|
-
let
|
|
4046
|
-
e[45] !== O || e[46] !== V ? (
|
|
4049
|
+
let Z;
|
|
4050
|
+
e[43] !== fe ? (Z = (de) => de != null && de.from ? de.from && de.to ? `${fe(de.from)} - ${fe(de.to)}` : fe(de.from) : "", e[43] = fe, e[44] = Z) : Z = e[44];
|
|
4051
|
+
const he = Z;
|
|
4052
|
+
let Be;
|
|
4053
|
+
e[45] !== O || e[46] !== V ? (Be = (de) => {
|
|
4047
4054
|
const be = de.trim();
|
|
4048
4055
|
if (!be)
|
|
4049
4056
|
return null;
|
|
4050
|
-
const
|
|
4051
|
-
return
|
|
4052
|
-
}, e[45] = O, e[46] = V, e[47] =
|
|
4053
|
-
const ae =
|
|
4054
|
-
let
|
|
4055
|
-
e[48] !== ae ? (
|
|
4057
|
+
const Ae = Dt(be, O, !0).locale(V);
|
|
4058
|
+
return Ae.isValid() ? Ae : null;
|
|
4059
|
+
}, e[45] = O, e[46] = V, e[47] = Be) : Be = e[47];
|
|
4060
|
+
const ae = Be;
|
|
4061
|
+
let ke;
|
|
4062
|
+
e[48] !== ae ? (ke = (de) => {
|
|
4056
4063
|
const be = de.trim();
|
|
4057
4064
|
if (!be)
|
|
4058
4065
|
return null;
|
|
4059
|
-
const
|
|
4060
|
-
if (
|
|
4061
|
-
const xe = ae(
|
|
4066
|
+
const Ae = be.split(/\s+-\s+/);
|
|
4067
|
+
if (Ae.length === 1) {
|
|
4068
|
+
const xe = ae(Ae[0]);
|
|
4062
4069
|
return xe != null && xe.isValid() ? {
|
|
4063
4070
|
from: xe.toDate()
|
|
4064
4071
|
} : null;
|
|
4065
4072
|
}
|
|
4066
|
-
if (
|
|
4067
|
-
const xe = ae(
|
|
4073
|
+
if (Ae.length === 2) {
|
|
4074
|
+
const xe = ae(Ae[0]), dt = ae(Ae[1]);
|
|
4068
4075
|
if (xe != null && xe.isValid() && (dt != null && dt.isValid())) {
|
|
4069
|
-
const
|
|
4070
|
-
return
|
|
4076
|
+
const nt = xe.toDate(), kt = dt.toDate();
|
|
4077
|
+
return nt > kt ? {
|
|
4071
4078
|
from: kt,
|
|
4072
|
-
to:
|
|
4079
|
+
to: nt
|
|
4073
4080
|
} : {
|
|
4074
|
-
from:
|
|
4081
|
+
from: nt,
|
|
4075
4082
|
to: kt
|
|
4076
4083
|
};
|
|
4077
4084
|
}
|
|
@@ -4081,10 +4088,10 @@ const an = L.memo(function(e) {
|
|
|
4081
4088
|
};
|
|
4082
4089
|
}
|
|
4083
4090
|
return null;
|
|
4084
|
-
}, e[48] = ae, e[49] =
|
|
4085
|
-
const
|
|
4086
|
-
let
|
|
4087
|
-
e[50] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
4091
|
+
}, e[48] = ae, e[49] = ke) : ke = e[49];
|
|
4092
|
+
const He = ke, Xe = fn;
|
|
4093
|
+
let Ee;
|
|
4094
|
+
e[50] === Symbol.for("react.memo_cache_sentinel") ? (Ee = {
|
|
4088
4095
|
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
4089
4096
|
month: "space-y-4",
|
|
4090
4097
|
caption: "hidden",
|
|
@@ -4110,58 +4117,58 @@ const an = L.memo(function(e) {
|
|
|
4110
4117
|
day_range_middle: "!bg-muted !text-foreground rounded-none [&>button]:!rounded-none",
|
|
4111
4118
|
range_middle: "!bg-muted !text-foreground rounded-none [&>button]:!rounded-none",
|
|
4112
4119
|
day_hidden: "invisible"
|
|
4113
|
-
}, e[50] =
|
|
4114
|
-
const
|
|
4115
|
-
let
|
|
4116
|
-
e[51] !== l || e[52] !== he || e[53] !== $ ? (
|
|
4117
|
-
|
|
4118
|
-
},
|
|
4119
|
-
let
|
|
4120
|
-
e[56] !== T || e[57] !== b || e[58] !== p || e[59] !== g || e[60] !== v || e[61] !==
|
|
4120
|
+
}, e[50] = Ee) : Ee = e[50];
|
|
4121
|
+
const Re = Ee;
|
|
4122
|
+
let Ge, et;
|
|
4123
|
+
e[51] !== l || e[52] !== he || e[53] !== $ ? (Ge = () => {
|
|
4124
|
+
J(he($)), re($), $ != null && $.from && !l && le($.from);
|
|
4125
|
+
}, et = [$, he, l], e[51] = l, e[52] = he, e[53] = $, e[54] = Ge, e[55] = et) : (Ge = e[54], et = e[55]), L.useEffect(Ge, et);
|
|
4126
|
+
let We;
|
|
4127
|
+
e[56] !== T || e[57] !== b || e[58] !== p || e[59] !== g || e[60] !== v || e[61] !== He ? (We = (de) => {
|
|
4121
4128
|
if (!T)
|
|
4122
4129
|
return;
|
|
4123
4130
|
let be = de.target.value;
|
|
4124
|
-
if (
|
|
4131
|
+
if (J(be), !be.trim()) {
|
|
4125
4132
|
re(void 0), v == null || v(void 0), g == null || g(void 0);
|
|
4126
4133
|
return;
|
|
4127
4134
|
}
|
|
4128
|
-
const
|
|
4129
|
-
|
|
4130
|
-
const xe =
|
|
4135
|
+
const Ae = Xe(be);
|
|
4136
|
+
Ae !== be && (J(Ae), be = Ae);
|
|
4137
|
+
const xe = He(be);
|
|
4131
4138
|
xe && (!p || !xe.from || xe.from >= p) && (!b || !xe.from || xe.from <= b) && (!xe.to || !p || xe.to >= p) && (!xe.to || !b || xe.to <= b) && (re(xe), v == null || v(xe), g == null || g(xe));
|
|
4132
|
-
}, e[56] = T, e[57] = b, e[58] = p, e[59] = g, e[60] = v, e[61] =
|
|
4133
|
-
const Se =
|
|
4134
|
-
let
|
|
4135
|
-
e[63] !== he || e[64] !== Q || e[65] !==
|
|
4139
|
+
}, e[56] = T, e[57] = b, e[58] = p, e[59] = g, e[60] = v, e[61] = He, e[62] = We) : We = e[62];
|
|
4140
|
+
const Se = We;
|
|
4141
|
+
let je;
|
|
4142
|
+
e[63] !== he || e[64] !== Q || e[65] !== K || e[66] !== b || e[67] !== p || e[68] !== g || e[69] !== v || e[70] !== He ? (je = () => {
|
|
4136
4143
|
const de = Q.trim();
|
|
4137
4144
|
if (!de) {
|
|
4138
4145
|
re(void 0), v == null || v(void 0), g == null || g(void 0);
|
|
4139
4146
|
return;
|
|
4140
4147
|
}
|
|
4141
|
-
const be =
|
|
4142
|
-
be && (!p || !be.from || be.from >= p) && (!b || !be.from || be.from <= b) && (!be.to || !p || be.to >= p) && (!be.to || !b || be.to <= b) ? (re(be),
|
|
4143
|
-
}, e[63] = he, e[64] = Q, e[65] =
|
|
4144
|
-
const
|
|
4145
|
-
let
|
|
4146
|
-
e[72] !== he || e[73] !== g || e[74] !== v ? (
|
|
4147
|
-
|
|
4148
|
-
}, e[72] = he, e[73] = g, e[74] = v, e[75] =
|
|
4149
|
-
const ve =
|
|
4150
|
-
let
|
|
4151
|
-
e[76] !== g || e[77] !== v ? (
|
|
4152
|
-
de.stopPropagation(),
|
|
4153
|
-
}, e[76] = g, e[77] = v, e[78] =
|
|
4154
|
-
const
|
|
4155
|
-
let
|
|
4156
|
-
e[79] !==
|
|
4148
|
+
const be = He(de);
|
|
4149
|
+
be && (!p || !be.from || be.from >= p) && (!b || !be.from || be.from <= b) && (!be.to || !p || be.to >= p) && (!be.to || !b || be.to <= b) ? (re(be), J(he(be)), v == null || v(be), g == null || g(be)) : K ? J(he(K)) : (J(""), re(void 0), v == null || v(void 0), g == null || g(void 0));
|
|
4150
|
+
}, e[63] = he, e[64] = Q, e[65] = K, e[66] = b, e[67] = p, e[68] = g, e[69] = v, e[70] = He, e[71] = je) : je = e[71];
|
|
4151
|
+
const Ke = je;
|
|
4152
|
+
let Oe;
|
|
4153
|
+
e[72] !== he || e[73] !== g || e[74] !== v ? (Oe = (de) => {
|
|
4154
|
+
J(he(de)), re(de), v == null || v(de), g == null || g(de);
|
|
4155
|
+
}, e[72] = he, e[73] = g, e[74] = v, e[75] = Oe) : Oe = e[75];
|
|
4156
|
+
const ve = Oe;
|
|
4157
|
+
let Fe;
|
|
4158
|
+
e[76] !== g || e[77] !== v ? (Fe = (de) => {
|
|
4159
|
+
de.stopPropagation(), J(""), re(void 0), v == null || v(void 0), g == null || g(void 0);
|
|
4160
|
+
}, e[76] = g, e[77] = v, e[78] = Fe) : Fe = e[78];
|
|
4161
|
+
const rt = Fe;
|
|
4162
|
+
let Pe;
|
|
4163
|
+
e[79] !== Ke || e[80] !== q || e[81] !== T || e[82] !== A ? (Pe = (de) => {
|
|
4157
4164
|
if (!T) {
|
|
4158
4165
|
(de.key === "Enter" || de.key === " ") && (de.preventDefault(), q(!A));
|
|
4159
4166
|
return;
|
|
4160
4167
|
}
|
|
4161
|
-
de.key === "Enter" && (de.preventDefault(),
|
|
4162
|
-
}, e[79] =
|
|
4163
|
-
const
|
|
4164
|
-
let
|
|
4168
|
+
de.key === "Enter" && (de.preventDefault(), Ke());
|
|
4169
|
+
}, e[79] = Ke, e[80] = q, e[81] = T, e[82] = A, e[83] = Pe) : Pe = e[83];
|
|
4170
|
+
const W = Pe;
|
|
4171
|
+
let X;
|
|
4165
4172
|
e: {
|
|
4166
4173
|
if (d) {
|
|
4167
4174
|
if (L.isValidElement(d)) {
|
|
@@ -4189,54 +4196,54 @@ const an = L.memo(function(e) {
|
|
|
4189
4196
|
}, e[98] = $t, e[99] = At, e[100] = _t) : _t = e[100], qt = L.cloneElement(ut, _t), e[84] = u, e[85] = m, e[86] = ut, e[87] = qt;
|
|
4190
4197
|
} else
|
|
4191
4198
|
qt = e[87];
|
|
4192
|
-
|
|
4199
|
+
X = qt;
|
|
4193
4200
|
break e;
|
|
4194
4201
|
}
|
|
4195
4202
|
let dt;
|
|
4196
4203
|
e[101] !== u ? (dt = k("h-5 w-5 inline-flex items-center justify-center", u), e[101] = u, e[102] = dt) : dt = e[102];
|
|
4197
|
-
let
|
|
4198
|
-
e[103] !== m ? (
|
|
4204
|
+
let nt;
|
|
4205
|
+
e[103] !== m ? (nt = m ? {
|
|
4199
4206
|
color: m
|
|
4200
|
-
} : void 0, e[103] = m, e[104] =
|
|
4207
|
+
} : void 0, e[103] = m, e[104] = nt) : nt = e[104];
|
|
4201
4208
|
let kt;
|
|
4202
|
-
e[105] !== d || e[106] !== dt || e[107] !==
|
|
4209
|
+
e[105] !== d || e[106] !== dt || e[107] !== nt ? (kt = /* @__PURE__ */ c("span", { className: dt, style: nt, children: d }), e[105] = d, e[106] = dt, e[107] = nt, e[108] = kt) : kt = e[108], X = kt;
|
|
4203
4210
|
break e;
|
|
4204
4211
|
}
|
|
4205
4212
|
const de = o && "opacity-50";
|
|
4206
4213
|
let be;
|
|
4207
4214
|
e[109] !== u || e[110] !== de ? (be = k("h-5 w-5", u, de), e[109] = u, e[110] = de, e[111] = be) : be = e[111];
|
|
4208
|
-
let
|
|
4209
|
-
e[112] !== m ? (
|
|
4215
|
+
let Ae;
|
|
4216
|
+
e[112] !== m ? (Ae = m ? {
|
|
4210
4217
|
color: m
|
|
4211
|
-
} : void 0, e[112] = m, e[113] =
|
|
4218
|
+
} : void 0, e[112] = m, e[113] = Ae) : Ae = e[113];
|
|
4212
4219
|
let xe;
|
|
4213
|
-
e[114] !== be || e[115] !==
|
|
4220
|
+
e[114] !== be || e[115] !== Ae ? (xe = /* @__PURE__ */ c(Fs, { strokeWidth: 1, className: be, style: Ae }), e[114] = be, e[115] = Ae, e[116] = xe) : xe = e[116], X = xe;
|
|
4214
4221
|
}
|
|
4215
|
-
const
|
|
4216
|
-
let
|
|
4217
|
-
e[117] !== t ? (
|
|
4218
|
-
let
|
|
4219
|
-
e[119] !== h || e[120] !== D ? (
|
|
4222
|
+
const pe = X;
|
|
4223
|
+
let we;
|
|
4224
|
+
e[117] !== t ? (we = k("space-y-1", t), e[117] = t, e[118] = we) : we = e[118];
|
|
4225
|
+
let De;
|
|
4226
|
+
e[119] !== h || e[120] !== D ? (De = h && /* @__PURE__ */ S(Zt, { className: "text-sm font-medium text-gray-700", children: [
|
|
4220
4227
|
h,
|
|
4221
4228
|
D && /* @__PURE__ */ c("span", { className: "text-red-500 ml-1", children: "*" })
|
|
4222
|
-
] }), e[119] = h, e[120] = D, e[121] =
|
|
4223
|
-
let
|
|
4224
|
-
e[122] !== f ? (
|
|
4225
|
-
const
|
|
4226
|
-
let
|
|
4227
|
-
e[124] !== o || e[125] !== q || e[126] !== T || e[127] !== A || e[128] !== N ? (
|
|
4229
|
+
] }), e[119] = h, e[120] = D, e[121] = De) : De = e[121];
|
|
4230
|
+
let Ve;
|
|
4231
|
+
e[122] !== f ? (Ve = k("w-80 relative", f), e[122] = f, e[123] = Ve) : Ve = e[123];
|
|
4232
|
+
const tt = N || !T;
|
|
4233
|
+
let ze;
|
|
4234
|
+
e[124] !== o || e[125] !== q || e[126] !== T || e[127] !== A || e[128] !== N ? (ze = () => {
|
|
4228
4235
|
!T && !o && !N && q(!A);
|
|
4229
|
-
}, e[124] = o, e[125] = q, e[126] = T, e[127] = A, e[128] = N, e[129] =
|
|
4230
|
-
const ge = H === "left" && "pl-12",
|
|
4231
|
-
let
|
|
4232
|
-
e[130] !== ge || e[131] !==
|
|
4236
|
+
}, e[124] = o, e[125] = q, e[126] = T, e[127] = A, e[128] = N, e[129] = ze) : ze = e[129];
|
|
4237
|
+
const ge = H === "left" && "pl-12", Le = H === "right" && (G && K ? "pr-20" : "pr-12"), qe = H === "left" && G && K && "pr-10", Ye = i && "border border-destructive focus-visible:ring-destructive", Te = !T && "cursor-pointer";
|
|
4238
|
+
let Ue;
|
|
4239
|
+
e[130] !== ge || e[131] !== Le || e[132] !== qe || e[133] !== Ye || e[134] !== Te ? (Ue = k("w-full", ge, Le, qe, Ye, Te), e[130] = ge, e[131] = Le, e[132] = qe, e[133] = Ye, e[134] = Te, e[135] = Ue) : Ue = e[135];
|
|
4233
4240
|
let Ie;
|
|
4234
|
-
e[136] !== o || e[137] !== oe || e[138] !==
|
|
4235
|
-
let
|
|
4236
|
-
e[146] !== G || e[147] !== o || e[148] !==
|
|
4241
|
+
e[136] !== o || e[137] !== oe || e[138] !== Ke || e[139] !== Se || e[140] !== W || e[141] !== Q || e[142] !== tt || e[143] !== ze || e[144] !== Ue ? (Ie = /* @__PURE__ */ c(Vt, { type: "text", value: Q, onChange: Se, onBlur: Ke, onKeyDown: W, placeholder: oe, disabled: o, readOnly: tt, onClick: ze, className: Ue }), e[136] = o, e[137] = oe, e[138] = Ke, e[139] = Se, e[140] = W, e[141] = Q, e[142] = tt, e[143] = ze, e[144] = Ue, e[145] = Ie) : Ie = e[145];
|
|
4242
|
+
let Qe;
|
|
4243
|
+
e[146] !== G || e[147] !== o || e[148] !== rt || e[149] !== H || e[150] !== K || e[151] !== N ? (Qe = G && K && !o && !N && /* @__PURE__ */ c("button", { type: "button", onClick: rt, className: k("absolute top-1/2 -translate-y-1/2 p-1 rounded hover:bg-muted focus:outline-none focus:ring-2 focus:ring-ring", H === "left" ? "right-1" : "right-10"), "aria-label": "Clear date range", children: /* @__PURE__ */ c(Ct, { className: "h-4 w-4 text-muted-foreground" }) }), e[146] = G, e[147] = o, e[148] = rt, e[149] = H, e[150] = K, e[151] = N, e[152] = Qe) : Qe = e[152];
|
|
4237
4244
|
const pt = H === "left" ? "left-1" : "right-1";
|
|
4238
|
-
let
|
|
4239
|
-
e[153] !== pt ? (
|
|
4245
|
+
let lt;
|
|
4246
|
+
e[153] !== pt ? (lt = k("absolute top-1/2 -translate-y-1/2 bg-transparent border-0 outline-none text-black hover:text-black", pt), e[153] = pt, e[154] = lt) : lt = e[154];
|
|
4240
4247
|
let ce;
|
|
4241
4248
|
e[155] === Symbol.for("react.memo_cache_sentinel") ? (ce = {
|
|
4242
4249
|
height: "1.75rem",
|
|
@@ -4244,26 +4251,26 @@ const an = L.memo(function(e) {
|
|
|
4244
4251
|
}, e[155] = ce) : ce = e[155];
|
|
4245
4252
|
let ne;
|
|
4246
4253
|
e[156] !== q || e[157] !== A ? (ne = () => q(!A), e[156] = q, e[157] = A, e[158] = ne) : ne = e[158];
|
|
4247
|
-
const
|
|
4248
|
-
let
|
|
4249
|
-
e[159] !==
|
|
4254
|
+
const Ze = o || N;
|
|
4255
|
+
let st;
|
|
4256
|
+
e[159] !== pe || e[160] !== lt || e[161] !== ne || e[162] !== Ze ? (st = /* @__PURE__ */ c(Tl, { asChild: !0, children: /* @__PURE__ */ c("button", { type: "button", className: lt, style: ce, onClick: ne, disabled: Ze, "aria-label": "Open calendar", children: pe }) }), e[159] = pe, e[160] = lt, e[161] = ne, e[162] = Ze, e[163] = st) : st = e[163];
|
|
4250
4257
|
let at;
|
|
4251
|
-
e[164] !==
|
|
4258
|
+
e[164] !== Ve || e[165] !== Ie || e[166] !== Qe || e[167] !== st ? (at = /* @__PURE__ */ S("div", { className: Ve, children: [
|
|
4252
4259
|
Ie,
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
] }), e[164] =
|
|
4260
|
+
Qe,
|
|
4261
|
+
st
|
|
4262
|
+
] }), e[164] = Ve, e[165] = Ie, e[166] = Qe, e[167] = st, e[168] = at) : at = e[168];
|
|
4256
4263
|
let St;
|
|
4257
|
-
e[169] !== ie || e[170] !== V || e[171] !==
|
|
4264
|
+
e[169] !== ie || e[170] !== V || e[171] !== U ? (St = /* @__PURE__ */ c(an, { month: U, onMonthChange: ie, locale: V }), e[169] = ie, e[170] = V, e[171] = U, e[172] = St) : St = e[172];
|
|
4258
4265
|
let Mt;
|
|
4259
|
-
e[173] !== r || e[174] !== ve || e[175] !== ie || e[176] !==
|
|
4260
|
-
let
|
|
4261
|
-
e[182] !== St || e[183] !== Mt ? (
|
|
4266
|
+
e[173] !== r || e[174] !== ve || e[175] !== ie || e[176] !== K || e[177] !== b || e[178] !== p || e[179] !== U || e[180] !== E ? (Mt = /* @__PURE__ */ c("div", { className: "p-3", children: /* @__PURE__ */ c(qs, { mode: "range", selected: K, onSelect: ve, month: U, onMonthChange: ie, fromDate: p, toDate: b, showOutsideDays: E, className: "p-0", classNames: Re, ...r }) }), e[173] = r, e[174] = ve, e[175] = ie, e[176] = K, e[177] = b, e[178] = p, e[179] = U, e[180] = E, e[181] = Mt) : Mt = e[181];
|
|
4267
|
+
let ot;
|
|
4268
|
+
e[182] !== St || e[183] !== Mt ? (ot = /* @__PURE__ */ S("div", { className: "bg-white rounded-md border shadow-md", children: [
|
|
4262
4269
|
St,
|
|
4263
4270
|
Mt
|
|
4264
|
-
] }), e[182] = St, e[183] = Mt, e[184] =
|
|
4271
|
+
] }), e[182] = St, e[183] = Mt, e[184] = ot) : ot = e[184];
|
|
4265
4272
|
let Pt;
|
|
4266
|
-
e[185] !== Y || e[186] !==
|
|
4273
|
+
e[185] !== Y || e[186] !== ot ? (Pt = /* @__PURE__ */ c(Ml, { className: "w-auto p-0 mt-2", align: Y, children: ot }), e[185] = Y, e[186] = ot, e[187] = Pt) : Pt = e[187];
|
|
4267
4274
|
let Nt;
|
|
4268
4275
|
e[188] !== q || e[189] !== A || e[190] !== at || e[191] !== Pt ? (Nt = /* @__PURE__ */ S(is, { open: A, onOpenChange: q, children: [
|
|
4269
4276
|
at,
|
|
@@ -4272,11 +4279,11 @@ const an = L.memo(function(e) {
|
|
|
4272
4279
|
let zt;
|
|
4273
4280
|
e[193] !== i || e[194] !== a ? (zt = (a || i) && /* @__PURE__ */ c("p", { className: k("text-xs", i ? "text-destructive" : "text-gray-500"), children: i || a }), e[193] = i, e[194] = a, e[195] = zt) : zt = e[195];
|
|
4274
4281
|
let wt;
|
|
4275
|
-
return e[196] !== C || e[197] !==
|
|
4276
|
-
|
|
4282
|
+
return e[196] !== C || e[197] !== we || e[198] !== De || e[199] !== Nt || e[200] !== zt ? (wt = /* @__PURE__ */ S("div", { className: we, ...C, children: [
|
|
4283
|
+
De,
|
|
4277
4284
|
Nt,
|
|
4278
4285
|
zt
|
|
4279
|
-
] }), e[196] = C, e[197] =
|
|
4286
|
+
] }), e[196] = C, e[197] = we, e[198] = De, e[199] = Nt, e[200] = zt, e[201] = wt) : wt = e[201], wt;
|
|
4280
4287
|
});
|
|
4281
4288
|
cn.displayName = "DateRangePickerField";
|
|
4282
4289
|
function dn(n, e) {
|
|
@@ -4372,7 +4379,7 @@ const Za = ({
|
|
|
4372
4379
|
const {
|
|
4373
4380
|
variantClasses: u,
|
|
4374
4381
|
combined: m
|
|
4375
|
-
} = hn(a, d), f = ht(null), [h, b] =
|
|
4382
|
+
} = hn(a, d), f = ht(null), [h, b] = Ne(!1), [p, g] = Ne(l), [x, w] = Ne((l == null ? void 0 : l.label) || ""), v = Me((D) => {
|
|
4376
4383
|
const C = f.current;
|
|
4377
4384
|
if (C) {
|
|
4378
4385
|
if (h || b(!0), D.key === "Enter" && C.value !== "") {
|
|
@@ -4381,9 +4388,9 @@ const Za = ({
|
|
|
4381
4388
|
}
|
|
4382
4389
|
D.key === "Escape" && C.blur();
|
|
4383
4390
|
}
|
|
4384
|
-
}, [h, n, s]), y =
|
|
4391
|
+
}, [h, n, s]), y = Me(() => {
|
|
4385
4392
|
b(!1), w((p == null ? void 0 : p.label) || "");
|
|
4386
|
-
}, [p]), N =
|
|
4393
|
+
}, [p]), N = Me((D) => {
|
|
4387
4394
|
w(D.label), g(D), s == null || s(D), setTimeout(() => {
|
|
4388
4395
|
var C;
|
|
4389
4396
|
(C = f == null ? void 0 : f.current) == null || C.blur();
|
|
@@ -4726,7 +4733,7 @@ const Fn = L.forwardRef((n, e) => {
|
|
|
4726
4733
|
return t[5] !== s || t[6] !== e || t[7] !== r ? (o = /* @__PURE__ */ c(Tt.Description, { ref: e, className: r, ...s }), t[5] = s, t[6] = e, t[7] = r, t[8] = o) : o = t[8], o;
|
|
4727
4734
|
});
|
|
4728
4735
|
Fn.displayName = Tt.Description.displayName;
|
|
4729
|
-
const sc =
|
|
4736
|
+
const sc = it.Root, Tn = L.forwardRef((n, e) => {
|
|
4730
4737
|
const t = I(25);
|
|
4731
4738
|
let l, s, r, o, i, a;
|
|
4732
4739
|
if (t[0] !== n) {
|
|
@@ -4757,14 +4764,14 @@ const sc = nt.Root, Tn = L.forwardRef((n, e) => {
|
|
|
4757
4764
|
if (l && L.isValidElement(s)) {
|
|
4758
4765
|
const g = e, x = s;
|
|
4759
4766
|
let w;
|
|
4760
|
-
return t[11] !== d || t[12] !== m || t[13] !== h || t[14] !== i || t[15] !== g || t[16] !== x ? (w = /* @__PURE__ */ c(
|
|
4767
|
+
return t[11] !== d || t[12] !== m || t[13] !== h || t[14] !== i || t[15] !== g || t[16] !== x ? (w = /* @__PURE__ */ c(it.Trigger, { ref: g, render: x, onClick: d, onMouseDown: m, onPointerDown: h, ...i }), t[11] = d, t[12] = m, t[13] = h, t[14] = i, t[15] = g, t[16] = x, t[17] = w) : w = t[17], w;
|
|
4761
4768
|
}
|
|
4762
4769
|
const b = e;
|
|
4763
4770
|
let p;
|
|
4764
|
-
return t[18] !== s || t[19] !== d || t[20] !== m || t[21] !== h || t[22] !== i || t[23] !== b ? (p = /* @__PURE__ */ c(
|
|
4771
|
+
return t[18] !== s || t[19] !== d || t[20] !== m || t[21] !== h || t[22] !== i || t[23] !== b ? (p = /* @__PURE__ */ c(it.Trigger, { ref: b, onClick: d, onMouseDown: m, onPointerDown: h, ...i, children: s }), t[18] = s, t[19] = d, t[20] = m, t[21] = h, t[22] = i, t[23] = b, t[24] = p) : p = t[24], p;
|
|
4765
4772
|
});
|
|
4766
4773
|
Tn.displayName = "DropdownMenuTrigger";
|
|
4767
|
-
const rc =
|
|
4774
|
+
const rc = it.Group, oc = it.SubmenuRoot, nc = it.RadioGroup, Mn = L.forwardRef((n, e) => {
|
|
4768
4775
|
const t = I(14);
|
|
4769
4776
|
let l, s, r, o;
|
|
4770
4777
|
t[0] !== n ? ({
|
|
@@ -4779,7 +4786,7 @@ const rc = nt.Group, oc = nt.SubmenuRoot, nc = nt.RadioGroup, Mn = L.forwardRef(
|
|
|
4779
4786
|
let d;
|
|
4780
4787
|
t[8] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ c(Ol, { className: "ml-auto" }), t[8] = d) : d = t[8];
|
|
4781
4788
|
let u;
|
|
4782
|
-
return t[9] !== l || t[10] !== o || t[11] !== e || t[12] !== a ? (u = /* @__PURE__ */ S(
|
|
4789
|
+
return t[9] !== l || t[10] !== o || t[11] !== e || t[12] !== a ? (u = /* @__PURE__ */ S(it.SubmenuTrigger, { ref: e, className: a, ...o, children: [
|
|
4783
4790
|
l,
|
|
4784
4791
|
d
|
|
4785
4792
|
] }), t[9] = l, t[10] = o, t[11] = e, t[12] = a, t[13] = u) : u = t[13], u;
|
|
@@ -4799,9 +4806,9 @@ const Pn = L.forwardRef((n, e) => {
|
|
|
4799
4806
|
let d;
|
|
4800
4807
|
t[7] !== r ? (d = k("min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", r), t[7] = r, t[8] = d) : d = t[8];
|
|
4801
4808
|
let u;
|
|
4802
|
-
t[9] !== o || t[10] !== e || t[11] !== d ? (u = /* @__PURE__ */ c(
|
|
4809
|
+
t[9] !== o || t[10] !== e || t[11] !== d ? (u = /* @__PURE__ */ c(it.Popup, { ref: e, className: d, ...o }), t[9] = o, t[10] = e, t[11] = d, t[12] = u) : u = t[12];
|
|
4803
4810
|
let m;
|
|
4804
|
-
return t[13] !== l || t[14] !== s || t[15] !== i || t[16] !== a || t[17] !== u ? (m = /* @__PURE__ */ c(
|
|
4811
|
+
return t[13] !== l || t[14] !== s || t[15] !== i || t[16] !== a || t[17] !== u ? (m = /* @__PURE__ */ c(it.Positioner, { className: "z-[200]", sideOffset: a, alignOffset: s, side: i, align: l, children: u }), t[13] = l, t[14] = s, t[15] = i, t[16] = a, t[17] = u, t[18] = m) : m = t[18], m;
|
|
4805
4812
|
});
|
|
4806
4813
|
Pn.displayName = "DropdownMenuSubContent";
|
|
4807
4814
|
const zn = L.forwardRef((n, e) => {
|
|
@@ -4819,9 +4826,9 @@ const zn = L.forwardRef((n, e) => {
|
|
|
4819
4826
|
let m;
|
|
4820
4827
|
t[7] !== s ? (m = k("min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", s), t[7] = s, t[8] = m) : m = t[8];
|
|
4821
4828
|
let f;
|
|
4822
|
-
t[9] !== r || t[10] !== e || t[11] !== m ? (f = /* @__PURE__ */ c(
|
|
4829
|
+
t[9] !== r || t[10] !== e || t[11] !== m ? (f = /* @__PURE__ */ c(it.Popup, { ref: e, className: m, ...r }), t[9] = r, t[10] = e, t[11] = m, t[12] = f) : f = t[12];
|
|
4823
4830
|
let h;
|
|
4824
|
-
return t[13] !== u || t[14] !== l || t[15] !== o || t[16] !== d || t[17] !== f ? (h = /* @__PURE__ */ c(
|
|
4831
|
+
return t[13] !== u || t[14] !== l || t[15] !== o || t[16] !== d || t[17] !== f ? (h = /* @__PURE__ */ c(it.Portal, { children: /* @__PURE__ */ c(it.Positioner, { className: "z-[200]", sideOffset: d, alignOffset: l, align: u, side: o, children: f }) }), t[13] = u, t[14] = l, t[15] = o, t[16] = d, t[17] = f, t[18] = h) : h = t[18], h;
|
|
4825
4832
|
});
|
|
4826
4833
|
zn.displayName = "DropdownMenuContent";
|
|
4827
4834
|
const Ln = L.forwardRef((n, e) => {
|
|
@@ -4836,7 +4843,7 @@ const Ln = L.forwardRef((n, e) => {
|
|
|
4836
4843
|
let i;
|
|
4837
4844
|
t[4] !== l || t[5] !== o ? (i = k("relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", o, l), t[4] = l, t[5] = o, t[6] = i) : i = t[6];
|
|
4838
4845
|
let a;
|
|
4839
|
-
return t[7] !== r || t[8] !== e || t[9] !== i ? (a = /* @__PURE__ */ c(
|
|
4846
|
+
return t[7] !== r || t[8] !== e || t[9] !== i ? (a = /* @__PURE__ */ c(it.Item, { ref: e, className: i, ...r }), t[7] = r, t[8] = e, t[9] = i, t[10] = a) : a = t[10], a;
|
|
4840
4847
|
});
|
|
4841
4848
|
Ln.displayName = "DropdownMenuItem";
|
|
4842
4849
|
const Bn = L.forwardRef((n, e) => {
|
|
@@ -4851,9 +4858,9 @@ const Bn = L.forwardRef((n, e) => {
|
|
|
4851
4858
|
let i;
|
|
4852
4859
|
t[5] !== r ? (i = k("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", r), t[5] = r, t[6] = i) : i = t[6];
|
|
4853
4860
|
let a;
|
|
4854
|
-
t[7] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ c("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ c(
|
|
4861
|
+
t[7] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ c("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ c(it.CheckboxItemIndicator, { children: /* @__PURE__ */ c(Rl, { className: "h-4 w-4" }) }) }), t[7] = a) : a = t[7];
|
|
4855
4862
|
let d;
|
|
4856
|
-
return t[8] !== l || t[9] !== s || t[10] !== o || t[11] !== e || t[12] !== i ? (d = /* @__PURE__ */ S(
|
|
4863
|
+
return t[8] !== l || t[9] !== s || t[10] !== o || t[11] !== e || t[12] !== i ? (d = /* @__PURE__ */ S(it.CheckboxItem, { ref: e, className: i, checked: l, ...o, children: [
|
|
4857
4864
|
a,
|
|
4858
4865
|
s
|
|
4859
4866
|
] }), t[8] = l, t[9] = s, t[10] = o, t[11] = e, t[12] = i, t[13] = d) : d = t[13], d;
|
|
@@ -4870,9 +4877,9 @@ const jn = L.forwardRef((n, e) => {
|
|
|
4870
4877
|
let o;
|
|
4871
4878
|
t[4] !== s ? (o = k("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", s), t[4] = s, t[5] = o) : o = t[5];
|
|
4872
4879
|
let i;
|
|
4873
|
-
t[6] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ c("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ c(
|
|
4880
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ c("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ c(it.RadioItemIndicator, { children: /* @__PURE__ */ c(zs, { className: "h-2 w-2 fill-current" }) }) }), t[6] = i) : i = t[6];
|
|
4874
4881
|
let a;
|
|
4875
|
-
return t[7] !== l || t[8] !== r || t[9] !== e || t[10] !== o ? (a = /* @__PURE__ */ S(
|
|
4882
|
+
return t[7] !== l || t[8] !== r || t[9] !== e || t[10] !== o ? (a = /* @__PURE__ */ S(it.RadioItem, { ref: e, className: o, ...r, children: [
|
|
4876
4883
|
i,
|
|
4877
4884
|
l
|
|
4878
4885
|
] }), t[7] = l, t[8] = r, t[9] = e, t[10] = o, t[11] = a) : a = t[11], a;
|
|
@@ -4903,7 +4910,7 @@ const qn = L.forwardRef((n, e) => {
|
|
|
4903
4910
|
let r;
|
|
4904
4911
|
t[3] !== l ? (r = k("-mx-1 my-1 h-px bg-muted", l), t[3] = l, t[4] = r) : r = t[4];
|
|
4905
4912
|
let o;
|
|
4906
|
-
return t[5] !== s || t[6] !== e || t[7] !== r ? (o = /* @__PURE__ */ c(
|
|
4913
|
+
return t[5] !== s || t[6] !== e || t[7] !== r ? (o = /* @__PURE__ */ c(it.Separator, { ref: e, className: r, ...s }), t[5] = s, t[6] = e, t[7] = r, t[8] = o) : o = t[8], o;
|
|
4907
4914
|
});
|
|
4908
4915
|
qn.displayName = "DropdownMenuSeparator";
|
|
4909
4916
|
const Yn = (n) => {
|
|
@@ -5552,7 +5559,7 @@ const bi = {
|
|
|
5552
5559
|
enterprisePrivacyPolicy: "https://enterprise.docthub.com/enterprise-privacy-policy/",
|
|
5553
5560
|
enterprisePaymentPolicy: "https://enterprise.docthub.com/enterprise-payment-policy/",
|
|
5554
5561
|
courseAfter12thPlaceholder: "https://www.docthub.com/explore-courses-after-12th"
|
|
5555
|
-
},
|
|
5562
|
+
}, ye = Dl() === "production" ? gi : bi, el = {
|
|
5556
5563
|
linkedin: "https://www.linkedin.com/company/docthub2017/",
|
|
5557
5564
|
facebook: "https://www.facebook.com/docthub/",
|
|
5558
5565
|
instagram: "https://www.instagram.com/docthub/",
|
|
@@ -5610,15 +5617,15 @@ const bi = {
|
|
|
5610
5617
|
links: [{
|
|
5611
5618
|
id: "jobs",
|
|
5612
5619
|
label: "Jobs",
|
|
5613
|
-
href:
|
|
5620
|
+
href: ye.jobs
|
|
5614
5621
|
}, {
|
|
5615
5622
|
id: "courses",
|
|
5616
5623
|
label: "Courses",
|
|
5617
|
-
href:
|
|
5624
|
+
href: ye.courses
|
|
5618
5625
|
}, {
|
|
5619
5626
|
id: "events",
|
|
5620
5627
|
label: "Events",
|
|
5621
|
-
href:
|
|
5628
|
+
href: ye.events
|
|
5622
5629
|
}]
|
|
5623
5630
|
}]
|
|
5624
5631
|
}, {
|
|
@@ -5630,15 +5637,15 @@ const bi = {
|
|
|
5630
5637
|
links: [{
|
|
5631
5638
|
id: "logbook",
|
|
5632
5639
|
label: "Logbook",
|
|
5633
|
-
href:
|
|
5640
|
+
href: ye.logbook
|
|
5634
5641
|
}, {
|
|
5635
5642
|
id: "resume-builder",
|
|
5636
5643
|
label: "Resume Builder",
|
|
5637
|
-
href:
|
|
5644
|
+
href: ye["resume-builder"]
|
|
5638
5645
|
}, {
|
|
5639
5646
|
id: "exhibitor",
|
|
5640
5647
|
label: "Exhibitor",
|
|
5641
|
-
href:
|
|
5648
|
+
href: ye.exhibitor
|
|
5642
5649
|
}]
|
|
5643
5650
|
}]
|
|
5644
5651
|
}, {
|
|
@@ -5653,17 +5660,17 @@ const bi = {
|
|
|
5653
5660
|
{
|
|
5654
5661
|
id: "news",
|
|
5655
5662
|
label: "News",
|
|
5656
|
-
href:
|
|
5663
|
+
href: ye.healthcareNews
|
|
5657
5664
|
},
|
|
5658
5665
|
{
|
|
5659
5666
|
id: "course-pages",
|
|
5660
5667
|
label: "Course Pages",
|
|
5661
|
-
href:
|
|
5668
|
+
href: ye.coursePages
|
|
5662
5669
|
},
|
|
5663
5670
|
{
|
|
5664
5671
|
id: "job-role-pages",
|
|
5665
5672
|
label: "Job Role Pages",
|
|
5666
|
-
href:
|
|
5673
|
+
href: ye.jobRolePages
|
|
5667
5674
|
}
|
|
5668
5675
|
]
|
|
5669
5676
|
}]
|
|
@@ -5676,27 +5683,27 @@ const bi = {
|
|
|
5676
5683
|
links: [{
|
|
5677
5684
|
id: "recruiter-solution",
|
|
5678
5685
|
label: "Recruiter Solution",
|
|
5679
|
-
href:
|
|
5686
|
+
href: ye.recruiterSolution
|
|
5680
5687
|
}, {
|
|
5681
5688
|
id: "institute-solution",
|
|
5682
5689
|
label: "Institute Solution",
|
|
5683
|
-
href:
|
|
5690
|
+
href: ye.instituteSolution
|
|
5684
5691
|
}, {
|
|
5685
5692
|
id: "event-organizer-solution",
|
|
5686
5693
|
label: "Event Organizer Solution",
|
|
5687
|
-
href:
|
|
5694
|
+
href: ye.eventOrganizerSolution
|
|
5688
5695
|
}, {
|
|
5689
5696
|
id: "membership-management",
|
|
5690
5697
|
label: "Membership Management",
|
|
5691
|
-
href:
|
|
5698
|
+
href: ye.membershipManagement
|
|
5692
5699
|
}, {
|
|
5693
5700
|
id: "qr-check-in-app",
|
|
5694
5701
|
label: "QR Check-In App",
|
|
5695
|
-
href:
|
|
5702
|
+
href: ye.qrCheckInApp
|
|
5696
5703
|
}, {
|
|
5697
5704
|
id: "explore-enterprise",
|
|
5698
5705
|
label: "Explore Docthub Enterprise",
|
|
5699
|
-
href:
|
|
5706
|
+
href: ye.enterpriseSolutions
|
|
5700
5707
|
}]
|
|
5701
5708
|
}, {
|
|
5702
5709
|
id: "enterprise-access",
|
|
@@ -5706,12 +5713,12 @@ const bi = {
|
|
|
5706
5713
|
{
|
|
5707
5714
|
id: "enterprise-login",
|
|
5708
5715
|
label: "Enterprise Login",
|
|
5709
|
-
href:
|
|
5716
|
+
href: ye.enterpriseLogin
|
|
5710
5717
|
},
|
|
5711
5718
|
{
|
|
5712
5719
|
id: "create-enterprise-account",
|
|
5713
5720
|
label: "Create Enterprise / Business Account",
|
|
5714
|
-
href:
|
|
5721
|
+
href: ye.enterpriseRegister
|
|
5715
5722
|
}
|
|
5716
5723
|
// Hidden for now:
|
|
5717
5724
|
// { id: "contact-support", label: "Contact Support", href: FOOTER_ROUTES.contactSupportPlaceholder },
|
|
@@ -5726,23 +5733,23 @@ const bi = {
|
|
|
5726
5733
|
links: [{
|
|
5727
5734
|
id: "about-docthub",
|
|
5728
5735
|
label: "About Docthub",
|
|
5729
|
-
href:
|
|
5736
|
+
href: ye.aboutUs
|
|
5730
5737
|
}, {
|
|
5731
5738
|
id: "media-release",
|
|
5732
5739
|
label: "Media Release",
|
|
5733
|
-
href:
|
|
5740
|
+
href: ye.mediaReleases
|
|
5734
5741
|
}, {
|
|
5735
5742
|
id: "blogs",
|
|
5736
5743
|
label: "Blogs",
|
|
5737
|
-
href:
|
|
5744
|
+
href: ye.blogs
|
|
5738
5745
|
}, {
|
|
5739
5746
|
id: "contact-us",
|
|
5740
5747
|
label: "Contact Us",
|
|
5741
|
-
href:
|
|
5748
|
+
href: ye.contactUs
|
|
5742
5749
|
}, {
|
|
5743
5750
|
id: "docthub-home",
|
|
5744
5751
|
label: "Docthub Home",
|
|
5745
|
-
href:
|
|
5752
|
+
href: ye.docthubHome
|
|
5746
5753
|
}]
|
|
5747
5754
|
}, {
|
|
5748
5755
|
id: "additional-links",
|
|
@@ -5751,49 +5758,49 @@ const bi = {
|
|
|
5751
5758
|
links: [{
|
|
5752
5759
|
id: "healthcare-career-app",
|
|
5753
5760
|
label: "Healthcare Career App",
|
|
5754
|
-
href:
|
|
5761
|
+
href: ye.healthcareCareerApp
|
|
5755
5762
|
}, {
|
|
5756
5763
|
id: "drop-your-resume",
|
|
5757
5764
|
label: "Drop Your Resume",
|
|
5758
|
-
href:
|
|
5765
|
+
href: ye.jobsDropYourResume
|
|
5759
5766
|
}, {
|
|
5760
5767
|
id: "course-after-12th",
|
|
5761
5768
|
label: "Course After 12th",
|
|
5762
|
-
href:
|
|
5769
|
+
href: ye.courseAfter12thPlaceholder
|
|
5763
5770
|
}]
|
|
5764
5771
|
}]
|
|
5765
5772
|
}], yi = [{
|
|
5766
5773
|
id: "terms-of-use",
|
|
5767
5774
|
label: "Terms of Use",
|
|
5768
|
-
href:
|
|
5775
|
+
href: ye.termsConditions
|
|
5769
5776
|
}, {
|
|
5770
5777
|
id: "privacy-policy",
|
|
5771
5778
|
label: "Privacy Policy",
|
|
5772
|
-
href:
|
|
5779
|
+
href: ye.privacyPolicy
|
|
5773
5780
|
}, {
|
|
5774
5781
|
id: "cookies-policy",
|
|
5775
5782
|
label: "Cookies Policy",
|
|
5776
|
-
href:
|
|
5783
|
+
href: ye.cookiesPolicy
|
|
5777
5784
|
}, {
|
|
5778
5785
|
id: "payment-policy",
|
|
5779
5786
|
label: "Payment Policy",
|
|
5780
|
-
href:
|
|
5787
|
+
href: ye.paymentPolicy
|
|
5781
5788
|
}, {
|
|
5782
5789
|
id: "disclaimer",
|
|
5783
5790
|
label: "Disclaimer",
|
|
5784
|
-
href:
|
|
5791
|
+
href: ye.disclaimerPolicy
|
|
5785
5792
|
}], Ni = [{
|
|
5786
5793
|
id: "enterprise-terms",
|
|
5787
5794
|
label: "Enterprise Terms",
|
|
5788
|
-
href:
|
|
5795
|
+
href: ye.enterpriseTermsConditions
|
|
5789
5796
|
}, {
|
|
5790
5797
|
id: "enterprise-privacy-policy",
|
|
5791
5798
|
label: "Enterprise Privacy Policy",
|
|
5792
|
-
href:
|
|
5799
|
+
href: ye.enterprisePrivacyPolicy
|
|
5793
5800
|
}, {
|
|
5794
5801
|
id: "enterprise-payment-policy",
|
|
5795
5802
|
label: "Enterprise Payment Policy",
|
|
5796
|
-
href:
|
|
5803
|
+
href: ye.enterprisePaymentPolicy
|
|
5797
5804
|
}], ki = "©2026 Docthub. All rights reserved.", Kl = 1024;
|
|
5798
5805
|
function Di() {
|
|
5799
5806
|
const n = I(2), [e, t] = L.useState(void 0);
|