@carlonicora/nextjs-jsonapi 1.31.0 → 1.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BlockNoteEditor-CUIQPN6C.mjs → BlockNoteEditor-TFL6ZXIJ.mjs} +4 -4
- package/dist/{BlockNoteEditor-NBASFIQP.js → BlockNoteEditor-YEVSJSOI.js} +14 -14
- package/dist/{BlockNoteEditor-NBASFIQP.js.map → BlockNoteEditor-YEVSJSOI.js.map} +1 -1
- package/dist/billing/index.js +335 -335
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-ITBPDMUX.js → chunk-HIF7DYR3.js} +537 -482
- package/dist/chunk-HIF7DYR3.js.map +1 -0
- package/dist/{chunk-C62JXXUX.mjs → chunk-IXVNXOZT.mjs} +8 -1
- package/dist/{chunk-C62JXXUX.mjs.map → chunk-IXVNXOZT.mjs.map} +1 -1
- package/dist/{chunk-HBCIT6KE.js → chunk-KYG2PIRB.js} +5 -1
- package/dist/chunk-KYG2PIRB.js.map +1 -0
- package/dist/{chunk-OR5NPUWF.js → chunk-NPNKFWV2.js} +9 -2
- package/dist/chunk-NPNKFWV2.js.map +1 -0
- package/dist/{chunk-TM4RWVZE.mjs → chunk-SLANIL6B.mjs} +455 -400
- package/dist/chunk-SLANIL6B.mjs.map +1 -0
- package/dist/{chunk-RACFENTQ.mjs → chunk-YCP2OMFD.mjs} +5 -1
- package/dist/chunk-YCP2OMFD.mjs.map +1 -0
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.js +4 -4
- package/dist/components/index.mjs +3 -3
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/dist/{s3.service-D7NyMnNY.d.ts → s3.service-CoC0k0iu.d.ts} +3 -0
- package/dist/{s3.service-D2vIfl9y.d.mts → s3.service-Duh9HW2n.d.mts} +3 -0
- package/dist/server/index.d.mts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
- package/src/features/auth/components/buttons/GoogleSignInButton.tsx +41 -0
- package/src/features/auth/components/details/LandingComponent.tsx +3 -1
- package/src/features/auth/components/forms/Login.tsx +3 -1
- package/src/features/auth/data/auth.interface.ts +3 -0
- package/src/features/auth/data/auth.service.ts +1 -0
- package/src/features/auth/data/auth.ts +3 -0
- package/src/login/config.ts +7 -0
- package/src/login/index.ts +7 -1
- package/dist/chunk-HBCIT6KE.js.map +0 -1
- package/dist/chunk-ITBPDMUX.js.map +0 -1
- package/dist/chunk-OR5NPUWF.js.map +0 -1
- package/dist/chunk-RACFENTQ.mjs.map +0 -1
- package/dist/chunk-TM4RWVZE.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-CUIQPN6C.mjs.map → BlockNoteEditor-TFL6ZXIJ.mjs.map} +0 -0
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var _chunkOR5NPUWFjs = require('./chunk-OR5NPUWF.js');
|
|
16
15
|
|
|
16
|
+
var _chunkNPNKFWV2js = require('./chunk-NPNKFWV2.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -39,7 +39,8 @@ var _chunkOR5NPUWFjs = require('./chunk-OR5NPUWF.js');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
|
|
43
|
+
var _chunkKYG2PIRBjs = require('./chunk-KYG2PIRB.js');
|
|
43
44
|
|
|
44
45
|
|
|
45
46
|
var _chunk3EPNHTMHjs = require('./chunk-3EPNHTMH.js');
|
|
@@ -185,7 +186,7 @@ function useDataListRetriever(params) {
|
|
|
185
186
|
const isFetchingRef = _react.useRef.call(void 0, false);
|
|
186
187
|
const isPaginatingRef = _react.useRef.call(void 0, false);
|
|
187
188
|
const resolvedType = params.module;
|
|
188
|
-
const resolvedService =
|
|
189
|
+
const resolvedService = _chunkKYG2PIRBjs.ClientAbstractService;
|
|
189
190
|
const parsePageParams = _react.useCallback.call(void 0, (url) => {
|
|
190
191
|
if (!url) return null;
|
|
191
192
|
try {
|
|
@@ -940,20 +941,20 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
940
941
|
if (!token && dehydratedUser) setDehydratedUser(null);
|
|
941
942
|
}, [dehydratedUser, setDehydratedUser]);
|
|
942
943
|
const matchUrlToModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
943
|
-
const moduleKeys = Object.getOwnPropertyNames(
|
|
944
|
+
const moduleKeys = Object.getOwnPropertyNames(_chunkKYG2PIRBjs.Modules).filter(
|
|
944
945
|
(key) => key !== "prototype" && key !== "_factory" && key !== "length" && key !== "name"
|
|
945
946
|
);
|
|
946
947
|
const matchedModuleKey = moduleKeys.find((key) => {
|
|
947
|
-
const descriptor2 = Object.getOwnPropertyDescriptor(
|
|
948
|
+
const descriptor2 = Object.getOwnPropertyDescriptor(_chunkKYG2PIRBjs.Modules, key);
|
|
948
949
|
if (!_optionalChain([descriptor2, 'optionalAccess', _29 => _29.get])) return false;
|
|
949
|
-
const selectedModule = descriptor2.get.call(
|
|
950
|
+
const selectedModule = descriptor2.get.call(_chunkKYG2PIRBjs.Modules);
|
|
950
951
|
return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _30 => _30.pageUrl, 'optionalAccess', _31 => _31.toLowerCase, 'call', _32 => _32()]));
|
|
951
952
|
});
|
|
952
953
|
if (!matchedModuleKey) return void 0;
|
|
953
|
-
const descriptor = Object.getOwnPropertyDescriptor(
|
|
954
|
-
return _optionalChain([descriptor, 'optionalAccess', _33 => _33.get, 'optionalAccess', _34 => _34.call, 'call', _35 => _35(
|
|
954
|
+
const descriptor = Object.getOwnPropertyDescriptor(_chunkKYG2PIRBjs.Modules, matchedModuleKey);
|
|
955
|
+
return _optionalChain([descriptor, 'optionalAccess', _33 => _33.get, 'optionalAccess', _34 => _34.call, 'call', _35 => _35(_chunkKYG2PIRBjs.Modules)]);
|
|
955
956
|
}, "matchUrlToModule");
|
|
956
|
-
const currentUser = dehydratedUser ?
|
|
957
|
+
const currentUser = dehydratedUser ? _chunkKYG2PIRBjs.rehydrate.call(void 0, _chunkKYG2PIRBjs.Modules.User, dehydratedUser) : null;
|
|
957
958
|
const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _36 => _36.company]), () => ( null));
|
|
958
959
|
const setUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (user) => {
|
|
959
960
|
if (user) setDehydratedUser(user.dehydrate());
|
|
@@ -964,21 +965,21 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
964
965
|
return !!_optionalChain([currentUser, 'access', _37 => _37.roles, 'optionalAccess', _38 => _38.some, 'call', _39 => _39((userRole) => userRole.id === roleId)]);
|
|
965
966
|
}, "hasRole");
|
|
966
967
|
const hasAccesToFeature = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (featureIdentifier) => {
|
|
967
|
-
if (hasRole(
|
|
968
|
+
if (hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator)) return true;
|
|
968
969
|
if (!company) return false;
|
|
969
970
|
return company.features.some((feature) => feature.id === featureIdentifier);
|
|
970
971
|
}, "hasAccesToFeature");
|
|
971
972
|
function hasPermissionToModule(params) {
|
|
972
973
|
if (!currentUser) return false;
|
|
973
974
|
if (!!params.module.feature && !hasAccesToFeature(params.module.feature)) return false;
|
|
974
|
-
return
|
|
975
|
+
return _chunkKYG2PIRBjs.checkPermissions.call(void 0, { module: params.module, action: params.action, data: params.data, user: currentUser });
|
|
975
976
|
}
|
|
976
977
|
_chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModule, "hasPermissionToModule");
|
|
977
978
|
function hasPermissionToModules(params) {
|
|
978
979
|
if (!currentUser) return false;
|
|
979
980
|
if (!params.modules.every((module) => !module.feature || hasAccesToFeature(module.feature))) return false;
|
|
980
981
|
return params.modules.every(
|
|
981
|
-
(module) =>
|
|
982
|
+
(module) => _chunkKYG2PIRBjs.checkPermissions.call(void 0, { module, action: params.action, data: params.data, user: currentUser })
|
|
982
983
|
);
|
|
983
984
|
}
|
|
984
985
|
_chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModules, "hasPermissionToModules");
|
|
@@ -996,7 +997,7 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
996
997
|
if (isRefreshing) return;
|
|
997
998
|
setIsRefreshing(true);
|
|
998
999
|
try {
|
|
999
|
-
const fullUser = await
|
|
1000
|
+
const fullUser = await _chunkKYG2PIRBjs.UserService.findFullUser();
|
|
1000
1001
|
if (fullUser) {
|
|
1001
1002
|
setDehydratedUser(fullUser.dehydrate());
|
|
1002
1003
|
}
|
|
@@ -1070,7 +1071,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
1070
1071
|
const [existingUsers, setExistingUsers] = _react.useState.call(void 0, null);
|
|
1071
1072
|
_react.useEffect.call(void 0, () => {
|
|
1072
1073
|
const fetchExistingUsers = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
1073
|
-
setExistingUsers(await
|
|
1074
|
+
setExistingUsers(await _chunkKYG2PIRBjs.UserService.findMany({ roleId: role.id, fetchAll: true }));
|
|
1074
1075
|
}, "fetchExistingUsers");
|
|
1075
1076
|
if (show) {
|
|
1076
1077
|
setExistingUsers(null);
|
|
@@ -1078,7 +1079,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
1078
1079
|
}
|
|
1079
1080
|
}, [show]);
|
|
1080
1081
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (user) => {
|
|
1081
|
-
await
|
|
1082
|
+
await _chunkKYG2PIRBjs.RoleService.addUserToRole({
|
|
1082
1083
|
roleId: role.id,
|
|
1083
1084
|
userId: user.id
|
|
1084
1085
|
});
|
|
@@ -1094,9 +1095,9 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
1094
1095
|
}, "addUserToRole");
|
|
1095
1096
|
const data = useDataListRetriever({
|
|
1096
1097
|
ready: !!company && show,
|
|
1097
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
1098
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkKYG2PIRBjs.UserService.findAllUsers(params), "retriever"),
|
|
1098
1099
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _46 => _46.id]) },
|
|
1099
|
-
module:
|
|
1100
|
+
module: _chunkKYG2PIRBjs.Modules.User
|
|
1100
1101
|
});
|
|
1101
1102
|
_react.useEffect.call(void 0, () => {
|
|
1102
1103
|
if (!!company && show) {
|
|
@@ -1147,7 +1148,7 @@ function Accordion({ className, ...props }) {
|
|
|
1147
1148
|
_accordion.Accordion.Root,
|
|
1148
1149
|
{
|
|
1149
1150
|
"data-slot": "accordion",
|
|
1150
|
-
className:
|
|
1151
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "overflow-hidden rounded-md border flex w-full flex-col", className),
|
|
1151
1152
|
...props
|
|
1152
1153
|
}
|
|
1153
1154
|
);
|
|
@@ -1158,7 +1159,7 @@ function AccordionItem({ className, ...props }) {
|
|
|
1158
1159
|
_accordion.Accordion.Item,
|
|
1159
1160
|
{
|
|
1160
1161
|
"data-slot": "accordion-item",
|
|
1161
|
-
className:
|
|
1162
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "data-open:bg-muted/50 not-last:border-b", className),
|
|
1162
1163
|
...props
|
|
1163
1164
|
}
|
|
1164
1165
|
);
|
|
@@ -1173,7 +1174,7 @@ function AccordionTrigger({
|
|
|
1173
1174
|
_accordion.Accordion.Trigger,
|
|
1174
1175
|
{
|
|
1175
1176
|
"data-slot": "accordion-trigger",
|
|
1176
|
-
className:
|
|
1177
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1177
1178
|
"**: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",
|
|
1178
1179
|
className
|
|
1179
1180
|
),
|
|
@@ -1201,7 +1202,7 @@ function AccordionContent({
|
|
|
1201
1202
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1202
1203
|
"div",
|
|
1203
1204
|
{
|
|
1204
|
-
className:
|
|
1205
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1205
1206
|
"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",
|
|
1206
1207
|
className
|
|
1207
1208
|
),
|
|
@@ -1237,7 +1238,7 @@ function Alert({
|
|
|
1237
1238
|
{
|
|
1238
1239
|
"data-slot": "alert",
|
|
1239
1240
|
role: "alert",
|
|
1240
|
-
className:
|
|
1241
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, alertVariants({ variant }), className),
|
|
1241
1242
|
...props
|
|
1242
1243
|
}
|
|
1243
1244
|
);
|
|
@@ -1248,7 +1249,7 @@ function AlertTitle({ className, ...props }) {
|
|
|
1248
1249
|
"div",
|
|
1249
1250
|
{
|
|
1250
1251
|
"data-slot": "alert-title",
|
|
1251
|
-
className:
|
|
1252
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1252
1253
|
"font-medium group-has-[>svg]/alert:col-start-2 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3",
|
|
1253
1254
|
className
|
|
1254
1255
|
),
|
|
@@ -1265,7 +1266,7 @@ function AlertDescription({
|
|
|
1265
1266
|
"div",
|
|
1266
1267
|
{
|
|
1267
1268
|
"data-slot": "alert-description",
|
|
1268
|
-
className:
|
|
1269
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1269
1270
|
"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",
|
|
1270
1271
|
className
|
|
1271
1272
|
),
|
|
@@ -1279,7 +1280,7 @@ function AlertAction({ className, ...props }) {
|
|
|
1279
1280
|
"div",
|
|
1280
1281
|
{
|
|
1281
1282
|
"data-slot": "alert-action",
|
|
1282
|
-
className:
|
|
1283
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "absolute top-1.5 right-2", className),
|
|
1283
1284
|
...props
|
|
1284
1285
|
}
|
|
1285
1286
|
);
|
|
@@ -1332,7 +1333,7 @@ function Button({
|
|
|
1332
1333
|
_button.Button,
|
|
1333
1334
|
{
|
|
1334
1335
|
"data-slot": "button",
|
|
1335
|
-
className:
|
|
1336
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, buttonVariants({ variant, size, className })),
|
|
1336
1337
|
...props
|
|
1337
1338
|
}
|
|
1338
1339
|
);
|
|
@@ -1361,7 +1362,7 @@ function AlertDialogOverlay({
|
|
|
1361
1362
|
_alertdialog.AlertDialog.Backdrop,
|
|
1362
1363
|
{
|
|
1363
1364
|
"data-slot": "alert-dialog-overlay",
|
|
1364
|
-
className:
|
|
1365
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1365
1366
|
"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",
|
|
1366
1367
|
className
|
|
1367
1368
|
),
|
|
@@ -1382,7 +1383,7 @@ function AlertDialogContent({
|
|
|
1382
1383
|
{
|
|
1383
1384
|
"data-slot": "alert-dialog-content",
|
|
1384
1385
|
"data-size": size,
|
|
1385
|
-
className:
|
|
1386
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1386
1387
|
"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",
|
|
1387
1388
|
className
|
|
1388
1389
|
),
|
|
@@ -1400,7 +1401,7 @@ function AlertDialogHeader({
|
|
|
1400
1401
|
"div",
|
|
1401
1402
|
{
|
|
1402
1403
|
"data-slot": "alert-dialog-header",
|
|
1403
|
-
className:
|
|
1404
|
+
className: _chunkKYG2PIRBjs.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),
|
|
1404
1405
|
...props
|
|
1405
1406
|
}
|
|
1406
1407
|
);
|
|
@@ -1414,7 +1415,7 @@ function AlertDialogFooter({
|
|
|
1414
1415
|
"div",
|
|
1415
1416
|
{
|
|
1416
1417
|
"data-slot": "alert-dialog-footer",
|
|
1417
|
-
className:
|
|
1418
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1418
1419
|
"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",
|
|
1419
1420
|
className
|
|
1420
1421
|
),
|
|
@@ -1431,7 +1432,7 @@ function AlertDialogMedia({
|
|
|
1431
1432
|
"div",
|
|
1432
1433
|
{
|
|
1433
1434
|
"data-slot": "alert-dialog-media",
|
|
1434
|
-
className:
|
|
1435
|
+
className: _chunkKYG2PIRBjs.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),
|
|
1435
1436
|
...props
|
|
1436
1437
|
}
|
|
1437
1438
|
);
|
|
@@ -1445,7 +1446,7 @@ function AlertDialogTitle({
|
|
|
1445
1446
|
_alertdialog.AlertDialog.Title,
|
|
1446
1447
|
{
|
|
1447
1448
|
"data-slot": "alert-dialog-title",
|
|
1448
|
-
className:
|
|
1449
|
+
className: _chunkKYG2PIRBjs.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),
|
|
1449
1450
|
...props
|
|
1450
1451
|
}
|
|
1451
1452
|
);
|
|
@@ -1459,7 +1460,7 @@ function AlertDialogDescription({
|
|
|
1459
1460
|
_alertdialog.AlertDialog.Description,
|
|
1460
1461
|
{
|
|
1461
1462
|
"data-slot": "alert-dialog-description",
|
|
1462
|
-
className:
|
|
1463
|
+
className: _chunkKYG2PIRBjs.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),
|
|
1463
1464
|
...props
|
|
1464
1465
|
}
|
|
1465
1466
|
);
|
|
@@ -1473,7 +1474,7 @@ function AlertDialogAction({
|
|
|
1473
1474
|
Button,
|
|
1474
1475
|
{
|
|
1475
1476
|
"data-slot": "alert-dialog-action",
|
|
1476
|
-
className:
|
|
1477
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, className),
|
|
1477
1478
|
...props
|
|
1478
1479
|
}
|
|
1479
1480
|
);
|
|
@@ -1489,7 +1490,7 @@ function AlertDialogCancel({
|
|
|
1489
1490
|
_alertdialog.AlertDialog.Close,
|
|
1490
1491
|
{
|
|
1491
1492
|
"data-slot": "alert-dialog-cancel",
|
|
1492
|
-
className:
|
|
1493
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, className),
|
|
1493
1494
|
render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant, size }),
|
|
1494
1495
|
...props
|
|
1495
1496
|
}
|
|
@@ -1510,7 +1511,7 @@ function Avatar({
|
|
|
1510
1511
|
{
|
|
1511
1512
|
"data-slot": "avatar",
|
|
1512
1513
|
"data-size": size,
|
|
1513
|
-
className:
|
|
1514
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1514
1515
|
"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",
|
|
1515
1516
|
className
|
|
1516
1517
|
),
|
|
@@ -1524,7 +1525,7 @@ function AvatarImage({ className, ...props }) {
|
|
|
1524
1525
|
_avatar.Avatar.Image,
|
|
1525
1526
|
{
|
|
1526
1527
|
"data-slot": "avatar-image",
|
|
1527
|
-
className:
|
|
1528
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1528
1529
|
"rounded-full aspect-square size-full object-cover",
|
|
1529
1530
|
className
|
|
1530
1531
|
),
|
|
@@ -1541,7 +1542,7 @@ function AvatarFallback({
|
|
|
1541
1542
|
_avatar.Avatar.Fallback,
|
|
1542
1543
|
{
|
|
1543
1544
|
"data-slot": "avatar-fallback",
|
|
1544
|
-
className:
|
|
1545
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1545
1546
|
"bg-muted text-muted-foreground rounded-full flex size-full items-center justify-center text-sm group-data-[size=sm]/avatar:text-xs",
|
|
1546
1547
|
className
|
|
1547
1548
|
),
|
|
@@ -1555,7 +1556,7 @@ function AvatarBadge({ className, ...props }) {
|
|
|
1555
1556
|
"span",
|
|
1556
1557
|
{
|
|
1557
1558
|
"data-slot": "avatar-badge",
|
|
1558
|
-
className:
|
|
1559
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1559
1560
|
"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",
|
|
1560
1561
|
"group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden",
|
|
1561
1562
|
"group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2",
|
|
@@ -1572,7 +1573,7 @@ function AvatarGroup({ className, ...props }) {
|
|
|
1572
1573
|
"div",
|
|
1573
1574
|
{
|
|
1574
1575
|
"data-slot": "avatar-group",
|
|
1575
|
-
className:
|
|
1576
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1576
1577
|
"*:data-[slot=avatar]:ring-background group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2",
|
|
1577
1578
|
className
|
|
1578
1579
|
),
|
|
@@ -1589,7 +1590,7 @@ function AvatarGroupCount({
|
|
|
1589
1590
|
"div",
|
|
1590
1591
|
{
|
|
1591
1592
|
"data-slot": "avatar-group-count",
|
|
1592
|
-
className:
|
|
1593
|
+
className: _chunkKYG2PIRBjs.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),
|
|
1593
1594
|
...props
|
|
1594
1595
|
}
|
|
1595
1596
|
);
|
|
@@ -1628,7 +1629,7 @@ function Badge({
|
|
|
1628
1629
|
defaultTagName: "span",
|
|
1629
1630
|
props: _mergeprops.mergeProps.call(void 0,
|
|
1630
1631
|
{
|
|
1631
|
-
className:
|
|
1632
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, badgeVariants({ className, variant }))
|
|
1632
1633
|
},
|
|
1633
1634
|
props
|
|
1634
1635
|
),
|
|
@@ -1652,7 +1653,7 @@ function Breadcrumb({ className, ...props }) {
|
|
|
1652
1653
|
{
|
|
1653
1654
|
"aria-label": "breadcrumb",
|
|
1654
1655
|
"data-slot": "breadcrumb",
|
|
1655
|
-
className:
|
|
1656
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, className),
|
|
1656
1657
|
...props
|
|
1657
1658
|
}
|
|
1658
1659
|
);
|
|
@@ -1663,7 +1664,7 @@ function BreadcrumbList({ className, ...props }) {
|
|
|
1663
1664
|
"ol",
|
|
1664
1665
|
{
|
|
1665
1666
|
"data-slot": "breadcrumb-list",
|
|
1666
|
-
className:
|
|
1667
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1667
1668
|
"text-muted-foreground gap-1.5 text-xs/relaxed flex flex-wrap items-center break-words",
|
|
1668
1669
|
className
|
|
1669
1670
|
),
|
|
@@ -1677,7 +1678,7 @@ function BreadcrumbItem({ className, ...props }) {
|
|
|
1677
1678
|
"li",
|
|
1678
1679
|
{
|
|
1679
1680
|
"data-slot": "breadcrumb-item",
|
|
1680
|
-
className:
|
|
1681
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "gap-1 inline-flex items-center", className),
|
|
1681
1682
|
...props
|
|
1682
1683
|
}
|
|
1683
1684
|
);
|
|
@@ -1692,7 +1693,7 @@ function BreadcrumbLink({
|
|
|
1692
1693
|
defaultTagName: "a",
|
|
1693
1694
|
props: _mergeprops.mergeProps.call(void 0,
|
|
1694
1695
|
{
|
|
1695
|
-
className:
|
|
1696
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "hover:text-foreground transition-colors", className)
|
|
1696
1697
|
},
|
|
1697
1698
|
props
|
|
1698
1699
|
),
|
|
@@ -1711,7 +1712,7 @@ function BreadcrumbPage({ className, ...props }) {
|
|
|
1711
1712
|
role: "link",
|
|
1712
1713
|
"aria-disabled": "true",
|
|
1713
1714
|
"aria-current": "page",
|
|
1714
|
-
className:
|
|
1715
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-foreground font-normal", className),
|
|
1715
1716
|
...props
|
|
1716
1717
|
}
|
|
1717
1718
|
);
|
|
@@ -1728,7 +1729,7 @@ function BreadcrumbSeparator({
|
|
|
1728
1729
|
"data-slot": "breadcrumb-separator",
|
|
1729
1730
|
role: "presentation",
|
|
1730
1731
|
"aria-hidden": "true",
|
|
1731
|
-
className:
|
|
1732
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "[&>svg]:size-3.5", className),
|
|
1732
1733
|
...props,
|
|
1733
1734
|
children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1734
1735
|
_lucidereact.ChevronRightIcon,
|
|
@@ -1748,7 +1749,7 @@ function BreadcrumbEllipsis({
|
|
|
1748
1749
|
"data-slot": "breadcrumb-ellipsis",
|
|
1749
1750
|
role: "presentation",
|
|
1750
1751
|
"aria-hidden": "true",
|
|
1751
|
-
className:
|
|
1752
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1752
1753
|
"size-4 [&>svg]:size-3.5 flex items-center justify-center",
|
|
1753
1754
|
className
|
|
1754
1755
|
),
|
|
@@ -1788,7 +1789,7 @@ function Calendar({
|
|
|
1788
1789
|
_reactdaypicker.DayPicker,
|
|
1789
1790
|
{
|
|
1790
1791
|
showOutsideDays,
|
|
1791
|
-
className:
|
|
1792
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1792
1793
|
"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",
|
|
1793
1794
|
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
1794
1795
|
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
@@ -1800,89 +1801,89 @@ function Calendar({
|
|
|
1800
1801
|
...formatters
|
|
1801
1802
|
},
|
|
1802
1803
|
classNames: {
|
|
1803
|
-
root:
|
|
1804
|
-
months:
|
|
1804
|
+
root: _chunkKYG2PIRBjs.cn.call(void 0, "w-fit", defaultClassNames.root),
|
|
1805
|
+
months: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1805
1806
|
"flex gap-4 flex-col md:flex-row relative",
|
|
1806
1807
|
defaultClassNames.months
|
|
1807
1808
|
),
|
|
1808
|
-
month:
|
|
1809
|
-
nav:
|
|
1809
|
+
month: _chunkKYG2PIRBjs.cn.call(void 0, "flex flex-col w-full gap-4", defaultClassNames.month),
|
|
1810
|
+
nav: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1810
1811
|
"flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
|
|
1811
1812
|
defaultClassNames.nav
|
|
1812
1813
|
),
|
|
1813
|
-
button_previous:
|
|
1814
|
+
button_previous: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1814
1815
|
buttonVariants({ variant: buttonVariant }),
|
|
1815
1816
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
1816
1817
|
defaultClassNames.button_previous
|
|
1817
1818
|
),
|
|
1818
|
-
button_next:
|
|
1819
|
+
button_next: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1819
1820
|
buttonVariants({ variant: buttonVariant }),
|
|
1820
1821
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
1821
1822
|
defaultClassNames.button_next
|
|
1822
1823
|
),
|
|
1823
|
-
month_caption:
|
|
1824
|
+
month_caption: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1824
1825
|
"flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
|
|
1825
1826
|
defaultClassNames.month_caption
|
|
1826
1827
|
),
|
|
1827
|
-
dropdowns:
|
|
1828
|
+
dropdowns: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1828
1829
|
"w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
|
|
1829
1830
|
defaultClassNames.dropdowns
|
|
1830
1831
|
),
|
|
1831
|
-
dropdown_root:
|
|
1832
|
+
dropdown_root: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1832
1833
|
"relative cn-calendar-dropdown-root rounded-(--cell-radius)",
|
|
1833
1834
|
defaultClassNames.dropdown_root
|
|
1834
1835
|
),
|
|
1835
|
-
dropdown:
|
|
1836
|
+
dropdown: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1836
1837
|
"absolute bg-popover inset-0 opacity-0",
|
|
1837
1838
|
defaultClassNames.dropdown
|
|
1838
1839
|
),
|
|
1839
|
-
caption_label:
|
|
1840
|
+
caption_label: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1840
1841
|
"select-none font-medium",
|
|
1841
1842
|
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",
|
|
1842
1843
|
defaultClassNames.caption_label
|
|
1843
1844
|
),
|
|
1844
1845
|
table: "w-full border-collapse",
|
|
1845
|
-
weekdays:
|
|
1846
|
-
weekday:
|
|
1846
|
+
weekdays: _chunkKYG2PIRBjs.cn.call(void 0, "flex", defaultClassNames.weekdays),
|
|
1847
|
+
weekday: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1847
1848
|
"text-muted-foreground rounded-(--cell-radius) flex-1 font-normal text-[0.8rem] select-none",
|
|
1848
1849
|
defaultClassNames.weekday
|
|
1849
1850
|
),
|
|
1850
|
-
week:
|
|
1851
|
-
week_number_header:
|
|
1851
|
+
week: _chunkKYG2PIRBjs.cn.call(void 0, "flex w-full mt-2", defaultClassNames.week),
|
|
1852
|
+
week_number_header: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1852
1853
|
"select-none w-(--cell-size)",
|
|
1853
1854
|
defaultClassNames.week_number_header
|
|
1854
1855
|
),
|
|
1855
|
-
week_number:
|
|
1856
|
+
week_number: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1856
1857
|
"text-[0.8rem] select-none text-muted-foreground",
|
|
1857
1858
|
defaultClassNames.week_number
|
|
1858
1859
|
),
|
|
1859
|
-
day:
|
|
1860
|
+
day: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1860
1861
|
"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",
|
|
1861
1862
|
props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)" : "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)",
|
|
1862
1863
|
defaultClassNames.day
|
|
1863
1864
|
),
|
|
1864
|
-
range_start:
|
|
1865
|
+
range_start: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1865
1866
|
"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",
|
|
1866
1867
|
defaultClassNames.range_start
|
|
1867
1868
|
),
|
|
1868
|
-
range_middle:
|
|
1869
|
-
range_end:
|
|
1869
|
+
range_middle: _chunkKYG2PIRBjs.cn.call(void 0, "rounded-none", defaultClassNames.range_middle),
|
|
1870
|
+
range_end: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1870
1871
|
"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",
|
|
1871
1872
|
defaultClassNames.range_end
|
|
1872
1873
|
),
|
|
1873
|
-
today:
|
|
1874
|
+
today: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1874
1875
|
"bg-muted text-foreground rounded-(--cell-radius) data-[selected=true]:rounded-none",
|
|
1875
1876
|
defaultClassNames.today
|
|
1876
1877
|
),
|
|
1877
|
-
outside:
|
|
1878
|
+
outside: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1878
1879
|
"text-muted-foreground aria-selected:text-muted-foreground",
|
|
1879
1880
|
defaultClassNames.outside
|
|
1880
1881
|
),
|
|
1881
|
-
disabled:
|
|
1882
|
+
disabled: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1882
1883
|
"text-muted-foreground opacity-50",
|
|
1883
1884
|
defaultClassNames.disabled
|
|
1884
1885
|
),
|
|
1885
|
-
hidden:
|
|
1886
|
+
hidden: _chunkKYG2PIRBjs.cn.call(void 0, "invisible", defaultClassNames.hidden),
|
|
1886
1887
|
...classNames
|
|
1887
1888
|
},
|
|
1888
1889
|
components: {
|
|
@@ -1892,19 +1893,19 @@ function Calendar({
|
|
|
1892
1893
|
{
|
|
1893
1894
|
"data-slot": "calendar",
|
|
1894
1895
|
ref: rootRef,
|
|
1895
|
-
className:
|
|
1896
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, className2),
|
|
1896
1897
|
...props2
|
|
1897
1898
|
}
|
|
1898
1899
|
);
|
|
1899
1900
|
}, "Root"),
|
|
1900
1901
|
Chevron: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className: className2, orientation, ...props2 }) => {
|
|
1901
1902
|
if (orientation === "left") {
|
|
1902
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeftIcon, { className:
|
|
1903
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeftIcon, { className: _chunkKYG2PIRBjs.cn.call(void 0, "size-4", className2), ...props2 });
|
|
1903
1904
|
}
|
|
1904
1905
|
if (orientation === "right") {
|
|
1905
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className:
|
|
1906
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className: _chunkKYG2PIRBjs.cn.call(void 0, "size-4", className2), ...props2 });
|
|
1906
1907
|
}
|
|
1907
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className:
|
|
1908
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: _chunkKYG2PIRBjs.cn.call(void 0, "size-4", className2), ...props2 });
|
|
1908
1909
|
}, "Chevron"),
|
|
1909
1910
|
DayButton: CalendarDayButton,
|
|
1910
1911
|
WeekNumber: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ children, ...props2 }) => {
|
|
@@ -1938,7 +1939,7 @@ function CalendarDayButton({
|
|
|
1938
1939
|
"data-range-start": modifiers.range_start,
|
|
1939
1940
|
"data-range-end": modifiers.range_end,
|
|
1940
1941
|
"data-range-middle": modifiers.range_middle,
|
|
1941
|
-
className:
|
|
1942
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1942
1943
|
"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",
|
|
1943
1944
|
defaultClassNames.day,
|
|
1944
1945
|
className
|
|
@@ -1961,7 +1962,7 @@ function Card({
|
|
|
1961
1962
|
{
|
|
1962
1963
|
"data-slot": "card",
|
|
1963
1964
|
"data-size": size,
|
|
1964
|
-
className:
|
|
1965
|
+
className: _chunkKYG2PIRBjs.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),
|
|
1965
1966
|
...props
|
|
1966
1967
|
}
|
|
1967
1968
|
);
|
|
@@ -1972,7 +1973,7 @@ function CardHeader({ className, ...props }) {
|
|
|
1972
1973
|
"div",
|
|
1973
1974
|
{
|
|
1974
1975
|
"data-slot": "card-header",
|
|
1975
|
-
className:
|
|
1976
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
1976
1977
|
"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]",
|
|
1977
1978
|
className
|
|
1978
1979
|
),
|
|
@@ -1986,7 +1987,7 @@ function CardTitle({ className, ...props }) {
|
|
|
1986
1987
|
"div",
|
|
1987
1988
|
{
|
|
1988
1989
|
"data-slot": "card-title",
|
|
1989
|
-
className:
|
|
1990
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-sm font-medium", className),
|
|
1990
1991
|
...props
|
|
1991
1992
|
}
|
|
1992
1993
|
);
|
|
@@ -1997,7 +1998,7 @@ function CardDescription({ className, ...props }) {
|
|
|
1997
1998
|
"div",
|
|
1998
1999
|
{
|
|
1999
2000
|
"data-slot": "card-description",
|
|
2000
|
-
className:
|
|
2001
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
|
|
2001
2002
|
...props
|
|
2002
2003
|
}
|
|
2003
2004
|
);
|
|
@@ -2008,7 +2009,7 @@ function CardAction({ className, ...props }) {
|
|
|
2008
2009
|
"div",
|
|
2009
2010
|
{
|
|
2010
2011
|
"data-slot": "card-action",
|
|
2011
|
-
className:
|
|
2012
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
2012
2013
|
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
|
|
2013
2014
|
className
|
|
2014
2015
|
),
|
|
@@ -2022,7 +2023,7 @@ function CardContent({ className, ...props }) {
|
|
|
2022
2023
|
"div",
|
|
2023
2024
|
{
|
|
2024
2025
|
"data-slot": "card-content",
|
|
2025
|
-
className:
|
|
2026
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "px-4 group-data-[size=sm]/card:px-3", className),
|
|
2026
2027
|
...props
|
|
2027
2028
|
}
|
|
2028
2029
|
);
|
|
@@ -2033,7 +2034,7 @@ function CardFooter({ className, ...props }) {
|
|
|
2033
2034
|
"div",
|
|
2034
2035
|
{
|
|
2035
2036
|
"data-slot": "card-footer",
|
|
2036
|
-
className:
|
|
2037
|
+
className: _chunkKYG2PIRBjs.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),
|
|
2037
2038
|
...props
|
|
2038
2039
|
}
|
|
2039
2040
|
);
|
|
@@ -2125,7 +2126,7 @@ function Carousel({
|
|
|
2125
2126
|
"div",
|
|
2126
2127
|
{
|
|
2127
2128
|
onKeyDownCapture: handleKeyDown,
|
|
2128
|
-
className:
|
|
2129
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "relative", className),
|
|
2129
2130
|
role: "region",
|
|
2130
2131
|
"aria-roledescription": "carousel",
|
|
2131
2132
|
"data-slot": "carousel",
|
|
@@ -2148,7 +2149,7 @@ function CarouselContent({ className, ...props }) {
|
|
|
2148
2149
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2149
2150
|
"div",
|
|
2150
2151
|
{
|
|
2151
|
-
className:
|
|
2152
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
2152
2153
|
"flex",
|
|
2153
2154
|
orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
|
|
2154
2155
|
className
|
|
@@ -2168,7 +2169,7 @@ function CarouselItem({ className, ...props }) {
|
|
|
2168
2169
|
role: "group",
|
|
2169
2170
|
"aria-roledescription": "slide",
|
|
2170
2171
|
"data-slot": "carousel-item",
|
|
2171
|
-
className:
|
|
2172
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
2172
2173
|
"min-w-0 shrink-0 grow-0 basis-full",
|
|
2173
2174
|
orientation === "horizontal" ? "pl-4" : "pt-4",
|
|
2174
2175
|
className
|
|
@@ -2191,7 +2192,7 @@ function CarouselPrevious({
|
|
|
2191
2192
|
"data-slot": "carousel-previous",
|
|
2192
2193
|
variant,
|
|
2193
2194
|
size,
|
|
2194
|
-
className:
|
|
2195
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
2195
2196
|
"rounded-full absolute touch-manipulation",
|
|
2196
2197
|
orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
2197
2198
|
className
|
|
@@ -2223,7 +2224,7 @@ function CarouselNext({
|
|
|
2223
2224
|
"data-slot": "carousel-next",
|
|
2224
2225
|
variant,
|
|
2225
2226
|
size,
|
|
2226
|
-
className:
|
|
2227
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
2227
2228
|
"rounded-full absolute touch-manipulation",
|
|
2228
2229
|
orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
2229
2230
|
className
|
|
@@ -2271,7 +2272,7 @@ function ChartContainer({
|
|
|
2271
2272
|
{
|
|
2272
2273
|
"data-slot": "chart",
|
|
2273
2274
|
"data-chart": chartId,
|
|
2274
|
-
className:
|
|
2275
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
2275
2276
|
"[&_.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",
|
|
2276
2277
|
className
|
|
2277
2278
|
),
|
|
@@ -2335,12 +2336,12 @@ function ChartTooltipContent({
|
|
|
2335
2336
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
2336
2337
|
const value = !labelKey && typeof label === "string" ? _optionalChain([config, 'access', _62 => _62[label], 'optionalAccess', _63 => _63.label]) || label : _optionalChain([itemConfig, 'optionalAccess', _64 => _64.label]);
|
|
2337
2338
|
if (labelFormatter) {
|
|
2338
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2339
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkKYG2PIRBjs.cn.call(void 0, "font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
2339
2340
|
}
|
|
2340
2341
|
if (!value) {
|
|
2341
2342
|
return null;
|
|
2342
2343
|
}
|
|
2343
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2344
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkKYG2PIRBjs.cn.call(void 0, "font-medium", labelClassName), children: value });
|
|
2344
2345
|
}, [
|
|
2345
2346
|
label,
|
|
2346
2347
|
labelFormatter,
|
|
@@ -2357,7 +2358,7 @@ function ChartTooltipContent({
|
|
|
2357
2358
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2358
2359
|
"div",
|
|
2359
2360
|
{
|
|
2360
|
-
className:
|
|
2361
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
2361
2362
|
"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",
|
|
2362
2363
|
className
|
|
2363
2364
|
),
|
|
@@ -2370,7 +2371,7 @@ function ChartTooltipContent({
|
|
|
2370
2371
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2371
2372
|
"div",
|
|
2372
2373
|
{
|
|
2373
|
-
className:
|
|
2374
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
2374
2375
|
"[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
|
|
2375
2376
|
indicator === "dot" && "items-center"
|
|
2376
2377
|
),
|
|
@@ -2378,7 +2379,7 @@ function ChartTooltipContent({
|
|
|
2378
2379
|
_optionalChain([itemConfig, 'optionalAccess', _69 => _69.icon]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2379
2380
|
"div",
|
|
2380
2381
|
{
|
|
2381
|
-
className:
|
|
2382
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
2382
2383
|
"shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",
|
|
2383
2384
|
{
|
|
2384
2385
|
"h-2.5 w-2.5": indicator === "dot",
|
|
@@ -2396,7 +2397,7 @@ function ChartTooltipContent({
|
|
|
2396
2397
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2397
2398
|
"div",
|
|
2398
2399
|
{
|
|
2399
|
-
className:
|
|
2400
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
2400
2401
|
"flex flex-1 justify-between leading-none",
|
|
2401
2402
|
nestLabel ? "items-end" : "items-center"
|
|
2402
2403
|
),
|
|
@@ -2434,7 +2435,7 @@ function ChartLegendContent({
|
|
|
2434
2435
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2435
2436
|
"div",
|
|
2436
2437
|
{
|
|
2437
|
-
className:
|
|
2438
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
2438
2439
|
"flex items-center justify-center gap-4",
|
|
2439
2440
|
verticalAlign === "top" ? "pb-3" : "pt-3",
|
|
2440
2441
|
className
|
|
@@ -2445,7 +2446,7 @@ function ChartLegendContent({
|
|
|
2445
2446
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2446
2447
|
"div",
|
|
2447
2448
|
{
|
|
2448
|
-
className:
|
|
2449
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
2449
2450
|
"[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"
|
|
2450
2451
|
),
|
|
2451
2452
|
children: [
|
|
@@ -2492,7 +2493,7 @@ function Checkbox({ className, ...props }) {
|
|
|
2492
2493
|
_checkbox.Checkbox.Root,
|
|
2493
2494
|
{
|
|
2494
2495
|
"data-slot": "checkbox",
|
|
2495
|
-
className:
|
|
2496
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
2496
2497
|
"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",
|
|
2497
2498
|
className
|
|
2498
2499
|
),
|
|
@@ -2560,7 +2561,7 @@ function DialogOverlay({
|
|
|
2560
2561
|
_dialog.Dialog.Backdrop,
|
|
2561
2562
|
{
|
|
2562
2563
|
"data-slot": "dialog-overlay",
|
|
2563
|
-
className:
|
|
2564
|
+
className: _chunkKYG2PIRBjs.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),
|
|
2564
2565
|
...props
|
|
2565
2566
|
}
|
|
2566
2567
|
);
|
|
@@ -2578,7 +2579,7 @@ function DialogContent({
|
|
|
2578
2579
|
_dialog.Dialog.Popup,
|
|
2579
2580
|
{
|
|
2580
2581
|
"data-slot": "dialog-content",
|
|
2581
|
-
className:
|
|
2582
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
2582
2583
|
"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",
|
|
2583
2584
|
className
|
|
2584
2585
|
),
|
|
@@ -2617,7 +2618,7 @@ function DialogHeader({ className, ...props }) {
|
|
|
2617
2618
|
"div",
|
|
2618
2619
|
{
|
|
2619
2620
|
"data-slot": "dialog-header",
|
|
2620
|
-
className:
|
|
2621
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "gap-1 flex flex-col", className),
|
|
2621
2622
|
...props
|
|
2622
2623
|
}
|
|
2623
2624
|
);
|
|
@@ -2633,7 +2634,7 @@ function DialogFooter({
|
|
|
2633
2634
|
"div",
|
|
2634
2635
|
{
|
|
2635
2636
|
"data-slot": "dialog-footer",
|
|
2636
|
-
className:
|
|
2637
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
2637
2638
|
"gap-2 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
2638
2639
|
className
|
|
2639
2640
|
),
|
|
@@ -2651,7 +2652,7 @@ function DialogTitle({ className, ...props }) {
|
|
|
2651
2652
|
_dialog.Dialog.Title,
|
|
2652
2653
|
{
|
|
2653
2654
|
"data-slot": "dialog-title",
|
|
2654
|
-
className:
|
|
2655
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-sm font-medium", className),
|
|
2655
2656
|
...props
|
|
2656
2657
|
}
|
|
2657
2658
|
);
|
|
@@ -2665,7 +2666,7 @@ function DialogDescription({
|
|
|
2665
2666
|
_dialog.Dialog.Description,
|
|
2666
2667
|
{
|
|
2667
2668
|
"data-slot": "dialog-description",
|
|
2668
|
-
className:
|
|
2669
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed *:[a]:underline *:[a]:underline-offset-3", className),
|
|
2669
2670
|
...props
|
|
2670
2671
|
}
|
|
2671
2672
|
);
|
|
@@ -2684,7 +2685,7 @@ function Input({ className, type, ...props }) {
|
|
|
2684
2685
|
{
|
|
2685
2686
|
type,
|
|
2686
2687
|
"data-slot": "input",
|
|
2687
|
-
className:
|
|
2688
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
2688
2689
|
"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",
|
|
2689
2690
|
className
|
|
2690
2691
|
),
|
|
@@ -2701,7 +2702,7 @@ function Textarea({ className, ...props }) {
|
|
|
2701
2702
|
"textarea",
|
|
2702
2703
|
{
|
|
2703
2704
|
"data-slot": "textarea",
|
|
2704
|
-
className:
|
|
2705
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
2705
2706
|
"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",
|
|
2706
2707
|
className
|
|
2707
2708
|
),
|
|
@@ -2719,7 +2720,7 @@ function InputGroup({ className, ...props }) {
|
|
|
2719
2720
|
{
|
|
2720
2721
|
"data-slot": "input-group",
|
|
2721
2722
|
role: "group",
|
|
2722
|
-
className:
|
|
2723
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
2723
2724
|
"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",
|
|
2724
2725
|
className
|
|
2725
2726
|
),
|
|
@@ -2755,7 +2756,7 @@ function InputGroupAddon({
|
|
|
2755
2756
|
role: "group",
|
|
2756
2757
|
"data-slot": "input-group-addon",
|
|
2757
2758
|
"data-align": align,
|
|
2758
|
-
className:
|
|
2759
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, inputGroupAddonVariants({ align }), className),
|
|
2759
2760
|
onClick: (e) => {
|
|
2760
2761
|
if (e.target.closest("button")) {
|
|
2761
2762
|
return;
|
|
@@ -2796,7 +2797,7 @@ function InputGroupButton({
|
|
|
2796
2797
|
type,
|
|
2797
2798
|
"data-size": size,
|
|
2798
2799
|
variant,
|
|
2799
|
-
className:
|
|
2800
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, inputGroupButtonVariants({ size }), className),
|
|
2800
2801
|
...props
|
|
2801
2802
|
}
|
|
2802
2803
|
);
|
|
@@ -2806,7 +2807,7 @@ function InputGroupText({ className, ...props }) {
|
|
|
2806
2807
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2807
2808
|
"span",
|
|
2808
2809
|
{
|
|
2809
|
-
className:
|
|
2810
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
2810
2811
|
"text-muted-foreground gap-2 text-xs/relaxed [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none",
|
|
2811
2812
|
className
|
|
2812
2813
|
),
|
|
@@ -2823,7 +2824,7 @@ function InputGroupInput({
|
|
|
2823
2824
|
Input,
|
|
2824
2825
|
{
|
|
2825
2826
|
"data-slot": "input-group-control",
|
|
2826
|
-
className:
|
|
2827
|
+
className: _chunkKYG2PIRBjs.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),
|
|
2827
2828
|
...props
|
|
2828
2829
|
}
|
|
2829
2830
|
);
|
|
@@ -2837,7 +2838,7 @@ function InputGroupTextarea({
|
|
|
2837
2838
|
Textarea,
|
|
2838
2839
|
{
|
|
2839
2840
|
"data-slot": "input-group-control",
|
|
2840
|
-
className:
|
|
2841
|
+
className: _chunkKYG2PIRBjs.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),
|
|
2841
2842
|
...props
|
|
2842
2843
|
}
|
|
2843
2844
|
);
|
|
@@ -2855,7 +2856,7 @@ function Command({
|
|
|
2855
2856
|
_cmdk.Command,
|
|
2856
2857
|
{
|
|
2857
2858
|
"data-slot": "command",
|
|
2858
|
-
className:
|
|
2859
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
2859
2860
|
"bg-popover text-popover-foreground rounded-xl p-1 flex size-full flex-col overflow-hidden",
|
|
2860
2861
|
className
|
|
2861
2862
|
),
|
|
@@ -2880,7 +2881,7 @@ function CommandDialog({
|
|
|
2880
2881
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2881
2882
|
DialogContent,
|
|
2882
2883
|
{
|
|
2883
|
-
className:
|
|
2884
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "rounded-xl! p-0 overflow-hidden p-0", className),
|
|
2884
2885
|
showCloseButton,
|
|
2885
2886
|
children
|
|
2886
2887
|
}
|
|
@@ -2897,7 +2898,7 @@ function CommandInput({
|
|
|
2897
2898
|
_cmdk.Command.Input,
|
|
2898
2899
|
{
|
|
2899
2900
|
"data-slot": "command-input",
|
|
2900
|
-
className:
|
|
2901
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
2901
2902
|
"w-full text-xs/relaxed outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
2902
2903
|
className
|
|
2903
2904
|
),
|
|
@@ -2916,7 +2917,7 @@ function CommandList({
|
|
|
2916
2917
|
_cmdk.Command.List,
|
|
2917
2918
|
{
|
|
2918
2919
|
"data-slot": "command-list",
|
|
2919
|
-
className:
|
|
2920
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
2920
2921
|
"no-scrollbar max-h-72 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto",
|
|
2921
2922
|
className
|
|
2922
2923
|
),
|
|
@@ -2933,7 +2934,7 @@ function CommandEmpty({
|
|
|
2933
2934
|
_cmdk.Command.Empty,
|
|
2934
2935
|
{
|
|
2935
2936
|
"data-slot": "command-empty",
|
|
2936
|
-
className:
|
|
2937
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "py-6 text-center text-xs/relaxed", className),
|
|
2937
2938
|
...props
|
|
2938
2939
|
}
|
|
2939
2940
|
);
|
|
@@ -2947,7 +2948,7 @@ function CommandGroup({
|
|
|
2947
2948
|
_cmdk.Command.Group,
|
|
2948
2949
|
{
|
|
2949
2950
|
"data-slot": "command-group",
|
|
2950
|
-
className:
|
|
2951
|
+
className: _chunkKYG2PIRBjs.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),
|
|
2951
2952
|
...props
|
|
2952
2953
|
}
|
|
2953
2954
|
);
|
|
@@ -2961,7 +2962,7 @@ function CommandSeparator({
|
|
|
2961
2962
|
_cmdk.Command.Separator,
|
|
2962
2963
|
{
|
|
2963
2964
|
"data-slot": "command-separator",
|
|
2964
|
-
className:
|
|
2965
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
2965
2966
|
...props
|
|
2966
2967
|
}
|
|
2967
2968
|
);
|
|
@@ -2976,7 +2977,7 @@ function CommandItem({
|
|
|
2976
2977
|
_cmdk.Command.Item,
|
|
2977
2978
|
{
|
|
2978
2979
|
"data-slot": "command-item",
|
|
2979
|
-
className:
|
|
2980
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
2980
2981
|
"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",
|
|
2981
2982
|
className
|
|
2982
2983
|
),
|
|
@@ -2997,7 +2998,7 @@ function CommandShortcut({
|
|
|
2997
2998
|
"span",
|
|
2998
2999
|
{
|
|
2999
3000
|
"data-slot": "command-shortcut",
|
|
3000
|
-
className:
|
|
3001
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-muted-foreground group-data-selected/command-item:text-foreground ml-auto text-[0.625rem] tracking-widest", className),
|
|
3001
3002
|
...props
|
|
3002
3003
|
}
|
|
3003
3004
|
);
|
|
@@ -3024,7 +3025,7 @@ function ContextMenuTrigger({
|
|
|
3024
3025
|
_contextmenu.ContextMenu.Trigger,
|
|
3025
3026
|
{
|
|
3026
3027
|
"data-slot": "context-menu-trigger",
|
|
3027
|
-
className:
|
|
3028
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "select-none", className),
|
|
3028
3029
|
...props
|
|
3029
3030
|
}
|
|
3030
3031
|
);
|
|
@@ -3050,7 +3051,7 @@ function ContextMenuContent({
|
|
|
3050
3051
|
_contextmenu.ContextMenu.Popup,
|
|
3051
3052
|
{
|
|
3052
3053
|
"data-slot": "context-menu-content",
|
|
3053
|
-
className:
|
|
3054
|
+
className: _chunkKYG2PIRBjs.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),
|
|
3054
3055
|
...props
|
|
3055
3056
|
}
|
|
3056
3057
|
)
|
|
@@ -3072,7 +3073,7 @@ function ContextMenuLabel({
|
|
|
3072
3073
|
{
|
|
3073
3074
|
"data-slot": "context-menu-label",
|
|
3074
3075
|
"data-inset": inset,
|
|
3075
|
-
className:
|
|
3076
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
|
|
3076
3077
|
...props
|
|
3077
3078
|
}
|
|
3078
3079
|
);
|
|
@@ -3090,7 +3091,7 @@ function ContextMenuItem({
|
|
|
3090
3091
|
"data-slot": "context-menu-item",
|
|
3091
3092
|
"data-inset": inset,
|
|
3092
3093
|
"data-variant": variant,
|
|
3093
|
-
className:
|
|
3094
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
3094
3095
|
"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",
|
|
3095
3096
|
className
|
|
3096
3097
|
),
|
|
@@ -3114,7 +3115,7 @@ function ContextMenuSubTrigger({
|
|
|
3114
3115
|
{
|
|
3115
3116
|
"data-slot": "context-menu-sub-trigger",
|
|
3116
3117
|
"data-inset": inset,
|
|
3117
|
-
className:
|
|
3118
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
3118
3119
|
"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",
|
|
3119
3120
|
className
|
|
3120
3121
|
),
|
|
@@ -3151,7 +3152,7 @@ function ContextMenuCheckboxItem({
|
|
|
3151
3152
|
_contextmenu.ContextMenu.CheckboxItem,
|
|
3152
3153
|
{
|
|
3153
3154
|
"data-slot": "context-menu-checkbox-item",
|
|
3154
|
-
className:
|
|
3155
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
3155
3156
|
"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",
|
|
3156
3157
|
className
|
|
3157
3158
|
),
|
|
@@ -3189,7 +3190,7 @@ function ContextMenuRadioItem({
|
|
|
3189
3190
|
_contextmenu.ContextMenu.RadioItem,
|
|
3190
3191
|
{
|
|
3191
3192
|
"data-slot": "context-menu-radio-item",
|
|
3192
|
-
className:
|
|
3193
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
3193
3194
|
"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",
|
|
3194
3195
|
className
|
|
3195
3196
|
),
|
|
@@ -3213,7 +3214,7 @@ function ContextMenuSeparator({
|
|
|
3213
3214
|
_contextmenu.ContextMenu.Separator,
|
|
3214
3215
|
{
|
|
3215
3216
|
"data-slot": "context-menu-separator",
|
|
3216
|
-
className:
|
|
3217
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
3217
3218
|
...props
|
|
3218
3219
|
}
|
|
3219
3220
|
);
|
|
@@ -3227,7 +3228,7 @@ function ContextMenuShortcut({
|
|
|
3227
3228
|
"span",
|
|
3228
3229
|
{
|
|
3229
3230
|
"data-slot": "context-menu-shortcut",
|
|
3230
|
-
className:
|
|
3231
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-muted-foreground group-focus/context-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest", className),
|
|
3231
3232
|
...props
|
|
3232
3233
|
}
|
|
3233
3234
|
);
|
|
@@ -3269,7 +3270,7 @@ function DrawerOverlay({
|
|
|
3269
3270
|
_vaul.Drawer.Overlay,
|
|
3270
3271
|
{
|
|
3271
3272
|
"data-slot": "drawer-overlay",
|
|
3272
|
-
className:
|
|
3273
|
+
className: _chunkKYG2PIRBjs.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),
|
|
3273
3274
|
...props
|
|
3274
3275
|
}
|
|
3275
3276
|
);
|
|
@@ -3286,7 +3287,7 @@ function DrawerContent({
|
|
|
3286
3287
|
_vaul.Drawer.Content,
|
|
3287
3288
|
{
|
|
3288
3289
|
"data-slot": "drawer-content",
|
|
3289
|
-
className:
|
|
3290
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
3290
3291
|
"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",
|
|
3291
3292
|
className
|
|
3292
3293
|
),
|
|
@@ -3305,7 +3306,7 @@ function DrawerHeader({ className, ...props }) {
|
|
|
3305
3306
|
"div",
|
|
3306
3307
|
{
|
|
3307
3308
|
"data-slot": "drawer-header",
|
|
3308
|
-
className:
|
|
3309
|
+
className: _chunkKYG2PIRBjs.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),
|
|
3309
3310
|
...props
|
|
3310
3311
|
}
|
|
3311
3312
|
);
|
|
@@ -3316,7 +3317,7 @@ function DrawerFooter({ className, ...props }) {
|
|
|
3316
3317
|
"div",
|
|
3317
3318
|
{
|
|
3318
3319
|
"data-slot": "drawer-footer",
|
|
3319
|
-
className:
|
|
3320
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "gap-2 p-4 mt-auto flex flex-col", className),
|
|
3320
3321
|
...props
|
|
3321
3322
|
}
|
|
3322
3323
|
);
|
|
@@ -3330,7 +3331,7 @@ function DrawerTitle({
|
|
|
3330
3331
|
_vaul.Drawer.Title,
|
|
3331
3332
|
{
|
|
3332
3333
|
"data-slot": "drawer-title",
|
|
3333
|
-
className:
|
|
3334
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-foreground text-sm font-medium", className),
|
|
3334
3335
|
...props
|
|
3335
3336
|
}
|
|
3336
3337
|
);
|
|
@@ -3344,7 +3345,7 @@ function DrawerDescription({
|
|
|
3344
3345
|
_vaul.Drawer.Description,
|
|
3345
3346
|
{
|
|
3346
3347
|
"data-slot": "drawer-description",
|
|
3347
|
-
className:
|
|
3348
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
|
|
3348
3349
|
...props
|
|
3349
3350
|
}
|
|
3350
3351
|
);
|
|
@@ -3387,7 +3388,7 @@ function DropdownMenuContent({
|
|
|
3387
3388
|
_menu.Menu.Popup,
|
|
3388
3389
|
{
|
|
3389
3390
|
"data-slot": "dropdown-menu-content",
|
|
3390
|
-
className:
|
|
3391
|
+
className: _chunkKYG2PIRBjs.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),
|
|
3391
3392
|
...props
|
|
3392
3393
|
}
|
|
3393
3394
|
)
|
|
@@ -3409,7 +3410,7 @@ function DropdownMenuLabel({
|
|
|
3409
3410
|
{
|
|
3410
3411
|
"data-slot": "dropdown-menu-label",
|
|
3411
3412
|
"data-inset": inset,
|
|
3412
|
-
className:
|
|
3413
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
|
|
3413
3414
|
...props
|
|
3414
3415
|
}
|
|
3415
3416
|
);
|
|
@@ -3427,7 +3428,7 @@ function DropdownMenuItem({
|
|
|
3427
3428
|
"data-slot": "dropdown-menu-item",
|
|
3428
3429
|
"data-inset": inset,
|
|
3429
3430
|
"data-variant": variant,
|
|
3430
|
-
className:
|
|
3431
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
3431
3432
|
"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",
|
|
3432
3433
|
className
|
|
3433
3434
|
),
|
|
@@ -3451,7 +3452,7 @@ function DropdownMenuSubTrigger({
|
|
|
3451
3452
|
{
|
|
3452
3453
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
3453
3454
|
"data-inset": inset,
|
|
3454
|
-
className:
|
|
3455
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
3455
3456
|
"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",
|
|
3456
3457
|
className
|
|
3457
3458
|
),
|
|
@@ -3476,7 +3477,7 @@ function DropdownMenuSubContent({
|
|
|
3476
3477
|
DropdownMenuContent,
|
|
3477
3478
|
{
|
|
3478
3479
|
"data-slot": "dropdown-menu-sub-content",
|
|
3479
|
-
className:
|
|
3480
|
+
className: _chunkKYG2PIRBjs.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),
|
|
3480
3481
|
align,
|
|
3481
3482
|
alignOffset,
|
|
3482
3483
|
side,
|
|
@@ -3496,7 +3497,7 @@ function DropdownMenuCheckboxItem({
|
|
|
3496
3497
|
_menu.Menu.CheckboxItem,
|
|
3497
3498
|
{
|
|
3498
3499
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
3499
|
-
className:
|
|
3500
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
3500
3501
|
"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",
|
|
3501
3502
|
className
|
|
3502
3503
|
),
|
|
@@ -3539,7 +3540,7 @@ function DropdownMenuRadioItem({
|
|
|
3539
3540
|
_menu.Menu.RadioItem,
|
|
3540
3541
|
{
|
|
3541
3542
|
"data-slot": "dropdown-menu-radio-item",
|
|
3542
|
-
className:
|
|
3543
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
3543
3544
|
"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",
|
|
3544
3545
|
className
|
|
3545
3546
|
),
|
|
@@ -3570,7 +3571,7 @@ function DropdownMenuSeparator({
|
|
|
3570
3571
|
_menu.Menu.Separator,
|
|
3571
3572
|
{
|
|
3572
3573
|
"data-slot": "dropdown-menu-separator",
|
|
3573
|
-
className:
|
|
3574
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
3574
3575
|
...props
|
|
3575
3576
|
}
|
|
3576
3577
|
);
|
|
@@ -3584,7 +3585,7 @@ function DropdownMenuShortcut({
|
|
|
3584
3585
|
"span",
|
|
3585
3586
|
{
|
|
3586
3587
|
"data-slot": "dropdown-menu-shortcut",
|
|
3587
|
-
className:
|
|
3588
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest", className),
|
|
3588
3589
|
...props
|
|
3589
3590
|
}
|
|
3590
3591
|
);
|
|
@@ -3602,7 +3603,7 @@ function Label({ className, ...props }) {
|
|
|
3602
3603
|
"label",
|
|
3603
3604
|
{
|
|
3604
3605
|
"data-slot": "label",
|
|
3605
|
-
className:
|
|
3606
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
3606
3607
|
"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",
|
|
3607
3608
|
className
|
|
3608
3609
|
),
|
|
@@ -3625,7 +3626,7 @@ function Separator({
|
|
|
3625
3626
|
{
|
|
3626
3627
|
"data-slot": "separator",
|
|
3627
3628
|
orientation,
|
|
3628
|
-
className:
|
|
3629
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
3629
3630
|
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch",
|
|
3630
3631
|
className
|
|
3631
3632
|
),
|
|
@@ -3642,7 +3643,7 @@ function FieldSet({ className, ...props }) {
|
|
|
3642
3643
|
"fieldset",
|
|
3643
3644
|
{
|
|
3644
3645
|
"data-slot": "field-set",
|
|
3645
|
-
className:
|
|
3646
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col", className),
|
|
3646
3647
|
...props
|
|
3647
3648
|
}
|
|
3648
3649
|
);
|
|
@@ -3658,7 +3659,7 @@ function FieldLegend({
|
|
|
3658
3659
|
{
|
|
3659
3660
|
"data-slot": "field-legend",
|
|
3660
3661
|
"data-variant": variant,
|
|
3661
|
-
className:
|
|
3662
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "mb-2 font-medium data-[variant=label]:text-xs/relaxed data-[variant=legend]:text-sm", className),
|
|
3662
3663
|
...props
|
|
3663
3664
|
}
|
|
3664
3665
|
);
|
|
@@ -3669,7 +3670,7 @@ function FieldGroup({ className, ...props }) {
|
|
|
3669
3670
|
"div",
|
|
3670
3671
|
{
|
|
3671
3672
|
"data-slot": "field-group",
|
|
3672
|
-
className:
|
|
3673
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
3673
3674
|
"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",
|
|
3674
3675
|
className
|
|
3675
3676
|
),
|
|
@@ -3701,7 +3702,7 @@ function Field({
|
|
|
3701
3702
|
role: "group",
|
|
3702
3703
|
"data-slot": "field",
|
|
3703
3704
|
"data-orientation": orientation,
|
|
3704
|
-
className:
|
|
3705
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, fieldVariants({ orientation }), className),
|
|
3705
3706
|
...props
|
|
3706
3707
|
}
|
|
3707
3708
|
);
|
|
@@ -3712,7 +3713,7 @@ function FieldContent({ className, ...props }) {
|
|
|
3712
3713
|
"div",
|
|
3713
3714
|
{
|
|
3714
3715
|
"data-slot": "field-content",
|
|
3715
|
-
className:
|
|
3716
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
3716
3717
|
"gap-0.5 group/field-content flex flex-1 flex-col leading-snug",
|
|
3717
3718
|
className
|
|
3718
3719
|
),
|
|
@@ -3729,7 +3730,7 @@ function FieldLabel({
|
|
|
3729
3730
|
Label,
|
|
3730
3731
|
{
|
|
3731
3732
|
"data-slot": "field-label",
|
|
3732
|
-
className:
|
|
3733
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
3733
3734
|
"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",
|
|
3734
3735
|
"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",
|
|
3735
3736
|
className
|
|
@@ -3744,7 +3745,7 @@ function FieldTitle({ className, ...props }) {
|
|
|
3744
3745
|
"div",
|
|
3745
3746
|
{
|
|
3746
3747
|
"data-slot": "field-label",
|
|
3747
|
-
className:
|
|
3748
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
3748
3749
|
"gap-2 text-xs/relaxed font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center leading-snug",
|
|
3749
3750
|
className
|
|
3750
3751
|
),
|
|
@@ -3758,7 +3759,7 @@ function FieldDescription({ className, ...props }) {
|
|
|
3758
3759
|
"p",
|
|
3759
3760
|
{
|
|
3760
3761
|
"data-slot": "field-description",
|
|
3761
|
-
className:
|
|
3762
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
3762
3763
|
"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",
|
|
3763
3764
|
"last:mt-0 nth-last-2:-mt-1",
|
|
3764
3765
|
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
@@ -3779,7 +3780,7 @@ function FieldSeparator({
|
|
|
3779
3780
|
{
|
|
3780
3781
|
"data-slot": "field-separator",
|
|
3781
3782
|
"data-content": !!children,
|
|
3782
|
-
className:
|
|
3783
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "-my-2 h-5 text-xs/relaxed group-data-[variant=outline]/field-group:-mb-2 relative", className),
|
|
3783
3784
|
...props,
|
|
3784
3785
|
children: [
|
|
3785
3786
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, { className: "absolute inset-0 top-1/2" }),
|
|
@@ -3827,7 +3828,7 @@ function FieldError({
|
|
|
3827
3828
|
{
|
|
3828
3829
|
role: "alert",
|
|
3829
3830
|
"data-slot": "field-error",
|
|
3830
|
-
className:
|
|
3831
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-destructive text-xs/relaxed font-normal", className),
|
|
3831
3832
|
...props,
|
|
3832
3833
|
children: content
|
|
3833
3834
|
}
|
|
@@ -3870,7 +3871,7 @@ function HoverCardContent({
|
|
|
3870
3871
|
_previewcard.PreviewCard.Popup,
|
|
3871
3872
|
{
|
|
3872
3873
|
"data-slot": "hover-card-content",
|
|
3873
|
-
className:
|
|
3874
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
3874
3875
|
"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",
|
|
3875
3876
|
className
|
|
3876
3877
|
),
|
|
@@ -3896,12 +3897,12 @@ function InputOTP({
|
|
|
3896
3897
|
_inputotp.OTPInput,
|
|
3897
3898
|
{
|
|
3898
3899
|
"data-slot": "input-otp",
|
|
3899
|
-
containerClassName:
|
|
3900
|
+
containerClassName: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
3900
3901
|
"cn-input-otp flex items-center has-disabled:opacity-50",
|
|
3901
3902
|
containerClassName
|
|
3902
3903
|
),
|
|
3903
3904
|
spellCheck: false,
|
|
3904
|
-
className:
|
|
3905
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
3905
3906
|
"disabled:cursor-not-allowed",
|
|
3906
3907
|
className
|
|
3907
3908
|
),
|
|
@@ -3915,7 +3916,7 @@ function InputOTPGroup({ className, ...props }) {
|
|
|
3915
3916
|
"div",
|
|
3916
3917
|
{
|
|
3917
3918
|
"data-slot": "input-otp-group",
|
|
3918
|
-
className:
|
|
3919
|
+
className: _chunkKYG2PIRBjs.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),
|
|
3919
3920
|
...props
|
|
3920
3921
|
}
|
|
3921
3922
|
);
|
|
@@ -3933,7 +3934,7 @@ function InputOTPSlot({
|
|
|
3933
3934
|
{
|
|
3934
3935
|
"data-slot": "input-otp-slot",
|
|
3935
3936
|
"data-active": isActive,
|
|
3936
|
-
className:
|
|
3937
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
3937
3938
|
"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",
|
|
3938
3939
|
className
|
|
3939
3940
|
),
|
|
@@ -3977,7 +3978,7 @@ function NavigationMenu({
|
|
|
3977
3978
|
_navigationmenu.NavigationMenu.Root,
|
|
3978
3979
|
{
|
|
3979
3980
|
"data-slot": "navigation-menu",
|
|
3980
|
-
className:
|
|
3981
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
3981
3982
|
"max-w-max group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
|
|
3982
3983
|
className
|
|
3983
3984
|
),
|
|
@@ -3998,7 +3999,7 @@ function NavigationMenuList({
|
|
|
3998
3999
|
_navigationmenu.NavigationMenu.List,
|
|
3999
4000
|
{
|
|
4000
4001
|
"data-slot": "navigation-menu-list",
|
|
4001
|
-
className:
|
|
4002
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
4002
4003
|
"gap-0 group flex flex-1 list-none items-center justify-center",
|
|
4003
4004
|
className
|
|
4004
4005
|
),
|
|
@@ -4015,7 +4016,7 @@ function NavigationMenuItem({
|
|
|
4015
4016
|
_navigationmenu.NavigationMenu.Item,
|
|
4016
4017
|
{
|
|
4017
4018
|
"data-slot": "navigation-menu-item",
|
|
4018
|
-
className:
|
|
4019
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "relative", className),
|
|
4019
4020
|
...props
|
|
4020
4021
|
}
|
|
4021
4022
|
);
|
|
@@ -4033,7 +4034,7 @@ function NavigationMenuTrigger({
|
|
|
4033
4034
|
_navigationmenu.NavigationMenu.Trigger,
|
|
4034
4035
|
{
|
|
4035
4036
|
"data-slot": "navigation-menu-trigger",
|
|
4036
|
-
className:
|
|
4037
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, navigationMenuTriggerStyle(), "group", className),
|
|
4037
4038
|
...props,
|
|
4038
4039
|
children: [
|
|
4039
4040
|
children,
|
|
@@ -4052,7 +4053,7 @@ function NavigationMenuContent({
|
|
|
4052
4053
|
_navigationmenu.NavigationMenu.Content,
|
|
4053
4054
|
{
|
|
4054
4055
|
"data-slot": "navigation-menu-content",
|
|
4055
|
-
className:
|
|
4056
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
4056
4057
|
"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",
|
|
4057
4058
|
className
|
|
4058
4059
|
),
|
|
@@ -4076,7 +4077,7 @@ function NavigationMenuPositioner({
|
|
|
4076
4077
|
sideOffset,
|
|
4077
4078
|
align,
|
|
4078
4079
|
alignOffset,
|
|
4079
|
-
className:
|
|
4080
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
4080
4081
|
"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",
|
|
4081
4082
|
className
|
|
4082
4083
|
),
|
|
@@ -4094,7 +4095,7 @@ function NavigationMenuLink({
|
|
|
4094
4095
|
_navigationmenu.NavigationMenu.Link,
|
|
4095
4096
|
{
|
|
4096
4097
|
"data-slot": "navigation-menu-link",
|
|
4097
|
-
className:
|
|
4098
|
+
className: _chunkKYG2PIRBjs.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),
|
|
4098
4099
|
...props
|
|
4099
4100
|
}
|
|
4100
4101
|
);
|
|
@@ -4108,7 +4109,7 @@ function NavigationMenuIndicator({
|
|
|
4108
4109
|
_navigationmenu.NavigationMenu.Icon,
|
|
4109
4110
|
{
|
|
4110
4111
|
"data-slot": "navigation-menu-indicator",
|
|
4111
|
-
className:
|
|
4112
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
4112
4113
|
"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",
|
|
4113
4114
|
className
|
|
4114
4115
|
),
|
|
@@ -4150,7 +4151,7 @@ function PopoverContent({
|
|
|
4150
4151
|
_popover.Popover.Popup,
|
|
4151
4152
|
{
|
|
4152
4153
|
"data-slot": "popover-content",
|
|
4153
|
-
className:
|
|
4154
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
4154
4155
|
"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",
|
|
4155
4156
|
className
|
|
4156
4157
|
),
|
|
@@ -4166,7 +4167,7 @@ function PopoverHeader({ className, ...props }) {
|
|
|
4166
4167
|
"div",
|
|
4167
4168
|
{
|
|
4168
4169
|
"data-slot": "popover-header",
|
|
4169
|
-
className:
|
|
4170
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "flex flex-col gap-1 text-xs", className),
|
|
4170
4171
|
...props
|
|
4171
4172
|
}
|
|
4172
4173
|
);
|
|
@@ -4177,7 +4178,7 @@ function PopoverTitle({ className, ...props }) {
|
|
|
4177
4178
|
_popover.Popover.Title,
|
|
4178
4179
|
{
|
|
4179
4180
|
"data-slot": "popover-title",
|
|
4180
|
-
className:
|
|
4181
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-sm font-medium", className),
|
|
4181
4182
|
...props
|
|
4182
4183
|
}
|
|
4183
4184
|
);
|
|
@@ -4191,7 +4192,7 @@ function PopoverDescription({
|
|
|
4191
4192
|
_popover.Popover.Description,
|
|
4192
4193
|
{
|
|
4193
4194
|
"data-slot": "popover-description",
|
|
4194
|
-
className:
|
|
4195
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-muted-foreground", className),
|
|
4195
4196
|
...props
|
|
4196
4197
|
}
|
|
4197
4198
|
);
|
|
@@ -4212,7 +4213,7 @@ function Progress({
|
|
|
4212
4213
|
{
|
|
4213
4214
|
value,
|
|
4214
4215
|
"data-slot": "progress",
|
|
4215
|
-
className:
|
|
4216
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "flex flex-wrap gap-3", className),
|
|
4216
4217
|
...props,
|
|
4217
4218
|
children: [
|
|
4218
4219
|
children,
|
|
@@ -4226,7 +4227,7 @@ function ProgressTrack({ className, ...props }) {
|
|
|
4226
4227
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4227
4228
|
_progress.Progress.Track,
|
|
4228
4229
|
{
|
|
4229
|
-
className:
|
|
4230
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
4230
4231
|
"bg-muted h-1 rounded-md relative flex w-full items-center overflow-x-hidden",
|
|
4231
4232
|
className
|
|
4232
4233
|
),
|
|
@@ -4244,7 +4245,7 @@ function ProgressIndicator({
|
|
|
4244
4245
|
_progress.Progress.Indicator,
|
|
4245
4246
|
{
|
|
4246
4247
|
"data-slot": "progress-indicator",
|
|
4247
|
-
className:
|
|
4248
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "bg-primary h-full transition-all", className),
|
|
4248
4249
|
...props
|
|
4249
4250
|
}
|
|
4250
4251
|
);
|
|
@@ -4254,7 +4255,7 @@ function ProgressLabel({ className, ...props }) {
|
|
|
4254
4255
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4255
4256
|
_progress.Progress.Label,
|
|
4256
4257
|
{
|
|
4257
|
-
className:
|
|
4258
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-xs/relaxed font-medium", className),
|
|
4258
4259
|
"data-slot": "progress-label",
|
|
4259
4260
|
...props
|
|
4260
4261
|
}
|
|
@@ -4265,7 +4266,7 @@ function ProgressValue({ className, ...props }) {
|
|
|
4265
4266
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4266
4267
|
_progress.Progress.Value,
|
|
4267
4268
|
{
|
|
4268
|
-
className:
|
|
4269
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-muted-foreground ml-auto text-xs/relaxed tabular-nums", className),
|
|
4269
4270
|
"data-slot": "progress-value",
|
|
4270
4271
|
...props
|
|
4271
4272
|
}
|
|
@@ -4283,7 +4284,7 @@ function RadioGroup({ className, ...props }) {
|
|
|
4283
4284
|
_radiogroup.RadioGroup,
|
|
4284
4285
|
{
|
|
4285
4286
|
"data-slot": "radio-group",
|
|
4286
|
-
className:
|
|
4287
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "grid gap-3 w-full", className),
|
|
4287
4288
|
...props
|
|
4288
4289
|
}
|
|
4289
4290
|
);
|
|
@@ -4294,7 +4295,7 @@ function RadioGroupItem({ className, ...props }) {
|
|
|
4294
4295
|
_radio.Radio.Root,
|
|
4295
4296
|
{
|
|
4296
4297
|
"data-slot": "radio-group-item",
|
|
4297
|
-
className:
|
|
4298
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
4298
4299
|
"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",
|
|
4299
4300
|
className
|
|
4300
4301
|
),
|
|
@@ -4323,7 +4324,7 @@ function ResizablePanelGroup({
|
|
|
4323
4324
|
ResizablePrimitive.PanelGroup,
|
|
4324
4325
|
{
|
|
4325
4326
|
"data-slot": "resizable-panel-group",
|
|
4326
|
-
className:
|
|
4327
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
4327
4328
|
"flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
|
|
4328
4329
|
className
|
|
4329
4330
|
),
|
|
@@ -4347,7 +4348,7 @@ function ResizableHandle({
|
|
|
4347
4348
|
ResizablePrimitive.PanelResizeHandle,
|
|
4348
4349
|
{
|
|
4349
4350
|
"data-slot": "resizable-handle",
|
|
4350
|
-
className:
|
|
4351
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
4351
4352
|
"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",
|
|
4352
4353
|
className
|
|
4353
4354
|
),
|
|
@@ -4370,7 +4371,7 @@ function ScrollArea({
|
|
|
4370
4371
|
_scrollarea.ScrollArea.Root,
|
|
4371
4372
|
{
|
|
4372
4373
|
"data-slot": "scroll-area",
|
|
4373
|
-
className:
|
|
4374
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "relative", className),
|
|
4374
4375
|
...props,
|
|
4375
4376
|
children: [
|
|
4376
4377
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4399,7 +4400,7 @@ function ScrollBar({
|
|
|
4399
4400
|
"data-slot": "scroll-area-scrollbar",
|
|
4400
4401
|
"data-orientation": orientation,
|
|
4401
4402
|
orientation,
|
|
4402
|
-
className:
|
|
4403
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
4403
4404
|
"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",
|
|
4404
4405
|
className
|
|
4405
4406
|
),
|
|
@@ -4426,7 +4427,7 @@ function SelectGroup({ className, ...props }) {
|
|
|
4426
4427
|
_select.Select.Group,
|
|
4427
4428
|
{
|
|
4428
4429
|
"data-slot": "select-group",
|
|
4429
|
-
className:
|
|
4430
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "scroll-my-1 p-1", className),
|
|
4430
4431
|
...props
|
|
4431
4432
|
}
|
|
4432
4433
|
);
|
|
@@ -4437,7 +4438,7 @@ function SelectValue({ className, ...props }) {
|
|
|
4437
4438
|
_select.Select.Value,
|
|
4438
4439
|
{
|
|
4439
4440
|
"data-slot": "select-value",
|
|
4440
|
-
className:
|
|
4441
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "flex flex-1 text-left", className),
|
|
4441
4442
|
...props
|
|
4442
4443
|
}
|
|
4443
4444
|
);
|
|
@@ -4454,7 +4455,7 @@ function SelectTrigger({
|
|
|
4454
4455
|
{
|
|
4455
4456
|
"data-slot": "select-trigger",
|
|
4456
4457
|
"data-size": size,
|
|
4457
|
-
className:
|
|
4458
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
4458
4459
|
"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",
|
|
4459
4460
|
className
|
|
4460
4461
|
),
|
|
@@ -4495,7 +4496,7 @@ function SelectContent({
|
|
|
4495
4496
|
_select.Select.Popup,
|
|
4496
4497
|
{
|
|
4497
4498
|
"data-slot": "select-content",
|
|
4498
|
-
className:
|
|
4499
|
+
className: _chunkKYG2PIRBjs.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),
|
|
4499
4500
|
...props,
|
|
4500
4501
|
children: [
|
|
4501
4502
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectScrollUpButton, {}),
|
|
@@ -4516,7 +4517,7 @@ function SelectLabel({
|
|
|
4516
4517
|
_select.Select.GroupLabel,
|
|
4517
4518
|
{
|
|
4518
4519
|
"data-slot": "select-label",
|
|
4519
|
-
className:
|
|
4520
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs", className),
|
|
4520
4521
|
...props
|
|
4521
4522
|
}
|
|
4522
4523
|
);
|
|
@@ -4531,7 +4532,7 @@ function SelectItem({
|
|
|
4531
4532
|
_select.Select.Item,
|
|
4532
4533
|
{
|
|
4533
4534
|
"data-slot": "select-item",
|
|
4534
|
-
className:
|
|
4535
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
4535
4536
|
"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",
|
|
4536
4537
|
className
|
|
4537
4538
|
),
|
|
@@ -4558,7 +4559,7 @@ function SelectSeparator({
|
|
|
4558
4559
|
_select.Select.Separator,
|
|
4559
4560
|
{
|
|
4560
4561
|
"data-slot": "select-separator",
|
|
4561
|
-
className:
|
|
4562
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px pointer-events-none", className),
|
|
4562
4563
|
...props
|
|
4563
4564
|
}
|
|
4564
4565
|
);
|
|
@@ -4572,7 +4573,7 @@ function SelectScrollUpButton({
|
|
|
4572
4573
|
_select.Select.ScrollUpArrow,
|
|
4573
4574
|
{
|
|
4574
4575
|
"data-slot": "select-scroll-up-button",
|
|
4575
|
-
className:
|
|
4576
|
+
className: _chunkKYG2PIRBjs.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),
|
|
4576
4577
|
...props,
|
|
4577
4578
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4578
4579
|
_lucidereact.ChevronUpIcon,
|
|
@@ -4590,7 +4591,7 @@ function SelectScrollDownButton({
|
|
|
4590
4591
|
_select.Select.ScrollDownArrow,
|
|
4591
4592
|
{
|
|
4592
4593
|
"data-slot": "select-scroll-down-button",
|
|
4593
|
-
className:
|
|
4594
|
+
className: _chunkKYG2PIRBjs.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),
|
|
4594
4595
|
...props,
|
|
4595
4596
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4596
4597
|
_lucidereact.ChevronDownIcon,
|
|
@@ -4626,7 +4627,7 @@ function SheetOverlay({ className, ...props }) {
|
|
|
4626
4627
|
_dialog.Dialog.Backdrop,
|
|
4627
4628
|
{
|
|
4628
4629
|
"data-slot": "sheet-overlay",
|
|
4629
|
-
className:
|
|
4630
|
+
className: _chunkKYG2PIRBjs.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),
|
|
4630
4631
|
...props
|
|
4631
4632
|
}
|
|
4632
4633
|
);
|
|
@@ -4646,7 +4647,7 @@ function SheetContent({
|
|
|
4646
4647
|
{
|
|
4647
4648
|
"data-slot": "sheet-content",
|
|
4648
4649
|
"data-side": side,
|
|
4649
|
-
className:
|
|
4650
|
+
className: _chunkKYG2PIRBjs.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),
|
|
4650
4651
|
...props,
|
|
4651
4652
|
children: [
|
|
4652
4653
|
children,
|
|
@@ -4682,7 +4683,7 @@ function SheetHeader({ className, ...props }) {
|
|
|
4682
4683
|
"div",
|
|
4683
4684
|
{
|
|
4684
4685
|
"data-slot": "sheet-header",
|
|
4685
|
-
className:
|
|
4686
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "gap-1.5 p-6 flex flex-col", className),
|
|
4686
4687
|
...props
|
|
4687
4688
|
}
|
|
4688
4689
|
);
|
|
@@ -4693,7 +4694,7 @@ function SheetFooter({ className, ...props }) {
|
|
|
4693
4694
|
"div",
|
|
4694
4695
|
{
|
|
4695
4696
|
"data-slot": "sheet-footer",
|
|
4696
|
-
className:
|
|
4697
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "gap-2 p-6 mt-auto flex flex-col", className),
|
|
4697
4698
|
...props
|
|
4698
4699
|
}
|
|
4699
4700
|
);
|
|
@@ -4704,7 +4705,7 @@ function SheetTitle({ className, ...props }) {
|
|
|
4704
4705
|
_dialog.Dialog.Title,
|
|
4705
4706
|
{
|
|
4706
4707
|
"data-slot": "sheet-title",
|
|
4707
|
-
className:
|
|
4708
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-foreground text-sm font-medium", className),
|
|
4708
4709
|
...props
|
|
4709
4710
|
}
|
|
4710
4711
|
);
|
|
@@ -4718,7 +4719,7 @@ function SheetDescription({
|
|
|
4718
4719
|
_dialog.Dialog.Description,
|
|
4719
4720
|
{
|
|
4720
4721
|
"data-slot": "sheet-description",
|
|
4721
|
-
className:
|
|
4722
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
|
|
4722
4723
|
...props
|
|
4723
4724
|
}
|
|
4724
4725
|
);
|
|
@@ -4738,7 +4739,7 @@ function Skeleton({ className, ...props }) {
|
|
|
4738
4739
|
"div",
|
|
4739
4740
|
{
|
|
4740
4741
|
"data-slot": "skeleton",
|
|
4741
|
-
className:
|
|
4742
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "bg-muted rounded-md animate-pulse", className),
|
|
4742
4743
|
...props
|
|
4743
4744
|
}
|
|
4744
4745
|
);
|
|
@@ -4791,7 +4792,7 @@ function TooltipContent({
|
|
|
4791
4792
|
_tooltip.Tooltip.Popup,
|
|
4792
4793
|
{
|
|
4793
4794
|
"data-slot": "tooltip-content",
|
|
4794
|
-
className:
|
|
4795
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
4795
4796
|
"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)",
|
|
4796
4797
|
className
|
|
4797
4798
|
),
|
|
@@ -4834,7 +4835,7 @@ function SidebarProvider({
|
|
|
4834
4835
|
children,
|
|
4835
4836
|
...props
|
|
4836
4837
|
}) {
|
|
4837
|
-
const isMobile =
|
|
4838
|
+
const isMobile = _chunkKYG2PIRBjs.useIsMobile.call(void 0, );
|
|
4838
4839
|
const [openMobile, setOpenMobile] = React7.useState(false);
|
|
4839
4840
|
const [_open, _setOpen] = React7.useState(defaultOpen);
|
|
4840
4841
|
const open = _nullishCoalesce(openProp, () => ( _open));
|
|
@@ -4885,7 +4886,7 @@ function SidebarProvider({
|
|
|
4885
4886
|
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
4886
4887
|
...style
|
|
4887
4888
|
},
|
|
4888
|
-
className:
|
|
4889
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
4889
4890
|
"group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",
|
|
4890
4891
|
className
|
|
4891
4892
|
),
|
|
@@ -4909,7 +4910,7 @@ function Sidebar({
|
|
|
4909
4910
|
"div",
|
|
4910
4911
|
{
|
|
4911
4912
|
"data-slot": "sidebar",
|
|
4912
|
-
className:
|
|
4913
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
4913
4914
|
"bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",
|
|
4914
4915
|
className
|
|
4915
4916
|
),
|
|
@@ -4954,7 +4955,7 @@ function Sidebar({
|
|
|
4954
4955
|
"div",
|
|
4955
4956
|
{
|
|
4956
4957
|
"data-slot": "sidebar-gap",
|
|
4957
|
-
className:
|
|
4958
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
4958
4959
|
"transition-[width] duration-200 ease-linear relative w-(--sidebar-width) bg-transparent",
|
|
4959
4960
|
"group-data-[collapsible=offExamples]:w-0",
|
|
4960
4961
|
"group-data-[side=right]:rotate-180",
|
|
@@ -4966,7 +4967,7 @@ function Sidebar({
|
|
|
4966
4967
|
"div",
|
|
4967
4968
|
{
|
|
4968
4969
|
"data-slot": "sidebar-container",
|
|
4969
|
-
className:
|
|
4970
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
4970
4971
|
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
4971
4972
|
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)]",
|
|
4972
4973
|
// Adjust the padding for floating and inset variants.
|
|
@@ -5003,7 +5004,7 @@ function SidebarTrigger({
|
|
|
5003
5004
|
"data-slot": "sidebar-trigger",
|
|
5004
5005
|
variant: "ghost",
|
|
5005
5006
|
size: "icon-sm",
|
|
5006
|
-
className:
|
|
5007
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, className),
|
|
5007
5008
|
onClick: (event) => {
|
|
5008
5009
|
_optionalChain([onClick, 'optionalCall', _88 => _88(event)]);
|
|
5009
5010
|
toggleSidebar();
|
|
@@ -5031,7 +5032,7 @@ function SidebarRail({ className, ...props }) {
|
|
|
5031
5032
|
tabIndex: -1,
|
|
5032
5033
|
onClick: toggleSidebar,
|
|
5033
5034
|
title: "Toggle Sidebar",
|
|
5034
|
-
className:
|
|
5035
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
5035
5036
|
"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",
|
|
5036
5037
|
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
5037
5038
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
@@ -5050,7 +5051,7 @@ function SidebarInset({ className, ...props }) {
|
|
|
5050
5051
|
"main",
|
|
5051
5052
|
{
|
|
5052
5053
|
"data-slot": "sidebar-inset",
|
|
5053
|
-
className:
|
|
5054
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
5054
5055
|
"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",
|
|
5055
5056
|
className
|
|
5056
5057
|
),
|
|
@@ -5068,7 +5069,7 @@ function SidebarInput({
|
|
|
5068
5069
|
{
|
|
5069
5070
|
"data-slot": "sidebar-input",
|
|
5070
5071
|
"data-sidebar": "input",
|
|
5071
|
-
className:
|
|
5072
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "bg-muted/20 dark:bg-muted/30 border-input h-8 w-full", className),
|
|
5072
5073
|
...props
|
|
5073
5074
|
}
|
|
5074
5075
|
);
|
|
@@ -5080,7 +5081,7 @@ function SidebarHeader({ className, ...props }) {
|
|
|
5080
5081
|
{
|
|
5081
5082
|
"data-slot": "sidebar-header",
|
|
5082
5083
|
"data-sidebar": "header",
|
|
5083
|
-
className:
|
|
5084
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
|
|
5084
5085
|
...props
|
|
5085
5086
|
}
|
|
5086
5087
|
);
|
|
@@ -5092,7 +5093,7 @@ function SidebarFooter({ className, ...props }) {
|
|
|
5092
5093
|
{
|
|
5093
5094
|
"data-slot": "sidebar-footer",
|
|
5094
5095
|
"data-sidebar": "footer",
|
|
5095
|
-
className:
|
|
5096
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
|
|
5096
5097
|
...props
|
|
5097
5098
|
}
|
|
5098
5099
|
);
|
|
@@ -5107,7 +5108,7 @@ function SidebarSeparator({
|
|
|
5107
5108
|
{
|
|
5108
5109
|
"data-slot": "sidebar-separator",
|
|
5109
5110
|
"data-sidebar": "separator",
|
|
5110
|
-
className:
|
|
5111
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "bg-sidebar-border mx-2 w-auto", className),
|
|
5111
5112
|
...props
|
|
5112
5113
|
}
|
|
5113
5114
|
);
|
|
@@ -5119,7 +5120,7 @@ function SidebarContent({ className, ...props }) {
|
|
|
5119
5120
|
{
|
|
5120
5121
|
"data-slot": "sidebar-content",
|
|
5121
5122
|
"data-sidebar": "content",
|
|
5122
|
-
className:
|
|
5123
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
5123
5124
|
"no-scrollbar gap-0 flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
5124
5125
|
className
|
|
5125
5126
|
),
|
|
@@ -5134,7 +5135,7 @@ function SidebarGroup({ className, ...props }) {
|
|
|
5134
5135
|
{
|
|
5135
5136
|
"data-slot": "sidebar-group",
|
|
5136
5137
|
"data-sidebar": "group",
|
|
5137
|
-
className:
|
|
5138
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
5138
5139
|
"px-2 py-1 relative flex w-full min-w-0 flex-col",
|
|
5139
5140
|
className
|
|
5140
5141
|
),
|
|
@@ -5152,7 +5153,7 @@ function SidebarGroupLabel({
|
|
|
5152
5153
|
defaultTagName: "div",
|
|
5153
5154
|
props: _mergeprops.mergeProps.call(void 0,
|
|
5154
5155
|
{
|
|
5155
|
-
className:
|
|
5156
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
5156
5157
|
"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",
|
|
5157
5158
|
className
|
|
5158
5159
|
)
|
|
@@ -5176,7 +5177,7 @@ function SidebarGroupAction({
|
|
|
5176
5177
|
defaultTagName: "button",
|
|
5177
5178
|
props: _mergeprops.mergeProps.call(void 0,
|
|
5178
5179
|
{
|
|
5179
|
-
className:
|
|
5180
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
5180
5181
|
"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",
|
|
5181
5182
|
className
|
|
5182
5183
|
)
|
|
@@ -5200,7 +5201,7 @@ function SidebarGroupContent({
|
|
|
5200
5201
|
{
|
|
5201
5202
|
"data-slot": "sidebar-group-content",
|
|
5202
5203
|
"data-sidebar": "group-content",
|
|
5203
|
-
className:
|
|
5204
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-xs w-full", className),
|
|
5204
5205
|
...props
|
|
5205
5206
|
}
|
|
5206
5207
|
);
|
|
@@ -5212,7 +5213,7 @@ function SidebarMenu({ className, ...props }) {
|
|
|
5212
5213
|
{
|
|
5213
5214
|
"data-slot": "sidebar-menu",
|
|
5214
5215
|
"data-sidebar": "menu",
|
|
5215
|
-
className:
|
|
5216
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "gap-px flex w-full min-w-0 flex-col", className),
|
|
5216
5217
|
...props
|
|
5217
5218
|
}
|
|
5218
5219
|
);
|
|
@@ -5224,7 +5225,7 @@ function SidebarMenuItem({ className, ...props }) {
|
|
|
5224
5225
|
{
|
|
5225
5226
|
"data-slot": "sidebar-menu-item",
|
|
5226
5227
|
"data-sidebar": "menu-item",
|
|
5227
|
-
className:
|
|
5228
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "group/menu-item relative", className),
|
|
5228
5229
|
...props
|
|
5229
5230
|
}
|
|
5230
5231
|
);
|
|
@@ -5264,7 +5265,7 @@ function SidebarMenuButton({
|
|
|
5264
5265
|
defaultTagName: "button",
|
|
5265
5266
|
props: _mergeprops.mergeProps.call(void 0,
|
|
5266
5267
|
{
|
|
5267
|
-
className:
|
|
5268
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, sidebarMenuButtonVariants({ variant, size }), className)
|
|
5268
5269
|
},
|
|
5269
5270
|
props
|
|
5270
5271
|
),
|
|
@@ -5308,7 +5309,7 @@ function SidebarMenuAction({
|
|
|
5308
5309
|
defaultTagName: "button",
|
|
5309
5310
|
props: _mergeprops.mergeProps.call(void 0,
|
|
5310
5311
|
{
|
|
5311
|
-
className:
|
|
5312
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
5312
5313
|
"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",
|
|
5313
5314
|
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",
|
|
5314
5315
|
className
|
|
@@ -5333,7 +5334,7 @@ function SidebarMenuBadge({
|
|
|
5333
5334
|
{
|
|
5334
5335
|
"data-slot": "sidebar-menu-badge",
|
|
5335
5336
|
"data-sidebar": "menu-badge",
|
|
5336
|
-
className:
|
|
5337
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
5337
5338
|
"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",
|
|
5338
5339
|
className
|
|
5339
5340
|
),
|
|
@@ -5355,7 +5356,7 @@ function SidebarMenuSkeleton({
|
|
|
5355
5356
|
{
|
|
5356
5357
|
"data-slot": "sidebar-menu-skeleton",
|
|
5357
5358
|
"data-sidebar": "menu-skeleton",
|
|
5358
|
-
className:
|
|
5359
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "h-8 gap-2 rounded-md px-2 flex items-center", className),
|
|
5359
5360
|
...props,
|
|
5360
5361
|
children: [
|
|
5361
5362
|
showIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -5386,7 +5387,7 @@ function SidebarMenuSub({ className, ...props }) {
|
|
|
5386
5387
|
{
|
|
5387
5388
|
"data-slot": "sidebar-menu-sub",
|
|
5388
5389
|
"data-sidebar": "menu-sub",
|
|
5389
|
-
className:
|
|
5390
|
+
className: _chunkKYG2PIRBjs.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),
|
|
5390
5391
|
...props
|
|
5391
5392
|
}
|
|
5392
5393
|
);
|
|
@@ -5401,7 +5402,7 @@ function SidebarMenuSubItem({
|
|
|
5401
5402
|
{
|
|
5402
5403
|
"data-slot": "sidebar-menu-sub-item",
|
|
5403
5404
|
"data-sidebar": "menu-sub-item",
|
|
5404
|
-
className:
|
|
5405
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "group/menu-sub-item relative", className),
|
|
5405
5406
|
...props
|
|
5406
5407
|
}
|
|
5407
5408
|
);
|
|
@@ -5418,7 +5419,7 @@ function SidebarMenuSubButton({
|
|
|
5418
5419
|
defaultTagName: "a",
|
|
5419
5420
|
props: _mergeprops.mergeProps.call(void 0,
|
|
5420
5421
|
{
|
|
5421
|
-
className:
|
|
5422
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
5422
5423
|
"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",
|
|
5423
5424
|
className
|
|
5424
5425
|
)
|
|
@@ -5466,7 +5467,7 @@ function Slider({
|
|
|
5466
5467
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
5467
5468
|
_slider.Slider.Control,
|
|
5468
5469
|
{
|
|
5469
|
-
className:
|
|
5470
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
5470
5471
|
"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",
|
|
5471
5472
|
className
|
|
5472
5473
|
),
|
|
@@ -5550,7 +5551,7 @@ function Switch({
|
|
|
5550
5551
|
{
|
|
5551
5552
|
"data-slot": "switch",
|
|
5552
5553
|
"data-size": size,
|
|
5553
|
-
className:
|
|
5554
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
5554
5555
|
"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",
|
|
5555
5556
|
className
|
|
5556
5557
|
),
|
|
@@ -5559,7 +5560,7 @@ function Switch({
|
|
|
5559
5560
|
_switch.Switch.Thumb,
|
|
5560
5561
|
{
|
|
5561
5562
|
"data-slot": "switch-thumb",
|
|
5562
|
-
className:
|
|
5563
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
5563
5564
|
"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",
|
|
5564
5565
|
children && "flex items-center justify-center"
|
|
5565
5566
|
),
|
|
@@ -5578,7 +5579,7 @@ function Table({ className, ...props }) {
|
|
|
5578
5579
|
"table",
|
|
5579
5580
|
{
|
|
5580
5581
|
"data-slot": "table",
|
|
5581
|
-
className:
|
|
5582
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "w-full caption-bottom text-xs", className),
|
|
5582
5583
|
...props
|
|
5583
5584
|
}
|
|
5584
5585
|
) });
|
|
@@ -5589,7 +5590,7 @@ function TableHeader({ className, ...props }) {
|
|
|
5589
5590
|
"thead",
|
|
5590
5591
|
{
|
|
5591
5592
|
"data-slot": "table-header",
|
|
5592
|
-
className:
|
|
5593
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "[&_tr]:border-b", className),
|
|
5593
5594
|
...props
|
|
5594
5595
|
}
|
|
5595
5596
|
);
|
|
@@ -5600,7 +5601,7 @@ function TableBody({ className, ...props }) {
|
|
|
5600
5601
|
"tbody",
|
|
5601
5602
|
{
|
|
5602
5603
|
"data-slot": "table-body",
|
|
5603
|
-
className:
|
|
5604
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "[&_tr:last-child]:border-0", className),
|
|
5604
5605
|
...props
|
|
5605
5606
|
}
|
|
5606
5607
|
);
|
|
@@ -5611,7 +5612,7 @@ function TableFooter({ className, ...props }) {
|
|
|
5611
5612
|
"tfoot",
|
|
5612
5613
|
{
|
|
5613
5614
|
"data-slot": "table-footer",
|
|
5614
|
-
className:
|
|
5615
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", className),
|
|
5615
5616
|
...props
|
|
5616
5617
|
}
|
|
5617
5618
|
);
|
|
@@ -5622,7 +5623,7 @@ function TableRow({ className, ...props }) {
|
|
|
5622
5623
|
"tr",
|
|
5623
5624
|
{
|
|
5624
5625
|
"data-slot": "table-row",
|
|
5625
|
-
className:
|
|
5626
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", className),
|
|
5626
5627
|
...props
|
|
5627
5628
|
}
|
|
5628
5629
|
);
|
|
@@ -5633,7 +5634,7 @@ function TableHead({ className, ...props }) {
|
|
|
5633
5634
|
"th",
|
|
5634
5635
|
{
|
|
5635
5636
|
"data-slot": "table-head",
|
|
5636
|
-
className:
|
|
5637
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0", className),
|
|
5637
5638
|
...props
|
|
5638
5639
|
}
|
|
5639
5640
|
);
|
|
@@ -5644,7 +5645,7 @@ function TableCell({ className, ...props }) {
|
|
|
5644
5645
|
"td",
|
|
5645
5646
|
{
|
|
5646
5647
|
"data-slot": "table-cell",
|
|
5647
|
-
className:
|
|
5648
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0", className),
|
|
5648
5649
|
...props
|
|
5649
5650
|
}
|
|
5650
5651
|
);
|
|
@@ -5658,7 +5659,7 @@ function TableCaption({
|
|
|
5658
5659
|
"caption",
|
|
5659
5660
|
{
|
|
5660
5661
|
"data-slot": "table-caption",
|
|
5661
|
-
className:
|
|
5662
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-muted-foreground mt-4 text-xs", className),
|
|
5662
5663
|
...props
|
|
5663
5664
|
}
|
|
5664
5665
|
);
|
|
@@ -5679,7 +5680,7 @@ function Tabs({
|
|
|
5679
5680
|
{
|
|
5680
5681
|
"data-slot": "tabs",
|
|
5681
5682
|
"data-orientation": orientation,
|
|
5682
|
-
className:
|
|
5683
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
5683
5684
|
"gap-2 group/tabs flex data-[orientation=horizontal]:flex-col",
|
|
5684
5685
|
className
|
|
5685
5686
|
),
|
|
@@ -5712,7 +5713,7 @@ function TabsList({
|
|
|
5712
5713
|
{
|
|
5713
5714
|
"data-slot": "tabs-list",
|
|
5714
5715
|
"data-variant": variant,
|
|
5715
|
-
className:
|
|
5716
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, tabsListVariants({ variant }), className),
|
|
5716
5717
|
...props
|
|
5717
5718
|
}
|
|
5718
5719
|
);
|
|
@@ -5723,7 +5724,7 @@ function TabsTrigger({ className, ...props }) {
|
|
|
5723
5724
|
_tabs.Tabs.Tab,
|
|
5724
5725
|
{
|
|
5725
5726
|
"data-slot": "tabs-trigger",
|
|
5726
|
-
className:
|
|
5727
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
5727
5728
|
"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",
|
|
5728
5729
|
"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",
|
|
5729
5730
|
"data-active:bg-background dark:data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 data-active:text-foreground",
|
|
@@ -5740,7 +5741,7 @@ function TabsContent({ className, ...props }) {
|
|
|
5740
5741
|
_tabs.Tabs.Panel,
|
|
5741
5742
|
{
|
|
5742
5743
|
"data-slot": "tabs-content",
|
|
5743
|
-
className:
|
|
5744
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "text-xs/relaxed flex-1 outline-none", className),
|
|
5744
5745
|
...props
|
|
5745
5746
|
}
|
|
5746
5747
|
);
|
|
@@ -5781,7 +5782,7 @@ function Toggle({
|
|
|
5781
5782
|
_toggle.Toggle,
|
|
5782
5783
|
{
|
|
5783
5784
|
"data-slot": "toggle",
|
|
5784
|
-
className:
|
|
5785
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, toggleVariants({ variant, size, className })),
|
|
5785
5786
|
...props
|
|
5786
5787
|
}
|
|
5787
5788
|
);
|
|
@@ -6250,7 +6251,7 @@ var KanbanBoard = React9.forwardRef((props, forwardedRef) => {
|
|
|
6250
6251
|
"data-slot": "kanban-board",
|
|
6251
6252
|
...boardProps,
|
|
6252
6253
|
ref: forwardedRef,
|
|
6253
|
-
className:
|
|
6254
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
6254
6255
|
"flex size-full gap-4",
|
|
6255
6256
|
context.orientation === "horizontal" ? "flex-row" : "flex-col",
|
|
6256
6257
|
className
|
|
@@ -6289,7 +6290,7 @@ var KanbanColumn = React9.forwardRef((props, forwardedRef) => {
|
|
|
6289
6290
|
disabled,
|
|
6290
6291
|
animateLayoutChanges
|
|
6291
6292
|
});
|
|
6292
|
-
const composedRef =
|
|
6293
|
+
const composedRef = _chunkKYG2PIRBjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
6293
6294
|
if (disabled) return;
|
|
6294
6295
|
setNodeRef(node);
|
|
6295
6296
|
});
|
|
@@ -6333,7 +6334,7 @@ var KanbanColumn = React9.forwardRef((props, forwardedRef) => {
|
|
|
6333
6334
|
...asHandle && !disabled ? listeners : {},
|
|
6334
6335
|
ref: composedRef,
|
|
6335
6336
|
style: composedStyle,
|
|
6336
|
-
className:
|
|
6337
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
6337
6338
|
"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",
|
|
6338
6339
|
{
|
|
6339
6340
|
"touch-none select-none": asHandle,
|
|
@@ -6356,7 +6357,7 @@ var KanbanColumnHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
6356
6357
|
const context = useKanbanContext(COLUMN_NAME);
|
|
6357
6358
|
const columnContext = useKanbanColumnContext(COLUMN_HANDLE_NAME);
|
|
6358
6359
|
const isDisabled = _nullishCoalesce(disabled, () => ( columnContext.disabled));
|
|
6359
|
-
const composedRef =
|
|
6360
|
+
const composedRef = _chunkKYG2PIRBjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
6360
6361
|
if (isDisabled) return;
|
|
6361
6362
|
columnContext.setActivatorNodeRef(node);
|
|
6362
6363
|
});
|
|
@@ -6373,7 +6374,7 @@ var KanbanColumnHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
6373
6374
|
...isDisabled ? {} : columnContext.attributes,
|
|
6374
6375
|
...isDisabled ? {} : columnContext.listeners,
|
|
6375
6376
|
ref: composedRef,
|
|
6376
|
-
className:
|
|
6377
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
6377
6378
|
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
6378
6379
|
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
6379
6380
|
className
|
|
@@ -6409,7 +6410,7 @@ var KanbanItem = React9.forwardRef((props, forwardedRef) => {
|
|
|
6409
6410
|
if (value === "") {
|
|
6410
6411
|
throw new Error(`\`${ITEM_NAME}\` value cannot be an empty string`);
|
|
6411
6412
|
}
|
|
6412
|
-
const composedRef =
|
|
6413
|
+
const composedRef = _chunkKYG2PIRBjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
6413
6414
|
if (disabled) return;
|
|
6414
6415
|
setNodeRef(node);
|
|
6415
6416
|
});
|
|
@@ -6444,7 +6445,7 @@ var KanbanItem = React9.forwardRef((props, forwardedRef) => {
|
|
|
6444
6445
|
...asHandle && !disabled ? listeners : {},
|
|
6445
6446
|
ref: composedRef,
|
|
6446
6447
|
style: composedStyle,
|
|
6447
|
-
className:
|
|
6448
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
6448
6449
|
"focus-visible:ring-ring focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden",
|
|
6449
6450
|
{
|
|
6450
6451
|
"touch-none select-none": asHandle,
|
|
@@ -6465,7 +6466,7 @@ var KanbanItemHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
6465
6466
|
const context = useKanbanContext(ITEM_HANDLE_NAME);
|
|
6466
6467
|
const itemContext = useKanbanItemContext(ITEM_HANDLE_NAME);
|
|
6467
6468
|
const isDisabled = _nullishCoalesce(disabled, () => ( itemContext.disabled));
|
|
6468
|
-
const composedRef =
|
|
6469
|
+
const composedRef = _chunkKYG2PIRBjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
6469
6470
|
if (isDisabled) return;
|
|
6470
6471
|
itemContext.setActivatorNodeRef(node);
|
|
6471
6472
|
});
|
|
@@ -6482,7 +6483,7 @@ var KanbanItemHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
6482
6483
|
...isDisabled ? {} : itemContext.attributes,
|
|
6483
6484
|
...isDisabled ? {} : itemContext.listeners,
|
|
6484
6485
|
ref: composedRef,
|
|
6485
|
-
className:
|
|
6486
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
6486
6487
|
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
6487
6488
|
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
6488
6489
|
className
|
|
@@ -6517,7 +6518,7 @@ function KanbanOverlay(props) {
|
|
|
6517
6518
|
{
|
|
6518
6519
|
dropAnimation,
|
|
6519
6520
|
modifiers: context.modifiers,
|
|
6520
|
-
className:
|
|
6521
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, !context.flatCursor && "cursor-grabbing"),
|
|
6521
6522
|
...overlayProps,
|
|
6522
6523
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, KanbanOverlayContext.Provider, { value: true, children: context.activeId && children ? typeof children === "function" ? children({
|
|
6523
6524
|
value: context.activeId,
|
|
@@ -6534,8 +6535,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, KanbanOverlay, "KanbanOverlay");
|
|
|
6534
6535
|
|
|
6535
6536
|
|
|
6536
6537
|
var Link = React10.forwardRef(({ className, href, children, ...props }, ref) => {
|
|
6537
|
-
const NextIntlLink =
|
|
6538
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NextIntlLink, { prefetch: false, ref, href, className:
|
|
6538
|
+
const NextIntlLink = _chunkNPNKFWV2js.getI18nLink.call(void 0, );
|
|
6539
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NextIntlLink, { prefetch: false, ref, href, className: _chunkKYG2PIRBjs.cn.call(void 0, `font-medium`, className), ...props, children });
|
|
6539
6540
|
});
|
|
6540
6541
|
Link.displayName = "Link";
|
|
6541
6542
|
|
|
@@ -6632,7 +6633,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6632
6633
|
{
|
|
6633
6634
|
...props,
|
|
6634
6635
|
onClick: handleTogglePopover,
|
|
6635
|
-
className:
|
|
6636
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
6636
6637
|
"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",
|
|
6637
6638
|
className
|
|
6638
6639
|
),
|
|
@@ -6644,7 +6645,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6644
6645
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
6645
6646
|
Badge,
|
|
6646
6647
|
{
|
|
6647
|
-
className:
|
|
6648
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, isAnimating ? "animate-bounce" : "", multiSelectVariants({ variant })),
|
|
6648
6649
|
style: { animationDuration: `${animation}s` },
|
|
6649
6650
|
children: [
|
|
6650
6651
|
IconComponent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: "mr-2 h-4 w-4" }),
|
|
@@ -6667,7 +6668,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6667
6668
|
selectedValues.length > maxCount && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
6668
6669
|
Badge,
|
|
6669
6670
|
{
|
|
6670
|
-
className:
|
|
6671
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
6671
6672
|
"text-foreground border-foreground/1 bg-transparent hover:bg-transparent",
|
|
6672
6673
|
isAnimating ? "animate-bounce" : "",
|
|
6673
6674
|
multiSelectVariants({ variant })
|
|
@@ -6731,7 +6732,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6731
6732
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6732
6733
|
"div",
|
|
6733
6734
|
{
|
|
6734
|
-
className:
|
|
6735
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
6735
6736
|
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
6736
6737
|
selectedValues.length === options.length ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
6737
6738
|
),
|
|
@@ -6754,7 +6755,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6754
6755
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6755
6756
|
"div",
|
|
6756
6757
|
{
|
|
6757
|
-
className:
|
|
6758
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
6758
6759
|
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
6759
6760
|
isSelected ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
6760
6761
|
),
|
|
@@ -6789,7 +6790,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6789
6790
|
animation > 0 && selectedValues.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6790
6791
|
_lucidereact.WandSparkles,
|
|
6791
6792
|
{
|
|
6792
|
-
className:
|
|
6793
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
6793
6794
|
"text-foreground bg-background my-2 h-3 w-3 cursor-pointer",
|
|
6794
6795
|
isAnimating ? "" : "text-muted-foreground"
|
|
6795
6796
|
),
|
|
@@ -6864,10 +6865,10 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserAvatarEditor, "UserAvatarEditor");
|
|
|
6864
6865
|
function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
6865
6866
|
const { currentUser, company } = useCurrentUserContext();
|
|
6866
6867
|
const generateUrl = usePageUrlGenerator();
|
|
6867
|
-
const router =
|
|
6868
|
+
const router = _chunkNPNKFWV2js.useI18nRouter.call(void 0, );
|
|
6868
6869
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
6869
6870
|
let cId;
|
|
6870
|
-
if (_optionalChain([currentUser, 'optionalAccess', _128 => _128.roles, 'access', _129 => _129.find, 'call', _130 => _130((role) => role.id ===
|
|
6871
|
+
if (_optionalChain([currentUser, 'optionalAccess', _128 => _128.roles, 'access', _129 => _129.find, 'call', _130 => _130((role) => role.id === _chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator)]) && companyId) {
|
|
6871
6872
|
cId = companyId;
|
|
6872
6873
|
} else {
|
|
6873
6874
|
if (!company) return;
|
|
@@ -6877,8 +6878,8 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
6877
6878
|
CommonDeleter,
|
|
6878
6879
|
{
|
|
6879
6880
|
type: `users`,
|
|
6880
|
-
deleteFunction: () =>
|
|
6881
|
-
() => onDeleted ? onDeleted() : router.push(generateUrl({ page:
|
|
6881
|
+
deleteFunction: () => _chunkKYG2PIRBjs.UserService.delete({ userId: user.id, companyId: cId }).then(
|
|
6882
|
+
() => onDeleted ? onDeleted() : router.push(generateUrl({ page: _chunkKYG2PIRBjs.Modules.User }))
|
|
6882
6883
|
)
|
|
6883
6884
|
}
|
|
6884
6885
|
);
|
|
@@ -6886,7 +6887,7 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
6886
6887
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleterInternal, "UserDeleterInternal");
|
|
6887
6888
|
function UserDeleter(props) {
|
|
6888
6889
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
6889
|
-
if (!hasPermissionToModule({ module:
|
|
6890
|
+
if (!hasPermissionToModule({ module: _chunkKYG2PIRBjs.Modules.User, action: "delete" /* Delete */, data: props.user })) return null;
|
|
6890
6891
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserDeleterInternal, { ...props });
|
|
6891
6892
|
}
|
|
6892
6893
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleter, "UserDeleter");
|
|
@@ -6909,7 +6910,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6909
6910
|
} = useCurrentUserContext();
|
|
6910
6911
|
const { company: companyFromContext } = useCompanyContext();
|
|
6911
6912
|
const generateUrl = usePageUrlGenerator();
|
|
6912
|
-
const router =
|
|
6913
|
+
const router = _chunkNPNKFWV2js.useI18nRouter.call(void 0, );
|
|
6913
6914
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
6914
6915
|
const [roles, setRoles] = _react.useState.call(void 0, []);
|
|
6915
6916
|
const [file, setFile] = _react.useState.call(void 0, null);
|
|
@@ -6950,7 +6951,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6950
6951
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
6951
6952
|
if (!user) {
|
|
6952
6953
|
try {
|
|
6953
|
-
const existingUser = await
|
|
6954
|
+
const existingUser = await _chunkKYG2PIRBjs.UserService.findByEmail({ email: values.email });
|
|
6954
6955
|
if (existingUser) {
|
|
6955
6956
|
form.setError("email", {
|
|
6956
6957
|
type: "manual",
|
|
@@ -6963,7 +6964,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6963
6964
|
}
|
|
6964
6965
|
}
|
|
6965
6966
|
if (values.avatar && contentType) {
|
|
6966
|
-
const s3 = await
|
|
6967
|
+
const s3 = await _chunkKYG2PIRBjs.S3Service.getPreSignedUrl({
|
|
6967
6968
|
key: values.avatar,
|
|
6968
6969
|
contentType,
|
|
6969
6970
|
isPublic: true
|
|
@@ -6989,16 +6990,16 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6989
6990
|
adminCreated
|
|
6990
6991
|
};
|
|
6991
6992
|
try {
|
|
6992
|
-
const updatedUser = user ? await
|
|
6993
|
+
const updatedUser = user ? await _chunkKYG2PIRBjs.UserService.update(payload) : await _chunkKYG2PIRBjs.UserService.create(payload);
|
|
6993
6994
|
if (_optionalChain([currentUser, 'optionalAccess', _141 => _141.id]) === updatedUser.id) setUser(updatedUser);
|
|
6994
6995
|
if (onRevalidate) {
|
|
6995
|
-
await onRevalidate(generateUrl({ page:
|
|
6996
|
+
await onRevalidate(generateUrl({ page: _chunkKYG2PIRBjs.Modules.User, id: updatedUser.id, language: `[locale]` }));
|
|
6996
6997
|
}
|
|
6997
6998
|
if (propagateChanges) {
|
|
6998
6999
|
propagateChanges(updatedUser);
|
|
6999
7000
|
setOpen(false);
|
|
7000
7001
|
} else {
|
|
7001
|
-
router.push(generateUrl({ page:
|
|
7002
|
+
router.push(generateUrl({ page: _chunkKYG2PIRBjs.Modules.User, id: updatedUser.id }));
|
|
7002
7003
|
}
|
|
7003
7004
|
} catch (error) {
|
|
7004
7005
|
errorToast({ title: user ? t(`common.errors.update`) : t(`common.errors.create`), error });
|
|
@@ -7006,14 +7007,14 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
7006
7007
|
}, "onSubmit");
|
|
7007
7008
|
_react.useEffect.call(void 0, () => {
|
|
7008
7009
|
async function fetchRoles() {
|
|
7009
|
-
const roles2 = await
|
|
7010
|
+
const roles2 = await _chunkKYG2PIRBjs.RoleService.findAllRoles({});
|
|
7010
7011
|
const availableRoles = roles2.filter(
|
|
7011
|
-
(role) => role.id !==
|
|
7012
|
+
(role) => role.id !== _chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _142 => _142.features, 'access', _143 => _143.some, 'call', _144 => _144((feature) => feature.id === _optionalChain([role, 'access', _145 => _145.requiredFeature, 'optionalAccess', _146 => _146.id]))]))
|
|
7012
7013
|
);
|
|
7013
7014
|
setRoles(availableRoles);
|
|
7014
7015
|
}
|
|
7015
7016
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchRoles, "fetchRoles");
|
|
7016
|
-
if (open && (company || _optionalChain([currentUser, 'optionalAccess', _147 => _147.roles, 'access', _148 => _148.find, 'call', _149 => _149((role) => role.id ===
|
|
7017
|
+
if (open && (company || _optionalChain([currentUser, 'optionalAccess', _147 => _147.roles, 'access', _148 => _148.find, 'call', _149 => _149((role) => role.id === _chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator)])) && roles.length === 0)
|
|
7017
7018
|
fetchRoles();
|
|
7018
7019
|
}, [company, open]);
|
|
7019
7020
|
_react.useEffect.call(void 0, () => {
|
|
@@ -7034,7 +7035,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
7034
7035
|
setContentType(null);
|
|
7035
7036
|
}
|
|
7036
7037
|
}, [file]);
|
|
7037
|
-
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _150 => _150.id]) === _optionalChain([user, 'optionalAccess', _151 => _151.id]) && hasRole(
|
|
7038
|
+
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _150 => _150.id]) === _optionalChain([user, 'optionalAccess', _151 => _151.id]) && hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkKYG2PIRBjs.Modules.User, action: "update" /* Update */ }) || hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator));
|
|
7038
7039
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
7039
7040
|
trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTrigger, { children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!user }),
|
|
7040
7041
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -7121,7 +7122,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
7121
7122
|
] })
|
|
7122
7123
|
] }),
|
|
7123
7124
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-end gap-x-4", children: [
|
|
7124
|
-
user && _optionalChain([currentUser, 'optionalAccess', _153 => _153.roles, 'access', _154 => _154.find, 'call', _155 => _155((role) => role.id ===
|
|
7125
|
+
user && _optionalChain([currentUser, 'optionalAccess', _153 => _153.roles, 'access', _154 => _154.find, 'call', _155 => _155((role) => role.id === _chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator)]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7125
7126
|
UserDeleter,
|
|
7126
7127
|
{
|
|
7127
7128
|
companyId: _optionalChain([user, 'access', _156 => _156.company, 'optionalAccess', _157 => _157.id]),
|
|
@@ -7144,7 +7145,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserEditorInternal, "UserEditorInternal");
|
|
|
7144
7145
|
function UserEditor(props) {
|
|
7145
7146
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
7146
7147
|
if (!hasPermissionToModule({
|
|
7147
|
-
module:
|
|
7148
|
+
module: _chunkKYG2PIRBjs.Modules.User,
|
|
7148
7149
|
action: props.user ? "update" /* Update */ : "create" /* Create */,
|
|
7149
7150
|
data: props.user
|
|
7150
7151
|
}))
|
|
@@ -7231,7 +7232,7 @@ function CommonAssociationCommandDialog({
|
|
|
7231
7232
|
_chunk7QVYU63Ejs.__name.call(void 0, CommonAssociationCommandDialog, "CommonAssociationCommandDialog");
|
|
7232
7233
|
var triggerAssociationToast = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
7233
7234
|
if (params.level) {
|
|
7234
|
-
|
|
7235
|
+
_chunkKYG2PIRBjs.showToast.call(void 0,
|
|
7235
7236
|
params.t(`common.association.label`, {
|
|
7236
7237
|
source: params.source,
|
|
7237
7238
|
destination: params.destination
|
|
@@ -7247,7 +7248,7 @@ var triggerAssociationToast = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
7247
7248
|
}
|
|
7248
7249
|
);
|
|
7249
7250
|
} else {
|
|
7250
|
-
|
|
7251
|
+
_chunkKYG2PIRBjs.showToast.call(void 0,
|
|
7251
7252
|
params.t(`common.association.label`, {
|
|
7252
7253
|
source: params.source,
|
|
7253
7254
|
destination: params.destination
|
|
@@ -7299,7 +7300,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ErrorDetails, "ErrorDetails");
|
|
|
7299
7300
|
|
|
7300
7301
|
// src/components/errors/errorToast.ts
|
|
7301
7302
|
function errorToast(params) {
|
|
7302
|
-
|
|
7303
|
+
_chunkKYG2PIRBjs.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess', _158 => _158.title]), () => ( "Error")), {
|
|
7303
7304
|
description: params.error instanceof Error ? params.error.message : String(params.error)
|
|
7304
7305
|
});
|
|
7305
7306
|
}
|
|
@@ -7308,8 +7309,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, errorToast, "errorToast");
|
|
|
7308
7309
|
// src/components/forms/CommonDeleter.tsx
|
|
7309
7310
|
|
|
7310
7311
|
function CommonDeleter({ deleteFunction, redirectTo, type, forceShow }) {
|
|
7311
|
-
const t =
|
|
7312
|
-
const router =
|
|
7312
|
+
const t = _chunkNPNKFWV2js.useI18nTranslations.call(void 0, );
|
|
7313
|
+
const router = _chunkNPNKFWV2js.useI18nRouter.call(void 0, );
|
|
7313
7314
|
const [open, setOpen] = _react.useState.call(void 0, forceShow || false);
|
|
7314
7315
|
const [isDeleting, setIsDeleting] = _react.useState.call(void 0, false);
|
|
7315
7316
|
const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
@@ -7439,8 +7440,8 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
7439
7440
|
align = "start",
|
|
7440
7441
|
className
|
|
7441
7442
|
}) => {
|
|
7442
|
-
const locale =
|
|
7443
|
-
const dateFnsLocale =
|
|
7443
|
+
const locale = _chunkNPNKFWV2js.useI18nLocale.call(void 0, );
|
|
7444
|
+
const dateFnsLocale = _chunkNPNKFWV2js.useI18nDateFnsLocale.call(void 0, );
|
|
7444
7445
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
7445
7446
|
const [displayMonth, setDisplayMonth] = _react.useState.call(void 0, () => value || /* @__PURE__ */ new Date());
|
|
7446
7447
|
const dateFormatter = _react.useMemo.call(void 0,
|
|
@@ -7503,7 +7504,7 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
7503
7504
|
}, "handleClear");
|
|
7504
7505
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open: isOpen, onOpenChange: setIsOpen, children: [
|
|
7505
7506
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { children }),
|
|
7506
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className:
|
|
7507
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className: _chunkKYG2PIRBjs.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: [
|
|
7507
7508
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative mb-3", children: [
|
|
7508
7509
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7509
7510
|
Input,
|
|
@@ -7619,13 +7620,13 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
7619
7620
|
setDate(range);
|
|
7620
7621
|
}
|
|
7621
7622
|
}, "handleSelect");
|
|
7622
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
7623
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkKYG2PIRBjs.cn.call(void 0, "grid gap-2"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, children: [
|
|
7623
7624
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7624
7625
|
Button,
|
|
7625
7626
|
{
|
|
7626
7627
|
id: "date",
|
|
7627
7628
|
variant: "outline",
|
|
7628
|
-
className:
|
|
7629
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
|
|
7629
7630
|
children: [
|
|
7630
7631
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
|
|
7631
7632
|
_optionalChain([date, 'optionalAccess', _168 => _168.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -7749,7 +7750,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
7749
7750
|
(acceptedFiles, rejectedFiles) => {
|
|
7750
7751
|
const files = acceptedFiles;
|
|
7751
7752
|
if (!files) {
|
|
7752
|
-
|
|
7753
|
+
_chunkKYG2PIRBjs.showError.call(void 0, t("common.errors.file"), {
|
|
7753
7754
|
description: t("common.errors.file_large")
|
|
7754
7755
|
});
|
|
7755
7756
|
return;
|
|
@@ -7767,13 +7768,13 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
7767
7768
|
if (rejectedFiles.length > 0) {
|
|
7768
7769
|
for (let i = 0; i < rejectedFiles.length; i++) {
|
|
7769
7770
|
if (_optionalChain([rejectedFiles, 'access', _174 => _174[i], 'access', _175 => _175.errors, 'access', _176 => _176[0], 'optionalAccess', _177 => _177.code]) === "file-too-large") {
|
|
7770
|
-
|
|
7771
|
+
_chunkKYG2PIRBjs.showError.call(void 0, t("common.errors.file"), {
|
|
7771
7772
|
description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
|
|
7772
7773
|
});
|
|
7773
7774
|
break;
|
|
7774
7775
|
}
|
|
7775
7776
|
if (_optionalChain([rejectedFiles, 'access', _178 => _178[i], 'access', _179 => _179.errors, 'access', _180 => _180[0], 'optionalAccess', _181 => _181.message])) {
|
|
7776
|
-
|
|
7777
|
+
_chunkKYG2PIRBjs.showError.call(void 0, t(`common.errors.file`), {
|
|
7777
7778
|
description: rejectedFiles[i].errors[0].message
|
|
7778
7779
|
});
|
|
7779
7780
|
break;
|
|
@@ -7817,7 +7818,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
7817
7818
|
ref,
|
|
7818
7819
|
tabIndex: 0,
|
|
7819
7820
|
onKeyDownCapture: handleKeyDown,
|
|
7820
|
-
className:
|
|
7821
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
7821
7822
|
"grid w-full overflow-hidden focus:outline-none",
|
|
7822
7823
|
className,
|
|
7823
7824
|
// Original className from props
|
|
@@ -7841,12 +7842,12 @@ var FileUploaderContent = _react.forwardRef.call(void 0,
|
|
|
7841
7842
|
({ children, className, ...props }, ref) => {
|
|
7842
7843
|
const { orientation } = useFileUpload();
|
|
7843
7844
|
const containerRef = _react.useRef.call(void 0, null);
|
|
7844
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
7845
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkKYG2PIRBjs.cn.call(void 0, "w-full px-1"), ref: containerRef, "aria-description": "content file holder", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7845
7846
|
"div",
|
|
7846
7847
|
{
|
|
7847
7848
|
...props,
|
|
7848
7849
|
ref,
|
|
7849
|
-
className:
|
|
7850
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
7850
7851
|
"flex gap-1 rounded-xl",
|
|
7851
7852
|
orientation === "horizontal" ? "flex-raw flex-wrap" : "flex-col",
|
|
7852
7853
|
className
|
|
@@ -7866,7 +7867,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
7866
7867
|
"div",
|
|
7867
7868
|
{
|
|
7868
7869
|
ref,
|
|
7869
|
-
className:
|
|
7870
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
7870
7871
|
buttonVariants({ variant: "ghost" }),
|
|
7871
7872
|
"relative h-6 cursor-pointer justify-between p-1",
|
|
7872
7873
|
className,
|
|
@@ -7879,7 +7880,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
7879
7880
|
"button",
|
|
7880
7881
|
{
|
|
7881
7882
|
type: "button",
|
|
7882
|
-
className:
|
|
7883
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "absolute", direction === "rtl" ? "top-1 left-1" : "top-1 right-1"),
|
|
7883
7884
|
onClick: () => removeFileFromSet(index),
|
|
7884
7885
|
children: [
|
|
7885
7886
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: t(`common.remove_item`, { index }) }),
|
|
@@ -7903,12 +7904,12 @@ var FileInput = _react.forwardRef.call(void 0,
|
|
|
7903
7904
|
{
|
|
7904
7905
|
ref,
|
|
7905
7906
|
...props,
|
|
7906
|
-
className:
|
|
7907
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, `relative w-full ${isLOF ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`, className),
|
|
7907
7908
|
children: [
|
|
7908
7909
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7909
7910
|
"div",
|
|
7910
7911
|
{
|
|
7911
|
-
className:
|
|
7912
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
7912
7913
|
"w-full rounded-lg duration-300 ease-in-out",
|
|
7913
7914
|
// Simpler border logic: if parent is drag-active, it controls the border.
|
|
7914
7915
|
// Otherwise, FileInput can show its own accept/reject/default border.
|
|
@@ -8019,8 +8020,8 @@ function FormDate({
|
|
|
8019
8020
|
onChange,
|
|
8020
8021
|
isRequired = false
|
|
8021
8022
|
}) {
|
|
8022
|
-
const locale =
|
|
8023
|
-
const dateFnsLocale =
|
|
8023
|
+
const locale = _chunkNPNKFWV2js.useI18nLocale.call(void 0, );
|
|
8024
|
+
const dateFnsLocale = _chunkNPNKFWV2js.useI18nDateFnsLocale.call(void 0, );
|
|
8024
8025
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
8025
8026
|
const [displayMonth, setDisplayMonth] = _react.useState.call(void 0, () => {
|
|
8026
8027
|
const currentValue = form.getValues(id);
|
|
@@ -8189,9 +8190,9 @@ function FormDateTime({
|
|
|
8189
8190
|
allowEmpty
|
|
8190
8191
|
}) {
|
|
8191
8192
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
8192
|
-
const t =
|
|
8193
|
-
const locale =
|
|
8194
|
-
const dateFnsLocale =
|
|
8193
|
+
const t = _chunkNPNKFWV2js.useI18nTranslations.call(void 0, );
|
|
8194
|
+
const locale = _chunkNPNKFWV2js.useI18nLocale.call(void 0, );
|
|
8195
|
+
const dateFnsLocale = _chunkNPNKFWV2js.useI18nDateFnsLocale.call(void 0, );
|
|
8195
8196
|
const dateTimeFormatter = _react.useMemo.call(void 0,
|
|
8196
8197
|
() => new Intl.DateTimeFormat(locale, {
|
|
8197
8198
|
year: "numeric",
|
|
@@ -8242,7 +8243,7 @@ function FormDateTime({
|
|
|
8242
8243
|
Button,
|
|
8243
8244
|
{
|
|
8244
8245
|
variant: "outline",
|
|
8245
|
-
className:
|
|
8246
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "w-full pl-3 text-left font-normal", !field.value && "text-muted-foreground")
|
|
8246
8247
|
}
|
|
8247
8248
|
),
|
|
8248
8249
|
children: [
|
|
@@ -8430,7 +8431,7 @@ var PasswordInput = React12.forwardRef(({ className, type, ...props }, ref) => {
|
|
|
8430
8431
|
const disabled = props.value === "" || props.value === void 0 || props.disabled;
|
|
8431
8432
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8432
8433
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
8433
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className:
|
|
8434
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className: _chunkKYG2PIRBjs.cn.call(void 0, "", className), ref, ...props }),
|
|
8434
8435
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8435
8436
|
Button,
|
|
8436
8437
|
{
|
|
@@ -8624,7 +8625,7 @@ function FormPlaceAutocomplete({
|
|
|
8624
8625
|
placeholder,
|
|
8625
8626
|
disabled,
|
|
8626
8627
|
"data-testid": testId,
|
|
8627
|
-
className:
|
|
8628
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "w-full", className)
|
|
8628
8629
|
}
|
|
8629
8630
|
) }) });
|
|
8630
8631
|
}
|
|
@@ -8643,7 +8644,7 @@ function FormPlaceAutocomplete({
|
|
|
8643
8644
|
placeholder,
|
|
8644
8645
|
disabled: disabled || !apiKey,
|
|
8645
8646
|
"data-testid": testId,
|
|
8646
|
-
className:
|
|
8647
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "w-full", className)
|
|
8647
8648
|
}
|
|
8648
8649
|
),
|
|
8649
8650
|
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" }) }),
|
|
@@ -8775,7 +8776,7 @@ function FormTextarea({
|
|
|
8775
8776
|
Textarea,
|
|
8776
8777
|
{
|
|
8777
8778
|
...field,
|
|
8778
|
-
className:
|
|
8779
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "min-h-96 w-full", className),
|
|
8779
8780
|
disabled: form.formState.isSubmitting,
|
|
8780
8781
|
placeholder,
|
|
8781
8782
|
"data-testid": testId
|
|
@@ -8890,10 +8891,10 @@ function UserMultiSelect({
|
|
|
8890
8891
|
const data = useDataListRetriever({
|
|
8891
8892
|
ready: !!company,
|
|
8892
8893
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
8893
|
-
return
|
|
8894
|
+
return _chunkKYG2PIRBjs.UserService.findAllUsers(params);
|
|
8894
8895
|
}, "retriever"),
|
|
8895
8896
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _199 => _199.id]) },
|
|
8896
|
-
module:
|
|
8897
|
+
module: _chunkKYG2PIRBjs.Modules.User
|
|
8897
8898
|
});
|
|
8898
8899
|
_react.useEffect.call(void 0, () => {
|
|
8899
8900
|
if (company) data.setReady(true);
|
|
@@ -8990,7 +8991,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
8990
8991
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8991
8992
|
const reactivateUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
8992
8993
|
try {
|
|
8993
|
-
const updatedUser = await
|
|
8994
|
+
const updatedUser = await _chunkKYG2PIRBjs.UserService.reactivate({ userId: user.id });
|
|
8994
8995
|
setOpen(false);
|
|
8995
8996
|
propagateChanges(updatedUser);
|
|
8996
8997
|
} catch (error) {
|
|
@@ -9028,7 +9029,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
9028
9029
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivatorInterface, "UserReactivatorInterface");
|
|
9029
9030
|
function UserReactivator(props) {
|
|
9030
9031
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9031
|
-
if (!hasPermissionToModule({ module:
|
|
9032
|
+
if (!hasPermissionToModule({ module: _chunkKYG2PIRBjs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
9032
9033
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserReactivatorInterface, { ...props });
|
|
9033
9034
|
}
|
|
9034
9035
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivator, "UserReactivator");
|
|
@@ -9043,9 +9044,9 @@ function UserResentInvitationEmailInternal({ user }) {
|
|
|
9043
9044
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9044
9045
|
const sendInvitationEmail = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
9045
9046
|
try {
|
|
9046
|
-
await
|
|
9047
|
+
await _chunkKYG2PIRBjs.UserService.sendInvitation({ userId: user.id, companyId: user.company.id });
|
|
9047
9048
|
setOpen(false);
|
|
9048
|
-
|
|
9049
|
+
_chunkKYG2PIRBjs.showToast.call(void 0, t(`user.resend_activation.email_sent`), {
|
|
9049
9050
|
description: t(`user.resend_activation.email_sent_description`, { email: user.email })
|
|
9050
9051
|
});
|
|
9051
9052
|
} catch (error) {
|
|
@@ -9083,7 +9084,7 @@ function UserResentInvitationEmailInternal({ user }) {
|
|
|
9083
9084
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmailInternal, "UserResentInvitationEmailInternal");
|
|
9084
9085
|
function UserResentInvitationEmail(props) {
|
|
9085
9086
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9086
|
-
if (!hasPermissionToModule({ module:
|
|
9087
|
+
if (!hasPermissionToModule({ module: _chunkKYG2PIRBjs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
9087
9088
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserResentInvitationEmailInternal, { ...props });
|
|
9088
9089
|
}
|
|
9089
9090
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmail, "UserResentInvitationEmail");
|
|
@@ -9114,22 +9115,22 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
|
|
|
9114
9115
|
}, "getAvatar");
|
|
9115
9116
|
const content = showLink === false ? (
|
|
9116
9117
|
// If showLink is explicitly false, never show a link
|
|
9117
|
-
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
9118
|
+
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkKYG2PIRBjs.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className), children: [
|
|
9118
9119
|
getAvatar(),
|
|
9119
9120
|
user.name
|
|
9120
9121
|
] }) : getAvatar()
|
|
9121
9122
|
) : showFull ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9122
9123
|
Link,
|
|
9123
9124
|
{
|
|
9124
|
-
href: generateUrl({ page:
|
|
9125
|
-
className:
|
|
9125
|
+
href: generateUrl({ page: _chunkKYG2PIRBjs.Modules.User, id: user.id }),
|
|
9126
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className),
|
|
9126
9127
|
onClick: (e) => e.stopPropagation(),
|
|
9127
9128
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center gap-x-2", children: [
|
|
9128
9129
|
getAvatar(),
|
|
9129
9130
|
user.name
|
|
9130
9131
|
] })
|
|
9131
9132
|
}
|
|
9132
|
-
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page:
|
|
9133
|
+
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunkKYG2PIRBjs.Modules.User, id: user.id }), className, children: getAvatar() }) : getAvatar();
|
|
9133
9134
|
if (!showTooltip) {
|
|
9134
9135
|
return content;
|
|
9135
9136
|
}
|
|
@@ -9150,10 +9151,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
9150
9151
|
const [isSearching, setIsSearching] = _react.useState.call(void 0, false);
|
|
9151
9152
|
const data = useDataListRetriever({
|
|
9152
9153
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
9153
|
-
return
|
|
9154
|
+
return _chunkKYG2PIRBjs.UserService.findMany(params);
|
|
9154
9155
|
}, "retriever"),
|
|
9155
9156
|
retrieverParams: {},
|
|
9156
|
-
module:
|
|
9157
|
+
module: _chunkKYG2PIRBjs.Modules.User
|
|
9157
9158
|
});
|
|
9158
9159
|
const search = _react.useCallback.call(void 0,
|
|
9159
9160
|
async (searchedTerm) => {
|
|
@@ -9252,24 +9253,24 @@ var UserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
9252
9253
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9253
9254
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9254
9255
|
const [user, setUser] = _react.useState.call(void 0,
|
|
9255
|
-
dehydratedUser ?
|
|
9256
|
+
dehydratedUser ? _chunkKYG2PIRBjs.rehydrate.call(void 0, _chunkKYG2PIRBjs.Modules.User, dehydratedUser) : void 0
|
|
9256
9257
|
);
|
|
9257
9258
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
9258
9259
|
const response = [];
|
|
9259
|
-
if (hasPermissionToModule({ module:
|
|
9260
|
+
if (hasPermissionToModule({ module: _chunkKYG2PIRBjs.Modules.User, action: "update" /* Update */ })) {
|
|
9260
9261
|
response.push({
|
|
9261
9262
|
name: t(`common.settings`),
|
|
9262
9263
|
href: generateUrl({ page: `/settings` })
|
|
9263
9264
|
});
|
|
9264
9265
|
response.push({
|
|
9265
9266
|
name: t(`entities.users`, { count: 2 }),
|
|
9266
|
-
href: generateUrl({ page: `/settings`, id:
|
|
9267
|
+
href: generateUrl({ page: `/settings`, id: _chunkKYG2PIRBjs.Modules.User.pageUrl })
|
|
9267
9268
|
});
|
|
9268
9269
|
}
|
|
9269
9270
|
if (user)
|
|
9270
9271
|
response.push({
|
|
9271
9272
|
name: `${user.name}${user.isDeleted ? ` (${t(`user.deleted`)})` : ""}`,
|
|
9272
|
-
href: generateUrl({ page:
|
|
9273
|
+
href: generateUrl({ page: _chunkKYG2PIRBjs.Modules.User, id: user.id })
|
|
9273
9274
|
});
|
|
9274
9275
|
return response;
|
|
9275
9276
|
}, "breadcrumb");
|
|
@@ -9324,7 +9325,7 @@ function UserDetails({ user }) {
|
|
|
9324
9325
|
const { title } = useSharedContext();
|
|
9325
9326
|
let roles = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
9326
9327
|
if (user.roles && user.roles.length > 0) {
|
|
9327
|
-
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:
|
|
9328
|
+
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: _chunkKYG2PIRBjs.Modules.Role, id: role.id }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { className: "mr-2", variant: `default`, children: t(`role.roles`, { role: role.id.replaceAll(`-`, ``) }) }) }, role.id)) }) });
|
|
9328
9329
|
}
|
|
9329
9330
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
9330
9331
|
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,
|
|
@@ -9337,7 +9338,7 @@ function UserDetails({ user }) {
|
|
|
9337
9338
|
className: "h-auto w-full rounded-lg object-contain"
|
|
9338
9339
|
}
|
|
9339
9340
|
) }),
|
|
9340
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module:
|
|
9341
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkKYG2PIRBjs.Modules.User, type: title.type, element: title.element, functions: title.functions }),
|
|
9341
9342
|
user.isDeleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "destructive", children: t(`user.errors.deleted`) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: !user.isActivated && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "destructive", children: t(`user.errors.inactive`) }) }) }),
|
|
9342
9343
|
roles,
|
|
9343
9344
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AttributeElement, { inline: true, title: t(`user.fields.title.label`), value: user.title }),
|
|
@@ -9391,18 +9392,18 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserIndexContainer, "UserIndexContainer");
|
|
|
9391
9392
|
function UsersListContainerInternal() {
|
|
9392
9393
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9393
9394
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9394
|
-
if (!hasPermissionToModule({ module:
|
|
9395
|
+
if (!hasPermissionToModule({ module: _chunkKYG2PIRBjs.Modules.User, action: "delete" /* Delete */ })) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {});
|
|
9395
9396
|
const tabs = [
|
|
9396
9397
|
{
|
|
9397
9398
|
label: t(`entities.users`, { count: 2 }),
|
|
9398
9399
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {}),
|
|
9399
|
-
modules: [
|
|
9400
|
+
modules: [_chunkKYG2PIRBjs.Modules.Company],
|
|
9400
9401
|
action: "read" /* Read */
|
|
9401
9402
|
},
|
|
9402
9403
|
{
|
|
9403
9404
|
label: t(`user.deleted`),
|
|
9404
9405
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, { isDeleted: true }),
|
|
9405
|
-
modules: [
|
|
9406
|
+
modules: [_chunkKYG2PIRBjs.Modules.Company],
|
|
9406
9407
|
action: "update" /* Update */
|
|
9407
9408
|
}
|
|
9408
9409
|
];
|
|
@@ -9420,9 +9421,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersListContainer, "UsersListContainer");
|
|
|
9420
9421
|
function AdminUsersListInternal({ company }) {
|
|
9421
9422
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9422
9423
|
const data = useDataListRetriever({
|
|
9423
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9424
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkKYG2PIRBjs.UserService.findManyForAmin(params), "retriever"),
|
|
9424
9425
|
retrieverParams: { companyId: company.id },
|
|
9425
|
-
module:
|
|
9426
|
+
module: _chunkKYG2PIRBjs.Modules.User
|
|
9426
9427
|
});
|
|
9427
9428
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9428
9429
|
ContentListTable,
|
|
@@ -9430,7 +9431,7 @@ function AdminUsersListInternal({ company }) {
|
|
|
9430
9431
|
title: t(`entities.users`, { count: 2 }),
|
|
9431
9432
|
data,
|
|
9432
9433
|
fields: ["name" /* name */, "email" /* email */, "createdAt" /* createdAt */],
|
|
9433
|
-
tableGeneratorType:
|
|
9434
|
+
tableGeneratorType: _chunkKYG2PIRBjs.Modules.User,
|
|
9434
9435
|
functions: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserEditor, { propagateChanges: data.refresh, adminCreated: true })
|
|
9435
9436
|
}
|
|
9436
9437
|
);
|
|
@@ -9452,9 +9453,9 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
9452
9453
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9453
9454
|
const data = useDataListRetriever({
|
|
9454
9455
|
ready: !!company,
|
|
9455
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9456
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkKYG2PIRBjs.UserService.findAllUsers(params), "retriever"),
|
|
9456
9457
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _218 => _218.id]), isDeleted },
|
|
9457
|
-
module:
|
|
9458
|
+
module: _chunkKYG2PIRBjs.Modules.User
|
|
9458
9459
|
});
|
|
9459
9460
|
_react.useEffect.call(void 0, () => {
|
|
9460
9461
|
if (company) data.setReady(true);
|
|
@@ -9467,7 +9468,7 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
9467
9468
|
{
|
|
9468
9469
|
data,
|
|
9469
9470
|
fields: ["name" /* name */, "email" /* email */],
|
|
9470
|
-
tableGeneratorType:
|
|
9471
|
+
tableGeneratorType: _chunkKYG2PIRBjs.Modules.User,
|
|
9471
9472
|
functions,
|
|
9472
9473
|
title: t(`entities.users`, { count: 2 })
|
|
9473
9474
|
}
|
|
@@ -9483,7 +9484,7 @@ function ContributorsList({ content }) {
|
|
|
9483
9484
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9484
9485
|
Link,
|
|
9485
9486
|
{
|
|
9486
|
-
href: generateUrl({ page:
|
|
9487
|
+
href: generateUrl({ page: _chunkKYG2PIRBjs.Modules.User, id: content.author.id }),
|
|
9487
9488
|
onClick: (e) => e.stopPropagation(),
|
|
9488
9489
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: content.author, className: "mr-1 h-6 w-6" })
|
|
9489
9490
|
},
|
|
@@ -9492,7 +9493,7 @@ function ContributorsList({ content }) {
|
|
|
9492
9493
|
/* @__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,
|
|
9493
9494
|
Link,
|
|
9494
9495
|
{
|
|
9495
|
-
href: generateUrl({ page:
|
|
9496
|
+
href: generateUrl({ page: _chunkKYG2PIRBjs.Modules.User, id: editor.id }),
|
|
9496
9497
|
onClick: (e) => e.stopPropagation(),
|
|
9497
9498
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: editor, className: "h-5 w-5" })
|
|
9498
9499
|
},
|
|
@@ -9508,8 +9509,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContributorsList, "ContributorsList");
|
|
|
9508
9509
|
function RelevantUsersList({ id }) {
|
|
9509
9510
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9510
9511
|
const data = useDataListRetriever({
|
|
9511
|
-
module:
|
|
9512
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9512
|
+
module: _chunkKYG2PIRBjs.Modules.User,
|
|
9513
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkKYG2PIRBjs.UserService.findRelevant(params), "retriever"),
|
|
9513
9514
|
retrieverParams: { id }
|
|
9514
9515
|
});
|
|
9515
9516
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -9517,7 +9518,7 @@ function RelevantUsersList({ id }) {
|
|
|
9517
9518
|
{
|
|
9518
9519
|
data,
|
|
9519
9520
|
fields: ["name" /* name */, "email" /* email */, "relevance" /* relevance */],
|
|
9520
|
-
tableGeneratorType:
|
|
9521
|
+
tableGeneratorType: _chunkKYG2PIRBjs.Modules.User,
|
|
9521
9522
|
title: t(`common.relevant_users`)
|
|
9522
9523
|
}
|
|
9523
9524
|
);
|
|
@@ -9530,16 +9531,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RelevantUsersList, "RelevantUsersList");
|
|
|
9530
9531
|
function RoleUsersList({ role }) {
|
|
9531
9532
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9532
9533
|
const data = useDataListRetriever({
|
|
9533
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9534
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkKYG2PIRBjs.UserService.findAllUsersByRole(params), "retriever"),
|
|
9534
9535
|
retrieverParams: { roleId: role.id },
|
|
9535
|
-
module:
|
|
9536
|
+
module: _chunkKYG2PIRBjs.Modules.User
|
|
9536
9537
|
});
|
|
9537
9538
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9538
9539
|
ContentListTable,
|
|
9539
9540
|
{
|
|
9540
9541
|
data,
|
|
9541
9542
|
fields: ["name" /* name */, "email" /* email */],
|
|
9542
|
-
tableGeneratorType:
|
|
9543
|
+
tableGeneratorType: _chunkKYG2PIRBjs.Modules.User,
|
|
9543
9544
|
title: t(`entities.users`, { count: 2 })
|
|
9544
9545
|
}
|
|
9545
9546
|
);
|
|
@@ -9589,7 +9590,7 @@ function UsersList({ data, optionComponents, removeFunction, hideOptions, showRe
|
|
|
9589
9590
|
{
|
|
9590
9591
|
data,
|
|
9591
9592
|
fields: ["name" /* name */, "email" /* email */],
|
|
9592
|
-
tableGeneratorType:
|
|
9593
|
+
tableGeneratorType: _chunkKYG2PIRBjs.Modules.User,
|
|
9593
9594
|
title: t(`entities.users`, { count: 2 })
|
|
9594
9595
|
}
|
|
9595
9596
|
);
|
|
@@ -9602,8 +9603,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersList, "UsersList");
|
|
|
9602
9603
|
function UsersListByContentIds({ contentIds }) {
|
|
9603
9604
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9604
9605
|
const data = useDataListRetriever({
|
|
9605
|
-
module:
|
|
9606
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9606
|
+
module: _chunkKYG2PIRBjs.Modules.User,
|
|
9607
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkKYG2PIRBjs.UserService.findManyByContentIds(params), "retriever"),
|
|
9607
9608
|
retrieverParams: { contentIds }
|
|
9608
9609
|
});
|
|
9609
9610
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -9611,7 +9612,7 @@ function UsersListByContentIds({ contentIds }) {
|
|
|
9611
9612
|
{
|
|
9612
9613
|
data,
|
|
9613
9614
|
fields: ["name" /* name */, "email" /* email */],
|
|
9614
|
-
tableGeneratorType:
|
|
9615
|
+
tableGeneratorType: _chunkKYG2PIRBjs.Modules.User,
|
|
9615
9616
|
title: t(`common.relevant_users`)
|
|
9616
9617
|
}
|
|
9617
9618
|
);
|
|
@@ -9629,7 +9630,7 @@ function CompanyDetails() {
|
|
|
9629
9630
|
const { company } = useCompanyContext();
|
|
9630
9631
|
if (!company) return null;
|
|
9631
9632
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
9632
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module:
|
|
9633
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkKYG2PIRBjs.Modules.Company, type: title.type, element: title.element, functions: title.functions }),
|
|
9633
9634
|
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" })
|
|
9634
9635
|
] });
|
|
9635
9636
|
}
|
|
@@ -9640,7 +9641,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyDetails, "CompanyDetails");
|
|
|
9640
9641
|
function AdminCompanyContainerInternal() {
|
|
9641
9642
|
const { company } = useCompanyContext();
|
|
9642
9643
|
const { hasRole } = useCurrentUserContext();
|
|
9643
|
-
if (!company || !hasRole(
|
|
9644
|
+
if (!company || !hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator)) return null;
|
|
9644
9645
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
9645
9646
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDetails, {}),
|
|
9646
9647
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AdminUsersList, {})
|
|
@@ -9694,13 +9695,13 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9694
9695
|
const textSize = textSizeClasses[size];
|
|
9695
9696
|
const getBatteryIcon = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
9696
9697
|
if (percentage > 75) {
|
|
9697
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryFull, { className:
|
|
9698
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryFull, { className: _chunkKYG2PIRBjs.cn.call(void 0, iconSize, "text-green-500") });
|
|
9698
9699
|
} else if (percentage >= 25) {
|
|
9699
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryMedium, { className:
|
|
9700
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryMedium, { className: _chunkKYG2PIRBjs.cn.call(void 0, iconSize, "text-yellow-500") });
|
|
9700
9701
|
} else if (percentage >= 5) {
|
|
9701
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryLow, { className:
|
|
9702
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryLow, { className: _chunkKYG2PIRBjs.cn.call(void 0, iconSize, "text-orange-500") });
|
|
9702
9703
|
} else {
|
|
9703
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Battery, { className:
|
|
9704
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Battery, { className: _chunkKYG2PIRBjs.cn.call(void 0, iconSize, "text-destructive") });
|
|
9704
9705
|
}
|
|
9705
9706
|
}, "getBatteryIcon");
|
|
9706
9707
|
const getStatusColor = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -9722,7 +9723,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9722
9723
|
t("billing.tokens.monthly", { defaultValue: "Monthly Pages" }),
|
|
9723
9724
|
":"
|
|
9724
9725
|
] }),
|
|
9725
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
9726
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkKYG2PIRBjs.cn.call(void 0, "font-medium", getStatusColor()), children: [
|
|
9726
9727
|
availableMonthlyTokens,
|
|
9727
9728
|
" / ",
|
|
9728
9729
|
monthlyTokens
|
|
@@ -9733,7 +9734,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9733
9734
|
t("billing.tokens.available", { defaultValue: "Available" }),
|
|
9734
9735
|
":"
|
|
9735
9736
|
] }),
|
|
9736
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
9737
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkKYG2PIRBjs.cn.call(void 0, "font-medium", getStatusColor()), children: [
|
|
9737
9738
|
percentage.toFixed(0),
|
|
9738
9739
|
"%"
|
|
9739
9740
|
] })
|
|
@@ -9754,14 +9755,14 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9754
9755
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9755
9756
|
"div",
|
|
9756
9757
|
{
|
|
9757
|
-
className:
|
|
9758
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0, "inline-flex items-center gap-1.5 cursor-default", className),
|
|
9758
9759
|
"aria-label": t("billing.tokens.status", { defaultValue: "Page Status" }),
|
|
9759
9760
|
children: [
|
|
9760
9761
|
getBatteryIcon(),
|
|
9761
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
9762
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkKYG2PIRBjs.cn.call(void 0, textSize, "text-muted-foreground font-medium"), children: availableMonthlyTokens }),
|
|
9762
9763
|
showExtraPages && availableExtraTokens > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "inline-flex items-center gap-0.5", children: [
|
|
9763
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className:
|
|
9764
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
9764
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className: _chunkKYG2PIRBjs.cn.call(void 0, smallIconSize, "text-blue-500") }),
|
|
9765
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkKYG2PIRBjs.cn.call(void 0, textSize, "text-blue-500 font-medium"), children: availableExtraTokens })
|
|
9765
9766
|
] })
|
|
9766
9767
|
]
|
|
9767
9768
|
}
|
|
@@ -9878,12 +9879,12 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
9878
9879
|
}
|
|
9879
9880
|
};
|
|
9880
9881
|
try {
|
|
9881
|
-
await
|
|
9882
|
-
const fullUser = await
|
|
9882
|
+
await _chunkKYG2PIRBjs.CompanyService.updateConfigurations(payload);
|
|
9883
|
+
const fullUser = await _chunkKYG2PIRBjs.UserService.findFullUser();
|
|
9883
9884
|
if (fullUser) {
|
|
9884
9885
|
setUser(fullUser);
|
|
9885
9886
|
}
|
|
9886
|
-
|
|
9887
|
+
_chunkKYG2PIRBjs.showToast.call(void 0, "Configurations Updated", {
|
|
9887
9888
|
description: `The system configurations have been updated successfully.`
|
|
9888
9889
|
});
|
|
9889
9890
|
close();
|
|
@@ -9915,7 +9916,7 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
9915
9916
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditorInternal, "CompanyConfigurationEditorInternal");
|
|
9916
9917
|
function CompanyConfigurationEditor(props) {
|
|
9917
9918
|
const { hasRole } = useCurrentUserContext();
|
|
9918
|
-
if (hasRole(
|
|
9919
|
+
if (hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditorInternal, { ...props });
|
|
9919
9920
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditorInternal, { ...props });
|
|
9920
9921
|
}
|
|
9921
9922
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditor, "CompanyConfigurationEditor");
|
|
@@ -9927,14 +9928,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditor, "CompanyConfigu
|
|
|
9927
9928
|
|
|
9928
9929
|
function CompanyDeleterInternal({ company }) {
|
|
9929
9930
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9930
|
-
const router =
|
|
9931
|
+
const router = _chunkNPNKFWV2js.useI18nRouter.call(void 0, );
|
|
9931
9932
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
9932
9933
|
const [isDeleting, setIsDeleting] = _react.useState.call(void 0, false);
|
|
9933
9934
|
const [companyName, setCompanyName] = _react.useState.call(void 0, "");
|
|
9934
9935
|
const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
9935
9936
|
setIsDeleting(true);
|
|
9936
9937
|
try {
|
|
9937
|
-
await
|
|
9938
|
+
await _chunkKYG2PIRBjs.CompanyService.delete({ companyId: company.id });
|
|
9938
9939
|
router.push("/");
|
|
9939
9940
|
} catch (error) {
|
|
9940
9941
|
errorToast({ title: t(`common.errors.delete`), error });
|
|
@@ -10004,7 +10005,7 @@ function CompanyDeleterInternal({ company }) {
|
|
|
10004
10005
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleterInternal, "CompanyDeleterInternal");
|
|
10005
10006
|
function CompanyDeleter({ company }) {
|
|
10006
10007
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
10007
|
-
if (!hasRole(
|
|
10008
|
+
if (!hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator) && !hasPermissionToModule({ module: _chunkKYG2PIRBjs.Modules.Company, action: "delete" /* Delete */ }))
|
|
10008
10009
|
return null;
|
|
10009
10010
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleterInternal, { company });
|
|
10010
10011
|
}
|
|
@@ -10023,7 +10024,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleter, "CompanyDeleter");
|
|
|
10023
10024
|
|
|
10024
10025
|
function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
10025
10026
|
const { hasRole } = useCurrentUserContext();
|
|
10026
|
-
const router =
|
|
10027
|
+
const router = _chunkNPNKFWV2js.useI18nRouter.call(void 0, );
|
|
10027
10028
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
10028
10029
|
const [features, setFeatures] = _react.useState.call(void 0, []);
|
|
10029
10030
|
const [file, setFile] = _react.useState.call(void 0, null);
|
|
@@ -10052,7 +10053,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10052
10053
|
});
|
|
10053
10054
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
10054
10055
|
if (values.logo && contentType) {
|
|
10055
|
-
const s3 = await
|
|
10056
|
+
const s3 = await _chunkKYG2PIRBjs.S3Service.getPreSignedUrl({
|
|
10056
10057
|
key: values.logo,
|
|
10057
10058
|
contentType,
|
|
10058
10059
|
isPublic: true
|
|
@@ -10071,9 +10072,9 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10071
10072
|
moduleIds: values.moduleIds
|
|
10072
10073
|
};
|
|
10073
10074
|
try {
|
|
10074
|
-
const updatedCompany = company ? await
|
|
10075
|
+
const updatedCompany = company ? await _chunkKYG2PIRBjs.CompanyService.update(payload) : await _chunkKYG2PIRBjs.CompanyService.create(payload);
|
|
10075
10076
|
if (onRevalidate) {
|
|
10076
|
-
await onRevalidate(generateUrl({ page:
|
|
10077
|
+
await onRevalidate(generateUrl({ page: _chunkKYG2PIRBjs.Modules.Company, id: updatedCompany.id, language: `[locale]` }));
|
|
10077
10078
|
}
|
|
10078
10079
|
if (company && propagateChanges) {
|
|
10079
10080
|
_cookiesnext.setCookie.call(void 0, "reloadData", "true", { path: "/" });
|
|
@@ -10091,15 +10092,15 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10091
10092
|
}, "onSubmit");
|
|
10092
10093
|
_react.useEffect.call(void 0, () => {
|
|
10093
10094
|
async function fetchFeatures() {
|
|
10094
|
-
const allfeatures = await
|
|
10095
|
-
if (hasRole(
|
|
10095
|
+
const allfeatures = await _chunkKYG2PIRBjs.FeatureService.findMany({});
|
|
10096
|
+
if (hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator)) {
|
|
10096
10097
|
setFeatures(allfeatures);
|
|
10097
10098
|
} else {
|
|
10098
10099
|
setFeatures(allfeatures.filter((feature) => feature.isCore));
|
|
10099
10100
|
}
|
|
10100
10101
|
}
|
|
10101
10102
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
|
|
10102
|
-
if (open && features.length === 0 && (hasRole(
|
|
10103
|
+
if (open && features.length === 0 && (hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _239 => _239.env, 'access', _240 => _240.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _241 => _241.toLowerCase, 'call', _242 => _242()]) === "true"))
|
|
10103
10104
|
fetchFeatures();
|
|
10104
10105
|
}, [open, features]);
|
|
10105
10106
|
_react.useEffect.call(void 0, () => {
|
|
@@ -10133,8 +10134,8 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10133
10134
|
"application/images": [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg"]
|
|
10134
10135
|
}
|
|
10135
10136
|
};
|
|
10136
|
-
const canAccessFeatures = hasRole(
|
|
10137
|
-
const isAdministrator = hasRole(
|
|
10137
|
+
const canAccessFeatures = hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _243 => _243.env, 'access', _244 => _244.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _245 => _245.toLowerCase, 'call', _246 => _246()]) === "true";
|
|
10138
|
+
const isAdministrator = hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator);
|
|
10138
10139
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
10139
10140
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!company }),
|
|
10140
10141
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -10187,9 +10188,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyEditor, "CompanyEditor");
|
|
|
10187
10188
|
function CompaniesList() {
|
|
10188
10189
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10189
10190
|
const data = useDataListRetriever({
|
|
10190
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
10191
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkKYG2PIRBjs.CompanyService.findMany(params), "retriever"),
|
|
10191
10192
|
retrieverParams: {},
|
|
10192
|
-
module:
|
|
10193
|
+
module: _chunkKYG2PIRBjs.Modules.Company
|
|
10193
10194
|
});
|
|
10194
10195
|
const functions = [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, {}, "create-account")];
|
|
10195
10196
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10197,7 +10198,7 @@ function CompaniesList() {
|
|
|
10197
10198
|
{
|
|
10198
10199
|
data,
|
|
10199
10200
|
fields: ["name" /* name */, "createdAt" /* createdAt */],
|
|
10200
|
-
tableGeneratorType:
|
|
10201
|
+
tableGeneratorType: _chunkKYG2PIRBjs.Modules.Company,
|
|
10201
10202
|
functions,
|
|
10202
10203
|
title: t(`entities.companies`, { count: 2 })
|
|
10203
10204
|
}
|
|
@@ -10218,14 +10219,14 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
10218
10219
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10219
10220
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
10220
10221
|
const [company, setCompany] = _react.useState.call(void 0,
|
|
10221
|
-
dehydratedCompany ?
|
|
10222
|
+
dehydratedCompany ? _chunkKYG2PIRBjs.rehydrate.call(void 0, _chunkKYG2PIRBjs.Modules.Company, dehydratedCompany) : void 0
|
|
10222
10223
|
);
|
|
10223
10224
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10224
10225
|
const response = [];
|
|
10225
10226
|
if (company)
|
|
10226
10227
|
response.push({
|
|
10227
10228
|
name: company.name,
|
|
10228
|
-
href: generateUrl({ page:
|
|
10229
|
+
href: generateUrl({ page: _chunkKYG2PIRBjs.Modules.Company })
|
|
10229
10230
|
});
|
|
10230
10231
|
return response;
|
|
10231
10232
|
}, "breadcrumb");
|
|
@@ -10235,9 +10236,9 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
10235
10236
|
};
|
|
10236
10237
|
if (company) response.element = company.name;
|
|
10237
10238
|
const functions = [];
|
|
10238
|
-
if (company && hasRole(
|
|
10239
|
+
if (company && hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator) && hasPermissionToModule({ module: _chunkKYG2PIRBjs.Modules.Company, action: "delete" /* Delete */ }))
|
|
10239
10240
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleter, { company }, "companyDeleter"));
|
|
10240
|
-
if (hasRole(
|
|
10241
|
+
if (hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module: _chunkKYG2PIRBjs.Modules.Company, action: "update" /* Update */ })) {
|
|
10241
10242
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, { company, propagateChanges: setCompany }, "companyEditor"));
|
|
10242
10243
|
}
|
|
10243
10244
|
if (functions.length > 0) response.functions = functions;
|
|
@@ -10329,7 +10330,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, NotificationMenuItem, "NotificationMenuItem
|
|
|
10329
10330
|
var NotificationContext = _react.createContext.call(void 0, void 0);
|
|
10330
10331
|
var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ children }) => {
|
|
10331
10332
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10332
|
-
const router =
|
|
10333
|
+
const router = _chunkNPNKFWV2js.useI18nRouter.call(void 0, );
|
|
10333
10334
|
const [notifications, setNotifications] = _react.useState.call(void 0, []);
|
|
10334
10335
|
const [isLoading, setIsLoading] = _react.useState.call(void 0, false);
|
|
10335
10336
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
@@ -10356,7 +10357,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
10356
10357
|
setIsLoading(true);
|
|
10357
10358
|
setError(null);
|
|
10358
10359
|
try {
|
|
10359
|
-
const fetchedNotifications = await
|
|
10360
|
+
const fetchedNotifications = await _chunkKYG2PIRBjs.NotificationService.findMany({});
|
|
10360
10361
|
setNotifications(fetchedNotifications);
|
|
10361
10362
|
setLastLoaded(Date.now());
|
|
10362
10363
|
} catch (error2) {
|
|
@@ -10368,9 +10369,9 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
10368
10369
|
}, []);
|
|
10369
10370
|
_react.useEffect.call(void 0, () => {
|
|
10370
10371
|
if (hasInitiallyLoaded || !currentUser) return;
|
|
10371
|
-
if (
|
|
10372
|
+
if (_chunkNPNKFWV2js.isRolesConfigured.call(void 0, )) {
|
|
10372
10373
|
const isAdmin = _optionalChain([currentUser, 'access', _254 => _254.roles, 'optionalAccess', _255 => _255.some, 'call', _256 => _256(
|
|
10373
|
-
(role) => role.id ===
|
|
10374
|
+
(role) => role.id === _chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator
|
|
10374
10375
|
)]);
|
|
10375
10376
|
if (isAdmin) {
|
|
10376
10377
|
setHasInitiallyLoaded(true);
|
|
@@ -10386,7 +10387,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
10386
10387
|
try {
|
|
10387
10388
|
const data = {
|
|
10388
10389
|
data: ids.map((id) => ({
|
|
10389
|
-
type:
|
|
10390
|
+
type: _chunkKYG2PIRBjs.Modules.Notification.name,
|
|
10390
10391
|
id,
|
|
10391
10392
|
attributes: {
|
|
10392
10393
|
isRead: true
|
|
@@ -10395,8 +10396,8 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
10395
10396
|
relationships: {}
|
|
10396
10397
|
}))
|
|
10397
10398
|
};
|
|
10398
|
-
await
|
|
10399
|
-
const allNotifications = await
|
|
10399
|
+
await _chunkKYG2PIRBjs.NotificationService.markAsRead({ data });
|
|
10400
|
+
const allNotifications = await _chunkKYG2PIRBjs.NotificationService.findMany({});
|
|
10400
10401
|
setNotifications(allNotifications);
|
|
10401
10402
|
setLastLoaded(Date.now());
|
|
10402
10403
|
} catch (error2) {
|
|
@@ -10464,18 +10465,18 @@ var RoleProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
10464
10465
|
const generateUrl = usePageUrlGenerator();
|
|
10465
10466
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10466
10467
|
const [role, setRole] = _react.useState.call(void 0,
|
|
10467
|
-
dehydratedRole ?
|
|
10468
|
+
dehydratedRole ? _chunkKYG2PIRBjs.rehydrate.call(void 0, _chunkKYG2PIRBjs.Modules.Role, dehydratedRole) : void 0
|
|
10468
10469
|
);
|
|
10469
10470
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10470
10471
|
const response = [];
|
|
10471
10472
|
response.push({
|
|
10472
10473
|
name: t(`entities.roles`, { count: 2 }),
|
|
10473
|
-
href: generateUrl({ page:
|
|
10474
|
+
href: generateUrl({ page: _chunkKYG2PIRBjs.Modules.Role })
|
|
10474
10475
|
});
|
|
10475
10476
|
if (role)
|
|
10476
10477
|
response.push({
|
|
10477
10478
|
name: role.name,
|
|
10478
|
-
href: generateUrl({ page:
|
|
10479
|
+
href: generateUrl({ page: _chunkKYG2PIRBjs.Modules.Role, id: role.id })
|
|
10479
10480
|
});
|
|
10480
10481
|
return response;
|
|
10481
10482
|
}, "breadcrumb");
|
|
@@ -10594,7 +10595,7 @@ function usePageTracker() {
|
|
|
10594
10595
|
const moduleName = pathParts[0];
|
|
10595
10596
|
const entityId = pathParts.length > 1 ? pathParts[1] : null;
|
|
10596
10597
|
if (!entityId) return;
|
|
10597
|
-
const trackablePages =
|
|
10598
|
+
const trackablePages = _chunkNPNKFWV2js.getTrackablePages.call(void 0, );
|
|
10598
10599
|
const foundModule = trackablePages.find((mod) => mod.pageUrl === `/${moduleName}`);
|
|
10599
10600
|
if (!foundModule) return;
|
|
10600
10601
|
const baseUrl = `/${moduleName}/${entityId}`;
|
|
@@ -10641,7 +10642,7 @@ function usePushNotifications() {
|
|
|
10641
10642
|
try {
|
|
10642
10643
|
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _263 => _263.id])}`;
|
|
10643
10644
|
const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
|
|
10644
|
-
const registration = await navigator.serviceWorker.register(`${
|
|
10645
|
+
const registration = await navigator.serviceWorker.register(`${_chunkNPNKFWV2js.getAppUrl.call(void 0, )}/sw.js`);
|
|
10645
10646
|
let permission = Notification.permission;
|
|
10646
10647
|
if (permission === "default") {
|
|
10647
10648
|
permission = await Notification.requestPermission();
|
|
@@ -10666,7 +10667,7 @@ function usePushNotifications() {
|
|
|
10666
10667
|
};
|
|
10667
10668
|
const subscriptionHash = btoa(JSON.stringify(plainSubscription));
|
|
10668
10669
|
if (lastRegisteredSubscription !== subscriptionHash) {
|
|
10669
|
-
await
|
|
10670
|
+
await _chunkKYG2PIRBjs.PushService.register({ data: plainSubscription });
|
|
10670
10671
|
sessionStorage.setItem(sessionKey, subscriptionHash);
|
|
10671
10672
|
}
|
|
10672
10673
|
} catch (error) {
|
|
@@ -10674,7 +10675,7 @@ function usePushNotifications() {
|
|
|
10674
10675
|
}
|
|
10675
10676
|
}
|
|
10676
10677
|
}, "register");
|
|
10677
|
-
if (currentUser && !hasRole(
|
|
10678
|
+
if (currentUser && !hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator)) register();
|
|
10678
10679
|
}, [currentUser]);
|
|
10679
10680
|
}
|
|
10680
10681
|
_chunk7QVYU63Ejs.__name.call(void 0, usePushNotifications, "usePushNotifications");
|
|
@@ -10749,7 +10750,7 @@ function useSocket({ token }) {
|
|
|
10749
10750
|
});
|
|
10750
10751
|
}, "handleMessage");
|
|
10751
10752
|
const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
|
|
10752
|
-
const notification =
|
|
10753
|
+
const notification = _chunkKYG2PIRBjs.rehydrate.call(void 0, _chunkKYG2PIRBjs.Modules.Notification, data);
|
|
10753
10754
|
if (notification) {
|
|
10754
10755
|
setSocketNotifications((prev) => {
|
|
10755
10756
|
const newNotifications = [...prev, notification];
|
|
@@ -10864,7 +10865,7 @@ function ContentTitle({ module, type, element, functions, className }) {
|
|
|
10864
10865
|
setClientFunctions(functions);
|
|
10865
10866
|
}, [functions]);
|
|
10866
10867
|
if (!element) return null;
|
|
10867
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
10868
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkKYG2PIRBjs.cn.call(void 0, `mb-4 flex items-center justify-between gap-x-4 w-full`, className), children: [
|
|
10868
10869
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col w-full", children: [
|
|
10869
10870
|
type && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `text-muted-foreground text-xl font-light flex gap-x-2 items-center`, children: [
|
|
10870
10871
|
module && module.icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, module.icon, { className: "w-5 h-5 inline-block" }),
|
|
@@ -10885,7 +10886,7 @@ function Header({ children }) {
|
|
|
10885
10886
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10886
10887
|
const { breadcrumbs } = useSharedContext();
|
|
10887
10888
|
const { company, hasRole, refreshUser, isRefreshing } = useCurrentUserContext();
|
|
10888
|
-
const showTokenStatus = !hasRole(
|
|
10889
|
+
const showTokenStatus = !hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator) && company;
|
|
10889
10890
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "header", { className: `sticky top-0 z-10 flex h-12 flex-col items-center justify-start gap-x-4 border-b`, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-sidebar flex h-12 w-full flex-row items-center justify-between pl-2 pr-4", children: [
|
|
10890
10891
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SidebarTrigger, { "aria-label": "Toggle sidebar" }),
|
|
10891
10892
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbNavigation, { items: breadcrumbs }) }),
|
|
@@ -11012,7 +11013,7 @@ function PageContainer({ children, testId, className }) {
|
|
|
11012
11013
|
const headerChildren = useHeaderChildren();
|
|
11013
11014
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex h-full w-full flex-col`, "data-testid": testId, children: [
|
|
11014
11015
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header, { children: headerChildren }),
|
|
11015
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className:
|
|
11016
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className: _chunkKYG2PIRBjs.cn.call(void 0, `flex w-full flex-1 flex-col gap-y-4 pt-4 pl-4 pr-4 pb-20`, className), children })
|
|
11016
11017
|
] });
|
|
11017
11018
|
}
|
|
11018
11019
|
_chunk7QVYU63Ejs.__name.call(void 0, PageContainer, "PageContainer");
|
|
@@ -11121,7 +11122,7 @@ function TabsContainer({
|
|
|
11121
11122
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11122
11123
|
TabsList,
|
|
11123
11124
|
{
|
|
11124
|
-
className:
|
|
11125
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
11125
11126
|
`${style ? `my-4 flex w-full justify-start rounded-none border-b bg-transparent pb-0` : ``}`,
|
|
11126
11127
|
tabsListClassName
|
|
11127
11128
|
),
|
|
@@ -11129,7 +11130,7 @@ function TabsContainer({
|
|
|
11129
11130
|
TabsTrigger,
|
|
11130
11131
|
{
|
|
11131
11132
|
value: tab.label,
|
|
11132
|
-
className:
|
|
11133
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
11133
11134
|
`${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`}`,
|
|
11134
11135
|
tabsTriggerClassName
|
|
11135
11136
|
),
|
|
@@ -11149,7 +11150,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, TabsContainer, "TabsContainer");
|
|
|
11149
11150
|
// src/components/contents/AttributeElement.tsx
|
|
11150
11151
|
|
|
11151
11152
|
function AttributeElement({ inline, title, value, className }) {
|
|
11152
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
11153
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkKYG2PIRBjs.cn.call(void 0, `flex ${inline === true ? "flex-row" : "flex-col"} my-1 justify-start`, className), children: [
|
|
11153
11154
|
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${inline === true ? "min-w-48 pr-4" : "w-full"} text-sm font-semibold`, children: title }),
|
|
11154
11155
|
value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col text-sm", children: value })
|
|
11155
11156
|
] });
|
|
@@ -11172,7 +11173,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AllowedUsersDetails, "AllowedUsersDetails")
|
|
|
11172
11173
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
11173
11174
|
|
|
11174
11175
|
|
|
11175
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
11176
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-YEVSJSOI.js"))), {
|
|
11176
11177
|
ssr: false
|
|
11177
11178
|
});
|
|
11178
11179
|
var BlockNoteEditorContainer = React3.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -11223,7 +11224,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, PageContainerContentDetails, "PageContainer
|
|
|
11223
11224
|
|
|
11224
11225
|
function PageContentContainer({ header, details, footer, content }) {
|
|
11225
11226
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
11226
|
-
const isMobile =
|
|
11227
|
+
const isMobile = _chunkKYG2PIRBjs.useIsMobile.call(void 0, );
|
|
11227
11228
|
_react.useEffect.call(void 0, () => {
|
|
11228
11229
|
setMounted(true);
|
|
11229
11230
|
}, []);
|
|
@@ -11555,14 +11556,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, useJsonApiMutation, "useJsonApiMutation");
|
|
|
11555
11556
|
function useRehydration(classKey, data) {
|
|
11556
11557
|
return _react.useMemo.call(void 0, () => {
|
|
11557
11558
|
if (!data) return null;
|
|
11558
|
-
return
|
|
11559
|
+
return _chunkKYG2PIRBjs.RehydrationFactory.rehydrate(classKey, data);
|
|
11559
11560
|
}, [classKey, data]);
|
|
11560
11561
|
}
|
|
11561
11562
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydration, "useRehydration");
|
|
11562
11563
|
function useRehydrationList(classKey, data) {
|
|
11563
11564
|
return _react.useMemo.call(void 0, () => {
|
|
11564
11565
|
if (!data || data.length === 0) return [];
|
|
11565
|
-
return
|
|
11566
|
+
return _chunkKYG2PIRBjs.RehydrationFactory.rehydrateList(classKey, data);
|
|
11566
11567
|
}, [classKey, data]);
|
|
11567
11568
|
}
|
|
11568
11569
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydrationList, "useRehydrationList");
|
|
@@ -11602,11 +11603,11 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
11602
11603
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11603
11604
|
Link,
|
|
11604
11605
|
{
|
|
11605
|
-
href: hasRole(
|
|
11606
|
+
href: hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
11606
11607
|
page: "/administration",
|
|
11607
|
-
id: _optionalChain([
|
|
11608
|
+
id: _optionalChain([_chunkKYG2PIRBjs.Modules, 'access', _289 => _289.Company, 'access', _290 => _290.pageUrl, 'optionalAccess', _291 => _291.substring, 'call', _292 => _292(1)]),
|
|
11608
11609
|
childPage: company.id
|
|
11609
|
-
}) : generateUrl({ page:
|
|
11610
|
+
}) : generateUrl({ page: _chunkKYG2PIRBjs.Modules.Company, id: company.id }),
|
|
11610
11611
|
children: row.getValue("name")
|
|
11611
11612
|
}
|
|
11612
11613
|
);
|
|
@@ -11707,7 +11708,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
11707
11708
|
header: t(`role.fields.name.label`),
|
|
11708
11709
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
11709
11710
|
const role = row.original.jsonApiData;
|
|
11710
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page:
|
|
11711
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunkKYG2PIRBjs.Modules.Role, id: role.id }), children: row.getValue("name") });
|
|
11711
11712
|
}, "cell"),
|
|
11712
11713
|
enableSorting: false,
|
|
11713
11714
|
enableHiding: false
|
|
@@ -11744,7 +11745,7 @@ var useUserSearch = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
|
11744
11745
|
if (search === searchQueryRef.current && users.length > 0) return;
|
|
11745
11746
|
setIsLoading(true);
|
|
11746
11747
|
searchQueryRef.current = search;
|
|
11747
|
-
const fetchedUsers = await
|
|
11748
|
+
const fetchedUsers = await _chunkKYG2PIRBjs.UserService.findMany({ search, fetchAll: true });
|
|
11748
11749
|
setUsers(fetchedUsers);
|
|
11749
11750
|
} catch (error) {
|
|
11750
11751
|
console.error("Failed to load users:", error);
|
|
@@ -11810,8 +11811,8 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
11810
11811
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11811
11812
|
Link,
|
|
11812
11813
|
{
|
|
11813
|
-
href: generateUrl({ page:
|
|
11814
|
-
className:
|
|
11814
|
+
href: generateUrl({ page: _chunkKYG2PIRBjs.Modules.User, id: user.id }),
|
|
11815
|
+
className: _chunkKYG2PIRBjs.cn.call(void 0,
|
|
11815
11816
|
`flex items-center justify-start gap-2`,
|
|
11816
11817
|
user.isDeleted || !user.isActivated ? "text-muted-foreground italic" : ""
|
|
11817
11818
|
),
|
|
@@ -11905,11 +11906,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
11905
11906
|
header: t(`content.fields.name.label`),
|
|
11906
11907
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
11907
11908
|
const content = row.original.jsonApiData;
|
|
11908
|
-
const contentModule = content.contentType ?
|
|
11909
|
+
const contentModule = content.contentType ? _chunkKYG2PIRBjs.Modules.findByModelName(content.contentType) : void 0;
|
|
11909
11910
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
11910
11911
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
|
|
11911
11912
|
/* @__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: [
|
|
11912
|
-
contentModule &&
|
|
11913
|
+
contentModule && _chunkKYG2PIRBjs.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
11913
11914
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: link, children: content.name })
|
|
11914
11915
|
] }) }),
|
|
11915
11916
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: content.tldr })
|
|
@@ -12046,7 +12047,7 @@ function useOAuthClients() {
|
|
|
12046
12047
|
setIsLoading(true);
|
|
12047
12048
|
setError(null);
|
|
12048
12049
|
try {
|
|
12049
|
-
const fetchedClients = await
|
|
12050
|
+
const fetchedClients = await _chunkKYG2PIRBjs.OAuthService.listClients();
|
|
12050
12051
|
setClients(fetchedClients);
|
|
12051
12052
|
} catch (err) {
|
|
12052
12053
|
console.error("[useOAuthClients] Failed to fetch clients:", err);
|
|
@@ -12063,7 +12064,7 @@ function useOAuthClients() {
|
|
|
12063
12064
|
setIsLoading(true);
|
|
12064
12065
|
setError(null);
|
|
12065
12066
|
try {
|
|
12066
|
-
const result = await
|
|
12067
|
+
const result = await _chunkKYG2PIRBjs.OAuthService.createClient(data);
|
|
12067
12068
|
addClient(result.client);
|
|
12068
12069
|
if (result.clientSecret) {
|
|
12069
12070
|
setNewClientSecret({
|
|
@@ -12110,7 +12111,7 @@ function useOAuthClient(clientId) {
|
|
|
12110
12111
|
setIsLoading(true);
|
|
12111
12112
|
setError(null);
|
|
12112
12113
|
try {
|
|
12113
|
-
const fetched = await
|
|
12114
|
+
const fetched = await _chunkKYG2PIRBjs.OAuthService.getClient({ clientId });
|
|
12114
12115
|
setFetchedClient(fetched);
|
|
12115
12116
|
} catch (err) {
|
|
12116
12117
|
console.error("[useOAuthClient] Failed to fetch client:", err);
|
|
@@ -12130,7 +12131,7 @@ function useOAuthClient(clientId) {
|
|
|
12130
12131
|
setIsLoading(true);
|
|
12131
12132
|
setError(null);
|
|
12132
12133
|
try {
|
|
12133
|
-
const updated = await
|
|
12134
|
+
const updated = await _chunkKYG2PIRBjs.OAuthService.updateClient({ clientId, data });
|
|
12134
12135
|
updateClientInStore(updated);
|
|
12135
12136
|
setFetchedClient(updated);
|
|
12136
12137
|
} catch (err) {
|
|
@@ -12149,7 +12150,7 @@ function useOAuthClient(clientId) {
|
|
|
12149
12150
|
setIsLoading(true);
|
|
12150
12151
|
setError(null);
|
|
12151
12152
|
try {
|
|
12152
|
-
await
|
|
12153
|
+
await _chunkKYG2PIRBjs.OAuthService.deleteClient({ clientId });
|
|
12153
12154
|
removeClientFromStore(clientId);
|
|
12154
12155
|
} catch (err) {
|
|
12155
12156
|
console.error("[useOAuthClient] Failed to delete client:", err);
|
|
@@ -12165,7 +12166,7 @@ function useOAuthClient(clientId) {
|
|
|
12165
12166
|
setIsLoading(true);
|
|
12166
12167
|
setError(null);
|
|
12167
12168
|
try {
|
|
12168
|
-
const result = await
|
|
12169
|
+
const result = await _chunkKYG2PIRBjs.OAuthService.regenerateSecret({ clientId });
|
|
12169
12170
|
setNewClientSecret({
|
|
12170
12171
|
clientId,
|
|
12171
12172
|
secret: result.clientSecret
|
|
@@ -12209,7 +12210,7 @@ function useOAuthConsent(params) {
|
|
|
12209
12210
|
setIsLoading(true);
|
|
12210
12211
|
setError(null);
|
|
12211
12212
|
try {
|
|
12212
|
-
const info = await
|
|
12213
|
+
const info = await _chunkKYG2PIRBjs.OAuthService.getAuthorizationInfo(params);
|
|
12213
12214
|
setClientInfo(info);
|
|
12214
12215
|
} catch (err) {
|
|
12215
12216
|
console.error("[useOAuthConsent] Failed to fetch authorization info:", err);
|
|
@@ -12231,7 +12232,7 @@ function useOAuthConsent(params) {
|
|
|
12231
12232
|
setIsSubmitting(true);
|
|
12232
12233
|
setError(null);
|
|
12233
12234
|
try {
|
|
12234
|
-
const result = await
|
|
12235
|
+
const result = await _chunkKYG2PIRBjs.OAuthService.approveAuthorization(params);
|
|
12235
12236
|
if (result.redirectUrl) {
|
|
12236
12237
|
window.location.href = result.redirectUrl;
|
|
12237
12238
|
}
|
|
@@ -12245,7 +12246,7 @@ function useOAuthConsent(params) {
|
|
|
12245
12246
|
setIsSubmitting(true);
|
|
12246
12247
|
setError(null);
|
|
12247
12248
|
try {
|
|
12248
|
-
const result = await
|
|
12249
|
+
const result = await _chunkKYG2PIRBjs.OAuthService.denyAuthorization(params);
|
|
12249
12250
|
if (result.redirectUrl) {
|
|
12250
12251
|
window.location.href = result.redirectUrl;
|
|
12251
12252
|
}
|
|
@@ -12553,7 +12554,7 @@ function Register() {
|
|
|
12553
12554
|
marketingConsent: _nullishCoalesce(values.marketingConsent, () => ( false)),
|
|
12554
12555
|
marketingConsentAt: values.marketingConsent ? (/* @__PURE__ */ new Date()).toISOString() : null
|
|
12555
12556
|
};
|
|
12556
|
-
await
|
|
12557
|
+
await _chunkKYG2PIRBjs.AuthService.register(payload);
|
|
12557
12558
|
setShowConfirmation(true);
|
|
12558
12559
|
} catch (e) {
|
|
12559
12560
|
errorToast({ error: e });
|
|
@@ -12705,6 +12706,58 @@ _chunk7QVYU63Ejs.__name.call(void 0, InnerAuthContainer, "InnerAuthContainer");
|
|
|
12705
12706
|
|
|
12706
12707
|
|
|
12707
12708
|
|
|
12709
|
+
// src/features/auth/components/buttons/GoogleSignInButton.tsx
|
|
12710
|
+
|
|
12711
|
+
function GoogleSignInButton() {
|
|
12712
|
+
if (!_chunkNPNKFWV2js.isGoogleAuthEnabled.call(void 0, )) {
|
|
12713
|
+
return null;
|
|
12714
|
+
}
|
|
12715
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: `${_chunkNPNKFWV2js.getApiUrl.call(void 0, )}auth/google`, className: "flex w-full justify-end", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
12716
|
+
Button,
|
|
12717
|
+
{
|
|
12718
|
+
className: "w-full bg-white hover:bg-gray-50 text-gray-700 border border-gray-300",
|
|
12719
|
+
variant: "outline",
|
|
12720
|
+
"data-testid": "page-login-button-google",
|
|
12721
|
+
children: [
|
|
12722
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "svg", { className: "mr-2 h-5 w-5", viewBox: "0 0 24 24", children: [
|
|
12723
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12724
|
+
"path",
|
|
12725
|
+
{
|
|
12726
|
+
fill: "#4285F4",
|
|
12727
|
+
d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"
|
|
12728
|
+
}
|
|
12729
|
+
),
|
|
12730
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12731
|
+
"path",
|
|
12732
|
+
{
|
|
12733
|
+
fill: "#34A853",
|
|
12734
|
+
d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"
|
|
12735
|
+
}
|
|
12736
|
+
),
|
|
12737
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12738
|
+
"path",
|
|
12739
|
+
{
|
|
12740
|
+
fill: "#FBBC05",
|
|
12741
|
+
d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"
|
|
12742
|
+
}
|
|
12743
|
+
),
|
|
12744
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12745
|
+
"path",
|
|
12746
|
+
{
|
|
12747
|
+
fill: "#EA4335",
|
|
12748
|
+
d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"
|
|
12749
|
+
}
|
|
12750
|
+
)
|
|
12751
|
+
] }),
|
|
12752
|
+
"Sign in with Google"
|
|
12753
|
+
]
|
|
12754
|
+
}
|
|
12755
|
+
) });
|
|
12756
|
+
}
|
|
12757
|
+
_chunk7QVYU63Ejs.__name.call(void 0, GoogleSignInButton, "GoogleSignInButton");
|
|
12758
|
+
|
|
12759
|
+
// src/features/auth/components/details/LandingComponent.tsx
|
|
12760
|
+
|
|
12708
12761
|
function LandingComponent() {
|
|
12709
12762
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
12710
12763
|
const { setComponentType } = useAuthContext();
|
|
@@ -12717,8 +12770,8 @@ function LandingComponent() {
|
|
|
12717
12770
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { className: "flex w-full justify-center text-center text-sm", children: t(`common.description`) })
|
|
12718
12771
|
] }),
|
|
12719
12772
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardFooter, { className: "mt-4 flex w-full flex-col justify-between gap-y-4", children: [
|
|
12720
|
-
|
|
12721
|
-
|
|
12773
|
+
_chunkNPNKFWV2js.isInternalAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
12774
|
+
_chunkNPNKFWV2js.isRegistrationAllowed.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12722
12775
|
Link,
|
|
12723
12776
|
{
|
|
12724
12777
|
href: "#",
|
|
@@ -12729,7 +12782,8 @@ function LandingComponent() {
|
|
|
12729
12782
|
),
|
|
12730
12783
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: "#", className: "flex w-full justify-end", onClick: () => setComponentType(0 /* Login */), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: t(`auth.buttons.login`) }) })
|
|
12731
12784
|
] }),
|
|
12732
|
-
|
|
12785
|
+
_chunkNPNKFWV2js.isGoogleAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GoogleSignInButton, {}),
|
|
12786
|
+
_chunkNPNKFWV2js.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: `${_chunkNPNKFWV2js.getApiUrl.call(void 0, )}auth/discord`, className: "flex w-full justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: "Login with Discord" }) })
|
|
12733
12787
|
] })
|
|
12734
12788
|
] });
|
|
12735
12789
|
}
|
|
@@ -12754,7 +12808,7 @@ function AcceptInvitation() {
|
|
|
12754
12808
|
const payload = {
|
|
12755
12809
|
code
|
|
12756
12810
|
};
|
|
12757
|
-
await
|
|
12811
|
+
await _chunkKYG2PIRBjs.AuthService.validateCode(payload);
|
|
12758
12812
|
} catch (e) {
|
|
12759
12813
|
setError(e instanceof Error ? e.message : String(e));
|
|
12760
12814
|
errorToast({ title: t(`common.errors.error`), error: e });
|
|
@@ -12792,9 +12846,9 @@ function AcceptInvitation() {
|
|
|
12792
12846
|
code: _optionalChain([params, 'optionalAccess', _315 => _315.code]),
|
|
12793
12847
|
password: values.password
|
|
12794
12848
|
};
|
|
12795
|
-
await
|
|
12849
|
+
await _chunkKYG2PIRBjs.AuthService.acceptInvitation(payload);
|
|
12796
12850
|
setShowConfirmation(true);
|
|
12797
|
-
|
|
12851
|
+
_chunkKYG2PIRBjs.showToast.call(void 0, t("auth.account_activated"), {
|
|
12798
12852
|
description: t("auth.account_activated_description")
|
|
12799
12853
|
});
|
|
12800
12854
|
setTimeout(() => {
|
|
@@ -12854,10 +12908,10 @@ function ActivateAccount() {
|
|
|
12854
12908
|
const payload = {
|
|
12855
12909
|
activationCode: code
|
|
12856
12910
|
};
|
|
12857
|
-
await
|
|
12911
|
+
await _chunkKYG2PIRBjs.AuthService.activate(payload);
|
|
12858
12912
|
setShowConfirmation(true);
|
|
12859
12913
|
setParams(void 0);
|
|
12860
|
-
|
|
12914
|
+
_chunkKYG2PIRBjs.showToast.call(void 0, t("auth.account_activated"), {
|
|
12861
12915
|
description: t("auth.account_activated_description")
|
|
12862
12916
|
});
|
|
12863
12917
|
setTimeout(() => {
|
|
@@ -12892,13 +12946,13 @@ _chunk7QVYU63Ejs.__name.call(void 0, ActivateAccount, "ActivateAccount");
|
|
|
12892
12946
|
|
|
12893
12947
|
function Cookies({ dehydratedAuth, page }) {
|
|
12894
12948
|
const { setUser } = useCurrentUserContext();
|
|
12895
|
-
const router =
|
|
12949
|
+
const router = _chunkNPNKFWV2js.useI18nRouter.call(void 0, );
|
|
12896
12950
|
const [hasSaved, setHasSaved] = _react.useState.call(void 0, false);
|
|
12897
12951
|
_react.useEffect.call(void 0, () => {
|
|
12898
12952
|
if (hasSaved) return;
|
|
12899
12953
|
async function saveTokenOnServer() {
|
|
12900
|
-
await
|
|
12901
|
-
const auth =
|
|
12954
|
+
await _chunkKYG2PIRBjs.AuthService.saveToken({ dehydratedAuth });
|
|
12955
|
+
const auth = _chunkKYG2PIRBjs.rehydrate.call(void 0, _chunkKYG2PIRBjs.Modules.Auth, dehydratedAuth);
|
|
12902
12956
|
setUser(auth.user);
|
|
12903
12957
|
setHasSaved(true);
|
|
12904
12958
|
if (page) {
|
|
@@ -12941,7 +12995,7 @@ function ForgotPassword() {
|
|
|
12941
12995
|
const payload = {
|
|
12942
12996
|
email: values.email
|
|
12943
12997
|
};
|
|
12944
|
-
await
|
|
12998
|
+
await _chunkKYG2PIRBjs.AuthService.initialiseForgotPassword(payload);
|
|
12945
12999
|
setShowConfirmation(true);
|
|
12946
13000
|
} catch (e) {
|
|
12947
13001
|
errorToast({ error: e });
|
|
@@ -12996,7 +13050,7 @@ function Login() {
|
|
|
12996
13050
|
const { setUser } = useCurrentUserContext();
|
|
12997
13051
|
const { setComponentType } = useAuthContext();
|
|
12998
13052
|
const generateUrl = usePageUrlGenerator();
|
|
12999
|
-
const router =
|
|
13053
|
+
const router = _chunkNPNKFWV2js.useI18nRouter.call(void 0, );
|
|
13000
13054
|
const formSchema = _zod3.z.object({
|
|
13001
13055
|
email: _zod3.z.string().email({
|
|
13002
13056
|
message: t(`common.errors.invalid_email`)
|
|
@@ -13012,7 +13066,7 @@ function Login() {
|
|
|
13012
13066
|
});
|
|
13013
13067
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
13014
13068
|
try {
|
|
13015
|
-
const user = await
|
|
13069
|
+
const user = await _chunkKYG2PIRBjs.AuthService.login({
|
|
13016
13070
|
email: values.email,
|
|
13017
13071
|
password: values.password
|
|
13018
13072
|
});
|
|
@@ -13034,7 +13088,7 @@ function Login() {
|
|
|
13034
13088
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { className: "text-sm", children: t(`auth.login_description`) })
|
|
13035
13089
|
] }),
|
|
13036
13090
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), children: [
|
|
13037
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { children:
|
|
13091
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { children: _chunkNPNKFWV2js.isInternalAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
13038
13092
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13039
13093
|
FormInput,
|
|
13040
13094
|
{
|
|
@@ -13059,7 +13113,8 @@ function Login() {
|
|
|
13059
13113
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "mt-4 w-full", type: "submit", "data-testid": "form-login-button-submit", children: t(`auth.buttons.login`) })
|
|
13060
13114
|
] }) }),
|
|
13061
13115
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardFooter, { className: "flex w-full flex-col gap-y-4 mt-4", children: [
|
|
13062
|
-
|
|
13116
|
+
_chunkNPNKFWV2js.isGoogleAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GoogleSignInButton, {}),
|
|
13117
|
+
_chunkNPNKFWV2js.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: `${_chunkNPNKFWV2js.getApiUrl.call(void 0, )}auth/discord`, className: "flex w-full justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: "Login with Discord" }) }),
|
|
13063
13118
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row justify-between", children: [
|
|
13064
13119
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13065
13120
|
Link,
|
|
@@ -13094,7 +13149,7 @@ function Logout() {
|
|
|
13094
13149
|
const generateUrl = usePageUrlGenerator();
|
|
13095
13150
|
_react.useEffect.call(void 0, () => {
|
|
13096
13151
|
const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
13097
|
-
await
|
|
13152
|
+
await _chunkKYG2PIRBjs.AuthService.logout();
|
|
13098
13153
|
window.location.href = generateUrl({ page: `/` });
|
|
13099
13154
|
}, "logOut");
|
|
13100
13155
|
logOut();
|
|
@@ -13109,7 +13164,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, Logout, "Logout");
|
|
|
13109
13164
|
function RefreshUser() {
|
|
13110
13165
|
const { setUser } = useCurrentUserContext();
|
|
13111
13166
|
const loadFullUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
13112
|
-
const fullUser = await
|
|
13167
|
+
const fullUser = await _chunkKYG2PIRBjs.UserService.findFullUser();
|
|
13113
13168
|
if (fullUser) {
|
|
13114
13169
|
setUser(fullUser);
|
|
13115
13170
|
const token = {
|
|
@@ -13121,7 +13176,7 @@ function RefreshUser() {
|
|
|
13121
13176
|
return { id: module.id, permissions: module.permissions };
|
|
13122
13177
|
})
|
|
13123
13178
|
};
|
|
13124
|
-
await _optionalChain([
|
|
13179
|
+
await _optionalChain([_chunkKYG2PIRBjs.getTokenHandler.call(void 0, ), 'optionalAccess', _322 => _322.updateToken, 'call', _323 => _323(token)]);
|
|
13125
13180
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
13126
13181
|
}
|
|
13127
13182
|
}, "loadFullUser");
|
|
@@ -13152,7 +13207,7 @@ function ResetPassword() {
|
|
|
13152
13207
|
const payload = {
|
|
13153
13208
|
code
|
|
13154
13209
|
};
|
|
13155
|
-
await
|
|
13210
|
+
await _chunkKYG2PIRBjs.AuthService.validateCode(payload);
|
|
13156
13211
|
} catch (e) {
|
|
13157
13212
|
setError(e instanceof Error ? e.message : String(e));
|
|
13158
13213
|
errorToast({ title: t(`common.errors.error`), error: e });
|
|
@@ -13190,9 +13245,9 @@ function ResetPassword() {
|
|
|
13190
13245
|
code: _optionalChain([params, 'optionalAccess', _325 => _325.code]),
|
|
13191
13246
|
password: values.password
|
|
13192
13247
|
};
|
|
13193
|
-
await
|
|
13248
|
+
await _chunkKYG2PIRBjs.AuthService.resetPassword(payload);
|
|
13194
13249
|
setShowConfirmation(true);
|
|
13195
|
-
|
|
13250
|
+
_chunkKYG2PIRBjs.showToast.call(void 0, t(`auth.reset_success`), {
|
|
13196
13251
|
description: t(`auth.reset_success_description`)
|
|
13197
13252
|
});
|
|
13198
13253
|
setTimeout(() => {
|
|
@@ -13233,12 +13288,12 @@ function ContentsList({ contentList }) {
|
|
|
13233
13288
|
_chunk7QVYU63Ejs.__name.call(void 0, ContentsList, "ContentsList");
|
|
13234
13289
|
function ContentsListElement({ content }) {
|
|
13235
13290
|
const generateUrl = usePageUrlGenerator();
|
|
13236
|
-
const contentModule = content.contentType ?
|
|
13291
|
+
const contentModule = content.contentType ? _chunkKYG2PIRBjs.Modules.findByModelName(content.contentType) : void 0;
|
|
13237
13292
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
13238
13293
|
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: [
|
|
13239
13294
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCard, { children: [
|
|
13240
13295
|
/* @__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: [
|
|
13241
|
-
contentModule &&
|
|
13296
|
+
contentModule && _chunkKYG2PIRBjs.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
13242
13297
|
content.name
|
|
13243
13298
|
] }) }),
|
|
13244
13299
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCardContent, { className: "flex max-h-96 w-96 flex-col gap-y-4 overflow-y-auto", children: [
|
|
@@ -13257,8 +13312,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListElement, "ContentsListElement")
|
|
|
13257
13312
|
function ContentsListById({ contentIds }) {
|
|
13258
13313
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13259
13314
|
const data = useDataListRetriever({
|
|
13260
|
-
module:
|
|
13261
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
13315
|
+
module: _chunkKYG2PIRBjs.Modules.Content,
|
|
13316
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkKYG2PIRBjs.ContentService.findMany(params), "retriever"),
|
|
13262
13317
|
retrieverParams: { contentIds }
|
|
13263
13318
|
});
|
|
13264
13319
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -13266,7 +13321,7 @@ function ContentsListById({ contentIds }) {
|
|
|
13266
13321
|
{
|
|
13267
13322
|
data,
|
|
13268
13323
|
fields: ["name" /* name */, "authors" /* authors */, "updatedAt" /* updatedAt */],
|
|
13269
|
-
tableGeneratorType:
|
|
13324
|
+
tableGeneratorType: _chunkKYG2PIRBjs.Modules.Content,
|
|
13270
13325
|
title: t(`common.relevant`)
|
|
13271
13326
|
}
|
|
13272
13327
|
);
|
|
@@ -13279,8 +13334,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListById, "ContentsListById");
|
|
|
13279
13334
|
function RelevantContentsList({ id }) {
|
|
13280
13335
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13281
13336
|
const data = useDataListRetriever({
|
|
13282
|
-
module:
|
|
13283
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
13337
|
+
module: _chunkKYG2PIRBjs.Modules.Content,
|
|
13338
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkKYG2PIRBjs.ContentService.findRelevant(params), "retriever"),
|
|
13284
13339
|
retrieverParams: { id }
|
|
13285
13340
|
});
|
|
13286
13341
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -13288,7 +13343,7 @@ function RelevantContentsList({ id }) {
|
|
|
13288
13343
|
{
|
|
13289
13344
|
data,
|
|
13290
13345
|
fields: ["name" /* name */, "authors" /* authors */, "relevance" /* relevance */, "updatedAt" /* updatedAt */],
|
|
13291
|
-
tableGeneratorType:
|
|
13346
|
+
tableGeneratorType: _chunkKYG2PIRBjs.Modules.Content,
|
|
13292
13347
|
title: t(`common.relevant`)
|
|
13293
13348
|
}
|
|
13294
13349
|
);
|
|
@@ -13341,12 +13396,12 @@ function NotificationsList({ archived }) {
|
|
|
13341
13396
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13342
13397
|
const generateUrl = usePageUrlGenerator();
|
|
13343
13398
|
const data = useDataListRetriever({
|
|
13344
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
13399
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkKYG2PIRBjs.NotificationService.findMany(params), "retriever"),
|
|
13345
13400
|
retrieverParams: { isArchived: archived },
|
|
13346
|
-
module:
|
|
13401
|
+
module: _chunkKYG2PIRBjs.Modules.Notification
|
|
13347
13402
|
});
|
|
13348
13403
|
const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
|
|
13349
|
-
await
|
|
13404
|
+
await _chunkKYG2PIRBjs.NotificationService.archive({ id: notification.id });
|
|
13350
13405
|
data.removeElement(notification);
|
|
13351
13406
|
}, "archiveNotification");
|
|
13352
13407
|
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: [
|
|
@@ -13360,7 +13415,7 @@ function NotificationsList({ archived }) {
|
|
|
13360
13415
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _326 => _326.data, 'optionalAccess', _327 => _327.map, 'call', _328 => _328((notification) => {
|
|
13361
13416
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
13362
13417
|
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: [
|
|
13363
|
-
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:
|
|
13418
|
+
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: _chunkKYG2PIRBjs.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" }),
|
|
13364
13419
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
13365
13420
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
13366
13421
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
@@ -13503,7 +13558,7 @@ function NotificationModalContent({ isOpen, setIsOpen }) {
|
|
|
13503
13558
|
batch.forEach((notification) => {
|
|
13504
13559
|
addNotification(notification);
|
|
13505
13560
|
const toastNotification = generateToastNotification(notification, t, generateUrl);
|
|
13506
|
-
|
|
13561
|
+
_chunkKYG2PIRBjs.showToast.call(void 0, toastNotification.title, {
|
|
13507
13562
|
description: toastNotification.description,
|
|
13508
13563
|
action: toastNotification.action
|
|
13509
13564
|
});
|
|
@@ -13664,13 +13719,13 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
13664
13719
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13665
13720
|
_react.useEffect.call(void 0, () => {
|
|
13666
13721
|
async function checkCompanyAdminDeletability() {
|
|
13667
|
-
const roleUsers = await
|
|
13722
|
+
const roleUsers = await _chunkKYG2PIRBjs.UserService.findAllUsersByRole({
|
|
13668
13723
|
roleId: role.id
|
|
13669
13724
|
});
|
|
13670
13725
|
if (roleUsers.length > 1) setCanRemove(true);
|
|
13671
13726
|
}
|
|
13672
13727
|
_chunk7QVYU63Ejs.__name.call(void 0, checkCompanyAdminDeletability, "checkCompanyAdminDeletability");
|
|
13673
|
-
if (role.id !==
|
|
13728
|
+
if (role.id !== _chunkNPNKFWV2js.getRoleId.call(void 0, ).CompanyAdministrator) {
|
|
13674
13729
|
setCanRemove(true);
|
|
13675
13730
|
return;
|
|
13676
13731
|
}
|
|
@@ -13678,7 +13733,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
13678
13733
|
}, [role]);
|
|
13679
13734
|
const remove = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
13680
13735
|
try {
|
|
13681
|
-
await
|
|
13736
|
+
await _chunkKYG2PIRBjs.RoleService.removeUserFromRole({
|
|
13682
13737
|
roleId: role.id,
|
|
13683
13738
|
userId: user.id
|
|
13684
13739
|
});
|
|
@@ -13741,12 +13796,12 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
13741
13796
|
const [roles, setRoles] = _react.useState.call(void 0, []);
|
|
13742
13797
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13743
13798
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (role) => {
|
|
13744
|
-
await
|
|
13799
|
+
await _chunkKYG2PIRBjs.RoleService.addUserToRole({
|
|
13745
13800
|
roleId: role.id,
|
|
13746
13801
|
userId: user.id
|
|
13747
13802
|
});
|
|
13748
13803
|
setRoles(roles.filter((u) => u.id !== role.id));
|
|
13749
|
-
|
|
13804
|
+
_chunkKYG2PIRBjs.showToast.call(void 0,
|
|
13750
13805
|
t(`common.association.label`, {
|
|
13751
13806
|
source: t(`entities.roles`, { count: 1 }),
|
|
13752
13807
|
destination: t(`entities.users`, { count: 1 })
|
|
@@ -13765,7 +13820,7 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
13765
13820
|
const searchRoles = _react.useCallback.call(void 0,
|
|
13766
13821
|
async (term) => {
|
|
13767
13822
|
setRoles(
|
|
13768
|
-
await
|
|
13823
|
+
await _chunkKYG2PIRBjs.RoleService.findAllRolesUserNotIn({
|
|
13769
13824
|
search: term,
|
|
13770
13825
|
userId: user.id
|
|
13771
13826
|
})
|
|
@@ -13833,16 +13888,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserRoleAdd, "UserRoleAdd");
|
|
|
13833
13888
|
function RolesList() {
|
|
13834
13889
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13835
13890
|
const data = useDataListRetriever({
|
|
13836
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
13891
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkKYG2PIRBjs.RoleService.findAllRoles(params), "retriever"),
|
|
13837
13892
|
retrieverParams: {},
|
|
13838
|
-
module:
|
|
13893
|
+
module: _chunkKYG2PIRBjs.Modules.Role
|
|
13839
13894
|
});
|
|
13840
13895
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13841
13896
|
ContentListTable,
|
|
13842
13897
|
{
|
|
13843
13898
|
data,
|
|
13844
13899
|
fields: ["name" /* name */, "description" /* description */],
|
|
13845
|
-
tableGeneratorType:
|
|
13900
|
+
tableGeneratorType: _chunkKYG2PIRBjs.Modules.Role,
|
|
13846
13901
|
title: t(`entities.roles`, { count: 2 })
|
|
13847
13902
|
}
|
|
13848
13903
|
);
|
|
@@ -13855,16 +13910,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RolesList, "RolesList");
|
|
|
13855
13910
|
function UserRolesList({ user }) {
|
|
13856
13911
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13857
13912
|
const data = useDataListRetriever({
|
|
13858
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
13913
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkKYG2PIRBjs.RoleService.findAllRolesByUser(params), "retriever"),
|
|
13859
13914
|
retrieverParams: { userId: user.id },
|
|
13860
|
-
module:
|
|
13915
|
+
module: _chunkKYG2PIRBjs.Modules.Role
|
|
13861
13916
|
});
|
|
13862
13917
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13863
13918
|
ContentListTable,
|
|
13864
13919
|
{
|
|
13865
13920
|
data,
|
|
13866
13921
|
fields: ["name" /* name */, "description" /* description */],
|
|
13867
|
-
tableGeneratorType:
|
|
13922
|
+
tableGeneratorType: _chunkKYG2PIRBjs.Modules.Role,
|
|
13868
13923
|
title: t(`entities.roles`, { count: 2 })
|
|
13869
13924
|
}
|
|
13870
13925
|
);
|
|
@@ -13982,7 +14037,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthRedirectUriInput, "OAuthRedirectUriInp
|
|
|
13982
14037
|
function OAuthScopeSelector({
|
|
13983
14038
|
value,
|
|
13984
14039
|
onChange,
|
|
13985
|
-
availableScopes =
|
|
14040
|
+
availableScopes = _chunkKYG2PIRBjs.AVAILABLE_OAUTH_SCOPES,
|
|
13986
14041
|
disabled = false,
|
|
13987
14042
|
error,
|
|
13988
14043
|
label = "Allowed Scopes"
|
|
@@ -14309,7 +14364,7 @@ function OAuthClientForm({
|
|
|
14309
14364
|
description: formState.description.trim() || void 0,
|
|
14310
14365
|
redirectUris: formState.redirectUris.filter((uri) => uri.trim()),
|
|
14311
14366
|
allowedScopes: formState.allowedScopes,
|
|
14312
|
-
allowedGrantTypes:
|
|
14367
|
+
allowedGrantTypes: _chunkKYG2PIRBjs.DEFAULT_GRANT_TYPES,
|
|
14313
14368
|
isConfidential: formState.isConfidential
|
|
14314
14369
|
};
|
|
14315
14370
|
await onSubmit(data);
|
|
@@ -14510,7 +14565,7 @@ function OAuthClientDetail({
|
|
|
14510
14565
|
] }),
|
|
14511
14566
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
14512
14567
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
14513
|
-
/* @__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([
|
|
14568
|
+
/* @__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([_chunkKYG2PIRBjs.OAUTH_SCOPE_DISPLAY, 'access', _338 => _338[scope], 'optionalAccess', _339 => _339.name]) || scope }, scope)) })
|
|
14514
14569
|
] }),
|
|
14515
14570
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
14516
14571
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -15177,4 +15232,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthConsentScreen, "OAuthConsentScreen");
|
|
|
15177
15232
|
|
|
15178
15233
|
|
|
15179
15234
|
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.GdprConsentCheckbox = GdprConsentCheckbox; exports.FormFeatures = FormFeatures; exports.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; exports.GdprConsentSection = GdprConsentSection; exports.AuthContainer = AuthContainer; exports.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;
|
|
15180
|
-
//# sourceMappingURL=chunk-
|
|
15235
|
+
//# sourceMappingURL=chunk-HIF7DYR3.js.map
|