@yusr_systems/ui 6.0.8 → 6.0.10
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 +3 -1
- package/dist/yusr-ui.js +810 -801
- package/package.json +2 -2
package/dist/yusr-ui.js
CHANGED
|
@@ -2,33 +2,33 @@ import { Link as e, Navigate as t, Outlet as n, useLocation as r } from "react-r
|
|
|
2
2
|
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
3
3
|
import { Check as s, CheckIcon as c, ChevronDownIcon as l, ChevronLeft as u, ChevronLeftIcon as d, ChevronRight as f, ChevronRightIcon as p, ChevronUpIcon as m, ChevronsUpDown as h, CircleCheckIcon as g, Download as _, Eye as v, EyeOff as ee, FileText as te, InfoIcon as ne, Loader2 as re, Loader2Icon as ie, LoaderPinwheelIcon as ae, LogOutIcon as oe, Maximize2 as se, Moon as ce, MoreHorizontal as le, MoreHorizontalIcon as ue, OctagonAlert as de, OctagonXIcon as fe, PanelLeftIcon as pe, Plus as me, PlusIcon as he, RefreshCwOff as ge, Search as _e, SearchIcon as ve, Sun as ye, Table as be, TriangleAlertIcon as xe, UploadCloud as Se, X as Ce, XIcon as we, ZoomIn as Te } from "lucide-react";
|
|
4
4
|
import * as y from "react";
|
|
5
|
-
import Ee, {
|
|
5
|
+
import Ee, { Fragment as De, createContext as Oe, useCallback as b, useContext as ke, useEffect as Ae, useMemo as je, useRef as Me, useState as x } from "react";
|
|
6
6
|
import { cva as S } from "class-variance-authority";
|
|
7
7
|
import { Slot as C } from "@radix-ui/react-slot";
|
|
8
|
-
import { clsx as
|
|
9
|
-
import { twMerge as
|
|
8
|
+
import { clsx as Ne } from "clsx";
|
|
9
|
+
import { twMerge as Pe } from "tailwind-merge";
|
|
10
10
|
import * as w from "@radix-ui/react-dialog";
|
|
11
|
-
import * as
|
|
12
|
-
import { format as
|
|
13
|
-
import { DayPicker as
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
11
|
+
import * as Fe from "@radix-ui/react-separator";
|
|
12
|
+
import { format as Ie } from "date-fns";
|
|
13
|
+
import { DayPicker as Le, getDefaultClassNames as Re } from "react-day-picker";
|
|
14
|
+
import * as ze from "@radix-ui/react-popover";
|
|
15
|
+
import * as Be from "@radix-ui/react-label";
|
|
16
16
|
import * as T from "@radix-ui/react-select";
|
|
17
|
-
import
|
|
18
|
-
import { useDebouncedCallback as
|
|
19
|
-
import { useDispatch as
|
|
17
|
+
import Ve from "embla-carousel-react";
|
|
18
|
+
import { useDebouncedCallback as He } from "use-debounce";
|
|
19
|
+
import { useDispatch as Ue } from "react-redux";
|
|
20
20
|
import * as E from "@radix-ui/react-context-menu";
|
|
21
21
|
import * as D from "@radix-ui/react-dropdown-menu";
|
|
22
22
|
import * as O from "@radix-ui/react-tooltip";
|
|
23
23
|
import { Command as k } from "cmdk";
|
|
24
|
-
import * as
|
|
24
|
+
import * as We from "@radix-ui/react-avatar";
|
|
25
25
|
import "@radix-ui/react-accessible-icon";
|
|
26
26
|
import "@radix-ui/react-accordion";
|
|
27
27
|
import * as A from "@radix-ui/react-alert-dialog";
|
|
28
28
|
import "@radix-ui/react-aspect-ratio";
|
|
29
|
-
import * as
|
|
30
|
-
import * as
|
|
31
|
-
import * as
|
|
29
|
+
import * as Ge from "@radix-ui/react-checkbox";
|
|
30
|
+
import * as Ke from "@radix-ui/react-collapsible";
|
|
31
|
+
import * as qe from "@radix-ui/react-direction";
|
|
32
32
|
import "@radix-ui/react-form";
|
|
33
33
|
import "@radix-ui/react-hover-card";
|
|
34
34
|
import "@radix-ui/react-menubar";
|
|
@@ -38,24 +38,24 @@ import "@radix-ui/react-password-toggle-field";
|
|
|
38
38
|
import "@radix-ui/react-portal";
|
|
39
39
|
import "@radix-ui/react-progress";
|
|
40
40
|
import "@radix-ui/react-radio-group";
|
|
41
|
-
import * as
|
|
41
|
+
import * as Je from "@radix-ui/react-scroll-area";
|
|
42
42
|
import "@radix-ui/react-slider";
|
|
43
|
-
import * as
|
|
44
|
-
import * as
|
|
43
|
+
import * as Ye from "@radix-ui/react-switch";
|
|
44
|
+
import * as Xe from "@radix-ui/react-tabs";
|
|
45
45
|
import "@radix-ui/react-toast";
|
|
46
|
-
import * as
|
|
47
|
-
import * as
|
|
46
|
+
import * as Ze from "@radix-ui/react-toggle";
|
|
47
|
+
import * as Qe from "@radix-ui/react-toggle-group";
|
|
48
48
|
import "@radix-ui/react-toolbar";
|
|
49
49
|
import "@radix-ui/react-visually-hidden";
|
|
50
|
-
import * as
|
|
50
|
+
import * as $e from "recharts";
|
|
51
51
|
import { Combobox as j } from "@base-ui/react/combobox";
|
|
52
52
|
import { Drawer as M } from "vaul";
|
|
53
|
-
import { useTheme as
|
|
54
|
-
import { Toaster as
|
|
55
|
-
import { AuthConstants as
|
|
56
|
-
import { createAsyncThunk as
|
|
53
|
+
import { useTheme as et } from "next-themes";
|
|
54
|
+
import { Toaster as tt } from "sonner";
|
|
55
|
+
import { AuthConstants as nt, StorageFile as rt, StorageFileStatus as N } from "@yusr_systems/core";
|
|
56
|
+
import { createAsyncThunk as it, createSlice as at } from "@reduxjs/toolkit";
|
|
57
57
|
//#region src/components/custom/auth/protectedRoute.tsx
|
|
58
|
-
function
|
|
58
|
+
function ot({ isAuthenticated: e, loginPath: i = "/login" }) {
|
|
59
59
|
let o = r();
|
|
60
60
|
return e ? /* @__PURE__ */ a(n, {}) : /* @__PURE__ */ a(t, {
|
|
61
61
|
to: i,
|
|
@@ -65,7 +65,7 @@ function at({ isAuthenticated: e, loginPath: i = "/login" }) {
|
|
|
65
65
|
}
|
|
66
66
|
//#endregion
|
|
67
67
|
//#region src/components/custom/background/yusrBackground.tsx
|
|
68
|
-
function
|
|
68
|
+
function st() {
|
|
69
69
|
return /* @__PURE__ */ o("div", {
|
|
70
70
|
className: "pointer-events-none fixed inset-0 -z-10 overflow-hidden bg-slate-50 dark:bg-background transition-colors duration-500",
|
|
71
71
|
children: [
|
|
@@ -148,11 +148,11 @@ function ot() {
|
|
|
148
148
|
//#endregion
|
|
149
149
|
//#region src/utils/cn.ts
|
|
150
150
|
function P(...e) {
|
|
151
|
-
return Ne(
|
|
151
|
+
return Pe(Ne(e));
|
|
152
152
|
}
|
|
153
153
|
//#endregion
|
|
154
154
|
//#region src/components/pure/button.tsx
|
|
155
|
-
var
|
|
155
|
+
var ct = 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", {
|
|
156
156
|
variants: {
|
|
157
157
|
variant: {
|
|
158
158
|
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80 hover:bg-primary/90 cursor-pointer",
|
|
@@ -183,7 +183,7 @@ function F({ className: e, variant: t = "default", size: n = "default", asChild:
|
|
|
183
183
|
"data-slot": "button",
|
|
184
184
|
"data-variant": t,
|
|
185
185
|
"data-size": n,
|
|
186
|
-
className: P(
|
|
186
|
+
className: P(ct({
|
|
187
187
|
variant: t,
|
|
188
188
|
size: n,
|
|
189
189
|
className: e
|
|
@@ -193,7 +193,7 @@ function F({ className: e, variant: t = "default", size: n = "default", asChild:
|
|
|
193
193
|
}
|
|
194
194
|
//#endregion
|
|
195
195
|
//#region src/components/custom/buttons/saveButton.tsx
|
|
196
|
-
function
|
|
196
|
+
function lt({ formData: e, dialogMode: t, service: n, disable: r, onSuccess: i, validate: s = () => !0 }) {
|
|
197
197
|
let [c, l] = x(!1);
|
|
198
198
|
async function u() {
|
|
199
199
|
if (!s()) return;
|
|
@@ -217,7 +217,7 @@ function ct({ formData: e, dialogMode: t, service: n, disable: r, onSuccess: i,
|
|
|
217
217
|
}
|
|
218
218
|
//#endregion
|
|
219
219
|
//#region src/components/custom/containers/dynamicListContainer.tsx
|
|
220
|
-
function
|
|
220
|
+
function ut({ title: e, items: t, onAdd: n, addLabel: r, emptyMessage: i, error: s, headers: c, children: l }) {
|
|
221
221
|
return /* @__PURE__ */ o("div", {
|
|
222
222
|
className: "space-y-3",
|
|
223
223
|
children: [
|
|
@@ -269,33 +269,33 @@ function I({ ...e }) {
|
|
|
269
269
|
...e
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function dt({ ...e }) {
|
|
273
273
|
return /* @__PURE__ */ a(w.Trigger, {
|
|
274
274
|
"data-slot": "dialog-trigger",
|
|
275
275
|
...e
|
|
276
276
|
});
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function ft({ ...e }) {
|
|
279
279
|
return /* @__PURE__ */ a(w.Portal, {
|
|
280
280
|
"data-slot": "dialog-portal",
|
|
281
281
|
...e
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function pt({ ...e }) {
|
|
285
285
|
return /* @__PURE__ */ a(w.Close, {
|
|
286
286
|
"data-slot": "dialog-close",
|
|
287
287
|
...e
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function mt({ className: e, ...t }) {
|
|
291
291
|
return /* @__PURE__ */ a(w.Overlay, {
|
|
292
292
|
"data-slot": "dialog-overlay",
|
|
293
293
|
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),
|
|
294
294
|
...t
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
|
-
function
|
|
298
|
-
return /* @__PURE__ */ o(
|
|
297
|
+
function ht({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
298
|
+
return /* @__PURE__ */ o(ft, { children: [/* @__PURE__ */ a(mt, {}), /* @__PURE__ */ o(w.Content, {
|
|
299
299
|
"data-slot": "dialog-content",
|
|
300
300
|
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),
|
|
301
301
|
...r,
|
|
@@ -314,14 +314,14 @@ function mt({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
|
314
314
|
})]
|
|
315
315
|
})] });
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function gt({ className: e, ...t }) {
|
|
318
318
|
return /* @__PURE__ */ a("div", {
|
|
319
319
|
"data-slot": "dialog-header",
|
|
320
320
|
className: P("gap-2 flex flex-col", e),
|
|
321
321
|
...t
|
|
322
322
|
});
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function _t({ className: e, showCloseButton: t = !1, children: n, ...r }) {
|
|
325
325
|
return /* @__PURE__ */ o("div", {
|
|
326
326
|
"data-slot": "dialog-footer",
|
|
327
327
|
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),
|
|
@@ -335,14 +335,14 @@ function gt({ className: e, showCloseButton: t = !1, children: n, ...r }) {
|
|
|
335
335
|
})]
|
|
336
336
|
});
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function vt({ className: e, ...t }) {
|
|
339
339
|
return /* @__PURE__ */ a(w.Title, {
|
|
340
340
|
"data-slot": "dialog-title",
|
|
341
341
|
className: P("text-base leading-none font-medium", e),
|
|
342
342
|
...t
|
|
343
343
|
});
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function yt({ className: e, ...t }) {
|
|
346
346
|
return /* @__PURE__ */ a(w.Description, {
|
|
347
347
|
"data-slot": "dialog-description",
|
|
348
348
|
className: P("text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3", e),
|
|
@@ -352,7 +352,7 @@ function vt({ className: e, ...t }) {
|
|
|
352
352
|
//#endregion
|
|
353
353
|
//#region src/components/pure/separator.tsx
|
|
354
354
|
function L({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }) {
|
|
355
|
-
return /* @__PURE__ */ a(
|
|
355
|
+
return /* @__PURE__ */ a(Fe.Root, {
|
|
356
356
|
"data-slot": "separator",
|
|
357
357
|
decorative: n,
|
|
358
358
|
orientation: t,
|
|
@@ -362,21 +362,21 @@ function L({ className: e, orientation: t = "horizontal", decorative: n = !0, ..
|
|
|
362
362
|
}
|
|
363
363
|
//#endregion
|
|
364
364
|
//#region src/components/custom/dialogs/changeDialog.tsx
|
|
365
|
-
function
|
|
366
|
-
return /* @__PURE__ */ o(
|
|
365
|
+
function bt({ 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 }) {
|
|
366
|
+
return /* @__PURE__ */ o(ht, {
|
|
367
367
|
dir: "rtl",
|
|
368
368
|
className: P(n, "scroll-auto"),
|
|
369
369
|
children: [
|
|
370
|
-
/* @__PURE__ */ o(
|
|
370
|
+
/* @__PURE__ */ o(gt, { children: [/* @__PURE__ */ a(vt, { children: e }), /* @__PURE__ */ a(yt, { children: t })] }),
|
|
371
371
|
/* @__PURE__ */ a(L, {}),
|
|
372
372
|
d,
|
|
373
|
-
/* @__PURE__ */ o(
|
|
373
|
+
/* @__PURE__ */ o(_t, { children: [/* @__PURE__ */ a(pt, {
|
|
374
374
|
asChild: !0,
|
|
375
375
|
children: /* @__PURE__ */ a(F, {
|
|
376
376
|
variant: "outline",
|
|
377
377
|
children: "إلغاء"
|
|
378
378
|
})
|
|
379
|
-
}), /* @__PURE__ */ a(
|
|
379
|
+
}), /* @__PURE__ */ a(lt, {
|
|
380
380
|
formData: r,
|
|
381
381
|
dialogMode: i,
|
|
382
382
|
service: s,
|
|
@@ -389,13 +389,13 @@ function yt({ title: e, description: t = "", className: n = "sm:max-w-sm", formD
|
|
|
389
389
|
}
|
|
390
390
|
//#endregion
|
|
391
391
|
//#region src/components/custom/dialogs/deleteDialog.tsx
|
|
392
|
-
function
|
|
392
|
+
function xt({ entityName: e, id: t, service: n, onSuccess: r }) {
|
|
393
393
|
let [s, c] = x(!1);
|
|
394
394
|
async function l() {
|
|
395
395
|
c(!0), (await n.Delete(t)).status === 200 && r?.(), c(!1);
|
|
396
396
|
}
|
|
397
397
|
return /* @__PURE__ */ o(i, { children: [
|
|
398
|
-
/* @__PURE__ */ o(
|
|
398
|
+
/* @__PURE__ */ o(gt, { children: [/* @__PURE__ */ o(vt, { children: ["حذف ", e] }), /* @__PURE__ */ a(yt, {})] }),
|
|
399
399
|
/* @__PURE__ */ a(L, {}),
|
|
400
400
|
/* @__PURE__ */ a("div", {
|
|
401
401
|
className: "mx-auto mb-2 flex h-14 w-14 items-center justify-center rounded-full bg-destructive/10",
|
|
@@ -419,7 +419,7 @@ function bt({ entityName: e, id: t, service: n, onSuccess: r }) {
|
|
|
419
419
|
" نهائياً وإزالته من خوادمنا."
|
|
420
420
|
]
|
|
421
421
|
}),
|
|
422
|
-
/* @__PURE__ */ o(
|
|
422
|
+
/* @__PURE__ */ o(_t, { children: [/* @__PURE__ */ a(pt, {
|
|
423
423
|
asChild: !0,
|
|
424
424
|
children: /* @__PURE__ */ a(F, {
|
|
425
425
|
variant: "outline",
|
|
@@ -435,7 +435,7 @@ function bt({ entityName: e, id: t, service: n, onSuccess: r }) {
|
|
|
435
435
|
}
|
|
436
436
|
//#endregion
|
|
437
437
|
//#region ../../node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
438
|
-
function
|
|
438
|
+
function St(e) {
|
|
439
439
|
return (t = {}) => {
|
|
440
440
|
let n = t.width ? String(t.width) : e.defaultWidth;
|
|
441
441
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
@@ -443,7 +443,7 @@ function xt(e) {
|
|
|
443
443
|
}
|
|
444
444
|
//#endregion
|
|
445
445
|
//#region ../../node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
446
|
-
function
|
|
446
|
+
function Ct(e) {
|
|
447
447
|
return (t, n) => {
|
|
448
448
|
let r = n?.context ? String(n.context) : "standalone", i;
|
|
449
449
|
if (r === "formatting" && e.formattingValues) {
|
|
@@ -459,11 +459,11 @@ function St(e) {
|
|
|
459
459
|
}
|
|
460
460
|
//#endregion
|
|
461
461
|
//#region ../../node_modules/date-fns/locale/_lib/buildMatchFn.js
|
|
462
|
-
function
|
|
462
|
+
function wt(e) {
|
|
463
463
|
return (t, n = {}) => {
|
|
464
464
|
let r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
|
|
465
465
|
if (!a) return null;
|
|
466
|
-
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ?
|
|
466
|
+
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? Et(s, (e) => e.test(o)) : Tt(s, (e) => e.test(o)), l;
|
|
467
467
|
l = e.valueCallback ? e.valueCallback(c) : c, l = n.valueCallback ? n.valueCallback(l) : l;
|
|
468
468
|
let u = t.slice(o.length);
|
|
469
469
|
return {
|
|
@@ -472,15 +472,15 @@ function Ct(e) {
|
|
|
472
472
|
};
|
|
473
473
|
};
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function Tt(e, t) {
|
|
476
476
|
for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function Et(e, t) {
|
|
479
479
|
for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
|
|
480
480
|
}
|
|
481
481
|
//#endregion
|
|
482
482
|
//#region ../../node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
483
|
-
function
|
|
483
|
+
function Dt(e) {
|
|
484
484
|
return (t, n = {}) => {
|
|
485
485
|
let r = t.match(e.matchPattern);
|
|
486
486
|
if (!r) return null;
|
|
@@ -497,7 +497,7 @@ function Et(e) {
|
|
|
497
497
|
}
|
|
498
498
|
//#endregion
|
|
499
499
|
//#region ../../node_modules/date-fns/locale/ar-SA/_lib/formatDistance.js
|
|
500
|
-
var
|
|
500
|
+
var Ot = {
|
|
501
501
|
lessThanXSeconds: {
|
|
502
502
|
one: "أقل من ثانية واحدة",
|
|
503
503
|
two: "أقل من ثانتين",
|
|
@@ -589,11 +589,11 @@ var Dt = {
|
|
|
589
589
|
threeToTen: "{{count}} أعوام تقريباً",
|
|
590
590
|
other: "{{count}} عام تقريباً"
|
|
591
591
|
}
|
|
592
|
-
},
|
|
593
|
-
let r, i =
|
|
592
|
+
}, kt = (e, t, n) => {
|
|
593
|
+
let r, i = Ot[e];
|
|
594
594
|
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;
|
|
595
|
-
},
|
|
596
|
-
date:
|
|
595
|
+
}, At = {
|
|
596
|
+
date: St({
|
|
597
597
|
formats: {
|
|
598
598
|
full: "EEEE, MMMM do, y",
|
|
599
599
|
long: "MMMM do, y",
|
|
@@ -602,7 +602,7 @@ var Dt = {
|
|
|
602
602
|
},
|
|
603
603
|
defaultWidth: "full"
|
|
604
604
|
}),
|
|
605
|
-
time:
|
|
605
|
+
time: St({
|
|
606
606
|
formats: {
|
|
607
607
|
full: "h:mm:ss a zzzz",
|
|
608
608
|
long: "h:mm:ss a z",
|
|
@@ -611,7 +611,7 @@ var Dt = {
|
|
|
611
611
|
},
|
|
612
612
|
defaultWidth: "full"
|
|
613
613
|
}),
|
|
614
|
-
dateTime:
|
|
614
|
+
dateTime: St({
|
|
615
615
|
formats: {
|
|
616
616
|
full: "{{date}} 'عند' {{time}}",
|
|
617
617
|
long: "{{date}} 'عند' {{time}}",
|
|
@@ -620,21 +620,21 @@ var Dt = {
|
|
|
620
620
|
},
|
|
621
621
|
defaultWidth: "full"
|
|
622
622
|
})
|
|
623
|
-
},
|
|
623
|
+
}, jt = {
|
|
624
624
|
lastWeek: "'أخر' eeee 'عند' p",
|
|
625
625
|
yesterday: "'أمس عند' p",
|
|
626
626
|
today: "'اليوم عند' p",
|
|
627
627
|
tomorrow: "'غداً عند' p",
|
|
628
628
|
nextWeek: "eeee 'عند' p",
|
|
629
629
|
other: "P"
|
|
630
|
-
},
|
|
630
|
+
}, Mt = {
|
|
631
631
|
code: "ar-SA",
|
|
632
|
-
formatDistance:
|
|
633
|
-
formatLong:
|
|
634
|
-
formatRelative: (e, t, n, r) =>
|
|
632
|
+
formatDistance: kt,
|
|
633
|
+
formatLong: At,
|
|
634
|
+
formatRelative: (e, t, n, r) => jt[e],
|
|
635
635
|
localize: {
|
|
636
636
|
ordinalNumber: (e) => String(e),
|
|
637
|
-
era:
|
|
637
|
+
era: Ct({
|
|
638
638
|
values: {
|
|
639
639
|
narrow: ["ق", "ب"],
|
|
640
640
|
abbreviated: ["ق.م.", "ب.م."],
|
|
@@ -642,7 +642,7 @@ var Dt = {
|
|
|
642
642
|
},
|
|
643
643
|
defaultWidth: "wide"
|
|
644
644
|
}),
|
|
645
|
-
quarter:
|
|
645
|
+
quarter: Ct({
|
|
646
646
|
values: {
|
|
647
647
|
narrow: [
|
|
648
648
|
"1",
|
|
@@ -666,7 +666,7 @@ var Dt = {
|
|
|
666
666
|
defaultWidth: "wide",
|
|
667
667
|
argumentCallback: (e) => e - 1
|
|
668
668
|
}),
|
|
669
|
-
month:
|
|
669
|
+
month: Ct({
|
|
670
670
|
values: {
|
|
671
671
|
narrow: [
|
|
672
672
|
"ي",
|
|
@@ -713,7 +713,7 @@ var Dt = {
|
|
|
713
713
|
},
|
|
714
714
|
defaultWidth: "wide"
|
|
715
715
|
}),
|
|
716
|
-
day:
|
|
716
|
+
day: Ct({
|
|
717
717
|
values: {
|
|
718
718
|
narrow: [
|
|
719
719
|
"ح",
|
|
@@ -754,7 +754,7 @@ var Dt = {
|
|
|
754
754
|
},
|
|
755
755
|
defaultWidth: "wide"
|
|
756
756
|
}),
|
|
757
|
-
dayPeriod:
|
|
757
|
+
dayPeriod: Ct({
|
|
758
758
|
values: {
|
|
759
759
|
narrow: {
|
|
760
760
|
am: "ص",
|
|
@@ -824,12 +824,12 @@ var Dt = {
|
|
|
824
824
|
})
|
|
825
825
|
},
|
|
826
826
|
match: {
|
|
827
|
-
ordinalNumber:
|
|
827
|
+
ordinalNumber: Dt({
|
|
828
828
|
matchPattern: /^(\d+)(th|st|nd|rd)?/i,
|
|
829
829
|
parsePattern: /\d+/i,
|
|
830
830
|
valueCallback: (e) => parseInt(e, 10)
|
|
831
831
|
}),
|
|
832
|
-
era:
|
|
832
|
+
era: wt({
|
|
833
833
|
matchPatterns: {
|
|
834
834
|
narrow: /^(ق|ب)/i,
|
|
835
835
|
abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,
|
|
@@ -839,7 +839,7 @@ var Dt = {
|
|
|
839
839
|
parsePatterns: { any: [/^قبل/i, /^بعد/i] },
|
|
840
840
|
defaultParseWidth: "any"
|
|
841
841
|
}),
|
|
842
|
-
quarter:
|
|
842
|
+
quarter: wt({
|
|
843
843
|
matchPatterns: {
|
|
844
844
|
narrow: /^[1234]/i,
|
|
845
845
|
abbreviated: /^ر[1234]/i,
|
|
@@ -855,7 +855,7 @@ var Dt = {
|
|
|
855
855
|
defaultParseWidth: "any",
|
|
856
856
|
valueCallback: (e) => e + 1
|
|
857
857
|
}),
|
|
858
|
-
month:
|
|
858
|
+
month: wt({
|
|
859
859
|
matchPatterns: {
|
|
860
860
|
narrow: /^[يفمأمسند]/i,
|
|
861
861
|
abbreviated: /^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i,
|
|
@@ -894,7 +894,7 @@ var Dt = {
|
|
|
894
894
|
},
|
|
895
895
|
defaultParseWidth: "any"
|
|
896
896
|
}),
|
|
897
|
-
day:
|
|
897
|
+
day: wt({
|
|
898
898
|
matchPatterns: {
|
|
899
899
|
narrow: /^[حنثرخجس]/i,
|
|
900
900
|
short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,
|
|
@@ -933,7 +933,7 @@ var Dt = {
|
|
|
933
933
|
},
|
|
934
934
|
defaultParseWidth: "any"
|
|
935
935
|
}),
|
|
936
|
-
dayPeriod:
|
|
936
|
+
dayPeriod: wt({
|
|
937
937
|
matchPatterns: {
|
|
938
938
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
939
939
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
@@ -959,9 +959,9 @@ var Dt = {
|
|
|
959
959
|
};
|
|
960
960
|
//#endregion
|
|
961
961
|
//#region src/components/pure/calendar.tsx
|
|
962
|
-
function
|
|
963
|
-
let f =
|
|
964
|
-
return /* @__PURE__ */ a(
|
|
962
|
+
function Nt({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout: r = "label", buttonVariant: i = "ghost", locale: o, formatters: s, components: c, ...u }) {
|
|
963
|
+
let f = Re();
|
|
964
|
+
return /* @__PURE__ */ a(Le, {
|
|
965
965
|
showOutsideDays: n,
|
|
966
966
|
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),
|
|
967
967
|
captionLayout: r,
|
|
@@ -975,8 +975,8 @@ function Mt({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
975
975
|
months: P("flex gap-4 flex-col md:flex-row relative", f.months),
|
|
976
976
|
month: P("flex flex-col w-full gap-4", f.month),
|
|
977
977
|
nav: P("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between", f.nav),
|
|
978
|
-
button_previous: P(
|
|
979
|
-
button_next: P(
|
|
978
|
+
button_previous: P(ct({ variant: i }), "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", f.button_previous),
|
|
979
|
+
button_next: P(ct({ variant: i }), "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", f.button_next),
|
|
980
980
|
month_caption: P("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)", f.month_caption),
|
|
981
981
|
dropdowns: P("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5", f.dropdowns),
|
|
982
982
|
dropdown_root: P("relative rounded-(--cell-radius)", f.dropdown_root),
|
|
@@ -1015,7 +1015,7 @@ function Mt({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
1015
1015
|
className: P("size-4", e),
|
|
1016
1016
|
...n
|
|
1017
1017
|
}),
|
|
1018
|
-
DayButton: ({ ...e }) => /* @__PURE__ */ a(
|
|
1018
|
+
DayButton: ({ ...e }) => /* @__PURE__ */ a(Pt, {
|
|
1019
1019
|
locale: o,
|
|
1020
1020
|
...e
|
|
1021
1021
|
}),
|
|
@@ -1031,8 +1031,8 @@ function Mt({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
1031
1031
|
...u
|
|
1032
1032
|
});
|
|
1033
1033
|
}
|
|
1034
|
-
function
|
|
1035
|
-
let o =
|
|
1034
|
+
function Pt({ className: e, day: t, modifiers: n, locale: r, ...i }) {
|
|
1035
|
+
let o = Re(), s = y.useRef(null);
|
|
1036
1036
|
return y.useEffect(() => {
|
|
1037
1037
|
n.focused && s.current?.focus();
|
|
1038
1038
|
}, [n.focused]), /* @__PURE__ */ a(F, {
|
|
@@ -1050,20 +1050,20 @@ function Nt({ className: e, day: t, modifiers: n, locale: r, ...i }) {
|
|
|
1050
1050
|
}
|
|
1051
1051
|
//#endregion
|
|
1052
1052
|
//#region src/components/pure/popover.tsx
|
|
1053
|
-
function
|
|
1054
|
-
return /* @__PURE__ */ a(
|
|
1053
|
+
function Ft({ ...e }) {
|
|
1054
|
+
return /* @__PURE__ */ a(ze.Root, {
|
|
1055
1055
|
"data-slot": "popover",
|
|
1056
1056
|
...e
|
|
1057
1057
|
});
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1060
|
-
return /* @__PURE__ */ a(
|
|
1059
|
+
function It({ ...e }) {
|
|
1060
|
+
return /* @__PURE__ */ a(ze.Trigger, {
|
|
1061
1061
|
"data-slot": "popover-trigger",
|
|
1062
1062
|
...e
|
|
1063
1063
|
});
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1066
|
-
return /* @__PURE__ */ a(
|
|
1065
|
+
function Lt({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
1066
|
+
return /* @__PURE__ */ a(ze.Portal, { children: /* @__PURE__ */ a(ze.Content, {
|
|
1067
1067
|
"data-slot": "popover-content",
|
|
1068
1068
|
align: t,
|
|
1069
1069
|
sideOffset: n,
|
|
@@ -1071,27 +1071,27 @@ function It({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
|
1071
1071
|
...r
|
|
1072
1072
|
}) });
|
|
1073
1073
|
}
|
|
1074
|
-
function
|
|
1075
|
-
return /* @__PURE__ */ a(
|
|
1074
|
+
function Rt({ ...e }) {
|
|
1075
|
+
return /* @__PURE__ */ a(ze.Anchor, {
|
|
1076
1076
|
"data-slot": "popover-anchor",
|
|
1077
1077
|
...e
|
|
1078
1078
|
});
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1080
|
+
function zt({ className: e, ...t }) {
|
|
1081
1081
|
return /* @__PURE__ */ a("div", {
|
|
1082
1082
|
"data-slot": "popover-header",
|
|
1083
1083
|
className: P("flex flex-col gap-0.5 text-sm", e),
|
|
1084
1084
|
...t
|
|
1085
1085
|
});
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function Bt({ className: e, ...t }) {
|
|
1088
1088
|
return /* @__PURE__ */ a("div", {
|
|
1089
1089
|
"data-slot": "popover-title",
|
|
1090
1090
|
className: P("font-medium", e),
|
|
1091
1091
|
...t
|
|
1092
1092
|
});
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function Vt({ className: e, ...t }) {
|
|
1095
1095
|
return /* @__PURE__ */ a("p", {
|
|
1096
1096
|
"data-slot": "popover-description",
|
|
1097
1097
|
className: P("text-muted-foreground", e),
|
|
@@ -1100,22 +1100,22 @@ function Bt({ className: e, ...t }) {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
//#endregion
|
|
1102
1102
|
//#region src/components/custom/inputs/dateInput.tsx
|
|
1103
|
-
function
|
|
1103
|
+
function Ht({ value: e, onChange: t, isInvalid: n, placeholder: r = "اختر تاريخا", locale: i = Mt, startYear: s = (/* @__PURE__ */ new Date()).getFullYear() - 100, endYear: c = (/* @__PURE__ */ new Date()).getFullYear() + 10 }) {
|
|
1104
1104
|
let [u, d] = x(!1);
|
|
1105
|
-
return /* @__PURE__ */ o(
|
|
1105
|
+
return /* @__PURE__ */ o(Ft, {
|
|
1106
1106
|
open: u,
|
|
1107
1107
|
onOpenChange: d,
|
|
1108
|
-
children: [/* @__PURE__ */ a(
|
|
1108
|
+
children: [/* @__PURE__ */ a(It, {
|
|
1109
1109
|
asChild: !0,
|
|
1110
1110
|
children: /* @__PURE__ */ o(F, {
|
|
1111
1111
|
variant: "outline",
|
|
1112
1112
|
className: P("w-full justify-between text-left font-normal", !e && "text-muted-foreground", n && "border-red-600 ring-red-600 text-red-900"),
|
|
1113
|
-
children: [e ?
|
|
1113
|
+
children: [e ? Ie(e, "PPP", { locale: i }) : /* @__PURE__ */ a("span", { children: r }), /* @__PURE__ */ a(l, { className: "h-4 w-4 opacity-50" })]
|
|
1114
1114
|
})
|
|
1115
|
-
}), /* @__PURE__ */ a(
|
|
1115
|
+
}), /* @__PURE__ */ a(Lt, {
|
|
1116
1116
|
className: "w-auto p-0",
|
|
1117
1117
|
align: "start",
|
|
1118
|
-
children: /* @__PURE__ */ a(
|
|
1118
|
+
children: /* @__PURE__ */ a(Nt, {
|
|
1119
1119
|
mode: "single",
|
|
1120
1120
|
selected: e,
|
|
1121
1121
|
onSelect: (e) => {
|
|
@@ -1131,8 +1131,8 @@ function Vt({ value: e, onChange: t, isInvalid: n, placeholder: r = "اختر ت
|
|
|
1131
1131
|
}
|
|
1132
1132
|
//#endregion
|
|
1133
1133
|
//#region src/components/pure/label.tsx
|
|
1134
|
-
function
|
|
1135
|
-
return /* @__PURE__ */ a(
|
|
1134
|
+
function Ut({ className: e, ...t }) {
|
|
1135
|
+
return /* @__PURE__ */ a(Be.Root, {
|
|
1136
1136
|
"data-slot": "label",
|
|
1137
1137
|
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),
|
|
1138
1138
|
...t
|
|
@@ -1146,7 +1146,7 @@ function R({ label: e, error: t, isInvalid: n, children: r, required: i }) {
|
|
|
1146
1146
|
children: [
|
|
1147
1147
|
/* @__PURE__ */ o("div", {
|
|
1148
1148
|
className: "flex items-center gap-1",
|
|
1149
|
-
children: [/* @__PURE__ */ a(
|
|
1149
|
+
children: [/* @__PURE__ */ a(Ut, {
|
|
1150
1150
|
className: "text-sm font-medium",
|
|
1151
1151
|
children: e
|
|
1152
1152
|
}), i && /* @__PURE__ */ a("span", {
|
|
@@ -1164,13 +1164,13 @@ function R({ label: e, error: t, isInvalid: n, children: r, required: i }) {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
//#endregion
|
|
1166
1166
|
//#region src/components/custom/fields/dateField.tsx
|
|
1167
|
-
function
|
|
1167
|
+
function Wt({ label: e, error: t, isInvalid: n, required: r, ...i }) {
|
|
1168
1168
|
return /* @__PURE__ */ a(R, {
|
|
1169
1169
|
label: e,
|
|
1170
1170
|
error: t,
|
|
1171
1171
|
isInvalid: n,
|
|
1172
1172
|
required: r,
|
|
1173
|
-
children: /* @__PURE__ */ a(
|
|
1173
|
+
children: /* @__PURE__ */ a(Ht, {
|
|
1174
1174
|
...i,
|
|
1175
1175
|
isInvalid: n
|
|
1176
1176
|
})
|
|
@@ -1188,7 +1188,7 @@ function z({ className: e, type: t, ...n }) {
|
|
|
1188
1188
|
}
|
|
1189
1189
|
//#endregion
|
|
1190
1190
|
//#region src/components/custom/inputs/baseInput.tsx
|
|
1191
|
-
function
|
|
1191
|
+
function Gt({ isInvalid: e, className: t, ...n }) {
|
|
1192
1192
|
return /* @__PURE__ */ a(z, {
|
|
1193
1193
|
...n,
|
|
1194
1194
|
className: P(t, e && "border-red-500 ring-red-500 text-red-900 focus-visible:ring-red-500")
|
|
@@ -1196,13 +1196,13 @@ function Wt({ isInvalid: e, className: t, ...n }) {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
//#endregion
|
|
1198
1198
|
//#region src/components/custom/inputs/dateTimeInput.tsx
|
|
1199
|
-
function
|
|
1199
|
+
function Kt({ value: e, onChange: t, isInvalid: n, locale: r = Mt }) {
|
|
1200
1200
|
let i = e instanceof Date ? e : void 0;
|
|
1201
1201
|
return /* @__PURE__ */ o("div", {
|
|
1202
1202
|
className: "flex gap-2 w-full",
|
|
1203
1203
|
children: [/* @__PURE__ */ a("div", {
|
|
1204
1204
|
className: "flex-1",
|
|
1205
|
-
children: /* @__PURE__ */ a(
|
|
1205
|
+
children: /* @__PURE__ */ a(Ht, {
|
|
1206
1206
|
value: i,
|
|
1207
1207
|
onChange: (e) => {
|
|
1208
1208
|
if (!e) return;
|
|
@@ -1215,10 +1215,10 @@ function Gt({ value: e, onChange: t, isInvalid: n, locale: r = jt }) {
|
|
|
1215
1215
|
})
|
|
1216
1216
|
}), /* @__PURE__ */ a("div", {
|
|
1217
1217
|
className: "w-24",
|
|
1218
|
-
children: /* @__PURE__ */ a(
|
|
1218
|
+
children: /* @__PURE__ */ a(Gt, {
|
|
1219
1219
|
type: "time",
|
|
1220
1220
|
className: "bg-background appearance-none",
|
|
1221
|
-
value: i ?
|
|
1221
|
+
value: i ? Ie(i, "HH:mm") : "",
|
|
1222
1222
|
onChange: (e) => {
|
|
1223
1223
|
let n = e.target.value;
|
|
1224
1224
|
if (!n) return;
|
|
@@ -1232,13 +1232,13 @@ function Gt({ value: e, onChange: t, isInvalid: n, locale: r = jt }) {
|
|
|
1232
1232
|
}
|
|
1233
1233
|
//#endregion
|
|
1234
1234
|
//#region src/components/custom/fields/dateTimeField.tsx
|
|
1235
|
-
function
|
|
1235
|
+
function qt({ label: e, error: t, isInvalid: n, required: r, ...i }) {
|
|
1236
1236
|
return /* @__PURE__ */ a(R, {
|
|
1237
1237
|
label: e,
|
|
1238
1238
|
error: t,
|
|
1239
1239
|
isInvalid: n,
|
|
1240
1240
|
required: r,
|
|
1241
|
-
children: /* @__PURE__ */ a(
|
|
1241
|
+
children: /* @__PURE__ */ a(Kt, {
|
|
1242
1242
|
...i,
|
|
1243
1243
|
isInvalid: n
|
|
1244
1244
|
})
|
|
@@ -1246,12 +1246,12 @@ function Kt({ label: e, error: t, isInvalid: n, required: r, ...i }) {
|
|
|
1246
1246
|
}
|
|
1247
1247
|
//#endregion
|
|
1248
1248
|
//#region src/components/custom/separators/titleSeparator.tsx
|
|
1249
|
-
function
|
|
1249
|
+
function Jt({ title: e }) {
|
|
1250
1250
|
return /* @__PURE__ */ o("div", {
|
|
1251
1251
|
className: "flex items-center gap-4",
|
|
1252
1252
|
children: [
|
|
1253
1253
|
/* @__PURE__ */ a(L, { className: "flex-1" }),
|
|
1254
|
-
/* @__PURE__ */ a(
|
|
1254
|
+
/* @__PURE__ */ a(Ut, {
|
|
1255
1255
|
className: "shrink-0 text-sm font-semibold",
|
|
1256
1256
|
children: e
|
|
1257
1257
|
}),
|
|
@@ -1261,10 +1261,10 @@ function qt({ title: e }) {
|
|
|
1261
1261
|
}
|
|
1262
1262
|
//#endregion
|
|
1263
1263
|
//#region src/components/custom/fields/fieldsSection.tsx
|
|
1264
|
-
function
|
|
1264
|
+
function Yt({ title: e, children: t, columns: n = 2, className: r }) {
|
|
1265
1265
|
return /* @__PURE__ */ o("div", {
|
|
1266
1266
|
className: P("space-y-3", r),
|
|
1267
|
-
children: [e && /* @__PURE__ */ a(
|
|
1267
|
+
children: [e && /* @__PURE__ */ a(Jt, { title: e }), /* @__PURE__ */ a("div", {
|
|
1268
1268
|
className: P("grid gap-4", {
|
|
1269
1269
|
"grid-cols-1": n === 1,
|
|
1270
1270
|
"grid-cols-2": n === 2,
|
|
@@ -1276,13 +1276,13 @@ function Jt({ title: e, children: t, columns: n = 2, className: r }) {
|
|
|
1276
1276
|
}
|
|
1277
1277
|
//#endregion
|
|
1278
1278
|
//#region src/components/custom/fields/inputField.tsx
|
|
1279
|
-
function
|
|
1279
|
+
function Xt({ label: e, error: t, isInvalid: n, required: r, ...i }) {
|
|
1280
1280
|
return /* @__PURE__ */ a(R, {
|
|
1281
1281
|
label: e,
|
|
1282
1282
|
error: t,
|
|
1283
1283
|
isInvalid: n,
|
|
1284
1284
|
required: r,
|
|
1285
|
-
children: /* @__PURE__ */ a(
|
|
1285
|
+
children: /* @__PURE__ */ a(Gt, {
|
|
1286
1286
|
...i,
|
|
1287
1287
|
isInvalid: n
|
|
1288
1288
|
})
|
|
@@ -1290,7 +1290,7 @@ function Yt({ label: e, error: t, isInvalid: n, required: r, ...i }) {
|
|
|
1290
1290
|
}
|
|
1291
1291
|
//#endregion
|
|
1292
1292
|
//#region src/components/custom/inputs/numberInput.tsx
|
|
1293
|
-
function
|
|
1293
|
+
function Zt({ onChange: e, min: t, max: n, isInvalid: r, className: i, ...o }) {
|
|
1294
1294
|
return /* @__PURE__ */ a(z, {
|
|
1295
1295
|
...o,
|
|
1296
1296
|
type: "number",
|
|
@@ -1310,13 +1310,13 @@ function Xt({ onChange: e, min: t, max: n, isInvalid: r, className: i, ...o }) {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
//#endregion
|
|
1312
1312
|
//#region src/components/custom/fields/numberField.tsx
|
|
1313
|
-
function
|
|
1313
|
+
function Qt({ label: e, error: t, isInvalid: n, required: r, ...i }) {
|
|
1314
1314
|
return /* @__PURE__ */ a(R, {
|
|
1315
1315
|
label: e,
|
|
1316
1316
|
error: t,
|
|
1317
1317
|
isInvalid: n,
|
|
1318
1318
|
required: r,
|
|
1319
|
-
children: /* @__PURE__ */ a(
|
|
1319
|
+
children: /* @__PURE__ */ a(Zt, {
|
|
1320
1320
|
...i,
|
|
1321
1321
|
isInvalid: n
|
|
1322
1322
|
})
|
|
@@ -1324,11 +1324,11 @@ function Zt({ label: e, error: t, isInvalid: n, required: r, ...i }) {
|
|
|
1324
1324
|
}
|
|
1325
1325
|
//#endregion
|
|
1326
1326
|
//#region src/components/custom/fields/passwordField.tsx
|
|
1327
|
-
function
|
|
1327
|
+
function $t(e) {
|
|
1328
1328
|
let [t, n] = x(!1);
|
|
1329
1329
|
return /* @__PURE__ */ o("div", {
|
|
1330
1330
|
className: "relative",
|
|
1331
|
-
children: [/* @__PURE__ */ a(
|
|
1331
|
+
children: [/* @__PURE__ */ a(Xt, {
|
|
1332
1332
|
...e,
|
|
1333
1333
|
type: t ? "text" : "password",
|
|
1334
1334
|
className: "pl-10"
|
|
@@ -1342,8 +1342,8 @@ function Qt(e) {
|
|
|
1342
1342
|
}
|
|
1343
1343
|
//#endregion
|
|
1344
1344
|
//#region src/components/custom/fields/phoneField.tsx
|
|
1345
|
-
function
|
|
1346
|
-
return /* @__PURE__ */ a(
|
|
1345
|
+
function en(e) {
|
|
1346
|
+
return /* @__PURE__ */ a(Xt, {
|
|
1347
1347
|
...e,
|
|
1348
1348
|
type: "tel",
|
|
1349
1349
|
dir: "ltr",
|
|
@@ -1353,26 +1353,26 @@ function $t(e) {
|
|
|
1353
1353
|
}
|
|
1354
1354
|
//#endregion
|
|
1355
1355
|
//#region src/components/pure/select.tsx
|
|
1356
|
-
function
|
|
1356
|
+
function tn({ ...e }) {
|
|
1357
1357
|
return /* @__PURE__ */ a(T.Root, {
|
|
1358
1358
|
"data-slot": "select",
|
|
1359
1359
|
...e
|
|
1360
1360
|
});
|
|
1361
1361
|
}
|
|
1362
|
-
function
|
|
1362
|
+
function nn({ className: e, ...t }) {
|
|
1363
1363
|
return /* @__PURE__ */ a(T.Group, {
|
|
1364
1364
|
"data-slot": "select-group",
|
|
1365
1365
|
className: P("scroll-my-1 p-1", e),
|
|
1366
1366
|
...t
|
|
1367
1367
|
});
|
|
1368
1368
|
}
|
|
1369
|
-
function
|
|
1369
|
+
function rn({ ...e }) {
|
|
1370
1370
|
return /* @__PURE__ */ a(T.Value, {
|
|
1371
1371
|
"data-slot": "select-value",
|
|
1372
1372
|
...e
|
|
1373
1373
|
});
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1375
|
+
function an({ className: e, size: t = "default", children: n, ...r }) {
|
|
1376
1376
|
return /* @__PURE__ */ o(T.Trigger, {
|
|
1377
1377
|
"data-slot": "select-trigger",
|
|
1378
1378
|
"data-size": t,
|
|
@@ -1384,7 +1384,7 @@ function rn({ className: e, size: t = "default", children: n, ...r }) {
|
|
|
1384
1384
|
})]
|
|
1385
1385
|
});
|
|
1386
1386
|
}
|
|
1387
|
-
function
|
|
1387
|
+
function on({ className: e, children: t, position: n = "item-aligned", align: r = "center", ...i }) {
|
|
1388
1388
|
return /* @__PURE__ */ a(T.Portal, { children: /* @__PURE__ */ o(T.Content, {
|
|
1389
1389
|
"data-slot": "select-content",
|
|
1390
1390
|
"data-align-trigger": n === "item-aligned",
|
|
@@ -1393,24 +1393,24 @@ function an({ className: e, children: t, position: n = "item-aligned", align: r
|
|
|
1393
1393
|
align: r,
|
|
1394
1394
|
...i,
|
|
1395
1395
|
children: [
|
|
1396
|
-
/* @__PURE__ */ a(
|
|
1396
|
+
/* @__PURE__ */ a(un, {}),
|
|
1397
1397
|
/* @__PURE__ */ a(T.Viewport, {
|
|
1398
1398
|
"data-position": n,
|
|
1399
1399
|
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" && ""),
|
|
1400
1400
|
children: t
|
|
1401
1401
|
}),
|
|
1402
|
-
/* @__PURE__ */ a(
|
|
1402
|
+
/* @__PURE__ */ a(dn, {})
|
|
1403
1403
|
]
|
|
1404
1404
|
}) });
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1406
|
+
function sn({ className: e, ...t }) {
|
|
1407
1407
|
return /* @__PURE__ */ a(T.Label, {
|
|
1408
1408
|
"data-slot": "select-label",
|
|
1409
1409
|
className: P("text-muted-foreground px-1.5 py-1 text-xs", e),
|
|
1410
1410
|
...t
|
|
1411
1411
|
});
|
|
1412
1412
|
}
|
|
1413
|
-
function
|
|
1413
|
+
function cn({ className: e, children: t, ...n }) {
|
|
1414
1414
|
return /* @__PURE__ */ o(T.Item, {
|
|
1415
1415
|
"data-slot": "select-item",
|
|
1416
1416
|
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),
|
|
@@ -1421,14 +1421,14 @@ function sn({ className: e, children: t, ...n }) {
|
|
|
1421
1421
|
}), /* @__PURE__ */ a(T.ItemText, { children: t })]
|
|
1422
1422
|
});
|
|
1423
1423
|
}
|
|
1424
|
-
function
|
|
1424
|
+
function ln({ className: e, ...t }) {
|
|
1425
1425
|
return /* @__PURE__ */ a(T.Separator, {
|
|
1426
1426
|
"data-slot": "select-separator",
|
|
1427
1427
|
className: P("bg-border -mx-1 my-1 h-px pointer-events-none", e),
|
|
1428
1428
|
...t
|
|
1429
1429
|
});
|
|
1430
1430
|
}
|
|
1431
|
-
function
|
|
1431
|
+
function un({ className: e, ...t }) {
|
|
1432
1432
|
return /* @__PURE__ */ a(T.ScrollUpButton, {
|
|
1433
1433
|
"data-slot": "select-scroll-up-button",
|
|
1434
1434
|
className: P("bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
@@ -1436,7 +1436,7 @@ function ln({ className: e, ...t }) {
|
|
|
1436
1436
|
children: /* @__PURE__ */ a(m, {})
|
|
1437
1437
|
});
|
|
1438
1438
|
}
|
|
1439
|
-
function
|
|
1439
|
+
function dn({ className: e, ...t }) {
|
|
1440
1440
|
return /* @__PURE__ */ a(T.ScrollDownButton, {
|
|
1441
1441
|
"data-slot": "select-scroll-down-button",
|
|
1442
1442
|
className: P("bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
@@ -1446,16 +1446,16 @@ function un({ className: e, ...t }) {
|
|
|
1446
1446
|
}
|
|
1447
1447
|
//#endregion
|
|
1448
1448
|
//#region src/components/custom/inputs/selectInput.tsx
|
|
1449
|
-
function
|
|
1450
|
-
return /* @__PURE__ */ o(
|
|
1449
|
+
function fn({ value: e, onValueChange: t, options: n, placeholder: r, isInvalid: i, disabled: s }) {
|
|
1450
|
+
return /* @__PURE__ */ o(tn, {
|
|
1451
1451
|
value: e,
|
|
1452
1452
|
onValueChange: t,
|
|
1453
1453
|
dir: "rtl",
|
|
1454
1454
|
disabled: s,
|
|
1455
|
-
children: [/* @__PURE__ */ a(
|
|
1455
|
+
children: [/* @__PURE__ */ a(an, {
|
|
1456
1456
|
className: P("w-full", i && "border-red-600 ring-red-600 text-red-900"),
|
|
1457
|
-
children: /* @__PURE__ */ a(
|
|
1458
|
-
}), /* @__PURE__ */ a(
|
|
1457
|
+
children: /* @__PURE__ */ a(rn, { placeholder: r })
|
|
1458
|
+
}), /* @__PURE__ */ a(on, { children: n.map((e) => /* @__PURE__ */ a(cn, {
|
|
1459
1459
|
value: e.value,
|
|
1460
1460
|
children: e.label
|
|
1461
1461
|
}, e.value)) })]
|
|
@@ -1463,13 +1463,13 @@ function dn({ value: e, onValueChange: t, options: n, placeholder: r, isInvalid:
|
|
|
1463
1463
|
}
|
|
1464
1464
|
//#endregion
|
|
1465
1465
|
//#region src/components/custom/fields/selectField.tsx
|
|
1466
|
-
function
|
|
1466
|
+
function pn({ label: e, error: t, required: n, isInvalid: r, ...i }) {
|
|
1467
1467
|
return /* @__PURE__ */ a(R, {
|
|
1468
1468
|
label: e,
|
|
1469
1469
|
error: t,
|
|
1470
1470
|
isInvalid: r,
|
|
1471
1471
|
required: n,
|
|
1472
|
-
children: /* @__PURE__ */ a(
|
|
1472
|
+
children: /* @__PURE__ */ a(fn, {
|
|
1473
1473
|
...i,
|
|
1474
1474
|
isInvalid: r
|
|
1475
1475
|
})
|
|
@@ -1477,7 +1477,7 @@ function fn({ label: e, error: t, required: n, isInvalid: r, ...i }) {
|
|
|
1477
1477
|
}
|
|
1478
1478
|
//#endregion
|
|
1479
1479
|
//#region src/components/pure/card.tsx
|
|
1480
|
-
function
|
|
1480
|
+
function mn({ className: e, size: t = "default", ...n }) {
|
|
1481
1481
|
return /* @__PURE__ */ a("div", {
|
|
1482
1482
|
"data-slot": "card",
|
|
1483
1483
|
"data-size": t,
|
|
@@ -1485,42 +1485,42 @@ function pn({ className: e, size: t = "default", ...n }) {
|
|
|
1485
1485
|
...n
|
|
1486
1486
|
});
|
|
1487
1487
|
}
|
|
1488
|
-
function
|
|
1488
|
+
function hn({ className: e, ...t }) {
|
|
1489
1489
|
return /* @__PURE__ */ a("div", {
|
|
1490
1490
|
"data-slot": "card-header",
|
|
1491
1491
|
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),
|
|
1492
1492
|
...t
|
|
1493
1493
|
});
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1495
|
+
function gn({ className: e, ...t }) {
|
|
1496
1496
|
return /* @__PURE__ */ a("div", {
|
|
1497
1497
|
"data-slot": "card-title",
|
|
1498
1498
|
className: P("text-base leading-snug font-medium group-data-[size=sm]/card:text-sm", e),
|
|
1499
1499
|
...t
|
|
1500
1500
|
});
|
|
1501
1501
|
}
|
|
1502
|
-
function
|
|
1502
|
+
function _n({ className: e, ...t }) {
|
|
1503
1503
|
return /* @__PURE__ */ a("div", {
|
|
1504
1504
|
"data-slot": "card-description",
|
|
1505
1505
|
className: P("text-muted-foreground text-sm", e),
|
|
1506
1506
|
...t
|
|
1507
1507
|
});
|
|
1508
1508
|
}
|
|
1509
|
-
function
|
|
1509
|
+
function vn({ className: e, ...t }) {
|
|
1510
1510
|
return /* @__PURE__ */ a("div", {
|
|
1511
1511
|
"data-slot": "card-action",
|
|
1512
1512
|
className: P("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
|
|
1513
1513
|
...t
|
|
1514
1514
|
});
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1516
|
+
function yn({ className: e, ...t }) {
|
|
1517
1517
|
return /* @__PURE__ */ a("div", {
|
|
1518
1518
|
"data-slot": "card-content",
|
|
1519
1519
|
className: P("px-4 group-data-[size=sm]/card:px-3", e),
|
|
1520
1520
|
...t
|
|
1521
1521
|
});
|
|
1522
1522
|
}
|
|
1523
|
-
function
|
|
1523
|
+
function bn({ className: e, ...t }) {
|
|
1524
1524
|
return /* @__PURE__ */ a("div", {
|
|
1525
1525
|
"data-slot": "card-footer",
|
|
1526
1526
|
className: P("bg-muted/50 rounded-b-xl border-t p-4 group-data-[size=sm]/card:p-3 flex items-center", e),
|
|
@@ -1529,14 +1529,14 @@ function yn({ className: e, ...t }) {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
//#endregion
|
|
1531
1531
|
//#region src/components/pure/carousel.tsx
|
|
1532
|
-
var
|
|
1533
|
-
function
|
|
1534
|
-
let e = y.useContext(
|
|
1532
|
+
var xn = y.createContext(null);
|
|
1533
|
+
function Sn() {
|
|
1534
|
+
let e = y.useContext(xn);
|
|
1535
1535
|
if (!e) throw Error("useCarousel must be used within a <Carousel />");
|
|
1536
1536
|
return e;
|
|
1537
1537
|
}
|
|
1538
|
-
function
|
|
1539
|
-
let [c, l] =
|
|
1538
|
+
function Cn({ orientation: e = "horizontal", opts: t, setApi: n, plugins: r, className: i, children: o, ...s }) {
|
|
1539
|
+
let [c, l] = Ve({
|
|
1540
1540
|
...t,
|
|
1541
1541
|
axis: e === "horizontal" ? "x" : "y"
|
|
1542
1542
|
}, r), [u, d] = y.useState(!1), [f, p] = y.useState(!1), m = y.useCallback((e) => {
|
|
@@ -1554,7 +1554,7 @@ function Sn({ orientation: e = "horizontal", opts: t, setApi: n, plugins: r, cla
|
|
|
1554
1554
|
if (l) return m(l), l.on("reInit", m), l.on("select", m), () => {
|
|
1555
1555
|
l?.off("select", m);
|
|
1556
1556
|
};
|
|
1557
|
-
}, [l, m]), /* @__PURE__ */ a(
|
|
1557
|
+
}, [l, m]), /* @__PURE__ */ a(xn.Provider, {
|
|
1558
1558
|
value: {
|
|
1559
1559
|
carouselRef: c,
|
|
1560
1560
|
api: l,
|
|
@@ -1576,8 +1576,8 @@ function Sn({ orientation: e = "horizontal", opts: t, setApi: n, plugins: r, cla
|
|
|
1576
1576
|
})
|
|
1577
1577
|
});
|
|
1578
1578
|
}
|
|
1579
|
-
function
|
|
1580
|
-
let { carouselRef: n, orientation: r } =
|
|
1579
|
+
function wn({ className: e, ...t }) {
|
|
1580
|
+
let { carouselRef: n, orientation: r } = Sn();
|
|
1581
1581
|
return /* @__PURE__ */ a("div", {
|
|
1582
1582
|
ref: n,
|
|
1583
1583
|
className: "overflow-hidden",
|
|
@@ -1588,8 +1588,8 @@ function Cn({ className: e, ...t }) {
|
|
|
1588
1588
|
})
|
|
1589
1589
|
});
|
|
1590
1590
|
}
|
|
1591
|
-
function
|
|
1592
|
-
let { orientation: n } =
|
|
1591
|
+
function Tn({ className: e, ...t }) {
|
|
1592
|
+
let { orientation: n } = Sn();
|
|
1593
1593
|
return /* @__PURE__ */ a("div", {
|
|
1594
1594
|
role: "group",
|
|
1595
1595
|
"aria-roledescription": "slide",
|
|
@@ -1598,8 +1598,8 @@ function wn({ className: e, ...t }) {
|
|
|
1598
1598
|
...t
|
|
1599
1599
|
});
|
|
1600
1600
|
}
|
|
1601
|
-
function
|
|
1602
|
-
let { orientation: i, scrollPrev: s, canScrollPrev: c } =
|
|
1601
|
+
function En({ className: e, variant: t = "outline", size: n = "icon-sm", ...r }) {
|
|
1602
|
+
let { orientation: i, scrollPrev: s, canScrollPrev: c } = Sn();
|
|
1603
1603
|
return /* @__PURE__ */ o(F, {
|
|
1604
1604
|
"data-slot": "carousel-previous",
|
|
1605
1605
|
variant: t,
|
|
@@ -1614,8 +1614,8 @@ function Tn({ className: e, variant: t = "outline", size: n = "icon-sm", ...r })
|
|
|
1614
1614
|
})]
|
|
1615
1615
|
});
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1618
|
-
let { orientation: i, scrollNext: s, canScrollNext: c } =
|
|
1617
|
+
function Dn({ className: e, variant: t = "outline", size: n = "icon-sm", ...r }) {
|
|
1618
|
+
let { orientation: i, scrollNext: s, canScrollNext: c } = Sn();
|
|
1619
1619
|
return /* @__PURE__ */ o(F, {
|
|
1620
1620
|
"data-slot": "carousel-next",
|
|
1621
1621
|
variant: t,
|
|
@@ -1632,14 +1632,14 @@ function En({ className: e, variant: t = "outline", size: n = "icon-sm", ...r })
|
|
|
1632
1632
|
}
|
|
1633
1633
|
//#endregion
|
|
1634
1634
|
//#region src/components/custom/fields/storageFilesField.tsx
|
|
1635
|
-
function
|
|
1635
|
+
function On(e) {
|
|
1636
1636
|
return e?.contentType === "application/pdf" || e?.extension?.toLowerCase() === ".pdf";
|
|
1637
1637
|
}
|
|
1638
|
-
function
|
|
1639
|
-
let m =
|
|
1638
|
+
function kn({ label: e, file: t, onFileChange: n, onRemove: r, onDownload: s, getFileSrc: c, showPreview: l, fileInputRef: u, error: d, isInvalid: f, dir: p = "rtl" }) {
|
|
1639
|
+
let m = je(() => Array.isArray(t) ? t : t ? [t] : [], [t]), h = je(() => m.filter((e) => l(e)), [m, l]), g = b((e) => {
|
|
1640
1640
|
n(e), e.target && (e.target.value = "");
|
|
1641
1641
|
}, [n]), v = b((e) => {
|
|
1642
|
-
let t =
|
|
1642
|
+
let t = On(e), n = c(e);
|
|
1643
1643
|
return t ? /* @__PURE__ */ o("div", {
|
|
1644
1644
|
className: "flex flex-col items-center justify-center w-full h-full bg-muted/30",
|
|
1645
1645
|
children: [/* @__PURE__ */ a(te, { className: "h-12 w-12 text-red-500 mb-2" }), /* @__PURE__ */ a("span", {
|
|
@@ -1662,24 +1662,24 @@ function On({ label: e, file: t, onFileChange: n, onRemove: r, onDownload: s, ge
|
|
|
1662
1662
|
}),
|
|
1663
1663
|
h.length > 0 ? /* @__PURE__ */ o("div", {
|
|
1664
1664
|
className: "space-y-2 max-w-100 mt-3",
|
|
1665
|
-
children: [/* @__PURE__ */ o(
|
|
1665
|
+
children: [/* @__PURE__ */ o(Cn, {
|
|
1666
1666
|
opts: {
|
|
1667
1667
|
direction: p,
|
|
1668
1668
|
align: "start",
|
|
1669
1669
|
dragFree: !0
|
|
1670
1670
|
},
|
|
1671
1671
|
className: "w-full relative group",
|
|
1672
|
-
children: [/* @__PURE__ */ a(
|
|
1672
|
+
children: [/* @__PURE__ */ a(wn, { children: h.map((e, t) => {
|
|
1673
1673
|
let n = e.url || (e.base64File ? e.base64File.substring(0, 40) : `fallback-key-${t}`), i = m.indexOf(e);
|
|
1674
|
-
return /* @__PURE__ */ a(
|
|
1674
|
+
return /* @__PURE__ */ a(Tn, {
|
|
1675
1675
|
className: "basis-full",
|
|
1676
1676
|
children: /* @__PURE__ */ a("div", {
|
|
1677
1677
|
className: "p-1",
|
|
1678
|
-
children: /* @__PURE__ */ a(
|
|
1678
|
+
children: /* @__PURE__ */ a(mn, {
|
|
1679
1679
|
className: "relative group overflow-hidden border-2 aspect-video flex items-center justify-center bg-background shadow-sm",
|
|
1680
|
-
children: /* @__PURE__ */ o(
|
|
1680
|
+
children: /* @__PURE__ */ o(yn, {
|
|
1681
1681
|
className: "p-0 w-full h-full flex items-center justify-center",
|
|
1682
|
-
children: [/* @__PURE__ */ o(I, { children: [/* @__PURE__ */ a(
|
|
1682
|
+
children: [/* @__PURE__ */ o(I, { children: [/* @__PURE__ */ a(dt, {
|
|
1683
1683
|
asChild: !0,
|
|
1684
1684
|
children: /* @__PURE__ */ o("div", {
|
|
1685
1685
|
className: "cursor-zoom-in w-full h-full relative group",
|
|
@@ -1688,7 +1688,7 @@ function On({ label: e, file: t, onFileChange: n, onRemove: r, onDownload: s, ge
|
|
|
1688
1688
|
children: /* @__PURE__ */ a(se, { className: "text-white w-6 h-6" })
|
|
1689
1689
|
})]
|
|
1690
1690
|
})
|
|
1691
|
-
}), /* @__PURE__ */ a(
|
|
1691
|
+
}), /* @__PURE__ */ a(ht, {
|
|
1692
1692
|
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",
|
|
1693
1693
|
children: e.contentType === "application/pdf" || e.extension?.toLowerCase() === ".pdf" ? /* @__PURE__ */ a("iframe", {
|
|
1694
1694
|
src: c(e),
|
|
@@ -1729,7 +1729,7 @@ function On({ label: e, file: t, onFileChange: n, onRemove: r, onDownload: s, ge
|
|
|
1729
1729
|
})
|
|
1730
1730
|
})
|
|
1731
1731
|
}, n);
|
|
1732
|
-
}) }), h.length > 1 && /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a(
|
|
1732
|
+
}) }), h.length > 1 && /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a(En, { 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(Dn, { 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" })] })]
|
|
1733
1733
|
}), /* @__PURE__ */ o(F, {
|
|
1734
1734
|
type: "button",
|
|
1735
1735
|
variant: "outline",
|
|
@@ -1770,7 +1770,7 @@ function On({ label: e, file: t, onFileChange: n, onRemove: r, onDownload: s, ge
|
|
|
1770
1770
|
}
|
|
1771
1771
|
//#endregion
|
|
1772
1772
|
//#region src/components/pure/textarea.tsx
|
|
1773
|
-
function
|
|
1773
|
+
function An({ className: e, ...t }) {
|
|
1774
1774
|
return /* @__PURE__ */ a("textarea", {
|
|
1775
1775
|
"data-slot": "textarea",
|
|
1776
1776
|
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),
|
|
@@ -1779,21 +1779,21 @@ function kn({ className: e, ...t }) {
|
|
|
1779
1779
|
}
|
|
1780
1780
|
//#endregion
|
|
1781
1781
|
//#region src/components/custom/inputs/textAreaInput.tsx
|
|
1782
|
-
function
|
|
1783
|
-
return /* @__PURE__ */ a(
|
|
1782
|
+
function jn({ isInvalid: e, className: t, ...n }) {
|
|
1783
|
+
return /* @__PURE__ */ a(An, {
|
|
1784
1784
|
...n,
|
|
1785
1785
|
className: P(t, e && "border-red-600 focus-visible:ring-red-600")
|
|
1786
1786
|
});
|
|
1787
1787
|
}
|
|
1788
1788
|
//#endregion
|
|
1789
1789
|
//#region src/components/custom/fields/textAreaField.tsx
|
|
1790
|
-
function
|
|
1790
|
+
function Mn({ label: e, error: t, isInvalid: n, required: r, ...i }) {
|
|
1791
1791
|
return /* @__PURE__ */ a(R, {
|
|
1792
1792
|
label: e,
|
|
1793
1793
|
error: t,
|
|
1794
1794
|
isInvalid: n,
|
|
1795
1795
|
required: r,
|
|
1796
|
-
children: /* @__PURE__ */ a(
|
|
1796
|
+
children: /* @__PURE__ */ a(jn, {
|
|
1797
1797
|
...i,
|
|
1798
1798
|
isInvalid: n
|
|
1799
1799
|
})
|
|
@@ -1801,16 +1801,16 @@ function jn({ label: e, error: t, isInvalid: n, required: r, ...i }) {
|
|
|
1801
1801
|
}
|
|
1802
1802
|
//#endregion
|
|
1803
1803
|
//#region src/components/custom/fields/textField.tsx
|
|
1804
|
-
function
|
|
1805
|
-
return /* @__PURE__ */ a(
|
|
1804
|
+
function Nn(e) {
|
|
1805
|
+
return /* @__PURE__ */ a(Xt, {
|
|
1806
1806
|
...e,
|
|
1807
1807
|
type: "text"
|
|
1808
1808
|
});
|
|
1809
1809
|
}
|
|
1810
1810
|
//#endregion
|
|
1811
1811
|
//#region src/components/custom/images/lightbox.tsx
|
|
1812
|
-
function
|
|
1813
|
-
return
|
|
1812
|
+
function Pn({ srcLight: e, srcDark: t, alt: n, onClose: r }) {
|
|
1813
|
+
return Ae(() => {
|
|
1814
1814
|
let e = (e) => e.key === "Escape" && r();
|
|
1815
1815
|
return window.addEventListener("keydown", e), document.body.style.overflow = "hidden", () => {
|
|
1816
1816
|
window.removeEventListener("keydown", e), document.body.style.overflow = "";
|
|
@@ -1840,7 +1840,7 @@ function Nn({ srcLight: e, srcDark: t, alt: n, onClose: r }) {
|
|
|
1840
1840
|
}
|
|
1841
1841
|
//#endregion
|
|
1842
1842
|
//#region src/components/custom/images/zoomableImage.tsx
|
|
1843
|
-
function
|
|
1843
|
+
function Fn({ srcLight: e, srcDark: t, alt: n, className: r, wrapperClassName: i, onOpen: s }) {
|
|
1844
1844
|
return /* @__PURE__ */ o("div", {
|
|
1845
1845
|
className: `group/zoom relative cursor-zoom-in overflow-hidden ${i ?? ""}`,
|
|
1846
1846
|
onClick: () => s(e, t, n),
|
|
@@ -1868,8 +1868,8 @@ function Pn({ srcLight: e, srcDark: t, alt: n, className: r, wrapperClassName: i
|
|
|
1868
1868
|
}
|
|
1869
1869
|
//#endregion
|
|
1870
1870
|
//#region src/components/custom/inputs/searchInput.tsx
|
|
1871
|
-
function
|
|
1872
|
-
let [n, r] = x(""), [i, s] = x(e[0]?.value || ""), c =
|
|
1871
|
+
function In({ columnsNames: e, onSearch: t }) {
|
|
1872
|
+
let [n, r] = x(""), [i, s] = x(e[0]?.value || ""), c = He((e, n) => {
|
|
1873
1873
|
e.trim() ? t({
|
|
1874
1874
|
value: e,
|
|
1875
1875
|
columnName: n
|
|
@@ -1879,16 +1879,16 @@ function Fn({ columnsNames: e, onSearch: t }) {
|
|
|
1879
1879
|
className: "p-3 rounded-t-xl border-x border-t flex flex-col sm:flex-row gap-4",
|
|
1880
1880
|
children: /* @__PURE__ */ o("div", {
|
|
1881
1881
|
className: "relative w-full flex gap-2",
|
|
1882
|
-
children: [e.length > 1 && /* @__PURE__ */ o(
|
|
1882
|
+
children: [e.length > 1 && /* @__PURE__ */ o(tn, {
|
|
1883
1883
|
dir: "rtl",
|
|
1884
1884
|
value: i,
|
|
1885
1885
|
onValueChange: (e) => {
|
|
1886
1886
|
s(e), n.trim() && c(n, e);
|
|
1887
1887
|
},
|
|
1888
|
-
children: [/* @__PURE__ */ a(
|
|
1888
|
+
children: [/* @__PURE__ */ a(an, {
|
|
1889
1889
|
className: "bg-secondary border-none",
|
|
1890
|
-
children: /* @__PURE__ */ a(
|
|
1891
|
-
}), /* @__PURE__ */ a(
|
|
1890
|
+
children: /* @__PURE__ */ a(rn, { placeholder: "اختر العمود" })
|
|
1891
|
+
}), /* @__PURE__ */ a(on, { children: e.map((e) => /* @__PURE__ */ a(cn, {
|
|
1892
1892
|
value: e.value,
|
|
1893
1893
|
children: e.label
|
|
1894
1894
|
}, e.value)) })]
|
|
@@ -1909,7 +1909,7 @@ function Fn({ columnsNames: e, onSearch: t }) {
|
|
|
1909
1909
|
}
|
|
1910
1910
|
//#endregion
|
|
1911
1911
|
//#region src/components/pure/table.tsx
|
|
1912
|
-
function
|
|
1912
|
+
function Ln({ className: e, ...t }) {
|
|
1913
1913
|
return /* @__PURE__ */ a("div", {
|
|
1914
1914
|
"data-slot": "table-container",
|
|
1915
1915
|
className: "relative w-full overflow-x-auto",
|
|
@@ -1920,49 +1920,49 @@ function In({ className: e, ...t }) {
|
|
|
1920
1920
|
})
|
|
1921
1921
|
});
|
|
1922
1922
|
}
|
|
1923
|
-
function
|
|
1923
|
+
function Rn({ className: e, ...t }) {
|
|
1924
1924
|
return /* @__PURE__ */ a("thead", {
|
|
1925
1925
|
"data-slot": "table-header",
|
|
1926
1926
|
className: P("[&_tr]:border-b", e),
|
|
1927
1927
|
...t
|
|
1928
1928
|
});
|
|
1929
1929
|
}
|
|
1930
|
-
function
|
|
1930
|
+
function zn({ className: e, ...t }) {
|
|
1931
1931
|
return /* @__PURE__ */ a("tbody", {
|
|
1932
1932
|
"data-slot": "table-body",
|
|
1933
1933
|
className: P("[&_tr:last-child]:border-0", e),
|
|
1934
1934
|
...t
|
|
1935
1935
|
});
|
|
1936
1936
|
}
|
|
1937
|
-
function
|
|
1937
|
+
function Bn({ className: e, ...t }) {
|
|
1938
1938
|
return /* @__PURE__ */ a("tfoot", {
|
|
1939
1939
|
"data-slot": "table-footer",
|
|
1940
1940
|
className: P("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", e),
|
|
1941
1941
|
...t
|
|
1942
1942
|
});
|
|
1943
1943
|
}
|
|
1944
|
-
function
|
|
1944
|
+
function Vn({ className: e, ...t }) {
|
|
1945
1945
|
return /* @__PURE__ */ a("tr", {
|
|
1946
1946
|
"data-slot": "table-row",
|
|
1947
1947
|
className: P("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", e),
|
|
1948
1948
|
...t
|
|
1949
1949
|
});
|
|
1950
1950
|
}
|
|
1951
|
-
function
|
|
1951
|
+
function Hn({ className: e, ...t }) {
|
|
1952
1952
|
return /* @__PURE__ */ a("th", {
|
|
1953
1953
|
"data-slot": "table-head",
|
|
1954
1954
|
className: P("text-foreground h-10 px-2 text-start align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pe-0", e),
|
|
1955
1955
|
...t
|
|
1956
1956
|
});
|
|
1957
1957
|
}
|
|
1958
|
-
function
|
|
1958
|
+
function Un({ className: e, ...t }) {
|
|
1959
1959
|
return /* @__PURE__ */ a("td", {
|
|
1960
1960
|
"data-slot": "table-cell",
|
|
1961
1961
|
className: P("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0", e),
|
|
1962
1962
|
...t
|
|
1963
1963
|
});
|
|
1964
1964
|
}
|
|
1965
|
-
function
|
|
1965
|
+
function Wn({ className: e, ...t }) {
|
|
1966
1966
|
return /* @__PURE__ */ a("caption", {
|
|
1967
1967
|
"data-slot": "table-caption",
|
|
1968
1968
|
className: P("text-muted-foreground mt-4 text-sm", e),
|
|
@@ -1971,53 +1971,53 @@ function Un({ className: e, ...t }) {
|
|
|
1971
1971
|
}
|
|
1972
1972
|
//#endregion
|
|
1973
1973
|
//#region src/components/custom/status/empty.tsx
|
|
1974
|
-
function
|
|
1974
|
+
function Gn({ className: e, ...t }) {
|
|
1975
1975
|
return /* @__PURE__ */ a("div", {
|
|
1976
1976
|
"data-slot": "empty",
|
|
1977
1977
|
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),
|
|
1978
1978
|
...t
|
|
1979
1979
|
});
|
|
1980
1980
|
}
|
|
1981
|
-
function
|
|
1981
|
+
function Kn({ className: e, ...t }) {
|
|
1982
1982
|
return /* @__PURE__ */ a("div", {
|
|
1983
1983
|
"data-slot": "empty-header",
|
|
1984
1984
|
className: P("gap-2 flex max-w-sm flex-col items-center", e),
|
|
1985
1985
|
...t
|
|
1986
1986
|
});
|
|
1987
1987
|
}
|
|
1988
|
-
var
|
|
1988
|
+
var qn = S("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
1989
1989
|
variants: { variant: {
|
|
1990
1990
|
default: "bg-transparent",
|
|
1991
1991
|
icon: "bg-muted text-foreground flex size-8 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-4"
|
|
1992
1992
|
} },
|
|
1993
1993
|
defaultVariants: { variant: "default" }
|
|
1994
1994
|
});
|
|
1995
|
-
function
|
|
1995
|
+
function Jn({ className: e, variant: t = "default", ...n }) {
|
|
1996
1996
|
return /* @__PURE__ */ a("div", {
|
|
1997
1997
|
"data-slot": "empty-icon",
|
|
1998
1998
|
"data-variant": t,
|
|
1999
|
-
className: P(
|
|
1999
|
+
className: P(qn({
|
|
2000
2000
|
variant: t,
|
|
2001
2001
|
className: e
|
|
2002
2002
|
})),
|
|
2003
2003
|
...n
|
|
2004
2004
|
});
|
|
2005
2005
|
}
|
|
2006
|
-
function
|
|
2006
|
+
function Yn({ className: e, ...t }) {
|
|
2007
2007
|
return /* @__PURE__ */ a("div", {
|
|
2008
2008
|
"data-slot": "empty-title",
|
|
2009
2009
|
className: P("text-sm font-medium tracking-tight", e),
|
|
2010
2010
|
...t
|
|
2011
2011
|
});
|
|
2012
2012
|
}
|
|
2013
|
-
function
|
|
2013
|
+
function Xn({ className: e, ...t }) {
|
|
2014
2014
|
return /* @__PURE__ */ a("div", {
|
|
2015
2015
|
"data-slot": "empty-description",
|
|
2016
2016
|
className: P("text-sm/relaxed text-muted-foreground [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", e),
|
|
2017
2017
|
...t
|
|
2018
2018
|
});
|
|
2019
2019
|
}
|
|
2020
|
-
function
|
|
2020
|
+
function Zn({ className: e, ...t }) {
|
|
2021
2021
|
return /* @__PURE__ */ a("div", {
|
|
2022
2022
|
"data-slot": "empty-content",
|
|
2023
2023
|
className: P("gap-2.5 text-sm flex w-full max-w-sm min-w-0 flex-col items-center text-balance", e),
|
|
@@ -2026,91 +2026,91 @@ function Xn({ className: e, ...t }) {
|
|
|
2026
2026
|
}
|
|
2027
2027
|
//#endregion
|
|
2028
2028
|
//#region src/components/custom/table/crudEmptyTablePreview.tsx
|
|
2029
|
-
function
|
|
2030
|
-
return a(e === "loading" ?
|
|
2029
|
+
function Qn({ mode: e }) {
|
|
2030
|
+
return a(e === "loading" ? $n : e === "error" ? tr : er, {});
|
|
2031
2031
|
}
|
|
2032
|
-
function
|
|
2033
|
-
return /* @__PURE__ */ o(
|
|
2034
|
-
/* @__PURE__ */ a(
|
|
2032
|
+
function $n() {
|
|
2033
|
+
return /* @__PURE__ */ o(Gn, { children: [/* @__PURE__ */ o(Kn, { children: [
|
|
2034
|
+
/* @__PURE__ */ a(Jn, {
|
|
2035
2035
|
variant: "icon",
|
|
2036
2036
|
children: /* @__PURE__ */ a(be, {})
|
|
2037
2037
|
}),
|
|
2038
|
-
/* @__PURE__ */ a(
|
|
2039
|
-
/* @__PURE__ */ a(
|
|
2040
|
-
] }), /* @__PURE__ */ a(
|
|
2038
|
+
/* @__PURE__ */ a(Yn, { children: "الرجاء الانتظار" }),
|
|
2039
|
+
/* @__PURE__ */ a(Xn, { children: "يتم تحميل البيانات المطلوبة" })
|
|
2040
|
+
] }), /* @__PURE__ */ a(Zn, { children: /* @__PURE__ */ a(ae, { className: "animate-spin duration-700" }) })] });
|
|
2041
2041
|
}
|
|
2042
|
-
function
|
|
2043
|
-
return /* @__PURE__ */ a(
|
|
2044
|
-
/* @__PURE__ */ a(
|
|
2042
|
+
function er() {
|
|
2043
|
+
return /* @__PURE__ */ a(Gn, { children: /* @__PURE__ */ o(Kn, { children: [
|
|
2044
|
+
/* @__PURE__ */ a(Jn, {
|
|
2045
2045
|
variant: "icon",
|
|
2046
2046
|
children: /* @__PURE__ */ a(be, {})
|
|
2047
2047
|
}),
|
|
2048
|
-
/* @__PURE__ */ a(
|
|
2049
|
-
/* @__PURE__ */ a(
|
|
2048
|
+
/* @__PURE__ */ a(Yn, { children: "لا توجد بيانات لعرضها" }),
|
|
2049
|
+
/* @__PURE__ */ a(Xn, { children: "هذا الجدول فارغ ولا يحتوي على بيانات للعرض" })
|
|
2050
2050
|
] }) });
|
|
2051
2051
|
}
|
|
2052
|
-
function
|
|
2053
|
-
return /* @__PURE__ */ o(
|
|
2054
|
-
/* @__PURE__ */ a(
|
|
2052
|
+
function tr() {
|
|
2053
|
+
return /* @__PURE__ */ o(Gn, { children: [/* @__PURE__ */ o(Kn, { children: [
|
|
2054
|
+
/* @__PURE__ */ a(Jn, {
|
|
2055
2055
|
variant: "icon",
|
|
2056
2056
|
children: /* @__PURE__ */ a(be, {})
|
|
2057
2057
|
}),
|
|
2058
|
-
/* @__PURE__ */ a(
|
|
2059
|
-
/* @__PURE__ */ a(
|
|
2060
|
-
] }), /* @__PURE__ */ a(
|
|
2058
|
+
/* @__PURE__ */ a(Yn, { children: "حدث خطأ ما" }),
|
|
2059
|
+
/* @__PURE__ */ a(Xn, { children: "حدث خطأ اثناء جلب البيانات الرجاء التحقق من اتصالك الانترنت او اتصل بخدمة العملاء لدينا في حال تكراره" })
|
|
2060
|
+
] }), /* @__PURE__ */ a(Zn, { children: /* @__PURE__ */ a(ge, {}) })] });
|
|
2061
2061
|
}
|
|
2062
2062
|
//#endregion
|
|
2063
2063
|
//#region src/components/custom/table/crudTable.tsx
|
|
2064
|
-
function
|
|
2065
|
-
return e.isLoading ? /* @__PURE__ */ a(
|
|
2064
|
+
function nr({ state: e, children: t }) {
|
|
2065
|
+
return e.isLoading ? /* @__PURE__ */ a(Qn, { mode: "loading" }) : e.entities?.count == 0 ? /* @__PURE__ */ a(Qn, { mode: "empty" }) : e.entities == null ? /* @__PURE__ */ a(Qn, { mode: "loading" }) : /* @__PURE__ */ a(Ln, { children: t });
|
|
2066
2066
|
}
|
|
2067
2067
|
//#endregion
|
|
2068
2068
|
//#region src/components/pure/context-menu.tsx
|
|
2069
|
-
function
|
|
2069
|
+
function rr({ ...e }) {
|
|
2070
2070
|
return /* @__PURE__ */ a(E.Root, {
|
|
2071
2071
|
"data-slot": "context-menu",
|
|
2072
2072
|
...e
|
|
2073
2073
|
});
|
|
2074
2074
|
}
|
|
2075
|
-
function
|
|
2075
|
+
function ir({ className: e, ...t }) {
|
|
2076
2076
|
return /* @__PURE__ */ a(E.Trigger, {
|
|
2077
2077
|
"data-slot": "context-menu-trigger",
|
|
2078
2078
|
className: P("select-none", e),
|
|
2079
2079
|
...t
|
|
2080
2080
|
});
|
|
2081
2081
|
}
|
|
2082
|
-
function
|
|
2082
|
+
function ar({ ...e }) {
|
|
2083
2083
|
return /* @__PURE__ */ a(E.Group, {
|
|
2084
2084
|
"data-slot": "context-menu-group",
|
|
2085
2085
|
...e
|
|
2086
2086
|
});
|
|
2087
2087
|
}
|
|
2088
|
-
function
|
|
2088
|
+
function or({ ...e }) {
|
|
2089
2089
|
return /* @__PURE__ */ a(E.Portal, {
|
|
2090
2090
|
"data-slot": "context-menu-portal",
|
|
2091
2091
|
...e
|
|
2092
2092
|
});
|
|
2093
2093
|
}
|
|
2094
|
-
function
|
|
2094
|
+
function sr({ ...e }) {
|
|
2095
2095
|
return /* @__PURE__ */ a(E.Sub, {
|
|
2096
2096
|
"data-slot": "context-menu-sub",
|
|
2097
2097
|
...e
|
|
2098
2098
|
});
|
|
2099
2099
|
}
|
|
2100
|
-
function
|
|
2100
|
+
function cr({ ...e }) {
|
|
2101
2101
|
return /* @__PURE__ */ a(E.RadioGroup, {
|
|
2102
2102
|
"data-slot": "context-menu-radio-group",
|
|
2103
2103
|
...e
|
|
2104
2104
|
});
|
|
2105
2105
|
}
|
|
2106
|
-
function
|
|
2106
|
+
function lr({ className: e, ...t }) {
|
|
2107
2107
|
return /* @__PURE__ */ a(E.Portal, { children: /* @__PURE__ */ a(E.Content, {
|
|
2108
2108
|
"data-slot": "context-menu-content",
|
|
2109
2109
|
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),
|
|
2110
2110
|
...t
|
|
2111
2111
|
}) });
|
|
2112
2112
|
}
|
|
2113
|
-
function
|
|
2113
|
+
function ur({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
2114
2114
|
return /* @__PURE__ */ a(E.Item, {
|
|
2115
2115
|
"data-slot": "context-menu-item",
|
|
2116
2116
|
"data-inset": t,
|
|
@@ -2119,7 +2119,7 @@ function lr({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
|
2119
2119
|
...r
|
|
2120
2120
|
});
|
|
2121
2121
|
}
|
|
2122
|
-
function
|
|
2122
|
+
function dr({ className: e, inset: t, children: n, ...r }) {
|
|
2123
2123
|
return /* @__PURE__ */ o(E.SubTrigger, {
|
|
2124
2124
|
"data-slot": "context-menu-sub-trigger",
|
|
2125
2125
|
"data-inset": t,
|
|
@@ -2128,14 +2128,14 @@ function ur({ className: e, inset: t, children: n, ...r }) {
|
|
|
2128
2128
|
children: [n, /* @__PURE__ */ a(p, { className: "rtl:rotate-180 ms-auto" })]
|
|
2129
2129
|
});
|
|
2130
2130
|
}
|
|
2131
|
-
function
|
|
2131
|
+
function fr({ className: e, ...t }) {
|
|
2132
2132
|
return /* @__PURE__ */ a(E.SubContent, {
|
|
2133
2133
|
"data-slot": "context-menu-sub-content",
|
|
2134
2134
|
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),
|
|
2135
2135
|
...t
|
|
2136
2136
|
});
|
|
2137
2137
|
}
|
|
2138
|
-
function
|
|
2138
|
+
function pr({ className: e, children: t, checked: n, inset: r, ...i }) {
|
|
2139
2139
|
return /* @__PURE__ */ o(E.CheckboxItem, {
|
|
2140
2140
|
"data-slot": "context-menu-checkbox-item",
|
|
2141
2141
|
"data-inset": r,
|
|
@@ -2148,7 +2148,7 @@ function fr({ className: e, children: t, checked: n, inset: r, ...i }) {
|
|
|
2148
2148
|
}), t]
|
|
2149
2149
|
});
|
|
2150
2150
|
}
|
|
2151
|
-
function
|
|
2151
|
+
function mr({ className: e, children: t, inset: n, ...r }) {
|
|
2152
2152
|
return /* @__PURE__ */ o(E.RadioItem, {
|
|
2153
2153
|
"data-slot": "context-menu-radio-item",
|
|
2154
2154
|
"data-inset": n,
|
|
@@ -2160,7 +2160,7 @@ function pr({ className: e, children: t, inset: n, ...r }) {
|
|
|
2160
2160
|
}), t]
|
|
2161
2161
|
});
|
|
2162
2162
|
}
|
|
2163
|
-
function
|
|
2163
|
+
function hr({ className: e, inset: t, ...n }) {
|
|
2164
2164
|
return /* @__PURE__ */ a(E.Label, {
|
|
2165
2165
|
"data-slot": "context-menu-label",
|
|
2166
2166
|
"data-inset": t,
|
|
@@ -2168,14 +2168,14 @@ function mr({ className: e, inset: t, ...n }) {
|
|
|
2168
2168
|
...n
|
|
2169
2169
|
});
|
|
2170
2170
|
}
|
|
2171
|
-
function
|
|
2171
|
+
function gr({ className: e, ...t }) {
|
|
2172
2172
|
return /* @__PURE__ */ a(E.Separator, {
|
|
2173
2173
|
"data-slot": "context-menu-separator",
|
|
2174
2174
|
className: P("bg-border -mx-1 my-1 h-px", e),
|
|
2175
2175
|
...t
|
|
2176
2176
|
});
|
|
2177
2177
|
}
|
|
2178
|
-
function
|
|
2178
|
+
function _r({ className: e, ...t }) {
|
|
2179
2179
|
return /* @__PURE__ */ a("span", {
|
|
2180
2180
|
"data-slot": "context-menu-shortcut",
|
|
2181
2181
|
className: P("text-muted-foreground group-focus/context-menu-item:text-accent-foreground ms-auto text-xs tracking-widest", e),
|
|
@@ -2184,14 +2184,14 @@ function gr({ className: e, ...t }) {
|
|
|
2184
2184
|
}
|
|
2185
2185
|
//#endregion
|
|
2186
2186
|
//#region src/components/custom/table/crudTableBodyRow.tsx
|
|
2187
|
-
function
|
|
2188
|
-
return /* @__PURE__ */ a(i, { children: /* @__PURE__ */ o(
|
|
2187
|
+
function vr({ tableRows: e, dropdownMenu: t, contextMenuContent: n }) {
|
|
2188
|
+
return /* @__PURE__ */ a(i, { children: /* @__PURE__ */ o(rr, {
|
|
2189
2189
|
dir: "rtl",
|
|
2190
|
-
children: [/* @__PURE__ */ a(
|
|
2190
|
+
children: [/* @__PURE__ */ a(ir, {
|
|
2191
2191
|
asChild: !0,
|
|
2192
|
-
children: /* @__PURE__ */ o(
|
|
2192
|
+
children: /* @__PURE__ */ o(Vn, {
|
|
2193
2193
|
className: "hover:bg-secondary/50 transition-colors",
|
|
2194
|
-
children: [/* @__PURE__ */ a(
|
|
2194
|
+
children: [/* @__PURE__ */ a(Un, { children: t }), e.map((e, t) => /* @__PURE__ */ a(Un, { children: /* @__PURE__ */ a("span", {
|
|
2195
2195
|
className: e.rowStyles,
|
|
2196
2196
|
children: e.rowName
|
|
2197
2197
|
}) }, t))]
|
|
@@ -2201,18 +2201,18 @@ function _r({ tableRows: e, dropdownMenu: t, contextMenuContent: n }) {
|
|
|
2201
2201
|
}
|
|
2202
2202
|
//#endregion
|
|
2203
2203
|
//#region src/components/custom/table/crudTableCard.tsx
|
|
2204
|
-
function
|
|
2204
|
+
function yr({ cards: e }) {
|
|
2205
2205
|
return /* @__PURE__ */ a("div", {
|
|
2206
2206
|
className: "mb-5 grid grid-cols-1 sm:grid-cols-2 gap-5",
|
|
2207
|
-
children: e.map((e, t) => /* @__PURE__ */ o(
|
|
2207
|
+
children: e.map((e, t) => /* @__PURE__ */ o(mn, {
|
|
2208
2208
|
className: "shadow-sm",
|
|
2209
|
-
children: [/* @__PURE__ */ o(
|
|
2209
|
+
children: [/* @__PURE__ */ o(hn, {
|
|
2210
2210
|
className: "flex flex-row items-center justify-between space-y-0 pb-2",
|
|
2211
|
-
children: [/* @__PURE__ */ a(
|
|
2211
|
+
children: [/* @__PURE__ */ a(gn, {
|
|
2212
2212
|
className: "text-sm font-medium text-muted-foreground",
|
|
2213
2213
|
children: e.title
|
|
2214
2214
|
}), e.icon]
|
|
2215
|
-
}), /* @__PURE__ */ a(
|
|
2215
|
+
}), /* @__PURE__ */ a(yn, { children: /* @__PURE__ */ a("div", {
|
|
2216
2216
|
className: "text-2xl font-bold",
|
|
2217
2217
|
children: e.data
|
|
2218
2218
|
}) })]
|
|
@@ -2221,7 +2221,7 @@ function vr({ cards: e }) {
|
|
|
2221
2221
|
}
|
|
2222
2222
|
//#endregion
|
|
2223
2223
|
//#region src/components/custom/table/crudTableHeader.tsx
|
|
2224
|
-
function
|
|
2224
|
+
function br({ title: e, buttonTitle: t, createComp: n, isButtonVisible: r = !0 }) {
|
|
2225
2225
|
let [s, c] = x(!1), l = Ee.isValidElement(n) ? Ee.cloneElement(n, { onSuccess: (e) => {
|
|
2226
2226
|
c(!1), n.props.onSuccess?.(e);
|
|
2227
2227
|
} }) : n;
|
|
@@ -2240,10 +2240,10 @@ function yr({ title: e, buttonTitle: t, createComp: n, isButtonVisible: r = !0 }
|
|
|
2240
2240
|
}
|
|
2241
2241
|
//#endregion
|
|
2242
2242
|
//#region src/components/custom/table/crudTableHeaderRows.tsx
|
|
2243
|
-
function
|
|
2244
|
-
return /* @__PURE__ */ a(
|
|
2243
|
+
function xr({ tableHeadRows: e }) {
|
|
2244
|
+
return /* @__PURE__ */ a(Rn, {
|
|
2245
2245
|
className: "bg-muted",
|
|
2246
|
-
children: /* @__PURE__ */ a(
|
|
2246
|
+
children: /* @__PURE__ */ a(Vn, { children: e.map((e, t) => /* @__PURE__ */ a(Hn, {
|
|
2247
2247
|
className: e.rowStyles,
|
|
2248
2248
|
children: e.rowName
|
|
2249
2249
|
}, t)) })
|
|
@@ -2251,7 +2251,7 @@ function br({ tableHeadRows: e }) {
|
|
|
2251
2251
|
}
|
|
2252
2252
|
//#endregion
|
|
2253
2253
|
//#region src/components/pure/pagination.tsx
|
|
2254
|
-
function
|
|
2254
|
+
function Sr({ className: e, ...t }) {
|
|
2255
2255
|
return /* @__PURE__ */ a("nav", {
|
|
2256
2256
|
role: "navigation",
|
|
2257
2257
|
"aria-label": "pagination",
|
|
@@ -2260,20 +2260,20 @@ function xr({ className: e, ...t }) {
|
|
|
2260
2260
|
...t
|
|
2261
2261
|
});
|
|
2262
2262
|
}
|
|
2263
|
-
function
|
|
2263
|
+
function Cr({ className: e, ...t }) {
|
|
2264
2264
|
return /* @__PURE__ */ a("ul", {
|
|
2265
2265
|
"data-slot": "pagination-content",
|
|
2266
2266
|
className: P("gap-0.5 flex items-center", e),
|
|
2267
2267
|
...t
|
|
2268
2268
|
});
|
|
2269
2269
|
}
|
|
2270
|
-
function
|
|
2270
|
+
function wr({ ...e }) {
|
|
2271
2271
|
return /* @__PURE__ */ a("li", {
|
|
2272
2272
|
"data-slot": "pagination-item",
|
|
2273
2273
|
...e
|
|
2274
2274
|
});
|
|
2275
2275
|
}
|
|
2276
|
-
function
|
|
2276
|
+
function Tr({ className: e, isActive: t, size: n = "icon", ...r }) {
|
|
2277
2277
|
return /* @__PURE__ */ a(F, {
|
|
2278
2278
|
asChild: !0,
|
|
2279
2279
|
variant: t ? "outline" : "ghost",
|
|
@@ -2287,8 +2287,8 @@ function wr({ className: e, isActive: t, size: n = "icon", ...r }) {
|
|
|
2287
2287
|
})
|
|
2288
2288
|
});
|
|
2289
2289
|
}
|
|
2290
|
-
function
|
|
2291
|
-
return /* @__PURE__ */ o(
|
|
2290
|
+
function Er({ className: e, text: t = "Previous", ...n }) {
|
|
2291
|
+
return /* @__PURE__ */ o(Tr, {
|
|
2292
2292
|
"aria-label": "Go to previous page",
|
|
2293
2293
|
size: "default",
|
|
2294
2294
|
className: P("ps-1.5!", e),
|
|
@@ -2302,8 +2302,8 @@ function Tr({ className: e, text: t = "Previous", ...n }) {
|
|
|
2302
2302
|
})]
|
|
2303
2303
|
});
|
|
2304
2304
|
}
|
|
2305
|
-
function
|
|
2306
|
-
return /* @__PURE__ */ o(
|
|
2305
|
+
function Dr({ className: e, text: t = "Next", ...n }) {
|
|
2306
|
+
return /* @__PURE__ */ o(Tr, {
|
|
2307
2307
|
"aria-label": "Go to next page",
|
|
2308
2308
|
size: "default",
|
|
2309
2309
|
className: P("pe-1.5!", e),
|
|
@@ -2317,7 +2317,7 @@ function Er({ className: e, text: t = "Next", ...n }) {
|
|
|
2317
2317
|
})]
|
|
2318
2318
|
});
|
|
2319
2319
|
}
|
|
2320
|
-
function
|
|
2320
|
+
function Or({ className: e, ...t }) {
|
|
2321
2321
|
return /* @__PURE__ */ o("span", {
|
|
2322
2322
|
"aria-hidden": !0,
|
|
2323
2323
|
"data-slot": "pagination-ellipsis",
|
|
@@ -2331,25 +2331,25 @@ function Dr({ className: e, ...t }) {
|
|
|
2331
2331
|
}
|
|
2332
2332
|
//#endregion
|
|
2333
2333
|
//#region src/components/pure/dropdown-menu.tsx
|
|
2334
|
-
function
|
|
2334
|
+
function kr({ ...e }) {
|
|
2335
2335
|
return /* @__PURE__ */ a(D.Root, {
|
|
2336
2336
|
"data-slot": "dropdown-menu",
|
|
2337
2337
|
...e
|
|
2338
2338
|
});
|
|
2339
2339
|
}
|
|
2340
|
-
function
|
|
2340
|
+
function Ar({ ...e }) {
|
|
2341
2341
|
return /* @__PURE__ */ a(D.Portal, {
|
|
2342
2342
|
"data-slot": "dropdown-menu-portal",
|
|
2343
2343
|
...e
|
|
2344
2344
|
});
|
|
2345
2345
|
}
|
|
2346
|
-
function
|
|
2346
|
+
function jr({ ...e }) {
|
|
2347
2347
|
return /* @__PURE__ */ a(D.Trigger, {
|
|
2348
2348
|
"data-slot": "dropdown-menu-trigger",
|
|
2349
2349
|
...e
|
|
2350
2350
|
});
|
|
2351
2351
|
}
|
|
2352
|
-
function
|
|
2352
|
+
function Mr({ className: e, align: t = "start", sideOffset: n = 4, ...r }) {
|
|
2353
2353
|
return /* @__PURE__ */ a(D.Portal, { children: /* @__PURE__ */ a(D.Content, {
|
|
2354
2354
|
"data-slot": "dropdown-menu-content",
|
|
2355
2355
|
sideOffset: n,
|
|
@@ -2358,7 +2358,7 @@ function jr({ className: e, align: t = "start", sideOffset: n = 4, ...r }) {
|
|
|
2358
2358
|
...r
|
|
2359
2359
|
}) });
|
|
2360
2360
|
}
|
|
2361
|
-
function
|
|
2361
|
+
function Nr({ ...e }) {
|
|
2362
2362
|
return /* @__PURE__ */ a(D.Group, {
|
|
2363
2363
|
"data-slot": "dropdown-menu-group",
|
|
2364
2364
|
...e
|
|
@@ -2373,7 +2373,7 @@ function B({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
|
2373
2373
|
...r
|
|
2374
2374
|
});
|
|
2375
2375
|
}
|
|
2376
|
-
function
|
|
2376
|
+
function Pr({ className: e, children: t, checked: n, inset: r, ...i }) {
|
|
2377
2377
|
return /* @__PURE__ */ o(D.CheckboxItem, {
|
|
2378
2378
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
2379
2379
|
"data-inset": r,
|
|
@@ -2387,13 +2387,13 @@ function Nr({ className: e, children: t, checked: n, inset: r, ...i }) {
|
|
|
2387
2387
|
}), t]
|
|
2388
2388
|
});
|
|
2389
2389
|
}
|
|
2390
|
-
function
|
|
2390
|
+
function Fr({ ...e }) {
|
|
2391
2391
|
return /* @__PURE__ */ a(D.RadioGroup, {
|
|
2392
2392
|
"data-slot": "dropdown-menu-radio-group",
|
|
2393
2393
|
...e
|
|
2394
2394
|
});
|
|
2395
2395
|
}
|
|
2396
|
-
function
|
|
2396
|
+
function Ir({ className: e, children: t, inset: n, ...r }) {
|
|
2397
2397
|
return /* @__PURE__ */ o(D.RadioItem, {
|
|
2398
2398
|
"data-slot": "dropdown-menu-radio-item",
|
|
2399
2399
|
"data-inset": n,
|
|
@@ -2406,7 +2406,7 @@ function Fr({ className: e, children: t, inset: n, ...r }) {
|
|
|
2406
2406
|
}), t]
|
|
2407
2407
|
});
|
|
2408
2408
|
}
|
|
2409
|
-
function
|
|
2409
|
+
function Lr({ className: e, inset: t, ...n }) {
|
|
2410
2410
|
return /* @__PURE__ */ a(D.Label, {
|
|
2411
2411
|
"data-slot": "dropdown-menu-label",
|
|
2412
2412
|
"data-inset": t,
|
|
@@ -2414,27 +2414,27 @@ function Ir({ className: e, inset: t, ...n }) {
|
|
|
2414
2414
|
...n
|
|
2415
2415
|
});
|
|
2416
2416
|
}
|
|
2417
|
-
function
|
|
2417
|
+
function Rr({ className: e, ...t }) {
|
|
2418
2418
|
return /* @__PURE__ */ a(D.Separator, {
|
|
2419
2419
|
"data-slot": "dropdown-menu-separator",
|
|
2420
2420
|
className: P("bg-border -mx-1 my-1 h-px", e),
|
|
2421
2421
|
...t
|
|
2422
2422
|
});
|
|
2423
2423
|
}
|
|
2424
|
-
function
|
|
2424
|
+
function zr({ className: e, ...t }) {
|
|
2425
2425
|
return /* @__PURE__ */ a("span", {
|
|
2426
2426
|
"data-slot": "dropdown-menu-shortcut",
|
|
2427
2427
|
className: P("text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ms-auto text-xs tracking-widest", e),
|
|
2428
2428
|
...t
|
|
2429
2429
|
});
|
|
2430
2430
|
}
|
|
2431
|
-
function
|
|
2431
|
+
function Br({ ...e }) {
|
|
2432
2432
|
return /* @__PURE__ */ a(D.Sub, {
|
|
2433
2433
|
"data-slot": "dropdown-menu-sub",
|
|
2434
2434
|
...e
|
|
2435
2435
|
});
|
|
2436
2436
|
}
|
|
2437
|
-
function
|
|
2437
|
+
function Vr({ className: e, inset: t, children: n, ...r }) {
|
|
2438
2438
|
return /* @__PURE__ */ o(D.SubTrigger, {
|
|
2439
2439
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
2440
2440
|
"data-inset": t,
|
|
@@ -2443,7 +2443,7 @@ function Br({ className: e, inset: t, children: n, ...r }) {
|
|
|
2443
2443
|
children: [n, /* @__PURE__ */ a(p, { className: "rtl:rotate-180 ms-auto" })]
|
|
2444
2444
|
});
|
|
2445
2445
|
}
|
|
2446
|
-
function
|
|
2446
|
+
function Hr({ className: e, ...t }) {
|
|
2447
2447
|
return /* @__PURE__ */ a(D.SubContent, {
|
|
2448
2448
|
"data-slot": "dropdown-menu-sub-content",
|
|
2449
2449
|
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),
|
|
@@ -2452,51 +2452,51 @@ function Vr({ className: e, ...t }) {
|
|
|
2452
2452
|
}
|
|
2453
2453
|
//#endregion
|
|
2454
2454
|
//#region src/hooks/use-mobile.ts
|
|
2455
|
-
var
|
|
2456
|
-
function
|
|
2455
|
+
var Ur = 768;
|
|
2456
|
+
function Wr() {
|
|
2457
2457
|
let [e, t] = y.useState(void 0);
|
|
2458
2458
|
return y.useEffect(() => {
|
|
2459
|
-
let e = window.matchMedia(`(max-width: ${
|
|
2460
|
-
t(window.innerWidth <
|
|
2459
|
+
let e = window.matchMedia(`(max-width: ${Ur - 1}px)`), n = () => {
|
|
2460
|
+
t(window.innerWidth < Ur);
|
|
2461
2461
|
};
|
|
2462
|
-
return e.addEventListener("change", n), t(window.innerWidth <
|
|
2462
|
+
return e.addEventListener("change", n), t(window.innerWidth < Ur), () => e.removeEventListener("change", n);
|
|
2463
2463
|
}, []), !!e;
|
|
2464
2464
|
}
|
|
2465
2465
|
//#endregion
|
|
2466
2466
|
//#region src/components/pure/sheet.tsx
|
|
2467
|
-
function
|
|
2467
|
+
function Gr({ ...e }) {
|
|
2468
2468
|
return /* @__PURE__ */ a(w.Root, {
|
|
2469
2469
|
"data-slot": "sheet",
|
|
2470
2470
|
...e
|
|
2471
2471
|
});
|
|
2472
2472
|
}
|
|
2473
|
-
function
|
|
2473
|
+
function Kr({ ...e }) {
|
|
2474
2474
|
return /* @__PURE__ */ a(w.Trigger, {
|
|
2475
2475
|
"data-slot": "sheet-trigger",
|
|
2476
2476
|
...e
|
|
2477
2477
|
});
|
|
2478
2478
|
}
|
|
2479
|
-
function
|
|
2479
|
+
function qr({ ...e }) {
|
|
2480
2480
|
return /* @__PURE__ */ a(w.Close, {
|
|
2481
2481
|
"data-slot": "sheet-close",
|
|
2482
2482
|
...e
|
|
2483
2483
|
});
|
|
2484
2484
|
}
|
|
2485
|
-
function
|
|
2485
|
+
function Jr({ ...e }) {
|
|
2486
2486
|
return /* @__PURE__ */ a(w.Portal, {
|
|
2487
2487
|
"data-slot": "sheet-portal",
|
|
2488
2488
|
...e
|
|
2489
2489
|
});
|
|
2490
2490
|
}
|
|
2491
|
-
function
|
|
2491
|
+
function Yr({ className: e, ...t }) {
|
|
2492
2492
|
return /* @__PURE__ */ a(w.Overlay, {
|
|
2493
2493
|
"data-slot": "sheet-overlay",
|
|
2494
2494
|
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),
|
|
2495
2495
|
...t
|
|
2496
2496
|
});
|
|
2497
2497
|
}
|
|
2498
|
-
function
|
|
2499
|
-
return /* @__PURE__ */ o(
|
|
2498
|
+
function Xr({ className: e, children: t, side: n = "right", showCloseButton: r = !0, ...i }) {
|
|
2499
|
+
return /* @__PURE__ */ o(Jr, { children: [/* @__PURE__ */ a(Yr, {}), /* @__PURE__ */ o(w.Content, {
|
|
2500
2500
|
"data-slot": "sheet-content",
|
|
2501
2501
|
"data-side": n,
|
|
2502
2502
|
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),
|
|
@@ -2516,28 +2516,28 @@ function Yr({ className: e, children: t, side: n = "right", showCloseButton: r =
|
|
|
2516
2516
|
})]
|
|
2517
2517
|
})] });
|
|
2518
2518
|
}
|
|
2519
|
-
function
|
|
2519
|
+
function Zr({ className: e, ...t }) {
|
|
2520
2520
|
return /* @__PURE__ */ a("div", {
|
|
2521
2521
|
"data-slot": "sheet-header",
|
|
2522
2522
|
className: P("gap-0.5 p-4 flex flex-col", e),
|
|
2523
2523
|
...t
|
|
2524
2524
|
});
|
|
2525
2525
|
}
|
|
2526
|
-
function
|
|
2526
|
+
function Qr({ className: e, ...t }) {
|
|
2527
2527
|
return /* @__PURE__ */ a("div", {
|
|
2528
2528
|
"data-slot": "sheet-footer",
|
|
2529
2529
|
className: P("gap-2 p-4 mt-auto flex flex-col", e),
|
|
2530
2530
|
...t
|
|
2531
2531
|
});
|
|
2532
2532
|
}
|
|
2533
|
-
function
|
|
2533
|
+
function $r({ className: e, ...t }) {
|
|
2534
2534
|
return /* @__PURE__ */ a(w.Title, {
|
|
2535
2535
|
"data-slot": "sheet-title",
|
|
2536
2536
|
className: P("text-foreground text-base font-medium", e),
|
|
2537
2537
|
...t
|
|
2538
2538
|
});
|
|
2539
2539
|
}
|
|
2540
|
-
function
|
|
2540
|
+
function ei({ className: e, ...t }) {
|
|
2541
2541
|
return /* @__PURE__ */ a(w.Description, {
|
|
2542
2542
|
"data-slot": "sheet-description",
|
|
2543
2543
|
className: P("text-muted-foreground text-sm", e),
|
|
@@ -2546,7 +2546,7 @@ function $r({ className: e, ...t }) {
|
|
|
2546
2546
|
}
|
|
2547
2547
|
//#endregion
|
|
2548
2548
|
//#region src/components/pure/skeleton.tsx
|
|
2549
|
-
function
|
|
2549
|
+
function ti({ className: e, ...t }) {
|
|
2550
2550
|
return /* @__PURE__ */ a("div", {
|
|
2551
2551
|
"data-slot": "skeleton",
|
|
2552
2552
|
className: P("bg-muted rounded-md animate-pulse", e),
|
|
@@ -2555,26 +2555,26 @@ function ei({ className: e, ...t }) {
|
|
|
2555
2555
|
}
|
|
2556
2556
|
//#endregion
|
|
2557
2557
|
//#region src/components/pure/tooltip.tsx
|
|
2558
|
-
function
|
|
2558
|
+
function ni({ delayDuration: e = 0, ...t }) {
|
|
2559
2559
|
return /* @__PURE__ */ a(O.Provider, {
|
|
2560
2560
|
"data-slot": "tooltip-provider",
|
|
2561
2561
|
delayDuration: e,
|
|
2562
2562
|
...t
|
|
2563
2563
|
});
|
|
2564
2564
|
}
|
|
2565
|
-
function
|
|
2565
|
+
function ri({ ...e }) {
|
|
2566
2566
|
return /* @__PURE__ */ a(O.Root, {
|
|
2567
2567
|
"data-slot": "tooltip",
|
|
2568
2568
|
...e
|
|
2569
2569
|
});
|
|
2570
2570
|
}
|
|
2571
|
-
function
|
|
2571
|
+
function ii({ ...e }) {
|
|
2572
2572
|
return /* @__PURE__ */ a(O.Trigger, {
|
|
2573
2573
|
"data-slot": "tooltip-trigger",
|
|
2574
2574
|
...e
|
|
2575
2575
|
});
|
|
2576
2576
|
}
|
|
2577
|
-
function
|
|
2577
|
+
function ai({ className: e, sideOffset: t = 0, children: n, ...r }) {
|
|
2578
2578
|
return /* @__PURE__ */ a(O.Portal, { children: /* @__PURE__ */ o(O.Content, {
|
|
2579
2579
|
"data-slot": "tooltip-content",
|
|
2580
2580
|
sideOffset: t,
|
|
@@ -2585,16 +2585,16 @@ function ii({ className: e, sideOffset: t = 0, children: n, ...r }) {
|
|
|
2585
2585
|
}
|
|
2586
2586
|
//#endregion
|
|
2587
2587
|
//#region src/components/pure/sidebar.tsx
|
|
2588
|
-
var
|
|
2588
|
+
var oi = "sidebar_state", si = 3600 * 24 * 7, ci = "16rem", li = "18rem", ui = "3rem", di = "b", fi = y.createContext(null);
|
|
2589
2589
|
function V() {
|
|
2590
|
-
let e = y.useContext(
|
|
2590
|
+
let e = y.useContext(fi);
|
|
2591
2591
|
if (!e) throw Error("useSidebar must be used within a SidebarProvider.");
|
|
2592
2592
|
return e;
|
|
2593
2593
|
}
|
|
2594
|
-
function
|
|
2595
|
-
let c =
|
|
2594
|
+
function pi({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style: i, children: o, ...s }) {
|
|
2595
|
+
let c = Wr(), [l, u] = y.useState(!1), [d, f] = y.useState(e), p = t ?? d, m = y.useCallback((e) => {
|
|
2596
2596
|
let t = typeof e == "function" ? e(p) : e;
|
|
2597
|
-
n ? n(t) : f(t), document.cookie = `${
|
|
2597
|
+
n ? n(t) : f(t), document.cookie = `${oi}=${t}; path=/; max-age=${si}`;
|
|
2598
2598
|
}, [n, p]), h = y.useCallback(() => c ? u((e) => !e) : m((e) => !e), [
|
|
2599
2599
|
c,
|
|
2600
2600
|
m,
|
|
@@ -2602,7 +2602,7 @@ function fi({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style
|
|
|
2602
2602
|
]);
|
|
2603
2603
|
y.useEffect(() => {
|
|
2604
2604
|
let e = (e) => {
|
|
2605
|
-
e.key ===
|
|
2605
|
+
e.key === di && (e.metaKey || e.ctrlKey) && (e.preventDefault(), h());
|
|
2606
2606
|
};
|
|
2607
2607
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
2608
2608
|
}, [h]);
|
|
@@ -2623,13 +2623,13 @@ function fi({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style
|
|
|
2623
2623
|
u,
|
|
2624
2624
|
h
|
|
2625
2625
|
]);
|
|
2626
|
-
return /* @__PURE__ */ a(
|
|
2626
|
+
return /* @__PURE__ */ a(fi.Provider, {
|
|
2627
2627
|
value: _,
|
|
2628
2628
|
children: /* @__PURE__ */ a("div", {
|
|
2629
2629
|
"data-slot": "sidebar-wrapper",
|
|
2630
2630
|
style: {
|
|
2631
|
-
"--sidebar-width":
|
|
2632
|
-
"--sidebar-width-icon":
|
|
2631
|
+
"--sidebar-width": ci,
|
|
2632
|
+
"--sidebar-width-icon": ui,
|
|
2633
2633
|
...i
|
|
2634
2634
|
},
|
|
2635
2635
|
className: P("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", r),
|
|
@@ -2638,28 +2638,28 @@ function fi({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style
|
|
|
2638
2638
|
})
|
|
2639
2639
|
});
|
|
2640
2640
|
}
|
|
2641
|
-
function
|
|
2641
|
+
function mi({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", className: r, children: i, dir: s, ...c }) {
|
|
2642
2642
|
let { isMobile: l, state: u, openMobile: d, setOpenMobile: f } = V();
|
|
2643
2643
|
return n === "none" ? /* @__PURE__ */ a("div", {
|
|
2644
2644
|
"data-slot": "sidebar",
|
|
2645
2645
|
className: P("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", r),
|
|
2646
2646
|
...c,
|
|
2647
2647
|
children: i
|
|
2648
|
-
}) : l ? /* @__PURE__ */ a(
|
|
2648
|
+
}) : l ? /* @__PURE__ */ a(Gr, {
|
|
2649
2649
|
open: d,
|
|
2650
2650
|
onOpenChange: f,
|
|
2651
2651
|
...c,
|
|
2652
|
-
children: /* @__PURE__ */ o(
|
|
2652
|
+
children: /* @__PURE__ */ o(Xr, {
|
|
2653
2653
|
dir: s,
|
|
2654
2654
|
"data-sidebar": "sidebar",
|
|
2655
2655
|
"data-slot": "sidebar",
|
|
2656
2656
|
"data-mobile": "true",
|
|
2657
2657
|
className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
|
|
2658
|
-
style: { "--sidebar-width":
|
|
2658
|
+
style: { "--sidebar-width": li },
|
|
2659
2659
|
side: e,
|
|
2660
|
-
children: [/* @__PURE__ */ o(
|
|
2660
|
+
children: [/* @__PURE__ */ o(Zr, {
|
|
2661
2661
|
className: "sr-only",
|
|
2662
|
-
children: [/* @__PURE__ */ a(
|
|
2662
|
+
children: [/* @__PURE__ */ a($r, { children: "Sidebar" }), /* @__PURE__ */ a(ei, { children: "Displays the mobile sidebar." })]
|
|
2663
2663
|
}), /* @__PURE__ */ a("div", {
|
|
2664
2664
|
className: "flex h-full w-full flex-col",
|
|
2665
2665
|
children: i
|
|
@@ -2689,7 +2689,7 @@ function pi({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
|
|
|
2689
2689
|
})]
|
|
2690
2690
|
});
|
|
2691
2691
|
}
|
|
2692
|
-
function
|
|
2692
|
+
function hi({ className: e, onClick: t, ...n }) {
|
|
2693
2693
|
let { toggleSidebar: r } = V();
|
|
2694
2694
|
return /* @__PURE__ */ o(F, {
|
|
2695
2695
|
"data-sidebar": "trigger",
|
|
@@ -2707,7 +2707,7 @@ function mi({ className: e, onClick: t, ...n }) {
|
|
|
2707
2707
|
})]
|
|
2708
2708
|
});
|
|
2709
2709
|
}
|
|
2710
|
-
function
|
|
2710
|
+
function gi({ className: e, ...t }) {
|
|
2711
2711
|
let { toggleSidebar: n } = V();
|
|
2712
2712
|
return /* @__PURE__ */ a("button", {
|
|
2713
2713
|
"data-sidebar": "rail",
|
|
@@ -2720,14 +2720,14 @@ function hi({ className: e, ...t }) {
|
|
|
2720
2720
|
...t
|
|
2721
2721
|
});
|
|
2722
2722
|
}
|
|
2723
|
-
function
|
|
2723
|
+
function _i({ className: e, ...t }) {
|
|
2724
2724
|
return /* @__PURE__ */ a("main", {
|
|
2725
2725
|
"data-slot": "sidebar-inset",
|
|
2726
2726
|
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),
|
|
2727
2727
|
...t
|
|
2728
2728
|
});
|
|
2729
2729
|
}
|
|
2730
|
-
function
|
|
2730
|
+
function vi({ className: e, ...t }) {
|
|
2731
2731
|
return /* @__PURE__ */ a(z, {
|
|
2732
2732
|
"data-slot": "sidebar-input",
|
|
2733
2733
|
"data-sidebar": "input",
|
|
@@ -2735,7 +2735,7 @@ function _i({ className: e, ...t }) {
|
|
|
2735
2735
|
...t
|
|
2736
2736
|
});
|
|
2737
2737
|
}
|
|
2738
|
-
function
|
|
2738
|
+
function yi({ className: e, ...t }) {
|
|
2739
2739
|
return /* @__PURE__ */ a("div", {
|
|
2740
2740
|
"data-slot": "sidebar-header",
|
|
2741
2741
|
"data-sidebar": "header",
|
|
@@ -2743,7 +2743,7 @@ function vi({ className: e, ...t }) {
|
|
|
2743
2743
|
...t
|
|
2744
2744
|
});
|
|
2745
2745
|
}
|
|
2746
|
-
function
|
|
2746
|
+
function bi({ className: e, ...t }) {
|
|
2747
2747
|
return /* @__PURE__ */ a("div", {
|
|
2748
2748
|
"data-slot": "sidebar-footer",
|
|
2749
2749
|
"data-sidebar": "footer",
|
|
@@ -2751,7 +2751,7 @@ function yi({ className: e, ...t }) {
|
|
|
2751
2751
|
...t
|
|
2752
2752
|
});
|
|
2753
2753
|
}
|
|
2754
|
-
function
|
|
2754
|
+
function xi({ className: e, ...t }) {
|
|
2755
2755
|
return /* @__PURE__ */ a(L, {
|
|
2756
2756
|
"data-slot": "sidebar-separator",
|
|
2757
2757
|
"data-sidebar": "separator",
|
|
@@ -2759,7 +2759,7 @@ function bi({ className: e, ...t }) {
|
|
|
2759
2759
|
...t
|
|
2760
2760
|
});
|
|
2761
2761
|
}
|
|
2762
|
-
function
|
|
2762
|
+
function Si({ className: e, ...t }) {
|
|
2763
2763
|
return /* @__PURE__ */ a("div", {
|
|
2764
2764
|
"data-slot": "sidebar-content",
|
|
2765
2765
|
"data-sidebar": "content",
|
|
@@ -2767,7 +2767,7 @@ function xi({ className: e, ...t }) {
|
|
|
2767
2767
|
...t
|
|
2768
2768
|
});
|
|
2769
2769
|
}
|
|
2770
|
-
function
|
|
2770
|
+
function Ci({ className: e, ...t }) {
|
|
2771
2771
|
return /* @__PURE__ */ a("div", {
|
|
2772
2772
|
"data-slot": "sidebar-group",
|
|
2773
2773
|
"data-sidebar": "group",
|
|
@@ -2775,7 +2775,7 @@ function Si({ className: e, ...t }) {
|
|
|
2775
2775
|
...t
|
|
2776
2776
|
});
|
|
2777
2777
|
}
|
|
2778
|
-
function
|
|
2778
|
+
function wi({ className: e, asChild: t = !1, ...n }) {
|
|
2779
2779
|
return /* @__PURE__ */ a(t ? C : "div", {
|
|
2780
2780
|
"data-slot": "sidebar-group-label",
|
|
2781
2781
|
"data-sidebar": "group-label",
|
|
@@ -2783,7 +2783,7 @@ function Ci({ className: e, asChild: t = !1, ...n }) {
|
|
|
2783
2783
|
...n
|
|
2784
2784
|
});
|
|
2785
2785
|
}
|
|
2786
|
-
function
|
|
2786
|
+
function Ti({ className: e, asChild: t = !1, ...n }) {
|
|
2787
2787
|
return /* @__PURE__ */ a(t ? C : "button", {
|
|
2788
2788
|
"data-slot": "sidebar-group-action",
|
|
2789
2789
|
"data-sidebar": "group-action",
|
|
@@ -2791,7 +2791,7 @@ function wi({ className: e, asChild: t = !1, ...n }) {
|
|
|
2791
2791
|
...n
|
|
2792
2792
|
});
|
|
2793
2793
|
}
|
|
2794
|
-
function
|
|
2794
|
+
function Ei({ className: e, ...t }) {
|
|
2795
2795
|
return /* @__PURE__ */ a("div", {
|
|
2796
2796
|
"data-slot": "sidebar-group-content",
|
|
2797
2797
|
"data-sidebar": "group-content",
|
|
@@ -2815,7 +2815,7 @@ function U({ className: e, ...t }) {
|
|
|
2815
2815
|
...t
|
|
2816
2816
|
});
|
|
2817
2817
|
}
|
|
2818
|
-
var
|
|
2818
|
+
var Di = S("ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground gap-2 rounded-md p-2 text-start text-sm transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 data-active:font-medium peer/menu-button flex w-full items-center overflow-hidden outline-hidden group/menu-button disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&_svg]:size-6 [&_svg]:shrink-0", {
|
|
2819
2819
|
variants: {
|
|
2820
2820
|
variant: {
|
|
2821
2821
|
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
@@ -2838,23 +2838,23 @@ function W({ asChild: e = !1, isActive: t = !1, variant: n = "default", size: r
|
|
|
2838
2838
|
"data-sidebar": "menu-button",
|
|
2839
2839
|
"data-size": r,
|
|
2840
2840
|
"data-active": t,
|
|
2841
|
-
className: P(
|
|
2841
|
+
className: P(Di({
|
|
2842
2842
|
variant: n,
|
|
2843
2843
|
size: r
|
|
2844
2844
|
}), s),
|
|
2845
2845
|
...c
|
|
2846
2846
|
});
|
|
2847
|
-
return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */ o(
|
|
2847
|
+
return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */ o(ri, { children: [/* @__PURE__ */ a(ii, {
|
|
2848
2848
|
asChild: !0,
|
|
2849
2849
|
children: f
|
|
2850
|
-
}), /* @__PURE__ */ a(
|
|
2850
|
+
}), /* @__PURE__ */ a(ai, {
|
|
2851
2851
|
side: "right",
|
|
2852
2852
|
align: "center",
|
|
2853
2853
|
hidden: d !== "collapsed" || u,
|
|
2854
2854
|
...i
|
|
2855
2855
|
})] })) : f;
|
|
2856
2856
|
}
|
|
2857
|
-
function
|
|
2857
|
+
function Oi({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }) {
|
|
2858
2858
|
return /* @__PURE__ */ a(t ? C : "button", {
|
|
2859
2859
|
"data-slot": "sidebar-menu-action",
|
|
2860
2860
|
"data-sidebar": "menu-action",
|
|
@@ -2862,7 +2862,7 @@ function Di({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }) {
|
|
|
2862
2862
|
...r
|
|
2863
2863
|
});
|
|
2864
2864
|
}
|
|
2865
|
-
function
|
|
2865
|
+
function ki({ className: e, ...t }) {
|
|
2866
2866
|
return /* @__PURE__ */ a("div", {
|
|
2867
2867
|
"data-slot": "sidebar-menu-badge",
|
|
2868
2868
|
"data-sidebar": "menu-badge",
|
|
@@ -2870,24 +2870,24 @@ function Oi({ className: e, ...t }) {
|
|
|
2870
2870
|
...t
|
|
2871
2871
|
});
|
|
2872
2872
|
}
|
|
2873
|
-
function
|
|
2873
|
+
function Ai({ className: e, showIcon: t = !1, ...n }) {
|
|
2874
2874
|
let [r] = y.useState(() => `${Math.floor(Math.random() * 40) + 50}%`);
|
|
2875
2875
|
return /* @__PURE__ */ o("div", {
|
|
2876
2876
|
"data-slot": "sidebar-menu-skeleton",
|
|
2877
2877
|
"data-sidebar": "menu-skeleton",
|
|
2878
2878
|
className: P("h-8 gap-2 rounded-md px-2 flex items-center", e),
|
|
2879
2879
|
...n,
|
|
2880
|
-
children: [t && /* @__PURE__ */ a(
|
|
2880
|
+
children: [t && /* @__PURE__ */ a(ti, {
|
|
2881
2881
|
className: "size-4 rounded-md",
|
|
2882
2882
|
"data-sidebar": "menu-skeleton-icon"
|
|
2883
|
-
}), /* @__PURE__ */ a(
|
|
2883
|
+
}), /* @__PURE__ */ a(ti, {
|
|
2884
2884
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
2885
2885
|
"data-sidebar": "menu-skeleton-text",
|
|
2886
2886
|
style: { "--skeleton-width": r }
|
|
2887
2887
|
})]
|
|
2888
2888
|
});
|
|
2889
2889
|
}
|
|
2890
|
-
function
|
|
2890
|
+
function ji({ className: e, ...t }) {
|
|
2891
2891
|
return /* @__PURE__ */ a("ul", {
|
|
2892
2892
|
"data-slot": "sidebar-menu-sub",
|
|
2893
2893
|
"data-sidebar": "menu-sub",
|
|
@@ -2895,7 +2895,7 @@ function Ai({ className: e, ...t }) {
|
|
|
2895
2895
|
...t
|
|
2896
2896
|
});
|
|
2897
2897
|
}
|
|
2898
|
-
function
|
|
2898
|
+
function Mi({ className: e, ...t }) {
|
|
2899
2899
|
return /* @__PURE__ */ a("li", {
|
|
2900
2900
|
"data-slot": "sidebar-menu-sub-item",
|
|
2901
2901
|
"data-sidebar": "menu-sub-item",
|
|
@@ -2903,7 +2903,7 @@ function ji({ className: e, ...t }) {
|
|
|
2903
2903
|
...t
|
|
2904
2904
|
});
|
|
2905
2905
|
}
|
|
2906
|
-
function
|
|
2906
|
+
function Ni({ asChild: e = !1, size: t = "md", isActive: n = !1, className: r, ...i }) {
|
|
2907
2907
|
return /* @__PURE__ */ a(e ? C : "a", {
|
|
2908
2908
|
"data-slot": "sidebar-menu-sub-button",
|
|
2909
2909
|
"data-sidebar": "menu-sub-button",
|
|
@@ -2915,7 +2915,7 @@ function Mi({ asChild: e = !1, size: t = "md", isActive: n = !1, className: r, .
|
|
|
2915
2915
|
}
|
|
2916
2916
|
//#endregion
|
|
2917
2917
|
//#region src/components/custom/table/crudTablePagination.tsx
|
|
2918
|
-
function
|
|
2918
|
+
function Pi({ pageSize: e, totalNumber: t, currentPage: n, onPageChanged: r }) {
|
|
2919
2919
|
let i = Math.ceil(t / e);
|
|
2920
2920
|
return /* @__PURE__ */ o("div", {
|
|
2921
2921
|
className: "p-4 border-t bg-muted flex items-center justify-between text-sm text-muted-foreground",
|
|
@@ -2931,25 +2931,25 @@ function Ni({ pageSize: e, totalNumber: t, currentPage: n, onPageChanged: r }) {
|
|
|
2931
2931
|
t,
|
|
2932
2932
|
" "
|
|
2933
2933
|
]
|
|
2934
|
-
}), /* @__PURE__ */ a(
|
|
2934
|
+
}), /* @__PURE__ */ a(Sr, {
|
|
2935
2935
|
dir: "rtl",
|
|
2936
2936
|
className: "justify-end w-auto mx-0",
|
|
2937
|
-
children: /* @__PURE__ */ o(
|
|
2938
|
-
/* @__PURE__ */ a(
|
|
2937
|
+
children: /* @__PURE__ */ o(Cr, { children: [
|
|
2938
|
+
/* @__PURE__ */ a(wr, { children: /* @__PURE__ */ a(Er, {
|
|
2939
2939
|
onClick: () => {
|
|
2940
2940
|
n > 1 && r?.(n - 1);
|
|
2941
2941
|
},
|
|
2942
2942
|
text: "السابق"
|
|
2943
2943
|
}) }),
|
|
2944
|
-
/* @__PURE__ */ o(
|
|
2944
|
+
/* @__PURE__ */ o(kr, {
|
|
2945
2945
|
dir: "rtl",
|
|
2946
|
-
children: [/* @__PURE__ */ a(
|
|
2946
|
+
children: [/* @__PURE__ */ a(jr, {
|
|
2947
2947
|
asChild: !0,
|
|
2948
2948
|
children: /* @__PURE__ */ a(W, {
|
|
2949
2949
|
className: "w-full h-5 justify-start gap-2 text-base",
|
|
2950
2950
|
children: /* @__PURE__ */ a("span", { children: n })
|
|
2951
2951
|
})
|
|
2952
|
-
}), /* @__PURE__ */ a(
|
|
2952
|
+
}), /* @__PURE__ */ a(Mr, {
|
|
2953
2953
|
align: "end",
|
|
2954
2954
|
children: Array.from({ length: Math.ceil(t / e) }, (e, t) => /* @__PURE__ */ a(B, {
|
|
2955
2955
|
onClick: () => r?.(t + 1),
|
|
@@ -2957,7 +2957,7 @@ function Ni({ pageSize: e, totalNumber: t, currentPage: n, onPageChanged: r }) {
|
|
|
2957
2957
|
}, t + 1))
|
|
2958
2958
|
})]
|
|
2959
2959
|
}),
|
|
2960
|
-
/* @__PURE__ */ a(
|
|
2960
|
+
/* @__PURE__ */ a(wr, { children: /* @__PURE__ */ a(Dr, {
|
|
2961
2961
|
onClick: () => {
|
|
2962
2962
|
n < i && r?.(n + 1);
|
|
2963
2963
|
},
|
|
@@ -2969,21 +2969,21 @@ function Ni({ pageSize: e, totalNumber: t, currentPage: n, onPageChanged: r }) {
|
|
|
2969
2969
|
}
|
|
2970
2970
|
//#endregion
|
|
2971
2971
|
//#region src/components/custom/table/crudTableRowActionsMenu.tsx
|
|
2972
|
-
function
|
|
2973
|
-
return /* @__PURE__ */ o(i, { children: [n === "dropdown" && /* @__PURE__ */ o(
|
|
2972
|
+
function Fi({ onEditClicked: e, onDeleteClicked: t, type: n, permissions: r }) {
|
|
2973
|
+
return /* @__PURE__ */ o(i, { children: [n === "dropdown" && /* @__PURE__ */ o(kr, {
|
|
2974
2974
|
dir: "rtl",
|
|
2975
|
-
children: [/* @__PURE__ */ a(
|
|
2975
|
+
children: [/* @__PURE__ */ a(jr, {
|
|
2976
2976
|
asChild: !0,
|
|
2977
2977
|
children: /* @__PURE__ */ a(F, {
|
|
2978
2978
|
variant: "ghost",
|
|
2979
2979
|
className: "h-8 w-8 p-0",
|
|
2980
2980
|
children: /* @__PURE__ */ a(le, { className: "h-4 w-4" })
|
|
2981
2981
|
})
|
|
2982
|
-
}), /* @__PURE__ */ o(
|
|
2982
|
+
}), /* @__PURE__ */ o(Mr, {
|
|
2983
2983
|
align: "start",
|
|
2984
2984
|
children: [
|
|
2985
|
-
/* @__PURE__ */ a(
|
|
2986
|
-
/* @__PURE__ */ a(
|
|
2985
|
+
/* @__PURE__ */ a(Lr, { children: "الإجراءات" }),
|
|
2986
|
+
/* @__PURE__ */ a(Rr, {}),
|
|
2987
2987
|
r.updatePermission && /* @__PURE__ */ a(B, {
|
|
2988
2988
|
onSelect: e,
|
|
2989
2989
|
children: "تعديل"
|
|
@@ -2995,14 +2995,14 @@ function Pi({ onEditClicked: e, onDeleteClicked: t, type: n, permissions: r }) {
|
|
|
2995
2995
|
})
|
|
2996
2996
|
]
|
|
2997
2997
|
})]
|
|
2998
|
-
}), n === "context" && /* @__PURE__ */ a(
|
|
2999
|
-
/* @__PURE__ */ a(
|
|
3000
|
-
/* @__PURE__ */ a(
|
|
3001
|
-
r.updatePermission && /* @__PURE__ */ a(
|
|
2998
|
+
}), n === "context" && /* @__PURE__ */ a(lr, { children: /* @__PURE__ */ o(ar, { children: [
|
|
2999
|
+
/* @__PURE__ */ a(hr, { children: "الإجراءات" }),
|
|
3000
|
+
/* @__PURE__ */ a(gr, {}),
|
|
3001
|
+
r.updatePermission && /* @__PURE__ */ a(ur, {
|
|
3002
3002
|
onSelect: e,
|
|
3003
3003
|
children: "تعديل"
|
|
3004
3004
|
}),
|
|
3005
|
-
r.deletePermission && /* @__PURE__ */ a(
|
|
3005
|
+
r.deletePermission && /* @__PURE__ */ a(ur, {
|
|
3006
3006
|
className: "text-destructive",
|
|
3007
3007
|
onSelect: t,
|
|
3008
3008
|
children: "حذف"
|
|
@@ -3011,38 +3011,38 @@ function Pi({ onEditClicked: e, onDeleteClicked: t, type: n, permissions: r }) {
|
|
|
3011
3011
|
}
|
|
3012
3012
|
//#endregion
|
|
3013
3013
|
//#region src/components/custom/pages/crudPage.tsx
|
|
3014
|
-
function
|
|
3015
|
-
let g =
|
|
3016
|
-
return
|
|
3014
|
+
function Ii({ permissions: e, useSlice: t, entityName: n, title: r, addNewItemTitle: i, cards: s, columnsToFilter: c, actions: l, service: u, entityState: d, tableHeadRows: f, tableRowMapper: p, ChangeDialog: m, children: h }) {
|
|
3015
|
+
let g = Ue(), { selectedRow: _, isChangeDialogOpen: v, isDeleteDialogOpen: ee } = t();
|
|
3016
|
+
return Ae(() => {
|
|
3017
3017
|
g(l.filter(void 0));
|
|
3018
3018
|
}, [g, l.filter]), /* @__PURE__ */ o("div", {
|
|
3019
3019
|
className: "px-5 py-3",
|
|
3020
3020
|
children: [
|
|
3021
|
-
/* @__PURE__ */ a(
|
|
3021
|
+
/* @__PURE__ */ a(br, {
|
|
3022
3022
|
title: r,
|
|
3023
3023
|
buttonTitle: i,
|
|
3024
3024
|
isButtonVisible: e.addPermission,
|
|
3025
3025
|
createComp: m
|
|
3026
3026
|
}),
|
|
3027
|
-
/* @__PURE__ */ a(
|
|
3028
|
-
/* @__PURE__ */ a(
|
|
3027
|
+
/* @__PURE__ */ a(yr, { cards: s }),
|
|
3028
|
+
/* @__PURE__ */ a(In, {
|
|
3029
3029
|
columnsNames: c,
|
|
3030
3030
|
onSearch: (e) => g(l.filter(e))
|
|
3031
3031
|
}),
|
|
3032
3032
|
/* @__PURE__ */ o("div", {
|
|
3033
3033
|
className: "rounded-b-xl border shadow-sm overflow-hidden",
|
|
3034
3034
|
children: [
|
|
3035
|
-
/* @__PURE__ */ o(
|
|
3035
|
+
/* @__PURE__ */ o(nr, {
|
|
3036
3036
|
state: d,
|
|
3037
|
-
children: [/* @__PURE__ */ a(
|
|
3037
|
+
children: [/* @__PURE__ */ a(xr, { tableHeadRows: f }), /* @__PURE__ */ a(zn, { children: d.entities?.data?.map((t, n) => /* @__PURE__ */ a(vr, {
|
|
3038
3038
|
tableRows: p(t),
|
|
3039
|
-
dropdownMenu: /* @__PURE__ */ a(
|
|
3039
|
+
dropdownMenu: /* @__PURE__ */ a(Fi, {
|
|
3040
3040
|
permissions: e,
|
|
3041
3041
|
type: "dropdown",
|
|
3042
3042
|
onEditClicked: () => g(l.openChangeDialog(t)),
|
|
3043
3043
|
onDeleteClicked: () => g(l.openDeleteDialog(t))
|
|
3044
3044
|
}),
|
|
3045
|
-
contextMenuContent: /* @__PURE__ */ a(
|
|
3045
|
+
contextMenuContent: /* @__PURE__ */ a(Fi, {
|
|
3046
3046
|
permissions: e,
|
|
3047
3047
|
type: "context",
|
|
3048
3048
|
onEditClicked: () => g(l.openChangeDialog(t)),
|
|
@@ -3050,7 +3050,7 @@ function Fi({ permissions: e, useSlice: t, entityName: n, title: r, addNewItemTi
|
|
|
3050
3050
|
})
|
|
3051
3051
|
}, n)) })]
|
|
3052
3052
|
}),
|
|
3053
|
-
/* @__PURE__ */ a(
|
|
3053
|
+
/* @__PURE__ */ a(Pi, {
|
|
3054
3054
|
pageSize: d.rowsPerPage,
|
|
3055
3055
|
totalNumber: d.entities?.count ?? 0,
|
|
3056
3056
|
currentPage: d.currentPage || 1,
|
|
@@ -3064,10 +3064,10 @@ function Fi({ permissions: e, useSlice: t, entityName: n, title: r, addNewItemTi
|
|
|
3064
3064
|
ee && e.deletePermission && /* @__PURE__ */ a(I, {
|
|
3065
3065
|
open: ee,
|
|
3066
3066
|
onOpenChange: (e) => g(l.setIsDeleteDialogOpen(e)),
|
|
3067
|
-
children: /* @__PURE__ */ a(
|
|
3067
|
+
children: /* @__PURE__ */ a(ht, {
|
|
3068
3068
|
dir: "rtl",
|
|
3069
3069
|
className: "sm:max-w-sm",
|
|
3070
|
-
children: /* @__PURE__ */ a(
|
|
3070
|
+
children: /* @__PURE__ */ a(xt, {
|
|
3071
3071
|
entityName: n,
|
|
3072
3072
|
id: _?.id ?? 0,
|
|
3073
3073
|
service: u,
|
|
@@ -3085,7 +3085,7 @@ function Fi({ permissions: e, useSlice: t, entityName: n, title: r, addNewItemTi
|
|
|
3085
3085
|
}
|
|
3086
3086
|
//#endregion
|
|
3087
3087
|
//#region src/components/pure/input-group.tsx
|
|
3088
|
-
function
|
|
3088
|
+
function Li({ className: e, ...t }) {
|
|
3089
3089
|
return /* @__PURE__ */ a("div", {
|
|
3090
3090
|
"data-slot": "input-group",
|
|
3091
3091
|
role: "group",
|
|
@@ -3093,7 +3093,7 @@ function Ii({ className: e, ...t }) {
|
|
|
3093
3093
|
...t
|
|
3094
3094
|
});
|
|
3095
3095
|
}
|
|
3096
|
-
var
|
|
3096
|
+
var Ri = S("text-muted-foreground h-auto gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4 flex cursor-text items-center justify-center select-none", {
|
|
3097
3097
|
variants: { align: {
|
|
3098
3098
|
"inline-start": "ps-2 has-[>button]:ms-[-0.3rem] has-[>kbd]:ms-[-0.15rem] order-first",
|
|
3099
3099
|
"inline-end": "pe-2 has-[>button]:me-[-0.3rem] has-[>kbd]:me-[-0.15rem] order-last",
|
|
@@ -3102,19 +3102,19 @@ var Li = S("text-muted-foreground h-auto gap-2 py-1.5 text-sm font-medium group-
|
|
|
3102
3102
|
} },
|
|
3103
3103
|
defaultVariants: { align: "inline-start" }
|
|
3104
3104
|
});
|
|
3105
|
-
function
|
|
3105
|
+
function zi({ className: e, align: t = "inline-start", ...n }) {
|
|
3106
3106
|
return /* @__PURE__ */ a("div", {
|
|
3107
3107
|
role: "group",
|
|
3108
3108
|
"data-slot": "input-group-addon",
|
|
3109
3109
|
"data-align": t,
|
|
3110
|
-
className: P(
|
|
3110
|
+
className: P(Ri({ align: t }), e),
|
|
3111
3111
|
onClick: (e) => {
|
|
3112
3112
|
e.target.closest("button") || e.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
3113
3113
|
},
|
|
3114
3114
|
...n
|
|
3115
3115
|
});
|
|
3116
3116
|
}
|
|
3117
|
-
var
|
|
3117
|
+
var Bi = S("gap-2 text-sm shadow-none flex items-center", {
|
|
3118
3118
|
variants: { size: {
|
|
3119
3119
|
xs: "h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
|
|
3120
3120
|
sm: "",
|
|
@@ -3123,30 +3123,30 @@ var zi = S("gap-2 text-sm shadow-none flex items-center", {
|
|
|
3123
3123
|
} },
|
|
3124
3124
|
defaultVariants: { size: "xs" }
|
|
3125
3125
|
});
|
|
3126
|
-
function
|
|
3126
|
+
function Vi({ className: e, type: t = "button", variant: n = "ghost", size: r = "xs", ...i }) {
|
|
3127
3127
|
return /* @__PURE__ */ a(F, {
|
|
3128
3128
|
type: t,
|
|
3129
3129
|
"data-size": r,
|
|
3130
3130
|
variant: n,
|
|
3131
|
-
className: P(
|
|
3131
|
+
className: P(Bi({ size: r }), e),
|
|
3132
3132
|
...i
|
|
3133
3133
|
});
|
|
3134
3134
|
}
|
|
3135
|
-
function
|
|
3135
|
+
function Hi({ className: e, ...t }) {
|
|
3136
3136
|
return /* @__PURE__ */ a("span", {
|
|
3137
3137
|
className: P("text-muted-foreground gap-2 text-sm [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none", e),
|
|
3138
3138
|
...t
|
|
3139
3139
|
});
|
|
3140
3140
|
}
|
|
3141
|
-
function
|
|
3141
|
+
function Ui({ className: e, ...t }) {
|
|
3142
3142
|
return /* @__PURE__ */ a(z, {
|
|
3143
3143
|
"data-slot": "input-group-control",
|
|
3144
3144
|
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),
|
|
3145
3145
|
...t
|
|
3146
3146
|
});
|
|
3147
3147
|
}
|
|
3148
|
-
function
|
|
3149
|
-
return /* @__PURE__ */ a(
|
|
3148
|
+
function Wi({ className: e, ...t }) {
|
|
3149
|
+
return /* @__PURE__ */ a(An, {
|
|
3150
3150
|
"data-slot": "input-group-control",
|
|
3151
3151
|
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),
|
|
3152
3152
|
...t
|
|
@@ -3154,69 +3154,69 @@ function Ui({ className: e, ...t }) {
|
|
|
3154
3154
|
}
|
|
3155
3155
|
//#endregion
|
|
3156
3156
|
//#region src/components/pure/command.tsx
|
|
3157
|
-
function
|
|
3157
|
+
function Gi({ className: e, ...t }) {
|
|
3158
3158
|
return /* @__PURE__ */ a(k, {
|
|
3159
3159
|
"data-slot": "command",
|
|
3160
3160
|
className: P("bg-popover text-popover-foreground rounded-xl! p-1 flex size-full flex-col overflow-hidden", e),
|
|
3161
3161
|
...t
|
|
3162
3162
|
});
|
|
3163
3163
|
}
|
|
3164
|
-
function
|
|
3164
|
+
function Ki({ title: e = "Command Palette", description: t = "Search for a command to run...", children: n, className: r, showCloseButton: i = !1, ...s }) {
|
|
3165
3165
|
return /* @__PURE__ */ o(I, {
|
|
3166
3166
|
...s,
|
|
3167
|
-
children: [/* @__PURE__ */ o(
|
|
3167
|
+
children: [/* @__PURE__ */ o(gt, {
|
|
3168
3168
|
className: "sr-only",
|
|
3169
|
-
children: [/* @__PURE__ */ a(
|
|
3170
|
-
}), /* @__PURE__ */ a(
|
|
3169
|
+
children: [/* @__PURE__ */ a(vt, { children: e }), /* @__PURE__ */ a(yt, { children: t })]
|
|
3170
|
+
}), /* @__PURE__ */ a(ht, {
|
|
3171
3171
|
className: P("rounded-xl! top-1/3 translate-y-0 overflow-hidden p-0", r),
|
|
3172
3172
|
showCloseButton: i,
|
|
3173
3173
|
children: n
|
|
3174
3174
|
})]
|
|
3175
3175
|
});
|
|
3176
3176
|
}
|
|
3177
|
-
function
|
|
3177
|
+
function qi({ className: e, ...t }) {
|
|
3178
3178
|
return /* @__PURE__ */ a("div", {
|
|
3179
3179
|
"data-slot": "command-input-wrapper",
|
|
3180
3180
|
className: "p-1 pb-0",
|
|
3181
|
-
children: /* @__PURE__ */ o(
|
|
3181
|
+
children: /* @__PURE__ */ o(Li, {
|
|
3182
3182
|
className: "bg-input/30 border-input/30 h-8! rounded-lg! shadow-none! *:data-[slot=input-group-addon]:ps-2!",
|
|
3183
3183
|
children: [/* @__PURE__ */ a(k.Input, {
|
|
3184
3184
|
"data-slot": "command-input",
|
|
3185
3185
|
className: P("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
3186
3186
|
...t
|
|
3187
|
-
}), /* @__PURE__ */ a(
|
|
3187
|
+
}), /* @__PURE__ */ a(zi, { children: /* @__PURE__ */ a(ve, { className: "size-4 shrink-0 opacity-50" }) })]
|
|
3188
3188
|
})
|
|
3189
3189
|
});
|
|
3190
3190
|
}
|
|
3191
|
-
function
|
|
3191
|
+
function Ji({ className: e, ...t }) {
|
|
3192
3192
|
return /* @__PURE__ */ a(k.List, {
|
|
3193
3193
|
"data-slot": "command-list",
|
|
3194
3194
|
className: P("no-scrollbar max-h-72 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto", e),
|
|
3195
3195
|
...t
|
|
3196
3196
|
});
|
|
3197
3197
|
}
|
|
3198
|
-
function
|
|
3198
|
+
function Yi({ className: e, ...t }) {
|
|
3199
3199
|
return /* @__PURE__ */ a(k.Empty, {
|
|
3200
3200
|
"data-slot": "command-empty",
|
|
3201
3201
|
className: P("py-6 text-center text-sm", e),
|
|
3202
3202
|
...t
|
|
3203
3203
|
});
|
|
3204
3204
|
}
|
|
3205
|
-
function
|
|
3205
|
+
function Xi({ className: e, ...t }) {
|
|
3206
3206
|
return /* @__PURE__ */ a(k.Group, {
|
|
3207
3207
|
"data-slot": "command-group",
|
|
3208
3208
|
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),
|
|
3209
3209
|
...t
|
|
3210
3210
|
});
|
|
3211
3211
|
}
|
|
3212
|
-
function
|
|
3212
|
+
function Zi({ className: e, ...t }) {
|
|
3213
3213
|
return /* @__PURE__ */ a(k.Separator, {
|
|
3214
3214
|
"data-slot": "command-separator",
|
|
3215
3215
|
className: P("bg-border -mx-1 h-px", e),
|
|
3216
3216
|
...t
|
|
3217
3217
|
});
|
|
3218
3218
|
}
|
|
3219
|
-
function
|
|
3219
|
+
function Qi({ className: e, children: t, ...n }) {
|
|
3220
3220
|
return /* @__PURE__ */ o(k.Item, {
|
|
3221
3221
|
"data-slot": "command-item",
|
|
3222
3222
|
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),
|
|
@@ -3224,7 +3224,7 @@ function Zi({ className: e, children: t, ...n }) {
|
|
|
3224
3224
|
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" })]
|
|
3225
3225
|
});
|
|
3226
3226
|
}
|
|
3227
|
-
function
|
|
3227
|
+
function $i({ className: e, ...t }) {
|
|
3228
3228
|
return /* @__PURE__ */ a("span", {
|
|
3229
3229
|
"data-slot": "command-shortcut",
|
|
3230
3230
|
className: P("text-muted-foreground group-data-selected/command-item:text-foreground ms-auto text-xs tracking-widest", e),
|
|
@@ -3233,13 +3233,13 @@ function Qi({ className: e, ...t }) {
|
|
|
3233
3233
|
}
|
|
3234
3234
|
//#endregion
|
|
3235
3235
|
//#region src/components/custom/select/searchableSelect.tsx
|
|
3236
|
-
function
|
|
3236
|
+
function ea({ items: e, itemLabelKey: t, itemValueKey: n, value: r, onValueChange: i, disabled: c, errorInputClass: l, placeholder: u = "اختر...", columnsNames: d, onSearch: f }) {
|
|
3237
3237
|
let [p, m] = y.useState(!1), g = e.find((e) => String(e[n]) === r), _ = g ? String(g[t]) : u;
|
|
3238
|
-
return /* @__PURE__ */ o(
|
|
3238
|
+
return /* @__PURE__ */ o(Ft, {
|
|
3239
3239
|
open: p,
|
|
3240
3240
|
onOpenChange: m,
|
|
3241
3241
|
modal: !0,
|
|
3242
|
-
children: [/* @__PURE__ */ a(
|
|
3242
|
+
children: [/* @__PURE__ */ a(It, {
|
|
3243
3243
|
asChild: !0,
|
|
3244
3244
|
children: /* @__PURE__ */ o(F, {
|
|
3245
3245
|
variant: "outline",
|
|
@@ -3252,23 +3252,23 @@ function $i({ items: e, itemLabelKey: t, itemValueKey: n, value: r, onValueChang
|
|
|
3252
3252
|
children: _
|
|
3253
3253
|
}), /* @__PURE__ */ a(h, { className: "h-4 w-4 shrink-0 opacity-50 ltr:ml-2 rtl:mr-2" })]
|
|
3254
3254
|
})
|
|
3255
|
-
}), /* @__PURE__ */ o(
|
|
3255
|
+
}), /* @__PURE__ */ o(Lt, {
|
|
3256
3256
|
className: "w-[--radix-popover-trigger-width] p-0",
|
|
3257
3257
|
align: "start",
|
|
3258
3258
|
dir: "rtl",
|
|
3259
|
-
children: [/* @__PURE__ */ a(
|
|
3259
|
+
children: [/* @__PURE__ */ a(In, {
|
|
3260
3260
|
columnsNames: d,
|
|
3261
3261
|
onSearch: f
|
|
3262
|
-
}), /* @__PURE__ */ a(
|
|
3262
|
+
}), /* @__PURE__ */ a(Gi, {
|
|
3263
3263
|
shouldFilter: !1,
|
|
3264
|
-
children: /* @__PURE__ */ a(
|
|
3264
|
+
children: /* @__PURE__ */ a(Ji, {
|
|
3265
3265
|
className: "max-h-50 overflow-y-auto overflow-x-hidden",
|
|
3266
|
-
children: e.length === 0 ? /* @__PURE__ */ a(
|
|
3266
|
+
children: e.length === 0 ? /* @__PURE__ */ a(Yi, {
|
|
3267
3267
|
className: "py-6 text-center text-sm text-muted-foreground",
|
|
3268
3268
|
children: "لا توجد بيانات"
|
|
3269
|
-
}) : /* @__PURE__ */ a(
|
|
3269
|
+
}) : /* @__PURE__ */ a(Xi, { children: e.map((e) => {
|
|
3270
3270
|
let c = String(e[n]), l = String(e[t]);
|
|
3271
|
-
return /* @__PURE__ */ o(
|
|
3271
|
+
return /* @__PURE__ */ o(Qi, {
|
|
3272
3272
|
value: c,
|
|
3273
3273
|
onSelect: () => {
|
|
3274
3274
|
i(c), m(!1);
|
|
@@ -3284,43 +3284,43 @@ function $i({ items: e, itemLabelKey: t, itemValueKey: n, value: r, onValueChang
|
|
|
3284
3284
|
}
|
|
3285
3285
|
//#endregion
|
|
3286
3286
|
//#region src/components/pure/avatar.tsx
|
|
3287
|
-
function
|
|
3288
|
-
return /* @__PURE__ */ a(
|
|
3287
|
+
function ta({ className: e, size: t = "default", ...n }) {
|
|
3288
|
+
return /* @__PURE__ */ a(We.Root, {
|
|
3289
3289
|
"data-slot": "avatar",
|
|
3290
3290
|
"data-size": t,
|
|
3291
3291
|
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),
|
|
3292
3292
|
...n
|
|
3293
3293
|
});
|
|
3294
3294
|
}
|
|
3295
|
-
function
|
|
3296
|
-
return console.log(t), /* @__PURE__ */ a(
|
|
3295
|
+
function na({ className: e, ...t }) {
|
|
3296
|
+
return console.log(t), /* @__PURE__ */ a(We.Image, {
|
|
3297
3297
|
"data-slot": "avatar-image",
|
|
3298
3298
|
className: P("rounded-full aspect-square size-full object-cover", e),
|
|
3299
3299
|
...t
|
|
3300
3300
|
});
|
|
3301
3301
|
}
|
|
3302
|
-
function
|
|
3303
|
-
return /* @__PURE__ */ a(
|
|
3302
|
+
function ra({ className: e, ...t }) {
|
|
3303
|
+
return /* @__PURE__ */ a(We.Fallback, {
|
|
3304
3304
|
"data-slot": "avatar-fallback",
|
|
3305
3305
|
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),
|
|
3306
3306
|
...t
|
|
3307
3307
|
});
|
|
3308
3308
|
}
|
|
3309
|
-
function
|
|
3309
|
+
function ia({ className: e, ...t }) {
|
|
3310
3310
|
return /* @__PURE__ */ a("span", {
|
|
3311
3311
|
"data-slot": "avatar-badge",
|
|
3312
3312
|
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),
|
|
3313
3313
|
...t
|
|
3314
3314
|
});
|
|
3315
3315
|
}
|
|
3316
|
-
function
|
|
3316
|
+
function aa({ className: e, ...t }) {
|
|
3317
3317
|
return /* @__PURE__ */ a("div", {
|
|
3318
3318
|
"data-slot": "avatar-group",
|
|
3319
3319
|
className: P("*:data-[slot=avatar]:ring-background group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2", e),
|
|
3320
3320
|
...t
|
|
3321
3321
|
});
|
|
3322
3322
|
}
|
|
3323
|
-
function
|
|
3323
|
+
function oa({ className: e, ...t }) {
|
|
3324
3324
|
return /* @__PURE__ */ a("div", {
|
|
3325
3325
|
"data-slot": "avatar-group-count",
|
|
3326
3326
|
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),
|
|
@@ -3329,16 +3329,16 @@ function aa({ className: e, ...t }) {
|
|
|
3329
3329
|
}
|
|
3330
3330
|
//#endregion
|
|
3331
3331
|
//#region src/components/custom/sideBar/sideBarCompanyData.tsx
|
|
3332
|
-
function
|
|
3332
|
+
function sa({ company: e }) {
|
|
3333
3333
|
return /* @__PURE__ */ a(H, { children: /* @__PURE__ */ a(U, { children: /* @__PURE__ */ o(W, {
|
|
3334
3334
|
size: "lg",
|
|
3335
3335
|
className: "data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground",
|
|
3336
|
-
children: [/* @__PURE__ */ o(
|
|
3336
|
+
children: [/* @__PURE__ */ o(ta, {
|
|
3337
3337
|
className: "h-8 w-8 rounded-lg grayscale",
|
|
3338
|
-
children: [/* @__PURE__ */ a(
|
|
3338
|
+
children: [/* @__PURE__ */ a(na, {
|
|
3339
3339
|
src: e.logo,
|
|
3340
3340
|
alt: e.name
|
|
3341
|
-
}), /* @__PURE__ */ a(
|
|
3341
|
+
}), /* @__PURE__ */ a(ra, {
|
|
3342
3342
|
className: "rounded-lg",
|
|
3343
3343
|
children: "YSR"
|
|
3344
3344
|
})]
|
|
@@ -3353,7 +3353,7 @@ function oa({ company: e }) {
|
|
|
3353
3353
|
}
|
|
3354
3354
|
//#endregion
|
|
3355
3355
|
//#region src/components/custom/sideBar/sidebarLogo.tsx
|
|
3356
|
-
function
|
|
3356
|
+
function ca({ logos: e, alt: t = "Logo" }) {
|
|
3357
3357
|
let { state: n } = V(), r = n === "collapsed";
|
|
3358
3358
|
return /* @__PURE__ */ o("div", {
|
|
3359
3359
|
className: `
|
|
@@ -3373,38 +3373,38 @@ function sa({ logos: e, alt: t = "Logo" }) {
|
|
|
3373
3373
|
}
|
|
3374
3374
|
//#endregion
|
|
3375
3375
|
//#region src/components/pure/collapsible.tsx
|
|
3376
|
-
function
|
|
3377
|
-
return /* @__PURE__ */ a(
|
|
3376
|
+
function la({ ...e }) {
|
|
3377
|
+
return /* @__PURE__ */ a(Ke.Root, {
|
|
3378
3378
|
"data-slot": "collapsible",
|
|
3379
3379
|
...e
|
|
3380
3380
|
});
|
|
3381
3381
|
}
|
|
3382
|
-
function
|
|
3383
|
-
return /* @__PURE__ */ a(
|
|
3382
|
+
function ua({ ...e }) {
|
|
3383
|
+
return /* @__PURE__ */ a(Ke.CollapsibleTrigger, {
|
|
3384
3384
|
"data-slot": "collapsible-trigger",
|
|
3385
3385
|
...e
|
|
3386
3386
|
});
|
|
3387
3387
|
}
|
|
3388
|
-
function
|
|
3389
|
-
return /* @__PURE__ */ a(
|
|
3388
|
+
function da({ ...e }) {
|
|
3389
|
+
return /* @__PURE__ */ a(Ke.CollapsibleContent, {
|
|
3390
3390
|
"data-slot": "collapsible-content",
|
|
3391
3391
|
...e
|
|
3392
3392
|
});
|
|
3393
3393
|
}
|
|
3394
3394
|
//#endregion
|
|
3395
3395
|
//#region src/components/custom/sideBar/sideBarMainMenu.tsx
|
|
3396
|
-
function
|
|
3397
|
-
return /* @__PURE__ */ a(
|
|
3396
|
+
function fa({ items: t }) {
|
|
3397
|
+
return /* @__PURE__ */ a(Ci, {
|
|
3398
3398
|
className: "mt-5",
|
|
3399
|
-
children: /* @__PURE__ */ a(
|
|
3399
|
+
children: /* @__PURE__ */ a(Ei, { children: /* @__PURE__ */ a(H, { children: t.map((t) => {
|
|
3400
3400
|
if (!t.hasAuth) return null;
|
|
3401
3401
|
if (t.subItems && t.subItems.length > 0) {
|
|
3402
3402
|
let n = t.subItems.filter((e) => e.hasAuth);
|
|
3403
|
-
return n.length === 0 ? null : /* @__PURE__ */ a(
|
|
3403
|
+
return n.length === 0 ? null : /* @__PURE__ */ o(De, { children: [/* @__PURE__ */ a(la, {
|
|
3404
3404
|
asChild: !0,
|
|
3405
3405
|
defaultOpen: !1,
|
|
3406
3406
|
className: "group/collapsible",
|
|
3407
|
-
children: /* @__PURE__ */ o(U, { children: [/* @__PURE__ */ a(
|
|
3407
|
+
children: /* @__PURE__ */ o(U, { children: [/* @__PURE__ */ a(ua, {
|
|
3408
3408
|
asChild: !0,
|
|
3409
3409
|
children: /* @__PURE__ */ o(W, {
|
|
3410
3410
|
tooltip: t.title,
|
|
@@ -3420,16 +3420,22 @@ function da({ items: t }) {
|
|
|
3420
3420
|
})]
|
|
3421
3421
|
}), /* @__PURE__ */ a(u, { className: "mr-auto transition-transform duration-200 group-data-[state=open]/collapsible:-rotate-90" })]
|
|
3422
3422
|
})
|
|
3423
|
-
}), /* @__PURE__ */ a(
|
|
3423
|
+
}), /* @__PURE__ */ a(da, { children: /* @__PURE__ */ a(ji, { children: n.map((t) => /* @__PURE__ */ o(De, { children: [/* @__PURE__ */ a(Mi, { children: /* @__PURE__ */ a(Ni, {
|
|
3424
3424
|
asChild: !0,
|
|
3425
3425
|
children: /* @__PURE__ */ a(e, {
|
|
3426
3426
|
to: t.url,
|
|
3427
3427
|
children: /* @__PURE__ */ a("span", { children: t.title })
|
|
3428
3428
|
})
|
|
3429
|
-
}) }, t.
|
|
3430
|
-
|
|
3429
|
+
}) }), t.hasSeparator && /* @__PURE__ */ a("li", {
|
|
3430
|
+
className: "h-px bg-border my-1",
|
|
3431
|
+
"aria-hidden": "true"
|
|
3432
|
+
})] }, t.title)) }) })] })
|
|
3433
|
+
}), t.hasSeparator && /* @__PURE__ */ a("li", {
|
|
3434
|
+
className: "h-px bg-border my-2",
|
|
3435
|
+
"aria-hidden": "true"
|
|
3436
|
+
})] }, t.title);
|
|
3431
3437
|
}
|
|
3432
|
-
return /* @__PURE__ */ a(U, { children: /* @__PURE__ */ a(W, {
|
|
3438
|
+
return /* @__PURE__ */ o(De, { children: [/* @__PURE__ */ a(U, { children: /* @__PURE__ */ a(W, {
|
|
3433
3439
|
asChild: !0,
|
|
3434
3440
|
tooltip: t.title,
|
|
3435
3441
|
children: /* @__PURE__ */ o(e, {
|
|
@@ -3443,23 +3449,26 @@ function da({ items: t }) {
|
|
|
3443
3449
|
children: t.title
|
|
3444
3450
|
})]
|
|
3445
3451
|
})
|
|
3446
|
-
}) }, t.
|
|
3452
|
+
}) }), t.hasSeparator && /* @__PURE__ */ a("li", {
|
|
3453
|
+
className: "h-px bg-border my-2",
|
|
3454
|
+
"aria-hidden": "true"
|
|
3455
|
+
})] }, t.title);
|
|
3447
3456
|
}) }) })
|
|
3448
3457
|
});
|
|
3449
3458
|
}
|
|
3450
3459
|
//#endregion
|
|
3451
3460
|
//#region src/components/custom/theme/themeProvider.tsx
|
|
3452
|
-
var
|
|
3461
|
+
var pa = Oe({
|
|
3453
3462
|
theme: "system",
|
|
3454
3463
|
setTheme: () => null
|
|
3455
3464
|
});
|
|
3456
|
-
function
|
|
3465
|
+
function ma({ children: e, defaultTheme: t = "system", storageKey: n = "yusr-theme", ...r }) {
|
|
3457
3466
|
let [i, o] = x(t), [s, c] = x(!1);
|
|
3458
|
-
|
|
3467
|
+
Ae(() => {
|
|
3459
3468
|
c(!0);
|
|
3460
3469
|
let e = localStorage.getItem(n);
|
|
3461
3470
|
e && o(e);
|
|
3462
|
-
}, [n]),
|
|
3471
|
+
}, [n]), Ae(() => {
|
|
3463
3472
|
if (!s) return;
|
|
3464
3473
|
let e = window.document.documentElement;
|
|
3465
3474
|
if (e.classList.remove("light", "dark"), i === "system") {
|
|
@@ -3475,24 +3484,24 @@ function pa({ children: e, defaultTheme: t = "system", storageKey: n = "yusr-the
|
|
|
3475
3484
|
localStorage.setItem(n, e), o(e);
|
|
3476
3485
|
}
|
|
3477
3486
|
};
|
|
3478
|
-
return /* @__PURE__ */ a(
|
|
3487
|
+
return /* @__PURE__ */ a(pa.Provider, {
|
|
3479
3488
|
...r,
|
|
3480
3489
|
value: l,
|
|
3481
3490
|
children: e
|
|
3482
3491
|
});
|
|
3483
3492
|
}
|
|
3484
|
-
var
|
|
3485
|
-
let e =
|
|
3493
|
+
var ha = () => {
|
|
3494
|
+
let e = ke(pa);
|
|
3486
3495
|
if (e === void 0) throw Error("useTheme must be used within a ThemeProvider");
|
|
3487
3496
|
return e;
|
|
3488
3497
|
};
|
|
3489
3498
|
//#endregion
|
|
3490
3499
|
//#region src/components/custom/theme/themeToggle.tsx
|
|
3491
|
-
function
|
|
3492
|
-
let { setTheme: t } =
|
|
3493
|
-
return /* @__PURE__ */ o(
|
|
3500
|
+
function ga({ variant: e = "icon" }) {
|
|
3501
|
+
let { setTheme: t } = ha();
|
|
3502
|
+
return /* @__PURE__ */ o(kr, {
|
|
3494
3503
|
dir: "rtl",
|
|
3495
|
-
children: [/* @__PURE__ */ a(
|
|
3504
|
+
children: [/* @__PURE__ */ a(jr, {
|
|
3496
3505
|
asChild: !0,
|
|
3497
3506
|
children: e === "sidebar" ? /* @__PURE__ */ o(W, {
|
|
3498
3507
|
className: "w-full justify-start gap-3 px-3",
|
|
@@ -3516,7 +3525,7 @@ function ha({ variant: e = "icon" }) {
|
|
|
3516
3525
|
})
|
|
3517
3526
|
]
|
|
3518
3527
|
})
|
|
3519
|
-
}), /* @__PURE__ */ o(
|
|
3528
|
+
}), /* @__PURE__ */ o(Mr, {
|
|
3520
3529
|
align: "end",
|
|
3521
3530
|
children: [
|
|
3522
3531
|
/* @__PURE__ */ a(B, {
|
|
@@ -3537,10 +3546,10 @@ function ha({ variant: e = "icon" }) {
|
|
|
3537
3546
|
}
|
|
3538
3547
|
//#endregion
|
|
3539
3548
|
//#region src/components/custom/sideBar/sideBarSecondaryMenu.tsx
|
|
3540
|
-
function
|
|
3541
|
-
return /* @__PURE__ */ a(
|
|
3549
|
+
function _a({ items: e, onLogout: t, LinkComponent: n = "a", ...r }) {
|
|
3550
|
+
return /* @__PURE__ */ a(Ci, {
|
|
3542
3551
|
...r,
|
|
3543
|
-
children: /* @__PURE__ */ a(
|
|
3552
|
+
children: /* @__PURE__ */ a(Ei, { children: /* @__PURE__ */ o(H, { children: [
|
|
3544
3553
|
e.map((e) => /* @__PURE__ */ a(U, { children: /* @__PURE__ */ a(W, {
|
|
3545
3554
|
asChild: !0,
|
|
3546
3555
|
children: /* @__PURE__ */ o(n, {
|
|
@@ -3555,7 +3564,7 @@ function ga({ items: e, onLogout: t, LinkComponent: n = "a", ...r }) {
|
|
|
3555
3564
|
})]
|
|
3556
3565
|
})
|
|
3557
3566
|
}) }, e.title)),
|
|
3558
|
-
/* @__PURE__ */ a(U, { children: /* @__PURE__ */ a(
|
|
3567
|
+
/* @__PURE__ */ a(U, { children: /* @__PURE__ */ a(ga, { variant: "sidebar" }) }),
|
|
3559
3568
|
/* @__PURE__ */ a(U, { children: /* @__PURE__ */ a(W, {
|
|
3560
3569
|
asChild: !0,
|
|
3561
3570
|
onClick: t,
|
|
@@ -3575,16 +3584,16 @@ function ga({ items: e, onLogout: t, LinkComponent: n = "a", ...r }) {
|
|
|
3575
3584
|
}
|
|
3576
3585
|
//#endregion
|
|
3577
3586
|
//#region src/components/custom/sideBar/sideBarUserData.tsx
|
|
3578
|
-
function
|
|
3587
|
+
function va({ user: e }) {
|
|
3579
3588
|
return /* @__PURE__ */ a(H, { children: /* @__PURE__ */ a(U, { children: /* @__PURE__ */ o(W, {
|
|
3580
3589
|
size: "lg",
|
|
3581
3590
|
className: "data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground",
|
|
3582
|
-
children: [/* @__PURE__ */ o(
|
|
3591
|
+
children: [/* @__PURE__ */ o(ta, {
|
|
3583
3592
|
className: "h-8 w-8 rounded-lg grayscale",
|
|
3584
|
-
children: [/* @__PURE__ */ a(
|
|
3593
|
+
children: [/* @__PURE__ */ a(na, {
|
|
3585
3594
|
src: "/avatars/shadcn.jpg",
|
|
3586
3595
|
alt: e?.username
|
|
3587
|
-
}), /* @__PURE__ */ a(
|
|
3596
|
+
}), /* @__PURE__ */ a(ra, {
|
|
3588
3597
|
className: "rounded-lg",
|
|
3589
3598
|
children: "YSR"
|
|
3590
3599
|
})]
|
|
@@ -3599,18 +3608,18 @@ function _a({ user: e }) {
|
|
|
3599
3608
|
}
|
|
3600
3609
|
//#endregion
|
|
3601
3610
|
//#region src/components/custom/sideBar/yusrSideBarMainMenu.tsx
|
|
3602
|
-
function
|
|
3603
|
-
return /* @__PURE__ */ a(
|
|
3611
|
+
function ya({ items: e, LinkComponent: t = "a" }) {
|
|
3612
|
+
return /* @__PURE__ */ a(Ci, {
|
|
3604
3613
|
className: "mt-5",
|
|
3605
|
-
children: /* @__PURE__ */ a(
|
|
3614
|
+
children: /* @__PURE__ */ a(Ei, { children: /* @__PURE__ */ a(H, { children: e.map((e) => {
|
|
3606
3615
|
if (!e.hasAuth) return null;
|
|
3607
3616
|
if (e.subItems && e.subItems.length > 0) {
|
|
3608
3617
|
let n = e.subItems.filter((e) => e.hasAuth);
|
|
3609
|
-
return n.length === 0 ? null : /* @__PURE__ */ a(
|
|
3618
|
+
return n.length === 0 ? null : /* @__PURE__ */ a(la, {
|
|
3610
3619
|
asChild: !0,
|
|
3611
3620
|
defaultOpen: !1,
|
|
3612
3621
|
className: "group/collapsible",
|
|
3613
|
-
children: /* @__PURE__ */ o(U, { children: [/* @__PURE__ */ a(
|
|
3622
|
+
children: /* @__PURE__ */ o(U, { children: [/* @__PURE__ */ a(ua, {
|
|
3614
3623
|
asChild: !0,
|
|
3615
3624
|
children: /* @__PURE__ */ o(W, {
|
|
3616
3625
|
tooltip: e.title,
|
|
@@ -3626,7 +3635,7 @@ function va({ items: e, LinkComponent: t = "a" }) {
|
|
|
3626
3635
|
})]
|
|
3627
3636
|
}), /* @__PURE__ */ a(f, { className: "ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90" })]
|
|
3628
3637
|
})
|
|
3629
|
-
}), /* @__PURE__ */ a(
|
|
3638
|
+
}), /* @__PURE__ */ a(da, { children: /* @__PURE__ */ a(ji, { children: n.map((e) => /* @__PURE__ */ a(Mi, { children: /* @__PURE__ */ a(Ni, {
|
|
3630
3639
|
asChild: !0,
|
|
3631
3640
|
children: /* @__PURE__ */ a(t, {
|
|
3632
3641
|
href: e.url,
|
|
@@ -3655,18 +3664,18 @@ function va({ items: e, LinkComponent: t = "a" }) {
|
|
|
3655
3664
|
}
|
|
3656
3665
|
//#endregion
|
|
3657
3666
|
//#region src/hooks/useSidebarContext.tsx
|
|
3658
|
-
var
|
|
3659
|
-
let e =
|
|
3667
|
+
var ba = Oe(null), xa = () => {
|
|
3668
|
+
let e = ke(ba);
|
|
3660
3669
|
if (!e) throw Error("useSidebarContext must be used within a SidebarProvider");
|
|
3661
3670
|
return e;
|
|
3662
3671
|
};
|
|
3663
3672
|
//#endregion
|
|
3664
3673
|
//#region src/components/custom/sideBar/yusrSideBar.tsx
|
|
3665
|
-
function
|
|
3674
|
+
function Sa({ LinkComponent: e = "a", logos: t, displayCompany: n = {
|
|
3666
3675
|
name: "Yusr UI",
|
|
3667
3676
|
logo: "/yusr-logo.png"
|
|
3668
3677
|
}, navMain: r, navSecondary: i, children: o, ...s }) {
|
|
3669
|
-
return /* @__PURE__ */ a(
|
|
3678
|
+
return /* @__PURE__ */ a(ba.Provider, {
|
|
3670
3679
|
value: {
|
|
3671
3680
|
LinkComponent: e,
|
|
3672
3681
|
logos: t,
|
|
@@ -3674,7 +3683,7 @@ function xa({ LinkComponent: e = "a", logos: t, displayCompany: n = {
|
|
|
3674
3683
|
navMain: r,
|
|
3675
3684
|
navSecondary: i
|
|
3676
3685
|
},
|
|
3677
|
-
children: /* @__PURE__ */ a(
|
|
3686
|
+
children: /* @__PURE__ */ a(pi, { children: /* @__PURE__ */ a(mi, {
|
|
3678
3687
|
collapsible: "icon",
|
|
3679
3688
|
side: "right",
|
|
3680
3689
|
...s,
|
|
@@ -3682,9 +3691,9 @@ function xa({ LinkComponent: e = "a", logos: t, displayCompany: n = {
|
|
|
3682
3691
|
}) })
|
|
3683
3692
|
});
|
|
3684
3693
|
}
|
|
3685
|
-
|
|
3686
|
-
let { displayCompany: e, logos: t } =
|
|
3687
|
-
return /* @__PURE__ */ a(
|
|
3694
|
+
Sa.Header = function() {
|
|
3695
|
+
let { displayCompany: e, logos: t } = xa();
|
|
3696
|
+
return /* @__PURE__ */ a(yi, { children: /* @__PURE__ */ a(H, { children: /* @__PURE__ */ o(U, { children: [/* @__PURE__ */ a(ca, { logos: {
|
|
3688
3697
|
full: {
|
|
3689
3698
|
light: t.logoFullLight,
|
|
3690
3699
|
dark: t.logoFullDark
|
|
@@ -3693,24 +3702,24 @@ xa.Header = function() {
|
|
|
3693
3702
|
light: t.logoOnlyLight,
|
|
3694
3703
|
dark: t.logoOnlyDark
|
|
3695
3704
|
}
|
|
3696
|
-
} }), e && /* @__PURE__ */ a(
|
|
3697
|
-
},
|
|
3698
|
-
let { navMain: t, navSecondary: n, LinkComponent: r } =
|
|
3699
|
-
return !t || !n ? /* @__PURE__ */ a(
|
|
3705
|
+
} }), e && /* @__PURE__ */ a(sa, { company: e })] }) }) });
|
|
3706
|
+
}, Sa.Content = function({ LogoutHandler: e }) {
|
|
3707
|
+
let { navMain: t, navSecondary: n, LinkComponent: r } = xa();
|
|
3708
|
+
return !t || !n ? /* @__PURE__ */ a(Si, {}) : /* @__PURE__ */ o(Si, { children: [/* @__PURE__ */ a(ya, {
|
|
3700
3709
|
items: t,
|
|
3701
3710
|
LinkComponent: r
|
|
3702
|
-
}), e !== void 0 && /* @__PURE__ */ a(
|
|
3711
|
+
}), e !== void 0 && /* @__PURE__ */ a(_a, {
|
|
3703
3712
|
items: n,
|
|
3704
3713
|
className: "pt-10 mt-auto text-center",
|
|
3705
3714
|
onLogout: e,
|
|
3706
3715
|
LinkComponent: r
|
|
3707
3716
|
})] });
|
|
3708
|
-
},
|
|
3709
|
-
return /* @__PURE__ */ a(
|
|
3717
|
+
}, Sa.Footer = function({ loggedInUser: e = void 0 }) {
|
|
3718
|
+
return /* @__PURE__ */ a(bi, { children: /* @__PURE__ */ a(va, { user: e }) });
|
|
3710
3719
|
};
|
|
3711
3720
|
//#endregion
|
|
3712
3721
|
//#region src/components/custom/status/loading.tsx
|
|
3713
|
-
function
|
|
3722
|
+
function Ca({ entityName: e }) {
|
|
3714
3723
|
return /* @__PURE__ */ o("div", {
|
|
3715
3724
|
className: "sm:max-w-xl flex flex-col items-center justify-center py-20",
|
|
3716
3725
|
children: [/* @__PURE__ */ a(re, { className: "h-10 w-10 animate-spin text-primary" }), /* @__PURE__ */ o("p", {
|
|
@@ -3725,75 +3734,75 @@ function Sa({ entityName: e }) {
|
|
|
3725
3734
|
}
|
|
3726
3735
|
//#endregion
|
|
3727
3736
|
//#region src/components/pure/alert-dialog.tsx
|
|
3728
|
-
function
|
|
3737
|
+
function wa({ ...e }) {
|
|
3729
3738
|
return /* @__PURE__ */ a(A.Root, {
|
|
3730
3739
|
"data-slot": "alert-dialog",
|
|
3731
3740
|
...e
|
|
3732
3741
|
});
|
|
3733
3742
|
}
|
|
3734
|
-
function
|
|
3743
|
+
function Ta({ ...e }) {
|
|
3735
3744
|
return /* @__PURE__ */ a(A.Trigger, {
|
|
3736
3745
|
"data-slot": "alert-dialog-trigger",
|
|
3737
3746
|
...e
|
|
3738
3747
|
});
|
|
3739
3748
|
}
|
|
3740
|
-
function
|
|
3749
|
+
function Ea({ ...e }) {
|
|
3741
3750
|
return /* @__PURE__ */ a(A.Portal, {
|
|
3742
3751
|
"data-slot": "alert-dialog-portal",
|
|
3743
3752
|
...e
|
|
3744
3753
|
});
|
|
3745
3754
|
}
|
|
3746
|
-
function
|
|
3755
|
+
function Da({ className: e, ...t }) {
|
|
3747
3756
|
return /* @__PURE__ */ a(A.Overlay, {
|
|
3748
3757
|
"data-slot": "alert-dialog-overlay",
|
|
3749
3758
|
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),
|
|
3750
3759
|
...t
|
|
3751
3760
|
});
|
|
3752
3761
|
}
|
|
3753
|
-
function
|
|
3754
|
-
return /* @__PURE__ */ o(
|
|
3762
|
+
function Oa({ className: e, size: t = "default", ...n }) {
|
|
3763
|
+
return /* @__PURE__ */ o(Ea, { children: [/* @__PURE__ */ a(Da, {}), /* @__PURE__ */ a(A.Content, {
|
|
3755
3764
|
"data-slot": "alert-dialog-content",
|
|
3756
3765
|
"data-size": t,
|
|
3757
3766
|
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),
|
|
3758
3767
|
...n
|
|
3759
3768
|
})] });
|
|
3760
3769
|
}
|
|
3761
|
-
function
|
|
3770
|
+
function ka({ className: e, ...t }) {
|
|
3762
3771
|
return /* @__PURE__ */ a("div", {
|
|
3763
3772
|
"data-slot": "alert-dialog-header",
|
|
3764
3773
|
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),
|
|
3765
3774
|
...t
|
|
3766
3775
|
});
|
|
3767
3776
|
}
|
|
3768
|
-
function
|
|
3777
|
+
function Aa({ className: e, ...t }) {
|
|
3769
3778
|
return /* @__PURE__ */ a("div", {
|
|
3770
3779
|
"data-slot": "alert-dialog-footer",
|
|
3771
3780
|
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),
|
|
3772
3781
|
...t
|
|
3773
3782
|
});
|
|
3774
3783
|
}
|
|
3775
|
-
function
|
|
3784
|
+
function ja({ className: e, ...t }) {
|
|
3776
3785
|
return /* @__PURE__ */ a("div", {
|
|
3777
3786
|
"data-slot": "alert-dialog-media",
|
|
3778
3787
|
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),
|
|
3779
3788
|
...t
|
|
3780
3789
|
});
|
|
3781
3790
|
}
|
|
3782
|
-
function
|
|
3791
|
+
function Ma({ className: e, ...t }) {
|
|
3783
3792
|
return /* @__PURE__ */ a(A.Title, {
|
|
3784
3793
|
"data-slot": "alert-dialog-title",
|
|
3785
3794
|
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),
|
|
3786
3795
|
...t
|
|
3787
3796
|
});
|
|
3788
3797
|
}
|
|
3789
|
-
function
|
|
3798
|
+
function Na({ className: e, ...t }) {
|
|
3790
3799
|
return /* @__PURE__ */ a(A.Description, {
|
|
3791
3800
|
"data-slot": "alert-dialog-description",
|
|
3792
3801
|
className: P("text-muted-foreground *:[a]:hover:text-foreground text-sm text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3", e),
|
|
3793
3802
|
...t
|
|
3794
3803
|
});
|
|
3795
3804
|
}
|
|
3796
|
-
function
|
|
3805
|
+
function Pa({ className: e, variant: t = "default", size: n = "default", ...r }) {
|
|
3797
3806
|
return /* @__PURE__ */ a(F, {
|
|
3798
3807
|
variant: t,
|
|
3799
3808
|
size: n,
|
|
@@ -3805,7 +3814,7 @@ function Na({ className: e, variant: t = "default", size: n = "default", ...r })
|
|
|
3805
3814
|
})
|
|
3806
3815
|
});
|
|
3807
3816
|
}
|
|
3808
|
-
function
|
|
3817
|
+
function Fa({ className: e, variant: t = "outline", size: n = "default", ...r }) {
|
|
3809
3818
|
return /* @__PURE__ */ a(F, {
|
|
3810
3819
|
variant: t,
|
|
3811
3820
|
size: n,
|
|
@@ -3819,36 +3828,36 @@ function Pa({ className: e, variant: t = "outline", size: n = "default", ...r })
|
|
|
3819
3828
|
}
|
|
3820
3829
|
//#endregion
|
|
3821
3830
|
//#region src/components/pure/alert.tsx
|
|
3822
|
-
var
|
|
3831
|
+
var Ia = S("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-start text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pe-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4", {
|
|
3823
3832
|
variants: { variant: {
|
|
3824
3833
|
default: "bg-card text-card-foreground",
|
|
3825
3834
|
destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"
|
|
3826
3835
|
} },
|
|
3827
3836
|
defaultVariants: { variant: "default" }
|
|
3828
3837
|
});
|
|
3829
|
-
function
|
|
3838
|
+
function La({ className: e, variant: t, ...n }) {
|
|
3830
3839
|
return /* @__PURE__ */ a("div", {
|
|
3831
3840
|
"data-slot": "alert",
|
|
3832
3841
|
role: "alert",
|
|
3833
|
-
className: P(
|
|
3842
|
+
className: P(Ia({ variant: t }), e),
|
|
3834
3843
|
...n
|
|
3835
3844
|
});
|
|
3836
3845
|
}
|
|
3837
|
-
function
|
|
3846
|
+
function Ra({ className: e, ...t }) {
|
|
3838
3847
|
return /* @__PURE__ */ a("div", {
|
|
3839
3848
|
"data-slot": "alert-title",
|
|
3840
3849
|
className: P("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground", e),
|
|
3841
3850
|
...t
|
|
3842
3851
|
});
|
|
3843
3852
|
}
|
|
3844
|
-
function
|
|
3853
|
+
function za({ className: e, ...t }) {
|
|
3845
3854
|
return /* @__PURE__ */ a("div", {
|
|
3846
3855
|
"data-slot": "alert-description",
|
|
3847
3856
|
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),
|
|
3848
3857
|
...t
|
|
3849
3858
|
});
|
|
3850
3859
|
}
|
|
3851
|
-
function
|
|
3860
|
+
function Ba({ className: e, ...t }) {
|
|
3852
3861
|
return /* @__PURE__ */ a("div", {
|
|
3853
3862
|
"data-slot": "alert-action",
|
|
3854
3863
|
className: P("absolute top-2 end-2", e),
|
|
@@ -3857,7 +3866,7 @@ function za({ className: e, ...t }) {
|
|
|
3857
3866
|
}
|
|
3858
3867
|
//#endregion
|
|
3859
3868
|
//#region src/components/pure/badge.tsx
|
|
3860
|
-
var
|
|
3869
|
+
var Va = S("h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&>svg]:size-3! inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive overflow-hidden group/badge", {
|
|
3861
3870
|
variants: { variant: {
|
|
3862
3871
|
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
3863
3872
|
secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
|
|
@@ -3868,17 +3877,17 @@ var Ba = S("h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs
|
|
|
3868
3877
|
} },
|
|
3869
3878
|
defaultVariants: { variant: "default" }
|
|
3870
3879
|
});
|
|
3871
|
-
function
|
|
3880
|
+
function Ha({ className: e, variant: t = "default", asChild: n = !1, ...r }) {
|
|
3872
3881
|
return /* @__PURE__ */ a(n ? C : "span", {
|
|
3873
3882
|
"data-slot": "badge",
|
|
3874
3883
|
"data-variant": t,
|
|
3875
|
-
className: P(
|
|
3884
|
+
className: P(Va({ variant: t }), e),
|
|
3876
3885
|
...r
|
|
3877
3886
|
});
|
|
3878
3887
|
}
|
|
3879
3888
|
//#endregion
|
|
3880
3889
|
//#region src/components/pure/breadcrumb.tsx
|
|
3881
|
-
function
|
|
3890
|
+
function Ua({ className: e, ...t }) {
|
|
3882
3891
|
return /* @__PURE__ */ a("nav", {
|
|
3883
3892
|
"aria-label": "breadcrumb",
|
|
3884
3893
|
"data-slot": "breadcrumb",
|
|
@@ -3886,28 +3895,28 @@ function Ha({ className: e, ...t }) {
|
|
|
3886
3895
|
...t
|
|
3887
3896
|
});
|
|
3888
3897
|
}
|
|
3889
|
-
function
|
|
3898
|
+
function Wa({ className: e, ...t }) {
|
|
3890
3899
|
return /* @__PURE__ */ a("ol", {
|
|
3891
3900
|
"data-slot": "breadcrumb-list",
|
|
3892
3901
|
className: P("text-muted-foreground gap-1.5 text-sm flex flex-wrap items-center wrap-break-word", e),
|
|
3893
3902
|
...t
|
|
3894
3903
|
});
|
|
3895
3904
|
}
|
|
3896
|
-
function
|
|
3905
|
+
function Ga({ className: e, ...t }) {
|
|
3897
3906
|
return /* @__PURE__ */ a("li", {
|
|
3898
3907
|
"data-slot": "breadcrumb-item",
|
|
3899
3908
|
className: P("gap-1 inline-flex items-center", e),
|
|
3900
3909
|
...t
|
|
3901
3910
|
});
|
|
3902
3911
|
}
|
|
3903
|
-
function
|
|
3912
|
+
function Ka({ asChild: e, className: t, ...n }) {
|
|
3904
3913
|
return /* @__PURE__ */ a(e ? C : "a", {
|
|
3905
3914
|
"data-slot": "breadcrumb-link",
|
|
3906
3915
|
className: P("hover:text-foreground transition-colors", t),
|
|
3907
3916
|
...n
|
|
3908
3917
|
});
|
|
3909
3918
|
}
|
|
3910
|
-
function
|
|
3919
|
+
function qa({ className: e, ...t }) {
|
|
3911
3920
|
return /* @__PURE__ */ a("span", {
|
|
3912
3921
|
"data-slot": "breadcrumb-page",
|
|
3913
3922
|
role: "link",
|
|
@@ -3917,7 +3926,7 @@ function Ka({ className: e, ...t }) {
|
|
|
3917
3926
|
...t
|
|
3918
3927
|
});
|
|
3919
3928
|
}
|
|
3920
|
-
function
|
|
3929
|
+
function Ja({ children: e, className: t, ...n }) {
|
|
3921
3930
|
return /* @__PURE__ */ a("li", {
|
|
3922
3931
|
"data-slot": "breadcrumb-separator",
|
|
3923
3932
|
role: "presentation",
|
|
@@ -3927,7 +3936,7 @@ function qa({ children: e, className: t, ...n }) {
|
|
|
3927
3936
|
children: e ?? /* @__PURE__ */ a(p, { className: "rtl:rotate-180" })
|
|
3928
3937
|
});
|
|
3929
3938
|
}
|
|
3930
|
-
function
|
|
3939
|
+
function Ya({ className: e, ...t }) {
|
|
3931
3940
|
return /* @__PURE__ */ o("span", {
|
|
3932
3941
|
"data-slot": "breadcrumb-ellipsis",
|
|
3933
3942
|
role: "presentation",
|
|
@@ -3942,34 +3951,34 @@ function Ja({ className: e, ...t }) {
|
|
|
3942
3951
|
}
|
|
3943
3952
|
//#endregion
|
|
3944
3953
|
//#region src/components/pure/chart.tsx
|
|
3945
|
-
var
|
|
3954
|
+
var Xa = {
|
|
3946
3955
|
light: "",
|
|
3947
3956
|
dark: ".dark"
|
|
3948
|
-
},
|
|
3949
|
-
function
|
|
3950
|
-
let e = y.useContext(
|
|
3957
|
+
}, Za = y.createContext(null);
|
|
3958
|
+
function Qa() {
|
|
3959
|
+
let e = y.useContext(Za);
|
|
3951
3960
|
if (!e) throw Error("useChart must be used within a <ChartContainer />");
|
|
3952
3961
|
return e;
|
|
3953
3962
|
}
|
|
3954
|
-
function
|
|
3963
|
+
function $a({ id: e, className: t, children: n, config: r, ...i }) {
|
|
3955
3964
|
let s = y.useId(), c = `chart-${e || s.replace(/:/g, "")}`;
|
|
3956
|
-
return /* @__PURE__ */ a(
|
|
3965
|
+
return /* @__PURE__ */ a(Za.Provider, {
|
|
3957
3966
|
value: { config: r },
|
|
3958
3967
|
children: /* @__PURE__ */ o("div", {
|
|
3959
3968
|
"data-slot": "chart",
|
|
3960
3969
|
"data-chart": c,
|
|
3961
3970
|
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),
|
|
3962
3971
|
...i,
|
|
3963
|
-
children: [/* @__PURE__ */ a(
|
|
3972
|
+
children: [/* @__PURE__ */ a(eo, {
|
|
3964
3973
|
id: c,
|
|
3965
3974
|
config: r
|
|
3966
|
-
}), /* @__PURE__ */ a(
|
|
3975
|
+
}), /* @__PURE__ */ a($e.ResponsiveContainer, { children: n })]
|
|
3967
3976
|
})
|
|
3968
3977
|
});
|
|
3969
3978
|
}
|
|
3970
|
-
var
|
|
3979
|
+
var eo = ({ id: e, config: t }) => {
|
|
3971
3980
|
let n = Object.entries(t).filter(([, e]) => e.theme || e.color);
|
|
3972
|
-
return n.length ? /* @__PURE__ */ a("style", { dangerouslySetInnerHTML: { __html: Object.entries(
|
|
3981
|
+
return n.length ? /* @__PURE__ */ a("style", { dangerouslySetInnerHTML: { __html: Object.entries(Xa).map(([t, r]) => `
|
|
3973
3982
|
${r} [data-chart=${e}] {
|
|
3974
3983
|
${n.map(([e, n]) => {
|
|
3975
3984
|
let r = n.theme?.[t] || n.color;
|
|
@@ -3977,11 +3986,11 @@ ${n.map(([e, n]) => {
|
|
|
3977
3986
|
}).join("\n")}
|
|
3978
3987
|
}
|
|
3979
3988
|
`).join("\n") } }) : null;
|
|
3980
|
-
},
|
|
3981
|
-
function
|
|
3982
|
-
let { config: g } =
|
|
3989
|
+
}, to = $e.Tooltip;
|
|
3990
|
+
function no({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: s = !1, hideIndicator: c = !1, label: l, labelFormatter: u, labelClassName: d, formatter: f, color: p, nameKey: m, labelKey: h }) {
|
|
3991
|
+
let { config: g } = Qa(), _ = y.useMemo(() => {
|
|
3983
3992
|
if (s || !t?.length) return null;
|
|
3984
|
-
let [e] = t, n =
|
|
3993
|
+
let [e] = t, n = ao(g, e, `${h || e?.dataKey || e?.name || "value"}`), r = !h && typeof l == "string" ? g[l]?.label || l : n?.label;
|
|
3985
3994
|
return u ? /* @__PURE__ */ a("div", {
|
|
3986
3995
|
className: P("font-medium", d),
|
|
3987
3996
|
children: u(r, t)
|
|
@@ -4005,7 +4014,7 @@ function to({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
|
|
|
4005
4014
|
children: [v ? null : _, /* @__PURE__ */ a("div", {
|
|
4006
4015
|
className: "grid gap-1.5",
|
|
4007
4016
|
children: t.filter((e) => e.type !== "none").map((e, t) => {
|
|
4008
|
-
let n =
|
|
4017
|
+
let n = ao(g, e, `${m || e.name || e.dataKey || "value"}`), s = p || e.payload.fill || e.color;
|
|
4009
4018
|
return /* @__PURE__ */ a("div", {
|
|
4010
4019
|
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"),
|
|
4011
4020
|
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", {
|
|
@@ -4037,13 +4046,13 @@ function to({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
|
|
|
4037
4046
|
})]
|
|
4038
4047
|
});
|
|
4039
4048
|
}
|
|
4040
|
-
var
|
|
4041
|
-
function
|
|
4042
|
-
let { config: s } =
|
|
4049
|
+
var ro = $e.Legend;
|
|
4050
|
+
function io({ className: e, hideIcon: t = !1, payload: n, verticalAlign: r = "bottom", nameKey: i }) {
|
|
4051
|
+
let { config: s } = Qa();
|
|
4043
4052
|
return n?.length ? /* @__PURE__ */ a("div", {
|
|
4044
4053
|
className: P("flex items-center justify-center gap-4", r === "top" ? "pb-3" : "pt-3", e),
|
|
4045
4054
|
children: n.filter((e) => e.type !== "none").map((e) => {
|
|
4046
|
-
let n =
|
|
4055
|
+
let n = ao(s, e, `${i || e.dataKey || "value"}`);
|
|
4047
4056
|
return /* @__PURE__ */ o("div", {
|
|
4048
4057
|
className: P("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),
|
|
4049
4058
|
children: [n?.icon && !t ? /* @__PURE__ */ a(n.icon, {}) : /* @__PURE__ */ a("div", {
|
|
@@ -4054,19 +4063,19 @@ function ro({ className: e, hideIcon: t = !1, payload: n, verticalAlign: r = "bo
|
|
|
4054
4063
|
})
|
|
4055
4064
|
}) : null;
|
|
4056
4065
|
}
|
|
4057
|
-
function
|
|
4066
|
+
function ao(e, t, n) {
|
|
4058
4067
|
if (typeof t != "object" || !t) return;
|
|
4059
4068
|
let r = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0, i = n;
|
|
4060
4069
|
return n in t && typeof t[n] == "string" ? i = t[n] : r && n in r && typeof r[n] == "string" && (i = r[n]), i in e ? e[i] : e[n];
|
|
4061
4070
|
}
|
|
4062
4071
|
//#endregion
|
|
4063
4072
|
//#region src/components/pure/checkbox.tsx
|
|
4064
|
-
function
|
|
4065
|
-
return /* @__PURE__ */ a(
|
|
4073
|
+
function oo({ className: e, ...t }) {
|
|
4074
|
+
return /* @__PURE__ */ a(Ge.Root, {
|
|
4066
4075
|
"data-slot": "checkbox",
|
|
4067
4076
|
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),
|
|
4068
4077
|
...t,
|
|
4069
|
-
children: /* @__PURE__ */ a(
|
|
4078
|
+
children: /* @__PURE__ */ a(Ge.Indicator, {
|
|
4070
4079
|
"data-slot": "checkbox-indicator",
|
|
4071
4080
|
className: "[&>svg]:size-3.5 grid place-content-center text-current transition-none",
|
|
4072
4081
|
children: /* @__PURE__ */ a(c, {})
|
|
@@ -4075,14 +4084,14 @@ function ao({ className: e, ...t }) {
|
|
|
4075
4084
|
}
|
|
4076
4085
|
//#endregion
|
|
4077
4086
|
//#region src/components/pure/combobox.tsx
|
|
4078
|
-
var
|
|
4079
|
-
function
|
|
4087
|
+
var so = j.Root;
|
|
4088
|
+
function co({ ...e }) {
|
|
4080
4089
|
return /* @__PURE__ */ a(j.Value, {
|
|
4081
4090
|
"data-slot": "combobox-value",
|
|
4082
4091
|
...e
|
|
4083
4092
|
});
|
|
4084
4093
|
}
|
|
4085
|
-
function
|
|
4094
|
+
function lo({ className: e, children: t, ...n }) {
|
|
4086
4095
|
return /* @__PURE__ */ o(j.Trigger, {
|
|
4087
4096
|
"data-slot": "combobox-trigger",
|
|
4088
4097
|
className: P("[&_svg:not([class*='size-'])]:size-4", e),
|
|
@@ -4090,10 +4099,10 @@ function co({ className: e, children: t, ...n }) {
|
|
|
4090
4099
|
children: [t, /* @__PURE__ */ a(l, { className: "text-muted-foreground size-4 pointer-events-none" })]
|
|
4091
4100
|
});
|
|
4092
4101
|
}
|
|
4093
|
-
function
|
|
4102
|
+
function uo({ className: e, ...t }) {
|
|
4094
4103
|
return /* @__PURE__ */ a(j.Clear, {
|
|
4095
4104
|
"data-slot": "combobox-clear",
|
|
4096
|
-
render: /* @__PURE__ */ a(
|
|
4105
|
+
render: /* @__PURE__ */ a(Vi, {
|
|
4097
4106
|
variant: "ghost",
|
|
4098
4107
|
size: "icon-xs"
|
|
4099
4108
|
}),
|
|
@@ -4102,31 +4111,31 @@ function lo({ className: e, ...t }) {
|
|
|
4102
4111
|
children: /* @__PURE__ */ a(we, { className: "pointer-events-none" })
|
|
4103
4112
|
});
|
|
4104
4113
|
}
|
|
4105
|
-
function
|
|
4106
|
-
return /* @__PURE__ */ o(
|
|
4114
|
+
function fo({ className: e, children: t, disabled: n = !1, showTrigger: r = !0, showClear: i = !1, ...s }) {
|
|
4115
|
+
return /* @__PURE__ */ o(Li, {
|
|
4107
4116
|
className: P("w-auto", e),
|
|
4108
4117
|
children: [
|
|
4109
4118
|
/* @__PURE__ */ a(j.Input, {
|
|
4110
|
-
render: /* @__PURE__ */ a(
|
|
4119
|
+
render: /* @__PURE__ */ a(Ui, { disabled: n }),
|
|
4111
4120
|
...s
|
|
4112
4121
|
}),
|
|
4113
|
-
/* @__PURE__ */ o(
|
|
4122
|
+
/* @__PURE__ */ o(zi, {
|
|
4114
4123
|
align: "inline-end",
|
|
4115
|
-
children: [r && /* @__PURE__ */ a(
|
|
4124
|
+
children: [r && /* @__PURE__ */ a(Vi, {
|
|
4116
4125
|
size: "icon-xs",
|
|
4117
4126
|
variant: "ghost",
|
|
4118
4127
|
asChild: !0,
|
|
4119
4128
|
"data-slot": "input-group-button",
|
|
4120
4129
|
className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent",
|
|
4121
4130
|
disabled: n,
|
|
4122
|
-
children: /* @__PURE__ */ a(
|
|
4123
|
-
}), i && /* @__PURE__ */ a(
|
|
4131
|
+
children: /* @__PURE__ */ a(lo, {})
|
|
4132
|
+
}), i && /* @__PURE__ */ a(uo, { disabled: n })]
|
|
4124
4133
|
}),
|
|
4125
4134
|
t
|
|
4126
4135
|
]
|
|
4127
4136
|
});
|
|
4128
4137
|
}
|
|
4129
|
-
function
|
|
4138
|
+
function po({ className: e, side: t = "bottom", sideOffset: n = 6, align: r = "start", alignOffset: i = 0, anchor: o, ...s }) {
|
|
4130
4139
|
return /* @__PURE__ */ a(j.Portal, { children: /* @__PURE__ */ a(j.Positioner, {
|
|
4131
4140
|
side: t,
|
|
4132
4141
|
sideOffset: n,
|
|
@@ -4142,14 +4151,14 @@ function fo({ className: e, side: t = "bottom", sideOffset: n = 6, align: r = "s
|
|
|
4142
4151
|
})
|
|
4143
4152
|
}) });
|
|
4144
4153
|
}
|
|
4145
|
-
function
|
|
4154
|
+
function mo({ className: e, ...t }) {
|
|
4146
4155
|
return /* @__PURE__ */ a(j.List, {
|
|
4147
4156
|
"data-slot": "combobox-list",
|
|
4148
4157
|
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),
|
|
4149
4158
|
...t
|
|
4150
4159
|
});
|
|
4151
4160
|
}
|
|
4152
|
-
function
|
|
4161
|
+
function ho({ className: e, children: t, ...n }) {
|
|
4153
4162
|
return /* @__PURE__ */ o(j.Item, {
|
|
4154
4163
|
"data-slot": "combobox-item",
|
|
4155
4164
|
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),
|
|
@@ -4160,48 +4169,48 @@ function mo({ className: e, children: t, ...n }) {
|
|
|
4160
4169
|
})]
|
|
4161
4170
|
});
|
|
4162
4171
|
}
|
|
4163
|
-
function
|
|
4172
|
+
function go({ className: e, ...t }) {
|
|
4164
4173
|
return /* @__PURE__ */ a(j.Group, {
|
|
4165
4174
|
"data-slot": "combobox-group",
|
|
4166
4175
|
className: P(e),
|
|
4167
4176
|
...t
|
|
4168
4177
|
});
|
|
4169
4178
|
}
|
|
4170
|
-
function
|
|
4179
|
+
function _o({ className: e, ...t }) {
|
|
4171
4180
|
return /* @__PURE__ */ a(j.GroupLabel, {
|
|
4172
4181
|
"data-slot": "combobox-label",
|
|
4173
4182
|
className: P("text-muted-foreground px-2 py-1.5 text-xs", e),
|
|
4174
4183
|
...t
|
|
4175
4184
|
});
|
|
4176
4185
|
}
|
|
4177
|
-
function
|
|
4186
|
+
function vo({ ...e }) {
|
|
4178
4187
|
return /* @__PURE__ */ a(j.Collection, {
|
|
4179
4188
|
"data-slot": "combobox-collection",
|
|
4180
4189
|
...e
|
|
4181
4190
|
});
|
|
4182
4191
|
}
|
|
4183
|
-
function
|
|
4192
|
+
function yo({ className: e, ...t }) {
|
|
4184
4193
|
return /* @__PURE__ */ a(j.Empty, {
|
|
4185
4194
|
"data-slot": "combobox-empty",
|
|
4186
4195
|
className: P("text-muted-foreground hidden w-full justify-center py-2 text-center text-sm group-data-empty/combobox-content:flex", e),
|
|
4187
4196
|
...t
|
|
4188
4197
|
});
|
|
4189
4198
|
}
|
|
4190
|
-
function
|
|
4199
|
+
function bo({ className: e, ...t }) {
|
|
4191
4200
|
return /* @__PURE__ */ a(j.Separator, {
|
|
4192
4201
|
"data-slot": "combobox-separator",
|
|
4193
4202
|
className: P("bg-border -mx-1 my-1 h-px", e),
|
|
4194
4203
|
...t
|
|
4195
4204
|
});
|
|
4196
4205
|
}
|
|
4197
|
-
function
|
|
4206
|
+
function xo({ className: e, ...t }) {
|
|
4198
4207
|
return /* @__PURE__ */ a(j.Chips, {
|
|
4199
4208
|
"data-slot": "combobox-chips",
|
|
4200
4209
|
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),
|
|
4201
4210
|
...t
|
|
4202
4211
|
});
|
|
4203
4212
|
}
|
|
4204
|
-
function
|
|
4213
|
+
function So({ className: e, children: t, showRemove: n = !0, ...r }) {
|
|
4205
4214
|
return /* @__PURE__ */ o(j.Chip, {
|
|
4206
4215
|
"data-slot": "combobox-chip",
|
|
4207
4216
|
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),
|
|
@@ -4217,62 +4226,62 @@ function xo({ className: e, children: t, showRemove: n = !0, ...r }) {
|
|
|
4217
4226
|
})]
|
|
4218
4227
|
});
|
|
4219
4228
|
}
|
|
4220
|
-
function
|
|
4229
|
+
function Co({ className: e, ...t }) {
|
|
4221
4230
|
return /* @__PURE__ */ a(j.Input, {
|
|
4222
4231
|
"data-slot": "combobox-chip-input",
|
|
4223
4232
|
className: P("min-w-16 flex-1 outline-none", e),
|
|
4224
4233
|
...t
|
|
4225
4234
|
});
|
|
4226
4235
|
}
|
|
4227
|
-
function
|
|
4236
|
+
function wo() {
|
|
4228
4237
|
return y.useRef(null);
|
|
4229
4238
|
}
|
|
4230
4239
|
//#endregion
|
|
4231
4240
|
//#region src/components/pure/direction.tsx
|
|
4232
|
-
function
|
|
4233
|
-
return /* @__PURE__ */ a(
|
|
4241
|
+
function To({ dir: e, direction: t, children: n }) {
|
|
4242
|
+
return /* @__PURE__ */ a(qe.DirectionProvider, {
|
|
4234
4243
|
dir: t ?? e,
|
|
4235
4244
|
children: n
|
|
4236
4245
|
});
|
|
4237
4246
|
}
|
|
4238
|
-
var
|
|
4247
|
+
var Eo = qe.useDirection;
|
|
4239
4248
|
//#endregion
|
|
4240
4249
|
//#region src/components/pure/drawer.tsx
|
|
4241
|
-
function
|
|
4250
|
+
function Do({ ...e }) {
|
|
4242
4251
|
return /* @__PURE__ */ a(M.Root, {
|
|
4243
4252
|
"data-slot": "drawer",
|
|
4244
4253
|
...e
|
|
4245
4254
|
});
|
|
4246
4255
|
}
|
|
4247
|
-
function
|
|
4256
|
+
function Oo({ ...e }) {
|
|
4248
4257
|
return /* @__PURE__ */ a(M.Trigger, {
|
|
4249
4258
|
"data-slot": "drawer-trigger",
|
|
4250
4259
|
...e
|
|
4251
4260
|
});
|
|
4252
4261
|
}
|
|
4253
|
-
function
|
|
4262
|
+
function ko({ ...e }) {
|
|
4254
4263
|
return /* @__PURE__ */ a(M.Portal, {
|
|
4255
4264
|
"data-slot": "drawer-portal",
|
|
4256
4265
|
...e
|
|
4257
4266
|
});
|
|
4258
4267
|
}
|
|
4259
|
-
function
|
|
4268
|
+
function Ao({ ...e }) {
|
|
4260
4269
|
return /* @__PURE__ */ a(M.Close, {
|
|
4261
4270
|
"data-slot": "drawer-close",
|
|
4262
4271
|
...e
|
|
4263
4272
|
});
|
|
4264
4273
|
}
|
|
4265
|
-
function
|
|
4274
|
+
function jo({ className: e, ...t }) {
|
|
4266
4275
|
return /* @__PURE__ */ a(M.Overlay, {
|
|
4267
4276
|
"data-slot": "drawer-overlay",
|
|
4268
4277
|
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),
|
|
4269
4278
|
...t
|
|
4270
4279
|
});
|
|
4271
4280
|
}
|
|
4272
|
-
function
|
|
4273
|
-
return /* @__PURE__ */ o(
|
|
4281
|
+
function Mo({ className: e, children: t, ...n }) {
|
|
4282
|
+
return /* @__PURE__ */ o(ko, {
|
|
4274
4283
|
"data-slot": "drawer-portal",
|
|
4275
|
-
children: [/* @__PURE__ */ a(
|
|
4284
|
+
children: [/* @__PURE__ */ a(jo, {}), /* @__PURE__ */ o(M.Content, {
|
|
4276
4285
|
"data-slot": "drawer-content",
|
|
4277
4286
|
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),
|
|
4278
4287
|
...n,
|
|
@@ -4280,28 +4289,28 @@ function jo({ className: e, children: t, ...n }) {
|
|
|
4280
4289
|
})]
|
|
4281
4290
|
});
|
|
4282
4291
|
}
|
|
4283
|
-
function
|
|
4292
|
+
function No({ className: e, ...t }) {
|
|
4284
4293
|
return /* @__PURE__ */ a("div", {
|
|
4285
4294
|
"data-slot": "drawer-header",
|
|
4286
4295
|
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),
|
|
4287
4296
|
...t
|
|
4288
4297
|
});
|
|
4289
4298
|
}
|
|
4290
|
-
function
|
|
4299
|
+
function Po({ className: e, ...t }) {
|
|
4291
4300
|
return /* @__PURE__ */ a("div", {
|
|
4292
4301
|
"data-slot": "drawer-footer",
|
|
4293
4302
|
className: P("gap-2 p-4 mt-auto flex flex-col", e),
|
|
4294
4303
|
...t
|
|
4295
4304
|
});
|
|
4296
4305
|
}
|
|
4297
|
-
function
|
|
4306
|
+
function Fo({ className: e, ...t }) {
|
|
4298
4307
|
return /* @__PURE__ */ a(M.Title, {
|
|
4299
4308
|
"data-slot": "drawer-title",
|
|
4300
4309
|
className: P("text-foreground text-base font-medium", e),
|
|
4301
4310
|
...t
|
|
4302
4311
|
});
|
|
4303
4312
|
}
|
|
4304
|
-
function
|
|
4313
|
+
function Io({ className: e, ...t }) {
|
|
4305
4314
|
return /* @__PURE__ */ a(M.Description, {
|
|
4306
4315
|
"data-slot": "drawer-description",
|
|
4307
4316
|
className: P("text-muted-foreground text-sm", e),
|
|
@@ -4310,14 +4319,14 @@ function Fo({ className: e, ...t }) {
|
|
|
4310
4319
|
}
|
|
4311
4320
|
//#endregion
|
|
4312
4321
|
//#region src/components/pure/field.tsx
|
|
4313
|
-
function
|
|
4322
|
+
function Lo({ className: e, ...t }) {
|
|
4314
4323
|
return /* @__PURE__ */ a("fieldset", {
|
|
4315
4324
|
"data-slot": "field-set",
|
|
4316
4325
|
className: P("gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col", e),
|
|
4317
4326
|
...t
|
|
4318
4327
|
});
|
|
4319
4328
|
}
|
|
4320
|
-
function
|
|
4329
|
+
function Ro({ className: e, variant: t = "legend", ...n }) {
|
|
4321
4330
|
return /* @__PURE__ */ a("legend", {
|
|
4322
4331
|
"data-slot": "field-legend",
|
|
4323
4332
|
"data-variant": t,
|
|
@@ -4325,14 +4334,14 @@ function Lo({ className: e, variant: t = "legend", ...n }) {
|
|
|
4325
4334
|
...n
|
|
4326
4335
|
});
|
|
4327
4336
|
}
|
|
4328
|
-
function
|
|
4337
|
+
function zo({ className: e, ...t }) {
|
|
4329
4338
|
return /* @__PURE__ */ a("div", {
|
|
4330
4339
|
"data-slot": "field-group",
|
|
4331
4340
|
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),
|
|
4332
4341
|
...t
|
|
4333
4342
|
});
|
|
4334
4343
|
}
|
|
4335
|
-
var
|
|
4344
|
+
var Bo = S("data-[invalid=true]:text-destructive gap-2 group/field flex w-full", {
|
|
4336
4345
|
variants: { orientation: {
|
|
4337
4346
|
vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
|
|
4338
4347
|
horizontal: "flex-row items-center *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
|
|
@@ -4340,44 +4349,44 @@ var zo = S("data-[invalid=true]:text-destructive gap-2 group/field flex w-full",
|
|
|
4340
4349
|
} },
|
|
4341
4350
|
defaultVariants: { orientation: "vertical" }
|
|
4342
4351
|
});
|
|
4343
|
-
function
|
|
4352
|
+
function Vo({ className: e, orientation: t = "vertical", ...n }) {
|
|
4344
4353
|
return /* @__PURE__ */ a("div", {
|
|
4345
4354
|
role: "group",
|
|
4346
4355
|
"data-slot": "field",
|
|
4347
4356
|
"data-orientation": t,
|
|
4348
|
-
className: P(
|
|
4357
|
+
className: P(Bo({ orientation: t }), e),
|
|
4349
4358
|
...n
|
|
4350
4359
|
});
|
|
4351
4360
|
}
|
|
4352
|
-
function
|
|
4361
|
+
function Ho({ className: e, ...t }) {
|
|
4353
4362
|
return /* @__PURE__ */ a("div", {
|
|
4354
4363
|
"data-slot": "field-content",
|
|
4355
4364
|
className: P("gap-0.5 group/field-content flex flex-1 flex-col leading-snug", e),
|
|
4356
4365
|
...t
|
|
4357
4366
|
});
|
|
4358
4367
|
}
|
|
4359
|
-
function
|
|
4360
|
-
return /* @__PURE__ */ a(
|
|
4368
|
+
function Uo({ className: e, ...t }) {
|
|
4369
|
+
return /* @__PURE__ */ a(Ut, {
|
|
4361
4370
|
"data-slot": "field-label",
|
|
4362
4371
|
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),
|
|
4363
4372
|
...t
|
|
4364
4373
|
});
|
|
4365
4374
|
}
|
|
4366
|
-
function
|
|
4375
|
+
function Wo({ className: e, ...t }) {
|
|
4367
4376
|
return /* @__PURE__ */ a("div", {
|
|
4368
4377
|
"data-slot": "field-label",
|
|
4369
4378
|
className: P("gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center leading-snug", e),
|
|
4370
4379
|
...t
|
|
4371
4380
|
});
|
|
4372
4381
|
}
|
|
4373
|
-
function
|
|
4382
|
+
function Go({ className: e, ...t }) {
|
|
4374
4383
|
return /* @__PURE__ */ a("p", {
|
|
4375
4384
|
"data-slot": "field-description",
|
|
4376
4385
|
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),
|
|
4377
4386
|
...t
|
|
4378
4387
|
});
|
|
4379
4388
|
}
|
|
4380
|
-
function
|
|
4389
|
+
function Ko({ children: e, className: t, ...n }) {
|
|
4381
4390
|
return /* @__PURE__ */ o("div", {
|
|
4382
4391
|
"data-slot": "field-separator",
|
|
4383
4392
|
"data-content": !!e,
|
|
@@ -4390,8 +4399,8 @@ function Go({ children: e, className: t, ...n }) {
|
|
|
4390
4399
|
})]
|
|
4391
4400
|
});
|
|
4392
4401
|
}
|
|
4393
|
-
function
|
|
4394
|
-
let i =
|
|
4402
|
+
function qo({ className: e, children: t, errors: n, ...r }) {
|
|
4403
|
+
let i = je(() => {
|
|
4395
4404
|
if (t) return t;
|
|
4396
4405
|
if (!n?.length) return null;
|
|
4397
4406
|
let e = [...new Map(n.map((e) => [e?.message, e])).values()];
|
|
@@ -4410,30 +4419,30 @@ function Ko({ className: e, children: t, errors: n, ...r }) {
|
|
|
4410
4419
|
}
|
|
4411
4420
|
//#endregion
|
|
4412
4421
|
//#region src/components/pure/scroll-area.tsx
|
|
4413
|
-
function
|
|
4414
|
-
return /* @__PURE__ */ o(
|
|
4422
|
+
function Jo({ className: e, children: t, ...n }) {
|
|
4423
|
+
return /* @__PURE__ */ o(Je.Root, {
|
|
4415
4424
|
"data-slot": "scroll-area",
|
|
4416
4425
|
className: P("relative", e),
|
|
4417
4426
|
...n,
|
|
4418
4427
|
children: [
|
|
4419
|
-
/* @__PURE__ */ a(
|
|
4428
|
+
/* @__PURE__ */ a(Je.Viewport, {
|
|
4420
4429
|
"data-slot": "scroll-area-viewport",
|
|
4421
4430
|
className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
|
|
4422
4431
|
children: t
|
|
4423
4432
|
}),
|
|
4424
|
-
/* @__PURE__ */ a(
|
|
4425
|
-
/* @__PURE__ */ a(
|
|
4433
|
+
/* @__PURE__ */ a(Yo, {}),
|
|
4434
|
+
/* @__PURE__ */ a(Je.Corner, {})
|
|
4426
4435
|
]
|
|
4427
4436
|
});
|
|
4428
4437
|
}
|
|
4429
|
-
function
|
|
4430
|
-
return /* @__PURE__ */ a(
|
|
4438
|
+
function Yo({ className: e, orientation: t = "vertical", ...n }) {
|
|
4439
|
+
return /* @__PURE__ */ a(Je.ScrollAreaScrollbar, {
|
|
4431
4440
|
"data-slot": "scroll-area-scrollbar",
|
|
4432
4441
|
"data-orientation": t,
|
|
4433
4442
|
orientation: t,
|
|
4434
4443
|
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),
|
|
4435
4444
|
...n,
|
|
4436
|
-
children: /* @__PURE__ */ a(
|
|
4445
|
+
children: /* @__PURE__ */ a(Je.ScrollAreaThumb, {
|
|
4437
4446
|
"data-slot": "scroll-area-thumb",
|
|
4438
4447
|
className: "rounded-full bg-border relative flex-1"
|
|
4439
4448
|
})
|
|
@@ -4441,9 +4450,9 @@ function Jo({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
4441
4450
|
}
|
|
4442
4451
|
//#endregion
|
|
4443
4452
|
//#region src/components/pure/sonner.tsx
|
|
4444
|
-
var
|
|
4445
|
-
let { theme: t = "system" } =
|
|
4446
|
-
return /* @__PURE__ */ a(
|
|
4453
|
+
var Xo = ({ ...e }) => {
|
|
4454
|
+
let { theme: t = "system" } = et();
|
|
4455
|
+
return /* @__PURE__ */ a(tt, {
|
|
4447
4456
|
theme: t,
|
|
4448
4457
|
className: "toaster group",
|
|
4449
4458
|
icons: {
|
|
@@ -4465,13 +4474,13 @@ var Yo = ({ ...e }) => {
|
|
|
4465
4474
|
};
|
|
4466
4475
|
//#endregion
|
|
4467
4476
|
//#region src/components/pure/switch.tsx
|
|
4468
|
-
function
|
|
4469
|
-
return /* @__PURE__ */ a(
|
|
4477
|
+
function Zo({ className: e, size: t = "default", ...n }) {
|
|
4478
|
+
return /* @__PURE__ */ a(Ye.Root, {
|
|
4470
4479
|
"data-slot": "switch",
|
|
4471
4480
|
"data-size": t,
|
|
4472
4481
|
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),
|
|
4473
4482
|
...n,
|
|
4474
|
-
children: /* @__PURE__ */ a(
|
|
4483
|
+
children: /* @__PURE__ */ a(Ye.Thumb, {
|
|
4475
4484
|
"data-slot": "switch-thumb",
|
|
4476
4485
|
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"
|
|
4477
4486
|
})
|
|
@@ -4479,38 +4488,38 @@ function Xo({ className: e, size: t = "default", ...n }) {
|
|
|
4479
4488
|
}
|
|
4480
4489
|
//#endregion
|
|
4481
4490
|
//#region src/components/pure/tabs.tsx
|
|
4482
|
-
function
|
|
4483
|
-
return /* @__PURE__ */ a(
|
|
4491
|
+
function Qo({ className: e, orientation: t = "horizontal", ...n }) {
|
|
4492
|
+
return /* @__PURE__ */ a(Xe.Root, {
|
|
4484
4493
|
"data-slot": "tabs",
|
|
4485
4494
|
"data-orientation": t,
|
|
4486
4495
|
className: P("gap-2 group/tabs flex data-horizontal:flex-col", e),
|
|
4487
4496
|
...n
|
|
4488
4497
|
});
|
|
4489
4498
|
}
|
|
4490
|
-
var
|
|
4499
|
+
var $o = S("rounded-lg p-[3px] group-data-horizontal/tabs:h-8 data-[variant=line]:rounded-none group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col", {
|
|
4491
4500
|
variants: { variant: {
|
|
4492
4501
|
default: "bg-muted",
|
|
4493
4502
|
line: "gap-1 bg-transparent"
|
|
4494
4503
|
} },
|
|
4495
4504
|
defaultVariants: { variant: "default" }
|
|
4496
4505
|
});
|
|
4497
|
-
function
|
|
4498
|
-
return /* @__PURE__ */ a(
|
|
4506
|
+
function es({ className: e, variant: t = "default", ...n }) {
|
|
4507
|
+
return /* @__PURE__ */ a(Xe.List, {
|
|
4499
4508
|
"data-slot": "tabs-list",
|
|
4500
4509
|
"data-variant": t,
|
|
4501
|
-
className: P(
|
|
4510
|
+
className: P($o({ variant: t }), e),
|
|
4502
4511
|
...n
|
|
4503
4512
|
});
|
|
4504
4513
|
}
|
|
4505
|
-
function
|
|
4506
|
-
return /* @__PURE__ */ a(
|
|
4514
|
+
function ts({ className: e, ...t }) {
|
|
4515
|
+
return /* @__PURE__ */ a(Xe.Trigger, {
|
|
4507
4516
|
"data-slot": "tabs-trigger",
|
|
4508
4517
|
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),
|
|
4509
4518
|
...t
|
|
4510
4519
|
});
|
|
4511
4520
|
}
|
|
4512
|
-
function
|
|
4513
|
-
return /* @__PURE__ */ a(
|
|
4521
|
+
function ns({ className: e, ...t }) {
|
|
4522
|
+
return /* @__PURE__ */ a(Xe.Content, {
|
|
4514
4523
|
"data-slot": "tabs-content",
|
|
4515
4524
|
className: P("text-sm flex-1 outline-none", e),
|
|
4516
4525
|
...t
|
|
@@ -4518,7 +4527,7 @@ function ts({ className: e, ...t }) {
|
|
|
4518
4527
|
}
|
|
4519
4528
|
//#endregion
|
|
4520
4529
|
//#region src/components/pure/toggle.tsx
|
|
4521
|
-
var
|
|
4530
|
+
var rs = S("hover:text-foreground aria-pressed:bg-muted focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[state=on]:bg-muted gap-1 rounded-lg text-sm font-medium transition-all [&_svg:not([class*='size-'])]:size-4 group/toggle hover:bg-muted inline-flex items-center justify-center whitespace-nowrap outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
4522
4531
|
variants: {
|
|
4523
4532
|
variant: {
|
|
4524
4533
|
default: "bg-transparent",
|
|
@@ -4535,10 +4544,10 @@ var ns = S("hover:text-foreground aria-pressed:bg-muted focus-visible:border-rin
|
|
|
4535
4544
|
size: "default"
|
|
4536
4545
|
}
|
|
4537
4546
|
});
|
|
4538
|
-
function
|
|
4539
|
-
return /* @__PURE__ */ a(
|
|
4547
|
+
function is({ className: e, variant: t = "default", size: n = "default", ...r }) {
|
|
4548
|
+
return /* @__PURE__ */ a(Ze.Root, {
|
|
4540
4549
|
"data-slot": "toggle",
|
|
4541
|
-
className: P(
|
|
4550
|
+
className: P(rs({
|
|
4542
4551
|
variant: t,
|
|
4543
4552
|
size: n,
|
|
4544
4553
|
className: e
|
|
@@ -4548,14 +4557,14 @@ function rs({ className: e, variant: t = "default", size: n = "default", ...r })
|
|
|
4548
4557
|
}
|
|
4549
4558
|
//#endregion
|
|
4550
4559
|
//#region src/components/pure/toggle-group.tsx
|
|
4551
|
-
var
|
|
4560
|
+
var as = y.createContext({
|
|
4552
4561
|
size: "default",
|
|
4553
4562
|
variant: "default",
|
|
4554
4563
|
spacing: 0,
|
|
4555
4564
|
orientation: "horizontal"
|
|
4556
4565
|
});
|
|
4557
|
-
function
|
|
4558
|
-
return /* @__PURE__ */ a(
|
|
4566
|
+
function os({ className: e, variant: t, size: n, spacing: r = 0, orientation: i = "horizontal", children: o, ...s }) {
|
|
4567
|
+
return /* @__PURE__ */ a(Qe.Root, {
|
|
4559
4568
|
"data-slot": "toggle-group",
|
|
4560
4569
|
"data-variant": t,
|
|
4561
4570
|
"data-size": n,
|
|
@@ -4564,7 +4573,7 @@ function as({ className: e, variant: t, size: n, spacing: r = 0, orientation: i
|
|
|
4564
4573
|
style: { "--gap": r },
|
|
4565
4574
|
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),
|
|
4566
4575
|
...s,
|
|
4567
|
-
children: /* @__PURE__ */ a(
|
|
4576
|
+
children: /* @__PURE__ */ a(as.Provider, {
|
|
4568
4577
|
value: {
|
|
4569
4578
|
variant: t,
|
|
4570
4579
|
size: n,
|
|
@@ -4575,14 +4584,14 @@ function as({ className: e, variant: t, size: n, spacing: r = 0, orientation: i
|
|
|
4575
4584
|
})
|
|
4576
4585
|
});
|
|
4577
4586
|
}
|
|
4578
|
-
function
|
|
4579
|
-
let o = y.useContext(
|
|
4580
|
-
return /* @__PURE__ */ a(
|
|
4587
|
+
function ss({ className: e, children: t, variant: n = "default", size: r = "default", ...i }) {
|
|
4588
|
+
let o = y.useContext(as);
|
|
4589
|
+
return /* @__PURE__ */ a(Qe.Item, {
|
|
4581
4590
|
"data-slot": "toggle-group-item",
|
|
4582
4591
|
"data-variant": o.variant || n,
|
|
4583
4592
|
"data-size": o.size || r,
|
|
4584
4593
|
"data-spacing": o.spacing,
|
|
4585
|
-
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",
|
|
4594
|
+
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", rs({
|
|
4586
4595
|
variant: o.variant || n,
|
|
4587
4596
|
size: o.size || r
|
|
4588
4597
|
}), e),
|
|
@@ -4592,7 +4601,7 @@ function os({ className: e, children: t, variant: n = "default", size: r = "defa
|
|
|
4592
4601
|
}
|
|
4593
4602
|
//#endregion
|
|
4594
4603
|
//#region src/hooks/useDialog.ts
|
|
4595
|
-
function
|
|
4604
|
+
function cs() {
|
|
4596
4605
|
let [e, t] = x(null), [n, r] = x(!1), [i, a] = x(!1);
|
|
4597
4606
|
return {
|
|
4598
4607
|
selectedRow: e,
|
|
@@ -4610,7 +4619,7 @@ function ss() {
|
|
|
4610
4619
|
}
|
|
4611
4620
|
//#endregion
|
|
4612
4621
|
//#region src/hooks/useDynamicList.ts
|
|
4613
|
-
function
|
|
4622
|
+
function ls(e, t, n) {
|
|
4614
4623
|
return {
|
|
4615
4624
|
addRow: b((r) => {
|
|
4616
4625
|
t((t) => ({
|
|
@@ -4658,7 +4667,7 @@ function cs(e, t, n) {
|
|
|
4658
4667
|
}
|
|
4659
4668
|
//#endregion
|
|
4660
4669
|
//#region src/hooks/useFormValidation.ts
|
|
4661
|
-
function
|
|
4670
|
+
function us(e, t) {
|
|
4662
4671
|
let [n, r] = x({}), i = (e) => n[e], a = (e) => !!n[e];
|
|
4663
4672
|
return {
|
|
4664
4673
|
errors: n,
|
|
@@ -4688,10 +4697,10 @@ function ls(e, t) {
|
|
|
4688
4697
|
}
|
|
4689
4698
|
//#endregion
|
|
4690
4699
|
//#region src/hooks/useEntityForm.ts
|
|
4691
|
-
function
|
|
4700
|
+
function ds(e, t) {
|
|
4692
4701
|
let [n, r] = x({ ...e }), [i, a] = x(e);
|
|
4693
4702
|
e !== i && (r({ ...e }), a(e));
|
|
4694
|
-
let o =
|
|
4703
|
+
let o = us(n, t);
|
|
4695
4704
|
return {
|
|
4696
4705
|
formData: n,
|
|
4697
4706
|
handleChange: b((e) => {
|
|
@@ -4710,7 +4719,7 @@ function us(e, t) {
|
|
|
4710
4719
|
}
|
|
4711
4720
|
//#endregion
|
|
4712
4721
|
//#region src/hooks/useLightBox.ts
|
|
4713
|
-
function
|
|
4722
|
+
function fs() {
|
|
4714
4723
|
let [e, t] = x(null);
|
|
4715
4724
|
return {
|
|
4716
4725
|
lightbox: e,
|
|
@@ -4726,8 +4735,8 @@ function ds() {
|
|
|
4726
4735
|
}
|
|
4727
4736
|
//#endregion
|
|
4728
4737
|
//#region src/hooks/useStorageFile.ts
|
|
4729
|
-
function
|
|
4730
|
-
let n =
|
|
4738
|
+
function ps(e, t) {
|
|
4739
|
+
let n = Me(null), r = async (r) => {
|
|
4731
4740
|
let i = Array.from(r.target.files || []);
|
|
4732
4741
|
if (i.length === 0) return;
|
|
4733
4742
|
let a = [
|
|
@@ -4752,7 +4761,7 @@ function fs(e, t) {
|
|
|
4752
4761
|
let n = new FileReader();
|
|
4753
4762
|
n.onloadend = () => {
|
|
4754
4763
|
let r = n.result;
|
|
4755
|
-
t(new
|
|
4764
|
+
t(new rt({
|
|
4756
4765
|
url: r,
|
|
4757
4766
|
base64File: r.split(",")[1],
|
|
4758
4767
|
extension: `.${e.name.split(".").pop()}`,
|
|
@@ -4773,7 +4782,7 @@ function fs(e, t) {
|
|
|
4773
4782
|
let r = e[t];
|
|
4774
4783
|
if (Array.isArray(r)) {
|
|
4775
4784
|
let i = [...r], a = i[n];
|
|
4776
|
-
return a.status === N.New ? i.splice(n, 1) : i[n] = new
|
|
4785
|
+
return a.status === N.New ? i.splice(n, 1) : i[n] = new rt({
|
|
4777
4786
|
...a,
|
|
4778
4787
|
status: N.Delete
|
|
4779
4788
|
}), {
|
|
@@ -4784,7 +4793,7 @@ function fs(e, t) {
|
|
|
4784
4793
|
let n = r;
|
|
4785
4794
|
return {
|
|
4786
4795
|
...e,
|
|
4787
|
-
[t]: n?.status === N.New ? void 0 : new
|
|
4796
|
+
[t]: n?.status === N.New ? void 0 : new rt({
|
|
4788
4797
|
...n,
|
|
4789
4798
|
status: N.Delete
|
|
4790
4799
|
})
|
|
@@ -4812,17 +4821,17 @@ function fs(e, t) {
|
|
|
4812
4821
|
}
|
|
4813
4822
|
//#endregion
|
|
4814
4823
|
//#region src/state/authListener.ts
|
|
4815
|
-
var
|
|
4824
|
+
var ms = (e, t) => {
|
|
4816
4825
|
window.addEventListener("storage", (n) => {
|
|
4817
|
-
n.key ===
|
|
4818
|
-
}), window.addEventListener(
|
|
4826
|
+
n.key === nt.AuthCheckStorageItemName && e(t.syncFromStorage());
|
|
4827
|
+
}), window.addEventListener(nt.UnauthorizedEventName, () => {
|
|
4819
4828
|
e(t.logout());
|
|
4820
4829
|
});
|
|
4821
4830
|
};
|
|
4822
4831
|
//#endregion
|
|
4823
4832
|
//#region src/state/generics/genericDialogSlice.ts
|
|
4824
|
-
function
|
|
4825
|
-
return
|
|
4833
|
+
function hs(e) {
|
|
4834
|
+
return at({
|
|
4826
4835
|
name: e,
|
|
4827
4836
|
initialState: {
|
|
4828
4837
|
selectedRow: null,
|
|
@@ -4847,7 +4856,7 @@ function ms(e) {
|
|
|
4847
4856
|
}
|
|
4848
4857
|
//#endregion
|
|
4849
4858
|
//#region ../../node_modules/immer/dist/immer.mjs
|
|
4850
|
-
var
|
|
4859
|
+
var gs = Symbol.for("immer-nothing"), _s = Symbol.for("immer-draftable"), G = Symbol.for("immer-state"), vs = process.env.NODE_ENV === "production" ? [] : [
|
|
4851
4860
|
function(e) {
|
|
4852
4861
|
return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
|
|
4853
4862
|
},
|
|
@@ -4877,63 +4886,63 @@ var hs = Symbol.for("immer-nothing"), gs = Symbol.for("immer-draftable"), G = Sy
|
|
|
4877
4886
|
];
|
|
4878
4887
|
function K(e, ...t) {
|
|
4879
4888
|
if (process.env.NODE_ENV !== "production") {
|
|
4880
|
-
let n =
|
|
4889
|
+
let n = vs[e], r = Z(n) ? n.apply(null, t) : n;
|
|
4881
4890
|
throw Error(`[Immer] ${r}`);
|
|
4882
4891
|
}
|
|
4883
4892
|
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
|
|
4884
4893
|
}
|
|
4885
|
-
var q = Object, J = q.getPrototypeOf,
|
|
4894
|
+
var q = Object, J = q.getPrototypeOf, ys = "constructor", bs = "prototype", xs = "configurable", Ss = "enumerable", Cs = "writable", ws = "value", Y = (e) => !!e && !!e[G];
|
|
4886
4895
|
function X(e) {
|
|
4887
|
-
return e ?
|
|
4896
|
+
return e ? Ds(e) || Ps(e) || !!e[_s] || !!e[ys]?.[_s] || Fs(e) || Is(e) : !1;
|
|
4888
4897
|
}
|
|
4889
|
-
var
|
|
4890
|
-
function
|
|
4891
|
-
if (!e || !
|
|
4898
|
+
var Ts = q[bs][ys].toString(), Es = /* @__PURE__ */ new WeakMap();
|
|
4899
|
+
function Ds(e) {
|
|
4900
|
+
if (!e || !Ls(e)) return !1;
|
|
4892
4901
|
let t = J(e);
|
|
4893
|
-
if (t === null || t === q[
|
|
4894
|
-
let n = q.hasOwnProperty.call(t,
|
|
4902
|
+
if (t === null || t === q[bs]) return !0;
|
|
4903
|
+
let n = q.hasOwnProperty.call(t, ys) && t[ys];
|
|
4895
4904
|
if (n === Object) return !0;
|
|
4896
4905
|
if (!Z(n)) return !1;
|
|
4897
|
-
let r =
|
|
4898
|
-
return r === void 0 && (r = Function.toString.call(n),
|
|
4906
|
+
let r = Es.get(n);
|
|
4907
|
+
return r === void 0 && (r = Function.toString.call(n), Es.set(n, r)), r === Ts;
|
|
4899
4908
|
}
|
|
4900
|
-
function
|
|
4901
|
-
|
|
4909
|
+
function Os(e, t, n = !0) {
|
|
4910
|
+
ks(e) === 0 ? (n ? Reflect.ownKeys(e) : q.keys(e)).forEach((n) => {
|
|
4902
4911
|
t(n, e[n], e);
|
|
4903
4912
|
}) : e.forEach((n, r) => t(r, n, e));
|
|
4904
4913
|
}
|
|
4905
|
-
function
|
|
4914
|
+
function ks(e) {
|
|
4906
4915
|
let t = e[G];
|
|
4907
|
-
return t ? t.type_ :
|
|
4916
|
+
return t ? t.type_ : Ps(e) ? 1 : Fs(e) ? 2 : Is(e) ? 3 : 0;
|
|
4908
4917
|
}
|
|
4909
|
-
var
|
|
4918
|
+
var As = (e, t, n = ks(e)) => n === 2 ? e.has(t) : q[bs].hasOwnProperty.call(e, t), js = (e, t, n = ks(e)) => n === 2 ? e.get(t) : e[t], Ms = (e, t, n, r = ks(e)) => {
|
|
4910
4919
|
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
|
|
4911
4920
|
};
|
|
4912
|
-
function
|
|
4921
|
+
function Ns(e, t) {
|
|
4913
4922
|
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
|
|
4914
4923
|
}
|
|
4915
|
-
var
|
|
4916
|
-
function
|
|
4924
|
+
var Ps = Array.isArray, Fs = (e) => e instanceof Map, Is = (e) => e instanceof Set, Ls = (e) => typeof e == "object", Z = (e) => typeof e == "function", Rs = (e) => typeof e == "boolean";
|
|
4925
|
+
function zs(e) {
|
|
4917
4926
|
let t = +e;
|
|
4918
4927
|
return Number.isInteger(t) && String(t) === e;
|
|
4919
4928
|
}
|
|
4920
|
-
var Q = (e) => e.copy_ || e.base_,
|
|
4921
|
-
function
|
|
4922
|
-
if (
|
|
4923
|
-
if (
|
|
4924
|
-
if (
|
|
4925
|
-
let n =
|
|
4929
|
+
var Q = (e) => e.copy_ || e.base_, Bs = (e) => e.modified_ ? e.copy_ : e.base_;
|
|
4930
|
+
function Vs(e, t) {
|
|
4931
|
+
if (Fs(e)) return new Map(e);
|
|
4932
|
+
if (Is(e)) return new Set(e);
|
|
4933
|
+
if (Ps(e)) return Array[bs].slice.call(e);
|
|
4934
|
+
let n = Ds(e);
|
|
4926
4935
|
if (t === !0 || t === "class_only" && !n) {
|
|
4927
4936
|
let t = q.getOwnPropertyDescriptors(e);
|
|
4928
4937
|
delete t[G];
|
|
4929
4938
|
let n = Reflect.ownKeys(t);
|
|
4930
4939
|
for (let r = 0; r < n.length; r++) {
|
|
4931
4940
|
let i = n[r], a = t[i];
|
|
4932
|
-
a[
|
|
4933
|
-
[
|
|
4934
|
-
[
|
|
4935
|
-
[
|
|
4936
|
-
[
|
|
4941
|
+
a[Cs] === !1 && (a[Cs] = !0, a[xs] = !0), (a.get || a.set) && (t[i] = {
|
|
4942
|
+
[xs]: !0,
|
|
4943
|
+
[Cs]: !0,
|
|
4944
|
+
[Ss]: a[Ss],
|
|
4945
|
+
[ws]: e[i]
|
|
4937
4946
|
});
|
|
4938
4947
|
}
|
|
4939
4948
|
return q.create(J(e), t);
|
|
@@ -4944,29 +4953,29 @@ function Bs(e, t) {
|
|
|
4944
4953
|
return q.assign(r, e);
|
|
4945
4954
|
}
|
|
4946
4955
|
}
|
|
4947
|
-
function
|
|
4948
|
-
return
|
|
4949
|
-
set:
|
|
4950
|
-
add:
|
|
4951
|
-
clear:
|
|
4952
|
-
delete:
|
|
4953
|
-
}), q.freeze(e), t &&
|
|
4954
|
-
|
|
4956
|
+
function Hs(e, t = !1) {
|
|
4957
|
+
return Gs(e) || Y(e) || !X(e) ? e : (ks(e) > 1 && q.defineProperties(e, {
|
|
4958
|
+
set: Ws,
|
|
4959
|
+
add: Ws,
|
|
4960
|
+
clear: Ws,
|
|
4961
|
+
delete: Ws
|
|
4962
|
+
}), q.freeze(e), t && Os(e, (e, t) => {
|
|
4963
|
+
Hs(t, !0);
|
|
4955
4964
|
}, !1), e);
|
|
4956
4965
|
}
|
|
4957
|
-
function
|
|
4966
|
+
function Us() {
|
|
4958
4967
|
K(2);
|
|
4959
4968
|
}
|
|
4960
|
-
var
|
|
4961
|
-
function
|
|
4962
|
-
return e === null || !
|
|
4969
|
+
var Ws = { [ws]: Us };
|
|
4970
|
+
function Gs(e) {
|
|
4971
|
+
return e === null || !Ls(e) ? !0 : q.isFrozen(e);
|
|
4963
4972
|
}
|
|
4964
|
-
var
|
|
4973
|
+
var Ks = "MapSet", qs = "Patches", Js = "ArrayMethods", Ys = {};
|
|
4965
4974
|
function $(e) {
|
|
4966
|
-
let t =
|
|
4975
|
+
let t = Ys[e];
|
|
4967
4976
|
return t || K(0, e), t;
|
|
4968
4977
|
}
|
|
4969
|
-
var
|
|
4978
|
+
var Xs = (e) => !!Ys[e], Zs, Qs = () => Zs, $s = (e, t) => ({
|
|
4970
4979
|
drafts_: [],
|
|
4971
4980
|
parent_: e,
|
|
4972
4981
|
immer_: t,
|
|
@@ -4974,114 +4983,114 @@ var Ys = (e) => !!Js[e], Xs, Zs = () => Xs, Qs = (e, t) => ({
|
|
|
4974
4983
|
unfinalizedDrafts_: 0,
|
|
4975
4984
|
handledSet_: /* @__PURE__ */ new Set(),
|
|
4976
4985
|
processedForPatches_: /* @__PURE__ */ new Set(),
|
|
4977
|
-
mapSetPlugin_:
|
|
4978
|
-
arrayMethodsPlugin_:
|
|
4986
|
+
mapSetPlugin_: Xs(Ks) ? $(Ks) : void 0,
|
|
4987
|
+
arrayMethodsPlugin_: Xs(Js) ? $(Js) : void 0
|
|
4979
4988
|
});
|
|
4980
|
-
function
|
|
4981
|
-
t && (e.patchPlugin_ = $(
|
|
4982
|
-
}
|
|
4983
|
-
function ec(e) {
|
|
4984
|
-
tc(e), e.drafts_.forEach(rc), e.drafts_ = null;
|
|
4989
|
+
function ec(e, t) {
|
|
4990
|
+
t && (e.patchPlugin_ = $(qs), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
4985
4991
|
}
|
|
4986
4992
|
function tc(e) {
|
|
4987
|
-
e
|
|
4993
|
+
nc(e), e.drafts_.forEach(ic), e.drafts_ = null;
|
|
4994
|
+
}
|
|
4995
|
+
function nc(e) {
|
|
4996
|
+
e === Zs && (Zs = e.parent_);
|
|
4988
4997
|
}
|
|
4989
|
-
var
|
|
4990
|
-
function
|
|
4998
|
+
var rc = (e) => Zs = $s(Zs, e);
|
|
4999
|
+
function ic(e) {
|
|
4991
5000
|
let t = e[G];
|
|
4992
5001
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
4993
5002
|
}
|
|
4994
|
-
function
|
|
5003
|
+
function ac(e, t) {
|
|
4995
5004
|
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
4996
5005
|
let n = t.drafts_[0];
|
|
4997
5006
|
if (e !== void 0 && e !== n) {
|
|
4998
|
-
n[G].modified_ && (
|
|
5007
|
+
n[G].modified_ && (tc(t), K(4)), X(e) && (e = oc(t, e));
|
|
4999
5008
|
let { patchPlugin_: r } = t;
|
|
5000
5009
|
r && r.generateReplacementPatches_(n[G].base_, e, t);
|
|
5001
|
-
} else e =
|
|
5002
|
-
return
|
|
5010
|
+
} else e = oc(t, n);
|
|
5011
|
+
return sc(t, e, !0), tc(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === gs ? void 0 : e;
|
|
5003
5012
|
}
|
|
5004
|
-
function
|
|
5005
|
-
if (
|
|
5013
|
+
function oc(e, t) {
|
|
5014
|
+
if (Gs(t)) return t;
|
|
5006
5015
|
let n = t[G];
|
|
5007
|
-
if (!n) return
|
|
5008
|
-
if (!
|
|
5016
|
+
if (!n) return hc(t, e.handledSet_, e);
|
|
5017
|
+
if (!lc(n, e)) return t;
|
|
5009
5018
|
if (!n.modified_) return n.base_;
|
|
5010
5019
|
if (!n.finalized_) {
|
|
5011
5020
|
let { callbacks_: t } = n;
|
|
5012
5021
|
if (t) for (; t.length > 0;) t.pop()(e);
|
|
5013
|
-
|
|
5022
|
+
pc(n, e);
|
|
5014
5023
|
}
|
|
5015
5024
|
return n.copy_;
|
|
5016
5025
|
}
|
|
5017
|
-
function
|
|
5018
|
-
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ &&
|
|
5026
|
+
function sc(e, t, n = !1) {
|
|
5027
|
+
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && Hs(t, n);
|
|
5019
5028
|
}
|
|
5020
|
-
function
|
|
5029
|
+
function cc(e) {
|
|
5021
5030
|
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
|
|
5022
5031
|
}
|
|
5023
|
-
var
|
|
5024
|
-
function
|
|
5032
|
+
var lc = (e, t) => e.scope_ === t, uc = [];
|
|
5033
|
+
function dc(e, t, n, r) {
|
|
5025
5034
|
let i = Q(e), a = e.type_;
|
|
5026
|
-
if (r !== void 0 &&
|
|
5027
|
-
|
|
5035
|
+
if (r !== void 0 && js(i, r, a) === t) {
|
|
5036
|
+
Ms(i, r, n, a);
|
|
5028
5037
|
return;
|
|
5029
5038
|
}
|
|
5030
5039
|
if (!e.draftLocations_) {
|
|
5031
5040
|
let t = e.draftLocations_ = /* @__PURE__ */ new Map();
|
|
5032
|
-
|
|
5041
|
+
Os(i, (e, n) => {
|
|
5033
5042
|
if (Y(n)) {
|
|
5034
5043
|
let r = t.get(n) || [];
|
|
5035
5044
|
r.push(e), t.set(n, r);
|
|
5036
5045
|
}
|
|
5037
5046
|
});
|
|
5038
5047
|
}
|
|
5039
|
-
let o = e.draftLocations_.get(t) ??
|
|
5040
|
-
for (let e of o)
|
|
5048
|
+
let o = e.draftLocations_.get(t) ?? uc;
|
|
5049
|
+
for (let e of o) Ms(i, e, n, a);
|
|
5041
5050
|
}
|
|
5042
|
-
function
|
|
5051
|
+
function fc(e, t, n) {
|
|
5043
5052
|
e.callbacks_.push(function(r) {
|
|
5044
5053
|
let i = t;
|
|
5045
|
-
if (!i || !
|
|
5054
|
+
if (!i || !lc(i, r)) return;
|
|
5046
5055
|
r.mapSetPlugin_?.fixSetContents(i);
|
|
5047
|
-
let a =
|
|
5048
|
-
|
|
5056
|
+
let a = Bs(i);
|
|
5057
|
+
dc(e, i.draft_ ?? i, a, n), pc(i, r);
|
|
5049
5058
|
});
|
|
5050
5059
|
}
|
|
5051
|
-
function
|
|
5060
|
+
function pc(e, t) {
|
|
5052
5061
|
if (e.modified_ && !e.finalized_ && (e.type_ === 3 || e.type_ === 1 && e.allIndicesReassigned_ || (e.assigned_?.size ?? 0) > 0)) {
|
|
5053
5062
|
let { patchPlugin_: n } = t;
|
|
5054
5063
|
if (n) {
|
|
5055
5064
|
let r = n.getPath(e);
|
|
5056
5065
|
r && n.generatePatches_(e, r, t);
|
|
5057
5066
|
}
|
|
5058
|
-
|
|
5067
|
+
cc(e);
|
|
5059
5068
|
}
|
|
5060
5069
|
}
|
|
5061
|
-
function
|
|
5070
|
+
function mc(e, t, n) {
|
|
5062
5071
|
let { scope_: r } = e;
|
|
5063
5072
|
if (Y(n)) {
|
|
5064
5073
|
let i = n[G];
|
|
5065
|
-
|
|
5066
|
-
|
|
5074
|
+
lc(i, r) && i.callbacks_.push(function() {
|
|
5075
|
+
Cc(e), dc(e, n, Bs(i), t);
|
|
5067
5076
|
});
|
|
5068
5077
|
} else X(n) && e.callbacks_.push(function() {
|
|
5069
5078
|
let i = Q(e);
|
|
5070
|
-
e.type_ === 3 ? i.has(n) &&
|
|
5079
|
+
e.type_ === 3 ? i.has(n) && hc(n, r.handledSet_, r) : js(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && hc(js(e.copy_, t, e.type_), r.handledSet_, r);
|
|
5071
5080
|
});
|
|
5072
5081
|
}
|
|
5073
|
-
function
|
|
5074
|
-
return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || Y(e) || t.has(e) || !X(e) ||
|
|
5082
|
+
function hc(e, t, n) {
|
|
5083
|
+
return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || Y(e) || t.has(e) || !X(e) || Gs(e) ? e : (t.add(e), Os(e, (r, i) => {
|
|
5075
5084
|
if (Y(i)) {
|
|
5076
5085
|
let t = i[G];
|
|
5077
|
-
|
|
5078
|
-
} else X(i) &&
|
|
5086
|
+
lc(t, n) && (Ms(e, r, Bs(t), e.type_), cc(t));
|
|
5087
|
+
} else X(i) && hc(i, t, n);
|
|
5079
5088
|
}), e);
|
|
5080
5089
|
}
|
|
5081
|
-
function
|
|
5082
|
-
let n =
|
|
5090
|
+
function gc(e, t) {
|
|
5091
|
+
let n = Ps(e), r = {
|
|
5083
5092
|
type_: n ? 1 : 0,
|
|
5084
|
-
scope_: t ? t.scope_ :
|
|
5093
|
+
scope_: t ? t.scope_ : Qs(),
|
|
5085
5094
|
modified_: !1,
|
|
5086
5095
|
finalized_: !1,
|
|
5087
5096
|
assigned_: void 0,
|
|
@@ -5092,23 +5101,23 @@ function hc(e, t) {
|
|
|
5092
5101
|
revoke_: null,
|
|
5093
5102
|
isManual_: !1,
|
|
5094
5103
|
callbacks_: void 0
|
|
5095
|
-
}, i = r, a =
|
|
5096
|
-
n && (i = [r], a =
|
|
5104
|
+
}, i = r, a = _c;
|
|
5105
|
+
n && (i = [r], a = vc);
|
|
5097
5106
|
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
|
|
5098
5107
|
return r.draft_ = s, r.revoke_ = o, [s, r];
|
|
5099
5108
|
}
|
|
5100
|
-
var
|
|
5109
|
+
var _c = {
|
|
5101
5110
|
get(e, t) {
|
|
5102
5111
|
if (t === G) return e;
|
|
5103
5112
|
let n = e.scope_.arrayMethodsPlugin_, r = e.type_ === 1 && typeof t == "string";
|
|
5104
5113
|
if (r && n?.isArrayOperationMethod(t)) return n.createMethodInterceptor(e, t);
|
|
5105
5114
|
let i = Q(e);
|
|
5106
|
-
if (!
|
|
5115
|
+
if (!As(i, t, e.type_)) return bc(e, i, t);
|
|
5107
5116
|
let a = i[t];
|
|
5108
|
-
if (e.finalized_ || !X(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) &&
|
|
5109
|
-
if (a ===
|
|
5110
|
-
|
|
5111
|
-
let n = e.type_ === 1 ? +t : t, r =
|
|
5117
|
+
if (e.finalized_ || !X(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && zs(t)) return a;
|
|
5118
|
+
if (a === yc(e.base_, t)) {
|
|
5119
|
+
Cc(e);
|
|
5120
|
+
let n = e.type_ === 1 ? +t : t, r = Tc(e.scope_, a, e, n);
|
|
5112
5121
|
return e.copy_[n] = r;
|
|
5113
5122
|
}
|
|
5114
5123
|
return a;
|
|
@@ -5120,26 +5129,26 @@ var gc = {
|
|
|
5120
5129
|
return Reflect.ownKeys(Q(e));
|
|
5121
5130
|
},
|
|
5122
5131
|
set(e, t, n) {
|
|
5123
|
-
let r =
|
|
5132
|
+
let r = xc(Q(e), t);
|
|
5124
5133
|
if (r?.set) return r.set.call(e.draft_, n), !0;
|
|
5125
5134
|
if (!e.modified_) {
|
|
5126
|
-
let r =
|
|
5135
|
+
let r = yc(Q(e), t), i = r?.[G];
|
|
5127
5136
|
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
|
|
5128
|
-
if (
|
|
5129
|
-
|
|
5137
|
+
if (Ns(n, r) && (n !== void 0 || As(e.base_, t, e.type_))) return !0;
|
|
5138
|
+
Cc(e), Sc(e);
|
|
5130
5139
|
}
|
|
5131
|
-
return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0),
|
|
5140
|
+
return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), mc(e, t, n), !0);
|
|
5132
5141
|
},
|
|
5133
5142
|
deleteProperty(e, t) {
|
|
5134
|
-
return
|
|
5143
|
+
return Cc(e), yc(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), Sc(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
|
|
5135
5144
|
},
|
|
5136
5145
|
getOwnPropertyDescriptor(e, t) {
|
|
5137
5146
|
let n = Q(e), r = Reflect.getOwnPropertyDescriptor(n, t);
|
|
5138
5147
|
return r && {
|
|
5139
|
-
[
|
|
5140
|
-
[
|
|
5141
|
-
[
|
|
5142
|
-
[
|
|
5148
|
+
[Cs]: !0,
|
|
5149
|
+
[xs]: e.type_ !== 1 || t !== "length",
|
|
5150
|
+
[Ss]: r[Ss],
|
|
5151
|
+
[ws]: n[t]
|
|
5143
5152
|
};
|
|
5144
5153
|
},
|
|
5145
5154
|
defineProperty() {
|
|
@@ -5151,28 +5160,28 @@ var gc = {
|
|
|
5151
5160
|
setPrototypeOf() {
|
|
5152
5161
|
K(12);
|
|
5153
5162
|
}
|
|
5154
|
-
},
|
|
5155
|
-
for (let e in
|
|
5156
|
-
let t =
|
|
5157
|
-
|
|
5163
|
+
}, vc = {};
|
|
5164
|
+
for (let e in _c) {
|
|
5165
|
+
let t = _c[e];
|
|
5166
|
+
vc[e] = function() {
|
|
5158
5167
|
let e = arguments;
|
|
5159
5168
|
return e[0] = e[0][0], t.apply(this, e);
|
|
5160
5169
|
};
|
|
5161
5170
|
}
|
|
5162
|
-
|
|
5163
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && K(13),
|
|
5164
|
-
},
|
|
5165
|
-
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && K(14),
|
|
5171
|
+
vc.deleteProperty = function(e, t) {
|
|
5172
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && K(13), vc.set.call(this, e, t, void 0);
|
|
5173
|
+
}, vc.set = function(e, t, n) {
|
|
5174
|
+
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && K(14), _c.set.call(this, e[0], t, n, e[0]);
|
|
5166
5175
|
};
|
|
5167
|
-
function
|
|
5176
|
+
function yc(e, t) {
|
|
5168
5177
|
let n = e[G];
|
|
5169
5178
|
return (n ? Q(n) : e)[t];
|
|
5170
5179
|
}
|
|
5171
|
-
function
|
|
5172
|
-
let r =
|
|
5173
|
-
return r ?
|
|
5180
|
+
function bc(e, t, n) {
|
|
5181
|
+
let r = xc(t, n);
|
|
5182
|
+
return r ? ws in r ? r[ws] : r.get?.call(e.draft_) : void 0;
|
|
5174
5183
|
}
|
|
5175
|
-
function
|
|
5184
|
+
function xc(e, t) {
|
|
5176
5185
|
if (!(t in e)) return;
|
|
5177
5186
|
let n = J(e);
|
|
5178
5187
|
for (; n;) {
|
|
@@ -5181,13 +5190,13 @@ function bc(e, t) {
|
|
|
5181
5190
|
n = J(n);
|
|
5182
5191
|
}
|
|
5183
5192
|
}
|
|
5184
|
-
function xc(e) {
|
|
5185
|
-
e.modified_ || (e.modified_ = !0, e.parent_ && xc(e.parent_));
|
|
5186
|
-
}
|
|
5187
5193
|
function Sc(e) {
|
|
5188
|
-
e.
|
|
5194
|
+
e.modified_ || (e.modified_ = !0, e.parent_ && Sc(e.parent_));
|
|
5189
5195
|
}
|
|
5190
|
-
|
|
5196
|
+
function Cc(e) {
|
|
5197
|
+
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), Vs(e.base_, e.scope_.immer_.useStrictShallowCopy_));
|
|
5198
|
+
}
|
|
5199
|
+
var wc = class {
|
|
5191
5200
|
constructor(e) {
|
|
5192
5201
|
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
|
|
5193
5202
|
if (Z(e) && !Z(t)) {
|
|
@@ -5201,17 +5210,17 @@ var Cc = class {
|
|
|
5201
5210
|
Z(t) || K(6), n !== void 0 && !Z(n) && K(7);
|
|
5202
5211
|
let r;
|
|
5203
5212
|
if (X(e)) {
|
|
5204
|
-
let i =
|
|
5213
|
+
let i = rc(this), a = Tc(i, e, void 0), o = !0;
|
|
5205
5214
|
try {
|
|
5206
5215
|
r = t(a), o = !1;
|
|
5207
5216
|
} finally {
|
|
5208
|
-
o ?
|
|
5217
|
+
o ? tc(i) : nc(i);
|
|
5209
5218
|
}
|
|
5210
|
-
return
|
|
5211
|
-
} else if (!e || !
|
|
5212
|
-
if (r = t(e), r === void 0 && (r = e), r ===
|
|
5219
|
+
return ec(i, n), ac(r, i);
|
|
5220
|
+
} else if (!e || !Ls(e)) {
|
|
5221
|
+
if (r = t(e), r === void 0 && (r = e), r === gs && (r = void 0), this.autoFreeze_ && Hs(r, !0), n) {
|
|
5213
5222
|
let t = [], i = [];
|
|
5214
|
-
$(
|
|
5223
|
+
$(qs).generateReplacementPatches_(e, r, {
|
|
5215
5224
|
patches_: t,
|
|
5216
5225
|
inversePatches_: i
|
|
5217
5226
|
}), n(t, i);
|
|
@@ -5228,18 +5237,18 @@ var Cc = class {
|
|
|
5228
5237
|
n,
|
|
5229
5238
|
r
|
|
5230
5239
|
];
|
|
5231
|
-
},
|
|
5240
|
+
}, Rs(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), Rs(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), Rs(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
|
|
5232
5241
|
}
|
|
5233
5242
|
createDraft(e) {
|
|
5234
|
-
X(e) || K(8), Y(e) && (e =
|
|
5235
|
-
let t =
|
|
5236
|
-
return n[G].isManual_ = !0,
|
|
5243
|
+
X(e) || K(8), Y(e) && (e = Ec(e));
|
|
5244
|
+
let t = rc(this), n = Tc(t, e, void 0);
|
|
5245
|
+
return n[G].isManual_ = !0, nc(t), n;
|
|
5237
5246
|
}
|
|
5238
5247
|
finishDraft(e, t) {
|
|
5239
5248
|
let n = e && e[G];
|
|
5240
5249
|
(!n || !n.isManual_) && K(9);
|
|
5241
5250
|
let { scope_: r } = n;
|
|
5242
|
-
return
|
|
5251
|
+
return ec(r, t), ac(void 0, r);
|
|
5243
5252
|
}
|
|
5244
5253
|
setAutoFreeze(e) {
|
|
5245
5254
|
this.autoFreeze_ = e;
|
|
@@ -5263,37 +5272,37 @@ var Cc = class {
|
|
|
5263
5272
|
}
|
|
5264
5273
|
}
|
|
5265
5274
|
n > -1 && (t = t.slice(n + 1));
|
|
5266
|
-
let r = $(
|
|
5275
|
+
let r = $(qs).applyPatches_;
|
|
5267
5276
|
return Y(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
|
|
5268
5277
|
}
|
|
5269
5278
|
};
|
|
5270
|
-
function
|
|
5271
|
-
let [i, a] =
|
|
5272
|
-
return (n?.scope_ ??
|
|
5279
|
+
function Tc(e, t, n, r) {
|
|
5280
|
+
let [i, a] = Fs(t) ? $(Ks).proxyMap_(t, n) : Is(t) ? $(Ks).proxySet_(t, n) : gc(t, n);
|
|
5281
|
+
return (n?.scope_ ?? Qs()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? fc(n, a, r) : a.callbacks_.push(function(e) {
|
|
5273
5282
|
e.mapSetPlugin_?.fixSetContents(a);
|
|
5274
5283
|
let { patchPlugin_: t } = e;
|
|
5275
5284
|
a.modified_ && t && t.generatePatches_(a, [], e);
|
|
5276
5285
|
}), i;
|
|
5277
5286
|
}
|
|
5278
|
-
function Tc(e) {
|
|
5279
|
-
return Y(e) || K(10, e), Ec(e);
|
|
5280
|
-
}
|
|
5281
5287
|
function Ec(e) {
|
|
5282
|
-
|
|
5288
|
+
return Y(e) || K(10, e), Dc(e);
|
|
5289
|
+
}
|
|
5290
|
+
function Dc(e) {
|
|
5291
|
+
if (!X(e) || Gs(e)) return e;
|
|
5283
5292
|
let t = e[G], n, r = !0;
|
|
5284
5293
|
if (t) {
|
|
5285
5294
|
if (!t.modified_) return t.base_;
|
|
5286
|
-
t.finalized_ = !0, n =
|
|
5287
|
-
} else n =
|
|
5288
|
-
return
|
|
5289
|
-
|
|
5295
|
+
t.finalized_ = !0, n = Vs(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
|
|
5296
|
+
} else n = Vs(e, !0);
|
|
5297
|
+
return Os(n, (e, t) => {
|
|
5298
|
+
Ms(n, e, Dc(t));
|
|
5290
5299
|
}, r), t && (t.finalized_ = !1), n;
|
|
5291
5300
|
}
|
|
5292
|
-
new
|
|
5293
|
-
var
|
|
5301
|
+
new wc().produce;
|
|
5302
|
+
var Oc = (e) => e;
|
|
5294
5303
|
//#endregion
|
|
5295
5304
|
//#region src/state/generics/genericEntitySlice.ts
|
|
5296
|
-
function
|
|
5305
|
+
function kc(e, t, n, r) {
|
|
5297
5306
|
let i = {
|
|
5298
5307
|
entities: {
|
|
5299
5308
|
data: [],
|
|
@@ -5303,10 +5312,10 @@ function Oc(e, t, n, r) {
|
|
|
5303
5312
|
isLoading: !1,
|
|
5304
5313
|
currentPage: 1,
|
|
5305
5314
|
rowsPerPage: 100
|
|
5306
|
-
}, a =
|
|
5315
|
+
}, a = it(`${e}/filter`, async (r, { getState: i }) => {
|
|
5307
5316
|
let a = i()[e], o;
|
|
5308
5317
|
return o = n ? await n(a.currentPage, a.rowsPerPage, r, a.filterTypes) : await t.Filter(a.currentPage, a.rowsPerPage, r), o?.data;
|
|
5309
|
-
}), o =
|
|
5318
|
+
}), o = at({
|
|
5310
5319
|
name: e,
|
|
5311
5320
|
initialState: i,
|
|
5312
5321
|
reducers: {
|
|
@@ -5321,7 +5330,7 @@ function Oc(e, t, n, r) {
|
|
|
5321
5330
|
if (r) --e.entities.count, e.entities.data = e.entities.data?.filter((e) => e.id !== r);
|
|
5322
5331
|
else if (n) {
|
|
5323
5332
|
let t = e.entities.data?.findIndex((e) => e.id === n.id);
|
|
5324
|
-
t !== void 0 && t !== -1 ? e.entities.data && (e.entities.data[t] =
|
|
5333
|
+
t !== void 0 && t !== -1 ? e.entities.data && (e.entities.data[t] = Oc(n)) : (e.entities.count += 1, e.entities.data = [Oc(n), ...e.entities.data ?? []]);
|
|
5325
5334
|
}
|
|
5326
5335
|
},
|
|
5327
5336
|
...r || {}
|
|
@@ -5345,4 +5354,4 @@ function Oc(e, t, n, r) {
|
|
|
5345
5354
|
};
|
|
5346
5355
|
}
|
|
5347
5356
|
//#endregion
|
|
5348
|
-
export {
|
|
5357
|
+
export { La as Alert, Ba as AlertAction, za as AlertDescription, wa as AlertDialog, Pa as AlertDialogAction, Fa as AlertDialogCancel, Oa as AlertDialogContent, Na as AlertDialogDescription, Aa as AlertDialogFooter, ka as AlertDialogHeader, ja as AlertDialogMedia, Da as AlertDialogOverlay, Ea as AlertDialogPortal, Ma as AlertDialogTitle, Ta as AlertDialogTrigger, Ra as AlertTitle, ta as Avatar, ia as AvatarBadge, ra as AvatarFallback, aa as AvatarGroup, oa as AvatarGroupCount, na as AvatarImage, Ha as Badge, Gt as BaseInput, Ua as Breadcrumb, Ya as BreadcrumbEllipsis, Ga as BreadcrumbItem, Ka as BreadcrumbLink, Wa as BreadcrumbList, qa as BreadcrumbPage, Ja as BreadcrumbSeparator, F as Button, Nt as Calendar, Pt as CalendarDayButton, mn as Card, vn as CardAction, yn as CardContent, _n as CardDescription, bn as CardFooter, hn as CardHeader, gn as CardTitle, Cn as Carousel, wn as CarouselContent, Tn as CarouselItem, Dn as CarouselNext, En as CarouselPrevious, bt as ChangeDialog, $a as ChartContainer, ro as ChartLegend, io as ChartLegendContent, eo as ChartStyle, to as ChartTooltip, no as ChartTooltipContent, oo as Checkbox, so as Combobox, So as ComboboxChip, xo as ComboboxChips, Co as ComboboxChipsInput, vo as ComboboxCollection, po as ComboboxContent, yo as ComboboxEmpty, go as ComboboxGroup, fo as ComboboxInput, ho as ComboboxItem, _o as ComboboxLabel, mo as ComboboxList, bo as ComboboxSeparator, lo as ComboboxTrigger, co as ComboboxValue, Gi as Command, Ki as CommandDialog, Yi as CommandEmpty, Xi as CommandGroup, qi as CommandInput, Qi as CommandItem, Ji as CommandList, Zi as CommandSeparator, $i as CommandShortcut, rr as ContextMenu, pr as ContextMenuCheckboxItem, lr as ContextMenuContent, ar as ContextMenuGroup, ur as ContextMenuItem, hr as ContextMenuLabel, or as ContextMenuPortal, cr as ContextMenuRadioGroup, mr as ContextMenuRadioItem, gr as ContextMenuSeparator, _r as ContextMenuShortcut, sr as ContextMenuSub, fr as ContextMenuSubContent, dr as ContextMenuSubTrigger, ir as ContextMenuTrigger, Qn as CrudEmptyTablePreview, Ii as CrudPage, nr as CrudTable, vr as CrudTableBodyRow, yr as CrudTableCard, br as CrudTableHeader, xr as CrudTableHeaderRows, Pi as CrudTablePagination, Fi as CrudTableRowActionsMenu, Wt as DateField, Ht as DateInput, qt as DateTimeField, Kt as DateTimeInput, xt as DeleteDialog, I as Dialog, pt as DialogClose, ht as DialogContent, yt as DialogDescription, _t as DialogFooter, gt as DialogHeader, mt as DialogOverlay, ft as DialogPortal, vt as DialogTitle, dt as DialogTrigger, To as DirectionProvider, Do as Drawer, Ao as DrawerClose, Mo as DrawerContent, Io as DrawerDescription, Po as DrawerFooter, No as DrawerHeader, jo as DrawerOverlay, ko as DrawerPortal, Fo as DrawerTitle, Oo as DrawerTrigger, kr as DropdownMenu, Pr as DropdownMenuCheckboxItem, Mr as DropdownMenuContent, Nr as DropdownMenuGroup, B as DropdownMenuItem, Lr as DropdownMenuLabel, Ar as DropdownMenuPortal, Fr as DropdownMenuRadioGroup, Ir as DropdownMenuRadioItem, Rr as DropdownMenuSeparator, zr as DropdownMenuShortcut, Br as DropdownMenuSub, Hr as DropdownMenuSubContent, Vr as DropdownMenuSubTrigger, jr as DropdownMenuTrigger, ut as DynamicListContainer, Gn as Empty, Zn as EmptyContent, Xn as EmptyDescription, Kn as EmptyHeader, Jn as EmptyMedia, Yn as EmptyTitle, Vo as Field, Ho as FieldContent, Go as FieldDescription, qo as FieldError, zo as FieldGroup, Uo as FieldLabel, Ro as FieldLegend, Ko as FieldSeparator, Lo as FieldSet, Wo as FieldTitle, Yt as FieldsSection, R as FormField, z as Input, Xt as InputField, Li as InputGroup, zi as InputGroupAddon, Vi as InputGroupButton, Ui as InputGroupInput, Hi as InputGroupText, Wi as InputGroupTextarea, Ut as Label, Pn as Lightbox, Ca as Loading, Qt as NumberField, Zt as NumberInput, Sr as Pagination, Cr as PaginationContent, Or as PaginationEllipsis, wr as PaginationItem, Tr as PaginationLink, Dr as PaginationNext, Er as PaginationPrevious, $t as PasswordField, en as PhoneField, Ft as Popover, Rt as PopoverAnchor, Lt as PopoverContent, Vt as PopoverDescription, zt as PopoverHeader, Bt as PopoverTitle, It as PopoverTrigger, ot as ProtectedRoute, lt as SaveButton, Jo as ScrollArea, Yo as ScrollBar, In as SearchInput, ea as SearchableSelect, tn as Select, on as SelectContent, pn as SelectField, nn as SelectGroup, fn as SelectInput, cn as SelectItem, sn as SelectLabel, dn as SelectScrollDownButton, un as SelectScrollUpButton, ln as SelectSeparator, an as SelectTrigger, rn as SelectValue, L as Separator, Gr as Sheet, qr as SheetClose, Xr as SheetContent, ei as SheetDescription, Qr as SheetFooter, Zr as SheetHeader, $r as SheetTitle, Kr as SheetTrigger, sa as SideBarCompanyData, fa as SideBarMainMenu, _a as SideBarSecondaryMenu, va as SideBarUserData, mi as Sidebar, Si as SidebarContent, ba as SidebarContext, bi as SidebarFooter, Ci as SidebarGroup, Ti as SidebarGroupAction, Ei as SidebarGroupContent, wi as SidebarGroupLabel, yi as SidebarHeader, vi as SidebarInput, _i as SidebarInset, ca as SidebarLogo, H as SidebarMenu, Oi as SidebarMenuAction, ki as SidebarMenuBadge, W as SidebarMenuButton, U as SidebarMenuItem, Ai as SidebarMenuSkeleton, ji as SidebarMenuSub, Ni as SidebarMenuSubButton, Mi as SidebarMenuSubItem, pi as SidebarProvider, gi as SidebarRail, xi as SidebarSeparator, hi as SidebarTrigger, ti as Skeleton, kn as StorageFileField, Zo as Switch, Ln as Table, zn as TableBody, Wn as TableCaption, Un as TableCell, Bn as TableFooter, Hn as TableHead, Rn as TableHeader, Vn as TableRow, Qo as Tabs, ns as TabsContent, es as TabsList, ts as TabsTrigger, Mn as TextAreaField, jn as TextAreaInput, Nn as TextField, An as Textarea, ma as ThemeProvider, ga as ThemeToggle, Jt as TitleSeparator, Xo as Toaster, is as Toggle, os as ToggleGroup, ss as ToggleGroupItem, ri as Tooltip, ai as TooltipContent, ni as TooltipProvider, ii as TooltipTrigger, st as YusrBusBackground, Sa as YusrSideBar, ya as YusrSideBarMainMenu, Fn as ZoomableImage, Va as badgeVariants, ct as buttonVariants, P as cn, hs as createGenericDialogSlice, kc as createGenericEntitySlice, On as isPDF, ms as setupAuthListeners, $o as tabsListVariants, rs as toggleVariants, Sn as useCarousel, wo as useComboboxAnchor, cs as useDialog, Eo as useDirection, ls as useDynamicList, ds as useEntityForm, us as useFormValidation, Wr as useIsMobile, fs as useLightBox, V as useSidebar, xa as useSidebarContext, ps as useStorageFile, ha as useTheme };
|