@carlonicora/nextjs-jsonapi 1.64.0 → 1.65.1
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-ZO3ZAPXU.mjs → BlockNoteEditor-CZOW7J5K.mjs} +4 -4
- package/dist/{BlockNoteEditor-JF757BHH.js → BlockNoteEditor-QGNV6E4X.js} +14 -14
- package/dist/{BlockNoteEditor-JF757BHH.js.map → BlockNoteEditor-QGNV6E4X.js.map} +1 -1
- package/dist/billing/index.js +346 -346
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-PBD6ZH46.mjs → chunk-5KMKI23S.mjs} +2 -2
- package/dist/{chunk-5LZGQXBD.js → chunk-CDCGQFIA.js} +620 -620
- package/dist/{chunk-5LZGQXBD.js.map → chunk-CDCGQFIA.js.map} +1 -1
- package/dist/{chunk-55FJ5WKS.mjs → chunk-ESGUCYJS.mjs} +8 -8
- package/dist/{chunk-55FJ5WKS.mjs.map → chunk-ESGUCYJS.mjs.map} +1 -1
- package/dist/{chunk-REWN5GZP.mjs → chunk-G7PGWMFO.mjs} +88 -2
- package/dist/chunk-G7PGWMFO.mjs.map +1 -0
- package/dist/{chunk-6YKYRKVU.js → chunk-LRXJT656.js} +89 -3
- package/dist/chunk-LRXJT656.js.map +1 -0
- package/dist/{chunk-2DFE325P.js → chunk-RA4RYKYB.js} +11 -11
- package/dist/{chunk-2DFE325P.js.map → chunk-RA4RYKYB.js.map} +1 -1
- 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 +44 -1
- package/dist/core/index.d.ts +44 -1
- package/dist/core/index.js +8 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +7 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/navigations/Breadcrumb.tsx +4 -4
- package/src/core/index.ts +1 -0
- package/src/core/registry/ModuleRegistry.ts +2 -0
- package/src/features/audit-log/audit-log.module.ts +10 -0
- package/src/features/audit-log/data/audit-log.interface.ts +12 -0
- package/src/features/audit-log/data/audit-log.service.ts +24 -0
- package/src/features/audit-log/data/audit-log.ts +65 -0
- package/src/features/audit-log/data/index.ts +3 -0
- package/src/features/audit-log/index.ts +2 -0
- package/dist/chunk-6YKYRKVU.js.map +0 -1
- package/dist/chunk-REWN5GZP.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-ZO3ZAPXU.mjs.map → BlockNoteEditor-CZOW7J5K.mjs.map} +0 -0
- /package/dist/{chunk-PBD6ZH46.mjs.map → chunk-5KMKI23S.mjs.map} +0 -0
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkRA4RYKYBjs = require('./chunk-RA4RYKYB.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
@@ -53,7 +53,7 @@ var _chunk2DFE325Pjs = require('./chunk-2DFE325P.js');
|
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
var
|
|
56
|
+
var _chunkLRXJT656js = require('./chunk-LRXJT656.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.cn.call(void 0, "w-fit", defaultClassNames.root),
|
|
645
|
+
months: _chunkLRXJT656js.cn.call(void 0, "flex gap-4 flex-col md:flex-row relative", defaultClassNames.months),
|
|
646
|
+
month: _chunkLRXJT656js.cn.call(void 0, "flex flex-col w-full gap-4", defaultClassNames.month),
|
|
647
|
+
nav: _chunkLRXJT656js.cn.call(void 0, "flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between", defaultClassNames.nav),
|
|
648
|
+
button_previous: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.cn.call(void 0, "absolute bg-popover inset-0 opacity-0", defaultClassNames.dropdown),
|
|
671
|
+
caption_label: _chunkLRXJT656js.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: _chunkLRXJT656js.cn.call(void 0, "flex", defaultClassNames.weekdays),
|
|
678
|
+
weekday: _chunkLRXJT656js.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: _chunkLRXJT656js.cn.call(void 0, "flex w-full mt-2", defaultClassNames.week),
|
|
683
|
+
week_number_header: _chunkLRXJT656js.cn.call(void 0, "select-none w-(--cell-size)", defaultClassNames.week_number_header),
|
|
684
|
+
week_number: _chunkLRXJT656js.cn.call(void 0, "text-[0.8rem] select-none text-muted-foreground", defaultClassNames.week_number),
|
|
685
|
+
day: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.cn.call(void 0, "rounded-none", defaultClassNames.range_middle),
|
|
695
|
+
range_end: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.cn.call(void 0, "text-muted-foreground aria-selected:text-muted-foreground", defaultClassNames.outside),
|
|
704
|
+
disabled: _chunkLRXJT656js.cn.call(void 0, "text-muted-foreground opacity-50", defaultClassNames.disabled),
|
|
705
|
+
hidden: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.cn.call(void 0, "cn-input-otp flex items-center has-disabled:opacity-50", containerClassName),
|
|
2731
2731
|
spellCheck: false,
|
|
2732
|
-
className:
|
|
2732
|
+
className: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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 = _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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 = _chunkLRXJT656js.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: _chunkLRXJT656js.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 = _chunkLRXJT656js.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: _chunkLRXJT656js.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 = _chunkLRXJT656js.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: _chunkLRXJT656js.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 = _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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 = _chunkRA4RYKYBjs.getI18nLink.call(void 0, );
|
|
5143
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NextIntlLink, { prefetch: false, ref, href, className: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.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: _chunkLRXJT656js.getInitials.call(void 0, name) })
|
|
6019
6019
|
] });
|
|
6020
6020
|
}
|
|
6021
6021
|
_chunk7QVYU63Ejs.__name.call(void 0, EntityAvatar, "EntityAvatar");
|
|
@@ -6023,9 +6023,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, EntityAvatar, "EntityAvatar");
|
|
|
6023
6023
|
// src/components/TableCellAvatar.tsx
|
|
6024
6024
|
|
|
6025
6025
|
function TableCellAvatar({ image, name, className }) {
|
|
6026
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Avatar, { className:
|
|
6026
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Avatar, { className: _chunkLRXJT656js.cn.call(void 0, "mr-2 h-10 w-10 shrink-0", className), children: [
|
|
6027
6027
|
image ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: image, alt: name }) : null,
|
|
6028
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { className: "text-xs", children:
|
|
6028
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { className: "text-xs", children: _chunkLRXJT656js.getInitials.call(void 0, name) })
|
|
6029
6029
|
] });
|
|
6030
6030
|
}
|
|
6031
6031
|
_chunk7QVYU63Ejs.__name.call(void 0, TableCellAvatar, "TableCellAvatar");
|
|
@@ -6170,7 +6170,7 @@ function useDataListRetriever(params) {
|
|
|
6170
6170
|
const isFetchingRef = _react.useRef.call(void 0, false);
|
|
6171
6171
|
const isPaginatingRef = _react.useRef.call(void 0, false);
|
|
6172
6172
|
const resolvedType = params.module;
|
|
6173
|
-
const resolvedService =
|
|
6173
|
+
const resolvedService = _chunkLRXJT656js.ClientAbstractService;
|
|
6174
6174
|
const parsePageParams = _react.useCallback.call(void 0, (url) => {
|
|
6175
6175
|
if (!url) return null;
|
|
6176
6176
|
try {
|
|
@@ -6289,7 +6289,7 @@ function useDataListRetriever(params) {
|
|
|
6289
6289
|
setIsLoaded(true);
|
|
6290
6290
|
setNextPage(nextRef.next ? nextRef.next : void 0);
|
|
6291
6291
|
setPreviousPage(previousRef.previous ? previousRef.previous : void 0);
|
|
6292
|
-
const apiTotal = _nullishCoalesce(totalRef.total, () => (
|
|
6292
|
+
const apiTotal = _nullishCoalesce(totalRef.total, () => ( _chunkLRXJT656js.getLastApiTotal.call(void 0, )));
|
|
6293
6293
|
if (apiTotal !== void 0) {
|
|
6294
6294
|
setTotal(apiTotal);
|
|
6295
6295
|
}
|
|
@@ -6934,20 +6934,20 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
6934
6934
|
if (!token && dehydratedUser) setDehydratedUser(null);
|
|
6935
6935
|
}, [dehydratedUser, setDehydratedUser]);
|
|
6936
6936
|
const matchUrlToModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (_params) => {
|
|
6937
|
-
const moduleKeys = Object.getOwnPropertyNames(
|
|
6937
|
+
const moduleKeys = Object.getOwnPropertyNames(_chunkLRXJT656js.Modules).filter(
|
|
6938
6938
|
(key) => key !== "prototype" && key !== "_factory" && key !== "length" && key !== "name"
|
|
6939
6939
|
);
|
|
6940
6940
|
const matchedModuleKey = moduleKeys.find((key) => {
|
|
6941
|
-
const descriptor2 = Object.getOwnPropertyDescriptor(
|
|
6941
|
+
const descriptor2 = Object.getOwnPropertyDescriptor(_chunkLRXJT656js.Modules, key);
|
|
6942
6942
|
if (!_optionalChain([descriptor2, 'optionalAccess', _143 => _143.get])) return false;
|
|
6943
|
-
const selectedModule = descriptor2.get.call(
|
|
6943
|
+
const selectedModule = descriptor2.get.call(_chunkLRXJT656js.Modules);
|
|
6944
6944
|
return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _144 => _144.pageUrl, 'optionalAccess', _145 => _145.toLowerCase, 'call', _146 => _146()]));
|
|
6945
6945
|
});
|
|
6946
6946
|
if (!matchedModuleKey) return void 0;
|
|
6947
|
-
const descriptor = Object.getOwnPropertyDescriptor(
|
|
6948
|
-
return _optionalChain([descriptor, 'optionalAccess', _147 => _147.get, 'optionalAccess', _148 => _148.call, 'call', _149 => _149(
|
|
6947
|
+
const descriptor = Object.getOwnPropertyDescriptor(_chunkLRXJT656js.Modules, matchedModuleKey);
|
|
6948
|
+
return _optionalChain([descriptor, 'optionalAccess', _147 => _147.get, 'optionalAccess', _148 => _148.call, 'call', _149 => _149(_chunkLRXJT656js.Modules)]);
|
|
6949
6949
|
}, "matchUrlToModule");
|
|
6950
|
-
const currentUser = dehydratedUser ?
|
|
6950
|
+
const currentUser = dehydratedUser ? _chunkLRXJT656js.rehydrate.call(void 0, _chunkLRXJT656js.Modules.User, dehydratedUser) : null;
|
|
6951
6951
|
const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _150 => _150.company]), () => ( null));
|
|
6952
6952
|
const setUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (user) => {
|
|
6953
6953
|
if (user) setDehydratedUser(user.dehydrate());
|
|
@@ -6958,21 +6958,21 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
6958
6958
|
return !!_optionalChain([currentUser, 'access', _151 => _151.roles, 'optionalAccess', _152 => _152.some, 'call', _153 => _153((userRole) => userRole.id === roleId)]);
|
|
6959
6959
|
}, "hasRole");
|
|
6960
6960
|
const hasAccesToFeature = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (featureIdentifier) => {
|
|
6961
|
-
if (hasRole(
|
|
6961
|
+
if (hasRole(_chunkRA4RYKYBjs.getRoleId.call(void 0, ).Administrator)) return true;
|
|
6962
6962
|
if (!company) return false;
|
|
6963
6963
|
return company.features.some((feature) => feature.id === featureIdentifier);
|
|
6964
6964
|
}, "hasAccesToFeature");
|
|
6965
6965
|
function hasPermissionToModule(params) {
|
|
6966
6966
|
if (!currentUser) return false;
|
|
6967
6967
|
if (!!params.module.feature && !hasAccesToFeature(params.module.feature)) return false;
|
|
6968
|
-
return
|
|
6968
|
+
return _chunkLRXJT656js.checkPermissions.call(void 0, { module: params.module, action: params.action, data: params.data, user: currentUser });
|
|
6969
6969
|
}
|
|
6970
6970
|
_chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModule, "hasPermissionToModule");
|
|
6971
6971
|
function hasPermissionToModules(params) {
|
|
6972
6972
|
if (!currentUser) return false;
|
|
6973
6973
|
if (!params.modules.every((module) => !module.feature || hasAccesToFeature(module.feature))) return false;
|
|
6974
6974
|
return params.modules.every(
|
|
6975
|
-
(module) =>
|
|
6975
|
+
(module) => _chunkLRXJT656js.checkPermissions.call(void 0, { module, action: params.action, data: params.data, user: currentUser })
|
|
6976
6976
|
);
|
|
6977
6977
|
}
|
|
6978
6978
|
_chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModules, "hasPermissionToModules");
|
|
@@ -6993,13 +6993,13 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
6993
6993
|
}
|
|
6994
6994
|
setIsRefreshing(true);
|
|
6995
6995
|
try {
|
|
6996
|
-
const fullUser = await
|
|
6996
|
+
const fullUser = await _chunkLRXJT656js.UserService.findFullUser();
|
|
6997
6997
|
if (fullUser) {
|
|
6998
6998
|
const dehydrated = fullUser.dehydrate();
|
|
6999
6999
|
setDehydratedUser(dehydrated);
|
|
7000
7000
|
setUser(fullUser);
|
|
7001
7001
|
if (!_optionalChain([options, 'optionalAccess', _154 => _154.skipCookieUpdate])) {
|
|
7002
|
-
await _optionalChain([
|
|
7002
|
+
await _optionalChain([_chunkLRXJT656js.getTokenHandler.call(void 0, ), 'optionalAccess', _155 => _155.updateToken, 'call', _156 => _156({
|
|
7003
7003
|
userId: fullUser.id,
|
|
7004
7004
|
companyId: _optionalChain([fullUser, 'access', _157 => _157.company, 'optionalAccess', _158 => _158.id]),
|
|
7005
7005
|
roles: fullUser.roles.map((role) => role.id),
|
|
@@ -7087,7 +7087,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
7087
7087
|
const [existingUsers, setExistingUsers] = _react.useState.call(void 0, null);
|
|
7088
7088
|
_react.useEffect.call(void 0, () => {
|
|
7089
7089
|
const fetchExistingUsers = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
7090
|
-
setExistingUsers(await
|
|
7090
|
+
setExistingUsers(await _chunkLRXJT656js.UserService.findMany({ roleId: role.id, fetchAll: true }));
|
|
7091
7091
|
}, "fetchExistingUsers");
|
|
7092
7092
|
if (show) {
|
|
7093
7093
|
setExistingUsers(null);
|
|
@@ -7095,7 +7095,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
7095
7095
|
}
|
|
7096
7096
|
}, [show]);
|
|
7097
7097
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (user) => {
|
|
7098
|
-
await
|
|
7098
|
+
await _chunkLRXJT656js.RoleService.addUserToRole({
|
|
7099
7099
|
roleId: role.id,
|
|
7100
7100
|
userId: user.id
|
|
7101
7101
|
});
|
|
@@ -7111,9 +7111,9 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
7111
7111
|
}, "addUserToRole");
|
|
7112
7112
|
const data = useDataListRetriever({
|
|
7113
7113
|
ready: !!company && show,
|
|
7114
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
7114
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkLRXJT656js.UserService.findAllUsers(params), "retriever"),
|
|
7115
7115
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _169 => _169.id]) },
|
|
7116
|
-
module:
|
|
7116
|
+
module: _chunkLRXJT656js.Modules.User
|
|
7117
7117
|
});
|
|
7118
7118
|
_react.useEffect.call(void 0, () => {
|
|
7119
7119
|
if (!!company && show) {
|
|
@@ -7216,10 +7216,10 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserAvatarEditor, "UserAvatarEditor");
|
|
|
7216
7216
|
function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
7217
7217
|
const { currentUser, company } = useCurrentUserContext();
|
|
7218
7218
|
const generateUrl = usePageUrlGenerator();
|
|
7219
|
-
const router =
|
|
7219
|
+
const router = _chunkRA4RYKYBjs.useI18nRouter.call(void 0, );
|
|
7220
7220
|
const _t = _nextintl.useTranslations.call(void 0, );
|
|
7221
7221
|
let cId;
|
|
7222
|
-
if (_optionalChain([currentUser, 'optionalAccess', _173 => _173.roles, 'access', _174 => _174.find, 'call', _175 => _175((role) => role.id ===
|
|
7222
|
+
if (_optionalChain([currentUser, 'optionalAccess', _173 => _173.roles, 'access', _174 => _174.find, 'call', _175 => _175((role) => role.id === _chunkRA4RYKYBjs.getRoleId.call(void 0, ).Administrator)]) && companyId) {
|
|
7223
7223
|
cId = companyId;
|
|
7224
7224
|
} else {
|
|
7225
7225
|
if (!company) return;
|
|
@@ -7229,8 +7229,8 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
7229
7229
|
CommonDeleter,
|
|
7230
7230
|
{
|
|
7231
7231
|
type: `users`,
|
|
7232
|
-
deleteFunction: () =>
|
|
7233
|
-
() => onDeleted ? onDeleted() : router.push(generateUrl({ page:
|
|
7232
|
+
deleteFunction: () => _chunkLRXJT656js.UserService.delete({ userId: user.id, companyId: cId }).then(
|
|
7233
|
+
() => onDeleted ? onDeleted() : router.push(generateUrl({ page: _chunkLRXJT656js.Modules.User }))
|
|
7234
7234
|
)
|
|
7235
7235
|
}
|
|
7236
7236
|
);
|
|
@@ -7238,7 +7238,7 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
7238
7238
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleterInternal, "UserDeleterInternal");
|
|
7239
7239
|
function UserDeleter(props) {
|
|
7240
7240
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
7241
|
-
if (!hasPermissionToModule({ module:
|
|
7241
|
+
if (!hasPermissionToModule({ module: _chunkLRXJT656js.Modules.User, action: "delete" /* Delete */, data: props.user })) return null;
|
|
7242
7242
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserDeleterInternal, { ...props });
|
|
7243
7243
|
}
|
|
7244
7244
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleter, "UserDeleter");
|
|
@@ -7261,7 +7261,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
7261
7261
|
} = useCurrentUserContext();
|
|
7262
7262
|
const { company: companyFromContext } = useCompanyContext();
|
|
7263
7263
|
const generateUrl = usePageUrlGenerator();
|
|
7264
|
-
const router =
|
|
7264
|
+
const router = _chunkRA4RYKYBjs.useI18nRouter.call(void 0, );
|
|
7265
7265
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
7266
7266
|
const [roles, setRoles] = _react.useState.call(void 0, []);
|
|
7267
7267
|
const [file, setFile] = _react.useState.call(void 0, null);
|
|
@@ -7302,7 +7302,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
7302
7302
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
7303
7303
|
if (!user) {
|
|
7304
7304
|
try {
|
|
7305
|
-
const existingUser = await
|
|
7305
|
+
const existingUser = await _chunkLRXJT656js.UserService.findByEmail({ email: values.email });
|
|
7306
7306
|
if (existingUser) {
|
|
7307
7307
|
form.setError("email", {
|
|
7308
7308
|
type: "manual",
|
|
@@ -7315,7 +7315,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
7315
7315
|
}
|
|
7316
7316
|
}
|
|
7317
7317
|
if (values.avatar && contentType) {
|
|
7318
|
-
const s3 = await
|
|
7318
|
+
const s3 = await _chunkLRXJT656js.S3Service.getPreSignedUrl({
|
|
7319
7319
|
key: values.avatar,
|
|
7320
7320
|
contentType,
|
|
7321
7321
|
isPublic: true
|
|
@@ -7341,16 +7341,16 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
7341
7341
|
adminCreated
|
|
7342
7342
|
};
|
|
7343
7343
|
try {
|
|
7344
|
-
const updatedUser = user ? await
|
|
7344
|
+
const updatedUser = user ? await _chunkLRXJT656js.UserService.update(payload) : await _chunkLRXJT656js.UserService.create(payload);
|
|
7345
7345
|
if (_optionalChain([currentUser, 'optionalAccess', _186 => _186.id]) === updatedUser.id) setUser(updatedUser);
|
|
7346
7346
|
if (onRevalidate) {
|
|
7347
|
-
await onRevalidate(generateUrl({ page:
|
|
7347
|
+
await onRevalidate(generateUrl({ page: _chunkLRXJT656js.Modules.User, id: updatedUser.id, language: `[locale]` }));
|
|
7348
7348
|
}
|
|
7349
7349
|
if (propagateChanges) {
|
|
7350
7350
|
propagateChanges(updatedUser);
|
|
7351
7351
|
setOpen(false);
|
|
7352
7352
|
} else {
|
|
7353
|
-
router.push(generateUrl({ page:
|
|
7353
|
+
router.push(generateUrl({ page: _chunkLRXJT656js.Modules.User, id: updatedUser.id }));
|
|
7354
7354
|
}
|
|
7355
7355
|
} catch (error) {
|
|
7356
7356
|
errorToast({ title: user ? t(`common.errors.update`) : t(`common.errors.create`), error });
|
|
@@ -7358,14 +7358,14 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
7358
7358
|
}, "onSubmit");
|
|
7359
7359
|
_react.useEffect.call(void 0, () => {
|
|
7360
7360
|
async function fetchRoles() {
|
|
7361
|
-
const roles2 = await
|
|
7361
|
+
const roles2 = await _chunkLRXJT656js.RoleService.findAllRoles({});
|
|
7362
7362
|
const availableRoles = roles2.filter(
|
|
7363
|
-
(role) => role.id !==
|
|
7363
|
+
(role) => role.id !== _chunkRA4RYKYBjs.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _187 => _187.features, 'access', _188 => _188.some, 'call', _189 => _189((feature) => feature.id === _optionalChain([role, 'access', _190 => _190.requiredFeature, 'optionalAccess', _191 => _191.id]))]))
|
|
7364
7364
|
);
|
|
7365
7365
|
setRoles(availableRoles);
|
|
7366
7366
|
}
|
|
7367
7367
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchRoles, "fetchRoles");
|
|
7368
|
-
if (open && (company || _optionalChain([currentUser, 'optionalAccess', _192 => _192.roles, 'access', _193 => _193.find, 'call', _194 => _194((role) => role.id ===
|
|
7368
|
+
if (open && (company || _optionalChain([currentUser, 'optionalAccess', _192 => _192.roles, 'access', _193 => _193.find, 'call', _194 => _194((role) => role.id === _chunkRA4RYKYBjs.getRoleId.call(void 0, ).Administrator)])) && roles.length === 0)
|
|
7369
7369
|
fetchRoles();
|
|
7370
7370
|
}, [company, open]);
|
|
7371
7371
|
_react.useEffect.call(void 0, () => {
|
|
@@ -7386,7 +7386,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
7386
7386
|
setContentType(null);
|
|
7387
7387
|
}
|
|
7388
7388
|
}, [file]);
|
|
7389
|
-
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _195 => _195.id]) === _optionalChain([user, 'optionalAccess', _196 => _196.id]) && hasRole(
|
|
7389
|
+
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _195 => _195.id]) === _optionalChain([user, 'optionalAccess', _196 => _196.id]) && hasRole(_chunkRA4RYKYBjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkLRXJT656js.Modules.User, action: "update" /* Update */ }) || hasRole(_chunkRA4RYKYBjs.getRoleId.call(void 0, ).Administrator));
|
|
7390
7390
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
7391
7391
|
trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTrigger, { children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!user }),
|
|
7392
7392
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -7473,7 +7473,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
7473
7473
|
] })
|
|
7474
7474
|
] }),
|
|
7475
7475
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-end gap-x-4", children: [
|
|
7476
|
-
user && _optionalChain([currentUser, 'optionalAccess', _198 => _198.roles, 'access', _199 => _199.find, 'call', _200 => _200((role) => role.id ===
|
|
7476
|
+
user && _optionalChain([currentUser, 'optionalAccess', _198 => _198.roles, 'access', _199 => _199.find, 'call', _200 => _200((role) => role.id === _chunkRA4RYKYBjs.getRoleId.call(void 0, ).Administrator)]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7477
7477
|
UserDeleter,
|
|
7478
7478
|
{
|
|
7479
7479
|
companyId: _optionalChain([user, 'access', _201 => _201.company, 'optionalAccess', _202 => _202.id]),
|
|
@@ -7496,7 +7496,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserEditorInternal, "UserEditorInternal");
|
|
|
7496
7496
|
function UserEditor(props) {
|
|
7497
7497
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
7498
7498
|
if (!hasPermissionToModule({
|
|
7499
|
-
module:
|
|
7499
|
+
module: _chunkLRXJT656js.Modules.User,
|
|
7500
7500
|
action: props.user ? "update" /* Update */ : "create" /* Create */,
|
|
7501
7501
|
data: props.user
|
|
7502
7502
|
}))
|
|
@@ -7585,7 +7585,7 @@ function CommonAssociationCommandDialog({
|
|
|
7585
7585
|
_chunk7QVYU63Ejs.__name.call(void 0, CommonAssociationCommandDialog, "CommonAssociationCommandDialog");
|
|
7586
7586
|
var triggerAssociationToast = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
7587
7587
|
if (params.level) {
|
|
7588
|
-
|
|
7588
|
+
_chunkLRXJT656js.showToast.call(void 0,
|
|
7589
7589
|
params.t(`common.association.label`, {
|
|
7590
7590
|
source: params.source,
|
|
7591
7591
|
destination: params.destination
|
|
@@ -7601,7 +7601,7 @@ var triggerAssociationToast = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
7601
7601
|
}
|
|
7602
7602
|
);
|
|
7603
7603
|
} else {
|
|
7604
|
-
|
|
7604
|
+
_chunkLRXJT656js.showToast.call(void 0,
|
|
7605
7605
|
params.t(`common.association.label`, {
|
|
7606
7606
|
source: params.source,
|
|
7607
7607
|
destination: params.destination
|
|
@@ -7653,7 +7653,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ErrorDetails, "ErrorDetails");
|
|
|
7653
7653
|
|
|
7654
7654
|
// src/components/errors/errorToast.ts
|
|
7655
7655
|
function errorToast(params) {
|
|
7656
|
-
|
|
7656
|
+
_chunkLRXJT656js.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess', _203 => _203.title]), () => ( "Error")), {
|
|
7657
7657
|
description: params.error instanceof Error ? params.error.message : String(params.error)
|
|
7658
7658
|
});
|
|
7659
7659
|
}
|
|
@@ -7662,8 +7662,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, errorToast, "errorToast");
|
|
|
7662
7662
|
// src/components/forms/CommonDeleter.tsx
|
|
7663
7663
|
|
|
7664
7664
|
function CommonDeleter({ deleteFunction, redirectTo, type, forceShow, testId }) {
|
|
7665
|
-
const t =
|
|
7666
|
-
const router =
|
|
7665
|
+
const t = _chunkRA4RYKYBjs.useI18nTranslations.call(void 0, );
|
|
7666
|
+
const router = _chunkRA4RYKYBjs.useI18nRouter.call(void 0, );
|
|
7667
7667
|
const [open, setOpen] = _react.useState.call(void 0, forceShow || false);
|
|
7668
7668
|
const [isDeleting, setIsDeleting] = _react.useState.call(void 0, false);
|
|
7669
7669
|
const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
@@ -7984,8 +7984,8 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
7984
7984
|
align = "start",
|
|
7985
7985
|
className
|
|
7986
7986
|
}) => {
|
|
7987
|
-
const locale =
|
|
7988
|
-
const dateFnsLocale =
|
|
7987
|
+
const locale = _chunkRA4RYKYBjs.useI18nLocale.call(void 0, );
|
|
7988
|
+
const dateFnsLocale = _chunkRA4RYKYBjs.useI18nDateFnsLocale.call(void 0, );
|
|
7989
7989
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
7990
7990
|
const [displayMonth, setDisplayMonth] = _react.useState.call(void 0, () => value || /* @__PURE__ */ new Date());
|
|
7991
7991
|
const dateFormatter = _react.useMemo.call(void 0,
|
|
@@ -8048,7 +8048,7 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
8048
8048
|
}, "handleClear");
|
|
8049
8049
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open: isOpen, onOpenChange: setIsOpen, children: [
|
|
8050
8050
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { children }),
|
|
8051
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className:
|
|
8051
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className: _chunkLRXJT656js.cn.call(void 0, "p-0", className), align, onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "p-3", children: [
|
|
8052
8052
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative mb-3", children: [
|
|
8053
8053
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8054
8054
|
Input,
|
|
@@ -8164,13 +8164,13 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
8164
8164
|
setDate(range);
|
|
8165
8165
|
}
|
|
8166
8166
|
}, "handleSelect");
|
|
8167
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
8167
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkLRXJT656js.cn.call(void 0, "grid gap-2"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, children: [
|
|
8168
8168
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8169
8169
|
Button,
|
|
8170
8170
|
{
|
|
8171
8171
|
id: "date",
|
|
8172
8172
|
variant: "outline",
|
|
8173
|
-
className:
|
|
8173
|
+
className: _chunkLRXJT656js.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
|
|
8174
8174
|
children: [
|
|
8175
8175
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
|
|
8176
8176
|
_optionalChain([date, 'optionalAccess', _223 => _223.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -8294,7 +8294,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
8294
8294
|
(acceptedFiles, rejectedFiles) => {
|
|
8295
8295
|
const files = acceptedFiles;
|
|
8296
8296
|
if (!files) {
|
|
8297
|
-
|
|
8297
|
+
_chunkLRXJT656js.showError.call(void 0, t("common.errors.file"), {
|
|
8298
8298
|
description: t("common.errors.file_large")
|
|
8299
8299
|
});
|
|
8300
8300
|
return;
|
|
@@ -8312,13 +8312,13 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
8312
8312
|
if (rejectedFiles.length > 0) {
|
|
8313
8313
|
for (let i = 0; i < rejectedFiles.length; i++) {
|
|
8314
8314
|
if (_optionalChain([rejectedFiles, 'access', _229 => _229[i], 'access', _230 => _230.errors, 'access', _231 => _231[0], 'optionalAccess', _232 => _232.code]) === "file-too-large") {
|
|
8315
|
-
|
|
8315
|
+
_chunkLRXJT656js.showError.call(void 0, t("common.errors.file"), {
|
|
8316
8316
|
description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
|
|
8317
8317
|
});
|
|
8318
8318
|
break;
|
|
8319
8319
|
}
|
|
8320
8320
|
if (_optionalChain([rejectedFiles, 'access', _233 => _233[i], 'access', _234 => _234.errors, 'access', _235 => _235[0], 'optionalAccess', _236 => _236.message])) {
|
|
8321
|
-
|
|
8321
|
+
_chunkLRXJT656js.showError.call(void 0, t(`common.errors.file`), {
|
|
8322
8322
|
description: rejectedFiles[i].errors[0].message
|
|
8323
8323
|
});
|
|
8324
8324
|
break;
|
|
@@ -8362,7 +8362,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
8362
8362
|
ref,
|
|
8363
8363
|
tabIndex: 0,
|
|
8364
8364
|
onKeyDownCapture: handleKeyDown,
|
|
8365
|
-
className:
|
|
8365
|
+
className: _chunkLRXJT656js.cn.call(void 0,
|
|
8366
8366
|
"grid w-full overflow-hidden focus:outline-none",
|
|
8367
8367
|
className,
|
|
8368
8368
|
// Original className from props
|
|
@@ -8386,12 +8386,12 @@ var FileUploaderContent = _react.forwardRef.call(void 0,
|
|
|
8386
8386
|
({ children, className, ...props }, ref) => {
|
|
8387
8387
|
const { orientation } = useFileUpload();
|
|
8388
8388
|
const containerRef = _react.useRef.call(void 0, null);
|
|
8389
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
8389
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkLRXJT656js.cn.call(void 0, "w-full px-1"), ref: containerRef, "aria-description": "content file holder", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8390
8390
|
"div",
|
|
8391
8391
|
{
|
|
8392
8392
|
...props,
|
|
8393
8393
|
ref,
|
|
8394
|
-
className:
|
|
8394
|
+
className: _chunkLRXJT656js.cn.call(void 0,
|
|
8395
8395
|
"flex gap-1 rounded-xl",
|
|
8396
8396
|
orientation === "horizontal" ? "flex-raw flex-wrap" : "flex-col",
|
|
8397
8397
|
className
|
|
@@ -8411,7 +8411,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
8411
8411
|
"div",
|
|
8412
8412
|
{
|
|
8413
8413
|
ref,
|
|
8414
|
-
className:
|
|
8414
|
+
className: _chunkLRXJT656js.cn.call(void 0,
|
|
8415
8415
|
buttonVariants({ variant: "ghost" }),
|
|
8416
8416
|
"relative h-6 cursor-pointer justify-between p-1",
|
|
8417
8417
|
className,
|
|
@@ -8424,7 +8424,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
8424
8424
|
"button",
|
|
8425
8425
|
{
|
|
8426
8426
|
type: "button",
|
|
8427
|
-
className:
|
|
8427
|
+
className: _chunkLRXJT656js.cn.call(void 0, "absolute", direction === "rtl" ? "top-1 left-1" : "top-1 right-1"),
|
|
8428
8428
|
onClick: () => removeFileFromSet(index),
|
|
8429
8429
|
children: [
|
|
8430
8430
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: t(`common.remove_item`, { index }) }),
|
|
@@ -8448,12 +8448,12 @@ var FileInput = _react.forwardRef.call(void 0,
|
|
|
8448
8448
|
{
|
|
8449
8449
|
ref,
|
|
8450
8450
|
...props,
|
|
8451
|
-
className:
|
|
8451
|
+
className: _chunkLRXJT656js.cn.call(void 0, `relative w-full ${isLOF ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`, className),
|
|
8452
8452
|
children: [
|
|
8453
8453
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8454
8454
|
"div",
|
|
8455
8455
|
{
|
|
8456
|
-
className:
|
|
8456
|
+
className: _chunkLRXJT656js.cn.call(void 0,
|
|
8457
8457
|
"w-full rounded-lg duration-300 ease-in-out",
|
|
8458
8458
|
// Simpler border logic: if parent is drag-active, it controls the border.
|
|
8459
8459
|
// Otherwise, FileInput can show its own accept/reject/default border.
|
|
@@ -8547,7 +8547,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, FormCheckbox, "FormCheckbox");
|
|
|
8547
8547
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
8548
8548
|
|
|
8549
8549
|
|
|
8550
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
8550
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-QGNV6E4X.js"))), {
|
|
8551
8551
|
ssr: false
|
|
8552
8552
|
});
|
|
8553
8553
|
var BlockNoteEditorContainer = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -8608,8 +8608,8 @@ function FormDate({
|
|
|
8608
8608
|
onChange,
|
|
8609
8609
|
isRequired = false
|
|
8610
8610
|
}) {
|
|
8611
|
-
const locale =
|
|
8612
|
-
const dateFnsLocale =
|
|
8611
|
+
const locale = _chunkRA4RYKYBjs.useI18nLocale.call(void 0, );
|
|
8612
|
+
const dateFnsLocale = _chunkRA4RYKYBjs.useI18nDateFnsLocale.call(void 0, );
|
|
8613
8613
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
8614
8614
|
const [displayMonth, setDisplayMonth] = _react.useState.call(void 0, () => {
|
|
8615
8615
|
const currentValue = form.getValues(id);
|
|
@@ -8727,9 +8727,9 @@ function FormDateTime({
|
|
|
8727
8727
|
allowEmpty
|
|
8728
8728
|
}) {
|
|
8729
8729
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
8730
|
-
const t =
|
|
8731
|
-
const locale =
|
|
8732
|
-
const dateFnsLocale =
|
|
8730
|
+
const t = _chunkRA4RYKYBjs.useI18nTranslations.call(void 0, );
|
|
8731
|
+
const locale = _chunkRA4RYKYBjs.useI18nLocale.call(void 0, );
|
|
8732
|
+
const dateFnsLocale = _chunkRA4RYKYBjs.useI18nDateFnsLocale.call(void 0, );
|
|
8733
8733
|
const dateTimeFormatter = _react.useMemo.call(void 0,
|
|
8734
8734
|
() => new Intl.DateTimeFormat(locale, {
|
|
8735
8735
|
year: "numeric",
|
|
@@ -8780,7 +8780,7 @@ function FormDateTime({
|
|
|
8780
8780
|
Button,
|
|
8781
8781
|
{
|
|
8782
8782
|
variant: "outline",
|
|
8783
|
-
className:
|
|
8783
|
+
className: _chunkLRXJT656js.cn.call(void 0, "w-full pl-3 text-left font-normal", !field.value && "text-muted-foreground")
|
|
8784
8784
|
}
|
|
8785
8785
|
),
|
|
8786
8786
|
children: [
|
|
@@ -8981,7 +8981,7 @@ var PasswordInput = React15.forwardRef(
|
|
|
8981
8981
|
const disabled = props.value === "" || props.value === void 0 || props.disabled;
|
|
8982
8982
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8983
8983
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
8984
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className:
|
|
8984
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className: _chunkLRXJT656js.cn.call(void 0, "", className), ref, ...props }),
|
|
8985
8985
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8986
8986
|
Button,
|
|
8987
8987
|
{
|
|
@@ -9218,7 +9218,7 @@ function FormPlaceAutocomplete({
|
|
|
9218
9218
|
placeholder,
|
|
9219
9219
|
disabled,
|
|
9220
9220
|
"data-testid": testId,
|
|
9221
|
-
className:
|
|
9221
|
+
className: _chunkLRXJT656js.cn.call(void 0, "w-full", className)
|
|
9222
9222
|
}
|
|
9223
9223
|
) }) });
|
|
9224
9224
|
}
|
|
@@ -9237,7 +9237,7 @@ function FormPlaceAutocomplete({
|
|
|
9237
9237
|
placeholder,
|
|
9238
9238
|
disabled: disabled || !apiKey,
|
|
9239
9239
|
"data-testid": testId,
|
|
9240
|
-
className:
|
|
9240
|
+
className: _chunkLRXJT656js.cn.call(void 0, "w-full", className)
|
|
9241
9241
|
}
|
|
9242
9242
|
),
|
|
9243
9243
|
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" }) }),
|
|
@@ -9368,7 +9368,7 @@ function FormTextarea({
|
|
|
9368
9368
|
Textarea,
|
|
9369
9369
|
{
|
|
9370
9370
|
...field,
|
|
9371
|
-
className:
|
|
9371
|
+
className: _chunkLRXJT656js.cn.call(void 0, "min-h-96 w-full", className),
|
|
9372
9372
|
disabled: form.formState.isSubmitting,
|
|
9373
9373
|
placeholder,
|
|
9374
9374
|
"data-testid": testId
|
|
@@ -9477,10 +9477,10 @@ function UserMultiSelect({
|
|
|
9477
9477
|
const data = useDataListRetriever({
|
|
9478
9478
|
ready: !!company,
|
|
9479
9479
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
9480
|
-
return
|
|
9480
|
+
return _chunkLRXJT656js.UserService.findAllUsers(params);
|
|
9481
9481
|
}, "retriever"),
|
|
9482
9482
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _258 => _258.id]) },
|
|
9483
|
-
module:
|
|
9483
|
+
module: _chunkLRXJT656js.Modules.User
|
|
9484
9484
|
});
|
|
9485
9485
|
_react.useEffect.call(void 0, () => {
|
|
9486
9486
|
if (company) data.setReady(true);
|
|
@@ -9590,7 +9590,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
9590
9590
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9591
9591
|
const reactivateUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
9592
9592
|
try {
|
|
9593
|
-
const updatedUser = await
|
|
9593
|
+
const updatedUser = await _chunkLRXJT656js.UserService.reactivate({ userId: user.id });
|
|
9594
9594
|
setOpen(false);
|
|
9595
9595
|
propagateChanges(updatedUser);
|
|
9596
9596
|
} catch (error) {
|
|
@@ -9628,7 +9628,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
9628
9628
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivatorInterface, "UserReactivatorInterface");
|
|
9629
9629
|
function UserReactivator(props) {
|
|
9630
9630
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9631
|
-
if (!hasPermissionToModule({ module:
|
|
9631
|
+
if (!hasPermissionToModule({ module: _chunkLRXJT656js.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
9632
9632
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserReactivatorInterface, { ...props });
|
|
9633
9633
|
}
|
|
9634
9634
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivator, "UserReactivator");
|
|
@@ -9643,9 +9643,9 @@ function UserResentInvitationEmailInternal({ user }) {
|
|
|
9643
9643
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9644
9644
|
const sendInvitationEmail = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
9645
9645
|
try {
|
|
9646
|
-
await
|
|
9646
|
+
await _chunkLRXJT656js.UserService.sendInvitation({ userId: user.id, companyId: user.company.id });
|
|
9647
9647
|
setOpen(false);
|
|
9648
|
-
|
|
9648
|
+
_chunkLRXJT656js.showToast.call(void 0, t(`user.resend_activation.email_sent`), {
|
|
9649
9649
|
description: t(`user.resend_activation.email_sent_description`, { email: user.email })
|
|
9650
9650
|
});
|
|
9651
9651
|
} catch (error) {
|
|
@@ -9683,7 +9683,7 @@ function UserResentInvitationEmailInternal({ user }) {
|
|
|
9683
9683
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmailInternal, "UserResentInvitationEmailInternal");
|
|
9684
9684
|
function UserResentInvitationEmail(props) {
|
|
9685
9685
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9686
|
-
if (!hasPermissionToModule({ module:
|
|
9686
|
+
if (!hasPermissionToModule({ module: _chunkLRXJT656js.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
9687
9687
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserResentInvitationEmailInternal, { ...props });
|
|
9688
9688
|
}
|
|
9689
9689
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmail, "UserResentInvitationEmail");
|
|
@@ -9714,22 +9714,22 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
|
|
|
9714
9714
|
}, "getAvatar");
|
|
9715
9715
|
const content = showLink === false ? (
|
|
9716
9716
|
// If showLink is explicitly false, never show a link
|
|
9717
|
-
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
9717
|
+
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkLRXJT656js.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className), children: [
|
|
9718
9718
|
getAvatar(),
|
|
9719
9719
|
user.name
|
|
9720
9720
|
] }) : getAvatar()
|
|
9721
9721
|
) : showFull ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9722
9722
|
Link,
|
|
9723
9723
|
{
|
|
9724
|
-
href: generateUrl({ page:
|
|
9725
|
-
className:
|
|
9724
|
+
href: generateUrl({ page: _chunkLRXJT656js.Modules.User, id: user.id }),
|
|
9725
|
+
className: _chunkLRXJT656js.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className),
|
|
9726
9726
|
onClick: (e) => e.stopPropagation(),
|
|
9727
9727
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center gap-x-2", children: [
|
|
9728
9728
|
getAvatar(),
|
|
9729
9729
|
user.name
|
|
9730
9730
|
] })
|
|
9731
9731
|
}
|
|
9732
|
-
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page:
|
|
9732
|
+
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunkLRXJT656js.Modules.User, id: user.id }), className, children: getAvatar() }) : getAvatar();
|
|
9733
9733
|
if (!showTooltip) {
|
|
9734
9734
|
return content;
|
|
9735
9735
|
}
|
|
@@ -9747,7 +9747,7 @@ function UserAvatarList({ users }) {
|
|
|
9747
9747
|
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,
|
|
9748
9748
|
Link,
|
|
9749
9749
|
{
|
|
9750
|
-
href: generateUrl({ page:
|
|
9750
|
+
href: generateUrl({ page: _chunkLRXJT656js.Modules.User, id: user.id }),
|
|
9751
9751
|
onClick: (e) => e.stopPropagation(),
|
|
9752
9752
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user, className: "h-5 w-5" })
|
|
9753
9753
|
},
|
|
@@ -9766,10 +9766,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
9766
9766
|
const [isSearching, setIsSearching] = _react.useState.call(void 0, false);
|
|
9767
9767
|
const data = useDataListRetriever({
|
|
9768
9768
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
9769
|
-
return
|
|
9769
|
+
return _chunkLRXJT656js.UserService.findMany(params);
|
|
9770
9770
|
}, "retriever"),
|
|
9771
9771
|
retrieverParams: {},
|
|
9772
|
-
module:
|
|
9772
|
+
module: _chunkLRXJT656js.Modules.User
|
|
9773
9773
|
});
|
|
9774
9774
|
const search = _react.useCallback.call(void 0,
|
|
9775
9775
|
async (searchedTerm) => {
|
|
@@ -9868,24 +9868,24 @@ var UserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
9868
9868
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9869
9869
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9870
9870
|
const [user, setUser] = _react.useState.call(void 0,
|
|
9871
|
-
dehydratedUser ?
|
|
9871
|
+
dehydratedUser ? _chunkLRXJT656js.rehydrate.call(void 0, _chunkLRXJT656js.Modules.User, dehydratedUser) : void 0
|
|
9872
9872
|
);
|
|
9873
9873
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
9874
9874
|
const response = [];
|
|
9875
|
-
if (hasPermissionToModule({ module:
|
|
9875
|
+
if (hasPermissionToModule({ module: _chunkLRXJT656js.Modules.User, action: "update" /* Update */ })) {
|
|
9876
9876
|
response.push({
|
|
9877
9877
|
name: t(`common.settings`, { item: "settings" }),
|
|
9878
9878
|
href: generateUrl({ page: `/settings` })
|
|
9879
9879
|
});
|
|
9880
9880
|
response.push({
|
|
9881
9881
|
name: t(`entities.users`, { count: 2 }),
|
|
9882
|
-
href: generateUrl({ page: `/settings`, id:
|
|
9882
|
+
href: generateUrl({ page: `/settings`, id: _chunkLRXJT656js.Modules.User.pageUrl })
|
|
9883
9883
|
});
|
|
9884
9884
|
}
|
|
9885
9885
|
if (user)
|
|
9886
9886
|
response.push({
|
|
9887
9887
|
name: `${user.name}${user.isDeleted ? ` (${t(`user.deleted`)})` : ""}`,
|
|
9888
|
-
href: generateUrl({ page:
|
|
9888
|
+
href: generateUrl({ page: _chunkLRXJT656js.Modules.User, id: user.id })
|
|
9889
9889
|
});
|
|
9890
9890
|
return response;
|
|
9891
9891
|
}, "breadcrumb");
|
|
@@ -9940,7 +9940,7 @@ function UserDetails({ user }) {
|
|
|
9940
9940
|
const { title } = useSharedContext();
|
|
9941
9941
|
let roles = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
9942
9942
|
if (user.roles && user.roles.length > 0) {
|
|
9943
|
-
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:
|
|
9943
|
+
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: _chunkLRXJT656js.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)) }) });
|
|
9944
9944
|
}
|
|
9945
9945
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
9946
9946
|
user.avatar && /* @__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,
|
|
@@ -9953,7 +9953,7 @@ function UserDetails({ user }) {
|
|
|
9953
9953
|
className: "h-auto w-full rounded-lg object-contain"
|
|
9954
9954
|
}
|
|
9955
9955
|
) }),
|
|
9956
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module:
|
|
9956
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkLRXJT656js.Modules.User, type: title.type, element: title.element, functions: title.functions }),
|
|
9957
9957
|
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`) }) }) }),
|
|
9958
9958
|
roles,
|
|
9959
9959
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AttributeElement, { inline: true, title: t(`user.fields.title.label`), value: user.title }),
|
|
@@ -9989,7 +9989,7 @@ function UserStanadaloneDetails({ user }) {
|
|
|
9989
9989
|
const { title } = useSharedContext();
|
|
9990
9990
|
let roles = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
9991
9991
|
if (user.roles && user.roles.length > 0) {
|
|
9992
|
-
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:
|
|
9992
|
+
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: _chunkLRXJT656js.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)) }) });
|
|
9993
9993
|
}
|
|
9994
9994
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row gap-x-4", children: [
|
|
9995
9995
|
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,
|
|
@@ -10003,7 +10003,7 @@ function UserStanadaloneDetails({ user }) {
|
|
|
10003
10003
|
}
|
|
10004
10004
|
) }) }),
|
|
10005
10005
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
10006
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module:
|
|
10006
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkLRXJT656js.Modules.User, type: title.type, element: title.element, functions: title.functions }),
|
|
10007
10007
|
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`) }) }) }),
|
|
10008
10008
|
roles,
|
|
10009
10009
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AttributeElement, { inline: true, title: t(`user.fields.title.label`), value: user.title }),
|
|
@@ -10042,18 +10042,18 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserIndexContainer, "UserIndexContainer");
|
|
|
10042
10042
|
function UsersListContainerInternal() {
|
|
10043
10043
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
10044
10044
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10045
|
-
if (!hasPermissionToModule({ module:
|
|
10045
|
+
if (!hasPermissionToModule({ module: _chunkLRXJT656js.Modules.User, action: "delete" /* Delete */ })) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {});
|
|
10046
10046
|
const tabs = [
|
|
10047
10047
|
{
|
|
10048
10048
|
label: t(`entities.users`, { count: 2 }),
|
|
10049
10049
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {}),
|
|
10050
|
-
modules: [
|
|
10050
|
+
modules: [_chunkLRXJT656js.Modules.Company],
|
|
10051
10051
|
action: "read" /* Read */
|
|
10052
10052
|
},
|
|
10053
10053
|
{
|
|
10054
10054
|
label: t(`user.deleted`),
|
|
10055
10055
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, { isDeleted: true }),
|
|
10056
|
-
modules: [
|
|
10056
|
+
modules: [_chunkLRXJT656js.Modules.Company],
|
|
10057
10057
|
action: "update" /* Update */
|
|
10058
10058
|
}
|
|
10059
10059
|
];
|
|
@@ -10071,9 +10071,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersListContainer, "UsersListContainer");
|
|
|
10071
10071
|
function AdminUsersListInternal({ company }) {
|
|
10072
10072
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10073
10073
|
const data = useDataListRetriever({
|
|
10074
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
10074
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkLRXJT656js.UserService.findManyForAmin(params), "retriever"),
|
|
10075
10075
|
retrieverParams: { companyId: company.id },
|
|
10076
|
-
module:
|
|
10076
|
+
module: _chunkLRXJT656js.Modules.User
|
|
10077
10077
|
});
|
|
10078
10078
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10079
10079
|
ContentListTable,
|
|
@@ -10081,7 +10081,7 @@ function AdminUsersListInternal({ company }) {
|
|
|
10081
10081
|
title: t(`entities.users`, { count: 2 }),
|
|
10082
10082
|
data,
|
|
10083
10083
|
fields: ["name" /* name */, "email" /* email */, "createdAt" /* createdAt */],
|
|
10084
|
-
tableGeneratorType:
|
|
10084
|
+
tableGeneratorType: _chunkLRXJT656js.Modules.User,
|
|
10085
10085
|
functions: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserEditor, { propagateChanges: data.refresh, adminCreated: true })
|
|
10086
10086
|
}
|
|
10087
10087
|
);
|
|
@@ -10103,9 +10103,9 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
10103
10103
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10104
10104
|
const data = useDataListRetriever({
|
|
10105
10105
|
ready: !!company,
|
|
10106
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
10106
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkLRXJT656js.UserService.findAllUsers(params), "retriever"),
|
|
10107
10107
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _275 => _275.id]), isDeleted },
|
|
10108
|
-
module:
|
|
10108
|
+
module: _chunkLRXJT656js.Modules.User
|
|
10109
10109
|
});
|
|
10110
10110
|
_react.useEffect.call(void 0, () => {
|
|
10111
10111
|
if (company) data.setReady(true);
|
|
@@ -10118,7 +10118,7 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
10118
10118
|
{
|
|
10119
10119
|
data,
|
|
10120
10120
|
fields: ["name" /* name */, "email" /* email */],
|
|
10121
|
-
tableGeneratorType:
|
|
10121
|
+
tableGeneratorType: _chunkLRXJT656js.Modules.User,
|
|
10122
10122
|
functions,
|
|
10123
10123
|
title: t(`entities.users`, { count: 2 })
|
|
10124
10124
|
}
|
|
@@ -10134,7 +10134,7 @@ function ContributorsList({ content }) {
|
|
|
10134
10134
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10135
10135
|
Link,
|
|
10136
10136
|
{
|
|
10137
|
-
href: generateUrl({ page:
|
|
10137
|
+
href: generateUrl({ page: _chunkLRXJT656js.Modules.User, id: content.author.id }),
|
|
10138
10138
|
onClick: (e) => e.stopPropagation(),
|
|
10139
10139
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: content.author, className: "mr-1 h-6 w-6" })
|
|
10140
10140
|
},
|
|
@@ -10143,7 +10143,7 @@ function ContributorsList({ content }) {
|
|
|
10143
10143
|
/* @__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,
|
|
10144
10144
|
Link,
|
|
10145
10145
|
{
|
|
10146
|
-
href: generateUrl({ page:
|
|
10146
|
+
href: generateUrl({ page: _chunkLRXJT656js.Modules.User, id: editor.id }),
|
|
10147
10147
|
onClick: (e) => e.stopPropagation(),
|
|
10148
10148
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: editor, className: "h-5 w-5" })
|
|
10149
10149
|
},
|
|
@@ -10159,8 +10159,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContributorsList, "ContributorsList");
|
|
|
10159
10159
|
function RelevantUsersList({ id }) {
|
|
10160
10160
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10161
10161
|
const data = useDataListRetriever({
|
|
10162
|
-
module:
|
|
10163
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
10162
|
+
module: _chunkLRXJT656js.Modules.User,
|
|
10163
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkLRXJT656js.UserService.findRelevant(params), "retriever"),
|
|
10164
10164
|
retrieverParams: { id }
|
|
10165
10165
|
});
|
|
10166
10166
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10168,7 +10168,7 @@ function RelevantUsersList({ id }) {
|
|
|
10168
10168
|
{
|
|
10169
10169
|
data,
|
|
10170
10170
|
fields: ["name" /* name */, "email" /* email */, "relevance" /* relevance */],
|
|
10171
|
-
tableGeneratorType:
|
|
10171
|
+
tableGeneratorType: _chunkLRXJT656js.Modules.User,
|
|
10172
10172
|
title: t(`common.relevant_users`)
|
|
10173
10173
|
}
|
|
10174
10174
|
);
|
|
@@ -10181,16 +10181,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RelevantUsersList, "RelevantUsersList");
|
|
|
10181
10181
|
function RoleUsersList({ role }) {
|
|
10182
10182
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10183
10183
|
const data = useDataListRetriever({
|
|
10184
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
10184
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkLRXJT656js.UserService.findAllUsersByRole(params), "retriever"),
|
|
10185
10185
|
retrieverParams: { roleId: role.id },
|
|
10186
|
-
module:
|
|
10186
|
+
module: _chunkLRXJT656js.Modules.User
|
|
10187
10187
|
});
|
|
10188
10188
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10189
10189
|
ContentListTable,
|
|
10190
10190
|
{
|
|
10191
10191
|
data,
|
|
10192
10192
|
fields: ["name" /* name */, "email" /* email */],
|
|
10193
|
-
tableGeneratorType:
|
|
10193
|
+
tableGeneratorType: _chunkLRXJT656js.Modules.User,
|
|
10194
10194
|
title: t(`entities.users`, { count: 2 })
|
|
10195
10195
|
}
|
|
10196
10196
|
);
|
|
@@ -10246,7 +10246,7 @@ function UsersList({
|
|
|
10246
10246
|
{
|
|
10247
10247
|
data,
|
|
10248
10248
|
fields: ["name" /* name */, "email" /* email */],
|
|
10249
|
-
tableGeneratorType:
|
|
10249
|
+
tableGeneratorType: _chunkLRXJT656js.Modules.User,
|
|
10250
10250
|
title: t(`entities.users`, { count: 2 })
|
|
10251
10251
|
}
|
|
10252
10252
|
);
|
|
@@ -10259,8 +10259,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersList, "UsersList");
|
|
|
10259
10259
|
function UsersListByContentIds({ contentIds }) {
|
|
10260
10260
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10261
10261
|
const data = useDataListRetriever({
|
|
10262
|
-
module:
|
|
10263
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
10262
|
+
module: _chunkLRXJT656js.Modules.User,
|
|
10263
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkLRXJT656js.UserService.findManyByContentIds(params), "retriever"),
|
|
10264
10264
|
retrieverParams: { contentIds }
|
|
10265
10265
|
});
|
|
10266
10266
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10268,7 +10268,7 @@ function UsersListByContentIds({ contentIds }) {
|
|
|
10268
10268
|
{
|
|
10269
10269
|
data,
|
|
10270
10270
|
fields: ["name" /* name */, "email" /* email */],
|
|
10271
|
-
tableGeneratorType:
|
|
10271
|
+
tableGeneratorType: _chunkLRXJT656js.Modules.User,
|
|
10272
10272
|
title: t(`common.relevant_users`)
|
|
10273
10273
|
}
|
|
10274
10274
|
);
|
|
@@ -10312,13 +10312,13 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
10312
10312
|
const textSize = textSizeClasses[size];
|
|
10313
10313
|
const getBatteryIcon = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10314
10314
|
if (percentage > 75) {
|
|
10315
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryFull, { className:
|
|
10315
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryFull, { className: _chunkLRXJT656js.cn.call(void 0, iconSize, "text-green-500") });
|
|
10316
10316
|
} else if (percentage > 50) {
|
|
10317
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryMedium, { className:
|
|
10317
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryMedium, { className: _chunkLRXJT656js.cn.call(void 0, iconSize, "text-green-500") });
|
|
10318
10318
|
} else if (percentage >= 25) {
|
|
10319
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryLow, { className:
|
|
10319
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryLow, { className: _chunkLRXJT656js.cn.call(void 0, iconSize, "text-yellow-500") });
|
|
10320
10320
|
} else {
|
|
10321
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Battery, { className:
|
|
10321
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Battery, { className: _chunkLRXJT656js.cn.call(void 0, iconSize, "text-destructive") });
|
|
10322
10322
|
}
|
|
10323
10323
|
}, "getBatteryIcon");
|
|
10324
10324
|
const getStatusColor = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -10338,7 +10338,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
10338
10338
|
t("billing.tokens.monthly", { defaultValue: "Monthly Pages" }),
|
|
10339
10339
|
":"
|
|
10340
10340
|
] }),
|
|
10341
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
10341
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLRXJT656js.cn.call(void 0, "font-medium", getStatusColor()), children: [
|
|
10342
10342
|
availableMonthlyTokens,
|
|
10343
10343
|
" / ",
|
|
10344
10344
|
monthlyTokens
|
|
@@ -10349,7 +10349,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
10349
10349
|
t("billing.tokens.available", { defaultValue: "Available" }),
|
|
10350
10350
|
":"
|
|
10351
10351
|
] }),
|
|
10352
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
10352
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLRXJT656js.cn.call(void 0, "font-medium", getStatusColor()), children: [
|
|
10353
10353
|
percentage.toFixed(0),
|
|
10354
10354
|
"%"
|
|
10355
10355
|
] })
|
|
@@ -10370,14 +10370,14 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
10370
10370
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10371
10371
|
"div",
|
|
10372
10372
|
{
|
|
10373
|
-
className:
|
|
10373
|
+
className: _chunkLRXJT656js.cn.call(void 0, "inline-flex items-center gap-1.5 cursor-default", className),
|
|
10374
10374
|
"aria-label": t("billing.tokens.status", { defaultValue: "Page Status" }),
|
|
10375
10375
|
children: [
|
|
10376
10376
|
getBatteryIcon(),
|
|
10377
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
10377
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLRXJT656js.cn.call(void 0, textSize, "text-muted-foreground font-medium"), children: availableMonthlyTokens }),
|
|
10378
10378
|
showExtraPages && availableExtraTokens > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "inline-flex items-center gap-0.5", children: [
|
|
10379
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className:
|
|
10380
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
10379
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className: _chunkLRXJT656js.cn.call(void 0, smallIconSize, "text-blue-500") }),
|
|
10380
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLRXJT656js.cn.call(void 0, textSize, "text-blue-500 font-medium"), children: availableExtraTokens })
|
|
10381
10381
|
] })
|
|
10382
10382
|
]
|
|
10383
10383
|
}
|
|
@@ -10396,7 +10396,7 @@ function CompanyDetails() {
|
|
|
10396
10396
|
const { company } = useCompanyContext();
|
|
10397
10397
|
if (!company) return null;
|
|
10398
10398
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
10399
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module:
|
|
10399
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkLRXJT656js.Modules.Company, type: title.type, element: title.element, functions: title.functions }),
|
|
10400
10400
|
company.logo && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: company.logo, alt: company.name, width: 150, height: 150, className: "mb-4 rounded-md" }),
|
|
10401
10401
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TokenStatusIndicator, { size: "md" }),
|
|
10402
10402
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-y-1", children: [
|
|
@@ -10426,7 +10426,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyDetails, "CompanyDetails");
|
|
|
10426
10426
|
function AdminCompanyContainerInternal() {
|
|
10427
10427
|
const { company } = useCompanyContext();
|
|
10428
10428
|
const { hasRole } = useCurrentUserContext();
|
|
10429
|
-
if (!company || !hasRole(
|
|
10429
|
+
if (!company || !hasRole(_chunkRA4RYKYBjs.getRoleId.call(void 0, ).Administrator)) return null;
|
|
10430
10430
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
10431
10431
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDetails, {}),
|
|
10432
10432
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AdminUsersList, {})
|
|
@@ -10484,12 +10484,12 @@ function CompanyConfigurationEditorInternal({
|
|
|
10484
10484
|
configurations: buildPayload(values)
|
|
10485
10485
|
};
|
|
10486
10486
|
try {
|
|
10487
|
-
await
|
|
10488
|
-
const fullUser = await
|
|
10487
|
+
await _chunkLRXJT656js.CompanyService.updateConfigurations(payload);
|
|
10488
|
+
const fullUser = await _chunkLRXJT656js.UserService.findFullUser();
|
|
10489
10489
|
if (fullUser) {
|
|
10490
10490
|
setUser(fullUser);
|
|
10491
10491
|
}
|
|
10492
|
-
|
|
10492
|
+
_chunkLRXJT656js.showToast.call(void 0, t("features.configuration.updated_title"), {
|
|
10493
10493
|
description: t("features.configuration.updated_description")
|
|
10494
10494
|
});
|
|
10495
10495
|
close();
|
|
@@ -10517,7 +10517,7 @@ function CompanyConfigurationEditorInternal({
|
|
|
10517
10517
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditorInternal, "CompanyConfigurationEditorInternal");
|
|
10518
10518
|
function CompanyConfigurationEditor(props) {
|
|
10519
10519
|
const { hasRole } = useCurrentUserContext();
|
|
10520
|
-
if (hasRole(
|
|
10520
|
+
if (hasRole(_chunkRA4RYKYBjs.getRoleId.call(void 0, ).Administrator)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditorInternal, { ...props });
|
|
10521
10521
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditorInternal, { ...props });
|
|
10522
10522
|
}
|
|
10523
10523
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditor, "CompanyConfigurationEditor");
|
|
@@ -10542,11 +10542,11 @@ function CompanyDeleterInternal({ company, isAdministrator: isAdministrator2 })
|
|
|
10542
10542
|
setIsDeleting(true);
|
|
10543
10543
|
try {
|
|
10544
10544
|
if (isAdministrator2) {
|
|
10545
|
-
await
|
|
10545
|
+
await _chunkLRXJT656js.CompanyService.delete({ companyId: company.id });
|
|
10546
10546
|
} else {
|
|
10547
|
-
await
|
|
10547
|
+
await _chunkLRXJT656js.CompanyService.selfDelete({ companyId: company.id });
|
|
10548
10548
|
}
|
|
10549
|
-
await
|
|
10549
|
+
await _chunkLRXJT656js.AuthService.logout();
|
|
10550
10550
|
window.location.href = generateUrl({ page: `/` });
|
|
10551
10551
|
} catch (error) {
|
|
10552
10552
|
errorToast({ title: t(`common.errors.delete`), error });
|
|
@@ -10651,9 +10651,9 @@ function CompanyDeleterInternal({ company, isAdministrator: isAdministrator2 })
|
|
|
10651
10651
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleterInternal, "CompanyDeleterInternal");
|
|
10652
10652
|
function CompanyDeleter({ company }) {
|
|
10653
10653
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
10654
|
-
const isAdministrator2 = hasRole(
|
|
10655
|
-
const isCompanyAdministrator = hasRole(
|
|
10656
|
-
const hasDeletePermission = hasPermissionToModule({ module:
|
|
10654
|
+
const isAdministrator2 = hasRole(_chunkRA4RYKYBjs.getRoleId.call(void 0, ).Administrator);
|
|
10655
|
+
const isCompanyAdministrator = hasRole(_chunkRA4RYKYBjs.getRoleId.call(void 0, ).CompanyAdministrator);
|
|
10656
|
+
const hasDeletePermission = hasPermissionToModule({ module: _chunkLRXJT656js.Modules.Company, action: "delete" /* Delete */ });
|
|
10657
10657
|
if (!isAdministrator2 && !isCompanyAdministrator && !hasDeletePermission) {
|
|
10658
10658
|
return null;
|
|
10659
10659
|
}
|
|
@@ -10674,7 +10674,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleter, "CompanyDeleter");
|
|
|
10674
10674
|
|
|
10675
10675
|
function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
10676
10676
|
const { hasRole } = useCurrentUserContext();
|
|
10677
|
-
const router =
|
|
10677
|
+
const router = _chunkRA4RYKYBjs.useI18nRouter.call(void 0, );
|
|
10678
10678
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
10679
10679
|
const [features, setFeatures] = _react.useState.call(void 0, []);
|
|
10680
10680
|
const [file, setFile] = _react.useState.call(void 0, null);
|
|
@@ -10703,7 +10703,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10703
10703
|
});
|
|
10704
10704
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
10705
10705
|
if (values.logo && contentType) {
|
|
10706
|
-
const s3 = await
|
|
10706
|
+
const s3 = await _chunkLRXJT656js.S3Service.getPreSignedUrl({
|
|
10707
10707
|
key: values.logo,
|
|
10708
10708
|
contentType,
|
|
10709
10709
|
isPublic: true
|
|
@@ -10722,9 +10722,9 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10722
10722
|
moduleIds: values.moduleIds
|
|
10723
10723
|
};
|
|
10724
10724
|
try {
|
|
10725
|
-
const updatedCompany = company ? await
|
|
10725
|
+
const updatedCompany = company ? await _chunkLRXJT656js.CompanyService.update(payload) : await _chunkLRXJT656js.CompanyService.create(payload);
|
|
10726
10726
|
if (onRevalidate) {
|
|
10727
|
-
await onRevalidate(generateUrl({ page:
|
|
10727
|
+
await onRevalidate(generateUrl({ page: _chunkLRXJT656js.Modules.Company, id: updatedCompany.id, language: `[locale]` }));
|
|
10728
10728
|
}
|
|
10729
10729
|
if (company && propagateChanges) {
|
|
10730
10730
|
_cookiesnext.setCookie.call(void 0, "reloadData", "true", { path: "/" });
|
|
@@ -10742,15 +10742,15 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10742
10742
|
}, "onSubmit");
|
|
10743
10743
|
_react.useEffect.call(void 0, () => {
|
|
10744
10744
|
async function fetchFeatures() {
|
|
10745
|
-
const allfeatures = await
|
|
10746
|
-
if (hasRole(
|
|
10745
|
+
const allfeatures = await _chunkLRXJT656js.FeatureService.findMany({});
|
|
10746
|
+
if (hasRole(_chunkRA4RYKYBjs.getRoleId.call(void 0, ).Administrator)) {
|
|
10747
10747
|
setFeatures(allfeatures);
|
|
10748
10748
|
} else {
|
|
10749
10749
|
setFeatures(allfeatures.filter((feature) => feature.isCore));
|
|
10750
10750
|
}
|
|
10751
10751
|
}
|
|
10752
10752
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
|
|
10753
|
-
if (open && features.length === 0 && (hasRole(
|
|
10753
|
+
if (open && features.length === 0 && (hasRole(_chunkRA4RYKYBjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkRA4RYKYBjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _292 => _292.env, 'access', _293 => _293.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _294 => _294.toLowerCase, 'call', _295 => _295()]) === "true"))
|
|
10754
10754
|
fetchFeatures();
|
|
10755
10755
|
}, [open, features]);
|
|
10756
10756
|
_react.useEffect.call(void 0, () => {
|
|
@@ -10784,8 +10784,8 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10784
10784
|
"application/images": [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg"]
|
|
10785
10785
|
}
|
|
10786
10786
|
};
|
|
10787
|
-
const canAccessFeatures = hasRole(
|
|
10788
|
-
const isAdministrator2 = hasRole(
|
|
10787
|
+
const canAccessFeatures = hasRole(_chunkRA4RYKYBjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkRA4RYKYBjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _296 => _296.env, 'access', _297 => _297.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _298 => _298.toLowerCase, 'call', _299 => _299()]) === "true";
|
|
10788
|
+
const isAdministrator2 = hasRole(_chunkRA4RYKYBjs.getRoleId.call(void 0, ).Administrator);
|
|
10789
10789
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
10790
10790
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!company }),
|
|
10791
10791
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -10838,9 +10838,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyEditor, "CompanyEditor");
|
|
|
10838
10838
|
function CompaniesList() {
|
|
10839
10839
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10840
10840
|
const data = useDataListRetriever({
|
|
10841
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
10841
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkLRXJT656js.CompanyService.findMany(params), "retriever"),
|
|
10842
10842
|
retrieverParams: {},
|
|
10843
|
-
module:
|
|
10843
|
+
module: _chunkLRXJT656js.Modules.Company
|
|
10844
10844
|
});
|
|
10845
10845
|
const functions = [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, {}, "create-account")];
|
|
10846
10846
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10848,7 +10848,7 @@ function CompaniesList() {
|
|
|
10848
10848
|
{
|
|
10849
10849
|
data,
|
|
10850
10850
|
fields: ["name" /* name */, "createdAt" /* createdAt */],
|
|
10851
|
-
tableGeneratorType:
|
|
10851
|
+
tableGeneratorType: _chunkLRXJT656js.Modules.Company,
|
|
10852
10852
|
functions,
|
|
10853
10853
|
title: t(`entities.companies`, { count: 2 })
|
|
10854
10854
|
}
|
|
@@ -10869,14 +10869,14 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
10869
10869
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10870
10870
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
10871
10871
|
const [company, setCompany] = _react.useState.call(void 0,
|
|
10872
|
-
dehydratedCompany ?
|
|
10872
|
+
dehydratedCompany ? _chunkLRXJT656js.rehydrate.call(void 0, _chunkLRXJT656js.Modules.Company, dehydratedCompany) : void 0
|
|
10873
10873
|
);
|
|
10874
10874
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10875
10875
|
const response = [];
|
|
10876
10876
|
if (company)
|
|
10877
10877
|
response.push({
|
|
10878
10878
|
name: company.name,
|
|
10879
|
-
href: generateUrl({ page:
|
|
10879
|
+
href: generateUrl({ page: _chunkLRXJT656js.Modules.Company })
|
|
10880
10880
|
});
|
|
10881
10881
|
return response;
|
|
10882
10882
|
}, "breadcrumb");
|
|
@@ -10886,9 +10886,9 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
10886
10886
|
};
|
|
10887
10887
|
if (company) response.element = company.name;
|
|
10888
10888
|
const functions = [];
|
|
10889
|
-
if (company && (hasRole(
|
|
10889
|
+
if (company && (hasRole(_chunkRA4RYKYBjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkRA4RYKYBjs.getRoleId.call(void 0, ).CompanyAdministrator)) && hasPermissionToModule({ module: _chunkLRXJT656js.Modules.Company, action: "delete" /* Delete */ }))
|
|
10890
10890
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleter, { company }, "companyDeleter"));
|
|
10891
|
-
if (hasRole(
|
|
10891
|
+
if (hasRole(_chunkRA4RYKYBjs.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module: _chunkLRXJT656js.Modules.Company, action: "update" /* Update */ })) {
|
|
10892
10892
|
if (company && configurationEditorSlot)
|
|
10893
10893
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: configurationEditorSlot }, "configurationEditorSlot"));
|
|
10894
10894
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, { company, propagateChanges: setCompany }, "companyEditor"));
|
|
@@ -10982,7 +10982,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, NotificationMenuItem, "NotificationMenuItem
|
|
|
10982
10982
|
var NotificationContext = _react.createContext.call(void 0, void 0);
|
|
10983
10983
|
var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ children }) => {
|
|
10984
10984
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10985
|
-
const router =
|
|
10985
|
+
const router = _chunkRA4RYKYBjs.useI18nRouter.call(void 0, );
|
|
10986
10986
|
const [notifications, setNotifications] = _react.useState.call(void 0, []);
|
|
10987
10987
|
const [isLoading, setIsLoading] = _react.useState.call(void 0, false);
|
|
10988
10988
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
@@ -11009,7 +11009,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
11009
11009
|
setIsLoading(true);
|
|
11010
11010
|
setError(null);
|
|
11011
11011
|
try {
|
|
11012
|
-
const fetchedNotifications = await
|
|
11012
|
+
const fetchedNotifications = await _chunkLRXJT656js.NotificationService.findMany({});
|
|
11013
11013
|
setNotifications(fetchedNotifications);
|
|
11014
11014
|
setLastLoaded(Date.now());
|
|
11015
11015
|
} catch (error2) {
|
|
@@ -11021,8 +11021,8 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
11021
11021
|
}, []);
|
|
11022
11022
|
_react.useEffect.call(void 0, () => {
|
|
11023
11023
|
if (hasInitiallyLoaded || !currentUser) return;
|
|
11024
|
-
if (
|
|
11025
|
-
const isAdmin = _optionalChain([currentUser, 'access', _307 => _307.roles, 'optionalAccess', _308 => _308.some, 'call', _309 => _309((role) => role.id ===
|
|
11024
|
+
if (_chunkRA4RYKYBjs.isRolesConfigured.call(void 0, )) {
|
|
11025
|
+
const isAdmin = _optionalChain([currentUser, 'access', _307 => _307.roles, 'optionalAccess', _308 => _308.some, 'call', _309 => _309((role) => role.id === _chunkRA4RYKYBjs.getRoleId.call(void 0, ).Administrator)]);
|
|
11026
11026
|
if (isAdmin) {
|
|
11027
11027
|
setHasInitiallyLoaded(true);
|
|
11028
11028
|
return;
|
|
@@ -11037,7 +11037,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
11037
11037
|
try {
|
|
11038
11038
|
const data = {
|
|
11039
11039
|
data: ids.map((id) => ({
|
|
11040
|
-
type:
|
|
11040
|
+
type: _chunkLRXJT656js.Modules.Notification.name,
|
|
11041
11041
|
id,
|
|
11042
11042
|
attributes: {
|
|
11043
11043
|
isRead: true
|
|
@@ -11046,8 +11046,8 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
11046
11046
|
relationships: {}
|
|
11047
11047
|
}))
|
|
11048
11048
|
};
|
|
11049
|
-
await
|
|
11050
|
-
const allNotifications = await
|
|
11049
|
+
await _chunkLRXJT656js.NotificationService.markAsRead({ data });
|
|
11050
|
+
const allNotifications = await _chunkLRXJT656js.NotificationService.findMany({});
|
|
11051
11051
|
setNotifications(allNotifications);
|
|
11052
11052
|
setLastLoaded(Date.now());
|
|
11053
11053
|
} catch (error2) {
|
|
@@ -11345,18 +11345,18 @@ var RoleProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
11345
11345
|
const generateUrl = usePageUrlGenerator();
|
|
11346
11346
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11347
11347
|
const [role, setRole] = _react.useState.call(void 0,
|
|
11348
|
-
dehydratedRole ?
|
|
11348
|
+
dehydratedRole ? _chunkLRXJT656js.rehydrate.call(void 0, _chunkLRXJT656js.Modules.Role, dehydratedRole) : void 0
|
|
11349
11349
|
);
|
|
11350
11350
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
11351
11351
|
const response = [];
|
|
11352
11352
|
response.push({
|
|
11353
11353
|
name: t(`entities.roles`, { count: 2 }),
|
|
11354
|
-
href: generateUrl({ page:
|
|
11354
|
+
href: generateUrl({ page: _chunkLRXJT656js.Modules.Role })
|
|
11355
11355
|
});
|
|
11356
11356
|
if (role)
|
|
11357
11357
|
response.push({
|
|
11358
11358
|
name: role.name,
|
|
11359
|
-
href: generateUrl({ page:
|
|
11359
|
+
href: generateUrl({ page: _chunkLRXJT656js.Modules.Role, id: role.id })
|
|
11360
11360
|
});
|
|
11361
11361
|
return response;
|
|
11362
11362
|
}, "breadcrumb");
|
|
@@ -11475,7 +11475,7 @@ function usePageTracker() {
|
|
|
11475
11475
|
const moduleName = pathParts[0];
|
|
11476
11476
|
const entityId = pathParts.length > 1 ? pathParts[1] : null;
|
|
11477
11477
|
if (!entityId) return;
|
|
11478
|
-
const trackablePages =
|
|
11478
|
+
const trackablePages = _chunkRA4RYKYBjs.getTrackablePages.call(void 0, );
|
|
11479
11479
|
const foundModule = trackablePages.find((mod) => mod.pageUrl === `/${moduleName}`);
|
|
11480
11480
|
if (!foundModule) return;
|
|
11481
11481
|
const baseUrl = `/${moduleName}/${entityId}`;
|
|
@@ -11522,7 +11522,7 @@ function usePushNotifications() {
|
|
|
11522
11522
|
try {
|
|
11523
11523
|
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _321 => _321.id])}`;
|
|
11524
11524
|
const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
|
|
11525
|
-
const registration = await navigator.serviceWorker.register(`${
|
|
11525
|
+
const registration = await navigator.serviceWorker.register(`${_chunkRA4RYKYBjs.getAppUrl.call(void 0, )}/sw.js`);
|
|
11526
11526
|
let permission = Notification.permission;
|
|
11527
11527
|
if (permission === "default") {
|
|
11528
11528
|
permission = await Notification.requestPermission();
|
|
@@ -11547,7 +11547,7 @@ function usePushNotifications() {
|
|
|
11547
11547
|
};
|
|
11548
11548
|
const subscriptionHash = btoa(JSON.stringify(plainSubscription));
|
|
11549
11549
|
if (lastRegisteredSubscription !== subscriptionHash) {
|
|
11550
|
-
await
|
|
11550
|
+
await _chunkLRXJT656js.PushService.register({ data: plainSubscription });
|
|
11551
11551
|
sessionStorage.setItem(sessionKey, subscriptionHash);
|
|
11552
11552
|
}
|
|
11553
11553
|
} catch (error) {
|
|
@@ -11555,7 +11555,7 @@ function usePushNotifications() {
|
|
|
11555
11555
|
}
|
|
11556
11556
|
}
|
|
11557
11557
|
}, "register");
|
|
11558
|
-
if (currentUser && !hasRole(
|
|
11558
|
+
if (currentUser && !hasRole(_chunkRA4RYKYBjs.getRoleId.call(void 0, ).Administrator)) register();
|
|
11559
11559
|
}, [currentUser]);
|
|
11560
11560
|
}
|
|
11561
11561
|
_chunk7QVYU63Ejs.__name.call(void 0, usePushNotifications, "usePushNotifications");
|
|
@@ -11630,7 +11630,7 @@ function useSocket({ token }) {
|
|
|
11630
11630
|
});
|
|
11631
11631
|
}, "handleMessage");
|
|
11632
11632
|
const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
|
|
11633
|
-
const notification =
|
|
11633
|
+
const notification = _chunkLRXJT656js.rehydrate.call(void 0, _chunkLRXJT656js.Modules.Notification, data);
|
|
11634
11634
|
if (notification) {
|
|
11635
11635
|
setSocketNotifications((prev) => {
|
|
11636
11636
|
const newNotifications = [...prev, notification];
|
|
@@ -11706,7 +11706,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, useSocket, "useSocket");
|
|
|
11706
11706
|
|
|
11707
11707
|
// src/components/navigations/Breadcrumb.tsx
|
|
11708
11708
|
|
|
11709
|
-
var ITEMS_TO_DISPLAY =
|
|
11709
|
+
var ITEMS_TO_DISPLAY = 4;
|
|
11710
11710
|
function BreadcrumbNavigation({ items }) {
|
|
11711
11711
|
const generateUrl = usePageUrlGenerator();
|
|
11712
11712
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
@@ -11719,12 +11719,12 @@ function BreadcrumbNavigation({ items }) {
|
|
|
11719
11719
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbSeparator, {}),
|
|
11720
11720
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenu, { open, onOpenChange: setOpen, children: [
|
|
11721
11721
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuTrigger, { className: "flex items-center gap-1", "aria-label": "Toggle menu", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbEllipsis, { className: "h-4 w-4" }) }),
|
|
11722
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuContent, { align: "start", children: items.slice(1, -ITEMS_TO_DISPLAY +
|
|
11722
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuContent, { align: "start", children: items.slice(1, -ITEMS_TO_DISPLAY + 2).map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuItem, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: item.href ? item.href : "#", children: item.name }) }, index)) })
|
|
11723
11723
|
] }) }),
|
|
11724
11724
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbSeparator, {}),
|
|
11725
|
-
items.slice(-ITEMS_TO_DISPLAY +
|
|
11725
|
+
items.slice(-ITEMS_TO_DISPLAY + 2).map((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
11726
11726
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: item.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: item.href, children: item.name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: item.name }) }),
|
|
11727
|
-
index < items.slice(-ITEMS_TO_DISPLAY +
|
|
11727
|
+
index < items.slice(-ITEMS_TO_DISPLAY + 2).length - 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbSeparator, {})
|
|
11728
11728
|
] }, index))
|
|
11729
11729
|
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: items.map((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
11730
11730
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: item.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: item.href, children: item.name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: item.name }) }),
|
|
@@ -11745,12 +11745,12 @@ function ContentTitle({ module, type, element, functions, className, prioritizeF
|
|
|
11745
11745
|
setClientFunctions(functions);
|
|
11746
11746
|
}, [functions]);
|
|
11747
11747
|
if (!element) return null;
|
|
11748
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
11749
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
11748
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkLRXJT656js.cn.call(void 0, `mb-4 flex items-start justify-between gap-x-4 w-full`, className), children: [
|
|
11749
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkLRXJT656js.cn.call(void 0, "flex flex-col", prioritizeFunctions ? "min-w-0 shrink" : "w-full"), children: [
|
|
11750
11750
|
type && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11751
11751
|
"div",
|
|
11752
11752
|
{
|
|
11753
|
-
className:
|
|
11753
|
+
className: _chunkLRXJT656js.cn.call(void 0,
|
|
11754
11754
|
"text-muted-foreground text-xl font-light flex gap-x-2 items-center",
|
|
11755
11755
|
prioritizeFunctions && "shrink-0 whitespace-nowrap"
|
|
11756
11756
|
),
|
|
@@ -11760,9 +11760,9 @@ function ContentTitle({ module, type, element, functions, className, prioritizeF
|
|
|
11760
11760
|
]
|
|
11761
11761
|
}
|
|
11762
11762
|
),
|
|
11763
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11763
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkLRXJT656js.cn.call(void 0, "text-primary text-3xl font-semibold", prioritizeFunctions ? "truncate" : "w-full"), children: element })
|
|
11764
11764
|
] }),
|
|
11765
|
-
isClient && clientFunctions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11765
|
+
isClient && clientFunctions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkLRXJT656js.cn.call(void 0, "flex flex-row items-center justify-start", prioritizeFunctions && "shrink-0"), children: clientFunctions })
|
|
11766
11766
|
] });
|
|
11767
11767
|
}
|
|
11768
11768
|
_chunk7QVYU63Ejs.__name.call(void 0, ContentTitle, "ContentTitle");
|
|
@@ -11872,7 +11872,7 @@ function PageContainer({ children, testId, className }) {
|
|
|
11872
11872
|
const headerChildren = useHeaderChildren();
|
|
11873
11873
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex h-full w-full flex-col`, "data-testid": testId, children: [
|
|
11874
11874
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header, { children: headerChildren }),
|
|
11875
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className:
|
|
11875
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className: _chunkLRXJT656js.cn.call(void 0, `flex w-full flex-1 flex-col gap-y-4 pt-4 pl-4 pr-0`, className), children })
|
|
11876
11876
|
] });
|
|
11877
11877
|
}
|
|
11878
11878
|
_chunk7QVYU63Ejs.__name.call(void 0, PageContainer, "PageContainer");
|
|
@@ -11972,7 +11972,7 @@ function RoundPageContainerTitle({
|
|
|
11972
11972
|
module && module.icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, module.icon, { className: "text-primary h-6 w-6" }),
|
|
11973
11973
|
title.type
|
|
11974
11974
|
] }),
|
|
11975
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11975
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkLRXJT656js.cn.call(void 0, "text-primary w-full text-xl font-semibold"), children: title.element })
|
|
11976
11976
|
] }),
|
|
11977
11977
|
(title.functions || details) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-x-2", children: [
|
|
11978
11978
|
title.functions,
|
|
@@ -12028,7 +12028,7 @@ function RoundPageContainer({
|
|
|
12028
12028
|
}
|
|
12029
12029
|
),
|
|
12030
12030
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full w-full overflow-hidden", children: [
|
|
12031
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
12031
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkLRXJT656js.cn.call(void 0, `grow overflow-y-auto p-4`, fullWidth && `p-0`), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkLRXJT656js.cn.call(void 0, `mx-auto max-w-6xl space-y-12 p-8`, fullWidth && `max-w-full w-full p-0`), children: tabs ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
12032
12032
|
Tabs,
|
|
12033
12033
|
{
|
|
12034
12034
|
value: activeTab,
|
|
@@ -12046,7 +12046,7 @@ function RoundPageContainer({
|
|
|
12046
12046
|
details && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12047
12047
|
"div",
|
|
12048
12048
|
{
|
|
12049
|
-
className:
|
|
12049
|
+
className: _chunkLRXJT656js.cn.call(void 0,
|
|
12050
12050
|
"h-full shrink-0 overflow-hidden overflow-y-auto transition-all duration-300 ease-in-out",
|
|
12051
12051
|
showDetails ? "w-96 border-l p-4 opacity-100" : "ml-0 w-0 border-l-0 p-0 opacity-0"
|
|
12052
12052
|
),
|
|
@@ -12084,7 +12084,7 @@ function TabsContainer({
|
|
|
12084
12084
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12085
12085
|
TabsList,
|
|
12086
12086
|
{
|
|
12087
|
-
className:
|
|
12087
|
+
className: _chunkLRXJT656js.cn.call(void 0,
|
|
12088
12088
|
`${style ? `my-4 flex w-full justify-start rounded-none border-b bg-transparent pb-0` : ``}`,
|
|
12089
12089
|
tabsListClassName
|
|
12090
12090
|
),
|
|
@@ -12092,7 +12092,7 @@ function TabsContainer({
|
|
|
12092
12092
|
TabsTrigger,
|
|
12093
12093
|
{
|
|
12094
12094
|
value: tab.label,
|
|
12095
|
-
className:
|
|
12095
|
+
className: _chunkLRXJT656js.cn.call(void 0,
|
|
12096
12096
|
`${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`}`,
|
|
12097
12097
|
tabsTriggerClassName
|
|
12098
12098
|
),
|
|
@@ -12112,7 +12112,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, TabsContainer, "TabsContainer");
|
|
|
12112
12112
|
// src/components/contents/AttributeElement.tsx
|
|
12113
12113
|
|
|
12114
12114
|
function AttributeElement({ inline, title, value, className }) {
|
|
12115
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
12115
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkLRXJT656js.cn.call(void 0, `flex ${inline === true ? "flex-row" : "flex-col"} my-1 justify-start`, className), children: [
|
|
12116
12116
|
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 }),
|
|
12117
12117
|
value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col text-sm", children: value })
|
|
12118
12118
|
] });
|
|
@@ -12176,7 +12176,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, PageContainerContentDetails, "PageContainer
|
|
|
12176
12176
|
|
|
12177
12177
|
function PageContentContainer({ header, details, footer, content, fullBleed }) {
|
|
12178
12178
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
12179
|
-
const isMobile =
|
|
12179
|
+
const isMobile = _chunkLRXJT656js.useIsMobile.call(void 0, );
|
|
12180
12180
|
_react.useEffect.call(void 0, () => {
|
|
12181
12181
|
setMounted(true);
|
|
12182
12182
|
}, []);
|
|
@@ -12223,13 +12223,13 @@ function PageContentContainer({ header, details, footer, content, fullBleed }) {
|
|
|
12223
12223
|
{
|
|
12224
12224
|
id: "right-panel",
|
|
12225
12225
|
defaultSize: rightPanelDefaultSize,
|
|
12226
|
-
className:
|
|
12227
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
12226
|
+
className: _chunkLRXJT656js.cn.call(void 0, "w-full", isMobile ? "pt-4" : ""),
|
|
12227
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkLRXJT656js.cn.call(void 0, "h-full overflow-x-hidden overflow-y-auto pt-4", fullBleed ? "" : "px-4 pb-20"), children: content })
|
|
12228
12228
|
}
|
|
12229
12229
|
)
|
|
12230
12230
|
]
|
|
12231
12231
|
}
|
|
12232
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
12232
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkLRXJT656js.cn.call(void 0, "h-full overflow-x-hidden overflow-y-auto pt-4", fullBleed ? "" : "px-4 pb-20"), children: content }) })
|
|
12233
12233
|
] });
|
|
12234
12234
|
}
|
|
12235
12235
|
_chunk7QVYU63Ejs.__name.call(void 0, PageContentContainer, "PageContentContainer");
|
|
@@ -12531,14 +12531,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, useJsonApiMutation, "useJsonApiMutation");
|
|
|
12531
12531
|
function useRehydration(classKey, data) {
|
|
12532
12532
|
return _react.useMemo.call(void 0, () => {
|
|
12533
12533
|
if (!data) return null;
|
|
12534
|
-
return
|
|
12534
|
+
return _chunkLRXJT656js.RehydrationFactory.rehydrate(classKey, data);
|
|
12535
12535
|
}, [classKey, data]);
|
|
12536
12536
|
}
|
|
12537
12537
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydration, "useRehydration");
|
|
12538
12538
|
function useRehydrationList(classKey, data) {
|
|
12539
12539
|
return _react.useMemo.call(void 0, () => {
|
|
12540
12540
|
if (!data || data.length === 0) return [];
|
|
12541
|
-
return
|
|
12541
|
+
return _chunkLRXJT656js.RehydrationFactory.rehydrateList(classKey, data);
|
|
12542
12542
|
}, [classKey, data]);
|
|
12543
12543
|
}
|
|
12544
12544
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydrationList, "useRehydrationList");
|
|
@@ -12578,11 +12578,11 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
12578
12578
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12579
12579
|
Link,
|
|
12580
12580
|
{
|
|
12581
|
-
href: hasRole(
|
|
12581
|
+
href: hasRole(_chunkRA4RYKYBjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
12582
12582
|
page: "/administration",
|
|
12583
|
-
id: _optionalChain([
|
|
12583
|
+
id: _optionalChain([_chunkLRXJT656js.Modules, 'access', _356 => _356.Company, 'access', _357 => _357.pageUrl, 'optionalAccess', _358 => _358.substring, 'call', _359 => _359(1)]),
|
|
12584
12584
|
childPage: company.id
|
|
12585
|
-
}) : generateUrl({ page:
|
|
12585
|
+
}) : generateUrl({ page: _chunkLRXJT656js.Modules.Company, id: company.id }),
|
|
12586
12586
|
children: row.getValue("name")
|
|
12587
12587
|
}
|
|
12588
12588
|
);
|
|
@@ -12606,8 +12606,8 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
12606
12606
|
var TRIAL_DAYS = 14;
|
|
12607
12607
|
var GRACE_DAYS = 3;
|
|
12608
12608
|
var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
|
|
12609
|
-
if (!currentUser || !
|
|
12610
|
-
const adminRoleId =
|
|
12609
|
+
if (!currentUser || !_chunkRA4RYKYBjs.isRolesConfigured.call(void 0, )) return false;
|
|
12610
|
+
const adminRoleId = _chunkRA4RYKYBjs.getRoleId.call(void 0, ).Administrator;
|
|
12611
12611
|
return !!_optionalChain([currentUser, 'access', _362 => _362.roles, 'optionalAccess', _363 => _363.some, 'call', _364 => _364((role) => role.id === adminRoleId)]);
|
|
12612
12612
|
}, "isAdministrator");
|
|
12613
12613
|
function useSubscriptionStatus() {
|
|
@@ -12622,7 +12622,7 @@ function useSubscriptionStatus() {
|
|
|
12622
12622
|
isBlocked: false
|
|
12623
12623
|
};
|
|
12624
12624
|
}
|
|
12625
|
-
if (!
|
|
12625
|
+
if (!_chunkRA4RYKYBjs.getStripePublishableKey.call(void 0, )) {
|
|
12626
12626
|
return {
|
|
12627
12627
|
status: "active",
|
|
12628
12628
|
trialEndsAt: null,
|
|
@@ -12706,7 +12706,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
12706
12706
|
header: t(`role.fields.name.label`),
|
|
12707
12707
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
12708
12708
|
const role = row.original.jsonApiData;
|
|
12709
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page:
|
|
12709
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunkLRXJT656js.Modules.Role, id: role.id }), children: row.getValue("name") });
|
|
12710
12710
|
}, "cell"),
|
|
12711
12711
|
enableSorting: false,
|
|
12712
12712
|
enableHiding: false
|
|
@@ -12743,7 +12743,7 @@ var useUserSearch = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
|
12743
12743
|
if (search === searchQueryRef.current && users.length > 0) return;
|
|
12744
12744
|
setIsLoading(true);
|
|
12745
12745
|
searchQueryRef.current = search;
|
|
12746
|
-
const fetchedUsers = await
|
|
12746
|
+
const fetchedUsers = await _chunkLRXJT656js.UserService.findMany({ search, fetchAll: true });
|
|
12747
12747
|
setUsers(fetchedUsers);
|
|
12748
12748
|
} catch (error) {
|
|
12749
12749
|
console.error("Failed to load users:", error);
|
|
@@ -12809,8 +12809,8 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
12809
12809
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
12810
12810
|
Link,
|
|
12811
12811
|
{
|
|
12812
|
-
href: generateUrl({ page:
|
|
12813
|
-
className:
|
|
12812
|
+
href: generateUrl({ page: _chunkLRXJT656js.Modules.User, id: user.id }),
|
|
12813
|
+
className: _chunkLRXJT656js.cn.call(void 0,
|
|
12814
12814
|
`flex items-center justify-start gap-2`,
|
|
12815
12815
|
user.isDeleted || !user.isActivated ? "text-muted-foreground italic" : ""
|
|
12816
12816
|
),
|
|
@@ -12904,11 +12904,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
12904
12904
|
header: t(`content.fields.name.label`),
|
|
12905
12905
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
12906
12906
|
const content = row.original.jsonApiData;
|
|
12907
|
-
const contentModule = content.contentType ?
|
|
12907
|
+
const contentModule = content.contentType ? _chunkLRXJT656js.Modules.findByModelName(content.contentType) : void 0;
|
|
12908
12908
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
12909
12909
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
|
|
12910
12910
|
/* @__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: [
|
|
12911
|
-
contentModule &&
|
|
12911
|
+
contentModule && _chunkLRXJT656js.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
12912
12912
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: link, children: content.name })
|
|
12913
12913
|
] }) }),
|
|
12914
12914
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: content.tldr })
|
|
@@ -13045,7 +13045,7 @@ function useOAuthClients() {
|
|
|
13045
13045
|
setIsLoading(true);
|
|
13046
13046
|
setError(null);
|
|
13047
13047
|
try {
|
|
13048
|
-
const fetchedClients = await
|
|
13048
|
+
const fetchedClients = await _chunkLRXJT656js.OAuthService.listClients();
|
|
13049
13049
|
setClients(fetchedClients);
|
|
13050
13050
|
} catch (err) {
|
|
13051
13051
|
console.error("[useOAuthClients] Failed to fetch clients:", err);
|
|
@@ -13062,7 +13062,7 @@ function useOAuthClients() {
|
|
|
13062
13062
|
setIsLoading(true);
|
|
13063
13063
|
setError(null);
|
|
13064
13064
|
try {
|
|
13065
|
-
const result = await
|
|
13065
|
+
const result = await _chunkLRXJT656js.OAuthService.createClient(data);
|
|
13066
13066
|
addClient(result.client);
|
|
13067
13067
|
if (result.clientSecret) {
|
|
13068
13068
|
setNewClientSecret({
|
|
@@ -13109,7 +13109,7 @@ function useOAuthClient(clientId) {
|
|
|
13109
13109
|
setIsLoading(true);
|
|
13110
13110
|
setError(null);
|
|
13111
13111
|
try {
|
|
13112
|
-
const fetched = await
|
|
13112
|
+
const fetched = await _chunkLRXJT656js.OAuthService.getClient({ clientId });
|
|
13113
13113
|
setFetchedClient(fetched);
|
|
13114
13114
|
} catch (err) {
|
|
13115
13115
|
console.error("[useOAuthClient] Failed to fetch client:", err);
|
|
@@ -13129,7 +13129,7 @@ function useOAuthClient(clientId) {
|
|
|
13129
13129
|
setIsLoading(true);
|
|
13130
13130
|
setError(null);
|
|
13131
13131
|
try {
|
|
13132
|
-
const updated = await
|
|
13132
|
+
const updated = await _chunkLRXJT656js.OAuthService.updateClient({ clientId, data });
|
|
13133
13133
|
updateClientInStore(updated);
|
|
13134
13134
|
setFetchedClient(updated);
|
|
13135
13135
|
} catch (err) {
|
|
@@ -13148,7 +13148,7 @@ function useOAuthClient(clientId) {
|
|
|
13148
13148
|
setIsLoading(true);
|
|
13149
13149
|
setError(null);
|
|
13150
13150
|
try {
|
|
13151
|
-
await
|
|
13151
|
+
await _chunkLRXJT656js.OAuthService.deleteClient({ clientId });
|
|
13152
13152
|
removeClientFromStore(clientId);
|
|
13153
13153
|
} catch (err) {
|
|
13154
13154
|
console.error("[useOAuthClient] Failed to delete client:", err);
|
|
@@ -13164,7 +13164,7 @@ function useOAuthClient(clientId) {
|
|
|
13164
13164
|
setIsLoading(true);
|
|
13165
13165
|
setError(null);
|
|
13166
13166
|
try {
|
|
13167
|
-
const result = await
|
|
13167
|
+
const result = await _chunkLRXJT656js.OAuthService.regenerateSecret({ clientId });
|
|
13168
13168
|
setNewClientSecret({
|
|
13169
13169
|
clientId,
|
|
13170
13170
|
secret: result.clientSecret
|
|
@@ -13208,7 +13208,7 @@ function useOAuthConsent(params) {
|
|
|
13208
13208
|
setIsLoading(true);
|
|
13209
13209
|
setError(null);
|
|
13210
13210
|
try {
|
|
13211
|
-
const info = await
|
|
13211
|
+
const info = await _chunkLRXJT656js.OAuthService.getAuthorizationInfo(params);
|
|
13212
13212
|
setClientInfo(info);
|
|
13213
13213
|
} catch (err) {
|
|
13214
13214
|
console.error("[useOAuthConsent] Failed to fetch authorization info:", err);
|
|
@@ -13230,7 +13230,7 @@ function useOAuthConsent(params) {
|
|
|
13230
13230
|
setIsSubmitting(true);
|
|
13231
13231
|
setError(null);
|
|
13232
13232
|
try {
|
|
13233
|
-
const result = await
|
|
13233
|
+
const result = await _chunkLRXJT656js.OAuthService.approveAuthorization(params);
|
|
13234
13234
|
if (result.redirectUrl) {
|
|
13235
13235
|
window.location.href = result.redirectUrl;
|
|
13236
13236
|
}
|
|
@@ -13244,7 +13244,7 @@ function useOAuthConsent(params) {
|
|
|
13244
13244
|
setIsSubmitting(true);
|
|
13245
13245
|
setError(null);
|
|
13246
13246
|
try {
|
|
13247
|
-
const result = await
|
|
13247
|
+
const result = await _chunkLRXJT656js.OAuthService.denyAuthorization(params);
|
|
13248
13248
|
if (result.redirectUrl) {
|
|
13249
13249
|
window.location.href = result.redirectUrl;
|
|
13250
13250
|
}
|
|
@@ -13337,7 +13337,7 @@ function rbacReducer(state, action) {
|
|
|
13337
13337
|
const current = _nullishCoalesce(existing, () => ( (originalMapping ? { ...originalMapping.permissions } : {})));
|
|
13338
13338
|
const updated = { ...current };
|
|
13339
13339
|
delete updated[action.actionType];
|
|
13340
|
-
const hasAnyPermission =
|
|
13340
|
+
const hasAnyPermission = _chunkRA4RYKYBjs.ACTION_TYPES.some((at) => updated[at] !== void 0);
|
|
13341
13341
|
newMap.set(key, hasAnyPermission ? updated : null);
|
|
13342
13342
|
return { ...state, rolePermissions: newMap };
|
|
13343
13343
|
}
|
|
@@ -13388,7 +13388,7 @@ function useRbacState() {
|
|
|
13388
13388
|
dispatch({ type: "CLEAR_ALL_ROLE_PERMISSIONS", roleId, moduleId });
|
|
13389
13389
|
}, []);
|
|
13390
13390
|
const resetModulePermissions = _react.useCallback.call(void 0, (moduleId, roles) => {
|
|
13391
|
-
for (const actionType of
|
|
13391
|
+
for (const actionType of _chunkRA4RYKYBjs.ACTION_TYPES) {
|
|
13392
13392
|
dispatch({ type: "SET_MODULE_DEFAULT_PERMISSION", moduleId, actionType, value: true });
|
|
13393
13393
|
}
|
|
13394
13394
|
for (const role of roles) {
|
|
@@ -13507,7 +13507,7 @@ function formatPermissionValue(value) {
|
|
|
13507
13507
|
_chunk7QVYU63Ejs.__name.call(void 0, formatPermissionValue, "formatPermissionValue");
|
|
13508
13508
|
function formatPermissionsFromMap(perms) {
|
|
13509
13509
|
const entries = [];
|
|
13510
|
-
for (const actionType of
|
|
13510
|
+
for (const actionType of _chunkRA4RYKYBjs.ACTION_TYPES) {
|
|
13511
13511
|
const value = perms[actionType];
|
|
13512
13512
|
if (value !== void 0) {
|
|
13513
13513
|
entries.push(`{ type: ${ACTION_ENUM_MAP[actionType]}, value: ${formatPermissionValue(value)} }`);
|
|
@@ -13590,12 +13590,12 @@ function generateMigrationFile(params) {
|
|
|
13590
13590
|
const allTruePermissions = { read: true, create: true, update: true, delete: true };
|
|
13591
13591
|
const permsByRole = /* @__PURE__ */ new Map();
|
|
13592
13592
|
permsByRole.set(
|
|
13593
|
-
|
|
13593
|
+
_chunkRA4RYKYBjs.COMPANY_ADMINISTRATOR_ROLE_ID,
|
|
13594
13594
|
allModuleIds.map((moduleId) => ({ moduleId, permissions: allTruePermissions }))
|
|
13595
13595
|
);
|
|
13596
13596
|
for (const [key, perms] of rolePermissionsMap) {
|
|
13597
13597
|
const [roleId, moduleId] = key.split(":");
|
|
13598
|
-
if (roleId ===
|
|
13598
|
+
if (roleId === _chunkRA4RYKYBjs.COMPANY_ADMINISTRATOR_ROLE_ID) continue;
|
|
13599
13599
|
if (!permsByRole.has(roleId)) permsByRole.set(roleId, []);
|
|
13600
13600
|
permsByRole.get(roleId).push({ moduleId, permissions: perms });
|
|
13601
13601
|
}
|
|
@@ -13778,7 +13778,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
13778
13778
|
});
|
|
13779
13779
|
const rowModel = tableData ? table.getRowModel() : null;
|
|
13780
13780
|
const showFooter = !!(data.next || data.previous);
|
|
13781
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
13781
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkLRXJT656js.cn.call(void 0, `overflow-clip`, fullWidth ? `` : `rounded-md border`), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Table, { children: [
|
|
13782
13782
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableHeader, { className: "bg-muted font-semibold", children: [
|
|
13783
13783
|
props.title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13784
13784
|
TableHead,
|
|
@@ -13789,7 +13789,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
13789
13789
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13790
13790
|
"div",
|
|
13791
13791
|
{
|
|
13792
|
-
className:
|
|
13792
|
+
className: _chunkLRXJT656js.cn.call(void 0,
|
|
13793
13793
|
"text-muted-foreground flex items-center gap-x-2 font-light whitespace-nowrap",
|
|
13794
13794
|
fullWidth ? `text-lg` : `text-sm`
|
|
13795
13795
|
),
|
|
@@ -13797,7 +13797,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
13797
13797
|
props.tableGeneratorType.icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13798
13798
|
props.tableGeneratorType.icon,
|
|
13799
13799
|
{
|
|
13800
|
-
className:
|
|
13800
|
+
className: _chunkLRXJT656js.cn.call(void 0, `text-primary`, fullWidth ? `h-6 w-6` : `h-4 w-4`)
|
|
13801
13801
|
}
|
|
13802
13802
|
),
|
|
13803
13803
|
props.title
|
|
@@ -13935,7 +13935,7 @@ function Register() {
|
|
|
13935
13935
|
const { setComponentType } = useAuthContext();
|
|
13936
13936
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
13937
13937
|
const inviteCode = searchParams.get("invite");
|
|
13938
|
-
const registrationMode =
|
|
13938
|
+
const registrationMode = _chunkRA4RYKYBjs.getRegistrationMode.call(void 0, );
|
|
13939
13939
|
const [showConfirmation, setShowConfirmation] = _react.useState.call(void 0, false);
|
|
13940
13940
|
const [inviteValidated, setInviteValidated] = _react.useState.call(void 0, false);
|
|
13941
13941
|
const [inviteError, setInviteError] = _react.useState.call(void 0, "");
|
|
@@ -13983,7 +13983,7 @@ function Register() {
|
|
|
13983
13983
|
}
|
|
13984
13984
|
setIsValidatingInvite(true);
|
|
13985
13985
|
try {
|
|
13986
|
-
const result = await
|
|
13986
|
+
const result = await _chunkLRXJT656js.WaitlistService.validateInvite(inviteCode);
|
|
13987
13987
|
if (result && result.valid) {
|
|
13988
13988
|
setInviteValidated(true);
|
|
13989
13989
|
form.setValue("email", result.email);
|
|
@@ -14014,7 +14014,7 @@ function Register() {
|
|
|
14014
14014
|
inviteCode: _nullishCoalesce(inviteCode, () => ( void 0)),
|
|
14015
14015
|
referralCode: _nullishCoalesce(referralCode, () => ( void 0))
|
|
14016
14016
|
};
|
|
14017
|
-
await
|
|
14017
|
+
await _chunkLRXJT656js.AuthService.register(payload);
|
|
14018
14018
|
clearReferralCode();
|
|
14019
14019
|
setShowConfirmation(true);
|
|
14020
14020
|
} catch (e) {
|
|
@@ -14112,16 +14112,16 @@ function Register() {
|
|
|
14112
14112
|
),
|
|
14113
14113
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, GdprConsentSection, { form }),
|
|
14114
14114
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "mt-4 w-full", type: "submit", children: t(`auth.buttons.register`) }),
|
|
14115
|
-
(registrationMode !== "waitlist" || inviteValidated) && (
|
|
14115
|
+
(registrationMode !== "waitlist" || inviteValidated) && (_chunkRA4RYKYBjs.isGoogleAuthEnabled.call(void 0, ) || _chunkRA4RYKYBjs.isDiscordAuthEnabled.call(void 0, )) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4 pt-4", children: [
|
|
14116
14116
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
14117
14117
|
/* @__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" }) }),
|
|
14118
14118
|
/* @__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") }) })
|
|
14119
14119
|
] }),
|
|
14120
14120
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
14121
|
-
|
|
14121
|
+
_chunkRA4RYKYBjs.isGoogleAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14122
14122
|
Link,
|
|
14123
14123
|
{
|
|
14124
|
-
href: `${
|
|
14124
|
+
href: `${_chunkRA4RYKYBjs.getApiUrl.call(void 0, )}auth/google${buildOAuthQueryParams(inviteCode, referralCode)}`,
|
|
14125
14125
|
className: "flex w-full",
|
|
14126
14126
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14127
14127
|
Button,
|
|
@@ -14166,10 +14166,10 @@ function Register() {
|
|
|
14166
14166
|
)
|
|
14167
14167
|
}
|
|
14168
14168
|
),
|
|
14169
|
-
|
|
14169
|
+
_chunkRA4RYKYBjs.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14170
14170
|
Link,
|
|
14171
14171
|
{
|
|
14172
|
-
href: `${
|
|
14172
|
+
href: `${_chunkRA4RYKYBjs.getApiUrl.call(void 0, )}auth/discord${buildOAuthQueryParams(inviteCode, referralCode)}`,
|
|
14173
14173
|
className: "flex w-full",
|
|
14174
14174
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Button, { className: "w-full", variant: "outline", type: "button", children: [
|
|
14175
14175
|
/* @__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" }) }),
|
|
@@ -14294,7 +14294,7 @@ function BackupCodesDialog({ remainingCodes, onRegenerate, trigger }) {
|
|
|
14294
14294
|
const handleGenerate = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
14295
14295
|
setIsLoading(true);
|
|
14296
14296
|
try {
|
|
14297
|
-
const newCodes = await
|
|
14297
|
+
const newCodes = await _chunkLRXJT656js.TwoFactorService.generateBackupCodes();
|
|
14298
14298
|
setCodes(newCodes);
|
|
14299
14299
|
setShowCodes(true);
|
|
14300
14300
|
onRegenerate();
|
|
@@ -14307,7 +14307,7 @@ function BackupCodesDialog({ remainingCodes, onRegenerate, trigger }) {
|
|
|
14307
14307
|
const handleCopyAll = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
14308
14308
|
const text = codes.join("\n");
|
|
14309
14309
|
await navigator.clipboard.writeText(text);
|
|
14310
|
-
|
|
14310
|
+
_chunkLRXJT656js.showToast.call(void 0, t("auth.two_factor.codes_copied"));
|
|
14311
14311
|
}, "handleCopyAll");
|
|
14312
14312
|
const handleDownload = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
14313
14313
|
const text = `Backup Codes
|
|
@@ -14462,8 +14462,8 @@ function DisableTwoFactorDialog({ onSuccess, trigger }) {
|
|
|
14462
14462
|
setIsLoading(true);
|
|
14463
14463
|
setError(void 0);
|
|
14464
14464
|
try {
|
|
14465
|
-
await
|
|
14466
|
-
|
|
14465
|
+
await _chunkLRXJT656js.TwoFactorService.disable({ code });
|
|
14466
|
+
_chunkLRXJT656js.showToast.call(void 0, t("auth.two_factor.disabled_success"));
|
|
14467
14467
|
setOpen(false);
|
|
14468
14468
|
onSuccess();
|
|
14469
14469
|
} catch (err) {
|
|
@@ -14509,8 +14509,8 @@ function PasskeyList({ passkeys, onRefresh }) {
|
|
|
14509
14509
|
const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (passkey) => {
|
|
14510
14510
|
setIsLoading(true);
|
|
14511
14511
|
try {
|
|
14512
|
-
await
|
|
14513
|
-
|
|
14512
|
+
await _chunkLRXJT656js.TwoFactorService.deletePasskey({ id: passkey.id });
|
|
14513
|
+
_chunkLRXJT656js.showToast.call(void 0, t("common.success"), {
|
|
14514
14514
|
description: t("auth.two_factor.passkey_deleted")
|
|
14515
14515
|
});
|
|
14516
14516
|
onRefresh();
|
|
@@ -14527,11 +14527,11 @@ function PasskeyList({ passkeys, onRefresh }) {
|
|
|
14527
14527
|
if (!selectedPasskey || !newName.trim()) return;
|
|
14528
14528
|
setIsLoading(true);
|
|
14529
14529
|
try {
|
|
14530
|
-
await
|
|
14530
|
+
await _chunkLRXJT656js.TwoFactorService.renamePasskey({
|
|
14531
14531
|
id: selectedPasskey.id,
|
|
14532
14532
|
name: newName.trim()
|
|
14533
14533
|
});
|
|
14534
|
-
|
|
14534
|
+
_chunkLRXJT656js.showToast.call(void 0, t("common.success"), {
|
|
14535
14535
|
description: t("auth.two_factor.passkey_renamed")
|
|
14536
14536
|
});
|
|
14537
14537
|
setRenameDialogOpen(false);
|
|
@@ -14631,23 +14631,23 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
|
|
|
14631
14631
|
if (!name.trim()) return;
|
|
14632
14632
|
setIsLoading(true);
|
|
14633
14633
|
try {
|
|
14634
|
-
const registrationData = await
|
|
14634
|
+
const registrationData = await _chunkLRXJT656js.TwoFactorService.getPasskeyRegistrationOptions({
|
|
14635
14635
|
id: _uuid.v4.call(void 0, ),
|
|
14636
14636
|
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _414 => _414.email]), () => ( "")),
|
|
14637
14637
|
userDisplayName: _optionalChain([currentUser, 'optionalAccess', _415 => _415.name])
|
|
14638
14638
|
});
|
|
14639
14639
|
const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
|
|
14640
|
-
await
|
|
14640
|
+
await _chunkLRXJT656js.TwoFactorService.verifyPasskeyRegistration({
|
|
14641
14641
|
id: _uuid.v4.call(void 0, ),
|
|
14642
14642
|
pendingId: registrationData.pendingId,
|
|
14643
14643
|
name: name.trim(),
|
|
14644
14644
|
response: credential
|
|
14645
14645
|
});
|
|
14646
|
-
const status = await
|
|
14646
|
+
const status = await _chunkLRXJT656js.TwoFactorService.getStatus();
|
|
14647
14647
|
if (!status.isEnabled) {
|
|
14648
|
-
await
|
|
14648
|
+
await _chunkLRXJT656js.TwoFactorService.enable({ id: _uuid.v4.call(void 0, ), preferredMethod: "passkey" });
|
|
14649
14649
|
}
|
|
14650
|
-
|
|
14650
|
+
_chunkLRXJT656js.showToast.call(void 0, t("common.success"), {
|
|
14651
14651
|
description: t("auth.two_factor.passkey_registered")
|
|
14652
14652
|
});
|
|
14653
14653
|
setName("");
|
|
@@ -14698,8 +14698,8 @@ function TotpAuthenticatorList({ authenticators, onDelete }) {
|
|
|
14698
14698
|
const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (id) => {
|
|
14699
14699
|
setDeletingId(id);
|
|
14700
14700
|
try {
|
|
14701
|
-
await
|
|
14702
|
-
|
|
14701
|
+
await _chunkLRXJT656js.TwoFactorService.deleteTotpAuthenticator({ id });
|
|
14702
|
+
_chunkLRXJT656js.showToast.call(void 0, t("common.success"), {
|
|
14703
14703
|
description: t("auth.two_factor.authenticator_removed")
|
|
14704
14704
|
});
|
|
14705
14705
|
onDelete();
|
|
@@ -14782,7 +14782,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
14782
14782
|
if (!name.trim()) return;
|
|
14783
14783
|
setIsLoading(true);
|
|
14784
14784
|
try {
|
|
14785
|
-
const setup = await
|
|
14785
|
+
const setup = await _chunkLRXJT656js.TwoFactorService.setupTotp({
|
|
14786
14786
|
id: _uuid.v4.call(void 0, ),
|
|
14787
14787
|
name: name.trim(),
|
|
14788
14788
|
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _416 => _416.email]), () => ( ""))
|
|
@@ -14800,16 +14800,16 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
14800
14800
|
setIsLoading(true);
|
|
14801
14801
|
setVerifyError(void 0);
|
|
14802
14802
|
try {
|
|
14803
|
-
await
|
|
14803
|
+
await _chunkLRXJT656js.TwoFactorService.verifyTotpSetup({
|
|
14804
14804
|
id: _uuid.v4.call(void 0, ),
|
|
14805
14805
|
authenticatorId,
|
|
14806
14806
|
code
|
|
14807
14807
|
});
|
|
14808
|
-
const status = await
|
|
14808
|
+
const status = await _chunkLRXJT656js.TwoFactorService.getStatus();
|
|
14809
14809
|
if (!status.isEnabled) {
|
|
14810
|
-
await
|
|
14810
|
+
await _chunkLRXJT656js.TwoFactorService.enable({ id: _uuid.v4.call(void 0, ), preferredMethod: "totp" });
|
|
14811
14811
|
}
|
|
14812
|
-
|
|
14812
|
+
_chunkLRXJT656js.showToast.call(void 0, t("common.success"), {
|
|
14813
14813
|
description: t("auth.two_factor.authenticator_added")
|
|
14814
14814
|
});
|
|
14815
14815
|
setOpen(false);
|
|
@@ -14884,9 +14884,9 @@ function TwoFactorSettings() {
|
|
|
14884
14884
|
const loadStatus = _react.useCallback.call(void 0, async () => {
|
|
14885
14885
|
try {
|
|
14886
14886
|
const [statusData, authenticatorsList, passkeysList] = await Promise.all([
|
|
14887
|
-
|
|
14888
|
-
|
|
14889
|
-
|
|
14887
|
+
_chunkLRXJT656js.TwoFactorService.getStatus(),
|
|
14888
|
+
_chunkLRXJT656js.TwoFactorService.listTotpAuthenticators(),
|
|
14889
|
+
_chunkLRXJT656js.TwoFactorService.listPasskeys()
|
|
14890
14890
|
]);
|
|
14891
14891
|
setStatus(statusData);
|
|
14892
14892
|
setAuthenticators(authenticatorsList);
|
|
@@ -14907,8 +14907,8 @@ function TwoFactorSettings() {
|
|
|
14907
14907
|
setIsEnabling(true);
|
|
14908
14908
|
try {
|
|
14909
14909
|
const preferredMethod = authenticators.length > 0 ? "totp" : "passkey";
|
|
14910
|
-
await
|
|
14911
|
-
|
|
14910
|
+
await _chunkLRXJT656js.TwoFactorService.enable({ id: _uuid.v4.call(void 0, ), preferredMethod });
|
|
14911
|
+
_chunkLRXJT656js.showToast.call(void 0, t("common.success"), { description: t("auth.two_factor.enabled_success") });
|
|
14912
14912
|
await loadStatus();
|
|
14913
14913
|
} catch (error) {
|
|
14914
14914
|
errorToast({ title: t("common.errors.error"), error });
|
|
@@ -14998,11 +14998,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, SecurityContainer, "SecurityContainer");
|
|
|
14998
14998
|
// src/features/auth/components/buttons/GoogleSignInButton.tsx
|
|
14999
14999
|
|
|
15000
15000
|
function GoogleSignInButton({ referralCode }) {
|
|
15001
|
-
if (!
|
|
15001
|
+
if (!_chunkRA4RYKYBjs.isGoogleAuthEnabled.call(void 0, )) {
|
|
15002
15002
|
return null;
|
|
15003
15003
|
}
|
|
15004
15004
|
const buildGoogleOAuthUrl = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
15005
|
-
const baseUrl = `${
|
|
15005
|
+
const baseUrl = `${_chunkRA4RYKYBjs.getApiUrl.call(void 0, )}auth/google`;
|
|
15006
15006
|
if (!referralCode) return baseUrl;
|
|
15007
15007
|
return `${baseUrl}?referral=${encodeURIComponent(referralCode)}`;
|
|
15008
15008
|
}, "buildGoogleOAuthUrl");
|
|
@@ -15064,8 +15064,8 @@ function LandingComponent() {
|
|
|
15064
15064
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { className: "flex w-full justify-center text-center text-sm", children: t(`common.description`) })
|
|
15065
15065
|
] }),
|
|
15066
15066
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardFooter, { className: "mt-4 flex w-full flex-col justify-between gap-y-4", children: [
|
|
15067
|
-
|
|
15068
|
-
|
|
15067
|
+
_chunkRA4RYKYBjs.isInternalAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
15068
|
+
_chunkRA4RYKYBjs.isRegistrationAllowed.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15069
15069
|
Link,
|
|
15070
15070
|
{
|
|
15071
15071
|
href: "#",
|
|
@@ -15076,8 +15076,8 @@ function LandingComponent() {
|
|
|
15076
15076
|
),
|
|
15077
15077
|
/* @__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`) }) })
|
|
15078
15078
|
] }),
|
|
15079
|
-
|
|
15080
|
-
|
|
15079
|
+
_chunkRA4RYKYBjs.isGoogleAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GoogleSignInButton, {}),
|
|
15080
|
+
_chunkRA4RYKYBjs.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: `${_chunkRA4RYKYBjs.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" }) })
|
|
15081
15081
|
] })
|
|
15082
15082
|
] });
|
|
15083
15083
|
}
|
|
@@ -15102,7 +15102,7 @@ function AcceptInvitation() {
|
|
|
15102
15102
|
const payload = {
|
|
15103
15103
|
code
|
|
15104
15104
|
};
|
|
15105
|
-
await
|
|
15105
|
+
await _chunkLRXJT656js.AuthService.validateCode(payload);
|
|
15106
15106
|
} catch (e) {
|
|
15107
15107
|
setError(e instanceof Error ? e.message : String(e));
|
|
15108
15108
|
errorToast({ title: t(`common.errors.error`), error: e });
|
|
@@ -15140,9 +15140,9 @@ function AcceptInvitation() {
|
|
|
15140
15140
|
code: _optionalChain([params, 'optionalAccess', _420 => _420.code]),
|
|
15141
15141
|
password: values.password
|
|
15142
15142
|
};
|
|
15143
|
-
await
|
|
15143
|
+
await _chunkLRXJT656js.AuthService.acceptInvitation(payload);
|
|
15144
15144
|
setShowConfirmation(true);
|
|
15145
|
-
|
|
15145
|
+
_chunkLRXJT656js.showToast.call(void 0, t("auth.account_activated"), {
|
|
15146
15146
|
description: t("auth.account_activated_description")
|
|
15147
15147
|
});
|
|
15148
15148
|
setTimeout(() => {
|
|
@@ -15202,10 +15202,10 @@ function ActivateAccount() {
|
|
|
15202
15202
|
const payload = {
|
|
15203
15203
|
activationCode: code
|
|
15204
15204
|
};
|
|
15205
|
-
await
|
|
15205
|
+
await _chunkLRXJT656js.AuthService.activate(payload);
|
|
15206
15206
|
setShowConfirmation(true);
|
|
15207
15207
|
setParams(void 0);
|
|
15208
|
-
|
|
15208
|
+
_chunkLRXJT656js.showToast.call(void 0, t("auth.account_activated"), {
|
|
15209
15209
|
description: t("auth.account_activated_description")
|
|
15210
15210
|
});
|
|
15211
15211
|
setTimeout(() => {
|
|
@@ -15240,13 +15240,13 @@ _chunk7QVYU63Ejs.__name.call(void 0, ActivateAccount, "ActivateAccount");
|
|
|
15240
15240
|
|
|
15241
15241
|
function Cookies({ dehydratedAuth, page }) {
|
|
15242
15242
|
const { setUser } = useCurrentUserContext();
|
|
15243
|
-
const router =
|
|
15243
|
+
const router = _chunkRA4RYKYBjs.useI18nRouter.call(void 0, );
|
|
15244
15244
|
const [hasSaved, setHasSaved] = _react.useState.call(void 0, false);
|
|
15245
15245
|
_react.useEffect.call(void 0, () => {
|
|
15246
15246
|
if (hasSaved) return;
|
|
15247
15247
|
async function saveTokenOnServer() {
|
|
15248
|
-
await
|
|
15249
|
-
const auth =
|
|
15248
|
+
await _chunkLRXJT656js.AuthService.saveToken({ dehydratedAuth });
|
|
15249
|
+
const auth = _chunkLRXJT656js.rehydrate.call(void 0, _chunkLRXJT656js.Modules.Auth, dehydratedAuth);
|
|
15250
15250
|
setUser(auth.user);
|
|
15251
15251
|
setHasSaved(true);
|
|
15252
15252
|
if (page) {
|
|
@@ -15289,7 +15289,7 @@ function ForgotPassword() {
|
|
|
15289
15289
|
const payload = {
|
|
15290
15290
|
email: values.email
|
|
15291
15291
|
};
|
|
15292
|
-
await
|
|
15292
|
+
await _chunkLRXJT656js.AuthService.initialiseForgotPassword(payload);
|
|
15293
15293
|
setShowConfirmation(true);
|
|
15294
15294
|
} catch (e) {
|
|
15295
15295
|
errorToast({ error: e });
|
|
@@ -15346,7 +15346,7 @@ function Login() {
|
|
|
15346
15346
|
const { setUser } = useCurrentUserContext();
|
|
15347
15347
|
const { setComponentType, setPendingTwoFactor } = useAuthContext();
|
|
15348
15348
|
const generateUrl = usePageUrlGenerator();
|
|
15349
|
-
const i18nRouter =
|
|
15349
|
+
const i18nRouter = _chunkRA4RYKYBjs.useI18nRouter.call(void 0, );
|
|
15350
15350
|
const nativeRouter = _navigation.useRouter.call(void 0, );
|
|
15351
15351
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
15352
15352
|
const callbackUrl = searchParams.get("callbackUrl");
|
|
@@ -15362,7 +15362,7 @@ function Login() {
|
|
|
15362
15362
|
}
|
|
15363
15363
|
}, []);
|
|
15364
15364
|
const buildDiscordOAuthUrl = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
15365
|
-
const baseUrl = `${
|
|
15365
|
+
const baseUrl = `${_chunkRA4RYKYBjs.getApiUrl.call(void 0, )}auth/discord`;
|
|
15366
15366
|
if (!referralCode) return baseUrl;
|
|
15367
15367
|
return `${baseUrl}?referral=${encodeURIComponent(referralCode)}`;
|
|
15368
15368
|
}, "buildDiscordOAuthUrl");
|
|
@@ -15381,7 +15381,7 @@ function Login() {
|
|
|
15381
15381
|
});
|
|
15382
15382
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
15383
15383
|
try {
|
|
15384
|
-
const response = await
|
|
15384
|
+
const response = await _chunkLRXJT656js.AuthService.login({
|
|
15385
15385
|
email: values.email,
|
|
15386
15386
|
password: values.password
|
|
15387
15387
|
});
|
|
@@ -15415,7 +15415,7 @@ function Login() {
|
|
|
15415
15415
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { className: "text-sm", children: t(`auth.login_description`) })
|
|
15416
15416
|
] }),
|
|
15417
15417
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), children: [
|
|
15418
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { children:
|
|
15418
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { children: _chunkRA4RYKYBjs.isInternalAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
15419
15419
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15420
15420
|
FormInput,
|
|
15421
15421
|
{
|
|
@@ -15440,8 +15440,8 @@ function Login() {
|
|
|
15440
15440
|
/* @__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`) })
|
|
15441
15441
|
] }) }),
|
|
15442
15442
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardFooter, { className: "flex w-full flex-col gap-y-4 mt-4", children: [
|
|
15443
|
-
|
|
15444
|
-
|
|
15443
|
+
_chunkRA4RYKYBjs.isGoogleAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GoogleSignInButton, { referralCode }),
|
|
15444
|
+
_chunkRA4RYKYBjs.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" }) }),
|
|
15445
15445
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row justify-between", children: [
|
|
15446
15446
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15447
15447
|
Link,
|
|
@@ -15490,7 +15490,7 @@ function Logout({ storageKeys }) {
|
|
|
15490
15490
|
if (_optionalChain([storageKeys, 'optionalAccess', _421 => _421.length])) {
|
|
15491
15491
|
clearClientStorage(storageKeys);
|
|
15492
15492
|
}
|
|
15493
|
-
await
|
|
15493
|
+
await _chunkLRXJT656js.AuthService.logout();
|
|
15494
15494
|
window.location.href = generateUrl({ page: `/` });
|
|
15495
15495
|
}, "logOut");
|
|
15496
15496
|
logOut();
|
|
@@ -15505,7 +15505,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, Logout, "Logout");
|
|
|
15505
15505
|
function RefreshUser() {
|
|
15506
15506
|
const { setUser } = useCurrentUserContext();
|
|
15507
15507
|
const loadFullUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
15508
|
-
const fullUser = await
|
|
15508
|
+
const fullUser = await _chunkLRXJT656js.UserService.findFullUser();
|
|
15509
15509
|
if (fullUser) {
|
|
15510
15510
|
setUser(fullUser);
|
|
15511
15511
|
const token = {
|
|
@@ -15517,7 +15517,7 @@ function RefreshUser() {
|
|
|
15517
15517
|
return { id: module.id, permissions: module.permissions };
|
|
15518
15518
|
})
|
|
15519
15519
|
};
|
|
15520
|
-
await _optionalChain([
|
|
15520
|
+
await _optionalChain([_chunkLRXJT656js.getTokenHandler.call(void 0, ), 'optionalAccess', _428 => _428.updateToken, 'call', _429 => _429(token)]);
|
|
15521
15521
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
15522
15522
|
}
|
|
15523
15523
|
}, "loadFullUser");
|
|
@@ -15548,7 +15548,7 @@ function ResetPassword() {
|
|
|
15548
15548
|
const payload = {
|
|
15549
15549
|
code
|
|
15550
15550
|
};
|
|
15551
|
-
await
|
|
15551
|
+
await _chunkLRXJT656js.AuthService.validateCode(payload);
|
|
15552
15552
|
} catch (e) {
|
|
15553
15553
|
setError(e instanceof Error ? e.message : String(e));
|
|
15554
15554
|
errorToast({ title: t(`common.errors.error`), error: e });
|
|
@@ -15586,9 +15586,9 @@ function ResetPassword() {
|
|
|
15586
15586
|
code: _optionalChain([params, 'optionalAccess', _431 => _431.code]),
|
|
15587
15587
|
password: values.password
|
|
15588
15588
|
};
|
|
15589
|
-
await
|
|
15589
|
+
await _chunkLRXJT656js.AuthService.resetPassword(payload);
|
|
15590
15590
|
setShowConfirmation(true);
|
|
15591
|
-
|
|
15591
|
+
_chunkLRXJT656js.showToast.call(void 0, t(`auth.reset_success`), {
|
|
15592
15592
|
description: t(`auth.reset_success_description`)
|
|
15593
15593
|
});
|
|
15594
15594
|
setTimeout(() => {
|
|
@@ -15634,9 +15634,9 @@ function PasskeyButton({ pendingToken, onSuccess, onError, disabled = false }) {
|
|
|
15634
15634
|
const handleClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
15635
15635
|
setIsLoading(true);
|
|
15636
15636
|
try {
|
|
15637
|
-
const { pendingId, options } = await
|
|
15637
|
+
const { pendingId, options } = await _chunkLRXJT656js.TwoFactorService.getPasskeyAuthOptions({ pendingToken });
|
|
15638
15638
|
const credential = await _browser.startAuthentication.call(void 0, { optionsJSON: options });
|
|
15639
|
-
const auth = await
|
|
15639
|
+
const auth = await _chunkLRXJT656js.TwoFactorService.verifyPasskey({
|
|
15640
15640
|
id: _uuid.v4.call(void 0, ),
|
|
15641
15641
|
pendingToken,
|
|
15642
15642
|
pendingId,
|
|
@@ -15671,7 +15671,7 @@ function TwoFactorChallenge() {
|
|
|
15671
15671
|
const { setUser } = useCurrentUserContext();
|
|
15672
15672
|
const { pendingTwoFactor, setPendingTwoFactor } = useAuthContext();
|
|
15673
15673
|
const generateUrl = usePageUrlGenerator();
|
|
15674
|
-
const i18nRouter =
|
|
15674
|
+
const i18nRouter = _chunkRA4RYKYBjs.useI18nRouter.call(void 0, );
|
|
15675
15675
|
const nativeRouter = _navigation.useRouter.call(void 0, );
|
|
15676
15676
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
15677
15677
|
const callbackUrl = searchParams.get("callbackUrl");
|
|
@@ -15695,7 +15695,7 @@ function TwoFactorChallenge() {
|
|
|
15695
15695
|
setIsVerifying(true);
|
|
15696
15696
|
setTotpError(void 0);
|
|
15697
15697
|
try {
|
|
15698
|
-
const auth = await
|
|
15698
|
+
const auth = await _chunkLRXJT656js.TwoFactorService.verifyTotp({
|
|
15699
15699
|
id: _uuid.v4.call(void 0, ),
|
|
15700
15700
|
pendingToken: pendingTwoFactor.pendingToken,
|
|
15701
15701
|
code
|
|
@@ -15725,7 +15725,7 @@ function TwoFactorChallenge() {
|
|
|
15725
15725
|
setIsVerifying(true);
|
|
15726
15726
|
setBackupError(void 0);
|
|
15727
15727
|
try {
|
|
15728
|
-
const auth = await
|
|
15728
|
+
const auth = await _chunkLRXJT656js.TwoFactorService.verifyBackupCode({
|
|
15729
15729
|
id: _uuid.v4.call(void 0, ),
|
|
15730
15730
|
pendingToken: pendingTwoFactor.pendingToken,
|
|
15731
15731
|
code: backupCode
|
|
@@ -15816,12 +15816,12 @@ function ContentsList({ contentList }) {
|
|
|
15816
15816
|
_chunk7QVYU63Ejs.__name.call(void 0, ContentsList, "ContentsList");
|
|
15817
15817
|
function ContentsListElement({ content }) {
|
|
15818
15818
|
const generateUrl = usePageUrlGenerator();
|
|
15819
|
-
const contentModule = content.contentType ?
|
|
15819
|
+
const contentModule = content.contentType ? _chunkLRXJT656js.Modules.findByModelName(content.contentType) : void 0;
|
|
15820
15820
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
15821
15821
|
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: [
|
|
15822
15822
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCard, { children: [
|
|
15823
15823
|
/* @__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: [
|
|
15824
|
-
contentModule &&
|
|
15824
|
+
contentModule && _chunkLRXJT656js.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
15825
15825
|
content.name
|
|
15826
15826
|
] }) }),
|
|
15827
15827
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCardContent, { className: "flex max-h-96 w-96 flex-col gap-y-4 overflow-y-auto", children: [
|
|
@@ -15840,8 +15840,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListElement, "ContentsListElement")
|
|
|
15840
15840
|
function ContentsListById({ contentIds }) {
|
|
15841
15841
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
15842
15842
|
const data = useDataListRetriever({
|
|
15843
|
-
module:
|
|
15844
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
15843
|
+
module: _chunkLRXJT656js.Modules.Content,
|
|
15844
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkLRXJT656js.ContentService.findMany(params), "retriever"),
|
|
15845
15845
|
retrieverParams: { contentIds }
|
|
15846
15846
|
});
|
|
15847
15847
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -15849,7 +15849,7 @@ function ContentsListById({ contentIds }) {
|
|
|
15849
15849
|
{
|
|
15850
15850
|
data,
|
|
15851
15851
|
fields: ["name" /* name */, "authors" /* authors */, "updatedAt" /* updatedAt */],
|
|
15852
|
-
tableGeneratorType:
|
|
15852
|
+
tableGeneratorType: _chunkLRXJT656js.Modules.Content,
|
|
15853
15853
|
title: t(`common.relevant`)
|
|
15854
15854
|
}
|
|
15855
15855
|
);
|
|
@@ -15862,8 +15862,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListById, "ContentsListById");
|
|
|
15862
15862
|
function RelevantContentsList({ id }) {
|
|
15863
15863
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
15864
15864
|
const data = useDataListRetriever({
|
|
15865
|
-
module:
|
|
15866
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
15865
|
+
module: _chunkLRXJT656js.Modules.Content,
|
|
15866
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkLRXJT656js.ContentService.findRelevant(params), "retriever"),
|
|
15867
15867
|
retrieverParams: { id }
|
|
15868
15868
|
});
|
|
15869
15869
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -15871,7 +15871,7 @@ function RelevantContentsList({ id }) {
|
|
|
15871
15871
|
{
|
|
15872
15872
|
data,
|
|
15873
15873
|
fields: ["name" /* name */, "authors" /* authors */, "relevance" /* relevance */, "updatedAt" /* updatedAt */],
|
|
15874
|
-
tableGeneratorType:
|
|
15874
|
+
tableGeneratorType: _chunkLRXJT656js.Modules.Content,
|
|
15875
15875
|
title: t(`common.relevant`)
|
|
15876
15876
|
}
|
|
15877
15877
|
);
|
|
@@ -15924,12 +15924,12 @@ function NotificationsList({ archived }) {
|
|
|
15924
15924
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
15925
15925
|
const generateUrl = usePageUrlGenerator();
|
|
15926
15926
|
const data = useDataListRetriever({
|
|
15927
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
15927
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkLRXJT656js.NotificationService.findMany(params), "retriever"),
|
|
15928
15928
|
retrieverParams: { isArchived: archived },
|
|
15929
|
-
module:
|
|
15929
|
+
module: _chunkLRXJT656js.Modules.Notification
|
|
15930
15930
|
});
|
|
15931
15931
|
const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
|
|
15932
|
-
await
|
|
15932
|
+
await _chunkLRXJT656js.NotificationService.archive({ id: notification.id });
|
|
15933
15933
|
data.removeElement(notification);
|
|
15934
15934
|
}, "archiveNotification");
|
|
15935
15935
|
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: [
|
|
@@ -15943,7 +15943,7 @@ function NotificationsList({ archived }) {
|
|
|
15943
15943
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _432 => _432.data, 'optionalAccess', _433 => _433.map, 'call', _434 => _434((notification) => {
|
|
15944
15944
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
15945
15945
|
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: [
|
|
15946
|
-
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:
|
|
15946
|
+
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: _chunkLRXJT656js.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" }),
|
|
15947
15947
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
15948
15948
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
15949
15949
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
@@ -16090,7 +16090,7 @@ function NotificationModalContent({ isOpen, setIsOpen }) {
|
|
|
16090
16090
|
batch.forEach((notification) => {
|
|
16091
16091
|
addNotification(notification);
|
|
16092
16092
|
const toastNotification = generateToastNotification(notification, t, generateUrl);
|
|
16093
|
-
|
|
16093
|
+
_chunkLRXJT656js.showToast.call(void 0, toastNotification.title, {
|
|
16094
16094
|
description: toastNotification.description,
|
|
16095
16095
|
action: toastNotification.action
|
|
16096
16096
|
});
|
|
@@ -16190,13 +16190,13 @@ _chunk7QVYU63Ejs.__name.call(void 0, PushNotificationProvider, "PushNotification
|
|
|
16190
16190
|
|
|
16191
16191
|
// src/features/referral/utils/referral-cookie.ts
|
|
16192
16192
|
function setReferralCode(code) {
|
|
16193
|
-
const config =
|
|
16193
|
+
const config = _chunkRA4RYKYBjs.getReferralConfig.call(void 0, );
|
|
16194
16194
|
const maxAge = config.cookieDays * 24 * 60 * 60;
|
|
16195
16195
|
document.cookie = `${config.cookieName}=${encodeURIComponent(code)}; path=/; max-age=${maxAge}; SameSite=Lax`;
|
|
16196
16196
|
}
|
|
16197
16197
|
_chunk7QVYU63Ejs.__name.call(void 0, setReferralCode, "setReferralCode");
|
|
16198
16198
|
function getReferralCode2() {
|
|
16199
|
-
const config =
|
|
16199
|
+
const config = _chunkRA4RYKYBjs.getReferralConfig.call(void 0, );
|
|
16200
16200
|
const cookies = document.cookie.split("; ");
|
|
16201
16201
|
for (const cookie of cookies) {
|
|
16202
16202
|
const [name, value] = cookie.split("=");
|
|
@@ -16212,10 +16212,10 @@ _chunk7QVYU63Ejs.__name.call(void 0, getReferralCode2, "getReferralCode");
|
|
|
16212
16212
|
function ReferralCodeCapture() {
|
|
16213
16213
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
16214
16214
|
_react.useEffect.call(void 0, () => {
|
|
16215
|
-
if (!
|
|
16215
|
+
if (!_chunkRA4RYKYBjs.isReferralEnabled.call(void 0, )) {
|
|
16216
16216
|
return;
|
|
16217
16217
|
}
|
|
16218
|
-
const config =
|
|
16218
|
+
const config = _chunkRA4RYKYBjs.getReferralConfig.call(void 0, );
|
|
16219
16219
|
const refCode = searchParams.get(config.urlParamName);
|
|
16220
16220
|
if (refCode) {
|
|
16221
16221
|
const existingCode = getReferralCode2();
|
|
@@ -16239,14 +16239,14 @@ function useReferralInvite() {
|
|
|
16239
16239
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
16240
16240
|
const [success, setSuccess] = _react.useState.call(void 0, false);
|
|
16241
16241
|
const sendInvite = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (email) => {
|
|
16242
|
-
if (!
|
|
16242
|
+
if (!_chunkRA4RYKYBjs.isReferralEnabled.call(void 0, )) {
|
|
16243
16243
|
return;
|
|
16244
16244
|
}
|
|
16245
16245
|
setSending(true);
|
|
16246
16246
|
setError(null);
|
|
16247
16247
|
setSuccess(false);
|
|
16248
16248
|
try {
|
|
16249
|
-
await
|
|
16249
|
+
await _chunkLRXJT656js.ReferralService.sendReferralEmail(email);
|
|
16250
16250
|
setSuccess(true);
|
|
16251
16251
|
} catch (err) {
|
|
16252
16252
|
setError(err);
|
|
@@ -16265,11 +16265,11 @@ function useReferralStats() {
|
|
|
16265
16265
|
const [loading, setLoading] = _react.useState.call(void 0, true);
|
|
16266
16266
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
16267
16267
|
_react.useEffect.call(void 0, () => {
|
|
16268
|
-
if (!
|
|
16268
|
+
if (!_chunkRA4RYKYBjs.isReferralEnabled.call(void 0, )) {
|
|
16269
16269
|
setLoading(false);
|
|
16270
16270
|
return;
|
|
16271
16271
|
}
|
|
16272
|
-
|
|
16272
|
+
_chunkLRXJT656js.ReferralService.getMyReferralStats().then(setStats).catch(setError).finally(() => setLoading(false));
|
|
16273
16273
|
}, []);
|
|
16274
16274
|
return { stats, loading, error };
|
|
16275
16275
|
}
|
|
@@ -16337,10 +16337,10 @@ function ReferralWidget({
|
|
|
16337
16337
|
const [email, setEmail] = _react.useState.call(void 0, "");
|
|
16338
16338
|
const [copied, setCopied] = _react.useState.call(void 0, false);
|
|
16339
16339
|
const linkInputRef = _react.useRef.call(void 0, null);
|
|
16340
|
-
const config =
|
|
16340
|
+
const config = _chunkRA4RYKYBjs.getReferralConfig.call(void 0, );
|
|
16341
16341
|
const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
|
|
16342
16342
|
const referralUrl = _optionalChain([stats, 'optionalAccess', _439 => _439.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
|
|
16343
|
-
if (!
|
|
16343
|
+
if (!_chunkRA4RYKYBjs.isReferralEnabled.call(void 0, )) {
|
|
16344
16344
|
return null;
|
|
16345
16345
|
}
|
|
16346
16346
|
const handleCopyLink = _react.useCallback.call(void 0, async () => {
|
|
@@ -16348,26 +16348,26 @@ function ReferralWidget({
|
|
|
16348
16348
|
const success = await copyToClipboard(referralUrl);
|
|
16349
16349
|
if (success) {
|
|
16350
16350
|
setCopied(true);
|
|
16351
|
-
|
|
16351
|
+
_chunkLRXJT656js.showToast.call(void 0, t.copiedMessage);
|
|
16352
16352
|
_optionalChain([onLinkCopied, 'optionalCall', _440 => _440()]);
|
|
16353
16353
|
setTimeout(() => setCopied(false), 2e3);
|
|
16354
16354
|
} else {
|
|
16355
|
-
|
|
16355
|
+
_chunkLRXJT656js.showError.call(void 0, t.copyError);
|
|
16356
16356
|
}
|
|
16357
16357
|
}, [referralUrl, t.copiedMessage, t.copyError, onLinkCopied]);
|
|
16358
16358
|
const handleSendInvite = _react.useCallback.call(void 0, async () => {
|
|
16359
16359
|
if (!email || !email.includes("@")) {
|
|
16360
|
-
|
|
16360
|
+
_chunkLRXJT656js.showError.call(void 0, t.invalidEmail);
|
|
16361
16361
|
return;
|
|
16362
16362
|
}
|
|
16363
16363
|
try {
|
|
16364
16364
|
await sendInvite(email);
|
|
16365
|
-
|
|
16365
|
+
_chunkLRXJT656js.showToast.call(void 0, t.inviteSent);
|
|
16366
16366
|
_optionalChain([onInviteSent, 'optionalCall', _441 => _441(email)]);
|
|
16367
16367
|
setEmail("");
|
|
16368
16368
|
} catch (err) {
|
|
16369
16369
|
const error2 = err instanceof Error ? err : new Error(t.inviteError);
|
|
16370
|
-
|
|
16370
|
+
_chunkLRXJT656js.showError.call(void 0, error2.message);
|
|
16371
16371
|
_optionalChain([onInviteError, 'optionalCall', _442 => _442(error2)]);
|
|
16372
16372
|
}
|
|
16373
16373
|
}, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
|
|
@@ -16474,7 +16474,7 @@ function ReferralDialog({
|
|
|
16474
16474
|
dialogClassName,
|
|
16475
16475
|
...widgetProps
|
|
16476
16476
|
}) {
|
|
16477
|
-
if (!
|
|
16477
|
+
if (!_chunkRA4RYKYBjs.isReferralEnabled.call(void 0, )) {
|
|
16478
16478
|
return null;
|
|
16479
16479
|
}
|
|
16480
16480
|
const t = { ...DEFAULT_DIALOG_TRANSLATIONS, ...translations };
|
|
@@ -16555,13 +16555,13 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
16555
16555
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
16556
16556
|
_react.useEffect.call(void 0, () => {
|
|
16557
16557
|
async function checkCompanyAdminDeletability() {
|
|
16558
|
-
const roleUsers = await
|
|
16558
|
+
const roleUsers = await _chunkLRXJT656js.UserService.findAllUsersByRole({
|
|
16559
16559
|
roleId: role.id
|
|
16560
16560
|
});
|
|
16561
16561
|
if (roleUsers.length > 1) setCanRemove(true);
|
|
16562
16562
|
}
|
|
16563
16563
|
_chunk7QVYU63Ejs.__name.call(void 0, checkCompanyAdminDeletability, "checkCompanyAdminDeletability");
|
|
16564
|
-
if (role.id !==
|
|
16564
|
+
if (role.id !== _chunkRA4RYKYBjs.getRoleId.call(void 0, ).CompanyAdministrator) {
|
|
16565
16565
|
setCanRemove(true);
|
|
16566
16566
|
return;
|
|
16567
16567
|
}
|
|
@@ -16569,7 +16569,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
16569
16569
|
}, [role]);
|
|
16570
16570
|
const remove = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
16571
16571
|
try {
|
|
16572
|
-
await
|
|
16572
|
+
await _chunkLRXJT656js.RoleService.removeUserFromRole({
|
|
16573
16573
|
roleId: role.id,
|
|
16574
16574
|
userId: user.id
|
|
16575
16575
|
});
|
|
@@ -16632,12 +16632,12 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
16632
16632
|
const [roles, setRoles] = _react.useState.call(void 0, []);
|
|
16633
16633
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
16634
16634
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (role) => {
|
|
16635
|
-
await
|
|
16635
|
+
await _chunkLRXJT656js.RoleService.addUserToRole({
|
|
16636
16636
|
roleId: role.id,
|
|
16637
16637
|
userId: user.id
|
|
16638
16638
|
});
|
|
16639
16639
|
setRoles(roles.filter((u) => u.id !== role.id));
|
|
16640
|
-
|
|
16640
|
+
_chunkLRXJT656js.showToast.call(void 0,
|
|
16641
16641
|
t(`common.association.label`, {
|
|
16642
16642
|
source: t(`entities.roles`, { count: 1 }),
|
|
16643
16643
|
destination: t(`entities.users`, { count: 1 })
|
|
@@ -16656,7 +16656,7 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
16656
16656
|
const searchRoles = _react.useCallback.call(void 0,
|
|
16657
16657
|
async (term) => {
|
|
16658
16658
|
setRoles(
|
|
16659
|
-
await
|
|
16659
|
+
await _chunkLRXJT656js.RoleService.findAllRolesUserNotIn({
|
|
16660
16660
|
search: term,
|
|
16661
16661
|
userId: user.id
|
|
16662
16662
|
})
|
|
@@ -16724,16 +16724,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserRoleAdd, "UserRoleAdd");
|
|
|
16724
16724
|
function RolesList() {
|
|
16725
16725
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
16726
16726
|
const data = useDataListRetriever({
|
|
16727
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
16727
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkLRXJT656js.RoleService.findAllRoles(params), "retriever"),
|
|
16728
16728
|
retrieverParams: {},
|
|
16729
|
-
module:
|
|
16729
|
+
module: _chunkLRXJT656js.Modules.Role
|
|
16730
16730
|
});
|
|
16731
16731
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16732
16732
|
ContentListTable,
|
|
16733
16733
|
{
|
|
16734
16734
|
data,
|
|
16735
16735
|
fields: ["name" /* name */, "description" /* description */],
|
|
16736
|
-
tableGeneratorType:
|
|
16736
|
+
tableGeneratorType: _chunkLRXJT656js.Modules.Role,
|
|
16737
16737
|
title: t(`entities.roles`, { count: 2 })
|
|
16738
16738
|
}
|
|
16739
16739
|
);
|
|
@@ -16746,16 +16746,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RolesList, "RolesList");
|
|
|
16746
16746
|
function UserRolesList({ user }) {
|
|
16747
16747
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
16748
16748
|
const data = useDataListRetriever({
|
|
16749
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
16749
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkLRXJT656js.RoleService.findAllRolesByUser(params), "retriever"),
|
|
16750
16750
|
retrieverParams: { userId: user.id },
|
|
16751
|
-
module:
|
|
16751
|
+
module: _chunkLRXJT656js.Modules.Role
|
|
16752
16752
|
});
|
|
16753
16753
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16754
16754
|
ContentListTable,
|
|
16755
16755
|
{
|
|
16756
16756
|
data,
|
|
16757
16757
|
fields: ["name" /* name */, "description" /* description */],
|
|
16758
|
-
tableGeneratorType:
|
|
16758
|
+
tableGeneratorType: _chunkLRXJT656js.Modules.Role,
|
|
16759
16759
|
title: t(`entities.roles`, { count: 2 })
|
|
16760
16760
|
}
|
|
16761
16761
|
);
|
|
@@ -16862,7 +16862,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthRedirectUriInput, "OAuthRedirectUriInp
|
|
|
16862
16862
|
function OAuthScopeSelector({
|
|
16863
16863
|
value,
|
|
16864
16864
|
onChange,
|
|
16865
|
-
availableScopes =
|
|
16865
|
+
availableScopes = _chunkLRXJT656js.AVAILABLE_OAUTH_SCOPES,
|
|
16866
16866
|
disabled = false,
|
|
16867
16867
|
error,
|
|
16868
16868
|
label = "Allowed Scopes"
|
|
@@ -17168,7 +17168,7 @@ function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
|
|
|
17168
17168
|
description: formState.description.trim() || void 0,
|
|
17169
17169
|
redirectUris: formState.redirectUris.filter((uri) => uri.trim()),
|
|
17170
17170
|
allowedScopes: formState.allowedScopes,
|
|
17171
|
-
allowedGrantTypes:
|
|
17171
|
+
allowedGrantTypes: _chunkLRXJT656js.DEFAULT_GRANT_TYPES,
|
|
17172
17172
|
isConfidential: formState.isConfidential
|
|
17173
17173
|
};
|
|
17174
17174
|
await onSubmit(data);
|
|
@@ -17369,7 +17369,7 @@ function OAuthClientDetail({
|
|
|
17369
17369
|
] }),
|
|
17370
17370
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
17371
17371
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
17372
|
-
/* @__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([
|
|
17372
|
+
/* @__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([_chunkLRXJT656js.OAUTH_SCOPE_DISPLAY, 'access', _450 => _450[scope], 'optionalAccess', _451 => _451.name]) || scope }, scope)) })
|
|
17373
17373
|
] }),
|
|
17374
17374
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
17375
17375
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -17653,7 +17653,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
17653
17653
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
17654
17654
|
const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
|
|
17655
17655
|
const [isSuccess, setIsSuccess] = _react.useState.call(void 0, false);
|
|
17656
|
-
const config =
|
|
17656
|
+
const config = _chunkRA4RYKYBjs.getWaitlistConfig.call(void 0, );
|
|
17657
17657
|
const questionnaireFields = _nullishCoalesce(config.questionnaire, () => ( []));
|
|
17658
17658
|
const questionnaireSchema = questionnaireFields.reduce(
|
|
17659
17659
|
(acc, field) => {
|
|
@@ -17719,7 +17719,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
17719
17719
|
setIsSubmitting(true);
|
|
17720
17720
|
try {
|
|
17721
17721
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
17722
|
-
await
|
|
17722
|
+
await _chunkLRXJT656js.WaitlistService.submit({
|
|
17723
17723
|
id: values.id,
|
|
17724
17724
|
email: values.email,
|
|
17725
17725
|
gdprConsent: values.gdprConsent,
|
|
@@ -17795,7 +17795,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, WaitlistForm, "WaitlistForm");
|
|
|
17795
17795
|
|
|
17796
17796
|
|
|
17797
17797
|
function WaitlistHeroSection() {
|
|
17798
|
-
const config =
|
|
17798
|
+
const config = _chunkRA4RYKYBjs.getWaitlistConfig.call(void 0, );
|
|
17799
17799
|
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: [
|
|
17800
17800
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
17801
17801
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
@@ -17840,7 +17840,7 @@ function WaitlistConfirmation({ code }) {
|
|
|
17840
17840
|
_react.useEffect.call(void 0, () => {
|
|
17841
17841
|
async function confirmEmail() {
|
|
17842
17842
|
try {
|
|
17843
|
-
await
|
|
17843
|
+
await _chunkLRXJT656js.WaitlistService.confirm(code);
|
|
17844
17844
|
setState("success");
|
|
17845
17845
|
} catch (error) {
|
|
17846
17846
|
setState("error");
|
|
@@ -17981,7 +17981,7 @@ function WaitlistList() {
|
|
|
17981
17981
|
const loadEntries = _react.useCallback.call(void 0, async () => {
|
|
17982
17982
|
setIsLoading(true);
|
|
17983
17983
|
try {
|
|
17984
|
-
const result = await
|
|
17984
|
+
const result = await _chunkLRXJT656js.WaitlistService.findMany({
|
|
17985
17985
|
status: statusFilter === "all" ? void 0 : statusFilter,
|
|
17986
17986
|
fetchAll: true
|
|
17987
17987
|
});
|
|
@@ -17998,8 +17998,8 @@ function WaitlistList() {
|
|
|
17998
17998
|
}, [loadEntries]);
|
|
17999
17999
|
const handleInvite = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (entry) => {
|
|
18000
18000
|
try {
|
|
18001
|
-
await
|
|
18002
|
-
|
|
18001
|
+
await _chunkLRXJT656js.WaitlistService.invite(entry.id);
|
|
18002
|
+
_chunkLRXJT656js.showToast.call(void 0, t("waitlist.admin.invite_sent", { email: entry.email }));
|
|
18003
18003
|
loadEntries();
|
|
18004
18004
|
} catch (error) {
|
|
18005
18005
|
errorToast({ error });
|
|
@@ -18078,7 +18078,7 @@ function RbacPermissionCell({
|
|
|
18078
18078
|
"div",
|
|
18079
18079
|
{
|
|
18080
18080
|
onClick,
|
|
18081
|
-
className:
|
|
18081
|
+
className: _chunkLRXJT656js.cn.call(void 0,
|
|
18082
18082
|
"flex h-8 w-full items-center justify-center rounded px-2 transition-colors hover:bg-muted cursor-pointer",
|
|
18083
18083
|
isDirty && "ring-2 ring-amber-400/50"
|
|
18084
18084
|
),
|
|
@@ -18091,7 +18091,7 @@ function RbacPermissionCell({
|
|
|
18091
18091
|
"div",
|
|
18092
18092
|
{
|
|
18093
18093
|
onClick,
|
|
18094
|
-
className:
|
|
18094
|
+
className: _chunkLRXJT656js.cn.call(void 0,
|
|
18095
18095
|
"flex h-8 w-full items-center justify-center rounded px-2 transition-colors hover:bg-muted cursor-pointer",
|
|
18096
18096
|
isDirty && "ring-2 ring-amber-400/50"
|
|
18097
18097
|
),
|
|
@@ -18107,7 +18107,7 @@ function RbacPermissionCell({
|
|
|
18107
18107
|
"div",
|
|
18108
18108
|
{
|
|
18109
18109
|
onClick,
|
|
18110
|
-
className:
|
|
18110
|
+
className: _chunkLRXJT656js.cn.call(void 0,
|
|
18111
18111
|
"flex h-8 w-full items-center justify-center rounded px-2 transition-colors hover:bg-muted cursor-pointer",
|
|
18112
18112
|
isDirty && "ring-2 ring-amber-400/50"
|
|
18113
18113
|
),
|
|
@@ -18125,7 +18125,7 @@ function RbacPermissionCell({
|
|
|
18125
18125
|
TooltipTrigger,
|
|
18126
18126
|
{
|
|
18127
18127
|
onClick,
|
|
18128
|
-
className:
|
|
18128
|
+
className: _chunkLRXJT656js.cn.call(void 0,
|
|
18129
18129
|
"flex h-8 w-full items-center justify-center rounded px-2 transition-colors hover:bg-muted cursor-pointer",
|
|
18130
18130
|
isDirty && "ring-2 ring-amber-400/50"
|
|
18131
18131
|
),
|
|
@@ -18183,7 +18183,7 @@ function RbacPermissionPicker({
|
|
|
18183
18183
|
{
|
|
18184
18184
|
size: "sm",
|
|
18185
18185
|
variant: value === true ? "default" : "outline",
|
|
18186
|
-
className:
|
|
18186
|
+
className: _chunkLRXJT656js.cn.call(void 0, "flex-1 gap-1", value === true && "bg-emerald-600 hover:bg-emerald-700"),
|
|
18187
18187
|
onClick: () => {
|
|
18188
18188
|
onSetValue(true);
|
|
18189
18189
|
setOpen(false);
|
|
@@ -18321,7 +18321,7 @@ function RbacModuleTable({ module, roles, stateApi }) {
|
|
|
18321
18321
|
/* @__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: [
|
|
18322
18322
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b bg-muted/50", children: [
|
|
18323
18323
|
/* @__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") }),
|
|
18324
|
-
|
|
18324
|
+
_chunkRA4RYKYBjs.ACTION_TYPES.map((actionType) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18325
18325
|
"th",
|
|
18326
18326
|
{
|
|
18327
18327
|
className: "px-2 py-2 text-center text-xs font-medium text-muted-foreground min-w-28",
|
|
@@ -18333,7 +18333,7 @@ function RbacModuleTable({ module, roles, stateApi }) {
|
|
|
18333
18333
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tbody", { children: [
|
|
18334
18334
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b", children: [
|
|
18335
18335
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: t("rbac.defaults") }),
|
|
18336
|
-
|
|
18336
|
+
_chunkRA4RYKYBjs.ACTION_TYPES.map((actionType) => {
|
|
18337
18337
|
const defaultValue = _nullishCoalesce(stateApi.getModuleDefaultPermission(module.id, actionType), () => ( false));
|
|
18338
18338
|
const originalDefaultValue = _nullishCoalesce(module.permissions[actionType], () => ( false));
|
|
18339
18339
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -18348,9 +18348,9 @@ function RbacModuleTable({ module, roles, stateApi }) {
|
|
|
18348
18348
|
) }, actionType);
|
|
18349
18349
|
})
|
|
18350
18350
|
] }),
|
|
18351
|
-
roles.filter((role) => role.id !==
|
|
18351
|
+
roles.filter((role) => role.id !== _chunkRA4RYKYBjs.COMPANY_ADMINISTRATOR_ROLE_ID).map((role) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
18352
18352
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: role.name }),
|
|
18353
|
-
|
|
18353
|
+
_chunkRA4RYKYBjs.ACTION_TYPES.map((actionType) => {
|
|
18354
18354
|
const roleValue = stateApi.getRolePermission(role.id, module.id, actionType);
|
|
18355
18355
|
const originalMapping = _optionalChain([stateApi, 'access', _454 => _454.original, 'optionalAccess', _455 => _455.permissionMappings, 'access', _456 => _456.find, 'call', _457 => _457(
|
|
18356
18356
|
(pm) => pm.roleId === role.id && pm.moduleId === module.id
|
|
@@ -18387,7 +18387,7 @@ function RbacFeatureSection({ feature, roles, stateApi }) {
|
|
|
18387
18387
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18388
18388
|
_lucidereact.ChevronDownIcon,
|
|
18389
18389
|
{
|
|
18390
|
-
className:
|
|
18390
|
+
className: _chunkLRXJT656js.cn.call(void 0, "h-4 w-4 text-muted-foreground transition-transform", !isOpen && "-rotate-90")
|
|
18391
18391
|
}
|
|
18392
18392
|
),
|
|
18393
18393
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-base font-semibold", children: feature.name }),
|
|
@@ -18450,10 +18450,10 @@ function RbacContainer() {
|
|
|
18450
18450
|
try {
|
|
18451
18451
|
setLoading(true);
|
|
18452
18452
|
const [features, roles, permissionMappings, modulePaths] = await Promise.all([
|
|
18453
|
-
|
|
18454
|
-
|
|
18455
|
-
|
|
18456
|
-
|
|
18453
|
+
_chunkRA4RYKYBjs.RbacService.getFeatures(),
|
|
18454
|
+
_chunkRA4RYKYBjs.RbacService.getRoles(),
|
|
18455
|
+
_chunkRA4RYKYBjs.RbacService.getPermissionMappings(),
|
|
18456
|
+
_chunkRA4RYKYBjs.RbacService.getModuleRelationshipPaths()
|
|
18457
18457
|
]);
|
|
18458
18458
|
stateApi.init(features, roles, permissionMappings, modulePaths);
|
|
18459
18459
|
} catch (err) {
|
|
@@ -18969,4 +18969,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacContainer, "RbacContainer");
|
|
|
18969
18969
|
|
|
18970
18970
|
|
|
18971
18971
|
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.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.UserDetails = UserDetails; 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.errorToast = errorToast; 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.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.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;
|
|
18972
|
-
//# sourceMappingURL=chunk-
|
|
18972
|
+
//# sourceMappingURL=chunk-CDCGQFIA.js.map
|