docthub-core-components 2.43.0 → 2.44.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 +296 -292
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as c, jsxs as M, Fragment as Fs } from "react/jsx-runtime";
|
|
2
2
|
import * as W from "react";
|
|
3
3
|
import ts, { useState as pe, useId as Ze, useEffect as Ie, useRef as tt, forwardRef as wl, useCallback as ye, useDeferredValue as yl, useMemo as gt, memo as Nl } from "react";
|
|
4
|
-
import { LoaderCircle as Dl, EyeOff as kl, Eye as Cl, ChevronDown as yt, ChevronUp as Sl, ChevronLeft as $l, ChevronRight as Ts, X as it, CalendarDays as Rl, MapPin as Fl, Mail as Hs, Phone as Tl, Building as zl, Filter as Al, User as Il, Search as Ol, Check as as, Minus as Ml, AlertCircle as Ms, AlertTriangle as Ks, CheckCircle2 as Ws, Info as ks, Circle as Gs, XCircle as
|
|
4
|
+
import { LoaderCircle as Dl, EyeOff as kl, Eye as Cl, ChevronDown as yt, ChevronUp as Sl, ChevronLeft as $l, ChevronRight as Ts, X as it, CalendarDays as Rl, MapPin as Fl, Mail as Hs, Phone as Tl, Building as zl, Filter as Al, User as Il, Search as Ol, Check as as, Minus as Ml, AlertCircle as Ms, AlertTriangle as Ks, CheckCircle2 as Ws, Info as ks, Circle as Gs, XCircle as El, MoreHorizontal as _l } from "lucide-react";
|
|
5
5
|
import { clsx as Bl } from "clsx";
|
|
6
6
|
import { twMerge as Ll } from "tailwind-merge";
|
|
7
7
|
import { c as P } from "react-compiler-runtime";
|
|
@@ -10,7 +10,7 @@ import { Slot as Vs } from "@radix-ui/react-slot";
|
|
|
10
10
|
import * as Us from "@radix-ui/react-label";
|
|
11
11
|
import * as qt from "@radix-ui/react-popover";
|
|
12
12
|
import * as De from "@radix-ui/react-select";
|
|
13
|
-
import
|
|
13
|
+
import Et from "dayjs";
|
|
14
14
|
import Pl from "dayjs/plugin/customParseFormat";
|
|
15
15
|
import Yl from "dayjs/plugin/localizedFormat";
|
|
16
16
|
import { DayPicker as ql } from "react-day-picker";
|
|
@@ -26,7 +26,7 @@ import * as ve from "@radix-ui/react-dropdown-menu";
|
|
|
26
26
|
import * as jt from "@radix-ui/react-radio-group";
|
|
27
27
|
import * as kt from "@radix-ui/react-tabs";
|
|
28
28
|
import * as Ss from "@radix-ui/react-progress";
|
|
29
|
-
import { toast as
|
|
29
|
+
import { toast as Es, Toaster as jl } from "sonner";
|
|
30
30
|
function w(...a) {
|
|
31
31
|
return Ll(Bl(a));
|
|
32
32
|
}
|
|
@@ -210,13 +210,13 @@ const Kl = ct("inline-flex items-center justify-center transition-colors focus-v
|
|
|
210
210
|
t[18] !== n ? (T = n && {
|
|
211
211
|
"--icon-color": n
|
|
212
212
|
}, t[18] = n, t[19] = T) : T = t[19];
|
|
213
|
-
let
|
|
214
|
-
t[20] !== b || t[21] !== F || t[22] !== T ? (
|
|
213
|
+
let E;
|
|
214
|
+
t[20] !== b || t[21] !== F || t[22] !== T ? (E = {
|
|
215
215
|
...b,
|
|
216
216
|
...F,
|
|
217
217
|
...T
|
|
218
|
-
}, t[20] = b, t[21] = F, t[22] = T, t[23] =
|
|
219
|
-
const C =
|
|
218
|
+
}, t[20] = b, t[21] = F, t[22] = T, t[23] = E) : E = t[23];
|
|
219
|
+
const C = E;
|
|
220
220
|
let L;
|
|
221
221
|
t[24] !== k || t[25] !== l || t[26] !== r || t[27] !== n || t[28] !== D || t[29] !== $ || t[30] !== d || t[31] !== y || t[32] !== h ? (L = w(Kl({
|
|
222
222
|
variant: h,
|
|
@@ -226,23 +226,23 @@ const Kl = ct("inline-flex items-center justify-center transition-colors focus-v
|
|
|
226
226
|
fullWidth: r,
|
|
227
227
|
className: l
|
|
228
228
|
}), n && "[&>span[data-testid='button-icon']_svg]:text-[var(--icon-color)]", $, D), t[24] = k, t[25] = l, t[26] = r, t[27] = n, t[28] = D, t[29] = $, t[30] = d, t[31] = y, t[32] = h, t[33] = L) : L = t[33];
|
|
229
|
-
const
|
|
229
|
+
const _ = L, B = N ? void 0 : v ?? "button", A = N ? void 0 : u.disabled, Y = u.disabled || void 0, q = i && !u["aria-label"] ? "Icon button" : u["aria-label"];
|
|
230
230
|
let j;
|
|
231
231
|
t[34] !== N || t[35] !== u.disabled || t[36] !== u.onClick ? (j = N && u.disabled ? Wl : u.onClick, t[34] = N, t[35] = u.disabled, t[36] = u.onClick, t[37] = j) : j = t[37];
|
|
232
232
|
let R;
|
|
233
233
|
t[38] !== o ? (R = o && /* @__PURE__ */ c("span", { "data-testid": "button-icon", children: o }), t[38] = o, t[39] = R) : R = t[39];
|
|
234
234
|
const O = !i && s;
|
|
235
235
|
let I;
|
|
236
|
-
return t[40] !== x || t[41] !==
|
|
236
|
+
return t[40] !== x || t[41] !== _ || t[42] !== C || t[43] !== u || t[44] !== e || t[45] !== j || t[46] !== R || t[47] !== O || t[48] !== B || t[49] !== A || t[50] !== Y || t[51] !== q ? (I = /* @__PURE__ */ M(x, { className: _, style: C, ref: e, ...u, type: B, disabled: A, "aria-disabled": Y, "aria-label": q, onClick: j, children: [
|
|
237
237
|
R,
|
|
238
238
|
O
|
|
239
|
-
] }), t[40] = x, t[41] =
|
|
239
|
+
] }), t[40] = x, t[41] = _, t[42] = C, t[43] = u, t[44] = e, t[45] = j, t[46] = R, t[47] = O, t[48] = B, t[49] = A, t[50] = Y, t[51] = q, t[52] = I) : I = t[52], I;
|
|
240
240
|
});
|
|
241
241
|
Ht.displayName = "DoctButton";
|
|
242
242
|
function Wl(a) {
|
|
243
243
|
a.preventDefault(), a.stopPropagation();
|
|
244
244
|
}
|
|
245
|
-
const Js = ["background", "foreground", "card", "card-foreground", "popover", "popover-foreground", "secondary", "secondary-foreground", "muted", "muted-foreground", "accent", "accent-foreground", "destructive", "destructive-foreground", "border", "input", "ring", "primary", "primary-foreground", "primary-17", "primary-36", "primary-55", "primary-70", "primary-80", "primary-90", "primary-95", "primary-98", "brand-blue", "brand-blue-foreground", "brand-tropical", "brand-secondary", "product-events", "product-contacts", "product-jobs", "product-blogs", "product-landing", "product-academy", "product-resume", "product-media", "neutral-white", "neutral-black", "neutral-80", "neutral-68", "neutral-56", "neutral-44", "neutral-32", "neutral-24", "neutral-20", "neutral-16", "neutral-12", "neutral-10", "neutral-8", "neutral-6", "semantic-negative", "semantic-positive", "semantic-warning", "semantic-informative", "chart-1", "chart-2", "chart-3", "chart-4", "chart-5", "sidebar-background", "sidebar-foreground", "sidebar-primary", "sidebar-primary-foreground", "sidebar-accent", "sidebar-accent-foreground", "sidebar-border", "sidebar-ring"], Gl = (a) => a.replace(/-([a-z0-9])/g, (e, t) => t.toUpperCase()), Vl = Js.reduce((a, e) => (a[e] = `hsl(var(--${e}))`, a), {}),
|
|
245
|
+
const Js = ["background", "foreground", "card", "card-foreground", "popover", "popover-foreground", "secondary", "secondary-foreground", "muted", "muted-foreground", "accent", "accent-foreground", "destructive", "destructive-foreground", "border", "input", "ring", "primary", "primary-foreground", "primary-17", "primary-36", "primary-55", "primary-70", "primary-80", "primary-90", "primary-95", "primary-98", "brand-blue", "brand-blue-foreground", "brand-tropical", "brand-secondary", "product-events", "product-contacts", "product-jobs", "product-blogs", "product-landing", "product-academy", "product-resume", "product-media", "neutral-white", "neutral-black", "neutral-80", "neutral-68", "neutral-56", "neutral-44", "neutral-32", "neutral-24", "neutral-20", "neutral-16", "neutral-12", "neutral-10", "neutral-8", "neutral-6", "semantic-negative", "semantic-positive", "semantic-warning", "semantic-informative", "chart-1", "chart-2", "chart-3", "chart-4", "chart-5", "sidebar-background", "sidebar-foreground", "sidebar-primary", "sidebar-primary-foreground", "sidebar-accent", "sidebar-accent-foreground", "sidebar-border", "sidebar-ring"], Gl = (a) => a.replace(/-([a-z0-9])/g, (e, t) => t.toUpperCase()), Vl = Js.reduce((a, e) => (a[e] = `hsl(var(--${e}))`, a), {}), _s = Js.reduce((a, e) => {
|
|
246
246
|
const t = Vl[e];
|
|
247
247
|
a[e] = t, a[`--${e}`] = t;
|
|
248
248
|
const s = Gl(e);
|
|
@@ -255,10 +255,10 @@ const Js = ["background", "foreground", "card", "card-foreground", "popover", "p
|
|
|
255
255
|
const e = a.trim();
|
|
256
256
|
if (!e)
|
|
257
257
|
return;
|
|
258
|
-
const t =
|
|
258
|
+
const t = _s[e];
|
|
259
259
|
if (t)
|
|
260
260
|
return t;
|
|
261
|
-
const s =
|
|
261
|
+
const s = _s[e.toLowerCase()];
|
|
262
262
|
return s || (e.startsWith("--") ? `hsl(var(${e}))` : (e.startsWith("#") || e.startsWith("rgb") || e.startsWith("hsl") || e.startsWith("var("), e));
|
|
263
263
|
}, Zl = {
|
|
264
264
|
h1: {
|
|
@@ -430,23 +430,23 @@ const Js = ["background", "foreground", "card", "card-foreground", "popover", "p
|
|
|
430
430
|
e[16] !== D ? (T = D && {
|
|
431
431
|
color: D
|
|
432
432
|
}, e[16] = D, e[17] = T) : T = e[17];
|
|
433
|
-
let
|
|
434
|
-
e[18] !== u || e[19] !== v || e[20] !== h || e[21] !== F || e[22] !== T ? (
|
|
433
|
+
let E;
|
|
434
|
+
e[18] !== u || e[19] !== v || e[20] !== h || e[21] !== F || e[22] !== T ? (E = {
|
|
435
435
|
fontFamily: "Inter, 'Helvetica Neue', Arial, sans-serif",
|
|
436
436
|
fontSize: v,
|
|
437
437
|
lineHeight: h,
|
|
438
438
|
fontWeight: F,
|
|
439
439
|
textAlign: u,
|
|
440
440
|
...T
|
|
441
|
-
}, e[18] = u, e[19] = v, e[20] = h, e[21] = F, e[22] = T, e[23] =
|
|
442
|
-
const C =
|
|
443
|
-
let
|
|
444
|
-
e[24] !== C || e[25] !== L ? (
|
|
441
|
+
}, e[18] = u, e[19] = v, e[20] = h, e[21] = F, e[22] = T, e[23] = E) : E = e[23];
|
|
442
|
+
const C = E, L = o;
|
|
443
|
+
let _;
|
|
444
|
+
e[24] !== C || e[25] !== L ? (_ = {
|
|
445
445
|
...C,
|
|
446
446
|
...L
|
|
447
|
-
}, e[24] = C, e[25] = L, e[26] =
|
|
447
|
+
}, e[24] = C, e[25] = L, e[26] = _) : _ = e[26];
|
|
448
448
|
let B;
|
|
449
|
-
return e[27] !== x || e[28] !== y || e[29] !== s || e[30] !== r || e[31] !==
|
|
449
|
+
return e[27] !== x || e[28] !== y || e[29] !== s || e[30] !== r || e[31] !== _ ? (B = /* @__PURE__ */ c(x, { className: y, style: _, ...r, children: s }), e[27] = x, e[28] = y, e[29] = s, e[30] = r, e[31] = _, e[32] = B) : B = e[32], B;
|
|
450
450
|
}, xt = W.forwardRef((a, e) => {
|
|
451
451
|
const t = P(14);
|
|
452
452
|
let s, l, r, o, n;
|
|
@@ -503,9 +503,9 @@ const nt = (a) => {
|
|
|
503
503
|
fridged: o,
|
|
504
504
|
...h
|
|
505
505
|
} = a, e[0] = a, e[1] = t, e[2] = s, e[3] = l, e[4] = r, e[5] = o, e[6] = n, e[7] = i, e[8] = d, e[9] = f, e[10] = m, e[11] = u, e[12] = p, e[13] = b, e[14] = g, e[15] = v, e[16] = h, e[17] = N, e[18] = x, e[19] = k, e[20] = y) : (t = e[1], s = e[2], l = e[3], r = e[4], o = e[5], n = e[6], i = e[7], d = e[8], f = e[9], m = e[10], u = e[11], p = e[12], b = e[13], g = e[14], v = e[15], h = e[16], N = e[17], x = e[18], k = e[19], y = e[20]);
|
|
506
|
-
const $ = k === void 0 ? "text" : k, [D, F] = pe(typeof y == "string" ? y.length : String(y ?? "").length), T = Ze(),
|
|
506
|
+
const $ = k === void 0 ? "text" : k, [D, F] = pe(typeof y == "string" ? y.length : String(y ?? "").length), T = Ze(), E = Ze(), C = g || o, L = t || m, _ = h["aria-describedby"];
|
|
507
507
|
let B;
|
|
508
|
-
e[21] !== r || e[22] !==
|
|
508
|
+
e[21] !== r || e[22] !== E || e[23] !== n || e[24] !== _ ? (B = [_, n || r ? E : void 0].filter(Boolean).join(" ") || void 0, e[21] = r, e[22] = E, e[23] = n, e[24] = _, e[25] = B) : B = e[25];
|
|
509
509
|
const A = B;
|
|
510
510
|
let Y, q;
|
|
511
511
|
e[26] !== o ? (Y = () => {
|
|
@@ -530,14 +530,14 @@ const nt = (a) => {
|
|
|
530
530
|
] }), e[37] = T, e[38] = d, e[39] = v, e[40] = z) : z = e[40];
|
|
531
531
|
let K;
|
|
532
532
|
e[41] !== f ? (K = f && /* @__PURE__ */ c("div", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none", children: f }), e[41] = f, e[42] = K) : K = e[42];
|
|
533
|
-
let
|
|
534
|
-
e[43] !== N || e[44] !== H ? (
|
|
533
|
+
let Z;
|
|
534
|
+
e[43] !== N || e[44] !== H ? (Z = N && !H && /* @__PURE__ */ c("div", { className: "absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none", children: N }), e[43] = N, e[44] = H, e[45] = Z) : Z = e[45];
|
|
535
535
|
const J = f && "pl-10", X = N && "pr-10", oe = H && "pr-16", se = r && "border-destructive", le = C && "cursor-not-allowed bg-muted text-muted-foreground opacity-70";
|
|
536
536
|
let ee;
|
|
537
537
|
e[46] !== i || e[47] !== J || e[48] !== X || e[49] !== oe || e[50] !== se || e[51] !== le ? (ee = w(J, X, oe, se, le, i), e[46] = i, e[47] = J, e[48] = X, e[49] = oe, e[50] = se, e[51] = le, e[52] = ee) : ee = e[52];
|
|
538
|
-
const
|
|
539
|
-
let
|
|
540
|
-
e[53] !== A || e[54] !== l || e[55] !== L || e[56] !== R || e[57] !== T || e[58] !== C || e[59] !== b || e[60] !== h || e[61] !== ee || e[62] !==
|
|
538
|
+
const U = !!r || void 0, ce = v || void 0;
|
|
539
|
+
let V;
|
|
540
|
+
e[53] !== A || e[54] !== l || e[55] !== L || e[56] !== R || e[57] !== T || e[58] !== C || e[59] !== b || e[60] !== h || e[61] !== ee || e[62] !== U || e[63] !== ce || e[64] !== $ || e[65] !== y ? (V = /* @__PURE__ */ c(xt, { id: T, type: $, placeholder: b, disabled: l, readOnly: C, value: y, maxLength: L, onChange: R, className: ee, "aria-invalid": U, "aria-required": ce, "aria-describedby": A, ...h }), e[53] = A, e[54] = l, e[55] = L, e[56] = R, e[57] = T, e[58] = C, e[59] = b, e[60] = h, e[61] = ee, e[62] = U, e[63] = ce, e[64] = $, e[65] = y, e[66] = V) : V = e[66];
|
|
541
541
|
let de;
|
|
542
542
|
e[67] !== D || e[68] !== L || e[69] !== H ? (de = H && /* @__PURE__ */ M("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: [
|
|
543
543
|
D,
|
|
@@ -545,14 +545,14 @@ const nt = (a) => {
|
|
|
545
545
|
L
|
|
546
546
|
] }), e[67] = D, e[68] = L, e[69] = H, e[70] = de) : de = e[70];
|
|
547
547
|
let ae;
|
|
548
|
-
e[71] !== K || e[72] !==
|
|
548
|
+
e[71] !== K || e[72] !== Z || e[73] !== V || e[74] !== de ? (ae = /* @__PURE__ */ M("div", { className: "relative", children: [
|
|
549
549
|
K,
|
|
550
|
-
U,
|
|
551
550
|
Z,
|
|
551
|
+
V,
|
|
552
552
|
de
|
|
553
|
-
] }), e[71] = K, e[72] =
|
|
553
|
+
] }), e[71] = K, e[72] = Z, e[73] = V, e[74] = de, e[75] = ae) : ae = e[75];
|
|
554
554
|
let me;
|
|
555
|
-
e[76] !== r || e[77] !==
|
|
555
|
+
e[76] !== r || e[77] !== E || e[78] !== n ? (me = (n || r) && /* @__PURE__ */ c("p", { id: E, className: w("text-xs", r ? "text-destructive" : "text-muted-foreground"), role: r ? "alert" : void 0, children: r || n }), e[76] = r, e[77] = E, e[78] = n, e[79] = me) : me = e[79];
|
|
556
556
|
let ne;
|
|
557
557
|
return e[80] !== ae || e[81] !== me || e[82] !== S || e[83] !== z ? (ne = /* @__PURE__ */ M("div", { className: S, children: [
|
|
558
558
|
z,
|
|
@@ -595,8 +595,8 @@ const nt = (a) => {
|
|
|
595
595
|
r(H);
|
|
596
596
|
const S = Math.min(j + I.length, p - 1);
|
|
597
597
|
(z = N.current[S]) == null || z.focus(), H.every(Ql) && (o && o(H.join("")), v && queueMicrotask(() => {
|
|
598
|
-
var
|
|
599
|
-
const K = (
|
|
598
|
+
var Z;
|
|
599
|
+
const K = (Z = N.current[j]) == null ? void 0 : Z.closest("form");
|
|
600
600
|
K && K.requestSubmit();
|
|
601
601
|
}));
|
|
602
602
|
}, D = (j, R) => {
|
|
@@ -607,11 +607,11 @@ const nt = (a) => {
|
|
|
607
607
|
e[0] !== n ? (F = w("space-y-2", n), e[0] = n, e[1] = F) : F = e[1];
|
|
608
608
|
let T;
|
|
609
609
|
e[2] !== s || e[3] !== x ? (T = s && /* @__PURE__ */ c(Lt, { id: x, className: "text-sm font-medium text-gray-700", children: s }), e[2] = s, e[3] = x, e[4] = T) : T = e[4];
|
|
610
|
-
const
|
|
610
|
+
const E = "flex gap-2", C = "group", L = s ? x : void 0, _ = i ? k : void 0, B = l.map((j, R) => /* @__PURE__ */ c(xt, { ref: (O) => {
|
|
611
611
|
N.current[R] = O;
|
|
612
612
|
}, type: h ? "password" : "text", inputMode: "numeric", maxLength: 1, value: j, autoFocus: g && R === 0, onChange: (O) => y(R, O.target.value), onKeyDown: (O) => D(R, O), onPaste: (O) => $(R, O), className: w("text-center p-0 text-lg font-semibold", i && "border-destructive", b), "aria-label": `${s || "OTP"} digit ${R + 1} of ${p}`, "aria-invalid": i ? "true" : "false" }, R));
|
|
613
613
|
let A;
|
|
614
|
-
e[5] !== L || e[6] !==
|
|
614
|
+
e[5] !== L || e[6] !== _ || e[7] !== B ? (A = /* @__PURE__ */ c("div", { className: E, role: C, "aria-labelledby": L, "aria-describedby": _, children: B }), e[5] = L, e[6] = _, e[7] = B, e[8] = A) : A = e[8];
|
|
615
615
|
let Y;
|
|
616
616
|
e[9] !== i || e[10] !== k ? (Y = i && /* @__PURE__ */ c("p", { id: k, className: "text-xs text-destructive mt-1", role: "alert", children: i }), e[9] = i, e[10] = k, e[11] = Y) : Y = e[11];
|
|
617
617
|
let q;
|
|
@@ -657,7 +657,7 @@ function Ps(a) {
|
|
|
657
657
|
e[19] !== i || e[20] !== h ? (T = () => {
|
|
658
658
|
i == null || i(!h);
|
|
659
659
|
}, e[19] = i, e[20] = h, e[21] = T) : T = e[21];
|
|
660
|
-
const
|
|
660
|
+
const E = T;
|
|
661
661
|
let C;
|
|
662
662
|
e[22] !== t ? (C = w("space-y-1", t), e[22] = t, e[23] = C) : C = e[23];
|
|
663
663
|
let L;
|
|
@@ -665,17 +665,17 @@ function Ps(a) {
|
|
|
665
665
|
r,
|
|
666
666
|
f && /* @__PURE__ */ c("span", { className: "text-red-500 ml-1", "aria-label": "required", children: "*" })
|
|
667
667
|
] }), e[24] = r, e[25] = f, e[26] = $, e[27] = L) : L = e[27];
|
|
668
|
-
const
|
|
668
|
+
const _ = h ? "text" : "password", B = s && "border-destructive";
|
|
669
669
|
let A;
|
|
670
670
|
e[28] !== B ? (A = w("pr-10", B), e[28] = B, e[29] = A) : A = e[29];
|
|
671
671
|
const Y = !!s || void 0, q = f || void 0, j = l || s ? y : m["aria-describedby"];
|
|
672
672
|
let R;
|
|
673
|
-
e[30] !== N || e[31] !== F || e[32] !== v || e[33] !== $ || e[34] !== m || e[35] !== A || e[36] !== Y || e[37] !== q || e[38] !== j || e[39] !==
|
|
673
|
+
e[30] !== N || e[31] !== F || e[32] !== v || e[33] !== $ || e[34] !== m || e[35] !== A || e[36] !== Y || e[37] !== q || e[38] !== j || e[39] !== _ || e[40] !== g ? (R = /* @__PURE__ */ c(xt, { id: $, type: _, placeholder: v, autoComplete: N, className: A, value: g, onChange: F, "aria-invalid": Y, "aria-required": q, "aria-describedby": j, ...m }), e[30] = N, e[31] = F, e[32] = v, e[33] = $, e[34] = m, e[35] = A, e[36] = Y, e[37] = q, e[38] = j, e[39] = _, e[40] = g, e[41] = R) : R = e[41];
|
|
674
674
|
const O = h ? "Hide password" : "Show password";
|
|
675
675
|
let I;
|
|
676
676
|
e[42] !== h ? (I = h ? /* @__PURE__ */ c(kl, { className: "h-4 w-4 text-gray-400 hover:text-gray-500" }) : /* @__PURE__ */ c(Cl, { className: "h-4 w-4 text-gray-400 hover:text-gray-500" }), e[42] = h, e[43] = I) : I = e[43];
|
|
677
677
|
let H;
|
|
678
|
-
e[44] !== $ || e[45] !== h || e[46] !== O || e[47] !== I || e[48] !== x || e[49] !==
|
|
678
|
+
e[44] !== $ || e[45] !== h || e[46] !== O || e[47] !== I || e[48] !== x || e[49] !== E ? (H = /* @__PURE__ */ c("button", { id: x, type: "button", onClick: E, className: "absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground cursor-pointer focus:outline-none focus:ring-2 focus:ring-ring rounded p-1", "aria-label": O, "aria-pressed": h, "aria-controls": $, children: I }), e[44] = $, e[45] = h, e[46] = O, e[47] = I, e[48] = x, e[49] = E, e[50] = H) : H = e[50];
|
|
679
679
|
let S;
|
|
680
680
|
e[51] !== R || e[52] !== H ? (S = /* @__PURE__ */ M("div", { className: "relative", children: [
|
|
681
681
|
R,
|
|
@@ -685,13 +685,13 @@ function Ps(a) {
|
|
|
685
685
|
e[54] !== s || e[55] !== y ? (z = s && /* @__PURE__ */ c("p", { id: y, className: "text-xs text-red-500", role: "alert", children: s }), e[54] = s, e[55] = y, e[56] = z) : z = e[56];
|
|
686
686
|
let K;
|
|
687
687
|
e[57] !== s || e[58] !== y || e[59] !== l ? (K = l && !s && /* @__PURE__ */ c("p", { id: y, className: "text-xs text-gray-500", children: l }), e[57] = s, e[58] = y, e[59] = l, e[60] = K) : K = e[60];
|
|
688
|
-
let
|
|
689
|
-
return e[61] !== S || e[62] !== z || e[63] !== K || e[64] !== C || e[65] !== L ? (
|
|
688
|
+
let Z;
|
|
689
|
+
return e[61] !== S || e[62] !== z || e[63] !== K || e[64] !== C || e[65] !== L ? (Z = /* @__PURE__ */ M("div", { className: C, children: [
|
|
690
690
|
L,
|
|
691
691
|
S,
|
|
692
692
|
z,
|
|
693
693
|
K
|
|
694
|
-
] }), e[61] = S, e[62] = z, e[63] = K, e[64] = C, e[65] = L, e[66] =
|
|
694
|
+
] }), e[61] = S, e[62] = z, e[63] = K, e[64] = C, e[65] = L, e[66] = Z) : Z = e[66], Z;
|
|
695
695
|
}
|
|
696
696
|
const Qs = W.forwardRef((a, e) => {
|
|
697
697
|
const t = P(67);
|
|
@@ -715,48 +715,48 @@ const Qs = W.forwardRef((a, e) => {
|
|
|
715
715
|
id: i,
|
|
716
716
|
...p
|
|
717
717
|
} = a, t[0] = a, t[1] = s, t[2] = l, t[3] = r, t[4] = o, t[5] = n, t[6] = i, t[7] = d, t[8] = f, t[9] = m, t[10] = u, t[11] = p, t[12] = b, t[13] = g, t[14] = v, t[15] = h, t[16] = N, t[17] = x) : (s = t[1], l = t[2], r = t[3], o = t[4], n = t[5], i = t[6], d = t[7], f = t[8], m = t[9], u = t[10], p = t[11], b = t[12], g = t[13], v = t[14], h = t[15], N = t[16], x = t[17]);
|
|
718
|
-
const k = v === void 0 ? "Write here..." : v, y = h === void 0 ? 4 : h, $ = N === void 0 ? "vertical" : N, [D, F] = W.useState(typeof x == "string" ? x.length : 0), T = W.useId(),
|
|
718
|
+
const k = v === void 0 ? "Write here..." : v, y = h === void 0 ? 4 : h, $ = N === void 0 ? "vertical" : N, [D, F] = W.useState(typeof x == "string" ? x.length : 0), T = W.useId(), E = i ?? T, C = o || r, L = !!C, _ = s || f, B = W.useId();
|
|
719
719
|
let A, Y;
|
|
720
720
|
t[18] !== x ? (A = () => {
|
|
721
721
|
typeof x == "string" ? F(x.length) : x == null && F(0);
|
|
722
722
|
}, Y = [x], t[18] = x, t[19] = A, t[20] = Y) : (A = t[19], Y = t[20]), W.useEffect(A, Y);
|
|
723
723
|
let q;
|
|
724
|
-
t[21] !== m || t[22] !== u ? (q = (
|
|
725
|
-
F(
|
|
724
|
+
t[21] !== m || t[22] !== u ? (q = (V) => {
|
|
725
|
+
F(V.target.value.length), m == null || m(V), u == null || u(V.target.value);
|
|
726
726
|
}, t[21] = m, t[22] = u, t[23] = q) : q = t[23];
|
|
727
727
|
const j = q;
|
|
728
728
|
let R;
|
|
729
729
|
t[24] !== l ? (R = w("space-y-1", l), t[24] = l, t[25] = R) : R = t[25];
|
|
730
730
|
let O;
|
|
731
|
-
t[26] !==
|
|
731
|
+
t[26] !== E || t[27] !== d || t[28] !== b ? (O = d && /* @__PURE__ */ M("label", { htmlFor: E, className: "block text-sm font-medium text-foreground", children: [
|
|
732
732
|
d,
|
|
733
733
|
b && /* @__PURE__ */ c("span", { className: "text-destructive ml-1", children: "*" })
|
|
734
|
-
] }), t[26] =
|
|
734
|
+
] }), t[26] = E, t[27] = d, t[28] = b, t[29] = O) : O = t[29];
|
|
735
735
|
const I = L ? "border-destructive" : "border-input", H = $ === "none" && "resize-none", S = $ === "vertical" && "resize-y", z = $ === "horizontal" && "resize-x", K = $ === "both" && "resize";
|
|
736
|
-
let
|
|
737
|
-
t[30] !== H || t[31] !== S || t[32] !== z || t[33] !== K || t[34] !== I ? (
|
|
736
|
+
let Z;
|
|
737
|
+
t[30] !== H || t[31] !== S || t[32] !== z || t[33] !== K || t[34] !== I ? (Z = w("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", I, H, S, z, K), t[30] = H, t[31] = S, t[32] = z, t[33] = K, t[34] = I, t[35] = Z) : Z = t[35];
|
|
738
738
|
const J = L || void 0, X = b || void 0, oe = n || C ? B : void 0;
|
|
739
739
|
let se;
|
|
740
|
-
t[36] !==
|
|
740
|
+
t[36] !== E || t[37] !== _ || t[38] !== j || t[39] !== k || t[40] !== p || t[41] !== e || t[42] !== b || t[43] !== y || t[44] !== Z || t[45] !== J || t[46] !== X || t[47] !== oe || t[48] !== x ? (se = /* @__PURE__ */ c("textarea", { ref: e, id: E, placeholder: k, rows: y, maxLength: _, value: x, onChange: j, required: b, className: Z, "aria-invalid": J, "aria-required": X, "aria-describedby": oe, ...p }), t[36] = E, t[37] = _, t[38] = j, t[39] = k, t[40] = p, t[41] = e, t[42] = b, t[43] = y, t[44] = Z, t[45] = J, t[46] = X, t[47] = oe, t[48] = x, t[49] = se) : se = t[49];
|
|
741
741
|
let le;
|
|
742
|
-
t[50] !== D || t[51] !==
|
|
742
|
+
t[50] !== D || t[51] !== _ || t[52] !== g ? (le = g && _ && /* @__PURE__ */ M("div", { className: "absolute bottom-2 right-2 text-xs text-muted-foreground", children: [
|
|
743
743
|
D,
|
|
744
744
|
" / ",
|
|
745
|
-
|
|
746
|
-
] }), t[50] = D, t[51] =
|
|
745
|
+
_
|
|
746
|
+
] }), t[50] = D, t[51] = _, t[52] = g, t[53] = le) : le = t[53];
|
|
747
747
|
let ee;
|
|
748
748
|
t[54] !== se || t[55] !== le ? (ee = /* @__PURE__ */ M("div", { className: "relative", children: [
|
|
749
749
|
se,
|
|
750
750
|
le
|
|
751
751
|
] }), t[54] = se, t[55] = le, t[56] = ee) : ee = t[56];
|
|
752
|
-
let
|
|
753
|
-
t[57] !== C || t[58] !== L || t[59] !== B || t[60] !== n ? (
|
|
752
|
+
let U;
|
|
753
|
+
t[57] !== C || t[58] !== L || t[59] !== B || t[60] !== n ? (U = (n || C) && /* @__PURE__ */ c("p", { id: B, className: w("text-xs", L ? "text-destructive" : "text-muted-foreground"), children: C || n }), t[57] = C, t[58] = L, t[59] = B, t[60] = n, t[61] = U) : U = t[61];
|
|
754
754
|
let ce;
|
|
755
|
-
return t[62] !== ee || t[63] !==
|
|
755
|
+
return t[62] !== ee || t[63] !== U || t[64] !== R || t[65] !== O ? (ce = /* @__PURE__ */ M("div", { className: R, children: [
|
|
756
756
|
O,
|
|
757
757
|
ee,
|
|
758
|
-
|
|
759
|
-
] }), t[62] = ee, t[63] =
|
|
758
|
+
U
|
|
759
|
+
] }), t[62] = ee, t[63] = U, t[64] = R, t[65] = O, t[66] = ce) : ce = t[66], ce;
|
|
760
760
|
});
|
|
761
761
|
Qs.displayName = "Textarea";
|
|
762
762
|
const er = qt.Root, tr = qt.Trigger, el = W.forwardRef((a, e) => {
|
|
@@ -894,8 +894,8 @@ const lr = W.forwardRef((a, e) => {
|
|
|
894
894
|
return t[5] !== l || t[6] !== e || t[7] !== r ? (o = /* @__PURE__ */ c(De.Separator, { ref: e, className: r, ...l }), t[5] = l, t[6] = e, t[7] = r, t[8] = o) : o = t[8], o;
|
|
895
895
|
});
|
|
896
896
|
lr.displayName = De.Separator.displayName;
|
|
897
|
-
|
|
898
|
-
|
|
897
|
+
Et.extend(Pl);
|
|
898
|
+
Et.extend(Yl);
|
|
899
899
|
const rr = W.memo(function({
|
|
900
900
|
month: e,
|
|
901
901
|
onMonthChange: t
|
|
@@ -955,7 +955,7 @@ const rr = W.memo(function({
|
|
|
955
955
|
}
|
|
956
956
|
}, rs = W.memo((a) => {
|
|
957
957
|
const e = P(151);
|
|
958
|
-
let t, s, l, r, o, n, i, d, f, m, u, p, b, g, v, h, N, x, k, y, $, D, F, T,
|
|
958
|
+
let t, s, l, r, o, n, i, d, f, m, u, p, b, g, v, h, N, x, k, y, $, D, F, T, E, C;
|
|
959
959
|
e[0] !== a ? ({
|
|
960
960
|
label: f,
|
|
961
961
|
placeholder: h,
|
|
@@ -981,13 +981,13 @@ const rr = W.memo(function({
|
|
|
981
981
|
onOpenChange: g,
|
|
982
982
|
dayPickerProps: r,
|
|
983
983
|
manual: T,
|
|
984
|
-
popoverAlign:
|
|
984
|
+
popoverAlign: E,
|
|
985
985
|
...k
|
|
986
|
-
} = a, e[0] = a, e[1] = t, e[2] = s, e[3] = l, e[4] = r, e[5] = o, e[6] = n, e[7] = i, e[8] = d, e[9] = f, e[10] = m, e[11] = u, e[12] = p, e[13] = b, e[14] = g, e[15] = v, e[16] = h, e[17] = N, e[18] = x, e[19] = k, e[20] = y, e[21] = $, e[22] = D, e[23] = F, e[24] = T, e[25] =
|
|
987
|
-
const L = $ === void 0 ? "en" : $,
|
|
986
|
+
} = a, e[0] = a, e[1] = t, e[2] = s, e[3] = l, e[4] = r, e[5] = o, e[6] = n, e[7] = i, e[8] = d, e[9] = f, e[10] = m, e[11] = u, e[12] = p, e[13] = b, e[14] = g, e[15] = v, e[16] = h, e[17] = N, e[18] = x, e[19] = k, e[20] = y, e[21] = $, e[22] = D, e[23] = F, e[24] = T, e[25] = E, e[26] = C) : (t = e[1], s = e[2], l = e[3], r = e[4], o = e[5], n = e[6], i = e[7], d = e[8], f = e[9], m = e[10], u = e[11], p = e[12], b = e[13], g = e[14], v = e[15], h = e[16], N = e[17], x = e[18], k = e[19], y = e[20], $ = e[21], D = e[22], F = e[23], T = e[24], E = e[25], C = e[26]);
|
|
987
|
+
const L = $ === void 0 ? "en" : $, _ = D === void 0 ? "YYYY-MM-DD" : D, B = F === void 0 ? !1 : F, A = T === void 0 ? !1 : T, Y = E === void 0 ? "end" : E, [q, j] = W.useState(!1), R = l !== void 0 ? l : q, O = g || j, [I, H] = W.useState(""), [S, z] = W.useState(C);
|
|
988
988
|
let K;
|
|
989
989
|
e[27] !== s || e[28] !== C ? (K = s ?? C ?? /* @__PURE__ */ new Date(), e[27] = s, e[28] = C, e[29] = K) : K = e[29];
|
|
990
|
-
const [
|
|
990
|
+
const [Z, J] = W.useState(K), X = s ?? Z;
|
|
991
991
|
let oe;
|
|
992
992
|
e[30] !== b ? (oe = (ie) => {
|
|
993
993
|
b ? b(ie) : J(ie);
|
|
@@ -995,7 +995,7 @@ const rr = W.memo(function({
|
|
|
995
995
|
const se = oe;
|
|
996
996
|
let le;
|
|
997
997
|
e: {
|
|
998
|
-
const ie = ar[
|
|
998
|
+
const ie = ar[_];
|
|
999
999
|
if (!ie) {
|
|
1000
1000
|
let re;
|
|
1001
1001
|
e[32] === Symbol.for("react.memo_cache_sentinel") ? (re = {
|
|
@@ -1007,28 +1007,28 @@ const rr = W.memo(function({
|
|
|
1007
1007
|
le = ie;
|
|
1008
1008
|
}
|
|
1009
1009
|
const ee = le;
|
|
1010
|
-
let
|
|
1010
|
+
let U;
|
|
1011
1011
|
e: {
|
|
1012
1012
|
if (h) {
|
|
1013
|
-
|
|
1013
|
+
U = h;
|
|
1014
1014
|
break e;
|
|
1015
1015
|
}
|
|
1016
1016
|
if (!A) {
|
|
1017
|
-
|
|
1017
|
+
U = "Click to select date";
|
|
1018
1018
|
break e;
|
|
1019
1019
|
}
|
|
1020
1020
|
let ie;
|
|
1021
|
-
e[33] !==
|
|
1021
|
+
e[33] !== _ ? (ie = _.toLowerCase(), e[33] = _, e[34] = ie) : ie = e[34], U = ie;
|
|
1022
1022
|
}
|
|
1023
|
-
const ce =
|
|
1024
|
-
let
|
|
1025
|
-
e[35] !==
|
|
1023
|
+
const ce = U;
|
|
1024
|
+
let V;
|
|
1025
|
+
e[35] !== _ || e[36] !== ee ? (V = (ie) => {
|
|
1026
1026
|
const re = ie.replace(/\D/g, ""), {
|
|
1027
1027
|
separator: Ae
|
|
1028
1028
|
} = ee;
|
|
1029
1029
|
if (re.length <= 2)
|
|
1030
1030
|
return re;
|
|
1031
|
-
switch (
|
|
1031
|
+
switch (_) {
|
|
1032
1032
|
case "MM/DD/YYYY":
|
|
1033
1033
|
case "DD/MM/YYYY":
|
|
1034
1034
|
return re.length <= 4 ? `${re.substring(0, 2)}${Ae}${re.substring(2)}` : `${re.substring(0, 2)}${Ae}${re.substring(2, 4)}${Ae}${re.substring(4, 8)}`;
|
|
@@ -1041,16 +1041,16 @@ const rr = W.memo(function({
|
|
|
1041
1041
|
default:
|
|
1042
1042
|
return ie;
|
|
1043
1043
|
}
|
|
1044
|
-
}, e[35] =
|
|
1045
|
-
const de =
|
|
1044
|
+
}, e[35] = _, e[36] = ee, e[37] = V) : V = e[37];
|
|
1045
|
+
const de = V;
|
|
1046
1046
|
let ae;
|
|
1047
|
-
e[38] !==
|
|
1047
|
+
e[38] !== _ ? (ae = (ie) => {
|
|
1048
1048
|
const re = ie.trim();
|
|
1049
|
-
return re &&
|
|
1050
|
-
}, e[38] =
|
|
1049
|
+
return re && Et(re, _, !0).isValid() ? Et(re, _) : null;
|
|
1050
|
+
}, e[38] = _, e[39] = ae) : ae = e[39];
|
|
1051
1051
|
const me = ae;
|
|
1052
1052
|
let ne;
|
|
1053
|
-
e[40] !==
|
|
1053
|
+
e[40] !== _ ? (ne = (ie) => Et(ie).format(_), e[40] = _, e[41] = ne) : ne = e[41];
|
|
1054
1054
|
const G = ne;
|
|
1055
1055
|
let ue;
|
|
1056
1056
|
e[42] === Symbol.for("react.memo_cache_sentinel") ? (ue = {
|
|
@@ -1080,7 +1080,7 @@ const rr = W.memo(function({
|
|
|
1080
1080
|
const Ye = ue;
|
|
1081
1081
|
let fe, ke;
|
|
1082
1082
|
e[43] !== s || e[44] !== G || e[45] !== L || e[46] !== C ? (fe = () => {
|
|
1083
|
-
H(C ? G(C) : ""), z(C), C && !s && J(C),
|
|
1083
|
+
H(C ? G(C) : ""), z(C), C && !s && J(C), Et.locale(L);
|
|
1084
1084
|
}, ke = [C, L, G, s], e[43] = s, e[44] = G, e[45] = L, e[46] = C, e[47] = fe, e[48] = ke) : (fe = e[47], ke = e[48]), W.useEffect(fe, ke);
|
|
1085
1085
|
let Fe;
|
|
1086
1086
|
e[49] !== de || e[50] !== A || e[51] !== m || e[52] !== u || e[53] !== p || e[54] !== v || e[55] !== me ? (Fe = (ie) => {
|
|
@@ -1099,7 +1099,7 @@ const rr = W.memo(function({
|
|
|
1099
1099
|
(!u || pt >= u) && (!m || pt <= m) && (z(pt), v == null || v(pt), p == null || p(pt));
|
|
1100
1100
|
}
|
|
1101
1101
|
}, e[49] = de, e[50] = A, e[51] = m, e[52] = u, e[53] = p, e[54] = v, e[55] = me, e[56] = Fe) : Fe = e[56];
|
|
1102
|
-
const
|
|
1102
|
+
const Ee = Fe;
|
|
1103
1103
|
let Te;
|
|
1104
1104
|
e[57] !== G || e[58] !== S ? (Te = () => {
|
|
1105
1105
|
S && H(G(S));
|
|
@@ -1142,11 +1142,11 @@ const rr = W.memo(function({
|
|
|
1142
1142
|
e[81] !== o || e[82] !== O || e[83] !== A || e[84] !== N ? (be = () => {
|
|
1143
1143
|
!A && !o && !N && O(!0);
|
|
1144
1144
|
}, e[81] = o, e[82] = O, e[83] = A, e[84] = N, e[85] = be) : be = e[85];
|
|
1145
|
-
const
|
|
1145
|
+
const _e = n && "border border-destructive focus-visible:ring-destructive", $e = !A && "cursor-pointer";
|
|
1146
1146
|
let Ke;
|
|
1147
|
-
e[86] !==
|
|
1147
|
+
e[86] !== _e || e[87] !== $e ? (Ke = w("w-full pr-12", _e, $e), e[86] = _e, e[87] = $e, e[88] = Ke) : Ke = e[88];
|
|
1148
1148
|
let Be;
|
|
1149
|
-
e[89] !== o || e[90] !== ce || e[91] !== we || e[92] !==
|
|
1149
|
+
e[89] !== o || e[90] !== ce || e[91] !== we || e[92] !== Ee || e[93] !== He || e[94] !== I || e[95] !== Se || e[96] !== be || e[97] !== Ke ? (Be = /* @__PURE__ */ c(xt, { type: "text", value: I, onChange: Ee, onBlur: we, onKeyDown: He, placeholder: ce, disabled: o, readOnly: Se, onClick: be, className: Ke }), e[89] = o, e[90] = ce, e[91] = we, e[92] = Ee, e[93] = He, e[94] = I, e[95] = Se, e[96] = be, e[97] = Ke, e[98] = Be) : Be = e[98];
|
|
1150
1150
|
let Ve;
|
|
1151
1151
|
e[99] !== B || e[100] !== o || e[101] !== Ne || e[102] !== S || e[103] !== N || e[104] !== C ? (Ve = B && (C ?? S) && !o && !N && /* @__PURE__ */ c("button", { type: "button", onClick: Ne, 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(it, { className: "h-4 w-4 text-muted-foreground" }) }), e[99] = B, e[100] = o, e[101] = Ne, e[102] = S, e[103] = N, e[104] = C, e[105] = Ve) : Ve = e[105];
|
|
1152
1152
|
let Ue;
|
|
@@ -1193,17 +1193,17 @@ const rr = W.memo(function({
|
|
|
1193
1193
|
] }), e[145] = k, e[146] = te, e[147] = Q, e[148] = ft, e[149] = rt, e[150] = Qe) : Qe = e[150], Qe;
|
|
1194
1194
|
});
|
|
1195
1195
|
rs.displayName = "DatePickerField";
|
|
1196
|
-
let
|
|
1196
|
+
let _t = null;
|
|
1197
1197
|
function Ds(a) {
|
|
1198
|
-
if (
|
|
1198
|
+
if (_t && _t !== a)
|
|
1199
1199
|
try {
|
|
1200
|
-
|
|
1200
|
+
_t();
|
|
1201
1201
|
} catch {
|
|
1202
1202
|
}
|
|
1203
|
-
|
|
1203
|
+
_t = a;
|
|
1204
1204
|
}
|
|
1205
1205
|
function Ys(a) {
|
|
1206
|
-
|
|
1206
|
+
_t === a && (_t = null);
|
|
1207
1207
|
}
|
|
1208
1208
|
function rl() {
|
|
1209
1209
|
const a = P(9), [e, t] = pe(0);
|
|
@@ -1272,9 +1272,9 @@ function Wt(a) {
|
|
|
1272
1272
|
className: N,
|
|
1273
1273
|
variant: x,
|
|
1274
1274
|
selectClassName: k
|
|
1275
|
-
} = a, y = s === void 0 ? "Select option" : s, $ = v === void 0 ? !1 : v, D = h === void 0 ? !1 : h, F = x === void 0 ? "default" : x, T = Ze(),
|
|
1275
|
+
} = a, y = s === void 0 ? "Select option" : s, $ = v === void 0 ? !1 : v, D = h === void 0 ? !1 : h, F = x === void 0 ? "default" : x, T = Ze(), E = Ze(), C = Ze(), {
|
|
1276
1276
|
instanceKey: L,
|
|
1277
|
-
containerProps:
|
|
1277
|
+
containerProps: _,
|
|
1278
1278
|
onOpenChange: B
|
|
1279
1279
|
} = rl(), A = f || i, Y = m || d, q = r !== void 0, [j, R] = pe(void 0), O = q ? r : j;
|
|
1280
1280
|
let I;
|
|
@@ -1296,16 +1296,16 @@ function Wt(a) {
|
|
|
1296
1296
|
const z = S;
|
|
1297
1297
|
let K;
|
|
1298
1298
|
e[6] !== N ? (K = w("space-y-1", N), e[6] = N, e[7] = K) : K = e[7];
|
|
1299
|
-
let
|
|
1300
|
-
e[8] !== g || e[9] !== t || e[10] !== C || e[11] !== b || e[12] !== T ? (
|
|
1299
|
+
let Z;
|
|
1300
|
+
e[8] !== g || e[9] !== t || e[10] !== C || e[11] !== b || e[12] !== T ? (Z = t && /* @__PURE__ */ M(Lt, { id: C, htmlFor: T, className: w("text-sm font-medium", g ? "text-gray-400" : "text-gray-700"), children: [
|
|
1301
1301
|
t,
|
|
1302
1302
|
b && /* @__PURE__ */ c("span", { className: "text-destructive ml-1", "aria-label": "required", children: "*" })
|
|
1303
|
-
] }), e[8] = g, e[9] = t, e[10] = C, e[11] = b, e[12] = T, e[13] =
|
|
1303
|
+
] }), e[8] = g, e[9] = t, e[10] = C, e[11] = b, e[12] = T, e[13] = Z) : Z = e[13];
|
|
1304
1304
|
let J;
|
|
1305
1305
|
e[14] !== A ? (J = A && /* @__PURE__ */ c("div", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none z-10", children: A }), e[14] = A, e[15] = J) : J = e[15];
|
|
1306
|
-
const X = O && O !== "" ? O : void 0, oe = u || p ?
|
|
1306
|
+
const X = O && O !== "" ? O : void 0, oe = u || p ? E : void 0, se = !!p || void 0, le = b || void 0, ee = g || $, U = p && "border-destructive", ce = F === "gray" && "bg-gray-100 border-gray-300 text-gray-700", V = (g || $) && "opacity-50 cursor-not-allowed";
|
|
1307
1307
|
let de;
|
|
1308
|
-
e[16] !== k || e[17] !==
|
|
1308
|
+
e[16] !== k || e[17] !== U || e[18] !== ce || e[19] !== V ? (de = w("border-input", U, ce, V, k), e[16] = k, e[17] = U, e[18] = ce, e[19] = V, e[20] = de) : de = e[20];
|
|
1309
1309
|
let ae;
|
|
1310
1310
|
e[21] !== A ? (ae = A && /* @__PURE__ */ c("div", { className: "text-gray-400", children: A }), e[21] = A, e[22] = ae) : ae = e[22];
|
|
1311
1311
|
const me = $ ? "Loading..." : y;
|
|
@@ -1327,16 +1327,16 @@ function Wt(a) {
|
|
|
1327
1327
|
let fe;
|
|
1328
1328
|
e[39] !== C || e[40] !== T || e[41] !== oe || e[42] !== se || e[43] !== le || e[44] !== ee || e[45] !== de || e[46] !== Ye ? (fe = /* @__PURE__ */ c(ss, { id: T, "aria-labelledby": C, "aria-describedby": oe, "aria-invalid": se, "aria-required": le, disabled: ee, className: de, children: Ye }), e[39] = C, e[40] = T, e[41] = oe, e[42] = se, e[43] = le, e[44] = ee, e[45] = de, e[46] = Ye, e[47] = fe) : fe = e[47];
|
|
1329
1329
|
let ke;
|
|
1330
|
-
e[48] !==
|
|
1330
|
+
e[48] !== _ || e[49] !== fe ? (ke = /* @__PURE__ */ c("div", { ..._, children: fe }), e[48] = _, e[49] = fe, e[50] = ke) : ke = e[50];
|
|
1331
1331
|
let Fe;
|
|
1332
1332
|
e[51] !== z.ungrouped ? (Fe = z.ungrouped.map(cr), e[51] = z.ungrouped, e[52] = Fe) : Fe = e[52];
|
|
1333
|
-
let
|
|
1334
|
-
e[53] !== z.groups ? (
|
|
1333
|
+
let Ee;
|
|
1334
|
+
e[53] !== z.groups ? (Ee = Array.from(z.groups.entries()).map(nr), e[53] = z.groups, e[54] = Ee) : Ee = e[54];
|
|
1335
1335
|
let Te;
|
|
1336
|
-
e[55] !== Fe || e[56] !==
|
|
1336
|
+
e[55] !== Fe || e[56] !== Ee ? (Te = /* @__PURE__ */ M(ls, { children: [
|
|
1337
1337
|
Fe,
|
|
1338
|
-
|
|
1339
|
-
] }), e[55] = Fe, e[56] =
|
|
1338
|
+
Ee
|
|
1339
|
+
] }), e[55] = Fe, e[56] = Ee, e[57] = Te) : Te = e[57];
|
|
1340
1340
|
let we;
|
|
1341
1341
|
e[58] !== H || e[59] !== L || e[60] !== B || e[61] !== X || e[62] !== ke || e[63] !== Te ? (we = /* @__PURE__ */ M($s, { value: X, onValueChange: H, onOpenChange: B, children: [
|
|
1342
1342
|
ke,
|
|
@@ -1348,13 +1348,13 @@ function Wt(a) {
|
|
|
1348
1348
|
we
|
|
1349
1349
|
] }), e[65] = we, e[66] = J, e[67] = Ce) : Ce = e[67];
|
|
1350
1350
|
let qe;
|
|
1351
|
-
e[68] !== g || e[69] !== p || e[70] !==
|
|
1351
|
+
e[68] !== g || e[69] !== p || e[70] !== E || e[71] !== u ? (qe = (u || p) && /* @__PURE__ */ c("p", { id: E, className: w("text-xs", p ? "text-destructive" : g ? "text-gray-400" : "text-gray-500"), role: p ? "alert" : void 0, children: p || u }), e[68] = g, e[69] = p, e[70] = E, e[71] = u, e[72] = qe) : qe = e[72];
|
|
1352
1352
|
let je;
|
|
1353
|
-
return e[73] !== Ce || e[74] !== qe || e[75] !== K || e[76] !==
|
|
1354
|
-
|
|
1353
|
+
return e[73] !== Ce || e[74] !== qe || e[75] !== K || e[76] !== Z ? (je = /* @__PURE__ */ M("div", { className: K, children: [
|
|
1354
|
+
Z,
|
|
1355
1355
|
Ce,
|
|
1356
1356
|
qe
|
|
1357
|
-
] }), e[73] = Ce, e[74] = qe, e[75] = K, e[76] =
|
|
1357
|
+
] }), e[73] = Ce, e[74] = qe, e[75] = K, e[76] = Z, e[77] = je) : je = e[77], je;
|
|
1358
1358
|
}
|
|
1359
1359
|
function nr(a) {
|
|
1360
1360
|
const [e, t] = a;
|
|
@@ -1390,8 +1390,8 @@ const al = Nt.Provider, ol = Nt.Root, nl = Nt.Trigger, zs = W.forwardRef((a, e)
|
|
|
1390
1390
|
const f = o === void 0 ? 4 : o, m = n === void 0 ? !0 : n, u = i === void 0 ? "bg-black/80" : i, p = d === void 0 ? "text-white" : d, b = mr;
|
|
1391
1391
|
let g, v, h, N, x, k, y, $, D;
|
|
1392
1392
|
if (t[8] !== u || t[9] !== s || t[10] !== l || t[11] !== r || t[12] !== e || t[13] !== m || t[14] !== f || t[15] !== p) {
|
|
1393
|
-
const
|
|
1394
|
-
v = Nt.Portal, g = Nt.Content, x = e, k = f, y = 8, t[25] !== u || t[26] !== l || t[27] !== p ? ($ = w("z-[10000] rounded-xl px-3 py-1.5 text-sm shadow-xl transition-all max-w-72 break-words", u, p, "animate-in fade-in zoom-in-95", "data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-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", "origin-[--radix-tooltip-content-transform-origin]", l), t[25] = u, t[26] = l, t[27] = p, t[28] = $) : $ = t[28], D = r, h = s, N = m && /* @__PURE__ */ c(Nt.Arrow, { className: w("h-2 w-4",
|
|
1393
|
+
const E = b(u);
|
|
1394
|
+
v = Nt.Portal, g = Nt.Content, x = e, k = f, y = 8, t[25] !== u || t[26] !== l || t[27] !== p ? ($ = w("z-[10000] rounded-xl px-3 py-1.5 text-sm shadow-xl transition-all max-w-72 break-words", u, p, "animate-in fade-in zoom-in-95", "data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-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", "origin-[--radix-tooltip-content-transform-origin]", l), t[25] = u, t[26] = l, t[27] = p, t[28] = $) : $ = t[28], D = r, h = s, N = m && /* @__PURE__ */ c(Nt.Arrow, { className: w("h-2 w-4", E) }), t[8] = u, t[9] = s, t[10] = l, t[11] = r, t[12] = e, t[13] = m, t[14] = f, t[15] = p, t[16] = g, t[17] = v, t[18] = h, t[19] = N, t[20] = x, t[21] = k, t[22] = y, t[23] = $, t[24] = D;
|
|
1395
1395
|
} else
|
|
1396
1396
|
g = t[16], v = t[17], h = t[18], N = t[19], x = t[20], k = t[21], y = t[22], $ = t[23], D = t[24];
|
|
1397
1397
|
let F;
|
|
@@ -1430,7 +1430,7 @@ const fr = (a) => {
|
|
|
1430
1430
|
const N = m === void 0 ? "filled" : m, x = u === void 0 ? "default" : u, k = p === void 0 ? "medium" : p, y = b === void 0 ? "pill" : b, $ = g === void 0 ? !1 : g, D = v === void 0 ? !1 : v, F = h === void 0 ? "" : h;
|
|
1431
1431
|
let T;
|
|
1432
1432
|
if (e[17] !== F || e[18] !== x || e[19] !== D || e[20] !== i || e[21] !== y || e[22] !== k || e[23] !== N) {
|
|
1433
|
-
const
|
|
1433
|
+
const V = {
|
|
1434
1434
|
small: "px-2 py-0.5 text-xs",
|
|
1435
1435
|
medium: "px-3 py-1 text-sm",
|
|
1436
1436
|
large: "px-4 py-1.5 text-base"
|
|
@@ -1479,37 +1479,41 @@ const fr = (a) => {
|
|
|
1479
1479
|
soft: "bg-brandBlue/10 text-brandBlue"
|
|
1480
1480
|
}
|
|
1481
1481
|
}, me = D ? "opacity-50 cursor-not-allowed" : "", ne = i && !D ? "cursor-pointer" : "";
|
|
1482
|
-
T = w("inline-flex items-center gap-1 font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",
|
|
1482
|
+
T = w("inline-flex items-center gap-1 font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2", V[k], de[y], ae[x][N], me, ne, i && !D && "focus:ring-2 focus:ring-offset-2", F), e[17] = F, e[18] = x, e[19] = D, e[20] = i, e[21] = y, e[22] = k, e[23] = N, e[24] = T;
|
|
1483
1483
|
} else
|
|
1484
1484
|
T = e[24];
|
|
1485
|
-
const
|
|
1485
|
+
const E = T;
|
|
1486
1486
|
let C;
|
|
1487
|
-
e[25] !== D || e[26] !== i ? (C = (
|
|
1488
|
-
!D && i && i(
|
|
1487
|
+
e[25] !== D || e[26] !== i ? (C = (V) => {
|
|
1488
|
+
!D && i && i(V);
|
|
1489
1489
|
}, e[25] = D, e[26] = i, e[27] = C) : C = e[27];
|
|
1490
1490
|
const L = C;
|
|
1491
|
-
let
|
|
1492
|
-
e[28] !== D || e[29] !== L || e[30] !== i ? (
|
|
1493
|
-
!D && i && (
|
|
1494
|
-
}, e[28] = D, e[29] = L, e[30] = i, e[31] =
|
|
1495
|
-
const B =
|
|
1491
|
+
let _;
|
|
1492
|
+
e[28] !== D || e[29] !== L || e[30] !== i ? (_ = (V) => {
|
|
1493
|
+
!D && i && (V.key === "Enter" || V.key === " ") && (V.preventDefault(), L(V));
|
|
1494
|
+
}, e[28] = D, e[29] = L, e[30] = i, e[31] = _) : _ = e[31];
|
|
1495
|
+
const B = _;
|
|
1496
1496
|
let A;
|
|
1497
|
-
e[32] !== D || e[33] !== d ? (A = (
|
|
1498
|
-
|
|
1497
|
+
e[32] !== D || e[33] !== d ? (A = (V) => {
|
|
1498
|
+
V.stopPropagation(), !D && d && d(V);
|
|
1499
1499
|
}, e[32] = D, e[33] = d, e[34] = A) : A = e[34];
|
|
1500
1500
|
const Y = A;
|
|
1501
1501
|
let q;
|
|
1502
|
-
e[35] !== D || e[36] !== Y || e[37] !== d ? (q = (
|
|
1503
|
-
|
|
1502
|
+
e[35] !== D || e[36] !== Y || e[37] !== d ? (q = (V) => {
|
|
1503
|
+
if (V.key === "Enter") {
|
|
1504
|
+
V.preventDefault(), V.stopPropagation();
|
|
1505
|
+
return;
|
|
1506
|
+
}
|
|
1507
|
+
!D && d && (V.key === " " || V.key === "Delete" || V.key === "Backspace") && (V.preventDefault(), Y(V));
|
|
1504
1508
|
}, e[35] = D, e[36] = Y, e[37] = d, e[38] = q) : q = e[38];
|
|
1505
1509
|
const j = q, R = k === "small" ? 12 : k === "large" ? 18 : 14, O = tt(null), [I, H] = pe(!1);
|
|
1506
1510
|
let S;
|
|
1507
1511
|
e[39] === Symbol.for("react.memo_cache_sentinel") ? (S = () => {
|
|
1508
|
-
const
|
|
1509
|
-
if (!
|
|
1512
|
+
const V = O.current;
|
|
1513
|
+
if (!V)
|
|
1510
1514
|
return;
|
|
1511
1515
|
const de = () => {
|
|
1512
|
-
|
|
1516
|
+
V && H(V.scrollWidth > V.clientWidth);
|
|
1513
1517
|
};
|
|
1514
1518
|
return de(), window.addEventListener("resize", de), () => {
|
|
1515
1519
|
window.removeEventListener("resize", de);
|
|
@@ -1519,7 +1523,7 @@ const fr = (a) => {
|
|
|
1519
1523
|
e[40] !== n ? (z = [n], e[40] = n, e[41] = z) : z = e[41], Ie(S, z);
|
|
1520
1524
|
let K;
|
|
1521
1525
|
e[42] !== n ? (K = /* @__PURE__ */ c("span", { ref: O, className: "max-w-72 truncate", children: n }), e[42] = n, e[43] = K) : K = e[43];
|
|
1522
|
-
const
|
|
1526
|
+
const Z = K, J = i && !D ? 0 : void 0, X = i ? "button" : void 0, oe = t || (i ? `${n} chip` : void 0);
|
|
1523
1527
|
let se;
|
|
1524
1528
|
e[44] !== s || e[45] !== n || e[46] !== k ? (se = s && /* @__PURE__ */ c("div", { className: w("rounded-full overflow-hidden", k === "small" ? "w-4 h-4" : k === "large" ? "w-6 h-6" : "w-5 h-5"), children: typeof s == "string" ? /* @__PURE__ */ c("img", { src: s, alt: `Avatar for ${n}`, className: "w-full h-full object-cover" }) : s }), e[44] = s, e[45] = n, e[46] = k, e[47] = se) : se = e[47];
|
|
1525
1529
|
let le;
|
|
@@ -1527,19 +1531,19 @@ const fr = (a) => {
|
|
|
1527
1531
|
size: R
|
|
1528
1532
|
}) : o }), e[48] = s, e[49] = o, e[50] = R, e[51] = le) : le = e[51];
|
|
1529
1533
|
let ee;
|
|
1530
|
-
e[52] !== I || e[53] !== n || e[54] !==
|
|
1531
|
-
/* @__PURE__ */ c(nl, { asChild: !0, children:
|
|
1534
|
+
e[52] !== I || e[53] !== n || e[54] !== Z ? (ee = I ? /* @__PURE__ */ c(al, { delayDuration: 0, skipDelayDuration: 0, children: /* @__PURE__ */ M(ol, { children: [
|
|
1535
|
+
/* @__PURE__ */ c(nl, { asChild: !0, children: Z }),
|
|
1532
1536
|
/* @__PURE__ */ c(zs, { children: n })
|
|
1533
|
-
] }) }) :
|
|
1534
|
-
let
|
|
1535
|
-
e[56] !== l || e[57] !== $ || e[58] !== r || e[59] !== D || e[60] !== Y || e[61] !== j || e[62] !== R || e[63] !== n ? (
|
|
1537
|
+
] }) }) : Z, e[52] = I, e[53] = n, e[54] = Z, e[55] = ee) : ee = e[55];
|
|
1538
|
+
let U;
|
|
1539
|
+
e[56] !== l || e[57] !== $ || e[58] !== r || e[59] !== D || e[60] !== Y || e[61] !== j || e[62] !== R || e[63] !== n ? (U = $ && /* @__PURE__ */ c("button", { onClick: Y, onKeyDown: j, className: w("ml-1 rounded-full p-0.5 transition-colors focus:outline-none focus:ring-1 focus:ring-offset-1", l, D ? "cursor-not-allowed" : ""), disabled: D, "aria-label": r || `Remove ${n}`, tabIndex: D ? -1 : 0, children: /* @__PURE__ */ c(it, { size: R }) }), e[56] = l, e[57] = $, e[58] = r, e[59] = D, e[60] = Y, e[61] = j, e[62] = R, e[63] = n, e[64] = U) : U = e[64];
|
|
1536
1540
|
let ce;
|
|
1537
|
-
return e[65] !==
|
|
1541
|
+
return e[65] !== E || e[66] !== D || e[67] !== L || e[68] !== B || e[69] !== f || e[70] !== J || e[71] !== X || e[72] !== oe || e[73] !== se || e[74] !== le || e[75] !== ee || e[76] !== U ? (ce = /* @__PURE__ */ M("div", { className: E, onClick: L, onKeyDown: B, tabIndex: J, role: X, ...f, "aria-label": oe, "aria-disabled": D, children: [
|
|
1538
1542
|
se,
|
|
1539
1543
|
le,
|
|
1540
1544
|
ee,
|
|
1541
|
-
|
|
1542
|
-
] }), e[65] =
|
|
1545
|
+
U
|
|
1546
|
+
] }), e[65] = E, e[66] = D, e[67] = L, e[68] = B, e[69] = f, e[70] = J, e[71] = X, e[72] = oe, e[73] = se, e[74] = le, e[75] = ee, e[76] = U, e[77] = ce) : ce = e[77], ce;
|
|
1543
1547
|
}, pr = [{
|
|
1544
1548
|
value: "us",
|
|
1545
1549
|
label: "United States"
|
|
@@ -1723,19 +1727,19 @@ const vr = [{
|
|
|
1723
1727
|
dateTo: N
|
|
1724
1728
|
}, e[0] = g, e[1] = v, e[2] = h, e[3] = N, e[4] = x) : x = e[4];
|
|
1725
1729
|
const [k, y] = pe(x), [$, D] = pe(!1), [F, T] = pe(!1);
|
|
1726
|
-
let _;
|
|
1727
|
-
e[5] !== k.dateFrom ? (_ = k.dateFrom ?? /* @__PURE__ */ new Date(), e[5] = k.dateFrom, e[6] = _) : _ = e[6];
|
|
1728
|
-
const [C, L] = pe(_);
|
|
1729
1730
|
let E;
|
|
1730
|
-
e[
|
|
1731
|
-
const [
|
|
1731
|
+
e[5] !== k.dateFrom ? (E = k.dateFrom ?? /* @__PURE__ */ new Date(), e[5] = k.dateFrom, e[6] = E) : E = e[6];
|
|
1732
|
+
const [C, L] = pe(E);
|
|
1733
|
+
let _;
|
|
1734
|
+
e[7] !== k.dateTo ? (_ = k.dateTo ?? /* @__PURE__ */ new Date(), e[7] = k.dateTo, e[8] = _) : _ = e[8];
|
|
1735
|
+
const [B, A] = pe(_);
|
|
1732
1736
|
let Y;
|
|
1733
|
-
e[9] !== k || e[10] !== i ? (Y = (
|
|
1734
|
-
const
|
|
1737
|
+
e[9] !== k || e[10] !== i ? (Y = (U, ce) => {
|
|
1738
|
+
const V = {
|
|
1735
1739
|
...k,
|
|
1736
|
-
[
|
|
1740
|
+
[U]: ce
|
|
1737
1741
|
};
|
|
1738
|
-
y(
|
|
1742
|
+
y(V), i == null || i(V);
|
|
1739
1743
|
}, e[9] = k, e[10] = i, e[11] = Y) : Y = e[11];
|
|
1740
1744
|
const q = Y;
|
|
1741
1745
|
let j;
|
|
@@ -1751,7 +1755,7 @@ const vr = [{
|
|
|
1751
1755
|
let I;
|
|
1752
1756
|
e[14] !== t ? (I = w("space-y-4", t), e[14] = t, e[15] = I) : I = e[15];
|
|
1753
1757
|
let H;
|
|
1754
|
-
e[16] !== n ? (H = (
|
|
1758
|
+
e[16] !== n ? (H = (U) => n == null ? void 0 : n(U.target.value), e[16] = n, e[17] = H) : H = e[17];
|
|
1755
1759
|
let S;
|
|
1756
1760
|
e[18] !== m || e[19] !== H ? (S = /* @__PURE__ */ c(As, { size: "medium", placeholder: m, onChange: H }), e[18] = m, e[19] = H, e[20] = S) : S = e[20];
|
|
1757
1761
|
let z;
|
|
@@ -1760,20 +1764,20 @@ const vr = [{
|
|
|
1760
1764
|
/* @__PURE__ */ c("span", { className: "text-sm font-medium text-gray-700", children: "Filters:" })
|
|
1761
1765
|
] }), e[21] = z) : z = e[21];
|
|
1762
1766
|
let K;
|
|
1763
|
-
e[22] !== q ? (K = (
|
|
1764
|
-
let
|
|
1765
|
-
e[24] !== u || e[25] !== K ? (
|
|
1767
|
+
e[22] !== q ? (K = (U) => q("category", U), e[22] = q, e[23] = K) : K = e[23];
|
|
1768
|
+
let Z;
|
|
1769
|
+
e[24] !== u || e[25] !== K ? (Z = /* @__PURE__ */ c(Wt, { placeholder: "Category", options: u, onValueChange: K, className: "min-w-[140px]" }), e[24] = u, e[25] = K, e[26] = Z) : Z = e[26];
|
|
1766
1770
|
let J;
|
|
1767
|
-
e[27] !== q ? (J = (
|
|
1771
|
+
e[27] !== q ? (J = (U) => q("sort", U), e[27] = q, e[28] = J) : J = e[28];
|
|
1768
1772
|
let X;
|
|
1769
1773
|
e[29] !== p || e[30] !== J ? (X = /* @__PURE__ */ c(Wt, { placeholder: "Sort by", options: p, onValueChange: J, className: "min-w-[140px]" }), e[29] = p, e[30] = J, e[31] = X) : X = e[31];
|
|
1770
1774
|
let oe;
|
|
1771
1775
|
e[32] !== k.dateFrom || e[33] !== k.dateTo || e[34] !== q || e[35] !== C || e[36] !== B || e[37] !== $ || e[38] !== F || e[39] !== b ? (oe = b && /* @__PURE__ */ M(Fs, { children: [
|
|
1772
|
-
/* @__PURE__ */ c(rs, { placeholder: "From date", value: k.dateFrom, onSelect: (
|
|
1773
|
-
q("dateFrom",
|
|
1776
|
+
/* @__PURE__ */ c(rs, { placeholder: "From date", value: k.dateFrom, onSelect: (U) => {
|
|
1777
|
+
q("dateFrom", U), L(U ?? C);
|
|
1774
1778
|
}, className: "min-w-[140px]", open: $, onOpenChange: D, month: C, onMonthChange: L }),
|
|
1775
|
-
/* @__PURE__ */ c(rs, { placeholder: "To date", value: k.dateTo, onSelect: (
|
|
1776
|
-
q("dateTo",
|
|
1779
|
+
/* @__PURE__ */ c(rs, { placeholder: "To date", value: k.dateTo, onSelect: (U) => {
|
|
1780
|
+
q("dateTo", U), A(U ?? B);
|
|
1777
1781
|
}, className: "min-w-[140px]", open: F, onOpenChange: T, month: B, onMonthChange: A })
|
|
1778
1782
|
] }), e[32] = k.dateFrom, e[33] = k.dateTo, e[34] = q, e[35] = C, e[36] = B, e[37] = $, e[38] = F, e[39] = b, e[40] = oe) : oe = e[40];
|
|
1779
1783
|
let se;
|
|
@@ -1782,13 +1786,13 @@ const vr = [{
|
|
|
1782
1786
|
"Clear"
|
|
1783
1787
|
] }), e[41] = R, e[42] = O, e[43] = se) : se = e[43];
|
|
1784
1788
|
let le;
|
|
1785
|
-
e[44] !==
|
|
1789
|
+
e[44] !== Z || e[45] !== X || e[46] !== oe || e[47] !== se ? (le = /* @__PURE__ */ M("div", { className: "flex flex-wrap items-center gap-4", children: [
|
|
1786
1790
|
z,
|
|
1787
|
-
|
|
1791
|
+
Z,
|
|
1788
1792
|
X,
|
|
1789
1793
|
oe,
|
|
1790
1794
|
se
|
|
1791
|
-
] }), e[44] =
|
|
1795
|
+
] }), e[44] = Z, e[45] = X, e[46] = oe, e[47] = se, e[48] = le) : le = e[48];
|
|
1792
1796
|
let ee;
|
|
1793
1797
|
return e[49] !== I || e[50] !== S || e[51] !== le ? (ee = /* @__PURE__ */ M("div", { className: I, children: [
|
|
1794
1798
|
S,
|
|
@@ -1824,20 +1828,20 @@ function wo(a) {
|
|
|
1824
1828
|
e[4] !== r ? (F = /* @__PURE__ */ c(nt, { label: "Username", placeholder: "Choose a username", helperText: "Must be at least 3 characters long", required: !0, onChange: (I) => r == null ? void 0 : r("username", I.target.value) }), e[4] = r, e[5] = F) : F = e[5];
|
|
1825
1829
|
let T;
|
|
1826
1830
|
e[6] === Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ c(Hs, { className: "h-4 w-4" }), e[6] = T) : T = e[6];
|
|
1827
|
-
let
|
|
1828
|
-
e[7] !== r ? (
|
|
1831
|
+
let E;
|
|
1832
|
+
e[7] !== r ? (E = /* @__PURE__ */ c(nt, { label: "Email Address", type: "email", placeholder: "Enter your email", leftIcon: T, required: !0, onChange: (I) => r == null ? void 0 : r("email", I.target.value) }), e[7] = r, e[8] = E) : E = e[8];
|
|
1829
1833
|
let C;
|
|
1830
1834
|
e[9] !== r ? (C = (I) => {
|
|
1831
1835
|
k(I), r == null || r("password", I);
|
|
1832
1836
|
}, e[9] = r, e[10] = C) : C = e[10];
|
|
1833
1837
|
let L;
|
|
1834
1838
|
e[11] !== x || e[12] !== f || e[13] !== C ? (L = /* @__PURE__ */ c(Ps, { label: "Password", helperText: "Must be at least 8 characters", required: !0, value: x, onChange: C, showPassword: f, onShowPasswordChange: m }), e[11] = x, e[12] = f, e[13] = C, e[14] = L) : L = e[14];
|
|
1835
|
-
let
|
|
1836
|
-
e[15] !== r ? (
|
|
1839
|
+
let _;
|
|
1840
|
+
e[15] !== r ? (_ = (I) => {
|
|
1837
1841
|
$(I), r == null || r("confirmPassword", I);
|
|
1838
|
-
}, e[15] = r, e[16] =
|
|
1842
|
+
}, e[15] = r, e[16] = _) : _ = e[16];
|
|
1839
1843
|
let B;
|
|
1840
|
-
e[17] !== y || e[18] !== u || e[19] !==
|
|
1844
|
+
e[17] !== y || e[18] !== u || e[19] !== _ ? (B = /* @__PURE__ */ c(Ps, { label: "Confirm Password", placeholder: "Confirm your password", required: !0, value: y, onChange: _, showPassword: u, onShowPasswordChange: p }), e[17] = y, e[18] = u, e[19] = _, e[20] = B) : B = e[20];
|
|
1841
1845
|
let A;
|
|
1842
1846
|
e[21] !== B || e[22] !== L ? (A = /* @__PURE__ */ M("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
1843
1847
|
L,
|
|
@@ -1854,13 +1858,13 @@ function wo(a) {
|
|
|
1854
1858
|
d(I), N(I ?? h), I && (r == null || r("dateOfBirth", I));
|
|
1855
1859
|
}, open: b, onOpenChange: g, month: h, onMonthChange: N }), e[30] = i, e[31] = h, e[32] = r, e[33] = b, e[34] = o, e[35] = R) : R = e[35];
|
|
1856
1860
|
let O;
|
|
1857
|
-
return e[36] !== A || e[37] !== j || e[38] !== R || e[39] !== D || e[40] !== F || e[41] !==
|
|
1861
|
+
return e[36] !== A || e[37] !== j || e[38] !== R || e[39] !== D || e[40] !== F || e[41] !== E ? (O = /* @__PURE__ */ M("div", { className: D, children: [
|
|
1858
1862
|
F,
|
|
1859
|
-
|
|
1863
|
+
E,
|
|
1860
1864
|
A,
|
|
1861
1865
|
j,
|
|
1862
1866
|
R
|
|
1863
|
-
] }), e[36] = A, e[37] = j, e[38] = R, e[39] = D, e[40] = F, e[41] =
|
|
1867
|
+
] }), e[36] = A, e[37] = j, e[38] = R, e[39] = D, e[40] = F, e[41] = E, e[42] = O) : O = e[42], O;
|
|
1864
1868
|
}
|
|
1865
1869
|
const Nr = Xe.Root, yo = Xe.Trigger, Dr = Xe.Portal, No = Xe.Close, il = W.forwardRef((a, e) => {
|
|
1866
1870
|
const t = P(9);
|
|
@@ -2148,7 +2152,7 @@ function Mr(a) {
|
|
|
2148
2152
|
let g;
|
|
2149
2153
|
return e[20] !== l || e[21] !== m || e[22] !== b ? (g = /* @__PURE__ */ c("div", { role: "status", "aria-busy": "true", "aria-live": "polite", "aria-label": "Loading", className: m, style: b, ...l }), e[20] = l, e[21] = m, e[22] = b, e[23] = g) : g = e[23], g;
|
|
2150
2154
|
}
|
|
2151
|
-
function
|
|
2155
|
+
function Er(a = "medium", e = "white") {
|
|
2152
2156
|
const t = {
|
|
2153
2157
|
small: "text-sm py-1 px-2 h-8",
|
|
2154
2158
|
medium: "text-base py-2 px-3 h-10",
|
|
@@ -2178,7 +2182,7 @@ const ko = ({
|
|
|
2178
2182
|
const {
|
|
2179
2183
|
variantClasses: f,
|
|
2180
2184
|
combined: m
|
|
2181
|
-
} =
|
|
2185
|
+
} = Er(i, d), u = tt(null), [p, b] = pe(!1), [g, v] = pe(s), [h, N] = pe((s == null ? void 0 : s.label) || ""), x = ye(($) => {
|
|
2182
2186
|
const D = u.current;
|
|
2183
2187
|
if (D) {
|
|
2184
2188
|
if (p || b(!0), $.key === "Enter" && D.value !== "") {
|
|
@@ -2214,7 +2218,7 @@ const ko = ({
|
|
|
2214
2218
|
o ? null : /* @__PURE__ */ c(Oe.Empty, { className: "select-none rounded-sm px-2 py-3 text-center text-sm dark:text-gray-400", children: t })
|
|
2215
2219
|
] }) }) })
|
|
2216
2220
|
] });
|
|
2217
|
-
},
|
|
2221
|
+
}, _r = ts.forwardRef((a, e) => {
|
|
2218
2222
|
const t = P(45);
|
|
2219
2223
|
let s, l, r, o, n, i, d, f, m, u;
|
|
2220
2224
|
t[0] !== a ? ({
|
|
@@ -2236,11 +2240,11 @@ const ko = ({
|
|
|
2236
2240
|
let v;
|
|
2237
2241
|
t[13] !== d ? (v = (L) => {
|
|
2238
2242
|
var Y;
|
|
2239
|
-
const
|
|
2240
|
-
let B =
|
|
2243
|
+
const _ = L.currentTarget;
|
|
2244
|
+
let B = _.value;
|
|
2241
2245
|
B = B.replace(/[^0-9.]/g, "");
|
|
2242
2246
|
const A = B.split(".");
|
|
2243
|
-
A.length > 2 && (B = A[0] + "." + A.slice(1).join("")), ((Y = A[1]) == null ? void 0 : Y.length) > 2 && (B = A[0] + "." + A[1].substring(0, 2)),
|
|
2247
|
+
A.length > 2 && (B = A[0] + "." + A.slice(1).join("")), ((Y = A[1]) == null ? void 0 : Y.length) > 2 && (B = A[0] + "." + A[1].substring(0, 2)), _.value = B, d && d(L);
|
|
2244
2248
|
}, t[13] = d, t[14] = v) : v = t[14];
|
|
2245
2249
|
const h = v;
|
|
2246
2250
|
let N;
|
|
@@ -2265,16 +2269,16 @@ const ko = ({
|
|
|
2265
2269
|
D,
|
|
2266
2270
|
F
|
|
2267
2271
|
] }), t[32] = k, t[33] = y, t[34] = D, t[35] = F, t[36] = T) : T = t[36];
|
|
2268
|
-
let
|
|
2269
|
-
t[37] !== r || t[38] !== p || t[39] !== o ? (
|
|
2272
|
+
let E;
|
|
2273
|
+
t[37] !== r || t[38] !== p || t[39] !== o ? (E = (o || r) && /* @__PURE__ */ c("span", { className: w("text-xs", p ? "text-red-500" : "text-muted-foreground"), children: r || o }), t[37] = r, t[38] = p, t[39] = o, t[40] = E) : E = t[40];
|
|
2270
2274
|
let C;
|
|
2271
|
-
return t[41] !== T || t[42] !==
|
|
2275
|
+
return t[41] !== T || t[42] !== E || t[43] !== N ? (C = /* @__PURE__ */ M("div", { className: "flex flex-col space-y-1", children: [
|
|
2272
2276
|
N,
|
|
2273
2277
|
T,
|
|
2274
|
-
|
|
2275
|
-
] }), t[41] = T, t[42] =
|
|
2278
|
+
E
|
|
2279
|
+
] }), t[41] = T, t[42] = E, t[43] = N, t[44] = C) : C = t[44], C;
|
|
2276
2280
|
});
|
|
2277
|
-
|
|
2281
|
+
_r.displayName = "CurrencyInput";
|
|
2278
2282
|
const Br = ct("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", {
|
|
2279
2283
|
variants: {
|
|
2280
2284
|
variant: {
|
|
@@ -2462,16 +2466,16 @@ const $o = ({
|
|
|
2462
2466
|
clearable: N = !0,
|
|
2463
2467
|
disableCloseOnSelect: x = !1,
|
|
2464
2468
|
filterOptions: k,
|
|
2465
|
-
getOptionLabel: y = (R) => qr(R,
|
|
2466
|
-
getOptionValue: $ = (R) => jr(R,
|
|
2469
|
+
getOptionLabel: y = (R) => qr(R, E),
|
|
2470
|
+
getOptionValue: $ = (R) => jr(R, E),
|
|
2467
2471
|
isOptionEqualToValue: D,
|
|
2468
2472
|
renderOption: F,
|
|
2469
2473
|
renderTags: T,
|
|
2470
|
-
fields:
|
|
2474
|
+
fields: E,
|
|
2471
2475
|
// New prop for field mapping
|
|
2472
2476
|
noOptionsText: C = "No options",
|
|
2473
2477
|
emptyMessage: L,
|
|
2474
|
-
className:
|
|
2478
|
+
className: _ = "",
|
|
2475
2479
|
inputClassName: B = "",
|
|
2476
2480
|
debounceMs: A = 0,
|
|
2477
2481
|
// New: Debounce filtering
|
|
@@ -2480,14 +2484,14 @@ const $o = ({
|
|
|
2480
2484
|
ntt: q = !1,
|
|
2481
2485
|
...j
|
|
2482
2486
|
}) => {
|
|
2483
|
-
const [R, O] = pe(!1), [I, H] = pe(""), [S, z] = pe(""), [K,
|
|
2487
|
+
const [R, O] = pe(!1), [I, H] = pe(""), [S, z] = pe(""), [K, Z] = pe(-1), [J, X] = pe(!1), [oe, se] = pe({
|
|
2484
2488
|
top: 0,
|
|
2485
2489
|
left: 0,
|
|
2486
2490
|
width: 0
|
|
2487
2491
|
}), {
|
|
2488
2492
|
instanceKey: le,
|
|
2489
2493
|
containerProps: ee,
|
|
2490
|
-
onOpenChange:
|
|
2494
|
+
onOpenChange: U
|
|
2491
2495
|
} = rl();
|
|
2492
2496
|
Ie(() => {
|
|
2493
2497
|
if (A <= 0) {
|
|
@@ -2497,13 +2501,13 @@ const $o = ({
|
|
|
2497
2501
|
const te = setTimeout(() => z(I), A);
|
|
2498
2502
|
return () => clearTimeout(te);
|
|
2499
2503
|
}, [I, A]);
|
|
2500
|
-
const ce = yl(S),
|
|
2504
|
+
const ce = yl(S), V = tt(null), de = tt(null), ae = tt(null), me = Ze(), ne = e.length > 0 ? e : a, G = gt(() => D || ((te, Q) => Hr(te, Q, $, E)), [D, $, E]), ue = gt(() => {
|
|
2501
2505
|
if (ce.length < Y)
|
|
2502
2506
|
return ne;
|
|
2503
2507
|
let te = ne;
|
|
2504
2508
|
return n && Array.isArray(t) && (te = ne.filter((Q) => !t.some((ge) => G(Q, ge)))), !n && !J && t && ce === y(t) ? te : k ? k(te, {
|
|
2505
2509
|
inputValue: ce
|
|
2506
|
-
}) : Kr(te, ce, y,
|
|
2510
|
+
}) : Kr(te, ce, y, E);
|
|
2507
2511
|
}, [
|
|
2508
2512
|
ne,
|
|
2509
2513
|
t,
|
|
@@ -2513,7 +2517,7 @@ const $o = ({
|
|
|
2513
2517
|
y,
|
|
2514
2518
|
n,
|
|
2515
2519
|
G,
|
|
2516
|
-
|
|
2520
|
+
E,
|
|
2517
2521
|
J,
|
|
2518
2522
|
Y
|
|
2519
2523
|
]), Ye = ye((te) => {
|
|
@@ -2545,13 +2549,13 @@ const $o = ({
|
|
|
2545
2549
|
itemData: Se
|
|
2546
2550
|
}), H(""), X(!1), x || O(!1), setTimeout(() => {
|
|
2547
2551
|
var be;
|
|
2548
|
-
(be =
|
|
2552
|
+
(be = V.current) == null || be.focus();
|
|
2549
2553
|
}, 0);
|
|
2550
2554
|
} else
|
|
2551
2555
|
s == null || s(null, te), l == null || l({
|
|
2552
2556
|
itemData: te
|
|
2553
2557
|
}), H(y(te)), X(!1), x || O(!1);
|
|
2554
|
-
|
|
2558
|
+
Z(-1);
|
|
2555
2559
|
}, [n, t, G, s, l, x, y]), ke = ye((te) => {
|
|
2556
2560
|
if (n && Array.isArray(t)) {
|
|
2557
2561
|
const Q = t.filter((ge) => !G(te, ge));
|
|
@@ -2565,7 +2569,7 @@ const $o = ({
|
|
|
2565
2569
|
value: ""
|
|
2566
2570
|
}
|
|
2567
2571
|
}, ""), setTimeout(() => {
|
|
2568
|
-
|
|
2572
|
+
V.current && (V.current.value = "", V.current.focus());
|
|
2569
2573
|
}, 0), O(!1)) : (s == null || s(null, null), l == null || l({
|
|
2570
2574
|
itemData: null
|
|
2571
2575
|
}), H(""), X(!1), r == null || r({
|
|
@@ -2573,9 +2577,9 @@ const $o = ({
|
|
|
2573
2577
|
value: ""
|
|
2574
2578
|
}
|
|
2575
2579
|
}, ""), setTimeout(() => {
|
|
2576
|
-
|
|
2580
|
+
V.current && (V.current.value = "", V.current.focus());
|
|
2577
2581
|
}, 0), O(!1));
|
|
2578
|
-
}, [s, l, n, r]),
|
|
2582
|
+
}, [s, l, n, r]), Ee = gt(() => n ? Array.isArray(t) && t.length > 0 : t != null, [n, t]), Te = gt(() => !N || d ? !1 : n ? I !== "" : Ee, [N, d, n, I, Ee]), we = ye((te) => {
|
|
2579
2583
|
if (!R && (te.key === "ArrowDown" || te.key === "ArrowUp")) {
|
|
2580
2584
|
O(!0);
|
|
2581
2585
|
return;
|
|
@@ -2583,16 +2587,16 @@ const $o = ({
|
|
|
2583
2587
|
if (R)
|
|
2584
2588
|
switch (te.key) {
|
|
2585
2589
|
case "ArrowDown":
|
|
2586
|
-
te.preventDefault(),
|
|
2590
|
+
te.preventDefault(), Z((Q) => Q < ue.length - 1 ? Q + 1 : 0);
|
|
2587
2591
|
break;
|
|
2588
2592
|
case "ArrowUp":
|
|
2589
|
-
te.preventDefault(),
|
|
2593
|
+
te.preventDefault(), Z((Q) => Q > 0 ? Q - 1 : ue.length - 1);
|
|
2590
2594
|
break;
|
|
2591
2595
|
case "Enter":
|
|
2592
2596
|
te.preventDefault(), K >= 0 && ue[K] ? fe(ue[K]) : i && I && fe(I);
|
|
2593
2597
|
break;
|
|
2594
2598
|
case "Escape":
|
|
2595
|
-
O(!1),
|
|
2599
|
+
O(!1), Z(-1);
|
|
2596
2600
|
break;
|
|
2597
2601
|
case "Tab":
|
|
2598
2602
|
O(!1);
|
|
@@ -2622,8 +2626,8 @@ const $o = ({
|
|
|
2622
2626
|
}, [Ce, n, t, r]);
|
|
2623
2627
|
Ie(() => {
|
|
2624
2628
|
const te = (ge) => {
|
|
2625
|
-
const Se = ge.target, be = ae.current && !ae.current.contains(Se),
|
|
2626
|
-
be &&
|
|
2629
|
+
const Se = ge.target, be = ae.current && !ae.current.contains(Se), _e = de.current && !de.current.contains(Se);
|
|
2630
|
+
be && _e && O(!1);
|
|
2627
2631
|
}, Q = () => {
|
|
2628
2632
|
R && Ce();
|
|
2629
2633
|
};
|
|
@@ -2640,8 +2644,8 @@ const $o = ({
|
|
|
2640
2644
|
}, [K, R]), Ie(() => {
|
|
2641
2645
|
O(!1);
|
|
2642
2646
|
}, [le]), Ie(() => {
|
|
2643
|
-
|
|
2644
|
-
}, [R,
|
|
2647
|
+
U(R);
|
|
2648
|
+
}, [R, U]);
|
|
2645
2649
|
const Ne = gt(() => !n || !Array.isArray(t) || t.length === 0 ? null : T ? T(t, ke) : /* @__PURE__ */ c("div", { className: "flex flex-wrap gap-1 mb-1", children: t.map((te, Q) => /* @__PURE__ */ c(hl, { tag: te, index: Q, getOptionLabel: y, onRemove: ke }, Q)) }), [n, t, T, ke, y]), Ge = gt(() => `
|
|
2646
2650
|
relative flex items-center rounded-md
|
|
2647
2651
|
${g ? "border border-destructive" : Yr[u]}
|
|
@@ -2649,7 +2653,7 @@ const $o = ({
|
|
|
2649
2653
|
${d ? "opacity-50 cursor-not-allowed" : "cursor-text"}
|
|
2650
2654
|
transition-colors ${B}
|
|
2651
2655
|
`, [u, m, g, d, B]), He = L ?? C;
|
|
2652
|
-
return /* @__PURE__ */ M("div", { className: `relative ${h ? "w-full" : "w-auto"} ${
|
|
2656
|
+
return /* @__PURE__ */ M("div", { className: `relative ${h ? "w-full" : "w-auto"} ${_}`, ref: ae, children: [
|
|
2653
2657
|
p && /* @__PURE__ */ M("label", { htmlFor: me, className: "block text-sm font-medium mb-1", children: [
|
|
2654
2658
|
p,
|
|
2655
2659
|
v && /* @__PURE__ */ c("span", { className: "text-destructive ml-1", children: "*" })
|
|
@@ -2657,7 +2661,7 @@ const $o = ({
|
|
|
2657
2661
|
/* @__PURE__ */ c("div", { ...ee, children: /* @__PURE__ */ M("div", { className: "relative overflow-visible", children: [
|
|
2658
2662
|
Ne,
|
|
2659
2663
|
/* @__PURE__ */ M("div", { className: Ge, children: [
|
|
2660
|
-
/* @__PURE__ */ c(xt, { id: me, ref:
|
|
2664
|
+
/* @__PURE__ */ c(xt, { id: me, ref: V, value: I, onChange: Ye, onKeyDown: we, onFocus: je, placeholder: o, disabled: d, className: "px-0 border-0 shadow-none focus-visible:ring-0 focus-visible:ring-offset-0 bg-transparent rounded-md", ...j }),
|
|
2661
2665
|
/* @__PURE__ */ M("div", { className: "flex items-center gap-1 ml-auto", children: [
|
|
2662
2666
|
f && /* @__PURE__ */ c("div", { className: "animate-spin rounded-full h-4 w-4 border-2 border-muted-foreground border-t-transparent" }),
|
|
2663
2667
|
Te && /* @__PURE__ */ c("button", { type: "button", onClick: Fe, className: "p-1 hover:bg-accent rounded-sm transition-colors", tabIndex: -1, children: /* @__PURE__ */ c(it, { className: "h-4 w-4 text-muted-foreground" }) }),
|
|
@@ -2673,7 +2677,7 @@ const $o = ({
|
|
|
2673
2677
|
left: oe.left,
|
|
2674
2678
|
width: oe.width
|
|
2675
2679
|
}, ref: de, children: ue.length === 0 && !i ? /* @__PURE__ */ c("div", { className: "p-3 text-sm text-muted-foreground text-center", children: He }) : ue.map((te, Q) => {
|
|
2676
|
-
const ge = n ? Array.isArray(t) && t.some(($e) => G(te, $e)) : G(te, t), Se = Q === K, be = ($e) => $e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"),
|
|
2680
|
+
const ge = n ? Array.isArray(t) && t.some(($e) => G(te, $e)) : G(te, t), Se = Q === K, be = ($e) => $e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), _e = ($e) => {
|
|
2677
2681
|
const Ke = y($e), Be = q ? String(ce || "").trim() : "";
|
|
2678
2682
|
if (!Be) return /* @__PURE__ */ c("span", { children: Ke });
|
|
2679
2683
|
try {
|
|
@@ -2683,7 +2687,7 @@ const $o = ({
|
|
|
2683
2687
|
return /* @__PURE__ */ c("span", { children: Ke });
|
|
2684
2688
|
}
|
|
2685
2689
|
};
|
|
2686
|
-
return /* @__PURE__ */ c(bl, { option: te, index: Q, isSelected: ge, isHighlighted: Se, onSelect: fe, getOptionLabel: y, renderOption: F || (($e) =>
|
|
2690
|
+
return /* @__PURE__ */ c(bl, { option: te, index: Q, isSelected: ge, isHighlighted: Se, onSelect: fe, getOptionLabel: y, renderOption: F || (($e) => _e($e)) }, Q);
|
|
2687
2691
|
}) }), document.body)
|
|
2688
2692
|
] }) }),
|
|
2689
2693
|
(b || g) && /* @__PURE__ */ c("p", { className: `mt-1 text-xs ${g ? "text-destructive" : "text-muted-foreground"}`, children: g || b })
|
|
@@ -2748,7 +2752,7 @@ function Zr({
|
|
|
2748
2752
|
top: 0,
|
|
2749
2753
|
left: 0,
|
|
2750
2754
|
width: 0
|
|
2751
|
-
}), y = tt(null), $ = tt(null), D = tt(null), F = tt(null), T = gt(() => d || ((S, z) => Vr(S, z, i, m)), [d, i, m]),
|
|
2755
|
+
}), y = tt(null), $ = tt(null), D = tt(null), F = tt(null), T = gt(() => d || ((S, z) => Vr(S, z, i, m)), [d, i, m]), E = ye((S) => {
|
|
2752
2756
|
try {
|
|
2753
2757
|
return n(S);
|
|
2754
2758
|
} catch {
|
|
@@ -2762,13 +2766,13 @@ function Zr({
|
|
|
2762
2766
|
});
|
|
2763
2767
|
const z = Ur(S, b, n, m);
|
|
2764
2768
|
if (o && b && b.trim() !== "")
|
|
2765
|
-
if (a.length === 0 || a.every((
|
|
2766
|
-
if (!z.some((J) =>
|
|
2769
|
+
if (a.length === 0 || a.every((Z) => typeof Z == "string")) {
|
|
2770
|
+
if (!z.some((J) => E(J).toLowerCase() === b.toLowerCase()))
|
|
2767
2771
|
return [...z, b];
|
|
2768
2772
|
} else
|
|
2769
2773
|
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.");
|
|
2770
2774
|
return z;
|
|
2771
|
-
}, [a, b, f, n, m, o,
|
|
2775
|
+
}, [a, b, f, n, m, o, E]), _ = ye((S) => C.some((z) => T(S, z)), [C, T]), B = ye(() => {
|
|
2772
2776
|
const S = F.current || D.current;
|
|
2773
2777
|
if (S) {
|
|
2774
2778
|
const z = S.getBoundingClientRect();
|
|
@@ -2784,8 +2788,8 @@ function Zr({
|
|
|
2784
2788
|
}, [u, s]), Y = ye((S) => {
|
|
2785
2789
|
if (l) return;
|
|
2786
2790
|
const z = C, K = z.some((J) => T(S, J));
|
|
2787
|
-
let
|
|
2788
|
-
K ?
|
|
2791
|
+
let Z;
|
|
2792
|
+
K ? Z = z.filter((J) => !T(S, J)) : Z = [...z, S], t == null || t(null, Z), g(""), N(!1), r || p(!1), setTimeout(() => {
|
|
2789
2793
|
var J;
|
|
2790
2794
|
(J = y.current) == null || J.focus();
|
|
2791
2795
|
}, 0), h(-1);
|
|
@@ -2883,8 +2887,8 @@ function Zr({
|
|
|
2883
2887
|
handleFocus: H,
|
|
2884
2888
|
updateDropdownPosition: B,
|
|
2885
2889
|
// Utilities
|
|
2886
|
-
isOptionSelected:
|
|
2887
|
-
getOptionLabelSafe:
|
|
2890
|
+
isOptionSelected: _,
|
|
2891
|
+
getOptionLabelSafe: E,
|
|
2888
2892
|
memoizedIsOptionEqualToValue: T
|
|
2889
2893
|
};
|
|
2890
2894
|
}
|
|
@@ -2924,9 +2928,9 @@ const Xr = {
|
|
|
2924
2928
|
let F;
|
|
2925
2929
|
e[5] !== v || e[6] !== n || e[7] !== t || e[8] !== N ? (F = v && typeof t == "string" && !N.some((ne) => n(ne).toLowerCase() === t.toLowerCase()), e[5] = v, e[6] = n, e[7] = t, e[8] = N, e[9] = F) : F = e[9];
|
|
2926
2930
|
const T = F;
|
|
2927
|
-
let
|
|
2928
|
-
e[10] !== n || e[11] !== T || e[12] !== t ? (
|
|
2929
|
-
const C =
|
|
2931
|
+
let E;
|
|
2932
|
+
e[10] !== n || e[11] !== T || e[12] !== t ? (E = T ? `Add "${n(t)}"` : n(t), e[10] = n, e[11] = T, e[12] = t, e[13] = E) : E = e[13];
|
|
2933
|
+
const C = E;
|
|
2930
2934
|
let L;
|
|
2931
2935
|
e[14] === Symbol.for("react.memo_cache_sentinel") ? (L = () => {
|
|
2932
2936
|
const ne = () => {
|
|
@@ -2945,8 +2949,8 @@ const Xr = {
|
|
|
2945
2949
|
G.disconnect(), clearTimeout(ue);
|
|
2946
2950
|
};
|
|
2947
2951
|
}, e[14] = L) : L = e[14];
|
|
2948
|
-
let
|
|
2949
|
-
e[15] !== t || e[16] !== C ? (
|
|
2952
|
+
let _;
|
|
2953
|
+
e[15] !== t || e[16] !== C ? (_ = [t, C], e[15] = t, e[16] = C, e[17] = _) : _ = e[17], Ie(L, _);
|
|
2950
2954
|
let B;
|
|
2951
2955
|
e[18] !== p ? (B = p ?? {}, e[18] = p, e[19] = B) : B = e[19];
|
|
2952
2956
|
let A, Y, q, j;
|
|
@@ -2962,15 +2966,15 @@ const Xr = {
|
|
|
2962
2966
|
let S;
|
|
2963
2967
|
e[28] !== q || e[29] !== l || e[30] !== R || e[31] !== H || e[32] !== O ? (S = /* @__PURE__ */ c(vl, { checked: l, tabIndex: O, className: H, color: R, ...q }), e[28] = q, e[29] = l, e[30] = R, e[31] = H, e[32] = O, e[33] = S) : S = e[33];
|
|
2964
2968
|
const z = S, K = b == null ? void 0 : b.className;
|
|
2965
|
-
let
|
|
2966
|
-
e[34] !== K ? (
|
|
2969
|
+
let Z;
|
|
2970
|
+
e[34] !== K ? (Z = w("flex-shrink-0", K), e[34] = K, e[35] = Z) : Z = e[35];
|
|
2967
2971
|
let J;
|
|
2968
|
-
e[36] !== b || e[37] !==
|
|
2972
|
+
e[36] !== b || e[37] !== Z ? (J = {
|
|
2969
2973
|
size: "small",
|
|
2970
2974
|
variant: "soft",
|
|
2971
2975
|
...b,
|
|
2972
|
-
className:
|
|
2973
|
-
}, e[36] = b, e[37] =
|
|
2976
|
+
className: Z
|
|
2977
|
+
}, e[36] = b, e[37] = Z, e[38] = J) : J = e[38];
|
|
2974
2978
|
const X = J, oe = m === "left";
|
|
2975
2979
|
let se;
|
|
2976
2980
|
e[39] !== C ? (se = /* @__PURE__ */ c("span", { ref: x, className: "flex-1 truncate", children: C }), e[39] = C, e[40] = se) : se = e[40];
|
|
@@ -2980,16 +2984,16 @@ const Xr = {
|
|
|
2980
2984
|
/* @__PURE__ */ c(nl, { asChild: !0, children: le }),
|
|
2981
2985
|
/* @__PURE__ */ c(zs, { children: /* @__PURE__ */ c("p", { children: C }) })
|
|
2982
2986
|
] }) : le, e[41] = k, e[42] = C, e[43] = le, e[44] = ee) : ee = e[44];
|
|
2983
|
-
const
|
|
2987
|
+
const U = ee, ce = r ? "bg-accent text-accent-foreground" : "", V = T && "italic";
|
|
2984
2988
|
let de;
|
|
2985
|
-
e[45] !== ce || e[46] !==
|
|
2989
|
+
e[45] !== ce || e[46] !== V ? (de = w("px-3 py-2 cursor-pointer flex items-center", "text-sm transition-colors mx-2.5 rounded-md my-0.5 hover:bg-[#F5F5F5]", ce, V), e[45] = ce, e[46] = V, e[47] = de) : de = e[47];
|
|
2986
2990
|
let ae;
|
|
2987
|
-
e[48] !== z || e[49] !== X || e[50] !== s || e[51] !== oe || e[52] !== t || e[53] !== C || e[54] !== i || e[55] !== u || e[56] !==
|
|
2991
|
+
e[48] !== z || e[49] !== X || e[50] !== s || e[51] !== oe || e[52] !== t || e[53] !== C || e[54] !== i || e[55] !== u || e[56] !== U ? (ae = i ? i(t, s) : /* @__PURE__ */ M("div", { className: "flex items-center gap-2 w-full", children: [
|
|
2988
2992
|
oe && z,
|
|
2989
|
-
|
|
2993
|
+
U,
|
|
2990
2994
|
u && /* @__PURE__ */ c(fr, { label: C, ...X }),
|
|
2991
2995
|
!oe && z
|
|
2992
|
-
] }), e[48] = z, e[49] = X, e[50] = s, e[51] = oe, e[52] = t, e[53] = C, e[54] = i, e[55] = u, e[56] =
|
|
2996
|
+
] }), e[48] = z, e[49] = X, e[50] = s, e[51] = oe, e[52] = t, e[53] = C, e[54] = i, e[55] = u, e[56] = U, e[57] = ae) : ae = e[57];
|
|
2993
2997
|
let me;
|
|
2994
2998
|
return e[58] !== D || e[59] !== de || e[60] !== ae ? (me = /* @__PURE__ */ c("div", { onClick: D, className: de, children: ae }), e[58] = D, e[59] = de, e[60] = ae, e[61] = me) : me = e[61], me;
|
|
2995
2999
|
}, ea = (a) => {
|
|
@@ -3045,10 +3049,10 @@ function Ro(a) {
|
|
|
3045
3049
|
className: D,
|
|
3046
3050
|
inputClassName: F,
|
|
3047
3051
|
checkboxPosition: T,
|
|
3048
|
-
showChip:
|
|
3052
|
+
showChip: E,
|
|
3049
3053
|
showTags: C,
|
|
3050
3054
|
checkboxProps: L,
|
|
3051
|
-
chipProps:
|
|
3055
|
+
chipProps: _,
|
|
3052
3056
|
checkboxColor: B,
|
|
3053
3057
|
showSearch: A,
|
|
3054
3058
|
searchPlaceholder: Y,
|
|
@@ -3061,25 +3065,25 @@ function Ro(a) {
|
|
|
3061
3065
|
triggerButtonIconPosition: S,
|
|
3062
3066
|
portalContainer: z,
|
|
3063
3067
|
disablePortal: K,
|
|
3064
|
-
dropdownWidth:
|
|
3068
|
+
dropdownWidth: Z,
|
|
3065
3069
|
getOptionLabel: J,
|
|
3066
3070
|
getOptionValue: X,
|
|
3067
3071
|
isOptionEqualToValue: oe,
|
|
3068
3072
|
filterOptions: se,
|
|
3069
3073
|
renderOption: le,
|
|
3070
3074
|
renderTags: ee,
|
|
3071
|
-
limitTags:
|
|
3075
|
+
limitTags: U,
|
|
3072
3076
|
fields: ce
|
|
3073
3077
|
} = a;
|
|
3074
|
-
let
|
|
3075
|
-
e[0] !== t ? (
|
|
3076
|
-
const de =
|
|
3078
|
+
let V;
|
|
3079
|
+
e[0] !== t ? (V = t === void 0 ? [] : t, e[0] = t, e[1] = V) : V = e[1];
|
|
3080
|
+
const de = V;
|
|
3077
3081
|
let ae;
|
|
3078
3082
|
e[2] !== s ? (ae = s === void 0 ? [] : s, e[2] = s, e[3] = ae) : ae = e[3];
|
|
3079
3083
|
const me = ae;
|
|
3080
3084
|
let ne;
|
|
3081
3085
|
e[4] !== l ? (ne = l === void 0 ? [] : l, e[4] = l, e[5] = ne) : ne = e[5];
|
|
3082
|
-
const G = ne, ue = i === void 0 ? "Search..." : i, Ye = u === void 0 ? "No options" : u, fe = b === void 0 ? !1 : b, ke = g === void 0 ? !1 : g, Fe = v === void 0 ? !1 : v,
|
|
3086
|
+
const G = ne, ue = i === void 0 ? "Search..." : i, Ye = u === void 0 ? "No options" : u, fe = b === void 0 ? !1 : b, ke = g === void 0 ? !1 : g, Fe = v === void 0 ? !1 : v, Ee = h === void 0 ? !0 : h, Te = N === void 0 ? !0 : N, we = x === void 0 ? !1 : x, Ce = k === void 0 ? "medium" : k, qe = y === void 0 ? "outlined" : y, je = $ === void 0 ? !0 : $, Ne = T === void 0 ? "right" : T, Ge = E === void 0 ? !1 : E, He = C === void 0 ? !0 : C, te = B === void 0 ? "#000000" : B, Q = A === void 0 ? !1 : A, ge = q === void 0 ? "input" : q, Se = K === void 0 ? !1 : K, be = Z === void 0 ? "220px" : Z, _e = Ze(), [$e, Ke] = pe(!1);
|
|
3083
3087
|
let Be;
|
|
3084
3088
|
e[6] === Symbol.for("react.memo_cache_sentinel") ? (Be = () => {
|
|
3085
3089
|
Ke(!1);
|
|
@@ -3127,7 +3131,7 @@ function Ro(a) {
|
|
|
3127
3131
|
handleFocus: Gt,
|
|
3128
3132
|
isOptionSelected: os,
|
|
3129
3133
|
getOptionLabelSafe: at
|
|
3130
|
-
} = Zr(st), ns =
|
|
3134
|
+
} = Zr(st), ns = Ee && !fe && Le !== "" && !Q && ge !== "button";
|
|
3131
3135
|
let Pt;
|
|
3132
3136
|
e: {
|
|
3133
3137
|
if (!He || ge === "button") {
|
|
@@ -3144,9 +3148,9 @@ function Ro(a) {
|
|
|
3144
3148
|
break e;
|
|
3145
3149
|
}
|
|
3146
3150
|
let he = G;
|
|
3147
|
-
if (
|
|
3151
|
+
if (U && G.length > U && !$e) {
|
|
3148
3152
|
let Me;
|
|
3149
|
-
e[29] !==
|
|
3153
|
+
e[29] !== U || e[30] !== G ? (Me = G.slice(0, U), e[29] = U, e[30] = G, e[31] = Me) : Me = e[31], he = Me;
|
|
3150
3154
|
}
|
|
3151
3155
|
let Re;
|
|
3152
3156
|
if (e[32] !== at || e[33] !== X || e[34] !== re || e[35] !== he) {
|
|
@@ -3155,13 +3159,13 @@ function Ro(a) {
|
|
|
3155
3159
|
} else
|
|
3156
3160
|
Re = e[36];
|
|
3157
3161
|
let ot;
|
|
3158
|
-
e[41] !==
|
|
3162
|
+
e[41] !== U || e[42] !== $e || e[43] !== G ? (ot = U && G.length > U && !$e && /* @__PURE__ */ M("button", { type: "button", onClick: () => Ke(!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: [
|
|
3159
3163
|
"+",
|
|
3160
|
-
G.length -
|
|
3164
|
+
G.length - U,
|
|
3161
3165
|
" more"
|
|
3162
|
-
] }), e[41] =
|
|
3166
|
+
] }), e[41] = U, e[42] = $e, e[43] = G, e[44] = ot) : ot = e[44];
|
|
3163
3167
|
let We;
|
|
3164
|
-
e[45] !==
|
|
3168
|
+
e[45] !== U || e[46] !== $e || e[47] !== G ? (We = U && G.length > U && $e && /* @__PURE__ */ c("button", { type: "button", onClick: () => Ke(!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] = $e, e[47] = G, e[48] = We) : We = e[48];
|
|
3165
3169
|
let vt;
|
|
3166
3170
|
e[49] !== Re || e[50] !== ot || e[51] !== We ? (vt = /* @__PURE__ */ M("div", { className: "flex flex-wrap gap-1 mb-1", children: [
|
|
3167
3171
|
Re,
|
|
@@ -3222,13 +3226,13 @@ function Ro(a) {
|
|
|
3222
3226
|
let Tt;
|
|
3223
3227
|
e[84] !== ys || e[85] !== Ns ? (Tt = w("relative", ys, Ns), e[84] = ys, e[85] = Ns, e[86] = Tt) : Tt = e[86];
|
|
3224
3228
|
let zt;
|
|
3225
|
-
e[87] !==
|
|
3229
|
+
e[87] !== _e || e[88] !== d || e[89] !== Fe ? (zt = d && /* @__PURE__ */ M("label", { htmlFor: _e, className: "block text-sm font-medium mb-1", children: [
|
|
3226
3230
|
d,
|
|
3227
3231
|
Fe && /* @__PURE__ */ c("span", { className: "text-destructive ml-1", children: "*" })
|
|
3228
|
-
] }), e[87] =
|
|
3232
|
+
] }), e[87] = _e, e[88] = d, e[89] = Fe, e[90] = zt) : zt = e[90];
|
|
3229
3233
|
let At;
|
|
3230
|
-
e[91] !== ps || e[92] !== bs || e[93] !== ms || e[94] !== fe || e[95] !== Ae || e[96] !== Gt || e[97] !== Qe || e[98] !== et || e[99] !== pt || e[100] !==
|
|
3231
|
-
/* @__PURE__ */ c("input", { id:
|
|
3234
|
+
e[91] !== ps || e[92] !== bs || e[93] !== ms || e[94] !== fe || e[95] !== Ae || e[96] !== Gt || e[97] !== Qe || e[98] !== et || e[99] !== pt || e[100] !== _e || e[101] !== Je || e[102] !== Le || e[103] !== bt || e[104] !== wt || e[105] !== ke || e[106] !== xe || e[107] !== ue || e[108] !== xs || e[109] !== ws || e[110] !== Ft || e[111] !== vs || e[112] !== hs || e[113] !== $t || e[114] !== ns || e[115] !== Q || e[116] !== Rt || e[117] !== ht || e[118] !== rt ? (At = bt ? /* @__PURE__ */ M("div", { ref: rt, className: ps, children: [
|
|
3235
|
+
/* @__PURE__ */ c("input", { id: _e, ref: Je, value: Le, onChange: Qe, onKeyDown: et, onFocus: Gt, "aria-hidden": "true", tabIndex: -1, readOnly: !0, className: "sr-only" }),
|
|
3232
3236
|
/* @__PURE__ */ c(Ht, { variant: hs, size: vs, icon: ws, iconPosition: Ft, fullWidth: xs, disabled: fe, type: "button", "aria-haspopup": "listbox", "aria-expanded": xe, "aria-controls": wt, className: w("hover:bg-transparent active:bg-transparent focus-visible:bg-transparent focus-visible:ring-0", Rt), ...$t, onClick: (he) => {
|
|
3233
3237
|
if (ht == null || ht(he), fe)
|
|
3234
3238
|
return;
|
|
@@ -3240,15 +3244,15 @@ function Ro(a) {
|
|
|
3240
3244
|
}, children: bs }),
|
|
3241
3245
|
ke && /* @__PURE__ */ c("div", { className: "ml-2 animate-spin rounded-full h-4 w-4 border-2 border-muted-foreground border-t-transparent" })
|
|
3242
3246
|
] }) : /* @__PURE__ */ M("div", { ref: rt, className: ms, children: [
|
|
3243
|
-
/* @__PURE__ */ c(xt, { id:
|
|
3247
|
+
/* @__PURE__ */ c(xt, { id: _e, ref: Je, value: Q ? "" : Le, onChange: Q ? void 0 : Qe, onKeyDown: et, onFocus: Gt, placeholder: ue, disabled: fe, readOnly: Q, className: "px-0 border-0 shadow-none focus-visible:ring-0 focus-visible:ring-offset-0 bg-transparent rounded-md", role: "combobox", "aria-expanded": xe, "aria-controls": wt, "aria-autocomplete": "list" }),
|
|
3244
3248
|
/* @__PURE__ */ M("div", { className: "flex items-center gap-1 ml-auto", children: [
|
|
3245
3249
|
ke && /* @__PURE__ */ c("div", { className: "animate-spin rounded-full h-4 w-4 border-2 border-muted-foreground border-t-transparent" }),
|
|
3246
3250
|
ns && /* @__PURE__ */ c("button", { type: "button", onClick: Ae, className: "p-1 hover:bg-accent rounded-sm transition-colors", tabIndex: -1, children: /* @__PURE__ */ c(it, { className: "h-4 w-4 text-muted-foreground" }) }),
|
|
3247
3251
|
/* @__PURE__ */ c("button", { type: "button", disabled: fe, onClick: pt, className: w("p-1 hover:bg-accent rounded-sm transition-colors", fe ? "opacity-50 cursor-not-allowed" : "cursor-pointer"), tabIndex: -1, "aria-label": xe ? "Close options" : "Open options", children: /* @__PURE__ */ c(yt, { className: w("h-4 w-4 text-muted-foreground transition-transform", xe ? "rotate-180" : "") }) })
|
|
3248
3252
|
] })
|
|
3249
|
-
] }), e[91] = ps, e[92] = bs, e[93] = ms, e[94] = fe, e[95] = Ae, e[96] = Gt, e[97] = Qe, e[98] = et, e[99] = pt, e[100] =
|
|
3253
|
+
] }), e[91] = ps, e[92] = bs, e[93] = ms, e[94] = fe, e[95] = Ae, e[96] = Gt, e[97] = Qe, e[98] = et, e[99] = pt, e[100] = _e, e[101] = Je, e[102] = Le, e[103] = bt, e[104] = wt, e[105] = ke, e[106] = xe, e[107] = ue, e[108] = xs, e[109] = ws, e[110] = Ft, e[111] = vs, e[112] = hs, e[113] = $t, e[114] = ns, e[115] = Q, e[116] = Rt, e[117] = ht, e[118] = rt, e[119] = At) : At = e[119];
|
|
3250
3254
|
let It;
|
|
3251
|
-
e[120] !== te || e[121] !== Ne || e[122] !== L || e[123] !==
|
|
3255
|
+
e[120] !== te || e[121] !== Ne || e[122] !== L || e[123] !== _ || e[124] !== Se || e[125] !== fe || e[126] !== Pe || e[127] !== be || e[128] !== Ue || e[129] !== lt || e[130] !== we || e[131] !== at || e[132] !== X || e[133] !== Qe || e[134] !== et || e[135] !== ie || e[136] !== ut || e[137] !== F || e[138] !== Le || e[139] !== bt || e[140] !== os || e[141] !== d || e[142] !== mt || e[143] !== wt || e[144] !== gs || e[145] !== xe || e[146] !== ue || e[147] !== z || e[148] !== le || e[149] !== Y || e[150] !== Ge || e[151] !== Q ? (It = xe && (() => {
|
|
3252
3256
|
const he = Pe.width > 0 || Pe.top > 0, Re = /* @__PURE__ */ c(al, { delayDuration: 0, children: /* @__PURE__ */ M("div", { id: wt, role: "listbox", "aria-label": d || "Options", className: w("fixed bg-popover border border-border rounded-md shadow-lg", "flex flex-col overflow-hidden", !he && "invisible", F), style: (() => {
|
|
3253
3257
|
const We = () => bt ? typeof be == "number" ? `${be}px` : typeof be == "string" ? be : "220px" : Pe.width;
|
|
3254
3258
|
return {
|
|
@@ -3261,14 +3265,14 @@ function Ro(a) {
|
|
|
3261
3265
|
Q && /* @__PURE__ */ c("div", { className: "p-2 bg-popover", children: /* @__PURE__ */ c(As, { ref: Is, query: Le, onChange: Qe, onKeyDown: et, placeholder: Y ?? ue, className: "w-full", "aria-label": "Search options", disabled: fe, size: "small" }) }),
|
|
3262
3266
|
/* @__PURE__ */ c("div", { className: w("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: lt.length === 0 ? /* @__PURE__ */ c("div", { className: "p-3 text-sm text-muted-foreground text-center", children: gs }) : lt.map((We, vt) => {
|
|
3263
3267
|
const Me = os(We);
|
|
3264
|
-
return /* @__PURE__ */ c(Qr, { option: We, index: vt, isSelected: Me, isHighlighted: vt === ut, onSelect: ie, getOptionLabel: at, renderOption: le, freeSolo: we, originalOptions: Ue, checkboxPosition: Ne, showChip: Ge, checkboxProps: L, chipProps:
|
|
3268
|
+
return /* @__PURE__ */ c(Qr, { option: We, index: vt, isSelected: Me, isHighlighted: vt === ut, onSelect: ie, getOptionLabel: at, renderOption: le, freeSolo: we, originalOptions: Ue, checkboxPosition: Ne, showChip: Ge, checkboxProps: L, chipProps: _, checkboxColor: te }, typeof We == "string" ? We : String((X == null ? void 0 : X(We)) ?? vt));
|
|
3265
3269
|
}) })
|
|
3266
3270
|
] }) });
|
|
3267
3271
|
if (Se)
|
|
3268
3272
|
return Re;
|
|
3269
3273
|
const ot = z ?? document.body;
|
|
3270
3274
|
return Zs(Re, ot);
|
|
3271
|
-
})(), e[120] = te, e[121] = Ne, e[122] = L, e[123] =
|
|
3275
|
+
})(), e[120] = te, e[121] = Ne, e[122] = L, e[123] = _, e[124] = Se, e[125] = fe, e[126] = Pe, e[127] = be, e[128] = Ue, e[129] = lt, e[130] = we, e[131] = at, e[132] = X, e[133] = Qe, e[134] = et, e[135] = ie, e[136] = ut, e[137] = F, e[138] = Le, e[139] = bt, e[140] = os, e[141] = d, e[142] = mt, e[143] = wt, e[144] = gs, e[145] = xe, e[146] = ue, e[147] = z, e[148] = le, e[149] = Y, e[150] = Ge, e[151] = Q, e[152] = It) : It = e[152];
|
|
3272
3276
|
let Ot;
|
|
3273
3277
|
e[153] !== is || e[154] !== At || e[155] !== It ? (Ot = /* @__PURE__ */ M("div", { className: "relative overflow-visible", children: [
|
|
3274
3278
|
is,
|
|
@@ -3312,12 +3316,12 @@ function Fo(a) {
|
|
|
3312
3316
|
e[7] !== v || e[8] !== D ? (F = () => {
|
|
3313
3317
|
(v === "header" || v === "full") && D();
|
|
3314
3318
|
}, e[7] = v, e[8] = D, e[9] = F) : F = e[9];
|
|
3315
|
-
const T = F,
|
|
3319
|
+
const T = F, E = sa;
|
|
3316
3320
|
let C;
|
|
3317
3321
|
e[10] !== D ? (C = (ue) => {
|
|
3318
3322
|
(ue.key === "Enter" || ue.key === " ") && (ue.preventDefault(), D());
|
|
3319
3323
|
}, e[10] = D, e[11] = C) : C = e[11];
|
|
3320
|
-
const L = C,
|
|
3324
|
+
const L = C, _ = ta, B = g && "opacity-50 cursor-not-allowed";
|
|
3321
3325
|
let A;
|
|
3322
3326
|
e[12] !== n || e[13] !== B ? (A = w("rounded-md border", B, n), e[12] = n, e[13] = B, e[14] = A) : A = e[14];
|
|
3323
3327
|
const Y = (v === "header" || v === "full") && !g && "cursor-pointer hover:bg-accent/50 transition-colors";
|
|
@@ -3334,7 +3338,7 @@ function Fo(a) {
|
|
|
3334
3338
|
e[26] !== z ? (K = {
|
|
3335
3339
|
transitionDuration: z
|
|
3336
3340
|
}, e[26] = z, e[27] = K) : K = e[27];
|
|
3337
|
-
const
|
|
3341
|
+
const Z = x ? "Collapse" : "Expand", J = x && "rotate-180";
|
|
3338
3342
|
let X;
|
|
3339
3343
|
e[28] !== J ? (X = w("h-5 w-5 transition-transform", J), e[28] = J, e[29] = X) : X = e[29];
|
|
3340
3344
|
const oe = `${b}ms`;
|
|
@@ -3345,18 +3349,18 @@ function Fo(a) {
|
|
|
3345
3349
|
let le;
|
|
3346
3350
|
e[32] !== X || e[33] !== se ? (le = /* @__PURE__ */ c(yt, { className: X, style: se }), e[32] = X, e[33] = se, e[34] = le) : le = e[34];
|
|
3347
3351
|
let ee;
|
|
3348
|
-
e[35] !== g || e[36] !== S || e[37] !== K || e[38] !==
|
|
3349
|
-
let
|
|
3350
|
-
e[41] !== g || e[42] !== T || e[43] !== x || e[44] !== q || e[45] !== j || e[46] !== R || e[47] !== O || e[48] !== I || e[49] !== ee ? (
|
|
3352
|
+
e[35] !== g || e[36] !== S || e[37] !== K || e[38] !== Z || e[39] !== le ? (ee = /* @__PURE__ */ c(Dt.Trigger, { asChild: !0, children: /* @__PURE__ */ c("button", { type: "button", onClick: E, onKeyDown: _, disabled: g, className: S, style: K, "aria-label": Z, children: le }) }), e[35] = g, e[36] = S, e[37] = K, e[38] = Z, e[39] = le, e[40] = ee) : ee = e[40];
|
|
3353
|
+
let U;
|
|
3354
|
+
e[41] !== g || e[42] !== T || e[43] !== x || e[44] !== q || e[45] !== j || e[46] !== R || e[47] !== O || e[48] !== I || e[49] !== ee ? (U = /* @__PURE__ */ M("div", { className: q, onClick: T, onKeyDown: j, role: R, tabIndex: O, "aria-expanded": x, "aria-disabled": g, children: [
|
|
3351
3355
|
I,
|
|
3352
3356
|
ee
|
|
3353
|
-
] }), e[41] = g, e[42] = T, e[43] = x, e[44] = q, e[45] = j, e[46] = R, e[47] = O, e[48] = I, e[49] = ee, e[50] =
|
|
3357
|
+
] }), e[41] = g, e[42] = T, e[43] = x, e[44] = q, e[45] = j, e[46] = R, e[47] = O, e[48] = I, e[49] = ee, e[50] = U) : U = e[50];
|
|
3354
3358
|
const ce = `${b}ms`;
|
|
3355
|
-
let
|
|
3356
|
-
e[51] !== ce ? (
|
|
3359
|
+
let V;
|
|
3360
|
+
e[51] !== ce ? (V = {
|
|
3357
3361
|
"--collapsible-duration": ce
|
|
3358
|
-
}, e[51] = ce, e[52] =
|
|
3359
|
-
const de =
|
|
3362
|
+
}, e[51] = ce, e[52] = V) : V = e[52];
|
|
3363
|
+
const de = V;
|
|
3360
3364
|
let ae;
|
|
3361
3365
|
e[53] !== s || e[54] !== (d == null ? void 0 : d.align) || e[55] !== (d == null ? void 0 : d.className) || e[56] !== (d == null ? void 0 : d.color) || e[57] !== (d == null ? void 0 : d.variant) || e[58] !== (d == null ? void 0 : d.weight) ? (ae = W.isValidElement(s) ? s : /* @__PURE__ */ c(Ls, { 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: w("text-muted-foreground", d == null ? void 0 : d.className), children: s }), e[53] = s, e[54] = d == null ? void 0 : d.align, e[55] = d == null ? void 0 : d.className, e[56] = d == null ? void 0 : d.color, e[57] = d == null ? void 0 : d.variant, e[58] = d == null ? void 0 : d.weight, e[59] = ae) : ae = e[59];
|
|
3362
3366
|
let me;
|
|
@@ -3364,10 +3368,10 @@ function Fo(a) {
|
|
|
3364
3368
|
let ne;
|
|
3365
3369
|
e[62] !== de || e[63] !== me ? (ne = /* @__PURE__ */ c(Dt.Content, { className: "overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down", style: de, children: me }), e[62] = de, e[63] = me, e[64] = ne) : ne = e[64];
|
|
3366
3370
|
let G;
|
|
3367
|
-
return e[65] !== g || e[66] !== y || e[67] !== x || e[68] !== A || e[69] !==
|
|
3368
|
-
|
|
3371
|
+
return e[65] !== g || e[66] !== y || e[67] !== x || e[68] !== A || e[69] !== U || e[70] !== ne ? (G = /* @__PURE__ */ M(Dt.Root, { open: x, onOpenChange: y, disabled: g, className: A, children: [
|
|
3372
|
+
U,
|
|
3369
3373
|
ne
|
|
3370
|
-
] }), e[65] = g, e[66] = y, e[67] = x, e[68] = A, e[69] =
|
|
3374
|
+
] }), e[65] = g, e[66] = y, e[67] = x, e[68] = A, e[69] = U, e[70] = ne, e[71] = G) : G = e[71], G;
|
|
3371
3375
|
}
|
|
3372
3376
|
function ta(a) {
|
|
3373
3377
|
(a.key === "Enter" || a.key === " ") && a.stopPropagation();
|
|
@@ -3819,7 +3823,7 @@ const Ta = W.forwardRef((a, e) => {
|
|
|
3819
3823
|
return t[6] !== l || t[7] !== e || t[8] !== r ? (n = /* @__PURE__ */ c(jt.Item, { ref: e, className: r, ...l, children: o }), t[6] = l, t[7] = e, t[8] = r, t[9] = n) : n = t[9], n;
|
|
3820
3824
|
});
|
|
3821
3825
|
Ta.displayName = jt.Item.displayName;
|
|
3822
|
-
const
|
|
3826
|
+
const Eo = kt.Root, za = W.forwardRef((a, e) => {
|
|
3823
3827
|
const t = P(11);
|
|
3824
3828
|
let s, l, r;
|
|
3825
3829
|
t[0] !== a ? ({
|
|
@@ -3919,11 +3923,11 @@ const Oa = ct("h-full w-full flex-1 transition-all", {
|
|
|
3919
3923
|
t[17] !== m || t[18] !== u ? (T = u === "buffer" && m !== void 0 && /* @__PURE__ */ c("div", { className: "absolute h-full bg-secondary/40 transition-all", style: {
|
|
3920
3924
|
width: `${Math.min(Math.max(m, 0), 100)}%`
|
|
3921
3925
|
} }), t[17] = m, t[18] = u, t[19] = T) : T = t[19];
|
|
3922
|
-
let
|
|
3923
|
-
t[20] !== N || t[21] !== h || t[22] !== u ? (
|
|
3926
|
+
let E;
|
|
3927
|
+
t[20] !== N || t[21] !== h || t[22] !== u ? (E = w(Oa({
|
|
3924
3928
|
color: h ? void 0 : N,
|
|
3925
3929
|
variant: u
|
|
3926
|
-
}), h && "bg-transparent"), t[20] = N, t[21] = h, t[22] = u, t[23] =
|
|
3930
|
+
}), h && "bg-transparent"), t[20] = N, t[21] = h, t[22] = u, t[23] = E) : E = t[23];
|
|
3927
3931
|
let C;
|
|
3928
3932
|
t[24] !== h ? (C = h && {
|
|
3929
3933
|
backgroundColor: h
|
|
@@ -3932,13 +3936,13 @@ const Oa = ct("h-full w-full flex-1 transition-all", {
|
|
|
3932
3936
|
t[26] !== x || t[27] !== y ? (L = x ? {} : {
|
|
3933
3937
|
transform: `translateX(-${100 - (y || 0)}%)`
|
|
3934
3938
|
}, t[26] = x, t[27] = y, t[28] = L) : L = t[28];
|
|
3935
|
-
let
|
|
3936
|
-
t[29] !== C || t[30] !== L ? (
|
|
3939
|
+
let _;
|
|
3940
|
+
t[29] !== C || t[30] !== L ? (_ = {
|
|
3937
3941
|
...C,
|
|
3938
3942
|
...L
|
|
3939
|
-
}, t[29] = C, t[30] = L, t[31] =
|
|
3943
|
+
}, t[29] = C, t[30] = L, t[31] = _) : _ = t[31];
|
|
3940
3944
|
let B;
|
|
3941
|
-
t[32] !==
|
|
3945
|
+
t[32] !== _ || t[33] !== E ? (B = /* @__PURE__ */ c(Ss.Indicator, { className: E, style: _ }), t[32] = _, t[33] = E, t[34] = B) : B = t[34];
|
|
3942
3946
|
let A;
|
|
3943
3947
|
t[35] !== y || t[36] !== o || t[37] !== e || t[38] !== B || t[39] !== F || t[40] !== T ? (A = /* @__PURE__ */ M(Ss.Root, { ref: e, className: F, value: y, ...o, children: [
|
|
3944
3948
|
T,
|
|
@@ -3953,23 +3957,23 @@ const Oa = ct("h-full w-full flex-1 transition-all", {
|
|
|
3953
3957
|
] }), t[44] = A, t[45] = Y, t[46] = q) : q = t[46], q;
|
|
3954
3958
|
});
|
|
3955
3959
|
Ma.displayName = Ss.Root.displayName;
|
|
3956
|
-
const
|
|
3960
|
+
const Ea = {
|
|
3957
3961
|
error: "bg-red-500 text-white",
|
|
3958
3962
|
info: "bg-blue-500 text-white",
|
|
3959
3963
|
warning: "bg-amber-500 text-white",
|
|
3960
3964
|
success: "bg-green-500 text-white"
|
|
3961
|
-
},
|
|
3965
|
+
}, _a = {
|
|
3962
3966
|
error: 5e3,
|
|
3963
3967
|
info: 4e3,
|
|
3964
3968
|
warning: 5e3,
|
|
3965
3969
|
success: 4e3
|
|
3966
3970
|
}, Ba = {
|
|
3967
|
-
error: /* @__PURE__ */ c(
|
|
3971
|
+
error: /* @__PURE__ */ c(El, { className: "w-4 h-4 text-white" }),
|
|
3968
3972
|
info: /* @__PURE__ */ c(ks, { className: "w-4 h-4 text-white" }),
|
|
3969
3973
|
warning: /* @__PURE__ */ c(Ks, { className: "w-4 h-4 text-white" }),
|
|
3970
3974
|
success: /* @__PURE__ */ c(Ws, { className: "w-4 h-4 text-white" })
|
|
3971
|
-
},
|
|
3972
|
-
const t = (e == null ? void 0 : e.variant) || "info", s =
|
|
3975
|
+
}, _o = (a, e) => {
|
|
3976
|
+
const t = (e == null ? void 0 : e.variant) || "info", s = Ea[t], l = (e == null ? void 0 : e.icon) ?? Ba[t], r = (e == null ? void 0 : e.iconPosition) ?? "left", o = t === "error" || t === "warning" ? "alert" : "status", n = o === "alert" ? "assertive" : "polite", i = (f) => /* @__PURE__ */ M("div", { role: o, "aria-live": n, "aria-atomic": "true", className: `flex items-center justify-between w-full p-3 rounded-md shadow-md ${s}`, children: [
|
|
3973
3977
|
/* @__PURE__ */ M("div", { className: "flex items-center", children: [
|
|
3974
3978
|
l && r === "left" && /* @__PURE__ */ c("div", { className: "mr-3", children: l }),
|
|
3975
3979
|
/* @__PURE__ */ M("div", { children: [
|
|
@@ -3980,11 +3984,11 @@ const _a = {
|
|
|
3980
3984
|
/* @__PURE__ */ M("div", { className: "flex items-center", children: [
|
|
3981
3985
|
l && r === "right" && /* @__PURE__ */ c("div", { className: "ml-3", children: l }),
|
|
3982
3986
|
(e == null ? void 0 : e.action) && /* @__PURE__ */ c(Ht, { variant: "ghost", size: "small", className: "ml-3 text-white hover:bg-transparent", onClick: e.action.onClick, children: e.action.label }),
|
|
3983
|
-
/* @__PURE__ */ c(Ht, { variant: "ghost", size: "icon.large", className: "ml-3 text-white hover:bg-transparent", onClick: () =>
|
|
3987
|
+
/* @__PURE__ */ c(Ht, { variant: "ghost", size: "icon.large", className: "ml-3 text-white hover:bg-transparent", onClick: () => Es.dismiss(f), "aria-label": "Close notification", children: /* @__PURE__ */ c(it, { className: "w-4 h-4 !text-white", strokeWidth: 2.5 }) })
|
|
3984
3988
|
] })
|
|
3985
3989
|
] }), d = {
|
|
3986
3990
|
unstyled: !0,
|
|
3987
|
-
duration: (e == null ? void 0 : e.duration) ||
|
|
3991
|
+
duration: (e == null ? void 0 : e.duration) || _a[t],
|
|
3988
3992
|
style: {
|
|
3989
3993
|
padding: 0,
|
|
3990
3994
|
margin: 0,
|
|
@@ -3992,7 +3996,7 @@ const _a = {
|
|
|
3992
3996
|
background: "none"
|
|
3993
3997
|
}
|
|
3994
3998
|
};
|
|
3995
|
-
return
|
|
3999
|
+
return Es.custom(i, d);
|
|
3996
4000
|
};
|
|
3997
4001
|
function Bo(a) {
|
|
3998
4002
|
const e = P(2);
|
|
@@ -4102,7 +4106,7 @@ const Wa = (a) => {
|
|
|
4102
4106
|
let l;
|
|
4103
4107
|
e[3] !== t ? (l = w("flex h-9 w-9 items-center justify-center", t), e[3] = t, e[4] = l) : l = e[4];
|
|
4104
4108
|
let r, o;
|
|
4105
|
-
e[5] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ c(
|
|
4109
|
+
e[5] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ c(_l, { className: "h-4 w-4" }), o = /* @__PURE__ */ c("span", { className: "sr-only", children: "More" }), e[5] = r, e[6] = o) : (r = e[5], o = e[6]);
|
|
4106
4110
|
let n;
|
|
4107
4111
|
return e[7] !== s || e[8] !== l ? (n = /* @__PURE__ */ M("span", { role: "presentation", "aria-hidden": "true", className: l, ...s, children: [
|
|
4108
4112
|
r,
|
|
@@ -4208,20 +4212,20 @@ const Ga = ct("absolute bg-current", {
|
|
|
4208
4212
|
...r
|
|
4209
4213
|
} = a, t[0] = a, t[1] = s, t[2] = l, t[3] = r, t[4] = o, t[5] = n, t[6] = i, t[7] = d, t[8] = f, t[9] = m, t[10] = u, t[11] = p, t[12] = b, t[13] = g) : (s = t[1], l = t[2], r = t[3], o = t[4], n = t[5], i = t[6], d = t[7], f = t[8], m = t[9], u = t[10], p = t[11], b = t[12], g = t[13]);
|
|
4210
4214
|
const v = o === void 0 ? !0 : o, h = n === void 0 ? "default" : n, N = i === void 0 ? "teal" : i, x = d === void 0 ? "normal" : d, k = f === void 0 ? "md" : f, y = m === void 0 ? "sm" : m, $ = u === void 0 ? "md" : u, D = p === void 0 ? "comfortable" : p, F = b === void 0 ? "md" : b, T = h === "card" ? "card" : D;
|
|
4211
|
-
let
|
|
4212
|
-
t[14] !== v ? (
|
|
4213
|
-
const C =
|
|
4215
|
+
let E;
|
|
4216
|
+
t[14] !== v ? (E = (S) => !v || S !== "completed" ? null : /* @__PURE__ */ c("div", { className: "flex h-3 w-3 items-center justify-center rounded-full bg-green-500", children: /* @__PURE__ */ c("svg", { className: "h-2 w-2 text-white", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ c("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 13l4 4L19 7" }) }) }), t[14] = v, t[15] = E) : E = t[15];
|
|
4217
|
+
const C = E;
|
|
4214
4218
|
let L;
|
|
4215
4219
|
t[16] !== g || t[17] !== h ? (L = g && /* @__PURE__ */ c("h3", { className: w("font-bold text-gray-900", h === "card" ? "text-xl mb-8" : "text-lg mb-6"), children: g }), t[16] = g, t[17] = h, t[18] = L) : L = t[18];
|
|
4216
|
-
let
|
|
4217
|
-
t[19] !== N || t[20] !== k || t[21] !== y || t[22] !== x ? (
|
|
4220
|
+
let _;
|
|
4221
|
+
t[19] !== N || t[20] !== k || t[21] !== y || t[22] !== x ? (_ = w(Ga({
|
|
4218
4222
|
thickness: x,
|
|
4219
4223
|
inset: k,
|
|
4220
4224
|
offset: y,
|
|
4221
4225
|
color: N
|
|
4222
|
-
})), t[19] = N, t[20] = k, t[21] = y, t[22] = x, t[23] =
|
|
4226
|
+
})), t[19] = N, t[20] = k, t[21] = y, t[22] = x, t[23] = _) : _ = t[23];
|
|
4223
4227
|
let B;
|
|
4224
|
-
t[24] !==
|
|
4228
|
+
t[24] !== _ ? (B = /* @__PURE__ */ c("div", { className: _ }), t[24] = _, t[25] = B) : B = t[25];
|
|
4225
4229
|
let A;
|
|
4226
4230
|
t[26] !== T ? (A = w(Ua({
|
|
4227
4231
|
density: T
|
|
@@ -4313,8 +4317,8 @@ export {
|
|
|
4313
4317
|
Ir as DoctCommandShortcut,
|
|
4314
4318
|
Co as DoctComponentSection,
|
|
4315
4319
|
vo as DoctContactFormSection,
|
|
4316
|
-
|
|
4317
|
-
|
|
4320
|
+
_r as DoctCurrencyInput,
|
|
4321
|
+
Eo as DoctCustomTabs,
|
|
4318
4322
|
Ia as DoctCustomTabsContent,
|
|
4319
4323
|
za as DoctCustomTabsList,
|
|
4320
4324
|
Aa as DoctCustomTabsTrigger,
|
|
@@ -4363,7 +4367,7 @@ export {
|
|
|
4363
4367
|
As as DoctSearchInput,
|
|
4364
4368
|
Wt as DoctSelectField,
|
|
4365
4369
|
Mr as DoctSkeleton,
|
|
4366
|
-
|
|
4370
|
+
Eo as DoctTabs,
|
|
4367
4371
|
Ia as DoctTabsContent,
|
|
4368
4372
|
za as DoctTabsList,
|
|
4369
4373
|
Aa as DoctTabsTrigger,
|
|
@@ -4376,6 +4380,6 @@ export {
|
|
|
4376
4380
|
nl as DoctTooltipTrigger,
|
|
4377
4381
|
Ls as DoctTypography,
|
|
4378
4382
|
wo as DoctUserRegistrationSection,
|
|
4379
|
-
|
|
4383
|
+
_o as doctToast,
|
|
4380
4384
|
Zr as useAutocompleteCheckbox
|
|
4381
4385
|
};
|