@sonamu-kit/react-components 0.3.5 → 0.3.7
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.
|
@@ -22,48 +22,48 @@ import * as A from "@radix-ui/react-context-menu";
|
|
|
22
22
|
import { format as j } from "date-fns";
|
|
23
23
|
import { Drawer as M } from "vaul";
|
|
24
24
|
import * as N from "@radix-ui/react-dropdown-menu";
|
|
25
|
-
import { Controller as
|
|
26
|
-
import * as
|
|
27
|
-
import * as
|
|
28
|
-
import { OTPInput as
|
|
29
|
-
import * as
|
|
30
|
-
import * as
|
|
31
|
-
import * as
|
|
32
|
-
import * as
|
|
33
|
-
import * as
|
|
34
|
-
import * as
|
|
25
|
+
import { Controller as P, FormProvider as te, useFormContext as ne } from "react-hook-form";
|
|
26
|
+
import * as re from "@radix-ui/react-label";
|
|
27
|
+
import * as F from "@radix-ui/react-hover-card";
|
|
28
|
+
import { OTPInput as ie, OTPInputContext as ae } from "input-otp";
|
|
29
|
+
import * as I from "@radix-ui/react-menubar";
|
|
30
|
+
import * as oe from "@radix-ui/react-separator";
|
|
31
|
+
import * as L from "@radix-ui/react-navigation-menu";
|
|
32
|
+
import * as se from "@radix-ui/react-progress";
|
|
33
|
+
import * as R from "@radix-ui/react-radio-group";
|
|
34
|
+
import * as ce from "react-resizable-panels";
|
|
35
35
|
import * as z from "@radix-ui/react-scroll-area";
|
|
36
|
-
import * as
|
|
37
|
-
import * as
|
|
38
|
-
import
|
|
39
|
-
import { get as
|
|
40
|
-
import { z as
|
|
41
|
-
import { useNavigate as
|
|
42
|
-
import
|
|
43
|
-
import * as
|
|
44
|
-
import * as
|
|
45
|
-
import * as
|
|
46
|
-
import * as
|
|
47
|
-
import * as
|
|
36
|
+
import * as B from "@radix-ui/react-tooltip";
|
|
37
|
+
import * as le from "@radix-ui/react-slider";
|
|
38
|
+
import ue from "qs";
|
|
39
|
+
import { get as de, isObject as fe, set as pe, unique as me } from "radashi";
|
|
40
|
+
import { z as V } from "zod";
|
|
41
|
+
import { useNavigate as he, useSearch as ge } from "@tanstack/react-router";
|
|
42
|
+
import _e from "fast-deep-equal";
|
|
43
|
+
import * as ve from "@radix-ui/react-switch";
|
|
44
|
+
import * as H from "@radix-ui/react-tabs";
|
|
45
|
+
import * as U from "@radix-ui/react-toast";
|
|
46
|
+
import * as ye from "@radix-ui/react-toggle";
|
|
47
|
+
import * as be from "@radix-ui/react-toggle-group";
|
|
48
48
|
//#region src/hooks/use-toast.ts
|
|
49
|
-
var
|
|
50
|
-
function
|
|
51
|
-
return
|
|
49
|
+
var xe = 1, Se = 1e6, Ce = 0;
|
|
50
|
+
function we() {
|
|
51
|
+
return Ce = (Ce + 1) % (2 ** 53 - 1), Ce.toString();
|
|
52
52
|
}
|
|
53
|
-
var
|
|
54
|
-
if (
|
|
53
|
+
var Te = /* @__PURE__ */ new Map(), Ee = (e) => {
|
|
54
|
+
if (Te.has(e)) return;
|
|
55
55
|
let t = setTimeout(() => {
|
|
56
|
-
|
|
56
|
+
Te.delete(e), Ae({
|
|
57
57
|
type: "REMOVE_TOAST",
|
|
58
58
|
toastId: e
|
|
59
59
|
});
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
},
|
|
60
|
+
}, Se);
|
|
61
|
+
Te.set(e, t);
|
|
62
|
+
}, De = (e, t) => {
|
|
63
63
|
switch (t.type) {
|
|
64
64
|
case "ADD_TOAST": return {
|
|
65
65
|
...e,
|
|
66
|
-
toasts: [t.toast, ...e.toasts].slice(0,
|
|
66
|
+
toasts: [t.toast, ...e.toasts].slice(0, xe)
|
|
67
67
|
};
|
|
68
68
|
case "UPDATE_TOAST": return {
|
|
69
69
|
...e,
|
|
@@ -74,8 +74,8 @@ var Ee = /* @__PURE__ */ new Map(), De = (e) => {
|
|
|
74
74
|
};
|
|
75
75
|
case "DISMISS_TOAST": {
|
|
76
76
|
let { toastId: n } = t;
|
|
77
|
-
return n ?
|
|
78
|
-
|
|
77
|
+
return n ? Ee(n) : e.toasts.forEach((e) => {
|
|
78
|
+
Ee(e.id);
|
|
79
79
|
}), {
|
|
80
80
|
...e,
|
|
81
81
|
toasts: e.toasts.map((e) => e.id === n || n === void 0 ? {
|
|
@@ -92,24 +92,24 @@ var Ee = /* @__PURE__ */ new Map(), De = (e) => {
|
|
|
92
92
|
toasts: e.toasts.filter((e) => e.id !== t.toastId)
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
},
|
|
96
|
-
function
|
|
97
|
-
|
|
98
|
-
e(
|
|
95
|
+
}, Oe = [], ke = { toasts: [] };
|
|
96
|
+
function Ae(e) {
|
|
97
|
+
ke = De(ke, e), Oe.forEach((e) => {
|
|
98
|
+
e(ke);
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
let t =
|
|
101
|
+
function je({ ...e }) {
|
|
102
|
+
let t = we(), n = (e) => Ae({
|
|
103
103
|
type: "UPDATE_TOAST",
|
|
104
104
|
toast: {
|
|
105
105
|
...e,
|
|
106
106
|
id: t
|
|
107
107
|
}
|
|
108
|
-
}), r = () =>
|
|
108
|
+
}), r = () => Ae({
|
|
109
109
|
type: "DISMISS_TOAST",
|
|
110
110
|
toastId: t
|
|
111
111
|
});
|
|
112
|
-
return
|
|
112
|
+
return Ae({
|
|
113
113
|
type: "ADD_TOAST",
|
|
114
114
|
toast: {
|
|
115
115
|
...e,
|
|
@@ -125,15 +125,15 @@ function Me({ ...e }) {
|
|
|
125
125
|
update: n
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
let [t, n] = e.useState(
|
|
130
|
-
return e.useEffect(() => (
|
|
131
|
-
let e =
|
|
132
|
-
e > -1 &&
|
|
128
|
+
function Me() {
|
|
129
|
+
let [t, n] = e.useState(ke);
|
|
130
|
+
return e.useEffect(() => (Oe.push(n), () => {
|
|
131
|
+
let e = Oe.indexOf(n);
|
|
132
|
+
e > -1 && Oe.splice(e, 1);
|
|
133
133
|
}), []), {
|
|
134
134
|
...t,
|
|
135
|
-
toast:
|
|
136
|
-
dismiss: (e) =>
|
|
135
|
+
toast: je,
|
|
136
|
+
dismiss: (e) => Ae({
|
|
137
137
|
type: "DISMISS_TOAST",
|
|
138
138
|
toastId: e
|
|
139
139
|
})
|
|
@@ -141,7 +141,7 @@ function Ne() {
|
|
|
141
141
|
}
|
|
142
142
|
//#endregion
|
|
143
143
|
//#region ~icons/lucide/chevron-down.jsx
|
|
144
|
-
var
|
|
144
|
+
var Ne = (e) => /* @__PURE__ */ f("svg", {
|
|
145
145
|
viewBox: "0 0 24 24",
|
|
146
146
|
width: "1.2em",
|
|
147
147
|
height: "1.2em",
|
|
@@ -157,13 +157,13 @@ var Pe = (e) => /* @__PURE__ */ f("svg", {
|
|
|
157
157
|
});
|
|
158
158
|
//#endregion
|
|
159
159
|
//#region src/lib/utils.ts
|
|
160
|
-
function
|
|
160
|
+
function W(...e) {
|
|
161
161
|
return h(m(e));
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Pe(e) {
|
|
164
164
|
return e === void 0 ? void 0 : Array.isArray(e) ? e : [e];
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function Fe(e) {
|
|
167
167
|
let [t, n] = l([]);
|
|
168
168
|
return a(() => {
|
|
169
169
|
let t = e.map((e) => URL.createObjectURL(e));
|
|
@@ -174,60 +174,60 @@ function Ie(e) {
|
|
|
174
174
|
}
|
|
175
175
|
//#endregion
|
|
176
176
|
//#region src/components/ui/accordion.tsx
|
|
177
|
-
var
|
|
177
|
+
var Ie = u.Root, Le = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(u.Item, {
|
|
178
178
|
ref: n,
|
|
179
|
-
className:
|
|
179
|
+
className: W("border-b", e),
|
|
180
180
|
...t
|
|
181
181
|
}));
|
|
182
|
-
|
|
183
|
-
var
|
|
182
|
+
Le.displayName = "AccordionItem";
|
|
183
|
+
var Re = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ f(u.Header, {
|
|
184
184
|
className: "flex",
|
|
185
185
|
children: /* @__PURE__ */ p(u.Trigger, {
|
|
186
186
|
ref: r,
|
|
187
|
-
className:
|
|
187
|
+
className: W("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", e),
|
|
188
188
|
...n,
|
|
189
|
-
children: [t, /* @__PURE__ */ f(
|
|
189
|
+
children: [t, /* @__PURE__ */ f(Ne, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })]
|
|
190
190
|
})
|
|
191
191
|
}));
|
|
192
|
-
|
|
193
|
-
var
|
|
192
|
+
Re.displayName = u.Trigger.displayName;
|
|
193
|
+
var ze = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ f(u.Content, {
|
|
194
194
|
ref: r,
|
|
195
195
|
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
196
196
|
...n,
|
|
197
197
|
children: /* @__PURE__ */ f("div", {
|
|
198
|
-
className:
|
|
198
|
+
className: W("pb-4 pt-0", e),
|
|
199
199
|
children: t
|
|
200
200
|
})
|
|
201
201
|
}));
|
|
202
|
-
|
|
203
|
-
var
|
|
202
|
+
ze.displayName = u.Content.displayName;
|
|
203
|
+
var Be = g("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground", {
|
|
204
204
|
variants: { variant: {
|
|
205
205
|
default: "bg-background text-foreground",
|
|
206
206
|
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
|
|
207
207
|
} },
|
|
208
208
|
defaultVariants: { variant: "default" }
|
|
209
|
-
}),
|
|
209
|
+
}), Ve = e.forwardRef(({ className: e, variant: t, ...n }, r) => /* @__PURE__ */ f("div", {
|
|
210
210
|
ref: r,
|
|
211
211
|
role: "alert",
|
|
212
|
-
className:
|
|
212
|
+
className: W(Be({ variant: t }), e),
|
|
213
213
|
...n
|
|
214
214
|
}));
|
|
215
|
-
|
|
216
|
-
var
|
|
215
|
+
Ve.displayName = "Alert";
|
|
216
|
+
var He = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f("h5", {
|
|
217
217
|
ref: n,
|
|
218
|
-
className:
|
|
218
|
+
className: W("mb-1 font-medium leading-none tracking-tight", e),
|
|
219
219
|
...t
|
|
220
220
|
}));
|
|
221
|
-
|
|
222
|
-
var
|
|
221
|
+
He.displayName = "AlertTitle";
|
|
222
|
+
var Ue = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f("div", {
|
|
223
223
|
ref: n,
|
|
224
|
-
className:
|
|
224
|
+
className: W("text-sm [&_p]:leading-relaxed", e),
|
|
225
225
|
...t
|
|
226
226
|
}));
|
|
227
|
-
|
|
227
|
+
Ue.displayName = "AlertDescription";
|
|
228
228
|
//#endregion
|
|
229
229
|
//#region ~icons/lucide/loader-2.jsx
|
|
230
|
-
var
|
|
230
|
+
var We = (e) => /* @__PURE__ */ f("svg", {
|
|
231
231
|
viewBox: "0 0 24 24",
|
|
232
232
|
width: "1.2em",
|
|
233
233
|
height: "1.2em",
|
|
@@ -240,7 +240,7 @@ var Ge = (e) => /* @__PURE__ */ f("svg", {
|
|
|
240
240
|
strokeWidth: 2,
|
|
241
241
|
d: "M21 12a9 9 0 1 1-6.219-8.56"
|
|
242
242
|
})
|
|
243
|
-
}),
|
|
243
|
+
}), Ge = g("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-button text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer", {
|
|
244
244
|
variants: {
|
|
245
245
|
variant: {
|
|
246
246
|
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
@@ -270,11 +270,11 @@ var Ge = (e) => /* @__PURE__ */ f("svg", {
|
|
|
270
270
|
variant: "default",
|
|
271
271
|
size: "default"
|
|
272
272
|
}
|
|
273
|
-
}),
|
|
274
|
-
let d = c ? v : "button", m = e.Children.count(a) === 0, h = o ? /* @__PURE__ */ f(
|
|
273
|
+
}), G = e.forwardRef(({ className: t, variant: n, size: r, icon: i, children: a, loading: o, disabled: s, asChild: c = !1, ...l }, u) => {
|
|
274
|
+
let d = c ? v : "button", m = e.Children.count(a) === 0, h = o ? /* @__PURE__ */ f(We, { className: "animate-spin" }) : i;
|
|
275
275
|
return /* @__PURE__ */ f(d, {
|
|
276
276
|
"data-slot": "button",
|
|
277
|
-
className:
|
|
277
|
+
className: W(Ge({
|
|
278
278
|
variant: n,
|
|
279
279
|
size: r,
|
|
280
280
|
className: t
|
|
@@ -288,76 +288,76 @@ var Ge = (e) => /* @__PURE__ */ f("svg", {
|
|
|
288
288
|
}) : a
|
|
289
289
|
});
|
|
290
290
|
});
|
|
291
|
-
|
|
291
|
+
G.displayName = "Button";
|
|
292
292
|
//#endregion
|
|
293
293
|
//#region src/components/ui/alert-dialog.tsx
|
|
294
|
-
var
|
|
295
|
-
className:
|
|
294
|
+
var Ke = _.Root, qe = _.Trigger, Je = _.Portal, Ye = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(_.Overlay, {
|
|
295
|
+
className: W("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", e),
|
|
296
296
|
...t,
|
|
297
297
|
ref: n
|
|
298
298
|
}));
|
|
299
|
-
|
|
300
|
-
var
|
|
299
|
+
Ye.displayName = _.Overlay.displayName;
|
|
300
|
+
var Xe = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(Je, { children: [/* @__PURE__ */ f(Ye, {}), /* @__PURE__ */ f(_.Content, {
|
|
301
301
|
ref: n,
|
|
302
|
-
className:
|
|
302
|
+
className: W("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", e),
|
|
303
303
|
...t
|
|
304
304
|
})] }));
|
|
305
|
-
|
|
306
|
-
var
|
|
307
|
-
className:
|
|
305
|
+
Xe.displayName = _.Content.displayName;
|
|
306
|
+
var Ze = ({ className: e, ...t }) => /* @__PURE__ */ f("div", {
|
|
307
|
+
className: W("flex flex-col space-y-2 text-center sm:text-left", e),
|
|
308
308
|
...t
|
|
309
309
|
});
|
|
310
|
-
|
|
311
|
-
var
|
|
312
|
-
className:
|
|
310
|
+
Ze.displayName = "AlertDialogHeader";
|
|
311
|
+
var Qe = ({ className: e, ...t }) => /* @__PURE__ */ f("div", {
|
|
312
|
+
className: W("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e),
|
|
313
313
|
...t
|
|
314
314
|
});
|
|
315
|
-
|
|
316
|
-
var
|
|
315
|
+
Qe.displayName = "AlertDialogFooter";
|
|
316
|
+
var $e = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(_.Title, {
|
|
317
317
|
ref: n,
|
|
318
|
-
className:
|
|
318
|
+
className: W("text-lg font-semibold", e),
|
|
319
319
|
...t
|
|
320
320
|
}));
|
|
321
|
-
|
|
322
|
-
var
|
|
321
|
+
$e.displayName = _.Title.displayName;
|
|
322
|
+
var et = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(_.Description, {
|
|
323
323
|
ref: n,
|
|
324
|
-
className:
|
|
324
|
+
className: W("text-sm text-muted-foreground", e),
|
|
325
325
|
...t
|
|
326
326
|
}));
|
|
327
|
-
|
|
328
|
-
var
|
|
327
|
+
et.displayName = _.Description.displayName;
|
|
328
|
+
var tt = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(_.Action, {
|
|
329
329
|
ref: n,
|
|
330
|
-
className:
|
|
330
|
+
className: W(Ge(), e),
|
|
331
331
|
...t
|
|
332
332
|
}));
|
|
333
|
-
|
|
334
|
-
var
|
|
333
|
+
tt.displayName = _.Action.displayName;
|
|
334
|
+
var nt = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(_.Cancel, {
|
|
335
335
|
ref: n,
|
|
336
|
-
className:
|
|
336
|
+
className: W(Ge({ variant: "outline" }), "mt-2 sm:mt-0", e),
|
|
337
337
|
...t
|
|
338
338
|
}));
|
|
339
|
-
|
|
339
|
+
nt.displayName = _.Cancel.displayName;
|
|
340
340
|
//#endregion
|
|
341
341
|
//#region src/components/ui/aspect-ratio.tsx
|
|
342
|
-
var
|
|
342
|
+
var rt = y.Root, it = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(b.Root, {
|
|
343
343
|
ref: n,
|
|
344
|
-
className:
|
|
344
|
+
className: W("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", e),
|
|
345
345
|
...t
|
|
346
346
|
}));
|
|
347
|
-
|
|
348
|
-
var
|
|
347
|
+
it.displayName = b.Root.displayName;
|
|
348
|
+
var at = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(b.Image, {
|
|
349
349
|
ref: n,
|
|
350
|
-
className:
|
|
350
|
+
className: W("aspect-square h-full w-full", e),
|
|
351
351
|
...t
|
|
352
352
|
}));
|
|
353
|
-
|
|
354
|
-
var
|
|
353
|
+
at.displayName = b.Image.displayName;
|
|
354
|
+
var ot = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(b.Fallback, {
|
|
355
355
|
ref: n,
|
|
356
|
-
className:
|
|
356
|
+
className: W("flex h-full w-full items-center justify-center rounded-full bg-muted", e),
|
|
357
357
|
...t
|
|
358
358
|
}));
|
|
359
|
-
|
|
360
|
-
var
|
|
359
|
+
ot.displayName = b.Fallback.displayName;
|
|
360
|
+
var st = g("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden", {
|
|
361
361
|
variants: { variant: {
|
|
362
362
|
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
363
363
|
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
@@ -366,16 +366,16 @@ var ct = g("inline-flex items-center justify-center rounded-md border px-2 py-0.
|
|
|
366
366
|
} },
|
|
367
367
|
defaultVariants: { variant: "default" }
|
|
368
368
|
});
|
|
369
|
-
function
|
|
369
|
+
function ct({ className: e, variant: t, asChild: n = !1, ...r }) {
|
|
370
370
|
return /* @__PURE__ */ f(n ? v : "span", {
|
|
371
371
|
"data-slot": "badge",
|
|
372
|
-
className:
|
|
372
|
+
className: W(st({ variant: t }), e),
|
|
373
373
|
...r
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
376
|
//#endregion
|
|
377
377
|
//#region ~icons/lucide/chevron-right.jsx
|
|
378
|
-
var
|
|
378
|
+
var lt = (e) => /* @__PURE__ */ f("svg", {
|
|
379
379
|
viewBox: "0 0 24 24",
|
|
380
380
|
width: "1.2em",
|
|
381
381
|
height: "1.2em",
|
|
@@ -388,7 +388,7 @@ var ut = (e) => /* @__PURE__ */ f("svg", {
|
|
|
388
388
|
strokeWidth: 2,
|
|
389
389
|
d: "m9 18l6-6l-6-6"
|
|
390
390
|
})
|
|
391
|
-
}),
|
|
391
|
+
}), ut = (e) => /* @__PURE__ */ f("svg", {
|
|
392
392
|
viewBox: "0 0 24 24",
|
|
393
393
|
width: "1.2em",
|
|
394
394
|
height: "1.2em",
|
|
@@ -417,61 +417,61 @@ var ut = (e) => /* @__PURE__ */ f("svg", {
|
|
|
417
417
|
})
|
|
418
418
|
]
|
|
419
419
|
})
|
|
420
|
-
}),
|
|
420
|
+
}), dt = e.forwardRef(({ ...e }, t) => /* @__PURE__ */ f("nav", {
|
|
421
421
|
ref: t,
|
|
422
422
|
"aria-label": "breadcrumb",
|
|
423
423
|
...e
|
|
424
424
|
}));
|
|
425
|
-
|
|
426
|
-
var
|
|
425
|
+
dt.displayName = "Breadcrumb";
|
|
426
|
+
var ft = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f("ol", {
|
|
427
427
|
ref: n,
|
|
428
|
-
className:
|
|
428
|
+
className: W("flex flex-wrap items-center gap-1.5 overflow-wrap-anywhere text-sm text-muted-foreground sm:gap-2.5", e),
|
|
429
429
|
...t
|
|
430
430
|
}));
|
|
431
|
-
|
|
432
|
-
var
|
|
431
|
+
ft.displayName = "BreadcrumbList";
|
|
432
|
+
var pt = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f("li", {
|
|
433
433
|
ref: n,
|
|
434
|
-
className:
|
|
434
|
+
className: W("inline-flex items-center gap-1.5", e),
|
|
435
435
|
...t
|
|
436
436
|
}));
|
|
437
|
-
|
|
438
|
-
var
|
|
437
|
+
pt.displayName = "BreadcrumbItem";
|
|
438
|
+
var mt = e.forwardRef(({ asChild: e, className: t, ...n }, r) => /* @__PURE__ */ f(e ? v : "a", {
|
|
439
439
|
ref: r,
|
|
440
|
-
className:
|
|
440
|
+
className: W("transition-colors hover:text-foreground", t),
|
|
441
441
|
...n
|
|
442
442
|
}));
|
|
443
|
-
|
|
444
|
-
var
|
|
443
|
+
mt.displayName = "BreadcrumbLink";
|
|
444
|
+
var ht = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f("span", {
|
|
445
445
|
ref: n,
|
|
446
446
|
role: "link",
|
|
447
447
|
"aria-disabled": "true",
|
|
448
448
|
"aria-current": "page",
|
|
449
|
-
className:
|
|
449
|
+
className: W("font-normal text-foreground", e),
|
|
450
450
|
...t
|
|
451
451
|
}));
|
|
452
|
-
|
|
453
|
-
var
|
|
452
|
+
ht.displayName = "BreadcrumbPage";
|
|
453
|
+
var gt = ({ children: e, className: t, ...n }) => /* @__PURE__ */ f("li", {
|
|
454
454
|
role: "presentation",
|
|
455
455
|
"aria-hidden": "true",
|
|
456
|
-
className:
|
|
456
|
+
className: W("[&>svg]:w-3.5 [&>svg]:h-3.5", t),
|
|
457
457
|
...n,
|
|
458
|
-
children: e ?? /* @__PURE__ */ f(
|
|
458
|
+
children: e ?? /* @__PURE__ */ f(lt, {})
|
|
459
459
|
});
|
|
460
|
-
|
|
461
|
-
var
|
|
460
|
+
gt.displayName = "BreadcrumbSeparator";
|
|
461
|
+
var _t = ({ className: e, ...t }) => /* @__PURE__ */ p("span", {
|
|
462
462
|
role: "presentation",
|
|
463
463
|
"aria-hidden": "true",
|
|
464
|
-
className:
|
|
464
|
+
className: W("flex h-9 w-9 items-center justify-center", e),
|
|
465
465
|
...t,
|
|
466
|
-
children: [/* @__PURE__ */ f(
|
|
466
|
+
children: [/* @__PURE__ */ f(ut, { className: "h-4 w-4" }), /* @__PURE__ */ f("span", {
|
|
467
467
|
className: "sr-only",
|
|
468
468
|
children: "More"
|
|
469
469
|
})]
|
|
470
470
|
});
|
|
471
|
-
|
|
471
|
+
_t.displayName = "BreadcrumbElipssis";
|
|
472
472
|
//#endregion
|
|
473
473
|
//#region ~icons/lucide/chevron-left.jsx
|
|
474
|
-
var
|
|
474
|
+
var vt = (e) => /* @__PURE__ */ f("svg", {
|
|
475
475
|
viewBox: "0 0 24 24",
|
|
476
476
|
width: "1.2em",
|
|
477
477
|
height: "1.2em",
|
|
@@ -487,25 +487,25 @@ var yt = (e) => /* @__PURE__ */ f("svg", {
|
|
|
487
487
|
});
|
|
488
488
|
//#endregion
|
|
489
489
|
//#region src/components/ui/calendar.tsx
|
|
490
|
-
function
|
|
490
|
+
function yt({ className: e, classNames: t, showOutsideDays: n = !0, ...r }) {
|
|
491
491
|
return /* @__PURE__ */ f(x, {
|
|
492
492
|
showOutsideDays: n,
|
|
493
|
-
className:
|
|
493
|
+
className: W("p-3", e),
|
|
494
494
|
classNames: {
|
|
495
495
|
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
496
496
|
month: "space-y-4",
|
|
497
497
|
caption: "flex justify-center pt-1 relative items-center w-full",
|
|
498
498
|
caption_label: "text-sm font-medium",
|
|
499
499
|
nav: "space-x-1 flex items-center",
|
|
500
|
-
nav_button:
|
|
500
|
+
nav_button: W(Ge({ variant: "outline" }), "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),
|
|
501
501
|
nav_button_previous: "absolute left-1",
|
|
502
502
|
nav_button_next: "absolute right-1",
|
|
503
503
|
table: "w-full border-collapse space-y-1",
|
|
504
504
|
head_row: "flex",
|
|
505
505
|
head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
|
|
506
506
|
row: "flex w-full mt-2",
|
|
507
|
-
cell:
|
|
508
|
-
day:
|
|
507
|
+
cell: W("h-9 w-9 text-center text-sm p-0 relative focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent/10", r.mode === "range" ? "[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md" : "[&:has([aria-selected])]:rounded-md"),
|
|
508
|
+
day: W(Ge({ variant: "ghost" }), "h-9 w-9 p-0 font-normal aria-selected:opacity-100"),
|
|
509
509
|
day_range_start: "day-range-start",
|
|
510
510
|
day_range_end: "day-range-end",
|
|
511
511
|
day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
|
|
@@ -517,66 +517,66 @@ function bt({ className: e, classNames: t, showOutsideDays: n = !0, ...r }) {
|
|
|
517
517
|
...t
|
|
518
518
|
},
|
|
519
519
|
components: {
|
|
520
|
-
IconLeft: () => /* @__PURE__ */ f(
|
|
521
|
-
IconRight: () => /* @__PURE__ */ f(
|
|
520
|
+
IconLeft: () => /* @__PURE__ */ f(vt, { className: "h-4 w-4" }),
|
|
521
|
+
IconRight: () => /* @__PURE__ */ f(lt, { className: "h-4 w-4" })
|
|
522
522
|
},
|
|
523
523
|
...r
|
|
524
524
|
});
|
|
525
525
|
}
|
|
526
526
|
//#endregion
|
|
527
527
|
//#region src/components/ui/card.tsx
|
|
528
|
-
function
|
|
528
|
+
function bt({ className: e, ...t }) {
|
|
529
529
|
return /* @__PURE__ */ f("div", {
|
|
530
530
|
"data-slot": "card",
|
|
531
|
-
className:
|
|
531
|
+
className: W("bg-card text-card-foreground flex flex-col gap-6 rounded-card border", e),
|
|
532
532
|
...t
|
|
533
533
|
});
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function xt({ className: e, ...t }) {
|
|
536
536
|
return /* @__PURE__ */ f("div", {
|
|
537
537
|
"data-slot": "card-header",
|
|
538
|
-
className:
|
|
538
|
+
className: W("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 pt-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", e),
|
|
539
539
|
...t
|
|
540
540
|
});
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function St({ className: e, ...t }) {
|
|
543
543
|
return /* @__PURE__ */ f("h4", {
|
|
544
544
|
"data-slot": "card-title",
|
|
545
|
-
className:
|
|
545
|
+
className: W("leading-none", e),
|
|
546
546
|
...t
|
|
547
547
|
});
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function Ct({ className: e, ...t }) {
|
|
550
550
|
return /* @__PURE__ */ f("p", {
|
|
551
551
|
"data-slot": "card-description",
|
|
552
|
-
className:
|
|
552
|
+
className: W("text-muted-foreground", e),
|
|
553
553
|
...t
|
|
554
554
|
});
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function wt({ className: e, ...t }) {
|
|
557
557
|
return /* @__PURE__ */ f("div", {
|
|
558
558
|
"data-slot": "card-action",
|
|
559
|
-
className:
|
|
559
|
+
className: W("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
|
|
560
560
|
...t
|
|
561
561
|
});
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function Tt({ className: e, ...t }) {
|
|
564
564
|
return /* @__PURE__ */ f("div", {
|
|
565
565
|
"data-slot": "card-content",
|
|
566
|
-
className:
|
|
566
|
+
className: W("px-6 last:pb-6", e),
|
|
567
567
|
...t
|
|
568
568
|
});
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function Et({ className: e, ...t }) {
|
|
571
571
|
return /* @__PURE__ */ f("div", {
|
|
572
572
|
"data-slot": "card-footer",
|
|
573
|
-
className:
|
|
573
|
+
className: W("flex items-center px-6 pb-6 [.border-t]:pt-6", e),
|
|
574
574
|
...t
|
|
575
575
|
});
|
|
576
576
|
}
|
|
577
577
|
//#endregion
|
|
578
578
|
//#region ~icons/lucide/arrow-left.jsx
|
|
579
|
-
var
|
|
579
|
+
var Dt = (e) => /* @__PURE__ */ f("svg", {
|
|
580
580
|
viewBox: "0 0 24 24",
|
|
581
581
|
width: "1.2em",
|
|
582
582
|
height: "1.2em",
|
|
@@ -589,7 +589,7 @@ var Ot = (e) => /* @__PURE__ */ f("svg", {
|
|
|
589
589
|
strokeWidth: 2,
|
|
590
590
|
d: "m12 19l-7-7l7-7m7 7H5"
|
|
591
591
|
})
|
|
592
|
-
}),
|
|
592
|
+
}), Ot = (e) => /* @__PURE__ */ f("svg", {
|
|
593
593
|
viewBox: "0 0 24 24",
|
|
594
594
|
width: "1.2em",
|
|
595
595
|
height: "1.2em",
|
|
@@ -602,13 +602,13 @@ var Ot = (e) => /* @__PURE__ */ f("svg", {
|
|
|
602
602
|
strokeWidth: 2,
|
|
603
603
|
d: "M5 12h14m-7-7l7 7l-7 7"
|
|
604
604
|
})
|
|
605
|
-
}),
|
|
606
|
-
function
|
|
607
|
-
let t = e.useContext(
|
|
605
|
+
}), kt = e.createContext(null);
|
|
606
|
+
function At() {
|
|
607
|
+
let t = e.useContext(kt);
|
|
608
608
|
if (!t) throw Error("useCarousel must be used within a <Carousel />");
|
|
609
609
|
return t;
|
|
610
610
|
}
|
|
611
|
-
var
|
|
611
|
+
var jt = e.forwardRef(({ orientation: t = "horizontal", opts: n, setApi: r, plugins: i, className: a, children: o, ...s }, c) => {
|
|
612
612
|
let [l, u] = S({
|
|
613
613
|
...n,
|
|
614
614
|
axis: t === "horizontal" ? "x" : "y"
|
|
@@ -627,7 +627,7 @@ var Mt = e.forwardRef(({ orientation: t = "horizontal", opts: n, setApi: r, plug
|
|
|
627
627
|
if (u) return g(u), u.on("reInit", g), u.on("select", g), () => {
|
|
628
628
|
u?.off("select", g);
|
|
629
629
|
};
|
|
630
|
-
}, [u, g]), /* @__PURE__ */ f(
|
|
630
|
+
}, [u, g]), /* @__PURE__ */ f(kt.Provider, {
|
|
631
631
|
value: {
|
|
632
632
|
carouselRef: l,
|
|
633
633
|
api: u,
|
|
@@ -641,7 +641,7 @@ var Mt = e.forwardRef(({ orientation: t = "horizontal", opts: n, setApi: r, plug
|
|
|
641
641
|
children: /* @__PURE__ */ f("div", {
|
|
642
642
|
ref: c,
|
|
643
643
|
onKeyDownCapture: y,
|
|
644
|
-
className:
|
|
644
|
+
className: W("relative", a),
|
|
645
645
|
role: "region",
|
|
646
646
|
"aria-roledescription": "carousel",
|
|
647
647
|
...s,
|
|
@@ -649,68 +649,68 @@ var Mt = e.forwardRef(({ orientation: t = "horizontal", opts: n, setApi: r, plug
|
|
|
649
649
|
})
|
|
650
650
|
});
|
|
651
651
|
});
|
|
652
|
-
|
|
653
|
-
var
|
|
654
|
-
let { carouselRef: r, orientation: i } =
|
|
652
|
+
jt.displayName = "Carousel";
|
|
653
|
+
var Mt = e.forwardRef(({ className: e, ...t }, n) => {
|
|
654
|
+
let { carouselRef: r, orientation: i } = At();
|
|
655
655
|
return /* @__PURE__ */ f("div", {
|
|
656
656
|
ref: r,
|
|
657
657
|
className: "overflow-hidden",
|
|
658
658
|
children: /* @__PURE__ */ f("div", {
|
|
659
659
|
ref: n,
|
|
660
|
-
className:
|
|
660
|
+
className: W("flex", i === "horizontal" ? "-ml-4" : "-mt-4 flex-col", e),
|
|
661
661
|
...t
|
|
662
662
|
})
|
|
663
663
|
});
|
|
664
664
|
});
|
|
665
|
-
|
|
666
|
-
var
|
|
667
|
-
let { orientation: r } =
|
|
665
|
+
Mt.displayName = "CarouselContent";
|
|
666
|
+
var Nt = e.forwardRef(({ className: e, ...t }, n) => {
|
|
667
|
+
let { orientation: r } = At();
|
|
668
668
|
return /* @__PURE__ */ f("div", {
|
|
669
669
|
ref: n,
|
|
670
670
|
role: "group",
|
|
671
671
|
"aria-roledescription": "slide",
|
|
672
|
-
className:
|
|
672
|
+
className: W("min-w-0 shrink-0 grow-0 basis-full", r === "horizontal" ? "pl-4" : "pt-4", e),
|
|
673
673
|
...t
|
|
674
674
|
});
|
|
675
675
|
});
|
|
676
|
-
|
|
677
|
-
var
|
|
678
|
-
let { orientation: a, scrollPrev: o, canScrollPrev: s } =
|
|
679
|
-
return /* @__PURE__ */ p(
|
|
676
|
+
Nt.displayName = "CarouselItem";
|
|
677
|
+
var Pt = e.forwardRef(({ className: e, variant: t = "outline", size: n = "default", ...r }, i) => {
|
|
678
|
+
let { orientation: a, scrollPrev: o, canScrollPrev: s } = At();
|
|
679
|
+
return /* @__PURE__ */ p(G, {
|
|
680
680
|
ref: i,
|
|
681
681
|
variant: t,
|
|
682
682
|
size: n,
|
|
683
|
-
className:
|
|
683
|
+
className: W("absolute h-8 w-8 rounded-full", a === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", e),
|
|
684
684
|
disabled: !s,
|
|
685
685
|
onClick: o,
|
|
686
686
|
...r,
|
|
687
|
-
children: [/* @__PURE__ */ f(
|
|
687
|
+
children: [/* @__PURE__ */ f(Dt, { className: "h-4 w-4" }), /* @__PURE__ */ f("span", {
|
|
688
688
|
className: "sr-only",
|
|
689
689
|
children: "Previous slide"
|
|
690
690
|
})]
|
|
691
691
|
});
|
|
692
692
|
});
|
|
693
|
-
|
|
694
|
-
var
|
|
695
|
-
let { orientation: a, scrollNext: o, canScrollNext: s } =
|
|
696
|
-
return /* @__PURE__ */ p(
|
|
693
|
+
Pt.displayName = "CarouselPrevious";
|
|
694
|
+
var Ft = e.forwardRef(({ className: e, variant: t = "outline", size: n = "default", ...r }, i) => {
|
|
695
|
+
let { orientation: a, scrollNext: o, canScrollNext: s } = At();
|
|
696
|
+
return /* @__PURE__ */ p(G, {
|
|
697
697
|
ref: i,
|
|
698
698
|
variant: t,
|
|
699
699
|
size: n,
|
|
700
|
-
className:
|
|
700
|
+
className: W("absolute h-8 w-8 rounded-full", a === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", e),
|
|
701
701
|
disabled: !s,
|
|
702
702
|
onClick: o,
|
|
703
703
|
...r,
|
|
704
|
-
children: [/* @__PURE__ */ f(
|
|
704
|
+
children: [/* @__PURE__ */ f(Ot, { className: "h-4 w-4" }), /* @__PURE__ */ f("span", {
|
|
705
705
|
className: "sr-only",
|
|
706
706
|
children: "Next slide"
|
|
707
707
|
})]
|
|
708
708
|
});
|
|
709
709
|
});
|
|
710
|
-
|
|
710
|
+
Ft.displayName = "CarouselNext";
|
|
711
711
|
//#endregion
|
|
712
712
|
//#region ~icons/lucide/check.jsx
|
|
713
|
-
var
|
|
713
|
+
var K = (e) => /* @__PURE__ */ f("svg", {
|
|
714
714
|
viewBox: "0 0 24 24",
|
|
715
715
|
width: "1.2em",
|
|
716
716
|
height: "1.2em",
|
|
@@ -723,7 +723,7 @@ var G = (e) => /* @__PURE__ */ f("svg", {
|
|
|
723
723
|
strokeWidth: 2,
|
|
724
724
|
d: "M20 6L9 17l-5-5"
|
|
725
725
|
})
|
|
726
|
-
}),
|
|
726
|
+
}), It = e.forwardRef(({ className: t, name: n, checked: r, value: i, defaultChecked: a, onValueChange: o, onBlur: s, label: c, labelClassName: l, disabled: u, ...m }, h) => {
|
|
727
727
|
let g = i === void 0 ? r : i, _ = e.useRef(null), v = e.useRef(null), y = e.useId();
|
|
728
728
|
e.useImperativeHandle(h, () => _.current);
|
|
729
729
|
let b = (e) => {
|
|
@@ -747,28 +747,28 @@ var G = (e) => /* @__PURE__ */ f("svg", {
|
|
|
747
747
|
onCheckedChange: b,
|
|
748
748
|
disabled: u,
|
|
749
749
|
"aria-labelledby": c ? y : void 0,
|
|
750
|
-
className:
|
|
750
|
+
className: W("peer border border-muted-foreground/30 bg-input-background dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", t),
|
|
751
751
|
...m,
|
|
752
752
|
children: /* @__PURE__ */ f(C.Indicator, {
|
|
753
753
|
"data-slot": "checkbox-indicator",
|
|
754
754
|
className: "flex items-center justify-center text-current transition-none",
|
|
755
|
-
children: /* @__PURE__ */ f(
|
|
755
|
+
children: /* @__PURE__ */ f(K, { className: "size-3.5" })
|
|
756
756
|
})
|
|
757
757
|
})] });
|
|
758
758
|
return c ? /* @__PURE__ */ p("div", {
|
|
759
759
|
className: "flex items-center gap-2",
|
|
760
760
|
children: [S, /* @__PURE__ */ f("label", {
|
|
761
761
|
id: y,
|
|
762
|
-
className:
|
|
762
|
+
className: W("text-sm cursor-pointer select-none", u && "cursor-not-allowed opacity-50", l),
|
|
763
763
|
onClick: x,
|
|
764
764
|
children: c
|
|
765
765
|
})]
|
|
766
766
|
}) : S;
|
|
767
767
|
});
|
|
768
|
-
|
|
768
|
+
It.displayName = "Checkbox";
|
|
769
769
|
//#endregion
|
|
770
770
|
//#region src/components/ui/collapsible.tsx
|
|
771
|
-
var
|
|
771
|
+
var Lt = w.Root, Rt = w.CollapsibleTrigger, zt = w.CollapsibleContent, Bt = (e) => /* @__PURE__ */ f("svg", {
|
|
772
772
|
viewBox: "0 0 24 24",
|
|
773
773
|
width: "1.2em",
|
|
774
774
|
height: "1.2em",
|
|
@@ -781,7 +781,7 @@ var Rt = w.Root, zt = w.CollapsibleTrigger, Bt = w.CollapsibleContent, Vt = (e)
|
|
|
781
781
|
strokeWidth: 2,
|
|
782
782
|
d: "m7 15l5 5l5-5M7 9l5-5l5 5"
|
|
783
783
|
})
|
|
784
|
-
}),
|
|
784
|
+
}), Vt = (e) => /* @__PURE__ */ f("svg", {
|
|
785
785
|
viewBox: "0 0 24 24",
|
|
786
786
|
width: "1.2em",
|
|
787
787
|
height: "1.2em",
|
|
@@ -798,7 +798,7 @@ var Rt = w.Root, zt = w.CollapsibleTrigger, Bt = w.CollapsibleContent, Vt = (e)
|
|
|
798
798
|
r: 10
|
|
799
799
|
}), /* @__PURE__ */ f("path", { d: "m15 9l-6 6m0-6l6 6" })]
|
|
800
800
|
})
|
|
801
|
-
}),
|
|
801
|
+
}), Ht = {
|
|
802
802
|
"rc.asyncSelect.loading": "Loading...",
|
|
803
803
|
"rc.asyncSelect.noOptions": "No options",
|
|
804
804
|
"rc.asyncSelect.noResults": "No results",
|
|
@@ -867,28 +867,28 @@ var Rt = w.Root, zt = w.CollapsibleTrigger, Bt = w.CollapsibleContent, Vt = (e)
|
|
|
867
867
|
"rc.sonamuFilter.appliedFilters": "🌲 Applied SonamuFilters",
|
|
868
868
|
"rc.common.cancel": "Cancel",
|
|
869
869
|
"rc.common.save": "Save"
|
|
870
|
-
},
|
|
871
|
-
throw Error(
|
|
872
|
-
},
|
|
873
|
-
function
|
|
870
|
+
}, Ut = (e) => `[SonamuProvider] ${e} is not configured. Please provide ${e} configuration to SonamuProvider.`, Wt = () => () => {
|
|
871
|
+
throw Error(Ut("uploader"));
|
|
872
|
+
}, Gt = () => (e) => Ht[e], Kt = n({});
|
|
873
|
+
function qt({ children: e, authOptions: t, ...n }) {
|
|
874
874
|
let r = c(void 0);
|
|
875
875
|
t && !r.current && (r.current = T(t));
|
|
876
876
|
let i = {
|
|
877
|
-
uploader: n.uploader ??
|
|
877
|
+
uploader: n.uploader ?? Wt(),
|
|
878
878
|
auth: n.auth ?? r.current,
|
|
879
|
-
SD: n.SD ??
|
|
879
|
+
SD: n.SD ?? Gt()
|
|
880
880
|
};
|
|
881
|
-
return /* @__PURE__ */ f(
|
|
881
|
+
return /* @__PURE__ */ f(Kt.Provider, {
|
|
882
882
|
value: i,
|
|
883
883
|
children: e
|
|
884
884
|
});
|
|
885
885
|
}
|
|
886
|
-
function
|
|
887
|
-
return i(
|
|
886
|
+
function q() {
|
|
887
|
+
return i(Kt);
|
|
888
888
|
}
|
|
889
889
|
//#endregion
|
|
890
890
|
//#region ~icons/lucide/search.jsx
|
|
891
|
-
var
|
|
891
|
+
var Jt = (e) => /* @__PURE__ */ f("svg", {
|
|
892
892
|
viewBox: "0 0 24 24",
|
|
893
893
|
width: "1.2em",
|
|
894
894
|
height: "1.2em",
|
|
@@ -905,7 +905,7 @@ var Yt = (e) => /* @__PURE__ */ f("svg", {
|
|
|
905
905
|
r: 8
|
|
906
906
|
})]
|
|
907
907
|
})
|
|
908
|
-
}),
|
|
908
|
+
}), J = (e) => /* @__PURE__ */ f("svg", {
|
|
909
909
|
viewBox: "0 0 24 24",
|
|
910
910
|
width: "1.2em",
|
|
911
911
|
height: "1.2em",
|
|
@@ -918,137 +918,137 @@ var Yt = (e) => /* @__PURE__ */ f("svg", {
|
|
|
918
918
|
strokeWidth: 2,
|
|
919
919
|
d: "M18 6L6 18M6 6l12 12"
|
|
920
920
|
})
|
|
921
|
-
}),
|
|
921
|
+
}), Yt = D.Root, Xt = D.Trigger, Zt = D.Portal, Qt = D.Close, $t = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(D.Overlay, {
|
|
922
922
|
ref: n,
|
|
923
|
-
className:
|
|
923
|
+
className: W("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", e),
|
|
924
924
|
...t
|
|
925
925
|
}));
|
|
926
|
-
|
|
927
|
-
var
|
|
926
|
+
$t.displayName = D.Overlay.displayName;
|
|
927
|
+
var en = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ p(Zt, { children: [/* @__PURE__ */ f($t, {}), /* @__PURE__ */ p(D.Content, {
|
|
928
928
|
ref: r,
|
|
929
|
-
className:
|
|
929
|
+
className: W("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", e),
|
|
930
930
|
...n,
|
|
931
931
|
children: [t, /* @__PURE__ */ p(D.Close, {
|
|
932
932
|
className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
|
|
933
|
-
children: [/* @__PURE__ */ f(
|
|
933
|
+
children: [/* @__PURE__ */ f(J, { className: "h-4 w-4" }), /* @__PURE__ */ f("span", {
|
|
934
934
|
className: "sr-only",
|
|
935
935
|
children: "Close"
|
|
936
936
|
})]
|
|
937
937
|
})]
|
|
938
938
|
})] }));
|
|
939
|
-
|
|
940
|
-
var
|
|
941
|
-
className:
|
|
939
|
+
en.displayName = D.Content.displayName;
|
|
940
|
+
var tn = ({ className: e, ...t }) => /* @__PURE__ */ f("div", {
|
|
941
|
+
className: W("flex flex-col space-y-1.5 text-center sm:text-left", e),
|
|
942
942
|
...t
|
|
943
943
|
});
|
|
944
|
-
|
|
945
|
-
var
|
|
946
|
-
className:
|
|
944
|
+
tn.displayName = "DialogHeader";
|
|
945
|
+
var nn = ({ className: e, ...t }) => /* @__PURE__ */ f("div", {
|
|
946
|
+
className: W("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e),
|
|
947
947
|
...t
|
|
948
948
|
});
|
|
949
|
-
|
|
950
|
-
var
|
|
949
|
+
nn.displayName = "DialogFooter";
|
|
950
|
+
var rn = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(D.Title, {
|
|
951
951
|
ref: n,
|
|
952
|
-
className:
|
|
952
|
+
className: W("text-lg font-semibold leading-none tracking-tight", e),
|
|
953
953
|
...t
|
|
954
954
|
}));
|
|
955
|
-
|
|
956
|
-
var
|
|
955
|
+
rn.displayName = D.Title.displayName;
|
|
956
|
+
var an = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(D.Description, {
|
|
957
957
|
ref: n,
|
|
958
|
-
className:
|
|
958
|
+
className: W("text-sm text-muted-foreground", e),
|
|
959
959
|
...t
|
|
960
960
|
}));
|
|
961
|
-
|
|
961
|
+
an.displayName = D.Description.displayName;
|
|
962
962
|
//#endregion
|
|
963
963
|
//#region src/components/ui/command.tsx
|
|
964
|
-
var
|
|
964
|
+
var on = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(E, {
|
|
965
965
|
ref: n,
|
|
966
|
-
className:
|
|
966
|
+
className: W("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", e),
|
|
967
967
|
...t
|
|
968
968
|
}));
|
|
969
|
-
|
|
970
|
-
var
|
|
969
|
+
on.displayName = E.displayName;
|
|
970
|
+
var sn = ({ children: e, commandProps: t, ...n }) => {
|
|
971
971
|
let { className: r, ...i } = t ?? {};
|
|
972
|
-
return /* @__PURE__ */ f(
|
|
972
|
+
return /* @__PURE__ */ f(Yt, {
|
|
973
973
|
...n,
|
|
974
|
-
children: /* @__PURE__ */ f(
|
|
974
|
+
children: /* @__PURE__ */ f(en, {
|
|
975
975
|
className: "overflow-hidden p-0 shadow-lg",
|
|
976
|
-
children: /* @__PURE__ */ f(
|
|
977
|
-
className:
|
|
976
|
+
children: /* @__PURE__ */ f(on, {
|
|
977
|
+
className: W("**:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 **:[[cmdk-group]]:px-2 **:[[cmdk-input-wrapper]_svg]:size-5 **:[[cmdk-input]]:h-12 **:[[cmdk-item]]:px-2 **:[[cmdk-item]]:py-3 **:[[cmdk-item]_svg]:size-5", r),
|
|
978
978
|
...i,
|
|
979
979
|
children: e
|
|
980
980
|
})
|
|
981
981
|
})
|
|
982
982
|
});
|
|
983
|
-
},
|
|
983
|
+
}, cn = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p("div", {
|
|
984
984
|
className: "flex items-center border-b px-3",
|
|
985
985
|
"cmdk-input-wrapper": "",
|
|
986
|
-
children: [/* @__PURE__ */ f(
|
|
986
|
+
children: [/* @__PURE__ */ f(Jt, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), /* @__PURE__ */ f(E.Input, {
|
|
987
987
|
ref: n,
|
|
988
|
-
className:
|
|
988
|
+
className: W("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
989
989
|
...t
|
|
990
990
|
})]
|
|
991
991
|
}));
|
|
992
|
-
|
|
993
|
-
var
|
|
992
|
+
cn.displayName = E.Input.displayName;
|
|
993
|
+
var ln = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(E.List, {
|
|
994
994
|
ref: n,
|
|
995
|
-
className:
|
|
995
|
+
className: W("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
|
|
996
996
|
...t
|
|
997
997
|
}));
|
|
998
|
-
|
|
999
|
-
var
|
|
998
|
+
ln.displayName = E.List.displayName;
|
|
999
|
+
var un = e.forwardRef((e, t) => /* @__PURE__ */ f(E.Empty, {
|
|
1000
1000
|
ref: t,
|
|
1001
1001
|
className: "py-6 text-center text-sm",
|
|
1002
1002
|
...e
|
|
1003
1003
|
}));
|
|
1004
|
-
|
|
1005
|
-
var
|
|
1004
|
+
un.displayName = E.Empty.displayName;
|
|
1005
|
+
var dn = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(E.Group, {
|
|
1006
1006
|
ref: n,
|
|
1007
|
-
className:
|
|
1007
|
+
className: W("overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground", e),
|
|
1008
1008
|
...t
|
|
1009
1009
|
}));
|
|
1010
|
-
|
|
1011
|
-
var
|
|
1010
|
+
dn.displayName = E.Group.displayName;
|
|
1011
|
+
var fn = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(E.Separator, {
|
|
1012
1012
|
ref: n,
|
|
1013
|
-
className:
|
|
1013
|
+
className: W("-mx-1 h-px bg-border", e),
|
|
1014
1014
|
...t
|
|
1015
1015
|
}));
|
|
1016
|
-
|
|
1017
|
-
var
|
|
1016
|
+
fn.displayName = E.Separator.displayName;
|
|
1017
|
+
var pn = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(E.Item, {
|
|
1018
1018
|
ref: n,
|
|
1019
|
-
className:
|
|
1019
|
+
className: W("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 **:[svg]:pointer-events-none **:[svg]:size-4 **:[svg]:shrink-0", e),
|
|
1020
1020
|
...t
|
|
1021
1021
|
}));
|
|
1022
|
-
|
|
1023
|
-
var
|
|
1024
|
-
className:
|
|
1022
|
+
pn.displayName = E.Item.displayName;
|
|
1023
|
+
var mn = ({ className: e, ...t }) => /* @__PURE__ */ f("span", {
|
|
1024
|
+
className: W("ml-auto text-xs tracking-widest text-muted-foreground", e),
|
|
1025
1025
|
...t
|
|
1026
1026
|
});
|
|
1027
|
-
|
|
1027
|
+
mn.displayName = "CommandShortcut";
|
|
1028
1028
|
//#endregion
|
|
1029
1029
|
//#region src/components/ui/popover.tsx
|
|
1030
|
-
function
|
|
1030
|
+
function Y({ ...e }) {
|
|
1031
1031
|
return /* @__PURE__ */ f(O.Root, {
|
|
1032
1032
|
"data-slot": "popover",
|
|
1033
1033
|
...e
|
|
1034
1034
|
});
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function X({ ...e }) {
|
|
1037
1037
|
return /* @__PURE__ */ f(O.Trigger, {
|
|
1038
1038
|
"data-slot": "popover-trigger",
|
|
1039
1039
|
...e
|
|
1040
1040
|
});
|
|
1041
1041
|
}
|
|
1042
|
-
function
|
|
1042
|
+
function Z({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
1043
1043
|
return /* @__PURE__ */ f(O.Portal, { children: /* @__PURE__ */ f(O.Content, {
|
|
1044
1044
|
"data-slot": "popover-content",
|
|
1045
1045
|
align: t,
|
|
1046
1046
|
sideOffset: n,
|
|
1047
|
-
className:
|
|
1047
|
+
className: W("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", e),
|
|
1048
1048
|
...r
|
|
1049
1049
|
}) });
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1051
|
+
function hn({ ...e }) {
|
|
1052
1052
|
return /* @__PURE__ */ f(O.Anchor, {
|
|
1053
1053
|
"data-slot": "popover-anchor",
|
|
1054
1054
|
...e
|
|
@@ -1056,8 +1056,8 @@ function gn({ ...e }) {
|
|
|
1056
1056
|
}
|
|
1057
1057
|
//#endregion
|
|
1058
1058
|
//#region src/components/ui/combobox.tsx
|
|
1059
|
-
var
|
|
1060
|
-
let { SD: g } =
|
|
1059
|
+
var gn = e.forwardRef(({ options: t, name: n, value: r, onValueChange: i, onBlur: a, placeholder: o, searchPlaceholder: s, emptyText: c, disabled: l = !1, className: u, clearable: m = !1 }, h) => {
|
|
1060
|
+
let { SD: g } = q(), [_, v] = e.useState(!1), y = e.useRef(null), b = o ?? g("rc.combobox.selectPlaceholder"), x = s ?? g("common.searchPlaceholder"), S = c ?? g("rc.combobox.noResults");
|
|
1061
1061
|
e.useImperativeHandle(h, () => y.current);
|
|
1062
1062
|
let C = (e) => {
|
|
1063
1063
|
i?.((e === r ? "" : e) || void 0), v(!1);
|
|
@@ -1070,17 +1070,17 @@ var _n = e.forwardRef(({ options: t, name: n, value: r, onValueChange: i, onBlur
|
|
|
1070
1070
|
name: n,
|
|
1071
1071
|
value: r || "",
|
|
1072
1072
|
onBlur: a
|
|
1073
|
-
}), /* @__PURE__ */ p(
|
|
1073
|
+
}), /* @__PURE__ */ p(Y, {
|
|
1074
1074
|
open: _,
|
|
1075
1075
|
onOpenChange: v,
|
|
1076
|
-
children: [/* @__PURE__ */ f(
|
|
1076
|
+
children: [/* @__PURE__ */ f(X, {
|
|
1077
1077
|
asChild: !0,
|
|
1078
|
-
children: /* @__PURE__ */ p(
|
|
1078
|
+
children: /* @__PURE__ */ p(G, {
|
|
1079
1079
|
variant: "outline",
|
|
1080
1080
|
role: "combobox",
|
|
1081
1081
|
"aria-expanded": _,
|
|
1082
1082
|
disabled: l,
|
|
1083
|
-
className:
|
|
1083
|
+
className: W("w-full justify-between", u),
|
|
1084
1084
|
children: [/* @__PURE__ */ f("span", {
|
|
1085
1085
|
className: "flex-1 truncate text-left",
|
|
1086
1086
|
children: r ? t.find((e) => e.value === r)?.label : b
|
|
@@ -1090,32 +1090,32 @@ var _n = e.forwardRef(({ options: t, name: n, value: r, onValueChange: i, onBlur
|
|
|
1090
1090
|
className: "flex items-center justify-center",
|
|
1091
1091
|
onMouseDown: (e) => e.stopPropagation(),
|
|
1092
1092
|
onClick: w,
|
|
1093
|
-
children: /* @__PURE__ */ f(
|
|
1094
|
-
}), /* @__PURE__ */ f(
|
|
1093
|
+
children: /* @__PURE__ */ f(Vt, { className: "h-4 w-4 cursor-pointer opacity-50 hover:opacity-100 transition-opacity" })
|
|
1094
|
+
}), /* @__PURE__ */ f(Bt, { className: "h-4 w-4 opacity-50" })]
|
|
1095
1095
|
})]
|
|
1096
1096
|
})
|
|
1097
|
-
}), /* @__PURE__ */ f(
|
|
1097
|
+
}), /* @__PURE__ */ f(Z, {
|
|
1098
1098
|
className: "w-full p-0",
|
|
1099
|
-
children: /* @__PURE__ */ p(
|
|
1099
|
+
children: /* @__PURE__ */ p(on, { children: [/* @__PURE__ */ f(cn, {
|
|
1100
1100
|
placeholder: x,
|
|
1101
1101
|
className: "h-9"
|
|
1102
|
-
}), /* @__PURE__ */ p(
|
|
1102
|
+
}), /* @__PURE__ */ p(ln, { children: [/* @__PURE__ */ f(un, { children: S }), /* @__PURE__ */ f(dn, { children: t.map((e) => /* @__PURE__ */ p(pn, {
|
|
1103
1103
|
value: e.value,
|
|
1104
1104
|
onSelect: C,
|
|
1105
|
-
children: [e.label, /* @__PURE__ */ f(
|
|
1105
|
+
children: [e.label, /* @__PURE__ */ f(K, { className: W("ml-auto", r === e.value ? "opacity-100" : "opacity-0") })]
|
|
1106
1106
|
}, e.value)) })] })] })
|
|
1107
1107
|
})]
|
|
1108
1108
|
})] });
|
|
1109
1109
|
});
|
|
1110
|
-
|
|
1110
|
+
gn.displayName = "Combobox";
|
|
1111
1111
|
//#endregion
|
|
1112
1112
|
//#region src/components/ui/common-modal.tsx
|
|
1113
|
-
var
|
|
1113
|
+
var _n = k({
|
|
1114
1114
|
open: !1,
|
|
1115
1115
|
reactNode: null
|
|
1116
1116
|
});
|
|
1117
|
-
function
|
|
1118
|
-
let [t, n] = ee(
|
|
1117
|
+
function vn({ className: e }) {
|
|
1118
|
+
let [t, n] = ee(_n), { open: r, reactNode: i, title: o, description: s, className: c, onControlledOpen: l, onControlledClose: u } = t, d = () => {
|
|
1119
1119
|
u && u(), n({
|
|
1120
1120
|
open: !1,
|
|
1121
1121
|
reactNode: null
|
|
@@ -1123,25 +1123,25 @@ function yn({ className: e }) {
|
|
|
1123
1123
|
};
|
|
1124
1124
|
return a(() => {
|
|
1125
1125
|
r && l && l();
|
|
1126
|
-
}, [r]), /* @__PURE__ */ f(
|
|
1126
|
+
}, [r]), /* @__PURE__ */ f(Yt, {
|
|
1127
1127
|
open: r,
|
|
1128
1128
|
onOpenChange: (e) => {
|
|
1129
1129
|
e || d();
|
|
1130
1130
|
},
|
|
1131
|
-
children: /* @__PURE__ */ p(
|
|
1132
|
-
className:
|
|
1133
|
-
children: [/* @__PURE__ */ p(
|
|
1131
|
+
children: /* @__PURE__ */ p(en, {
|
|
1132
|
+
className: W("max-w-4xl", c, e),
|
|
1133
|
+
children: [/* @__PURE__ */ p(tn, { children: [/* @__PURE__ */ f(rn, {
|
|
1134
1134
|
className: o ? void 0 : "sr-only",
|
|
1135
1135
|
children: o || "Modal"
|
|
1136
|
-
}), /* @__PURE__ */ f(
|
|
1136
|
+
}), /* @__PURE__ */ f(an, {
|
|
1137
1137
|
className: s ? void 0 : "sr-only",
|
|
1138
1138
|
children: s || "Modal content"
|
|
1139
1139
|
})] }), i]
|
|
1140
1140
|
})
|
|
1141
1141
|
});
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1144
|
-
let [e, t] = ee(
|
|
1143
|
+
function yn() {
|
|
1144
|
+
let [e, t] = ee(_n), { open: n, reactNode: r, onCompleted: i } = e, a = (e, n) => {
|
|
1145
1145
|
t({
|
|
1146
1146
|
open: !0,
|
|
1147
1147
|
reactNode: e,
|
|
@@ -1165,7 +1165,7 @@ function bn() {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
//#endregion
|
|
1167
1167
|
//#region ~icons/lucide/circle.jsx
|
|
1168
|
-
var
|
|
1168
|
+
var bn = (e) => /* @__PURE__ */ f("svg", {
|
|
1169
1169
|
viewBox: "0 0 24 24",
|
|
1170
1170
|
width: "1.2em",
|
|
1171
1171
|
height: "1.2em",
|
|
@@ -1180,89 +1180,89 @@ var xn = (e) => /* @__PURE__ */ f("svg", {
|
|
|
1180
1180
|
strokeLinejoin: "round",
|
|
1181
1181
|
strokeWidth: 2
|
|
1182
1182
|
})
|
|
1183
|
-
}),
|
|
1183
|
+
}), xn = A.Root, Sn = A.Trigger, Cn = A.Group, wn = A.Portal, Tn = A.Sub, En = A.RadioGroup, Dn = e.forwardRef(({ className: e, inset: t, children: n, ...r }, i) => /* @__PURE__ */ p(A.SubTrigger, {
|
|
1184
1184
|
ref: i,
|
|
1185
|
-
className:
|
|
1185
|
+
className: W("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground", t && "pl-8", e),
|
|
1186
1186
|
...r,
|
|
1187
|
-
children: [n, /* @__PURE__ */ f(
|
|
1187
|
+
children: [n, /* @__PURE__ */ f(lt, { className: "ml-auto h-4 w-4" })]
|
|
1188
1188
|
}));
|
|
1189
|
-
|
|
1190
|
-
var
|
|
1189
|
+
Dn.displayName = A.SubTrigger.displayName;
|
|
1190
|
+
var On = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(A.SubContent, {
|
|
1191
1191
|
ref: n,
|
|
1192
|
-
className:
|
|
1192
|
+
className: W("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]", e),
|
|
1193
1193
|
...t
|
|
1194
1194
|
}));
|
|
1195
|
-
|
|
1196
|
-
var
|
|
1195
|
+
On.displayName = A.SubContent.displayName;
|
|
1196
|
+
var kn = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(A.Portal, { children: /* @__PURE__ */ f(A.Content, {
|
|
1197
1197
|
ref: n,
|
|
1198
|
-
className:
|
|
1198
|
+
className: W("z-50 max-h-[--radix-context-menu-content-available-height] min-w-32 overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]", e),
|
|
1199
1199
|
...t
|
|
1200
1200
|
}) }));
|
|
1201
|
-
|
|
1202
|
-
var
|
|
1201
|
+
kn.displayName = A.Content.displayName;
|
|
1202
|
+
var An = e.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ f(A.Item, {
|
|
1203
1203
|
ref: r,
|
|
1204
|
-
className:
|
|
1204
|
+
className: W("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50", t && "pl-8", e),
|
|
1205
1205
|
...n
|
|
1206
1206
|
}));
|
|
1207
|
-
|
|
1208
|
-
var
|
|
1207
|
+
An.displayName = A.Item.displayName;
|
|
1208
|
+
var jn = e.forwardRef(({ className: e, children: t, checked: n, ...r }, i) => /* @__PURE__ */ p(A.CheckboxItem, {
|
|
1209
1209
|
ref: i,
|
|
1210
|
-
className:
|
|
1210
|
+
className: W("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50", e),
|
|
1211
1211
|
checked: n,
|
|
1212
1212
|
...r,
|
|
1213
1213
|
children: [/* @__PURE__ */ f("span", {
|
|
1214
1214
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
1215
|
-
children: /* @__PURE__ */ f(A.ItemIndicator, { children: /* @__PURE__ */ f(
|
|
1215
|
+
children: /* @__PURE__ */ f(A.ItemIndicator, { children: /* @__PURE__ */ f(K, { className: "h-4 w-4" }) })
|
|
1216
1216
|
}), t]
|
|
1217
1217
|
}));
|
|
1218
|
-
|
|
1219
|
-
var
|
|
1218
|
+
jn.displayName = A.CheckboxItem.displayName;
|
|
1219
|
+
var Mn = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ p(A.RadioItem, {
|
|
1220
1220
|
ref: r,
|
|
1221
|
-
className:
|
|
1221
|
+
className: W("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50", e),
|
|
1222
1222
|
...n,
|
|
1223
1223
|
children: [/* @__PURE__ */ f("span", {
|
|
1224
1224
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
1225
|
-
children: /* @__PURE__ */ f(A.ItemIndicator, { children: /* @__PURE__ */ f(
|
|
1225
|
+
children: /* @__PURE__ */ f(A.ItemIndicator, { children: /* @__PURE__ */ f(bn, { className: "h-2 w-2 fill-current" }) })
|
|
1226
1226
|
}), t]
|
|
1227
1227
|
}));
|
|
1228
|
-
|
|
1229
|
-
var
|
|
1228
|
+
Mn.displayName = A.RadioItem.displayName;
|
|
1229
|
+
var Nn = e.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ f(A.Label, {
|
|
1230
1230
|
ref: r,
|
|
1231
|
-
className:
|
|
1231
|
+
className: W("px-2 py-1.5 text-sm font-semibold text-foreground", t && "pl-8", e),
|
|
1232
1232
|
...n
|
|
1233
1233
|
}));
|
|
1234
|
-
|
|
1235
|
-
var
|
|
1234
|
+
Nn.displayName = A.Label.displayName;
|
|
1235
|
+
var Pn = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(A.Separator, {
|
|
1236
1236
|
ref: n,
|
|
1237
|
-
className:
|
|
1237
|
+
className: W("-mx-1 my-1 h-px bg-border", e),
|
|
1238
1238
|
...t
|
|
1239
1239
|
}));
|
|
1240
|
-
|
|
1241
|
-
var
|
|
1242
|
-
className:
|
|
1240
|
+
Pn.displayName = A.Separator.displayName;
|
|
1241
|
+
var Fn = ({ className: e, ...t }) => /* @__PURE__ */ f("span", {
|
|
1242
|
+
className: W("ml-auto text-xs tracking-widest text-muted-foreground", e),
|
|
1243
1243
|
...t
|
|
1244
1244
|
});
|
|
1245
|
-
|
|
1245
|
+
Fn.displayName = "ContextMenuShortcut";
|
|
1246
1246
|
//#endregion
|
|
1247
1247
|
//#region src/components/ui/input.tsx
|
|
1248
|
-
var
|
|
1248
|
+
var Q = e.forwardRef(({ className: e, type: t, onValueChange: n, onChange: r, ...i }, a) => {
|
|
1249
1249
|
let o = (e) => {
|
|
1250
1250
|
n?.(e.target.value), r?.(e);
|
|
1251
1251
|
};
|
|
1252
1252
|
return /* @__PURE__ */ f("input", {
|
|
1253
1253
|
type: t,
|
|
1254
1254
|
"data-slot": "input",
|
|
1255
|
-
className:
|
|
1255
|
+
className: W("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base bg-input-background transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", e),
|
|
1256
1256
|
ref: a,
|
|
1257
1257
|
...i,
|
|
1258
1258
|
onChange: o
|
|
1259
1259
|
});
|
|
1260
1260
|
});
|
|
1261
|
-
|
|
1261
|
+
Q.displayName = "Input";
|
|
1262
1262
|
//#endregion
|
|
1263
1263
|
//#region src/components/ui/date-input.tsx
|
|
1264
|
-
function
|
|
1265
|
-
return /* @__PURE__ */ f(
|
|
1264
|
+
function In({ value: e, onValueChange: t, ...n }) {
|
|
1265
|
+
return /* @__PURE__ */ f(Q, {
|
|
1266
1266
|
type: "datetime-local",
|
|
1267
1267
|
value: e ? e instanceof Date ? e.toISOString().slice(0, 16) : new Date(e).toISOString().slice(0, 16) : "",
|
|
1268
1268
|
onChange: (e) => t(e.target.value ? new Date(e.target.value) : null),
|
|
@@ -1271,7 +1271,7 @@ function Ln({ value: e, onValueChange: t, ...n }) {
|
|
|
1271
1271
|
}
|
|
1272
1272
|
//#endregion
|
|
1273
1273
|
//#region ~icons/lucide/calendar.jsx
|
|
1274
|
-
var
|
|
1274
|
+
var Ln = (e) => /* @__PURE__ */ f("svg", {
|
|
1275
1275
|
viewBox: "0 0 24 24",
|
|
1276
1276
|
width: "1.2em",
|
|
1277
1277
|
height: "1.2em",
|
|
@@ -1297,21 +1297,21 @@ var Rn = (e) => /* @__PURE__ */ f("svg", {
|
|
|
1297
1297
|
});
|
|
1298
1298
|
//#endregion
|
|
1299
1299
|
//#region src/components/ui/date-picker.tsx
|
|
1300
|
-
function
|
|
1301
|
-
let { SD: a } =
|
|
1302
|
-
return /* @__PURE__ */ p(
|
|
1300
|
+
function Rn({ value: e, onValueChange: t, placeholder: n, disabled: r = !1, className: i }) {
|
|
1301
|
+
let { SD: a } = q(), o = n ?? a("rc.datePicker.pickDate");
|
|
1302
|
+
return /* @__PURE__ */ p(Y, { children: [/* @__PURE__ */ f(X, {
|
|
1303
1303
|
asChild: !0,
|
|
1304
|
-
children: /* @__PURE__ */ p(
|
|
1304
|
+
children: /* @__PURE__ */ p(G, {
|
|
1305
1305
|
variant: "outline",
|
|
1306
1306
|
disabled: r,
|
|
1307
1307
|
"data-empty": !e,
|
|
1308
|
-
className:
|
|
1309
|
-
children: [/* @__PURE__ */ f(
|
|
1308
|
+
className: W("w-full justify-start text-left font-normal", "data-[empty=true]:text-muted-foreground", i),
|
|
1309
|
+
children: [/* @__PURE__ */ f(Ln, {}), e ? j(e, "PPP") : /* @__PURE__ */ f("span", { children: o })]
|
|
1310
1310
|
})
|
|
1311
|
-
}), /* @__PURE__ */ f(
|
|
1311
|
+
}), /* @__PURE__ */ f(Z, {
|
|
1312
1312
|
className: "w-auto p-0",
|
|
1313
1313
|
align: "start",
|
|
1314
|
-
children: /* @__PURE__ */ f(
|
|
1314
|
+
children: /* @__PURE__ */ f(yt, {
|
|
1315
1315
|
mode: "single",
|
|
1316
1316
|
selected: e,
|
|
1317
1317
|
onSelect: (e) => {
|
|
@@ -1321,23 +1321,23 @@ function zn({ value: e, onValueChange: t, placeholder: n, disabled: r = !1, clas
|
|
|
1321
1321
|
})
|
|
1322
1322
|
})] });
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1325
|
-
let { SD: o } =
|
|
1326
|
-
return /* @__PURE__ */ p(
|
|
1324
|
+
function zn({ value: t, onValueChange: n, placeholder: r, disabled: i = !1, className: a }) {
|
|
1325
|
+
let { SD: o } = q(), s = r ?? o("rc.datePicker.selectDate"), [c, l] = e.useState(!1);
|
|
1326
|
+
return /* @__PURE__ */ p(Y, {
|
|
1327
1327
|
open: c,
|
|
1328
1328
|
onOpenChange: l,
|
|
1329
|
-
children: [/* @__PURE__ */ f(
|
|
1329
|
+
children: [/* @__PURE__ */ f(X, {
|
|
1330
1330
|
asChild: !0,
|
|
1331
|
-
children: /* @__PURE__ */ p(
|
|
1331
|
+
children: /* @__PURE__ */ p(G, {
|
|
1332
1332
|
variant: "outline",
|
|
1333
1333
|
disabled: i,
|
|
1334
|
-
className:
|
|
1335
|
-
children: [t ? t.toLocaleDateString() : s, /* @__PURE__ */ f(
|
|
1334
|
+
className: W("w-full justify-between font-normal", !t && "text-muted-foreground", a),
|
|
1335
|
+
children: [t ? t.toLocaleDateString() : s, /* @__PURE__ */ f(Ln, {})]
|
|
1336
1336
|
})
|
|
1337
|
-
}), /* @__PURE__ */ f(
|
|
1337
|
+
}), /* @__PURE__ */ f(Z, {
|
|
1338
1338
|
className: "w-auto overflow-hidden p-0",
|
|
1339
1339
|
align: "start",
|
|
1340
|
-
children: /* @__PURE__ */ f(
|
|
1340
|
+
children: /* @__PURE__ */ f(yt, {
|
|
1341
1341
|
mode: "single",
|
|
1342
1342
|
selected: t,
|
|
1343
1343
|
captionLayout: "dropdown",
|
|
@@ -1348,7 +1348,7 @@ function Bn({ value: t, onValueChange: n, placeholder: r, disabled: i = !1, clas
|
|
|
1348
1348
|
})]
|
|
1349
1349
|
});
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1351
|
+
function Bn({ CalendarIcon: t, value: n, onValueChange: r, placeholder: i = "Pick a date", dateFormat: a = "yyyy/MM/dd", className: o = "", numberOfMonths: s = 2, maxDate: c, minDate: l }) {
|
|
1352
1352
|
let [u, d] = e.useState(!1), m = e.useMemo(() => {
|
|
1353
1353
|
if (!n?.from && !n?.to) return i;
|
|
1354
1354
|
let e = n?.from ? j(n.from, a) : "", t = n?.to ? j(n.to, a) : "";
|
|
@@ -1360,12 +1360,12 @@ function Vn({ CalendarIcon: t, value: n, onValueChange: r, placeholder: i = "Pic
|
|
|
1360
1360
|
]), h = e.useMemo(() => {
|
|
1361
1361
|
if (!(!c && !l)) return (e) => !!(c && e > c || l && e < l);
|
|
1362
1362
|
}, [c, l]);
|
|
1363
|
-
return /* @__PURE__ */ p(
|
|
1363
|
+
return /* @__PURE__ */ p(Y, {
|
|
1364
1364
|
open: u,
|
|
1365
1365
|
onOpenChange: d,
|
|
1366
|
-
children: [/* @__PURE__ */ f(
|
|
1366
|
+
children: [/* @__PURE__ */ f(X, {
|
|
1367
1367
|
asChild: !0,
|
|
1368
|
-
children: /* @__PURE__ */ p(
|
|
1368
|
+
children: /* @__PURE__ */ p(G, {
|
|
1369
1369
|
variant: "outline",
|
|
1370
1370
|
className: `justify-start gap-2 h-8 px-3 text-xs font-normal ${o}`,
|
|
1371
1371
|
children: [/* @__PURE__ */ f(t, { className: "h-4 w-4 shrink-0" }), /* @__PURE__ */ f("span", {
|
|
@@ -1373,10 +1373,10 @@ function Vn({ CalendarIcon: t, value: n, onValueChange: r, placeholder: i = "Pic
|
|
|
1373
1373
|
children: m
|
|
1374
1374
|
})]
|
|
1375
1375
|
})
|
|
1376
|
-
}), /* @__PURE__ */ f(
|
|
1376
|
+
}), /* @__PURE__ */ f(Z, {
|
|
1377
1377
|
className: "w-auto p-0",
|
|
1378
1378
|
align: "start",
|
|
1379
|
-
children: /* @__PURE__ */ f(
|
|
1379
|
+
children: /* @__PURE__ */ f(yt, {
|
|
1380
1380
|
mode: "range",
|
|
1381
1381
|
defaultMonth: n?.from ?? (n?.to ? new Date(n.to.getFullYear(), n.to.getMonth() - 1, 1) : void 0),
|
|
1382
1382
|
selected: n,
|
|
@@ -1389,115 +1389,115 @@ function Vn({ CalendarIcon: t, value: n, onValueChange: r, placeholder: i = "Pic
|
|
|
1389
1389
|
}
|
|
1390
1390
|
//#endregion
|
|
1391
1391
|
//#region src/components/ui/drawer.tsx
|
|
1392
|
-
var
|
|
1392
|
+
var Vn = ({ shouldScaleBackground: e = !0, ...t }) => /* @__PURE__ */ f(M.Root, {
|
|
1393
1393
|
shouldScaleBackground: e,
|
|
1394
1394
|
...t
|
|
1395
1395
|
});
|
|
1396
|
-
|
|
1397
|
-
var
|
|
1396
|
+
Vn.displayName = "Drawer";
|
|
1397
|
+
var Hn = M.Trigger, Un = M.Portal, Wn = M.Close, Gn = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(M.Overlay, {
|
|
1398
1398
|
ref: n,
|
|
1399
|
-
className:
|
|
1399
|
+
className: W("fixed inset-0 z-50 bg-black/80", e),
|
|
1400
1400
|
...t
|
|
1401
1401
|
}));
|
|
1402
|
-
|
|
1403
|
-
var
|
|
1402
|
+
Gn.displayName = M.Overlay.displayName;
|
|
1403
|
+
var Kn = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ p(Un, { children: [/* @__PURE__ */ f(Gn, {}), /* @__PURE__ */ p(M.Content, {
|
|
1404
1404
|
ref: r,
|
|
1405
|
-
className:
|
|
1405
|
+
className: W("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background", e),
|
|
1406
1406
|
...n,
|
|
1407
1407
|
children: [/* @__PURE__ */ f("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }), t]
|
|
1408
1408
|
})] }));
|
|
1409
|
-
|
|
1410
|
-
var
|
|
1411
|
-
className:
|
|
1409
|
+
Kn.displayName = "DrawerContent";
|
|
1410
|
+
var qn = ({ className: e, ...t }) => /* @__PURE__ */ f("div", {
|
|
1411
|
+
className: W("grid gap-1.5 p-4 text-center sm:text-left", e),
|
|
1412
1412
|
...t
|
|
1413
1413
|
});
|
|
1414
|
-
|
|
1415
|
-
var
|
|
1416
|
-
className:
|
|
1414
|
+
qn.displayName = "DrawerHeader";
|
|
1415
|
+
var Jn = ({ className: e, ...t }) => /* @__PURE__ */ f("div", {
|
|
1416
|
+
className: W("mt-auto flex flex-col gap-2 p-4", e),
|
|
1417
1417
|
...t
|
|
1418
1418
|
});
|
|
1419
|
-
|
|
1420
|
-
var
|
|
1419
|
+
Jn.displayName = "DrawerFooter";
|
|
1420
|
+
var Yn = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(M.Title, {
|
|
1421
1421
|
ref: n,
|
|
1422
|
-
className:
|
|
1422
|
+
className: W("text-lg font-semibold leading-none tracking-tight", e),
|
|
1423
1423
|
...t
|
|
1424
1424
|
}));
|
|
1425
|
-
|
|
1426
|
-
var
|
|
1425
|
+
Yn.displayName = M.Title.displayName;
|
|
1426
|
+
var Xn = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(M.Description, {
|
|
1427
1427
|
ref: n,
|
|
1428
|
-
className:
|
|
1428
|
+
className: W("text-sm text-muted-foreground", e),
|
|
1429
1429
|
...t
|
|
1430
1430
|
}));
|
|
1431
|
-
|
|
1431
|
+
Xn.displayName = M.Description.displayName;
|
|
1432
1432
|
//#endregion
|
|
1433
1433
|
//#region src/components/ui/dropdown-menu.tsx
|
|
1434
|
-
var
|
|
1434
|
+
var Zn = N.Root, Qn = N.Trigger, $n = N.Group, er = N.Portal, tr = N.Sub, nr = N.RadioGroup, rr = e.forwardRef(({ className: e, inset: t, children: n, ...r }, i) => /* @__PURE__ */ p(N.SubTrigger, {
|
|
1435
1435
|
ref: i,
|
|
1436
|
-
className:
|
|
1436
|
+
className: W("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", t && "pl-8", e),
|
|
1437
1437
|
...r,
|
|
1438
|
-
children: [n, /* @__PURE__ */ f(
|
|
1438
|
+
children: [n, /* @__PURE__ */ f(lt, { className: "ml-auto" })]
|
|
1439
1439
|
}));
|
|
1440
|
-
|
|
1441
|
-
var
|
|
1440
|
+
rr.displayName = N.SubTrigger.displayName;
|
|
1441
|
+
var ir = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(N.SubContent, {
|
|
1442
1442
|
ref: n,
|
|
1443
|
-
className:
|
|
1443
|
+
className: W("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]", e),
|
|
1444
1444
|
...t
|
|
1445
1445
|
}));
|
|
1446
|
-
|
|
1447
|
-
var
|
|
1446
|
+
ir.displayName = N.SubContent.displayName;
|
|
1447
|
+
var ar = e.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ f(N.Portal, { children: /* @__PURE__ */ f(N.Content, {
|
|
1448
1448
|
ref: r,
|
|
1449
1449
|
sideOffset: t,
|
|
1450
|
-
className:
|
|
1450
|
+
className: W("z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-32 overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]", e),
|
|
1451
1451
|
...n
|
|
1452
1452
|
}) }));
|
|
1453
|
-
|
|
1454
|
-
var
|
|
1453
|
+
ar.displayName = N.Content.displayName;
|
|
1454
|
+
var or = e.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ f(N.Item, {
|
|
1455
1455
|
ref: r,
|
|
1456
|
-
className:
|
|
1456
|
+
className: W("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", t && "pl-8", e),
|
|
1457
1457
|
...n
|
|
1458
1458
|
}));
|
|
1459
|
-
|
|
1460
|
-
var
|
|
1459
|
+
or.displayName = N.Item.displayName;
|
|
1460
|
+
var sr = e.forwardRef(({ className: e, children: t, checked: n, ...r }, i) => /* @__PURE__ */ p(N.CheckboxItem, {
|
|
1461
1461
|
ref: i,
|
|
1462
|
-
className:
|
|
1462
|
+
className: W("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50", e),
|
|
1463
1463
|
checked: n,
|
|
1464
1464
|
...r,
|
|
1465
1465
|
children: [/* @__PURE__ */ f("span", {
|
|
1466
1466
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
1467
|
-
children: /* @__PURE__ */ f(N.ItemIndicator, { children: /* @__PURE__ */ f(
|
|
1467
|
+
children: /* @__PURE__ */ f(N.ItemIndicator, { children: /* @__PURE__ */ f(K, { className: "h-4 w-4" }) })
|
|
1468
1468
|
}), t]
|
|
1469
1469
|
}));
|
|
1470
|
-
|
|
1471
|
-
var
|
|
1470
|
+
sr.displayName = N.CheckboxItem.displayName;
|
|
1471
|
+
var cr = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ p(N.RadioItem, {
|
|
1472
1472
|
ref: r,
|
|
1473
|
-
className:
|
|
1473
|
+
className: W("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50", e),
|
|
1474
1474
|
...n,
|
|
1475
1475
|
children: [/* @__PURE__ */ f("span", {
|
|
1476
1476
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
1477
|
-
children: /* @__PURE__ */ f(N.ItemIndicator, { children: /* @__PURE__ */ f(
|
|
1477
|
+
children: /* @__PURE__ */ f(N.ItemIndicator, { children: /* @__PURE__ */ f(bn, { className: "h-2 w-2 fill-current" }) })
|
|
1478
1478
|
}), t]
|
|
1479
1479
|
}));
|
|
1480
|
-
|
|
1481
|
-
var
|
|
1480
|
+
cr.displayName = N.RadioItem.displayName;
|
|
1481
|
+
var lr = e.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ f(N.Label, {
|
|
1482
1482
|
ref: r,
|
|
1483
|
-
className:
|
|
1483
|
+
className: W("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
|
|
1484
1484
|
...n
|
|
1485
1485
|
}));
|
|
1486
|
-
|
|
1487
|
-
var
|
|
1486
|
+
lr.displayName = N.Label.displayName;
|
|
1487
|
+
var ur = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(N.Separator, {
|
|
1488
1488
|
ref: n,
|
|
1489
|
-
className:
|
|
1489
|
+
className: W("-mx-1 my-1 h-px bg-muted", e),
|
|
1490
1490
|
...t
|
|
1491
1491
|
}));
|
|
1492
|
-
|
|
1493
|
-
var
|
|
1494
|
-
className:
|
|
1492
|
+
ur.displayName = N.Separator.displayName;
|
|
1493
|
+
var dr = ({ className: e, ...t }) => /* @__PURE__ */ f("span", {
|
|
1494
|
+
className: W("ml-auto text-xs tracking-widest opacity-60", e),
|
|
1495
1495
|
...t
|
|
1496
1496
|
});
|
|
1497
|
-
|
|
1497
|
+
dr.displayName = "DropdownMenuShortcut";
|
|
1498
1498
|
//#endregion
|
|
1499
1499
|
//#region ~icons/lucide/file.jsx
|
|
1500
|
-
var
|
|
1500
|
+
var fr = (e) => /* @__PURE__ */ f("svg", {
|
|
1501
1501
|
viewBox: "0 0 24 24",
|
|
1502
1502
|
width: "1.2em",
|
|
1503
1503
|
height: "1.2em",
|
|
@@ -1510,7 +1510,7 @@ var pr = (e) => /* @__PURE__ */ f("svg", {
|
|
|
1510
1510
|
strokeWidth: 2,
|
|
1511
1511
|
children: [/* @__PURE__ */ f("path", { d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }), /* @__PURE__ */ f("path", { d: "M14 2v5a1 1 0 0 0 1 1h5" })]
|
|
1512
1512
|
})
|
|
1513
|
-
}),
|
|
1513
|
+
}), pr = (e) => /* @__PURE__ */ f("svg", {
|
|
1514
1514
|
viewBox: "0 0 24 24",
|
|
1515
1515
|
width: "1.2em",
|
|
1516
1516
|
height: "1.2em",
|
|
@@ -1538,7 +1538,7 @@ var pr = (e) => /* @__PURE__ */ f("svg", {
|
|
|
1538
1538
|
/* @__PURE__ */ f("path", { d: "m21 15l-3.086-3.086a2 2 0 0 0-2.828 0L6 21" })
|
|
1539
1539
|
]
|
|
1540
1540
|
})
|
|
1541
|
-
}),
|
|
1541
|
+
}), mr = (e) => /* @__PURE__ */ f("svg", {
|
|
1542
1542
|
viewBox: "0 0 24 24",
|
|
1543
1543
|
width: "1.2em",
|
|
1544
1544
|
height: "1.2em",
|
|
@@ -1551,7 +1551,7 @@ var pr = (e) => /* @__PURE__ */ f("svg", {
|
|
|
1551
1551
|
strokeWidth: 2,
|
|
1552
1552
|
d: "M21 12a9 9 0 1 1-6.219-8.56"
|
|
1553
1553
|
})
|
|
1554
|
-
}),
|
|
1554
|
+
}), hr = (e) => /* @__PURE__ */ f("svg", {
|
|
1555
1555
|
viewBox: "0 0 24 24",
|
|
1556
1556
|
width: "1.2em",
|
|
1557
1557
|
height: "1.2em",
|
|
@@ -1564,25 +1564,25 @@ var pr = (e) => /* @__PURE__ */ f("svg", {
|
|
|
1564
1564
|
strokeWidth: 2,
|
|
1565
1565
|
d: "M12 3v12m5-7l-5-5l-5 5m14 7v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"
|
|
1566
1566
|
})
|
|
1567
|
-
}),
|
|
1567
|
+
}), gr = {
|
|
1568
1568
|
sm: "w-20 h-20",
|
|
1569
1569
|
md: "w-32 h-32",
|
|
1570
1570
|
lg: "w-40 h-40",
|
|
1571
1571
|
xl: "w-48 h-48"
|
|
1572
|
-
},
|
|
1572
|
+
}, _r = {
|
|
1573
1573
|
sm: "w-48 h-12",
|
|
1574
1574
|
md: "w-80 h-16",
|
|
1575
1575
|
lg: "w-96 h-20",
|
|
1576
1576
|
xl: "w-[28rem] h-24"
|
|
1577
1577
|
};
|
|
1578
|
-
function
|
|
1579
|
-
let { placeholder: t, disabled: n = !1, className: i, previewSize: a = "md", uploadMode: o, viewMode: s, onBlur: u } = e, { uploader: m, SD: h } =
|
|
1578
|
+
function vr(e) {
|
|
1579
|
+
let { placeholder: t, disabled: n = !1, className: i, previewSize: a = "md", uploadMode: o, viewMode: s, onBlur: u } = e, { uploader: m, SD: h } = q(), g = e.multiple ?? !1, _ = s === "image", v = e.accept ?? (_ ? "image/*" : "*/*"), y = c(null), [b, x] = l(!1), [S, C] = l(!1), w = t ?? `${h(_ ? "rc.fileInput.imagePlaceholder" : "rc.fileInput.filePlaceholder")} URL${g ? "S" : ""}`, T = (() => {
|
|
1580
1580
|
if (!g) {
|
|
1581
1581
|
let t = e.value;
|
|
1582
1582
|
return t ? [t] : [];
|
|
1583
1583
|
}
|
|
1584
1584
|
return e.value || [];
|
|
1585
|
-
})(), E = T.filter((e) => e instanceof File), D =
|
|
1585
|
+
})(), E = T.filter((e) => e instanceof File), D = Fe(E), O = T.map((e) => e instanceof File ? {
|
|
1586
1586
|
url: D[E.indexOf(e)],
|
|
1587
1587
|
name: e.name,
|
|
1588
1588
|
isPending: !0
|
|
@@ -1632,7 +1632,7 @@ function yr(e) {
|
|
|
1632
1632
|
j,
|
|
1633
1633
|
n,
|
|
1634
1634
|
b
|
|
1635
|
-
]),
|
|
1635
|
+
]), P = r((t) => (n) => {
|
|
1636
1636
|
if (n.stopPropagation(), !g) e.onValueChange?.(null);
|
|
1637
1637
|
else {
|
|
1638
1638
|
let n = T.filter((e, n) => n !== t);
|
|
@@ -1642,13 +1642,13 @@ function yr(e) {
|
|
|
1642
1642
|
T,
|
|
1643
1643
|
g,
|
|
1644
1644
|
e.onValueChange
|
|
1645
|
-
]),
|
|
1645
|
+
]), te = () => {
|
|
1646
1646
|
!n && !b && y.current?.click();
|
|
1647
|
-
},
|
|
1647
|
+
}, ne = _ ? gr : _r;
|
|
1648
1648
|
if (!g && O.length > 0) {
|
|
1649
1649
|
let e = O[0];
|
|
1650
1650
|
return /* @__PURE__ */ p("div", {
|
|
1651
|
-
className:
|
|
1651
|
+
className: W("relative inline-block", i),
|
|
1652
1652
|
children: [/* @__PURE__ */ f("input", {
|
|
1653
1653
|
ref: y,
|
|
1654
1654
|
type: "file",
|
|
@@ -1658,7 +1658,7 @@ function yr(e) {
|
|
|
1658
1658
|
disabled: n || b,
|
|
1659
1659
|
className: "sr-only"
|
|
1660
1660
|
}), /* @__PURE__ */ f("div", {
|
|
1661
|
-
onClick:
|
|
1661
|
+
onClick: te,
|
|
1662
1662
|
onDrop: N,
|
|
1663
1663
|
onDragOver: (e) => {
|
|
1664
1664
|
e.preventDefault(), !n && !b && C(!0);
|
|
@@ -1666,10 +1666,10 @@ function yr(e) {
|
|
|
1666
1666
|
onDragLeave: (e) => {
|
|
1667
1667
|
e.preventDefault(), C(!1);
|
|
1668
1668
|
},
|
|
1669
|
-
className:
|
|
1669
|
+
className: W("relative flex items-center justify-center rounded-lg border-2 cursor-pointer transition-all", ne[a], _ ? "border-transparent" : "border-dashed border-muted-foreground/25 hover:border-muted-foreground/50", S && "border-primary bg-primary/5", n && "opacity-50 cursor-not-allowed", b && "cursor-wait"),
|
|
1670
1670
|
children: b ? /* @__PURE__ */ p("div", {
|
|
1671
1671
|
className: "flex flex-col items-center gap-2 text-muted-foreground",
|
|
1672
|
-
children: [/* @__PURE__ */ f(
|
|
1672
|
+
children: [/* @__PURE__ */ f(mr, { className: "h-6 w-6 animate-spin" }), /* @__PURE__ */ f("span", {
|
|
1673
1673
|
className: "text-xs",
|
|
1674
1674
|
children: h("rc.fileInput.uploading")
|
|
1675
1675
|
})]
|
|
@@ -1681,9 +1681,9 @@ function yr(e) {
|
|
|
1681
1681
|
}) : /* @__PURE__ */ p("div", {
|
|
1682
1682
|
className: "flex items-center gap-2 px-3 h-full w-full min-w-0 overflow-hidden",
|
|
1683
1683
|
children: [
|
|
1684
|
-
/* @__PURE__ */ f(
|
|
1684
|
+
/* @__PURE__ */ f(fr, { className: "h-6 w-6 text-muted-foreground shrink-0" }),
|
|
1685
1685
|
/* @__PURE__ */ f("span", {
|
|
1686
|
-
className:
|
|
1686
|
+
className: W("text-xs truncate min-w-0", e.isPending ? "w-[140px] shrink-0" : "flex-1"),
|
|
1687
1687
|
children: e.name
|
|
1688
1688
|
}),
|
|
1689
1689
|
e.isPending && /* @__PURE__ */ f("span", {
|
|
@@ -1692,13 +1692,13 @@ function yr(e) {
|
|
|
1692
1692
|
})
|
|
1693
1693
|
]
|
|
1694
1694
|
}),
|
|
1695
|
-
!n && /* @__PURE__ */ f(
|
|
1695
|
+
!n && /* @__PURE__ */ f(G, {
|
|
1696
1696
|
type: "button",
|
|
1697
1697
|
variant: "destructive",
|
|
1698
1698
|
size: "xs",
|
|
1699
1699
|
className: "absolute -top-2 -right-2 h-6 w-6 rounded-full p-0",
|
|
1700
|
-
onClick:
|
|
1701
|
-
icon: /* @__PURE__ */ f(
|
|
1700
|
+
onClick: P(0),
|
|
1701
|
+
icon: /* @__PURE__ */ f(J, {})
|
|
1702
1702
|
}),
|
|
1703
1703
|
_ && e.isPending && /* @__PURE__ */ f("div", {
|
|
1704
1704
|
className: "absolute bottom-2 left-2 right-2 mx-auto max-w-[calc(100%-1rem)] px-2 py-1 bg-yellow-500/90 text-white text-xs rounded text-center truncate",
|
|
@@ -1709,7 +1709,7 @@ function yr(e) {
|
|
|
1709
1709
|
});
|
|
1710
1710
|
}
|
|
1711
1711
|
return /* @__PURE__ */ p("div", {
|
|
1712
|
-
className:
|
|
1712
|
+
className: W("flex flex-wrap gap-3", i),
|
|
1713
1713
|
children: [
|
|
1714
1714
|
/* @__PURE__ */ f("input", {
|
|
1715
1715
|
ref: y,
|
|
@@ -1722,7 +1722,7 @@ function yr(e) {
|
|
|
1722
1722
|
className: "sr-only"
|
|
1723
1723
|
}),
|
|
1724
1724
|
O.map((e, t) => /* @__PURE__ */ p("div", {
|
|
1725
|
-
className:
|
|
1725
|
+
className: W("relative", ne[a]),
|
|
1726
1726
|
children: [
|
|
1727
1727
|
_ ? /* @__PURE__ */ f("div", {
|
|
1728
1728
|
className: "h-full w-full rounded-lg border overflow-hidden",
|
|
@@ -1732,11 +1732,11 @@ function yr(e) {
|
|
|
1732
1732
|
className: "h-full w-full object-cover"
|
|
1733
1733
|
})
|
|
1734
1734
|
}) : /* @__PURE__ */ p("div", {
|
|
1735
|
-
className:
|
|
1735
|
+
className: W("relative flex items-center gap-2 px-3 rounded-lg border-2 min-w-0 overflow-hidden", "border-dashed border-muted-foreground/25", "h-full w-full"),
|
|
1736
1736
|
children: [
|
|
1737
|
-
/* @__PURE__ */ f(
|
|
1737
|
+
/* @__PURE__ */ f(fr, { className: "h-6 w-6 text-muted-foreground shrink-0" }),
|
|
1738
1738
|
/* @__PURE__ */ f("span", {
|
|
1739
|
-
className:
|
|
1739
|
+
className: W("text-xs truncate min-w-0", e.isPending ? "w-[140px] shrink-0" : "flex-1"),
|
|
1740
1740
|
children: e.name
|
|
1741
1741
|
}),
|
|
1742
1742
|
e.isPending && /* @__PURE__ */ f("span", {
|
|
@@ -1745,13 +1745,13 @@ function yr(e) {
|
|
|
1745
1745
|
})
|
|
1746
1746
|
]
|
|
1747
1747
|
}),
|
|
1748
|
-
!n && /* @__PURE__ */ f(
|
|
1748
|
+
!n && /* @__PURE__ */ f(G, {
|
|
1749
1749
|
type: "button",
|
|
1750
1750
|
variant: "destructive",
|
|
1751
1751
|
size: "xs",
|
|
1752
1752
|
className: "absolute -top-2 -right-2 h-6 w-6 rounded-full p-0",
|
|
1753
|
-
onClick:
|
|
1754
|
-
icon: /* @__PURE__ */ f(
|
|
1753
|
+
onClick: P(t),
|
|
1754
|
+
icon: /* @__PURE__ */ f(J, {})
|
|
1755
1755
|
}),
|
|
1756
1756
|
_ && e.isPending && /* @__PURE__ */ f("div", {
|
|
1757
1757
|
className: "absolute bottom-2 left-2 right-2 mx-auto max-w-[calc(100%-1rem)] px-2 py-1 bg-yellow-500/90 text-white text-xs rounded text-center truncate",
|
|
@@ -1760,7 +1760,7 @@ function yr(e) {
|
|
|
1760
1760
|
]
|
|
1761
1761
|
}, `${e.url}-${t}`)),
|
|
1762
1762
|
A && /* @__PURE__ */ f("div", {
|
|
1763
|
-
onClick:
|
|
1763
|
+
onClick: te,
|
|
1764
1764
|
onDrop: N,
|
|
1765
1765
|
onDragOver: (e) => {
|
|
1766
1766
|
e.preventDefault(), !n && !b && C(!0);
|
|
@@ -1768,16 +1768,16 @@ function yr(e) {
|
|
|
1768
1768
|
onDragLeave: (e) => {
|
|
1769
1769
|
e.preventDefault(), C(!1);
|
|
1770
1770
|
},
|
|
1771
|
-
className:
|
|
1771
|
+
className: W("flex items-center justify-center rounded-lg border-2 border-dashed cursor-pointer transition-all", ne[a], S ? "border-primary bg-primary/5" : "border-muted-foreground/25 hover:border-muted-foreground/50", n && "opacity-50 cursor-not-allowed", b && "cursor-wait"),
|
|
1772
1772
|
children: b ? /* @__PURE__ */ p("div", {
|
|
1773
1773
|
className: "flex flex-col items-center gap-2 text-muted-foreground",
|
|
1774
|
-
children: [/* @__PURE__ */ f(
|
|
1774
|
+
children: [/* @__PURE__ */ f(mr, { className: "h-6 w-6 animate-spin" }), /* @__PURE__ */ f("span", {
|
|
1775
1775
|
className: "text-xs",
|
|
1776
1776
|
children: h("rc.fileInput.uploading")
|
|
1777
1777
|
})]
|
|
1778
1778
|
}) : /* @__PURE__ */ p("div", {
|
|
1779
1779
|
className: "flex flex-col items-center gap-2 text-muted-foreground p-2",
|
|
1780
|
-
children: [f(_ ?
|
|
1780
|
+
children: [f(_ ? pr : hr, { className: "h-6 w-6" }), /* @__PURE__ */ f("span", {
|
|
1781
1781
|
className: "text-xs text-center",
|
|
1782
1782
|
children: w
|
|
1783
1783
|
})]
|
|
@@ -1788,19 +1788,19 @@ function yr(e) {
|
|
|
1788
1788
|
}
|
|
1789
1789
|
//#endregion
|
|
1790
1790
|
//#region src/components/ui/label.tsx
|
|
1791
|
-
var
|
|
1791
|
+
var yr = g("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), br = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(re.Root, {
|
|
1792
1792
|
ref: n,
|
|
1793
|
-
className:
|
|
1793
|
+
className: W(yr(), e),
|
|
1794
1794
|
...t
|
|
1795
1795
|
}));
|
|
1796
|
-
|
|
1796
|
+
br.displayName = re.Root.displayName;
|
|
1797
1797
|
//#endregion
|
|
1798
1798
|
//#region src/components/ui/form.tsx
|
|
1799
|
-
var
|
|
1799
|
+
var xr = te, Sr = e.createContext(null), Cr = ({ ...e }) => /* @__PURE__ */ f(Sr.Provider, {
|
|
1800
1800
|
value: { name: e.name },
|
|
1801
|
-
children: /* @__PURE__ */ f(
|
|
1802
|
-
}),
|
|
1803
|
-
let t = e.useContext(
|
|
1801
|
+
children: /* @__PURE__ */ f(P, { ...e })
|
|
1802
|
+
}), wr = () => {
|
|
1803
|
+
let t = e.useContext(Sr), n = e.useContext(Tr), { getFieldState: r, formState: i } = ne();
|
|
1804
1804
|
if (!t) throw Error("useFormField should be used within <FormField>");
|
|
1805
1805
|
if (!n) throw Error("useFormField should be used within <FormItem>");
|
|
1806
1806
|
let a = r(t.name, i), { id: o } = n;
|
|
@@ -1812,30 +1812,30 @@ var Sr = ne, Cr = e.createContext(null), wr = ({ ...e }) => /* @__PURE__ */ f(Cr
|
|
|
1812
1812
|
formMessageId: `${o}-form-item-message`,
|
|
1813
1813
|
...a
|
|
1814
1814
|
};
|
|
1815
|
-
},
|
|
1815
|
+
}, Tr = e.createContext(null), Er = e.forwardRef(({ className: t, ...n }, r) => {
|
|
1816
1816
|
let i = e.useId();
|
|
1817
|
-
return /* @__PURE__ */ f(
|
|
1817
|
+
return /* @__PURE__ */ f(Tr.Provider, {
|
|
1818
1818
|
value: { id: i },
|
|
1819
1819
|
children: /* @__PURE__ */ f("div", {
|
|
1820
1820
|
ref: r,
|
|
1821
|
-
className:
|
|
1821
|
+
className: W("space-y-2", t),
|
|
1822
1822
|
...n
|
|
1823
1823
|
})
|
|
1824
1824
|
});
|
|
1825
1825
|
});
|
|
1826
|
-
|
|
1827
|
-
var
|
|
1828
|
-
let { error: r, formItemId: i } =
|
|
1829
|
-
return /* @__PURE__ */ f(
|
|
1826
|
+
Er.displayName = "FormItem";
|
|
1827
|
+
var Dr = e.forwardRef(({ className: e, ...t }, n) => {
|
|
1828
|
+
let { error: r, formItemId: i } = wr();
|
|
1829
|
+
return /* @__PURE__ */ f(br, {
|
|
1830
1830
|
ref: n,
|
|
1831
|
-
className:
|
|
1831
|
+
className: W(r && "text-destructive", e),
|
|
1832
1832
|
htmlFor: i,
|
|
1833
1833
|
...t
|
|
1834
1834
|
});
|
|
1835
1835
|
});
|
|
1836
|
-
|
|
1837
|
-
var
|
|
1838
|
-
let { error: n, formItemId: r, formDescriptionId: i, formMessageId: a } =
|
|
1836
|
+
Dr.displayName = "FormLabel";
|
|
1837
|
+
var Or = e.forwardRef(({ ...e }, t) => {
|
|
1838
|
+
let { error: n, formItemId: r, formDescriptionId: i, formMessageId: a } = wr();
|
|
1839
1839
|
return /* @__PURE__ */ f(v, {
|
|
1840
1840
|
ref: t,
|
|
1841
1841
|
id: r,
|
|
@@ -1844,41 +1844,41 @@ var kr = e.forwardRef(({ ...e }, t) => {
|
|
|
1844
1844
|
...e
|
|
1845
1845
|
});
|
|
1846
1846
|
});
|
|
1847
|
-
|
|
1848
|
-
var
|
|
1849
|
-
let { formDescriptionId: r } =
|
|
1847
|
+
Or.displayName = "FormControl";
|
|
1848
|
+
var kr = e.forwardRef(({ className: e, ...t }, n) => {
|
|
1849
|
+
let { formDescriptionId: r } = wr();
|
|
1850
1850
|
return /* @__PURE__ */ f("p", {
|
|
1851
1851
|
ref: n,
|
|
1852
1852
|
id: r,
|
|
1853
|
-
className:
|
|
1853
|
+
className: W("text-sm text-muted-foreground", e),
|
|
1854
1854
|
...t
|
|
1855
1855
|
});
|
|
1856
1856
|
});
|
|
1857
|
-
|
|
1858
|
-
var
|
|
1859
|
-
let { error: i, formMessageId: a } =
|
|
1857
|
+
kr.displayName = "FormDescription";
|
|
1858
|
+
var Ar = e.forwardRef(({ className: e, children: t, ...n }, r) => {
|
|
1859
|
+
let { error: i, formMessageId: a } = wr(), o = i ? String(i?.message ?? "") : t;
|
|
1860
1860
|
return o ? /* @__PURE__ */ f("p", {
|
|
1861
1861
|
ref: r,
|
|
1862
1862
|
id: a,
|
|
1863
|
-
className:
|
|
1863
|
+
className: W("text-sm font-medium text-destructive", e),
|
|
1864
1864
|
...n,
|
|
1865
1865
|
children: o
|
|
1866
1866
|
}) : null;
|
|
1867
1867
|
});
|
|
1868
|
-
|
|
1868
|
+
Ar.displayName = "FormMessage";
|
|
1869
1869
|
//#endregion
|
|
1870
1870
|
//#region src/components/ui/hover-card.tsx
|
|
1871
|
-
var
|
|
1871
|
+
var jr = F.Root, Mr = F.Trigger, Nr = e.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...r }, i) => /* @__PURE__ */ f(F.Content, {
|
|
1872
1872
|
ref: i,
|
|
1873
1873
|
align: t,
|
|
1874
1874
|
sideOffset: n,
|
|
1875
|
-
className:
|
|
1875
|
+
className: W("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-hover-card-content-transform-origin]", e),
|
|
1876
1876
|
...r
|
|
1877
1877
|
}));
|
|
1878
|
-
|
|
1878
|
+
Nr.displayName = F.Content.displayName;
|
|
1879
1879
|
//#endregion
|
|
1880
1880
|
//#region ~icons/lucide/dot.jsx
|
|
1881
|
-
var
|
|
1881
|
+
var Pr = (e) => /* @__PURE__ */ f("svg", {
|
|
1882
1882
|
viewBox: "0 0 24 24",
|
|
1883
1883
|
width: "1.2em",
|
|
1884
1884
|
height: "1.2em",
|
|
@@ -1893,24 +1893,24 @@ var Fr = (e) => /* @__PURE__ */ f("svg", {
|
|
|
1893
1893
|
strokeLinejoin: "round",
|
|
1894
1894
|
strokeWidth: 2
|
|
1895
1895
|
})
|
|
1896
|
-
}),
|
|
1896
|
+
}), Fr = e.forwardRef(({ className: e, containerClassName: t, ...n }, r) => /* @__PURE__ */ f(ie, {
|
|
1897
1897
|
ref: r,
|
|
1898
|
-
containerClassName:
|
|
1899
|
-
className:
|
|
1898
|
+
containerClassName: W("flex items-center gap-2 has-[:disabled]:opacity-50", t),
|
|
1899
|
+
className: W("disabled:cursor-not-allowed", e),
|
|
1900
1900
|
...n
|
|
1901
1901
|
}));
|
|
1902
|
-
|
|
1903
|
-
var
|
|
1902
|
+
Fr.displayName = "InputOTP";
|
|
1903
|
+
var Ir = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f("div", {
|
|
1904
1904
|
ref: n,
|
|
1905
|
-
className:
|
|
1905
|
+
className: W("flex items-center", e),
|
|
1906
1906
|
...t
|
|
1907
1907
|
}));
|
|
1908
|
-
|
|
1909
|
-
var
|
|
1910
|
-
let { char: a, hasFakeCaret: o, isActive: s } = e.useContext(
|
|
1908
|
+
Ir.displayName = "InputOTPGroup";
|
|
1909
|
+
var Lr = e.forwardRef(({ index: t, className: n, ...r }, i) => {
|
|
1910
|
+
let { char: a, hasFakeCaret: o, isActive: s } = e.useContext(ae).slots[t];
|
|
1911
1911
|
return /* @__PURE__ */ p("div", {
|
|
1912
1912
|
ref: i,
|
|
1913
|
-
className:
|
|
1913
|
+
className: W("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md", s && "z-10 ring-2 ring-ring ring-offset-background", n),
|
|
1914
1914
|
...r,
|
|
1915
1915
|
children: [a, o && /* @__PURE__ */ f("div", {
|
|
1916
1916
|
className: "pointer-events-none absolute inset-0 flex items-center justify-center",
|
|
@@ -1918,131 +1918,131 @@ var Rr = e.forwardRef(({ index: t, className: n, ...r }, i) => {
|
|
|
1918
1918
|
})]
|
|
1919
1919
|
});
|
|
1920
1920
|
});
|
|
1921
|
-
|
|
1922
|
-
var
|
|
1921
|
+
Lr.displayName = "InputOTPSlot";
|
|
1922
|
+
var Rr = e.forwardRef(({ ...e }, t) => /* @__PURE__ */ f("div", {
|
|
1923
1923
|
ref: t,
|
|
1924
1924
|
role: "separator",
|
|
1925
1925
|
...e,
|
|
1926
|
-
children: /* @__PURE__ */ f(
|
|
1926
|
+
children: /* @__PURE__ */ f(Pr, {})
|
|
1927
1927
|
}));
|
|
1928
|
-
|
|
1928
|
+
Rr.displayName = "InputOTPSeparator";
|
|
1929
1929
|
//#endregion
|
|
1930
1930
|
//#region src/components/ui/menubar.tsx
|
|
1931
|
+
function zr({ ...e }) {
|
|
1932
|
+
return /* @__PURE__ */ f(I.Menu, { ...e });
|
|
1933
|
+
}
|
|
1931
1934
|
function Br({ ...e }) {
|
|
1932
|
-
return /* @__PURE__ */ f(
|
|
1935
|
+
return /* @__PURE__ */ f(I.Group, { ...e });
|
|
1933
1936
|
}
|
|
1934
1937
|
function Vr({ ...e }) {
|
|
1935
|
-
return /* @__PURE__ */ f(
|
|
1938
|
+
return /* @__PURE__ */ f(I.Portal, { ...e });
|
|
1936
1939
|
}
|
|
1937
1940
|
function Hr({ ...e }) {
|
|
1938
|
-
return /* @__PURE__ */ f(
|
|
1941
|
+
return /* @__PURE__ */ f(I.RadioGroup, { ...e });
|
|
1939
1942
|
}
|
|
1940
1943
|
function Ur({ ...e }) {
|
|
1941
|
-
return /* @__PURE__ */ f(
|
|
1942
|
-
}
|
|
1943
|
-
function Wr({ ...e }) {
|
|
1944
|
-
return /* @__PURE__ */ f(F.Sub, {
|
|
1944
|
+
return /* @__PURE__ */ f(I.Sub, {
|
|
1945
1945
|
"data-slot": "menubar-sub",
|
|
1946
1946
|
...e
|
|
1947
1947
|
});
|
|
1948
1948
|
}
|
|
1949
|
-
var
|
|
1949
|
+
var Wr = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(I.Root, {
|
|
1950
1950
|
ref: n,
|
|
1951
|
-
className:
|
|
1951
|
+
className: W("flex h-10 items-center space-x-1 rounded-md border bg-background p-1", e),
|
|
1952
1952
|
...t
|
|
1953
1953
|
}));
|
|
1954
|
-
|
|
1955
|
-
var
|
|
1954
|
+
Wr.displayName = I.Root.displayName;
|
|
1955
|
+
var Gr = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(I.Trigger, {
|
|
1956
1956
|
ref: n,
|
|
1957
|
-
className:
|
|
1957
|
+
className: W("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground", e),
|
|
1958
1958
|
...t
|
|
1959
1959
|
}));
|
|
1960
|
-
|
|
1961
|
-
var
|
|
1960
|
+
Gr.displayName = I.Trigger.displayName;
|
|
1961
|
+
var Kr = e.forwardRef(({ className: e, inset: t, children: n, ...r }, i) => /* @__PURE__ */ p(I.SubTrigger, {
|
|
1962
1962
|
ref: i,
|
|
1963
|
-
className:
|
|
1963
|
+
className: W("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground", t && "pl-8", e),
|
|
1964
1964
|
...r,
|
|
1965
|
-
children: [n, /* @__PURE__ */ f(
|
|
1965
|
+
children: [n, /* @__PURE__ */ f(lt, { className: "ml-auto h-4 w-4" })]
|
|
1966
1966
|
}));
|
|
1967
|
-
|
|
1968
|
-
var
|
|
1967
|
+
Kr.displayName = I.SubTrigger.displayName;
|
|
1968
|
+
var qr = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(I.SubContent, {
|
|
1969
1969
|
ref: n,
|
|
1970
|
-
className:
|
|
1970
|
+
className: W("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]", e),
|
|
1971
1971
|
...t
|
|
1972
1972
|
}));
|
|
1973
|
-
|
|
1974
|
-
var
|
|
1973
|
+
qr.displayName = I.SubContent.displayName;
|
|
1974
|
+
var Jr = e.forwardRef(({ className: e, align: t = "start", alignOffset: n = -4, sideOffset: r = 8, ...i }, a) => /* @__PURE__ */ f(I.Portal, { children: /* @__PURE__ */ f(I.Content, {
|
|
1975
1975
|
ref: a,
|
|
1976
1976
|
align: t,
|
|
1977
1977
|
alignOffset: n,
|
|
1978
1978
|
sideOffset: r,
|
|
1979
|
-
className:
|
|
1979
|
+
className: W("z-50 min-w-48 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]", e),
|
|
1980
1980
|
...i
|
|
1981
1981
|
}) }));
|
|
1982
|
-
|
|
1983
|
-
var
|
|
1982
|
+
Jr.displayName = I.Content.displayName;
|
|
1983
|
+
var Yr = e.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ f(I.Item, {
|
|
1984
1984
|
ref: r,
|
|
1985
|
-
className:
|
|
1985
|
+
className: W("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50", t && "pl-8", e),
|
|
1986
1986
|
...n
|
|
1987
1987
|
}));
|
|
1988
|
-
|
|
1989
|
-
var
|
|
1988
|
+
Yr.displayName = I.Item.displayName;
|
|
1989
|
+
var Xr = e.forwardRef(({ className: e, children: t, checked: n, ...r }, i) => /* @__PURE__ */ p(I.CheckboxItem, {
|
|
1990
1990
|
ref: i,
|
|
1991
|
-
className:
|
|
1991
|
+
className: W("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50", e),
|
|
1992
1992
|
checked: n,
|
|
1993
1993
|
...r,
|
|
1994
1994
|
children: [/* @__PURE__ */ f("span", {
|
|
1995
1995
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
1996
|
-
children: /* @__PURE__ */ f(
|
|
1996
|
+
children: /* @__PURE__ */ f(I.ItemIndicator, { children: /* @__PURE__ */ f(K, { className: "h-4 w-4" }) })
|
|
1997
1997
|
}), t]
|
|
1998
1998
|
}));
|
|
1999
|
-
|
|
2000
|
-
var
|
|
1999
|
+
Xr.displayName = I.CheckboxItem.displayName;
|
|
2000
|
+
var Zr = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ p(I.RadioItem, {
|
|
2001
2001
|
ref: r,
|
|
2002
|
-
className:
|
|
2002
|
+
className: W("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50", e),
|
|
2003
2003
|
...n,
|
|
2004
2004
|
children: [/* @__PURE__ */ f("span", {
|
|
2005
2005
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
2006
|
-
children: /* @__PURE__ */ f(
|
|
2006
|
+
children: /* @__PURE__ */ f(I.ItemIndicator, { children: /* @__PURE__ */ f(bn, { className: "h-2 w-2 fill-current" }) })
|
|
2007
2007
|
}), t]
|
|
2008
2008
|
}));
|
|
2009
|
-
|
|
2010
|
-
var
|
|
2009
|
+
Zr.displayName = I.RadioItem.displayName;
|
|
2010
|
+
var Qr = e.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ f(I.Label, {
|
|
2011
2011
|
ref: r,
|
|
2012
|
-
className:
|
|
2012
|
+
className: W("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
|
|
2013
2013
|
...n
|
|
2014
2014
|
}));
|
|
2015
|
-
|
|
2016
|
-
var
|
|
2015
|
+
Qr.displayName = I.Label.displayName;
|
|
2016
|
+
var $r = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(I.Separator, {
|
|
2017
2017
|
ref: n,
|
|
2018
|
-
className:
|
|
2018
|
+
className: W("-mx-1 my-1 h-px bg-muted", e),
|
|
2019
2019
|
...t
|
|
2020
2020
|
}));
|
|
2021
|
-
|
|
2022
|
-
var
|
|
2023
|
-
className:
|
|
2021
|
+
$r.displayName = I.Separator.displayName;
|
|
2022
|
+
var ei = ({ className: e, ...t }) => /* @__PURE__ */ f("span", {
|
|
2023
|
+
className: W("ml-auto text-xs tracking-widest text-muted-foreground", e),
|
|
2024
2024
|
...t
|
|
2025
2025
|
});
|
|
2026
|
-
|
|
2026
|
+
ei.displayname = "MenubarShortcut";
|
|
2027
2027
|
//#endregion
|
|
2028
2028
|
//#region src/components/ui/separator.tsx
|
|
2029
|
-
var
|
|
2029
|
+
var ti = e.forwardRef(({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }, i) => /* @__PURE__ */ f(oe.Root, {
|
|
2030
2030
|
ref: i,
|
|
2031
2031
|
decorative: n,
|
|
2032
2032
|
orientation: t,
|
|
2033
|
-
className:
|
|
2033
|
+
className: W("shrink-0 bg-border", t === "horizontal" ? "h-px w-full" : "h-full w-px", e),
|
|
2034
2034
|
...r
|
|
2035
2035
|
}));
|
|
2036
|
-
|
|
2036
|
+
ti.displayName = oe.Root.displayName;
|
|
2037
2037
|
//#endregion
|
|
2038
2038
|
//#region src/components/ui/select/select.tsx
|
|
2039
|
-
function
|
|
2039
|
+
function ni(e) {
|
|
2040
2040
|
return typeof e == "object" && !!e && "value" in e;
|
|
2041
2041
|
}
|
|
2042
|
-
function
|
|
2042
|
+
function ri(e, t) {
|
|
2043
2043
|
let n = e.multiple === !0, i = e.async === !0, u = c(null);
|
|
2044
2044
|
o(t, () => u.current);
|
|
2045
|
-
let [d, f] = l(!1), [p, m] = l(""), [h, g] = l(/* @__PURE__ */ new Map()), _ = r((t) => t == null ? "" : e.valueKey ? e.valueKey(t) : String(t), [e.valueKey]), v = s(() => e.items.map((e) =>
|
|
2045
|
+
let [d, f] = l(!1), [p, m] = l(""), [h, g] = l(/* @__PURE__ */ new Map()), _ = r((t) => t == null ? "" : e.valueKey ? e.valueKey(t) : String(t), [e.valueKey]), v = s(() => e.items.map((e) => ni(e) ? e : { value: e }), [e.items]), y = s(() => {
|
|
2046
2046
|
let e = /* @__PURE__ */ new Map();
|
|
2047
2047
|
for (let t of v) e.set(_(t.value), t.value);
|
|
2048
2048
|
return e;
|
|
@@ -2126,7 +2126,7 @@ function ii(e, t) {
|
|
|
2126
2126
|
getItemLabel: b
|
|
2127
2127
|
};
|
|
2128
2128
|
}
|
|
2129
|
-
function
|
|
2129
|
+
function ii(e, t) {
|
|
2130
2130
|
if (!t || typeof e != "string") return e;
|
|
2131
2131
|
let n = e.toLowerCase(), r = t.toLowerCase(), i = n.indexOf(r);
|
|
2132
2132
|
if (i === -1) return e;
|
|
@@ -2140,8 +2140,8 @@ function ai(e, t) {
|
|
|
2140
2140
|
s
|
|
2141
2141
|
] });
|
|
2142
2142
|
}
|
|
2143
|
-
function
|
|
2144
|
-
let { SD: h } =
|
|
2143
|
+
function ai({ props: e, isMultiple: t, isAsync: n, isPopoverOpen: i, setIsPopoverOpen: a, searchValue: o, handleSearchChange: s, filteredOptions: l, getKeyForValue: u, getItemLabel: m }) {
|
|
2144
|
+
let { SD: h } = q(), g = c(null), _ = n || "searchable" in e && e.searchable === !0, v = r((e) => {
|
|
2145
2145
|
let t = g.current;
|
|
2146
2146
|
if (!t) return;
|
|
2147
2147
|
let n = t.scrollTop < t.scrollHeight - t.clientHeight, r = t.scrollTop > 0;
|
|
@@ -2174,10 +2174,10 @@ function oi({ props: e, isMultiple: t, isAsync: n, isPopoverOpen: i, setIsPopove
|
|
|
2174
2174
|
let n = e.value;
|
|
2175
2175
|
return /* @__PURE__ */ f(d, { children: n.map((e) => {
|
|
2176
2176
|
let t = u(e);
|
|
2177
|
-
return /* @__PURE__ */ p(
|
|
2177
|
+
return /* @__PURE__ */ p(ct, {
|
|
2178
2178
|
variant: "outline",
|
|
2179
2179
|
className: "m-1 transition-all duration-300 ease-in-out",
|
|
2180
|
-
children: [m(e), /* @__PURE__ */ f(
|
|
2180
|
+
children: [m(e), /* @__PURE__ */ f(Vt, {
|
|
2181
2181
|
className: "ml-2 h-3 w-3 cursor-pointer",
|
|
2182
2182
|
onClick: (t) => {
|
|
2183
2183
|
t.stopPropagation(), y(e);
|
|
@@ -2186,17 +2186,17 @@ function oi({ props: e, isMultiple: t, isAsync: n, isPopoverOpen: i, setIsPopove
|
|
|
2186
2186
|
}, t);
|
|
2187
2187
|
}) });
|
|
2188
2188
|
};
|
|
2189
|
-
return /* @__PURE__ */ p(
|
|
2189
|
+
return /* @__PURE__ */ p(Y, {
|
|
2190
2190
|
open: i,
|
|
2191
2191
|
onOpenChange: a,
|
|
2192
|
-
children: [/* @__PURE__ */ f(
|
|
2192
|
+
children: [/* @__PURE__ */ f(X, {
|
|
2193
2193
|
asChild: !0,
|
|
2194
|
-
children: /* @__PURE__ */ f(
|
|
2194
|
+
children: /* @__PURE__ */ f(G, {
|
|
2195
2195
|
variant: "outline",
|
|
2196
2196
|
role: "combobox",
|
|
2197
2197
|
"aria-expanded": i,
|
|
2198
2198
|
disabled: e.disabled || C,
|
|
2199
|
-
className:
|
|
2199
|
+
className: W("flex p-1 rounded-md border border-input min-h-10 h-auto items-center justify-between bg-white hover:bg-white hover:text-inherit [&_svg]:pointer-events-auto w-full", e.className),
|
|
2200
2200
|
children: t && T ? /* @__PURE__ */ p("div", {
|
|
2201
2201
|
className: "flex justify-between items-center w-full",
|
|
2202
2202
|
children: [/* @__PURE__ */ f("div", {
|
|
@@ -2212,13 +2212,13 @@ function oi({ props: e, isMultiple: t, isAsync: n, isPopoverOpen: i, setIsPopove
|
|
|
2212
2212
|
e.stopPropagation(), x();
|
|
2213
2213
|
},
|
|
2214
2214
|
className: "flex items-center justify-center h-4 w-4 mx-2 cursor-pointer text-muted-foreground hover:text-foreground",
|
|
2215
|
-
children: /* @__PURE__ */ f(
|
|
2215
|
+
children: /* @__PURE__ */ f(J, { className: "h-4 w-4" })
|
|
2216
2216
|
}),
|
|
2217
|
-
/* @__PURE__ */ f(
|
|
2217
|
+
/* @__PURE__ */ f(ti, {
|
|
2218
2218
|
orientation: "vertical",
|
|
2219
2219
|
className: "flex min-h-6 h-full"
|
|
2220
2220
|
}),
|
|
2221
|
-
/* @__PURE__ */ f(
|
|
2221
|
+
/* @__PURE__ */ f(Ne, { className: "h-4 mx-2 cursor-pointer text-muted-foreground" })
|
|
2222
2222
|
]
|
|
2223
2223
|
})]
|
|
2224
2224
|
}) : !t && T ? /* @__PURE__ */ p("div", {
|
|
@@ -2231,60 +2231,60 @@ function oi({ props: e, isMultiple: t, isAsync: n, isPopoverOpen: i, setIsPopove
|
|
|
2231
2231
|
});
|
|
2232
2232
|
})(), /* @__PURE__ */ p("div", {
|
|
2233
2233
|
className: "flex items-center gap-1 shrink-0",
|
|
2234
|
-
children: [e.clearable && T && /* @__PURE__ */ f(
|
|
2234
|
+
children: [e.clearable && T && /* @__PURE__ */ f(Vt, {
|
|
2235
2235
|
className: "h-4 w-4 cursor-pointer opacity-50 hover:opacity-100 transition-opacity",
|
|
2236
2236
|
onPointerDownCapture: x,
|
|
2237
2237
|
onMouseDownCapture: x
|
|
2238
|
-
}), /* @__PURE__ */ f(
|
|
2238
|
+
}), /* @__PURE__ */ f(Ne, { className: "h-4 w-4 opacity-50" })]
|
|
2239
2239
|
})]
|
|
2240
2240
|
}) : /* @__PURE__ */ p("div", {
|
|
2241
2241
|
className: "flex items-center justify-between w-full px-2 py-1",
|
|
2242
2242
|
children: [/* @__PURE__ */ f("span", {
|
|
2243
2243
|
className: "text-sm text-muted-foreground flex-1 truncate text-left",
|
|
2244
2244
|
children: e.placeholder
|
|
2245
|
-
}), /* @__PURE__ */ f(
|
|
2245
|
+
}), /* @__PURE__ */ f(Ne, { className: "h-4 cursor-pointer text-muted-foreground" })]
|
|
2246
2246
|
})
|
|
2247
2247
|
})
|
|
2248
|
-
}), /* @__PURE__ */ f(
|
|
2248
|
+
}), /* @__PURE__ */ f(Z, {
|
|
2249
2249
|
className: "min-w-40 p-0",
|
|
2250
2250
|
align: "start",
|
|
2251
2251
|
style: { width: "var(--radix-popover-trigger-width)" },
|
|
2252
|
-
children: /* @__PURE__ */ p(
|
|
2252
|
+
children: /* @__PURE__ */ p(on, {
|
|
2253
2253
|
shouldFilter: !1,
|
|
2254
|
-
children: [_ && /* @__PURE__ */ f(
|
|
2254
|
+
children: [_ && /* @__PURE__ */ f(cn, {
|
|
2255
2255
|
placeholder: h("common.searchPlaceholder"),
|
|
2256
2256
|
value: o,
|
|
2257
2257
|
onValueChange: s
|
|
2258
|
-
}), /* @__PURE__ */ f(
|
|
2258
|
+
}), /* @__PURE__ */ f(ln, {
|
|
2259
2259
|
ref: g,
|
|
2260
2260
|
onWheel: v,
|
|
2261
|
-
children: C ? /* @__PURE__ */ f(
|
|
2261
|
+
children: C ? /* @__PURE__ */ f(un, { children: /* @__PURE__ */ f("div", {
|
|
2262
2262
|
className: "flex items-center justify-center",
|
|
2263
|
-
children: /* @__PURE__ */ f(
|
|
2264
|
-
}) }) : w ? /* @__PURE__ */ p(
|
|
2263
|
+
children: /* @__PURE__ */ f(mr, { className: "h-4 w-4 animate-spin mr-2" })
|
|
2264
|
+
}) }) : w ? /* @__PURE__ */ p(un, { children: ["Error: ", w.message] }) : l.length === 0 ? /* @__PURE__ */ f(un, { children: h("rc.multiSelect.noResults") }) : /* @__PURE__ */ p(d, { children: [t && !("hideSelectAll" in e && e.hideSelectAll) && /* @__PURE__ */ f(dn, { children: /* @__PURE__ */ p(pn, {
|
|
2265
2265
|
onSelect: b,
|
|
2266
2266
|
className: "cursor-pointer",
|
|
2267
2267
|
children: [/* @__PURE__ */ f("div", {
|
|
2268
|
-
className:
|
|
2269
|
-
children: /* @__PURE__ */ f(
|
|
2268
|
+
className: W("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary", e.value.length === l.filter((e) => !e.disabled).length ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"),
|
|
2269
|
+
children: /* @__PURE__ */ f(K, { className: "h-4 w-4" })
|
|
2270
2270
|
}), /* @__PURE__ */ p("span", { children: [
|
|
2271
2271
|
"(",
|
|
2272
2272
|
h("rc.multiSelect.selectAll"),
|
|
2273
2273
|
")"
|
|
2274
2274
|
] })]
|
|
2275
|
-
}) }), /* @__PURE__ */ f(
|
|
2275
|
+
}) }), /* @__PURE__ */ f(dn, { children: l.map((e) => {
|
|
2276
2276
|
let n = u(e.value), r = S(e.value);
|
|
2277
|
-
return /* @__PURE__ */ p(
|
|
2277
|
+
return /* @__PURE__ */ p(pn, {
|
|
2278
2278
|
onSelect: () => y(e.value),
|
|
2279
2279
|
disabled: e.disabled,
|
|
2280
|
-
className:
|
|
2280
|
+
className: W("cursor-pointer", e.disabled && "opacity-50 cursor-not-allowed"),
|
|
2281
2281
|
children: [
|
|
2282
2282
|
t && /* @__PURE__ */ f("div", {
|
|
2283
|
-
className:
|
|
2284
|
-
children: /* @__PURE__ */ f(
|
|
2283
|
+
className: W("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary", r ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"),
|
|
2284
|
+
children: /* @__PURE__ */ f(K, { className: "h-4 w-4" })
|
|
2285
2285
|
}),
|
|
2286
|
-
!t && /* @__PURE__ */ f(
|
|
2287
|
-
/* @__PURE__ */ f("span", { children:
|
|
2286
|
+
!t && /* @__PURE__ */ f(K, { className: W("mr-2 h-4 w-4", r ? "opacity-100" : "opacity-0") }),
|
|
2287
|
+
/* @__PURE__ */ f("span", { children: ii(m(e.value), o) })
|
|
2288
2288
|
]
|
|
2289
2289
|
}, n);
|
|
2290
2290
|
}) })] })
|
|
@@ -2293,9 +2293,9 @@ function oi({ props: e, isMultiple: t, isAsync: n, isPopoverOpen: i, setIsPopove
|
|
|
2293
2293
|
})]
|
|
2294
2294
|
});
|
|
2295
2295
|
}
|
|
2296
|
-
var
|
|
2297
|
-
let n =
|
|
2298
|
-
return /* @__PURE__ */ f(
|
|
2296
|
+
var $ = e.forwardRef(function(e, t) {
|
|
2297
|
+
let n = ri(e, t);
|
|
2298
|
+
return /* @__PURE__ */ f(ai, {
|
|
2299
2299
|
props: e,
|
|
2300
2300
|
isMultiple: n.isMultiple,
|
|
2301
2301
|
isAsync: n.isAsync,
|
|
@@ -2307,7 +2307,7 @@ var Q = e.forwardRef(function(e, t) {
|
|
|
2307
2307
|
getKeyForValue: n.getKeyForValue,
|
|
2308
2308
|
getItemLabel: n.getItemLabel
|
|
2309
2309
|
});
|
|
2310
|
-
}),
|
|
2310
|
+
}), oi = [
|
|
2311
2311
|
"Jan",
|
|
2312
2312
|
"Feb",
|
|
2313
2313
|
"Mar",
|
|
@@ -2321,11 +2321,11 @@ var Q = e.forwardRef(function(e, t) {
|
|
|
2321
2321
|
"Nov",
|
|
2322
2322
|
"Dec"
|
|
2323
2323
|
];
|
|
2324
|
-
function
|
|
2324
|
+
function si({ CalendarIcon: t, ChevronDownIcon: n, value: r, onValueChange: i, placeholder: a, dateFormat: o = "MMM/yyyy", className: s = "", yearRange: c = {
|
|
2325
2325
|
start: 2020,
|
|
2326
2326
|
end: 2030
|
|
2327
2327
|
}, defaultRangeMode: l = !1 }) {
|
|
2328
|
-
let { SD: u } =
|
|
2328
|
+
let { SD: u } = q(), [d, m] = e.useState(!1), [h, g] = e.useState(l), [_, v] = e.useState(), [y, b] = e.useState(), [x, S] = e.useState((/* @__PURE__ */ new Date()).getFullYear()), [C, w] = e.useState((/* @__PURE__ */ new Date()).getFullYear()), [T, E] = e.useState((/* @__PURE__ */ new Date()).getFullYear()), D = e.useMemo(() => Array.from({ length: c.end - c.start + 1 }, (e, t) => c.start + t), [c.start, c.end]);
|
|
2329
2329
|
e.useEffect(() => {
|
|
2330
2330
|
d && (r?.type === "range" ? (g(!0), b({
|
|
2331
2331
|
from: r.from,
|
|
@@ -2341,12 +2341,12 @@ function ci({ CalendarIcon: t, ChevronDownIcon: n, value: r, onValueChange: i, p
|
|
|
2341
2341
|
};
|
|
2342
2342
|
return /* @__PURE__ */ f("div", {
|
|
2343
2343
|
className: "flex items-center gap-4",
|
|
2344
|
-
children: /* @__PURE__ */ p(
|
|
2344
|
+
children: /* @__PURE__ */ p(Y, {
|
|
2345
2345
|
open: d,
|
|
2346
2346
|
onOpenChange: m,
|
|
2347
|
-
children: [/* @__PURE__ */ f(
|
|
2347
|
+
children: [/* @__PURE__ */ f(X, {
|
|
2348
2348
|
asChild: !0,
|
|
2349
|
-
children: /* @__PURE__ */ p(
|
|
2349
|
+
children: /* @__PURE__ */ p(G, {
|
|
2350
2350
|
variant: "outline",
|
|
2351
2351
|
className: `gap-2 h-8 text-xs ${s}`,
|
|
2352
2352
|
children: [
|
|
@@ -2355,7 +2355,7 @@ function ci({ CalendarIcon: t, ChevronDownIcon: n, value: r, onValueChange: i, p
|
|
|
2355
2355
|
/* @__PURE__ */ f(n, { className: "h-4 w-4" })
|
|
2356
2356
|
]
|
|
2357
2357
|
})
|
|
2358
|
-
}), /* @__PURE__ */ p(
|
|
2358
|
+
}), /* @__PURE__ */ p(Z, {
|
|
2359
2359
|
className: "w-auto p-0",
|
|
2360
2360
|
align: "start",
|
|
2361
2361
|
children: [
|
|
@@ -2363,13 +2363,13 @@ function ci({ CalendarIcon: t, ChevronDownIcon: n, value: r, onValueChange: i, p
|
|
|
2363
2363
|
className: "p-3 border-b space-y-2",
|
|
2364
2364
|
children: /* @__PURE__ */ p("div", {
|
|
2365
2365
|
className: "flex gap-2",
|
|
2366
|
-
children: [/* @__PURE__ */ f(
|
|
2366
|
+
children: [/* @__PURE__ */ f(G, {
|
|
2367
2367
|
variant: h ? "outline" : "default",
|
|
2368
2368
|
size: "sm",
|
|
2369
2369
|
onClick: () => k(!1),
|
|
2370
2370
|
className: "flex-1 h-7 text-xs",
|
|
2371
2371
|
children: u("rc.monthPickerMultiple.singleDate")
|
|
2372
|
-
}), /* @__PURE__ */ f(
|
|
2372
|
+
}), /* @__PURE__ */ f(G, {
|
|
2373
2373
|
variant: h ? "default" : "outline",
|
|
2374
2374
|
size: "sm",
|
|
2375
2375
|
onClick: () => k(!0),
|
|
@@ -2388,7 +2388,7 @@ function ci({ CalendarIcon: t, ChevronDownIcon: n, value: r, onValueChange: i, p
|
|
|
2388
2388
|
className: "text-xs text-muted-foreground",
|
|
2389
2389
|
children: u("rc.monthPickerMultiple.startDate")
|
|
2390
2390
|
}),
|
|
2391
|
-
/* @__PURE__ */ f(
|
|
2391
|
+
/* @__PURE__ */ f($, {
|
|
2392
2392
|
value: C,
|
|
2393
2393
|
onValueChange: (e) => {
|
|
2394
2394
|
e !== void 0 && w(e);
|
|
@@ -2402,9 +2402,9 @@ function ci({ CalendarIcon: t, ChevronDownIcon: n, value: r, onValueChange: i, p
|
|
|
2402
2402
|
}),
|
|
2403
2403
|
/* @__PURE__ */ f("div", {
|
|
2404
2404
|
className: "grid grid-cols-3 gap-2",
|
|
2405
|
-
children:
|
|
2405
|
+
children: oi.map((e, t) => {
|
|
2406
2406
|
let n = y?.to ? C > y.to.getFullYear() || C === y.to.getFullYear() && t > y.to.getMonth() : !1;
|
|
2407
|
-
return /* @__PURE__ */ f(
|
|
2407
|
+
return /* @__PURE__ */ f(G, {
|
|
2408
2408
|
variant: y?.from?.getMonth() === t && y?.from?.getFullYear() === C ? "default" : "outline",
|
|
2409
2409
|
size: "sm",
|
|
2410
2410
|
onClick: () => {
|
|
@@ -2433,7 +2433,7 @@ function ci({ CalendarIcon: t, ChevronDownIcon: n, value: r, onValueChange: i, p
|
|
|
2433
2433
|
className: "text-xs text-muted-foreground",
|
|
2434
2434
|
children: u("rc.monthPickerMultiple.endDate")
|
|
2435
2435
|
}),
|
|
2436
|
-
/* @__PURE__ */ f(
|
|
2436
|
+
/* @__PURE__ */ f($, {
|
|
2437
2437
|
value: T,
|
|
2438
2438
|
onValueChange: (e) => {
|
|
2439
2439
|
e !== void 0 && E(e);
|
|
@@ -2447,9 +2447,9 @@ function ci({ CalendarIcon: t, ChevronDownIcon: n, value: r, onValueChange: i, p
|
|
|
2447
2447
|
}),
|
|
2448
2448
|
/* @__PURE__ */ f("div", {
|
|
2449
2449
|
className: "grid grid-cols-3 gap-2",
|
|
2450
|
-
children:
|
|
2450
|
+
children: oi.map((e, t) => {
|
|
2451
2451
|
let n = y?.from ? T < y.from.getFullYear() || T === y.from.getFullYear() && t < y.from.getMonth() : !1;
|
|
2452
|
-
return /* @__PURE__ */ f(
|
|
2452
|
+
return /* @__PURE__ */ f(G, {
|
|
2453
2453
|
variant: y?.to?.getMonth() === t && y?.to?.getFullYear() === T ? "default" : "outline",
|
|
2454
2454
|
size: "sm",
|
|
2455
2455
|
onClick: () => {
|
|
@@ -2473,7 +2473,7 @@ function ci({ CalendarIcon: t, ChevronDownIcon: n, value: r, onValueChange: i, p
|
|
|
2473
2473
|
]
|
|
2474
2474
|
}) : /* @__PURE__ */ p("div", {
|
|
2475
2475
|
className: "p-4 space-y-2",
|
|
2476
|
-
children: [/* @__PURE__ */ f(
|
|
2476
|
+
children: [/* @__PURE__ */ f($, {
|
|
2477
2477
|
value: x,
|
|
2478
2478
|
onValueChange: (e) => {
|
|
2479
2479
|
e !== void 0 && S(e);
|
|
@@ -2485,7 +2485,7 @@ function ci({ CalendarIcon: t, ChevronDownIcon: n, value: r, onValueChange: i, p
|
|
|
2485
2485
|
className: "h-8 text-xs"
|
|
2486
2486
|
}), /* @__PURE__ */ f("div", {
|
|
2487
2487
|
className: "grid grid-cols-3 gap-2",
|
|
2488
|
-
children:
|
|
2488
|
+
children: oi.map((e, t) => /* @__PURE__ */ f(G, {
|
|
2489
2489
|
variant: _?.getMonth() === t && _?.getFullYear() === x ? "default" : "outline",
|
|
2490
2490
|
size: "sm",
|
|
2491
2491
|
onClick: () => {
|
|
@@ -2499,7 +2499,7 @@ function ci({ CalendarIcon: t, ChevronDownIcon: n, value: r, onValueChange: i, p
|
|
|
2499
2499
|
}),
|
|
2500
2500
|
/* @__PURE__ */ p("div", {
|
|
2501
2501
|
className: "p-3 border-t flex justify-end gap-2",
|
|
2502
|
-
children: [/* @__PURE__ */ f(
|
|
2502
|
+
children: [/* @__PURE__ */ f(G, {
|
|
2503
2503
|
variant: "outline",
|
|
2504
2504
|
size: "sm",
|
|
2505
2505
|
onClick: () => {
|
|
@@ -2507,7 +2507,7 @@ function ci({ CalendarIcon: t, ChevronDownIcon: n, value: r, onValueChange: i, p
|
|
|
2507
2507
|
},
|
|
2508
2508
|
className: "h-8 text-xs",
|
|
2509
2509
|
children: u("rc.common.cancel")
|
|
2510
|
-
}), /* @__PURE__ */ f(
|
|
2510
|
+
}), /* @__PURE__ */ f(G, {
|
|
2511
2511
|
variant: "default",
|
|
2512
2512
|
size: "sm",
|
|
2513
2513
|
onClick: () => {
|
|
@@ -2532,69 +2532,69 @@ function ci({ CalendarIcon: t, ChevronDownIcon: n, value: r, onValueChange: i, p
|
|
|
2532
2532
|
}
|
|
2533
2533
|
//#endregion
|
|
2534
2534
|
//#region src/components/ui/navigation-menu.tsx
|
|
2535
|
-
var
|
|
2535
|
+
var ci = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ p(L.Root, {
|
|
2536
2536
|
ref: r,
|
|
2537
|
-
className:
|
|
2537
|
+
className: W("relative z-10 flex max-w-max flex-1 items-center justify-center", e),
|
|
2538
2538
|
...n,
|
|
2539
|
-
children: [t, /* @__PURE__ */ f(
|
|
2539
|
+
children: [t, /* @__PURE__ */ f(hi, {})]
|
|
2540
2540
|
}));
|
|
2541
|
-
|
|
2542
|
-
var
|
|
2541
|
+
ci.displayName = L.Root.displayName;
|
|
2542
|
+
var li = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(L.List, {
|
|
2543
2543
|
ref: n,
|
|
2544
|
-
className:
|
|
2544
|
+
className: W("group flex flex-1 list-none items-center justify-center space-x-1", e),
|
|
2545
2545
|
...t
|
|
2546
2546
|
}));
|
|
2547
|
-
|
|
2548
|
-
var
|
|
2547
|
+
li.displayName = L.List.displayName;
|
|
2548
|
+
var ui = L.Item, di = g("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"), fi = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ p(L.Trigger, {
|
|
2549
2549
|
ref: r,
|
|
2550
|
-
className:
|
|
2550
|
+
className: W(di(), "group", e),
|
|
2551
2551
|
...n,
|
|
2552
2552
|
children: [
|
|
2553
2553
|
t,
|
|
2554
2554
|
" ",
|
|
2555
|
-
/* @__PURE__ */ f(
|
|
2555
|
+
/* @__PURE__ */ f(Ne, {
|
|
2556
2556
|
className: "relative top-px ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
2557
2557
|
"aria-hidden": "true"
|
|
2558
2558
|
})
|
|
2559
2559
|
]
|
|
2560
2560
|
}));
|
|
2561
|
-
|
|
2562
|
-
var
|
|
2561
|
+
fi.displayName = L.Trigger.displayName;
|
|
2562
|
+
var pi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(L.Content, {
|
|
2563
2563
|
ref: n,
|
|
2564
|
-
className:
|
|
2564
|
+
className: W("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ", e),
|
|
2565
2565
|
...t
|
|
2566
2566
|
}));
|
|
2567
|
-
|
|
2568
|
-
var
|
|
2569
|
-
className:
|
|
2570
|
-
children: /* @__PURE__ */ f(
|
|
2571
|
-
className:
|
|
2567
|
+
pi.displayName = L.Content.displayName;
|
|
2568
|
+
var mi = L.Link, hi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f("div", {
|
|
2569
|
+
className: W("absolute left-0 top-full flex justify-center"),
|
|
2570
|
+
children: /* @__PURE__ */ f(L.Viewport, {
|
|
2571
|
+
className: W("origin-top-center relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-(--radix-navigation-menu-viewport-width)", e),
|
|
2572
2572
|
ref: n,
|
|
2573
2573
|
...t
|
|
2574
2574
|
})
|
|
2575
2575
|
}));
|
|
2576
|
-
|
|
2577
|
-
var
|
|
2576
|
+
hi.displayName = L.Viewport.displayName;
|
|
2577
|
+
var gi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(L.Indicator, {
|
|
2578
2578
|
ref: n,
|
|
2579
|
-
className:
|
|
2579
|
+
className: W("top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in", e),
|
|
2580
2580
|
...t,
|
|
2581
2581
|
children: /* @__PURE__ */ f("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
2582
2582
|
}));
|
|
2583
|
-
|
|
2583
|
+
gi.displayName = L.Indicator.displayName;
|
|
2584
2584
|
//#endregion
|
|
2585
2585
|
//#region src/components/ui/pagination.tsx
|
|
2586
|
-
var
|
|
2587
|
-
let { SD: s } =
|
|
2586
|
+
var _i = e.forwardRef(({ value: e, onValueChange: t, total: n, itemsPerPage: r, className: i, maxVisible: a = 6 }, o) => {
|
|
2587
|
+
let { SD: s } = q(), c = Math.ceil(n / r), l = e, u = (l - 1) * r + 1, d = Math.min(l * r, n);
|
|
2588
2588
|
return /* @__PURE__ */ p("div", {
|
|
2589
2589
|
ref: o,
|
|
2590
|
-
className:
|
|
2590
|
+
className: W("flex items-center justify-between pt-6", i),
|
|
2591
2591
|
children: [/* @__PURE__ */ f("div", {
|
|
2592
2592
|
className: "text-xs text-muted-foreground",
|
|
2593
2593
|
children: s("rc.pagination.showing")(u, d, n)
|
|
2594
2594
|
}), /* @__PURE__ */ p("div", {
|
|
2595
2595
|
className: "flex items-center gap-2",
|
|
2596
2596
|
children: [
|
|
2597
|
-
/* @__PURE__ */ f(
|
|
2597
|
+
/* @__PURE__ */ f(G, {
|
|
2598
2598
|
variant: "outline",
|
|
2599
2599
|
size: "sm",
|
|
2600
2600
|
className: "h-8 px-3 text-xs",
|
|
@@ -2606,7 +2606,7 @@ var vi = e.forwardRef(({ value: e, onValueChange: t, total: n, itemsPerPage: r,
|
|
|
2606
2606
|
className: "flex items-center gap-1",
|
|
2607
2607
|
children: (() => {
|
|
2608
2608
|
let e = Math.max(1, l - Math.floor(a / 2)), n = Math.min(c, e + a - 1);
|
|
2609
|
-
return n - e + 1 < a && (e = Math.max(1, n - a + 1)), Array.from({ length: n - e + 1 }, (t, n) => e + n).map((e) => /* @__PURE__ */ f(
|
|
2609
|
+
return n - e + 1 < a && (e = Math.max(1, n - a + 1)), Array.from({ length: n - e + 1 }, (t, n) => e + n).map((e) => /* @__PURE__ */ f(G, {
|
|
2610
2610
|
variant: "outline",
|
|
2611
2611
|
size: "sm",
|
|
2612
2612
|
className: `h-8 w-8 text-xs ${e === l ? "bg-primary text-primary-foreground" : ""}`,
|
|
@@ -2615,7 +2615,7 @@ var vi = e.forwardRef(({ value: e, onValueChange: t, total: n, itemsPerPage: r,
|
|
|
2615
2615
|
}, e));
|
|
2616
2616
|
})()
|
|
2617
2617
|
}),
|
|
2618
|
-
/* @__PURE__ */ f(
|
|
2618
|
+
/* @__PURE__ */ f(G, {
|
|
2619
2619
|
variant: "outline",
|
|
2620
2620
|
size: "sm",
|
|
2621
2621
|
className: "h-8 px-3 text-xs",
|
|
@@ -2627,45 +2627,45 @@ var vi = e.forwardRef(({ value: e, onValueChange: t, total: n, itemsPerPage: r,
|
|
|
2627
2627
|
})]
|
|
2628
2628
|
});
|
|
2629
2629
|
});
|
|
2630
|
-
|
|
2630
|
+
_i.displayName = "Pagination";
|
|
2631
2631
|
//#endregion
|
|
2632
2632
|
//#region src/components/ui/progress.tsx
|
|
2633
|
-
var
|
|
2633
|
+
var vi = e.forwardRef(({ className: e, value: t, ...n }, r) => /* @__PURE__ */ f(se.Root, {
|
|
2634
2634
|
ref: r,
|
|
2635
|
-
className:
|
|
2635
|
+
className: W("relative h-4 w-full overflow-hidden rounded-full bg-secondary", e),
|
|
2636
2636
|
...n,
|
|
2637
|
-
children: /* @__PURE__ */ f(
|
|
2637
|
+
children: /* @__PURE__ */ f(se.Indicator, {
|
|
2638
2638
|
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
2639
2639
|
style: { transform: `translateX(-${100 - (t || 0)}%)` }
|
|
2640
2640
|
})
|
|
2641
2641
|
}));
|
|
2642
|
-
|
|
2642
|
+
vi.displayName = se.Root.displayName;
|
|
2643
2643
|
//#endregion
|
|
2644
2644
|
//#region src/components/ui/radio-group.tsx
|
|
2645
|
-
var
|
|
2646
|
-
className:
|
|
2645
|
+
var yi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(R.Root, {
|
|
2646
|
+
className: W("grid gap-2", e),
|
|
2647
2647
|
...t,
|
|
2648
2648
|
ref: n
|
|
2649
2649
|
}));
|
|
2650
|
-
|
|
2651
|
-
var
|
|
2650
|
+
yi.displayName = R.Root.displayName;
|
|
2651
|
+
var bi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(R.Item, {
|
|
2652
2652
|
ref: n,
|
|
2653
|
-
className:
|
|
2653
|
+
className: W("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
2654
2654
|
...t,
|
|
2655
|
-
children: /* @__PURE__ */ f(
|
|
2655
|
+
children: /* @__PURE__ */ f(R.Indicator, {
|
|
2656
2656
|
className: "flex items-center justify-center",
|
|
2657
|
-
children: /* @__PURE__ */ f(
|
|
2657
|
+
children: /* @__PURE__ */ f("div", { className: "h-2 w-2 rounded-full bg-current" })
|
|
2658
2658
|
})
|
|
2659
2659
|
}));
|
|
2660
|
-
|
|
2660
|
+
bi.displayName = R.Item.displayName;
|
|
2661
2661
|
//#endregion
|
|
2662
2662
|
//#region src/components/ui/range-number-input.tsx
|
|
2663
|
-
function
|
|
2663
|
+
function xi({ value: e = [void 0, void 0], onChange: t, placeholder: n = ["최소값", "최대값"], disabled: r, className: i }) {
|
|
2664
2664
|
let [a, o] = e;
|
|
2665
2665
|
return /* @__PURE__ */ p("div", {
|
|
2666
2666
|
className: `flex items-center gap-2 ${i}`,
|
|
2667
2667
|
children: [
|
|
2668
|
-
/* @__PURE__ */ f(
|
|
2668
|
+
/* @__PURE__ */ f(Q, {
|
|
2669
2669
|
type: "number",
|
|
2670
2670
|
value: a === void 0 ? "" : String(a),
|
|
2671
2671
|
onValueChange: (e) => {
|
|
@@ -2680,7 +2680,7 @@ function Si({ value: e = [void 0, void 0], onChange: t, placeholder: n = ["최
|
|
|
2680
2680
|
className: "text-muted-foreground",
|
|
2681
2681
|
children: "~"
|
|
2682
2682
|
}),
|
|
2683
|
-
/* @__PURE__ */ f(
|
|
2683
|
+
/* @__PURE__ */ f(Q, {
|
|
2684
2684
|
type: "number",
|
|
2685
2685
|
value: o === void 0 ? "" : String(o),
|
|
2686
2686
|
onValueChange: (e) => {
|
|
@@ -2696,7 +2696,7 @@ function Si({ value: e = [void 0, void 0], onChange: t, placeholder: n = ["최
|
|
|
2696
2696
|
}
|
|
2697
2697
|
//#endregion
|
|
2698
2698
|
//#region ~icons/lucide/grip-vertical.jsx
|
|
2699
|
-
var
|
|
2699
|
+
var Si = (e) => /* @__PURE__ */ f("svg", {
|
|
2700
2700
|
viewBox: "0 0 24 24",
|
|
2701
2701
|
width: "1.2em",
|
|
2702
2702
|
height: "1.2em",
|
|
@@ -2740,41 +2740,41 @@ var Ci = (e) => /* @__PURE__ */ f("svg", {
|
|
|
2740
2740
|
})
|
|
2741
2741
|
]
|
|
2742
2742
|
})
|
|
2743
|
-
}),
|
|
2744
|
-
className:
|
|
2743
|
+
}), Ci = ({ className: e, ...t }) => /* @__PURE__ */ f(ce.PanelGroup, {
|
|
2744
|
+
className: W("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", e),
|
|
2745
2745
|
...t
|
|
2746
|
-
}),
|
|
2747
|
-
className:
|
|
2746
|
+
}), wi = ce.Panel, Ti = ({ withHandle: e, className: t, ...n }) => /* @__PURE__ */ f(ce.PanelResizeHandle, {
|
|
2747
|
+
className: W("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90", t),
|
|
2748
2748
|
...n,
|
|
2749
2749
|
children: e && /* @__PURE__ */ f("div", {
|
|
2750
2750
|
className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",
|
|
2751
|
-
children: /* @__PURE__ */ f(
|
|
2751
|
+
children: /* @__PURE__ */ f(Si, { className: "h-2.5 w-2.5" })
|
|
2752
2752
|
})
|
|
2753
|
-
}),
|
|
2753
|
+
}), Ei = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ p(z.Root, {
|
|
2754
2754
|
ref: r,
|
|
2755
|
-
className:
|
|
2755
|
+
className: W("relative overflow-hidden", e),
|
|
2756
2756
|
...n,
|
|
2757
2757
|
children: [
|
|
2758
2758
|
/* @__PURE__ */ f(z.Viewport, {
|
|
2759
2759
|
className: "h-full w-full rounded-[inherit]",
|
|
2760
2760
|
children: t
|
|
2761
2761
|
}),
|
|
2762
|
-
/* @__PURE__ */ f(
|
|
2762
|
+
/* @__PURE__ */ f(Di, {}),
|
|
2763
2763
|
/* @__PURE__ */ f(z.Corner, {})
|
|
2764
2764
|
]
|
|
2765
2765
|
}));
|
|
2766
|
-
|
|
2767
|
-
var
|
|
2766
|
+
Ei.displayName = z.Root.displayName;
|
|
2767
|
+
var Di = e.forwardRef(({ className: e, orientation: t = "vertical", ...n }, r) => /* @__PURE__ */ f(z.ScrollAreaScrollbar, {
|
|
2768
2768
|
ref: r,
|
|
2769
2769
|
orientation: t,
|
|
2770
|
-
className:
|
|
2770
|
+
className: W("flex touch-none select-none transition-colors", t === "vertical" && "h-full w-2.5 border-l border-l-transparent p-px", t === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-px", e),
|
|
2771
2771
|
...n,
|
|
2772
2772
|
children: /* @__PURE__ */ f(z.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
2773
2773
|
}));
|
|
2774
|
-
|
|
2774
|
+
Di.displayName = z.ScrollAreaScrollbar.displayName;
|
|
2775
2775
|
//#endregion
|
|
2776
2776
|
//#region src/components/ui/select/enum-select.tsx
|
|
2777
|
-
function
|
|
2777
|
+
function Oi({ enum: t, labels: n, value: r, onValueChange: i, placeholder: a, textPrefix: o = "", clearable: s = !1, disabled: c = !1, className: l, multiple: u = !1 }) {
|
|
2778
2778
|
let d = e.useMemo(() => t.options.filter((e) => e !== ""), [t]), p = e.useMemo(() => d.map((e) => ({
|
|
2779
2779
|
value: e,
|
|
2780
2780
|
label: o + n[e]
|
|
@@ -2783,7 +2783,7 @@ function ki({ enum: t, labels: n, value: r, onValueChange: i, placeholder: a, te
|
|
|
2783
2783
|
n,
|
|
2784
2784
|
o
|
|
2785
2785
|
]);
|
|
2786
|
-
return u ? /* @__PURE__ */ f(
|
|
2786
|
+
return u ? /* @__PURE__ */ f($, {
|
|
2787
2787
|
items: p,
|
|
2788
2788
|
value: r ?? [],
|
|
2789
2789
|
onValueChange: (e) => {
|
|
@@ -2795,7 +2795,7 @@ function ki({ enum: t, labels: n, value: r, onValueChange: i, placeholder: a, te
|
|
|
2795
2795
|
className: l,
|
|
2796
2796
|
multiple: !0,
|
|
2797
2797
|
async: !1
|
|
2798
|
-
}) : /* @__PURE__ */ f(
|
|
2798
|
+
}) : /* @__PURE__ */ f($, {
|
|
2799
2799
|
items: p,
|
|
2800
2800
|
value: r ?? "",
|
|
2801
2801
|
onValueChange: (e) => {
|
|
@@ -2811,78 +2811,78 @@ function ki({ enum: t, labels: n, value: r, onValueChange: i, placeholder: a, te
|
|
|
2811
2811
|
}
|
|
2812
2812
|
//#endregion
|
|
2813
2813
|
//#region src/components/ui/select/id-async-select.tsx
|
|
2814
|
-
var
|
|
2814
|
+
var ki = [
|
|
2815
2815
|
"name",
|
|
2816
2816
|
"title",
|
|
2817
2817
|
"label",
|
|
2818
2818
|
"display_name",
|
|
2819
2819
|
"username"
|
|
2820
2820
|
];
|
|
2821
|
-
function
|
|
2822
|
-
for (let t of
|
|
2821
|
+
function Ai(e) {
|
|
2822
|
+
for (let t of ki) if (Object.keys(e).includes(t)) return t;
|
|
2823
2823
|
for (let [t, n] of Object.entries(e)) if (t !== "id" && typeof n == "string") return t;
|
|
2824
2824
|
return "id";
|
|
2825
2825
|
}
|
|
2826
|
-
function
|
|
2827
|
-
let { SD:
|
|
2828
|
-
if (
|
|
2829
|
-
let t = typeof i == "string" ? i :
|
|
2826
|
+
function ji({ config: e, subset: t, baseListParams: n, displayField: i, valueField: a = "id", placeholder: o, clearable: c, disabled: u, className: d, multiple: p = !1, preload: m = !1, searchable: h, value: g, onValueChange: _, onRowChange: v }) {
|
|
2827
|
+
let { SD: y } = q(), b = typeof i == "function", x = r((e) => {
|
|
2828
|
+
if (b) return i(e);
|
|
2829
|
+
let t = typeof i == "string" ? i : Ai(e);
|
|
2830
2830
|
return String(e[t] ?? "");
|
|
2831
|
-
}, [i,
|
|
2832
|
-
|
|
2833
|
-
}, []),
|
|
2831
|
+
}, [i, b]), [S, C] = l(void 0), w = r((e) => {
|
|
2832
|
+
C(e || void 0);
|
|
2833
|
+
}, []), T = (e) => e == null || e === "" ? !1 : typeof e == "number" ? e !== 0 && !Number.isNaN(e) : !0, E = new Set([
|
|
2834
2834
|
"search",
|
|
2835
2835
|
"orderBy",
|
|
2836
2836
|
"queryMode",
|
|
2837
2837
|
"num",
|
|
2838
2838
|
"page",
|
|
2839
2839
|
"keyword"
|
|
2840
|
-
]),
|
|
2840
|
+
]), D = n != null && Object.entries(n).some(([e, t]) => !E.has(e) && T(t)), O = m || D, k = {
|
|
2841
2841
|
...n,
|
|
2842
|
-
...
|
|
2843
|
-
},
|
|
2844
|
-
M,
|
|
2842
|
+
...S ? { keyword: S } : {}
|
|
2843
|
+
}, ee = O || typeof S == "string" && S.length > 0 || p && Array.isArray(g) && g.length > 0, { data: A, isLoading: j, error: M } = e.useList(t, k, { enabled: ee }), N = A?.rows ?? [], P = !p && T(g) ? g : null, te = s(() => N.find((e) => e[a] === P), [
|
|
2845
2844
|
N,
|
|
2845
|
+
P,
|
|
2846
2846
|
a
|
|
2847
|
-
]), ne =
|
|
2848
|
-
id:
|
|
2847
|
+
]), ne = P != null && !te, re = e.useList(t, {
|
|
2848
|
+
id: P,
|
|
2849
2849
|
num: 1,
|
|
2850
2850
|
page: 1
|
|
2851
|
-
}, { enabled: ne }),
|
|
2852
|
-
|
|
2853
|
-
|
|
2851
|
+
}, { enabled: ne }), F = re.data?.rows?.[0] || te, ie = p && Array.isArray(g) ? g : [], ae = s(() => ie.map((e) => N.find((t) => t[a] === e)).filter(Boolean), [
|
|
2852
|
+
N,
|
|
2853
|
+
ie,
|
|
2854
2854
|
a
|
|
2855
|
-
]),
|
|
2855
|
+
]), I = s(() => {
|
|
2856
2856
|
let e = new Set(ae.map((e) => e?.[a]));
|
|
2857
|
-
return
|
|
2857
|
+
return ie.filter((t) => !e.has(t));
|
|
2858
2858
|
}, [
|
|
2859
|
-
|
|
2859
|
+
ie,
|
|
2860
2860
|
ae,
|
|
2861
2861
|
a
|
|
2862
|
-
]),
|
|
2863
|
-
id:
|
|
2864
|
-
num:
|
|
2862
|
+
]), oe = I.length > 0, L = e.useList(t, {
|
|
2863
|
+
id: I,
|
|
2864
|
+
num: I.length,
|
|
2865
2865
|
page: 1
|
|
2866
|
-
}, { enabled:
|
|
2867
|
-
let e =
|
|
2866
|
+
}, { enabled: oe }), se = s(() => {
|
|
2867
|
+
let e = L.data?.rows ?? [];
|
|
2868
2868
|
return [...ae, ...e];
|
|
2869
|
-
}, [ae,
|
|
2869
|
+
}, [ae, L.data]), R = j || ne && re.isLoading || oe && L.isLoading, { items: ce, rowMap: z } = s(() => {
|
|
2870
2870
|
let e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
|
|
2871
|
-
if (!p &&
|
|
2872
|
-
value:
|
|
2873
|
-
label:
|
|
2874
|
-
})), p &&
|
|
2871
|
+
if (!p && F && P != null && (e.set(P, F), t.set(P, {
|
|
2872
|
+
value: P,
|
|
2873
|
+
label: x(F)
|
|
2874
|
+
})), p && se.length > 0) for (let n of se) {
|
|
2875
2875
|
let r = n[a];
|
|
2876
2876
|
e.set(r, n), t.set(r, {
|
|
2877
2877
|
value: r,
|
|
2878
|
-
label:
|
|
2878
|
+
label: x(n)
|
|
2879
2879
|
});
|
|
2880
2880
|
}
|
|
2881
|
-
for (let n of
|
|
2881
|
+
for (let n of N) {
|
|
2882
2882
|
let r = n[a];
|
|
2883
2883
|
e.set(r, n), t.set(r, {
|
|
2884
2884
|
value: r,
|
|
2885
|
-
label:
|
|
2885
|
+
label: x(n)
|
|
2886
2886
|
});
|
|
2887
2887
|
}
|
|
2888
2888
|
return {
|
|
@@ -2890,79 +2890,81 @@ function Mi({ config: e, subset: t, baseListParams: n, displayField: i, valueFie
|
|
|
2890
2890
|
rowMap: e
|
|
2891
2891
|
};
|
|
2892
2892
|
}, [
|
|
2893
|
-
M,
|
|
2894
|
-
ie,
|
|
2895
2893
|
N,
|
|
2896
|
-
|
|
2894
|
+
F,
|
|
2895
|
+
P,
|
|
2896
|
+
se,
|
|
2897
2897
|
p,
|
|
2898
|
-
|
|
2898
|
+
x,
|
|
2899
2899
|
a
|
|
2900
|
-
]),
|
|
2901
|
-
return
|
|
2902
|
-
items:
|
|
2903
|
-
valueKey:
|
|
2904
|
-
value:
|
|
2900
|
+
]), B = (e) => String(e);
|
|
2901
|
+
return O ? p ? /* @__PURE__ */ f($, {
|
|
2902
|
+
items: ce,
|
|
2903
|
+
valueKey: B,
|
|
2904
|
+
value: g ?? [],
|
|
2905
2905
|
onValueChange: (e) => {
|
|
2906
|
-
|
|
2906
|
+
_?.(e), v?.(e.map((e) => z.get(e)).filter(Boolean));
|
|
2907
2907
|
},
|
|
2908
|
-
placeholder: o ??
|
|
2908
|
+
placeholder: o ?? y(e.placeholderKey),
|
|
2909
2909
|
clearable: c,
|
|
2910
2910
|
disabled: u,
|
|
2911
2911
|
className: d,
|
|
2912
|
-
multiple: !0
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2912
|
+
multiple: !0,
|
|
2913
|
+
searchable: h
|
|
2914
|
+
}) : /* @__PURE__ */ f($, {
|
|
2915
|
+
items: ce,
|
|
2916
|
+
valueKey: B,
|
|
2917
|
+
value: P ?? void 0,
|
|
2917
2918
|
onValueChange: (e) => {
|
|
2918
|
-
|
|
2919
|
+
_?.(e), v?.(e ? z.get(e) : void 0);
|
|
2919
2920
|
},
|
|
2920
|
-
placeholder: o ??
|
|
2921
|
+
placeholder: o ?? y(e.placeholderKey),
|
|
2921
2922
|
clearable: c,
|
|
2922
2923
|
disabled: u,
|
|
2923
2924
|
className: d,
|
|
2924
|
-
multiple: !1
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2925
|
+
multiple: !1,
|
|
2926
|
+
searchable: h
|
|
2927
|
+
}) : p ? /* @__PURE__ */ f($, {
|
|
2928
|
+
items: ce,
|
|
2929
|
+
value: g ?? [],
|
|
2928
2930
|
onValueChange: (e) => {
|
|
2929
|
-
|
|
2931
|
+
_?.(e), v?.(e.map((e) => z.get(e)).filter(Boolean));
|
|
2930
2932
|
},
|
|
2931
|
-
placeholder: o ??
|
|
2933
|
+
placeholder: o ?? y(e.placeholderKey),
|
|
2932
2934
|
clearable: c,
|
|
2933
2935
|
disabled: u,
|
|
2934
2936
|
className: d,
|
|
2935
2937
|
multiple: !0,
|
|
2936
2938
|
async: !0,
|
|
2937
|
-
loading:
|
|
2938
|
-
error:
|
|
2939
|
-
onSearch:
|
|
2940
|
-
}) : /* @__PURE__ */ f(
|
|
2941
|
-
items:
|
|
2942
|
-
value:
|
|
2939
|
+
loading: R,
|
|
2940
|
+
error: M ?? void 0,
|
|
2941
|
+
onSearch: w
|
|
2942
|
+
}) : /* @__PURE__ */ f($, {
|
|
2943
|
+
items: ce,
|
|
2944
|
+
value: P ?? void 0,
|
|
2943
2945
|
onValueChange: (e) => {
|
|
2944
|
-
|
|
2946
|
+
_?.(e), v?.(e ? z.get(e) : void 0);
|
|
2945
2947
|
},
|
|
2946
|
-
placeholder: o ??
|
|
2948
|
+
placeholder: o ?? y(e.placeholderKey),
|
|
2947
2949
|
clearable: c,
|
|
2948
2950
|
disabled: u,
|
|
2949
2951
|
className: d,
|
|
2950
2952
|
multiple: !1,
|
|
2951
2953
|
async: !0,
|
|
2952
|
-
loading:
|
|
2953
|
-
error:
|
|
2954
|
-
onSearch:
|
|
2954
|
+
loading: R,
|
|
2955
|
+
error: M ?? void 0,
|
|
2956
|
+
onSearch: w
|
|
2955
2957
|
});
|
|
2956
2958
|
}
|
|
2957
2959
|
//#endregion
|
|
2958
2960
|
//#region src/components/ui/sheet.tsx
|
|
2959
|
-
var
|
|
2960
|
-
className:
|
|
2961
|
+
var Mi = D.Root, Ni = D.Trigger, Pi = D.Close, Fi = D.Portal, Ii = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(D.Overlay, {
|
|
2962
|
+
className: W("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", e),
|
|
2961
2963
|
...t,
|
|
2962
2964
|
ref: n
|
|
2963
2965
|
}));
|
|
2964
|
-
|
|
2965
|
-
var
|
|
2966
|
+
Ii.displayName = D.Overlay.displayName;
|
|
2967
|
+
var Li = g("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500", {
|
|
2966
2968
|
variants: { side: {
|
|
2967
2969
|
top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
2968
2970
|
bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
|
|
@@ -2970,44 +2972,44 @@ var Ri = g("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out
|
|
|
2970
2972
|
right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
|
|
2971
2973
|
} },
|
|
2972
2974
|
defaultVariants: { side: "right" }
|
|
2973
|
-
}),
|
|
2975
|
+
}), Ri = e.forwardRef(({ side: e = "right", className: t, children: n, ...r }, i) => /* @__PURE__ */ p(Fi, { children: [/* @__PURE__ */ f(Ii, {}), /* @__PURE__ */ p(D.Content, {
|
|
2974
2976
|
ref: i,
|
|
2975
|
-
className:
|
|
2977
|
+
className: W(Li({ side: e }), t),
|
|
2976
2978
|
...r,
|
|
2977
2979
|
children: [n, /* @__PURE__ */ p(D.Close, {
|
|
2978
2980
|
className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",
|
|
2979
|
-
children: [/* @__PURE__ */ f(
|
|
2981
|
+
children: [/* @__PURE__ */ f(J, { className: "h-4 w-4" }), /* @__PURE__ */ f("span", {
|
|
2980
2982
|
className: "sr-only",
|
|
2981
2983
|
children: "Close"
|
|
2982
2984
|
})]
|
|
2983
2985
|
})]
|
|
2984
2986
|
})] }));
|
|
2985
|
-
|
|
2986
|
-
var
|
|
2987
|
-
className:
|
|
2987
|
+
Ri.displayName = D.Content.displayName;
|
|
2988
|
+
var zi = ({ className: e, ...t }) => /* @__PURE__ */ f("div", {
|
|
2989
|
+
className: W("flex flex-col space-y-2 text-center sm:text-left", e),
|
|
2988
2990
|
...t
|
|
2989
2991
|
});
|
|
2990
|
-
|
|
2991
|
-
var
|
|
2992
|
-
className:
|
|
2992
|
+
zi.displayName = "SheetHeader";
|
|
2993
|
+
var Bi = ({ className: e, ...t }) => /* @__PURE__ */ f("div", {
|
|
2994
|
+
className: W("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e),
|
|
2993
2995
|
...t
|
|
2994
2996
|
});
|
|
2995
|
-
|
|
2996
|
-
var
|
|
2997
|
+
Bi.displayName = "SheetFooter";
|
|
2998
|
+
var Vi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(D.Title, {
|
|
2997
2999
|
ref: n,
|
|
2998
|
-
className:
|
|
3000
|
+
className: W("text-lg font-semibold text-foreground", e),
|
|
2999
3001
|
...t
|
|
3000
3002
|
}));
|
|
3001
|
-
|
|
3002
|
-
var
|
|
3003
|
+
Vi.displayName = D.Title.displayName;
|
|
3004
|
+
var Hi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(D.Description, {
|
|
3003
3005
|
ref: n,
|
|
3004
|
-
className:
|
|
3006
|
+
className: W("text-sm text-muted-foreground", e),
|
|
3005
3007
|
...t
|
|
3006
3008
|
}));
|
|
3007
|
-
|
|
3009
|
+
Hi.displayName = D.Description.displayName;
|
|
3008
3010
|
//#endregion
|
|
3009
3011
|
//#region ~icons/lucide/panel-left.jsx
|
|
3010
|
-
var
|
|
3012
|
+
var Ui = (e) => /* @__PURE__ */ f("svg", {
|
|
3011
3013
|
viewBox: "0 0 24 24",
|
|
3012
3014
|
width: "1.2em",
|
|
3013
3015
|
height: "1.2em",
|
|
@@ -3026,43 +3028,43 @@ var Wi = (e) => /* @__PURE__ */ f("svg", {
|
|
|
3026
3028
|
rx: 2
|
|
3027
3029
|
}), /* @__PURE__ */ f("path", { d: "M9 3v18" })]
|
|
3028
3030
|
})
|
|
3029
|
-
}),
|
|
3030
|
-
function
|
|
3031
|
+
}), Wi = 768;
|
|
3032
|
+
function Gi() {
|
|
3031
3033
|
let [t, n] = e.useState(void 0);
|
|
3032
3034
|
return e.useEffect(() => {
|
|
3033
|
-
let e = window.matchMedia(`(max-width: ${
|
|
3034
|
-
n(window.innerWidth <
|
|
3035
|
+
let e = window.matchMedia(`(max-width: ${Wi - 1}px)`), t = () => {
|
|
3036
|
+
n(window.innerWidth < Wi);
|
|
3035
3037
|
};
|
|
3036
|
-
return e.addEventListener("change", t), n(window.innerWidth <
|
|
3038
|
+
return e.addEventListener("change", t), n(window.innerWidth < Wi), () => e.removeEventListener("change", t);
|
|
3037
3039
|
}, []), !!t;
|
|
3038
3040
|
}
|
|
3039
3041
|
//#endregion
|
|
3040
3042
|
//#region src/components/ui/skeleton.tsx
|
|
3041
|
-
function
|
|
3043
|
+
function Ki({ className: e, ...t }) {
|
|
3042
3044
|
return /* @__PURE__ */ f("div", {
|
|
3043
|
-
className:
|
|
3045
|
+
className: W("animate-pulse rounded-md bg-muted", e),
|
|
3044
3046
|
...t
|
|
3045
3047
|
});
|
|
3046
3048
|
}
|
|
3047
3049
|
//#endregion
|
|
3048
3050
|
//#region src/components/ui/tooltip.tsx
|
|
3049
|
-
var
|
|
3051
|
+
var qi = B.Provider, Ji = B.Root, Yi = B.Trigger, Xi = e.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ f(B.Content, {
|
|
3050
3052
|
ref: r,
|
|
3051
3053
|
sideOffset: t,
|
|
3052
|
-
className:
|
|
3054
|
+
className: W("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 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]", e),
|
|
3053
3055
|
...n
|
|
3054
3056
|
}));
|
|
3055
|
-
|
|
3057
|
+
Xi.displayName = B.Content.displayName;
|
|
3056
3058
|
//#endregion
|
|
3057
3059
|
//#region src/components/ui/sidebar.tsx
|
|
3058
|
-
var
|
|
3059
|
-
function
|
|
3060
|
-
let t = e.useContext(
|
|
3060
|
+
var Zi = "16rem", Qi = "18rem", $i = "3rem", ea = "b", ta = e.createContext(null);
|
|
3061
|
+
function na() {
|
|
3062
|
+
let t = e.useContext(ta);
|
|
3061
3063
|
if (!t) throw Error("useSidebar must be used within a SidebarProvider.");
|
|
3062
3064
|
return t;
|
|
3063
3065
|
}
|
|
3064
|
-
function
|
|
3065
|
-
let c =
|
|
3066
|
+
function ra({ defaultOpen: t = !0, open: n, onOpenChange: r, className: i, style: a, children: o, ...s }) {
|
|
3067
|
+
let c = Gi(), [l, u] = e.useState(!1), [d, p] = e.useState(t), m = n ?? d, h = e.useCallback((e) => {
|
|
3066
3068
|
let t = typeof e == "function" ? e(m) : e;
|
|
3067
3069
|
r ? r(t) : p(t);
|
|
3068
3070
|
}, [r, m]), g = e.useCallback(() => c ? u((e) => !e) : h((e) => !e), [
|
|
@@ -3072,7 +3074,7 @@ function ia({ defaultOpen: t = !0, open: n, onOpenChange: r, className: i, style
|
|
|
3072
3074
|
]);
|
|
3073
3075
|
e.useEffect(() => {
|
|
3074
3076
|
let e = (e) => {
|
|
3075
|
-
e.key ===
|
|
3077
|
+
e.key === ea && (e.metaKey || e.ctrlKey) && (e.preventDefault(), g());
|
|
3076
3078
|
};
|
|
3077
3079
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
3078
3080
|
}, [g]);
|
|
@@ -3093,45 +3095,45 @@ function ia({ defaultOpen: t = !0, open: n, onOpenChange: r, className: i, style
|
|
|
3093
3095
|
u,
|
|
3094
3096
|
g
|
|
3095
3097
|
]);
|
|
3096
|
-
return /* @__PURE__ */ f(
|
|
3098
|
+
return /* @__PURE__ */ f(ta.Provider, {
|
|
3097
3099
|
value: v,
|
|
3098
|
-
children: /* @__PURE__ */ f(
|
|
3100
|
+
children: /* @__PURE__ */ f(qi, {
|
|
3099
3101
|
delayDuration: 0,
|
|
3100
3102
|
children: /* @__PURE__ */ f("div", {
|
|
3101
3103
|
"data-slot": "sidebar-wrapper",
|
|
3102
3104
|
style: {
|
|
3103
|
-
"--sidebar-width":
|
|
3104
|
-
"--sidebar-width-icon":
|
|
3105
|
+
"--sidebar-width": Zi,
|
|
3106
|
+
"--sidebar-width-icon": $i,
|
|
3105
3107
|
...a
|
|
3106
3108
|
},
|
|
3107
|
-
className:
|
|
3109
|
+
className: W("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", i),
|
|
3108
3110
|
...s,
|
|
3109
3111
|
children: o
|
|
3110
3112
|
})
|
|
3111
3113
|
})
|
|
3112
3114
|
});
|
|
3113
3115
|
}
|
|
3114
|
-
function
|
|
3115
|
-
let { isMobile: o, state: s, openMobile: c, setOpenMobile: l } =
|
|
3116
|
+
function ia({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", className: r, children: i, ...a }) {
|
|
3117
|
+
let { isMobile: o, state: s, openMobile: c, setOpenMobile: l } = na();
|
|
3116
3118
|
return n === "none" ? /* @__PURE__ */ f("div", {
|
|
3117
3119
|
"data-slot": "sidebar",
|
|
3118
|
-
className:
|
|
3120
|
+
className: W("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", r),
|
|
3119
3121
|
...a,
|
|
3120
3122
|
children: i
|
|
3121
|
-
}) : o ? /* @__PURE__ */ f(
|
|
3123
|
+
}) : o ? /* @__PURE__ */ f(Mi, {
|
|
3122
3124
|
open: c,
|
|
3123
3125
|
onOpenChange: l,
|
|
3124
3126
|
...a,
|
|
3125
|
-
children: /* @__PURE__ */ p(
|
|
3127
|
+
children: /* @__PURE__ */ p(Ri, {
|
|
3126
3128
|
"data-sidebar": "sidebar",
|
|
3127
3129
|
"data-slot": "sidebar",
|
|
3128
3130
|
"data-mobile": "true",
|
|
3129
3131
|
className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
|
|
3130
|
-
style: { "--sidebar-width":
|
|
3132
|
+
style: { "--sidebar-width": Qi },
|
|
3131
3133
|
side: e,
|
|
3132
|
-
children: [/* @__PURE__ */ p(
|
|
3134
|
+
children: [/* @__PURE__ */ p(zi, {
|
|
3133
3135
|
className: "sr-only",
|
|
3134
|
-
children: [/* @__PURE__ */ f(
|
|
3136
|
+
children: [/* @__PURE__ */ f(Vi, { children: "Sidebar" }), /* @__PURE__ */ f(Hi, { children: "Displays the mobile sidebar." })]
|
|
3135
3137
|
}), /* @__PURE__ */ f("div", {
|
|
3136
3138
|
className: "flex h-full w-full flex-col",
|
|
3137
3139
|
children: i
|
|
@@ -3146,10 +3148,10 @@ function aa({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
|
|
|
3146
3148
|
"data-slot": "sidebar",
|
|
3147
3149
|
children: [/* @__PURE__ */ f("div", {
|
|
3148
3150
|
"data-slot": "sidebar-gap",
|
|
3149
|
-
className:
|
|
3151
|
+
className: W("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", t === "floating" || t === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+1rem)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
|
|
3150
3152
|
}), /* @__PURE__ */ f("div", {
|
|
3151
3153
|
"data-slot": "sidebar-container",
|
|
3152
|
-
className:
|
|
3154
|
+
className: W("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex", e === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]", t === "floating" || t === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+1rem+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", r),
|
|
3153
3155
|
...a,
|
|
3154
3156
|
children: /* @__PURE__ */ f("div", {
|
|
3155
3157
|
"data-sidebar": "sidebar",
|
|
@@ -3160,25 +3162,25 @@ function aa({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
|
|
|
3160
3162
|
})]
|
|
3161
3163
|
});
|
|
3162
3164
|
}
|
|
3163
|
-
function
|
|
3164
|
-
let { toggleSidebar: r } =
|
|
3165
|
-
return /* @__PURE__ */ p(
|
|
3165
|
+
function aa({ className: e, onClick: t, ...n }) {
|
|
3166
|
+
let { toggleSidebar: r } = na();
|
|
3167
|
+
return /* @__PURE__ */ p(G, {
|
|
3166
3168
|
"data-sidebar": "trigger",
|
|
3167
3169
|
"data-slot": "sidebar-trigger",
|
|
3168
3170
|
variant: "ghost",
|
|
3169
|
-
className:
|
|
3171
|
+
className: W("size-7", e),
|
|
3170
3172
|
onClick: (e) => {
|
|
3171
3173
|
t?.(e), r();
|
|
3172
3174
|
},
|
|
3173
3175
|
...n,
|
|
3174
|
-
children: [/* @__PURE__ */ f(
|
|
3176
|
+
children: [/* @__PURE__ */ f(Ui, {}), /* @__PURE__ */ f("span", {
|
|
3175
3177
|
className: "sr-only",
|
|
3176
3178
|
children: "Toggle Sidebar"
|
|
3177
3179
|
})]
|
|
3178
3180
|
});
|
|
3179
3181
|
}
|
|
3180
|
-
function
|
|
3181
|
-
let { toggleSidebar: n } =
|
|
3182
|
+
function oa({ className: e, ...t }) {
|
|
3183
|
+
let { toggleSidebar: n } = na();
|
|
3182
3184
|
return /* @__PURE__ */ f("button", {
|
|
3183
3185
|
"data-sidebar": "rail",
|
|
3184
3186
|
"data-slot": "sidebar-rail",
|
|
@@ -3186,106 +3188,106 @@ function sa({ className: e, ...t }) {
|
|
|
3186
3188
|
tabIndex: -1,
|
|
3187
3189
|
onClick: n,
|
|
3188
3190
|
title: "Toggle Sidebar",
|
|
3189
|
-
className:
|
|
3191
|
+
className: W("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex", "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize", "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize", "hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full", "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2", "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2", e),
|
|
3190
3192
|
...t
|
|
3191
3193
|
});
|
|
3192
3194
|
}
|
|
3193
|
-
function
|
|
3195
|
+
function sa({ className: e, ...t }) {
|
|
3194
3196
|
return /* @__PURE__ */ f("main", {
|
|
3195
3197
|
"data-slot": "sidebar-inset",
|
|
3196
|
-
className:
|
|
3198
|
+
className: W("bg-background relative flex w-full flex-1 flex-col", "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2", e),
|
|
3197
3199
|
...t
|
|
3198
3200
|
});
|
|
3199
3201
|
}
|
|
3200
|
-
function
|
|
3201
|
-
return /* @__PURE__ */ f(
|
|
3202
|
+
function ca({ className: e, ...t }) {
|
|
3203
|
+
return /* @__PURE__ */ f(Q, {
|
|
3202
3204
|
"data-slot": "sidebar-input",
|
|
3203
3205
|
"data-sidebar": "input",
|
|
3204
|
-
className:
|
|
3206
|
+
className: W("bg-background h-8 w-full shadow-none", e),
|
|
3205
3207
|
...t
|
|
3206
3208
|
});
|
|
3207
3209
|
}
|
|
3208
|
-
function
|
|
3210
|
+
function la({ className: e, ...t }) {
|
|
3209
3211
|
return /* @__PURE__ */ f("div", {
|
|
3210
3212
|
"data-slot": "sidebar-header",
|
|
3211
3213
|
"data-sidebar": "header",
|
|
3212
|
-
className:
|
|
3214
|
+
className: W("flex shrink-0 flex-col gap-2 p-2", e),
|
|
3213
3215
|
...t
|
|
3214
3216
|
});
|
|
3215
3217
|
}
|
|
3216
|
-
function
|
|
3218
|
+
function ua({ className: e, ...t }) {
|
|
3217
3219
|
return /* @__PURE__ */ f("div", {
|
|
3218
3220
|
"data-slot": "sidebar-footer",
|
|
3219
3221
|
"data-sidebar": "footer",
|
|
3220
|
-
className:
|
|
3222
|
+
className: W("flex shrink-0 flex-col gap-2 p-2", e),
|
|
3221
3223
|
...t
|
|
3222
3224
|
});
|
|
3223
3225
|
}
|
|
3224
|
-
function
|
|
3225
|
-
return /* @__PURE__ */ f(
|
|
3226
|
+
function da({ className: e, ...t }) {
|
|
3227
|
+
return /* @__PURE__ */ f(ti, {
|
|
3226
3228
|
"data-slot": "sidebar-separator",
|
|
3227
3229
|
"data-sidebar": "separator",
|
|
3228
|
-
className:
|
|
3230
|
+
className: W("bg-sidebar-border mx-2 w-auto", e),
|
|
3229
3231
|
...t
|
|
3230
3232
|
});
|
|
3231
3233
|
}
|
|
3232
|
-
function
|
|
3234
|
+
function fa({ className: e, ...t }) {
|
|
3233
3235
|
return /* @__PURE__ */ f("div", {
|
|
3234
3236
|
"data-slot": "sidebar-content",
|
|
3235
3237
|
"data-sidebar": "content",
|
|
3236
|
-
className:
|
|
3238
|
+
className: W("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", e),
|
|
3237
3239
|
...t
|
|
3238
3240
|
});
|
|
3239
3241
|
}
|
|
3240
|
-
function
|
|
3242
|
+
function pa({ className: e, ...t }) {
|
|
3241
3243
|
return /* @__PURE__ */ f("div", {
|
|
3242
3244
|
"data-slot": "sidebar-group",
|
|
3243
3245
|
"data-sidebar": "group",
|
|
3244
|
-
className:
|
|
3246
|
+
className: W("relative flex w-full min-w-0 flex-col p-2", e),
|
|
3245
3247
|
...t
|
|
3246
3248
|
});
|
|
3247
3249
|
}
|
|
3248
|
-
function
|
|
3250
|
+
function ma({ className: e, asChild: t = !1, ...n }) {
|
|
3249
3251
|
return /* @__PURE__ */ f(t ? v : "div", {
|
|
3250
3252
|
"data-slot": "sidebar-group-label",
|
|
3251
3253
|
"data-sidebar": "group-label",
|
|
3252
|
-
className:
|
|
3254
|
+
className: W("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-none transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0", e),
|
|
3253
3255
|
...n
|
|
3254
3256
|
});
|
|
3255
3257
|
}
|
|
3256
|
-
function
|
|
3258
|
+
function ha({ className: e, asChild: t = !1, ...n }) {
|
|
3257
3259
|
return /* @__PURE__ */ f(t ? v : "button", {
|
|
3258
3260
|
"data-slot": "sidebar-group-action",
|
|
3259
3261
|
"data-sidebar": "group-action",
|
|
3260
|
-
className:
|
|
3262
|
+
className: W("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-none transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 md:after:hidden", "group-data-[collapsible=icon]:hidden", e),
|
|
3261
3263
|
...n
|
|
3262
3264
|
});
|
|
3263
3265
|
}
|
|
3264
|
-
function
|
|
3266
|
+
function ga({ className: e, ...t }) {
|
|
3265
3267
|
return /* @__PURE__ */ f("div", {
|
|
3266
3268
|
"data-slot": "sidebar-group-content",
|
|
3267
3269
|
"data-sidebar": "group-content",
|
|
3268
|
-
className:
|
|
3270
|
+
className: W("w-full text-sm", e),
|
|
3269
3271
|
...t
|
|
3270
3272
|
});
|
|
3271
3273
|
}
|
|
3272
|
-
function
|
|
3274
|
+
function _a({ className: e, ...t }) {
|
|
3273
3275
|
return /* @__PURE__ */ f("ul", {
|
|
3274
3276
|
"data-slot": "sidebar-menu",
|
|
3275
3277
|
"data-sidebar": "menu",
|
|
3276
|
-
className:
|
|
3278
|
+
className: W("flex w-full min-w-0 flex-col gap-1", e),
|
|
3277
3279
|
...t
|
|
3278
3280
|
});
|
|
3279
3281
|
}
|
|
3280
|
-
function
|
|
3282
|
+
function va({ className: e, ...t }) {
|
|
3281
3283
|
return /* @__PURE__ */ f("li", {
|
|
3282
3284
|
"data-slot": "sidebar-menu-item",
|
|
3283
3285
|
"data-sidebar": "menu-item",
|
|
3284
|
-
className:
|
|
3286
|
+
className: W("group/menu-item relative", e),
|
|
3285
3287
|
...t
|
|
3286
3288
|
});
|
|
3287
3289
|
}
|
|
3288
|
-
var
|
|
3290
|
+
var ya = g("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", {
|
|
3289
3291
|
variants: {
|
|
3290
3292
|
variant: {
|
|
3291
3293
|
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
@@ -3302,95 +3304,95 @@ var ba = g("peer/menu-button flex w-full items-center gap-2 overflow-hidden roun
|
|
|
3302
3304
|
size: "default"
|
|
3303
3305
|
}
|
|
3304
3306
|
});
|
|
3305
|
-
function
|
|
3306
|
-
let s = e ? v : "button", { isMobile: c, state: l } =
|
|
3307
|
+
function ba({ asChild: e = !1, isActive: t = !1, variant: n = "default", size: r = "default", tooltip: i, className: a, ...o }) {
|
|
3308
|
+
let s = e ? v : "button", { isMobile: c, state: l } = na(), u = /* @__PURE__ */ f(s, {
|
|
3307
3309
|
"data-slot": "sidebar-menu-button",
|
|
3308
3310
|
"data-sidebar": "menu-button",
|
|
3309
3311
|
"data-size": r,
|
|
3310
3312
|
"data-active": t,
|
|
3311
|
-
className:
|
|
3313
|
+
className: W(ya({
|
|
3312
3314
|
variant: n,
|
|
3313
3315
|
size: r
|
|
3314
3316
|
}), a),
|
|
3315
3317
|
...o
|
|
3316
3318
|
});
|
|
3317
|
-
return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */ p(
|
|
3319
|
+
return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */ p(Ji, { children: [/* @__PURE__ */ f(Yi, {
|
|
3318
3320
|
asChild: !0,
|
|
3319
3321
|
children: u
|
|
3320
|
-
}), /* @__PURE__ */ f(
|
|
3322
|
+
}), /* @__PURE__ */ f(Xi, {
|
|
3321
3323
|
side: "right",
|
|
3322
3324
|
align: "center",
|
|
3323
3325
|
hidden: l !== "collapsed" || c,
|
|
3324
3326
|
...i
|
|
3325
3327
|
})] })) : u;
|
|
3326
3328
|
}
|
|
3327
|
-
function
|
|
3329
|
+
function xa({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }) {
|
|
3328
3330
|
return /* @__PURE__ */ f(t ? v : "button", {
|
|
3329
3331
|
"data-slot": "sidebar-menu-action",
|
|
3330
3332
|
"data-sidebar": "menu-action",
|
|
3331
|
-
className:
|
|
3333
|
+
className: W("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-none transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 md:after:hidden", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", n && "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0", e),
|
|
3332
3334
|
...r
|
|
3333
3335
|
});
|
|
3334
3336
|
}
|
|
3335
|
-
function
|
|
3337
|
+
function Sa({ className: e, ...t }) {
|
|
3336
3338
|
return /* @__PURE__ */ f("div", {
|
|
3337
3339
|
"data-slot": "sidebar-menu-badge",
|
|
3338
3340
|
"data-sidebar": "menu-badge",
|
|
3339
|
-
className:
|
|
3341
|
+
className: W("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none", "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", e),
|
|
3340
3342
|
...t
|
|
3341
3343
|
});
|
|
3342
3344
|
}
|
|
3343
|
-
function
|
|
3345
|
+
function Ca({ className: t, showIcon: n = !1, ...r }) {
|
|
3344
3346
|
let i = e.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
3345
3347
|
return /* @__PURE__ */ p("div", {
|
|
3346
3348
|
"data-slot": "sidebar-menu-skeleton",
|
|
3347
3349
|
"data-sidebar": "menu-skeleton",
|
|
3348
|
-
className:
|
|
3350
|
+
className: W("flex h-8 items-center gap-2 rounded-md px-2", t),
|
|
3349
3351
|
...r,
|
|
3350
|
-
children: [n && /* @__PURE__ */ f(
|
|
3352
|
+
children: [n && /* @__PURE__ */ f(Ki, {
|
|
3351
3353
|
className: "size-4 rounded-md",
|
|
3352
3354
|
"data-sidebar": "menu-skeleton-icon"
|
|
3353
|
-
}), /* @__PURE__ */ f(
|
|
3355
|
+
}), /* @__PURE__ */ f(Ki, {
|
|
3354
3356
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
3355
3357
|
"data-sidebar": "menu-skeleton-text",
|
|
3356
3358
|
style: { "--skeleton-width": i }
|
|
3357
3359
|
})]
|
|
3358
3360
|
});
|
|
3359
3361
|
}
|
|
3360
|
-
function
|
|
3362
|
+
function wa({ className: e, ...t }) {
|
|
3361
3363
|
return /* @__PURE__ */ f("ul", {
|
|
3362
3364
|
"data-slot": "sidebar-menu-sub",
|
|
3363
3365
|
"data-sidebar": "menu-sub",
|
|
3364
|
-
className:
|
|
3366
|
+
className: W("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5", "group-data-[collapsible=icon]:hidden", e),
|
|
3365
3367
|
...t
|
|
3366
3368
|
});
|
|
3367
3369
|
}
|
|
3368
|
-
function
|
|
3370
|
+
function Ta({ className: e, ...t }) {
|
|
3369
3371
|
return /* @__PURE__ */ f("li", {
|
|
3370
3372
|
"data-slot": "sidebar-menu-sub-item",
|
|
3371
3373
|
"data-sidebar": "menu-sub-item",
|
|
3372
|
-
className:
|
|
3374
|
+
className: W("group/menu-sub-item relative", e),
|
|
3373
3375
|
...t
|
|
3374
3376
|
});
|
|
3375
3377
|
}
|
|
3376
|
-
function
|
|
3378
|
+
function Ea({ asChild: e = !1, size: t = "md", isActive: n = !1, className: r, ...i }) {
|
|
3377
3379
|
return /* @__PURE__ */ f(e ? v : "a", {
|
|
3378
3380
|
"data-slot": "sidebar-menu-sub-button",
|
|
3379
3381
|
"data-sidebar": "menu-sub-button",
|
|
3380
3382
|
"data-size": t,
|
|
3381
3383
|
"data-active": n,
|
|
3382
|
-
className:
|
|
3384
|
+
className: W("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground", t === "sm" && "text-xs", t === "md" && "text-sm", "group-data-[collapsible=icon]:hidden", r),
|
|
3383
3385
|
...i
|
|
3384
3386
|
});
|
|
3385
3387
|
}
|
|
3386
3388
|
//#endregion
|
|
3387
3389
|
//#region src/components/ui/slider.tsx
|
|
3388
|
-
var
|
|
3390
|
+
var Da = e.forwardRef(({ className: t, name: n, value: r, defaultValue: i, onValueChange: a, onBlur: o, ...s }, c) => {
|
|
3389
3391
|
let l = e.useRef(null);
|
|
3390
3392
|
e.useImperativeHandle(c, () => l.current);
|
|
3391
3393
|
let u = (e) => {
|
|
3392
3394
|
a?.(e[0]);
|
|
3393
|
-
}, m =
|
|
3395
|
+
}, m = Pe(r), h = Pe(i);
|
|
3394
3396
|
return /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f("input", {
|
|
3395
3397
|
type: "range",
|
|
3396
3398
|
ref: l,
|
|
@@ -3400,22 +3402,22 @@ var Oa = e.forwardRef(({ className: t, name: n, value: r, defaultValue: i, onVal
|
|
|
3400
3402
|
className: "sr-only",
|
|
3401
3403
|
tabIndex: -1,
|
|
3402
3404
|
"aria-hidden": "true"
|
|
3403
|
-
}), /* @__PURE__ */ p(
|
|
3405
|
+
}), /* @__PURE__ */ p(le.Root, {
|
|
3404
3406
|
value: m,
|
|
3405
3407
|
defaultValue: h,
|
|
3406
3408
|
onValueChange: u,
|
|
3407
|
-
className:
|
|
3409
|
+
className: W("relative flex w-full touch-none select-none items-center", t),
|
|
3408
3410
|
...s,
|
|
3409
|
-
children: [/* @__PURE__ */ f(
|
|
3411
|
+
children: [/* @__PURE__ */ f(le.Track, {
|
|
3410
3412
|
className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",
|
|
3411
|
-
children: /* @__PURE__ */ f(
|
|
3412
|
-
}), /* @__PURE__ */ f(
|
|
3413
|
+
children: /* @__PURE__ */ f(le.Range, { className: "absolute h-full bg-primary" })
|
|
3414
|
+
}), /* @__PURE__ */ f(le.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })]
|
|
3413
3415
|
})] });
|
|
3414
3416
|
});
|
|
3415
|
-
|
|
3417
|
+
Da.displayName = "Slider";
|
|
3416
3418
|
//#endregion
|
|
3417
3419
|
//#region ~icons/lucide/plus.jsx
|
|
3418
|
-
var
|
|
3420
|
+
var Oa = (e) => /* @__PURE__ */ f("svg", {
|
|
3419
3421
|
viewBox: "0 0 24 24",
|
|
3420
3422
|
width: "1.2em",
|
|
3421
3423
|
height: "1.2em",
|
|
@@ -3428,7 +3430,7 @@ var ka = (e) => /* @__PURE__ */ f("svg", {
|
|
|
3428
3430
|
strokeWidth: 2,
|
|
3429
3431
|
d: "M5 12h14m-7-7v14"
|
|
3430
3432
|
})
|
|
3431
|
-
}),
|
|
3433
|
+
}), ka = (e) => /* @__PURE__ */ f("svg", {
|
|
3432
3434
|
viewBox: "0 0 24 24",
|
|
3433
3435
|
width: "1.2em",
|
|
3434
3436
|
height: "1.2em",
|
|
@@ -3441,7 +3443,7 @@ var ka = (e) => /* @__PURE__ */ f("svg", {
|
|
|
3441
3443
|
strokeWidth: 2,
|
|
3442
3444
|
d: "M10 11v6m4-6v6m5-11v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"
|
|
3443
3445
|
})
|
|
3444
|
-
}),
|
|
3446
|
+
}), Aa = {
|
|
3445
3447
|
string: [
|
|
3446
3448
|
"eq",
|
|
3447
3449
|
"ne",
|
|
@@ -3512,7 +3514,7 @@ var ka = (e) => /* @__PURE__ */ f("svg", {
|
|
|
3512
3514
|
"isNotNull"
|
|
3513
3515
|
],
|
|
3514
3516
|
json: ["isNull", "isNotNull"]
|
|
3515
|
-
},
|
|
3517
|
+
}, ja = {
|
|
3516
3518
|
string: "contains",
|
|
3517
3519
|
integer: "eq",
|
|
3518
3520
|
numeric: "eq",
|
|
@@ -3521,7 +3523,7 @@ var ka = (e) => /* @__PURE__ */ f("svg", {
|
|
|
3521
3523
|
datetime: "eq",
|
|
3522
3524
|
enum: "eq",
|
|
3523
3525
|
json: "isNull"
|
|
3524
|
-
},
|
|
3526
|
+
}, Ma = {
|
|
3525
3527
|
eq: "=",
|
|
3526
3528
|
ne: "≠",
|
|
3527
3529
|
gt: ">",
|
|
@@ -3538,7 +3540,7 @@ var ka = (e) => /* @__PURE__ */ f("svg", {
|
|
|
3538
3540
|
after: "after",
|
|
3539
3541
|
isNull: "null",
|
|
3540
3542
|
isNotNull: "not null"
|
|
3541
|
-
},
|
|
3543
|
+
}, Na = {
|
|
3542
3544
|
string: "string",
|
|
3543
3545
|
number: "integer",
|
|
3544
3546
|
boolean: "boolean",
|
|
@@ -3549,7 +3551,7 @@ var ka = (e) => /* @__PURE__ */ f("svg", {
|
|
|
3549
3551
|
};
|
|
3550
3552
|
//#endregion
|
|
3551
3553
|
//#region src/components/ui/tag-input.tsx
|
|
3552
|
-
function
|
|
3554
|
+
function Pa({ value: e = [], onChange: t, type: n = "text", placeholder: r, disabled: i, className: a }) {
|
|
3553
3555
|
let [o, s] = l(""), c = (r) => {
|
|
3554
3556
|
let i = r.trim();
|
|
3555
3557
|
if (i && !(n === "number" && !/^-?\d+(\.\d+)?$/.test(i))) {
|
|
@@ -3564,14 +3566,14 @@ function Fa({ value: e = [], onChange: t, type: n = "text", placeholder: r, disa
|
|
|
3564
3566
|
};
|
|
3565
3567
|
return /* @__PURE__ */ p("div", {
|
|
3566
3568
|
className: `flex flex-wrap gap-1 items-center border rounded-md p-2 min-h-[40px] ${i ? "bg-gray-100 cursor-not-allowed" : "bg-white"} ${a}`,
|
|
3567
|
-
children: [e.map((e, t) => /* @__PURE__ */ p(
|
|
3569
|
+
children: [e.map((e, t) => /* @__PURE__ */ p(ct, {
|
|
3568
3570
|
variant: "secondary",
|
|
3569
3571
|
className: "flex items-center gap-1 px-2 py-1",
|
|
3570
3572
|
children: [/* @__PURE__ */ f("span", { children: e }), !i && /* @__PURE__ */ f("button", {
|
|
3571
3573
|
type: "button",
|
|
3572
3574
|
onClick: () => u(t),
|
|
3573
3575
|
className: "hover:bg-gray-300 rounded-full p-0.5",
|
|
3574
|
-
children: /* @__PURE__ */ f(
|
|
3576
|
+
children: /* @__PURE__ */ f(J, {})
|
|
3575
3577
|
})]
|
|
3576
3578
|
}, t)), !i && /* @__PURE__ */ f("input", {
|
|
3577
3579
|
type: "text",
|
|
@@ -3599,35 +3601,35 @@ function Fa({ value: e = [], onChange: t, type: n = "text", placeholder: r, disa
|
|
|
3599
3601
|
}
|
|
3600
3602
|
//#endregion
|
|
3601
3603
|
//#region src/components/ui/sonamu-filter/value-input.tsx
|
|
3602
|
-
var
|
|
3604
|
+
var Fa = {
|
|
3603
3605
|
options: ["true", "false"],
|
|
3604
3606
|
labels: {
|
|
3605
3607
|
true: "True",
|
|
3606
3608
|
false: "False"
|
|
3607
3609
|
}
|
|
3608
3610
|
};
|
|
3609
|
-
function
|
|
3610
|
-
let { SD: a } =
|
|
3611
|
-
if (t === "isNull" || t === "isNotNull") return /* @__PURE__ */ f(
|
|
3612
|
-
enum: { options:
|
|
3613
|
-
labels:
|
|
3611
|
+
function Ia({ propType: e, operator: t, value: n, onChange: r, fieldMeta: i }) {
|
|
3612
|
+
let { SD: a } = q();
|
|
3613
|
+
if (t === "isNull" || t === "isNotNull") return /* @__PURE__ */ f(Oi, {
|
|
3614
|
+
enum: { options: Fa.options },
|
|
3615
|
+
labels: Fa.labels,
|
|
3614
3616
|
value: n === void 0 ? "" : String(n),
|
|
3615
3617
|
onValueChange: (e) => e && r(e === "true"),
|
|
3616
3618
|
className: "w-full"
|
|
3617
3619
|
});
|
|
3618
|
-
if (t === "in" || t === "notIn") return e === "enum" && i?.enumData ? /* @__PURE__ */ f(
|
|
3620
|
+
if (t === "in" || t === "notIn") return e === "enum" && i?.enumData ? /* @__PURE__ */ f(Oi, {
|
|
3619
3621
|
enum: { options: i.enumData.options },
|
|
3620
3622
|
labels: i.enumData.labels,
|
|
3621
3623
|
value: n ?? [],
|
|
3622
3624
|
onValueChange: r,
|
|
3623
3625
|
multiple: !0
|
|
3624
|
-
}) : /* @__PURE__ */ f(
|
|
3626
|
+
}) : /* @__PURE__ */ f(Pa, {
|
|
3625
3627
|
value: n ?? [],
|
|
3626
3628
|
onChange: r,
|
|
3627
3629
|
type: e === "integer" || e === "numeric" ? "number" : "text"
|
|
3628
3630
|
});
|
|
3629
3631
|
if (t === "between") {
|
|
3630
|
-
if (e === "integer" || e === "numeric") return /* @__PURE__ */ f(
|
|
3632
|
+
if (e === "integer" || e === "numeric") return /* @__PURE__ */ f(xi, {
|
|
3631
3633
|
value: n ?? [void 0, void 0],
|
|
3632
3634
|
onChange: r
|
|
3633
3635
|
});
|
|
@@ -3636,7 +3638,7 @@ function La({ propType: e, operator: t, value: n, onChange: r, fieldMeta: i }) {
|
|
|
3636
3638
|
return /* @__PURE__ */ p("div", {
|
|
3637
3639
|
className: "flex items-center gap-2",
|
|
3638
3640
|
children: [
|
|
3639
|
-
/* @__PURE__ */ f(
|
|
3641
|
+
/* @__PURE__ */ f(In, {
|
|
3640
3642
|
value: e ?? null,
|
|
3641
3643
|
onValueChange: (e) => r([e ?? void 0, t]),
|
|
3642
3644
|
placeholder: a("rc.sonamuFilter.startDate"),
|
|
@@ -3646,7 +3648,7 @@ function La({ propType: e, operator: t, value: n, onChange: r, fieldMeta: i }) {
|
|
|
3646
3648
|
className: "text-muted-foreground",
|
|
3647
3649
|
children: "~"
|
|
3648
3650
|
}),
|
|
3649
|
-
/* @__PURE__ */ f(
|
|
3651
|
+
/* @__PURE__ */ f(In, {
|
|
3650
3652
|
value: t ?? null,
|
|
3651
3653
|
onValueChange: (t) => r([e, t ?? void 0]),
|
|
3652
3654
|
placeholder: a("rc.sonamuFilter.endDate"),
|
|
@@ -3656,31 +3658,31 @@ function La({ propType: e, operator: t, value: n, onChange: r, fieldMeta: i }) {
|
|
|
3656
3658
|
});
|
|
3657
3659
|
}
|
|
3658
3660
|
}
|
|
3659
|
-
return e === "enum" && i?.enumData ? /* @__PURE__ */ f(
|
|
3661
|
+
return e === "enum" && i?.enumData ? /* @__PURE__ */ f(Oi, {
|
|
3660
3662
|
enum: { options: i.enumData.options },
|
|
3661
3663
|
labels: i.enumData.labels,
|
|
3662
3664
|
value: n ?? "",
|
|
3663
3665
|
onValueChange: r
|
|
3664
|
-
}) : e === "date" || e === "datetime" ? /* @__PURE__ */ f(
|
|
3666
|
+
}) : e === "date" || e === "datetime" ? /* @__PURE__ */ f(Rn, {
|
|
3665
3667
|
value: n ?? void 0,
|
|
3666
3668
|
onValueChange: r
|
|
3667
|
-
}) : e === "string" ? /* @__PURE__ */ f(
|
|
3669
|
+
}) : e === "string" ? /* @__PURE__ */ f(Q, {
|
|
3668
3670
|
type: "text",
|
|
3669
3671
|
value: n ?? "",
|
|
3670
3672
|
onValueChange: r,
|
|
3671
3673
|
placeholder: a("rc.sonamuFilter.enterValue")
|
|
3672
|
-
}) : e === "integer" || e === "numeric" ? /* @__PURE__ */ f(
|
|
3674
|
+
}) : e === "integer" || e === "numeric" ? /* @__PURE__ */ f(Q, {
|
|
3673
3675
|
type: "number",
|
|
3674
3676
|
value: n === void 0 ? "" : String(n),
|
|
3675
3677
|
onValueChange: (e) => r(e === "" ? void 0 : Number(e)),
|
|
3676
3678
|
placeholder: a("rc.sonamuFilter.enterNumber")
|
|
3677
|
-
}) : e === "boolean" ? /* @__PURE__ */ f(
|
|
3678
|
-
enum: { options:
|
|
3679
|
-
labels:
|
|
3679
|
+
}) : e === "boolean" ? /* @__PURE__ */ f(Oi, {
|
|
3680
|
+
enum: { options: Fa.options },
|
|
3681
|
+
labels: Fa.labels,
|
|
3680
3682
|
value: n === void 0 ? "" : String(n),
|
|
3681
3683
|
onValueChange: (e) => e && r(e === "true"),
|
|
3682
3684
|
className: "w-full"
|
|
3683
|
-
}) : /* @__PURE__ */ f(
|
|
3685
|
+
}) : /* @__PURE__ */ f(Q, {
|
|
3684
3686
|
type: "text",
|
|
3685
3687
|
value: "",
|
|
3686
3688
|
placeholder: a("rc.sonamuFilter.notSupported"),
|
|
@@ -3689,14 +3691,14 @@ function La({ propType: e, operator: t, value: n, onChange: r, fieldMeta: i }) {
|
|
|
3689
3691
|
}
|
|
3690
3692
|
//#endregion
|
|
3691
3693
|
//#region src/components/ui/sonamu-filter/rule-row-input.tsx
|
|
3692
|
-
function
|
|
3693
|
-
let { SD: i } =
|
|
3694
|
+
function La({ rule: e, fieldMeta: t, onUpdate: n, onRemove: r }) {
|
|
3695
|
+
let { SD: i } = q(), a = Object.keys(t), o = e.field ? t[e.field] : null, s = o ? Aa[o.propType] : [];
|
|
3694
3696
|
return /* @__PURE__ */ p("div", {
|
|
3695
3697
|
className: "flex items-start gap-2 p-3 border rounded-lg bg-gray-50",
|
|
3696
3698
|
children: [
|
|
3697
3699
|
/* @__PURE__ */ f("div", {
|
|
3698
3700
|
className: "flex-1 min-w-[150px]",
|
|
3699
|
-
children: /* @__PURE__ */ f(
|
|
3701
|
+
children: /* @__PURE__ */ f($, {
|
|
3700
3702
|
items: a,
|
|
3701
3703
|
value: e.field ?? "",
|
|
3702
3704
|
onValueChange: (e) => {
|
|
@@ -3711,10 +3713,10 @@ function Ra({ rule: e, fieldMeta: t, onUpdate: n, onRemove: r }) {
|
|
|
3711
3713
|
}),
|
|
3712
3714
|
/* @__PURE__ */ f("div", {
|
|
3713
3715
|
className: "flex-1 min-w-[120px]",
|
|
3714
|
-
children: /* @__PURE__ */ f(
|
|
3716
|
+
children: /* @__PURE__ */ f($, {
|
|
3715
3717
|
items: s.map((e) => ({
|
|
3716
3718
|
value: e,
|
|
3717
|
-
label:
|
|
3719
|
+
label: Ma[e]
|
|
3718
3720
|
})),
|
|
3719
3721
|
value: e.operator ?? void 0,
|
|
3720
3722
|
onValueChange: (e) => {
|
|
@@ -3729,31 +3731,31 @@ function Ra({ rule: e, fieldMeta: t, onUpdate: n, onRemove: r }) {
|
|
|
3729
3731
|
}),
|
|
3730
3732
|
/* @__PURE__ */ f("div", {
|
|
3731
3733
|
className: "flex-1 min-w-[150px]",
|
|
3732
|
-
children: e.operator && o ? /* @__PURE__ */ f(
|
|
3734
|
+
children: e.operator && o ? /* @__PURE__ */ f(Ia, {
|
|
3733
3735
|
propType: o.propType,
|
|
3734
3736
|
operator: e.operator,
|
|
3735
3737
|
value: e.value,
|
|
3736
3738
|
onChange: (e) => n({ value: e }),
|
|
3737
3739
|
fieldMeta: o
|
|
3738
|
-
}) : /* @__PURE__ */ f(
|
|
3740
|
+
}) : /* @__PURE__ */ f(Q, {
|
|
3739
3741
|
type: "text",
|
|
3740
3742
|
disabled: !0,
|
|
3741
3743
|
placeholder: i("rc.sonamuFilter.selectOperatorFirst")
|
|
3742
3744
|
})
|
|
3743
3745
|
}),
|
|
3744
|
-
/* @__PURE__ */ f(
|
|
3746
|
+
/* @__PURE__ */ f(G, {
|
|
3745
3747
|
variant: "ghost",
|
|
3746
3748
|
size: "sm",
|
|
3747
3749
|
onClick: r,
|
|
3748
3750
|
className: "shrink-0 h-10 px-3",
|
|
3749
|
-
children: /* @__PURE__ */ f(
|
|
3751
|
+
children: /* @__PURE__ */ f(ka, {})
|
|
3750
3752
|
})
|
|
3751
3753
|
]
|
|
3752
3754
|
});
|
|
3753
3755
|
}
|
|
3754
3756
|
//#endregion
|
|
3755
3757
|
//#region src/components/ui/sonamu-filter/utils.ts
|
|
3756
|
-
function
|
|
3758
|
+
function Ra(e) {
|
|
3757
3759
|
let t = e, n = !1;
|
|
3758
3760
|
for (; t._def.type === "nullable" || t._def.type === "optional";) t._def.type === "nullable" && (n = !0), t = t._def.innerType;
|
|
3759
3761
|
return {
|
|
@@ -3761,10 +3763,10 @@ function za(e) {
|
|
|
3761
3763
|
nullable: n
|
|
3762
3764
|
};
|
|
3763
3765
|
}
|
|
3764
|
-
function
|
|
3765
|
-
return
|
|
3766
|
+
function za(e) {
|
|
3767
|
+
return Na[e] ?? "string";
|
|
3766
3768
|
}
|
|
3767
|
-
function
|
|
3769
|
+
function Ba(e, t) {
|
|
3768
3770
|
let n = e.options ? Array.from(e.options) : void 0;
|
|
3769
3771
|
if (!n) return;
|
|
3770
3772
|
let r = e._def?.description || e.description, i = {};
|
|
@@ -3774,29 +3776,29 @@ function Va(e, t) {
|
|
|
3774
3776
|
labels: i
|
|
3775
3777
|
};
|
|
3776
3778
|
}
|
|
3777
|
-
function
|
|
3779
|
+
function Va(e, t) {
|
|
3778
3780
|
let n = e.shape, r = {};
|
|
3779
3781
|
for (let [e, i] of Object.entries(n)) {
|
|
3780
3782
|
if (e.startsWith("virtual") || e.startsWith("textsearchable")) continue;
|
|
3781
|
-
let { innerType: n, nullable: a } =
|
|
3783
|
+
let { innerType: n, nullable: a } = Ra(i), o = i.meta?.()?.SonamuPropType === "numeric" ? "numeric" : za(n._def.type);
|
|
3782
3784
|
r[e] = {
|
|
3783
3785
|
propType: o,
|
|
3784
3786
|
nullable: a,
|
|
3785
|
-
enumData: o === "enum" ?
|
|
3787
|
+
enumData: o === "enum" ? Ba(n, t) : void 0
|
|
3786
3788
|
};
|
|
3787
3789
|
}
|
|
3788
3790
|
return r;
|
|
3789
3791
|
}
|
|
3790
3792
|
//#endregion
|
|
3791
3793
|
//#region src/components/ui/sonamu-filter/sonamu-filter-modal.tsx
|
|
3792
|
-
function
|
|
3793
|
-
let { SD: o } =
|
|
3794
|
+
function Ha({ baseSchema: e, open: t, onOpenChange: n, initialRules: r = [], onApply: i }) {
|
|
3795
|
+
let { SD: o } = q(), [s, c] = l(r), [u, d] = l([]);
|
|
3794
3796
|
a(() => {
|
|
3795
3797
|
c(r);
|
|
3796
3798
|
}, [r]), a(() => {
|
|
3797
3799
|
t && d(s.map((e) => ({ ...e })));
|
|
3798
3800
|
}, [t, s]);
|
|
3799
|
-
let m =
|
|
3801
|
+
let m = Va(e, o), h = () => {
|
|
3800
3802
|
d([...u, {
|
|
3801
3803
|
id: crypto.randomUUID(),
|
|
3802
3804
|
field: null,
|
|
@@ -3815,13 +3817,13 @@ function Ua({ baseSchema: e, open: t, onOpenChange: n, initialRules: r = [], onA
|
|
|
3815
3817
|
for (let t of u) !t.field || !t.operator || (t.operator === "isNull" || t.operator, e[t.field] = { [t.operator]: t.value });
|
|
3816
3818
|
return e;
|
|
3817
3819
|
};
|
|
3818
|
-
return /* @__PURE__ */ f(
|
|
3820
|
+
return /* @__PURE__ */ f(Yt, {
|
|
3819
3821
|
open: t,
|
|
3820
3822
|
onOpenChange: n,
|
|
3821
|
-
children: /* @__PURE__ */ p(
|
|
3823
|
+
children: /* @__PURE__ */ p(en, {
|
|
3822
3824
|
className: "max-w-4xl max-h-[90vh] overflow-hidden flex flex-col",
|
|
3823
3825
|
children: [
|
|
3824
|
-
/* @__PURE__ */ f(
|
|
3826
|
+
/* @__PURE__ */ f(tn, { children: /* @__PURE__ */ f(rn, { children: o("rc.sonamuFilter.title") }) }),
|
|
3825
3827
|
/* @__PURE__ */ p("div", {
|
|
3826
3828
|
className: "flex-1 overflow-auto space-y-4 py-4",
|
|
3827
3829
|
children: [
|
|
@@ -3833,7 +3835,7 @@ function Ua({ baseSchema: e, open: t, onOpenChange: n, initialRules: r = [], onA
|
|
|
3833
3835
|
})
|
|
3834
3836
|
}) : /* @__PURE__ */ f("div", {
|
|
3835
3837
|
className: "space-y-2",
|
|
3836
|
-
children: u.map((e) => /* @__PURE__ */ f(
|
|
3838
|
+
children: u.map((e) => /* @__PURE__ */ f(La, {
|
|
3837
3839
|
rule: e,
|
|
3838
3840
|
fieldMeta: m,
|
|
3839
3841
|
onUpdate: (t) => _(e.id, t),
|
|
@@ -3842,12 +3844,12 @@ function Ua({ baseSchema: e, open: t, onOpenChange: n, initialRules: r = [], onA
|
|
|
3842
3844
|
}),
|
|
3843
3845
|
/* @__PURE__ */ p("div", {
|
|
3844
3846
|
className: "flex gap-2",
|
|
3845
|
-
children: [/* @__PURE__ */ p(
|
|
3847
|
+
children: [/* @__PURE__ */ p(G, {
|
|
3846
3848
|
variant: "outline",
|
|
3847
3849
|
onClick: h,
|
|
3848
3850
|
className: "flex-1",
|
|
3849
|
-
children: [/* @__PURE__ */ f(
|
|
3850
|
-
}), u.length > 0 && /* @__PURE__ */ f(
|
|
3851
|
+
children: [/* @__PURE__ */ f(Oa, {}), o("rc.sonamuFilter.addRule")]
|
|
3852
|
+
}), u.length > 0 && /* @__PURE__ */ f(G, {
|
|
3851
3853
|
variant: "outline",
|
|
3852
3854
|
onClick: () => {
|
|
3853
3855
|
d([]);
|
|
@@ -3870,13 +3872,13 @@ function Ua({ baseSchema: e, open: t, onOpenChange: n, initialRules: r = [], onA
|
|
|
3870
3872
|
}),
|
|
3871
3873
|
/* @__PURE__ */ p("div", {
|
|
3872
3874
|
className: "flex justify-end gap-2 pt-4 border-t",
|
|
3873
|
-
children: [/* @__PURE__ */ f(
|
|
3875
|
+
children: [/* @__PURE__ */ f(G, {
|
|
3874
3876
|
variant: "outline",
|
|
3875
3877
|
onClick: () => {
|
|
3876
3878
|
d(s.map((e) => ({ ...e }))), n(!1);
|
|
3877
3879
|
},
|
|
3878
3880
|
children: o("rc.common.cancel")
|
|
3879
|
-
}), /* @__PURE__ */ f(
|
|
3881
|
+
}), /* @__PURE__ */ f(G, {
|
|
3880
3882
|
onClick: () => {
|
|
3881
3883
|
let e = v(), t = u.map((e) => ({ ...e }));
|
|
3882
3884
|
c(t), i?.(e, t), n(!1);
|
|
@@ -3890,26 +3892,26 @@ function Ua({ baseSchema: e, open: t, onOpenChange: n, initialRules: r = [], onA
|
|
|
3890
3892
|
}
|
|
3891
3893
|
//#endregion
|
|
3892
3894
|
//#region src/lib/caster.ts
|
|
3893
|
-
function
|
|
3894
|
-
return e instanceof
|
|
3895
|
+
function Ua(e) {
|
|
3896
|
+
return e instanceof V.ZodNumber || e instanceof V.ZodNullable && e._def.innerType instanceof V.ZodNumber || e instanceof V.ZodOptional && e._def.innerType instanceof V.ZodNumber ? !0 : e instanceof V.ZodOptional && e._def.innerType instanceof V.ZodOptional && e._def.innerType._def.innerType instanceof V.ZodNumber;
|
|
3895
3897
|
}
|
|
3896
|
-
function
|
|
3897
|
-
if (
|
|
3898
|
-
if (e instanceof
|
|
3898
|
+
function Wa(e, t) {
|
|
3899
|
+
if (Ua(e) && typeof t == "string") return Number(t);
|
|
3900
|
+
if (e instanceof V.ZodUnion) {
|
|
3899
3901
|
let n = e.options;
|
|
3900
|
-
if (n.some((e) =>
|
|
3901
|
-
let e = n.find((e) => e instanceof
|
|
3902
|
+
if (n.some((e) => Ua(e))) if (Array.isArray(t)) {
|
|
3903
|
+
let e = n.find((e) => e instanceof V.ZodNumber);
|
|
3902
3904
|
if (!e) throw Error("Expected to find a number type in union");
|
|
3903
|
-
return t.map((t) =>
|
|
3905
|
+
return t.map((t) => Wa(e, t));
|
|
3904
3906
|
} else return Number(t);
|
|
3905
|
-
} else if (e instanceof
|
|
3906
|
-
else if (e instanceof
|
|
3907
|
-
else if (e instanceof
|
|
3908
|
-
else if (e instanceof
|
|
3907
|
+
} else if (e instanceof V.ZodBoolean && (t === "true" || t === "false")) return t === "true";
|
|
3908
|
+
else if (e instanceof V.ZodArray) return t.map((t) => Wa(e.element, t));
|
|
3909
|
+
else if (e instanceof V.ZodObject && typeof t == "object") return Object.keys(t).reduce((n, r) => (n[r] = Wa(e.shape[r], t[r]), n), {});
|
|
3910
|
+
else if (e instanceof V.ZodOptional) return Wa(e._def.innerType, t);
|
|
3909
3911
|
return t;
|
|
3910
3912
|
}
|
|
3911
3913
|
function Ga(e) {
|
|
3912
|
-
return
|
|
3914
|
+
return V.preprocess((t) => Wa(e, t), e);
|
|
3913
3915
|
}
|
|
3914
3916
|
//#endregion
|
|
3915
3917
|
//#region src/lib/base-helpers.ts
|
|
@@ -3917,10 +3919,10 @@ function Ka(e) {
|
|
|
3917
3919
|
return e === !0 ? "hidden" : "";
|
|
3918
3920
|
}
|
|
3919
3921
|
function qa(e, t) {
|
|
3920
|
-
return
|
|
3922
|
+
return Wa(t, ue.parse(e.toString()));
|
|
3921
3923
|
}
|
|
3922
3924
|
function Ja(e) {
|
|
3923
|
-
return Object.fromEntries(Object.entries(e).filter(([, e]) => e !== void 0).map(([e, t]) => Array.isArray(t) ? [[`${e}[]`, t]] :
|
|
3925
|
+
return Object.fromEntries(Object.entries(e).filter(([, e]) => e !== void 0).map(([e, t]) => Array.isArray(t) ? [[`${e}[]`, t]] : fe(t) ? Object.keys(t).map((n) => [`${e}[${n}]`, String(t[n])]) : [[e, String(t)]]).flat());
|
|
3924
3926
|
}
|
|
3925
3927
|
function Ya(e) {
|
|
3926
3928
|
return e === null ? null : e.slice(0, 10);
|
|
@@ -3964,16 +3966,16 @@ async function to(e, t) {
|
|
|
3964
3966
|
return e;
|
|
3965
3967
|
}
|
|
3966
3968
|
function no(e, t) {
|
|
3967
|
-
let [n, r] = l(t), [i, a] = l(/* @__PURE__ */ new Map()), { uploader: o } =
|
|
3969
|
+
let [n, r] = l(t), [i, a] = l(/* @__PURE__ */ new Map()), { uploader: o } = q();
|
|
3968
3970
|
function s(e, t) {
|
|
3969
3971
|
let n = t.replace(/\./g, ".shape.").replace(/\[[^\]]+\]/g, ".element").replace(/^\.element/, "element"), r;
|
|
3970
|
-
return e instanceof
|
|
3972
|
+
return e instanceof V.ZodObject ? r = de(e.shape, n) : e instanceof V.ZodArray && (r = de(e, n)), r === void 0 ? "normal" : r instanceof V.ZodOptional ? "optional" : r instanceof V.ZodNullable ? "nullable" : "normal";
|
|
3971
3973
|
}
|
|
3972
3974
|
return {
|
|
3973
3975
|
form: n,
|
|
3974
3976
|
setForm: r,
|
|
3975
3977
|
register: (t, o) => {
|
|
3976
|
-
let c = o ?? s(e, t), l =
|
|
3978
|
+
let c = o ?? s(e, t), l = de(n, t), u = i.get(t), d = {
|
|
3977
3979
|
value: l ?? "",
|
|
3978
3980
|
onValueChange: (e) => {
|
|
3979
3981
|
u !== void 0 && a((e) => {
|
|
@@ -3986,7 +3988,7 @@ function no(e, t) {
|
|
|
3986
3988
|
r(i === void 0 && o ? {
|
|
3987
3989
|
...n,
|
|
3988
3990
|
[t]: void 0
|
|
3989
|
-
} :
|
|
3991
|
+
} : pe(n, t, i));
|
|
3990
3992
|
}
|
|
3991
3993
|
};
|
|
3992
3994
|
return u && (d.error = u), d;
|
|
@@ -4021,7 +4023,7 @@ function ro(e, t) {
|
|
|
4021
4023
|
return e.filter((e) => t.includes(e));
|
|
4022
4024
|
}
|
|
4023
4025
|
function io(e, t, n) {
|
|
4024
|
-
let r =
|
|
4026
|
+
let r = ge({ strict: !1 }), i = he(), a = (() => {
|
|
4025
4027
|
if (n?.disableSearchParams) return t;
|
|
4026
4028
|
let i = e.safeParse(r);
|
|
4027
4029
|
return i.success ? {
|
|
@@ -4029,7 +4031,7 @@ function io(e, t, n) {
|
|
|
4029
4031
|
...i.data
|
|
4030
4032
|
} : t;
|
|
4031
4033
|
})(), o = (e) => {
|
|
4032
|
-
|
|
4034
|
+
_e(a, e) || i({ search: e });
|
|
4033
4035
|
};
|
|
4034
4036
|
function s(e) {
|
|
4035
4037
|
let n = a[e], r = t[e];
|
|
@@ -4073,7 +4075,7 @@ function ao(e, t = []) {
|
|
|
4073
4075
|
let a = t.currentTarget.getElementsByTagName("input");
|
|
4074
4076
|
if (t.shiftKey && !a[0]?.checked) {
|
|
4075
4077
|
let [t, a] = i < n ? [i, n] : [n + 1, i];
|
|
4076
|
-
r(new Map(
|
|
4078
|
+
r(new Map(me([...s, ...e.slice(t, a)]).map((e) => [e, !0])));
|
|
4077
4079
|
} else o(n);
|
|
4078
4080
|
}
|
|
4079
4081
|
};
|
|
@@ -4107,18 +4109,18 @@ function oo(e, n) {
|
|
|
4107
4109
|
//#endregion
|
|
4108
4110
|
//#region src/components/ui/sonamu-filter/sonamu-filter-popover.tsx
|
|
4109
4111
|
function so({ rules: e, fieldMeta: t, children: n, side: r = "bottom", align: i = "start" }) {
|
|
4110
|
-
let { SD: a } =
|
|
4112
|
+
let { SD: a } = q(), o = (e) => e ? Ma[e] : "", s = (e) => {
|
|
4111
4113
|
let { value: n, field: r, operator: i } = e;
|
|
4112
4114
|
if (i === "isNull" || i === "isNotNull" || !r || n == null) return "";
|
|
4113
4115
|
let a = t[r];
|
|
4114
4116
|
return a ? a.propType === "enum" && a.enumData ? Array.isArray(n) ? n.map((e) => a.enumData?.labels[e] || e).join(", ") : a.enumData.labels[n] || String(n) : a.propType === "date" || a.propType === "datetime" ? Array.isArray(n) ? n.map((e) => Qa(e) ?? "").join(" ~ ") : Qa(n) ?? "" : a.propType === "integer" || a.propType === "numeric" ? Array.isArray(n) ? n.map((e) => String(Xa(e) ?? "")).join(" ~ ") : String(Xa(n) ?? "") : Array.isArray(n) ? n.join(", ") : String(n) : String(n);
|
|
4115
4117
|
};
|
|
4116
|
-
return e.length === 0 ? /* @__PURE__ */ f(d, { children: n }) : /* @__PURE__ */ p(
|
|
4118
|
+
return e.length === 0 ? /* @__PURE__ */ f(d, { children: n }) : /* @__PURE__ */ p(Y, {
|
|
4117
4119
|
open: !0,
|
|
4118
|
-
children: [/* @__PURE__ */ f(
|
|
4120
|
+
children: [/* @__PURE__ */ f(X, {
|
|
4119
4121
|
asChild: !0,
|
|
4120
4122
|
children: n
|
|
4121
|
-
}), /* @__PURE__ */ f(
|
|
4123
|
+
}), /* @__PURE__ */ f(Z, {
|
|
4122
4124
|
side: r,
|
|
4123
4125
|
align: i,
|
|
4124
4126
|
sideOffset: 5,
|
|
@@ -4173,13 +4175,13 @@ var co = e.forwardRef(({ className: t, name: n, checked: r, value: i, defaultChe
|
|
|
4173
4175
|
className: "sr-only",
|
|
4174
4176
|
tabIndex: -1,
|
|
4175
4177
|
"aria-hidden": "true"
|
|
4176
|
-
}), /* @__PURE__ */ f(
|
|
4178
|
+
}), /* @__PURE__ */ f(ve.Root, {
|
|
4177
4179
|
checked: u,
|
|
4178
4180
|
defaultChecked: a,
|
|
4179
4181
|
onCheckedChange: h,
|
|
4180
|
-
className:
|
|
4182
|
+
className: W("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input", t),
|
|
4181
4183
|
...c,
|
|
4182
|
-
children: /* @__PURE__ */ f(
|
|
4184
|
+
children: /* @__PURE__ */ f(ve.Thumb, { className: W("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0") })
|
|
4183
4185
|
})] });
|
|
4184
4186
|
});
|
|
4185
4187
|
co.displayName = "Switch";
|
|
@@ -4188,10 +4190,10 @@ co.displayName = "Switch";
|
|
|
4188
4190
|
function lo({ className: e, containerClassName: t, ...n }) {
|
|
4189
4191
|
return /* @__PURE__ */ f("div", {
|
|
4190
4192
|
"data-slot": "table-container",
|
|
4191
|
-
className:
|
|
4193
|
+
className: W("relative w-full overflow-x-auto", t),
|
|
4192
4194
|
children: /* @__PURE__ */ f("table", {
|
|
4193
4195
|
"data-slot": "table",
|
|
4194
|
-
className:
|
|
4196
|
+
className: W("w-full caption-bottom text-sm", e),
|
|
4195
4197
|
...n
|
|
4196
4198
|
})
|
|
4197
4199
|
});
|
|
@@ -4199,35 +4201,35 @@ function lo({ className: e, containerClassName: t, ...n }) {
|
|
|
4199
4201
|
function uo({ className: e, ...t }) {
|
|
4200
4202
|
return /* @__PURE__ */ f("thead", {
|
|
4201
4203
|
"data-slot": "table-header",
|
|
4202
|
-
className:
|
|
4204
|
+
className: W("[&_tr]:border-b", e),
|
|
4203
4205
|
...t
|
|
4204
4206
|
});
|
|
4205
4207
|
}
|
|
4206
4208
|
function fo({ className: e, ...t }) {
|
|
4207
4209
|
return /* @__PURE__ */ f("tbody", {
|
|
4208
4210
|
"data-slot": "table-body",
|
|
4209
|
-
className:
|
|
4211
|
+
className: W("[&_tr:last-child]:border-0", e),
|
|
4210
4212
|
...t
|
|
4211
4213
|
});
|
|
4212
4214
|
}
|
|
4213
4215
|
function po({ className: e, ...t }) {
|
|
4214
4216
|
return /* @__PURE__ */ f("tfoot", {
|
|
4215
4217
|
"data-slot": "table-footer",
|
|
4216
|
-
className:
|
|
4218
|
+
className: W("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", e),
|
|
4217
4219
|
...t
|
|
4218
4220
|
});
|
|
4219
4221
|
}
|
|
4220
4222
|
function mo({ className: e, ...t }) {
|
|
4221
4223
|
return /* @__PURE__ */ f("tr", {
|
|
4222
4224
|
"data-slot": "table-row",
|
|
4223
|
-
className:
|
|
4225
|
+
className: W("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", e),
|
|
4224
4226
|
...t
|
|
4225
4227
|
});
|
|
4226
4228
|
}
|
|
4227
4229
|
function ho({ className: e, fit: t, align: n, ...r }) {
|
|
4228
4230
|
return /* @__PURE__ */ f("th", {
|
|
4229
4231
|
"data-slot": "table-head",
|
|
4230
|
-
className:
|
|
4232
|
+
className: W("text-foreground h-10 px-2 text-left font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-[2px]", t && "w-px", n === "center" && "text-center", n === "right" && "text-right", e),
|
|
4231
4233
|
style: { verticalAlign: "middle" },
|
|
4232
4234
|
...r
|
|
4233
4235
|
});
|
|
@@ -4235,7 +4237,7 @@ function ho({ className: e, fit: t, align: n, ...r }) {
|
|
|
4235
4237
|
function go({ className: e, fit: t, align: n, ...r }) {
|
|
4236
4238
|
return /* @__PURE__ */ f("td", {
|
|
4237
4239
|
"data-slot": "table-cell",
|
|
4238
|
-
className:
|
|
4240
|
+
className: W("p-2 whitespace-nowrap [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-[2px]", t && "w-px", n === "center" && "text-center", n === "right" && "text-right", e),
|
|
4239
4241
|
style: { verticalAlign: "middle" },
|
|
4240
4242
|
...r
|
|
4241
4243
|
});
|
|
@@ -4243,30 +4245,30 @@ function go({ className: e, fit: t, align: n, ...r }) {
|
|
|
4243
4245
|
function _o({ className: e, ...t }) {
|
|
4244
4246
|
return /* @__PURE__ */ f("caption", {
|
|
4245
4247
|
"data-slot": "table-caption",
|
|
4246
|
-
className:
|
|
4248
|
+
className: W("text-muted-foreground mt-4 text-sm", e),
|
|
4247
4249
|
...t
|
|
4248
4250
|
});
|
|
4249
4251
|
}
|
|
4250
4252
|
//#endregion
|
|
4251
4253
|
//#region src/components/ui/tabs.tsx
|
|
4252
|
-
var vo =
|
|
4254
|
+
var vo = H.Root, yo = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(H.List, {
|
|
4253
4255
|
ref: n,
|
|
4254
|
-
className:
|
|
4256
|
+
className: W("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", e),
|
|
4255
4257
|
...t
|
|
4256
4258
|
}));
|
|
4257
|
-
yo.displayName =
|
|
4258
|
-
var bo = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
4259
|
+
yo.displayName = H.List.displayName;
|
|
4260
|
+
var bo = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(H.Trigger, {
|
|
4259
4261
|
ref: n,
|
|
4260
|
-
className:
|
|
4262
|
+
className: W("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm", e),
|
|
4261
4263
|
...t
|
|
4262
4264
|
}));
|
|
4263
|
-
bo.displayName =
|
|
4264
|
-
var xo = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
4265
|
+
bo.displayName = H.Trigger.displayName;
|
|
4266
|
+
var xo = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(H.Content, {
|
|
4265
4267
|
ref: n,
|
|
4266
|
-
className:
|
|
4268
|
+
className: W("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", e),
|
|
4267
4269
|
...t
|
|
4268
4270
|
}));
|
|
4269
|
-
xo.displayName =
|
|
4271
|
+
xo.displayName = H.Content.displayName;
|
|
4270
4272
|
//#endregion
|
|
4271
4273
|
//#region src/components/ui/textarea.tsx
|
|
4272
4274
|
var So = e.forwardRef(({ className: e, onValueChange: t, onChange: n, ...r }, i) => {
|
|
@@ -4274,7 +4276,7 @@ var So = e.forwardRef(({ className: e, onValueChange: t, onChange: n, ...r }, i)
|
|
|
4274
4276
|
t?.(e.target.value), n?.(e);
|
|
4275
4277
|
};
|
|
4276
4278
|
return /* @__PURE__ */ f("textarea", {
|
|
4277
|
-
className:
|
|
4279
|
+
className: W("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", e),
|
|
4278
4280
|
ref: i,
|
|
4279
4281
|
...r,
|
|
4280
4282
|
onChange: a
|
|
@@ -4283,54 +4285,54 @@ var So = e.forwardRef(({ className: e, onValueChange: t, onChange: n, ...r }, i)
|
|
|
4283
4285
|
So.displayName = "Textarea";
|
|
4284
4286
|
//#endregion
|
|
4285
4287
|
//#region src/components/ui/toast.tsx
|
|
4286
|
-
var Co =
|
|
4288
|
+
var Co = U.Provider, wo = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(U.Viewport, {
|
|
4287
4289
|
ref: n,
|
|
4288
|
-
className:
|
|
4290
|
+
className: W("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]", e),
|
|
4289
4291
|
...t
|
|
4290
4292
|
}));
|
|
4291
|
-
wo.displayName =
|
|
4293
|
+
wo.displayName = U.Viewport.displayName;
|
|
4292
4294
|
var To = g("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full", {
|
|
4293
4295
|
variants: { variant: {
|
|
4294
4296
|
default: "border bg-background text-foreground",
|
|
4295
4297
|
destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
|
|
4296
4298
|
} },
|
|
4297
4299
|
defaultVariants: { variant: "default" }
|
|
4298
|
-
}), Eo = e.forwardRef(({ className: e, variant: t, ...n }, r) => /* @__PURE__ */ f(
|
|
4300
|
+
}), Eo = e.forwardRef(({ className: e, variant: t, ...n }, r) => /* @__PURE__ */ f(U.Root, {
|
|
4299
4301
|
ref: r,
|
|
4300
|
-
className:
|
|
4302
|
+
className: W(To({ variant: t }), e),
|
|
4301
4303
|
...n
|
|
4302
4304
|
}));
|
|
4303
|
-
Eo.displayName =
|
|
4304
|
-
var Do = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
4305
|
+
Eo.displayName = U.Root.displayName;
|
|
4306
|
+
var Do = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(U.Action, {
|
|
4305
4307
|
ref: n,
|
|
4306
|
-
className:
|
|
4308
|
+
className: W("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive", e),
|
|
4307
4309
|
...t
|
|
4308
4310
|
}));
|
|
4309
|
-
Do.displayName =
|
|
4310
|
-
var Oo = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
4311
|
+
Do.displayName = U.Action.displayName;
|
|
4312
|
+
var Oo = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(U.Close, {
|
|
4311
4313
|
ref: n,
|
|
4312
|
-
className:
|
|
4314
|
+
className: W("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600", e),
|
|
4313
4315
|
"toast-close": "",
|
|
4314
4316
|
...t,
|
|
4315
|
-
children: /* @__PURE__ */ f(
|
|
4317
|
+
children: /* @__PURE__ */ f(J, { className: "h-4 w-4" })
|
|
4316
4318
|
}));
|
|
4317
|
-
Oo.displayName =
|
|
4318
|
-
var ko = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
4319
|
+
Oo.displayName = U.Close.displayName;
|
|
4320
|
+
var ko = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(U.Title, {
|
|
4319
4321
|
ref: n,
|
|
4320
|
-
className:
|
|
4322
|
+
className: W("text-sm font-semibold", e),
|
|
4321
4323
|
...t
|
|
4322
4324
|
}));
|
|
4323
|
-
ko.displayName =
|
|
4324
|
-
var Ao = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
4325
|
+
ko.displayName = U.Title.displayName;
|
|
4326
|
+
var Ao = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(U.Description, {
|
|
4325
4327
|
ref: n,
|
|
4326
|
-
className:
|
|
4328
|
+
className: W("text-sm opacity-90", e),
|
|
4327
4329
|
...t
|
|
4328
4330
|
}));
|
|
4329
|
-
Ao.displayName =
|
|
4331
|
+
Ao.displayName = U.Description.displayName;
|
|
4330
4332
|
//#endregion
|
|
4331
4333
|
//#region src/components/ui/toaster.tsx
|
|
4332
4334
|
function jo() {
|
|
4333
|
-
let { toasts: e } =
|
|
4335
|
+
let { toasts: e } = Me();
|
|
4334
4336
|
return /* @__PURE__ */ p(Co, { children: [e.map(({ id: e, title: t, description: n, action: r, ...i }) => /* @__PURE__ */ p(Eo, {
|
|
4335
4337
|
...i,
|
|
4336
4338
|
children: [
|
|
@@ -4361,13 +4363,13 @@ var Mo = g("inline-flex items-center justify-center rounded-md text-sm font-medi
|
|
|
4361
4363
|
}
|
|
4362
4364
|
}), No = e.forwardRef(({ className: e, variant: t, size: n, value: r, pressed: i, onValueChange: a, onPressedChange: o, ...s }, c) => {
|
|
4363
4365
|
let l = r === void 0 ? i : r;
|
|
4364
|
-
return /* @__PURE__ */ f(
|
|
4366
|
+
return /* @__PURE__ */ f(ye.Root, {
|
|
4365
4367
|
ref: c,
|
|
4366
4368
|
pressed: l,
|
|
4367
4369
|
onPressedChange: (e) => {
|
|
4368
4370
|
a?.(e), o?.(e);
|
|
4369
4371
|
},
|
|
4370
|
-
className:
|
|
4372
|
+
className: W(Mo({
|
|
4371
4373
|
variant: t,
|
|
4372
4374
|
size: n,
|
|
4373
4375
|
className: e
|
|
@@ -4375,15 +4377,15 @@ var Mo = g("inline-flex items-center justify-center rounded-md text-sm font-medi
|
|
|
4375
4377
|
...s
|
|
4376
4378
|
});
|
|
4377
4379
|
});
|
|
4378
|
-
No.displayName =
|
|
4380
|
+
No.displayName = ye.Root.displayName;
|
|
4379
4381
|
//#endregion
|
|
4380
4382
|
//#region src/components/ui/toggle-group.tsx
|
|
4381
4383
|
var Po = e.createContext({
|
|
4382
4384
|
size: "default",
|
|
4383
4385
|
variant: "default"
|
|
4384
|
-
}), Fo = e.forwardRef(({ className: e, variant: t, size: n, children: r, ...i }, a) => /* @__PURE__ */ f(
|
|
4386
|
+
}), Fo = e.forwardRef(({ className: e, variant: t, size: n, children: r, ...i }, a) => /* @__PURE__ */ f(be.Root, {
|
|
4385
4387
|
ref: a,
|
|
4386
|
-
className:
|
|
4388
|
+
className: W("flex items-center justify-center gap-1", e),
|
|
4387
4389
|
...i,
|
|
4388
4390
|
children: /* @__PURE__ */ f(Po.Provider, {
|
|
4389
4391
|
value: {
|
|
@@ -4393,12 +4395,12 @@ var Po = e.createContext({
|
|
|
4393
4395
|
children: r
|
|
4394
4396
|
})
|
|
4395
4397
|
}));
|
|
4396
|
-
Fo.displayName =
|
|
4398
|
+
Fo.displayName = be.Root.displayName;
|
|
4397
4399
|
var Io = e.forwardRef(({ className: t, children: n, variant: r, size: i, ...a }, o) => {
|
|
4398
4400
|
let s = e.useContext(Po);
|
|
4399
|
-
return /* @__PURE__ */ f(
|
|
4401
|
+
return /* @__PURE__ */ f(be.Item, {
|
|
4400
4402
|
ref: o,
|
|
4401
|
-
className:
|
|
4403
|
+
className: W(Mo({
|
|
4402
4404
|
variant: s.variant || r,
|
|
4403
4405
|
size: s.size || i
|
|
4404
4406
|
}), t),
|
|
@@ -4406,8 +4408,8 @@ var Io = e.forwardRef(({ className: t, children: n, variant: r, size: i, ...a },
|
|
|
4406
4408
|
children: n
|
|
4407
4409
|
});
|
|
4408
4410
|
});
|
|
4409
|
-
Io.displayName =
|
|
4411
|
+
Io.displayName = be.Item.displayName;
|
|
4410
4412
|
//#endregion
|
|
4411
|
-
export {
|
|
4413
|
+
export { Ie as Accordion, ze as AccordionContent, Le as AccordionItem, Re as AccordionTrigger, Ve as Alert, Ue as AlertDescription, Ke as AlertDialog, tt as AlertDialogAction, nt as AlertDialogCancel, Xe as AlertDialogContent, et as AlertDialogDescription, Qe as AlertDialogFooter, Ze as AlertDialogHeader, Ye as AlertDialogOverlay, Je as AlertDialogPortal, $e as AlertDialogTitle, qe as AlertDialogTrigger, He as AlertTitle, rt as AspectRatio, it as Avatar, ot as AvatarFallback, at as AvatarImage, ct as Badge, dt as Breadcrumb, _t as BreadcrumbEllipsis, pt as BreadcrumbItem, mt as BreadcrumbLink, ft as BreadcrumbList, ht as BreadcrumbPage, gt as BreadcrumbSeparator, G as Button, yt as Calendar, bt as Card, wt as CardAction, Tt as CardContent, Ct as CardDescription, Et as CardFooter, xt as CardHeader, St as CardTitle, jt as Carousel, Mt as CarouselContent, Nt as CarouselItem, Ft as CarouselNext, Pt as CarouselPrevious, It as Checkbox, Lt as Collapsible, zt as CollapsibleContent, Rt as CollapsibleTrigger, gn as Combobox, on as Command, sn as CommandDialog, un as CommandEmpty, dn as CommandGroup, cn as CommandInput, pn as CommandItem, ln as CommandList, fn as CommandSeparator, mn as CommandShortcut, vn as CommonModal, xn as ContextMenu, jn as ContextMenuCheckboxItem, kn as ContextMenuContent, Cn as ContextMenuGroup, An as ContextMenuItem, Nn as ContextMenuLabel, wn as ContextMenuPortal, En as ContextMenuRadioGroup, Mn as ContextMenuRadioItem, Pn as ContextMenuSeparator, Fn as ContextMenuShortcut, Tn as ContextMenuSub, On as ContextMenuSubContent, Dn as ContextMenuSubTrigger, Sn as ContextMenuTrigger, In as DateInput, Rn as DatePicker, zn as DatePickerWithDropdown, Bn as DatePickerWithRange, Yt as Dialog, Qt as DialogClose, en as DialogContent, an as DialogDescription, nn as DialogFooter, tn as DialogHeader, $t as DialogOverlay, Zt as DialogPortal, rn as DialogTitle, Xt as DialogTrigger, Vn as Drawer, Wn as DrawerClose, Kn as DrawerContent, Xn as DrawerDescription, Jn as DrawerFooter, qn as DrawerHeader, Gn as DrawerOverlay, Un as DrawerPortal, Yn as DrawerTitle, Hn as DrawerTrigger, Zn as DropdownMenu, sr as DropdownMenuCheckboxItem, ar as DropdownMenuContent, $n as DropdownMenuGroup, or as DropdownMenuItem, lr as DropdownMenuLabel, er as DropdownMenuPortal, nr as DropdownMenuRadioGroup, cr as DropdownMenuRadioItem, ur as DropdownMenuSeparator, dr as DropdownMenuShortcut, tr as DropdownMenuSub, ir as DropdownMenuSubContent, rr as DropdownMenuSubTrigger, Qn as DropdownMenuTrigger, Oi as EnumSelect, vr as FileInput, xr as Form, Or as FormControl, kr as FormDescription, Cr as FormField, Er as FormItem, Dr as FormLabel, Ar as FormMessage, jr as HoverCard, Nr as HoverCardContent, Mr as HoverCardTrigger, ji as IdAsyncSelect, Q as Input, Fr as InputOTP, Ir as InputOTPGroup, Rr as InputOTPSeparator, Lr as InputOTPSlot, br as Label, Wr as Menubar, Xr as MenubarCheckboxItem, Jr as MenubarContent, Br as MenubarGroup, Yr as MenubarItem, Qr as MenubarLabel, zr as MenubarMenu, Vr as MenubarPortal, Hr as MenubarRadioGroup, Zr as MenubarRadioItem, $r as MenubarSeparator, ei as MenubarShortcut, Ur as MenubarSub, qr as MenubarSubContent, Kr as MenubarSubTrigger, Gr as MenubarTrigger, si as MonthPickerMultiple, ci as NavigationMenu, pi as NavigationMenuContent, gi as NavigationMenuIndicator, ui as NavigationMenuItem, mi as NavigationMenuLink, li as NavigationMenuList, fi as NavigationMenuTrigger, hi as NavigationMenuViewport, _i as Pagination, Y as Popover, hn as PopoverAnchor, Z as PopoverContent, X as PopoverTrigger, vi as Progress, yi as RadioGroup, bi as RadioGroupItem, xi as RangeNumberInput, Ti as ResizableHandle, wi as ResizablePanel, Ci as ResizablePanelGroup, Ei as ScrollArea, Di as ScrollBar, $ as Select, ti as Separator, Mi as Sheet, Pi as SheetClose, Ri as SheetContent, Hi as SheetDescription, Bi as SheetFooter, zi as SheetHeader, Ii as SheetOverlay, Fi as SheetPortal, Vi as SheetTitle, Ni as SheetTrigger, ia as Sidebar, fa as SidebarContent, ua as SidebarFooter, pa as SidebarGroup, ha as SidebarGroupAction, ga as SidebarGroupContent, ma as SidebarGroupLabel, la as SidebarHeader, ca as SidebarInput, sa as SidebarInset, _a as SidebarMenu, xa as SidebarMenuAction, Sa as SidebarMenuBadge, ba as SidebarMenuButton, va as SidebarMenuItem, Ca as SidebarMenuSkeleton, wa as SidebarMenuSub, Ea as SidebarMenuSubButton, Ta as SidebarMenuSubItem, ra as SidebarProvider, oa as SidebarRail, da as SidebarSeparator, aa as SidebarTrigger, Ki as Skeleton, Da as Slider, Ha as SonamuFilterModal, so as SonamuFilterPopover, so as SonamuFilterTooltip, qt as SonamuProvider, co as Switch, lo as Table, fo as TableBody, _o as TableCaption, go as TableCell, po as TableFooter, ho as TableHead, uo as TableHeader, mo as TableRow, vo as Tabs, xo as TabsContent, yo as TabsList, bo as TabsTrigger, Pa as TagInput, So as Textarea, Eo as Toast, Do as ToastAction, Oo as ToastClose, Ao as ToastDescription, Co as ToastProvider, ko as ToastTitle, wo as ToastViewport, jo as Toaster, No as Toggle, Fo as ToggleGroup, Io as ToggleGroupItem, Ji as Tooltip, Xi as TooltipContent, qi as TooltipProvider, Yi as TooltipTrigger, $a as arrayableToArray, st as badgeVariants, Ge as buttonVariants, eo as caller, Wa as caster, W as cn, _n as commonModalAtom, Za as dateF, Qa as datetimeF, ja as defaultOperatorByPropType, Va as extractFieldMetaFromSchema, Ga as fastifyCaster, Ka as hidden, di as navigationMenuTriggerStyle, Xa as numF, Aa as operatorsByPropType, Ja as paramsToSearchParams, qa as searchParamsToParams, Ya as sqlDateToDateString, je as toast, Mo as toggleVariants, yn as useCommonModal, wr as useFormField, Gi as useIsMobile, io as useListParams, oo as useModal, ao as useSelection, na as useSidebar, q as useSonamuBaseContext, Me as useToast, no as useTypeForm };
|
|
4412
4414
|
|
|
4413
4415
|
//# sourceMappingURL=react-components.es.js.map
|