@carlonicora/nextjs-jsonapi 1.37.0 → 1.38.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-GTWR6CPI.mjs → BlockNoteEditor-5CEV5TZT.mjs} +3 -3
- package/dist/{BlockNoteEditor-74FHJO7E.js → BlockNoteEditor-VB72JQEO.js} +13 -13
- package/dist/{BlockNoteEditor-74FHJO7E.js.map → BlockNoteEditor-VB72JQEO.js.map} +1 -1
- package/dist/billing/index.d.mts +12 -2
- package/dist/billing/index.d.ts +12 -2
- package/dist/billing/index.js +680 -452
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +588 -360
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{chunk-53IPQJVH.js → chunk-3EZX4G2E.js} +147 -23
- package/dist/chunk-3EZX4G2E.js.map +1 -0
- package/dist/{chunk-YVEK3SUS.js → chunk-BYMBRMKS.js} +454 -446
- package/dist/chunk-BYMBRMKS.js.map +1 -0
- package/dist/{chunk-P7R2DPD6.mjs → chunk-TQ5GRRTM.mjs} +125 -1
- package/dist/chunk-TQ5GRRTM.mjs.map +1 -0
- package/dist/{chunk-ZUUH4CQC.mjs → chunk-VMK2N3TQ.mjs} +13 -5
- package/dist/{chunk-ZUUH4CQC.mjs.map → chunk-VMK2N3TQ.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.d.mts +47 -3
- package/dist/core/index.d.ts +47 -3
- package/dist/core/index.js +8 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +7 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/dist/{stripe-subscription.interface-DK7BJaNd.d.ts → stripe-promotion-code.interface-BcJty0rv.d.ts} +18 -1
- package/dist/{stripe-subscription.interface-C8uhCYIZ.d.mts → stripe-promotion-code.interface-Dnm2DJKQ.d.mts} +18 -1
- package/package.json +1 -1
- package/src/billing/index.ts +1 -0
- package/src/core/index.ts +1 -0
- package/src/core/registry/ModuleRegistry.ts +1 -0
- package/src/features/auth/components/forms/Login.tsx +14 -2
- package/src/features/billing/components/cards/SubscriptionSummaryCard.tsx +5 -16
- package/src/features/billing/stripe-invoice/data/stripe-invoice.interface.ts +1 -0
- package/src/features/billing/stripe-promotion-code/components/PromoCodeInput.tsx +108 -0
- package/src/features/billing/stripe-promotion-code/components/index.ts +1 -0
- package/src/features/billing/stripe-promotion-code/data/index.ts +3 -0
- package/src/features/billing/stripe-promotion-code/data/stripe-promotion-code.interface.ts +14 -0
- package/src/features/billing/stripe-promotion-code/data/stripe-promotion-code.service.ts +64 -0
- package/src/features/billing/stripe-promotion-code/data/stripe-promotion-code.ts +66 -0
- package/src/features/billing/stripe-promotion-code/index.ts +2 -0
- package/src/features/billing/stripe-promotion-code/stripe-promotion-code.module.ts +9 -0
- package/src/features/billing/stripe-subscription/components/lists/SubscriptionsList.tsx +20 -3
- package/src/features/billing/stripe-subscription/components/wizards/SubscriptionWizard.tsx +6 -0
- package/src/features/billing/stripe-subscription/components/wizards/WizardStepReview.tsx +131 -9
- package/src/features/billing/stripe-subscription/data/stripe-subscription.interface.ts +2 -0
- package/src/features/billing/stripe-subscription/data/stripe-subscription.ts +8 -0
- package/src/features/billing/stripe-subscription/hooks/useSubscriptionWizard.ts +93 -7
- package/src/features/index.ts +1 -0
- package/dist/chunk-53IPQJVH.js.map +0 -1
- package/dist/chunk-P7R2DPD6.mjs.map +0 -1
- package/dist/chunk-YVEK3SUS.js.map +0 -1
- /package/dist/{BlockNoteEditor-GTWR6CPI.mjs.map → BlockNoteEditor-5CEV5TZT.mjs.map} +0 -0
|
@@ -41,7 +41,7 @@ var _chunk2PHWAL6Qjs = require('./chunk-2PHWAL6Q.js');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunk3EZX4G2Ejs = require('./chunk-3EZX4G2E.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 = _chunk3EZX4G2Ejs.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, () => ( _chunk3EZX4G2Ejs.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(_chunk3EZX4G2Ejs.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(_chunk3EZX4G2Ejs.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(_chunk3EZX4G2Ejs.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(_chunk3EZX4G2Ejs.Modules, matchedModuleKey);
|
|
966
|
+
return _optionalChain([descriptor, 'optionalAccess', _33 => _33.get, 'optionalAccess', _34 => _34.call, 'call', _35 => _35(_chunk3EZX4G2Ejs.Modules)]);
|
|
967
967
|
}, "matchUrlToModule");
|
|
968
|
-
const currentUser = dehydratedUser ?
|
|
968
|
+
const currentUser = dehydratedUser ? _chunk3EZX4G2Ejs.rehydrate.call(void 0, _chunk3EZX4G2Ejs.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 _chunk3EZX4G2Ejs.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) => _chunk3EZX4G2Ejs.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");
|
|
@@ -1011,13 +1011,13 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
1011
1011
|
}
|
|
1012
1012
|
setIsRefreshing(true);
|
|
1013
1013
|
try {
|
|
1014
|
-
const fullUser = await
|
|
1014
|
+
const fullUser = await _chunk3EZX4G2Ejs.UserService.findFullUser();
|
|
1015
1015
|
if (fullUser) {
|
|
1016
1016
|
const dehydrated = fullUser.dehydrate();
|
|
1017
1017
|
setDehydratedUser(dehydrated);
|
|
1018
1018
|
setUser(fullUser);
|
|
1019
1019
|
if (!_optionalChain([options, 'optionalAccess', _40 => _40.skipCookieUpdate])) {
|
|
1020
|
-
await _optionalChain([
|
|
1020
|
+
await _optionalChain([_chunk3EZX4G2Ejs.getTokenHandler.call(void 0, ), 'optionalAccess', _41 => _41.updateToken, 'call', _42 => _42({
|
|
1021
1021
|
userId: fullUser.id,
|
|
1022
1022
|
companyId: _optionalChain([fullUser, 'access', _43 => _43.company, 'optionalAccess', _44 => _44.id]),
|
|
1023
1023
|
roles: fullUser.roles.map((role) => role.id),
|
|
@@ -1105,7 +1105,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
1105
1105
|
const [existingUsers, setExistingUsers] = _react.useState.call(void 0, null);
|
|
1106
1106
|
_react.useEffect.call(void 0, () => {
|
|
1107
1107
|
const fetchExistingUsers = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
1108
|
-
setExistingUsers(await
|
|
1108
|
+
setExistingUsers(await _chunk3EZX4G2Ejs.UserService.findMany({ roleId: role.id, fetchAll: true }));
|
|
1109
1109
|
}, "fetchExistingUsers");
|
|
1110
1110
|
if (show) {
|
|
1111
1111
|
setExistingUsers(null);
|
|
@@ -1113,7 +1113,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
}, [show]);
|
|
1115
1115
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (user) => {
|
|
1116
|
-
await
|
|
1116
|
+
await _chunk3EZX4G2Ejs.RoleService.addUserToRole({
|
|
1117
1117
|
roleId: role.id,
|
|
1118
1118
|
userId: user.id
|
|
1119
1119
|
});
|
|
@@ -1129,9 +1129,9 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
1129
1129
|
}, "addUserToRole");
|
|
1130
1130
|
const data = useDataListRetriever({
|
|
1131
1131
|
ready: !!company && show,
|
|
1132
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
1132
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3EZX4G2Ejs.UserService.findAllUsers(params), "retriever"),
|
|
1133
1133
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _55 => _55.id]) },
|
|
1134
|
-
module:
|
|
1134
|
+
module: _chunk3EZX4G2Ejs.Modules.User
|
|
1135
1135
|
});
|
|
1136
1136
|
_react.useEffect.call(void 0, () => {
|
|
1137
1137
|
if (!!company && show) {
|
|
@@ -1182,7 +1182,7 @@ function Accordion({ className, ...props }) {
|
|
|
1182
1182
|
_accordion.Accordion.Root,
|
|
1183
1183
|
{
|
|
1184
1184
|
"data-slot": "accordion",
|
|
1185
|
-
className:
|
|
1185
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "overflow-hidden rounded-md border flex w-full flex-col", className),
|
|
1186
1186
|
...props
|
|
1187
1187
|
}
|
|
1188
1188
|
);
|
|
@@ -1193,7 +1193,7 @@ function AccordionItem({ className, ...props }) {
|
|
|
1193
1193
|
_accordion.Accordion.Item,
|
|
1194
1194
|
{
|
|
1195
1195
|
"data-slot": "accordion-item",
|
|
1196
|
-
className:
|
|
1196
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "data-open:bg-muted/50 not-last:border-b", className),
|
|
1197
1197
|
...props
|
|
1198
1198
|
}
|
|
1199
1199
|
);
|
|
@@ -1204,7 +1204,7 @@ function AccordionTrigger({ className, children, ...props }) {
|
|
|
1204
1204
|
_accordion.Accordion.Trigger,
|
|
1205
1205
|
{
|
|
1206
1206
|
"data-slot": "accordion-trigger",
|
|
1207
|
-
className:
|
|
1207
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1208
1208
|
"**: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",
|
|
1209
1209
|
className
|
|
1210
1210
|
),
|
|
@@ -1240,7 +1240,7 @@ function AccordionContent({ className, children, ...props }) {
|
|
|
1240
1240
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1241
1241
|
"div",
|
|
1242
1242
|
{
|
|
1243
|
-
className:
|
|
1243
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1244
1244
|
"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",
|
|
1245
1245
|
className
|
|
1246
1246
|
),
|
|
@@ -1270,7 +1270,7 @@ var alertVariants = _classvarianceauthority.cva.call(void 0,
|
|
|
1270
1270
|
}
|
|
1271
1271
|
);
|
|
1272
1272
|
function Alert({ className, variant, ...props }) {
|
|
1273
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "alert", role: "alert", className:
|
|
1273
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "alert", role: "alert", className: _chunk3EZX4G2Ejs.cn.call(void 0, alertVariants({ variant }), className), ...props });
|
|
1274
1274
|
}
|
|
1275
1275
|
_chunk7QVYU63Ejs.__name.call(void 0, Alert, "Alert");
|
|
1276
1276
|
function AlertTitle({ className, ...props }) {
|
|
@@ -1278,7 +1278,7 @@ function AlertTitle({ className, ...props }) {
|
|
|
1278
1278
|
"div",
|
|
1279
1279
|
{
|
|
1280
1280
|
"data-slot": "alert-title",
|
|
1281
|
-
className:
|
|
1281
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1282
1282
|
"font-medium group-has-[>svg]/alert:col-start-2 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3",
|
|
1283
1283
|
className
|
|
1284
1284
|
),
|
|
@@ -1292,7 +1292,7 @@ function AlertDescription({ className, ...props }) {
|
|
|
1292
1292
|
"div",
|
|
1293
1293
|
{
|
|
1294
1294
|
"data-slot": "alert-description",
|
|
1295
|
-
className:
|
|
1295
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1296
1296
|
"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",
|
|
1297
1297
|
className
|
|
1298
1298
|
),
|
|
@@ -1302,7 +1302,7 @@ function AlertDescription({ className, ...props }) {
|
|
|
1302
1302
|
}
|
|
1303
1303
|
_chunk7QVYU63Ejs.__name.call(void 0, AlertDescription, "AlertDescription");
|
|
1304
1304
|
function AlertAction({ className, ...props }) {
|
|
1305
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "alert-action", className:
|
|
1305
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "alert-action", className: _chunk3EZX4G2Ejs.cn.call(void 0, "absolute top-1.5 right-2", className), ...props });
|
|
1306
1306
|
}
|
|
1307
1307
|
_chunk7QVYU63Ejs.__name.call(void 0, AlertAction, "AlertAction");
|
|
1308
1308
|
|
|
@@ -1348,7 +1348,7 @@ function Button({
|
|
|
1348
1348
|
size = "default",
|
|
1349
1349
|
...props
|
|
1350
1350
|
}) {
|
|
1351
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _button.Button, { "data-slot": "button", className:
|
|
1351
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _button.Button, { "data-slot": "button", className: _chunk3EZX4G2Ejs.cn.call(void 0, buttonVariants({ variant, size, className })), ...props });
|
|
1352
1352
|
}
|
|
1353
1353
|
_chunk7QVYU63Ejs.__name.call(void 0, Button, "Button");
|
|
1354
1354
|
|
|
@@ -1371,7 +1371,7 @@ function AlertDialogOverlay({ className, ...props }) {
|
|
|
1371
1371
|
_alertdialog.AlertDialog.Backdrop,
|
|
1372
1372
|
{
|
|
1373
1373
|
"data-slot": "alert-dialog-overlay",
|
|
1374
|
-
className:
|
|
1374
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1375
1375
|
"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",
|
|
1376
1376
|
className
|
|
1377
1377
|
),
|
|
@@ -1392,7 +1392,7 @@ function AlertDialogContent({
|
|
|
1392
1392
|
{
|
|
1393
1393
|
"data-slot": "alert-dialog-content",
|
|
1394
1394
|
"data-size": size,
|
|
1395
|
-
className:
|
|
1395
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1396
1396
|
"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",
|
|
1397
1397
|
className
|
|
1398
1398
|
),
|
|
@@ -1407,7 +1407,7 @@ function AlertDialogHeader({ className, ...props }) {
|
|
|
1407
1407
|
"div",
|
|
1408
1408
|
{
|
|
1409
1409
|
"data-slot": "alert-dialog-header",
|
|
1410
|
-
className:
|
|
1410
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1411
1411
|
"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]",
|
|
1412
1412
|
className
|
|
1413
1413
|
),
|
|
@@ -1421,7 +1421,7 @@ function AlertDialogFooter({ className, ...props }) {
|
|
|
1421
1421
|
"div",
|
|
1422
1422
|
{
|
|
1423
1423
|
"data-slot": "alert-dialog-footer",
|
|
1424
|
-
className:
|
|
1424
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1425
1425
|
"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",
|
|
1426
1426
|
className
|
|
1427
1427
|
),
|
|
@@ -1435,7 +1435,7 @@ function AlertDialogMedia({ className, ...props }) {
|
|
|
1435
1435
|
"div",
|
|
1436
1436
|
{
|
|
1437
1437
|
"data-slot": "alert-dialog-media",
|
|
1438
|
-
className:
|
|
1438
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1439
1439
|
"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",
|
|
1440
1440
|
className
|
|
1441
1441
|
),
|
|
@@ -1449,7 +1449,7 @@ function AlertDialogTitle({ className, ...props }) {
|
|
|
1449
1449
|
_alertdialog.AlertDialog.Title,
|
|
1450
1450
|
{
|
|
1451
1451
|
"data-slot": "alert-dialog-title",
|
|
1452
|
-
className:
|
|
1452
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1453
1453
|
"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",
|
|
1454
1454
|
className
|
|
1455
1455
|
),
|
|
@@ -1466,7 +1466,7 @@ function AlertDialogDescription({
|
|
|
1466
1466
|
_alertdialog.AlertDialog.Description,
|
|
1467
1467
|
{
|
|
1468
1468
|
"data-slot": "alert-dialog-description",
|
|
1469
|
-
className:
|
|
1469
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1470
1470
|
"text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3",
|
|
1471
1471
|
className
|
|
1472
1472
|
),
|
|
@@ -1476,7 +1476,7 @@ function AlertDialogDescription({
|
|
|
1476
1476
|
}
|
|
1477
1477
|
_chunk7QVYU63Ejs.__name.call(void 0, AlertDialogDescription, "AlertDialogDescription");
|
|
1478
1478
|
function AlertDialogAction({ className, ...props }) {
|
|
1479
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { "data-slot": "alert-dialog-action", className:
|
|
1479
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { "data-slot": "alert-dialog-action", className: _chunk3EZX4G2Ejs.cn.call(void 0, className), ...props });
|
|
1480
1480
|
}
|
|
1481
1481
|
_chunk7QVYU63Ejs.__name.call(void 0, AlertDialogAction, "AlertDialogAction");
|
|
1482
1482
|
function AlertDialogCancel({
|
|
@@ -1489,7 +1489,7 @@ function AlertDialogCancel({
|
|
|
1489
1489
|
_alertdialog.AlertDialog.Close,
|
|
1490
1490
|
{
|
|
1491
1491
|
"data-slot": "alert-dialog-cancel",
|
|
1492
|
-
className:
|
|
1492
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, className),
|
|
1493
1493
|
render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant, size }),
|
|
1494
1494
|
...props
|
|
1495
1495
|
}
|
|
@@ -1510,7 +1510,7 @@ function Avatar({
|
|
|
1510
1510
|
{
|
|
1511
1511
|
"data-slot": "avatar",
|
|
1512
1512
|
"data-size": size,
|
|
1513
|
-
className:
|
|
1513
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1514
1514
|
"size-8 rounded-full after:rounded-full data-[size=lg]:size-10 data-[size=sm]:size-6 after:border-border group/avatar relative flex shrink-0 select-none after:absolute after:inset-0 after:border after:mix-blend-darken dark:after:mix-blend-lighten",
|
|
1515
1515
|
className
|
|
1516
1516
|
),
|
|
@@ -1524,7 +1524,7 @@ function AvatarImage({ className, ...props }) {
|
|
|
1524
1524
|
_avatar.Avatar.Image,
|
|
1525
1525
|
{
|
|
1526
1526
|
"data-slot": "avatar-image",
|
|
1527
|
-
className:
|
|
1527
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "rounded-full aspect-square size-full object-cover", className),
|
|
1528
1528
|
...props
|
|
1529
1529
|
}
|
|
1530
1530
|
);
|
|
@@ -1535,7 +1535,7 @@ function AvatarFallback({ className, ...props }) {
|
|
|
1535
1535
|
_avatar.Avatar.Fallback,
|
|
1536
1536
|
{
|
|
1537
1537
|
"data-slot": "avatar-fallback",
|
|
1538
|
-
className:
|
|
1538
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1539
1539
|
"bg-muted text-muted-foreground rounded-full flex size-full items-center justify-center text-sm group-data-[size=sm]/avatar:text-xs",
|
|
1540
1540
|
className
|
|
1541
1541
|
),
|
|
@@ -1549,7 +1549,7 @@ function AvatarBadge({ className, ...props }) {
|
|
|
1549
1549
|
"span",
|
|
1550
1550
|
{
|
|
1551
1551
|
"data-slot": "avatar-badge",
|
|
1552
|
-
className:
|
|
1552
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1553
1553
|
"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",
|
|
1554
1554
|
"group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden",
|
|
1555
1555
|
"group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2",
|
|
@@ -1566,7 +1566,7 @@ function AvatarGroup({ className, ...props }) {
|
|
|
1566
1566
|
"div",
|
|
1567
1567
|
{
|
|
1568
1568
|
"data-slot": "avatar-group",
|
|
1569
|
-
className:
|
|
1569
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1570
1570
|
"*:data-[slot=avatar]:ring-background group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2",
|
|
1571
1571
|
className
|
|
1572
1572
|
),
|
|
@@ -1580,7 +1580,7 @@ function AvatarGroupCount({ className, ...props }) {
|
|
|
1580
1580
|
"div",
|
|
1581
1581
|
{
|
|
1582
1582
|
"data-slot": "avatar-group-count",
|
|
1583
|
-
className:
|
|
1583
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1584
1584
|
"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",
|
|
1585
1585
|
className
|
|
1586
1586
|
),
|
|
@@ -1622,7 +1622,7 @@ function Badge({
|
|
|
1622
1622
|
defaultTagName: "span",
|
|
1623
1623
|
props: _mergeprops.mergeProps.call(void 0,
|
|
1624
1624
|
{
|
|
1625
|
-
className:
|
|
1625
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, badgeVariants({ className, variant }))
|
|
1626
1626
|
},
|
|
1627
1627
|
props
|
|
1628
1628
|
),
|
|
@@ -1641,7 +1641,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, Badge, "Badge");
|
|
|
1641
1641
|
|
|
1642
1642
|
|
|
1643
1643
|
function Breadcrumb({ className, ...props }) {
|
|
1644
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", className:
|
|
1644
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", className: _chunk3EZX4G2Ejs.cn.call(void 0, className), ...props });
|
|
1645
1645
|
}
|
|
1646
1646
|
_chunk7QVYU63Ejs.__name.call(void 0, Breadcrumb, "Breadcrumb");
|
|
1647
1647
|
function BreadcrumbList({ className, ...props }) {
|
|
@@ -1649,14 +1649,14 @@ function BreadcrumbList({ className, ...props }) {
|
|
|
1649
1649
|
"ol",
|
|
1650
1650
|
{
|
|
1651
1651
|
"data-slot": "breadcrumb-list",
|
|
1652
|
-
className:
|
|
1652
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "text-muted-foreground gap-1.5 text-xs/relaxed flex flex-wrap items-center break-words", className),
|
|
1653
1653
|
...props
|
|
1654
1654
|
}
|
|
1655
1655
|
);
|
|
1656
1656
|
}
|
|
1657
1657
|
_chunk7QVYU63Ejs.__name.call(void 0, BreadcrumbList, "BreadcrumbList");
|
|
1658
1658
|
function BreadcrumbItem({ className, ...props }) {
|
|
1659
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-slot": "breadcrumb-item", className:
|
|
1659
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-slot": "breadcrumb-item", className: _chunk3EZX4G2Ejs.cn.call(void 0, "gap-1 inline-flex items-center", className), ...props });
|
|
1660
1660
|
}
|
|
1661
1661
|
_chunk7QVYU63Ejs.__name.call(void 0, BreadcrumbItem, "BreadcrumbItem");
|
|
1662
1662
|
function BreadcrumbLink({ className, render, ...props }) {
|
|
@@ -1664,7 +1664,7 @@ function BreadcrumbLink({ className, render, ...props }) {
|
|
|
1664
1664
|
defaultTagName: "a",
|
|
1665
1665
|
props: _mergeprops.mergeProps.call(void 0,
|
|
1666
1666
|
{
|
|
1667
|
-
className:
|
|
1667
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "hover:text-foreground transition-colors", className)
|
|
1668
1668
|
},
|
|
1669
1669
|
props
|
|
1670
1670
|
),
|
|
@@ -1683,7 +1683,7 @@ function BreadcrumbPage({ className, ...props }) {
|
|
|
1683
1683
|
role: "link",
|
|
1684
1684
|
"aria-disabled": "true",
|
|
1685
1685
|
"aria-current": "page",
|
|
1686
|
-
className:
|
|
1686
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "text-foreground font-normal", className),
|
|
1687
1687
|
...props
|
|
1688
1688
|
}
|
|
1689
1689
|
);
|
|
@@ -1696,7 +1696,7 @@ function BreadcrumbSeparator({ children, className, ...props }) {
|
|
|
1696
1696
|
"data-slot": "breadcrumb-separator",
|
|
1697
1697
|
role: "presentation",
|
|
1698
1698
|
"aria-hidden": "true",
|
|
1699
|
-
className:
|
|
1699
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "[&>svg]:size-3.5", className),
|
|
1700
1700
|
...props,
|
|
1701
1701
|
children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, {})))
|
|
1702
1702
|
}
|
|
@@ -1710,7 +1710,7 @@ function BreadcrumbEllipsis({ className, ...props }) {
|
|
|
1710
1710
|
"data-slot": "breadcrumb-ellipsis",
|
|
1711
1711
|
role: "presentation",
|
|
1712
1712
|
"aria-hidden": "true",
|
|
1713
|
-
className:
|
|
1713
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "size-4 [&>svg]:size-3.5 flex items-center justify-center", className),
|
|
1714
1714
|
...props,
|
|
1715
1715
|
children: [
|
|
1716
1716
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.MoreHorizontalIcon, {}),
|
|
@@ -1741,7 +1741,7 @@ function Calendar({
|
|
|
1741
1741
|
_reactdaypicker.DayPicker,
|
|
1742
1742
|
{
|
|
1743
1743
|
showOutsideDays,
|
|
1744
|
-
className:
|
|
1744
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1745
1745
|
"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",
|
|
1746
1746
|
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
1747
1747
|
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
@@ -1753,82 +1753,82 @@ function Calendar({
|
|
|
1753
1753
|
...formatters
|
|
1754
1754
|
},
|
|
1755
1755
|
classNames: {
|
|
1756
|
-
root:
|
|
1757
|
-
months:
|
|
1758
|
-
month:
|
|
1759
|
-
nav:
|
|
1760
|
-
button_previous:
|
|
1756
|
+
root: _chunk3EZX4G2Ejs.cn.call(void 0, "w-fit", defaultClassNames.root),
|
|
1757
|
+
months: _chunk3EZX4G2Ejs.cn.call(void 0, "flex gap-4 flex-col md:flex-row relative", defaultClassNames.months),
|
|
1758
|
+
month: _chunk3EZX4G2Ejs.cn.call(void 0, "flex flex-col w-full gap-4", defaultClassNames.month),
|
|
1759
|
+
nav: _chunk3EZX4G2Ejs.cn.call(void 0, "flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between", defaultClassNames.nav),
|
|
1760
|
+
button_previous: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1761
1761
|
buttonVariants({ variant: buttonVariant }),
|
|
1762
1762
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
1763
1763
|
defaultClassNames.button_previous
|
|
1764
1764
|
),
|
|
1765
|
-
button_next:
|
|
1765
|
+
button_next: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1766
1766
|
buttonVariants({ variant: buttonVariant }),
|
|
1767
1767
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
1768
1768
|
defaultClassNames.button_next
|
|
1769
1769
|
),
|
|
1770
|
-
month_caption:
|
|
1770
|
+
month_caption: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1771
1771
|
"flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
|
|
1772
1772
|
defaultClassNames.month_caption
|
|
1773
1773
|
),
|
|
1774
|
-
dropdowns:
|
|
1774
|
+
dropdowns: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1775
1775
|
"w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
|
|
1776
1776
|
defaultClassNames.dropdowns
|
|
1777
1777
|
),
|
|
1778
|
-
dropdown_root:
|
|
1778
|
+
dropdown_root: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1779
1779
|
"relative cn-calendar-dropdown-root rounded-(--cell-radius)",
|
|
1780
1780
|
defaultClassNames.dropdown_root
|
|
1781
1781
|
),
|
|
1782
|
-
dropdown:
|
|
1783
|
-
caption_label:
|
|
1782
|
+
dropdown: _chunk3EZX4G2Ejs.cn.call(void 0, "absolute bg-popover inset-0 opacity-0", defaultClassNames.dropdown),
|
|
1783
|
+
caption_label: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1784
1784
|
"select-none font-medium",
|
|
1785
1785
|
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",
|
|
1786
1786
|
defaultClassNames.caption_label
|
|
1787
1787
|
),
|
|
1788
1788
|
table: "w-full border-collapse",
|
|
1789
|
-
weekdays:
|
|
1790
|
-
weekday:
|
|
1789
|
+
weekdays: _chunk3EZX4G2Ejs.cn.call(void 0, "flex", defaultClassNames.weekdays),
|
|
1790
|
+
weekday: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1791
1791
|
"text-muted-foreground rounded-(--cell-radius) flex-1 font-normal text-[0.8rem] select-none",
|
|
1792
1792
|
defaultClassNames.weekday
|
|
1793
1793
|
),
|
|
1794
|
-
week:
|
|
1795
|
-
week_number_header:
|
|
1796
|
-
week_number:
|
|
1797
|
-
day:
|
|
1794
|
+
week: _chunk3EZX4G2Ejs.cn.call(void 0, "flex w-full mt-2", defaultClassNames.week),
|
|
1795
|
+
week_number_header: _chunk3EZX4G2Ejs.cn.call(void 0, "select-none w-(--cell-size)", defaultClassNames.week_number_header),
|
|
1796
|
+
week_number: _chunk3EZX4G2Ejs.cn.call(void 0, "text-[0.8rem] select-none text-muted-foreground", defaultClassNames.week_number),
|
|
1797
|
+
day: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1798
1798
|
"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",
|
|
1799
1799
|
props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)" : "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)",
|
|
1800
1800
|
defaultClassNames.day
|
|
1801
1801
|
),
|
|
1802
|
-
range_start:
|
|
1802
|
+
range_start: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1803
1803
|
"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",
|
|
1804
1804
|
defaultClassNames.range_start
|
|
1805
1805
|
),
|
|
1806
|
-
range_middle:
|
|
1807
|
-
range_end:
|
|
1806
|
+
range_middle: _chunk3EZX4G2Ejs.cn.call(void 0, "rounded-none", defaultClassNames.range_middle),
|
|
1807
|
+
range_end: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1808
1808
|
"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",
|
|
1809
1809
|
defaultClassNames.range_end
|
|
1810
1810
|
),
|
|
1811
|
-
today:
|
|
1811
|
+
today: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1812
1812
|
"bg-muted text-foreground rounded-(--cell-radius) data-[selected=true]:rounded-none",
|
|
1813
1813
|
defaultClassNames.today
|
|
1814
1814
|
),
|
|
1815
|
-
outside:
|
|
1816
|
-
disabled:
|
|
1817
|
-
hidden:
|
|
1815
|
+
outside: _chunk3EZX4G2Ejs.cn.call(void 0, "text-muted-foreground aria-selected:text-muted-foreground", defaultClassNames.outside),
|
|
1816
|
+
disabled: _chunk3EZX4G2Ejs.cn.call(void 0, "text-muted-foreground opacity-50", defaultClassNames.disabled),
|
|
1817
|
+
hidden: _chunk3EZX4G2Ejs.cn.call(void 0, "invisible", defaultClassNames.hidden),
|
|
1818
1818
|
...classNames
|
|
1819
1819
|
},
|
|
1820
1820
|
components: {
|
|
1821
1821
|
Root: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className: className2, rootRef, ...props2 }) => {
|
|
1822
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "calendar", ref: rootRef, className:
|
|
1822
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "calendar", ref: rootRef, className: _chunk3EZX4G2Ejs.cn.call(void 0, className2), ...props2 });
|
|
1823
1823
|
}, "Root"),
|
|
1824
1824
|
Chevron: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className: className2, orientation, ...props2 }) => {
|
|
1825
1825
|
if (orientation === "left") {
|
|
1826
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeftIcon, { className:
|
|
1826
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeftIcon, { className: _chunk3EZX4G2Ejs.cn.call(void 0, "size-4", className2), ...props2 });
|
|
1827
1827
|
}
|
|
1828
1828
|
if (orientation === "right") {
|
|
1829
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className:
|
|
1829
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className: _chunk3EZX4G2Ejs.cn.call(void 0, "size-4", className2), ...props2 });
|
|
1830
1830
|
}
|
|
1831
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className:
|
|
1831
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: _chunk3EZX4G2Ejs.cn.call(void 0, "size-4", className2), ...props2 });
|
|
1832
1832
|
}, "Chevron"),
|
|
1833
1833
|
DayButton: CalendarDayButton,
|
|
1834
1834
|
WeekNumber: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ children, ...props2 }) => {
|
|
@@ -1857,7 +1857,7 @@ function CalendarDayButton({ className, day, modifiers, ...props }) {
|
|
|
1857
1857
|
"data-range-start": modifiers.range_start,
|
|
1858
1858
|
"data-range-end": modifiers.range_end,
|
|
1859
1859
|
"data-range-middle": modifiers.range_middle,
|
|
1860
|
-
className:
|
|
1860
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1861
1861
|
"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",
|
|
1862
1862
|
defaultClassNames.day,
|
|
1863
1863
|
className
|
|
@@ -1876,7 +1876,7 @@ function Card({ className, size = "default", ...props }) {
|
|
|
1876
1876
|
{
|
|
1877
1877
|
"data-slot": "card",
|
|
1878
1878
|
"data-size": size,
|
|
1879
|
-
className:
|
|
1879
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1880
1880
|
"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",
|
|
1881
1881
|
className
|
|
1882
1882
|
),
|
|
@@ -1890,7 +1890,7 @@ function CardHeader({ className, ...props }) {
|
|
|
1890
1890
|
"div",
|
|
1891
1891
|
{
|
|
1892
1892
|
"data-slot": "card-header",
|
|
1893
|
-
className:
|
|
1893
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1894
1894
|
"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]",
|
|
1895
1895
|
className
|
|
1896
1896
|
),
|
|
@@ -1900,11 +1900,11 @@ function CardHeader({ className, ...props }) {
|
|
|
1900
1900
|
}
|
|
1901
1901
|
_chunk7QVYU63Ejs.__name.call(void 0, CardHeader, "CardHeader");
|
|
1902
1902
|
function CardTitle({ className, ...props }) {
|
|
1903
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-title", className:
|
|
1903
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-title", className: _chunk3EZX4G2Ejs.cn.call(void 0, "text-sm font-medium", className), ...props });
|
|
1904
1904
|
}
|
|
1905
1905
|
_chunk7QVYU63Ejs.__name.call(void 0, CardTitle, "CardTitle");
|
|
1906
1906
|
function CardDescription({ className, ...props }) {
|
|
1907
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-description", className:
|
|
1907
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-description", className: _chunk3EZX4G2Ejs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className), ...props });
|
|
1908
1908
|
}
|
|
1909
1909
|
_chunk7QVYU63Ejs.__name.call(void 0, CardDescription, "CardDescription");
|
|
1910
1910
|
function CardAction({ className, ...props }) {
|
|
@@ -1912,14 +1912,14 @@ function CardAction({ className, ...props }) {
|
|
|
1912
1912
|
"div",
|
|
1913
1913
|
{
|
|
1914
1914
|
"data-slot": "card-action",
|
|
1915
|
-
className:
|
|
1915
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
|
|
1916
1916
|
...props
|
|
1917
1917
|
}
|
|
1918
1918
|
);
|
|
1919
1919
|
}
|
|
1920
1920
|
_chunk7QVYU63Ejs.__name.call(void 0, CardAction, "CardAction");
|
|
1921
1921
|
function CardContent({ className, ...props }) {
|
|
1922
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-content", className:
|
|
1922
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-content", className: _chunk3EZX4G2Ejs.cn.call(void 0, "px-4 group-data-[size=sm]/card:px-3", className), ...props });
|
|
1923
1923
|
}
|
|
1924
1924
|
_chunk7QVYU63Ejs.__name.call(void 0, CardContent, "CardContent");
|
|
1925
1925
|
function CardFooter({ className, ...props }) {
|
|
@@ -1927,7 +1927,7 @@ function CardFooter({ className, ...props }) {
|
|
|
1927
1927
|
"div",
|
|
1928
1928
|
{
|
|
1929
1929
|
"data-slot": "card-footer",
|
|
1930
|
-
className:
|
|
1930
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
1931
1931
|
"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",
|
|
1932
1932
|
className
|
|
1933
1933
|
),
|
|
@@ -2022,7 +2022,7 @@ function Carousel({
|
|
|
2022
2022
|
"div",
|
|
2023
2023
|
{
|
|
2024
2024
|
onKeyDownCapture: handleKeyDown,
|
|
2025
|
-
className:
|
|
2025
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "relative", className),
|
|
2026
2026
|
role: "region",
|
|
2027
2027
|
"aria-roledescription": "carousel",
|
|
2028
2028
|
"data-slot": "carousel",
|
|
@@ -2036,7 +2036,7 @@ function Carousel({
|
|
|
2036
2036
|
_chunk7QVYU63Ejs.__name.call(void 0, Carousel, "Carousel");
|
|
2037
2037
|
function CarouselContent({ className, ...props }) {
|
|
2038
2038
|
const { carouselRef, orientation } = useCarousel();
|
|
2039
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: carouselRef, className: "overflow-hidden", "data-slot": "carousel-content", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2039
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: carouselRef, className: "overflow-hidden", "data-slot": "carousel-content", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3EZX4G2Ejs.cn.call(void 0, "flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className), ...props }) });
|
|
2040
2040
|
}
|
|
2041
2041
|
_chunk7QVYU63Ejs.__name.call(void 0, CarouselContent, "CarouselContent");
|
|
2042
2042
|
function CarouselItem({ className, ...props }) {
|
|
@@ -2047,7 +2047,7 @@ function CarouselItem({ className, ...props }) {
|
|
|
2047
2047
|
role: "group",
|
|
2048
2048
|
"aria-roledescription": "slide",
|
|
2049
2049
|
"data-slot": "carousel-item",
|
|
2050
|
-
className:
|
|
2050
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "min-w-0 shrink-0 grow-0 basis-full", orientation === "horizontal" ? "pl-4" : "pt-4", className),
|
|
2051
2051
|
...props
|
|
2052
2052
|
}
|
|
2053
2053
|
);
|
|
@@ -2066,7 +2066,7 @@ function CarouselPrevious({
|
|
|
2066
2066
|
"data-slot": "carousel-previous",
|
|
2067
2067
|
variant,
|
|
2068
2068
|
size,
|
|
2069
|
-
className:
|
|
2069
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2070
2070
|
"rounded-full absolute touch-manipulation",
|
|
2071
2071
|
orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
2072
2072
|
className
|
|
@@ -2095,7 +2095,7 @@ function CarouselNext({
|
|
|
2095
2095
|
"data-slot": "carousel-next",
|
|
2096
2096
|
variant,
|
|
2097
2097
|
size,
|
|
2098
|
-
className:
|
|
2098
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2099
2099
|
"rounded-full absolute touch-manipulation",
|
|
2100
2100
|
orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
2101
2101
|
className
|
|
@@ -2140,7 +2140,7 @@ function ChartContainer({
|
|
|
2140
2140
|
{
|
|
2141
2141
|
"data-slot": "chart",
|
|
2142
2142
|
"data-chart": chartId,
|
|
2143
|
-
className:
|
|
2143
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2144
2144
|
"[&_.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",
|
|
2145
2145
|
className
|
|
2146
2146
|
),
|
|
@@ -2202,12 +2202,12 @@ function ChartTooltipContent({
|
|
|
2202
2202
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
2203
2203
|
const value = !labelKey && typeof label === "string" ? _optionalChain([config, 'access', _71 => _71[label], 'optionalAccess', _72 => _72.label]) || label : _optionalChain([itemConfig, 'optionalAccess', _73 => _73.label]);
|
|
2204
2204
|
if (labelFormatter) {
|
|
2205
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2205
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3EZX4G2Ejs.cn.call(void 0, "font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
2206
2206
|
}
|
|
2207
2207
|
if (!value) {
|
|
2208
2208
|
return null;
|
|
2209
2209
|
}
|
|
2210
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2210
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3EZX4G2Ejs.cn.call(void 0, "font-medium", labelClassName), children: value });
|
|
2211
2211
|
}, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey]);
|
|
2212
2212
|
if (!active || !_optionalChain([payload, 'optionalAccess', _74 => _74.length])) {
|
|
2213
2213
|
return null;
|
|
@@ -2216,7 +2216,7 @@ function ChartTooltipContent({
|
|
|
2216
2216
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2217
2217
|
"div",
|
|
2218
2218
|
{
|
|
2219
|
-
className:
|
|
2219
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2220
2220
|
"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",
|
|
2221
2221
|
className
|
|
2222
2222
|
),
|
|
@@ -2229,7 +2229,7 @@ function ChartTooltipContent({
|
|
|
2229
2229
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2230
2230
|
"div",
|
|
2231
2231
|
{
|
|
2232
|
-
className:
|
|
2232
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2233
2233
|
"[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
|
|
2234
2234
|
indicator === "dot" && "items-center"
|
|
2235
2235
|
),
|
|
@@ -2237,7 +2237,7 @@ function ChartTooltipContent({
|
|
|
2237
2237
|
_optionalChain([itemConfig, 'optionalAccess', _78 => _78.icon]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2238
2238
|
"div",
|
|
2239
2239
|
{
|
|
2240
|
-
className:
|
|
2240
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", {
|
|
2241
2241
|
"h-2.5 w-2.5": indicator === "dot",
|
|
2242
2242
|
"w-1": indicator === "line",
|
|
2243
2243
|
"w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
|
|
@@ -2252,7 +2252,7 @@ function ChartTooltipContent({
|
|
|
2252
2252
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2253
2253
|
"div",
|
|
2254
2254
|
{
|
|
2255
|
-
className:
|
|
2255
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2256
2256
|
"flex flex-1 justify-between leading-none",
|
|
2257
2257
|
nestLabel ? "items-end" : "items-center"
|
|
2258
2258
|
),
|
|
@@ -2287,13 +2287,13 @@ function ChartLegendContent({
|
|
|
2287
2287
|
if (!_optionalChain([payload, 'optionalAccess', _80 => _80.length])) {
|
|
2288
2288
|
return null;
|
|
2289
2289
|
}
|
|
2290
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2290
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3EZX4G2Ejs.cn.call(void 0, "flex items-center justify-center gap-4", verticalAlign === "top" ? "pb-3" : "pt-3", className), children: payload.filter((item) => item.type !== "none").map((item) => {
|
|
2291
2291
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
2292
2292
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
2293
2293
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2294
2294
|
"div",
|
|
2295
2295
|
{
|
|
2296
|
-
className:
|
|
2296
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),
|
|
2297
2297
|
children: [
|
|
2298
2298
|
_optionalChain([itemConfig, 'optionalAccess', _81 => _81.icon]) && !hideIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2299
2299
|
"div",
|
|
@@ -2336,7 +2336,7 @@ function Checkbox({ className, ...props }) {
|
|
|
2336
2336
|
_checkbox.Checkbox.Root,
|
|
2337
2337
|
{
|
|
2338
2338
|
"data-slot": "checkbox",
|
|
2339
|
-
className:
|
|
2339
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2340
2340
|
"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",
|
|
2341
2341
|
className
|
|
2342
2342
|
),
|
|
@@ -2398,7 +2398,7 @@ function DialogOverlay({ className, ...props }) {
|
|
|
2398
2398
|
_dialog.Dialog.Backdrop,
|
|
2399
2399
|
{
|
|
2400
2400
|
"data-slot": "dialog-overlay",
|
|
2401
|
-
className:
|
|
2401
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2402
2402
|
"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",
|
|
2403
2403
|
className
|
|
2404
2404
|
),
|
|
@@ -2419,7 +2419,7 @@ function DialogContent({
|
|
|
2419
2419
|
_dialog.Dialog.Popup,
|
|
2420
2420
|
{
|
|
2421
2421
|
"data-slot": "dialog-content",
|
|
2422
|
-
className:
|
|
2422
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2423
2423
|
"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",
|
|
2424
2424
|
className
|
|
2425
2425
|
),
|
|
@@ -2444,7 +2444,7 @@ function DialogContent({
|
|
|
2444
2444
|
}
|
|
2445
2445
|
_chunk7QVYU63Ejs.__name.call(void 0, DialogContent, "DialogContent");
|
|
2446
2446
|
function DialogHeader({ className, ...props }) {
|
|
2447
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "dialog-header", className:
|
|
2447
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "dialog-header", className: _chunk3EZX4G2Ejs.cn.call(void 0, "gap-1 flex flex-col", className), ...props });
|
|
2448
2448
|
}
|
|
2449
2449
|
_chunk7QVYU63Ejs.__name.call(void 0, DialogHeader, "DialogHeader");
|
|
2450
2450
|
function DialogFooter({
|
|
@@ -2457,7 +2457,7 @@ function DialogFooter({
|
|
|
2457
2457
|
"div",
|
|
2458
2458
|
{
|
|
2459
2459
|
"data-slot": "dialog-footer",
|
|
2460
|
-
className:
|
|
2460
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "gap-2 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
2461
2461
|
...props,
|
|
2462
2462
|
children: [
|
|
2463
2463
|
children,
|
|
@@ -2468,7 +2468,7 @@ function DialogFooter({
|
|
|
2468
2468
|
}
|
|
2469
2469
|
_chunk7QVYU63Ejs.__name.call(void 0, DialogFooter, "DialogFooter");
|
|
2470
2470
|
function DialogTitle({ className, ...props }) {
|
|
2471
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _dialog.Dialog.Title, { "data-slot": "dialog-title", className:
|
|
2471
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _dialog.Dialog.Title, { "data-slot": "dialog-title", className: _chunk3EZX4G2Ejs.cn.call(void 0, "text-sm font-medium", className), ...props });
|
|
2472
2472
|
}
|
|
2473
2473
|
_chunk7QVYU63Ejs.__name.call(void 0, DialogTitle, "DialogTitle");
|
|
2474
2474
|
function DialogDescription({ className, ...props }) {
|
|
@@ -2476,7 +2476,7 @@ function DialogDescription({ className, ...props }) {
|
|
|
2476
2476
|
_dialog.Dialog.Description,
|
|
2477
2477
|
{
|
|
2478
2478
|
"data-slot": "dialog-description",
|
|
2479
|
-
className:
|
|
2479
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2480
2480
|
"text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed *:[a]:underline *:[a]:underline-offset-3",
|
|
2481
2481
|
className
|
|
2482
2482
|
),
|
|
@@ -2498,7 +2498,7 @@ function Input({ className, type, ...props }) {
|
|
|
2498
2498
|
{
|
|
2499
2499
|
type,
|
|
2500
2500
|
"data-slot": "input",
|
|
2501
|
-
className:
|
|
2501
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2502
2502
|
"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",
|
|
2503
2503
|
className
|
|
2504
2504
|
),
|
|
@@ -2515,7 +2515,7 @@ function Textarea({ className, ...props }) {
|
|
|
2515
2515
|
"textarea",
|
|
2516
2516
|
{
|
|
2517
2517
|
"data-slot": "textarea",
|
|
2518
|
-
className:
|
|
2518
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2519
2519
|
"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",
|
|
2520
2520
|
className
|
|
2521
2521
|
),
|
|
@@ -2533,7 +2533,7 @@ function InputGroup({ className, ...props }) {
|
|
|
2533
2533
|
{
|
|
2534
2534
|
"data-slot": "input-group",
|
|
2535
2535
|
role: "group",
|
|
2536
|
-
className:
|
|
2536
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2537
2537
|
"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",
|
|
2538
2538
|
className
|
|
2539
2539
|
),
|
|
@@ -2569,7 +2569,7 @@ function InputGroupAddon({
|
|
|
2569
2569
|
role: "group",
|
|
2570
2570
|
"data-slot": "input-group-addon",
|
|
2571
2571
|
"data-align": align,
|
|
2572
|
-
className:
|
|
2572
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, inputGroupAddonVariants({ align }), className),
|
|
2573
2573
|
onClick: (e) => {
|
|
2574
2574
|
if (e.target.closest("button")) {
|
|
2575
2575
|
return;
|
|
@@ -2607,7 +2607,7 @@ function InputGroupButton({
|
|
|
2607
2607
|
type,
|
|
2608
2608
|
"data-size": size,
|
|
2609
2609
|
variant,
|
|
2610
|
-
className:
|
|
2610
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, inputGroupButtonVariants({ size }), className),
|
|
2611
2611
|
...props
|
|
2612
2612
|
}
|
|
2613
2613
|
);
|
|
@@ -2617,7 +2617,7 @@ function InputGroupText({ className, ...props }) {
|
|
|
2617
2617
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2618
2618
|
"span",
|
|
2619
2619
|
{
|
|
2620
|
-
className:
|
|
2620
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2621
2621
|
"text-muted-foreground gap-2 text-xs/relaxed [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none",
|
|
2622
2622
|
className
|
|
2623
2623
|
),
|
|
@@ -2631,7 +2631,7 @@ function InputGroupInput({ className, ...props }) {
|
|
|
2631
2631
|
Input,
|
|
2632
2632
|
{
|
|
2633
2633
|
"data-slot": "input-group-control",
|
|
2634
|
-
className:
|
|
2634
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2635
2635
|
"rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent flex-1",
|
|
2636
2636
|
className
|
|
2637
2637
|
),
|
|
@@ -2645,7 +2645,7 @@ function InputGroupTextarea({ className, ...props }) {
|
|
|
2645
2645
|
Textarea,
|
|
2646
2646
|
{
|
|
2647
2647
|
"data-slot": "input-group-control",
|
|
2648
|
-
className:
|
|
2648
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2649
2649
|
"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",
|
|
2650
2650
|
className
|
|
2651
2651
|
),
|
|
@@ -2663,7 +2663,7 @@ function Command({ className, ...props }) {
|
|
|
2663
2663
|
_cmdk.Command,
|
|
2664
2664
|
{
|
|
2665
2665
|
"data-slot": "command",
|
|
2666
|
-
className:
|
|
2666
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2667
2667
|
"bg-popover text-popover-foreground rounded-xl p-1 flex size-full flex-col overflow-hidden",
|
|
2668
2668
|
className
|
|
2669
2669
|
),
|
|
@@ -2685,7 +2685,7 @@ function CommandDialog({
|
|
|
2685
2685
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTitle, { children: title }),
|
|
2686
2686
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogDescription, { children: description })
|
|
2687
2687
|
] }),
|
|
2688
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogContent, { className:
|
|
2688
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogContent, { className: _chunk3EZX4G2Ejs.cn.call(void 0, "rounded-xl! p-0 overflow-hidden p-0", className), showCloseButton, children })
|
|
2689
2689
|
] });
|
|
2690
2690
|
}
|
|
2691
2691
|
_chunk7QVYU63Ejs.__name.call(void 0, CommandDialog, "CommandDialog");
|
|
@@ -2695,7 +2695,7 @@ function CommandInput({ className, ...props }) {
|
|
|
2695
2695
|
_cmdk.Command.Input,
|
|
2696
2696
|
{
|
|
2697
2697
|
"data-slot": "command-input",
|
|
2698
|
-
className:
|
|
2698
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2699
2699
|
"w-full text-xs/relaxed outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
2700
2700
|
className
|
|
2701
2701
|
),
|
|
@@ -2711,7 +2711,7 @@ function CommandList({ className, ...props }) {
|
|
|
2711
2711
|
_cmdk.Command.List,
|
|
2712
2712
|
{
|
|
2713
2713
|
"data-slot": "command-list",
|
|
2714
|
-
className:
|
|
2714
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "no-scrollbar max-h-72 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto", className),
|
|
2715
2715
|
...props
|
|
2716
2716
|
}
|
|
2717
2717
|
);
|
|
@@ -2722,7 +2722,7 @@ function CommandEmpty({ className, ...props }) {
|
|
|
2722
2722
|
_cmdk.Command.Empty,
|
|
2723
2723
|
{
|
|
2724
2724
|
"data-slot": "command-empty",
|
|
2725
|
-
className:
|
|
2725
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "py-6 text-center text-xs/relaxed", className),
|
|
2726
2726
|
...props
|
|
2727
2727
|
}
|
|
2728
2728
|
);
|
|
@@ -2733,7 +2733,7 @@ function CommandGroup({ className, ...props }) {
|
|
|
2733
2733
|
_cmdk.Command.Group,
|
|
2734
2734
|
{
|
|
2735
2735
|
"data-slot": "command-group",
|
|
2736
|
-
className:
|
|
2736
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2737
2737
|
"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",
|
|
2738
2738
|
className
|
|
2739
2739
|
),
|
|
@@ -2747,7 +2747,7 @@ function CommandSeparator({ className, ...props }) {
|
|
|
2747
2747
|
_cmdk.Command.Separator,
|
|
2748
2748
|
{
|
|
2749
2749
|
"data-slot": "command-separator",
|
|
2750
|
-
className:
|
|
2750
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
2751
2751
|
...props
|
|
2752
2752
|
}
|
|
2753
2753
|
);
|
|
@@ -2758,7 +2758,7 @@ function CommandItem({ className, children, ...props }) {
|
|
|
2758
2758
|
_cmdk.Command.Item,
|
|
2759
2759
|
{
|
|
2760
2760
|
"data-slot": "command-item",
|
|
2761
|
-
className:
|
|
2761
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2762
2762
|
"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",
|
|
2763
2763
|
className
|
|
2764
2764
|
),
|
|
@@ -2776,7 +2776,7 @@ function CommandShortcut({ className, ...props }) {
|
|
|
2776
2776
|
"span",
|
|
2777
2777
|
{
|
|
2778
2778
|
"data-slot": "command-shortcut",
|
|
2779
|
-
className:
|
|
2779
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2780
2780
|
"text-muted-foreground group-data-selected/command-item:text-foreground ml-auto text-[0.625rem] tracking-widest",
|
|
2781
2781
|
className
|
|
2782
2782
|
),
|
|
@@ -2803,7 +2803,7 @@ function ContextMenuTrigger({ className, ...props }) {
|
|
|
2803
2803
|
_contextmenu.ContextMenu.Trigger,
|
|
2804
2804
|
{
|
|
2805
2805
|
"data-slot": "context-menu-trigger",
|
|
2806
|
-
className:
|
|
2806
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "select-none", className),
|
|
2807
2807
|
...props
|
|
2808
2808
|
}
|
|
2809
2809
|
);
|
|
@@ -2829,7 +2829,7 @@ function ContextMenuContent({
|
|
|
2829
2829
|
_contextmenu.ContextMenu.Popup,
|
|
2830
2830
|
{
|
|
2831
2831
|
"data-slot": "context-menu-content",
|
|
2832
|
-
className:
|
|
2832
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2833
2833
|
"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",
|
|
2834
2834
|
className
|
|
2835
2835
|
),
|
|
@@ -2854,7 +2854,7 @@ function ContextMenuLabel({
|
|
|
2854
2854
|
{
|
|
2855
2855
|
"data-slot": "context-menu-label",
|
|
2856
2856
|
"data-inset": inset,
|
|
2857
|
-
className:
|
|
2857
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
|
|
2858
2858
|
...props
|
|
2859
2859
|
}
|
|
2860
2860
|
);
|
|
@@ -2872,7 +2872,7 @@ function ContextMenuItem({
|
|
|
2872
2872
|
"data-slot": "context-menu-item",
|
|
2873
2873
|
"data-inset": inset,
|
|
2874
2874
|
"data-variant": variant,
|
|
2875
|
-
className:
|
|
2875
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2876
2876
|
"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",
|
|
2877
2877
|
className
|
|
2878
2878
|
),
|
|
@@ -2896,7 +2896,7 @@ function ContextMenuSubTrigger({
|
|
|
2896
2896
|
{
|
|
2897
2897
|
"data-slot": "context-menu-sub-trigger",
|
|
2898
2898
|
"data-inset": inset,
|
|
2899
|
-
className:
|
|
2899
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2900
2900
|
"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",
|
|
2901
2901
|
className
|
|
2902
2902
|
),
|
|
@@ -2918,7 +2918,7 @@ function ContextMenuCheckboxItem({ className, children, checked, ...props }) {
|
|
|
2918
2918
|
_contextmenu.ContextMenu.CheckboxItem,
|
|
2919
2919
|
{
|
|
2920
2920
|
"data-slot": "context-menu-checkbox-item",
|
|
2921
|
-
className:
|
|
2921
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2922
2922
|
"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",
|
|
2923
2923
|
className
|
|
2924
2924
|
),
|
|
@@ -2941,7 +2941,7 @@ function ContextMenuRadioItem({ className, children, ...props }) {
|
|
|
2941
2941
|
_contextmenu.ContextMenu.RadioItem,
|
|
2942
2942
|
{
|
|
2943
2943
|
"data-slot": "context-menu-radio-item",
|
|
2944
|
-
className:
|
|
2944
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2945
2945
|
"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",
|
|
2946
2946
|
className
|
|
2947
2947
|
),
|
|
@@ -2959,7 +2959,7 @@ function ContextMenuSeparator({ className, ...props }) {
|
|
|
2959
2959
|
_contextmenu.ContextMenu.Separator,
|
|
2960
2960
|
{
|
|
2961
2961
|
"data-slot": "context-menu-separator",
|
|
2962
|
-
className:
|
|
2962
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
2963
2963
|
...props
|
|
2964
2964
|
}
|
|
2965
2965
|
);
|
|
@@ -2970,7 +2970,7 @@ function ContextMenuShortcut({ className, ...props }) {
|
|
|
2970
2970
|
"span",
|
|
2971
2971
|
{
|
|
2972
2972
|
"data-slot": "context-menu-shortcut",
|
|
2973
|
-
className:
|
|
2973
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
2974
2974
|
"text-muted-foreground group-focus/context-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest",
|
|
2975
2975
|
className
|
|
2976
2976
|
),
|
|
@@ -3004,7 +3004,7 @@ function DrawerOverlay({ className, ...props }) {
|
|
|
3004
3004
|
_vaul.Drawer.Overlay,
|
|
3005
3005
|
{
|
|
3006
3006
|
"data-slot": "drawer-overlay",
|
|
3007
|
-
className:
|
|
3007
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3008
3008
|
"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",
|
|
3009
3009
|
className
|
|
3010
3010
|
),
|
|
@@ -3020,7 +3020,7 @@ function DrawerContent({ className, children, ...props }) {
|
|
|
3020
3020
|
_vaul.Drawer.Content,
|
|
3021
3021
|
{
|
|
3022
3022
|
"data-slot": "drawer-content",
|
|
3023
|
-
className:
|
|
3023
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3024
3024
|
"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",
|
|
3025
3025
|
className
|
|
3026
3026
|
),
|
|
@@ -3039,7 +3039,7 @@ function DrawerHeader({ className, ...props }) {
|
|
|
3039
3039
|
"div",
|
|
3040
3040
|
{
|
|
3041
3041
|
"data-slot": "drawer-header",
|
|
3042
|
-
className:
|
|
3042
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3043
3043
|
"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",
|
|
3044
3044
|
className
|
|
3045
3045
|
),
|
|
@@ -3049,7 +3049,7 @@ function DrawerHeader({ className, ...props }) {
|
|
|
3049
3049
|
}
|
|
3050
3050
|
_chunk7QVYU63Ejs.__name.call(void 0, DrawerHeader, "DrawerHeader");
|
|
3051
3051
|
function DrawerFooter({ className, ...props }) {
|
|
3052
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "drawer-footer", className:
|
|
3052
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "drawer-footer", className: _chunk3EZX4G2Ejs.cn.call(void 0, "gap-2 p-4 mt-auto flex flex-col", className), ...props });
|
|
3053
3053
|
}
|
|
3054
3054
|
_chunk7QVYU63Ejs.__name.call(void 0, DrawerFooter, "DrawerFooter");
|
|
3055
3055
|
function DrawerTitle({ className, ...props }) {
|
|
@@ -3057,7 +3057,7 @@ function DrawerTitle({ className, ...props }) {
|
|
|
3057
3057
|
_vaul.Drawer.Title,
|
|
3058
3058
|
{
|
|
3059
3059
|
"data-slot": "drawer-title",
|
|
3060
|
-
className:
|
|
3060
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "text-foreground text-sm font-medium", className),
|
|
3061
3061
|
...props
|
|
3062
3062
|
}
|
|
3063
3063
|
);
|
|
@@ -3068,7 +3068,7 @@ function DrawerDescription({ className, ...props }) {
|
|
|
3068
3068
|
_vaul.Drawer.Description,
|
|
3069
3069
|
{
|
|
3070
3070
|
"data-slot": "drawer-description",
|
|
3071
|
-
className:
|
|
3071
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
|
|
3072
3072
|
...props
|
|
3073
3073
|
}
|
|
3074
3074
|
);
|
|
@@ -3111,7 +3111,7 @@ function DropdownMenuContent({
|
|
|
3111
3111
|
_menu.Menu.Popup,
|
|
3112
3112
|
{
|
|
3113
3113
|
"data-slot": "dropdown-menu-content",
|
|
3114
|
-
className:
|
|
3114
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3115
3115
|
"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",
|
|
3116
3116
|
className
|
|
3117
3117
|
),
|
|
@@ -3136,7 +3136,7 @@ function DropdownMenuLabel({
|
|
|
3136
3136
|
{
|
|
3137
3137
|
"data-slot": "dropdown-menu-label",
|
|
3138
3138
|
"data-inset": inset,
|
|
3139
|
-
className:
|
|
3139
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
|
|
3140
3140
|
...props
|
|
3141
3141
|
}
|
|
3142
3142
|
);
|
|
@@ -3154,7 +3154,7 @@ function DropdownMenuItem({
|
|
|
3154
3154
|
"data-slot": "dropdown-menu-item",
|
|
3155
3155
|
"data-inset": inset,
|
|
3156
3156
|
"data-variant": variant,
|
|
3157
|
-
className:
|
|
3157
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3158
3158
|
"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",
|
|
3159
3159
|
className
|
|
3160
3160
|
),
|
|
@@ -3178,7 +3178,7 @@ function DropdownMenuSubTrigger({
|
|
|
3178
3178
|
{
|
|
3179
3179
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
3180
3180
|
"data-inset": inset,
|
|
3181
|
-
className:
|
|
3181
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3182
3182
|
"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",
|
|
3183
3183
|
className
|
|
3184
3184
|
),
|
|
@@ -3203,7 +3203,7 @@ function DropdownMenuSubContent({
|
|
|
3203
3203
|
DropdownMenuContent,
|
|
3204
3204
|
{
|
|
3205
3205
|
"data-slot": "dropdown-menu-sub-content",
|
|
3206
|
-
className:
|
|
3206
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3207
3207
|
"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",
|
|
3208
3208
|
className
|
|
3209
3209
|
),
|
|
@@ -3221,7 +3221,7 @@ function DropdownMenuCheckboxItem({ className, children, checked, ...props }) {
|
|
|
3221
3221
|
_menu.Menu.CheckboxItem,
|
|
3222
3222
|
{
|
|
3223
3223
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
3224
|
-
className:
|
|
3224
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3225
3225
|
"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",
|
|
3226
3226
|
className
|
|
3227
3227
|
),
|
|
@@ -3251,7 +3251,7 @@ function DropdownMenuRadioItem({ className, children, ...props }) {
|
|
|
3251
3251
|
_menu.Menu.RadioItem,
|
|
3252
3252
|
{
|
|
3253
3253
|
"data-slot": "dropdown-menu-radio-item",
|
|
3254
|
-
className:
|
|
3254
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3255
3255
|
"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",
|
|
3256
3256
|
className
|
|
3257
3257
|
),
|
|
@@ -3276,7 +3276,7 @@ function DropdownMenuSeparator({ className, ...props }) {
|
|
|
3276
3276
|
_menu.Menu.Separator,
|
|
3277
3277
|
{
|
|
3278
3278
|
"data-slot": "dropdown-menu-separator",
|
|
3279
|
-
className:
|
|
3279
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
|
|
3280
3280
|
...props
|
|
3281
3281
|
}
|
|
3282
3282
|
);
|
|
@@ -3287,7 +3287,7 @@ function DropdownMenuShortcut({ className, ...props }) {
|
|
|
3287
3287
|
"span",
|
|
3288
3288
|
{
|
|
3289
3289
|
"data-slot": "dropdown-menu-shortcut",
|
|
3290
|
-
className:
|
|
3290
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3291
3291
|
"text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest",
|
|
3292
3292
|
className
|
|
3293
3293
|
),
|
|
@@ -3308,7 +3308,7 @@ function Label({ className, ...props }) {
|
|
|
3308
3308
|
"label",
|
|
3309
3309
|
{
|
|
3310
3310
|
"data-slot": "label",
|
|
3311
|
-
className:
|
|
3311
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3312
3312
|
"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",
|
|
3313
3313
|
className
|
|
3314
3314
|
),
|
|
@@ -3327,7 +3327,7 @@ function Separator({ className, orientation = "horizontal", ...props }) {
|
|
|
3327
3327
|
{
|
|
3328
3328
|
"data-slot": "separator",
|
|
3329
3329
|
orientation,
|
|
3330
|
-
className:
|
|
3330
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3331
3331
|
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch",
|
|
3332
3332
|
className
|
|
3333
3333
|
),
|
|
@@ -3344,7 +3344,7 @@ function FieldSet({ className, ...props }) {
|
|
|
3344
3344
|
"fieldset",
|
|
3345
3345
|
{
|
|
3346
3346
|
"data-slot": "field-set",
|
|
3347
|
-
className:
|
|
3347
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3348
3348
|
"gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col",
|
|
3349
3349
|
className
|
|
3350
3350
|
),
|
|
@@ -3363,7 +3363,7 @@ function FieldLegend({
|
|
|
3363
3363
|
{
|
|
3364
3364
|
"data-slot": "field-legend",
|
|
3365
3365
|
"data-variant": variant,
|
|
3366
|
-
className:
|
|
3366
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "mb-2 font-medium data-[variant=label]:text-xs/relaxed data-[variant=legend]:text-sm", className),
|
|
3367
3367
|
...props
|
|
3368
3368
|
}
|
|
3369
3369
|
);
|
|
@@ -3374,7 +3374,7 @@ function FieldGroup({ className, ...props }) {
|
|
|
3374
3374
|
"div",
|
|
3375
3375
|
{
|
|
3376
3376
|
"data-slot": "field-group",
|
|
3377
|
-
className:
|
|
3377
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3378
3378
|
"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",
|
|
3379
3379
|
className
|
|
3380
3380
|
),
|
|
@@ -3406,7 +3406,7 @@ function Field({
|
|
|
3406
3406
|
role: "group",
|
|
3407
3407
|
"data-slot": "field",
|
|
3408
3408
|
"data-orientation": orientation,
|
|
3409
|
-
className:
|
|
3409
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, fieldVariants({ orientation }), className),
|
|
3410
3410
|
...props
|
|
3411
3411
|
}
|
|
3412
3412
|
);
|
|
@@ -3417,7 +3417,7 @@ function FieldContent({ className, ...props }) {
|
|
|
3417
3417
|
"div",
|
|
3418
3418
|
{
|
|
3419
3419
|
"data-slot": "field-content",
|
|
3420
|
-
className:
|
|
3420
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "gap-0.5 group/field-content flex flex-1 flex-col leading-snug", className),
|
|
3421
3421
|
...props
|
|
3422
3422
|
}
|
|
3423
3423
|
);
|
|
@@ -3428,7 +3428,7 @@ function FieldLabel({ className, ...props }) {
|
|
|
3428
3428
|
Label,
|
|
3429
3429
|
{
|
|
3430
3430
|
"data-slot": "field-label",
|
|
3431
|
-
className:
|
|
3431
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3432
3432
|
"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",
|
|
3433
3433
|
"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",
|
|
3434
3434
|
className
|
|
@@ -3443,7 +3443,7 @@ function FieldTitle({ className, ...props }) {
|
|
|
3443
3443
|
"div",
|
|
3444
3444
|
{
|
|
3445
3445
|
"data-slot": "field-label",
|
|
3446
|
-
className:
|
|
3446
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3447
3447
|
"gap-2 text-xs/relaxed font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center leading-snug",
|
|
3448
3448
|
className
|
|
3449
3449
|
),
|
|
@@ -3457,7 +3457,7 @@ function FieldDescription({ className, ...props }) {
|
|
|
3457
3457
|
"p",
|
|
3458
3458
|
{
|
|
3459
3459
|
"data-slot": "field-description",
|
|
3460
|
-
className:
|
|
3460
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3461
3461
|
"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",
|
|
3462
3462
|
"last:mt-0 nth-last-2:-mt-1",
|
|
3463
3463
|
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
@@ -3478,7 +3478,7 @@ function FieldSeparator({
|
|
|
3478
3478
|
{
|
|
3479
3479
|
"data-slot": "field-separator",
|
|
3480
3480
|
"data-content": !!children,
|
|
3481
|
-
className:
|
|
3481
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "-my-2 h-5 text-xs/relaxed group-data-[variant=outline]/field-group:-mb-2 relative", className),
|
|
3482
3482
|
...props,
|
|
3483
3483
|
children: [
|
|
3484
3484
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, { className: "absolute inset-0 top-1/2" }),
|
|
@@ -3522,7 +3522,7 @@ function FieldError({
|
|
|
3522
3522
|
{
|
|
3523
3523
|
role: "alert",
|
|
3524
3524
|
"data-slot": "field-error",
|
|
3525
|
-
className:
|
|
3525
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "text-destructive text-xs/relaxed font-normal", className),
|
|
3526
3526
|
...props,
|
|
3527
3527
|
children: content
|
|
3528
3528
|
}
|
|
@@ -3565,7 +3565,7 @@ function HoverCardContent({
|
|
|
3565
3565
|
_previewcard.PreviewCard.Popup,
|
|
3566
3566
|
{
|
|
3567
3567
|
"data-slot": "hover-card-content",
|
|
3568
|
-
className:
|
|
3568
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3569
3569
|
"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",
|
|
3570
3570
|
className
|
|
3571
3571
|
),
|
|
@@ -3591,9 +3591,9 @@ function InputOTP({
|
|
|
3591
3591
|
_inputotp.OTPInput,
|
|
3592
3592
|
{
|
|
3593
3593
|
"data-slot": "input-otp",
|
|
3594
|
-
containerClassName:
|
|
3594
|
+
containerClassName: _chunk3EZX4G2Ejs.cn.call(void 0, "cn-input-otp flex items-center has-disabled:opacity-50", containerClassName),
|
|
3595
3595
|
spellCheck: false,
|
|
3596
|
-
className:
|
|
3596
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "disabled:cursor-not-allowed", className),
|
|
3597
3597
|
...props
|
|
3598
3598
|
}
|
|
3599
3599
|
);
|
|
@@ -3604,7 +3604,7 @@ function InputOTPGroup({ className, ...props }) {
|
|
|
3604
3604
|
"div",
|
|
3605
3605
|
{
|
|
3606
3606
|
"data-slot": "input-otp-group",
|
|
3607
|
-
className:
|
|
3607
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3608
3608
|
"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",
|
|
3609
3609
|
className
|
|
3610
3610
|
),
|
|
@@ -3625,7 +3625,7 @@ function InputOTPSlot({
|
|
|
3625
3625
|
{
|
|
3626
3626
|
"data-slot": "input-otp-slot",
|
|
3627
3627
|
"data-active": isActive,
|
|
3628
|
-
className:
|
|
3628
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3629
3629
|
"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",
|
|
3630
3630
|
className
|
|
3631
3631
|
),
|
|
@@ -3662,7 +3662,7 @@ function NavigationMenu({ className, children, ...props }) {
|
|
|
3662
3662
|
_navigationmenu.NavigationMenu.Root,
|
|
3663
3663
|
{
|
|
3664
3664
|
"data-slot": "navigation-menu",
|
|
3665
|
-
className:
|
|
3665
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3666
3666
|
"max-w-max group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
|
|
3667
3667
|
className
|
|
3668
3668
|
),
|
|
@@ -3680,14 +3680,14 @@ function NavigationMenuList({ className, ...props }) {
|
|
|
3680
3680
|
_navigationmenu.NavigationMenu.List,
|
|
3681
3681
|
{
|
|
3682
3682
|
"data-slot": "navigation-menu-list",
|
|
3683
|
-
className:
|
|
3683
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "gap-0 group flex flex-1 list-none items-center justify-center", className),
|
|
3684
3684
|
...props
|
|
3685
3685
|
}
|
|
3686
3686
|
);
|
|
3687
3687
|
}
|
|
3688
3688
|
_chunk7QVYU63Ejs.__name.call(void 0, NavigationMenuList, "NavigationMenuList");
|
|
3689
3689
|
function NavigationMenuItem({ className, ...props }) {
|
|
3690
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _navigationmenu.NavigationMenu.Item, { "data-slot": "navigation-menu-item", className:
|
|
3690
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _navigationmenu.NavigationMenu.Item, { "data-slot": "navigation-menu-item", className: _chunk3EZX4G2Ejs.cn.call(void 0, "relative", className), ...props });
|
|
3691
3691
|
}
|
|
3692
3692
|
_chunk7QVYU63Ejs.__name.call(void 0, NavigationMenuItem, "NavigationMenuItem");
|
|
3693
3693
|
var navigationMenuTriggerStyle = _classvarianceauthority.cva.call(void 0,
|
|
@@ -3698,7 +3698,7 @@ function NavigationMenuTrigger({ className, children, ...props }) {
|
|
|
3698
3698
|
_navigationmenu.NavigationMenu.Trigger,
|
|
3699
3699
|
{
|
|
3700
3700
|
"data-slot": "navigation-menu-trigger",
|
|
3701
|
-
className:
|
|
3701
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, navigationMenuTriggerStyle(), "group", className),
|
|
3702
3702
|
...props,
|
|
3703
3703
|
children: [
|
|
3704
3704
|
children,
|
|
@@ -3720,7 +3720,7 @@ function NavigationMenuContent({ className, ...props }) {
|
|
|
3720
3720
|
_navigationmenu.NavigationMenu.Content,
|
|
3721
3721
|
{
|
|
3722
3722
|
"data-slot": "navigation-menu-content",
|
|
3723
|
-
className:
|
|
3723
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3724
3724
|
"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",
|
|
3725
3725
|
className
|
|
3726
3726
|
),
|
|
@@ -3744,7 +3744,7 @@ function NavigationMenuPositioner({
|
|
|
3744
3744
|
sideOffset,
|
|
3745
3745
|
align,
|
|
3746
3746
|
alignOffset,
|
|
3747
|
-
className:
|
|
3747
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3748
3748
|
"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",
|
|
3749
3749
|
className
|
|
3750
3750
|
),
|
|
@@ -3759,7 +3759,7 @@ function NavigationMenuLink({ className, ...props }) {
|
|
|
3759
3759
|
_navigationmenu.NavigationMenu.Link,
|
|
3760
3760
|
{
|
|
3761
3761
|
"data-slot": "navigation-menu-link",
|
|
3762
|
-
className:
|
|
3762
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3763
3763
|
"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",
|
|
3764
3764
|
className
|
|
3765
3765
|
),
|
|
@@ -3773,7 +3773,7 @@ function NavigationMenuIndicator({ className, ...props }) {
|
|
|
3773
3773
|
_navigationmenu.NavigationMenu.Icon,
|
|
3774
3774
|
{
|
|
3775
3775
|
"data-slot": "navigation-menu-indicator",
|
|
3776
|
-
className:
|
|
3776
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3777
3777
|
"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",
|
|
3778
3778
|
className
|
|
3779
3779
|
),
|
|
@@ -3815,7 +3815,7 @@ function PopoverContent({
|
|
|
3815
3815
|
_popover.Popover.Popup,
|
|
3816
3816
|
{
|
|
3817
3817
|
"data-slot": "popover-content",
|
|
3818
|
-
className:
|
|
3818
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3819
3819
|
"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",
|
|
3820
3820
|
className
|
|
3821
3821
|
),
|
|
@@ -3827,11 +3827,11 @@ function PopoverContent({
|
|
|
3827
3827
|
}
|
|
3828
3828
|
_chunk7QVYU63Ejs.__name.call(void 0, PopoverContent, "PopoverContent");
|
|
3829
3829
|
function PopoverHeader({ className, ...props }) {
|
|
3830
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "popover-header", className:
|
|
3830
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "popover-header", className: _chunk3EZX4G2Ejs.cn.call(void 0, "flex flex-col gap-1 text-xs", className), ...props });
|
|
3831
3831
|
}
|
|
3832
3832
|
_chunk7QVYU63Ejs.__name.call(void 0, PopoverHeader, "PopoverHeader");
|
|
3833
3833
|
function PopoverTitle({ className, ...props }) {
|
|
3834
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _popover.Popover.Title, { "data-slot": "popover-title", className:
|
|
3834
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _popover.Popover.Title, { "data-slot": "popover-title", className: _chunk3EZX4G2Ejs.cn.call(void 0, "text-sm font-medium", className), ...props });
|
|
3835
3835
|
}
|
|
3836
3836
|
_chunk7QVYU63Ejs.__name.call(void 0, PopoverTitle, "PopoverTitle");
|
|
3837
3837
|
function PopoverDescription({ className, ...props }) {
|
|
@@ -3839,7 +3839,7 @@ function PopoverDescription({ className, ...props }) {
|
|
|
3839
3839
|
_popover.Popover.Description,
|
|
3840
3840
|
{
|
|
3841
3841
|
"data-slot": "popover-description",
|
|
3842
|
-
className:
|
|
3842
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "text-muted-foreground", className),
|
|
3843
3843
|
...props
|
|
3844
3844
|
}
|
|
3845
3845
|
);
|
|
@@ -3855,7 +3855,7 @@ function Progress({ className, children, value, ...props }) {
|
|
|
3855
3855
|
{
|
|
3856
3856
|
value,
|
|
3857
3857
|
"data-slot": "progress",
|
|
3858
|
-
className:
|
|
3858
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "flex flex-wrap gap-3", className),
|
|
3859
3859
|
...props,
|
|
3860
3860
|
children: [
|
|
3861
3861
|
children,
|
|
@@ -3869,7 +3869,7 @@ function ProgressTrack({ className, ...props }) {
|
|
|
3869
3869
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3870
3870
|
_progress.Progress.Track,
|
|
3871
3871
|
{
|
|
3872
|
-
className:
|
|
3872
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "bg-muted h-1 rounded-md relative flex w-full items-center overflow-x-hidden", className),
|
|
3873
3873
|
"data-slot": "progress-track",
|
|
3874
3874
|
...props
|
|
3875
3875
|
}
|
|
@@ -3881,7 +3881,7 @@ function ProgressIndicator({ className, ...props }) {
|
|
|
3881
3881
|
_progress.Progress.Indicator,
|
|
3882
3882
|
{
|
|
3883
3883
|
"data-slot": "progress-indicator",
|
|
3884
|
-
className:
|
|
3884
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "bg-primary h-full transition-all", className),
|
|
3885
3885
|
...props
|
|
3886
3886
|
}
|
|
3887
3887
|
);
|
|
@@ -3891,7 +3891,7 @@ function ProgressLabel({ className, ...props }) {
|
|
|
3891
3891
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3892
3892
|
_progress.Progress.Label,
|
|
3893
3893
|
{
|
|
3894
|
-
className:
|
|
3894
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "text-xs/relaxed font-medium", className),
|
|
3895
3895
|
"data-slot": "progress-label",
|
|
3896
3896
|
...props
|
|
3897
3897
|
}
|
|
@@ -3902,7 +3902,7 @@ function ProgressValue({ className, ...props }) {
|
|
|
3902
3902
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3903
3903
|
_progress.Progress.Value,
|
|
3904
3904
|
{
|
|
3905
|
-
className:
|
|
3905
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "text-muted-foreground ml-auto text-xs/relaxed tabular-nums", className),
|
|
3906
3906
|
"data-slot": "progress-value",
|
|
3907
3907
|
...props
|
|
3908
3908
|
}
|
|
@@ -3916,7 +3916,7 @@ var _radiogroup = require('@base-ui/react/radio-group');
|
|
|
3916
3916
|
|
|
3917
3917
|
|
|
3918
3918
|
function RadioGroup({ className, ...props }) {
|
|
3919
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _radiogroup.RadioGroup, { "data-slot": "radio-group", className:
|
|
3919
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _radiogroup.RadioGroup, { "data-slot": "radio-group", className: _chunk3EZX4G2Ejs.cn.call(void 0, "grid gap-3 w-full", className), ...props });
|
|
3920
3920
|
}
|
|
3921
3921
|
_chunk7QVYU63Ejs.__name.call(void 0, RadioGroup, "RadioGroup");
|
|
3922
3922
|
function RadioGroupItem({ className, ...props }) {
|
|
@@ -3924,7 +3924,7 @@ function RadioGroupItem({ className, ...props }) {
|
|
|
3924
3924
|
_radio.Radio.Root,
|
|
3925
3925
|
{
|
|
3926
3926
|
"data-slot": "radio-group-item",
|
|
3927
|
-
className:
|
|
3927
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3928
3928
|
"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",
|
|
3929
3929
|
className
|
|
3930
3930
|
),
|
|
@@ -3950,7 +3950,7 @@ function ResizablePanelGroup({ className, ...props }) {
|
|
|
3950
3950
|
ResizablePrimitive.PanelGroup,
|
|
3951
3951
|
{
|
|
3952
3952
|
"data-slot": "resizable-panel-group",
|
|
3953
|
-
className:
|
|
3953
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className),
|
|
3954
3954
|
...props
|
|
3955
3955
|
}
|
|
3956
3956
|
);
|
|
@@ -3969,7 +3969,7 @@ function ResizableHandle({
|
|
|
3969
3969
|
ResizablePrimitive.PanelResizeHandle,
|
|
3970
3970
|
{
|
|
3971
3971
|
"data-slot": "resizable-handle",
|
|
3972
|
-
className:
|
|
3972
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
3973
3973
|
"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",
|
|
3974
3974
|
className
|
|
3975
3975
|
),
|
|
@@ -3984,7 +3984,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ResizableHandle, "ResizableHandle");
|
|
|
3984
3984
|
var _scrollarea = require('@base-ui/react/scroll-area');
|
|
3985
3985
|
|
|
3986
3986
|
function ScrollArea({ className, children, ...props }) {
|
|
3987
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _scrollarea.ScrollArea.Root, { "data-slot": "scroll-area", className:
|
|
3987
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _scrollarea.ScrollArea.Root, { "data-slot": "scroll-area", className: _chunk3EZX4G2Ejs.cn.call(void 0, "relative", className), ...props, children: [
|
|
3988
3988
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3989
3989
|
_scrollarea.ScrollArea.Viewport,
|
|
3990
3990
|
{
|
|
@@ -4005,7 +4005,7 @@ function ScrollBar({ className, orientation = "vertical", ...props }) {
|
|
|
4005
4005
|
"data-slot": "scroll-area-scrollbar",
|
|
4006
4006
|
"data-orientation": orientation,
|
|
4007
4007
|
orientation,
|
|
4008
|
-
className:
|
|
4008
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
4009
4009
|
"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",
|
|
4010
4010
|
className
|
|
4011
4011
|
),
|
|
@@ -4022,11 +4022,11 @@ var _select = require('@base-ui/react/select');
|
|
|
4022
4022
|
|
|
4023
4023
|
var Select = _select.Select.Root;
|
|
4024
4024
|
function SelectGroup({ className, ...props }) {
|
|
4025
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _select.Select.Group, { "data-slot": "select-group", className:
|
|
4025
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _select.Select.Group, { "data-slot": "select-group", className: _chunk3EZX4G2Ejs.cn.call(void 0, "scroll-my-1 p-1", className), ...props });
|
|
4026
4026
|
}
|
|
4027
4027
|
_chunk7QVYU63Ejs.__name.call(void 0, SelectGroup, "SelectGroup");
|
|
4028
4028
|
function SelectValue({ className, ...props }) {
|
|
4029
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _select.Select.Value, { "data-slot": "select-value", className:
|
|
4029
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _select.Select.Value, { "data-slot": "select-value", className: _chunk3EZX4G2Ejs.cn.call(void 0, "flex flex-1 text-left", className), ...props });
|
|
4030
4030
|
}
|
|
4031
4031
|
_chunk7QVYU63Ejs.__name.call(void 0, SelectValue, "SelectValue");
|
|
4032
4032
|
function SelectTrigger({
|
|
@@ -4040,7 +4040,7 @@ function SelectTrigger({
|
|
|
4040
4040
|
{
|
|
4041
4041
|
"data-slot": "select-trigger",
|
|
4042
4042
|
"data-size": size,
|
|
4043
|
-
className:
|
|
4043
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
4044
4044
|
"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",
|
|
4045
4045
|
className
|
|
4046
4046
|
),
|
|
@@ -4081,7 +4081,7 @@ function SelectContent({
|
|
|
4081
4081
|
_select.Select.Popup,
|
|
4082
4082
|
{
|
|
4083
4083
|
"data-slot": "select-content",
|
|
4084
|
-
className:
|
|
4084
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
4085
4085
|
"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",
|
|
4086
4086
|
className
|
|
4087
4087
|
),
|
|
@@ -4102,7 +4102,7 @@ function SelectLabel({ className, ...props }) {
|
|
|
4102
4102
|
_select.Select.GroupLabel,
|
|
4103
4103
|
{
|
|
4104
4104
|
"data-slot": "select-label",
|
|
4105
|
-
className:
|
|
4105
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs", className),
|
|
4106
4106
|
...props
|
|
4107
4107
|
}
|
|
4108
4108
|
);
|
|
@@ -4113,7 +4113,7 @@ function SelectItem({ className, children, ...props }) {
|
|
|
4113
4113
|
_select.Select.Item,
|
|
4114
4114
|
{
|
|
4115
4115
|
"data-slot": "select-item",
|
|
4116
|
-
className:
|
|
4116
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
4117
4117
|
"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",
|
|
4118
4118
|
className
|
|
4119
4119
|
),
|
|
@@ -4137,7 +4137,7 @@ function SelectSeparator({ className, ...props }) {
|
|
|
4137
4137
|
_select.Select.Separator,
|
|
4138
4138
|
{
|
|
4139
4139
|
"data-slot": "select-separator",
|
|
4140
|
-
className:
|
|
4140
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px pointer-events-none", className),
|
|
4141
4141
|
...props
|
|
4142
4142
|
}
|
|
4143
4143
|
);
|
|
@@ -4148,7 +4148,7 @@ function SelectScrollUpButton({ className, ...props }) {
|
|
|
4148
4148
|
_select.Select.ScrollUpArrow,
|
|
4149
4149
|
{
|
|
4150
4150
|
"data-slot": "select-scroll-up-button",
|
|
4151
|
-
className:
|
|
4151
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
4152
4152
|
"bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5 top-0 w-full",
|
|
4153
4153
|
className
|
|
4154
4154
|
),
|
|
@@ -4163,7 +4163,7 @@ function SelectScrollDownButton({ className, ...props }) {
|
|
|
4163
4163
|
_select.Select.ScrollDownArrow,
|
|
4164
4164
|
{
|
|
4165
4165
|
"data-slot": "select-scroll-down-button",
|
|
4166
|
-
className:
|
|
4166
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
4167
4167
|
"bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5 bottom-0 w-full",
|
|
4168
4168
|
className
|
|
4169
4169
|
),
|
|
@@ -4199,7 +4199,7 @@ function SheetOverlay({ className, ...props }) {
|
|
|
4199
4199
|
_dialog.Dialog.Backdrop,
|
|
4200
4200
|
{
|
|
4201
4201
|
"data-slot": "sheet-overlay",
|
|
4202
|
-
className:
|
|
4202
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
4203
4203
|
"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",
|
|
4204
4204
|
className
|
|
4205
4205
|
),
|
|
@@ -4222,7 +4222,7 @@ function SheetContent({
|
|
|
4222
4222
|
{
|
|
4223
4223
|
"data-slot": "sheet-content",
|
|
4224
4224
|
"data-side": side,
|
|
4225
|
-
className:
|
|
4225
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
4226
4226
|
"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",
|
|
4227
4227
|
className
|
|
4228
4228
|
),
|
|
@@ -4247,11 +4247,11 @@ function SheetContent({
|
|
|
4247
4247
|
}
|
|
4248
4248
|
_chunk7QVYU63Ejs.__name.call(void 0, SheetContent, "SheetContent");
|
|
4249
4249
|
function SheetHeader({ className, ...props }) {
|
|
4250
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "sheet-header", className:
|
|
4250
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "sheet-header", className: _chunk3EZX4G2Ejs.cn.call(void 0, "gap-1.5 p-6 flex flex-col", className), ...props });
|
|
4251
4251
|
}
|
|
4252
4252
|
_chunk7QVYU63Ejs.__name.call(void 0, SheetHeader, "SheetHeader");
|
|
4253
4253
|
function SheetFooter({ className, ...props }) {
|
|
4254
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "sheet-footer", className:
|
|
4254
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "sheet-footer", className: _chunk3EZX4G2Ejs.cn.call(void 0, "gap-2 p-6 mt-auto flex flex-col", className), ...props });
|
|
4255
4255
|
}
|
|
4256
4256
|
_chunk7QVYU63Ejs.__name.call(void 0, SheetFooter, "SheetFooter");
|
|
4257
4257
|
function SheetTitle({ className, ...props }) {
|
|
@@ -4259,7 +4259,7 @@ function SheetTitle({ className, ...props }) {
|
|
|
4259
4259
|
_dialog.Dialog.Title,
|
|
4260
4260
|
{
|
|
4261
4261
|
"data-slot": "sheet-title",
|
|
4262
|
-
className:
|
|
4262
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "text-foreground text-sm font-medium", className),
|
|
4263
4263
|
...props
|
|
4264
4264
|
}
|
|
4265
4265
|
);
|
|
@@ -4270,7 +4270,7 @@ function SheetDescription({ className, ...props }) {
|
|
|
4270
4270
|
_dialog.Dialog.Description,
|
|
4271
4271
|
{
|
|
4272
4272
|
"data-slot": "sheet-description",
|
|
4273
|
-
className:
|
|
4273
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
|
|
4274
4274
|
...props
|
|
4275
4275
|
}
|
|
4276
4276
|
);
|
|
@@ -4286,7 +4286,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, SheetDescription, "SheetDescription");
|
|
|
4286
4286
|
// src/shadcnui/ui/skeleton.tsx
|
|
4287
4287
|
|
|
4288
4288
|
function Skeleton({ className, ...props }) {
|
|
4289
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "skeleton", className:
|
|
4289
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "skeleton", className: _chunk3EZX4G2Ejs.cn.call(void 0, "bg-muted rounded-md animate-pulse", className), ...props });
|
|
4290
4290
|
}
|
|
4291
4291
|
_chunk7QVYU63Ejs.__name.call(void 0, Skeleton, "Skeleton");
|
|
4292
4292
|
|
|
@@ -4326,7 +4326,7 @@ function TooltipContent({
|
|
|
4326
4326
|
_tooltip.Tooltip.Popup,
|
|
4327
4327
|
{
|
|
4328
4328
|
"data-slot": "tooltip-content",
|
|
4329
|
-
className:
|
|
4329
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
4330
4330
|
"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)",
|
|
4331
4331
|
className
|
|
4332
4332
|
),
|
|
@@ -4369,7 +4369,7 @@ function SidebarProvider({
|
|
|
4369
4369
|
children,
|
|
4370
4370
|
...props
|
|
4371
4371
|
}) {
|
|
4372
|
-
const isMobile =
|
|
4372
|
+
const isMobile = _chunk3EZX4G2Ejs.useIsMobile.call(void 0, );
|
|
4373
4373
|
const [openMobile, setOpenMobile] = React7.useState(false);
|
|
4374
4374
|
const [_open, _setOpen] = React7.useState(defaultOpen);
|
|
4375
4375
|
const open = _nullishCoalesce(openProp, () => ( _open));
|
|
@@ -4420,7 +4420,7 @@ function SidebarProvider({
|
|
|
4420
4420
|
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
4421
4421
|
...style
|
|
4422
4422
|
},
|
|
4423
|
-
className:
|
|
4423
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", className),
|
|
4424
4424
|
...props,
|
|
4425
4425
|
children
|
|
4426
4426
|
}
|
|
@@ -4441,7 +4441,7 @@ function Sidebar({
|
|
|
4441
4441
|
"div",
|
|
4442
4442
|
{
|
|
4443
4443
|
"data-slot": "sidebar",
|
|
4444
|
-
className:
|
|
4444
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", className),
|
|
4445
4445
|
...props,
|
|
4446
4446
|
children
|
|
4447
4447
|
}
|
|
@@ -4483,7 +4483,7 @@ function Sidebar({
|
|
|
4483
4483
|
"div",
|
|
4484
4484
|
{
|
|
4485
4485
|
"data-slot": "sidebar-gap",
|
|
4486
|
-
className:
|
|
4486
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
4487
4487
|
"transition-[width] duration-200 ease-linear relative w-(--sidebar-width) bg-transparent",
|
|
4488
4488
|
"group-data-[collapsible=offExamples]:w-0",
|
|
4489
4489
|
"group-data-[side=right]:rotate-180",
|
|
@@ -4495,7 +4495,7 @@ function Sidebar({
|
|
|
4495
4495
|
"div",
|
|
4496
4496
|
{
|
|
4497
4497
|
"data-slot": "sidebar-container",
|
|
4498
|
-
className:
|
|
4498
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
4499
4499
|
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
4500
4500
|
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)]",
|
|
4501
4501
|
// Adjust the padding for floating and inset variants.
|
|
@@ -4528,7 +4528,7 @@ function SidebarTrigger({ className, onClick, ...props }) {
|
|
|
4528
4528
|
"data-slot": "sidebar-trigger",
|
|
4529
4529
|
variant: "ghost",
|
|
4530
4530
|
size: "icon-sm",
|
|
4531
|
-
className:
|
|
4531
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, className),
|
|
4532
4532
|
onClick: (event) => {
|
|
4533
4533
|
_optionalChain([onClick, 'optionalCall', _97 => _97(event)]);
|
|
4534
4534
|
toggleSidebar();
|
|
@@ -4553,7 +4553,7 @@ function SidebarRail({ className, ...props }) {
|
|
|
4553
4553
|
tabIndex: -1,
|
|
4554
4554
|
onClick: toggleSidebar,
|
|
4555
4555
|
title: "Toggle Sidebar",
|
|
4556
|
-
className:
|
|
4556
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
4557
4557
|
"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",
|
|
4558
4558
|
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
4559
4559
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
@@ -4572,7 +4572,7 @@ function SidebarInset({ className, ...props }) {
|
|
|
4572
4572
|
"main",
|
|
4573
4573
|
{
|
|
4574
4574
|
"data-slot": "sidebar-inset",
|
|
4575
|
-
className:
|
|
4575
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
4576
4576
|
"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",
|
|
4577
4577
|
className
|
|
4578
4578
|
),
|
|
@@ -4587,7 +4587,7 @@ function SidebarInput({ className, ...props }) {
|
|
|
4587
4587
|
{
|
|
4588
4588
|
"data-slot": "sidebar-input",
|
|
4589
4589
|
"data-sidebar": "input",
|
|
4590
|
-
className:
|
|
4590
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "bg-muted/20 dark:bg-muted/30 border-input h-8 w-full", className),
|
|
4591
4591
|
...props
|
|
4592
4592
|
}
|
|
4593
4593
|
);
|
|
@@ -4599,7 +4599,7 @@ function SidebarHeader({ className, ...props }) {
|
|
|
4599
4599
|
{
|
|
4600
4600
|
"data-slot": "sidebar-header",
|
|
4601
4601
|
"data-sidebar": "header",
|
|
4602
|
-
className:
|
|
4602
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
|
|
4603
4603
|
...props
|
|
4604
4604
|
}
|
|
4605
4605
|
);
|
|
@@ -4611,7 +4611,7 @@ function SidebarFooter({ className, ...props }) {
|
|
|
4611
4611
|
{
|
|
4612
4612
|
"data-slot": "sidebar-footer",
|
|
4613
4613
|
"data-sidebar": "footer",
|
|
4614
|
-
className:
|
|
4614
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
|
|
4615
4615
|
...props
|
|
4616
4616
|
}
|
|
4617
4617
|
);
|
|
@@ -4623,7 +4623,7 @@ function SidebarSeparator({ className, ...props }) {
|
|
|
4623
4623
|
{
|
|
4624
4624
|
"data-slot": "sidebar-separator",
|
|
4625
4625
|
"data-sidebar": "separator",
|
|
4626
|
-
className:
|
|
4626
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "bg-sidebar-border mx-2 w-auto", className),
|
|
4627
4627
|
...props
|
|
4628
4628
|
}
|
|
4629
4629
|
);
|
|
@@ -4635,7 +4635,7 @@ function SidebarContent({ className, ...props }) {
|
|
|
4635
4635
|
{
|
|
4636
4636
|
"data-slot": "sidebar-content",
|
|
4637
4637
|
"data-sidebar": "content",
|
|
4638
|
-
className:
|
|
4638
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
4639
4639
|
"no-scrollbar gap-0 flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
4640
4640
|
className
|
|
4641
4641
|
),
|
|
@@ -4650,7 +4650,7 @@ function SidebarGroup({ className, ...props }) {
|
|
|
4650
4650
|
{
|
|
4651
4651
|
"data-slot": "sidebar-group",
|
|
4652
4652
|
"data-sidebar": "group",
|
|
4653
|
-
className:
|
|
4653
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "px-2 py-1 relative flex w-full min-w-0 flex-col", className),
|
|
4654
4654
|
...props
|
|
4655
4655
|
}
|
|
4656
4656
|
);
|
|
@@ -4665,7 +4665,7 @@ function SidebarGroupLabel({
|
|
|
4665
4665
|
defaultTagName: "div",
|
|
4666
4666
|
props: _mergeprops.mergeProps.call(void 0,
|
|
4667
4667
|
{
|
|
4668
|
-
className:
|
|
4668
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
4669
4669
|
"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",
|
|
4670
4670
|
className
|
|
4671
4671
|
)
|
|
@@ -4689,7 +4689,7 @@ function SidebarGroupAction({
|
|
|
4689
4689
|
defaultTagName: "button",
|
|
4690
4690
|
props: _mergeprops.mergeProps.call(void 0,
|
|
4691
4691
|
{
|
|
4692
|
-
className:
|
|
4692
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
4693
4693
|
"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",
|
|
4694
4694
|
className
|
|
4695
4695
|
)
|
|
@@ -4710,7 +4710,7 @@ function SidebarGroupContent({ className, ...props }) {
|
|
|
4710
4710
|
{
|
|
4711
4711
|
"data-slot": "sidebar-group-content",
|
|
4712
4712
|
"data-sidebar": "group-content",
|
|
4713
|
-
className:
|
|
4713
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "text-xs w-full", className),
|
|
4714
4714
|
...props
|
|
4715
4715
|
}
|
|
4716
4716
|
);
|
|
@@ -4722,7 +4722,7 @@ function SidebarMenu({ className, ...props }) {
|
|
|
4722
4722
|
{
|
|
4723
4723
|
"data-slot": "sidebar-menu",
|
|
4724
4724
|
"data-sidebar": "menu",
|
|
4725
|
-
className:
|
|
4725
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "gap-px flex w-full min-w-0 flex-col", className),
|
|
4726
4726
|
...props
|
|
4727
4727
|
}
|
|
4728
4728
|
);
|
|
@@ -4734,7 +4734,7 @@ function SidebarMenuItem({ className, ...props }) {
|
|
|
4734
4734
|
{
|
|
4735
4735
|
"data-slot": "sidebar-menu-item",
|
|
4736
4736
|
"data-sidebar": "menu-item",
|
|
4737
|
-
className:
|
|
4737
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "group/menu-item relative", className),
|
|
4738
4738
|
...props
|
|
4739
4739
|
}
|
|
4740
4740
|
);
|
|
@@ -4774,7 +4774,7 @@ function SidebarMenuButton({
|
|
|
4774
4774
|
defaultTagName: "button",
|
|
4775
4775
|
props: _mergeprops.mergeProps.call(void 0,
|
|
4776
4776
|
{
|
|
4777
|
-
className:
|
|
4777
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, sidebarMenuButtonVariants({ variant, size }), className)
|
|
4778
4778
|
},
|
|
4779
4779
|
props
|
|
4780
4780
|
),
|
|
@@ -4810,7 +4810,7 @@ function SidebarMenuAction({
|
|
|
4810
4810
|
defaultTagName: "button",
|
|
4811
4811
|
props: _mergeprops.mergeProps.call(void 0,
|
|
4812
4812
|
{
|
|
4813
|
-
className:
|
|
4813
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
4814
4814
|
"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",
|
|
4815
4815
|
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",
|
|
4816
4816
|
className
|
|
@@ -4832,7 +4832,7 @@ function SidebarMenuBadge({ className, ...props }) {
|
|
|
4832
4832
|
{
|
|
4833
4833
|
"data-slot": "sidebar-menu-badge",
|
|
4834
4834
|
"data-sidebar": "menu-badge",
|
|
4835
|
-
className:
|
|
4835
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
4836
4836
|
"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",
|
|
4837
4837
|
className
|
|
4838
4838
|
),
|
|
@@ -4854,7 +4854,7 @@ function SidebarMenuSkeleton({
|
|
|
4854
4854
|
{
|
|
4855
4855
|
"data-slot": "sidebar-menu-skeleton",
|
|
4856
4856
|
"data-sidebar": "menu-skeleton",
|
|
4857
|
-
className:
|
|
4857
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "h-8 gap-2 rounded-md px-2 flex items-center", className),
|
|
4858
4858
|
...props,
|
|
4859
4859
|
children: [
|
|
4860
4860
|
showIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" }),
|
|
@@ -4879,7 +4879,7 @@ function SidebarMenuSub({ className, ...props }) {
|
|
|
4879
4879
|
{
|
|
4880
4880
|
"data-slot": "sidebar-menu-sub",
|
|
4881
4881
|
"data-sidebar": "menu-sub",
|
|
4882
|
-
className:
|
|
4882
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
4883
4883
|
"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",
|
|
4884
4884
|
className
|
|
4885
4885
|
),
|
|
@@ -4894,7 +4894,7 @@ function SidebarMenuSubItem({ className, ...props }) {
|
|
|
4894
4894
|
{
|
|
4895
4895
|
"data-slot": "sidebar-menu-sub-item",
|
|
4896
4896
|
"data-sidebar": "menu-sub-item",
|
|
4897
|
-
className:
|
|
4897
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "group/menu-sub-item relative", className),
|
|
4898
4898
|
...props
|
|
4899
4899
|
}
|
|
4900
4900
|
);
|
|
@@ -4911,7 +4911,7 @@ function SidebarMenuSubButton({
|
|
|
4911
4911
|
defaultTagName: "a",
|
|
4912
4912
|
props: _mergeprops.mergeProps.call(void 0,
|
|
4913
4913
|
{
|
|
4914
|
-
className:
|
|
4914
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
4915
4915
|
"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",
|
|
4916
4916
|
className
|
|
4917
4917
|
)
|
|
@@ -4952,7 +4952,7 @@ function Slider({ className, defaultValue, value, min = 0, max = 100, ...props }
|
|
|
4952
4952
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4953
4953
|
_slider.Slider.Control,
|
|
4954
4954
|
{
|
|
4955
|
-
className:
|
|
4955
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
4956
4956
|
"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",
|
|
4957
4957
|
className
|
|
4958
4958
|
),
|
|
@@ -5036,7 +5036,7 @@ function Switch({
|
|
|
5036
5036
|
{
|
|
5037
5037
|
"data-slot": "switch",
|
|
5038
5038
|
"data-size": size,
|
|
5039
|
-
className:
|
|
5039
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
5040
5040
|
"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",
|
|
5041
5041
|
className
|
|
5042
5042
|
),
|
|
@@ -5045,7 +5045,7 @@ function Switch({
|
|
|
5045
5045
|
_switch.Switch.Thumb,
|
|
5046
5046
|
{
|
|
5047
5047
|
"data-slot": "switch-thumb",
|
|
5048
|
-
className:
|
|
5048
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
5049
5049
|
"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",
|
|
5050
5050
|
children && "flex items-center justify-center"
|
|
5051
5051
|
),
|
|
@@ -5060,15 +5060,15 @@ _chunk7QVYU63Ejs.__name.call(void 0, Switch, "Switch");
|
|
|
5060
5060
|
// src/shadcnui/ui/table.tsx
|
|
5061
5061
|
|
|
5062
5062
|
function Table({ className, ...props }) {
|
|
5063
|
-
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:
|
|
5063
|
+
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: _chunk3EZX4G2Ejs.cn.call(void 0, "w-full caption-bottom text-xs", className), ...props }) });
|
|
5064
5064
|
}
|
|
5065
5065
|
_chunk7QVYU63Ejs.__name.call(void 0, Table, "Table");
|
|
5066
5066
|
function TableHeader({ className, ...props }) {
|
|
5067
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { "data-slot": "table-header", className:
|
|
5067
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { "data-slot": "table-header", className: _chunk3EZX4G2Ejs.cn.call(void 0, "[&_tr]:border-b", className), ...props });
|
|
5068
5068
|
}
|
|
5069
5069
|
_chunk7QVYU63Ejs.__name.call(void 0, TableHeader, "TableHeader");
|
|
5070
5070
|
function TableBody({ className, ...props }) {
|
|
5071
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { "data-slot": "table-body", className:
|
|
5071
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { "data-slot": "table-body", className: _chunk3EZX4G2Ejs.cn.call(void 0, "[&_tr:last-child]:border-0", className), ...props });
|
|
5072
5072
|
}
|
|
5073
5073
|
_chunk7QVYU63Ejs.__name.call(void 0, TableBody, "TableBody");
|
|
5074
5074
|
function TableFooter({ className, ...props }) {
|
|
@@ -5076,7 +5076,7 @@ function TableFooter({ className, ...props }) {
|
|
|
5076
5076
|
"tfoot",
|
|
5077
5077
|
{
|
|
5078
5078
|
"data-slot": "table-footer",
|
|
5079
|
-
className:
|
|
5079
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", className),
|
|
5080
5080
|
...props
|
|
5081
5081
|
}
|
|
5082
5082
|
);
|
|
@@ -5087,7 +5087,7 @@ function TableRow({ className, ...props }) {
|
|
|
5087
5087
|
"tr",
|
|
5088
5088
|
{
|
|
5089
5089
|
"data-slot": "table-row",
|
|
5090
|
-
className:
|
|
5090
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", className),
|
|
5091
5091
|
...props
|
|
5092
5092
|
}
|
|
5093
5093
|
);
|
|
@@ -5098,7 +5098,7 @@ function TableHead({ className, ...props }) {
|
|
|
5098
5098
|
"th",
|
|
5099
5099
|
{
|
|
5100
5100
|
"data-slot": "table-head",
|
|
5101
|
-
className:
|
|
5101
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
5102
5102
|
"text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0",
|
|
5103
5103
|
className
|
|
5104
5104
|
),
|
|
@@ -5112,14 +5112,14 @@ function TableCell({ className, ...props }) {
|
|
|
5112
5112
|
"td",
|
|
5113
5113
|
{
|
|
5114
5114
|
"data-slot": "table-cell",
|
|
5115
|
-
className:
|
|
5115
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0", className),
|
|
5116
5116
|
...props
|
|
5117
5117
|
}
|
|
5118
5118
|
);
|
|
5119
5119
|
}
|
|
5120
5120
|
_chunk7QVYU63Ejs.__name.call(void 0, TableCell, "TableCell");
|
|
5121
5121
|
function TableCaption({ className, ...props }) {
|
|
5122
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "caption", { "data-slot": "table-caption", className:
|
|
5122
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "caption", { "data-slot": "table-caption", className: _chunk3EZX4G2Ejs.cn.call(void 0, "text-muted-foreground mt-4 text-xs", className), ...props });
|
|
5123
5123
|
}
|
|
5124
5124
|
_chunk7QVYU63Ejs.__name.call(void 0, TableCaption, "TableCaption");
|
|
5125
5125
|
|
|
@@ -5133,7 +5133,7 @@ function Tabs({ className, orientation = "horizontal", ...props }) {
|
|
|
5133
5133
|
{
|
|
5134
5134
|
"data-slot": "tabs",
|
|
5135
5135
|
"data-orientation": orientation,
|
|
5136
|
-
className:
|
|
5136
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "gap-2 group/tabs flex data-[orientation=horizontal]:flex-col", className),
|
|
5137
5137
|
...props
|
|
5138
5138
|
}
|
|
5139
5139
|
);
|
|
@@ -5163,7 +5163,7 @@ function TabsList({
|
|
|
5163
5163
|
{
|
|
5164
5164
|
"data-slot": "tabs-list",
|
|
5165
5165
|
"data-variant": variant,
|
|
5166
|
-
className:
|
|
5166
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, tabsListVariants({ variant }), className),
|
|
5167
5167
|
...props
|
|
5168
5168
|
}
|
|
5169
5169
|
);
|
|
@@ -5174,7 +5174,7 @@ function TabsTrigger({ className, ...props }) {
|
|
|
5174
5174
|
_tabs.Tabs.Tab,
|
|
5175
5175
|
{
|
|
5176
5176
|
"data-slot": "tabs-trigger",
|
|
5177
|
-
className:
|
|
5177
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
5178
5178
|
"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",
|
|
5179
5179
|
"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",
|
|
5180
5180
|
"data-active:bg-background dark:data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 data-active:text-foreground",
|
|
@@ -5191,7 +5191,7 @@ function TabsContent({ className, ...props }) {
|
|
|
5191
5191
|
_tabs.Tabs.Panel,
|
|
5192
5192
|
{
|
|
5193
5193
|
"data-slot": "tabs-content",
|
|
5194
|
-
className:
|
|
5194
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "text-xs/relaxed flex-1 outline-none", className),
|
|
5195
5195
|
...props
|
|
5196
5196
|
}
|
|
5197
5197
|
);
|
|
@@ -5228,7 +5228,7 @@ function Toggle({
|
|
|
5228
5228
|
size = "default",
|
|
5229
5229
|
...props
|
|
5230
5230
|
}) {
|
|
5231
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _toggle.Toggle, { "data-slot": "toggle", className:
|
|
5231
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _toggle.Toggle, { "data-slot": "toggle", className: _chunk3EZX4G2Ejs.cn.call(void 0, toggleVariants({ variant, size, className })), ...props });
|
|
5232
5232
|
}
|
|
5233
5233
|
_chunk7QVYU63Ejs.__name.call(void 0, Toggle, "Toggle");
|
|
5234
5234
|
|
|
@@ -5694,7 +5694,7 @@ var KanbanBoard = React9.forwardRef((props, forwardedRef) => {
|
|
|
5694
5694
|
"data-slot": "kanban-board",
|
|
5695
5695
|
...boardProps,
|
|
5696
5696
|
ref: forwardedRef,
|
|
5697
|
-
className:
|
|
5697
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
5698
5698
|
"flex size-full gap-4",
|
|
5699
5699
|
context.orientation === "horizontal" ? "flex-row" : "flex-col",
|
|
5700
5700
|
className
|
|
@@ -5733,7 +5733,7 @@ var KanbanColumn = React9.forwardRef((props, forwardedRef) => {
|
|
|
5733
5733
|
disabled,
|
|
5734
5734
|
animateLayoutChanges
|
|
5735
5735
|
});
|
|
5736
|
-
const composedRef =
|
|
5736
|
+
const composedRef = _chunk3EZX4G2Ejs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
5737
5737
|
if (disabled) return;
|
|
5738
5738
|
setNodeRef(node);
|
|
5739
5739
|
});
|
|
@@ -5777,7 +5777,7 @@ var KanbanColumn = React9.forwardRef((props, forwardedRef) => {
|
|
|
5777
5777
|
...asHandle && !disabled ? listeners : {},
|
|
5778
5778
|
ref: composedRef,
|
|
5779
5779
|
style: composedStyle,
|
|
5780
|
-
className:
|
|
5780
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
5781
5781
|
"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",
|
|
5782
5782
|
{
|
|
5783
5783
|
"touch-none select-none": asHandle,
|
|
@@ -5800,7 +5800,7 @@ var KanbanColumnHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
5800
5800
|
const context = useKanbanContext(COLUMN_NAME);
|
|
5801
5801
|
const columnContext = useKanbanColumnContext(COLUMN_HANDLE_NAME);
|
|
5802
5802
|
const isDisabled = _nullishCoalesce(disabled, () => ( columnContext.disabled));
|
|
5803
|
-
const composedRef =
|
|
5803
|
+
const composedRef = _chunk3EZX4G2Ejs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
5804
5804
|
if (isDisabled) return;
|
|
5805
5805
|
columnContext.setActivatorNodeRef(node);
|
|
5806
5806
|
});
|
|
@@ -5817,7 +5817,7 @@ var KanbanColumnHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
5817
5817
|
...isDisabled ? {} : columnContext.attributes,
|
|
5818
5818
|
...isDisabled ? {} : columnContext.listeners,
|
|
5819
5819
|
ref: composedRef,
|
|
5820
|
-
className:
|
|
5820
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
5821
5821
|
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
5822
5822
|
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
5823
5823
|
className
|
|
@@ -5853,7 +5853,7 @@ var KanbanItem = React9.forwardRef((props, forwardedRef) => {
|
|
|
5853
5853
|
if (value === "") {
|
|
5854
5854
|
throw new Error(`\`${ITEM_NAME}\` value cannot be an empty string`);
|
|
5855
5855
|
}
|
|
5856
|
-
const composedRef =
|
|
5856
|
+
const composedRef = _chunk3EZX4G2Ejs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
5857
5857
|
if (disabled) return;
|
|
5858
5858
|
setNodeRef(node);
|
|
5859
5859
|
});
|
|
@@ -5888,7 +5888,7 @@ var KanbanItem = React9.forwardRef((props, forwardedRef) => {
|
|
|
5888
5888
|
...asHandle && !disabled ? listeners : {},
|
|
5889
5889
|
ref: composedRef,
|
|
5890
5890
|
style: composedStyle,
|
|
5891
|
-
className:
|
|
5891
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
5892
5892
|
"focus-visible:ring-ring focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden",
|
|
5893
5893
|
{
|
|
5894
5894
|
"touch-none select-none": asHandle,
|
|
@@ -5909,7 +5909,7 @@ var KanbanItemHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
5909
5909
|
const context = useKanbanContext(ITEM_HANDLE_NAME);
|
|
5910
5910
|
const itemContext = useKanbanItemContext(ITEM_HANDLE_NAME);
|
|
5911
5911
|
const isDisabled = _nullishCoalesce(disabled, () => ( itemContext.disabled));
|
|
5912
|
-
const composedRef =
|
|
5912
|
+
const composedRef = _chunk3EZX4G2Ejs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
5913
5913
|
if (isDisabled) return;
|
|
5914
5914
|
itemContext.setActivatorNodeRef(node);
|
|
5915
5915
|
});
|
|
@@ -5926,7 +5926,7 @@ var KanbanItemHandle = React9.forwardRef((props, forwardedRef) => {
|
|
|
5926
5926
|
...isDisabled ? {} : itemContext.attributes,
|
|
5927
5927
|
...isDisabled ? {} : itemContext.listeners,
|
|
5928
5928
|
ref: composedRef,
|
|
5929
|
-
className:
|
|
5929
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
5930
5930
|
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
5931
5931
|
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
5932
5932
|
className
|
|
@@ -5961,7 +5961,7 @@ function KanbanOverlay(props) {
|
|
|
5961
5961
|
{
|
|
5962
5962
|
dropAnimation,
|
|
5963
5963
|
modifiers: context.modifiers,
|
|
5964
|
-
className:
|
|
5964
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, !context.flatCursor && "cursor-grabbing"),
|
|
5965
5965
|
...overlayProps,
|
|
5966
5966
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, KanbanOverlayContext.Provider, { value: true, children: context.activeId && children ? typeof children === "function" ? children({
|
|
5967
5967
|
value: context.activeId,
|
|
@@ -5979,7 +5979,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, KanbanOverlay, "KanbanOverlay");
|
|
|
5979
5979
|
|
|
5980
5980
|
var Link = React10.forwardRef(({ className, href, children, ...props }, ref) => {
|
|
5981
5981
|
const NextIntlLink = _chunk2PHWAL6Qjs.getI18nLink.call(void 0, );
|
|
5982
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NextIntlLink, { prefetch: false, ref, href, className:
|
|
5982
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NextIntlLink, { prefetch: false, ref, href, className: _chunk3EZX4G2Ejs.cn.call(void 0, `font-medium`, className), ...props, children });
|
|
5983
5983
|
});
|
|
5984
5984
|
Link.displayName = "Link";
|
|
5985
5985
|
|
|
@@ -6079,7 +6079,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6079
6079
|
{
|
|
6080
6080
|
...props,
|
|
6081
6081
|
onClick: handleTogglePopover,
|
|
6082
|
-
className:
|
|
6082
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
6083
6083
|
"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",
|
|
6084
6084
|
className
|
|
6085
6085
|
),
|
|
@@ -6091,7 +6091,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6091
6091
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
6092
6092
|
Badge,
|
|
6093
6093
|
{
|
|
6094
|
-
className:
|
|
6094
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, isAnimating ? "animate-bounce" : "", multiSelectVariants({ variant })),
|
|
6095
6095
|
style: { animationDuration: `${animation}s` },
|
|
6096
6096
|
children: [
|
|
6097
6097
|
IconComponent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: "mr-2 h-4 w-4" }),
|
|
@@ -6114,7 +6114,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6114
6114
|
selectedValues.length > maxCount && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
6115
6115
|
Badge,
|
|
6116
6116
|
{
|
|
6117
|
-
className:
|
|
6117
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
6118
6118
|
"text-foreground border-foreground/1 bg-transparent hover:bg-transparent",
|
|
6119
6119
|
isAnimating ? "animate-bounce" : "",
|
|
6120
6120
|
multiSelectVariants({ variant })
|
|
@@ -6179,7 +6179,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6179
6179
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6180
6180
|
"div",
|
|
6181
6181
|
{
|
|
6182
|
-
className:
|
|
6182
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
6183
6183
|
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
6184
6184
|
selectedValues.length === options.length ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
6185
6185
|
),
|
|
@@ -6202,7 +6202,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6202
6202
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6203
6203
|
"div",
|
|
6204
6204
|
{
|
|
6205
|
-
className:
|
|
6205
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
6206
6206
|
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
6207
6207
|
isSelected ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
6208
6208
|
),
|
|
@@ -6237,7 +6237,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
6237
6237
|
animation > 0 && selectedValues.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6238
6238
|
_lucidereact.WandSparkles,
|
|
6239
6239
|
{
|
|
6240
|
-
className:
|
|
6240
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
6241
6241
|
"text-foreground bg-background my-2 h-3 w-3 cursor-pointer",
|
|
6242
6242
|
isAnimating ? "" : "text-muted-foreground"
|
|
6243
6243
|
),
|
|
@@ -6325,8 +6325,8 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
6325
6325
|
CommonDeleter,
|
|
6326
6326
|
{
|
|
6327
6327
|
type: `users`,
|
|
6328
|
-
deleteFunction: () =>
|
|
6329
|
-
() => onDeleted ? onDeleted() : router.push(generateUrl({ page:
|
|
6328
|
+
deleteFunction: () => _chunk3EZX4G2Ejs.UserService.delete({ userId: user.id, companyId: cId }).then(
|
|
6329
|
+
() => onDeleted ? onDeleted() : router.push(generateUrl({ page: _chunk3EZX4G2Ejs.Modules.User }))
|
|
6330
6330
|
)
|
|
6331
6331
|
}
|
|
6332
6332
|
);
|
|
@@ -6334,7 +6334,7 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
6334
6334
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleterInternal, "UserDeleterInternal");
|
|
6335
6335
|
function UserDeleter(props) {
|
|
6336
6336
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
6337
|
-
if (!hasPermissionToModule({ module:
|
|
6337
|
+
if (!hasPermissionToModule({ module: _chunk3EZX4G2Ejs.Modules.User, action: "delete" /* Delete */, data: props.user })) return null;
|
|
6338
6338
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserDeleterInternal, { ...props });
|
|
6339
6339
|
}
|
|
6340
6340
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleter, "UserDeleter");
|
|
@@ -6398,7 +6398,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6398
6398
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
6399
6399
|
if (!user) {
|
|
6400
6400
|
try {
|
|
6401
|
-
const existingUser = await
|
|
6401
|
+
const existingUser = await _chunk3EZX4G2Ejs.UserService.findByEmail({ email: values.email });
|
|
6402
6402
|
if (existingUser) {
|
|
6403
6403
|
form.setError("email", {
|
|
6404
6404
|
type: "manual",
|
|
@@ -6411,7 +6411,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6411
6411
|
}
|
|
6412
6412
|
}
|
|
6413
6413
|
if (values.avatar && contentType) {
|
|
6414
|
-
const s3 = await
|
|
6414
|
+
const s3 = await _chunk3EZX4G2Ejs.S3Service.getPreSignedUrl({
|
|
6415
6415
|
key: values.avatar,
|
|
6416
6416
|
contentType,
|
|
6417
6417
|
isPublic: true
|
|
@@ -6437,16 +6437,16 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6437
6437
|
adminCreated
|
|
6438
6438
|
};
|
|
6439
6439
|
try {
|
|
6440
|
-
const updatedUser = user ? await
|
|
6440
|
+
const updatedUser = user ? await _chunk3EZX4G2Ejs.UserService.update(payload) : await _chunk3EZX4G2Ejs.UserService.create(payload);
|
|
6441
6441
|
if (_optionalChain([currentUser, 'optionalAccess', _150 => _150.id]) === updatedUser.id) setUser(updatedUser);
|
|
6442
6442
|
if (onRevalidate) {
|
|
6443
|
-
await onRevalidate(generateUrl({ page:
|
|
6443
|
+
await onRevalidate(generateUrl({ page: _chunk3EZX4G2Ejs.Modules.User, id: updatedUser.id, language: `[locale]` }));
|
|
6444
6444
|
}
|
|
6445
6445
|
if (propagateChanges) {
|
|
6446
6446
|
propagateChanges(updatedUser);
|
|
6447
6447
|
setOpen(false);
|
|
6448
6448
|
} else {
|
|
6449
|
-
router.push(generateUrl({ page:
|
|
6449
|
+
router.push(generateUrl({ page: _chunk3EZX4G2Ejs.Modules.User, id: updatedUser.id }));
|
|
6450
6450
|
}
|
|
6451
6451
|
} catch (error) {
|
|
6452
6452
|
errorToast({ title: user ? t(`common.errors.update`) : t(`common.errors.create`), error });
|
|
@@ -6454,7 +6454,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6454
6454
|
}, "onSubmit");
|
|
6455
6455
|
_react.useEffect.call(void 0, () => {
|
|
6456
6456
|
async function fetchRoles() {
|
|
6457
|
-
const roles2 = await
|
|
6457
|
+
const roles2 = await _chunk3EZX4G2Ejs.RoleService.findAllRoles({});
|
|
6458
6458
|
const availableRoles = roles2.filter(
|
|
6459
6459
|
(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]))]))
|
|
6460
6460
|
);
|
|
@@ -6482,7 +6482,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6482
6482
|
setContentType(null);
|
|
6483
6483
|
}
|
|
6484
6484
|
}, [file]);
|
|
6485
|
-
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _159 => _159.id]) === _optionalChain([user, 'optionalAccess', _160 => _160.id]) && hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module:
|
|
6485
|
+
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _159 => _159.id]) === _optionalChain([user, 'optionalAccess', _160 => _160.id]) && hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunk3EZX4G2Ejs.Modules.User, action: "update" /* Update */ }) || hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator));
|
|
6486
6486
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
6487
6487
|
trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTrigger, { children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!user }),
|
|
6488
6488
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -6592,7 +6592,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserEditorInternal, "UserEditorInternal");
|
|
|
6592
6592
|
function UserEditor(props) {
|
|
6593
6593
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
6594
6594
|
if (!hasPermissionToModule({
|
|
6595
|
-
module:
|
|
6595
|
+
module: _chunk3EZX4G2Ejs.Modules.User,
|
|
6596
6596
|
action: props.user ? "update" /* Update */ : "create" /* Create */,
|
|
6597
6597
|
data: props.user
|
|
6598
6598
|
}))
|
|
@@ -6680,7 +6680,7 @@ function CommonAssociationCommandDialog({
|
|
|
6680
6680
|
_chunk7QVYU63Ejs.__name.call(void 0, CommonAssociationCommandDialog, "CommonAssociationCommandDialog");
|
|
6681
6681
|
var triggerAssociationToast = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
6682
6682
|
if (params.level) {
|
|
6683
|
-
|
|
6683
|
+
_chunk3EZX4G2Ejs.showToast.call(void 0,
|
|
6684
6684
|
params.t(`common.association.label`, {
|
|
6685
6685
|
source: params.source,
|
|
6686
6686
|
destination: params.destination
|
|
@@ -6696,7 +6696,7 @@ var triggerAssociationToast = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
6696
6696
|
}
|
|
6697
6697
|
);
|
|
6698
6698
|
} else {
|
|
6699
|
-
|
|
6699
|
+
_chunk3EZX4G2Ejs.showToast.call(void 0,
|
|
6700
6700
|
params.t(`common.association.label`, {
|
|
6701
6701
|
source: params.source,
|
|
6702
6702
|
destination: params.destination
|
|
@@ -6748,7 +6748,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ErrorDetails, "ErrorDetails");
|
|
|
6748
6748
|
|
|
6749
6749
|
// src/components/errors/errorToast.ts
|
|
6750
6750
|
function errorToast(params) {
|
|
6751
|
-
|
|
6751
|
+
_chunk3EZX4G2Ejs.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess', _167 => _167.title]), () => ( "Error")), {
|
|
6752
6752
|
description: params.error instanceof Error ? params.error.message : String(params.error)
|
|
6753
6753
|
});
|
|
6754
6754
|
}
|
|
@@ -6952,7 +6952,7 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
6952
6952
|
}, "handleClear");
|
|
6953
6953
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open: isOpen, onOpenChange: setIsOpen, children: [
|
|
6954
6954
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { children }),
|
|
6955
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className:
|
|
6955
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className: _chunk3EZX4G2Ejs.cn.call(void 0, "p-0", className), align, onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "p-3", children: [
|
|
6956
6956
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative mb-3", children: [
|
|
6957
6957
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6958
6958
|
Input,
|
|
@@ -7068,13 +7068,13 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
7068
7068
|
setDate(range);
|
|
7069
7069
|
}
|
|
7070
7070
|
}, "handleSelect");
|
|
7071
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
7071
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3EZX4G2Ejs.cn.call(void 0, "grid gap-2"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, children: [
|
|
7072
7072
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7073
7073
|
Button,
|
|
7074
7074
|
{
|
|
7075
7075
|
id: "date",
|
|
7076
7076
|
variant: "outline",
|
|
7077
|
-
className:
|
|
7077
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
|
|
7078
7078
|
children: [
|
|
7079
7079
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
|
|
7080
7080
|
_optionalChain([date, 'optionalAccess', _177 => _177.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -7198,7 +7198,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
7198
7198
|
(acceptedFiles, rejectedFiles) => {
|
|
7199
7199
|
const files = acceptedFiles;
|
|
7200
7200
|
if (!files) {
|
|
7201
|
-
|
|
7201
|
+
_chunk3EZX4G2Ejs.showError.call(void 0, t("common.errors.file"), {
|
|
7202
7202
|
description: t("common.errors.file_large")
|
|
7203
7203
|
});
|
|
7204
7204
|
return;
|
|
@@ -7216,13 +7216,13 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
7216
7216
|
if (rejectedFiles.length > 0) {
|
|
7217
7217
|
for (let i = 0; i < rejectedFiles.length; i++) {
|
|
7218
7218
|
if (_optionalChain([rejectedFiles, 'access', _183 => _183[i], 'access', _184 => _184.errors, 'access', _185 => _185[0], 'optionalAccess', _186 => _186.code]) === "file-too-large") {
|
|
7219
|
-
|
|
7219
|
+
_chunk3EZX4G2Ejs.showError.call(void 0, t("common.errors.file"), {
|
|
7220
7220
|
description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
|
|
7221
7221
|
});
|
|
7222
7222
|
break;
|
|
7223
7223
|
}
|
|
7224
7224
|
if (_optionalChain([rejectedFiles, 'access', _187 => _187[i], 'access', _188 => _188.errors, 'access', _189 => _189[0], 'optionalAccess', _190 => _190.message])) {
|
|
7225
|
-
|
|
7225
|
+
_chunk3EZX4G2Ejs.showError.call(void 0, t(`common.errors.file`), {
|
|
7226
7226
|
description: rejectedFiles[i].errors[0].message
|
|
7227
7227
|
});
|
|
7228
7228
|
break;
|
|
@@ -7266,7 +7266,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
7266
7266
|
ref,
|
|
7267
7267
|
tabIndex: 0,
|
|
7268
7268
|
onKeyDownCapture: handleKeyDown,
|
|
7269
|
-
className:
|
|
7269
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
7270
7270
|
"grid w-full overflow-hidden focus:outline-none",
|
|
7271
7271
|
className,
|
|
7272
7272
|
// Original className from props
|
|
@@ -7290,12 +7290,12 @@ var FileUploaderContent = _react.forwardRef.call(void 0,
|
|
|
7290
7290
|
({ children, className, ...props }, ref) => {
|
|
7291
7291
|
const { orientation } = useFileUpload();
|
|
7292
7292
|
const containerRef = _react.useRef.call(void 0, null);
|
|
7293
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
7293
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3EZX4G2Ejs.cn.call(void 0, "w-full px-1"), ref: containerRef, "aria-description": "content file holder", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7294
7294
|
"div",
|
|
7295
7295
|
{
|
|
7296
7296
|
...props,
|
|
7297
7297
|
ref,
|
|
7298
|
-
className:
|
|
7298
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
7299
7299
|
"flex gap-1 rounded-xl",
|
|
7300
7300
|
orientation === "horizontal" ? "flex-raw flex-wrap" : "flex-col",
|
|
7301
7301
|
className
|
|
@@ -7315,7 +7315,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
7315
7315
|
"div",
|
|
7316
7316
|
{
|
|
7317
7317
|
ref,
|
|
7318
|
-
className:
|
|
7318
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
7319
7319
|
buttonVariants({ variant: "ghost" }),
|
|
7320
7320
|
"relative h-6 cursor-pointer justify-between p-1",
|
|
7321
7321
|
className,
|
|
@@ -7328,7 +7328,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
7328
7328
|
"button",
|
|
7329
7329
|
{
|
|
7330
7330
|
type: "button",
|
|
7331
|
-
className:
|
|
7331
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "absolute", direction === "rtl" ? "top-1 left-1" : "top-1 right-1"),
|
|
7332
7332
|
onClick: () => removeFileFromSet(index),
|
|
7333
7333
|
children: [
|
|
7334
7334
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: t(`common.remove_item`, { index }) }),
|
|
@@ -7352,12 +7352,12 @@ var FileInput = _react.forwardRef.call(void 0,
|
|
|
7352
7352
|
{
|
|
7353
7353
|
ref,
|
|
7354
7354
|
...props,
|
|
7355
|
-
className:
|
|
7355
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, `relative w-full ${isLOF ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`, className),
|
|
7356
7356
|
children: [
|
|
7357
7357
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7358
7358
|
"div",
|
|
7359
7359
|
{
|
|
7360
|
-
className:
|
|
7360
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
7361
7361
|
"w-full rounded-lg duration-300 ease-in-out",
|
|
7362
7362
|
// Simpler border logic: if parent is drag-active, it controls the border.
|
|
7363
7363
|
// Otherwise, FileInput can show its own accept/reject/default border.
|
|
@@ -7674,7 +7674,7 @@ function FormDateTime({
|
|
|
7674
7674
|
Button,
|
|
7675
7675
|
{
|
|
7676
7676
|
variant: "outline",
|
|
7677
|
-
className:
|
|
7677
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "w-full pl-3 text-left font-normal", !field.value && "text-muted-foreground")
|
|
7678
7678
|
}
|
|
7679
7679
|
),
|
|
7680
7680
|
children: [
|
|
@@ -7863,7 +7863,7 @@ var PasswordInput = React12.forwardRef(
|
|
|
7863
7863
|
const disabled = props.value === "" || props.value === void 0 || props.disabled;
|
|
7864
7864
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
7865
7865
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
7866
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className:
|
|
7866
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className: _chunk3EZX4G2Ejs.cn.call(void 0, "", className), ref, ...props }),
|
|
7867
7867
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7868
7868
|
Button,
|
|
7869
7869
|
{
|
|
@@ -8048,7 +8048,7 @@ function FormPlaceAutocomplete({
|
|
|
8048
8048
|
placeholder,
|
|
8049
8049
|
disabled,
|
|
8050
8050
|
"data-testid": testId,
|
|
8051
|
-
className:
|
|
8051
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "w-full", className)
|
|
8052
8052
|
}
|
|
8053
8053
|
) }) });
|
|
8054
8054
|
}
|
|
@@ -8067,7 +8067,7 @@ function FormPlaceAutocomplete({
|
|
|
8067
8067
|
placeholder,
|
|
8068
8068
|
disabled: disabled || !apiKey,
|
|
8069
8069
|
"data-testid": testId,
|
|
8070
|
-
className:
|
|
8070
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "w-full", className)
|
|
8071
8071
|
}
|
|
8072
8072
|
),
|
|
8073
8073
|
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" }) }),
|
|
@@ -8183,7 +8183,7 @@ function FormTextarea({
|
|
|
8183
8183
|
Textarea,
|
|
8184
8184
|
{
|
|
8185
8185
|
...field,
|
|
8186
|
-
className:
|
|
8186
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "min-h-96 w-full", className),
|
|
8187
8187
|
disabled: form.formState.isSubmitting,
|
|
8188
8188
|
placeholder,
|
|
8189
8189
|
"data-testid": testId
|
|
@@ -8292,10 +8292,10 @@ function UserMultiSelect({
|
|
|
8292
8292
|
const data = useDataListRetriever({
|
|
8293
8293
|
ready: !!company,
|
|
8294
8294
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
8295
|
-
return
|
|
8295
|
+
return _chunk3EZX4G2Ejs.UserService.findAllUsers(params);
|
|
8296
8296
|
}, "retriever"),
|
|
8297
8297
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _208 => _208.id]) },
|
|
8298
|
-
module:
|
|
8298
|
+
module: _chunk3EZX4G2Ejs.Modules.User
|
|
8299
8299
|
});
|
|
8300
8300
|
_react.useEffect.call(void 0, () => {
|
|
8301
8301
|
if (company) data.setReady(true);
|
|
@@ -8395,7 +8395,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
8395
8395
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8396
8396
|
const reactivateUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
8397
8397
|
try {
|
|
8398
|
-
const updatedUser = await
|
|
8398
|
+
const updatedUser = await _chunk3EZX4G2Ejs.UserService.reactivate({ userId: user.id });
|
|
8399
8399
|
setOpen(false);
|
|
8400
8400
|
propagateChanges(updatedUser);
|
|
8401
8401
|
} catch (error) {
|
|
@@ -8433,7 +8433,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
8433
8433
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivatorInterface, "UserReactivatorInterface");
|
|
8434
8434
|
function UserReactivator(props) {
|
|
8435
8435
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
8436
|
-
if (!hasPermissionToModule({ module:
|
|
8436
|
+
if (!hasPermissionToModule({ module: _chunk3EZX4G2Ejs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
8437
8437
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserReactivatorInterface, { ...props });
|
|
8438
8438
|
}
|
|
8439
8439
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivator, "UserReactivator");
|
|
@@ -8448,9 +8448,9 @@ function UserResentInvitationEmailInternal({ user }) {
|
|
|
8448
8448
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8449
8449
|
const sendInvitationEmail = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
8450
8450
|
try {
|
|
8451
|
-
await
|
|
8451
|
+
await _chunk3EZX4G2Ejs.UserService.sendInvitation({ userId: user.id, companyId: user.company.id });
|
|
8452
8452
|
setOpen(false);
|
|
8453
|
-
|
|
8453
|
+
_chunk3EZX4G2Ejs.showToast.call(void 0, t(`user.resend_activation.email_sent`), {
|
|
8454
8454
|
description: t(`user.resend_activation.email_sent_description`, { email: user.email })
|
|
8455
8455
|
});
|
|
8456
8456
|
} catch (error) {
|
|
@@ -8488,7 +8488,7 @@ function UserResentInvitationEmailInternal({ user }) {
|
|
|
8488
8488
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmailInternal, "UserResentInvitationEmailInternal");
|
|
8489
8489
|
function UserResentInvitationEmail(props) {
|
|
8490
8490
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
8491
|
-
if (!hasPermissionToModule({ module:
|
|
8491
|
+
if (!hasPermissionToModule({ module: _chunk3EZX4G2Ejs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
8492
8492
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserResentInvitationEmailInternal, { ...props });
|
|
8493
8493
|
}
|
|
8494
8494
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmail, "UserResentInvitationEmail");
|
|
@@ -8519,22 +8519,22 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
|
|
|
8519
8519
|
}, "getAvatar");
|
|
8520
8520
|
const content = showLink === false ? (
|
|
8521
8521
|
// If showLink is explicitly false, never show a link
|
|
8522
|
-
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
8522
|
+
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3EZX4G2Ejs.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className), children: [
|
|
8523
8523
|
getAvatar(),
|
|
8524
8524
|
user.name
|
|
8525
8525
|
] }) : getAvatar()
|
|
8526
8526
|
) : showFull ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8527
8527
|
Link,
|
|
8528
8528
|
{
|
|
8529
|
-
href: generateUrl({ page:
|
|
8530
|
-
className:
|
|
8529
|
+
href: generateUrl({ page: _chunk3EZX4G2Ejs.Modules.User, id: user.id }),
|
|
8530
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className),
|
|
8531
8531
|
onClick: (e) => e.stopPropagation(),
|
|
8532
8532
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center gap-x-2", children: [
|
|
8533
8533
|
getAvatar(),
|
|
8534
8534
|
user.name
|
|
8535
8535
|
] })
|
|
8536
8536
|
}
|
|
8537
|
-
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page:
|
|
8537
|
+
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunk3EZX4G2Ejs.Modules.User, id: user.id }), className, children: getAvatar() }) : getAvatar();
|
|
8538
8538
|
if (!showTooltip) {
|
|
8539
8539
|
return content;
|
|
8540
8540
|
}
|
|
@@ -8555,10 +8555,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
8555
8555
|
const [isSearching, setIsSearching] = _react.useState.call(void 0, false);
|
|
8556
8556
|
const data = useDataListRetriever({
|
|
8557
8557
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
8558
|
-
return
|
|
8558
|
+
return _chunk3EZX4G2Ejs.UserService.findMany(params);
|
|
8559
8559
|
}, "retriever"),
|
|
8560
8560
|
retrieverParams: {},
|
|
8561
|
-
module:
|
|
8561
|
+
module: _chunk3EZX4G2Ejs.Modules.User
|
|
8562
8562
|
});
|
|
8563
8563
|
const search = _react.useCallback.call(void 0,
|
|
8564
8564
|
async (searchedTerm) => {
|
|
@@ -8657,24 +8657,24 @@ var UserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
8657
8657
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
8658
8658
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8659
8659
|
const [user, setUser] = _react.useState.call(void 0,
|
|
8660
|
-
dehydratedUser ?
|
|
8660
|
+
dehydratedUser ? _chunk3EZX4G2Ejs.rehydrate.call(void 0, _chunk3EZX4G2Ejs.Modules.User, dehydratedUser) : void 0
|
|
8661
8661
|
);
|
|
8662
8662
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
8663
8663
|
const response = [];
|
|
8664
|
-
if (hasPermissionToModule({ module:
|
|
8664
|
+
if (hasPermissionToModule({ module: _chunk3EZX4G2Ejs.Modules.User, action: "update" /* Update */ })) {
|
|
8665
8665
|
response.push({
|
|
8666
8666
|
name: t(`common.settings`),
|
|
8667
8667
|
href: generateUrl({ page: `/settings` })
|
|
8668
8668
|
});
|
|
8669
8669
|
response.push({
|
|
8670
8670
|
name: t(`entities.users`, { count: 2 }),
|
|
8671
|
-
href: generateUrl({ page: `/settings`, id:
|
|
8671
|
+
href: generateUrl({ page: `/settings`, id: _chunk3EZX4G2Ejs.Modules.User.pageUrl })
|
|
8672
8672
|
});
|
|
8673
8673
|
}
|
|
8674
8674
|
if (user)
|
|
8675
8675
|
response.push({
|
|
8676
8676
|
name: `${user.name}${user.isDeleted ? ` (${t(`user.deleted`)})` : ""}`,
|
|
8677
|
-
href: generateUrl({ page:
|
|
8677
|
+
href: generateUrl({ page: _chunk3EZX4G2Ejs.Modules.User, id: user.id })
|
|
8678
8678
|
});
|
|
8679
8679
|
return response;
|
|
8680
8680
|
}, "breadcrumb");
|
|
@@ -8729,7 +8729,7 @@ function UserDetails({ user }) {
|
|
|
8729
8729
|
const { title } = useSharedContext();
|
|
8730
8730
|
let roles = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
8731
8731
|
if (user.roles && user.roles.length > 0) {
|
|
8732
|
-
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:
|
|
8732
|
+
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: _chunk3EZX4G2Ejs.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)) }) });
|
|
8733
8733
|
}
|
|
8734
8734
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
8735
8735
|
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,
|
|
@@ -8742,7 +8742,7 @@ function UserDetails({ user }) {
|
|
|
8742
8742
|
className: "h-auto w-full rounded-lg object-contain"
|
|
8743
8743
|
}
|
|
8744
8744
|
) }),
|
|
8745
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module:
|
|
8745
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunk3EZX4G2Ejs.Modules.User, type: title.type, element: title.element, functions: title.functions }),
|
|
8746
8746
|
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`) }) }) }),
|
|
8747
8747
|
roles,
|
|
8748
8748
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AttributeElement, { inline: true, title: t(`user.fields.title.label`), value: user.title }),
|
|
@@ -8796,18 +8796,18 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserIndexContainer, "UserIndexContainer");
|
|
|
8796
8796
|
function UsersListContainerInternal() {
|
|
8797
8797
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
8798
8798
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8799
|
-
if (!hasPermissionToModule({ module:
|
|
8799
|
+
if (!hasPermissionToModule({ module: _chunk3EZX4G2Ejs.Modules.User, action: "delete" /* Delete */ })) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {});
|
|
8800
8800
|
const tabs = [
|
|
8801
8801
|
{
|
|
8802
8802
|
label: t(`entities.users`, { count: 2 }),
|
|
8803
8803
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {}),
|
|
8804
|
-
modules: [
|
|
8804
|
+
modules: [_chunk3EZX4G2Ejs.Modules.Company],
|
|
8805
8805
|
action: "read" /* Read */
|
|
8806
8806
|
},
|
|
8807
8807
|
{
|
|
8808
8808
|
label: t(`user.deleted`),
|
|
8809
8809
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, { isDeleted: true }),
|
|
8810
|
-
modules: [
|
|
8810
|
+
modules: [_chunk3EZX4G2Ejs.Modules.Company],
|
|
8811
8811
|
action: "update" /* Update */
|
|
8812
8812
|
}
|
|
8813
8813
|
];
|
|
@@ -8825,9 +8825,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersListContainer, "UsersListContainer");
|
|
|
8825
8825
|
function AdminUsersListInternal({ company }) {
|
|
8826
8826
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8827
8827
|
const data = useDataListRetriever({
|
|
8828
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
8828
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3EZX4G2Ejs.UserService.findManyForAmin(params), "retriever"),
|
|
8829
8829
|
retrieverParams: { companyId: company.id },
|
|
8830
|
-
module:
|
|
8830
|
+
module: _chunk3EZX4G2Ejs.Modules.User
|
|
8831
8831
|
});
|
|
8832
8832
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8833
8833
|
ContentListTable,
|
|
@@ -8835,7 +8835,7 @@ function AdminUsersListInternal({ company }) {
|
|
|
8835
8835
|
title: t(`entities.users`, { count: 2 }),
|
|
8836
8836
|
data,
|
|
8837
8837
|
fields: ["name" /* name */, "email" /* email */, "createdAt" /* createdAt */],
|
|
8838
|
-
tableGeneratorType:
|
|
8838
|
+
tableGeneratorType: _chunk3EZX4G2Ejs.Modules.User,
|
|
8839
8839
|
functions: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserEditor, { propagateChanges: data.refresh, adminCreated: true })
|
|
8840
8840
|
}
|
|
8841
8841
|
);
|
|
@@ -8857,9 +8857,9 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
8857
8857
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8858
8858
|
const data = useDataListRetriever({
|
|
8859
8859
|
ready: !!company,
|
|
8860
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
8860
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3EZX4G2Ejs.UserService.findAllUsers(params), "retriever"),
|
|
8861
8861
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _227 => _227.id]), isDeleted },
|
|
8862
|
-
module:
|
|
8862
|
+
module: _chunk3EZX4G2Ejs.Modules.User
|
|
8863
8863
|
});
|
|
8864
8864
|
_react.useEffect.call(void 0, () => {
|
|
8865
8865
|
if (company) data.setReady(true);
|
|
@@ -8872,7 +8872,7 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
8872
8872
|
{
|
|
8873
8873
|
data,
|
|
8874
8874
|
fields: ["name" /* name */, "email" /* email */],
|
|
8875
|
-
tableGeneratorType:
|
|
8875
|
+
tableGeneratorType: _chunk3EZX4G2Ejs.Modules.User,
|
|
8876
8876
|
functions,
|
|
8877
8877
|
title: t(`entities.users`, { count: 2 })
|
|
8878
8878
|
}
|
|
@@ -8888,7 +8888,7 @@ function ContributorsList({ content }) {
|
|
|
8888
8888
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8889
8889
|
Link,
|
|
8890
8890
|
{
|
|
8891
|
-
href: generateUrl({ page:
|
|
8891
|
+
href: generateUrl({ page: _chunk3EZX4G2Ejs.Modules.User, id: content.author.id }),
|
|
8892
8892
|
onClick: (e) => e.stopPropagation(),
|
|
8893
8893
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: content.author, className: "mr-1 h-6 w-6" })
|
|
8894
8894
|
},
|
|
@@ -8897,7 +8897,7 @@ function ContributorsList({ content }) {
|
|
|
8897
8897
|
/* @__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,
|
|
8898
8898
|
Link,
|
|
8899
8899
|
{
|
|
8900
|
-
href: generateUrl({ page:
|
|
8900
|
+
href: generateUrl({ page: _chunk3EZX4G2Ejs.Modules.User, id: editor.id }),
|
|
8901
8901
|
onClick: (e) => e.stopPropagation(),
|
|
8902
8902
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: editor, className: "h-5 w-5" })
|
|
8903
8903
|
},
|
|
@@ -8913,8 +8913,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContributorsList, "ContributorsList");
|
|
|
8913
8913
|
function RelevantUsersList({ id }) {
|
|
8914
8914
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8915
8915
|
const data = useDataListRetriever({
|
|
8916
|
-
module:
|
|
8917
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
8916
|
+
module: _chunk3EZX4G2Ejs.Modules.User,
|
|
8917
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3EZX4G2Ejs.UserService.findRelevant(params), "retriever"),
|
|
8918
8918
|
retrieverParams: { id }
|
|
8919
8919
|
});
|
|
8920
8920
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -8922,7 +8922,7 @@ function RelevantUsersList({ id }) {
|
|
|
8922
8922
|
{
|
|
8923
8923
|
data,
|
|
8924
8924
|
fields: ["name" /* name */, "email" /* email */, "relevance" /* relevance */],
|
|
8925
|
-
tableGeneratorType:
|
|
8925
|
+
tableGeneratorType: _chunk3EZX4G2Ejs.Modules.User,
|
|
8926
8926
|
title: t(`common.relevant_users`)
|
|
8927
8927
|
}
|
|
8928
8928
|
);
|
|
@@ -8935,16 +8935,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RelevantUsersList, "RelevantUsersList");
|
|
|
8935
8935
|
function RoleUsersList({ role }) {
|
|
8936
8936
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8937
8937
|
const data = useDataListRetriever({
|
|
8938
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
8938
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3EZX4G2Ejs.UserService.findAllUsersByRole(params), "retriever"),
|
|
8939
8939
|
retrieverParams: { roleId: role.id },
|
|
8940
|
-
module:
|
|
8940
|
+
module: _chunk3EZX4G2Ejs.Modules.User
|
|
8941
8941
|
});
|
|
8942
8942
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8943
8943
|
ContentListTable,
|
|
8944
8944
|
{
|
|
8945
8945
|
data,
|
|
8946
8946
|
fields: ["name" /* name */, "email" /* email */],
|
|
8947
|
-
tableGeneratorType:
|
|
8947
|
+
tableGeneratorType: _chunk3EZX4G2Ejs.Modules.User,
|
|
8948
8948
|
title: t(`entities.users`, { count: 2 })
|
|
8949
8949
|
}
|
|
8950
8950
|
);
|
|
@@ -9000,7 +9000,7 @@ function UsersList({
|
|
|
9000
9000
|
{
|
|
9001
9001
|
data,
|
|
9002
9002
|
fields: ["name" /* name */, "email" /* email */],
|
|
9003
|
-
tableGeneratorType:
|
|
9003
|
+
tableGeneratorType: _chunk3EZX4G2Ejs.Modules.User,
|
|
9004
9004
|
title: t(`entities.users`, { count: 2 })
|
|
9005
9005
|
}
|
|
9006
9006
|
);
|
|
@@ -9013,8 +9013,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersList, "UsersList");
|
|
|
9013
9013
|
function UsersListByContentIds({ contentIds }) {
|
|
9014
9014
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9015
9015
|
const data = useDataListRetriever({
|
|
9016
|
-
module:
|
|
9017
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9016
|
+
module: _chunk3EZX4G2Ejs.Modules.User,
|
|
9017
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3EZX4G2Ejs.UserService.findManyByContentIds(params), "retriever"),
|
|
9018
9018
|
retrieverParams: { contentIds }
|
|
9019
9019
|
});
|
|
9020
9020
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -9022,7 +9022,7 @@ function UsersListByContentIds({ contentIds }) {
|
|
|
9022
9022
|
{
|
|
9023
9023
|
data,
|
|
9024
9024
|
fields: ["name" /* name */, "email" /* email */],
|
|
9025
|
-
tableGeneratorType:
|
|
9025
|
+
tableGeneratorType: _chunk3EZX4G2Ejs.Modules.User,
|
|
9026
9026
|
title: t(`common.relevant_users`)
|
|
9027
9027
|
}
|
|
9028
9028
|
);
|
|
@@ -9040,7 +9040,7 @@ function CompanyDetails() {
|
|
|
9040
9040
|
const { company } = useCompanyContext();
|
|
9041
9041
|
if (!company) return null;
|
|
9042
9042
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
9043
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module:
|
|
9043
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunk3EZX4G2Ejs.Modules.Company, type: title.type, element: title.element, functions: title.functions }),
|
|
9044
9044
|
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" })
|
|
9045
9045
|
] });
|
|
9046
9046
|
}
|
|
@@ -9105,13 +9105,13 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9105
9105
|
const textSize = textSizeClasses[size];
|
|
9106
9106
|
const getBatteryIcon = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
9107
9107
|
if (percentage > 75) {
|
|
9108
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryFull, { className:
|
|
9108
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryFull, { className: _chunk3EZX4G2Ejs.cn.call(void 0, iconSize, "text-green-500") });
|
|
9109
9109
|
} else if (percentage > 50) {
|
|
9110
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryMedium, { className:
|
|
9110
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryMedium, { className: _chunk3EZX4G2Ejs.cn.call(void 0, iconSize, "text-green-500") });
|
|
9111
9111
|
} else if (percentage >= 25) {
|
|
9112
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryLow, { className:
|
|
9112
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryLow, { className: _chunk3EZX4G2Ejs.cn.call(void 0, iconSize, "text-yellow-500") });
|
|
9113
9113
|
} else {
|
|
9114
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Battery, { className:
|
|
9114
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Battery, { className: _chunk3EZX4G2Ejs.cn.call(void 0, iconSize, "text-destructive") });
|
|
9115
9115
|
}
|
|
9116
9116
|
}, "getBatteryIcon");
|
|
9117
9117
|
const getStatusColor = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -9131,7 +9131,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9131
9131
|
t("billing.tokens.monthly", { defaultValue: "Monthly Pages" }),
|
|
9132
9132
|
":"
|
|
9133
9133
|
] }),
|
|
9134
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
9134
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk3EZX4G2Ejs.cn.call(void 0, "font-medium", getStatusColor()), children: [
|
|
9135
9135
|
availableMonthlyTokens,
|
|
9136
9136
|
" / ",
|
|
9137
9137
|
monthlyTokens
|
|
@@ -9142,7 +9142,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9142
9142
|
t("billing.tokens.available", { defaultValue: "Available" }),
|
|
9143
9143
|
":"
|
|
9144
9144
|
] }),
|
|
9145
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
9145
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk3EZX4G2Ejs.cn.call(void 0, "font-medium", getStatusColor()), children: [
|
|
9146
9146
|
percentage.toFixed(0),
|
|
9147
9147
|
"%"
|
|
9148
9148
|
] })
|
|
@@ -9163,14 +9163,14 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
9163
9163
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9164
9164
|
"div",
|
|
9165
9165
|
{
|
|
9166
|
-
className:
|
|
9166
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0, "inline-flex items-center gap-1.5 cursor-default", className),
|
|
9167
9167
|
"aria-label": t("billing.tokens.status", { defaultValue: "Page Status" }),
|
|
9168
9168
|
children: [
|
|
9169
9169
|
getBatteryIcon(),
|
|
9170
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
9170
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3EZX4G2Ejs.cn.call(void 0, textSize, "text-muted-foreground font-medium"), children: availableMonthlyTokens }),
|
|
9171
9171
|
showExtraPages && availableExtraTokens > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "inline-flex items-center gap-0.5", children: [
|
|
9172
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className:
|
|
9173
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
9172
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className: _chunk3EZX4G2Ejs.cn.call(void 0, smallIconSize, "text-blue-500") }),
|
|
9173
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3EZX4G2Ejs.cn.call(void 0, textSize, "text-blue-500 font-medium"), children: availableExtraTokens })
|
|
9174
9174
|
] })
|
|
9175
9175
|
]
|
|
9176
9176
|
}
|
|
@@ -9287,12 +9287,12 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
9287
9287
|
}
|
|
9288
9288
|
};
|
|
9289
9289
|
try {
|
|
9290
|
-
await
|
|
9291
|
-
const fullUser = await
|
|
9290
|
+
await _chunk3EZX4G2Ejs.CompanyService.updateConfigurations(payload);
|
|
9291
|
+
const fullUser = await _chunk3EZX4G2Ejs.UserService.findFullUser();
|
|
9292
9292
|
if (fullUser) {
|
|
9293
9293
|
setUser(fullUser);
|
|
9294
9294
|
}
|
|
9295
|
-
|
|
9295
|
+
_chunk3EZX4G2Ejs.showToast.call(void 0, "Configurations Updated", {
|
|
9296
9296
|
description: `The system configurations have been updated successfully.`
|
|
9297
9297
|
});
|
|
9298
9298
|
close();
|
|
@@ -9349,11 +9349,11 @@ function CompanyDeleterInternal({ company, isAdministrator: isAdministrator2 })
|
|
|
9349
9349
|
setIsDeleting(true);
|
|
9350
9350
|
try {
|
|
9351
9351
|
if (isAdministrator2) {
|
|
9352
|
-
await
|
|
9352
|
+
await _chunk3EZX4G2Ejs.CompanyService.delete({ companyId: company.id });
|
|
9353
9353
|
} else {
|
|
9354
|
-
await
|
|
9354
|
+
await _chunk3EZX4G2Ejs.CompanyService.selfDelete({ companyId: company.id });
|
|
9355
9355
|
}
|
|
9356
|
-
await
|
|
9356
|
+
await _chunk3EZX4G2Ejs.AuthService.logout();
|
|
9357
9357
|
window.location.href = generateUrl({ page: `/` });
|
|
9358
9358
|
} catch (error) {
|
|
9359
9359
|
errorToast({ title: t(`common.errors.delete`), error });
|
|
@@ -9460,7 +9460,7 @@ function CompanyDeleter({ company }) {
|
|
|
9460
9460
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
9461
9461
|
const isAdministrator2 = hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator);
|
|
9462
9462
|
const isCompanyAdministrator = hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).CompanyAdministrator);
|
|
9463
|
-
const hasDeletePermission = hasPermissionToModule({ module:
|
|
9463
|
+
const hasDeletePermission = hasPermissionToModule({ module: _chunk3EZX4G2Ejs.Modules.Company, action: "delete" /* Delete */ });
|
|
9464
9464
|
if (!isAdministrator2 && !isCompanyAdministrator && !hasDeletePermission) {
|
|
9465
9465
|
return null;
|
|
9466
9466
|
}
|
|
@@ -9510,7 +9510,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
9510
9510
|
});
|
|
9511
9511
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
9512
9512
|
if (values.logo && contentType) {
|
|
9513
|
-
const s3 = await
|
|
9513
|
+
const s3 = await _chunk3EZX4G2Ejs.S3Service.getPreSignedUrl({
|
|
9514
9514
|
key: values.logo,
|
|
9515
9515
|
contentType,
|
|
9516
9516
|
isPublic: true
|
|
@@ -9529,9 +9529,9 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
9529
9529
|
moduleIds: values.moduleIds
|
|
9530
9530
|
};
|
|
9531
9531
|
try {
|
|
9532
|
-
const updatedCompany = company ? await
|
|
9532
|
+
const updatedCompany = company ? await _chunk3EZX4G2Ejs.CompanyService.update(payload) : await _chunk3EZX4G2Ejs.CompanyService.create(payload);
|
|
9533
9533
|
if (onRevalidate) {
|
|
9534
|
-
await onRevalidate(generateUrl({ page:
|
|
9534
|
+
await onRevalidate(generateUrl({ page: _chunk3EZX4G2Ejs.Modules.Company, id: updatedCompany.id, language: `[locale]` }));
|
|
9535
9535
|
}
|
|
9536
9536
|
if (company && propagateChanges) {
|
|
9537
9537
|
_cookiesnext.setCookie.call(void 0, "reloadData", "true", { path: "/" });
|
|
@@ -9549,7 +9549,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
9549
9549
|
}, "onSubmit");
|
|
9550
9550
|
_react.useEffect.call(void 0, () => {
|
|
9551
9551
|
async function fetchFeatures() {
|
|
9552
|
-
const allfeatures = await
|
|
9552
|
+
const allfeatures = await _chunk3EZX4G2Ejs.FeatureService.findMany({});
|
|
9553
9553
|
if (hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator)) {
|
|
9554
9554
|
setFeatures(allfeatures);
|
|
9555
9555
|
} else {
|
|
@@ -9645,9 +9645,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyEditor, "CompanyEditor");
|
|
|
9645
9645
|
function CompaniesList() {
|
|
9646
9646
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9647
9647
|
const data = useDataListRetriever({
|
|
9648
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
9648
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3EZX4G2Ejs.CompanyService.findMany(params), "retriever"),
|
|
9649
9649
|
retrieverParams: {},
|
|
9650
|
-
module:
|
|
9650
|
+
module: _chunk3EZX4G2Ejs.Modules.Company
|
|
9651
9651
|
});
|
|
9652
9652
|
const functions = [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, {}, "create-account")];
|
|
9653
9653
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -9655,7 +9655,7 @@ function CompaniesList() {
|
|
|
9655
9655
|
{
|
|
9656
9656
|
data,
|
|
9657
9657
|
fields: ["name" /* name */, "createdAt" /* createdAt */],
|
|
9658
|
-
tableGeneratorType:
|
|
9658
|
+
tableGeneratorType: _chunk3EZX4G2Ejs.Modules.Company,
|
|
9659
9659
|
functions,
|
|
9660
9660
|
title: t(`entities.companies`, { count: 2 })
|
|
9661
9661
|
}
|
|
@@ -9676,14 +9676,14 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
9676
9676
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9677
9677
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
9678
9678
|
const [company, setCompany] = _react.useState.call(void 0,
|
|
9679
|
-
dehydratedCompany ?
|
|
9679
|
+
dehydratedCompany ? _chunk3EZX4G2Ejs.rehydrate.call(void 0, _chunk3EZX4G2Ejs.Modules.Company, dehydratedCompany) : void 0
|
|
9680
9680
|
);
|
|
9681
9681
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
9682
9682
|
const response = [];
|
|
9683
9683
|
if (company)
|
|
9684
9684
|
response.push({
|
|
9685
9685
|
name: company.name,
|
|
9686
|
-
href: generateUrl({ page:
|
|
9686
|
+
href: generateUrl({ page: _chunk3EZX4G2Ejs.Modules.Company })
|
|
9687
9687
|
});
|
|
9688
9688
|
return response;
|
|
9689
9689
|
}, "breadcrumb");
|
|
@@ -9693,9 +9693,9 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
9693
9693
|
};
|
|
9694
9694
|
if (company) response.element = company.name;
|
|
9695
9695
|
const functions = [];
|
|
9696
|
-
if (company && (hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).CompanyAdministrator)) && hasPermissionToModule({ module:
|
|
9696
|
+
if (company && (hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).CompanyAdministrator)) && hasPermissionToModule({ module: _chunk3EZX4G2Ejs.Modules.Company, action: "delete" /* Delete */ }))
|
|
9697
9697
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleter, { company }, "companyDeleter"));
|
|
9698
|
-
if (hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module:
|
|
9698
|
+
if (hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module: _chunk3EZX4G2Ejs.Modules.Company, action: "update" /* Update */ })) {
|
|
9699
9699
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, { company, propagateChanges: setCompany }, "companyEditor"));
|
|
9700
9700
|
}
|
|
9701
9701
|
if (functions.length > 0) response.functions = functions;
|
|
@@ -9814,7 +9814,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
9814
9814
|
setIsLoading(true);
|
|
9815
9815
|
setError(null);
|
|
9816
9816
|
try {
|
|
9817
|
-
const fetchedNotifications = await
|
|
9817
|
+
const fetchedNotifications = await _chunk3EZX4G2Ejs.NotificationService.findMany({});
|
|
9818
9818
|
setNotifications(fetchedNotifications);
|
|
9819
9819
|
setLastLoaded(Date.now());
|
|
9820
9820
|
} catch (error2) {
|
|
@@ -9842,7 +9842,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
9842
9842
|
try {
|
|
9843
9843
|
const data = {
|
|
9844
9844
|
data: ids.map((id) => ({
|
|
9845
|
-
type:
|
|
9845
|
+
type: _chunk3EZX4G2Ejs.Modules.Notification.name,
|
|
9846
9846
|
id,
|
|
9847
9847
|
attributes: {
|
|
9848
9848
|
isRead: true
|
|
@@ -9851,8 +9851,8 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
9851
9851
|
relationships: {}
|
|
9852
9852
|
}))
|
|
9853
9853
|
};
|
|
9854
|
-
await
|
|
9855
|
-
const allNotifications = await
|
|
9854
|
+
await _chunk3EZX4G2Ejs.NotificationService.markAsRead({ data });
|
|
9855
|
+
const allNotifications = await _chunk3EZX4G2Ejs.NotificationService.findMany({});
|
|
9856
9856
|
setNotifications(allNotifications);
|
|
9857
9857
|
setLastLoaded(Date.now());
|
|
9858
9858
|
} catch (error2) {
|
|
@@ -10150,18 +10150,18 @@ var RoleProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
10150
10150
|
const generateUrl = usePageUrlGenerator();
|
|
10151
10151
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10152
10152
|
const [role, setRole] = _react.useState.call(void 0,
|
|
10153
|
-
dehydratedRole ?
|
|
10153
|
+
dehydratedRole ? _chunk3EZX4G2Ejs.rehydrate.call(void 0, _chunk3EZX4G2Ejs.Modules.Role, dehydratedRole) : void 0
|
|
10154
10154
|
);
|
|
10155
10155
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10156
10156
|
const response = [];
|
|
10157
10157
|
response.push({
|
|
10158
10158
|
name: t(`entities.roles`, { count: 2 }),
|
|
10159
|
-
href: generateUrl({ page:
|
|
10159
|
+
href: generateUrl({ page: _chunk3EZX4G2Ejs.Modules.Role })
|
|
10160
10160
|
});
|
|
10161
10161
|
if (role)
|
|
10162
10162
|
response.push({
|
|
10163
10163
|
name: role.name,
|
|
10164
|
-
href: generateUrl({ page:
|
|
10164
|
+
href: generateUrl({ page: _chunk3EZX4G2Ejs.Modules.Role, id: role.id })
|
|
10165
10165
|
});
|
|
10166
10166
|
return response;
|
|
10167
10167
|
}, "breadcrumb");
|
|
@@ -10352,7 +10352,7 @@ function usePushNotifications() {
|
|
|
10352
10352
|
};
|
|
10353
10353
|
const subscriptionHash = btoa(JSON.stringify(plainSubscription));
|
|
10354
10354
|
if (lastRegisteredSubscription !== subscriptionHash) {
|
|
10355
|
-
await
|
|
10355
|
+
await _chunk3EZX4G2Ejs.PushService.register({ data: plainSubscription });
|
|
10356
10356
|
sessionStorage.setItem(sessionKey, subscriptionHash);
|
|
10357
10357
|
}
|
|
10358
10358
|
} catch (error) {
|
|
@@ -10435,7 +10435,7 @@ function useSocket({ token }) {
|
|
|
10435
10435
|
});
|
|
10436
10436
|
}, "handleMessage");
|
|
10437
10437
|
const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
|
|
10438
|
-
const notification =
|
|
10438
|
+
const notification = _chunk3EZX4G2Ejs.rehydrate.call(void 0, _chunk3EZX4G2Ejs.Modules.Notification, data);
|
|
10439
10439
|
if (notification) {
|
|
10440
10440
|
setSocketNotifications((prev) => {
|
|
10441
10441
|
const newNotifications = [...prev, notification];
|
|
@@ -10550,7 +10550,7 @@ function ContentTitle({ module, type, element, functions, className }) {
|
|
|
10550
10550
|
setClientFunctions(functions);
|
|
10551
10551
|
}, [functions]);
|
|
10552
10552
|
if (!element) return null;
|
|
10553
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
10553
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3EZX4G2Ejs.cn.call(void 0, `mb-4 flex items-center justify-between gap-x-4 w-full`, className), children: [
|
|
10554
10554
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col w-full", children: [
|
|
10555
10555
|
type && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `text-muted-foreground text-xl font-light flex gap-x-2 items-center`, children: [
|
|
10556
10556
|
module && module.icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, module.icon, { className: "w-5 h-5 inline-block" }),
|
|
@@ -10668,7 +10668,7 @@ function PageContainer({ children, testId, className }) {
|
|
|
10668
10668
|
const headerChildren = useHeaderChildren();
|
|
10669
10669
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex h-full w-full flex-col`, "data-testid": testId, children: [
|
|
10670
10670
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header, { children: headerChildren }),
|
|
10671
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className:
|
|
10671
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className: _chunk3EZX4G2Ejs.cn.call(void 0, `flex w-full flex-1 flex-col gap-y-4 pt-4 pl-4 pr-4 pb-20`, className), children })
|
|
10672
10672
|
] });
|
|
10673
10673
|
}
|
|
10674
10674
|
_chunk7QVYU63Ejs.__name.call(void 0, PageContainer, "PageContainer");
|
|
@@ -10777,7 +10777,7 @@ function TabsContainer({
|
|
|
10777
10777
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10778
10778
|
TabsList,
|
|
10779
10779
|
{
|
|
10780
|
-
className:
|
|
10780
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
10781
10781
|
`${style ? `my-4 flex w-full justify-start rounded-none border-b bg-transparent pb-0` : ``}`,
|
|
10782
10782
|
tabsListClassName
|
|
10783
10783
|
),
|
|
@@ -10785,7 +10785,7 @@ function TabsContainer({
|
|
|
10785
10785
|
TabsTrigger,
|
|
10786
10786
|
{
|
|
10787
10787
|
value: tab.label,
|
|
10788
|
-
className:
|
|
10788
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
10789
10789
|
`${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`}`,
|
|
10790
10790
|
tabsTriggerClassName
|
|
10791
10791
|
),
|
|
@@ -10805,7 +10805,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, TabsContainer, "TabsContainer");
|
|
|
10805
10805
|
// src/components/contents/AttributeElement.tsx
|
|
10806
10806
|
|
|
10807
10807
|
function AttributeElement({ inline, title, value, className }) {
|
|
10808
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
10808
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3EZX4G2Ejs.cn.call(void 0, `flex ${inline === true ? "flex-row" : "flex-col"} my-1 justify-start`, className), children: [
|
|
10809
10809
|
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${inline === true ? "min-w-48 pr-4" : "w-full"} text-sm font-semibold`, children: title }),
|
|
10810
10810
|
value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col text-sm", children: value })
|
|
10811
10811
|
] });
|
|
@@ -10828,7 +10828,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AllowedUsersDetails, "AllowedUsersDetails")
|
|
|
10828
10828
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
10829
10829
|
|
|
10830
10830
|
|
|
10831
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
10831
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-VB72JQEO.js"))), {
|
|
10832
10832
|
ssr: false
|
|
10833
10833
|
});
|
|
10834
10834
|
var BlockNoteEditorContainer = React3.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -10879,7 +10879,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, PageContainerContentDetails, "PageContainer
|
|
|
10879
10879
|
|
|
10880
10880
|
function PageContentContainer({ header, details, footer, content }) {
|
|
10881
10881
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
10882
|
-
const isMobile =
|
|
10882
|
+
const isMobile = _chunk3EZX4G2Ejs.useIsMobile.call(void 0, );
|
|
10883
10883
|
_react.useEffect.call(void 0, () => {
|
|
10884
10884
|
setMounted(true);
|
|
10885
10885
|
}, []);
|
|
@@ -11211,14 +11211,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, useJsonApiMutation, "useJsonApiMutation");
|
|
|
11211
11211
|
function useRehydration(classKey, data) {
|
|
11212
11212
|
return _react.useMemo.call(void 0, () => {
|
|
11213
11213
|
if (!data) return null;
|
|
11214
|
-
return
|
|
11214
|
+
return _chunk3EZX4G2Ejs.RehydrationFactory.rehydrate(classKey, data);
|
|
11215
11215
|
}, [classKey, data]);
|
|
11216
11216
|
}
|
|
11217
11217
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydration, "useRehydration");
|
|
11218
11218
|
function useRehydrationList(classKey, data) {
|
|
11219
11219
|
return _react.useMemo.call(void 0, () => {
|
|
11220
11220
|
if (!data || data.length === 0) return [];
|
|
11221
|
-
return
|
|
11221
|
+
return _chunk3EZX4G2Ejs.RehydrationFactory.rehydrateList(classKey, data);
|
|
11222
11222
|
}, [classKey, data]);
|
|
11223
11223
|
}
|
|
11224
11224
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydrationList, "useRehydrationList");
|
|
@@ -11260,9 +11260,9 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
11260
11260
|
{
|
|
11261
11261
|
href: hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
11262
11262
|
page: "/administration",
|
|
11263
|
-
id: _optionalChain([
|
|
11263
|
+
id: _optionalChain([_chunk3EZX4G2Ejs.Modules, 'access', _303 => _303.Company, 'access', _304 => _304.pageUrl, 'optionalAccess', _305 => _305.substring, 'call', _306 => _306(1)]),
|
|
11264
11264
|
childPage: company.id
|
|
11265
|
-
}) : generateUrl({ page:
|
|
11265
|
+
}) : generateUrl({ page: _chunk3EZX4G2Ejs.Modules.Company, id: company.id }),
|
|
11266
11266
|
children: row.getValue("name")
|
|
11267
11267
|
}
|
|
11268
11268
|
);
|
|
@@ -11377,7 +11377,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
11377
11377
|
header: t(`role.fields.name.label`),
|
|
11378
11378
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
11379
11379
|
const role = row.original.jsonApiData;
|
|
11380
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page:
|
|
11380
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunk3EZX4G2Ejs.Modules.Role, id: role.id }), children: row.getValue("name") });
|
|
11381
11381
|
}, "cell"),
|
|
11382
11382
|
enableSorting: false,
|
|
11383
11383
|
enableHiding: false
|
|
@@ -11414,7 +11414,7 @@ var useUserSearch = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
|
11414
11414
|
if (search === searchQueryRef.current && users.length > 0) return;
|
|
11415
11415
|
setIsLoading(true);
|
|
11416
11416
|
searchQueryRef.current = search;
|
|
11417
|
-
const fetchedUsers = await
|
|
11417
|
+
const fetchedUsers = await _chunk3EZX4G2Ejs.UserService.findMany({ search, fetchAll: true });
|
|
11418
11418
|
setUsers(fetchedUsers);
|
|
11419
11419
|
} catch (error) {
|
|
11420
11420
|
console.error("Failed to load users:", error);
|
|
@@ -11480,8 +11480,8 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
11480
11480
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11481
11481
|
Link,
|
|
11482
11482
|
{
|
|
11483
|
-
href: generateUrl({ page:
|
|
11484
|
-
className:
|
|
11483
|
+
href: generateUrl({ page: _chunk3EZX4G2Ejs.Modules.User, id: user.id }),
|
|
11484
|
+
className: _chunk3EZX4G2Ejs.cn.call(void 0,
|
|
11485
11485
|
`flex items-center justify-start gap-2`,
|
|
11486
11486
|
user.isDeleted || !user.isActivated ? "text-muted-foreground italic" : ""
|
|
11487
11487
|
),
|
|
@@ -11575,11 +11575,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
11575
11575
|
header: t(`content.fields.name.label`),
|
|
11576
11576
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
11577
11577
|
const content = row.original.jsonApiData;
|
|
11578
|
-
const contentModule = content.contentType ?
|
|
11578
|
+
const contentModule = content.contentType ? _chunk3EZX4G2Ejs.Modules.findByModelName(content.contentType) : void 0;
|
|
11579
11579
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
11580
11580
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
|
|
11581
11581
|
/* @__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: [
|
|
11582
|
-
contentModule &&
|
|
11582
|
+
contentModule && _chunk3EZX4G2Ejs.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
11583
11583
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: link, children: content.name })
|
|
11584
11584
|
] }) }),
|
|
11585
11585
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: content.tldr })
|
|
@@ -11716,7 +11716,7 @@ function useOAuthClients() {
|
|
|
11716
11716
|
setIsLoading(true);
|
|
11717
11717
|
setError(null);
|
|
11718
11718
|
try {
|
|
11719
|
-
const fetchedClients = await
|
|
11719
|
+
const fetchedClients = await _chunk3EZX4G2Ejs.OAuthService.listClients();
|
|
11720
11720
|
setClients(fetchedClients);
|
|
11721
11721
|
} catch (err) {
|
|
11722
11722
|
console.error("[useOAuthClients] Failed to fetch clients:", err);
|
|
@@ -11733,7 +11733,7 @@ function useOAuthClients() {
|
|
|
11733
11733
|
setIsLoading(true);
|
|
11734
11734
|
setError(null);
|
|
11735
11735
|
try {
|
|
11736
|
-
const result = await
|
|
11736
|
+
const result = await _chunk3EZX4G2Ejs.OAuthService.createClient(data);
|
|
11737
11737
|
addClient(result.client);
|
|
11738
11738
|
if (result.clientSecret) {
|
|
11739
11739
|
setNewClientSecret({
|
|
@@ -11780,7 +11780,7 @@ function useOAuthClient(clientId) {
|
|
|
11780
11780
|
setIsLoading(true);
|
|
11781
11781
|
setError(null);
|
|
11782
11782
|
try {
|
|
11783
|
-
const fetched = await
|
|
11783
|
+
const fetched = await _chunk3EZX4G2Ejs.OAuthService.getClient({ clientId });
|
|
11784
11784
|
setFetchedClient(fetched);
|
|
11785
11785
|
} catch (err) {
|
|
11786
11786
|
console.error("[useOAuthClient] Failed to fetch client:", err);
|
|
@@ -11800,7 +11800,7 @@ function useOAuthClient(clientId) {
|
|
|
11800
11800
|
setIsLoading(true);
|
|
11801
11801
|
setError(null);
|
|
11802
11802
|
try {
|
|
11803
|
-
const updated = await
|
|
11803
|
+
const updated = await _chunk3EZX4G2Ejs.OAuthService.updateClient({ clientId, data });
|
|
11804
11804
|
updateClientInStore(updated);
|
|
11805
11805
|
setFetchedClient(updated);
|
|
11806
11806
|
} catch (err) {
|
|
@@ -11819,7 +11819,7 @@ function useOAuthClient(clientId) {
|
|
|
11819
11819
|
setIsLoading(true);
|
|
11820
11820
|
setError(null);
|
|
11821
11821
|
try {
|
|
11822
|
-
await
|
|
11822
|
+
await _chunk3EZX4G2Ejs.OAuthService.deleteClient({ clientId });
|
|
11823
11823
|
removeClientFromStore(clientId);
|
|
11824
11824
|
} catch (err) {
|
|
11825
11825
|
console.error("[useOAuthClient] Failed to delete client:", err);
|
|
@@ -11835,7 +11835,7 @@ function useOAuthClient(clientId) {
|
|
|
11835
11835
|
setIsLoading(true);
|
|
11836
11836
|
setError(null);
|
|
11837
11837
|
try {
|
|
11838
|
-
const result = await
|
|
11838
|
+
const result = await _chunk3EZX4G2Ejs.OAuthService.regenerateSecret({ clientId });
|
|
11839
11839
|
setNewClientSecret({
|
|
11840
11840
|
clientId,
|
|
11841
11841
|
secret: result.clientSecret
|
|
@@ -11879,7 +11879,7 @@ function useOAuthConsent(params) {
|
|
|
11879
11879
|
setIsLoading(true);
|
|
11880
11880
|
setError(null);
|
|
11881
11881
|
try {
|
|
11882
|
-
const info = await
|
|
11882
|
+
const info = await _chunk3EZX4G2Ejs.OAuthService.getAuthorizationInfo(params);
|
|
11883
11883
|
setClientInfo(info);
|
|
11884
11884
|
} catch (err) {
|
|
11885
11885
|
console.error("[useOAuthConsent] Failed to fetch authorization info:", err);
|
|
@@ -11901,7 +11901,7 @@ function useOAuthConsent(params) {
|
|
|
11901
11901
|
setIsSubmitting(true);
|
|
11902
11902
|
setError(null);
|
|
11903
11903
|
try {
|
|
11904
|
-
const result = await
|
|
11904
|
+
const result = await _chunk3EZX4G2Ejs.OAuthService.approveAuthorization(params);
|
|
11905
11905
|
if (result.redirectUrl) {
|
|
11906
11906
|
window.location.href = result.redirectUrl;
|
|
11907
11907
|
}
|
|
@@ -11915,7 +11915,7 @@ function useOAuthConsent(params) {
|
|
|
11915
11915
|
setIsSubmitting(true);
|
|
11916
11916
|
setError(null);
|
|
11917
11917
|
try {
|
|
11918
|
-
const result = await
|
|
11918
|
+
const result = await _chunk3EZX4G2Ejs.OAuthService.denyAuthorization(params);
|
|
11919
11919
|
if (result.redirectUrl) {
|
|
11920
11920
|
window.location.href = result.redirectUrl;
|
|
11921
11921
|
}
|
|
@@ -12211,7 +12211,7 @@ function Register() {
|
|
|
12211
12211
|
marketingConsent: _nullishCoalesce(values.marketingConsent, () => ( false)),
|
|
12212
12212
|
marketingConsentAt: values.marketingConsent ? (/* @__PURE__ */ new Date()).toISOString() : null
|
|
12213
12213
|
};
|
|
12214
|
-
await
|
|
12214
|
+
await _chunk3EZX4G2Ejs.AuthService.register(payload);
|
|
12215
12215
|
setShowConfirmation(true);
|
|
12216
12216
|
} catch (e) {
|
|
12217
12217
|
errorToast({ error: e });
|
|
@@ -12465,7 +12465,7 @@ function AcceptInvitation() {
|
|
|
12465
12465
|
const payload = {
|
|
12466
12466
|
code
|
|
12467
12467
|
};
|
|
12468
|
-
await
|
|
12468
|
+
await _chunk3EZX4G2Ejs.AuthService.validateCode(payload);
|
|
12469
12469
|
} catch (e) {
|
|
12470
12470
|
setError(e instanceof Error ? e.message : String(e));
|
|
12471
12471
|
errorToast({ title: t(`common.errors.error`), error: e });
|
|
@@ -12503,9 +12503,9 @@ function AcceptInvitation() {
|
|
|
12503
12503
|
code: _optionalChain([params, 'optionalAccess', _332 => _332.code]),
|
|
12504
12504
|
password: values.password
|
|
12505
12505
|
};
|
|
12506
|
-
await
|
|
12506
|
+
await _chunk3EZX4G2Ejs.AuthService.acceptInvitation(payload);
|
|
12507
12507
|
setShowConfirmation(true);
|
|
12508
|
-
|
|
12508
|
+
_chunk3EZX4G2Ejs.showToast.call(void 0, t("auth.account_activated"), {
|
|
12509
12509
|
description: t("auth.account_activated_description")
|
|
12510
12510
|
});
|
|
12511
12511
|
setTimeout(() => {
|
|
@@ -12565,10 +12565,10 @@ function ActivateAccount() {
|
|
|
12565
12565
|
const payload = {
|
|
12566
12566
|
activationCode: code
|
|
12567
12567
|
};
|
|
12568
|
-
await
|
|
12568
|
+
await _chunk3EZX4G2Ejs.AuthService.activate(payload);
|
|
12569
12569
|
setShowConfirmation(true);
|
|
12570
12570
|
setParams(void 0);
|
|
12571
|
-
|
|
12571
|
+
_chunk3EZX4G2Ejs.showToast.call(void 0, t("auth.account_activated"), {
|
|
12572
12572
|
description: t("auth.account_activated_description")
|
|
12573
12573
|
});
|
|
12574
12574
|
setTimeout(() => {
|
|
@@ -12608,8 +12608,8 @@ function Cookies({ dehydratedAuth, page }) {
|
|
|
12608
12608
|
_react.useEffect.call(void 0, () => {
|
|
12609
12609
|
if (hasSaved) return;
|
|
12610
12610
|
async function saveTokenOnServer() {
|
|
12611
|
-
await
|
|
12612
|
-
const auth =
|
|
12611
|
+
await _chunk3EZX4G2Ejs.AuthService.saveToken({ dehydratedAuth });
|
|
12612
|
+
const auth = _chunk3EZX4G2Ejs.rehydrate.call(void 0, _chunk3EZX4G2Ejs.Modules.Auth, dehydratedAuth);
|
|
12613
12613
|
setUser(auth.user);
|
|
12614
12614
|
setHasSaved(true);
|
|
12615
12615
|
if (page) {
|
|
@@ -12652,7 +12652,7 @@ function ForgotPassword() {
|
|
|
12652
12652
|
const payload = {
|
|
12653
12653
|
email: values.email
|
|
12654
12654
|
};
|
|
12655
|
-
await
|
|
12655
|
+
await _chunk3EZX4G2Ejs.AuthService.initialiseForgotPassword(payload);
|
|
12656
12656
|
setShowConfirmation(true);
|
|
12657
12657
|
} catch (e) {
|
|
12658
12658
|
errorToast({ error: e });
|
|
@@ -12702,12 +12702,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, ForgotPassword, "ForgotPassword");
|
|
|
12702
12702
|
|
|
12703
12703
|
|
|
12704
12704
|
|
|
12705
|
+
|
|
12705
12706
|
function Login() {
|
|
12706
12707
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
12707
12708
|
const { setUser } = useCurrentUserContext();
|
|
12708
12709
|
const { setComponentType } = useAuthContext();
|
|
12709
12710
|
const generateUrl = usePageUrlGenerator();
|
|
12710
|
-
const
|
|
12711
|
+
const i18nRouter = _chunk2PHWAL6Qjs.useI18nRouter.call(void 0, );
|
|
12712
|
+
const nativeRouter = _navigation.useRouter.call(void 0, );
|
|
12713
|
+
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
12714
|
+
const callbackUrl = searchParams.get("callbackUrl");
|
|
12711
12715
|
const formSchema = _zod3.z.object({
|
|
12712
12716
|
email: _zod3.z.string().email({
|
|
12713
12717
|
message: t(`common.errors.invalid_email`)
|
|
@@ -12723,12 +12727,16 @@ function Login() {
|
|
|
12723
12727
|
});
|
|
12724
12728
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
12725
12729
|
try {
|
|
12726
|
-
const user = await
|
|
12730
|
+
const user = await _chunk3EZX4G2Ejs.AuthService.login({
|
|
12727
12731
|
email: values.email,
|
|
12728
12732
|
password: values.password
|
|
12729
12733
|
});
|
|
12730
12734
|
setUser(user);
|
|
12731
|
-
|
|
12735
|
+
if (callbackUrl) {
|
|
12736
|
+
nativeRouter.replace(callbackUrl);
|
|
12737
|
+
} else {
|
|
12738
|
+
i18nRouter.replace(generateUrl({ page: `/` }));
|
|
12739
|
+
}
|
|
12732
12740
|
} catch (e) {
|
|
12733
12741
|
errorToast({
|
|
12734
12742
|
title: t(`common.errors.error`),
|
|
@@ -12806,7 +12814,7 @@ function Logout() {
|
|
|
12806
12814
|
const generateUrl = usePageUrlGenerator();
|
|
12807
12815
|
_react.useEffect.call(void 0, () => {
|
|
12808
12816
|
const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
12809
|
-
await
|
|
12817
|
+
await _chunk3EZX4G2Ejs.AuthService.logout();
|
|
12810
12818
|
window.location.href = generateUrl({ page: `/` });
|
|
12811
12819
|
}, "logOut");
|
|
12812
12820
|
logOut();
|
|
@@ -12821,7 +12829,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, Logout, "Logout");
|
|
|
12821
12829
|
function RefreshUser() {
|
|
12822
12830
|
const { setUser } = useCurrentUserContext();
|
|
12823
12831
|
const loadFullUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
12824
|
-
const fullUser = await
|
|
12832
|
+
const fullUser = await _chunk3EZX4G2Ejs.UserService.findFullUser();
|
|
12825
12833
|
if (fullUser) {
|
|
12826
12834
|
setUser(fullUser);
|
|
12827
12835
|
const token = {
|
|
@@ -12833,7 +12841,7 @@ function RefreshUser() {
|
|
|
12833
12841
|
return { id: module.id, permissions: module.permissions };
|
|
12834
12842
|
})
|
|
12835
12843
|
};
|
|
12836
|
-
await _optionalChain([
|
|
12844
|
+
await _optionalChain([_chunk3EZX4G2Ejs.getTokenHandler.call(void 0, ), 'optionalAccess', _339 => _339.updateToken, 'call', _340 => _340(token)]);
|
|
12837
12845
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
12838
12846
|
}
|
|
12839
12847
|
}, "loadFullUser");
|
|
@@ -12864,7 +12872,7 @@ function ResetPassword() {
|
|
|
12864
12872
|
const payload = {
|
|
12865
12873
|
code
|
|
12866
12874
|
};
|
|
12867
|
-
await
|
|
12875
|
+
await _chunk3EZX4G2Ejs.AuthService.validateCode(payload);
|
|
12868
12876
|
} catch (e) {
|
|
12869
12877
|
setError(e instanceof Error ? e.message : String(e));
|
|
12870
12878
|
errorToast({ title: t(`common.errors.error`), error: e });
|
|
@@ -12902,9 +12910,9 @@ function ResetPassword() {
|
|
|
12902
12910
|
code: _optionalChain([params, 'optionalAccess', _342 => _342.code]),
|
|
12903
12911
|
password: values.password
|
|
12904
12912
|
};
|
|
12905
|
-
await
|
|
12913
|
+
await _chunk3EZX4G2Ejs.AuthService.resetPassword(payload);
|
|
12906
12914
|
setShowConfirmation(true);
|
|
12907
|
-
|
|
12915
|
+
_chunk3EZX4G2Ejs.showToast.call(void 0, t(`auth.reset_success`), {
|
|
12908
12916
|
description: t(`auth.reset_success_description`)
|
|
12909
12917
|
});
|
|
12910
12918
|
setTimeout(() => {
|
|
@@ -12945,12 +12953,12 @@ function ContentsList({ contentList }) {
|
|
|
12945
12953
|
_chunk7QVYU63Ejs.__name.call(void 0, ContentsList, "ContentsList");
|
|
12946
12954
|
function ContentsListElement({ content }) {
|
|
12947
12955
|
const generateUrl = usePageUrlGenerator();
|
|
12948
|
-
const contentModule = content.contentType ?
|
|
12956
|
+
const contentModule = content.contentType ? _chunk3EZX4G2Ejs.Modules.findByModelName(content.contentType) : void 0;
|
|
12949
12957
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
12950
12958
|
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: [
|
|
12951
12959
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCard, { children: [
|
|
12952
12960
|
/* @__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: [
|
|
12953
|
-
contentModule &&
|
|
12961
|
+
contentModule && _chunk3EZX4G2Ejs.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
12954
12962
|
content.name
|
|
12955
12963
|
] }) }),
|
|
12956
12964
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCardContent, { className: "flex max-h-96 w-96 flex-col gap-y-4 overflow-y-auto", children: [
|
|
@@ -12969,8 +12977,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListElement, "ContentsListElement")
|
|
|
12969
12977
|
function ContentsListById({ contentIds }) {
|
|
12970
12978
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
12971
12979
|
const data = useDataListRetriever({
|
|
12972
|
-
module:
|
|
12973
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
12980
|
+
module: _chunk3EZX4G2Ejs.Modules.Content,
|
|
12981
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3EZX4G2Ejs.ContentService.findMany(params), "retriever"),
|
|
12974
12982
|
retrieverParams: { contentIds }
|
|
12975
12983
|
});
|
|
12976
12984
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -12978,7 +12986,7 @@ function ContentsListById({ contentIds }) {
|
|
|
12978
12986
|
{
|
|
12979
12987
|
data,
|
|
12980
12988
|
fields: ["name" /* name */, "authors" /* authors */, "updatedAt" /* updatedAt */],
|
|
12981
|
-
tableGeneratorType:
|
|
12989
|
+
tableGeneratorType: _chunk3EZX4G2Ejs.Modules.Content,
|
|
12982
12990
|
title: t(`common.relevant`)
|
|
12983
12991
|
}
|
|
12984
12992
|
);
|
|
@@ -12991,8 +12999,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListById, "ContentsListById");
|
|
|
12991
12999
|
function RelevantContentsList({ id }) {
|
|
12992
13000
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
12993
13001
|
const data = useDataListRetriever({
|
|
12994
|
-
module:
|
|
12995
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
13002
|
+
module: _chunk3EZX4G2Ejs.Modules.Content,
|
|
13003
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3EZX4G2Ejs.ContentService.findRelevant(params), "retriever"),
|
|
12996
13004
|
retrieverParams: { id }
|
|
12997
13005
|
});
|
|
12998
13006
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -13000,7 +13008,7 @@ function RelevantContentsList({ id }) {
|
|
|
13000
13008
|
{
|
|
13001
13009
|
data,
|
|
13002
13010
|
fields: ["name" /* name */, "authors" /* authors */, "relevance" /* relevance */, "updatedAt" /* updatedAt */],
|
|
13003
|
-
tableGeneratorType:
|
|
13011
|
+
tableGeneratorType: _chunk3EZX4G2Ejs.Modules.Content,
|
|
13004
13012
|
title: t(`common.relevant`)
|
|
13005
13013
|
}
|
|
13006
13014
|
);
|
|
@@ -13053,12 +13061,12 @@ function NotificationsList({ archived }) {
|
|
|
13053
13061
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13054
13062
|
const generateUrl = usePageUrlGenerator();
|
|
13055
13063
|
const data = useDataListRetriever({
|
|
13056
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
13064
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3EZX4G2Ejs.NotificationService.findMany(params), "retriever"),
|
|
13057
13065
|
retrieverParams: { isArchived: archived },
|
|
13058
|
-
module:
|
|
13066
|
+
module: _chunk3EZX4G2Ejs.Modules.Notification
|
|
13059
13067
|
});
|
|
13060
13068
|
const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
|
|
13061
|
-
await
|
|
13069
|
+
await _chunk3EZX4G2Ejs.NotificationService.archive({ id: notification.id });
|
|
13062
13070
|
data.removeElement(notification);
|
|
13063
13071
|
}, "archiveNotification");
|
|
13064
13072
|
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: [
|
|
@@ -13072,7 +13080,7 @@ function NotificationsList({ archived }) {
|
|
|
13072
13080
|
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) => {
|
|
13073
13081
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
13074
13082
|
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: [
|
|
13075
|
-
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:
|
|
13083
|
+
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: _chunk3EZX4G2Ejs.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" }),
|
|
13076
13084
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
13077
13085
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
13078
13086
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
@@ -13219,7 +13227,7 @@ function NotificationModalContent({ isOpen, setIsOpen }) {
|
|
|
13219
13227
|
batch.forEach((notification) => {
|
|
13220
13228
|
addNotification(notification);
|
|
13221
13229
|
const toastNotification = generateToastNotification(notification, t, generateUrl);
|
|
13222
|
-
|
|
13230
|
+
_chunk3EZX4G2Ejs.showToast.call(void 0, toastNotification.title, {
|
|
13223
13231
|
description: toastNotification.description,
|
|
13224
13232
|
action: toastNotification.action
|
|
13225
13233
|
});
|
|
@@ -13380,7 +13388,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
13380
13388
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13381
13389
|
_react.useEffect.call(void 0, () => {
|
|
13382
13390
|
async function checkCompanyAdminDeletability() {
|
|
13383
|
-
const roleUsers = await
|
|
13391
|
+
const roleUsers = await _chunk3EZX4G2Ejs.UserService.findAllUsersByRole({
|
|
13384
13392
|
roleId: role.id
|
|
13385
13393
|
});
|
|
13386
13394
|
if (roleUsers.length > 1) setCanRemove(true);
|
|
@@ -13394,7 +13402,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
13394
13402
|
}, [role]);
|
|
13395
13403
|
const remove = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
13396
13404
|
try {
|
|
13397
|
-
await
|
|
13405
|
+
await _chunk3EZX4G2Ejs.RoleService.removeUserFromRole({
|
|
13398
13406
|
roleId: role.id,
|
|
13399
13407
|
userId: user.id
|
|
13400
13408
|
});
|
|
@@ -13457,12 +13465,12 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
13457
13465
|
const [roles, setRoles] = _react.useState.call(void 0, []);
|
|
13458
13466
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13459
13467
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (role) => {
|
|
13460
|
-
await
|
|
13468
|
+
await _chunk3EZX4G2Ejs.RoleService.addUserToRole({
|
|
13461
13469
|
roleId: role.id,
|
|
13462
13470
|
userId: user.id
|
|
13463
13471
|
});
|
|
13464
13472
|
setRoles(roles.filter((u) => u.id !== role.id));
|
|
13465
|
-
|
|
13473
|
+
_chunk3EZX4G2Ejs.showToast.call(void 0,
|
|
13466
13474
|
t(`common.association.label`, {
|
|
13467
13475
|
source: t(`entities.roles`, { count: 1 }),
|
|
13468
13476
|
destination: t(`entities.users`, { count: 1 })
|
|
@@ -13481,7 +13489,7 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
13481
13489
|
const searchRoles = _react.useCallback.call(void 0,
|
|
13482
13490
|
async (term) => {
|
|
13483
13491
|
setRoles(
|
|
13484
|
-
await
|
|
13492
|
+
await _chunk3EZX4G2Ejs.RoleService.findAllRolesUserNotIn({
|
|
13485
13493
|
search: term,
|
|
13486
13494
|
userId: user.id
|
|
13487
13495
|
})
|
|
@@ -13549,16 +13557,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserRoleAdd, "UserRoleAdd");
|
|
|
13549
13557
|
function RolesList() {
|
|
13550
13558
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13551
13559
|
const data = useDataListRetriever({
|
|
13552
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
13560
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3EZX4G2Ejs.RoleService.findAllRoles(params), "retriever"),
|
|
13553
13561
|
retrieverParams: {},
|
|
13554
|
-
module:
|
|
13562
|
+
module: _chunk3EZX4G2Ejs.Modules.Role
|
|
13555
13563
|
});
|
|
13556
13564
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13557
13565
|
ContentListTable,
|
|
13558
13566
|
{
|
|
13559
13567
|
data,
|
|
13560
13568
|
fields: ["name" /* name */, "description" /* description */],
|
|
13561
|
-
tableGeneratorType:
|
|
13569
|
+
tableGeneratorType: _chunk3EZX4G2Ejs.Modules.Role,
|
|
13562
13570
|
title: t(`entities.roles`, { count: 2 })
|
|
13563
13571
|
}
|
|
13564
13572
|
);
|
|
@@ -13571,16 +13579,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RolesList, "RolesList");
|
|
|
13571
13579
|
function UserRolesList({ user }) {
|
|
13572
13580
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
13573
13581
|
const data = useDataListRetriever({
|
|
13574
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
13582
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3EZX4G2Ejs.RoleService.findAllRolesByUser(params), "retriever"),
|
|
13575
13583
|
retrieverParams: { userId: user.id },
|
|
13576
|
-
module:
|
|
13584
|
+
module: _chunk3EZX4G2Ejs.Modules.Role
|
|
13577
13585
|
});
|
|
13578
13586
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13579
13587
|
ContentListTable,
|
|
13580
13588
|
{
|
|
13581
13589
|
data,
|
|
13582
13590
|
fields: ["name" /* name */, "description" /* description */],
|
|
13583
|
-
tableGeneratorType:
|
|
13591
|
+
tableGeneratorType: _chunk3EZX4G2Ejs.Modules.Role,
|
|
13584
13592
|
title: t(`entities.roles`, { count: 2 })
|
|
13585
13593
|
}
|
|
13586
13594
|
);
|
|
@@ -13687,7 +13695,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthRedirectUriInput, "OAuthRedirectUriInp
|
|
|
13687
13695
|
function OAuthScopeSelector({
|
|
13688
13696
|
value,
|
|
13689
13697
|
onChange,
|
|
13690
|
-
availableScopes =
|
|
13698
|
+
availableScopes = _chunk3EZX4G2Ejs.AVAILABLE_OAUTH_SCOPES,
|
|
13691
13699
|
disabled = false,
|
|
13692
13700
|
error,
|
|
13693
13701
|
label = "Allowed Scopes"
|
|
@@ -13993,7 +14001,7 @@ function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
|
|
|
13993
14001
|
description: formState.description.trim() || void 0,
|
|
13994
14002
|
redirectUris: formState.redirectUris.filter((uri) => uri.trim()),
|
|
13995
14003
|
allowedScopes: formState.allowedScopes,
|
|
13996
|
-
allowedGrantTypes:
|
|
14004
|
+
allowedGrantTypes: _chunk3EZX4G2Ejs.DEFAULT_GRANT_TYPES,
|
|
13997
14005
|
isConfidential: formState.isConfidential
|
|
13998
14006
|
};
|
|
13999
14007
|
await onSubmit(data);
|
|
@@ -14194,7 +14202,7 @@ function OAuthClientDetail({
|
|
|
14194
14202
|
] }),
|
|
14195
14203
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
14196
14204
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
14197
|
-
/* @__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([
|
|
14205
|
+
/* @__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([_chunk3EZX4G2Ejs.OAUTH_SCOPE_DISPLAY, 'access', _355 => _355[scope], 'optionalAccess', _356 => _356.name]) || scope }, scope)) })
|
|
14198
14206
|
] }),
|
|
14199
14207
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
14200
14208
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -14794,4 +14802,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthConsentScreen, "OAuthConsentScreen");
|
|
|
14794
14802
|
|
|
14795
14803
|
|
|
14796
14804
|
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;
|
|
14797
|
-
//# sourceMappingURL=chunk-
|
|
14805
|
+
//# sourceMappingURL=chunk-BYMBRMKS.js.map
|