@carlonicora/nextjs-jsonapi 1.48.0 → 1.48.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BlockNoteEditor-MY2WUSZY.mjs → BlockNoteEditor-DM43MVV3.mjs} +3 -3
- package/dist/{BlockNoteEditor-4ZNFPFIR.js → BlockNoteEditor-IGFJYLLS.js} +13 -13
- package/dist/{BlockNoteEditor-4ZNFPFIR.js.map → BlockNoteEditor-IGFJYLLS.js.map} +1 -1
- package/dist/billing/index.js +342 -342
- package/dist/billing/index.mjs +2 -2
- package/dist/{chunk-56YOTJYS.mjs → chunk-PZGFGYEO.mjs} +902 -885
- package/dist/chunk-PZGFGYEO.mjs.map +1 -0
- package/dist/{chunk-ULHMVHDS.js → chunk-QIA5FOQB.js} +1 -1
- package/dist/chunk-QIA5FOQB.js.map +1 -0
- package/dist/{chunk-6RE6272L.js → chunk-VG6RASMY.js} +523 -506
- package/dist/chunk-VG6RASMY.js.map +1 -0
- package/dist/{chunk-IPVXH3VC.mjs → chunk-XNISXVQL.mjs} +1 -1
- package/dist/chunk-XNISXVQL.mjs.map +1 -0
- package/dist/client/index.js +3 -3
- package/dist/client/index.mjs +2 -2
- package/dist/components/index.d.mts +6 -1
- package/dist/components/index.d.ts +6 -1
- package/dist/components/index.js +5 -3
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +4 -2
- package/dist/contexts/index.js +3 -3
- package/dist/contexts/index.mjs +2 -2
- package/dist/core/index.d.mts +0 -2
- package/dist/core/index.d.ts +0 -2
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
- package/src/core/registry/ModuleRegistry.ts +0 -2
- package/src/features/user/components/widgets/UserAvatarList.tsx +1 -1
- package/src/features/user/components/widgets/index.ts +1 -0
- package/dist/chunk-56YOTJYS.mjs.map +0 -1
- package/dist/chunk-6RE6272L.js.map +0 -1
- package/dist/chunk-IPVXH3VC.mjs.map +0 -1
- package/dist/chunk-ULHMVHDS.js.map +0 -1
- /package/dist/{BlockNoteEditor-MY2WUSZY.mjs.map → BlockNoteEditor-DM43MVV3.mjs.map} +0 -0
|
@@ -49,7 +49,7 @@ var _chunkV63TFESUjs = require('./chunk-V63TFESU.js');
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
var
|
|
52
|
+
var _chunkQIA5FOQBjs = require('./chunk-QIA5FOQB.js');
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
var _chunk3EPNHTMHjs = require('./chunk-3EPNHTMH.js');
|
|
@@ -196,7 +196,7 @@ function useDataListRetriever(params) {
|
|
|
196
196
|
const isFetchingRef = _react.useRef.call(void 0, false);
|
|
197
197
|
const isPaginatingRef = _react.useRef.call(void 0, false);
|
|
198
198
|
const resolvedType = params.module;
|
|
199
|
-
const resolvedService =
|
|
199
|
+
const resolvedService = _chunkQIA5FOQBjs.ClientAbstractService;
|
|
200
200
|
const parsePageParams = _react.useCallback.call(void 0, (url) => {
|
|
201
201
|
if (!url) return null;
|
|
202
202
|
try {
|
|
@@ -315,7 +315,7 @@ function useDataListRetriever(params) {
|
|
|
315
315
|
setIsLoaded(true);
|
|
316
316
|
setNextPage(nextRef.next ? nextRef.next : void 0);
|
|
317
317
|
setPreviousPage(previousRef.previous ? previousRef.previous : void 0);
|
|
318
|
-
const apiTotal = _nullishCoalesce(totalRef.total, () => (
|
|
318
|
+
const apiTotal = _nullishCoalesce(totalRef.total, () => ( _chunkQIA5FOQBjs.getLastApiTotal.call(void 0, )));
|
|
319
319
|
if (apiTotal !== void 0) {
|
|
320
320
|
setTotal(apiTotal);
|
|
321
321
|
}
|
|
@@ -960,20 +960,20 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
960
960
|
if (!token && dehydratedUser) setDehydratedUser(null);
|
|
961
961
|
}, [dehydratedUser, setDehydratedUser]);
|
|
962
962
|
const matchUrlToModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (_params) => {
|
|
963
|
-
const moduleKeys = Object.getOwnPropertyNames(
|
|
963
|
+
const moduleKeys = Object.getOwnPropertyNames(_chunkQIA5FOQBjs.Modules).filter(
|
|
964
964
|
(key) => key !== "prototype" && key !== "_factory" && key !== "length" && key !== "name"
|
|
965
965
|
);
|
|
966
966
|
const matchedModuleKey = moduleKeys.find((key) => {
|
|
967
|
-
const descriptor2 = Object.getOwnPropertyDescriptor(
|
|
967
|
+
const descriptor2 = Object.getOwnPropertyDescriptor(_chunkQIA5FOQBjs.Modules, key);
|
|
968
968
|
if (!_optionalChain([descriptor2, 'optionalAccess', _29 => _29.get])) return false;
|
|
969
|
-
const selectedModule = descriptor2.get.call(
|
|
969
|
+
const selectedModule = descriptor2.get.call(_chunkQIA5FOQBjs.Modules);
|
|
970
970
|
return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _30 => _30.pageUrl, 'optionalAccess', _31 => _31.toLowerCase, 'call', _32 => _32()]));
|
|
971
971
|
});
|
|
972
972
|
if (!matchedModuleKey) return void 0;
|
|
973
|
-
const descriptor = Object.getOwnPropertyDescriptor(
|
|
974
|
-
return _optionalChain([descriptor, 'optionalAccess', _33 => _33.get, 'optionalAccess', _34 => _34.call, 'call', _35 => _35(
|
|
973
|
+
const descriptor = Object.getOwnPropertyDescriptor(_chunkQIA5FOQBjs.Modules, matchedModuleKey);
|
|
974
|
+
return _optionalChain([descriptor, 'optionalAccess', _33 => _33.get, 'optionalAccess', _34 => _34.call, 'call', _35 => _35(_chunkQIA5FOQBjs.Modules)]);
|
|
975
975
|
}, "matchUrlToModule");
|
|
976
|
-
const currentUser = dehydratedUser ?
|
|
976
|
+
const currentUser = dehydratedUser ? _chunkQIA5FOQBjs.rehydrate.call(void 0, _chunkQIA5FOQBjs.Modules.User, dehydratedUser) : null;
|
|
977
977
|
const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _36 => _36.company]), () => ( null));
|
|
978
978
|
const setUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (user) => {
|
|
979
979
|
if (user) setDehydratedUser(user.dehydrate());
|
|
@@ -991,14 +991,14 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
991
991
|
function hasPermissionToModule(params) {
|
|
992
992
|
if (!currentUser) return false;
|
|
993
993
|
if (!!params.module.feature && !hasAccesToFeature(params.module.feature)) return false;
|
|
994
|
-
return
|
|
994
|
+
return _chunkQIA5FOQBjs.checkPermissions.call(void 0, { module: params.module, action: params.action, data: params.data, user: currentUser });
|
|
995
995
|
}
|
|
996
996
|
_chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModule, "hasPermissionToModule");
|
|
997
997
|
function hasPermissionToModules(params) {
|
|
998
998
|
if (!currentUser) return false;
|
|
999
999
|
if (!params.modules.every((module) => !module.feature || hasAccesToFeature(module.feature))) return false;
|
|
1000
1000
|
return params.modules.every(
|
|
1001
|
-
(module) =>
|
|
1001
|
+
(module) => _chunkQIA5FOQBjs.checkPermissions.call(void 0, { module, action: params.action, data: params.data, user: currentUser })
|
|
1002
1002
|
);
|
|
1003
1003
|
}
|
|
1004
1004
|
_chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModules, "hasPermissionToModules");
|
|
@@ -1019,13 +1019,13 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
1019
1019
|
}
|
|
1020
1020
|
setIsRefreshing(true);
|
|
1021
1021
|
try {
|
|
1022
|
-
const fullUser = await
|
|
1022
|
+
const fullUser = await _chunkQIA5FOQBjs.UserService.findFullUser();
|
|
1023
1023
|
if (fullUser) {
|
|
1024
1024
|
const dehydrated = fullUser.dehydrate();
|
|
1025
1025
|
setDehydratedUser(dehydrated);
|
|
1026
1026
|
setUser(fullUser);
|
|
1027
1027
|
if (!_optionalChain([options, 'optionalAccess', _40 => _40.skipCookieUpdate])) {
|
|
1028
|
-
await _optionalChain([
|
|
1028
|
+
await _optionalChain([_chunkQIA5FOQBjs.getTokenHandler.call(void 0, ), 'optionalAccess', _41 => _41.updateToken, 'call', _42 => _42({
|
|
1029
1029
|
userId: fullUser.id,
|
|
1030
1030
|
companyId: _optionalChain([fullUser, 'access', _43 => _43.company, 'optionalAccess', _44 => _44.id]),
|
|
1031
1031
|
roles: fullUser.roles.map((role) => role.id),
|
|
@@ -1113,7 +1113,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
1113
1113
|
const [existingUsers, setExistingUsers] = _react.useState.call(void 0, null);
|
|
1114
1114
|
_react.useEffect.call(void 0, () => {
|
|
1115
1115
|
const fetchExistingUsers = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
1116
|
-
setExistingUsers(await
|
|
1116
|
+
setExistingUsers(await _chunkQIA5FOQBjs.UserService.findMany({ roleId: role.id, fetchAll: true }));
|
|
1117
1117
|
}, "fetchExistingUsers");
|
|
1118
1118
|
if (show) {
|
|
1119
1119
|
setExistingUsers(null);
|
|
@@ -1121,7 +1121,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
1121
1121
|
}
|
|
1122
1122
|
}, [show]);
|
|
1123
1123
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (user) => {
|
|
1124
|
-
await
|
|
1124
|
+
await _chunkQIA5FOQBjs.RoleService.addUserToRole({
|
|
1125
1125
|
roleId: role.id,
|
|
1126
1126
|
userId: user.id
|
|
1127
1127
|
});
|
|
@@ -1137,9 +1137,9 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
1137
1137
|
}, "addUserToRole");
|
|
1138
1138
|
const data = useDataListRetriever({
|
|
1139
1139
|
ready: !!company && show,
|
|
1140
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
1140
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkQIA5FOQBjs.UserService.findAllUsers(params), "retriever"),
|
|
1141
1141
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _55 => _55.id]) },
|
|
1142
|
-
module:
|
|
1142
|
+
module: _chunkQIA5FOQBjs.Modules.User
|
|
1143
1143
|
});
|
|
1144
1144
|
_react.useEffect.call(void 0, () => {
|
|
1145
1145
|
if (!!company && show) {
|
|
@@ -1190,7 +1190,7 @@ function Accordion({ className, ...props }) {
|
|
|
1190
1190
|
_accordion.Accordion.Root,
|
|
1191
1191
|
{
|
|
1192
1192
|
"data-slot": "accordion",
|
|
1193
|
-
className:
|
|
1193
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "overflow-hidden rounded-md border flex w-full flex-col", className),
|
|
1194
1194
|
...props
|
|
1195
1195
|
}
|
|
1196
1196
|
);
|
|
@@ -1201,7 +1201,7 @@ function AccordionItem({ className, ...props }) {
|
|
|
1201
1201
|
_accordion.Accordion.Item,
|
|
1202
1202
|
{
|
|
1203
1203
|
"data-slot": "accordion-item",
|
|
1204
|
-
className:
|
|
1204
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "data-open:bg-muted/50 not-last:border-b", className),
|
|
1205
1205
|
...props
|
|
1206
1206
|
}
|
|
1207
1207
|
);
|
|
@@ -1212,7 +1212,7 @@ function AccordionTrigger({ className, children, ...props }) {
|
|
|
1212
1212
|
_accordion.Accordion.Trigger,
|
|
1213
1213
|
{
|
|
1214
1214
|
"data-slot": "accordion-trigger",
|
|
1215
|
-
className:
|
|
1215
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1216
1216
|
"**: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",
|
|
1217
1217
|
className
|
|
1218
1218
|
),
|
|
@@ -1248,7 +1248,7 @@ function AccordionContent({ className, children, ...props }) {
|
|
|
1248
1248
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1249
1249
|
"div",
|
|
1250
1250
|
{
|
|
1251
|
-
className:
|
|
1251
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1252
1252
|
"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",
|
|
1253
1253
|
className
|
|
1254
1254
|
),
|
|
@@ -1278,7 +1278,7 @@ var alertVariants = _classvarianceauthority.cva.call(void 0,
|
|
|
1278
1278
|
}
|
|
1279
1279
|
);
|
|
1280
1280
|
function Alert({ className, variant, ...props }) {
|
|
1281
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "alert", role: "alert", className:
|
|
1281
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "alert", role: "alert", className: _chunkQIA5FOQBjs.cn.call(void 0, alertVariants({ variant }), className), ...props });
|
|
1282
1282
|
}
|
|
1283
1283
|
_chunk7QVYU63Ejs.__name.call(void 0, Alert, "Alert");
|
|
1284
1284
|
function AlertTitle({ className, ...props }) {
|
|
@@ -1286,7 +1286,7 @@ function AlertTitle({ className, ...props }) {
|
|
|
1286
1286
|
"div",
|
|
1287
1287
|
{
|
|
1288
1288
|
"data-slot": "alert-title",
|
|
1289
|
-
className:
|
|
1289
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1290
1290
|
"font-medium group-has-[>svg]/alert:col-start-2 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3",
|
|
1291
1291
|
className
|
|
1292
1292
|
),
|
|
@@ -1300,7 +1300,7 @@ function AlertDescription({ className, ...props }) {
|
|
|
1300
1300
|
"div",
|
|
1301
1301
|
{
|
|
1302
1302
|
"data-slot": "alert-description",
|
|
1303
|
-
className:
|
|
1303
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1304
1304
|
"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",
|
|
1305
1305
|
className
|
|
1306
1306
|
),
|
|
@@ -1310,7 +1310,7 @@ function AlertDescription({ className, ...props }) {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
_chunk7QVYU63Ejs.__name.call(void 0, AlertDescription, "AlertDescription");
|
|
1312
1312
|
function AlertAction({ className, ...props }) {
|
|
1313
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "alert-action", className:
|
|
1313
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "alert-action", className: _chunkQIA5FOQBjs.cn.call(void 0, "absolute top-1.5 right-2", className), ...props });
|
|
1314
1314
|
}
|
|
1315
1315
|
_chunk7QVYU63Ejs.__name.call(void 0, AlertAction, "AlertAction");
|
|
1316
1316
|
|
|
@@ -1356,7 +1356,7 @@ function Button({
|
|
|
1356
1356
|
size = "default",
|
|
1357
1357
|
...props
|
|
1358
1358
|
}) {
|
|
1359
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _button.Button, { "data-slot": "button", className:
|
|
1359
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _button.Button, { "data-slot": "button", className: _chunkQIA5FOQBjs.cn.call(void 0, buttonVariants({ variant, size, className })), ...props });
|
|
1360
1360
|
}
|
|
1361
1361
|
_chunk7QVYU63Ejs.__name.call(void 0, Button, "Button");
|
|
1362
1362
|
|
|
@@ -1379,7 +1379,7 @@ function AlertDialogOverlay({ className, ...props }) {
|
|
|
1379
1379
|
_alertdialog.AlertDialog.Backdrop,
|
|
1380
1380
|
{
|
|
1381
1381
|
"data-slot": "alert-dialog-overlay",
|
|
1382
|
-
className:
|
|
1382
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1383
1383
|
"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",
|
|
1384
1384
|
className
|
|
1385
1385
|
),
|
|
@@ -1400,7 +1400,7 @@ function AlertDialogContent({
|
|
|
1400
1400
|
{
|
|
1401
1401
|
"data-slot": "alert-dialog-content",
|
|
1402
1402
|
"data-size": size,
|
|
1403
|
-
className:
|
|
1403
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1404
1404
|
"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",
|
|
1405
1405
|
className
|
|
1406
1406
|
),
|
|
@@ -1415,7 +1415,7 @@ function AlertDialogHeader({ className, ...props }) {
|
|
|
1415
1415
|
"div",
|
|
1416
1416
|
{
|
|
1417
1417
|
"data-slot": "alert-dialog-header",
|
|
1418
|
-
className:
|
|
1418
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1419
1419
|
"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]",
|
|
1420
1420
|
className
|
|
1421
1421
|
),
|
|
@@ -1429,7 +1429,7 @@ function AlertDialogFooter({ className, ...props }) {
|
|
|
1429
1429
|
"div",
|
|
1430
1430
|
{
|
|
1431
1431
|
"data-slot": "alert-dialog-footer",
|
|
1432
|
-
className:
|
|
1432
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1433
1433
|
"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",
|
|
1434
1434
|
className
|
|
1435
1435
|
),
|
|
@@ -1443,7 +1443,7 @@ function AlertDialogMedia({ className, ...props }) {
|
|
|
1443
1443
|
"div",
|
|
1444
1444
|
{
|
|
1445
1445
|
"data-slot": "alert-dialog-media",
|
|
1446
|
-
className:
|
|
1446
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1447
1447
|
"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",
|
|
1448
1448
|
className
|
|
1449
1449
|
),
|
|
@@ -1457,7 +1457,7 @@ function AlertDialogTitle({ className, ...props }) {
|
|
|
1457
1457
|
_alertdialog.AlertDialog.Title,
|
|
1458
1458
|
{
|
|
1459
1459
|
"data-slot": "alert-dialog-title",
|
|
1460
|
-
className:
|
|
1460
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1461
1461
|
"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",
|
|
1462
1462
|
className
|
|
1463
1463
|
),
|
|
@@ -1474,7 +1474,7 @@ function AlertDialogDescription({
|
|
|
1474
1474
|
_alertdialog.AlertDialog.Description,
|
|
1475
1475
|
{
|
|
1476
1476
|
"data-slot": "alert-dialog-description",
|
|
1477
|
-
className:
|
|
1477
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1478
1478
|
"text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3",
|
|
1479
1479
|
className
|
|
1480
1480
|
),
|
|
@@ -1484,7 +1484,7 @@ function AlertDialogDescription({
|
|
|
1484
1484
|
}
|
|
1485
1485
|
_chunk7QVYU63Ejs.__name.call(void 0, AlertDialogDescription, "AlertDialogDescription");
|
|
1486
1486
|
function AlertDialogAction({ className, ...props }) {
|
|
1487
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { "data-slot": "alert-dialog-action", className:
|
|
1487
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { "data-slot": "alert-dialog-action", className: _chunkQIA5FOQBjs.cn.call(void 0, className), ...props });
|
|
1488
1488
|
}
|
|
1489
1489
|
_chunk7QVYU63Ejs.__name.call(void 0, AlertDialogAction, "AlertDialogAction");
|
|
1490
1490
|
function AlertDialogCancel({
|
|
@@ -1497,7 +1497,7 @@ function AlertDialogCancel({
|
|
|
1497
1497
|
_alertdialog.AlertDialog.Close,
|
|
1498
1498
|
{
|
|
1499
1499
|
"data-slot": "alert-dialog-cancel",
|
|
1500
|
-
className:
|
|
1500
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, className),
|
|
1501
1501
|
render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant, size }),
|
|
1502
1502
|
...props
|
|
1503
1503
|
}
|
|
@@ -1518,7 +1518,7 @@ function Avatar({
|
|
|
1518
1518
|
{
|
|
1519
1519
|
"data-slot": "avatar",
|
|
1520
1520
|
"data-size": size,
|
|
1521
|
-
className:
|
|
1521
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1522
1522
|
"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",
|
|
1523
1523
|
className
|
|
1524
1524
|
),
|
|
@@ -1532,7 +1532,7 @@ function AvatarImage({ className, ...props }) {
|
|
|
1532
1532
|
_avatar.Avatar.Image,
|
|
1533
1533
|
{
|
|
1534
1534
|
"data-slot": "avatar-image",
|
|
1535
|
-
className:
|
|
1535
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "rounded-full aspect-square size-full object-cover", className),
|
|
1536
1536
|
...props
|
|
1537
1537
|
}
|
|
1538
1538
|
);
|
|
@@ -1543,7 +1543,7 @@ function AvatarFallback({ className, ...props }) {
|
|
|
1543
1543
|
_avatar.Avatar.Fallback,
|
|
1544
1544
|
{
|
|
1545
1545
|
"data-slot": "avatar-fallback",
|
|
1546
|
-
className:
|
|
1546
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1547
1547
|
"bg-muted text-muted-foreground rounded-full flex size-full items-center justify-center text-sm group-data-[size=sm]/avatar:text-xs",
|
|
1548
1548
|
className
|
|
1549
1549
|
),
|
|
@@ -1557,7 +1557,7 @@ function AvatarBadge({ className, ...props }) {
|
|
|
1557
1557
|
"span",
|
|
1558
1558
|
{
|
|
1559
1559
|
"data-slot": "avatar-badge",
|
|
1560
|
-
className:
|
|
1560
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1561
1561
|
"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",
|
|
1562
1562
|
"group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden",
|
|
1563
1563
|
"group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2",
|
|
@@ -1574,7 +1574,7 @@ function AvatarGroup({ className, ...props }) {
|
|
|
1574
1574
|
"div",
|
|
1575
1575
|
{
|
|
1576
1576
|
"data-slot": "avatar-group",
|
|
1577
|
-
className:
|
|
1577
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1578
1578
|
"*:data-[slot=avatar]:ring-background group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2",
|
|
1579
1579
|
className
|
|
1580
1580
|
),
|
|
@@ -1588,7 +1588,7 @@ function AvatarGroupCount({ className, ...props }) {
|
|
|
1588
1588
|
"div",
|
|
1589
1589
|
{
|
|
1590
1590
|
"data-slot": "avatar-group-count",
|
|
1591
|
-
className:
|
|
1591
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1592
1592
|
"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",
|
|
1593
1593
|
className
|
|
1594
1594
|
),
|
|
@@ -1630,7 +1630,7 @@ function Badge({
|
|
|
1630
1630
|
defaultTagName: "span",
|
|
1631
1631
|
props: _mergeprops.mergeProps.call(void 0,
|
|
1632
1632
|
{
|
|
1633
|
-
className:
|
|
1633
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, badgeVariants({ className, variant }))
|
|
1634
1634
|
},
|
|
1635
1635
|
props
|
|
1636
1636
|
),
|
|
@@ -1649,7 +1649,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, Badge, "Badge");
|
|
|
1649
1649
|
|
|
1650
1650
|
|
|
1651
1651
|
function Breadcrumb({ className, ...props }) {
|
|
1652
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", className:
|
|
1652
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", className: _chunkQIA5FOQBjs.cn.call(void 0, className), ...props });
|
|
1653
1653
|
}
|
|
1654
1654
|
_chunk7QVYU63Ejs.__name.call(void 0, Breadcrumb, "Breadcrumb");
|
|
1655
1655
|
function BreadcrumbList({ className, ...props }) {
|
|
@@ -1657,14 +1657,14 @@ function BreadcrumbList({ className, ...props }) {
|
|
|
1657
1657
|
"ol",
|
|
1658
1658
|
{
|
|
1659
1659
|
"data-slot": "breadcrumb-list",
|
|
1660
|
-
className:
|
|
1660
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "text-muted-foreground gap-1.5 text-xs/relaxed flex flex-wrap items-center break-words", className),
|
|
1661
1661
|
...props
|
|
1662
1662
|
}
|
|
1663
1663
|
);
|
|
1664
1664
|
}
|
|
1665
1665
|
_chunk7QVYU63Ejs.__name.call(void 0, BreadcrumbList, "BreadcrumbList");
|
|
1666
1666
|
function BreadcrumbItem({ className, ...props }) {
|
|
1667
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-slot": "breadcrumb-item", className:
|
|
1667
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-slot": "breadcrumb-item", className: _chunkQIA5FOQBjs.cn.call(void 0, "gap-1 inline-flex items-center", className), ...props });
|
|
1668
1668
|
}
|
|
1669
1669
|
_chunk7QVYU63Ejs.__name.call(void 0, BreadcrumbItem, "BreadcrumbItem");
|
|
1670
1670
|
function BreadcrumbLink({ className, render, ...props }) {
|
|
@@ -1672,7 +1672,7 @@ function BreadcrumbLink({ className, render, ...props }) {
|
|
|
1672
1672
|
defaultTagName: "a",
|
|
1673
1673
|
props: _mergeprops.mergeProps.call(void 0,
|
|
1674
1674
|
{
|
|
1675
|
-
className:
|
|
1675
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "hover:text-foreground transition-colors", className)
|
|
1676
1676
|
},
|
|
1677
1677
|
props
|
|
1678
1678
|
),
|
|
@@ -1691,7 +1691,7 @@ function BreadcrumbPage({ className, ...props }) {
|
|
|
1691
1691
|
role: "link",
|
|
1692
1692
|
"aria-disabled": "true",
|
|
1693
1693
|
"aria-current": "page",
|
|
1694
|
-
className:
|
|
1694
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "text-foreground font-normal", className),
|
|
1695
1695
|
...props
|
|
1696
1696
|
}
|
|
1697
1697
|
);
|
|
@@ -1704,7 +1704,7 @@ function BreadcrumbSeparator({ children, className, ...props }) {
|
|
|
1704
1704
|
"data-slot": "breadcrumb-separator",
|
|
1705
1705
|
role: "presentation",
|
|
1706
1706
|
"aria-hidden": "true",
|
|
1707
|
-
className:
|
|
1707
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "[&>svg]:size-3.5", className),
|
|
1708
1708
|
...props,
|
|
1709
1709
|
children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, {})))
|
|
1710
1710
|
}
|
|
@@ -1718,7 +1718,7 @@ function BreadcrumbEllipsis({ className, ...props }) {
|
|
|
1718
1718
|
"data-slot": "breadcrumb-ellipsis",
|
|
1719
1719
|
role: "presentation",
|
|
1720
1720
|
"aria-hidden": "true",
|
|
1721
|
-
className:
|
|
1721
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "size-4 [&>svg]:size-3.5 flex items-center justify-center", className),
|
|
1722
1722
|
...props,
|
|
1723
1723
|
children: [
|
|
1724
1724
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.MoreHorizontalIcon, {}),
|
|
@@ -1749,7 +1749,7 @@ function Calendar({
|
|
|
1749
1749
|
_reactdaypicker.DayPicker,
|
|
1750
1750
|
{
|
|
1751
1751
|
showOutsideDays,
|
|
1752
|
-
className:
|
|
1752
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1753
1753
|
"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",
|
|
1754
1754
|
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
1755
1755
|
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
@@ -1761,82 +1761,82 @@ function Calendar({
|
|
|
1761
1761
|
...formatters
|
|
1762
1762
|
},
|
|
1763
1763
|
classNames: {
|
|
1764
|
-
root:
|
|
1765
|
-
months:
|
|
1766
|
-
month:
|
|
1767
|
-
nav:
|
|
1768
|
-
button_previous:
|
|
1764
|
+
root: _chunkQIA5FOQBjs.cn.call(void 0, "w-fit", defaultClassNames.root),
|
|
1765
|
+
months: _chunkQIA5FOQBjs.cn.call(void 0, "flex gap-4 flex-col md:flex-row relative", defaultClassNames.months),
|
|
1766
|
+
month: _chunkQIA5FOQBjs.cn.call(void 0, "flex flex-col w-full gap-4", defaultClassNames.month),
|
|
1767
|
+
nav: _chunkQIA5FOQBjs.cn.call(void 0, "flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between", defaultClassNames.nav),
|
|
1768
|
+
button_previous: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1769
1769
|
buttonVariants({ variant: buttonVariant }),
|
|
1770
1770
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
1771
1771
|
defaultClassNames.button_previous
|
|
1772
1772
|
),
|
|
1773
|
-
button_next:
|
|
1773
|
+
button_next: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1774
1774
|
buttonVariants({ variant: buttonVariant }),
|
|
1775
1775
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
1776
1776
|
defaultClassNames.button_next
|
|
1777
1777
|
),
|
|
1778
|
-
month_caption:
|
|
1778
|
+
month_caption: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1779
1779
|
"flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
|
|
1780
1780
|
defaultClassNames.month_caption
|
|
1781
1781
|
),
|
|
1782
|
-
dropdowns:
|
|
1782
|
+
dropdowns: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1783
1783
|
"w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
|
|
1784
1784
|
defaultClassNames.dropdowns
|
|
1785
1785
|
),
|
|
1786
|
-
dropdown_root:
|
|
1786
|
+
dropdown_root: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1787
1787
|
"relative cn-calendar-dropdown-root rounded-(--cell-radius)",
|
|
1788
1788
|
defaultClassNames.dropdown_root
|
|
1789
1789
|
),
|
|
1790
|
-
dropdown:
|
|
1791
|
-
caption_label:
|
|
1790
|
+
dropdown: _chunkQIA5FOQBjs.cn.call(void 0, "absolute bg-popover inset-0 opacity-0", defaultClassNames.dropdown),
|
|
1791
|
+
caption_label: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1792
1792
|
"select-none font-medium",
|
|
1793
1793
|
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",
|
|
1794
1794
|
defaultClassNames.caption_label
|
|
1795
1795
|
),
|
|
1796
1796
|
table: "w-full border-collapse",
|
|
1797
|
-
weekdays:
|
|
1798
|
-
weekday:
|
|
1797
|
+
weekdays: _chunkQIA5FOQBjs.cn.call(void 0, "flex", defaultClassNames.weekdays),
|
|
1798
|
+
weekday: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1799
1799
|
"text-muted-foreground rounded-(--cell-radius) flex-1 font-normal text-[0.8rem] select-none",
|
|
1800
1800
|
defaultClassNames.weekday
|
|
1801
1801
|
),
|
|
1802
|
-
week:
|
|
1803
|
-
week_number_header:
|
|
1804
|
-
week_number:
|
|
1805
|
-
day:
|
|
1802
|
+
week: _chunkQIA5FOQBjs.cn.call(void 0, "flex w-full mt-2", defaultClassNames.week),
|
|
1803
|
+
week_number_header: _chunkQIA5FOQBjs.cn.call(void 0, "select-none w-(--cell-size)", defaultClassNames.week_number_header),
|
|
1804
|
+
week_number: _chunkQIA5FOQBjs.cn.call(void 0, "text-[0.8rem] select-none text-muted-foreground", defaultClassNames.week_number),
|
|
1805
|
+
day: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1806
1806
|
"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",
|
|
1807
1807
|
props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)" : "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)",
|
|
1808
1808
|
defaultClassNames.day
|
|
1809
1809
|
),
|
|
1810
|
-
range_start:
|
|
1810
|
+
range_start: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1811
1811
|
"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",
|
|
1812
1812
|
defaultClassNames.range_start
|
|
1813
1813
|
),
|
|
1814
|
-
range_middle:
|
|
1815
|
-
range_end:
|
|
1814
|
+
range_middle: _chunkQIA5FOQBjs.cn.call(void 0, "rounded-none", defaultClassNames.range_middle),
|
|
1815
|
+
range_end: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1816
1816
|
"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",
|
|
1817
1817
|
defaultClassNames.range_end
|
|
1818
1818
|
),
|
|
1819
|
-
today:
|
|
1819
|
+
today: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1820
1820
|
"bg-muted text-foreground rounded-(--cell-radius) data-[selected=true]:rounded-none",
|
|
1821
1821
|
defaultClassNames.today
|
|
1822
1822
|
),
|
|
1823
|
-
outside:
|
|
1824
|
-
disabled:
|
|
1825
|
-
hidden:
|
|
1823
|
+
outside: _chunkQIA5FOQBjs.cn.call(void 0, "text-muted-foreground aria-selected:text-muted-foreground", defaultClassNames.outside),
|
|
1824
|
+
disabled: _chunkQIA5FOQBjs.cn.call(void 0, "text-muted-foreground opacity-50", defaultClassNames.disabled),
|
|
1825
|
+
hidden: _chunkQIA5FOQBjs.cn.call(void 0, "invisible", defaultClassNames.hidden),
|
|
1826
1826
|
...classNames
|
|
1827
1827
|
},
|
|
1828
1828
|
components: {
|
|
1829
1829
|
Root: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className: className2, rootRef, ...props2 }) => {
|
|
1830
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "calendar", ref: rootRef, className:
|
|
1830
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "calendar", ref: rootRef, className: _chunkQIA5FOQBjs.cn.call(void 0, className2), ...props2 });
|
|
1831
1831
|
}, "Root"),
|
|
1832
1832
|
Chevron: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className: className2, orientation, ...props2 }) => {
|
|
1833
1833
|
if (orientation === "left") {
|
|
1834
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeftIcon, { className:
|
|
1834
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeftIcon, { className: _chunkQIA5FOQBjs.cn.call(void 0, "size-4", className2), ...props2 });
|
|
1835
1835
|
}
|
|
1836
1836
|
if (orientation === "right") {
|
|
1837
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className:
|
|
1837
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className: _chunkQIA5FOQBjs.cn.call(void 0, "size-4", className2), ...props2 });
|
|
1838
1838
|
}
|
|
1839
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className:
|
|
1839
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: _chunkQIA5FOQBjs.cn.call(void 0, "size-4", className2), ...props2 });
|
|
1840
1840
|
}, "Chevron"),
|
|
1841
1841
|
DayButton: CalendarDayButton,
|
|
1842
1842
|
WeekNumber: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ children, ...props2 }) => {
|
|
@@ -1865,7 +1865,7 @@ function CalendarDayButton({ className, day, modifiers, ...props }) {
|
|
|
1865
1865
|
"data-range-start": modifiers.range_start,
|
|
1866
1866
|
"data-range-end": modifiers.range_end,
|
|
1867
1867
|
"data-range-middle": modifiers.range_middle,
|
|
1868
|
-
className:
|
|
1868
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1869
1869
|
"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",
|
|
1870
1870
|
defaultClassNames.day,
|
|
1871
1871
|
className
|
|
@@ -1884,7 +1884,7 @@ function Card({ className, size = "default", ...props }) {
|
|
|
1884
1884
|
{
|
|
1885
1885
|
"data-slot": "card",
|
|
1886
1886
|
"data-size": size,
|
|
1887
|
-
className:
|
|
1887
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1888
1888
|
"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",
|
|
1889
1889
|
className
|
|
1890
1890
|
),
|
|
@@ -1898,7 +1898,7 @@ function CardHeader({ className, ...props }) {
|
|
|
1898
1898
|
"div",
|
|
1899
1899
|
{
|
|
1900
1900
|
"data-slot": "card-header",
|
|
1901
|
-
className:
|
|
1901
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1902
1902
|
"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]",
|
|
1903
1903
|
className
|
|
1904
1904
|
),
|
|
@@ -1908,11 +1908,11 @@ function CardHeader({ className, ...props }) {
|
|
|
1908
1908
|
}
|
|
1909
1909
|
_chunk7QVYU63Ejs.__name.call(void 0, CardHeader, "CardHeader");
|
|
1910
1910
|
function CardTitle({ className, ...props }) {
|
|
1911
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-title", className:
|
|
1911
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-title", className: _chunkQIA5FOQBjs.cn.call(void 0, "text-sm font-medium", className), ...props });
|
|
1912
1912
|
}
|
|
1913
1913
|
_chunk7QVYU63Ejs.__name.call(void 0, CardTitle, "CardTitle");
|
|
1914
1914
|
function CardDescription({ className, ...props }) {
|
|
1915
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-description", className:
|
|
1915
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-description", className: _chunkQIA5FOQBjs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className), ...props });
|
|
1916
1916
|
}
|
|
1917
1917
|
_chunk7QVYU63Ejs.__name.call(void 0, CardDescription, "CardDescription");
|
|
1918
1918
|
function CardAction({ className, ...props }) {
|
|
@@ -1920,14 +1920,14 @@ function CardAction({ className, ...props }) {
|
|
|
1920
1920
|
"div",
|
|
1921
1921
|
{
|
|
1922
1922
|
"data-slot": "card-action",
|
|
1923
|
-
className:
|
|
1923
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
|
|
1924
1924
|
...props
|
|
1925
1925
|
}
|
|
1926
1926
|
);
|
|
1927
1927
|
}
|
|
1928
1928
|
_chunk7QVYU63Ejs.__name.call(void 0, CardAction, "CardAction");
|
|
1929
1929
|
function CardContent({ className, ...props }) {
|
|
1930
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-content", className:
|
|
1930
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-content", className: _chunkQIA5FOQBjs.cn.call(void 0, "px-4 group-data-[size=sm]/card:px-3", className), ...props });
|
|
1931
1931
|
}
|
|
1932
1932
|
_chunk7QVYU63Ejs.__name.call(void 0, CardContent, "CardContent");
|
|
1933
1933
|
function CardFooter({ className, ...props }) {
|
|
@@ -1935,7 +1935,7 @@ function CardFooter({ className, ...props }) {
|
|
|
1935
1935
|
"div",
|
|
1936
1936
|
{
|
|
1937
1937
|
"data-slot": "card-footer",
|
|
1938
|
-
className:
|
|
1938
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
1939
1939
|
"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",
|
|
1940
1940
|
className
|
|
1941
1941
|
),
|
|
@@ -2030,7 +2030,7 @@ function Carousel({
|
|
|
2030
2030
|
"div",
|
|
2031
2031
|
{
|
|
2032
2032
|
onKeyDownCapture: handleKeyDown,
|
|
2033
|
-
className:
|
|
2033
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "relative", className),
|
|
2034
2034
|
role: "region",
|
|
2035
2035
|
"aria-roledescription": "carousel",
|
|
2036
2036
|
"data-slot": "carousel",
|
|
@@ -2044,7 +2044,7 @@ function Carousel({
|
|
|
2044
2044
|
_chunk7QVYU63Ejs.__name.call(void 0, Carousel, "Carousel");
|
|
2045
2045
|
function CarouselContent({ className, ...props }) {
|
|
2046
2046
|
const { carouselRef, orientation } = useCarousel();
|
|
2047
|
-
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:
|
|
2047
|
+
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: _chunkQIA5FOQBjs.cn.call(void 0, "flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className), ...props }) });
|
|
2048
2048
|
}
|
|
2049
2049
|
_chunk7QVYU63Ejs.__name.call(void 0, CarouselContent, "CarouselContent");
|
|
2050
2050
|
function CarouselItem({ className, ...props }) {
|
|
@@ -2055,7 +2055,7 @@ function CarouselItem({ className, ...props }) {
|
|
|
2055
2055
|
role: "group",
|
|
2056
2056
|
"aria-roledescription": "slide",
|
|
2057
2057
|
"data-slot": "carousel-item",
|
|
2058
|
-
className:
|
|
2058
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "min-w-0 shrink-0 grow-0 basis-full", orientation === "horizontal" ? "pl-4" : "pt-4", className),
|
|
2059
2059
|
...props
|
|
2060
2060
|
}
|
|
2061
2061
|
);
|
|
@@ -2074,7 +2074,7 @@ function CarouselPrevious({
|
|
|
2074
2074
|
"data-slot": "carousel-previous",
|
|
2075
2075
|
variant,
|
|
2076
2076
|
size,
|
|
2077
|
-
className:
|
|
2077
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2078
2078
|
"rounded-full absolute touch-manipulation",
|
|
2079
2079
|
orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
2080
2080
|
className
|
|
@@ -2103,7 +2103,7 @@ function CarouselNext({
|
|
|
2103
2103
|
"data-slot": "carousel-next",
|
|
2104
2104
|
variant,
|
|
2105
2105
|
size,
|
|
2106
|
-
className:
|
|
2106
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2107
2107
|
"rounded-full absolute touch-manipulation",
|
|
2108
2108
|
orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
2109
2109
|
className
|
|
@@ -2148,7 +2148,7 @@ function ChartContainer({
|
|
|
2148
2148
|
{
|
|
2149
2149
|
"data-slot": "chart",
|
|
2150
2150
|
"data-chart": chartId,
|
|
2151
|
-
className:
|
|
2151
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2152
2152
|
"[&_.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",
|
|
2153
2153
|
className
|
|
2154
2154
|
),
|
|
@@ -2210,12 +2210,12 @@ function ChartTooltipContent({
|
|
|
2210
2210
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
2211
2211
|
const value = !labelKey && typeof label === "string" ? _optionalChain([config, 'access', _71 => _71[label], 'optionalAccess', _72 => _72.label]) || label : _optionalChain([itemConfig, 'optionalAccess', _73 => _73.label]);
|
|
2212
2212
|
if (labelFormatter) {
|
|
2213
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2213
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkQIA5FOQBjs.cn.call(void 0, "font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
2214
2214
|
}
|
|
2215
2215
|
if (!value) {
|
|
2216
2216
|
return null;
|
|
2217
2217
|
}
|
|
2218
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2218
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkQIA5FOQBjs.cn.call(void 0, "font-medium", labelClassName), children: value });
|
|
2219
2219
|
}, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey]);
|
|
2220
2220
|
if (!active || !_optionalChain([payload, 'optionalAccess', _74 => _74.length])) {
|
|
2221
2221
|
return null;
|
|
@@ -2224,7 +2224,7 @@ function ChartTooltipContent({
|
|
|
2224
2224
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2225
2225
|
"div",
|
|
2226
2226
|
{
|
|
2227
|
-
className:
|
|
2227
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2228
2228
|
"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",
|
|
2229
2229
|
className
|
|
2230
2230
|
),
|
|
@@ -2237,7 +2237,7 @@ function ChartTooltipContent({
|
|
|
2237
2237
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2238
2238
|
"div",
|
|
2239
2239
|
{
|
|
2240
|
-
className:
|
|
2240
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2241
2241
|
"[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
|
|
2242
2242
|
indicator === "dot" && "items-center"
|
|
2243
2243
|
),
|
|
@@ -2245,7 +2245,7 @@ function ChartTooltipContent({
|
|
|
2245
2245
|
_optionalChain([itemConfig, 'optionalAccess', _78 => _78.icon]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2246
2246
|
"div",
|
|
2247
2247
|
{
|
|
2248
|
-
className:
|
|
2248
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", {
|
|
2249
2249
|
"h-2.5 w-2.5": indicator === "dot",
|
|
2250
2250
|
"w-1": indicator === "line",
|
|
2251
2251
|
"w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
|
|
@@ -2260,7 +2260,7 @@ function ChartTooltipContent({
|
|
|
2260
2260
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2261
2261
|
"div",
|
|
2262
2262
|
{
|
|
2263
|
-
className:
|
|
2263
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2264
2264
|
"flex flex-1 justify-between leading-none",
|
|
2265
2265
|
nestLabel ? "items-end" : "items-center"
|
|
2266
2266
|
),
|
|
@@ -2295,13 +2295,13 @@ function ChartLegendContent({
|
|
|
2295
2295
|
if (!_optionalChain([payload, 'optionalAccess', _80 => _80.length])) {
|
|
2296
2296
|
return null;
|
|
2297
2297
|
}
|
|
2298
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2298
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkQIA5FOQBjs.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) => {
|
|
2299
2299
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
2300
2300
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
2301
2301
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2302
2302
|
"div",
|
|
2303
2303
|
{
|
|
2304
|
-
className:
|
|
2304
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),
|
|
2305
2305
|
children: [
|
|
2306
2306
|
_optionalChain([itemConfig, 'optionalAccess', _81 => _81.icon]) && !hideIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2307
2307
|
"div",
|
|
@@ -2344,7 +2344,7 @@ function Checkbox({ className, ...props }) {
|
|
|
2344
2344
|
_checkbox.Checkbox.Root,
|
|
2345
2345
|
{
|
|
2346
2346
|
"data-slot": "checkbox",
|
|
2347
|
-
className:
|
|
2347
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2348
2348
|
"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",
|
|
2349
2349
|
className
|
|
2350
2350
|
),
|
|
@@ -2406,7 +2406,7 @@ function DialogOverlay({ className, ...props }) {
|
|
|
2406
2406
|
_dialog.Dialog.Backdrop,
|
|
2407
2407
|
{
|
|
2408
2408
|
"data-slot": "dialog-overlay",
|
|
2409
|
-
className:
|
|
2409
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2410
2410
|
"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",
|
|
2411
2411
|
className
|
|
2412
2412
|
),
|
|
@@ -2427,7 +2427,7 @@ function DialogContent({
|
|
|
2427
2427
|
_dialog.Dialog.Popup,
|
|
2428
2428
|
{
|
|
2429
2429
|
"data-slot": "dialog-content",
|
|
2430
|
-
className:
|
|
2430
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2431
2431
|
"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",
|
|
2432
2432
|
className
|
|
2433
2433
|
),
|
|
@@ -2452,7 +2452,7 @@ function DialogContent({
|
|
|
2452
2452
|
}
|
|
2453
2453
|
_chunk7QVYU63Ejs.__name.call(void 0, DialogContent, "DialogContent");
|
|
2454
2454
|
function DialogHeader({ className, ...props }) {
|
|
2455
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "dialog-header", className:
|
|
2455
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "dialog-header", className: _chunkQIA5FOQBjs.cn.call(void 0, "gap-1 flex flex-col", className), ...props });
|
|
2456
2456
|
}
|
|
2457
2457
|
_chunk7QVYU63Ejs.__name.call(void 0, DialogHeader, "DialogHeader");
|
|
2458
2458
|
function DialogFooter({
|
|
@@ -2465,7 +2465,7 @@ function DialogFooter({
|
|
|
2465
2465
|
"div",
|
|
2466
2466
|
{
|
|
2467
2467
|
"data-slot": "dialog-footer",
|
|
2468
|
-
className:
|
|
2468
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "gap-2 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
2469
2469
|
...props,
|
|
2470
2470
|
children: [
|
|
2471
2471
|
children,
|
|
@@ -2476,7 +2476,7 @@ function DialogFooter({
|
|
|
2476
2476
|
}
|
|
2477
2477
|
_chunk7QVYU63Ejs.__name.call(void 0, DialogFooter, "DialogFooter");
|
|
2478
2478
|
function DialogTitle({ className, ...props }) {
|
|
2479
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _dialog.Dialog.Title, { "data-slot": "dialog-title", className:
|
|
2479
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _dialog.Dialog.Title, { "data-slot": "dialog-title", className: _chunkQIA5FOQBjs.cn.call(void 0, "text-sm font-medium", className), ...props });
|
|
2480
2480
|
}
|
|
2481
2481
|
_chunk7QVYU63Ejs.__name.call(void 0, DialogTitle, "DialogTitle");
|
|
2482
2482
|
function DialogDescription({ className, ...props }) {
|
|
@@ -2484,7 +2484,7 @@ function DialogDescription({ className, ...props }) {
|
|
|
2484
2484
|
_dialog.Dialog.Description,
|
|
2485
2485
|
{
|
|
2486
2486
|
"data-slot": "dialog-description",
|
|
2487
|
-
className:
|
|
2487
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2488
2488
|
"text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed *:[a]:underline *:[a]:underline-offset-3",
|
|
2489
2489
|
className
|
|
2490
2490
|
),
|
|
@@ -2506,7 +2506,7 @@ function Input({ className, type, ...props }) {
|
|
|
2506
2506
|
{
|
|
2507
2507
|
type,
|
|
2508
2508
|
"data-slot": "input",
|
|
2509
|
-
className:
|
|
2509
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2510
2510
|
"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",
|
|
2511
2511
|
className
|
|
2512
2512
|
),
|
|
@@ -2523,7 +2523,7 @@ function Textarea({ className, ...props }) {
|
|
|
2523
2523
|
"textarea",
|
|
2524
2524
|
{
|
|
2525
2525
|
"data-slot": "textarea",
|
|
2526
|
-
className:
|
|
2526
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2527
2527
|
"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",
|
|
2528
2528
|
className
|
|
2529
2529
|
),
|
|
@@ -2541,7 +2541,7 @@ function InputGroup({ className, ...props }) {
|
|
|
2541
2541
|
{
|
|
2542
2542
|
"data-slot": "input-group",
|
|
2543
2543
|
role: "group",
|
|
2544
|
-
className:
|
|
2544
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2545
2545
|
"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",
|
|
2546
2546
|
className
|
|
2547
2547
|
),
|
|
@@ -2577,7 +2577,7 @@ function InputGroupAddon({
|
|
|
2577
2577
|
role: "group",
|
|
2578
2578
|
"data-slot": "input-group-addon",
|
|
2579
2579
|
"data-align": align,
|
|
2580
|
-
className:
|
|
2580
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, inputGroupAddonVariants({ align }), className),
|
|
2581
2581
|
onClick: (e) => {
|
|
2582
2582
|
if (e.target.closest("button")) {
|
|
2583
2583
|
return;
|
|
@@ -2615,7 +2615,7 @@ function InputGroupButton({
|
|
|
2615
2615
|
type,
|
|
2616
2616
|
"data-size": size,
|
|
2617
2617
|
variant,
|
|
2618
|
-
className:
|
|
2618
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, inputGroupButtonVariants({ size }), className),
|
|
2619
2619
|
...props
|
|
2620
2620
|
}
|
|
2621
2621
|
);
|
|
@@ -2625,7 +2625,7 @@ function InputGroupText({ className, ...props }) {
|
|
|
2625
2625
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2626
2626
|
"span",
|
|
2627
2627
|
{
|
|
2628
|
-
className:
|
|
2628
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2629
2629
|
"text-muted-foreground gap-2 text-xs/relaxed [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none",
|
|
2630
2630
|
className
|
|
2631
2631
|
),
|
|
@@ -2639,7 +2639,7 @@ function InputGroupInput({ className, ...props }) {
|
|
|
2639
2639
|
Input,
|
|
2640
2640
|
{
|
|
2641
2641
|
"data-slot": "input-group-control",
|
|
2642
|
-
className:
|
|
2642
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2643
2643
|
"rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent flex-1",
|
|
2644
2644
|
className
|
|
2645
2645
|
),
|
|
@@ -2653,7 +2653,7 @@ function InputGroupTextarea({ className, ...props }) {
|
|
|
2653
2653
|
Textarea,
|
|
2654
2654
|
{
|
|
2655
2655
|
"data-slot": "input-group-control",
|
|
2656
|
-
className:
|
|
2656
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2657
2657
|
"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",
|
|
2658
2658
|
className
|
|
2659
2659
|
),
|
|
@@ -2671,7 +2671,7 @@ function Command({ className, ...props }) {
|
|
|
2671
2671
|
_cmdk.Command,
|
|
2672
2672
|
{
|
|
2673
2673
|
"data-slot": "command",
|
|
2674
|
-
className:
|
|
2674
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2675
2675
|
"bg-popover text-popover-foreground rounded-xl p-1 flex size-full flex-col overflow-hidden",
|
|
2676
2676
|
className
|
|
2677
2677
|
),
|
|
@@ -2693,7 +2693,7 @@ function CommandDialog({
|
|
|
2693
2693
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTitle, { children: title }),
|
|
2694
2694
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogDescription, { children: description })
|
|
2695
2695
|
] }),
|
|
2696
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogContent, { className:
|
|
2696
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogContent, { className: _chunkQIA5FOQBjs.cn.call(void 0, "rounded-xl! p-0 overflow-hidden p-0", className), showCloseButton, children })
|
|
2697
2697
|
] });
|
|
2698
2698
|
}
|
|
2699
2699
|
_chunk7QVYU63Ejs.__name.call(void 0, CommandDialog, "CommandDialog");
|
|
@@ -2703,7 +2703,7 @@ function CommandInput({ className, ...props }) {
|
|
|
2703
2703
|
_cmdk.Command.Input,
|
|
2704
2704
|
{
|
|
2705
2705
|
"data-slot": "command-input",
|
|
2706
|
-
className:
|
|
2706
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2707
2707
|
"w-full text-xs/relaxed outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
2708
2708
|
className
|
|
2709
2709
|
),
|
|
@@ -2719,7 +2719,7 @@ function CommandList({ className, ...props }) {
|
|
|
2719
2719
|
_cmdk.Command.List,
|
|
2720
2720
|
{
|
|
2721
2721
|
"data-slot": "command-list",
|
|
2722
|
-
className:
|
|
2722
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "no-scrollbar max-h-72 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto", className),
|
|
2723
2723
|
...props
|
|
2724
2724
|
}
|
|
2725
2725
|
);
|
|
@@ -2730,7 +2730,7 @@ function CommandEmpty({ className, ...props }) {
|
|
|
2730
2730
|
_cmdk.Command.Empty,
|
|
2731
2731
|
{
|
|
2732
2732
|
"data-slot": "command-empty",
|
|
2733
|
-
className:
|
|
2733
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "py-6 text-center text-xs/relaxed", className),
|
|
2734
2734
|
...props
|
|
2735
2735
|
}
|
|
2736
2736
|
);
|
|
@@ -2741,7 +2741,7 @@ function CommandGroup({ className, ...props }) {
|
|
|
2741
2741
|
_cmdk.Command.Group,
|
|
2742
2742
|
{
|
|
2743
2743
|
"data-slot": "command-group",
|
|
2744
|
-
className:
|
|
2744
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2745
2745
|
"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",
|
|
2746
2746
|
className
|
|
2747
2747
|
),
|
|
@@ -2755,7 +2755,7 @@ function CommandSeparator({ className, ...props }) {
|
|
|
2755
2755
|
_cmdk.Command.Separator,
|
|
2756
2756
|
{
|
|
2757
2757
|
"data-slot": "command-separator",
|
|
2758
|
-
className:
|
|
2758
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
2759
2759
|
...props
|
|
2760
2760
|
}
|
|
2761
2761
|
);
|
|
@@ -2766,7 +2766,7 @@ function CommandItem({ className, children, ...props }) {
|
|
|
2766
2766
|
_cmdk.Command.Item,
|
|
2767
2767
|
{
|
|
2768
2768
|
"data-slot": "command-item",
|
|
2769
|
-
className:
|
|
2769
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2770
2770
|
"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",
|
|
2771
2771
|
className
|
|
2772
2772
|
),
|
|
@@ -2784,7 +2784,7 @@ function CommandShortcut({ className, ...props }) {
|
|
|
2784
2784
|
"span",
|
|
2785
2785
|
{
|
|
2786
2786
|
"data-slot": "command-shortcut",
|
|
2787
|
-
className:
|
|
2787
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2788
2788
|
"text-muted-foreground group-data-selected/command-item:text-foreground ml-auto text-[0.625rem] tracking-widest",
|
|
2789
2789
|
className
|
|
2790
2790
|
),
|
|
@@ -2811,7 +2811,7 @@ function ContextMenuTrigger({ className, ...props }) {
|
|
|
2811
2811
|
_contextmenu.ContextMenu.Trigger,
|
|
2812
2812
|
{
|
|
2813
2813
|
"data-slot": "context-menu-trigger",
|
|
2814
|
-
className:
|
|
2814
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "select-none", className),
|
|
2815
2815
|
...props
|
|
2816
2816
|
}
|
|
2817
2817
|
);
|
|
@@ -2837,7 +2837,7 @@ function ContextMenuContent({
|
|
|
2837
2837
|
_contextmenu.ContextMenu.Popup,
|
|
2838
2838
|
{
|
|
2839
2839
|
"data-slot": "context-menu-content",
|
|
2840
|
-
className:
|
|
2840
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2841
2841
|
"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",
|
|
2842
2842
|
className
|
|
2843
2843
|
),
|
|
@@ -2862,7 +2862,7 @@ function ContextMenuLabel({
|
|
|
2862
2862
|
{
|
|
2863
2863
|
"data-slot": "context-menu-label",
|
|
2864
2864
|
"data-inset": inset,
|
|
2865
|
-
className:
|
|
2865
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
|
|
2866
2866
|
...props
|
|
2867
2867
|
}
|
|
2868
2868
|
);
|
|
@@ -2880,7 +2880,7 @@ function ContextMenuItem({
|
|
|
2880
2880
|
"data-slot": "context-menu-item",
|
|
2881
2881
|
"data-inset": inset,
|
|
2882
2882
|
"data-variant": variant,
|
|
2883
|
-
className:
|
|
2883
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2884
2884
|
"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",
|
|
2885
2885
|
className
|
|
2886
2886
|
),
|
|
@@ -2904,7 +2904,7 @@ function ContextMenuSubTrigger({
|
|
|
2904
2904
|
{
|
|
2905
2905
|
"data-slot": "context-menu-sub-trigger",
|
|
2906
2906
|
"data-inset": inset,
|
|
2907
|
-
className:
|
|
2907
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2908
2908
|
"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",
|
|
2909
2909
|
className
|
|
2910
2910
|
),
|
|
@@ -2926,7 +2926,7 @@ function ContextMenuCheckboxItem({ className, children, checked, ...props }) {
|
|
|
2926
2926
|
_contextmenu.ContextMenu.CheckboxItem,
|
|
2927
2927
|
{
|
|
2928
2928
|
"data-slot": "context-menu-checkbox-item",
|
|
2929
|
-
className:
|
|
2929
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2930
2930
|
"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",
|
|
2931
2931
|
className
|
|
2932
2932
|
),
|
|
@@ -2949,7 +2949,7 @@ function ContextMenuRadioItem({ className, children, ...props }) {
|
|
|
2949
2949
|
_contextmenu.ContextMenu.RadioItem,
|
|
2950
2950
|
{
|
|
2951
2951
|
"data-slot": "context-menu-radio-item",
|
|
2952
|
-
className:
|
|
2952
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2953
2953
|
"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",
|
|
2954
2954
|
className
|
|
2955
2955
|
),
|
|
@@ -2967,7 +2967,7 @@ function ContextMenuSeparator({ className, ...props }) {
|
|
|
2967
2967
|
_contextmenu.ContextMenu.Separator,
|
|
2968
2968
|
{
|
|
2969
2969
|
"data-slot": "context-menu-separator",
|
|
2970
|
-
className:
|
|
2970
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
2971
2971
|
...props
|
|
2972
2972
|
}
|
|
2973
2973
|
);
|
|
@@ -2978,7 +2978,7 @@ function ContextMenuShortcut({ className, ...props }) {
|
|
|
2978
2978
|
"span",
|
|
2979
2979
|
{
|
|
2980
2980
|
"data-slot": "context-menu-shortcut",
|
|
2981
|
-
className:
|
|
2981
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
2982
2982
|
"text-muted-foreground group-focus/context-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest",
|
|
2983
2983
|
className
|
|
2984
2984
|
),
|
|
@@ -3012,7 +3012,7 @@ function DrawerOverlay({ className, ...props }) {
|
|
|
3012
3012
|
_vaul.Drawer.Overlay,
|
|
3013
3013
|
{
|
|
3014
3014
|
"data-slot": "drawer-overlay",
|
|
3015
|
-
className:
|
|
3015
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3016
3016
|
"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",
|
|
3017
3017
|
className
|
|
3018
3018
|
),
|
|
@@ -3028,7 +3028,7 @@ function DrawerContent({ className, children, ...props }) {
|
|
|
3028
3028
|
_vaul.Drawer.Content,
|
|
3029
3029
|
{
|
|
3030
3030
|
"data-slot": "drawer-content",
|
|
3031
|
-
className:
|
|
3031
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3032
3032
|
"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",
|
|
3033
3033
|
className
|
|
3034
3034
|
),
|
|
@@ -3047,7 +3047,7 @@ function DrawerHeader({ className, ...props }) {
|
|
|
3047
3047
|
"div",
|
|
3048
3048
|
{
|
|
3049
3049
|
"data-slot": "drawer-header",
|
|
3050
|
-
className:
|
|
3050
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3051
3051
|
"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",
|
|
3052
3052
|
className
|
|
3053
3053
|
),
|
|
@@ -3057,7 +3057,7 @@ function DrawerHeader({ className, ...props }) {
|
|
|
3057
3057
|
}
|
|
3058
3058
|
_chunk7QVYU63Ejs.__name.call(void 0, DrawerHeader, "DrawerHeader");
|
|
3059
3059
|
function DrawerFooter({ className, ...props }) {
|
|
3060
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "drawer-footer", className:
|
|
3060
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "drawer-footer", className: _chunkQIA5FOQBjs.cn.call(void 0, "gap-2 p-4 mt-auto flex flex-col", className), ...props });
|
|
3061
3061
|
}
|
|
3062
3062
|
_chunk7QVYU63Ejs.__name.call(void 0, DrawerFooter, "DrawerFooter");
|
|
3063
3063
|
function DrawerTitle({ className, ...props }) {
|
|
@@ -3065,7 +3065,7 @@ function DrawerTitle({ className, ...props }) {
|
|
|
3065
3065
|
_vaul.Drawer.Title,
|
|
3066
3066
|
{
|
|
3067
3067
|
"data-slot": "drawer-title",
|
|
3068
|
-
className:
|
|
3068
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "text-foreground text-sm font-medium", className),
|
|
3069
3069
|
...props
|
|
3070
3070
|
}
|
|
3071
3071
|
);
|
|
@@ -3076,7 +3076,7 @@ function DrawerDescription({ className, ...props }) {
|
|
|
3076
3076
|
_vaul.Drawer.Description,
|
|
3077
3077
|
{
|
|
3078
3078
|
"data-slot": "drawer-description",
|
|
3079
|
-
className:
|
|
3079
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
|
|
3080
3080
|
...props
|
|
3081
3081
|
}
|
|
3082
3082
|
);
|
|
@@ -3119,7 +3119,7 @@ function DropdownMenuContent({
|
|
|
3119
3119
|
_menu.Menu.Popup,
|
|
3120
3120
|
{
|
|
3121
3121
|
"data-slot": "dropdown-menu-content",
|
|
3122
|
-
className:
|
|
3122
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3123
3123
|
"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",
|
|
3124
3124
|
className
|
|
3125
3125
|
),
|
|
@@ -3144,7 +3144,7 @@ function DropdownMenuLabel({
|
|
|
3144
3144
|
{
|
|
3145
3145
|
"data-slot": "dropdown-menu-label",
|
|
3146
3146
|
"data-inset": inset,
|
|
3147
|
-
className:
|
|
3147
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
|
|
3148
3148
|
...props
|
|
3149
3149
|
}
|
|
3150
3150
|
);
|
|
@@ -3162,7 +3162,7 @@ function DropdownMenuItem({
|
|
|
3162
3162
|
"data-slot": "dropdown-menu-item",
|
|
3163
3163
|
"data-inset": inset,
|
|
3164
3164
|
"data-variant": variant,
|
|
3165
|
-
className:
|
|
3165
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3166
3166
|
"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",
|
|
3167
3167
|
className
|
|
3168
3168
|
),
|
|
@@ -3186,7 +3186,7 @@ function DropdownMenuSubTrigger({
|
|
|
3186
3186
|
{
|
|
3187
3187
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
3188
3188
|
"data-inset": inset,
|
|
3189
|
-
className:
|
|
3189
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3190
3190
|
"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",
|
|
3191
3191
|
className
|
|
3192
3192
|
),
|
|
@@ -3211,7 +3211,7 @@ function DropdownMenuSubContent({
|
|
|
3211
3211
|
DropdownMenuContent,
|
|
3212
3212
|
{
|
|
3213
3213
|
"data-slot": "dropdown-menu-sub-content",
|
|
3214
|
-
className:
|
|
3214
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3215
3215
|
"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",
|
|
3216
3216
|
className
|
|
3217
3217
|
),
|
|
@@ -3229,7 +3229,7 @@ function DropdownMenuCheckboxItem({ className, children, checked, ...props }) {
|
|
|
3229
3229
|
_menu.Menu.CheckboxItem,
|
|
3230
3230
|
{
|
|
3231
3231
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
3232
|
-
className:
|
|
3232
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3233
3233
|
"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",
|
|
3234
3234
|
className
|
|
3235
3235
|
),
|
|
@@ -3259,7 +3259,7 @@ function DropdownMenuRadioItem({ className, children, ...props }) {
|
|
|
3259
3259
|
_menu.Menu.RadioItem,
|
|
3260
3260
|
{
|
|
3261
3261
|
"data-slot": "dropdown-menu-radio-item",
|
|
3262
|
-
className:
|
|
3262
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3263
3263
|
"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",
|
|
3264
3264
|
className
|
|
3265
3265
|
),
|
|
@@ -3284,7 +3284,7 @@ function DropdownMenuSeparator({ className, ...props }) {
|
|
|
3284
3284
|
_menu.Menu.Separator,
|
|
3285
3285
|
{
|
|
3286
3286
|
"data-slot": "dropdown-menu-separator",
|
|
3287
|
-
className:
|
|
3287
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
3288
3288
|
...props
|
|
3289
3289
|
}
|
|
3290
3290
|
);
|
|
@@ -3295,7 +3295,7 @@ function DropdownMenuShortcut({ className, ...props }) {
|
|
|
3295
3295
|
"span",
|
|
3296
3296
|
{
|
|
3297
3297
|
"data-slot": "dropdown-menu-shortcut",
|
|
3298
|
-
className:
|
|
3298
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3299
3299
|
"text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest",
|
|
3300
3300
|
className
|
|
3301
3301
|
),
|
|
@@ -3316,7 +3316,7 @@ function Label({ className, ...props }) {
|
|
|
3316
3316
|
"label",
|
|
3317
3317
|
{
|
|
3318
3318
|
"data-slot": "label",
|
|
3319
|
-
className:
|
|
3319
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3320
3320
|
"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",
|
|
3321
3321
|
className
|
|
3322
3322
|
),
|
|
@@ -3335,7 +3335,7 @@ function Separator({ className, orientation = "horizontal", ...props }) {
|
|
|
3335
3335
|
{
|
|
3336
3336
|
"data-slot": "separator",
|
|
3337
3337
|
orientation,
|
|
3338
|
-
className:
|
|
3338
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3339
3339
|
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch",
|
|
3340
3340
|
className
|
|
3341
3341
|
),
|
|
@@ -3352,7 +3352,7 @@ function FieldSet({ className, ...props }) {
|
|
|
3352
3352
|
"fieldset",
|
|
3353
3353
|
{
|
|
3354
3354
|
"data-slot": "field-set",
|
|
3355
|
-
className:
|
|
3355
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3356
3356
|
"gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col",
|
|
3357
3357
|
className
|
|
3358
3358
|
),
|
|
@@ -3371,7 +3371,7 @@ function FieldLegend({
|
|
|
3371
3371
|
{
|
|
3372
3372
|
"data-slot": "field-legend",
|
|
3373
3373
|
"data-variant": variant,
|
|
3374
|
-
className:
|
|
3374
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "mb-2 font-medium data-[variant=label]:text-xs/relaxed data-[variant=legend]:text-sm", className),
|
|
3375
3375
|
...props
|
|
3376
3376
|
}
|
|
3377
3377
|
);
|
|
@@ -3382,7 +3382,7 @@ function FieldGroup({ className, ...props }) {
|
|
|
3382
3382
|
"div",
|
|
3383
3383
|
{
|
|
3384
3384
|
"data-slot": "field-group",
|
|
3385
|
-
className:
|
|
3385
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3386
3386
|
"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",
|
|
3387
3387
|
className
|
|
3388
3388
|
),
|
|
@@ -3414,7 +3414,7 @@ function Field({
|
|
|
3414
3414
|
role: "group",
|
|
3415
3415
|
"data-slot": "field",
|
|
3416
3416
|
"data-orientation": orientation,
|
|
3417
|
-
className:
|
|
3417
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, fieldVariants({ orientation }), className),
|
|
3418
3418
|
...props
|
|
3419
3419
|
}
|
|
3420
3420
|
);
|
|
@@ -3425,7 +3425,7 @@ function FieldContent({ className, ...props }) {
|
|
|
3425
3425
|
"div",
|
|
3426
3426
|
{
|
|
3427
3427
|
"data-slot": "field-content",
|
|
3428
|
-
className:
|
|
3428
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "gap-0.5 group/field-content flex flex-1 flex-col leading-snug", className),
|
|
3429
3429
|
...props
|
|
3430
3430
|
}
|
|
3431
3431
|
);
|
|
@@ -3436,7 +3436,7 @@ function FieldLabel({ className, ...props }) {
|
|
|
3436
3436
|
Label,
|
|
3437
3437
|
{
|
|
3438
3438
|
"data-slot": "field-label",
|
|
3439
|
-
className:
|
|
3439
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3440
3440
|
"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",
|
|
3441
3441
|
"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",
|
|
3442
3442
|
className
|
|
@@ -3451,7 +3451,7 @@ function FieldTitle({ className, ...props }) {
|
|
|
3451
3451
|
"div",
|
|
3452
3452
|
{
|
|
3453
3453
|
"data-slot": "field-label",
|
|
3454
|
-
className:
|
|
3454
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3455
3455
|
"gap-2 text-xs/relaxed font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center leading-snug",
|
|
3456
3456
|
className
|
|
3457
3457
|
),
|
|
@@ -3465,7 +3465,7 @@ function FieldDescription({ className, ...props }) {
|
|
|
3465
3465
|
"p",
|
|
3466
3466
|
{
|
|
3467
3467
|
"data-slot": "field-description",
|
|
3468
|
-
className:
|
|
3468
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3469
3469
|
"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",
|
|
3470
3470
|
"last:mt-0 nth-last-2:-mt-1",
|
|
3471
3471
|
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
@@ -3486,7 +3486,7 @@ function FieldSeparator({
|
|
|
3486
3486
|
{
|
|
3487
3487
|
"data-slot": "field-separator",
|
|
3488
3488
|
"data-content": !!children,
|
|
3489
|
-
className:
|
|
3489
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "-my-2 h-5 text-xs/relaxed group-data-[variant=outline]/field-group:-mb-2 relative", className),
|
|
3490
3490
|
...props,
|
|
3491
3491
|
children: [
|
|
3492
3492
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, { className: "absolute inset-0 top-1/2" }),
|
|
@@ -3530,7 +3530,7 @@ function FieldError({
|
|
|
3530
3530
|
{
|
|
3531
3531
|
role: "alert",
|
|
3532
3532
|
"data-slot": "field-error",
|
|
3533
|
-
className:
|
|
3533
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "text-destructive text-xs/relaxed font-normal", className),
|
|
3534
3534
|
...props,
|
|
3535
3535
|
children: content
|
|
3536
3536
|
}
|
|
@@ -3573,7 +3573,7 @@ function HoverCardContent({
|
|
|
3573
3573
|
_previewcard.PreviewCard.Popup,
|
|
3574
3574
|
{
|
|
3575
3575
|
"data-slot": "hover-card-content",
|
|
3576
|
-
className:
|
|
3576
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3577
3577
|
"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",
|
|
3578
3578
|
className
|
|
3579
3579
|
),
|
|
@@ -3599,9 +3599,9 @@ function InputOTP({
|
|
|
3599
3599
|
_inputotp.OTPInput,
|
|
3600
3600
|
{
|
|
3601
3601
|
"data-slot": "input-otp",
|
|
3602
|
-
containerClassName:
|
|
3602
|
+
containerClassName: _chunkQIA5FOQBjs.cn.call(void 0, "cn-input-otp flex items-center has-disabled:opacity-50", containerClassName),
|
|
3603
3603
|
spellCheck: false,
|
|
3604
|
-
className:
|
|
3604
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "disabled:cursor-not-allowed", className),
|
|
3605
3605
|
...props
|
|
3606
3606
|
}
|
|
3607
3607
|
);
|
|
@@ -3612,7 +3612,7 @@ function InputOTPGroup({ className, ...props }) {
|
|
|
3612
3612
|
"div",
|
|
3613
3613
|
{
|
|
3614
3614
|
"data-slot": "input-otp-group",
|
|
3615
|
-
className:
|
|
3615
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3616
3616
|
"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",
|
|
3617
3617
|
className
|
|
3618
3618
|
),
|
|
@@ -3633,7 +3633,7 @@ function InputOTPSlot({
|
|
|
3633
3633
|
{
|
|
3634
3634
|
"data-slot": "input-otp-slot",
|
|
3635
3635
|
"data-active": isActive,
|
|
3636
|
-
className:
|
|
3636
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3637
3637
|
"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",
|
|
3638
3638
|
className
|
|
3639
3639
|
),
|
|
@@ -3674,7 +3674,7 @@ function NavigationMenu({
|
|
|
3674
3674
|
_navigationmenu.NavigationMenu.Root,
|
|
3675
3675
|
{
|
|
3676
3676
|
"data-slot": "navigation-menu",
|
|
3677
|
-
className:
|
|
3677
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3678
3678
|
"max-w-max group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
|
|
3679
3679
|
className
|
|
3680
3680
|
),
|
|
@@ -3692,14 +3692,14 @@ function NavigationMenuList({ className, ...props }) {
|
|
|
3692
3692
|
_navigationmenu.NavigationMenu.List,
|
|
3693
3693
|
{
|
|
3694
3694
|
"data-slot": "navigation-menu-list",
|
|
3695
|
-
className:
|
|
3695
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "gap-0 group flex flex-1 list-none items-center justify-center", className),
|
|
3696
3696
|
...props
|
|
3697
3697
|
}
|
|
3698
3698
|
);
|
|
3699
3699
|
}
|
|
3700
3700
|
_chunk7QVYU63Ejs.__name.call(void 0, NavigationMenuList, "NavigationMenuList");
|
|
3701
3701
|
function NavigationMenuItem({ className, ...props }) {
|
|
3702
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _navigationmenu.NavigationMenu.Item, { "data-slot": "navigation-menu-item", className:
|
|
3702
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _navigationmenu.NavigationMenu.Item, { "data-slot": "navigation-menu-item", className: _chunkQIA5FOQBjs.cn.call(void 0, "relative", className), ...props });
|
|
3703
3703
|
}
|
|
3704
3704
|
_chunk7QVYU63Ejs.__name.call(void 0, NavigationMenuItem, "NavigationMenuItem");
|
|
3705
3705
|
var navigationMenuTriggerStyle = _classvarianceauthority.cva.call(void 0,
|
|
@@ -3710,7 +3710,7 @@ function NavigationMenuTrigger({ className, children, ...props }) {
|
|
|
3710
3710
|
_navigationmenu.NavigationMenu.Trigger,
|
|
3711
3711
|
{
|
|
3712
3712
|
"data-slot": "navigation-menu-trigger",
|
|
3713
|
-
className:
|
|
3713
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, navigationMenuTriggerStyle(), "group", className),
|
|
3714
3714
|
...props,
|
|
3715
3715
|
children: [
|
|
3716
3716
|
children,
|
|
@@ -3732,7 +3732,7 @@ function NavigationMenuContent({ className, ...props }) {
|
|
|
3732
3732
|
_navigationmenu.NavigationMenu.Content,
|
|
3733
3733
|
{
|
|
3734
3734
|
"data-slot": "navigation-menu-content",
|
|
3735
|
-
className:
|
|
3735
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3736
3736
|
"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",
|
|
3737
3737
|
className
|
|
3738
3738
|
),
|
|
@@ -3756,7 +3756,7 @@ function NavigationMenuPositioner({
|
|
|
3756
3756
|
sideOffset,
|
|
3757
3757
|
align,
|
|
3758
3758
|
alignOffset,
|
|
3759
|
-
className:
|
|
3759
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3760
3760
|
"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",
|
|
3761
3761
|
className
|
|
3762
3762
|
),
|
|
@@ -3771,7 +3771,7 @@ function NavigationMenuLink({ className, ...props }) {
|
|
|
3771
3771
|
_navigationmenu.NavigationMenu.Link,
|
|
3772
3772
|
{
|
|
3773
3773
|
"data-slot": "navigation-menu-link",
|
|
3774
|
-
className:
|
|
3774
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3775
3775
|
"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",
|
|
3776
3776
|
className
|
|
3777
3777
|
),
|
|
@@ -3788,7 +3788,7 @@ function NavigationMenuIndicator({
|
|
|
3788
3788
|
_navigationmenu.NavigationMenu.Icon,
|
|
3789
3789
|
{
|
|
3790
3790
|
"data-slot": "navigation-menu-indicator",
|
|
3791
|
-
className:
|
|
3791
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3792
3792
|
"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",
|
|
3793
3793
|
className
|
|
3794
3794
|
),
|
|
@@ -3830,7 +3830,7 @@ function PopoverContent({
|
|
|
3830
3830
|
_popover.Popover.Popup,
|
|
3831
3831
|
{
|
|
3832
3832
|
"data-slot": "popover-content",
|
|
3833
|
-
className:
|
|
3833
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3834
3834
|
"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",
|
|
3835
3835
|
className
|
|
3836
3836
|
),
|
|
@@ -3842,11 +3842,11 @@ function PopoverContent({
|
|
|
3842
3842
|
}
|
|
3843
3843
|
_chunk7QVYU63Ejs.__name.call(void 0, PopoverContent, "PopoverContent");
|
|
3844
3844
|
function PopoverHeader({ className, ...props }) {
|
|
3845
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "popover-header", className:
|
|
3845
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "popover-header", className: _chunkQIA5FOQBjs.cn.call(void 0, "flex flex-col gap-1 text-xs", className), ...props });
|
|
3846
3846
|
}
|
|
3847
3847
|
_chunk7QVYU63Ejs.__name.call(void 0, PopoverHeader, "PopoverHeader");
|
|
3848
3848
|
function PopoverTitle({ className, ...props }) {
|
|
3849
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _popover.Popover.Title, { "data-slot": "popover-title", className:
|
|
3849
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _popover.Popover.Title, { "data-slot": "popover-title", className: _chunkQIA5FOQBjs.cn.call(void 0, "text-sm font-medium", className), ...props });
|
|
3850
3850
|
}
|
|
3851
3851
|
_chunk7QVYU63Ejs.__name.call(void 0, PopoverTitle, "PopoverTitle");
|
|
3852
3852
|
function PopoverDescription({ className, ...props }) {
|
|
@@ -3854,7 +3854,7 @@ function PopoverDescription({ className, ...props }) {
|
|
|
3854
3854
|
_popover.Popover.Description,
|
|
3855
3855
|
{
|
|
3856
3856
|
"data-slot": "popover-description",
|
|
3857
|
-
className:
|
|
3857
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "text-muted-foreground", className),
|
|
3858
3858
|
...props
|
|
3859
3859
|
}
|
|
3860
3860
|
);
|
|
@@ -3870,7 +3870,7 @@ function Progress({ className, children, value, ...props }) {
|
|
|
3870
3870
|
{
|
|
3871
3871
|
value,
|
|
3872
3872
|
"data-slot": "progress",
|
|
3873
|
-
className:
|
|
3873
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "flex flex-wrap gap-3", className),
|
|
3874
3874
|
...props,
|
|
3875
3875
|
children: [
|
|
3876
3876
|
children,
|
|
@@ -3884,7 +3884,7 @@ function ProgressTrack({ className, ...props }) {
|
|
|
3884
3884
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3885
3885
|
_progress.Progress.Track,
|
|
3886
3886
|
{
|
|
3887
|
-
className:
|
|
3887
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "bg-muted h-1 rounded-md relative flex w-full items-center overflow-x-hidden", className),
|
|
3888
3888
|
"data-slot": "progress-track",
|
|
3889
3889
|
...props
|
|
3890
3890
|
}
|
|
@@ -3896,7 +3896,7 @@ function ProgressIndicator({ className, ...props }) {
|
|
|
3896
3896
|
_progress.Progress.Indicator,
|
|
3897
3897
|
{
|
|
3898
3898
|
"data-slot": "progress-indicator",
|
|
3899
|
-
className:
|
|
3899
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "bg-primary h-full transition-all", className),
|
|
3900
3900
|
...props
|
|
3901
3901
|
}
|
|
3902
3902
|
);
|
|
@@ -3906,7 +3906,7 @@ function ProgressLabel({ className, ...props }) {
|
|
|
3906
3906
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3907
3907
|
_progress.Progress.Label,
|
|
3908
3908
|
{
|
|
3909
|
-
className:
|
|
3909
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "text-xs/relaxed font-medium", className),
|
|
3910
3910
|
"data-slot": "progress-label",
|
|
3911
3911
|
...props
|
|
3912
3912
|
}
|
|
@@ -3917,7 +3917,7 @@ function ProgressValue({ className, ...props }) {
|
|
|
3917
3917
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3918
3918
|
_progress.Progress.Value,
|
|
3919
3919
|
{
|
|
3920
|
-
className:
|
|
3920
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "text-muted-foreground ml-auto text-xs/relaxed tabular-nums", className),
|
|
3921
3921
|
"data-slot": "progress-value",
|
|
3922
3922
|
...props
|
|
3923
3923
|
}
|
|
@@ -3931,7 +3931,7 @@ var _radiogroup = require('@base-ui/react/radio-group');
|
|
|
3931
3931
|
|
|
3932
3932
|
|
|
3933
3933
|
function RadioGroup({ className, ...props }) {
|
|
3934
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _radiogroup.RadioGroup, { "data-slot": "radio-group", className:
|
|
3934
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _radiogroup.RadioGroup, { "data-slot": "radio-group", className: _chunkQIA5FOQBjs.cn.call(void 0, "grid gap-3 w-full", className), ...props });
|
|
3935
3935
|
}
|
|
3936
3936
|
_chunk7QVYU63Ejs.__name.call(void 0, RadioGroup, "RadioGroup");
|
|
3937
3937
|
function RadioGroupItem({ className, ...props }) {
|
|
@@ -3939,7 +3939,7 @@ function RadioGroupItem({ className, ...props }) {
|
|
|
3939
3939
|
_radio.Radio.Root,
|
|
3940
3940
|
{
|
|
3941
3941
|
"data-slot": "radio-group-item",
|
|
3942
|
-
className:
|
|
3942
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3943
3943
|
"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",
|
|
3944
3944
|
className
|
|
3945
3945
|
),
|
|
@@ -3966,7 +3966,7 @@ function ResizablePanelGroup({ className, ...props }) {
|
|
|
3966
3966
|
ResizablePrimitive.Group,
|
|
3967
3967
|
{
|
|
3968
3968
|
"data-slot": "resizable-panel-group",
|
|
3969
|
-
className:
|
|
3969
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3970
3970
|
"flex h-full w-full",
|
|
3971
3971
|
// v4 uses aria-orientation instead of data-panel-group-direction
|
|
3972
3972
|
"aria-[orientation=vertical]:flex-col",
|
|
@@ -3990,7 +3990,7 @@ function ResizableHandle({
|
|
|
3990
3990
|
ResizablePrimitive.Separator,
|
|
3991
3991
|
{
|
|
3992
3992
|
"data-slot": "resizable-handle",
|
|
3993
|
-
className:
|
|
3993
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
3994
3994
|
"bg-border relative flex items-center justify-center",
|
|
3995
3995
|
"focus-visible:ring-ring focus-visible:ring-1 focus-visible:ring-offset-1",
|
|
3996
3996
|
// v4: Separator aria-orientation is OPPOSITE of Group orientation
|
|
@@ -4017,7 +4017,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ResizableHandle, "ResizableHandle");
|
|
|
4017
4017
|
var _scrollarea = require('@base-ui/react/scroll-area');
|
|
4018
4018
|
|
|
4019
4019
|
function ScrollArea({ className, children, ...props }) {
|
|
4020
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _scrollarea.ScrollArea.Root, { "data-slot": "scroll-area", className:
|
|
4020
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _scrollarea.ScrollArea.Root, { "data-slot": "scroll-area", className: _chunkQIA5FOQBjs.cn.call(void 0, "relative", className), ...props, children: [
|
|
4021
4021
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4022
4022
|
_scrollarea.ScrollArea.Viewport,
|
|
4023
4023
|
{
|
|
@@ -4038,7 +4038,7 @@ function ScrollBar({ className, orientation = "vertical", ...props }) {
|
|
|
4038
4038
|
"data-slot": "scroll-area-scrollbar",
|
|
4039
4039
|
"data-orientation": orientation,
|
|
4040
4040
|
orientation,
|
|
4041
|
-
className:
|
|
4041
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
4042
4042
|
"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",
|
|
4043
4043
|
className
|
|
4044
4044
|
),
|
|
@@ -4055,11 +4055,11 @@ var _select = require('@base-ui/react/select');
|
|
|
4055
4055
|
|
|
4056
4056
|
var Select = _select.Select.Root;
|
|
4057
4057
|
function SelectGroup({ className, ...props }) {
|
|
4058
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _select.Select.Group, { "data-slot": "select-group", className:
|
|
4058
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _select.Select.Group, { "data-slot": "select-group", className: _chunkQIA5FOQBjs.cn.call(void 0, "scroll-my-1 p-1", className), ...props });
|
|
4059
4059
|
}
|
|
4060
4060
|
_chunk7QVYU63Ejs.__name.call(void 0, SelectGroup, "SelectGroup");
|
|
4061
4061
|
function SelectValue({ className, ...props }) {
|
|
4062
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _select.Select.Value, { "data-slot": "select-value", className:
|
|
4062
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _select.Select.Value, { "data-slot": "select-value", className: _chunkQIA5FOQBjs.cn.call(void 0, "flex flex-1 text-left", className), ...props });
|
|
4063
4063
|
}
|
|
4064
4064
|
_chunk7QVYU63Ejs.__name.call(void 0, SelectValue, "SelectValue");
|
|
4065
4065
|
function SelectTrigger({
|
|
@@ -4073,7 +4073,7 @@ function SelectTrigger({
|
|
|
4073
4073
|
{
|
|
4074
4074
|
"data-slot": "select-trigger",
|
|
4075
4075
|
"data-size": size,
|
|
4076
|
-
className:
|
|
4076
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
4077
4077
|
"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",
|
|
4078
4078
|
className
|
|
4079
4079
|
),
|
|
@@ -4114,7 +4114,7 @@ function SelectContent({
|
|
|
4114
4114
|
_select.Select.Popup,
|
|
4115
4115
|
{
|
|
4116
4116
|
"data-slot": "select-content",
|
|
4117
|
-
className:
|
|
4117
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
4118
4118
|
"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",
|
|
4119
4119
|
className
|
|
4120
4120
|
),
|
|
@@ -4135,7 +4135,7 @@ function SelectLabel({ className, ...props }) {
|
|
|
4135
4135
|
_select.Select.GroupLabel,
|
|
4136
4136
|
{
|
|
4137
4137
|
"data-slot": "select-label",
|
|
4138
|
-
className:
|
|
4138
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs", className),
|
|
4139
4139
|
...props
|
|
4140
4140
|
}
|
|
4141
4141
|
);
|
|
@@ -4146,7 +4146,7 @@ function SelectItem({ className, children, ...props }) {
|
|
|
4146
4146
|
_select.Select.Item,
|
|
4147
4147
|
{
|
|
4148
4148
|
"data-slot": "select-item",
|
|
4149
|
-
className:
|
|
4149
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
4150
4150
|
"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",
|
|
4151
4151
|
className
|
|
4152
4152
|
),
|
|
@@ -4170,7 +4170,7 @@ function SelectSeparator({ className, ...props }) {
|
|
|
4170
4170
|
_select.Select.Separator,
|
|
4171
4171
|
{
|
|
4172
4172
|
"data-slot": "select-separator",
|
|
4173
|
-
className:
|
|
4173
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px pointer-events-none", className),
|
|
4174
4174
|
...props
|
|
4175
4175
|
}
|
|
4176
4176
|
);
|
|
@@ -4181,7 +4181,7 @@ function SelectScrollUpButton({ className, ...props }) {
|
|
|
4181
4181
|
_select.Select.ScrollUpArrow,
|
|
4182
4182
|
{
|
|
4183
4183
|
"data-slot": "select-scroll-up-button",
|
|
4184
|
-
className:
|
|
4184
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
4185
4185
|
"bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5 top-0 w-full",
|
|
4186
4186
|
className
|
|
4187
4187
|
),
|
|
@@ -4196,7 +4196,7 @@ function SelectScrollDownButton({ className, ...props }) {
|
|
|
4196
4196
|
_select.Select.ScrollDownArrow,
|
|
4197
4197
|
{
|
|
4198
4198
|
"data-slot": "select-scroll-down-button",
|
|
4199
|
-
className:
|
|
4199
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
4200
4200
|
"bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5 bottom-0 w-full",
|
|
4201
4201
|
className
|
|
4202
4202
|
),
|
|
@@ -4232,7 +4232,7 @@ function SheetOverlay({ className, ...props }) {
|
|
|
4232
4232
|
_dialog.Dialog.Backdrop,
|
|
4233
4233
|
{
|
|
4234
4234
|
"data-slot": "sheet-overlay",
|
|
4235
|
-
className:
|
|
4235
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
4236
4236
|
"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",
|
|
4237
4237
|
className
|
|
4238
4238
|
),
|
|
@@ -4255,7 +4255,7 @@ function SheetContent({
|
|
|
4255
4255
|
{
|
|
4256
4256
|
"data-slot": "sheet-content",
|
|
4257
4257
|
"data-side": side,
|
|
4258
|
-
className:
|
|
4258
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
4259
4259
|
"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",
|
|
4260
4260
|
className
|
|
4261
4261
|
),
|
|
@@ -4280,11 +4280,11 @@ function SheetContent({
|
|
|
4280
4280
|
}
|
|
4281
4281
|
_chunk7QVYU63Ejs.__name.call(void 0, SheetContent, "SheetContent");
|
|
4282
4282
|
function SheetHeader({ className, ...props }) {
|
|
4283
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "sheet-header", className:
|
|
4283
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "sheet-header", className: _chunkQIA5FOQBjs.cn.call(void 0, "gap-1.5 p-6 flex flex-col", className), ...props });
|
|
4284
4284
|
}
|
|
4285
4285
|
_chunk7QVYU63Ejs.__name.call(void 0, SheetHeader, "SheetHeader");
|
|
4286
4286
|
function SheetFooter({ className, ...props }) {
|
|
4287
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "sheet-footer", className:
|
|
4287
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "sheet-footer", className: _chunkQIA5FOQBjs.cn.call(void 0, "gap-2 p-6 mt-auto flex flex-col", className), ...props });
|
|
4288
4288
|
}
|
|
4289
4289
|
_chunk7QVYU63Ejs.__name.call(void 0, SheetFooter, "SheetFooter");
|
|
4290
4290
|
function SheetTitle({ className, ...props }) {
|
|
@@ -4292,7 +4292,7 @@ function SheetTitle({ className, ...props }) {
|
|
|
4292
4292
|
_dialog.Dialog.Title,
|
|
4293
4293
|
{
|
|
4294
4294
|
"data-slot": "sheet-title",
|
|
4295
|
-
className:
|
|
4295
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "text-foreground text-sm font-medium", className),
|
|
4296
4296
|
...props
|
|
4297
4297
|
}
|
|
4298
4298
|
);
|
|
@@ -4303,7 +4303,7 @@ function SheetDescription({ className, ...props }) {
|
|
|
4303
4303
|
_dialog.Dialog.Description,
|
|
4304
4304
|
{
|
|
4305
4305
|
"data-slot": "sheet-description",
|
|
4306
|
-
className:
|
|
4306
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
|
|
4307
4307
|
...props
|
|
4308
4308
|
}
|
|
4309
4309
|
);
|
|
@@ -4319,7 +4319,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, SheetDescription, "SheetDescription");
|
|
|
4319
4319
|
// src/shadcnui/ui/skeleton.tsx
|
|
4320
4320
|
|
|
4321
4321
|
function Skeleton({ className, ...props }) {
|
|
4322
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "skeleton", className:
|
|
4322
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "skeleton", className: _chunkQIA5FOQBjs.cn.call(void 0, "bg-muted rounded-md animate-pulse", className), ...props });
|
|
4323
4323
|
}
|
|
4324
4324
|
_chunk7QVYU63Ejs.__name.call(void 0, Skeleton, "Skeleton");
|
|
4325
4325
|
|
|
@@ -4359,7 +4359,7 @@ function TooltipContent({
|
|
|
4359
4359
|
_tooltip.Tooltip.Popup,
|
|
4360
4360
|
{
|
|
4361
4361
|
"data-slot": "tooltip-content",
|
|
4362
|
-
className:
|
|
4362
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
4363
4363
|
"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)",
|
|
4364
4364
|
className
|
|
4365
4365
|
),
|
|
@@ -4402,7 +4402,7 @@ function SidebarProvider({
|
|
|
4402
4402
|
children,
|
|
4403
4403
|
...props
|
|
4404
4404
|
}) {
|
|
4405
|
-
const isMobile =
|
|
4405
|
+
const isMobile = _chunkQIA5FOQBjs.useIsMobile.call(void 0, );
|
|
4406
4406
|
const [openMobile, setOpenMobile] = React7.useState(false);
|
|
4407
4407
|
const [_open, _setOpen] = React7.useState(defaultOpen);
|
|
4408
4408
|
const open = _nullishCoalesce(openProp, () => ( _open));
|
|
@@ -4453,7 +4453,7 @@ function SidebarProvider({
|
|
|
4453
4453
|
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
4454
4454
|
...style
|
|
4455
4455
|
},
|
|
4456
|
-
className:
|
|
4456
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", className),
|
|
4457
4457
|
...props,
|
|
4458
4458
|
children
|
|
4459
4459
|
}
|
|
@@ -4474,7 +4474,7 @@ function Sidebar({
|
|
|
4474
4474
|
"div",
|
|
4475
4475
|
{
|
|
4476
4476
|
"data-slot": "sidebar",
|
|
4477
|
-
className:
|
|
4477
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", className),
|
|
4478
4478
|
...props,
|
|
4479
4479
|
children
|
|
4480
4480
|
}
|
|
@@ -4516,7 +4516,7 @@ function Sidebar({
|
|
|
4516
4516
|
"div",
|
|
4517
4517
|
{
|
|
4518
4518
|
"data-slot": "sidebar-gap",
|
|
4519
|
-
className:
|
|
4519
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
4520
4520
|
"transition-[width] duration-200 ease-linear relative w-(--sidebar-width) bg-transparent",
|
|
4521
4521
|
"group-data-[collapsible=offExamples]:w-0",
|
|
4522
4522
|
"group-data-[side=right]:rotate-180",
|
|
@@ -4528,7 +4528,7 @@ function Sidebar({
|
|
|
4528
4528
|
"div",
|
|
4529
4529
|
{
|
|
4530
4530
|
"data-slot": "sidebar-container",
|
|
4531
|
-
className:
|
|
4531
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
4532
4532
|
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
4533
4533
|
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)]",
|
|
4534
4534
|
// Adjust the padding for floating and inset variants.
|
|
@@ -4561,7 +4561,7 @@ function SidebarTrigger({ className, onClick, ...props }) {
|
|
|
4561
4561
|
"data-slot": "sidebar-trigger",
|
|
4562
4562
|
variant: "ghost",
|
|
4563
4563
|
size: "icon-sm",
|
|
4564
|
-
className:
|
|
4564
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, className),
|
|
4565
4565
|
onClick: (event) => {
|
|
4566
4566
|
_optionalChain([onClick, 'optionalCall', _97 => _97(event)]);
|
|
4567
4567
|
toggleSidebar();
|
|
@@ -4586,7 +4586,7 @@ function SidebarRail({ className, ...props }) {
|
|
|
4586
4586
|
tabIndex: -1,
|
|
4587
4587
|
onClick: toggleSidebar,
|
|
4588
4588
|
title: "Toggle Sidebar",
|
|
4589
|
-
className:
|
|
4589
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
4590
4590
|
"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",
|
|
4591
4591
|
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
4592
4592
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
@@ -4605,7 +4605,7 @@ function SidebarInset({ className, ...props }) {
|
|
|
4605
4605
|
"main",
|
|
4606
4606
|
{
|
|
4607
4607
|
"data-slot": "sidebar-inset",
|
|
4608
|
-
className:
|
|
4608
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
4609
4609
|
"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",
|
|
4610
4610
|
className
|
|
4611
4611
|
),
|
|
@@ -4620,7 +4620,7 @@ function SidebarInput({ className, ...props }) {
|
|
|
4620
4620
|
{
|
|
4621
4621
|
"data-slot": "sidebar-input",
|
|
4622
4622
|
"data-sidebar": "input",
|
|
4623
|
-
className:
|
|
4623
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "bg-muted/20 dark:bg-muted/30 border-input h-8 w-full", className),
|
|
4624
4624
|
...props
|
|
4625
4625
|
}
|
|
4626
4626
|
);
|
|
@@ -4632,7 +4632,7 @@ function SidebarHeader({ className, ...props }) {
|
|
|
4632
4632
|
{
|
|
4633
4633
|
"data-slot": "sidebar-header",
|
|
4634
4634
|
"data-sidebar": "header",
|
|
4635
|
-
className:
|
|
4635
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
|
|
4636
4636
|
...props
|
|
4637
4637
|
}
|
|
4638
4638
|
);
|
|
@@ -4644,7 +4644,7 @@ function SidebarFooter({ className, ...props }) {
|
|
|
4644
4644
|
{
|
|
4645
4645
|
"data-slot": "sidebar-footer",
|
|
4646
4646
|
"data-sidebar": "footer",
|
|
4647
|
-
className:
|
|
4647
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
|
|
4648
4648
|
...props
|
|
4649
4649
|
}
|
|
4650
4650
|
);
|
|
@@ -4656,7 +4656,7 @@ function SidebarSeparator({ className, ...props }) {
|
|
|
4656
4656
|
{
|
|
4657
4657
|
"data-slot": "sidebar-separator",
|
|
4658
4658
|
"data-sidebar": "separator",
|
|
4659
|
-
className:
|
|
4659
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "bg-sidebar-border mx-2 w-auto", className),
|
|
4660
4660
|
...props
|
|
4661
4661
|
}
|
|
4662
4662
|
);
|
|
@@ -4668,7 +4668,7 @@ function SidebarContent({ className, ...props }) {
|
|
|
4668
4668
|
{
|
|
4669
4669
|
"data-slot": "sidebar-content",
|
|
4670
4670
|
"data-sidebar": "content",
|
|
4671
|
-
className:
|
|
4671
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
4672
4672
|
"no-scrollbar gap-0 flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
4673
4673
|
className
|
|
4674
4674
|
),
|
|
@@ -4683,7 +4683,7 @@ function SidebarGroup({ className, ...props }) {
|
|
|
4683
4683
|
{
|
|
4684
4684
|
"data-slot": "sidebar-group",
|
|
4685
4685
|
"data-sidebar": "group",
|
|
4686
|
-
className:
|
|
4686
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "px-2 py-1 relative flex w-full min-w-0 flex-col", className),
|
|
4687
4687
|
...props
|
|
4688
4688
|
}
|
|
4689
4689
|
);
|
|
@@ -4698,7 +4698,7 @@ function SidebarGroupLabel({
|
|
|
4698
4698
|
defaultTagName: "div",
|
|
4699
4699
|
props: _mergeprops.mergeProps.call(void 0,
|
|
4700
4700
|
{
|
|
4701
|
-
className:
|
|
4701
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
4702
4702
|
"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",
|
|
4703
4703
|
className
|
|
4704
4704
|
)
|
|
@@ -4722,7 +4722,7 @@ function SidebarGroupAction({
|
|
|
4722
4722
|
defaultTagName: "button",
|
|
4723
4723
|
props: _mergeprops.mergeProps.call(void 0,
|
|
4724
4724
|
{
|
|
4725
|
-
className:
|
|
4725
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
4726
4726
|
"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",
|
|
4727
4727
|
className
|
|
4728
4728
|
)
|
|
@@ -4743,7 +4743,7 @@ function SidebarGroupContent({ className, ...props }) {
|
|
|
4743
4743
|
{
|
|
4744
4744
|
"data-slot": "sidebar-group-content",
|
|
4745
4745
|
"data-sidebar": "group-content",
|
|
4746
|
-
className:
|
|
4746
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "text-xs w-full", className),
|
|
4747
4747
|
...props
|
|
4748
4748
|
}
|
|
4749
4749
|
);
|
|
@@ -4755,7 +4755,7 @@ function SidebarMenu({ className, ...props }) {
|
|
|
4755
4755
|
{
|
|
4756
4756
|
"data-slot": "sidebar-menu",
|
|
4757
4757
|
"data-sidebar": "menu",
|
|
4758
|
-
className:
|
|
4758
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "gap-px flex w-full min-w-0 flex-col", className),
|
|
4759
4759
|
...props
|
|
4760
4760
|
}
|
|
4761
4761
|
);
|
|
@@ -4767,7 +4767,7 @@ function SidebarMenuItem({ className, ...props }) {
|
|
|
4767
4767
|
{
|
|
4768
4768
|
"data-slot": "sidebar-menu-item",
|
|
4769
4769
|
"data-sidebar": "menu-item",
|
|
4770
|
-
className:
|
|
4770
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "group/menu-item relative", className),
|
|
4771
4771
|
...props
|
|
4772
4772
|
}
|
|
4773
4773
|
);
|
|
@@ -4807,7 +4807,7 @@ function SidebarMenuButton({
|
|
|
4807
4807
|
defaultTagName: "button",
|
|
4808
4808
|
props: _mergeprops.mergeProps.call(void 0,
|
|
4809
4809
|
{
|
|
4810
|
-
className:
|
|
4810
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, sidebarMenuButtonVariants({ variant, size }), className)
|
|
4811
4811
|
},
|
|
4812
4812
|
props
|
|
4813
4813
|
),
|
|
@@ -4843,7 +4843,7 @@ function SidebarMenuAction({
|
|
|
4843
4843
|
defaultTagName: "button",
|
|
4844
4844
|
props: _mergeprops.mergeProps.call(void 0,
|
|
4845
4845
|
{
|
|
4846
|
-
className:
|
|
4846
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
4847
4847
|
"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",
|
|
4848
4848
|
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",
|
|
4849
4849
|
className
|
|
@@ -4865,7 +4865,7 @@ function SidebarMenuBadge({ className, ...props }) {
|
|
|
4865
4865
|
{
|
|
4866
4866
|
"data-slot": "sidebar-menu-badge",
|
|
4867
4867
|
"data-sidebar": "menu-badge",
|
|
4868
|
-
className:
|
|
4868
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
4869
4869
|
"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",
|
|
4870
4870
|
className
|
|
4871
4871
|
),
|
|
@@ -4887,7 +4887,7 @@ function SidebarMenuSkeleton({
|
|
|
4887
4887
|
{
|
|
4888
4888
|
"data-slot": "sidebar-menu-skeleton",
|
|
4889
4889
|
"data-sidebar": "menu-skeleton",
|
|
4890
|
-
className:
|
|
4890
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "h-8 gap-2 rounded-md px-2 flex items-center", className),
|
|
4891
4891
|
...props,
|
|
4892
4892
|
children: [
|
|
4893
4893
|
showIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" }),
|
|
@@ -4912,7 +4912,7 @@ function SidebarMenuSub({ className, ...props }) {
|
|
|
4912
4912
|
{
|
|
4913
4913
|
"data-slot": "sidebar-menu-sub",
|
|
4914
4914
|
"data-sidebar": "menu-sub",
|
|
4915
|
-
className:
|
|
4915
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
4916
4916
|
"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",
|
|
4917
4917
|
className
|
|
4918
4918
|
),
|
|
@@ -4927,7 +4927,7 @@ function SidebarMenuSubItem({ className, ...props }) {
|
|
|
4927
4927
|
{
|
|
4928
4928
|
"data-slot": "sidebar-menu-sub-item",
|
|
4929
4929
|
"data-sidebar": "menu-sub-item",
|
|
4930
|
-
className:
|
|
4930
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "group/menu-sub-item relative", className),
|
|
4931
4931
|
...props
|
|
4932
4932
|
}
|
|
4933
4933
|
);
|
|
@@ -4944,7 +4944,7 @@ function SidebarMenuSubButton({
|
|
|
4944
4944
|
defaultTagName: "a",
|
|
4945
4945
|
props: _mergeprops.mergeProps.call(void 0,
|
|
4946
4946
|
{
|
|
4947
|
-
className:
|
|
4947
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
4948
4948
|
"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",
|
|
4949
4949
|
className
|
|
4950
4950
|
)
|
|
@@ -4985,7 +4985,7 @@ function Slider({ className, defaultValue, value, min = 0, max = 100, ...props }
|
|
|
4985
4985
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4986
4986
|
_slider.Slider.Control,
|
|
4987
4987
|
{
|
|
4988
|
-
className:
|
|
4988
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
4989
4989
|
"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",
|
|
4990
4990
|
className
|
|
4991
4991
|
),
|
|
@@ -5069,7 +5069,7 @@ function Switch({
|
|
|
5069
5069
|
{
|
|
5070
5070
|
"data-slot": "switch",
|
|
5071
5071
|
"data-size": size,
|
|
5072
|
-
className:
|
|
5072
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
5073
5073
|
"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",
|
|
5074
5074
|
className
|
|
5075
5075
|
),
|
|
@@ -5078,7 +5078,7 @@ function Switch({
|
|
|
5078
5078
|
_switch.Switch.Thumb,
|
|
5079
5079
|
{
|
|
5080
5080
|
"data-slot": "switch-thumb",
|
|
5081
|
-
className:
|
|
5081
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
5082
5082
|
"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",
|
|
5083
5083
|
children && "flex items-center justify-center"
|
|
5084
5084
|
),
|
|
@@ -5093,15 +5093,15 @@ _chunk7QVYU63Ejs.__name.call(void 0, Switch, "Switch");
|
|
|
5093
5093
|
// src/shadcnui/ui/table.tsx
|
|
5094
5094
|
|
|
5095
5095
|
function Table({ className, ...props }) {
|
|
5096
|
-
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:
|
|
5096
|
+
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: _chunkQIA5FOQBjs.cn.call(void 0, "w-full caption-bottom text-xs", className), ...props }) });
|
|
5097
5097
|
}
|
|
5098
5098
|
_chunk7QVYU63Ejs.__name.call(void 0, Table, "Table");
|
|
5099
5099
|
function TableHeader({ className, ...props }) {
|
|
5100
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { "data-slot": "table-header", className:
|
|
5100
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { "data-slot": "table-header", className: _chunkQIA5FOQBjs.cn.call(void 0, "[&_tr]:border-b", className), ...props });
|
|
5101
5101
|
}
|
|
5102
5102
|
_chunk7QVYU63Ejs.__name.call(void 0, TableHeader, "TableHeader");
|
|
5103
5103
|
function TableBody({ className, ...props }) {
|
|
5104
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { "data-slot": "table-body", className:
|
|
5104
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { "data-slot": "table-body", className: _chunkQIA5FOQBjs.cn.call(void 0, "[&_tr:last-child]:border-0", className), ...props });
|
|
5105
5105
|
}
|
|
5106
5106
|
_chunk7QVYU63Ejs.__name.call(void 0, TableBody, "TableBody");
|
|
5107
5107
|
function TableFooter({ className, ...props }) {
|
|
@@ -5109,7 +5109,7 @@ function TableFooter({ className, ...props }) {
|
|
|
5109
5109
|
"tfoot",
|
|
5110
5110
|
{
|
|
5111
5111
|
"data-slot": "table-footer",
|
|
5112
|
-
className:
|
|
5112
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", className),
|
|
5113
5113
|
...props
|
|
5114
5114
|
}
|
|
5115
5115
|
);
|
|
@@ -5120,7 +5120,7 @@ function TableRow({ className, ...props }) {
|
|
|
5120
5120
|
"tr",
|
|
5121
5121
|
{
|
|
5122
5122
|
"data-slot": "table-row",
|
|
5123
|
-
className:
|
|
5123
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", className),
|
|
5124
5124
|
...props
|
|
5125
5125
|
}
|
|
5126
5126
|
);
|
|
@@ -5131,7 +5131,7 @@ function TableHead({ className, ...props }) {
|
|
|
5131
5131
|
"th",
|
|
5132
5132
|
{
|
|
5133
5133
|
"data-slot": "table-head",
|
|
5134
|
-
className:
|
|
5134
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
5135
5135
|
"text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0",
|
|
5136
5136
|
className
|
|
5137
5137
|
),
|
|
@@ -5145,14 +5145,14 @@ function TableCell({ className, ...props }) {
|
|
|
5145
5145
|
"td",
|
|
5146
5146
|
{
|
|
5147
5147
|
"data-slot": "table-cell",
|
|
5148
|
-
className:
|
|
5148
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0", className),
|
|
5149
5149
|
...props
|
|
5150
5150
|
}
|
|
5151
5151
|
);
|
|
5152
5152
|
}
|
|
5153
5153
|
_chunk7QVYU63Ejs.__name.call(void 0, TableCell, "TableCell");
|
|
5154
5154
|
function TableCaption({ className, ...props }) {
|
|
5155
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "caption", { "data-slot": "table-caption", className:
|
|
5155
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "caption", { "data-slot": "table-caption", className: _chunkQIA5FOQBjs.cn.call(void 0, "text-muted-foreground mt-4 text-xs", className), ...props });
|
|
5156
5156
|
}
|
|
5157
5157
|
_chunk7QVYU63Ejs.__name.call(void 0, TableCaption, "TableCaption");
|
|
5158
5158
|
|
|
@@ -5166,7 +5166,7 @@ function Tabs({ className, orientation = "horizontal", ...props }) {
|
|
|
5166
5166
|
{
|
|
5167
5167
|
"data-slot": "tabs",
|
|
5168
5168
|
"data-orientation": orientation,
|
|
5169
|
-
className:
|
|
5169
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "gap-2 group/tabs flex data-[orientation=horizontal]:flex-col", className),
|
|
5170
5170
|
...props
|
|
5171
5171
|
}
|
|
5172
5172
|
);
|
|
@@ -5196,7 +5196,7 @@ function TabsList({
|
|
|
5196
5196
|
{
|
|
5197
5197
|
"data-slot": "tabs-list",
|
|
5198
5198
|
"data-variant": variant,
|
|
5199
|
-
className:
|
|
5199
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, tabsListVariants({ variant }), className),
|
|
5200
5200
|
...props
|
|
5201
5201
|
}
|
|
5202
5202
|
);
|
|
@@ -5207,7 +5207,7 @@ function TabsTrigger({ className, ...props }) {
|
|
|
5207
5207
|
_tabs.Tabs.Tab,
|
|
5208
5208
|
{
|
|
5209
5209
|
"data-slot": "tabs-trigger",
|
|
5210
|
-
className:
|
|
5210
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
5211
5211
|
"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",
|
|
5212
5212
|
"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",
|
|
5213
5213
|
"data-active:bg-background dark:data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 data-active:text-foreground",
|
|
@@ -5224,7 +5224,7 @@ function TabsContent({ className, ...props }) {
|
|
|
5224
5224
|
_tabs.Tabs.Panel,
|
|
5225
5225
|
{
|
|
5226
5226
|
"data-slot": "tabs-content",
|
|
5227
|
-
className:
|
|
5227
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "text-xs/relaxed flex-1 outline-none", className),
|
|
5228
5228
|
...props
|
|
5229
5229
|
}
|
|
5230
5230
|
);
|
|
@@ -5261,7 +5261,7 @@ function Toggle({
|
|
|
5261
5261
|
size = "default",
|
|
5262
5262
|
...props
|
|
5263
5263
|
}) {
|
|
5264
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _toggle.Toggle, { "data-slot": "toggle", className:
|
|
5264
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _toggle.Toggle, { "data-slot": "toggle", className: _chunkQIA5FOQBjs.cn.call(void 0, toggleVariants({ variant, size, className })), ...props });
|
|
5265
5265
|
}
|
|
5266
5266
|
_chunk7QVYU63Ejs.__name.call(void 0, Toggle, "Toggle");
|
|
5267
5267
|
|
|
@@ -5727,7 +5727,7 @@ var KanbanBoard = React9.forwardRef((props, forwardedRef) => {
|
|
|
5727
5727
|
"data-slot": "kanban-board",
|
|
5728
5728
|
...boardProps,
|
|
5729
5729
|
ref: forwardedRef,
|
|
5730
|
-
className:
|
|
5730
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
5731
5731
|
"flex size-full gap-4",
|
|
5732
5732
|
context.orientation === "horizontal" ? "flex-row" : "flex-col",
|
|
5733
5733
|
className
|
|
@@ -5766,7 +5766,7 @@ var KanbanColumn = React9.forwardRef((props, forwardedRef) => {
|
|
|
5766
5766
|
disabled,
|
|
5767
5767
|
animateLayoutChanges
|
|
5768
5768
|
});
|
|
5769
|
-
const composedRef =
|
|
5769
|
+
const composedRef = _chunkQIA5FOQBjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
5770
5770
|
if (disabled) return;
|
|
5771
5771
|
setNodeRef(node);
|
|
5772
5772
|
});
|
|
@@ -5810,7 +5810,7 @@ var KanbanColumn = React9.forwardRef((props, forwardedRef) => {
|
|
|
5810
5810
|
...asHandle && !disabled ? listeners : {},
|
|
5811
5811
|
ref: composedRef,
|
|
5812
5812
|
style: composedStyle,
|
|
5813
|
-
className:
|
|
5813
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
5814
5814
|
"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",
|
|
5815
5815
|
{
|
|
5816
5816
|
"touch-none select-none": asHandle,
|
|
@@ -5833,7 +5833,7 @@ var KanbanColumnHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
5833
5833
|
const context = useKanbanContext(COLUMN_NAME);
|
|
5834
5834
|
const columnContext = useKanbanColumnContext(COLUMN_HANDLE_NAME);
|
|
5835
5835
|
const isDisabled = _nullishCoalesce(disabled, () => ( columnContext.disabled));
|
|
5836
|
-
const composedRef =
|
|
5836
|
+
const composedRef = _chunkQIA5FOQBjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
5837
5837
|
if (isDisabled) return;
|
|
5838
5838
|
columnContext.setActivatorNodeRef(node);
|
|
5839
5839
|
});
|
|
@@ -5850,7 +5850,7 @@ var KanbanColumnHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
5850
5850
|
...isDisabled ? {} : columnContext.attributes,
|
|
5851
5851
|
...isDisabled ? {} : columnContext.listeners,
|
|
5852
5852
|
ref: composedRef,
|
|
5853
|
-
className:
|
|
5853
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
5854
5854
|
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
5855
5855
|
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
5856
5856
|
className
|
|
@@ -5886,7 +5886,7 @@ var KanbanItem = React9.forwardRef((props, forwardedRef) => {
|
|
|
5886
5886
|
if (value === "") {
|
|
5887
5887
|
throw new Error(`\`${ITEM_NAME}\` value cannot be an empty string`);
|
|
5888
5888
|
}
|
|
5889
|
-
const composedRef =
|
|
5889
|
+
const composedRef = _chunkQIA5FOQBjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
5890
5890
|
if (disabled) return;
|
|
5891
5891
|
setNodeRef(node);
|
|
5892
5892
|
});
|
|
@@ -5921,7 +5921,7 @@ var KanbanItem = React9.forwardRef((props, forwardedRef) => {
|
|
|
5921
5921
|
...asHandle && !disabled ? listeners : {},
|
|
5922
5922
|
ref: composedRef,
|
|
5923
5923
|
style: composedStyle,
|
|
5924
|
-
className:
|
|
5924
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
5925
5925
|
"focus-visible:ring-ring focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden",
|
|
5926
5926
|
{
|
|
5927
5927
|
"touch-none select-none": asHandle,
|
|
@@ -5942,7 +5942,7 @@ var KanbanItemHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
5942
5942
|
const context = useKanbanContext(ITEM_HANDLE_NAME);
|
|
5943
5943
|
const itemContext = useKanbanItemContext(ITEM_HANDLE_NAME);
|
|
5944
5944
|
const isDisabled = _nullishCoalesce(disabled, () => ( itemContext.disabled));
|
|
5945
|
-
const composedRef =
|
|
5945
|
+
const composedRef = _chunkQIA5FOQBjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
5946
5946
|
if (isDisabled) return;
|
|
5947
5947
|
itemContext.setActivatorNodeRef(node);
|
|
5948
5948
|
});
|
|
@@ -5959,7 +5959,7 @@ var KanbanItemHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
5959
5959
|
...isDisabled ? {} : itemContext.attributes,
|
|
5960
5960
|
...isDisabled ? {} : itemContext.listeners,
|
|
5961
5961
|
ref: composedRef,
|
|
5962
|
-
className:
|
|
5962
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
5963
5963
|
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
5964
5964
|
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
5965
5965
|
className
|
|
@@ -5994,7 +5994,7 @@ function KanbanOverlay(props) {
|
|
|
5994
5994
|
{
|
|
5995
5995
|
dropAnimation,
|
|
5996
5996
|
modifiers: context.modifiers,
|
|
5997
|
-
className:
|
|
5997
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, !context.flatCursor && "cursor-grabbing"),
|
|
5998
5998
|
...overlayProps,
|
|
5999
5999
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, KanbanOverlayContext.Provider, { value: true, children: context.activeId && children ? typeof children === "function" ? children({
|
|
6000
6000
|
value: context.activeId,
|
|
@@ -6012,7 +6012,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, KanbanOverlay, "KanbanOverlay");
|
|
|
6012
6012
|
|
|
6013
6013
|
var Link = React10.forwardRef(({ className, href, children, ...props }, ref) => {
|
|
6014
6014
|
const NextIntlLink = _chunkV63TFESUjs.getI18nLink.call(void 0, );
|
|
6015
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NextIntlLink, { prefetch: false, ref, href, className:
|
|
6015
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NextIntlLink, { prefetch: false, ref, href, className: _chunkQIA5FOQBjs.cn.call(void 0, `font-medium`, className), ...props, children });
|
|
6016
6016
|
});
|
|
6017
6017
|
Link.displayName = "Link";
|
|
6018
6018
|
|
|
@@ -6126,7 +6126,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6126
6126
|
...props,
|
|
6127
6127
|
ref: triggerRef,
|
|
6128
6128
|
onClick: handleTogglePopover,
|
|
6129
|
-
className:
|
|
6129
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
6130
6130
|
"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",
|
|
6131
6131
|
className
|
|
6132
6132
|
),
|
|
@@ -6138,7 +6138,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6138
6138
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
6139
6139
|
Badge,
|
|
6140
6140
|
{
|
|
6141
|
-
className:
|
|
6141
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, isAnimating ? "animate-bounce" : "", multiSelectVariants({ variant })),
|
|
6142
6142
|
style: { animationDuration: `${animation}s` },
|
|
6143
6143
|
children: [
|
|
6144
6144
|
IconComponent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: "mr-2 h-4 w-4" }),
|
|
@@ -6167,7 +6167,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6167
6167
|
selectedValues.length > maxCount && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
6168
6168
|
Badge,
|
|
6169
6169
|
{
|
|
6170
|
-
className:
|
|
6170
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
6171
6171
|
"text-foreground border-foreground/1 bg-transparent hover:bg-transparent",
|
|
6172
6172
|
isAnimating ? "animate-bounce" : "",
|
|
6173
6173
|
multiSelectVariants({ variant })
|
|
@@ -6250,7 +6250,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6250
6250
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6251
6251
|
"div",
|
|
6252
6252
|
{
|
|
6253
|
-
className:
|
|
6253
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
6254
6254
|
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
6255
6255
|
selectedValues.length === options.length ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
6256
6256
|
),
|
|
@@ -6273,7 +6273,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6273
6273
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6274
6274
|
"div",
|
|
6275
6275
|
{
|
|
6276
|
-
className:
|
|
6276
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
6277
6277
|
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
6278
6278
|
isSelected ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
6279
6279
|
),
|
|
@@ -6310,7 +6310,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6310
6310
|
animation > 0 && selectedValues.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6311
6311
|
_lucidereact.WandSparkles,
|
|
6312
6312
|
{
|
|
6313
|
-
className:
|
|
6313
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
6314
6314
|
"text-foreground bg-background my-2 h-3 w-3 cursor-pointer",
|
|
6315
6315
|
isAnimating ? "" : "text-muted-foreground"
|
|
6316
6316
|
),
|
|
@@ -6384,7 +6384,7 @@ var CommandEmpty2 = _react.forwardRef.call(void 0,
|
|
|
6384
6384
|
"div",
|
|
6385
6385
|
{
|
|
6386
6386
|
ref: forwardedRef,
|
|
6387
|
-
className:
|
|
6387
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "py-6 text-center text-sm", className),
|
|
6388
6388
|
"cmdk-empty": "",
|
|
6389
6389
|
role: "presentation",
|
|
6390
6390
|
...props
|
|
@@ -6597,14 +6597,14 @@ var MultipleSelector = React12.forwardRef(
|
|
|
6597
6597
|
handleKeyDown(e);
|
|
6598
6598
|
_optionalChain([commandProps, 'optionalAccess', _145 => _145.onKeyDown, 'optionalCall', _146 => _146(e)]);
|
|
6599
6599
|
},
|
|
6600
|
-
className:
|
|
6600
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "h-auto overflow-visible bg-transparent!", _optionalChain([commandProps, 'optionalAccess', _147 => _147.className])),
|
|
6601
6601
|
shouldFilter: _optionalChain([commandProps, 'optionalAccess', _148 => _148.shouldFilter]) !== void 0 ? commandProps.shouldFilter : !onSearch,
|
|
6602
6602
|
filter: commandFilter(),
|
|
6603
6603
|
children: [
|
|
6604
6604
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
6605
6605
|
"div",
|
|
6606
6606
|
{
|
|
6607
|
-
className:
|
|
6607
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
6608
6608
|
"flex min-h-10 items-start justify-between rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2 md:text-sm",
|
|
6609
6609
|
{
|
|
6610
6610
|
"cursor-text": !disabled && selected.length !== 0
|
|
@@ -6622,7 +6622,7 @@ var MultipleSelector = React12.forwardRef(
|
|
|
6622
6622
|
Badge,
|
|
6623
6623
|
{
|
|
6624
6624
|
variant: "secondary",
|
|
6625
|
-
className:
|
|
6625
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
6626
6626
|
"data-[disabled]:bg-muted-foreground data-[disabled]:text-muted data-[disabled]:hover:bg-muted-foreground",
|
|
6627
6627
|
"data-[fixed]:bg-muted-foreground data-[fixed]:text-muted data-[fixed]:hover:bg-muted-foreground",
|
|
6628
6628
|
badgeClassName
|
|
@@ -6635,7 +6635,7 @@ var MultipleSelector = React12.forwardRef(
|
|
|
6635
6635
|
"button",
|
|
6636
6636
|
{
|
|
6637
6637
|
type: "button",
|
|
6638
|
-
className:
|
|
6638
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
6639
6639
|
"ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
6640
6640
|
(disabled || option.fixed) && "hidden"
|
|
6641
6641
|
),
|
|
@@ -6657,7 +6657,7 @@ var MultipleSelector = React12.forwardRef(
|
|
|
6657
6657
|
option.value
|
|
6658
6658
|
);
|
|
6659
6659
|
}),
|
|
6660
|
-
hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { className:
|
|
6660
|
+
hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { className: _chunkQIA5FOQBjs.cn.call(void 0, "bg-transparent text-foreground hover:bg-transparent", badgeClassName), children: `+${hiddenCount} more` }),
|
|
6661
6661
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6662
6662
|
_cmdk.Command.Input,
|
|
6663
6663
|
{
|
|
@@ -6680,7 +6680,7 @@ var MultipleSelector = React12.forwardRef(
|
|
|
6680
6680
|
_optionalChain([inputProps, 'optionalAccess', _156 => _156.onFocus, 'optionalCall', _157 => _157(event)]);
|
|
6681
6681
|
},
|
|
6682
6682
|
placeholder: hidePlaceholderWhenSelected && selected.length !== 0 ? "" : placeholder,
|
|
6683
|
-
className:
|
|
6683
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
6684
6684
|
"flex-1 self-baseline bg-transparent outline-none placeholder:text-muted-foreground text-foreground caret-foreground",
|
|
6685
6685
|
{
|
|
6686
6686
|
"w-full": hidePlaceholderWhenSelected,
|
|
@@ -6700,14 +6700,14 @@ var MultipleSelector = React12.forwardRef(
|
|
|
6700
6700
|
setSelected(selected.filter((s) => s.fixed));
|
|
6701
6701
|
_optionalChain([onChange, 'optionalCall', _159 => _159(selected.filter((s) => s.fixed))]);
|
|
6702
6702
|
},
|
|
6703
|
-
className:
|
|
6703
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
6704
6704
|
"size-5",
|
|
6705
6705
|
(hideClearAllButton || disabled || selected.length < 1 || selected.filter((s) => s.fixed).length === selected.length) && "hidden"
|
|
6706
6706
|
),
|
|
6707
6707
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.X, {})
|
|
6708
6708
|
}
|
|
6709
6709
|
),
|
|
6710
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className:
|
|
6710
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: _chunkQIA5FOQBjs.cn.call(void 0, "size-5 text-muted-foreground/50", selected.length >= 1 && "hidden") })
|
|
6711
6711
|
] })
|
|
6712
6712
|
]
|
|
6713
6713
|
}
|
|
@@ -6754,7 +6754,7 @@ var MultipleSelector = React12.forwardRef(
|
|
|
6754
6754
|
setSelected(newOptions);
|
|
6755
6755
|
_optionalChain([onChange, 'optionalCall', _164 => _164(newOptions)]);
|
|
6756
6756
|
},
|
|
6757
|
-
className:
|
|
6757
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
6758
6758
|
"cursor-pointer bg-transparent hover:bg-accent data-selected:bg-transparent data-selected:hover:bg-accent",
|
|
6759
6759
|
option.disable && "cursor-default text-muted-foreground"
|
|
6760
6760
|
),
|
|
@@ -6852,8 +6852,8 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
6852
6852
|
CommonDeleter,
|
|
6853
6853
|
{
|
|
6854
6854
|
type: `users`,
|
|
6855
|
-
deleteFunction: () =>
|
|
6856
|
-
() => onDeleted ? onDeleted() : router.push(generateUrl({ page:
|
|
6855
|
+
deleteFunction: () => _chunkQIA5FOQBjs.UserService.delete({ userId: user.id, companyId: cId }).then(
|
|
6856
|
+
() => onDeleted ? onDeleted() : router.push(generateUrl({ page: _chunkQIA5FOQBjs.Modules.User }))
|
|
6857
6857
|
)
|
|
6858
6858
|
}
|
|
6859
6859
|
);
|
|
@@ -6861,7 +6861,7 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
6861
6861
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleterInternal, "UserDeleterInternal");
|
|
6862
6862
|
function UserDeleter(props) {
|
|
6863
6863
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
6864
|
-
if (!hasPermissionToModule({ module:
|
|
6864
|
+
if (!hasPermissionToModule({ module: _chunkQIA5FOQBjs.Modules.User, action: "delete" /* Delete */, data: props.user })) return null;
|
|
6865
6865
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserDeleterInternal, { ...props });
|
|
6866
6866
|
}
|
|
6867
6867
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleter, "UserDeleter");
|
|
@@ -6925,7 +6925,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6925
6925
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
6926
6926
|
if (!user) {
|
|
6927
6927
|
try {
|
|
6928
|
-
const existingUser = await
|
|
6928
|
+
const existingUser = await _chunkQIA5FOQBjs.UserService.findByEmail({ email: values.email });
|
|
6929
6929
|
if (existingUser) {
|
|
6930
6930
|
form.setError("email", {
|
|
6931
6931
|
type: "manual",
|
|
@@ -6938,7 +6938,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6938
6938
|
}
|
|
6939
6939
|
}
|
|
6940
6940
|
if (values.avatar && contentType) {
|
|
6941
|
-
const s3 = await
|
|
6941
|
+
const s3 = await _chunkQIA5FOQBjs.S3Service.getPreSignedUrl({
|
|
6942
6942
|
key: values.avatar,
|
|
6943
6943
|
contentType,
|
|
6944
6944
|
isPublic: true
|
|
@@ -6964,16 +6964,16 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6964
6964
|
adminCreated
|
|
6965
6965
|
};
|
|
6966
6966
|
try {
|
|
6967
|
-
const updatedUser = user ? await
|
|
6967
|
+
const updatedUser = user ? await _chunkQIA5FOQBjs.UserService.update(payload) : await _chunkQIA5FOQBjs.UserService.create(payload);
|
|
6968
6968
|
if (_optionalChain([currentUser, 'optionalAccess', _181 => _181.id]) === updatedUser.id) setUser(updatedUser);
|
|
6969
6969
|
if (onRevalidate) {
|
|
6970
|
-
await onRevalidate(generateUrl({ page:
|
|
6970
|
+
await onRevalidate(generateUrl({ page: _chunkQIA5FOQBjs.Modules.User, id: updatedUser.id, language: `[locale]` }));
|
|
6971
6971
|
}
|
|
6972
6972
|
if (propagateChanges) {
|
|
6973
6973
|
propagateChanges(updatedUser);
|
|
6974
6974
|
setOpen(false);
|
|
6975
6975
|
} else {
|
|
6976
|
-
router.push(generateUrl({ page:
|
|
6976
|
+
router.push(generateUrl({ page: _chunkQIA5FOQBjs.Modules.User, id: updatedUser.id }));
|
|
6977
6977
|
}
|
|
6978
6978
|
} catch (error) {
|
|
6979
6979
|
errorToast({ title: user ? t(`common.errors.update`) : t(`common.errors.create`), error });
|
|
@@ -6981,7 +6981,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6981
6981
|
}, "onSubmit");
|
|
6982
6982
|
_react.useEffect.call(void 0, () => {
|
|
6983
6983
|
async function fetchRoles() {
|
|
6984
|
-
const roles2 = await
|
|
6984
|
+
const roles2 = await _chunkQIA5FOQBjs.RoleService.findAllRoles({});
|
|
6985
6985
|
const availableRoles = roles2.filter(
|
|
6986
6986
|
(role) => role.id !== _chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _182 => _182.features, 'access', _183 => _183.some, 'call', _184 => _184((feature) => feature.id === _optionalChain([role, 'access', _185 => _185.requiredFeature, 'optionalAccess', _186 => _186.id]))]))
|
|
6987
6987
|
);
|
|
@@ -7009,7 +7009,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
7009
7009
|
setContentType(null);
|
|
7010
7010
|
}
|
|
7011
7011
|
}, [file]);
|
|
7012
|
-
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _190 => _190.id]) === _optionalChain([user, 'optionalAccess', _191 => _191.id]) && hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module:
|
|
7012
|
+
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _190 => _190.id]) === _optionalChain([user, 'optionalAccess', _191 => _191.id]) && hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkQIA5FOQBjs.Modules.User, action: "update" /* Update */ }) || hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator));
|
|
7013
7013
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
7014
7014
|
trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTrigger, { children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!user }),
|
|
7015
7015
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -7119,7 +7119,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserEditorInternal, "UserEditorInternal");
|
|
|
7119
7119
|
function UserEditor(props) {
|
|
7120
7120
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
7121
7121
|
if (!hasPermissionToModule({
|
|
7122
|
-
module:
|
|
7122
|
+
module: _chunkQIA5FOQBjs.Modules.User,
|
|
7123
7123
|
action: props.user ? "update" /* Update */ : "create" /* Create */,
|
|
7124
7124
|
data: props.user
|
|
7125
7125
|
}))
|
|
@@ -7208,7 +7208,7 @@ function CommonAssociationCommandDialog({
|
|
|
7208
7208
|
_chunk7QVYU63Ejs.__name.call(void 0, CommonAssociationCommandDialog, "CommonAssociationCommandDialog");
|
|
7209
7209
|
var triggerAssociationToast = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
7210
7210
|
if (params.level) {
|
|
7211
|
-
|
|
7211
|
+
_chunkQIA5FOQBjs.showToast.call(void 0,
|
|
7212
7212
|
params.t(`common.association.label`, {
|
|
7213
7213
|
source: params.source,
|
|
7214
7214
|
destination: params.destination
|
|
@@ -7224,7 +7224,7 @@ var triggerAssociationToast = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
7224
7224
|
}
|
|
7225
7225
|
);
|
|
7226
7226
|
} else {
|
|
7227
|
-
|
|
7227
|
+
_chunkQIA5FOQBjs.showToast.call(void 0,
|
|
7228
7228
|
params.t(`common.association.label`, {
|
|
7229
7229
|
source: params.source,
|
|
7230
7230
|
destination: params.destination
|
|
@@ -7276,7 +7276,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ErrorDetails, "ErrorDetails");
|
|
|
7276
7276
|
|
|
7277
7277
|
// src/components/errors/errorToast.ts
|
|
7278
7278
|
function errorToast(params) {
|
|
7279
|
-
|
|
7279
|
+
_chunkQIA5FOQBjs.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess', _198 => _198.title]), () => ( "Error")), {
|
|
7280
7280
|
description: params.error instanceof Error ? params.error.message : String(params.error)
|
|
7281
7281
|
});
|
|
7282
7282
|
}
|
|
@@ -7492,7 +7492,7 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
7492
7492
|
}, "handleClear");
|
|
7493
7493
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open: isOpen, onOpenChange: setIsOpen, children: [
|
|
7494
7494
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { children }),
|
|
7495
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className:
|
|
7495
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className: _chunkQIA5FOQBjs.cn.call(void 0, "p-0", className), align, onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "p-3", children: [
|
|
7496
7496
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative mb-3", children: [
|
|
7497
7497
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7498
7498
|
Input,
|
|
@@ -7608,13 +7608,13 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
7608
7608
|
setDate(range);
|
|
7609
7609
|
}
|
|
7610
7610
|
}, "handleSelect");
|
|
7611
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
7611
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkQIA5FOQBjs.cn.call(void 0, "grid gap-2"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, children: [
|
|
7612
7612
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7613
7613
|
Button,
|
|
7614
7614
|
{
|
|
7615
7615
|
id: "date",
|
|
7616
7616
|
variant: "outline",
|
|
7617
|
-
className:
|
|
7617
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
|
|
7618
7618
|
children: [
|
|
7619
7619
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
|
|
7620
7620
|
_optionalChain([date, 'optionalAccess', _208 => _208.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -7738,7 +7738,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
7738
7738
|
(acceptedFiles, rejectedFiles) => {
|
|
7739
7739
|
const files = acceptedFiles;
|
|
7740
7740
|
if (!files) {
|
|
7741
|
-
|
|
7741
|
+
_chunkQIA5FOQBjs.showError.call(void 0, t("common.errors.file"), {
|
|
7742
7742
|
description: t("common.errors.file_large")
|
|
7743
7743
|
});
|
|
7744
7744
|
return;
|
|
@@ -7756,13 +7756,13 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
7756
7756
|
if (rejectedFiles.length > 0) {
|
|
7757
7757
|
for (let i = 0; i < rejectedFiles.length; i++) {
|
|
7758
7758
|
if (_optionalChain([rejectedFiles, 'access', _214 => _214[i], 'access', _215 => _215.errors, 'access', _216 => _216[0], 'optionalAccess', _217 => _217.code]) === "file-too-large") {
|
|
7759
|
-
|
|
7759
|
+
_chunkQIA5FOQBjs.showError.call(void 0, t("common.errors.file"), {
|
|
7760
7760
|
description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
|
|
7761
7761
|
});
|
|
7762
7762
|
break;
|
|
7763
7763
|
}
|
|
7764
7764
|
if (_optionalChain([rejectedFiles, 'access', _218 => _218[i], 'access', _219 => _219.errors, 'access', _220 => _220[0], 'optionalAccess', _221 => _221.message])) {
|
|
7765
|
-
|
|
7765
|
+
_chunkQIA5FOQBjs.showError.call(void 0, t(`common.errors.file`), {
|
|
7766
7766
|
description: rejectedFiles[i].errors[0].message
|
|
7767
7767
|
});
|
|
7768
7768
|
break;
|
|
@@ -7806,7 +7806,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
7806
7806
|
ref,
|
|
7807
7807
|
tabIndex: 0,
|
|
7808
7808
|
onKeyDownCapture: handleKeyDown,
|
|
7809
|
-
className:
|
|
7809
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
7810
7810
|
"grid w-full overflow-hidden focus:outline-none",
|
|
7811
7811
|
className,
|
|
7812
7812
|
// Original className from props
|
|
@@ -7830,12 +7830,12 @@ var FileUploaderContent = _react.forwardRef.call(void 0,
|
|
|
7830
7830
|
({ children, className, ...props }, ref) => {
|
|
7831
7831
|
const { orientation } = useFileUpload();
|
|
7832
7832
|
const containerRef = _react.useRef.call(void 0, null);
|
|
7833
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
7833
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkQIA5FOQBjs.cn.call(void 0, "w-full px-1"), ref: containerRef, "aria-description": "content file holder", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7834
7834
|
"div",
|
|
7835
7835
|
{
|
|
7836
7836
|
...props,
|
|
7837
7837
|
ref,
|
|
7838
|
-
className:
|
|
7838
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
7839
7839
|
"flex gap-1 rounded-xl",
|
|
7840
7840
|
orientation === "horizontal" ? "flex-raw flex-wrap" : "flex-col",
|
|
7841
7841
|
className
|
|
@@ -7855,7 +7855,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
7855
7855
|
"div",
|
|
7856
7856
|
{
|
|
7857
7857
|
ref,
|
|
7858
|
-
className:
|
|
7858
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
7859
7859
|
buttonVariants({ variant: "ghost" }),
|
|
7860
7860
|
"relative h-6 cursor-pointer justify-between p-1",
|
|
7861
7861
|
className,
|
|
@@ -7868,7 +7868,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
7868
7868
|
"button",
|
|
7869
7869
|
{
|
|
7870
7870
|
type: "button",
|
|
7871
|
-
className:
|
|
7871
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "absolute", direction === "rtl" ? "top-1 left-1" : "top-1 right-1"),
|
|
7872
7872
|
onClick: () => removeFileFromSet(index),
|
|
7873
7873
|
children: [
|
|
7874
7874
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: t(`common.remove_item`, { index }) }),
|
|
@@ -7892,12 +7892,12 @@ var FileInput = _react.forwardRef.call(void 0,
|
|
|
7892
7892
|
{
|
|
7893
7893
|
ref,
|
|
7894
7894
|
...props,
|
|
7895
|
-
className:
|
|
7895
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, `relative w-full ${isLOF ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`, className),
|
|
7896
7896
|
children: [
|
|
7897
7897
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7898
7898
|
"div",
|
|
7899
7899
|
{
|
|
7900
|
-
className:
|
|
7900
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
7901
7901
|
"w-full rounded-lg duration-300 ease-in-out",
|
|
7902
7902
|
// Simpler border logic: if parent is drag-active, it controls the border.
|
|
7903
7903
|
// Otherwise, FileInput can show its own accept/reject/default border.
|
|
@@ -8214,7 +8214,7 @@ function FormDateTime({
|
|
|
8214
8214
|
Button,
|
|
8215
8215
|
{
|
|
8216
8216
|
variant: "outline",
|
|
8217
|
-
className:
|
|
8217
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "w-full pl-3 text-left font-normal", !field.value && "text-muted-foreground")
|
|
8218
8218
|
}
|
|
8219
8219
|
),
|
|
8220
8220
|
children: [
|
|
@@ -8403,7 +8403,7 @@ var PasswordInput = React13.forwardRef(
|
|
|
8403
8403
|
const disabled = props.value === "" || props.value === void 0 || props.disabled;
|
|
8404
8404
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8405
8405
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
8406
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className:
|
|
8406
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className: _chunkQIA5FOQBjs.cn.call(void 0, "", className), ref, ...props }),
|
|
8407
8407
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8408
8408
|
Button,
|
|
8409
8409
|
{
|
|
@@ -8588,7 +8588,7 @@ function FormPlaceAutocomplete({
|
|
|
8588
8588
|
placeholder,
|
|
8589
8589
|
disabled,
|
|
8590
8590
|
"data-testid": testId,
|
|
8591
|
-
className:
|
|
8591
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "w-full", className)
|
|
8592
8592
|
}
|
|
8593
8593
|
) }) });
|
|
8594
8594
|
}
|
|
@@ -8607,7 +8607,7 @@ function FormPlaceAutocomplete({
|
|
|
8607
8607
|
placeholder,
|
|
8608
8608
|
disabled: disabled || !apiKey,
|
|
8609
8609
|
"data-testid": testId,
|
|
8610
|
-
className:
|
|
8610
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "w-full", className)
|
|
8611
8611
|
}
|
|
8612
8612
|
),
|
|
8613
8613
|
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" }) }),
|
|
@@ -8732,7 +8732,7 @@ function FormTextarea({
|
|
|
8732
8732
|
Textarea,
|
|
8733
8733
|
{
|
|
8734
8734
|
...field,
|
|
8735
|
-
className:
|
|
8735
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "min-h-96 w-full", className),
|
|
8736
8736
|
disabled: form.formState.isSubmitting,
|
|
8737
8737
|
placeholder,
|
|
8738
8738
|
"data-testid": testId
|
|
@@ -8841,10 +8841,10 @@ function UserMultiSelect({
|
|
|
8841
8841
|
const data = useDataListRetriever({
|
|
8842
8842
|
ready: !!company,
|
|
8843
8843
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
8844
|
-
return
|
|
8844
|
+
return _chunkQIA5FOQBjs.UserService.findAllUsers(params);
|
|
8845
8845
|
}, "retriever"),
|
|
8846
8846
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _242 => _242.id]) },
|
|
8847
|
-
module:
|
|
8847
|
+
module: _chunkQIA5FOQBjs.Modules.User
|
|
8848
8848
|
});
|
|
8849
8849
|
_react.useEffect.call(void 0, () => {
|
|
8850
8850
|
if (company) data.setReady(true);
|
|
@@ -8954,7 +8954,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
8954
8954
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8955
8955
|
const reactivateUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
8956
8956
|
try {
|
|
8957
|
-
const updatedUser = await
|
|
8957
|
+
const updatedUser = await _chunkQIA5FOQBjs.UserService.reactivate({ userId: user.id });
|
|
8958
8958
|
setOpen(false);
|
|
8959
8959
|
propagateChanges(updatedUser);
|
|
8960
8960
|
} catch (error) {
|
|
@@ -8992,7 +8992,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
8992
8992
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivatorInterface, "UserReactivatorInterface");
|
|
8993
8993
|
function UserReactivator(props) {
|
|
8994
8994
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
8995
|
-
if (!hasPermissionToModule({ module:
|
|
8995
|
+
if (!hasPermissionToModule({ module: _chunkQIA5FOQBjs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
8996
8996
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserReactivatorInterface, { ...props });
|
|
8997
8997
|
}
|
|
8998
8998
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivator, "UserReactivator");
|
|
@@ -9007,9 +9007,9 @@ function UserResentInvitationEmailInternal({ user }) {
|
|
|
9007
9007
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9008
9008
|
const sendInvitationEmail = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
9009
9009
|
try {
|
|
9010
|
-
await
|
|
9010
|
+
await _chunkQIA5FOQBjs.UserService.sendInvitation({ userId: user.id, companyId: user.company.id });
|
|
9011
9011
|
setOpen(false);
|
|
9012
|
-
|
|
9012
|
+
_chunkQIA5FOQBjs.showToast.call(void 0, t(`user.resend_activation.email_sent`), {
|
|
9013
9013
|
description: t(`user.resend_activation.email_sent_description`, { email: user.email })
|
|
9014
9014
|
});
|
|
9015
9015
|
} catch (error) {
|
|
@@ -9047,7 +9047,7 @@ function UserResentInvitationEmailInternal({ user }) {
|
|
|
9047
9047
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmailInternal, "UserResentInvitationEmailInternal");
|
|
9048
9048
|
function UserResentInvitationEmail(props) {
|
|
9049
9049
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9050
|
-
if (!hasPermissionToModule({ module:
|
|
9050
|
+
if (!hasPermissionToModule({ module: _chunkQIA5FOQBjs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
9051
9051
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserResentInvitationEmailInternal, { ...props });
|
|
9052
9052
|
}
|
|
9053
9053
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmail, "UserResentInvitationEmail");
|
|
@@ -9078,22 +9078,22 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
|
|
|
9078
9078
|
}, "getAvatar");
|
|
9079
9079
|
const content = showLink === false ? (
|
|
9080
9080
|
// If showLink is explicitly false, never show a link
|
|
9081
|
-
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
9081
|
+
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkQIA5FOQBjs.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className), children: [
|
|
9082
9082
|
getAvatar(),
|
|
9083
9083
|
user.name
|
|
9084
9084
|
] }) : getAvatar()
|
|
9085
9085
|
) : showFull ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9086
9086
|
Link,
|
|
9087
9087
|
{
|
|
9088
|
-
href: generateUrl({ page:
|
|
9089
|
-
className:
|
|
9088
|
+
href: generateUrl({ page: _chunkQIA5FOQBjs.Modules.User, id: user.id }),
|
|
9089
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className),
|
|
9090
9090
|
onClick: (e) => e.stopPropagation(),
|
|
9091
9091
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center gap-x-2", children: [
|
|
9092
9092
|
getAvatar(),
|
|
9093
9093
|
user.name
|
|
9094
9094
|
] })
|
|
9095
9095
|
}
|
|
9096
|
-
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page:
|
|
9096
|
+
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunkQIA5FOQBjs.Modules.User, id: user.id }), className, children: getAvatar() }) : getAvatar();
|
|
9097
9097
|
if (!showTooltip) {
|
|
9098
9098
|
return content;
|
|
9099
9099
|
}
|
|
@@ -9104,6 +9104,22 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
|
|
|
9104
9104
|
}
|
|
9105
9105
|
_chunk7QVYU63Ejs.__name.call(void 0, UserAvatar, "UserAvatar");
|
|
9106
9106
|
|
|
9107
|
+
// src/features/user/components/widgets/UserAvatarList.tsx
|
|
9108
|
+
|
|
9109
|
+
function UserAvatarList({ users }) {
|
|
9110
|
+
const generateUrl = usePageUrlGenerator();
|
|
9111
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-row items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-row-reverse justify-end -space-x-1 space-x-reverse", children: users.map((user) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9112
|
+
Link,
|
|
9113
|
+
{
|
|
9114
|
+
href: generateUrl({ page: _chunkQIA5FOQBjs.Modules.User, id: user.id }),
|
|
9115
|
+
onClick: (e) => e.stopPropagation(),
|
|
9116
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user, className: "h-5 w-5" })
|
|
9117
|
+
},
|
|
9118
|
+
user.id
|
|
9119
|
+
)) }) });
|
|
9120
|
+
}
|
|
9121
|
+
_chunk7QVYU63Ejs.__name.call(void 0, UserAvatarList, "UserAvatarList");
|
|
9122
|
+
|
|
9107
9123
|
// src/features/user/components/forms/UserSelector.tsx
|
|
9108
9124
|
|
|
9109
9125
|
function UserSelector({ id, form, label, placeholder, onChange, isRequired = false }) {
|
|
@@ -9114,10 +9130,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
9114
9130
|
const [isSearching, setIsSearching] = _react.useState.call(void 0, false);
|
|
9115
9131
|
const data = useDataListRetriever({
|
|
9116
9132
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
9117
|
-
return
|
|
9133
|
+
return _chunkQIA5FOQBjs.UserService.findMany(params);
|
|
9118
9134
|
}, "retriever"),
|
|
9119
9135
|
retrieverParams: {},
|
|
9120
|
-
module:
|
|
9136
|
+
module: _chunkQIA5FOQBjs.Modules.User
|
|
9121
9137
|
});
|
|
9122
9138
|
const search = _react.useCallback.call(void 0,
|
|
9123
9139
|
async (searchedTerm) => {
|
|
@@ -9216,24 +9232,24 @@ var UserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
9216
9232
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9217
9233
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9218
9234
|
const [user, setUser] = _react.useState.call(void 0,
|
|
9219
|
-
dehydratedUser ?
|
|
9235
|
+
dehydratedUser ? _chunkQIA5FOQBjs.rehydrate.call(void 0, _chunkQIA5FOQBjs.Modules.User, dehydratedUser) : void 0
|
|
9220
9236
|
);
|
|
9221
9237
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
9222
9238
|
const response = [];
|
|
9223
|
-
if (hasPermissionToModule({ module:
|
|
9239
|
+
if (hasPermissionToModule({ module: _chunkQIA5FOQBjs.Modules.User, action: "update" /* Update */ })) {
|
|
9224
9240
|
response.push({
|
|
9225
9241
|
name: t(`common.settings`, { item: "settings" }),
|
|
9226
9242
|
href: generateUrl({ page: `/settings` })
|
|
9227
9243
|
});
|
|
9228
9244
|
response.push({
|
|
9229
9245
|
name: t(`entities.users`, { count: 2 }),
|
|
9230
|
-
href: generateUrl({ page: `/settings`, id:
|
|
9246
|
+
href: generateUrl({ page: `/settings`, id: _chunkQIA5FOQBjs.Modules.User.pageUrl })
|
|
9231
9247
|
});
|
|
9232
9248
|
}
|
|
9233
9249
|
if (user)
|
|
9234
9250
|
response.push({
|
|
9235
9251
|
name: `${user.name}${user.isDeleted ? ` (${t(`user.deleted`)})` : ""}`,
|
|
9236
|
-
href: generateUrl({ page:
|
|
9252
|
+
href: generateUrl({ page: _chunkQIA5FOQBjs.Modules.User, id: user.id })
|
|
9237
9253
|
});
|
|
9238
9254
|
return response;
|
|
9239
9255
|
}, "breadcrumb");
|
|
@@ -9288,7 +9304,7 @@ function UserDetails({ user }) {
|
|
|
9288
9304
|
const { title } = useSharedContext();
|
|
9289
9305
|
let roles = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
9290
9306
|
if (user.roles && user.roles.length > 0) {
|
|
9291
|
-
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:
|
|
9307
|
+
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: _chunkQIA5FOQBjs.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)) }) });
|
|
9292
9308
|
}
|
|
9293
9309
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
9294
9310
|
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,
|
|
@@ -9301,7 +9317,7 @@ function UserDetails({ user }) {
|
|
|
9301
9317
|
className: "h-auto w-full rounded-lg object-contain"
|
|
9302
9318
|
}
|
|
9303
9319
|
) }),
|
|
9304
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module:
|
|
9320
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkQIA5FOQBjs.Modules.User, type: title.type, element: title.element, functions: title.functions }),
|
|
9305
9321
|
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`) }) }) }),
|
|
9306
9322
|
roles,
|
|
9307
9323
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AttributeElement, { inline: true, title: t(`user.fields.title.label`), value: user.title }),
|
|
@@ -9337,7 +9353,7 @@ function UserStanadaloneDetails({ user }) {
|
|
|
9337
9353
|
const { title } = useSharedContext();
|
|
9338
9354
|
let roles = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
9339
9355
|
if (user.roles && user.roles.length > 0) {
|
|
9340
|
-
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:
|
|
9356
|
+
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: _chunkQIA5FOQBjs.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)) }) });
|
|
9341
9357
|
}
|
|
9342
9358
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row gap-x-4", children: [
|
|
9343
9359
|
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,
|
|
@@ -9351,7 +9367,7 @@ function UserStanadaloneDetails({ user }) {
|
|
|
9351
9367
|
}
|
|
9352
9368
|
) }) }),
|
|
9353
9369
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
9354
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module:
|
|
9370
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkQIA5FOQBjs.Modules.User, type: title.type, element: title.element, functions: title.functions }),
|
|
9355
9371
|
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`) }) }) }),
|
|
9356
9372
|
roles,
|
|
9357
9373
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AttributeElement, { inline: true, title: t(`user.fields.title.label`), value: user.title }),
|
|
@@ -9390,18 +9406,18 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserIndexContainer, "UserIndexContainer");
|
|
|
9390
9406
|
function UsersListContainerInternal() {
|
|
9391
9407
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9392
9408
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9393
|
-
if (!hasPermissionToModule({ module:
|
|
9409
|
+
if (!hasPermissionToModule({ module: _chunkQIA5FOQBjs.Modules.User, action: "delete" /* Delete */ })) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {});
|
|
9394
9410
|
const tabs = [
|
|
9395
9411
|
{
|
|
9396
9412
|
label: t(`entities.users`, { count: 2 }),
|
|
9397
9413
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {}),
|
|
9398
|
-
modules: [
|
|
9414
|
+
modules: [_chunkQIA5FOQBjs.Modules.Company],
|
|
9399
9415
|
action: "read" /* Read */
|
|
9400
9416
|
},
|
|
9401
9417
|
{
|
|
9402
9418
|
label: t(`user.deleted`),
|
|
9403
9419
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, { isDeleted: true }),
|
|
9404
|
-
modules: [
|
|
9420
|
+
modules: [_chunkQIA5FOQBjs.Modules.Company],
|
|
9405
9421
|
action: "update" /* Update */
|
|
9406
9422
|
}
|
|
9407
9423
|
];
|
|
@@ -9419,9 +9435,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersListContainer, "UsersListContainer");
|
|
|
9419
9435
|
function AdminUsersListInternal({ company }) {
|
|
9420
9436
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9421
9437
|
const data = useDataListRetriever({
|
|
9422
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9438
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkQIA5FOQBjs.UserService.findManyForAmin(params), "retriever"),
|
|
9423
9439
|
retrieverParams: { companyId: company.id },
|
|
9424
|
-
module:
|
|
9440
|
+
module: _chunkQIA5FOQBjs.Modules.User
|
|
9425
9441
|
});
|
|
9426
9442
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9427
9443
|
ContentListTable,
|
|
@@ -9429,7 +9445,7 @@ function AdminUsersListInternal({ company }) {
|
|
|
9429
9445
|
title: t(`entities.users`, { count: 2 }),
|
|
9430
9446
|
data,
|
|
9431
9447
|
fields: ["name" /* name */, "email" /* email */, "createdAt" /* createdAt */],
|
|
9432
|
-
tableGeneratorType:
|
|
9448
|
+
tableGeneratorType: _chunkQIA5FOQBjs.Modules.User,
|
|
9433
9449
|
functions: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserEditor, { propagateChanges: data.refresh, adminCreated: true })
|
|
9434
9450
|
}
|
|
9435
9451
|
);
|
|
@@ -9451,9 +9467,9 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
9451
9467
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9452
9468
|
const data = useDataListRetriever({
|
|
9453
9469
|
ready: !!company,
|
|
9454
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9470
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkQIA5FOQBjs.UserService.findAllUsers(params), "retriever"),
|
|
9455
9471
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _259 => _259.id]), isDeleted },
|
|
9456
|
-
module:
|
|
9472
|
+
module: _chunkQIA5FOQBjs.Modules.User
|
|
9457
9473
|
});
|
|
9458
9474
|
_react.useEffect.call(void 0, () => {
|
|
9459
9475
|
if (company) data.setReady(true);
|
|
@@ -9466,7 +9482,7 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
9466
9482
|
{
|
|
9467
9483
|
data,
|
|
9468
9484
|
fields: ["name" /* name */, "email" /* email */],
|
|
9469
|
-
tableGeneratorType:
|
|
9485
|
+
tableGeneratorType: _chunkQIA5FOQBjs.Modules.User,
|
|
9470
9486
|
functions,
|
|
9471
9487
|
title: t(`entities.users`, { count: 2 })
|
|
9472
9488
|
}
|
|
@@ -9482,7 +9498,7 @@ function ContributorsList({ content }) {
|
|
|
9482
9498
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9483
9499
|
Link,
|
|
9484
9500
|
{
|
|
9485
|
-
href: generateUrl({ page:
|
|
9501
|
+
href: generateUrl({ page: _chunkQIA5FOQBjs.Modules.User, id: content.author.id }),
|
|
9486
9502
|
onClick: (e) => e.stopPropagation(),
|
|
9487
9503
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: content.author, className: "mr-1 h-6 w-6" })
|
|
9488
9504
|
},
|
|
@@ -9491,7 +9507,7 @@ function ContributorsList({ content }) {
|
|
|
9491
9507
|
/* @__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,
|
|
9492
9508
|
Link,
|
|
9493
9509
|
{
|
|
9494
|
-
href: generateUrl({ page:
|
|
9510
|
+
href: generateUrl({ page: _chunkQIA5FOQBjs.Modules.User, id: editor.id }),
|
|
9495
9511
|
onClick: (e) => e.stopPropagation(),
|
|
9496
9512
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: editor, className: "h-5 w-5" })
|
|
9497
9513
|
},
|
|
@@ -9507,8 +9523,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContributorsList, "ContributorsList");
|
|
|
9507
9523
|
function RelevantUsersList({ id }) {
|
|
9508
9524
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9509
9525
|
const data = useDataListRetriever({
|
|
9510
|
-
module:
|
|
9511
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9526
|
+
module: _chunkQIA5FOQBjs.Modules.User,
|
|
9527
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkQIA5FOQBjs.UserService.findRelevant(params), "retriever"),
|
|
9512
9528
|
retrieverParams: { id }
|
|
9513
9529
|
});
|
|
9514
9530
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -9516,7 +9532,7 @@ function RelevantUsersList({ id }) {
|
|
|
9516
9532
|
{
|
|
9517
9533
|
data,
|
|
9518
9534
|
fields: ["name" /* name */, "email" /* email */, "relevance" /* relevance */],
|
|
9519
|
-
tableGeneratorType:
|
|
9535
|
+
tableGeneratorType: _chunkQIA5FOQBjs.Modules.User,
|
|
9520
9536
|
title: t(`common.relevant_users`)
|
|
9521
9537
|
}
|
|
9522
9538
|
);
|
|
@@ -9529,16 +9545,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RelevantUsersList, "RelevantUsersList");
|
|
|
9529
9545
|
function RoleUsersList({ role }) {
|
|
9530
9546
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9531
9547
|
const data = useDataListRetriever({
|
|
9532
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9548
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkQIA5FOQBjs.UserService.findAllUsersByRole(params), "retriever"),
|
|
9533
9549
|
retrieverParams: { roleId: role.id },
|
|
9534
|
-
module:
|
|
9550
|
+
module: _chunkQIA5FOQBjs.Modules.User
|
|
9535
9551
|
});
|
|
9536
9552
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9537
9553
|
ContentListTable,
|
|
9538
9554
|
{
|
|
9539
9555
|
data,
|
|
9540
9556
|
fields: ["name" /* name */, "email" /* email */],
|
|
9541
|
-
tableGeneratorType:
|
|
9557
|
+
tableGeneratorType: _chunkQIA5FOQBjs.Modules.User,
|
|
9542
9558
|
title: t(`entities.users`, { count: 2 })
|
|
9543
9559
|
}
|
|
9544
9560
|
);
|
|
@@ -9594,7 +9610,7 @@ function UsersList({
|
|
|
9594
9610
|
{
|
|
9595
9611
|
data,
|
|
9596
9612
|
fields: ["name" /* name */, "email" /* email */],
|
|
9597
|
-
tableGeneratorType:
|
|
9613
|
+
tableGeneratorType: _chunkQIA5FOQBjs.Modules.User,
|
|
9598
9614
|
title: t(`entities.users`, { count: 2 })
|
|
9599
9615
|
}
|
|
9600
9616
|
);
|
|
@@ -9607,8 +9623,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersList, "UsersList");
|
|
|
9607
9623
|
function UsersListByContentIds({ contentIds }) {
|
|
9608
9624
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9609
9625
|
const data = useDataListRetriever({
|
|
9610
|
-
module:
|
|
9611
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9626
|
+
module: _chunkQIA5FOQBjs.Modules.User,
|
|
9627
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkQIA5FOQBjs.UserService.findManyByContentIds(params), "retriever"),
|
|
9612
9628
|
retrieverParams: { contentIds }
|
|
9613
9629
|
});
|
|
9614
9630
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -9616,7 +9632,7 @@ function UsersListByContentIds({ contentIds }) {
|
|
|
9616
9632
|
{
|
|
9617
9633
|
data,
|
|
9618
9634
|
fields: ["name" /* name */, "email" /* email */],
|
|
9619
|
-
tableGeneratorType:
|
|
9635
|
+
tableGeneratorType: _chunkQIA5FOQBjs.Modules.User,
|
|
9620
9636
|
title: t(`common.relevant_users`)
|
|
9621
9637
|
}
|
|
9622
9638
|
);
|
|
@@ -9634,7 +9650,7 @@ function CompanyDetails() {
|
|
|
9634
9650
|
const { company } = useCompanyContext();
|
|
9635
9651
|
if (!company) return null;
|
|
9636
9652
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
9637
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module:
|
|
9653
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkQIA5FOQBjs.Modules.Company, type: title.type, element: title.element, functions: title.functions }),
|
|
9638
9654
|
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" })
|
|
9639
9655
|
] });
|
|
9640
9656
|
}
|
|
@@ -9699,13 +9715,13 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9699
9715
|
const textSize = textSizeClasses[size];
|
|
9700
9716
|
const getBatteryIcon = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
9701
9717
|
if (percentage > 75) {
|
|
9702
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryFull, { className:
|
|
9718
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryFull, { className: _chunkQIA5FOQBjs.cn.call(void 0, iconSize, "text-green-500") });
|
|
9703
9719
|
} else if (percentage > 50) {
|
|
9704
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryMedium, { className:
|
|
9720
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryMedium, { className: _chunkQIA5FOQBjs.cn.call(void 0, iconSize, "text-green-500") });
|
|
9705
9721
|
} else if (percentage >= 25) {
|
|
9706
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryLow, { className:
|
|
9722
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryLow, { className: _chunkQIA5FOQBjs.cn.call(void 0, iconSize, "text-yellow-500") });
|
|
9707
9723
|
} else {
|
|
9708
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Battery, { className:
|
|
9724
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Battery, { className: _chunkQIA5FOQBjs.cn.call(void 0, iconSize, "text-destructive") });
|
|
9709
9725
|
}
|
|
9710
9726
|
}, "getBatteryIcon");
|
|
9711
9727
|
const getStatusColor = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -9725,7 +9741,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9725
9741
|
t("billing.tokens.monthly", { defaultValue: "Monthly Pages" }),
|
|
9726
9742
|
":"
|
|
9727
9743
|
] }),
|
|
9728
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
9744
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkQIA5FOQBjs.cn.call(void 0, "font-medium", getStatusColor()), children: [
|
|
9729
9745
|
availableMonthlyTokens,
|
|
9730
9746
|
" / ",
|
|
9731
9747
|
monthlyTokens
|
|
@@ -9736,7 +9752,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9736
9752
|
t("billing.tokens.available", { defaultValue: "Available" }),
|
|
9737
9753
|
":"
|
|
9738
9754
|
] }),
|
|
9739
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
9755
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkQIA5FOQBjs.cn.call(void 0, "font-medium", getStatusColor()), children: [
|
|
9740
9756
|
percentage.toFixed(0),
|
|
9741
9757
|
"%"
|
|
9742
9758
|
] })
|
|
@@ -9757,14 +9773,14 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9757
9773
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9758
9774
|
"div",
|
|
9759
9775
|
{
|
|
9760
|
-
className:
|
|
9776
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "inline-flex items-center gap-1.5 cursor-default", className),
|
|
9761
9777
|
"aria-label": t("billing.tokens.status", { defaultValue: "Page Status" }),
|
|
9762
9778
|
children: [
|
|
9763
9779
|
getBatteryIcon(),
|
|
9764
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
9780
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkQIA5FOQBjs.cn.call(void 0, textSize, "text-muted-foreground font-medium"), children: availableMonthlyTokens }),
|
|
9765
9781
|
showExtraPages && availableExtraTokens > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "inline-flex items-center gap-0.5", children: [
|
|
9766
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className:
|
|
9767
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
9782
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className: _chunkQIA5FOQBjs.cn.call(void 0, smallIconSize, "text-blue-500") }),
|
|
9783
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkQIA5FOQBjs.cn.call(void 0, textSize, "text-blue-500 font-medium"), children: availableExtraTokens })
|
|
9768
9784
|
] })
|
|
9769
9785
|
]
|
|
9770
9786
|
}
|
|
@@ -9881,12 +9897,12 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
9881
9897
|
}
|
|
9882
9898
|
};
|
|
9883
9899
|
try {
|
|
9884
|
-
await
|
|
9885
|
-
const fullUser = await
|
|
9900
|
+
await _chunkQIA5FOQBjs.CompanyService.updateConfigurations(payload);
|
|
9901
|
+
const fullUser = await _chunkQIA5FOQBjs.UserService.findFullUser();
|
|
9886
9902
|
if (fullUser) {
|
|
9887
9903
|
setUser(fullUser);
|
|
9888
9904
|
}
|
|
9889
|
-
|
|
9905
|
+
_chunkQIA5FOQBjs.showToast.call(void 0, "Configurations Updated", {
|
|
9890
9906
|
description: `The system configurations have been updated successfully.`
|
|
9891
9907
|
});
|
|
9892
9908
|
close();
|
|
@@ -9943,11 +9959,11 @@ function CompanyDeleterInternal({ company, isAdministrator: isAdministrator2 })
|
|
|
9943
9959
|
setIsDeleting(true);
|
|
9944
9960
|
try {
|
|
9945
9961
|
if (isAdministrator2) {
|
|
9946
|
-
await
|
|
9962
|
+
await _chunkQIA5FOQBjs.CompanyService.delete({ companyId: company.id });
|
|
9947
9963
|
} else {
|
|
9948
|
-
await
|
|
9964
|
+
await _chunkQIA5FOQBjs.CompanyService.selfDelete({ companyId: company.id });
|
|
9949
9965
|
}
|
|
9950
|
-
await
|
|
9966
|
+
await _chunkQIA5FOQBjs.AuthService.logout();
|
|
9951
9967
|
window.location.href = generateUrl({ page: `/` });
|
|
9952
9968
|
} catch (error) {
|
|
9953
9969
|
errorToast({ title: t(`common.errors.delete`), error });
|
|
@@ -10054,7 +10070,7 @@ function CompanyDeleter({ company }) {
|
|
|
10054
10070
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
10055
10071
|
const isAdministrator2 = hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator);
|
|
10056
10072
|
const isCompanyAdministrator = hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).CompanyAdministrator);
|
|
10057
|
-
const hasDeletePermission = hasPermissionToModule({ module:
|
|
10073
|
+
const hasDeletePermission = hasPermissionToModule({ module: _chunkQIA5FOQBjs.Modules.Company, action: "delete" /* Delete */ });
|
|
10058
10074
|
if (!isAdministrator2 && !isCompanyAdministrator && !hasDeletePermission) {
|
|
10059
10075
|
return null;
|
|
10060
10076
|
}
|
|
@@ -10104,7 +10120,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10104
10120
|
});
|
|
10105
10121
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
10106
10122
|
if (values.logo && contentType) {
|
|
10107
|
-
const s3 = await
|
|
10123
|
+
const s3 = await _chunkQIA5FOQBjs.S3Service.getPreSignedUrl({
|
|
10108
10124
|
key: values.logo,
|
|
10109
10125
|
contentType,
|
|
10110
10126
|
isPublic: true
|
|
@@ -10123,9 +10139,9 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10123
10139
|
moduleIds: values.moduleIds
|
|
10124
10140
|
};
|
|
10125
10141
|
try {
|
|
10126
|
-
const updatedCompany = company ? await
|
|
10142
|
+
const updatedCompany = company ? await _chunkQIA5FOQBjs.CompanyService.update(payload) : await _chunkQIA5FOQBjs.CompanyService.create(payload);
|
|
10127
10143
|
if (onRevalidate) {
|
|
10128
|
-
await onRevalidate(generateUrl({ page:
|
|
10144
|
+
await onRevalidate(generateUrl({ page: _chunkQIA5FOQBjs.Modules.Company, id: updatedCompany.id, language: `[locale]` }));
|
|
10129
10145
|
}
|
|
10130
10146
|
if (company && propagateChanges) {
|
|
10131
10147
|
_cookiesnext.setCookie.call(void 0, "reloadData", "true", { path: "/" });
|
|
@@ -10143,7 +10159,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10143
10159
|
}, "onSubmit");
|
|
10144
10160
|
_react.useEffect.call(void 0, () => {
|
|
10145
10161
|
async function fetchFeatures() {
|
|
10146
|
-
const allfeatures = await
|
|
10162
|
+
const allfeatures = await _chunkQIA5FOQBjs.FeatureService.findMany({});
|
|
10147
10163
|
if (hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator)) {
|
|
10148
10164
|
setFeatures(allfeatures);
|
|
10149
10165
|
} else {
|
|
@@ -10239,9 +10255,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyEditor, "CompanyEditor");
|
|
|
10239
10255
|
function CompaniesList() {
|
|
10240
10256
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10241
10257
|
const data = useDataListRetriever({
|
|
10242
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
10258
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkQIA5FOQBjs.CompanyService.findMany(params), "retriever"),
|
|
10243
10259
|
retrieverParams: {},
|
|
10244
|
-
module:
|
|
10260
|
+
module: _chunkQIA5FOQBjs.Modules.Company
|
|
10245
10261
|
});
|
|
10246
10262
|
const functions = [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, {}, "create-account")];
|
|
10247
10263
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10249,7 +10265,7 @@ function CompaniesList() {
|
|
|
10249
10265
|
{
|
|
10250
10266
|
data,
|
|
10251
10267
|
fields: ["name" /* name */, "createdAt" /* createdAt */],
|
|
10252
|
-
tableGeneratorType:
|
|
10268
|
+
tableGeneratorType: _chunkQIA5FOQBjs.Modules.Company,
|
|
10253
10269
|
functions,
|
|
10254
10270
|
title: t(`entities.companies`, { count: 2 })
|
|
10255
10271
|
}
|
|
@@ -10270,14 +10286,14 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
10270
10286
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10271
10287
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
10272
10288
|
const [company, setCompany] = _react.useState.call(void 0,
|
|
10273
|
-
dehydratedCompany ?
|
|
10289
|
+
dehydratedCompany ? _chunkQIA5FOQBjs.rehydrate.call(void 0, _chunkQIA5FOQBjs.Modules.Company, dehydratedCompany) : void 0
|
|
10274
10290
|
);
|
|
10275
10291
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10276
10292
|
const response = [];
|
|
10277
10293
|
if (company)
|
|
10278
10294
|
response.push({
|
|
10279
10295
|
name: company.name,
|
|
10280
|
-
href: generateUrl({ page:
|
|
10296
|
+
href: generateUrl({ page: _chunkQIA5FOQBjs.Modules.Company })
|
|
10281
10297
|
});
|
|
10282
10298
|
return response;
|
|
10283
10299
|
}, "breadcrumb");
|
|
@@ -10287,9 +10303,9 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
10287
10303
|
};
|
|
10288
10304
|
if (company) response.element = company.name;
|
|
10289
10305
|
const functions = [];
|
|
10290
|
-
if (company && (hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).CompanyAdministrator)) && hasPermissionToModule({ module:
|
|
10306
|
+
if (company && (hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).CompanyAdministrator)) && hasPermissionToModule({ module: _chunkQIA5FOQBjs.Modules.Company, action: "delete" /* Delete */ }))
|
|
10291
10307
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleter, { company }, "companyDeleter"));
|
|
10292
|
-
if (hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module:
|
|
10308
|
+
if (hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module: _chunkQIA5FOQBjs.Modules.Company, action: "update" /* Update */ })) {
|
|
10293
10309
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, { company, propagateChanges: setCompany }, "companyEditor"));
|
|
10294
10310
|
}
|
|
10295
10311
|
if (functions.length > 0) response.functions = functions;
|
|
@@ -10408,7 +10424,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
10408
10424
|
setIsLoading(true);
|
|
10409
10425
|
setError(null);
|
|
10410
10426
|
try {
|
|
10411
|
-
const fetchedNotifications = await
|
|
10427
|
+
const fetchedNotifications = await _chunkQIA5FOQBjs.NotificationService.findMany({});
|
|
10412
10428
|
setNotifications(fetchedNotifications);
|
|
10413
10429
|
setLastLoaded(Date.now());
|
|
10414
10430
|
} catch (error2) {
|
|
@@ -10436,7 +10452,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
10436
10452
|
try {
|
|
10437
10453
|
const data = {
|
|
10438
10454
|
data: ids.map((id) => ({
|
|
10439
|
-
type:
|
|
10455
|
+
type: _chunkQIA5FOQBjs.Modules.Notification.name,
|
|
10440
10456
|
id,
|
|
10441
10457
|
attributes: {
|
|
10442
10458
|
isRead: true
|
|
@@ -10445,8 +10461,8 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
10445
10461
|
relationships: {}
|
|
10446
10462
|
}))
|
|
10447
10463
|
};
|
|
10448
|
-
await
|
|
10449
|
-
const allNotifications = await
|
|
10464
|
+
await _chunkQIA5FOQBjs.NotificationService.markAsRead({ data });
|
|
10465
|
+
const allNotifications = await _chunkQIA5FOQBjs.NotificationService.findMany({});
|
|
10450
10466
|
setNotifications(allNotifications);
|
|
10451
10467
|
setLastLoaded(Date.now());
|
|
10452
10468
|
} catch (error2) {
|
|
@@ -10744,18 +10760,18 @@ var RoleProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
10744
10760
|
const generateUrl = usePageUrlGenerator();
|
|
10745
10761
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10746
10762
|
const [role, setRole] = _react.useState.call(void 0,
|
|
10747
|
-
dehydratedRole ?
|
|
10763
|
+
dehydratedRole ? _chunkQIA5FOQBjs.rehydrate.call(void 0, _chunkQIA5FOQBjs.Modules.Role, dehydratedRole) : void 0
|
|
10748
10764
|
);
|
|
10749
10765
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10750
10766
|
const response = [];
|
|
10751
10767
|
response.push({
|
|
10752
10768
|
name: t(`entities.roles`, { count: 2 }),
|
|
10753
|
-
href: generateUrl({ page:
|
|
10769
|
+
href: generateUrl({ page: _chunkQIA5FOQBjs.Modules.Role })
|
|
10754
10770
|
});
|
|
10755
10771
|
if (role)
|
|
10756
10772
|
response.push({
|
|
10757
10773
|
name: role.name,
|
|
10758
|
-
href: generateUrl({ page:
|
|
10774
|
+
href: generateUrl({ page: _chunkQIA5FOQBjs.Modules.Role, id: role.id })
|
|
10759
10775
|
});
|
|
10760
10776
|
return response;
|
|
10761
10777
|
}, "breadcrumb");
|
|
@@ -10946,7 +10962,7 @@ function usePushNotifications() {
|
|
|
10946
10962
|
};
|
|
10947
10963
|
const subscriptionHash = btoa(JSON.stringify(plainSubscription));
|
|
10948
10964
|
if (lastRegisteredSubscription !== subscriptionHash) {
|
|
10949
|
-
await
|
|
10965
|
+
await _chunkQIA5FOQBjs.PushService.register({ data: plainSubscription });
|
|
10950
10966
|
sessionStorage.setItem(sessionKey, subscriptionHash);
|
|
10951
10967
|
}
|
|
10952
10968
|
} catch (error) {
|
|
@@ -11029,7 +11045,7 @@ function useSocket({ token }) {
|
|
|
11029
11045
|
});
|
|
11030
11046
|
}, "handleMessage");
|
|
11031
11047
|
const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
|
|
11032
|
-
const notification =
|
|
11048
|
+
const notification = _chunkQIA5FOQBjs.rehydrate.call(void 0, _chunkQIA5FOQBjs.Modules.Notification, data);
|
|
11033
11049
|
if (notification) {
|
|
11034
11050
|
setSocketNotifications((prev) => {
|
|
11035
11051
|
const newNotifications = [...prev, notification];
|
|
@@ -11144,12 +11160,12 @@ function ContentTitle({ module, type, element, functions, className, prioritizeF
|
|
|
11144
11160
|
setClientFunctions(functions);
|
|
11145
11161
|
}, [functions]);
|
|
11146
11162
|
if (!element) return null;
|
|
11147
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
11148
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
11163
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkQIA5FOQBjs.cn.call(void 0, `mb-4 flex items-center justify-between gap-x-4 w-full`, className), children: [
|
|
11164
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkQIA5FOQBjs.cn.call(void 0, "flex flex-col", prioritizeFunctions ? "min-w-0 shrink" : "w-full"), children: [
|
|
11149
11165
|
type && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11150
11166
|
"div",
|
|
11151
11167
|
{
|
|
11152
|
-
className:
|
|
11168
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
11153
11169
|
"text-muted-foreground text-xl font-light flex gap-x-2 items-center",
|
|
11154
11170
|
prioritizeFunctions && "shrink-0 whitespace-nowrap"
|
|
11155
11171
|
),
|
|
@@ -11159,9 +11175,9 @@ function ContentTitle({ module, type, element, functions, className, prioritizeF
|
|
|
11159
11175
|
]
|
|
11160
11176
|
}
|
|
11161
11177
|
),
|
|
11162
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11178
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkQIA5FOQBjs.cn.call(void 0, "text-primary text-3xl font-semibold", prioritizeFunctions ? "truncate" : "w-full"), children: element })
|
|
11163
11179
|
] }),
|
|
11164
|
-
isClient && clientFunctions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11180
|
+
isClient && clientFunctions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkQIA5FOQBjs.cn.call(void 0, "flex flex-row items-center justify-start", prioritizeFunctions && "shrink-0"), children: clientFunctions })
|
|
11165
11181
|
] });
|
|
11166
11182
|
}
|
|
11167
11183
|
_chunk7QVYU63Ejs.__name.call(void 0, ContentTitle, "ContentTitle");
|
|
@@ -11271,7 +11287,7 @@ function PageContainer({ children, testId, className }) {
|
|
|
11271
11287
|
const headerChildren = useHeaderChildren();
|
|
11272
11288
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex h-full w-full flex-col`, "data-testid": testId, children: [
|
|
11273
11289
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header, { children: headerChildren }),
|
|
11274
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className:
|
|
11290
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className: _chunkQIA5FOQBjs.cn.call(void 0, `flex w-full flex-1 flex-col gap-y-4 pt-4 pl-4 pr-0`, className), children })
|
|
11275
11291
|
] });
|
|
11276
11292
|
}
|
|
11277
11293
|
_chunk7QVYU63Ejs.__name.call(void 0, PageContainer, "PageContainer");
|
|
@@ -11380,7 +11396,7 @@ function TabsContainer({
|
|
|
11380
11396
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11381
11397
|
TabsList,
|
|
11382
11398
|
{
|
|
11383
|
-
className:
|
|
11399
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
11384
11400
|
`${style ? `my-4 flex w-full justify-start rounded-none border-b bg-transparent pb-0` : ``}`,
|
|
11385
11401
|
tabsListClassName
|
|
11386
11402
|
),
|
|
@@ -11388,7 +11404,7 @@ function TabsContainer({
|
|
|
11388
11404
|
TabsTrigger,
|
|
11389
11405
|
{
|
|
11390
11406
|
value: tab.label,
|
|
11391
|
-
className:
|
|
11407
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
11392
11408
|
`${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`}`,
|
|
11393
11409
|
tabsTriggerClassName
|
|
11394
11410
|
),
|
|
@@ -11408,7 +11424,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, TabsContainer, "TabsContainer");
|
|
|
11408
11424
|
// src/components/contents/AttributeElement.tsx
|
|
11409
11425
|
|
|
11410
11426
|
function AttributeElement({ inline, title, value, className }) {
|
|
11411
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
11427
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkQIA5FOQBjs.cn.call(void 0, `flex ${inline === true ? "flex-row" : "flex-col"} my-1 justify-start`, className), children: [
|
|
11412
11428
|
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${inline === true ? "min-w-48 pr-4" : "w-full"} text-sm font-semibold`, children: title }),
|
|
11413
11429
|
value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col text-sm", children: value })
|
|
11414
11430
|
] });
|
|
@@ -11431,7 +11447,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AllowedUsersDetails, "AllowedUsersDetails")
|
|
|
11431
11447
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
11432
11448
|
|
|
11433
11449
|
|
|
11434
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
11450
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-IGFJYLLS.js"))), {
|
|
11435
11451
|
ssr: false
|
|
11436
11452
|
});
|
|
11437
11453
|
var BlockNoteEditorContainer = React3.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -11483,7 +11499,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, PageContainerContentDetails, "PageContainer
|
|
|
11483
11499
|
|
|
11484
11500
|
function PageContentContainer({ header, details, footer, content, fullBleed }) {
|
|
11485
11501
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
11486
|
-
const isMobile =
|
|
11502
|
+
const isMobile = _chunkQIA5FOQBjs.useIsMobile.call(void 0, );
|
|
11487
11503
|
_react.useEffect.call(void 0, () => {
|
|
11488
11504
|
setMounted(true);
|
|
11489
11505
|
}, []);
|
|
@@ -11530,13 +11546,13 @@ function PageContentContainer({ header, details, footer, content, fullBleed }) {
|
|
|
11530
11546
|
{
|
|
11531
11547
|
id: "right-panel",
|
|
11532
11548
|
defaultSize: rightPanelDefaultSize,
|
|
11533
|
-
className:
|
|
11534
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11549
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "w-full", isMobile ? "pt-4" : ""),
|
|
11550
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkQIA5FOQBjs.cn.call(void 0, "h-full overflow-x-hidden overflow-y-auto pt-4", fullBleed ? "" : "px-4 pb-20"), children: content })
|
|
11535
11551
|
}
|
|
11536
11552
|
)
|
|
11537
11553
|
]
|
|
11538
11554
|
}
|
|
11539
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11555
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkQIA5FOQBjs.cn.call(void 0, "h-full overflow-x-hidden overflow-y-auto pt-4", fullBleed ? "" : "px-4 pb-20"), children: content }) })
|
|
11540
11556
|
] });
|
|
11541
11557
|
}
|
|
11542
11558
|
_chunk7QVYU63Ejs.__name.call(void 0, PageContentContainer, "PageContentContainer");
|
|
@@ -11838,14 +11854,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, useJsonApiMutation, "useJsonApiMutation");
|
|
|
11838
11854
|
function useRehydration(classKey, data) {
|
|
11839
11855
|
return _react.useMemo.call(void 0, () => {
|
|
11840
11856
|
if (!data) return null;
|
|
11841
|
-
return
|
|
11857
|
+
return _chunkQIA5FOQBjs.RehydrationFactory.rehydrate(classKey, data);
|
|
11842
11858
|
}, [classKey, data]);
|
|
11843
11859
|
}
|
|
11844
11860
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydration, "useRehydration");
|
|
11845
11861
|
function useRehydrationList(classKey, data) {
|
|
11846
11862
|
return _react.useMemo.call(void 0, () => {
|
|
11847
11863
|
if (!data || data.length === 0) return [];
|
|
11848
|
-
return
|
|
11864
|
+
return _chunkQIA5FOQBjs.RehydrationFactory.rehydrateList(classKey, data);
|
|
11849
11865
|
}, [classKey, data]);
|
|
11850
11866
|
}
|
|
11851
11867
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydrationList, "useRehydrationList");
|
|
@@ -11887,9 +11903,9 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
11887
11903
|
{
|
|
11888
11904
|
href: hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
11889
11905
|
page: "/administration",
|
|
11890
|
-
id: _optionalChain([
|
|
11906
|
+
id: _optionalChain([_chunkQIA5FOQBjs.Modules, 'access', _335 => _335.Company, 'access', _336 => _336.pageUrl, 'optionalAccess', _337 => _337.substring, 'call', _338 => _338(1)]),
|
|
11891
11907
|
childPage: company.id
|
|
11892
|
-
}) : generateUrl({ page:
|
|
11908
|
+
}) : generateUrl({ page: _chunkQIA5FOQBjs.Modules.Company, id: company.id }),
|
|
11893
11909
|
children: row.getValue("name")
|
|
11894
11910
|
}
|
|
11895
11911
|
);
|
|
@@ -12013,7 +12029,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
12013
12029
|
header: t(`role.fields.name.label`),
|
|
12014
12030
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
12015
12031
|
const role = row.original.jsonApiData;
|
|
12016
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page:
|
|
12032
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunkQIA5FOQBjs.Modules.Role, id: role.id }), children: row.getValue("name") });
|
|
12017
12033
|
}, "cell"),
|
|
12018
12034
|
enableSorting: false,
|
|
12019
12035
|
enableHiding: false
|
|
@@ -12050,7 +12066,7 @@ var useUserSearch = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
|
12050
12066
|
if (search === searchQueryRef.current && users.length > 0) return;
|
|
12051
12067
|
setIsLoading(true);
|
|
12052
12068
|
searchQueryRef.current = search;
|
|
12053
|
-
const fetchedUsers = await
|
|
12069
|
+
const fetchedUsers = await _chunkQIA5FOQBjs.UserService.findMany({ search, fetchAll: true });
|
|
12054
12070
|
setUsers(fetchedUsers);
|
|
12055
12071
|
} catch (error) {
|
|
12056
12072
|
console.error("Failed to load users:", error);
|
|
@@ -12116,8 +12132,8 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
12116
12132
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
12117
12133
|
Link,
|
|
12118
12134
|
{
|
|
12119
|
-
href: generateUrl({ page:
|
|
12120
|
-
className:
|
|
12135
|
+
href: generateUrl({ page: _chunkQIA5FOQBjs.Modules.User, id: user.id }),
|
|
12136
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
12121
12137
|
`flex items-center justify-start gap-2`,
|
|
12122
12138
|
user.isDeleted || !user.isActivated ? "text-muted-foreground italic" : ""
|
|
12123
12139
|
),
|
|
@@ -12211,11 +12227,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
12211
12227
|
header: t(`content.fields.name.label`),
|
|
12212
12228
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
12213
12229
|
const content = row.original.jsonApiData;
|
|
12214
|
-
const contentModule = content.contentType ?
|
|
12230
|
+
const contentModule = content.contentType ? _chunkQIA5FOQBjs.Modules.findByModelName(content.contentType) : void 0;
|
|
12215
12231
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
12216
12232
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
|
|
12217
12233
|
/* @__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: [
|
|
12218
|
-
contentModule &&
|
|
12234
|
+
contentModule && _chunkQIA5FOQBjs.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
12219
12235
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: link, children: content.name })
|
|
12220
12236
|
] }) }),
|
|
12221
12237
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: content.tldr })
|
|
@@ -12352,7 +12368,7 @@ function useOAuthClients() {
|
|
|
12352
12368
|
setIsLoading(true);
|
|
12353
12369
|
setError(null);
|
|
12354
12370
|
try {
|
|
12355
|
-
const fetchedClients = await
|
|
12371
|
+
const fetchedClients = await _chunkQIA5FOQBjs.OAuthService.listClients();
|
|
12356
12372
|
setClients(fetchedClients);
|
|
12357
12373
|
} catch (err) {
|
|
12358
12374
|
console.error("[useOAuthClients] Failed to fetch clients:", err);
|
|
@@ -12369,7 +12385,7 @@ function useOAuthClients() {
|
|
|
12369
12385
|
setIsLoading(true);
|
|
12370
12386
|
setError(null);
|
|
12371
12387
|
try {
|
|
12372
|
-
const result = await
|
|
12388
|
+
const result = await _chunkQIA5FOQBjs.OAuthService.createClient(data);
|
|
12373
12389
|
addClient(result.client);
|
|
12374
12390
|
if (result.clientSecret) {
|
|
12375
12391
|
setNewClientSecret({
|
|
@@ -12416,7 +12432,7 @@ function useOAuthClient(clientId) {
|
|
|
12416
12432
|
setIsLoading(true);
|
|
12417
12433
|
setError(null);
|
|
12418
12434
|
try {
|
|
12419
|
-
const fetched = await
|
|
12435
|
+
const fetched = await _chunkQIA5FOQBjs.OAuthService.getClient({ clientId });
|
|
12420
12436
|
setFetchedClient(fetched);
|
|
12421
12437
|
} catch (err) {
|
|
12422
12438
|
console.error("[useOAuthClient] Failed to fetch client:", err);
|
|
@@ -12436,7 +12452,7 @@ function useOAuthClient(clientId) {
|
|
|
12436
12452
|
setIsLoading(true);
|
|
12437
12453
|
setError(null);
|
|
12438
12454
|
try {
|
|
12439
|
-
const updated = await
|
|
12455
|
+
const updated = await _chunkQIA5FOQBjs.OAuthService.updateClient({ clientId, data });
|
|
12440
12456
|
updateClientInStore(updated);
|
|
12441
12457
|
setFetchedClient(updated);
|
|
12442
12458
|
} catch (err) {
|
|
@@ -12455,7 +12471,7 @@ function useOAuthClient(clientId) {
|
|
|
12455
12471
|
setIsLoading(true);
|
|
12456
12472
|
setError(null);
|
|
12457
12473
|
try {
|
|
12458
|
-
await
|
|
12474
|
+
await _chunkQIA5FOQBjs.OAuthService.deleteClient({ clientId });
|
|
12459
12475
|
removeClientFromStore(clientId);
|
|
12460
12476
|
} catch (err) {
|
|
12461
12477
|
console.error("[useOAuthClient] Failed to delete client:", err);
|
|
@@ -12471,7 +12487,7 @@ function useOAuthClient(clientId) {
|
|
|
12471
12487
|
setIsLoading(true);
|
|
12472
12488
|
setError(null);
|
|
12473
12489
|
try {
|
|
12474
|
-
const result = await
|
|
12490
|
+
const result = await _chunkQIA5FOQBjs.OAuthService.regenerateSecret({ clientId });
|
|
12475
12491
|
setNewClientSecret({
|
|
12476
12492
|
clientId,
|
|
12477
12493
|
secret: result.clientSecret
|
|
@@ -12515,7 +12531,7 @@ function useOAuthConsent(params) {
|
|
|
12515
12531
|
setIsLoading(true);
|
|
12516
12532
|
setError(null);
|
|
12517
12533
|
try {
|
|
12518
|
-
const info = await
|
|
12534
|
+
const info = await _chunkQIA5FOQBjs.OAuthService.getAuthorizationInfo(params);
|
|
12519
12535
|
setClientInfo(info);
|
|
12520
12536
|
} catch (err) {
|
|
12521
12537
|
console.error("[useOAuthConsent] Failed to fetch authorization info:", err);
|
|
@@ -12537,7 +12553,7 @@ function useOAuthConsent(params) {
|
|
|
12537
12553
|
setIsSubmitting(true);
|
|
12538
12554
|
setError(null);
|
|
12539
12555
|
try {
|
|
12540
|
-
const result = await
|
|
12556
|
+
const result = await _chunkQIA5FOQBjs.OAuthService.approveAuthorization(params);
|
|
12541
12557
|
if (result.redirectUrl) {
|
|
12542
12558
|
window.location.href = result.redirectUrl;
|
|
12543
12559
|
}
|
|
@@ -12551,7 +12567,7 @@ function useOAuthConsent(params) {
|
|
|
12551
12567
|
setIsSubmitting(true);
|
|
12552
12568
|
setError(null);
|
|
12553
12569
|
try {
|
|
12554
|
-
const result = await
|
|
12570
|
+
const result = await _chunkQIA5FOQBjs.OAuthService.denyAuthorization(params);
|
|
12555
12571
|
if (result.redirectUrl) {
|
|
12556
12572
|
window.location.href = result.redirectUrl;
|
|
12557
12573
|
}
|
|
@@ -12895,7 +12911,7 @@ function Register() {
|
|
|
12895
12911
|
}
|
|
12896
12912
|
setIsValidatingInvite(true);
|
|
12897
12913
|
try {
|
|
12898
|
-
const result = await
|
|
12914
|
+
const result = await _chunkQIA5FOQBjs.WaitlistService.validateInvite(inviteCode);
|
|
12899
12915
|
if (result && result.valid) {
|
|
12900
12916
|
setInviteValidated(true);
|
|
12901
12917
|
form.setValue("email", result.email);
|
|
@@ -12926,7 +12942,7 @@ function Register() {
|
|
|
12926
12942
|
inviteCode: _nullishCoalesce(inviteCode, () => ( void 0)),
|
|
12927
12943
|
referralCode: _nullishCoalesce(referralCode, () => ( void 0))
|
|
12928
12944
|
};
|
|
12929
|
-
await
|
|
12945
|
+
await _chunkQIA5FOQBjs.AuthService.register(payload);
|
|
12930
12946
|
clearReferralCode();
|
|
12931
12947
|
setShowConfirmation(true);
|
|
12932
12948
|
} catch (e) {
|
|
@@ -13206,7 +13222,7 @@ function BackupCodesDialog({ remainingCodes, onRegenerate, trigger }) {
|
|
|
13206
13222
|
const handleGenerate = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
13207
13223
|
setIsLoading(true);
|
|
13208
13224
|
try {
|
|
13209
|
-
const newCodes = await
|
|
13225
|
+
const newCodes = await _chunkQIA5FOQBjs.TwoFactorService.generateBackupCodes();
|
|
13210
13226
|
setCodes(newCodes);
|
|
13211
13227
|
setShowCodes(true);
|
|
13212
13228
|
onRegenerate();
|
|
@@ -13219,7 +13235,7 @@ function BackupCodesDialog({ remainingCodes, onRegenerate, trigger }) {
|
|
|
13219
13235
|
const handleCopyAll = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
13220
13236
|
const text = codes.join("\n");
|
|
13221
13237
|
await navigator.clipboard.writeText(text);
|
|
13222
|
-
|
|
13238
|
+
_chunkQIA5FOQBjs.showToast.call(void 0, t("auth.two_factor.codes_copied"));
|
|
13223
13239
|
}, "handleCopyAll");
|
|
13224
13240
|
const handleDownload = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
13225
13241
|
const text = `Backup Codes
|
|
@@ -13374,8 +13390,8 @@ function DisableTwoFactorDialog({ onSuccess, trigger }) {
|
|
|
13374
13390
|
setIsLoading(true);
|
|
13375
13391
|
setError(void 0);
|
|
13376
13392
|
try {
|
|
13377
|
-
await
|
|
13378
|
-
|
|
13393
|
+
await _chunkQIA5FOQBjs.TwoFactorService.disable({ code });
|
|
13394
|
+
_chunkQIA5FOQBjs.showToast.call(void 0, t("auth.two_factor.disabled_success"));
|
|
13379
13395
|
setOpen(false);
|
|
13380
13396
|
onSuccess();
|
|
13381
13397
|
} catch (err) {
|
|
@@ -13421,8 +13437,8 @@ function PasskeyList({ passkeys, onRefresh }) {
|
|
|
13421
13437
|
const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (passkey) => {
|
|
13422
13438
|
setIsLoading(true);
|
|
13423
13439
|
try {
|
|
13424
|
-
await
|
|
13425
|
-
|
|
13440
|
+
await _chunkQIA5FOQBjs.TwoFactorService.deletePasskey({ id: passkey.id });
|
|
13441
|
+
_chunkQIA5FOQBjs.showToast.call(void 0, t("common.success"), {
|
|
13426
13442
|
description: t("auth.two_factor.passkey_deleted")
|
|
13427
13443
|
});
|
|
13428
13444
|
onRefresh();
|
|
@@ -13439,11 +13455,11 @@ function PasskeyList({ passkeys, onRefresh }) {
|
|
|
13439
13455
|
if (!selectedPasskey || !newName.trim()) return;
|
|
13440
13456
|
setIsLoading(true);
|
|
13441
13457
|
try {
|
|
13442
|
-
await
|
|
13458
|
+
await _chunkQIA5FOQBjs.TwoFactorService.renamePasskey({
|
|
13443
13459
|
id: selectedPasskey.id,
|
|
13444
13460
|
name: newName.trim()
|
|
13445
13461
|
});
|
|
13446
|
-
|
|
13462
|
+
_chunkQIA5FOQBjs.showToast.call(void 0, t("common.success"), {
|
|
13447
13463
|
description: t("auth.two_factor.passkey_renamed")
|
|
13448
13464
|
});
|
|
13449
13465
|
setRenameDialogOpen(false);
|
|
@@ -13543,23 +13559,23 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
|
|
|
13543
13559
|
if (!name.trim()) return;
|
|
13544
13560
|
setIsLoading(true);
|
|
13545
13561
|
try {
|
|
13546
|
-
const registrationData = await
|
|
13562
|
+
const registrationData = await _chunkQIA5FOQBjs.TwoFactorService.getPasskeyRegistrationOptions({
|
|
13547
13563
|
id: _uuid.v4.call(void 0, ),
|
|
13548
13564
|
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _377 => _377.email]), () => ( "")),
|
|
13549
13565
|
userDisplayName: _optionalChain([currentUser, 'optionalAccess', _378 => _378.name])
|
|
13550
13566
|
});
|
|
13551
13567
|
const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
|
|
13552
|
-
await
|
|
13568
|
+
await _chunkQIA5FOQBjs.TwoFactorService.verifyPasskeyRegistration({
|
|
13553
13569
|
id: _uuid.v4.call(void 0, ),
|
|
13554
13570
|
pendingId: registrationData.pendingId,
|
|
13555
13571
|
name: name.trim(),
|
|
13556
13572
|
response: credential
|
|
13557
13573
|
});
|
|
13558
|
-
const status = await
|
|
13574
|
+
const status = await _chunkQIA5FOQBjs.TwoFactorService.getStatus();
|
|
13559
13575
|
if (!status.isEnabled) {
|
|
13560
|
-
await
|
|
13576
|
+
await _chunkQIA5FOQBjs.TwoFactorService.enable({ id: _uuid.v4.call(void 0, ), preferredMethod: "passkey" });
|
|
13561
13577
|
}
|
|
13562
|
-
|
|
13578
|
+
_chunkQIA5FOQBjs.showToast.call(void 0, t("common.success"), {
|
|
13563
13579
|
description: t("auth.two_factor.passkey_registered")
|
|
13564
13580
|
});
|
|
13565
13581
|
setName("");
|
|
@@ -13610,8 +13626,8 @@ function TotpAuthenticatorList({ authenticators, onDelete }) {
|
|
|
13610
13626
|
const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (id) => {
|
|
13611
13627
|
setDeletingId(id);
|
|
13612
13628
|
try {
|
|
13613
|
-
await
|
|
13614
|
-
|
|
13629
|
+
await _chunkQIA5FOQBjs.TwoFactorService.deleteTotpAuthenticator({ id });
|
|
13630
|
+
_chunkQIA5FOQBjs.showToast.call(void 0, t("common.success"), {
|
|
13615
13631
|
description: t("auth.two_factor.authenticator_removed")
|
|
13616
13632
|
});
|
|
13617
13633
|
onDelete();
|
|
@@ -13694,7 +13710,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
13694
13710
|
if (!name.trim()) return;
|
|
13695
13711
|
setIsLoading(true);
|
|
13696
13712
|
try {
|
|
13697
|
-
const setup = await
|
|
13713
|
+
const setup = await _chunkQIA5FOQBjs.TwoFactorService.setupTotp({
|
|
13698
13714
|
id: _uuid.v4.call(void 0, ),
|
|
13699
13715
|
name: name.trim(),
|
|
13700
13716
|
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _379 => _379.email]), () => ( ""))
|
|
@@ -13712,16 +13728,16 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
13712
13728
|
setIsLoading(true);
|
|
13713
13729
|
setVerifyError(void 0);
|
|
13714
13730
|
try {
|
|
13715
|
-
await
|
|
13731
|
+
await _chunkQIA5FOQBjs.TwoFactorService.verifyTotpSetup({
|
|
13716
13732
|
id: _uuid.v4.call(void 0, ),
|
|
13717
13733
|
authenticatorId,
|
|
13718
13734
|
code
|
|
13719
13735
|
});
|
|
13720
|
-
const status = await
|
|
13736
|
+
const status = await _chunkQIA5FOQBjs.TwoFactorService.getStatus();
|
|
13721
13737
|
if (!status.isEnabled) {
|
|
13722
|
-
await
|
|
13738
|
+
await _chunkQIA5FOQBjs.TwoFactorService.enable({ id: _uuid.v4.call(void 0, ), preferredMethod: "totp" });
|
|
13723
13739
|
}
|
|
13724
|
-
|
|
13740
|
+
_chunkQIA5FOQBjs.showToast.call(void 0, t("common.success"), {
|
|
13725
13741
|
description: t("auth.two_factor.authenticator_added")
|
|
13726
13742
|
});
|
|
13727
13743
|
setOpen(false);
|
|
@@ -13796,9 +13812,9 @@ function TwoFactorSettings() {
|
|
|
13796
13812
|
const loadStatus = _react.useCallback.call(void 0, async () => {
|
|
13797
13813
|
try {
|
|
13798
13814
|
const [statusData, authenticatorsList, passkeysList] = await Promise.all([
|
|
13799
|
-
|
|
13800
|
-
|
|
13801
|
-
|
|
13815
|
+
_chunkQIA5FOQBjs.TwoFactorService.getStatus(),
|
|
13816
|
+
_chunkQIA5FOQBjs.TwoFactorService.listTotpAuthenticators(),
|
|
13817
|
+
_chunkQIA5FOQBjs.TwoFactorService.listPasskeys()
|
|
13802
13818
|
]);
|
|
13803
13819
|
setStatus(statusData);
|
|
13804
13820
|
setAuthenticators(authenticatorsList);
|
|
@@ -13819,8 +13835,8 @@ function TwoFactorSettings() {
|
|
|
13819
13835
|
setIsEnabling(true);
|
|
13820
13836
|
try {
|
|
13821
13837
|
const preferredMethod = authenticators.length > 0 ? "totp" : "passkey";
|
|
13822
|
-
await
|
|
13823
|
-
|
|
13838
|
+
await _chunkQIA5FOQBjs.TwoFactorService.enable({ id: _uuid.v4.call(void 0, ), preferredMethod });
|
|
13839
|
+
_chunkQIA5FOQBjs.showToast.call(void 0, t("common.success"), { description: t("auth.two_factor.enabled_success") });
|
|
13824
13840
|
await loadStatus();
|
|
13825
13841
|
} catch (error) {
|
|
13826
13842
|
errorToast({ title: t("common.errors.error"), error });
|
|
@@ -14014,7 +14030,7 @@ function AcceptInvitation() {
|
|
|
14014
14030
|
const payload = {
|
|
14015
14031
|
code
|
|
14016
14032
|
};
|
|
14017
|
-
await
|
|
14033
|
+
await _chunkQIA5FOQBjs.AuthService.validateCode(payload);
|
|
14018
14034
|
} catch (e) {
|
|
14019
14035
|
setError(e instanceof Error ? e.message : String(e));
|
|
14020
14036
|
errorToast({ title: t(`common.errors.error`), error: e });
|
|
@@ -14052,9 +14068,9 @@ function AcceptInvitation() {
|
|
|
14052
14068
|
code: _optionalChain([params, 'optionalAccess', _383 => _383.code]),
|
|
14053
14069
|
password: values.password
|
|
14054
14070
|
};
|
|
14055
|
-
await
|
|
14071
|
+
await _chunkQIA5FOQBjs.AuthService.acceptInvitation(payload);
|
|
14056
14072
|
setShowConfirmation(true);
|
|
14057
|
-
|
|
14073
|
+
_chunkQIA5FOQBjs.showToast.call(void 0, t("auth.account_activated"), {
|
|
14058
14074
|
description: t("auth.account_activated_description")
|
|
14059
14075
|
});
|
|
14060
14076
|
setTimeout(() => {
|
|
@@ -14114,10 +14130,10 @@ function ActivateAccount() {
|
|
|
14114
14130
|
const payload = {
|
|
14115
14131
|
activationCode: code
|
|
14116
14132
|
};
|
|
14117
|
-
await
|
|
14133
|
+
await _chunkQIA5FOQBjs.AuthService.activate(payload);
|
|
14118
14134
|
setShowConfirmation(true);
|
|
14119
14135
|
setParams(void 0);
|
|
14120
|
-
|
|
14136
|
+
_chunkQIA5FOQBjs.showToast.call(void 0, t("auth.account_activated"), {
|
|
14121
14137
|
description: t("auth.account_activated_description")
|
|
14122
14138
|
});
|
|
14123
14139
|
setTimeout(() => {
|
|
@@ -14157,8 +14173,8 @@ function Cookies({ dehydratedAuth, page }) {
|
|
|
14157
14173
|
_react.useEffect.call(void 0, () => {
|
|
14158
14174
|
if (hasSaved) return;
|
|
14159
14175
|
async function saveTokenOnServer() {
|
|
14160
|
-
await
|
|
14161
|
-
const auth =
|
|
14176
|
+
await _chunkQIA5FOQBjs.AuthService.saveToken({ dehydratedAuth });
|
|
14177
|
+
const auth = _chunkQIA5FOQBjs.rehydrate.call(void 0, _chunkQIA5FOQBjs.Modules.Auth, dehydratedAuth);
|
|
14162
14178
|
setUser(auth.user);
|
|
14163
14179
|
setHasSaved(true);
|
|
14164
14180
|
if (page) {
|
|
@@ -14201,7 +14217,7 @@ function ForgotPassword() {
|
|
|
14201
14217
|
const payload = {
|
|
14202
14218
|
email: values.email
|
|
14203
14219
|
};
|
|
14204
|
-
await
|
|
14220
|
+
await _chunkQIA5FOQBjs.AuthService.initialiseForgotPassword(payload);
|
|
14205
14221
|
setShowConfirmation(true);
|
|
14206
14222
|
} catch (e) {
|
|
14207
14223
|
errorToast({ error: e });
|
|
@@ -14293,7 +14309,7 @@ function Login() {
|
|
|
14293
14309
|
});
|
|
14294
14310
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
14295
14311
|
try {
|
|
14296
|
-
const response = await
|
|
14312
|
+
const response = await _chunkQIA5FOQBjs.AuthService.login({
|
|
14297
14313
|
email: values.email,
|
|
14298
14314
|
password: values.password
|
|
14299
14315
|
});
|
|
@@ -14402,7 +14418,7 @@ function Logout({ storageKeys }) {
|
|
|
14402
14418
|
if (_optionalChain([storageKeys, 'optionalAccess', _384 => _384.length])) {
|
|
14403
14419
|
clearClientStorage(storageKeys);
|
|
14404
14420
|
}
|
|
14405
|
-
await
|
|
14421
|
+
await _chunkQIA5FOQBjs.AuthService.logout();
|
|
14406
14422
|
window.location.href = generateUrl({ page: `/` });
|
|
14407
14423
|
}, "logOut");
|
|
14408
14424
|
logOut();
|
|
@@ -14417,7 +14433,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, Logout, "Logout");
|
|
|
14417
14433
|
function RefreshUser() {
|
|
14418
14434
|
const { setUser } = useCurrentUserContext();
|
|
14419
14435
|
const loadFullUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
14420
|
-
const fullUser = await
|
|
14436
|
+
const fullUser = await _chunkQIA5FOQBjs.UserService.findFullUser();
|
|
14421
14437
|
if (fullUser) {
|
|
14422
14438
|
setUser(fullUser);
|
|
14423
14439
|
const token = {
|
|
@@ -14429,7 +14445,7 @@ function RefreshUser() {
|
|
|
14429
14445
|
return { id: module.id, permissions: module.permissions };
|
|
14430
14446
|
})
|
|
14431
14447
|
};
|
|
14432
|
-
await _optionalChain([
|
|
14448
|
+
await _optionalChain([_chunkQIA5FOQBjs.getTokenHandler.call(void 0, ), 'optionalAccess', _391 => _391.updateToken, 'call', _392 => _392(token)]);
|
|
14433
14449
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
14434
14450
|
}
|
|
14435
14451
|
}, "loadFullUser");
|
|
@@ -14460,7 +14476,7 @@ function ResetPassword() {
|
|
|
14460
14476
|
const payload = {
|
|
14461
14477
|
code
|
|
14462
14478
|
};
|
|
14463
|
-
await
|
|
14479
|
+
await _chunkQIA5FOQBjs.AuthService.validateCode(payload);
|
|
14464
14480
|
} catch (e) {
|
|
14465
14481
|
setError(e instanceof Error ? e.message : String(e));
|
|
14466
14482
|
errorToast({ title: t(`common.errors.error`), error: e });
|
|
@@ -14498,9 +14514,9 @@ function ResetPassword() {
|
|
|
14498
14514
|
code: _optionalChain([params, 'optionalAccess', _394 => _394.code]),
|
|
14499
14515
|
password: values.password
|
|
14500
14516
|
};
|
|
14501
|
-
await
|
|
14517
|
+
await _chunkQIA5FOQBjs.AuthService.resetPassword(payload);
|
|
14502
14518
|
setShowConfirmation(true);
|
|
14503
|
-
|
|
14519
|
+
_chunkQIA5FOQBjs.showToast.call(void 0, t(`auth.reset_success`), {
|
|
14504
14520
|
description: t(`auth.reset_success_description`)
|
|
14505
14521
|
});
|
|
14506
14522
|
setTimeout(() => {
|
|
@@ -14546,9 +14562,9 @@ function PasskeyButton({ pendingToken, onSuccess, onError, disabled = false }) {
|
|
|
14546
14562
|
const handleClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
14547
14563
|
setIsLoading(true);
|
|
14548
14564
|
try {
|
|
14549
|
-
const { pendingId, options } = await
|
|
14565
|
+
const { pendingId, options } = await _chunkQIA5FOQBjs.TwoFactorService.getPasskeyAuthOptions({ pendingToken });
|
|
14550
14566
|
const credential = await _browser.startAuthentication.call(void 0, { optionsJSON: options });
|
|
14551
|
-
const auth = await
|
|
14567
|
+
const auth = await _chunkQIA5FOQBjs.TwoFactorService.verifyPasskey({
|
|
14552
14568
|
id: _uuid.v4.call(void 0, ),
|
|
14553
14569
|
pendingToken,
|
|
14554
14570
|
pendingId,
|
|
@@ -14607,7 +14623,7 @@ function TwoFactorChallenge() {
|
|
|
14607
14623
|
setIsVerifying(true);
|
|
14608
14624
|
setTotpError(void 0);
|
|
14609
14625
|
try {
|
|
14610
|
-
const auth = await
|
|
14626
|
+
const auth = await _chunkQIA5FOQBjs.TwoFactorService.verifyTotp({
|
|
14611
14627
|
id: _uuid.v4.call(void 0, ),
|
|
14612
14628
|
pendingToken: pendingTwoFactor.pendingToken,
|
|
14613
14629
|
code
|
|
@@ -14637,7 +14653,7 @@ function TwoFactorChallenge() {
|
|
|
14637
14653
|
setIsVerifying(true);
|
|
14638
14654
|
setBackupError(void 0);
|
|
14639
14655
|
try {
|
|
14640
|
-
const auth = await
|
|
14656
|
+
const auth = await _chunkQIA5FOQBjs.TwoFactorService.verifyBackupCode({
|
|
14641
14657
|
id: _uuid.v4.call(void 0, ),
|
|
14642
14658
|
pendingToken: pendingTwoFactor.pendingToken,
|
|
14643
14659
|
code: backupCode
|
|
@@ -14728,12 +14744,12 @@ function ContentsList({ contentList }) {
|
|
|
14728
14744
|
_chunk7QVYU63Ejs.__name.call(void 0, ContentsList, "ContentsList");
|
|
14729
14745
|
function ContentsListElement({ content }) {
|
|
14730
14746
|
const generateUrl = usePageUrlGenerator();
|
|
14731
|
-
const contentModule = content.contentType ?
|
|
14747
|
+
const contentModule = content.contentType ? _chunkQIA5FOQBjs.Modules.findByModelName(content.contentType) : void 0;
|
|
14732
14748
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
14733
14749
|
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: [
|
|
14734
14750
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCard, { children: [
|
|
14735
14751
|
/* @__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: [
|
|
14736
|
-
contentModule &&
|
|
14752
|
+
contentModule && _chunkQIA5FOQBjs.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
14737
14753
|
content.name
|
|
14738
14754
|
] }) }),
|
|
14739
14755
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCardContent, { className: "flex max-h-96 w-96 flex-col gap-y-4 overflow-y-auto", children: [
|
|
@@ -14752,8 +14768,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListElement, "ContentsListElement")
|
|
|
14752
14768
|
function ContentsListById({ contentIds }) {
|
|
14753
14769
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
14754
14770
|
const data = useDataListRetriever({
|
|
14755
|
-
module:
|
|
14756
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
14771
|
+
module: _chunkQIA5FOQBjs.Modules.Content,
|
|
14772
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkQIA5FOQBjs.ContentService.findMany(params), "retriever"),
|
|
14757
14773
|
retrieverParams: { contentIds }
|
|
14758
14774
|
});
|
|
14759
14775
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -14761,7 +14777,7 @@ function ContentsListById({ contentIds }) {
|
|
|
14761
14777
|
{
|
|
14762
14778
|
data,
|
|
14763
14779
|
fields: ["name" /* name */, "authors" /* authors */, "updatedAt" /* updatedAt */],
|
|
14764
|
-
tableGeneratorType:
|
|
14780
|
+
tableGeneratorType: _chunkQIA5FOQBjs.Modules.Content,
|
|
14765
14781
|
title: t(`common.relevant`)
|
|
14766
14782
|
}
|
|
14767
14783
|
);
|
|
@@ -14774,8 +14790,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListById, "ContentsListById");
|
|
|
14774
14790
|
function RelevantContentsList({ id }) {
|
|
14775
14791
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
14776
14792
|
const data = useDataListRetriever({
|
|
14777
|
-
module:
|
|
14778
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
14793
|
+
module: _chunkQIA5FOQBjs.Modules.Content,
|
|
14794
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkQIA5FOQBjs.ContentService.findRelevant(params), "retriever"),
|
|
14779
14795
|
retrieverParams: { id }
|
|
14780
14796
|
});
|
|
14781
14797
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -14783,7 +14799,7 @@ function RelevantContentsList({ id }) {
|
|
|
14783
14799
|
{
|
|
14784
14800
|
data,
|
|
14785
14801
|
fields: ["name" /* name */, "authors" /* authors */, "relevance" /* relevance */, "updatedAt" /* updatedAt */],
|
|
14786
|
-
tableGeneratorType:
|
|
14802
|
+
tableGeneratorType: _chunkQIA5FOQBjs.Modules.Content,
|
|
14787
14803
|
title: t(`common.relevant`)
|
|
14788
14804
|
}
|
|
14789
14805
|
);
|
|
@@ -14836,12 +14852,12 @@ function NotificationsList({ archived }) {
|
|
|
14836
14852
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
14837
14853
|
const generateUrl = usePageUrlGenerator();
|
|
14838
14854
|
const data = useDataListRetriever({
|
|
14839
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
14855
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkQIA5FOQBjs.NotificationService.findMany(params), "retriever"),
|
|
14840
14856
|
retrieverParams: { isArchived: archived },
|
|
14841
|
-
module:
|
|
14857
|
+
module: _chunkQIA5FOQBjs.Modules.Notification
|
|
14842
14858
|
});
|
|
14843
14859
|
const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
|
|
14844
|
-
await
|
|
14860
|
+
await _chunkQIA5FOQBjs.NotificationService.archive({ id: notification.id });
|
|
14845
14861
|
data.removeElement(notification);
|
|
14846
14862
|
}, "archiveNotification");
|
|
14847
14863
|
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: [
|
|
@@ -14855,7 +14871,7 @@ function NotificationsList({ archived }) {
|
|
|
14855
14871
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _395 => _395.data, 'optionalAccess', _396 => _396.map, 'call', _397 => _397((notification) => {
|
|
14856
14872
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
14857
14873
|
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: [
|
|
14858
|
-
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:
|
|
14874
|
+
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: _chunkQIA5FOQBjs.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" }),
|
|
14859
14875
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
14860
14876
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
14861
14877
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
@@ -15002,7 +15018,7 @@ function NotificationModalContent({ isOpen, setIsOpen }) {
|
|
|
15002
15018
|
batch.forEach((notification) => {
|
|
15003
15019
|
addNotification(notification);
|
|
15004
15020
|
const toastNotification = generateToastNotification(notification, t, generateUrl);
|
|
15005
|
-
|
|
15021
|
+
_chunkQIA5FOQBjs.showToast.call(void 0, toastNotification.title, {
|
|
15006
15022
|
description: toastNotification.description,
|
|
15007
15023
|
action: toastNotification.action
|
|
15008
15024
|
});
|
|
@@ -15158,7 +15174,7 @@ function useReferralInvite() {
|
|
|
15158
15174
|
setError(null);
|
|
15159
15175
|
setSuccess(false);
|
|
15160
15176
|
try {
|
|
15161
|
-
await
|
|
15177
|
+
await _chunkQIA5FOQBjs.ReferralService.sendReferralEmail(email);
|
|
15162
15178
|
setSuccess(true);
|
|
15163
15179
|
} catch (err) {
|
|
15164
15180
|
setError(err);
|
|
@@ -15181,7 +15197,7 @@ function useReferralStats() {
|
|
|
15181
15197
|
setLoading(false);
|
|
15182
15198
|
return;
|
|
15183
15199
|
}
|
|
15184
|
-
|
|
15200
|
+
_chunkQIA5FOQBjs.ReferralService.getMyReferralStats().then(setStats).catch(setError).finally(() => setLoading(false));
|
|
15185
15201
|
}, []);
|
|
15186
15202
|
return { stats, loading, error };
|
|
15187
15203
|
}
|
|
@@ -15260,26 +15276,26 @@ function ReferralWidget({
|
|
|
15260
15276
|
const success = await copyToClipboard(referralUrl);
|
|
15261
15277
|
if (success) {
|
|
15262
15278
|
setCopied(true);
|
|
15263
|
-
|
|
15279
|
+
_chunkQIA5FOQBjs.showToast.call(void 0, t.copiedMessage);
|
|
15264
15280
|
_optionalChain([onLinkCopied, 'optionalCall', _403 => _403()]);
|
|
15265
15281
|
setTimeout(() => setCopied(false), 2e3);
|
|
15266
15282
|
} else {
|
|
15267
|
-
|
|
15283
|
+
_chunkQIA5FOQBjs.showError.call(void 0, t.copyError);
|
|
15268
15284
|
}
|
|
15269
15285
|
}, [referralUrl, t.copiedMessage, t.copyError, onLinkCopied]);
|
|
15270
15286
|
const handleSendInvite = _react.useCallback.call(void 0, async () => {
|
|
15271
15287
|
if (!email || !email.includes("@")) {
|
|
15272
|
-
|
|
15288
|
+
_chunkQIA5FOQBjs.showError.call(void 0, t.invalidEmail);
|
|
15273
15289
|
return;
|
|
15274
15290
|
}
|
|
15275
15291
|
try {
|
|
15276
15292
|
await sendInvite(email);
|
|
15277
|
-
|
|
15293
|
+
_chunkQIA5FOQBjs.showToast.call(void 0, t.inviteSent);
|
|
15278
15294
|
_optionalChain([onInviteSent, 'optionalCall', _404 => _404(email)]);
|
|
15279
15295
|
setEmail("");
|
|
15280
15296
|
} catch (err) {
|
|
15281
15297
|
const error2 = err instanceof Error ? err : new Error(t.inviteError);
|
|
15282
|
-
|
|
15298
|
+
_chunkQIA5FOQBjs.showError.call(void 0, error2.message);
|
|
15283
15299
|
_optionalChain([onInviteError, 'optionalCall', _405 => _405(error2)]);
|
|
15284
15300
|
}
|
|
15285
15301
|
}, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
|
|
@@ -15467,7 +15483,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
15467
15483
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
15468
15484
|
_react.useEffect.call(void 0, () => {
|
|
15469
15485
|
async function checkCompanyAdminDeletability() {
|
|
15470
|
-
const roleUsers = await
|
|
15486
|
+
const roleUsers = await _chunkQIA5FOQBjs.UserService.findAllUsersByRole({
|
|
15471
15487
|
roleId: role.id
|
|
15472
15488
|
});
|
|
15473
15489
|
if (roleUsers.length > 1) setCanRemove(true);
|
|
@@ -15481,7 +15497,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
15481
15497
|
}, [role]);
|
|
15482
15498
|
const remove = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
15483
15499
|
try {
|
|
15484
|
-
await
|
|
15500
|
+
await _chunkQIA5FOQBjs.RoleService.removeUserFromRole({
|
|
15485
15501
|
roleId: role.id,
|
|
15486
15502
|
userId: user.id
|
|
15487
15503
|
});
|
|
@@ -15544,12 +15560,12 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
15544
15560
|
const [roles, setRoles] = _react.useState.call(void 0, []);
|
|
15545
15561
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
15546
15562
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (role) => {
|
|
15547
|
-
await
|
|
15563
|
+
await _chunkQIA5FOQBjs.RoleService.addUserToRole({
|
|
15548
15564
|
roleId: role.id,
|
|
15549
15565
|
userId: user.id
|
|
15550
15566
|
});
|
|
15551
15567
|
setRoles(roles.filter((u) => u.id !== role.id));
|
|
15552
|
-
|
|
15568
|
+
_chunkQIA5FOQBjs.showToast.call(void 0,
|
|
15553
15569
|
t(`common.association.label`, {
|
|
15554
15570
|
source: t(`entities.roles`, { count: 1 }),
|
|
15555
15571
|
destination: t(`entities.users`, { count: 1 })
|
|
@@ -15568,7 +15584,7 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
15568
15584
|
const searchRoles = _react.useCallback.call(void 0,
|
|
15569
15585
|
async (term) => {
|
|
15570
15586
|
setRoles(
|
|
15571
|
-
await
|
|
15587
|
+
await _chunkQIA5FOQBjs.RoleService.findAllRolesUserNotIn({
|
|
15572
15588
|
search: term,
|
|
15573
15589
|
userId: user.id
|
|
15574
15590
|
})
|
|
@@ -15636,16 +15652,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserRoleAdd, "UserRoleAdd");
|
|
|
15636
15652
|
function RolesList() {
|
|
15637
15653
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
15638
15654
|
const data = useDataListRetriever({
|
|
15639
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
15655
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkQIA5FOQBjs.RoleService.findAllRoles(params), "retriever"),
|
|
15640
15656
|
retrieverParams: {},
|
|
15641
|
-
module:
|
|
15657
|
+
module: _chunkQIA5FOQBjs.Modules.Role
|
|
15642
15658
|
});
|
|
15643
15659
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15644
15660
|
ContentListTable,
|
|
15645
15661
|
{
|
|
15646
15662
|
data,
|
|
15647
15663
|
fields: ["name" /* name */, "description" /* description */],
|
|
15648
|
-
tableGeneratorType:
|
|
15664
|
+
tableGeneratorType: _chunkQIA5FOQBjs.Modules.Role,
|
|
15649
15665
|
title: t(`entities.roles`, { count: 2 })
|
|
15650
15666
|
}
|
|
15651
15667
|
);
|
|
@@ -15658,16 +15674,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RolesList, "RolesList");
|
|
|
15658
15674
|
function UserRolesList({ user }) {
|
|
15659
15675
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
15660
15676
|
const data = useDataListRetriever({
|
|
15661
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
15677
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkQIA5FOQBjs.RoleService.findAllRolesByUser(params), "retriever"),
|
|
15662
15678
|
retrieverParams: { userId: user.id },
|
|
15663
|
-
module:
|
|
15679
|
+
module: _chunkQIA5FOQBjs.Modules.Role
|
|
15664
15680
|
});
|
|
15665
15681
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15666
15682
|
ContentListTable,
|
|
15667
15683
|
{
|
|
15668
15684
|
data,
|
|
15669
15685
|
fields: ["name" /* name */, "description" /* description */],
|
|
15670
|
-
tableGeneratorType:
|
|
15686
|
+
tableGeneratorType: _chunkQIA5FOQBjs.Modules.Role,
|
|
15671
15687
|
title: t(`entities.roles`, { count: 2 })
|
|
15672
15688
|
}
|
|
15673
15689
|
);
|
|
@@ -15774,7 +15790,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthRedirectUriInput, "OAuthRedirectUriInp
|
|
|
15774
15790
|
function OAuthScopeSelector({
|
|
15775
15791
|
value,
|
|
15776
15792
|
onChange,
|
|
15777
|
-
availableScopes =
|
|
15793
|
+
availableScopes = _chunkQIA5FOQBjs.AVAILABLE_OAUTH_SCOPES,
|
|
15778
15794
|
disabled = false,
|
|
15779
15795
|
error,
|
|
15780
15796
|
label = "Allowed Scopes"
|
|
@@ -16080,7 +16096,7 @@ function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
|
|
|
16080
16096
|
description: formState.description.trim() || void 0,
|
|
16081
16097
|
redirectUris: formState.redirectUris.filter((uri) => uri.trim()),
|
|
16082
16098
|
allowedScopes: formState.allowedScopes,
|
|
16083
|
-
allowedGrantTypes:
|
|
16099
|
+
allowedGrantTypes: _chunkQIA5FOQBjs.DEFAULT_GRANT_TYPES,
|
|
16084
16100
|
isConfidential: formState.isConfidential
|
|
16085
16101
|
};
|
|
16086
16102
|
await onSubmit(data);
|
|
@@ -16281,7 +16297,7 @@ function OAuthClientDetail({
|
|
|
16281
16297
|
] }),
|
|
16282
16298
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
16283
16299
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
16284
|
-
/* @__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([
|
|
16300
|
+
/* @__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([_chunkQIA5FOQBjs.OAUTH_SCOPE_DISPLAY, 'access', _413 => _413[scope], 'optionalAccess', _414 => _414.name]) || scope }, scope)) })
|
|
16285
16301
|
] }),
|
|
16286
16302
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
16287
16303
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -16631,7 +16647,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
16631
16647
|
setIsSubmitting(true);
|
|
16632
16648
|
try {
|
|
16633
16649
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
16634
|
-
await
|
|
16650
|
+
await _chunkQIA5FOQBjs.WaitlistService.submit({
|
|
16635
16651
|
id: values.id,
|
|
16636
16652
|
email: values.email,
|
|
16637
16653
|
gdprConsent: values.gdprConsent,
|
|
@@ -16752,7 +16768,7 @@ function WaitlistConfirmation({ code }) {
|
|
|
16752
16768
|
_react.useEffect.call(void 0, () => {
|
|
16753
16769
|
async function confirmEmail() {
|
|
16754
16770
|
try {
|
|
16755
|
-
await
|
|
16771
|
+
await _chunkQIA5FOQBjs.WaitlistService.confirm(code);
|
|
16756
16772
|
setState("success");
|
|
16757
16773
|
} catch (error) {
|
|
16758
16774
|
setState("error");
|
|
@@ -16893,7 +16909,7 @@ function WaitlistList() {
|
|
|
16893
16909
|
const loadEntries = _react.useCallback.call(void 0, async () => {
|
|
16894
16910
|
setIsLoading(true);
|
|
16895
16911
|
try {
|
|
16896
|
-
const result = await
|
|
16912
|
+
const result = await _chunkQIA5FOQBjs.WaitlistService.findMany({
|
|
16897
16913
|
status: statusFilter === "all" ? void 0 : statusFilter,
|
|
16898
16914
|
fetchAll: true
|
|
16899
16915
|
});
|
|
@@ -16910,8 +16926,8 @@ function WaitlistList() {
|
|
|
16910
16926
|
}, [loadEntries]);
|
|
16911
16927
|
const handleInvite = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (entry) => {
|
|
16912
16928
|
try {
|
|
16913
|
-
await
|
|
16914
|
-
|
|
16929
|
+
await _chunkQIA5FOQBjs.WaitlistService.invite(entry.id);
|
|
16930
|
+
_chunkQIA5FOQBjs.showToast.call(void 0, t("waitlist.admin.invite_sent", { email: entry.email }));
|
|
16915
16931
|
loadEntries();
|
|
16916
16932
|
} catch (error) {
|
|
16917
16933
|
errorToast({ error });
|
|
@@ -17401,5 +17417,6 @@ _chunk7QVYU63Ejs.__name.call(void 0, WaitlistList, "WaitlistList");
|
|
|
17401
17417
|
|
|
17402
17418
|
|
|
17403
17419
|
|
|
17404
|
-
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.useDebounce2 = useDebounce2; exports.MultipleSelector = MultipleSelector; 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;
|
|
17405
|
-
//# sourceMappingURL=chunk-6RE6272L.js.map
|
|
17420
|
+
|
|
17421
|
+
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.useDebounce2 = useDebounce2; exports.MultipleSelector = MultipleSelector; 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.UserAvatarList = UserAvatarList; exports.UserIndexDetails = UserIndexDetails; exports.UserStanadaloneDetails = UserStanadaloneDetails; exports.UserContainer = UserContainer; exports.UserIndexContainer = UserIndexContainer; exports.UsersListContainer = UsersListContainer; exports.AdminUsersList = AdminUsersList; exports.CompanyUsersList = CompanyUsersList; exports.ContributorsList = ContributorsList; exports.RelevantUsersList = RelevantUsersList; exports.RoleUsersList = RoleUsersList; exports.UserListInAdd = UserListInAdd; exports.UsersList = UsersList; exports.UsersListByContentIds = UsersListByContentIds; exports.AllowedUsersDetails = AllowedUsersDetails; exports.ErrorDetails = ErrorDetails; exports.errorToast = errorToast; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorHeader = CommonEditorHeader; exports.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;
|
|
17422
|
+
//# sourceMappingURL=chunk-VG6RASMY.js.map
|