@yusr_systems/ui 2.2.7 → 2.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -1
- package/dist/yusr-ui.js +367 -362
- package/package.json +2 -2
package/dist/yusr-ui.js
CHANGED
|
@@ -28,17 +28,17 @@ import * as Ue from "@radix-ui/react-checkbox";
|
|
|
28
28
|
import { Combobox as j } from "@base-ui/react/combobox";
|
|
29
29
|
import * as We from "@radix-ui/react-direction";
|
|
30
30
|
import { Drawer as M } from "vaul";
|
|
31
|
-
import * as
|
|
32
|
-
import { useTheme as
|
|
33
|
-
import { Toaster as
|
|
34
|
-
import * as
|
|
35
|
-
import * as
|
|
36
|
-
import * as
|
|
37
|
-
import * as
|
|
38
|
-
import { AuthConstants as
|
|
39
|
-
import { createAsyncThunk as
|
|
31
|
+
import * as Ge from "@radix-ui/react-scroll-area";
|
|
32
|
+
import { useTheme as Ke } from "next-themes";
|
|
33
|
+
import { Toaster as qe } from "sonner";
|
|
34
|
+
import * as Je from "@radix-ui/react-switch";
|
|
35
|
+
import * as Ye from "@radix-ui/react-tabs";
|
|
36
|
+
import * as Xe from "@radix-ui/react-toggle-group";
|
|
37
|
+
import * as Ze from "@radix-ui/react-toggle";
|
|
38
|
+
import { AuthConstants as Qe, StorageFile as $e, StorageFileStatus as N } from "@yusr_systems/core";
|
|
39
|
+
import { createAsyncThunk as et, createSlice as tt } from "@reduxjs/toolkit";
|
|
40
40
|
//#region src/components/custom/auth/protectedRoute.tsx
|
|
41
|
-
function
|
|
41
|
+
function nt({ isAuthenticated: e, loginPath: i = "/login" }) {
|
|
42
42
|
let o = r();
|
|
43
43
|
return e ? /* @__PURE__ */ a(n, {}) : /* @__PURE__ */ a(t, {
|
|
44
44
|
to: i,
|
|
@@ -48,7 +48,7 @@ function tt({ isAuthenticated: e, loginPath: i = "/login" }) {
|
|
|
48
48
|
}
|
|
49
49
|
//#endregion
|
|
50
50
|
//#region src/components/custom/background/yusrBackground.tsx
|
|
51
|
-
function
|
|
51
|
+
function rt() {
|
|
52
52
|
return /* @__PURE__ */ o("div", {
|
|
53
53
|
className: "pointer-events-none fixed inset-0 -z-10 overflow-hidden bg-slate-50 dark:bg-background transition-colors duration-500",
|
|
54
54
|
children: [
|
|
@@ -130,12 +130,12 @@ function nt() {
|
|
|
130
130
|
}
|
|
131
131
|
//#endregion
|
|
132
132
|
//#region src/utils/cn.ts
|
|
133
|
-
function
|
|
133
|
+
function P(...e) {
|
|
134
134
|
return je(Ae(e));
|
|
135
135
|
}
|
|
136
136
|
//#endregion
|
|
137
137
|
//#region src/components/pure/button.tsx
|
|
138
|
-
var
|
|
138
|
+
var it = S("focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-3 aria-invalid:ring-3 [&_svg:not([class*='size-'])]:size-4 inline-flex items-center justify-center whitespace-nowrap transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none group/button select-none", {
|
|
139
139
|
variants: {
|
|
140
140
|
variant: {
|
|
141
141
|
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80 hover:bg-primary/90 cursor-pointer",
|
|
@@ -161,12 +161,12 @@ var rt = S("focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ri
|
|
|
161
161
|
size: "default"
|
|
162
162
|
}
|
|
163
163
|
});
|
|
164
|
-
function
|
|
164
|
+
function F({ className: e, variant: t = "default", size: n = "default", asChild: r = !1, ...i }) {
|
|
165
165
|
return /* @__PURE__ */ a(r ? C : "button", {
|
|
166
166
|
"data-slot": "button",
|
|
167
167
|
"data-variant": t,
|
|
168
168
|
"data-size": n,
|
|
169
|
-
className:
|
|
169
|
+
className: P(it({
|
|
170
170
|
variant: t,
|
|
171
171
|
size: n,
|
|
172
172
|
className: e
|
|
@@ -176,7 +176,7 @@ function I({ className: e, variant: t = "default", size: n = "default", asChild:
|
|
|
176
176
|
}
|
|
177
177
|
//#endregion
|
|
178
178
|
//#region src/components/custom/buttons/saveButton.tsx
|
|
179
|
-
function
|
|
179
|
+
function at({ formData: e, dialogMode: t, service: n, disable: r, onSuccess: i, validate: s = () => !0 }) {
|
|
180
180
|
let [c, l] = x(!1);
|
|
181
181
|
async function u() {
|
|
182
182
|
if (!s()) return;
|
|
@@ -188,7 +188,7 @@ function it({ formData: e, dialogMode: t, service: n, disable: r, onSuccess: i,
|
|
|
188
188
|
let r = t === "create" ? await n.Add(e) : await n.Update(e);
|
|
189
189
|
l(!1), r.status === 200 && i?.(r.data);
|
|
190
190
|
}
|
|
191
|
-
return /* @__PURE__ */ o(
|
|
191
|
+
return /* @__PURE__ */ o(F, {
|
|
192
192
|
disabled: c || r?.(),
|
|
193
193
|
onClick: u,
|
|
194
194
|
children: [
|
|
@@ -200,7 +200,7 @@ function it({ formData: e, dialogMode: t, service: n, disable: r, onSuccess: i,
|
|
|
200
200
|
}
|
|
201
201
|
//#endregion
|
|
202
202
|
//#region src/components/custom/containers/dynamicListContainer.tsx
|
|
203
|
-
function
|
|
203
|
+
function ot({ title: e, items: t, onAdd: n, addLabel: r, emptyMessage: i, error: s, headers: c, children: l }) {
|
|
204
204
|
return /* @__PURE__ */ o("div", {
|
|
205
205
|
className: "space-y-3",
|
|
206
206
|
children: [
|
|
@@ -209,7 +209,7 @@ function at({ title: e, items: t, onAdd: n, addLabel: r, emptyMessage: i, error:
|
|
|
209
209
|
children: [/* @__PURE__ */ a("h3", {
|
|
210
210
|
className: "text-sm font-bold",
|
|
211
211
|
children: e
|
|
212
|
-
}), /* @__PURE__ */ o(
|
|
212
|
+
}), /* @__PURE__ */ o(F, {
|
|
213
213
|
type: "button",
|
|
214
214
|
variant: "outline",
|
|
215
215
|
size: "sm",
|
|
@@ -246,46 +246,46 @@ function at({ title: e, items: t, onAdd: n, addLabel: r, emptyMessage: i, error:
|
|
|
246
246
|
}
|
|
247
247
|
//#endregion
|
|
248
248
|
//#region src/components/pure/dialog.tsx
|
|
249
|
-
function
|
|
249
|
+
function I({ ...e }) {
|
|
250
250
|
return /* @__PURE__ */ a(w.Root, {
|
|
251
251
|
"data-slot": "dialog",
|
|
252
252
|
...e
|
|
253
253
|
});
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function st({ ...e }) {
|
|
256
256
|
return /* @__PURE__ */ a(w.Trigger, {
|
|
257
257
|
"data-slot": "dialog-trigger",
|
|
258
258
|
...e
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function ct({ ...e }) {
|
|
262
262
|
return /* @__PURE__ */ a(w.Portal, {
|
|
263
263
|
"data-slot": "dialog-portal",
|
|
264
264
|
...e
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function lt({ ...e }) {
|
|
268
268
|
return /* @__PURE__ */ a(w.Close, {
|
|
269
269
|
"data-slot": "dialog-close",
|
|
270
270
|
...e
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function ut({ className: e, ...t }) {
|
|
274
274
|
return /* @__PURE__ */ a(w.Overlay, {
|
|
275
275
|
"data-slot": "dialog-overlay",
|
|
276
|
-
className:
|
|
276
|
+
className: P("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 isolate z-50", e),
|
|
277
277
|
...t
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
return /* @__PURE__ */ o(
|
|
280
|
+
function dt({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
281
|
+
return /* @__PURE__ */ o(ct, { children: [/* @__PURE__ */ a(ut, {}), /* @__PURE__ */ o(w.Content, {
|
|
282
282
|
"data-slot": "dialog-content",
|
|
283
|
-
className:
|
|
283
|
+
className: P("bg-background data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/10 grid max-w-[calc(100%-2rem)] gap-4 rounded-xl p-4 text-sm ring-1 duration-100 sm:max-w-sm fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 outline-none", e),
|
|
284
284
|
...r,
|
|
285
285
|
children: [t, n && /* @__PURE__ */ a(w.Close, {
|
|
286
286
|
"data-slot": "dialog-close",
|
|
287
287
|
asChild: !0,
|
|
288
|
-
children: /* @__PURE__ */ o(
|
|
288
|
+
children: /* @__PURE__ */ o(F, {
|
|
289
289
|
variant: "ghost",
|
|
290
290
|
className: r.dir === "rtl" ? "absolute top-2 left-2" : "absolute top-2 right-2",
|
|
291
291
|
size: "icon-sm",
|
|
@@ -297,69 +297,69 @@ function ut({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
|
297
297
|
})]
|
|
298
298
|
})] });
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function ft({ className: e, ...t }) {
|
|
301
301
|
return /* @__PURE__ */ a("div", {
|
|
302
302
|
"data-slot": "dialog-header",
|
|
303
|
-
className:
|
|
303
|
+
className: P("gap-2 flex flex-col", e),
|
|
304
304
|
...t
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function pt({ className: e, showCloseButton: t = !1, children: n, ...r }) {
|
|
308
308
|
return /* @__PURE__ */ o("div", {
|
|
309
309
|
"data-slot": "dialog-footer",
|
|
310
|
-
className:
|
|
310
|
+
className: P("bg-muted/50 -mx-4 -mb-4 rounded-b-xl border-t p-4 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
|
|
311
311
|
...r,
|
|
312
312
|
children: [n, t && /* @__PURE__ */ a(w.Close, {
|
|
313
313
|
asChild: !0,
|
|
314
|
-
children: /* @__PURE__ */ a(
|
|
314
|
+
children: /* @__PURE__ */ a(F, {
|
|
315
315
|
variant: "outline",
|
|
316
316
|
children: "Close"
|
|
317
317
|
})
|
|
318
318
|
})]
|
|
319
319
|
});
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function mt({ className: e, ...t }) {
|
|
322
322
|
return /* @__PURE__ */ a(w.Title, {
|
|
323
323
|
"data-slot": "dialog-title",
|
|
324
|
-
className:
|
|
324
|
+
className: P("text-base leading-none font-medium", e),
|
|
325
325
|
...t
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function ht({ className: e, ...t }) {
|
|
329
329
|
return /* @__PURE__ */ a(w.Description, {
|
|
330
330
|
"data-slot": "dialog-description",
|
|
331
|
-
className:
|
|
331
|
+
className: P("text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3", e),
|
|
332
332
|
...t
|
|
333
333
|
});
|
|
334
334
|
}
|
|
335
335
|
//#endregion
|
|
336
336
|
//#region src/components/pure/separator.tsx
|
|
337
|
-
function
|
|
337
|
+
function L({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }) {
|
|
338
338
|
return /* @__PURE__ */ a(Me.Root, {
|
|
339
339
|
"data-slot": "separator",
|
|
340
340
|
decorative: n,
|
|
341
341
|
orientation: t,
|
|
342
|
-
className:
|
|
342
|
+
className: P("bg-border shrink-0 data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch", e),
|
|
343
343
|
...r
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
346
|
//#endregion
|
|
347
347
|
//#region src/components/custom/dialogs/changeDialog.tsx
|
|
348
|
-
function
|
|
349
|
-
return /* @__PURE__ */ o(
|
|
348
|
+
function gt({ title: e, description: t = "", className: n = "sm:max-w-sm", formData: r, dialogMode: i, service: s, disable: c, onSuccess: l, validate: u = () => !0, children: d }) {
|
|
349
|
+
return /* @__PURE__ */ o(dt, {
|
|
350
350
|
dir: "rtl",
|
|
351
|
-
className:
|
|
351
|
+
className: P(n, "scroll-auto"),
|
|
352
352
|
children: [
|
|
353
|
-
/* @__PURE__ */ o(
|
|
354
|
-
/* @__PURE__ */ a(
|
|
353
|
+
/* @__PURE__ */ o(ft, { children: [/* @__PURE__ */ a(mt, { children: e }), /* @__PURE__ */ a(ht, { children: t })] }),
|
|
354
|
+
/* @__PURE__ */ a(L, {}),
|
|
355
355
|
d,
|
|
356
|
-
/* @__PURE__ */ o(
|
|
356
|
+
/* @__PURE__ */ o(pt, { children: [/* @__PURE__ */ a(lt, {
|
|
357
357
|
asChild: !0,
|
|
358
|
-
children: /* @__PURE__ */ a(
|
|
358
|
+
children: /* @__PURE__ */ a(F, {
|
|
359
359
|
variant: "outline",
|
|
360
360
|
children: "إلغاء"
|
|
361
361
|
})
|
|
362
|
-
}), /* @__PURE__ */ a(
|
|
362
|
+
}), /* @__PURE__ */ a(at, {
|
|
363
363
|
formData: r,
|
|
364
364
|
dialogMode: i,
|
|
365
365
|
service: s,
|
|
@@ -372,14 +372,14 @@ function ht({ title: e, description: t = "", className: n = "sm:max-w-sm", formD
|
|
|
372
372
|
}
|
|
373
373
|
//#endregion
|
|
374
374
|
//#region src/components/custom/dialogs/deleteDialog.tsx
|
|
375
|
-
function
|
|
375
|
+
function _t({ entityName: e, id: t, service: n, onSuccess: r }) {
|
|
376
376
|
let [s, c] = x(!1);
|
|
377
377
|
async function l() {
|
|
378
378
|
c(!0), (await n.Delete(t)).status === 200 && r?.(), c(!1);
|
|
379
379
|
}
|
|
380
380
|
return /* @__PURE__ */ o(i, { children: [
|
|
381
|
-
/* @__PURE__ */ o(
|
|
382
|
-
/* @__PURE__ */ a(
|
|
381
|
+
/* @__PURE__ */ o(ft, { children: [/* @__PURE__ */ o(mt, { children: ["حذف ", e] }), /* @__PURE__ */ a(ht, {})] }),
|
|
382
|
+
/* @__PURE__ */ a(L, {}),
|
|
383
383
|
/* @__PURE__ */ a("div", {
|
|
384
384
|
className: "mx-auto mb-2 flex h-14 w-14 items-center justify-center rounded-full bg-destructive/10",
|
|
385
385
|
children: /* @__PURE__ */ a(le, { className: "h-7 w-7 text-destructive" })
|
|
@@ -402,13 +402,13 @@ function gt({ entityName: e, id: t, service: n, onSuccess: r }) {
|
|
|
402
402
|
" نهائياً وإزالته من خوادمنا."
|
|
403
403
|
]
|
|
404
404
|
}),
|
|
405
|
-
/* @__PURE__ */ o(
|
|
405
|
+
/* @__PURE__ */ o(pt, { children: [/* @__PURE__ */ a(lt, {
|
|
406
406
|
asChild: !0,
|
|
407
|
-
children: /* @__PURE__ */ a(
|
|
407
|
+
children: /* @__PURE__ */ a(F, {
|
|
408
408
|
variant: "outline",
|
|
409
409
|
children: "إلغاء"
|
|
410
410
|
})
|
|
411
|
-
}), /* @__PURE__ */ o(
|
|
411
|
+
}), /* @__PURE__ */ o(F, {
|
|
412
412
|
variant: "destructive",
|
|
413
413
|
onClick: l,
|
|
414
414
|
disabled: s,
|
|
@@ -418,7 +418,7 @@ function gt({ entityName: e, id: t, service: n, onSuccess: r }) {
|
|
|
418
418
|
}
|
|
419
419
|
//#endregion
|
|
420
420
|
//#region ../../node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
421
|
-
function
|
|
421
|
+
function vt(e) {
|
|
422
422
|
return (t = {}) => {
|
|
423
423
|
let n = t.width ? String(t.width) : e.defaultWidth;
|
|
424
424
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
@@ -426,7 +426,7 @@ function _t(e) {
|
|
|
426
426
|
}
|
|
427
427
|
//#endregion
|
|
428
428
|
//#region ../../node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
429
|
-
function
|
|
429
|
+
function R(e) {
|
|
430
430
|
return (t, n) => {
|
|
431
431
|
let r = n?.context ? String(n.context) : "standalone", i;
|
|
432
432
|
if (r === "formatting" && e.formattingValues) {
|
|
@@ -576,7 +576,7 @@ var Ct = {
|
|
|
576
576
|
let r, i = Ct[e];
|
|
577
577
|
return r = typeof i == "string" ? i : t === 1 ? i.one : t === 2 ? i.two : t <= 10 ? i.threeToTen.replace("{{count}}", String(t)) : i.other.replace("{{count}}", String(t)), n?.addSuffix ? n.comparison && n.comparison > 0 ? "في خلال " + r : "منذ " + r : r;
|
|
578
578
|
}, Tt = {
|
|
579
|
-
date:
|
|
579
|
+
date: vt({
|
|
580
580
|
formats: {
|
|
581
581
|
full: "EEEE, MMMM do, y",
|
|
582
582
|
long: "MMMM do, y",
|
|
@@ -585,7 +585,7 @@ var Ct = {
|
|
|
585
585
|
},
|
|
586
586
|
defaultWidth: "full"
|
|
587
587
|
}),
|
|
588
|
-
time:
|
|
588
|
+
time: vt({
|
|
589
589
|
formats: {
|
|
590
590
|
full: "h:mm:ss a zzzz",
|
|
591
591
|
long: "h:mm:ss a z",
|
|
@@ -594,7 +594,7 @@ var Ct = {
|
|
|
594
594
|
},
|
|
595
595
|
defaultWidth: "full"
|
|
596
596
|
}),
|
|
597
|
-
dateTime:
|
|
597
|
+
dateTime: vt({
|
|
598
598
|
formats: {
|
|
599
599
|
full: "{{date}} 'عند' {{time}}",
|
|
600
600
|
long: "{{date}} 'عند' {{time}}",
|
|
@@ -617,7 +617,7 @@ var Ct = {
|
|
|
617
617
|
formatRelative: (e, t, n, r) => Et[e],
|
|
618
618
|
localize: {
|
|
619
619
|
ordinalNumber: (e) => String(e),
|
|
620
|
-
era:
|
|
620
|
+
era: R({
|
|
621
621
|
values: {
|
|
622
622
|
narrow: ["ق", "ب"],
|
|
623
623
|
abbreviated: ["ق.م.", "ب.م."],
|
|
@@ -625,7 +625,7 @@ var Ct = {
|
|
|
625
625
|
},
|
|
626
626
|
defaultWidth: "wide"
|
|
627
627
|
}),
|
|
628
|
-
quarter:
|
|
628
|
+
quarter: R({
|
|
629
629
|
values: {
|
|
630
630
|
narrow: [
|
|
631
631
|
"1",
|
|
@@ -649,7 +649,7 @@ var Ct = {
|
|
|
649
649
|
defaultWidth: "wide",
|
|
650
650
|
argumentCallback: (e) => e - 1
|
|
651
651
|
}),
|
|
652
|
-
month:
|
|
652
|
+
month: R({
|
|
653
653
|
values: {
|
|
654
654
|
narrow: [
|
|
655
655
|
"ي",
|
|
@@ -696,7 +696,7 @@ var Ct = {
|
|
|
696
696
|
},
|
|
697
697
|
defaultWidth: "wide"
|
|
698
698
|
}),
|
|
699
|
-
day:
|
|
699
|
+
day: R({
|
|
700
700
|
values: {
|
|
701
701
|
narrow: [
|
|
702
702
|
"ح",
|
|
@@ -737,7 +737,7 @@ var Ct = {
|
|
|
737
737
|
},
|
|
738
738
|
defaultWidth: "wide"
|
|
739
739
|
}),
|
|
740
|
-
dayPeriod:
|
|
740
|
+
dayPeriod: R({
|
|
741
741
|
values: {
|
|
742
742
|
narrow: {
|
|
743
743
|
am: "ص",
|
|
@@ -946,7 +946,7 @@ function Ot({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
946
946
|
let p = Fe();
|
|
947
947
|
return /* @__PURE__ */ a(Pe, {
|
|
948
948
|
showOutsideDays: n,
|
|
949
|
-
className:
|
|
949
|
+
className: P("p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)] bg-background group/calendar in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent", String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, e),
|
|
950
950
|
captionLayout: r,
|
|
951
951
|
locale: o,
|
|
952
952
|
formatters: {
|
|
@@ -954,48 +954,48 @@ function Ot({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
954
954
|
...s
|
|
955
955
|
},
|
|
956
956
|
classNames: {
|
|
957
|
-
root:
|
|
958
|
-
months:
|
|
959
|
-
month:
|
|
960
|
-
nav:
|
|
961
|
-
button_previous:
|
|
962
|
-
button_next:
|
|
963
|
-
month_caption:
|
|
964
|
-
dropdowns:
|
|
965
|
-
dropdown_root:
|
|
966
|
-
dropdown:
|
|
967
|
-
caption_label:
|
|
957
|
+
root: P("w-fit", p.root),
|
|
958
|
+
months: P("flex gap-4 flex-col md:flex-row relative", p.months),
|
|
959
|
+
month: P("flex flex-col w-full gap-4", p.month),
|
|
960
|
+
nav: P("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between", p.nav),
|
|
961
|
+
button_previous: P(it({ variant: i }), "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", p.button_previous),
|
|
962
|
+
button_next: P(it({ variant: i }), "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", p.button_next),
|
|
963
|
+
month_caption: P("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)", p.month_caption),
|
|
964
|
+
dropdowns: P("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5", p.dropdowns),
|
|
965
|
+
dropdown_root: P("relative rounded-(--cell-radius)", p.dropdown_root),
|
|
966
|
+
dropdown: P("absolute bg-popover inset-0 opacity-0", p.dropdown),
|
|
967
|
+
caption_label: P("select-none font-medium", r === "label" ? "text-sm" : "rounded-(--cell-radius) flex items-center gap-1 text-sm [&>svg]:text-muted-foreground [&>svg]:size-3.5", p.caption_label),
|
|
968
968
|
table: "w-full border-collapse",
|
|
969
|
-
weekdays:
|
|
970
|
-
weekday:
|
|
971
|
-
week:
|
|
972
|
-
week_number_header:
|
|
973
|
-
week_number:
|
|
974
|
-
day:
|
|
975
|
-
range_start:
|
|
976
|
-
range_middle:
|
|
977
|
-
range_end:
|
|
978
|
-
today:
|
|
979
|
-
outside:
|
|
980
|
-
disabled:
|
|
981
|
-
hidden:
|
|
969
|
+
weekdays: P("flex", p.weekdays),
|
|
970
|
+
weekday: P("text-muted-foreground rounded-(--cell-radius) flex-1 font-normal text-[0.8rem] select-none", p.weekday),
|
|
971
|
+
week: P("flex w-full mt-2", p.week),
|
|
972
|
+
week_number_header: P("select-none w-(--cell-size)", p.week_number_header),
|
|
973
|
+
week_number: P("text-[0.8rem] select-none text-muted-foreground", p.week_number),
|
|
974
|
+
day: P("relative w-full rounded-(--cell-radius) h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-e-(--cell-radius) group/day aspect-square select-none", f.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-s-(--cell-radius)" : "[&:first-child[data-selected=true]_button]:rounded-s-(--cell-radius)", p.day),
|
|
975
|
+
range_start: P("rounded-s-(--cell-radius) bg-muted relative after:bg-muted after:absolute after:inset-y-0 after:w-4 after:end-0 z-0 isolate", p.range_start),
|
|
976
|
+
range_middle: P("rounded-none", p.range_middle),
|
|
977
|
+
range_end: P("rounded-e-(--cell-radius) bg-muted relative after:bg-muted after:absolute after:inset-y-0 after:w-4 after:start-0 z-0 isolate", p.range_end),
|
|
978
|
+
today: P("bg-muted text-foreground rounded-(--cell-radius) data-[selected=true]:rounded-none", p.today),
|
|
979
|
+
outside: P("text-muted-foreground aria-selected:text-muted-foreground", p.outside),
|
|
980
|
+
disabled: P("text-muted-foreground opacity-50", p.disabled),
|
|
981
|
+
hidden: P("invisible", p.hidden),
|
|
982
982
|
...t
|
|
983
983
|
},
|
|
984
984
|
components: {
|
|
985
985
|
Root: ({ className: e, rootRef: t, ...n }) => /* @__PURE__ */ a("div", {
|
|
986
986
|
"data-slot": "calendar",
|
|
987
987
|
ref: t,
|
|
988
|
-
className:
|
|
988
|
+
className: P(e),
|
|
989
989
|
...n
|
|
990
990
|
}),
|
|
991
991
|
Chevron: ({ className: e, orientation: t, ...n }) => t === "left" ? /* @__PURE__ */ a(u, {
|
|
992
|
-
className:
|
|
992
|
+
className: P("rtl:rotate-180 size-4", e),
|
|
993
993
|
...n
|
|
994
994
|
}) : t === "right" ? /* @__PURE__ */ a(d, {
|
|
995
|
-
className:
|
|
995
|
+
className: P("rtl:rotate-180 size-4", e),
|
|
996
996
|
...n
|
|
997
997
|
}) : /* @__PURE__ */ a(l, {
|
|
998
|
-
className:
|
|
998
|
+
className: P("size-4", e),
|
|
999
999
|
...n
|
|
1000
1000
|
}),
|
|
1001
1001
|
DayButton: ({ ...e }) => /* @__PURE__ */ a(kt, {
|
|
@@ -1018,7 +1018,7 @@ function kt({ className: e, day: t, modifiers: n, locale: r, ...i }) {
|
|
|
1018
1018
|
let o = Fe(), s = y.useRef(null);
|
|
1019
1019
|
return y.useEffect(() => {
|
|
1020
1020
|
n.focused && s.current?.focus();
|
|
1021
|
-
}, [n.focused]), /* @__PURE__ */ a(
|
|
1021
|
+
}, [n.focused]), /* @__PURE__ */ a(F, {
|
|
1022
1022
|
ref: s,
|
|
1023
1023
|
variant: "ghost",
|
|
1024
1024
|
size: "icon",
|
|
@@ -1027,7 +1027,7 @@ function kt({ className: e, day: t, modifiers: n, locale: r, ...i }) {
|
|
|
1027
1027
|
"data-range-start": n.range_start,
|
|
1028
1028
|
"data-range-end": n.range_end,
|
|
1029
1029
|
"data-range-middle": n.range_middle,
|
|
1030
|
-
className:
|
|
1030
|
+
className: P("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-foreground relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-e-(--cell-radius) data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-s-(--cell-radius) [&>span]:text-xs [&>span]:opacity-70", o.day, e),
|
|
1031
1031
|
...i
|
|
1032
1032
|
});
|
|
1033
1033
|
}
|
|
@@ -1050,7 +1050,7 @@ function Mt({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
|
1050
1050
|
"data-slot": "popover-content",
|
|
1051
1051
|
align: t,
|
|
1052
1052
|
sideOffset: n,
|
|
1053
|
-
className:
|
|
1053
|
+
className: P("bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 flex flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 duration-100 z-50 w-72 origin-(--radix-popover-content-transform-origin) outline-hidden", e),
|
|
1054
1054
|
...r
|
|
1055
1055
|
}) });
|
|
1056
1056
|
}
|
|
@@ -1063,21 +1063,21 @@ function Nt({ ...e }) {
|
|
|
1063
1063
|
function Pt({ className: e, ...t }) {
|
|
1064
1064
|
return /* @__PURE__ */ a("div", {
|
|
1065
1065
|
"data-slot": "popover-header",
|
|
1066
|
-
className:
|
|
1066
|
+
className: P("flex flex-col gap-0.5 text-sm", e),
|
|
1067
1067
|
...t
|
|
1068
1068
|
});
|
|
1069
1069
|
}
|
|
1070
1070
|
function Ft({ className: e, ...t }) {
|
|
1071
1071
|
return /* @__PURE__ */ a("div", {
|
|
1072
1072
|
"data-slot": "popover-title",
|
|
1073
|
-
className:
|
|
1073
|
+
className: P("font-medium", e),
|
|
1074
1074
|
...t
|
|
1075
1075
|
});
|
|
1076
1076
|
}
|
|
1077
1077
|
function It({ className: e, ...t }) {
|
|
1078
1078
|
return /* @__PURE__ */ a("p", {
|
|
1079
1079
|
"data-slot": "popover-description",
|
|
1080
|
-
className:
|
|
1080
|
+
className: P("text-muted-foreground", e),
|
|
1081
1081
|
...t
|
|
1082
1082
|
});
|
|
1083
1083
|
}
|
|
@@ -1086,9 +1086,9 @@ function It({ className: e, ...t }) {
|
|
|
1086
1086
|
function Lt({ value: e, onChange: t, isInvalid: n, placeholder: r = "اختر تاريخا", locale: i = Dt }) {
|
|
1087
1087
|
return /* @__PURE__ */ o(At, { children: [/* @__PURE__ */ a(jt, {
|
|
1088
1088
|
asChild: !0,
|
|
1089
|
-
children: /* @__PURE__ */ o(
|
|
1089
|
+
children: /* @__PURE__ */ o(F, {
|
|
1090
1090
|
variant: "outline",
|
|
1091
|
-
className:
|
|
1091
|
+
className: P("w-full justify-between text-left font-normal", !e && "text-muted-foreground", n && "border-red-600 ring-red-600 text-red-900"),
|
|
1092
1092
|
children: [e ? Ne(e, "PPP", { locale: i }) : /* @__PURE__ */ a("span", { children: r }), /* @__PURE__ */ a(l, { className: "h-4 w-4 opacity-50" })]
|
|
1093
1093
|
})
|
|
1094
1094
|
}), /* @__PURE__ */ a(Mt, {
|
|
@@ -1106,7 +1106,7 @@ function Lt({ value: e, onChange: t, isInvalid: n, placeholder: r = "اختر ت
|
|
|
1106
1106
|
function Rt({ className: e, ...t }) {
|
|
1107
1107
|
return /* @__PURE__ */ a(Le.Root, {
|
|
1108
1108
|
"data-slot": "label",
|
|
1109
|
-
className:
|
|
1109
|
+
className: P("gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed", e),
|
|
1110
1110
|
...t
|
|
1111
1111
|
});
|
|
1112
1112
|
}
|
|
@@ -1154,7 +1154,7 @@ function B({ className: e, type: t, ...n }) {
|
|
|
1154
1154
|
return /* @__PURE__ */ a("input", {
|
|
1155
1155
|
type: t,
|
|
1156
1156
|
"data-slot": "input",
|
|
1157
|
-
className:
|
|
1157
|
+
className: P("dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-8 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:ring-3 aria-invalid:ring-3 md:text-sm file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
1158
1158
|
...n
|
|
1159
1159
|
});
|
|
1160
1160
|
}
|
|
@@ -1163,7 +1163,7 @@ function B({ className: e, type: t, ...n }) {
|
|
|
1163
1163
|
function Bt({ isInvalid: e, className: t, ...n }) {
|
|
1164
1164
|
return /* @__PURE__ */ a(B, {
|
|
1165
1165
|
...n,
|
|
1166
|
-
className:
|
|
1166
|
+
className: P(t, e && "border-red-500 ring-red-500 text-red-900 focus-visible:ring-red-500")
|
|
1167
1167
|
});
|
|
1168
1168
|
}
|
|
1169
1169
|
//#endregion
|
|
@@ -1222,12 +1222,12 @@ function Ut({ title: e }) {
|
|
|
1222
1222
|
return /* @__PURE__ */ o("div", {
|
|
1223
1223
|
className: "flex items-center gap-4",
|
|
1224
1224
|
children: [
|
|
1225
|
-
/* @__PURE__ */ a(
|
|
1225
|
+
/* @__PURE__ */ a(L, { className: "flex-1" }),
|
|
1226
1226
|
/* @__PURE__ */ a(Rt, {
|
|
1227
1227
|
className: "shrink-0 text-sm font-semibold",
|
|
1228
1228
|
children: e
|
|
1229
1229
|
}),
|
|
1230
|
-
/* @__PURE__ */ a(
|
|
1230
|
+
/* @__PURE__ */ a(L, { className: "flex-1" })
|
|
1231
1231
|
]
|
|
1232
1232
|
});
|
|
1233
1233
|
}
|
|
@@ -1235,9 +1235,9 @@ function Ut({ title: e }) {
|
|
|
1235
1235
|
//#region src/components/custom/fields/fieldsSection.tsx
|
|
1236
1236
|
function Wt({ title: e, children: t, columns: n = 2, className: r }) {
|
|
1237
1237
|
return /* @__PURE__ */ o("div", {
|
|
1238
|
-
className:
|
|
1238
|
+
className: P("space-y-3", r),
|
|
1239
1239
|
children: [e && /* @__PURE__ */ a(Ut, { title: e }), /* @__PURE__ */ a("div", {
|
|
1240
|
-
className:
|
|
1240
|
+
className: P("grid gap-4", {
|
|
1241
1241
|
"grid-cols-1": n === 1,
|
|
1242
1242
|
"grid-cols-2": n === 2,
|
|
1243
1243
|
"grid-cols-3": n === 3
|
|
@@ -1268,7 +1268,7 @@ function Kt({ onChange: e, min: t, max: n, isInvalid: r, className: i, ...o }) {
|
|
|
1268
1268
|
type: "number",
|
|
1269
1269
|
min: t,
|
|
1270
1270
|
max: n,
|
|
1271
|
-
className:
|
|
1271
|
+
className: P(i, r && "border-red-600 ring-red-600 text-red-900"),
|
|
1272
1272
|
onChange: (r) => {
|
|
1273
1273
|
let i = r.target.value;
|
|
1274
1274
|
if (i === "") {
|
|
@@ -1334,7 +1334,7 @@ function Xt({ ...e }) {
|
|
|
1334
1334
|
function Zt({ className: e, ...t }) {
|
|
1335
1335
|
return /* @__PURE__ */ a(T.Group, {
|
|
1336
1336
|
"data-slot": "select-group",
|
|
1337
|
-
className:
|
|
1337
|
+
className: P("scroll-my-1 p-1", e),
|
|
1338
1338
|
...t
|
|
1339
1339
|
});
|
|
1340
1340
|
}
|
|
@@ -1348,7 +1348,7 @@ function $t({ className: e, size: t = "default", children: n, ...r }) {
|
|
|
1348
1348
|
return /* @__PURE__ */ o(T.Trigger, {
|
|
1349
1349
|
"data-slot": "select-trigger",
|
|
1350
1350
|
"data-size": t,
|
|
1351
|
-
className:
|
|
1351
|
+
className: P("border-input data-placeholder:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 gap-1.5 rounded-lg border bg-transparent py-2 pe-2 ps-2.5 text-sm transition-colors select-none focus-visible:ring-3 aria-invalid:ring-3 data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-4 flex w-fit items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0", e),
|
|
1352
1352
|
...r,
|
|
1353
1353
|
children: [n, /* @__PURE__ */ a(T.Icon, {
|
|
1354
1354
|
asChild: !0,
|
|
@@ -1360,7 +1360,7 @@ function en({ className: e, children: t, position: n = "item-aligned", align: r
|
|
|
1360
1360
|
return /* @__PURE__ */ a(T.Portal, { children: /* @__PURE__ */ o(T.Content, {
|
|
1361
1361
|
"data-slot": "select-content",
|
|
1362
1362
|
"data-align-trigger": n === "item-aligned",
|
|
1363
|
-
className:
|
|
1363
|
+
className: P("bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 min-w-36 rounded-lg shadow-md ring-1 duration-100 relative z-50 max-h-(--radix-select-content-available-height) origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto data-[align-trigger=true]:animate-none", n === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 rtl:data-[side=left]:translate-x-1 data-[side=right]:translate-x-1 rtl:data-[side=right]:-translate-x-1 data-[side=top]:-translate-y-1", e),
|
|
1364
1364
|
position: n,
|
|
1365
1365
|
align: r,
|
|
1366
1366
|
...i,
|
|
@@ -1368,7 +1368,7 @@ function en({ className: e, children: t, position: n = "item-aligned", align: r
|
|
|
1368
1368
|
/* @__PURE__ */ a(an, {}),
|
|
1369
1369
|
/* @__PURE__ */ a(T.Viewport, {
|
|
1370
1370
|
"data-position": n,
|
|
1371
|
-
className:
|
|
1371
|
+
className: P("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)", n === "popper" && ""),
|
|
1372
1372
|
children: t
|
|
1373
1373
|
}),
|
|
1374
1374
|
/* @__PURE__ */ a(on, {})
|
|
@@ -1378,14 +1378,14 @@ function en({ className: e, children: t, position: n = "item-aligned", align: r
|
|
|
1378
1378
|
function tn({ className: e, ...t }) {
|
|
1379
1379
|
return /* @__PURE__ */ a(T.Label, {
|
|
1380
1380
|
"data-slot": "select-label",
|
|
1381
|
-
className:
|
|
1381
|
+
className: P("text-muted-foreground px-1.5 py-1 text-xs", e),
|
|
1382
1382
|
...t
|
|
1383
1383
|
});
|
|
1384
1384
|
}
|
|
1385
1385
|
function nn({ className: e, children: t, ...n }) {
|
|
1386
1386
|
return /* @__PURE__ */ o(T.Item, {
|
|
1387
1387
|
"data-slot": "select-item",
|
|
1388
|
-
className:
|
|
1388
|
+
className: P("focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pe-8 ps-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", e),
|
|
1389
1389
|
...n,
|
|
1390
1390
|
children: [/* @__PURE__ */ a("span", {
|
|
1391
1391
|
className: "pointer-events-none absolute end-2 flex size-4 items-center justify-center",
|
|
@@ -1396,14 +1396,14 @@ function nn({ className: e, children: t, ...n }) {
|
|
|
1396
1396
|
function rn({ className: e, ...t }) {
|
|
1397
1397
|
return /* @__PURE__ */ a(T.Separator, {
|
|
1398
1398
|
"data-slot": "select-separator",
|
|
1399
|
-
className:
|
|
1399
|
+
className: P("bg-border -mx-1 my-1 h-px pointer-events-none", e),
|
|
1400
1400
|
...t
|
|
1401
1401
|
});
|
|
1402
1402
|
}
|
|
1403
1403
|
function an({ className: e, ...t }) {
|
|
1404
1404
|
return /* @__PURE__ */ a(T.ScrollUpButton, {
|
|
1405
1405
|
"data-slot": "select-scroll-up-button",
|
|
1406
|
-
className:
|
|
1406
|
+
className: P("bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
1407
1407
|
...t,
|
|
1408
1408
|
children: /* @__PURE__ */ a(f, {})
|
|
1409
1409
|
});
|
|
@@ -1411,7 +1411,7 @@ function an({ className: e, ...t }) {
|
|
|
1411
1411
|
function on({ className: e, ...t }) {
|
|
1412
1412
|
return /* @__PURE__ */ a(T.ScrollDownButton, {
|
|
1413
1413
|
"data-slot": "select-scroll-down-button",
|
|
1414
|
-
className:
|
|
1414
|
+
className: P("bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
1415
1415
|
...t,
|
|
1416
1416
|
children: /* @__PURE__ */ a(l, {})
|
|
1417
1417
|
});
|
|
@@ -1425,7 +1425,7 @@ function sn({ value: e, onValueChange: t, options: n, placeholder: r, isInvalid:
|
|
|
1425
1425
|
dir: "rtl",
|
|
1426
1426
|
disabled: s,
|
|
1427
1427
|
children: [/* @__PURE__ */ a($t, {
|
|
1428
|
-
className:
|
|
1428
|
+
className: P("w-full", i && "border-red-600 ring-red-600 text-red-900"),
|
|
1429
1429
|
children: /* @__PURE__ */ a(Qt, { placeholder: r })
|
|
1430
1430
|
}), /* @__PURE__ */ a(en, { children: n.map((e) => /* @__PURE__ */ a(nn, {
|
|
1431
1431
|
value: e.value,
|
|
@@ -1453,49 +1453,49 @@ function ln({ className: e, size: t = "default", ...n }) {
|
|
|
1453
1453
|
return /* @__PURE__ */ a("div", {
|
|
1454
1454
|
"data-slot": "card",
|
|
1455
1455
|
"data-size": t,
|
|
1456
|
-
className:
|
|
1456
|
+
className: P("ring-foreground/10 bg-card text-card-foreground gap-4 overflow-hidden rounded-xl py-4 text-sm ring-1 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col", e),
|
|
1457
1457
|
...n
|
|
1458
1458
|
});
|
|
1459
1459
|
}
|
|
1460
1460
|
function un({ className: e, ...t }) {
|
|
1461
1461
|
return /* @__PURE__ */ a("div", {
|
|
1462
1462
|
"data-slot": "card-header",
|
|
1463
|
-
className:
|
|
1463
|
+
className: P("gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3 group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]", e),
|
|
1464
1464
|
...t
|
|
1465
1465
|
});
|
|
1466
1466
|
}
|
|
1467
1467
|
function dn({ className: e, ...t }) {
|
|
1468
1468
|
return /* @__PURE__ */ a("div", {
|
|
1469
1469
|
"data-slot": "card-title",
|
|
1470
|
-
className:
|
|
1470
|
+
className: P("text-base leading-snug font-medium group-data-[size=sm]/card:text-sm", e),
|
|
1471
1471
|
...t
|
|
1472
1472
|
});
|
|
1473
1473
|
}
|
|
1474
1474
|
function fn({ className: e, ...t }) {
|
|
1475
1475
|
return /* @__PURE__ */ a("div", {
|
|
1476
1476
|
"data-slot": "card-description",
|
|
1477
|
-
className:
|
|
1477
|
+
className: P("text-muted-foreground text-sm", e),
|
|
1478
1478
|
...t
|
|
1479
1479
|
});
|
|
1480
1480
|
}
|
|
1481
1481
|
function pn({ className: e, ...t }) {
|
|
1482
1482
|
return /* @__PURE__ */ a("div", {
|
|
1483
1483
|
"data-slot": "card-action",
|
|
1484
|
-
className:
|
|
1484
|
+
className: P("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
|
|
1485
1485
|
...t
|
|
1486
1486
|
});
|
|
1487
1487
|
}
|
|
1488
1488
|
function mn({ className: e, ...t }) {
|
|
1489
1489
|
return /* @__PURE__ */ a("div", {
|
|
1490
1490
|
"data-slot": "card-content",
|
|
1491
|
-
className:
|
|
1491
|
+
className: P("px-4 group-data-[size=sm]/card:px-3", e),
|
|
1492
1492
|
...t
|
|
1493
1493
|
});
|
|
1494
1494
|
}
|
|
1495
1495
|
function hn({ className: e, ...t }) {
|
|
1496
1496
|
return /* @__PURE__ */ a("div", {
|
|
1497
1497
|
"data-slot": "card-footer",
|
|
1498
|
-
className:
|
|
1498
|
+
className: P("bg-muted/50 rounded-b-xl border-t p-4 group-data-[size=sm]/card:p-3 flex items-center", e),
|
|
1499
1499
|
...t
|
|
1500
1500
|
});
|
|
1501
1501
|
}
|
|
@@ -1539,7 +1539,7 @@ function vn({ orientation: e = "horizontal", opts: t, setApi: n, plugins: r, cla
|
|
|
1539
1539
|
},
|
|
1540
1540
|
children: /* @__PURE__ */ a("div", {
|
|
1541
1541
|
onKeyDownCapture: _,
|
|
1542
|
-
className:
|
|
1542
|
+
className: P("relative", i),
|
|
1543
1543
|
role: "region",
|
|
1544
1544
|
"aria-roledescription": "carousel",
|
|
1545
1545
|
"data-slot": "carousel",
|
|
@@ -1555,7 +1555,7 @@ function yn({ className: e, ...t }) {
|
|
|
1555
1555
|
className: "overflow-hidden",
|
|
1556
1556
|
"data-slot": "carousel-content",
|
|
1557
1557
|
children: /* @__PURE__ */ a("div", {
|
|
1558
|
-
className:
|
|
1558
|
+
className: P("flex", r === "horizontal" ? "-ms-4" : "-mt-4 flex-col", e),
|
|
1559
1559
|
...t
|
|
1560
1560
|
})
|
|
1561
1561
|
});
|
|
@@ -1566,17 +1566,17 @@ function bn({ className: e, ...t }) {
|
|
|
1566
1566
|
role: "group",
|
|
1567
1567
|
"aria-roledescription": "slide",
|
|
1568
1568
|
"data-slot": "carousel-item",
|
|
1569
|
-
className:
|
|
1569
|
+
className: P("min-w-0 shrink-0 grow-0 basis-full", n === "horizontal" ? "ps-4" : "pt-4", e),
|
|
1570
1570
|
...t
|
|
1571
1571
|
});
|
|
1572
1572
|
}
|
|
1573
1573
|
function xn({ className: e, variant: t = "outline", size: n = "icon-sm", ...r }) {
|
|
1574
1574
|
let { orientation: i, scrollPrev: s, canScrollPrev: c } = _n();
|
|
1575
|
-
return /* @__PURE__ */ o(
|
|
1575
|
+
return /* @__PURE__ */ o(F, {
|
|
1576
1576
|
"data-slot": "carousel-previous",
|
|
1577
1577
|
variant: t,
|
|
1578
1578
|
size: n,
|
|
1579
|
-
className:
|
|
1579
|
+
className: P("absolute touch-manipulation rounded-full", i === "horizontal" ? "top-1/2 -start-12 -translate-y-1/2" : "-top-12 start-1/2 -translate-x-1/2 rtl:translate-x-1/2 rotate-90", e),
|
|
1580
1580
|
disabled: !c,
|
|
1581
1581
|
onClick: s,
|
|
1582
1582
|
...r,
|
|
@@ -1588,11 +1588,11 @@ function xn({ className: e, variant: t = "outline", size: n = "icon-sm", ...r })
|
|
|
1588
1588
|
}
|
|
1589
1589
|
function Sn({ className: e, variant: t = "outline", size: n = "icon-sm", ...r }) {
|
|
1590
1590
|
let { orientation: i, scrollNext: s, canScrollNext: c } = _n();
|
|
1591
|
-
return /* @__PURE__ */ o(
|
|
1591
|
+
return /* @__PURE__ */ o(F, {
|
|
1592
1592
|
"data-slot": "carousel-next",
|
|
1593
1593
|
variant: t,
|
|
1594
1594
|
size: n,
|
|
1595
|
-
className:
|
|
1595
|
+
className: P("absolute touch-manipulation rounded-full", i === "horizontal" ? "top-1/2 -end-12 -translate-y-1/2" : "-bottom-12 start-1/2 -translate-x-1/2 rtl:translate-x-1/2 rotate-90", e),
|
|
1596
1596
|
disabled: !c,
|
|
1597
1597
|
onClick: s,
|
|
1598
1598
|
...r,
|
|
@@ -1651,7 +1651,7 @@ function wn({ label: e, file: t, onFileChange: n, onRemove: r, onDownload: s, ge
|
|
|
1651
1651
|
className: "relative group overflow-hidden border-2 aspect-video flex items-center justify-center bg-background shadow-sm",
|
|
1652
1652
|
children: /* @__PURE__ */ o(mn, {
|
|
1653
1653
|
className: "p-0 w-full h-full flex items-center justify-center",
|
|
1654
|
-
children: [/* @__PURE__ */ o(
|
|
1654
|
+
children: [/* @__PURE__ */ o(I, { children: [/* @__PURE__ */ a(st, {
|
|
1655
1655
|
asChild: !0,
|
|
1656
1656
|
children: /* @__PURE__ */ o("div", {
|
|
1657
1657
|
className: "cursor-zoom-in w-full h-full relative group",
|
|
@@ -1660,7 +1660,7 @@ function wn({ label: e, file: t, onFileChange: n, onRemove: r, onDownload: s, ge
|
|
|
1660
1660
|
children: /* @__PURE__ */ a(ae, { className: "text-white w-6 h-6" })
|
|
1661
1661
|
})]
|
|
1662
1662
|
})
|
|
1663
|
-
}), /* @__PURE__ */ a(
|
|
1663
|
+
}), /* @__PURE__ */ a(dt, {
|
|
1664
1664
|
className: "sm:max-w-[80vw] sm:w-[80vw] sm:h-[80vh] p-0 bg-background/95 border-none shadow-2xl overflow-hidden flex items-center justify-center",
|
|
1665
1665
|
children: e.contentType === "application/pdf" || e.extension?.toLowerCase() === ".pdf" ? /* @__PURE__ */ a("iframe", {
|
|
1666
1666
|
src: c(e),
|
|
@@ -1676,7 +1676,7 @@ function wn({ label: e, file: t, onFileChange: n, onRemove: r, onDownload: s, ge
|
|
|
1676
1676
|
})
|
|
1677
1677
|
})] }), /* @__PURE__ */ o("div", {
|
|
1678
1678
|
className: "absolute top-2 right-2 flex flex-col gap-2 opacity-100 md:opacity-0 md:group-hover:opacity-100 transition-opacity z-30",
|
|
1679
|
-
children: [/* @__PURE__ */ a(
|
|
1679
|
+
children: [/* @__PURE__ */ a(F, {
|
|
1680
1680
|
type: "button",
|
|
1681
1681
|
size: "icon",
|
|
1682
1682
|
className: "h-7 w-7 rounded-full shadow-lg bg-red-600 text-white",
|
|
@@ -1685,7 +1685,7 @@ function wn({ label: e, file: t, onFileChange: n, onRemove: r, onDownload: s, ge
|
|
|
1685
1685
|
},
|
|
1686
1686
|
"aria-label": "Remove file",
|
|
1687
1687
|
children: /* @__PURE__ */ a(xe, { className: "h-4 w-4" })
|
|
1688
|
-
}), /* @__PURE__ */ a(
|
|
1688
|
+
}), /* @__PURE__ */ a(F, {
|
|
1689
1689
|
type: "button",
|
|
1690
1690
|
size: "icon",
|
|
1691
1691
|
variant: "secondary",
|
|
@@ -1702,7 +1702,7 @@ function wn({ label: e, file: t, onFileChange: n, onRemove: r, onDownload: s, ge
|
|
|
1702
1702
|
})
|
|
1703
1703
|
}, n);
|
|
1704
1704
|
}) }), g.length > 1 && /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a(xn, { className: "absolute right-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full z-40 bg-background/80 hover:bg-background" }), /* @__PURE__ */ a(Sn, { className: "absolute left-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full z-40 bg-background/80 hover:bg-background" })] })]
|
|
1705
|
-
}), /* @__PURE__ */ o(
|
|
1705
|
+
}), /* @__PURE__ */ o(F, {
|
|
1706
1706
|
type: "button",
|
|
1707
1707
|
variant: "outline",
|
|
1708
1708
|
size: "sm",
|
|
@@ -1712,7 +1712,7 @@ function wn({ label: e, file: t, onFileChange: n, onRemove: r, onDownload: s, ge
|
|
|
1712
1712
|
})]
|
|
1713
1713
|
}) : /* @__PURE__ */ o("div", {
|
|
1714
1714
|
onClick: () => u.current?.click(),
|
|
1715
|
-
className:
|
|
1715
|
+
className: P("flex flex-col items-center justify-center w-100 mt-3 h-50 border-2 border-dashed rounded-md cursor-pointer hover:bg-muted/50 transition-colors bg-muted/5", f && "border-red-500 bg-red-50"),
|
|
1716
1716
|
children: [
|
|
1717
1717
|
/* @__PURE__ */ a(be, { className: "h-8 w-8 text-muted-foreground mb-2" }),
|
|
1718
1718
|
/* @__PURE__ */ a("span", {
|
|
@@ -1745,7 +1745,7 @@ function wn({ label: e, file: t, onFileChange: n, onRemove: r, onDownload: s, ge
|
|
|
1745
1745
|
function Tn({ className: e, ...t }) {
|
|
1746
1746
|
return /* @__PURE__ */ a("textarea", {
|
|
1747
1747
|
"data-slot": "textarea",
|
|
1748
|
-
className:
|
|
1748
|
+
className: P("border-input dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 rounded-lg border bg-transparent px-2.5 py-2 text-base transition-colors focus-visible:ring-3 aria-invalid:ring-3 md:text-sm placeholder:text-muted-foreground flex field-sizing-content min-h-16 w-full outline-none disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
1749
1749
|
...t
|
|
1750
1750
|
});
|
|
1751
1751
|
}
|
|
@@ -1754,7 +1754,7 @@ function Tn({ className: e, ...t }) {
|
|
|
1754
1754
|
function En({ isInvalid: e, className: t, ...n }) {
|
|
1755
1755
|
return /* @__PURE__ */ a(Tn, {
|
|
1756
1756
|
...n,
|
|
1757
|
-
className:
|
|
1757
|
+
className: P(t, e && "border-red-600 focus-visible:ring-red-600")
|
|
1758
1758
|
});
|
|
1759
1759
|
}
|
|
1760
1760
|
//#endregion
|
|
@@ -1887,7 +1887,7 @@ function Mn({ className: e, ...t }) {
|
|
|
1887
1887
|
className: "relative w-full overflow-x-auto",
|
|
1888
1888
|
children: /* @__PURE__ */ a("table", {
|
|
1889
1889
|
"data-slot": "table",
|
|
1890
|
-
className:
|
|
1890
|
+
className: P("w-full caption-bottom text-sm", e),
|
|
1891
1891
|
...t
|
|
1892
1892
|
})
|
|
1893
1893
|
});
|
|
@@ -1895,49 +1895,49 @@ function Mn({ className: e, ...t }) {
|
|
|
1895
1895
|
function Nn({ className: e, ...t }) {
|
|
1896
1896
|
return /* @__PURE__ */ a("thead", {
|
|
1897
1897
|
"data-slot": "table-header",
|
|
1898
|
-
className:
|
|
1898
|
+
className: P("[&_tr]:border-b", e),
|
|
1899
1899
|
...t
|
|
1900
1900
|
});
|
|
1901
1901
|
}
|
|
1902
1902
|
function Pn({ className: e, ...t }) {
|
|
1903
1903
|
return /* @__PURE__ */ a("tbody", {
|
|
1904
1904
|
"data-slot": "table-body",
|
|
1905
|
-
className:
|
|
1905
|
+
className: P("[&_tr:last-child]:border-0", e),
|
|
1906
1906
|
...t
|
|
1907
1907
|
});
|
|
1908
1908
|
}
|
|
1909
1909
|
function Fn({ className: e, ...t }) {
|
|
1910
1910
|
return /* @__PURE__ */ a("tfoot", {
|
|
1911
1911
|
"data-slot": "table-footer",
|
|
1912
|
-
className:
|
|
1912
|
+
className: P("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", e),
|
|
1913
1913
|
...t
|
|
1914
1914
|
});
|
|
1915
1915
|
}
|
|
1916
1916
|
function In({ className: e, ...t }) {
|
|
1917
1917
|
return /* @__PURE__ */ a("tr", {
|
|
1918
1918
|
"data-slot": "table-row",
|
|
1919
|
-
className:
|
|
1919
|
+
className: P("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", e),
|
|
1920
1920
|
...t
|
|
1921
1921
|
});
|
|
1922
1922
|
}
|
|
1923
1923
|
function Ln({ className: e, ...t }) {
|
|
1924
1924
|
return /* @__PURE__ */ a("th", {
|
|
1925
1925
|
"data-slot": "table-head",
|
|
1926
|
-
className:
|
|
1926
|
+
className: P("text-foreground h-10 px-2 text-start align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pe-0", e),
|
|
1927
1927
|
...t
|
|
1928
1928
|
});
|
|
1929
1929
|
}
|
|
1930
1930
|
function Rn({ className: e, ...t }) {
|
|
1931
1931
|
return /* @__PURE__ */ a("td", {
|
|
1932
1932
|
"data-slot": "table-cell",
|
|
1933
|
-
className:
|
|
1933
|
+
className: P("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0", e),
|
|
1934
1934
|
...t
|
|
1935
1935
|
});
|
|
1936
1936
|
}
|
|
1937
1937
|
function zn({ className: e, ...t }) {
|
|
1938
1938
|
return /* @__PURE__ */ a("caption", {
|
|
1939
1939
|
"data-slot": "table-caption",
|
|
1940
|
-
className:
|
|
1940
|
+
className: P("text-muted-foreground mt-4 text-sm", e),
|
|
1941
1941
|
...t
|
|
1942
1942
|
});
|
|
1943
1943
|
}
|
|
@@ -1946,14 +1946,14 @@ function zn({ className: e, ...t }) {
|
|
|
1946
1946
|
function Bn({ className: e, ...t }) {
|
|
1947
1947
|
return /* @__PURE__ */ a("div", {
|
|
1948
1948
|
"data-slot": "empty",
|
|
1949
|
-
className:
|
|
1949
|
+
className: P("gap-4 rounded-xl border-dashed p-6 flex w-full min-w-0 flex-1 flex-col items-center justify-center text-center text-balance", e),
|
|
1950
1950
|
...t
|
|
1951
1951
|
});
|
|
1952
1952
|
}
|
|
1953
1953
|
function Vn({ className: e, ...t }) {
|
|
1954
1954
|
return /* @__PURE__ */ a("div", {
|
|
1955
1955
|
"data-slot": "empty-header",
|
|
1956
|
-
className:
|
|
1956
|
+
className: P("gap-2 flex max-w-sm flex-col items-center", e),
|
|
1957
1957
|
...t
|
|
1958
1958
|
});
|
|
1959
1959
|
}
|
|
@@ -1968,7 +1968,7 @@ function Un({ className: e, variant: t = "default", ...n }) {
|
|
|
1968
1968
|
return /* @__PURE__ */ a("div", {
|
|
1969
1969
|
"data-slot": "empty-icon",
|
|
1970
1970
|
"data-variant": t,
|
|
1971
|
-
className:
|
|
1971
|
+
className: P(Hn({
|
|
1972
1972
|
variant: t,
|
|
1973
1973
|
className: e
|
|
1974
1974
|
})),
|
|
@@ -1978,21 +1978,21 @@ function Un({ className: e, variant: t = "default", ...n }) {
|
|
|
1978
1978
|
function Wn({ className: e, ...t }) {
|
|
1979
1979
|
return /* @__PURE__ */ a("div", {
|
|
1980
1980
|
"data-slot": "empty-title",
|
|
1981
|
-
className:
|
|
1981
|
+
className: P("text-sm font-medium tracking-tight", e),
|
|
1982
1982
|
...t
|
|
1983
1983
|
});
|
|
1984
1984
|
}
|
|
1985
1985
|
function Gn({ className: e, ...t }) {
|
|
1986
1986
|
return /* @__PURE__ */ a("div", {
|
|
1987
1987
|
"data-slot": "empty-description",
|
|
1988
|
-
className:
|
|
1988
|
+
className: P("text-sm/relaxed text-muted-foreground [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", e),
|
|
1989
1989
|
...t
|
|
1990
1990
|
});
|
|
1991
1991
|
}
|
|
1992
1992
|
function Kn({ className: e, ...t }) {
|
|
1993
1993
|
return /* @__PURE__ */ a("div", {
|
|
1994
1994
|
"data-slot": "empty-content",
|
|
1995
|
-
className:
|
|
1995
|
+
className: P("gap-2.5 text-sm flex w-full max-w-sm min-w-0 flex-col items-center text-balance", e),
|
|
1996
1996
|
...t
|
|
1997
1997
|
});
|
|
1998
1998
|
}
|
|
@@ -2047,7 +2047,7 @@ function Qn({ ...e }) {
|
|
|
2047
2047
|
function $n({ className: e, ...t }) {
|
|
2048
2048
|
return /* @__PURE__ */ a(E.Trigger, {
|
|
2049
2049
|
"data-slot": "context-menu-trigger",
|
|
2050
|
-
className:
|
|
2050
|
+
className: P("select-none", e),
|
|
2051
2051
|
...t
|
|
2052
2052
|
});
|
|
2053
2053
|
}
|
|
@@ -2078,7 +2078,7 @@ function rr({ ...e }) {
|
|
|
2078
2078
|
function ir({ className: e, ...t }) {
|
|
2079
2079
|
return /* @__PURE__ */ a(E.Portal, { children: /* @__PURE__ */ a(E.Content, {
|
|
2080
2080
|
"data-slot": "context-menu-content",
|
|
2081
|
-
className:
|
|
2081
|
+
className: P("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-36 rounded-lg p-1 shadow-md ring-1 duration-100 z-50 max-h-(--radix-context-menu-content-available-height) origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto", e),
|
|
2082
2082
|
...t
|
|
2083
2083
|
}) });
|
|
2084
2084
|
}
|
|
@@ -2087,7 +2087,7 @@ function ar({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
|
2087
2087
|
"data-slot": "context-menu-item",
|
|
2088
2088
|
"data-inset": t,
|
|
2089
2089
|
"data-variant": n,
|
|
2090
|
-
className:
|
|
2090
|
+
className: P("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive focus:*:[svg]:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm data-inset:ps-7 [&_svg:not([class*='size-'])]:size-4 group/context-menu-item relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", e),
|
|
2091
2091
|
...r
|
|
2092
2092
|
});
|
|
2093
2093
|
}
|
|
@@ -2095,7 +2095,7 @@ function or({ className: e, inset: t, children: n, ...r }) {
|
|
|
2095
2095
|
return /* @__PURE__ */ o(E.SubTrigger, {
|
|
2096
2096
|
"data-slot": "context-menu-sub-trigger",
|
|
2097
2097
|
"data-inset": t,
|
|
2098
|
-
className:
|
|
2098
|
+
className: P("focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm data-inset:ps-7 [&_svg:not([class*='size-'])]:size-4 flex cursor-default items-center outline-hidden select-none [&_svg]:pointer-events-none [&_svg]:shrink-0", e),
|
|
2099
2099
|
...r,
|
|
2100
2100
|
children: [n, /* @__PURE__ */ a(d, { className: "rtl:rotate-180 ms-auto" })]
|
|
2101
2101
|
});
|
|
@@ -2103,7 +2103,7 @@ function or({ className: e, inset: t, children: n, ...r }) {
|
|
|
2103
2103
|
function sr({ className: e, ...t }) {
|
|
2104
2104
|
return /* @__PURE__ */ a(E.SubContent, {
|
|
2105
2105
|
"data-slot": "context-menu-sub-content",
|
|
2106
|
-
className:
|
|
2106
|
+
className: P("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 bg-popover text-popover-foreground min-w-32 rounded-lg border p-1 shadow-lg duration-100 z-50 origin-(--radix-context-menu-content-transform-origin) overflow-hidden", e),
|
|
2107
2107
|
...t
|
|
2108
2108
|
});
|
|
2109
2109
|
}
|
|
@@ -2111,7 +2111,7 @@ function cr({ className: e, children: t, checked: n, inset: r, ...i }) {
|
|
|
2111
2111
|
return /* @__PURE__ */ o(E.CheckboxItem, {
|
|
2112
2112
|
"data-slot": "context-menu-checkbox-item",
|
|
2113
2113
|
"data-inset": r,
|
|
2114
|
-
className:
|
|
2114
|
+
className: P("focus:bg-accent focus:text-accent-foreground gap-1.5 rounded-md py-1 pe-8 ps-1.5 text-sm data-inset:ps-7 [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", e),
|
|
2115
2115
|
checked: n,
|
|
2116
2116
|
...i,
|
|
2117
2117
|
children: [/* @__PURE__ */ a("span", {
|
|
@@ -2124,7 +2124,7 @@ function lr({ className: e, children: t, inset: n, ...r }) {
|
|
|
2124
2124
|
return /* @__PURE__ */ o(E.RadioItem, {
|
|
2125
2125
|
"data-slot": "context-menu-radio-item",
|
|
2126
2126
|
"data-inset": n,
|
|
2127
|
-
className:
|
|
2127
|
+
className: P("focus:bg-accent focus:text-accent-foreground gap-1.5 rounded-md py-1 pe-8 ps-1.5 text-sm data-inset:ps-7 [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", e),
|
|
2128
2128
|
...r,
|
|
2129
2129
|
children: [/* @__PURE__ */ a("span", {
|
|
2130
2130
|
className: "absolute end-2 pointer-events-none",
|
|
@@ -2136,21 +2136,21 @@ function ur({ className: e, inset: t, ...n }) {
|
|
|
2136
2136
|
return /* @__PURE__ */ a(E.Label, {
|
|
2137
2137
|
"data-slot": "context-menu-label",
|
|
2138
2138
|
"data-inset": t,
|
|
2139
|
-
className:
|
|
2139
|
+
className: P("text-muted-foreground px-1.5 py-1 text-xs font-medium data-inset:ps-7", e),
|
|
2140
2140
|
...n
|
|
2141
2141
|
});
|
|
2142
2142
|
}
|
|
2143
2143
|
function dr({ className: e, ...t }) {
|
|
2144
2144
|
return /* @__PURE__ */ a(E.Separator, {
|
|
2145
2145
|
"data-slot": "context-menu-separator",
|
|
2146
|
-
className:
|
|
2146
|
+
className: P("bg-border -mx-1 my-1 h-px", e),
|
|
2147
2147
|
...t
|
|
2148
2148
|
});
|
|
2149
2149
|
}
|
|
2150
2150
|
function fr({ className: e, ...t }) {
|
|
2151
2151
|
return /* @__PURE__ */ a("span", {
|
|
2152
2152
|
"data-slot": "context-menu-shortcut",
|
|
2153
|
-
className:
|
|
2153
|
+
className: P("text-muted-foreground group-focus/context-menu-item:text-accent-foreground ms-auto text-xs tracking-widest", e),
|
|
2154
2154
|
...t
|
|
2155
2155
|
});
|
|
2156
2156
|
}
|
|
@@ -2199,12 +2199,12 @@ function hr({ title: e, buttonTitle: t, createComp: n, isButtonVisible: r = !0 }
|
|
|
2199
2199
|
} }) : n;
|
|
2200
2200
|
return /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ o("div", {
|
|
2201
2201
|
className: "flex justify-between mb-8 gap-3",
|
|
2202
|
-
children: [/* @__PURE__ */ a("div", { children: /* @__PURE__ */ a("h1", { children: e }) }), r && /* @__PURE__ */ o(
|
|
2202
|
+
children: [/* @__PURE__ */ a("div", { children: /* @__PURE__ */ a("h1", { children: e }) }), r && /* @__PURE__ */ o(F, {
|
|
2203
2203
|
variant: "default",
|
|
2204
2204
|
onClick: () => c(!0),
|
|
2205
2205
|
children: [/* @__PURE__ */ a(pe, { className: "h-4 w-4" }), t]
|
|
2206
2206
|
})]
|
|
2207
|
-
}), s && /* @__PURE__ */ a(
|
|
2207
|
+
}), s && /* @__PURE__ */ a(I, {
|
|
2208
2208
|
open: s,
|
|
2209
2209
|
onOpenChange: c,
|
|
2210
2210
|
children: l
|
|
@@ -2228,14 +2228,14 @@ function _r({ className: e, ...t }) {
|
|
|
2228
2228
|
role: "navigation",
|
|
2229
2229
|
"aria-label": "pagination",
|
|
2230
2230
|
"data-slot": "pagination",
|
|
2231
|
-
className:
|
|
2231
|
+
className: P("mx-auto flex w-full justify-center", e),
|
|
2232
2232
|
...t
|
|
2233
2233
|
});
|
|
2234
2234
|
}
|
|
2235
2235
|
function vr({ className: e, ...t }) {
|
|
2236
2236
|
return /* @__PURE__ */ a("ul", {
|
|
2237
2237
|
"data-slot": "pagination-content",
|
|
2238
|
-
className:
|
|
2238
|
+
className: P("gap-0.5 flex items-center", e),
|
|
2239
2239
|
...t
|
|
2240
2240
|
});
|
|
2241
2241
|
}
|
|
@@ -2246,11 +2246,11 @@ function yr({ ...e }) {
|
|
|
2246
2246
|
});
|
|
2247
2247
|
}
|
|
2248
2248
|
function br({ className: e, isActive: t, size: n = "icon", ...r }) {
|
|
2249
|
-
return /* @__PURE__ */ a(
|
|
2249
|
+
return /* @__PURE__ */ a(F, {
|
|
2250
2250
|
asChild: !0,
|
|
2251
2251
|
variant: t ? "outline" : "ghost",
|
|
2252
2252
|
size: n,
|
|
2253
|
-
className:
|
|
2253
|
+
className: P(e),
|
|
2254
2254
|
children: /* @__PURE__ */ a("a", {
|
|
2255
2255
|
"aria-current": t ? "page" : void 0,
|
|
2256
2256
|
"data-slot": "pagination-link",
|
|
@@ -2263,7 +2263,7 @@ function xr({ className: e, text: t = "Previous", ...n }) {
|
|
|
2263
2263
|
return /* @__PURE__ */ o(br, {
|
|
2264
2264
|
"aria-label": "Go to previous page",
|
|
2265
2265
|
size: "default",
|
|
2266
|
-
className:
|
|
2266
|
+
className: P("ps-1.5!", e),
|
|
2267
2267
|
...n,
|
|
2268
2268
|
children: [/* @__PURE__ */ a(u, {
|
|
2269
2269
|
"data-icon": "inline-start",
|
|
@@ -2278,7 +2278,7 @@ function Sr({ className: e, text: t = "Next", ...n }) {
|
|
|
2278
2278
|
return /* @__PURE__ */ o(br, {
|
|
2279
2279
|
"aria-label": "Go to next page",
|
|
2280
2280
|
size: "default",
|
|
2281
|
-
className:
|
|
2281
|
+
className: P("pe-1.5!", e),
|
|
2282
2282
|
...n,
|
|
2283
2283
|
children: [/* @__PURE__ */ a("span", {
|
|
2284
2284
|
className: "hidden sm:block",
|
|
@@ -2293,7 +2293,7 @@ function Cr({ className: e, ...t }) {
|
|
|
2293
2293
|
return /* @__PURE__ */ o("span", {
|
|
2294
2294
|
"aria-hidden": !0,
|
|
2295
2295
|
"data-slot": "pagination-ellipsis",
|
|
2296
|
-
className:
|
|
2296
|
+
className: P("size-8 [&_svg:not([class*='size-'])]:size-4 flex items-center justify-center", e),
|
|
2297
2297
|
...t,
|
|
2298
2298
|
children: [/* @__PURE__ */ a(ce, {}), /* @__PURE__ */ a("span", {
|
|
2299
2299
|
className: "sr-only",
|
|
@@ -2326,7 +2326,7 @@ function Dr({ className: e, align: t = "start", sideOffset: n = 4, ...r }) {
|
|
|
2326
2326
|
"data-slot": "dropdown-menu-content",
|
|
2327
2327
|
sideOffset: n,
|
|
2328
2328
|
align: t,
|
|
2329
|
-
className:
|
|
2329
|
+
className: P("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100 z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto data-[state=closed]:overflow-hidden", e),
|
|
2330
2330
|
...r
|
|
2331
2331
|
}) });
|
|
2332
2332
|
}
|
|
@@ -2341,7 +2341,7 @@ function V({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
|
2341
2341
|
"data-slot": "dropdown-menu-item",
|
|
2342
2342
|
"data-inset": t,
|
|
2343
2343
|
"data-variant": n,
|
|
2344
|
-
className:
|
|
2344
|
+
className: P("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm data-inset:ps-7 [&_svg:not([class*='size-'])]:size-4 group/dropdown-menu-item relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", e),
|
|
2345
2345
|
...r
|
|
2346
2346
|
});
|
|
2347
2347
|
}
|
|
@@ -2349,7 +2349,7 @@ function kr({ className: e, children: t, checked: n, inset: r, ...i }) {
|
|
|
2349
2349
|
return /* @__PURE__ */ o(D.CheckboxItem, {
|
|
2350
2350
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
2351
2351
|
"data-inset": r,
|
|
2352
|
-
className:
|
|
2352
|
+
className: P("focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pe-8 ps-1.5 text-sm data-inset:ps-7 [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", e),
|
|
2353
2353
|
checked: n,
|
|
2354
2354
|
...i,
|
|
2355
2355
|
children: [/* @__PURE__ */ a("span", {
|
|
@@ -2369,7 +2369,7 @@ function jr({ className: e, children: t, inset: n, ...r }) {
|
|
|
2369
2369
|
return /* @__PURE__ */ o(D.RadioItem, {
|
|
2370
2370
|
"data-slot": "dropdown-menu-radio-item",
|
|
2371
2371
|
"data-inset": n,
|
|
2372
|
-
className:
|
|
2372
|
+
className: P("focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pe-8 ps-1.5 text-sm data-inset:ps-7 [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", e),
|
|
2373
2373
|
...r,
|
|
2374
2374
|
children: [/* @__PURE__ */ a("span", {
|
|
2375
2375
|
className: "absolute end-2 flex items-center justify-center pointer-events-none",
|
|
@@ -2382,21 +2382,21 @@ function Mr({ className: e, inset: t, ...n }) {
|
|
|
2382
2382
|
return /* @__PURE__ */ a(D.Label, {
|
|
2383
2383
|
"data-slot": "dropdown-menu-label",
|
|
2384
2384
|
"data-inset": t,
|
|
2385
|
-
className:
|
|
2385
|
+
className: P("text-muted-foreground px-1.5 py-1 text-xs font-medium data-inset:ps-7", e),
|
|
2386
2386
|
...n
|
|
2387
2387
|
});
|
|
2388
2388
|
}
|
|
2389
2389
|
function Nr({ className: e, ...t }) {
|
|
2390
2390
|
return /* @__PURE__ */ a(D.Separator, {
|
|
2391
2391
|
"data-slot": "dropdown-menu-separator",
|
|
2392
|
-
className:
|
|
2392
|
+
className: P("bg-border -mx-1 my-1 h-px", e),
|
|
2393
2393
|
...t
|
|
2394
2394
|
});
|
|
2395
2395
|
}
|
|
2396
2396
|
function Pr({ className: e, ...t }) {
|
|
2397
2397
|
return /* @__PURE__ */ a("span", {
|
|
2398
2398
|
"data-slot": "dropdown-menu-shortcut",
|
|
2399
|
-
className:
|
|
2399
|
+
className: P("text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ms-auto text-xs tracking-widest", e),
|
|
2400
2400
|
...t
|
|
2401
2401
|
});
|
|
2402
2402
|
}
|
|
@@ -2410,7 +2410,7 @@ function Ir({ className: e, inset: t, children: n, ...r }) {
|
|
|
2410
2410
|
return /* @__PURE__ */ o(D.SubTrigger, {
|
|
2411
2411
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
2412
2412
|
"data-inset": t,
|
|
2413
|
-
className:
|
|
2413
|
+
className: P("focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm data-inset:ps-7 [&_svg:not([class*='size-'])]:size-4 flex cursor-default items-center outline-hidden select-none [&_svg]:pointer-events-none [&_svg]:shrink-0", e),
|
|
2414
2414
|
...r,
|
|
2415
2415
|
children: [n, /* @__PURE__ */ a(d, { className: "rtl:rotate-180 ms-auto" })]
|
|
2416
2416
|
});
|
|
@@ -2418,7 +2418,7 @@ function Ir({ className: e, inset: t, children: n, ...r }) {
|
|
|
2418
2418
|
function Lr({ className: e, ...t }) {
|
|
2419
2419
|
return /* @__PURE__ */ a(D.SubContent, {
|
|
2420
2420
|
"data-slot": "dropdown-menu-sub-content",
|
|
2421
|
-
className:
|
|
2421
|
+
className: P("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-[96px] rounded-md p-1 shadow-lg ring-1 duration-100 z-50 origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden", e),
|
|
2422
2422
|
...t
|
|
2423
2423
|
});
|
|
2424
2424
|
}
|
|
@@ -2463,7 +2463,7 @@ function Ur({ ...e }) {
|
|
|
2463
2463
|
function Wr({ className: e, ...t }) {
|
|
2464
2464
|
return /* @__PURE__ */ a(w.Overlay, {
|
|
2465
2465
|
"data-slot": "sheet-overlay",
|
|
2466
|
-
className:
|
|
2466
|
+
className: P("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50", e),
|
|
2467
2467
|
...t
|
|
2468
2468
|
});
|
|
2469
2469
|
}
|
|
@@ -2471,12 +2471,12 @@ function Gr({ className: e, children: t, side: n = "right", showCloseButton: r =
|
|
|
2471
2471
|
return /* @__PURE__ */ o(Ur, { children: [/* @__PURE__ */ a(Wr, {}), /* @__PURE__ */ o(w.Content, {
|
|
2472
2472
|
"data-slot": "sheet-content",
|
|
2473
2473
|
"data-side": n,
|
|
2474
|
-
className:
|
|
2474
|
+
className: P("bg-background data-open:animate-in data-closed:animate-out data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 fixed z-50 flex flex-col gap-4 bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-e data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-s data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm", e),
|
|
2475
2475
|
...i,
|
|
2476
2476
|
children: [t, r && /* @__PURE__ */ a(w.Close, {
|
|
2477
2477
|
"data-slot": "sheet-close",
|
|
2478
2478
|
asChild: !0,
|
|
2479
|
-
children: /* @__PURE__ */ o(
|
|
2479
|
+
children: /* @__PURE__ */ o(F, {
|
|
2480
2480
|
variant: "ghost",
|
|
2481
2481
|
className: "absolute top-3 end-3",
|
|
2482
2482
|
size: "icon-sm",
|
|
@@ -2491,28 +2491,28 @@ function Gr({ className: e, children: t, side: n = "right", showCloseButton: r =
|
|
|
2491
2491
|
function Kr({ className: e, ...t }) {
|
|
2492
2492
|
return /* @__PURE__ */ a("div", {
|
|
2493
2493
|
"data-slot": "sheet-header",
|
|
2494
|
-
className:
|
|
2494
|
+
className: P("gap-0.5 p-4 flex flex-col", e),
|
|
2495
2495
|
...t
|
|
2496
2496
|
});
|
|
2497
2497
|
}
|
|
2498
2498
|
function qr({ className: e, ...t }) {
|
|
2499
2499
|
return /* @__PURE__ */ a("div", {
|
|
2500
2500
|
"data-slot": "sheet-footer",
|
|
2501
|
-
className:
|
|
2501
|
+
className: P("gap-2 p-4 mt-auto flex flex-col", e),
|
|
2502
2502
|
...t
|
|
2503
2503
|
});
|
|
2504
2504
|
}
|
|
2505
2505
|
function Jr({ className: e, ...t }) {
|
|
2506
2506
|
return /* @__PURE__ */ a(w.Title, {
|
|
2507
2507
|
"data-slot": "sheet-title",
|
|
2508
|
-
className:
|
|
2508
|
+
className: P("text-foreground text-base font-medium", e),
|
|
2509
2509
|
...t
|
|
2510
2510
|
});
|
|
2511
2511
|
}
|
|
2512
2512
|
function Yr({ className: e, ...t }) {
|
|
2513
2513
|
return /* @__PURE__ */ a(w.Description, {
|
|
2514
2514
|
"data-slot": "sheet-description",
|
|
2515
|
-
className:
|
|
2515
|
+
className: P("text-muted-foreground text-sm", e),
|
|
2516
2516
|
...t
|
|
2517
2517
|
});
|
|
2518
2518
|
}
|
|
@@ -2521,7 +2521,7 @@ function Yr({ className: e, ...t }) {
|
|
|
2521
2521
|
function Xr({ className: e, ...t }) {
|
|
2522
2522
|
return /* @__PURE__ */ a("div", {
|
|
2523
2523
|
"data-slot": "skeleton",
|
|
2524
|
-
className:
|
|
2524
|
+
className: P("bg-muted rounded-md animate-pulse", e),
|
|
2525
2525
|
...t
|
|
2526
2526
|
});
|
|
2527
2527
|
}
|
|
@@ -2550,7 +2550,7 @@ function ei({ className: e, sideOffset: t = 0, children: n, ...r }) {
|
|
|
2550
2550
|
return /* @__PURE__ */ a(O.Portal, { children: /* @__PURE__ */ o(O.Content, {
|
|
2551
2551
|
"data-slot": "tooltip-content",
|
|
2552
2552
|
sideOffset: t,
|
|
2553
|
-
className:
|
|
2553
|
+
className: P("data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-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 rounded-md px-3 py-1.5 text-xs bg-foreground text-background z-50 w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin)", e),
|
|
2554
2554
|
...r,
|
|
2555
2555
|
children: [n, /* @__PURE__ */ a(O.Arrow, { className: "size-2.5 rotate-45 rounded-[2px] bg-foreground fill-foreground z-50 translate-y-[calc(-50%_-_2px)]" })]
|
|
2556
2556
|
}) });
|
|
@@ -2604,7 +2604,7 @@ function ci({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style
|
|
|
2604
2604
|
"--sidebar-width-icon": ai,
|
|
2605
2605
|
...i
|
|
2606
2606
|
},
|
|
2607
|
-
className:
|
|
2607
|
+
className: P("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", r),
|
|
2608
2608
|
...s,
|
|
2609
2609
|
children: o
|
|
2610
2610
|
})
|
|
@@ -2614,7 +2614,7 @@ function li({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
|
|
|
2614
2614
|
let { isMobile: l, state: u, openMobile: d, setOpenMobile: f } = H();
|
|
2615
2615
|
return n === "none" ? /* @__PURE__ */ a("div", {
|
|
2616
2616
|
"data-slot": "sidebar",
|
|
2617
|
-
className:
|
|
2617
|
+
className: P("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", r),
|
|
2618
2618
|
...c,
|
|
2619
2619
|
children: i
|
|
2620
2620
|
}) : l ? /* @__PURE__ */ a(Br, {
|
|
@@ -2646,11 +2646,11 @@ function li({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
|
|
|
2646
2646
|
"data-slot": "sidebar",
|
|
2647
2647
|
children: [/* @__PURE__ */ a("div", {
|
|
2648
2648
|
"data-slot": "sidebar-gap",
|
|
2649
|
-
className:
|
|
2649
|
+
className: P("transition-[width] duration-200 ease-linear relative w-(--sidebar-width) bg-transparent", "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)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
|
|
2650
2650
|
}), /* @__PURE__ */ a("div", {
|
|
2651
2651
|
"data-slot": "sidebar-container",
|
|
2652
2652
|
"data-side": e,
|
|
2653
|
-
className:
|
|
2653
|
+
className: P("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex", t === "floating" || t === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s", r),
|
|
2654
2654
|
...c,
|
|
2655
2655
|
children: /* @__PURE__ */ a("div", {
|
|
2656
2656
|
"data-sidebar": "sidebar",
|
|
@@ -2663,12 +2663,12 @@ function li({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
|
|
|
2663
2663
|
}
|
|
2664
2664
|
function ui({ className: e, onClick: t, ...n }) {
|
|
2665
2665
|
let { toggleSidebar: r } = H();
|
|
2666
|
-
return /* @__PURE__ */ o(
|
|
2666
|
+
return /* @__PURE__ */ o(F, {
|
|
2667
2667
|
"data-sidebar": "trigger",
|
|
2668
2668
|
"data-slot": "sidebar-trigger",
|
|
2669
2669
|
variant: "ghost",
|
|
2670
2670
|
size: "icon-sm",
|
|
2671
|
-
className:
|
|
2671
|
+
className: P(e),
|
|
2672
2672
|
onClick: (e) => {
|
|
2673
2673
|
t?.(e), r();
|
|
2674
2674
|
},
|
|
@@ -2688,14 +2688,14 @@ function di({ className: e, ...t }) {
|
|
|
2688
2688
|
tabIndex: -1,
|
|
2689
2689
|
onClick: n,
|
|
2690
2690
|
title: "Toggle Sidebar",
|
|
2691
|
-
className:
|
|
2691
|
+
className: P("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-[2px] sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2", "in-data-[side=left]:cursor-w-resize rtl:in-data-[side=left]:cursor-e-resize in-data-[side=right]:cursor-e-resize rtl:in-data-[side=right]:cursor-w-resize", "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize rtl:[[data-side=left][data-state=collapsed]_&]:cursor-w-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize rtl:[[data-side=right][data-state=collapsed]_&]:cursor-e-resize", "hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 rtl:group-data-[collapsible=offcanvas]:-translate-x-0 group-data-[collapsible=offcanvas]:after:start-full", "[[data-side=left][data-collapsible=offcanvas]_&]:-end-2", "[[data-side=right][data-collapsible=offcanvas]_&]:-start-2", e),
|
|
2692
2692
|
...t
|
|
2693
2693
|
});
|
|
2694
2694
|
}
|
|
2695
2695
|
function fi({ className: e, ...t }) {
|
|
2696
2696
|
return /* @__PURE__ */ a("main", {
|
|
2697
2697
|
"data-slot": "sidebar-inset",
|
|
2698
|
-
className:
|
|
2698
|
+
className: P("bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2 relative flex w-full flex-1 flex-col", e),
|
|
2699
2699
|
...t
|
|
2700
2700
|
});
|
|
2701
2701
|
}
|
|
@@ -2703,7 +2703,7 @@ function pi({ className: e, ...t }) {
|
|
|
2703
2703
|
return /* @__PURE__ */ a(B, {
|
|
2704
2704
|
"data-slot": "sidebar-input",
|
|
2705
2705
|
"data-sidebar": "input",
|
|
2706
|
-
className:
|
|
2706
|
+
className: P("bg-background h-8 w-full shadow-none", e),
|
|
2707
2707
|
...t
|
|
2708
2708
|
});
|
|
2709
2709
|
}
|
|
@@ -2711,7 +2711,7 @@ function mi({ className: e, ...t }) {
|
|
|
2711
2711
|
return /* @__PURE__ */ a("div", {
|
|
2712
2712
|
"data-slot": "sidebar-header",
|
|
2713
2713
|
"data-sidebar": "header",
|
|
2714
|
-
className:
|
|
2714
|
+
className: P("gap-2 p-2 flex flex-col", e),
|
|
2715
2715
|
...t
|
|
2716
2716
|
});
|
|
2717
2717
|
}
|
|
@@ -2719,15 +2719,15 @@ function hi({ className: e, ...t }) {
|
|
|
2719
2719
|
return /* @__PURE__ */ a("div", {
|
|
2720
2720
|
"data-slot": "sidebar-footer",
|
|
2721
2721
|
"data-sidebar": "footer",
|
|
2722
|
-
className:
|
|
2722
|
+
className: P("gap-2 p-2 flex flex-col", e),
|
|
2723
2723
|
...t
|
|
2724
2724
|
});
|
|
2725
2725
|
}
|
|
2726
2726
|
function gi({ className: e, ...t }) {
|
|
2727
|
-
return /* @__PURE__ */ a(
|
|
2727
|
+
return /* @__PURE__ */ a(L, {
|
|
2728
2728
|
"data-slot": "sidebar-separator",
|
|
2729
2729
|
"data-sidebar": "separator",
|
|
2730
|
-
className:
|
|
2730
|
+
className: P("bg-sidebar-border mx-2 w-auto", e),
|
|
2731
2731
|
...t
|
|
2732
2732
|
});
|
|
2733
2733
|
}
|
|
@@ -2735,7 +2735,7 @@ function _i({ className: e, ...t }) {
|
|
|
2735
2735
|
return /* @__PURE__ */ a("div", {
|
|
2736
2736
|
"data-slot": "sidebar-content",
|
|
2737
2737
|
"data-sidebar": "content",
|
|
2738
|
-
className:
|
|
2738
|
+
className: P("no-scrollbar gap-0 flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden", e),
|
|
2739
2739
|
...t
|
|
2740
2740
|
});
|
|
2741
2741
|
}
|
|
@@ -2743,7 +2743,7 @@ function vi({ className: e, ...t }) {
|
|
|
2743
2743
|
return /* @__PURE__ */ a("div", {
|
|
2744
2744
|
"data-slot": "sidebar-group",
|
|
2745
2745
|
"data-sidebar": "group",
|
|
2746
|
-
className:
|
|
2746
|
+
className: P("p-2 relative flex w-full min-w-0 flex-col", e),
|
|
2747
2747
|
...t
|
|
2748
2748
|
});
|
|
2749
2749
|
}
|
|
@@ -2751,7 +2751,7 @@ function yi({ className: e, asChild: t = !1, ...n }) {
|
|
|
2751
2751
|
return /* @__PURE__ */ a(t ? C : "div", {
|
|
2752
2752
|
"data-slot": "sidebar-group-label",
|
|
2753
2753
|
"data-sidebar": "group-label",
|
|
2754
|
-
className:
|
|
2754
|
+
className: P("text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 flex shrink-0 items-center outline-hidden [&>svg]:shrink-0", e),
|
|
2755
2755
|
...n
|
|
2756
2756
|
});
|
|
2757
2757
|
}
|
|
@@ -2759,7 +2759,7 @@ function bi({ className: e, asChild: t = !1, ...n }) {
|
|
|
2759
2759
|
return /* @__PURE__ */ a(t ? C : "button", {
|
|
2760
2760
|
"data-slot": "sidebar-group-action",
|
|
2761
2761
|
"data-sidebar": "group-action",
|
|
2762
|
-
className:
|
|
2762
|
+
className: P("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 end-3 w-5 rounded-md p-0 focus-visible:ring-2 [&>svg]:size-4 flex aspect-square items-center justify-center outline-hidden transition-transform group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 md:after:hidden [&>svg]:shrink-0", e),
|
|
2763
2763
|
...n
|
|
2764
2764
|
});
|
|
2765
2765
|
}
|
|
@@ -2767,7 +2767,7 @@ function xi({ className: e, ...t }) {
|
|
|
2767
2767
|
return /* @__PURE__ */ a("div", {
|
|
2768
2768
|
"data-slot": "sidebar-group-content",
|
|
2769
2769
|
"data-sidebar": "group-content",
|
|
2770
|
-
className:
|
|
2770
|
+
className: P("text-sm w-full", e),
|
|
2771
2771
|
...t
|
|
2772
2772
|
});
|
|
2773
2773
|
}
|
|
@@ -2775,7 +2775,7 @@ function Si({ className: e, ...t }) {
|
|
|
2775
2775
|
return /* @__PURE__ */ a("ul", {
|
|
2776
2776
|
"data-slot": "sidebar-menu",
|
|
2777
2777
|
"data-sidebar": "menu",
|
|
2778
|
-
className:
|
|
2778
|
+
className: P("gap-0 flex w-full min-w-0 flex-col", e),
|
|
2779
2779
|
...t
|
|
2780
2780
|
});
|
|
2781
2781
|
}
|
|
@@ -2783,7 +2783,7 @@ function U({ className: e, ...t }) {
|
|
|
2783
2783
|
return /* @__PURE__ */ a("li", {
|
|
2784
2784
|
"data-slot": "sidebar-menu-item",
|
|
2785
2785
|
"data-sidebar": "menu-item",
|
|
2786
|
-
className:
|
|
2786
|
+
className: P("group/menu-item relative", e),
|
|
2787
2787
|
...t
|
|
2788
2788
|
});
|
|
2789
2789
|
}
|
|
@@ -2810,7 +2810,7 @@ function W({ asChild: e = !1, isActive: t = !1, variant: n = "default", size: r
|
|
|
2810
2810
|
"data-sidebar": "menu-button",
|
|
2811
2811
|
"data-size": r,
|
|
2812
2812
|
"data-active": t,
|
|
2813
|
-
className:
|
|
2813
|
+
className: P(Ci({
|
|
2814
2814
|
variant: n,
|
|
2815
2815
|
size: r
|
|
2816
2816
|
}), s),
|
|
@@ -2830,7 +2830,7 @@ function wi({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }) {
|
|
|
2830
2830
|
return /* @__PURE__ */ a(t ? C : "button", {
|
|
2831
2831
|
"data-slot": "sidebar-menu-action",
|
|
2832
2832
|
"data-sidebar": "menu-action",
|
|
2833
|
-
className:
|
|
2833
|
+
className: P("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 end-1 aspect-square w-5 rounded-md p-0 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 focus-visible:ring-2 [&>svg]:size-4 flex items-center justify-center outline-hidden transition-transform group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 md:after:hidden [&>svg]:shrink-0", n && "peer-data-active/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 aria-expanded:opacity-100 md:opacity-0", e),
|
|
2834
2834
|
...r
|
|
2835
2835
|
});
|
|
2836
2836
|
}
|
|
@@ -2838,7 +2838,7 @@ function Ti({ className: e, ...t }) {
|
|
|
2838
2838
|
return /* @__PURE__ */ a("div", {
|
|
2839
2839
|
"data-slot": "sidebar-menu-badge",
|
|
2840
2840
|
"data-sidebar": "menu-badge",
|
|
2841
|
-
className:
|
|
2841
|
+
className: P("text-sidebar-foreground peer-hover/menu-button:text-sidebar-accent-foreground peer-data-active/menu-button:text-sidebar-accent-foreground pointer-events-none absolute end-1 h-5 min-w-5 rounded-md px-1 text-xs font-medium peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 flex items-center justify-center tabular-nums select-none group-data-[collapsible=icon]:hidden", e),
|
|
2842
2842
|
...t
|
|
2843
2843
|
});
|
|
2844
2844
|
}
|
|
@@ -2847,7 +2847,7 @@ function Ei({ className: e, showIcon: t = !1, ...n }) {
|
|
|
2847
2847
|
return /* @__PURE__ */ o("div", {
|
|
2848
2848
|
"data-slot": "sidebar-menu-skeleton",
|
|
2849
2849
|
"data-sidebar": "menu-skeleton",
|
|
2850
|
-
className:
|
|
2850
|
+
className: P("h-8 gap-2 rounded-md px-2 flex items-center", e),
|
|
2851
2851
|
...n,
|
|
2852
2852
|
children: [t && /* @__PURE__ */ a(Xr, {
|
|
2853
2853
|
className: "size-4 rounded-md",
|
|
@@ -2863,7 +2863,7 @@ function Di({ className: e, ...t }) {
|
|
|
2863
2863
|
return /* @__PURE__ */ a("ul", {
|
|
2864
2864
|
"data-slot": "sidebar-menu-sub",
|
|
2865
2865
|
"data-sidebar": "menu-sub",
|
|
2866
|
-
className:
|
|
2866
|
+
className: P("border-sidebar-border mx-3.5 translate-x-px rtl:-translate-x-px gap-1 border-s px-2.5 py-0.5 group-data-[collapsible=icon]:hidden flex min-w-0 flex-col", e),
|
|
2867
2867
|
...t
|
|
2868
2868
|
});
|
|
2869
2869
|
}
|
|
@@ -2871,7 +2871,7 @@ function Oi({ className: e, ...t }) {
|
|
|
2871
2871
|
return /* @__PURE__ */ a("li", {
|
|
2872
2872
|
"data-slot": "sidebar-menu-sub-item",
|
|
2873
2873
|
"data-sidebar": "menu-sub-item",
|
|
2874
|
-
className:
|
|
2874
|
+
className: P("group/menu-sub-item relative", e),
|
|
2875
2875
|
...t
|
|
2876
2876
|
});
|
|
2877
2877
|
}
|
|
@@ -2881,7 +2881,7 @@ function ki({ asChild: e = !1, size: t = "md", isActive: n = !1, className: r, .
|
|
|
2881
2881
|
"data-sidebar": "menu-sub-button",
|
|
2882
2882
|
"data-size": t,
|
|
2883
2883
|
"data-active": n,
|
|
2884
|
-
className:
|
|
2884
|
+
className: P("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 data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground h-7 gap-2 rounded-md px-2 focus-visible:ring-2 data-[size=md]:text-sm data-[size=sm]:text-xs [&>svg]:size-4 flex min-w-0 -translate-x-px rtl:translate-x-px items-center overflow-hidden outline-hidden group-data-[collapsible=icon]:hidden disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:shrink-0", r),
|
|
2885
2885
|
...i
|
|
2886
2886
|
});
|
|
2887
2887
|
}
|
|
@@ -2946,7 +2946,7 @@ function ji({ onEditClicked: e, onDeleteClicked: t, type: n, permissions: r }) {
|
|
|
2946
2946
|
dir: "rtl",
|
|
2947
2947
|
children: [/* @__PURE__ */ a(Er, {
|
|
2948
2948
|
asChild: !0,
|
|
2949
|
-
children: /* @__PURE__ */ a(
|
|
2949
|
+
children: /* @__PURE__ */ a(F, {
|
|
2950
2950
|
variant: "ghost",
|
|
2951
2951
|
className: "h-8 w-8 p-0",
|
|
2952
2952
|
children: /* @__PURE__ */ a(se, { className: "h-4 w-4" })
|
|
@@ -3028,18 +3028,18 @@ function Mi({ permissions: e, useSlice: t, entityName: n, title: r, addNewItemTi
|
|
|
3028
3028
|
currentPage: d.currentPage || 1,
|
|
3029
3029
|
onPageChanged: (e) => g(l.setCurrentPage(e))
|
|
3030
3030
|
}),
|
|
3031
|
-
v && e.updatePermission && /* @__PURE__ */ a(
|
|
3031
|
+
v && e.updatePermission && /* @__PURE__ */ a(I, {
|
|
3032
3032
|
open: v,
|
|
3033
3033
|
onOpenChange: (e) => g(l.setIsChangeDialogOpen(e)),
|
|
3034
3034
|
children: m
|
|
3035
3035
|
}),
|
|
3036
|
-
ee && e.deletePermission && /* @__PURE__ */ a(
|
|
3036
|
+
ee && e.deletePermission && /* @__PURE__ */ a(I, {
|
|
3037
3037
|
open: ee,
|
|
3038
3038
|
onOpenChange: (e) => g(l.setIsDeleteDialogOpen(e)),
|
|
3039
|
-
children: /* @__PURE__ */ a(
|
|
3039
|
+
children: /* @__PURE__ */ a(dt, {
|
|
3040
3040
|
dir: "rtl",
|
|
3041
3041
|
className: "sm:max-w-sm",
|
|
3042
|
-
children: /* @__PURE__ */ a(
|
|
3042
|
+
children: /* @__PURE__ */ a(_t, {
|
|
3043
3043
|
entityName: n,
|
|
3044
3044
|
id: _?.id ?? 0,
|
|
3045
3045
|
service: u,
|
|
@@ -3061,7 +3061,7 @@ function Ni({ className: e, ...t }) {
|
|
|
3061
3061
|
return /* @__PURE__ */ a("div", {
|
|
3062
3062
|
"data-slot": "input-group",
|
|
3063
3063
|
role: "group",
|
|
3064
|
-
className:
|
|
3064
|
+
className: P("border-input dark:bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-disabled:bg-input/50 dark:has-disabled:bg-input/80 h-8 rounded-lg border transition-colors in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-3 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pe-1.5 has-[>[data-align=inline-start]]:[&>input]:ps-1.5 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto", e),
|
|
3065
3065
|
...t
|
|
3066
3066
|
});
|
|
3067
3067
|
}
|
|
@@ -3079,7 +3079,7 @@ function Fi({ className: e, align: t = "inline-start", ...n }) {
|
|
|
3079
3079
|
role: "group",
|
|
3080
3080
|
"data-slot": "input-group-addon",
|
|
3081
3081
|
"data-align": t,
|
|
3082
|
-
className:
|
|
3082
|
+
className: P(Pi({ align: t }), e),
|
|
3083
3083
|
onClick: (e) => {
|
|
3084
3084
|
e.target.closest("button") || e.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
3085
3085
|
},
|
|
@@ -3096,31 +3096,31 @@ var Ii = S("gap-2 text-sm shadow-none flex items-center", {
|
|
|
3096
3096
|
defaultVariants: { size: "xs" }
|
|
3097
3097
|
});
|
|
3098
3098
|
function Li({ className: e, type: t = "button", variant: n = "ghost", size: r = "xs", ...i }) {
|
|
3099
|
-
return /* @__PURE__ */ a(
|
|
3099
|
+
return /* @__PURE__ */ a(F, {
|
|
3100
3100
|
type: t,
|
|
3101
3101
|
"data-size": r,
|
|
3102
3102
|
variant: n,
|
|
3103
|
-
className:
|
|
3103
|
+
className: P(Ii({ size: r }), e),
|
|
3104
3104
|
...i
|
|
3105
3105
|
});
|
|
3106
3106
|
}
|
|
3107
3107
|
function Ri({ className: e, ...t }) {
|
|
3108
3108
|
return /* @__PURE__ */ a("span", {
|
|
3109
|
-
className:
|
|
3109
|
+
className: P("text-muted-foreground gap-2 text-sm [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none", e),
|
|
3110
3110
|
...t
|
|
3111
3111
|
});
|
|
3112
3112
|
}
|
|
3113
3113
|
function zi({ className: e, ...t }) {
|
|
3114
3114
|
return /* @__PURE__ */ a(B, {
|
|
3115
3115
|
"data-slot": "input-group-control",
|
|
3116
|
-
className:
|
|
3116
|
+
className: P("rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent flex-1", e),
|
|
3117
3117
|
...t
|
|
3118
3118
|
});
|
|
3119
3119
|
}
|
|
3120
3120
|
function Bi({ className: e, ...t }) {
|
|
3121
3121
|
return /* @__PURE__ */ a(Tn, {
|
|
3122
3122
|
"data-slot": "input-group-control",
|
|
3123
|
-
className:
|
|
3123
|
+
className: P("rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent flex-1 resize-none", e),
|
|
3124
3124
|
...t
|
|
3125
3125
|
});
|
|
3126
3126
|
}
|
|
@@ -3129,18 +3129,18 @@ function Bi({ className: e, ...t }) {
|
|
|
3129
3129
|
function Vi({ className: e, ...t }) {
|
|
3130
3130
|
return /* @__PURE__ */ a(k, {
|
|
3131
3131
|
"data-slot": "command",
|
|
3132
|
-
className:
|
|
3132
|
+
className: P("bg-popover text-popover-foreground rounded-xl! p-1 flex size-full flex-col overflow-hidden", e),
|
|
3133
3133
|
...t
|
|
3134
3134
|
});
|
|
3135
3135
|
}
|
|
3136
3136
|
function Hi({ title: e = "Command Palette", description: t = "Search for a command to run...", children: n, className: r, showCloseButton: i = !1, ...s }) {
|
|
3137
|
-
return /* @__PURE__ */ o(
|
|
3137
|
+
return /* @__PURE__ */ o(I, {
|
|
3138
3138
|
...s,
|
|
3139
|
-
children: [/* @__PURE__ */ o(
|
|
3139
|
+
children: [/* @__PURE__ */ o(ft, {
|
|
3140
3140
|
className: "sr-only",
|
|
3141
|
-
children: [/* @__PURE__ */ a(
|
|
3142
|
-
}), /* @__PURE__ */ a(
|
|
3143
|
-
className:
|
|
3141
|
+
children: [/* @__PURE__ */ a(mt, { children: e }), /* @__PURE__ */ a(ht, { children: t })]
|
|
3142
|
+
}), /* @__PURE__ */ a(dt, {
|
|
3143
|
+
className: P("rounded-xl! top-1/3 translate-y-0 overflow-hidden p-0", r),
|
|
3144
3144
|
showCloseButton: i,
|
|
3145
3145
|
children: n
|
|
3146
3146
|
})]
|
|
@@ -3154,7 +3154,7 @@ function Ui({ className: e, ...t }) {
|
|
|
3154
3154
|
className: "bg-input/30 border-input/30 h-8! rounded-lg! shadow-none! *:data-[slot=input-group-addon]:ps-2!",
|
|
3155
3155
|
children: [/* @__PURE__ */ a(k.Input, {
|
|
3156
3156
|
"data-slot": "command-input",
|
|
3157
|
-
className:
|
|
3157
|
+
className: P("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
3158
3158
|
...t
|
|
3159
3159
|
}), /* @__PURE__ */ a(Fi, { children: /* @__PURE__ */ a(ge, { className: "size-4 shrink-0 opacity-50" }) })]
|
|
3160
3160
|
})
|
|
@@ -3163,35 +3163,35 @@ function Ui({ className: e, ...t }) {
|
|
|
3163
3163
|
function Wi({ className: e, ...t }) {
|
|
3164
3164
|
return /* @__PURE__ */ a(k.List, {
|
|
3165
3165
|
"data-slot": "command-list",
|
|
3166
|
-
className:
|
|
3166
|
+
className: P("no-scrollbar max-h-72 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto", e),
|
|
3167
3167
|
...t
|
|
3168
3168
|
});
|
|
3169
3169
|
}
|
|
3170
3170
|
function Gi({ className: e, ...t }) {
|
|
3171
3171
|
return /* @__PURE__ */ a(k.Empty, {
|
|
3172
3172
|
"data-slot": "command-empty",
|
|
3173
|
-
className:
|
|
3173
|
+
className: P("py-6 text-center text-sm", e),
|
|
3174
3174
|
...t
|
|
3175
3175
|
});
|
|
3176
3176
|
}
|
|
3177
3177
|
function Ki({ className: e, ...t }) {
|
|
3178
3178
|
return /* @__PURE__ */ a(k.Group, {
|
|
3179
3179
|
"data-slot": "command-group",
|
|
3180
|
-
className:
|
|
3180
|
+
className: P("text-foreground **:[[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium", e),
|
|
3181
3181
|
...t
|
|
3182
3182
|
});
|
|
3183
3183
|
}
|
|
3184
3184
|
function qi({ className: e, ...t }) {
|
|
3185
3185
|
return /* @__PURE__ */ a(k.Separator, {
|
|
3186
3186
|
"data-slot": "command-separator",
|
|
3187
|
-
className:
|
|
3187
|
+
className: P("bg-border -mx-1 h-px", e),
|
|
3188
3188
|
...t
|
|
3189
3189
|
});
|
|
3190
3190
|
}
|
|
3191
3191
|
function Ji({ className: e, children: t, ...n }) {
|
|
3192
3192
|
return /* @__PURE__ */ o(k.Item, {
|
|
3193
3193
|
"data-slot": "command-item",
|
|
3194
|
-
className:
|
|
3194
|
+
className: P("data-selected:bg-muted data-selected:text-foreground data-selected:*:[svg]:text-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! [&_svg:not([class*='size-'])]:size-4 group/command-item data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", e),
|
|
3195
3195
|
...n,
|
|
3196
3196
|
children: [t, /* @__PURE__ */ a(c, { className: "ms-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100" })]
|
|
3197
3197
|
});
|
|
@@ -3199,7 +3199,7 @@ function Ji({ className: e, children: t, ...n }) {
|
|
|
3199
3199
|
function Yi({ className: e, ...t }) {
|
|
3200
3200
|
return /* @__PURE__ */ a("span", {
|
|
3201
3201
|
"data-slot": "command-shortcut",
|
|
3202
|
-
className:
|
|
3202
|
+
className: P("text-muted-foreground group-data-selected/command-item:text-foreground ms-auto text-xs tracking-widest", e),
|
|
3203
3203
|
...t
|
|
3204
3204
|
});
|
|
3205
3205
|
}
|
|
@@ -3213,12 +3213,12 @@ function Xi({ items: e, itemLabelKey: t, itemValueKey: n, value: r, onValueChang
|
|
|
3213
3213
|
modal: !0,
|
|
3214
3214
|
children: [/* @__PURE__ */ a(jt, {
|
|
3215
3215
|
asChild: !0,
|
|
3216
|
-
children: /* @__PURE__ */ o(
|
|
3216
|
+
children: /* @__PURE__ */ o(F, {
|
|
3217
3217
|
variant: "outline",
|
|
3218
3218
|
role: "combobox",
|
|
3219
3219
|
"aria-expanded": m,
|
|
3220
3220
|
disabled: c,
|
|
3221
|
-
className:
|
|
3221
|
+
className: P("w-full justify-between px-3 font-normal", !r && "text-muted-foreground", l),
|
|
3222
3222
|
children: [/* @__PURE__ */ a("span", {
|
|
3223
3223
|
className: "truncate text-start",
|
|
3224
3224
|
children: _
|
|
@@ -3246,7 +3246,7 @@ function Xi({ items: e, itemLabelKey: t, itemValueKey: n, value: r, onValueChang
|
|
|
3246
3246
|
i(c), h(!1);
|
|
3247
3247
|
},
|
|
3248
3248
|
className: "cursor-pointer",
|
|
3249
|
-
children: [/* @__PURE__ */ a(s, { className:
|
|
3249
|
+
children: [/* @__PURE__ */ a(s, { className: P("h-4 w-4 ltr:mr-2 rtl:ml-2", r === c ? "opacity-100" : "opacity-0") }), l]
|
|
3250
3250
|
}, c);
|
|
3251
3251
|
}) })
|
|
3252
3252
|
})
|
|
@@ -3260,42 +3260,42 @@ function Zi({ className: e, size: t = "default", ...n }) {
|
|
|
3260
3260
|
return /* @__PURE__ */ a(Ve.Root, {
|
|
3261
3261
|
"data-slot": "avatar",
|
|
3262
3262
|
"data-size": t,
|
|
3263
|
-
className:
|
|
3263
|
+
className: P("size-8 rounded-full after:rounded-full data-[size=lg]:size-10 data-[size=sm]:size-6 after:border-border group/avatar relative flex shrink-0 select-none after:absolute after:inset-0 after:border after:mix-blend-darken dark:after:mix-blend-lighten", e),
|
|
3264
3264
|
...n
|
|
3265
3265
|
});
|
|
3266
3266
|
}
|
|
3267
3267
|
function Qi({ className: e, ...t }) {
|
|
3268
3268
|
return console.log(t), /* @__PURE__ */ a(Ve.Image, {
|
|
3269
3269
|
"data-slot": "avatar-image",
|
|
3270
|
-
className:
|
|
3270
|
+
className: P("rounded-full aspect-square size-full object-cover", e),
|
|
3271
3271
|
...t
|
|
3272
3272
|
});
|
|
3273
3273
|
}
|
|
3274
3274
|
function $i({ className: e, ...t }) {
|
|
3275
3275
|
return /* @__PURE__ */ a(Ve.Fallback, {
|
|
3276
3276
|
"data-slot": "avatar-fallback",
|
|
3277
|
-
className:
|
|
3277
|
+
className: P("bg-muted text-muted-foreground rounded-full flex size-full items-center justify-center text-sm group-data-[size=sm]/avatar:text-xs", e),
|
|
3278
3278
|
...t
|
|
3279
3279
|
});
|
|
3280
3280
|
}
|
|
3281
3281
|
function ea({ className: e, ...t }) {
|
|
3282
3282
|
return /* @__PURE__ */ a("span", {
|
|
3283
3283
|
"data-slot": "avatar-badge",
|
|
3284
|
-
className:
|
|
3284
|
+
className: P("bg-primary text-primary-foreground ring-background absolute end-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-blend-color ring-2 select-none", "group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden", "group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2", "group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2", e),
|
|
3285
3285
|
...t
|
|
3286
3286
|
});
|
|
3287
3287
|
}
|
|
3288
3288
|
function ta({ className: e, ...t }) {
|
|
3289
3289
|
return /* @__PURE__ */ a("div", {
|
|
3290
3290
|
"data-slot": "avatar-group",
|
|
3291
|
-
className:
|
|
3291
|
+
className: P("*:data-[slot=avatar]:ring-background group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2", e),
|
|
3292
3292
|
...t
|
|
3293
3293
|
});
|
|
3294
3294
|
}
|
|
3295
3295
|
function na({ className: e, ...t }) {
|
|
3296
3296
|
return /* @__PURE__ */ a("div", {
|
|
3297
3297
|
"data-slot": "avatar-group-count",
|
|
3298
|
-
className:
|
|
3298
|
+
className: P("bg-muted text-muted-foreground size-8 rounded-full text-sm group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3 ring-background relative flex shrink-0 items-center justify-center ring-2", e),
|
|
3299
3299
|
...t
|
|
3300
3300
|
});
|
|
3301
3301
|
}
|
|
@@ -3371,9 +3371,14 @@ var oa = Te({
|
|
|
3371
3371
|
theme: "system",
|
|
3372
3372
|
setTheme: () => null
|
|
3373
3373
|
});
|
|
3374
|
-
function sa({ children: e, defaultTheme: t = "system", storageKey: n = "
|
|
3375
|
-
let [i, o] = x(
|
|
3374
|
+
function sa({ children: e, defaultTheme: t = "system", storageKey: n = "yusr-theme", ...r }) {
|
|
3375
|
+
let [i, o] = x(t), [s, c] = x(!1);
|
|
3376
3376
|
De(() => {
|
|
3377
|
+
c(!0);
|
|
3378
|
+
let e = localStorage.getItem(n);
|
|
3379
|
+
e && o(e);
|
|
3380
|
+
}, [n]), De(() => {
|
|
3381
|
+
if (!s) return;
|
|
3377
3382
|
let e = window.document.documentElement;
|
|
3378
3383
|
if (e.classList.remove("light", "dark"), i === "system") {
|
|
3379
3384
|
let t = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
@@ -3381,8 +3386,8 @@ function sa({ children: e, defaultTheme: t = "system", storageKey: n = "vite-ui-
|
|
|
3381
3386
|
return;
|
|
3382
3387
|
}
|
|
3383
3388
|
e.classList.add(i);
|
|
3384
|
-
}, [i]);
|
|
3385
|
-
let
|
|
3389
|
+
}, [i, s]);
|
|
3390
|
+
let l = {
|
|
3386
3391
|
theme: i,
|
|
3387
3392
|
setTheme: (e) => {
|
|
3388
3393
|
localStorage.setItem(n, e), o(e);
|
|
@@ -3390,7 +3395,7 @@ function sa({ children: e, defaultTheme: t = "system", storageKey: n = "vite-ui-
|
|
|
3390
3395
|
};
|
|
3391
3396
|
return /* @__PURE__ */ a(oa.Provider, {
|
|
3392
3397
|
...r,
|
|
3393
|
-
value:
|
|
3398
|
+
value: l,
|
|
3394
3399
|
children: e
|
|
3395
3400
|
});
|
|
3396
3401
|
}
|
|
@@ -3416,7 +3421,7 @@ function la({ variant: e = "icon" }) {
|
|
|
3416
3421
|
className: "font-medium",
|
|
3417
3422
|
children: "تغيير المظهر"
|
|
3418
3423
|
})]
|
|
3419
|
-
}) : /* @__PURE__ */ o(
|
|
3424
|
+
}) : /* @__PURE__ */ o(F, {
|
|
3420
3425
|
variant: "ghost",
|
|
3421
3426
|
size: "icon",
|
|
3422
3427
|
className: "h-8 w-8",
|
|
@@ -3548,7 +3553,7 @@ function ha({ ...e }) {
|
|
|
3548
3553
|
function ga({ className: e, ...t }) {
|
|
3549
3554
|
return /* @__PURE__ */ a(A.Overlay, {
|
|
3550
3555
|
"data-slot": "alert-dialog-overlay",
|
|
3551
|
-
className:
|
|
3556
|
+
className: P("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50", e),
|
|
3552
3557
|
...t
|
|
3553
3558
|
});
|
|
3554
3559
|
}
|
|
@@ -3556,65 +3561,65 @@ function _a({ className: e, size: t = "default", ...n }) {
|
|
|
3556
3561
|
return /* @__PURE__ */ o(ha, { children: [/* @__PURE__ */ a(ga, {}), /* @__PURE__ */ a(A.Content, {
|
|
3557
3562
|
"data-slot": "alert-dialog-content",
|
|
3558
3563
|
"data-size": t,
|
|
3559
|
-
className:
|
|
3564
|
+
className: P("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 bg-background ring-foreground/10 gap-4 rounded-xl p-4 ring-1 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm group/alert-dialog-content fixed top-1/2 start-1/2 z-50 grid w-full -translate-x-1/2 rtl:translate-x-1/2 -translate-y-1/2 outline-none", e),
|
|
3560
3565
|
...n
|
|
3561
3566
|
})] });
|
|
3562
3567
|
}
|
|
3563
3568
|
function va({ className: e, ...t }) {
|
|
3564
3569
|
return /* @__PURE__ */ a("div", {
|
|
3565
3570
|
"data-slot": "alert-dialog-header",
|
|
3566
|
-
className:
|
|
3571
|
+
className: P("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-start sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", e),
|
|
3567
3572
|
...t
|
|
3568
3573
|
});
|
|
3569
3574
|
}
|
|
3570
3575
|
function ya({ className: e, ...t }) {
|
|
3571
3576
|
return /* @__PURE__ */ a("div", {
|
|
3572
3577
|
"data-slot": "alert-dialog-footer",
|
|
3573
|
-
className:
|
|
3578
|
+
className: P("bg-muted/50 -mx-4 -mb-4 rounded-b-xl border-t p-4 flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", e),
|
|
3574
3579
|
...t
|
|
3575
3580
|
});
|
|
3576
3581
|
}
|
|
3577
3582
|
function ba({ className: e, ...t }) {
|
|
3578
3583
|
return /* @__PURE__ */ a("div", {
|
|
3579
3584
|
"data-slot": "alert-dialog-media",
|
|
3580
|
-
className:
|
|
3585
|
+
className: P("bg-muted mb-2 inline-flex size-10 items-center justify-center rounded-md sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-6", e),
|
|
3581
3586
|
...t
|
|
3582
3587
|
});
|
|
3583
3588
|
}
|
|
3584
3589
|
function xa({ className: e, ...t }) {
|
|
3585
3590
|
return /* @__PURE__ */ a(A.Title, {
|
|
3586
3591
|
"data-slot": "alert-dialog-title",
|
|
3587
|
-
className:
|
|
3592
|
+
className: P("text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", e),
|
|
3588
3593
|
...t
|
|
3589
3594
|
});
|
|
3590
3595
|
}
|
|
3591
3596
|
function Sa({ className: e, ...t }) {
|
|
3592
3597
|
return /* @__PURE__ */ a(A.Description, {
|
|
3593
3598
|
"data-slot": "alert-dialog-description",
|
|
3594
|
-
className:
|
|
3599
|
+
className: P("text-muted-foreground *:[a]:hover:text-foreground text-sm text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3", e),
|
|
3595
3600
|
...t
|
|
3596
3601
|
});
|
|
3597
3602
|
}
|
|
3598
3603
|
function Ca({ className: e, variant: t = "default", size: n = "default", ...r }) {
|
|
3599
|
-
return /* @__PURE__ */ a(
|
|
3604
|
+
return /* @__PURE__ */ a(F, {
|
|
3600
3605
|
variant: t,
|
|
3601
3606
|
size: n,
|
|
3602
3607
|
asChild: !0,
|
|
3603
3608
|
children: /* @__PURE__ */ a(A.Action, {
|
|
3604
3609
|
"data-slot": "alert-dialog-action",
|
|
3605
|
-
className:
|
|
3610
|
+
className: P(e),
|
|
3606
3611
|
...r
|
|
3607
3612
|
})
|
|
3608
3613
|
});
|
|
3609
3614
|
}
|
|
3610
3615
|
function wa({ className: e, variant: t = "outline", size: n = "default", ...r }) {
|
|
3611
|
-
return /* @__PURE__ */ a(
|
|
3616
|
+
return /* @__PURE__ */ a(F, {
|
|
3612
3617
|
variant: t,
|
|
3613
3618
|
size: n,
|
|
3614
3619
|
asChild: !0,
|
|
3615
3620
|
children: /* @__PURE__ */ a(A.Cancel, {
|
|
3616
3621
|
"data-slot": "alert-dialog-cancel",
|
|
3617
|
-
className:
|
|
3622
|
+
className: P(e),
|
|
3618
3623
|
...r
|
|
3619
3624
|
})
|
|
3620
3625
|
});
|
|
@@ -3632,28 +3637,28 @@ function Ea({ className: e, variant: t, ...n }) {
|
|
|
3632
3637
|
return /* @__PURE__ */ a("div", {
|
|
3633
3638
|
"data-slot": "alert",
|
|
3634
3639
|
role: "alert",
|
|
3635
|
-
className:
|
|
3640
|
+
className: P(Ta({ variant: t }), e),
|
|
3636
3641
|
...n
|
|
3637
3642
|
});
|
|
3638
3643
|
}
|
|
3639
3644
|
function Da({ className: e, ...t }) {
|
|
3640
3645
|
return /* @__PURE__ */ a("div", {
|
|
3641
3646
|
"data-slot": "alert-title",
|
|
3642
|
-
className:
|
|
3647
|
+
className: P("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground", e),
|
|
3643
3648
|
...t
|
|
3644
3649
|
});
|
|
3645
3650
|
}
|
|
3646
3651
|
function Oa({ className: e, ...t }) {
|
|
3647
3652
|
return /* @__PURE__ */ a("div", {
|
|
3648
3653
|
"data-slot": "alert-description",
|
|
3649
|
-
className:
|
|
3654
|
+
className: P("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4", e),
|
|
3650
3655
|
...t
|
|
3651
3656
|
});
|
|
3652
3657
|
}
|
|
3653
3658
|
function ka({ className: e, ...t }) {
|
|
3654
3659
|
return /* @__PURE__ */ a("div", {
|
|
3655
3660
|
"data-slot": "alert-action",
|
|
3656
|
-
className:
|
|
3661
|
+
className: P("absolute top-2 end-2", e),
|
|
3657
3662
|
...t
|
|
3658
3663
|
});
|
|
3659
3664
|
}
|
|
@@ -3674,7 +3679,7 @@ function ja({ className: e, variant: t = "default", asChild: n = !1, ...r }) {
|
|
|
3674
3679
|
return /* @__PURE__ */ a(n ? C : "span", {
|
|
3675
3680
|
"data-slot": "badge",
|
|
3676
3681
|
"data-variant": t,
|
|
3677
|
-
className:
|
|
3682
|
+
className: P(Aa({ variant: t }), e),
|
|
3678
3683
|
...r
|
|
3679
3684
|
});
|
|
3680
3685
|
}
|
|
@@ -3684,28 +3689,28 @@ function Ma({ className: e, ...t }) {
|
|
|
3684
3689
|
return /* @__PURE__ */ a("nav", {
|
|
3685
3690
|
"aria-label": "breadcrumb",
|
|
3686
3691
|
"data-slot": "breadcrumb",
|
|
3687
|
-
className:
|
|
3692
|
+
className: P(e),
|
|
3688
3693
|
...t
|
|
3689
3694
|
});
|
|
3690
3695
|
}
|
|
3691
3696
|
function Na({ className: e, ...t }) {
|
|
3692
3697
|
return /* @__PURE__ */ a("ol", {
|
|
3693
3698
|
"data-slot": "breadcrumb-list",
|
|
3694
|
-
className:
|
|
3699
|
+
className: P("text-muted-foreground gap-1.5 text-sm flex flex-wrap items-center wrap-break-word", e),
|
|
3695
3700
|
...t
|
|
3696
3701
|
});
|
|
3697
3702
|
}
|
|
3698
3703
|
function Pa({ className: e, ...t }) {
|
|
3699
3704
|
return /* @__PURE__ */ a("li", {
|
|
3700
3705
|
"data-slot": "breadcrumb-item",
|
|
3701
|
-
className:
|
|
3706
|
+
className: P("gap-1 inline-flex items-center", e),
|
|
3702
3707
|
...t
|
|
3703
3708
|
});
|
|
3704
3709
|
}
|
|
3705
3710
|
function Fa({ asChild: e, className: t, ...n }) {
|
|
3706
3711
|
return /* @__PURE__ */ a(e ? C : "a", {
|
|
3707
3712
|
"data-slot": "breadcrumb-link",
|
|
3708
|
-
className:
|
|
3713
|
+
className: P("hover:text-foreground transition-colors", t),
|
|
3709
3714
|
...n
|
|
3710
3715
|
});
|
|
3711
3716
|
}
|
|
@@ -3715,7 +3720,7 @@ function Ia({ className: e, ...t }) {
|
|
|
3715
3720
|
role: "link",
|
|
3716
3721
|
"aria-disabled": "true",
|
|
3717
3722
|
"aria-current": "page",
|
|
3718
|
-
className:
|
|
3723
|
+
className: P("text-foreground font-normal", e),
|
|
3719
3724
|
...t
|
|
3720
3725
|
});
|
|
3721
3726
|
}
|
|
@@ -3724,7 +3729,7 @@ function La({ children: e, className: t, ...n }) {
|
|
|
3724
3729
|
"data-slot": "breadcrumb-separator",
|
|
3725
3730
|
role: "presentation",
|
|
3726
3731
|
"aria-hidden": "true",
|
|
3727
|
-
className:
|
|
3732
|
+
className: P("[&>svg]:size-3.5", t),
|
|
3728
3733
|
...n,
|
|
3729
3734
|
children: e ?? /* @__PURE__ */ a(d, { className: "rtl:rotate-180" })
|
|
3730
3735
|
});
|
|
@@ -3734,7 +3739,7 @@ function Ra({ className: e, ...t }) {
|
|
|
3734
3739
|
"data-slot": "breadcrumb-ellipsis",
|
|
3735
3740
|
role: "presentation",
|
|
3736
3741
|
"aria-hidden": "true",
|
|
3737
|
-
className:
|
|
3742
|
+
className: P("size-5 [&>svg]:size-4 flex items-center justify-center", e),
|
|
3738
3743
|
...t,
|
|
3739
3744
|
children: [/* @__PURE__ */ a(ce, {}), /* @__PURE__ */ a("span", {
|
|
3740
3745
|
className: "sr-only",
|
|
@@ -3760,7 +3765,7 @@ function Ha({ id: e, className: t, children: n, config: r, ...i }) {
|
|
|
3760
3765
|
children: /* @__PURE__ */ o("div", {
|
|
3761
3766
|
"data-slot": "chart",
|
|
3762
3767
|
"data-chart": c,
|
|
3763
|
-
className:
|
|
3768
|
+
className: P("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border[&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border[&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent[&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", t),
|
|
3764
3769
|
...i,
|
|
3765
3770
|
children: [/* @__PURE__ */ a(Ua, {
|
|
3766
3771
|
id: c,
|
|
@@ -3785,10 +3790,10 @@ function Ga({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
|
|
|
3785
3790
|
if (s || !t?.length) return null;
|
|
3786
3791
|
let [e] = t, n = Ja(g, e, `${h || e?.dataKey || e?.name || "value"}`), r = !h && typeof l == "string" ? g[l]?.label || l : n?.label;
|
|
3787
3792
|
return u ? /* @__PURE__ */ a("div", {
|
|
3788
|
-
className:
|
|
3793
|
+
className: P("font-medium", d),
|
|
3789
3794
|
children: u(r, t)
|
|
3790
3795
|
}) : r ? /* @__PURE__ */ a("div", {
|
|
3791
|
-
className:
|
|
3796
|
+
className: P("font-medium", d),
|
|
3792
3797
|
children: r
|
|
3793
3798
|
}) : null;
|
|
3794
3799
|
}, [
|
|
@@ -3803,15 +3808,15 @@ function Ga({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
|
|
|
3803
3808
|
if (!e || !t?.length) return null;
|
|
3804
3809
|
let v = t.length === 1 && r !== "dot";
|
|
3805
3810
|
return /* @__PURE__ */ o("div", {
|
|
3806
|
-
className:
|
|
3811
|
+
className: P("border-border/50 bg-background gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl grid min-w-32 items-start", n),
|
|
3807
3812
|
children: [v ? null : _, /* @__PURE__ */ a("div", {
|
|
3808
3813
|
className: "grid gap-1.5",
|
|
3809
3814
|
children: t.filter((e) => e.type !== "none").map((e, t) => {
|
|
3810
3815
|
let n = Ja(g, e, `${m || e.name || e.dataKey || "value"}`), s = p || e.payload.fill || e.color;
|
|
3811
3816
|
return /* @__PURE__ */ a("div", {
|
|
3812
|
-
className:
|
|
3817
|
+
className: P("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center"),
|
|
3813
3818
|
children: f && e?.value !== void 0 && e.name ? f(e.value, e.name, e, t, e.payload) : /* @__PURE__ */ o(i, { children: [n?.icon ? /* @__PURE__ */ a(n.icon, {}) : !c && /* @__PURE__ */ a("div", {
|
|
3814
|
-
className:
|
|
3819
|
+
className: P("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", {
|
|
3815
3820
|
"h-2.5 w-2.5": r === "dot",
|
|
3816
3821
|
"w-1": r === "line",
|
|
3817
3822
|
"w-0 border-[1.5px] border-dashed bg-transparent": r === "dashed",
|
|
@@ -3822,7 +3827,7 @@ function Ga({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
|
|
|
3822
3827
|
"--color-border": s
|
|
3823
3828
|
}
|
|
3824
3829
|
}), /* @__PURE__ */ o("div", {
|
|
3825
|
-
className:
|
|
3830
|
+
className: P("flex flex-1 justify-between leading-none", v ? "items-end" : "items-center"),
|
|
3826
3831
|
children: [/* @__PURE__ */ o("div", {
|
|
3827
3832
|
className: "grid gap-1.5",
|
|
3828
3833
|
children: [v ? _ : null, /* @__PURE__ */ a("span", {
|
|
@@ -3843,11 +3848,11 @@ var Ka = He.Legend;
|
|
|
3843
3848
|
function qa({ className: e, hideIcon: t = !1, payload: n, verticalAlign: r = "bottom", nameKey: i }) {
|
|
3844
3849
|
let { config: s } = Va();
|
|
3845
3850
|
return n?.length ? /* @__PURE__ */ a("div", {
|
|
3846
|
-
className:
|
|
3851
|
+
className: P("flex items-center justify-center gap-4", r === "top" ? "pb-3" : "pt-3", e),
|
|
3847
3852
|
children: n.filter((e) => e.type !== "none").map((e) => {
|
|
3848
3853
|
let n = Ja(s, e, `${i || e.dataKey || "value"}`);
|
|
3849
3854
|
return /* @__PURE__ */ o("div", {
|
|
3850
|
-
className:
|
|
3855
|
+
className: P("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),
|
|
3851
3856
|
children: [n?.icon && !t ? /* @__PURE__ */ a(n.icon, {}) : /* @__PURE__ */ a("div", {
|
|
3852
3857
|
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
3853
3858
|
style: { backgroundColor: e.color }
|
|
@@ -3866,7 +3871,7 @@ function Ja(e, t, n) {
|
|
|
3866
3871
|
function Ya({ className: e, ...t }) {
|
|
3867
3872
|
return /* @__PURE__ */ a(Ue.Root, {
|
|
3868
3873
|
"data-slot": "checkbox",
|
|
3869
|
-
className:
|
|
3874
|
+
className: P("border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-[4px] border transition-colors group-has-disabled/field:opacity-50 focus-visible:ring-3 aria-invalid:ring-3 peer relative shrink-0 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
3870
3875
|
...t,
|
|
3871
3876
|
children: /* @__PURE__ */ a(Ue.Indicator, {
|
|
3872
3877
|
"data-slot": "checkbox-indicator",
|
|
@@ -3887,7 +3892,7 @@ function Za({ ...e }) {
|
|
|
3887
3892
|
function Qa({ className: e, children: t, ...n }) {
|
|
3888
3893
|
return /* @__PURE__ */ o(j.Trigger, {
|
|
3889
3894
|
"data-slot": "combobox-trigger",
|
|
3890
|
-
className:
|
|
3895
|
+
className: P("[&_svg:not([class*='size-'])]:size-4", e),
|
|
3891
3896
|
...n,
|
|
3892
3897
|
children: [t, /* @__PURE__ */ a(l, { className: "text-muted-foreground size-4 pointer-events-none" })]
|
|
3893
3898
|
});
|
|
@@ -3899,14 +3904,14 @@ function $a({ className: e, ...t }) {
|
|
|
3899
3904
|
variant: "ghost",
|
|
3900
3905
|
size: "icon-xs"
|
|
3901
3906
|
}),
|
|
3902
|
-
className:
|
|
3907
|
+
className: P(e),
|
|
3903
3908
|
...t,
|
|
3904
3909
|
children: /* @__PURE__ */ a(Se, { className: "pointer-events-none" })
|
|
3905
3910
|
});
|
|
3906
3911
|
}
|
|
3907
3912
|
function eo({ className: e, children: t, disabled: n = !1, showTrigger: r = !0, showClear: i = !1, ...s }) {
|
|
3908
3913
|
return /* @__PURE__ */ o(Ni, {
|
|
3909
|
-
className:
|
|
3914
|
+
className: P("w-auto", e),
|
|
3910
3915
|
children: [
|
|
3911
3916
|
/* @__PURE__ */ a(j.Input, {
|
|
3912
3917
|
render: /* @__PURE__ */ a(zi, { disabled: n }),
|
|
@@ -3939,7 +3944,7 @@ function to({ className: e, side: t = "bottom", sideOffset: n = 6, align: r = "s
|
|
|
3939
3944
|
children: /* @__PURE__ */ a(j.Popup, {
|
|
3940
3945
|
"data-slot": "combobox-content",
|
|
3941
3946
|
"data-chips": !!o,
|
|
3942
|
-
className:
|
|
3947
|
+
className: P("bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 *:data-[slot=input-group]:bg-input/30 *:data-[slot=input-group]:border-input/30 overflow-hidden rounded-lg shadow-md ring-1 duration-100 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:shadow-none data-[side=inline-start]:slide-in-from-end-2 data-[side=inline-end]:slide-in-from-start-2 group/combobox-content relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) data-[chips=true]:min-w-(--anchor-width)", e),
|
|
3943
3948
|
...s
|
|
3944
3949
|
})
|
|
3945
3950
|
}) });
|
|
@@ -3947,14 +3952,14 @@ function to({ className: e, side: t = "bottom", sideOffset: n = 6, align: r = "s
|
|
|
3947
3952
|
function no({ className: e, ...t }) {
|
|
3948
3953
|
return /* @__PURE__ */ a(j.List, {
|
|
3949
3954
|
"data-slot": "combobox-list",
|
|
3950
|
-
className:
|
|
3955
|
+
className: P("no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 p-1 data-empty:p-0 overflow-y-auto overscroll-contain", e),
|
|
3951
3956
|
...t
|
|
3952
3957
|
});
|
|
3953
3958
|
}
|
|
3954
3959
|
function ro({ className: e, children: t, ...n }) {
|
|
3955
3960
|
return /* @__PURE__ */ o(j.Item, {
|
|
3956
3961
|
"data-slot": "combobox-item",
|
|
3957
|
-
className:
|
|
3962
|
+
className: P("data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground gap-2 rounded-md py-1 pe-8 ps-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 relative flex w-full cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", e),
|
|
3958
3963
|
...n,
|
|
3959
3964
|
children: [t, /* @__PURE__ */ a(j.ItemIndicator, {
|
|
3960
3965
|
render: /* @__PURE__ */ a("span", { className: "pointer-events-none absolute end-2 flex size-4 items-center justify-center" }),
|
|
@@ -3965,14 +3970,14 @@ function ro({ className: e, children: t, ...n }) {
|
|
|
3965
3970
|
function io({ className: e, ...t }) {
|
|
3966
3971
|
return /* @__PURE__ */ a(j.Group, {
|
|
3967
3972
|
"data-slot": "combobox-group",
|
|
3968
|
-
className:
|
|
3973
|
+
className: P(e),
|
|
3969
3974
|
...t
|
|
3970
3975
|
});
|
|
3971
3976
|
}
|
|
3972
3977
|
function ao({ className: e, ...t }) {
|
|
3973
3978
|
return /* @__PURE__ */ a(j.GroupLabel, {
|
|
3974
3979
|
"data-slot": "combobox-label",
|
|
3975
|
-
className:
|
|
3980
|
+
className: P("text-muted-foreground px-2 py-1.5 text-xs", e),
|
|
3976
3981
|
...t
|
|
3977
3982
|
});
|
|
3978
3983
|
}
|
|
@@ -3985,31 +3990,31 @@ function oo({ ...e }) {
|
|
|
3985
3990
|
function so({ className: e, ...t }) {
|
|
3986
3991
|
return /* @__PURE__ */ a(j.Empty, {
|
|
3987
3992
|
"data-slot": "combobox-empty",
|
|
3988
|
-
className:
|
|
3993
|
+
className: P("text-muted-foreground hidden w-full justify-center py-2 text-center text-sm group-data-empty/combobox-content:flex", e),
|
|
3989
3994
|
...t
|
|
3990
3995
|
});
|
|
3991
3996
|
}
|
|
3992
3997
|
function co({ className: e, ...t }) {
|
|
3993
3998
|
return /* @__PURE__ */ a(j.Separator, {
|
|
3994
3999
|
"data-slot": "combobox-separator",
|
|
3995
|
-
className:
|
|
4000
|
+
className: P("bg-border -mx-1 my-1 h-px", e),
|
|
3996
4001
|
...t
|
|
3997
4002
|
});
|
|
3998
4003
|
}
|
|
3999
4004
|
function lo({ className: e, ...t }) {
|
|
4000
4005
|
return /* @__PURE__ */ a(j.Chips, {
|
|
4001
4006
|
"data-slot": "combobox-chips",
|
|
4002
|
-
className:
|
|
4007
|
+
className: P("dark:bg-input/30 border-input focus-within:border-ring focus-within:ring-ring/50 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 has-aria-invalid:border-destructive dark:has-aria-invalid:border-destructive/50 flex min-h-8 flex-wrap items-center gap-1 rounded-lg border bg-transparent bg-clip-padding px-2.5 py-1 text-sm transition-colors focus-within:ring-3 has-aria-invalid:ring-3 has-data-[slot=combobox-chip]:px-1", e),
|
|
4003
4008
|
...t
|
|
4004
4009
|
});
|
|
4005
4010
|
}
|
|
4006
4011
|
function uo({ className: e, children: t, showRemove: n = !0, ...r }) {
|
|
4007
4012
|
return /* @__PURE__ */ o(j.Chip, {
|
|
4008
4013
|
"data-slot": "combobox-chip",
|
|
4009
|
-
className:
|
|
4014
|
+
className: P("bg-muted text-foreground flex h-[calc(--spacing(5.25))] w-fit items-center justify-center gap-1 rounded-sm px-1.5 text-xs font-medium whitespace-nowrap has-data-[slot=combobox-chip-remove]:pe-0 has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-disabled:opacity-50", e),
|
|
4010
4015
|
...r,
|
|
4011
4016
|
children: [t, n && /* @__PURE__ */ a(j.ChipRemove, {
|
|
4012
|
-
render: /* @__PURE__ */ a(
|
|
4017
|
+
render: /* @__PURE__ */ a(F, {
|
|
4013
4018
|
variant: "ghost",
|
|
4014
4019
|
size: "icon-xs"
|
|
4015
4020
|
}),
|
|
@@ -4022,7 +4027,7 @@ function uo({ className: e, children: t, showRemove: n = !0, ...r }) {
|
|
|
4022
4027
|
function fo({ className: e, ...t }) {
|
|
4023
4028
|
return /* @__PURE__ */ a(j.Input, {
|
|
4024
4029
|
"data-slot": "combobox-chip-input",
|
|
4025
|
-
className:
|
|
4030
|
+
className: P("min-w-16 flex-1 outline-none", e),
|
|
4026
4031
|
...t
|
|
4027
4032
|
});
|
|
4028
4033
|
}
|
|
@@ -4067,7 +4072,7 @@ function yo({ ...e }) {
|
|
|
4067
4072
|
function bo({ className: e, ...t }) {
|
|
4068
4073
|
return /* @__PURE__ */ a(M.Overlay, {
|
|
4069
4074
|
"data-slot": "drawer-overlay",
|
|
4070
|
-
className:
|
|
4075
|
+
className: P("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50", e),
|
|
4071
4076
|
...t
|
|
4072
4077
|
});
|
|
4073
4078
|
}
|
|
@@ -4076,7 +4081,7 @@ function xo({ className: e, children: t, ...n }) {
|
|
|
4076
4081
|
"data-slot": "drawer-portal",
|
|
4077
4082
|
children: [/* @__PURE__ */ a(bo, {}), /* @__PURE__ */ o(M.Content, {
|
|
4078
4083
|
"data-slot": "drawer-content",
|
|
4079
|
-
className:
|
|
4084
|
+
className: P("bg-background flex h-auto flex-col text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:start-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-e-xl data-[vaul-drawer-direction=left]:border-e data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:end-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-s-xl data-[vaul-drawer-direction=right]:border-s data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm group/drawer-content fixed z-50", e),
|
|
4080
4085
|
...n,
|
|
4081
4086
|
children: [/* @__PURE__ */ a("div", { className: "bg-muted mt-4 h-1 w-[100px] rounded-full mx-auto hidden shrink-0 group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), t]
|
|
4082
4087
|
})]
|
|
@@ -4085,28 +4090,28 @@ function xo({ className: e, children: t, ...n }) {
|
|
|
4085
4090
|
function So({ className: e, ...t }) {
|
|
4086
4091
|
return /* @__PURE__ */ a("div", {
|
|
4087
4092
|
"data-slot": "drawer-header",
|
|
4088
|
-
className:
|
|
4093
|
+
className: P("gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-0.5 md:text-start flex flex-col", e),
|
|
4089
4094
|
...t
|
|
4090
4095
|
});
|
|
4091
4096
|
}
|
|
4092
4097
|
function Co({ className: e, ...t }) {
|
|
4093
4098
|
return /* @__PURE__ */ a("div", {
|
|
4094
4099
|
"data-slot": "drawer-footer",
|
|
4095
|
-
className:
|
|
4100
|
+
className: P("gap-2 p-4 mt-auto flex flex-col", e),
|
|
4096
4101
|
...t
|
|
4097
4102
|
});
|
|
4098
4103
|
}
|
|
4099
4104
|
function wo({ className: e, ...t }) {
|
|
4100
4105
|
return /* @__PURE__ */ a(M.Title, {
|
|
4101
4106
|
"data-slot": "drawer-title",
|
|
4102
|
-
className:
|
|
4107
|
+
className: P("text-foreground text-base font-medium", e),
|
|
4103
4108
|
...t
|
|
4104
4109
|
});
|
|
4105
4110
|
}
|
|
4106
4111
|
function To({ className: e, ...t }) {
|
|
4107
4112
|
return /* @__PURE__ */ a(M.Description, {
|
|
4108
4113
|
"data-slot": "drawer-description",
|
|
4109
|
-
className:
|
|
4114
|
+
className: P("text-muted-foreground text-sm", e),
|
|
4110
4115
|
...t
|
|
4111
4116
|
});
|
|
4112
4117
|
}
|
|
@@ -4115,7 +4120,7 @@ function To({ className: e, ...t }) {
|
|
|
4115
4120
|
function Eo({ className: e, ...t }) {
|
|
4116
4121
|
return /* @__PURE__ */ a("fieldset", {
|
|
4117
4122
|
"data-slot": "field-set",
|
|
4118
|
-
className:
|
|
4123
|
+
className: P("gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col", e),
|
|
4119
4124
|
...t
|
|
4120
4125
|
});
|
|
4121
4126
|
}
|
|
@@ -4123,14 +4128,14 @@ function Do({ className: e, variant: t = "legend", ...n }) {
|
|
|
4123
4128
|
return /* @__PURE__ */ a("legend", {
|
|
4124
4129
|
"data-slot": "field-legend",
|
|
4125
4130
|
"data-variant": t,
|
|
4126
|
-
className:
|
|
4131
|
+
className: P("mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base", e),
|
|
4127
4132
|
...n
|
|
4128
4133
|
});
|
|
4129
4134
|
}
|
|
4130
4135
|
function Oo({ className: e, ...t }) {
|
|
4131
4136
|
return /* @__PURE__ */ a("div", {
|
|
4132
4137
|
"data-slot": "field-group",
|
|
4133
|
-
className:
|
|
4138
|
+
className: P("gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4 group/field-group @container/field-group flex w-full flex-col", e),
|
|
4134
4139
|
...t
|
|
4135
4140
|
});
|
|
4136
4141
|
}
|
|
@@ -4147,35 +4152,35 @@ function Ao({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
4147
4152
|
role: "group",
|
|
4148
4153
|
"data-slot": "field",
|
|
4149
4154
|
"data-orientation": t,
|
|
4150
|
-
className:
|
|
4155
|
+
className: P(ko({ orientation: t }), e),
|
|
4151
4156
|
...n
|
|
4152
4157
|
});
|
|
4153
4158
|
}
|
|
4154
4159
|
function jo({ className: e, ...t }) {
|
|
4155
4160
|
return /* @__PURE__ */ a("div", {
|
|
4156
4161
|
"data-slot": "field-content",
|
|
4157
|
-
className:
|
|
4162
|
+
className: P("gap-0.5 group/field-content flex flex-1 flex-col leading-snug", e),
|
|
4158
4163
|
...t
|
|
4159
4164
|
});
|
|
4160
4165
|
}
|
|
4161
4166
|
function Mo({ className: e, ...t }) {
|
|
4162
4167
|
return /* @__PURE__ */ a(Rt, {
|
|
4163
4168
|
"data-slot": "field-label",
|
|
4164
|
-
className:
|
|
4169
|
+
className: P("has-data-checked:bg-primary/5 has-data-checked:border-primary/30 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10 gap-2 group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2.5 group/field-label peer/field-label flex w-fit leading-snug", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", e),
|
|
4165
4170
|
...t
|
|
4166
4171
|
});
|
|
4167
4172
|
}
|
|
4168
4173
|
function No({ className: e, ...t }) {
|
|
4169
4174
|
return /* @__PURE__ */ a("div", {
|
|
4170
4175
|
"data-slot": "field-label",
|
|
4171
|
-
className:
|
|
4176
|
+
className: P("gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center leading-snug", e),
|
|
4172
4177
|
...t
|
|
4173
4178
|
});
|
|
4174
4179
|
}
|
|
4175
4180
|
function Po({ className: e, ...t }) {
|
|
4176
4181
|
return /* @__PURE__ */ a("p", {
|
|
4177
4182
|
"data-slot": "field-description",
|
|
4178
|
-
className:
|
|
4183
|
+
className: P("text-muted-foreground text-start text-sm [[data-variant=legend]+&]:-mt-1.5 leading-normal font-normal group-has-data-horizontal/field:text-balance", "last:mt-0 nth-last-2:-mt-1", "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", e),
|
|
4179
4184
|
...t
|
|
4180
4185
|
});
|
|
4181
4186
|
}
|
|
@@ -4183,9 +4188,9 @@ function Fo({ children: e, className: t, ...n }) {
|
|
|
4183
4188
|
return /* @__PURE__ */ o("div", {
|
|
4184
4189
|
"data-slot": "field-separator",
|
|
4185
4190
|
"data-content": !!e,
|
|
4186
|
-
className:
|
|
4191
|
+
className: P("-my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2 relative", t),
|
|
4187
4192
|
...n,
|
|
4188
|
-
children: [/* @__PURE__ */ a(
|
|
4193
|
+
children: [/* @__PURE__ */ a(L, { className: "absolute inset-0 top-1/2" }), e && /* @__PURE__ */ a("span", {
|
|
4189
4194
|
className: "text-muted-foreground px-2 bg-background relative mx-auto block w-fit",
|
|
4190
4195
|
"data-slot": "field-separator-content",
|
|
4191
4196
|
children: e
|
|
@@ -4205,7 +4210,7 @@ function Io({ className: e, children: t, errors: n, ...r }) {
|
|
|
4205
4210
|
return i ? /* @__PURE__ */ a("div", {
|
|
4206
4211
|
role: "alert",
|
|
4207
4212
|
"data-slot": "field-error",
|
|
4208
|
-
className:
|
|
4213
|
+
className: P("text-destructive text-sm font-normal", e),
|
|
4209
4214
|
...r,
|
|
4210
4215
|
children: i
|
|
4211
4216
|
}) : null;
|
|
@@ -4213,29 +4218,29 @@ function Io({ className: e, children: t, errors: n, ...r }) {
|
|
|
4213
4218
|
//#endregion
|
|
4214
4219
|
//#region src/components/pure/scroll-area.tsx
|
|
4215
4220
|
function Lo({ className: e, children: t, ...n }) {
|
|
4216
|
-
return /* @__PURE__ */ o(
|
|
4221
|
+
return /* @__PURE__ */ o(Ge.Root, {
|
|
4217
4222
|
"data-slot": "scroll-area",
|
|
4218
|
-
className:
|
|
4223
|
+
className: P("relative", e),
|
|
4219
4224
|
...n,
|
|
4220
4225
|
children: [
|
|
4221
|
-
/* @__PURE__ */ a(
|
|
4226
|
+
/* @__PURE__ */ a(Ge.Viewport, {
|
|
4222
4227
|
"data-slot": "scroll-area-viewport",
|
|
4223
4228
|
className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
|
|
4224
4229
|
children: t
|
|
4225
4230
|
}),
|
|
4226
4231
|
/* @__PURE__ */ a(Ro, {}),
|
|
4227
|
-
/* @__PURE__ */ a(
|
|
4232
|
+
/* @__PURE__ */ a(Ge.Corner, {})
|
|
4228
4233
|
]
|
|
4229
4234
|
});
|
|
4230
4235
|
}
|
|
4231
4236
|
function Ro({ className: e, orientation: t = "vertical", ...n }) {
|
|
4232
|
-
return /* @__PURE__ */ a(
|
|
4237
|
+
return /* @__PURE__ */ a(Ge.ScrollAreaScrollbar, {
|
|
4233
4238
|
"data-slot": "scroll-area-scrollbar",
|
|
4234
4239
|
"data-orientation": t,
|
|
4235
4240
|
orientation: t,
|
|
4236
|
-
className:
|
|
4241
|
+
className: P("data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-s data-vertical:border-s-transparent flex touch-none p-px transition-colors select-none", e),
|
|
4237
4242
|
...n,
|
|
4238
|
-
children: /* @__PURE__ */ a(
|
|
4243
|
+
children: /* @__PURE__ */ a(Ge.ScrollAreaThumb, {
|
|
4239
4244
|
"data-slot": "scroll-area-thumb",
|
|
4240
4245
|
className: "rounded-full bg-border relative flex-1"
|
|
4241
4246
|
})
|
|
@@ -4244,8 +4249,8 @@ function Ro({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
4244
4249
|
//#endregion
|
|
4245
4250
|
//#region src/components/pure/sonner.tsx
|
|
4246
4251
|
var zo = ({ ...e }) => {
|
|
4247
|
-
let { theme: t = "system" } =
|
|
4248
|
-
return /* @__PURE__ */ a(
|
|
4252
|
+
let { theme: t = "system" } = Ke();
|
|
4253
|
+
return /* @__PURE__ */ a(qe, {
|
|
4249
4254
|
theme: t,
|
|
4250
4255
|
className: "toaster group",
|
|
4251
4256
|
icons: {
|
|
@@ -4268,12 +4273,12 @@ var zo = ({ ...e }) => {
|
|
|
4268
4273
|
//#endregion
|
|
4269
4274
|
//#region src/components/pure/switch.tsx
|
|
4270
4275
|
function Bo({ className: e, size: t = "default", ...n }) {
|
|
4271
|
-
return /* @__PURE__ */ a(
|
|
4276
|
+
return /* @__PURE__ */ a(Je.Root, {
|
|
4272
4277
|
"data-slot": "switch",
|
|
4273
4278
|
"data-size": t,
|
|
4274
|
-
className:
|
|
4279
|
+
className: P("data-checked:bg-primary data-unchecked:bg-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 dark:data-unchecked:bg-input/80 shrink-0 rounded-full border border-transparent focus-visible:ring-3 aria-invalid:ring-3 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] peer group/switch relative inline-flex items-center transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 data-disabled:cursor-not-allowed data-disabled:opacity-50", e),
|
|
4275
4280
|
...n,
|
|
4276
|
-
children: /* @__PURE__ */ a(
|
|
4281
|
+
children: /* @__PURE__ */ a(Je.Thumb, {
|
|
4277
4282
|
"data-slot": "switch-thumb",
|
|
4278
4283
|
className: "bg-background dark:data-unchecked:bg-foreground dark:data-checked:bg-primary-foreground rounded-full group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0 pointer-events-none block ring-0 transition-transform"
|
|
4279
4284
|
})
|
|
@@ -4282,10 +4287,10 @@ function Bo({ className: e, size: t = "default", ...n }) {
|
|
|
4282
4287
|
//#endregion
|
|
4283
4288
|
//#region src/components/pure/tabs.tsx
|
|
4284
4289
|
function Vo({ className: e, orientation: t = "horizontal", ...n }) {
|
|
4285
|
-
return /* @__PURE__ */ a(
|
|
4290
|
+
return /* @__PURE__ */ a(Ye.Root, {
|
|
4286
4291
|
"data-slot": "tabs",
|
|
4287
4292
|
"data-orientation": t,
|
|
4288
|
-
className:
|
|
4293
|
+
className: P("gap-2 group/tabs flex data-horizontal:flex-col", e),
|
|
4289
4294
|
...n
|
|
4290
4295
|
});
|
|
4291
4296
|
}
|
|
@@ -4297,24 +4302,24 @@ var Ho = S("rounded-lg p-[3px] group-data-horizontal/tabs:h-8 data-[variant=line
|
|
|
4297
4302
|
defaultVariants: { variant: "default" }
|
|
4298
4303
|
});
|
|
4299
4304
|
function Uo({ className: e, variant: t = "default", ...n }) {
|
|
4300
|
-
return /* @__PURE__ */ a(
|
|
4305
|
+
return /* @__PURE__ */ a(Ye.List, {
|
|
4301
4306
|
"data-slot": "tabs-list",
|
|
4302
4307
|
"data-variant": t,
|
|
4303
|
-
className:
|
|
4308
|
+
className: P(Ho({ variant: t }), e),
|
|
4304
4309
|
...n
|
|
4305
4310
|
});
|
|
4306
4311
|
}
|
|
4307
4312
|
function Wo({ className: e, ...t }) {
|
|
4308
|
-
return /* @__PURE__ */ a(
|
|
4313
|
+
return /* @__PURE__ */ a(Ye.Trigger, {
|
|
4309
4314
|
"data-slot": "tabs-trigger",
|
|
4310
|
-
className:
|
|
4315
|
+
className: P("gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg:not([class*='size-'])]:size-4 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center whitespace-nowrap transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent", "data-active:bg-background dark:data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 data-active:text-foreground", "after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-end-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100", e),
|
|
4311
4316
|
...t
|
|
4312
4317
|
});
|
|
4313
4318
|
}
|
|
4314
4319
|
function Go({ className: e, ...t }) {
|
|
4315
|
-
return /* @__PURE__ */ a(
|
|
4320
|
+
return /* @__PURE__ */ a(Ye.Content, {
|
|
4316
4321
|
"data-slot": "tabs-content",
|
|
4317
|
-
className:
|
|
4322
|
+
className: P("text-sm flex-1 outline-none", e),
|
|
4318
4323
|
...t
|
|
4319
4324
|
});
|
|
4320
4325
|
}
|
|
@@ -4338,9 +4343,9 @@ var Ko = S("hover:text-foreground aria-pressed:bg-muted focus-visible:border-rin
|
|
|
4338
4343
|
}
|
|
4339
4344
|
});
|
|
4340
4345
|
function qo({ className: e, variant: t = "default", size: n = "default", ...r }) {
|
|
4341
|
-
return /* @__PURE__ */ a(
|
|
4346
|
+
return /* @__PURE__ */ a(Ze.Root, {
|
|
4342
4347
|
"data-slot": "toggle",
|
|
4343
|
-
className:
|
|
4348
|
+
className: P(Ko({
|
|
4344
4349
|
variant: t,
|
|
4345
4350
|
size: n,
|
|
4346
4351
|
className: e
|
|
@@ -4357,14 +4362,14 @@ var Jo = y.createContext({
|
|
|
4357
4362
|
orientation: "horizontal"
|
|
4358
4363
|
});
|
|
4359
4364
|
function Yo({ className: e, variant: t, size: n, spacing: r = 0, orientation: i = "horizontal", children: o, ...s }) {
|
|
4360
|
-
return /* @__PURE__ */ a(
|
|
4365
|
+
return /* @__PURE__ */ a(Xe.Root, {
|
|
4361
4366
|
"data-slot": "toggle-group",
|
|
4362
4367
|
"data-variant": t,
|
|
4363
4368
|
"data-size": n,
|
|
4364
4369
|
"data-spacing": r,
|
|
4365
4370
|
"data-orientation": i,
|
|
4366
4371
|
style: { "--gap": r },
|
|
4367
|
-
className:
|
|
4372
|
+
className: P("rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] data-vertical:flex-col data-vertical:items-stretch", e),
|
|
4368
4373
|
...s,
|
|
4369
4374
|
children: /* @__PURE__ */ a(Jo.Provider, {
|
|
4370
4375
|
value: {
|
|
@@ -4379,12 +4384,12 @@ function Yo({ className: e, variant: t, size: n, spacing: r = 0, orientation: i
|
|
|
4379
4384
|
}
|
|
4380
4385
|
function Xo({ className: e, children: t, variant: n = "default", size: r = "default", ...i }) {
|
|
4381
4386
|
let o = y.useContext(Jo);
|
|
4382
|
-
return /* @__PURE__ */ a(
|
|
4387
|
+
return /* @__PURE__ */ a(Xe.Item, {
|
|
4383
4388
|
"data-slot": "toggle-group-item",
|
|
4384
4389
|
"data-variant": o.variant || n,
|
|
4385
4390
|
"data-size": o.size || r,
|
|
4386
4391
|
"data-spacing": o.spacing,
|
|
4387
|
-
className:
|
|
4392
|
+
className: P("group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-s-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-e-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg shrink-0 focus:z-10 focus-visible:z-10 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-s-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-s group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t", Ko({
|
|
4388
4393
|
variant: o.variant || n,
|
|
4389
4394
|
size: o.size || r
|
|
4390
4395
|
}), e),
|
|
@@ -4554,12 +4559,12 @@ function ns(e, t) {
|
|
|
4554
4559
|
let n = new FileReader();
|
|
4555
4560
|
n.onloadend = () => {
|
|
4556
4561
|
let r = n.result;
|
|
4557
|
-
t(new
|
|
4562
|
+
t(new $e({
|
|
4558
4563
|
url: r,
|
|
4559
4564
|
base64File: r.split(",")[1],
|
|
4560
4565
|
extension: `.${e.name.split(".").pop()}`,
|
|
4561
4566
|
contentType: e.type,
|
|
4562
|
-
status:
|
|
4567
|
+
status: N.New
|
|
4563
4568
|
}));
|
|
4564
4569
|
}, n.readAsDataURL(e);
|
|
4565
4570
|
})), l = await Promise.all(c);
|
|
@@ -4575,9 +4580,9 @@ function ns(e, t) {
|
|
|
4575
4580
|
let r = e[t];
|
|
4576
4581
|
if (Array.isArray(r)) {
|
|
4577
4582
|
let i = [...r], a = i[n];
|
|
4578
|
-
return a.status ===
|
|
4583
|
+
return a.status === N.New ? i.splice(n, 1) : i[n] = new $e({
|
|
4579
4584
|
...a,
|
|
4580
|
-
status:
|
|
4585
|
+
status: N.Delete
|
|
4581
4586
|
}), {
|
|
4582
4587
|
...e,
|
|
4583
4588
|
[t]: i
|
|
@@ -4586,9 +4591,9 @@ function ns(e, t) {
|
|
|
4586
4591
|
let n = r;
|
|
4587
4592
|
return {
|
|
4588
4593
|
...e,
|
|
4589
|
-
[t]: n?.status ===
|
|
4594
|
+
[t]: n?.status === N.New ? void 0 : new $e({
|
|
4590
4595
|
...n,
|
|
4591
|
-
status:
|
|
4596
|
+
status: N.Delete
|
|
4592
4597
|
})
|
|
4593
4598
|
};
|
|
4594
4599
|
}
|
|
@@ -4608,7 +4613,7 @@ function ns(e, t) {
|
|
|
4608
4613
|
window.open(n, "_blank");
|
|
4609
4614
|
}
|
|
4610
4615
|
},
|
|
4611
|
-
showFilePreview: (e) => !!(e?.url && e.status !==
|
|
4616
|
+
showFilePreview: (e) => !!(e?.url && e.status !== N.Delete),
|
|
4612
4617
|
getFileSrc: a
|
|
4613
4618
|
};
|
|
4614
4619
|
}
|
|
@@ -4616,15 +4621,15 @@ function ns(e, t) {
|
|
|
4616
4621
|
//#region src/state/authListener.ts
|
|
4617
4622
|
var rs = (e, t) => {
|
|
4618
4623
|
window.addEventListener("storage", (n) => {
|
|
4619
|
-
n.key ===
|
|
4620
|
-
}), window.addEventListener(
|
|
4624
|
+
n.key === Qe.AuthCheckStorageItemName && e(t.syncFromStorage());
|
|
4625
|
+
}), window.addEventListener(Qe.UnauthorizedEventName, () => {
|
|
4621
4626
|
e(t.logout());
|
|
4622
4627
|
});
|
|
4623
4628
|
};
|
|
4624
4629
|
//#endregion
|
|
4625
4630
|
//#region src/state/generics/genericDialogSlice.ts
|
|
4626
4631
|
function is(e) {
|
|
4627
|
-
return
|
|
4632
|
+
return tt({
|
|
4628
4633
|
name: e,
|
|
4629
4634
|
initialState: {
|
|
4630
4635
|
selectedRow: null,
|
|
@@ -5096,7 +5101,7 @@ var _c = (e) => e;
|
|
|
5096
5101
|
//#endregion
|
|
5097
5102
|
//#region src/state/generics/genericEntitySlice.ts
|
|
5098
5103
|
function vc(e, t, n, r) {
|
|
5099
|
-
let i =
|
|
5104
|
+
let i = tt({
|
|
5100
5105
|
name: e,
|
|
5101
5106
|
initialState: {
|
|
5102
5107
|
entities: {
|
|
@@ -5131,7 +5136,7 @@ function vc(e, t, n, r) {
|
|
|
5131
5136
|
e.isLoading = !1;
|
|
5132
5137
|
});
|
|
5133
5138
|
}
|
|
5134
|
-
}), a =
|
|
5139
|
+
}), a = et(`${e}/filter`, async (r, { getState: i }) => {
|
|
5135
5140
|
let a = i()[e], o;
|
|
5136
5141
|
return o = n ? await n(a.currentPage, a.rowsPerPage, r) : await t.Filter(a.currentPage, a.rowsPerPage, r), o?.data;
|
|
5137
5142
|
});
|
|
@@ -5144,4 +5149,4 @@ function vc(e, t, n, r) {
|
|
|
5144
5149
|
};
|
|
5145
5150
|
}
|
|
5146
5151
|
//#endregion
|
|
5147
|
-
export { Ea as Alert, ka as AlertAction, Oa as AlertDescription, pa as AlertDialog, Ca as AlertDialogAction, wa as AlertDialogCancel, _a as AlertDialogContent, Sa as AlertDialogDescription, ya as AlertDialogFooter, va as AlertDialogHeader, ba as AlertDialogMedia, ga as AlertDialogOverlay, ha as AlertDialogPortal, xa as AlertDialogTitle, ma as AlertDialogTrigger, Da as AlertTitle, Zi as Avatar, ea as AvatarBadge, $i as AvatarFallback, ta as AvatarGroup, na as AvatarGroupCount, Qi as AvatarImage, ja as Badge, Bt as BaseInput, Ma as Breadcrumb, Ra as BreadcrumbEllipsis, Pa as BreadcrumbItem, Fa as BreadcrumbLink, Na as BreadcrumbList, Ia as BreadcrumbPage, La as BreadcrumbSeparator,
|
|
5152
|
+
export { Ea as Alert, ka as AlertAction, Oa as AlertDescription, pa as AlertDialog, Ca as AlertDialogAction, wa as AlertDialogCancel, _a as AlertDialogContent, Sa as AlertDialogDescription, ya as AlertDialogFooter, va as AlertDialogHeader, ba as AlertDialogMedia, ga as AlertDialogOverlay, ha as AlertDialogPortal, xa as AlertDialogTitle, ma as AlertDialogTrigger, Da as AlertTitle, Zi as Avatar, ea as AvatarBadge, $i as AvatarFallback, ta as AvatarGroup, na as AvatarGroupCount, Qi as AvatarImage, ja as Badge, Bt as BaseInput, Ma as Breadcrumb, Ra as BreadcrumbEllipsis, Pa as BreadcrumbItem, Fa as BreadcrumbLink, Na as BreadcrumbList, Ia as BreadcrumbPage, La as BreadcrumbSeparator, F as Button, Ot as Calendar, kt as CalendarDayButton, ln as Card, pn as CardAction, mn as CardContent, fn as CardDescription, hn as CardFooter, un as CardHeader, dn as CardTitle, vn as Carousel, yn as CarouselContent, bn as CarouselItem, Sn as CarouselNext, xn as CarouselPrevious, gt as ChangeDialog, Ha as ChartContainer, Ka as ChartLegend, qa as ChartLegendContent, Ua as ChartStyle, Wa as ChartTooltip, Ga as ChartTooltipContent, Ya as Checkbox, Xa as Combobox, uo as ComboboxChip, lo as ComboboxChips, fo as ComboboxChipsInput, oo as ComboboxCollection, to as ComboboxContent, so as ComboboxEmpty, io as ComboboxGroup, eo as ComboboxInput, ro as ComboboxItem, ao as ComboboxLabel, no as ComboboxList, co as ComboboxSeparator, Qa as ComboboxTrigger, Za as ComboboxValue, Vi as Command, Hi as CommandDialog, Gi as CommandEmpty, Ki as CommandGroup, Ui as CommandInput, Ji as CommandItem, Wi as CommandList, qi as CommandSeparator, Yi as CommandShortcut, Qn as ContextMenu, cr as ContextMenuCheckboxItem, ir as ContextMenuContent, er as ContextMenuGroup, ar as ContextMenuItem, ur as ContextMenuLabel, tr as ContextMenuPortal, rr as ContextMenuRadioGroup, lr as ContextMenuRadioItem, dr as ContextMenuSeparator, fr as ContextMenuShortcut, nr as ContextMenuSub, sr as ContextMenuSubContent, or as ContextMenuSubTrigger, $n as ContextMenuTrigger, qn as CrudEmptyTablePreview, Mi as CrudPage, Zn as CrudTable, pr as CrudTableBodyRow, mr as CrudTableCard, hr as CrudTableHeader, gr as CrudTableHeaderRows, Ai as CrudTablePagination, ji as CrudTableRowActionsMenu, zt as DateField, Lt as DateInput, Ht as DateTimeField, Vt as DateTimeInput, _t as DeleteDialog, I as Dialog, lt as DialogClose, dt as DialogContent, ht as DialogDescription, pt as DialogFooter, ft as DialogHeader, ut as DialogOverlay, ct as DialogPortal, mt as DialogTitle, st as DialogTrigger, mo as DirectionProvider, go as Drawer, yo as DrawerClose, xo as DrawerContent, To as DrawerDescription, Co as DrawerFooter, So as DrawerHeader, bo as DrawerOverlay, vo as DrawerPortal, wo as DrawerTitle, _o as DrawerTrigger, wr as DropdownMenu, kr as DropdownMenuCheckboxItem, Dr as DropdownMenuContent, Or as DropdownMenuGroup, V as DropdownMenuItem, Mr as DropdownMenuLabel, Tr as DropdownMenuPortal, Ar as DropdownMenuRadioGroup, jr as DropdownMenuRadioItem, Nr as DropdownMenuSeparator, Pr as DropdownMenuShortcut, Fr as DropdownMenuSub, Lr as DropdownMenuSubContent, Ir as DropdownMenuSubTrigger, Er as DropdownMenuTrigger, ot as DynamicListContainer, Bn as Empty, Kn as EmptyContent, Gn as EmptyDescription, Vn as EmptyHeader, Un as EmptyMedia, Wn as EmptyTitle, Ao as Field, jo as FieldContent, Po as FieldDescription, Io as FieldError, Oo as FieldGroup, Mo as FieldLabel, Do as FieldLegend, Fo as FieldSeparator, Eo as FieldSet, No as FieldTitle, Wt as FieldsSection, z as FormField, B as Input, Gt as InputField, Ni as InputGroup, Fi as InputGroupAddon, Li as InputGroupButton, zi as InputGroupInput, Ri as InputGroupText, Bi as InputGroupTextarea, Rt as Label, kn as Lightbox, fa as Loading, qt as NumberField, Kt as NumberInput, _r as Pagination, vr as PaginationContent, Cr as PaginationEllipsis, yr as PaginationItem, br as PaginationLink, Sr as PaginationNext, xr as PaginationPrevious, Jt as PasswordField, Yt as PhoneField, At as Popover, Nt as PopoverAnchor, Mt as PopoverContent, It as PopoverDescription, Pt as PopoverHeader, Ft as PopoverTitle, jt as PopoverTrigger, nt as ProtectedRoute, at as SaveButton, Lo as ScrollArea, Ro as ScrollBar, jn as SearchInput, Xi as SearchableSelect, Xt as Select, en as SelectContent, cn as SelectField, Zt as SelectGroup, sn as SelectInput, nn as SelectItem, tn as SelectLabel, on as SelectScrollDownButton, an as SelectScrollUpButton, rn as SelectSeparator, $t as SelectTrigger, Qt as SelectValue, L as Separator, Br as Sheet, Hr as SheetClose, Gr as SheetContent, Yr as SheetDescription, qr as SheetFooter, Kr as SheetHeader, Jr as SheetTitle, Vr as SheetTrigger, ra as SideBarCompanyData, aa as SideBarMainMenu, ua as SideBarSecondaryMenu, da as SideBarUserData, li as Sidebar, _i as SidebarContent, hi as SidebarFooter, vi as SidebarGroup, bi as SidebarGroupAction, xi as SidebarGroupContent, yi as SidebarGroupLabel, mi as SidebarHeader, pi as SidebarInput, fi as SidebarInset, ia as SidebarLogo, Si as SidebarMenu, wi as SidebarMenuAction, Ti as SidebarMenuBadge, W as SidebarMenuButton, U as SidebarMenuItem, Ei as SidebarMenuSkeleton, Di as SidebarMenuSub, ki as SidebarMenuSubButton, Oi as SidebarMenuSubItem, ci as SidebarProvider, di as SidebarRail, gi as SidebarSeparator, ui as SidebarTrigger, Xr as Skeleton, wn as StorageFileField, Bo as Switch, Mn as Table, Pn as TableBody, zn as TableCaption, Rn as TableCell, Fn as TableFooter, Ln as TableHead, Nn as TableHeader, In as TableRow, Vo as Tabs, Go as TabsContent, Uo as TabsList, Wo as TabsTrigger, Dn as TextAreaField, En as TextAreaInput, On as TextField, Tn as Textarea, sa as ThemeProvider, la as ThemeToggle, Ut as TitleSeparator, zo as Toaster, qo as Toggle, Yo as ToggleGroup, Xo as ToggleGroupItem, Qr as Tooltip, ei as TooltipContent, Zr as TooltipProvider, $r as TooltipTrigger, rt as YusrBusBackground, An as ZoomableImage, Aa as badgeVariants, it as buttonVariants, P as cn, is as createGenericDialogSlice, vc as createGenericEntitySlice, Cn as isPDF, rs as setupAuthListeners, Ho as tabsListVariants, Ko as toggleVariants, _n as useCarousel, po as useComboboxAnchor, Zo as useDialog, ho as useDirection, Qo as useDynamicList, es as useEntityForm, $o as useFormValidation, zr as useIsMobile, ts as useLightBox, H as useSidebar, ns as useStorageFile, ca as useTheme };
|