@carlonicora/nextjs-jsonapi 1.36.0 → 1.36.1
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-N3J42SBY.js → BlockNoteEditor-4MDHRUS2.js} +13 -13
- package/dist/{BlockNoteEditor-N3J42SBY.js.map → BlockNoteEditor-4MDHRUS2.js.map} +1 -1
- package/dist/{BlockNoteEditor-KFUTQVUK.mjs → BlockNoteEditor-SZWO3MDO.mjs} +3 -3
- package/dist/billing/index.js +333 -333
- package/dist/billing/index.mjs +2 -2
- package/dist/{chunk-NNCTRU4O.js → chunk-53IPQJVH.js} +10 -19
- package/dist/chunk-53IPQJVH.js.map +1 -0
- package/dist/{chunk-S2RZBQP4.js → chunk-E6PQQTWF.js} +444 -465
- package/dist/chunk-E6PQQTWF.js.map +1 -0
- package/dist/{chunk-DLJTN632.mjs → chunk-I7DFEJFF.mjs} +3 -24
- package/dist/chunk-I7DFEJFF.mjs.map +1 -0
- package/dist/{chunk-YZV24UWN.mjs → chunk-P7R2DPD6.mjs} +10 -19
- package/dist/{chunk-YZV24UWN.mjs.map → chunk-P7R2DPD6.mjs.map} +1 -1
- package/dist/client/index.js +3 -3
- package/dist/client/index.mjs +2 -2
- package/dist/components/index.js +3 -3
- package/dist/components/index.mjs +2 -2
- package/dist/contexts/index.js +3 -3
- package/dist/contexts/index.mjs +2 -2
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
- package/src/features/company/components/forms/CompanyDeleter.tsx +0 -23
- package/src/features/company/data/company.service.ts +9 -20
- package/dist/chunk-DLJTN632.mjs.map +0 -1
- package/dist/chunk-NNCTRU4O.js.map +0 -1
- package/dist/chunk-S2RZBQP4.js.map +0 -1
- /package/dist/{BlockNoteEditor-KFUTQVUK.mjs.map → BlockNoteEditor-SZWO3MDO.mjs.map} +0 -0
|
@@ -41,7 +41,7 @@ var _chunk2PHWAL6Qjs = require('./chunk-2PHWAL6Q.js');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunk53IPQJVHjs = require('./chunk-53IPQJVH.js');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
var _chunk3EPNHTMHjs = require('./chunk-3EPNHTMH.js');
|
|
@@ -188,7 +188,7 @@ function useDataListRetriever(params) {
|
|
|
188
188
|
const isFetchingRef = _react.useRef.call(void 0, false);
|
|
189
189
|
const isPaginatingRef = _react.useRef.call(void 0, false);
|
|
190
190
|
const resolvedType = params.module;
|
|
191
|
-
const resolvedService =
|
|
191
|
+
const resolvedService = _chunk53IPQJVHjs.ClientAbstractService;
|
|
192
192
|
const parsePageParams = _react.useCallback.call(void 0, (url) => {
|
|
193
193
|
if (!url) return null;
|
|
194
194
|
try {
|
|
@@ -307,7 +307,7 @@ function useDataListRetriever(params) {
|
|
|
307
307
|
setIsLoaded(true);
|
|
308
308
|
setNextPage(nextRef.next ? nextRef.next : void 0);
|
|
309
309
|
setPreviousPage(previousRef.previous ? previousRef.previous : void 0);
|
|
310
|
-
const apiTotal = _nullishCoalesce(totalRef.total, () => (
|
|
310
|
+
const apiTotal = _nullishCoalesce(totalRef.total, () => ( _chunk53IPQJVHjs.getLastApiTotal.call(void 0, )));
|
|
311
311
|
if (apiTotal !== void 0) {
|
|
312
312
|
setTotal(apiTotal);
|
|
313
313
|
}
|
|
@@ -952,20 +952,20 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
952
952
|
if (!token && dehydratedUser) setDehydratedUser(null);
|
|
953
953
|
}, [dehydratedUser, setDehydratedUser]);
|
|
954
954
|
const matchUrlToModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
955
|
-
const moduleKeys = Object.getOwnPropertyNames(
|
|
955
|
+
const moduleKeys = Object.getOwnPropertyNames(_chunk53IPQJVHjs.Modules).filter(
|
|
956
956
|
(key) => key !== "prototype" && key !== "_factory" && key !== "length" && key !== "name"
|
|
957
957
|
);
|
|
958
958
|
const matchedModuleKey = moduleKeys.find((key) => {
|
|
959
|
-
const descriptor2 = Object.getOwnPropertyDescriptor(
|
|
959
|
+
const descriptor2 = Object.getOwnPropertyDescriptor(_chunk53IPQJVHjs.Modules, key);
|
|
960
960
|
if (!_optionalChain([descriptor2, 'optionalAccess', _29 => _29.get])) return false;
|
|
961
|
-
const selectedModule = descriptor2.get.call(
|
|
961
|
+
const selectedModule = descriptor2.get.call(_chunk53IPQJVHjs.Modules);
|
|
962
962
|
return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _30 => _30.pageUrl, 'optionalAccess', _31 => _31.toLowerCase, 'call', _32 => _32()]));
|
|
963
963
|
});
|
|
964
964
|
if (!matchedModuleKey) return void 0;
|
|
965
|
-
const descriptor = Object.getOwnPropertyDescriptor(
|
|
966
|
-
return _optionalChain([descriptor, 'optionalAccess', _33 => _33.get, 'optionalAccess', _34 => _34.call, 'call', _35 => _35(
|
|
965
|
+
const descriptor = Object.getOwnPropertyDescriptor(_chunk53IPQJVHjs.Modules, matchedModuleKey);
|
|
966
|
+
return _optionalChain([descriptor, 'optionalAccess', _33 => _33.get, 'optionalAccess', _34 => _34.call, 'call', _35 => _35(_chunk53IPQJVHjs.Modules)]);
|
|
967
967
|
}, "matchUrlToModule");
|
|
968
|
-
const currentUser = dehydratedUser ?
|
|
968
|
+
const currentUser = dehydratedUser ? _chunk53IPQJVHjs.rehydrate.call(void 0, _chunk53IPQJVHjs.Modules.User, dehydratedUser) : null;
|
|
969
969
|
const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _36 => _36.company]), () => ( null));
|
|
970
970
|
const setUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (user) => {
|
|
971
971
|
if (user) setDehydratedUser(user.dehydrate());
|
|
@@ -983,14 +983,14 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
983
983
|
function hasPermissionToModule(params) {
|
|
984
984
|
if (!currentUser) return false;
|
|
985
985
|
if (!!params.module.feature && !hasAccesToFeature(params.module.feature)) return false;
|
|
986
|
-
return
|
|
986
|
+
return _chunk53IPQJVHjs.checkPermissions.call(void 0, { module: params.module, action: params.action, data: params.data, user: currentUser });
|
|
987
987
|
}
|
|
988
988
|
_chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModule, "hasPermissionToModule");
|
|
989
989
|
function hasPermissionToModules(params) {
|
|
990
990
|
if (!currentUser) return false;
|
|
991
991
|
if (!params.modules.every((module) => !module.feature || hasAccesToFeature(module.feature))) return false;
|
|
992
992
|
return params.modules.every(
|
|
993
|
-
(module) =>
|
|
993
|
+
(module) => _chunk53IPQJVHjs.checkPermissions.call(void 0, { module, action: params.action, data: params.data, user: currentUser })
|
|
994
994
|
);
|
|
995
995
|
}
|
|
996
996
|
_chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModules, "hasPermissionToModules");
|
|
@@ -1010,13 +1010,13 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
1010
1010
|
}
|
|
1011
1011
|
setIsRefreshing(true);
|
|
1012
1012
|
try {
|
|
1013
|
-
const fullUser = await
|
|
1013
|
+
const fullUser = await _chunk53IPQJVHjs.UserService.findFullUser();
|
|
1014
1014
|
if (fullUser) {
|
|
1015
1015
|
const dehydrated = fullUser.dehydrate();
|
|
1016
1016
|
setDehydratedUser(dehydrated);
|
|
1017
1017
|
setUser(fullUser);
|
|
1018
1018
|
if (!_optionalChain([options, 'optionalAccess', _40 => _40.skipCookieUpdate])) {
|
|
1019
|
-
await _optionalChain([
|
|
1019
|
+
await _optionalChain([_chunk53IPQJVHjs.getTokenHandler.call(void 0, ), 'optionalAccess', _41 => _41.updateToken, 'call', _42 => _42({
|
|
1020
1020
|
userId: fullUser.id,
|
|
1021
1021
|
companyId: _optionalChain([fullUser, 'access', _43 => _43.company, 'optionalAccess', _44 => _44.id]),
|
|
1022
1022
|
roles: fullUser.roles.map((role) => role.id),
|
|
@@ -1102,7 +1102,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
1102
1102
|
const [existingUsers, setExistingUsers] = _react.useState.call(void 0, null);
|
|
1103
1103
|
_react.useEffect.call(void 0, () => {
|
|
1104
1104
|
const fetchExistingUsers = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
1105
|
-
setExistingUsers(await
|
|
1105
|
+
setExistingUsers(await _chunk53IPQJVHjs.UserService.findMany({ roleId: role.id, fetchAll: true }));
|
|
1106
1106
|
}, "fetchExistingUsers");
|
|
1107
1107
|
if (show) {
|
|
1108
1108
|
setExistingUsers(null);
|
|
@@ -1110,7 +1110,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
1110
1110
|
}
|
|
1111
1111
|
}, [show]);
|
|
1112
1112
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (user) => {
|
|
1113
|
-
await
|
|
1113
|
+
await _chunk53IPQJVHjs.RoleService.addUserToRole({
|
|
1114
1114
|
roleId: role.id,
|
|
1115
1115
|
userId: user.id
|
|
1116
1116
|
});
|
|
@@ -1126,9 +1126,9 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
1126
1126
|
}, "addUserToRole");
|
|
1127
1127
|
const data = useDataListRetriever({
|
|
1128
1128
|
ready: !!company && show,
|
|
1129
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
1129
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk53IPQJVHjs.UserService.findAllUsers(params), "retriever"),
|
|
1130
1130
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _55 => _55.id]) },
|
|
1131
|
-
module:
|
|
1131
|
+
module: _chunk53IPQJVHjs.Modules.User
|
|
1132
1132
|
});
|
|
1133
1133
|
_react.useEffect.call(void 0, () => {
|
|
1134
1134
|
if (!!company && show) {
|
|
@@ -1179,7 +1179,7 @@ function Accordion({ className, ...props }) {
|
|
|
1179
1179
|
_accordion.Accordion.Root,
|
|
1180
1180
|
{
|
|
1181
1181
|
"data-slot": "accordion",
|
|
1182
|
-
className:
|
|
1182
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "overflow-hidden rounded-md border flex w-full flex-col", className),
|
|
1183
1183
|
...props
|
|
1184
1184
|
}
|
|
1185
1185
|
);
|
|
@@ -1190,7 +1190,7 @@ function AccordionItem({ className, ...props }) {
|
|
|
1190
1190
|
_accordion.Accordion.Item,
|
|
1191
1191
|
{
|
|
1192
1192
|
"data-slot": "accordion-item",
|
|
1193
|
-
className:
|
|
1193
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "data-open:bg-muted/50 not-last:border-b", className),
|
|
1194
1194
|
...props
|
|
1195
1195
|
}
|
|
1196
1196
|
);
|
|
@@ -1205,7 +1205,7 @@ function AccordionTrigger({
|
|
|
1205
1205
|
_accordion.Accordion.Trigger,
|
|
1206
1206
|
{
|
|
1207
1207
|
"data-slot": "accordion-trigger",
|
|
1208
|
-
className:
|
|
1208
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1209
1209
|
"**: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",
|
|
1210
1210
|
className
|
|
1211
1211
|
),
|
|
@@ -1233,7 +1233,7 @@ function AccordionContent({
|
|
|
1233
1233
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1234
1234
|
"div",
|
|
1235
1235
|
{
|
|
1236
|
-
className:
|
|
1236
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1237
1237
|
"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",
|
|
1238
1238
|
className
|
|
1239
1239
|
),
|
|
@@ -1269,7 +1269,7 @@ function Alert({
|
|
|
1269
1269
|
{
|
|
1270
1270
|
"data-slot": "alert",
|
|
1271
1271
|
role: "alert",
|
|
1272
|
-
className:
|
|
1272
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, alertVariants({ variant }), className),
|
|
1273
1273
|
...props
|
|
1274
1274
|
}
|
|
1275
1275
|
);
|
|
@@ -1280,7 +1280,7 @@ function AlertTitle({ className, ...props }) {
|
|
|
1280
1280
|
"div",
|
|
1281
1281
|
{
|
|
1282
1282
|
"data-slot": "alert-title",
|
|
1283
|
-
className:
|
|
1283
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1284
1284
|
"font-medium group-has-[>svg]/alert:col-start-2 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3",
|
|
1285
1285
|
className
|
|
1286
1286
|
),
|
|
@@ -1297,7 +1297,7 @@ function AlertDescription({
|
|
|
1297
1297
|
"div",
|
|
1298
1298
|
{
|
|
1299
1299
|
"data-slot": "alert-description",
|
|
1300
|
-
className:
|
|
1300
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1301
1301
|
"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",
|
|
1302
1302
|
className
|
|
1303
1303
|
),
|
|
@@ -1311,7 +1311,7 @@ function AlertAction({ className, ...props }) {
|
|
|
1311
1311
|
"div",
|
|
1312
1312
|
{
|
|
1313
1313
|
"data-slot": "alert-action",
|
|
1314
|
-
className:
|
|
1314
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "absolute top-1.5 right-2", className),
|
|
1315
1315
|
...props
|
|
1316
1316
|
}
|
|
1317
1317
|
);
|
|
@@ -1364,7 +1364,7 @@ function Button({
|
|
|
1364
1364
|
_button.Button,
|
|
1365
1365
|
{
|
|
1366
1366
|
"data-slot": "button",
|
|
1367
|
-
className:
|
|
1367
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, buttonVariants({ variant, size, className })),
|
|
1368
1368
|
...props
|
|
1369
1369
|
}
|
|
1370
1370
|
);
|
|
@@ -1393,7 +1393,7 @@ function AlertDialogOverlay({
|
|
|
1393
1393
|
_alertdialog.AlertDialog.Backdrop,
|
|
1394
1394
|
{
|
|
1395
1395
|
"data-slot": "alert-dialog-overlay",
|
|
1396
|
-
className:
|
|
1396
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1397
1397
|
"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",
|
|
1398
1398
|
className
|
|
1399
1399
|
),
|
|
@@ -1414,7 +1414,7 @@ function AlertDialogContent({
|
|
|
1414
1414
|
{
|
|
1415
1415
|
"data-slot": "alert-dialog-content",
|
|
1416
1416
|
"data-size": size,
|
|
1417
|
-
className:
|
|
1417
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1418
1418
|
"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",
|
|
1419
1419
|
className
|
|
1420
1420
|
),
|
|
@@ -1432,7 +1432,7 @@ function AlertDialogHeader({
|
|
|
1432
1432
|
"div",
|
|
1433
1433
|
{
|
|
1434
1434
|
"data-slot": "alert-dialog-header",
|
|
1435
|
-
className:
|
|
1435
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "grid grid-rows-[auto_1fr] place-items-center gap-1 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", className),
|
|
1436
1436
|
...props
|
|
1437
1437
|
}
|
|
1438
1438
|
);
|
|
@@ -1446,7 +1446,7 @@ function AlertDialogFooter({
|
|
|
1446
1446
|
"div",
|
|
1447
1447
|
{
|
|
1448
1448
|
"data-slot": "alert-dialog-footer",
|
|
1449
|
-
className:
|
|
1449
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1450
1450
|
"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",
|
|
1451
1451
|
className
|
|
1452
1452
|
),
|
|
@@ -1463,7 +1463,7 @@ function AlertDialogMedia({
|
|
|
1463
1463
|
"div",
|
|
1464
1464
|
{
|
|
1465
1465
|
"data-slot": "alert-dialog-media",
|
|
1466
|
-
className:
|
|
1466
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "bg-muted mb-2 inline-flex size-8 items-center justify-center rounded-md sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-4", className),
|
|
1467
1467
|
...props
|
|
1468
1468
|
}
|
|
1469
1469
|
);
|
|
@@ -1477,7 +1477,7 @@ function AlertDialogTitle({
|
|
|
1477
1477
|
_alertdialog.AlertDialog.Title,
|
|
1478
1478
|
{
|
|
1479
1479
|
"data-slot": "alert-dialog-title",
|
|
1480
|
-
className:
|
|
1480
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", className),
|
|
1481
1481
|
...props
|
|
1482
1482
|
}
|
|
1483
1483
|
);
|
|
@@ -1491,7 +1491,7 @@ function AlertDialogDescription({
|
|
|
1491
1491
|
_alertdialog.AlertDialog.Description,
|
|
1492
1492
|
{
|
|
1493
1493
|
"data-slot": "alert-dialog-description",
|
|
1494
|
-
className:
|
|
1494
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3", className),
|
|
1495
1495
|
...props
|
|
1496
1496
|
}
|
|
1497
1497
|
);
|
|
@@ -1505,7 +1505,7 @@ function AlertDialogAction({
|
|
|
1505
1505
|
Button,
|
|
1506
1506
|
{
|
|
1507
1507
|
"data-slot": "alert-dialog-action",
|
|
1508
|
-
className:
|
|
1508
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, className),
|
|
1509
1509
|
...props
|
|
1510
1510
|
}
|
|
1511
1511
|
);
|
|
@@ -1521,7 +1521,7 @@ function AlertDialogCancel({
|
|
|
1521
1521
|
_alertdialog.AlertDialog.Close,
|
|
1522
1522
|
{
|
|
1523
1523
|
"data-slot": "alert-dialog-cancel",
|
|
1524
|
-
className:
|
|
1524
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, className),
|
|
1525
1525
|
render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant, size }),
|
|
1526
1526
|
...props
|
|
1527
1527
|
}
|
|
@@ -1542,7 +1542,7 @@ function Avatar({
|
|
|
1542
1542
|
{
|
|
1543
1543
|
"data-slot": "avatar",
|
|
1544
1544
|
"data-size": size,
|
|
1545
|
-
className:
|
|
1545
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1546
1546
|
"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",
|
|
1547
1547
|
className
|
|
1548
1548
|
),
|
|
@@ -1556,7 +1556,7 @@ function AvatarImage({ className, ...props }) {
|
|
|
1556
1556
|
_avatar.Avatar.Image,
|
|
1557
1557
|
{
|
|
1558
1558
|
"data-slot": "avatar-image",
|
|
1559
|
-
className:
|
|
1559
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1560
1560
|
"rounded-full aspect-square size-full object-cover",
|
|
1561
1561
|
className
|
|
1562
1562
|
),
|
|
@@ -1573,7 +1573,7 @@ function AvatarFallback({
|
|
|
1573
1573
|
_avatar.Avatar.Fallback,
|
|
1574
1574
|
{
|
|
1575
1575
|
"data-slot": "avatar-fallback",
|
|
1576
|
-
className:
|
|
1576
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1577
1577
|
"bg-muted text-muted-foreground rounded-full flex size-full items-center justify-center text-sm group-data-[size=sm]/avatar:text-xs",
|
|
1578
1578
|
className
|
|
1579
1579
|
),
|
|
@@ -1587,7 +1587,7 @@ function AvatarBadge({ className, ...props }) {
|
|
|
1587
1587
|
"span",
|
|
1588
1588
|
{
|
|
1589
1589
|
"data-slot": "avatar-badge",
|
|
1590
|
-
className:
|
|
1590
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1591
1591
|
"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",
|
|
1592
1592
|
"group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden",
|
|
1593
1593
|
"group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2",
|
|
@@ -1604,7 +1604,7 @@ function AvatarGroup({ className, ...props }) {
|
|
|
1604
1604
|
"div",
|
|
1605
1605
|
{
|
|
1606
1606
|
"data-slot": "avatar-group",
|
|
1607
|
-
className:
|
|
1607
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1608
1608
|
"*:data-[slot=avatar]:ring-background group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2",
|
|
1609
1609
|
className
|
|
1610
1610
|
),
|
|
@@ -1621,7 +1621,7 @@ function AvatarGroupCount({
|
|
|
1621
1621
|
"div",
|
|
1622
1622
|
{
|
|
1623
1623
|
"data-slot": "avatar-group-count",
|
|
1624
|
-
className:
|
|
1624
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "bg-muted text-muted-foreground size-8 rounded-full text-xs/relaxed group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3 ring-background relative flex shrink-0 items-center justify-center ring-2", className),
|
|
1625
1625
|
...props
|
|
1626
1626
|
}
|
|
1627
1627
|
);
|
|
@@ -1660,7 +1660,7 @@ function Badge({
|
|
|
1660
1660
|
defaultTagName: "span",
|
|
1661
1661
|
props: _mergeprops.mergeProps.call(void 0,
|
|
1662
1662
|
{
|
|
1663
|
-
className:
|
|
1663
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, badgeVariants({ className, variant }))
|
|
1664
1664
|
},
|
|
1665
1665
|
props
|
|
1666
1666
|
),
|
|
@@ -1684,7 +1684,7 @@ function Breadcrumb({ className, ...props }) {
|
|
|
1684
1684
|
{
|
|
1685
1685
|
"aria-label": "breadcrumb",
|
|
1686
1686
|
"data-slot": "breadcrumb",
|
|
1687
|
-
className:
|
|
1687
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, className),
|
|
1688
1688
|
...props
|
|
1689
1689
|
}
|
|
1690
1690
|
);
|
|
@@ -1695,7 +1695,7 @@ function BreadcrumbList({ className, ...props }) {
|
|
|
1695
1695
|
"ol",
|
|
1696
1696
|
{
|
|
1697
1697
|
"data-slot": "breadcrumb-list",
|
|
1698
|
-
className:
|
|
1698
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1699
1699
|
"text-muted-foreground gap-1.5 text-xs/relaxed flex flex-wrap items-center break-words",
|
|
1700
1700
|
className
|
|
1701
1701
|
),
|
|
@@ -1709,7 +1709,7 @@ function BreadcrumbItem({ className, ...props }) {
|
|
|
1709
1709
|
"li",
|
|
1710
1710
|
{
|
|
1711
1711
|
"data-slot": "breadcrumb-item",
|
|
1712
|
-
className:
|
|
1712
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "gap-1 inline-flex items-center", className),
|
|
1713
1713
|
...props
|
|
1714
1714
|
}
|
|
1715
1715
|
);
|
|
@@ -1724,7 +1724,7 @@ function BreadcrumbLink({
|
|
|
1724
1724
|
defaultTagName: "a",
|
|
1725
1725
|
props: _mergeprops.mergeProps.call(void 0,
|
|
1726
1726
|
{
|
|
1727
|
-
className:
|
|
1727
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "hover:text-foreground transition-colors", className)
|
|
1728
1728
|
},
|
|
1729
1729
|
props
|
|
1730
1730
|
),
|
|
@@ -1743,7 +1743,7 @@ function BreadcrumbPage({ className, ...props }) {
|
|
|
1743
1743
|
role: "link",
|
|
1744
1744
|
"aria-disabled": "true",
|
|
1745
1745
|
"aria-current": "page",
|
|
1746
|
-
className:
|
|
1746
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "text-foreground font-normal", className),
|
|
1747
1747
|
...props
|
|
1748
1748
|
}
|
|
1749
1749
|
);
|
|
@@ -1760,7 +1760,7 @@ function BreadcrumbSeparator({
|
|
|
1760
1760
|
"data-slot": "breadcrumb-separator",
|
|
1761
1761
|
role: "presentation",
|
|
1762
1762
|
"aria-hidden": "true",
|
|
1763
|
-
className:
|
|
1763
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "[&>svg]:size-3.5", className),
|
|
1764
1764
|
...props,
|
|
1765
1765
|
children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1766
1766
|
_lucidereact.ChevronRightIcon,
|
|
@@ -1780,7 +1780,7 @@ function BreadcrumbEllipsis({
|
|
|
1780
1780
|
"data-slot": "breadcrumb-ellipsis",
|
|
1781
1781
|
role: "presentation",
|
|
1782
1782
|
"aria-hidden": "true",
|
|
1783
|
-
className:
|
|
1783
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1784
1784
|
"size-4 [&>svg]:size-3.5 flex items-center justify-center",
|
|
1785
1785
|
className
|
|
1786
1786
|
),
|
|
@@ -1820,7 +1820,7 @@ function Calendar({
|
|
|
1820
1820
|
_reactdaypicker.DayPicker,
|
|
1821
1821
|
{
|
|
1822
1822
|
showOutsideDays,
|
|
1823
|
-
className:
|
|
1823
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1824
1824
|
"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",
|
|
1825
1825
|
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
1826
1826
|
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
@@ -1832,89 +1832,89 @@ function Calendar({
|
|
|
1832
1832
|
...formatters
|
|
1833
1833
|
},
|
|
1834
1834
|
classNames: {
|
|
1835
|
-
root:
|
|
1836
|
-
months:
|
|
1835
|
+
root: _chunk53IPQJVHjs.cn.call(void 0, "w-fit", defaultClassNames.root),
|
|
1836
|
+
months: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1837
1837
|
"flex gap-4 flex-col md:flex-row relative",
|
|
1838
1838
|
defaultClassNames.months
|
|
1839
1839
|
),
|
|
1840
|
-
month:
|
|
1841
|
-
nav:
|
|
1840
|
+
month: _chunk53IPQJVHjs.cn.call(void 0, "flex flex-col w-full gap-4", defaultClassNames.month),
|
|
1841
|
+
nav: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1842
1842
|
"flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
|
|
1843
1843
|
defaultClassNames.nav
|
|
1844
1844
|
),
|
|
1845
|
-
button_previous:
|
|
1845
|
+
button_previous: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1846
1846
|
buttonVariants({ variant: buttonVariant }),
|
|
1847
1847
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
1848
1848
|
defaultClassNames.button_previous
|
|
1849
1849
|
),
|
|
1850
|
-
button_next:
|
|
1850
|
+
button_next: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1851
1851
|
buttonVariants({ variant: buttonVariant }),
|
|
1852
1852
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
1853
1853
|
defaultClassNames.button_next
|
|
1854
1854
|
),
|
|
1855
|
-
month_caption:
|
|
1855
|
+
month_caption: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1856
1856
|
"flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
|
|
1857
1857
|
defaultClassNames.month_caption
|
|
1858
1858
|
),
|
|
1859
|
-
dropdowns:
|
|
1859
|
+
dropdowns: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1860
1860
|
"w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
|
|
1861
1861
|
defaultClassNames.dropdowns
|
|
1862
1862
|
),
|
|
1863
|
-
dropdown_root:
|
|
1863
|
+
dropdown_root: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1864
1864
|
"relative cn-calendar-dropdown-root rounded-(--cell-radius)",
|
|
1865
1865
|
defaultClassNames.dropdown_root
|
|
1866
1866
|
),
|
|
1867
|
-
dropdown:
|
|
1867
|
+
dropdown: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1868
1868
|
"absolute bg-popover inset-0 opacity-0",
|
|
1869
1869
|
defaultClassNames.dropdown
|
|
1870
1870
|
),
|
|
1871
|
-
caption_label:
|
|
1871
|
+
caption_label: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1872
1872
|
"select-none font-medium",
|
|
1873
1873
|
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",
|
|
1874
1874
|
defaultClassNames.caption_label
|
|
1875
1875
|
),
|
|
1876
1876
|
table: "w-full border-collapse",
|
|
1877
|
-
weekdays:
|
|
1878
|
-
weekday:
|
|
1877
|
+
weekdays: _chunk53IPQJVHjs.cn.call(void 0, "flex", defaultClassNames.weekdays),
|
|
1878
|
+
weekday: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1879
1879
|
"text-muted-foreground rounded-(--cell-radius) flex-1 font-normal text-[0.8rem] select-none",
|
|
1880
1880
|
defaultClassNames.weekday
|
|
1881
1881
|
),
|
|
1882
|
-
week:
|
|
1883
|
-
week_number_header:
|
|
1882
|
+
week: _chunk53IPQJVHjs.cn.call(void 0, "flex w-full mt-2", defaultClassNames.week),
|
|
1883
|
+
week_number_header: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1884
1884
|
"select-none w-(--cell-size)",
|
|
1885
1885
|
defaultClassNames.week_number_header
|
|
1886
1886
|
),
|
|
1887
|
-
week_number:
|
|
1887
|
+
week_number: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1888
1888
|
"text-[0.8rem] select-none text-muted-foreground",
|
|
1889
1889
|
defaultClassNames.week_number
|
|
1890
1890
|
),
|
|
1891
|
-
day:
|
|
1891
|
+
day: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1892
1892
|
"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",
|
|
1893
1893
|
props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)" : "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)",
|
|
1894
1894
|
defaultClassNames.day
|
|
1895
1895
|
),
|
|
1896
|
-
range_start:
|
|
1896
|
+
range_start: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1897
1897
|
"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",
|
|
1898
1898
|
defaultClassNames.range_start
|
|
1899
1899
|
),
|
|
1900
|
-
range_middle:
|
|
1901
|
-
range_end:
|
|
1900
|
+
range_middle: _chunk53IPQJVHjs.cn.call(void 0, "rounded-none", defaultClassNames.range_middle),
|
|
1901
|
+
range_end: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1902
1902
|
"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",
|
|
1903
1903
|
defaultClassNames.range_end
|
|
1904
1904
|
),
|
|
1905
|
-
today:
|
|
1905
|
+
today: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1906
1906
|
"bg-muted text-foreground rounded-(--cell-radius) data-[selected=true]:rounded-none",
|
|
1907
1907
|
defaultClassNames.today
|
|
1908
1908
|
),
|
|
1909
|
-
outside:
|
|
1909
|
+
outside: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1910
1910
|
"text-muted-foreground aria-selected:text-muted-foreground",
|
|
1911
1911
|
defaultClassNames.outside
|
|
1912
1912
|
),
|
|
1913
|
-
disabled:
|
|
1913
|
+
disabled: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1914
1914
|
"text-muted-foreground opacity-50",
|
|
1915
1915
|
defaultClassNames.disabled
|
|
1916
1916
|
),
|
|
1917
|
-
hidden:
|
|
1917
|
+
hidden: _chunk53IPQJVHjs.cn.call(void 0, "invisible", defaultClassNames.hidden),
|
|
1918
1918
|
...classNames
|
|
1919
1919
|
},
|
|
1920
1920
|
components: {
|
|
@@ -1924,19 +1924,19 @@ function Calendar({
|
|
|
1924
1924
|
{
|
|
1925
1925
|
"data-slot": "calendar",
|
|
1926
1926
|
ref: rootRef,
|
|
1927
|
-
className:
|
|
1927
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, className2),
|
|
1928
1928
|
...props2
|
|
1929
1929
|
}
|
|
1930
1930
|
);
|
|
1931
1931
|
}, "Root"),
|
|
1932
1932
|
Chevron: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className: className2, orientation, ...props2 }) => {
|
|
1933
1933
|
if (orientation === "left") {
|
|
1934
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeftIcon, { className:
|
|
1934
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeftIcon, { className: _chunk53IPQJVHjs.cn.call(void 0, "size-4", className2), ...props2 });
|
|
1935
1935
|
}
|
|
1936
1936
|
if (orientation === "right") {
|
|
1937
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className:
|
|
1937
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className: _chunk53IPQJVHjs.cn.call(void 0, "size-4", className2), ...props2 });
|
|
1938
1938
|
}
|
|
1939
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className:
|
|
1939
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: _chunk53IPQJVHjs.cn.call(void 0, "size-4", className2), ...props2 });
|
|
1940
1940
|
}, "Chevron"),
|
|
1941
1941
|
DayButton: CalendarDayButton,
|
|
1942
1942
|
WeekNumber: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ children, ...props2 }) => {
|
|
@@ -1970,7 +1970,7 @@ function CalendarDayButton({
|
|
|
1970
1970
|
"data-range-start": modifiers.range_start,
|
|
1971
1971
|
"data-range-end": modifiers.range_end,
|
|
1972
1972
|
"data-range-middle": modifiers.range_middle,
|
|
1973
|
-
className:
|
|
1973
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1974
1974
|
"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",
|
|
1975
1975
|
defaultClassNames.day,
|
|
1976
1976
|
className
|
|
@@ -1989,7 +1989,7 @@ function Card({ className, size = "default", ...props }) {
|
|
|
1989
1989
|
{
|
|
1990
1990
|
"data-slot": "card",
|
|
1991
1991
|
"data-size": size,
|
|
1992
|
-
className:
|
|
1992
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
1993
1993
|
"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",
|
|
1994
1994
|
className
|
|
1995
1995
|
),
|
|
@@ -2003,7 +2003,7 @@ function CardHeader({ className, ...props }) {
|
|
|
2003
2003
|
"div",
|
|
2004
2004
|
{
|
|
2005
2005
|
"data-slot": "card-header",
|
|
2006
|
-
className:
|
|
2006
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2007
2007
|
"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]",
|
|
2008
2008
|
className
|
|
2009
2009
|
),
|
|
@@ -2013,11 +2013,11 @@ function CardHeader({ className, ...props }) {
|
|
|
2013
2013
|
}
|
|
2014
2014
|
_chunk7QVYU63Ejs.__name.call(void 0, CardHeader, "CardHeader");
|
|
2015
2015
|
function CardTitle({ className, ...props }) {
|
|
2016
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-title", className:
|
|
2016
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-title", className: _chunk53IPQJVHjs.cn.call(void 0, "text-sm font-medium", className), ...props });
|
|
2017
2017
|
}
|
|
2018
2018
|
_chunk7QVYU63Ejs.__name.call(void 0, CardTitle, "CardTitle");
|
|
2019
2019
|
function CardDescription({ className, ...props }) {
|
|
2020
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-description", className:
|
|
2020
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-description", className: _chunk53IPQJVHjs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className), ...props });
|
|
2021
2021
|
}
|
|
2022
2022
|
_chunk7QVYU63Ejs.__name.call(void 0, CardDescription, "CardDescription");
|
|
2023
2023
|
function CardAction({ className, ...props }) {
|
|
@@ -2025,14 +2025,14 @@ function CardAction({ className, ...props }) {
|
|
|
2025
2025
|
"div",
|
|
2026
2026
|
{
|
|
2027
2027
|
"data-slot": "card-action",
|
|
2028
|
-
className:
|
|
2028
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
|
|
2029
2029
|
...props
|
|
2030
2030
|
}
|
|
2031
2031
|
);
|
|
2032
2032
|
}
|
|
2033
2033
|
_chunk7QVYU63Ejs.__name.call(void 0, CardAction, "CardAction");
|
|
2034
2034
|
function CardContent({ className, ...props }) {
|
|
2035
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-content", className:
|
|
2035
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-content", className: _chunk53IPQJVHjs.cn.call(void 0, "px-4 group-data-[size=sm]/card:px-3", className), ...props });
|
|
2036
2036
|
}
|
|
2037
2037
|
_chunk7QVYU63Ejs.__name.call(void 0, CardContent, "CardContent");
|
|
2038
2038
|
function CardFooter({ className, ...props }) {
|
|
@@ -2040,7 +2040,7 @@ function CardFooter({ className, ...props }) {
|
|
|
2040
2040
|
"div",
|
|
2041
2041
|
{
|
|
2042
2042
|
"data-slot": "card-footer",
|
|
2043
|
-
className:
|
|
2043
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2044
2044
|
"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",
|
|
2045
2045
|
className
|
|
2046
2046
|
),
|
|
@@ -2135,7 +2135,7 @@ function Carousel({
|
|
|
2135
2135
|
"div",
|
|
2136
2136
|
{
|
|
2137
2137
|
onKeyDownCapture: handleKeyDown,
|
|
2138
|
-
className:
|
|
2138
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "relative", className),
|
|
2139
2139
|
role: "region",
|
|
2140
2140
|
"aria-roledescription": "carousel",
|
|
2141
2141
|
"data-slot": "carousel",
|
|
@@ -2158,7 +2158,7 @@ function CarouselContent({ className, ...props }) {
|
|
|
2158
2158
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2159
2159
|
"div",
|
|
2160
2160
|
{
|
|
2161
|
-
className:
|
|
2161
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2162
2162
|
"flex",
|
|
2163
2163
|
orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
|
|
2164
2164
|
className
|
|
@@ -2178,7 +2178,7 @@ function CarouselItem({ className, ...props }) {
|
|
|
2178
2178
|
role: "group",
|
|
2179
2179
|
"aria-roledescription": "slide",
|
|
2180
2180
|
"data-slot": "carousel-item",
|
|
2181
|
-
className:
|
|
2181
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2182
2182
|
"min-w-0 shrink-0 grow-0 basis-full",
|
|
2183
2183
|
orientation === "horizontal" ? "pl-4" : "pt-4",
|
|
2184
2184
|
className
|
|
@@ -2201,7 +2201,7 @@ function CarouselPrevious({
|
|
|
2201
2201
|
"data-slot": "carousel-previous",
|
|
2202
2202
|
variant,
|
|
2203
2203
|
size,
|
|
2204
|
-
className:
|
|
2204
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2205
2205
|
"rounded-full absolute touch-manipulation",
|
|
2206
2206
|
orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
2207
2207
|
className
|
|
@@ -2233,7 +2233,7 @@ function CarouselNext({
|
|
|
2233
2233
|
"data-slot": "carousel-next",
|
|
2234
2234
|
variant,
|
|
2235
2235
|
size,
|
|
2236
|
-
className:
|
|
2236
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2237
2237
|
"rounded-full absolute touch-manipulation",
|
|
2238
2238
|
orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
2239
2239
|
className
|
|
@@ -2281,7 +2281,7 @@ function ChartContainer({
|
|
|
2281
2281
|
{
|
|
2282
2282
|
"data-slot": "chart",
|
|
2283
2283
|
"data-chart": chartId,
|
|
2284
|
-
className:
|
|
2284
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2285
2285
|
"[&_.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",
|
|
2286
2286
|
className
|
|
2287
2287
|
),
|
|
@@ -2345,12 +2345,12 @@ function ChartTooltipContent({
|
|
|
2345
2345
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
2346
2346
|
const value = !labelKey && typeof label === "string" ? _optionalChain([config, 'access', _71 => _71[label], 'optionalAccess', _72 => _72.label]) || label : _optionalChain([itemConfig, 'optionalAccess', _73 => _73.label]);
|
|
2347
2347
|
if (labelFormatter) {
|
|
2348
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2348
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk53IPQJVHjs.cn.call(void 0, "font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
2349
2349
|
}
|
|
2350
2350
|
if (!value) {
|
|
2351
2351
|
return null;
|
|
2352
2352
|
}
|
|
2353
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2353
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk53IPQJVHjs.cn.call(void 0, "font-medium", labelClassName), children: value });
|
|
2354
2354
|
}, [
|
|
2355
2355
|
label,
|
|
2356
2356
|
labelFormatter,
|
|
@@ -2367,7 +2367,7 @@ function ChartTooltipContent({
|
|
|
2367
2367
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2368
2368
|
"div",
|
|
2369
2369
|
{
|
|
2370
|
-
className:
|
|
2370
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2371
2371
|
"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",
|
|
2372
2372
|
className
|
|
2373
2373
|
),
|
|
@@ -2380,7 +2380,7 @@ function ChartTooltipContent({
|
|
|
2380
2380
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2381
2381
|
"div",
|
|
2382
2382
|
{
|
|
2383
|
-
className:
|
|
2383
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2384
2384
|
"[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
|
|
2385
2385
|
indicator === "dot" && "items-center"
|
|
2386
2386
|
),
|
|
@@ -2388,7 +2388,7 @@ function ChartTooltipContent({
|
|
|
2388
2388
|
_optionalChain([itemConfig, 'optionalAccess', _78 => _78.icon]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2389
2389
|
"div",
|
|
2390
2390
|
{
|
|
2391
|
-
className:
|
|
2391
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2392
2392
|
"shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",
|
|
2393
2393
|
{
|
|
2394
2394
|
"h-2.5 w-2.5": indicator === "dot",
|
|
@@ -2406,7 +2406,7 @@ function ChartTooltipContent({
|
|
|
2406
2406
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2407
2407
|
"div",
|
|
2408
2408
|
{
|
|
2409
|
-
className:
|
|
2409
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2410
2410
|
"flex flex-1 justify-between leading-none",
|
|
2411
2411
|
nestLabel ? "items-end" : "items-center"
|
|
2412
2412
|
),
|
|
@@ -2444,7 +2444,7 @@ function ChartLegendContent({
|
|
|
2444
2444
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2445
2445
|
"div",
|
|
2446
2446
|
{
|
|
2447
|
-
className:
|
|
2447
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2448
2448
|
"flex items-center justify-center gap-4",
|
|
2449
2449
|
verticalAlign === "top" ? "pb-3" : "pt-3",
|
|
2450
2450
|
className
|
|
@@ -2455,7 +2455,7 @@ function ChartLegendContent({
|
|
|
2455
2455
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2456
2456
|
"div",
|
|
2457
2457
|
{
|
|
2458
|
-
className:
|
|
2458
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2459
2459
|
"[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"
|
|
2460
2460
|
),
|
|
2461
2461
|
children: [
|
|
@@ -2502,7 +2502,7 @@ function Checkbox({ className, ...props }) {
|
|
|
2502
2502
|
_checkbox.Checkbox.Root,
|
|
2503
2503
|
{
|
|
2504
2504
|
"data-slot": "checkbox",
|
|
2505
|
-
className:
|
|
2505
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2506
2506
|
"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",
|
|
2507
2507
|
className
|
|
2508
2508
|
),
|
|
@@ -2570,7 +2570,7 @@ function DialogOverlay({
|
|
|
2570
2570
|
_dialog.Dialog.Backdrop,
|
|
2571
2571
|
{
|
|
2572
2572
|
"data-slot": "dialog-overlay",
|
|
2573
|
-
className:
|
|
2573
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 isolate z-50", className),
|
|
2574
2574
|
...props
|
|
2575
2575
|
}
|
|
2576
2576
|
);
|
|
@@ -2588,7 +2588,7 @@ function DialogContent({
|
|
|
2588
2588
|
_dialog.Dialog.Popup,
|
|
2589
2589
|
{
|
|
2590
2590
|
"data-slot": "dialog-content",
|
|
2591
|
-
className:
|
|
2591
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2592
2592
|
"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",
|
|
2593
2593
|
className
|
|
2594
2594
|
),
|
|
@@ -2627,7 +2627,7 @@ function DialogHeader({ className, ...props }) {
|
|
|
2627
2627
|
"div",
|
|
2628
2628
|
{
|
|
2629
2629
|
"data-slot": "dialog-header",
|
|
2630
|
-
className:
|
|
2630
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "gap-1 flex flex-col", className),
|
|
2631
2631
|
...props
|
|
2632
2632
|
}
|
|
2633
2633
|
);
|
|
@@ -2643,7 +2643,7 @@ function DialogFooter({
|
|
|
2643
2643
|
"div",
|
|
2644
2644
|
{
|
|
2645
2645
|
"data-slot": "dialog-footer",
|
|
2646
|
-
className:
|
|
2646
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2647
2647
|
"gap-2 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
2648
2648
|
className
|
|
2649
2649
|
),
|
|
@@ -2661,7 +2661,7 @@ function DialogTitle({ className, ...props }) {
|
|
|
2661
2661
|
_dialog.Dialog.Title,
|
|
2662
2662
|
{
|
|
2663
2663
|
"data-slot": "dialog-title",
|
|
2664
|
-
className:
|
|
2664
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "text-sm font-medium", className),
|
|
2665
2665
|
...props
|
|
2666
2666
|
}
|
|
2667
2667
|
);
|
|
@@ -2675,7 +2675,7 @@ function DialogDescription({
|
|
|
2675
2675
|
_dialog.Dialog.Description,
|
|
2676
2676
|
{
|
|
2677
2677
|
"data-slot": "dialog-description",
|
|
2678
|
-
className:
|
|
2678
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed *:[a]:underline *:[a]:underline-offset-3", className),
|
|
2679
2679
|
...props
|
|
2680
2680
|
}
|
|
2681
2681
|
);
|
|
@@ -2694,7 +2694,7 @@ function Input({ className, type, ...props }) {
|
|
|
2694
2694
|
{
|
|
2695
2695
|
type,
|
|
2696
2696
|
"data-slot": "input",
|
|
2697
|
-
className:
|
|
2697
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2698
2698
|
"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",
|
|
2699
2699
|
className
|
|
2700
2700
|
),
|
|
@@ -2711,7 +2711,7 @@ function Textarea({ className, ...props }) {
|
|
|
2711
2711
|
"textarea",
|
|
2712
2712
|
{
|
|
2713
2713
|
"data-slot": "textarea",
|
|
2714
|
-
className:
|
|
2714
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2715
2715
|
"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",
|
|
2716
2716
|
className
|
|
2717
2717
|
),
|
|
@@ -2729,7 +2729,7 @@ function InputGroup({ className, ...props }) {
|
|
|
2729
2729
|
{
|
|
2730
2730
|
"data-slot": "input-group",
|
|
2731
2731
|
role: "group",
|
|
2732
|
-
className:
|
|
2732
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2733
2733
|
"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",
|
|
2734
2734
|
className
|
|
2735
2735
|
),
|
|
@@ -2765,7 +2765,7 @@ function InputGroupAddon({
|
|
|
2765
2765
|
role: "group",
|
|
2766
2766
|
"data-slot": "input-group-addon",
|
|
2767
2767
|
"data-align": align,
|
|
2768
|
-
className:
|
|
2768
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, inputGroupAddonVariants({ align }), className),
|
|
2769
2769
|
onClick: (e) => {
|
|
2770
2770
|
if (e.target.closest("button")) {
|
|
2771
2771
|
return;
|
|
@@ -2806,7 +2806,7 @@ function InputGroupButton({
|
|
|
2806
2806
|
type,
|
|
2807
2807
|
"data-size": size,
|
|
2808
2808
|
variant,
|
|
2809
|
-
className:
|
|
2809
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, inputGroupButtonVariants({ size }), className),
|
|
2810
2810
|
...props
|
|
2811
2811
|
}
|
|
2812
2812
|
);
|
|
@@ -2816,7 +2816,7 @@ function InputGroupText({ className, ...props }) {
|
|
|
2816
2816
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2817
2817
|
"span",
|
|
2818
2818
|
{
|
|
2819
|
-
className:
|
|
2819
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2820
2820
|
"text-muted-foreground gap-2 text-xs/relaxed [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none",
|
|
2821
2821
|
className
|
|
2822
2822
|
),
|
|
@@ -2833,7 +2833,7 @@ function InputGroupInput({
|
|
|
2833
2833
|
Input,
|
|
2834
2834
|
{
|
|
2835
2835
|
"data-slot": "input-group-control",
|
|
2836
|
-
className:
|
|
2836
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent flex-1", className),
|
|
2837
2837
|
...props
|
|
2838
2838
|
}
|
|
2839
2839
|
);
|
|
@@ -2847,7 +2847,7 @@ function InputGroupTextarea({
|
|
|
2847
2847
|
Textarea,
|
|
2848
2848
|
{
|
|
2849
2849
|
"data-slot": "input-group-control",
|
|
2850
|
-
className:
|
|
2850
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent flex-1 resize-none", className),
|
|
2851
2851
|
...props
|
|
2852
2852
|
}
|
|
2853
2853
|
);
|
|
@@ -2865,7 +2865,7 @@ function Command({
|
|
|
2865
2865
|
_cmdk.Command,
|
|
2866
2866
|
{
|
|
2867
2867
|
"data-slot": "command",
|
|
2868
|
-
className:
|
|
2868
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2869
2869
|
"bg-popover text-popover-foreground rounded-xl p-1 flex size-full flex-col overflow-hidden",
|
|
2870
2870
|
className
|
|
2871
2871
|
),
|
|
@@ -2890,7 +2890,7 @@ function CommandDialog({
|
|
|
2890
2890
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2891
2891
|
DialogContent,
|
|
2892
2892
|
{
|
|
2893
|
-
className:
|
|
2893
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "rounded-xl! p-0 overflow-hidden p-0", className),
|
|
2894
2894
|
showCloseButton,
|
|
2895
2895
|
children
|
|
2896
2896
|
}
|
|
@@ -2907,7 +2907,7 @@ function CommandInput({
|
|
|
2907
2907
|
_cmdk.Command.Input,
|
|
2908
2908
|
{
|
|
2909
2909
|
"data-slot": "command-input",
|
|
2910
|
-
className:
|
|
2910
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2911
2911
|
"w-full text-xs/relaxed outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
2912
2912
|
className
|
|
2913
2913
|
),
|
|
@@ -2926,7 +2926,7 @@ function CommandList({
|
|
|
2926
2926
|
_cmdk.Command.List,
|
|
2927
2927
|
{
|
|
2928
2928
|
"data-slot": "command-list",
|
|
2929
|
-
className:
|
|
2929
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2930
2930
|
"no-scrollbar max-h-72 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto",
|
|
2931
2931
|
className
|
|
2932
2932
|
),
|
|
@@ -2943,7 +2943,7 @@ function CommandEmpty({
|
|
|
2943
2943
|
_cmdk.Command.Empty,
|
|
2944
2944
|
{
|
|
2945
2945
|
"data-slot": "command-empty",
|
|
2946
|
-
className:
|
|
2946
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "py-6 text-center text-xs/relaxed", className),
|
|
2947
2947
|
...props
|
|
2948
2948
|
}
|
|
2949
2949
|
);
|
|
@@ -2957,7 +2957,7 @@ function CommandGroup({
|
|
|
2957
2957
|
_cmdk.Command.Group,
|
|
2958
2958
|
{
|
|
2959
2959
|
"data-slot": "command-group",
|
|
2960
|
-
className:
|
|
2960
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium", className),
|
|
2961
2961
|
...props
|
|
2962
2962
|
}
|
|
2963
2963
|
);
|
|
@@ -2971,7 +2971,7 @@ function CommandSeparator({
|
|
|
2971
2971
|
_cmdk.Command.Separator,
|
|
2972
2972
|
{
|
|
2973
2973
|
"data-slot": "command-separator",
|
|
2974
|
-
className:
|
|
2974
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
2975
2975
|
...props
|
|
2976
2976
|
}
|
|
2977
2977
|
);
|
|
@@ -2986,7 +2986,7 @@ function CommandItem({
|
|
|
2986
2986
|
_cmdk.Command.Item,
|
|
2987
2987
|
{
|
|
2988
2988
|
"data-slot": "command-item",
|
|
2989
|
-
className:
|
|
2989
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
2990
2990
|
"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",
|
|
2991
2991
|
className
|
|
2992
2992
|
),
|
|
@@ -3007,7 +3007,7 @@ function CommandShortcut({
|
|
|
3007
3007
|
"span",
|
|
3008
3008
|
{
|
|
3009
3009
|
"data-slot": "command-shortcut",
|
|
3010
|
-
className:
|
|
3010
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "text-muted-foreground group-data-selected/command-item:text-foreground ml-auto text-[0.625rem] tracking-widest", className),
|
|
3011
3011
|
...props
|
|
3012
3012
|
}
|
|
3013
3013
|
);
|
|
@@ -3034,7 +3034,7 @@ function ContextMenuTrigger({
|
|
|
3034
3034
|
_contextmenu.ContextMenu.Trigger,
|
|
3035
3035
|
{
|
|
3036
3036
|
"data-slot": "context-menu-trigger",
|
|
3037
|
-
className:
|
|
3037
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "select-none", className),
|
|
3038
3038
|
...props
|
|
3039
3039
|
}
|
|
3040
3040
|
);
|
|
@@ -3060,7 +3060,7 @@ function ContextMenuContent({
|
|
|
3060
3060
|
_contextmenu.ContextMenu.Popup,
|
|
3061
3061
|
{
|
|
3062
3062
|
"data-slot": "context-menu-content",
|
|
3063
|
-
className:
|
|
3063
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100 z-50 max-h-(--available-height) origin-(--transform-origin) overflow-x-hidden overflow-y-auto outline-none", className),
|
|
3064
3064
|
...props
|
|
3065
3065
|
}
|
|
3066
3066
|
)
|
|
@@ -3082,7 +3082,7 @@ function ContextMenuLabel({
|
|
|
3082
3082
|
{
|
|
3083
3083
|
"data-slot": "context-menu-label",
|
|
3084
3084
|
"data-inset": inset,
|
|
3085
|
-
className:
|
|
3085
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
|
|
3086
3086
|
...props
|
|
3087
3087
|
}
|
|
3088
3088
|
);
|
|
@@ -3100,7 +3100,7 @@ function ContextMenuItem({
|
|
|
3100
3100
|
"data-slot": "context-menu-item",
|
|
3101
3101
|
"data-inset": inset,
|
|
3102
3102
|
"data-variant": variant,
|
|
3103
|
-
className:
|
|
3103
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
3104
3104
|
"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",
|
|
3105
3105
|
className
|
|
3106
3106
|
),
|
|
@@ -3124,7 +3124,7 @@ function ContextMenuSubTrigger({
|
|
|
3124
3124
|
{
|
|
3125
3125
|
"data-slot": "context-menu-sub-trigger",
|
|
3126
3126
|
"data-inset": inset,
|
|
3127
|
-
className:
|
|
3127
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
3128
3128
|
"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",
|
|
3129
3129
|
className
|
|
3130
3130
|
),
|
|
@@ -3161,7 +3161,7 @@ function ContextMenuCheckboxItem({
|
|
|
3161
3161
|
_contextmenu.ContextMenu.CheckboxItem,
|
|
3162
3162
|
{
|
|
3163
3163
|
"data-slot": "context-menu-checkbox-item",
|
|
3164
|
-
className:
|
|
3164
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
3165
3165
|
"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",
|
|
3166
3166
|
className
|
|
3167
3167
|
),
|
|
@@ -3199,7 +3199,7 @@ function ContextMenuRadioItem({
|
|
|
3199
3199
|
_contextmenu.ContextMenu.RadioItem,
|
|
3200
3200
|
{
|
|
3201
3201
|
"data-slot": "context-menu-radio-item",
|
|
3202
|
-
className:
|
|
3202
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
3203
3203
|
"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",
|
|
3204
3204
|
className
|
|
3205
3205
|
),
|
|
@@ -3223,7 +3223,7 @@ function ContextMenuSeparator({
|
|
|
3223
3223
|
_contextmenu.ContextMenu.Separator,
|
|
3224
3224
|
{
|
|
3225
3225
|
"data-slot": "context-menu-separator",
|
|
3226
|
-
className:
|
|
3226
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
3227
3227
|
...props
|
|
3228
3228
|
}
|
|
3229
3229
|
);
|
|
@@ -3237,7 +3237,7 @@ function ContextMenuShortcut({
|
|
|
3237
3237
|
"span",
|
|
3238
3238
|
{
|
|
3239
3239
|
"data-slot": "context-menu-shortcut",
|
|
3240
|
-
className:
|
|
3240
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "text-muted-foreground group-focus/context-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest", className),
|
|
3241
3241
|
...props
|
|
3242
3242
|
}
|
|
3243
3243
|
);
|
|
@@ -3279,7 +3279,7 @@ function DrawerOverlay({
|
|
|
3279
3279
|
_vaul.Drawer.Overlay,
|
|
3280
3280
|
{
|
|
3281
3281
|
"data-slot": "drawer-overlay",
|
|
3282
|
-
className:
|
|
3282
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50", className),
|
|
3283
3283
|
...props
|
|
3284
3284
|
}
|
|
3285
3285
|
);
|
|
@@ -3296,7 +3296,7 @@ function DrawerContent({
|
|
|
3296
3296
|
_vaul.Drawer.Content,
|
|
3297
3297
|
{
|
|
3298
3298
|
"data-slot": "drawer-content",
|
|
3299
|
-
className:
|
|
3299
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
3300
3300
|
"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",
|
|
3301
3301
|
className
|
|
3302
3302
|
),
|
|
@@ -3315,7 +3315,7 @@ function DrawerHeader({ className, ...props }) {
|
|
|
3315
3315
|
"div",
|
|
3316
3316
|
{
|
|
3317
3317
|
"data-slot": "drawer-header",
|
|
3318
|
-
className:
|
|
3318
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "gap-1 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:text-left flex flex-col", className),
|
|
3319
3319
|
...props
|
|
3320
3320
|
}
|
|
3321
3321
|
);
|
|
@@ -3326,7 +3326,7 @@ function DrawerFooter({ className, ...props }) {
|
|
|
3326
3326
|
"div",
|
|
3327
3327
|
{
|
|
3328
3328
|
"data-slot": "drawer-footer",
|
|
3329
|
-
className:
|
|
3329
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "gap-2 p-4 mt-auto flex flex-col", className),
|
|
3330
3330
|
...props
|
|
3331
3331
|
}
|
|
3332
3332
|
);
|
|
@@ -3340,7 +3340,7 @@ function DrawerTitle({
|
|
|
3340
3340
|
_vaul.Drawer.Title,
|
|
3341
3341
|
{
|
|
3342
3342
|
"data-slot": "drawer-title",
|
|
3343
|
-
className:
|
|
3343
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "text-foreground text-sm font-medium", className),
|
|
3344
3344
|
...props
|
|
3345
3345
|
}
|
|
3346
3346
|
);
|
|
@@ -3354,7 +3354,7 @@ function DrawerDescription({
|
|
|
3354
3354
|
_vaul.Drawer.Description,
|
|
3355
3355
|
{
|
|
3356
3356
|
"data-slot": "drawer-description",
|
|
3357
|
-
className:
|
|
3357
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
|
|
3358
3358
|
...props
|
|
3359
3359
|
}
|
|
3360
3360
|
);
|
|
@@ -3397,7 +3397,7 @@ function DropdownMenuContent({
|
|
|
3397
3397
|
_menu.Menu.Popup,
|
|
3398
3398
|
{
|
|
3399
3399
|
"data-slot": "dropdown-menu-content",
|
|
3400
|
-
className:
|
|
3400
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100 z-50 max-h-(--available-height) w-(--anchor-width) origin-(--transform-origin) overflow-x-hidden overflow-y-auto outline-none data-closed:overflow-hidden", className),
|
|
3401
3401
|
...props
|
|
3402
3402
|
}
|
|
3403
3403
|
)
|
|
@@ -3419,7 +3419,7 @@ function DropdownMenuLabel({
|
|
|
3419
3419
|
{
|
|
3420
3420
|
"data-slot": "dropdown-menu-label",
|
|
3421
3421
|
"data-inset": inset,
|
|
3422
|
-
className:
|
|
3422
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
|
|
3423
3423
|
...props
|
|
3424
3424
|
}
|
|
3425
3425
|
);
|
|
@@ -3437,7 +3437,7 @@ function DropdownMenuItem({
|
|
|
3437
3437
|
"data-slot": "dropdown-menu-item",
|
|
3438
3438
|
"data-inset": inset,
|
|
3439
3439
|
"data-variant": variant,
|
|
3440
|
-
className:
|
|
3440
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
3441
3441
|
"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",
|
|
3442
3442
|
className
|
|
3443
3443
|
),
|
|
@@ -3461,7 +3461,7 @@ function DropdownMenuSubTrigger({
|
|
|
3461
3461
|
{
|
|
3462
3462
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
3463
3463
|
"data-inset": inset,
|
|
3464
|
-
className:
|
|
3464
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
3465
3465
|
"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",
|
|
3466
3466
|
className
|
|
3467
3467
|
),
|
|
@@ -3486,7 +3486,7 @@ function DropdownMenuSubContent({
|
|
|
3486
3486
|
DropdownMenuContent,
|
|
3487
3487
|
{
|
|
3488
3488
|
"data-slot": "dropdown-menu-sub-content",
|
|
3489
|
-
className:
|
|
3489
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100 w-auto", className),
|
|
3490
3490
|
align,
|
|
3491
3491
|
alignOffset,
|
|
3492
3492
|
side,
|
|
@@ -3506,7 +3506,7 @@ function DropdownMenuCheckboxItem({
|
|
|
3506
3506
|
_menu.Menu.CheckboxItem,
|
|
3507
3507
|
{
|
|
3508
3508
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
3509
|
-
className:
|
|
3509
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
3510
3510
|
"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",
|
|
3511
3511
|
className
|
|
3512
3512
|
),
|
|
@@ -3549,7 +3549,7 @@ function DropdownMenuRadioItem({
|
|
|
3549
3549
|
_menu.Menu.RadioItem,
|
|
3550
3550
|
{
|
|
3551
3551
|
"data-slot": "dropdown-menu-radio-item",
|
|
3552
|
-
className:
|
|
3552
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
3553
3553
|
"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",
|
|
3554
3554
|
className
|
|
3555
3555
|
),
|
|
@@ -3580,7 +3580,7 @@ function DropdownMenuSeparator({
|
|
|
3580
3580
|
_menu.Menu.Separator,
|
|
3581
3581
|
{
|
|
3582
3582
|
"data-slot": "dropdown-menu-separator",
|
|
3583
|
-
className:
|
|
3583
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
3584
3584
|
...props
|
|
3585
3585
|
}
|
|
3586
3586
|
);
|
|
@@ -3594,7 +3594,7 @@ function DropdownMenuShortcut({
|
|
|
3594
3594
|
"span",
|
|
3595
3595
|
{
|
|
3596
3596
|
"data-slot": "dropdown-menu-shortcut",
|
|
3597
|
-
className:
|
|
3597
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest", className),
|
|
3598
3598
|
...props
|
|
3599
3599
|
}
|
|
3600
3600
|
);
|
|
@@ -3612,7 +3612,7 @@ function Label({ className, ...props }) {
|
|
|
3612
3612
|
"label",
|
|
3613
3613
|
{
|
|
3614
3614
|
"data-slot": "label",
|
|
3615
|
-
className:
|
|
3615
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
3616
3616
|
"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",
|
|
3617
3617
|
className
|
|
3618
3618
|
),
|
|
@@ -3635,7 +3635,7 @@ function Separator({
|
|
|
3635
3635
|
{
|
|
3636
3636
|
"data-slot": "separator",
|
|
3637
3637
|
orientation,
|
|
3638
|
-
className:
|
|
3638
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
3639
3639
|
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch",
|
|
3640
3640
|
className
|
|
3641
3641
|
),
|
|
@@ -3652,7 +3652,7 @@ function FieldSet({ className, ...props }) {
|
|
|
3652
3652
|
"fieldset",
|
|
3653
3653
|
{
|
|
3654
3654
|
"data-slot": "field-set",
|
|
3655
|
-
className:
|
|
3655
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col", className),
|
|
3656
3656
|
...props
|
|
3657
3657
|
}
|
|
3658
3658
|
);
|
|
@@ -3668,7 +3668,7 @@ function FieldLegend({
|
|
|
3668
3668
|
{
|
|
3669
3669
|
"data-slot": "field-legend",
|
|
3670
3670
|
"data-variant": variant,
|
|
3671
|
-
className:
|
|
3671
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "mb-2 font-medium data-[variant=label]:text-xs/relaxed data-[variant=legend]:text-sm", className),
|
|
3672
3672
|
...props
|
|
3673
3673
|
}
|
|
3674
3674
|
);
|
|
@@ -3679,7 +3679,7 @@ function FieldGroup({ className, ...props }) {
|
|
|
3679
3679
|
"div",
|
|
3680
3680
|
{
|
|
3681
3681
|
"data-slot": "field-group",
|
|
3682
|
-
className:
|
|
3682
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
3683
3683
|
"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",
|
|
3684
3684
|
className
|
|
3685
3685
|
),
|
|
@@ -3711,7 +3711,7 @@ function Field({
|
|
|
3711
3711
|
role: "group",
|
|
3712
3712
|
"data-slot": "field",
|
|
3713
3713
|
"data-orientation": orientation,
|
|
3714
|
-
className:
|
|
3714
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, fieldVariants({ orientation }), className),
|
|
3715
3715
|
...props
|
|
3716
3716
|
}
|
|
3717
3717
|
);
|
|
@@ -3722,7 +3722,7 @@ function FieldContent({ className, ...props }) {
|
|
|
3722
3722
|
"div",
|
|
3723
3723
|
{
|
|
3724
3724
|
"data-slot": "field-content",
|
|
3725
|
-
className:
|
|
3725
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
3726
3726
|
"gap-0.5 group/field-content flex flex-1 flex-col leading-snug",
|
|
3727
3727
|
className
|
|
3728
3728
|
),
|
|
@@ -3739,7 +3739,7 @@ function FieldLabel({
|
|
|
3739
3739
|
Label,
|
|
3740
3740
|
{
|
|
3741
3741
|
"data-slot": "field-label",
|
|
3742
|
-
className:
|
|
3742
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
3743
3743
|
"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",
|
|
3744
3744
|
"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",
|
|
3745
3745
|
className
|
|
@@ -3754,7 +3754,7 @@ function FieldTitle({ className, ...props }) {
|
|
|
3754
3754
|
"div",
|
|
3755
3755
|
{
|
|
3756
3756
|
"data-slot": "field-label",
|
|
3757
|
-
className:
|
|
3757
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
3758
3758
|
"gap-2 text-xs/relaxed font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center leading-snug",
|
|
3759
3759
|
className
|
|
3760
3760
|
),
|
|
@@ -3768,7 +3768,7 @@ function FieldDescription({ className, ...props }) {
|
|
|
3768
3768
|
"p",
|
|
3769
3769
|
{
|
|
3770
3770
|
"data-slot": "field-description",
|
|
3771
|
-
className:
|
|
3771
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
3772
3772
|
"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",
|
|
3773
3773
|
"last:mt-0 nth-last-2:-mt-1",
|
|
3774
3774
|
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
@@ -3789,7 +3789,7 @@ function FieldSeparator({
|
|
|
3789
3789
|
{
|
|
3790
3790
|
"data-slot": "field-separator",
|
|
3791
3791
|
"data-content": !!children,
|
|
3792
|
-
className:
|
|
3792
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "-my-2 h-5 text-xs/relaxed group-data-[variant=outline]/field-group:-mb-2 relative", className),
|
|
3793
3793
|
...props,
|
|
3794
3794
|
children: [
|
|
3795
3795
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, { className: "absolute inset-0 top-1/2" }),
|
|
@@ -3837,7 +3837,7 @@ function FieldError({
|
|
|
3837
3837
|
{
|
|
3838
3838
|
role: "alert",
|
|
3839
3839
|
"data-slot": "field-error",
|
|
3840
|
-
className:
|
|
3840
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "text-destructive text-xs/relaxed font-normal", className),
|
|
3841
3841
|
...props,
|
|
3842
3842
|
children: content
|
|
3843
3843
|
}
|
|
@@ -3880,7 +3880,7 @@ function HoverCardContent({
|
|
|
3880
3880
|
_previewcard.PreviewCard.Popup,
|
|
3881
3881
|
{
|
|
3882
3882
|
"data-slot": "hover-card-content",
|
|
3883
|
-
className:
|
|
3883
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
3884
3884
|
"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",
|
|
3885
3885
|
className
|
|
3886
3886
|
),
|
|
@@ -3906,12 +3906,12 @@ function InputOTP({
|
|
|
3906
3906
|
_inputotp.OTPInput,
|
|
3907
3907
|
{
|
|
3908
3908
|
"data-slot": "input-otp",
|
|
3909
|
-
containerClassName:
|
|
3909
|
+
containerClassName: _chunk53IPQJVHjs.cn.call(void 0,
|
|
3910
3910
|
"cn-input-otp flex items-center has-disabled:opacity-50",
|
|
3911
3911
|
containerClassName
|
|
3912
3912
|
),
|
|
3913
3913
|
spellCheck: false,
|
|
3914
|
-
className:
|
|
3914
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
3915
3915
|
"disabled:cursor-not-allowed",
|
|
3916
3916
|
className
|
|
3917
3917
|
),
|
|
@@ -3925,7 +3925,7 @@ function InputOTPGroup({ className, ...props }) {
|
|
|
3925
3925
|
"div",
|
|
3926
3926
|
{
|
|
3927
3927
|
"data-slot": "input-otp-group",
|
|
3928
|
-
className:
|
|
3928
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 has-aria-invalid:border-destructive rounded-md has-aria-invalid:ring-[2px] flex items-center", className),
|
|
3929
3929
|
...props
|
|
3930
3930
|
}
|
|
3931
3931
|
);
|
|
@@ -3943,7 +3943,7 @@ function InputOTPSlot({
|
|
|
3943
3943
|
{
|
|
3944
3944
|
"data-slot": "input-otp-slot",
|
|
3945
3945
|
"data-active": isActive,
|
|
3946
|
-
className:
|
|
3946
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
3947
3947
|
"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",
|
|
3948
3948
|
className
|
|
3949
3949
|
),
|
|
@@ -3987,7 +3987,7 @@ function NavigationMenu({
|
|
|
3987
3987
|
_navigationmenu.NavigationMenu.Root,
|
|
3988
3988
|
{
|
|
3989
3989
|
"data-slot": "navigation-menu",
|
|
3990
|
-
className:
|
|
3990
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
3991
3991
|
"max-w-max group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
|
|
3992
3992
|
className
|
|
3993
3993
|
),
|
|
@@ -4008,7 +4008,7 @@ function NavigationMenuList({
|
|
|
4008
4008
|
_navigationmenu.NavigationMenu.List,
|
|
4009
4009
|
{
|
|
4010
4010
|
"data-slot": "navigation-menu-list",
|
|
4011
|
-
className:
|
|
4011
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
4012
4012
|
"gap-0 group flex flex-1 list-none items-center justify-center",
|
|
4013
4013
|
className
|
|
4014
4014
|
),
|
|
@@ -4025,7 +4025,7 @@ function NavigationMenuItem({
|
|
|
4025
4025
|
_navigationmenu.NavigationMenu.Item,
|
|
4026
4026
|
{
|
|
4027
4027
|
"data-slot": "navigation-menu-item",
|
|
4028
|
-
className:
|
|
4028
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "relative", className),
|
|
4029
4029
|
...props
|
|
4030
4030
|
}
|
|
4031
4031
|
);
|
|
@@ -4043,7 +4043,7 @@ function NavigationMenuTrigger({
|
|
|
4043
4043
|
_navigationmenu.NavigationMenu.Trigger,
|
|
4044
4044
|
{
|
|
4045
4045
|
"data-slot": "navigation-menu-trigger",
|
|
4046
|
-
className:
|
|
4046
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, navigationMenuTriggerStyle(), "group", className),
|
|
4047
4047
|
...props,
|
|
4048
4048
|
children: [
|
|
4049
4049
|
children,
|
|
@@ -4062,7 +4062,7 @@ function NavigationMenuContent({
|
|
|
4062
4062
|
_navigationmenu.NavigationMenu.Content,
|
|
4063
4063
|
{
|
|
4064
4064
|
"data-slot": "navigation-menu-content",
|
|
4065
|
-
className:
|
|
4065
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
4066
4066
|
"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",
|
|
4067
4067
|
className
|
|
4068
4068
|
),
|
|
@@ -4086,7 +4086,7 @@ function NavigationMenuPositioner({
|
|
|
4086
4086
|
sideOffset,
|
|
4087
4087
|
align,
|
|
4088
4088
|
alignOffset,
|
|
4089
|
-
className:
|
|
4089
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
4090
4090
|
"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",
|
|
4091
4091
|
className
|
|
4092
4092
|
),
|
|
@@ -4104,7 +4104,7 @@ function NavigationMenuLink({
|
|
|
4104
4104
|
_navigationmenu.NavigationMenu.Link,
|
|
4105
4105
|
{
|
|
4106
4106
|
"data-slot": "navigation-menu-link",
|
|
4107
|
-
className:
|
|
4107
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "data-[active=true]:focus:bg-muted data-[active=true]:hover:bg-muted data-[active=true]:bg-muted/50 focus-visible:ring-ring/30 hover:bg-muted focus:bg-muted flex items-center gap-1.5 rounded-lg p-2 text-xs/relaxed transition-all outline-none focus-visible:ring-[2px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4", className),
|
|
4108
4108
|
...props
|
|
4109
4109
|
}
|
|
4110
4110
|
);
|
|
@@ -4118,7 +4118,7 @@ function NavigationMenuIndicator({
|
|
|
4118
4118
|
_navigationmenu.NavigationMenu.Icon,
|
|
4119
4119
|
{
|
|
4120
4120
|
"data-slot": "navigation-menu-indicator",
|
|
4121
|
-
className:
|
|
4121
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
4122
4122
|
"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",
|
|
4123
4123
|
className
|
|
4124
4124
|
),
|
|
@@ -4160,7 +4160,7 @@ function PopoverContent({
|
|
|
4160
4160
|
_popover.Popover.Popup,
|
|
4161
4161
|
{
|
|
4162
4162
|
"data-slot": "popover-content",
|
|
4163
|
-
className:
|
|
4163
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
4164
4164
|
"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",
|
|
4165
4165
|
className
|
|
4166
4166
|
),
|
|
@@ -4176,7 +4176,7 @@ function PopoverHeader({ className, ...props }) {
|
|
|
4176
4176
|
"div",
|
|
4177
4177
|
{
|
|
4178
4178
|
"data-slot": "popover-header",
|
|
4179
|
-
className:
|
|
4179
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "flex flex-col gap-1 text-xs", className),
|
|
4180
4180
|
...props
|
|
4181
4181
|
}
|
|
4182
4182
|
);
|
|
@@ -4187,7 +4187,7 @@ function PopoverTitle({ className, ...props }) {
|
|
|
4187
4187
|
_popover.Popover.Title,
|
|
4188
4188
|
{
|
|
4189
4189
|
"data-slot": "popover-title",
|
|
4190
|
-
className:
|
|
4190
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "text-sm font-medium", className),
|
|
4191
4191
|
...props
|
|
4192
4192
|
}
|
|
4193
4193
|
);
|
|
@@ -4201,7 +4201,7 @@ function PopoverDescription({
|
|
|
4201
4201
|
_popover.Popover.Description,
|
|
4202
4202
|
{
|
|
4203
4203
|
"data-slot": "popover-description",
|
|
4204
|
-
className:
|
|
4204
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "text-muted-foreground", className),
|
|
4205
4205
|
...props
|
|
4206
4206
|
}
|
|
4207
4207
|
);
|
|
@@ -4222,7 +4222,7 @@ function Progress({
|
|
|
4222
4222
|
{
|
|
4223
4223
|
value,
|
|
4224
4224
|
"data-slot": "progress",
|
|
4225
|
-
className:
|
|
4225
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "flex flex-wrap gap-3", className),
|
|
4226
4226
|
...props,
|
|
4227
4227
|
children: [
|
|
4228
4228
|
children,
|
|
@@ -4236,7 +4236,7 @@ function ProgressTrack({ className, ...props }) {
|
|
|
4236
4236
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4237
4237
|
_progress.Progress.Track,
|
|
4238
4238
|
{
|
|
4239
|
-
className:
|
|
4239
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
4240
4240
|
"bg-muted h-1 rounded-md relative flex w-full items-center overflow-x-hidden",
|
|
4241
4241
|
className
|
|
4242
4242
|
),
|
|
@@ -4254,7 +4254,7 @@ function ProgressIndicator({
|
|
|
4254
4254
|
_progress.Progress.Indicator,
|
|
4255
4255
|
{
|
|
4256
4256
|
"data-slot": "progress-indicator",
|
|
4257
|
-
className:
|
|
4257
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "bg-primary h-full transition-all", className),
|
|
4258
4258
|
...props
|
|
4259
4259
|
}
|
|
4260
4260
|
);
|
|
@@ -4264,7 +4264,7 @@ function ProgressLabel({ className, ...props }) {
|
|
|
4264
4264
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4265
4265
|
_progress.Progress.Label,
|
|
4266
4266
|
{
|
|
4267
|
-
className:
|
|
4267
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "text-xs/relaxed font-medium", className),
|
|
4268
4268
|
"data-slot": "progress-label",
|
|
4269
4269
|
...props
|
|
4270
4270
|
}
|
|
@@ -4275,7 +4275,7 @@ function ProgressValue({ className, ...props }) {
|
|
|
4275
4275
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4276
4276
|
_progress.Progress.Value,
|
|
4277
4277
|
{
|
|
4278
|
-
className:
|
|
4278
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "text-muted-foreground ml-auto text-xs/relaxed tabular-nums", className),
|
|
4279
4279
|
"data-slot": "progress-value",
|
|
4280
4280
|
...props
|
|
4281
4281
|
}
|
|
@@ -4293,7 +4293,7 @@ function RadioGroup({ className, ...props }) {
|
|
|
4293
4293
|
_radiogroup.RadioGroup,
|
|
4294
4294
|
{
|
|
4295
4295
|
"data-slot": "radio-group",
|
|
4296
|
-
className:
|
|
4296
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "grid gap-3 w-full", className),
|
|
4297
4297
|
...props
|
|
4298
4298
|
}
|
|
4299
4299
|
);
|
|
@@ -4304,7 +4304,7 @@ function RadioGroupItem({ className, ...props }) {
|
|
|
4304
4304
|
_radio.Radio.Root,
|
|
4305
4305
|
{
|
|
4306
4306
|
"data-slot": "radio-group-item",
|
|
4307
|
-
className:
|
|
4307
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
4308
4308
|
"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",
|
|
4309
4309
|
className
|
|
4310
4310
|
),
|
|
@@ -4333,7 +4333,7 @@ function ResizablePanelGroup({
|
|
|
4333
4333
|
ResizablePrimitive.PanelGroup,
|
|
4334
4334
|
{
|
|
4335
4335
|
"data-slot": "resizable-panel-group",
|
|
4336
|
-
className:
|
|
4336
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
4337
4337
|
"flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
|
|
4338
4338
|
className
|
|
4339
4339
|
),
|
|
@@ -4357,7 +4357,7 @@ function ResizableHandle({
|
|
|
4357
4357
|
ResizablePrimitive.PanelResizeHandle,
|
|
4358
4358
|
{
|
|
4359
4359
|
"data-slot": "resizable-handle",
|
|
4360
|
-
className:
|
|
4360
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
4361
4361
|
"bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",
|
|
4362
4362
|
className
|
|
4363
4363
|
),
|
|
@@ -4380,7 +4380,7 @@ function ScrollArea({
|
|
|
4380
4380
|
_scrollarea.ScrollArea.Root,
|
|
4381
4381
|
{
|
|
4382
4382
|
"data-slot": "scroll-area",
|
|
4383
|
-
className:
|
|
4383
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "relative", className),
|
|
4384
4384
|
...props,
|
|
4385
4385
|
children: [
|
|
4386
4386
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4409,7 +4409,7 @@ function ScrollBar({
|
|
|
4409
4409
|
"data-slot": "scroll-area-scrollbar",
|
|
4410
4410
|
"data-orientation": orientation,
|
|
4411
4411
|
orientation,
|
|
4412
|
-
className:
|
|
4412
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
4413
4413
|
"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",
|
|
4414
4414
|
className
|
|
4415
4415
|
),
|
|
@@ -4436,7 +4436,7 @@ function SelectGroup({ className, ...props }) {
|
|
|
4436
4436
|
_select.Select.Group,
|
|
4437
4437
|
{
|
|
4438
4438
|
"data-slot": "select-group",
|
|
4439
|
-
className:
|
|
4439
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "scroll-my-1 p-1", className),
|
|
4440
4440
|
...props
|
|
4441
4441
|
}
|
|
4442
4442
|
);
|
|
@@ -4447,7 +4447,7 @@ function SelectValue({ className, ...props }) {
|
|
|
4447
4447
|
_select.Select.Value,
|
|
4448
4448
|
{
|
|
4449
4449
|
"data-slot": "select-value",
|
|
4450
|
-
className:
|
|
4450
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "flex flex-1 text-left", className),
|
|
4451
4451
|
...props
|
|
4452
4452
|
}
|
|
4453
4453
|
);
|
|
@@ -4464,7 +4464,7 @@ function SelectTrigger({
|
|
|
4464
4464
|
{
|
|
4465
4465
|
"data-slot": "select-trigger",
|
|
4466
4466
|
"data-size": size,
|
|
4467
|
-
className:
|
|
4467
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
4468
4468
|
"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",
|
|
4469
4469
|
className
|
|
4470
4470
|
),
|
|
@@ -4505,7 +4505,7 @@ function SelectContent({
|
|
|
4505
4505
|
_select.Select.Popup,
|
|
4506
4506
|
{
|
|
4507
4507
|
"data-slot": "select-content",
|
|
4508
|
-
className:
|
|
4508
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 min-w-32 rounded-lg shadow-md ring-1 duration-100 relative isolate z-50 max-h-(--available-height) w-(--anchor-width) origin-(--transform-origin) overflow-x-hidden overflow-y-auto", className),
|
|
4509
4509
|
...props,
|
|
4510
4510
|
children: [
|
|
4511
4511
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectScrollUpButton, {}),
|
|
@@ -4526,7 +4526,7 @@ function SelectLabel({
|
|
|
4526
4526
|
_select.Select.GroupLabel,
|
|
4527
4527
|
{
|
|
4528
4528
|
"data-slot": "select-label",
|
|
4529
|
-
className:
|
|
4529
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs", className),
|
|
4530
4530
|
...props
|
|
4531
4531
|
}
|
|
4532
4532
|
);
|
|
@@ -4541,7 +4541,7 @@ function SelectItem({
|
|
|
4541
4541
|
_select.Select.Item,
|
|
4542
4542
|
{
|
|
4543
4543
|
"data-slot": "select-item",
|
|
4544
|
-
className:
|
|
4544
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
4545
4545
|
"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",
|
|
4546
4546
|
className
|
|
4547
4547
|
),
|
|
@@ -4568,7 +4568,7 @@ function SelectSeparator({
|
|
|
4568
4568
|
_select.Select.Separator,
|
|
4569
4569
|
{
|
|
4570
4570
|
"data-slot": "select-separator",
|
|
4571
|
-
className:
|
|
4571
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px pointer-events-none", className),
|
|
4572
4572
|
...props
|
|
4573
4573
|
}
|
|
4574
4574
|
);
|
|
@@ -4582,7 +4582,7 @@ function SelectScrollUpButton({
|
|
|
4582
4582
|
_select.Select.ScrollUpArrow,
|
|
4583
4583
|
{
|
|
4584
4584
|
"data-slot": "select-scroll-up-button",
|
|
4585
|
-
className:
|
|
4585
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5 top-0 w-full", className),
|
|
4586
4586
|
...props,
|
|
4587
4587
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4588
4588
|
_lucidereact.ChevronUpIcon,
|
|
@@ -4600,7 +4600,7 @@ function SelectScrollDownButton({
|
|
|
4600
4600
|
_select.Select.ScrollDownArrow,
|
|
4601
4601
|
{
|
|
4602
4602
|
"data-slot": "select-scroll-down-button",
|
|
4603
|
-
className:
|
|
4603
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5 bottom-0 w-full", className),
|
|
4604
4604
|
...props,
|
|
4605
4605
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4606
4606
|
_lucidereact.ChevronDownIcon,
|
|
@@ -4636,7 +4636,7 @@ function SheetOverlay({ className, ...props }) {
|
|
|
4636
4636
|
_dialog.Dialog.Backdrop,
|
|
4637
4637
|
{
|
|
4638
4638
|
"data-slot": "sheet-overlay",
|
|
4639
|
-
className:
|
|
4639
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50", className),
|
|
4640
4640
|
...props
|
|
4641
4641
|
}
|
|
4642
4642
|
);
|
|
@@ -4656,7 +4656,7 @@ function SheetContent({
|
|
|
4656
4656
|
{
|
|
4657
4657
|
"data-slot": "sheet-content",
|
|
4658
4658
|
"data-side": side,
|
|
4659
|
-
className:
|
|
4659
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "bg-background data-open:animate-in data-closed:animate-out data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 fixed z-50 flex flex-col bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm", className),
|
|
4660
4660
|
...props,
|
|
4661
4661
|
children: [
|
|
4662
4662
|
children,
|
|
@@ -4692,7 +4692,7 @@ function SheetHeader({ className, ...props }) {
|
|
|
4692
4692
|
"div",
|
|
4693
4693
|
{
|
|
4694
4694
|
"data-slot": "sheet-header",
|
|
4695
|
-
className:
|
|
4695
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "gap-1.5 p-6 flex flex-col", className),
|
|
4696
4696
|
...props
|
|
4697
4697
|
}
|
|
4698
4698
|
);
|
|
@@ -4703,7 +4703,7 @@ function SheetFooter({ className, ...props }) {
|
|
|
4703
4703
|
"div",
|
|
4704
4704
|
{
|
|
4705
4705
|
"data-slot": "sheet-footer",
|
|
4706
|
-
className:
|
|
4706
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "gap-2 p-6 mt-auto flex flex-col", className),
|
|
4707
4707
|
...props
|
|
4708
4708
|
}
|
|
4709
4709
|
);
|
|
@@ -4714,7 +4714,7 @@ function SheetTitle({ className, ...props }) {
|
|
|
4714
4714
|
_dialog.Dialog.Title,
|
|
4715
4715
|
{
|
|
4716
4716
|
"data-slot": "sheet-title",
|
|
4717
|
-
className:
|
|
4717
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "text-foreground text-sm font-medium", className),
|
|
4718
4718
|
...props
|
|
4719
4719
|
}
|
|
4720
4720
|
);
|
|
@@ -4728,7 +4728,7 @@ function SheetDescription({
|
|
|
4728
4728
|
_dialog.Dialog.Description,
|
|
4729
4729
|
{
|
|
4730
4730
|
"data-slot": "sheet-description",
|
|
4731
|
-
className:
|
|
4731
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
|
|
4732
4732
|
...props
|
|
4733
4733
|
}
|
|
4734
4734
|
);
|
|
@@ -4748,7 +4748,7 @@ function Skeleton({ className, ...props }) {
|
|
|
4748
4748
|
"div",
|
|
4749
4749
|
{
|
|
4750
4750
|
"data-slot": "skeleton",
|
|
4751
|
-
className:
|
|
4751
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "bg-muted rounded-md animate-pulse", className),
|
|
4752
4752
|
...props
|
|
4753
4753
|
}
|
|
4754
4754
|
);
|
|
@@ -4801,7 +4801,7 @@ function TooltipContent({
|
|
|
4801
4801
|
_tooltip.Tooltip.Popup,
|
|
4802
4802
|
{
|
|
4803
4803
|
"data-slot": "tooltip-content",
|
|
4804
|
-
className:
|
|
4804
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
4805
4805
|
"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)",
|
|
4806
4806
|
className
|
|
4807
4807
|
),
|
|
@@ -4844,7 +4844,7 @@ function SidebarProvider({
|
|
|
4844
4844
|
children,
|
|
4845
4845
|
...props
|
|
4846
4846
|
}) {
|
|
4847
|
-
const isMobile =
|
|
4847
|
+
const isMobile = _chunk53IPQJVHjs.useIsMobile.call(void 0, );
|
|
4848
4848
|
const [openMobile, setOpenMobile] = React7.useState(false);
|
|
4849
4849
|
const [_open, _setOpen] = React7.useState(defaultOpen);
|
|
4850
4850
|
const open = _nullishCoalesce(openProp, () => ( _open));
|
|
@@ -4895,7 +4895,7 @@ function SidebarProvider({
|
|
|
4895
4895
|
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
4896
4896
|
...style
|
|
4897
4897
|
},
|
|
4898
|
-
className:
|
|
4898
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
4899
4899
|
"group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",
|
|
4900
4900
|
className
|
|
4901
4901
|
),
|
|
@@ -4919,7 +4919,7 @@ function Sidebar({
|
|
|
4919
4919
|
"div",
|
|
4920
4920
|
{
|
|
4921
4921
|
"data-slot": "sidebar",
|
|
4922
|
-
className:
|
|
4922
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
4923
4923
|
"bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",
|
|
4924
4924
|
className
|
|
4925
4925
|
),
|
|
@@ -4964,7 +4964,7 @@ function Sidebar({
|
|
|
4964
4964
|
"div",
|
|
4965
4965
|
{
|
|
4966
4966
|
"data-slot": "sidebar-gap",
|
|
4967
|
-
className:
|
|
4967
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
4968
4968
|
"transition-[width] duration-200 ease-linear relative w-(--sidebar-width) bg-transparent",
|
|
4969
4969
|
"group-data-[collapsible=offExamples]:w-0",
|
|
4970
4970
|
"group-data-[side=right]:rotate-180",
|
|
@@ -4976,7 +4976,7 @@ function Sidebar({
|
|
|
4976
4976
|
"div",
|
|
4977
4977
|
{
|
|
4978
4978
|
"data-slot": "sidebar-container",
|
|
4979
|
-
className:
|
|
4979
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
4980
4980
|
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
4981
4981
|
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)]",
|
|
4982
4982
|
// Adjust the padding for floating and inset variants.
|
|
@@ -5013,7 +5013,7 @@ function SidebarTrigger({
|
|
|
5013
5013
|
"data-slot": "sidebar-trigger",
|
|
5014
5014
|
variant: "ghost",
|
|
5015
5015
|
size: "icon-sm",
|
|
5016
|
-
className:
|
|
5016
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, className),
|
|
5017
5017
|
onClick: (event) => {
|
|
5018
5018
|
_optionalChain([onClick, 'optionalCall', _97 => _97(event)]);
|
|
5019
5019
|
toggleSidebar();
|
|
@@ -5041,7 +5041,7 @@ function SidebarRail({ className, ...props }) {
|
|
|
5041
5041
|
tabIndex: -1,
|
|
5042
5042
|
onClick: toggleSidebar,
|
|
5043
5043
|
title: "Toggle Sidebar",
|
|
5044
|
-
className:
|
|
5044
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
5045
5045
|
"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",
|
|
5046
5046
|
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
5047
5047
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
@@ -5060,7 +5060,7 @@ function SidebarInset({ className, ...props }) {
|
|
|
5060
5060
|
"main",
|
|
5061
5061
|
{
|
|
5062
5062
|
"data-slot": "sidebar-inset",
|
|
5063
|
-
className:
|
|
5063
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
5064
5064
|
"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",
|
|
5065
5065
|
className
|
|
5066
5066
|
),
|
|
@@ -5078,7 +5078,7 @@ function SidebarInput({
|
|
|
5078
5078
|
{
|
|
5079
5079
|
"data-slot": "sidebar-input",
|
|
5080
5080
|
"data-sidebar": "input",
|
|
5081
|
-
className:
|
|
5081
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "bg-muted/20 dark:bg-muted/30 border-input h-8 w-full", className),
|
|
5082
5082
|
...props
|
|
5083
5083
|
}
|
|
5084
5084
|
);
|
|
@@ -5090,7 +5090,7 @@ function SidebarHeader({ className, ...props }) {
|
|
|
5090
5090
|
{
|
|
5091
5091
|
"data-slot": "sidebar-header",
|
|
5092
5092
|
"data-sidebar": "header",
|
|
5093
|
-
className:
|
|
5093
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
|
|
5094
5094
|
...props
|
|
5095
5095
|
}
|
|
5096
5096
|
);
|
|
@@ -5102,7 +5102,7 @@ function SidebarFooter({ className, ...props }) {
|
|
|
5102
5102
|
{
|
|
5103
5103
|
"data-slot": "sidebar-footer",
|
|
5104
5104
|
"data-sidebar": "footer",
|
|
5105
|
-
className:
|
|
5105
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
|
|
5106
5106
|
...props
|
|
5107
5107
|
}
|
|
5108
5108
|
);
|
|
@@ -5117,7 +5117,7 @@ function SidebarSeparator({
|
|
|
5117
5117
|
{
|
|
5118
5118
|
"data-slot": "sidebar-separator",
|
|
5119
5119
|
"data-sidebar": "separator",
|
|
5120
|
-
className:
|
|
5120
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "bg-sidebar-border mx-2 w-auto", className),
|
|
5121
5121
|
...props
|
|
5122
5122
|
}
|
|
5123
5123
|
);
|
|
@@ -5129,7 +5129,7 @@ function SidebarContent({ className, ...props }) {
|
|
|
5129
5129
|
{
|
|
5130
5130
|
"data-slot": "sidebar-content",
|
|
5131
5131
|
"data-sidebar": "content",
|
|
5132
|
-
className:
|
|
5132
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
5133
5133
|
"no-scrollbar gap-0 flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
5134
5134
|
className
|
|
5135
5135
|
),
|
|
@@ -5144,7 +5144,7 @@ function SidebarGroup({ className, ...props }) {
|
|
|
5144
5144
|
{
|
|
5145
5145
|
"data-slot": "sidebar-group",
|
|
5146
5146
|
"data-sidebar": "group",
|
|
5147
|
-
className:
|
|
5147
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
5148
5148
|
"px-2 py-1 relative flex w-full min-w-0 flex-col",
|
|
5149
5149
|
className
|
|
5150
5150
|
),
|
|
@@ -5162,7 +5162,7 @@ function SidebarGroupLabel({
|
|
|
5162
5162
|
defaultTagName: "div",
|
|
5163
5163
|
props: _mergeprops.mergeProps.call(void 0,
|
|
5164
5164
|
{
|
|
5165
|
-
className:
|
|
5165
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
5166
5166
|
"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",
|
|
5167
5167
|
className
|
|
5168
5168
|
)
|
|
@@ -5186,7 +5186,7 @@ function SidebarGroupAction({
|
|
|
5186
5186
|
defaultTagName: "button",
|
|
5187
5187
|
props: _mergeprops.mergeProps.call(void 0,
|
|
5188
5188
|
{
|
|
5189
|
-
className:
|
|
5189
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
5190
5190
|
"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",
|
|
5191
5191
|
className
|
|
5192
5192
|
)
|
|
@@ -5210,7 +5210,7 @@ function SidebarGroupContent({
|
|
|
5210
5210
|
{
|
|
5211
5211
|
"data-slot": "sidebar-group-content",
|
|
5212
5212
|
"data-sidebar": "group-content",
|
|
5213
|
-
className:
|
|
5213
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "text-xs w-full", className),
|
|
5214
5214
|
...props
|
|
5215
5215
|
}
|
|
5216
5216
|
);
|
|
@@ -5222,7 +5222,7 @@ function SidebarMenu({ className, ...props }) {
|
|
|
5222
5222
|
{
|
|
5223
5223
|
"data-slot": "sidebar-menu",
|
|
5224
5224
|
"data-sidebar": "menu",
|
|
5225
|
-
className:
|
|
5225
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "gap-px flex w-full min-w-0 flex-col", className),
|
|
5226
5226
|
...props
|
|
5227
5227
|
}
|
|
5228
5228
|
);
|
|
@@ -5234,7 +5234,7 @@ function SidebarMenuItem({ className, ...props }) {
|
|
|
5234
5234
|
{
|
|
5235
5235
|
"data-slot": "sidebar-menu-item",
|
|
5236
5236
|
"data-sidebar": "menu-item",
|
|
5237
|
-
className:
|
|
5237
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "group/menu-item relative", className),
|
|
5238
5238
|
...props
|
|
5239
5239
|
}
|
|
5240
5240
|
);
|
|
@@ -5274,7 +5274,7 @@ function SidebarMenuButton({
|
|
|
5274
5274
|
defaultTagName: "button",
|
|
5275
5275
|
props: _mergeprops.mergeProps.call(void 0,
|
|
5276
5276
|
{
|
|
5277
|
-
className:
|
|
5277
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, sidebarMenuButtonVariants({ variant, size }), className)
|
|
5278
5278
|
},
|
|
5279
5279
|
props
|
|
5280
5280
|
),
|
|
@@ -5318,7 +5318,7 @@ function SidebarMenuAction({
|
|
|
5318
5318
|
defaultTagName: "button",
|
|
5319
5319
|
props: _mergeprops.mergeProps.call(void 0,
|
|
5320
5320
|
{
|
|
5321
|
-
className:
|
|
5321
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
5322
5322
|
"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",
|
|
5323
5323
|
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",
|
|
5324
5324
|
className
|
|
@@ -5343,7 +5343,7 @@ function SidebarMenuBadge({
|
|
|
5343
5343
|
{
|
|
5344
5344
|
"data-slot": "sidebar-menu-badge",
|
|
5345
5345
|
"data-sidebar": "menu-badge",
|
|
5346
|
-
className:
|
|
5346
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
5347
5347
|
"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",
|
|
5348
5348
|
className
|
|
5349
5349
|
),
|
|
@@ -5365,7 +5365,7 @@ function SidebarMenuSkeleton({
|
|
|
5365
5365
|
{
|
|
5366
5366
|
"data-slot": "sidebar-menu-skeleton",
|
|
5367
5367
|
"data-sidebar": "menu-skeleton",
|
|
5368
|
-
className:
|
|
5368
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "h-8 gap-2 rounded-md px-2 flex items-center", className),
|
|
5369
5369
|
...props,
|
|
5370
5370
|
children: [
|
|
5371
5371
|
showIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -5396,7 +5396,7 @@ function SidebarMenuSub({ className, ...props }) {
|
|
|
5396
5396
|
{
|
|
5397
5397
|
"data-slot": "sidebar-menu-sub",
|
|
5398
5398
|
"data-sidebar": "menu-sub",
|
|
5399
|
-
className:
|
|
5399
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "border-sidebar-border mx-3.5 translate-x-px gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden flex min-w-0 flex-col", className),
|
|
5400
5400
|
...props
|
|
5401
5401
|
}
|
|
5402
5402
|
);
|
|
@@ -5411,7 +5411,7 @@ function SidebarMenuSubItem({
|
|
|
5411
5411
|
{
|
|
5412
5412
|
"data-slot": "sidebar-menu-sub-item",
|
|
5413
5413
|
"data-sidebar": "menu-sub-item",
|
|
5414
|
-
className:
|
|
5414
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "group/menu-sub-item relative", className),
|
|
5415
5415
|
...props
|
|
5416
5416
|
}
|
|
5417
5417
|
);
|
|
@@ -5428,7 +5428,7 @@ function SidebarMenuSubButton({
|
|
|
5428
5428
|
defaultTagName: "a",
|
|
5429
5429
|
props: _mergeprops.mergeProps.call(void 0,
|
|
5430
5430
|
{
|
|
5431
|
-
className:
|
|
5431
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
5432
5432
|
"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",
|
|
5433
5433
|
className
|
|
5434
5434
|
)
|
|
@@ -5476,7 +5476,7 @@ function Slider({
|
|
|
5476
5476
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
5477
5477
|
_slider.Slider.Control,
|
|
5478
5478
|
{
|
|
5479
|
-
className:
|
|
5479
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
5480
5480
|
"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",
|
|
5481
5481
|
className
|
|
5482
5482
|
),
|
|
@@ -5560,7 +5560,7 @@ function Switch({
|
|
|
5560
5560
|
{
|
|
5561
5561
|
"data-slot": "switch",
|
|
5562
5562
|
"data-size": size,
|
|
5563
|
-
className:
|
|
5563
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
5564
5564
|
"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",
|
|
5565
5565
|
className
|
|
5566
5566
|
),
|
|
@@ -5569,7 +5569,7 @@ function Switch({
|
|
|
5569
5569
|
_switch.Switch.Thumb,
|
|
5570
5570
|
{
|
|
5571
5571
|
"data-slot": "switch-thumb",
|
|
5572
|
-
className:
|
|
5572
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
5573
5573
|
"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",
|
|
5574
5574
|
children && "flex items-center justify-center"
|
|
5575
5575
|
),
|
|
@@ -5584,15 +5584,15 @@ _chunk7QVYU63Ejs.__name.call(void 0, Switch, "Switch");
|
|
|
5584
5584
|
// src/shadcnui/ui/table.tsx
|
|
5585
5585
|
|
|
5586
5586
|
function Table({ className, ...props }) {
|
|
5587
|
-
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:
|
|
5587
|
+
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: _chunk53IPQJVHjs.cn.call(void 0, "w-full caption-bottom text-xs", className), ...props }) });
|
|
5588
5588
|
}
|
|
5589
5589
|
_chunk7QVYU63Ejs.__name.call(void 0, Table, "Table");
|
|
5590
5590
|
function TableHeader({ className, ...props }) {
|
|
5591
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { "data-slot": "table-header", className:
|
|
5591
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { "data-slot": "table-header", className: _chunk53IPQJVHjs.cn.call(void 0, "[&_tr]:border-b", className), ...props });
|
|
5592
5592
|
}
|
|
5593
5593
|
_chunk7QVYU63Ejs.__name.call(void 0, TableHeader, "TableHeader");
|
|
5594
5594
|
function TableBody({ className, ...props }) {
|
|
5595
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { "data-slot": "table-body", className:
|
|
5595
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { "data-slot": "table-body", className: _chunk53IPQJVHjs.cn.call(void 0, "[&_tr:last-child]:border-0", className), ...props });
|
|
5596
5596
|
}
|
|
5597
5597
|
_chunk7QVYU63Ejs.__name.call(void 0, TableBody, "TableBody");
|
|
5598
5598
|
function TableFooter({ className, ...props }) {
|
|
@@ -5600,7 +5600,7 @@ function TableFooter({ className, ...props }) {
|
|
|
5600
5600
|
"tfoot",
|
|
5601
5601
|
{
|
|
5602
5602
|
"data-slot": "table-footer",
|
|
5603
|
-
className:
|
|
5603
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", className),
|
|
5604
5604
|
...props
|
|
5605
5605
|
}
|
|
5606
5606
|
);
|
|
@@ -5611,7 +5611,7 @@ function TableRow({ className, ...props }) {
|
|
|
5611
5611
|
"tr",
|
|
5612
5612
|
{
|
|
5613
5613
|
"data-slot": "table-row",
|
|
5614
|
-
className:
|
|
5614
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", className),
|
|
5615
5615
|
...props
|
|
5616
5616
|
}
|
|
5617
5617
|
);
|
|
@@ -5622,7 +5622,7 @@ function TableHead({ className, ...props }) {
|
|
|
5622
5622
|
"th",
|
|
5623
5623
|
{
|
|
5624
5624
|
"data-slot": "table-head",
|
|
5625
|
-
className:
|
|
5625
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
5626
5626
|
"text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0",
|
|
5627
5627
|
className
|
|
5628
5628
|
),
|
|
@@ -5636,14 +5636,14 @@ function TableCell({ className, ...props }) {
|
|
|
5636
5636
|
"td",
|
|
5637
5637
|
{
|
|
5638
5638
|
"data-slot": "table-cell",
|
|
5639
|
-
className:
|
|
5639
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0", className),
|
|
5640
5640
|
...props
|
|
5641
5641
|
}
|
|
5642
5642
|
);
|
|
5643
5643
|
}
|
|
5644
5644
|
_chunk7QVYU63Ejs.__name.call(void 0, TableCell, "TableCell");
|
|
5645
5645
|
function TableCaption({ className, ...props }) {
|
|
5646
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "caption", { "data-slot": "table-caption", className:
|
|
5646
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "caption", { "data-slot": "table-caption", className: _chunk53IPQJVHjs.cn.call(void 0, "text-muted-foreground mt-4 text-xs", className), ...props });
|
|
5647
5647
|
}
|
|
5648
5648
|
_chunk7QVYU63Ejs.__name.call(void 0, TableCaption, "TableCaption");
|
|
5649
5649
|
|
|
@@ -5661,7 +5661,7 @@ function Tabs({
|
|
|
5661
5661
|
{
|
|
5662
5662
|
"data-slot": "tabs",
|
|
5663
5663
|
"data-orientation": orientation,
|
|
5664
|
-
className:
|
|
5664
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
5665
5665
|
"gap-2 group/tabs flex data-[orientation=horizontal]:flex-col",
|
|
5666
5666
|
className
|
|
5667
5667
|
),
|
|
@@ -5694,7 +5694,7 @@ function TabsList({
|
|
|
5694
5694
|
{
|
|
5695
5695
|
"data-slot": "tabs-list",
|
|
5696
5696
|
"data-variant": variant,
|
|
5697
|
-
className:
|
|
5697
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, tabsListVariants({ variant }), className),
|
|
5698
5698
|
...props
|
|
5699
5699
|
}
|
|
5700
5700
|
);
|
|
@@ -5705,7 +5705,7 @@ function TabsTrigger({ className, ...props }) {
|
|
|
5705
5705
|
_tabs.Tabs.Tab,
|
|
5706
5706
|
{
|
|
5707
5707
|
"data-slot": "tabs-trigger",
|
|
5708
|
-
className:
|
|
5708
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
5709
5709
|
"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",
|
|
5710
5710
|
"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",
|
|
5711
5711
|
"data-active:bg-background dark:data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 data-active:text-foreground",
|
|
@@ -5722,7 +5722,7 @@ function TabsContent({ className, ...props }) {
|
|
|
5722
5722
|
_tabs.Tabs.Panel,
|
|
5723
5723
|
{
|
|
5724
5724
|
"data-slot": "tabs-content",
|
|
5725
|
-
className:
|
|
5725
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "text-xs/relaxed flex-1 outline-none", className),
|
|
5726
5726
|
...props
|
|
5727
5727
|
}
|
|
5728
5728
|
);
|
|
@@ -5763,7 +5763,7 @@ function Toggle({
|
|
|
5763
5763
|
_toggle.Toggle,
|
|
5764
5764
|
{
|
|
5765
5765
|
"data-slot": "toggle",
|
|
5766
|
-
className:
|
|
5766
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, toggleVariants({ variant, size, className })),
|
|
5767
5767
|
...props
|
|
5768
5768
|
}
|
|
5769
5769
|
);
|
|
@@ -6232,7 +6232,7 @@ var KanbanBoard = React9.forwardRef((props, forwardedRef) => {
|
|
|
6232
6232
|
"data-slot": "kanban-board",
|
|
6233
6233
|
...boardProps,
|
|
6234
6234
|
ref: forwardedRef,
|
|
6235
|
-
className:
|
|
6235
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
6236
6236
|
"flex size-full gap-4",
|
|
6237
6237
|
context.orientation === "horizontal" ? "flex-row" : "flex-col",
|
|
6238
6238
|
className
|
|
@@ -6271,7 +6271,7 @@ var KanbanColumn = React9.forwardRef((props, forwardedRef) => {
|
|
|
6271
6271
|
disabled,
|
|
6272
6272
|
animateLayoutChanges
|
|
6273
6273
|
});
|
|
6274
|
-
const composedRef =
|
|
6274
|
+
const composedRef = _chunk53IPQJVHjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
6275
6275
|
if (disabled) return;
|
|
6276
6276
|
setNodeRef(node);
|
|
6277
6277
|
});
|
|
@@ -6315,7 +6315,7 @@ var KanbanColumn = React9.forwardRef((props, forwardedRef) => {
|
|
|
6315
6315
|
...asHandle && !disabled ? listeners : {},
|
|
6316
6316
|
ref: composedRef,
|
|
6317
6317
|
style: composedStyle,
|
|
6318
|
-
className:
|
|
6318
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
6319
6319
|
"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",
|
|
6320
6320
|
{
|
|
6321
6321
|
"touch-none select-none": asHandle,
|
|
@@ -6338,7 +6338,7 @@ var KanbanColumnHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
6338
6338
|
const context = useKanbanContext(COLUMN_NAME);
|
|
6339
6339
|
const columnContext = useKanbanColumnContext(COLUMN_HANDLE_NAME);
|
|
6340
6340
|
const isDisabled = _nullishCoalesce(disabled, () => ( columnContext.disabled));
|
|
6341
|
-
const composedRef =
|
|
6341
|
+
const composedRef = _chunk53IPQJVHjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
6342
6342
|
if (isDisabled) return;
|
|
6343
6343
|
columnContext.setActivatorNodeRef(node);
|
|
6344
6344
|
});
|
|
@@ -6355,7 +6355,7 @@ var KanbanColumnHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
6355
6355
|
...isDisabled ? {} : columnContext.attributes,
|
|
6356
6356
|
...isDisabled ? {} : columnContext.listeners,
|
|
6357
6357
|
ref: composedRef,
|
|
6358
|
-
className:
|
|
6358
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
6359
6359
|
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
6360
6360
|
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
6361
6361
|
className
|
|
@@ -6391,7 +6391,7 @@ var KanbanItem = React9.forwardRef((props, forwardedRef) => {
|
|
|
6391
6391
|
if (value === "") {
|
|
6392
6392
|
throw new Error(`\`${ITEM_NAME}\` value cannot be an empty string`);
|
|
6393
6393
|
}
|
|
6394
|
-
const composedRef =
|
|
6394
|
+
const composedRef = _chunk53IPQJVHjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
6395
6395
|
if (disabled) return;
|
|
6396
6396
|
setNodeRef(node);
|
|
6397
6397
|
});
|
|
@@ -6426,7 +6426,7 @@ var KanbanItem = React9.forwardRef((props, forwardedRef) => {
|
|
|
6426
6426
|
...asHandle && !disabled ? listeners : {},
|
|
6427
6427
|
ref: composedRef,
|
|
6428
6428
|
style: composedStyle,
|
|
6429
|
-
className:
|
|
6429
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
6430
6430
|
"focus-visible:ring-ring focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden",
|
|
6431
6431
|
{
|
|
6432
6432
|
"touch-none select-none": asHandle,
|
|
@@ -6447,7 +6447,7 @@ var KanbanItemHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
6447
6447
|
const context = useKanbanContext(ITEM_HANDLE_NAME);
|
|
6448
6448
|
const itemContext = useKanbanItemContext(ITEM_HANDLE_NAME);
|
|
6449
6449
|
const isDisabled = _nullishCoalesce(disabled, () => ( itemContext.disabled));
|
|
6450
|
-
const composedRef =
|
|
6450
|
+
const composedRef = _chunk53IPQJVHjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
6451
6451
|
if (isDisabled) return;
|
|
6452
6452
|
itemContext.setActivatorNodeRef(node);
|
|
6453
6453
|
});
|
|
@@ -6464,7 +6464,7 @@ var KanbanItemHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
6464
6464
|
...isDisabled ? {} : itemContext.attributes,
|
|
6465
6465
|
...isDisabled ? {} : itemContext.listeners,
|
|
6466
6466
|
ref: composedRef,
|
|
6467
|
-
className:
|
|
6467
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
6468
6468
|
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
6469
6469
|
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
6470
6470
|
className
|
|
@@ -6499,7 +6499,7 @@ function KanbanOverlay(props) {
|
|
|
6499
6499
|
{
|
|
6500
6500
|
dropAnimation,
|
|
6501
6501
|
modifiers: context.modifiers,
|
|
6502
|
-
className:
|
|
6502
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, !context.flatCursor && "cursor-grabbing"),
|
|
6503
6503
|
...overlayProps,
|
|
6504
6504
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, KanbanOverlayContext.Provider, { value: true, children: context.activeId && children ? typeof children === "function" ? children({
|
|
6505
6505
|
value: context.activeId,
|
|
@@ -6517,7 +6517,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, KanbanOverlay, "KanbanOverlay");
|
|
|
6517
6517
|
|
|
6518
6518
|
var Link = React10.forwardRef(({ className, href, children, ...props }, ref) => {
|
|
6519
6519
|
const NextIntlLink = _chunk2PHWAL6Qjs.getI18nLink.call(void 0, );
|
|
6520
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NextIntlLink, { prefetch: false, ref, href, className:
|
|
6520
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NextIntlLink, { prefetch: false, ref, href, className: _chunk53IPQJVHjs.cn.call(void 0, `font-medium`, className), ...props, children });
|
|
6521
6521
|
});
|
|
6522
6522
|
Link.displayName = "Link";
|
|
6523
6523
|
|
|
@@ -6614,7 +6614,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6614
6614
|
{
|
|
6615
6615
|
...props,
|
|
6616
6616
|
onClick: handleTogglePopover,
|
|
6617
|
-
className:
|
|
6617
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
6618
6618
|
"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",
|
|
6619
6619
|
className
|
|
6620
6620
|
),
|
|
@@ -6626,7 +6626,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6626
6626
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
6627
6627
|
Badge,
|
|
6628
6628
|
{
|
|
6629
|
-
className:
|
|
6629
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, isAnimating ? "animate-bounce" : "", multiSelectVariants({ variant })),
|
|
6630
6630
|
style: { animationDuration: `${animation}s` },
|
|
6631
6631
|
children: [
|
|
6632
6632
|
IconComponent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: "mr-2 h-4 w-4" }),
|
|
@@ -6649,7 +6649,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6649
6649
|
selectedValues.length > maxCount && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
6650
6650
|
Badge,
|
|
6651
6651
|
{
|
|
6652
|
-
className:
|
|
6652
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
6653
6653
|
"text-foreground border-foreground/1 bg-transparent hover:bg-transparent",
|
|
6654
6654
|
isAnimating ? "animate-bounce" : "",
|
|
6655
6655
|
multiSelectVariants({ variant })
|
|
@@ -6713,7 +6713,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6713
6713
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6714
6714
|
"div",
|
|
6715
6715
|
{
|
|
6716
|
-
className:
|
|
6716
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
6717
6717
|
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
6718
6718
|
selectedValues.length === options.length ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
6719
6719
|
),
|
|
@@ -6736,7 +6736,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6736
6736
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6737
6737
|
"div",
|
|
6738
6738
|
{
|
|
6739
|
-
className:
|
|
6739
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
6740
6740
|
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
6741
6741
|
isSelected ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
6742
6742
|
),
|
|
@@ -6771,7 +6771,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6771
6771
|
animation > 0 && selectedValues.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6772
6772
|
_lucidereact.WandSparkles,
|
|
6773
6773
|
{
|
|
6774
|
-
className:
|
|
6774
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
6775
6775
|
"text-foreground bg-background my-2 h-3 w-3 cursor-pointer",
|
|
6776
6776
|
isAnimating ? "" : "text-muted-foreground"
|
|
6777
6777
|
),
|
|
@@ -6859,8 +6859,8 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
6859
6859
|
CommonDeleter,
|
|
6860
6860
|
{
|
|
6861
6861
|
type: `users`,
|
|
6862
|
-
deleteFunction: () =>
|
|
6863
|
-
() => onDeleted ? onDeleted() : router.push(generateUrl({ page:
|
|
6862
|
+
deleteFunction: () => _chunk53IPQJVHjs.UserService.delete({ userId: user.id, companyId: cId }).then(
|
|
6863
|
+
() => onDeleted ? onDeleted() : router.push(generateUrl({ page: _chunk53IPQJVHjs.Modules.User }))
|
|
6864
6864
|
)
|
|
6865
6865
|
}
|
|
6866
6866
|
);
|
|
@@ -6868,7 +6868,7 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
6868
6868
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleterInternal, "UserDeleterInternal");
|
|
6869
6869
|
function UserDeleter(props) {
|
|
6870
6870
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
6871
|
-
if (!hasPermissionToModule({ module:
|
|
6871
|
+
if (!hasPermissionToModule({ module: _chunk53IPQJVHjs.Modules.User, action: "delete" /* Delete */, data: props.user })) return null;
|
|
6872
6872
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserDeleterInternal, { ...props });
|
|
6873
6873
|
}
|
|
6874
6874
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleter, "UserDeleter");
|
|
@@ -6932,7 +6932,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6932
6932
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
6933
6933
|
if (!user) {
|
|
6934
6934
|
try {
|
|
6935
|
-
const existingUser = await
|
|
6935
|
+
const existingUser = await _chunk53IPQJVHjs.UserService.findByEmail({ email: values.email });
|
|
6936
6936
|
if (existingUser) {
|
|
6937
6937
|
form.setError("email", {
|
|
6938
6938
|
type: "manual",
|
|
@@ -6945,7 +6945,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6945
6945
|
}
|
|
6946
6946
|
}
|
|
6947
6947
|
if (values.avatar && contentType) {
|
|
6948
|
-
const s3 = await
|
|
6948
|
+
const s3 = await _chunk53IPQJVHjs.S3Service.getPreSignedUrl({
|
|
6949
6949
|
key: values.avatar,
|
|
6950
6950
|
contentType,
|
|
6951
6951
|
isPublic: true
|
|
@@ -6971,16 +6971,16 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6971
6971
|
adminCreated
|
|
6972
6972
|
};
|
|
6973
6973
|
try {
|
|
6974
|
-
const updatedUser = user ? await
|
|
6974
|
+
const updatedUser = user ? await _chunk53IPQJVHjs.UserService.update(payload) : await _chunk53IPQJVHjs.UserService.create(payload);
|
|
6975
6975
|
if (_optionalChain([currentUser, 'optionalAccess', _150 => _150.id]) === updatedUser.id) setUser(updatedUser);
|
|
6976
6976
|
if (onRevalidate) {
|
|
6977
|
-
await onRevalidate(generateUrl({ page:
|
|
6977
|
+
await onRevalidate(generateUrl({ page: _chunk53IPQJVHjs.Modules.User, id: updatedUser.id, language: `[locale]` }));
|
|
6978
6978
|
}
|
|
6979
6979
|
if (propagateChanges) {
|
|
6980
6980
|
propagateChanges(updatedUser);
|
|
6981
6981
|
setOpen(false);
|
|
6982
6982
|
} else {
|
|
6983
|
-
router.push(generateUrl({ page:
|
|
6983
|
+
router.push(generateUrl({ page: _chunk53IPQJVHjs.Modules.User, id: updatedUser.id }));
|
|
6984
6984
|
}
|
|
6985
6985
|
} catch (error) {
|
|
6986
6986
|
errorToast({ title: user ? t(`common.errors.update`) : t(`common.errors.create`), error });
|
|
@@ -6988,7 +6988,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6988
6988
|
}, "onSubmit");
|
|
6989
6989
|
_react.useEffect.call(void 0, () => {
|
|
6990
6990
|
async function fetchRoles() {
|
|
6991
|
-
const roles2 = await
|
|
6991
|
+
const roles2 = await _chunk53IPQJVHjs.RoleService.findAllRoles({});
|
|
6992
6992
|
const availableRoles = roles2.filter(
|
|
6993
6993
|
(role) => role.id !== _chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _151 => _151.features, 'access', _152 => _152.some, 'call', _153 => _153((feature) => feature.id === _optionalChain([role, 'access', _154 => _154.requiredFeature, 'optionalAccess', _155 => _155.id]))]))
|
|
6994
6994
|
);
|
|
@@ -7016,7 +7016,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
7016
7016
|
setContentType(null);
|
|
7017
7017
|
}
|
|
7018
7018
|
}, [file]);
|
|
7019
|
-
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _159 => _159.id]) === _optionalChain([user, 'optionalAccess', _160 => _160.id]) && hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module:
|
|
7019
|
+
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _159 => _159.id]) === _optionalChain([user, 'optionalAccess', _160 => _160.id]) && hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunk53IPQJVHjs.Modules.User, action: "update" /* Update */ }) || hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator));
|
|
7020
7020
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
7021
7021
|
trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTrigger, { children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!user }),
|
|
7022
7022
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -7126,7 +7126,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserEditorInternal, "UserEditorInternal");
|
|
|
7126
7126
|
function UserEditor(props) {
|
|
7127
7127
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
7128
7128
|
if (!hasPermissionToModule({
|
|
7129
|
-
module:
|
|
7129
|
+
module: _chunk53IPQJVHjs.Modules.User,
|
|
7130
7130
|
action: props.user ? "update" /* Update */ : "create" /* Create */,
|
|
7131
7131
|
data: props.user
|
|
7132
7132
|
}))
|
|
@@ -7213,7 +7213,7 @@ function CommonAssociationCommandDialog({
|
|
|
7213
7213
|
_chunk7QVYU63Ejs.__name.call(void 0, CommonAssociationCommandDialog, "CommonAssociationCommandDialog");
|
|
7214
7214
|
var triggerAssociationToast = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
7215
7215
|
if (params.level) {
|
|
7216
|
-
|
|
7216
|
+
_chunk53IPQJVHjs.showToast.call(void 0,
|
|
7217
7217
|
params.t(`common.association.label`, {
|
|
7218
7218
|
source: params.source,
|
|
7219
7219
|
destination: params.destination
|
|
@@ -7229,7 +7229,7 @@ var triggerAssociationToast = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
7229
7229
|
}
|
|
7230
7230
|
);
|
|
7231
7231
|
} else {
|
|
7232
|
-
|
|
7232
|
+
_chunk53IPQJVHjs.showToast.call(void 0,
|
|
7233
7233
|
params.t(`common.association.label`, {
|
|
7234
7234
|
source: params.source,
|
|
7235
7235
|
destination: params.destination
|
|
@@ -7281,7 +7281,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ErrorDetails, "ErrorDetails");
|
|
|
7281
7281
|
|
|
7282
7282
|
// src/components/errors/errorToast.ts
|
|
7283
7283
|
function errorToast(params) {
|
|
7284
|
-
|
|
7284
|
+
_chunk53IPQJVHjs.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess', _167 => _167.title]), () => ( "Error")), {
|
|
7285
7285
|
description: params.error instanceof Error ? params.error.message : String(params.error)
|
|
7286
7286
|
});
|
|
7287
7287
|
}
|
|
@@ -7485,7 +7485,7 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
7485
7485
|
}, "handleClear");
|
|
7486
7486
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open: isOpen, onOpenChange: setIsOpen, children: [
|
|
7487
7487
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { children }),
|
|
7488
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className:
|
|
7488
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className: _chunk53IPQJVHjs.cn.call(void 0, "p-0", className), align, onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "p-3", children: [
|
|
7489
7489
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative mb-3", children: [
|
|
7490
7490
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7491
7491
|
Input,
|
|
@@ -7601,13 +7601,13 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
7601
7601
|
setDate(range);
|
|
7602
7602
|
}
|
|
7603
7603
|
}, "handleSelect");
|
|
7604
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
7604
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk53IPQJVHjs.cn.call(void 0, "grid gap-2"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, children: [
|
|
7605
7605
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7606
7606
|
Button,
|
|
7607
7607
|
{
|
|
7608
7608
|
id: "date",
|
|
7609
7609
|
variant: "outline",
|
|
7610
|
-
className:
|
|
7610
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
|
|
7611
7611
|
children: [
|
|
7612
7612
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
|
|
7613
7613
|
_optionalChain([date, 'optionalAccess', _177 => _177.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -7731,7 +7731,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
7731
7731
|
(acceptedFiles, rejectedFiles) => {
|
|
7732
7732
|
const files = acceptedFiles;
|
|
7733
7733
|
if (!files) {
|
|
7734
|
-
|
|
7734
|
+
_chunk53IPQJVHjs.showError.call(void 0, t("common.errors.file"), {
|
|
7735
7735
|
description: t("common.errors.file_large")
|
|
7736
7736
|
});
|
|
7737
7737
|
return;
|
|
@@ -7749,13 +7749,13 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
7749
7749
|
if (rejectedFiles.length > 0) {
|
|
7750
7750
|
for (let i = 0; i < rejectedFiles.length; i++) {
|
|
7751
7751
|
if (_optionalChain([rejectedFiles, 'access', _183 => _183[i], 'access', _184 => _184.errors, 'access', _185 => _185[0], 'optionalAccess', _186 => _186.code]) === "file-too-large") {
|
|
7752
|
-
|
|
7752
|
+
_chunk53IPQJVHjs.showError.call(void 0, t("common.errors.file"), {
|
|
7753
7753
|
description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
|
|
7754
7754
|
});
|
|
7755
7755
|
break;
|
|
7756
7756
|
}
|
|
7757
7757
|
if (_optionalChain([rejectedFiles, 'access', _187 => _187[i], 'access', _188 => _188.errors, 'access', _189 => _189[0], 'optionalAccess', _190 => _190.message])) {
|
|
7758
|
-
|
|
7758
|
+
_chunk53IPQJVHjs.showError.call(void 0, t(`common.errors.file`), {
|
|
7759
7759
|
description: rejectedFiles[i].errors[0].message
|
|
7760
7760
|
});
|
|
7761
7761
|
break;
|
|
@@ -7799,7 +7799,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
7799
7799
|
ref,
|
|
7800
7800
|
tabIndex: 0,
|
|
7801
7801
|
onKeyDownCapture: handleKeyDown,
|
|
7802
|
-
className:
|
|
7802
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
7803
7803
|
"grid w-full overflow-hidden focus:outline-none",
|
|
7804
7804
|
className,
|
|
7805
7805
|
// Original className from props
|
|
@@ -7823,12 +7823,12 @@ var FileUploaderContent = _react.forwardRef.call(void 0,
|
|
|
7823
7823
|
({ children, className, ...props }, ref) => {
|
|
7824
7824
|
const { orientation } = useFileUpload();
|
|
7825
7825
|
const containerRef = _react.useRef.call(void 0, null);
|
|
7826
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
7826
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk53IPQJVHjs.cn.call(void 0, "w-full px-1"), ref: containerRef, "aria-description": "content file holder", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7827
7827
|
"div",
|
|
7828
7828
|
{
|
|
7829
7829
|
...props,
|
|
7830
7830
|
ref,
|
|
7831
|
-
className:
|
|
7831
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
7832
7832
|
"flex gap-1 rounded-xl",
|
|
7833
7833
|
orientation === "horizontal" ? "flex-raw flex-wrap" : "flex-col",
|
|
7834
7834
|
className
|
|
@@ -7848,7 +7848,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
7848
7848
|
"div",
|
|
7849
7849
|
{
|
|
7850
7850
|
ref,
|
|
7851
|
-
className:
|
|
7851
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
7852
7852
|
buttonVariants({ variant: "ghost" }),
|
|
7853
7853
|
"relative h-6 cursor-pointer justify-between p-1",
|
|
7854
7854
|
className,
|
|
@@ -7861,7 +7861,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
7861
7861
|
"button",
|
|
7862
7862
|
{
|
|
7863
7863
|
type: "button",
|
|
7864
|
-
className:
|
|
7864
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "absolute", direction === "rtl" ? "top-1 left-1" : "top-1 right-1"),
|
|
7865
7865
|
onClick: () => removeFileFromSet(index),
|
|
7866
7866
|
children: [
|
|
7867
7867
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: t(`common.remove_item`, { index }) }),
|
|
@@ -7885,12 +7885,12 @@ var FileInput = _react.forwardRef.call(void 0,
|
|
|
7885
7885
|
{
|
|
7886
7886
|
ref,
|
|
7887
7887
|
...props,
|
|
7888
|
-
className:
|
|
7888
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, `relative w-full ${isLOF ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`, className),
|
|
7889
7889
|
children: [
|
|
7890
7890
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7891
7891
|
"div",
|
|
7892
7892
|
{
|
|
7893
|
-
className:
|
|
7893
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
7894
7894
|
"w-full rounded-lg duration-300 ease-in-out",
|
|
7895
7895
|
// Simpler border logic: if parent is drag-active, it controls the border.
|
|
7896
7896
|
// Otherwise, FileInput can show its own accept/reject/default border.
|
|
@@ -8224,7 +8224,7 @@ function FormDateTime({
|
|
|
8224
8224
|
Button,
|
|
8225
8225
|
{
|
|
8226
8226
|
variant: "outline",
|
|
8227
|
-
className:
|
|
8227
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "w-full pl-3 text-left font-normal", !field.value && "text-muted-foreground")
|
|
8228
8228
|
}
|
|
8229
8229
|
),
|
|
8230
8230
|
children: [
|
|
@@ -8412,7 +8412,7 @@ var PasswordInput = React12.forwardRef(({ className, type, ...props }, ref) => {
|
|
|
8412
8412
|
const disabled = props.value === "" || props.value === void 0 || props.disabled;
|
|
8413
8413
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8414
8414
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
8415
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className:
|
|
8415
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className: _chunk53IPQJVHjs.cn.call(void 0, "", className), ref, ...props }),
|
|
8416
8416
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8417
8417
|
Button,
|
|
8418
8418
|
{
|
|
@@ -8606,7 +8606,7 @@ function FormPlaceAutocomplete({
|
|
|
8606
8606
|
placeholder,
|
|
8607
8607
|
disabled,
|
|
8608
8608
|
"data-testid": testId,
|
|
8609
|
-
className:
|
|
8609
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "w-full", className)
|
|
8610
8610
|
}
|
|
8611
8611
|
) }) });
|
|
8612
8612
|
}
|
|
@@ -8625,7 +8625,7 @@ function FormPlaceAutocomplete({
|
|
|
8625
8625
|
placeholder,
|
|
8626
8626
|
disabled: disabled || !apiKey,
|
|
8627
8627
|
"data-testid": testId,
|
|
8628
|
-
className:
|
|
8628
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "w-full", className)
|
|
8629
8629
|
}
|
|
8630
8630
|
),
|
|
8631
8631
|
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" }) }),
|
|
@@ -8757,7 +8757,7 @@ function FormTextarea({
|
|
|
8757
8757
|
Textarea,
|
|
8758
8758
|
{
|
|
8759
8759
|
...field,
|
|
8760
|
-
className:
|
|
8760
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "min-h-96 w-full", className),
|
|
8761
8761
|
disabled: form.formState.isSubmitting,
|
|
8762
8762
|
placeholder,
|
|
8763
8763
|
"data-testid": testId
|
|
@@ -8872,10 +8872,10 @@ function UserMultiSelect({
|
|
|
8872
8872
|
const data = useDataListRetriever({
|
|
8873
8873
|
ready: !!company,
|
|
8874
8874
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
8875
|
-
return
|
|
8875
|
+
return _chunk53IPQJVHjs.UserService.findAllUsers(params);
|
|
8876
8876
|
}, "retriever"),
|
|
8877
8877
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _208 => _208.id]) },
|
|
8878
|
-
module:
|
|
8878
|
+
module: _chunk53IPQJVHjs.Modules.User
|
|
8879
8879
|
});
|
|
8880
8880
|
_react.useEffect.call(void 0, () => {
|
|
8881
8881
|
if (company) data.setReady(true);
|
|
@@ -8972,7 +8972,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
8972
8972
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8973
8973
|
const reactivateUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
8974
8974
|
try {
|
|
8975
|
-
const updatedUser = await
|
|
8975
|
+
const updatedUser = await _chunk53IPQJVHjs.UserService.reactivate({ userId: user.id });
|
|
8976
8976
|
setOpen(false);
|
|
8977
8977
|
propagateChanges(updatedUser);
|
|
8978
8978
|
} catch (error) {
|
|
@@ -9010,7 +9010,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
9010
9010
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivatorInterface, "UserReactivatorInterface");
|
|
9011
9011
|
function UserReactivator(props) {
|
|
9012
9012
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9013
|
-
if (!hasPermissionToModule({ module:
|
|
9013
|
+
if (!hasPermissionToModule({ module: _chunk53IPQJVHjs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
9014
9014
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserReactivatorInterface, { ...props });
|
|
9015
9015
|
}
|
|
9016
9016
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivator, "UserReactivator");
|
|
@@ -9025,9 +9025,9 @@ function UserResentInvitationEmailInternal({ user }) {
|
|
|
9025
9025
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9026
9026
|
const sendInvitationEmail = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
9027
9027
|
try {
|
|
9028
|
-
await
|
|
9028
|
+
await _chunk53IPQJVHjs.UserService.sendInvitation({ userId: user.id, companyId: user.company.id });
|
|
9029
9029
|
setOpen(false);
|
|
9030
|
-
|
|
9030
|
+
_chunk53IPQJVHjs.showToast.call(void 0, t(`user.resend_activation.email_sent`), {
|
|
9031
9031
|
description: t(`user.resend_activation.email_sent_description`, { email: user.email })
|
|
9032
9032
|
});
|
|
9033
9033
|
} catch (error) {
|
|
@@ -9065,7 +9065,7 @@ function UserResentInvitationEmailInternal({ user }) {
|
|
|
9065
9065
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmailInternal, "UserResentInvitationEmailInternal");
|
|
9066
9066
|
function UserResentInvitationEmail(props) {
|
|
9067
9067
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9068
|
-
if (!hasPermissionToModule({ module:
|
|
9068
|
+
if (!hasPermissionToModule({ module: _chunk53IPQJVHjs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
9069
9069
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserResentInvitationEmailInternal, { ...props });
|
|
9070
9070
|
}
|
|
9071
9071
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmail, "UserResentInvitationEmail");
|
|
@@ -9096,22 +9096,22 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
|
|
|
9096
9096
|
}, "getAvatar");
|
|
9097
9097
|
const content = showLink === false ? (
|
|
9098
9098
|
// If showLink is explicitly false, never show a link
|
|
9099
|
-
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
9099
|
+
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk53IPQJVHjs.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className), children: [
|
|
9100
9100
|
getAvatar(),
|
|
9101
9101
|
user.name
|
|
9102
9102
|
] }) : getAvatar()
|
|
9103
9103
|
) : showFull ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9104
9104
|
Link,
|
|
9105
9105
|
{
|
|
9106
|
-
href: generateUrl({ page:
|
|
9107
|
-
className:
|
|
9106
|
+
href: generateUrl({ page: _chunk53IPQJVHjs.Modules.User, id: user.id }),
|
|
9107
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className),
|
|
9108
9108
|
onClick: (e) => e.stopPropagation(),
|
|
9109
9109
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center gap-x-2", children: [
|
|
9110
9110
|
getAvatar(),
|
|
9111
9111
|
user.name
|
|
9112
9112
|
] })
|
|
9113
9113
|
}
|
|
9114
|
-
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page:
|
|
9114
|
+
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunk53IPQJVHjs.Modules.User, id: user.id }), className, children: getAvatar() }) : getAvatar();
|
|
9115
9115
|
if (!showTooltip) {
|
|
9116
9116
|
return content;
|
|
9117
9117
|
}
|
|
@@ -9132,10 +9132,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
9132
9132
|
const [isSearching, setIsSearching] = _react.useState.call(void 0, false);
|
|
9133
9133
|
const data = useDataListRetriever({
|
|
9134
9134
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
9135
|
-
return
|
|
9135
|
+
return _chunk53IPQJVHjs.UserService.findMany(params);
|
|
9136
9136
|
}, "retriever"),
|
|
9137
9137
|
retrieverParams: {},
|
|
9138
|
-
module:
|
|
9138
|
+
module: _chunk53IPQJVHjs.Modules.User
|
|
9139
9139
|
});
|
|
9140
9140
|
const search = _react.useCallback.call(void 0,
|
|
9141
9141
|
async (searchedTerm) => {
|
|
@@ -9234,24 +9234,24 @@ var UserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
9234
9234
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9235
9235
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9236
9236
|
const [user, setUser] = _react.useState.call(void 0,
|
|
9237
|
-
dehydratedUser ?
|
|
9237
|
+
dehydratedUser ? _chunk53IPQJVHjs.rehydrate.call(void 0, _chunk53IPQJVHjs.Modules.User, dehydratedUser) : void 0
|
|
9238
9238
|
);
|
|
9239
9239
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
9240
9240
|
const response = [];
|
|
9241
|
-
if (hasPermissionToModule({ module:
|
|
9241
|
+
if (hasPermissionToModule({ module: _chunk53IPQJVHjs.Modules.User, action: "update" /* Update */ })) {
|
|
9242
9242
|
response.push({
|
|
9243
9243
|
name: t(`common.settings`),
|
|
9244
9244
|
href: generateUrl({ page: `/settings` })
|
|
9245
9245
|
});
|
|
9246
9246
|
response.push({
|
|
9247
9247
|
name: t(`entities.users`, { count: 2 }),
|
|
9248
|
-
href: generateUrl({ page: `/settings`, id:
|
|
9248
|
+
href: generateUrl({ page: `/settings`, id: _chunk53IPQJVHjs.Modules.User.pageUrl })
|
|
9249
9249
|
});
|
|
9250
9250
|
}
|
|
9251
9251
|
if (user)
|
|
9252
9252
|
response.push({
|
|
9253
9253
|
name: `${user.name}${user.isDeleted ? ` (${t(`user.deleted`)})` : ""}`,
|
|
9254
|
-
href: generateUrl({ page:
|
|
9254
|
+
href: generateUrl({ page: _chunk53IPQJVHjs.Modules.User, id: user.id })
|
|
9255
9255
|
});
|
|
9256
9256
|
return response;
|
|
9257
9257
|
}, "breadcrumb");
|
|
@@ -9306,7 +9306,7 @@ function UserDetails({ user }) {
|
|
|
9306
9306
|
const { title } = useSharedContext();
|
|
9307
9307
|
let roles = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
9308
9308
|
if (user.roles && user.roles.length > 0) {
|
|
9309
|
-
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:
|
|
9309
|
+
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: _chunk53IPQJVHjs.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)) }) });
|
|
9310
9310
|
}
|
|
9311
9311
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
9312
9312
|
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,
|
|
@@ -9319,7 +9319,7 @@ function UserDetails({ user }) {
|
|
|
9319
9319
|
className: "h-auto w-full rounded-lg object-contain"
|
|
9320
9320
|
}
|
|
9321
9321
|
) }),
|
|
9322
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module:
|
|
9322
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunk53IPQJVHjs.Modules.User, type: title.type, element: title.element, functions: title.functions }),
|
|
9323
9323
|
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`) }) }) }),
|
|
9324
9324
|
roles,
|
|
9325
9325
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AttributeElement, { inline: true, title: t(`user.fields.title.label`), value: user.title }),
|
|
@@ -9373,18 +9373,18 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserIndexContainer, "UserIndexContainer");
|
|
|
9373
9373
|
function UsersListContainerInternal() {
|
|
9374
9374
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
9375
9375
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9376
|
-
if (!hasPermissionToModule({ module:
|
|
9376
|
+
if (!hasPermissionToModule({ module: _chunk53IPQJVHjs.Modules.User, action: "delete" /* Delete */ })) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {});
|
|
9377
9377
|
const tabs = [
|
|
9378
9378
|
{
|
|
9379
9379
|
label: t(`entities.users`, { count: 2 }),
|
|
9380
9380
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {}),
|
|
9381
|
-
modules: [
|
|
9381
|
+
modules: [_chunk53IPQJVHjs.Modules.Company],
|
|
9382
9382
|
action: "read" /* Read */
|
|
9383
9383
|
},
|
|
9384
9384
|
{
|
|
9385
9385
|
label: t(`user.deleted`),
|
|
9386
9386
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, { isDeleted: true }),
|
|
9387
|
-
modules: [
|
|
9387
|
+
modules: [_chunk53IPQJVHjs.Modules.Company],
|
|
9388
9388
|
action: "update" /* Update */
|
|
9389
9389
|
}
|
|
9390
9390
|
];
|
|
@@ -9402,9 +9402,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersListContainer, "UsersListContainer");
|
|
|
9402
9402
|
function AdminUsersListInternal({ company }) {
|
|
9403
9403
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9404
9404
|
const data = useDataListRetriever({
|
|
9405
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9405
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk53IPQJVHjs.UserService.findManyForAmin(params), "retriever"),
|
|
9406
9406
|
retrieverParams: { companyId: company.id },
|
|
9407
|
-
module:
|
|
9407
|
+
module: _chunk53IPQJVHjs.Modules.User
|
|
9408
9408
|
});
|
|
9409
9409
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9410
9410
|
ContentListTable,
|
|
@@ -9412,7 +9412,7 @@ function AdminUsersListInternal({ company }) {
|
|
|
9412
9412
|
title: t(`entities.users`, { count: 2 }),
|
|
9413
9413
|
data,
|
|
9414
9414
|
fields: ["name" /* name */, "email" /* email */, "createdAt" /* createdAt */],
|
|
9415
|
-
tableGeneratorType:
|
|
9415
|
+
tableGeneratorType: _chunk53IPQJVHjs.Modules.User,
|
|
9416
9416
|
functions: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserEditor, { propagateChanges: data.refresh, adminCreated: true })
|
|
9417
9417
|
}
|
|
9418
9418
|
);
|
|
@@ -9434,9 +9434,9 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
9434
9434
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9435
9435
|
const data = useDataListRetriever({
|
|
9436
9436
|
ready: !!company,
|
|
9437
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9437
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk53IPQJVHjs.UserService.findAllUsers(params), "retriever"),
|
|
9438
9438
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _227 => _227.id]), isDeleted },
|
|
9439
|
-
module:
|
|
9439
|
+
module: _chunk53IPQJVHjs.Modules.User
|
|
9440
9440
|
});
|
|
9441
9441
|
_react.useEffect.call(void 0, () => {
|
|
9442
9442
|
if (company) data.setReady(true);
|
|
@@ -9449,7 +9449,7 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
9449
9449
|
{
|
|
9450
9450
|
data,
|
|
9451
9451
|
fields: ["name" /* name */, "email" /* email */],
|
|
9452
|
-
tableGeneratorType:
|
|
9452
|
+
tableGeneratorType: _chunk53IPQJVHjs.Modules.User,
|
|
9453
9453
|
functions,
|
|
9454
9454
|
title: t(`entities.users`, { count: 2 })
|
|
9455
9455
|
}
|
|
@@ -9465,7 +9465,7 @@ function ContributorsList({ content }) {
|
|
|
9465
9465
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9466
9466
|
Link,
|
|
9467
9467
|
{
|
|
9468
|
-
href: generateUrl({ page:
|
|
9468
|
+
href: generateUrl({ page: _chunk53IPQJVHjs.Modules.User, id: content.author.id }),
|
|
9469
9469
|
onClick: (e) => e.stopPropagation(),
|
|
9470
9470
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: content.author, className: "mr-1 h-6 w-6" })
|
|
9471
9471
|
},
|
|
@@ -9474,7 +9474,7 @@ function ContributorsList({ content }) {
|
|
|
9474
9474
|
/* @__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,
|
|
9475
9475
|
Link,
|
|
9476
9476
|
{
|
|
9477
|
-
href: generateUrl({ page:
|
|
9477
|
+
href: generateUrl({ page: _chunk53IPQJVHjs.Modules.User, id: editor.id }),
|
|
9478
9478
|
onClick: (e) => e.stopPropagation(),
|
|
9479
9479
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: editor, className: "h-5 w-5" })
|
|
9480
9480
|
},
|
|
@@ -9490,8 +9490,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContributorsList, "ContributorsList");
|
|
|
9490
9490
|
function RelevantUsersList({ id }) {
|
|
9491
9491
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9492
9492
|
const data = useDataListRetriever({
|
|
9493
|
-
module:
|
|
9494
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9493
|
+
module: _chunk53IPQJVHjs.Modules.User,
|
|
9494
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk53IPQJVHjs.UserService.findRelevant(params), "retriever"),
|
|
9495
9495
|
retrieverParams: { id }
|
|
9496
9496
|
});
|
|
9497
9497
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -9499,7 +9499,7 @@ function RelevantUsersList({ id }) {
|
|
|
9499
9499
|
{
|
|
9500
9500
|
data,
|
|
9501
9501
|
fields: ["name" /* name */, "email" /* email */, "relevance" /* relevance */],
|
|
9502
|
-
tableGeneratorType:
|
|
9502
|
+
tableGeneratorType: _chunk53IPQJVHjs.Modules.User,
|
|
9503
9503
|
title: t(`common.relevant_users`)
|
|
9504
9504
|
}
|
|
9505
9505
|
);
|
|
@@ -9512,16 +9512,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RelevantUsersList, "RelevantUsersList");
|
|
|
9512
9512
|
function RoleUsersList({ role }) {
|
|
9513
9513
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9514
9514
|
const data = useDataListRetriever({
|
|
9515
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9515
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk53IPQJVHjs.UserService.findAllUsersByRole(params), "retriever"),
|
|
9516
9516
|
retrieverParams: { roleId: role.id },
|
|
9517
|
-
module:
|
|
9517
|
+
module: _chunk53IPQJVHjs.Modules.User
|
|
9518
9518
|
});
|
|
9519
9519
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9520
9520
|
ContentListTable,
|
|
9521
9521
|
{
|
|
9522
9522
|
data,
|
|
9523
9523
|
fields: ["name" /* name */, "email" /* email */],
|
|
9524
|
-
tableGeneratorType:
|
|
9524
|
+
tableGeneratorType: _chunk53IPQJVHjs.Modules.User,
|
|
9525
9525
|
title: t(`entities.users`, { count: 2 })
|
|
9526
9526
|
}
|
|
9527
9527
|
);
|
|
@@ -9571,7 +9571,7 @@ function UsersList({ data, optionComponents, removeFunction, hideOptions, showRe
|
|
|
9571
9571
|
{
|
|
9572
9572
|
data,
|
|
9573
9573
|
fields: ["name" /* name */, "email" /* email */],
|
|
9574
|
-
tableGeneratorType:
|
|
9574
|
+
tableGeneratorType: _chunk53IPQJVHjs.Modules.User,
|
|
9575
9575
|
title: t(`entities.users`, { count: 2 })
|
|
9576
9576
|
}
|
|
9577
9577
|
);
|
|
@@ -9584,8 +9584,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersList, "UsersList");
|
|
|
9584
9584
|
function UsersListByContentIds({ contentIds }) {
|
|
9585
9585
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9586
9586
|
const data = useDataListRetriever({
|
|
9587
|
-
module:
|
|
9588
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9587
|
+
module: _chunk53IPQJVHjs.Modules.User,
|
|
9588
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk53IPQJVHjs.UserService.findManyByContentIds(params), "retriever"),
|
|
9589
9589
|
retrieverParams: { contentIds }
|
|
9590
9590
|
});
|
|
9591
9591
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -9593,7 +9593,7 @@ function UsersListByContentIds({ contentIds }) {
|
|
|
9593
9593
|
{
|
|
9594
9594
|
data,
|
|
9595
9595
|
fields: ["name" /* name */, "email" /* email */],
|
|
9596
|
-
tableGeneratorType:
|
|
9596
|
+
tableGeneratorType: _chunk53IPQJVHjs.Modules.User,
|
|
9597
9597
|
title: t(`common.relevant_users`)
|
|
9598
9598
|
}
|
|
9599
9599
|
);
|
|
@@ -9611,7 +9611,7 @@ function CompanyDetails() {
|
|
|
9611
9611
|
const { company } = useCompanyContext();
|
|
9612
9612
|
if (!company) return null;
|
|
9613
9613
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
9614
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module:
|
|
9614
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunk53IPQJVHjs.Modules.Company, type: title.type, element: title.element, functions: title.functions }),
|
|
9615
9615
|
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" })
|
|
9616
9616
|
] });
|
|
9617
9617
|
}
|
|
@@ -9676,13 +9676,13 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9676
9676
|
const textSize = textSizeClasses[size];
|
|
9677
9677
|
const getBatteryIcon = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
9678
9678
|
if (percentage > 75) {
|
|
9679
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryFull, { className:
|
|
9679
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryFull, { className: _chunk53IPQJVHjs.cn.call(void 0, iconSize, "text-green-500") });
|
|
9680
9680
|
} else if (percentage > 50) {
|
|
9681
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryMedium, { className:
|
|
9681
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryMedium, { className: _chunk53IPQJVHjs.cn.call(void 0, iconSize, "text-green-500") });
|
|
9682
9682
|
} else if (percentage >= 25) {
|
|
9683
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryLow, { className:
|
|
9683
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryLow, { className: _chunk53IPQJVHjs.cn.call(void 0, iconSize, "text-yellow-500") });
|
|
9684
9684
|
} else {
|
|
9685
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Battery, { className:
|
|
9685
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Battery, { className: _chunk53IPQJVHjs.cn.call(void 0, iconSize, "text-destructive") });
|
|
9686
9686
|
}
|
|
9687
9687
|
}, "getBatteryIcon");
|
|
9688
9688
|
const getStatusColor = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -9702,7 +9702,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9702
9702
|
t("billing.tokens.monthly", { defaultValue: "Monthly Pages" }),
|
|
9703
9703
|
":"
|
|
9704
9704
|
] }),
|
|
9705
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
9705
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk53IPQJVHjs.cn.call(void 0, "font-medium", getStatusColor()), children: [
|
|
9706
9706
|
availableMonthlyTokens,
|
|
9707
9707
|
" / ",
|
|
9708
9708
|
monthlyTokens
|
|
@@ -9713,7 +9713,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9713
9713
|
t("billing.tokens.available", { defaultValue: "Available" }),
|
|
9714
9714
|
":"
|
|
9715
9715
|
] }),
|
|
9716
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
9716
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk53IPQJVHjs.cn.call(void 0, "font-medium", getStatusColor()), children: [
|
|
9717
9717
|
percentage.toFixed(0),
|
|
9718
9718
|
"%"
|
|
9719
9719
|
] })
|
|
@@ -9734,14 +9734,14 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9734
9734
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9735
9735
|
"div",
|
|
9736
9736
|
{
|
|
9737
|
-
className:
|
|
9737
|
+
className: _chunk53IPQJVHjs.cn.call(void 0, "inline-flex items-center gap-1.5 cursor-default", className),
|
|
9738
9738
|
"aria-label": t("billing.tokens.status", { defaultValue: "Page Status" }),
|
|
9739
9739
|
children: [
|
|
9740
9740
|
getBatteryIcon(),
|
|
9741
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
9741
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk53IPQJVHjs.cn.call(void 0, textSize, "text-muted-foreground font-medium"), children: availableMonthlyTokens }),
|
|
9742
9742
|
showExtraPages && availableExtraTokens > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "inline-flex items-center gap-0.5", children: [
|
|
9743
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className:
|
|
9744
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
9743
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className: _chunk53IPQJVHjs.cn.call(void 0, smallIconSize, "text-blue-500") }),
|
|
9744
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk53IPQJVHjs.cn.call(void 0, textSize, "text-blue-500 font-medium"), children: availableExtraTokens })
|
|
9745
9745
|
] })
|
|
9746
9746
|
]
|
|
9747
9747
|
}
|
|
@@ -9858,12 +9858,12 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
9858
9858
|
}
|
|
9859
9859
|
};
|
|
9860
9860
|
try {
|
|
9861
|
-
await
|
|
9862
|
-
const fullUser = await
|
|
9861
|
+
await _chunk53IPQJVHjs.CompanyService.updateConfigurations(payload);
|
|
9862
|
+
const fullUser = await _chunk53IPQJVHjs.UserService.findFullUser();
|
|
9863
9863
|
if (fullUser) {
|
|
9864
9864
|
setUser(fullUser);
|
|
9865
9865
|
}
|
|
9866
|
-
|
|
9866
|
+
_chunk53IPQJVHjs.showToast.call(void 0, "Configurations Updated", {
|
|
9867
9867
|
description: `The system configurations have been updated successfully.`
|
|
9868
9868
|
});
|
|
9869
9869
|
close();
|
|
@@ -9913,32 +9913,20 @@ function CompanyDeleterInternal({ company, isAdministrator: isAdministrator2 })
|
|
|
9913
9913
|
const [isDeleting, setIsDeleting] = _react.useState.call(void 0, false);
|
|
9914
9914
|
const [companyName, setCompanyName] = _react.useState.call(void 0, "");
|
|
9915
9915
|
const handleProceedToFinalWarning = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
9916
|
-
console.log("[CompanyDeleter] Proceeding to final warning dialog");
|
|
9917
|
-
console.log("[CompanyDeleter] Company name entered:", companyName);
|
|
9918
|
-
console.log("[CompanyDeleter] Expected company name:", company.name);
|
|
9919
9916
|
setOpen(false);
|
|
9920
9917
|
setFinalWarningOpen(true);
|
|
9921
9918
|
}, "handleProceedToFinalWarning");
|
|
9922
9919
|
const handleFinalDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
9923
|
-
console.log("[CompanyDeleter] handleFinalDelete called");
|
|
9924
|
-
console.log("[CompanyDeleter] isAdministrator:", isAdministrator2);
|
|
9925
|
-
console.log("[CompanyDeleter] company.id:", company.id);
|
|
9926
|
-
console.log("[CompanyDeleter] company.name:", company.name);
|
|
9927
9920
|
setIsDeleting(true);
|
|
9928
9921
|
try {
|
|
9929
9922
|
if (isAdministrator2) {
|
|
9930
|
-
|
|
9931
|
-
await _chunkNNCTRU4Ojs.CompanyService.delete({ companyId: company.id });
|
|
9923
|
+
await _chunk53IPQJVHjs.CompanyService.delete({ companyId: company.id });
|
|
9932
9924
|
} else {
|
|
9933
|
-
|
|
9934
|
-
await _chunkNNCTRU4Ojs.CompanyService.selfDelete({ companyId: company.id });
|
|
9925
|
+
await _chunk53IPQJVHjs.CompanyService.selfDelete({ companyId: company.id });
|
|
9935
9926
|
}
|
|
9936
|
-
|
|
9937
|
-
await _chunkNNCTRU4Ojs.AuthService.logout();
|
|
9927
|
+
await _chunk53IPQJVHjs.AuthService.logout();
|
|
9938
9928
|
window.location.href = generateUrl({ page: `/` });
|
|
9939
9929
|
} catch (error) {
|
|
9940
|
-
console.error("[CompanyDeleter] Delete failed with error:", error);
|
|
9941
|
-
console.error("[CompanyDeleter] Error details:", JSON.stringify(error, null, 2));
|
|
9942
9930
|
errorToast({ title: t(`common.errors.delete`), error });
|
|
9943
9931
|
setIsDeleting(false);
|
|
9944
9932
|
}
|
|
@@ -10043,19 +10031,10 @@ function CompanyDeleter({ company }) {
|
|
|
10043
10031
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
10044
10032
|
const isAdministrator2 = hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator);
|
|
10045
10033
|
const isCompanyAdministrator = hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).CompanyAdministrator);
|
|
10046
|
-
const hasDeletePermission = hasPermissionToModule({ module:
|
|
10047
|
-
console.log("[CompanyDeleter] Role check:", {
|
|
10048
|
-
isAdministrator: isAdministrator2,
|
|
10049
|
-
isCompanyAdministrator,
|
|
10050
|
-
hasDeletePermission,
|
|
10051
|
-
companyId: company.id,
|
|
10052
|
-
companyName: company.name
|
|
10053
|
-
});
|
|
10034
|
+
const hasDeletePermission = hasPermissionToModule({ module: _chunk53IPQJVHjs.Modules.Company, action: "delete" /* Delete */ });
|
|
10054
10035
|
if (!isAdministrator2 && !isCompanyAdministrator && !hasDeletePermission) {
|
|
10055
|
-
console.log("[CompanyDeleter] Access denied - no delete permissions");
|
|
10056
10036
|
return null;
|
|
10057
10037
|
}
|
|
10058
|
-
console.log("[CompanyDeleter] Access granted, rendering with isAdministrator:", isAdministrator2);
|
|
10059
10038
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleterInternal, { company, isAdministrator: isAdministrator2 });
|
|
10060
10039
|
}
|
|
10061
10040
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleter, "CompanyDeleter");
|
|
@@ -10102,7 +10081,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10102
10081
|
});
|
|
10103
10082
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
10104
10083
|
if (values.logo && contentType) {
|
|
10105
|
-
const s3 = await
|
|
10084
|
+
const s3 = await _chunk53IPQJVHjs.S3Service.getPreSignedUrl({
|
|
10106
10085
|
key: values.logo,
|
|
10107
10086
|
contentType,
|
|
10108
10087
|
isPublic: true
|
|
@@ -10121,9 +10100,9 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10121
10100
|
moduleIds: values.moduleIds
|
|
10122
10101
|
};
|
|
10123
10102
|
try {
|
|
10124
|
-
const updatedCompany = company ? await
|
|
10103
|
+
const updatedCompany = company ? await _chunk53IPQJVHjs.CompanyService.update(payload) : await _chunk53IPQJVHjs.CompanyService.create(payload);
|
|
10125
10104
|
if (onRevalidate) {
|
|
10126
|
-
await onRevalidate(generateUrl({ page:
|
|
10105
|
+
await onRevalidate(generateUrl({ page: _chunk53IPQJVHjs.Modules.Company, id: updatedCompany.id, language: `[locale]` }));
|
|
10127
10106
|
}
|
|
10128
10107
|
if (company && propagateChanges) {
|
|
10129
10108
|
_cookiesnext.setCookie.call(void 0, "reloadData", "true", { path: "/" });
|
|
@@ -10141,7 +10120,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10141
10120
|
}, "onSubmit");
|
|
10142
10121
|
_react.useEffect.call(void 0, () => {
|
|
10143
10122
|
async function fetchFeatures() {
|
|
10144
|
-
const allfeatures = await
|
|
10123
|
+
const allfeatures = await _chunk53IPQJVHjs.FeatureService.findMany({});
|
|
10145
10124
|
if (hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator)) {
|
|
10146
10125
|
setFeatures(allfeatures);
|
|
10147
10126
|
} else {
|
|
@@ -10237,9 +10216,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyEditor, "CompanyEditor");
|
|
|
10237
10216
|
function CompaniesList() {
|
|
10238
10217
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10239
10218
|
const data = useDataListRetriever({
|
|
10240
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
10219
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk53IPQJVHjs.CompanyService.findMany(params), "retriever"),
|
|
10241
10220
|
retrieverParams: {},
|
|
10242
|
-
module:
|
|
10221
|
+
module: _chunk53IPQJVHjs.Modules.Company
|
|
10243
10222
|
});
|
|
10244
10223
|
const functions = [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, {}, "create-account")];
|
|
10245
10224
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10247,7 +10226,7 @@ function CompaniesList() {
|
|
|
10247
10226
|
{
|
|
10248
10227
|
data,
|
|
10249
10228
|
fields: ["name" /* name */, "createdAt" /* createdAt */],
|
|
10250
|
-
tableGeneratorType:
|
|
10229
|
+
tableGeneratorType: _chunk53IPQJVHjs.Modules.Company,
|
|
10251
10230
|
functions,
|
|
10252
10231
|
title: t(`entities.companies`, { count: 2 })
|
|
10253
10232
|
}
|
|
@@ -10268,14 +10247,14 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
10268
10247
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10269
10248
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
10270
10249
|
const [company, setCompany] = _react.useState.call(void 0,
|
|
10271
|
-
dehydratedCompany ?
|
|
10250
|
+
dehydratedCompany ? _chunk53IPQJVHjs.rehydrate.call(void 0, _chunk53IPQJVHjs.Modules.Company, dehydratedCompany) : void 0
|
|
10272
10251
|
);
|
|
10273
10252
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10274
10253
|
const response = [];
|
|
10275
10254
|
if (company)
|
|
10276
10255
|
response.push({
|
|
10277
10256
|
name: company.name,
|
|
10278
|
-
href: generateUrl({ page:
|
|
10257
|
+
href: generateUrl({ page: _chunk53IPQJVHjs.Modules.Company })
|
|
10279
10258
|
});
|
|
10280
10259
|
return response;
|
|
10281
10260
|
}, "breadcrumb");
|
|
@@ -10285,9 +10264,9 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
10285
10264
|
};
|
|
10286
10265
|
if (company) response.element = company.name;
|
|
10287
10266
|
const functions = [];
|
|
10288
|
-
if (company && (hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).CompanyAdministrator)) && hasPermissionToModule({ module:
|
|
10267
|
+
if (company && (hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).CompanyAdministrator)) && hasPermissionToModule({ module: _chunk53IPQJVHjs.Modules.Company, action: "delete" /* Delete */ }))
|
|
10289
10268
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleter, { company }, "companyDeleter"));
|
|
10290
|
-
if (hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module:
|
|
10269
|
+
if (hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module: _chunk53IPQJVHjs.Modules.Company, action: "update" /* Update */ })) {
|
|
10291
10270
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, { company, propagateChanges: setCompany }, "companyEditor"));
|
|
10292
10271
|
}
|
|
10293
10272
|
if (functions.length > 0) response.functions = functions;
|
|
@@ -10406,7 +10385,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
10406
10385
|
setIsLoading(true);
|
|
10407
10386
|
setError(null);
|
|
10408
10387
|
try {
|
|
10409
|
-
const fetchedNotifications = await
|
|
10388
|
+
const fetchedNotifications = await _chunk53IPQJVHjs.NotificationService.findMany({});
|
|
10410
10389
|
setNotifications(fetchedNotifications);
|
|
10411
10390
|
setLastLoaded(Date.now());
|
|
10412
10391
|
} catch (error2) {
|
|
@@ -10436,7 +10415,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
10436
10415
|
try {
|
|
10437
10416
|
const data = {
|
|
10438
10417
|
data: ids.map((id) => ({
|
|
10439
|
-
type:
|
|
10418
|
+
type: _chunk53IPQJVHjs.Modules.Notification.name,
|
|
10440
10419
|
id,
|
|
10441
10420
|
attributes: {
|
|
10442
10421
|
isRead: true
|
|
@@ -10445,8 +10424,8 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
10445
10424
|
relationships: {}
|
|
10446
10425
|
}))
|
|
10447
10426
|
};
|
|
10448
|
-
await
|
|
10449
|
-
const allNotifications = await
|
|
10427
|
+
await _chunk53IPQJVHjs.NotificationService.markAsRead({ data });
|
|
10428
|
+
const allNotifications = await _chunk53IPQJVHjs.NotificationService.findMany({});
|
|
10450
10429
|
setNotifications(allNotifications);
|
|
10451
10430
|
setLastLoaded(Date.now());
|
|
10452
10431
|
} catch (error2) {
|
|
@@ -10744,18 +10723,18 @@ var RoleProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
10744
10723
|
const generateUrl = usePageUrlGenerator();
|
|
10745
10724
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10746
10725
|
const [role, setRole] = _react.useState.call(void 0,
|
|
10747
|
-
dehydratedRole ?
|
|
10726
|
+
dehydratedRole ? _chunk53IPQJVHjs.rehydrate.call(void 0, _chunk53IPQJVHjs.Modules.Role, dehydratedRole) : void 0
|
|
10748
10727
|
);
|
|
10749
10728
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10750
10729
|
const response = [];
|
|
10751
10730
|
response.push({
|
|
10752
10731
|
name: t(`entities.roles`, { count: 2 }),
|
|
10753
|
-
href: generateUrl({ page:
|
|
10732
|
+
href: generateUrl({ page: _chunk53IPQJVHjs.Modules.Role })
|
|
10754
10733
|
});
|
|
10755
10734
|
if (role)
|
|
10756
10735
|
response.push({
|
|
10757
10736
|
name: role.name,
|
|
10758
|
-
href: generateUrl({ page:
|
|
10737
|
+
href: generateUrl({ page: _chunk53IPQJVHjs.Modules.Role, id: role.id })
|
|
10759
10738
|
});
|
|
10760
10739
|
return response;
|
|
10761
10740
|
}, "breadcrumb");
|
|
@@ -10946,7 +10925,7 @@ function usePushNotifications() {
|
|
|
10946
10925
|
};
|
|
10947
10926
|
const subscriptionHash = btoa(JSON.stringify(plainSubscription));
|
|
10948
10927
|
if (lastRegisteredSubscription !== subscriptionHash) {
|
|
10949
|
-
await
|
|
10928
|
+
await _chunk53IPQJVHjs.PushService.register({ data: plainSubscription });
|
|
10950
10929
|
sessionStorage.setItem(sessionKey, subscriptionHash);
|
|
10951
10930
|
}
|
|
10952
10931
|
} catch (error) {
|
|
@@ -11029,7 +11008,7 @@ function useSocket({ token }) {
|
|
|
11029
11008
|
});
|
|
11030
11009
|
}, "handleMessage");
|
|
11031
11010
|
const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
|
|
11032
|
-
const notification =
|
|
11011
|
+
const notification = _chunk53IPQJVHjs.rehydrate.call(void 0, _chunk53IPQJVHjs.Modules.Notification, data);
|
|
11033
11012
|
if (notification) {
|
|
11034
11013
|
setSocketNotifications((prev) => {
|
|
11035
11014
|
const newNotifications = [...prev, notification];
|
|
@@ -11144,7 +11123,7 @@ function ContentTitle({ module, type, element, functions, className }) {
|
|
|
11144
11123
|
setClientFunctions(functions);
|
|
11145
11124
|
}, [functions]);
|
|
11146
11125
|
if (!element) return null;
|
|
11147
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
11126
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk53IPQJVHjs.cn.call(void 0, `mb-4 flex items-center justify-between gap-x-4 w-full`, className), children: [
|
|
11148
11127
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col w-full", children: [
|
|
11149
11128
|
type && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `text-muted-foreground text-xl font-light flex gap-x-2 items-center`, children: [
|
|
11150
11129
|
module && module.icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, module.icon, { className: "w-5 h-5 inline-block" }),
|
|
@@ -11262,7 +11241,7 @@ function PageContainer({ children, testId, className }) {
|
|
|
11262
11241
|
const headerChildren = useHeaderChildren();
|
|
11263
11242
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex h-full w-full flex-col`, "data-testid": testId, children: [
|
|
11264
11243
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header, { children: headerChildren }),
|
|
11265
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className:
|
|
11244
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className: _chunk53IPQJVHjs.cn.call(void 0, `flex w-full flex-1 flex-col gap-y-4 pt-4 pl-4 pr-4 pb-20`, className), children })
|
|
11266
11245
|
] });
|
|
11267
11246
|
}
|
|
11268
11247
|
_chunk7QVYU63Ejs.__name.call(void 0, PageContainer, "PageContainer");
|
|
@@ -11371,7 +11350,7 @@ function TabsContainer({
|
|
|
11371
11350
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11372
11351
|
TabsList,
|
|
11373
11352
|
{
|
|
11374
|
-
className:
|
|
11353
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
11375
11354
|
`${style ? `my-4 flex w-full justify-start rounded-none border-b bg-transparent pb-0` : ``}`,
|
|
11376
11355
|
tabsListClassName
|
|
11377
11356
|
),
|
|
@@ -11379,7 +11358,7 @@ function TabsContainer({
|
|
|
11379
11358
|
TabsTrigger,
|
|
11380
11359
|
{
|
|
11381
11360
|
value: tab.label,
|
|
11382
|
-
className:
|
|
11361
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
11383
11362
|
`${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`}`,
|
|
11384
11363
|
tabsTriggerClassName
|
|
11385
11364
|
),
|
|
@@ -11399,7 +11378,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, TabsContainer, "TabsContainer");
|
|
|
11399
11378
|
// src/components/contents/AttributeElement.tsx
|
|
11400
11379
|
|
|
11401
11380
|
function AttributeElement({ inline, title, value, className }) {
|
|
11402
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
11381
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk53IPQJVHjs.cn.call(void 0, `flex ${inline === true ? "flex-row" : "flex-col"} my-1 justify-start`, className), children: [
|
|
11403
11382
|
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${inline === true ? "min-w-48 pr-4" : "w-full"} text-sm font-semibold`, children: title }),
|
|
11404
11383
|
value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col text-sm", children: value })
|
|
11405
11384
|
] });
|
|
@@ -11422,7 +11401,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AllowedUsersDetails, "AllowedUsersDetails")
|
|
|
11422
11401
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
11423
11402
|
|
|
11424
11403
|
|
|
11425
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
11404
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-4MDHRUS2.js"))), {
|
|
11426
11405
|
ssr: false
|
|
11427
11406
|
});
|
|
11428
11407
|
var BlockNoteEditorContainer = React3.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -11473,7 +11452,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, PageContainerContentDetails, "PageContainer
|
|
|
11473
11452
|
|
|
11474
11453
|
function PageContentContainer({ header, details, footer, content }) {
|
|
11475
11454
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
11476
|
-
const isMobile =
|
|
11455
|
+
const isMobile = _chunk53IPQJVHjs.useIsMobile.call(void 0, );
|
|
11477
11456
|
_react.useEffect.call(void 0, () => {
|
|
11478
11457
|
setMounted(true);
|
|
11479
11458
|
}, []);
|
|
@@ -11805,14 +11784,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, useJsonApiMutation, "useJsonApiMutation");
|
|
|
11805
11784
|
function useRehydration(classKey, data) {
|
|
11806
11785
|
return _react.useMemo.call(void 0, () => {
|
|
11807
11786
|
if (!data) return null;
|
|
11808
|
-
return
|
|
11787
|
+
return _chunk53IPQJVHjs.RehydrationFactory.rehydrate(classKey, data);
|
|
11809
11788
|
}, [classKey, data]);
|
|
11810
11789
|
}
|
|
11811
11790
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydration, "useRehydration");
|
|
11812
11791
|
function useRehydrationList(classKey, data) {
|
|
11813
11792
|
return _react.useMemo.call(void 0, () => {
|
|
11814
11793
|
if (!data || data.length === 0) return [];
|
|
11815
|
-
return
|
|
11794
|
+
return _chunk53IPQJVHjs.RehydrationFactory.rehydrateList(classKey, data);
|
|
11816
11795
|
}, [classKey, data]);
|
|
11817
11796
|
}
|
|
11818
11797
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydrationList, "useRehydrationList");
|
|
@@ -11854,9 +11833,9 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
11854
11833
|
{
|
|
11855
11834
|
href: hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
11856
11835
|
page: "/administration",
|
|
11857
|
-
id: _optionalChain([
|
|
11836
|
+
id: _optionalChain([_chunk53IPQJVHjs.Modules, 'access', _303 => _303.Company, 'access', _304 => _304.pageUrl, 'optionalAccess', _305 => _305.substring, 'call', _306 => _306(1)]),
|
|
11858
11837
|
childPage: company.id
|
|
11859
|
-
}) : generateUrl({ page:
|
|
11838
|
+
}) : generateUrl({ page: _chunk53IPQJVHjs.Modules.Company, id: company.id }),
|
|
11860
11839
|
children: row.getValue("name")
|
|
11861
11840
|
}
|
|
11862
11841
|
);
|
|
@@ -11971,7 +11950,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
11971
11950
|
header: t(`role.fields.name.label`),
|
|
11972
11951
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
11973
11952
|
const role = row.original.jsonApiData;
|
|
11974
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page:
|
|
11953
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunk53IPQJVHjs.Modules.Role, id: role.id }), children: row.getValue("name") });
|
|
11975
11954
|
}, "cell"),
|
|
11976
11955
|
enableSorting: false,
|
|
11977
11956
|
enableHiding: false
|
|
@@ -12008,7 +11987,7 @@ var useUserSearch = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
|
12008
11987
|
if (search === searchQueryRef.current && users.length > 0) return;
|
|
12009
11988
|
setIsLoading(true);
|
|
12010
11989
|
searchQueryRef.current = search;
|
|
12011
|
-
const fetchedUsers = await
|
|
11990
|
+
const fetchedUsers = await _chunk53IPQJVHjs.UserService.findMany({ search, fetchAll: true });
|
|
12012
11991
|
setUsers(fetchedUsers);
|
|
12013
11992
|
} catch (error) {
|
|
12014
11993
|
console.error("Failed to load users:", error);
|
|
@@ -12074,8 +12053,8 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
12074
12053
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
12075
12054
|
Link,
|
|
12076
12055
|
{
|
|
12077
|
-
href: generateUrl({ page:
|
|
12078
|
-
className:
|
|
12056
|
+
href: generateUrl({ page: _chunk53IPQJVHjs.Modules.User, id: user.id }),
|
|
12057
|
+
className: _chunk53IPQJVHjs.cn.call(void 0,
|
|
12079
12058
|
`flex items-center justify-start gap-2`,
|
|
12080
12059
|
user.isDeleted || !user.isActivated ? "text-muted-foreground italic" : ""
|
|
12081
12060
|
),
|
|
@@ -12169,11 +12148,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
12169
12148
|
header: t(`content.fields.name.label`),
|
|
12170
12149
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
12171
12150
|
const content = row.original.jsonApiData;
|
|
12172
|
-
const contentModule = content.contentType ?
|
|
12151
|
+
const contentModule = content.contentType ? _chunk53IPQJVHjs.Modules.findByModelName(content.contentType) : void 0;
|
|
12173
12152
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
12174
12153
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
|
|
12175
12154
|
/* @__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: [
|
|
12176
|
-
contentModule &&
|
|
12155
|
+
contentModule && _chunk53IPQJVHjs.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
12177
12156
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: link, children: content.name })
|
|
12178
12157
|
] }) }),
|
|
12179
12158
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: content.tldr })
|
|
@@ -12310,7 +12289,7 @@ function useOAuthClients() {
|
|
|
12310
12289
|
setIsLoading(true);
|
|
12311
12290
|
setError(null);
|
|
12312
12291
|
try {
|
|
12313
|
-
const fetchedClients = await
|
|
12292
|
+
const fetchedClients = await _chunk53IPQJVHjs.OAuthService.listClients();
|
|
12314
12293
|
setClients(fetchedClients);
|
|
12315
12294
|
} catch (err) {
|
|
12316
12295
|
console.error("[useOAuthClients] Failed to fetch clients:", err);
|
|
@@ -12327,7 +12306,7 @@ function useOAuthClients() {
|
|
|
12327
12306
|
setIsLoading(true);
|
|
12328
12307
|
setError(null);
|
|
12329
12308
|
try {
|
|
12330
|
-
const result = await
|
|
12309
|
+
const result = await _chunk53IPQJVHjs.OAuthService.createClient(data);
|
|
12331
12310
|
addClient(result.client);
|
|
12332
12311
|
if (result.clientSecret) {
|
|
12333
12312
|
setNewClientSecret({
|
|
@@ -12374,7 +12353,7 @@ function useOAuthClient(clientId) {
|
|
|
12374
12353
|
setIsLoading(true);
|
|
12375
12354
|
setError(null);
|
|
12376
12355
|
try {
|
|
12377
|
-
const fetched = await
|
|
12356
|
+
const fetched = await _chunk53IPQJVHjs.OAuthService.getClient({ clientId });
|
|
12378
12357
|
setFetchedClient(fetched);
|
|
12379
12358
|
} catch (err) {
|
|
12380
12359
|
console.error("[useOAuthClient] Failed to fetch client:", err);
|
|
@@ -12394,7 +12373,7 @@ function useOAuthClient(clientId) {
|
|
|
12394
12373
|
setIsLoading(true);
|
|
12395
12374
|
setError(null);
|
|
12396
12375
|
try {
|
|
12397
|
-
const updated = await
|
|
12376
|
+
const updated = await _chunk53IPQJVHjs.OAuthService.updateClient({ clientId, data });
|
|
12398
12377
|
updateClientInStore(updated);
|
|
12399
12378
|
setFetchedClient(updated);
|
|
12400
12379
|
} catch (err) {
|
|
@@ -12413,7 +12392,7 @@ function useOAuthClient(clientId) {
|
|
|
12413
12392
|
setIsLoading(true);
|
|
12414
12393
|
setError(null);
|
|
12415
12394
|
try {
|
|
12416
|
-
await
|
|
12395
|
+
await _chunk53IPQJVHjs.OAuthService.deleteClient({ clientId });
|
|
12417
12396
|
removeClientFromStore(clientId);
|
|
12418
12397
|
} catch (err) {
|
|
12419
12398
|
console.error("[useOAuthClient] Failed to delete client:", err);
|
|
@@ -12429,7 +12408,7 @@ function useOAuthClient(clientId) {
|
|
|
12429
12408
|
setIsLoading(true);
|
|
12430
12409
|
setError(null);
|
|
12431
12410
|
try {
|
|
12432
|
-
const result = await
|
|
12411
|
+
const result = await _chunk53IPQJVHjs.OAuthService.regenerateSecret({ clientId });
|
|
12433
12412
|
setNewClientSecret({
|
|
12434
12413
|
clientId,
|
|
12435
12414
|
secret: result.clientSecret
|
|
@@ -12473,7 +12452,7 @@ function useOAuthConsent(params) {
|
|
|
12473
12452
|
setIsLoading(true);
|
|
12474
12453
|
setError(null);
|
|
12475
12454
|
try {
|
|
12476
|
-
const info = await
|
|
12455
|
+
const info = await _chunk53IPQJVHjs.OAuthService.getAuthorizationInfo(params);
|
|
12477
12456
|
setClientInfo(info);
|
|
12478
12457
|
} catch (err) {
|
|
12479
12458
|
console.error("[useOAuthConsent] Failed to fetch authorization info:", err);
|
|
@@ -12495,7 +12474,7 @@ function useOAuthConsent(params) {
|
|
|
12495
12474
|
setIsSubmitting(true);
|
|
12496
12475
|
setError(null);
|
|
12497
12476
|
try {
|
|
12498
|
-
const result = await
|
|
12477
|
+
const result = await _chunk53IPQJVHjs.OAuthService.approveAuthorization(params);
|
|
12499
12478
|
if (result.redirectUrl) {
|
|
12500
12479
|
window.location.href = result.redirectUrl;
|
|
12501
12480
|
}
|
|
@@ -12509,7 +12488,7 @@ function useOAuthConsent(params) {
|
|
|
12509
12488
|
setIsSubmitting(true);
|
|
12510
12489
|
setError(null);
|
|
12511
12490
|
try {
|
|
12512
|
-
const result = await
|
|
12491
|
+
const result = await _chunk53IPQJVHjs.OAuthService.denyAuthorization(params);
|
|
12513
12492
|
if (result.redirectUrl) {
|
|
12514
12493
|
window.location.href = result.redirectUrl;
|
|
12515
12494
|
}
|
|
@@ -12813,7 +12792,7 @@ function Register() {
|
|
|
12813
12792
|
marketingConsent: _nullishCoalesce(values.marketingConsent, () => ( false)),
|
|
12814
12793
|
marketingConsentAt: values.marketingConsent ? (/* @__PURE__ */ new Date()).toISOString() : null
|
|
12815
12794
|
};
|
|
12816
|
-
await
|
|
12795
|
+
await _chunk53IPQJVHjs.AuthService.register(payload);
|
|
12817
12796
|
setShowConfirmation(true);
|
|
12818
12797
|
} catch (e) {
|
|
12819
12798
|
errorToast({ error: e });
|
|
@@ -13067,7 +13046,7 @@ function AcceptInvitation() {
|
|
|
13067
13046
|
const payload = {
|
|
13068
13047
|
code
|
|
13069
13048
|
};
|
|
13070
|
-
await
|
|
13049
|
+
await _chunk53IPQJVHjs.AuthService.validateCode(payload);
|
|
13071
13050
|
} catch (e) {
|
|
13072
13051
|
setError(e instanceof Error ? e.message : String(e));
|
|
13073
13052
|
errorToast({ title: t(`common.errors.error`), error: e });
|
|
@@ -13105,9 +13084,9 @@ function AcceptInvitation() {
|
|
|
13105
13084
|
code: _optionalChain([params, 'optionalAccess', _332 => _332.code]),
|
|
13106
13085
|
password: values.password
|
|
13107
13086
|
};
|
|
13108
|
-
await
|
|
13087
|
+
await _chunk53IPQJVHjs.AuthService.acceptInvitation(payload);
|
|
13109
13088
|
setShowConfirmation(true);
|
|
13110
|
-
|
|
13089
|
+
_chunk53IPQJVHjs.showToast.call(void 0, t("auth.account_activated"), {
|
|
13111
13090
|
description: t("auth.account_activated_description")
|
|
13112
13091
|
});
|
|
13113
13092
|
setTimeout(() => {
|
|
@@ -13167,10 +13146,10 @@ function ActivateAccount() {
|
|
|
13167
13146
|
const payload = {
|
|
13168
13147
|
activationCode: code
|
|
13169
13148
|
};
|
|
13170
|
-
await
|
|
13149
|
+
await _chunk53IPQJVHjs.AuthService.activate(payload);
|
|
13171
13150
|
setShowConfirmation(true);
|
|
13172
13151
|
setParams(void 0);
|
|
13173
|
-
|
|
13152
|
+
_chunk53IPQJVHjs.showToast.call(void 0, t("auth.account_activated"), {
|
|
13174
13153
|
description: t("auth.account_activated_description")
|
|
13175
13154
|
});
|
|
13176
13155
|
setTimeout(() => {
|
|
@@ -13210,8 +13189,8 @@ function Cookies({ dehydratedAuth, page }) {
|
|
|
13210
13189
|
_react.useEffect.call(void 0, () => {
|
|
13211
13190
|
if (hasSaved) return;
|
|
13212
13191
|
async function saveTokenOnServer() {
|
|
13213
|
-
await
|
|
13214
|
-
const auth =
|
|
13192
|
+
await _chunk53IPQJVHjs.AuthService.saveToken({ dehydratedAuth });
|
|
13193
|
+
const auth = _chunk53IPQJVHjs.rehydrate.call(void 0, _chunk53IPQJVHjs.Modules.Auth, dehydratedAuth);
|
|
13215
13194
|
setUser(auth.user);
|
|
13216
13195
|
setHasSaved(true);
|
|
13217
13196
|
if (page) {
|
|
@@ -13254,7 +13233,7 @@ function ForgotPassword() {
|
|
|
13254
13233
|
const payload = {
|
|
13255
13234
|
email: values.email
|
|
13256
13235
|
};
|
|
13257
|
-
await
|
|
13236
|
+
await _chunk53IPQJVHjs.AuthService.initialiseForgotPassword(payload);
|
|
13258
13237
|
setShowConfirmation(true);
|
|
13259
13238
|
} catch (e) {
|
|
13260
13239
|
errorToast({ error: e });
|
|
@@ -13325,7 +13304,7 @@ function Login() {
|
|
|
13325
13304
|
});
|
|
13326
13305
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
13327
13306
|
try {
|
|
13328
|
-
const user = await
|
|
13307
|
+
const user = await _chunk53IPQJVHjs.AuthService.login({
|
|
13329
13308
|
email: values.email,
|
|
13330
13309
|
password: values.password
|
|
13331
13310
|
});
|
|
@@ -13408,7 +13387,7 @@ function Logout() {
|
|
|
13408
13387
|
const generateUrl = usePageUrlGenerator();
|
|
13409
13388
|
_react.useEffect.call(void 0, () => {
|
|
13410
13389
|
const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
13411
|
-
await
|
|
13390
|
+
await _chunk53IPQJVHjs.AuthService.logout();
|
|
13412
13391
|
window.location.href = generateUrl({ page: `/` });
|
|
13413
13392
|
}, "logOut");
|
|
13414
13393
|
logOut();
|
|
@@ -13423,7 +13402,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, Logout, "Logout");
|
|
|
13423
13402
|
function RefreshUser() {
|
|
13424
13403
|
const { setUser } = useCurrentUserContext();
|
|
13425
13404
|
const loadFullUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
13426
|
-
const fullUser = await
|
|
13405
|
+
const fullUser = await _chunk53IPQJVHjs.UserService.findFullUser();
|
|
13427
13406
|
if (fullUser) {
|
|
13428
13407
|
setUser(fullUser);
|
|
13429
13408
|
const token = {
|
|
@@ -13435,7 +13414,7 @@ function RefreshUser() {
|
|
|
13435
13414
|
return { id: module.id, permissions: module.permissions };
|
|
13436
13415
|
})
|
|
13437
13416
|
};
|
|
13438
|
-
await _optionalChain([
|
|
13417
|
+
await _optionalChain([_chunk53IPQJVHjs.getTokenHandler.call(void 0, ), 'optionalAccess', _339 => _339.updateToken, 'call', _340 => _340(token)]);
|
|
13439
13418
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
13440
13419
|
}
|
|
13441
13420
|
}, "loadFullUser");
|
|
@@ -13466,7 +13445,7 @@ function ResetPassword() {
|
|
|
13466
13445
|
const payload = {
|
|
13467
13446
|
code
|
|
13468
13447
|
};
|
|
13469
|
-
await
|
|
13448
|
+
await _chunk53IPQJVHjs.AuthService.validateCode(payload);
|
|
13470
13449
|
} catch (e) {
|
|
13471
13450
|
setError(e instanceof Error ? e.message : String(e));
|
|
13472
13451
|
errorToast({ title: t(`common.errors.error`), error: e });
|
|
@@ -13504,9 +13483,9 @@ function ResetPassword() {
|
|
|
13504
13483
|
code: _optionalChain([params, 'optionalAccess', _342 => _342.code]),
|
|
13505
13484
|
password: values.password
|
|
13506
13485
|
};
|
|
13507
|
-
await
|
|
13486
|
+
await _chunk53IPQJVHjs.AuthService.resetPassword(payload);
|
|
13508
13487
|
setShowConfirmation(true);
|
|
13509
|
-
|
|
13488
|
+
_chunk53IPQJVHjs.showToast.call(void 0, t(`auth.reset_success`), {
|
|
13510
13489
|
description: t(`auth.reset_success_description`)
|
|
13511
13490
|
});
|
|
13512
13491
|
setTimeout(() => {
|
|
@@ -13547,12 +13526,12 @@ function ContentsList({ contentList }) {
|
|
|
13547
13526
|
_chunk7QVYU63Ejs.__name.call(void 0, ContentsList, "ContentsList");
|
|
13548
13527
|
function ContentsListElement({ content }) {
|
|
13549
13528
|
const generateUrl = usePageUrlGenerator();
|
|
13550
|
-
const contentModule = content.contentType ?
|
|
13529
|
+
const contentModule = content.contentType ? _chunk53IPQJVHjs.Modules.findByModelName(content.contentType) : void 0;
|
|
13551
13530
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
13552
13531
|
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: [
|
|
13553
13532
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCard, { children: [
|
|
13554
13533
|
/* @__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: [
|
|
13555
|
-
contentModule &&
|
|
13534
|
+
contentModule && _chunk53IPQJVHjs.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
13556
13535
|
content.name
|
|
13557
13536
|
] }) }),
|
|
13558
13537
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCardContent, { className: "flex max-h-96 w-96 flex-col gap-y-4 overflow-y-auto", children: [
|
|
@@ -13571,8 +13550,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListElement, "ContentsListElement")
|
|
|
13571
13550
|
function ContentsListById({ contentIds }) {
|
|
13572
13551
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13573
13552
|
const data = useDataListRetriever({
|
|
13574
|
-
module:
|
|
13575
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
13553
|
+
module: _chunk53IPQJVHjs.Modules.Content,
|
|
13554
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk53IPQJVHjs.ContentService.findMany(params), "retriever"),
|
|
13576
13555
|
retrieverParams: { contentIds }
|
|
13577
13556
|
});
|
|
13578
13557
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -13580,7 +13559,7 @@ function ContentsListById({ contentIds }) {
|
|
|
13580
13559
|
{
|
|
13581
13560
|
data,
|
|
13582
13561
|
fields: ["name" /* name */, "authors" /* authors */, "updatedAt" /* updatedAt */],
|
|
13583
|
-
tableGeneratorType:
|
|
13562
|
+
tableGeneratorType: _chunk53IPQJVHjs.Modules.Content,
|
|
13584
13563
|
title: t(`common.relevant`)
|
|
13585
13564
|
}
|
|
13586
13565
|
);
|
|
@@ -13593,8 +13572,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListById, "ContentsListById");
|
|
|
13593
13572
|
function RelevantContentsList({ id }) {
|
|
13594
13573
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13595
13574
|
const data = useDataListRetriever({
|
|
13596
|
-
module:
|
|
13597
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
13575
|
+
module: _chunk53IPQJVHjs.Modules.Content,
|
|
13576
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk53IPQJVHjs.ContentService.findRelevant(params), "retriever"),
|
|
13598
13577
|
retrieverParams: { id }
|
|
13599
13578
|
});
|
|
13600
13579
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -13602,7 +13581,7 @@ function RelevantContentsList({ id }) {
|
|
|
13602
13581
|
{
|
|
13603
13582
|
data,
|
|
13604
13583
|
fields: ["name" /* name */, "authors" /* authors */, "relevance" /* relevance */, "updatedAt" /* updatedAt */],
|
|
13605
|
-
tableGeneratorType:
|
|
13584
|
+
tableGeneratorType: _chunk53IPQJVHjs.Modules.Content,
|
|
13606
13585
|
title: t(`common.relevant`)
|
|
13607
13586
|
}
|
|
13608
13587
|
);
|
|
@@ -13655,12 +13634,12 @@ function NotificationsList({ archived }) {
|
|
|
13655
13634
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13656
13635
|
const generateUrl = usePageUrlGenerator();
|
|
13657
13636
|
const data = useDataListRetriever({
|
|
13658
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
13637
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk53IPQJVHjs.NotificationService.findMany(params), "retriever"),
|
|
13659
13638
|
retrieverParams: { isArchived: archived },
|
|
13660
|
-
module:
|
|
13639
|
+
module: _chunk53IPQJVHjs.Modules.Notification
|
|
13661
13640
|
});
|
|
13662
13641
|
const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
|
|
13663
|
-
await
|
|
13642
|
+
await _chunk53IPQJVHjs.NotificationService.archive({ id: notification.id });
|
|
13664
13643
|
data.removeElement(notification);
|
|
13665
13644
|
}, "archiveNotification");
|
|
13666
13645
|
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: [
|
|
@@ -13674,7 +13653,7 @@ function NotificationsList({ archived }) {
|
|
|
13674
13653
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _343 => _343.data, 'optionalAccess', _344 => _344.map, 'call', _345 => _345((notification) => {
|
|
13675
13654
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
13676
13655
|
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: [
|
|
13677
|
-
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:
|
|
13656
|
+
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: _chunk53IPQJVHjs.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" }),
|
|
13678
13657
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
13679
13658
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
13680
13659
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
@@ -13817,7 +13796,7 @@ function NotificationModalContent({ isOpen, setIsOpen }) {
|
|
|
13817
13796
|
batch.forEach((notification) => {
|
|
13818
13797
|
addNotification(notification);
|
|
13819
13798
|
const toastNotification = generateToastNotification(notification, t, generateUrl);
|
|
13820
|
-
|
|
13799
|
+
_chunk53IPQJVHjs.showToast.call(void 0, toastNotification.title, {
|
|
13821
13800
|
description: toastNotification.description,
|
|
13822
13801
|
action: toastNotification.action
|
|
13823
13802
|
});
|
|
@@ -13978,7 +13957,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
13978
13957
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13979
13958
|
_react.useEffect.call(void 0, () => {
|
|
13980
13959
|
async function checkCompanyAdminDeletability() {
|
|
13981
|
-
const roleUsers = await
|
|
13960
|
+
const roleUsers = await _chunk53IPQJVHjs.UserService.findAllUsersByRole({
|
|
13982
13961
|
roleId: role.id
|
|
13983
13962
|
});
|
|
13984
13963
|
if (roleUsers.length > 1) setCanRemove(true);
|
|
@@ -13992,7 +13971,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
13992
13971
|
}, [role]);
|
|
13993
13972
|
const remove = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
13994
13973
|
try {
|
|
13995
|
-
await
|
|
13974
|
+
await _chunk53IPQJVHjs.RoleService.removeUserFromRole({
|
|
13996
13975
|
roleId: role.id,
|
|
13997
13976
|
userId: user.id
|
|
13998
13977
|
});
|
|
@@ -14055,12 +14034,12 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
14055
14034
|
const [roles, setRoles] = _react.useState.call(void 0, []);
|
|
14056
14035
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
14057
14036
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (role) => {
|
|
14058
|
-
await
|
|
14037
|
+
await _chunk53IPQJVHjs.RoleService.addUserToRole({
|
|
14059
14038
|
roleId: role.id,
|
|
14060
14039
|
userId: user.id
|
|
14061
14040
|
});
|
|
14062
14041
|
setRoles(roles.filter((u) => u.id !== role.id));
|
|
14063
|
-
|
|
14042
|
+
_chunk53IPQJVHjs.showToast.call(void 0,
|
|
14064
14043
|
t(`common.association.label`, {
|
|
14065
14044
|
source: t(`entities.roles`, { count: 1 }),
|
|
14066
14045
|
destination: t(`entities.users`, { count: 1 })
|
|
@@ -14079,7 +14058,7 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
14079
14058
|
const searchRoles = _react.useCallback.call(void 0,
|
|
14080
14059
|
async (term) => {
|
|
14081
14060
|
setRoles(
|
|
14082
|
-
await
|
|
14061
|
+
await _chunk53IPQJVHjs.RoleService.findAllRolesUserNotIn({
|
|
14083
14062
|
search: term,
|
|
14084
14063
|
userId: user.id
|
|
14085
14064
|
})
|
|
@@ -14147,16 +14126,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserRoleAdd, "UserRoleAdd");
|
|
|
14147
14126
|
function RolesList() {
|
|
14148
14127
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
14149
14128
|
const data = useDataListRetriever({
|
|
14150
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
14129
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk53IPQJVHjs.RoleService.findAllRoles(params), "retriever"),
|
|
14151
14130
|
retrieverParams: {},
|
|
14152
|
-
module:
|
|
14131
|
+
module: _chunk53IPQJVHjs.Modules.Role
|
|
14153
14132
|
});
|
|
14154
14133
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14155
14134
|
ContentListTable,
|
|
14156
14135
|
{
|
|
14157
14136
|
data,
|
|
14158
14137
|
fields: ["name" /* name */, "description" /* description */],
|
|
14159
|
-
tableGeneratorType:
|
|
14138
|
+
tableGeneratorType: _chunk53IPQJVHjs.Modules.Role,
|
|
14160
14139
|
title: t(`entities.roles`, { count: 2 })
|
|
14161
14140
|
}
|
|
14162
14141
|
);
|
|
@@ -14169,16 +14148,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RolesList, "RolesList");
|
|
|
14169
14148
|
function UserRolesList({ user }) {
|
|
14170
14149
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
14171
14150
|
const data = useDataListRetriever({
|
|
14172
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
14151
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk53IPQJVHjs.RoleService.findAllRolesByUser(params), "retriever"),
|
|
14173
14152
|
retrieverParams: { userId: user.id },
|
|
14174
|
-
module:
|
|
14153
|
+
module: _chunk53IPQJVHjs.Modules.Role
|
|
14175
14154
|
});
|
|
14176
14155
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14177
14156
|
ContentListTable,
|
|
14178
14157
|
{
|
|
14179
14158
|
data,
|
|
14180
14159
|
fields: ["name" /* name */, "description" /* description */],
|
|
14181
|
-
tableGeneratorType:
|
|
14160
|
+
tableGeneratorType: _chunk53IPQJVHjs.Modules.Role,
|
|
14182
14161
|
title: t(`entities.roles`, { count: 2 })
|
|
14183
14162
|
}
|
|
14184
14163
|
);
|
|
@@ -14296,7 +14275,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthRedirectUriInput, "OAuthRedirectUriInp
|
|
|
14296
14275
|
function OAuthScopeSelector({
|
|
14297
14276
|
value,
|
|
14298
14277
|
onChange,
|
|
14299
|
-
availableScopes =
|
|
14278
|
+
availableScopes = _chunk53IPQJVHjs.AVAILABLE_OAUTH_SCOPES,
|
|
14300
14279
|
disabled = false,
|
|
14301
14280
|
error,
|
|
14302
14281
|
label = "Allowed Scopes"
|
|
@@ -14623,7 +14602,7 @@ function OAuthClientForm({
|
|
|
14623
14602
|
description: formState.description.trim() || void 0,
|
|
14624
14603
|
redirectUris: formState.redirectUris.filter((uri) => uri.trim()),
|
|
14625
14604
|
allowedScopes: formState.allowedScopes,
|
|
14626
|
-
allowedGrantTypes:
|
|
14605
|
+
allowedGrantTypes: _chunk53IPQJVHjs.DEFAULT_GRANT_TYPES,
|
|
14627
14606
|
isConfidential: formState.isConfidential
|
|
14628
14607
|
};
|
|
14629
14608
|
await onSubmit(data);
|
|
@@ -14824,7 +14803,7 @@ function OAuthClientDetail({
|
|
|
14824
14803
|
] }),
|
|
14825
14804
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
14826
14805
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
14827
|
-
/* @__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([
|
|
14806
|
+
/* @__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([_chunk53IPQJVHjs.OAUTH_SCOPE_DISPLAY, 'access', _355 => _355[scope], 'optionalAccess', _356 => _356.name]) || scope }, scope)) })
|
|
14828
14807
|
] }),
|
|
14829
14808
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
14830
14809
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -15495,4 +15474,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthConsentScreen, "OAuthConsentScreen");
|
|
|
15495
15474
|
|
|
15496
15475
|
|
|
15497
15476
|
exports.JsonApiProvider = JsonApiProvider; exports.useJsonApiGet = useJsonApiGet; exports.useJsonApiMutation = useJsonApiMutation; exports.useRehydration = useRehydration; exports.useRehydrationList = useRehydrationList; exports.TableGeneratorRegistry = TableGeneratorRegistry; exports.tableGeneratorRegistry = tableGeneratorRegistry; exports.usePageUrlGenerator = usePageUrlGenerator; exports.useUrlRewriter = useUrlRewriter; exports.useDataListRetriever = useDataListRetriever; exports.useDebounce = useDebounce; exports.registerTableGenerator = registerTableGenerator; exports.useTableGenerator = useTableGenerator; exports.useCustomD3Graph = useCustomD3Graph; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.HeaderChildrenProvider = HeaderChildrenProvider; exports.useHeaderChildren = useHeaderChildren; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AlertAction = AlertAction; exports.buttonVariants = buttonVariants; exports.Button = Button; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogMedia = AlertDialogMedia; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.Avatar = Avatar; exports.AvatarImage = AvatarImage; exports.AvatarFallback = AvatarFallback; exports.AvatarBadge = AvatarBadge; exports.AvatarGroup = AvatarGroup; exports.AvatarGroupCount = AvatarGroupCount; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.Calendar = Calendar; exports.CalendarDayButton = CalendarDayButton; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardAction = CardAction; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.useCarousel = useCarousel; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger; exports.CollapsibleContent = CollapsibleContent; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.Input = Input; exports.Textarea = Textarea; exports.InputGroup = InputGroup; exports.InputGroupAddon = InputGroupAddon; exports.InputGroupButton = InputGroupButton; exports.InputGroupText = InputGroupText; exports.InputGroupInput = InputGroupInput; exports.InputGroupTextarea = InputGroupTextarea; exports.Command = Command; exports.CommandDialog = CommandDialog; exports.CommandInput = CommandInput; exports.CommandList = CommandList; exports.CommandEmpty = CommandEmpty; exports.CommandGroup = CommandGroup; exports.CommandSeparator = CommandSeparator; exports.CommandItem = CommandItem; exports.CommandShortcut = CommandShortcut; exports.ContextMenu = ContextMenu; exports.ContextMenuPortal = ContextMenuPortal; exports.ContextMenuTrigger = ContextMenuTrigger; exports.ContextMenuContent = ContextMenuContent; exports.ContextMenuGroup = ContextMenuGroup; exports.ContextMenuLabel = ContextMenuLabel; exports.ContextMenuItem = ContextMenuItem; exports.ContextMenuSub = ContextMenuSub; exports.ContextMenuSubTrigger = ContextMenuSubTrigger; exports.ContextMenuSubContent = ContextMenuSubContent; exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem; exports.ContextMenuRadioGroup = ContextMenuRadioGroup; exports.ContextMenuRadioItem = ContextMenuRadioItem; exports.ContextMenuSeparator = ContextMenuSeparator; exports.ContextMenuShortcut = ContextMenuShortcut; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerPortal = DrawerPortal; exports.DrawerClose = DrawerClose; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerFooter = DrawerFooter; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DropdownMenu = DropdownMenu; exports.DropdownMenuPortal = DropdownMenuPortal; exports.DropdownMenuTrigger = DropdownMenuTrigger; exports.DropdownMenuContent = DropdownMenuContent; exports.DropdownMenuGroup = DropdownMenuGroup; exports.DropdownMenuLabel = DropdownMenuLabel; exports.DropdownMenuItem = DropdownMenuItem; exports.DropdownMenuSub = DropdownMenuSub; exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger; exports.DropdownMenuSubContent = DropdownMenuSubContent; exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem; exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup; exports.DropdownMenuRadioItem = DropdownMenuRadioItem; exports.DropdownMenuSeparator = DropdownMenuSeparator; exports.DropdownMenuShortcut = DropdownMenuShortcut; exports.Label = Label; exports.Separator = Separator; exports.FieldSet = FieldSet; exports.FieldLegend = FieldLegend; exports.FieldGroup = FieldGroup; exports.Field = Field; exports.FieldContent = FieldContent; exports.FieldLabel = FieldLabel; exports.FieldTitle = FieldTitle; exports.FieldDescription = FieldDescription; exports.FieldSeparator = FieldSeparator; exports.FieldError = FieldError; exports.Form = Form; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.InputOTP = InputOTP; exports.InputOTPGroup = InputOTPGroup; exports.InputOTPSlot = InputOTPSlot; exports.InputOTPSeparator = InputOTPSeparator; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuPositioner = NavigationMenuPositioner; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.Popover = Popover; exports.PopoverTrigger = PopoverTrigger; exports.PopoverContent = PopoverContent; exports.PopoverHeader = PopoverHeader; exports.PopoverTitle = PopoverTitle; exports.PopoverDescription = PopoverDescription; exports.Progress = Progress; exports.ProgressTrack = ProgressTrack; exports.ProgressIndicator = ProgressIndicator; exports.ProgressLabel = ProgressLabel; exports.ProgressValue = ProgressValue; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.ResizablePanelGroup = ResizablePanelGroup; exports.ResizablePanel = ResizablePanel; exports.ResizableHandle = ResizableHandle; exports.ScrollArea = ScrollArea; exports.ScrollBar = ScrollBar; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Skeleton = Skeleton; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip2; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.useSidebar = useSidebar; exports.SidebarProvider = SidebarProvider; exports.Sidebar = Sidebar; exports.SidebarTrigger = SidebarTrigger; exports.SidebarRail = SidebarRail; exports.SidebarInset = SidebarInset; exports.SidebarInput = SidebarInput; exports.SidebarHeader = SidebarHeader; exports.SidebarFooter = SidebarFooter; exports.SidebarSeparator = SidebarSeparator; exports.SidebarContent = SidebarContent; exports.SidebarGroup = SidebarGroup; exports.SidebarGroupLabel = SidebarGroupLabel; exports.SidebarGroupAction = SidebarGroupAction; exports.SidebarGroupContent = SidebarGroupContent; exports.SidebarMenu = SidebarMenu; exports.SidebarMenuItem = SidebarMenuItem; exports.SidebarMenuButton = SidebarMenuButton; exports.SidebarMenuAction = SidebarMenuAction; exports.SidebarMenuBadge = SidebarMenuBadge; exports.SidebarMenuSkeleton = SidebarMenuSkeleton; exports.SidebarMenuSub = SidebarMenuSub; exports.SidebarMenuSubItem = SidebarMenuSubItem; exports.SidebarMenuSubButton = SidebarMenuSubButton; exports.Slider = Slider; exports.Toaster = Toaster; exports.Switch = Switch; exports.Table = Table; exports.TableHeader = TableHeader; exports.TableBody = TableBody; exports.TableFooter = TableFooter; exports.TableRow = TableRow; exports.TableHead = TableHead; exports.TableCell = TableCell; exports.TableCaption = TableCaption; exports.Tabs = Tabs; exports.tabsListVariants = tabsListVariants; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.KanbanRoot = KanbanRoot; exports.KanbanBoard = KanbanBoard; exports.KanbanColumn = KanbanColumn; exports.KanbanColumnHandle = KanbanColumnHandle; exports.KanbanItem = KanbanItem; exports.KanbanItemHandle = KanbanItemHandle; exports.KanbanOverlay = KanbanOverlay; exports.Link = Link; exports.MultiSelect = MultiSelect; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.Header = Header; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.UserDetails = UserDetails; exports.UserAvatar = UserAvatar; exports.UserIndexDetails = UserIndexDetails; exports.UserContainer = UserContainer; exports.UserIndexContainer = UserIndexContainer; exports.UsersListContainer = UsersListContainer; exports.AdminUsersList = AdminUsersList; exports.CompanyUsersList = CompanyUsersList; exports.ContributorsList = ContributorsList; exports.RelevantUsersList = RelevantUsersList; exports.RoleUsersList = RoleUsersList; exports.UserListInAdd = UserListInAdd; exports.UsersList = UsersList; exports.UsersListByContentIds = UsersListByContentIds; exports.AllowedUsersDetails = AllowedUsersDetails; exports.ErrorDetails = ErrorDetails; exports.errorToast = errorToast; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorTrigger = CommonEditorTrigger; exports.DatePickerPopover = DatePickerPopover; exports.DateRangeSelector = DateRangeSelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.FormFieldWrapper = FormFieldWrapper; exports.FormCheckbox = FormCheckbox; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.PasswordInput = PasswordInput; exports.FormPassword = FormPassword; exports.FormPlaceAutocomplete = FormPlaceAutocomplete; exports.FormSelect = FormSelect; exports.FormSlider = FormSlider; exports.FormSwitch = FormSwitch; exports.FormTextarea = FormTextarea; exports.GdprConsentCheckbox = GdprConsentCheckbox; exports.FormFeatures = FormFeatures; exports.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; exports.GdprConsentSection = GdprConsentSection; exports.AuthContainer = AuthContainer; exports.LandingComponent = LandingComponent; exports.AcceptInvitation = AcceptInvitation; exports.ActivateAccount = ActivateAccount; exports.Cookies = Cookies; exports.ForgotPassword = ForgotPassword; exports.Login = Login; exports.Logout = Logout; exports.RefreshUser = RefreshUser; exports.ResetPassword = ResetPassword; exports.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.RoleProvider = RoleProvider; exports.useRoleContext = useRoleContext; exports.RoleDetails = RoleDetails; exports.RoleContainer = RoleContainer; exports.FormRoles = FormRoles; exports.RemoveUserFromRole = RemoveUserFromRole; exports.UserRoleAdd = UserRoleAdd; exports.useRoleTableStructure = useRoleTableStructure; exports.RolesList = RolesList; exports.UserRolesList = UserRolesList; exports.OAuthRedirectUriInput = OAuthRedirectUriInput; exports.OAuthScopeSelector = OAuthScopeSelector; exports.OAuthClientSecretDisplay = OAuthClientSecretDisplay; exports.OAuthClientCard = OAuthClientCard; exports.OAuthClientList = OAuthClientList; exports.OAuthClientForm = OAuthClientForm; exports.OAuthClientDetail = OAuthClientDetail; exports.OAuthConsentHeader = OAuthConsentHeader; exports.OAuthScopeList = OAuthScopeList; exports.OAuthConsentActions = OAuthConsentActions; exports.useOAuthConsent = useOAuthConsent; exports.OAuthConsentScreen = OAuthConsentScreen; exports.AddUserToRole = AddUserToRole; exports.UserAvatarEditor = UserAvatarEditor; exports.UserDeleter = UserDeleter; exports.UserEditor = UserEditor; exports.UserMultiSelect = UserMultiSelect; exports.UserReactivator = UserReactivator; exports.UserResentInvitationEmail = UserResentInvitationEmail; exports.UserSelector = UserSelector; exports.UserProvider = UserProvider; exports.useUserContext = useUserContext; exports.CompanyProvider = CompanyProvider; exports.useCompanyContext = useCompanyContext; exports.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;
|
|
15498
|
-
//# sourceMappingURL=chunk-
|
|
15477
|
+
//# sourceMappingURL=chunk-E6PQQTWF.js.map
|