@carlonicora/nextjs-jsonapi 1.67.0 → 1.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BlockNoteEditor-TIX3GDVZ.mjs → BlockNoteEditor-6FDECIS2.mjs} +4 -4
- package/dist/{BlockNoteEditor-QHWPE3BJ.js → BlockNoteEditor-DXHROT4C.js} +14 -14
- package/dist/{BlockNoteEditor-QHWPE3BJ.js.map → BlockNoteEditor-DXHROT4C.js.map} +1 -1
- package/dist/billing/index.js +346 -346
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-CJY63D6U.js → chunk-37KYO2UD.js} +9 -1
- package/dist/chunk-37KYO2UD.js.map +1 -0
- package/dist/{chunk-3BWYWS3A.js → chunk-ELTHSXBI.js} +622 -622
- package/dist/{chunk-3BWYWS3A.js.map → chunk-ELTHSXBI.js.map} +1 -1
- package/dist/{chunk-WWP32QYC.mjs → chunk-H4ZS3R76.mjs} +5 -5
- package/dist/chunk-H4ZS3R76.mjs.map +1 -0
- package/dist/{chunk-RIG2BEXJ.mjs → chunk-IOMDNRX5.mjs} +9 -1
- package/dist/{chunk-RIG2BEXJ.mjs.map → chunk-IOMDNRX5.mjs.map} +1 -1
- package/dist/{chunk-KFIQTY4O.js → chunk-WOJIRXIP.js} +11 -11
- package/dist/{chunk-KFIQTY4O.js.map → chunk-WOJIRXIP.js.map} +1 -1
- package/dist/{chunk-ZYAAJMZZ.mjs → chunk-WVTBEVAL.mjs} +2 -2
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.js +4 -4
- package/dist/components/index.mjs +3 -3
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/dist/{s3.service-DLf_a0xS.d.mts → s3.service-CHOTwfWA.d.mts} +4 -0
- package/dist/{s3.service-Cg5TmbU_.d.ts → s3.service-N1g0piXD.d.ts} +4 -0
- package/dist/server/index.d.mts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
- package/src/features/user/components/details/UserContent.tsx +1 -1
- package/src/features/user/data/user.service.ts +9 -0
- package/dist/chunk-CJY63D6U.js.map +0 -1
- package/dist/chunk-WWP32QYC.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-TIX3GDVZ.mjs.map → BlockNoteEditor-6FDECIS2.mjs.map} +0 -0
- /package/dist/{chunk-ZYAAJMZZ.mjs.map → chunk-WVTBEVAL.mjs.map} +0 -0
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkWOJIRXIPjs = require('./chunk-WOJIRXIP.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
@@ -53,7 +53,7 @@ var _chunkKFIQTY4Ojs = require('./chunk-KFIQTY4O.js');
|
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
var
|
|
56
|
+
var _chunk37KYO2UDjs = require('./chunk-37KYO2UD.js');
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
var _chunk3EPNHTMHjs = require('./chunk-3EPNHTMH.js');
|
|
@@ -70,7 +70,7 @@ function Accordion({ className, ...props }) {
|
|
|
70
70
|
_accordion.Accordion.Root,
|
|
71
71
|
{
|
|
72
72
|
"data-slot": "accordion",
|
|
73
|
-
className:
|
|
73
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "overflow-hidden rounded-md border flex w-full flex-col", className),
|
|
74
74
|
...props
|
|
75
75
|
}
|
|
76
76
|
);
|
|
@@ -81,7 +81,7 @@ function AccordionItem({ className, ...props }) {
|
|
|
81
81
|
_accordion.Accordion.Item,
|
|
82
82
|
{
|
|
83
83
|
"data-slot": "accordion-item",
|
|
84
|
-
className:
|
|
84
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "data-open:bg-muted/50 not-last:border-b", className),
|
|
85
85
|
...props
|
|
86
86
|
}
|
|
87
87
|
);
|
|
@@ -92,7 +92,7 @@ function AccordionTrigger({ className, children, ...props }) {
|
|
|
92
92
|
_accordion.Accordion.Trigger,
|
|
93
93
|
{
|
|
94
94
|
"data-slot": "accordion-trigger",
|
|
95
|
-
className:
|
|
95
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
96
96
|
"**:data-[slot=accordion-trigger-icon]:text-muted-foreground gap-6 p-2 text-left text-xs/relaxed font-medium hover:underline **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 group/accordion-trigger relative flex flex-1 items-start justify-between border border-transparent transition-all outline-none disabled:pointer-events-none disabled:opacity-50",
|
|
97
97
|
className
|
|
98
98
|
),
|
|
@@ -128,7 +128,7 @@ function AccordionContent({ className, children, ...props }) {
|
|
|
128
128
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
129
129
|
"div",
|
|
130
130
|
{
|
|
131
|
-
className:
|
|
131
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
132
132
|
"pt-0 pb-4 [&_a]:hover:text-foreground h-(--accordion-panel-height) data-ending-style:h-0 data-starting-style:h-0 [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4",
|
|
133
133
|
className
|
|
134
134
|
),
|
|
@@ -158,7 +158,7 @@ var alertVariants = _classvarianceauthority.cva.call(void 0,
|
|
|
158
158
|
}
|
|
159
159
|
);
|
|
160
160
|
function Alert({ className, variant, ...props }) {
|
|
161
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "alert", role: "alert", className:
|
|
161
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "alert", role: "alert", className: _chunk37KYO2UDjs.cn.call(void 0, alertVariants({ variant }), className), ...props });
|
|
162
162
|
}
|
|
163
163
|
_chunk7QVYU63Ejs.__name.call(void 0, Alert, "Alert");
|
|
164
164
|
function AlertTitle({ className, ...props }) {
|
|
@@ -166,7 +166,7 @@ function AlertTitle({ className, ...props }) {
|
|
|
166
166
|
"div",
|
|
167
167
|
{
|
|
168
168
|
"data-slot": "alert-title",
|
|
169
|
-
className:
|
|
169
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
170
170
|
"font-medium group-has-[>svg]/alert:col-start-2 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3",
|
|
171
171
|
className
|
|
172
172
|
),
|
|
@@ -180,7 +180,7 @@ function AlertDescription({ className, ...props }) {
|
|
|
180
180
|
"div",
|
|
181
181
|
{
|
|
182
182
|
"data-slot": "alert-description",
|
|
183
|
-
className:
|
|
183
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
184
184
|
"text-muted-foreground text-xs/relaxed text-balance md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3",
|
|
185
185
|
className
|
|
186
186
|
),
|
|
@@ -190,7 +190,7 @@ function AlertDescription({ className, ...props }) {
|
|
|
190
190
|
}
|
|
191
191
|
_chunk7QVYU63Ejs.__name.call(void 0, AlertDescription, "AlertDescription");
|
|
192
192
|
function AlertAction({ className, ...props }) {
|
|
193
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "alert-action", className:
|
|
193
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "alert-action", className: _chunk37KYO2UDjs.cn.call(void 0, "absolute top-1.5 right-2", className), ...props });
|
|
194
194
|
}
|
|
195
195
|
_chunk7QVYU63Ejs.__name.call(void 0, AlertAction, "AlertAction");
|
|
196
196
|
|
|
@@ -236,7 +236,7 @@ function Button({
|
|
|
236
236
|
size = "default",
|
|
237
237
|
...props
|
|
238
238
|
}) {
|
|
239
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _button.Button, { "data-slot": "button", className:
|
|
239
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _button.Button, { "data-slot": "button", className: _chunk37KYO2UDjs.cn.call(void 0, buttonVariants({ variant, size, className })), ...props });
|
|
240
240
|
}
|
|
241
241
|
_chunk7QVYU63Ejs.__name.call(void 0, Button, "Button");
|
|
242
242
|
|
|
@@ -259,7 +259,7 @@ function AlertDialogOverlay({ className, ...props }) {
|
|
|
259
259
|
_alertdialog.AlertDialog.Backdrop,
|
|
260
260
|
{
|
|
261
261
|
"data-slot": "alert-dialog-overlay",
|
|
262
|
-
className:
|
|
262
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
263
263
|
"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 isolate z-50",
|
|
264
264
|
className
|
|
265
265
|
),
|
|
@@ -280,7 +280,7 @@ function AlertDialogContent({
|
|
|
280
280
|
{
|
|
281
281
|
"data-slot": "alert-dialog-content",
|
|
282
282
|
"data-size": size,
|
|
283
|
-
className:
|
|
283
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
284
284
|
"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-3 rounded-xl p-4 ring-1 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 outline-none",
|
|
285
285
|
className
|
|
286
286
|
),
|
|
@@ -295,7 +295,7 @@ function AlertDialogHeader({ className, ...props }) {
|
|
|
295
295
|
"div",
|
|
296
296
|
{
|
|
297
297
|
"data-slot": "alert-dialog-header",
|
|
298
|
-
className:
|
|
298
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
299
299
|
"grid grid-rows-[auto_1fr] place-items-center gap-1 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-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",
|
|
300
300
|
className
|
|
301
301
|
),
|
|
@@ -309,7 +309,7 @@ function AlertDialogFooter({ className, ...props }) {
|
|
|
309
309
|
"div",
|
|
310
310
|
{
|
|
311
311
|
"data-slot": "alert-dialog-footer",
|
|
312
|
-
className:
|
|
312
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
313
313
|
"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",
|
|
314
314
|
className
|
|
315
315
|
),
|
|
@@ -323,7 +323,7 @@ function AlertDialogMedia({ className, ...props }) {
|
|
|
323
323
|
"div",
|
|
324
324
|
{
|
|
325
325
|
"data-slot": "alert-dialog-media",
|
|
326
|
-
className:
|
|
326
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
327
327
|
"bg-muted mb-2 inline-flex size-8 items-center justify-center rounded-md sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-4",
|
|
328
328
|
className
|
|
329
329
|
),
|
|
@@ -337,7 +337,7 @@ function AlertDialogTitle({ className, ...props }) {
|
|
|
337
337
|
_alertdialog.AlertDialog.Title,
|
|
338
338
|
{
|
|
339
339
|
"data-slot": "alert-dialog-title",
|
|
340
|
-
className:
|
|
340
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
341
341
|
"text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",
|
|
342
342
|
className
|
|
343
343
|
),
|
|
@@ -354,7 +354,7 @@ function AlertDialogDescription({
|
|
|
354
354
|
_alertdialog.AlertDialog.Description,
|
|
355
355
|
{
|
|
356
356
|
"data-slot": "alert-dialog-description",
|
|
357
|
-
className:
|
|
357
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
358
358
|
"text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3",
|
|
359
359
|
className
|
|
360
360
|
),
|
|
@@ -364,7 +364,7 @@ function AlertDialogDescription({
|
|
|
364
364
|
}
|
|
365
365
|
_chunk7QVYU63Ejs.__name.call(void 0, AlertDialogDescription, "AlertDialogDescription");
|
|
366
366
|
function AlertDialogAction({ className, ...props }) {
|
|
367
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { "data-slot": "alert-dialog-action", className:
|
|
367
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { "data-slot": "alert-dialog-action", className: _chunk37KYO2UDjs.cn.call(void 0, className), ...props });
|
|
368
368
|
}
|
|
369
369
|
_chunk7QVYU63Ejs.__name.call(void 0, AlertDialogAction, "AlertDialogAction");
|
|
370
370
|
function AlertDialogCancel({
|
|
@@ -377,7 +377,7 @@ function AlertDialogCancel({
|
|
|
377
377
|
_alertdialog.AlertDialog.Close,
|
|
378
378
|
{
|
|
379
379
|
"data-slot": "alert-dialog-cancel",
|
|
380
|
-
className:
|
|
380
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, className),
|
|
381
381
|
render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant, size }),
|
|
382
382
|
...props
|
|
383
383
|
}
|
|
@@ -398,7 +398,7 @@ function Avatar({
|
|
|
398
398
|
{
|
|
399
399
|
"data-slot": "avatar",
|
|
400
400
|
"data-size": size,
|
|
401
|
-
className:
|
|
401
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
402
402
|
"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",
|
|
403
403
|
className
|
|
404
404
|
),
|
|
@@ -412,7 +412,7 @@ function AvatarImage({ className, ...props }) {
|
|
|
412
412
|
_avatar.Avatar.Image,
|
|
413
413
|
{
|
|
414
414
|
"data-slot": "avatar-image",
|
|
415
|
-
className:
|
|
415
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "rounded-full aspect-square size-full object-cover", className),
|
|
416
416
|
...props
|
|
417
417
|
}
|
|
418
418
|
);
|
|
@@ -423,7 +423,7 @@ function AvatarFallback({ className, ...props }) {
|
|
|
423
423
|
_avatar.Avatar.Fallback,
|
|
424
424
|
{
|
|
425
425
|
"data-slot": "avatar-fallback",
|
|
426
|
-
className:
|
|
426
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
427
427
|
"bg-muted text-muted-foreground rounded-full flex size-full items-center justify-center text-sm group-data-[size=sm]/avatar:text-xs",
|
|
428
428
|
className
|
|
429
429
|
),
|
|
@@ -437,7 +437,7 @@ function AvatarBadge({ className, ...props }) {
|
|
|
437
437
|
"span",
|
|
438
438
|
{
|
|
439
439
|
"data-slot": "avatar-badge",
|
|
440
|
-
className:
|
|
440
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
441
441
|
"bg-primary text-primary-foreground ring-background absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-blend-color ring-2 select-none",
|
|
442
442
|
"group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden",
|
|
443
443
|
"group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2",
|
|
@@ -454,7 +454,7 @@ function AvatarGroup({ className, ...props }) {
|
|
|
454
454
|
"div",
|
|
455
455
|
{
|
|
456
456
|
"data-slot": "avatar-group",
|
|
457
|
-
className:
|
|
457
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
458
458
|
"*:data-[slot=avatar]:ring-background group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2",
|
|
459
459
|
className
|
|
460
460
|
),
|
|
@@ -468,7 +468,7 @@ function AvatarGroupCount({ className, ...props }) {
|
|
|
468
468
|
"div",
|
|
469
469
|
{
|
|
470
470
|
"data-slot": "avatar-group-count",
|
|
471
|
-
className:
|
|
471
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
472
472
|
"bg-muted text-muted-foreground size-8 rounded-full text-xs/relaxed 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",
|
|
473
473
|
className
|
|
474
474
|
),
|
|
@@ -510,7 +510,7 @@ function Badge({
|
|
|
510
510
|
defaultTagName: "span",
|
|
511
511
|
props: _mergeprops.mergeProps.call(void 0,
|
|
512
512
|
{
|
|
513
|
-
className:
|
|
513
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, badgeVariants({ className, variant }))
|
|
514
514
|
},
|
|
515
515
|
props
|
|
516
516
|
),
|
|
@@ -529,7 +529,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, Badge, "Badge");
|
|
|
529
529
|
|
|
530
530
|
|
|
531
531
|
function Breadcrumb({ className, ...props }) {
|
|
532
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", className:
|
|
532
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", className: _chunk37KYO2UDjs.cn.call(void 0, className), ...props });
|
|
533
533
|
}
|
|
534
534
|
_chunk7QVYU63Ejs.__name.call(void 0, Breadcrumb, "Breadcrumb");
|
|
535
535
|
function BreadcrumbList({ className, ...props }) {
|
|
@@ -537,14 +537,14 @@ function BreadcrumbList({ className, ...props }) {
|
|
|
537
537
|
"ol",
|
|
538
538
|
{
|
|
539
539
|
"data-slot": "breadcrumb-list",
|
|
540
|
-
className:
|
|
540
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "text-muted-foreground gap-1.5 text-xs/relaxed flex flex-wrap items-center break-words", className),
|
|
541
541
|
...props
|
|
542
542
|
}
|
|
543
543
|
);
|
|
544
544
|
}
|
|
545
545
|
_chunk7QVYU63Ejs.__name.call(void 0, BreadcrumbList, "BreadcrumbList");
|
|
546
546
|
function BreadcrumbItem({ className, ...props }) {
|
|
547
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-slot": "breadcrumb-item", className:
|
|
547
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-slot": "breadcrumb-item", className: _chunk37KYO2UDjs.cn.call(void 0, "gap-1 inline-flex items-center", className), ...props });
|
|
548
548
|
}
|
|
549
549
|
_chunk7QVYU63Ejs.__name.call(void 0, BreadcrumbItem, "BreadcrumbItem");
|
|
550
550
|
function BreadcrumbLink({ className, render, ...props }) {
|
|
@@ -552,7 +552,7 @@ function BreadcrumbLink({ className, render, ...props }) {
|
|
|
552
552
|
defaultTagName: "a",
|
|
553
553
|
props: _mergeprops.mergeProps.call(void 0,
|
|
554
554
|
{
|
|
555
|
-
className:
|
|
555
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "hover:text-foreground transition-colors", className)
|
|
556
556
|
},
|
|
557
557
|
props
|
|
558
558
|
),
|
|
@@ -571,7 +571,7 @@ function BreadcrumbPage({ className, ...props }) {
|
|
|
571
571
|
role: "link",
|
|
572
572
|
"aria-disabled": "true",
|
|
573
573
|
"aria-current": "page",
|
|
574
|
-
className:
|
|
574
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "text-foreground font-normal", className),
|
|
575
575
|
...props
|
|
576
576
|
}
|
|
577
577
|
);
|
|
@@ -584,7 +584,7 @@ function BreadcrumbSeparator({ children, className, ...props }) {
|
|
|
584
584
|
"data-slot": "breadcrumb-separator",
|
|
585
585
|
role: "presentation",
|
|
586
586
|
"aria-hidden": "true",
|
|
587
|
-
className:
|
|
587
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "[&>svg]:size-3.5", className),
|
|
588
588
|
...props,
|
|
589
589
|
children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, {})))
|
|
590
590
|
}
|
|
@@ -598,7 +598,7 @@ function BreadcrumbEllipsis({ className, ...props }) {
|
|
|
598
598
|
"data-slot": "breadcrumb-ellipsis",
|
|
599
599
|
role: "presentation",
|
|
600
600
|
"aria-hidden": "true",
|
|
601
|
-
className:
|
|
601
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "size-4 [&>svg]:size-3.5 flex items-center justify-center", className),
|
|
602
602
|
...props,
|
|
603
603
|
children: [
|
|
604
604
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.MoreHorizontalIcon, {}),
|
|
@@ -629,7 +629,7 @@ function Calendar({
|
|
|
629
629
|
_reactdaypicker.DayPicker,
|
|
630
630
|
{
|
|
631
631
|
showOutsideDays,
|
|
632
|
-
className:
|
|
632
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
633
633
|
"p-3 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(6)] bg-background group/calendar [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
|
|
634
634
|
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
635
635
|
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
@@ -641,82 +641,82 @@ function Calendar({
|
|
|
641
641
|
...formatters
|
|
642
642
|
},
|
|
643
643
|
classNames: {
|
|
644
|
-
root:
|
|
645
|
-
months:
|
|
646
|
-
month:
|
|
647
|
-
nav:
|
|
648
|
-
button_previous:
|
|
644
|
+
root: _chunk37KYO2UDjs.cn.call(void 0, "w-fit", defaultClassNames.root),
|
|
645
|
+
months: _chunk37KYO2UDjs.cn.call(void 0, "flex gap-4 flex-col md:flex-row relative", defaultClassNames.months),
|
|
646
|
+
month: _chunk37KYO2UDjs.cn.call(void 0, "flex flex-col w-full gap-4", defaultClassNames.month),
|
|
647
|
+
nav: _chunk37KYO2UDjs.cn.call(void 0, "flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between", defaultClassNames.nav),
|
|
648
|
+
button_previous: _chunk37KYO2UDjs.cn.call(void 0,
|
|
649
649
|
buttonVariants({ variant: buttonVariant }),
|
|
650
650
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
651
651
|
defaultClassNames.button_previous
|
|
652
652
|
),
|
|
653
|
-
button_next:
|
|
653
|
+
button_next: _chunk37KYO2UDjs.cn.call(void 0,
|
|
654
654
|
buttonVariants({ variant: buttonVariant }),
|
|
655
655
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
656
656
|
defaultClassNames.button_next
|
|
657
657
|
),
|
|
658
|
-
month_caption:
|
|
658
|
+
month_caption: _chunk37KYO2UDjs.cn.call(void 0,
|
|
659
659
|
"flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
|
|
660
660
|
defaultClassNames.month_caption
|
|
661
661
|
),
|
|
662
|
-
dropdowns:
|
|
662
|
+
dropdowns: _chunk37KYO2UDjs.cn.call(void 0,
|
|
663
663
|
"w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
|
|
664
664
|
defaultClassNames.dropdowns
|
|
665
665
|
),
|
|
666
|
-
dropdown_root:
|
|
666
|
+
dropdown_root: _chunk37KYO2UDjs.cn.call(void 0,
|
|
667
667
|
"relative cn-calendar-dropdown-root rounded-(--cell-radius)",
|
|
668
668
|
defaultClassNames.dropdown_root
|
|
669
669
|
),
|
|
670
|
-
dropdown:
|
|
671
|
-
caption_label:
|
|
670
|
+
dropdown: _chunk37KYO2UDjs.cn.call(void 0, "absolute bg-popover inset-0 opacity-0", defaultClassNames.dropdown),
|
|
671
|
+
caption_label: _chunk37KYO2UDjs.cn.call(void 0,
|
|
672
672
|
"select-none font-medium",
|
|
673
673
|
captionLayout === "label" ? "text-sm" : "cn-calendar-caption-label rounded-(--cell-radius) flex items-center gap-1 text-sm [&>svg]:text-muted-foreground [&>svg]:size-3.5",
|
|
674
674
|
defaultClassNames.caption_label
|
|
675
675
|
),
|
|
676
676
|
table: "w-full border-collapse",
|
|
677
|
-
weekdays:
|
|
678
|
-
weekday:
|
|
677
|
+
weekdays: _chunk37KYO2UDjs.cn.call(void 0, "flex", defaultClassNames.weekdays),
|
|
678
|
+
weekday: _chunk37KYO2UDjs.cn.call(void 0,
|
|
679
679
|
"text-muted-foreground rounded-(--cell-radius) flex-1 font-normal text-[0.8rem] select-none",
|
|
680
680
|
defaultClassNames.weekday
|
|
681
681
|
),
|
|
682
|
-
week:
|
|
683
|
-
week_number_header:
|
|
684
|
-
week_number:
|
|
685
|
-
day:
|
|
682
|
+
week: _chunk37KYO2UDjs.cn.call(void 0, "flex w-full mt-2", defaultClassNames.week),
|
|
683
|
+
week_number_header: _chunk37KYO2UDjs.cn.call(void 0, "select-none w-(--cell-size)", defaultClassNames.week_number_header),
|
|
684
|
+
week_number: _chunk37KYO2UDjs.cn.call(void 0, "text-[0.8rem] select-none text-muted-foreground", defaultClassNames.week_number),
|
|
685
|
+
day: _chunk37KYO2UDjs.cn.call(void 0,
|
|
686
686
|
"relative w-full rounded-(--cell-radius) h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-(--cell-radius) group/day aspect-square select-none",
|
|
687
687
|
props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)" : "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)",
|
|
688
688
|
defaultClassNames.day
|
|
689
689
|
),
|
|
690
|
-
range_start:
|
|
690
|
+
range_start: _chunk37KYO2UDjs.cn.call(void 0,
|
|
691
691
|
"rounded-l-(--cell-radius) bg-muted elative after:bg-muted after:absolute after:inset-y-0 after:w-4 after:right-0 -z-0 isolate",
|
|
692
692
|
defaultClassNames.range_start
|
|
693
693
|
),
|
|
694
|
-
range_middle:
|
|
695
|
-
range_end:
|
|
694
|
+
range_middle: _chunk37KYO2UDjs.cn.call(void 0, "rounded-none", defaultClassNames.range_middle),
|
|
695
|
+
range_end: _chunk37KYO2UDjs.cn.call(void 0,
|
|
696
696
|
"rounded-r-(--cell-radius) bg-muted relative after:bg-muted after:absolute after:inset-y-0 after:w-4 after:left-0 -z-0 isolate",
|
|
697
697
|
defaultClassNames.range_end
|
|
698
698
|
),
|
|
699
|
-
today:
|
|
699
|
+
today: _chunk37KYO2UDjs.cn.call(void 0,
|
|
700
700
|
"bg-muted text-foreground rounded-(--cell-radius) data-[selected=true]:rounded-none",
|
|
701
701
|
defaultClassNames.today
|
|
702
702
|
),
|
|
703
|
-
outside:
|
|
704
|
-
disabled:
|
|
705
|
-
hidden:
|
|
703
|
+
outside: _chunk37KYO2UDjs.cn.call(void 0, "text-muted-foreground aria-selected:text-muted-foreground", defaultClassNames.outside),
|
|
704
|
+
disabled: _chunk37KYO2UDjs.cn.call(void 0, "text-muted-foreground opacity-50", defaultClassNames.disabled),
|
|
705
|
+
hidden: _chunk37KYO2UDjs.cn.call(void 0, "invisible", defaultClassNames.hidden),
|
|
706
706
|
...classNames
|
|
707
707
|
},
|
|
708
708
|
components: {
|
|
709
709
|
Root: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className: className2, rootRef, ...props2 }) => {
|
|
710
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "calendar", ref: rootRef, className:
|
|
710
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "calendar", ref: rootRef, className: _chunk37KYO2UDjs.cn.call(void 0, className2), ...props2 });
|
|
711
711
|
}, "Root"),
|
|
712
712
|
Chevron: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className: className2, orientation, ...props2 }) => {
|
|
713
713
|
if (orientation === "left") {
|
|
714
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeftIcon, { className:
|
|
714
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeftIcon, { className: _chunk37KYO2UDjs.cn.call(void 0, "size-4", className2), ...props2 });
|
|
715
715
|
}
|
|
716
716
|
if (orientation === "right") {
|
|
717
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className:
|
|
717
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className: _chunk37KYO2UDjs.cn.call(void 0, "size-4", className2), ...props2 });
|
|
718
718
|
}
|
|
719
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className:
|
|
719
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: _chunk37KYO2UDjs.cn.call(void 0, "size-4", className2), ...props2 });
|
|
720
720
|
}, "Chevron"),
|
|
721
721
|
DayButton: CalendarDayButton,
|
|
722
722
|
WeekNumber: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ children, ...props2 }) => {
|
|
@@ -745,7 +745,7 @@ function CalendarDayButton({ className, day, modifiers, ...props }) {
|
|
|
745
745
|
"data-range-start": modifiers.range_start,
|
|
746
746
|
"data-range-end": modifiers.range_end,
|
|
747
747
|
"data-range-middle": modifiers.range_middle,
|
|
748
|
-
className:
|
|
748
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
749
749
|
"data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-foreground relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-r-(--cell-radius) data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-l-(--cell-radius) [&>span]:text-xs [&>span]:opacity-70",
|
|
750
750
|
defaultClassNames.day,
|
|
751
751
|
className
|
|
@@ -764,7 +764,7 @@ function Card({ className, size = "default", ...props }) {
|
|
|
764
764
|
{
|
|
765
765
|
"data-slot": "card",
|
|
766
766
|
"data-size": size,
|
|
767
|
-
className:
|
|
767
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
768
768
|
"ring-foreground/10 bg-card text-card-foreground gap-4 overflow-clip rounded-lg py-4 text-xs/relaxed ring-1 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg group/card flex flex-col",
|
|
769
769
|
className
|
|
770
770
|
),
|
|
@@ -778,7 +778,7 @@ function CardHeader({ className, ...props }) {
|
|
|
778
778
|
"div",
|
|
779
779
|
{
|
|
780
780
|
"data-slot": "card-header",
|
|
781
|
-
className:
|
|
781
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
782
782
|
"gap-1 rounded-t-lg 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]",
|
|
783
783
|
className
|
|
784
784
|
),
|
|
@@ -788,11 +788,11 @@ function CardHeader({ className, ...props }) {
|
|
|
788
788
|
}
|
|
789
789
|
_chunk7QVYU63Ejs.__name.call(void 0, CardHeader, "CardHeader");
|
|
790
790
|
function CardTitle({ className, ...props }) {
|
|
791
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-title", className:
|
|
791
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-title", className: _chunk37KYO2UDjs.cn.call(void 0, "text-sm font-medium", className), ...props });
|
|
792
792
|
}
|
|
793
793
|
_chunk7QVYU63Ejs.__name.call(void 0, CardTitle, "CardTitle");
|
|
794
794
|
function CardDescription({ className, ...props }) {
|
|
795
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-description", className:
|
|
795
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-description", className: _chunk37KYO2UDjs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className), ...props });
|
|
796
796
|
}
|
|
797
797
|
_chunk7QVYU63Ejs.__name.call(void 0, CardDescription, "CardDescription");
|
|
798
798
|
function CardAction({ className, ...props }) {
|
|
@@ -800,14 +800,14 @@ function CardAction({ className, ...props }) {
|
|
|
800
800
|
"div",
|
|
801
801
|
{
|
|
802
802
|
"data-slot": "card-action",
|
|
803
|
-
className:
|
|
803
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
|
|
804
804
|
...props
|
|
805
805
|
}
|
|
806
806
|
);
|
|
807
807
|
}
|
|
808
808
|
_chunk7QVYU63Ejs.__name.call(void 0, CardAction, "CardAction");
|
|
809
809
|
function CardContent({ className, ...props }) {
|
|
810
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-content", className:
|
|
810
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-content", className: _chunk37KYO2UDjs.cn.call(void 0, "px-4 group-data-[size=sm]/card:px-3", className), ...props });
|
|
811
811
|
}
|
|
812
812
|
_chunk7QVYU63Ejs.__name.call(void 0, CardContent, "CardContent");
|
|
813
813
|
function CardFooter({ className, ...props }) {
|
|
@@ -815,7 +815,7 @@ function CardFooter({ className, ...props }) {
|
|
|
815
815
|
"div",
|
|
816
816
|
{
|
|
817
817
|
"data-slot": "card-footer",
|
|
818
|
-
className:
|
|
818
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
819
819
|
"rounded-b-lg px-4 group-data-[size=sm]/card:px-3 [.border-t]:pt-4 group-data-[size=sm]/card:[.border-t]:pt-3 flex items-center",
|
|
820
820
|
className
|
|
821
821
|
),
|
|
@@ -910,7 +910,7 @@ function Carousel({
|
|
|
910
910
|
"div",
|
|
911
911
|
{
|
|
912
912
|
onKeyDownCapture: handleKeyDown,
|
|
913
|
-
className:
|
|
913
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "relative", className),
|
|
914
914
|
role: "region",
|
|
915
915
|
"aria-roledescription": "carousel",
|
|
916
916
|
"data-slot": "carousel",
|
|
@@ -924,7 +924,7 @@ function Carousel({
|
|
|
924
924
|
_chunk7QVYU63Ejs.__name.call(void 0, Carousel, "Carousel");
|
|
925
925
|
function CarouselContent({ className, ...props }) {
|
|
926
926
|
const { carouselRef, orientation } = useCarousel();
|
|
927
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: carouselRef, className: "overflow-hidden", "data-slot": "carousel-content", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
927
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: carouselRef, className: "overflow-hidden", "data-slot": "carousel-content", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk37KYO2UDjs.cn.call(void 0, "flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className), ...props }) });
|
|
928
928
|
}
|
|
929
929
|
_chunk7QVYU63Ejs.__name.call(void 0, CarouselContent, "CarouselContent");
|
|
930
930
|
function CarouselItem({ className, ...props }) {
|
|
@@ -935,7 +935,7 @@ function CarouselItem({ className, ...props }) {
|
|
|
935
935
|
role: "group",
|
|
936
936
|
"aria-roledescription": "slide",
|
|
937
937
|
"data-slot": "carousel-item",
|
|
938
|
-
className:
|
|
938
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "min-w-0 shrink-0 grow-0 basis-full", orientation === "horizontal" ? "pl-4" : "pt-4", className),
|
|
939
939
|
...props
|
|
940
940
|
}
|
|
941
941
|
);
|
|
@@ -954,7 +954,7 @@ function CarouselPrevious({
|
|
|
954
954
|
"data-slot": "carousel-previous",
|
|
955
955
|
variant,
|
|
956
956
|
size,
|
|
957
|
-
className:
|
|
957
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
958
958
|
"rounded-full absolute touch-manipulation",
|
|
959
959
|
orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
960
960
|
className
|
|
@@ -983,7 +983,7 @@ function CarouselNext({
|
|
|
983
983
|
"data-slot": "carousel-next",
|
|
984
984
|
variant,
|
|
985
985
|
size,
|
|
986
|
-
className:
|
|
986
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
987
987
|
"rounded-full absolute touch-manipulation",
|
|
988
988
|
orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
989
989
|
className
|
|
@@ -1028,7 +1028,7 @@ function ChartContainer({
|
|
|
1028
1028
|
{
|
|
1029
1029
|
"data-slot": "chart",
|
|
1030
1030
|
"data-chart": chartId,
|
|
1031
|
-
className:
|
|
1031
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1032
1032
|
"[&_.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",
|
|
1033
1033
|
className
|
|
1034
1034
|
),
|
|
@@ -1090,12 +1090,12 @@ function ChartTooltipContent({
|
|
|
1090
1090
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1091
1091
|
const value = !labelKey && typeof label === "string" ? _optionalChain([config, 'access', _17 => _17[label], 'optionalAccess', _18 => _18.label]) || label : _optionalChain([itemConfig, 'optionalAccess', _19 => _19.label]);
|
|
1092
1092
|
if (labelFormatter) {
|
|
1093
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1093
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk37KYO2UDjs.cn.call(void 0, "font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
1094
1094
|
}
|
|
1095
1095
|
if (!value) {
|
|
1096
1096
|
return null;
|
|
1097
1097
|
}
|
|
1098
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1098
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk37KYO2UDjs.cn.call(void 0, "font-medium", labelClassName), children: value });
|
|
1099
1099
|
}, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey]);
|
|
1100
1100
|
if (!active || !_optionalChain([payload, 'optionalAccess', _20 => _20.length])) {
|
|
1101
1101
|
return null;
|
|
@@ -1104,7 +1104,7 @@ function ChartTooltipContent({
|
|
|
1104
1104
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1105
1105
|
"div",
|
|
1106
1106
|
{
|
|
1107
|
-
className:
|
|
1107
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1108
1108
|
"border-border/50 bg-background gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs/relaxed shadow-xl grid min-w-[8rem] items-start",
|
|
1109
1109
|
className
|
|
1110
1110
|
),
|
|
@@ -1117,7 +1117,7 @@ function ChartTooltipContent({
|
|
|
1117
1117
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1118
1118
|
"div",
|
|
1119
1119
|
{
|
|
1120
|
-
className:
|
|
1120
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1121
1121
|
"[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
|
|
1122
1122
|
indicator === "dot" && "items-center"
|
|
1123
1123
|
),
|
|
@@ -1125,7 +1125,7 @@ function ChartTooltipContent({
|
|
|
1125
1125
|
_optionalChain([itemConfig, 'optionalAccess', _24 => _24.icon]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1126
1126
|
"div",
|
|
1127
1127
|
{
|
|
1128
|
-
className:
|
|
1128
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", {
|
|
1129
1129
|
"h-2.5 w-2.5": indicator === "dot",
|
|
1130
1130
|
"w-1": indicator === "line",
|
|
1131
1131
|
"w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
|
|
@@ -1140,7 +1140,7 @@ function ChartTooltipContent({
|
|
|
1140
1140
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1141
1141
|
"div",
|
|
1142
1142
|
{
|
|
1143
|
-
className:
|
|
1143
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1144
1144
|
"flex flex-1 justify-between leading-none",
|
|
1145
1145
|
nestLabel ? "items-end" : "items-center"
|
|
1146
1146
|
),
|
|
@@ -1175,13 +1175,13 @@ function ChartLegendContent({
|
|
|
1175
1175
|
if (!_optionalChain([payload, 'optionalAccess', _26 => _26.length])) {
|
|
1176
1176
|
return null;
|
|
1177
1177
|
}
|
|
1178
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1178
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk37KYO2UDjs.cn.call(void 0, "flex items-center justify-center gap-4", verticalAlign === "top" ? "pb-3" : "pt-3", className), children: payload.filter((item) => item.type !== "none").map((item) => {
|
|
1179
1179
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
1180
1180
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1181
1181
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1182
1182
|
"div",
|
|
1183
1183
|
{
|
|
1184
|
-
className:
|
|
1184
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),
|
|
1185
1185
|
children: [
|
|
1186
1186
|
_optionalChain([itemConfig, 'optionalAccess', _27 => _27.icon]) && !hideIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1187
1187
|
"div",
|
|
@@ -1224,7 +1224,7 @@ function Checkbox({ className, ...props }) {
|
|
|
1224
1224
|
_checkbox.Checkbox.Root,
|
|
1225
1225
|
{
|
|
1226
1226
|
"data-slot": "checkbox",
|
|
1227
|
-
className:
|
|
1227
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1228
1228
|
"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/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-[4px] border transition-shadow group-has-disabled/field:opacity-50 focus-visible:ring-[2px] aria-invalid:ring-[2px] peer relative shrink-0 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
1229
1229
|
className
|
|
1230
1230
|
),
|
|
@@ -1274,7 +1274,7 @@ function Input({ className, type, ...props }) {
|
|
|
1274
1274
|
{
|
|
1275
1275
|
type,
|
|
1276
1276
|
"data-slot": "input",
|
|
1277
|
-
className:
|
|
1277
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1278
1278
|
"bg-input/20 dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-7 rounded-md border px-2 py-0.5 text-sm transition-colors file:h-6 file:text-xs/relaxed file:font-medium focus-visible:ring-[2px] aria-invalid:ring-[2px] md:text-xs/relaxed file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
1279
1279
|
className
|
|
1280
1280
|
),
|
|
@@ -1291,7 +1291,7 @@ function Textarea({ className, ...props }) {
|
|
|
1291
1291
|
"textarea",
|
|
1292
1292
|
{
|
|
1293
1293
|
"data-slot": "textarea",
|
|
1294
|
-
className:
|
|
1294
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1295
1295
|
"border-input bg-input/20 dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 resize-none rounded-md border px-2 py-2 text-sm transition-colors focus-visible:ring-[2px] aria-invalid:ring-[2px] md:text-xs/relaxed placeholder:text-muted-foreground flex field-sizing-content min-h-16 w-full outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
1296
1296
|
className
|
|
1297
1297
|
),
|
|
@@ -1309,7 +1309,7 @@ function InputGroup({ className, ...props }) {
|
|
|
1309
1309
|
{
|
|
1310
1310
|
"data-slot": "input-group",
|
|
1311
1311
|
role: "group",
|
|
1312
|
-
className:
|
|
1312
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1313
1313
|
"border-input bg-input/20 dark:bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/30 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 h-7 rounded-md border transition-colors has-data-[align=block-end]:rounded-md has-data-[align=block-start]:rounded-md has-[[data-slot=input-group-control]:focus-visible]:ring-[2px] has-[[data-slot][aria-invalid=true]]:ring-[2px] has-[textarea]:rounded-md has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 [[data-slot=combobox-content]_&]:focus-within:border-inherit [[data-slot=combobox-content]_&]:focus-within:ring-0 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto",
|
|
1314
1314
|
className
|
|
1315
1315
|
),
|
|
@@ -1345,7 +1345,7 @@ function InputGroupAddon({
|
|
|
1345
1345
|
role: "group",
|
|
1346
1346
|
"data-slot": "input-group-addon",
|
|
1347
1347
|
"data-align": align,
|
|
1348
|
-
className:
|
|
1348
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, inputGroupAddonVariants({ align }), className),
|
|
1349
1349
|
onClick: (e) => {
|
|
1350
1350
|
if (e.target.closest("button")) {
|
|
1351
1351
|
return;
|
|
@@ -1383,7 +1383,7 @@ function InputGroupButton({
|
|
|
1383
1383
|
type,
|
|
1384
1384
|
"data-size": size,
|
|
1385
1385
|
variant,
|
|
1386
|
-
className:
|
|
1386
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, inputGroupButtonVariants({ size }), className),
|
|
1387
1387
|
...props
|
|
1388
1388
|
}
|
|
1389
1389
|
);
|
|
@@ -1393,7 +1393,7 @@ function InputGroupText({ className, ...props }) {
|
|
|
1393
1393
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1394
1394
|
"span",
|
|
1395
1395
|
{
|
|
1396
|
-
className:
|
|
1396
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1397
1397
|
"text-muted-foreground gap-2 text-xs/relaxed [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none",
|
|
1398
1398
|
className
|
|
1399
1399
|
),
|
|
@@ -1407,7 +1407,7 @@ function InputGroupInput({ className, ...props }) {
|
|
|
1407
1407
|
Input,
|
|
1408
1408
|
{
|
|
1409
1409
|
"data-slot": "input-group-control",
|
|
1410
|
-
className:
|
|
1410
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1411
1411
|
"rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent flex-1",
|
|
1412
1412
|
className
|
|
1413
1413
|
),
|
|
@@ -1421,7 +1421,7 @@ function InputGroupTextarea({ className, ...props }) {
|
|
|
1421
1421
|
Textarea,
|
|
1422
1422
|
{
|
|
1423
1423
|
"data-slot": "input-group-control",
|
|
1424
|
-
className:
|
|
1424
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1425
1425
|
"rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent flex-1 resize-none",
|
|
1426
1426
|
className
|
|
1427
1427
|
),
|
|
@@ -1444,7 +1444,7 @@ function ComboboxTrigger({ className, children, ...props }) {
|
|
|
1444
1444
|
_react2.Combobox.Trigger,
|
|
1445
1445
|
{
|
|
1446
1446
|
"data-slot": "combobox-trigger",
|
|
1447
|
-
className:
|
|
1447
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "[&_svg:not([class*='size-'])]:size-3.5", className),
|
|
1448
1448
|
...props,
|
|
1449
1449
|
children: [
|
|
1450
1450
|
children,
|
|
@@ -1460,7 +1460,7 @@ function ComboboxClear({ className, ...props }) {
|
|
|
1460
1460
|
{
|
|
1461
1461
|
"data-slot": "combobox-clear",
|
|
1462
1462
|
render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InputGroupButton, { variant: "ghost", size: "icon-xs" }),
|
|
1463
|
-
className:
|
|
1463
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, className),
|
|
1464
1464
|
...props,
|
|
1465
1465
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.XIcon, { className: "pointer-events-none" })
|
|
1466
1466
|
}
|
|
@@ -1475,7 +1475,7 @@ function ComboboxInput({
|
|
|
1475
1475
|
showClear = false,
|
|
1476
1476
|
...props
|
|
1477
1477
|
}) {
|
|
1478
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, InputGroup, { className:
|
|
1478
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, InputGroup, { className: _chunk37KYO2UDjs.cn.call(void 0, "w-auto", className), children: [
|
|
1479
1479
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.Combobox.Input, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InputGroupInput, { disabled }), ...props }),
|
|
1480
1480
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, InputGroupAddon, { align: "inline-end", children: [
|
|
1481
1481
|
showTrigger && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1518,7 +1518,7 @@ function ComboboxContent({
|
|
|
1518
1518
|
{
|
|
1519
1519
|
"data-slot": "combobox-content",
|
|
1520
1520
|
"data-chips": !!anchor,
|
|
1521
|
-
className:
|
|
1521
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1522
1522
|
"bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 *:data-[slot=input-group]:bg-input/20 dark:bg-popover max-h-72 min-w-32 overflow-hidden rounded-lg shadow-md ring-1 duration-100 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-7 *:data-[slot=input-group]:border-none *:data-[slot=input-group]:shadow-none group/combobox-content relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) data-[chips=true]:min-w-(--anchor-width)",
|
|
1523
1523
|
className
|
|
1524
1524
|
),
|
|
@@ -1534,7 +1534,7 @@ function ComboboxList({ className, ...props }) {
|
|
|
1534
1534
|
_react2.Combobox.List,
|
|
1535
1535
|
{
|
|
1536
1536
|
"data-slot": "combobox-list",
|
|
1537
|
-
className:
|
|
1537
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1538
1538
|
"no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto p-1 data-empty:p-0 overflow-y-auto overscroll-contain",
|
|
1539
1539
|
className
|
|
1540
1540
|
),
|
|
@@ -1548,7 +1548,7 @@ function ComboboxItem({ className, children, ...props }) {
|
|
|
1548
1548
|
_react2.Combobox.Item,
|
|
1549
1549
|
{
|
|
1550
1550
|
"data-slot": "combobox-item",
|
|
1551
|
-
className:
|
|
1551
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1552
1552
|
"data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3.5 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",
|
|
1553
1553
|
className
|
|
1554
1554
|
),
|
|
@@ -1568,7 +1568,7 @@ function ComboboxItem({ className, children, ...props }) {
|
|
|
1568
1568
|
}
|
|
1569
1569
|
_chunk7QVYU63Ejs.__name.call(void 0, ComboboxItem, "ComboboxItem");
|
|
1570
1570
|
function ComboboxGroup({ className, ...props }) {
|
|
1571
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.Combobox.Group, { "data-slot": "combobox-group", className:
|
|
1571
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.Combobox.Group, { "data-slot": "combobox-group", className: _chunk37KYO2UDjs.cn.call(void 0, className), ...props });
|
|
1572
1572
|
}
|
|
1573
1573
|
_chunk7QVYU63Ejs.__name.call(void 0, ComboboxGroup, "ComboboxGroup");
|
|
1574
1574
|
function ComboboxLabel({ className, ...props }) {
|
|
@@ -1576,7 +1576,7 @@ function ComboboxLabel({ className, ...props }) {
|
|
|
1576
1576
|
_react2.Combobox.GroupLabel,
|
|
1577
1577
|
{
|
|
1578
1578
|
"data-slot": "combobox-label",
|
|
1579
|
-
className:
|
|
1579
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs", className),
|
|
1580
1580
|
...props
|
|
1581
1581
|
}
|
|
1582
1582
|
);
|
|
@@ -1591,7 +1591,7 @@ function ComboboxEmpty({ className, ...props }) {
|
|
|
1591
1591
|
_react2.Combobox.Empty,
|
|
1592
1592
|
{
|
|
1593
1593
|
"data-slot": "combobox-empty",
|
|
1594
|
-
className:
|
|
1594
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1595
1595
|
"text-muted-foreground hidden w-full justify-center py-2 text-center text-xs/relaxed group-data-empty/combobox-content:flex",
|
|
1596
1596
|
className
|
|
1597
1597
|
),
|
|
@@ -1605,7 +1605,7 @@ function ComboboxSeparator({ className, ...props }) {
|
|
|
1605
1605
|
_react2.Combobox.Separator,
|
|
1606
1606
|
{
|
|
1607
1607
|
"data-slot": "combobox-separator",
|
|
1608
|
-
className:
|
|
1608
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
1609
1609
|
...props
|
|
1610
1610
|
}
|
|
1611
1611
|
);
|
|
@@ -1619,7 +1619,7 @@ function ComboboxChips({
|
|
|
1619
1619
|
_react2.Combobox.Chips,
|
|
1620
1620
|
{
|
|
1621
1621
|
"data-slot": "combobox-chips",
|
|
1622
|
-
className:
|
|
1622
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1623
1623
|
"bg-input/20 dark:bg-input/30 border-input focus-within:border-ring focus-within:ring-ring/30 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-7 flex-wrap items-center gap-1 rounded-md border bg-clip-padding px-2 py-0.5 text-xs/relaxed transition-colors focus-within:ring-[2px] has-aria-invalid:ring-[2px] has-data-[slot=combobox-chip]:px-1",
|
|
1624
1624
|
className
|
|
1625
1625
|
),
|
|
@@ -1638,7 +1638,7 @@ function ComboboxChip({
|
|
|
1638
1638
|
_react2.Combobox.Chip,
|
|
1639
1639
|
{
|
|
1640
1640
|
"data-slot": "combobox-chip",
|
|
1641
|
-
className:
|
|
1641
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1642
1642
|
"bg-muted-foreground/10 text-foreground flex h-[calc(--spacing(4.75))] w-fit items-center justify-center gap-1 rounded-[calc(var(--radius-sm)-2px)] px-1.5 text-xs/relaxed font-medium whitespace-nowrap has-data-[slot=combobox-chip-remove]:pr-0 has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-disabled:opacity-50",
|
|
1643
1643
|
className
|
|
1644
1644
|
),
|
|
@@ -1664,7 +1664,7 @@ function ComboboxChipsInput({ className, ...props }) {
|
|
|
1664
1664
|
_react2.Combobox.Input,
|
|
1665
1665
|
{
|
|
1666
1666
|
"data-slot": "combobox-chip-input",
|
|
1667
|
-
className:
|
|
1667
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "min-w-16 flex-1 outline-none", className),
|
|
1668
1668
|
...props
|
|
1669
1669
|
}
|
|
1670
1670
|
);
|
|
@@ -1703,7 +1703,7 @@ function DialogOverlay({ className, ...props }) {
|
|
|
1703
1703
|
_dialog.Dialog.Backdrop,
|
|
1704
1704
|
{
|
|
1705
1705
|
"data-slot": "dialog-overlay",
|
|
1706
|
-
className:
|
|
1706
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1707
1707
|
"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 isolate z-50",
|
|
1708
1708
|
className
|
|
1709
1709
|
),
|
|
@@ -1724,7 +1724,7 @@ function DialogContent({
|
|
|
1724
1724
|
_dialog.Dialog.Popup,
|
|
1725
1725
|
{
|
|
1726
1726
|
"data-slot": "dialog-content",
|
|
1727
|
-
className:
|
|
1727
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1728
1728
|
"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 gap-4 rounded-xl p-4 text-xs/relaxed ring-1 duration-100 fixed top-1/2 left-1/2 z-50 w-full max-w-lg -translate-x-1/2 -translate-y-1/2 outline-none",
|
|
1729
1729
|
className
|
|
1730
1730
|
),
|
|
@@ -1749,7 +1749,7 @@ function DialogContent({
|
|
|
1749
1749
|
}
|
|
1750
1750
|
_chunk7QVYU63Ejs.__name.call(void 0, DialogContent, "DialogContent");
|
|
1751
1751
|
function DialogHeader({ className, ...props }) {
|
|
1752
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "dialog-header", className:
|
|
1752
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "dialog-header", className: _chunk37KYO2UDjs.cn.call(void 0, "gap-1 flex flex-col", className), ...props });
|
|
1753
1753
|
}
|
|
1754
1754
|
_chunk7QVYU63Ejs.__name.call(void 0, DialogHeader, "DialogHeader");
|
|
1755
1755
|
function DialogFooter({
|
|
@@ -1762,7 +1762,7 @@ function DialogFooter({
|
|
|
1762
1762
|
"div",
|
|
1763
1763
|
{
|
|
1764
1764
|
"data-slot": "dialog-footer",
|
|
1765
|
-
className:
|
|
1765
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "gap-2 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
1766
1766
|
...props,
|
|
1767
1767
|
children: [
|
|
1768
1768
|
children,
|
|
@@ -1773,7 +1773,7 @@ function DialogFooter({
|
|
|
1773
1773
|
}
|
|
1774
1774
|
_chunk7QVYU63Ejs.__name.call(void 0, DialogFooter, "DialogFooter");
|
|
1775
1775
|
function DialogTitle({ className, ...props }) {
|
|
1776
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _dialog.Dialog.Title, { "data-slot": "dialog-title", className:
|
|
1776
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _dialog.Dialog.Title, { "data-slot": "dialog-title", className: _chunk37KYO2UDjs.cn.call(void 0, "text-sm font-medium", className), ...props });
|
|
1777
1777
|
}
|
|
1778
1778
|
_chunk7QVYU63Ejs.__name.call(void 0, DialogTitle, "DialogTitle");
|
|
1779
1779
|
function DialogDescription({ className, ...props }) {
|
|
@@ -1781,7 +1781,7 @@ function DialogDescription({ className, ...props }) {
|
|
|
1781
1781
|
_dialog.Dialog.Description,
|
|
1782
1782
|
{
|
|
1783
1783
|
"data-slot": "dialog-description",
|
|
1784
|
-
className:
|
|
1784
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1785
1785
|
"text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed *:[a]:underline *:[a]:underline-offset-3",
|
|
1786
1786
|
className
|
|
1787
1787
|
),
|
|
@@ -1799,7 +1799,7 @@ function Command({ className, ...props }) {
|
|
|
1799
1799
|
_cmdk.Command,
|
|
1800
1800
|
{
|
|
1801
1801
|
"data-slot": "command",
|
|
1802
|
-
className:
|
|
1802
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1803
1803
|
"bg-popover text-popover-foreground rounded-xl p-1 flex size-full flex-col overflow-hidden",
|
|
1804
1804
|
className
|
|
1805
1805
|
),
|
|
@@ -1821,7 +1821,7 @@ function CommandDialog({
|
|
|
1821
1821
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTitle, { children: title }),
|
|
1822
1822
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogDescription, { children: description })
|
|
1823
1823
|
] }),
|
|
1824
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogContent, { className:
|
|
1824
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogContent, { className: _chunk37KYO2UDjs.cn.call(void 0, "rounded-xl! p-0 overflow-hidden p-0", className), showCloseButton, children })
|
|
1825
1825
|
] });
|
|
1826
1826
|
}
|
|
1827
1827
|
_chunk7QVYU63Ejs.__name.call(void 0, CommandDialog, "CommandDialog");
|
|
@@ -1831,7 +1831,7 @@ function CommandInput({ className, ...props }) {
|
|
|
1831
1831
|
_cmdk.Command.Input,
|
|
1832
1832
|
{
|
|
1833
1833
|
"data-slot": "command-input",
|
|
1834
|
-
className:
|
|
1834
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1835
1835
|
"w-full text-xs/relaxed outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
1836
1836
|
className
|
|
1837
1837
|
),
|
|
@@ -1847,7 +1847,7 @@ function CommandList({ className, ...props }) {
|
|
|
1847
1847
|
_cmdk.Command.List,
|
|
1848
1848
|
{
|
|
1849
1849
|
"data-slot": "command-list",
|
|
1850
|
-
className:
|
|
1850
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "no-scrollbar max-h-72 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto", className),
|
|
1851
1851
|
...props
|
|
1852
1852
|
}
|
|
1853
1853
|
);
|
|
@@ -1858,7 +1858,7 @@ function CommandEmpty({ className, ...props }) {
|
|
|
1858
1858
|
_cmdk.Command.Empty,
|
|
1859
1859
|
{
|
|
1860
1860
|
"data-slot": "command-empty",
|
|
1861
|
-
className:
|
|
1861
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "py-6 text-center text-xs/relaxed", className),
|
|
1862
1862
|
...props
|
|
1863
1863
|
}
|
|
1864
1864
|
);
|
|
@@ -1869,7 +1869,7 @@ function CommandGroup({ className, ...props }) {
|
|
|
1869
1869
|
_cmdk.Command.Group,
|
|
1870
1870
|
{
|
|
1871
1871
|
"data-slot": "command-group",
|
|
1872
|
-
className:
|
|
1872
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1873
1873
|
"text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
|
|
1874
1874
|
className
|
|
1875
1875
|
),
|
|
@@ -1883,7 +1883,7 @@ function CommandSeparator({ className, ...props }) {
|
|
|
1883
1883
|
_cmdk.Command.Separator,
|
|
1884
1884
|
{
|
|
1885
1885
|
"data-slot": "command-separator",
|
|
1886
|
-
className:
|
|
1886
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
1887
1887
|
...props
|
|
1888
1888
|
}
|
|
1889
1889
|
);
|
|
@@ -1894,7 +1894,7 @@ function CommandItem({ className, children, ...props }) {
|
|
|
1894
1894
|
_cmdk.Command.Item,
|
|
1895
1895
|
{
|
|
1896
1896
|
"data-slot": "command-item",
|
|
1897
|
-
className:
|
|
1897
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1898
1898
|
"data-[selected=true]:bg-muted data-[selected=true]:text-foreground data-[selected=true]:*:[svg]:text-foreground relative flex min-h-7 cursor-default items-center gap-2 rounded-md px-2.5 py-1.5 text-xs/relaxed outline-hidden select-none [&_svg:not([class*='size-'])]:size-3.5 [[data-slot=dialog-content]_&]:rounded-md group/command-item data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
1899
1899
|
className
|
|
1900
1900
|
),
|
|
@@ -1912,7 +1912,7 @@ function CommandShortcut({ className, ...props }) {
|
|
|
1912
1912
|
"span",
|
|
1913
1913
|
{
|
|
1914
1914
|
"data-slot": "command-shortcut",
|
|
1915
|
-
className:
|
|
1915
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1916
1916
|
"text-muted-foreground group-data-[selected=true]/command-item:text-foreground ml-auto text-[0.625rem] tracking-widest",
|
|
1917
1917
|
className
|
|
1918
1918
|
),
|
|
@@ -1939,7 +1939,7 @@ function ContextMenuTrigger({ className, ...props }) {
|
|
|
1939
1939
|
_contextmenu.ContextMenu.Trigger,
|
|
1940
1940
|
{
|
|
1941
1941
|
"data-slot": "context-menu-trigger",
|
|
1942
|
-
className:
|
|
1942
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "select-none", className),
|
|
1943
1943
|
...props
|
|
1944
1944
|
}
|
|
1945
1945
|
);
|
|
@@ -1965,7 +1965,7 @@ function ContextMenuContent({
|
|
|
1965
1965
|
_contextmenu.ContextMenu.Popup,
|
|
1966
1966
|
{
|
|
1967
1967
|
"data-slot": "context-menu-content",
|
|
1968
|
-
className:
|
|
1968
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
1969
1969
|
"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100 z-50 max-h-(--available-height) origin-(--transform-origin) overflow-x-hidden overflow-y-auto outline-none",
|
|
1970
1970
|
className
|
|
1971
1971
|
),
|
|
@@ -1990,7 +1990,7 @@ function ContextMenuLabel({
|
|
|
1990
1990
|
{
|
|
1991
1991
|
"data-slot": "context-menu-label",
|
|
1992
1992
|
"data-inset": inset,
|
|
1993
|
-
className:
|
|
1993
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
|
|
1994
1994
|
...props
|
|
1995
1995
|
}
|
|
1996
1996
|
);
|
|
@@ -2008,7 +2008,7 @@ function ContextMenuItem({
|
|
|
2008
2008
|
"data-slot": "context-menu-item",
|
|
2009
2009
|
"data-inset": inset,
|
|
2010
2010
|
"data-variant": variant,
|
|
2011
|
-
className:
|
|
2011
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2012
2012
|
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3.5 group/context-menu-item relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
2013
2013
|
className
|
|
2014
2014
|
),
|
|
@@ -2032,7 +2032,7 @@ function ContextMenuSubTrigger({
|
|
|
2032
2032
|
{
|
|
2033
2033
|
"data-slot": "context-menu-sub-trigger",
|
|
2034
2034
|
"data-inset": inset,
|
|
2035
|
-
className:
|
|
2035
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2036
2036
|
"focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs [&_svg:not([class*='size-'])]:size-3.5 flex cursor-default items-center outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
2037
2037
|
className
|
|
2038
2038
|
),
|
|
@@ -2054,7 +2054,7 @@ function ContextMenuCheckboxItem({ className, children, checked, ...props }) {
|
|
|
2054
2054
|
_contextmenu.ContextMenu.CheckboxItem,
|
|
2055
2055
|
{
|
|
2056
2056
|
"data-slot": "context-menu-checkbox-item",
|
|
2057
|
-
className:
|
|
2057
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2058
2058
|
"focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground min-h-7 gap-2 rounded-md py-1.5 pr-8 pl-2 text-xs [&_svg:not([class*='size-'])]:size-3.5 relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
2059
2059
|
className
|
|
2060
2060
|
),
|
|
@@ -2077,7 +2077,7 @@ function ContextMenuRadioItem({ className, children, ...props }) {
|
|
|
2077
2077
|
_contextmenu.ContextMenu.RadioItem,
|
|
2078
2078
|
{
|
|
2079
2079
|
"data-slot": "context-menu-radio-item",
|
|
2080
|
-
className:
|
|
2080
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2081
2081
|
"focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground min-h-7 gap-2 rounded-md py-1.5 pr-8 pl-2 text-xs [&_svg:not([class*='size-'])]:size-3.5 relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
2082
2082
|
className
|
|
2083
2083
|
),
|
|
@@ -2095,7 +2095,7 @@ function ContextMenuSeparator({ className, ...props }) {
|
|
|
2095
2095
|
_contextmenu.ContextMenu.Separator,
|
|
2096
2096
|
{
|
|
2097
2097
|
"data-slot": "context-menu-separator",
|
|
2098
|
-
className:
|
|
2098
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
2099
2099
|
...props
|
|
2100
2100
|
}
|
|
2101
2101
|
);
|
|
@@ -2106,7 +2106,7 @@ function ContextMenuShortcut({ className, ...props }) {
|
|
|
2106
2106
|
"span",
|
|
2107
2107
|
{
|
|
2108
2108
|
"data-slot": "context-menu-shortcut",
|
|
2109
|
-
className:
|
|
2109
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2110
2110
|
"text-muted-foreground group-focus/context-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest",
|
|
2111
2111
|
className
|
|
2112
2112
|
),
|
|
@@ -2140,7 +2140,7 @@ function DrawerOverlay({ className, ...props }) {
|
|
|
2140
2140
|
_vaul.Drawer.Overlay,
|
|
2141
2141
|
{
|
|
2142
2142
|
"data-slot": "drawer-overlay",
|
|
2143
|
-
className:
|
|
2143
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2144
2144
|
"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50",
|
|
2145
2145
|
className
|
|
2146
2146
|
),
|
|
@@ -2156,7 +2156,7 @@ function DrawerContent({ className, children, ...props }) {
|
|
|
2156
2156
|
_vaul.Drawer.Content,
|
|
2157
2157
|
{
|
|
2158
2158
|
"data-slot": "drawer-content",
|
|
2159
|
-
className:
|
|
2159
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2160
2160
|
"before:bg-background relative flex h-auto flex-col bg-transparent p-2 text-xs/relaxed before:absolute before:inset-2 before:-z-10 before:rounded-xl 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=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 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=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm group/drawer-content fixed z-50",
|
|
2161
2161
|
className
|
|
2162
2162
|
),
|
|
@@ -2175,7 +2175,7 @@ function DrawerHeader({ className, ...props }) {
|
|
|
2175
2175
|
"div",
|
|
2176
2176
|
{
|
|
2177
2177
|
"data-slot": "drawer-header",
|
|
2178
|
-
className:
|
|
2178
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2179
2179
|
"gap-1 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:text-left flex flex-col",
|
|
2180
2180
|
className
|
|
2181
2181
|
),
|
|
@@ -2185,7 +2185,7 @@ function DrawerHeader({ className, ...props }) {
|
|
|
2185
2185
|
}
|
|
2186
2186
|
_chunk7QVYU63Ejs.__name.call(void 0, DrawerHeader, "DrawerHeader");
|
|
2187
2187
|
function DrawerFooter({ className, ...props }) {
|
|
2188
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "drawer-footer", className:
|
|
2188
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "drawer-footer", className: _chunk37KYO2UDjs.cn.call(void 0, "gap-2 p-4 mt-auto flex flex-col", className), ...props });
|
|
2189
2189
|
}
|
|
2190
2190
|
_chunk7QVYU63Ejs.__name.call(void 0, DrawerFooter, "DrawerFooter");
|
|
2191
2191
|
function DrawerTitle({ className, ...props }) {
|
|
@@ -2193,7 +2193,7 @@ function DrawerTitle({ className, ...props }) {
|
|
|
2193
2193
|
_vaul.Drawer.Title,
|
|
2194
2194
|
{
|
|
2195
2195
|
"data-slot": "drawer-title",
|
|
2196
|
-
className:
|
|
2196
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "text-foreground text-sm font-medium", className),
|
|
2197
2197
|
...props
|
|
2198
2198
|
}
|
|
2199
2199
|
);
|
|
@@ -2204,7 +2204,7 @@ function DrawerDescription({ className, ...props }) {
|
|
|
2204
2204
|
_vaul.Drawer.Description,
|
|
2205
2205
|
{
|
|
2206
2206
|
"data-slot": "drawer-description",
|
|
2207
|
-
className:
|
|
2207
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
|
|
2208
2208
|
...props
|
|
2209
2209
|
}
|
|
2210
2210
|
);
|
|
@@ -2247,7 +2247,7 @@ function DropdownMenuContent({
|
|
|
2247
2247
|
_menu.Menu.Popup,
|
|
2248
2248
|
{
|
|
2249
2249
|
"data-slot": "dropdown-menu-content",
|
|
2250
|
-
className:
|
|
2250
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2251
2251
|
"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100 z-50 max-h-(--available-height) w-(--anchor-width) origin-(--transform-origin) overflow-x-hidden overflow-y-auto outline-none data-closed:overflow-hidden",
|
|
2252
2252
|
className
|
|
2253
2253
|
),
|
|
@@ -2272,7 +2272,7 @@ function DropdownMenuLabel({
|
|
|
2272
2272
|
{
|
|
2273
2273
|
"data-slot": "dropdown-menu-label",
|
|
2274
2274
|
"data-inset": inset,
|
|
2275
|
-
className:
|
|
2275
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
|
|
2276
2276
|
...props
|
|
2277
2277
|
}
|
|
2278
2278
|
);
|
|
@@ -2290,7 +2290,7 @@ function DropdownMenuItem({
|
|
|
2290
2290
|
"data-slot": "dropdown-menu-item",
|
|
2291
2291
|
"data-inset": inset,
|
|
2292
2292
|
"data-variant": variant,
|
|
2293
|
-
className:
|
|
2293
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2294
2294
|
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3.5 group/dropdown-menu-item relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
2295
2295
|
className
|
|
2296
2296
|
),
|
|
@@ -2314,7 +2314,7 @@ function DropdownMenuSubTrigger({
|
|
|
2314
2314
|
{
|
|
2315
2315
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
2316
2316
|
"data-inset": inset,
|
|
2317
|
-
className:
|
|
2317
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2318
2318
|
"focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs [&_svg:not([class*='size-'])]:size-3.5 flex cursor-default items-center outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
2319
2319
|
className
|
|
2320
2320
|
),
|
|
@@ -2339,7 +2339,7 @@ function DropdownMenuSubContent({
|
|
|
2339
2339
|
DropdownMenuContent,
|
|
2340
2340
|
{
|
|
2341
2341
|
"data-slot": "dropdown-menu-sub-content",
|
|
2342
|
-
className:
|
|
2342
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2343
2343
|
"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100 w-auto",
|
|
2344
2344
|
className
|
|
2345
2345
|
),
|
|
@@ -2357,7 +2357,7 @@ function DropdownMenuCheckboxItem({ className, children, checked, ...props }) {
|
|
|
2357
2357
|
_menu.Menu.CheckboxItem,
|
|
2358
2358
|
{
|
|
2359
2359
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
2360
|
-
className:
|
|
2360
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2361
2361
|
"focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground min-h-7 gap-2 rounded-md py-1.5 pr-8 pl-2 text-xs [&_svg:not([class*='size-'])]:size-3.5 relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
2362
2362
|
className
|
|
2363
2363
|
),
|
|
@@ -2387,7 +2387,7 @@ function DropdownMenuRadioItem({ className, children, ...props }) {
|
|
|
2387
2387
|
_menu.Menu.RadioItem,
|
|
2388
2388
|
{
|
|
2389
2389
|
"data-slot": "dropdown-menu-radio-item",
|
|
2390
|
-
className:
|
|
2390
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2391
2391
|
"focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground min-h-7 gap-2 rounded-md py-1.5 pr-8 pl-2 text-xs [&_svg:not([class*='size-'])]:size-3.5 relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
2392
2392
|
className
|
|
2393
2393
|
),
|
|
@@ -2412,7 +2412,7 @@ function DropdownMenuSeparator({ className, ...props }) {
|
|
|
2412
2412
|
_menu.Menu.Separator,
|
|
2413
2413
|
{
|
|
2414
2414
|
"data-slot": "dropdown-menu-separator",
|
|
2415
|
-
className:
|
|
2415
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
2416
2416
|
...props
|
|
2417
2417
|
}
|
|
2418
2418
|
);
|
|
@@ -2423,7 +2423,7 @@ function DropdownMenuShortcut({ className, ...props }) {
|
|
|
2423
2423
|
"span",
|
|
2424
2424
|
{
|
|
2425
2425
|
"data-slot": "dropdown-menu-shortcut",
|
|
2426
|
-
className:
|
|
2426
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2427
2427
|
"text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest",
|
|
2428
2428
|
className
|
|
2429
2429
|
),
|
|
@@ -2444,7 +2444,7 @@ function Label({ className, ...props }) {
|
|
|
2444
2444
|
"label",
|
|
2445
2445
|
{
|
|
2446
2446
|
"data-slot": "label",
|
|
2447
|
-
className:
|
|
2447
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2448
2448
|
"gap-2 text-xs/relaxed 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",
|
|
2449
2449
|
className
|
|
2450
2450
|
),
|
|
@@ -2463,7 +2463,7 @@ function Separator({ className, orientation = "horizontal", ...props }) {
|
|
|
2463
2463
|
{
|
|
2464
2464
|
"data-slot": "separator",
|
|
2465
2465
|
orientation,
|
|
2466
|
-
className:
|
|
2466
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2467
2467
|
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch",
|
|
2468
2468
|
className
|
|
2469
2469
|
),
|
|
@@ -2480,7 +2480,7 @@ function FieldSet({ className, ...props }) {
|
|
|
2480
2480
|
"fieldset",
|
|
2481
2481
|
{
|
|
2482
2482
|
"data-slot": "field-set",
|
|
2483
|
-
className:
|
|
2483
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2484
2484
|
"gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col",
|
|
2485
2485
|
className
|
|
2486
2486
|
),
|
|
@@ -2499,7 +2499,7 @@ function FieldLegend({
|
|
|
2499
2499
|
{
|
|
2500
2500
|
"data-slot": "field-legend",
|
|
2501
2501
|
"data-variant": variant,
|
|
2502
|
-
className:
|
|
2502
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "mb-2 font-medium data-[variant=label]:text-xs/relaxed data-[variant=legend]:text-sm", className),
|
|
2503
2503
|
...props
|
|
2504
2504
|
}
|
|
2505
2505
|
);
|
|
@@ -2510,7 +2510,7 @@ function FieldGroup({ className, ...props }) {
|
|
|
2510
2510
|
"div",
|
|
2511
2511
|
{
|
|
2512
2512
|
"data-slot": "field-group",
|
|
2513
|
-
className:
|
|
2513
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2514
2514
|
"gap-4 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4 group/field-group @container/field-group flex w-full flex-col",
|
|
2515
2515
|
className
|
|
2516
2516
|
),
|
|
@@ -2542,7 +2542,7 @@ function Field({
|
|
|
2542
2542
|
role: "group",
|
|
2543
2543
|
"data-slot": "field",
|
|
2544
2544
|
"data-orientation": orientation,
|
|
2545
|
-
className:
|
|
2545
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, fieldVariants({ orientation }), className),
|
|
2546
2546
|
...props
|
|
2547
2547
|
}
|
|
2548
2548
|
);
|
|
@@ -2553,7 +2553,7 @@ function FieldContent({ className, ...props }) {
|
|
|
2553
2553
|
"div",
|
|
2554
2554
|
{
|
|
2555
2555
|
"data-slot": "field-content",
|
|
2556
|
-
className:
|
|
2556
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "gap-0.5 group/field-content flex flex-1 flex-col leading-snug", className),
|
|
2557
2557
|
...props
|
|
2558
2558
|
}
|
|
2559
2559
|
);
|
|
@@ -2564,7 +2564,7 @@ function FieldLabel({ className, ...props }) {
|
|
|
2564
2564
|
Label,
|
|
2565
2565
|
{
|
|
2566
2566
|
"data-slot": "field-label",
|
|
2567
|
-
className:
|
|
2567
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2568
2568
|
"has-data-checked:bg-primary/5 dark:has-data-checked:bg-primary/10 gap-2 group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-2 group/field-label peer/field-label flex w-fit leading-snug",
|
|
2569
2569
|
"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",
|
|
2570
2570
|
className
|
|
@@ -2579,7 +2579,7 @@ function FieldTitle({ className, ...props }) {
|
|
|
2579
2579
|
"div",
|
|
2580
2580
|
{
|
|
2581
2581
|
"data-slot": "field-label",
|
|
2582
|
-
className:
|
|
2582
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2583
2583
|
"gap-2 text-xs/relaxed font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center leading-snug",
|
|
2584
2584
|
className
|
|
2585
2585
|
),
|
|
@@ -2593,7 +2593,7 @@ function FieldDescription({ className, ...props }) {
|
|
|
2593
2593
|
"p",
|
|
2594
2594
|
{
|
|
2595
2595
|
"data-slot": "field-description",
|
|
2596
|
-
className:
|
|
2596
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2597
2597
|
"text-muted-foreground text-left text-xs/relaxed [[data-variant=legend]+&]:-mt-1.5 leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance",
|
|
2598
2598
|
"last:mt-0 nth-last-2:-mt-1",
|
|
2599
2599
|
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
@@ -2614,7 +2614,7 @@ function FieldSeparator({
|
|
|
2614
2614
|
{
|
|
2615
2615
|
"data-slot": "field-separator",
|
|
2616
2616
|
"data-content": !!children,
|
|
2617
|
-
className:
|
|
2617
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "-my-2 h-5 text-xs/relaxed group-data-[variant=outline]/field-group:-mb-2 relative", className),
|
|
2618
2618
|
...props,
|
|
2619
2619
|
children: [
|
|
2620
2620
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, { className: "absolute inset-0 top-1/2" }),
|
|
@@ -2658,7 +2658,7 @@ function FieldError({
|
|
|
2658
2658
|
{
|
|
2659
2659
|
role: "alert",
|
|
2660
2660
|
"data-slot": "field-error",
|
|
2661
|
-
className:
|
|
2661
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "text-destructive text-xs/relaxed font-normal", className),
|
|
2662
2662
|
...props,
|
|
2663
2663
|
children: content
|
|
2664
2664
|
}
|
|
@@ -2701,7 +2701,7 @@ function HoverCardContent({
|
|
|
2701
2701
|
_previewcard.PreviewCard.Popup,
|
|
2702
2702
|
{
|
|
2703
2703
|
"data-slot": "hover-card-content",
|
|
2704
|
-
className:
|
|
2704
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2705
2705
|
"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 w-72 rounded-lg p-2.5 text-xs/relaxed shadow-md ring-1 duration-100 z-50 origin-(--transform-origin) outline-hidden",
|
|
2706
2706
|
className
|
|
2707
2707
|
),
|
|
@@ -2727,9 +2727,9 @@ function InputOTP({
|
|
|
2727
2727
|
_inputotp.OTPInput,
|
|
2728
2728
|
{
|
|
2729
2729
|
"data-slot": "input-otp",
|
|
2730
|
-
containerClassName:
|
|
2730
|
+
containerClassName: _chunk37KYO2UDjs.cn.call(void 0, "cn-input-otp flex items-center has-disabled:opacity-50", containerClassName),
|
|
2731
2731
|
spellCheck: false,
|
|
2732
|
-
className:
|
|
2732
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "disabled:cursor-not-allowed", className),
|
|
2733
2733
|
...props
|
|
2734
2734
|
}
|
|
2735
2735
|
);
|
|
@@ -2740,7 +2740,7 @@ function InputOTPGroup({ className, ...props }) {
|
|
|
2740
2740
|
"div",
|
|
2741
2741
|
{
|
|
2742
2742
|
"data-slot": "input-otp-group",
|
|
2743
|
-
className:
|
|
2743
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2744
2744
|
"has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 has-aria-invalid:border-destructive rounded-md has-aria-invalid:ring-[2px] flex items-center",
|
|
2745
2745
|
className
|
|
2746
2746
|
),
|
|
@@ -2761,7 +2761,7 @@ function InputOTPSlot({
|
|
|
2761
2761
|
{
|
|
2762
2762
|
"data-slot": "input-otp-slot",
|
|
2763
2763
|
"data-active": isActive,
|
|
2764
|
-
className:
|
|
2764
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2765
2765
|
"bg-input/20 dark:bg-input/30 border-input data-[active=true]:border-ring data-[active=true]:ring-ring/30 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive size-7 border-y border-r text-xs/relaxed transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:ring-[2px] relative flex items-center justify-center data-[active=true]:z-10",
|
|
2766
2766
|
className
|
|
2767
2767
|
),
|
|
@@ -2802,7 +2802,7 @@ function NavigationMenu({
|
|
|
2802
2802
|
_navigationmenu.NavigationMenu.Root,
|
|
2803
2803
|
{
|
|
2804
2804
|
"data-slot": "navigation-menu",
|
|
2805
|
-
className:
|
|
2805
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2806
2806
|
"max-w-max group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
|
|
2807
2807
|
className
|
|
2808
2808
|
),
|
|
@@ -2820,14 +2820,14 @@ function NavigationMenuList({ className, ...props }) {
|
|
|
2820
2820
|
_navigationmenu.NavigationMenu.List,
|
|
2821
2821
|
{
|
|
2822
2822
|
"data-slot": "navigation-menu-list",
|
|
2823
|
-
className:
|
|
2823
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "gap-0 group flex flex-1 list-none items-center justify-center", className),
|
|
2824
2824
|
...props
|
|
2825
2825
|
}
|
|
2826
2826
|
);
|
|
2827
2827
|
}
|
|
2828
2828
|
_chunk7QVYU63Ejs.__name.call(void 0, NavigationMenuList, "NavigationMenuList");
|
|
2829
2829
|
function NavigationMenuItem({ className, ...props }) {
|
|
2830
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _navigationmenu.NavigationMenu.Item, { "data-slot": "navigation-menu-item", className:
|
|
2830
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _navigationmenu.NavigationMenu.Item, { "data-slot": "navigation-menu-item", className: _chunk37KYO2UDjs.cn.call(void 0, "relative", className), ...props });
|
|
2831
2831
|
}
|
|
2832
2832
|
_chunk7QVYU63Ejs.__name.call(void 0, NavigationMenuItem, "NavigationMenuItem");
|
|
2833
2833
|
var navigationMenuTriggerStyle = _classvarianceauthority.cva.call(void 0,
|
|
@@ -2838,7 +2838,7 @@ function NavigationMenuTrigger({ className, children, ...props }) {
|
|
|
2838
2838
|
_navigationmenu.NavigationMenu.Trigger,
|
|
2839
2839
|
{
|
|
2840
2840
|
"data-slot": "navigation-menu-trigger",
|
|
2841
|
-
className:
|
|
2841
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, navigationMenuTriggerStyle(), "group", className),
|
|
2842
2842
|
...props,
|
|
2843
2843
|
children: [
|
|
2844
2844
|
children,
|
|
@@ -2860,7 +2860,7 @@ function NavigationMenuContent({ className, ...props }) {
|
|
|
2860
2860
|
_navigationmenu.NavigationMenu.Content,
|
|
2861
2861
|
{
|
|
2862
2862
|
"data-slot": "navigation-menu-content",
|
|
2863
|
-
className:
|
|
2863
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2864
2864
|
"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/10 p-1.5 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-xl group-data-[viewport=false]/navigation-menu:shadow-md group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 h-full w-auto **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
|
|
2865
2865
|
className
|
|
2866
2866
|
),
|
|
@@ -2884,7 +2884,7 @@ function NavigationMenuPositioner({
|
|
|
2884
2884
|
sideOffset,
|
|
2885
2885
|
align,
|
|
2886
2886
|
alignOffset,
|
|
2887
|
-
className:
|
|
2887
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2888
2888
|
"transition-[top,left,right,bottom] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0 isolate z-50 h-[var(--positioner-height)] w-[var(--positioner-width)] max-w-[var(--available-width)] data-[instant]:transition-none",
|
|
2889
2889
|
className
|
|
2890
2890
|
),
|
|
@@ -2899,7 +2899,7 @@ function NavigationMenuLink({ className, ...props }) {
|
|
|
2899
2899
|
_navigationmenu.NavigationMenu.Link,
|
|
2900
2900
|
{
|
|
2901
2901
|
"data-slot": "navigation-menu-link",
|
|
2902
|
-
className:
|
|
2902
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2903
2903
|
"data-[active=true]:focus:bg-muted data-[active=true]:hover:bg-muted data-[active=true]:bg-muted/50 focus-visible:ring-ring/30 hover:bg-muted focus:bg-muted flex items-center gap-1.5 rounded-lg p-2 text-xs/relaxed transition-all outline-none focus-visible:ring-[2px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
|
|
2904
2904
|
className
|
|
2905
2905
|
),
|
|
@@ -2916,7 +2916,7 @@ function NavigationMenuIndicator({
|
|
|
2916
2916
|
_navigationmenu.NavigationMenu.Icon,
|
|
2917
2917
|
{
|
|
2918
2918
|
"data-slot": "navigation-menu-indicator",
|
|
2919
|
-
className:
|
|
2919
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2920
2920
|
"data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
|
|
2921
2921
|
className
|
|
2922
2922
|
),
|
|
@@ -2958,7 +2958,7 @@ function PopoverContent({
|
|
|
2958
2958
|
_popover.Popover.Popup,
|
|
2959
2959
|
{
|
|
2960
2960
|
"data-slot": "popover-content",
|
|
2961
|
-
className:
|
|
2961
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
2962
2962
|
"bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 flex flex-col gap-4 rounded-lg p-2.5 text-xs shadow-md ring-1 duration-100 z-50 w-72 origin-(--transform-origin) outline-hidden",
|
|
2963
2963
|
className
|
|
2964
2964
|
),
|
|
@@ -2970,11 +2970,11 @@ function PopoverContent({
|
|
|
2970
2970
|
}
|
|
2971
2971
|
_chunk7QVYU63Ejs.__name.call(void 0, PopoverContent, "PopoverContent");
|
|
2972
2972
|
function PopoverHeader({ className, ...props }) {
|
|
2973
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "popover-header", className:
|
|
2973
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "popover-header", className: _chunk37KYO2UDjs.cn.call(void 0, "flex flex-col gap-1 text-xs", className), ...props });
|
|
2974
2974
|
}
|
|
2975
2975
|
_chunk7QVYU63Ejs.__name.call(void 0, PopoverHeader, "PopoverHeader");
|
|
2976
2976
|
function PopoverTitle({ className, ...props }) {
|
|
2977
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _popover.Popover.Title, { "data-slot": "popover-title", className:
|
|
2977
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _popover.Popover.Title, { "data-slot": "popover-title", className: _chunk37KYO2UDjs.cn.call(void 0, "text-sm font-medium", className), ...props });
|
|
2978
2978
|
}
|
|
2979
2979
|
_chunk7QVYU63Ejs.__name.call(void 0, PopoverTitle, "PopoverTitle");
|
|
2980
2980
|
function PopoverDescription({ className, ...props }) {
|
|
@@ -2982,7 +2982,7 @@ function PopoverDescription({ className, ...props }) {
|
|
|
2982
2982
|
_popover.Popover.Description,
|
|
2983
2983
|
{
|
|
2984
2984
|
"data-slot": "popover-description",
|
|
2985
|
-
className:
|
|
2985
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "text-muted-foreground", className),
|
|
2986
2986
|
...props
|
|
2987
2987
|
}
|
|
2988
2988
|
);
|
|
@@ -2998,7 +2998,7 @@ function Progress({ className, children, value, ...props }) {
|
|
|
2998
2998
|
{
|
|
2999
2999
|
value,
|
|
3000
3000
|
"data-slot": "progress",
|
|
3001
|
-
className:
|
|
3001
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "flex flex-wrap gap-3", className),
|
|
3002
3002
|
...props,
|
|
3003
3003
|
children: [
|
|
3004
3004
|
children,
|
|
@@ -3012,7 +3012,7 @@ function ProgressTrack({ className, ...props }) {
|
|
|
3012
3012
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3013
3013
|
_progress.Progress.Track,
|
|
3014
3014
|
{
|
|
3015
|
-
className:
|
|
3015
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "bg-muted h-1 rounded-md relative flex w-full items-center overflow-x-hidden", className),
|
|
3016
3016
|
"data-slot": "progress-track",
|
|
3017
3017
|
...props
|
|
3018
3018
|
}
|
|
@@ -3024,7 +3024,7 @@ function ProgressIndicator({ className, ...props }) {
|
|
|
3024
3024
|
_progress.Progress.Indicator,
|
|
3025
3025
|
{
|
|
3026
3026
|
"data-slot": "progress-indicator",
|
|
3027
|
-
className:
|
|
3027
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "bg-primary h-full transition-all", className),
|
|
3028
3028
|
...props
|
|
3029
3029
|
}
|
|
3030
3030
|
);
|
|
@@ -3034,7 +3034,7 @@ function ProgressLabel({ className, ...props }) {
|
|
|
3034
3034
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3035
3035
|
_progress.Progress.Label,
|
|
3036
3036
|
{
|
|
3037
|
-
className:
|
|
3037
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "text-xs/relaxed font-medium", className),
|
|
3038
3038
|
"data-slot": "progress-label",
|
|
3039
3039
|
...props
|
|
3040
3040
|
}
|
|
@@ -3045,7 +3045,7 @@ function ProgressValue({ className, ...props }) {
|
|
|
3045
3045
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3046
3046
|
_progress.Progress.Value,
|
|
3047
3047
|
{
|
|
3048
|
-
className:
|
|
3048
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "text-muted-foreground ml-auto text-xs/relaxed tabular-nums", className),
|
|
3049
3049
|
"data-slot": "progress-value",
|
|
3050
3050
|
...props
|
|
3051
3051
|
}
|
|
@@ -3059,7 +3059,7 @@ var _radiogroup = require('@base-ui/react/radio-group');
|
|
|
3059
3059
|
|
|
3060
3060
|
|
|
3061
3061
|
function RadioGroup({ className, ...props }) {
|
|
3062
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _radiogroup.RadioGroup, { "data-slot": "radio-group", className:
|
|
3062
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _radiogroup.RadioGroup, { "data-slot": "radio-group", className: _chunk37KYO2UDjs.cn.call(void 0, "grid gap-3 w-full", className), ...props });
|
|
3063
3063
|
}
|
|
3064
3064
|
_chunk7QVYU63Ejs.__name.call(void 0, RadioGroup, "RadioGroup");
|
|
3065
3065
|
function RadioGroupItem({ className, ...props }) {
|
|
@@ -3067,7 +3067,7 @@ function RadioGroupItem({ className, ...props }) {
|
|
|
3067
3067
|
_radio.Radio.Root,
|
|
3068
3068
|
{
|
|
3069
3069
|
"data-slot": "radio-group-item",
|
|
3070
|
-
className:
|
|
3070
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
3071
3071
|
"border-input text-primary dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 data-checked:bg-primary data-checked:border-primary flex size-4 rounded-full transition-none focus-visible:ring-[2px] aria-invalid:ring-[2px] group/radio-group-item peer relative aspect-square shrink-0 border outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
3072
3072
|
className
|
|
3073
3073
|
),
|
|
@@ -3094,7 +3094,7 @@ function ResizablePanelGroup({ className, ...props }) {
|
|
|
3094
3094
|
ResizablePrimitive.Group,
|
|
3095
3095
|
{
|
|
3096
3096
|
"data-slot": "resizable-panel-group",
|
|
3097
|
-
className:
|
|
3097
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
3098
3098
|
"flex h-full w-full",
|
|
3099
3099
|
// v4 uses aria-orientation instead of data-panel-group-direction
|
|
3100
3100
|
"aria-[orientation=vertical]:flex-col",
|
|
@@ -3118,7 +3118,7 @@ function ResizableHandle({
|
|
|
3118
3118
|
ResizablePrimitive.Separator,
|
|
3119
3119
|
{
|
|
3120
3120
|
"data-slot": "resizable-handle",
|
|
3121
|
-
className:
|
|
3121
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
3122
3122
|
"bg-border relative flex items-center justify-center",
|
|
3123
3123
|
"focus-visible:ring-ring focus-visible:ring-1 focus-visible:ring-offset-1",
|
|
3124
3124
|
// v4: Separator aria-orientation is OPPOSITE of Group orientation
|
|
@@ -3145,7 +3145,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ResizableHandle, "ResizableHandle");
|
|
|
3145
3145
|
var _scrollarea = require('@base-ui/react/scroll-area');
|
|
3146
3146
|
|
|
3147
3147
|
function ScrollArea({ className, children, ...props }) {
|
|
3148
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _scrollarea.ScrollArea.Root, { "data-slot": "scroll-area", className:
|
|
3148
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _scrollarea.ScrollArea.Root, { "data-slot": "scroll-area", className: _chunk37KYO2UDjs.cn.call(void 0, "relative", className), ...props, children: [
|
|
3149
3149
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3150
3150
|
_scrollarea.ScrollArea.Viewport,
|
|
3151
3151
|
{
|
|
@@ -3166,7 +3166,7 @@ function ScrollBar({ className, orientation = "vertical", ...props }) {
|
|
|
3166
3166
|
"data-slot": "scroll-area-scrollbar",
|
|
3167
3167
|
"data-orientation": orientation,
|
|
3168
3168
|
orientation,
|
|
3169
|
-
className:
|
|
3169
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
3170
3170
|
"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-l data-vertical:border-l-transparent flex touch-none p-px transition-colors select-none",
|
|
3171
3171
|
className
|
|
3172
3172
|
),
|
|
@@ -3183,11 +3183,11 @@ var _select = require('@base-ui/react/select');
|
|
|
3183
3183
|
|
|
3184
3184
|
var Select = _select.Select.Root;
|
|
3185
3185
|
function SelectGroup({ className, ...props }) {
|
|
3186
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _select.Select.Group, { "data-slot": "select-group", className:
|
|
3186
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _select.Select.Group, { "data-slot": "select-group", className: _chunk37KYO2UDjs.cn.call(void 0, "scroll-my-1 p-1", className), ...props });
|
|
3187
3187
|
}
|
|
3188
3188
|
_chunk7QVYU63Ejs.__name.call(void 0, SelectGroup, "SelectGroup");
|
|
3189
3189
|
function SelectValue({ className, ...props }) {
|
|
3190
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _select.Select.Value, { "data-slot": "select-value", className:
|
|
3190
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _select.Select.Value, { "data-slot": "select-value", className: _chunk37KYO2UDjs.cn.call(void 0, "flex flex-1 text-left", className), ...props });
|
|
3191
3191
|
}
|
|
3192
3192
|
_chunk7QVYU63Ejs.__name.call(void 0, SelectValue, "SelectValue");
|
|
3193
3193
|
function SelectTrigger({
|
|
@@ -3201,7 +3201,7 @@ function SelectTrigger({
|
|
|
3201
3201
|
{
|
|
3202
3202
|
"data-slot": "select-trigger",
|
|
3203
3203
|
"data-size": size,
|
|
3204
|
-
className:
|
|
3204
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
3205
3205
|
"border-input data-[placeholder]:text-muted-foreground bg-input/20 dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 gap-1.5 rounded-md border px-2 py-1.5 text-xs/relaxed transition-colors focus-visible:ring-[2px] aria-invalid:ring-[2px] data-[size=default]:h-7 data-[size=sm]:h-6 *:data-[slot=select-value]:flex *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-3.5 flex w-fit items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
3206
3206
|
className
|
|
3207
3207
|
),
|
|
@@ -3242,7 +3242,7 @@ function SelectContent({
|
|
|
3242
3242
|
_select.Select.Popup,
|
|
3243
3243
|
{
|
|
3244
3244
|
"data-slot": "select-content",
|
|
3245
|
-
className:
|
|
3245
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
3246
3246
|
"bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 min-w-32 rounded-lg shadow-md ring-1 duration-100 relative isolate z-50 max-h-(--available-height) w-(--anchor-width) origin-(--transform-origin) overflow-x-hidden overflow-y-auto",
|
|
3247
3247
|
className
|
|
3248
3248
|
),
|
|
@@ -3263,7 +3263,7 @@ function SelectLabel({ className, ...props }) {
|
|
|
3263
3263
|
_select.Select.GroupLabel,
|
|
3264
3264
|
{
|
|
3265
3265
|
"data-slot": "select-label",
|
|
3266
|
-
className:
|
|
3266
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs", className),
|
|
3267
3267
|
...props
|
|
3268
3268
|
}
|
|
3269
3269
|
);
|
|
@@ -3274,7 +3274,7 @@ function SelectItem({ className, children, ...props }) {
|
|
|
3274
3274
|
_select.Select.Item,
|
|
3275
3275
|
{
|
|
3276
3276
|
"data-slot": "select-item",
|
|
3277
|
-
className:
|
|
3277
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
3278
3278
|
"focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3.5 *:[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",
|
|
3279
3279
|
className
|
|
3280
3280
|
),
|
|
@@ -3298,7 +3298,7 @@ function SelectSeparator({ className, ...props }) {
|
|
|
3298
3298
|
_select.Select.Separator,
|
|
3299
3299
|
{
|
|
3300
3300
|
"data-slot": "select-separator",
|
|
3301
|
-
className:
|
|
3301
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px pointer-events-none", className),
|
|
3302
3302
|
...props
|
|
3303
3303
|
}
|
|
3304
3304
|
);
|
|
@@ -3309,7 +3309,7 @@ function SelectScrollUpButton({ className, ...props }) {
|
|
|
3309
3309
|
_select.Select.ScrollUpArrow,
|
|
3310
3310
|
{
|
|
3311
3311
|
"data-slot": "select-scroll-up-button",
|
|
3312
|
-
className:
|
|
3312
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
3313
3313
|
"bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5 top-0 w-full",
|
|
3314
3314
|
className
|
|
3315
3315
|
),
|
|
@@ -3324,7 +3324,7 @@ function SelectScrollDownButton({ className, ...props }) {
|
|
|
3324
3324
|
_select.Select.ScrollDownArrow,
|
|
3325
3325
|
{
|
|
3326
3326
|
"data-slot": "select-scroll-down-button",
|
|
3327
|
-
className:
|
|
3327
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
3328
3328
|
"bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5 bottom-0 w-full",
|
|
3329
3329
|
className
|
|
3330
3330
|
),
|
|
@@ -3360,7 +3360,7 @@ function SheetOverlay({ className, ...props }) {
|
|
|
3360
3360
|
_dialog.Dialog.Backdrop,
|
|
3361
3361
|
{
|
|
3362
3362
|
"data-slot": "sheet-overlay",
|
|
3363
|
-
className:
|
|
3363
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
3364
3364
|
"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50",
|
|
3365
3365
|
className
|
|
3366
3366
|
),
|
|
@@ -3383,7 +3383,7 @@ function SheetContent({
|
|
|
3383
3383
|
{
|
|
3384
3384
|
"data-slot": "sheet-content",
|
|
3385
3385
|
"data-side": side,
|
|
3386
|
-
className:
|
|
3386
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
3387
3387
|
"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 bg-clip-padding text-xs/relaxed 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-r 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]:rounded-l-lg data-[side=right]:border-l data-[side=left]:rounded-r-lg 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",
|
|
3388
3388
|
className
|
|
3389
3389
|
),
|
|
@@ -3408,11 +3408,11 @@ function SheetContent({
|
|
|
3408
3408
|
}
|
|
3409
3409
|
_chunk7QVYU63Ejs.__name.call(void 0, SheetContent, "SheetContent");
|
|
3410
3410
|
function SheetHeader({ className, ...props }) {
|
|
3411
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "sheet-header", className:
|
|
3411
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "sheet-header", className: _chunk37KYO2UDjs.cn.call(void 0, "gap-1.5 p-6 flex flex-col", className), ...props });
|
|
3412
3412
|
}
|
|
3413
3413
|
_chunk7QVYU63Ejs.__name.call(void 0, SheetHeader, "SheetHeader");
|
|
3414
3414
|
function SheetFooter({ className, ...props }) {
|
|
3415
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "sheet-footer", className:
|
|
3415
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "sheet-footer", className: _chunk37KYO2UDjs.cn.call(void 0, "gap-2 p-6 mt-auto flex flex-col", className), ...props });
|
|
3416
3416
|
}
|
|
3417
3417
|
_chunk7QVYU63Ejs.__name.call(void 0, SheetFooter, "SheetFooter");
|
|
3418
3418
|
function SheetTitle({ className, ...props }) {
|
|
@@ -3420,7 +3420,7 @@ function SheetTitle({ className, ...props }) {
|
|
|
3420
3420
|
_dialog.Dialog.Title,
|
|
3421
3421
|
{
|
|
3422
3422
|
"data-slot": "sheet-title",
|
|
3423
|
-
className:
|
|
3423
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "text-foreground text-sm font-medium", className),
|
|
3424
3424
|
...props
|
|
3425
3425
|
}
|
|
3426
3426
|
);
|
|
@@ -3431,7 +3431,7 @@ function SheetDescription({ className, ...props }) {
|
|
|
3431
3431
|
_dialog.Dialog.Description,
|
|
3432
3432
|
{
|
|
3433
3433
|
"data-slot": "sheet-description",
|
|
3434
|
-
className:
|
|
3434
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
|
|
3435
3435
|
...props
|
|
3436
3436
|
}
|
|
3437
3437
|
);
|
|
@@ -3447,7 +3447,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, SheetDescription, "SheetDescription");
|
|
|
3447
3447
|
// src/shadcnui/ui/skeleton.tsx
|
|
3448
3448
|
|
|
3449
3449
|
function Skeleton({ className, ...props }) {
|
|
3450
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "skeleton", className:
|
|
3450
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "skeleton", className: _chunk37KYO2UDjs.cn.call(void 0, "bg-muted rounded-md animate-pulse", className), ...props });
|
|
3451
3451
|
}
|
|
3452
3452
|
_chunk7QVYU63Ejs.__name.call(void 0, Skeleton, "Skeleton");
|
|
3453
3453
|
|
|
@@ -3487,7 +3487,7 @@ function TooltipContent({
|
|
|
3487
3487
|
_tooltip.Tooltip.Popup,
|
|
3488
3488
|
{
|
|
3489
3489
|
"data-slot": "tooltip-content",
|
|
3490
|
-
className:
|
|
3490
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
3491
3491
|
"data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 rounded-md px-3 py-1.5 text-xs **:data-[slot=kbd]:rounded-md bg-foreground text-background z-50 w-fit max-w-xs origin-(--transform-origin)",
|
|
3492
3492
|
className
|
|
3493
3493
|
),
|
|
@@ -3530,7 +3530,7 @@ function SidebarProvider({
|
|
|
3530
3530
|
children,
|
|
3531
3531
|
...props
|
|
3532
3532
|
}) {
|
|
3533
|
-
const isMobile =
|
|
3533
|
+
const isMobile = _chunk37KYO2UDjs.useIsMobile.call(void 0, );
|
|
3534
3534
|
const [openMobile, setOpenMobile] = React6.useState(false);
|
|
3535
3535
|
const [_open, _setOpen] = React6.useState(defaultOpen);
|
|
3536
3536
|
const open = _nullishCoalesce(openProp, () => ( _open));
|
|
@@ -3581,7 +3581,7 @@ function SidebarProvider({
|
|
|
3581
3581
|
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
3582
3582
|
...style
|
|
3583
3583
|
},
|
|
3584
|
-
className:
|
|
3584
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", className),
|
|
3585
3585
|
...props,
|
|
3586
3586
|
children
|
|
3587
3587
|
}
|
|
@@ -3602,7 +3602,7 @@ function Sidebar({
|
|
|
3602
3602
|
"div",
|
|
3603
3603
|
{
|
|
3604
3604
|
"data-slot": "sidebar",
|
|
3605
|
-
className:
|
|
3605
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", className),
|
|
3606
3606
|
...props,
|
|
3607
3607
|
children
|
|
3608
3608
|
}
|
|
@@ -3644,7 +3644,7 @@ function Sidebar({
|
|
|
3644
3644
|
"div",
|
|
3645
3645
|
{
|
|
3646
3646
|
"data-slot": "sidebar-gap",
|
|
3647
|
-
className:
|
|
3647
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
3648
3648
|
"transition-[width] duration-200 ease-linear relative w-(--sidebar-width) bg-transparent",
|
|
3649
3649
|
"group-data-[collapsible=offExamples]:w-0",
|
|
3650
3650
|
"group-data-[side=right]:rotate-180",
|
|
@@ -3656,7 +3656,7 @@ function Sidebar({
|
|
|
3656
3656
|
"div",
|
|
3657
3657
|
{
|
|
3658
3658
|
"data-slot": "sidebar-container",
|
|
3659
|
-
className:
|
|
3659
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
3660
3660
|
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
3661
3661
|
side === "left" ? "left-0 group-data-[collapsible=offExamples]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offExamples]:right-[calc(var(--sidebar-width)*-1)]",
|
|
3662
3662
|
// Adjust the padding for floating and inset variants.
|
|
@@ -3689,7 +3689,7 @@ function SidebarTrigger({ className, onClick, ...props }) {
|
|
|
3689
3689
|
"data-slot": "sidebar-trigger",
|
|
3690
3690
|
variant: "ghost",
|
|
3691
3691
|
size: "icon-sm",
|
|
3692
|
-
className:
|
|
3692
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, className),
|
|
3693
3693
|
onClick: (event) => {
|
|
3694
3694
|
_optionalChain([onClick, 'optionalCall', _43 => _43(event)]);
|
|
3695
3695
|
toggleSidebar();
|
|
@@ -3714,7 +3714,7 @@ function SidebarRail({ className, ...props }) {
|
|
|
3714
3714
|
tabIndex: -1,
|
|
3715
3715
|
onClick: toggleSidebar,
|
|
3716
3716
|
title: "Toggle Sidebar",
|
|
3717
|
-
className:
|
|
3717
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
3718
3718
|
"hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex",
|
|
3719
3719
|
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
3720
3720
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
@@ -3733,7 +3733,7 @@ function SidebarInset({ className, ...props }) {
|
|
|
3733
3733
|
"main",
|
|
3734
3734
|
{
|
|
3735
3735
|
"data-slot": "sidebar-inset",
|
|
3736
|
-
className:
|
|
3736
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
3737
3737
|
"bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 relative flex w-full flex-1 flex-col",
|
|
3738
3738
|
className
|
|
3739
3739
|
),
|
|
@@ -3748,7 +3748,7 @@ function SidebarInput({ className, ...props }) {
|
|
|
3748
3748
|
{
|
|
3749
3749
|
"data-slot": "sidebar-input",
|
|
3750
3750
|
"data-sidebar": "input",
|
|
3751
|
-
className:
|
|
3751
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "bg-muted/20 dark:bg-muted/30 border-input h-8 w-full", className),
|
|
3752
3752
|
...props
|
|
3753
3753
|
}
|
|
3754
3754
|
);
|
|
@@ -3760,7 +3760,7 @@ function SidebarHeader({ className, ...props }) {
|
|
|
3760
3760
|
{
|
|
3761
3761
|
"data-slot": "sidebar-header",
|
|
3762
3762
|
"data-sidebar": "header",
|
|
3763
|
-
className:
|
|
3763
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
|
|
3764
3764
|
...props
|
|
3765
3765
|
}
|
|
3766
3766
|
);
|
|
@@ -3772,7 +3772,7 @@ function SidebarFooter({ className, ...props }) {
|
|
|
3772
3772
|
{
|
|
3773
3773
|
"data-slot": "sidebar-footer",
|
|
3774
3774
|
"data-sidebar": "footer",
|
|
3775
|
-
className:
|
|
3775
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
|
|
3776
3776
|
...props
|
|
3777
3777
|
}
|
|
3778
3778
|
);
|
|
@@ -3784,7 +3784,7 @@ function SidebarSeparator({ className, ...props }) {
|
|
|
3784
3784
|
{
|
|
3785
3785
|
"data-slot": "sidebar-separator",
|
|
3786
3786
|
"data-sidebar": "separator",
|
|
3787
|
-
className:
|
|
3787
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "bg-sidebar-border mx-2 w-auto", className),
|
|
3788
3788
|
...props
|
|
3789
3789
|
}
|
|
3790
3790
|
);
|
|
@@ -3796,7 +3796,7 @@ function SidebarContent({ className, ...props }) {
|
|
|
3796
3796
|
{
|
|
3797
3797
|
"data-slot": "sidebar-content",
|
|
3798
3798
|
"data-sidebar": "content",
|
|
3799
|
-
className:
|
|
3799
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
3800
3800
|
"no-scrollbar gap-0 flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
3801
3801
|
className
|
|
3802
3802
|
),
|
|
@@ -3811,7 +3811,7 @@ function SidebarGroup({ className, ...props }) {
|
|
|
3811
3811
|
{
|
|
3812
3812
|
"data-slot": "sidebar-group",
|
|
3813
3813
|
"data-sidebar": "group",
|
|
3814
|
-
className:
|
|
3814
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "px-2 py-1 relative flex w-full min-w-0 flex-col", className),
|
|
3815
3815
|
...props
|
|
3816
3816
|
}
|
|
3817
3817
|
);
|
|
@@ -3826,7 +3826,7 @@ function SidebarGroupLabel({
|
|
|
3826
3826
|
defaultTagName: "div",
|
|
3827
3827
|
props: _mergeprops.mergeProps.call(void 0,
|
|
3828
3828
|
{
|
|
3829
|
-
className:
|
|
3829
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
3830
3830
|
"text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-md px-2 text-xs transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 flex shrink-0 items-center outline-hidden [&>svg]:shrink-0",
|
|
3831
3831
|
className
|
|
3832
3832
|
)
|
|
@@ -3850,7 +3850,7 @@ function SidebarGroupAction({
|
|
|
3850
3850
|
defaultTagName: "button",
|
|
3851
3851
|
props: _mergeprops.mergeProps.call(void 0,
|
|
3852
3852
|
{
|
|
3853
|
-
className:
|
|
3853
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
3854
3854
|
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 w-5 rounded-md p-0 focus-visible:ring-2 [&>svg]:size-4 flex aspect-square items-center justify-center outline-hidden transition-transform [&>svg]:shrink-0 after:absolute after:-inset-2 md:after:hidden group-data-[collapsible=icon]:hidden",
|
|
3855
3855
|
className
|
|
3856
3856
|
)
|
|
@@ -3871,7 +3871,7 @@ function SidebarGroupContent({ className, ...props }) {
|
|
|
3871
3871
|
{
|
|
3872
3872
|
"data-slot": "sidebar-group-content",
|
|
3873
3873
|
"data-sidebar": "group-content",
|
|
3874
|
-
className:
|
|
3874
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "text-xs w-full", className),
|
|
3875
3875
|
...props
|
|
3876
3876
|
}
|
|
3877
3877
|
);
|
|
@@ -3883,7 +3883,7 @@ function SidebarMenu({ className, ...props }) {
|
|
|
3883
3883
|
{
|
|
3884
3884
|
"data-slot": "sidebar-menu",
|
|
3885
3885
|
"data-sidebar": "menu",
|
|
3886
|
-
className:
|
|
3886
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "gap-px flex w-full min-w-0 flex-col", className),
|
|
3887
3887
|
...props
|
|
3888
3888
|
}
|
|
3889
3889
|
);
|
|
@@ -3895,7 +3895,7 @@ function SidebarMenuItem({ className, ...props }) {
|
|
|
3895
3895
|
{
|
|
3896
3896
|
"data-slot": "sidebar-menu-item",
|
|
3897
3897
|
"data-sidebar": "menu-item",
|
|
3898
|
-
className:
|
|
3898
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "group/menu-item relative", className),
|
|
3899
3899
|
...props
|
|
3900
3900
|
}
|
|
3901
3901
|
);
|
|
@@ -3935,7 +3935,7 @@ function SidebarMenuButton({
|
|
|
3935
3935
|
defaultTagName: "button",
|
|
3936
3936
|
props: _mergeprops.mergeProps.call(void 0,
|
|
3937
3937
|
{
|
|
3938
|
-
className:
|
|
3938
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, sidebarMenuButtonVariants({ variant, size }), className)
|
|
3939
3939
|
},
|
|
3940
3940
|
props
|
|
3941
3941
|
),
|
|
@@ -3971,7 +3971,7 @@ function SidebarMenuAction({
|
|
|
3971
3971
|
defaultTagName: "button",
|
|
3972
3972
|
props: _mergeprops.mergeProps.call(void 0,
|
|
3973
3973
|
{
|
|
3974
|
-
className:
|
|
3974
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
3975
3975
|
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 aspect-square w-5 rounded-[calc(var(--radius-sm)-2px)] p-0 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 focus-visible:ring-2 [&>svg]:size-4 flex items-center justify-center outline-hidden transition-transform group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 md:after:hidden [&>svg]:shrink-0",
|
|
3976
3976
|
showOnHover && "peer-data-active/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-open:opacity-100 md:opacity-0",
|
|
3977
3977
|
className
|
|
@@ -3993,7 +3993,7 @@ function SidebarMenuBadge({ className, ...props }) {
|
|
|
3993
3993
|
{
|
|
3994
3994
|
"data-slot": "sidebar-menu-badge",
|
|
3995
3995
|
"data-sidebar": "menu-badge",
|
|
3996
|
-
className:
|
|
3996
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
3997
3997
|
"text-sidebar-foreground peer-hover/menu-button:text-sidebar-accent-foreground peer-data-active/menu-button:text-sidebar-accent-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 rounded-[calc(var(--radius-sm)-2px)] px-1 text-xs font-medium peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 flex items-center justify-center tabular-nums select-none group-data-[collapsible=icon]:hidden",
|
|
3998
3998
|
className
|
|
3999
3999
|
),
|
|
@@ -4015,7 +4015,7 @@ function SidebarMenuSkeleton({
|
|
|
4015
4015
|
{
|
|
4016
4016
|
"data-slot": "sidebar-menu-skeleton",
|
|
4017
4017
|
"data-sidebar": "menu-skeleton",
|
|
4018
|
-
className:
|
|
4018
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "h-8 gap-2 rounded-md px-2 flex items-center", className),
|
|
4019
4019
|
...props,
|
|
4020
4020
|
children: [
|
|
4021
4021
|
showIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" }),
|
|
@@ -4040,7 +4040,7 @@ function SidebarMenuSub({ className, ...props }) {
|
|
|
4040
4040
|
{
|
|
4041
4041
|
"data-slot": "sidebar-menu-sub",
|
|
4042
4042
|
"data-sidebar": "menu-sub",
|
|
4043
|
-
className:
|
|
4043
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
4044
4044
|
"border-sidebar-border mx-3.5 translate-x-px gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden flex min-w-0 flex-col",
|
|
4045
4045
|
className
|
|
4046
4046
|
),
|
|
@@ -4055,7 +4055,7 @@ function SidebarMenuSubItem({ className, ...props }) {
|
|
|
4055
4055
|
{
|
|
4056
4056
|
"data-slot": "sidebar-menu-sub-item",
|
|
4057
4057
|
"data-sidebar": "menu-sub-item",
|
|
4058
|
-
className:
|
|
4058
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "group/menu-sub-item relative", className),
|
|
4059
4059
|
...props
|
|
4060
4060
|
}
|
|
4061
4061
|
);
|
|
@@ -4072,7 +4072,7 @@ function SidebarMenuSubButton({
|
|
|
4072
4072
|
defaultTagName: "a",
|
|
4073
4073
|
props: _mergeprops.mergeProps.call(void 0,
|
|
4074
4074
|
{
|
|
4075
|
-
className:
|
|
4075
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
4076
4076
|
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground h-7 gap-2 rounded-md px-2 focus-visible:ring-2 data-[size=md]:text-xs data-[size=sm]:text-xs [&>svg]:size-4 flex min-w-0 -translate-x-px items-center overflow-hidden outline-hidden group-data-[collapsible=icon]:hidden disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:shrink-0",
|
|
4077
4077
|
className
|
|
4078
4078
|
)
|
|
@@ -4113,7 +4113,7 @@ function Slider({ className, defaultValue, value, min = 0, max = 100, ...props }
|
|
|
4113
4113
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4114
4114
|
_slider.Slider.Control,
|
|
4115
4115
|
{
|
|
4116
|
-
className:
|
|
4116
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
4117
4117
|
"data-vertical:min-h-40 relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-vertical:h-full data-vertical:w-auto data-vertical:flex-col",
|
|
4118
4118
|
className
|
|
4119
4119
|
),
|
|
@@ -4197,7 +4197,7 @@ function Switch({
|
|
|
4197
4197
|
{
|
|
4198
4198
|
"data-slot": "switch",
|
|
4199
4199
|
"data-size": size,
|
|
4200
|
-
className:
|
|
4200
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
4201
4201
|
"data-checked:bg-primary data-unchecked:bg-input focus-visible:border-ring focus-visible:ring-ring/30 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-[2px] aria-invalid:ring-[2px] data-[size=default]:h-[16.6px] data-[size=default]:w-[28px] 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",
|
|
4202
4202
|
className
|
|
4203
4203
|
),
|
|
@@ -4206,7 +4206,7 @@ function Switch({
|
|
|
4206
4206
|
_switch.Switch.Thumb,
|
|
4207
4207
|
{
|
|
4208
4208
|
"data-slot": "switch-thumb",
|
|
4209
|
-
className:
|
|
4209
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
4210
4210
|
"bg-background dark:data-unchecked:bg-foreground dark:data-checked:bg-primary-foreground rounded-full group-data-[size=default]/switch:size-3.5 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",
|
|
4211
4211
|
children && "flex items-center justify-center"
|
|
4212
4212
|
),
|
|
@@ -4221,15 +4221,15 @@ _chunk7QVYU63Ejs.__name.call(void 0, Switch, "Switch");
|
|
|
4221
4221
|
// src/shadcnui/ui/table.tsx
|
|
4222
4222
|
|
|
4223
4223
|
function Table({ className, ...props }) {
|
|
4224
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "table-container", className: "relative w-full overflow-x-clip", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "table", { "data-slot": "table", className:
|
|
4224
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "table-container", className: "relative w-full overflow-x-clip", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "table", { "data-slot": "table", className: _chunk37KYO2UDjs.cn.call(void 0, "w-full caption-bottom text-xs", className), ...props }) });
|
|
4225
4225
|
}
|
|
4226
4226
|
_chunk7QVYU63Ejs.__name.call(void 0, Table, "Table");
|
|
4227
4227
|
function TableHeader({ className, ...props }) {
|
|
4228
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { "data-slot": "table-header", className:
|
|
4228
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { "data-slot": "table-header", className: _chunk37KYO2UDjs.cn.call(void 0, "[&_tr]:border-b", className), ...props });
|
|
4229
4229
|
}
|
|
4230
4230
|
_chunk7QVYU63Ejs.__name.call(void 0, TableHeader, "TableHeader");
|
|
4231
4231
|
function TableBody({ className, ...props }) {
|
|
4232
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { "data-slot": "table-body", className:
|
|
4232
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { "data-slot": "table-body", className: _chunk37KYO2UDjs.cn.call(void 0, "[&_tr:last-child]:border-0", className), ...props });
|
|
4233
4233
|
}
|
|
4234
4234
|
_chunk7QVYU63Ejs.__name.call(void 0, TableBody, "TableBody");
|
|
4235
4235
|
function TableFooter({ className, ...props }) {
|
|
@@ -4237,7 +4237,7 @@ function TableFooter({ className, ...props }) {
|
|
|
4237
4237
|
"tfoot",
|
|
4238
4238
|
{
|
|
4239
4239
|
"data-slot": "table-footer",
|
|
4240
|
-
className:
|
|
4240
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", className),
|
|
4241
4241
|
...props
|
|
4242
4242
|
}
|
|
4243
4243
|
);
|
|
@@ -4248,7 +4248,7 @@ function TableRow({ className, ...props }) {
|
|
|
4248
4248
|
"tr",
|
|
4249
4249
|
{
|
|
4250
4250
|
"data-slot": "table-row",
|
|
4251
|
-
className:
|
|
4251
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "group hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", className),
|
|
4252
4252
|
...props
|
|
4253
4253
|
}
|
|
4254
4254
|
);
|
|
@@ -4259,7 +4259,7 @@ function TableHead({ className, ...props }) {
|
|
|
4259
4259
|
"th",
|
|
4260
4260
|
{
|
|
4261
4261
|
"data-slot": "table-head",
|
|
4262
|
-
className:
|
|
4262
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
4263
4263
|
"text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0",
|
|
4264
4264
|
className
|
|
4265
4265
|
),
|
|
@@ -4273,14 +4273,14 @@ function TableCell({ className, ...props }) {
|
|
|
4273
4273
|
"td",
|
|
4274
4274
|
{
|
|
4275
4275
|
"data-slot": "table-cell",
|
|
4276
|
-
className:
|
|
4276
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0", className),
|
|
4277
4277
|
...props
|
|
4278
4278
|
}
|
|
4279
4279
|
);
|
|
4280
4280
|
}
|
|
4281
4281
|
_chunk7QVYU63Ejs.__name.call(void 0, TableCell, "TableCell");
|
|
4282
4282
|
function TableCaption({ className, ...props }) {
|
|
4283
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "caption", { "data-slot": "table-caption", className:
|
|
4283
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "caption", { "data-slot": "table-caption", className: _chunk37KYO2UDjs.cn.call(void 0, "text-muted-foreground mt-4 text-xs", className), ...props });
|
|
4284
4284
|
}
|
|
4285
4285
|
_chunk7QVYU63Ejs.__name.call(void 0, TableCaption, "TableCaption");
|
|
4286
4286
|
|
|
@@ -4294,7 +4294,7 @@ function Tabs({ className, orientation = "horizontal", ...props }) {
|
|
|
4294
4294
|
{
|
|
4295
4295
|
"data-slot": "tabs",
|
|
4296
4296
|
"data-orientation": orientation,
|
|
4297
|
-
className:
|
|
4297
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "gap-2 group/tabs flex data-[orientation=horizontal]:flex-col", className),
|
|
4298
4298
|
...props
|
|
4299
4299
|
}
|
|
4300
4300
|
);
|
|
@@ -4324,7 +4324,7 @@ function TabsList({
|
|
|
4324
4324
|
{
|
|
4325
4325
|
"data-slot": "tabs-list",
|
|
4326
4326
|
"data-variant": variant,
|
|
4327
|
-
className:
|
|
4327
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, tabsListVariants({ variant }), className),
|
|
4328
4328
|
...props
|
|
4329
4329
|
}
|
|
4330
4330
|
);
|
|
@@ -4335,7 +4335,7 @@ function TabsTrigger({ className, ...props }) {
|
|
|
4335
4335
|
_tabs.Tabs.Tab,
|
|
4336
4336
|
{
|
|
4337
4337
|
"data-slot": "tabs-trigger",
|
|
4338
|
-
className:
|
|
4338
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
4339
4339
|
"gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-xs font-medium group-data-vertical/tabs:py-[calc(--spacing(1.25))] [&_svg:not([class*='size-'])]:size-3.5 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-[orientation=vertical]/tabs:w-full group-data-[orientation=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",
|
|
4340
4340
|
"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",
|
|
4341
4341
|
"data-active:bg-background dark:data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 data-active:text-foreground",
|
|
@@ -4352,7 +4352,7 @@ function TabsContent({ className, ...props }) {
|
|
|
4352
4352
|
_tabs.Tabs.Panel,
|
|
4353
4353
|
{
|
|
4354
4354
|
"data-slot": "tabs-content",
|
|
4355
|
-
className:
|
|
4355
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "text-xs/relaxed flex-1 outline-none", className),
|
|
4356
4356
|
...props
|
|
4357
4357
|
}
|
|
4358
4358
|
);
|
|
@@ -4389,7 +4389,7 @@ function Toggle({
|
|
|
4389
4389
|
size = "default",
|
|
4390
4390
|
...props
|
|
4391
4391
|
}) {
|
|
4392
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _toggle.Toggle, { "data-slot": "toggle", className:
|
|
4392
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _toggle.Toggle, { "data-slot": "toggle", className: _chunk37KYO2UDjs.cn.call(void 0, toggleVariants({ variant, size, className })), ...props });
|
|
4393
4393
|
}
|
|
4394
4394
|
_chunk7QVYU63Ejs.__name.call(void 0, Toggle, "Toggle");
|
|
4395
4395
|
|
|
@@ -4855,7 +4855,7 @@ var KanbanBoard = React8.forwardRef((props, forwardedRef) => {
|
|
|
4855
4855
|
"data-slot": "kanban-board",
|
|
4856
4856
|
...boardProps,
|
|
4857
4857
|
ref: forwardedRef,
|
|
4858
|
-
className:
|
|
4858
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
4859
4859
|
"flex size-full gap-4",
|
|
4860
4860
|
context.orientation === "horizontal" ? "flex-row" : "flex-col",
|
|
4861
4861
|
className
|
|
@@ -4894,7 +4894,7 @@ var KanbanColumn = React8.forwardRef((props, forwardedRef) => {
|
|
|
4894
4894
|
disabled,
|
|
4895
4895
|
animateLayoutChanges
|
|
4896
4896
|
});
|
|
4897
|
-
const composedRef =
|
|
4897
|
+
const composedRef = _chunk37KYO2UDjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
4898
4898
|
if (disabled) return;
|
|
4899
4899
|
setNodeRef(node);
|
|
4900
4900
|
});
|
|
@@ -4938,7 +4938,7 @@ var KanbanColumn = React8.forwardRef((props, forwardedRef) => {
|
|
|
4938
4938
|
...asHandle && !disabled ? listeners : {},
|
|
4939
4939
|
ref: composedRef,
|
|
4940
4940
|
style: composedStyle,
|
|
4941
|
-
className:
|
|
4941
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
4942
4942
|
"flex size-full w-full flex-col gap-2 rounded-lg border bg-zinc-100 p-2.5 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:bg-zinc-900",
|
|
4943
4943
|
{
|
|
4944
4944
|
"touch-none select-none": asHandle,
|
|
@@ -4961,7 +4961,7 @@ var KanbanColumnHandle = React8.forwardRef((props, forwardedRef) => {
|
|
|
4961
4961
|
const context = useKanbanContext(COLUMN_NAME);
|
|
4962
4962
|
const columnContext = useKanbanColumnContext(COLUMN_HANDLE_NAME);
|
|
4963
4963
|
const isDisabled = _nullishCoalesce(disabled, () => ( columnContext.disabled));
|
|
4964
|
-
const composedRef =
|
|
4964
|
+
const composedRef = _chunk37KYO2UDjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
4965
4965
|
if (isDisabled) return;
|
|
4966
4966
|
columnContext.setActivatorNodeRef(node);
|
|
4967
4967
|
});
|
|
@@ -4978,7 +4978,7 @@ var KanbanColumnHandle = React8.forwardRef((props, forwardedRef) => {
|
|
|
4978
4978
|
...isDisabled ? {} : columnContext.attributes,
|
|
4979
4979
|
...isDisabled ? {} : columnContext.listeners,
|
|
4980
4980
|
ref: composedRef,
|
|
4981
|
-
className:
|
|
4981
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
4982
4982
|
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
4983
4983
|
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
4984
4984
|
className
|
|
@@ -5014,7 +5014,7 @@ var KanbanItem = React8.forwardRef((props, forwardedRef) => {
|
|
|
5014
5014
|
if (value === "") {
|
|
5015
5015
|
throw new Error(`\`${ITEM_NAME}\` value cannot be an empty string`);
|
|
5016
5016
|
}
|
|
5017
|
-
const composedRef =
|
|
5017
|
+
const composedRef = _chunk37KYO2UDjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
5018
5018
|
if (disabled) return;
|
|
5019
5019
|
setNodeRef(node);
|
|
5020
5020
|
});
|
|
@@ -5049,7 +5049,7 @@ var KanbanItem = React8.forwardRef((props, forwardedRef) => {
|
|
|
5049
5049
|
...asHandle && !disabled ? listeners : {},
|
|
5050
5050
|
ref: composedRef,
|
|
5051
5051
|
style: composedStyle,
|
|
5052
|
-
className:
|
|
5052
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
5053
5053
|
"focus-visible:ring-ring focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden",
|
|
5054
5054
|
{
|
|
5055
5055
|
"touch-none select-none": asHandle,
|
|
@@ -5070,7 +5070,7 @@ var KanbanItemHandle = React8.forwardRef((props, forwardedRef) => {
|
|
|
5070
5070
|
const context = useKanbanContext(ITEM_HANDLE_NAME);
|
|
5071
5071
|
const itemContext = useKanbanItemContext(ITEM_HANDLE_NAME);
|
|
5072
5072
|
const isDisabled = _nullishCoalesce(disabled, () => ( itemContext.disabled));
|
|
5073
|
-
const composedRef =
|
|
5073
|
+
const composedRef = _chunk37KYO2UDjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
5074
5074
|
if (isDisabled) return;
|
|
5075
5075
|
itemContext.setActivatorNodeRef(node);
|
|
5076
5076
|
});
|
|
@@ -5087,7 +5087,7 @@ var KanbanItemHandle = React8.forwardRef((props, forwardedRef) => {
|
|
|
5087
5087
|
...isDisabled ? {} : itemContext.attributes,
|
|
5088
5088
|
...isDisabled ? {} : itemContext.listeners,
|
|
5089
5089
|
ref: composedRef,
|
|
5090
|
-
className:
|
|
5090
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
5091
5091
|
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
5092
5092
|
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
5093
5093
|
className
|
|
@@ -5122,7 +5122,7 @@ function KanbanOverlay(props) {
|
|
|
5122
5122
|
{
|
|
5123
5123
|
dropAnimation,
|
|
5124
5124
|
modifiers: context.modifiers,
|
|
5125
|
-
className:
|
|
5125
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, !context.flatCursor && "cursor-grabbing"),
|
|
5126
5126
|
...overlayProps,
|
|
5127
5127
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, KanbanOverlayContext.Provider, { value: true, children: context.activeId && children ? typeof children === "function" ? children({
|
|
5128
5128
|
value: context.activeId,
|
|
@@ -5139,8 +5139,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, KanbanOverlay, "KanbanOverlay");
|
|
|
5139
5139
|
|
|
5140
5140
|
|
|
5141
5141
|
var Link = React9.forwardRef(({ className, href, children, ...props }, ref) => {
|
|
5142
|
-
const NextIntlLink =
|
|
5143
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NextIntlLink, { prefetch: false, ref, href, className:
|
|
5142
|
+
const NextIntlLink = _chunkWOJIRXIPjs.getI18nLink.call(void 0, );
|
|
5143
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NextIntlLink, { prefetch: false, ref, href, className: _chunk37KYO2UDjs.cn.call(void 0, `font-medium`, className), ...props, children });
|
|
5144
5144
|
});
|
|
5145
5145
|
Link.displayName = "Link";
|
|
5146
5146
|
|
|
@@ -5254,7 +5254,7 @@ var MultiSelect = React10.forwardRef(
|
|
|
5254
5254
|
...props,
|
|
5255
5255
|
ref: triggerRef,
|
|
5256
5256
|
onClick: handleTogglePopover,
|
|
5257
|
-
className:
|
|
5257
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
5258
5258
|
"flex h-auto min-h-10 w-full items-center justify-between rounded-md border bg-inherit p-1 hover:bg-inherit [&_svg]:pointer-events-auto",
|
|
5259
5259
|
className
|
|
5260
5260
|
),
|
|
@@ -5266,7 +5266,7 @@ var MultiSelect = React10.forwardRef(
|
|
|
5266
5266
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
5267
5267
|
Badge,
|
|
5268
5268
|
{
|
|
5269
|
-
className:
|
|
5269
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, isAnimating ? "animate-bounce" : "", multiSelectVariants({ variant })),
|
|
5270
5270
|
style: { animationDuration: `${animation}s` },
|
|
5271
5271
|
children: [
|
|
5272
5272
|
IconComponent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: "mr-2 h-4 w-4" }),
|
|
@@ -5295,7 +5295,7 @@ var MultiSelect = React10.forwardRef(
|
|
|
5295
5295
|
selectedValues.length > maxCount && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
5296
5296
|
Badge,
|
|
5297
5297
|
{
|
|
5298
|
-
className:
|
|
5298
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
5299
5299
|
"text-foreground border-foreground/1 bg-transparent hover:bg-transparent",
|
|
5300
5300
|
isAnimating ? "animate-bounce" : "",
|
|
5301
5301
|
multiSelectVariants({ variant })
|
|
@@ -5378,7 +5378,7 @@ var MultiSelect = React10.forwardRef(
|
|
|
5378
5378
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5379
5379
|
"div",
|
|
5380
5380
|
{
|
|
5381
|
-
className:
|
|
5381
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
5382
5382
|
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
5383
5383
|
selectedValues.length === options.length ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
5384
5384
|
),
|
|
@@ -5401,7 +5401,7 @@ var MultiSelect = React10.forwardRef(
|
|
|
5401
5401
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5402
5402
|
"div",
|
|
5403
5403
|
{
|
|
5404
|
-
className:
|
|
5404
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
5405
5405
|
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
5406
5406
|
isSelected ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
5407
5407
|
),
|
|
@@ -5438,7 +5438,7 @@ var MultiSelect = React10.forwardRef(
|
|
|
5438
5438
|
animation > 0 && selectedValues.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5439
5439
|
_lucidereact.WandSparkles,
|
|
5440
5440
|
{
|
|
5441
|
-
className:
|
|
5441
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
5442
5442
|
"text-foreground bg-background my-2 h-3 w-3 cursor-pointer",
|
|
5443
5443
|
isAnimating ? "" : "text-muted-foreground"
|
|
5444
5444
|
),
|
|
@@ -5513,7 +5513,7 @@ var CommandEmpty2 = _react.forwardRef.call(void 0,
|
|
|
5513
5513
|
"div",
|
|
5514
5514
|
{
|
|
5515
5515
|
ref: forwardedRef,
|
|
5516
|
-
className:
|
|
5516
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "py-6 text-center text-sm", className),
|
|
5517
5517
|
"cmdk-empty": "",
|
|
5518
5518
|
role: "presentation",
|
|
5519
5519
|
...props
|
|
@@ -5759,7 +5759,7 @@ var MultipleSelector = React11.forwardRef(
|
|
|
5759
5759
|
handleKeyDown(e);
|
|
5760
5760
|
_optionalChain([commandProps, 'optionalAccess', _91 => _91.onKeyDown, 'optionalCall', _92 => _92(e)]);
|
|
5761
5761
|
},
|
|
5762
|
-
className:
|
|
5762
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "h-auto overflow-visible bg-transparent!", _optionalChain([commandProps, 'optionalAccess', _93 => _93.className])),
|
|
5763
5763
|
shouldFilter: _optionalChain([commandProps, 'optionalAccess', _94 => _94.shouldFilter]) !== void 0 ? commandProps.shouldFilter : !onSearch,
|
|
5764
5764
|
filter: commandFilter(),
|
|
5765
5765
|
children: [
|
|
@@ -5767,7 +5767,7 @@ var MultipleSelector = React11.forwardRef(
|
|
|
5767
5767
|
"div",
|
|
5768
5768
|
{
|
|
5769
5769
|
ref: containerRef,
|
|
5770
|
-
className:
|
|
5770
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
5771
5771
|
"flex min-h-10 items-start justify-between rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2 md:text-sm",
|
|
5772
5772
|
{
|
|
5773
5773
|
"cursor-text": !disabled && selected.length !== 0
|
|
@@ -5785,7 +5785,7 @@ var MultipleSelector = React11.forwardRef(
|
|
|
5785
5785
|
Badge,
|
|
5786
5786
|
{
|
|
5787
5787
|
variant: "secondary",
|
|
5788
|
-
className:
|
|
5788
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
5789
5789
|
"data-[disabled]:bg-muted-foreground data-[disabled]:text-muted data-[disabled]:hover:bg-muted-foreground",
|
|
5790
5790
|
"data-[fixed]:bg-muted-foreground data-[fixed]:text-muted data-[fixed]:hover:bg-muted-foreground",
|
|
5791
5791
|
badgeClassName
|
|
@@ -5798,7 +5798,7 @@ var MultipleSelector = React11.forwardRef(
|
|
|
5798
5798
|
"button",
|
|
5799
5799
|
{
|
|
5800
5800
|
type: "button",
|
|
5801
|
-
className:
|
|
5801
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
5802
5802
|
"ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
5803
5803
|
(disabled || option.fixed) && "hidden"
|
|
5804
5804
|
),
|
|
@@ -5820,7 +5820,7 @@ var MultipleSelector = React11.forwardRef(
|
|
|
5820
5820
|
option.value
|
|
5821
5821
|
);
|
|
5822
5822
|
}),
|
|
5823
|
-
hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { className:
|
|
5823
|
+
hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { className: _chunk37KYO2UDjs.cn.call(void 0, "bg-transparent text-foreground hover:bg-transparent", badgeClassName), children: `+${hiddenCount} more` }),
|
|
5824
5824
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5825
5825
|
_cmdk.Command.Input,
|
|
5826
5826
|
{
|
|
@@ -5843,7 +5843,7 @@ var MultipleSelector = React11.forwardRef(
|
|
|
5843
5843
|
_optionalChain([inputProps, 'optionalAccess', _102 => _102.onFocus, 'optionalCall', _103 => _103(event)]);
|
|
5844
5844
|
},
|
|
5845
5845
|
placeholder: hidePlaceholderWhenSelected && selected.length !== 0 ? "" : placeholder,
|
|
5846
|
-
className:
|
|
5846
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
5847
5847
|
"flex-1 self-baseline bg-transparent outline-none placeholder:text-muted-foreground text-foreground caret-foreground",
|
|
5848
5848
|
{
|
|
5849
5849
|
"w-full": hidePlaceholderWhenSelected,
|
|
@@ -5863,14 +5863,14 @@ var MultipleSelector = React11.forwardRef(
|
|
|
5863
5863
|
setSelected(selected.filter((s) => s.fixed));
|
|
5864
5864
|
_optionalChain([onChange, 'optionalCall', _105 => _105(selected.filter((s) => s.fixed))]);
|
|
5865
5865
|
},
|
|
5866
|
-
className:
|
|
5866
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
5867
5867
|
"size-5",
|
|
5868
5868
|
(hideClearAllButton || disabled || selected.length < 1 || selected.filter((s) => s.fixed).length === selected.length) && "hidden"
|
|
5869
5869
|
),
|
|
5870
5870
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.X, {})
|
|
5871
5871
|
}
|
|
5872
5872
|
),
|
|
5873
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className:
|
|
5873
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: _chunk37KYO2UDjs.cn.call(void 0, "size-5 text-muted-foreground/50", selected.length >= 1 && "hidden") })
|
|
5874
5874
|
] })
|
|
5875
5875
|
]
|
|
5876
5876
|
}
|
|
@@ -5917,7 +5917,7 @@ var MultipleSelector = React11.forwardRef(
|
|
|
5917
5917
|
setSelected(newOptions);
|
|
5918
5918
|
_optionalChain([onChange, 'optionalCall', _110 => _110(newOptions)]);
|
|
5919
5919
|
},
|
|
5920
|
-
className:
|
|
5920
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
5921
5921
|
"cursor-pointer bg-transparent hover:bg-accent data-selected:bg-transparent data-selected:hover:bg-accent",
|
|
5922
5922
|
option.disable && "cursor-default text-muted-foreground"
|
|
5923
5923
|
),
|
|
@@ -5981,7 +5981,7 @@ var MultipleSelector = React11.forwardRef(
|
|
|
5981
5981
|
setSelected(newOptions);
|
|
5982
5982
|
_optionalChain([onChange, 'optionalCall', _115 => _115(newOptions)]);
|
|
5983
5983
|
},
|
|
5984
|
-
className:
|
|
5984
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
5985
5985
|
"cursor-pointer bg-transparent hover:bg-accent data-selected:bg-transparent data-selected:hover:bg-accent",
|
|
5986
5986
|
option.disable && "cursor-default text-muted-foreground"
|
|
5987
5987
|
),
|
|
@@ -6015,7 +6015,7 @@ function EntityAvatar({
|
|
|
6015
6015
|
}) {
|
|
6016
6016
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Avatar, { className: `${className} ${fallbackClassName}`, children: [
|
|
6017
6017
|
image ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: image, alt: name }) : null,
|
|
6018
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { className: fallbackClassName, children:
|
|
6018
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { className: fallbackClassName, children: _chunk37KYO2UDjs.getInitials.call(void 0, name) })
|
|
6019
6019
|
] });
|
|
6020
6020
|
}
|
|
6021
6021
|
_chunk7QVYU63Ejs.__name.call(void 0, EntityAvatar, "EntityAvatar");
|
|
@@ -6144,7 +6144,7 @@ function useDataListRetriever(params) {
|
|
|
6144
6144
|
const isFetchingRef = _react.useRef.call(void 0, false);
|
|
6145
6145
|
const isPaginatingRef = _react.useRef.call(void 0, false);
|
|
6146
6146
|
const resolvedType = params.module;
|
|
6147
|
-
const resolvedService =
|
|
6147
|
+
const resolvedService = _chunk37KYO2UDjs.ClientAbstractService;
|
|
6148
6148
|
const parsePageParams = _react.useCallback.call(void 0, (url) => {
|
|
6149
6149
|
if (!url) return null;
|
|
6150
6150
|
try {
|
|
@@ -6263,7 +6263,7 @@ function useDataListRetriever(params) {
|
|
|
6263
6263
|
setIsLoaded(true);
|
|
6264
6264
|
setNextPage(nextRef.next ? nextRef.next : void 0);
|
|
6265
6265
|
setPreviousPage(previousRef.previous ? previousRef.previous : void 0);
|
|
6266
|
-
const apiTotal = _nullishCoalesce(totalRef.total, () => (
|
|
6266
|
+
const apiTotal = _nullishCoalesce(totalRef.total, () => ( _chunk37KYO2UDjs.getLastApiTotal.call(void 0, )));
|
|
6267
6267
|
if (apiTotal !== void 0) {
|
|
6268
6268
|
setTotal(apiTotal);
|
|
6269
6269
|
}
|
|
@@ -6880,7 +6880,7 @@ function usePageTracker() {
|
|
|
6880
6880
|
const moduleName = pathParts[0];
|
|
6881
6881
|
const entityId = pathParts.length > 1 ? pathParts[1] : null;
|
|
6882
6882
|
if (!entityId) return;
|
|
6883
|
-
const trackablePages =
|
|
6883
|
+
const trackablePages = _chunkWOJIRXIPjs.getTrackablePages.call(void 0, );
|
|
6884
6884
|
const foundModule = trackablePages.find((mod) => mod.pageUrl === `/${moduleName}`);
|
|
6885
6885
|
if (!foundModule) return;
|
|
6886
6886
|
const baseUrl = `/${moduleName}/${entityId}`;
|
|
@@ -6927,7 +6927,7 @@ function usePushNotifications() {
|
|
|
6927
6927
|
try {
|
|
6928
6928
|
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _149 => _149.id])}`;
|
|
6929
6929
|
const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
|
|
6930
|
-
const registration = await navigator.serviceWorker.register(`${
|
|
6930
|
+
const registration = await navigator.serviceWorker.register(`${_chunkWOJIRXIPjs.getAppUrl.call(void 0, )}/sw.js`);
|
|
6931
6931
|
let permission = Notification.permission;
|
|
6932
6932
|
if (permission === "default") {
|
|
6933
6933
|
permission = await Notification.requestPermission();
|
|
@@ -6952,7 +6952,7 @@ function usePushNotifications() {
|
|
|
6952
6952
|
};
|
|
6953
6953
|
const subscriptionHash = btoa(JSON.stringify(plainSubscription));
|
|
6954
6954
|
if (lastRegisteredSubscription !== subscriptionHash) {
|
|
6955
|
-
await
|
|
6955
|
+
await _chunk37KYO2UDjs.PushService.register({ data: plainSubscription });
|
|
6956
6956
|
sessionStorage.setItem(sessionKey, subscriptionHash);
|
|
6957
6957
|
}
|
|
6958
6958
|
} catch (error) {
|
|
@@ -6960,7 +6960,7 @@ function usePushNotifications() {
|
|
|
6960
6960
|
}
|
|
6961
6961
|
}
|
|
6962
6962
|
}, "register");
|
|
6963
|
-
if (currentUser && !hasRole(
|
|
6963
|
+
if (currentUser && !hasRole(_chunkWOJIRXIPjs.getRoleId.call(void 0, ).Administrator)) register();
|
|
6964
6964
|
}, [currentUser]);
|
|
6965
6965
|
}
|
|
6966
6966
|
_chunk7QVYU63Ejs.__name.call(void 0, usePushNotifications, "usePushNotifications");
|
|
@@ -7035,7 +7035,7 @@ function useSocket({ token }) {
|
|
|
7035
7035
|
});
|
|
7036
7036
|
}, "handleMessage");
|
|
7037
7037
|
const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
|
|
7038
|
-
const notification =
|
|
7038
|
+
const notification = _chunk37KYO2UDjs.rehydrate.call(void 0, _chunk37KYO2UDjs.Modules.Notification, data);
|
|
7039
7039
|
if (notification) {
|
|
7040
7040
|
setSocketNotifications((prev) => {
|
|
7041
7041
|
const newNotifications = [...prev, notification];
|
|
@@ -7172,20 +7172,20 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
7172
7172
|
if (!token && dehydratedUser) setDehydratedUser(null);
|
|
7173
7173
|
}, [dehydratedUser, setDehydratedUser]);
|
|
7174
7174
|
const matchUrlToModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (_params) => {
|
|
7175
|
-
const moduleKeys = Object.getOwnPropertyNames(
|
|
7175
|
+
const moduleKeys = Object.getOwnPropertyNames(_chunk37KYO2UDjs.Modules).filter(
|
|
7176
7176
|
(key) => key !== "prototype" && key !== "_factory" && key !== "length" && key !== "name"
|
|
7177
7177
|
);
|
|
7178
7178
|
const matchedModuleKey = moduleKeys.find((key) => {
|
|
7179
|
-
const descriptor2 = Object.getOwnPropertyDescriptor(
|
|
7179
|
+
const descriptor2 = Object.getOwnPropertyDescriptor(_chunk37KYO2UDjs.Modules, key);
|
|
7180
7180
|
if (!_optionalChain([descriptor2, 'optionalAccess', _154 => _154.get])) return false;
|
|
7181
|
-
const selectedModule = descriptor2.get.call(
|
|
7181
|
+
const selectedModule = descriptor2.get.call(_chunk37KYO2UDjs.Modules);
|
|
7182
7182
|
return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _155 => _155.pageUrl, 'optionalAccess', _156 => _156.toLowerCase, 'call', _157 => _157()]));
|
|
7183
7183
|
});
|
|
7184
7184
|
if (!matchedModuleKey) return void 0;
|
|
7185
|
-
const descriptor = Object.getOwnPropertyDescriptor(
|
|
7186
|
-
return _optionalChain([descriptor, 'optionalAccess', _158 => _158.get, 'optionalAccess', _159 => _159.call, 'call', _160 => _160(
|
|
7185
|
+
const descriptor = Object.getOwnPropertyDescriptor(_chunk37KYO2UDjs.Modules, matchedModuleKey);
|
|
7186
|
+
return _optionalChain([descriptor, 'optionalAccess', _158 => _158.get, 'optionalAccess', _159 => _159.call, 'call', _160 => _160(_chunk37KYO2UDjs.Modules)]);
|
|
7187
7187
|
}, "matchUrlToModule");
|
|
7188
|
-
const currentUser = dehydratedUser ?
|
|
7188
|
+
const currentUser = dehydratedUser ? _chunk37KYO2UDjs.rehydrate.call(void 0, _chunk37KYO2UDjs.Modules.User, dehydratedUser) : null;
|
|
7189
7189
|
const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _161 => _161.company]), () => ( null));
|
|
7190
7190
|
const setUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (user) => {
|
|
7191
7191
|
if (user) setDehydratedUser(user.dehydrate());
|
|
@@ -7196,21 +7196,21 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
7196
7196
|
return !!_optionalChain([currentUser, 'access', _162 => _162.roles, 'optionalAccess', _163 => _163.some, 'call', _164 => _164((userRole) => userRole.id === roleId)]);
|
|
7197
7197
|
}, "hasRole");
|
|
7198
7198
|
const hasAccesToFeature = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (featureIdentifier) => {
|
|
7199
|
-
if (hasRole(
|
|
7199
|
+
if (hasRole(_chunkWOJIRXIPjs.getRoleId.call(void 0, ).Administrator)) return true;
|
|
7200
7200
|
if (!company) return false;
|
|
7201
7201
|
return company.features.some((feature) => feature.id === featureIdentifier);
|
|
7202
7202
|
}, "hasAccesToFeature");
|
|
7203
7203
|
function hasPermissionToModule(params) {
|
|
7204
7204
|
if (!currentUser) return false;
|
|
7205
7205
|
if (!!params.module.feature && !hasAccesToFeature(params.module.feature)) return false;
|
|
7206
|
-
return
|
|
7206
|
+
return _chunk37KYO2UDjs.checkPermissions.call(void 0, { module: params.module, action: params.action, data: params.data, user: currentUser });
|
|
7207
7207
|
}
|
|
7208
7208
|
_chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModule, "hasPermissionToModule");
|
|
7209
7209
|
function hasPermissionToModules(params) {
|
|
7210
7210
|
if (!currentUser) return false;
|
|
7211
7211
|
if (!params.modules.every((module) => !module.feature || hasAccesToFeature(module.feature))) return false;
|
|
7212
7212
|
return params.modules.every(
|
|
7213
|
-
(module) =>
|
|
7213
|
+
(module) => _chunk37KYO2UDjs.checkPermissions.call(void 0, { module, action: params.action, data: params.data, user: currentUser })
|
|
7214
7214
|
);
|
|
7215
7215
|
}
|
|
7216
7216
|
_chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModules, "hasPermissionToModules");
|
|
@@ -7231,13 +7231,13 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
7231
7231
|
}
|
|
7232
7232
|
setIsRefreshing(true);
|
|
7233
7233
|
try {
|
|
7234
|
-
const fullUser = await
|
|
7234
|
+
const fullUser = await _chunk37KYO2UDjs.UserService.findFullUser();
|
|
7235
7235
|
if (fullUser) {
|
|
7236
7236
|
const dehydrated = fullUser.dehydrate();
|
|
7237
7237
|
setDehydratedUser(dehydrated);
|
|
7238
7238
|
setUser(fullUser);
|
|
7239
7239
|
if (!_optionalChain([options, 'optionalAccess', _165 => _165.skipCookieUpdate])) {
|
|
7240
|
-
await _optionalChain([
|
|
7240
|
+
await _optionalChain([_chunk37KYO2UDjs.getTokenHandler.call(void 0, ), 'optionalAccess', _166 => _166.updateToken, 'call', _167 => _167({
|
|
7241
7241
|
userId: fullUser.id,
|
|
7242
7242
|
companyId: _optionalChain([fullUser, 'access', _168 => _168.company, 'optionalAccess', _169 => _169.id]),
|
|
7243
7243
|
roles: fullUser.roles.map((role) => role.id),
|
|
@@ -7325,7 +7325,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
7325
7325
|
const [existingUsers, setExistingUsers] = _react.useState.call(void 0, null);
|
|
7326
7326
|
_react.useEffect.call(void 0, () => {
|
|
7327
7327
|
const fetchExistingUsers = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
7328
|
-
setExistingUsers(await
|
|
7328
|
+
setExistingUsers(await _chunk37KYO2UDjs.UserService.findMany({ roleId: role.id, fetchAll: true }));
|
|
7329
7329
|
}, "fetchExistingUsers");
|
|
7330
7330
|
if (show) {
|
|
7331
7331
|
setExistingUsers(null);
|
|
@@ -7333,7 +7333,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
7333
7333
|
}
|
|
7334
7334
|
}, [show]);
|
|
7335
7335
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (user) => {
|
|
7336
|
-
await
|
|
7336
|
+
await _chunk37KYO2UDjs.RoleService.addUserToRole({
|
|
7337
7337
|
roleId: role.id,
|
|
7338
7338
|
userId: user.id
|
|
7339
7339
|
});
|
|
@@ -7349,9 +7349,9 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
7349
7349
|
}, "addUserToRole");
|
|
7350
7350
|
const data = useDataListRetriever({
|
|
7351
7351
|
ready: !!company && show,
|
|
7352
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
7352
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk37KYO2UDjs.UserService.findAllUsers(params), "retriever"),
|
|
7353
7353
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _180 => _180.id]) },
|
|
7354
|
-
module:
|
|
7354
|
+
module: _chunk37KYO2UDjs.Modules.User
|
|
7355
7355
|
});
|
|
7356
7356
|
_react.useEffect.call(void 0, () => {
|
|
7357
7357
|
if (!!company && show) {
|
|
@@ -7454,10 +7454,10 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserAvatarEditor, "UserAvatarEditor");
|
|
|
7454
7454
|
function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
7455
7455
|
const { currentUser, company } = useCurrentUserContext();
|
|
7456
7456
|
const generateUrl = usePageUrlGenerator();
|
|
7457
|
-
const router =
|
|
7457
|
+
const router = _chunkWOJIRXIPjs.useI18nRouter.call(void 0, );
|
|
7458
7458
|
const _t = _nextintl.useTranslations.call(void 0, );
|
|
7459
7459
|
let cId;
|
|
7460
|
-
if (_optionalChain([currentUser, 'optionalAccess', _184 => _184.roles, 'access', _185 => _185.find, 'call', _186 => _186((role) => role.id ===
|
|
7460
|
+
if (_optionalChain([currentUser, 'optionalAccess', _184 => _184.roles, 'access', _185 => _185.find, 'call', _186 => _186((role) => role.id === _chunkWOJIRXIPjs.getRoleId.call(void 0, ).Administrator)]) && companyId) {
|
|
7461
7461
|
cId = companyId;
|
|
7462
7462
|
} else {
|
|
7463
7463
|
if (!company) return;
|
|
@@ -7467,8 +7467,8 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
7467
7467
|
CommonDeleter,
|
|
7468
7468
|
{
|
|
7469
7469
|
type: `users`,
|
|
7470
|
-
deleteFunction: () =>
|
|
7471
|
-
() => onDeleted ? onDeleted() : router.push(generateUrl({ page:
|
|
7470
|
+
deleteFunction: () => _chunk37KYO2UDjs.UserService.delete({ userId: user.id, companyId: cId }).then(
|
|
7471
|
+
() => onDeleted ? onDeleted() : router.push(generateUrl({ page: _chunk37KYO2UDjs.Modules.User }))
|
|
7472
7472
|
)
|
|
7473
7473
|
}
|
|
7474
7474
|
);
|
|
@@ -7476,7 +7476,7 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
7476
7476
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleterInternal, "UserDeleterInternal");
|
|
7477
7477
|
function UserDeleter(props) {
|
|
7478
7478
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
7479
|
-
if (!hasPermissionToModule({ module:
|
|
7479
|
+
if (!hasPermissionToModule({ module: _chunk37KYO2UDjs.Modules.User, action: "delete" /* Delete */, data: props.user })) return null;
|
|
7480
7480
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserDeleterInternal, { ...props });
|
|
7481
7481
|
}
|
|
7482
7482
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleter, "UserDeleter");
|
|
@@ -7508,7 +7508,7 @@ function UserEditorInternal({
|
|
|
7508
7508
|
setUser
|
|
7509
7509
|
} = useCurrentUserContext();
|
|
7510
7510
|
const { company: companyFromContext } = useCompanyContext();
|
|
7511
|
-
const router =
|
|
7511
|
+
const router = _chunkWOJIRXIPjs.useI18nRouter.call(void 0, );
|
|
7512
7512
|
const [roles, setRoles] = _react.useState.call(void 0, []);
|
|
7513
7513
|
const [file, setFile] = _react.useState.call(void 0, null);
|
|
7514
7514
|
const [contentType, setContentType] = _react.useState.call(void 0, null);
|
|
@@ -7520,11 +7520,11 @@ function UserEditorInternal({
|
|
|
7520
7520
|
}, [company]);
|
|
7521
7521
|
const handleDialogOpenChange = _react.useCallback.call(void 0,
|
|
7522
7522
|
(open) => {
|
|
7523
|
-
if (open && (company || _optionalChain([currentUser, 'optionalAccess', _187 => _187.roles, 'access', _188 => _188.find, 'call', _189 => _189((role) => role.id ===
|
|
7523
|
+
if (open && (company || _optionalChain([currentUser, 'optionalAccess', _187 => _187.roles, 'access', _188 => _188.find, 'call', _189 => _189((role) => role.id === _chunkWOJIRXIPjs.getRoleId.call(void 0, ).Administrator)])) && roles.length === 0) {
|
|
7524
7524
|
async function fetchRoles() {
|
|
7525
|
-
const allRoles = await
|
|
7525
|
+
const allRoles = await _chunk37KYO2UDjs.RoleService.findAllRoles({});
|
|
7526
7526
|
const availableRoles = allRoles.filter(
|
|
7527
|
-
(role) => role.id !==
|
|
7527
|
+
(role) => role.id !== _chunkWOJIRXIPjs.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _190 => _190.features, 'access', _191 => _191.some, 'call', _192 => _192((feature) => feature.id === _optionalChain([role, 'access', _193 => _193.requiredFeature, 'optionalAccess', _194 => _194.id]))]))
|
|
7528
7528
|
);
|
|
7529
7529
|
setRoles(availableRoles);
|
|
7530
7530
|
}
|
|
@@ -7581,7 +7581,7 @@ function UserEditorInternal({
|
|
|
7581
7581
|
resolver: _zod.zodResolver.call(void 0, formSchema),
|
|
7582
7582
|
defaultValues: getDefaultValues()
|
|
7583
7583
|
});
|
|
7584
|
-
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _206 => _206.id]) === _optionalChain([user, 'optionalAccess', _207 => _207.id]) && hasRole(
|
|
7584
|
+
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _206 => _206.id]) === _optionalChain([user, 'optionalAccess', _207 => _207.id]) && hasRole(_chunkWOJIRXIPjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunk37KYO2UDjs.Modules.User, action: "update" /* Update */ }) || hasRole(_chunkWOJIRXIPjs.getRoleId.call(void 0, ).Administrator));
|
|
7585
7585
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7586
7586
|
EditorSheet,
|
|
7587
7587
|
{
|
|
@@ -7589,13 +7589,13 @@ function UserEditorInternal({
|
|
|
7589
7589
|
entityType: t(`entities.users`, { count: 1 }),
|
|
7590
7590
|
entityName: _optionalChain([user, 'optionalAccess', _208 => _208.name]),
|
|
7591
7591
|
isEdit: !!user,
|
|
7592
|
-
module:
|
|
7592
|
+
module: _chunk37KYO2UDjs.Modules.User,
|
|
7593
7593
|
propagateChanges,
|
|
7594
7594
|
size: "md",
|
|
7595
7595
|
onSubmit: async (values) => {
|
|
7596
7596
|
if (!user) {
|
|
7597
7597
|
try {
|
|
7598
|
-
const existingUser = await
|
|
7598
|
+
const existingUser = await _chunk37KYO2UDjs.UserService.findByEmail({ email: values.email });
|
|
7599
7599
|
if (existingUser) {
|
|
7600
7600
|
form.setError("email", {
|
|
7601
7601
|
type: "manual",
|
|
@@ -7610,7 +7610,7 @@ function UserEditorInternal({
|
|
|
7610
7610
|
}
|
|
7611
7611
|
}
|
|
7612
7612
|
if (values.avatar && contentType && file) {
|
|
7613
|
-
const s3 = await
|
|
7613
|
+
const s3 = await _chunk37KYO2UDjs.S3Service.getPreSignedUrl({
|
|
7614
7614
|
key: values.avatar,
|
|
7615
7615
|
contentType,
|
|
7616
7616
|
isPublic: true
|
|
@@ -7638,7 +7638,7 @@ function UserEditorInternal({
|
|
|
7638
7638
|
companyId: company.id,
|
|
7639
7639
|
adminCreated
|
|
7640
7640
|
};
|
|
7641
|
-
const updatedUser = user ? await
|
|
7641
|
+
const updatedUser = user ? await _chunk37KYO2UDjs.UserService.update(payload) : await _chunk37KYO2UDjs.UserService.create(payload);
|
|
7642
7642
|
if (_optionalChain([currentUser, 'optionalAccess', _209 => _209.id]) === updatedUser.id) setUser(updatedUser);
|
|
7643
7643
|
return updatedUser;
|
|
7644
7644
|
},
|
|
@@ -7743,7 +7743,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserEditorInternal, "UserEditorInternal");
|
|
|
7743
7743
|
function UserEditor(props) {
|
|
7744
7744
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
7745
7745
|
if (!hasPermissionToModule({
|
|
7746
|
-
module:
|
|
7746
|
+
module: _chunk37KYO2UDjs.Modules.User,
|
|
7747
7747
|
action: props.user ? "update" /* Update */ : "create" /* Create */,
|
|
7748
7748
|
data: props.user
|
|
7749
7749
|
}))
|
|
@@ -7832,7 +7832,7 @@ function CommonAssociationCommandDialog({
|
|
|
7832
7832
|
_chunk7QVYU63Ejs.__name.call(void 0, CommonAssociationCommandDialog, "CommonAssociationCommandDialog");
|
|
7833
7833
|
var triggerAssociationToast = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
7834
7834
|
if (params.level) {
|
|
7835
|
-
|
|
7835
|
+
_chunk37KYO2UDjs.showToast.call(void 0,
|
|
7836
7836
|
params.t(`common.association.label`, {
|
|
7837
7837
|
source: params.source,
|
|
7838
7838
|
destination: params.destination
|
|
@@ -7848,7 +7848,7 @@ var triggerAssociationToast = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
7848
7848
|
}
|
|
7849
7849
|
);
|
|
7850
7850
|
} else {
|
|
7851
|
-
|
|
7851
|
+
_chunk37KYO2UDjs.showToast.call(void 0,
|
|
7852
7852
|
params.t(`common.association.label`, {
|
|
7853
7853
|
source: params.source,
|
|
7854
7854
|
destination: params.destination
|
|
@@ -7900,7 +7900,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ErrorDetails, "ErrorDetails");
|
|
|
7900
7900
|
|
|
7901
7901
|
// src/components/errors/errorToast.ts
|
|
7902
7902
|
function errorToast(params) {
|
|
7903
|
-
|
|
7903
|
+
_chunk37KYO2UDjs.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess', _210 => _210.title]), () => ( "Error")), {
|
|
7904
7904
|
description: params.error instanceof Error ? params.error.message : String(params.error)
|
|
7905
7905
|
});
|
|
7906
7906
|
}
|
|
@@ -7909,8 +7909,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, errorToast, "errorToast");
|
|
|
7909
7909
|
// src/components/forms/CommonDeleter.tsx
|
|
7910
7910
|
|
|
7911
7911
|
function CommonDeleter({ deleteFunction, redirectTo, type, forceShow, testId }) {
|
|
7912
|
-
const t =
|
|
7913
|
-
const router =
|
|
7912
|
+
const t = _chunkWOJIRXIPjs.useI18nTranslations.call(void 0, );
|
|
7913
|
+
const router = _chunkWOJIRXIPjs.useI18nRouter.call(void 0, );
|
|
7914
7914
|
const [open, setOpen] = _react.useState.call(void 0, forceShow || false);
|
|
7915
7915
|
const [isDeleting, setIsDeleting] = _react.useState.call(void 0, false);
|
|
7916
7916
|
const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
@@ -8231,8 +8231,8 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
8231
8231
|
align = "start",
|
|
8232
8232
|
className
|
|
8233
8233
|
}) => {
|
|
8234
|
-
const locale =
|
|
8235
|
-
const dateFnsLocale =
|
|
8234
|
+
const locale = _chunkWOJIRXIPjs.useI18nLocale.call(void 0, );
|
|
8235
|
+
const dateFnsLocale = _chunkWOJIRXIPjs.useI18nDateFnsLocale.call(void 0, );
|
|
8236
8236
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
8237
8237
|
const [displayMonth, setDisplayMonth] = _react.useState.call(void 0, () => value || /* @__PURE__ */ new Date());
|
|
8238
8238
|
const dateFormatter = _react.useMemo.call(void 0,
|
|
@@ -8295,7 +8295,7 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
8295
8295
|
}, "handleClear");
|
|
8296
8296
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open: isOpen, onOpenChange: setIsOpen, children: [
|
|
8297
8297
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { children }),
|
|
8298
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className:
|
|
8298
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className: _chunk37KYO2UDjs.cn.call(void 0, "p-0", className), align, onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "p-3", children: [
|
|
8299
8299
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative mb-3", children: [
|
|
8300
8300
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8301
8301
|
Input,
|
|
@@ -8411,13 +8411,13 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
8411
8411
|
setDate(range);
|
|
8412
8412
|
}
|
|
8413
8413
|
}, "handleSelect");
|
|
8414
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
8414
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk37KYO2UDjs.cn.call(void 0, "grid gap-2"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, children: [
|
|
8415
8415
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8416
8416
|
Button,
|
|
8417
8417
|
{
|
|
8418
8418
|
id: "date",
|
|
8419
8419
|
variant: "outline",
|
|
8420
|
-
className:
|
|
8420
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
|
|
8421
8421
|
children: [
|
|
8422
8422
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
|
|
8423
8423
|
_optionalChain([date, 'optionalAccess', _230 => _230.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -8541,7 +8541,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
8541
8541
|
(acceptedFiles, rejectedFiles) => {
|
|
8542
8542
|
const files = acceptedFiles;
|
|
8543
8543
|
if (!files) {
|
|
8544
|
-
|
|
8544
|
+
_chunk37KYO2UDjs.showError.call(void 0, t("common.errors.file"), {
|
|
8545
8545
|
description: t("common.errors.file_large")
|
|
8546
8546
|
});
|
|
8547
8547
|
return;
|
|
@@ -8559,13 +8559,13 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
8559
8559
|
if (rejectedFiles.length > 0) {
|
|
8560
8560
|
for (let i = 0; i < rejectedFiles.length; i++) {
|
|
8561
8561
|
if (_optionalChain([rejectedFiles, 'access', _236 => _236[i], 'access', _237 => _237.errors, 'access', _238 => _238[0], 'optionalAccess', _239 => _239.code]) === "file-too-large") {
|
|
8562
|
-
|
|
8562
|
+
_chunk37KYO2UDjs.showError.call(void 0, t("common.errors.file"), {
|
|
8563
8563
|
description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
|
|
8564
8564
|
});
|
|
8565
8565
|
break;
|
|
8566
8566
|
}
|
|
8567
8567
|
if (_optionalChain([rejectedFiles, 'access', _240 => _240[i], 'access', _241 => _241.errors, 'access', _242 => _242[0], 'optionalAccess', _243 => _243.message])) {
|
|
8568
|
-
|
|
8568
|
+
_chunk37KYO2UDjs.showError.call(void 0, t(`common.errors.file`), {
|
|
8569
8569
|
description: rejectedFiles[i].errors[0].message
|
|
8570
8570
|
});
|
|
8571
8571
|
break;
|
|
@@ -8609,7 +8609,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
8609
8609
|
ref,
|
|
8610
8610
|
tabIndex: 0,
|
|
8611
8611
|
onKeyDownCapture: handleKeyDown,
|
|
8612
|
-
className:
|
|
8612
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
8613
8613
|
"grid w-full overflow-hidden focus:outline-none",
|
|
8614
8614
|
className,
|
|
8615
8615
|
// Original className from props
|
|
@@ -8633,12 +8633,12 @@ var FileUploaderContent = _react.forwardRef.call(void 0,
|
|
|
8633
8633
|
({ children, className, ...props }, ref) => {
|
|
8634
8634
|
const { orientation } = useFileUpload();
|
|
8635
8635
|
const containerRef = _react.useRef.call(void 0, null);
|
|
8636
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
8636
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk37KYO2UDjs.cn.call(void 0, "w-full px-1"), ref: containerRef, "aria-description": "content file holder", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8637
8637
|
"div",
|
|
8638
8638
|
{
|
|
8639
8639
|
...props,
|
|
8640
8640
|
ref,
|
|
8641
|
-
className:
|
|
8641
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
8642
8642
|
"flex gap-1 rounded-xl",
|
|
8643
8643
|
orientation === "horizontal" ? "flex-raw flex-wrap" : "flex-col",
|
|
8644
8644
|
className
|
|
@@ -8658,7 +8658,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
8658
8658
|
"div",
|
|
8659
8659
|
{
|
|
8660
8660
|
ref,
|
|
8661
|
-
className:
|
|
8661
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
8662
8662
|
buttonVariants({ variant: "ghost" }),
|
|
8663
8663
|
"relative h-6 cursor-pointer justify-between p-1",
|
|
8664
8664
|
className,
|
|
@@ -8671,7 +8671,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
8671
8671
|
"button",
|
|
8672
8672
|
{
|
|
8673
8673
|
type: "button",
|
|
8674
|
-
className:
|
|
8674
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "absolute", direction === "rtl" ? "top-1 left-1" : "top-1 right-1"),
|
|
8675
8675
|
onClick: () => removeFileFromSet(index),
|
|
8676
8676
|
children: [
|
|
8677
8677
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: t(`common.remove_item`, { index }) }),
|
|
@@ -8695,12 +8695,12 @@ var FileInput = _react.forwardRef.call(void 0,
|
|
|
8695
8695
|
{
|
|
8696
8696
|
ref,
|
|
8697
8697
|
...props,
|
|
8698
|
-
className:
|
|
8698
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, `relative w-full ${isLOF ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`, className),
|
|
8699
8699
|
children: [
|
|
8700
8700
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8701
8701
|
"div",
|
|
8702
8702
|
{
|
|
8703
|
-
className:
|
|
8703
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
8704
8704
|
"w-full rounded-lg duration-300 ease-in-out",
|
|
8705
8705
|
// Simpler border logic: if parent is drag-active, it controls the border.
|
|
8706
8706
|
// Otherwise, FileInput can show its own accept/reject/default border.
|
|
@@ -8794,7 +8794,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, FormCheckbox, "FormCheckbox");
|
|
|
8794
8794
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
8795
8795
|
|
|
8796
8796
|
|
|
8797
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
8797
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-DXHROT4C.js"))), {
|
|
8798
8798
|
ssr: false
|
|
8799
8799
|
});
|
|
8800
8800
|
var BlockNoteEditorContainer = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -8855,8 +8855,8 @@ function FormDate({
|
|
|
8855
8855
|
onChange,
|
|
8856
8856
|
isRequired = false
|
|
8857
8857
|
}) {
|
|
8858
|
-
const locale =
|
|
8859
|
-
const dateFnsLocale =
|
|
8858
|
+
const locale = _chunkWOJIRXIPjs.useI18nLocale.call(void 0, );
|
|
8859
|
+
const dateFnsLocale = _chunkWOJIRXIPjs.useI18nDateFnsLocale.call(void 0, );
|
|
8860
8860
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
8861
8861
|
const [displayMonth, setDisplayMonth] = _react.useState.call(void 0, () => {
|
|
8862
8862
|
const currentValue = form.getValues(id);
|
|
@@ -8974,9 +8974,9 @@ function FormDateTime({
|
|
|
8974
8974
|
allowEmpty
|
|
8975
8975
|
}) {
|
|
8976
8976
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
8977
|
-
const t =
|
|
8978
|
-
const locale =
|
|
8979
|
-
const dateFnsLocale =
|
|
8977
|
+
const t = _chunkWOJIRXIPjs.useI18nTranslations.call(void 0, );
|
|
8978
|
+
const locale = _chunkWOJIRXIPjs.useI18nLocale.call(void 0, );
|
|
8979
|
+
const dateFnsLocale = _chunkWOJIRXIPjs.useI18nDateFnsLocale.call(void 0, );
|
|
8980
8980
|
const dateTimeFormatter = _react.useMemo.call(void 0,
|
|
8981
8981
|
() => new Intl.DateTimeFormat(locale, {
|
|
8982
8982
|
year: "numeric",
|
|
@@ -9027,7 +9027,7 @@ function FormDateTime({
|
|
|
9027
9027
|
Button,
|
|
9028
9028
|
{
|
|
9029
9029
|
variant: "outline",
|
|
9030
|
-
className:
|
|
9030
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "w-full pl-3 text-left font-normal", !field.value && "text-muted-foreground")
|
|
9031
9031
|
}
|
|
9032
9032
|
),
|
|
9033
9033
|
children: [
|
|
@@ -9228,7 +9228,7 @@ var PasswordInput = React15.forwardRef(
|
|
|
9228
9228
|
const disabled = props.value === "" || props.value === void 0 || props.disabled;
|
|
9229
9229
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9230
9230
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
9231
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className:
|
|
9231
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className: _chunk37KYO2UDjs.cn.call(void 0, "", className), ref, ...props }),
|
|
9232
9232
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9233
9233
|
Button,
|
|
9234
9234
|
{
|
|
@@ -9465,7 +9465,7 @@ function FormPlaceAutocomplete({
|
|
|
9465
9465
|
placeholder,
|
|
9466
9466
|
disabled,
|
|
9467
9467
|
"data-testid": testId,
|
|
9468
|
-
className:
|
|
9468
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "w-full", className)
|
|
9469
9469
|
}
|
|
9470
9470
|
) }) });
|
|
9471
9471
|
}
|
|
@@ -9484,7 +9484,7 @@ function FormPlaceAutocomplete({
|
|
|
9484
9484
|
placeholder,
|
|
9485
9485
|
disabled: disabled || !apiKey,
|
|
9486
9486
|
"data-testid": testId,
|
|
9487
|
-
className:
|
|
9487
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "w-full", className)
|
|
9488
9488
|
}
|
|
9489
9489
|
),
|
|
9490
9490
|
isLoading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute right-3 top-1/2 -translate-y-1/2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-primary h-4 w-4 animate-spin rounded-full border-2 border-t-transparent" }) }),
|
|
@@ -9615,7 +9615,7 @@ function FormTextarea({
|
|
|
9615
9615
|
Textarea,
|
|
9616
9616
|
{
|
|
9617
9617
|
...field,
|
|
9618
|
-
className:
|
|
9618
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "min-h-96 w-full", className),
|
|
9619
9619
|
disabled: form.formState.isSubmitting,
|
|
9620
9620
|
placeholder,
|
|
9621
9621
|
"data-testid": testId
|
|
@@ -9724,10 +9724,10 @@ function UserMultiSelect({
|
|
|
9724
9724
|
const data = useDataListRetriever({
|
|
9725
9725
|
ready: !!company,
|
|
9726
9726
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
9727
|
-
return
|
|
9727
|
+
return _chunk37KYO2UDjs.UserService.findAllUsers(params);
|
|
9728
9728
|
}, "retriever"),
|
|
9729
9729
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _265 => _265.id]) },
|
|
9730
|
-
module:
|
|
9730
|
+
module: _chunk37KYO2UDjs.Modules.User
|
|
9731
9731
|
});
|
|
9732
9732
|
_react.useEffect.call(void 0, () => {
|
|
9733
9733
|
if (company) data.setReady(true);
|
|
@@ -9837,7 +9837,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
9837
9837
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9838
9838
|
const reactivateUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
9839
9839
|
try {
|
|
9840
|
-
const updatedUser = await
|
|
9840
|
+
const updatedUser = await _chunk37KYO2UDjs.UserService.reactivate({ userId: user.id });
|
|
9841
9841
|
setOpen(false);
|
|
9842
9842
|
propagateChanges(updatedUser);
|
|
9843
9843
|
} catch (error) {
|
|
@@ -9875,7 +9875,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
9875
9875
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivatorInterface, "UserReactivatorInterface");
|
|
9876
9876
|
function UserReactivator(props) {
|
|
9877
9877
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9878
|
-
if (!hasPermissionToModule({ module:
|
|
9878
|
+
if (!hasPermissionToModule({ module: _chunk37KYO2UDjs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
9879
9879
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserReactivatorInterface, { ...props });
|
|
9880
9880
|
}
|
|
9881
9881
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivator, "UserReactivator");
|
|
@@ -9890,9 +9890,9 @@ function UserResentInvitationEmailInternal({ user }) {
|
|
|
9890
9890
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9891
9891
|
const sendInvitationEmail = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
9892
9892
|
try {
|
|
9893
|
-
await
|
|
9893
|
+
await _chunk37KYO2UDjs.UserService.sendInvitation({ userId: user.id, companyId: user.company.id });
|
|
9894
9894
|
setOpen(false);
|
|
9895
|
-
|
|
9895
|
+
_chunk37KYO2UDjs.showToast.call(void 0, t(`user.resend_activation.email_sent`), {
|
|
9896
9896
|
description: t(`user.resend_activation.email_sent_description`, { email: user.email })
|
|
9897
9897
|
});
|
|
9898
9898
|
} catch (error) {
|
|
@@ -9930,7 +9930,7 @@ function UserResentInvitationEmailInternal({ user }) {
|
|
|
9930
9930
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmailInternal, "UserResentInvitationEmailInternal");
|
|
9931
9931
|
function UserResentInvitationEmail(props) {
|
|
9932
9932
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9933
|
-
if (!hasPermissionToModule({ module:
|
|
9933
|
+
if (!hasPermissionToModule({ module: _chunk37KYO2UDjs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
9934
9934
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserResentInvitationEmailInternal, { ...props });
|
|
9935
9935
|
}
|
|
9936
9936
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmail, "UserResentInvitationEmail");
|
|
@@ -9961,22 +9961,22 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
|
|
|
9961
9961
|
}, "getAvatar");
|
|
9962
9962
|
const content = showLink === false ? (
|
|
9963
9963
|
// If showLink is explicitly false, never show a link
|
|
9964
|
-
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
9964
|
+
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk37KYO2UDjs.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className), children: [
|
|
9965
9965
|
getAvatar(),
|
|
9966
9966
|
user.name
|
|
9967
9967
|
] }) : getAvatar()
|
|
9968
9968
|
) : showFull ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9969
9969
|
Link,
|
|
9970
9970
|
{
|
|
9971
|
-
href: generateUrl({ page:
|
|
9972
|
-
className:
|
|
9971
|
+
href: generateUrl({ page: _chunk37KYO2UDjs.Modules.User, id: user.id }),
|
|
9972
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className),
|
|
9973
9973
|
onClick: (e) => e.stopPropagation(),
|
|
9974
9974
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center gap-x-2", children: [
|
|
9975
9975
|
getAvatar(),
|
|
9976
9976
|
user.name
|
|
9977
9977
|
] })
|
|
9978
9978
|
}
|
|
9979
|
-
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page:
|
|
9979
|
+
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunk37KYO2UDjs.Modules.User, id: user.id }), className, children: getAvatar() }) : getAvatar();
|
|
9980
9980
|
if (!showTooltip) {
|
|
9981
9981
|
return content;
|
|
9982
9982
|
}
|
|
@@ -9994,7 +9994,7 @@ function UserAvatarList({ users }) {
|
|
|
9994
9994
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-row items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-row-reverse justify-end -space-x-1 space-x-reverse", children: users.map((user) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9995
9995
|
Link,
|
|
9996
9996
|
{
|
|
9997
|
-
href: generateUrl({ page:
|
|
9997
|
+
href: generateUrl({ page: _chunk37KYO2UDjs.Modules.User, id: user.id }),
|
|
9998
9998
|
onClick: (e) => e.stopPropagation(),
|
|
9999
9999
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user, className: "h-5 w-5" })
|
|
10000
10000
|
},
|
|
@@ -10013,10 +10013,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
10013
10013
|
const [isSearching, setIsSearching] = _react.useState.call(void 0, false);
|
|
10014
10014
|
const data = useDataListRetriever({
|
|
10015
10015
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
10016
|
-
return
|
|
10016
|
+
return _chunk37KYO2UDjs.UserService.findMany(params);
|
|
10017
10017
|
}, "retriever"),
|
|
10018
10018
|
retrieverParams: {},
|
|
10019
|
-
module:
|
|
10019
|
+
module: _chunk37KYO2UDjs.Modules.User
|
|
10020
10020
|
});
|
|
10021
10021
|
const search = _react.useCallback.call(void 0,
|
|
10022
10022
|
async (searchedTerm) => {
|
|
@@ -10115,20 +10115,20 @@ var UserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
10115
10115
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
10116
10116
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10117
10117
|
const [user, setUser] = _react.useState.call(void 0,
|
|
10118
|
-
dehydratedUser ?
|
|
10118
|
+
dehydratedUser ? _chunk37KYO2UDjs.rehydrate.call(void 0, _chunk37KYO2UDjs.Modules.User, dehydratedUser) : void 0
|
|
10119
10119
|
);
|
|
10120
10120
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10121
10121
|
const response = [];
|
|
10122
|
-
if (hasPermissionToModule({ module:
|
|
10122
|
+
if (hasPermissionToModule({ module: _chunk37KYO2UDjs.Modules.User, action: "update" /* Update */ })) {
|
|
10123
10123
|
response.push({
|
|
10124
10124
|
name: t(`entities.users`, { count: 2 }),
|
|
10125
|
-
href: generateUrl({ page:
|
|
10125
|
+
href: generateUrl({ page: _chunk37KYO2UDjs.Modules.User })
|
|
10126
10126
|
});
|
|
10127
10127
|
}
|
|
10128
10128
|
if (user)
|
|
10129
10129
|
response.push({
|
|
10130
10130
|
name: `${user.name}${user.isDeleted ? ` (${t(`user.deleted`)})` : ""}`,
|
|
10131
|
-
href: generateUrl({ page:
|
|
10131
|
+
href: generateUrl({ page: _chunk37KYO2UDjs.Modules.User, id: user.id })
|
|
10132
10132
|
});
|
|
10133
10133
|
return response;
|
|
10134
10134
|
}, "breadcrumb");
|
|
@@ -10176,18 +10176,18 @@ var useUserContext = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () =>
|
|
|
10176
10176
|
function AllUsersListContainerInternal() {
|
|
10177
10177
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
10178
10178
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10179
|
-
if (!hasPermissionToModule({ module:
|
|
10179
|
+
if (!hasPermissionToModule({ module: _chunk37KYO2UDjs.Modules.User, action: "delete" /* Delete */ })) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {});
|
|
10180
10180
|
const tabs = [
|
|
10181
10181
|
{
|
|
10182
10182
|
label: t(`entities.users`, { count: 2 }),
|
|
10183
10183
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {}),
|
|
10184
|
-
modules: [
|
|
10184
|
+
modules: [_chunk37KYO2UDjs.Modules.Company],
|
|
10185
10185
|
action: "read" /* Read */
|
|
10186
10186
|
},
|
|
10187
10187
|
{
|
|
10188
10188
|
label: t(`user.deleted`),
|
|
10189
10189
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, { isDeleted: true }),
|
|
10190
|
-
modules: [
|
|
10190
|
+
modules: [_chunk37KYO2UDjs.Modules.Company],
|
|
10191
10191
|
action: "update" /* Update */
|
|
10192
10192
|
}
|
|
10193
10193
|
];
|
|
@@ -10205,7 +10205,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AllUsersListContainer, "AllUsersListContain
|
|
|
10205
10205
|
// src/components/contents/AttributeElement.tsx
|
|
10206
10206
|
|
|
10207
10207
|
function AttributeElement({ inline, title, value, className }) {
|
|
10208
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
10208
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk37KYO2UDjs.cn.call(void 0, `flex ${inline === true ? "flex-row" : "flex-col"} my-1 justify-start`, className), children: [
|
|
10209
10209
|
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${inline === true ? "min-w-48 pr-4" : "w-full"} text-xs text-muted-foreground`, children: title }),
|
|
10210
10210
|
value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col text-sm", children: value })
|
|
10211
10211
|
] });
|
|
@@ -10226,12 +10226,12 @@ function UserContent({ user }) {
|
|
|
10226
10226
|
EditableAvatar,
|
|
10227
10227
|
{
|
|
10228
10228
|
entityId: user.id,
|
|
10229
|
-
module:
|
|
10229
|
+
module: _chunk37KYO2UDjs.Modules.User,
|
|
10230
10230
|
image: user.avatar,
|
|
10231
|
-
fallback:
|
|
10231
|
+
fallback: _chunk37KYO2UDjs.getInitials.call(void 0, user.name),
|
|
10232
10232
|
alt: user.name,
|
|
10233
10233
|
patchImage: async (imageKey) => {
|
|
10234
|
-
const updated = await
|
|
10234
|
+
const updated = await _chunk37KYO2UDjs.UserService.patchAvatar({ id: user.id, avatar: imageKey });
|
|
10235
10235
|
setUser(updated);
|
|
10236
10236
|
},
|
|
10237
10237
|
className: "h-24 w-24",
|
|
@@ -10239,7 +10239,7 @@ function UserContent({ user }) {
|
|
|
10239
10239
|
}
|
|
10240
10240
|
),
|
|
10241
10241
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-y-2", children: [
|
|
10242
|
-
user.roles && user.roles.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: user.roles.map((role) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page:
|
|
10242
|
+
user.roles && user.roles.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: user.roles.map((role) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunk37KYO2UDjs.Modules.Role, id: role.id }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "default", children: t(`role.roles`, { role: role.id.replaceAll(`-`, ``) }) }) }, role.id)) }),
|
|
10243
10243
|
user.isDeleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "destructive", children: t(`user.errors.deleted`) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: !user.isActivated && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "destructive", children: t(`user.errors.inactive`) }) }) }),
|
|
10244
10244
|
user.title && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground flex items-center gap-x-2 text-sm", children: [
|
|
10245
10245
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BriefcaseIcon, { className: "h-4 w-4 shrink-0" }),
|
|
@@ -10286,7 +10286,7 @@ function UserStanadaloneDetails({ user }) {
|
|
|
10286
10286
|
const { title } = useSharedContext();
|
|
10287
10287
|
let roles = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
10288
10288
|
if (user.roles && user.roles.length > 0) {
|
|
10289
|
-
roles = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-4 w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: user.roles.map((role, _index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page:
|
|
10289
|
+
roles = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-4 w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: user.roles.map((role, _index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunk37KYO2UDjs.Modules.Role, id: role.id }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { className: "mr-2", variant: `default`, children: t(`role.roles`, { role: role.id.replaceAll(`-`, ``) }) }) }, role.id)) }) });
|
|
10290
10290
|
}
|
|
10291
10291
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row gap-x-4", children: [
|
|
10292
10292
|
user.avatar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-64", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative aspect-auto w-full max-w-md overflow-hidden rounded-lg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10300,7 +10300,7 @@ function UserStanadaloneDetails({ user }) {
|
|
|
10300
10300
|
}
|
|
10301
10301
|
) }) }),
|
|
10302
10302
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
10303
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module:
|
|
10303
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunk37KYO2UDjs.Modules.User, type: title.type, element: title.element, functions: title.functions }),
|
|
10304
10304
|
user.isDeleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "destructive", children: t(`user.errors.deleted`) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: !user.isActivated && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "destructive", children: t(`user.errors.inactive`) }) }) }),
|
|
10305
10305
|
roles,
|
|
10306
10306
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AttributeElement, { inline: true, title: t(`user.fields.title.label`), value: user.title }),
|
|
@@ -10322,7 +10322,7 @@ function UserContainer() {
|
|
|
10322
10322
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserContent, { user })
|
|
10323
10323
|
}
|
|
10324
10324
|
];
|
|
10325
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RoundPageContainer, { module:
|
|
10325
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RoundPageContainer, { module: _chunk37KYO2UDjs.Modules.User, tabs });
|
|
10326
10326
|
}
|
|
10327
10327
|
_chunk7QVYU63Ejs.__name.call(void 0, UserContainer, "UserContainer");
|
|
10328
10328
|
|
|
@@ -10338,12 +10338,12 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserIndexContainer, "UserIndexContainer");
|
|
|
10338
10338
|
// src/features/user/components/containers/UsersListContainer.tsx
|
|
10339
10339
|
|
|
10340
10340
|
function UsersListContainerInternal({ fullWidth }) {
|
|
10341
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RoundPageContainer, { module:
|
|
10341
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RoundPageContainer, { module: _chunk37KYO2UDjs.Modules.User, fullWidth, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, { fullWidth }) });
|
|
10342
10342
|
}
|
|
10343
10343
|
_chunk7QVYU63Ejs.__name.call(void 0, UsersListContainerInternal, "UsersListContainerInternal");
|
|
10344
10344
|
function UsersListContainer({ fullWidth }) {
|
|
10345
10345
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
10346
|
-
if (!hasPermissionToModule({ module:
|
|
10346
|
+
if (!hasPermissionToModule({ module: _chunk37KYO2UDjs.Modules.User, action: "read" /* Read */ })) return null;
|
|
10347
10347
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UsersListContainerInternal, { fullWidth });
|
|
10348
10348
|
}
|
|
10349
10349
|
_chunk7QVYU63Ejs.__name.call(void 0, UsersListContainer, "UsersListContainer");
|
|
@@ -10354,9 +10354,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersListContainer, "UsersListContainer");
|
|
|
10354
10354
|
function AdminUsersListInternal({ company }) {
|
|
10355
10355
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10356
10356
|
const data = useDataListRetriever({
|
|
10357
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
10357
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk37KYO2UDjs.UserService.findManyForAmin(params), "retriever"),
|
|
10358
10358
|
retrieverParams: { companyId: company.id },
|
|
10359
|
-
module:
|
|
10359
|
+
module: _chunk37KYO2UDjs.Modules.User
|
|
10360
10360
|
});
|
|
10361
10361
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10362
10362
|
ContentListTable,
|
|
@@ -10364,7 +10364,7 @@ function AdminUsersListInternal({ company }) {
|
|
|
10364
10364
|
title: t(`entities.users`, { count: 2 }),
|
|
10365
10365
|
data,
|
|
10366
10366
|
fields: ["name" /* name */, "email" /* email */, "createdAt" /* createdAt */],
|
|
10367
|
-
tableGeneratorType:
|
|
10367
|
+
tableGeneratorType: _chunk37KYO2UDjs.Modules.User,
|
|
10368
10368
|
functions: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserEditor, { propagateChanges: data.refresh, adminCreated: true })
|
|
10369
10369
|
}
|
|
10370
10370
|
);
|
|
@@ -10386,9 +10386,9 @@ function CompanyUsersList({ isDeleted, fullWidth }) {
|
|
|
10386
10386
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10387
10387
|
const data = useDataListRetriever({
|
|
10388
10388
|
ready: !!company,
|
|
10389
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
10389
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk37KYO2UDjs.UserService.findAllUsers(params), "retriever"),
|
|
10390
10390
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _282 => _282.id]), isDeleted },
|
|
10391
|
-
module:
|
|
10391
|
+
module: _chunk37KYO2UDjs.Modules.User
|
|
10392
10392
|
});
|
|
10393
10393
|
_react.useEffect.call(void 0, () => {
|
|
10394
10394
|
if (company) data.setReady(true);
|
|
@@ -10401,7 +10401,7 @@ function CompanyUsersList({ isDeleted, fullWidth }) {
|
|
|
10401
10401
|
{
|
|
10402
10402
|
data,
|
|
10403
10403
|
fields: ["name" /* name */, "email" /* email */],
|
|
10404
|
-
tableGeneratorType:
|
|
10404
|
+
tableGeneratorType: _chunk37KYO2UDjs.Modules.User,
|
|
10405
10405
|
functions,
|
|
10406
10406
|
fullWidth,
|
|
10407
10407
|
title: t(`entities.users`, { count: 2 })
|
|
@@ -10418,7 +10418,7 @@ function ContributorsList({ content }) {
|
|
|
10418
10418
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10419
10419
|
Link,
|
|
10420
10420
|
{
|
|
10421
|
-
href: generateUrl({ page:
|
|
10421
|
+
href: generateUrl({ page: _chunk37KYO2UDjs.Modules.User, id: content.author.id }),
|
|
10422
10422
|
onClick: (e) => e.stopPropagation(),
|
|
10423
10423
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: content.author, className: "mr-1 h-6 w-6" })
|
|
10424
10424
|
},
|
|
@@ -10427,7 +10427,7 @@ function ContributorsList({ content }) {
|
|
|
10427
10427
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-row-reverse justify-end -space-x-1 space-x-reverse", children: content.editors.filter((editor) => editor.id !== content.author.id).map((editor) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10428
10428
|
Link,
|
|
10429
10429
|
{
|
|
10430
|
-
href: generateUrl({ page:
|
|
10430
|
+
href: generateUrl({ page: _chunk37KYO2UDjs.Modules.User, id: editor.id }),
|
|
10431
10431
|
onClick: (e) => e.stopPropagation(),
|
|
10432
10432
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: editor, className: "h-5 w-5" })
|
|
10433
10433
|
},
|
|
@@ -10443,8 +10443,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContributorsList, "ContributorsList");
|
|
|
10443
10443
|
function RelevantUsersList({ id }) {
|
|
10444
10444
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10445
10445
|
const data = useDataListRetriever({
|
|
10446
|
-
module:
|
|
10447
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
10446
|
+
module: _chunk37KYO2UDjs.Modules.User,
|
|
10447
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk37KYO2UDjs.UserService.findRelevant(params), "retriever"),
|
|
10448
10448
|
retrieverParams: { id }
|
|
10449
10449
|
});
|
|
10450
10450
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10452,7 +10452,7 @@ function RelevantUsersList({ id }) {
|
|
|
10452
10452
|
{
|
|
10453
10453
|
data,
|
|
10454
10454
|
fields: ["name" /* name */, "email" /* email */, "relevance" /* relevance */],
|
|
10455
|
-
tableGeneratorType:
|
|
10455
|
+
tableGeneratorType: _chunk37KYO2UDjs.Modules.User,
|
|
10456
10456
|
title: t(`common.relevant_users`)
|
|
10457
10457
|
}
|
|
10458
10458
|
);
|
|
@@ -10465,16 +10465,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RelevantUsersList, "RelevantUsersList");
|
|
|
10465
10465
|
function RoleUsersList({ role }) {
|
|
10466
10466
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10467
10467
|
const data = useDataListRetriever({
|
|
10468
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
10468
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk37KYO2UDjs.UserService.findAllUsersByRole(params), "retriever"),
|
|
10469
10469
|
retrieverParams: { roleId: role.id },
|
|
10470
|
-
module:
|
|
10470
|
+
module: _chunk37KYO2UDjs.Modules.User
|
|
10471
10471
|
});
|
|
10472
10472
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10473
10473
|
ContentListTable,
|
|
10474
10474
|
{
|
|
10475
10475
|
data,
|
|
10476
10476
|
fields: ["name" /* name */, "email" /* email */],
|
|
10477
|
-
tableGeneratorType:
|
|
10477
|
+
tableGeneratorType: _chunk37KYO2UDjs.Modules.User,
|
|
10478
10478
|
title: t(`entities.users`, { count: 2 })
|
|
10479
10479
|
}
|
|
10480
10480
|
);
|
|
@@ -10530,7 +10530,7 @@ function UsersList({
|
|
|
10530
10530
|
{
|
|
10531
10531
|
data,
|
|
10532
10532
|
fields: ["name" /* name */, "email" /* email */],
|
|
10533
|
-
tableGeneratorType:
|
|
10533
|
+
tableGeneratorType: _chunk37KYO2UDjs.Modules.User,
|
|
10534
10534
|
title: t(`entities.users`, { count: 2 })
|
|
10535
10535
|
}
|
|
10536
10536
|
);
|
|
@@ -10543,8 +10543,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersList, "UsersList");
|
|
|
10543
10543
|
function UsersListByContentIds({ contentIds }) {
|
|
10544
10544
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10545
10545
|
const data = useDataListRetriever({
|
|
10546
|
-
module:
|
|
10547
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
10546
|
+
module: _chunk37KYO2UDjs.Modules.User,
|
|
10547
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk37KYO2UDjs.UserService.findManyByContentIds(params), "retriever"),
|
|
10548
10548
|
retrieverParams: { contentIds }
|
|
10549
10549
|
});
|
|
10550
10550
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10552,7 +10552,7 @@ function UsersListByContentIds({ contentIds }) {
|
|
|
10552
10552
|
{
|
|
10553
10553
|
data,
|
|
10554
10554
|
fields: ["name" /* name */, "email" /* email */],
|
|
10555
|
-
tableGeneratorType:
|
|
10555
|
+
tableGeneratorType: _chunk37KYO2UDjs.Modules.User,
|
|
10556
10556
|
title: t(`common.relevant_users`)
|
|
10557
10557
|
}
|
|
10558
10558
|
);
|
|
@@ -10701,13 +10701,13 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
10701
10701
|
const textSize = textSizeClasses[size];
|
|
10702
10702
|
const getBatteryIcon = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10703
10703
|
if (percentage > 75) {
|
|
10704
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryFull, { className:
|
|
10704
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryFull, { className: _chunk37KYO2UDjs.cn.call(void 0, iconSize, "text-green-500") });
|
|
10705
10705
|
} else if (percentage > 50) {
|
|
10706
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryMedium, { className:
|
|
10706
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryMedium, { className: _chunk37KYO2UDjs.cn.call(void 0, iconSize, "text-green-500") });
|
|
10707
10707
|
} else if (percentage >= 25) {
|
|
10708
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryLow, { className:
|
|
10708
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryLow, { className: _chunk37KYO2UDjs.cn.call(void 0, iconSize, "text-yellow-500") });
|
|
10709
10709
|
} else {
|
|
10710
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Battery, { className:
|
|
10710
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Battery, { className: _chunk37KYO2UDjs.cn.call(void 0, iconSize, "text-destructive") });
|
|
10711
10711
|
}
|
|
10712
10712
|
}, "getBatteryIcon");
|
|
10713
10713
|
const getStatusColor = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -10727,7 +10727,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
10727
10727
|
t("billing.tokens.monthly", { defaultValue: "Monthly Pages" }),
|
|
10728
10728
|
":"
|
|
10729
10729
|
] }),
|
|
10730
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
10730
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk37KYO2UDjs.cn.call(void 0, "font-medium", getStatusColor()), children: [
|
|
10731
10731
|
availableMonthlyTokens,
|
|
10732
10732
|
" / ",
|
|
10733
10733
|
monthlyTokens
|
|
@@ -10738,7 +10738,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
10738
10738
|
t("billing.tokens.available", { defaultValue: "Available" }),
|
|
10739
10739
|
":"
|
|
10740
10740
|
] }),
|
|
10741
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
10741
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk37KYO2UDjs.cn.call(void 0, "font-medium", getStatusColor()), children: [
|
|
10742
10742
|
percentage.toFixed(0),
|
|
10743
10743
|
"%"
|
|
10744
10744
|
] })
|
|
@@ -10759,14 +10759,14 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
10759
10759
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10760
10760
|
"div",
|
|
10761
10761
|
{
|
|
10762
|
-
className:
|
|
10762
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "inline-flex items-center gap-1.5 cursor-default", className),
|
|
10763
10763
|
"aria-label": t("billing.tokens.status", { defaultValue: "Page Status" }),
|
|
10764
10764
|
children: [
|
|
10765
10765
|
getBatteryIcon(),
|
|
10766
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
10766
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk37KYO2UDjs.cn.call(void 0, textSize, "text-muted-foreground font-medium"), children: availableMonthlyTokens }),
|
|
10767
10767
|
showExtraPages && availableExtraTokens > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "inline-flex items-center gap-0.5", children: [
|
|
10768
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className:
|
|
10769
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
10768
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className: _chunk37KYO2UDjs.cn.call(void 0, smallIconSize, "text-blue-500") }),
|
|
10769
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk37KYO2UDjs.cn.call(void 0, textSize, "text-blue-500 font-medium"), children: availableExtraTokens })
|
|
10770
10770
|
] })
|
|
10771
10771
|
]
|
|
10772
10772
|
}
|
|
@@ -10784,7 +10784,7 @@ function CompanyDetails() {
|
|
|
10784
10784
|
const { company } = useCompanyContext();
|
|
10785
10785
|
if (!company) return null;
|
|
10786
10786
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
10787
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module:
|
|
10787
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunk37KYO2UDjs.Modules.Company, type: title.type, element: title.element, functions: title.functions }),
|
|
10788
10788
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TokenStatusIndicator, { size: "md" }),
|
|
10789
10789
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyContent, { company })
|
|
10790
10790
|
] });
|
|
@@ -10796,7 +10796,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyDetails, "CompanyDetails");
|
|
|
10796
10796
|
function AdminCompanyContainerInternal() {
|
|
10797
10797
|
const { company } = useCompanyContext();
|
|
10798
10798
|
const { hasRole } = useCurrentUserContext();
|
|
10799
|
-
if (!company || !hasRole(
|
|
10799
|
+
if (!company || !hasRole(_chunkWOJIRXIPjs.getRoleId.call(void 0, ).Administrator)) return null;
|
|
10800
10800
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
10801
10801
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDetails, {}),
|
|
10802
10802
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AdminUsersList, {})
|
|
@@ -10844,7 +10844,7 @@ function CompanyConfigurationEditorInternal({
|
|
|
10844
10844
|
entityType: t(`entities.configurations`, { count: 2 }),
|
|
10845
10845
|
entityName: company.name,
|
|
10846
10846
|
isEdit: true,
|
|
10847
|
-
module:
|
|
10847
|
+
module: _chunk37KYO2UDjs.Modules.Company,
|
|
10848
10848
|
size: "sm",
|
|
10849
10849
|
trigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {}), nativeButton: false, size: "sm", variant: "ghost", className: "cursor-pointer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Settings2Icon, { className: "h-3.5 w-3.5" }) }),
|
|
10850
10850
|
onSubmit: async (values) => {
|
|
@@ -10852,14 +10852,14 @@ function CompanyConfigurationEditorInternal({
|
|
|
10852
10852
|
id: company.id,
|
|
10853
10853
|
configurations: buildPayload(values)
|
|
10854
10854
|
};
|
|
10855
|
-
await
|
|
10856
|
-
const fullUser = await
|
|
10855
|
+
await _chunk37KYO2UDjs.CompanyService.updateConfigurations(payload);
|
|
10856
|
+
const fullUser = await _chunk37KYO2UDjs.UserService.findFullUser();
|
|
10857
10857
|
if (fullUser) {
|
|
10858
10858
|
setUser(fullUser);
|
|
10859
10859
|
}
|
|
10860
10860
|
},
|
|
10861
10861
|
onSuccess: async () => {
|
|
10862
|
-
|
|
10862
|
+
_chunk37KYO2UDjs.showToast.call(void 0, t("features.configuration.updated_title"), {
|
|
10863
10863
|
description: t("features.configuration.updated_description")
|
|
10864
10864
|
});
|
|
10865
10865
|
},
|
|
@@ -10874,7 +10874,7 @@ function CompanyConfigurationEditorInternal({
|
|
|
10874
10874
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditorInternal, "CompanyConfigurationEditorInternal");
|
|
10875
10875
|
function CompanyConfigurationEditor(props) {
|
|
10876
10876
|
const { hasRole } = useCurrentUserContext();
|
|
10877
|
-
if (hasRole(
|
|
10877
|
+
if (hasRole(_chunkWOJIRXIPjs.getRoleId.call(void 0, ).Administrator)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditorInternal, { ...props });
|
|
10878
10878
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditorInternal, { ...props });
|
|
10879
10879
|
}
|
|
10880
10880
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditor, "CompanyConfigurationEditor");
|
|
@@ -10899,11 +10899,11 @@ function CompanyDeleterInternal({ company, isAdministrator: isAdministrator2 })
|
|
|
10899
10899
|
setIsDeleting(true);
|
|
10900
10900
|
try {
|
|
10901
10901
|
if (isAdministrator2) {
|
|
10902
|
-
await
|
|
10902
|
+
await _chunk37KYO2UDjs.CompanyService.delete({ companyId: company.id });
|
|
10903
10903
|
} else {
|
|
10904
|
-
await
|
|
10904
|
+
await _chunk37KYO2UDjs.CompanyService.selfDelete({ companyId: company.id });
|
|
10905
10905
|
}
|
|
10906
|
-
await
|
|
10906
|
+
await _chunk37KYO2UDjs.AuthService.logout();
|
|
10907
10907
|
window.location.href = generateUrl({ page: `/` });
|
|
10908
10908
|
} catch (error) {
|
|
10909
10909
|
errorToast({ title: t(`common.errors.delete`), error });
|
|
@@ -11008,9 +11008,9 @@ function CompanyDeleterInternal({ company, isAdministrator: isAdministrator2 })
|
|
|
11008
11008
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleterInternal, "CompanyDeleterInternal");
|
|
11009
11009
|
function CompanyDeleter({ company }) {
|
|
11010
11010
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
11011
|
-
const isAdministrator2 = hasRole(
|
|
11012
|
-
const isCompanyAdministrator = hasRole(
|
|
11013
|
-
const hasDeletePermission = hasPermissionToModule({ module:
|
|
11011
|
+
const isAdministrator2 = hasRole(_chunkWOJIRXIPjs.getRoleId.call(void 0, ).Administrator);
|
|
11012
|
+
const isCompanyAdministrator = hasRole(_chunkWOJIRXIPjs.getRoleId.call(void 0, ).CompanyAdministrator);
|
|
11013
|
+
const hasDeletePermission = hasPermissionToModule({ module: _chunk37KYO2UDjs.Modules.Company, action: "delete" /* Delete */ });
|
|
11014
11014
|
if (!isAdministrator2 && !isCompanyAdministrator && !hasDeletePermission) {
|
|
11015
11015
|
return null;
|
|
11016
11016
|
}
|
|
@@ -11039,7 +11039,7 @@ function CompanyEditorInternal({
|
|
|
11039
11039
|
onDialogOpenChange
|
|
11040
11040
|
}) {
|
|
11041
11041
|
const { hasRole, setUser } = useCurrentUserContext();
|
|
11042
|
-
const router =
|
|
11042
|
+
const router = _chunkWOJIRXIPjs.useI18nRouter.call(void 0, );
|
|
11043
11043
|
const [features, setFeatures] = _react.useState.call(void 0, []);
|
|
11044
11044
|
const [file, setFile] = _react.useState.call(void 0, null);
|
|
11045
11045
|
const [files, setFiles] = _react.useState.call(void 0, null);
|
|
@@ -11047,13 +11047,13 @@ function CompanyEditorInternal({
|
|
|
11047
11047
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11048
11048
|
const fiscalRef = _react.useRef.call(void 0, null);
|
|
11049
11049
|
const addressComponentsRef = _react.useRef.call(void 0, {});
|
|
11050
|
-
const canAccessFeatures = hasRole(
|
|
11050
|
+
const canAccessFeatures = hasRole(_chunkWOJIRXIPjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkWOJIRXIPjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _289 => _289.env, 'access', _290 => _290.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _291 => _291.toLowerCase, 'call', _292 => _292()]) === "true";
|
|
11051
11051
|
const handleDialogOpenChange = _react.useCallback.call(void 0,
|
|
11052
11052
|
(open) => {
|
|
11053
11053
|
if (open && features.length === 0 && canAccessFeatures) {
|
|
11054
11054
|
async function fetchFeatures() {
|
|
11055
|
-
const allfeatures = await
|
|
11056
|
-
if (hasRole(
|
|
11055
|
+
const allfeatures = await _chunk37KYO2UDjs.FeatureService.findMany({});
|
|
11056
|
+
if (hasRole(_chunkWOJIRXIPjs.getRoleId.call(void 0, ).Administrator)) {
|
|
11057
11057
|
setFeatures(allfeatures);
|
|
11058
11058
|
} else {
|
|
11059
11059
|
setFeatures(allfeatures.filter((feature) => feature.isCore));
|
|
@@ -11126,12 +11126,12 @@ function CompanyEditorInternal({
|
|
|
11126
11126
|
entityType: t(`entities.companies`, { count: 1 }),
|
|
11127
11127
|
entityName: _optionalChain([company, 'optionalAccess', _304 => _304.name]),
|
|
11128
11128
|
isEdit: !!company,
|
|
11129
|
-
module:
|
|
11129
|
+
module: _chunk37KYO2UDjs.Modules.Company,
|
|
11130
11130
|
propagateChanges,
|
|
11131
11131
|
size: "lg",
|
|
11132
11132
|
onSubmit: async (values) => {
|
|
11133
11133
|
if (values.logo && contentType && file) {
|
|
11134
|
-
const s3 = await
|
|
11134
|
+
const s3 = await _chunk37KYO2UDjs.S3Service.getPreSignedUrl({
|
|
11135
11135
|
key: values.logo,
|
|
11136
11136
|
contentType,
|
|
11137
11137
|
isPublic: true
|
|
@@ -11158,8 +11158,8 @@ function CompanyEditorInternal({
|
|
|
11158
11158
|
...addressComponentsRef.current,
|
|
11159
11159
|
fiscal_data: fiscalRef.current ? JSON.stringify(fiscalRef.current.getData()) : void 0
|
|
11160
11160
|
};
|
|
11161
|
-
const updatedCompany = company ? await
|
|
11162
|
-
const fullUser = await
|
|
11161
|
+
const updatedCompany = company ? await _chunk37KYO2UDjs.CompanyService.update(payload) : await _chunk37KYO2UDjs.CompanyService.create(payload);
|
|
11162
|
+
const fullUser = await _chunk37KYO2UDjs.UserService.findFullUser();
|
|
11163
11163
|
if (fullUser) {
|
|
11164
11164
|
setUser(fullUser);
|
|
11165
11165
|
}
|
|
@@ -11236,9 +11236,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyEditor, "CompanyEditor");
|
|
|
11236
11236
|
function CompaniesList() {
|
|
11237
11237
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11238
11238
|
const data = useDataListRetriever({
|
|
11239
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
11239
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk37KYO2UDjs.CompanyService.findMany(params), "retriever"),
|
|
11240
11240
|
retrieverParams: {},
|
|
11241
|
-
module:
|
|
11241
|
+
module: _chunk37KYO2UDjs.Modules.Company
|
|
11242
11242
|
});
|
|
11243
11243
|
const functions = [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, {}, "create-account")];
|
|
11244
11244
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11246,7 +11246,7 @@ function CompaniesList() {
|
|
|
11246
11246
|
{
|
|
11247
11247
|
data,
|
|
11248
11248
|
fields: ["name" /* name */, "createdAt" /* createdAt */],
|
|
11249
|
-
tableGeneratorType:
|
|
11249
|
+
tableGeneratorType: _chunk37KYO2UDjs.Modules.Company,
|
|
11250
11250
|
functions,
|
|
11251
11251
|
title: t(`entities.companies`, { count: 2 })
|
|
11252
11252
|
}
|
|
@@ -11267,14 +11267,14 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
11267
11267
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11268
11268
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
11269
11269
|
const [company, setCompany] = _react.useState.call(void 0,
|
|
11270
|
-
dehydratedCompany ?
|
|
11270
|
+
dehydratedCompany ? _chunk37KYO2UDjs.rehydrate.call(void 0, _chunk37KYO2UDjs.Modules.Company, dehydratedCompany) : void 0
|
|
11271
11271
|
);
|
|
11272
11272
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
11273
11273
|
const response = [];
|
|
11274
11274
|
if (company)
|
|
11275
11275
|
response.push({
|
|
11276
11276
|
name: company.name,
|
|
11277
|
-
href: generateUrl({ page:
|
|
11277
|
+
href: generateUrl({ page: _chunk37KYO2UDjs.Modules.Company })
|
|
11278
11278
|
});
|
|
11279
11279
|
return response;
|
|
11280
11280
|
}, "breadcrumb");
|
|
@@ -11284,9 +11284,9 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
11284
11284
|
};
|
|
11285
11285
|
if (company) response.element = company.name;
|
|
11286
11286
|
const functions = [];
|
|
11287
|
-
if (company && (hasRole(
|
|
11287
|
+
if (company && (hasRole(_chunkWOJIRXIPjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkWOJIRXIPjs.getRoleId.call(void 0, ).CompanyAdministrator)) && hasPermissionToModule({ module: _chunk37KYO2UDjs.Modules.Company, action: "delete" /* Delete */ }))
|
|
11288
11288
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleter, { company }, "companyDeleter"));
|
|
11289
|
-
if (hasRole(
|
|
11289
|
+
if (hasRole(_chunkWOJIRXIPjs.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module: _chunk37KYO2UDjs.Modules.Company, action: "update" /* Update */ })) {
|
|
11290
11290
|
if (company && configurationEditorSlot)
|
|
11291
11291
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: configurationEditorSlot }, "configurationEditorSlot"));
|
|
11292
11292
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, { company, propagateChanges: setCompany }, "companyEditor"));
|
|
@@ -11380,7 +11380,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, NotificationMenuItem, "NotificationMenuItem
|
|
|
11380
11380
|
var NotificationContext = _react.createContext.call(void 0, void 0);
|
|
11381
11381
|
var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ children }) => {
|
|
11382
11382
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11383
|
-
const router =
|
|
11383
|
+
const router = _chunkWOJIRXIPjs.useI18nRouter.call(void 0, );
|
|
11384
11384
|
const [notifications, setNotifications] = _react.useState.call(void 0, []);
|
|
11385
11385
|
const [isLoading, setIsLoading] = _react.useState.call(void 0, false);
|
|
11386
11386
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
@@ -11407,7 +11407,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
11407
11407
|
setIsLoading(true);
|
|
11408
11408
|
setError(null);
|
|
11409
11409
|
try {
|
|
11410
|
-
const fetchedNotifications = await
|
|
11410
|
+
const fetchedNotifications = await _chunk37KYO2UDjs.NotificationService.findMany({});
|
|
11411
11411
|
setNotifications(fetchedNotifications);
|
|
11412
11412
|
setLastLoaded(Date.now());
|
|
11413
11413
|
} catch (error2) {
|
|
@@ -11419,8 +11419,8 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
11419
11419
|
}, []);
|
|
11420
11420
|
_react.useEffect.call(void 0, () => {
|
|
11421
11421
|
if (hasInitiallyLoaded || !currentUser) return;
|
|
11422
|
-
if (
|
|
11423
|
-
const isAdmin = _optionalChain([currentUser, 'access', _313 => _313.roles, 'optionalAccess', _314 => _314.some, 'call', _315 => _315((role) => role.id ===
|
|
11422
|
+
if (_chunkWOJIRXIPjs.isRolesConfigured.call(void 0, )) {
|
|
11423
|
+
const isAdmin = _optionalChain([currentUser, 'access', _313 => _313.roles, 'optionalAccess', _314 => _314.some, 'call', _315 => _315((role) => role.id === _chunkWOJIRXIPjs.getRoleId.call(void 0, ).Administrator)]);
|
|
11424
11424
|
if (isAdmin) {
|
|
11425
11425
|
setHasInitiallyLoaded(true);
|
|
11426
11426
|
return;
|
|
@@ -11435,7 +11435,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
11435
11435
|
try {
|
|
11436
11436
|
const data = {
|
|
11437
11437
|
data: ids.map((id) => ({
|
|
11438
|
-
type:
|
|
11438
|
+
type: _chunk37KYO2UDjs.Modules.Notification.name,
|
|
11439
11439
|
id,
|
|
11440
11440
|
attributes: {
|
|
11441
11441
|
isRead: true
|
|
@@ -11444,8 +11444,8 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
11444
11444
|
relationships: {}
|
|
11445
11445
|
}))
|
|
11446
11446
|
};
|
|
11447
|
-
await
|
|
11448
|
-
const allNotifications = await
|
|
11447
|
+
await _chunk37KYO2UDjs.NotificationService.markAsRead({ data });
|
|
11448
|
+
const allNotifications = await _chunk37KYO2UDjs.NotificationService.findMany({});
|
|
11449
11449
|
setNotifications(allNotifications);
|
|
11450
11450
|
setLastLoaded(Date.now());
|
|
11451
11451
|
} catch (error2) {
|
|
@@ -11743,18 +11743,18 @@ var RoleProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
11743
11743
|
const generateUrl = usePageUrlGenerator();
|
|
11744
11744
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11745
11745
|
const [role, setRole] = _react.useState.call(void 0,
|
|
11746
|
-
dehydratedRole ?
|
|
11746
|
+
dehydratedRole ? _chunk37KYO2UDjs.rehydrate.call(void 0, _chunk37KYO2UDjs.Modules.Role, dehydratedRole) : void 0
|
|
11747
11747
|
);
|
|
11748
11748
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
11749
11749
|
const response = [];
|
|
11750
11750
|
response.push({
|
|
11751
11751
|
name: t(`entities.roles`, { count: 2 }),
|
|
11752
|
-
href: generateUrl({ page:
|
|
11752
|
+
href: generateUrl({ page: _chunk37KYO2UDjs.Modules.Role })
|
|
11753
11753
|
});
|
|
11754
11754
|
if (role)
|
|
11755
11755
|
response.push({
|
|
11756
11756
|
name: role.name,
|
|
11757
|
-
href: generateUrl({ page:
|
|
11757
|
+
href: generateUrl({ page: _chunk37KYO2UDjs.Modules.Role, id: role.id })
|
|
11758
11758
|
});
|
|
11759
11759
|
return response;
|
|
11760
11760
|
}, "breadcrumb");
|
|
@@ -11889,7 +11889,7 @@ function EditableAvatar({
|
|
|
11889
11889
|
setIsUploading(true);
|
|
11890
11890
|
try {
|
|
11891
11891
|
const s3Key = generateS3Key(file);
|
|
11892
|
-
const s3 = await
|
|
11892
|
+
const s3 = await _chunk37KYO2UDjs.S3Service.getPreSignedUrl({
|
|
11893
11893
|
key: s3Key,
|
|
11894
11894
|
contentType: file.type,
|
|
11895
11895
|
isPublic: true
|
|
@@ -11950,7 +11950,7 @@ function EditableAvatar({
|
|
|
11950
11950
|
const handleDragOver = _react.useCallback.call(void 0, (e) => {
|
|
11951
11951
|
e.preventDefault();
|
|
11952
11952
|
}, []);
|
|
11953
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
11953
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk37KYO2UDjs.cn.call(void 0, "group relative", className), onDrop: handleDrop, onDragOver: handleDragOver, children: [
|
|
11954
11954
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Avatar, { className: "h-full w-full", children: [
|
|
11955
11955
|
displayImage ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: displayImage, alt }) : null,
|
|
11956
11956
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { className: fallbackClassName, children: fallback })
|
|
@@ -11958,7 +11958,7 @@ function EditableAvatar({
|
|
|
11958
11958
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11959
11959
|
"div",
|
|
11960
11960
|
{
|
|
11961
|
-
className:
|
|
11961
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
11962
11962
|
"absolute inset-0 flex items-center justify-center gap-x-2 rounded-full bg-black/50 opacity-0 transition-opacity group-hover:opacity-100",
|
|
11963
11963
|
isUploading && "opacity-100"
|
|
11964
11964
|
),
|
|
@@ -11994,9 +11994,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, EditableAvatar, "EditableAvatar");
|
|
|
11994
11994
|
// src/components/TableCellAvatar.tsx
|
|
11995
11995
|
|
|
11996
11996
|
function TableCellAvatar({ image, name, className }) {
|
|
11997
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Avatar, { className:
|
|
11997
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Avatar, { className: _chunk37KYO2UDjs.cn.call(void 0, "mr-2 h-10 w-10 shrink-0", className), children: [
|
|
11998
11998
|
image ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: image, alt: name }) : null,
|
|
11999
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { className: "text-xs", children:
|
|
11999
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { className: "text-xs", children: _chunk37KYO2UDjs.getInitials.call(void 0, name) })
|
|
12000
12000
|
] });
|
|
12001
12001
|
}
|
|
12002
12002
|
_chunk7QVYU63Ejs.__name.call(void 0, TableCellAvatar, "TableCellAvatar");
|
|
@@ -12044,12 +12044,12 @@ function ContentTitle({ module, type, element, functions, className, prioritizeF
|
|
|
12044
12044
|
setClientFunctions(functions);
|
|
12045
12045
|
}, [functions]);
|
|
12046
12046
|
if (!element) return null;
|
|
12047
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
12048
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
12047
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk37KYO2UDjs.cn.call(void 0, `mb-4 flex items-start justify-between gap-x-4 w-full`, className), children: [
|
|
12048
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk37KYO2UDjs.cn.call(void 0, "flex flex-col", prioritizeFunctions ? "min-w-0 shrink" : "w-full"), children: [
|
|
12049
12049
|
type && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
12050
12050
|
"div",
|
|
12051
12051
|
{
|
|
12052
|
-
className:
|
|
12052
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
12053
12053
|
"text-muted-foreground text-xl font-light flex gap-x-2 items-center",
|
|
12054
12054
|
prioritizeFunctions && "shrink-0 whitespace-nowrap"
|
|
12055
12055
|
),
|
|
@@ -12059,9 +12059,9 @@ function ContentTitle({ module, type, element, functions, className, prioritizeF
|
|
|
12059
12059
|
]
|
|
12060
12060
|
}
|
|
12061
12061
|
),
|
|
12062
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
12062
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk37KYO2UDjs.cn.call(void 0, "text-primary text-3xl font-semibold", prioritizeFunctions ? "truncate" : "w-full"), children: element })
|
|
12063
12063
|
] }),
|
|
12064
|
-
isClient && clientFunctions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
12064
|
+
isClient && clientFunctions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk37KYO2UDjs.cn.call(void 0, "flex flex-row items-center justify-start", prioritizeFunctions && "shrink-0"), children: clientFunctions })
|
|
12065
12065
|
] });
|
|
12066
12066
|
}
|
|
12067
12067
|
_chunk7QVYU63Ejs.__name.call(void 0, ContentTitle, "ContentTitle");
|
|
@@ -12171,7 +12171,7 @@ function PageContainer({ children, testId, className }) {
|
|
|
12171
12171
|
const headerChildren = useHeaderChildren();
|
|
12172
12172
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex h-full w-full flex-col`, "data-testid": testId, children: [
|
|
12173
12173
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header, { children: headerChildren }),
|
|
12174
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className:
|
|
12174
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className: _chunk37KYO2UDjs.cn.call(void 0, `flex w-full flex-1 flex-col gap-y-4 pt-4 pl-4 pr-0`, className), children })
|
|
12175
12175
|
] });
|
|
12176
12176
|
}
|
|
12177
12177
|
_chunk7QVYU63Ejs.__name.call(void 0, PageContainer, "PageContainer");
|
|
@@ -12271,7 +12271,7 @@ function RoundPageContainerTitle({
|
|
|
12271
12271
|
module && module.icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, module.icon, { className: "text-primary h-6 w-6" }),
|
|
12272
12272
|
title.type
|
|
12273
12273
|
] }),
|
|
12274
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
12274
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk37KYO2UDjs.cn.call(void 0, "text-primary w-full text-xl font-semibold"), children: title.element })
|
|
12275
12275
|
] }),
|
|
12276
12276
|
(title.functions || details) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-x-2", children: [
|
|
12277
12277
|
title.functions,
|
|
@@ -12327,7 +12327,7 @@ function RoundPageContainer({
|
|
|
12327
12327
|
}
|
|
12328
12328
|
),
|
|
12329
12329
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full w-full overflow-hidden", children: [
|
|
12330
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
12330
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk37KYO2UDjs.cn.call(void 0, `grow overflow-y-auto p-4`, fullWidth && `p-0`), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk37KYO2UDjs.cn.call(void 0, `mx-auto max-w-6xl space-y-12 p-8`, fullWidth && `max-w-full w-full p-0 h-full`), children: tabs ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
12331
12331
|
Tabs,
|
|
12332
12332
|
{
|
|
12333
12333
|
value: activeTab,
|
|
@@ -12345,7 +12345,7 @@ function RoundPageContainer({
|
|
|
12345
12345
|
details && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12346
12346
|
"div",
|
|
12347
12347
|
{
|
|
12348
|
-
className:
|
|
12348
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
12349
12349
|
"h-full shrink-0 overflow-hidden overflow-y-auto transition-all duration-300 ease-in-out",
|
|
12350
12350
|
showDetails ? "w-96 border-l p-4 opacity-100" : "ml-0 w-0 border-l-0 p-0 opacity-0"
|
|
12351
12351
|
),
|
|
@@ -12383,7 +12383,7 @@ function TabsContainer({
|
|
|
12383
12383
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12384
12384
|
TabsList,
|
|
12385
12385
|
{
|
|
12386
|
-
className:
|
|
12386
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
12387
12387
|
`${style ? `my-4 flex w-full justify-start rounded-none border-b bg-transparent pb-0` : ``}`,
|
|
12388
12388
|
tabsListClassName
|
|
12389
12389
|
),
|
|
@@ -12391,7 +12391,7 @@ function TabsContainer({
|
|
|
12391
12391
|
TabsTrigger,
|
|
12392
12392
|
{
|
|
12393
12393
|
value: tab.label,
|
|
12394
|
-
className:
|
|
12394
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
12395
12395
|
`${style ? `text-muted-foreground border-accent data-[state=active]:text-foreground hover:text-foreground cursor-pointer rounded-none bg-transparent pb-2 text-sm font-light hover:border-0 data-[state=active]:border-b data-[state=active]:font-medium data-[state=active]:shadow-none` : `text-primary text-xs`}`,
|
|
12396
12396
|
tabsTriggerClassName
|
|
12397
12397
|
),
|
|
@@ -12465,7 +12465,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, PageContainerContentDetails, "PageContainer
|
|
|
12465
12465
|
|
|
12466
12466
|
function PageContentContainer({ header, details, footer, content, fullBleed }) {
|
|
12467
12467
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
12468
|
-
const isMobile =
|
|
12468
|
+
const isMobile = _chunk37KYO2UDjs.useIsMobile.call(void 0, );
|
|
12469
12469
|
_react.useEffect.call(void 0, () => {
|
|
12470
12470
|
setMounted(true);
|
|
12471
12471
|
}, []);
|
|
@@ -12512,13 +12512,13 @@ function PageContentContainer({ header, details, footer, content, fullBleed }) {
|
|
|
12512
12512
|
{
|
|
12513
12513
|
id: "right-panel",
|
|
12514
12514
|
defaultSize: rightPanelDefaultSize,
|
|
12515
|
-
className:
|
|
12516
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
12515
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "w-full", isMobile ? "pt-4" : ""),
|
|
12516
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk37KYO2UDjs.cn.call(void 0, "h-full overflow-x-hidden overflow-y-auto pt-4", fullBleed ? "" : "px-4 pb-20"), children: content })
|
|
12517
12517
|
}
|
|
12518
12518
|
)
|
|
12519
12519
|
]
|
|
12520
12520
|
}
|
|
12521
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
12521
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk37KYO2UDjs.cn.call(void 0, "h-full overflow-x-hidden overflow-y-auto pt-4", fullBleed ? "" : "px-4 pb-20"), children: content }) })
|
|
12522
12522
|
] });
|
|
12523
12523
|
}
|
|
12524
12524
|
_chunk7QVYU63Ejs.__name.call(void 0, PageContentContainer, "PageContentContainer");
|
|
@@ -12820,14 +12820,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, useJsonApiMutation, "useJsonApiMutation");
|
|
|
12820
12820
|
function useRehydration(classKey, data) {
|
|
12821
12821
|
return _react.useMemo.call(void 0, () => {
|
|
12822
12822
|
if (!data) return null;
|
|
12823
|
-
return
|
|
12823
|
+
return _chunk37KYO2UDjs.RehydrationFactory.rehydrate(classKey, data);
|
|
12824
12824
|
}, [classKey, data]);
|
|
12825
12825
|
}
|
|
12826
12826
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydration, "useRehydration");
|
|
12827
12827
|
function useRehydrationList(classKey, data) {
|
|
12828
12828
|
return _react.useMemo.call(void 0, () => {
|
|
12829
12829
|
if (!data || data.length === 0) return [];
|
|
12830
|
-
return
|
|
12830
|
+
return _chunk37KYO2UDjs.RehydrationFactory.rehydrateList(classKey, data);
|
|
12831
12831
|
}, [classKey, data]);
|
|
12832
12832
|
}
|
|
12833
12833
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydrationList, "useRehydrationList");
|
|
@@ -12867,11 +12867,11 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
12867
12867
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12868
12868
|
Link,
|
|
12869
12869
|
{
|
|
12870
|
-
href: hasRole(
|
|
12870
|
+
href: hasRole(_chunkWOJIRXIPjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
12871
12871
|
page: "/administration",
|
|
12872
|
-
id: _optionalChain([
|
|
12872
|
+
id: _optionalChain([_chunk37KYO2UDjs.Modules, 'access', _360 => _360.Company, 'access', _361 => _361.pageUrl, 'optionalAccess', _362 => _362.substring, 'call', _363 => _363(1)]),
|
|
12873
12873
|
childPage: company.id
|
|
12874
|
-
}) : generateUrl({ page:
|
|
12874
|
+
}) : generateUrl({ page: _chunk37KYO2UDjs.Modules.Company, id: company.id }),
|
|
12875
12875
|
children: row.getValue("name")
|
|
12876
12876
|
}
|
|
12877
12877
|
);
|
|
@@ -12895,8 +12895,8 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
12895
12895
|
var TRIAL_DAYS = 14;
|
|
12896
12896
|
var GRACE_DAYS = 3;
|
|
12897
12897
|
var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
|
|
12898
|
-
if (!currentUser || !
|
|
12899
|
-
const adminRoleId =
|
|
12898
|
+
if (!currentUser || !_chunkWOJIRXIPjs.isRolesConfigured.call(void 0, )) return false;
|
|
12899
|
+
const adminRoleId = _chunkWOJIRXIPjs.getRoleId.call(void 0, ).Administrator;
|
|
12900
12900
|
return !!_optionalChain([currentUser, 'access', _366 => _366.roles, 'optionalAccess', _367 => _367.some, 'call', _368 => _368((role) => role.id === adminRoleId)]);
|
|
12901
12901
|
}, "isAdministrator");
|
|
12902
12902
|
function useSubscriptionStatus() {
|
|
@@ -12911,7 +12911,7 @@ function useSubscriptionStatus() {
|
|
|
12911
12911
|
isBlocked: false
|
|
12912
12912
|
};
|
|
12913
12913
|
}
|
|
12914
|
-
if (!
|
|
12914
|
+
if (!_chunkWOJIRXIPjs.getStripePublishableKey.call(void 0, )) {
|
|
12915
12915
|
return {
|
|
12916
12916
|
status: "active",
|
|
12917
12917
|
trialEndsAt: null,
|
|
@@ -12995,7 +12995,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
12995
12995
|
header: t(`role.fields.name.label`),
|
|
12996
12996
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
12997
12997
|
const role = row.original.jsonApiData;
|
|
12998
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page:
|
|
12998
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunk37KYO2UDjs.Modules.Role, id: role.id }), children: row.getValue("name") });
|
|
12999
12999
|
}, "cell"),
|
|
13000
13000
|
enableSorting: false,
|
|
13001
13001
|
enableHiding: false
|
|
@@ -13032,7 +13032,7 @@ var useUserSearch = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
|
13032
13032
|
if (search === searchQueryRef.current && users.length > 0) return;
|
|
13033
13033
|
setIsLoading(true);
|
|
13034
13034
|
searchQueryRef.current = search;
|
|
13035
|
-
const fetchedUsers = await
|
|
13035
|
+
const fetchedUsers = await _chunk37KYO2UDjs.UserService.findMany({ search, fetchAll: true });
|
|
13036
13036
|
setUsers(fetchedUsers);
|
|
13037
13037
|
} catch (error) {
|
|
13038
13038
|
console.error("Failed to load users:", error);
|
|
@@ -13098,8 +13098,8 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
13098
13098
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13099
13099
|
Link,
|
|
13100
13100
|
{
|
|
13101
|
-
href: generateUrl({ page:
|
|
13102
|
-
className:
|
|
13101
|
+
href: generateUrl({ page: _chunk37KYO2UDjs.Modules.User, id: user.id }),
|
|
13102
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
13103
13103
|
`flex items-center justify-start gap-2`,
|
|
13104
13104
|
user.isDeleted || !user.isActivated ? "text-muted-foreground italic" : ""
|
|
13105
13105
|
),
|
|
@@ -13193,11 +13193,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
13193
13193
|
header: t(`content.fields.name.label`),
|
|
13194
13194
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
13195
13195
|
const content = row.original.jsonApiData;
|
|
13196
|
-
const contentModule = content.contentType ?
|
|
13196
|
+
const contentModule = content.contentType ? _chunk37KYO2UDjs.Modules.findByModelName(content.contentType) : void 0;
|
|
13197
13197
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
13198
13198
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
|
|
13199
13199
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { className: "flex items-center justify-start space-x-2", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
13200
|
-
contentModule &&
|
|
13200
|
+
contentModule && _chunk37KYO2UDjs.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
13201
13201
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: link, children: content.name })
|
|
13202
13202
|
] }) }),
|
|
13203
13203
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: content.tldr })
|
|
@@ -13334,7 +13334,7 @@ function useOAuthClients() {
|
|
|
13334
13334
|
setIsLoading(true);
|
|
13335
13335
|
setError(null);
|
|
13336
13336
|
try {
|
|
13337
|
-
const fetchedClients = await
|
|
13337
|
+
const fetchedClients = await _chunk37KYO2UDjs.OAuthService.listClients();
|
|
13338
13338
|
setClients(fetchedClients);
|
|
13339
13339
|
} catch (err) {
|
|
13340
13340
|
console.error("[useOAuthClients] Failed to fetch clients:", err);
|
|
@@ -13351,7 +13351,7 @@ function useOAuthClients() {
|
|
|
13351
13351
|
setIsLoading(true);
|
|
13352
13352
|
setError(null);
|
|
13353
13353
|
try {
|
|
13354
|
-
const result = await
|
|
13354
|
+
const result = await _chunk37KYO2UDjs.OAuthService.createClient(data);
|
|
13355
13355
|
addClient(result.client);
|
|
13356
13356
|
if (result.clientSecret) {
|
|
13357
13357
|
setNewClientSecret({
|
|
@@ -13398,7 +13398,7 @@ function useOAuthClient(clientId) {
|
|
|
13398
13398
|
setIsLoading(true);
|
|
13399
13399
|
setError(null);
|
|
13400
13400
|
try {
|
|
13401
|
-
const fetched = await
|
|
13401
|
+
const fetched = await _chunk37KYO2UDjs.OAuthService.getClient({ clientId });
|
|
13402
13402
|
setFetchedClient(fetched);
|
|
13403
13403
|
} catch (err) {
|
|
13404
13404
|
console.error("[useOAuthClient] Failed to fetch client:", err);
|
|
@@ -13418,7 +13418,7 @@ function useOAuthClient(clientId) {
|
|
|
13418
13418
|
setIsLoading(true);
|
|
13419
13419
|
setError(null);
|
|
13420
13420
|
try {
|
|
13421
|
-
const updated = await
|
|
13421
|
+
const updated = await _chunk37KYO2UDjs.OAuthService.updateClient({ clientId, data });
|
|
13422
13422
|
updateClientInStore(updated);
|
|
13423
13423
|
setFetchedClient(updated);
|
|
13424
13424
|
} catch (err) {
|
|
@@ -13437,7 +13437,7 @@ function useOAuthClient(clientId) {
|
|
|
13437
13437
|
setIsLoading(true);
|
|
13438
13438
|
setError(null);
|
|
13439
13439
|
try {
|
|
13440
|
-
await
|
|
13440
|
+
await _chunk37KYO2UDjs.OAuthService.deleteClient({ clientId });
|
|
13441
13441
|
removeClientFromStore(clientId);
|
|
13442
13442
|
} catch (err) {
|
|
13443
13443
|
console.error("[useOAuthClient] Failed to delete client:", err);
|
|
@@ -13453,7 +13453,7 @@ function useOAuthClient(clientId) {
|
|
|
13453
13453
|
setIsLoading(true);
|
|
13454
13454
|
setError(null);
|
|
13455
13455
|
try {
|
|
13456
|
-
const result = await
|
|
13456
|
+
const result = await _chunk37KYO2UDjs.OAuthService.regenerateSecret({ clientId });
|
|
13457
13457
|
setNewClientSecret({
|
|
13458
13458
|
clientId,
|
|
13459
13459
|
secret: result.clientSecret
|
|
@@ -13497,7 +13497,7 @@ function useOAuthConsent(params) {
|
|
|
13497
13497
|
setIsLoading(true);
|
|
13498
13498
|
setError(null);
|
|
13499
13499
|
try {
|
|
13500
|
-
const info = await
|
|
13500
|
+
const info = await _chunk37KYO2UDjs.OAuthService.getAuthorizationInfo(params);
|
|
13501
13501
|
setClientInfo(info);
|
|
13502
13502
|
} catch (err) {
|
|
13503
13503
|
console.error("[useOAuthConsent] Failed to fetch authorization info:", err);
|
|
@@ -13519,7 +13519,7 @@ function useOAuthConsent(params) {
|
|
|
13519
13519
|
setIsSubmitting(true);
|
|
13520
13520
|
setError(null);
|
|
13521
13521
|
try {
|
|
13522
|
-
const result = await
|
|
13522
|
+
const result = await _chunk37KYO2UDjs.OAuthService.approveAuthorization(params);
|
|
13523
13523
|
if (result.redirectUrl) {
|
|
13524
13524
|
window.location.href = result.redirectUrl;
|
|
13525
13525
|
}
|
|
@@ -13533,7 +13533,7 @@ function useOAuthConsent(params) {
|
|
|
13533
13533
|
setIsSubmitting(true);
|
|
13534
13534
|
setError(null);
|
|
13535
13535
|
try {
|
|
13536
|
-
const result = await
|
|
13536
|
+
const result = await _chunk37KYO2UDjs.OAuthService.denyAuthorization(params);
|
|
13537
13537
|
if (result.redirectUrl) {
|
|
13538
13538
|
window.location.href = result.redirectUrl;
|
|
13539
13539
|
}
|
|
@@ -13626,7 +13626,7 @@ function rbacReducer(state, action) {
|
|
|
13626
13626
|
const current = _nullishCoalesce(existing, () => ( (originalMapping ? { ...originalMapping.permissions } : {})));
|
|
13627
13627
|
const updated = { ...current };
|
|
13628
13628
|
delete updated[action.actionType];
|
|
13629
|
-
const hasAnyPermission =
|
|
13629
|
+
const hasAnyPermission = _chunkWOJIRXIPjs.ACTION_TYPES.some((at) => updated[at] !== void 0);
|
|
13630
13630
|
newMap.set(key, hasAnyPermission ? updated : null);
|
|
13631
13631
|
return { ...state, rolePermissions: newMap };
|
|
13632
13632
|
}
|
|
@@ -13677,7 +13677,7 @@ function useRbacState() {
|
|
|
13677
13677
|
dispatch({ type: "CLEAR_ALL_ROLE_PERMISSIONS", roleId, moduleId });
|
|
13678
13678
|
}, []);
|
|
13679
13679
|
const resetModulePermissions = _react.useCallback.call(void 0, (moduleId, roles) => {
|
|
13680
|
-
for (const actionType of
|
|
13680
|
+
for (const actionType of _chunkWOJIRXIPjs.ACTION_TYPES) {
|
|
13681
13681
|
dispatch({ type: "SET_MODULE_DEFAULT_PERMISSION", moduleId, actionType, value: true });
|
|
13682
13682
|
}
|
|
13683
13683
|
for (const role of roles) {
|
|
@@ -13796,7 +13796,7 @@ function formatPermissionValue(value) {
|
|
|
13796
13796
|
_chunk7QVYU63Ejs.__name.call(void 0, formatPermissionValue, "formatPermissionValue");
|
|
13797
13797
|
function formatPermissionsFromMap(perms) {
|
|
13798
13798
|
const entries = [];
|
|
13799
|
-
for (const actionType of
|
|
13799
|
+
for (const actionType of _chunkWOJIRXIPjs.ACTION_TYPES) {
|
|
13800
13800
|
const value = perms[actionType];
|
|
13801
13801
|
if (value !== void 0) {
|
|
13802
13802
|
entries.push(`{ type: ${ACTION_ENUM_MAP[actionType]}, value: ${formatPermissionValue(value)} }`);
|
|
@@ -13879,12 +13879,12 @@ function generateMigrationFile(params) {
|
|
|
13879
13879
|
const allTruePermissions = { read: true, create: true, update: true, delete: true };
|
|
13880
13880
|
const permsByRole = /* @__PURE__ */ new Map();
|
|
13881
13881
|
permsByRole.set(
|
|
13882
|
-
|
|
13882
|
+
_chunkWOJIRXIPjs.COMPANY_ADMINISTRATOR_ROLE_ID,
|
|
13883
13883
|
allModuleIds.map((moduleId) => ({ moduleId, permissions: allTruePermissions }))
|
|
13884
13884
|
);
|
|
13885
13885
|
for (const [key, perms] of rolePermissionsMap) {
|
|
13886
13886
|
const [roleId, moduleId] = key.split(":");
|
|
13887
|
-
if (roleId ===
|
|
13887
|
+
if (roleId === _chunkWOJIRXIPjs.COMPANY_ADMINISTRATOR_ROLE_ID) continue;
|
|
13888
13888
|
if (!permsByRole.has(roleId)) permsByRole.set(roleId, []);
|
|
13889
13889
|
permsByRole.get(roleId).push({ moduleId, permissions: perms });
|
|
13890
13890
|
}
|
|
@@ -14067,7 +14067,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
14067
14067
|
});
|
|
14068
14068
|
const rowModel = tableData ? table.getRowModel() : null;
|
|
14069
14069
|
const showFooter = !!(data.next || data.previous);
|
|
14070
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
14070
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk37KYO2UDjs.cn.call(void 0, `overflow-clip`, fullWidth ? `` : `rounded-md border`), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Table, { children: [
|
|
14071
14071
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableHeader, { className: "bg-muted font-semibold", children: [
|
|
14072
14072
|
props.title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14073
14073
|
TableHead,
|
|
@@ -14078,7 +14078,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
14078
14078
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14079
14079
|
"div",
|
|
14080
14080
|
{
|
|
14081
|
-
className:
|
|
14081
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
14082
14082
|
"text-muted-foreground flex items-center gap-x-2 font-light whitespace-nowrap",
|
|
14083
14083
|
fullWidth ? `text-lg` : `text-sm`
|
|
14084
14084
|
),
|
|
@@ -14086,7 +14086,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
14086
14086
|
props.tableGeneratorType.icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14087
14087
|
props.tableGeneratorType.icon,
|
|
14088
14088
|
{
|
|
14089
|
-
className:
|
|
14089
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, `text-primary`, fullWidth ? `h-6 w-6` : `h-4 w-4`)
|
|
14090
14090
|
}
|
|
14091
14091
|
),
|
|
14092
14092
|
props.title
|
|
@@ -14386,7 +14386,7 @@ function Register() {
|
|
|
14386
14386
|
const { setComponentType } = useAuthContext();
|
|
14387
14387
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
14388
14388
|
const inviteCode = searchParams.get("invite");
|
|
14389
|
-
const registrationMode =
|
|
14389
|
+
const registrationMode = _chunkWOJIRXIPjs.getRegistrationMode.call(void 0, );
|
|
14390
14390
|
const [showConfirmation, setShowConfirmation] = _react.useState.call(void 0, false);
|
|
14391
14391
|
const [inviteValidated, setInviteValidated] = _react.useState.call(void 0, false);
|
|
14392
14392
|
const [inviteError, setInviteError] = _react.useState.call(void 0, "");
|
|
@@ -14434,7 +14434,7 @@ function Register() {
|
|
|
14434
14434
|
}
|
|
14435
14435
|
setIsValidatingInvite(true);
|
|
14436
14436
|
try {
|
|
14437
|
-
const result = await
|
|
14437
|
+
const result = await _chunk37KYO2UDjs.WaitlistService.validateInvite(inviteCode);
|
|
14438
14438
|
if (result && result.valid) {
|
|
14439
14439
|
setInviteValidated(true);
|
|
14440
14440
|
form.setValue("email", result.email);
|
|
@@ -14465,7 +14465,7 @@ function Register() {
|
|
|
14465
14465
|
inviteCode: _nullishCoalesce(inviteCode, () => ( void 0)),
|
|
14466
14466
|
referralCode: _nullishCoalesce(referralCode, () => ( void 0))
|
|
14467
14467
|
};
|
|
14468
|
-
await
|
|
14468
|
+
await _chunk37KYO2UDjs.AuthService.register(payload);
|
|
14469
14469
|
clearReferralCode();
|
|
14470
14470
|
setShowConfirmation(true);
|
|
14471
14471
|
} catch (e) {
|
|
@@ -14563,16 +14563,16 @@ function Register() {
|
|
|
14563
14563
|
),
|
|
14564
14564
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, GdprConsentSection, { form }),
|
|
14565
14565
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "mt-4 w-full", type: "submit", children: t(`auth.buttons.register`) }),
|
|
14566
|
-
(registrationMode !== "waitlist" || inviteValidated) && (
|
|
14566
|
+
(registrationMode !== "waitlist" || inviteValidated) && (_chunkWOJIRXIPjs.isGoogleAuthEnabled.call(void 0, ) || _chunkWOJIRXIPjs.isDiscordAuthEnabled.call(void 0, )) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4 pt-4", children: [
|
|
14567
14567
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
14568
14568
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-full border-t" }) }),
|
|
14569
14569
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative flex justify-center text-xs uppercase", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "bg-card px-2 text-muted-foreground", children: t("auth.buttons.or") }) })
|
|
14570
14570
|
] }),
|
|
14571
14571
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
14572
|
-
|
|
14572
|
+
_chunkWOJIRXIPjs.isGoogleAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14573
14573
|
Link,
|
|
14574
14574
|
{
|
|
14575
|
-
href: `${
|
|
14575
|
+
href: `${_chunkWOJIRXIPjs.getApiUrl.call(void 0, )}auth/google${buildOAuthQueryParams(inviteCode, referralCode)}`,
|
|
14576
14576
|
className: "flex w-full",
|
|
14577
14577
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14578
14578
|
Button,
|
|
@@ -14617,10 +14617,10 @@ function Register() {
|
|
|
14617
14617
|
)
|
|
14618
14618
|
}
|
|
14619
14619
|
),
|
|
14620
|
-
|
|
14620
|
+
_chunkWOJIRXIPjs.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14621
14621
|
Link,
|
|
14622
14622
|
{
|
|
14623
|
-
href: `${
|
|
14623
|
+
href: `${_chunkWOJIRXIPjs.getApiUrl.call(void 0, )}auth/discord${buildOAuthQueryParams(inviteCode, referralCode)}`,
|
|
14624
14624
|
className: "flex w-full",
|
|
14625
14625
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Button, { className: "w-full", variant: "outline", type: "button", children: [
|
|
14626
14626
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { className: "mr-2 h-5 w-5", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z" }) }),
|
|
@@ -14745,7 +14745,7 @@ function BackupCodesDialog({ remainingCodes, onRegenerate, trigger }) {
|
|
|
14745
14745
|
const handleGenerate = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
14746
14746
|
setIsLoading(true);
|
|
14747
14747
|
try {
|
|
14748
|
-
const newCodes = await
|
|
14748
|
+
const newCodes = await _chunk37KYO2UDjs.TwoFactorService.generateBackupCodes();
|
|
14749
14749
|
setCodes(newCodes);
|
|
14750
14750
|
setShowCodes(true);
|
|
14751
14751
|
onRegenerate();
|
|
@@ -14758,7 +14758,7 @@ function BackupCodesDialog({ remainingCodes, onRegenerate, trigger }) {
|
|
|
14758
14758
|
const handleCopyAll = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
14759
14759
|
const text = codes.join("\n");
|
|
14760
14760
|
await navigator.clipboard.writeText(text);
|
|
14761
|
-
|
|
14761
|
+
_chunk37KYO2UDjs.showToast.call(void 0, t("auth.two_factor.codes_copied"));
|
|
14762
14762
|
}, "handleCopyAll");
|
|
14763
14763
|
const handleDownload = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
14764
14764
|
const text = `Backup Codes
|
|
@@ -14913,8 +14913,8 @@ function DisableTwoFactorDialog({ onSuccess, trigger }) {
|
|
|
14913
14913
|
setIsLoading(true);
|
|
14914
14914
|
setError(void 0);
|
|
14915
14915
|
try {
|
|
14916
|
-
await
|
|
14917
|
-
|
|
14916
|
+
await _chunk37KYO2UDjs.TwoFactorService.disable({ code });
|
|
14917
|
+
_chunk37KYO2UDjs.showToast.call(void 0, t("auth.two_factor.disabled_success"));
|
|
14918
14918
|
setOpen(false);
|
|
14919
14919
|
onSuccess();
|
|
14920
14920
|
} catch (err) {
|
|
@@ -14960,8 +14960,8 @@ function PasskeyList({ passkeys, onRefresh }) {
|
|
|
14960
14960
|
const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (passkey) => {
|
|
14961
14961
|
setIsLoading(true);
|
|
14962
14962
|
try {
|
|
14963
|
-
await
|
|
14964
|
-
|
|
14963
|
+
await _chunk37KYO2UDjs.TwoFactorService.deletePasskey({ id: passkey.id });
|
|
14964
|
+
_chunk37KYO2UDjs.showToast.call(void 0, t("common.success"), {
|
|
14965
14965
|
description: t("auth.two_factor.passkey_deleted")
|
|
14966
14966
|
});
|
|
14967
14967
|
onRefresh();
|
|
@@ -14978,11 +14978,11 @@ function PasskeyList({ passkeys, onRefresh }) {
|
|
|
14978
14978
|
if (!selectedPasskey || !newName.trim()) return;
|
|
14979
14979
|
setIsLoading(true);
|
|
14980
14980
|
try {
|
|
14981
|
-
await
|
|
14981
|
+
await _chunk37KYO2UDjs.TwoFactorService.renamePasskey({
|
|
14982
14982
|
id: selectedPasskey.id,
|
|
14983
14983
|
name: newName.trim()
|
|
14984
14984
|
});
|
|
14985
|
-
|
|
14985
|
+
_chunk37KYO2UDjs.showToast.call(void 0, t("common.success"), {
|
|
14986
14986
|
description: t("auth.two_factor.passkey_renamed")
|
|
14987
14987
|
});
|
|
14988
14988
|
setRenameDialogOpen(false);
|
|
@@ -15082,23 +15082,23 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
|
|
|
15082
15082
|
if (!name.trim()) return;
|
|
15083
15083
|
setIsLoading(true);
|
|
15084
15084
|
try {
|
|
15085
|
-
const registrationData = await
|
|
15085
|
+
const registrationData = await _chunk37KYO2UDjs.TwoFactorService.getPasskeyRegistrationOptions({
|
|
15086
15086
|
id: _uuid.v4.call(void 0, ),
|
|
15087
15087
|
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _418 => _418.email]), () => ( "")),
|
|
15088
15088
|
userDisplayName: _optionalChain([currentUser, 'optionalAccess', _419 => _419.name])
|
|
15089
15089
|
});
|
|
15090
15090
|
const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
|
|
15091
|
-
await
|
|
15091
|
+
await _chunk37KYO2UDjs.TwoFactorService.verifyPasskeyRegistration({
|
|
15092
15092
|
id: _uuid.v4.call(void 0, ),
|
|
15093
15093
|
pendingId: registrationData.pendingId,
|
|
15094
15094
|
name: name.trim(),
|
|
15095
15095
|
response: credential
|
|
15096
15096
|
});
|
|
15097
|
-
const status = await
|
|
15097
|
+
const status = await _chunk37KYO2UDjs.TwoFactorService.getStatus();
|
|
15098
15098
|
if (!status.isEnabled) {
|
|
15099
|
-
await
|
|
15099
|
+
await _chunk37KYO2UDjs.TwoFactorService.enable({ id: _uuid.v4.call(void 0, ), preferredMethod: "passkey" });
|
|
15100
15100
|
}
|
|
15101
|
-
|
|
15101
|
+
_chunk37KYO2UDjs.showToast.call(void 0, t("common.success"), {
|
|
15102
15102
|
description: t("auth.two_factor.passkey_registered")
|
|
15103
15103
|
});
|
|
15104
15104
|
setName("");
|
|
@@ -15149,8 +15149,8 @@ function TotpAuthenticatorList({ authenticators, onDelete }) {
|
|
|
15149
15149
|
const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (id) => {
|
|
15150
15150
|
setDeletingId(id);
|
|
15151
15151
|
try {
|
|
15152
|
-
await
|
|
15153
|
-
|
|
15152
|
+
await _chunk37KYO2UDjs.TwoFactorService.deleteTotpAuthenticator({ id });
|
|
15153
|
+
_chunk37KYO2UDjs.showToast.call(void 0, t("common.success"), {
|
|
15154
15154
|
description: t("auth.two_factor.authenticator_removed")
|
|
15155
15155
|
});
|
|
15156
15156
|
onDelete();
|
|
@@ -15233,7 +15233,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
15233
15233
|
if (!name.trim()) return;
|
|
15234
15234
|
setIsLoading(true);
|
|
15235
15235
|
try {
|
|
15236
|
-
const setup = await
|
|
15236
|
+
const setup = await _chunk37KYO2UDjs.TwoFactorService.setupTotp({
|
|
15237
15237
|
id: _uuid.v4.call(void 0, ),
|
|
15238
15238
|
name: name.trim(),
|
|
15239
15239
|
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _420 => _420.email]), () => ( ""))
|
|
@@ -15251,16 +15251,16 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
15251
15251
|
setIsLoading(true);
|
|
15252
15252
|
setVerifyError(void 0);
|
|
15253
15253
|
try {
|
|
15254
|
-
await
|
|
15254
|
+
await _chunk37KYO2UDjs.TwoFactorService.verifyTotpSetup({
|
|
15255
15255
|
id: _uuid.v4.call(void 0, ),
|
|
15256
15256
|
authenticatorId,
|
|
15257
15257
|
code
|
|
15258
15258
|
});
|
|
15259
|
-
const status = await
|
|
15259
|
+
const status = await _chunk37KYO2UDjs.TwoFactorService.getStatus();
|
|
15260
15260
|
if (!status.isEnabled) {
|
|
15261
|
-
await
|
|
15261
|
+
await _chunk37KYO2UDjs.TwoFactorService.enable({ id: _uuid.v4.call(void 0, ), preferredMethod: "totp" });
|
|
15262
15262
|
}
|
|
15263
|
-
|
|
15263
|
+
_chunk37KYO2UDjs.showToast.call(void 0, t("common.success"), {
|
|
15264
15264
|
description: t("auth.two_factor.authenticator_added")
|
|
15265
15265
|
});
|
|
15266
15266
|
setOpen(false);
|
|
@@ -15335,9 +15335,9 @@ function TwoFactorSettings() {
|
|
|
15335
15335
|
const loadStatus = _react.useCallback.call(void 0, async () => {
|
|
15336
15336
|
try {
|
|
15337
15337
|
const [statusData, authenticatorsList, passkeysList] = await Promise.all([
|
|
15338
|
-
|
|
15339
|
-
|
|
15340
|
-
|
|
15338
|
+
_chunk37KYO2UDjs.TwoFactorService.getStatus(),
|
|
15339
|
+
_chunk37KYO2UDjs.TwoFactorService.listTotpAuthenticators(),
|
|
15340
|
+
_chunk37KYO2UDjs.TwoFactorService.listPasskeys()
|
|
15341
15341
|
]);
|
|
15342
15342
|
setStatus(statusData);
|
|
15343
15343
|
setAuthenticators(authenticatorsList);
|
|
@@ -15358,8 +15358,8 @@ function TwoFactorSettings() {
|
|
|
15358
15358
|
setIsEnabling(true);
|
|
15359
15359
|
try {
|
|
15360
15360
|
const preferredMethod = authenticators.length > 0 ? "totp" : "passkey";
|
|
15361
|
-
await
|
|
15362
|
-
|
|
15361
|
+
await _chunk37KYO2UDjs.TwoFactorService.enable({ id: _uuid.v4.call(void 0, ), preferredMethod });
|
|
15362
|
+
_chunk37KYO2UDjs.showToast.call(void 0, t("common.success"), { description: t("auth.two_factor.enabled_success") });
|
|
15363
15363
|
await loadStatus();
|
|
15364
15364
|
} catch (error) {
|
|
15365
15365
|
errorToast({ title: t("common.errors.error"), error });
|
|
@@ -15449,11 +15449,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, SecurityContainer, "SecurityContainer");
|
|
|
15449
15449
|
// src/features/auth/components/buttons/GoogleSignInButton.tsx
|
|
15450
15450
|
|
|
15451
15451
|
function GoogleSignInButton({ referralCode }) {
|
|
15452
|
-
if (!
|
|
15452
|
+
if (!_chunkWOJIRXIPjs.isGoogleAuthEnabled.call(void 0, )) {
|
|
15453
15453
|
return null;
|
|
15454
15454
|
}
|
|
15455
15455
|
const buildGoogleOAuthUrl = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
15456
|
-
const baseUrl = `${
|
|
15456
|
+
const baseUrl = `${_chunkWOJIRXIPjs.getApiUrl.call(void 0, )}auth/google`;
|
|
15457
15457
|
if (!referralCode) return baseUrl;
|
|
15458
15458
|
return `${baseUrl}?referral=${encodeURIComponent(referralCode)}`;
|
|
15459
15459
|
}, "buildGoogleOAuthUrl");
|
|
@@ -15515,8 +15515,8 @@ function LandingComponent() {
|
|
|
15515
15515
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { className: "flex w-full justify-center text-center text-sm", children: t(`common.description`) })
|
|
15516
15516
|
] }),
|
|
15517
15517
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardFooter, { className: "mt-4 flex w-full flex-col justify-between gap-y-4", children: [
|
|
15518
|
-
|
|
15519
|
-
|
|
15518
|
+
_chunkWOJIRXIPjs.isInternalAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
15519
|
+
_chunkWOJIRXIPjs.isRegistrationAllowed.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15520
15520
|
Link,
|
|
15521
15521
|
{
|
|
15522
15522
|
href: "#",
|
|
@@ -15527,8 +15527,8 @@ function LandingComponent() {
|
|
|
15527
15527
|
),
|
|
15528
15528
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: "#", className: "flex w-full justify-end", onClick: () => setComponentType(0 /* Login */), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: t(`auth.buttons.login`) }) })
|
|
15529
15529
|
] }),
|
|
15530
|
-
|
|
15531
|
-
|
|
15530
|
+
_chunkWOJIRXIPjs.isGoogleAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GoogleSignInButton, {}),
|
|
15531
|
+
_chunkWOJIRXIPjs.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: `${_chunkWOJIRXIPjs.getApiUrl.call(void 0, )}auth/discord`, className: "flex w-full justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: "Login with Discord" }) })
|
|
15532
15532
|
] })
|
|
15533
15533
|
] });
|
|
15534
15534
|
}
|
|
@@ -15553,7 +15553,7 @@ function AcceptInvitation() {
|
|
|
15553
15553
|
const payload = {
|
|
15554
15554
|
code
|
|
15555
15555
|
};
|
|
15556
|
-
await
|
|
15556
|
+
await _chunk37KYO2UDjs.AuthService.validateCode(payload);
|
|
15557
15557
|
} catch (e) {
|
|
15558
15558
|
setError(e instanceof Error ? e.message : String(e));
|
|
15559
15559
|
errorToast({ title: t(`common.errors.error`), error: e });
|
|
@@ -15591,9 +15591,9 @@ function AcceptInvitation() {
|
|
|
15591
15591
|
code: _optionalChain([params, 'optionalAccess', _424 => _424.code]),
|
|
15592
15592
|
password: values.password
|
|
15593
15593
|
};
|
|
15594
|
-
await
|
|
15594
|
+
await _chunk37KYO2UDjs.AuthService.acceptInvitation(payload);
|
|
15595
15595
|
setShowConfirmation(true);
|
|
15596
|
-
|
|
15596
|
+
_chunk37KYO2UDjs.showToast.call(void 0, t("auth.account_activated"), {
|
|
15597
15597
|
description: t("auth.account_activated_description")
|
|
15598
15598
|
});
|
|
15599
15599
|
setTimeout(() => {
|
|
@@ -15653,10 +15653,10 @@ function ActivateAccount() {
|
|
|
15653
15653
|
const payload = {
|
|
15654
15654
|
activationCode: code
|
|
15655
15655
|
};
|
|
15656
|
-
await
|
|
15656
|
+
await _chunk37KYO2UDjs.AuthService.activate(payload);
|
|
15657
15657
|
setShowConfirmation(true);
|
|
15658
15658
|
setParams(void 0);
|
|
15659
|
-
|
|
15659
|
+
_chunk37KYO2UDjs.showToast.call(void 0, t("auth.account_activated"), {
|
|
15660
15660
|
description: t("auth.account_activated_description")
|
|
15661
15661
|
});
|
|
15662
15662
|
setTimeout(() => {
|
|
@@ -15691,13 +15691,13 @@ _chunk7QVYU63Ejs.__name.call(void 0, ActivateAccount, "ActivateAccount");
|
|
|
15691
15691
|
|
|
15692
15692
|
function Cookies({ dehydratedAuth, page }) {
|
|
15693
15693
|
const { setUser } = useCurrentUserContext();
|
|
15694
|
-
const router =
|
|
15694
|
+
const router = _chunkWOJIRXIPjs.useI18nRouter.call(void 0, );
|
|
15695
15695
|
const [hasSaved, setHasSaved] = _react.useState.call(void 0, false);
|
|
15696
15696
|
_react.useEffect.call(void 0, () => {
|
|
15697
15697
|
if (hasSaved) return;
|
|
15698
15698
|
async function saveTokenOnServer() {
|
|
15699
|
-
await
|
|
15700
|
-
const auth =
|
|
15699
|
+
await _chunk37KYO2UDjs.AuthService.saveToken({ dehydratedAuth });
|
|
15700
|
+
const auth = _chunk37KYO2UDjs.rehydrate.call(void 0, _chunk37KYO2UDjs.Modules.Auth, dehydratedAuth);
|
|
15701
15701
|
setUser(auth.user);
|
|
15702
15702
|
setHasSaved(true);
|
|
15703
15703
|
if (page) {
|
|
@@ -15740,7 +15740,7 @@ function ForgotPassword() {
|
|
|
15740
15740
|
const payload = {
|
|
15741
15741
|
email: values.email
|
|
15742
15742
|
};
|
|
15743
|
-
await
|
|
15743
|
+
await _chunk37KYO2UDjs.AuthService.initialiseForgotPassword(payload);
|
|
15744
15744
|
setShowConfirmation(true);
|
|
15745
15745
|
} catch (e) {
|
|
15746
15746
|
errorToast({ error: e });
|
|
@@ -15797,7 +15797,7 @@ function Login() {
|
|
|
15797
15797
|
const { setUser } = useCurrentUserContext();
|
|
15798
15798
|
const { setComponentType, setPendingTwoFactor } = useAuthContext();
|
|
15799
15799
|
const generateUrl = usePageUrlGenerator();
|
|
15800
|
-
const i18nRouter =
|
|
15800
|
+
const i18nRouter = _chunkWOJIRXIPjs.useI18nRouter.call(void 0, );
|
|
15801
15801
|
const nativeRouter = _navigation.useRouter.call(void 0, );
|
|
15802
15802
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
15803
15803
|
const callbackUrl = searchParams.get("callbackUrl");
|
|
@@ -15813,7 +15813,7 @@ function Login() {
|
|
|
15813
15813
|
}
|
|
15814
15814
|
}, []);
|
|
15815
15815
|
const buildDiscordOAuthUrl = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
15816
|
-
const baseUrl = `${
|
|
15816
|
+
const baseUrl = `${_chunkWOJIRXIPjs.getApiUrl.call(void 0, )}auth/discord`;
|
|
15817
15817
|
if (!referralCode) return baseUrl;
|
|
15818
15818
|
return `${baseUrl}?referral=${encodeURIComponent(referralCode)}`;
|
|
15819
15819
|
}, "buildDiscordOAuthUrl");
|
|
@@ -15832,7 +15832,7 @@ function Login() {
|
|
|
15832
15832
|
});
|
|
15833
15833
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
15834
15834
|
try {
|
|
15835
|
-
const response = await
|
|
15835
|
+
const response = await _chunk37KYO2UDjs.AuthService.login({
|
|
15836
15836
|
email: values.email,
|
|
15837
15837
|
password: values.password
|
|
15838
15838
|
});
|
|
@@ -15866,7 +15866,7 @@ function Login() {
|
|
|
15866
15866
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { className: "text-sm", children: t(`auth.login_description`) })
|
|
15867
15867
|
] }),
|
|
15868
15868
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), children: [
|
|
15869
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { children:
|
|
15869
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { children: _chunkWOJIRXIPjs.isInternalAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
15870
15870
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15871
15871
|
FormInput,
|
|
15872
15872
|
{
|
|
@@ -15891,8 +15891,8 @@ function Login() {
|
|
|
15891
15891
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "mt-4 w-full", type: "submit", "data-testid": "form-login-button-submit", children: t(`auth.buttons.login`) })
|
|
15892
15892
|
] }) }),
|
|
15893
15893
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardFooter, { className: "flex w-full flex-col gap-y-4 mt-4", children: [
|
|
15894
|
-
|
|
15895
|
-
|
|
15894
|
+
_chunkWOJIRXIPjs.isGoogleAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GoogleSignInButton, { referralCode }),
|
|
15895
|
+
_chunkWOJIRXIPjs.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: buildDiscordOAuthUrl(), className: "flex w-full justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: "Login with Discord" }) }),
|
|
15896
15896
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row justify-between", children: [
|
|
15897
15897
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15898
15898
|
Link,
|
|
@@ -15941,7 +15941,7 @@ function Logout({ storageKeys }) {
|
|
|
15941
15941
|
if (_optionalChain([storageKeys, 'optionalAccess', _425 => _425.length])) {
|
|
15942
15942
|
clearClientStorage(storageKeys);
|
|
15943
15943
|
}
|
|
15944
|
-
await
|
|
15944
|
+
await _chunk37KYO2UDjs.AuthService.logout();
|
|
15945
15945
|
window.location.href = generateUrl({ page: `/` });
|
|
15946
15946
|
}, "logOut");
|
|
15947
15947
|
logOut();
|
|
@@ -15956,7 +15956,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, Logout, "Logout");
|
|
|
15956
15956
|
function RefreshUser() {
|
|
15957
15957
|
const { setUser } = useCurrentUserContext();
|
|
15958
15958
|
const loadFullUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
15959
|
-
const fullUser = await
|
|
15959
|
+
const fullUser = await _chunk37KYO2UDjs.UserService.findFullUser();
|
|
15960
15960
|
if (fullUser) {
|
|
15961
15961
|
setUser(fullUser);
|
|
15962
15962
|
const token = {
|
|
@@ -15968,7 +15968,7 @@ function RefreshUser() {
|
|
|
15968
15968
|
return { id: module.id, permissions: module.permissions };
|
|
15969
15969
|
})
|
|
15970
15970
|
};
|
|
15971
|
-
await _optionalChain([
|
|
15971
|
+
await _optionalChain([_chunk37KYO2UDjs.getTokenHandler.call(void 0, ), 'optionalAccess', _432 => _432.updateToken, 'call', _433 => _433(token)]);
|
|
15972
15972
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
15973
15973
|
}
|
|
15974
15974
|
}, "loadFullUser");
|
|
@@ -15999,7 +15999,7 @@ function ResetPassword() {
|
|
|
15999
15999
|
const payload = {
|
|
16000
16000
|
code
|
|
16001
16001
|
};
|
|
16002
|
-
await
|
|
16002
|
+
await _chunk37KYO2UDjs.AuthService.validateCode(payload);
|
|
16003
16003
|
} catch (e) {
|
|
16004
16004
|
setError(e instanceof Error ? e.message : String(e));
|
|
16005
16005
|
errorToast({ title: t(`common.errors.error`), error: e });
|
|
@@ -16037,9 +16037,9 @@ function ResetPassword() {
|
|
|
16037
16037
|
code: _optionalChain([params, 'optionalAccess', _435 => _435.code]),
|
|
16038
16038
|
password: values.password
|
|
16039
16039
|
};
|
|
16040
|
-
await
|
|
16040
|
+
await _chunk37KYO2UDjs.AuthService.resetPassword(payload);
|
|
16041
16041
|
setShowConfirmation(true);
|
|
16042
|
-
|
|
16042
|
+
_chunk37KYO2UDjs.showToast.call(void 0, t(`auth.reset_success`), {
|
|
16043
16043
|
description: t(`auth.reset_success_description`)
|
|
16044
16044
|
});
|
|
16045
16045
|
setTimeout(() => {
|
|
@@ -16085,9 +16085,9 @@ function PasskeyButton({ pendingToken, onSuccess, onError, disabled = false }) {
|
|
|
16085
16085
|
const handleClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
16086
16086
|
setIsLoading(true);
|
|
16087
16087
|
try {
|
|
16088
|
-
const { pendingId, options } = await
|
|
16088
|
+
const { pendingId, options } = await _chunk37KYO2UDjs.TwoFactorService.getPasskeyAuthOptions({ pendingToken });
|
|
16089
16089
|
const credential = await _browser.startAuthentication.call(void 0, { optionsJSON: options });
|
|
16090
|
-
const auth = await
|
|
16090
|
+
const auth = await _chunk37KYO2UDjs.TwoFactorService.verifyPasskey({
|
|
16091
16091
|
id: _uuid.v4.call(void 0, ),
|
|
16092
16092
|
pendingToken,
|
|
16093
16093
|
pendingId,
|
|
@@ -16122,7 +16122,7 @@ function TwoFactorChallenge() {
|
|
|
16122
16122
|
const { setUser } = useCurrentUserContext();
|
|
16123
16123
|
const { pendingTwoFactor, setPendingTwoFactor } = useAuthContext();
|
|
16124
16124
|
const generateUrl = usePageUrlGenerator();
|
|
16125
|
-
const i18nRouter =
|
|
16125
|
+
const i18nRouter = _chunkWOJIRXIPjs.useI18nRouter.call(void 0, );
|
|
16126
16126
|
const nativeRouter = _navigation.useRouter.call(void 0, );
|
|
16127
16127
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
16128
16128
|
const callbackUrl = searchParams.get("callbackUrl");
|
|
@@ -16146,7 +16146,7 @@ function TwoFactorChallenge() {
|
|
|
16146
16146
|
setIsVerifying(true);
|
|
16147
16147
|
setTotpError(void 0);
|
|
16148
16148
|
try {
|
|
16149
|
-
const auth = await
|
|
16149
|
+
const auth = await _chunk37KYO2UDjs.TwoFactorService.verifyTotp({
|
|
16150
16150
|
id: _uuid.v4.call(void 0, ),
|
|
16151
16151
|
pendingToken: pendingTwoFactor.pendingToken,
|
|
16152
16152
|
code
|
|
@@ -16176,7 +16176,7 @@ function TwoFactorChallenge() {
|
|
|
16176
16176
|
setIsVerifying(true);
|
|
16177
16177
|
setBackupError(void 0);
|
|
16178
16178
|
try {
|
|
16179
|
-
const auth = await
|
|
16179
|
+
const auth = await _chunk37KYO2UDjs.TwoFactorService.verifyBackupCode({
|
|
16180
16180
|
id: _uuid.v4.call(void 0, ),
|
|
16181
16181
|
pendingToken: pendingTwoFactor.pendingToken,
|
|
16182
16182
|
code: backupCode
|
|
@@ -16267,12 +16267,12 @@ function ContentsList({ contentList }) {
|
|
|
16267
16267
|
_chunk7QVYU63Ejs.__name.call(void 0, ContentsList, "ContentsList");
|
|
16268
16268
|
function ContentsListElement({ content }) {
|
|
16269
16269
|
const generateUrl = usePageUrlGenerator();
|
|
16270
|
-
const contentModule = content.contentType ?
|
|
16270
|
+
const contentModule = content.contentType ? _chunk37KYO2UDjs.Modules.findByModelName(content.contentType) : void 0;
|
|
16271
16271
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
16272
16272
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hover:bg-muted flex w-full flex-col gap-y-2 border-b p-2 py-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full justify-between gap-x-2", children: [
|
|
16273
16273
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCard, { children: [
|
|
16274
16274
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HoverCardTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Link, { href: link, className: "flex w-full items-center justify-start gap-2 font-semibold", children: [
|
|
16275
|
-
contentModule &&
|
|
16275
|
+
contentModule && _chunk37KYO2UDjs.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
16276
16276
|
content.name
|
|
16277
16277
|
] }) }),
|
|
16278
16278
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCardContent, { className: "flex max-h-96 w-96 flex-col gap-y-4 overflow-y-auto", children: [
|
|
@@ -16291,8 +16291,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListElement, "ContentsListElement")
|
|
|
16291
16291
|
function ContentsListById({ contentIds }) {
|
|
16292
16292
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
16293
16293
|
const data = useDataListRetriever({
|
|
16294
|
-
module:
|
|
16295
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
16294
|
+
module: _chunk37KYO2UDjs.Modules.Content,
|
|
16295
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk37KYO2UDjs.ContentService.findMany(params), "retriever"),
|
|
16296
16296
|
retrieverParams: { contentIds }
|
|
16297
16297
|
});
|
|
16298
16298
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16300,7 +16300,7 @@ function ContentsListById({ contentIds }) {
|
|
|
16300
16300
|
{
|
|
16301
16301
|
data,
|
|
16302
16302
|
fields: ["name" /* name */, "authors" /* authors */, "updatedAt" /* updatedAt */],
|
|
16303
|
-
tableGeneratorType:
|
|
16303
|
+
tableGeneratorType: _chunk37KYO2UDjs.Modules.Content,
|
|
16304
16304
|
title: t(`common.relevant`)
|
|
16305
16305
|
}
|
|
16306
16306
|
);
|
|
@@ -16313,8 +16313,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListById, "ContentsListById");
|
|
|
16313
16313
|
function RelevantContentsList({ id }) {
|
|
16314
16314
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
16315
16315
|
const data = useDataListRetriever({
|
|
16316
|
-
module:
|
|
16317
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
16316
|
+
module: _chunk37KYO2UDjs.Modules.Content,
|
|
16317
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk37KYO2UDjs.ContentService.findRelevant(params), "retriever"),
|
|
16318
16318
|
retrieverParams: { id }
|
|
16319
16319
|
});
|
|
16320
16320
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16322,7 +16322,7 @@ function RelevantContentsList({ id }) {
|
|
|
16322
16322
|
{
|
|
16323
16323
|
data,
|
|
16324
16324
|
fields: ["name" /* name */, "authors" /* authors */, "relevance" /* relevance */, "updatedAt" /* updatedAt */],
|
|
16325
|
-
tableGeneratorType:
|
|
16325
|
+
tableGeneratorType: _chunk37KYO2UDjs.Modules.Content,
|
|
16326
16326
|
title: t(`common.relevant`)
|
|
16327
16327
|
}
|
|
16328
16328
|
);
|
|
@@ -16375,12 +16375,12 @@ function NotificationsList({ archived }) {
|
|
|
16375
16375
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
16376
16376
|
const generateUrl = usePageUrlGenerator();
|
|
16377
16377
|
const data = useDataListRetriever({
|
|
16378
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
16378
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk37KYO2UDjs.NotificationService.findMany(params), "retriever"),
|
|
16379
16379
|
retrieverParams: { isArchived: archived },
|
|
16380
|
-
module:
|
|
16380
|
+
module: _chunk37KYO2UDjs.Modules.Notification
|
|
16381
16381
|
});
|
|
16382
16382
|
const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
|
|
16383
|
-
await
|
|
16383
|
+
await _chunk37KYO2UDjs.NotificationService.archive({ id: notification.id });
|
|
16384
16384
|
data.removeElement(notification);
|
|
16385
16385
|
}, "archiveNotification");
|
|
16386
16386
|
const LoadingSkeleton = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: "p-2", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center", children: [
|
|
@@ -16394,7 +16394,7 @@ function NotificationsList({ archived }) {
|
|
|
16394
16394
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _436 => _436.data, 'optionalAccess', _437 => _437.map, 'call', _438 => _438((notification) => {
|
|
16395
16395
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
16396
16396
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: "p-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex w-full flex-row items-center p-2`, children: [
|
|
16397
|
-
notificationData.actor ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-12 max-w-12 px-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page:
|
|
16397
|
+
notificationData.actor ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-12 max-w-12 px-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunk37KYO2UDjs.Modules.User, id: notificationData.actor.id }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: notificationData.actor, className: "h-8 w-8" }) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-14 max-w-14 px-2" }),
|
|
16398
16398
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
16399
16399
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
16400
16400
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
@@ -16541,7 +16541,7 @@ function NotificationModalContent({ isOpen, setIsOpen }) {
|
|
|
16541
16541
|
batch.forEach((notification) => {
|
|
16542
16542
|
addNotification(notification);
|
|
16543
16543
|
const toastNotification = generateToastNotification(notification, t, generateUrl);
|
|
16544
|
-
|
|
16544
|
+
_chunk37KYO2UDjs.showToast.call(void 0, toastNotification.title, {
|
|
16545
16545
|
description: toastNotification.description,
|
|
16546
16546
|
action: toastNotification.action
|
|
16547
16547
|
});
|
|
@@ -16641,13 +16641,13 @@ _chunk7QVYU63Ejs.__name.call(void 0, PushNotificationProvider, "PushNotification
|
|
|
16641
16641
|
|
|
16642
16642
|
// src/features/referral/utils/referral-cookie.ts
|
|
16643
16643
|
function setReferralCode(code) {
|
|
16644
|
-
const config =
|
|
16644
|
+
const config = _chunkWOJIRXIPjs.getReferralConfig.call(void 0, );
|
|
16645
16645
|
const maxAge = config.cookieDays * 24 * 60 * 60;
|
|
16646
16646
|
document.cookie = `${config.cookieName}=${encodeURIComponent(code)}; path=/; max-age=${maxAge}; SameSite=Lax`;
|
|
16647
16647
|
}
|
|
16648
16648
|
_chunk7QVYU63Ejs.__name.call(void 0, setReferralCode, "setReferralCode");
|
|
16649
16649
|
function getReferralCode2() {
|
|
16650
|
-
const config =
|
|
16650
|
+
const config = _chunkWOJIRXIPjs.getReferralConfig.call(void 0, );
|
|
16651
16651
|
const cookies = document.cookie.split("; ");
|
|
16652
16652
|
for (const cookie of cookies) {
|
|
16653
16653
|
const [name, value] = cookie.split("=");
|
|
@@ -16663,10 +16663,10 @@ _chunk7QVYU63Ejs.__name.call(void 0, getReferralCode2, "getReferralCode");
|
|
|
16663
16663
|
function ReferralCodeCapture() {
|
|
16664
16664
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
16665
16665
|
_react.useEffect.call(void 0, () => {
|
|
16666
|
-
if (!
|
|
16666
|
+
if (!_chunkWOJIRXIPjs.isReferralEnabled.call(void 0, )) {
|
|
16667
16667
|
return;
|
|
16668
16668
|
}
|
|
16669
|
-
const config =
|
|
16669
|
+
const config = _chunkWOJIRXIPjs.getReferralConfig.call(void 0, );
|
|
16670
16670
|
const refCode = searchParams.get(config.urlParamName);
|
|
16671
16671
|
if (refCode) {
|
|
16672
16672
|
const existingCode = getReferralCode2();
|
|
@@ -16690,14 +16690,14 @@ function useReferralInvite() {
|
|
|
16690
16690
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
16691
16691
|
const [success, setSuccess] = _react.useState.call(void 0, false);
|
|
16692
16692
|
const sendInvite = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (email) => {
|
|
16693
|
-
if (!
|
|
16693
|
+
if (!_chunkWOJIRXIPjs.isReferralEnabled.call(void 0, )) {
|
|
16694
16694
|
return;
|
|
16695
16695
|
}
|
|
16696
16696
|
setSending(true);
|
|
16697
16697
|
setError(null);
|
|
16698
16698
|
setSuccess(false);
|
|
16699
16699
|
try {
|
|
16700
|
-
await
|
|
16700
|
+
await _chunk37KYO2UDjs.ReferralService.sendReferralEmail(email);
|
|
16701
16701
|
setSuccess(true);
|
|
16702
16702
|
} catch (err) {
|
|
16703
16703
|
setError(err);
|
|
@@ -16716,11 +16716,11 @@ function useReferralStats() {
|
|
|
16716
16716
|
const [loading, setLoading] = _react.useState.call(void 0, true);
|
|
16717
16717
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
16718
16718
|
_react.useEffect.call(void 0, () => {
|
|
16719
|
-
if (!
|
|
16719
|
+
if (!_chunkWOJIRXIPjs.isReferralEnabled.call(void 0, )) {
|
|
16720
16720
|
setLoading(false);
|
|
16721
16721
|
return;
|
|
16722
16722
|
}
|
|
16723
|
-
|
|
16723
|
+
_chunk37KYO2UDjs.ReferralService.getMyReferralStats().then(setStats).catch(setError).finally(() => setLoading(false));
|
|
16724
16724
|
}, []);
|
|
16725
16725
|
return { stats, loading, error };
|
|
16726
16726
|
}
|
|
@@ -16788,10 +16788,10 @@ function ReferralWidget({
|
|
|
16788
16788
|
const [email, setEmail] = _react.useState.call(void 0, "");
|
|
16789
16789
|
const [copied, setCopied] = _react.useState.call(void 0, false);
|
|
16790
16790
|
const linkInputRef = _react.useRef.call(void 0, null);
|
|
16791
|
-
const config =
|
|
16791
|
+
const config = _chunkWOJIRXIPjs.getReferralConfig.call(void 0, );
|
|
16792
16792
|
const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
|
|
16793
16793
|
const referralUrl = _optionalChain([stats, 'optionalAccess', _443 => _443.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
|
|
16794
|
-
if (!
|
|
16794
|
+
if (!_chunkWOJIRXIPjs.isReferralEnabled.call(void 0, )) {
|
|
16795
16795
|
return null;
|
|
16796
16796
|
}
|
|
16797
16797
|
const handleCopyLink = _react.useCallback.call(void 0, async () => {
|
|
@@ -16799,26 +16799,26 @@ function ReferralWidget({
|
|
|
16799
16799
|
const success = await copyToClipboard(referralUrl);
|
|
16800
16800
|
if (success) {
|
|
16801
16801
|
setCopied(true);
|
|
16802
|
-
|
|
16802
|
+
_chunk37KYO2UDjs.showToast.call(void 0, t.copiedMessage);
|
|
16803
16803
|
_optionalChain([onLinkCopied, 'optionalCall', _444 => _444()]);
|
|
16804
16804
|
setTimeout(() => setCopied(false), 2e3);
|
|
16805
16805
|
} else {
|
|
16806
|
-
|
|
16806
|
+
_chunk37KYO2UDjs.showError.call(void 0, t.copyError);
|
|
16807
16807
|
}
|
|
16808
16808
|
}, [referralUrl, t.copiedMessage, t.copyError, onLinkCopied]);
|
|
16809
16809
|
const handleSendInvite = _react.useCallback.call(void 0, async () => {
|
|
16810
16810
|
if (!email || !email.includes("@")) {
|
|
16811
|
-
|
|
16811
|
+
_chunk37KYO2UDjs.showError.call(void 0, t.invalidEmail);
|
|
16812
16812
|
return;
|
|
16813
16813
|
}
|
|
16814
16814
|
try {
|
|
16815
16815
|
await sendInvite(email);
|
|
16816
|
-
|
|
16816
|
+
_chunk37KYO2UDjs.showToast.call(void 0, t.inviteSent);
|
|
16817
16817
|
_optionalChain([onInviteSent, 'optionalCall', _445 => _445(email)]);
|
|
16818
16818
|
setEmail("");
|
|
16819
16819
|
} catch (err) {
|
|
16820
16820
|
const error2 = err instanceof Error ? err : new Error(t.inviteError);
|
|
16821
|
-
|
|
16821
|
+
_chunk37KYO2UDjs.showError.call(void 0, error2.message);
|
|
16822
16822
|
_optionalChain([onInviteError, 'optionalCall', _446 => _446(error2)]);
|
|
16823
16823
|
}
|
|
16824
16824
|
}, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
|
|
@@ -16925,7 +16925,7 @@ function ReferralDialog({
|
|
|
16925
16925
|
dialogClassName,
|
|
16926
16926
|
...widgetProps
|
|
16927
16927
|
}) {
|
|
16928
|
-
if (!
|
|
16928
|
+
if (!_chunkWOJIRXIPjs.isReferralEnabled.call(void 0, )) {
|
|
16929
16929
|
return null;
|
|
16930
16930
|
}
|
|
16931
16931
|
const t = { ...DEFAULT_DIALOG_TRANSLATIONS, ...translations };
|
|
@@ -17007,13 +17007,13 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
17007
17007
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
17008
17008
|
_react.useEffect.call(void 0, () => {
|
|
17009
17009
|
async function checkCompanyAdminDeletability() {
|
|
17010
|
-
const roleUsers = await
|
|
17010
|
+
const roleUsers = await _chunk37KYO2UDjs.UserService.findAllUsersByRole({
|
|
17011
17011
|
roleId: role.id
|
|
17012
17012
|
});
|
|
17013
17013
|
if (roleUsers.length > 1) setCanRemove(true);
|
|
17014
17014
|
}
|
|
17015
17015
|
_chunk7QVYU63Ejs.__name.call(void 0, checkCompanyAdminDeletability, "checkCompanyAdminDeletability");
|
|
17016
|
-
if (role.id !==
|
|
17016
|
+
if (role.id !== _chunkWOJIRXIPjs.getRoleId.call(void 0, ).CompanyAdministrator) {
|
|
17017
17017
|
setCanRemove(true);
|
|
17018
17018
|
return;
|
|
17019
17019
|
}
|
|
@@ -17021,7 +17021,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
17021
17021
|
}, [role]);
|
|
17022
17022
|
const remove = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
17023
17023
|
try {
|
|
17024
|
-
await
|
|
17024
|
+
await _chunk37KYO2UDjs.RoleService.removeUserFromRole({
|
|
17025
17025
|
roleId: role.id,
|
|
17026
17026
|
userId: user.id
|
|
17027
17027
|
});
|
|
@@ -17084,12 +17084,12 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
17084
17084
|
const [roles, setRoles] = _react.useState.call(void 0, []);
|
|
17085
17085
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
17086
17086
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (role) => {
|
|
17087
|
-
await
|
|
17087
|
+
await _chunk37KYO2UDjs.RoleService.addUserToRole({
|
|
17088
17088
|
roleId: role.id,
|
|
17089
17089
|
userId: user.id
|
|
17090
17090
|
});
|
|
17091
17091
|
setRoles(roles.filter((u) => u.id !== role.id));
|
|
17092
|
-
|
|
17092
|
+
_chunk37KYO2UDjs.showToast.call(void 0,
|
|
17093
17093
|
t(`common.association.label`, {
|
|
17094
17094
|
source: t(`entities.roles`, { count: 1 }),
|
|
17095
17095
|
destination: t(`entities.users`, { count: 1 })
|
|
@@ -17108,7 +17108,7 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
17108
17108
|
const searchRoles = _react.useCallback.call(void 0,
|
|
17109
17109
|
async (term) => {
|
|
17110
17110
|
setRoles(
|
|
17111
|
-
await
|
|
17111
|
+
await _chunk37KYO2UDjs.RoleService.findAllRolesUserNotIn({
|
|
17112
17112
|
search: term,
|
|
17113
17113
|
userId: user.id
|
|
17114
17114
|
})
|
|
@@ -17176,16 +17176,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserRoleAdd, "UserRoleAdd");
|
|
|
17176
17176
|
function RolesList() {
|
|
17177
17177
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
17178
17178
|
const data = useDataListRetriever({
|
|
17179
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
17179
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk37KYO2UDjs.RoleService.findAllRoles(params), "retriever"),
|
|
17180
17180
|
retrieverParams: {},
|
|
17181
|
-
module:
|
|
17181
|
+
module: _chunk37KYO2UDjs.Modules.Role
|
|
17182
17182
|
});
|
|
17183
17183
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17184
17184
|
ContentListTable,
|
|
17185
17185
|
{
|
|
17186
17186
|
data,
|
|
17187
17187
|
fields: ["name" /* name */, "description" /* description */],
|
|
17188
|
-
tableGeneratorType:
|
|
17188
|
+
tableGeneratorType: _chunk37KYO2UDjs.Modules.Role,
|
|
17189
17189
|
title: t(`entities.roles`, { count: 2 })
|
|
17190
17190
|
}
|
|
17191
17191
|
);
|
|
@@ -17198,16 +17198,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RolesList, "RolesList");
|
|
|
17198
17198
|
function UserRolesList({ user }) {
|
|
17199
17199
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
17200
17200
|
const data = useDataListRetriever({
|
|
17201
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
17201
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk37KYO2UDjs.RoleService.findAllRolesByUser(params), "retriever"),
|
|
17202
17202
|
retrieverParams: { userId: user.id },
|
|
17203
|
-
module:
|
|
17203
|
+
module: _chunk37KYO2UDjs.Modules.Role
|
|
17204
17204
|
});
|
|
17205
17205
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17206
17206
|
ContentListTable,
|
|
17207
17207
|
{
|
|
17208
17208
|
data,
|
|
17209
17209
|
fields: ["name" /* name */, "description" /* description */],
|
|
17210
|
-
tableGeneratorType:
|
|
17210
|
+
tableGeneratorType: _chunk37KYO2UDjs.Modules.Role,
|
|
17211
17211
|
title: t(`entities.roles`, { count: 2 })
|
|
17212
17212
|
}
|
|
17213
17213
|
);
|
|
@@ -17314,7 +17314,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthRedirectUriInput, "OAuthRedirectUriInp
|
|
|
17314
17314
|
function OAuthScopeSelector({
|
|
17315
17315
|
value,
|
|
17316
17316
|
onChange,
|
|
17317
|
-
availableScopes =
|
|
17317
|
+
availableScopes = _chunk37KYO2UDjs.AVAILABLE_OAUTH_SCOPES,
|
|
17318
17318
|
disabled = false,
|
|
17319
17319
|
error,
|
|
17320
17320
|
label = "Allowed Scopes"
|
|
@@ -17620,7 +17620,7 @@ function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
|
|
|
17620
17620
|
description: formState.description.trim() || void 0,
|
|
17621
17621
|
redirectUris: formState.redirectUris.filter((uri) => uri.trim()),
|
|
17622
17622
|
allowedScopes: formState.allowedScopes,
|
|
17623
|
-
allowedGrantTypes:
|
|
17623
|
+
allowedGrantTypes: _chunk37KYO2UDjs.DEFAULT_GRANT_TYPES,
|
|
17624
17624
|
isConfidential: formState.isConfidential
|
|
17625
17625
|
};
|
|
17626
17626
|
await onSubmit(data);
|
|
@@ -17821,7 +17821,7 @@ function OAuthClientDetail({
|
|
|
17821
17821
|
] }),
|
|
17822
17822
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
17823
17823
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
17824
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: client.allowedScopes.map((scope) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "secondary", children: _optionalChain([
|
|
17824
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: client.allowedScopes.map((scope) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "secondary", children: _optionalChain([_chunk37KYO2UDjs.OAUTH_SCOPE_DISPLAY, 'access', _454 => _454[scope], 'optionalAccess', _455 => _455.name]) || scope }, scope)) })
|
|
17825
17825
|
] }),
|
|
17826
17826
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
17827
17827
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -18105,7 +18105,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
18105
18105
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
18106
18106
|
const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
|
|
18107
18107
|
const [isSuccess, setIsSuccess] = _react.useState.call(void 0, false);
|
|
18108
|
-
const config =
|
|
18108
|
+
const config = _chunkWOJIRXIPjs.getWaitlistConfig.call(void 0, );
|
|
18109
18109
|
const questionnaireFields = _nullishCoalesce(config.questionnaire, () => ( []));
|
|
18110
18110
|
const questionnaireSchema = questionnaireFields.reduce(
|
|
18111
18111
|
(acc, field) => {
|
|
@@ -18171,7 +18171,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
18171
18171
|
setIsSubmitting(true);
|
|
18172
18172
|
try {
|
|
18173
18173
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
18174
|
-
await
|
|
18174
|
+
await _chunk37KYO2UDjs.WaitlistService.submit({
|
|
18175
18175
|
id: values.id,
|
|
18176
18176
|
email: values.email,
|
|
18177
18177
|
gdprConsent: values.gdprConsent,
|
|
@@ -18247,7 +18247,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, WaitlistForm, "WaitlistForm");
|
|
|
18247
18247
|
|
|
18248
18248
|
|
|
18249
18249
|
function WaitlistHeroSection() {
|
|
18250
|
-
const config =
|
|
18250
|
+
const config = _chunkWOJIRXIPjs.getWaitlistConfig.call(void 0, );
|
|
18251
18251
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "relative overflow-hidden py-16 md:py-24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "container mx-auto px-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid gap-12 lg:grid-cols-2 lg:items-center", children: [
|
|
18252
18252
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
18253
18253
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
@@ -18292,7 +18292,7 @@ function WaitlistConfirmation({ code }) {
|
|
|
18292
18292
|
_react.useEffect.call(void 0, () => {
|
|
18293
18293
|
async function confirmEmail() {
|
|
18294
18294
|
try {
|
|
18295
|
-
await
|
|
18295
|
+
await _chunk37KYO2UDjs.WaitlistService.confirm(code);
|
|
18296
18296
|
setState("success");
|
|
18297
18297
|
} catch (error) {
|
|
18298
18298
|
setState("error");
|
|
@@ -18433,7 +18433,7 @@ function WaitlistList() {
|
|
|
18433
18433
|
const loadEntries = _react.useCallback.call(void 0, async () => {
|
|
18434
18434
|
setIsLoading(true);
|
|
18435
18435
|
try {
|
|
18436
|
-
const result = await
|
|
18436
|
+
const result = await _chunk37KYO2UDjs.WaitlistService.findMany({
|
|
18437
18437
|
status: statusFilter === "all" ? void 0 : statusFilter,
|
|
18438
18438
|
fetchAll: true
|
|
18439
18439
|
});
|
|
@@ -18450,8 +18450,8 @@ function WaitlistList() {
|
|
|
18450
18450
|
}, [loadEntries]);
|
|
18451
18451
|
const handleInvite = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (entry) => {
|
|
18452
18452
|
try {
|
|
18453
|
-
await
|
|
18454
|
-
|
|
18453
|
+
await _chunk37KYO2UDjs.WaitlistService.invite(entry.id);
|
|
18454
|
+
_chunk37KYO2UDjs.showToast.call(void 0, t("waitlist.admin.invite_sent", { email: entry.email }));
|
|
18455
18455
|
loadEntries();
|
|
18456
18456
|
} catch (error) {
|
|
18457
18457
|
errorToast({ error });
|
|
@@ -18530,7 +18530,7 @@ function RbacPermissionCell({
|
|
|
18530
18530
|
"div",
|
|
18531
18531
|
{
|
|
18532
18532
|
onClick,
|
|
18533
|
-
className:
|
|
18533
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
18534
18534
|
"flex h-8 w-full items-center justify-center rounded px-2 transition-colors hover:bg-muted cursor-pointer",
|
|
18535
18535
|
isDirty && "ring-2 ring-amber-400/50"
|
|
18536
18536
|
),
|
|
@@ -18543,7 +18543,7 @@ function RbacPermissionCell({
|
|
|
18543
18543
|
"div",
|
|
18544
18544
|
{
|
|
18545
18545
|
onClick,
|
|
18546
|
-
className:
|
|
18546
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
18547
18547
|
"flex h-8 w-full items-center justify-center rounded px-2 transition-colors hover:bg-muted cursor-pointer",
|
|
18548
18548
|
isDirty && "ring-2 ring-amber-400/50"
|
|
18549
18549
|
),
|
|
@@ -18559,7 +18559,7 @@ function RbacPermissionCell({
|
|
|
18559
18559
|
"div",
|
|
18560
18560
|
{
|
|
18561
18561
|
onClick,
|
|
18562
|
-
className:
|
|
18562
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
18563
18563
|
"flex h-8 w-full items-center justify-center rounded px-2 transition-colors hover:bg-muted cursor-pointer",
|
|
18564
18564
|
isDirty && "ring-2 ring-amber-400/50"
|
|
18565
18565
|
),
|
|
@@ -18577,7 +18577,7 @@ function RbacPermissionCell({
|
|
|
18577
18577
|
TooltipTrigger,
|
|
18578
18578
|
{
|
|
18579
18579
|
onClick,
|
|
18580
|
-
className:
|
|
18580
|
+
className: _chunk37KYO2UDjs.cn.call(void 0,
|
|
18581
18581
|
"flex h-8 w-full items-center justify-center rounded px-2 transition-colors hover:bg-muted cursor-pointer",
|
|
18582
18582
|
isDirty && "ring-2 ring-amber-400/50"
|
|
18583
18583
|
),
|
|
@@ -18635,7 +18635,7 @@ function RbacPermissionPicker({
|
|
|
18635
18635
|
{
|
|
18636
18636
|
size: "sm",
|
|
18637
18637
|
variant: value === true ? "default" : "outline",
|
|
18638
|
-
className:
|
|
18638
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "flex-1 gap-1", value === true && "bg-emerald-600 hover:bg-emerald-700"),
|
|
18639
18639
|
onClick: () => {
|
|
18640
18640
|
onSetValue(true);
|
|
18641
18641
|
setOpen(false);
|
|
@@ -18773,7 +18773,7 @@ function RbacModuleTable({ module, roles, stateApi }) {
|
|
|
18773
18773
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-x-auto", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "table", { className: "w-full text-sm", children: [
|
|
18774
18774
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b bg-muted/50", children: [
|
|
18775
18775
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { className: "px-4 py-2 text-left text-xs font-medium text-muted-foreground w-40", children: t("rbac.role") }),
|
|
18776
|
-
|
|
18776
|
+
_chunkWOJIRXIPjs.ACTION_TYPES.map((actionType) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18777
18777
|
"th",
|
|
18778
18778
|
{
|
|
18779
18779
|
className: "px-2 py-2 text-center text-xs font-medium text-muted-foreground min-w-28",
|
|
@@ -18785,7 +18785,7 @@ function RbacModuleTable({ module, roles, stateApi }) {
|
|
|
18785
18785
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tbody", { children: [
|
|
18786
18786
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b", children: [
|
|
18787
18787
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: t("rbac.defaults") }),
|
|
18788
|
-
|
|
18788
|
+
_chunkWOJIRXIPjs.ACTION_TYPES.map((actionType) => {
|
|
18789
18789
|
const defaultValue = _nullishCoalesce(stateApi.getModuleDefaultPermission(module.id, actionType), () => ( false));
|
|
18790
18790
|
const originalDefaultValue = _nullishCoalesce(module.permissions[actionType], () => ( false));
|
|
18791
18791
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -18800,9 +18800,9 @@ function RbacModuleTable({ module, roles, stateApi }) {
|
|
|
18800
18800
|
) }, actionType);
|
|
18801
18801
|
})
|
|
18802
18802
|
] }),
|
|
18803
|
-
roles.filter((role) => role.id !==
|
|
18803
|
+
roles.filter((role) => role.id !== _chunkWOJIRXIPjs.COMPANY_ADMINISTRATOR_ROLE_ID).map((role) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
18804
18804
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: role.name }),
|
|
18805
|
-
|
|
18805
|
+
_chunkWOJIRXIPjs.ACTION_TYPES.map((actionType) => {
|
|
18806
18806
|
const roleValue = stateApi.getRolePermission(role.id, module.id, actionType);
|
|
18807
18807
|
const originalMapping = _optionalChain([stateApi, 'access', _458 => _458.original, 'optionalAccess', _459 => _459.permissionMappings, 'access', _460 => _460.find, 'call', _461 => _461(
|
|
18808
18808
|
(pm) => pm.roleId === role.id && pm.moduleId === module.id
|
|
@@ -18839,7 +18839,7 @@ function RbacFeatureSection({ feature, roles, stateApi }) {
|
|
|
18839
18839
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18840
18840
|
_lucidereact.ChevronDownIcon,
|
|
18841
18841
|
{
|
|
18842
|
-
className:
|
|
18842
|
+
className: _chunk37KYO2UDjs.cn.call(void 0, "h-4 w-4 text-muted-foreground transition-transform", !isOpen && "-rotate-90")
|
|
18843
18843
|
}
|
|
18844
18844
|
),
|
|
18845
18845
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-base font-semibold", children: feature.name }),
|
|
@@ -18902,10 +18902,10 @@ function RbacContainer() {
|
|
|
18902
18902
|
try {
|
|
18903
18903
|
setLoading(true);
|
|
18904
18904
|
const [features, roles, permissionMappings, modulePaths] = await Promise.all([
|
|
18905
|
-
|
|
18906
|
-
|
|
18907
|
-
|
|
18908
|
-
|
|
18905
|
+
_chunkWOJIRXIPjs.RbacService.getFeatures(),
|
|
18906
|
+
_chunkWOJIRXIPjs.RbacService.getRoles(),
|
|
18907
|
+
_chunkWOJIRXIPjs.RbacService.getPermissionMappings(),
|
|
18908
|
+
_chunkWOJIRXIPjs.RbacService.getModuleRelationshipPaths()
|
|
18909
18909
|
]);
|
|
18910
18910
|
stateApi.init(features, roles, permissionMappings, modulePaths);
|
|
18911
18911
|
} catch (err) {
|
|
@@ -19428,4 +19428,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacContainer, "RbacContainer");
|
|
|
19428
19428
|
|
|
19429
19429
|
|
|
19430
19430
|
exports.JsonApiProvider = JsonApiProvider; exports.useJsonApiGet = useJsonApiGet; exports.useJsonApiMutation = useJsonApiMutation; exports.useRehydration = useRehydration; exports.useRehydrationList = useRehydrationList; exports.TableGeneratorRegistry = TableGeneratorRegistry; exports.tableGeneratorRegistry = tableGeneratorRegistry; exports.usePageUrlGenerator = usePageUrlGenerator; exports.useUrlRewriter = useUrlRewriter; exports.useDataListRetriever = useDataListRetriever; exports.useDebounce = useDebounce2; exports.registerTableGenerator = registerTableGenerator; exports.useTableGenerator = useTableGenerator; exports.useCustomD3Graph = useCustomD3Graph; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AlertAction = AlertAction; exports.buttonVariants = buttonVariants; exports.Button = Button; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogMedia = AlertDialogMedia; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.Avatar = Avatar; exports.AvatarImage = AvatarImage; exports.AvatarFallback = AvatarFallback; exports.AvatarBadge = AvatarBadge; exports.AvatarGroup = AvatarGroup; exports.AvatarGroupCount = AvatarGroupCount; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.Calendar = Calendar; exports.CalendarDayButton = CalendarDayButton; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardAction = CardAction; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.useCarousel = useCarousel; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger; exports.CollapsibleContent = CollapsibleContent; exports.Input = Input; exports.Textarea = Textarea; exports.InputGroup = InputGroup; exports.InputGroupAddon = InputGroupAddon; exports.InputGroupButton = InputGroupButton; exports.InputGroupText = InputGroupText; exports.InputGroupInput = InputGroupInput; exports.InputGroupTextarea = InputGroupTextarea; exports.Combobox = Combobox; exports.ComboboxValue = ComboboxValue; exports.ComboboxTrigger = ComboboxTrigger; exports.ComboboxInput = ComboboxInput; exports.ComboboxContent = ComboboxContent; exports.ComboboxList = ComboboxList; exports.ComboboxItem = ComboboxItem; exports.ComboboxGroup = ComboboxGroup; exports.ComboboxLabel = ComboboxLabel; exports.ComboboxCollection = ComboboxCollection; exports.ComboboxEmpty = ComboboxEmpty; exports.ComboboxSeparator = ComboboxSeparator; exports.ComboboxChips = ComboboxChips; exports.ComboboxChip = ComboboxChip; exports.ComboboxChipsInput = ComboboxChipsInput; exports.useComboboxAnchor = useComboboxAnchor; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.Command = Command; exports.CommandDialog = CommandDialog; exports.CommandInput = CommandInput; exports.CommandList = CommandList; exports.CommandEmpty = CommandEmpty; exports.CommandGroup = CommandGroup; exports.CommandSeparator = CommandSeparator; exports.CommandItem = CommandItem; exports.CommandShortcut = CommandShortcut; exports.ContextMenu = ContextMenu; exports.ContextMenuPortal = ContextMenuPortal; exports.ContextMenuTrigger = ContextMenuTrigger; exports.ContextMenuContent = ContextMenuContent; exports.ContextMenuGroup = ContextMenuGroup; exports.ContextMenuLabel = ContextMenuLabel; exports.ContextMenuItem = ContextMenuItem; exports.ContextMenuSub = ContextMenuSub; exports.ContextMenuSubTrigger = ContextMenuSubTrigger; exports.ContextMenuSubContent = ContextMenuSubContent; exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem; exports.ContextMenuRadioGroup = ContextMenuRadioGroup; exports.ContextMenuRadioItem = ContextMenuRadioItem; exports.ContextMenuSeparator = ContextMenuSeparator; exports.ContextMenuShortcut = ContextMenuShortcut; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerPortal = DrawerPortal; exports.DrawerClose = DrawerClose; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerFooter = DrawerFooter; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DropdownMenu = DropdownMenu; exports.DropdownMenuPortal = DropdownMenuPortal; exports.DropdownMenuTrigger = DropdownMenuTrigger; exports.DropdownMenuContent = DropdownMenuContent; exports.DropdownMenuGroup = DropdownMenuGroup; exports.DropdownMenuLabel = DropdownMenuLabel; exports.DropdownMenuItem = DropdownMenuItem; exports.DropdownMenuSub = DropdownMenuSub; exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger; exports.DropdownMenuSubContent = DropdownMenuSubContent; exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem; exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup; exports.DropdownMenuRadioItem = DropdownMenuRadioItem; exports.DropdownMenuSeparator = DropdownMenuSeparator; exports.DropdownMenuShortcut = DropdownMenuShortcut; exports.Label = Label; exports.Separator = Separator; exports.FieldSet = FieldSet; exports.FieldLegend = FieldLegend; exports.FieldGroup = FieldGroup; exports.Field = Field; exports.FieldContent = FieldContent; exports.FieldLabel = FieldLabel; exports.FieldTitle = FieldTitle; exports.FieldDescription = FieldDescription; exports.FieldSeparator = FieldSeparator; exports.FieldError = FieldError; exports.Form = Form; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.InputOTP = InputOTP; exports.InputOTPGroup = InputOTPGroup; exports.InputOTPSlot = InputOTPSlot; exports.InputOTPSeparator = InputOTPSeparator; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuPositioner = NavigationMenuPositioner; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.Popover = Popover; exports.PopoverTrigger = PopoverTrigger; exports.PopoverContent = PopoverContent; exports.PopoverHeader = PopoverHeader; exports.PopoverTitle = PopoverTitle; exports.PopoverDescription = PopoverDescription; exports.Progress = Progress; exports.ProgressTrack = ProgressTrack; exports.ProgressIndicator = ProgressIndicator; exports.ProgressLabel = ProgressLabel; exports.ProgressValue = ProgressValue; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.ResizablePanelGroup = ResizablePanelGroup; exports.ResizablePanel = ResizablePanel; exports.ResizableHandle = ResizableHandle; exports.ScrollArea = ScrollArea; exports.ScrollBar = ScrollBar; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Skeleton = Skeleton; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip2; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.useSidebar = useSidebar; exports.SidebarProvider = SidebarProvider; exports.Sidebar = Sidebar; exports.SidebarTrigger = SidebarTrigger; exports.SidebarRail = SidebarRail; exports.SidebarInset = SidebarInset; exports.SidebarInput = SidebarInput; exports.SidebarHeader = SidebarHeader; exports.SidebarFooter = SidebarFooter; exports.SidebarSeparator = SidebarSeparator; exports.SidebarContent = SidebarContent; exports.SidebarGroup = SidebarGroup; exports.SidebarGroupLabel = SidebarGroupLabel; exports.SidebarGroupAction = SidebarGroupAction; exports.SidebarGroupContent = SidebarGroupContent; exports.SidebarMenu = SidebarMenu; exports.SidebarMenuItem = SidebarMenuItem; exports.SidebarMenuButton = SidebarMenuButton; exports.SidebarMenuAction = SidebarMenuAction; exports.SidebarMenuBadge = SidebarMenuBadge; exports.SidebarMenuSkeleton = SidebarMenuSkeleton; exports.SidebarMenuSub = SidebarMenuSub; exports.SidebarMenuSubItem = SidebarMenuSubItem; exports.SidebarMenuSubButton = SidebarMenuSubButton; exports.Slider = Slider; exports.Toaster = Toaster; exports.Switch = Switch; exports.Table = Table; exports.TableHeader = TableHeader; exports.TableBody = TableBody; exports.TableFooter = TableFooter; exports.TableRow = TableRow; exports.TableHead = TableHead; exports.TableCell = TableCell; exports.TableCaption = TableCaption; exports.Tabs = Tabs; exports.tabsListVariants = tabsListVariants; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.KanbanRoot = KanbanRoot; exports.KanbanBoard = KanbanBoard; exports.KanbanColumn = KanbanColumn; exports.KanbanColumnHandle = KanbanColumnHandle; exports.KanbanItem = KanbanItem; exports.KanbanItemHandle = KanbanItemHandle; exports.KanbanOverlay = KanbanOverlay; exports.Link = Link; exports.MultiSelect = MultiSelect; exports.useDebounce2 = useDebounce; exports.MultipleSelector = MultipleSelector; exports.EntityAvatar = EntityAvatar; exports.errorToast = errorToast; exports.EditableAvatar = EditableAvatar; exports.TableCellAvatar = TableCellAvatar; exports.HeaderChildrenProvider = HeaderChildrenProvider; exports.useHeaderChildren = useHeaderChildren; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.Header = Header; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.RoundPageContainerTitle = RoundPageContainerTitle; exports.RoundPageContainer = RoundPageContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.AllUsersListContainer = AllUsersListContainer; exports.UserContent = UserContent; exports.UserAvatar = UserAvatar; exports.UserAvatarList = UserAvatarList; exports.UserIndexDetails = UserIndexDetails; exports.UserStanadaloneDetails = UserStanadaloneDetails; exports.UserContainer = UserContainer; exports.UserIndexContainer = UserIndexContainer; exports.UsersListContainer = UsersListContainer; exports.AdminUsersList = AdminUsersList; exports.CompanyUsersList = CompanyUsersList; exports.ContributorsList = ContributorsList; exports.RelevantUsersList = RelevantUsersList; exports.RoleUsersList = RoleUsersList; exports.UserListInAdd = UserListInAdd; exports.UsersList = UsersList; exports.UsersListByContentIds = UsersListByContentIds; exports.AllowedUsersDetails = AllowedUsersDetails; exports.ErrorDetails = ErrorDetails; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorDiscardDialog = CommonEditorDiscardDialog; exports.CommonEditorTrigger = CommonEditorTrigger; exports.useEditorDialog = useEditorDialog; exports.EditorSheet = EditorSheet; exports.DatePickerPopover = DatePickerPopover; exports.DateRangeSelector = DateRangeSelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.FormFieldWrapper = FormFieldWrapper; exports.FormCheckbox = FormCheckbox; exports.FormBlockNote = FormBlockNote; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.PasswordInput = PasswordInput; exports.FormPassword = FormPassword; exports.FormPlaceAutocomplete = FormPlaceAutocomplete; exports.FormSelect = FormSelect; exports.FormSlider = FormSlider; exports.FormSwitch = FormSwitch; exports.FormTextarea = FormTextarea; exports.GdprConsentCheckbox = GdprConsentCheckbox; exports.FormFeatures = FormFeatures; exports.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; exports.ItalianFiscalData_default = ItalianFiscalData_default; exports.ItalianFiscalDataDisplay = ItalianFiscalDataDisplay; exports.parseFiscalData = parseFiscalData; exports.FiscalDataDisplay = FiscalDataDisplay; exports.GdprConsentSection = GdprConsentSection; exports.AuthContainer = AuthContainer; exports.BackupCodesDialog = BackupCodesDialog; exports.TotpInput = TotpInput; exports.DisableTwoFactorDialog = DisableTwoFactorDialog; exports.PasskeyList = PasskeyList; exports.PasskeySetupDialog = PasskeySetupDialog; exports.TotpAuthenticatorList = TotpAuthenticatorList; exports.TotpSetupDialog = TotpSetupDialog; exports.TwoFactorSettings = TwoFactorSettings; exports.SecurityContainer = SecurityContainer; exports.LandingComponent = LandingComponent; exports.AcceptInvitation = AcceptInvitation; exports.ActivateAccount = ActivateAccount; exports.Cookies = Cookies; exports.ForgotPassword = ForgotPassword; exports.Login = Login; exports.Logout = Logout; exports.RefreshUser = RefreshUser; exports.ResetPassword = ResetPassword; exports.PasskeyButton = PasskeyButton; exports.TwoFactorChallenge = TwoFactorChallenge; exports.CompanyContent = CompanyContent; exports.TokenStatusIndicator = TokenStatusIndicator; exports.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.OnboardingCard = OnboardingCard; exports.ReferralCodeCapture = ReferralCodeCapture; exports.ReferralWidget = ReferralWidget; exports.ReferralDialog = ReferralDialog; exports.RoleProvider = RoleProvider; exports.useRoleContext = useRoleContext; exports.RoleDetails = RoleDetails; exports.RoleContainer = RoleContainer; exports.FormRoles = FormRoles; exports.RemoveUserFromRole = RemoveUserFromRole; exports.UserRoleAdd = UserRoleAdd; exports.useRoleTableStructure = useRoleTableStructure; exports.RolesList = RolesList; exports.UserRolesList = UserRolesList; exports.OAuthRedirectUriInput = OAuthRedirectUriInput; exports.OAuthScopeSelector = OAuthScopeSelector; exports.OAuthClientSecretDisplay = OAuthClientSecretDisplay; exports.OAuthClientCard = OAuthClientCard; exports.OAuthClientList = OAuthClientList; exports.OAuthClientForm = OAuthClientForm; exports.OAuthClientDetail = OAuthClientDetail; exports.OAuthConsentHeader = OAuthConsentHeader; exports.OAuthScopeList = OAuthScopeList; exports.OAuthConsentActions = OAuthConsentActions; exports.useOAuthConsent = useOAuthConsent; exports.OAuthConsentScreen = OAuthConsentScreen; exports.WaitlistQuestionnaireRenderer = WaitlistQuestionnaireRenderer; exports.WaitlistForm = WaitlistForm; exports.WaitlistHeroSection = WaitlistHeroSection; exports.WaitlistSuccessState = WaitlistSuccessState; exports.WaitlistConfirmation = WaitlistConfirmation; exports.WaitlistList = WaitlistList; exports.useRbacState = useRbacState; exports.generateMigrationFile = generateMigrationFile; exports.downloadMigrationFile = downloadMigrationFile; exports.RbacPermissionCell = RbacPermissionCell; exports.RbacPermissionPicker = RbacPermissionPicker; exports.RbacModuleTable = RbacModuleTable; exports.RbacFeatureSection = RbacFeatureSection; exports.RbacToolbar = RbacToolbar; exports.RbacContainer = RbacContainer; exports.AddUserToRole = AddUserToRole; exports.UserAvatarEditor = UserAvatarEditor; exports.UserDeleter = UserDeleter; exports.UserEditor = UserEditor; exports.UserMultiSelect = UserMultiSelect; exports.UserReactivator = UserReactivator; exports.UserResentInvitationEmail = UserResentInvitationEmail; exports.UserSelector = UserSelector; exports.UserProvider = UserProvider; exports.useUserContext = useUserContext; exports.CompanyProvider = CompanyProvider; exports.useCompanyContext = useCompanyContext; exports.DEFAULT_ONBOARDING_LABELS = DEFAULT_ONBOARDING_LABELS; exports.OnboardingProvider = OnboardingProvider; exports.useOnboarding = useOnboarding; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
|
|
19431
|
-
//# sourceMappingURL=chunk-
|
|
19431
|
+
//# sourceMappingURL=chunk-ELTHSXBI.js.map
|