@carlonicora/nextjs-jsonapi 1.29.5 → 1.30.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-C25QYFYD.mjs → BlockNoteEditor-CEJE3YHQ.mjs} +4 -4
- package/dist/{BlockNoteEditor-6U5KIP4Q.js → BlockNoteEditor-TUJ3VCS3.js} +14 -14
- package/dist/{BlockNoteEditor-6U5KIP4Q.js.map → BlockNoteEditor-TUJ3VCS3.js.map} +1 -1
- package/dist/billing/index.js +335 -335
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-UYBCHXXL.js → chunk-5KQXRLK3.js} +25 -2
- package/dist/chunk-5KQXRLK3.js.map +1 -0
- package/dist/{chunk-CYZZ3E33.js → chunk-BHKXZF2I.js} +493 -501
- package/dist/chunk-BHKXZF2I.js.map +1 -0
- package/dist/{chunk-GR4QPP36.mjs → chunk-C62JXXUX.mjs} +1 -1
- package/dist/{chunk-EW6QPMN3.js → chunk-OR5NPUWF.js} +1 -1
- package/dist/{chunk-EW6QPMN3.js.map → chunk-OR5NPUWF.js.map} +1 -1
- package/dist/{chunk-NYNLJEPF.mjs → chunk-WQ3KF6BG.mjs} +24 -1
- package/dist/chunk-WQ3KF6BG.mjs.map +1 -0
- package/dist/{chunk-QFN6RG6A.mjs → chunk-XY6HEWHI.mjs} +28 -36
- package/dist/chunk-XY6HEWHI.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 +25 -2
- package/dist/core/index.d.ts +25 -2
- package/dist/core/index.js +10 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +9 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -2
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/containers/ReactMarkdownContainer.tsx +1 -1
- package/src/components/errors/errorToast.ts +2 -4
- package/src/components/forms/CommonAssociationForm.tsx +3 -3
- package/src/components/forms/FileUploader.tsx +4 -4
- package/src/features/auth/components/forms/AcceptInvitation.tsx +2 -2
- package/src/features/auth/components/forms/ActivateAccount.tsx +2 -2
- package/src/features/auth/components/forms/ForgotPassword.tsx +1 -1
- package/src/features/auth/components/forms/Login.tsx +4 -4
- package/src/features/auth/components/forms/Register.tsx +1 -1
- package/src/features/auth/components/forms/ResetPassword.tsx +2 -2
- package/src/features/company/components/forms/CompanyConfigurationEditor.tsx +3 -3
- package/src/features/company/components/forms/CompanyDeleter.tsx +1 -1
- package/src/features/notification/components/modals/NotificationModal.tsx +2 -2
- package/src/features/role/components/forms/UserRoleAdd.tsx +2 -2
- package/src/features/user/components/forms/UserResentInvitationEmail.tsx +2 -2
- package/src/features/user/components/widgets/UserSearchPopover.tsx +1 -1
- package/src/index.ts +3 -0
- package/src/shadcnui/ui/sonner.tsx +13 -23
- package/src/utils/index.ts +3 -0
- package/src/utils/toast.ts +39 -0
- package/dist/chunk-CYZZ3E33.js.map +0 -1
- package/dist/chunk-NYNLJEPF.mjs.map +0 -1
- package/dist/chunk-QFN6RG6A.mjs.map +0 -1
- package/dist/chunk-UYBCHXXL.js.map +0 -1
- /package/dist/{BlockNoteEditor-C25QYFYD.mjs.map → BlockNoteEditor-CEJE3YHQ.mjs.map} +0 -0
- /package/dist/{chunk-GR4QPP36.mjs.map → chunk-C62JXXUX.mjs.map} +0 -0
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkOR5NPUWFjs = require('./chunk-OR5NPUWF.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -37,7 +37,9 @@ var _chunkEW6QPMN3js = require('./chunk-EW6QPMN3.js');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
var _chunk5KQXRLK3js = require('./chunk-5KQXRLK3.js');
|
|
41
43
|
|
|
42
44
|
|
|
43
45
|
var _chunk3EPNHTMHjs = require('./chunk-3EPNHTMH.js');
|
|
@@ -183,7 +185,7 @@ function useDataListRetriever(params) {
|
|
|
183
185
|
const isFetchingRef = _react.useRef.call(void 0, false);
|
|
184
186
|
const isPaginatingRef = _react.useRef.call(void 0, false);
|
|
185
187
|
const resolvedType = params.module;
|
|
186
|
-
const resolvedService =
|
|
188
|
+
const resolvedService = _chunk5KQXRLK3js.ClientAbstractService;
|
|
187
189
|
const parsePageParams = _react.useCallback.call(void 0, (url) => {
|
|
188
190
|
if (!url) return null;
|
|
189
191
|
try {
|
|
@@ -938,20 +940,20 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
938
940
|
if (!token && dehydratedUser) setDehydratedUser(null);
|
|
939
941
|
}, [dehydratedUser, setDehydratedUser]);
|
|
940
942
|
const matchUrlToModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
941
|
-
const moduleKeys = Object.getOwnPropertyNames(
|
|
943
|
+
const moduleKeys = Object.getOwnPropertyNames(_chunk5KQXRLK3js.Modules).filter(
|
|
942
944
|
(key) => key !== "prototype" && key !== "_factory" && key !== "length" && key !== "name"
|
|
943
945
|
);
|
|
944
946
|
const matchedModuleKey = moduleKeys.find((key) => {
|
|
945
|
-
const descriptor2 = Object.getOwnPropertyDescriptor(
|
|
947
|
+
const descriptor2 = Object.getOwnPropertyDescriptor(_chunk5KQXRLK3js.Modules, key);
|
|
946
948
|
if (!_optionalChain([descriptor2, 'optionalAccess', _29 => _29.get])) return false;
|
|
947
|
-
const selectedModule = descriptor2.get.call(
|
|
949
|
+
const selectedModule = descriptor2.get.call(_chunk5KQXRLK3js.Modules);
|
|
948
950
|
return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _30 => _30.pageUrl, 'optionalAccess', _31 => _31.toLowerCase, 'call', _32 => _32()]));
|
|
949
951
|
});
|
|
950
952
|
if (!matchedModuleKey) return void 0;
|
|
951
|
-
const descriptor = Object.getOwnPropertyDescriptor(
|
|
952
|
-
return _optionalChain([descriptor, 'optionalAccess', _33 => _33.get, 'optionalAccess', _34 => _34.call, 'call', _35 => _35(
|
|
953
|
+
const descriptor = Object.getOwnPropertyDescriptor(_chunk5KQXRLK3js.Modules, matchedModuleKey);
|
|
954
|
+
return _optionalChain([descriptor, 'optionalAccess', _33 => _33.get, 'optionalAccess', _34 => _34.call, 'call', _35 => _35(_chunk5KQXRLK3js.Modules)]);
|
|
953
955
|
}, "matchUrlToModule");
|
|
954
|
-
const currentUser = dehydratedUser ?
|
|
956
|
+
const currentUser = dehydratedUser ? _chunk5KQXRLK3js.rehydrate.call(void 0, _chunk5KQXRLK3js.Modules.User, dehydratedUser) : null;
|
|
955
957
|
const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _36 => _36.company]), () => ( null));
|
|
956
958
|
const setUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (user) => {
|
|
957
959
|
if (user) setDehydratedUser(user.dehydrate());
|
|
@@ -962,21 +964,21 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
962
964
|
return !!_optionalChain([currentUser, 'access', _37 => _37.roles, 'optionalAccess', _38 => _38.some, 'call', _39 => _39((userRole) => userRole.id === roleId)]);
|
|
963
965
|
}, "hasRole");
|
|
964
966
|
const hasAccesToFeature = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (featureIdentifier) => {
|
|
965
|
-
if (hasRole(
|
|
967
|
+
if (hasRole(_chunkOR5NPUWFjs.getRoleId.call(void 0, ).Administrator)) return true;
|
|
966
968
|
if (!company) return false;
|
|
967
969
|
return company.features.some((feature) => feature.id === featureIdentifier);
|
|
968
970
|
}, "hasAccesToFeature");
|
|
969
971
|
function hasPermissionToModule(params) {
|
|
970
972
|
if (!currentUser) return false;
|
|
971
973
|
if (!!params.module.feature && !hasAccesToFeature(params.module.feature)) return false;
|
|
972
|
-
return
|
|
974
|
+
return _chunk5KQXRLK3js.checkPermissions.call(void 0, { module: params.module, action: params.action, data: params.data, user: currentUser });
|
|
973
975
|
}
|
|
974
976
|
_chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModule, "hasPermissionToModule");
|
|
975
977
|
function hasPermissionToModules(params) {
|
|
976
978
|
if (!currentUser) return false;
|
|
977
979
|
if (!params.modules.every((module) => !module.feature || hasAccesToFeature(module.feature))) return false;
|
|
978
980
|
return params.modules.every(
|
|
979
|
-
(module) =>
|
|
981
|
+
(module) => _chunk5KQXRLK3js.checkPermissions.call(void 0, { module, action: params.action, data: params.data, user: currentUser })
|
|
980
982
|
);
|
|
981
983
|
}
|
|
982
984
|
_chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModules, "hasPermissionToModules");
|
|
@@ -994,7 +996,7 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
994
996
|
if (isRefreshing) return;
|
|
995
997
|
setIsRefreshing(true);
|
|
996
998
|
try {
|
|
997
|
-
const fullUser = await
|
|
999
|
+
const fullUser = await _chunk5KQXRLK3js.UserService.findFullUser();
|
|
998
1000
|
if (fullUser) {
|
|
999
1001
|
setDehydratedUser(fullUser.dehydrate());
|
|
1000
1002
|
}
|
|
@@ -1068,7 +1070,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
1068
1070
|
const [existingUsers, setExistingUsers] = _react.useState.call(void 0, null);
|
|
1069
1071
|
_react.useEffect.call(void 0, () => {
|
|
1070
1072
|
const fetchExistingUsers = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
1071
|
-
setExistingUsers(await
|
|
1073
|
+
setExistingUsers(await _chunk5KQXRLK3js.UserService.findMany({ roleId: role.id, fetchAll: true }));
|
|
1072
1074
|
}, "fetchExistingUsers");
|
|
1073
1075
|
if (show) {
|
|
1074
1076
|
setExistingUsers(null);
|
|
@@ -1076,7 +1078,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
1076
1078
|
}
|
|
1077
1079
|
}, [show]);
|
|
1078
1080
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (user) => {
|
|
1079
|
-
await
|
|
1081
|
+
await _chunk5KQXRLK3js.RoleService.addUserToRole({
|
|
1080
1082
|
roleId: role.id,
|
|
1081
1083
|
userId: user.id
|
|
1082
1084
|
});
|
|
@@ -1092,9 +1094,9 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
1092
1094
|
}, "addUserToRole");
|
|
1093
1095
|
const data = useDataListRetriever({
|
|
1094
1096
|
ready: !!company && show,
|
|
1095
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
1097
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk5KQXRLK3js.UserService.findAllUsers(params), "retriever"),
|
|
1096
1098
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _46 => _46.id]) },
|
|
1097
|
-
module:
|
|
1099
|
+
module: _chunk5KQXRLK3js.Modules.User
|
|
1098
1100
|
});
|
|
1099
1101
|
_react.useEffect.call(void 0, () => {
|
|
1100
1102
|
if (!!company && show) {
|
|
@@ -1145,7 +1147,7 @@ function Accordion({ className, ...props }) {
|
|
|
1145
1147
|
_accordion.Accordion.Root,
|
|
1146
1148
|
{
|
|
1147
1149
|
"data-slot": "accordion",
|
|
1148
|
-
className:
|
|
1150
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "overflow-hidden rounded-md border flex w-full flex-col", className),
|
|
1149
1151
|
...props
|
|
1150
1152
|
}
|
|
1151
1153
|
);
|
|
@@ -1156,7 +1158,7 @@ function AccordionItem({ className, ...props }) {
|
|
|
1156
1158
|
_accordion.Accordion.Item,
|
|
1157
1159
|
{
|
|
1158
1160
|
"data-slot": "accordion-item",
|
|
1159
|
-
className:
|
|
1161
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "data-open:bg-muted/50 not-last:border-b", className),
|
|
1160
1162
|
...props
|
|
1161
1163
|
}
|
|
1162
1164
|
);
|
|
@@ -1171,7 +1173,7 @@ function AccordionTrigger({
|
|
|
1171
1173
|
_accordion.Accordion.Trigger,
|
|
1172
1174
|
{
|
|
1173
1175
|
"data-slot": "accordion-trigger",
|
|
1174
|
-
className:
|
|
1176
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1175
1177
|
"**: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",
|
|
1176
1178
|
className
|
|
1177
1179
|
),
|
|
@@ -1199,7 +1201,7 @@ function AccordionContent({
|
|
|
1199
1201
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1200
1202
|
"div",
|
|
1201
1203
|
{
|
|
1202
|
-
className:
|
|
1204
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1203
1205
|
"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",
|
|
1204
1206
|
className
|
|
1205
1207
|
),
|
|
@@ -1235,7 +1237,7 @@ function Alert({
|
|
|
1235
1237
|
{
|
|
1236
1238
|
"data-slot": "alert",
|
|
1237
1239
|
role: "alert",
|
|
1238
|
-
className:
|
|
1240
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, alertVariants({ variant }), className),
|
|
1239
1241
|
...props
|
|
1240
1242
|
}
|
|
1241
1243
|
);
|
|
@@ -1246,7 +1248,7 @@ function AlertTitle({ className, ...props }) {
|
|
|
1246
1248
|
"div",
|
|
1247
1249
|
{
|
|
1248
1250
|
"data-slot": "alert-title",
|
|
1249
|
-
className:
|
|
1251
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1250
1252
|
"font-medium group-has-[>svg]/alert:col-start-2 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3",
|
|
1251
1253
|
className
|
|
1252
1254
|
),
|
|
@@ -1263,7 +1265,7 @@ function AlertDescription({
|
|
|
1263
1265
|
"div",
|
|
1264
1266
|
{
|
|
1265
1267
|
"data-slot": "alert-description",
|
|
1266
|
-
className:
|
|
1268
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1267
1269
|
"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",
|
|
1268
1270
|
className
|
|
1269
1271
|
),
|
|
@@ -1277,7 +1279,7 @@ function AlertAction({ className, ...props }) {
|
|
|
1277
1279
|
"div",
|
|
1278
1280
|
{
|
|
1279
1281
|
"data-slot": "alert-action",
|
|
1280
|
-
className:
|
|
1282
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "absolute top-1.5 right-2", className),
|
|
1281
1283
|
...props
|
|
1282
1284
|
}
|
|
1283
1285
|
);
|
|
@@ -1330,7 +1332,7 @@ function Button({
|
|
|
1330
1332
|
_button.Button,
|
|
1331
1333
|
{
|
|
1332
1334
|
"data-slot": "button",
|
|
1333
|
-
className:
|
|
1335
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, buttonVariants({ variant, size, className })),
|
|
1334
1336
|
...props
|
|
1335
1337
|
}
|
|
1336
1338
|
);
|
|
@@ -1359,7 +1361,7 @@ function AlertDialogOverlay({
|
|
|
1359
1361
|
_alertdialog.AlertDialog.Backdrop,
|
|
1360
1362
|
{
|
|
1361
1363
|
"data-slot": "alert-dialog-overlay",
|
|
1362
|
-
className:
|
|
1364
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1363
1365
|
"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",
|
|
1364
1366
|
className
|
|
1365
1367
|
),
|
|
@@ -1380,7 +1382,7 @@ function AlertDialogContent({
|
|
|
1380
1382
|
{
|
|
1381
1383
|
"data-slot": "alert-dialog-content",
|
|
1382
1384
|
"data-size": size,
|
|
1383
|
-
className:
|
|
1385
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1384
1386
|
"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",
|
|
1385
1387
|
className
|
|
1386
1388
|
),
|
|
@@ -1398,7 +1400,7 @@ function AlertDialogHeader({
|
|
|
1398
1400
|
"div",
|
|
1399
1401
|
{
|
|
1400
1402
|
"data-slot": "alert-dialog-header",
|
|
1401
|
-
className:
|
|
1403
|
+
className: _chunk5KQXRLK3js.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),
|
|
1402
1404
|
...props
|
|
1403
1405
|
}
|
|
1404
1406
|
);
|
|
@@ -1412,7 +1414,7 @@ function AlertDialogFooter({
|
|
|
1412
1414
|
"div",
|
|
1413
1415
|
{
|
|
1414
1416
|
"data-slot": "alert-dialog-footer",
|
|
1415
|
-
className:
|
|
1417
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1416
1418
|
"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",
|
|
1417
1419
|
className
|
|
1418
1420
|
),
|
|
@@ -1429,7 +1431,7 @@ function AlertDialogMedia({
|
|
|
1429
1431
|
"div",
|
|
1430
1432
|
{
|
|
1431
1433
|
"data-slot": "alert-dialog-media",
|
|
1432
|
-
className:
|
|
1434
|
+
className: _chunk5KQXRLK3js.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),
|
|
1433
1435
|
...props
|
|
1434
1436
|
}
|
|
1435
1437
|
);
|
|
@@ -1443,7 +1445,7 @@ function AlertDialogTitle({
|
|
|
1443
1445
|
_alertdialog.AlertDialog.Title,
|
|
1444
1446
|
{
|
|
1445
1447
|
"data-slot": "alert-dialog-title",
|
|
1446
|
-
className:
|
|
1448
|
+
className: _chunk5KQXRLK3js.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),
|
|
1447
1449
|
...props
|
|
1448
1450
|
}
|
|
1449
1451
|
);
|
|
@@ -1457,7 +1459,7 @@ function AlertDialogDescription({
|
|
|
1457
1459
|
_alertdialog.AlertDialog.Description,
|
|
1458
1460
|
{
|
|
1459
1461
|
"data-slot": "alert-dialog-description",
|
|
1460
|
-
className:
|
|
1462
|
+
className: _chunk5KQXRLK3js.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),
|
|
1461
1463
|
...props
|
|
1462
1464
|
}
|
|
1463
1465
|
);
|
|
@@ -1471,7 +1473,7 @@ function AlertDialogAction({
|
|
|
1471
1473
|
Button,
|
|
1472
1474
|
{
|
|
1473
1475
|
"data-slot": "alert-dialog-action",
|
|
1474
|
-
className:
|
|
1476
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, className),
|
|
1475
1477
|
...props
|
|
1476
1478
|
}
|
|
1477
1479
|
);
|
|
@@ -1487,7 +1489,7 @@ function AlertDialogCancel({
|
|
|
1487
1489
|
_alertdialog.AlertDialog.Close,
|
|
1488
1490
|
{
|
|
1489
1491
|
"data-slot": "alert-dialog-cancel",
|
|
1490
|
-
className:
|
|
1492
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, className),
|
|
1491
1493
|
render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant, size }),
|
|
1492
1494
|
...props
|
|
1493
1495
|
}
|
|
@@ -1508,7 +1510,7 @@ function Avatar({
|
|
|
1508
1510
|
{
|
|
1509
1511
|
"data-slot": "avatar",
|
|
1510
1512
|
"data-size": size,
|
|
1511
|
-
className:
|
|
1513
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1512
1514
|
"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",
|
|
1513
1515
|
className
|
|
1514
1516
|
),
|
|
@@ -1522,7 +1524,7 @@ function AvatarImage({ className, ...props }) {
|
|
|
1522
1524
|
_avatar.Avatar.Image,
|
|
1523
1525
|
{
|
|
1524
1526
|
"data-slot": "avatar-image",
|
|
1525
|
-
className:
|
|
1527
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1526
1528
|
"rounded-full aspect-square size-full object-cover",
|
|
1527
1529
|
className
|
|
1528
1530
|
),
|
|
@@ -1539,7 +1541,7 @@ function AvatarFallback({
|
|
|
1539
1541
|
_avatar.Avatar.Fallback,
|
|
1540
1542
|
{
|
|
1541
1543
|
"data-slot": "avatar-fallback",
|
|
1542
|
-
className:
|
|
1544
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1543
1545
|
"bg-muted text-muted-foreground rounded-full flex size-full items-center justify-center text-sm group-data-[size=sm]/avatar:text-xs",
|
|
1544
1546
|
className
|
|
1545
1547
|
),
|
|
@@ -1553,7 +1555,7 @@ function AvatarBadge({ className, ...props }) {
|
|
|
1553
1555
|
"span",
|
|
1554
1556
|
{
|
|
1555
1557
|
"data-slot": "avatar-badge",
|
|
1556
|
-
className:
|
|
1558
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1557
1559
|
"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",
|
|
1558
1560
|
"group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden",
|
|
1559
1561
|
"group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2",
|
|
@@ -1570,7 +1572,7 @@ function AvatarGroup({ className, ...props }) {
|
|
|
1570
1572
|
"div",
|
|
1571
1573
|
{
|
|
1572
1574
|
"data-slot": "avatar-group",
|
|
1573
|
-
className:
|
|
1575
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1574
1576
|
"*:data-[slot=avatar]:ring-background group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2",
|
|
1575
1577
|
className
|
|
1576
1578
|
),
|
|
@@ -1587,7 +1589,7 @@ function AvatarGroupCount({
|
|
|
1587
1589
|
"div",
|
|
1588
1590
|
{
|
|
1589
1591
|
"data-slot": "avatar-group-count",
|
|
1590
|
-
className:
|
|
1592
|
+
className: _chunk5KQXRLK3js.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),
|
|
1591
1593
|
...props
|
|
1592
1594
|
}
|
|
1593
1595
|
);
|
|
@@ -1626,7 +1628,7 @@ function Badge({
|
|
|
1626
1628
|
defaultTagName: "span",
|
|
1627
1629
|
props: _mergeprops.mergeProps.call(void 0,
|
|
1628
1630
|
{
|
|
1629
|
-
className:
|
|
1631
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, badgeVariants({ className, variant }))
|
|
1630
1632
|
},
|
|
1631
1633
|
props
|
|
1632
1634
|
),
|
|
@@ -1650,7 +1652,7 @@ function Breadcrumb({ className, ...props }) {
|
|
|
1650
1652
|
{
|
|
1651
1653
|
"aria-label": "breadcrumb",
|
|
1652
1654
|
"data-slot": "breadcrumb",
|
|
1653
|
-
className:
|
|
1655
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, className),
|
|
1654
1656
|
...props
|
|
1655
1657
|
}
|
|
1656
1658
|
);
|
|
@@ -1661,7 +1663,7 @@ function BreadcrumbList({ className, ...props }) {
|
|
|
1661
1663
|
"ol",
|
|
1662
1664
|
{
|
|
1663
1665
|
"data-slot": "breadcrumb-list",
|
|
1664
|
-
className:
|
|
1666
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1665
1667
|
"text-muted-foreground gap-1.5 text-xs/relaxed flex flex-wrap items-center break-words",
|
|
1666
1668
|
className
|
|
1667
1669
|
),
|
|
@@ -1675,7 +1677,7 @@ function BreadcrumbItem({ className, ...props }) {
|
|
|
1675
1677
|
"li",
|
|
1676
1678
|
{
|
|
1677
1679
|
"data-slot": "breadcrumb-item",
|
|
1678
|
-
className:
|
|
1680
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "gap-1 inline-flex items-center", className),
|
|
1679
1681
|
...props
|
|
1680
1682
|
}
|
|
1681
1683
|
);
|
|
@@ -1690,7 +1692,7 @@ function BreadcrumbLink({
|
|
|
1690
1692
|
defaultTagName: "a",
|
|
1691
1693
|
props: _mergeprops.mergeProps.call(void 0,
|
|
1692
1694
|
{
|
|
1693
|
-
className:
|
|
1695
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "hover:text-foreground transition-colors", className)
|
|
1694
1696
|
},
|
|
1695
1697
|
props
|
|
1696
1698
|
),
|
|
@@ -1709,7 +1711,7 @@ function BreadcrumbPage({ className, ...props }) {
|
|
|
1709
1711
|
role: "link",
|
|
1710
1712
|
"aria-disabled": "true",
|
|
1711
1713
|
"aria-current": "page",
|
|
1712
|
-
className:
|
|
1714
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-foreground font-normal", className),
|
|
1713
1715
|
...props
|
|
1714
1716
|
}
|
|
1715
1717
|
);
|
|
@@ -1726,7 +1728,7 @@ function BreadcrumbSeparator({
|
|
|
1726
1728
|
"data-slot": "breadcrumb-separator",
|
|
1727
1729
|
role: "presentation",
|
|
1728
1730
|
"aria-hidden": "true",
|
|
1729
|
-
className:
|
|
1731
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "[&>svg]:size-3.5", className),
|
|
1730
1732
|
...props,
|
|
1731
1733
|
children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1732
1734
|
_lucidereact.ChevronRightIcon,
|
|
@@ -1746,7 +1748,7 @@ function BreadcrumbEllipsis({
|
|
|
1746
1748
|
"data-slot": "breadcrumb-ellipsis",
|
|
1747
1749
|
role: "presentation",
|
|
1748
1750
|
"aria-hidden": "true",
|
|
1749
|
-
className:
|
|
1751
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1750
1752
|
"size-4 [&>svg]:size-3.5 flex items-center justify-center",
|
|
1751
1753
|
className
|
|
1752
1754
|
),
|
|
@@ -1786,7 +1788,7 @@ function Calendar({
|
|
|
1786
1788
|
_reactdaypicker.DayPicker,
|
|
1787
1789
|
{
|
|
1788
1790
|
showOutsideDays,
|
|
1789
|
-
className:
|
|
1791
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1790
1792
|
"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",
|
|
1791
1793
|
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
1792
1794
|
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
@@ -1798,89 +1800,89 @@ function Calendar({
|
|
|
1798
1800
|
...formatters
|
|
1799
1801
|
},
|
|
1800
1802
|
classNames: {
|
|
1801
|
-
root:
|
|
1802
|
-
months:
|
|
1803
|
+
root: _chunk5KQXRLK3js.cn.call(void 0, "w-fit", defaultClassNames.root),
|
|
1804
|
+
months: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1803
1805
|
"flex gap-4 flex-col md:flex-row relative",
|
|
1804
1806
|
defaultClassNames.months
|
|
1805
1807
|
),
|
|
1806
|
-
month:
|
|
1807
|
-
nav:
|
|
1808
|
+
month: _chunk5KQXRLK3js.cn.call(void 0, "flex flex-col w-full gap-4", defaultClassNames.month),
|
|
1809
|
+
nav: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1808
1810
|
"flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
|
|
1809
1811
|
defaultClassNames.nav
|
|
1810
1812
|
),
|
|
1811
|
-
button_previous:
|
|
1813
|
+
button_previous: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1812
1814
|
buttonVariants({ variant: buttonVariant }),
|
|
1813
1815
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
1814
1816
|
defaultClassNames.button_previous
|
|
1815
1817
|
),
|
|
1816
|
-
button_next:
|
|
1818
|
+
button_next: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1817
1819
|
buttonVariants({ variant: buttonVariant }),
|
|
1818
1820
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
1819
1821
|
defaultClassNames.button_next
|
|
1820
1822
|
),
|
|
1821
|
-
month_caption:
|
|
1823
|
+
month_caption: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1822
1824
|
"flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
|
|
1823
1825
|
defaultClassNames.month_caption
|
|
1824
1826
|
),
|
|
1825
|
-
dropdowns:
|
|
1827
|
+
dropdowns: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1826
1828
|
"w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
|
|
1827
1829
|
defaultClassNames.dropdowns
|
|
1828
1830
|
),
|
|
1829
|
-
dropdown_root:
|
|
1831
|
+
dropdown_root: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1830
1832
|
"relative cn-calendar-dropdown-root rounded-(--cell-radius)",
|
|
1831
1833
|
defaultClassNames.dropdown_root
|
|
1832
1834
|
),
|
|
1833
|
-
dropdown:
|
|
1835
|
+
dropdown: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1834
1836
|
"absolute bg-popover inset-0 opacity-0",
|
|
1835
1837
|
defaultClassNames.dropdown
|
|
1836
1838
|
),
|
|
1837
|
-
caption_label:
|
|
1839
|
+
caption_label: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1838
1840
|
"select-none font-medium",
|
|
1839
1841
|
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",
|
|
1840
1842
|
defaultClassNames.caption_label
|
|
1841
1843
|
),
|
|
1842
1844
|
table: "w-full border-collapse",
|
|
1843
|
-
weekdays:
|
|
1844
|
-
weekday:
|
|
1845
|
+
weekdays: _chunk5KQXRLK3js.cn.call(void 0, "flex", defaultClassNames.weekdays),
|
|
1846
|
+
weekday: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1845
1847
|
"text-muted-foreground rounded-(--cell-radius) flex-1 font-normal text-[0.8rem] select-none",
|
|
1846
1848
|
defaultClassNames.weekday
|
|
1847
1849
|
),
|
|
1848
|
-
week:
|
|
1849
|
-
week_number_header:
|
|
1850
|
+
week: _chunk5KQXRLK3js.cn.call(void 0, "flex w-full mt-2", defaultClassNames.week),
|
|
1851
|
+
week_number_header: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1850
1852
|
"select-none w-(--cell-size)",
|
|
1851
1853
|
defaultClassNames.week_number_header
|
|
1852
1854
|
),
|
|
1853
|
-
week_number:
|
|
1855
|
+
week_number: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1854
1856
|
"text-[0.8rem] select-none text-muted-foreground",
|
|
1855
1857
|
defaultClassNames.week_number
|
|
1856
1858
|
),
|
|
1857
|
-
day:
|
|
1859
|
+
day: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1858
1860
|
"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",
|
|
1859
1861
|
props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)" : "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)",
|
|
1860
1862
|
defaultClassNames.day
|
|
1861
1863
|
),
|
|
1862
|
-
range_start:
|
|
1864
|
+
range_start: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1863
1865
|
"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",
|
|
1864
1866
|
defaultClassNames.range_start
|
|
1865
1867
|
),
|
|
1866
|
-
range_middle:
|
|
1867
|
-
range_end:
|
|
1868
|
+
range_middle: _chunk5KQXRLK3js.cn.call(void 0, "rounded-none", defaultClassNames.range_middle),
|
|
1869
|
+
range_end: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1868
1870
|
"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",
|
|
1869
1871
|
defaultClassNames.range_end
|
|
1870
1872
|
),
|
|
1871
|
-
today:
|
|
1873
|
+
today: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1872
1874
|
"bg-muted text-foreground rounded-(--cell-radius) data-[selected=true]:rounded-none",
|
|
1873
1875
|
defaultClassNames.today
|
|
1874
1876
|
),
|
|
1875
|
-
outside:
|
|
1877
|
+
outside: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1876
1878
|
"text-muted-foreground aria-selected:text-muted-foreground",
|
|
1877
1879
|
defaultClassNames.outside
|
|
1878
1880
|
),
|
|
1879
|
-
disabled:
|
|
1881
|
+
disabled: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1880
1882
|
"text-muted-foreground opacity-50",
|
|
1881
1883
|
defaultClassNames.disabled
|
|
1882
1884
|
),
|
|
1883
|
-
hidden:
|
|
1885
|
+
hidden: _chunk5KQXRLK3js.cn.call(void 0, "invisible", defaultClassNames.hidden),
|
|
1884
1886
|
...classNames
|
|
1885
1887
|
},
|
|
1886
1888
|
components: {
|
|
@@ -1890,19 +1892,19 @@ function Calendar({
|
|
|
1890
1892
|
{
|
|
1891
1893
|
"data-slot": "calendar",
|
|
1892
1894
|
ref: rootRef,
|
|
1893
|
-
className:
|
|
1895
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, className2),
|
|
1894
1896
|
...props2
|
|
1895
1897
|
}
|
|
1896
1898
|
);
|
|
1897
1899
|
}, "Root"),
|
|
1898
1900
|
Chevron: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className: className2, orientation, ...props2 }) => {
|
|
1899
1901
|
if (orientation === "left") {
|
|
1900
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeftIcon, { className:
|
|
1902
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeftIcon, { className: _chunk5KQXRLK3js.cn.call(void 0, "size-4", className2), ...props2 });
|
|
1901
1903
|
}
|
|
1902
1904
|
if (orientation === "right") {
|
|
1903
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className:
|
|
1905
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className: _chunk5KQXRLK3js.cn.call(void 0, "size-4", className2), ...props2 });
|
|
1904
1906
|
}
|
|
1905
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className:
|
|
1907
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: _chunk5KQXRLK3js.cn.call(void 0, "size-4", className2), ...props2 });
|
|
1906
1908
|
}, "Chevron"),
|
|
1907
1909
|
DayButton: CalendarDayButton,
|
|
1908
1910
|
WeekNumber: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ children, ...props2 }) => {
|
|
@@ -1936,7 +1938,7 @@ function CalendarDayButton({
|
|
|
1936
1938
|
"data-range-start": modifiers.range_start,
|
|
1937
1939
|
"data-range-end": modifiers.range_end,
|
|
1938
1940
|
"data-range-middle": modifiers.range_middle,
|
|
1939
|
-
className:
|
|
1941
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1940
1942
|
"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",
|
|
1941
1943
|
defaultClassNames.day,
|
|
1942
1944
|
className
|
|
@@ -1959,7 +1961,7 @@ function Card({
|
|
|
1959
1961
|
{
|
|
1960
1962
|
"data-slot": "card",
|
|
1961
1963
|
"data-size": size,
|
|
1962
|
-
className:
|
|
1964
|
+
className: _chunk5KQXRLK3js.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),
|
|
1963
1965
|
...props
|
|
1964
1966
|
}
|
|
1965
1967
|
);
|
|
@@ -1970,7 +1972,7 @@ function CardHeader({ className, ...props }) {
|
|
|
1970
1972
|
"div",
|
|
1971
1973
|
{
|
|
1972
1974
|
"data-slot": "card-header",
|
|
1973
|
-
className:
|
|
1975
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
1974
1976
|
"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]",
|
|
1975
1977
|
className
|
|
1976
1978
|
),
|
|
@@ -1984,7 +1986,7 @@ function CardTitle({ className, ...props }) {
|
|
|
1984
1986
|
"div",
|
|
1985
1987
|
{
|
|
1986
1988
|
"data-slot": "card-title",
|
|
1987
|
-
className:
|
|
1989
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-sm font-medium", className),
|
|
1988
1990
|
...props
|
|
1989
1991
|
}
|
|
1990
1992
|
);
|
|
@@ -1995,7 +1997,7 @@ function CardDescription({ className, ...props }) {
|
|
|
1995
1997
|
"div",
|
|
1996
1998
|
{
|
|
1997
1999
|
"data-slot": "card-description",
|
|
1998
|
-
className:
|
|
2000
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
|
|
1999
2001
|
...props
|
|
2000
2002
|
}
|
|
2001
2003
|
);
|
|
@@ -2006,7 +2008,7 @@ function CardAction({ className, ...props }) {
|
|
|
2006
2008
|
"div",
|
|
2007
2009
|
{
|
|
2008
2010
|
"data-slot": "card-action",
|
|
2009
|
-
className:
|
|
2011
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
2010
2012
|
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
|
|
2011
2013
|
className
|
|
2012
2014
|
),
|
|
@@ -2020,7 +2022,7 @@ function CardContent({ className, ...props }) {
|
|
|
2020
2022
|
"div",
|
|
2021
2023
|
{
|
|
2022
2024
|
"data-slot": "card-content",
|
|
2023
|
-
className:
|
|
2025
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "px-4 group-data-[size=sm]/card:px-3", className),
|
|
2024
2026
|
...props
|
|
2025
2027
|
}
|
|
2026
2028
|
);
|
|
@@ -2031,7 +2033,7 @@ function CardFooter({ className, ...props }) {
|
|
|
2031
2033
|
"div",
|
|
2032
2034
|
{
|
|
2033
2035
|
"data-slot": "card-footer",
|
|
2034
|
-
className:
|
|
2036
|
+
className: _chunk5KQXRLK3js.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),
|
|
2035
2037
|
...props
|
|
2036
2038
|
}
|
|
2037
2039
|
);
|
|
@@ -2123,7 +2125,7 @@ function Carousel({
|
|
|
2123
2125
|
"div",
|
|
2124
2126
|
{
|
|
2125
2127
|
onKeyDownCapture: handleKeyDown,
|
|
2126
|
-
className:
|
|
2128
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "relative", className),
|
|
2127
2129
|
role: "region",
|
|
2128
2130
|
"aria-roledescription": "carousel",
|
|
2129
2131
|
"data-slot": "carousel",
|
|
@@ -2146,7 +2148,7 @@ function CarouselContent({ className, ...props }) {
|
|
|
2146
2148
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2147
2149
|
"div",
|
|
2148
2150
|
{
|
|
2149
|
-
className:
|
|
2151
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
2150
2152
|
"flex",
|
|
2151
2153
|
orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
|
|
2152
2154
|
className
|
|
@@ -2166,7 +2168,7 @@ function CarouselItem({ className, ...props }) {
|
|
|
2166
2168
|
role: "group",
|
|
2167
2169
|
"aria-roledescription": "slide",
|
|
2168
2170
|
"data-slot": "carousel-item",
|
|
2169
|
-
className:
|
|
2171
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
2170
2172
|
"min-w-0 shrink-0 grow-0 basis-full",
|
|
2171
2173
|
orientation === "horizontal" ? "pl-4" : "pt-4",
|
|
2172
2174
|
className
|
|
@@ -2189,7 +2191,7 @@ function CarouselPrevious({
|
|
|
2189
2191
|
"data-slot": "carousel-previous",
|
|
2190
2192
|
variant,
|
|
2191
2193
|
size,
|
|
2192
|
-
className:
|
|
2194
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
2193
2195
|
"rounded-full absolute touch-manipulation",
|
|
2194
2196
|
orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
2195
2197
|
className
|
|
@@ -2221,7 +2223,7 @@ function CarouselNext({
|
|
|
2221
2223
|
"data-slot": "carousel-next",
|
|
2222
2224
|
variant,
|
|
2223
2225
|
size,
|
|
2224
|
-
className:
|
|
2226
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
2225
2227
|
"rounded-full absolute touch-manipulation",
|
|
2226
2228
|
orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
2227
2229
|
className
|
|
@@ -2269,7 +2271,7 @@ function ChartContainer({
|
|
|
2269
2271
|
{
|
|
2270
2272
|
"data-slot": "chart",
|
|
2271
2273
|
"data-chart": chartId,
|
|
2272
|
-
className:
|
|
2274
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
2273
2275
|
"[&_.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",
|
|
2274
2276
|
className
|
|
2275
2277
|
),
|
|
@@ -2333,12 +2335,12 @@ function ChartTooltipContent({
|
|
|
2333
2335
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
2334
2336
|
const value = !labelKey && typeof label === "string" ? _optionalChain([config, 'access', _62 => _62[label], 'optionalAccess', _63 => _63.label]) || label : _optionalChain([itemConfig, 'optionalAccess', _64 => _64.label]);
|
|
2335
2337
|
if (labelFormatter) {
|
|
2336
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2338
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk5KQXRLK3js.cn.call(void 0, "font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
2337
2339
|
}
|
|
2338
2340
|
if (!value) {
|
|
2339
2341
|
return null;
|
|
2340
2342
|
}
|
|
2341
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2343
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk5KQXRLK3js.cn.call(void 0, "font-medium", labelClassName), children: value });
|
|
2342
2344
|
}, [
|
|
2343
2345
|
label,
|
|
2344
2346
|
labelFormatter,
|
|
@@ -2355,7 +2357,7 @@ function ChartTooltipContent({
|
|
|
2355
2357
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2356
2358
|
"div",
|
|
2357
2359
|
{
|
|
2358
|
-
className:
|
|
2360
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
2359
2361
|
"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",
|
|
2360
2362
|
className
|
|
2361
2363
|
),
|
|
@@ -2368,7 +2370,7 @@ function ChartTooltipContent({
|
|
|
2368
2370
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2369
2371
|
"div",
|
|
2370
2372
|
{
|
|
2371
|
-
className:
|
|
2373
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
2372
2374
|
"[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
|
|
2373
2375
|
indicator === "dot" && "items-center"
|
|
2374
2376
|
),
|
|
@@ -2376,7 +2378,7 @@ function ChartTooltipContent({
|
|
|
2376
2378
|
_optionalChain([itemConfig, 'optionalAccess', _69 => _69.icon]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2377
2379
|
"div",
|
|
2378
2380
|
{
|
|
2379
|
-
className:
|
|
2381
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
2380
2382
|
"shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",
|
|
2381
2383
|
{
|
|
2382
2384
|
"h-2.5 w-2.5": indicator === "dot",
|
|
@@ -2394,7 +2396,7 @@ function ChartTooltipContent({
|
|
|
2394
2396
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2395
2397
|
"div",
|
|
2396
2398
|
{
|
|
2397
|
-
className:
|
|
2399
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
2398
2400
|
"flex flex-1 justify-between leading-none",
|
|
2399
2401
|
nestLabel ? "items-end" : "items-center"
|
|
2400
2402
|
),
|
|
@@ -2432,7 +2434,7 @@ function ChartLegendContent({
|
|
|
2432
2434
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2433
2435
|
"div",
|
|
2434
2436
|
{
|
|
2435
|
-
className:
|
|
2437
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
2436
2438
|
"flex items-center justify-center gap-4",
|
|
2437
2439
|
verticalAlign === "top" ? "pb-3" : "pt-3",
|
|
2438
2440
|
className
|
|
@@ -2443,7 +2445,7 @@ function ChartLegendContent({
|
|
|
2443
2445
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2444
2446
|
"div",
|
|
2445
2447
|
{
|
|
2446
|
-
className:
|
|
2448
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
2447
2449
|
"[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"
|
|
2448
2450
|
),
|
|
2449
2451
|
children: [
|
|
@@ -2490,7 +2492,7 @@ function Checkbox({ className, ...props }) {
|
|
|
2490
2492
|
_checkbox.Checkbox.Root,
|
|
2491
2493
|
{
|
|
2492
2494
|
"data-slot": "checkbox",
|
|
2493
|
-
className:
|
|
2495
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
2494
2496
|
"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",
|
|
2495
2497
|
className
|
|
2496
2498
|
),
|
|
@@ -2558,7 +2560,7 @@ function DialogOverlay({
|
|
|
2558
2560
|
_dialog.Dialog.Backdrop,
|
|
2559
2561
|
{
|
|
2560
2562
|
"data-slot": "dialog-overlay",
|
|
2561
|
-
className:
|
|
2563
|
+
className: _chunk5KQXRLK3js.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),
|
|
2562
2564
|
...props
|
|
2563
2565
|
}
|
|
2564
2566
|
);
|
|
@@ -2576,7 +2578,7 @@ function DialogContent({
|
|
|
2576
2578
|
_dialog.Dialog.Popup,
|
|
2577
2579
|
{
|
|
2578
2580
|
"data-slot": "dialog-content",
|
|
2579
|
-
className:
|
|
2581
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
2580
2582
|
"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",
|
|
2581
2583
|
className
|
|
2582
2584
|
),
|
|
@@ -2615,7 +2617,7 @@ function DialogHeader({ className, ...props }) {
|
|
|
2615
2617
|
"div",
|
|
2616
2618
|
{
|
|
2617
2619
|
"data-slot": "dialog-header",
|
|
2618
|
-
className:
|
|
2620
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "gap-1 flex flex-col", className),
|
|
2619
2621
|
...props
|
|
2620
2622
|
}
|
|
2621
2623
|
);
|
|
@@ -2631,7 +2633,7 @@ function DialogFooter({
|
|
|
2631
2633
|
"div",
|
|
2632
2634
|
{
|
|
2633
2635
|
"data-slot": "dialog-footer",
|
|
2634
|
-
className:
|
|
2636
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
2635
2637
|
"gap-2 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
2636
2638
|
className
|
|
2637
2639
|
),
|
|
@@ -2649,7 +2651,7 @@ function DialogTitle({ className, ...props }) {
|
|
|
2649
2651
|
_dialog.Dialog.Title,
|
|
2650
2652
|
{
|
|
2651
2653
|
"data-slot": "dialog-title",
|
|
2652
|
-
className:
|
|
2654
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-sm font-medium", className),
|
|
2653
2655
|
...props
|
|
2654
2656
|
}
|
|
2655
2657
|
);
|
|
@@ -2663,7 +2665,7 @@ function DialogDescription({
|
|
|
2663
2665
|
_dialog.Dialog.Description,
|
|
2664
2666
|
{
|
|
2665
2667
|
"data-slot": "dialog-description",
|
|
2666
|
-
className:
|
|
2668
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed *:[a]:underline *:[a]:underline-offset-3", className),
|
|
2667
2669
|
...props
|
|
2668
2670
|
}
|
|
2669
2671
|
);
|
|
@@ -2682,7 +2684,7 @@ function Input({ className, type, ...props }) {
|
|
|
2682
2684
|
{
|
|
2683
2685
|
type,
|
|
2684
2686
|
"data-slot": "input",
|
|
2685
|
-
className:
|
|
2687
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
2686
2688
|
"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",
|
|
2687
2689
|
className
|
|
2688
2690
|
),
|
|
@@ -2699,7 +2701,7 @@ function Textarea({ className, ...props }) {
|
|
|
2699
2701
|
"textarea",
|
|
2700
2702
|
{
|
|
2701
2703
|
"data-slot": "textarea",
|
|
2702
|
-
className:
|
|
2704
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
2703
2705
|
"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",
|
|
2704
2706
|
className
|
|
2705
2707
|
),
|
|
@@ -2717,7 +2719,7 @@ function InputGroup({ className, ...props }) {
|
|
|
2717
2719
|
{
|
|
2718
2720
|
"data-slot": "input-group",
|
|
2719
2721
|
role: "group",
|
|
2720
|
-
className:
|
|
2722
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
2721
2723
|
"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",
|
|
2722
2724
|
className
|
|
2723
2725
|
),
|
|
@@ -2753,7 +2755,7 @@ function InputGroupAddon({
|
|
|
2753
2755
|
role: "group",
|
|
2754
2756
|
"data-slot": "input-group-addon",
|
|
2755
2757
|
"data-align": align,
|
|
2756
|
-
className:
|
|
2758
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, inputGroupAddonVariants({ align }), className),
|
|
2757
2759
|
onClick: (e) => {
|
|
2758
2760
|
if (e.target.closest("button")) {
|
|
2759
2761
|
return;
|
|
@@ -2794,7 +2796,7 @@ function InputGroupButton({
|
|
|
2794
2796
|
type,
|
|
2795
2797
|
"data-size": size,
|
|
2796
2798
|
variant,
|
|
2797
|
-
className:
|
|
2799
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, inputGroupButtonVariants({ size }), className),
|
|
2798
2800
|
...props
|
|
2799
2801
|
}
|
|
2800
2802
|
);
|
|
@@ -2804,7 +2806,7 @@ function InputGroupText({ className, ...props }) {
|
|
|
2804
2806
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2805
2807
|
"span",
|
|
2806
2808
|
{
|
|
2807
|
-
className:
|
|
2809
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
2808
2810
|
"text-muted-foreground gap-2 text-xs/relaxed [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none",
|
|
2809
2811
|
className
|
|
2810
2812
|
),
|
|
@@ -2821,7 +2823,7 @@ function InputGroupInput({
|
|
|
2821
2823
|
Input,
|
|
2822
2824
|
{
|
|
2823
2825
|
"data-slot": "input-group-control",
|
|
2824
|
-
className:
|
|
2826
|
+
className: _chunk5KQXRLK3js.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),
|
|
2825
2827
|
...props
|
|
2826
2828
|
}
|
|
2827
2829
|
);
|
|
@@ -2835,7 +2837,7 @@ function InputGroupTextarea({
|
|
|
2835
2837
|
Textarea,
|
|
2836
2838
|
{
|
|
2837
2839
|
"data-slot": "input-group-control",
|
|
2838
|
-
className:
|
|
2840
|
+
className: _chunk5KQXRLK3js.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),
|
|
2839
2841
|
...props
|
|
2840
2842
|
}
|
|
2841
2843
|
);
|
|
@@ -2853,7 +2855,7 @@ function Command({
|
|
|
2853
2855
|
_cmdk.Command,
|
|
2854
2856
|
{
|
|
2855
2857
|
"data-slot": "command",
|
|
2856
|
-
className:
|
|
2858
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
2857
2859
|
"bg-popover text-popover-foreground rounded-xl p-1 flex size-full flex-col overflow-hidden",
|
|
2858
2860
|
className
|
|
2859
2861
|
),
|
|
@@ -2878,7 +2880,7 @@ function CommandDialog({
|
|
|
2878
2880
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2879
2881
|
DialogContent,
|
|
2880
2882
|
{
|
|
2881
|
-
className:
|
|
2883
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "rounded-xl! p-0 overflow-hidden p-0", className),
|
|
2882
2884
|
showCloseButton,
|
|
2883
2885
|
children
|
|
2884
2886
|
}
|
|
@@ -2895,7 +2897,7 @@ function CommandInput({
|
|
|
2895
2897
|
_cmdk.Command.Input,
|
|
2896
2898
|
{
|
|
2897
2899
|
"data-slot": "command-input",
|
|
2898
|
-
className:
|
|
2900
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
2899
2901
|
"w-full text-xs/relaxed outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
2900
2902
|
className
|
|
2901
2903
|
),
|
|
@@ -2914,7 +2916,7 @@ function CommandList({
|
|
|
2914
2916
|
_cmdk.Command.List,
|
|
2915
2917
|
{
|
|
2916
2918
|
"data-slot": "command-list",
|
|
2917
|
-
className:
|
|
2919
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
2918
2920
|
"no-scrollbar max-h-72 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto",
|
|
2919
2921
|
className
|
|
2920
2922
|
),
|
|
@@ -2931,7 +2933,7 @@ function CommandEmpty({
|
|
|
2931
2933
|
_cmdk.Command.Empty,
|
|
2932
2934
|
{
|
|
2933
2935
|
"data-slot": "command-empty",
|
|
2934
|
-
className:
|
|
2936
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "py-6 text-center text-xs/relaxed", className),
|
|
2935
2937
|
...props
|
|
2936
2938
|
}
|
|
2937
2939
|
);
|
|
@@ -2945,7 +2947,7 @@ function CommandGroup({
|
|
|
2945
2947
|
_cmdk.Command.Group,
|
|
2946
2948
|
{
|
|
2947
2949
|
"data-slot": "command-group",
|
|
2948
|
-
className:
|
|
2950
|
+
className: _chunk5KQXRLK3js.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),
|
|
2949
2951
|
...props
|
|
2950
2952
|
}
|
|
2951
2953
|
);
|
|
@@ -2959,7 +2961,7 @@ function CommandSeparator({
|
|
|
2959
2961
|
_cmdk.Command.Separator,
|
|
2960
2962
|
{
|
|
2961
2963
|
"data-slot": "command-separator",
|
|
2962
|
-
className:
|
|
2964
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
2963
2965
|
...props
|
|
2964
2966
|
}
|
|
2965
2967
|
);
|
|
@@ -2974,7 +2976,7 @@ function CommandItem({
|
|
|
2974
2976
|
_cmdk.Command.Item,
|
|
2975
2977
|
{
|
|
2976
2978
|
"data-slot": "command-item",
|
|
2977
|
-
className:
|
|
2979
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
2978
2980
|
"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",
|
|
2979
2981
|
className
|
|
2980
2982
|
),
|
|
@@ -2995,7 +2997,7 @@ function CommandShortcut({
|
|
|
2995
2997
|
"span",
|
|
2996
2998
|
{
|
|
2997
2999
|
"data-slot": "command-shortcut",
|
|
2998
|
-
className:
|
|
3000
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-muted-foreground group-data-selected/command-item:text-foreground ml-auto text-[0.625rem] tracking-widest", className),
|
|
2999
3001
|
...props
|
|
3000
3002
|
}
|
|
3001
3003
|
);
|
|
@@ -3022,7 +3024,7 @@ function ContextMenuTrigger({
|
|
|
3022
3024
|
_contextmenu.ContextMenu.Trigger,
|
|
3023
3025
|
{
|
|
3024
3026
|
"data-slot": "context-menu-trigger",
|
|
3025
|
-
className:
|
|
3027
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "select-none", className),
|
|
3026
3028
|
...props
|
|
3027
3029
|
}
|
|
3028
3030
|
);
|
|
@@ -3048,7 +3050,7 @@ function ContextMenuContent({
|
|
|
3048
3050
|
_contextmenu.ContextMenu.Popup,
|
|
3049
3051
|
{
|
|
3050
3052
|
"data-slot": "context-menu-content",
|
|
3051
|
-
className:
|
|
3053
|
+
className: _chunk5KQXRLK3js.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),
|
|
3052
3054
|
...props
|
|
3053
3055
|
}
|
|
3054
3056
|
)
|
|
@@ -3070,7 +3072,7 @@ function ContextMenuLabel({
|
|
|
3070
3072
|
{
|
|
3071
3073
|
"data-slot": "context-menu-label",
|
|
3072
3074
|
"data-inset": inset,
|
|
3073
|
-
className:
|
|
3075
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
|
|
3074
3076
|
...props
|
|
3075
3077
|
}
|
|
3076
3078
|
);
|
|
@@ -3088,7 +3090,7 @@ function ContextMenuItem({
|
|
|
3088
3090
|
"data-slot": "context-menu-item",
|
|
3089
3091
|
"data-inset": inset,
|
|
3090
3092
|
"data-variant": variant,
|
|
3091
|
-
className:
|
|
3093
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
3092
3094
|
"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",
|
|
3093
3095
|
className
|
|
3094
3096
|
),
|
|
@@ -3112,7 +3114,7 @@ function ContextMenuSubTrigger({
|
|
|
3112
3114
|
{
|
|
3113
3115
|
"data-slot": "context-menu-sub-trigger",
|
|
3114
3116
|
"data-inset": inset,
|
|
3115
|
-
className:
|
|
3117
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
3116
3118
|
"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",
|
|
3117
3119
|
className
|
|
3118
3120
|
),
|
|
@@ -3149,7 +3151,7 @@ function ContextMenuCheckboxItem({
|
|
|
3149
3151
|
_contextmenu.ContextMenu.CheckboxItem,
|
|
3150
3152
|
{
|
|
3151
3153
|
"data-slot": "context-menu-checkbox-item",
|
|
3152
|
-
className:
|
|
3154
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
3153
3155
|
"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",
|
|
3154
3156
|
className
|
|
3155
3157
|
),
|
|
@@ -3187,7 +3189,7 @@ function ContextMenuRadioItem({
|
|
|
3187
3189
|
_contextmenu.ContextMenu.RadioItem,
|
|
3188
3190
|
{
|
|
3189
3191
|
"data-slot": "context-menu-radio-item",
|
|
3190
|
-
className:
|
|
3192
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
3191
3193
|
"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",
|
|
3192
3194
|
className
|
|
3193
3195
|
),
|
|
@@ -3211,7 +3213,7 @@ function ContextMenuSeparator({
|
|
|
3211
3213
|
_contextmenu.ContextMenu.Separator,
|
|
3212
3214
|
{
|
|
3213
3215
|
"data-slot": "context-menu-separator",
|
|
3214
|
-
className:
|
|
3216
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
3215
3217
|
...props
|
|
3216
3218
|
}
|
|
3217
3219
|
);
|
|
@@ -3225,7 +3227,7 @@ function ContextMenuShortcut({
|
|
|
3225
3227
|
"span",
|
|
3226
3228
|
{
|
|
3227
3229
|
"data-slot": "context-menu-shortcut",
|
|
3228
|
-
className:
|
|
3230
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-muted-foreground group-focus/context-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest", className),
|
|
3229
3231
|
...props
|
|
3230
3232
|
}
|
|
3231
3233
|
);
|
|
@@ -3267,7 +3269,7 @@ function DrawerOverlay({
|
|
|
3267
3269
|
_vaul.Drawer.Overlay,
|
|
3268
3270
|
{
|
|
3269
3271
|
"data-slot": "drawer-overlay",
|
|
3270
|
-
className:
|
|
3272
|
+
className: _chunk5KQXRLK3js.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),
|
|
3271
3273
|
...props
|
|
3272
3274
|
}
|
|
3273
3275
|
);
|
|
@@ -3284,7 +3286,7 @@ function DrawerContent({
|
|
|
3284
3286
|
_vaul.Drawer.Content,
|
|
3285
3287
|
{
|
|
3286
3288
|
"data-slot": "drawer-content",
|
|
3287
|
-
className:
|
|
3289
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
3288
3290
|
"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",
|
|
3289
3291
|
className
|
|
3290
3292
|
),
|
|
@@ -3303,7 +3305,7 @@ function DrawerHeader({ className, ...props }) {
|
|
|
3303
3305
|
"div",
|
|
3304
3306
|
{
|
|
3305
3307
|
"data-slot": "drawer-header",
|
|
3306
|
-
className:
|
|
3308
|
+
className: _chunk5KQXRLK3js.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),
|
|
3307
3309
|
...props
|
|
3308
3310
|
}
|
|
3309
3311
|
);
|
|
@@ -3314,7 +3316,7 @@ function DrawerFooter({ className, ...props }) {
|
|
|
3314
3316
|
"div",
|
|
3315
3317
|
{
|
|
3316
3318
|
"data-slot": "drawer-footer",
|
|
3317
|
-
className:
|
|
3319
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "gap-2 p-4 mt-auto flex flex-col", className),
|
|
3318
3320
|
...props
|
|
3319
3321
|
}
|
|
3320
3322
|
);
|
|
@@ -3328,7 +3330,7 @@ function DrawerTitle({
|
|
|
3328
3330
|
_vaul.Drawer.Title,
|
|
3329
3331
|
{
|
|
3330
3332
|
"data-slot": "drawer-title",
|
|
3331
|
-
className:
|
|
3333
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-foreground text-sm font-medium", className),
|
|
3332
3334
|
...props
|
|
3333
3335
|
}
|
|
3334
3336
|
);
|
|
@@ -3342,7 +3344,7 @@ function DrawerDescription({
|
|
|
3342
3344
|
_vaul.Drawer.Description,
|
|
3343
3345
|
{
|
|
3344
3346
|
"data-slot": "drawer-description",
|
|
3345
|
-
className:
|
|
3347
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
|
|
3346
3348
|
...props
|
|
3347
3349
|
}
|
|
3348
3350
|
);
|
|
@@ -3385,7 +3387,7 @@ function DropdownMenuContent({
|
|
|
3385
3387
|
_menu.Menu.Popup,
|
|
3386
3388
|
{
|
|
3387
3389
|
"data-slot": "dropdown-menu-content",
|
|
3388
|
-
className:
|
|
3390
|
+
className: _chunk5KQXRLK3js.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),
|
|
3389
3391
|
...props
|
|
3390
3392
|
}
|
|
3391
3393
|
)
|
|
@@ -3407,7 +3409,7 @@ function DropdownMenuLabel({
|
|
|
3407
3409
|
{
|
|
3408
3410
|
"data-slot": "dropdown-menu-label",
|
|
3409
3411
|
"data-inset": inset,
|
|
3410
|
-
className:
|
|
3412
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
|
|
3411
3413
|
...props
|
|
3412
3414
|
}
|
|
3413
3415
|
);
|
|
@@ -3425,7 +3427,7 @@ function DropdownMenuItem({
|
|
|
3425
3427
|
"data-slot": "dropdown-menu-item",
|
|
3426
3428
|
"data-inset": inset,
|
|
3427
3429
|
"data-variant": variant,
|
|
3428
|
-
className:
|
|
3430
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
3429
3431
|
"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",
|
|
3430
3432
|
className
|
|
3431
3433
|
),
|
|
@@ -3449,7 +3451,7 @@ function DropdownMenuSubTrigger({
|
|
|
3449
3451
|
{
|
|
3450
3452
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
3451
3453
|
"data-inset": inset,
|
|
3452
|
-
className:
|
|
3454
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
3453
3455
|
"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",
|
|
3454
3456
|
className
|
|
3455
3457
|
),
|
|
@@ -3474,7 +3476,7 @@ function DropdownMenuSubContent({
|
|
|
3474
3476
|
DropdownMenuContent,
|
|
3475
3477
|
{
|
|
3476
3478
|
"data-slot": "dropdown-menu-sub-content",
|
|
3477
|
-
className:
|
|
3479
|
+
className: _chunk5KQXRLK3js.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),
|
|
3478
3480
|
align,
|
|
3479
3481
|
alignOffset,
|
|
3480
3482
|
side,
|
|
@@ -3494,7 +3496,7 @@ function DropdownMenuCheckboxItem({
|
|
|
3494
3496
|
_menu.Menu.CheckboxItem,
|
|
3495
3497
|
{
|
|
3496
3498
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
3497
|
-
className:
|
|
3499
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
3498
3500
|
"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",
|
|
3499
3501
|
className
|
|
3500
3502
|
),
|
|
@@ -3537,7 +3539,7 @@ function DropdownMenuRadioItem({
|
|
|
3537
3539
|
_menu.Menu.RadioItem,
|
|
3538
3540
|
{
|
|
3539
3541
|
"data-slot": "dropdown-menu-radio-item",
|
|
3540
|
-
className:
|
|
3542
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
3541
3543
|
"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",
|
|
3542
3544
|
className
|
|
3543
3545
|
),
|
|
@@ -3568,7 +3570,7 @@ function DropdownMenuSeparator({
|
|
|
3568
3570
|
_menu.Menu.Separator,
|
|
3569
3571
|
{
|
|
3570
3572
|
"data-slot": "dropdown-menu-separator",
|
|
3571
|
-
className:
|
|
3573
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
3572
3574
|
...props
|
|
3573
3575
|
}
|
|
3574
3576
|
);
|
|
@@ -3582,7 +3584,7 @@ function DropdownMenuShortcut({
|
|
|
3582
3584
|
"span",
|
|
3583
3585
|
{
|
|
3584
3586
|
"data-slot": "dropdown-menu-shortcut",
|
|
3585
|
-
className:
|
|
3587
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest", className),
|
|
3586
3588
|
...props
|
|
3587
3589
|
}
|
|
3588
3590
|
);
|
|
@@ -3600,7 +3602,7 @@ function Label({ className, ...props }) {
|
|
|
3600
3602
|
"label",
|
|
3601
3603
|
{
|
|
3602
3604
|
"data-slot": "label",
|
|
3603
|
-
className:
|
|
3605
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
3604
3606
|
"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",
|
|
3605
3607
|
className
|
|
3606
3608
|
),
|
|
@@ -3623,7 +3625,7 @@ function Separator({
|
|
|
3623
3625
|
{
|
|
3624
3626
|
"data-slot": "separator",
|
|
3625
3627
|
orientation,
|
|
3626
|
-
className:
|
|
3628
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
3627
3629
|
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch",
|
|
3628
3630
|
className
|
|
3629
3631
|
),
|
|
@@ -3640,7 +3642,7 @@ function FieldSet({ className, ...props }) {
|
|
|
3640
3642
|
"fieldset",
|
|
3641
3643
|
{
|
|
3642
3644
|
"data-slot": "field-set",
|
|
3643
|
-
className:
|
|
3645
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col", className),
|
|
3644
3646
|
...props
|
|
3645
3647
|
}
|
|
3646
3648
|
);
|
|
@@ -3656,7 +3658,7 @@ function FieldLegend({
|
|
|
3656
3658
|
{
|
|
3657
3659
|
"data-slot": "field-legend",
|
|
3658
3660
|
"data-variant": variant,
|
|
3659
|
-
className:
|
|
3661
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "mb-2 font-medium data-[variant=label]:text-xs/relaxed data-[variant=legend]:text-sm", className),
|
|
3660
3662
|
...props
|
|
3661
3663
|
}
|
|
3662
3664
|
);
|
|
@@ -3667,7 +3669,7 @@ function FieldGroup({ className, ...props }) {
|
|
|
3667
3669
|
"div",
|
|
3668
3670
|
{
|
|
3669
3671
|
"data-slot": "field-group",
|
|
3670
|
-
className:
|
|
3672
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
3671
3673
|
"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",
|
|
3672
3674
|
className
|
|
3673
3675
|
),
|
|
@@ -3699,7 +3701,7 @@ function Field({
|
|
|
3699
3701
|
role: "group",
|
|
3700
3702
|
"data-slot": "field",
|
|
3701
3703
|
"data-orientation": orientation,
|
|
3702
|
-
className:
|
|
3704
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, fieldVariants({ orientation }), className),
|
|
3703
3705
|
...props
|
|
3704
3706
|
}
|
|
3705
3707
|
);
|
|
@@ -3710,7 +3712,7 @@ function FieldContent({ className, ...props }) {
|
|
|
3710
3712
|
"div",
|
|
3711
3713
|
{
|
|
3712
3714
|
"data-slot": "field-content",
|
|
3713
|
-
className:
|
|
3715
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
3714
3716
|
"gap-0.5 group/field-content flex flex-1 flex-col leading-snug",
|
|
3715
3717
|
className
|
|
3716
3718
|
),
|
|
@@ -3727,7 +3729,7 @@ function FieldLabel({
|
|
|
3727
3729
|
Label,
|
|
3728
3730
|
{
|
|
3729
3731
|
"data-slot": "field-label",
|
|
3730
|
-
className:
|
|
3732
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
3731
3733
|
"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",
|
|
3732
3734
|
"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",
|
|
3733
3735
|
className
|
|
@@ -3742,7 +3744,7 @@ function FieldTitle({ className, ...props }) {
|
|
|
3742
3744
|
"div",
|
|
3743
3745
|
{
|
|
3744
3746
|
"data-slot": "field-label",
|
|
3745
|
-
className:
|
|
3747
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
3746
3748
|
"gap-2 text-xs/relaxed font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center leading-snug",
|
|
3747
3749
|
className
|
|
3748
3750
|
),
|
|
@@ -3756,7 +3758,7 @@ function FieldDescription({ className, ...props }) {
|
|
|
3756
3758
|
"p",
|
|
3757
3759
|
{
|
|
3758
3760
|
"data-slot": "field-description",
|
|
3759
|
-
className:
|
|
3761
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
3760
3762
|
"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",
|
|
3761
3763
|
"last:mt-0 nth-last-2:-mt-1",
|
|
3762
3764
|
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
@@ -3777,7 +3779,7 @@ function FieldSeparator({
|
|
|
3777
3779
|
{
|
|
3778
3780
|
"data-slot": "field-separator",
|
|
3779
3781
|
"data-content": !!children,
|
|
3780
|
-
className:
|
|
3782
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "-my-2 h-5 text-xs/relaxed group-data-[variant=outline]/field-group:-mb-2 relative", className),
|
|
3781
3783
|
...props,
|
|
3782
3784
|
children: [
|
|
3783
3785
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, { className: "absolute inset-0 top-1/2" }),
|
|
@@ -3825,7 +3827,7 @@ function FieldError({
|
|
|
3825
3827
|
{
|
|
3826
3828
|
role: "alert",
|
|
3827
3829
|
"data-slot": "field-error",
|
|
3828
|
-
className:
|
|
3830
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-destructive text-xs/relaxed font-normal", className),
|
|
3829
3831
|
...props,
|
|
3830
3832
|
children: content
|
|
3831
3833
|
}
|
|
@@ -3868,7 +3870,7 @@ function HoverCardContent({
|
|
|
3868
3870
|
_previewcard.PreviewCard.Popup,
|
|
3869
3871
|
{
|
|
3870
3872
|
"data-slot": "hover-card-content",
|
|
3871
|
-
className:
|
|
3873
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
3872
3874
|
"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",
|
|
3873
3875
|
className
|
|
3874
3876
|
),
|
|
@@ -3894,12 +3896,12 @@ function InputOTP({
|
|
|
3894
3896
|
_inputotp.OTPInput,
|
|
3895
3897
|
{
|
|
3896
3898
|
"data-slot": "input-otp",
|
|
3897
|
-
containerClassName:
|
|
3899
|
+
containerClassName: _chunk5KQXRLK3js.cn.call(void 0,
|
|
3898
3900
|
"cn-input-otp flex items-center has-disabled:opacity-50",
|
|
3899
3901
|
containerClassName
|
|
3900
3902
|
),
|
|
3901
3903
|
spellCheck: false,
|
|
3902
|
-
className:
|
|
3904
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
3903
3905
|
"disabled:cursor-not-allowed",
|
|
3904
3906
|
className
|
|
3905
3907
|
),
|
|
@@ -3913,7 +3915,7 @@ function InputOTPGroup({ className, ...props }) {
|
|
|
3913
3915
|
"div",
|
|
3914
3916
|
{
|
|
3915
3917
|
"data-slot": "input-otp-group",
|
|
3916
|
-
className:
|
|
3918
|
+
className: _chunk5KQXRLK3js.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),
|
|
3917
3919
|
...props
|
|
3918
3920
|
}
|
|
3919
3921
|
);
|
|
@@ -3931,7 +3933,7 @@ function InputOTPSlot({
|
|
|
3931
3933
|
{
|
|
3932
3934
|
"data-slot": "input-otp-slot",
|
|
3933
3935
|
"data-active": isActive,
|
|
3934
|
-
className:
|
|
3936
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
3935
3937
|
"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",
|
|
3936
3938
|
className
|
|
3937
3939
|
),
|
|
@@ -3975,7 +3977,7 @@ function NavigationMenu({
|
|
|
3975
3977
|
_navigationmenu.NavigationMenu.Root,
|
|
3976
3978
|
{
|
|
3977
3979
|
"data-slot": "navigation-menu",
|
|
3978
|
-
className:
|
|
3980
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
3979
3981
|
"max-w-max group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
|
|
3980
3982
|
className
|
|
3981
3983
|
),
|
|
@@ -3996,7 +3998,7 @@ function NavigationMenuList({
|
|
|
3996
3998
|
_navigationmenu.NavigationMenu.List,
|
|
3997
3999
|
{
|
|
3998
4000
|
"data-slot": "navigation-menu-list",
|
|
3999
|
-
className:
|
|
4001
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
4000
4002
|
"gap-0 group flex flex-1 list-none items-center justify-center",
|
|
4001
4003
|
className
|
|
4002
4004
|
),
|
|
@@ -4013,7 +4015,7 @@ function NavigationMenuItem({
|
|
|
4013
4015
|
_navigationmenu.NavigationMenu.Item,
|
|
4014
4016
|
{
|
|
4015
4017
|
"data-slot": "navigation-menu-item",
|
|
4016
|
-
className:
|
|
4018
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "relative", className),
|
|
4017
4019
|
...props
|
|
4018
4020
|
}
|
|
4019
4021
|
);
|
|
@@ -4031,7 +4033,7 @@ function NavigationMenuTrigger({
|
|
|
4031
4033
|
_navigationmenu.NavigationMenu.Trigger,
|
|
4032
4034
|
{
|
|
4033
4035
|
"data-slot": "navigation-menu-trigger",
|
|
4034
|
-
className:
|
|
4036
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, navigationMenuTriggerStyle(), "group", className),
|
|
4035
4037
|
...props,
|
|
4036
4038
|
children: [
|
|
4037
4039
|
children,
|
|
@@ -4050,7 +4052,7 @@ function NavigationMenuContent({
|
|
|
4050
4052
|
_navigationmenu.NavigationMenu.Content,
|
|
4051
4053
|
{
|
|
4052
4054
|
"data-slot": "navigation-menu-content",
|
|
4053
|
-
className:
|
|
4055
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
4054
4056
|
"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",
|
|
4055
4057
|
className
|
|
4056
4058
|
),
|
|
@@ -4074,7 +4076,7 @@ function NavigationMenuPositioner({
|
|
|
4074
4076
|
sideOffset,
|
|
4075
4077
|
align,
|
|
4076
4078
|
alignOffset,
|
|
4077
|
-
className:
|
|
4079
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
4078
4080
|
"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",
|
|
4079
4081
|
className
|
|
4080
4082
|
),
|
|
@@ -4092,7 +4094,7 @@ function NavigationMenuLink({
|
|
|
4092
4094
|
_navigationmenu.NavigationMenu.Link,
|
|
4093
4095
|
{
|
|
4094
4096
|
"data-slot": "navigation-menu-link",
|
|
4095
|
-
className:
|
|
4097
|
+
className: _chunk5KQXRLK3js.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),
|
|
4096
4098
|
...props
|
|
4097
4099
|
}
|
|
4098
4100
|
);
|
|
@@ -4106,7 +4108,7 @@ function NavigationMenuIndicator({
|
|
|
4106
4108
|
_navigationmenu.NavigationMenu.Icon,
|
|
4107
4109
|
{
|
|
4108
4110
|
"data-slot": "navigation-menu-indicator",
|
|
4109
|
-
className:
|
|
4111
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
4110
4112
|
"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",
|
|
4111
4113
|
className
|
|
4112
4114
|
),
|
|
@@ -4148,7 +4150,7 @@ function PopoverContent({
|
|
|
4148
4150
|
_popover.Popover.Popup,
|
|
4149
4151
|
{
|
|
4150
4152
|
"data-slot": "popover-content",
|
|
4151
|
-
className:
|
|
4153
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
4152
4154
|
"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",
|
|
4153
4155
|
className
|
|
4154
4156
|
),
|
|
@@ -4164,7 +4166,7 @@ function PopoverHeader({ className, ...props }) {
|
|
|
4164
4166
|
"div",
|
|
4165
4167
|
{
|
|
4166
4168
|
"data-slot": "popover-header",
|
|
4167
|
-
className:
|
|
4169
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "flex flex-col gap-1 text-xs", className),
|
|
4168
4170
|
...props
|
|
4169
4171
|
}
|
|
4170
4172
|
);
|
|
@@ -4175,7 +4177,7 @@ function PopoverTitle({ className, ...props }) {
|
|
|
4175
4177
|
_popover.Popover.Title,
|
|
4176
4178
|
{
|
|
4177
4179
|
"data-slot": "popover-title",
|
|
4178
|
-
className:
|
|
4180
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-sm font-medium", className),
|
|
4179
4181
|
...props
|
|
4180
4182
|
}
|
|
4181
4183
|
);
|
|
@@ -4189,7 +4191,7 @@ function PopoverDescription({
|
|
|
4189
4191
|
_popover.Popover.Description,
|
|
4190
4192
|
{
|
|
4191
4193
|
"data-slot": "popover-description",
|
|
4192
|
-
className:
|
|
4194
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-muted-foreground", className),
|
|
4193
4195
|
...props
|
|
4194
4196
|
}
|
|
4195
4197
|
);
|
|
@@ -4210,7 +4212,7 @@ function Progress({
|
|
|
4210
4212
|
{
|
|
4211
4213
|
value,
|
|
4212
4214
|
"data-slot": "progress",
|
|
4213
|
-
className:
|
|
4215
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "flex flex-wrap gap-3", className),
|
|
4214
4216
|
...props,
|
|
4215
4217
|
children: [
|
|
4216
4218
|
children,
|
|
@@ -4224,7 +4226,7 @@ function ProgressTrack({ className, ...props }) {
|
|
|
4224
4226
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4225
4227
|
_progress.Progress.Track,
|
|
4226
4228
|
{
|
|
4227
|
-
className:
|
|
4229
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
4228
4230
|
"bg-muted h-1 rounded-md relative flex w-full items-center overflow-x-hidden",
|
|
4229
4231
|
className
|
|
4230
4232
|
),
|
|
@@ -4242,7 +4244,7 @@ function ProgressIndicator({
|
|
|
4242
4244
|
_progress.Progress.Indicator,
|
|
4243
4245
|
{
|
|
4244
4246
|
"data-slot": "progress-indicator",
|
|
4245
|
-
className:
|
|
4247
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "bg-primary h-full transition-all", className),
|
|
4246
4248
|
...props
|
|
4247
4249
|
}
|
|
4248
4250
|
);
|
|
@@ -4252,7 +4254,7 @@ function ProgressLabel({ className, ...props }) {
|
|
|
4252
4254
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4253
4255
|
_progress.Progress.Label,
|
|
4254
4256
|
{
|
|
4255
|
-
className:
|
|
4257
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-xs/relaxed font-medium", className),
|
|
4256
4258
|
"data-slot": "progress-label",
|
|
4257
4259
|
...props
|
|
4258
4260
|
}
|
|
@@ -4263,7 +4265,7 @@ function ProgressValue({ className, ...props }) {
|
|
|
4263
4265
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4264
4266
|
_progress.Progress.Value,
|
|
4265
4267
|
{
|
|
4266
|
-
className:
|
|
4268
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-muted-foreground ml-auto text-xs/relaxed tabular-nums", className),
|
|
4267
4269
|
"data-slot": "progress-value",
|
|
4268
4270
|
...props
|
|
4269
4271
|
}
|
|
@@ -4281,7 +4283,7 @@ function RadioGroup({ className, ...props }) {
|
|
|
4281
4283
|
_radiogroup.RadioGroup,
|
|
4282
4284
|
{
|
|
4283
4285
|
"data-slot": "radio-group",
|
|
4284
|
-
className:
|
|
4286
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "grid gap-3 w-full", className),
|
|
4285
4287
|
...props
|
|
4286
4288
|
}
|
|
4287
4289
|
);
|
|
@@ -4292,7 +4294,7 @@ function RadioGroupItem({ className, ...props }) {
|
|
|
4292
4294
|
_radio.Radio.Root,
|
|
4293
4295
|
{
|
|
4294
4296
|
"data-slot": "radio-group-item",
|
|
4295
|
-
className:
|
|
4297
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
4296
4298
|
"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",
|
|
4297
4299
|
className
|
|
4298
4300
|
),
|
|
@@ -4321,7 +4323,7 @@ function ResizablePanelGroup({
|
|
|
4321
4323
|
ResizablePrimitive.PanelGroup,
|
|
4322
4324
|
{
|
|
4323
4325
|
"data-slot": "resizable-panel-group",
|
|
4324
|
-
className:
|
|
4326
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
4325
4327
|
"flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
|
|
4326
4328
|
className
|
|
4327
4329
|
),
|
|
@@ -4345,7 +4347,7 @@ function ResizableHandle({
|
|
|
4345
4347
|
ResizablePrimitive.PanelResizeHandle,
|
|
4346
4348
|
{
|
|
4347
4349
|
"data-slot": "resizable-handle",
|
|
4348
|
-
className:
|
|
4350
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
4349
4351
|
"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",
|
|
4350
4352
|
className
|
|
4351
4353
|
),
|
|
@@ -4368,7 +4370,7 @@ function ScrollArea({
|
|
|
4368
4370
|
_scrollarea.ScrollArea.Root,
|
|
4369
4371
|
{
|
|
4370
4372
|
"data-slot": "scroll-area",
|
|
4371
|
-
className:
|
|
4373
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "relative", className),
|
|
4372
4374
|
...props,
|
|
4373
4375
|
children: [
|
|
4374
4376
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4397,7 +4399,7 @@ function ScrollBar({
|
|
|
4397
4399
|
"data-slot": "scroll-area-scrollbar",
|
|
4398
4400
|
"data-orientation": orientation,
|
|
4399
4401
|
orientation,
|
|
4400
|
-
className:
|
|
4402
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
4401
4403
|
"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",
|
|
4402
4404
|
className
|
|
4403
4405
|
),
|
|
@@ -4424,7 +4426,7 @@ function SelectGroup({ className, ...props }) {
|
|
|
4424
4426
|
_select.Select.Group,
|
|
4425
4427
|
{
|
|
4426
4428
|
"data-slot": "select-group",
|
|
4427
|
-
className:
|
|
4429
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "scroll-my-1 p-1", className),
|
|
4428
4430
|
...props
|
|
4429
4431
|
}
|
|
4430
4432
|
);
|
|
@@ -4435,7 +4437,7 @@ function SelectValue({ className, ...props }) {
|
|
|
4435
4437
|
_select.Select.Value,
|
|
4436
4438
|
{
|
|
4437
4439
|
"data-slot": "select-value",
|
|
4438
|
-
className:
|
|
4440
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "flex flex-1 text-left", className),
|
|
4439
4441
|
...props
|
|
4440
4442
|
}
|
|
4441
4443
|
);
|
|
@@ -4452,7 +4454,7 @@ function SelectTrigger({
|
|
|
4452
4454
|
{
|
|
4453
4455
|
"data-slot": "select-trigger",
|
|
4454
4456
|
"data-size": size,
|
|
4455
|
-
className:
|
|
4457
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
4456
4458
|
"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",
|
|
4457
4459
|
className
|
|
4458
4460
|
),
|
|
@@ -4493,7 +4495,7 @@ function SelectContent({
|
|
|
4493
4495
|
_select.Select.Popup,
|
|
4494
4496
|
{
|
|
4495
4497
|
"data-slot": "select-content",
|
|
4496
|
-
className:
|
|
4498
|
+
className: _chunk5KQXRLK3js.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),
|
|
4497
4499
|
...props,
|
|
4498
4500
|
children: [
|
|
4499
4501
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectScrollUpButton, {}),
|
|
@@ -4514,7 +4516,7 @@ function SelectLabel({
|
|
|
4514
4516
|
_select.Select.GroupLabel,
|
|
4515
4517
|
{
|
|
4516
4518
|
"data-slot": "select-label",
|
|
4517
|
-
className:
|
|
4519
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs", className),
|
|
4518
4520
|
...props
|
|
4519
4521
|
}
|
|
4520
4522
|
);
|
|
@@ -4529,7 +4531,7 @@ function SelectItem({
|
|
|
4529
4531
|
_select.Select.Item,
|
|
4530
4532
|
{
|
|
4531
4533
|
"data-slot": "select-item",
|
|
4532
|
-
className:
|
|
4534
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
4533
4535
|
"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",
|
|
4534
4536
|
className
|
|
4535
4537
|
),
|
|
@@ -4556,7 +4558,7 @@ function SelectSeparator({
|
|
|
4556
4558
|
_select.Select.Separator,
|
|
4557
4559
|
{
|
|
4558
4560
|
"data-slot": "select-separator",
|
|
4559
|
-
className:
|
|
4561
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px pointer-events-none", className),
|
|
4560
4562
|
...props
|
|
4561
4563
|
}
|
|
4562
4564
|
);
|
|
@@ -4570,7 +4572,7 @@ function SelectScrollUpButton({
|
|
|
4570
4572
|
_select.Select.ScrollUpArrow,
|
|
4571
4573
|
{
|
|
4572
4574
|
"data-slot": "select-scroll-up-button",
|
|
4573
|
-
className:
|
|
4575
|
+
className: _chunk5KQXRLK3js.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),
|
|
4574
4576
|
...props,
|
|
4575
4577
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4576
4578
|
_lucidereact.ChevronUpIcon,
|
|
@@ -4588,7 +4590,7 @@ function SelectScrollDownButton({
|
|
|
4588
4590
|
_select.Select.ScrollDownArrow,
|
|
4589
4591
|
{
|
|
4590
4592
|
"data-slot": "select-scroll-down-button",
|
|
4591
|
-
className:
|
|
4593
|
+
className: _chunk5KQXRLK3js.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),
|
|
4592
4594
|
...props,
|
|
4593
4595
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4594
4596
|
_lucidereact.ChevronDownIcon,
|
|
@@ -4624,7 +4626,7 @@ function SheetOverlay({ className, ...props }) {
|
|
|
4624
4626
|
_dialog.Dialog.Backdrop,
|
|
4625
4627
|
{
|
|
4626
4628
|
"data-slot": "sheet-overlay",
|
|
4627
|
-
className:
|
|
4629
|
+
className: _chunk5KQXRLK3js.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),
|
|
4628
4630
|
...props
|
|
4629
4631
|
}
|
|
4630
4632
|
);
|
|
@@ -4644,7 +4646,7 @@ function SheetContent({
|
|
|
4644
4646
|
{
|
|
4645
4647
|
"data-slot": "sheet-content",
|
|
4646
4648
|
"data-side": side,
|
|
4647
|
-
className:
|
|
4649
|
+
className: _chunk5KQXRLK3js.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),
|
|
4648
4650
|
...props,
|
|
4649
4651
|
children: [
|
|
4650
4652
|
children,
|
|
@@ -4680,7 +4682,7 @@ function SheetHeader({ className, ...props }) {
|
|
|
4680
4682
|
"div",
|
|
4681
4683
|
{
|
|
4682
4684
|
"data-slot": "sheet-header",
|
|
4683
|
-
className:
|
|
4685
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "gap-1.5 p-6 flex flex-col", className),
|
|
4684
4686
|
...props
|
|
4685
4687
|
}
|
|
4686
4688
|
);
|
|
@@ -4691,7 +4693,7 @@ function SheetFooter({ className, ...props }) {
|
|
|
4691
4693
|
"div",
|
|
4692
4694
|
{
|
|
4693
4695
|
"data-slot": "sheet-footer",
|
|
4694
|
-
className:
|
|
4696
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "gap-2 p-6 mt-auto flex flex-col", className),
|
|
4695
4697
|
...props
|
|
4696
4698
|
}
|
|
4697
4699
|
);
|
|
@@ -4702,7 +4704,7 @@ function SheetTitle({ className, ...props }) {
|
|
|
4702
4704
|
_dialog.Dialog.Title,
|
|
4703
4705
|
{
|
|
4704
4706
|
"data-slot": "sheet-title",
|
|
4705
|
-
className:
|
|
4707
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-foreground text-sm font-medium", className),
|
|
4706
4708
|
...props
|
|
4707
4709
|
}
|
|
4708
4710
|
);
|
|
@@ -4716,7 +4718,7 @@ function SheetDescription({
|
|
|
4716
4718
|
_dialog.Dialog.Description,
|
|
4717
4719
|
{
|
|
4718
4720
|
"data-slot": "sheet-description",
|
|
4719
|
-
className:
|
|
4721
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
|
|
4720
4722
|
...props
|
|
4721
4723
|
}
|
|
4722
4724
|
);
|
|
@@ -4736,7 +4738,7 @@ function Skeleton({ className, ...props }) {
|
|
|
4736
4738
|
"div",
|
|
4737
4739
|
{
|
|
4738
4740
|
"data-slot": "skeleton",
|
|
4739
|
-
className:
|
|
4741
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "bg-muted rounded-md animate-pulse", className),
|
|
4740
4742
|
...props
|
|
4741
4743
|
}
|
|
4742
4744
|
);
|
|
@@ -4789,7 +4791,7 @@ function TooltipContent({
|
|
|
4789
4791
|
_tooltip.Tooltip.Popup,
|
|
4790
4792
|
{
|
|
4791
4793
|
"data-slot": "tooltip-content",
|
|
4792
|
-
className:
|
|
4794
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
4793
4795
|
"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)",
|
|
4794
4796
|
className
|
|
4795
4797
|
),
|
|
@@ -4832,7 +4834,7 @@ function SidebarProvider({
|
|
|
4832
4834
|
children,
|
|
4833
4835
|
...props
|
|
4834
4836
|
}) {
|
|
4835
|
-
const isMobile =
|
|
4837
|
+
const isMobile = _chunk5KQXRLK3js.useIsMobile.call(void 0, );
|
|
4836
4838
|
const [openMobile, setOpenMobile] = React7.useState(false);
|
|
4837
4839
|
const [_open, _setOpen] = React7.useState(defaultOpen);
|
|
4838
4840
|
const open = _nullishCoalesce(openProp, () => ( _open));
|
|
@@ -4883,7 +4885,7 @@ function SidebarProvider({
|
|
|
4883
4885
|
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
4884
4886
|
...style
|
|
4885
4887
|
},
|
|
4886
|
-
className:
|
|
4888
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
4887
4889
|
"group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",
|
|
4888
4890
|
className
|
|
4889
4891
|
),
|
|
@@ -4907,7 +4909,7 @@ function Sidebar({
|
|
|
4907
4909
|
"div",
|
|
4908
4910
|
{
|
|
4909
4911
|
"data-slot": "sidebar",
|
|
4910
|
-
className:
|
|
4912
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
4911
4913
|
"bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",
|
|
4912
4914
|
className
|
|
4913
4915
|
),
|
|
@@ -4952,7 +4954,7 @@ function Sidebar({
|
|
|
4952
4954
|
"div",
|
|
4953
4955
|
{
|
|
4954
4956
|
"data-slot": "sidebar-gap",
|
|
4955
|
-
className:
|
|
4957
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
4956
4958
|
"transition-[width] duration-200 ease-linear relative w-(--sidebar-width) bg-transparent",
|
|
4957
4959
|
"group-data-[collapsible=offExamples]:w-0",
|
|
4958
4960
|
"group-data-[side=right]:rotate-180",
|
|
@@ -4964,7 +4966,7 @@ function Sidebar({
|
|
|
4964
4966
|
"div",
|
|
4965
4967
|
{
|
|
4966
4968
|
"data-slot": "sidebar-container",
|
|
4967
|
-
className:
|
|
4969
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
4968
4970
|
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
4969
4971
|
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)]",
|
|
4970
4972
|
// Adjust the padding for floating and inset variants.
|
|
@@ -5001,7 +5003,7 @@ function SidebarTrigger({
|
|
|
5001
5003
|
"data-slot": "sidebar-trigger",
|
|
5002
5004
|
variant: "ghost",
|
|
5003
5005
|
size: "icon-sm",
|
|
5004
|
-
className:
|
|
5006
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, className),
|
|
5005
5007
|
onClick: (event) => {
|
|
5006
5008
|
_optionalChain([onClick, 'optionalCall', _88 => _88(event)]);
|
|
5007
5009
|
toggleSidebar();
|
|
@@ -5029,7 +5031,7 @@ function SidebarRail({ className, ...props }) {
|
|
|
5029
5031
|
tabIndex: -1,
|
|
5030
5032
|
onClick: toggleSidebar,
|
|
5031
5033
|
title: "Toggle Sidebar",
|
|
5032
|
-
className:
|
|
5034
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
5033
5035
|
"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",
|
|
5034
5036
|
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
5035
5037
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
@@ -5048,7 +5050,7 @@ function SidebarInset({ className, ...props }) {
|
|
|
5048
5050
|
"main",
|
|
5049
5051
|
{
|
|
5050
5052
|
"data-slot": "sidebar-inset",
|
|
5051
|
-
className:
|
|
5053
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
5052
5054
|
"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",
|
|
5053
5055
|
className
|
|
5054
5056
|
),
|
|
@@ -5066,7 +5068,7 @@ function SidebarInput({
|
|
|
5066
5068
|
{
|
|
5067
5069
|
"data-slot": "sidebar-input",
|
|
5068
5070
|
"data-sidebar": "input",
|
|
5069
|
-
className:
|
|
5071
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "bg-muted/20 dark:bg-muted/30 border-input h-8 w-full", className),
|
|
5070
5072
|
...props
|
|
5071
5073
|
}
|
|
5072
5074
|
);
|
|
@@ -5078,7 +5080,7 @@ function SidebarHeader({ className, ...props }) {
|
|
|
5078
5080
|
{
|
|
5079
5081
|
"data-slot": "sidebar-header",
|
|
5080
5082
|
"data-sidebar": "header",
|
|
5081
|
-
className:
|
|
5083
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
|
|
5082
5084
|
...props
|
|
5083
5085
|
}
|
|
5084
5086
|
);
|
|
@@ -5090,7 +5092,7 @@ function SidebarFooter({ className, ...props }) {
|
|
|
5090
5092
|
{
|
|
5091
5093
|
"data-slot": "sidebar-footer",
|
|
5092
5094
|
"data-sidebar": "footer",
|
|
5093
|
-
className:
|
|
5095
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
|
|
5094
5096
|
...props
|
|
5095
5097
|
}
|
|
5096
5098
|
);
|
|
@@ -5105,7 +5107,7 @@ function SidebarSeparator({
|
|
|
5105
5107
|
{
|
|
5106
5108
|
"data-slot": "sidebar-separator",
|
|
5107
5109
|
"data-sidebar": "separator",
|
|
5108
|
-
className:
|
|
5110
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "bg-sidebar-border mx-2 w-auto", className),
|
|
5109
5111
|
...props
|
|
5110
5112
|
}
|
|
5111
5113
|
);
|
|
@@ -5117,7 +5119,7 @@ function SidebarContent({ className, ...props }) {
|
|
|
5117
5119
|
{
|
|
5118
5120
|
"data-slot": "sidebar-content",
|
|
5119
5121
|
"data-sidebar": "content",
|
|
5120
|
-
className:
|
|
5122
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
5121
5123
|
"no-scrollbar gap-0 flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
5122
5124
|
className
|
|
5123
5125
|
),
|
|
@@ -5132,7 +5134,7 @@ function SidebarGroup({ className, ...props }) {
|
|
|
5132
5134
|
{
|
|
5133
5135
|
"data-slot": "sidebar-group",
|
|
5134
5136
|
"data-sidebar": "group",
|
|
5135
|
-
className:
|
|
5137
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
5136
5138
|
"px-2 py-1 relative flex w-full min-w-0 flex-col",
|
|
5137
5139
|
className
|
|
5138
5140
|
),
|
|
@@ -5150,7 +5152,7 @@ function SidebarGroupLabel({
|
|
|
5150
5152
|
defaultTagName: "div",
|
|
5151
5153
|
props: _mergeprops.mergeProps.call(void 0,
|
|
5152
5154
|
{
|
|
5153
|
-
className:
|
|
5155
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
5154
5156
|
"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",
|
|
5155
5157
|
className
|
|
5156
5158
|
)
|
|
@@ -5174,7 +5176,7 @@ function SidebarGroupAction({
|
|
|
5174
5176
|
defaultTagName: "button",
|
|
5175
5177
|
props: _mergeprops.mergeProps.call(void 0,
|
|
5176
5178
|
{
|
|
5177
|
-
className:
|
|
5179
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
5178
5180
|
"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",
|
|
5179
5181
|
className
|
|
5180
5182
|
)
|
|
@@ -5198,7 +5200,7 @@ function SidebarGroupContent({
|
|
|
5198
5200
|
{
|
|
5199
5201
|
"data-slot": "sidebar-group-content",
|
|
5200
5202
|
"data-sidebar": "group-content",
|
|
5201
|
-
className:
|
|
5203
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-xs w-full", className),
|
|
5202
5204
|
...props
|
|
5203
5205
|
}
|
|
5204
5206
|
);
|
|
@@ -5210,7 +5212,7 @@ function SidebarMenu({ className, ...props }) {
|
|
|
5210
5212
|
{
|
|
5211
5213
|
"data-slot": "sidebar-menu",
|
|
5212
5214
|
"data-sidebar": "menu",
|
|
5213
|
-
className:
|
|
5215
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "gap-px flex w-full min-w-0 flex-col", className),
|
|
5214
5216
|
...props
|
|
5215
5217
|
}
|
|
5216
5218
|
);
|
|
@@ -5222,7 +5224,7 @@ function SidebarMenuItem({ className, ...props }) {
|
|
|
5222
5224
|
{
|
|
5223
5225
|
"data-slot": "sidebar-menu-item",
|
|
5224
5226
|
"data-sidebar": "menu-item",
|
|
5225
|
-
className:
|
|
5227
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "group/menu-item relative", className),
|
|
5226
5228
|
...props
|
|
5227
5229
|
}
|
|
5228
5230
|
);
|
|
@@ -5262,7 +5264,7 @@ function SidebarMenuButton({
|
|
|
5262
5264
|
defaultTagName: "button",
|
|
5263
5265
|
props: _mergeprops.mergeProps.call(void 0,
|
|
5264
5266
|
{
|
|
5265
|
-
className:
|
|
5267
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, sidebarMenuButtonVariants({ variant, size }), className)
|
|
5266
5268
|
},
|
|
5267
5269
|
props
|
|
5268
5270
|
),
|
|
@@ -5306,7 +5308,7 @@ function SidebarMenuAction({
|
|
|
5306
5308
|
defaultTagName: "button",
|
|
5307
5309
|
props: _mergeprops.mergeProps.call(void 0,
|
|
5308
5310
|
{
|
|
5309
|
-
className:
|
|
5311
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
5310
5312
|
"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",
|
|
5311
5313
|
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",
|
|
5312
5314
|
className
|
|
@@ -5331,7 +5333,7 @@ function SidebarMenuBadge({
|
|
|
5331
5333
|
{
|
|
5332
5334
|
"data-slot": "sidebar-menu-badge",
|
|
5333
5335
|
"data-sidebar": "menu-badge",
|
|
5334
|
-
className:
|
|
5336
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
5335
5337
|
"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",
|
|
5336
5338
|
className
|
|
5337
5339
|
),
|
|
@@ -5353,7 +5355,7 @@ function SidebarMenuSkeleton({
|
|
|
5353
5355
|
{
|
|
5354
5356
|
"data-slot": "sidebar-menu-skeleton",
|
|
5355
5357
|
"data-sidebar": "menu-skeleton",
|
|
5356
|
-
className:
|
|
5358
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "h-8 gap-2 rounded-md px-2 flex items-center", className),
|
|
5357
5359
|
...props,
|
|
5358
5360
|
children: [
|
|
5359
5361
|
showIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -5384,7 +5386,7 @@ function SidebarMenuSub({ className, ...props }) {
|
|
|
5384
5386
|
{
|
|
5385
5387
|
"data-slot": "sidebar-menu-sub",
|
|
5386
5388
|
"data-sidebar": "menu-sub",
|
|
5387
|
-
className:
|
|
5389
|
+
className: _chunk5KQXRLK3js.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),
|
|
5388
5390
|
...props
|
|
5389
5391
|
}
|
|
5390
5392
|
);
|
|
@@ -5399,7 +5401,7 @@ function SidebarMenuSubItem({
|
|
|
5399
5401
|
{
|
|
5400
5402
|
"data-slot": "sidebar-menu-sub-item",
|
|
5401
5403
|
"data-sidebar": "menu-sub-item",
|
|
5402
|
-
className:
|
|
5404
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "group/menu-sub-item relative", className),
|
|
5403
5405
|
...props
|
|
5404
5406
|
}
|
|
5405
5407
|
);
|
|
@@ -5416,7 +5418,7 @@ function SidebarMenuSubButton({
|
|
|
5416
5418
|
defaultTagName: "a",
|
|
5417
5419
|
props: _mergeprops.mergeProps.call(void 0,
|
|
5418
5420
|
{
|
|
5419
|
-
className:
|
|
5421
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
5420
5422
|
"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",
|
|
5421
5423
|
className
|
|
5422
5424
|
)
|
|
@@ -5464,7 +5466,7 @@ function Slider({
|
|
|
5464
5466
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
5465
5467
|
_slider.Slider.Control,
|
|
5466
5468
|
{
|
|
5467
|
-
className:
|
|
5469
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
5468
5470
|
"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",
|
|
5469
5471
|
className
|
|
5470
5472
|
),
|
|
@@ -5548,7 +5550,7 @@ function Switch({
|
|
|
5548
5550
|
{
|
|
5549
5551
|
"data-slot": "switch",
|
|
5550
5552
|
"data-size": size,
|
|
5551
|
-
className:
|
|
5553
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
5552
5554
|
"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",
|
|
5553
5555
|
className
|
|
5554
5556
|
),
|
|
@@ -5557,7 +5559,7 @@ function Switch({
|
|
|
5557
5559
|
_switch.Switch.Thumb,
|
|
5558
5560
|
{
|
|
5559
5561
|
"data-slot": "switch-thumb",
|
|
5560
|
-
className:
|
|
5562
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
5561
5563
|
"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",
|
|
5562
5564
|
children && "flex items-center justify-center"
|
|
5563
5565
|
),
|
|
@@ -5576,7 +5578,7 @@ function Table({ className, ...props }) {
|
|
|
5576
5578
|
"table",
|
|
5577
5579
|
{
|
|
5578
5580
|
"data-slot": "table",
|
|
5579
|
-
className:
|
|
5581
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "w-full caption-bottom text-xs", className),
|
|
5580
5582
|
...props
|
|
5581
5583
|
}
|
|
5582
5584
|
) });
|
|
@@ -5587,7 +5589,7 @@ function TableHeader({ className, ...props }) {
|
|
|
5587
5589
|
"thead",
|
|
5588
5590
|
{
|
|
5589
5591
|
"data-slot": "table-header",
|
|
5590
|
-
className:
|
|
5592
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "[&_tr]:border-b", className),
|
|
5591
5593
|
...props
|
|
5592
5594
|
}
|
|
5593
5595
|
);
|
|
@@ -5598,7 +5600,7 @@ function TableBody({ className, ...props }) {
|
|
|
5598
5600
|
"tbody",
|
|
5599
5601
|
{
|
|
5600
5602
|
"data-slot": "table-body",
|
|
5601
|
-
className:
|
|
5603
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "[&_tr:last-child]:border-0", className),
|
|
5602
5604
|
...props
|
|
5603
5605
|
}
|
|
5604
5606
|
);
|
|
@@ -5609,7 +5611,7 @@ function TableFooter({ className, ...props }) {
|
|
|
5609
5611
|
"tfoot",
|
|
5610
5612
|
{
|
|
5611
5613
|
"data-slot": "table-footer",
|
|
5612
|
-
className:
|
|
5614
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", className),
|
|
5613
5615
|
...props
|
|
5614
5616
|
}
|
|
5615
5617
|
);
|
|
@@ -5620,7 +5622,7 @@ function TableRow({ className, ...props }) {
|
|
|
5620
5622
|
"tr",
|
|
5621
5623
|
{
|
|
5622
5624
|
"data-slot": "table-row",
|
|
5623
|
-
className:
|
|
5625
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", className),
|
|
5624
5626
|
...props
|
|
5625
5627
|
}
|
|
5626
5628
|
);
|
|
@@ -5631,7 +5633,7 @@ function TableHead({ className, ...props }) {
|
|
|
5631
5633
|
"th",
|
|
5632
5634
|
{
|
|
5633
5635
|
"data-slot": "table-head",
|
|
5634
|
-
className:
|
|
5636
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0", className),
|
|
5635
5637
|
...props
|
|
5636
5638
|
}
|
|
5637
5639
|
);
|
|
@@ -5642,7 +5644,7 @@ function TableCell({ className, ...props }) {
|
|
|
5642
5644
|
"td",
|
|
5643
5645
|
{
|
|
5644
5646
|
"data-slot": "table-cell",
|
|
5645
|
-
className:
|
|
5647
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0", className),
|
|
5646
5648
|
...props
|
|
5647
5649
|
}
|
|
5648
5650
|
);
|
|
@@ -5656,7 +5658,7 @@ function TableCaption({
|
|
|
5656
5658
|
"caption",
|
|
5657
5659
|
{
|
|
5658
5660
|
"data-slot": "table-caption",
|
|
5659
|
-
className:
|
|
5661
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-muted-foreground mt-4 text-xs", className),
|
|
5660
5662
|
...props
|
|
5661
5663
|
}
|
|
5662
5664
|
);
|
|
@@ -5677,7 +5679,7 @@ function Tabs({
|
|
|
5677
5679
|
{
|
|
5678
5680
|
"data-slot": "tabs",
|
|
5679
5681
|
"data-orientation": orientation,
|
|
5680
|
-
className:
|
|
5682
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
5681
5683
|
"gap-2 group/tabs flex data-[orientation=horizontal]:flex-col",
|
|
5682
5684
|
className
|
|
5683
5685
|
),
|
|
@@ -5710,7 +5712,7 @@ function TabsList({
|
|
|
5710
5712
|
{
|
|
5711
5713
|
"data-slot": "tabs-list",
|
|
5712
5714
|
"data-variant": variant,
|
|
5713
|
-
className:
|
|
5715
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, tabsListVariants({ variant }), className),
|
|
5714
5716
|
...props
|
|
5715
5717
|
}
|
|
5716
5718
|
);
|
|
@@ -5721,7 +5723,7 @@ function TabsTrigger({ className, ...props }) {
|
|
|
5721
5723
|
_tabs.Tabs.Tab,
|
|
5722
5724
|
{
|
|
5723
5725
|
"data-slot": "tabs-trigger",
|
|
5724
|
-
className:
|
|
5726
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
5725
5727
|
"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",
|
|
5726
5728
|
"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",
|
|
5727
5729
|
"data-active:bg-background dark:data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 data-active:text-foreground",
|
|
@@ -5738,7 +5740,7 @@ function TabsContent({ className, ...props }) {
|
|
|
5738
5740
|
_tabs.Tabs.Panel,
|
|
5739
5741
|
{
|
|
5740
5742
|
"data-slot": "tabs-content",
|
|
5741
|
-
className:
|
|
5743
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "text-xs/relaxed flex-1 outline-none", className),
|
|
5742
5744
|
...props
|
|
5743
5745
|
}
|
|
5744
5746
|
);
|
|
@@ -5779,7 +5781,7 @@ function Toggle({
|
|
|
5779
5781
|
_toggle.Toggle,
|
|
5780
5782
|
{
|
|
5781
5783
|
"data-slot": "toggle",
|
|
5782
|
-
className:
|
|
5784
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, toggleVariants({ variant, size, className })),
|
|
5783
5785
|
...props
|
|
5784
5786
|
}
|
|
5785
5787
|
);
|
|
@@ -6248,7 +6250,7 @@ var KanbanBoard = React9.forwardRef((props, forwardedRef) => {
|
|
|
6248
6250
|
"data-slot": "kanban-board",
|
|
6249
6251
|
...boardProps,
|
|
6250
6252
|
ref: forwardedRef,
|
|
6251
|
-
className:
|
|
6253
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
6252
6254
|
"flex size-full gap-4",
|
|
6253
6255
|
context.orientation === "horizontal" ? "flex-row" : "flex-col",
|
|
6254
6256
|
className
|
|
@@ -6287,7 +6289,7 @@ var KanbanColumn = React9.forwardRef((props, forwardedRef) => {
|
|
|
6287
6289
|
disabled,
|
|
6288
6290
|
animateLayoutChanges
|
|
6289
6291
|
});
|
|
6290
|
-
const composedRef =
|
|
6292
|
+
const composedRef = _chunk5KQXRLK3js.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
6291
6293
|
if (disabled) return;
|
|
6292
6294
|
setNodeRef(node);
|
|
6293
6295
|
});
|
|
@@ -6331,7 +6333,7 @@ var KanbanColumn = React9.forwardRef((props, forwardedRef) => {
|
|
|
6331
6333
|
...asHandle && !disabled ? listeners : {},
|
|
6332
6334
|
ref: composedRef,
|
|
6333
6335
|
style: composedStyle,
|
|
6334
|
-
className:
|
|
6336
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
6335
6337
|
"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",
|
|
6336
6338
|
{
|
|
6337
6339
|
"touch-none select-none": asHandle,
|
|
@@ -6354,7 +6356,7 @@ var KanbanColumnHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
6354
6356
|
const context = useKanbanContext(COLUMN_NAME);
|
|
6355
6357
|
const columnContext = useKanbanColumnContext(COLUMN_HANDLE_NAME);
|
|
6356
6358
|
const isDisabled = _nullishCoalesce(disabled, () => ( columnContext.disabled));
|
|
6357
|
-
const composedRef =
|
|
6359
|
+
const composedRef = _chunk5KQXRLK3js.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
6358
6360
|
if (isDisabled) return;
|
|
6359
6361
|
columnContext.setActivatorNodeRef(node);
|
|
6360
6362
|
});
|
|
@@ -6371,7 +6373,7 @@ var KanbanColumnHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
6371
6373
|
...isDisabled ? {} : columnContext.attributes,
|
|
6372
6374
|
...isDisabled ? {} : columnContext.listeners,
|
|
6373
6375
|
ref: composedRef,
|
|
6374
|
-
className:
|
|
6376
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
6375
6377
|
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
6376
6378
|
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
6377
6379
|
className
|
|
@@ -6407,7 +6409,7 @@ var KanbanItem = React9.forwardRef((props, forwardedRef) => {
|
|
|
6407
6409
|
if (value === "") {
|
|
6408
6410
|
throw new Error(`\`${ITEM_NAME}\` value cannot be an empty string`);
|
|
6409
6411
|
}
|
|
6410
|
-
const composedRef =
|
|
6412
|
+
const composedRef = _chunk5KQXRLK3js.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
6411
6413
|
if (disabled) return;
|
|
6412
6414
|
setNodeRef(node);
|
|
6413
6415
|
});
|
|
@@ -6442,7 +6444,7 @@ var KanbanItem = React9.forwardRef((props, forwardedRef) => {
|
|
|
6442
6444
|
...asHandle && !disabled ? listeners : {},
|
|
6443
6445
|
ref: composedRef,
|
|
6444
6446
|
style: composedStyle,
|
|
6445
|
-
className:
|
|
6447
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
6446
6448
|
"focus-visible:ring-ring focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden",
|
|
6447
6449
|
{
|
|
6448
6450
|
"touch-none select-none": asHandle,
|
|
@@ -6463,7 +6465,7 @@ var KanbanItemHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
6463
6465
|
const context = useKanbanContext(ITEM_HANDLE_NAME);
|
|
6464
6466
|
const itemContext = useKanbanItemContext(ITEM_HANDLE_NAME);
|
|
6465
6467
|
const isDisabled = _nullishCoalesce(disabled, () => ( itemContext.disabled));
|
|
6466
|
-
const composedRef =
|
|
6468
|
+
const composedRef = _chunk5KQXRLK3js.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
6467
6469
|
if (isDisabled) return;
|
|
6468
6470
|
itemContext.setActivatorNodeRef(node);
|
|
6469
6471
|
});
|
|
@@ -6480,7 +6482,7 @@ var KanbanItemHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
6480
6482
|
...isDisabled ? {} : itemContext.attributes,
|
|
6481
6483
|
...isDisabled ? {} : itemContext.listeners,
|
|
6482
6484
|
ref: composedRef,
|
|
6483
|
-
className:
|
|
6485
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
6484
6486
|
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
6485
6487
|
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
6486
6488
|
className
|
|
@@ -6515,7 +6517,7 @@ function KanbanOverlay(props) {
|
|
|
6515
6517
|
{
|
|
6516
6518
|
dropAnimation,
|
|
6517
6519
|
modifiers: context.modifiers,
|
|
6518
|
-
className:
|
|
6520
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, !context.flatCursor && "cursor-grabbing"),
|
|
6519
6521
|
...overlayProps,
|
|
6520
6522
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, KanbanOverlayContext.Provider, { value: true, children: context.activeId && children ? typeof children === "function" ? children({
|
|
6521
6523
|
value: context.activeId,
|
|
@@ -6532,8 +6534,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, KanbanOverlay, "KanbanOverlay");
|
|
|
6532
6534
|
|
|
6533
6535
|
|
|
6534
6536
|
var Link = React10.forwardRef(({ className, href, children, ...props }, ref) => {
|
|
6535
|
-
const NextIntlLink =
|
|
6536
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NextIntlLink, { prefetch: false, ref, href, className:
|
|
6537
|
+
const NextIntlLink = _chunkOR5NPUWFjs.getI18nLink.call(void 0, );
|
|
6538
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NextIntlLink, { prefetch: false, ref, href, className: _chunk5KQXRLK3js.cn.call(void 0, `font-medium`, className), ...props, children });
|
|
6537
6539
|
});
|
|
6538
6540
|
Link.displayName = "Link";
|
|
6539
6541
|
|
|
@@ -6630,7 +6632,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6630
6632
|
{
|
|
6631
6633
|
...props,
|
|
6632
6634
|
onClick: handleTogglePopover,
|
|
6633
|
-
className:
|
|
6635
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
6634
6636
|
"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",
|
|
6635
6637
|
className
|
|
6636
6638
|
),
|
|
@@ -6642,7 +6644,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6642
6644
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
6643
6645
|
Badge,
|
|
6644
6646
|
{
|
|
6645
|
-
className:
|
|
6647
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, isAnimating ? "animate-bounce" : "", multiSelectVariants({ variant })),
|
|
6646
6648
|
style: { animationDuration: `${animation}s` },
|
|
6647
6649
|
children: [
|
|
6648
6650
|
IconComponent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: "mr-2 h-4 w-4" }),
|
|
@@ -6665,7 +6667,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6665
6667
|
selectedValues.length > maxCount && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
6666
6668
|
Badge,
|
|
6667
6669
|
{
|
|
6668
|
-
className:
|
|
6670
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
6669
6671
|
"text-foreground border-foreground/1 bg-transparent hover:bg-transparent",
|
|
6670
6672
|
isAnimating ? "animate-bounce" : "",
|
|
6671
6673
|
multiSelectVariants({ variant })
|
|
@@ -6729,7 +6731,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6729
6731
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6730
6732
|
"div",
|
|
6731
6733
|
{
|
|
6732
|
-
className:
|
|
6734
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
6733
6735
|
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
6734
6736
|
selectedValues.length === options.length ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
6735
6737
|
),
|
|
@@ -6752,7 +6754,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6752
6754
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6753
6755
|
"div",
|
|
6754
6756
|
{
|
|
6755
|
-
className:
|
|
6757
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
6756
6758
|
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
6757
6759
|
isSelected ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
6758
6760
|
),
|
|
@@ -6787,7 +6789,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6787
6789
|
animation > 0 && selectedValues.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6788
6790
|
_lucidereact.WandSparkles,
|
|
6789
6791
|
{
|
|
6790
|
-
className:
|
|
6792
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
6791
6793
|
"text-foreground bg-background my-2 h-3 w-3 cursor-pointer",
|
|
6792
6794
|
isAnimating ? "" : "text-muted-foreground"
|
|
6793
6795
|
),
|
|
@@ -6862,10 +6864,10 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserAvatarEditor, "UserAvatarEditor");
|
|
|
6862
6864
|
function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
6863
6865
|
const { currentUser, company } = useCurrentUserContext();
|
|
6864
6866
|
const generateUrl = usePageUrlGenerator();
|
|
6865
|
-
const router =
|
|
6867
|
+
const router = _chunkOR5NPUWFjs.useI18nRouter.call(void 0, );
|
|
6866
6868
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
6867
6869
|
let cId;
|
|
6868
|
-
if (_optionalChain([currentUser, 'optionalAccess', _128 => _128.roles, 'access', _129 => _129.find, 'call', _130 => _130((role) => role.id ===
|
|
6870
|
+
if (_optionalChain([currentUser, 'optionalAccess', _128 => _128.roles, 'access', _129 => _129.find, 'call', _130 => _130((role) => role.id === _chunkOR5NPUWFjs.getRoleId.call(void 0, ).Administrator)]) && companyId) {
|
|
6869
6871
|
cId = companyId;
|
|
6870
6872
|
} else {
|
|
6871
6873
|
if (!company) return;
|
|
@@ -6875,8 +6877,8 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
6875
6877
|
CommonDeleter,
|
|
6876
6878
|
{
|
|
6877
6879
|
type: `users`,
|
|
6878
|
-
deleteFunction: () =>
|
|
6879
|
-
() => onDeleted ? onDeleted() : router.push(generateUrl({ page:
|
|
6880
|
+
deleteFunction: () => _chunk5KQXRLK3js.UserService.delete({ userId: user.id, companyId: cId }).then(
|
|
6881
|
+
() => onDeleted ? onDeleted() : router.push(generateUrl({ page: _chunk5KQXRLK3js.Modules.User }))
|
|
6880
6882
|
)
|
|
6881
6883
|
}
|
|
6882
6884
|
);
|
|
@@ -6884,7 +6886,7 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
6884
6886
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleterInternal, "UserDeleterInternal");
|
|
6885
6887
|
function UserDeleter(props) {
|
|
6886
6888
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
6887
|
-
if (!hasPermissionToModule({ module:
|
|
6889
|
+
if (!hasPermissionToModule({ module: _chunk5KQXRLK3js.Modules.User, action: "delete" /* Delete */, data: props.user })) return null;
|
|
6888
6890
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserDeleterInternal, { ...props });
|
|
6889
6891
|
}
|
|
6890
6892
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleter, "UserDeleter");
|
|
@@ -6907,7 +6909,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6907
6909
|
} = useCurrentUserContext();
|
|
6908
6910
|
const { company: companyFromContext } = useCompanyContext();
|
|
6909
6911
|
const generateUrl = usePageUrlGenerator();
|
|
6910
|
-
const router =
|
|
6912
|
+
const router = _chunkOR5NPUWFjs.useI18nRouter.call(void 0, );
|
|
6911
6913
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
6912
6914
|
const [roles, setRoles] = _react.useState.call(void 0, []);
|
|
6913
6915
|
const [file, setFile] = _react.useState.call(void 0, null);
|
|
@@ -6948,7 +6950,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6948
6950
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
6949
6951
|
if (!user) {
|
|
6950
6952
|
try {
|
|
6951
|
-
const existingUser = await
|
|
6953
|
+
const existingUser = await _chunk5KQXRLK3js.UserService.findByEmail({ email: values.email });
|
|
6952
6954
|
if (existingUser) {
|
|
6953
6955
|
form.setError("email", {
|
|
6954
6956
|
type: "manual",
|
|
@@ -6961,7 +6963,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6961
6963
|
}
|
|
6962
6964
|
}
|
|
6963
6965
|
if (values.avatar && contentType) {
|
|
6964
|
-
const s3 = await
|
|
6966
|
+
const s3 = await _chunk5KQXRLK3js.S3Service.getPreSignedUrl({
|
|
6965
6967
|
key: values.avatar,
|
|
6966
6968
|
contentType,
|
|
6967
6969
|
isPublic: true
|
|
@@ -6987,16 +6989,16 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6987
6989
|
adminCreated
|
|
6988
6990
|
};
|
|
6989
6991
|
try {
|
|
6990
|
-
const updatedUser = user ? await
|
|
6992
|
+
const updatedUser = user ? await _chunk5KQXRLK3js.UserService.update(payload) : await _chunk5KQXRLK3js.UserService.create(payload);
|
|
6991
6993
|
if (_optionalChain([currentUser, 'optionalAccess', _141 => _141.id]) === updatedUser.id) setUser(updatedUser);
|
|
6992
6994
|
if (onRevalidate) {
|
|
6993
|
-
await onRevalidate(generateUrl({ page:
|
|
6995
|
+
await onRevalidate(generateUrl({ page: _chunk5KQXRLK3js.Modules.User, id: updatedUser.id, language: `[locale]` }));
|
|
6994
6996
|
}
|
|
6995
6997
|
if (propagateChanges) {
|
|
6996
6998
|
propagateChanges(updatedUser);
|
|
6997
6999
|
setOpen(false);
|
|
6998
7000
|
} else {
|
|
6999
|
-
router.push(generateUrl({ page:
|
|
7001
|
+
router.push(generateUrl({ page: _chunk5KQXRLK3js.Modules.User, id: updatedUser.id }));
|
|
7000
7002
|
}
|
|
7001
7003
|
} catch (error) {
|
|
7002
7004
|
errorToast({ title: user ? t(`common.errors.update`) : t(`common.errors.create`), error });
|
|
@@ -7004,14 +7006,14 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
7004
7006
|
}, "onSubmit");
|
|
7005
7007
|
_react.useEffect.call(void 0, () => {
|
|
7006
7008
|
async function fetchRoles() {
|
|
7007
|
-
const roles2 = await
|
|
7009
|
+
const roles2 = await _chunk5KQXRLK3js.RoleService.findAllRoles({});
|
|
7008
7010
|
const availableRoles = roles2.filter(
|
|
7009
|
-
(role) => role.id !==
|
|
7011
|
+
(role) => role.id !== _chunkOR5NPUWFjs.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]))]))
|
|
7010
7012
|
);
|
|
7011
7013
|
setRoles(availableRoles);
|
|
7012
7014
|
}
|
|
7013
7015
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchRoles, "fetchRoles");
|
|
7014
|
-
if (open && (company || _optionalChain([currentUser, 'optionalAccess', _147 => _147.roles, 'access', _148 => _148.find, 'call', _149 => _149((role) => role.id ===
|
|
7016
|
+
if (open && (company || _optionalChain([currentUser, 'optionalAccess', _147 => _147.roles, 'access', _148 => _148.find, 'call', _149 => _149((role) => role.id === _chunkOR5NPUWFjs.getRoleId.call(void 0, ).Administrator)])) && roles.length === 0)
|
|
7015
7017
|
fetchRoles();
|
|
7016
7018
|
}, [company, open]);
|
|
7017
7019
|
_react.useEffect.call(void 0, () => {
|
|
@@ -7032,7 +7034,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
7032
7034
|
setContentType(null);
|
|
7033
7035
|
}
|
|
7034
7036
|
}, [file]);
|
|
7035
|
-
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _150 => _150.id]) === _optionalChain([user, 'optionalAccess', _151 => _151.id]) && hasRole(
|
|
7037
|
+
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _150 => _150.id]) === _optionalChain([user, 'optionalAccess', _151 => _151.id]) && hasRole(_chunkOR5NPUWFjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunk5KQXRLK3js.Modules.User, action: "update" /* Update */ }) || hasRole(_chunkOR5NPUWFjs.getRoleId.call(void 0, ).Administrator));
|
|
7036
7038
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
7037
7039
|
trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTrigger, { children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!user }),
|
|
7038
7040
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -7119,7 +7121,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
7119
7121
|
] })
|
|
7120
7122
|
] }),
|
|
7121
7123
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-end gap-x-4", children: [
|
|
7122
|
-
user && _optionalChain([currentUser, 'optionalAccess', _153 => _153.roles, 'access', _154 => _154.find, 'call', _155 => _155((role) => role.id ===
|
|
7124
|
+
user && _optionalChain([currentUser, 'optionalAccess', _153 => _153.roles, 'access', _154 => _154.find, 'call', _155 => _155((role) => role.id === _chunkOR5NPUWFjs.getRoleId.call(void 0, ).Administrator)]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7123
7125
|
UserDeleter,
|
|
7124
7126
|
{
|
|
7125
7127
|
companyId: _optionalChain([user, 'access', _156 => _156.company, 'optionalAccess', _157 => _157.id]),
|
|
@@ -7142,7 +7144,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserEditorInternal, "UserEditorInternal");
|
|
|
7142
7144
|
function UserEditor(props) {
|
|
7143
7145
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
7144
7146
|
if (!hasPermissionToModule({
|
|
7145
|
-
module:
|
|
7147
|
+
module: _chunk5KQXRLK3js.Modules.User,
|
|
7146
7148
|
action: props.user ? "update" /* Update */ : "create" /* Create */,
|
|
7147
7149
|
data: props.user
|
|
7148
7150
|
}))
|
|
@@ -7159,7 +7161,6 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserEditor, "UserEditor");
|
|
|
7159
7161
|
|
|
7160
7162
|
|
|
7161
7163
|
|
|
7162
|
-
|
|
7163
7164
|
function CommonAssociationTrigger({
|
|
7164
7165
|
sourceType,
|
|
7165
7166
|
destinationType,
|
|
@@ -7230,7 +7231,7 @@ function CommonAssociationCommandDialog({
|
|
|
7230
7231
|
_chunk7QVYU63Ejs.__name.call(void 0, CommonAssociationCommandDialog, "CommonAssociationCommandDialog");
|
|
7231
7232
|
var triggerAssociationToast = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
7232
7233
|
if (params.level) {
|
|
7233
|
-
|
|
7234
|
+
_chunk5KQXRLK3js.showToast.call(void 0,
|
|
7234
7235
|
params.t(`common.association.label`, {
|
|
7235
7236
|
source: params.source,
|
|
7236
7237
|
destination: params.destination
|
|
@@ -7246,7 +7247,7 @@ var triggerAssociationToast = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
7246
7247
|
}
|
|
7247
7248
|
);
|
|
7248
7249
|
} else {
|
|
7249
|
-
|
|
7250
|
+
_chunk5KQXRLK3js.showToast.call(void 0,
|
|
7250
7251
|
params.t(`common.association.label`, {
|
|
7251
7252
|
source: params.source,
|
|
7252
7253
|
destination: params.destination
|
|
@@ -7297,9 +7298,8 @@ function ErrorDetails({ title, message, code }) {
|
|
|
7297
7298
|
_chunk7QVYU63Ejs.__name.call(void 0, ErrorDetails, "ErrorDetails");
|
|
7298
7299
|
|
|
7299
7300
|
// src/components/errors/errorToast.ts
|
|
7300
|
-
|
|
7301
7301
|
function errorToast(params) {
|
|
7302
|
-
|
|
7302
|
+
_chunk5KQXRLK3js.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess', _158 => _158.title]), () => ( "Error")), {
|
|
7303
7303
|
description: params.error instanceof Error ? params.error.message : String(params.error)
|
|
7304
7304
|
});
|
|
7305
7305
|
}
|
|
@@ -7308,8 +7308,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, errorToast, "errorToast");
|
|
|
7308
7308
|
// src/components/forms/CommonDeleter.tsx
|
|
7309
7309
|
|
|
7310
7310
|
function CommonDeleter({ deleteFunction, redirectTo, type, forceShow }) {
|
|
7311
|
-
const t =
|
|
7312
|
-
const router =
|
|
7311
|
+
const t = _chunkOR5NPUWFjs.useI18nTranslations.call(void 0, );
|
|
7312
|
+
const router = _chunkOR5NPUWFjs.useI18nRouter.call(void 0, );
|
|
7313
7313
|
const [open, setOpen] = _react.useState.call(void 0, forceShow || false);
|
|
7314
7314
|
const [isDeleting, setIsDeleting] = _react.useState.call(void 0, false);
|
|
7315
7315
|
const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
@@ -7439,8 +7439,8 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
7439
7439
|
align = "start",
|
|
7440
7440
|
className
|
|
7441
7441
|
}) => {
|
|
7442
|
-
const locale =
|
|
7443
|
-
const dateFnsLocale =
|
|
7442
|
+
const locale = _chunkOR5NPUWFjs.useI18nLocale.call(void 0, );
|
|
7443
|
+
const dateFnsLocale = _chunkOR5NPUWFjs.useI18nDateFnsLocale.call(void 0, );
|
|
7444
7444
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
7445
7445
|
const [displayMonth, setDisplayMonth] = _react.useState.call(void 0, () => value || /* @__PURE__ */ new Date());
|
|
7446
7446
|
const dateFormatter = _react.useMemo.call(void 0,
|
|
@@ -7503,7 +7503,7 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
7503
7503
|
}, "handleClear");
|
|
7504
7504
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open: isOpen, onOpenChange: setIsOpen, children: [
|
|
7505
7505
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { children }),
|
|
7506
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className:
|
|
7506
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className: _chunk5KQXRLK3js.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
7507
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative mb-3", children: [
|
|
7508
7508
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7509
7509
|
Input,
|
|
@@ -7619,13 +7619,13 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
7619
7619
|
setDate(range);
|
|
7620
7620
|
}
|
|
7621
7621
|
}, "handleSelect");
|
|
7622
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
7622
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk5KQXRLK3js.cn.call(void 0, "grid gap-2"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, children: [
|
|
7623
7623
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7624
7624
|
Button,
|
|
7625
7625
|
{
|
|
7626
7626
|
id: "date",
|
|
7627
7627
|
variant: "outline",
|
|
7628
|
-
className:
|
|
7628
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
|
|
7629
7629
|
children: [
|
|
7630
7630
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
|
|
7631
7631
|
_optionalChain([date, 'optionalAccess', _168 => _168.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -7682,7 +7682,6 @@ _chunk7QVYU63Ejs.__name.call(void 0, DateRangeSelector, "DateRangeSelector");
|
|
|
7682
7682
|
|
|
7683
7683
|
var _reactdropzone = require('react-dropzone');
|
|
7684
7684
|
|
|
7685
|
-
|
|
7686
7685
|
var FileUploaderContext = _react.createContext.call(void 0, null);
|
|
7687
7686
|
var useFileUpload = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
7688
7687
|
const context = _react.useContext.call(void 0, FileUploaderContext);
|
|
@@ -7750,7 +7749,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
7750
7749
|
(acceptedFiles, rejectedFiles) => {
|
|
7751
7750
|
const files = acceptedFiles;
|
|
7752
7751
|
if (!files) {
|
|
7753
|
-
|
|
7752
|
+
_chunk5KQXRLK3js.showError.call(void 0, t("common.errors.file"), {
|
|
7754
7753
|
description: t("common.errors.file_large")
|
|
7755
7754
|
});
|
|
7756
7755
|
return;
|
|
@@ -7768,13 +7767,13 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
7768
7767
|
if (rejectedFiles.length > 0) {
|
|
7769
7768
|
for (let i = 0; i < rejectedFiles.length; i++) {
|
|
7770
7769
|
if (_optionalChain([rejectedFiles, 'access', _174 => _174[i], 'access', _175 => _175.errors, 'access', _176 => _176[0], 'optionalAccess', _177 => _177.code]) === "file-too-large") {
|
|
7771
|
-
|
|
7770
|
+
_chunk5KQXRLK3js.showError.call(void 0, t("common.errors.file"), {
|
|
7772
7771
|
description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
|
|
7773
7772
|
});
|
|
7774
7773
|
break;
|
|
7775
7774
|
}
|
|
7776
7775
|
if (_optionalChain([rejectedFiles, 'access', _178 => _178[i], 'access', _179 => _179.errors, 'access', _180 => _180[0], 'optionalAccess', _181 => _181.message])) {
|
|
7777
|
-
|
|
7776
|
+
_chunk5KQXRLK3js.showError.call(void 0, t(`common.errors.file`), {
|
|
7778
7777
|
description: rejectedFiles[i].errors[0].message
|
|
7779
7778
|
});
|
|
7780
7779
|
break;
|
|
@@ -7818,7 +7817,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
7818
7817
|
ref,
|
|
7819
7818
|
tabIndex: 0,
|
|
7820
7819
|
onKeyDownCapture: handleKeyDown,
|
|
7821
|
-
className:
|
|
7820
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
7822
7821
|
"grid w-full overflow-hidden focus:outline-none",
|
|
7823
7822
|
className,
|
|
7824
7823
|
// Original className from props
|
|
@@ -7842,12 +7841,12 @@ var FileUploaderContent = _react.forwardRef.call(void 0,
|
|
|
7842
7841
|
({ children, className, ...props }, ref) => {
|
|
7843
7842
|
const { orientation } = useFileUpload();
|
|
7844
7843
|
const containerRef = _react.useRef.call(void 0, null);
|
|
7845
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
7844
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk5KQXRLK3js.cn.call(void 0, "w-full px-1"), ref: containerRef, "aria-description": "content file holder", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7846
7845
|
"div",
|
|
7847
7846
|
{
|
|
7848
7847
|
...props,
|
|
7849
7848
|
ref,
|
|
7850
|
-
className:
|
|
7849
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
7851
7850
|
"flex gap-1 rounded-xl",
|
|
7852
7851
|
orientation === "horizontal" ? "flex-raw flex-wrap" : "flex-col",
|
|
7853
7852
|
className
|
|
@@ -7867,7 +7866,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
7867
7866
|
"div",
|
|
7868
7867
|
{
|
|
7869
7868
|
ref,
|
|
7870
|
-
className:
|
|
7869
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
7871
7870
|
buttonVariants({ variant: "ghost" }),
|
|
7872
7871
|
"relative h-6 cursor-pointer justify-between p-1",
|
|
7873
7872
|
className,
|
|
@@ -7880,7 +7879,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
7880
7879
|
"button",
|
|
7881
7880
|
{
|
|
7882
7881
|
type: "button",
|
|
7883
|
-
className:
|
|
7882
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "absolute", direction === "rtl" ? "top-1 left-1" : "top-1 right-1"),
|
|
7884
7883
|
onClick: () => removeFileFromSet(index),
|
|
7885
7884
|
children: [
|
|
7886
7885
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: t(`common.remove_item`, { index }) }),
|
|
@@ -7904,12 +7903,12 @@ var FileInput = _react.forwardRef.call(void 0,
|
|
|
7904
7903
|
{
|
|
7905
7904
|
ref,
|
|
7906
7905
|
...props,
|
|
7907
|
-
className:
|
|
7906
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, `relative w-full ${isLOF ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`, className),
|
|
7908
7907
|
children: [
|
|
7909
7908
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7910
7909
|
"div",
|
|
7911
7910
|
{
|
|
7912
|
-
className:
|
|
7911
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
7913
7912
|
"w-full rounded-lg duration-300 ease-in-out",
|
|
7914
7913
|
// Simpler border logic: if parent is drag-active, it controls the border.
|
|
7915
7914
|
// Otherwise, FileInput can show its own accept/reject/default border.
|
|
@@ -8020,8 +8019,8 @@ function FormDate({
|
|
|
8020
8019
|
onChange,
|
|
8021
8020
|
isRequired = false
|
|
8022
8021
|
}) {
|
|
8023
|
-
const locale =
|
|
8024
|
-
const dateFnsLocale =
|
|
8022
|
+
const locale = _chunkOR5NPUWFjs.useI18nLocale.call(void 0, );
|
|
8023
|
+
const dateFnsLocale = _chunkOR5NPUWFjs.useI18nDateFnsLocale.call(void 0, );
|
|
8025
8024
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
8026
8025
|
const [displayMonth, setDisplayMonth] = _react.useState.call(void 0, () => {
|
|
8027
8026
|
const currentValue = form.getValues(id);
|
|
@@ -8190,9 +8189,9 @@ function FormDateTime({
|
|
|
8190
8189
|
allowEmpty
|
|
8191
8190
|
}) {
|
|
8192
8191
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
8193
|
-
const t =
|
|
8194
|
-
const locale =
|
|
8195
|
-
const dateFnsLocale =
|
|
8192
|
+
const t = _chunkOR5NPUWFjs.useI18nTranslations.call(void 0, );
|
|
8193
|
+
const locale = _chunkOR5NPUWFjs.useI18nLocale.call(void 0, );
|
|
8194
|
+
const dateFnsLocale = _chunkOR5NPUWFjs.useI18nDateFnsLocale.call(void 0, );
|
|
8196
8195
|
const dateTimeFormatter = _react.useMemo.call(void 0,
|
|
8197
8196
|
() => new Intl.DateTimeFormat(locale, {
|
|
8198
8197
|
year: "numeric",
|
|
@@ -8243,7 +8242,7 @@ function FormDateTime({
|
|
|
8243
8242
|
Button,
|
|
8244
8243
|
{
|
|
8245
8244
|
variant: "outline",
|
|
8246
|
-
className:
|
|
8245
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "w-full pl-3 text-left font-normal", !field.value && "text-muted-foreground")
|
|
8247
8246
|
}
|
|
8248
8247
|
),
|
|
8249
8248
|
children: [
|
|
@@ -8431,7 +8430,7 @@ var PasswordInput = React12.forwardRef(({ className, type, ...props }, ref) => {
|
|
|
8431
8430
|
const disabled = props.value === "" || props.value === void 0 || props.disabled;
|
|
8432
8431
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8433
8432
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
8434
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className:
|
|
8433
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className: _chunk5KQXRLK3js.cn.call(void 0, "", className), ref, ...props }),
|
|
8435
8434
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8436
8435
|
Button,
|
|
8437
8436
|
{
|
|
@@ -8625,7 +8624,7 @@ function FormPlaceAutocomplete({
|
|
|
8625
8624
|
placeholder,
|
|
8626
8625
|
disabled,
|
|
8627
8626
|
"data-testid": testId,
|
|
8628
|
-
className:
|
|
8627
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "w-full", className)
|
|
8629
8628
|
}
|
|
8630
8629
|
) }) });
|
|
8631
8630
|
}
|
|
@@ -8644,7 +8643,7 @@ function FormPlaceAutocomplete({
|
|
|
8644
8643
|
placeholder,
|
|
8645
8644
|
disabled: disabled || !apiKey,
|
|
8646
8645
|
"data-testid": testId,
|
|
8647
|
-
className:
|
|
8646
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "w-full", className)
|
|
8648
8647
|
}
|
|
8649
8648
|
),
|
|
8650
8649
|
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" }) }),
|
|
@@ -8776,7 +8775,7 @@ function FormTextarea({
|
|
|
8776
8775
|
Textarea,
|
|
8777
8776
|
{
|
|
8778
8777
|
...field,
|
|
8779
|
-
className:
|
|
8778
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "min-h-96 w-full", className),
|
|
8780
8779
|
disabled: form.formState.isSubmitting,
|
|
8781
8780
|
placeholder,
|
|
8782
8781
|
"data-testid": testId
|
|
@@ -8862,10 +8861,10 @@ function UserMultiSelect({
|
|
|
8862
8861
|
const data = useDataListRetriever({
|
|
8863
8862
|
ready: !!company,
|
|
8864
8863
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
8865
|
-
return
|
|
8864
|
+
return _chunk5KQXRLK3js.UserService.findAllUsers(params);
|
|
8866
8865
|
}, "retriever"),
|
|
8867
8866
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _199 => _199.id]) },
|
|
8868
|
-
module:
|
|
8867
|
+
module: _chunk5KQXRLK3js.Modules.User
|
|
8869
8868
|
});
|
|
8870
8869
|
_react.useEffect.call(void 0, () => {
|
|
8871
8870
|
if (company) data.setReady(true);
|
|
@@ -8962,7 +8961,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
8962
8961
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8963
8962
|
const reactivateUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
8964
8963
|
try {
|
|
8965
|
-
const updatedUser = await
|
|
8964
|
+
const updatedUser = await _chunk5KQXRLK3js.UserService.reactivate({ userId: user.id });
|
|
8966
8965
|
setOpen(false);
|
|
8967
8966
|
propagateChanges(updatedUser);
|
|
8968
8967
|
} catch (error) {
|
|
@@ -9000,7 +8999,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
9000
8999
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivatorInterface, "UserReactivatorInterface");
|
|
9001
9000
|
function UserReactivator(props) {
|
|
9002
9001
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9003
|
-
if (!hasPermissionToModule({ module:
|
|
9002
|
+
if (!hasPermissionToModule({ module: _chunk5KQXRLK3js.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
9004
9003
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserReactivatorInterface, { ...props });
|
|
9005
9004
|
}
|
|
9006
9005
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivator, "UserReactivator");
|
|
@@ -9010,15 +9009,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserReactivator, "UserReactivator");
|
|
|
9010
9009
|
|
|
9011
9010
|
|
|
9012
9011
|
|
|
9013
|
-
|
|
9014
9012
|
function UserResentInvitationEmailInternal({ user }) {
|
|
9015
9013
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
9016
9014
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9017
9015
|
const sendInvitationEmail = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
9018
9016
|
try {
|
|
9019
|
-
await
|
|
9017
|
+
await _chunk5KQXRLK3js.UserService.sendInvitation({ userId: user.id, companyId: user.company.id });
|
|
9020
9018
|
setOpen(false);
|
|
9021
|
-
|
|
9019
|
+
_chunk5KQXRLK3js.showToast.call(void 0, t(`user.resend_activation.email_sent`), {
|
|
9022
9020
|
description: t(`user.resend_activation.email_sent_description`, { email: user.email })
|
|
9023
9021
|
});
|
|
9024
9022
|
} catch (error) {
|
|
@@ -9056,7 +9054,7 @@ function UserResentInvitationEmailInternal({ user }) {
|
|
|
9056
9054
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmailInternal, "UserResentInvitationEmailInternal");
|
|
9057
9055
|
function UserResentInvitationEmail(props) {
|
|
9058
9056
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9059
|
-
if (!hasPermissionToModule({ module:
|
|
9057
|
+
if (!hasPermissionToModule({ module: _chunk5KQXRLK3js.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
9060
9058
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserResentInvitationEmailInternal, { ...props });
|
|
9061
9059
|
}
|
|
9062
9060
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmail, "UserResentInvitationEmail");
|
|
@@ -9087,22 +9085,22 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
|
|
|
9087
9085
|
}, "getAvatar");
|
|
9088
9086
|
const content = showLink === false ? (
|
|
9089
9087
|
// If showLink is explicitly false, never show a link
|
|
9090
|
-
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
9088
|
+
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk5KQXRLK3js.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className), children: [
|
|
9091
9089
|
getAvatar(),
|
|
9092
9090
|
user.name
|
|
9093
9091
|
] }) : getAvatar()
|
|
9094
9092
|
) : showFull ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9095
9093
|
Link,
|
|
9096
9094
|
{
|
|
9097
|
-
href: generateUrl({ page:
|
|
9098
|
-
className:
|
|
9095
|
+
href: generateUrl({ page: _chunk5KQXRLK3js.Modules.User, id: user.id }),
|
|
9096
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className),
|
|
9099
9097
|
onClick: (e) => e.stopPropagation(),
|
|
9100
9098
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center gap-x-2", children: [
|
|
9101
9099
|
getAvatar(),
|
|
9102
9100
|
user.name
|
|
9103
9101
|
] })
|
|
9104
9102
|
}
|
|
9105
|
-
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page:
|
|
9103
|
+
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunk5KQXRLK3js.Modules.User, id: user.id }), className, children: getAvatar() }) : getAvatar();
|
|
9106
9104
|
if (!showTooltip) {
|
|
9107
9105
|
return content;
|
|
9108
9106
|
}
|
|
@@ -9123,10 +9121,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
9123
9121
|
const [isSearching, setIsSearching] = _react.useState.call(void 0, false);
|
|
9124
9122
|
const data = useDataListRetriever({
|
|
9125
9123
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
9126
|
-
return
|
|
9124
|
+
return _chunk5KQXRLK3js.UserService.findMany(params);
|
|
9127
9125
|
}, "retriever"),
|
|
9128
9126
|
retrieverParams: {},
|
|
9129
|
-
module:
|
|
9127
|
+
module: _chunk5KQXRLK3js.Modules.User
|
|
9130
9128
|
});
|
|
9131
9129
|
const search = _react.useCallback.call(void 0,
|
|
9132
9130
|
async (searchedTerm) => {
|
|
@@ -9225,24 +9223,24 @@ var UserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
9225
9223
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9226
9224
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9227
9225
|
const [user, setUser] = _react.useState.call(void 0,
|
|
9228
|
-
dehydratedUser ?
|
|
9226
|
+
dehydratedUser ? _chunk5KQXRLK3js.rehydrate.call(void 0, _chunk5KQXRLK3js.Modules.User, dehydratedUser) : void 0
|
|
9229
9227
|
);
|
|
9230
9228
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
9231
9229
|
const response = [];
|
|
9232
|
-
if (hasPermissionToModule({ module:
|
|
9230
|
+
if (hasPermissionToModule({ module: _chunk5KQXRLK3js.Modules.User, action: "update" /* Update */ })) {
|
|
9233
9231
|
response.push({
|
|
9234
9232
|
name: t(`common.settings`),
|
|
9235
9233
|
href: generateUrl({ page: `/settings` })
|
|
9236
9234
|
});
|
|
9237
9235
|
response.push({
|
|
9238
9236
|
name: t(`entities.users`, { count: 2 }),
|
|
9239
|
-
href: generateUrl({ page: `/settings`, id:
|
|
9237
|
+
href: generateUrl({ page: `/settings`, id: _chunk5KQXRLK3js.Modules.User.pageUrl })
|
|
9240
9238
|
});
|
|
9241
9239
|
}
|
|
9242
9240
|
if (user)
|
|
9243
9241
|
response.push({
|
|
9244
9242
|
name: `${user.name}${user.isDeleted ? ` (${t(`user.deleted`)})` : ""}`,
|
|
9245
|
-
href: generateUrl({ page:
|
|
9243
|
+
href: generateUrl({ page: _chunk5KQXRLK3js.Modules.User, id: user.id })
|
|
9246
9244
|
});
|
|
9247
9245
|
return response;
|
|
9248
9246
|
}, "breadcrumb");
|
|
@@ -9297,7 +9295,7 @@ function UserDetails({ user }) {
|
|
|
9297
9295
|
const { title } = useSharedContext();
|
|
9298
9296
|
let roles = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
9299
9297
|
if (user.roles && user.roles.length > 0) {
|
|
9300
|
-
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:
|
|
9298
|
+
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: _chunk5KQXRLK3js.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)) }) });
|
|
9301
9299
|
}
|
|
9302
9300
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
9303
9301
|
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,
|
|
@@ -9310,7 +9308,7 @@ function UserDetails({ user }) {
|
|
|
9310
9308
|
className: "h-auto w-full rounded-lg object-contain"
|
|
9311
9309
|
}
|
|
9312
9310
|
) }),
|
|
9313
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module:
|
|
9311
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunk5KQXRLK3js.Modules.User, type: title.type, element: title.element, functions: title.functions }),
|
|
9314
9312
|
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`) }) }) }),
|
|
9315
9313
|
roles,
|
|
9316
9314
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AttributeElement, { inline: true, title: t(`user.fields.title.label`), value: user.title }),
|
|
@@ -9364,18 +9362,18 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserIndexContainer, "UserIndexContainer");
|
|
|
9364
9362
|
function UsersListContainerInternal() {
|
|
9365
9363
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9366
9364
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9367
|
-
if (!hasPermissionToModule({ module:
|
|
9365
|
+
if (!hasPermissionToModule({ module: _chunk5KQXRLK3js.Modules.User, action: "delete" /* Delete */ })) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {});
|
|
9368
9366
|
const tabs = [
|
|
9369
9367
|
{
|
|
9370
9368
|
label: t(`entities.users`, { count: 2 }),
|
|
9371
9369
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {}),
|
|
9372
|
-
modules: [
|
|
9370
|
+
modules: [_chunk5KQXRLK3js.Modules.Company],
|
|
9373
9371
|
action: "read" /* Read */
|
|
9374
9372
|
},
|
|
9375
9373
|
{
|
|
9376
9374
|
label: t(`user.deleted`),
|
|
9377
9375
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, { isDeleted: true }),
|
|
9378
|
-
modules: [
|
|
9376
|
+
modules: [_chunk5KQXRLK3js.Modules.Company],
|
|
9379
9377
|
action: "update" /* Update */
|
|
9380
9378
|
}
|
|
9381
9379
|
];
|
|
@@ -9393,9 +9391,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersListContainer, "UsersListContainer");
|
|
|
9393
9391
|
function AdminUsersListInternal({ company }) {
|
|
9394
9392
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9395
9393
|
const data = useDataListRetriever({
|
|
9396
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9394
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk5KQXRLK3js.UserService.findManyForAmin(params), "retriever"),
|
|
9397
9395
|
retrieverParams: { companyId: company.id },
|
|
9398
|
-
module:
|
|
9396
|
+
module: _chunk5KQXRLK3js.Modules.User
|
|
9399
9397
|
});
|
|
9400
9398
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9401
9399
|
ContentListTable,
|
|
@@ -9403,7 +9401,7 @@ function AdminUsersListInternal({ company }) {
|
|
|
9403
9401
|
title: t(`entities.users`, { count: 2 }),
|
|
9404
9402
|
data,
|
|
9405
9403
|
fields: ["name" /* name */, "email" /* email */, "createdAt" /* createdAt */],
|
|
9406
|
-
tableGeneratorType:
|
|
9404
|
+
tableGeneratorType: _chunk5KQXRLK3js.Modules.User,
|
|
9407
9405
|
functions: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserEditor, { propagateChanges: data.refresh, adminCreated: true })
|
|
9408
9406
|
}
|
|
9409
9407
|
);
|
|
@@ -9425,9 +9423,9 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
9425
9423
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9426
9424
|
const data = useDataListRetriever({
|
|
9427
9425
|
ready: !!company,
|
|
9428
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9426
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk5KQXRLK3js.UserService.findAllUsers(params), "retriever"),
|
|
9429
9427
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _218 => _218.id]), isDeleted },
|
|
9430
|
-
module:
|
|
9428
|
+
module: _chunk5KQXRLK3js.Modules.User
|
|
9431
9429
|
});
|
|
9432
9430
|
_react.useEffect.call(void 0, () => {
|
|
9433
9431
|
if (company) data.setReady(true);
|
|
@@ -9440,7 +9438,7 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
9440
9438
|
{
|
|
9441
9439
|
data,
|
|
9442
9440
|
fields: ["name" /* name */, "email" /* email */],
|
|
9443
|
-
tableGeneratorType:
|
|
9441
|
+
tableGeneratorType: _chunk5KQXRLK3js.Modules.User,
|
|
9444
9442
|
functions,
|
|
9445
9443
|
title: t(`entities.users`, { count: 2 })
|
|
9446
9444
|
}
|
|
@@ -9456,7 +9454,7 @@ function ContributorsList({ content }) {
|
|
|
9456
9454
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9457
9455
|
Link,
|
|
9458
9456
|
{
|
|
9459
|
-
href: generateUrl({ page:
|
|
9457
|
+
href: generateUrl({ page: _chunk5KQXRLK3js.Modules.User, id: content.author.id }),
|
|
9460
9458
|
onClick: (e) => e.stopPropagation(),
|
|
9461
9459
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: content.author, className: "mr-1 h-6 w-6" })
|
|
9462
9460
|
},
|
|
@@ -9465,7 +9463,7 @@ function ContributorsList({ content }) {
|
|
|
9465
9463
|
/* @__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,
|
|
9466
9464
|
Link,
|
|
9467
9465
|
{
|
|
9468
|
-
href: generateUrl({ page:
|
|
9466
|
+
href: generateUrl({ page: _chunk5KQXRLK3js.Modules.User, id: editor.id }),
|
|
9469
9467
|
onClick: (e) => e.stopPropagation(),
|
|
9470
9468
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: editor, className: "h-5 w-5" })
|
|
9471
9469
|
},
|
|
@@ -9481,8 +9479,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContributorsList, "ContributorsList");
|
|
|
9481
9479
|
function RelevantUsersList({ id }) {
|
|
9482
9480
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9483
9481
|
const data = useDataListRetriever({
|
|
9484
|
-
module:
|
|
9485
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9482
|
+
module: _chunk5KQXRLK3js.Modules.User,
|
|
9483
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk5KQXRLK3js.UserService.findRelevant(params), "retriever"),
|
|
9486
9484
|
retrieverParams: { id }
|
|
9487
9485
|
});
|
|
9488
9486
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -9490,7 +9488,7 @@ function RelevantUsersList({ id }) {
|
|
|
9490
9488
|
{
|
|
9491
9489
|
data,
|
|
9492
9490
|
fields: ["name" /* name */, "email" /* email */, "relevance" /* relevance */],
|
|
9493
|
-
tableGeneratorType:
|
|
9491
|
+
tableGeneratorType: _chunk5KQXRLK3js.Modules.User,
|
|
9494
9492
|
title: t(`common.relevant_users`)
|
|
9495
9493
|
}
|
|
9496
9494
|
);
|
|
@@ -9503,16 +9501,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RelevantUsersList, "RelevantUsersList");
|
|
|
9503
9501
|
function RoleUsersList({ role }) {
|
|
9504
9502
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9505
9503
|
const data = useDataListRetriever({
|
|
9506
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9504
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk5KQXRLK3js.UserService.findAllUsersByRole(params), "retriever"),
|
|
9507
9505
|
retrieverParams: { roleId: role.id },
|
|
9508
|
-
module:
|
|
9506
|
+
module: _chunk5KQXRLK3js.Modules.User
|
|
9509
9507
|
});
|
|
9510
9508
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9511
9509
|
ContentListTable,
|
|
9512
9510
|
{
|
|
9513
9511
|
data,
|
|
9514
9512
|
fields: ["name" /* name */, "email" /* email */],
|
|
9515
|
-
tableGeneratorType:
|
|
9513
|
+
tableGeneratorType: _chunk5KQXRLK3js.Modules.User,
|
|
9516
9514
|
title: t(`entities.users`, { count: 2 })
|
|
9517
9515
|
}
|
|
9518
9516
|
);
|
|
@@ -9562,7 +9560,7 @@ function UsersList({ data, optionComponents, removeFunction, hideOptions, showRe
|
|
|
9562
9560
|
{
|
|
9563
9561
|
data,
|
|
9564
9562
|
fields: ["name" /* name */, "email" /* email */],
|
|
9565
|
-
tableGeneratorType:
|
|
9563
|
+
tableGeneratorType: _chunk5KQXRLK3js.Modules.User,
|
|
9566
9564
|
title: t(`entities.users`, { count: 2 })
|
|
9567
9565
|
}
|
|
9568
9566
|
);
|
|
@@ -9575,8 +9573,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersList, "UsersList");
|
|
|
9575
9573
|
function UsersListByContentIds({ contentIds }) {
|
|
9576
9574
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9577
9575
|
const data = useDataListRetriever({
|
|
9578
|
-
module:
|
|
9579
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9576
|
+
module: _chunk5KQXRLK3js.Modules.User,
|
|
9577
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk5KQXRLK3js.UserService.findManyByContentIds(params), "retriever"),
|
|
9580
9578
|
retrieverParams: { contentIds }
|
|
9581
9579
|
});
|
|
9582
9580
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -9584,7 +9582,7 @@ function UsersListByContentIds({ contentIds }) {
|
|
|
9584
9582
|
{
|
|
9585
9583
|
data,
|
|
9586
9584
|
fields: ["name" /* name */, "email" /* email */],
|
|
9587
|
-
tableGeneratorType:
|
|
9585
|
+
tableGeneratorType: _chunk5KQXRLK3js.Modules.User,
|
|
9588
9586
|
title: t(`common.relevant_users`)
|
|
9589
9587
|
}
|
|
9590
9588
|
);
|
|
@@ -9602,7 +9600,7 @@ function CompanyDetails() {
|
|
|
9602
9600
|
const { company } = useCompanyContext();
|
|
9603
9601
|
if (!company) return null;
|
|
9604
9602
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
9605
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module:
|
|
9603
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunk5KQXRLK3js.Modules.Company, type: title.type, element: title.element, functions: title.functions }),
|
|
9606
9604
|
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" })
|
|
9607
9605
|
] });
|
|
9608
9606
|
}
|
|
@@ -9613,7 +9611,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyDetails, "CompanyDetails");
|
|
|
9613
9611
|
function AdminCompanyContainerInternal() {
|
|
9614
9612
|
const { company } = useCompanyContext();
|
|
9615
9613
|
const { hasRole } = useCurrentUserContext();
|
|
9616
|
-
if (!company || !hasRole(
|
|
9614
|
+
if (!company || !hasRole(_chunkOR5NPUWFjs.getRoleId.call(void 0, ).Administrator)) return null;
|
|
9617
9615
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
9618
9616
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDetails, {}),
|
|
9619
9617
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AdminUsersList, {})
|
|
@@ -9667,13 +9665,13 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9667
9665
|
const textSize = textSizeClasses[size];
|
|
9668
9666
|
const getBatteryIcon = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
9669
9667
|
if (percentage > 75) {
|
|
9670
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryFull, { className:
|
|
9668
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryFull, { className: _chunk5KQXRLK3js.cn.call(void 0, iconSize, "text-green-500") });
|
|
9671
9669
|
} else if (percentage >= 25) {
|
|
9672
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryMedium, { className:
|
|
9670
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryMedium, { className: _chunk5KQXRLK3js.cn.call(void 0, iconSize, "text-yellow-500") });
|
|
9673
9671
|
} else if (percentage >= 5) {
|
|
9674
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryLow, { className:
|
|
9672
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryLow, { className: _chunk5KQXRLK3js.cn.call(void 0, iconSize, "text-orange-500") });
|
|
9675
9673
|
} else {
|
|
9676
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Battery, { className:
|
|
9674
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Battery, { className: _chunk5KQXRLK3js.cn.call(void 0, iconSize, "text-destructive") });
|
|
9677
9675
|
}
|
|
9678
9676
|
}, "getBatteryIcon");
|
|
9679
9677
|
const getStatusColor = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -9695,7 +9693,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9695
9693
|
t("billing.tokens.monthly", { defaultValue: "Monthly Pages" }),
|
|
9696
9694
|
":"
|
|
9697
9695
|
] }),
|
|
9698
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
9696
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk5KQXRLK3js.cn.call(void 0, "font-medium", getStatusColor()), children: [
|
|
9699
9697
|
availableMonthlyTokens,
|
|
9700
9698
|
" / ",
|
|
9701
9699
|
monthlyTokens
|
|
@@ -9706,7 +9704,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9706
9704
|
t("billing.tokens.available", { defaultValue: "Available" }),
|
|
9707
9705
|
":"
|
|
9708
9706
|
] }),
|
|
9709
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
9707
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk5KQXRLK3js.cn.call(void 0, "font-medium", getStatusColor()), children: [
|
|
9710
9708
|
percentage.toFixed(0),
|
|
9711
9709
|
"%"
|
|
9712
9710
|
] })
|
|
@@ -9727,14 +9725,14 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9727
9725
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9728
9726
|
"div",
|
|
9729
9727
|
{
|
|
9730
|
-
className:
|
|
9728
|
+
className: _chunk5KQXRLK3js.cn.call(void 0, "inline-flex items-center gap-1.5 cursor-default", className),
|
|
9731
9729
|
"aria-label": t("billing.tokens.status", { defaultValue: "Page Status" }),
|
|
9732
9730
|
children: [
|
|
9733
9731
|
getBatteryIcon(),
|
|
9734
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
9732
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk5KQXRLK3js.cn.call(void 0, textSize, "text-muted-foreground font-medium"), children: availableMonthlyTokens }),
|
|
9735
9733
|
showExtraPages && availableExtraTokens > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "inline-flex items-center gap-0.5", children: [
|
|
9736
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className:
|
|
9737
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
9734
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className: _chunk5KQXRLK3js.cn.call(void 0, smallIconSize, "text-blue-500") }),
|
|
9735
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk5KQXRLK3js.cn.call(void 0, textSize, "text-blue-500 font-medium"), children: availableExtraTokens })
|
|
9738
9736
|
] })
|
|
9739
9737
|
]
|
|
9740
9738
|
}
|
|
@@ -9752,7 +9750,6 @@ _chunk7QVYU63Ejs.__name.call(void 0, TokenStatusIndicator, "TokenStatusIndicator
|
|
|
9752
9750
|
|
|
9753
9751
|
|
|
9754
9752
|
|
|
9755
|
-
|
|
9756
9753
|
// src/features/company/components/forms/CompanyConfigurationSecurityForm.tsx
|
|
9757
9754
|
|
|
9758
9755
|
|
|
@@ -9852,12 +9849,12 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
9852
9849
|
}
|
|
9853
9850
|
};
|
|
9854
9851
|
try {
|
|
9855
|
-
await
|
|
9856
|
-
const fullUser = await
|
|
9852
|
+
await _chunk5KQXRLK3js.CompanyService.updateConfigurations(payload);
|
|
9853
|
+
const fullUser = await _chunk5KQXRLK3js.UserService.findFullUser();
|
|
9857
9854
|
if (fullUser) {
|
|
9858
9855
|
setUser(fullUser);
|
|
9859
9856
|
}
|
|
9860
|
-
|
|
9857
|
+
_chunk5KQXRLK3js.showToast.call(void 0, "Configurations Updated", {
|
|
9861
9858
|
description: `The system configurations have been updated successfully.`
|
|
9862
9859
|
});
|
|
9863
9860
|
close();
|
|
@@ -9872,7 +9869,7 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
9872
9869
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { size: "sm", variant: `ghost`, className: "cursor-pointer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Settings2Icon, { className: "h-3.5 w-3.5" }) }) }),
|
|
9873
9870
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogContent, { className: `flex max-h-[70vh] max-w-4xl flex-col overflow-y-auto`, children: [
|
|
9874
9871
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogHeader, { children: [
|
|
9875
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTitle, { children: t(`entities.
|
|
9872
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTitle, { children: t(`entities.configurations`, { count: 2 }) }),
|
|
9876
9873
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogDescription, { className: "text-destructive", children: t(`features.configuration.warning_description`) })
|
|
9877
9874
|
] }),
|
|
9878
9875
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), className: `flex w-full flex-col gap-y-4`, children: [
|
|
@@ -9889,7 +9886,7 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
9889
9886
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditorInternal, "CompanyConfigurationEditorInternal");
|
|
9890
9887
|
function CompanyConfigurationEditor(props) {
|
|
9891
9888
|
const { hasRole } = useCurrentUserContext();
|
|
9892
|
-
if (hasRole(
|
|
9889
|
+
if (hasRole(_chunkOR5NPUWFjs.getRoleId.call(void 0, ).Administrator)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditorInternal, { ...props });
|
|
9893
9890
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditorInternal, { ...props });
|
|
9894
9891
|
}
|
|
9895
9892
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditor, "CompanyConfigurationEditor");
|
|
@@ -9901,14 +9898,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditor, "CompanyConfigu
|
|
|
9901
9898
|
|
|
9902
9899
|
function CompanyDeleterInternal({ company }) {
|
|
9903
9900
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9904
|
-
const router =
|
|
9901
|
+
const router = _chunkOR5NPUWFjs.useI18nRouter.call(void 0, );
|
|
9905
9902
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
9906
9903
|
const [isDeleting, setIsDeleting] = _react.useState.call(void 0, false);
|
|
9907
9904
|
const [companyName, setCompanyName] = _react.useState.call(void 0, "");
|
|
9908
9905
|
const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
9909
9906
|
setIsDeleting(true);
|
|
9910
9907
|
try {
|
|
9911
|
-
await
|
|
9908
|
+
await _chunk5KQXRLK3js.CompanyService.delete({ companyId: company.id });
|
|
9912
9909
|
router.push("/");
|
|
9913
9910
|
} catch (error) {
|
|
9914
9911
|
errorToast({ title: t(`common.errors.delete`), error });
|
|
@@ -9966,7 +9963,7 @@ function CompanyDeleterInternal({ company }) {
|
|
|
9966
9963
|
variant: "destructive",
|
|
9967
9964
|
disabled: company.name !== companyName || isDeleting,
|
|
9968
9965
|
children: isDeleting ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
9969
|
-
t(`ui.buttons.
|
|
9966
|
+
t(`ui.buttons.deleting`),
|
|
9970
9967
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.LoaderCircleIcon, { className: "animate-spin-slow h-5 w-5" })
|
|
9971
9968
|
] }) : t(`ui.buttons.delete`)
|
|
9972
9969
|
}
|
|
@@ -9978,7 +9975,7 @@ function CompanyDeleterInternal({ company }) {
|
|
|
9978
9975
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleterInternal, "CompanyDeleterInternal");
|
|
9979
9976
|
function CompanyDeleter({ company }) {
|
|
9980
9977
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
9981
|
-
if (!hasRole(
|
|
9978
|
+
if (!hasRole(_chunkOR5NPUWFjs.getRoleId.call(void 0, ).Administrator) && !hasPermissionToModule({ module: _chunk5KQXRLK3js.Modules.Company, action: "delete" /* Delete */ }))
|
|
9982
9979
|
return null;
|
|
9983
9980
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleterInternal, { company });
|
|
9984
9981
|
}
|
|
@@ -9997,7 +9994,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleter, "CompanyDeleter");
|
|
|
9997
9994
|
|
|
9998
9995
|
function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
9999
9996
|
const { hasRole } = useCurrentUserContext();
|
|
10000
|
-
const router =
|
|
9997
|
+
const router = _chunkOR5NPUWFjs.useI18nRouter.call(void 0, );
|
|
10001
9998
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
10002
9999
|
const [features, setFeatures] = _react.useState.call(void 0, []);
|
|
10003
10000
|
const [file, setFile] = _react.useState.call(void 0, null);
|
|
@@ -10026,7 +10023,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10026
10023
|
});
|
|
10027
10024
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
10028
10025
|
if (values.logo && contentType) {
|
|
10029
|
-
const s3 = await
|
|
10026
|
+
const s3 = await _chunk5KQXRLK3js.S3Service.getPreSignedUrl({
|
|
10030
10027
|
key: values.logo,
|
|
10031
10028
|
contentType,
|
|
10032
10029
|
isPublic: true
|
|
@@ -10045,9 +10042,9 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10045
10042
|
moduleIds: values.moduleIds
|
|
10046
10043
|
};
|
|
10047
10044
|
try {
|
|
10048
|
-
const updatedCompany = company ? await
|
|
10045
|
+
const updatedCompany = company ? await _chunk5KQXRLK3js.CompanyService.update(payload) : await _chunk5KQXRLK3js.CompanyService.create(payload);
|
|
10049
10046
|
if (onRevalidate) {
|
|
10050
|
-
await onRevalidate(generateUrl({ page:
|
|
10047
|
+
await onRevalidate(generateUrl({ page: _chunk5KQXRLK3js.Modules.Company, id: updatedCompany.id, language: `[locale]` }));
|
|
10051
10048
|
}
|
|
10052
10049
|
if (company && propagateChanges) {
|
|
10053
10050
|
_cookiesnext.setCookie.call(void 0, "reloadData", "true", { path: "/" });
|
|
@@ -10065,15 +10062,15 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10065
10062
|
}, "onSubmit");
|
|
10066
10063
|
_react.useEffect.call(void 0, () => {
|
|
10067
10064
|
async function fetchFeatures() {
|
|
10068
|
-
const allfeatures = await
|
|
10069
|
-
if (hasRole(
|
|
10065
|
+
const allfeatures = await _chunk5KQXRLK3js.FeatureService.findMany({});
|
|
10066
|
+
if (hasRole(_chunkOR5NPUWFjs.getRoleId.call(void 0, ).Administrator)) {
|
|
10070
10067
|
setFeatures(allfeatures);
|
|
10071
10068
|
} else {
|
|
10072
10069
|
setFeatures(allfeatures.filter((feature) => feature.isCore));
|
|
10073
10070
|
}
|
|
10074
10071
|
}
|
|
10075
10072
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
|
|
10076
|
-
if (open && features.length === 0 && (hasRole(
|
|
10073
|
+
if (open && features.length === 0 && (hasRole(_chunkOR5NPUWFjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkOR5NPUWFjs.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"))
|
|
10077
10074
|
fetchFeatures();
|
|
10078
10075
|
}, [open, features]);
|
|
10079
10076
|
_react.useEffect.call(void 0, () => {
|
|
@@ -10107,8 +10104,8 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10107
10104
|
"application/images": [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg"]
|
|
10108
10105
|
}
|
|
10109
10106
|
};
|
|
10110
|
-
const canAccessFeatures = hasRole(
|
|
10111
|
-
const isAdministrator = hasRole(
|
|
10107
|
+
const canAccessFeatures = hasRole(_chunkOR5NPUWFjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkOR5NPUWFjs.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";
|
|
10108
|
+
const isAdministrator = hasRole(_chunkOR5NPUWFjs.getRoleId.call(void 0, ).Administrator);
|
|
10112
10109
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
10113
10110
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!company }),
|
|
10114
10111
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -10161,9 +10158,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyEditor, "CompanyEditor");
|
|
|
10161
10158
|
function CompaniesList() {
|
|
10162
10159
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10163
10160
|
const data = useDataListRetriever({
|
|
10164
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
10161
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk5KQXRLK3js.CompanyService.findMany(params), "retriever"),
|
|
10165
10162
|
retrieverParams: {},
|
|
10166
|
-
module:
|
|
10163
|
+
module: _chunk5KQXRLK3js.Modules.Company
|
|
10167
10164
|
});
|
|
10168
10165
|
const functions = [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, {}, "create-account")];
|
|
10169
10166
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10171,7 +10168,7 @@ function CompaniesList() {
|
|
|
10171
10168
|
{
|
|
10172
10169
|
data,
|
|
10173
10170
|
fields: ["name" /* name */, "createdAt" /* createdAt */],
|
|
10174
|
-
tableGeneratorType:
|
|
10171
|
+
tableGeneratorType: _chunk5KQXRLK3js.Modules.Company,
|
|
10175
10172
|
functions,
|
|
10176
10173
|
title: t(`entities.companies`, { count: 2 })
|
|
10177
10174
|
}
|
|
@@ -10192,14 +10189,14 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
10192
10189
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10193
10190
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
10194
10191
|
const [company, setCompany] = _react.useState.call(void 0,
|
|
10195
|
-
dehydratedCompany ?
|
|
10192
|
+
dehydratedCompany ? _chunk5KQXRLK3js.rehydrate.call(void 0, _chunk5KQXRLK3js.Modules.Company, dehydratedCompany) : void 0
|
|
10196
10193
|
);
|
|
10197
10194
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10198
10195
|
const response = [];
|
|
10199
10196
|
if (company)
|
|
10200
10197
|
response.push({
|
|
10201
10198
|
name: company.name,
|
|
10202
|
-
href: generateUrl({ page:
|
|
10199
|
+
href: generateUrl({ page: _chunk5KQXRLK3js.Modules.Company })
|
|
10203
10200
|
});
|
|
10204
10201
|
return response;
|
|
10205
10202
|
}, "breadcrumb");
|
|
@@ -10209,9 +10206,9 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
10209
10206
|
};
|
|
10210
10207
|
if (company) response.element = company.name;
|
|
10211
10208
|
const functions = [];
|
|
10212
|
-
if (company && hasRole(
|
|
10209
|
+
if (company && hasRole(_chunkOR5NPUWFjs.getRoleId.call(void 0, ).Administrator) && hasPermissionToModule({ module: _chunk5KQXRLK3js.Modules.Company, action: "delete" /* Delete */ }))
|
|
10213
10210
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleter, { company }, "companyDeleter"));
|
|
10214
|
-
if (hasRole(
|
|
10211
|
+
if (hasRole(_chunkOR5NPUWFjs.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module: _chunk5KQXRLK3js.Modules.Company, action: "update" /* Update */ })) {
|
|
10215
10212
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, { company, propagateChanges: setCompany }, "companyEditor"));
|
|
10216
10213
|
}
|
|
10217
10214
|
if (functions.length > 0) response.functions = functions;
|
|
@@ -10303,7 +10300,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, NotificationMenuItem, "NotificationMenuItem
|
|
|
10303
10300
|
var NotificationContext = _react.createContext.call(void 0, void 0);
|
|
10304
10301
|
var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ children }) => {
|
|
10305
10302
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10306
|
-
const router =
|
|
10303
|
+
const router = _chunkOR5NPUWFjs.useI18nRouter.call(void 0, );
|
|
10307
10304
|
const [notifications, setNotifications] = _react.useState.call(void 0, []);
|
|
10308
10305
|
const [isLoading, setIsLoading] = _react.useState.call(void 0, false);
|
|
10309
10306
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
@@ -10330,7 +10327,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
10330
10327
|
setIsLoading(true);
|
|
10331
10328
|
setError(null);
|
|
10332
10329
|
try {
|
|
10333
|
-
const fetchedNotifications = await
|
|
10330
|
+
const fetchedNotifications = await _chunk5KQXRLK3js.NotificationService.findMany({});
|
|
10334
10331
|
setNotifications(fetchedNotifications);
|
|
10335
10332
|
setLastLoaded(Date.now());
|
|
10336
10333
|
} catch (error2) {
|
|
@@ -10342,9 +10339,9 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
10342
10339
|
}, []);
|
|
10343
10340
|
_react.useEffect.call(void 0, () => {
|
|
10344
10341
|
if (hasInitiallyLoaded || !currentUser) return;
|
|
10345
|
-
if (
|
|
10342
|
+
if (_chunkOR5NPUWFjs.isRolesConfigured.call(void 0, )) {
|
|
10346
10343
|
const isAdmin = _optionalChain([currentUser, 'access', _254 => _254.roles, 'optionalAccess', _255 => _255.some, 'call', _256 => _256(
|
|
10347
|
-
(role) => role.id ===
|
|
10344
|
+
(role) => role.id === _chunkOR5NPUWFjs.getRoleId.call(void 0, ).Administrator
|
|
10348
10345
|
)]);
|
|
10349
10346
|
if (isAdmin) {
|
|
10350
10347
|
setHasInitiallyLoaded(true);
|
|
@@ -10360,7 +10357,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
10360
10357
|
try {
|
|
10361
10358
|
const data = {
|
|
10362
10359
|
data: ids.map((id) => ({
|
|
10363
|
-
type:
|
|
10360
|
+
type: _chunk5KQXRLK3js.Modules.Notification.name,
|
|
10364
10361
|
id,
|
|
10365
10362
|
attributes: {
|
|
10366
10363
|
isRead: true
|
|
@@ -10369,8 +10366,8 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
10369
10366
|
relationships: {}
|
|
10370
10367
|
}))
|
|
10371
10368
|
};
|
|
10372
|
-
await
|
|
10373
|
-
const allNotifications = await
|
|
10369
|
+
await _chunk5KQXRLK3js.NotificationService.markAsRead({ data });
|
|
10370
|
+
const allNotifications = await _chunk5KQXRLK3js.NotificationService.findMany({});
|
|
10374
10371
|
setNotifications(allNotifications);
|
|
10375
10372
|
setLastLoaded(Date.now());
|
|
10376
10373
|
} catch (error2) {
|
|
@@ -10438,18 +10435,18 @@ var RoleProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
10438
10435
|
const generateUrl = usePageUrlGenerator();
|
|
10439
10436
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10440
10437
|
const [role, setRole] = _react.useState.call(void 0,
|
|
10441
|
-
dehydratedRole ?
|
|
10438
|
+
dehydratedRole ? _chunk5KQXRLK3js.rehydrate.call(void 0, _chunk5KQXRLK3js.Modules.Role, dehydratedRole) : void 0
|
|
10442
10439
|
);
|
|
10443
10440
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10444
10441
|
const response = [];
|
|
10445
10442
|
response.push({
|
|
10446
10443
|
name: t(`entities.roles`, { count: 2 }),
|
|
10447
|
-
href: generateUrl({ page:
|
|
10444
|
+
href: generateUrl({ page: _chunk5KQXRLK3js.Modules.Role })
|
|
10448
10445
|
});
|
|
10449
10446
|
if (role)
|
|
10450
10447
|
response.push({
|
|
10451
10448
|
name: role.name,
|
|
10452
|
-
href: generateUrl({ page:
|
|
10449
|
+
href: generateUrl({ page: _chunk5KQXRLK3js.Modules.Role, id: role.id })
|
|
10453
10450
|
});
|
|
10454
10451
|
return response;
|
|
10455
10452
|
}, "breadcrumb");
|
|
@@ -10568,7 +10565,7 @@ function usePageTracker() {
|
|
|
10568
10565
|
const moduleName = pathParts[0];
|
|
10569
10566
|
const entityId = pathParts.length > 1 ? pathParts[1] : null;
|
|
10570
10567
|
if (!entityId) return;
|
|
10571
|
-
const trackablePages =
|
|
10568
|
+
const trackablePages = _chunkOR5NPUWFjs.getTrackablePages.call(void 0, );
|
|
10572
10569
|
const foundModule = trackablePages.find((mod) => mod.pageUrl === `/${moduleName}`);
|
|
10573
10570
|
if (!foundModule) return;
|
|
10574
10571
|
const baseUrl = `/${moduleName}/${entityId}`;
|
|
@@ -10615,7 +10612,7 @@ function usePushNotifications() {
|
|
|
10615
10612
|
try {
|
|
10616
10613
|
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _263 => _263.id])}`;
|
|
10617
10614
|
const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
|
|
10618
|
-
const registration = await navigator.serviceWorker.register(`${
|
|
10615
|
+
const registration = await navigator.serviceWorker.register(`${_chunkOR5NPUWFjs.getAppUrl.call(void 0, )}/sw.js`);
|
|
10619
10616
|
let permission = Notification.permission;
|
|
10620
10617
|
if (permission === "default") {
|
|
10621
10618
|
permission = await Notification.requestPermission();
|
|
@@ -10640,7 +10637,7 @@ function usePushNotifications() {
|
|
|
10640
10637
|
};
|
|
10641
10638
|
const subscriptionHash = btoa(JSON.stringify(plainSubscription));
|
|
10642
10639
|
if (lastRegisteredSubscription !== subscriptionHash) {
|
|
10643
|
-
await
|
|
10640
|
+
await _chunk5KQXRLK3js.PushService.register({ data: plainSubscription });
|
|
10644
10641
|
sessionStorage.setItem(sessionKey, subscriptionHash);
|
|
10645
10642
|
}
|
|
10646
10643
|
} catch (error) {
|
|
@@ -10648,7 +10645,7 @@ function usePushNotifications() {
|
|
|
10648
10645
|
}
|
|
10649
10646
|
}
|
|
10650
10647
|
}, "register");
|
|
10651
|
-
if (currentUser && !hasRole(
|
|
10648
|
+
if (currentUser && !hasRole(_chunkOR5NPUWFjs.getRoleId.call(void 0, ).Administrator)) register();
|
|
10652
10649
|
}, [currentUser]);
|
|
10653
10650
|
}
|
|
10654
10651
|
_chunk7QVYU63Ejs.__name.call(void 0, usePushNotifications, "usePushNotifications");
|
|
@@ -10723,7 +10720,7 @@ function useSocket({ token }) {
|
|
|
10723
10720
|
});
|
|
10724
10721
|
}, "handleMessage");
|
|
10725
10722
|
const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
|
|
10726
|
-
const notification =
|
|
10723
|
+
const notification = _chunk5KQXRLK3js.rehydrate.call(void 0, _chunk5KQXRLK3js.Modules.Notification, data);
|
|
10727
10724
|
if (notification) {
|
|
10728
10725
|
setSocketNotifications((prev) => {
|
|
10729
10726
|
const newNotifications = [...prev, notification];
|
|
@@ -10838,7 +10835,7 @@ function ContentTitle({ module, type, element, functions, className }) {
|
|
|
10838
10835
|
setClientFunctions(functions);
|
|
10839
10836
|
}, [functions]);
|
|
10840
10837
|
if (!element) return null;
|
|
10841
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
10838
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk5KQXRLK3js.cn.call(void 0, `mb-4 flex items-center justify-between gap-x-4 w-full`, className), children: [
|
|
10842
10839
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col w-full", children: [
|
|
10843
10840
|
type && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `text-muted-foreground text-xl font-light flex gap-x-2 items-center`, children: [
|
|
10844
10841
|
module && module.icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, module.icon, { className: "w-5 h-5 inline-block" }),
|
|
@@ -10859,7 +10856,7 @@ function Header({ children }) {
|
|
|
10859
10856
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10860
10857
|
const { breadcrumbs } = useSharedContext();
|
|
10861
10858
|
const { company, hasRole, refreshUser, isRefreshing } = useCurrentUserContext();
|
|
10862
|
-
const showTokenStatus = !hasRole(
|
|
10859
|
+
const showTokenStatus = !hasRole(_chunkOR5NPUWFjs.getRoleId.call(void 0, ).Administrator) && company;
|
|
10863
10860
|
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: [
|
|
10864
10861
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SidebarTrigger, { "aria-label": "Toggle sidebar" }),
|
|
10865
10862
|
/* @__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 }) }),
|
|
@@ -10986,7 +10983,7 @@ function PageContainer({ children, testId, className }) {
|
|
|
10986
10983
|
const headerChildren = useHeaderChildren();
|
|
10987
10984
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex h-full w-full flex-col`, "data-testid": testId, children: [
|
|
10988
10985
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header, { children: headerChildren }),
|
|
10989
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className:
|
|
10986
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className: _chunk5KQXRLK3js.cn.call(void 0, `flex w-full flex-1 flex-col gap-y-4 pt-4 pl-4 pr-4 pb-20`, className), children })
|
|
10990
10987
|
] });
|
|
10991
10988
|
}
|
|
10992
10989
|
_chunk7QVYU63Ejs.__name.call(void 0, PageContainer, "PageContainer");
|
|
@@ -11004,7 +11001,7 @@ function ReactMarkdownContainer({
|
|
|
11004
11001
|
initialLines = 4,
|
|
11005
11002
|
size = "normal"
|
|
11006
11003
|
}) {
|
|
11007
|
-
const t = _nextintl.useTranslations.call(void 0, "
|
|
11004
|
+
const t = _nextintl.useTranslations.call(void 0, "ui.buttons");
|
|
11008
11005
|
const [isExpanded, setIsExpanded] = _react.useState.call(void 0, false);
|
|
11009
11006
|
const [showExpandButton, setShowExpandButton] = _react.useState.call(void 0, false);
|
|
11010
11007
|
const contentRef = _react.useRef.call(void 0, null);
|
|
@@ -11095,7 +11092,7 @@ function TabsContainer({
|
|
|
11095
11092
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11096
11093
|
TabsList,
|
|
11097
11094
|
{
|
|
11098
|
-
className:
|
|
11095
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
11099
11096
|
`${style ? `my-4 flex w-full justify-start rounded-none border-b bg-transparent pb-0` : ``}`,
|
|
11100
11097
|
tabsListClassName
|
|
11101
11098
|
),
|
|
@@ -11103,7 +11100,7 @@ function TabsContainer({
|
|
|
11103
11100
|
TabsTrigger,
|
|
11104
11101
|
{
|
|
11105
11102
|
value: tab.label,
|
|
11106
|
-
className:
|
|
11103
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
11107
11104
|
`${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`}`,
|
|
11108
11105
|
tabsTriggerClassName
|
|
11109
11106
|
),
|
|
@@ -11123,7 +11120,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, TabsContainer, "TabsContainer");
|
|
|
11123
11120
|
// src/components/contents/AttributeElement.tsx
|
|
11124
11121
|
|
|
11125
11122
|
function AttributeElement({ inline, title, value, className }) {
|
|
11126
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
11123
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk5KQXRLK3js.cn.call(void 0, `flex ${inline === true ? "flex-row" : "flex-col"} my-1 justify-start`, className), children: [
|
|
11127
11124
|
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${inline === true ? "min-w-48 pr-4" : "w-full"} text-sm font-semibold`, children: title }),
|
|
11128
11125
|
value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col text-sm", children: value })
|
|
11129
11126
|
] });
|
|
@@ -11146,7 +11143,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AllowedUsersDetails, "AllowedUsersDetails")
|
|
|
11146
11143
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
11147
11144
|
|
|
11148
11145
|
|
|
11149
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
11146
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-TUJ3VCS3.js"))), {
|
|
11150
11147
|
ssr: false
|
|
11151
11148
|
});
|
|
11152
11149
|
var BlockNoteEditorContainer = React3.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -11197,7 +11194,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, PageContainerContentDetails, "PageContainer
|
|
|
11197
11194
|
|
|
11198
11195
|
function PageContentContainer({ header, details, footer, content }) {
|
|
11199
11196
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
11200
|
-
const isMobile =
|
|
11197
|
+
const isMobile = _chunk5KQXRLK3js.useIsMobile.call(void 0, );
|
|
11201
11198
|
_react.useEffect.call(void 0, () => {
|
|
11202
11199
|
setMounted(true);
|
|
11203
11200
|
}, []);
|
|
@@ -11529,14 +11526,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, useJsonApiMutation, "useJsonApiMutation");
|
|
|
11529
11526
|
function useRehydration(classKey, data) {
|
|
11530
11527
|
return _react.useMemo.call(void 0, () => {
|
|
11531
11528
|
if (!data) return null;
|
|
11532
|
-
return
|
|
11529
|
+
return _chunk5KQXRLK3js.RehydrationFactory.rehydrate(classKey, data);
|
|
11533
11530
|
}, [classKey, data]);
|
|
11534
11531
|
}
|
|
11535
11532
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydration, "useRehydration");
|
|
11536
11533
|
function useRehydrationList(classKey, data) {
|
|
11537
11534
|
return _react.useMemo.call(void 0, () => {
|
|
11538
11535
|
if (!data || data.length === 0) return [];
|
|
11539
|
-
return
|
|
11536
|
+
return _chunk5KQXRLK3js.RehydrationFactory.rehydrateList(classKey, data);
|
|
11540
11537
|
}, [classKey, data]);
|
|
11541
11538
|
}
|
|
11542
11539
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydrationList, "useRehydrationList");
|
|
@@ -11576,11 +11573,11 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
11576
11573
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11577
11574
|
Link,
|
|
11578
11575
|
{
|
|
11579
|
-
href: hasRole(
|
|
11576
|
+
href: hasRole(_chunkOR5NPUWFjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
11580
11577
|
page: "/administration",
|
|
11581
|
-
id: _optionalChain([
|
|
11578
|
+
id: _optionalChain([_chunk5KQXRLK3js.Modules, 'access', _289 => _289.Company, 'access', _290 => _290.pageUrl, 'optionalAccess', _291 => _291.substring, 'call', _292 => _292(1)]),
|
|
11582
11579
|
childPage: company.id
|
|
11583
|
-
}) : generateUrl({ page:
|
|
11580
|
+
}) : generateUrl({ page: _chunk5KQXRLK3js.Modules.Company, id: company.id }),
|
|
11584
11581
|
children: row.getValue("name")
|
|
11585
11582
|
}
|
|
11586
11583
|
);
|
|
@@ -11681,7 +11678,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
11681
11678
|
header: t(`role.fields.name.label`),
|
|
11682
11679
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
11683
11680
|
const role = row.original.jsonApiData;
|
|
11684
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page:
|
|
11681
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunk5KQXRLK3js.Modules.Role, id: role.id }), children: row.getValue("name") });
|
|
11685
11682
|
}, "cell"),
|
|
11686
11683
|
enableSorting: false,
|
|
11687
11684
|
enableHiding: false
|
|
@@ -11718,7 +11715,7 @@ var useUserSearch = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
|
11718
11715
|
if (search === searchQueryRef.current && users.length > 0) return;
|
|
11719
11716
|
setIsLoading(true);
|
|
11720
11717
|
searchQueryRef.current = search;
|
|
11721
|
-
const fetchedUsers = await
|
|
11718
|
+
const fetchedUsers = await _chunk5KQXRLK3js.UserService.findMany({ search, fetchAll: true });
|
|
11722
11719
|
setUsers(fetchedUsers);
|
|
11723
11720
|
} catch (error) {
|
|
11724
11721
|
console.error("Failed to load users:", error);
|
|
@@ -11784,8 +11781,8 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
11784
11781
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11785
11782
|
Link,
|
|
11786
11783
|
{
|
|
11787
|
-
href: generateUrl({ page:
|
|
11788
|
-
className:
|
|
11784
|
+
href: generateUrl({ page: _chunk5KQXRLK3js.Modules.User, id: user.id }),
|
|
11785
|
+
className: _chunk5KQXRLK3js.cn.call(void 0,
|
|
11789
11786
|
`flex items-center justify-start gap-2`,
|
|
11790
11787
|
user.isDeleted || !user.isActivated ? "text-muted-foreground italic" : ""
|
|
11791
11788
|
),
|
|
@@ -11879,11 +11876,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
11879
11876
|
header: t(`content.fields.name.label`),
|
|
11880
11877
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
11881
11878
|
const content = row.original.jsonApiData;
|
|
11882
|
-
const contentModule = content.contentType ?
|
|
11879
|
+
const contentModule = content.contentType ? _chunk5KQXRLK3js.Modules.findByModelName(content.contentType) : void 0;
|
|
11883
11880
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
11884
11881
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
|
|
11885
11882
|
/* @__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: [
|
|
11886
|
-
contentModule &&
|
|
11883
|
+
contentModule && _chunk5KQXRLK3js.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
11887
11884
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: link, children: content.name })
|
|
11888
11885
|
] }) }),
|
|
11889
11886
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: content.tldr })
|
|
@@ -12020,7 +12017,7 @@ function useOAuthClients() {
|
|
|
12020
12017
|
setIsLoading(true);
|
|
12021
12018
|
setError(null);
|
|
12022
12019
|
try {
|
|
12023
|
-
const fetchedClients = await
|
|
12020
|
+
const fetchedClients = await _chunk5KQXRLK3js.OAuthService.listClients();
|
|
12024
12021
|
setClients(fetchedClients);
|
|
12025
12022
|
} catch (err) {
|
|
12026
12023
|
console.error("[useOAuthClients] Failed to fetch clients:", err);
|
|
@@ -12037,7 +12034,7 @@ function useOAuthClients() {
|
|
|
12037
12034
|
setIsLoading(true);
|
|
12038
12035
|
setError(null);
|
|
12039
12036
|
try {
|
|
12040
|
-
const result = await
|
|
12037
|
+
const result = await _chunk5KQXRLK3js.OAuthService.createClient(data);
|
|
12041
12038
|
addClient(result.client);
|
|
12042
12039
|
if (result.clientSecret) {
|
|
12043
12040
|
setNewClientSecret({
|
|
@@ -12084,7 +12081,7 @@ function useOAuthClient(clientId) {
|
|
|
12084
12081
|
setIsLoading(true);
|
|
12085
12082
|
setError(null);
|
|
12086
12083
|
try {
|
|
12087
|
-
const fetched = await
|
|
12084
|
+
const fetched = await _chunk5KQXRLK3js.OAuthService.getClient({ clientId });
|
|
12088
12085
|
setFetchedClient(fetched);
|
|
12089
12086
|
} catch (err) {
|
|
12090
12087
|
console.error("[useOAuthClient] Failed to fetch client:", err);
|
|
@@ -12104,7 +12101,7 @@ function useOAuthClient(clientId) {
|
|
|
12104
12101
|
setIsLoading(true);
|
|
12105
12102
|
setError(null);
|
|
12106
12103
|
try {
|
|
12107
|
-
const updated = await
|
|
12104
|
+
const updated = await _chunk5KQXRLK3js.OAuthService.updateClient({ clientId, data });
|
|
12108
12105
|
updateClientInStore(updated);
|
|
12109
12106
|
setFetchedClient(updated);
|
|
12110
12107
|
} catch (err) {
|
|
@@ -12123,7 +12120,7 @@ function useOAuthClient(clientId) {
|
|
|
12123
12120
|
setIsLoading(true);
|
|
12124
12121
|
setError(null);
|
|
12125
12122
|
try {
|
|
12126
|
-
await
|
|
12123
|
+
await _chunk5KQXRLK3js.OAuthService.deleteClient({ clientId });
|
|
12127
12124
|
removeClientFromStore(clientId);
|
|
12128
12125
|
} catch (err) {
|
|
12129
12126
|
console.error("[useOAuthClient] Failed to delete client:", err);
|
|
@@ -12139,7 +12136,7 @@ function useOAuthClient(clientId) {
|
|
|
12139
12136
|
setIsLoading(true);
|
|
12140
12137
|
setError(null);
|
|
12141
12138
|
try {
|
|
12142
|
-
const result = await
|
|
12139
|
+
const result = await _chunk5KQXRLK3js.OAuthService.regenerateSecret({ clientId });
|
|
12143
12140
|
setNewClientSecret({
|
|
12144
12141
|
clientId,
|
|
12145
12142
|
secret: result.clientSecret
|
|
@@ -12183,7 +12180,7 @@ function useOAuthConsent(params) {
|
|
|
12183
12180
|
setIsLoading(true);
|
|
12184
12181
|
setError(null);
|
|
12185
12182
|
try {
|
|
12186
|
-
const info = await
|
|
12183
|
+
const info = await _chunk5KQXRLK3js.OAuthService.getAuthorizationInfo(params);
|
|
12187
12184
|
setClientInfo(info);
|
|
12188
12185
|
} catch (err) {
|
|
12189
12186
|
console.error("[useOAuthConsent] Failed to fetch authorization info:", err);
|
|
@@ -12205,7 +12202,7 @@ function useOAuthConsent(params) {
|
|
|
12205
12202
|
setIsSubmitting(true);
|
|
12206
12203
|
setError(null);
|
|
12207
12204
|
try {
|
|
12208
|
-
const result = await
|
|
12205
|
+
const result = await _chunk5KQXRLK3js.OAuthService.approveAuthorization(params);
|
|
12209
12206
|
if (result.redirectUrl) {
|
|
12210
12207
|
window.location.href = result.redirectUrl;
|
|
12211
12208
|
}
|
|
@@ -12219,7 +12216,7 @@ function useOAuthConsent(params) {
|
|
|
12219
12216
|
setIsSubmitting(true);
|
|
12220
12217
|
setError(null);
|
|
12221
12218
|
try {
|
|
12222
|
-
const result = await
|
|
12219
|
+
const result = await _chunk5KQXRLK3js.OAuthService.denyAuthorization(params);
|
|
12223
12220
|
if (result.redirectUrl) {
|
|
12224
12221
|
window.location.href = result.redirectUrl;
|
|
12225
12222
|
}
|
|
@@ -12475,7 +12472,7 @@ function Register() {
|
|
|
12475
12472
|
email: values.email,
|
|
12476
12473
|
password: values.password
|
|
12477
12474
|
};
|
|
12478
|
-
await
|
|
12475
|
+
await _chunk5KQXRLK3js.AuthService.register(payload);
|
|
12479
12476
|
setShowConfirmation(true);
|
|
12480
12477
|
} catch (e) {
|
|
12481
12478
|
errorToast({ error: e });
|
|
@@ -12485,7 +12482,7 @@ function Register() {
|
|
|
12485
12482
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardHeader, { children: [
|
|
12486
12483
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardTitle, { className: "text-primary flex flex-col items-center pb-10 text-4xl", children: [
|
|
12487
12484
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/logo.webp", alt: "Logo", width: 100, height: 100, priority: true }),
|
|
12488
|
-
t(`auth.register`)
|
|
12485
|
+
t(`auth.buttons.register`)
|
|
12489
12486
|
] }),
|
|
12490
12487
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { className: "text-sm", children: showConfirmation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: " " }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: t(`auth.register_description`) }) })
|
|
12491
12488
|
] }),
|
|
@@ -12638,8 +12635,8 @@ function LandingComponent() {
|
|
|
12638
12635
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { className: "flex w-full justify-center text-center text-sm", children: t(`common.description`) })
|
|
12639
12636
|
] }),
|
|
12640
12637
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardFooter, { className: "mt-4 flex w-full flex-col justify-between gap-y-4", children: [
|
|
12641
|
-
|
|
12642
|
-
|
|
12638
|
+
_chunkOR5NPUWFjs.isInternalAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
12639
|
+
_chunkOR5NPUWFjs.isRegistrationAllowed.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12643
12640
|
Link,
|
|
12644
12641
|
{
|
|
12645
12642
|
href: "#",
|
|
@@ -12650,7 +12647,7 @@ function LandingComponent() {
|
|
|
12650
12647
|
),
|
|
12651
12648
|
/* @__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`) }) })
|
|
12652
12649
|
] }),
|
|
12653
|
-
|
|
12650
|
+
_chunkOR5NPUWFjs.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: `${_chunkOR5NPUWFjs.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" }) })
|
|
12654
12651
|
] })
|
|
12655
12652
|
] });
|
|
12656
12653
|
}
|
|
@@ -12664,7 +12661,6 @@ _chunk7QVYU63Ejs.__name.call(void 0, LandingComponent, "LandingComponent");
|
|
|
12664
12661
|
|
|
12665
12662
|
|
|
12666
12663
|
|
|
12667
|
-
|
|
12668
12664
|
function AcceptInvitation() {
|
|
12669
12665
|
const { setComponentType, params, setParams } = useAuthContext();
|
|
12670
12666
|
const [showConfirmation, setShowConfirmation] = _react.useState.call(void 0, false);
|
|
@@ -12676,7 +12672,7 @@ function AcceptInvitation() {
|
|
|
12676
12672
|
const payload = {
|
|
12677
12673
|
code
|
|
12678
12674
|
};
|
|
12679
|
-
await
|
|
12675
|
+
await _chunk5KQXRLK3js.AuthService.validateCode(payload);
|
|
12680
12676
|
} catch (e) {
|
|
12681
12677
|
setError(e instanceof Error ? e.message : String(e));
|
|
12682
12678
|
errorToast({ title: t(`common.errors.error`), error: e });
|
|
@@ -12714,9 +12710,9 @@ function AcceptInvitation() {
|
|
|
12714
12710
|
code: _optionalChain([params, 'optionalAccess', _315 => _315.code]),
|
|
12715
12711
|
password: values.password
|
|
12716
12712
|
};
|
|
12717
|
-
await
|
|
12713
|
+
await _chunk5KQXRLK3js.AuthService.acceptInvitation(payload);
|
|
12718
12714
|
setShowConfirmation(true);
|
|
12719
|
-
|
|
12715
|
+
_chunk5KQXRLK3js.showToast.call(void 0, t("auth.account_activated"), {
|
|
12720
12716
|
description: t("auth.account_activated_description")
|
|
12721
12717
|
});
|
|
12722
12718
|
setTimeout(() => {
|
|
@@ -12765,7 +12761,6 @@ _chunk7QVYU63Ejs.__name.call(void 0, AcceptInvitation, "AcceptInvitation");
|
|
|
12765
12761
|
|
|
12766
12762
|
|
|
12767
12763
|
|
|
12768
|
-
|
|
12769
12764
|
function ActivateAccount() {
|
|
12770
12765
|
const { setComponentType, params, setParams } = useAuthContext();
|
|
12771
12766
|
const [showConfirmation, setShowConfirmation] = _react.useState.call(void 0, false);
|
|
@@ -12777,10 +12772,10 @@ function ActivateAccount() {
|
|
|
12777
12772
|
const payload = {
|
|
12778
12773
|
activationCode: code
|
|
12779
12774
|
};
|
|
12780
|
-
await
|
|
12775
|
+
await _chunk5KQXRLK3js.AuthService.activate(payload);
|
|
12781
12776
|
setShowConfirmation(true);
|
|
12782
12777
|
setParams(void 0);
|
|
12783
|
-
|
|
12778
|
+
_chunk5KQXRLK3js.showToast.call(void 0, t("auth.account_activated"), {
|
|
12784
12779
|
description: t("auth.account_activated_description")
|
|
12785
12780
|
});
|
|
12786
12781
|
setTimeout(() => {
|
|
@@ -12815,13 +12810,13 @@ _chunk7QVYU63Ejs.__name.call(void 0, ActivateAccount, "ActivateAccount");
|
|
|
12815
12810
|
|
|
12816
12811
|
function Cookies({ dehydratedAuth, page }) {
|
|
12817
12812
|
const { setUser } = useCurrentUserContext();
|
|
12818
|
-
const router =
|
|
12813
|
+
const router = _chunkOR5NPUWFjs.useI18nRouter.call(void 0, );
|
|
12819
12814
|
const [hasSaved, setHasSaved] = _react.useState.call(void 0, false);
|
|
12820
12815
|
_react.useEffect.call(void 0, () => {
|
|
12821
12816
|
if (hasSaved) return;
|
|
12822
12817
|
async function saveTokenOnServer() {
|
|
12823
|
-
await
|
|
12824
|
-
const auth =
|
|
12818
|
+
await _chunk5KQXRLK3js.AuthService.saveToken({ dehydratedAuth });
|
|
12819
|
+
const auth = _chunk5KQXRLK3js.rehydrate.call(void 0, _chunk5KQXRLK3js.Modules.Auth, dehydratedAuth);
|
|
12825
12820
|
setUser(auth.user);
|
|
12826
12821
|
setHasSaved(true);
|
|
12827
12822
|
if (page) {
|
|
@@ -12864,7 +12859,7 @@ function ForgotPassword() {
|
|
|
12864
12859
|
const payload = {
|
|
12865
12860
|
email: values.email
|
|
12866
12861
|
};
|
|
12867
|
-
await
|
|
12862
|
+
await _chunk5KQXRLK3js.AuthService.initialiseForgotPassword(payload);
|
|
12868
12863
|
setShowConfirmation(true);
|
|
12869
12864
|
} catch (e) {
|
|
12870
12865
|
errorToast({ error: e });
|
|
@@ -12874,7 +12869,7 @@ function ForgotPassword() {
|
|
|
12874
12869
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardHeader, { "data-testid": "page-forgot-password-container", children: [
|
|
12875
12870
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardTitle, { className: "text-primary flex flex-col items-center pb-10 text-4xl", children: [
|
|
12876
12871
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/logo.webp", alt: "Logo", width: 100, height: 100, priority: true }),
|
|
12877
|
-
t("auth.forgot_password")
|
|
12872
|
+
t("auth.buttons.forgot_password")
|
|
12878
12873
|
] }),
|
|
12879
12874
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { className: "text-sm", children: showConfirmation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: " " }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: t(`auth.add_email_to_reset`) }) })
|
|
12880
12875
|
] }),
|
|
@@ -12919,7 +12914,7 @@ function Login() {
|
|
|
12919
12914
|
const { setUser } = useCurrentUserContext();
|
|
12920
12915
|
const { setComponentType } = useAuthContext();
|
|
12921
12916
|
const generateUrl = usePageUrlGenerator();
|
|
12922
|
-
const router =
|
|
12917
|
+
const router = _chunkOR5NPUWFjs.useI18nRouter.call(void 0, );
|
|
12923
12918
|
const formSchema = _zod3.z.object({
|
|
12924
12919
|
email: _zod3.z.string().email({
|
|
12925
12920
|
message: t(`common.errors.invalid_email`)
|
|
@@ -12935,7 +12930,7 @@ function Login() {
|
|
|
12935
12930
|
});
|
|
12936
12931
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
12937
12932
|
try {
|
|
12938
|
-
const user = await
|
|
12933
|
+
const user = await _chunk5KQXRLK3js.AuthService.login({
|
|
12939
12934
|
email: values.email,
|
|
12940
12935
|
password: values.password
|
|
12941
12936
|
});
|
|
@@ -12952,12 +12947,12 @@ function Login() {
|
|
|
12952
12947
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardHeader, { "data-testid": "page-login-container", children: [
|
|
12953
12948
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardTitle, { className: "text-primary flex flex-col items-center pb-10 text-4xl", children: [
|
|
12954
12949
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/logo.webp", alt: "Logo", width: 100, height: 100, priority: true }),
|
|
12955
|
-
t("auth.login")
|
|
12950
|
+
t("auth.buttons.login")
|
|
12956
12951
|
] }),
|
|
12957
12952
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { className: "text-sm", children: t(`auth.login_description`) })
|
|
12958
12953
|
] }),
|
|
12959
12954
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), children: [
|
|
12960
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { children:
|
|
12955
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { children: _chunkOR5NPUWFjs.isInternalAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
12961
12956
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12962
12957
|
FormInput,
|
|
12963
12958
|
{
|
|
@@ -12979,10 +12974,10 @@ function Login() {
|
|
|
12979
12974
|
testId: "form-login-input-password"
|
|
12980
12975
|
}
|
|
12981
12976
|
),
|
|
12982
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "mt-4 w-full", type: "submit", "data-testid": "form-login-button-submit", children: t(`auth.login`) })
|
|
12977
|
+
/* @__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`) })
|
|
12983
12978
|
] }) }),
|
|
12984
12979
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardFooter, { className: "flex w-full flex-col gap-y-4 mt-4", children: [
|
|
12985
|
-
|
|
12980
|
+
_chunkOR5NPUWFjs.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: `${_chunkOR5NPUWFjs.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" }) }),
|
|
12986
12981
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row justify-between", children: [
|
|
12987
12982
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12988
12983
|
Link,
|
|
@@ -12990,7 +12985,7 @@ function Login() {
|
|
|
12990
12985
|
href: "#",
|
|
12991
12986
|
className: "flex w-full justify-start",
|
|
12992
12987
|
onClick: () => setComponentType(5 /* Register */),
|
|
12993
|
-
children: t(`auth.register`)
|
|
12988
|
+
children: t(`auth.buttons.register`)
|
|
12994
12989
|
}
|
|
12995
12990
|
),
|
|
12996
12991
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -13000,7 +12995,7 @@ function Login() {
|
|
|
13000
12995
|
className: "flex w-full justify-end",
|
|
13001
12996
|
onClick: () => setComponentType(1 /* ForgotPassword */),
|
|
13002
12997
|
"data-testid": "form-login-link-forgot-password",
|
|
13003
|
-
children: t(`auth.forgot_password`)
|
|
12998
|
+
children: t(`auth.buttons.forgot_password`)
|
|
13004
12999
|
}
|
|
13005
13000
|
)
|
|
13006
13001
|
] })
|
|
@@ -13017,7 +13012,7 @@ function Logout() {
|
|
|
13017
13012
|
const generateUrl = usePageUrlGenerator();
|
|
13018
13013
|
_react.useEffect.call(void 0, () => {
|
|
13019
13014
|
const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
13020
|
-
await
|
|
13015
|
+
await _chunk5KQXRLK3js.AuthService.logout();
|
|
13021
13016
|
window.location.href = generateUrl({ page: `/` });
|
|
13022
13017
|
}, "logOut");
|
|
13023
13018
|
logOut();
|
|
@@ -13032,7 +13027,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, Logout, "Logout");
|
|
|
13032
13027
|
function RefreshUser() {
|
|
13033
13028
|
const { setUser } = useCurrentUserContext();
|
|
13034
13029
|
const loadFullUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
13035
|
-
const fullUser = await
|
|
13030
|
+
const fullUser = await _chunk5KQXRLK3js.UserService.findFullUser();
|
|
13036
13031
|
if (fullUser) {
|
|
13037
13032
|
setUser(fullUser);
|
|
13038
13033
|
const token = {
|
|
@@ -13044,7 +13039,7 @@ function RefreshUser() {
|
|
|
13044
13039
|
return { id: module.id, permissions: module.permissions };
|
|
13045
13040
|
})
|
|
13046
13041
|
};
|
|
13047
|
-
await _optionalChain([
|
|
13042
|
+
await _optionalChain([_chunk5KQXRLK3js.getTokenHandler.call(void 0, ), 'optionalAccess', _322 => _322.updateToken, 'call', _323 => _323(token)]);
|
|
13048
13043
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
13049
13044
|
}
|
|
13050
13045
|
}, "loadFullUser");
|
|
@@ -13064,7 +13059,6 @@ _chunk7QVYU63Ejs.__name.call(void 0, RefreshUser, "RefreshUser");
|
|
|
13064
13059
|
|
|
13065
13060
|
|
|
13066
13061
|
|
|
13067
|
-
|
|
13068
13062
|
function ResetPassword() {
|
|
13069
13063
|
const { setComponentType, params, setParams } = useAuthContext();
|
|
13070
13064
|
const [showConfirmation, setShowConfirmation] = _react.useState.call(void 0, false);
|
|
@@ -13076,7 +13070,7 @@ function ResetPassword() {
|
|
|
13076
13070
|
const payload = {
|
|
13077
13071
|
code
|
|
13078
13072
|
};
|
|
13079
|
-
await
|
|
13073
|
+
await _chunk5KQXRLK3js.AuthService.validateCode(payload);
|
|
13080
13074
|
} catch (e) {
|
|
13081
13075
|
setError(e instanceof Error ? e.message : String(e));
|
|
13082
13076
|
errorToast({ title: t(`common.errors.error`), error: e });
|
|
@@ -13114,9 +13108,9 @@ function ResetPassword() {
|
|
|
13114
13108
|
code: _optionalChain([params, 'optionalAccess', _325 => _325.code]),
|
|
13115
13109
|
password: values.password
|
|
13116
13110
|
};
|
|
13117
|
-
await
|
|
13111
|
+
await _chunk5KQXRLK3js.AuthService.resetPassword(payload);
|
|
13118
13112
|
setShowConfirmation(true);
|
|
13119
|
-
|
|
13113
|
+
_chunk5KQXRLK3js.showToast.call(void 0, t(`auth.reset_success`), {
|
|
13120
13114
|
description: t(`auth.reset_success_description`)
|
|
13121
13115
|
});
|
|
13122
13116
|
setTimeout(() => {
|
|
@@ -13157,12 +13151,12 @@ function ContentsList({ contentList }) {
|
|
|
13157
13151
|
_chunk7QVYU63Ejs.__name.call(void 0, ContentsList, "ContentsList");
|
|
13158
13152
|
function ContentsListElement({ content }) {
|
|
13159
13153
|
const generateUrl = usePageUrlGenerator();
|
|
13160
|
-
const contentModule = content.contentType ?
|
|
13154
|
+
const contentModule = content.contentType ? _chunk5KQXRLK3js.Modules.findByModelName(content.contentType) : void 0;
|
|
13161
13155
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
13162
13156
|
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: [
|
|
13163
13157
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCard, { children: [
|
|
13164
13158
|
/* @__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: [
|
|
13165
|
-
contentModule &&
|
|
13159
|
+
contentModule && _chunk5KQXRLK3js.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
13166
13160
|
content.name
|
|
13167
13161
|
] }) }),
|
|
13168
13162
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCardContent, { className: "flex max-h-96 w-96 flex-col gap-y-4 overflow-y-auto", children: [
|
|
@@ -13181,8 +13175,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListElement, "ContentsListElement")
|
|
|
13181
13175
|
function ContentsListById({ contentIds }) {
|
|
13182
13176
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13183
13177
|
const data = useDataListRetriever({
|
|
13184
|
-
module:
|
|
13185
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
13178
|
+
module: _chunk5KQXRLK3js.Modules.Content,
|
|
13179
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk5KQXRLK3js.ContentService.findMany(params), "retriever"),
|
|
13186
13180
|
retrieverParams: { contentIds }
|
|
13187
13181
|
});
|
|
13188
13182
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -13190,7 +13184,7 @@ function ContentsListById({ contentIds }) {
|
|
|
13190
13184
|
{
|
|
13191
13185
|
data,
|
|
13192
13186
|
fields: ["name" /* name */, "authors" /* authors */, "updatedAt" /* updatedAt */],
|
|
13193
|
-
tableGeneratorType:
|
|
13187
|
+
tableGeneratorType: _chunk5KQXRLK3js.Modules.Content,
|
|
13194
13188
|
title: t(`common.relevant`)
|
|
13195
13189
|
}
|
|
13196
13190
|
);
|
|
@@ -13203,8 +13197,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListById, "ContentsListById");
|
|
|
13203
13197
|
function RelevantContentsList({ id }) {
|
|
13204
13198
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13205
13199
|
const data = useDataListRetriever({
|
|
13206
|
-
module:
|
|
13207
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
13200
|
+
module: _chunk5KQXRLK3js.Modules.Content,
|
|
13201
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk5KQXRLK3js.ContentService.findRelevant(params), "retriever"),
|
|
13208
13202
|
retrieverParams: { id }
|
|
13209
13203
|
});
|
|
13210
13204
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -13212,7 +13206,7 @@ function RelevantContentsList({ id }) {
|
|
|
13212
13206
|
{
|
|
13213
13207
|
data,
|
|
13214
13208
|
fields: ["name" /* name */, "authors" /* authors */, "relevance" /* relevance */, "updatedAt" /* updatedAt */],
|
|
13215
|
-
tableGeneratorType:
|
|
13209
|
+
tableGeneratorType: _chunk5KQXRLK3js.Modules.Content,
|
|
13216
13210
|
title: t(`common.relevant`)
|
|
13217
13211
|
}
|
|
13218
13212
|
);
|
|
@@ -13265,12 +13259,12 @@ function NotificationsList({ archived }) {
|
|
|
13265
13259
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13266
13260
|
const generateUrl = usePageUrlGenerator();
|
|
13267
13261
|
const data = useDataListRetriever({
|
|
13268
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
13262
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk5KQXRLK3js.NotificationService.findMany(params), "retriever"),
|
|
13269
13263
|
retrieverParams: { isArchived: archived },
|
|
13270
|
-
module:
|
|
13264
|
+
module: _chunk5KQXRLK3js.Modules.Notification
|
|
13271
13265
|
});
|
|
13272
13266
|
const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
|
|
13273
|
-
await
|
|
13267
|
+
await _chunk5KQXRLK3js.NotificationService.archive({ id: notification.id });
|
|
13274
13268
|
data.removeElement(notification);
|
|
13275
13269
|
}, "archiveNotification");
|
|
13276
13270
|
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: [
|
|
@@ -13284,7 +13278,7 @@ function NotificationsList({ archived }) {
|
|
|
13284
13278
|
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) => {
|
|
13285
13279
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
13286
13280
|
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: [
|
|
13287
|
-
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:
|
|
13281
|
+
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: _chunk5KQXRLK3js.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" }),
|
|
13288
13282
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
13289
13283
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
13290
13284
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
@@ -13354,7 +13348,6 @@ _chunk7QVYU63Ejs.__name.call(void 0, NotificationsListContainer, "NotificationsL
|
|
|
13354
13348
|
|
|
13355
13349
|
|
|
13356
13350
|
|
|
13357
|
-
|
|
13358
13351
|
function NotificationModalContent({ isOpen, setIsOpen }) {
|
|
13359
13352
|
const instanceId = _react.useRef.call(void 0, Math.random().toString(36).substr(2, 9));
|
|
13360
13353
|
const {
|
|
@@ -13428,7 +13421,7 @@ function NotificationModalContent({ isOpen, setIsOpen }) {
|
|
|
13428
13421
|
batch.forEach((notification) => {
|
|
13429
13422
|
addNotification(notification);
|
|
13430
13423
|
const toastNotification = generateToastNotification(notification, t, generateUrl);
|
|
13431
|
-
|
|
13424
|
+
_chunk5KQXRLK3js.showToast.call(void 0, toastNotification.title, {
|
|
13432
13425
|
description: toastNotification.description,
|
|
13433
13426
|
action: toastNotification.action
|
|
13434
13427
|
});
|
|
@@ -13589,13 +13582,13 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
13589
13582
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13590
13583
|
_react.useEffect.call(void 0, () => {
|
|
13591
13584
|
async function checkCompanyAdminDeletability() {
|
|
13592
|
-
const roleUsers = await
|
|
13585
|
+
const roleUsers = await _chunk5KQXRLK3js.UserService.findAllUsersByRole({
|
|
13593
13586
|
roleId: role.id
|
|
13594
13587
|
});
|
|
13595
13588
|
if (roleUsers.length > 1) setCanRemove(true);
|
|
13596
13589
|
}
|
|
13597
13590
|
_chunk7QVYU63Ejs.__name.call(void 0, checkCompanyAdminDeletability, "checkCompanyAdminDeletability");
|
|
13598
|
-
if (role.id !==
|
|
13591
|
+
if (role.id !== _chunkOR5NPUWFjs.getRoleId.call(void 0, ).CompanyAdministrator) {
|
|
13599
13592
|
setCanRemove(true);
|
|
13600
13593
|
return;
|
|
13601
13594
|
}
|
|
@@ -13603,7 +13596,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
13603
13596
|
}, [role]);
|
|
13604
13597
|
const remove = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
13605
13598
|
try {
|
|
13606
|
-
await
|
|
13599
|
+
await _chunk5KQXRLK3js.RoleService.removeUserFromRole({
|
|
13607
13600
|
roleId: role.id,
|
|
13608
13601
|
userId: user.id
|
|
13609
13602
|
});
|
|
@@ -13659,7 +13652,6 @@ _chunk7QVYU63Ejs.__name.call(void 0, RemoveUserFromRole, "RemoveUserFromRole");
|
|
|
13659
13652
|
|
|
13660
13653
|
|
|
13661
13654
|
|
|
13662
|
-
|
|
13663
13655
|
function UserRoleAdd({ user, refresh }) {
|
|
13664
13656
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
13665
13657
|
const inputRef = _react.useRef.call(void 0, null);
|
|
@@ -13667,12 +13659,12 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
13667
13659
|
const [roles, setRoles] = _react.useState.call(void 0, []);
|
|
13668
13660
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13669
13661
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (role) => {
|
|
13670
|
-
await
|
|
13662
|
+
await _chunk5KQXRLK3js.RoleService.addUserToRole({
|
|
13671
13663
|
roleId: role.id,
|
|
13672
13664
|
userId: user.id
|
|
13673
13665
|
});
|
|
13674
13666
|
setRoles(roles.filter((u) => u.id !== role.id));
|
|
13675
|
-
|
|
13667
|
+
_chunk5KQXRLK3js.showToast.call(void 0,
|
|
13676
13668
|
t(`common.association.label`, {
|
|
13677
13669
|
source: t(`entities.roles`, { count: 1 }),
|
|
13678
13670
|
destination: t(`entities.users`, { count: 1 })
|
|
@@ -13691,7 +13683,7 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
13691
13683
|
const searchRoles = _react.useCallback.call(void 0,
|
|
13692
13684
|
async (term) => {
|
|
13693
13685
|
setRoles(
|
|
13694
|
-
await
|
|
13686
|
+
await _chunk5KQXRLK3js.RoleService.findAllRolesUserNotIn({
|
|
13695
13687
|
search: term,
|
|
13696
13688
|
userId: user.id
|
|
13697
13689
|
})
|
|
@@ -13759,16 +13751,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserRoleAdd, "UserRoleAdd");
|
|
|
13759
13751
|
function RolesList() {
|
|
13760
13752
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13761
13753
|
const data = useDataListRetriever({
|
|
13762
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
13754
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk5KQXRLK3js.RoleService.findAllRoles(params), "retriever"),
|
|
13763
13755
|
retrieverParams: {},
|
|
13764
|
-
module:
|
|
13756
|
+
module: _chunk5KQXRLK3js.Modules.Role
|
|
13765
13757
|
});
|
|
13766
13758
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13767
13759
|
ContentListTable,
|
|
13768
13760
|
{
|
|
13769
13761
|
data,
|
|
13770
13762
|
fields: ["name" /* name */, "description" /* description */],
|
|
13771
|
-
tableGeneratorType:
|
|
13763
|
+
tableGeneratorType: _chunk5KQXRLK3js.Modules.Role,
|
|
13772
13764
|
title: t(`entities.roles`, { count: 2 })
|
|
13773
13765
|
}
|
|
13774
13766
|
);
|
|
@@ -13781,16 +13773,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RolesList, "RolesList");
|
|
|
13781
13773
|
function UserRolesList({ user }) {
|
|
13782
13774
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13783
13775
|
const data = useDataListRetriever({
|
|
13784
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
13776
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk5KQXRLK3js.RoleService.findAllRolesByUser(params), "retriever"),
|
|
13785
13777
|
retrieverParams: { userId: user.id },
|
|
13786
|
-
module:
|
|
13778
|
+
module: _chunk5KQXRLK3js.Modules.Role
|
|
13787
13779
|
});
|
|
13788
13780
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13789
13781
|
ContentListTable,
|
|
13790
13782
|
{
|
|
13791
13783
|
data,
|
|
13792
13784
|
fields: ["name" /* name */, "description" /* description */],
|
|
13793
|
-
tableGeneratorType:
|
|
13785
|
+
tableGeneratorType: _chunk5KQXRLK3js.Modules.Role,
|
|
13794
13786
|
title: t(`entities.roles`, { count: 2 })
|
|
13795
13787
|
}
|
|
13796
13788
|
);
|
|
@@ -13908,7 +13900,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthRedirectUriInput, "OAuthRedirectUriInp
|
|
|
13908
13900
|
function OAuthScopeSelector({
|
|
13909
13901
|
value,
|
|
13910
13902
|
onChange,
|
|
13911
|
-
availableScopes =
|
|
13903
|
+
availableScopes = _chunk5KQXRLK3js.AVAILABLE_OAUTH_SCOPES,
|
|
13912
13904
|
disabled = false,
|
|
13913
13905
|
error,
|
|
13914
13906
|
label = "Allowed Scopes"
|
|
@@ -14235,7 +14227,7 @@ function OAuthClientForm({
|
|
|
14235
14227
|
description: formState.description.trim() || void 0,
|
|
14236
14228
|
redirectUris: formState.redirectUris.filter((uri) => uri.trim()),
|
|
14237
14229
|
allowedScopes: formState.allowedScopes,
|
|
14238
|
-
allowedGrantTypes:
|
|
14230
|
+
allowedGrantTypes: _chunk5KQXRLK3js.DEFAULT_GRANT_TYPES,
|
|
14239
14231
|
isConfidential: formState.isConfidential
|
|
14240
14232
|
};
|
|
14241
14233
|
await onSubmit(data);
|
|
@@ -14436,7 +14428,7 @@ function OAuthClientDetail({
|
|
|
14436
14428
|
] }),
|
|
14437
14429
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
14438
14430
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
14439
|
-
/* @__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([
|
|
14431
|
+
/* @__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([_chunk5KQXRLK3js.OAUTH_SCOPE_DISPLAY, 'access', _338 => _338[scope], 'optionalAccess', _339 => _339.name]) || scope }, scope)) })
|
|
14440
14432
|
] }),
|
|
14441
14433
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
14442
14434
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -15101,4 +15093,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthConsentScreen, "OAuthConsentScreen");
|
|
|
15101
15093
|
|
|
15102
15094
|
|
|
15103
15095
|
exports.JsonApiProvider = JsonApiProvider; exports.useJsonApiGet = useJsonApiGet; exports.useJsonApiMutation = useJsonApiMutation; exports.useRehydration = useRehydration; exports.useRehydrationList = useRehydrationList; exports.TableGeneratorRegistry = TableGeneratorRegistry; exports.tableGeneratorRegistry = tableGeneratorRegistry; exports.usePageUrlGenerator = usePageUrlGenerator; exports.useUrlRewriter = useUrlRewriter; exports.useDataListRetriever = useDataListRetriever; exports.useDebounce = useDebounce; exports.registerTableGenerator = registerTableGenerator; exports.useTableGenerator = useTableGenerator; exports.useCustomD3Graph = useCustomD3Graph; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.HeaderChildrenProvider = HeaderChildrenProvider; exports.useHeaderChildren = useHeaderChildren; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AlertAction = AlertAction; exports.buttonVariants = buttonVariants; exports.Button = Button; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogMedia = AlertDialogMedia; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.Avatar = Avatar; exports.AvatarImage = AvatarImage; exports.AvatarFallback = AvatarFallback; exports.AvatarBadge = AvatarBadge; exports.AvatarGroup = AvatarGroup; exports.AvatarGroupCount = AvatarGroupCount; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.Calendar = Calendar; exports.CalendarDayButton = CalendarDayButton; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardAction = CardAction; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.useCarousel = useCarousel; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger; exports.CollapsibleContent = CollapsibleContent; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.Input = Input; exports.Textarea = Textarea; exports.InputGroup = InputGroup; exports.InputGroupAddon = InputGroupAddon; exports.InputGroupButton = InputGroupButton; exports.InputGroupText = InputGroupText; exports.InputGroupInput = InputGroupInput; exports.InputGroupTextarea = InputGroupTextarea; exports.Command = Command; exports.CommandDialog = CommandDialog; exports.CommandInput = CommandInput; exports.CommandList = CommandList; exports.CommandEmpty = CommandEmpty; exports.CommandGroup = CommandGroup; exports.CommandSeparator = CommandSeparator; exports.CommandItem = CommandItem; exports.CommandShortcut = CommandShortcut; exports.ContextMenu = ContextMenu; exports.ContextMenuPortal = ContextMenuPortal; exports.ContextMenuTrigger = ContextMenuTrigger; exports.ContextMenuContent = ContextMenuContent; exports.ContextMenuGroup = ContextMenuGroup; exports.ContextMenuLabel = ContextMenuLabel; exports.ContextMenuItem = ContextMenuItem; exports.ContextMenuSub = ContextMenuSub; exports.ContextMenuSubTrigger = ContextMenuSubTrigger; exports.ContextMenuSubContent = ContextMenuSubContent; exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem; exports.ContextMenuRadioGroup = ContextMenuRadioGroup; exports.ContextMenuRadioItem = ContextMenuRadioItem; exports.ContextMenuSeparator = ContextMenuSeparator; exports.ContextMenuShortcut = ContextMenuShortcut; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerPortal = DrawerPortal; exports.DrawerClose = DrawerClose; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerFooter = DrawerFooter; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DropdownMenu = DropdownMenu; exports.DropdownMenuPortal = DropdownMenuPortal; exports.DropdownMenuTrigger = DropdownMenuTrigger; exports.DropdownMenuContent = DropdownMenuContent; exports.DropdownMenuGroup = DropdownMenuGroup; exports.DropdownMenuLabel = DropdownMenuLabel; exports.DropdownMenuItem = DropdownMenuItem; exports.DropdownMenuSub = DropdownMenuSub; exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger; exports.DropdownMenuSubContent = DropdownMenuSubContent; exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem; exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup; exports.DropdownMenuRadioItem = DropdownMenuRadioItem; exports.DropdownMenuSeparator = DropdownMenuSeparator; exports.DropdownMenuShortcut = DropdownMenuShortcut; exports.Label = Label; exports.Separator = Separator; exports.FieldSet = FieldSet; exports.FieldLegend = FieldLegend; exports.FieldGroup = FieldGroup; exports.Field = Field; exports.FieldContent = FieldContent; exports.FieldLabel = FieldLabel; exports.FieldTitle = FieldTitle; exports.FieldDescription = FieldDescription; exports.FieldSeparator = FieldSeparator; exports.FieldError = FieldError; exports.Form = Form; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.InputOTP = InputOTP; exports.InputOTPGroup = InputOTPGroup; exports.InputOTPSlot = InputOTPSlot; exports.InputOTPSeparator = InputOTPSeparator; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuPositioner = NavigationMenuPositioner; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.Popover = Popover; exports.PopoverTrigger = PopoverTrigger; exports.PopoverContent = PopoverContent; exports.PopoverHeader = PopoverHeader; exports.PopoverTitle = PopoverTitle; exports.PopoverDescription = PopoverDescription; exports.Progress = Progress; exports.ProgressTrack = ProgressTrack; exports.ProgressIndicator = ProgressIndicator; exports.ProgressLabel = ProgressLabel; exports.ProgressValue = ProgressValue; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.ResizablePanelGroup = ResizablePanelGroup; exports.ResizablePanel = ResizablePanel; exports.ResizableHandle = ResizableHandle; exports.ScrollArea = ScrollArea; exports.ScrollBar = ScrollBar; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Skeleton = Skeleton; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip2; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.useSidebar = useSidebar; exports.SidebarProvider = SidebarProvider; exports.Sidebar = Sidebar; exports.SidebarTrigger = SidebarTrigger; exports.SidebarRail = SidebarRail; exports.SidebarInset = SidebarInset; exports.SidebarInput = SidebarInput; exports.SidebarHeader = SidebarHeader; exports.SidebarFooter = SidebarFooter; exports.SidebarSeparator = SidebarSeparator; exports.SidebarContent = SidebarContent; exports.SidebarGroup = SidebarGroup; exports.SidebarGroupLabel = SidebarGroupLabel; exports.SidebarGroupAction = SidebarGroupAction; exports.SidebarGroupContent = SidebarGroupContent; exports.SidebarMenu = SidebarMenu; exports.SidebarMenuItem = SidebarMenuItem; exports.SidebarMenuButton = SidebarMenuButton; exports.SidebarMenuAction = SidebarMenuAction; exports.SidebarMenuBadge = SidebarMenuBadge; exports.SidebarMenuSkeleton = SidebarMenuSkeleton; exports.SidebarMenuSub = SidebarMenuSub; exports.SidebarMenuSubItem = SidebarMenuSubItem; exports.SidebarMenuSubButton = SidebarMenuSubButton; exports.Slider = Slider; exports.Toaster = Toaster; exports.Switch = Switch; exports.Table = Table; exports.TableHeader = TableHeader; exports.TableBody = TableBody; exports.TableFooter = TableFooter; exports.TableRow = TableRow; exports.TableHead = TableHead; exports.TableCell = TableCell; exports.TableCaption = TableCaption; exports.Tabs = Tabs; exports.tabsListVariants = tabsListVariants; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.KanbanRoot = KanbanRoot; exports.KanbanBoard = KanbanBoard; exports.KanbanColumn = KanbanColumn; exports.KanbanColumnHandle = KanbanColumnHandle; exports.KanbanItem = KanbanItem; exports.KanbanItemHandle = KanbanItemHandle; exports.KanbanOverlay = KanbanOverlay; exports.Link = Link; exports.MultiSelect = MultiSelect; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.CompanyDetails = CompanyDetails; exports.TokenStatusIndicator = TokenStatusIndicator; exports.Header = Header; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.UserDetails = UserDetails; exports.UserAvatar = UserAvatar; exports.UserIndexDetails = UserIndexDetails; exports.UserContainer = UserContainer; exports.UserIndexContainer = UserIndexContainer; exports.UsersListContainer = UsersListContainer; exports.AdminUsersList = AdminUsersList; exports.CompanyUsersList = CompanyUsersList; exports.ContributorsList = ContributorsList; exports.RelevantUsersList = RelevantUsersList; exports.RoleUsersList = RoleUsersList; exports.UserListInAdd = UserListInAdd; exports.UsersList = UsersList; exports.UsersListByContentIds = UsersListByContentIds; exports.AllowedUsersDetails = AllowedUsersDetails; exports.ErrorDetails = ErrorDetails; exports.errorToast = errorToast; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorTrigger = CommonEditorTrigger; exports.DatePickerPopover = DatePickerPopover; exports.DateRangeSelector = DateRangeSelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.FormFieldWrapper = FormFieldWrapper; exports.FormCheckbox = FormCheckbox; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.PasswordInput = PasswordInput; exports.FormPassword = FormPassword; exports.FormPlaceAutocomplete = FormPlaceAutocomplete; exports.FormSelect = FormSelect; exports.FormSlider = FormSlider; exports.FormSwitch = FormSwitch; exports.FormTextarea = FormTextarea; exports.FormFeatures = FormFeatures; exports.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; exports.AuthContainer = AuthContainer; exports.LandingComponent = LandingComponent; exports.AcceptInvitation = AcceptInvitation; exports.ActivateAccount = ActivateAccount; exports.Cookies = Cookies; exports.ForgotPassword = ForgotPassword; exports.Login = Login; exports.Logout = Logout; exports.RefreshUser = RefreshUser; exports.ResetPassword = ResetPassword; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationSecurityForm = CompanyConfigurationSecurityForm; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.RoleProvider = RoleProvider; exports.useRoleContext = useRoleContext; exports.RoleDetails = RoleDetails; exports.RoleContainer = RoleContainer; exports.FormRoles = FormRoles; exports.RemoveUserFromRole = RemoveUserFromRole; exports.UserRoleAdd = UserRoleAdd; exports.useRoleTableStructure = useRoleTableStructure; exports.RolesList = RolesList; exports.UserRolesList = UserRolesList; exports.OAuthRedirectUriInput = OAuthRedirectUriInput; exports.OAuthScopeSelector = OAuthScopeSelector; exports.OAuthClientSecretDisplay = OAuthClientSecretDisplay; exports.OAuthClientCard = OAuthClientCard; exports.OAuthClientList = OAuthClientList; exports.OAuthClientForm = OAuthClientForm; exports.OAuthClientDetail = OAuthClientDetail; exports.OAuthConsentHeader = OAuthConsentHeader; exports.OAuthScopeList = OAuthScopeList; exports.OAuthConsentActions = OAuthConsentActions; exports.useOAuthConsent = useOAuthConsent; exports.OAuthConsentScreen = OAuthConsentScreen; exports.AddUserToRole = AddUserToRole; exports.UserAvatarEditor = UserAvatarEditor; exports.UserDeleter = UserDeleter; exports.UserEditor = UserEditor; exports.UserMultiSelect = UserMultiSelect; exports.UserReactivator = UserReactivator; exports.UserResentInvitationEmail = UserResentInvitationEmail; exports.UserSelector = UserSelector; exports.UserProvider = UserProvider; exports.useUserContext = useUserContext; exports.CompanyProvider = CompanyProvider; exports.useCompanyContext = useCompanyContext; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
|
|
15104
|
-
//# sourceMappingURL=chunk-
|
|
15096
|
+
//# sourceMappingURL=chunk-BHKXZF2I.js.map
|