@carlonicora/nextjs-jsonapi 1.29.0 → 1.29.2
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-YBVEOPV4.js → BlockNoteEditor-BEWKLGW3.js} +13 -13
- package/dist/{BlockNoteEditor-YBVEOPV4.js.map → BlockNoteEditor-BEWKLGW3.js.map} +1 -1
- package/dist/{BlockNoteEditor-ZM4YPXHO.mjs → BlockNoteEditor-GNFK7ZVR.mjs} +3 -3
- package/dist/billing/index.js +334 -333
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +8 -7
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{chunk-UCD5CUE4.mjs → chunk-IJSB4FH6.mjs} +5 -5
- package/dist/{chunk-UCD5CUE4.mjs.map → chunk-IJSB4FH6.mjs.map} +1 -1
- package/dist/{chunk-DU64WMZD.mjs → chunk-NYNLJEPF.mjs} +4 -4
- package/dist/chunk-NYNLJEPF.mjs.map +1 -0
- package/dist/{chunk-J22NEVSK.js → chunk-UYBCHXXL.js} +4 -4
- package/dist/chunk-UYBCHXXL.js.map +1 -0
- package/dist/{chunk-3X7EEFMN.js → chunk-XU4MY6OG.js} +429 -429
- package/dist/{chunk-3X7EEFMN.js.map → chunk-XU4MY6OG.js.map} +1 -1
- package/dist/client/index.js +3 -3
- package/dist/client/index.mjs +2 -2
- package/dist/components/index.js +3 -3
- package/dist/components/index.mjs +2 -2
- package/dist/contexts/index.js +3 -3
- package/dist/contexts/index.mjs +2 -2
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/pages/PageContentContainer.tsx +2 -2
- package/src/core/abstracts/AbstractService.ts +2 -2
- package/src/features/billing/stripe-subscription/hooks/useSubscriptionWizard.ts +5 -4
- package/src/utils/blocknote-diff.util.ts +1 -1
- package/dist/chunk-DU64WMZD.mjs.map +0 -1
- package/dist/chunk-J22NEVSK.js.map +0 -1
- /package/dist/{BlockNoteEditor-ZM4YPXHO.mjs.map → BlockNoteEditor-GNFK7ZVR.mjs.map} +0 -0
|
@@ -36,7 +36,7 @@ var _chunkEW6QPMN3js = require('./chunk-EW6QPMN3.js');
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkUYBCHXXLjs = require('./chunk-UYBCHXXL.js');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
var _chunk3EPNHTMHjs = require('./chunk-3EPNHTMH.js');
|
|
@@ -181,7 +181,7 @@ function useDataListRetriever(params) {
|
|
|
181
181
|
const abortControllerRef = _react.useRef.call(void 0, null);
|
|
182
182
|
const isFetchingRef = _react.useRef.call(void 0, false);
|
|
183
183
|
const resolvedType = params.module;
|
|
184
|
-
const resolvedService =
|
|
184
|
+
const resolvedService = _chunkUYBCHXXLjs.ClientAbstractService;
|
|
185
185
|
const parsePageParams = _react.useCallback.call(void 0, (url) => {
|
|
186
186
|
if (!url) return null;
|
|
187
187
|
try {
|
|
@@ -929,20 +929,20 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
929
929
|
if (!token && dehydratedUser) setDehydratedUser(null);
|
|
930
930
|
}, [dehydratedUser, setDehydratedUser]);
|
|
931
931
|
const matchUrlToModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
932
|
-
const moduleKeys = Object.getOwnPropertyNames(
|
|
932
|
+
const moduleKeys = Object.getOwnPropertyNames(_chunkUYBCHXXLjs.Modules).filter(
|
|
933
933
|
(key) => key !== "prototype" && key !== "_factory" && key !== "length" && key !== "name"
|
|
934
934
|
);
|
|
935
935
|
const matchedModuleKey = moduleKeys.find((key) => {
|
|
936
|
-
const descriptor2 = Object.getOwnPropertyDescriptor(
|
|
936
|
+
const descriptor2 = Object.getOwnPropertyDescriptor(_chunkUYBCHXXLjs.Modules, key);
|
|
937
937
|
if (!_optionalChain([descriptor2, 'optionalAccess', _25 => _25.get])) return false;
|
|
938
|
-
const selectedModule = descriptor2.get.call(
|
|
938
|
+
const selectedModule = descriptor2.get.call(_chunkUYBCHXXLjs.Modules);
|
|
939
939
|
return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _26 => _26.pageUrl, 'optionalAccess', _27 => _27.toLowerCase, 'call', _28 => _28()]));
|
|
940
940
|
});
|
|
941
941
|
if (!matchedModuleKey) return void 0;
|
|
942
|
-
const descriptor = Object.getOwnPropertyDescriptor(
|
|
943
|
-
return _optionalChain([descriptor, 'optionalAccess', _29 => _29.get, 'optionalAccess', _30 => _30.call, 'call', _31 => _31(
|
|
942
|
+
const descriptor = Object.getOwnPropertyDescriptor(_chunkUYBCHXXLjs.Modules, matchedModuleKey);
|
|
943
|
+
return _optionalChain([descriptor, 'optionalAccess', _29 => _29.get, 'optionalAccess', _30 => _30.call, 'call', _31 => _31(_chunkUYBCHXXLjs.Modules)]);
|
|
944
944
|
}, "matchUrlToModule");
|
|
945
|
-
const currentUser = dehydratedUser ?
|
|
945
|
+
const currentUser = dehydratedUser ? _chunkUYBCHXXLjs.rehydrate.call(void 0, _chunkUYBCHXXLjs.Modules.User, dehydratedUser) : null;
|
|
946
946
|
const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _32 => _32.company]), () => ( null));
|
|
947
947
|
const setUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (user) => {
|
|
948
948
|
if (user) setDehydratedUser(user.dehydrate());
|
|
@@ -960,14 +960,14 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
960
960
|
function hasPermissionToModule(params) {
|
|
961
961
|
if (!currentUser) return false;
|
|
962
962
|
if (!!params.module.feature && !hasAccesToFeature(params.module.feature)) return false;
|
|
963
|
-
return
|
|
963
|
+
return _chunkUYBCHXXLjs.checkPermissions.call(void 0, { module: params.module, action: params.action, data: params.data, user: currentUser });
|
|
964
964
|
}
|
|
965
965
|
_chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModule, "hasPermissionToModule");
|
|
966
966
|
function hasPermissionToModules(params) {
|
|
967
967
|
if (!currentUser) return false;
|
|
968
968
|
if (!params.modules.every((module) => !module.feature || hasAccesToFeature(module.feature))) return false;
|
|
969
969
|
return params.modules.every(
|
|
970
|
-
(module) =>
|
|
970
|
+
(module) => _chunkUYBCHXXLjs.checkPermissions.call(void 0, { module, action: params.action, data: params.data, user: currentUser })
|
|
971
971
|
);
|
|
972
972
|
}
|
|
973
973
|
_chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModules, "hasPermissionToModules");
|
|
@@ -985,7 +985,7 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
985
985
|
if (isRefreshing) return;
|
|
986
986
|
setIsRefreshing(true);
|
|
987
987
|
try {
|
|
988
|
-
const fullUser = await
|
|
988
|
+
const fullUser = await _chunkUYBCHXXLjs.UserService.findFullUser();
|
|
989
989
|
if (fullUser) {
|
|
990
990
|
setDehydratedUser(fullUser.dehydrate());
|
|
991
991
|
}
|
|
@@ -1059,7 +1059,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
1059
1059
|
const [existingUsers, setExistingUsers] = _react.useState.call(void 0, null);
|
|
1060
1060
|
_react.useEffect.call(void 0, () => {
|
|
1061
1061
|
const fetchExistingUsers = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
1062
|
-
setExistingUsers(await
|
|
1062
|
+
setExistingUsers(await _chunkUYBCHXXLjs.UserService.findMany({ roleId: role.id, fetchAll: true }));
|
|
1063
1063
|
}, "fetchExistingUsers");
|
|
1064
1064
|
if (show) {
|
|
1065
1065
|
setExistingUsers(null);
|
|
@@ -1067,7 +1067,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
1067
1067
|
}
|
|
1068
1068
|
}, [show]);
|
|
1069
1069
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (user) => {
|
|
1070
|
-
await
|
|
1070
|
+
await _chunkUYBCHXXLjs.RoleService.addUserToRole({
|
|
1071
1071
|
roleId: role.id,
|
|
1072
1072
|
userId: user.id
|
|
1073
1073
|
});
|
|
@@ -1083,9 +1083,9 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
1083
1083
|
}, "addUserToRole");
|
|
1084
1084
|
const data = useDataListRetriever({
|
|
1085
1085
|
ready: !!company && show,
|
|
1086
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
1086
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkUYBCHXXLjs.UserService.findAllUsers(params), "retriever"),
|
|
1087
1087
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _42 => _42.id]) },
|
|
1088
|
-
module:
|
|
1088
|
+
module: _chunkUYBCHXXLjs.Modules.User
|
|
1089
1089
|
});
|
|
1090
1090
|
_react.useEffect.call(void 0, () => {
|
|
1091
1091
|
if (!!company && show) {
|
|
@@ -1136,7 +1136,7 @@ function Accordion({ className, ...props }) {
|
|
|
1136
1136
|
_accordion.Accordion.Root,
|
|
1137
1137
|
{
|
|
1138
1138
|
"data-slot": "accordion",
|
|
1139
|
-
className:
|
|
1139
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "overflow-hidden rounded-md border flex w-full flex-col", className),
|
|
1140
1140
|
...props
|
|
1141
1141
|
}
|
|
1142
1142
|
);
|
|
@@ -1147,7 +1147,7 @@ function AccordionItem({ className, ...props }) {
|
|
|
1147
1147
|
_accordion.Accordion.Item,
|
|
1148
1148
|
{
|
|
1149
1149
|
"data-slot": "accordion-item",
|
|
1150
|
-
className:
|
|
1150
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "data-open:bg-muted/50 not-last:border-b", className),
|
|
1151
1151
|
...props
|
|
1152
1152
|
}
|
|
1153
1153
|
);
|
|
@@ -1162,7 +1162,7 @@ function AccordionTrigger({
|
|
|
1162
1162
|
_accordion.Accordion.Trigger,
|
|
1163
1163
|
{
|
|
1164
1164
|
"data-slot": "accordion-trigger",
|
|
1165
|
-
className:
|
|
1165
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1166
1166
|
"**: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",
|
|
1167
1167
|
className
|
|
1168
1168
|
),
|
|
@@ -1190,7 +1190,7 @@ function AccordionContent({
|
|
|
1190
1190
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1191
1191
|
"div",
|
|
1192
1192
|
{
|
|
1193
|
-
className:
|
|
1193
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1194
1194
|
"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",
|
|
1195
1195
|
className
|
|
1196
1196
|
),
|
|
@@ -1226,7 +1226,7 @@ function Alert({
|
|
|
1226
1226
|
{
|
|
1227
1227
|
"data-slot": "alert",
|
|
1228
1228
|
role: "alert",
|
|
1229
|
-
className:
|
|
1229
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, alertVariants({ variant }), className),
|
|
1230
1230
|
...props
|
|
1231
1231
|
}
|
|
1232
1232
|
);
|
|
@@ -1237,7 +1237,7 @@ function AlertTitle({ className, ...props }) {
|
|
|
1237
1237
|
"div",
|
|
1238
1238
|
{
|
|
1239
1239
|
"data-slot": "alert-title",
|
|
1240
|
-
className:
|
|
1240
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1241
1241
|
"font-medium group-has-[>svg]/alert:col-start-2 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3",
|
|
1242
1242
|
className
|
|
1243
1243
|
),
|
|
@@ -1254,7 +1254,7 @@ function AlertDescription({
|
|
|
1254
1254
|
"div",
|
|
1255
1255
|
{
|
|
1256
1256
|
"data-slot": "alert-description",
|
|
1257
|
-
className:
|
|
1257
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1258
1258
|
"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",
|
|
1259
1259
|
className
|
|
1260
1260
|
),
|
|
@@ -1268,7 +1268,7 @@ function AlertAction({ className, ...props }) {
|
|
|
1268
1268
|
"div",
|
|
1269
1269
|
{
|
|
1270
1270
|
"data-slot": "alert-action",
|
|
1271
|
-
className:
|
|
1271
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "absolute top-1.5 right-2", className),
|
|
1272
1272
|
...props
|
|
1273
1273
|
}
|
|
1274
1274
|
);
|
|
@@ -1321,7 +1321,7 @@ function Button({
|
|
|
1321
1321
|
_button.Button,
|
|
1322
1322
|
{
|
|
1323
1323
|
"data-slot": "button",
|
|
1324
|
-
className:
|
|
1324
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, buttonVariants({ variant, size, className })),
|
|
1325
1325
|
...props
|
|
1326
1326
|
}
|
|
1327
1327
|
);
|
|
@@ -1350,7 +1350,7 @@ function AlertDialogOverlay({
|
|
|
1350
1350
|
_alertdialog.AlertDialog.Backdrop,
|
|
1351
1351
|
{
|
|
1352
1352
|
"data-slot": "alert-dialog-overlay",
|
|
1353
|
-
className:
|
|
1353
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1354
1354
|
"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",
|
|
1355
1355
|
className
|
|
1356
1356
|
),
|
|
@@ -1371,7 +1371,7 @@ function AlertDialogContent({
|
|
|
1371
1371
|
{
|
|
1372
1372
|
"data-slot": "alert-dialog-content",
|
|
1373
1373
|
"data-size": size,
|
|
1374
|
-
className:
|
|
1374
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1375
1375
|
"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",
|
|
1376
1376
|
className
|
|
1377
1377
|
),
|
|
@@ -1389,7 +1389,7 @@ function AlertDialogHeader({
|
|
|
1389
1389
|
"div",
|
|
1390
1390
|
{
|
|
1391
1391
|
"data-slot": "alert-dialog-header",
|
|
1392
|
-
className:
|
|
1392
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "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]", className),
|
|
1393
1393
|
...props
|
|
1394
1394
|
}
|
|
1395
1395
|
);
|
|
@@ -1403,7 +1403,7 @@ function AlertDialogFooter({
|
|
|
1403
1403
|
"div",
|
|
1404
1404
|
{
|
|
1405
1405
|
"data-slot": "alert-dialog-footer",
|
|
1406
|
-
className:
|
|
1406
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1407
1407
|
"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",
|
|
1408
1408
|
className
|
|
1409
1409
|
),
|
|
@@ -1420,7 +1420,7 @@ function AlertDialogMedia({
|
|
|
1420
1420
|
"div",
|
|
1421
1421
|
{
|
|
1422
1422
|
"data-slot": "alert-dialog-media",
|
|
1423
|
-
className:
|
|
1423
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "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", className),
|
|
1424
1424
|
...props
|
|
1425
1425
|
}
|
|
1426
1426
|
);
|
|
@@ -1434,7 +1434,7 @@ function AlertDialogTitle({
|
|
|
1434
1434
|
_alertdialog.AlertDialog.Title,
|
|
1435
1435
|
{
|
|
1436
1436
|
"data-slot": "alert-dialog-title",
|
|
1437
|
-
className:
|
|
1437
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "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", className),
|
|
1438
1438
|
...props
|
|
1439
1439
|
}
|
|
1440
1440
|
);
|
|
@@ -1448,7 +1448,7 @@ function AlertDialogDescription({
|
|
|
1448
1448
|
_alertdialog.AlertDialog.Description,
|
|
1449
1449
|
{
|
|
1450
1450
|
"data-slot": "alert-dialog-description",
|
|
1451
|
-
className:
|
|
1451
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3", className),
|
|
1452
1452
|
...props
|
|
1453
1453
|
}
|
|
1454
1454
|
);
|
|
@@ -1462,7 +1462,7 @@ function AlertDialogAction({
|
|
|
1462
1462
|
Button,
|
|
1463
1463
|
{
|
|
1464
1464
|
"data-slot": "alert-dialog-action",
|
|
1465
|
-
className:
|
|
1465
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, className),
|
|
1466
1466
|
...props
|
|
1467
1467
|
}
|
|
1468
1468
|
);
|
|
@@ -1478,7 +1478,7 @@ function AlertDialogCancel({
|
|
|
1478
1478
|
_alertdialog.AlertDialog.Close,
|
|
1479
1479
|
{
|
|
1480
1480
|
"data-slot": "alert-dialog-cancel",
|
|
1481
|
-
className:
|
|
1481
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, className),
|
|
1482
1482
|
render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant, size }),
|
|
1483
1483
|
...props
|
|
1484
1484
|
}
|
|
@@ -1499,7 +1499,7 @@ function Avatar({
|
|
|
1499
1499
|
{
|
|
1500
1500
|
"data-slot": "avatar",
|
|
1501
1501
|
"data-size": size,
|
|
1502
|
-
className:
|
|
1502
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1503
1503
|
"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",
|
|
1504
1504
|
className
|
|
1505
1505
|
),
|
|
@@ -1513,7 +1513,7 @@ function AvatarImage({ className, ...props }) {
|
|
|
1513
1513
|
_avatar.Avatar.Image,
|
|
1514
1514
|
{
|
|
1515
1515
|
"data-slot": "avatar-image",
|
|
1516
|
-
className:
|
|
1516
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1517
1517
|
"rounded-full aspect-square size-full object-cover",
|
|
1518
1518
|
className
|
|
1519
1519
|
),
|
|
@@ -1530,7 +1530,7 @@ function AvatarFallback({
|
|
|
1530
1530
|
_avatar.Avatar.Fallback,
|
|
1531
1531
|
{
|
|
1532
1532
|
"data-slot": "avatar-fallback",
|
|
1533
|
-
className:
|
|
1533
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1534
1534
|
"bg-muted text-muted-foreground rounded-full flex size-full items-center justify-center text-sm group-data-[size=sm]/avatar:text-xs",
|
|
1535
1535
|
className
|
|
1536
1536
|
),
|
|
@@ -1544,7 +1544,7 @@ function AvatarBadge({ className, ...props }) {
|
|
|
1544
1544
|
"span",
|
|
1545
1545
|
{
|
|
1546
1546
|
"data-slot": "avatar-badge",
|
|
1547
|
-
className:
|
|
1547
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1548
1548
|
"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",
|
|
1549
1549
|
"group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden",
|
|
1550
1550
|
"group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2",
|
|
@@ -1561,7 +1561,7 @@ function AvatarGroup({ className, ...props }) {
|
|
|
1561
1561
|
"div",
|
|
1562
1562
|
{
|
|
1563
1563
|
"data-slot": "avatar-group",
|
|
1564
|
-
className:
|
|
1564
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1565
1565
|
"*:data-[slot=avatar]:ring-background group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2",
|
|
1566
1566
|
className
|
|
1567
1567
|
),
|
|
@@ -1578,7 +1578,7 @@ function AvatarGroupCount({
|
|
|
1578
1578
|
"div",
|
|
1579
1579
|
{
|
|
1580
1580
|
"data-slot": "avatar-group-count",
|
|
1581
|
-
className:
|
|
1581
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "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", className),
|
|
1582
1582
|
...props
|
|
1583
1583
|
}
|
|
1584
1584
|
);
|
|
@@ -1617,7 +1617,7 @@ function Badge({
|
|
|
1617
1617
|
defaultTagName: "span",
|
|
1618
1618
|
props: _mergeprops.mergeProps.call(void 0,
|
|
1619
1619
|
{
|
|
1620
|
-
className:
|
|
1620
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, badgeVariants({ className, variant }))
|
|
1621
1621
|
},
|
|
1622
1622
|
props
|
|
1623
1623
|
),
|
|
@@ -1641,7 +1641,7 @@ function Breadcrumb({ className, ...props }) {
|
|
|
1641
1641
|
{
|
|
1642
1642
|
"aria-label": "breadcrumb",
|
|
1643
1643
|
"data-slot": "breadcrumb",
|
|
1644
|
-
className:
|
|
1644
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, className),
|
|
1645
1645
|
...props
|
|
1646
1646
|
}
|
|
1647
1647
|
);
|
|
@@ -1652,7 +1652,7 @@ function BreadcrumbList({ className, ...props }) {
|
|
|
1652
1652
|
"ol",
|
|
1653
1653
|
{
|
|
1654
1654
|
"data-slot": "breadcrumb-list",
|
|
1655
|
-
className:
|
|
1655
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1656
1656
|
"text-muted-foreground gap-1.5 text-xs/relaxed flex flex-wrap items-center break-words",
|
|
1657
1657
|
className
|
|
1658
1658
|
),
|
|
@@ -1666,7 +1666,7 @@ function BreadcrumbItem({ className, ...props }) {
|
|
|
1666
1666
|
"li",
|
|
1667
1667
|
{
|
|
1668
1668
|
"data-slot": "breadcrumb-item",
|
|
1669
|
-
className:
|
|
1669
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "gap-1 inline-flex items-center", className),
|
|
1670
1670
|
...props
|
|
1671
1671
|
}
|
|
1672
1672
|
);
|
|
@@ -1681,7 +1681,7 @@ function BreadcrumbLink({
|
|
|
1681
1681
|
defaultTagName: "a",
|
|
1682
1682
|
props: _mergeprops.mergeProps.call(void 0,
|
|
1683
1683
|
{
|
|
1684
|
-
className:
|
|
1684
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "hover:text-foreground transition-colors", className)
|
|
1685
1685
|
},
|
|
1686
1686
|
props
|
|
1687
1687
|
),
|
|
@@ -1700,7 +1700,7 @@ function BreadcrumbPage({ className, ...props }) {
|
|
|
1700
1700
|
role: "link",
|
|
1701
1701
|
"aria-disabled": "true",
|
|
1702
1702
|
"aria-current": "page",
|
|
1703
|
-
className:
|
|
1703
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-foreground font-normal", className),
|
|
1704
1704
|
...props
|
|
1705
1705
|
}
|
|
1706
1706
|
);
|
|
@@ -1717,7 +1717,7 @@ function BreadcrumbSeparator({
|
|
|
1717
1717
|
"data-slot": "breadcrumb-separator",
|
|
1718
1718
|
role: "presentation",
|
|
1719
1719
|
"aria-hidden": "true",
|
|
1720
|
-
className:
|
|
1720
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "[&>svg]:size-3.5", className),
|
|
1721
1721
|
...props,
|
|
1722
1722
|
children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1723
1723
|
_lucidereact.ChevronRightIcon,
|
|
@@ -1737,7 +1737,7 @@ function BreadcrumbEllipsis({
|
|
|
1737
1737
|
"data-slot": "breadcrumb-ellipsis",
|
|
1738
1738
|
role: "presentation",
|
|
1739
1739
|
"aria-hidden": "true",
|
|
1740
|
-
className:
|
|
1740
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1741
1741
|
"size-4 [&>svg]:size-3.5 flex items-center justify-center",
|
|
1742
1742
|
className
|
|
1743
1743
|
),
|
|
@@ -1777,7 +1777,7 @@ function Calendar({
|
|
|
1777
1777
|
_reactdaypicker.DayPicker,
|
|
1778
1778
|
{
|
|
1779
1779
|
showOutsideDays,
|
|
1780
|
-
className:
|
|
1780
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1781
1781
|
"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",
|
|
1782
1782
|
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
1783
1783
|
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
@@ -1789,89 +1789,89 @@ function Calendar({
|
|
|
1789
1789
|
...formatters
|
|
1790
1790
|
},
|
|
1791
1791
|
classNames: {
|
|
1792
|
-
root:
|
|
1793
|
-
months:
|
|
1792
|
+
root: _chunkUYBCHXXLjs.cn.call(void 0, "w-fit", defaultClassNames.root),
|
|
1793
|
+
months: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1794
1794
|
"flex gap-4 flex-col md:flex-row relative",
|
|
1795
1795
|
defaultClassNames.months
|
|
1796
1796
|
),
|
|
1797
|
-
month:
|
|
1798
|
-
nav:
|
|
1797
|
+
month: _chunkUYBCHXXLjs.cn.call(void 0, "flex flex-col w-full gap-4", defaultClassNames.month),
|
|
1798
|
+
nav: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1799
1799
|
"flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
|
|
1800
1800
|
defaultClassNames.nav
|
|
1801
1801
|
),
|
|
1802
|
-
button_previous:
|
|
1802
|
+
button_previous: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1803
1803
|
buttonVariants({ variant: buttonVariant }),
|
|
1804
1804
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
1805
1805
|
defaultClassNames.button_previous
|
|
1806
1806
|
),
|
|
1807
|
-
button_next:
|
|
1807
|
+
button_next: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1808
1808
|
buttonVariants({ variant: buttonVariant }),
|
|
1809
1809
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
1810
1810
|
defaultClassNames.button_next
|
|
1811
1811
|
),
|
|
1812
|
-
month_caption:
|
|
1812
|
+
month_caption: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1813
1813
|
"flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
|
|
1814
1814
|
defaultClassNames.month_caption
|
|
1815
1815
|
),
|
|
1816
|
-
dropdowns:
|
|
1816
|
+
dropdowns: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1817
1817
|
"w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
|
|
1818
1818
|
defaultClassNames.dropdowns
|
|
1819
1819
|
),
|
|
1820
|
-
dropdown_root:
|
|
1820
|
+
dropdown_root: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1821
1821
|
"relative cn-calendar-dropdown-root rounded-(--cell-radius)",
|
|
1822
1822
|
defaultClassNames.dropdown_root
|
|
1823
1823
|
),
|
|
1824
|
-
dropdown:
|
|
1824
|
+
dropdown: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1825
1825
|
"absolute bg-popover inset-0 opacity-0",
|
|
1826
1826
|
defaultClassNames.dropdown
|
|
1827
1827
|
),
|
|
1828
|
-
caption_label:
|
|
1828
|
+
caption_label: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1829
1829
|
"select-none font-medium",
|
|
1830
1830
|
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",
|
|
1831
1831
|
defaultClassNames.caption_label
|
|
1832
1832
|
),
|
|
1833
1833
|
table: "w-full border-collapse",
|
|
1834
|
-
weekdays:
|
|
1835
|
-
weekday:
|
|
1834
|
+
weekdays: _chunkUYBCHXXLjs.cn.call(void 0, "flex", defaultClassNames.weekdays),
|
|
1835
|
+
weekday: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1836
1836
|
"text-muted-foreground rounded-(--cell-radius) flex-1 font-normal text-[0.8rem] select-none",
|
|
1837
1837
|
defaultClassNames.weekday
|
|
1838
1838
|
),
|
|
1839
|
-
week:
|
|
1840
|
-
week_number_header:
|
|
1839
|
+
week: _chunkUYBCHXXLjs.cn.call(void 0, "flex w-full mt-2", defaultClassNames.week),
|
|
1840
|
+
week_number_header: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1841
1841
|
"select-none w-(--cell-size)",
|
|
1842
1842
|
defaultClassNames.week_number_header
|
|
1843
1843
|
),
|
|
1844
|
-
week_number:
|
|
1844
|
+
week_number: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1845
1845
|
"text-[0.8rem] select-none text-muted-foreground",
|
|
1846
1846
|
defaultClassNames.week_number
|
|
1847
1847
|
),
|
|
1848
|
-
day:
|
|
1848
|
+
day: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1849
1849
|
"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",
|
|
1850
1850
|
props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)" : "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)",
|
|
1851
1851
|
defaultClassNames.day
|
|
1852
1852
|
),
|
|
1853
|
-
range_start:
|
|
1853
|
+
range_start: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1854
1854
|
"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",
|
|
1855
1855
|
defaultClassNames.range_start
|
|
1856
1856
|
),
|
|
1857
|
-
range_middle:
|
|
1858
|
-
range_end:
|
|
1857
|
+
range_middle: _chunkUYBCHXXLjs.cn.call(void 0, "rounded-none", defaultClassNames.range_middle),
|
|
1858
|
+
range_end: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1859
1859
|
"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",
|
|
1860
1860
|
defaultClassNames.range_end
|
|
1861
1861
|
),
|
|
1862
|
-
today:
|
|
1862
|
+
today: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1863
1863
|
"bg-muted text-foreground rounded-(--cell-radius) data-[selected=true]:rounded-none",
|
|
1864
1864
|
defaultClassNames.today
|
|
1865
1865
|
),
|
|
1866
|
-
outside:
|
|
1866
|
+
outside: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1867
1867
|
"text-muted-foreground aria-selected:text-muted-foreground",
|
|
1868
1868
|
defaultClassNames.outside
|
|
1869
1869
|
),
|
|
1870
|
-
disabled:
|
|
1870
|
+
disabled: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1871
1871
|
"text-muted-foreground opacity-50",
|
|
1872
1872
|
defaultClassNames.disabled
|
|
1873
1873
|
),
|
|
1874
|
-
hidden:
|
|
1874
|
+
hidden: _chunkUYBCHXXLjs.cn.call(void 0, "invisible", defaultClassNames.hidden),
|
|
1875
1875
|
...classNames
|
|
1876
1876
|
},
|
|
1877
1877
|
components: {
|
|
@@ -1881,19 +1881,19 @@ function Calendar({
|
|
|
1881
1881
|
{
|
|
1882
1882
|
"data-slot": "calendar",
|
|
1883
1883
|
ref: rootRef,
|
|
1884
|
-
className:
|
|
1884
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, className2),
|
|
1885
1885
|
...props2
|
|
1886
1886
|
}
|
|
1887
1887
|
);
|
|
1888
1888
|
}, "Root"),
|
|
1889
1889
|
Chevron: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className: className2, orientation, ...props2 }) => {
|
|
1890
1890
|
if (orientation === "left") {
|
|
1891
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeftIcon, { className:
|
|
1891
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeftIcon, { className: _chunkUYBCHXXLjs.cn.call(void 0, "size-4", className2), ...props2 });
|
|
1892
1892
|
}
|
|
1893
1893
|
if (orientation === "right") {
|
|
1894
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className:
|
|
1894
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className: _chunkUYBCHXXLjs.cn.call(void 0, "size-4", className2), ...props2 });
|
|
1895
1895
|
}
|
|
1896
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className:
|
|
1896
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: _chunkUYBCHXXLjs.cn.call(void 0, "size-4", className2), ...props2 });
|
|
1897
1897
|
}, "Chevron"),
|
|
1898
1898
|
DayButton: CalendarDayButton,
|
|
1899
1899
|
WeekNumber: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ children, ...props2 }) => {
|
|
@@ -1927,7 +1927,7 @@ function CalendarDayButton({
|
|
|
1927
1927
|
"data-range-start": modifiers.range_start,
|
|
1928
1928
|
"data-range-end": modifiers.range_end,
|
|
1929
1929
|
"data-range-middle": modifiers.range_middle,
|
|
1930
|
-
className:
|
|
1930
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1931
1931
|
"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",
|
|
1932
1932
|
defaultClassNames.day,
|
|
1933
1933
|
className
|
|
@@ -1950,7 +1950,7 @@ function Card({
|
|
|
1950
1950
|
{
|
|
1951
1951
|
"data-slot": "card",
|
|
1952
1952
|
"data-size": size,
|
|
1953
|
-
className:
|
|
1953
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "ring-foreground/10 bg-card text-card-foreground gap-4 overflow-hidden 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", className),
|
|
1954
1954
|
...props
|
|
1955
1955
|
}
|
|
1956
1956
|
);
|
|
@@ -1961,7 +1961,7 @@ function CardHeader({ className, ...props }) {
|
|
|
1961
1961
|
"div",
|
|
1962
1962
|
{
|
|
1963
1963
|
"data-slot": "card-header",
|
|
1964
|
-
className:
|
|
1964
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
1965
1965
|
"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]",
|
|
1966
1966
|
className
|
|
1967
1967
|
),
|
|
@@ -1975,7 +1975,7 @@ function CardTitle({ className, ...props }) {
|
|
|
1975
1975
|
"div",
|
|
1976
1976
|
{
|
|
1977
1977
|
"data-slot": "card-title",
|
|
1978
|
-
className:
|
|
1978
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-sm font-medium", className),
|
|
1979
1979
|
...props
|
|
1980
1980
|
}
|
|
1981
1981
|
);
|
|
@@ -1986,7 +1986,7 @@ function CardDescription({ className, ...props }) {
|
|
|
1986
1986
|
"div",
|
|
1987
1987
|
{
|
|
1988
1988
|
"data-slot": "card-description",
|
|
1989
|
-
className:
|
|
1989
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
|
|
1990
1990
|
...props
|
|
1991
1991
|
}
|
|
1992
1992
|
);
|
|
@@ -1997,7 +1997,7 @@ function CardAction({ className, ...props }) {
|
|
|
1997
1997
|
"div",
|
|
1998
1998
|
{
|
|
1999
1999
|
"data-slot": "card-action",
|
|
2000
|
-
className:
|
|
2000
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
2001
2001
|
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
|
|
2002
2002
|
className
|
|
2003
2003
|
),
|
|
@@ -2011,7 +2011,7 @@ function CardContent({ className, ...props }) {
|
|
|
2011
2011
|
"div",
|
|
2012
2012
|
{
|
|
2013
2013
|
"data-slot": "card-content",
|
|
2014
|
-
className:
|
|
2014
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "px-4 group-data-[size=sm]/card:px-3", className),
|
|
2015
2015
|
...props
|
|
2016
2016
|
}
|
|
2017
2017
|
);
|
|
@@ -2022,7 +2022,7 @@ function CardFooter({ className, ...props }) {
|
|
|
2022
2022
|
"div",
|
|
2023
2023
|
{
|
|
2024
2024
|
"data-slot": "card-footer",
|
|
2025
|
-
className:
|
|
2025
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "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", className),
|
|
2026
2026
|
...props
|
|
2027
2027
|
}
|
|
2028
2028
|
);
|
|
@@ -2114,7 +2114,7 @@ function Carousel({
|
|
|
2114
2114
|
"div",
|
|
2115
2115
|
{
|
|
2116
2116
|
onKeyDownCapture: handleKeyDown,
|
|
2117
|
-
className:
|
|
2117
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "relative", className),
|
|
2118
2118
|
role: "region",
|
|
2119
2119
|
"aria-roledescription": "carousel",
|
|
2120
2120
|
"data-slot": "carousel",
|
|
@@ -2137,7 +2137,7 @@ function CarouselContent({ className, ...props }) {
|
|
|
2137
2137
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2138
2138
|
"div",
|
|
2139
2139
|
{
|
|
2140
|
-
className:
|
|
2140
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
2141
2141
|
"flex",
|
|
2142
2142
|
orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
|
|
2143
2143
|
className
|
|
@@ -2157,7 +2157,7 @@ function CarouselItem({ className, ...props }) {
|
|
|
2157
2157
|
role: "group",
|
|
2158
2158
|
"aria-roledescription": "slide",
|
|
2159
2159
|
"data-slot": "carousel-item",
|
|
2160
|
-
className:
|
|
2160
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
2161
2161
|
"min-w-0 shrink-0 grow-0 basis-full",
|
|
2162
2162
|
orientation === "horizontal" ? "pl-4" : "pt-4",
|
|
2163
2163
|
className
|
|
@@ -2180,7 +2180,7 @@ function CarouselPrevious({
|
|
|
2180
2180
|
"data-slot": "carousel-previous",
|
|
2181
2181
|
variant,
|
|
2182
2182
|
size,
|
|
2183
|
-
className:
|
|
2183
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
2184
2184
|
"rounded-full absolute touch-manipulation",
|
|
2185
2185
|
orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
2186
2186
|
className
|
|
@@ -2212,7 +2212,7 @@ function CarouselNext({
|
|
|
2212
2212
|
"data-slot": "carousel-next",
|
|
2213
2213
|
variant,
|
|
2214
2214
|
size,
|
|
2215
|
-
className:
|
|
2215
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
2216
2216
|
"rounded-full absolute touch-manipulation",
|
|
2217
2217
|
orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
2218
2218
|
className
|
|
@@ -2260,7 +2260,7 @@ function ChartContainer({
|
|
|
2260
2260
|
{
|
|
2261
2261
|
"data-slot": "chart",
|
|
2262
2262
|
"data-chart": chartId,
|
|
2263
|
-
className:
|
|
2263
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
2264
2264
|
"[&_.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",
|
|
2265
2265
|
className
|
|
2266
2266
|
),
|
|
@@ -2324,12 +2324,12 @@ function ChartTooltipContent({
|
|
|
2324
2324
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
2325
2325
|
const value = !labelKey && typeof label === "string" ? _optionalChain([config, 'access', _58 => _58[label], 'optionalAccess', _59 => _59.label]) || label : _optionalChain([itemConfig, 'optionalAccess', _60 => _60.label]);
|
|
2326
2326
|
if (labelFormatter) {
|
|
2327
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2327
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkUYBCHXXLjs.cn.call(void 0, "font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
2328
2328
|
}
|
|
2329
2329
|
if (!value) {
|
|
2330
2330
|
return null;
|
|
2331
2331
|
}
|
|
2332
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2332
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkUYBCHXXLjs.cn.call(void 0, "font-medium", labelClassName), children: value });
|
|
2333
2333
|
}, [
|
|
2334
2334
|
label,
|
|
2335
2335
|
labelFormatter,
|
|
@@ -2346,7 +2346,7 @@ function ChartTooltipContent({
|
|
|
2346
2346
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2347
2347
|
"div",
|
|
2348
2348
|
{
|
|
2349
|
-
className:
|
|
2349
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
2350
2350
|
"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",
|
|
2351
2351
|
className
|
|
2352
2352
|
),
|
|
@@ -2359,7 +2359,7 @@ function ChartTooltipContent({
|
|
|
2359
2359
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2360
2360
|
"div",
|
|
2361
2361
|
{
|
|
2362
|
-
className:
|
|
2362
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
2363
2363
|
"[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
|
|
2364
2364
|
indicator === "dot" && "items-center"
|
|
2365
2365
|
),
|
|
@@ -2367,7 +2367,7 @@ function ChartTooltipContent({
|
|
|
2367
2367
|
_optionalChain([itemConfig, 'optionalAccess', _65 => _65.icon]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2368
2368
|
"div",
|
|
2369
2369
|
{
|
|
2370
|
-
className:
|
|
2370
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
2371
2371
|
"shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",
|
|
2372
2372
|
{
|
|
2373
2373
|
"h-2.5 w-2.5": indicator === "dot",
|
|
@@ -2385,7 +2385,7 @@ function ChartTooltipContent({
|
|
|
2385
2385
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2386
2386
|
"div",
|
|
2387
2387
|
{
|
|
2388
|
-
className:
|
|
2388
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
2389
2389
|
"flex flex-1 justify-between leading-none",
|
|
2390
2390
|
nestLabel ? "items-end" : "items-center"
|
|
2391
2391
|
),
|
|
@@ -2423,7 +2423,7 @@ function ChartLegendContent({
|
|
|
2423
2423
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2424
2424
|
"div",
|
|
2425
2425
|
{
|
|
2426
|
-
className:
|
|
2426
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
2427
2427
|
"flex items-center justify-center gap-4",
|
|
2428
2428
|
verticalAlign === "top" ? "pb-3" : "pt-3",
|
|
2429
2429
|
className
|
|
@@ -2434,7 +2434,7 @@ function ChartLegendContent({
|
|
|
2434
2434
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2435
2435
|
"div",
|
|
2436
2436
|
{
|
|
2437
|
-
className:
|
|
2437
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
2438
2438
|
"[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"
|
|
2439
2439
|
),
|
|
2440
2440
|
children: [
|
|
@@ -2481,7 +2481,7 @@ function Checkbox({ className, ...props }) {
|
|
|
2481
2481
|
_checkbox.Checkbox.Root,
|
|
2482
2482
|
{
|
|
2483
2483
|
"data-slot": "checkbox",
|
|
2484
|
-
className:
|
|
2484
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
2485
2485
|
"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",
|
|
2486
2486
|
className
|
|
2487
2487
|
),
|
|
@@ -2549,7 +2549,7 @@ function DialogOverlay({
|
|
|
2549
2549
|
_dialog.Dialog.Backdrop,
|
|
2550
2550
|
{
|
|
2551
2551
|
"data-slot": "dialog-overlay",
|
|
2552
|
-
className:
|
|
2552
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "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", className),
|
|
2553
2553
|
...props
|
|
2554
2554
|
}
|
|
2555
2555
|
);
|
|
@@ -2567,7 +2567,7 @@ function DialogContent({
|
|
|
2567
2567
|
_dialog.Dialog.Popup,
|
|
2568
2568
|
{
|
|
2569
2569
|
"data-slot": "dialog-content",
|
|
2570
|
-
className:
|
|
2570
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
2571
2571
|
"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",
|
|
2572
2572
|
className
|
|
2573
2573
|
),
|
|
@@ -2606,7 +2606,7 @@ function DialogHeader({ className, ...props }) {
|
|
|
2606
2606
|
"div",
|
|
2607
2607
|
{
|
|
2608
2608
|
"data-slot": "dialog-header",
|
|
2609
|
-
className:
|
|
2609
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "gap-1 flex flex-col", className),
|
|
2610
2610
|
...props
|
|
2611
2611
|
}
|
|
2612
2612
|
);
|
|
@@ -2622,7 +2622,7 @@ function DialogFooter({
|
|
|
2622
2622
|
"div",
|
|
2623
2623
|
{
|
|
2624
2624
|
"data-slot": "dialog-footer",
|
|
2625
|
-
className:
|
|
2625
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
2626
2626
|
"gap-2 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
2627
2627
|
className
|
|
2628
2628
|
),
|
|
@@ -2640,7 +2640,7 @@ function DialogTitle({ className, ...props }) {
|
|
|
2640
2640
|
_dialog.Dialog.Title,
|
|
2641
2641
|
{
|
|
2642
2642
|
"data-slot": "dialog-title",
|
|
2643
|
-
className:
|
|
2643
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-sm font-medium", className),
|
|
2644
2644
|
...props
|
|
2645
2645
|
}
|
|
2646
2646
|
);
|
|
@@ -2654,7 +2654,7 @@ function DialogDescription({
|
|
|
2654
2654
|
_dialog.Dialog.Description,
|
|
2655
2655
|
{
|
|
2656
2656
|
"data-slot": "dialog-description",
|
|
2657
|
-
className:
|
|
2657
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed *:[a]:underline *:[a]:underline-offset-3", className),
|
|
2658
2658
|
...props
|
|
2659
2659
|
}
|
|
2660
2660
|
);
|
|
@@ -2673,7 +2673,7 @@ function Input({ className, type, ...props }) {
|
|
|
2673
2673
|
{
|
|
2674
2674
|
type,
|
|
2675
2675
|
"data-slot": "input",
|
|
2676
|
-
className:
|
|
2676
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
2677
2677
|
"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",
|
|
2678
2678
|
className
|
|
2679
2679
|
),
|
|
@@ -2690,7 +2690,7 @@ function Textarea({ className, ...props }) {
|
|
|
2690
2690
|
"textarea",
|
|
2691
2691
|
{
|
|
2692
2692
|
"data-slot": "textarea",
|
|
2693
|
-
className:
|
|
2693
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
2694
2694
|
"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",
|
|
2695
2695
|
className
|
|
2696
2696
|
),
|
|
@@ -2708,7 +2708,7 @@ function InputGroup({ className, ...props }) {
|
|
|
2708
2708
|
{
|
|
2709
2709
|
"data-slot": "input-group",
|
|
2710
2710
|
role: "group",
|
|
2711
|
-
className:
|
|
2711
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
2712
2712
|
"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",
|
|
2713
2713
|
className
|
|
2714
2714
|
),
|
|
@@ -2744,7 +2744,7 @@ function InputGroupAddon({
|
|
|
2744
2744
|
role: "group",
|
|
2745
2745
|
"data-slot": "input-group-addon",
|
|
2746
2746
|
"data-align": align,
|
|
2747
|
-
className:
|
|
2747
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, inputGroupAddonVariants({ align }), className),
|
|
2748
2748
|
onClick: (e) => {
|
|
2749
2749
|
if (e.target.closest("button")) {
|
|
2750
2750
|
return;
|
|
@@ -2785,7 +2785,7 @@ function InputGroupButton({
|
|
|
2785
2785
|
type,
|
|
2786
2786
|
"data-size": size,
|
|
2787
2787
|
variant,
|
|
2788
|
-
className:
|
|
2788
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, inputGroupButtonVariants({ size }), className),
|
|
2789
2789
|
...props
|
|
2790
2790
|
}
|
|
2791
2791
|
);
|
|
@@ -2795,7 +2795,7 @@ function InputGroupText({ className, ...props }) {
|
|
|
2795
2795
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2796
2796
|
"span",
|
|
2797
2797
|
{
|
|
2798
|
-
className:
|
|
2798
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
2799
2799
|
"text-muted-foreground gap-2 text-xs/relaxed [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none",
|
|
2800
2800
|
className
|
|
2801
2801
|
),
|
|
@@ -2812,7 +2812,7 @@ function InputGroupInput({
|
|
|
2812
2812
|
Input,
|
|
2813
2813
|
{
|
|
2814
2814
|
"data-slot": "input-group-control",
|
|
2815
|
-
className:
|
|
2815
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent flex-1", className),
|
|
2816
2816
|
...props
|
|
2817
2817
|
}
|
|
2818
2818
|
);
|
|
@@ -2826,7 +2826,7 @@ function InputGroupTextarea({
|
|
|
2826
2826
|
Textarea,
|
|
2827
2827
|
{
|
|
2828
2828
|
"data-slot": "input-group-control",
|
|
2829
|
-
className:
|
|
2829
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "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", className),
|
|
2830
2830
|
...props
|
|
2831
2831
|
}
|
|
2832
2832
|
);
|
|
@@ -2844,7 +2844,7 @@ function Command({
|
|
|
2844
2844
|
_cmdk.Command,
|
|
2845
2845
|
{
|
|
2846
2846
|
"data-slot": "command",
|
|
2847
|
-
className:
|
|
2847
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
2848
2848
|
"bg-popover text-popover-foreground rounded-xl p-1 flex size-full flex-col overflow-hidden",
|
|
2849
2849
|
className
|
|
2850
2850
|
),
|
|
@@ -2869,7 +2869,7 @@ function CommandDialog({
|
|
|
2869
2869
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2870
2870
|
DialogContent,
|
|
2871
2871
|
{
|
|
2872
|
-
className:
|
|
2872
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "rounded-xl! p-0 overflow-hidden p-0", className),
|
|
2873
2873
|
showCloseButton,
|
|
2874
2874
|
children
|
|
2875
2875
|
}
|
|
@@ -2886,7 +2886,7 @@ function CommandInput({
|
|
|
2886
2886
|
_cmdk.Command.Input,
|
|
2887
2887
|
{
|
|
2888
2888
|
"data-slot": "command-input",
|
|
2889
|
-
className:
|
|
2889
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
2890
2890
|
"w-full text-xs/relaxed outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
2891
2891
|
className
|
|
2892
2892
|
),
|
|
@@ -2905,7 +2905,7 @@ function CommandList({
|
|
|
2905
2905
|
_cmdk.Command.List,
|
|
2906
2906
|
{
|
|
2907
2907
|
"data-slot": "command-list",
|
|
2908
|
-
className:
|
|
2908
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
2909
2909
|
"no-scrollbar max-h-72 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto",
|
|
2910
2910
|
className
|
|
2911
2911
|
),
|
|
@@ -2922,7 +2922,7 @@ function CommandEmpty({
|
|
|
2922
2922
|
_cmdk.Command.Empty,
|
|
2923
2923
|
{
|
|
2924
2924
|
"data-slot": "command-empty",
|
|
2925
|
-
className:
|
|
2925
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "py-6 text-center text-xs/relaxed", className),
|
|
2926
2926
|
...props
|
|
2927
2927
|
}
|
|
2928
2928
|
);
|
|
@@ -2936,7 +2936,7 @@ function CommandGroup({
|
|
|
2936
2936
|
_cmdk.Command.Group,
|
|
2937
2937
|
{
|
|
2938
2938
|
"data-slot": "command-group",
|
|
2939
|
-
className:
|
|
2939
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "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", className),
|
|
2940
2940
|
...props
|
|
2941
2941
|
}
|
|
2942
2942
|
);
|
|
@@ -2950,7 +2950,7 @@ function CommandSeparator({
|
|
|
2950
2950
|
_cmdk.Command.Separator,
|
|
2951
2951
|
{
|
|
2952
2952
|
"data-slot": "command-separator",
|
|
2953
|
-
className:
|
|
2953
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
2954
2954
|
...props
|
|
2955
2955
|
}
|
|
2956
2956
|
);
|
|
@@ -2965,7 +2965,7 @@ function CommandItem({
|
|
|
2965
2965
|
_cmdk.Command.Item,
|
|
2966
2966
|
{
|
|
2967
2967
|
"data-slot": "command-item",
|
|
2968
|
-
className:
|
|
2968
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
2969
2969
|
"data-selected:bg-muted data-selected:text-foreground data-selected:*:[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",
|
|
2970
2970
|
className
|
|
2971
2971
|
),
|
|
@@ -2986,7 +2986,7 @@ function CommandShortcut({
|
|
|
2986
2986
|
"span",
|
|
2987
2987
|
{
|
|
2988
2988
|
"data-slot": "command-shortcut",
|
|
2989
|
-
className:
|
|
2989
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-muted-foreground group-data-selected/command-item:text-foreground ml-auto text-[0.625rem] tracking-widest", className),
|
|
2990
2990
|
...props
|
|
2991
2991
|
}
|
|
2992
2992
|
);
|
|
@@ -3013,7 +3013,7 @@ function ContextMenuTrigger({
|
|
|
3013
3013
|
_contextmenu.ContextMenu.Trigger,
|
|
3014
3014
|
{
|
|
3015
3015
|
"data-slot": "context-menu-trigger",
|
|
3016
|
-
className:
|
|
3016
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "select-none", className),
|
|
3017
3017
|
...props
|
|
3018
3018
|
}
|
|
3019
3019
|
);
|
|
@@ -3039,7 +3039,7 @@ function ContextMenuContent({
|
|
|
3039
3039
|
_contextmenu.ContextMenu.Popup,
|
|
3040
3040
|
{
|
|
3041
3041
|
"data-slot": "context-menu-content",
|
|
3042
|
-
className:
|
|
3042
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "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", className),
|
|
3043
3043
|
...props
|
|
3044
3044
|
}
|
|
3045
3045
|
)
|
|
@@ -3061,7 +3061,7 @@ function ContextMenuLabel({
|
|
|
3061
3061
|
{
|
|
3062
3062
|
"data-slot": "context-menu-label",
|
|
3063
3063
|
"data-inset": inset,
|
|
3064
|
-
className:
|
|
3064
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
|
|
3065
3065
|
...props
|
|
3066
3066
|
}
|
|
3067
3067
|
);
|
|
@@ -3079,7 +3079,7 @@ function ContextMenuItem({
|
|
|
3079
3079
|
"data-slot": "context-menu-item",
|
|
3080
3080
|
"data-inset": inset,
|
|
3081
3081
|
"data-variant": variant,
|
|
3082
|
-
className:
|
|
3082
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
3083
3083
|
"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",
|
|
3084
3084
|
className
|
|
3085
3085
|
),
|
|
@@ -3103,7 +3103,7 @@ function ContextMenuSubTrigger({
|
|
|
3103
3103
|
{
|
|
3104
3104
|
"data-slot": "context-menu-sub-trigger",
|
|
3105
3105
|
"data-inset": inset,
|
|
3106
|
-
className:
|
|
3106
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
3107
3107
|
"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",
|
|
3108
3108
|
className
|
|
3109
3109
|
),
|
|
@@ -3140,7 +3140,7 @@ function ContextMenuCheckboxItem({
|
|
|
3140
3140
|
_contextmenu.ContextMenu.CheckboxItem,
|
|
3141
3141
|
{
|
|
3142
3142
|
"data-slot": "context-menu-checkbox-item",
|
|
3143
|
-
className:
|
|
3143
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
3144
3144
|
"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",
|
|
3145
3145
|
className
|
|
3146
3146
|
),
|
|
@@ -3178,7 +3178,7 @@ function ContextMenuRadioItem({
|
|
|
3178
3178
|
_contextmenu.ContextMenu.RadioItem,
|
|
3179
3179
|
{
|
|
3180
3180
|
"data-slot": "context-menu-radio-item",
|
|
3181
|
-
className:
|
|
3181
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
3182
3182
|
"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",
|
|
3183
3183
|
className
|
|
3184
3184
|
),
|
|
@@ -3202,7 +3202,7 @@ function ContextMenuSeparator({
|
|
|
3202
3202
|
_contextmenu.ContextMenu.Separator,
|
|
3203
3203
|
{
|
|
3204
3204
|
"data-slot": "context-menu-separator",
|
|
3205
|
-
className:
|
|
3205
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
3206
3206
|
...props
|
|
3207
3207
|
}
|
|
3208
3208
|
);
|
|
@@ -3216,7 +3216,7 @@ function ContextMenuShortcut({
|
|
|
3216
3216
|
"span",
|
|
3217
3217
|
{
|
|
3218
3218
|
"data-slot": "context-menu-shortcut",
|
|
3219
|
-
className:
|
|
3219
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-muted-foreground group-focus/context-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest", className),
|
|
3220
3220
|
...props
|
|
3221
3221
|
}
|
|
3222
3222
|
);
|
|
@@ -3258,7 +3258,7 @@ function DrawerOverlay({
|
|
|
3258
3258
|
_vaul.Drawer.Overlay,
|
|
3259
3259
|
{
|
|
3260
3260
|
"data-slot": "drawer-overlay",
|
|
3261
|
-
className:
|
|
3261
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "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", className),
|
|
3262
3262
|
...props
|
|
3263
3263
|
}
|
|
3264
3264
|
);
|
|
@@ -3275,7 +3275,7 @@ function DrawerContent({
|
|
|
3275
3275
|
_vaul.Drawer.Content,
|
|
3276
3276
|
{
|
|
3277
3277
|
"data-slot": "drawer-content",
|
|
3278
|
-
className:
|
|
3278
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
3279
3279
|
"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",
|
|
3280
3280
|
className
|
|
3281
3281
|
),
|
|
@@ -3294,7 +3294,7 @@ function DrawerHeader({ className, ...props }) {
|
|
|
3294
3294
|
"div",
|
|
3295
3295
|
{
|
|
3296
3296
|
"data-slot": "drawer-header",
|
|
3297
|
-
className:
|
|
3297
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "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", className),
|
|
3298
3298
|
...props
|
|
3299
3299
|
}
|
|
3300
3300
|
);
|
|
@@ -3305,7 +3305,7 @@ function DrawerFooter({ className, ...props }) {
|
|
|
3305
3305
|
"div",
|
|
3306
3306
|
{
|
|
3307
3307
|
"data-slot": "drawer-footer",
|
|
3308
|
-
className:
|
|
3308
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "gap-2 p-4 mt-auto flex flex-col", className),
|
|
3309
3309
|
...props
|
|
3310
3310
|
}
|
|
3311
3311
|
);
|
|
@@ -3319,7 +3319,7 @@ function DrawerTitle({
|
|
|
3319
3319
|
_vaul.Drawer.Title,
|
|
3320
3320
|
{
|
|
3321
3321
|
"data-slot": "drawer-title",
|
|
3322
|
-
className:
|
|
3322
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-foreground text-sm font-medium", className),
|
|
3323
3323
|
...props
|
|
3324
3324
|
}
|
|
3325
3325
|
);
|
|
@@ -3333,7 +3333,7 @@ function DrawerDescription({
|
|
|
3333
3333
|
_vaul.Drawer.Description,
|
|
3334
3334
|
{
|
|
3335
3335
|
"data-slot": "drawer-description",
|
|
3336
|
-
className:
|
|
3336
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
|
|
3337
3337
|
...props
|
|
3338
3338
|
}
|
|
3339
3339
|
);
|
|
@@ -3376,7 +3376,7 @@ function DropdownMenuContent({
|
|
|
3376
3376
|
_menu.Menu.Popup,
|
|
3377
3377
|
{
|
|
3378
3378
|
"data-slot": "dropdown-menu-content",
|
|
3379
|
-
className:
|
|
3379
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "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", className),
|
|
3380
3380
|
...props
|
|
3381
3381
|
}
|
|
3382
3382
|
)
|
|
@@ -3398,7 +3398,7 @@ function DropdownMenuLabel({
|
|
|
3398
3398
|
{
|
|
3399
3399
|
"data-slot": "dropdown-menu-label",
|
|
3400
3400
|
"data-inset": inset,
|
|
3401
|
-
className:
|
|
3401
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
|
|
3402
3402
|
...props
|
|
3403
3403
|
}
|
|
3404
3404
|
);
|
|
@@ -3416,7 +3416,7 @@ function DropdownMenuItem({
|
|
|
3416
3416
|
"data-slot": "dropdown-menu-item",
|
|
3417
3417
|
"data-inset": inset,
|
|
3418
3418
|
"data-variant": variant,
|
|
3419
|
-
className:
|
|
3419
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
3420
3420
|
"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",
|
|
3421
3421
|
className
|
|
3422
3422
|
),
|
|
@@ -3440,7 +3440,7 @@ function DropdownMenuSubTrigger({
|
|
|
3440
3440
|
{
|
|
3441
3441
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
3442
3442
|
"data-inset": inset,
|
|
3443
|
-
className:
|
|
3443
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
3444
3444
|
"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",
|
|
3445
3445
|
className
|
|
3446
3446
|
),
|
|
@@ -3465,7 +3465,7 @@ function DropdownMenuSubContent({
|
|
|
3465
3465
|
DropdownMenuContent,
|
|
3466
3466
|
{
|
|
3467
3467
|
"data-slot": "dropdown-menu-sub-content",
|
|
3468
|
-
className:
|
|
3468
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "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", className),
|
|
3469
3469
|
align,
|
|
3470
3470
|
alignOffset,
|
|
3471
3471
|
side,
|
|
@@ -3485,7 +3485,7 @@ function DropdownMenuCheckboxItem({
|
|
|
3485
3485
|
_menu.Menu.CheckboxItem,
|
|
3486
3486
|
{
|
|
3487
3487
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
3488
|
-
className:
|
|
3488
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
3489
3489
|
"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",
|
|
3490
3490
|
className
|
|
3491
3491
|
),
|
|
@@ -3528,7 +3528,7 @@ function DropdownMenuRadioItem({
|
|
|
3528
3528
|
_menu.Menu.RadioItem,
|
|
3529
3529
|
{
|
|
3530
3530
|
"data-slot": "dropdown-menu-radio-item",
|
|
3531
|
-
className:
|
|
3531
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
3532
3532
|
"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",
|
|
3533
3533
|
className
|
|
3534
3534
|
),
|
|
@@ -3559,7 +3559,7 @@ function DropdownMenuSeparator({
|
|
|
3559
3559
|
_menu.Menu.Separator,
|
|
3560
3560
|
{
|
|
3561
3561
|
"data-slot": "dropdown-menu-separator",
|
|
3562
|
-
className:
|
|
3562
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
3563
3563
|
...props
|
|
3564
3564
|
}
|
|
3565
3565
|
);
|
|
@@ -3573,7 +3573,7 @@ function DropdownMenuShortcut({
|
|
|
3573
3573
|
"span",
|
|
3574
3574
|
{
|
|
3575
3575
|
"data-slot": "dropdown-menu-shortcut",
|
|
3576
|
-
className:
|
|
3576
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest", className),
|
|
3577
3577
|
...props
|
|
3578
3578
|
}
|
|
3579
3579
|
);
|
|
@@ -3591,7 +3591,7 @@ function Label({ className, ...props }) {
|
|
|
3591
3591
|
"label",
|
|
3592
3592
|
{
|
|
3593
3593
|
"data-slot": "label",
|
|
3594
|
-
className:
|
|
3594
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
3595
3595
|
"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",
|
|
3596
3596
|
className
|
|
3597
3597
|
),
|
|
@@ -3614,7 +3614,7 @@ function Separator({
|
|
|
3614
3614
|
{
|
|
3615
3615
|
"data-slot": "separator",
|
|
3616
3616
|
orientation,
|
|
3617
|
-
className:
|
|
3617
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
3618
3618
|
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch",
|
|
3619
3619
|
className
|
|
3620
3620
|
),
|
|
@@ -3631,7 +3631,7 @@ function FieldSet({ className, ...props }) {
|
|
|
3631
3631
|
"fieldset",
|
|
3632
3632
|
{
|
|
3633
3633
|
"data-slot": "field-set",
|
|
3634
|
-
className:
|
|
3634
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col", className),
|
|
3635
3635
|
...props
|
|
3636
3636
|
}
|
|
3637
3637
|
);
|
|
@@ -3647,7 +3647,7 @@ function FieldLegend({
|
|
|
3647
3647
|
{
|
|
3648
3648
|
"data-slot": "field-legend",
|
|
3649
3649
|
"data-variant": variant,
|
|
3650
|
-
className:
|
|
3650
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "mb-2 font-medium data-[variant=label]:text-xs/relaxed data-[variant=legend]:text-sm", className),
|
|
3651
3651
|
...props
|
|
3652
3652
|
}
|
|
3653
3653
|
);
|
|
@@ -3658,7 +3658,7 @@ function FieldGroup({ className, ...props }) {
|
|
|
3658
3658
|
"div",
|
|
3659
3659
|
{
|
|
3660
3660
|
"data-slot": "field-group",
|
|
3661
|
-
className:
|
|
3661
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
3662
3662
|
"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",
|
|
3663
3663
|
className
|
|
3664
3664
|
),
|
|
@@ -3690,7 +3690,7 @@ function Field({
|
|
|
3690
3690
|
role: "group",
|
|
3691
3691
|
"data-slot": "field",
|
|
3692
3692
|
"data-orientation": orientation,
|
|
3693
|
-
className:
|
|
3693
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, fieldVariants({ orientation }), className),
|
|
3694
3694
|
...props
|
|
3695
3695
|
}
|
|
3696
3696
|
);
|
|
@@ -3701,7 +3701,7 @@ function FieldContent({ className, ...props }) {
|
|
|
3701
3701
|
"div",
|
|
3702
3702
|
{
|
|
3703
3703
|
"data-slot": "field-content",
|
|
3704
|
-
className:
|
|
3704
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
3705
3705
|
"gap-0.5 group/field-content flex flex-1 flex-col leading-snug",
|
|
3706
3706
|
className
|
|
3707
3707
|
),
|
|
@@ -3718,7 +3718,7 @@ function FieldLabel({
|
|
|
3718
3718
|
Label,
|
|
3719
3719
|
{
|
|
3720
3720
|
"data-slot": "field-label",
|
|
3721
|
-
className:
|
|
3721
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
3722
3722
|
"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",
|
|
3723
3723
|
"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",
|
|
3724
3724
|
className
|
|
@@ -3733,7 +3733,7 @@ function FieldTitle({ className, ...props }) {
|
|
|
3733
3733
|
"div",
|
|
3734
3734
|
{
|
|
3735
3735
|
"data-slot": "field-label",
|
|
3736
|
-
className:
|
|
3736
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
3737
3737
|
"gap-2 text-xs/relaxed font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center leading-snug",
|
|
3738
3738
|
className
|
|
3739
3739
|
),
|
|
@@ -3747,7 +3747,7 @@ function FieldDescription({ className, ...props }) {
|
|
|
3747
3747
|
"p",
|
|
3748
3748
|
{
|
|
3749
3749
|
"data-slot": "field-description",
|
|
3750
|
-
className:
|
|
3750
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
3751
3751
|
"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",
|
|
3752
3752
|
"last:mt-0 nth-last-2:-mt-1",
|
|
3753
3753
|
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
@@ -3768,7 +3768,7 @@ function FieldSeparator({
|
|
|
3768
3768
|
{
|
|
3769
3769
|
"data-slot": "field-separator",
|
|
3770
3770
|
"data-content": !!children,
|
|
3771
|
-
className:
|
|
3771
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "-my-2 h-5 text-xs/relaxed group-data-[variant=outline]/field-group:-mb-2 relative", className),
|
|
3772
3772
|
...props,
|
|
3773
3773
|
children: [
|
|
3774
3774
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, { className: "absolute inset-0 top-1/2" }),
|
|
@@ -3816,7 +3816,7 @@ function FieldError({
|
|
|
3816
3816
|
{
|
|
3817
3817
|
role: "alert",
|
|
3818
3818
|
"data-slot": "field-error",
|
|
3819
|
-
className:
|
|
3819
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-destructive text-xs/relaxed font-normal", className),
|
|
3820
3820
|
...props,
|
|
3821
3821
|
children: content
|
|
3822
3822
|
}
|
|
@@ -3859,7 +3859,7 @@ function HoverCardContent({
|
|
|
3859
3859
|
_previewcard.PreviewCard.Popup,
|
|
3860
3860
|
{
|
|
3861
3861
|
"data-slot": "hover-card-content",
|
|
3862
|
-
className:
|
|
3862
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
3863
3863
|
"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",
|
|
3864
3864
|
className
|
|
3865
3865
|
),
|
|
@@ -3885,12 +3885,12 @@ function InputOTP({
|
|
|
3885
3885
|
_inputotp.OTPInput,
|
|
3886
3886
|
{
|
|
3887
3887
|
"data-slot": "input-otp",
|
|
3888
|
-
containerClassName:
|
|
3888
|
+
containerClassName: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
3889
3889
|
"cn-input-otp flex items-center has-disabled:opacity-50",
|
|
3890
3890
|
containerClassName
|
|
3891
3891
|
),
|
|
3892
3892
|
spellCheck: false,
|
|
3893
|
-
className:
|
|
3893
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
3894
3894
|
"disabled:cursor-not-allowed",
|
|
3895
3895
|
className
|
|
3896
3896
|
),
|
|
@@ -3904,7 +3904,7 @@ function InputOTPGroup({ className, ...props }) {
|
|
|
3904
3904
|
"div",
|
|
3905
3905
|
{
|
|
3906
3906
|
"data-slot": "input-otp-group",
|
|
3907
|
-
className:
|
|
3907
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "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", className),
|
|
3908
3908
|
...props
|
|
3909
3909
|
}
|
|
3910
3910
|
);
|
|
@@ -3922,7 +3922,7 @@ function InputOTPSlot({
|
|
|
3922
3922
|
{
|
|
3923
3923
|
"data-slot": "input-otp-slot",
|
|
3924
3924
|
"data-active": isActive,
|
|
3925
|
-
className:
|
|
3925
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
3926
3926
|
"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",
|
|
3927
3927
|
className
|
|
3928
3928
|
),
|
|
@@ -3966,7 +3966,7 @@ function NavigationMenu({
|
|
|
3966
3966
|
_navigationmenu.NavigationMenu.Root,
|
|
3967
3967
|
{
|
|
3968
3968
|
"data-slot": "navigation-menu",
|
|
3969
|
-
className:
|
|
3969
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
3970
3970
|
"max-w-max group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
|
|
3971
3971
|
className
|
|
3972
3972
|
),
|
|
@@ -3987,7 +3987,7 @@ function NavigationMenuList({
|
|
|
3987
3987
|
_navigationmenu.NavigationMenu.List,
|
|
3988
3988
|
{
|
|
3989
3989
|
"data-slot": "navigation-menu-list",
|
|
3990
|
-
className:
|
|
3990
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
3991
3991
|
"gap-0 group flex flex-1 list-none items-center justify-center",
|
|
3992
3992
|
className
|
|
3993
3993
|
),
|
|
@@ -4004,7 +4004,7 @@ function NavigationMenuItem({
|
|
|
4004
4004
|
_navigationmenu.NavigationMenu.Item,
|
|
4005
4005
|
{
|
|
4006
4006
|
"data-slot": "navigation-menu-item",
|
|
4007
|
-
className:
|
|
4007
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "relative", className),
|
|
4008
4008
|
...props
|
|
4009
4009
|
}
|
|
4010
4010
|
);
|
|
@@ -4022,7 +4022,7 @@ function NavigationMenuTrigger({
|
|
|
4022
4022
|
_navigationmenu.NavigationMenu.Trigger,
|
|
4023
4023
|
{
|
|
4024
4024
|
"data-slot": "navigation-menu-trigger",
|
|
4025
|
-
className:
|
|
4025
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, navigationMenuTriggerStyle(), "group", className),
|
|
4026
4026
|
...props,
|
|
4027
4027
|
children: [
|
|
4028
4028
|
children,
|
|
@@ -4041,7 +4041,7 @@ function NavigationMenuContent({
|
|
|
4041
4041
|
_navigationmenu.NavigationMenu.Content,
|
|
4042
4042
|
{
|
|
4043
4043
|
"data-slot": "navigation-menu-content",
|
|
4044
|
-
className:
|
|
4044
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
4045
4045
|
"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",
|
|
4046
4046
|
className
|
|
4047
4047
|
),
|
|
@@ -4065,7 +4065,7 @@ function NavigationMenuPositioner({
|
|
|
4065
4065
|
sideOffset,
|
|
4066
4066
|
align,
|
|
4067
4067
|
alignOffset,
|
|
4068
|
-
className:
|
|
4068
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
4069
4069
|
"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",
|
|
4070
4070
|
className
|
|
4071
4071
|
),
|
|
@@ -4083,7 +4083,7 @@ function NavigationMenuLink({
|
|
|
4083
4083
|
_navigationmenu.NavigationMenu.Link,
|
|
4084
4084
|
{
|
|
4085
4085
|
"data-slot": "navigation-menu-link",
|
|
4086
|
-
className:
|
|
4086
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "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", className),
|
|
4087
4087
|
...props
|
|
4088
4088
|
}
|
|
4089
4089
|
);
|
|
@@ -4097,7 +4097,7 @@ function NavigationMenuIndicator({
|
|
|
4097
4097
|
_navigationmenu.NavigationMenu.Icon,
|
|
4098
4098
|
{
|
|
4099
4099
|
"data-slot": "navigation-menu-indicator",
|
|
4100
|
-
className:
|
|
4100
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
4101
4101
|
"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",
|
|
4102
4102
|
className
|
|
4103
4103
|
),
|
|
@@ -4139,7 +4139,7 @@ function PopoverContent({
|
|
|
4139
4139
|
_popover.Popover.Popup,
|
|
4140
4140
|
{
|
|
4141
4141
|
"data-slot": "popover-content",
|
|
4142
|
-
className:
|
|
4142
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
4143
4143
|
"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",
|
|
4144
4144
|
className
|
|
4145
4145
|
),
|
|
@@ -4155,7 +4155,7 @@ function PopoverHeader({ className, ...props }) {
|
|
|
4155
4155
|
"div",
|
|
4156
4156
|
{
|
|
4157
4157
|
"data-slot": "popover-header",
|
|
4158
|
-
className:
|
|
4158
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "flex flex-col gap-1 text-xs", className),
|
|
4159
4159
|
...props
|
|
4160
4160
|
}
|
|
4161
4161
|
);
|
|
@@ -4166,7 +4166,7 @@ function PopoverTitle({ className, ...props }) {
|
|
|
4166
4166
|
_popover.Popover.Title,
|
|
4167
4167
|
{
|
|
4168
4168
|
"data-slot": "popover-title",
|
|
4169
|
-
className:
|
|
4169
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-sm font-medium", className),
|
|
4170
4170
|
...props
|
|
4171
4171
|
}
|
|
4172
4172
|
);
|
|
@@ -4180,7 +4180,7 @@ function PopoverDescription({
|
|
|
4180
4180
|
_popover.Popover.Description,
|
|
4181
4181
|
{
|
|
4182
4182
|
"data-slot": "popover-description",
|
|
4183
|
-
className:
|
|
4183
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-muted-foreground", className),
|
|
4184
4184
|
...props
|
|
4185
4185
|
}
|
|
4186
4186
|
);
|
|
@@ -4201,7 +4201,7 @@ function Progress({
|
|
|
4201
4201
|
{
|
|
4202
4202
|
value,
|
|
4203
4203
|
"data-slot": "progress",
|
|
4204
|
-
className:
|
|
4204
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "flex flex-wrap gap-3", className),
|
|
4205
4205
|
...props,
|
|
4206
4206
|
children: [
|
|
4207
4207
|
children,
|
|
@@ -4215,7 +4215,7 @@ function ProgressTrack({ className, ...props }) {
|
|
|
4215
4215
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4216
4216
|
_progress.Progress.Track,
|
|
4217
4217
|
{
|
|
4218
|
-
className:
|
|
4218
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
4219
4219
|
"bg-muted h-1 rounded-md relative flex w-full items-center overflow-x-hidden",
|
|
4220
4220
|
className
|
|
4221
4221
|
),
|
|
@@ -4233,7 +4233,7 @@ function ProgressIndicator({
|
|
|
4233
4233
|
_progress.Progress.Indicator,
|
|
4234
4234
|
{
|
|
4235
4235
|
"data-slot": "progress-indicator",
|
|
4236
|
-
className:
|
|
4236
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "bg-primary h-full transition-all", className),
|
|
4237
4237
|
...props
|
|
4238
4238
|
}
|
|
4239
4239
|
);
|
|
@@ -4243,7 +4243,7 @@ function ProgressLabel({ className, ...props }) {
|
|
|
4243
4243
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4244
4244
|
_progress.Progress.Label,
|
|
4245
4245
|
{
|
|
4246
|
-
className:
|
|
4246
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-xs/relaxed font-medium", className),
|
|
4247
4247
|
"data-slot": "progress-label",
|
|
4248
4248
|
...props
|
|
4249
4249
|
}
|
|
@@ -4254,7 +4254,7 @@ function ProgressValue({ className, ...props }) {
|
|
|
4254
4254
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4255
4255
|
_progress.Progress.Value,
|
|
4256
4256
|
{
|
|
4257
|
-
className:
|
|
4257
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-muted-foreground ml-auto text-xs/relaxed tabular-nums", className),
|
|
4258
4258
|
"data-slot": "progress-value",
|
|
4259
4259
|
...props
|
|
4260
4260
|
}
|
|
@@ -4272,7 +4272,7 @@ function RadioGroup({ className, ...props }) {
|
|
|
4272
4272
|
_radiogroup.RadioGroup,
|
|
4273
4273
|
{
|
|
4274
4274
|
"data-slot": "radio-group",
|
|
4275
|
-
className:
|
|
4275
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "grid gap-3 w-full", className),
|
|
4276
4276
|
...props
|
|
4277
4277
|
}
|
|
4278
4278
|
);
|
|
@@ -4283,7 +4283,7 @@ function RadioGroupItem({ className, ...props }) {
|
|
|
4283
4283
|
_radio.Radio.Root,
|
|
4284
4284
|
{
|
|
4285
4285
|
"data-slot": "radio-group-item",
|
|
4286
|
-
className:
|
|
4286
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
4287
4287
|
"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",
|
|
4288
4288
|
className
|
|
4289
4289
|
),
|
|
@@ -4312,7 +4312,7 @@ function ResizablePanelGroup({
|
|
|
4312
4312
|
ResizablePrimitive.PanelGroup,
|
|
4313
4313
|
{
|
|
4314
4314
|
"data-slot": "resizable-panel-group",
|
|
4315
|
-
className:
|
|
4315
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
4316
4316
|
"flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
|
|
4317
4317
|
className
|
|
4318
4318
|
),
|
|
@@ -4336,7 +4336,7 @@ function ResizableHandle({
|
|
|
4336
4336
|
ResizablePrimitive.PanelResizeHandle,
|
|
4337
4337
|
{
|
|
4338
4338
|
"data-slot": "resizable-handle",
|
|
4339
|
-
className:
|
|
4339
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
4340
4340
|
"bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",
|
|
4341
4341
|
className
|
|
4342
4342
|
),
|
|
@@ -4359,7 +4359,7 @@ function ScrollArea({
|
|
|
4359
4359
|
_scrollarea.ScrollArea.Root,
|
|
4360
4360
|
{
|
|
4361
4361
|
"data-slot": "scroll-area",
|
|
4362
|
-
className:
|
|
4362
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "relative", className),
|
|
4363
4363
|
...props,
|
|
4364
4364
|
children: [
|
|
4365
4365
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4388,7 +4388,7 @@ function ScrollBar({
|
|
|
4388
4388
|
"data-slot": "scroll-area-scrollbar",
|
|
4389
4389
|
"data-orientation": orientation,
|
|
4390
4390
|
orientation,
|
|
4391
|
-
className:
|
|
4391
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
4392
4392
|
"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",
|
|
4393
4393
|
className
|
|
4394
4394
|
),
|
|
@@ -4415,7 +4415,7 @@ function SelectGroup({ className, ...props }) {
|
|
|
4415
4415
|
_select.Select.Group,
|
|
4416
4416
|
{
|
|
4417
4417
|
"data-slot": "select-group",
|
|
4418
|
-
className:
|
|
4418
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "scroll-my-1 p-1", className),
|
|
4419
4419
|
...props
|
|
4420
4420
|
}
|
|
4421
4421
|
);
|
|
@@ -4426,7 +4426,7 @@ function SelectValue({ className, ...props }) {
|
|
|
4426
4426
|
_select.Select.Value,
|
|
4427
4427
|
{
|
|
4428
4428
|
"data-slot": "select-value",
|
|
4429
|
-
className:
|
|
4429
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "flex flex-1 text-left", className),
|
|
4430
4430
|
...props
|
|
4431
4431
|
}
|
|
4432
4432
|
);
|
|
@@ -4443,7 +4443,7 @@ function SelectTrigger({
|
|
|
4443
4443
|
{
|
|
4444
4444
|
"data-slot": "select-trigger",
|
|
4445
4445
|
"data-size": size,
|
|
4446
|
-
className:
|
|
4446
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
4447
4447
|
"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",
|
|
4448
4448
|
className
|
|
4449
4449
|
),
|
|
@@ -4484,7 +4484,7 @@ function SelectContent({
|
|
|
4484
4484
|
_select.Select.Popup,
|
|
4485
4485
|
{
|
|
4486
4486
|
"data-slot": "select-content",
|
|
4487
|
-
className:
|
|
4487
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "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", className),
|
|
4488
4488
|
...props,
|
|
4489
4489
|
children: [
|
|
4490
4490
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectScrollUpButton, {}),
|
|
@@ -4505,7 +4505,7 @@ function SelectLabel({
|
|
|
4505
4505
|
_select.Select.GroupLabel,
|
|
4506
4506
|
{
|
|
4507
4507
|
"data-slot": "select-label",
|
|
4508
|
-
className:
|
|
4508
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs", className),
|
|
4509
4509
|
...props
|
|
4510
4510
|
}
|
|
4511
4511
|
);
|
|
@@ -4520,7 +4520,7 @@ function SelectItem({
|
|
|
4520
4520
|
_select.Select.Item,
|
|
4521
4521
|
{
|
|
4522
4522
|
"data-slot": "select-item",
|
|
4523
|
-
className:
|
|
4523
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
4524
4524
|
"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",
|
|
4525
4525
|
className
|
|
4526
4526
|
),
|
|
@@ -4547,7 +4547,7 @@ function SelectSeparator({
|
|
|
4547
4547
|
_select.Select.Separator,
|
|
4548
4548
|
{
|
|
4549
4549
|
"data-slot": "select-separator",
|
|
4550
|
-
className:
|
|
4550
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px pointer-events-none", className),
|
|
4551
4551
|
...props
|
|
4552
4552
|
}
|
|
4553
4553
|
);
|
|
@@ -4561,7 +4561,7 @@ function SelectScrollUpButton({
|
|
|
4561
4561
|
_select.Select.ScrollUpArrow,
|
|
4562
4562
|
{
|
|
4563
4563
|
"data-slot": "select-scroll-up-button",
|
|
4564
|
-
className:
|
|
4564
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5 top-0 w-full", className),
|
|
4565
4565
|
...props,
|
|
4566
4566
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4567
4567
|
_lucidereact.ChevronUpIcon,
|
|
@@ -4579,7 +4579,7 @@ function SelectScrollDownButton({
|
|
|
4579
4579
|
_select.Select.ScrollDownArrow,
|
|
4580
4580
|
{
|
|
4581
4581
|
"data-slot": "select-scroll-down-button",
|
|
4582
|
-
className:
|
|
4582
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5 bottom-0 w-full", className),
|
|
4583
4583
|
...props,
|
|
4584
4584
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4585
4585
|
_lucidereact.ChevronDownIcon,
|
|
@@ -4615,7 +4615,7 @@ function SheetOverlay({ className, ...props }) {
|
|
|
4615
4615
|
_dialog.Dialog.Backdrop,
|
|
4616
4616
|
{
|
|
4617
4617
|
"data-slot": "sheet-overlay",
|
|
4618
|
-
className:
|
|
4618
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "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", className),
|
|
4619
4619
|
...props
|
|
4620
4620
|
}
|
|
4621
4621
|
);
|
|
@@ -4635,7 +4635,7 @@ function SheetContent({
|
|
|
4635
4635
|
{
|
|
4636
4636
|
"data-slot": "sheet-content",
|
|
4637
4637
|
"data-side": side,
|
|
4638
|
-
className:
|
|
4638
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "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]:border-l 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", className),
|
|
4639
4639
|
...props,
|
|
4640
4640
|
children: [
|
|
4641
4641
|
children,
|
|
@@ -4671,7 +4671,7 @@ function SheetHeader({ className, ...props }) {
|
|
|
4671
4671
|
"div",
|
|
4672
4672
|
{
|
|
4673
4673
|
"data-slot": "sheet-header",
|
|
4674
|
-
className:
|
|
4674
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "gap-1.5 p-6 flex flex-col", className),
|
|
4675
4675
|
...props
|
|
4676
4676
|
}
|
|
4677
4677
|
);
|
|
@@ -4682,7 +4682,7 @@ function SheetFooter({ className, ...props }) {
|
|
|
4682
4682
|
"div",
|
|
4683
4683
|
{
|
|
4684
4684
|
"data-slot": "sheet-footer",
|
|
4685
|
-
className:
|
|
4685
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "gap-2 p-6 mt-auto flex flex-col", className),
|
|
4686
4686
|
...props
|
|
4687
4687
|
}
|
|
4688
4688
|
);
|
|
@@ -4693,7 +4693,7 @@ function SheetTitle({ className, ...props }) {
|
|
|
4693
4693
|
_dialog.Dialog.Title,
|
|
4694
4694
|
{
|
|
4695
4695
|
"data-slot": "sheet-title",
|
|
4696
|
-
className:
|
|
4696
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-foreground text-sm font-medium", className),
|
|
4697
4697
|
...props
|
|
4698
4698
|
}
|
|
4699
4699
|
);
|
|
@@ -4707,7 +4707,7 @@ function SheetDescription({
|
|
|
4707
4707
|
_dialog.Dialog.Description,
|
|
4708
4708
|
{
|
|
4709
4709
|
"data-slot": "sheet-description",
|
|
4710
|
-
className:
|
|
4710
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
|
|
4711
4711
|
...props
|
|
4712
4712
|
}
|
|
4713
4713
|
);
|
|
@@ -4727,7 +4727,7 @@ function Skeleton({ className, ...props }) {
|
|
|
4727
4727
|
"div",
|
|
4728
4728
|
{
|
|
4729
4729
|
"data-slot": "skeleton",
|
|
4730
|
-
className:
|
|
4730
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "bg-muted rounded-md animate-pulse", className),
|
|
4731
4731
|
...props
|
|
4732
4732
|
}
|
|
4733
4733
|
);
|
|
@@ -4780,7 +4780,7 @@ function TooltipContent({
|
|
|
4780
4780
|
_tooltip.Tooltip.Popup,
|
|
4781
4781
|
{
|
|
4782
4782
|
"data-slot": "tooltip-content",
|
|
4783
|
-
className:
|
|
4783
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
4784
4784
|
"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)",
|
|
4785
4785
|
className
|
|
4786
4786
|
),
|
|
@@ -4823,7 +4823,7 @@ function SidebarProvider({
|
|
|
4823
4823
|
children,
|
|
4824
4824
|
...props
|
|
4825
4825
|
}) {
|
|
4826
|
-
const isMobile =
|
|
4826
|
+
const isMobile = _chunkUYBCHXXLjs.useIsMobile.call(void 0, );
|
|
4827
4827
|
const [openMobile, setOpenMobile] = React7.useState(false);
|
|
4828
4828
|
const [_open, _setOpen] = React7.useState(defaultOpen);
|
|
4829
4829
|
const open = _nullishCoalesce(openProp, () => ( _open));
|
|
@@ -4874,7 +4874,7 @@ function SidebarProvider({
|
|
|
4874
4874
|
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
4875
4875
|
...style
|
|
4876
4876
|
},
|
|
4877
|
-
className:
|
|
4877
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
4878
4878
|
"group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",
|
|
4879
4879
|
className
|
|
4880
4880
|
),
|
|
@@ -4898,7 +4898,7 @@ function Sidebar({
|
|
|
4898
4898
|
"div",
|
|
4899
4899
|
{
|
|
4900
4900
|
"data-slot": "sidebar",
|
|
4901
|
-
className:
|
|
4901
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
4902
4902
|
"bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",
|
|
4903
4903
|
className
|
|
4904
4904
|
),
|
|
@@ -4943,7 +4943,7 @@ function Sidebar({
|
|
|
4943
4943
|
"div",
|
|
4944
4944
|
{
|
|
4945
4945
|
"data-slot": "sidebar-gap",
|
|
4946
|
-
className:
|
|
4946
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
4947
4947
|
"transition-[width] duration-200 ease-linear relative w-(--sidebar-width) bg-transparent",
|
|
4948
4948
|
"group-data-[collapsible=offExamples]:w-0",
|
|
4949
4949
|
"group-data-[side=right]:rotate-180",
|
|
@@ -4955,7 +4955,7 @@ function Sidebar({
|
|
|
4955
4955
|
"div",
|
|
4956
4956
|
{
|
|
4957
4957
|
"data-slot": "sidebar-container",
|
|
4958
|
-
className:
|
|
4958
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
4959
4959
|
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
4960
4960
|
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)]",
|
|
4961
4961
|
// Adjust the padding for floating and inset variants.
|
|
@@ -4992,7 +4992,7 @@ function SidebarTrigger({
|
|
|
4992
4992
|
"data-slot": "sidebar-trigger",
|
|
4993
4993
|
variant: "ghost",
|
|
4994
4994
|
size: "icon-sm",
|
|
4995
|
-
className:
|
|
4995
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, className),
|
|
4996
4996
|
onClick: (event) => {
|
|
4997
4997
|
_optionalChain([onClick, 'optionalCall', _84 => _84(event)]);
|
|
4998
4998
|
toggleSidebar();
|
|
@@ -5020,7 +5020,7 @@ function SidebarRail({ className, ...props }) {
|
|
|
5020
5020
|
tabIndex: -1,
|
|
5021
5021
|
onClick: toggleSidebar,
|
|
5022
5022
|
title: "Toggle Sidebar",
|
|
5023
|
-
className:
|
|
5023
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
5024
5024
|
"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",
|
|
5025
5025
|
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
5026
5026
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
@@ -5039,7 +5039,7 @@ function SidebarInset({ className, ...props }) {
|
|
|
5039
5039
|
"main",
|
|
5040
5040
|
{
|
|
5041
5041
|
"data-slot": "sidebar-inset",
|
|
5042
|
-
className:
|
|
5042
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
5043
5043
|
"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",
|
|
5044
5044
|
className
|
|
5045
5045
|
),
|
|
@@ -5057,7 +5057,7 @@ function SidebarInput({
|
|
|
5057
5057
|
{
|
|
5058
5058
|
"data-slot": "sidebar-input",
|
|
5059
5059
|
"data-sidebar": "input",
|
|
5060
|
-
className:
|
|
5060
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "bg-muted/20 dark:bg-muted/30 border-input h-8 w-full", className),
|
|
5061
5061
|
...props
|
|
5062
5062
|
}
|
|
5063
5063
|
);
|
|
@@ -5069,7 +5069,7 @@ function SidebarHeader({ className, ...props }) {
|
|
|
5069
5069
|
{
|
|
5070
5070
|
"data-slot": "sidebar-header",
|
|
5071
5071
|
"data-sidebar": "header",
|
|
5072
|
-
className:
|
|
5072
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
|
|
5073
5073
|
...props
|
|
5074
5074
|
}
|
|
5075
5075
|
);
|
|
@@ -5081,7 +5081,7 @@ function SidebarFooter({ className, ...props }) {
|
|
|
5081
5081
|
{
|
|
5082
5082
|
"data-slot": "sidebar-footer",
|
|
5083
5083
|
"data-sidebar": "footer",
|
|
5084
|
-
className:
|
|
5084
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
|
|
5085
5085
|
...props
|
|
5086
5086
|
}
|
|
5087
5087
|
);
|
|
@@ -5096,7 +5096,7 @@ function SidebarSeparator({
|
|
|
5096
5096
|
{
|
|
5097
5097
|
"data-slot": "sidebar-separator",
|
|
5098
5098
|
"data-sidebar": "separator",
|
|
5099
|
-
className:
|
|
5099
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "bg-sidebar-border mx-2 w-auto", className),
|
|
5100
5100
|
...props
|
|
5101
5101
|
}
|
|
5102
5102
|
);
|
|
@@ -5108,7 +5108,7 @@ function SidebarContent({ className, ...props }) {
|
|
|
5108
5108
|
{
|
|
5109
5109
|
"data-slot": "sidebar-content",
|
|
5110
5110
|
"data-sidebar": "content",
|
|
5111
|
-
className:
|
|
5111
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
5112
5112
|
"no-scrollbar gap-0 flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
5113
5113
|
className
|
|
5114
5114
|
),
|
|
@@ -5123,7 +5123,7 @@ function SidebarGroup({ className, ...props }) {
|
|
|
5123
5123
|
{
|
|
5124
5124
|
"data-slot": "sidebar-group",
|
|
5125
5125
|
"data-sidebar": "group",
|
|
5126
|
-
className:
|
|
5126
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
5127
5127
|
"px-2 py-1 relative flex w-full min-w-0 flex-col",
|
|
5128
5128
|
className
|
|
5129
5129
|
),
|
|
@@ -5141,7 +5141,7 @@ function SidebarGroupLabel({
|
|
|
5141
5141
|
defaultTagName: "div",
|
|
5142
5142
|
props: _mergeprops.mergeProps.call(void 0,
|
|
5143
5143
|
{
|
|
5144
|
-
className:
|
|
5144
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
5145
5145
|
"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",
|
|
5146
5146
|
className
|
|
5147
5147
|
)
|
|
@@ -5165,7 +5165,7 @@ function SidebarGroupAction({
|
|
|
5165
5165
|
defaultTagName: "button",
|
|
5166
5166
|
props: _mergeprops.mergeProps.call(void 0,
|
|
5167
5167
|
{
|
|
5168
|
-
className:
|
|
5168
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
5169
5169
|
"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",
|
|
5170
5170
|
className
|
|
5171
5171
|
)
|
|
@@ -5189,7 +5189,7 @@ function SidebarGroupContent({
|
|
|
5189
5189
|
{
|
|
5190
5190
|
"data-slot": "sidebar-group-content",
|
|
5191
5191
|
"data-sidebar": "group-content",
|
|
5192
|
-
className:
|
|
5192
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-xs w-full", className),
|
|
5193
5193
|
...props
|
|
5194
5194
|
}
|
|
5195
5195
|
);
|
|
@@ -5201,7 +5201,7 @@ function SidebarMenu({ className, ...props }) {
|
|
|
5201
5201
|
{
|
|
5202
5202
|
"data-slot": "sidebar-menu",
|
|
5203
5203
|
"data-sidebar": "menu",
|
|
5204
|
-
className:
|
|
5204
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "gap-px flex w-full min-w-0 flex-col", className),
|
|
5205
5205
|
...props
|
|
5206
5206
|
}
|
|
5207
5207
|
);
|
|
@@ -5213,7 +5213,7 @@ function SidebarMenuItem({ className, ...props }) {
|
|
|
5213
5213
|
{
|
|
5214
5214
|
"data-slot": "sidebar-menu-item",
|
|
5215
5215
|
"data-sidebar": "menu-item",
|
|
5216
|
-
className:
|
|
5216
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "group/menu-item relative", className),
|
|
5217
5217
|
...props
|
|
5218
5218
|
}
|
|
5219
5219
|
);
|
|
@@ -5253,7 +5253,7 @@ function SidebarMenuButton({
|
|
|
5253
5253
|
defaultTagName: "button",
|
|
5254
5254
|
props: _mergeprops.mergeProps.call(void 0,
|
|
5255
5255
|
{
|
|
5256
|
-
className:
|
|
5256
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, sidebarMenuButtonVariants({ variant, size }), className)
|
|
5257
5257
|
},
|
|
5258
5258
|
props
|
|
5259
5259
|
),
|
|
@@ -5297,7 +5297,7 @@ function SidebarMenuAction({
|
|
|
5297
5297
|
defaultTagName: "button",
|
|
5298
5298
|
props: _mergeprops.mergeProps.call(void 0,
|
|
5299
5299
|
{
|
|
5300
|
-
className:
|
|
5300
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
5301
5301
|
"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",
|
|
5302
5302
|
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",
|
|
5303
5303
|
className
|
|
@@ -5322,7 +5322,7 @@ function SidebarMenuBadge({
|
|
|
5322
5322
|
{
|
|
5323
5323
|
"data-slot": "sidebar-menu-badge",
|
|
5324
5324
|
"data-sidebar": "menu-badge",
|
|
5325
|
-
className:
|
|
5325
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
5326
5326
|
"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",
|
|
5327
5327
|
className
|
|
5328
5328
|
),
|
|
@@ -5344,7 +5344,7 @@ function SidebarMenuSkeleton({
|
|
|
5344
5344
|
{
|
|
5345
5345
|
"data-slot": "sidebar-menu-skeleton",
|
|
5346
5346
|
"data-sidebar": "menu-skeleton",
|
|
5347
|
-
className:
|
|
5347
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "h-8 gap-2 rounded-md px-2 flex items-center", className),
|
|
5348
5348
|
...props,
|
|
5349
5349
|
children: [
|
|
5350
5350
|
showIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -5375,7 +5375,7 @@ function SidebarMenuSub({ className, ...props }) {
|
|
|
5375
5375
|
{
|
|
5376
5376
|
"data-slot": "sidebar-menu-sub",
|
|
5377
5377
|
"data-sidebar": "menu-sub",
|
|
5378
|
-
className:
|
|
5378
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "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", className),
|
|
5379
5379
|
...props
|
|
5380
5380
|
}
|
|
5381
5381
|
);
|
|
@@ -5390,7 +5390,7 @@ function SidebarMenuSubItem({
|
|
|
5390
5390
|
{
|
|
5391
5391
|
"data-slot": "sidebar-menu-sub-item",
|
|
5392
5392
|
"data-sidebar": "menu-sub-item",
|
|
5393
|
-
className:
|
|
5393
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "group/menu-sub-item relative", className),
|
|
5394
5394
|
...props
|
|
5395
5395
|
}
|
|
5396
5396
|
);
|
|
@@ -5407,7 +5407,7 @@ function SidebarMenuSubButton({
|
|
|
5407
5407
|
defaultTagName: "a",
|
|
5408
5408
|
props: _mergeprops.mergeProps.call(void 0,
|
|
5409
5409
|
{
|
|
5410
|
-
className:
|
|
5410
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
5411
5411
|
"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",
|
|
5412
5412
|
className
|
|
5413
5413
|
)
|
|
@@ -5455,7 +5455,7 @@ function Slider({
|
|
|
5455
5455
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
5456
5456
|
_slider.Slider.Control,
|
|
5457
5457
|
{
|
|
5458
|
-
className:
|
|
5458
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
5459
5459
|
"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",
|
|
5460
5460
|
className
|
|
5461
5461
|
),
|
|
@@ -5539,7 +5539,7 @@ function Switch({
|
|
|
5539
5539
|
{
|
|
5540
5540
|
"data-slot": "switch",
|
|
5541
5541
|
"data-size": size,
|
|
5542
|
-
className:
|
|
5542
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
5543
5543
|
"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",
|
|
5544
5544
|
className
|
|
5545
5545
|
),
|
|
@@ -5548,7 +5548,7 @@ function Switch({
|
|
|
5548
5548
|
_switch.Switch.Thumb,
|
|
5549
5549
|
{
|
|
5550
5550
|
"data-slot": "switch-thumb",
|
|
5551
|
-
className:
|
|
5551
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
5552
5552
|
"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",
|
|
5553
5553
|
children && "flex items-center justify-center"
|
|
5554
5554
|
),
|
|
@@ -5567,7 +5567,7 @@ function Table({ className, ...props }) {
|
|
|
5567
5567
|
"table",
|
|
5568
5568
|
{
|
|
5569
5569
|
"data-slot": "table",
|
|
5570
|
-
className:
|
|
5570
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "w-full caption-bottom text-xs", className),
|
|
5571
5571
|
...props
|
|
5572
5572
|
}
|
|
5573
5573
|
) });
|
|
@@ -5578,7 +5578,7 @@ function TableHeader({ className, ...props }) {
|
|
|
5578
5578
|
"thead",
|
|
5579
5579
|
{
|
|
5580
5580
|
"data-slot": "table-header",
|
|
5581
|
-
className:
|
|
5581
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "[&_tr]:border-b", className),
|
|
5582
5582
|
...props
|
|
5583
5583
|
}
|
|
5584
5584
|
);
|
|
@@ -5589,7 +5589,7 @@ function TableBody({ className, ...props }) {
|
|
|
5589
5589
|
"tbody",
|
|
5590
5590
|
{
|
|
5591
5591
|
"data-slot": "table-body",
|
|
5592
|
-
className:
|
|
5592
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "[&_tr:last-child]:border-0", className),
|
|
5593
5593
|
...props
|
|
5594
5594
|
}
|
|
5595
5595
|
);
|
|
@@ -5600,7 +5600,7 @@ function TableFooter({ className, ...props }) {
|
|
|
5600
5600
|
"tfoot",
|
|
5601
5601
|
{
|
|
5602
5602
|
"data-slot": "table-footer",
|
|
5603
|
-
className:
|
|
5603
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", className),
|
|
5604
5604
|
...props
|
|
5605
5605
|
}
|
|
5606
5606
|
);
|
|
@@ -5611,7 +5611,7 @@ function TableRow({ className, ...props }) {
|
|
|
5611
5611
|
"tr",
|
|
5612
5612
|
{
|
|
5613
5613
|
"data-slot": "table-row",
|
|
5614
|
-
className:
|
|
5614
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", className),
|
|
5615
5615
|
...props
|
|
5616
5616
|
}
|
|
5617
5617
|
);
|
|
@@ -5622,7 +5622,7 @@ function TableHead({ className, ...props }) {
|
|
|
5622
5622
|
"th",
|
|
5623
5623
|
{
|
|
5624
5624
|
"data-slot": "table-head",
|
|
5625
|
-
className:
|
|
5625
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0", className),
|
|
5626
5626
|
...props
|
|
5627
5627
|
}
|
|
5628
5628
|
);
|
|
@@ -5633,7 +5633,7 @@ function TableCell({ className, ...props }) {
|
|
|
5633
5633
|
"td",
|
|
5634
5634
|
{
|
|
5635
5635
|
"data-slot": "table-cell",
|
|
5636
|
-
className:
|
|
5636
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0", className),
|
|
5637
5637
|
...props
|
|
5638
5638
|
}
|
|
5639
5639
|
);
|
|
@@ -5647,7 +5647,7 @@ function TableCaption({
|
|
|
5647
5647
|
"caption",
|
|
5648
5648
|
{
|
|
5649
5649
|
"data-slot": "table-caption",
|
|
5650
|
-
className:
|
|
5650
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-muted-foreground mt-4 text-xs", className),
|
|
5651
5651
|
...props
|
|
5652
5652
|
}
|
|
5653
5653
|
);
|
|
@@ -5668,7 +5668,7 @@ function Tabs({
|
|
|
5668
5668
|
{
|
|
5669
5669
|
"data-slot": "tabs",
|
|
5670
5670
|
"data-orientation": orientation,
|
|
5671
|
-
className:
|
|
5671
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
5672
5672
|
"gap-2 group/tabs flex data-[orientation=horizontal]:flex-col",
|
|
5673
5673
|
className
|
|
5674
5674
|
),
|
|
@@ -5701,7 +5701,7 @@ function TabsList({
|
|
|
5701
5701
|
{
|
|
5702
5702
|
"data-slot": "tabs-list",
|
|
5703
5703
|
"data-variant": variant,
|
|
5704
|
-
className:
|
|
5704
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, tabsListVariants({ variant }), className),
|
|
5705
5705
|
...props
|
|
5706
5706
|
}
|
|
5707
5707
|
);
|
|
@@ -5712,7 +5712,7 @@ function TabsTrigger({ className, ...props }) {
|
|
|
5712
5712
|
_tabs.Tabs.Tab,
|
|
5713
5713
|
{
|
|
5714
5714
|
"data-slot": "tabs-trigger",
|
|
5715
|
-
className:
|
|
5715
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
5716
5716
|
"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",
|
|
5717
5717
|
"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",
|
|
5718
5718
|
"data-active:bg-background dark:data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 data-active:text-foreground",
|
|
@@ -5729,7 +5729,7 @@ function TabsContent({ className, ...props }) {
|
|
|
5729
5729
|
_tabs.Tabs.Panel,
|
|
5730
5730
|
{
|
|
5731
5731
|
"data-slot": "tabs-content",
|
|
5732
|
-
className:
|
|
5732
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "text-xs/relaxed flex-1 outline-none", className),
|
|
5733
5733
|
...props
|
|
5734
5734
|
}
|
|
5735
5735
|
);
|
|
@@ -5770,7 +5770,7 @@ function Toggle({
|
|
|
5770
5770
|
_toggle.Toggle,
|
|
5771
5771
|
{
|
|
5772
5772
|
"data-slot": "toggle",
|
|
5773
|
-
className:
|
|
5773
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, toggleVariants({ variant, size, className })),
|
|
5774
5774
|
...props
|
|
5775
5775
|
}
|
|
5776
5776
|
);
|
|
@@ -6239,7 +6239,7 @@ var KanbanBoard = React9.forwardRef((props, forwardedRef) => {
|
|
|
6239
6239
|
"data-slot": "kanban-board",
|
|
6240
6240
|
...boardProps,
|
|
6241
6241
|
ref: forwardedRef,
|
|
6242
|
-
className:
|
|
6242
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
6243
6243
|
"flex size-full gap-4",
|
|
6244
6244
|
context.orientation === "horizontal" ? "flex-row" : "flex-col",
|
|
6245
6245
|
className
|
|
@@ -6278,7 +6278,7 @@ var KanbanColumn = React9.forwardRef((props, forwardedRef) => {
|
|
|
6278
6278
|
disabled,
|
|
6279
6279
|
animateLayoutChanges
|
|
6280
6280
|
});
|
|
6281
|
-
const composedRef =
|
|
6281
|
+
const composedRef = _chunkUYBCHXXLjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
6282
6282
|
if (disabled) return;
|
|
6283
6283
|
setNodeRef(node);
|
|
6284
6284
|
});
|
|
@@ -6322,7 +6322,7 @@ var KanbanColumn = React9.forwardRef((props, forwardedRef) => {
|
|
|
6322
6322
|
...asHandle && !disabled ? listeners : {},
|
|
6323
6323
|
ref: composedRef,
|
|
6324
6324
|
style: composedStyle,
|
|
6325
|
-
className:
|
|
6325
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
6326
6326
|
"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",
|
|
6327
6327
|
{
|
|
6328
6328
|
"touch-none select-none": asHandle,
|
|
@@ -6345,7 +6345,7 @@ var KanbanColumnHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
6345
6345
|
const context = useKanbanContext(COLUMN_NAME);
|
|
6346
6346
|
const columnContext = useKanbanColumnContext(COLUMN_HANDLE_NAME);
|
|
6347
6347
|
const isDisabled = _nullishCoalesce(disabled, () => ( columnContext.disabled));
|
|
6348
|
-
const composedRef =
|
|
6348
|
+
const composedRef = _chunkUYBCHXXLjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
6349
6349
|
if (isDisabled) return;
|
|
6350
6350
|
columnContext.setActivatorNodeRef(node);
|
|
6351
6351
|
});
|
|
@@ -6362,7 +6362,7 @@ var KanbanColumnHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
6362
6362
|
...isDisabled ? {} : columnContext.attributes,
|
|
6363
6363
|
...isDisabled ? {} : columnContext.listeners,
|
|
6364
6364
|
ref: composedRef,
|
|
6365
|
-
className:
|
|
6365
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
6366
6366
|
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
6367
6367
|
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
6368
6368
|
className
|
|
@@ -6398,7 +6398,7 @@ var KanbanItem = React9.forwardRef((props, forwardedRef) => {
|
|
|
6398
6398
|
if (value === "") {
|
|
6399
6399
|
throw new Error(`\`${ITEM_NAME}\` value cannot be an empty string`);
|
|
6400
6400
|
}
|
|
6401
|
-
const composedRef =
|
|
6401
|
+
const composedRef = _chunkUYBCHXXLjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
6402
6402
|
if (disabled) return;
|
|
6403
6403
|
setNodeRef(node);
|
|
6404
6404
|
});
|
|
@@ -6433,7 +6433,7 @@ var KanbanItem = React9.forwardRef((props, forwardedRef) => {
|
|
|
6433
6433
|
...asHandle && !disabled ? listeners : {},
|
|
6434
6434
|
ref: composedRef,
|
|
6435
6435
|
style: composedStyle,
|
|
6436
|
-
className:
|
|
6436
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
6437
6437
|
"focus-visible:ring-ring focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden",
|
|
6438
6438
|
{
|
|
6439
6439
|
"touch-none select-none": asHandle,
|
|
@@ -6454,7 +6454,7 @@ var KanbanItemHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
6454
6454
|
const context = useKanbanContext(ITEM_HANDLE_NAME);
|
|
6455
6455
|
const itemContext = useKanbanItemContext(ITEM_HANDLE_NAME);
|
|
6456
6456
|
const isDisabled = _nullishCoalesce(disabled, () => ( itemContext.disabled));
|
|
6457
|
-
const composedRef =
|
|
6457
|
+
const composedRef = _chunkUYBCHXXLjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
6458
6458
|
if (isDisabled) return;
|
|
6459
6459
|
itemContext.setActivatorNodeRef(node);
|
|
6460
6460
|
});
|
|
@@ -6471,7 +6471,7 @@ var KanbanItemHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
6471
6471
|
...isDisabled ? {} : itemContext.attributes,
|
|
6472
6472
|
...isDisabled ? {} : itemContext.listeners,
|
|
6473
6473
|
ref: composedRef,
|
|
6474
|
-
className:
|
|
6474
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
6475
6475
|
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
6476
6476
|
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
6477
6477
|
className
|
|
@@ -6506,7 +6506,7 @@ function KanbanOverlay(props) {
|
|
|
6506
6506
|
{
|
|
6507
6507
|
dropAnimation,
|
|
6508
6508
|
modifiers: context.modifiers,
|
|
6509
|
-
className:
|
|
6509
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, !context.flatCursor && "cursor-grabbing"),
|
|
6510
6510
|
...overlayProps,
|
|
6511
6511
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, KanbanOverlayContext.Provider, { value: true, children: context.activeId && children ? typeof children === "function" ? children({
|
|
6512
6512
|
value: context.activeId,
|
|
@@ -6524,7 +6524,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, KanbanOverlay, "KanbanOverlay");
|
|
|
6524
6524
|
|
|
6525
6525
|
var Link = React10.forwardRef(({ className, href, children, ...props }, ref) => {
|
|
6526
6526
|
const NextIntlLink = _chunkEW6QPMN3js.getI18nLink.call(void 0, );
|
|
6527
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NextIntlLink, { prefetch: false, ref, href, className:
|
|
6527
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NextIntlLink, { prefetch: false, ref, href, className: _chunkUYBCHXXLjs.cn.call(void 0, `font-medium`, className), ...props, children });
|
|
6528
6528
|
});
|
|
6529
6529
|
Link.displayName = "Link";
|
|
6530
6530
|
|
|
@@ -6621,7 +6621,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6621
6621
|
{
|
|
6622
6622
|
...props,
|
|
6623
6623
|
onClick: handleTogglePopover,
|
|
6624
|
-
className:
|
|
6624
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
6625
6625
|
"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",
|
|
6626
6626
|
className
|
|
6627
6627
|
),
|
|
@@ -6633,7 +6633,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6633
6633
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
6634
6634
|
Badge,
|
|
6635
6635
|
{
|
|
6636
|
-
className:
|
|
6636
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, isAnimating ? "animate-bounce" : "", multiSelectVariants({ variant })),
|
|
6637
6637
|
style: { animationDuration: `${animation}s` },
|
|
6638
6638
|
children: [
|
|
6639
6639
|
IconComponent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: "mr-2 h-4 w-4" }),
|
|
@@ -6656,7 +6656,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6656
6656
|
selectedValues.length > maxCount && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
6657
6657
|
Badge,
|
|
6658
6658
|
{
|
|
6659
|
-
className:
|
|
6659
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
6660
6660
|
"text-foreground border-foreground/1 bg-transparent hover:bg-transparent",
|
|
6661
6661
|
isAnimating ? "animate-bounce" : "",
|
|
6662
6662
|
multiSelectVariants({ variant })
|
|
@@ -6720,7 +6720,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6720
6720
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6721
6721
|
"div",
|
|
6722
6722
|
{
|
|
6723
|
-
className:
|
|
6723
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
6724
6724
|
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
6725
6725
|
selectedValues.length === options.length ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
6726
6726
|
),
|
|
@@ -6743,7 +6743,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6743
6743
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6744
6744
|
"div",
|
|
6745
6745
|
{
|
|
6746
|
-
className:
|
|
6746
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
6747
6747
|
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
6748
6748
|
isSelected ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
6749
6749
|
),
|
|
@@ -6778,7 +6778,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6778
6778
|
animation > 0 && selectedValues.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6779
6779
|
_lucidereact.WandSparkles,
|
|
6780
6780
|
{
|
|
6781
|
-
className:
|
|
6781
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
6782
6782
|
"text-foreground bg-background my-2 h-3 w-3 cursor-pointer",
|
|
6783
6783
|
isAnimating ? "" : "text-muted-foreground"
|
|
6784
6784
|
),
|
|
@@ -6866,8 +6866,8 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
6866
6866
|
CommonDeleter,
|
|
6867
6867
|
{
|
|
6868
6868
|
type: `users`,
|
|
6869
|
-
deleteFunction: () =>
|
|
6870
|
-
() => onDeleted ? onDeleted() : router.push(generateUrl({ page:
|
|
6869
|
+
deleteFunction: () => _chunkUYBCHXXLjs.UserService.delete({ userId: user.id, companyId: cId }).then(
|
|
6870
|
+
() => onDeleted ? onDeleted() : router.push(generateUrl({ page: _chunkUYBCHXXLjs.Modules.User }))
|
|
6871
6871
|
)
|
|
6872
6872
|
}
|
|
6873
6873
|
);
|
|
@@ -6875,7 +6875,7 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
6875
6875
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleterInternal, "UserDeleterInternal");
|
|
6876
6876
|
function UserDeleter(props) {
|
|
6877
6877
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
6878
|
-
if (!hasPermissionToModule({ module:
|
|
6878
|
+
if (!hasPermissionToModule({ module: _chunkUYBCHXXLjs.Modules.User, action: "delete" /* Delete */, data: props.user })) return null;
|
|
6879
6879
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserDeleterInternal, { ...props });
|
|
6880
6880
|
}
|
|
6881
6881
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleter, "UserDeleter");
|
|
@@ -6939,7 +6939,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6939
6939
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
6940
6940
|
if (!user) {
|
|
6941
6941
|
try {
|
|
6942
|
-
const existingUser = await
|
|
6942
|
+
const existingUser = await _chunkUYBCHXXLjs.UserService.findByEmail({ email: values.email });
|
|
6943
6943
|
if (existingUser) {
|
|
6944
6944
|
form.setError("email", {
|
|
6945
6945
|
type: "manual",
|
|
@@ -6952,7 +6952,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6952
6952
|
}
|
|
6953
6953
|
}
|
|
6954
6954
|
if (values.avatar && contentType) {
|
|
6955
|
-
const s3 = await
|
|
6955
|
+
const s3 = await _chunkUYBCHXXLjs.S3Service.getPreSignedUrl({
|
|
6956
6956
|
key: values.avatar,
|
|
6957
6957
|
contentType,
|
|
6958
6958
|
isPublic: true
|
|
@@ -6978,16 +6978,16 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6978
6978
|
adminCreated
|
|
6979
6979
|
};
|
|
6980
6980
|
try {
|
|
6981
|
-
const updatedUser = user ? await
|
|
6981
|
+
const updatedUser = user ? await _chunkUYBCHXXLjs.UserService.update(payload) : await _chunkUYBCHXXLjs.UserService.create(payload);
|
|
6982
6982
|
if (_optionalChain([currentUser, 'optionalAccess', _137 => _137.id]) === updatedUser.id) setUser(updatedUser);
|
|
6983
6983
|
if (onRevalidate) {
|
|
6984
|
-
await onRevalidate(generateUrl({ page:
|
|
6984
|
+
await onRevalidate(generateUrl({ page: _chunkUYBCHXXLjs.Modules.User, id: updatedUser.id, language: `[locale]` }));
|
|
6985
6985
|
}
|
|
6986
6986
|
if (propagateChanges) {
|
|
6987
6987
|
propagateChanges(updatedUser);
|
|
6988
6988
|
setOpen(false);
|
|
6989
6989
|
} else {
|
|
6990
|
-
router.push(generateUrl({ page:
|
|
6990
|
+
router.push(generateUrl({ page: _chunkUYBCHXXLjs.Modules.User, id: updatedUser.id }));
|
|
6991
6991
|
}
|
|
6992
6992
|
} catch (error) {
|
|
6993
6993
|
errorToast({ title: user ? t(`generic.errors.update`) : t(`generic.errors.create`), error });
|
|
@@ -6995,7 +6995,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6995
6995
|
}, "onSubmit");
|
|
6996
6996
|
_react.useEffect.call(void 0, () => {
|
|
6997
6997
|
async function fetchRoles() {
|
|
6998
|
-
const roles2 = await
|
|
6998
|
+
const roles2 = await _chunkUYBCHXXLjs.RoleService.findAllRoles({});
|
|
6999
6999
|
const availableRoles = roles2.filter(
|
|
7000
7000
|
(role) => role.id !== _chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _138 => _138.features, 'access', _139 => _139.some, 'call', _140 => _140((feature) => feature.id === _optionalChain([role, 'access', _141 => _141.requiredFeature, 'optionalAccess', _142 => _142.id]))]))
|
|
7001
7001
|
);
|
|
@@ -7023,7 +7023,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
7023
7023
|
setContentType(null);
|
|
7024
7024
|
}
|
|
7025
7025
|
}, [file]);
|
|
7026
|
-
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _146 => _146.id]) === _optionalChain([user, 'optionalAccess', _147 => _147.id]) && hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module:
|
|
7026
|
+
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _146 => _146.id]) === _optionalChain([user, 'optionalAccess', _147 => _147.id]) && hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkUYBCHXXLjs.Modules.User, action: "update" /* Update */ }) || hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator));
|
|
7027
7027
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
7028
7028
|
trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTrigger, { children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!user }),
|
|
7029
7029
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -7140,7 +7140,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserEditorInternal, "UserEditorInternal");
|
|
|
7140
7140
|
function UserEditor(props) {
|
|
7141
7141
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
7142
7142
|
if (!hasPermissionToModule({
|
|
7143
|
-
module:
|
|
7143
|
+
module: _chunkUYBCHXXLjs.Modules.User,
|
|
7144
7144
|
action: props.user ? "update" /* Update */ : "create" /* Create */,
|
|
7145
7145
|
data: props.user
|
|
7146
7146
|
}))
|
|
@@ -7491,7 +7491,7 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
7491
7491
|
}, "handleClear");
|
|
7492
7492
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open: isOpen, onOpenChange: setIsOpen, children: [
|
|
7493
7493
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { children }),
|
|
7494
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className:
|
|
7494
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className: _chunkUYBCHXXLjs.cn.call(void 0, "w-auto p-0", className), align, onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "p-3", children: [
|
|
7495
7495
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative mb-3", children: [
|
|
7496
7496
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7497
7497
|
Input,
|
|
@@ -7607,13 +7607,13 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
7607
7607
|
setDate(range);
|
|
7608
7608
|
}
|
|
7609
7609
|
}, "handleSelect");
|
|
7610
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
7610
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkUYBCHXXLjs.cn.call(void 0, "grid gap-2"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, children: [
|
|
7611
7611
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7612
7612
|
Button,
|
|
7613
7613
|
{
|
|
7614
7614
|
id: "date",
|
|
7615
7615
|
variant: "outline",
|
|
7616
|
-
className:
|
|
7616
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
|
|
7617
7617
|
children: [
|
|
7618
7618
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
|
|
7619
7619
|
_optionalChain([date, 'optionalAccess', _164 => _164.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -7806,7 +7806,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
7806
7806
|
ref,
|
|
7807
7807
|
tabIndex: 0,
|
|
7808
7808
|
onKeyDownCapture: handleKeyDown,
|
|
7809
|
-
className:
|
|
7809
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
7810
7810
|
"grid w-full overflow-hidden focus:outline-none",
|
|
7811
7811
|
className,
|
|
7812
7812
|
// Original className from props
|
|
@@ -7830,12 +7830,12 @@ var FileUploaderContent = _react.forwardRef.call(void 0,
|
|
|
7830
7830
|
({ children, className, ...props }, ref) => {
|
|
7831
7831
|
const { orientation } = useFileUpload();
|
|
7832
7832
|
const containerRef = _react.useRef.call(void 0, null);
|
|
7833
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
7833
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkUYBCHXXLjs.cn.call(void 0, "w-full px-1"), ref: containerRef, "aria-description": "content file holder", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7834
7834
|
"div",
|
|
7835
7835
|
{
|
|
7836
7836
|
...props,
|
|
7837
7837
|
ref,
|
|
7838
|
-
className:
|
|
7838
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
7839
7839
|
"flex gap-1 rounded-xl",
|
|
7840
7840
|
orientation === "horizontal" ? "flex-raw flex-wrap" : "flex-col",
|
|
7841
7841
|
className
|
|
@@ -7855,7 +7855,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
7855
7855
|
"div",
|
|
7856
7856
|
{
|
|
7857
7857
|
ref,
|
|
7858
|
-
className:
|
|
7858
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
7859
7859
|
buttonVariants({ variant: "ghost" }),
|
|
7860
7860
|
"relative h-6 cursor-pointer justify-between p-1",
|
|
7861
7861
|
className,
|
|
@@ -7868,7 +7868,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
7868
7868
|
"button",
|
|
7869
7869
|
{
|
|
7870
7870
|
type: "button",
|
|
7871
|
-
className:
|
|
7871
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "absolute", direction === "rtl" ? "top-1 left-1" : "top-1 right-1"),
|
|
7872
7872
|
onClick: () => removeFileFromSet(index),
|
|
7873
7873
|
children: [
|
|
7874
7874
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: t(`generic.remove_item`, { index }) }),
|
|
@@ -7892,12 +7892,12 @@ var FileInput = _react.forwardRef.call(void 0,
|
|
|
7892
7892
|
{
|
|
7893
7893
|
ref,
|
|
7894
7894
|
...props,
|
|
7895
|
-
className:
|
|
7895
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, `relative w-full ${isLOF ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`, className),
|
|
7896
7896
|
children: [
|
|
7897
7897
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7898
7898
|
"div",
|
|
7899
7899
|
{
|
|
7900
|
-
className:
|
|
7900
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
7901
7901
|
"w-full rounded-lg duration-300 ease-in-out",
|
|
7902
7902
|
// Simpler border logic: if parent is drag-active, it controls the border.
|
|
7903
7903
|
// Otherwise, FileInput can show its own accept/reject/default border.
|
|
@@ -8237,7 +8237,7 @@ function FormDateTime({
|
|
|
8237
8237
|
Button,
|
|
8238
8238
|
{
|
|
8239
8239
|
variant: "outline",
|
|
8240
|
-
className:
|
|
8240
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "w-full pl-3 text-left font-normal", !field.value && "text-muted-foreground")
|
|
8241
8241
|
}
|
|
8242
8242
|
),
|
|
8243
8243
|
children: [
|
|
@@ -8436,7 +8436,7 @@ var PasswordInput = React12.forwardRef(({ className, type, ...props }, ref) => {
|
|
|
8436
8436
|
const disabled = props.value === "" || props.value === void 0 || props.disabled;
|
|
8437
8437
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8438
8438
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
8439
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className:
|
|
8439
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className: _chunkUYBCHXXLjs.cn.call(void 0, "", className), ref, ...props }),
|
|
8440
8440
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8441
8441
|
Button,
|
|
8442
8442
|
{
|
|
@@ -8630,7 +8630,7 @@ function FormPlaceAutocomplete({
|
|
|
8630
8630
|
placeholder,
|
|
8631
8631
|
disabled,
|
|
8632
8632
|
"data-testid": testId,
|
|
8633
|
-
className:
|
|
8633
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "w-full", className)
|
|
8634
8634
|
}
|
|
8635
8635
|
) }) });
|
|
8636
8636
|
}
|
|
@@ -8649,7 +8649,7 @@ function FormPlaceAutocomplete({
|
|
|
8649
8649
|
placeholder,
|
|
8650
8650
|
disabled: disabled || !apiKey,
|
|
8651
8651
|
"data-testid": testId,
|
|
8652
|
-
className:
|
|
8652
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "w-full", className)
|
|
8653
8653
|
}
|
|
8654
8654
|
),
|
|
8655
8655
|
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" }) }),
|
|
@@ -8781,7 +8781,7 @@ function FormTextarea({
|
|
|
8781
8781
|
Textarea,
|
|
8782
8782
|
{
|
|
8783
8783
|
...field,
|
|
8784
|
-
className:
|
|
8784
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "min-h-96 w-full", className),
|
|
8785
8785
|
disabled: form.formState.isSubmitting,
|
|
8786
8786
|
placeholder,
|
|
8787
8787
|
"data-testid": testId
|
|
@@ -8867,10 +8867,10 @@ function UserMultiSelect({
|
|
|
8867
8867
|
const data = useDataListRetriever({
|
|
8868
8868
|
ready: !!company,
|
|
8869
8869
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
8870
|
-
return
|
|
8870
|
+
return _chunkUYBCHXXLjs.UserService.findAllUsers(params);
|
|
8871
8871
|
}, "retriever"),
|
|
8872
8872
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _195 => _195.id]) },
|
|
8873
|
-
module:
|
|
8873
|
+
module: _chunkUYBCHXXLjs.Modules.User
|
|
8874
8874
|
});
|
|
8875
8875
|
_react.useEffect.call(void 0, () => {
|
|
8876
8876
|
if (company) data.setReady(true);
|
|
@@ -8967,7 +8967,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
8967
8967
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8968
8968
|
const reactivateUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
8969
8969
|
try {
|
|
8970
|
-
const updatedUser = await
|
|
8970
|
+
const updatedUser = await _chunkUYBCHXXLjs.UserService.reactivate({ userId: user.id });
|
|
8971
8971
|
setOpen(false);
|
|
8972
8972
|
propagateChanges(updatedUser);
|
|
8973
8973
|
} catch (error) {
|
|
@@ -9005,7 +9005,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
9005
9005
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivatorInterface, "UserReactivatorInterface");
|
|
9006
9006
|
function UserReactivator(props) {
|
|
9007
9007
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9008
|
-
if (!hasPermissionToModule({ module:
|
|
9008
|
+
if (!hasPermissionToModule({ module: _chunkUYBCHXXLjs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
9009
9009
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserReactivatorInterface, { ...props });
|
|
9010
9010
|
}
|
|
9011
9011
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivator, "UserReactivator");
|
|
@@ -9021,7 +9021,7 @@ function UserResentInvitationEmailInternal({ user }) {
|
|
|
9021
9021
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9022
9022
|
const sendInvitationEmail = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
9023
9023
|
try {
|
|
9024
|
-
await
|
|
9024
|
+
await _chunkUYBCHXXLjs.UserService.sendInvitation({ userId: user.id, companyId: user.company.id });
|
|
9025
9025
|
setOpen(false);
|
|
9026
9026
|
_sonner.toast.message(t(`foundations.user.resend_activation.email_sent`), {
|
|
9027
9027
|
description: t(`foundations.user.resend_activation.email_sent_description`, { email: user.email })
|
|
@@ -9061,7 +9061,7 @@ function UserResentInvitationEmailInternal({ user }) {
|
|
|
9061
9061
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmailInternal, "UserResentInvitationEmailInternal");
|
|
9062
9062
|
function UserResentInvitationEmail(props) {
|
|
9063
9063
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9064
|
-
if (!hasPermissionToModule({ module:
|
|
9064
|
+
if (!hasPermissionToModule({ module: _chunkUYBCHXXLjs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
9065
9065
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserResentInvitationEmailInternal, { ...props });
|
|
9066
9066
|
}
|
|
9067
9067
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmail, "UserResentInvitationEmail");
|
|
@@ -9092,22 +9092,22 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
|
|
|
9092
9092
|
}, "getAvatar");
|
|
9093
9093
|
const content = showLink === false ? (
|
|
9094
9094
|
// If showLink is explicitly false, never show a link
|
|
9095
|
-
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
9095
|
+
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkUYBCHXXLjs.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className), children: [
|
|
9096
9096
|
getAvatar(),
|
|
9097
9097
|
user.name
|
|
9098
9098
|
] }) : getAvatar()
|
|
9099
9099
|
) : showFull ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9100
9100
|
Link,
|
|
9101
9101
|
{
|
|
9102
|
-
href: generateUrl({ page:
|
|
9103
|
-
className:
|
|
9102
|
+
href: generateUrl({ page: _chunkUYBCHXXLjs.Modules.User, id: user.id }),
|
|
9103
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className),
|
|
9104
9104
|
onClick: (e) => e.stopPropagation(),
|
|
9105
9105
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center gap-x-2", children: [
|
|
9106
9106
|
getAvatar(),
|
|
9107
9107
|
user.name
|
|
9108
9108
|
] })
|
|
9109
9109
|
}
|
|
9110
|
-
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page:
|
|
9110
|
+
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunkUYBCHXXLjs.Modules.User, id: user.id }), className, children: getAvatar() }) : getAvatar();
|
|
9111
9111
|
if (!showTooltip) {
|
|
9112
9112
|
return content;
|
|
9113
9113
|
}
|
|
@@ -9128,10 +9128,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
9128
9128
|
const [isSearching, setIsSearching] = _react.useState.call(void 0, false);
|
|
9129
9129
|
const data = useDataListRetriever({
|
|
9130
9130
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
9131
|
-
return
|
|
9131
|
+
return _chunkUYBCHXXLjs.UserService.findMany(params);
|
|
9132
9132
|
}, "retriever"),
|
|
9133
9133
|
retrieverParams: {},
|
|
9134
|
-
module:
|
|
9134
|
+
module: _chunkUYBCHXXLjs.Modules.User
|
|
9135
9135
|
});
|
|
9136
9136
|
const search = _react.useCallback.call(void 0,
|
|
9137
9137
|
async (searchedTerm) => {
|
|
@@ -9239,24 +9239,24 @@ var UserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
9239
9239
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9240
9240
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9241
9241
|
const [user, setUser] = _react.useState.call(void 0,
|
|
9242
|
-
dehydratedUser ?
|
|
9242
|
+
dehydratedUser ? _chunkUYBCHXXLjs.rehydrate.call(void 0, _chunkUYBCHXXLjs.Modules.User, dehydratedUser) : void 0
|
|
9243
9243
|
);
|
|
9244
9244
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
9245
9245
|
const response = [];
|
|
9246
|
-
if (hasPermissionToModule({ module:
|
|
9246
|
+
if (hasPermissionToModule({ module: _chunkUYBCHXXLjs.Modules.User, action: "update" /* Update */ })) {
|
|
9247
9247
|
response.push({
|
|
9248
9248
|
name: t(`generic.settings`),
|
|
9249
9249
|
href: generateUrl({ page: `/settings` })
|
|
9250
9250
|
});
|
|
9251
9251
|
response.push({
|
|
9252
9252
|
name: t(`types.users`, { count: 2 }),
|
|
9253
|
-
href: generateUrl({ page: `/settings`, id:
|
|
9253
|
+
href: generateUrl({ page: `/settings`, id: _chunkUYBCHXXLjs.Modules.User.pageUrl })
|
|
9254
9254
|
});
|
|
9255
9255
|
}
|
|
9256
9256
|
if (user)
|
|
9257
9257
|
response.push({
|
|
9258
9258
|
name: `${user.name}${user.isDeleted ? ` (${t(`foundations.user.deleted`)})` : ""}`,
|
|
9259
|
-
href: generateUrl({ page:
|
|
9259
|
+
href: generateUrl({ page: _chunkUYBCHXXLjs.Modules.User, id: user.id })
|
|
9260
9260
|
});
|
|
9261
9261
|
return response;
|
|
9262
9262
|
}, "breadcrumb");
|
|
@@ -9311,7 +9311,7 @@ function UserDetails({ user }) {
|
|
|
9311
9311
|
const { title } = useSharedContext();
|
|
9312
9312
|
let roles = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
9313
9313
|
if (user.roles && user.roles.length > 0) {
|
|
9314
|
-
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:
|
|
9314
|
+
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: _chunkUYBCHXXLjs.Modules.Role, id: role.id }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { className: "mr-2", variant: `default`, children: t(`foundations.role.roles`, { role: role.id.replaceAll(`-`, ``) }) }) }, role.id)) }) });
|
|
9315
9315
|
}
|
|
9316
9316
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
9317
9317
|
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,
|
|
@@ -9324,7 +9324,7 @@ function UserDetails({ user }) {
|
|
|
9324
9324
|
className: "h-auto w-full rounded-lg object-contain"
|
|
9325
9325
|
}
|
|
9326
9326
|
) }),
|
|
9327
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module:
|
|
9327
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkUYBCHXXLjs.Modules.User, type: title.type, element: title.element, functions: title.functions }),
|
|
9328
9328
|
user.isDeleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "destructive", children: t(`foundations.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(`foundations.user.errors.inactive`) }) }) }),
|
|
9329
9329
|
roles,
|
|
9330
9330
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AttributeElement, { inline: true, title: t(`foundations.user.fields.title.label`), value: user.title }),
|
|
@@ -9378,18 +9378,18 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserIndexContainer, "UserIndexContainer");
|
|
|
9378
9378
|
function UsersListContainerInternal() {
|
|
9379
9379
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9380
9380
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9381
|
-
if (!hasPermissionToModule({ module:
|
|
9381
|
+
if (!hasPermissionToModule({ module: _chunkUYBCHXXLjs.Modules.User, action: "delete" /* Delete */ })) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {});
|
|
9382
9382
|
const tabs = [
|
|
9383
9383
|
{
|
|
9384
9384
|
label: t(`types.users`, { count: 2 }),
|
|
9385
9385
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {}),
|
|
9386
|
-
modules: [
|
|
9386
|
+
modules: [_chunkUYBCHXXLjs.Modules.Company],
|
|
9387
9387
|
action: "read" /* Read */
|
|
9388
9388
|
},
|
|
9389
9389
|
{
|
|
9390
9390
|
label: t(`foundations.user.deleted`),
|
|
9391
9391
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, { isDeleted: true }),
|
|
9392
|
-
modules: [
|
|
9392
|
+
modules: [_chunkUYBCHXXLjs.Modules.Company],
|
|
9393
9393
|
action: "update" /* Update */
|
|
9394
9394
|
}
|
|
9395
9395
|
];
|
|
@@ -9407,9 +9407,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersListContainer, "UsersListContainer");
|
|
|
9407
9407
|
function AdminUsersListInternal({ company }) {
|
|
9408
9408
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9409
9409
|
const data = useDataListRetriever({
|
|
9410
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9410
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkUYBCHXXLjs.UserService.findManyForAmin(params), "retriever"),
|
|
9411
9411
|
retrieverParams: { companyId: company.id },
|
|
9412
|
-
module:
|
|
9412
|
+
module: _chunkUYBCHXXLjs.Modules.User
|
|
9413
9413
|
});
|
|
9414
9414
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9415
9415
|
ContentListTable,
|
|
@@ -9417,7 +9417,7 @@ function AdminUsersListInternal({ company }) {
|
|
|
9417
9417
|
title: t(`types.users`, { count: 2 }),
|
|
9418
9418
|
data,
|
|
9419
9419
|
fields: ["name" /* name */, "email" /* email */, "createdAt" /* createdAt */],
|
|
9420
|
-
tableGeneratorType:
|
|
9420
|
+
tableGeneratorType: _chunkUYBCHXXLjs.Modules.User,
|
|
9421
9421
|
functions: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserEditor, { propagateChanges: data.refresh, adminCreated: true })
|
|
9422
9422
|
}
|
|
9423
9423
|
);
|
|
@@ -9439,9 +9439,9 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
9439
9439
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9440
9440
|
const data = useDataListRetriever({
|
|
9441
9441
|
ready: !!company,
|
|
9442
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9442
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkUYBCHXXLjs.UserService.findAllUsers(params), "retriever"),
|
|
9443
9443
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _214 => _214.id]), isDeleted },
|
|
9444
|
-
module:
|
|
9444
|
+
module: _chunkUYBCHXXLjs.Modules.User
|
|
9445
9445
|
});
|
|
9446
9446
|
_react.useEffect.call(void 0, () => {
|
|
9447
9447
|
if (company) data.setReady(true);
|
|
@@ -9454,7 +9454,7 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
9454
9454
|
{
|
|
9455
9455
|
data,
|
|
9456
9456
|
fields: ["name" /* name */, "email" /* email */],
|
|
9457
|
-
tableGeneratorType:
|
|
9457
|
+
tableGeneratorType: _chunkUYBCHXXLjs.Modules.User,
|
|
9458
9458
|
functions,
|
|
9459
9459
|
title: t(`types.users`, { count: 2 })
|
|
9460
9460
|
}
|
|
@@ -9470,7 +9470,7 @@ function ContributorsList({ content }) {
|
|
|
9470
9470
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9471
9471
|
Link,
|
|
9472
9472
|
{
|
|
9473
|
-
href: generateUrl({ page:
|
|
9473
|
+
href: generateUrl({ page: _chunkUYBCHXXLjs.Modules.User, id: content.author.id }),
|
|
9474
9474
|
onClick: (e) => e.stopPropagation(),
|
|
9475
9475
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: content.author, className: "mr-1 h-6 w-6" })
|
|
9476
9476
|
},
|
|
@@ -9479,7 +9479,7 @@ function ContributorsList({ content }) {
|
|
|
9479
9479
|
/* @__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,
|
|
9480
9480
|
Link,
|
|
9481
9481
|
{
|
|
9482
|
-
href: generateUrl({ page:
|
|
9482
|
+
href: generateUrl({ page: _chunkUYBCHXXLjs.Modules.User, id: editor.id }),
|
|
9483
9483
|
onClick: (e) => e.stopPropagation(),
|
|
9484
9484
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: editor, className: "h-5 w-5" })
|
|
9485
9485
|
},
|
|
@@ -9495,8 +9495,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContributorsList, "ContributorsList");
|
|
|
9495
9495
|
function RelevantUsersList({ id }) {
|
|
9496
9496
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9497
9497
|
const data = useDataListRetriever({
|
|
9498
|
-
module:
|
|
9499
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9498
|
+
module: _chunkUYBCHXXLjs.Modules.User,
|
|
9499
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkUYBCHXXLjs.UserService.findRelevant(params), "retriever"),
|
|
9500
9500
|
retrieverParams: { id }
|
|
9501
9501
|
});
|
|
9502
9502
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -9504,7 +9504,7 @@ function RelevantUsersList({ id }) {
|
|
|
9504
9504
|
{
|
|
9505
9505
|
data,
|
|
9506
9506
|
fields: ["name" /* name */, "email" /* email */, "relevance" /* relevance */],
|
|
9507
|
-
tableGeneratorType:
|
|
9507
|
+
tableGeneratorType: _chunkUYBCHXXLjs.Modules.User,
|
|
9508
9508
|
title: t(`generic.relevant_users`)
|
|
9509
9509
|
}
|
|
9510
9510
|
);
|
|
@@ -9517,16 +9517,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RelevantUsersList, "RelevantUsersList");
|
|
|
9517
9517
|
function RoleUsersList({ role }) {
|
|
9518
9518
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9519
9519
|
const data = useDataListRetriever({
|
|
9520
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9520
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkUYBCHXXLjs.UserService.findAllUsersByRole(params), "retriever"),
|
|
9521
9521
|
retrieverParams: { roleId: role.id },
|
|
9522
|
-
module:
|
|
9522
|
+
module: _chunkUYBCHXXLjs.Modules.User
|
|
9523
9523
|
});
|
|
9524
9524
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9525
9525
|
ContentListTable,
|
|
9526
9526
|
{
|
|
9527
9527
|
data,
|
|
9528
9528
|
fields: ["name" /* name */, "email" /* email */],
|
|
9529
|
-
tableGeneratorType:
|
|
9529
|
+
tableGeneratorType: _chunkUYBCHXXLjs.Modules.User,
|
|
9530
9530
|
title: t(`types.users`, { count: 2 })
|
|
9531
9531
|
}
|
|
9532
9532
|
);
|
|
@@ -9576,7 +9576,7 @@ function UsersList({ data, optionComponents, removeFunction, hideOptions, showRe
|
|
|
9576
9576
|
{
|
|
9577
9577
|
data,
|
|
9578
9578
|
fields: ["name" /* name */, "email" /* email */],
|
|
9579
|
-
tableGeneratorType:
|
|
9579
|
+
tableGeneratorType: _chunkUYBCHXXLjs.Modules.User,
|
|
9580
9580
|
title: t(`types.users`, { count: 2 })
|
|
9581
9581
|
}
|
|
9582
9582
|
);
|
|
@@ -9589,8 +9589,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersList, "UsersList");
|
|
|
9589
9589
|
function UsersListByContentIds({ contentIds }) {
|
|
9590
9590
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9591
9591
|
const data = useDataListRetriever({
|
|
9592
|
-
module:
|
|
9593
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9592
|
+
module: _chunkUYBCHXXLjs.Modules.User,
|
|
9593
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkUYBCHXXLjs.UserService.findManyByContentIds(params), "retriever"),
|
|
9594
9594
|
retrieverParams: { contentIds }
|
|
9595
9595
|
});
|
|
9596
9596
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -9598,7 +9598,7 @@ function UsersListByContentIds({ contentIds }) {
|
|
|
9598
9598
|
{
|
|
9599
9599
|
data,
|
|
9600
9600
|
fields: ["name" /* name */, "email" /* email */],
|
|
9601
|
-
tableGeneratorType:
|
|
9601
|
+
tableGeneratorType: _chunkUYBCHXXLjs.Modules.User,
|
|
9602
9602
|
title: t(`generic.relevant_users`)
|
|
9603
9603
|
}
|
|
9604
9604
|
);
|
|
@@ -9616,7 +9616,7 @@ function CompanyDetails() {
|
|
|
9616
9616
|
const { company } = useCompanyContext();
|
|
9617
9617
|
if (!company) return null;
|
|
9618
9618
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
9619
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module:
|
|
9619
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkUYBCHXXLjs.Modules.Company, type: title.type, element: title.element, functions: title.functions }),
|
|
9620
9620
|
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" })
|
|
9621
9621
|
] });
|
|
9622
9622
|
}
|
|
@@ -9681,13 +9681,13 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9681
9681
|
const textSize = textSizeClasses[size];
|
|
9682
9682
|
const getBatteryIcon = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
9683
9683
|
if (percentage > 75) {
|
|
9684
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryFull, { className:
|
|
9684
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryFull, { className: _chunkUYBCHXXLjs.cn.call(void 0, iconSize, "text-green-500") });
|
|
9685
9685
|
} else if (percentage >= 25) {
|
|
9686
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryMedium, { className:
|
|
9686
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryMedium, { className: _chunkUYBCHXXLjs.cn.call(void 0, iconSize, "text-yellow-500") });
|
|
9687
9687
|
} else if (percentage >= 5) {
|
|
9688
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryLow, { className:
|
|
9688
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryLow, { className: _chunkUYBCHXXLjs.cn.call(void 0, iconSize, "text-orange-500") });
|
|
9689
9689
|
} else {
|
|
9690
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Battery, { className:
|
|
9690
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Battery, { className: _chunkUYBCHXXLjs.cn.call(void 0, iconSize, "text-destructive") });
|
|
9691
9691
|
}
|
|
9692
9692
|
}, "getBatteryIcon");
|
|
9693
9693
|
const getStatusColor = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -9709,7 +9709,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9709
9709
|
t("generic.tokens.monthly", { defaultValue: "Monthly Pages" }),
|
|
9710
9710
|
":"
|
|
9711
9711
|
] }),
|
|
9712
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
9712
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUYBCHXXLjs.cn.call(void 0, "font-medium", getStatusColor()), children: [
|
|
9713
9713
|
availableMonthlyTokens,
|
|
9714
9714
|
" / ",
|
|
9715
9715
|
monthlyTokens
|
|
@@ -9720,7 +9720,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9720
9720
|
t("generic.tokens.available", { defaultValue: "Available" }),
|
|
9721
9721
|
":"
|
|
9722
9722
|
] }),
|
|
9723
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
9723
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUYBCHXXLjs.cn.call(void 0, "font-medium", getStatusColor()), children: [
|
|
9724
9724
|
percentage.toFixed(0),
|
|
9725
9725
|
"%"
|
|
9726
9726
|
] })
|
|
@@ -9741,14 +9741,14 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9741
9741
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9742
9742
|
"div",
|
|
9743
9743
|
{
|
|
9744
|
-
className:
|
|
9744
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0, "inline-flex items-center gap-1.5 cursor-default", className),
|
|
9745
9745
|
"aria-label": t("generic.tokens.status", { defaultValue: "Page Status" }),
|
|
9746
9746
|
children: [
|
|
9747
9747
|
getBatteryIcon(),
|
|
9748
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
9748
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUYBCHXXLjs.cn.call(void 0, textSize, "text-muted-foreground font-medium"), children: availableMonthlyTokens }),
|
|
9749
9749
|
showExtraPages && availableExtraTokens > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "inline-flex items-center gap-0.5", children: [
|
|
9750
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className:
|
|
9751
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
9750
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className: _chunkUYBCHXXLjs.cn.call(void 0, smallIconSize, "text-blue-500") }),
|
|
9751
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUYBCHXXLjs.cn.call(void 0, textSize, "text-blue-500 font-medium"), children: availableExtraTokens })
|
|
9752
9752
|
] })
|
|
9753
9753
|
]
|
|
9754
9754
|
}
|
|
@@ -9866,8 +9866,8 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
9866
9866
|
}
|
|
9867
9867
|
};
|
|
9868
9868
|
try {
|
|
9869
|
-
await
|
|
9870
|
-
const fullUser = await
|
|
9869
|
+
await _chunkUYBCHXXLjs.CompanyService.updateConfigurations(payload);
|
|
9870
|
+
const fullUser = await _chunkUYBCHXXLjs.UserService.findFullUser();
|
|
9871
9871
|
if (fullUser) {
|
|
9872
9872
|
setUser(fullUser);
|
|
9873
9873
|
}
|
|
@@ -9922,7 +9922,7 @@ function CompanyDeleterInternal({ company }) {
|
|
|
9922
9922
|
const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
9923
9923
|
setIsDeleting(true);
|
|
9924
9924
|
try {
|
|
9925
|
-
await
|
|
9925
|
+
await _chunkUYBCHXXLjs.CompanyService.delete({ companyId: company.id });
|
|
9926
9926
|
router.push("/");
|
|
9927
9927
|
} catch (error) {
|
|
9928
9928
|
errorToast({ title: t(`generic.errors.delete`), error });
|
|
@@ -9992,7 +9992,7 @@ function CompanyDeleterInternal({ company }) {
|
|
|
9992
9992
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleterInternal, "CompanyDeleterInternal");
|
|
9993
9993
|
function CompanyDeleter({ company }) {
|
|
9994
9994
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
9995
|
-
if (!hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator) && !hasPermissionToModule({ module:
|
|
9995
|
+
if (!hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator) && !hasPermissionToModule({ module: _chunkUYBCHXXLjs.Modules.Company, action: "delete" /* Delete */ }))
|
|
9996
9996
|
return null;
|
|
9997
9997
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleterInternal, { company });
|
|
9998
9998
|
}
|
|
@@ -10040,7 +10040,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10040
10040
|
});
|
|
10041
10041
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
10042
10042
|
if (values.logo && contentType) {
|
|
10043
|
-
const s3 = await
|
|
10043
|
+
const s3 = await _chunkUYBCHXXLjs.S3Service.getPreSignedUrl({
|
|
10044
10044
|
key: values.logo,
|
|
10045
10045
|
contentType,
|
|
10046
10046
|
isPublic: true
|
|
@@ -10059,9 +10059,9 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10059
10059
|
moduleIds: values.moduleIds
|
|
10060
10060
|
};
|
|
10061
10061
|
try {
|
|
10062
|
-
const updatedCompany = company ? await
|
|
10062
|
+
const updatedCompany = company ? await _chunkUYBCHXXLjs.CompanyService.update(payload) : await _chunkUYBCHXXLjs.CompanyService.create(payload);
|
|
10063
10063
|
if (onRevalidate) {
|
|
10064
|
-
await onRevalidate(generateUrl({ page:
|
|
10064
|
+
await onRevalidate(generateUrl({ page: _chunkUYBCHXXLjs.Modules.Company, id: updatedCompany.id, language: `[locale]` }));
|
|
10065
10065
|
}
|
|
10066
10066
|
if (company && propagateChanges) {
|
|
10067
10067
|
_cookiesnext.setCookie.call(void 0, "reloadData", "true", { path: "/" });
|
|
@@ -10079,7 +10079,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10079
10079
|
}, "onSubmit");
|
|
10080
10080
|
_react.useEffect.call(void 0, () => {
|
|
10081
10081
|
async function fetchFeatures() {
|
|
10082
|
-
const allfeatures = await
|
|
10082
|
+
const allfeatures = await _chunkUYBCHXXLjs.FeatureService.findMany({});
|
|
10083
10083
|
if (hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator)) {
|
|
10084
10084
|
setFeatures(allfeatures);
|
|
10085
10085
|
} else {
|
|
@@ -10182,9 +10182,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyEditor, "CompanyEditor");
|
|
|
10182
10182
|
function CompaniesList() {
|
|
10183
10183
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10184
10184
|
const data = useDataListRetriever({
|
|
10185
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
10185
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkUYBCHXXLjs.CompanyService.findMany(params), "retriever"),
|
|
10186
10186
|
retrieverParams: {},
|
|
10187
|
-
module:
|
|
10187
|
+
module: _chunkUYBCHXXLjs.Modules.Company
|
|
10188
10188
|
});
|
|
10189
10189
|
const functions = [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, {}, "create-account")];
|
|
10190
10190
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10192,7 +10192,7 @@ function CompaniesList() {
|
|
|
10192
10192
|
{
|
|
10193
10193
|
data,
|
|
10194
10194
|
fields: ["name" /* name */, "createdAt" /* createdAt */],
|
|
10195
|
-
tableGeneratorType:
|
|
10195
|
+
tableGeneratorType: _chunkUYBCHXXLjs.Modules.Company,
|
|
10196
10196
|
functions,
|
|
10197
10197
|
title: t(`types.companies`, { count: 2 })
|
|
10198
10198
|
}
|
|
@@ -10213,14 +10213,14 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
10213
10213
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10214
10214
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
10215
10215
|
const [company, setCompany] = _react.useState.call(void 0,
|
|
10216
|
-
dehydratedCompany ?
|
|
10216
|
+
dehydratedCompany ? _chunkUYBCHXXLjs.rehydrate.call(void 0, _chunkUYBCHXXLjs.Modules.Company, dehydratedCompany) : void 0
|
|
10217
10217
|
);
|
|
10218
10218
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10219
10219
|
const response = [];
|
|
10220
10220
|
if (company)
|
|
10221
10221
|
response.push({
|
|
10222
10222
|
name: company.name,
|
|
10223
|
-
href: generateUrl({ page:
|
|
10223
|
+
href: generateUrl({ page: _chunkUYBCHXXLjs.Modules.Company })
|
|
10224
10224
|
});
|
|
10225
10225
|
return response;
|
|
10226
10226
|
}, "breadcrumb");
|
|
@@ -10230,9 +10230,9 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
10230
10230
|
};
|
|
10231
10231
|
if (company) response.element = company.name;
|
|
10232
10232
|
const functions = [];
|
|
10233
|
-
if (company && hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator) && hasPermissionToModule({ module:
|
|
10233
|
+
if (company && hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator) && hasPermissionToModule({ module: _chunkUYBCHXXLjs.Modules.Company, action: "delete" /* Delete */ }))
|
|
10234
10234
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleter, { company }, "companyDeleter"));
|
|
10235
|
-
if (hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module:
|
|
10235
|
+
if (hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module: _chunkUYBCHXXLjs.Modules.Company, action: "update" /* Update */ })) {
|
|
10236
10236
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, { company, propagateChanges: setCompany }, "companyEditor"));
|
|
10237
10237
|
}
|
|
10238
10238
|
if (functions.length > 0) response.functions = functions;
|
|
@@ -10349,7 +10349,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
10349
10349
|
setIsLoading(true);
|
|
10350
10350
|
setError(null);
|
|
10351
10351
|
try {
|
|
10352
|
-
const fetchedNotifications = await
|
|
10352
|
+
const fetchedNotifications = await _chunkUYBCHXXLjs.NotificationService.findMany({});
|
|
10353
10353
|
setNotifications(fetchedNotifications);
|
|
10354
10354
|
setLastLoaded(Date.now());
|
|
10355
10355
|
} catch (error2) {
|
|
@@ -10365,7 +10365,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
10365
10365
|
try {
|
|
10366
10366
|
const data = {
|
|
10367
10367
|
data: ids.map((id) => ({
|
|
10368
|
-
type:
|
|
10368
|
+
type: _chunkUYBCHXXLjs.Modules.Notification.name,
|
|
10369
10369
|
id,
|
|
10370
10370
|
attributes: {
|
|
10371
10371
|
isRead: true
|
|
@@ -10374,8 +10374,8 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
10374
10374
|
relationships: {}
|
|
10375
10375
|
}))
|
|
10376
10376
|
};
|
|
10377
|
-
await
|
|
10378
|
-
const allNotifications = await
|
|
10377
|
+
await _chunkUYBCHXXLjs.NotificationService.markAsRead({ data });
|
|
10378
|
+
const allNotifications = await _chunkUYBCHXXLjs.NotificationService.findMany({});
|
|
10379
10379
|
setNotifications(allNotifications);
|
|
10380
10380
|
setLastLoaded(Date.now());
|
|
10381
10381
|
} catch (error2) {
|
|
@@ -10443,18 +10443,18 @@ var RoleProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
10443
10443
|
const generateUrl = usePageUrlGenerator();
|
|
10444
10444
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10445
10445
|
const [role, setRole] = _react.useState.call(void 0,
|
|
10446
|
-
dehydratedRole ?
|
|
10446
|
+
dehydratedRole ? _chunkUYBCHXXLjs.rehydrate.call(void 0, _chunkUYBCHXXLjs.Modules.Role, dehydratedRole) : void 0
|
|
10447
10447
|
);
|
|
10448
10448
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10449
10449
|
const response = [];
|
|
10450
10450
|
response.push({
|
|
10451
10451
|
name: t(`types.roles`, { count: 2 }),
|
|
10452
|
-
href: generateUrl({ page:
|
|
10452
|
+
href: generateUrl({ page: _chunkUYBCHXXLjs.Modules.Role })
|
|
10453
10453
|
});
|
|
10454
10454
|
if (role)
|
|
10455
10455
|
response.push({
|
|
10456
10456
|
name: role.name,
|
|
10457
|
-
href: generateUrl({ page:
|
|
10457
|
+
href: generateUrl({ page: _chunkUYBCHXXLjs.Modules.Role, id: role.id })
|
|
10458
10458
|
});
|
|
10459
10459
|
return response;
|
|
10460
10460
|
}, "breadcrumb");
|
|
@@ -10645,7 +10645,7 @@ function usePushNotifications() {
|
|
|
10645
10645
|
};
|
|
10646
10646
|
const subscriptionHash = btoa(JSON.stringify(plainSubscription));
|
|
10647
10647
|
if (lastRegisteredSubscription !== subscriptionHash) {
|
|
10648
|
-
await
|
|
10648
|
+
await _chunkUYBCHXXLjs.PushService.register({ data: plainSubscription });
|
|
10649
10649
|
sessionStorage.setItem(sessionKey, subscriptionHash);
|
|
10650
10650
|
}
|
|
10651
10651
|
} catch (error) {
|
|
@@ -10728,7 +10728,7 @@ function useSocket({ token }) {
|
|
|
10728
10728
|
});
|
|
10729
10729
|
}, "handleMessage");
|
|
10730
10730
|
const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
|
|
10731
|
-
const notification =
|
|
10731
|
+
const notification = _chunkUYBCHXXLjs.rehydrate.call(void 0, _chunkUYBCHXXLjs.Modules.Notification, data);
|
|
10732
10732
|
if (notification) {
|
|
10733
10733
|
setSocketNotifications((prev) => {
|
|
10734
10734
|
const newNotifications = [...prev, notification];
|
|
@@ -10843,7 +10843,7 @@ function ContentTitle({ module, type, element, functions, className }) {
|
|
|
10843
10843
|
setClientFunctions(functions);
|
|
10844
10844
|
}, [functions]);
|
|
10845
10845
|
if (!element) return null;
|
|
10846
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
10846
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkUYBCHXXLjs.cn.call(void 0, `mb-4 flex items-center justify-between gap-x-4 w-full`, className), children: [
|
|
10847
10847
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col w-full", children: [
|
|
10848
10848
|
type && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `text-muted-foreground text-xl font-light flex gap-x-2 items-center`, children: [
|
|
10849
10849
|
module && module.icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, module.icon, { className: "w-5 h-5 inline-block" }),
|
|
@@ -10991,7 +10991,7 @@ function PageContainer({ children, testId, className }) {
|
|
|
10991
10991
|
const headerChildren = useHeaderChildren();
|
|
10992
10992
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex h-full w-full flex-col`, "data-testid": testId, children: [
|
|
10993
10993
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header, { children: headerChildren }),
|
|
10994
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className:
|
|
10994
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className: _chunkUYBCHXXLjs.cn.call(void 0, `flex w-full flex-1 flex-col gap-y-4 pt-4 pl-4 pr-4 pb-20`, className), children })
|
|
10995
10995
|
] });
|
|
10996
10996
|
}
|
|
10997
10997
|
_chunk7QVYU63Ejs.__name.call(void 0, PageContainer, "PageContainer");
|
|
@@ -11100,7 +11100,7 @@ function TabsContainer({
|
|
|
11100
11100
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11101
11101
|
TabsList,
|
|
11102
11102
|
{
|
|
11103
|
-
className:
|
|
11103
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
11104
11104
|
`${style ? `my-4 flex w-full justify-start rounded-none border-b bg-transparent pb-0` : ``}`,
|
|
11105
11105
|
tabsListClassName
|
|
11106
11106
|
),
|
|
@@ -11108,7 +11108,7 @@ function TabsContainer({
|
|
|
11108
11108
|
TabsTrigger,
|
|
11109
11109
|
{
|
|
11110
11110
|
value: tab.label,
|
|
11111
|
-
className:
|
|
11111
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
11112
11112
|
`${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`}`,
|
|
11113
11113
|
tabsTriggerClassName
|
|
11114
11114
|
),
|
|
@@ -11128,7 +11128,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, TabsContainer, "TabsContainer");
|
|
|
11128
11128
|
// src/components/contents/AttributeElement.tsx
|
|
11129
11129
|
|
|
11130
11130
|
function AttributeElement({ inline, title, value, className }) {
|
|
11131
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
11131
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkUYBCHXXLjs.cn.call(void 0, `flex ${inline === true ? "flex-row" : "flex-col"} my-1 justify-start`, className), children: [
|
|
11132
11132
|
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${inline === true ? "min-w-48 pr-4" : "w-full"} text-sm font-semibold`, children: title }),
|
|
11133
11133
|
value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col text-sm", children: value })
|
|
11134
11134
|
] });
|
|
@@ -11151,7 +11151,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AllowedUsersDetails, "AllowedUsersDetails")
|
|
|
11151
11151
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
11152
11152
|
|
|
11153
11153
|
|
|
11154
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
11154
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-BEWKLGW3.js"))), {
|
|
11155
11155
|
ssr: false
|
|
11156
11156
|
});
|
|
11157
11157
|
var BlockNoteEditorContainer = React3.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -11202,7 +11202,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, PageContainerContentDetails, "PageContainer
|
|
|
11202
11202
|
|
|
11203
11203
|
function PageContentContainer({ header, details, footer, content }) {
|
|
11204
11204
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
11205
|
-
const isMobile =
|
|
11205
|
+
const isMobile = _chunkUYBCHXXLjs.useIsMobile.call(void 0, );
|
|
11206
11206
|
_react.useEffect.call(void 0, () => {
|
|
11207
11207
|
setMounted(true);
|
|
11208
11208
|
}, []);
|
|
@@ -11233,10 +11233,10 @@ function PageContentContainer({ header, details, footer, content }) {
|
|
|
11233
11233
|
}
|
|
11234
11234
|
),
|
|
11235
11235
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ResizableHandle, { withHandle: true }),
|
|
11236
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ResizablePanel, { id: "right-panel", className: isMobile ? "pt-4" : "pl-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full overflow-y-auto", children: content }) })
|
|
11236
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ResizablePanel, { id: "right-panel", className: isMobile ? "pt-4" : "pl-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full overflow-x-hidden overflow-y-auto p-2 pb-20", children: content }) })
|
|
11237
11237
|
]
|
|
11238
11238
|
}
|
|
11239
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full overflow-y-auto", children: content }) })
|
|
11239
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full overflow-x-hidden overflow-y-auto p-2 pb-20", children: content }) })
|
|
11240
11240
|
] });
|
|
11241
11241
|
}
|
|
11242
11242
|
_chunk7QVYU63Ejs.__name.call(void 0, PageContentContainer, "PageContentContainer");
|
|
@@ -11534,14 +11534,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, useJsonApiMutation, "useJsonApiMutation");
|
|
|
11534
11534
|
function useRehydration(classKey, data) {
|
|
11535
11535
|
return _react.useMemo.call(void 0, () => {
|
|
11536
11536
|
if (!data) return null;
|
|
11537
|
-
return
|
|
11537
|
+
return _chunkUYBCHXXLjs.RehydrationFactory.rehydrate(classKey, data);
|
|
11538
11538
|
}, [classKey, data]);
|
|
11539
11539
|
}
|
|
11540
11540
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydration, "useRehydration");
|
|
11541
11541
|
function useRehydrationList(classKey, data) {
|
|
11542
11542
|
return _react.useMemo.call(void 0, () => {
|
|
11543
11543
|
if (!data || data.length === 0) return [];
|
|
11544
|
-
return
|
|
11544
|
+
return _chunkUYBCHXXLjs.RehydrationFactory.rehydrateList(classKey, data);
|
|
11545
11545
|
}, [classKey, data]);
|
|
11546
11546
|
}
|
|
11547
11547
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydrationList, "useRehydrationList");
|
|
@@ -11583,9 +11583,9 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
11583
11583
|
{
|
|
11584
11584
|
href: hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
11585
11585
|
page: "/administration",
|
|
11586
|
-
id: _optionalChain([
|
|
11586
|
+
id: _optionalChain([_chunkUYBCHXXLjs.Modules, 'access', _282 => _282.Company, 'access', _283 => _283.pageUrl, 'optionalAccess', _284 => _284.substring, 'call', _285 => _285(1)]),
|
|
11587
11587
|
childPage: company.id
|
|
11588
|
-
}) : generateUrl({ page:
|
|
11588
|
+
}) : generateUrl({ page: _chunkUYBCHXXLjs.Modules.Company, id: company.id }),
|
|
11589
11589
|
children: row.getValue("name")
|
|
11590
11590
|
}
|
|
11591
11591
|
);
|
|
@@ -11686,7 +11686,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
11686
11686
|
header: t(`foundations.role.fields.name.label`),
|
|
11687
11687
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
11688
11688
|
const role = row.original.jsonApiData;
|
|
11689
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page:
|
|
11689
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunkUYBCHXXLjs.Modules.Role, id: role.id }), children: row.getValue("name") });
|
|
11690
11690
|
}, "cell"),
|
|
11691
11691
|
enableSorting: false,
|
|
11692
11692
|
enableHiding: false
|
|
@@ -11723,7 +11723,7 @@ var useUserSearch = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
|
11723
11723
|
if (search === searchQueryRef.current && users.length > 0) return;
|
|
11724
11724
|
setIsLoading(true);
|
|
11725
11725
|
searchQueryRef.current = search;
|
|
11726
|
-
const fetchedUsers = await
|
|
11726
|
+
const fetchedUsers = await _chunkUYBCHXXLjs.UserService.findMany({ search, fetchAll: true });
|
|
11727
11727
|
setUsers(fetchedUsers);
|
|
11728
11728
|
} catch (error) {
|
|
11729
11729
|
console.error("Failed to load users:", error);
|
|
@@ -11789,8 +11789,8 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
11789
11789
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11790
11790
|
Link,
|
|
11791
11791
|
{
|
|
11792
|
-
href: generateUrl({ page:
|
|
11793
|
-
className:
|
|
11792
|
+
href: generateUrl({ page: _chunkUYBCHXXLjs.Modules.User, id: user.id }),
|
|
11793
|
+
className: _chunkUYBCHXXLjs.cn.call(void 0,
|
|
11794
11794
|
`flex items-center justify-start gap-2`,
|
|
11795
11795
|
user.isDeleted || !user.isActivated ? "text-muted-foreground italic" : ""
|
|
11796
11796
|
),
|
|
@@ -11884,11 +11884,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
11884
11884
|
header: t(`foundations.content.fields.name.label`),
|
|
11885
11885
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
11886
11886
|
const content = row.original.jsonApiData;
|
|
11887
|
-
const contentModule = content.contentType ?
|
|
11887
|
+
const contentModule = content.contentType ? _chunkUYBCHXXLjs.Modules.findByModelName(content.contentType) : void 0;
|
|
11888
11888
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
11889
11889
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
|
|
11890
11890
|
/* @__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: [
|
|
11891
|
-
contentModule &&
|
|
11891
|
+
contentModule && _chunkUYBCHXXLjs.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
11892
11892
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: link, children: content.name })
|
|
11893
11893
|
] }) }),
|
|
11894
11894
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: content.tldr })
|
|
@@ -12025,7 +12025,7 @@ function useOAuthClients() {
|
|
|
12025
12025
|
setIsLoading(true);
|
|
12026
12026
|
setError(null);
|
|
12027
12027
|
try {
|
|
12028
|
-
const fetchedClients = await
|
|
12028
|
+
const fetchedClients = await _chunkUYBCHXXLjs.OAuthService.listClients();
|
|
12029
12029
|
setClients(fetchedClients);
|
|
12030
12030
|
} catch (err) {
|
|
12031
12031
|
console.error("[useOAuthClients] Failed to fetch clients:", err);
|
|
@@ -12042,7 +12042,7 @@ function useOAuthClients() {
|
|
|
12042
12042
|
setIsLoading(true);
|
|
12043
12043
|
setError(null);
|
|
12044
12044
|
try {
|
|
12045
|
-
const result = await
|
|
12045
|
+
const result = await _chunkUYBCHXXLjs.OAuthService.createClient(data);
|
|
12046
12046
|
addClient(result.client);
|
|
12047
12047
|
if (result.clientSecret) {
|
|
12048
12048
|
setNewClientSecret({
|
|
@@ -12089,7 +12089,7 @@ function useOAuthClient(clientId) {
|
|
|
12089
12089
|
setIsLoading(true);
|
|
12090
12090
|
setError(null);
|
|
12091
12091
|
try {
|
|
12092
|
-
const fetched = await
|
|
12092
|
+
const fetched = await _chunkUYBCHXXLjs.OAuthService.getClient({ clientId });
|
|
12093
12093
|
setFetchedClient(fetched);
|
|
12094
12094
|
} catch (err) {
|
|
12095
12095
|
console.error("[useOAuthClient] Failed to fetch client:", err);
|
|
@@ -12109,7 +12109,7 @@ function useOAuthClient(clientId) {
|
|
|
12109
12109
|
setIsLoading(true);
|
|
12110
12110
|
setError(null);
|
|
12111
12111
|
try {
|
|
12112
|
-
const updated = await
|
|
12112
|
+
const updated = await _chunkUYBCHXXLjs.OAuthService.updateClient({ clientId, data });
|
|
12113
12113
|
updateClientInStore(updated);
|
|
12114
12114
|
setFetchedClient(updated);
|
|
12115
12115
|
} catch (err) {
|
|
@@ -12128,7 +12128,7 @@ function useOAuthClient(clientId) {
|
|
|
12128
12128
|
setIsLoading(true);
|
|
12129
12129
|
setError(null);
|
|
12130
12130
|
try {
|
|
12131
|
-
await
|
|
12131
|
+
await _chunkUYBCHXXLjs.OAuthService.deleteClient({ clientId });
|
|
12132
12132
|
removeClientFromStore(clientId);
|
|
12133
12133
|
} catch (err) {
|
|
12134
12134
|
console.error("[useOAuthClient] Failed to delete client:", err);
|
|
@@ -12144,7 +12144,7 @@ function useOAuthClient(clientId) {
|
|
|
12144
12144
|
setIsLoading(true);
|
|
12145
12145
|
setError(null);
|
|
12146
12146
|
try {
|
|
12147
|
-
const result = await
|
|
12147
|
+
const result = await _chunkUYBCHXXLjs.OAuthService.regenerateSecret({ clientId });
|
|
12148
12148
|
setNewClientSecret({
|
|
12149
12149
|
clientId,
|
|
12150
12150
|
secret: result.clientSecret
|
|
@@ -12188,7 +12188,7 @@ function useOAuthConsent(params) {
|
|
|
12188
12188
|
setIsLoading(true);
|
|
12189
12189
|
setError(null);
|
|
12190
12190
|
try {
|
|
12191
|
-
const info = await
|
|
12191
|
+
const info = await _chunkUYBCHXXLjs.OAuthService.getAuthorizationInfo(params);
|
|
12192
12192
|
setClientInfo(info);
|
|
12193
12193
|
} catch (err) {
|
|
12194
12194
|
console.error("[useOAuthConsent] Failed to fetch authorization info:", err);
|
|
@@ -12210,7 +12210,7 @@ function useOAuthConsent(params) {
|
|
|
12210
12210
|
setIsSubmitting(true);
|
|
12211
12211
|
setError(null);
|
|
12212
12212
|
try {
|
|
12213
|
-
const result = await
|
|
12213
|
+
const result = await _chunkUYBCHXXLjs.OAuthService.approveAuthorization(params);
|
|
12214
12214
|
if (result.redirectUrl) {
|
|
12215
12215
|
window.location.href = result.redirectUrl;
|
|
12216
12216
|
}
|
|
@@ -12224,7 +12224,7 @@ function useOAuthConsent(params) {
|
|
|
12224
12224
|
setIsSubmitting(true);
|
|
12225
12225
|
setError(null);
|
|
12226
12226
|
try {
|
|
12227
|
-
const result = await
|
|
12227
|
+
const result = await _chunkUYBCHXXLjs.OAuthService.denyAuthorization(params);
|
|
12228
12228
|
if (result.redirectUrl) {
|
|
12229
12229
|
window.location.href = result.redirectUrl;
|
|
12230
12230
|
}
|
|
@@ -12480,7 +12480,7 @@ function Register() {
|
|
|
12480
12480
|
email: values.email,
|
|
12481
12481
|
password: values.password
|
|
12482
12482
|
};
|
|
12483
|
-
await
|
|
12483
|
+
await _chunkUYBCHXXLjs.AuthService.register(payload);
|
|
12484
12484
|
setShowConfirmation(true);
|
|
12485
12485
|
} catch (e) {
|
|
12486
12486
|
errorToast({ error: e });
|
|
@@ -12681,7 +12681,7 @@ function AcceptInvitation() {
|
|
|
12681
12681
|
const payload = {
|
|
12682
12682
|
code
|
|
12683
12683
|
};
|
|
12684
|
-
await
|
|
12684
|
+
await _chunkUYBCHXXLjs.AuthService.validateCode(payload);
|
|
12685
12685
|
} catch (e) {
|
|
12686
12686
|
setError(e instanceof Error ? e.message : String(e));
|
|
12687
12687
|
errorToast({ title: t(`generic.errors.error`), error: e });
|
|
@@ -12719,7 +12719,7 @@ function AcceptInvitation() {
|
|
|
12719
12719
|
code: _optionalChain([params, 'optionalAccess', _308 => _308.code]),
|
|
12720
12720
|
password: values.password
|
|
12721
12721
|
};
|
|
12722
|
-
await
|
|
12722
|
+
await _chunkUYBCHXXLjs.AuthService.acceptInvitation(payload);
|
|
12723
12723
|
setShowConfirmation(true);
|
|
12724
12724
|
_sonner.toast.success(t("foundations.auth.account_activated"), {
|
|
12725
12725
|
description: t("foundations.auth.account_activated_description")
|
|
@@ -12782,7 +12782,7 @@ function ActivateAccount() {
|
|
|
12782
12782
|
const payload = {
|
|
12783
12783
|
activationCode: code
|
|
12784
12784
|
};
|
|
12785
|
-
await
|
|
12785
|
+
await _chunkUYBCHXXLjs.AuthService.activate(payload);
|
|
12786
12786
|
setShowConfirmation(true);
|
|
12787
12787
|
setParams(void 0);
|
|
12788
12788
|
_sonner.toast.success(t("foundations.auth.account_activated"), {
|
|
@@ -12825,8 +12825,8 @@ function Cookies({ dehydratedAuth, page }) {
|
|
|
12825
12825
|
_react.useEffect.call(void 0, () => {
|
|
12826
12826
|
if (hasSaved) return;
|
|
12827
12827
|
async function saveTokenOnServer() {
|
|
12828
|
-
await
|
|
12829
|
-
const auth =
|
|
12828
|
+
await _chunkUYBCHXXLjs.AuthService.saveToken({ dehydratedAuth });
|
|
12829
|
+
const auth = _chunkUYBCHXXLjs.rehydrate.call(void 0, _chunkUYBCHXXLjs.Modules.Auth, dehydratedAuth);
|
|
12830
12830
|
setUser(auth.user);
|
|
12831
12831
|
setHasSaved(true);
|
|
12832
12832
|
if (page) {
|
|
@@ -12869,7 +12869,7 @@ function ForgotPassword() {
|
|
|
12869
12869
|
const payload = {
|
|
12870
12870
|
email: values.email
|
|
12871
12871
|
};
|
|
12872
|
-
await
|
|
12872
|
+
await _chunkUYBCHXXLjs.AuthService.initialiseForgotPassword(payload);
|
|
12873
12873
|
setShowConfirmation(true);
|
|
12874
12874
|
} catch (e) {
|
|
12875
12875
|
errorToast({ error: e });
|
|
@@ -12940,7 +12940,7 @@ function Login() {
|
|
|
12940
12940
|
});
|
|
12941
12941
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
12942
12942
|
try {
|
|
12943
|
-
const user = await
|
|
12943
|
+
const user = await _chunkUYBCHXXLjs.AuthService.login({
|
|
12944
12944
|
email: values.email,
|
|
12945
12945
|
password: values.password
|
|
12946
12946
|
});
|
|
@@ -13022,7 +13022,7 @@ function Logout() {
|
|
|
13022
13022
|
const generateUrl = usePageUrlGenerator();
|
|
13023
13023
|
_react.useEffect.call(void 0, () => {
|
|
13024
13024
|
const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
13025
|
-
await
|
|
13025
|
+
await _chunkUYBCHXXLjs.AuthService.logout();
|
|
13026
13026
|
window.location.href = generateUrl({ page: `/` });
|
|
13027
13027
|
}, "logOut");
|
|
13028
13028
|
logOut();
|
|
@@ -13037,7 +13037,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, Logout, "Logout");
|
|
|
13037
13037
|
function RefreshUser() {
|
|
13038
13038
|
const { setUser } = useCurrentUserContext();
|
|
13039
13039
|
const loadFullUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
13040
|
-
const fullUser = await
|
|
13040
|
+
const fullUser = await _chunkUYBCHXXLjs.UserService.findFullUser();
|
|
13041
13041
|
if (fullUser) {
|
|
13042
13042
|
setUser(fullUser);
|
|
13043
13043
|
const token = {
|
|
@@ -13049,7 +13049,7 @@ function RefreshUser() {
|
|
|
13049
13049
|
return { id: module.id, permissions: module.permissions };
|
|
13050
13050
|
})
|
|
13051
13051
|
};
|
|
13052
|
-
await _optionalChain([
|
|
13052
|
+
await _optionalChain([_chunkUYBCHXXLjs.getTokenHandler.call(void 0, ), 'optionalAccess', _315 => _315.updateToken, 'call', _316 => _316(token)]);
|
|
13053
13053
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
13054
13054
|
}
|
|
13055
13055
|
}, "loadFullUser");
|
|
@@ -13081,7 +13081,7 @@ function ResetPassword() {
|
|
|
13081
13081
|
const payload = {
|
|
13082
13082
|
code
|
|
13083
13083
|
};
|
|
13084
|
-
await
|
|
13084
|
+
await _chunkUYBCHXXLjs.AuthService.validateCode(payload);
|
|
13085
13085
|
} catch (e) {
|
|
13086
13086
|
setError(e instanceof Error ? e.message : String(e));
|
|
13087
13087
|
errorToast({ title: t(`generic.errors.error`), error: e });
|
|
@@ -13119,7 +13119,7 @@ function ResetPassword() {
|
|
|
13119
13119
|
code: _optionalChain([params, 'optionalAccess', _318 => _318.code]),
|
|
13120
13120
|
password: values.password
|
|
13121
13121
|
};
|
|
13122
|
-
await
|
|
13122
|
+
await _chunkUYBCHXXLjs.AuthService.resetPassword(payload);
|
|
13123
13123
|
setShowConfirmation(true);
|
|
13124
13124
|
_sonner.toast.success(t(`foundations.auth.reset_success`), {
|
|
13125
13125
|
description: t(`foundations.auth.reset_success_description`)
|
|
@@ -13162,12 +13162,12 @@ function ContentsList({ contentList }) {
|
|
|
13162
13162
|
_chunk7QVYU63Ejs.__name.call(void 0, ContentsList, "ContentsList");
|
|
13163
13163
|
function ContentsListElement({ content }) {
|
|
13164
13164
|
const generateUrl = usePageUrlGenerator();
|
|
13165
|
-
const contentModule = content.contentType ?
|
|
13165
|
+
const contentModule = content.contentType ? _chunkUYBCHXXLjs.Modules.findByModelName(content.contentType) : void 0;
|
|
13166
13166
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
13167
13167
|
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: [
|
|
13168
13168
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCard, { children: [
|
|
13169
13169
|
/* @__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: [
|
|
13170
|
-
contentModule &&
|
|
13170
|
+
contentModule && _chunkUYBCHXXLjs.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
13171
13171
|
content.name
|
|
13172
13172
|
] }) }),
|
|
13173
13173
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCardContent, { className: "flex max-h-96 w-96 flex-col gap-y-4 overflow-y-auto", children: [
|
|
@@ -13186,8 +13186,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListElement, "ContentsListElement")
|
|
|
13186
13186
|
function ContentsListById({ contentIds }) {
|
|
13187
13187
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13188
13188
|
const data = useDataListRetriever({
|
|
13189
|
-
module:
|
|
13190
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
13189
|
+
module: _chunkUYBCHXXLjs.Modules.Content,
|
|
13190
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkUYBCHXXLjs.ContentService.findMany(params), "retriever"),
|
|
13191
13191
|
retrieverParams: { contentIds }
|
|
13192
13192
|
});
|
|
13193
13193
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -13195,7 +13195,7 @@ function ContentsListById({ contentIds }) {
|
|
|
13195
13195
|
{
|
|
13196
13196
|
data,
|
|
13197
13197
|
fields: ["name" /* name */, "authors" /* authors */, "updatedAt" /* updatedAt */],
|
|
13198
|
-
tableGeneratorType:
|
|
13198
|
+
tableGeneratorType: _chunkUYBCHXXLjs.Modules.Content,
|
|
13199
13199
|
title: t(`generic.relevant`)
|
|
13200
13200
|
}
|
|
13201
13201
|
);
|
|
@@ -13208,8 +13208,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListById, "ContentsListById");
|
|
|
13208
13208
|
function RelevantContentsList({ id }) {
|
|
13209
13209
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13210
13210
|
const data = useDataListRetriever({
|
|
13211
|
-
module:
|
|
13212
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
13211
|
+
module: _chunkUYBCHXXLjs.Modules.Content,
|
|
13212
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkUYBCHXXLjs.ContentService.findRelevant(params), "retriever"),
|
|
13213
13213
|
retrieverParams: { id }
|
|
13214
13214
|
});
|
|
13215
13215
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -13217,7 +13217,7 @@ function RelevantContentsList({ id }) {
|
|
|
13217
13217
|
{
|
|
13218
13218
|
data,
|
|
13219
13219
|
fields: ["name" /* name */, "authors" /* authors */, "relevance" /* relevance */, "updatedAt" /* updatedAt */],
|
|
13220
|
-
tableGeneratorType:
|
|
13220
|
+
tableGeneratorType: _chunkUYBCHXXLjs.Modules.Content,
|
|
13221
13221
|
title: t(`generic.relevant`)
|
|
13222
13222
|
}
|
|
13223
13223
|
);
|
|
@@ -13270,12 +13270,12 @@ function NotificationsList({ archived }) {
|
|
|
13270
13270
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13271
13271
|
const generateUrl = usePageUrlGenerator();
|
|
13272
13272
|
const data = useDataListRetriever({
|
|
13273
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
13273
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkUYBCHXXLjs.NotificationService.findMany(params), "retriever"),
|
|
13274
13274
|
retrieverParams: { isArchived: archived },
|
|
13275
|
-
module:
|
|
13275
|
+
module: _chunkUYBCHXXLjs.Modules.Notification
|
|
13276
13276
|
});
|
|
13277
13277
|
const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
|
|
13278
|
-
await
|
|
13278
|
+
await _chunkUYBCHXXLjs.NotificationService.archive({ id: notification.id });
|
|
13279
13279
|
data.removeElement(notification);
|
|
13280
13280
|
}, "archiveNotification");
|
|
13281
13281
|
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: [
|
|
@@ -13289,7 +13289,7 @@ function NotificationsList({ archived }) {
|
|
|
13289
13289
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _319 => _319.data, 'optionalAccess', _320 => _320.map, 'call', _321 => _321((notification) => {
|
|
13290
13290
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
13291
13291
|
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: [
|
|
13292
|
-
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:
|
|
13292
|
+
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: _chunkUYBCHXXLjs.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" }),
|
|
13293
13293
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
13294
13294
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`foundations.notification.${notification.notificationType}.description`, {
|
|
13295
13295
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
@@ -13594,7 +13594,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
13594
13594
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13595
13595
|
_react.useEffect.call(void 0, () => {
|
|
13596
13596
|
async function checkCompanyAdminDeletability() {
|
|
13597
|
-
const roleUsers = await
|
|
13597
|
+
const roleUsers = await _chunkUYBCHXXLjs.UserService.findAllUsersByRole({
|
|
13598
13598
|
roleId: role.id
|
|
13599
13599
|
});
|
|
13600
13600
|
if (roleUsers.length > 1) setCanRemove(true);
|
|
@@ -13608,7 +13608,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
13608
13608
|
}, [role]);
|
|
13609
13609
|
const remove = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
13610
13610
|
try {
|
|
13611
|
-
await
|
|
13611
|
+
await _chunkUYBCHXXLjs.RoleService.removeUserFromRole({
|
|
13612
13612
|
roleId: role.id,
|
|
13613
13613
|
userId: user.id
|
|
13614
13614
|
});
|
|
@@ -13672,7 +13672,7 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
13672
13672
|
const [roles, setRoles] = _react.useState.call(void 0, []);
|
|
13673
13673
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13674
13674
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (role) => {
|
|
13675
|
-
await
|
|
13675
|
+
await _chunkUYBCHXXLjs.RoleService.addUserToRole({
|
|
13676
13676
|
roleId: role.id,
|
|
13677
13677
|
userId: user.id
|
|
13678
13678
|
});
|
|
@@ -13696,7 +13696,7 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
13696
13696
|
const searchRoles = _react.useCallback.call(void 0,
|
|
13697
13697
|
async (term) => {
|
|
13698
13698
|
setRoles(
|
|
13699
|
-
await
|
|
13699
|
+
await _chunkUYBCHXXLjs.RoleService.findAllRolesUserNotIn({
|
|
13700
13700
|
search: term,
|
|
13701
13701
|
userId: user.id
|
|
13702
13702
|
})
|
|
@@ -13764,16 +13764,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserRoleAdd, "UserRoleAdd");
|
|
|
13764
13764
|
function RolesList() {
|
|
13765
13765
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13766
13766
|
const data = useDataListRetriever({
|
|
13767
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
13767
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkUYBCHXXLjs.RoleService.findAllRoles(params), "retriever"),
|
|
13768
13768
|
retrieverParams: {},
|
|
13769
|
-
module:
|
|
13769
|
+
module: _chunkUYBCHXXLjs.Modules.Role
|
|
13770
13770
|
});
|
|
13771
13771
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13772
13772
|
ContentListTable,
|
|
13773
13773
|
{
|
|
13774
13774
|
data,
|
|
13775
13775
|
fields: ["name" /* name */, "description" /* description */],
|
|
13776
|
-
tableGeneratorType:
|
|
13776
|
+
tableGeneratorType: _chunkUYBCHXXLjs.Modules.Role,
|
|
13777
13777
|
title: t(`types.roles`, { count: 2 })
|
|
13778
13778
|
}
|
|
13779
13779
|
);
|
|
@@ -13786,16 +13786,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RolesList, "RolesList");
|
|
|
13786
13786
|
function UserRolesList({ user }) {
|
|
13787
13787
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13788
13788
|
const data = useDataListRetriever({
|
|
13789
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
13789
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkUYBCHXXLjs.RoleService.findAllRolesByUser(params), "retriever"),
|
|
13790
13790
|
retrieverParams: { userId: user.id },
|
|
13791
|
-
module:
|
|
13791
|
+
module: _chunkUYBCHXXLjs.Modules.Role
|
|
13792
13792
|
});
|
|
13793
13793
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13794
13794
|
ContentListTable,
|
|
13795
13795
|
{
|
|
13796
13796
|
data,
|
|
13797
13797
|
fields: ["name" /* name */, "description" /* description */],
|
|
13798
|
-
tableGeneratorType:
|
|
13798
|
+
tableGeneratorType: _chunkUYBCHXXLjs.Modules.Role,
|
|
13799
13799
|
title: t(`types.roles`, { count: 2 })
|
|
13800
13800
|
}
|
|
13801
13801
|
);
|
|
@@ -13913,7 +13913,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthRedirectUriInput, "OAuthRedirectUriInp
|
|
|
13913
13913
|
function OAuthScopeSelector({
|
|
13914
13914
|
value,
|
|
13915
13915
|
onChange,
|
|
13916
|
-
availableScopes =
|
|
13916
|
+
availableScopes = _chunkUYBCHXXLjs.AVAILABLE_OAUTH_SCOPES,
|
|
13917
13917
|
disabled = false,
|
|
13918
13918
|
error,
|
|
13919
13919
|
label = "Allowed Scopes"
|
|
@@ -14240,7 +14240,7 @@ function OAuthClientForm({
|
|
|
14240
14240
|
description: formState.description.trim() || void 0,
|
|
14241
14241
|
redirectUris: formState.redirectUris.filter((uri) => uri.trim()),
|
|
14242
14242
|
allowedScopes: formState.allowedScopes,
|
|
14243
|
-
allowedGrantTypes:
|
|
14243
|
+
allowedGrantTypes: _chunkUYBCHXXLjs.DEFAULT_GRANT_TYPES,
|
|
14244
14244
|
isConfidential: formState.isConfidential
|
|
14245
14245
|
};
|
|
14246
14246
|
await onSubmit(data);
|
|
@@ -14441,7 +14441,7 @@ function OAuthClientDetail({
|
|
|
14441
14441
|
] }),
|
|
14442
14442
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
14443
14443
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
14444
|
-
/* @__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([
|
|
14444
|
+
/* @__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([_chunkUYBCHXXLjs.OAUTH_SCOPE_DISPLAY, 'access', _331 => _331[scope], 'optionalAccess', _332 => _332.name]) || scope }, scope)) })
|
|
14445
14445
|
] }),
|
|
14446
14446
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
14447
14447
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -15106,4 +15106,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthConsentScreen, "OAuthConsentScreen");
|
|
|
15106
15106
|
|
|
15107
15107
|
|
|
15108
15108
|
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 = useDebounce; 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.HeaderChildrenProvider = HeaderChildrenProvider; exports.useHeaderChildren = useHeaderChildren; 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.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.Input = Input; exports.Textarea = Textarea; exports.InputGroup = InputGroup; exports.InputGroupAddon = InputGroupAddon; exports.InputGroupButton = InputGroupButton; exports.InputGroupText = InputGroupText; exports.InputGroupInput = InputGroupInput; exports.InputGroupTextarea = InputGroupTextarea; 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.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.CompanyDetails = CompanyDetails; exports.TokenStatusIndicator = TokenStatusIndicator; exports.Header = Header; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.UserDetails = UserDetails; exports.UserAvatar = UserAvatar; exports.UserIndexDetails = UserIndexDetails; 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.CommonEditorTrigger = CommonEditorTrigger; 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.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.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.AuthContainer = AuthContainer; 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.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationSecurityForm = CompanyConfigurationSecurityForm; 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.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.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.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;
|
|
15109
|
-
//# sourceMappingURL=chunk-
|
|
15109
|
+
//# sourceMappingURL=chunk-XU4MY6OG.js.map
|