@carlonicora/nextjs-jsonapi 1.46.0 → 1.47.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-WBCUJKNR.mjs → BlockNoteEditor-J7R24CYB.mjs} +5 -5
- package/dist/{BlockNoteEditor-XFHT44IV.js → BlockNoteEditor-XMBFXTHB.js} +15 -15
- package/dist/{BlockNoteEditor-XFHT44IV.js.map → BlockNoteEditor-XMBFXTHB.js.map} +1 -1
- package/dist/JsonApiRequest-CRRH5B5V.js +24 -0
- package/dist/{JsonApiRequest-MUPAO7DI.js.map → JsonApiRequest-CRRH5B5V.js.map} +1 -1
- package/dist/{JsonApiRequest-XCQHVVYD.mjs → JsonApiRequest-I2S75QTJ.mjs} +2 -2
- package/dist/billing/index.js +347 -347
- package/dist/billing/index.mjs +4 -4
- package/dist/{chunk-WLS4D6VG.js → chunk-4MN547K7.js} +8 -1
- package/dist/chunk-4MN547K7.js.map +1 -0
- package/dist/{chunk-GCQUTWZ2.mjs → chunk-BTKJFMFL.mjs} +8 -1
- package/dist/chunk-BTKJFMFL.mjs.map +1 -0
- package/dist/{chunk-4HMQNMP6.mjs → chunk-BUCV5VFT.mjs} +2 -2
- package/dist/{chunk-OMYDD2UE.js → chunk-HY357JCN.js} +565 -565
- package/dist/chunk-HY357JCN.js.map +1 -0
- package/dist/{chunk-LM4SDN4Y.mjs → chunk-IPVXH3VC.mjs} +43 -5
- package/dist/chunk-IPVXH3VC.mjs.map +1 -0
- package/dist/{chunk-YM7XSACC.mjs → chunk-LYQMDZO7.mjs} +6 -6
- package/dist/chunk-LYQMDZO7.mjs.map +1 -0
- package/dist/{chunk-5PUPWZB4.js → chunk-ULHMVHDS.js} +137 -99
- package/dist/chunk-ULHMVHDS.js.map +1 -0
- package/dist/{chunk-GP3MDKGE.js → chunk-V63TFESU.js} +3 -3
- package/dist/{chunk-GP3MDKGE.js.map → chunk-V63TFESU.js.map} +1 -1
- package/dist/client/index.js +5 -5
- package/dist/client/index.mjs +4 -4
- package/dist/components/index.js +5 -5
- package/dist/components/index.mjs +4 -4
- package/dist/contexts/index.js +5 -5
- package/dist/contexts/index.mjs +4 -4
- package/dist/core/index.d.mts +12 -0
- package/dist/core/index.d.ts +12 -0
- package/dist/core/index.js +3 -3
- package/dist/core/index.mjs +2 -2
- package/dist/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/dist/server/index.js +12 -12
- package/dist/server/index.mjs +2 -2
- package/package.json +1 -1
- package/src/components/tables/cells/cell.date.tsx +1 -3
- package/src/core/abstracts/AbstractApiData.ts +56 -0
- package/src/core/abstracts/__tests__/readIncludedPolymorphic.spec.ts +195 -0
- package/src/core/registry/DataClassRegistry.ts +8 -0
- package/src/core/registry/__tests__/DataClassRegistry.getByJsonApiType.spec.ts +138 -0
- package/dist/JsonApiRequest-MUPAO7DI.js +0 -24
- package/dist/chunk-5PUPWZB4.js.map +0 -1
- package/dist/chunk-GCQUTWZ2.mjs.map +0 -1
- package/dist/chunk-LM4SDN4Y.mjs.map +0 -1
- package/dist/chunk-OMYDD2UE.js.map +0 -1
- package/dist/chunk-WLS4D6VG.js.map +0 -1
- package/dist/chunk-YM7XSACC.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-WBCUJKNR.mjs.map → BlockNoteEditor-J7R24CYB.mjs.map} +0 -0
- /package/dist/{JsonApiRequest-XCQHVVYD.mjs.map → JsonApiRequest-I2S75QTJ.mjs.map} +0 -0
- /package/dist/{chunk-4HMQNMP6.mjs.map → chunk-BUCV5VFT.mjs.map} +0 -0
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkV63TFESUjs = require('./chunk-V63TFESU.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -48,7 +48,7 @@ var _chunkGP3MDKGEjs = require('./chunk-GP3MDKGE.js');
|
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
var
|
|
51
|
+
var _chunkULHMVHDSjs = require('./chunk-ULHMVHDS.js');
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
var _chunk3EPNHTMHjs = require('./chunk-3EPNHTMH.js');
|
|
@@ -195,7 +195,7 @@ function useDataListRetriever(params) {
|
|
|
195
195
|
const isFetchingRef = _react.useRef.call(void 0, false);
|
|
196
196
|
const isPaginatingRef = _react.useRef.call(void 0, false);
|
|
197
197
|
const resolvedType = params.module;
|
|
198
|
-
const resolvedService =
|
|
198
|
+
const resolvedService = _chunkULHMVHDSjs.ClientAbstractService;
|
|
199
199
|
const parsePageParams = _react.useCallback.call(void 0, (url) => {
|
|
200
200
|
if (!url) return null;
|
|
201
201
|
try {
|
|
@@ -314,7 +314,7 @@ function useDataListRetriever(params) {
|
|
|
314
314
|
setIsLoaded(true);
|
|
315
315
|
setNextPage(nextRef.next ? nextRef.next : void 0);
|
|
316
316
|
setPreviousPage(previousRef.previous ? previousRef.previous : void 0);
|
|
317
|
-
const apiTotal = _nullishCoalesce(totalRef.total, () => (
|
|
317
|
+
const apiTotal = _nullishCoalesce(totalRef.total, () => ( _chunkULHMVHDSjs.getLastApiTotal.call(void 0, )));
|
|
318
318
|
if (apiTotal !== void 0) {
|
|
319
319
|
setTotal(apiTotal);
|
|
320
320
|
}
|
|
@@ -959,20 +959,20 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
959
959
|
if (!token && dehydratedUser) setDehydratedUser(null);
|
|
960
960
|
}, [dehydratedUser, setDehydratedUser]);
|
|
961
961
|
const matchUrlToModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (_params) => {
|
|
962
|
-
const moduleKeys = Object.getOwnPropertyNames(
|
|
962
|
+
const moduleKeys = Object.getOwnPropertyNames(_chunkULHMVHDSjs.Modules).filter(
|
|
963
963
|
(key) => key !== "prototype" && key !== "_factory" && key !== "length" && key !== "name"
|
|
964
964
|
);
|
|
965
965
|
const matchedModuleKey = moduleKeys.find((key) => {
|
|
966
|
-
const descriptor2 = Object.getOwnPropertyDescriptor(
|
|
966
|
+
const descriptor2 = Object.getOwnPropertyDescriptor(_chunkULHMVHDSjs.Modules, key);
|
|
967
967
|
if (!_optionalChain([descriptor2, 'optionalAccess', _29 => _29.get])) return false;
|
|
968
|
-
const selectedModule = descriptor2.get.call(
|
|
968
|
+
const selectedModule = descriptor2.get.call(_chunkULHMVHDSjs.Modules);
|
|
969
969
|
return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _30 => _30.pageUrl, 'optionalAccess', _31 => _31.toLowerCase, 'call', _32 => _32()]));
|
|
970
970
|
});
|
|
971
971
|
if (!matchedModuleKey) return void 0;
|
|
972
|
-
const descriptor = Object.getOwnPropertyDescriptor(
|
|
973
|
-
return _optionalChain([descriptor, 'optionalAccess', _33 => _33.get, 'optionalAccess', _34 => _34.call, 'call', _35 => _35(
|
|
972
|
+
const descriptor = Object.getOwnPropertyDescriptor(_chunkULHMVHDSjs.Modules, matchedModuleKey);
|
|
973
|
+
return _optionalChain([descriptor, 'optionalAccess', _33 => _33.get, 'optionalAccess', _34 => _34.call, 'call', _35 => _35(_chunkULHMVHDSjs.Modules)]);
|
|
974
974
|
}, "matchUrlToModule");
|
|
975
|
-
const currentUser = dehydratedUser ?
|
|
975
|
+
const currentUser = dehydratedUser ? _chunkULHMVHDSjs.rehydrate.call(void 0, _chunkULHMVHDSjs.Modules.User, dehydratedUser) : null;
|
|
976
976
|
const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _36 => _36.company]), () => ( null));
|
|
977
977
|
const setUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (user) => {
|
|
978
978
|
if (user) setDehydratedUser(user.dehydrate());
|
|
@@ -983,21 +983,21 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
983
983
|
return !!_optionalChain([currentUser, 'access', _37 => _37.roles, 'optionalAccess', _38 => _38.some, 'call', _39 => _39((userRole) => userRole.id === roleId)]);
|
|
984
984
|
}, "hasRole");
|
|
985
985
|
const hasAccesToFeature = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (featureIdentifier) => {
|
|
986
|
-
if (hasRole(
|
|
986
|
+
if (hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator)) return true;
|
|
987
987
|
if (!company) return false;
|
|
988
988
|
return company.features.some((feature) => feature.id === featureIdentifier);
|
|
989
989
|
}, "hasAccesToFeature");
|
|
990
990
|
function hasPermissionToModule(params) {
|
|
991
991
|
if (!currentUser) return false;
|
|
992
992
|
if (!!params.module.feature && !hasAccesToFeature(params.module.feature)) return false;
|
|
993
|
-
return
|
|
993
|
+
return _chunkULHMVHDSjs.checkPermissions.call(void 0, { module: params.module, action: params.action, data: params.data, user: currentUser });
|
|
994
994
|
}
|
|
995
995
|
_chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModule, "hasPermissionToModule");
|
|
996
996
|
function hasPermissionToModules(params) {
|
|
997
997
|
if (!currentUser) return false;
|
|
998
998
|
if (!params.modules.every((module) => !module.feature || hasAccesToFeature(module.feature))) return false;
|
|
999
999
|
return params.modules.every(
|
|
1000
|
-
(module) =>
|
|
1000
|
+
(module) => _chunkULHMVHDSjs.checkPermissions.call(void 0, { module, action: params.action, data: params.data, user: currentUser })
|
|
1001
1001
|
);
|
|
1002
1002
|
}
|
|
1003
1003
|
_chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModules, "hasPermissionToModules");
|
|
@@ -1018,13 +1018,13 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
1018
1018
|
}
|
|
1019
1019
|
setIsRefreshing(true);
|
|
1020
1020
|
try {
|
|
1021
|
-
const fullUser = await
|
|
1021
|
+
const fullUser = await _chunkULHMVHDSjs.UserService.findFullUser();
|
|
1022
1022
|
if (fullUser) {
|
|
1023
1023
|
const dehydrated = fullUser.dehydrate();
|
|
1024
1024
|
setDehydratedUser(dehydrated);
|
|
1025
1025
|
setUser(fullUser);
|
|
1026
1026
|
if (!_optionalChain([options, 'optionalAccess', _40 => _40.skipCookieUpdate])) {
|
|
1027
|
-
await _optionalChain([
|
|
1027
|
+
await _optionalChain([_chunkULHMVHDSjs.getTokenHandler.call(void 0, ), 'optionalAccess', _41 => _41.updateToken, 'call', _42 => _42({
|
|
1028
1028
|
userId: fullUser.id,
|
|
1029
1029
|
companyId: _optionalChain([fullUser, 'access', _43 => _43.company, 'optionalAccess', _44 => _44.id]),
|
|
1030
1030
|
roles: fullUser.roles.map((role) => role.id),
|
|
@@ -1112,7 +1112,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
1112
1112
|
const [existingUsers, setExistingUsers] = _react.useState.call(void 0, null);
|
|
1113
1113
|
_react.useEffect.call(void 0, () => {
|
|
1114
1114
|
const fetchExistingUsers = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
1115
|
-
setExistingUsers(await
|
|
1115
|
+
setExistingUsers(await _chunkULHMVHDSjs.UserService.findMany({ roleId: role.id, fetchAll: true }));
|
|
1116
1116
|
}, "fetchExistingUsers");
|
|
1117
1117
|
if (show) {
|
|
1118
1118
|
setExistingUsers(null);
|
|
@@ -1120,7 +1120,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
1120
1120
|
}
|
|
1121
1121
|
}, [show]);
|
|
1122
1122
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (user) => {
|
|
1123
|
-
await
|
|
1123
|
+
await _chunkULHMVHDSjs.RoleService.addUserToRole({
|
|
1124
1124
|
roleId: role.id,
|
|
1125
1125
|
userId: user.id
|
|
1126
1126
|
});
|
|
@@ -1136,9 +1136,9 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
1136
1136
|
}, "addUserToRole");
|
|
1137
1137
|
const data = useDataListRetriever({
|
|
1138
1138
|
ready: !!company && show,
|
|
1139
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
1139
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkULHMVHDSjs.UserService.findAllUsers(params), "retriever"),
|
|
1140
1140
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _55 => _55.id]) },
|
|
1141
|
-
module:
|
|
1141
|
+
module: _chunkULHMVHDSjs.Modules.User
|
|
1142
1142
|
});
|
|
1143
1143
|
_react.useEffect.call(void 0, () => {
|
|
1144
1144
|
if (!!company && show) {
|
|
@@ -1189,7 +1189,7 @@ function Accordion({ className, ...props }) {
|
|
|
1189
1189
|
_accordion.Accordion.Root,
|
|
1190
1190
|
{
|
|
1191
1191
|
"data-slot": "accordion",
|
|
1192
|
-
className:
|
|
1192
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "overflow-hidden rounded-md border flex w-full flex-col", className),
|
|
1193
1193
|
...props
|
|
1194
1194
|
}
|
|
1195
1195
|
);
|
|
@@ -1200,7 +1200,7 @@ function AccordionItem({ className, ...props }) {
|
|
|
1200
1200
|
_accordion.Accordion.Item,
|
|
1201
1201
|
{
|
|
1202
1202
|
"data-slot": "accordion-item",
|
|
1203
|
-
className:
|
|
1203
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "data-open:bg-muted/50 not-last:border-b", className),
|
|
1204
1204
|
...props
|
|
1205
1205
|
}
|
|
1206
1206
|
);
|
|
@@ -1211,7 +1211,7 @@ function AccordionTrigger({ className, children, ...props }) {
|
|
|
1211
1211
|
_accordion.Accordion.Trigger,
|
|
1212
1212
|
{
|
|
1213
1213
|
"data-slot": "accordion-trigger",
|
|
1214
|
-
className:
|
|
1214
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1215
1215
|
"**: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",
|
|
1216
1216
|
className
|
|
1217
1217
|
),
|
|
@@ -1247,7 +1247,7 @@ function AccordionContent({ className, children, ...props }) {
|
|
|
1247
1247
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1248
1248
|
"div",
|
|
1249
1249
|
{
|
|
1250
|
-
className:
|
|
1250
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1251
1251
|
"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",
|
|
1252
1252
|
className
|
|
1253
1253
|
),
|
|
@@ -1277,7 +1277,7 @@ var alertVariants = _classvarianceauthority.cva.call(void 0,
|
|
|
1277
1277
|
}
|
|
1278
1278
|
);
|
|
1279
1279
|
function Alert({ className, variant, ...props }) {
|
|
1280
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "alert", role: "alert", className:
|
|
1280
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "alert", role: "alert", className: _chunkULHMVHDSjs.cn.call(void 0, alertVariants({ variant }), className), ...props });
|
|
1281
1281
|
}
|
|
1282
1282
|
_chunk7QVYU63Ejs.__name.call(void 0, Alert, "Alert");
|
|
1283
1283
|
function AlertTitle({ className, ...props }) {
|
|
@@ -1285,7 +1285,7 @@ function AlertTitle({ className, ...props }) {
|
|
|
1285
1285
|
"div",
|
|
1286
1286
|
{
|
|
1287
1287
|
"data-slot": "alert-title",
|
|
1288
|
-
className:
|
|
1288
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1289
1289
|
"font-medium group-has-[>svg]/alert:col-start-2 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3",
|
|
1290
1290
|
className
|
|
1291
1291
|
),
|
|
@@ -1299,7 +1299,7 @@ function AlertDescription({ className, ...props }) {
|
|
|
1299
1299
|
"div",
|
|
1300
1300
|
{
|
|
1301
1301
|
"data-slot": "alert-description",
|
|
1302
|
-
className:
|
|
1302
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1303
1303
|
"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",
|
|
1304
1304
|
className
|
|
1305
1305
|
),
|
|
@@ -1309,7 +1309,7 @@ function AlertDescription({ className, ...props }) {
|
|
|
1309
1309
|
}
|
|
1310
1310
|
_chunk7QVYU63Ejs.__name.call(void 0, AlertDescription, "AlertDescription");
|
|
1311
1311
|
function AlertAction({ className, ...props }) {
|
|
1312
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "alert-action", className:
|
|
1312
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "alert-action", className: _chunkULHMVHDSjs.cn.call(void 0, "absolute top-1.5 right-2", className), ...props });
|
|
1313
1313
|
}
|
|
1314
1314
|
_chunk7QVYU63Ejs.__name.call(void 0, AlertAction, "AlertAction");
|
|
1315
1315
|
|
|
@@ -1355,7 +1355,7 @@ function Button({
|
|
|
1355
1355
|
size = "default",
|
|
1356
1356
|
...props
|
|
1357
1357
|
}) {
|
|
1358
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _button.Button, { "data-slot": "button", className:
|
|
1358
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _button.Button, { "data-slot": "button", className: _chunkULHMVHDSjs.cn.call(void 0, buttonVariants({ variant, size, className })), ...props });
|
|
1359
1359
|
}
|
|
1360
1360
|
_chunk7QVYU63Ejs.__name.call(void 0, Button, "Button");
|
|
1361
1361
|
|
|
@@ -1378,7 +1378,7 @@ function AlertDialogOverlay({ className, ...props }) {
|
|
|
1378
1378
|
_alertdialog.AlertDialog.Backdrop,
|
|
1379
1379
|
{
|
|
1380
1380
|
"data-slot": "alert-dialog-overlay",
|
|
1381
|
-
className:
|
|
1381
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1382
1382
|
"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",
|
|
1383
1383
|
className
|
|
1384
1384
|
),
|
|
@@ -1399,7 +1399,7 @@ function AlertDialogContent({
|
|
|
1399
1399
|
{
|
|
1400
1400
|
"data-slot": "alert-dialog-content",
|
|
1401
1401
|
"data-size": size,
|
|
1402
|
-
className:
|
|
1402
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1403
1403
|
"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",
|
|
1404
1404
|
className
|
|
1405
1405
|
),
|
|
@@ -1414,7 +1414,7 @@ function AlertDialogHeader({ className, ...props }) {
|
|
|
1414
1414
|
"div",
|
|
1415
1415
|
{
|
|
1416
1416
|
"data-slot": "alert-dialog-header",
|
|
1417
|
-
className:
|
|
1417
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1418
1418
|
"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]",
|
|
1419
1419
|
className
|
|
1420
1420
|
),
|
|
@@ -1428,7 +1428,7 @@ function AlertDialogFooter({ className, ...props }) {
|
|
|
1428
1428
|
"div",
|
|
1429
1429
|
{
|
|
1430
1430
|
"data-slot": "alert-dialog-footer",
|
|
1431
|
-
className:
|
|
1431
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1432
1432
|
"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",
|
|
1433
1433
|
className
|
|
1434
1434
|
),
|
|
@@ -1442,7 +1442,7 @@ function AlertDialogMedia({ className, ...props }) {
|
|
|
1442
1442
|
"div",
|
|
1443
1443
|
{
|
|
1444
1444
|
"data-slot": "alert-dialog-media",
|
|
1445
|
-
className:
|
|
1445
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1446
1446
|
"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",
|
|
1447
1447
|
className
|
|
1448
1448
|
),
|
|
@@ -1456,7 +1456,7 @@ function AlertDialogTitle({ className, ...props }) {
|
|
|
1456
1456
|
_alertdialog.AlertDialog.Title,
|
|
1457
1457
|
{
|
|
1458
1458
|
"data-slot": "alert-dialog-title",
|
|
1459
|
-
className:
|
|
1459
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1460
1460
|
"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",
|
|
1461
1461
|
className
|
|
1462
1462
|
),
|
|
@@ -1473,7 +1473,7 @@ function AlertDialogDescription({
|
|
|
1473
1473
|
_alertdialog.AlertDialog.Description,
|
|
1474
1474
|
{
|
|
1475
1475
|
"data-slot": "alert-dialog-description",
|
|
1476
|
-
className:
|
|
1476
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1477
1477
|
"text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3",
|
|
1478
1478
|
className
|
|
1479
1479
|
),
|
|
@@ -1483,7 +1483,7 @@ function AlertDialogDescription({
|
|
|
1483
1483
|
}
|
|
1484
1484
|
_chunk7QVYU63Ejs.__name.call(void 0, AlertDialogDescription, "AlertDialogDescription");
|
|
1485
1485
|
function AlertDialogAction({ className, ...props }) {
|
|
1486
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { "data-slot": "alert-dialog-action", className:
|
|
1486
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { "data-slot": "alert-dialog-action", className: _chunkULHMVHDSjs.cn.call(void 0, className), ...props });
|
|
1487
1487
|
}
|
|
1488
1488
|
_chunk7QVYU63Ejs.__name.call(void 0, AlertDialogAction, "AlertDialogAction");
|
|
1489
1489
|
function AlertDialogCancel({
|
|
@@ -1496,7 +1496,7 @@ function AlertDialogCancel({
|
|
|
1496
1496
|
_alertdialog.AlertDialog.Close,
|
|
1497
1497
|
{
|
|
1498
1498
|
"data-slot": "alert-dialog-cancel",
|
|
1499
|
-
className:
|
|
1499
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, className),
|
|
1500
1500
|
render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant, size }),
|
|
1501
1501
|
...props
|
|
1502
1502
|
}
|
|
@@ -1517,7 +1517,7 @@ function Avatar({
|
|
|
1517
1517
|
{
|
|
1518
1518
|
"data-slot": "avatar",
|
|
1519
1519
|
"data-size": size,
|
|
1520
|
-
className:
|
|
1520
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1521
1521
|
"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",
|
|
1522
1522
|
className
|
|
1523
1523
|
),
|
|
@@ -1531,7 +1531,7 @@ function AvatarImage({ className, ...props }) {
|
|
|
1531
1531
|
_avatar.Avatar.Image,
|
|
1532
1532
|
{
|
|
1533
1533
|
"data-slot": "avatar-image",
|
|
1534
|
-
className:
|
|
1534
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "rounded-full aspect-square size-full object-cover", className),
|
|
1535
1535
|
...props
|
|
1536
1536
|
}
|
|
1537
1537
|
);
|
|
@@ -1542,7 +1542,7 @@ function AvatarFallback({ className, ...props }) {
|
|
|
1542
1542
|
_avatar.Avatar.Fallback,
|
|
1543
1543
|
{
|
|
1544
1544
|
"data-slot": "avatar-fallback",
|
|
1545
|
-
className:
|
|
1545
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1546
1546
|
"bg-muted text-muted-foreground rounded-full flex size-full items-center justify-center text-sm group-data-[size=sm]/avatar:text-xs",
|
|
1547
1547
|
className
|
|
1548
1548
|
),
|
|
@@ -1556,7 +1556,7 @@ function AvatarBadge({ className, ...props }) {
|
|
|
1556
1556
|
"span",
|
|
1557
1557
|
{
|
|
1558
1558
|
"data-slot": "avatar-badge",
|
|
1559
|
-
className:
|
|
1559
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1560
1560
|
"bg-primary text-primary-foreground ring-background absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-blend-color ring-2 select-none",
|
|
1561
1561
|
"group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden",
|
|
1562
1562
|
"group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2",
|
|
@@ -1573,7 +1573,7 @@ function AvatarGroup({ className, ...props }) {
|
|
|
1573
1573
|
"div",
|
|
1574
1574
|
{
|
|
1575
1575
|
"data-slot": "avatar-group",
|
|
1576
|
-
className:
|
|
1576
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1577
1577
|
"*:data-[slot=avatar]:ring-background group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2",
|
|
1578
1578
|
className
|
|
1579
1579
|
),
|
|
@@ -1587,7 +1587,7 @@ function AvatarGroupCount({ className, ...props }) {
|
|
|
1587
1587
|
"div",
|
|
1588
1588
|
{
|
|
1589
1589
|
"data-slot": "avatar-group-count",
|
|
1590
|
-
className:
|
|
1590
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1591
1591
|
"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",
|
|
1592
1592
|
className
|
|
1593
1593
|
),
|
|
@@ -1629,7 +1629,7 @@ function Badge({
|
|
|
1629
1629
|
defaultTagName: "span",
|
|
1630
1630
|
props: _mergeprops.mergeProps.call(void 0,
|
|
1631
1631
|
{
|
|
1632
|
-
className:
|
|
1632
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, badgeVariants({ className, variant }))
|
|
1633
1633
|
},
|
|
1634
1634
|
props
|
|
1635
1635
|
),
|
|
@@ -1648,7 +1648,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, Badge, "Badge");
|
|
|
1648
1648
|
|
|
1649
1649
|
|
|
1650
1650
|
function Breadcrumb({ className, ...props }) {
|
|
1651
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", className:
|
|
1651
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", className: _chunkULHMVHDSjs.cn.call(void 0, className), ...props });
|
|
1652
1652
|
}
|
|
1653
1653
|
_chunk7QVYU63Ejs.__name.call(void 0, Breadcrumb, "Breadcrumb");
|
|
1654
1654
|
function BreadcrumbList({ className, ...props }) {
|
|
@@ -1656,14 +1656,14 @@ function BreadcrumbList({ className, ...props }) {
|
|
|
1656
1656
|
"ol",
|
|
1657
1657
|
{
|
|
1658
1658
|
"data-slot": "breadcrumb-list",
|
|
1659
|
-
className:
|
|
1659
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "text-muted-foreground gap-1.5 text-xs/relaxed flex flex-wrap items-center break-words", className),
|
|
1660
1660
|
...props
|
|
1661
1661
|
}
|
|
1662
1662
|
);
|
|
1663
1663
|
}
|
|
1664
1664
|
_chunk7QVYU63Ejs.__name.call(void 0, BreadcrumbList, "BreadcrumbList");
|
|
1665
1665
|
function BreadcrumbItem({ className, ...props }) {
|
|
1666
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-slot": "breadcrumb-item", className:
|
|
1666
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-slot": "breadcrumb-item", className: _chunkULHMVHDSjs.cn.call(void 0, "gap-1 inline-flex items-center", className), ...props });
|
|
1667
1667
|
}
|
|
1668
1668
|
_chunk7QVYU63Ejs.__name.call(void 0, BreadcrumbItem, "BreadcrumbItem");
|
|
1669
1669
|
function BreadcrumbLink({ className, render, ...props }) {
|
|
@@ -1671,7 +1671,7 @@ function BreadcrumbLink({ className, render, ...props }) {
|
|
|
1671
1671
|
defaultTagName: "a",
|
|
1672
1672
|
props: _mergeprops.mergeProps.call(void 0,
|
|
1673
1673
|
{
|
|
1674
|
-
className:
|
|
1674
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "hover:text-foreground transition-colors", className)
|
|
1675
1675
|
},
|
|
1676
1676
|
props
|
|
1677
1677
|
),
|
|
@@ -1690,7 +1690,7 @@ function BreadcrumbPage({ className, ...props }) {
|
|
|
1690
1690
|
role: "link",
|
|
1691
1691
|
"aria-disabled": "true",
|
|
1692
1692
|
"aria-current": "page",
|
|
1693
|
-
className:
|
|
1693
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "text-foreground font-normal", className),
|
|
1694
1694
|
...props
|
|
1695
1695
|
}
|
|
1696
1696
|
);
|
|
@@ -1703,7 +1703,7 @@ function BreadcrumbSeparator({ children, className, ...props }) {
|
|
|
1703
1703
|
"data-slot": "breadcrumb-separator",
|
|
1704
1704
|
role: "presentation",
|
|
1705
1705
|
"aria-hidden": "true",
|
|
1706
|
-
className:
|
|
1706
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "[&>svg]:size-3.5", className),
|
|
1707
1707
|
...props,
|
|
1708
1708
|
children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, {})))
|
|
1709
1709
|
}
|
|
@@ -1717,7 +1717,7 @@ function BreadcrumbEllipsis({ className, ...props }) {
|
|
|
1717
1717
|
"data-slot": "breadcrumb-ellipsis",
|
|
1718
1718
|
role: "presentation",
|
|
1719
1719
|
"aria-hidden": "true",
|
|
1720
|
-
className:
|
|
1720
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "size-4 [&>svg]:size-3.5 flex items-center justify-center", className),
|
|
1721
1721
|
...props,
|
|
1722
1722
|
children: [
|
|
1723
1723
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.MoreHorizontalIcon, {}),
|
|
@@ -1748,7 +1748,7 @@ function Calendar({
|
|
|
1748
1748
|
_reactdaypicker.DayPicker,
|
|
1749
1749
|
{
|
|
1750
1750
|
showOutsideDays,
|
|
1751
|
-
className:
|
|
1751
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1752
1752
|
"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",
|
|
1753
1753
|
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
1754
1754
|
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
@@ -1760,82 +1760,82 @@ function Calendar({
|
|
|
1760
1760
|
...formatters
|
|
1761
1761
|
},
|
|
1762
1762
|
classNames: {
|
|
1763
|
-
root:
|
|
1764
|
-
months:
|
|
1765
|
-
month:
|
|
1766
|
-
nav:
|
|
1767
|
-
button_previous:
|
|
1763
|
+
root: _chunkULHMVHDSjs.cn.call(void 0, "w-fit", defaultClassNames.root),
|
|
1764
|
+
months: _chunkULHMVHDSjs.cn.call(void 0, "flex gap-4 flex-col md:flex-row relative", defaultClassNames.months),
|
|
1765
|
+
month: _chunkULHMVHDSjs.cn.call(void 0, "flex flex-col w-full gap-4", defaultClassNames.month),
|
|
1766
|
+
nav: _chunkULHMVHDSjs.cn.call(void 0, "flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between", defaultClassNames.nav),
|
|
1767
|
+
button_previous: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1768
1768
|
buttonVariants({ variant: buttonVariant }),
|
|
1769
1769
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
1770
1770
|
defaultClassNames.button_previous
|
|
1771
1771
|
),
|
|
1772
|
-
button_next:
|
|
1772
|
+
button_next: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1773
1773
|
buttonVariants({ variant: buttonVariant }),
|
|
1774
1774
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
1775
1775
|
defaultClassNames.button_next
|
|
1776
1776
|
),
|
|
1777
|
-
month_caption:
|
|
1777
|
+
month_caption: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1778
1778
|
"flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
|
|
1779
1779
|
defaultClassNames.month_caption
|
|
1780
1780
|
),
|
|
1781
|
-
dropdowns:
|
|
1781
|
+
dropdowns: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1782
1782
|
"w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
|
|
1783
1783
|
defaultClassNames.dropdowns
|
|
1784
1784
|
),
|
|
1785
|
-
dropdown_root:
|
|
1785
|
+
dropdown_root: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1786
1786
|
"relative cn-calendar-dropdown-root rounded-(--cell-radius)",
|
|
1787
1787
|
defaultClassNames.dropdown_root
|
|
1788
1788
|
),
|
|
1789
|
-
dropdown:
|
|
1790
|
-
caption_label:
|
|
1789
|
+
dropdown: _chunkULHMVHDSjs.cn.call(void 0, "absolute bg-popover inset-0 opacity-0", defaultClassNames.dropdown),
|
|
1790
|
+
caption_label: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1791
1791
|
"select-none font-medium",
|
|
1792
1792
|
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",
|
|
1793
1793
|
defaultClassNames.caption_label
|
|
1794
1794
|
),
|
|
1795
1795
|
table: "w-full border-collapse",
|
|
1796
|
-
weekdays:
|
|
1797
|
-
weekday:
|
|
1796
|
+
weekdays: _chunkULHMVHDSjs.cn.call(void 0, "flex", defaultClassNames.weekdays),
|
|
1797
|
+
weekday: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1798
1798
|
"text-muted-foreground rounded-(--cell-radius) flex-1 font-normal text-[0.8rem] select-none",
|
|
1799
1799
|
defaultClassNames.weekday
|
|
1800
1800
|
),
|
|
1801
|
-
week:
|
|
1802
|
-
week_number_header:
|
|
1803
|
-
week_number:
|
|
1804
|
-
day:
|
|
1801
|
+
week: _chunkULHMVHDSjs.cn.call(void 0, "flex w-full mt-2", defaultClassNames.week),
|
|
1802
|
+
week_number_header: _chunkULHMVHDSjs.cn.call(void 0, "select-none w-(--cell-size)", defaultClassNames.week_number_header),
|
|
1803
|
+
week_number: _chunkULHMVHDSjs.cn.call(void 0, "text-[0.8rem] select-none text-muted-foreground", defaultClassNames.week_number),
|
|
1804
|
+
day: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1805
1805
|
"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",
|
|
1806
1806
|
props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)" : "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)",
|
|
1807
1807
|
defaultClassNames.day
|
|
1808
1808
|
),
|
|
1809
|
-
range_start:
|
|
1809
|
+
range_start: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1810
1810
|
"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",
|
|
1811
1811
|
defaultClassNames.range_start
|
|
1812
1812
|
),
|
|
1813
|
-
range_middle:
|
|
1814
|
-
range_end:
|
|
1813
|
+
range_middle: _chunkULHMVHDSjs.cn.call(void 0, "rounded-none", defaultClassNames.range_middle),
|
|
1814
|
+
range_end: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1815
1815
|
"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",
|
|
1816
1816
|
defaultClassNames.range_end
|
|
1817
1817
|
),
|
|
1818
|
-
today:
|
|
1818
|
+
today: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1819
1819
|
"bg-muted text-foreground rounded-(--cell-radius) data-[selected=true]:rounded-none",
|
|
1820
1820
|
defaultClassNames.today
|
|
1821
1821
|
),
|
|
1822
|
-
outside:
|
|
1823
|
-
disabled:
|
|
1824
|
-
hidden:
|
|
1822
|
+
outside: _chunkULHMVHDSjs.cn.call(void 0, "text-muted-foreground aria-selected:text-muted-foreground", defaultClassNames.outside),
|
|
1823
|
+
disabled: _chunkULHMVHDSjs.cn.call(void 0, "text-muted-foreground opacity-50", defaultClassNames.disabled),
|
|
1824
|
+
hidden: _chunkULHMVHDSjs.cn.call(void 0, "invisible", defaultClassNames.hidden),
|
|
1825
1825
|
...classNames
|
|
1826
1826
|
},
|
|
1827
1827
|
components: {
|
|
1828
1828
|
Root: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className: className2, rootRef, ...props2 }) => {
|
|
1829
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "calendar", ref: rootRef, className:
|
|
1829
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "calendar", ref: rootRef, className: _chunkULHMVHDSjs.cn.call(void 0, className2), ...props2 });
|
|
1830
1830
|
}, "Root"),
|
|
1831
1831
|
Chevron: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className: className2, orientation, ...props2 }) => {
|
|
1832
1832
|
if (orientation === "left") {
|
|
1833
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeftIcon, { className:
|
|
1833
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeftIcon, { className: _chunkULHMVHDSjs.cn.call(void 0, "size-4", className2), ...props2 });
|
|
1834
1834
|
}
|
|
1835
1835
|
if (orientation === "right") {
|
|
1836
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className:
|
|
1836
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className: _chunkULHMVHDSjs.cn.call(void 0, "size-4", className2), ...props2 });
|
|
1837
1837
|
}
|
|
1838
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className:
|
|
1838
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: _chunkULHMVHDSjs.cn.call(void 0, "size-4", className2), ...props2 });
|
|
1839
1839
|
}, "Chevron"),
|
|
1840
1840
|
DayButton: CalendarDayButton,
|
|
1841
1841
|
WeekNumber: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ children, ...props2 }) => {
|
|
@@ -1864,7 +1864,7 @@ function CalendarDayButton({ className, day, modifiers, ...props }) {
|
|
|
1864
1864
|
"data-range-start": modifiers.range_start,
|
|
1865
1865
|
"data-range-end": modifiers.range_end,
|
|
1866
1866
|
"data-range-middle": modifiers.range_middle,
|
|
1867
|
-
className:
|
|
1867
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1868
1868
|
"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",
|
|
1869
1869
|
defaultClassNames.day,
|
|
1870
1870
|
className
|
|
@@ -1883,7 +1883,7 @@ function Card({ className, size = "default", ...props }) {
|
|
|
1883
1883
|
{
|
|
1884
1884
|
"data-slot": "card",
|
|
1885
1885
|
"data-size": size,
|
|
1886
|
-
className:
|
|
1886
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1887
1887
|
"ring-foreground/10 bg-card text-card-foreground gap-4 overflow-clip rounded-lg py-4 text-xs/relaxed ring-1 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg group/card flex flex-col",
|
|
1888
1888
|
className
|
|
1889
1889
|
),
|
|
@@ -1897,7 +1897,7 @@ function CardHeader({ className, ...props }) {
|
|
|
1897
1897
|
"div",
|
|
1898
1898
|
{
|
|
1899
1899
|
"data-slot": "card-header",
|
|
1900
|
-
className:
|
|
1900
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1901
1901
|
"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]",
|
|
1902
1902
|
className
|
|
1903
1903
|
),
|
|
@@ -1907,11 +1907,11 @@ function CardHeader({ className, ...props }) {
|
|
|
1907
1907
|
}
|
|
1908
1908
|
_chunk7QVYU63Ejs.__name.call(void 0, CardHeader, "CardHeader");
|
|
1909
1909
|
function CardTitle({ className, ...props }) {
|
|
1910
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-title", className:
|
|
1910
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-title", className: _chunkULHMVHDSjs.cn.call(void 0, "text-sm font-medium", className), ...props });
|
|
1911
1911
|
}
|
|
1912
1912
|
_chunk7QVYU63Ejs.__name.call(void 0, CardTitle, "CardTitle");
|
|
1913
1913
|
function CardDescription({ className, ...props }) {
|
|
1914
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-description", className:
|
|
1914
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-description", className: _chunkULHMVHDSjs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className), ...props });
|
|
1915
1915
|
}
|
|
1916
1916
|
_chunk7QVYU63Ejs.__name.call(void 0, CardDescription, "CardDescription");
|
|
1917
1917
|
function CardAction({ className, ...props }) {
|
|
@@ -1919,14 +1919,14 @@ function CardAction({ className, ...props }) {
|
|
|
1919
1919
|
"div",
|
|
1920
1920
|
{
|
|
1921
1921
|
"data-slot": "card-action",
|
|
1922
|
-
className:
|
|
1922
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
|
|
1923
1923
|
...props
|
|
1924
1924
|
}
|
|
1925
1925
|
);
|
|
1926
1926
|
}
|
|
1927
1927
|
_chunk7QVYU63Ejs.__name.call(void 0, CardAction, "CardAction");
|
|
1928
1928
|
function CardContent({ className, ...props }) {
|
|
1929
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-content", className:
|
|
1929
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-content", className: _chunkULHMVHDSjs.cn.call(void 0, "px-4 group-data-[size=sm]/card:px-3", className), ...props });
|
|
1930
1930
|
}
|
|
1931
1931
|
_chunk7QVYU63Ejs.__name.call(void 0, CardContent, "CardContent");
|
|
1932
1932
|
function CardFooter({ className, ...props }) {
|
|
@@ -1934,7 +1934,7 @@ function CardFooter({ className, ...props }) {
|
|
|
1934
1934
|
"div",
|
|
1935
1935
|
{
|
|
1936
1936
|
"data-slot": "card-footer",
|
|
1937
|
-
className:
|
|
1937
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
1938
1938
|
"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",
|
|
1939
1939
|
className
|
|
1940
1940
|
),
|
|
@@ -2029,7 +2029,7 @@ function Carousel({
|
|
|
2029
2029
|
"div",
|
|
2030
2030
|
{
|
|
2031
2031
|
onKeyDownCapture: handleKeyDown,
|
|
2032
|
-
className:
|
|
2032
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "relative", className),
|
|
2033
2033
|
role: "region",
|
|
2034
2034
|
"aria-roledescription": "carousel",
|
|
2035
2035
|
"data-slot": "carousel",
|
|
@@ -2043,7 +2043,7 @@ function Carousel({
|
|
|
2043
2043
|
_chunk7QVYU63Ejs.__name.call(void 0, Carousel, "Carousel");
|
|
2044
2044
|
function CarouselContent({ className, ...props }) {
|
|
2045
2045
|
const { carouselRef, orientation } = useCarousel();
|
|
2046
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: carouselRef, className: "overflow-hidden", "data-slot": "carousel-content", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2046
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: carouselRef, className: "overflow-hidden", "data-slot": "carousel-content", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkULHMVHDSjs.cn.call(void 0, "flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className), ...props }) });
|
|
2047
2047
|
}
|
|
2048
2048
|
_chunk7QVYU63Ejs.__name.call(void 0, CarouselContent, "CarouselContent");
|
|
2049
2049
|
function CarouselItem({ className, ...props }) {
|
|
@@ -2054,7 +2054,7 @@ function CarouselItem({ className, ...props }) {
|
|
|
2054
2054
|
role: "group",
|
|
2055
2055
|
"aria-roledescription": "slide",
|
|
2056
2056
|
"data-slot": "carousel-item",
|
|
2057
|
-
className:
|
|
2057
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "min-w-0 shrink-0 grow-0 basis-full", orientation === "horizontal" ? "pl-4" : "pt-4", className),
|
|
2058
2058
|
...props
|
|
2059
2059
|
}
|
|
2060
2060
|
);
|
|
@@ -2073,7 +2073,7 @@ function CarouselPrevious({
|
|
|
2073
2073
|
"data-slot": "carousel-previous",
|
|
2074
2074
|
variant,
|
|
2075
2075
|
size,
|
|
2076
|
-
className:
|
|
2076
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2077
2077
|
"rounded-full absolute touch-manipulation",
|
|
2078
2078
|
orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
2079
2079
|
className
|
|
@@ -2102,7 +2102,7 @@ function CarouselNext({
|
|
|
2102
2102
|
"data-slot": "carousel-next",
|
|
2103
2103
|
variant,
|
|
2104
2104
|
size,
|
|
2105
|
-
className:
|
|
2105
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2106
2106
|
"rounded-full absolute touch-manipulation",
|
|
2107
2107
|
orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
2108
2108
|
className
|
|
@@ -2147,7 +2147,7 @@ function ChartContainer({
|
|
|
2147
2147
|
{
|
|
2148
2148
|
"data-slot": "chart",
|
|
2149
2149
|
"data-chart": chartId,
|
|
2150
|
-
className:
|
|
2150
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2151
2151
|
"[&_.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",
|
|
2152
2152
|
className
|
|
2153
2153
|
),
|
|
@@ -2209,12 +2209,12 @@ function ChartTooltipContent({
|
|
|
2209
2209
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
2210
2210
|
const value = !labelKey && typeof label === "string" ? _optionalChain([config, 'access', _71 => _71[label], 'optionalAccess', _72 => _72.label]) || label : _optionalChain([itemConfig, 'optionalAccess', _73 => _73.label]);
|
|
2211
2211
|
if (labelFormatter) {
|
|
2212
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2212
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkULHMVHDSjs.cn.call(void 0, "font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
2213
2213
|
}
|
|
2214
2214
|
if (!value) {
|
|
2215
2215
|
return null;
|
|
2216
2216
|
}
|
|
2217
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2217
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkULHMVHDSjs.cn.call(void 0, "font-medium", labelClassName), children: value });
|
|
2218
2218
|
}, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey]);
|
|
2219
2219
|
if (!active || !_optionalChain([payload, 'optionalAccess', _74 => _74.length])) {
|
|
2220
2220
|
return null;
|
|
@@ -2223,7 +2223,7 @@ function ChartTooltipContent({
|
|
|
2223
2223
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2224
2224
|
"div",
|
|
2225
2225
|
{
|
|
2226
|
-
className:
|
|
2226
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2227
2227
|
"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",
|
|
2228
2228
|
className
|
|
2229
2229
|
),
|
|
@@ -2236,7 +2236,7 @@ function ChartTooltipContent({
|
|
|
2236
2236
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2237
2237
|
"div",
|
|
2238
2238
|
{
|
|
2239
|
-
className:
|
|
2239
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2240
2240
|
"[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
|
|
2241
2241
|
indicator === "dot" && "items-center"
|
|
2242
2242
|
),
|
|
@@ -2244,7 +2244,7 @@ function ChartTooltipContent({
|
|
|
2244
2244
|
_optionalChain([itemConfig, 'optionalAccess', _78 => _78.icon]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2245
2245
|
"div",
|
|
2246
2246
|
{
|
|
2247
|
-
className:
|
|
2247
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", {
|
|
2248
2248
|
"h-2.5 w-2.5": indicator === "dot",
|
|
2249
2249
|
"w-1": indicator === "line",
|
|
2250
2250
|
"w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
|
|
@@ -2259,7 +2259,7 @@ function ChartTooltipContent({
|
|
|
2259
2259
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2260
2260
|
"div",
|
|
2261
2261
|
{
|
|
2262
|
-
className:
|
|
2262
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2263
2263
|
"flex flex-1 justify-between leading-none",
|
|
2264
2264
|
nestLabel ? "items-end" : "items-center"
|
|
2265
2265
|
),
|
|
@@ -2294,13 +2294,13 @@ function ChartLegendContent({
|
|
|
2294
2294
|
if (!_optionalChain([payload, 'optionalAccess', _80 => _80.length])) {
|
|
2295
2295
|
return null;
|
|
2296
2296
|
}
|
|
2297
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2297
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkULHMVHDSjs.cn.call(void 0, "flex items-center justify-center gap-4", verticalAlign === "top" ? "pb-3" : "pt-3", className), children: payload.filter((item) => item.type !== "none").map((item) => {
|
|
2298
2298
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
2299
2299
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
2300
2300
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2301
2301
|
"div",
|
|
2302
2302
|
{
|
|
2303
|
-
className:
|
|
2303
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),
|
|
2304
2304
|
children: [
|
|
2305
2305
|
_optionalChain([itemConfig, 'optionalAccess', _81 => _81.icon]) && !hideIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2306
2306
|
"div",
|
|
@@ -2343,7 +2343,7 @@ function Checkbox({ className, ...props }) {
|
|
|
2343
2343
|
_checkbox.Checkbox.Root,
|
|
2344
2344
|
{
|
|
2345
2345
|
"data-slot": "checkbox",
|
|
2346
|
-
className:
|
|
2346
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2347
2347
|
"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",
|
|
2348
2348
|
className
|
|
2349
2349
|
),
|
|
@@ -2405,7 +2405,7 @@ function DialogOverlay({ className, ...props }) {
|
|
|
2405
2405
|
_dialog.Dialog.Backdrop,
|
|
2406
2406
|
{
|
|
2407
2407
|
"data-slot": "dialog-overlay",
|
|
2408
|
-
className:
|
|
2408
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2409
2409
|
"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",
|
|
2410
2410
|
className
|
|
2411
2411
|
),
|
|
@@ -2426,7 +2426,7 @@ function DialogContent({
|
|
|
2426
2426
|
_dialog.Dialog.Popup,
|
|
2427
2427
|
{
|
|
2428
2428
|
"data-slot": "dialog-content",
|
|
2429
|
-
className:
|
|
2429
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2430
2430
|
"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",
|
|
2431
2431
|
className
|
|
2432
2432
|
),
|
|
@@ -2451,7 +2451,7 @@ function DialogContent({
|
|
|
2451
2451
|
}
|
|
2452
2452
|
_chunk7QVYU63Ejs.__name.call(void 0, DialogContent, "DialogContent");
|
|
2453
2453
|
function DialogHeader({ className, ...props }) {
|
|
2454
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "dialog-header", className:
|
|
2454
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "dialog-header", className: _chunkULHMVHDSjs.cn.call(void 0, "gap-1 flex flex-col", className), ...props });
|
|
2455
2455
|
}
|
|
2456
2456
|
_chunk7QVYU63Ejs.__name.call(void 0, DialogHeader, "DialogHeader");
|
|
2457
2457
|
function DialogFooter({
|
|
@@ -2464,7 +2464,7 @@ function DialogFooter({
|
|
|
2464
2464
|
"div",
|
|
2465
2465
|
{
|
|
2466
2466
|
"data-slot": "dialog-footer",
|
|
2467
|
-
className:
|
|
2467
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "gap-2 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
2468
2468
|
...props,
|
|
2469
2469
|
children: [
|
|
2470
2470
|
children,
|
|
@@ -2475,7 +2475,7 @@ function DialogFooter({
|
|
|
2475
2475
|
}
|
|
2476
2476
|
_chunk7QVYU63Ejs.__name.call(void 0, DialogFooter, "DialogFooter");
|
|
2477
2477
|
function DialogTitle({ className, ...props }) {
|
|
2478
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _dialog.Dialog.Title, { "data-slot": "dialog-title", className:
|
|
2478
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _dialog.Dialog.Title, { "data-slot": "dialog-title", className: _chunkULHMVHDSjs.cn.call(void 0, "text-sm font-medium", className), ...props });
|
|
2479
2479
|
}
|
|
2480
2480
|
_chunk7QVYU63Ejs.__name.call(void 0, DialogTitle, "DialogTitle");
|
|
2481
2481
|
function DialogDescription({ className, ...props }) {
|
|
@@ -2483,7 +2483,7 @@ function DialogDescription({ className, ...props }) {
|
|
|
2483
2483
|
_dialog.Dialog.Description,
|
|
2484
2484
|
{
|
|
2485
2485
|
"data-slot": "dialog-description",
|
|
2486
|
-
className:
|
|
2486
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2487
2487
|
"text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed *:[a]:underline *:[a]:underline-offset-3",
|
|
2488
2488
|
className
|
|
2489
2489
|
),
|
|
@@ -2505,7 +2505,7 @@ function Input({ className, type, ...props }) {
|
|
|
2505
2505
|
{
|
|
2506
2506
|
type,
|
|
2507
2507
|
"data-slot": "input",
|
|
2508
|
-
className:
|
|
2508
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2509
2509
|
"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",
|
|
2510
2510
|
className
|
|
2511
2511
|
),
|
|
@@ -2522,7 +2522,7 @@ function Textarea({ className, ...props }) {
|
|
|
2522
2522
|
"textarea",
|
|
2523
2523
|
{
|
|
2524
2524
|
"data-slot": "textarea",
|
|
2525
|
-
className:
|
|
2525
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2526
2526
|
"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",
|
|
2527
2527
|
className
|
|
2528
2528
|
),
|
|
@@ -2540,7 +2540,7 @@ function InputGroup({ className, ...props }) {
|
|
|
2540
2540
|
{
|
|
2541
2541
|
"data-slot": "input-group",
|
|
2542
2542
|
role: "group",
|
|
2543
|
-
className:
|
|
2543
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2544
2544
|
"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",
|
|
2545
2545
|
className
|
|
2546
2546
|
),
|
|
@@ -2576,7 +2576,7 @@ function InputGroupAddon({
|
|
|
2576
2576
|
role: "group",
|
|
2577
2577
|
"data-slot": "input-group-addon",
|
|
2578
2578
|
"data-align": align,
|
|
2579
|
-
className:
|
|
2579
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, inputGroupAddonVariants({ align }), className),
|
|
2580
2580
|
onClick: (e) => {
|
|
2581
2581
|
if (e.target.closest("button")) {
|
|
2582
2582
|
return;
|
|
@@ -2614,7 +2614,7 @@ function InputGroupButton({
|
|
|
2614
2614
|
type,
|
|
2615
2615
|
"data-size": size,
|
|
2616
2616
|
variant,
|
|
2617
|
-
className:
|
|
2617
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, inputGroupButtonVariants({ size }), className),
|
|
2618
2618
|
...props
|
|
2619
2619
|
}
|
|
2620
2620
|
);
|
|
@@ -2624,7 +2624,7 @@ function InputGroupText({ className, ...props }) {
|
|
|
2624
2624
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2625
2625
|
"span",
|
|
2626
2626
|
{
|
|
2627
|
-
className:
|
|
2627
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2628
2628
|
"text-muted-foreground gap-2 text-xs/relaxed [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none",
|
|
2629
2629
|
className
|
|
2630
2630
|
),
|
|
@@ -2638,7 +2638,7 @@ function InputGroupInput({ className, ...props }) {
|
|
|
2638
2638
|
Input,
|
|
2639
2639
|
{
|
|
2640
2640
|
"data-slot": "input-group-control",
|
|
2641
|
-
className:
|
|
2641
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2642
2642
|
"rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent flex-1",
|
|
2643
2643
|
className
|
|
2644
2644
|
),
|
|
@@ -2652,7 +2652,7 @@ function InputGroupTextarea({ className, ...props }) {
|
|
|
2652
2652
|
Textarea,
|
|
2653
2653
|
{
|
|
2654
2654
|
"data-slot": "input-group-control",
|
|
2655
|
-
className:
|
|
2655
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2656
2656
|
"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",
|
|
2657
2657
|
className
|
|
2658
2658
|
),
|
|
@@ -2670,7 +2670,7 @@ function Command({ className, ...props }) {
|
|
|
2670
2670
|
_cmdk.Command,
|
|
2671
2671
|
{
|
|
2672
2672
|
"data-slot": "command",
|
|
2673
|
-
className:
|
|
2673
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2674
2674
|
"bg-popover text-popover-foreground rounded-xl p-1 flex size-full flex-col overflow-hidden",
|
|
2675
2675
|
className
|
|
2676
2676
|
),
|
|
@@ -2692,7 +2692,7 @@ function CommandDialog({
|
|
|
2692
2692
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTitle, { children: title }),
|
|
2693
2693
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogDescription, { children: description })
|
|
2694
2694
|
] }),
|
|
2695
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogContent, { className:
|
|
2695
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogContent, { className: _chunkULHMVHDSjs.cn.call(void 0, "rounded-xl! p-0 overflow-hidden p-0", className), showCloseButton, children })
|
|
2696
2696
|
] });
|
|
2697
2697
|
}
|
|
2698
2698
|
_chunk7QVYU63Ejs.__name.call(void 0, CommandDialog, "CommandDialog");
|
|
@@ -2702,7 +2702,7 @@ function CommandInput({ className, ...props }) {
|
|
|
2702
2702
|
_cmdk.Command.Input,
|
|
2703
2703
|
{
|
|
2704
2704
|
"data-slot": "command-input",
|
|
2705
|
-
className:
|
|
2705
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2706
2706
|
"w-full text-xs/relaxed outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
2707
2707
|
className
|
|
2708
2708
|
),
|
|
@@ -2718,7 +2718,7 @@ function CommandList({ className, ...props }) {
|
|
|
2718
2718
|
_cmdk.Command.List,
|
|
2719
2719
|
{
|
|
2720
2720
|
"data-slot": "command-list",
|
|
2721
|
-
className:
|
|
2721
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "no-scrollbar max-h-72 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto", className),
|
|
2722
2722
|
...props
|
|
2723
2723
|
}
|
|
2724
2724
|
);
|
|
@@ -2729,7 +2729,7 @@ function CommandEmpty({ className, ...props }) {
|
|
|
2729
2729
|
_cmdk.Command.Empty,
|
|
2730
2730
|
{
|
|
2731
2731
|
"data-slot": "command-empty",
|
|
2732
|
-
className:
|
|
2732
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "py-6 text-center text-xs/relaxed", className),
|
|
2733
2733
|
...props
|
|
2734
2734
|
}
|
|
2735
2735
|
);
|
|
@@ -2740,7 +2740,7 @@ function CommandGroup({ className, ...props }) {
|
|
|
2740
2740
|
_cmdk.Command.Group,
|
|
2741
2741
|
{
|
|
2742
2742
|
"data-slot": "command-group",
|
|
2743
|
-
className:
|
|
2743
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2744
2744
|
"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",
|
|
2745
2745
|
className
|
|
2746
2746
|
),
|
|
@@ -2754,7 +2754,7 @@ function CommandSeparator({ className, ...props }) {
|
|
|
2754
2754
|
_cmdk.Command.Separator,
|
|
2755
2755
|
{
|
|
2756
2756
|
"data-slot": "command-separator",
|
|
2757
|
-
className:
|
|
2757
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
2758
2758
|
...props
|
|
2759
2759
|
}
|
|
2760
2760
|
);
|
|
@@ -2765,7 +2765,7 @@ function CommandItem({ className, children, ...props }) {
|
|
|
2765
2765
|
_cmdk.Command.Item,
|
|
2766
2766
|
{
|
|
2767
2767
|
"data-slot": "command-item",
|
|
2768
|
-
className:
|
|
2768
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2769
2769
|
"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",
|
|
2770
2770
|
className
|
|
2771
2771
|
),
|
|
@@ -2783,7 +2783,7 @@ function CommandShortcut({ className, ...props }) {
|
|
|
2783
2783
|
"span",
|
|
2784
2784
|
{
|
|
2785
2785
|
"data-slot": "command-shortcut",
|
|
2786
|
-
className:
|
|
2786
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2787
2787
|
"text-muted-foreground group-data-selected/command-item:text-foreground ml-auto text-[0.625rem] tracking-widest",
|
|
2788
2788
|
className
|
|
2789
2789
|
),
|
|
@@ -2810,7 +2810,7 @@ function ContextMenuTrigger({ className, ...props }) {
|
|
|
2810
2810
|
_contextmenu.ContextMenu.Trigger,
|
|
2811
2811
|
{
|
|
2812
2812
|
"data-slot": "context-menu-trigger",
|
|
2813
|
-
className:
|
|
2813
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "select-none", className),
|
|
2814
2814
|
...props
|
|
2815
2815
|
}
|
|
2816
2816
|
);
|
|
@@ -2836,7 +2836,7 @@ function ContextMenuContent({
|
|
|
2836
2836
|
_contextmenu.ContextMenu.Popup,
|
|
2837
2837
|
{
|
|
2838
2838
|
"data-slot": "context-menu-content",
|
|
2839
|
-
className:
|
|
2839
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2840
2840
|
"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",
|
|
2841
2841
|
className
|
|
2842
2842
|
),
|
|
@@ -2861,7 +2861,7 @@ function ContextMenuLabel({
|
|
|
2861
2861
|
{
|
|
2862
2862
|
"data-slot": "context-menu-label",
|
|
2863
2863
|
"data-inset": inset,
|
|
2864
|
-
className:
|
|
2864
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
|
|
2865
2865
|
...props
|
|
2866
2866
|
}
|
|
2867
2867
|
);
|
|
@@ -2879,7 +2879,7 @@ function ContextMenuItem({
|
|
|
2879
2879
|
"data-slot": "context-menu-item",
|
|
2880
2880
|
"data-inset": inset,
|
|
2881
2881
|
"data-variant": variant,
|
|
2882
|
-
className:
|
|
2882
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2883
2883
|
"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",
|
|
2884
2884
|
className
|
|
2885
2885
|
),
|
|
@@ -2903,7 +2903,7 @@ function ContextMenuSubTrigger({
|
|
|
2903
2903
|
{
|
|
2904
2904
|
"data-slot": "context-menu-sub-trigger",
|
|
2905
2905
|
"data-inset": inset,
|
|
2906
|
-
className:
|
|
2906
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2907
2907
|
"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",
|
|
2908
2908
|
className
|
|
2909
2909
|
),
|
|
@@ -2925,7 +2925,7 @@ function ContextMenuCheckboxItem({ className, children, checked, ...props }) {
|
|
|
2925
2925
|
_contextmenu.ContextMenu.CheckboxItem,
|
|
2926
2926
|
{
|
|
2927
2927
|
"data-slot": "context-menu-checkbox-item",
|
|
2928
|
-
className:
|
|
2928
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2929
2929
|
"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",
|
|
2930
2930
|
className
|
|
2931
2931
|
),
|
|
@@ -2948,7 +2948,7 @@ function ContextMenuRadioItem({ className, children, ...props }) {
|
|
|
2948
2948
|
_contextmenu.ContextMenu.RadioItem,
|
|
2949
2949
|
{
|
|
2950
2950
|
"data-slot": "context-menu-radio-item",
|
|
2951
|
-
className:
|
|
2951
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2952
2952
|
"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",
|
|
2953
2953
|
className
|
|
2954
2954
|
),
|
|
@@ -2966,7 +2966,7 @@ function ContextMenuSeparator({ className, ...props }) {
|
|
|
2966
2966
|
_contextmenu.ContextMenu.Separator,
|
|
2967
2967
|
{
|
|
2968
2968
|
"data-slot": "context-menu-separator",
|
|
2969
|
-
className:
|
|
2969
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
2970
2970
|
...props
|
|
2971
2971
|
}
|
|
2972
2972
|
);
|
|
@@ -2977,7 +2977,7 @@ function ContextMenuShortcut({ className, ...props }) {
|
|
|
2977
2977
|
"span",
|
|
2978
2978
|
{
|
|
2979
2979
|
"data-slot": "context-menu-shortcut",
|
|
2980
|
-
className:
|
|
2980
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
2981
2981
|
"text-muted-foreground group-focus/context-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest",
|
|
2982
2982
|
className
|
|
2983
2983
|
),
|
|
@@ -3011,7 +3011,7 @@ function DrawerOverlay({ className, ...props }) {
|
|
|
3011
3011
|
_vaul.Drawer.Overlay,
|
|
3012
3012
|
{
|
|
3013
3013
|
"data-slot": "drawer-overlay",
|
|
3014
|
-
className:
|
|
3014
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3015
3015
|
"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",
|
|
3016
3016
|
className
|
|
3017
3017
|
),
|
|
@@ -3027,7 +3027,7 @@ function DrawerContent({ className, children, ...props }) {
|
|
|
3027
3027
|
_vaul.Drawer.Content,
|
|
3028
3028
|
{
|
|
3029
3029
|
"data-slot": "drawer-content",
|
|
3030
|
-
className:
|
|
3030
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3031
3031
|
"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",
|
|
3032
3032
|
className
|
|
3033
3033
|
),
|
|
@@ -3046,7 +3046,7 @@ function DrawerHeader({ className, ...props }) {
|
|
|
3046
3046
|
"div",
|
|
3047
3047
|
{
|
|
3048
3048
|
"data-slot": "drawer-header",
|
|
3049
|
-
className:
|
|
3049
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3050
3050
|
"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",
|
|
3051
3051
|
className
|
|
3052
3052
|
),
|
|
@@ -3056,7 +3056,7 @@ function DrawerHeader({ className, ...props }) {
|
|
|
3056
3056
|
}
|
|
3057
3057
|
_chunk7QVYU63Ejs.__name.call(void 0, DrawerHeader, "DrawerHeader");
|
|
3058
3058
|
function DrawerFooter({ className, ...props }) {
|
|
3059
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "drawer-footer", className:
|
|
3059
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "drawer-footer", className: _chunkULHMVHDSjs.cn.call(void 0, "gap-2 p-4 mt-auto flex flex-col", className), ...props });
|
|
3060
3060
|
}
|
|
3061
3061
|
_chunk7QVYU63Ejs.__name.call(void 0, DrawerFooter, "DrawerFooter");
|
|
3062
3062
|
function DrawerTitle({ className, ...props }) {
|
|
@@ -3064,7 +3064,7 @@ function DrawerTitle({ className, ...props }) {
|
|
|
3064
3064
|
_vaul.Drawer.Title,
|
|
3065
3065
|
{
|
|
3066
3066
|
"data-slot": "drawer-title",
|
|
3067
|
-
className:
|
|
3067
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "text-foreground text-sm font-medium", className),
|
|
3068
3068
|
...props
|
|
3069
3069
|
}
|
|
3070
3070
|
);
|
|
@@ -3075,7 +3075,7 @@ function DrawerDescription({ className, ...props }) {
|
|
|
3075
3075
|
_vaul.Drawer.Description,
|
|
3076
3076
|
{
|
|
3077
3077
|
"data-slot": "drawer-description",
|
|
3078
|
-
className:
|
|
3078
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
|
|
3079
3079
|
...props
|
|
3080
3080
|
}
|
|
3081
3081
|
);
|
|
@@ -3118,7 +3118,7 @@ function DropdownMenuContent({
|
|
|
3118
3118
|
_menu.Menu.Popup,
|
|
3119
3119
|
{
|
|
3120
3120
|
"data-slot": "dropdown-menu-content",
|
|
3121
|
-
className:
|
|
3121
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3122
3122
|
"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",
|
|
3123
3123
|
className
|
|
3124
3124
|
),
|
|
@@ -3143,7 +3143,7 @@ function DropdownMenuLabel({
|
|
|
3143
3143
|
{
|
|
3144
3144
|
"data-slot": "dropdown-menu-label",
|
|
3145
3145
|
"data-inset": inset,
|
|
3146
|
-
className:
|
|
3146
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
|
|
3147
3147
|
...props
|
|
3148
3148
|
}
|
|
3149
3149
|
);
|
|
@@ -3161,7 +3161,7 @@ function DropdownMenuItem({
|
|
|
3161
3161
|
"data-slot": "dropdown-menu-item",
|
|
3162
3162
|
"data-inset": inset,
|
|
3163
3163
|
"data-variant": variant,
|
|
3164
|
-
className:
|
|
3164
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3165
3165
|
"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",
|
|
3166
3166
|
className
|
|
3167
3167
|
),
|
|
@@ -3185,7 +3185,7 @@ function DropdownMenuSubTrigger({
|
|
|
3185
3185
|
{
|
|
3186
3186
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
3187
3187
|
"data-inset": inset,
|
|
3188
|
-
className:
|
|
3188
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3189
3189
|
"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",
|
|
3190
3190
|
className
|
|
3191
3191
|
),
|
|
@@ -3210,7 +3210,7 @@ function DropdownMenuSubContent({
|
|
|
3210
3210
|
DropdownMenuContent,
|
|
3211
3211
|
{
|
|
3212
3212
|
"data-slot": "dropdown-menu-sub-content",
|
|
3213
|
-
className:
|
|
3213
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3214
3214
|
"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",
|
|
3215
3215
|
className
|
|
3216
3216
|
),
|
|
@@ -3228,7 +3228,7 @@ function DropdownMenuCheckboxItem({ className, children, checked, ...props }) {
|
|
|
3228
3228
|
_menu.Menu.CheckboxItem,
|
|
3229
3229
|
{
|
|
3230
3230
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
3231
|
-
className:
|
|
3231
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3232
3232
|
"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",
|
|
3233
3233
|
className
|
|
3234
3234
|
),
|
|
@@ -3258,7 +3258,7 @@ function DropdownMenuRadioItem({ className, children, ...props }) {
|
|
|
3258
3258
|
_menu.Menu.RadioItem,
|
|
3259
3259
|
{
|
|
3260
3260
|
"data-slot": "dropdown-menu-radio-item",
|
|
3261
|
-
className:
|
|
3261
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3262
3262
|
"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",
|
|
3263
3263
|
className
|
|
3264
3264
|
),
|
|
@@ -3283,7 +3283,7 @@ function DropdownMenuSeparator({ className, ...props }) {
|
|
|
3283
3283
|
_menu.Menu.Separator,
|
|
3284
3284
|
{
|
|
3285
3285
|
"data-slot": "dropdown-menu-separator",
|
|
3286
|
-
className:
|
|
3286
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
3287
3287
|
...props
|
|
3288
3288
|
}
|
|
3289
3289
|
);
|
|
@@ -3294,7 +3294,7 @@ function DropdownMenuShortcut({ className, ...props }) {
|
|
|
3294
3294
|
"span",
|
|
3295
3295
|
{
|
|
3296
3296
|
"data-slot": "dropdown-menu-shortcut",
|
|
3297
|
-
className:
|
|
3297
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3298
3298
|
"text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest",
|
|
3299
3299
|
className
|
|
3300
3300
|
),
|
|
@@ -3315,7 +3315,7 @@ function Label({ className, ...props }) {
|
|
|
3315
3315
|
"label",
|
|
3316
3316
|
{
|
|
3317
3317
|
"data-slot": "label",
|
|
3318
|
-
className:
|
|
3318
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3319
3319
|
"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",
|
|
3320
3320
|
className
|
|
3321
3321
|
),
|
|
@@ -3334,7 +3334,7 @@ function Separator({ className, orientation = "horizontal", ...props }) {
|
|
|
3334
3334
|
{
|
|
3335
3335
|
"data-slot": "separator",
|
|
3336
3336
|
orientation,
|
|
3337
|
-
className:
|
|
3337
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3338
3338
|
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch",
|
|
3339
3339
|
className
|
|
3340
3340
|
),
|
|
@@ -3351,7 +3351,7 @@ function FieldSet({ className, ...props }) {
|
|
|
3351
3351
|
"fieldset",
|
|
3352
3352
|
{
|
|
3353
3353
|
"data-slot": "field-set",
|
|
3354
|
-
className:
|
|
3354
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3355
3355
|
"gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col",
|
|
3356
3356
|
className
|
|
3357
3357
|
),
|
|
@@ -3370,7 +3370,7 @@ function FieldLegend({
|
|
|
3370
3370
|
{
|
|
3371
3371
|
"data-slot": "field-legend",
|
|
3372
3372
|
"data-variant": variant,
|
|
3373
|
-
className:
|
|
3373
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "mb-2 font-medium data-[variant=label]:text-xs/relaxed data-[variant=legend]:text-sm", className),
|
|
3374
3374
|
...props
|
|
3375
3375
|
}
|
|
3376
3376
|
);
|
|
@@ -3381,7 +3381,7 @@ function FieldGroup({ className, ...props }) {
|
|
|
3381
3381
|
"div",
|
|
3382
3382
|
{
|
|
3383
3383
|
"data-slot": "field-group",
|
|
3384
|
-
className:
|
|
3384
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3385
3385
|
"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",
|
|
3386
3386
|
className
|
|
3387
3387
|
),
|
|
@@ -3413,7 +3413,7 @@ function Field({
|
|
|
3413
3413
|
role: "group",
|
|
3414
3414
|
"data-slot": "field",
|
|
3415
3415
|
"data-orientation": orientation,
|
|
3416
|
-
className:
|
|
3416
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, fieldVariants({ orientation }), className),
|
|
3417
3417
|
...props
|
|
3418
3418
|
}
|
|
3419
3419
|
);
|
|
@@ -3424,7 +3424,7 @@ function FieldContent({ className, ...props }) {
|
|
|
3424
3424
|
"div",
|
|
3425
3425
|
{
|
|
3426
3426
|
"data-slot": "field-content",
|
|
3427
|
-
className:
|
|
3427
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "gap-0.5 group/field-content flex flex-1 flex-col leading-snug", className),
|
|
3428
3428
|
...props
|
|
3429
3429
|
}
|
|
3430
3430
|
);
|
|
@@ -3435,7 +3435,7 @@ function FieldLabel({ className, ...props }) {
|
|
|
3435
3435
|
Label,
|
|
3436
3436
|
{
|
|
3437
3437
|
"data-slot": "field-label",
|
|
3438
|
-
className:
|
|
3438
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3439
3439
|
"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",
|
|
3440
3440
|
"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",
|
|
3441
3441
|
className
|
|
@@ -3450,7 +3450,7 @@ function FieldTitle({ className, ...props }) {
|
|
|
3450
3450
|
"div",
|
|
3451
3451
|
{
|
|
3452
3452
|
"data-slot": "field-label",
|
|
3453
|
-
className:
|
|
3453
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3454
3454
|
"gap-2 text-xs/relaxed font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center leading-snug",
|
|
3455
3455
|
className
|
|
3456
3456
|
),
|
|
@@ -3464,7 +3464,7 @@ function FieldDescription({ className, ...props }) {
|
|
|
3464
3464
|
"p",
|
|
3465
3465
|
{
|
|
3466
3466
|
"data-slot": "field-description",
|
|
3467
|
-
className:
|
|
3467
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3468
3468
|
"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",
|
|
3469
3469
|
"last:mt-0 nth-last-2:-mt-1",
|
|
3470
3470
|
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
@@ -3485,7 +3485,7 @@ function FieldSeparator({
|
|
|
3485
3485
|
{
|
|
3486
3486
|
"data-slot": "field-separator",
|
|
3487
3487
|
"data-content": !!children,
|
|
3488
|
-
className:
|
|
3488
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "-my-2 h-5 text-xs/relaxed group-data-[variant=outline]/field-group:-mb-2 relative", className),
|
|
3489
3489
|
...props,
|
|
3490
3490
|
children: [
|
|
3491
3491
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, { className: "absolute inset-0 top-1/2" }),
|
|
@@ -3529,7 +3529,7 @@ function FieldError({
|
|
|
3529
3529
|
{
|
|
3530
3530
|
role: "alert",
|
|
3531
3531
|
"data-slot": "field-error",
|
|
3532
|
-
className:
|
|
3532
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "text-destructive text-xs/relaxed font-normal", className),
|
|
3533
3533
|
...props,
|
|
3534
3534
|
children: content
|
|
3535
3535
|
}
|
|
@@ -3572,7 +3572,7 @@ function HoverCardContent({
|
|
|
3572
3572
|
_previewcard.PreviewCard.Popup,
|
|
3573
3573
|
{
|
|
3574
3574
|
"data-slot": "hover-card-content",
|
|
3575
|
-
className:
|
|
3575
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3576
3576
|
"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",
|
|
3577
3577
|
className
|
|
3578
3578
|
),
|
|
@@ -3598,9 +3598,9 @@ function InputOTP({
|
|
|
3598
3598
|
_inputotp.OTPInput,
|
|
3599
3599
|
{
|
|
3600
3600
|
"data-slot": "input-otp",
|
|
3601
|
-
containerClassName:
|
|
3601
|
+
containerClassName: _chunkULHMVHDSjs.cn.call(void 0, "cn-input-otp flex items-center has-disabled:opacity-50", containerClassName),
|
|
3602
3602
|
spellCheck: false,
|
|
3603
|
-
className:
|
|
3603
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "disabled:cursor-not-allowed", className),
|
|
3604
3604
|
...props
|
|
3605
3605
|
}
|
|
3606
3606
|
);
|
|
@@ -3611,7 +3611,7 @@ function InputOTPGroup({ className, ...props }) {
|
|
|
3611
3611
|
"div",
|
|
3612
3612
|
{
|
|
3613
3613
|
"data-slot": "input-otp-group",
|
|
3614
|
-
className:
|
|
3614
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3615
3615
|
"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",
|
|
3616
3616
|
className
|
|
3617
3617
|
),
|
|
@@ -3632,7 +3632,7 @@ function InputOTPSlot({
|
|
|
3632
3632
|
{
|
|
3633
3633
|
"data-slot": "input-otp-slot",
|
|
3634
3634
|
"data-active": isActive,
|
|
3635
|
-
className:
|
|
3635
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3636
3636
|
"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",
|
|
3637
3637
|
className
|
|
3638
3638
|
),
|
|
@@ -3673,7 +3673,7 @@ function NavigationMenu({
|
|
|
3673
3673
|
_navigationmenu.NavigationMenu.Root,
|
|
3674
3674
|
{
|
|
3675
3675
|
"data-slot": "navigation-menu",
|
|
3676
|
-
className:
|
|
3676
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3677
3677
|
"max-w-max group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
|
|
3678
3678
|
className
|
|
3679
3679
|
),
|
|
@@ -3691,14 +3691,14 @@ function NavigationMenuList({ className, ...props }) {
|
|
|
3691
3691
|
_navigationmenu.NavigationMenu.List,
|
|
3692
3692
|
{
|
|
3693
3693
|
"data-slot": "navigation-menu-list",
|
|
3694
|
-
className:
|
|
3694
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "gap-0 group flex flex-1 list-none items-center justify-center", className),
|
|
3695
3695
|
...props
|
|
3696
3696
|
}
|
|
3697
3697
|
);
|
|
3698
3698
|
}
|
|
3699
3699
|
_chunk7QVYU63Ejs.__name.call(void 0, NavigationMenuList, "NavigationMenuList");
|
|
3700
3700
|
function NavigationMenuItem({ className, ...props }) {
|
|
3701
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _navigationmenu.NavigationMenu.Item, { "data-slot": "navigation-menu-item", className:
|
|
3701
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _navigationmenu.NavigationMenu.Item, { "data-slot": "navigation-menu-item", className: _chunkULHMVHDSjs.cn.call(void 0, "relative", className), ...props });
|
|
3702
3702
|
}
|
|
3703
3703
|
_chunk7QVYU63Ejs.__name.call(void 0, NavigationMenuItem, "NavigationMenuItem");
|
|
3704
3704
|
var navigationMenuTriggerStyle = _classvarianceauthority.cva.call(void 0,
|
|
@@ -3709,7 +3709,7 @@ function NavigationMenuTrigger({ className, children, ...props }) {
|
|
|
3709
3709
|
_navigationmenu.NavigationMenu.Trigger,
|
|
3710
3710
|
{
|
|
3711
3711
|
"data-slot": "navigation-menu-trigger",
|
|
3712
|
-
className:
|
|
3712
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, navigationMenuTriggerStyle(), "group", className),
|
|
3713
3713
|
...props,
|
|
3714
3714
|
children: [
|
|
3715
3715
|
children,
|
|
@@ -3731,7 +3731,7 @@ function NavigationMenuContent({ className, ...props }) {
|
|
|
3731
3731
|
_navigationmenu.NavigationMenu.Content,
|
|
3732
3732
|
{
|
|
3733
3733
|
"data-slot": "navigation-menu-content",
|
|
3734
|
-
className:
|
|
3734
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3735
3735
|
"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",
|
|
3736
3736
|
className
|
|
3737
3737
|
),
|
|
@@ -3755,7 +3755,7 @@ function NavigationMenuPositioner({
|
|
|
3755
3755
|
sideOffset,
|
|
3756
3756
|
align,
|
|
3757
3757
|
alignOffset,
|
|
3758
|
-
className:
|
|
3758
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3759
3759
|
"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",
|
|
3760
3760
|
className
|
|
3761
3761
|
),
|
|
@@ -3770,7 +3770,7 @@ function NavigationMenuLink({ className, ...props }) {
|
|
|
3770
3770
|
_navigationmenu.NavigationMenu.Link,
|
|
3771
3771
|
{
|
|
3772
3772
|
"data-slot": "navigation-menu-link",
|
|
3773
|
-
className:
|
|
3773
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3774
3774
|
"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",
|
|
3775
3775
|
className
|
|
3776
3776
|
),
|
|
@@ -3787,7 +3787,7 @@ function NavigationMenuIndicator({
|
|
|
3787
3787
|
_navigationmenu.NavigationMenu.Icon,
|
|
3788
3788
|
{
|
|
3789
3789
|
"data-slot": "navigation-menu-indicator",
|
|
3790
|
-
className:
|
|
3790
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3791
3791
|
"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",
|
|
3792
3792
|
className
|
|
3793
3793
|
),
|
|
@@ -3829,7 +3829,7 @@ function PopoverContent({
|
|
|
3829
3829
|
_popover.Popover.Popup,
|
|
3830
3830
|
{
|
|
3831
3831
|
"data-slot": "popover-content",
|
|
3832
|
-
className:
|
|
3832
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3833
3833
|
"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",
|
|
3834
3834
|
className
|
|
3835
3835
|
),
|
|
@@ -3841,11 +3841,11 @@ function PopoverContent({
|
|
|
3841
3841
|
}
|
|
3842
3842
|
_chunk7QVYU63Ejs.__name.call(void 0, PopoverContent, "PopoverContent");
|
|
3843
3843
|
function PopoverHeader({ className, ...props }) {
|
|
3844
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "popover-header", className:
|
|
3844
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "popover-header", className: _chunkULHMVHDSjs.cn.call(void 0, "flex flex-col gap-1 text-xs", className), ...props });
|
|
3845
3845
|
}
|
|
3846
3846
|
_chunk7QVYU63Ejs.__name.call(void 0, PopoverHeader, "PopoverHeader");
|
|
3847
3847
|
function PopoverTitle({ className, ...props }) {
|
|
3848
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _popover.Popover.Title, { "data-slot": "popover-title", className:
|
|
3848
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _popover.Popover.Title, { "data-slot": "popover-title", className: _chunkULHMVHDSjs.cn.call(void 0, "text-sm font-medium", className), ...props });
|
|
3849
3849
|
}
|
|
3850
3850
|
_chunk7QVYU63Ejs.__name.call(void 0, PopoverTitle, "PopoverTitle");
|
|
3851
3851
|
function PopoverDescription({ className, ...props }) {
|
|
@@ -3853,7 +3853,7 @@ function PopoverDescription({ className, ...props }) {
|
|
|
3853
3853
|
_popover.Popover.Description,
|
|
3854
3854
|
{
|
|
3855
3855
|
"data-slot": "popover-description",
|
|
3856
|
-
className:
|
|
3856
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "text-muted-foreground", className),
|
|
3857
3857
|
...props
|
|
3858
3858
|
}
|
|
3859
3859
|
);
|
|
@@ -3869,7 +3869,7 @@ function Progress({ className, children, value, ...props }) {
|
|
|
3869
3869
|
{
|
|
3870
3870
|
value,
|
|
3871
3871
|
"data-slot": "progress",
|
|
3872
|
-
className:
|
|
3872
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "flex flex-wrap gap-3", className),
|
|
3873
3873
|
...props,
|
|
3874
3874
|
children: [
|
|
3875
3875
|
children,
|
|
@@ -3883,7 +3883,7 @@ function ProgressTrack({ className, ...props }) {
|
|
|
3883
3883
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3884
3884
|
_progress.Progress.Track,
|
|
3885
3885
|
{
|
|
3886
|
-
className:
|
|
3886
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "bg-muted h-1 rounded-md relative flex w-full items-center overflow-x-hidden", className),
|
|
3887
3887
|
"data-slot": "progress-track",
|
|
3888
3888
|
...props
|
|
3889
3889
|
}
|
|
@@ -3895,7 +3895,7 @@ function ProgressIndicator({ className, ...props }) {
|
|
|
3895
3895
|
_progress.Progress.Indicator,
|
|
3896
3896
|
{
|
|
3897
3897
|
"data-slot": "progress-indicator",
|
|
3898
|
-
className:
|
|
3898
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "bg-primary h-full transition-all", className),
|
|
3899
3899
|
...props
|
|
3900
3900
|
}
|
|
3901
3901
|
);
|
|
@@ -3905,7 +3905,7 @@ function ProgressLabel({ className, ...props }) {
|
|
|
3905
3905
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3906
3906
|
_progress.Progress.Label,
|
|
3907
3907
|
{
|
|
3908
|
-
className:
|
|
3908
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "text-xs/relaxed font-medium", className),
|
|
3909
3909
|
"data-slot": "progress-label",
|
|
3910
3910
|
...props
|
|
3911
3911
|
}
|
|
@@ -3916,7 +3916,7 @@ function ProgressValue({ className, ...props }) {
|
|
|
3916
3916
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3917
3917
|
_progress.Progress.Value,
|
|
3918
3918
|
{
|
|
3919
|
-
className:
|
|
3919
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "text-muted-foreground ml-auto text-xs/relaxed tabular-nums", className),
|
|
3920
3920
|
"data-slot": "progress-value",
|
|
3921
3921
|
...props
|
|
3922
3922
|
}
|
|
@@ -3930,7 +3930,7 @@ var _radiogroup = require('@base-ui/react/radio-group');
|
|
|
3930
3930
|
|
|
3931
3931
|
|
|
3932
3932
|
function RadioGroup({ className, ...props }) {
|
|
3933
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _radiogroup.RadioGroup, { "data-slot": "radio-group", className:
|
|
3933
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _radiogroup.RadioGroup, { "data-slot": "radio-group", className: _chunkULHMVHDSjs.cn.call(void 0, "grid gap-3 w-full", className), ...props });
|
|
3934
3934
|
}
|
|
3935
3935
|
_chunk7QVYU63Ejs.__name.call(void 0, RadioGroup, "RadioGroup");
|
|
3936
3936
|
function RadioGroupItem({ className, ...props }) {
|
|
@@ -3938,7 +3938,7 @@ function RadioGroupItem({ className, ...props }) {
|
|
|
3938
3938
|
_radio.Radio.Root,
|
|
3939
3939
|
{
|
|
3940
3940
|
"data-slot": "radio-group-item",
|
|
3941
|
-
className:
|
|
3941
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3942
3942
|
"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",
|
|
3943
3943
|
className
|
|
3944
3944
|
),
|
|
@@ -3965,7 +3965,7 @@ function ResizablePanelGroup({ className, ...props }) {
|
|
|
3965
3965
|
ResizablePrimitive.Group,
|
|
3966
3966
|
{
|
|
3967
3967
|
"data-slot": "resizable-panel-group",
|
|
3968
|
-
className:
|
|
3968
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3969
3969
|
"flex h-full w-full",
|
|
3970
3970
|
// v4 uses aria-orientation instead of data-panel-group-direction
|
|
3971
3971
|
"aria-[orientation=vertical]:flex-col",
|
|
@@ -3989,7 +3989,7 @@ function ResizableHandle({
|
|
|
3989
3989
|
ResizablePrimitive.Separator,
|
|
3990
3990
|
{
|
|
3991
3991
|
"data-slot": "resizable-handle",
|
|
3992
|
-
className:
|
|
3992
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
3993
3993
|
"bg-border relative flex items-center justify-center",
|
|
3994
3994
|
"focus-visible:ring-ring focus-visible:ring-1 focus-visible:ring-offset-1",
|
|
3995
3995
|
// v4: Separator aria-orientation is OPPOSITE of Group orientation
|
|
@@ -4016,7 +4016,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ResizableHandle, "ResizableHandle");
|
|
|
4016
4016
|
var _scrollarea = require('@base-ui/react/scroll-area');
|
|
4017
4017
|
|
|
4018
4018
|
function ScrollArea({ className, children, ...props }) {
|
|
4019
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _scrollarea.ScrollArea.Root, { "data-slot": "scroll-area", className:
|
|
4019
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _scrollarea.ScrollArea.Root, { "data-slot": "scroll-area", className: _chunkULHMVHDSjs.cn.call(void 0, "relative", className), ...props, children: [
|
|
4020
4020
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4021
4021
|
_scrollarea.ScrollArea.Viewport,
|
|
4022
4022
|
{
|
|
@@ -4037,7 +4037,7 @@ function ScrollBar({ className, orientation = "vertical", ...props }) {
|
|
|
4037
4037
|
"data-slot": "scroll-area-scrollbar",
|
|
4038
4038
|
"data-orientation": orientation,
|
|
4039
4039
|
orientation,
|
|
4040
|
-
className:
|
|
4040
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
4041
4041
|
"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",
|
|
4042
4042
|
className
|
|
4043
4043
|
),
|
|
@@ -4054,11 +4054,11 @@ var _select = require('@base-ui/react/select');
|
|
|
4054
4054
|
|
|
4055
4055
|
var Select = _select.Select.Root;
|
|
4056
4056
|
function SelectGroup({ className, ...props }) {
|
|
4057
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _select.Select.Group, { "data-slot": "select-group", className:
|
|
4057
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _select.Select.Group, { "data-slot": "select-group", className: _chunkULHMVHDSjs.cn.call(void 0, "scroll-my-1 p-1", className), ...props });
|
|
4058
4058
|
}
|
|
4059
4059
|
_chunk7QVYU63Ejs.__name.call(void 0, SelectGroup, "SelectGroup");
|
|
4060
4060
|
function SelectValue({ className, ...props }) {
|
|
4061
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _select.Select.Value, { "data-slot": "select-value", className:
|
|
4061
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _select.Select.Value, { "data-slot": "select-value", className: _chunkULHMVHDSjs.cn.call(void 0, "flex flex-1 text-left", className), ...props });
|
|
4062
4062
|
}
|
|
4063
4063
|
_chunk7QVYU63Ejs.__name.call(void 0, SelectValue, "SelectValue");
|
|
4064
4064
|
function SelectTrigger({
|
|
@@ -4072,7 +4072,7 @@ function SelectTrigger({
|
|
|
4072
4072
|
{
|
|
4073
4073
|
"data-slot": "select-trigger",
|
|
4074
4074
|
"data-size": size,
|
|
4075
|
-
className:
|
|
4075
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
4076
4076
|
"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",
|
|
4077
4077
|
className
|
|
4078
4078
|
),
|
|
@@ -4113,7 +4113,7 @@ function SelectContent({
|
|
|
4113
4113
|
_select.Select.Popup,
|
|
4114
4114
|
{
|
|
4115
4115
|
"data-slot": "select-content",
|
|
4116
|
-
className:
|
|
4116
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
4117
4117
|
"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",
|
|
4118
4118
|
className
|
|
4119
4119
|
),
|
|
@@ -4134,7 +4134,7 @@ function SelectLabel({ className, ...props }) {
|
|
|
4134
4134
|
_select.Select.GroupLabel,
|
|
4135
4135
|
{
|
|
4136
4136
|
"data-slot": "select-label",
|
|
4137
|
-
className:
|
|
4137
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs", className),
|
|
4138
4138
|
...props
|
|
4139
4139
|
}
|
|
4140
4140
|
);
|
|
@@ -4145,7 +4145,7 @@ function SelectItem({ className, children, ...props }) {
|
|
|
4145
4145
|
_select.Select.Item,
|
|
4146
4146
|
{
|
|
4147
4147
|
"data-slot": "select-item",
|
|
4148
|
-
className:
|
|
4148
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
4149
4149
|
"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",
|
|
4150
4150
|
className
|
|
4151
4151
|
),
|
|
@@ -4169,7 +4169,7 @@ function SelectSeparator({ className, ...props }) {
|
|
|
4169
4169
|
_select.Select.Separator,
|
|
4170
4170
|
{
|
|
4171
4171
|
"data-slot": "select-separator",
|
|
4172
|
-
className:
|
|
4172
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px pointer-events-none", className),
|
|
4173
4173
|
...props
|
|
4174
4174
|
}
|
|
4175
4175
|
);
|
|
@@ -4180,7 +4180,7 @@ function SelectScrollUpButton({ className, ...props }) {
|
|
|
4180
4180
|
_select.Select.ScrollUpArrow,
|
|
4181
4181
|
{
|
|
4182
4182
|
"data-slot": "select-scroll-up-button",
|
|
4183
|
-
className:
|
|
4183
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
4184
4184
|
"bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5 top-0 w-full",
|
|
4185
4185
|
className
|
|
4186
4186
|
),
|
|
@@ -4195,7 +4195,7 @@ function SelectScrollDownButton({ className, ...props }) {
|
|
|
4195
4195
|
_select.Select.ScrollDownArrow,
|
|
4196
4196
|
{
|
|
4197
4197
|
"data-slot": "select-scroll-down-button",
|
|
4198
|
-
className:
|
|
4198
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
4199
4199
|
"bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5 bottom-0 w-full",
|
|
4200
4200
|
className
|
|
4201
4201
|
),
|
|
@@ -4231,7 +4231,7 @@ function SheetOverlay({ className, ...props }) {
|
|
|
4231
4231
|
_dialog.Dialog.Backdrop,
|
|
4232
4232
|
{
|
|
4233
4233
|
"data-slot": "sheet-overlay",
|
|
4234
|
-
className:
|
|
4234
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
4235
4235
|
"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",
|
|
4236
4236
|
className
|
|
4237
4237
|
),
|
|
@@ -4254,7 +4254,7 @@ function SheetContent({
|
|
|
4254
4254
|
{
|
|
4255
4255
|
"data-slot": "sheet-content",
|
|
4256
4256
|
"data-side": side,
|
|
4257
|
-
className:
|
|
4257
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
4258
4258
|
"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",
|
|
4259
4259
|
className
|
|
4260
4260
|
),
|
|
@@ -4279,11 +4279,11 @@ function SheetContent({
|
|
|
4279
4279
|
}
|
|
4280
4280
|
_chunk7QVYU63Ejs.__name.call(void 0, SheetContent, "SheetContent");
|
|
4281
4281
|
function SheetHeader({ className, ...props }) {
|
|
4282
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "sheet-header", className:
|
|
4282
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "sheet-header", className: _chunkULHMVHDSjs.cn.call(void 0, "gap-1.5 p-6 flex flex-col", className), ...props });
|
|
4283
4283
|
}
|
|
4284
4284
|
_chunk7QVYU63Ejs.__name.call(void 0, SheetHeader, "SheetHeader");
|
|
4285
4285
|
function SheetFooter({ className, ...props }) {
|
|
4286
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "sheet-footer", className:
|
|
4286
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "sheet-footer", className: _chunkULHMVHDSjs.cn.call(void 0, "gap-2 p-6 mt-auto flex flex-col", className), ...props });
|
|
4287
4287
|
}
|
|
4288
4288
|
_chunk7QVYU63Ejs.__name.call(void 0, SheetFooter, "SheetFooter");
|
|
4289
4289
|
function SheetTitle({ className, ...props }) {
|
|
@@ -4291,7 +4291,7 @@ function SheetTitle({ className, ...props }) {
|
|
|
4291
4291
|
_dialog.Dialog.Title,
|
|
4292
4292
|
{
|
|
4293
4293
|
"data-slot": "sheet-title",
|
|
4294
|
-
className:
|
|
4294
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "text-foreground text-sm font-medium", className),
|
|
4295
4295
|
...props
|
|
4296
4296
|
}
|
|
4297
4297
|
);
|
|
@@ -4302,7 +4302,7 @@ function SheetDescription({ className, ...props }) {
|
|
|
4302
4302
|
_dialog.Dialog.Description,
|
|
4303
4303
|
{
|
|
4304
4304
|
"data-slot": "sheet-description",
|
|
4305
|
-
className:
|
|
4305
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
|
|
4306
4306
|
...props
|
|
4307
4307
|
}
|
|
4308
4308
|
);
|
|
@@ -4318,7 +4318,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, SheetDescription, "SheetDescription");
|
|
|
4318
4318
|
// src/shadcnui/ui/skeleton.tsx
|
|
4319
4319
|
|
|
4320
4320
|
function Skeleton({ className, ...props }) {
|
|
4321
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "skeleton", className:
|
|
4321
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "skeleton", className: _chunkULHMVHDSjs.cn.call(void 0, "bg-muted rounded-md animate-pulse", className), ...props });
|
|
4322
4322
|
}
|
|
4323
4323
|
_chunk7QVYU63Ejs.__name.call(void 0, Skeleton, "Skeleton");
|
|
4324
4324
|
|
|
@@ -4358,7 +4358,7 @@ function TooltipContent({
|
|
|
4358
4358
|
_tooltip.Tooltip.Popup,
|
|
4359
4359
|
{
|
|
4360
4360
|
"data-slot": "tooltip-content",
|
|
4361
|
-
className:
|
|
4361
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
4362
4362
|
"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)",
|
|
4363
4363
|
className
|
|
4364
4364
|
),
|
|
@@ -4401,7 +4401,7 @@ function SidebarProvider({
|
|
|
4401
4401
|
children,
|
|
4402
4402
|
...props
|
|
4403
4403
|
}) {
|
|
4404
|
-
const isMobile =
|
|
4404
|
+
const isMobile = _chunkULHMVHDSjs.useIsMobile.call(void 0, );
|
|
4405
4405
|
const [openMobile, setOpenMobile] = React7.useState(false);
|
|
4406
4406
|
const [_open, _setOpen] = React7.useState(defaultOpen);
|
|
4407
4407
|
const open = _nullishCoalesce(openProp, () => ( _open));
|
|
@@ -4452,7 +4452,7 @@ function SidebarProvider({
|
|
|
4452
4452
|
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
4453
4453
|
...style
|
|
4454
4454
|
},
|
|
4455
|
-
className:
|
|
4455
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", className),
|
|
4456
4456
|
...props,
|
|
4457
4457
|
children
|
|
4458
4458
|
}
|
|
@@ -4473,7 +4473,7 @@ function Sidebar({
|
|
|
4473
4473
|
"div",
|
|
4474
4474
|
{
|
|
4475
4475
|
"data-slot": "sidebar",
|
|
4476
|
-
className:
|
|
4476
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", className),
|
|
4477
4477
|
...props,
|
|
4478
4478
|
children
|
|
4479
4479
|
}
|
|
@@ -4515,7 +4515,7 @@ function Sidebar({
|
|
|
4515
4515
|
"div",
|
|
4516
4516
|
{
|
|
4517
4517
|
"data-slot": "sidebar-gap",
|
|
4518
|
-
className:
|
|
4518
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
4519
4519
|
"transition-[width] duration-200 ease-linear relative w-(--sidebar-width) bg-transparent",
|
|
4520
4520
|
"group-data-[collapsible=offExamples]:w-0",
|
|
4521
4521
|
"group-data-[side=right]:rotate-180",
|
|
@@ -4527,7 +4527,7 @@ function Sidebar({
|
|
|
4527
4527
|
"div",
|
|
4528
4528
|
{
|
|
4529
4529
|
"data-slot": "sidebar-container",
|
|
4530
|
-
className:
|
|
4530
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
4531
4531
|
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
4532
4532
|
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)]",
|
|
4533
4533
|
// Adjust the padding for floating and inset variants.
|
|
@@ -4560,7 +4560,7 @@ function SidebarTrigger({ className, onClick, ...props }) {
|
|
|
4560
4560
|
"data-slot": "sidebar-trigger",
|
|
4561
4561
|
variant: "ghost",
|
|
4562
4562
|
size: "icon-sm",
|
|
4563
|
-
className:
|
|
4563
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, className),
|
|
4564
4564
|
onClick: (event) => {
|
|
4565
4565
|
_optionalChain([onClick, 'optionalCall', _97 => _97(event)]);
|
|
4566
4566
|
toggleSidebar();
|
|
@@ -4585,7 +4585,7 @@ function SidebarRail({ className, ...props }) {
|
|
|
4585
4585
|
tabIndex: -1,
|
|
4586
4586
|
onClick: toggleSidebar,
|
|
4587
4587
|
title: "Toggle Sidebar",
|
|
4588
|
-
className:
|
|
4588
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
4589
4589
|
"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",
|
|
4590
4590
|
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
4591
4591
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
@@ -4604,7 +4604,7 @@ function SidebarInset({ className, ...props }) {
|
|
|
4604
4604
|
"main",
|
|
4605
4605
|
{
|
|
4606
4606
|
"data-slot": "sidebar-inset",
|
|
4607
|
-
className:
|
|
4607
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
4608
4608
|
"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",
|
|
4609
4609
|
className
|
|
4610
4610
|
),
|
|
@@ -4619,7 +4619,7 @@ function SidebarInput({ className, ...props }) {
|
|
|
4619
4619
|
{
|
|
4620
4620
|
"data-slot": "sidebar-input",
|
|
4621
4621
|
"data-sidebar": "input",
|
|
4622
|
-
className:
|
|
4622
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "bg-muted/20 dark:bg-muted/30 border-input h-8 w-full", className),
|
|
4623
4623
|
...props
|
|
4624
4624
|
}
|
|
4625
4625
|
);
|
|
@@ -4631,7 +4631,7 @@ function SidebarHeader({ className, ...props }) {
|
|
|
4631
4631
|
{
|
|
4632
4632
|
"data-slot": "sidebar-header",
|
|
4633
4633
|
"data-sidebar": "header",
|
|
4634
|
-
className:
|
|
4634
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
|
|
4635
4635
|
...props
|
|
4636
4636
|
}
|
|
4637
4637
|
);
|
|
@@ -4643,7 +4643,7 @@ function SidebarFooter({ className, ...props }) {
|
|
|
4643
4643
|
{
|
|
4644
4644
|
"data-slot": "sidebar-footer",
|
|
4645
4645
|
"data-sidebar": "footer",
|
|
4646
|
-
className:
|
|
4646
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
|
|
4647
4647
|
...props
|
|
4648
4648
|
}
|
|
4649
4649
|
);
|
|
@@ -4655,7 +4655,7 @@ function SidebarSeparator({ className, ...props }) {
|
|
|
4655
4655
|
{
|
|
4656
4656
|
"data-slot": "sidebar-separator",
|
|
4657
4657
|
"data-sidebar": "separator",
|
|
4658
|
-
className:
|
|
4658
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "bg-sidebar-border mx-2 w-auto", className),
|
|
4659
4659
|
...props
|
|
4660
4660
|
}
|
|
4661
4661
|
);
|
|
@@ -4667,7 +4667,7 @@ function SidebarContent({ className, ...props }) {
|
|
|
4667
4667
|
{
|
|
4668
4668
|
"data-slot": "sidebar-content",
|
|
4669
4669
|
"data-sidebar": "content",
|
|
4670
|
-
className:
|
|
4670
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
4671
4671
|
"no-scrollbar gap-0 flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
4672
4672
|
className
|
|
4673
4673
|
),
|
|
@@ -4682,7 +4682,7 @@ function SidebarGroup({ className, ...props }) {
|
|
|
4682
4682
|
{
|
|
4683
4683
|
"data-slot": "sidebar-group",
|
|
4684
4684
|
"data-sidebar": "group",
|
|
4685
|
-
className:
|
|
4685
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "px-2 py-1 relative flex w-full min-w-0 flex-col", className),
|
|
4686
4686
|
...props
|
|
4687
4687
|
}
|
|
4688
4688
|
);
|
|
@@ -4697,7 +4697,7 @@ function SidebarGroupLabel({
|
|
|
4697
4697
|
defaultTagName: "div",
|
|
4698
4698
|
props: _mergeprops.mergeProps.call(void 0,
|
|
4699
4699
|
{
|
|
4700
|
-
className:
|
|
4700
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
4701
4701
|
"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",
|
|
4702
4702
|
className
|
|
4703
4703
|
)
|
|
@@ -4721,7 +4721,7 @@ function SidebarGroupAction({
|
|
|
4721
4721
|
defaultTagName: "button",
|
|
4722
4722
|
props: _mergeprops.mergeProps.call(void 0,
|
|
4723
4723
|
{
|
|
4724
|
-
className:
|
|
4724
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
4725
4725
|
"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",
|
|
4726
4726
|
className
|
|
4727
4727
|
)
|
|
@@ -4742,7 +4742,7 @@ function SidebarGroupContent({ className, ...props }) {
|
|
|
4742
4742
|
{
|
|
4743
4743
|
"data-slot": "sidebar-group-content",
|
|
4744
4744
|
"data-sidebar": "group-content",
|
|
4745
|
-
className:
|
|
4745
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "text-xs w-full", className),
|
|
4746
4746
|
...props
|
|
4747
4747
|
}
|
|
4748
4748
|
);
|
|
@@ -4754,7 +4754,7 @@ function SidebarMenu({ className, ...props }) {
|
|
|
4754
4754
|
{
|
|
4755
4755
|
"data-slot": "sidebar-menu",
|
|
4756
4756
|
"data-sidebar": "menu",
|
|
4757
|
-
className:
|
|
4757
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "gap-px flex w-full min-w-0 flex-col", className),
|
|
4758
4758
|
...props
|
|
4759
4759
|
}
|
|
4760
4760
|
);
|
|
@@ -4766,7 +4766,7 @@ function SidebarMenuItem({ className, ...props }) {
|
|
|
4766
4766
|
{
|
|
4767
4767
|
"data-slot": "sidebar-menu-item",
|
|
4768
4768
|
"data-sidebar": "menu-item",
|
|
4769
|
-
className:
|
|
4769
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "group/menu-item relative", className),
|
|
4770
4770
|
...props
|
|
4771
4771
|
}
|
|
4772
4772
|
);
|
|
@@ -4806,7 +4806,7 @@ function SidebarMenuButton({
|
|
|
4806
4806
|
defaultTagName: "button",
|
|
4807
4807
|
props: _mergeprops.mergeProps.call(void 0,
|
|
4808
4808
|
{
|
|
4809
|
-
className:
|
|
4809
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, sidebarMenuButtonVariants({ variant, size }), className)
|
|
4810
4810
|
},
|
|
4811
4811
|
props
|
|
4812
4812
|
),
|
|
@@ -4842,7 +4842,7 @@ function SidebarMenuAction({
|
|
|
4842
4842
|
defaultTagName: "button",
|
|
4843
4843
|
props: _mergeprops.mergeProps.call(void 0,
|
|
4844
4844
|
{
|
|
4845
|
-
className:
|
|
4845
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
4846
4846
|
"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",
|
|
4847
4847
|
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",
|
|
4848
4848
|
className
|
|
@@ -4864,7 +4864,7 @@ function SidebarMenuBadge({ className, ...props }) {
|
|
|
4864
4864
|
{
|
|
4865
4865
|
"data-slot": "sidebar-menu-badge",
|
|
4866
4866
|
"data-sidebar": "menu-badge",
|
|
4867
|
-
className:
|
|
4867
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
4868
4868
|
"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",
|
|
4869
4869
|
className
|
|
4870
4870
|
),
|
|
@@ -4886,7 +4886,7 @@ function SidebarMenuSkeleton({
|
|
|
4886
4886
|
{
|
|
4887
4887
|
"data-slot": "sidebar-menu-skeleton",
|
|
4888
4888
|
"data-sidebar": "menu-skeleton",
|
|
4889
|
-
className:
|
|
4889
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "h-8 gap-2 rounded-md px-2 flex items-center", className),
|
|
4890
4890
|
...props,
|
|
4891
4891
|
children: [
|
|
4892
4892
|
showIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" }),
|
|
@@ -4911,7 +4911,7 @@ function SidebarMenuSub({ className, ...props }) {
|
|
|
4911
4911
|
{
|
|
4912
4912
|
"data-slot": "sidebar-menu-sub",
|
|
4913
4913
|
"data-sidebar": "menu-sub",
|
|
4914
|
-
className:
|
|
4914
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
4915
4915
|
"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",
|
|
4916
4916
|
className
|
|
4917
4917
|
),
|
|
@@ -4926,7 +4926,7 @@ function SidebarMenuSubItem({ className, ...props }) {
|
|
|
4926
4926
|
{
|
|
4927
4927
|
"data-slot": "sidebar-menu-sub-item",
|
|
4928
4928
|
"data-sidebar": "menu-sub-item",
|
|
4929
|
-
className:
|
|
4929
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "group/menu-sub-item relative", className),
|
|
4930
4930
|
...props
|
|
4931
4931
|
}
|
|
4932
4932
|
);
|
|
@@ -4943,7 +4943,7 @@ function SidebarMenuSubButton({
|
|
|
4943
4943
|
defaultTagName: "a",
|
|
4944
4944
|
props: _mergeprops.mergeProps.call(void 0,
|
|
4945
4945
|
{
|
|
4946
|
-
className:
|
|
4946
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
4947
4947
|
"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",
|
|
4948
4948
|
className
|
|
4949
4949
|
)
|
|
@@ -4984,7 +4984,7 @@ function Slider({ className, defaultValue, value, min = 0, max = 100, ...props }
|
|
|
4984
4984
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4985
4985
|
_slider.Slider.Control,
|
|
4986
4986
|
{
|
|
4987
|
-
className:
|
|
4987
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
4988
4988
|
"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",
|
|
4989
4989
|
className
|
|
4990
4990
|
),
|
|
@@ -5068,7 +5068,7 @@ function Switch({
|
|
|
5068
5068
|
{
|
|
5069
5069
|
"data-slot": "switch",
|
|
5070
5070
|
"data-size": size,
|
|
5071
|
-
className:
|
|
5071
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
5072
5072
|
"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",
|
|
5073
5073
|
className
|
|
5074
5074
|
),
|
|
@@ -5077,7 +5077,7 @@ function Switch({
|
|
|
5077
5077
|
_switch.Switch.Thumb,
|
|
5078
5078
|
{
|
|
5079
5079
|
"data-slot": "switch-thumb",
|
|
5080
|
-
className:
|
|
5080
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
5081
5081
|
"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",
|
|
5082
5082
|
children && "flex items-center justify-center"
|
|
5083
5083
|
),
|
|
@@ -5092,15 +5092,15 @@ _chunk7QVYU63Ejs.__name.call(void 0, Switch, "Switch");
|
|
|
5092
5092
|
// src/shadcnui/ui/table.tsx
|
|
5093
5093
|
|
|
5094
5094
|
function Table({ className, ...props }) {
|
|
5095
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "table-container", className: "relative w-full overflow-x-clip", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "table", { "data-slot": "table", className:
|
|
5095
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "table-container", className: "relative w-full overflow-x-clip", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "table", { "data-slot": "table", className: _chunkULHMVHDSjs.cn.call(void 0, "w-full caption-bottom text-xs", className), ...props }) });
|
|
5096
5096
|
}
|
|
5097
5097
|
_chunk7QVYU63Ejs.__name.call(void 0, Table, "Table");
|
|
5098
5098
|
function TableHeader({ className, ...props }) {
|
|
5099
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { "data-slot": "table-header", className:
|
|
5099
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { "data-slot": "table-header", className: _chunkULHMVHDSjs.cn.call(void 0, "[&_tr]:border-b", className), ...props });
|
|
5100
5100
|
}
|
|
5101
5101
|
_chunk7QVYU63Ejs.__name.call(void 0, TableHeader, "TableHeader");
|
|
5102
5102
|
function TableBody({ className, ...props }) {
|
|
5103
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { "data-slot": "table-body", className:
|
|
5103
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { "data-slot": "table-body", className: _chunkULHMVHDSjs.cn.call(void 0, "[&_tr:last-child]:border-0", className), ...props });
|
|
5104
5104
|
}
|
|
5105
5105
|
_chunk7QVYU63Ejs.__name.call(void 0, TableBody, "TableBody");
|
|
5106
5106
|
function TableFooter({ className, ...props }) {
|
|
@@ -5108,7 +5108,7 @@ function TableFooter({ className, ...props }) {
|
|
|
5108
5108
|
"tfoot",
|
|
5109
5109
|
{
|
|
5110
5110
|
"data-slot": "table-footer",
|
|
5111
|
-
className:
|
|
5111
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", className),
|
|
5112
5112
|
...props
|
|
5113
5113
|
}
|
|
5114
5114
|
);
|
|
@@ -5119,7 +5119,7 @@ function TableRow({ className, ...props }) {
|
|
|
5119
5119
|
"tr",
|
|
5120
5120
|
{
|
|
5121
5121
|
"data-slot": "table-row",
|
|
5122
|
-
className:
|
|
5122
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", className),
|
|
5123
5123
|
...props
|
|
5124
5124
|
}
|
|
5125
5125
|
);
|
|
@@ -5130,7 +5130,7 @@ function TableHead({ className, ...props }) {
|
|
|
5130
5130
|
"th",
|
|
5131
5131
|
{
|
|
5132
5132
|
"data-slot": "table-head",
|
|
5133
|
-
className:
|
|
5133
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
5134
5134
|
"text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0",
|
|
5135
5135
|
className
|
|
5136
5136
|
),
|
|
@@ -5144,14 +5144,14 @@ function TableCell({ className, ...props }) {
|
|
|
5144
5144
|
"td",
|
|
5145
5145
|
{
|
|
5146
5146
|
"data-slot": "table-cell",
|
|
5147
|
-
className:
|
|
5147
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0", className),
|
|
5148
5148
|
...props
|
|
5149
5149
|
}
|
|
5150
5150
|
);
|
|
5151
5151
|
}
|
|
5152
5152
|
_chunk7QVYU63Ejs.__name.call(void 0, TableCell, "TableCell");
|
|
5153
5153
|
function TableCaption({ className, ...props }) {
|
|
5154
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "caption", { "data-slot": "table-caption", className:
|
|
5154
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "caption", { "data-slot": "table-caption", className: _chunkULHMVHDSjs.cn.call(void 0, "text-muted-foreground mt-4 text-xs", className), ...props });
|
|
5155
5155
|
}
|
|
5156
5156
|
_chunk7QVYU63Ejs.__name.call(void 0, TableCaption, "TableCaption");
|
|
5157
5157
|
|
|
@@ -5165,7 +5165,7 @@ function Tabs({ className, orientation = "horizontal", ...props }) {
|
|
|
5165
5165
|
{
|
|
5166
5166
|
"data-slot": "tabs",
|
|
5167
5167
|
"data-orientation": orientation,
|
|
5168
|
-
className:
|
|
5168
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "gap-2 group/tabs flex data-[orientation=horizontal]:flex-col", className),
|
|
5169
5169
|
...props
|
|
5170
5170
|
}
|
|
5171
5171
|
);
|
|
@@ -5195,7 +5195,7 @@ function TabsList({
|
|
|
5195
5195
|
{
|
|
5196
5196
|
"data-slot": "tabs-list",
|
|
5197
5197
|
"data-variant": variant,
|
|
5198
|
-
className:
|
|
5198
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, tabsListVariants({ variant }), className),
|
|
5199
5199
|
...props
|
|
5200
5200
|
}
|
|
5201
5201
|
);
|
|
@@ -5206,7 +5206,7 @@ function TabsTrigger({ className, ...props }) {
|
|
|
5206
5206
|
_tabs.Tabs.Tab,
|
|
5207
5207
|
{
|
|
5208
5208
|
"data-slot": "tabs-trigger",
|
|
5209
|
-
className:
|
|
5209
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
5210
5210
|
"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",
|
|
5211
5211
|
"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",
|
|
5212
5212
|
"data-active:bg-background dark:data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 data-active:text-foreground",
|
|
@@ -5223,7 +5223,7 @@ function TabsContent({ className, ...props }) {
|
|
|
5223
5223
|
_tabs.Tabs.Panel,
|
|
5224
5224
|
{
|
|
5225
5225
|
"data-slot": "tabs-content",
|
|
5226
|
-
className:
|
|
5226
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "text-xs/relaxed flex-1 outline-none", className),
|
|
5227
5227
|
...props
|
|
5228
5228
|
}
|
|
5229
5229
|
);
|
|
@@ -5260,7 +5260,7 @@ function Toggle({
|
|
|
5260
5260
|
size = "default",
|
|
5261
5261
|
...props
|
|
5262
5262
|
}) {
|
|
5263
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _toggle.Toggle, { "data-slot": "toggle", className:
|
|
5263
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _toggle.Toggle, { "data-slot": "toggle", className: _chunkULHMVHDSjs.cn.call(void 0, toggleVariants({ variant, size, className })), ...props });
|
|
5264
5264
|
}
|
|
5265
5265
|
_chunk7QVYU63Ejs.__name.call(void 0, Toggle, "Toggle");
|
|
5266
5266
|
|
|
@@ -5726,7 +5726,7 @@ var KanbanBoard = React9.forwardRef((props, forwardedRef) => {
|
|
|
5726
5726
|
"data-slot": "kanban-board",
|
|
5727
5727
|
...boardProps,
|
|
5728
5728
|
ref: forwardedRef,
|
|
5729
|
-
className:
|
|
5729
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
5730
5730
|
"flex size-full gap-4",
|
|
5731
5731
|
context.orientation === "horizontal" ? "flex-row" : "flex-col",
|
|
5732
5732
|
className
|
|
@@ -5765,7 +5765,7 @@ var KanbanColumn = React9.forwardRef((props, forwardedRef) => {
|
|
|
5765
5765
|
disabled,
|
|
5766
5766
|
animateLayoutChanges
|
|
5767
5767
|
});
|
|
5768
|
-
const composedRef =
|
|
5768
|
+
const composedRef = _chunkULHMVHDSjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
5769
5769
|
if (disabled) return;
|
|
5770
5770
|
setNodeRef(node);
|
|
5771
5771
|
});
|
|
@@ -5809,7 +5809,7 @@ var KanbanColumn = React9.forwardRef((props, forwardedRef) => {
|
|
|
5809
5809
|
...asHandle && !disabled ? listeners : {},
|
|
5810
5810
|
ref: composedRef,
|
|
5811
5811
|
style: composedStyle,
|
|
5812
|
-
className:
|
|
5812
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
5813
5813
|
"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",
|
|
5814
5814
|
{
|
|
5815
5815
|
"touch-none select-none": asHandle,
|
|
@@ -5832,7 +5832,7 @@ var KanbanColumnHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
5832
5832
|
const context = useKanbanContext(COLUMN_NAME);
|
|
5833
5833
|
const columnContext = useKanbanColumnContext(COLUMN_HANDLE_NAME);
|
|
5834
5834
|
const isDisabled = _nullishCoalesce(disabled, () => ( columnContext.disabled));
|
|
5835
|
-
const composedRef =
|
|
5835
|
+
const composedRef = _chunkULHMVHDSjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
5836
5836
|
if (isDisabled) return;
|
|
5837
5837
|
columnContext.setActivatorNodeRef(node);
|
|
5838
5838
|
});
|
|
@@ -5849,7 +5849,7 @@ var KanbanColumnHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
5849
5849
|
...isDisabled ? {} : columnContext.attributes,
|
|
5850
5850
|
...isDisabled ? {} : columnContext.listeners,
|
|
5851
5851
|
ref: composedRef,
|
|
5852
|
-
className:
|
|
5852
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
5853
5853
|
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
5854
5854
|
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
5855
5855
|
className
|
|
@@ -5885,7 +5885,7 @@ var KanbanItem = React9.forwardRef((props, forwardedRef) => {
|
|
|
5885
5885
|
if (value === "") {
|
|
5886
5886
|
throw new Error(`\`${ITEM_NAME}\` value cannot be an empty string`);
|
|
5887
5887
|
}
|
|
5888
|
-
const composedRef =
|
|
5888
|
+
const composedRef = _chunkULHMVHDSjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
5889
5889
|
if (disabled) return;
|
|
5890
5890
|
setNodeRef(node);
|
|
5891
5891
|
});
|
|
@@ -5920,7 +5920,7 @@ var KanbanItem = React9.forwardRef((props, forwardedRef) => {
|
|
|
5920
5920
|
...asHandle && !disabled ? listeners : {},
|
|
5921
5921
|
ref: composedRef,
|
|
5922
5922
|
style: composedStyle,
|
|
5923
|
-
className:
|
|
5923
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
5924
5924
|
"focus-visible:ring-ring focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden",
|
|
5925
5925
|
{
|
|
5926
5926
|
"touch-none select-none": asHandle,
|
|
@@ -5941,7 +5941,7 @@ var KanbanItemHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
5941
5941
|
const context = useKanbanContext(ITEM_HANDLE_NAME);
|
|
5942
5942
|
const itemContext = useKanbanItemContext(ITEM_HANDLE_NAME);
|
|
5943
5943
|
const isDisabled = _nullishCoalesce(disabled, () => ( itemContext.disabled));
|
|
5944
|
-
const composedRef =
|
|
5944
|
+
const composedRef = _chunkULHMVHDSjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
5945
5945
|
if (isDisabled) return;
|
|
5946
5946
|
itemContext.setActivatorNodeRef(node);
|
|
5947
5947
|
});
|
|
@@ -5958,7 +5958,7 @@ var KanbanItemHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
5958
5958
|
...isDisabled ? {} : itemContext.attributes,
|
|
5959
5959
|
...isDisabled ? {} : itemContext.listeners,
|
|
5960
5960
|
ref: composedRef,
|
|
5961
|
-
className:
|
|
5961
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
5962
5962
|
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
5963
5963
|
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
5964
5964
|
className
|
|
@@ -5993,7 +5993,7 @@ function KanbanOverlay(props) {
|
|
|
5993
5993
|
{
|
|
5994
5994
|
dropAnimation,
|
|
5995
5995
|
modifiers: context.modifiers,
|
|
5996
|
-
className:
|
|
5996
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, !context.flatCursor && "cursor-grabbing"),
|
|
5997
5997
|
...overlayProps,
|
|
5998
5998
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, KanbanOverlayContext.Provider, { value: true, children: context.activeId && children ? typeof children === "function" ? children({
|
|
5999
5999
|
value: context.activeId,
|
|
@@ -6010,8 +6010,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, KanbanOverlay, "KanbanOverlay");
|
|
|
6010
6010
|
|
|
6011
6011
|
|
|
6012
6012
|
var Link = React10.forwardRef(({ className, href, children, ...props }, ref) => {
|
|
6013
|
-
const NextIntlLink =
|
|
6014
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NextIntlLink, { prefetch: false, ref, href, className:
|
|
6013
|
+
const NextIntlLink = _chunkV63TFESUjs.getI18nLink.call(void 0, );
|
|
6014
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NextIntlLink, { prefetch: false, ref, href, className: _chunkULHMVHDSjs.cn.call(void 0, `font-medium`, className), ...props, children });
|
|
6015
6015
|
});
|
|
6016
6016
|
Link.displayName = "Link";
|
|
6017
6017
|
|
|
@@ -6111,7 +6111,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6111
6111
|
{
|
|
6112
6112
|
...props,
|
|
6113
6113
|
onClick: handleTogglePopover,
|
|
6114
|
-
className:
|
|
6114
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
6115
6115
|
"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",
|
|
6116
6116
|
className
|
|
6117
6117
|
),
|
|
@@ -6123,7 +6123,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6123
6123
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
6124
6124
|
Badge,
|
|
6125
6125
|
{
|
|
6126
|
-
className:
|
|
6126
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, isAnimating ? "animate-bounce" : "", multiSelectVariants({ variant })),
|
|
6127
6127
|
style: { animationDuration: `${animation}s` },
|
|
6128
6128
|
children: [
|
|
6129
6129
|
IconComponent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: "mr-2 h-4 w-4" }),
|
|
@@ -6146,7 +6146,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6146
6146
|
selectedValues.length > maxCount && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
6147
6147
|
Badge,
|
|
6148
6148
|
{
|
|
6149
|
-
className:
|
|
6149
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
6150
6150
|
"text-foreground border-foreground/1 bg-transparent hover:bg-transparent",
|
|
6151
6151
|
isAnimating ? "animate-bounce" : "",
|
|
6152
6152
|
multiSelectVariants({ variant })
|
|
@@ -6211,7 +6211,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6211
6211
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6212
6212
|
"div",
|
|
6213
6213
|
{
|
|
6214
|
-
className:
|
|
6214
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
6215
6215
|
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
6216
6216
|
selectedValues.length === options.length ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
6217
6217
|
),
|
|
@@ -6234,7 +6234,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6234
6234
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6235
6235
|
"div",
|
|
6236
6236
|
{
|
|
6237
|
-
className:
|
|
6237
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
6238
6238
|
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
6239
6239
|
isSelected ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
6240
6240
|
),
|
|
@@ -6269,7 +6269,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6269
6269
|
animation > 0 && selectedValues.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6270
6270
|
_lucidereact.WandSparkles,
|
|
6271
6271
|
{
|
|
6272
|
-
className:
|
|
6272
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
6273
6273
|
"text-foreground bg-background my-2 h-3 w-3 cursor-pointer",
|
|
6274
6274
|
isAnimating ? "" : "text-muted-foreground"
|
|
6275
6275
|
),
|
|
@@ -6344,10 +6344,10 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserAvatarEditor, "UserAvatarEditor");
|
|
|
6344
6344
|
function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
6345
6345
|
const { currentUser, company } = useCurrentUserContext();
|
|
6346
6346
|
const generateUrl = usePageUrlGenerator();
|
|
6347
|
-
const router =
|
|
6347
|
+
const router = _chunkV63TFESUjs.useI18nRouter.call(void 0, );
|
|
6348
6348
|
const _t = _nextintl.useTranslations.call(void 0, );
|
|
6349
6349
|
let cId;
|
|
6350
|
-
if (_optionalChain([currentUser, 'optionalAccess', _137 => _137.roles, 'access', _138 => _138.find, 'call', _139 => _139((role) => role.id ===
|
|
6350
|
+
if (_optionalChain([currentUser, 'optionalAccess', _137 => _137.roles, 'access', _138 => _138.find, 'call', _139 => _139((role) => role.id === _chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator)]) && companyId) {
|
|
6351
6351
|
cId = companyId;
|
|
6352
6352
|
} else {
|
|
6353
6353
|
if (!company) return;
|
|
@@ -6357,8 +6357,8 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
6357
6357
|
CommonDeleter,
|
|
6358
6358
|
{
|
|
6359
6359
|
type: `users`,
|
|
6360
|
-
deleteFunction: () =>
|
|
6361
|
-
() => onDeleted ? onDeleted() : router.push(generateUrl({ page:
|
|
6360
|
+
deleteFunction: () => _chunkULHMVHDSjs.UserService.delete({ userId: user.id, companyId: cId }).then(
|
|
6361
|
+
() => onDeleted ? onDeleted() : router.push(generateUrl({ page: _chunkULHMVHDSjs.Modules.User }))
|
|
6362
6362
|
)
|
|
6363
6363
|
}
|
|
6364
6364
|
);
|
|
@@ -6366,7 +6366,7 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
6366
6366
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleterInternal, "UserDeleterInternal");
|
|
6367
6367
|
function UserDeleter(props) {
|
|
6368
6368
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
6369
|
-
if (!hasPermissionToModule({ module:
|
|
6369
|
+
if (!hasPermissionToModule({ module: _chunkULHMVHDSjs.Modules.User, action: "delete" /* Delete */, data: props.user })) return null;
|
|
6370
6370
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserDeleterInternal, { ...props });
|
|
6371
6371
|
}
|
|
6372
6372
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleter, "UserDeleter");
|
|
@@ -6389,7 +6389,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6389
6389
|
} = useCurrentUserContext();
|
|
6390
6390
|
const { company: companyFromContext } = useCompanyContext();
|
|
6391
6391
|
const generateUrl = usePageUrlGenerator();
|
|
6392
|
-
const router =
|
|
6392
|
+
const router = _chunkV63TFESUjs.useI18nRouter.call(void 0, );
|
|
6393
6393
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
6394
6394
|
const [roles, setRoles] = _react.useState.call(void 0, []);
|
|
6395
6395
|
const [file, setFile] = _react.useState.call(void 0, null);
|
|
@@ -6430,7 +6430,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6430
6430
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
6431
6431
|
if (!user) {
|
|
6432
6432
|
try {
|
|
6433
|
-
const existingUser = await
|
|
6433
|
+
const existingUser = await _chunkULHMVHDSjs.UserService.findByEmail({ email: values.email });
|
|
6434
6434
|
if (existingUser) {
|
|
6435
6435
|
form.setError("email", {
|
|
6436
6436
|
type: "manual",
|
|
@@ -6443,7 +6443,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6443
6443
|
}
|
|
6444
6444
|
}
|
|
6445
6445
|
if (values.avatar && contentType) {
|
|
6446
|
-
const s3 = await
|
|
6446
|
+
const s3 = await _chunkULHMVHDSjs.S3Service.getPreSignedUrl({
|
|
6447
6447
|
key: values.avatar,
|
|
6448
6448
|
contentType,
|
|
6449
6449
|
isPublic: true
|
|
@@ -6469,16 +6469,16 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6469
6469
|
adminCreated
|
|
6470
6470
|
};
|
|
6471
6471
|
try {
|
|
6472
|
-
const updatedUser = user ? await
|
|
6472
|
+
const updatedUser = user ? await _chunkULHMVHDSjs.UserService.update(payload) : await _chunkULHMVHDSjs.UserService.create(payload);
|
|
6473
6473
|
if (_optionalChain([currentUser, 'optionalAccess', _150 => _150.id]) === updatedUser.id) setUser(updatedUser);
|
|
6474
6474
|
if (onRevalidate) {
|
|
6475
|
-
await onRevalidate(generateUrl({ page:
|
|
6475
|
+
await onRevalidate(generateUrl({ page: _chunkULHMVHDSjs.Modules.User, id: updatedUser.id, language: `[locale]` }));
|
|
6476
6476
|
}
|
|
6477
6477
|
if (propagateChanges) {
|
|
6478
6478
|
propagateChanges(updatedUser);
|
|
6479
6479
|
setOpen(false);
|
|
6480
6480
|
} else {
|
|
6481
|
-
router.push(generateUrl({ page:
|
|
6481
|
+
router.push(generateUrl({ page: _chunkULHMVHDSjs.Modules.User, id: updatedUser.id }));
|
|
6482
6482
|
}
|
|
6483
6483
|
} catch (error) {
|
|
6484
6484
|
errorToast({ title: user ? t(`common.errors.update`) : t(`common.errors.create`), error });
|
|
@@ -6486,14 +6486,14 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6486
6486
|
}, "onSubmit");
|
|
6487
6487
|
_react.useEffect.call(void 0, () => {
|
|
6488
6488
|
async function fetchRoles() {
|
|
6489
|
-
const roles2 = await
|
|
6489
|
+
const roles2 = await _chunkULHMVHDSjs.RoleService.findAllRoles({});
|
|
6490
6490
|
const availableRoles = roles2.filter(
|
|
6491
|
-
(role) => role.id !==
|
|
6491
|
+
(role) => role.id !== _chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _151 => _151.features, 'access', _152 => _152.some, 'call', _153 => _153((feature) => feature.id === _optionalChain([role, 'access', _154 => _154.requiredFeature, 'optionalAccess', _155 => _155.id]))]))
|
|
6492
6492
|
);
|
|
6493
6493
|
setRoles(availableRoles);
|
|
6494
6494
|
}
|
|
6495
6495
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchRoles, "fetchRoles");
|
|
6496
|
-
if (open && (company || _optionalChain([currentUser, 'optionalAccess', _156 => _156.roles, 'access', _157 => _157.find, 'call', _158 => _158((role) => role.id ===
|
|
6496
|
+
if (open && (company || _optionalChain([currentUser, 'optionalAccess', _156 => _156.roles, 'access', _157 => _157.find, 'call', _158 => _158((role) => role.id === _chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator)])) && roles.length === 0)
|
|
6497
6497
|
fetchRoles();
|
|
6498
6498
|
}, [company, open]);
|
|
6499
6499
|
_react.useEffect.call(void 0, () => {
|
|
@@ -6514,7 +6514,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6514
6514
|
setContentType(null);
|
|
6515
6515
|
}
|
|
6516
6516
|
}, [file]);
|
|
6517
|
-
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _159 => _159.id]) === _optionalChain([user, 'optionalAccess', _160 => _160.id]) && hasRole(
|
|
6517
|
+
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _159 => _159.id]) === _optionalChain([user, 'optionalAccess', _160 => _160.id]) && hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkULHMVHDSjs.Modules.User, action: "update" /* Update */ }) || hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator));
|
|
6518
6518
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
6519
6519
|
trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTrigger, { children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!user }),
|
|
6520
6520
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -6601,7 +6601,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6601
6601
|
] })
|
|
6602
6602
|
] }),
|
|
6603
6603
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-end gap-x-4", children: [
|
|
6604
|
-
user && _optionalChain([currentUser, 'optionalAccess', _162 => _162.roles, 'access', _163 => _163.find, 'call', _164 => _164((role) => role.id ===
|
|
6604
|
+
user && _optionalChain([currentUser, 'optionalAccess', _162 => _162.roles, 'access', _163 => _163.find, 'call', _164 => _164((role) => role.id === _chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator)]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6605
6605
|
UserDeleter,
|
|
6606
6606
|
{
|
|
6607
6607
|
companyId: _optionalChain([user, 'access', _165 => _165.company, 'optionalAccess', _166 => _166.id]),
|
|
@@ -6624,7 +6624,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserEditorInternal, "UserEditorInternal");
|
|
|
6624
6624
|
function UserEditor(props) {
|
|
6625
6625
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
6626
6626
|
if (!hasPermissionToModule({
|
|
6627
|
-
module:
|
|
6627
|
+
module: _chunkULHMVHDSjs.Modules.User,
|
|
6628
6628
|
action: props.user ? "update" /* Update */ : "create" /* Create */,
|
|
6629
6629
|
data: props.user
|
|
6630
6630
|
}))
|
|
@@ -6712,7 +6712,7 @@ function CommonAssociationCommandDialog({
|
|
|
6712
6712
|
_chunk7QVYU63Ejs.__name.call(void 0, CommonAssociationCommandDialog, "CommonAssociationCommandDialog");
|
|
6713
6713
|
var triggerAssociationToast = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
6714
6714
|
if (params.level) {
|
|
6715
|
-
|
|
6715
|
+
_chunkULHMVHDSjs.showToast.call(void 0,
|
|
6716
6716
|
params.t(`common.association.label`, {
|
|
6717
6717
|
source: params.source,
|
|
6718
6718
|
destination: params.destination
|
|
@@ -6728,7 +6728,7 @@ var triggerAssociationToast = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
6728
6728
|
}
|
|
6729
6729
|
);
|
|
6730
6730
|
} else {
|
|
6731
|
-
|
|
6731
|
+
_chunkULHMVHDSjs.showToast.call(void 0,
|
|
6732
6732
|
params.t(`common.association.label`, {
|
|
6733
6733
|
source: params.source,
|
|
6734
6734
|
destination: params.destination
|
|
@@ -6780,7 +6780,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ErrorDetails, "ErrorDetails");
|
|
|
6780
6780
|
|
|
6781
6781
|
// src/components/errors/errorToast.ts
|
|
6782
6782
|
function errorToast(params) {
|
|
6783
|
-
|
|
6783
|
+
_chunkULHMVHDSjs.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess', _167 => _167.title]), () => ( "Error")), {
|
|
6784
6784
|
description: params.error instanceof Error ? params.error.message : String(params.error)
|
|
6785
6785
|
});
|
|
6786
6786
|
}
|
|
@@ -6789,8 +6789,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, errorToast, "errorToast");
|
|
|
6789
6789
|
// src/components/forms/CommonDeleter.tsx
|
|
6790
6790
|
|
|
6791
6791
|
function CommonDeleter({ deleteFunction, redirectTo, type, forceShow, testId }) {
|
|
6792
|
-
const t =
|
|
6793
|
-
const router =
|
|
6792
|
+
const t = _chunkV63TFESUjs.useI18nTranslations.call(void 0, );
|
|
6793
|
+
const router = _chunkV63TFESUjs.useI18nRouter.call(void 0, );
|
|
6794
6794
|
const [open, setOpen] = _react.useState.call(void 0, forceShow || false);
|
|
6795
6795
|
const [isDeleting, setIsDeleting] = _react.useState.call(void 0, false);
|
|
6796
6796
|
const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
@@ -6932,8 +6932,8 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
6932
6932
|
align = "start",
|
|
6933
6933
|
className
|
|
6934
6934
|
}) => {
|
|
6935
|
-
const locale =
|
|
6936
|
-
const dateFnsLocale =
|
|
6935
|
+
const locale = _chunkV63TFESUjs.useI18nLocale.call(void 0, );
|
|
6936
|
+
const dateFnsLocale = _chunkV63TFESUjs.useI18nDateFnsLocale.call(void 0, );
|
|
6937
6937
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
6938
6938
|
const [displayMonth, setDisplayMonth] = _react.useState.call(void 0, () => value || /* @__PURE__ */ new Date());
|
|
6939
6939
|
const dateFormatter = _react.useMemo.call(void 0,
|
|
@@ -6996,7 +6996,7 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
6996
6996
|
}, "handleClear");
|
|
6997
6997
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open: isOpen, onOpenChange: setIsOpen, children: [
|
|
6998
6998
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { children }),
|
|
6999
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className:
|
|
6999
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className: _chunkULHMVHDSjs.cn.call(void 0, "p-0", className), align, onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "p-3", children: [
|
|
7000
7000
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative mb-3", children: [
|
|
7001
7001
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7002
7002
|
Input,
|
|
@@ -7112,13 +7112,13 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
7112
7112
|
setDate(range);
|
|
7113
7113
|
}
|
|
7114
7114
|
}, "handleSelect");
|
|
7115
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
7115
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkULHMVHDSjs.cn.call(void 0, "grid gap-2"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, children: [
|
|
7116
7116
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7117
7117
|
Button,
|
|
7118
7118
|
{
|
|
7119
7119
|
id: "date",
|
|
7120
7120
|
variant: "outline",
|
|
7121
|
-
className:
|
|
7121
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
|
|
7122
7122
|
children: [
|
|
7123
7123
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
|
|
7124
7124
|
_optionalChain([date, 'optionalAccess', _177 => _177.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -7242,7 +7242,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
7242
7242
|
(acceptedFiles, rejectedFiles) => {
|
|
7243
7243
|
const files = acceptedFiles;
|
|
7244
7244
|
if (!files) {
|
|
7245
|
-
|
|
7245
|
+
_chunkULHMVHDSjs.showError.call(void 0, t("common.errors.file"), {
|
|
7246
7246
|
description: t("common.errors.file_large")
|
|
7247
7247
|
});
|
|
7248
7248
|
return;
|
|
@@ -7260,13 +7260,13 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
7260
7260
|
if (rejectedFiles.length > 0) {
|
|
7261
7261
|
for (let i = 0; i < rejectedFiles.length; i++) {
|
|
7262
7262
|
if (_optionalChain([rejectedFiles, 'access', _183 => _183[i], 'access', _184 => _184.errors, 'access', _185 => _185[0], 'optionalAccess', _186 => _186.code]) === "file-too-large") {
|
|
7263
|
-
|
|
7263
|
+
_chunkULHMVHDSjs.showError.call(void 0, t("common.errors.file"), {
|
|
7264
7264
|
description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
|
|
7265
7265
|
});
|
|
7266
7266
|
break;
|
|
7267
7267
|
}
|
|
7268
7268
|
if (_optionalChain([rejectedFiles, 'access', _187 => _187[i], 'access', _188 => _188.errors, 'access', _189 => _189[0], 'optionalAccess', _190 => _190.message])) {
|
|
7269
|
-
|
|
7269
|
+
_chunkULHMVHDSjs.showError.call(void 0, t(`common.errors.file`), {
|
|
7270
7270
|
description: rejectedFiles[i].errors[0].message
|
|
7271
7271
|
});
|
|
7272
7272
|
break;
|
|
@@ -7310,7 +7310,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
7310
7310
|
ref,
|
|
7311
7311
|
tabIndex: 0,
|
|
7312
7312
|
onKeyDownCapture: handleKeyDown,
|
|
7313
|
-
className:
|
|
7313
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
7314
7314
|
"grid w-full overflow-hidden focus:outline-none",
|
|
7315
7315
|
className,
|
|
7316
7316
|
// Original className from props
|
|
@@ -7334,12 +7334,12 @@ var FileUploaderContent = _react.forwardRef.call(void 0,
|
|
|
7334
7334
|
({ children, className, ...props }, ref) => {
|
|
7335
7335
|
const { orientation } = useFileUpload();
|
|
7336
7336
|
const containerRef = _react.useRef.call(void 0, null);
|
|
7337
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
7337
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkULHMVHDSjs.cn.call(void 0, "w-full px-1"), ref: containerRef, "aria-description": "content file holder", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7338
7338
|
"div",
|
|
7339
7339
|
{
|
|
7340
7340
|
...props,
|
|
7341
7341
|
ref,
|
|
7342
|
-
className:
|
|
7342
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
7343
7343
|
"flex gap-1 rounded-xl",
|
|
7344
7344
|
orientation === "horizontal" ? "flex-raw flex-wrap" : "flex-col",
|
|
7345
7345
|
className
|
|
@@ -7359,7 +7359,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
7359
7359
|
"div",
|
|
7360
7360
|
{
|
|
7361
7361
|
ref,
|
|
7362
|
-
className:
|
|
7362
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
7363
7363
|
buttonVariants({ variant: "ghost" }),
|
|
7364
7364
|
"relative h-6 cursor-pointer justify-between p-1",
|
|
7365
7365
|
className,
|
|
@@ -7372,7 +7372,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
7372
7372
|
"button",
|
|
7373
7373
|
{
|
|
7374
7374
|
type: "button",
|
|
7375
|
-
className:
|
|
7375
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "absolute", direction === "rtl" ? "top-1 left-1" : "top-1 right-1"),
|
|
7376
7376
|
onClick: () => removeFileFromSet(index),
|
|
7377
7377
|
children: [
|
|
7378
7378
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: t(`common.remove_item`, { index }) }),
|
|
@@ -7396,12 +7396,12 @@ var FileInput = _react.forwardRef.call(void 0,
|
|
|
7396
7396
|
{
|
|
7397
7397
|
ref,
|
|
7398
7398
|
...props,
|
|
7399
|
-
className:
|
|
7399
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, `relative w-full ${isLOF ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`, className),
|
|
7400
7400
|
children: [
|
|
7401
7401
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7402
7402
|
"div",
|
|
7403
7403
|
{
|
|
7404
|
-
className:
|
|
7404
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
7405
7405
|
"w-full rounded-lg duration-300 ease-in-out",
|
|
7406
7406
|
// Simpler border logic: if parent is drag-active, it controls the border.
|
|
7407
7407
|
// Otherwise, FileInput can show its own accept/reject/default border.
|
|
@@ -7504,8 +7504,8 @@ function FormDate({
|
|
|
7504
7504
|
onChange,
|
|
7505
7505
|
isRequired = false
|
|
7506
7506
|
}) {
|
|
7507
|
-
const locale =
|
|
7508
|
-
const dateFnsLocale =
|
|
7507
|
+
const locale = _chunkV63TFESUjs.useI18nLocale.call(void 0, );
|
|
7508
|
+
const dateFnsLocale = _chunkV63TFESUjs.useI18nDateFnsLocale.call(void 0, );
|
|
7509
7509
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
7510
7510
|
const [displayMonth, setDisplayMonth] = _react.useState.call(void 0, () => {
|
|
7511
7511
|
const currentValue = form.getValues(id);
|
|
@@ -7665,9 +7665,9 @@ function FormDateTime({
|
|
|
7665
7665
|
allowEmpty
|
|
7666
7666
|
}) {
|
|
7667
7667
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
7668
|
-
const t =
|
|
7669
|
-
const locale =
|
|
7670
|
-
const dateFnsLocale =
|
|
7668
|
+
const t = _chunkV63TFESUjs.useI18nTranslations.call(void 0, );
|
|
7669
|
+
const locale = _chunkV63TFESUjs.useI18nLocale.call(void 0, );
|
|
7670
|
+
const dateFnsLocale = _chunkV63TFESUjs.useI18nDateFnsLocale.call(void 0, );
|
|
7671
7671
|
const dateTimeFormatter = _react.useMemo.call(void 0,
|
|
7672
7672
|
() => new Intl.DateTimeFormat(locale, {
|
|
7673
7673
|
year: "numeric",
|
|
@@ -7718,7 +7718,7 @@ function FormDateTime({
|
|
|
7718
7718
|
Button,
|
|
7719
7719
|
{
|
|
7720
7720
|
variant: "outline",
|
|
7721
|
-
className:
|
|
7721
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "w-full pl-3 text-left font-normal", !field.value && "text-muted-foreground")
|
|
7722
7722
|
}
|
|
7723
7723
|
),
|
|
7724
7724
|
children: [
|
|
@@ -7907,7 +7907,7 @@ var PasswordInput = React12.forwardRef(
|
|
|
7907
7907
|
const disabled = props.value === "" || props.value === void 0 || props.disabled;
|
|
7908
7908
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
7909
7909
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
7910
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className:
|
|
7910
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className: _chunkULHMVHDSjs.cn.call(void 0, "", className), ref, ...props }),
|
|
7911
7911
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7912
7912
|
Button,
|
|
7913
7913
|
{
|
|
@@ -8092,7 +8092,7 @@ function FormPlaceAutocomplete({
|
|
|
8092
8092
|
placeholder,
|
|
8093
8093
|
disabled,
|
|
8094
8094
|
"data-testid": testId,
|
|
8095
|
-
className:
|
|
8095
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "w-full", className)
|
|
8096
8096
|
}
|
|
8097
8097
|
) }) });
|
|
8098
8098
|
}
|
|
@@ -8111,7 +8111,7 @@ function FormPlaceAutocomplete({
|
|
|
8111
8111
|
placeholder,
|
|
8112
8112
|
disabled: disabled || !apiKey,
|
|
8113
8113
|
"data-testid": testId,
|
|
8114
|
-
className:
|
|
8114
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "w-full", className)
|
|
8115
8115
|
}
|
|
8116
8116
|
),
|
|
8117
8117
|
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" }) }),
|
|
@@ -8236,7 +8236,7 @@ function FormTextarea({
|
|
|
8236
8236
|
Textarea,
|
|
8237
8237
|
{
|
|
8238
8238
|
...field,
|
|
8239
|
-
className:
|
|
8239
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "min-h-96 w-full", className),
|
|
8240
8240
|
disabled: form.formState.isSubmitting,
|
|
8241
8241
|
placeholder,
|
|
8242
8242
|
"data-testid": testId
|
|
@@ -8345,10 +8345,10 @@ function UserMultiSelect({
|
|
|
8345
8345
|
const data = useDataListRetriever({
|
|
8346
8346
|
ready: !!company,
|
|
8347
8347
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
8348
|
-
return
|
|
8348
|
+
return _chunkULHMVHDSjs.UserService.findAllUsers(params);
|
|
8349
8349
|
}, "retriever"),
|
|
8350
8350
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _211 => _211.id]) },
|
|
8351
|
-
module:
|
|
8351
|
+
module: _chunkULHMVHDSjs.Modules.User
|
|
8352
8352
|
});
|
|
8353
8353
|
_react.useEffect.call(void 0, () => {
|
|
8354
8354
|
if (company) data.setReady(true);
|
|
@@ -8448,7 +8448,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
8448
8448
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8449
8449
|
const reactivateUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
8450
8450
|
try {
|
|
8451
|
-
const updatedUser = await
|
|
8451
|
+
const updatedUser = await _chunkULHMVHDSjs.UserService.reactivate({ userId: user.id });
|
|
8452
8452
|
setOpen(false);
|
|
8453
8453
|
propagateChanges(updatedUser);
|
|
8454
8454
|
} catch (error) {
|
|
@@ -8486,7 +8486,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
8486
8486
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivatorInterface, "UserReactivatorInterface");
|
|
8487
8487
|
function UserReactivator(props) {
|
|
8488
8488
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
8489
|
-
if (!hasPermissionToModule({ module:
|
|
8489
|
+
if (!hasPermissionToModule({ module: _chunkULHMVHDSjs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
8490
8490
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserReactivatorInterface, { ...props });
|
|
8491
8491
|
}
|
|
8492
8492
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivator, "UserReactivator");
|
|
@@ -8501,9 +8501,9 @@ function UserResentInvitationEmailInternal({ user }) {
|
|
|
8501
8501
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8502
8502
|
const sendInvitationEmail = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
8503
8503
|
try {
|
|
8504
|
-
await
|
|
8504
|
+
await _chunkULHMVHDSjs.UserService.sendInvitation({ userId: user.id, companyId: user.company.id });
|
|
8505
8505
|
setOpen(false);
|
|
8506
|
-
|
|
8506
|
+
_chunkULHMVHDSjs.showToast.call(void 0, t(`user.resend_activation.email_sent`), {
|
|
8507
8507
|
description: t(`user.resend_activation.email_sent_description`, { email: user.email })
|
|
8508
8508
|
});
|
|
8509
8509
|
} catch (error) {
|
|
@@ -8541,7 +8541,7 @@ function UserResentInvitationEmailInternal({ user }) {
|
|
|
8541
8541
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmailInternal, "UserResentInvitationEmailInternal");
|
|
8542
8542
|
function UserResentInvitationEmail(props) {
|
|
8543
8543
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
8544
|
-
if (!hasPermissionToModule({ module:
|
|
8544
|
+
if (!hasPermissionToModule({ module: _chunkULHMVHDSjs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
8545
8545
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserResentInvitationEmailInternal, { ...props });
|
|
8546
8546
|
}
|
|
8547
8547
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmail, "UserResentInvitationEmail");
|
|
@@ -8572,22 +8572,22 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
|
|
|
8572
8572
|
}, "getAvatar");
|
|
8573
8573
|
const content = showLink === false ? (
|
|
8574
8574
|
// If showLink is explicitly false, never show a link
|
|
8575
|
-
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
8575
|
+
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkULHMVHDSjs.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className), children: [
|
|
8576
8576
|
getAvatar(),
|
|
8577
8577
|
user.name
|
|
8578
8578
|
] }) : getAvatar()
|
|
8579
8579
|
) : showFull ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8580
8580
|
Link,
|
|
8581
8581
|
{
|
|
8582
|
-
href: generateUrl({ page:
|
|
8583
|
-
className:
|
|
8582
|
+
href: generateUrl({ page: _chunkULHMVHDSjs.Modules.User, id: user.id }),
|
|
8583
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className),
|
|
8584
8584
|
onClick: (e) => e.stopPropagation(),
|
|
8585
8585
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center gap-x-2", children: [
|
|
8586
8586
|
getAvatar(),
|
|
8587
8587
|
user.name
|
|
8588
8588
|
] })
|
|
8589
8589
|
}
|
|
8590
|
-
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page:
|
|
8590
|
+
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunkULHMVHDSjs.Modules.User, id: user.id }), className, children: getAvatar() }) : getAvatar();
|
|
8591
8591
|
if (!showTooltip) {
|
|
8592
8592
|
return content;
|
|
8593
8593
|
}
|
|
@@ -8608,10 +8608,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
8608
8608
|
const [isSearching, setIsSearching] = _react.useState.call(void 0, false);
|
|
8609
8609
|
const data = useDataListRetriever({
|
|
8610
8610
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
8611
|
-
return
|
|
8611
|
+
return _chunkULHMVHDSjs.UserService.findMany(params);
|
|
8612
8612
|
}, "retriever"),
|
|
8613
8613
|
retrieverParams: {},
|
|
8614
|
-
module:
|
|
8614
|
+
module: _chunkULHMVHDSjs.Modules.User
|
|
8615
8615
|
});
|
|
8616
8616
|
const search = _react.useCallback.call(void 0,
|
|
8617
8617
|
async (searchedTerm) => {
|
|
@@ -8710,24 +8710,24 @@ var UserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
8710
8710
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
8711
8711
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8712
8712
|
const [user, setUser] = _react.useState.call(void 0,
|
|
8713
|
-
dehydratedUser ?
|
|
8713
|
+
dehydratedUser ? _chunkULHMVHDSjs.rehydrate.call(void 0, _chunkULHMVHDSjs.Modules.User, dehydratedUser) : void 0
|
|
8714
8714
|
);
|
|
8715
8715
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
8716
8716
|
const response = [];
|
|
8717
|
-
if (hasPermissionToModule({ module:
|
|
8717
|
+
if (hasPermissionToModule({ module: _chunkULHMVHDSjs.Modules.User, action: "update" /* Update */ })) {
|
|
8718
8718
|
response.push({
|
|
8719
8719
|
name: t(`common.settings`, { item: "settings" }),
|
|
8720
8720
|
href: generateUrl({ page: `/settings` })
|
|
8721
8721
|
});
|
|
8722
8722
|
response.push({
|
|
8723
8723
|
name: t(`entities.users`, { count: 2 }),
|
|
8724
|
-
href: generateUrl({ page: `/settings`, id:
|
|
8724
|
+
href: generateUrl({ page: `/settings`, id: _chunkULHMVHDSjs.Modules.User.pageUrl })
|
|
8725
8725
|
});
|
|
8726
8726
|
}
|
|
8727
8727
|
if (user)
|
|
8728
8728
|
response.push({
|
|
8729
8729
|
name: `${user.name}${user.isDeleted ? ` (${t(`user.deleted`)})` : ""}`,
|
|
8730
|
-
href: generateUrl({ page:
|
|
8730
|
+
href: generateUrl({ page: _chunkULHMVHDSjs.Modules.User, id: user.id })
|
|
8731
8731
|
});
|
|
8732
8732
|
return response;
|
|
8733
8733
|
}, "breadcrumb");
|
|
@@ -8782,7 +8782,7 @@ function UserDetails({ user }) {
|
|
|
8782
8782
|
const { title } = useSharedContext();
|
|
8783
8783
|
let roles = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
8784
8784
|
if (user.roles && user.roles.length > 0) {
|
|
8785
|
-
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:
|
|
8785
|
+
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: _chunkULHMVHDSjs.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)) }) });
|
|
8786
8786
|
}
|
|
8787
8787
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
8788
8788
|
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,
|
|
@@ -8795,7 +8795,7 @@ function UserDetails({ user }) {
|
|
|
8795
8795
|
className: "h-auto w-full rounded-lg object-contain"
|
|
8796
8796
|
}
|
|
8797
8797
|
) }),
|
|
8798
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module:
|
|
8798
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkULHMVHDSjs.Modules.User, type: title.type, element: title.element, functions: title.functions }),
|
|
8799
8799
|
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`) }) }) }),
|
|
8800
8800
|
roles,
|
|
8801
8801
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AttributeElement, { inline: true, title: t(`user.fields.title.label`), value: user.title }),
|
|
@@ -8831,7 +8831,7 @@ function UserStanadaloneDetails({ user }) {
|
|
|
8831
8831
|
const { title } = useSharedContext();
|
|
8832
8832
|
let roles = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
8833
8833
|
if (user.roles && user.roles.length > 0) {
|
|
8834
|
-
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:
|
|
8834
|
+
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: _chunkULHMVHDSjs.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)) }) });
|
|
8835
8835
|
}
|
|
8836
8836
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row gap-x-4", children: [
|
|
8837
8837
|
user.avatar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-64", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative aspect-auto w-full max-w-md overflow-hidden rounded-lg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -8845,7 +8845,7 @@ function UserStanadaloneDetails({ user }) {
|
|
|
8845
8845
|
}
|
|
8846
8846
|
) }) }),
|
|
8847
8847
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
8848
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module:
|
|
8848
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkULHMVHDSjs.Modules.User, type: title.type, element: title.element, functions: title.functions }),
|
|
8849
8849
|
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`) }) }) }),
|
|
8850
8850
|
roles,
|
|
8851
8851
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AttributeElement, { inline: true, title: t(`user.fields.title.label`), value: user.title }),
|
|
@@ -8884,18 +8884,18 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserIndexContainer, "UserIndexContainer");
|
|
|
8884
8884
|
function UsersListContainerInternal() {
|
|
8885
8885
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
8886
8886
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8887
|
-
if (!hasPermissionToModule({ module:
|
|
8887
|
+
if (!hasPermissionToModule({ module: _chunkULHMVHDSjs.Modules.User, action: "delete" /* Delete */ })) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {});
|
|
8888
8888
|
const tabs = [
|
|
8889
8889
|
{
|
|
8890
8890
|
label: t(`entities.users`, { count: 2 }),
|
|
8891
8891
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {}),
|
|
8892
|
-
modules: [
|
|
8892
|
+
modules: [_chunkULHMVHDSjs.Modules.Company],
|
|
8893
8893
|
action: "read" /* Read */
|
|
8894
8894
|
},
|
|
8895
8895
|
{
|
|
8896
8896
|
label: t(`user.deleted`),
|
|
8897
8897
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, { isDeleted: true }),
|
|
8898
|
-
modules: [
|
|
8898
|
+
modules: [_chunkULHMVHDSjs.Modules.Company],
|
|
8899
8899
|
action: "update" /* Update */
|
|
8900
8900
|
}
|
|
8901
8901
|
];
|
|
@@ -8913,9 +8913,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersListContainer, "UsersListContainer");
|
|
|
8913
8913
|
function AdminUsersListInternal({ company }) {
|
|
8914
8914
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8915
8915
|
const data = useDataListRetriever({
|
|
8916
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
8916
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkULHMVHDSjs.UserService.findManyForAmin(params), "retriever"),
|
|
8917
8917
|
retrieverParams: { companyId: company.id },
|
|
8918
|
-
module:
|
|
8918
|
+
module: _chunkULHMVHDSjs.Modules.User
|
|
8919
8919
|
});
|
|
8920
8920
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8921
8921
|
ContentListTable,
|
|
@@ -8923,7 +8923,7 @@ function AdminUsersListInternal({ company }) {
|
|
|
8923
8923
|
title: t(`entities.users`, { count: 2 }),
|
|
8924
8924
|
data,
|
|
8925
8925
|
fields: ["name" /* name */, "email" /* email */, "createdAt" /* createdAt */],
|
|
8926
|
-
tableGeneratorType:
|
|
8926
|
+
tableGeneratorType: _chunkULHMVHDSjs.Modules.User,
|
|
8927
8927
|
functions: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserEditor, { propagateChanges: data.refresh, adminCreated: true })
|
|
8928
8928
|
}
|
|
8929
8929
|
);
|
|
@@ -8945,9 +8945,9 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
8945
8945
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8946
8946
|
const data = useDataListRetriever({
|
|
8947
8947
|
ready: !!company,
|
|
8948
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
8948
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkULHMVHDSjs.UserService.findAllUsers(params), "retriever"),
|
|
8949
8949
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _230 => _230.id]), isDeleted },
|
|
8950
|
-
module:
|
|
8950
|
+
module: _chunkULHMVHDSjs.Modules.User
|
|
8951
8951
|
});
|
|
8952
8952
|
_react.useEffect.call(void 0, () => {
|
|
8953
8953
|
if (company) data.setReady(true);
|
|
@@ -8960,7 +8960,7 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
8960
8960
|
{
|
|
8961
8961
|
data,
|
|
8962
8962
|
fields: ["name" /* name */, "email" /* email */],
|
|
8963
|
-
tableGeneratorType:
|
|
8963
|
+
tableGeneratorType: _chunkULHMVHDSjs.Modules.User,
|
|
8964
8964
|
functions,
|
|
8965
8965
|
title: t(`entities.users`, { count: 2 })
|
|
8966
8966
|
}
|
|
@@ -8976,7 +8976,7 @@ function ContributorsList({ content }) {
|
|
|
8976
8976
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8977
8977
|
Link,
|
|
8978
8978
|
{
|
|
8979
|
-
href: generateUrl({ page:
|
|
8979
|
+
href: generateUrl({ page: _chunkULHMVHDSjs.Modules.User, id: content.author.id }),
|
|
8980
8980
|
onClick: (e) => e.stopPropagation(),
|
|
8981
8981
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: content.author, className: "mr-1 h-6 w-6" })
|
|
8982
8982
|
},
|
|
@@ -8985,7 +8985,7 @@ function ContributorsList({ content }) {
|
|
|
8985
8985
|
/* @__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,
|
|
8986
8986
|
Link,
|
|
8987
8987
|
{
|
|
8988
|
-
href: generateUrl({ page:
|
|
8988
|
+
href: generateUrl({ page: _chunkULHMVHDSjs.Modules.User, id: editor.id }),
|
|
8989
8989
|
onClick: (e) => e.stopPropagation(),
|
|
8990
8990
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: editor, className: "h-5 w-5" })
|
|
8991
8991
|
},
|
|
@@ -9001,8 +9001,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContributorsList, "ContributorsList");
|
|
|
9001
9001
|
function RelevantUsersList({ id }) {
|
|
9002
9002
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9003
9003
|
const data = useDataListRetriever({
|
|
9004
|
-
module:
|
|
9005
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9004
|
+
module: _chunkULHMVHDSjs.Modules.User,
|
|
9005
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkULHMVHDSjs.UserService.findRelevant(params), "retriever"),
|
|
9006
9006
|
retrieverParams: { id }
|
|
9007
9007
|
});
|
|
9008
9008
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -9010,7 +9010,7 @@ function RelevantUsersList({ id }) {
|
|
|
9010
9010
|
{
|
|
9011
9011
|
data,
|
|
9012
9012
|
fields: ["name" /* name */, "email" /* email */, "relevance" /* relevance */],
|
|
9013
|
-
tableGeneratorType:
|
|
9013
|
+
tableGeneratorType: _chunkULHMVHDSjs.Modules.User,
|
|
9014
9014
|
title: t(`common.relevant_users`)
|
|
9015
9015
|
}
|
|
9016
9016
|
);
|
|
@@ -9023,16 +9023,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RelevantUsersList, "RelevantUsersList");
|
|
|
9023
9023
|
function RoleUsersList({ role }) {
|
|
9024
9024
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9025
9025
|
const data = useDataListRetriever({
|
|
9026
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9026
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkULHMVHDSjs.UserService.findAllUsersByRole(params), "retriever"),
|
|
9027
9027
|
retrieverParams: { roleId: role.id },
|
|
9028
|
-
module:
|
|
9028
|
+
module: _chunkULHMVHDSjs.Modules.User
|
|
9029
9029
|
});
|
|
9030
9030
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9031
9031
|
ContentListTable,
|
|
9032
9032
|
{
|
|
9033
9033
|
data,
|
|
9034
9034
|
fields: ["name" /* name */, "email" /* email */],
|
|
9035
|
-
tableGeneratorType:
|
|
9035
|
+
tableGeneratorType: _chunkULHMVHDSjs.Modules.User,
|
|
9036
9036
|
title: t(`entities.users`, { count: 2 })
|
|
9037
9037
|
}
|
|
9038
9038
|
);
|
|
@@ -9088,7 +9088,7 @@ function UsersList({
|
|
|
9088
9088
|
{
|
|
9089
9089
|
data,
|
|
9090
9090
|
fields: ["name" /* name */, "email" /* email */],
|
|
9091
|
-
tableGeneratorType:
|
|
9091
|
+
tableGeneratorType: _chunkULHMVHDSjs.Modules.User,
|
|
9092
9092
|
title: t(`entities.users`, { count: 2 })
|
|
9093
9093
|
}
|
|
9094
9094
|
);
|
|
@@ -9101,8 +9101,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersList, "UsersList");
|
|
|
9101
9101
|
function UsersListByContentIds({ contentIds }) {
|
|
9102
9102
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9103
9103
|
const data = useDataListRetriever({
|
|
9104
|
-
module:
|
|
9105
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9104
|
+
module: _chunkULHMVHDSjs.Modules.User,
|
|
9105
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkULHMVHDSjs.UserService.findManyByContentIds(params), "retriever"),
|
|
9106
9106
|
retrieverParams: { contentIds }
|
|
9107
9107
|
});
|
|
9108
9108
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -9110,7 +9110,7 @@ function UsersListByContentIds({ contentIds }) {
|
|
|
9110
9110
|
{
|
|
9111
9111
|
data,
|
|
9112
9112
|
fields: ["name" /* name */, "email" /* email */],
|
|
9113
|
-
tableGeneratorType:
|
|
9113
|
+
tableGeneratorType: _chunkULHMVHDSjs.Modules.User,
|
|
9114
9114
|
title: t(`common.relevant_users`)
|
|
9115
9115
|
}
|
|
9116
9116
|
);
|
|
@@ -9128,7 +9128,7 @@ function CompanyDetails() {
|
|
|
9128
9128
|
const { company } = useCompanyContext();
|
|
9129
9129
|
if (!company) return null;
|
|
9130
9130
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
9131
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module:
|
|
9131
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkULHMVHDSjs.Modules.Company, type: title.type, element: title.element, functions: title.functions }),
|
|
9132
9132
|
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" })
|
|
9133
9133
|
] });
|
|
9134
9134
|
}
|
|
@@ -9139,7 +9139,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyDetails, "CompanyDetails");
|
|
|
9139
9139
|
function AdminCompanyContainerInternal() {
|
|
9140
9140
|
const { company } = useCompanyContext();
|
|
9141
9141
|
const { hasRole } = useCurrentUserContext();
|
|
9142
|
-
if (!company || !hasRole(
|
|
9142
|
+
if (!company || !hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator)) return null;
|
|
9143
9143
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
9144
9144
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDetails, {}),
|
|
9145
9145
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AdminUsersList, {})
|
|
@@ -9193,13 +9193,13 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9193
9193
|
const textSize = textSizeClasses[size];
|
|
9194
9194
|
const getBatteryIcon = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
9195
9195
|
if (percentage > 75) {
|
|
9196
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryFull, { className:
|
|
9196
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryFull, { className: _chunkULHMVHDSjs.cn.call(void 0, iconSize, "text-green-500") });
|
|
9197
9197
|
} else if (percentage > 50) {
|
|
9198
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryMedium, { className:
|
|
9198
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryMedium, { className: _chunkULHMVHDSjs.cn.call(void 0, iconSize, "text-green-500") });
|
|
9199
9199
|
} else if (percentage >= 25) {
|
|
9200
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryLow, { className:
|
|
9200
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryLow, { className: _chunkULHMVHDSjs.cn.call(void 0, iconSize, "text-yellow-500") });
|
|
9201
9201
|
} else {
|
|
9202
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Battery, { className:
|
|
9202
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Battery, { className: _chunkULHMVHDSjs.cn.call(void 0, iconSize, "text-destructive") });
|
|
9203
9203
|
}
|
|
9204
9204
|
}, "getBatteryIcon");
|
|
9205
9205
|
const getStatusColor = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -9219,7 +9219,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9219
9219
|
t("billing.tokens.monthly", { defaultValue: "Monthly Pages" }),
|
|
9220
9220
|
":"
|
|
9221
9221
|
] }),
|
|
9222
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
9222
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkULHMVHDSjs.cn.call(void 0, "font-medium", getStatusColor()), children: [
|
|
9223
9223
|
availableMonthlyTokens,
|
|
9224
9224
|
" / ",
|
|
9225
9225
|
monthlyTokens
|
|
@@ -9230,7 +9230,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9230
9230
|
t("billing.tokens.available", { defaultValue: "Available" }),
|
|
9231
9231
|
":"
|
|
9232
9232
|
] }),
|
|
9233
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
9233
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkULHMVHDSjs.cn.call(void 0, "font-medium", getStatusColor()), children: [
|
|
9234
9234
|
percentage.toFixed(0),
|
|
9235
9235
|
"%"
|
|
9236
9236
|
] })
|
|
@@ -9251,14 +9251,14 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9251
9251
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9252
9252
|
"div",
|
|
9253
9253
|
{
|
|
9254
|
-
className:
|
|
9254
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "inline-flex items-center gap-1.5 cursor-default", className),
|
|
9255
9255
|
"aria-label": t("billing.tokens.status", { defaultValue: "Page Status" }),
|
|
9256
9256
|
children: [
|
|
9257
9257
|
getBatteryIcon(),
|
|
9258
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
9258
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkULHMVHDSjs.cn.call(void 0, textSize, "text-muted-foreground font-medium"), children: availableMonthlyTokens }),
|
|
9259
9259
|
showExtraPages && availableExtraTokens > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "inline-flex items-center gap-0.5", children: [
|
|
9260
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className:
|
|
9261
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
9260
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className: _chunkULHMVHDSjs.cn.call(void 0, smallIconSize, "text-blue-500") }),
|
|
9261
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkULHMVHDSjs.cn.call(void 0, textSize, "text-blue-500 font-medium"), children: availableExtraTokens })
|
|
9262
9262
|
] })
|
|
9263
9263
|
]
|
|
9264
9264
|
}
|
|
@@ -9375,12 +9375,12 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
9375
9375
|
}
|
|
9376
9376
|
};
|
|
9377
9377
|
try {
|
|
9378
|
-
await
|
|
9379
|
-
const fullUser = await
|
|
9378
|
+
await _chunkULHMVHDSjs.CompanyService.updateConfigurations(payload);
|
|
9379
|
+
const fullUser = await _chunkULHMVHDSjs.UserService.findFullUser();
|
|
9380
9380
|
if (fullUser) {
|
|
9381
9381
|
setUser(fullUser);
|
|
9382
9382
|
}
|
|
9383
|
-
|
|
9383
|
+
_chunkULHMVHDSjs.showToast.call(void 0, "Configurations Updated", {
|
|
9384
9384
|
description: `The system configurations have been updated successfully.`
|
|
9385
9385
|
});
|
|
9386
9386
|
close();
|
|
@@ -9412,7 +9412,7 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
9412
9412
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditorInternal, "CompanyConfigurationEditorInternal");
|
|
9413
9413
|
function CompanyConfigurationEditor(props) {
|
|
9414
9414
|
const { hasRole } = useCurrentUserContext();
|
|
9415
|
-
if (hasRole(
|
|
9415
|
+
if (hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditorInternal, { ...props });
|
|
9416
9416
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditorInternal, { ...props });
|
|
9417
9417
|
}
|
|
9418
9418
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditor, "CompanyConfigurationEditor");
|
|
@@ -9437,11 +9437,11 @@ function CompanyDeleterInternal({ company, isAdministrator: isAdministrator2 })
|
|
|
9437
9437
|
setIsDeleting(true);
|
|
9438
9438
|
try {
|
|
9439
9439
|
if (isAdministrator2) {
|
|
9440
|
-
await
|
|
9440
|
+
await _chunkULHMVHDSjs.CompanyService.delete({ companyId: company.id });
|
|
9441
9441
|
} else {
|
|
9442
|
-
await
|
|
9442
|
+
await _chunkULHMVHDSjs.CompanyService.selfDelete({ companyId: company.id });
|
|
9443
9443
|
}
|
|
9444
|
-
await
|
|
9444
|
+
await _chunkULHMVHDSjs.AuthService.logout();
|
|
9445
9445
|
window.location.href = generateUrl({ page: `/` });
|
|
9446
9446
|
} catch (error) {
|
|
9447
9447
|
errorToast({ title: t(`common.errors.delete`), error });
|
|
@@ -9546,9 +9546,9 @@ function CompanyDeleterInternal({ company, isAdministrator: isAdministrator2 })
|
|
|
9546
9546
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleterInternal, "CompanyDeleterInternal");
|
|
9547
9547
|
function CompanyDeleter({ company }) {
|
|
9548
9548
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
9549
|
-
const isAdministrator2 = hasRole(
|
|
9550
|
-
const isCompanyAdministrator = hasRole(
|
|
9551
|
-
const hasDeletePermission = hasPermissionToModule({ module:
|
|
9549
|
+
const isAdministrator2 = hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator);
|
|
9550
|
+
const isCompanyAdministrator = hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).CompanyAdministrator);
|
|
9551
|
+
const hasDeletePermission = hasPermissionToModule({ module: _chunkULHMVHDSjs.Modules.Company, action: "delete" /* Delete */ });
|
|
9552
9552
|
if (!isAdministrator2 && !isCompanyAdministrator && !hasDeletePermission) {
|
|
9553
9553
|
return null;
|
|
9554
9554
|
}
|
|
@@ -9569,7 +9569,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleter, "CompanyDeleter");
|
|
|
9569
9569
|
|
|
9570
9570
|
function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
9571
9571
|
const { hasRole } = useCurrentUserContext();
|
|
9572
|
-
const router =
|
|
9572
|
+
const router = _chunkV63TFESUjs.useI18nRouter.call(void 0, );
|
|
9573
9573
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
9574
9574
|
const [features, setFeatures] = _react.useState.call(void 0, []);
|
|
9575
9575
|
const [file, setFile] = _react.useState.call(void 0, null);
|
|
@@ -9598,7 +9598,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
9598
9598
|
});
|
|
9599
9599
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
9600
9600
|
if (values.logo && contentType) {
|
|
9601
|
-
const s3 = await
|
|
9601
|
+
const s3 = await _chunkULHMVHDSjs.S3Service.getPreSignedUrl({
|
|
9602
9602
|
key: values.logo,
|
|
9603
9603
|
contentType,
|
|
9604
9604
|
isPublic: true
|
|
@@ -9617,9 +9617,9 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
9617
9617
|
moduleIds: values.moduleIds
|
|
9618
9618
|
};
|
|
9619
9619
|
try {
|
|
9620
|
-
const updatedCompany = company ? await
|
|
9620
|
+
const updatedCompany = company ? await _chunkULHMVHDSjs.CompanyService.update(payload) : await _chunkULHMVHDSjs.CompanyService.create(payload);
|
|
9621
9621
|
if (onRevalidate) {
|
|
9622
|
-
await onRevalidate(generateUrl({ page:
|
|
9622
|
+
await onRevalidate(generateUrl({ page: _chunkULHMVHDSjs.Modules.Company, id: updatedCompany.id, language: `[locale]` }));
|
|
9623
9623
|
}
|
|
9624
9624
|
if (company && propagateChanges) {
|
|
9625
9625
|
_cookiesnext.setCookie.call(void 0, "reloadData", "true", { path: "/" });
|
|
@@ -9637,15 +9637,15 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
9637
9637
|
}, "onSubmit");
|
|
9638
9638
|
_react.useEffect.call(void 0, () => {
|
|
9639
9639
|
async function fetchFeatures() {
|
|
9640
|
-
const allfeatures = await
|
|
9641
|
-
if (hasRole(
|
|
9640
|
+
const allfeatures = await _chunkULHMVHDSjs.FeatureService.findMany({});
|
|
9641
|
+
if (hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator)) {
|
|
9642
9642
|
setFeatures(allfeatures);
|
|
9643
9643
|
} else {
|
|
9644
9644
|
setFeatures(allfeatures.filter((feature) => feature.isCore));
|
|
9645
9645
|
}
|
|
9646
9646
|
}
|
|
9647
9647
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
|
|
9648
|
-
if (open && features.length === 0 && (hasRole(
|
|
9648
|
+
if (open && features.length === 0 && (hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _251 => _251.env, 'access', _252 => _252.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _253 => _253.toLowerCase, 'call', _254 => _254()]) === "true"))
|
|
9649
9649
|
fetchFeatures();
|
|
9650
9650
|
}, [open, features]);
|
|
9651
9651
|
_react.useEffect.call(void 0, () => {
|
|
@@ -9679,8 +9679,8 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
9679
9679
|
"application/images": [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg"]
|
|
9680
9680
|
}
|
|
9681
9681
|
};
|
|
9682
|
-
const canAccessFeatures = hasRole(
|
|
9683
|
-
const isAdministrator2 = hasRole(
|
|
9682
|
+
const canAccessFeatures = hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _255 => _255.env, 'access', _256 => _256.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _257 => _257.toLowerCase, 'call', _258 => _258()]) === "true";
|
|
9683
|
+
const isAdministrator2 = hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator);
|
|
9684
9684
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
9685
9685
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!company }),
|
|
9686
9686
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -9733,9 +9733,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyEditor, "CompanyEditor");
|
|
|
9733
9733
|
function CompaniesList() {
|
|
9734
9734
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9735
9735
|
const data = useDataListRetriever({
|
|
9736
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9736
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkULHMVHDSjs.CompanyService.findMany(params), "retriever"),
|
|
9737
9737
|
retrieverParams: {},
|
|
9738
|
-
module:
|
|
9738
|
+
module: _chunkULHMVHDSjs.Modules.Company
|
|
9739
9739
|
});
|
|
9740
9740
|
const functions = [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, {}, "create-account")];
|
|
9741
9741
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -9743,7 +9743,7 @@ function CompaniesList() {
|
|
|
9743
9743
|
{
|
|
9744
9744
|
data,
|
|
9745
9745
|
fields: ["name" /* name */, "createdAt" /* createdAt */],
|
|
9746
|
-
tableGeneratorType:
|
|
9746
|
+
tableGeneratorType: _chunkULHMVHDSjs.Modules.Company,
|
|
9747
9747
|
functions,
|
|
9748
9748
|
title: t(`entities.companies`, { count: 2 })
|
|
9749
9749
|
}
|
|
@@ -9764,14 +9764,14 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
9764
9764
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9765
9765
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
9766
9766
|
const [company, setCompany] = _react.useState.call(void 0,
|
|
9767
|
-
dehydratedCompany ?
|
|
9767
|
+
dehydratedCompany ? _chunkULHMVHDSjs.rehydrate.call(void 0, _chunkULHMVHDSjs.Modules.Company, dehydratedCompany) : void 0
|
|
9768
9768
|
);
|
|
9769
9769
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
9770
9770
|
const response = [];
|
|
9771
9771
|
if (company)
|
|
9772
9772
|
response.push({
|
|
9773
9773
|
name: company.name,
|
|
9774
|
-
href: generateUrl({ page:
|
|
9774
|
+
href: generateUrl({ page: _chunkULHMVHDSjs.Modules.Company })
|
|
9775
9775
|
});
|
|
9776
9776
|
return response;
|
|
9777
9777
|
}, "breadcrumb");
|
|
@@ -9781,9 +9781,9 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
9781
9781
|
};
|
|
9782
9782
|
if (company) response.element = company.name;
|
|
9783
9783
|
const functions = [];
|
|
9784
|
-
if (company && (hasRole(
|
|
9784
|
+
if (company && (hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).CompanyAdministrator)) && hasPermissionToModule({ module: _chunkULHMVHDSjs.Modules.Company, action: "delete" /* Delete */ }))
|
|
9785
9785
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleter, { company }, "companyDeleter"));
|
|
9786
|
-
if (hasRole(
|
|
9786
|
+
if (hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module: _chunkULHMVHDSjs.Modules.Company, action: "update" /* Update */ })) {
|
|
9787
9787
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, { company, propagateChanges: setCompany }, "companyEditor"));
|
|
9788
9788
|
}
|
|
9789
9789
|
if (functions.length > 0) response.functions = functions;
|
|
@@ -9875,7 +9875,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, NotificationMenuItem, "NotificationMenuItem
|
|
|
9875
9875
|
var NotificationContext = _react.createContext.call(void 0, void 0);
|
|
9876
9876
|
var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ children }) => {
|
|
9877
9877
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9878
|
-
const router =
|
|
9878
|
+
const router = _chunkV63TFESUjs.useI18nRouter.call(void 0, );
|
|
9879
9879
|
const [notifications, setNotifications] = _react.useState.call(void 0, []);
|
|
9880
9880
|
const [isLoading, setIsLoading] = _react.useState.call(void 0, false);
|
|
9881
9881
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
@@ -9902,7 +9902,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
9902
9902
|
setIsLoading(true);
|
|
9903
9903
|
setError(null);
|
|
9904
9904
|
try {
|
|
9905
|
-
const fetchedNotifications = await
|
|
9905
|
+
const fetchedNotifications = await _chunkULHMVHDSjs.NotificationService.findMany({});
|
|
9906
9906
|
setNotifications(fetchedNotifications);
|
|
9907
9907
|
setLastLoaded(Date.now());
|
|
9908
9908
|
} catch (error2) {
|
|
@@ -9914,8 +9914,8 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
9914
9914
|
}, []);
|
|
9915
9915
|
_react.useEffect.call(void 0, () => {
|
|
9916
9916
|
if (hasInitiallyLoaded || !currentUser) return;
|
|
9917
|
-
if (
|
|
9918
|
-
const isAdmin = _optionalChain([currentUser, 'access', _266 => _266.roles, 'optionalAccess', _267 => _267.some, 'call', _268 => _268((role) => role.id ===
|
|
9917
|
+
if (_chunkV63TFESUjs.isRolesConfigured.call(void 0, )) {
|
|
9918
|
+
const isAdmin = _optionalChain([currentUser, 'access', _266 => _266.roles, 'optionalAccess', _267 => _267.some, 'call', _268 => _268((role) => role.id === _chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator)]);
|
|
9919
9919
|
if (isAdmin) {
|
|
9920
9920
|
setHasInitiallyLoaded(true);
|
|
9921
9921
|
return;
|
|
@@ -9930,7 +9930,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
9930
9930
|
try {
|
|
9931
9931
|
const data = {
|
|
9932
9932
|
data: ids.map((id) => ({
|
|
9933
|
-
type:
|
|
9933
|
+
type: _chunkULHMVHDSjs.Modules.Notification.name,
|
|
9934
9934
|
id,
|
|
9935
9935
|
attributes: {
|
|
9936
9936
|
isRead: true
|
|
@@ -9939,8 +9939,8 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
9939
9939
|
relationships: {}
|
|
9940
9940
|
}))
|
|
9941
9941
|
};
|
|
9942
|
-
await
|
|
9943
|
-
const allNotifications = await
|
|
9942
|
+
await _chunkULHMVHDSjs.NotificationService.markAsRead({ data });
|
|
9943
|
+
const allNotifications = await _chunkULHMVHDSjs.NotificationService.findMany({});
|
|
9944
9944
|
setNotifications(allNotifications);
|
|
9945
9945
|
setLastLoaded(Date.now());
|
|
9946
9946
|
} catch (error2) {
|
|
@@ -10238,18 +10238,18 @@ var RoleProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
10238
10238
|
const generateUrl = usePageUrlGenerator();
|
|
10239
10239
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10240
10240
|
const [role, setRole] = _react.useState.call(void 0,
|
|
10241
|
-
dehydratedRole ?
|
|
10241
|
+
dehydratedRole ? _chunkULHMVHDSjs.rehydrate.call(void 0, _chunkULHMVHDSjs.Modules.Role, dehydratedRole) : void 0
|
|
10242
10242
|
);
|
|
10243
10243
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10244
10244
|
const response = [];
|
|
10245
10245
|
response.push({
|
|
10246
10246
|
name: t(`entities.roles`, { count: 2 }),
|
|
10247
|
-
href: generateUrl({ page:
|
|
10247
|
+
href: generateUrl({ page: _chunkULHMVHDSjs.Modules.Role })
|
|
10248
10248
|
});
|
|
10249
10249
|
if (role)
|
|
10250
10250
|
response.push({
|
|
10251
10251
|
name: role.name,
|
|
10252
|
-
href: generateUrl({ page:
|
|
10252
|
+
href: generateUrl({ page: _chunkULHMVHDSjs.Modules.Role, id: role.id })
|
|
10253
10253
|
});
|
|
10254
10254
|
return response;
|
|
10255
10255
|
}, "breadcrumb");
|
|
@@ -10368,7 +10368,7 @@ function usePageTracker() {
|
|
|
10368
10368
|
const moduleName = pathParts[0];
|
|
10369
10369
|
const entityId = pathParts.length > 1 ? pathParts[1] : null;
|
|
10370
10370
|
if (!entityId) return;
|
|
10371
|
-
const trackablePages =
|
|
10371
|
+
const trackablePages = _chunkV63TFESUjs.getTrackablePages.call(void 0, );
|
|
10372
10372
|
const foundModule = trackablePages.find((mod) => mod.pageUrl === `/${moduleName}`);
|
|
10373
10373
|
if (!foundModule) return;
|
|
10374
10374
|
const baseUrl = `/${moduleName}/${entityId}`;
|
|
@@ -10415,7 +10415,7 @@ function usePushNotifications() {
|
|
|
10415
10415
|
try {
|
|
10416
10416
|
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _280 => _280.id])}`;
|
|
10417
10417
|
const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
|
|
10418
|
-
const registration = await navigator.serviceWorker.register(`${
|
|
10418
|
+
const registration = await navigator.serviceWorker.register(`${_chunkV63TFESUjs.getAppUrl.call(void 0, )}/sw.js`);
|
|
10419
10419
|
let permission = Notification.permission;
|
|
10420
10420
|
if (permission === "default") {
|
|
10421
10421
|
permission = await Notification.requestPermission();
|
|
@@ -10440,7 +10440,7 @@ function usePushNotifications() {
|
|
|
10440
10440
|
};
|
|
10441
10441
|
const subscriptionHash = btoa(JSON.stringify(plainSubscription));
|
|
10442
10442
|
if (lastRegisteredSubscription !== subscriptionHash) {
|
|
10443
|
-
await
|
|
10443
|
+
await _chunkULHMVHDSjs.PushService.register({ data: plainSubscription });
|
|
10444
10444
|
sessionStorage.setItem(sessionKey, subscriptionHash);
|
|
10445
10445
|
}
|
|
10446
10446
|
} catch (error) {
|
|
@@ -10448,7 +10448,7 @@ function usePushNotifications() {
|
|
|
10448
10448
|
}
|
|
10449
10449
|
}
|
|
10450
10450
|
}, "register");
|
|
10451
|
-
if (currentUser && !hasRole(
|
|
10451
|
+
if (currentUser && !hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator)) register();
|
|
10452
10452
|
}, [currentUser]);
|
|
10453
10453
|
}
|
|
10454
10454
|
_chunk7QVYU63Ejs.__name.call(void 0, usePushNotifications, "usePushNotifications");
|
|
@@ -10523,7 +10523,7 @@ function useSocket({ token }) {
|
|
|
10523
10523
|
});
|
|
10524
10524
|
}, "handleMessage");
|
|
10525
10525
|
const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
|
|
10526
|
-
const notification =
|
|
10526
|
+
const notification = _chunkULHMVHDSjs.rehydrate.call(void 0, _chunkULHMVHDSjs.Modules.Notification, data);
|
|
10527
10527
|
if (notification) {
|
|
10528
10528
|
setSocketNotifications((prev) => {
|
|
10529
10529
|
const newNotifications = [...prev, notification];
|
|
@@ -10638,12 +10638,12 @@ function ContentTitle({ module, type, element, functions, className, prioritizeF
|
|
|
10638
10638
|
setClientFunctions(functions);
|
|
10639
10639
|
}, [functions]);
|
|
10640
10640
|
if (!element) return null;
|
|
10641
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
10642
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
10641
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkULHMVHDSjs.cn.call(void 0, `mb-4 flex items-center justify-between gap-x-4 w-full`, className), children: [
|
|
10642
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkULHMVHDSjs.cn.call(void 0, "flex flex-col", prioritizeFunctions ? "min-w-0 shrink" : "w-full"), children: [
|
|
10643
10643
|
type && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10644
10644
|
"div",
|
|
10645
10645
|
{
|
|
10646
|
-
className:
|
|
10646
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
10647
10647
|
"text-muted-foreground text-xl font-light flex gap-x-2 items-center",
|
|
10648
10648
|
prioritizeFunctions && "shrink-0 whitespace-nowrap"
|
|
10649
10649
|
),
|
|
@@ -10653,9 +10653,9 @@ function ContentTitle({ module, type, element, functions, className, prioritizeF
|
|
|
10653
10653
|
]
|
|
10654
10654
|
}
|
|
10655
10655
|
),
|
|
10656
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
10656
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkULHMVHDSjs.cn.call(void 0, "text-primary text-3xl font-semibold", prioritizeFunctions ? "truncate" : "w-full"), children: element })
|
|
10657
10657
|
] }),
|
|
10658
|
-
isClient && clientFunctions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
10658
|
+
isClient && clientFunctions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkULHMVHDSjs.cn.call(void 0, "flex flex-row items-center justify-start", prioritizeFunctions && "shrink-0"), children: clientFunctions })
|
|
10659
10659
|
] });
|
|
10660
10660
|
}
|
|
10661
10661
|
_chunk7QVYU63Ejs.__name.call(void 0, ContentTitle, "ContentTitle");
|
|
@@ -10765,7 +10765,7 @@ function PageContainer({ children, testId, className }) {
|
|
|
10765
10765
|
const headerChildren = useHeaderChildren();
|
|
10766
10766
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex h-full w-full flex-col`, "data-testid": testId, children: [
|
|
10767
10767
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header, { children: headerChildren }),
|
|
10768
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className:
|
|
10768
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className: _chunkULHMVHDSjs.cn.call(void 0, `flex w-full flex-1 flex-col gap-y-4 pt-4 pl-4 pr-0`, className), children })
|
|
10769
10769
|
] });
|
|
10770
10770
|
}
|
|
10771
10771
|
_chunk7QVYU63Ejs.__name.call(void 0, PageContainer, "PageContainer");
|
|
@@ -10874,7 +10874,7 @@ function TabsContainer({
|
|
|
10874
10874
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10875
10875
|
TabsList,
|
|
10876
10876
|
{
|
|
10877
|
-
className:
|
|
10877
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
10878
10878
|
`${style ? `my-4 flex w-full justify-start rounded-none border-b bg-transparent pb-0` : ``}`,
|
|
10879
10879
|
tabsListClassName
|
|
10880
10880
|
),
|
|
@@ -10882,7 +10882,7 @@ function TabsContainer({
|
|
|
10882
10882
|
TabsTrigger,
|
|
10883
10883
|
{
|
|
10884
10884
|
value: tab.label,
|
|
10885
|
-
className:
|
|
10885
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
10886
10886
|
`${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`}`,
|
|
10887
10887
|
tabsTriggerClassName
|
|
10888
10888
|
),
|
|
@@ -10902,7 +10902,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, TabsContainer, "TabsContainer");
|
|
|
10902
10902
|
// src/components/contents/AttributeElement.tsx
|
|
10903
10903
|
|
|
10904
10904
|
function AttributeElement({ inline, title, value, className }) {
|
|
10905
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
10905
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkULHMVHDSjs.cn.call(void 0, `flex ${inline === true ? "flex-row" : "flex-col"} my-1 justify-start`, className), children: [
|
|
10906
10906
|
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${inline === true ? "min-w-48 pr-4" : "w-full"} text-sm font-semibold`, children: title }),
|
|
10907
10907
|
value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col text-sm", children: value })
|
|
10908
10908
|
] });
|
|
@@ -10925,7 +10925,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AllowedUsersDetails, "AllowedUsersDetails")
|
|
|
10925
10925
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
10926
10926
|
|
|
10927
10927
|
|
|
10928
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
10928
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-XMBFXTHB.js"))), {
|
|
10929
10929
|
ssr: false
|
|
10930
10930
|
});
|
|
10931
10931
|
var BlockNoteEditorContainer = React3.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -10977,7 +10977,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, PageContainerContentDetails, "PageContainer
|
|
|
10977
10977
|
|
|
10978
10978
|
function PageContentContainer({ header, details, footer, content, fullBleed }) {
|
|
10979
10979
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
10980
|
-
const isMobile =
|
|
10980
|
+
const isMobile = _chunkULHMVHDSjs.useIsMobile.call(void 0, );
|
|
10981
10981
|
_react.useEffect.call(void 0, () => {
|
|
10982
10982
|
setMounted(true);
|
|
10983
10983
|
}, []);
|
|
@@ -11024,13 +11024,13 @@ function PageContentContainer({ header, details, footer, content, fullBleed }) {
|
|
|
11024
11024
|
{
|
|
11025
11025
|
id: "right-panel",
|
|
11026
11026
|
defaultSize: rightPanelDefaultSize,
|
|
11027
|
-
className:
|
|
11028
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11027
|
+
className: _chunkULHMVHDSjs.cn.call(void 0, "w-full", isMobile ? "pt-4" : ""),
|
|
11028
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkULHMVHDSjs.cn.call(void 0, "h-full overflow-x-hidden overflow-y-auto pt-4", fullBleed ? "" : "px-4 pb-20"), children: content })
|
|
11029
11029
|
}
|
|
11030
11030
|
)
|
|
11031
11031
|
]
|
|
11032
11032
|
}
|
|
11033
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11033
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkULHMVHDSjs.cn.call(void 0, "h-full overflow-x-hidden overflow-y-auto pt-4", fullBleed ? "" : "px-4 pb-20"), children: content }) })
|
|
11034
11034
|
] });
|
|
11035
11035
|
}
|
|
11036
11036
|
_chunk7QVYU63Ejs.__name.call(void 0, PageContentContainer, "PageContentContainer");
|
|
@@ -11140,7 +11140,7 @@ function useJsonApiGet(params) {
|
|
|
11140
11140
|
setLoading(true);
|
|
11141
11141
|
setError(null);
|
|
11142
11142
|
try {
|
|
11143
|
-
const { JsonApiGet } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-
|
|
11143
|
+
const { JsonApiGet } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-CRRH5B5V.js")));
|
|
11144
11144
|
const language = navigator.language.split("-")[0] || "en";
|
|
11145
11145
|
const apiResponse = await JsonApiGet({
|
|
11146
11146
|
classKey: params.classKey,
|
|
@@ -11245,7 +11245,7 @@ function useJsonApiMutation(config) {
|
|
|
11245
11245
|
setLoading(true);
|
|
11246
11246
|
setError(null);
|
|
11247
11247
|
try {
|
|
11248
|
-
const { JsonApiPost, JsonApiPut, JsonApiPatch, JsonApiDelete } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-
|
|
11248
|
+
const { JsonApiPost, JsonApiPut, JsonApiPatch, JsonApiDelete } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-CRRH5B5V.js")));
|
|
11249
11249
|
const language = navigator.language.split("-")[0] || "en";
|
|
11250
11250
|
let apiResponse;
|
|
11251
11251
|
switch (config.method) {
|
|
@@ -11332,14 +11332,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, useJsonApiMutation, "useJsonApiMutation");
|
|
|
11332
11332
|
function useRehydration(classKey, data) {
|
|
11333
11333
|
return _react.useMemo.call(void 0, () => {
|
|
11334
11334
|
if (!data) return null;
|
|
11335
|
-
return
|
|
11335
|
+
return _chunkULHMVHDSjs.RehydrationFactory.rehydrate(classKey, data);
|
|
11336
11336
|
}, [classKey, data]);
|
|
11337
11337
|
}
|
|
11338
11338
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydration, "useRehydration");
|
|
11339
11339
|
function useRehydrationList(classKey, data) {
|
|
11340
11340
|
return _react.useMemo.call(void 0, () => {
|
|
11341
11341
|
if (!data || data.length === 0) return [];
|
|
11342
|
-
return
|
|
11342
|
+
return _chunkULHMVHDSjs.RehydrationFactory.rehydrateList(classKey, data);
|
|
11343
11343
|
}, [classKey, data]);
|
|
11344
11344
|
}
|
|
11345
11345
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydrationList, "useRehydrationList");
|
|
@@ -11379,11 +11379,11 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
11379
11379
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11380
11380
|
Link,
|
|
11381
11381
|
{
|
|
11382
|
-
href: hasRole(
|
|
11382
|
+
href: hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
11383
11383
|
page: "/administration",
|
|
11384
|
-
id: _optionalChain([
|
|
11384
|
+
id: _optionalChain([_chunkULHMVHDSjs.Modules, 'access', _306 => _306.Company, 'access', _307 => _307.pageUrl, 'optionalAccess', _308 => _308.substring, 'call', _309 => _309(1)]),
|
|
11385
11385
|
childPage: company.id
|
|
11386
|
-
}) : generateUrl({ page:
|
|
11386
|
+
}) : generateUrl({ page: _chunkULHMVHDSjs.Modules.Company, id: company.id }),
|
|
11387
11387
|
children: row.getValue("name")
|
|
11388
11388
|
}
|
|
11389
11389
|
);
|
|
@@ -11407,8 +11407,8 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
11407
11407
|
var TRIAL_DAYS = 14;
|
|
11408
11408
|
var GRACE_DAYS = 3;
|
|
11409
11409
|
var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
|
|
11410
|
-
if (!currentUser || !
|
|
11411
|
-
const adminRoleId =
|
|
11410
|
+
if (!currentUser || !_chunkV63TFESUjs.isRolesConfigured.call(void 0, )) return false;
|
|
11411
|
+
const adminRoleId = _chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator;
|
|
11412
11412
|
return !!_optionalChain([currentUser, 'access', _312 => _312.roles, 'optionalAccess', _313 => _313.some, 'call', _314 => _314((role) => role.id === adminRoleId)]);
|
|
11413
11413
|
}, "isAdministrator");
|
|
11414
11414
|
function useSubscriptionStatus() {
|
|
@@ -11498,7 +11498,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
11498
11498
|
header: t(`role.fields.name.label`),
|
|
11499
11499
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
11500
11500
|
const role = row.original.jsonApiData;
|
|
11501
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page:
|
|
11501
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunkULHMVHDSjs.Modules.Role, id: role.id }), children: row.getValue("name") });
|
|
11502
11502
|
}, "cell"),
|
|
11503
11503
|
enableSorting: false,
|
|
11504
11504
|
enableHiding: false
|
|
@@ -11535,7 +11535,7 @@ var useUserSearch = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
|
11535
11535
|
if (search === searchQueryRef.current && users.length > 0) return;
|
|
11536
11536
|
setIsLoading(true);
|
|
11537
11537
|
searchQueryRef.current = search;
|
|
11538
|
-
const fetchedUsers = await
|
|
11538
|
+
const fetchedUsers = await _chunkULHMVHDSjs.UserService.findMany({ search, fetchAll: true });
|
|
11539
11539
|
setUsers(fetchedUsers);
|
|
11540
11540
|
} catch (error) {
|
|
11541
11541
|
console.error("Failed to load users:", error);
|
|
@@ -11601,8 +11601,8 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
11601
11601
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11602
11602
|
Link,
|
|
11603
11603
|
{
|
|
11604
|
-
href: generateUrl({ page:
|
|
11605
|
-
className:
|
|
11604
|
+
href: generateUrl({ page: _chunkULHMVHDSjs.Modules.User, id: user.id }),
|
|
11605
|
+
className: _chunkULHMVHDSjs.cn.call(void 0,
|
|
11606
11606
|
`flex items-center justify-start gap-2`,
|
|
11607
11607
|
user.isDeleted || !user.isActivated ? "text-muted-foreground italic" : ""
|
|
11608
11608
|
),
|
|
@@ -11696,11 +11696,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
11696
11696
|
header: t(`content.fields.name.label`),
|
|
11697
11697
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
11698
11698
|
const content = row.original.jsonApiData;
|
|
11699
|
-
const contentModule = content.contentType ?
|
|
11699
|
+
const contentModule = content.contentType ? _chunkULHMVHDSjs.Modules.findByModelName(content.contentType) : void 0;
|
|
11700
11700
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
11701
11701
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
|
|
11702
11702
|
/* @__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: [
|
|
11703
|
-
contentModule &&
|
|
11703
|
+
contentModule && _chunkULHMVHDSjs.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
11704
11704
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: link, children: content.name })
|
|
11705
11705
|
] }) }),
|
|
11706
11706
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: content.tldr })
|
|
@@ -11837,7 +11837,7 @@ function useOAuthClients() {
|
|
|
11837
11837
|
setIsLoading(true);
|
|
11838
11838
|
setError(null);
|
|
11839
11839
|
try {
|
|
11840
|
-
const fetchedClients = await
|
|
11840
|
+
const fetchedClients = await _chunkULHMVHDSjs.OAuthService.listClients();
|
|
11841
11841
|
setClients(fetchedClients);
|
|
11842
11842
|
} catch (err) {
|
|
11843
11843
|
console.error("[useOAuthClients] Failed to fetch clients:", err);
|
|
@@ -11854,7 +11854,7 @@ function useOAuthClients() {
|
|
|
11854
11854
|
setIsLoading(true);
|
|
11855
11855
|
setError(null);
|
|
11856
11856
|
try {
|
|
11857
|
-
const result = await
|
|
11857
|
+
const result = await _chunkULHMVHDSjs.OAuthService.createClient(data);
|
|
11858
11858
|
addClient(result.client);
|
|
11859
11859
|
if (result.clientSecret) {
|
|
11860
11860
|
setNewClientSecret({
|
|
@@ -11901,7 +11901,7 @@ function useOAuthClient(clientId) {
|
|
|
11901
11901
|
setIsLoading(true);
|
|
11902
11902
|
setError(null);
|
|
11903
11903
|
try {
|
|
11904
|
-
const fetched = await
|
|
11904
|
+
const fetched = await _chunkULHMVHDSjs.OAuthService.getClient({ clientId });
|
|
11905
11905
|
setFetchedClient(fetched);
|
|
11906
11906
|
} catch (err) {
|
|
11907
11907
|
console.error("[useOAuthClient] Failed to fetch client:", err);
|
|
@@ -11921,7 +11921,7 @@ function useOAuthClient(clientId) {
|
|
|
11921
11921
|
setIsLoading(true);
|
|
11922
11922
|
setError(null);
|
|
11923
11923
|
try {
|
|
11924
|
-
const updated = await
|
|
11924
|
+
const updated = await _chunkULHMVHDSjs.OAuthService.updateClient({ clientId, data });
|
|
11925
11925
|
updateClientInStore(updated);
|
|
11926
11926
|
setFetchedClient(updated);
|
|
11927
11927
|
} catch (err) {
|
|
@@ -11940,7 +11940,7 @@ function useOAuthClient(clientId) {
|
|
|
11940
11940
|
setIsLoading(true);
|
|
11941
11941
|
setError(null);
|
|
11942
11942
|
try {
|
|
11943
|
-
await
|
|
11943
|
+
await _chunkULHMVHDSjs.OAuthService.deleteClient({ clientId });
|
|
11944
11944
|
removeClientFromStore(clientId);
|
|
11945
11945
|
} catch (err) {
|
|
11946
11946
|
console.error("[useOAuthClient] Failed to delete client:", err);
|
|
@@ -11956,7 +11956,7 @@ function useOAuthClient(clientId) {
|
|
|
11956
11956
|
setIsLoading(true);
|
|
11957
11957
|
setError(null);
|
|
11958
11958
|
try {
|
|
11959
|
-
const result = await
|
|
11959
|
+
const result = await _chunkULHMVHDSjs.OAuthService.regenerateSecret({ clientId });
|
|
11960
11960
|
setNewClientSecret({
|
|
11961
11961
|
clientId,
|
|
11962
11962
|
secret: result.clientSecret
|
|
@@ -12000,7 +12000,7 @@ function useOAuthConsent(params) {
|
|
|
12000
12000
|
setIsLoading(true);
|
|
12001
12001
|
setError(null);
|
|
12002
12002
|
try {
|
|
12003
|
-
const info = await
|
|
12003
|
+
const info = await _chunkULHMVHDSjs.OAuthService.getAuthorizationInfo(params);
|
|
12004
12004
|
setClientInfo(info);
|
|
12005
12005
|
} catch (err) {
|
|
12006
12006
|
console.error("[useOAuthConsent] Failed to fetch authorization info:", err);
|
|
@@ -12022,7 +12022,7 @@ function useOAuthConsent(params) {
|
|
|
12022
12022
|
setIsSubmitting(true);
|
|
12023
12023
|
setError(null);
|
|
12024
12024
|
try {
|
|
12025
|
-
const result = await
|
|
12025
|
+
const result = await _chunkULHMVHDSjs.OAuthService.approveAuthorization(params);
|
|
12026
12026
|
if (result.redirectUrl) {
|
|
12027
12027
|
window.location.href = result.redirectUrl;
|
|
12028
12028
|
}
|
|
@@ -12036,7 +12036,7 @@ function useOAuthConsent(params) {
|
|
|
12036
12036
|
setIsSubmitting(true);
|
|
12037
12037
|
setError(null);
|
|
12038
12038
|
try {
|
|
12039
|
-
const result = await
|
|
12039
|
+
const result = await _chunkULHMVHDSjs.OAuthService.denyAuthorization(params);
|
|
12040
12040
|
if (result.redirectUrl) {
|
|
12041
12041
|
window.location.href = result.redirectUrl;
|
|
12042
12042
|
}
|
|
@@ -12330,7 +12330,7 @@ function Register() {
|
|
|
12330
12330
|
const { setComponentType } = useAuthContext();
|
|
12331
12331
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
12332
12332
|
const inviteCode = searchParams.get("invite");
|
|
12333
|
-
const registrationMode =
|
|
12333
|
+
const registrationMode = _chunkV63TFESUjs.getRegistrationMode.call(void 0, );
|
|
12334
12334
|
const [showConfirmation, setShowConfirmation] = _react.useState.call(void 0, false);
|
|
12335
12335
|
const [inviteValidated, setInviteValidated] = _react.useState.call(void 0, false);
|
|
12336
12336
|
const [inviteError, setInviteError] = _react.useState.call(void 0, "");
|
|
@@ -12379,7 +12379,7 @@ function Register() {
|
|
|
12379
12379
|
}
|
|
12380
12380
|
setIsValidatingInvite(true);
|
|
12381
12381
|
try {
|
|
12382
|
-
const result = await
|
|
12382
|
+
const result = await _chunkULHMVHDSjs.WaitlistService.validateInvite(inviteCode);
|
|
12383
12383
|
if (result && result.valid) {
|
|
12384
12384
|
setInviteValidated(true);
|
|
12385
12385
|
form.setValue("email", result.email);
|
|
@@ -12412,7 +12412,7 @@ function Register() {
|
|
|
12412
12412
|
referralCode: _nullishCoalesce(referralCode, () => ( void 0))
|
|
12413
12413
|
};
|
|
12414
12414
|
console.log("[REFERRAL] Register.tsx - payload.referralCode:", payload.referralCode);
|
|
12415
|
-
await
|
|
12415
|
+
await _chunkULHMVHDSjs.AuthService.register(payload);
|
|
12416
12416
|
clearReferralCode();
|
|
12417
12417
|
setShowConfirmation(true);
|
|
12418
12418
|
} catch (e) {
|
|
@@ -12510,16 +12510,16 @@ function Register() {
|
|
|
12510
12510
|
),
|
|
12511
12511
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, GdprConsentSection, { form }),
|
|
12512
12512
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "mt-4 w-full", type: "submit", children: t(`auth.buttons.register`) }),
|
|
12513
|
-
(registrationMode !== "waitlist" || inviteValidated) && (
|
|
12513
|
+
(registrationMode !== "waitlist" || inviteValidated) && (_chunkV63TFESUjs.isGoogleAuthEnabled.call(void 0, ) || _chunkV63TFESUjs.isDiscordAuthEnabled.call(void 0, )) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4 pt-4", children: [
|
|
12514
12514
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
12515
12515
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-full border-t" }) }),
|
|
12516
12516
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative flex justify-center text-xs uppercase", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "bg-card px-2 text-muted-foreground", children: t("auth.buttons.or") }) })
|
|
12517
12517
|
] }),
|
|
12518
12518
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
12519
|
-
|
|
12519
|
+
_chunkV63TFESUjs.isGoogleAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12520
12520
|
Link,
|
|
12521
12521
|
{
|
|
12522
|
-
href: `${
|
|
12522
|
+
href: `${_chunkV63TFESUjs.getApiUrl.call(void 0, )}auth/google${buildOAuthQueryParams(inviteCode, referralCode)}`,
|
|
12523
12523
|
className: "flex w-full",
|
|
12524
12524
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
12525
12525
|
Button,
|
|
@@ -12564,10 +12564,10 @@ function Register() {
|
|
|
12564
12564
|
)
|
|
12565
12565
|
}
|
|
12566
12566
|
),
|
|
12567
|
-
|
|
12567
|
+
_chunkV63TFESUjs.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12568
12568
|
Link,
|
|
12569
12569
|
{
|
|
12570
|
-
href: `${
|
|
12570
|
+
href: `${_chunkV63TFESUjs.getApiUrl.call(void 0, )}auth/discord${buildOAuthQueryParams(inviteCode, referralCode)}`,
|
|
12571
12571
|
className: "flex w-full",
|
|
12572
12572
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Button, { className: "w-full", variant: "outline", type: "button", children: [
|
|
12573
12573
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { className: "mr-2 h-5 w-5", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z" }) }),
|
|
@@ -12692,7 +12692,7 @@ function BackupCodesDialog({ remainingCodes, onRegenerate, trigger }) {
|
|
|
12692
12692
|
const handleGenerate = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
12693
12693
|
setIsLoading(true);
|
|
12694
12694
|
try {
|
|
12695
|
-
const newCodes = await
|
|
12695
|
+
const newCodes = await _chunkULHMVHDSjs.TwoFactorService.generateBackupCodes();
|
|
12696
12696
|
setCodes(newCodes);
|
|
12697
12697
|
setShowCodes(true);
|
|
12698
12698
|
onRegenerate();
|
|
@@ -12705,7 +12705,7 @@ function BackupCodesDialog({ remainingCodes, onRegenerate, trigger }) {
|
|
|
12705
12705
|
const handleCopyAll = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
12706
12706
|
const text = codes.join("\n");
|
|
12707
12707
|
await navigator.clipboard.writeText(text);
|
|
12708
|
-
|
|
12708
|
+
_chunkULHMVHDSjs.showToast.call(void 0, t("auth.two_factor.codes_copied"));
|
|
12709
12709
|
}, "handleCopyAll");
|
|
12710
12710
|
const handleDownload = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
12711
12711
|
const text = `Backup Codes
|
|
@@ -12860,8 +12860,8 @@ function DisableTwoFactorDialog({ onSuccess, trigger }) {
|
|
|
12860
12860
|
setIsLoading(true);
|
|
12861
12861
|
setError(void 0);
|
|
12862
12862
|
try {
|
|
12863
|
-
await
|
|
12864
|
-
|
|
12863
|
+
await _chunkULHMVHDSjs.TwoFactorService.disable({ code });
|
|
12864
|
+
_chunkULHMVHDSjs.showToast.call(void 0, t("auth.two_factor.disabled_success"));
|
|
12865
12865
|
setOpen(false);
|
|
12866
12866
|
onSuccess();
|
|
12867
12867
|
} catch (err) {
|
|
@@ -12907,8 +12907,8 @@ function PasskeyList({ passkeys, onRefresh }) {
|
|
|
12907
12907
|
const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (passkey) => {
|
|
12908
12908
|
setIsLoading(true);
|
|
12909
12909
|
try {
|
|
12910
|
-
await
|
|
12911
|
-
|
|
12910
|
+
await _chunkULHMVHDSjs.TwoFactorService.deletePasskey({ id: passkey.id });
|
|
12911
|
+
_chunkULHMVHDSjs.showToast.call(void 0, t("common.success"), {
|
|
12912
12912
|
description: t("auth.two_factor.passkey_deleted")
|
|
12913
12913
|
});
|
|
12914
12914
|
onRefresh();
|
|
@@ -12925,11 +12925,11 @@ function PasskeyList({ passkeys, onRefresh }) {
|
|
|
12925
12925
|
if (!selectedPasskey || !newName.trim()) return;
|
|
12926
12926
|
setIsLoading(true);
|
|
12927
12927
|
try {
|
|
12928
|
-
await
|
|
12928
|
+
await _chunkULHMVHDSjs.TwoFactorService.renamePasskey({
|
|
12929
12929
|
id: selectedPasskey.id,
|
|
12930
12930
|
name: newName.trim()
|
|
12931
12931
|
});
|
|
12932
|
-
|
|
12932
|
+
_chunkULHMVHDSjs.showToast.call(void 0, t("common.success"), {
|
|
12933
12933
|
description: t("auth.two_factor.passkey_renamed")
|
|
12934
12934
|
});
|
|
12935
12935
|
setRenameDialogOpen(false);
|
|
@@ -13029,23 +13029,23 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
|
|
|
13029
13029
|
if (!name.trim()) return;
|
|
13030
13030
|
setIsLoading(true);
|
|
13031
13031
|
try {
|
|
13032
|
-
const registrationData = await
|
|
13032
|
+
const registrationData = await _chunkULHMVHDSjs.TwoFactorService.getPasskeyRegistrationOptions({
|
|
13033
13033
|
id: _uuid.v4.call(void 0, ),
|
|
13034
13034
|
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _348 => _348.email]), () => ( "")),
|
|
13035
13035
|
userDisplayName: _optionalChain([currentUser, 'optionalAccess', _349 => _349.name])
|
|
13036
13036
|
});
|
|
13037
13037
|
const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
|
|
13038
|
-
await
|
|
13038
|
+
await _chunkULHMVHDSjs.TwoFactorService.verifyPasskeyRegistration({
|
|
13039
13039
|
id: _uuid.v4.call(void 0, ),
|
|
13040
13040
|
pendingId: registrationData.pendingId,
|
|
13041
13041
|
name: name.trim(),
|
|
13042
13042
|
response: credential
|
|
13043
13043
|
});
|
|
13044
|
-
const status = await
|
|
13044
|
+
const status = await _chunkULHMVHDSjs.TwoFactorService.getStatus();
|
|
13045
13045
|
if (!status.isEnabled) {
|
|
13046
|
-
await
|
|
13046
|
+
await _chunkULHMVHDSjs.TwoFactorService.enable({ id: _uuid.v4.call(void 0, ), preferredMethod: "passkey" });
|
|
13047
13047
|
}
|
|
13048
|
-
|
|
13048
|
+
_chunkULHMVHDSjs.showToast.call(void 0, t("common.success"), {
|
|
13049
13049
|
description: t("auth.two_factor.passkey_registered")
|
|
13050
13050
|
});
|
|
13051
13051
|
setName("");
|
|
@@ -13096,8 +13096,8 @@ function TotpAuthenticatorList({ authenticators, onDelete }) {
|
|
|
13096
13096
|
const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (id) => {
|
|
13097
13097
|
setDeletingId(id);
|
|
13098
13098
|
try {
|
|
13099
|
-
await
|
|
13100
|
-
|
|
13099
|
+
await _chunkULHMVHDSjs.TwoFactorService.deleteTotpAuthenticator({ id });
|
|
13100
|
+
_chunkULHMVHDSjs.showToast.call(void 0, t("common.success"), {
|
|
13101
13101
|
description: t("auth.two_factor.authenticator_removed")
|
|
13102
13102
|
});
|
|
13103
13103
|
onDelete();
|
|
@@ -13180,7 +13180,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
13180
13180
|
if (!name.trim()) return;
|
|
13181
13181
|
setIsLoading(true);
|
|
13182
13182
|
try {
|
|
13183
|
-
const setup = await
|
|
13183
|
+
const setup = await _chunkULHMVHDSjs.TwoFactorService.setupTotp({
|
|
13184
13184
|
id: _uuid.v4.call(void 0, ),
|
|
13185
13185
|
name: name.trim(),
|
|
13186
13186
|
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _350 => _350.email]), () => ( ""))
|
|
@@ -13198,16 +13198,16 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
13198
13198
|
setIsLoading(true);
|
|
13199
13199
|
setVerifyError(void 0);
|
|
13200
13200
|
try {
|
|
13201
|
-
await
|
|
13201
|
+
await _chunkULHMVHDSjs.TwoFactorService.verifyTotpSetup({
|
|
13202
13202
|
id: _uuid.v4.call(void 0, ),
|
|
13203
13203
|
authenticatorId,
|
|
13204
13204
|
code
|
|
13205
13205
|
});
|
|
13206
|
-
const status = await
|
|
13206
|
+
const status = await _chunkULHMVHDSjs.TwoFactorService.getStatus();
|
|
13207
13207
|
if (!status.isEnabled) {
|
|
13208
|
-
await
|
|
13208
|
+
await _chunkULHMVHDSjs.TwoFactorService.enable({ id: _uuid.v4.call(void 0, ), preferredMethod: "totp" });
|
|
13209
13209
|
}
|
|
13210
|
-
|
|
13210
|
+
_chunkULHMVHDSjs.showToast.call(void 0, t("common.success"), {
|
|
13211
13211
|
description: t("auth.two_factor.authenticator_added")
|
|
13212
13212
|
});
|
|
13213
13213
|
setOpen(false);
|
|
@@ -13282,9 +13282,9 @@ function TwoFactorSettings() {
|
|
|
13282
13282
|
const loadStatus = _react.useCallback.call(void 0, async () => {
|
|
13283
13283
|
try {
|
|
13284
13284
|
const [statusData, authenticatorsList, passkeysList] = await Promise.all([
|
|
13285
|
-
|
|
13286
|
-
|
|
13287
|
-
|
|
13285
|
+
_chunkULHMVHDSjs.TwoFactorService.getStatus(),
|
|
13286
|
+
_chunkULHMVHDSjs.TwoFactorService.listTotpAuthenticators(),
|
|
13287
|
+
_chunkULHMVHDSjs.TwoFactorService.listPasskeys()
|
|
13288
13288
|
]);
|
|
13289
13289
|
setStatus(statusData);
|
|
13290
13290
|
setAuthenticators(authenticatorsList);
|
|
@@ -13305,8 +13305,8 @@ function TwoFactorSettings() {
|
|
|
13305
13305
|
setIsEnabling(true);
|
|
13306
13306
|
try {
|
|
13307
13307
|
const preferredMethod = authenticators.length > 0 ? "totp" : "passkey";
|
|
13308
|
-
await
|
|
13309
|
-
|
|
13308
|
+
await _chunkULHMVHDSjs.TwoFactorService.enable({ id: _uuid.v4.call(void 0, ), preferredMethod });
|
|
13309
|
+
_chunkULHMVHDSjs.showToast.call(void 0, t("common.success"), { description: t("auth.two_factor.enabled_success") });
|
|
13310
13310
|
await loadStatus();
|
|
13311
13311
|
} catch (error) {
|
|
13312
13312
|
errorToast({ title: t("common.errors.error"), error });
|
|
@@ -13396,11 +13396,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, SecurityContainer, "SecurityContainer");
|
|
|
13396
13396
|
// src/features/auth/components/buttons/GoogleSignInButton.tsx
|
|
13397
13397
|
|
|
13398
13398
|
function GoogleSignInButton({ referralCode }) {
|
|
13399
|
-
if (!
|
|
13399
|
+
if (!_chunkV63TFESUjs.isGoogleAuthEnabled.call(void 0, )) {
|
|
13400
13400
|
return null;
|
|
13401
13401
|
}
|
|
13402
13402
|
const buildGoogleOAuthUrl = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
13403
|
-
const baseUrl = `${
|
|
13403
|
+
const baseUrl = `${_chunkV63TFESUjs.getApiUrl.call(void 0, )}auth/google`;
|
|
13404
13404
|
if (!referralCode) return baseUrl;
|
|
13405
13405
|
return `${baseUrl}?referral=${encodeURIComponent(referralCode)}`;
|
|
13406
13406
|
}, "buildGoogleOAuthUrl");
|
|
@@ -13462,8 +13462,8 @@ function LandingComponent() {
|
|
|
13462
13462
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { className: "flex w-full justify-center text-center text-sm", children: t(`common.description`) })
|
|
13463
13463
|
] }),
|
|
13464
13464
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardFooter, { className: "mt-4 flex w-full flex-col justify-between gap-y-4", children: [
|
|
13465
|
-
|
|
13466
|
-
|
|
13465
|
+
_chunkV63TFESUjs.isInternalAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
13466
|
+
_chunkV63TFESUjs.isRegistrationAllowed.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13467
13467
|
Link,
|
|
13468
13468
|
{
|
|
13469
13469
|
href: "#",
|
|
@@ -13474,8 +13474,8 @@ function LandingComponent() {
|
|
|
13474
13474
|
),
|
|
13475
13475
|
/* @__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`) }) })
|
|
13476
13476
|
] }),
|
|
13477
|
-
|
|
13478
|
-
|
|
13477
|
+
_chunkV63TFESUjs.isGoogleAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GoogleSignInButton, {}),
|
|
13478
|
+
_chunkV63TFESUjs.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: `${_chunkV63TFESUjs.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" }) })
|
|
13479
13479
|
] })
|
|
13480
13480
|
] });
|
|
13481
13481
|
}
|
|
@@ -13500,7 +13500,7 @@ function AcceptInvitation() {
|
|
|
13500
13500
|
const payload = {
|
|
13501
13501
|
code
|
|
13502
13502
|
};
|
|
13503
|
-
await
|
|
13503
|
+
await _chunkULHMVHDSjs.AuthService.validateCode(payload);
|
|
13504
13504
|
} catch (e) {
|
|
13505
13505
|
setError(e instanceof Error ? e.message : String(e));
|
|
13506
13506
|
errorToast({ title: t(`common.errors.error`), error: e });
|
|
@@ -13538,9 +13538,9 @@ function AcceptInvitation() {
|
|
|
13538
13538
|
code: _optionalChain([params, 'optionalAccess', _354 => _354.code]),
|
|
13539
13539
|
password: values.password
|
|
13540
13540
|
};
|
|
13541
|
-
await
|
|
13541
|
+
await _chunkULHMVHDSjs.AuthService.acceptInvitation(payload);
|
|
13542
13542
|
setShowConfirmation(true);
|
|
13543
|
-
|
|
13543
|
+
_chunkULHMVHDSjs.showToast.call(void 0, t("auth.account_activated"), {
|
|
13544
13544
|
description: t("auth.account_activated_description")
|
|
13545
13545
|
});
|
|
13546
13546
|
setTimeout(() => {
|
|
@@ -13600,10 +13600,10 @@ function ActivateAccount() {
|
|
|
13600
13600
|
const payload = {
|
|
13601
13601
|
activationCode: code
|
|
13602
13602
|
};
|
|
13603
|
-
await
|
|
13603
|
+
await _chunkULHMVHDSjs.AuthService.activate(payload);
|
|
13604
13604
|
setShowConfirmation(true);
|
|
13605
13605
|
setParams(void 0);
|
|
13606
|
-
|
|
13606
|
+
_chunkULHMVHDSjs.showToast.call(void 0, t("auth.account_activated"), {
|
|
13607
13607
|
description: t("auth.account_activated_description")
|
|
13608
13608
|
});
|
|
13609
13609
|
setTimeout(() => {
|
|
@@ -13638,13 +13638,13 @@ _chunk7QVYU63Ejs.__name.call(void 0, ActivateAccount, "ActivateAccount");
|
|
|
13638
13638
|
|
|
13639
13639
|
function Cookies({ dehydratedAuth, page }) {
|
|
13640
13640
|
const { setUser } = useCurrentUserContext();
|
|
13641
|
-
const router =
|
|
13641
|
+
const router = _chunkV63TFESUjs.useI18nRouter.call(void 0, );
|
|
13642
13642
|
const [hasSaved, setHasSaved] = _react.useState.call(void 0, false);
|
|
13643
13643
|
_react.useEffect.call(void 0, () => {
|
|
13644
13644
|
if (hasSaved) return;
|
|
13645
13645
|
async function saveTokenOnServer() {
|
|
13646
|
-
await
|
|
13647
|
-
const auth =
|
|
13646
|
+
await _chunkULHMVHDSjs.AuthService.saveToken({ dehydratedAuth });
|
|
13647
|
+
const auth = _chunkULHMVHDSjs.rehydrate.call(void 0, _chunkULHMVHDSjs.Modules.Auth, dehydratedAuth);
|
|
13648
13648
|
setUser(auth.user);
|
|
13649
13649
|
setHasSaved(true);
|
|
13650
13650
|
if (page) {
|
|
@@ -13687,7 +13687,7 @@ function ForgotPassword() {
|
|
|
13687
13687
|
const payload = {
|
|
13688
13688
|
email: values.email
|
|
13689
13689
|
};
|
|
13690
|
-
await
|
|
13690
|
+
await _chunkULHMVHDSjs.AuthService.initialiseForgotPassword(payload);
|
|
13691
13691
|
setShowConfirmation(true);
|
|
13692
13692
|
} catch (e) {
|
|
13693
13693
|
errorToast({ error: e });
|
|
@@ -13744,7 +13744,7 @@ function Login() {
|
|
|
13744
13744
|
const { setUser } = useCurrentUserContext();
|
|
13745
13745
|
const { setComponentType, setPendingTwoFactor } = useAuthContext();
|
|
13746
13746
|
const generateUrl = usePageUrlGenerator();
|
|
13747
|
-
const i18nRouter =
|
|
13747
|
+
const i18nRouter = _chunkV63TFESUjs.useI18nRouter.call(void 0, );
|
|
13748
13748
|
const nativeRouter = _navigation.useRouter.call(void 0, );
|
|
13749
13749
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
13750
13750
|
const callbackUrl = searchParams.get("callbackUrl");
|
|
@@ -13760,7 +13760,7 @@ function Login() {
|
|
|
13760
13760
|
}
|
|
13761
13761
|
}, []);
|
|
13762
13762
|
const buildDiscordOAuthUrl = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
13763
|
-
const baseUrl = `${
|
|
13763
|
+
const baseUrl = `${_chunkV63TFESUjs.getApiUrl.call(void 0, )}auth/discord`;
|
|
13764
13764
|
if (!referralCode) return baseUrl;
|
|
13765
13765
|
return `${baseUrl}?referral=${encodeURIComponent(referralCode)}`;
|
|
13766
13766
|
}, "buildDiscordOAuthUrl");
|
|
@@ -13779,7 +13779,7 @@ function Login() {
|
|
|
13779
13779
|
});
|
|
13780
13780
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
13781
13781
|
try {
|
|
13782
|
-
const response = await
|
|
13782
|
+
const response = await _chunkULHMVHDSjs.AuthService.login({
|
|
13783
13783
|
email: values.email,
|
|
13784
13784
|
password: values.password
|
|
13785
13785
|
});
|
|
@@ -13813,7 +13813,7 @@ function Login() {
|
|
|
13813
13813
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { className: "text-sm", children: t(`auth.login_description`) })
|
|
13814
13814
|
] }),
|
|
13815
13815
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), children: [
|
|
13816
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { children:
|
|
13816
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { children: _chunkV63TFESUjs.isInternalAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
13817
13817
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13818
13818
|
FormInput,
|
|
13819
13819
|
{
|
|
@@ -13838,8 +13838,8 @@ function Login() {
|
|
|
13838
13838
|
/* @__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`) })
|
|
13839
13839
|
] }) }),
|
|
13840
13840
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardFooter, { className: "flex w-full flex-col gap-y-4 mt-4", children: [
|
|
13841
|
-
|
|
13842
|
-
|
|
13841
|
+
_chunkV63TFESUjs.isGoogleAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GoogleSignInButton, { referralCode }),
|
|
13842
|
+
_chunkV63TFESUjs.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: buildDiscordOAuthUrl(), className: "flex w-full justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: "Login with Discord" }) }),
|
|
13843
13843
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row justify-between", children: [
|
|
13844
13844
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13845
13845
|
Link,
|
|
@@ -13888,7 +13888,7 @@ function Logout({ storageKeys }) {
|
|
|
13888
13888
|
if (_optionalChain([storageKeys, 'optionalAccess', _355 => _355.length])) {
|
|
13889
13889
|
clearClientStorage(storageKeys);
|
|
13890
13890
|
}
|
|
13891
|
-
await
|
|
13891
|
+
await _chunkULHMVHDSjs.AuthService.logout();
|
|
13892
13892
|
window.location.href = generateUrl({ page: `/` });
|
|
13893
13893
|
}, "logOut");
|
|
13894
13894
|
logOut();
|
|
@@ -13903,7 +13903,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, Logout, "Logout");
|
|
|
13903
13903
|
function RefreshUser() {
|
|
13904
13904
|
const { setUser } = useCurrentUserContext();
|
|
13905
13905
|
const loadFullUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
13906
|
-
const fullUser = await
|
|
13906
|
+
const fullUser = await _chunkULHMVHDSjs.UserService.findFullUser();
|
|
13907
13907
|
if (fullUser) {
|
|
13908
13908
|
setUser(fullUser);
|
|
13909
13909
|
const token = {
|
|
@@ -13915,7 +13915,7 @@ function RefreshUser() {
|
|
|
13915
13915
|
return { id: module.id, permissions: module.permissions };
|
|
13916
13916
|
})
|
|
13917
13917
|
};
|
|
13918
|
-
await _optionalChain([
|
|
13918
|
+
await _optionalChain([_chunkULHMVHDSjs.getTokenHandler.call(void 0, ), 'optionalAccess', _362 => _362.updateToken, 'call', _363 => _363(token)]);
|
|
13919
13919
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
13920
13920
|
}
|
|
13921
13921
|
}, "loadFullUser");
|
|
@@ -13946,7 +13946,7 @@ function ResetPassword() {
|
|
|
13946
13946
|
const payload = {
|
|
13947
13947
|
code
|
|
13948
13948
|
};
|
|
13949
|
-
await
|
|
13949
|
+
await _chunkULHMVHDSjs.AuthService.validateCode(payload);
|
|
13950
13950
|
} catch (e) {
|
|
13951
13951
|
setError(e instanceof Error ? e.message : String(e));
|
|
13952
13952
|
errorToast({ title: t(`common.errors.error`), error: e });
|
|
@@ -13984,9 +13984,9 @@ function ResetPassword() {
|
|
|
13984
13984
|
code: _optionalChain([params, 'optionalAccess', _365 => _365.code]),
|
|
13985
13985
|
password: values.password
|
|
13986
13986
|
};
|
|
13987
|
-
await
|
|
13987
|
+
await _chunkULHMVHDSjs.AuthService.resetPassword(payload);
|
|
13988
13988
|
setShowConfirmation(true);
|
|
13989
|
-
|
|
13989
|
+
_chunkULHMVHDSjs.showToast.call(void 0, t(`auth.reset_success`), {
|
|
13990
13990
|
description: t(`auth.reset_success_description`)
|
|
13991
13991
|
});
|
|
13992
13992
|
setTimeout(() => {
|
|
@@ -14032,9 +14032,9 @@ function PasskeyButton({ pendingToken, onSuccess, onError, disabled = false }) {
|
|
|
14032
14032
|
const handleClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
14033
14033
|
setIsLoading(true);
|
|
14034
14034
|
try {
|
|
14035
|
-
const { pendingId, options } = await
|
|
14035
|
+
const { pendingId, options } = await _chunkULHMVHDSjs.TwoFactorService.getPasskeyAuthOptions({ pendingToken });
|
|
14036
14036
|
const credential = await _browser.startAuthentication.call(void 0, { optionsJSON: options });
|
|
14037
|
-
const auth = await
|
|
14037
|
+
const auth = await _chunkULHMVHDSjs.TwoFactorService.verifyPasskey({
|
|
14038
14038
|
id: _uuid.v4.call(void 0, ),
|
|
14039
14039
|
pendingToken,
|
|
14040
14040
|
pendingId,
|
|
@@ -14069,7 +14069,7 @@ function TwoFactorChallenge() {
|
|
|
14069
14069
|
const { setUser } = useCurrentUserContext();
|
|
14070
14070
|
const { pendingTwoFactor, setPendingTwoFactor } = useAuthContext();
|
|
14071
14071
|
const generateUrl = usePageUrlGenerator();
|
|
14072
|
-
const i18nRouter =
|
|
14072
|
+
const i18nRouter = _chunkV63TFESUjs.useI18nRouter.call(void 0, );
|
|
14073
14073
|
const nativeRouter = _navigation.useRouter.call(void 0, );
|
|
14074
14074
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
14075
14075
|
const callbackUrl = searchParams.get("callbackUrl");
|
|
@@ -14093,7 +14093,7 @@ function TwoFactorChallenge() {
|
|
|
14093
14093
|
setIsVerifying(true);
|
|
14094
14094
|
setTotpError(void 0);
|
|
14095
14095
|
try {
|
|
14096
|
-
const auth = await
|
|
14096
|
+
const auth = await _chunkULHMVHDSjs.TwoFactorService.verifyTotp({
|
|
14097
14097
|
id: _uuid.v4.call(void 0, ),
|
|
14098
14098
|
pendingToken: pendingTwoFactor.pendingToken,
|
|
14099
14099
|
code
|
|
@@ -14123,7 +14123,7 @@ function TwoFactorChallenge() {
|
|
|
14123
14123
|
setIsVerifying(true);
|
|
14124
14124
|
setBackupError(void 0);
|
|
14125
14125
|
try {
|
|
14126
|
-
const auth = await
|
|
14126
|
+
const auth = await _chunkULHMVHDSjs.TwoFactorService.verifyBackupCode({
|
|
14127
14127
|
id: _uuid.v4.call(void 0, ),
|
|
14128
14128
|
pendingToken: pendingTwoFactor.pendingToken,
|
|
14129
14129
|
code: backupCode
|
|
@@ -14214,12 +14214,12 @@ function ContentsList({ contentList }) {
|
|
|
14214
14214
|
_chunk7QVYU63Ejs.__name.call(void 0, ContentsList, "ContentsList");
|
|
14215
14215
|
function ContentsListElement({ content }) {
|
|
14216
14216
|
const generateUrl = usePageUrlGenerator();
|
|
14217
|
-
const contentModule = content.contentType ?
|
|
14217
|
+
const contentModule = content.contentType ? _chunkULHMVHDSjs.Modules.findByModelName(content.contentType) : void 0;
|
|
14218
14218
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
14219
14219
|
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: [
|
|
14220
14220
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCard, { children: [
|
|
14221
14221
|
/* @__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: [
|
|
14222
|
-
contentModule &&
|
|
14222
|
+
contentModule && _chunkULHMVHDSjs.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
14223
14223
|
content.name
|
|
14224
14224
|
] }) }),
|
|
14225
14225
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCardContent, { className: "flex max-h-96 w-96 flex-col gap-y-4 overflow-y-auto", children: [
|
|
@@ -14238,8 +14238,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListElement, "ContentsListElement")
|
|
|
14238
14238
|
function ContentsListById({ contentIds }) {
|
|
14239
14239
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
14240
14240
|
const data = useDataListRetriever({
|
|
14241
|
-
module:
|
|
14242
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
14241
|
+
module: _chunkULHMVHDSjs.Modules.Content,
|
|
14242
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkULHMVHDSjs.ContentService.findMany(params), "retriever"),
|
|
14243
14243
|
retrieverParams: { contentIds }
|
|
14244
14244
|
});
|
|
14245
14245
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -14247,7 +14247,7 @@ function ContentsListById({ contentIds }) {
|
|
|
14247
14247
|
{
|
|
14248
14248
|
data,
|
|
14249
14249
|
fields: ["name" /* name */, "authors" /* authors */, "updatedAt" /* updatedAt */],
|
|
14250
|
-
tableGeneratorType:
|
|
14250
|
+
tableGeneratorType: _chunkULHMVHDSjs.Modules.Content,
|
|
14251
14251
|
title: t(`common.relevant`)
|
|
14252
14252
|
}
|
|
14253
14253
|
);
|
|
@@ -14260,8 +14260,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListById, "ContentsListById");
|
|
|
14260
14260
|
function RelevantContentsList({ id }) {
|
|
14261
14261
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
14262
14262
|
const data = useDataListRetriever({
|
|
14263
|
-
module:
|
|
14264
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
14263
|
+
module: _chunkULHMVHDSjs.Modules.Content,
|
|
14264
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkULHMVHDSjs.ContentService.findRelevant(params), "retriever"),
|
|
14265
14265
|
retrieverParams: { id }
|
|
14266
14266
|
});
|
|
14267
14267
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -14269,7 +14269,7 @@ function RelevantContentsList({ id }) {
|
|
|
14269
14269
|
{
|
|
14270
14270
|
data,
|
|
14271
14271
|
fields: ["name" /* name */, "authors" /* authors */, "relevance" /* relevance */, "updatedAt" /* updatedAt */],
|
|
14272
|
-
tableGeneratorType:
|
|
14272
|
+
tableGeneratorType: _chunkULHMVHDSjs.Modules.Content,
|
|
14273
14273
|
title: t(`common.relevant`)
|
|
14274
14274
|
}
|
|
14275
14275
|
);
|
|
@@ -14322,12 +14322,12 @@ function NotificationsList({ archived }) {
|
|
|
14322
14322
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
14323
14323
|
const generateUrl = usePageUrlGenerator();
|
|
14324
14324
|
const data = useDataListRetriever({
|
|
14325
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
14325
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkULHMVHDSjs.NotificationService.findMany(params), "retriever"),
|
|
14326
14326
|
retrieverParams: { isArchived: archived },
|
|
14327
|
-
module:
|
|
14327
|
+
module: _chunkULHMVHDSjs.Modules.Notification
|
|
14328
14328
|
});
|
|
14329
14329
|
const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
|
|
14330
|
-
await
|
|
14330
|
+
await _chunkULHMVHDSjs.NotificationService.archive({ id: notification.id });
|
|
14331
14331
|
data.removeElement(notification);
|
|
14332
14332
|
}, "archiveNotification");
|
|
14333
14333
|
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: [
|
|
@@ -14341,7 +14341,7 @@ function NotificationsList({ archived }) {
|
|
|
14341
14341
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _366 => _366.data, 'optionalAccess', _367 => _367.map, 'call', _368 => _368((notification) => {
|
|
14342
14342
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
14343
14343
|
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: [
|
|
14344
|
-
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:
|
|
14344
|
+
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: _chunkULHMVHDSjs.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" }),
|
|
14345
14345
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
14346
14346
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
14347
14347
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
@@ -14488,7 +14488,7 @@ function NotificationModalContent({ isOpen, setIsOpen }) {
|
|
|
14488
14488
|
batch.forEach((notification) => {
|
|
14489
14489
|
addNotification(notification);
|
|
14490
14490
|
const toastNotification = generateToastNotification(notification, t, generateUrl);
|
|
14491
|
-
|
|
14491
|
+
_chunkULHMVHDSjs.showToast.call(void 0, toastNotification.title, {
|
|
14492
14492
|
description: toastNotification.description,
|
|
14493
14493
|
action: toastNotification.action
|
|
14494
14494
|
});
|
|
@@ -14588,13 +14588,13 @@ _chunk7QVYU63Ejs.__name.call(void 0, PushNotificationProvider, "PushNotification
|
|
|
14588
14588
|
|
|
14589
14589
|
// src/features/referral/utils/referral-cookie.ts
|
|
14590
14590
|
function setReferralCode(code) {
|
|
14591
|
-
const config =
|
|
14591
|
+
const config = _chunkV63TFESUjs.getReferralConfig.call(void 0, );
|
|
14592
14592
|
const maxAge = config.cookieDays * 24 * 60 * 60;
|
|
14593
14593
|
document.cookie = `${config.cookieName}=${encodeURIComponent(code)}; path=/; max-age=${maxAge}; SameSite=Lax`;
|
|
14594
14594
|
}
|
|
14595
14595
|
_chunk7QVYU63Ejs.__name.call(void 0, setReferralCode, "setReferralCode");
|
|
14596
14596
|
function getReferralCode2() {
|
|
14597
|
-
const config =
|
|
14597
|
+
const config = _chunkV63TFESUjs.getReferralConfig.call(void 0, );
|
|
14598
14598
|
const cookies = document.cookie.split("; ");
|
|
14599
14599
|
for (const cookie of cookies) {
|
|
14600
14600
|
const [name, value] = cookie.split("=");
|
|
@@ -14611,12 +14611,12 @@ function ReferralCodeCapture() {
|
|
|
14611
14611
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
14612
14612
|
_react.useEffect.call(void 0, () => {
|
|
14613
14613
|
console.log("[REFERRAL] ReferralCodeCapture mounted");
|
|
14614
|
-
console.log("[REFERRAL] isReferralEnabled():",
|
|
14615
|
-
if (!
|
|
14614
|
+
console.log("[REFERRAL] isReferralEnabled():", _chunkV63TFESUjs.isReferralEnabled.call(void 0, ));
|
|
14615
|
+
if (!_chunkV63TFESUjs.isReferralEnabled.call(void 0, )) {
|
|
14616
14616
|
console.log("[REFERRAL] Feature DISABLED - not capturing");
|
|
14617
14617
|
return;
|
|
14618
14618
|
}
|
|
14619
|
-
const config =
|
|
14619
|
+
const config = _chunkV63TFESUjs.getReferralConfig.call(void 0, );
|
|
14620
14620
|
const refCode = searchParams.get(config.urlParamName);
|
|
14621
14621
|
console.log("[REFERRAL] URL param '" + config.urlParamName + "':", refCode);
|
|
14622
14622
|
if (refCode) {
|
|
@@ -14645,14 +14645,14 @@ function useReferralInvite() {
|
|
|
14645
14645
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
14646
14646
|
const [success, setSuccess] = _react.useState.call(void 0, false);
|
|
14647
14647
|
const sendInvite = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (email) => {
|
|
14648
|
-
if (!
|
|
14648
|
+
if (!_chunkV63TFESUjs.isReferralEnabled.call(void 0, )) {
|
|
14649
14649
|
return;
|
|
14650
14650
|
}
|
|
14651
14651
|
setSending(true);
|
|
14652
14652
|
setError(null);
|
|
14653
14653
|
setSuccess(false);
|
|
14654
14654
|
try {
|
|
14655
|
-
await
|
|
14655
|
+
await _chunkULHMVHDSjs.ReferralService.sendReferralEmail(email);
|
|
14656
14656
|
setSuccess(true);
|
|
14657
14657
|
} catch (err) {
|
|
14658
14658
|
setError(err);
|
|
@@ -14671,11 +14671,11 @@ function useReferralStats() {
|
|
|
14671
14671
|
const [loading, setLoading] = _react.useState.call(void 0, true);
|
|
14672
14672
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
14673
14673
|
_react.useEffect.call(void 0, () => {
|
|
14674
|
-
if (!
|
|
14674
|
+
if (!_chunkV63TFESUjs.isReferralEnabled.call(void 0, )) {
|
|
14675
14675
|
setLoading(false);
|
|
14676
14676
|
return;
|
|
14677
14677
|
}
|
|
14678
|
-
|
|
14678
|
+
_chunkULHMVHDSjs.ReferralService.getMyReferralStats().then(setStats).catch(setError).finally(() => setLoading(false));
|
|
14679
14679
|
}, []);
|
|
14680
14680
|
return { stats, loading, error };
|
|
14681
14681
|
}
|
|
@@ -14743,10 +14743,10 @@ function ReferralWidget({
|
|
|
14743
14743
|
const [email, setEmail] = _react.useState.call(void 0, "");
|
|
14744
14744
|
const [copied, setCopied] = _react.useState.call(void 0, false);
|
|
14745
14745
|
const linkInputRef = _react.useRef.call(void 0, null);
|
|
14746
|
-
const config =
|
|
14746
|
+
const config = _chunkV63TFESUjs.getReferralConfig.call(void 0, );
|
|
14747
14747
|
const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
|
|
14748
14748
|
const referralUrl = _optionalChain([stats, 'optionalAccess', _373 => _373.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
|
|
14749
|
-
if (!
|
|
14749
|
+
if (!_chunkV63TFESUjs.isReferralEnabled.call(void 0, )) {
|
|
14750
14750
|
return null;
|
|
14751
14751
|
}
|
|
14752
14752
|
const handleCopyLink = _react.useCallback.call(void 0, async () => {
|
|
@@ -14754,26 +14754,26 @@ function ReferralWidget({
|
|
|
14754
14754
|
const success = await copyToClipboard(referralUrl);
|
|
14755
14755
|
if (success) {
|
|
14756
14756
|
setCopied(true);
|
|
14757
|
-
|
|
14757
|
+
_chunkULHMVHDSjs.showToast.call(void 0, t.copiedMessage);
|
|
14758
14758
|
_optionalChain([onLinkCopied, 'optionalCall', _374 => _374()]);
|
|
14759
14759
|
setTimeout(() => setCopied(false), 2e3);
|
|
14760
14760
|
} else {
|
|
14761
|
-
|
|
14761
|
+
_chunkULHMVHDSjs.showError.call(void 0, t.copyError);
|
|
14762
14762
|
}
|
|
14763
14763
|
}, [referralUrl, t.copiedMessage, t.copyError, onLinkCopied]);
|
|
14764
14764
|
const handleSendInvite = _react.useCallback.call(void 0, async () => {
|
|
14765
14765
|
if (!email || !email.includes("@")) {
|
|
14766
|
-
|
|
14766
|
+
_chunkULHMVHDSjs.showError.call(void 0, t.invalidEmail);
|
|
14767
14767
|
return;
|
|
14768
14768
|
}
|
|
14769
14769
|
try {
|
|
14770
14770
|
await sendInvite(email);
|
|
14771
|
-
|
|
14771
|
+
_chunkULHMVHDSjs.showToast.call(void 0, t.inviteSent);
|
|
14772
14772
|
_optionalChain([onInviteSent, 'optionalCall', _375 => _375(email)]);
|
|
14773
14773
|
setEmail("");
|
|
14774
14774
|
} catch (err) {
|
|
14775
14775
|
const error2 = err instanceof Error ? err : new Error(t.inviteError);
|
|
14776
|
-
|
|
14776
|
+
_chunkULHMVHDSjs.showError.call(void 0, error2.message);
|
|
14777
14777
|
_optionalChain([onInviteError, 'optionalCall', _376 => _376(error2)]);
|
|
14778
14778
|
}
|
|
14779
14779
|
}, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
|
|
@@ -14880,7 +14880,7 @@ function ReferralDialog({
|
|
|
14880
14880
|
dialogClassName,
|
|
14881
14881
|
...widgetProps
|
|
14882
14882
|
}) {
|
|
14883
|
-
if (!
|
|
14883
|
+
if (!_chunkV63TFESUjs.isReferralEnabled.call(void 0, )) {
|
|
14884
14884
|
return null;
|
|
14885
14885
|
}
|
|
14886
14886
|
const t = { ...DEFAULT_DIALOG_TRANSLATIONS, ...translations };
|
|
@@ -14961,13 +14961,13 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
14961
14961
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
14962
14962
|
_react.useEffect.call(void 0, () => {
|
|
14963
14963
|
async function checkCompanyAdminDeletability() {
|
|
14964
|
-
const roleUsers = await
|
|
14964
|
+
const roleUsers = await _chunkULHMVHDSjs.UserService.findAllUsersByRole({
|
|
14965
14965
|
roleId: role.id
|
|
14966
14966
|
});
|
|
14967
14967
|
if (roleUsers.length > 1) setCanRemove(true);
|
|
14968
14968
|
}
|
|
14969
14969
|
_chunk7QVYU63Ejs.__name.call(void 0, checkCompanyAdminDeletability, "checkCompanyAdminDeletability");
|
|
14970
|
-
if (role.id !==
|
|
14970
|
+
if (role.id !== _chunkV63TFESUjs.getRoleId.call(void 0, ).CompanyAdministrator) {
|
|
14971
14971
|
setCanRemove(true);
|
|
14972
14972
|
return;
|
|
14973
14973
|
}
|
|
@@ -14975,7 +14975,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
14975
14975
|
}, [role]);
|
|
14976
14976
|
const remove = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
14977
14977
|
try {
|
|
14978
|
-
await
|
|
14978
|
+
await _chunkULHMVHDSjs.RoleService.removeUserFromRole({
|
|
14979
14979
|
roleId: role.id,
|
|
14980
14980
|
userId: user.id
|
|
14981
14981
|
});
|
|
@@ -15038,12 +15038,12 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
15038
15038
|
const [roles, setRoles] = _react.useState.call(void 0, []);
|
|
15039
15039
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
15040
15040
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (role) => {
|
|
15041
|
-
await
|
|
15041
|
+
await _chunkULHMVHDSjs.RoleService.addUserToRole({
|
|
15042
15042
|
roleId: role.id,
|
|
15043
15043
|
userId: user.id
|
|
15044
15044
|
});
|
|
15045
15045
|
setRoles(roles.filter((u) => u.id !== role.id));
|
|
15046
|
-
|
|
15046
|
+
_chunkULHMVHDSjs.showToast.call(void 0,
|
|
15047
15047
|
t(`common.association.label`, {
|
|
15048
15048
|
source: t(`entities.roles`, { count: 1 }),
|
|
15049
15049
|
destination: t(`entities.users`, { count: 1 })
|
|
@@ -15062,7 +15062,7 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
15062
15062
|
const searchRoles = _react.useCallback.call(void 0,
|
|
15063
15063
|
async (term) => {
|
|
15064
15064
|
setRoles(
|
|
15065
|
-
await
|
|
15065
|
+
await _chunkULHMVHDSjs.RoleService.findAllRolesUserNotIn({
|
|
15066
15066
|
search: term,
|
|
15067
15067
|
userId: user.id
|
|
15068
15068
|
})
|
|
@@ -15130,16 +15130,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserRoleAdd, "UserRoleAdd");
|
|
|
15130
15130
|
function RolesList() {
|
|
15131
15131
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
15132
15132
|
const data = useDataListRetriever({
|
|
15133
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
15133
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkULHMVHDSjs.RoleService.findAllRoles(params), "retriever"),
|
|
15134
15134
|
retrieverParams: {},
|
|
15135
|
-
module:
|
|
15135
|
+
module: _chunkULHMVHDSjs.Modules.Role
|
|
15136
15136
|
});
|
|
15137
15137
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15138
15138
|
ContentListTable,
|
|
15139
15139
|
{
|
|
15140
15140
|
data,
|
|
15141
15141
|
fields: ["name" /* name */, "description" /* description */],
|
|
15142
|
-
tableGeneratorType:
|
|
15142
|
+
tableGeneratorType: _chunkULHMVHDSjs.Modules.Role,
|
|
15143
15143
|
title: t(`entities.roles`, { count: 2 })
|
|
15144
15144
|
}
|
|
15145
15145
|
);
|
|
@@ -15152,16 +15152,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RolesList, "RolesList");
|
|
|
15152
15152
|
function UserRolesList({ user }) {
|
|
15153
15153
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
15154
15154
|
const data = useDataListRetriever({
|
|
15155
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
15155
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkULHMVHDSjs.RoleService.findAllRolesByUser(params), "retriever"),
|
|
15156
15156
|
retrieverParams: { userId: user.id },
|
|
15157
|
-
module:
|
|
15157
|
+
module: _chunkULHMVHDSjs.Modules.Role
|
|
15158
15158
|
});
|
|
15159
15159
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15160
15160
|
ContentListTable,
|
|
15161
15161
|
{
|
|
15162
15162
|
data,
|
|
15163
15163
|
fields: ["name" /* name */, "description" /* description */],
|
|
15164
|
-
tableGeneratorType:
|
|
15164
|
+
tableGeneratorType: _chunkULHMVHDSjs.Modules.Role,
|
|
15165
15165
|
title: t(`entities.roles`, { count: 2 })
|
|
15166
15166
|
}
|
|
15167
15167
|
);
|
|
@@ -15268,7 +15268,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthRedirectUriInput, "OAuthRedirectUriInp
|
|
|
15268
15268
|
function OAuthScopeSelector({
|
|
15269
15269
|
value,
|
|
15270
15270
|
onChange,
|
|
15271
|
-
availableScopes =
|
|
15271
|
+
availableScopes = _chunkULHMVHDSjs.AVAILABLE_OAUTH_SCOPES,
|
|
15272
15272
|
disabled = false,
|
|
15273
15273
|
error,
|
|
15274
15274
|
label = "Allowed Scopes"
|
|
@@ -15574,7 +15574,7 @@ function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
|
|
|
15574
15574
|
description: formState.description.trim() || void 0,
|
|
15575
15575
|
redirectUris: formState.redirectUris.filter((uri) => uri.trim()),
|
|
15576
15576
|
allowedScopes: formState.allowedScopes,
|
|
15577
|
-
allowedGrantTypes:
|
|
15577
|
+
allowedGrantTypes: _chunkULHMVHDSjs.DEFAULT_GRANT_TYPES,
|
|
15578
15578
|
isConfidential: formState.isConfidential
|
|
15579
15579
|
};
|
|
15580
15580
|
await onSubmit(data);
|
|
@@ -15775,7 +15775,7 @@ function OAuthClientDetail({
|
|
|
15775
15775
|
] }),
|
|
15776
15776
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
15777
15777
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
15778
|
-
/* @__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([
|
|
15778
|
+
/* @__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([_chunkULHMVHDSjs.OAUTH_SCOPE_DISPLAY, 'access', _384 => _384[scope], 'optionalAccess', _385 => _385.name]) || scope }, scope)) })
|
|
15779
15779
|
] }),
|
|
15780
15780
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
15781
15781
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -16059,7 +16059,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
16059
16059
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
16060
16060
|
const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
|
|
16061
16061
|
const [isSuccess, setIsSuccess] = _react.useState.call(void 0, false);
|
|
16062
|
-
const config =
|
|
16062
|
+
const config = _chunkV63TFESUjs.getWaitlistConfig.call(void 0, );
|
|
16063
16063
|
const questionnaireFields = _nullishCoalesce(config.questionnaire, () => ( []));
|
|
16064
16064
|
const questionnaireSchema = questionnaireFields.reduce(
|
|
16065
16065
|
(acc, field) => {
|
|
@@ -16125,7 +16125,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
16125
16125
|
setIsSubmitting(true);
|
|
16126
16126
|
try {
|
|
16127
16127
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
16128
|
-
await
|
|
16128
|
+
await _chunkULHMVHDSjs.WaitlistService.submit({
|
|
16129
16129
|
id: values.id,
|
|
16130
16130
|
email: values.email,
|
|
16131
16131
|
gdprConsent: values.gdprConsent,
|
|
@@ -16201,7 +16201,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, WaitlistForm, "WaitlistForm");
|
|
|
16201
16201
|
|
|
16202
16202
|
|
|
16203
16203
|
function WaitlistHeroSection() {
|
|
16204
|
-
const config =
|
|
16204
|
+
const config = _chunkV63TFESUjs.getWaitlistConfig.call(void 0, );
|
|
16205
16205
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "relative overflow-hidden py-16 md:py-24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "container mx-auto px-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid gap-12 lg:grid-cols-2 lg:items-center", children: [
|
|
16206
16206
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
16207
16207
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
@@ -16246,7 +16246,7 @@ function WaitlistConfirmation({ code }) {
|
|
|
16246
16246
|
_react.useEffect.call(void 0, () => {
|
|
16247
16247
|
async function confirmEmail() {
|
|
16248
16248
|
try {
|
|
16249
|
-
await
|
|
16249
|
+
await _chunkULHMVHDSjs.WaitlistService.confirm(code);
|
|
16250
16250
|
setState("success");
|
|
16251
16251
|
} catch (error) {
|
|
16252
16252
|
setState("error");
|
|
@@ -16387,7 +16387,7 @@ function WaitlistList() {
|
|
|
16387
16387
|
const loadEntries = _react.useCallback.call(void 0, async () => {
|
|
16388
16388
|
setIsLoading(true);
|
|
16389
16389
|
try {
|
|
16390
|
-
const result = await
|
|
16390
|
+
const result = await _chunkULHMVHDSjs.WaitlistService.findMany({
|
|
16391
16391
|
status: statusFilter === "all" ? void 0 : statusFilter,
|
|
16392
16392
|
fetchAll: true
|
|
16393
16393
|
});
|
|
@@ -16404,8 +16404,8 @@ function WaitlistList() {
|
|
|
16404
16404
|
}, [loadEntries]);
|
|
16405
16405
|
const handleInvite = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (entry) => {
|
|
16406
16406
|
try {
|
|
16407
|
-
await
|
|
16408
|
-
|
|
16407
|
+
await _chunkULHMVHDSjs.WaitlistService.invite(entry.id);
|
|
16408
|
+
_chunkULHMVHDSjs.showToast.call(void 0, t("waitlist.admin.invite_sent", { email: entry.email }));
|
|
16409
16409
|
loadEntries();
|
|
16410
16410
|
} catch (error) {
|
|
16411
16411
|
errorToast({ error });
|
|
@@ -16894,4 +16894,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, WaitlistList, "WaitlistList");
|
|
|
16894
16894
|
|
|
16895
16895
|
|
|
16896
16896
|
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.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.UserStanadaloneDetails = UserStanadaloneDetails; exports.UserContainer = UserContainer; exports.UserIndexContainer = UserIndexContainer; exports.UsersListContainer = UsersListContainer; exports.AdminUsersList = AdminUsersList; exports.CompanyUsersList = CompanyUsersList; exports.ContributorsList = ContributorsList; exports.RelevantUsersList = RelevantUsersList; exports.RoleUsersList = RoleUsersList; exports.UserListInAdd = UserListInAdd; exports.UsersList = UsersList; exports.UsersListByContentIds = UsersListByContentIds; exports.AllowedUsersDetails = AllowedUsersDetails; exports.ErrorDetails = ErrorDetails; exports.errorToast = errorToast; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorTrigger = CommonEditorTrigger; exports.DatePickerPopover = DatePickerPopover; exports.DateRangeSelector = DateRangeSelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.FormFieldWrapper = FormFieldWrapper; exports.FormCheckbox = FormCheckbox; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.PasswordInput = PasswordInput; exports.FormPassword = FormPassword; exports.FormPlaceAutocomplete = FormPlaceAutocomplete; exports.FormSelect = FormSelect; exports.FormSlider = FormSlider; exports.FormSwitch = FormSwitch; exports.FormTextarea = FormTextarea; exports.GdprConsentCheckbox = GdprConsentCheckbox; exports.FormFeatures = FormFeatures; exports.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; exports.GdprConsentSection = GdprConsentSection; exports.AuthContainer = AuthContainer; exports.BackupCodesDialog = BackupCodesDialog; exports.TotpInput = TotpInput; exports.DisableTwoFactorDialog = DisableTwoFactorDialog; exports.PasskeyList = PasskeyList; exports.PasskeySetupDialog = PasskeySetupDialog; exports.TotpAuthenticatorList = TotpAuthenticatorList; exports.TotpSetupDialog = TotpSetupDialog; exports.TwoFactorSettings = TwoFactorSettings; exports.SecurityContainer = SecurityContainer; exports.LandingComponent = LandingComponent; exports.AcceptInvitation = AcceptInvitation; exports.ActivateAccount = ActivateAccount; exports.Cookies = Cookies; exports.ForgotPassword = ForgotPassword; exports.Login = Login; exports.Logout = Logout; exports.RefreshUser = RefreshUser; exports.ResetPassword = ResetPassword; exports.PasskeyButton = PasskeyButton; exports.TwoFactorChallenge = TwoFactorChallenge; exports.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyContainer = CompanyContainer; exports.TokenStatusIndicator = TokenStatusIndicator; 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.OnboardingCard = OnboardingCard; exports.ReferralCodeCapture = ReferralCodeCapture; exports.ReferralWidget = ReferralWidget; exports.ReferralDialog = ReferralDialog; exports.RoleProvider = RoleProvider; exports.useRoleContext = useRoleContext; exports.RoleDetails = RoleDetails; exports.RoleContainer = RoleContainer; exports.FormRoles = FormRoles; exports.RemoveUserFromRole = RemoveUserFromRole; exports.UserRoleAdd = UserRoleAdd; exports.useRoleTableStructure = useRoleTableStructure; exports.RolesList = RolesList; exports.UserRolesList = UserRolesList; exports.OAuthRedirectUriInput = OAuthRedirectUriInput; exports.OAuthScopeSelector = OAuthScopeSelector; exports.OAuthClientSecretDisplay = OAuthClientSecretDisplay; exports.OAuthClientCard = OAuthClientCard; exports.OAuthClientList = OAuthClientList; exports.OAuthClientForm = OAuthClientForm; exports.OAuthClientDetail = OAuthClientDetail; exports.OAuthConsentHeader = OAuthConsentHeader; exports.OAuthScopeList = OAuthScopeList; exports.OAuthConsentActions = OAuthConsentActions; exports.useOAuthConsent = useOAuthConsent; exports.OAuthConsentScreen = OAuthConsentScreen; exports.WaitlistQuestionnaireRenderer = WaitlistQuestionnaireRenderer; exports.WaitlistForm = WaitlistForm; exports.WaitlistHeroSection = WaitlistHeroSection; exports.WaitlistSuccessState = WaitlistSuccessState; exports.WaitlistConfirmation = WaitlistConfirmation; exports.WaitlistList = WaitlistList; exports.AddUserToRole = AddUserToRole; exports.UserAvatarEditor = UserAvatarEditor; exports.UserDeleter = UserDeleter; exports.UserEditor = UserEditor; exports.UserMultiSelect = UserMultiSelect; exports.UserReactivator = UserReactivator; exports.UserResentInvitationEmail = UserResentInvitationEmail; exports.UserSelector = UserSelector; exports.UserProvider = UserProvider; exports.useUserContext = useUserContext; exports.CompanyProvider = CompanyProvider; exports.useCompanyContext = useCompanyContext; exports.DEFAULT_ONBOARDING_LABELS = DEFAULT_ONBOARDING_LABELS; exports.OnboardingProvider = OnboardingProvider; exports.useOnboarding = useOnboarding; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
|
|
16897
|
-
//# sourceMappingURL=chunk-
|
|
16897
|
+
//# sourceMappingURL=chunk-HY357JCN.js.map
|