@carlonicora/nextjs-jsonapi 1.7.2 → 1.7.4
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-GJURWDIH.mjs → BlockNoteEditor-N6QOYG5P.mjs} +3 -3
- package/dist/{BlockNoteEditor-WEQLDXRK.js → BlockNoteEditor-UF7DYLFA.js} +13 -13
- package/dist/{BlockNoteEditor-WEQLDXRK.js.map → BlockNoteEditor-UF7DYLFA.js.map} +1 -1
- package/dist/{chunk-JPHVDI2C.mjs → chunk-2O7ODHTG.mjs} +3 -4
- package/dist/chunk-2O7ODHTG.mjs.map +1 -0
- package/dist/{chunk-RRNBQ3LY.mjs → chunk-2UD32SCP.mjs} +3 -3
- package/dist/{chunk-RRNBQ3LY.mjs.map → chunk-2UD32SCP.mjs.map} +1 -1
- package/dist/{chunk-BYMZEX5B.js → chunk-3HL4VFJ4.js} +3 -4
- package/dist/chunk-3HL4VFJ4.js.map +1 -0
- package/dist/{chunk-ODZ2X6Y3.js → chunk-HYAMXMLI.js} +358 -358
- package/dist/{chunk-ODZ2X6Y3.js.map → chunk-HYAMXMLI.js.map} +1 -1
- package/dist/client/index.js +3 -3
- package/dist/client/index.mjs +2 -2
- package/dist/components/index.d.mts +1 -0
- package/dist/components/index.d.ts +1 -0
- 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 +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/forms/FileUploader.tsx +2 -0
- package/src/utils/date-formatter.ts +2 -4
- package/dist/chunk-BYMZEX5B.js.map +0 -1
- package/dist/chunk-JPHVDI2C.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-GJURWDIH.mjs.map → BlockNoteEditor-N6QOYG5P.mjs.map} +0 -0
|
@@ -30,7 +30,7 @@ var _chunkAGWQ75PQjs = require('./chunk-AGWQ75PQ.js');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunk3HL4VFJ4js = require('./chunk-3HL4VFJ4.js');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
var _chunk7QVYU63Ejs = require('./chunk-7QVYU63E.js');
|
|
@@ -150,7 +150,7 @@ function useDataListRetriever(params) {
|
|
|
150
150
|
const abortControllerRef = _react.useRef.call(void 0, null);
|
|
151
151
|
const isFetchingRef = _react.useRef.call(void 0, false);
|
|
152
152
|
const resolvedType = params.module;
|
|
153
|
-
const resolvedService =
|
|
153
|
+
const resolvedService = _chunk3HL4VFJ4js.ClientAbstractService;
|
|
154
154
|
const parsePageParams = _react.useCallback.call(void 0, (url) => {
|
|
155
155
|
if (!url) return null;
|
|
156
156
|
try {
|
|
@@ -851,20 +851,20 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
851
851
|
if (!token && dehydratedUser) setDehydratedUser(null);
|
|
852
852
|
}, [dehydratedUser, setDehydratedUser]);
|
|
853
853
|
const matchUrlToModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
854
|
-
const moduleKeys = Object.getOwnPropertyNames(
|
|
854
|
+
const moduleKeys = Object.getOwnPropertyNames(_chunk3HL4VFJ4js.Modules).filter(
|
|
855
855
|
(key) => key !== "prototype" && key !== "_factory" && key !== "length" && key !== "name"
|
|
856
856
|
);
|
|
857
857
|
const matchedModuleKey = moduleKeys.find((key) => {
|
|
858
|
-
const descriptor2 = Object.getOwnPropertyDescriptor(
|
|
858
|
+
const descriptor2 = Object.getOwnPropertyDescriptor(_chunk3HL4VFJ4js.Modules, key);
|
|
859
859
|
if (!_optionalChain([descriptor2, 'optionalAccess', _25 => _25.get])) return false;
|
|
860
|
-
const selectedModule = descriptor2.get.call(
|
|
860
|
+
const selectedModule = descriptor2.get.call(_chunk3HL4VFJ4js.Modules);
|
|
861
861
|
return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _26 => _26.pageUrl, 'optionalAccess', _27 => _27.toLowerCase, 'call', _28 => _28()]));
|
|
862
862
|
});
|
|
863
863
|
if (!matchedModuleKey) return void 0;
|
|
864
|
-
const descriptor = Object.getOwnPropertyDescriptor(
|
|
865
|
-
return _optionalChain([descriptor, 'optionalAccess', _29 => _29.get, 'optionalAccess', _30 => _30.call, 'call', _31 => _31(
|
|
864
|
+
const descriptor = Object.getOwnPropertyDescriptor(_chunk3HL4VFJ4js.Modules, matchedModuleKey);
|
|
865
|
+
return _optionalChain([descriptor, 'optionalAccess', _29 => _29.get, 'optionalAccess', _30 => _30.call, 'call', _31 => _31(_chunk3HL4VFJ4js.Modules)]);
|
|
866
866
|
}, "matchUrlToModule");
|
|
867
|
-
const currentUser = dehydratedUser ?
|
|
867
|
+
const currentUser = dehydratedUser ? _chunk3HL4VFJ4js.rehydrate.call(void 0, _chunk3HL4VFJ4js.Modules.User, dehydratedUser) : null;
|
|
868
868
|
const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _32 => _32.company]), () => ( null));
|
|
869
869
|
const setUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (user) => {
|
|
870
870
|
if (user) setDehydratedUser(user.dehydrate());
|
|
@@ -882,14 +882,14 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
882
882
|
function hasPermissionToModule(params) {
|
|
883
883
|
if (!currentUser) return false;
|
|
884
884
|
if (!!params.module.feature && !hasAccesToFeature(params.module.feature)) return false;
|
|
885
|
-
return
|
|
885
|
+
return _chunk3HL4VFJ4js.checkPermissions.call(void 0, { module: params.module, action: params.action, data: params.data, user: currentUser });
|
|
886
886
|
}
|
|
887
887
|
_chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModule, "hasPermissionToModule");
|
|
888
888
|
function hasPermissionToModules(params) {
|
|
889
889
|
if (!currentUser) return false;
|
|
890
890
|
if (!params.modules.every((module) => !module.feature || hasAccesToFeature(module.feature))) return false;
|
|
891
891
|
return params.modules.every(
|
|
892
|
-
(module) =>
|
|
892
|
+
(module) => _chunk3HL4VFJ4js.checkPermissions.call(void 0, { module, action: params.action, data: params.data, user: currentUser })
|
|
893
893
|
);
|
|
894
894
|
}
|
|
895
895
|
_chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModules, "hasPermissionToModules");
|
|
@@ -945,7 +945,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
945
945
|
const [existingUsers, setExistingUsers] = _react.useState.call(void 0, null);
|
|
946
946
|
_react.useEffect.call(void 0, () => {
|
|
947
947
|
const fetchExistingUsers = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
948
|
-
setExistingUsers(await
|
|
948
|
+
setExistingUsers(await _chunk3HL4VFJ4js.UserService.findMany({ roleId: role.id, fetchAll: true }));
|
|
949
949
|
}, "fetchExistingUsers");
|
|
950
950
|
if (show) {
|
|
951
951
|
setExistingUsers(null);
|
|
@@ -953,7 +953,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
953
953
|
}
|
|
954
954
|
}, [show]);
|
|
955
955
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (user) => {
|
|
956
|
-
await
|
|
956
|
+
await _chunk3HL4VFJ4js.RoleService.addUserToRole({
|
|
957
957
|
roleId: role.id,
|
|
958
958
|
userId: user.id
|
|
959
959
|
});
|
|
@@ -969,9 +969,9 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
969
969
|
}, "addUserToRole");
|
|
970
970
|
const data = useDataListRetriever({
|
|
971
971
|
ready: !!company && show,
|
|
972
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
972
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.UserService.findAllUsers(params), "retriever"),
|
|
973
973
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _36 => _36.id]) },
|
|
974
|
-
module:
|
|
974
|
+
module: _chunk3HL4VFJ4js.Modules.User
|
|
975
975
|
});
|
|
976
976
|
_react.useEffect.call(void 0, () => {
|
|
977
977
|
if (!!company && show) {
|
|
@@ -1019,13 +1019,13 @@ var _reacticons = require('@radix-ui/react-icons');
|
|
|
1019
1019
|
|
|
1020
1020
|
|
|
1021
1021
|
var Accordion = AccordionPrimitive.Root;
|
|
1022
|
-
var AccordionItem = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AccordionPrimitive.Item, { ref, className:
|
|
1022
|
+
var AccordionItem = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AccordionPrimitive.Item, { ref, className: _chunk3HL4VFJ4js.cn.call(void 0, "border-b", className), ...props }));
|
|
1023
1023
|
AccordionItem.displayName = "AccordionItem";
|
|
1024
1024
|
var AccordionTrigger = React2.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AccordionPrimitive.Header, { className: "flex", asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1025
1025
|
AccordionPrimitive.Trigger,
|
|
1026
1026
|
{
|
|
1027
1027
|
ref,
|
|
1028
|
-
className:
|
|
1028
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all", className),
|
|
1029
1029
|
...props,
|
|
1030
1030
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center", children: [
|
|
1031
1031
|
children,
|
|
@@ -1040,7 +1040,7 @@ var AccordionContent = React2.forwardRef(({ className, children, ...props }, ref
|
|
|
1040
1040
|
ref,
|
|
1041
1041
|
className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
1042
1042
|
...props,
|
|
1043
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1043
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, "pb-4 pt-0", className), children })
|
|
1044
1044
|
}
|
|
1045
1045
|
));
|
|
1046
1046
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
@@ -1063,14 +1063,14 @@ var alertVariants = _classvarianceauthority.cva.call(void 0,
|
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
1065
1065
|
);
|
|
1066
|
-
var Alert = React3.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, role: "alert", className:
|
|
1066
|
+
var Alert = React3.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, role: "alert", className: _chunk3HL4VFJ4js.cn.call(void 0, alertVariants({ variant }), className), ...props }));
|
|
1067
1067
|
Alert.displayName = "Alert";
|
|
1068
1068
|
var AlertTitle = React3.forwardRef(
|
|
1069
|
-
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h5", { ref, className:
|
|
1069
|
+
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h5", { ref, className: _chunk3HL4VFJ4js.cn.call(void 0, "mb-1 font-medium leading-none tracking-tight", className), ...props })
|
|
1070
1070
|
);
|
|
1071
1071
|
AlertTitle.displayName = "AlertTitle";
|
|
1072
1072
|
var AlertDescription = React3.forwardRef(
|
|
1073
|
-
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
1073
|
+
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3HL4VFJ4js.cn.call(void 0, "text-sm [&_p]:leading-relaxed", className), ...props })
|
|
1074
1074
|
);
|
|
1075
1075
|
AlertDescription.displayName = "AlertDescription";
|
|
1076
1076
|
|
|
@@ -1116,7 +1116,7 @@ function Button({
|
|
|
1116
1116
|
...props
|
|
1117
1117
|
}) {
|
|
1118
1118
|
const Comp = asChild ? _reactslot.Slot : "button";
|
|
1119
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Comp, { "data-slot": "button", className:
|
|
1119
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Comp, { "data-slot": "button", className: _chunk3HL4VFJ4js.cn.call(void 0, buttonVariants({ variant, size, className })), ...props });
|
|
1120
1120
|
}
|
|
1121
1121
|
_chunk7QVYU63Ejs.__name.call(void 0, Button, "Button");
|
|
1122
1122
|
|
|
@@ -1128,7 +1128,7 @@ var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
|
1128
1128
|
var AlertDialogOverlay = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1129
1129
|
AlertDialogPrimitive.Overlay,
|
|
1130
1130
|
{
|
|
1131
|
-
className:
|
|
1131
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1132
1132
|
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
1133
1133
|
className
|
|
1134
1134
|
),
|
|
@@ -1143,7 +1143,7 @@ var AlertDialogContent = React4.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1143
1143
|
AlertDialogPrimitive.Content,
|
|
1144
1144
|
{
|
|
1145
1145
|
ref,
|
|
1146
|
-
className:
|
|
1146
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1147
1147
|
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
1148
1148
|
className
|
|
1149
1149
|
),
|
|
@@ -1158,7 +1158,7 @@ var AlertDialogHeader = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
1158
1158
|
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1159
1159
|
"div",
|
|
1160
1160
|
{
|
|
1161
|
-
className:
|
|
1161
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1162
1162
|
"flex flex-col space-y-2 text-center sm:text-left",
|
|
1163
1163
|
className
|
|
1164
1164
|
),
|
|
@@ -1172,7 +1172,7 @@ var AlertDialogFooter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
1172
1172
|
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1173
1173
|
"div",
|
|
1174
1174
|
{
|
|
1175
|
-
className:
|
|
1175
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1176
1176
|
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
1177
1177
|
className
|
|
1178
1178
|
),
|
|
@@ -1184,7 +1184,7 @@ var AlertDialogTitle = React4.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1184
1184
|
AlertDialogPrimitive.Title,
|
|
1185
1185
|
{
|
|
1186
1186
|
ref,
|
|
1187
|
-
className:
|
|
1187
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "text-lg font-semibold", className),
|
|
1188
1188
|
...props
|
|
1189
1189
|
}
|
|
1190
1190
|
));
|
|
@@ -1193,7 +1193,7 @@ var AlertDialogDescription = React4.forwardRef(({ className, ...props }, ref) =>
|
|
|
1193
1193
|
AlertDialogPrimitive.Description,
|
|
1194
1194
|
{
|
|
1195
1195
|
ref,
|
|
1196
|
-
className:
|
|
1196
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "text-sm text-muted-foreground", className),
|
|
1197
1197
|
...props
|
|
1198
1198
|
}
|
|
1199
1199
|
));
|
|
@@ -1202,7 +1202,7 @@ var AlertDialogAction = React4.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1202
1202
|
AlertDialogPrimitive.Action,
|
|
1203
1203
|
{
|
|
1204
1204
|
ref,
|
|
1205
|
-
className:
|
|
1205
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, buttonVariants(), className),
|
|
1206
1206
|
...props
|
|
1207
1207
|
}
|
|
1208
1208
|
));
|
|
@@ -1211,7 +1211,7 @@ var AlertDialogCancel = React4.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1211
1211
|
AlertDialogPrimitive.Cancel,
|
|
1212
1212
|
{
|
|
1213
1213
|
ref,
|
|
1214
|
-
className:
|
|
1214
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1215
1215
|
buttonVariants({ variant: "outline" }),
|
|
1216
1216
|
"mt-2 sm:mt-0",
|
|
1217
1217
|
className
|
|
@@ -1229,7 +1229,7 @@ var Avatar = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
1229
1229
|
AvatarPrimitive.Root,
|
|
1230
1230
|
{
|
|
1231
1231
|
ref,
|
|
1232
|
-
className:
|
|
1232
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1233
1233
|
"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
|
|
1234
1234
|
className
|
|
1235
1235
|
),
|
|
@@ -1241,7 +1241,7 @@ var AvatarImage = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1241
1241
|
AvatarPrimitive.Image,
|
|
1242
1242
|
{
|
|
1243
1243
|
ref,
|
|
1244
|
-
className:
|
|
1244
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "aspect-square h-full w-full", className),
|
|
1245
1245
|
...props
|
|
1246
1246
|
}
|
|
1247
1247
|
));
|
|
@@ -1250,7 +1250,7 @@ var AvatarFallback = React5.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1250
1250
|
AvatarPrimitive.Fallback,
|
|
1251
1251
|
{
|
|
1252
1252
|
ref,
|
|
1253
|
-
className:
|
|
1253
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1254
1254
|
"flex h-full w-full items-center justify-center rounded-full bg-muted",
|
|
1255
1255
|
className
|
|
1256
1256
|
),
|
|
@@ -1289,7 +1289,7 @@ var badgeVariants = _classvarianceauthority.cva.call(void 0,
|
|
|
1289
1289
|
}
|
|
1290
1290
|
);
|
|
1291
1291
|
function Badge({ className, variant, ...props }) {
|
|
1292
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1292
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, badgeVariants({ variant }), className), ...props });
|
|
1293
1293
|
}
|
|
1294
1294
|
_chunk7QVYU63Ejs.__name.call(void 0, Badge, "Badge");
|
|
1295
1295
|
|
|
@@ -1304,7 +1304,7 @@ var BreadcrumbList = React6.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1304
1304
|
"ol",
|
|
1305
1305
|
{
|
|
1306
1306
|
ref,
|
|
1307
|
-
className:
|
|
1307
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1308
1308
|
"flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",
|
|
1309
1309
|
className
|
|
1310
1310
|
),
|
|
@@ -1316,7 +1316,7 @@ var BreadcrumbItem = React6.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1316
1316
|
"li",
|
|
1317
1317
|
{
|
|
1318
1318
|
ref,
|
|
1319
|
-
className:
|
|
1319
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "inline-flex items-center gap-1.5", className),
|
|
1320
1320
|
...props
|
|
1321
1321
|
}
|
|
1322
1322
|
));
|
|
@@ -1327,7 +1327,7 @@ var BreadcrumbLink = React6.forwardRef(({ asChild, className, ...props }, ref) =
|
|
|
1327
1327
|
Comp,
|
|
1328
1328
|
{
|
|
1329
1329
|
ref,
|
|
1330
|
-
className:
|
|
1330
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "transition-colors hover:text-foreground", className),
|
|
1331
1331
|
...props
|
|
1332
1332
|
}
|
|
1333
1333
|
);
|
|
@@ -1340,7 +1340,7 @@ var BreadcrumbPage = React6.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1340
1340
|
role: "link",
|
|
1341
1341
|
"aria-disabled": "true",
|
|
1342
1342
|
"aria-current": "page",
|
|
1343
|
-
className:
|
|
1343
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "font-normal text-foreground", className),
|
|
1344
1344
|
...props
|
|
1345
1345
|
}
|
|
1346
1346
|
));
|
|
@@ -1354,7 +1354,7 @@ var BreadcrumbSeparator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
1354
1354
|
{
|
|
1355
1355
|
role: "presentation",
|
|
1356
1356
|
"aria-hidden": "true",
|
|
1357
|
-
className:
|
|
1357
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "[&>svg]:h-3.5 [&>svg]:w-3.5", className),
|
|
1358
1358
|
...props,
|
|
1359
1359
|
children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.ChevronRightIcon, {})))
|
|
1360
1360
|
}
|
|
@@ -1368,7 +1368,7 @@ var BreadcrumbEllipsis = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
1368
1368
|
{
|
|
1369
1369
|
role: "presentation",
|
|
1370
1370
|
"aria-hidden": "true",
|
|
1371
|
-
className:
|
|
1371
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "flex h-9 w-9 items-center justify-center", className),
|
|
1372
1372
|
...props,
|
|
1373
1373
|
children: [
|
|
1374
1374
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.DotsHorizontalIcon, { className: "h-4 w-4" }),
|
|
@@ -1387,55 +1387,55 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
|
1387
1387
|
_reactdaypicker.DayPicker,
|
|
1388
1388
|
{
|
|
1389
1389
|
showOutsideDays,
|
|
1390
|
-
className:
|
|
1390
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "p-3", className),
|
|
1391
1391
|
classNames: {
|
|
1392
1392
|
months: `relative flex ${defaultClassNames.month}`,
|
|
1393
1393
|
month_caption: `relative mx-10 flex h-7 items-center justify-center ${defaultClassNames.month_caption}`,
|
|
1394
|
-
weekdays:
|
|
1395
|
-
weekday:
|
|
1396
|
-
month:
|
|
1397
|
-
caption_label:
|
|
1398
|
-
button_next:
|
|
1394
|
+
weekdays: _chunk3HL4VFJ4js.cn.call(void 0, "flex flex-row", _optionalChain([classNames, 'optionalAccess', _37 => _37.weekdays])),
|
|
1395
|
+
weekday: _chunk3HL4VFJ4js.cn.call(void 0, "w-8 text-sm font-normal text-muted-foreground", _optionalChain([classNames, 'optionalAccess', _38 => _38.weekday])),
|
|
1396
|
+
month: _chunk3HL4VFJ4js.cn.call(void 0, "w-full", _optionalChain([classNames, 'optionalAccess', _39 => _39.month])),
|
|
1397
|
+
caption_label: _chunk3HL4VFJ4js.cn.call(void 0, "truncate text-sm font-medium", _optionalChain([classNames, 'optionalAccess', _40 => _40.caption_label])),
|
|
1398
|
+
button_next: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1399
1399
|
buttonVariants({ variant: "outline" }),
|
|
1400
1400
|
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100 absolute right-1 [&_svg]:fill-foreground",
|
|
1401
1401
|
_optionalChain([classNames, 'optionalAccess', _41 => _41.button_next])
|
|
1402
1402
|
),
|
|
1403
|
-
button_previous:
|
|
1403
|
+
button_previous: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1404
1404
|
buttonVariants({ variant: "outline" }),
|
|
1405
1405
|
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100 absolute left-1 [&_svg]:fill-foreground",
|
|
1406
1406
|
_optionalChain([classNames, 'optionalAccess', _42 => _42.button_previous])
|
|
1407
1407
|
),
|
|
1408
|
-
nav:
|
|
1409
|
-
month_grid:
|
|
1410
|
-
week:
|
|
1411
|
-
day:
|
|
1412
|
-
day_button:
|
|
1408
|
+
nav: _chunk3HL4VFJ4js.cn.call(void 0, "flex items-start", _optionalChain([classNames, 'optionalAccess', _43 => _43.nav])),
|
|
1409
|
+
month_grid: _chunk3HL4VFJ4js.cn.call(void 0, "mx-auto mt-4", _optionalChain([classNames, 'optionalAccess', _44 => _44.month_grid])),
|
|
1410
|
+
week: _chunk3HL4VFJ4js.cn.call(void 0, "mt-2 flex w-max items-start", _optionalChain([classNames, 'optionalAccess', _45 => _45.week])),
|
|
1411
|
+
day: _chunk3HL4VFJ4js.cn.call(void 0, "flex size-8 flex-1 items-center justify-center p-0 text-sm", _optionalChain([classNames, 'optionalAccess', _46 => _46.day])),
|
|
1412
|
+
day_button: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1413
1413
|
"size-8 rounded-md p-0 font-normal transition-none aria-selected:opacity-100",
|
|
1414
1414
|
_optionalChain([classNames, 'optionalAccess', _47 => _47.day_button])
|
|
1415
1415
|
),
|
|
1416
|
-
range_start:
|
|
1416
|
+
range_start: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1417
1417
|
"bg-accent [&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground day-range-start rounded-s-md",
|
|
1418
1418
|
_optionalChain([classNames, 'optionalAccess', _48 => _48.range_start])
|
|
1419
1419
|
),
|
|
1420
|
-
range_middle:
|
|
1420
|
+
range_middle: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1421
1421
|
"bg-accent !text-foreground [&>button]:bg-transparent [&>button]:!text-foreground [&>button]:hover:bg-transparent [&>button]:hover:!text-foreground",
|
|
1422
1422
|
_optionalChain([classNames, 'optionalAccess', _49 => _49.range_middle])
|
|
1423
1423
|
),
|
|
1424
|
-
range_end:
|
|
1424
|
+
range_end: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1425
1425
|
"bg-accent [&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground day-range-end rounded-e-md",
|
|
1426
1426
|
_optionalChain([classNames, 'optionalAccess', _50 => _50.range_end])
|
|
1427
1427
|
),
|
|
1428
|
-
selected:
|
|
1428
|
+
selected: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1429
1429
|
"[&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground",
|
|
1430
1430
|
_optionalChain([classNames, 'optionalAccess', _51 => _51.selected])
|
|
1431
1431
|
),
|
|
1432
|
-
today:
|
|
1433
|
-
outside:
|
|
1432
|
+
today: _chunk3HL4VFJ4js.cn.call(void 0, "[&>button]:bg-accent [&>button]:text-accent-foreground", _optionalChain([classNames, 'optionalAccess', _52 => _52.today])),
|
|
1433
|
+
outside: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1434
1434
|
"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",
|
|
1435
1435
|
_optionalChain([classNames, 'optionalAccess', _53 => _53.outside])
|
|
1436
1436
|
),
|
|
1437
|
-
disabled:
|
|
1438
|
-
hidden:
|
|
1437
|
+
disabled: _chunk3HL4VFJ4js.cn.call(void 0, "text-muted-foreground opacity-50", _optionalChain([classNames, 'optionalAccess', _54 => _54.disabled])),
|
|
1438
|
+
hidden: _chunk3HL4VFJ4js.cn.call(void 0, "invisible flex-1", _optionalChain([classNames, 'optionalAccess', _55 => _55.hidden])),
|
|
1439
1439
|
...classNames
|
|
1440
1440
|
},
|
|
1441
1441
|
...props
|
|
@@ -1448,26 +1448,26 @@ Calendar.displayName = "Calendar";
|
|
|
1448
1448
|
// src/shadcnui/ui/card.tsx
|
|
1449
1449
|
|
|
1450
1450
|
|
|
1451
|
-
var Card = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
1451
|
+
var Card = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3HL4VFJ4js.cn.call(void 0, "rounded-xl border bg-card text-card-foreground shadow", className), ...props }));
|
|
1452
1452
|
Card.displayName = "Card";
|
|
1453
1453
|
var CardHeader = React7.forwardRef(
|
|
1454
|
-
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
1454
|
+
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3HL4VFJ4js.cn.call(void 0, "flex flex-col space-y-1.5 p-6", className), ...props })
|
|
1455
1455
|
);
|
|
1456
1456
|
CardHeader.displayName = "CardHeader";
|
|
1457
1457
|
var CardTitle = React7.forwardRef(
|
|
1458
|
-
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
1458
|
+
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3HL4VFJ4js.cn.call(void 0, "font-semibold leading-none tracking-tight", className), ...props })
|
|
1459
1459
|
);
|
|
1460
1460
|
CardTitle.displayName = "CardTitle";
|
|
1461
1461
|
var CardDescription = React7.forwardRef(
|
|
1462
|
-
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
1462
|
+
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3HL4VFJ4js.cn.call(void 0, "text-sm text-muted-foreground", className), ...props })
|
|
1463
1463
|
);
|
|
1464
1464
|
CardDescription.displayName = "CardDescription";
|
|
1465
1465
|
var CardContent = React7.forwardRef(
|
|
1466
|
-
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
1466
|
+
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3HL4VFJ4js.cn.call(void 0, "p-6 pt-0", className), ...props })
|
|
1467
1467
|
);
|
|
1468
1468
|
CardContent.displayName = "CardContent";
|
|
1469
1469
|
var CardFooter = React7.forwardRef(
|
|
1470
|
-
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
1470
|
+
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3HL4VFJ4js.cn.call(void 0, "flex items-center p-6 pt-0", className), ...props })
|
|
1471
1471
|
);
|
|
1472
1472
|
CardFooter.displayName = "CardFooter";
|
|
1473
1473
|
|
|
@@ -1556,7 +1556,7 @@ var Carousel = React8.forwardRef(
|
|
|
1556
1556
|
{
|
|
1557
1557
|
ref,
|
|
1558
1558
|
onKeyDownCapture: handleKeyDown,
|
|
1559
|
-
className:
|
|
1559
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "relative", className),
|
|
1560
1560
|
role: "region",
|
|
1561
1561
|
"aria-roledescription": "carousel",
|
|
1562
1562
|
...props,
|
|
@@ -1575,7 +1575,7 @@ var CarouselContent = React8.forwardRef(
|
|
|
1575
1575
|
"div",
|
|
1576
1576
|
{
|
|
1577
1577
|
ref,
|
|
1578
|
-
className:
|
|
1578
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className),
|
|
1579
1579
|
...props
|
|
1580
1580
|
}
|
|
1581
1581
|
) });
|
|
@@ -1591,7 +1591,7 @@ var CarouselItem = React8.forwardRef(
|
|
|
1591
1591
|
ref,
|
|
1592
1592
|
role: "group",
|
|
1593
1593
|
"aria-roledescription": "slide",
|
|
1594
|
-
className:
|
|
1594
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "min-w-0 shrink-0 grow-0 basis-full", orientation === "horizontal" ? "pl-4" : "pt-4", className),
|
|
1595
1595
|
...props
|
|
1596
1596
|
}
|
|
1597
1597
|
);
|
|
@@ -1607,7 +1607,7 @@ var CarouselPrevious = React8.forwardRef(
|
|
|
1607
1607
|
ref,
|
|
1608
1608
|
variant,
|
|
1609
1609
|
size,
|
|
1610
|
-
className:
|
|
1610
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1611
1611
|
"absolute h-8 w-8 rounded-full",
|
|
1612
1612
|
orientation === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
1613
1613
|
className
|
|
@@ -1633,7 +1633,7 @@ var CarouselNext = React8.forwardRef(
|
|
|
1633
1633
|
ref,
|
|
1634
1634
|
variant,
|
|
1635
1635
|
size,
|
|
1636
|
-
className:
|
|
1636
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1637
1637
|
"absolute h-8 w-8 rounded-full",
|
|
1638
1638
|
orientation === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
1639
1639
|
className
|
|
@@ -1679,7 +1679,7 @@ function ChartContainer({
|
|
|
1679
1679
|
{
|
|
1680
1680
|
"data-slot": "chart",
|
|
1681
1681
|
"data-chart": chartId,
|
|
1682
|
-
className:
|
|
1682
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1683
1683
|
"[&_.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",
|
|
1684
1684
|
className
|
|
1685
1685
|
),
|
|
@@ -1744,12 +1744,12 @@ function ChartTooltipContent({
|
|
|
1744
1744
|
return typeof v === "string" || typeof v === "number" ? v : void 0;
|
|
1745
1745
|
})();
|
|
1746
1746
|
if (labelFormatter) {
|
|
1747
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1747
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, "font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
1748
1748
|
}
|
|
1749
1749
|
if (!value) {
|
|
1750
1750
|
return null;
|
|
1751
1751
|
}
|
|
1752
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1752
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, "font-medium", labelClassName), children: value });
|
|
1753
1753
|
}, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey]);
|
|
1754
1754
|
if (!active || !_optionalChain([payload, 'optionalAccess', _71 => _71.length])) {
|
|
1755
1755
|
return null;
|
|
@@ -1758,7 +1758,7 @@ function ChartTooltipContent({
|
|
|
1758
1758
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1759
1759
|
"div",
|
|
1760
1760
|
{
|
|
1761
|
-
className:
|
|
1761
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1762
1762
|
"border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",
|
|
1763
1763
|
className
|
|
1764
1764
|
),
|
|
@@ -1771,7 +1771,7 @@ function ChartTooltipContent({
|
|
|
1771
1771
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1772
1772
|
"div",
|
|
1773
1773
|
{
|
|
1774
|
-
className:
|
|
1774
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1775
1775
|
"[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
|
|
1776
1776
|
indicator === "dot" && "items-center"
|
|
1777
1777
|
),
|
|
@@ -1779,7 +1779,7 @@ function ChartTooltipContent({
|
|
|
1779
1779
|
_optionalChain([itemConfig, 'optionalAccess', _73 => _73.icon]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1780
1780
|
"div",
|
|
1781
1781
|
{
|
|
1782
|
-
className:
|
|
1782
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "shrink-0 rounded-[2px] border-[var(--color-border)] bg-[var(--color-bg)]", {
|
|
1783
1783
|
"h-2.5 w-2.5": indicator === "dot",
|
|
1784
1784
|
"w-1": indicator === "line",
|
|
1785
1785
|
"w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
|
|
@@ -1794,7 +1794,7 @@ function ChartTooltipContent({
|
|
|
1794
1794
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1795
1795
|
"div",
|
|
1796
1796
|
{
|
|
1797
|
-
className:
|
|
1797
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "flex flex-1 justify-between leading-none", nestLabel ? "items-end" : "items-center"),
|
|
1798
1798
|
children: [
|
|
1799
1799
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid gap-1.5", children: [
|
|
1800
1800
|
nestLabel ? tooltipLabel : null,
|
|
@@ -1826,13 +1826,13 @@ function ChartLegendContent({
|
|
|
1826
1826
|
if (!_optionalChain([payload, 'optionalAccess', _75 => _75.length])) {
|
|
1827
1827
|
return null;
|
|
1828
1828
|
}
|
|
1829
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1829
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, "flex items-center justify-center gap-4", verticalAlign === "top" ? "pb-3" : "pt-3", className), children: payload.map((item) => {
|
|
1830
1830
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
1831
1831
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1832
1832
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1833
1833
|
"div",
|
|
1834
1834
|
{
|
|
1835
|
-
className:
|
|
1835
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),
|
|
1836
1836
|
children: [
|
|
1837
1837
|
_optionalChain([itemConfig, 'optionalAccess', _76 => _76.icon]) && !hideIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1838
1838
|
"div",
|
|
@@ -1875,7 +1875,7 @@ var Checkbox = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1875
1875
|
CheckboxPrimitive.Root,
|
|
1876
1876
|
{
|
|
1877
1877
|
ref,
|
|
1878
|
-
className:
|
|
1878
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1879
1879
|
"peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
|
|
1880
1880
|
className
|
|
1881
1881
|
),
|
|
@@ -1883,7 +1883,7 @@ var Checkbox = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1883
1883
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1884
1884
|
CheckboxPrimitive.Indicator,
|
|
1885
1885
|
{
|
|
1886
|
-
className:
|
|
1886
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "flex items-center justify-center text-current"),
|
|
1887
1887
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.CheckIcon, { className: "h-4 w-4" })
|
|
1888
1888
|
}
|
|
1889
1889
|
)
|
|
@@ -1915,7 +1915,7 @@ var DialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1915
1915
|
DialogPrimitive.Overlay,
|
|
1916
1916
|
{
|
|
1917
1917
|
ref,
|
|
1918
|
-
className:
|
|
1918
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1919
1919
|
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
1920
1920
|
className
|
|
1921
1921
|
),
|
|
@@ -1929,7 +1929,7 @@ var DialogContent = React11.forwardRef(({ className, children, ...props }, ref)
|
|
|
1929
1929
|
DialogPrimitive.Content,
|
|
1930
1930
|
{
|
|
1931
1931
|
ref,
|
|
1932
|
-
className:
|
|
1932
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1933
1933
|
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
1934
1934
|
className
|
|
1935
1935
|
),
|
|
@@ -1945,20 +1945,20 @@ var DialogContent = React11.forwardRef(({ className, children, ...props }, ref)
|
|
|
1945
1945
|
)
|
|
1946
1946
|
] }));
|
|
1947
1947
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
1948
|
-
var DialogHeader = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1948
|
+
var DialogHeader = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, "flex flex-col space-y-1.5 text-center sm:text-left", className), ...props }), "DialogHeader");
|
|
1949
1949
|
DialogHeader.displayName = "DialogHeader";
|
|
1950
|
-
var DialogFooter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1950
|
+
var DialogFooter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props }), "DialogFooter");
|
|
1951
1951
|
DialogFooter.displayName = "DialogFooter";
|
|
1952
1952
|
var DialogTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1953
1953
|
DialogPrimitive.Title,
|
|
1954
1954
|
{
|
|
1955
1955
|
ref,
|
|
1956
|
-
className:
|
|
1956
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "text-lg font-semibold leading-none tracking-tight", className),
|
|
1957
1957
|
...props
|
|
1958
1958
|
}
|
|
1959
1959
|
));
|
|
1960
1960
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
1961
|
-
var DialogDescription = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogPrimitive.Description, { ref, className:
|
|
1961
|
+
var DialogDescription = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogPrimitive.Description, { ref, className: _chunk3HL4VFJ4js.cn.call(void 0, "text-sm text-muted-foreground", className), ...props }));
|
|
1962
1962
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
1963
1963
|
|
|
1964
1964
|
// src/shadcnui/ui/command.tsx
|
|
@@ -1967,7 +1967,7 @@ var Command = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1967
1967
|
_cmdk.Command,
|
|
1968
1968
|
{
|
|
1969
1969
|
ref,
|
|
1970
|
-
className:
|
|
1970
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1971
1971
|
"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
|
|
1972
1972
|
className
|
|
1973
1973
|
),
|
|
@@ -1984,7 +1984,7 @@ var CommandInput = React12.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1984
1984
|
_cmdk.Command.Input,
|
|
1985
1985
|
{
|
|
1986
1986
|
ref,
|
|
1987
|
-
className:
|
|
1987
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1988
1988
|
"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
1989
1989
|
className
|
|
1990
1990
|
),
|
|
@@ -1997,7 +1997,7 @@ var CommandList = React12.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1997
1997
|
_cmdk.Command.List,
|
|
1998
1998
|
{
|
|
1999
1999
|
ref,
|
|
2000
|
-
className:
|
|
2000
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "max-h-[300px] overflow-y-auto overflow-x-hidden", className),
|
|
2001
2001
|
...props
|
|
2002
2002
|
}
|
|
2003
2003
|
));
|
|
@@ -2015,7 +2015,7 @@ var CommandGroup = React12.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2015
2015
|
_cmdk.Command.Group,
|
|
2016
2016
|
{
|
|
2017
2017
|
ref,
|
|
2018
|
-
className:
|
|
2018
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2019
2019
|
"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
|
|
2020
2020
|
className
|
|
2021
2021
|
),
|
|
@@ -2027,7 +2027,7 @@ var CommandSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2027
2027
|
_cmdk.Command.Separator,
|
|
2028
2028
|
{
|
|
2029
2029
|
ref,
|
|
2030
|
-
className:
|
|
2030
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "-mx-1 h-px bg-border", className),
|
|
2031
2031
|
...props
|
|
2032
2032
|
}
|
|
2033
2033
|
));
|
|
@@ -2036,7 +2036,7 @@ var CommandItem = React12.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2036
2036
|
_cmdk.Command.Item,
|
|
2037
2037
|
{
|
|
2038
2038
|
ref,
|
|
2039
|
-
className:
|
|
2039
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2040
2040
|
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
2041
2041
|
className
|
|
2042
2042
|
),
|
|
@@ -2051,7 +2051,7 @@ var CommandShortcut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
2051
2051
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2052
2052
|
"span",
|
|
2053
2053
|
{
|
|
2054
|
-
className:
|
|
2054
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2055
2055
|
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
2056
2056
|
className
|
|
2057
2057
|
),
|
|
@@ -2076,7 +2076,7 @@ var ContextMenuSubTrigger = React13.forwardRef(({ className, inset, children, ..
|
|
|
2076
2076
|
ContextMenuPrimitive.SubTrigger,
|
|
2077
2077
|
{
|
|
2078
2078
|
ref,
|
|
2079
|
-
className:
|
|
2079
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2080
2080
|
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
|
2081
2081
|
inset && "pl-8",
|
|
2082
2082
|
className
|
|
@@ -2093,7 +2093,7 @@ var ContextMenuSubContent = React13.forwardRef(({ className, ...props }, ref) =>
|
|
|
2093
2093
|
ContextMenuPrimitive.SubContent,
|
|
2094
2094
|
{
|
|
2095
2095
|
ref,
|
|
2096
|
-
className:
|
|
2096
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2097
2097
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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",
|
|
2098
2098
|
className
|
|
2099
2099
|
),
|
|
@@ -2105,7 +2105,7 @@ var ContextMenuContent = React13.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2105
2105
|
ContextMenuPrimitive.Content,
|
|
2106
2106
|
{
|
|
2107
2107
|
ref,
|
|
2108
|
-
className:
|
|
2108
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2109
2109
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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",
|
|
2110
2110
|
className
|
|
2111
2111
|
),
|
|
@@ -2117,7 +2117,7 @@ var ContextMenuItem = React13.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
2117
2117
|
ContextMenuPrimitive.Item,
|
|
2118
2118
|
{
|
|
2119
2119
|
ref,
|
|
2120
|
-
className:
|
|
2120
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2121
2121
|
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
2122
2122
|
inset && "pl-8",
|
|
2123
2123
|
className
|
|
@@ -2130,7 +2130,7 @@ var ContextMenuCheckboxItem = React13.forwardRef(({ className, children, checked
|
|
|
2130
2130
|
ContextMenuPrimitive.CheckboxItem,
|
|
2131
2131
|
{
|
|
2132
2132
|
ref,
|
|
2133
|
-
className:
|
|
2133
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2134
2134
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
2135
2135
|
className
|
|
2136
2136
|
),
|
|
@@ -2147,7 +2147,7 @@ var ContextMenuRadioItem = React13.forwardRef(({ className, children, ...props }
|
|
|
2147
2147
|
ContextMenuPrimitive.RadioItem,
|
|
2148
2148
|
{
|
|
2149
2149
|
ref,
|
|
2150
|
-
className:
|
|
2150
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2151
2151
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
2152
2152
|
className
|
|
2153
2153
|
),
|
|
@@ -2163,15 +2163,15 @@ var ContextMenuLabel = React13.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2163
2163
|
ContextMenuPrimitive.Label,
|
|
2164
2164
|
{
|
|
2165
2165
|
ref,
|
|
2166
|
-
className:
|
|
2166
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "px-2 py-1.5 text-sm font-semibold text-foreground", inset && "pl-8", className),
|
|
2167
2167
|
...props
|
|
2168
2168
|
}
|
|
2169
2169
|
));
|
|
2170
2170
|
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
2171
|
-
var ContextMenuSeparator = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContextMenuPrimitive.Separator, { ref, className:
|
|
2171
|
+
var ContextMenuSeparator = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContextMenuPrimitive.Separator, { ref, className: _chunk3HL4VFJ4js.cn.call(void 0, "-mx-1 my-1 h-px bg-border", className), ...props }));
|
|
2172
2172
|
ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
|
|
2173
2173
|
var ContextMenuShortcut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => {
|
|
2174
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
2174
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HL4VFJ4js.cn.call(void 0, "ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
|
|
2175
2175
|
}, "ContextMenuShortcut");
|
|
2176
2176
|
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
2177
2177
|
|
|
@@ -2184,7 +2184,7 @@ Drawer.displayName = "Drawer";
|
|
|
2184
2184
|
var DrawerTrigger = _vaul.Drawer.Trigger;
|
|
2185
2185
|
var DrawerPortal = _vaul.Drawer.Portal;
|
|
2186
2186
|
var DrawerClose = _vaul.Drawer.Close;
|
|
2187
|
-
var DrawerOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _vaul.Drawer.Overlay, { ref, className:
|
|
2187
|
+
var DrawerOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _vaul.Drawer.Overlay, { ref, className: _chunk3HL4VFJ4js.cn.call(void 0, "fixed inset-0 z-50 bg-black/80", className), ...props }));
|
|
2188
2188
|
DrawerOverlay.displayName = _vaul.Drawer.Overlay.displayName;
|
|
2189
2189
|
var DrawerContent = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DrawerPortal, { children: [
|
|
2190
2190
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DrawerOverlay, {}),
|
|
@@ -2192,7 +2192,7 @@ var DrawerContent = React14.forwardRef(({ className, children, ...props }, ref)
|
|
|
2192
2192
|
_vaul.Drawer.Content,
|
|
2193
2193
|
{
|
|
2194
2194
|
ref,
|
|
2195
|
-
className:
|
|
2195
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2196
2196
|
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
|
|
2197
2197
|
className
|
|
2198
2198
|
),
|
|
@@ -2205,20 +2205,20 @@ var DrawerContent = React14.forwardRef(({ className, children, ...props }, ref)
|
|
|
2205
2205
|
)
|
|
2206
2206
|
] }));
|
|
2207
2207
|
DrawerContent.displayName = "DrawerContent";
|
|
2208
|
-
var DrawerHeader = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2208
|
+
var DrawerHeader = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, "grid gap-1.5 p-4 text-center sm:text-left", className), ...props }), "DrawerHeader");
|
|
2209
2209
|
DrawerHeader.displayName = "DrawerHeader";
|
|
2210
|
-
var DrawerFooter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2210
|
+
var DrawerFooter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, "mt-auto flex flex-col gap-2 p-4", className), ...props }), "DrawerFooter");
|
|
2211
2211
|
DrawerFooter.displayName = "DrawerFooter";
|
|
2212
2212
|
var DrawerTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2213
2213
|
_vaul.Drawer.Title,
|
|
2214
2214
|
{
|
|
2215
2215
|
ref,
|
|
2216
|
-
className:
|
|
2216
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "text-lg font-semibold leading-none tracking-tight", className),
|
|
2217
2217
|
...props
|
|
2218
2218
|
}
|
|
2219
2219
|
));
|
|
2220
2220
|
DrawerTitle.displayName = _vaul.Drawer.Title.displayName;
|
|
2221
|
-
var DrawerDescription = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _vaul.Drawer.Description, { ref, className:
|
|
2221
|
+
var DrawerDescription = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _vaul.Drawer.Description, { ref, className: _chunk3HL4VFJ4js.cn.call(void 0, "text-sm text-muted-foreground", className), ...props }));
|
|
2222
2222
|
DrawerDescription.displayName = _vaul.Drawer.Description.displayName;
|
|
2223
2223
|
|
|
2224
2224
|
// src/shadcnui/ui/dropdown-menu.tsx
|
|
@@ -2240,7 +2240,7 @@ var DropdownMenuSubTrigger = React15.forwardRef(({ className, inset, children, .
|
|
|
2240
2240
|
DropdownMenuPrimitive.SubTrigger,
|
|
2241
2241
|
{
|
|
2242
2242
|
ref,
|
|
2243
|
-
className:
|
|
2243
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2244
2244
|
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
|
|
2245
2245
|
inset && "pl-8",
|
|
2246
2246
|
className
|
|
@@ -2257,7 +2257,7 @@ var DropdownMenuSubContent = React15.forwardRef(({ className, ...props }, ref) =
|
|
|
2257
2257
|
DropdownMenuPrimitive.SubContent,
|
|
2258
2258
|
{
|
|
2259
2259
|
ref,
|
|
2260
|
-
className:
|
|
2260
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2261
2261
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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",
|
|
2262
2262
|
className
|
|
2263
2263
|
),
|
|
@@ -2270,7 +2270,7 @@ var DropdownMenuContent = React15.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
2270
2270
|
{
|
|
2271
2271
|
ref,
|
|
2272
2272
|
sideOffset,
|
|
2273
|
-
className:
|
|
2273
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2274
2274
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
2275
2275
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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",
|
|
2276
2276
|
className
|
|
@@ -2283,7 +2283,7 @@ var DropdownMenuItem = React15.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2283
2283
|
DropdownMenuPrimitive.Item,
|
|
2284
2284
|
{
|
|
2285
2285
|
ref,
|
|
2286
|
-
className:
|
|
2286
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2287
2287
|
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
2288
2288
|
inset && "pl-8",
|
|
2289
2289
|
className
|
|
@@ -2296,7 +2296,7 @@ var DropdownMenuCheckboxItem = React15.forwardRef(({ className, children, checke
|
|
|
2296
2296
|
DropdownMenuPrimitive.CheckboxItem,
|
|
2297
2297
|
{
|
|
2298
2298
|
ref,
|
|
2299
|
-
className:
|
|
2299
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2300
2300
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
2301
2301
|
className
|
|
2302
2302
|
),
|
|
@@ -2313,7 +2313,7 @@ var DropdownMenuRadioItem = React15.forwardRef(({ className, children, ...props
|
|
|
2313
2313
|
DropdownMenuPrimitive.RadioItem,
|
|
2314
2314
|
{
|
|
2315
2315
|
ref,
|
|
2316
|
-
className:
|
|
2316
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2317
2317
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
2318
2318
|
className
|
|
2319
2319
|
),
|
|
@@ -2329,7 +2329,7 @@ var DropdownMenuLabel = React15.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2329
2329
|
DropdownMenuPrimitive.Label,
|
|
2330
2330
|
{
|
|
2331
2331
|
ref,
|
|
2332
|
-
className:
|
|
2332
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2333
2333
|
"px-2 py-1.5 text-sm font-semibold",
|
|
2334
2334
|
inset && "pl-8",
|
|
2335
2335
|
className
|
|
@@ -2342,7 +2342,7 @@ var DropdownMenuSeparator = React15.forwardRef(({ className, ...props }, ref) =>
|
|
|
2342
2342
|
DropdownMenuPrimitive.Separator,
|
|
2343
2343
|
{
|
|
2344
2344
|
ref,
|
|
2345
|
-
className:
|
|
2345
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "-mx-1 my-1 h-px bg-muted", className),
|
|
2346
2346
|
...props
|
|
2347
2347
|
}
|
|
2348
2348
|
));
|
|
@@ -2354,7 +2354,7 @@ var DropdownMenuShortcut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
2354
2354
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2355
2355
|
"span",
|
|
2356
2356
|
{
|
|
2357
|
-
className:
|
|
2357
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "ml-auto text-xs tracking-widest opacity-60", className),
|
|
2358
2358
|
...props
|
|
2359
2359
|
}
|
|
2360
2360
|
);
|
|
@@ -2378,7 +2378,7 @@ var Label3 = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
2378
2378
|
LabelPrimitive.Root,
|
|
2379
2379
|
{
|
|
2380
2380
|
ref,
|
|
2381
|
-
className:
|
|
2381
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, labelVariants(), className),
|
|
2382
2382
|
...props
|
|
2383
2383
|
}
|
|
2384
2384
|
));
|
|
@@ -2415,13 +2415,13 @@ var FormItemContext = React17.createContext({});
|
|
|
2415
2415
|
var FormItem = React17.forwardRef(
|
|
2416
2416
|
({ className, ...props }, ref) => {
|
|
2417
2417
|
const id = React17.useId();
|
|
2418
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
2418
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3HL4VFJ4js.cn.call(void 0, "space-y-2", className), ...props }) });
|
|
2419
2419
|
}
|
|
2420
2420
|
);
|
|
2421
2421
|
FormItem.displayName = "FormItem";
|
|
2422
2422
|
var FormLabel = React17.forwardRef(({ className, ...props }, ref) => {
|
|
2423
2423
|
const { error, formItemId } = useFormField();
|
|
2424
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label3, { ref, className:
|
|
2424
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label3, { ref, className: _chunk3HL4VFJ4js.cn.call(void 0, error && "text-destructive", className), htmlFor: formItemId, ...props });
|
|
2425
2425
|
});
|
|
2426
2426
|
FormLabel.displayName = "FormLabel";
|
|
2427
2427
|
var FormControl = React17.forwardRef(
|
|
@@ -2443,7 +2443,7 @@ FormControl.displayName = "FormControl";
|
|
|
2443
2443
|
var FormDescription = React17.forwardRef(
|
|
2444
2444
|
({ className, ...props }, ref) => {
|
|
2445
2445
|
const { formDescriptionId } = useFormField();
|
|
2446
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { ref, id: formDescriptionId, className:
|
|
2446
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { ref, id: formDescriptionId, className: _chunk3HL4VFJ4js.cn.call(void 0, "text-muted-foreground text-[0.8rem]", className), ...props });
|
|
2447
2447
|
}
|
|
2448
2448
|
);
|
|
2449
2449
|
FormDescription.displayName = "FormDescription";
|
|
@@ -2459,7 +2459,7 @@ var FormMessage = React17.forwardRef(
|
|
|
2459
2459
|
{
|
|
2460
2460
|
ref,
|
|
2461
2461
|
id: formMessageId,
|
|
2462
|
-
className:
|
|
2462
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "text-destructive text-[0.8rem] font-medium", className),
|
|
2463
2463
|
...props,
|
|
2464
2464
|
children: body
|
|
2465
2465
|
}
|
|
@@ -2480,7 +2480,7 @@ var HoverCardContent = React18.forwardRef(({ className, align = "center", sideOf
|
|
|
2480
2480
|
ref,
|
|
2481
2481
|
align,
|
|
2482
2482
|
sideOffset,
|
|
2483
|
-
className:
|
|
2483
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2484
2484
|
"z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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",
|
|
2485
2485
|
className
|
|
2486
2486
|
),
|
|
@@ -2497,7 +2497,7 @@ function Input({ className, type, ...props }) {
|
|
|
2497
2497
|
{
|
|
2498
2498
|
type,
|
|
2499
2499
|
"data-slot": "input",
|
|
2500
|
-
className:
|
|
2500
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2501
2501
|
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
2502
2502
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
2503
2503
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
@@ -2525,7 +2525,7 @@ function NavigationMenu({
|
|
|
2525
2525
|
{
|
|
2526
2526
|
"data-slot": "navigation-menu",
|
|
2527
2527
|
"data-viewport": viewport,
|
|
2528
|
-
className:
|
|
2528
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2529
2529
|
"group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
|
|
2530
2530
|
className
|
|
2531
2531
|
),
|
|
@@ -2546,7 +2546,7 @@ function NavigationMenuList({
|
|
|
2546
2546
|
NavigationMenuPrimitive.List,
|
|
2547
2547
|
{
|
|
2548
2548
|
"data-slot": "navigation-menu-list",
|
|
2549
|
-
className:
|
|
2549
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2550
2550
|
"group flex flex-1 list-none items-center justify-center gap-1",
|
|
2551
2551
|
className
|
|
2552
2552
|
),
|
|
@@ -2563,7 +2563,7 @@ function NavigationMenuItem({
|
|
|
2563
2563
|
NavigationMenuPrimitive.Item,
|
|
2564
2564
|
{
|
|
2565
2565
|
"data-slot": "navigation-menu-item",
|
|
2566
|
-
className:
|
|
2566
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "relative", className),
|
|
2567
2567
|
...props
|
|
2568
2568
|
}
|
|
2569
2569
|
);
|
|
@@ -2581,7 +2581,7 @@ function NavigationMenuTrigger({
|
|
|
2581
2581
|
NavigationMenuPrimitive.Trigger,
|
|
2582
2582
|
{
|
|
2583
2583
|
"data-slot": "navigation-menu-trigger",
|
|
2584
|
-
className:
|
|
2584
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, navigationMenuTriggerStyle(), "group", className),
|
|
2585
2585
|
...props,
|
|
2586
2586
|
children: [
|
|
2587
2587
|
children,
|
|
@@ -2606,7 +2606,7 @@ function NavigationMenuContent({
|
|
|
2606
2606
|
NavigationMenuPrimitive.Content,
|
|
2607
2607
|
{
|
|
2608
2608
|
"data-slot": "navigation-menu-content",
|
|
2609
|
-
className:
|
|
2609
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2610
2610
|
"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 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
|
|
2611
2611
|
"group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
|
|
2612
2612
|
className
|
|
@@ -2623,14 +2623,14 @@ function NavigationMenuViewport({
|
|
|
2623
2623
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2624
2624
|
"div",
|
|
2625
2625
|
{
|
|
2626
|
-
className:
|
|
2626
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2627
2627
|
"absolute top-full left-0 isolate z-50 flex justify-center"
|
|
2628
2628
|
),
|
|
2629
2629
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2630
2630
|
NavigationMenuPrimitive.Viewport,
|
|
2631
2631
|
{
|
|
2632
2632
|
"data-slot": "navigation-menu-viewport",
|
|
2633
|
-
className:
|
|
2633
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2634
2634
|
"origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
2635
2635
|
className
|
|
2636
2636
|
),
|
|
@@ -2649,7 +2649,7 @@ function NavigationMenuLink({
|
|
|
2649
2649
|
NavigationMenuPrimitive.Link,
|
|
2650
2650
|
{
|
|
2651
2651
|
"data-slot": "navigation-menu-link",
|
|
2652
|
-
className:
|
|
2652
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2653
2653
|
"data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
|
|
2654
2654
|
className
|
|
2655
2655
|
),
|
|
@@ -2666,7 +2666,7 @@ function NavigationMenuIndicator({
|
|
|
2666
2666
|
NavigationMenuPrimitive.Indicator,
|
|
2667
2667
|
{
|
|
2668
2668
|
"data-slot": "navigation-menu-indicator",
|
|
2669
|
-
className:
|
|
2669
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2670
2670
|
"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",
|
|
2671
2671
|
className
|
|
2672
2672
|
),
|
|
@@ -2690,7 +2690,7 @@ var PopoverContent = React19.forwardRef(({ className, align = "center", sideOffs
|
|
|
2690
2690
|
ref,
|
|
2691
2691
|
align,
|
|
2692
2692
|
sideOffset,
|
|
2693
|
-
className:
|
|
2693
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2694
2694
|
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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",
|
|
2695
2695
|
className
|
|
2696
2696
|
),
|
|
@@ -2707,7 +2707,7 @@ var Progress = React20.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
2707
2707
|
ProgressPrimitive.Root,
|
|
2708
2708
|
{
|
|
2709
2709
|
ref,
|
|
2710
|
-
className:
|
|
2710
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "relative h-2 w-full overflow-hidden rounded-full bg-primary/20", className),
|
|
2711
2711
|
...props,
|
|
2712
2712
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2713
2713
|
ProgressPrimitive.Indicator,
|
|
@@ -2726,7 +2726,7 @@ var _reactradiogroup = require('@radix-ui/react-radio-group'); var RadioGroupPri
|
|
|
2726
2726
|
|
|
2727
2727
|
|
|
2728
2728
|
var RadioGroup3 = React21.forwardRef(({ className, ...props }, ref) => {
|
|
2729
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioGroupPrimitive.Root, { className:
|
|
2729
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioGroupPrimitive.Root, { className: _chunk3HL4VFJ4js.cn.call(void 0, "grid gap-2", className), ...props, ref });
|
|
2730
2730
|
});
|
|
2731
2731
|
RadioGroup3.displayName = RadioGroupPrimitive.Root.displayName;
|
|
2732
2732
|
var RadioGroupItem = React21.forwardRef(({ className, ...props }, ref) => {
|
|
@@ -2734,7 +2734,7 @@ var RadioGroupItem = React21.forwardRef(({ className, ...props }, ref) => {
|
|
|
2734
2734
|
RadioGroupPrimitive.Item,
|
|
2735
2735
|
{
|
|
2736
2736
|
ref,
|
|
2737
|
-
className:
|
|
2737
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2738
2738
|
"aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
|
|
2739
2739
|
className
|
|
2740
2740
|
),
|
|
@@ -2754,7 +2754,7 @@ function ResizablePanelGroup({ className, ...props }) {
|
|
|
2754
2754
|
ResizablePrimitive.PanelGroup,
|
|
2755
2755
|
{
|
|
2756
2756
|
"data-slot": "resizable-panel-group",
|
|
2757
|
-
className:
|
|
2757
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className),
|
|
2758
2758
|
...props
|
|
2759
2759
|
}
|
|
2760
2760
|
);
|
|
@@ -2773,7 +2773,7 @@ function ResizableHandle({
|
|
|
2773
2773
|
ResizablePrimitive.PanelResizeHandle,
|
|
2774
2774
|
{
|
|
2775
2775
|
"data-slot": "resizable-handle",
|
|
2776
|
-
className:
|
|
2776
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2777
2777
|
"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",
|
|
2778
2778
|
className
|
|
2779
2779
|
),
|
|
@@ -2788,7 +2788,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ResizableHandle, "ResizableHandle");
|
|
|
2788
2788
|
var _reactscrollarea = require('@radix-ui/react-scroll-area'); var ScrollAreaPrimitive = _interopRequireWildcard(_reactscrollarea);
|
|
2789
2789
|
|
|
2790
2790
|
|
|
2791
|
-
var ScrollArea = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, ScrollAreaPrimitive.Root, { ref, className:
|
|
2791
|
+
var ScrollArea = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, ScrollAreaPrimitive.Root, { ref, className: _chunk3HL4VFJ4js.cn.call(void 0, "relative overflow-hidden", className), ...props, children: [
|
|
2792
2792
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
2793
2793
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScrollBar, {}),
|
|
2794
2794
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScrollAreaPrimitive.Corner, {})
|
|
@@ -2799,7 +2799,7 @@ var ScrollBar = React22.forwardRef(({ className, orientation = "vertical", ...pr
|
|
|
2799
2799
|
{
|
|
2800
2800
|
ref,
|
|
2801
2801
|
orientation,
|
|
2802
|
-
className:
|
|
2802
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2803
2803
|
"flex touch-none select-none transition-colors",
|
|
2804
2804
|
orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
|
|
2805
2805
|
orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
|
|
@@ -2828,7 +2828,7 @@ var SelectTrigger = React23.forwardRef(({ className, children, ...props }, ref)
|
|
|
2828
2828
|
SelectPrimitive.Trigger,
|
|
2829
2829
|
{
|
|
2830
2830
|
ref,
|
|
2831
|
-
className:
|
|
2831
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2832
2832
|
"flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
2833
2833
|
className
|
|
2834
2834
|
),
|
|
@@ -2844,7 +2844,7 @@ var SelectScrollUpButton = React23.forwardRef(({ className, ...props }, ref) =>
|
|
|
2844
2844
|
SelectPrimitive.ScrollUpButton,
|
|
2845
2845
|
{
|
|
2846
2846
|
ref,
|
|
2847
|
-
className:
|
|
2847
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2848
2848
|
"flex cursor-default items-center justify-center py-1",
|
|
2849
2849
|
className
|
|
2850
2850
|
),
|
|
@@ -2857,7 +2857,7 @@ var SelectScrollDownButton = React23.forwardRef(({ className, ...props }, ref) =
|
|
|
2857
2857
|
SelectPrimitive.ScrollDownButton,
|
|
2858
2858
|
{
|
|
2859
2859
|
ref,
|
|
2860
|
-
className:
|
|
2860
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2861
2861
|
"flex cursor-default items-center justify-center py-1",
|
|
2862
2862
|
className
|
|
2863
2863
|
),
|
|
@@ -2870,7 +2870,7 @@ var SelectContent = React23.forwardRef(({ className, children, position = "poppe
|
|
|
2870
2870
|
SelectPrimitive.Content,
|
|
2871
2871
|
{
|
|
2872
2872
|
ref,
|
|
2873
|
-
className:
|
|
2873
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2874
2874
|
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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",
|
|
2875
2875
|
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
2876
2876
|
className
|
|
@@ -2882,7 +2882,7 @@ var SelectContent = React23.forwardRef(({ className, children, position = "poppe
|
|
|
2882
2882
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2883
2883
|
SelectPrimitive.Viewport,
|
|
2884
2884
|
{
|
|
2885
|
-
className:
|
|
2885
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2886
2886
|
"p-1",
|
|
2887
2887
|
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
2888
2888
|
),
|
|
@@ -2898,7 +2898,7 @@ var SelectLabel = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2898
2898
|
SelectPrimitive.Label,
|
|
2899
2899
|
{
|
|
2900
2900
|
ref,
|
|
2901
|
-
className:
|
|
2901
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "px-2 py-1.5 text-sm font-semibold", className),
|
|
2902
2902
|
...props
|
|
2903
2903
|
}
|
|
2904
2904
|
));
|
|
@@ -2907,7 +2907,7 @@ var SelectItem = React23.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
2907
2907
|
SelectPrimitive.Item,
|
|
2908
2908
|
{
|
|
2909
2909
|
ref,
|
|
2910
|
-
className:
|
|
2910
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2911
2911
|
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
2912
2912
|
className
|
|
2913
2913
|
),
|
|
@@ -2923,7 +2923,7 @@ var SelectSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
2923
2923
|
SelectPrimitive.Separator,
|
|
2924
2924
|
{
|
|
2925
2925
|
ref,
|
|
2926
|
-
className:
|
|
2926
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "-mx-1 my-1 h-px bg-muted", className),
|
|
2927
2927
|
...props
|
|
2928
2928
|
}
|
|
2929
2929
|
));
|
|
@@ -2944,7 +2944,7 @@ function Separator4({
|
|
|
2944
2944
|
"data-slot": "separator",
|
|
2945
2945
|
decorative,
|
|
2946
2946
|
orientation,
|
|
2947
|
-
className:
|
|
2947
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2948
2948
|
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
2949
2949
|
className
|
|
2950
2950
|
),
|
|
@@ -2988,7 +2988,7 @@ function SheetOverlay({
|
|
|
2988
2988
|
SheetPrimitive.Overlay,
|
|
2989
2989
|
{
|
|
2990
2990
|
"data-slot": "sheet-overlay",
|
|
2991
|
-
className:
|
|
2991
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2992
2992
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
2993
2993
|
className
|
|
2994
2994
|
),
|
|
@@ -3009,7 +3009,7 @@ function SheetContent({
|
|
|
3009
3009
|
SheetPrimitive.Content,
|
|
3010
3010
|
{
|
|
3011
3011
|
"data-slot": "sheet-content",
|
|
3012
|
-
className:
|
|
3012
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3013
3013
|
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
3014
3014
|
side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
|
3015
3015
|
side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
@@ -3035,7 +3035,7 @@ function SheetHeader({ className, ...props }) {
|
|
|
3035
3035
|
"div",
|
|
3036
3036
|
{
|
|
3037
3037
|
"data-slot": "sheet-header",
|
|
3038
|
-
className:
|
|
3038
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "flex flex-col gap-1.5 p-4", className),
|
|
3039
3039
|
...props
|
|
3040
3040
|
}
|
|
3041
3041
|
);
|
|
@@ -3046,7 +3046,7 @@ function SheetFooter({ className, ...props }) {
|
|
|
3046
3046
|
"div",
|
|
3047
3047
|
{
|
|
3048
3048
|
"data-slot": "sheet-footer",
|
|
3049
|
-
className:
|
|
3049
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "mt-auto flex flex-col gap-2 p-4", className),
|
|
3050
3050
|
...props
|
|
3051
3051
|
}
|
|
3052
3052
|
);
|
|
@@ -3060,7 +3060,7 @@ function SheetTitle({
|
|
|
3060
3060
|
SheetPrimitive.Title,
|
|
3061
3061
|
{
|
|
3062
3062
|
"data-slot": "sheet-title",
|
|
3063
|
-
className:
|
|
3063
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "text-foreground font-semibold", className),
|
|
3064
3064
|
...props
|
|
3065
3065
|
}
|
|
3066
3066
|
);
|
|
@@ -3074,7 +3074,7 @@ function SheetDescription({
|
|
|
3074
3074
|
SheetPrimitive.Description,
|
|
3075
3075
|
{
|
|
3076
3076
|
"data-slot": "sheet-description",
|
|
3077
|
-
className:
|
|
3077
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "text-muted-foreground text-sm", className),
|
|
3078
3078
|
...props
|
|
3079
3079
|
}
|
|
3080
3080
|
);
|
|
@@ -3094,7 +3094,7 @@ function Skeleton({ className, ...props }) {
|
|
|
3094
3094
|
"div",
|
|
3095
3095
|
{
|
|
3096
3096
|
"data-slot": "skeleton",
|
|
3097
|
-
className:
|
|
3097
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "bg-accent animate-pulse rounded-md", className),
|
|
3098
3098
|
...props
|
|
3099
3099
|
}
|
|
3100
3100
|
);
|
|
@@ -3141,7 +3141,7 @@ function TooltipContent({
|
|
|
3141
3141
|
{
|
|
3142
3142
|
"data-slot": "tooltip-content",
|
|
3143
3143
|
sideOffset,
|
|
3144
|
-
className:
|
|
3144
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3145
3145
|
"bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
|
|
3146
3146
|
className
|
|
3147
3147
|
),
|
|
@@ -3181,7 +3181,7 @@ function SidebarProvider({
|
|
|
3181
3181
|
children,
|
|
3182
3182
|
...props
|
|
3183
3183
|
}) {
|
|
3184
|
-
const isMobile =
|
|
3184
|
+
const isMobile = _chunk3HL4VFJ4js.useIsMobile.call(void 0, );
|
|
3185
3185
|
const [openMobile, setOpenMobile] = React24.useState(false);
|
|
3186
3186
|
const [_open, _setOpen] = React24.useState(defaultOpen);
|
|
3187
3187
|
const open = _nullishCoalesce(openProp, () => ( _open));
|
|
@@ -3232,7 +3232,7 @@ function SidebarProvider({
|
|
|
3232
3232
|
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
3233
3233
|
...style
|
|
3234
3234
|
},
|
|
3235
|
-
className:
|
|
3235
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", className),
|
|
3236
3236
|
...props,
|
|
3237
3237
|
children
|
|
3238
3238
|
}
|
|
@@ -3253,7 +3253,7 @@ function Sidebar({
|
|
|
3253
3253
|
"div",
|
|
3254
3254
|
{
|
|
3255
3255
|
"data-slot": "sidebar",
|
|
3256
|
-
className:
|
|
3256
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", className),
|
|
3257
3257
|
...props,
|
|
3258
3258
|
children
|
|
3259
3259
|
}
|
|
@@ -3295,7 +3295,7 @@ function Sidebar({
|
|
|
3295
3295
|
"div",
|
|
3296
3296
|
{
|
|
3297
3297
|
"data-slot": "sidebar-gap",
|
|
3298
|
-
className:
|
|
3298
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3299
3299
|
"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
|
|
3300
3300
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
3301
3301
|
"group-data-[side=right]:rotate-180",
|
|
@@ -3307,7 +3307,7 @@ function Sidebar({
|
|
|
3307
3307
|
"div",
|
|
3308
3308
|
{
|
|
3309
3309
|
"data-slot": "sidebar-container",
|
|
3310
|
-
className:
|
|
3310
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3311
3311
|
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
3312
3312
|
side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
|
3313
3313
|
// Adjust the padding for floating and inset variants.
|
|
@@ -3340,7 +3340,7 @@ function SidebarTrigger({ className, onClick, ...props }) {
|
|
|
3340
3340
|
"data-slot": "sidebar-trigger",
|
|
3341
3341
|
variant: "ghost",
|
|
3342
3342
|
size: "icon",
|
|
3343
|
-
className:
|
|
3343
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "size-7", className),
|
|
3344
3344
|
onClick: (event) => {
|
|
3345
3345
|
_optionalChain([onClick, 'optionalCall', _79 => _79(event)]);
|
|
3346
3346
|
toggleSidebar();
|
|
@@ -3365,7 +3365,7 @@ function SidebarRail({ className, ...props }) {
|
|
|
3365
3365
|
tabIndex: -1,
|
|
3366
3366
|
onClick: toggleSidebar,
|
|
3367
3367
|
title: "Toggle Sidebar",
|
|
3368
|
-
className:
|
|
3368
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3369
3369
|
"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",
|
|
3370
3370
|
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
3371
3371
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
@@ -3384,7 +3384,7 @@ function SidebarInset({ className, ...props }) {
|
|
|
3384
3384
|
"main",
|
|
3385
3385
|
{
|
|
3386
3386
|
"data-slot": "sidebar-inset",
|
|
3387
|
-
className:
|
|
3387
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3388
3388
|
"bg-background relative flex w-full flex-1 flex-col",
|
|
3389
3389
|
"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",
|
|
3390
3390
|
className
|
|
@@ -3400,7 +3400,7 @@ function SidebarInput({ className, ...props }) {
|
|
|
3400
3400
|
{
|
|
3401
3401
|
"data-slot": "sidebar-input",
|
|
3402
3402
|
"data-sidebar": "input",
|
|
3403
|
-
className:
|
|
3403
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "bg-background h-8 w-full shadow-none", className),
|
|
3404
3404
|
...props
|
|
3405
3405
|
}
|
|
3406
3406
|
);
|
|
@@ -3412,7 +3412,7 @@ function SidebarHeader({ className, ...props }) {
|
|
|
3412
3412
|
{
|
|
3413
3413
|
"data-slot": "sidebar-header",
|
|
3414
3414
|
"data-sidebar": "header",
|
|
3415
|
-
className:
|
|
3415
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "flex flex-col gap-2 p-2", className),
|
|
3416
3416
|
...props
|
|
3417
3417
|
}
|
|
3418
3418
|
);
|
|
@@ -3424,7 +3424,7 @@ function SidebarFooter({ className, ...props }) {
|
|
|
3424
3424
|
{
|
|
3425
3425
|
"data-slot": "sidebar-footer",
|
|
3426
3426
|
"data-sidebar": "footer",
|
|
3427
|
-
className:
|
|
3427
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "flex flex-col gap-2 p-2", className),
|
|
3428
3428
|
...props
|
|
3429
3429
|
}
|
|
3430
3430
|
);
|
|
@@ -3436,7 +3436,7 @@ function SidebarSeparator({ className, ...props }) {
|
|
|
3436
3436
|
{
|
|
3437
3437
|
"data-slot": "sidebar-separator",
|
|
3438
3438
|
"data-sidebar": "separator",
|
|
3439
|
-
className:
|
|
3439
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "bg-sidebar-border mx-2 w-auto", className),
|
|
3440
3440
|
...props
|
|
3441
3441
|
}
|
|
3442
3442
|
);
|
|
@@ -3448,7 +3448,7 @@ function SidebarContent({ className, ...props }) {
|
|
|
3448
3448
|
{
|
|
3449
3449
|
"data-slot": "sidebar-content",
|
|
3450
3450
|
"data-sidebar": "content",
|
|
3451
|
-
className:
|
|
3451
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3452
3452
|
"flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
3453
3453
|
className
|
|
3454
3454
|
),
|
|
@@ -3463,7 +3463,7 @@ function SidebarGroup({ className, ...props }) {
|
|
|
3463
3463
|
{
|
|
3464
3464
|
"data-slot": "sidebar-group",
|
|
3465
3465
|
"data-sidebar": "group",
|
|
3466
|
-
className:
|
|
3466
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "relative flex w-full min-w-0 flex-col p-2", className),
|
|
3467
3467
|
...props
|
|
3468
3468
|
}
|
|
3469
3469
|
);
|
|
@@ -3480,7 +3480,7 @@ function SidebarGroupLabel({
|
|
|
3480
3480
|
{
|
|
3481
3481
|
"data-slot": "sidebar-group-label",
|
|
3482
3482
|
"data-sidebar": "group-label",
|
|
3483
|
-
className:
|
|
3483
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3484
3484
|
"text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
3485
3485
|
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
3486
3486
|
className
|
|
@@ -3501,7 +3501,7 @@ function SidebarGroupAction({
|
|
|
3501
3501
|
{
|
|
3502
3502
|
"data-slot": "sidebar-group-action",
|
|
3503
3503
|
"data-sidebar": "group-action",
|
|
3504
|
-
className:
|
|
3504
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3505
3505
|
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
3506
3506
|
// Increases the hit area of the button on mobile.
|
|
3507
3507
|
"after:absolute after:-inset-2 md:after:hidden",
|
|
@@ -3519,7 +3519,7 @@ function SidebarGroupContent({ className, ...props }) {
|
|
|
3519
3519
|
{
|
|
3520
3520
|
"data-slot": "sidebar-group-content",
|
|
3521
3521
|
"data-sidebar": "group-content",
|
|
3522
|
-
className:
|
|
3522
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "w-full text-sm", className),
|
|
3523
3523
|
...props
|
|
3524
3524
|
}
|
|
3525
3525
|
);
|
|
@@ -3531,7 +3531,7 @@ function SidebarMenu({ className, ...props }) {
|
|
|
3531
3531
|
{
|
|
3532
3532
|
"data-slot": "sidebar-menu",
|
|
3533
3533
|
"data-sidebar": "menu",
|
|
3534
|
-
className:
|
|
3534
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "flex w-full min-w-0 flex-col gap-1", className),
|
|
3535
3535
|
...props
|
|
3536
3536
|
}
|
|
3537
3537
|
);
|
|
@@ -3543,7 +3543,7 @@ function SidebarMenuItem({ className, ...props }) {
|
|
|
3543
3543
|
{
|
|
3544
3544
|
"data-slot": "sidebar-menu-item",
|
|
3545
3545
|
"data-sidebar": "menu-item",
|
|
3546
|
-
className:
|
|
3546
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "group/menu-item relative", className),
|
|
3547
3547
|
...props
|
|
3548
3548
|
}
|
|
3549
3549
|
);
|
|
@@ -3587,7 +3587,7 @@ function SidebarMenuButton({
|
|
|
3587
3587
|
"data-sidebar": "menu-button",
|
|
3588
3588
|
"data-size": size,
|
|
3589
3589
|
"data-active": isActive,
|
|
3590
|
-
className:
|
|
3590
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, sidebarMenuButtonVariants({ variant, size }), className),
|
|
3591
3591
|
...props
|
|
3592
3592
|
}
|
|
3593
3593
|
);
|
|
@@ -3617,7 +3617,7 @@ function SidebarMenuAction({
|
|
|
3617
3617
|
{
|
|
3618
3618
|
"data-slot": "sidebar-menu-action",
|
|
3619
3619
|
"data-sidebar": "menu-action",
|
|
3620
|
-
className:
|
|
3620
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3621
3621
|
"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 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
3622
3622
|
// Increases the hit area of the button on mobile.
|
|
3623
3623
|
"after:absolute after:-inset-2 md:after:hidden",
|
|
@@ -3639,7 +3639,7 @@ function SidebarMenuBadge({ className, ...props }) {
|
|
|
3639
3639
|
{
|
|
3640
3640
|
"data-slot": "sidebar-menu-badge",
|
|
3641
3641
|
"data-sidebar": "menu-badge",
|
|
3642
|
-
className:
|
|
3642
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3643
3643
|
"text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none",
|
|
3644
3644
|
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
|
|
3645
3645
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
@@ -3666,7 +3666,7 @@ function SidebarMenuSkeleton({
|
|
|
3666
3666
|
{
|
|
3667
3667
|
"data-slot": "sidebar-menu-skeleton",
|
|
3668
3668
|
"data-sidebar": "menu-skeleton",
|
|
3669
|
-
className:
|
|
3669
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
3670
3670
|
...props,
|
|
3671
3671
|
children: [
|
|
3672
3672
|
showIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" }),
|
|
@@ -3691,7 +3691,7 @@ function SidebarMenuSub({ className, ...props }) {
|
|
|
3691
3691
|
{
|
|
3692
3692
|
"data-slot": "sidebar-menu-sub",
|
|
3693
3693
|
"data-sidebar": "menu-sub",
|
|
3694
|
-
className:
|
|
3694
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3695
3695
|
"border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5",
|
|
3696
3696
|
"group-data-[collapsible=icon]:hidden",
|
|
3697
3697
|
className
|
|
@@ -3707,7 +3707,7 @@ function SidebarMenuSubItem({ className, ...props }) {
|
|
|
3707
3707
|
{
|
|
3708
3708
|
"data-slot": "sidebar-menu-sub-item",
|
|
3709
3709
|
"data-sidebar": "menu-sub-item",
|
|
3710
|
-
className:
|
|
3710
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "group/menu-sub-item relative", className),
|
|
3711
3711
|
...props
|
|
3712
3712
|
}
|
|
3713
3713
|
);
|
|
@@ -3728,7 +3728,7 @@ function SidebarMenuSubButton({
|
|
|
3728
3728
|
"data-sidebar": "menu-sub-button",
|
|
3729
3729
|
"data-size": size,
|
|
3730
3730
|
"data-active": isActive,
|
|
3731
|
-
className:
|
|
3731
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3732
3732
|
"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 flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
3733
3733
|
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
|
3734
3734
|
size === "sm" && "text-xs",
|
|
@@ -3750,7 +3750,7 @@ var Slider = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
3750
3750
|
SliderPrimitive.Root,
|
|
3751
3751
|
{
|
|
3752
3752
|
ref,
|
|
3753
|
-
className:
|
|
3753
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "relative flex w-full touch-none select-none items-center", className),
|
|
3754
3754
|
...props,
|
|
3755
3755
|
children: [
|
|
3756
3756
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
|
|
@@ -3788,7 +3788,7 @@ var _reactswitch = require('@radix-ui/react-switch'); var SwitchPrimitives = _in
|
|
|
3788
3788
|
var Switch = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3789
3789
|
SwitchPrimitives.Root,
|
|
3790
3790
|
{
|
|
3791
|
-
className:
|
|
3791
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3792
3792
|
"bg-accent focus-visible:ring-ring focus-visible:ring-offset-background data-[state=checked]:bg-primary data-[state=unchecked]:bg-accent peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
3793
3793
|
className
|
|
3794
3794
|
),
|
|
@@ -3797,7 +3797,7 @@ var Switch = React26.forwardRef(({ className, children, ...props }, ref) => /* @
|
|
|
3797
3797
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3798
3798
|
SwitchPrimitives.Thumb,
|
|
3799
3799
|
{
|
|
3800
|
-
className:
|
|
3800
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3801
3801
|
"text-title pointer-events-none block flex h-5 w-5 items-center justify-center rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
|
|
3802
3802
|
),
|
|
3803
3803
|
children
|
|
@@ -3814,18 +3814,18 @@ var Table = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
3814
3814
|
"table",
|
|
3815
3815
|
{
|
|
3816
3816
|
ref,
|
|
3817
|
-
className:
|
|
3817
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "w-full caption-bottom text-sm", className),
|
|
3818
3818
|
...props
|
|
3819
3819
|
}
|
|
3820
3820
|
) }));
|
|
3821
3821
|
Table.displayName = "Table";
|
|
3822
|
-
var TableHeader = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { ref, className:
|
|
3822
|
+
var TableHeader = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { ref, className: _chunk3HL4VFJ4js.cn.call(void 0, "[&_tr]:border-b", className), ...props }));
|
|
3823
3823
|
TableHeader.displayName = "TableHeader";
|
|
3824
3824
|
var TableBody = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3825
3825
|
"tbody",
|
|
3826
3826
|
{
|
|
3827
3827
|
ref,
|
|
3828
|
-
className:
|
|
3828
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "[&_tr:last-child]:border-0", className),
|
|
3829
3829
|
...props
|
|
3830
3830
|
}
|
|
3831
3831
|
));
|
|
@@ -3834,7 +3834,7 @@ var TableFooter = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3834
3834
|
"tfoot",
|
|
3835
3835
|
{
|
|
3836
3836
|
ref,
|
|
3837
|
-
className:
|
|
3837
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3838
3838
|
"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
|
|
3839
3839
|
className
|
|
3840
3840
|
),
|
|
@@ -3846,7 +3846,7 @@ var TableRow = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
3846
3846
|
"tr",
|
|
3847
3847
|
{
|
|
3848
3848
|
ref,
|
|
3849
|
-
className:
|
|
3849
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3850
3850
|
"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
|
|
3851
3851
|
className
|
|
3852
3852
|
),
|
|
@@ -3858,7 +3858,7 @@ var TableHead = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
3858
3858
|
"th",
|
|
3859
3859
|
{
|
|
3860
3860
|
ref,
|
|
3861
|
-
className:
|
|
3861
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3862
3862
|
"h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
3863
3863
|
className
|
|
3864
3864
|
),
|
|
@@ -3870,7 +3870,7 @@ var TableCell = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
3870
3870
|
"td",
|
|
3871
3871
|
{
|
|
3872
3872
|
ref,
|
|
3873
|
-
className:
|
|
3873
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3874
3874
|
"p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
3875
3875
|
className
|
|
3876
3876
|
),
|
|
@@ -3882,7 +3882,7 @@ var TableCaption = React27.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3882
3882
|
"caption",
|
|
3883
3883
|
{
|
|
3884
3884
|
ref,
|
|
3885
|
-
className:
|
|
3885
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "mt-4 text-sm text-muted-foreground", className),
|
|
3886
3886
|
...props
|
|
3887
3887
|
}
|
|
3888
3888
|
));
|
|
@@ -3897,7 +3897,7 @@ var TabsList = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
3897
3897
|
TabsPrimitive.List,
|
|
3898
3898
|
{
|
|
3899
3899
|
ref,
|
|
3900
|
-
className:
|
|
3900
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3901
3901
|
"inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
|
|
3902
3902
|
className
|
|
3903
3903
|
),
|
|
@@ -3909,7 +3909,7 @@ var TabsTrigger = React28.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3909
3909
|
TabsPrimitive.Trigger,
|
|
3910
3910
|
{
|
|
3911
3911
|
ref,
|
|
3912
|
-
className:
|
|
3912
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3913
3913
|
"inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
|
|
3914
3914
|
className
|
|
3915
3915
|
),
|
|
@@ -3921,7 +3921,7 @@ var TabsContent = React28.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3921
3921
|
TabsPrimitive.Content,
|
|
3922
3922
|
{
|
|
3923
3923
|
ref,
|
|
3924
|
-
className:
|
|
3924
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3925
3925
|
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
3926
3926
|
className
|
|
3927
3927
|
),
|
|
@@ -3938,7 +3938,7 @@ var Textarea = React29.forwardRef(
|
|
|
3938
3938
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3939
3939
|
"textarea",
|
|
3940
3940
|
{
|
|
3941
|
-
className:
|
|
3941
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3942
3942
|
"flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
|
|
3943
3943
|
className
|
|
3944
3944
|
),
|
|
@@ -3975,7 +3975,7 @@ var toggleVariants = _classvarianceauthority.cva.call(void 0,
|
|
|
3975
3975
|
}
|
|
3976
3976
|
}
|
|
3977
3977
|
);
|
|
3978
|
-
var Toggle = React30.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TogglePrimitive.Root, { ref, className:
|
|
3978
|
+
var Toggle = React30.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TogglePrimitive.Root, { ref, className: _chunk3HL4VFJ4js.cn.call(void 0, toggleVariants({ variant, size, className })), ...props }));
|
|
3979
3979
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
3980
3980
|
|
|
3981
3981
|
// src/shadcnui/custom/kanban.tsx
|
|
@@ -4440,7 +4440,7 @@ var KanbanBoard = React31.forwardRef((props, forwardedRef) => {
|
|
|
4440
4440
|
"data-slot": "kanban-board",
|
|
4441
4441
|
...boardProps,
|
|
4442
4442
|
ref: forwardedRef,
|
|
4443
|
-
className:
|
|
4443
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
4444
4444
|
"flex size-full gap-4",
|
|
4445
4445
|
context.orientation === "horizontal" ? "flex-row" : "flex-col",
|
|
4446
4446
|
className
|
|
@@ -4479,7 +4479,7 @@ var KanbanColumn = React31.forwardRef((props, forwardedRef) => {
|
|
|
4479
4479
|
disabled,
|
|
4480
4480
|
animateLayoutChanges
|
|
4481
4481
|
});
|
|
4482
|
-
const composedRef =
|
|
4482
|
+
const composedRef = _chunk3HL4VFJ4js.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
4483
4483
|
if (disabled) return;
|
|
4484
4484
|
setNodeRef(node);
|
|
4485
4485
|
});
|
|
@@ -4523,7 +4523,7 @@ var KanbanColumn = React31.forwardRef((props, forwardedRef) => {
|
|
|
4523
4523
|
...asHandle && !disabled ? listeners : {},
|
|
4524
4524
|
ref: composedRef,
|
|
4525
4525
|
style: composedStyle,
|
|
4526
|
-
className:
|
|
4526
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
4527
4527
|
"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",
|
|
4528
4528
|
{
|
|
4529
4529
|
"touch-none select-none": asHandle,
|
|
@@ -4546,7 +4546,7 @@ var KanbanColumnHandle = React31.forwardRef((props, forwardedRef) => {
|
|
|
4546
4546
|
const context = useKanbanContext(COLUMN_NAME);
|
|
4547
4547
|
const columnContext = useKanbanColumnContext(COLUMN_HANDLE_NAME);
|
|
4548
4548
|
const isDisabled = _nullishCoalesce(disabled, () => ( columnContext.disabled));
|
|
4549
|
-
const composedRef =
|
|
4549
|
+
const composedRef = _chunk3HL4VFJ4js.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
4550
4550
|
if (isDisabled) return;
|
|
4551
4551
|
columnContext.setActivatorNodeRef(node);
|
|
4552
4552
|
});
|
|
@@ -4563,7 +4563,7 @@ var KanbanColumnHandle = React31.forwardRef((props, forwardedRef) => {
|
|
|
4563
4563
|
...isDisabled ? {} : columnContext.attributes,
|
|
4564
4564
|
...isDisabled ? {} : columnContext.listeners,
|
|
4565
4565
|
ref: composedRef,
|
|
4566
|
-
className:
|
|
4566
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
4567
4567
|
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
4568
4568
|
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
4569
4569
|
className
|
|
@@ -4599,7 +4599,7 @@ var KanbanItem = React31.forwardRef((props, forwardedRef) => {
|
|
|
4599
4599
|
if (value === "") {
|
|
4600
4600
|
throw new Error(`\`${ITEM_NAME}\` value cannot be an empty string`);
|
|
4601
4601
|
}
|
|
4602
|
-
const composedRef =
|
|
4602
|
+
const composedRef = _chunk3HL4VFJ4js.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
4603
4603
|
if (disabled) return;
|
|
4604
4604
|
setNodeRef(node);
|
|
4605
4605
|
});
|
|
@@ -4634,7 +4634,7 @@ var KanbanItem = React31.forwardRef((props, forwardedRef) => {
|
|
|
4634
4634
|
...asHandle && !disabled ? listeners : {},
|
|
4635
4635
|
ref: composedRef,
|
|
4636
4636
|
style: composedStyle,
|
|
4637
|
-
className:
|
|
4637
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
4638
4638
|
"focus-visible:ring-ring focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden",
|
|
4639
4639
|
{
|
|
4640
4640
|
"touch-none select-none": asHandle,
|
|
@@ -4655,7 +4655,7 @@ var KanbanItemHandle = React31.forwardRef((props, forwardedRef) => {
|
|
|
4655
4655
|
const context = useKanbanContext(ITEM_HANDLE_NAME);
|
|
4656
4656
|
const itemContext = useKanbanItemContext(ITEM_HANDLE_NAME);
|
|
4657
4657
|
const isDisabled = _nullishCoalesce(disabled, () => ( itemContext.disabled));
|
|
4658
|
-
const composedRef =
|
|
4658
|
+
const composedRef = _chunk3HL4VFJ4js.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
4659
4659
|
if (isDisabled) return;
|
|
4660
4660
|
itemContext.setActivatorNodeRef(node);
|
|
4661
4661
|
});
|
|
@@ -4672,7 +4672,7 @@ var KanbanItemHandle = React31.forwardRef((props, forwardedRef) => {
|
|
|
4672
4672
|
...isDisabled ? {} : itemContext.attributes,
|
|
4673
4673
|
...isDisabled ? {} : itemContext.listeners,
|
|
4674
4674
|
ref: composedRef,
|
|
4675
|
-
className:
|
|
4675
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
4676
4676
|
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
4677
4677
|
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
4678
4678
|
className
|
|
@@ -4707,7 +4707,7 @@ function KanbanOverlay(props) {
|
|
|
4707
4707
|
{
|
|
4708
4708
|
dropAnimation,
|
|
4709
4709
|
modifiers: context.modifiers,
|
|
4710
|
-
className:
|
|
4710
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, !context.flatCursor && "cursor-grabbing"),
|
|
4711
4711
|
...overlayProps,
|
|
4712
4712
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, KanbanOverlayContext.Provider, { value: true, children: context.activeId && children ? typeof children === "function" ? children({
|
|
4713
4713
|
value: context.activeId,
|
|
@@ -4725,7 +4725,7 @@ var _link = require('next/link'); var _link2 = _interopRequireDefault(_link);
|
|
|
4725
4725
|
|
|
4726
4726
|
|
|
4727
4727
|
var Link2 = React32.forwardRef(({ className, ...props }, ref) => {
|
|
4728
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { ref, className:
|
|
4728
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { ref, className: _chunk3HL4VFJ4js.cn.call(void 0, `font-medium`, className), ...props });
|
|
4729
4729
|
});
|
|
4730
4730
|
Link2.displayName = "Link";
|
|
4731
4731
|
|
|
@@ -4824,7 +4824,7 @@ var MultiSelect = React33.forwardRef(
|
|
|
4824
4824
|
ref,
|
|
4825
4825
|
...props,
|
|
4826
4826
|
onClick: handleTogglePopover,
|
|
4827
|
-
className:
|
|
4827
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
4828
4828
|
"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",
|
|
4829
4829
|
className
|
|
4830
4830
|
),
|
|
@@ -4836,7 +4836,7 @@ var MultiSelect = React33.forwardRef(
|
|
|
4836
4836
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4837
4837
|
Badge,
|
|
4838
4838
|
{
|
|
4839
|
-
className:
|
|
4839
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, isAnimating ? "animate-bounce" : "", multiSelectVariants({ variant })),
|
|
4840
4840
|
style: { animationDuration: `${animation}s` },
|
|
4841
4841
|
children: [
|
|
4842
4842
|
IconComponent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: "mr-2 h-4 w-4" }),
|
|
@@ -4859,7 +4859,7 @@ var MultiSelect = React33.forwardRef(
|
|
|
4859
4859
|
selectedValues.length > maxCount && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4860
4860
|
Badge,
|
|
4861
4861
|
{
|
|
4862
|
-
className:
|
|
4862
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
4863
4863
|
"text-foreground border-foreground/1 bg-transparent hover:bg-transparent",
|
|
4864
4864
|
isAnimating ? "animate-bounce" : "",
|
|
4865
4865
|
multiSelectVariants({ variant })
|
|
@@ -4918,7 +4918,7 @@ var MultiSelect = React33.forwardRef(
|
|
|
4918
4918
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4919
4919
|
"div",
|
|
4920
4920
|
{
|
|
4921
|
-
className:
|
|
4921
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
4922
4922
|
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
4923
4923
|
selectedValues.length === options.length ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
4924
4924
|
),
|
|
@@ -4938,7 +4938,7 @@ var MultiSelect = React33.forwardRef(
|
|
|
4938
4938
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4939
4939
|
"div",
|
|
4940
4940
|
{
|
|
4941
|
-
className:
|
|
4941
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
4942
4942
|
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
4943
4943
|
isSelected ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
4944
4944
|
),
|
|
@@ -4973,7 +4973,7 @@ var MultiSelect = React33.forwardRef(
|
|
|
4973
4973
|
animation > 0 && selectedValues.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4974
4974
|
_lucidereact.WandSparkles,
|
|
4975
4975
|
{
|
|
4976
|
-
className:
|
|
4976
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
4977
4977
|
"text-foreground bg-background my-2 h-3 w-3 cursor-pointer",
|
|
4978
4978
|
isAnimating ? "" : "text-muted-foreground"
|
|
4979
4979
|
),
|
|
@@ -5061,8 +5061,8 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
5061
5061
|
CommonDeleter,
|
|
5062
5062
|
{
|
|
5063
5063
|
type: `users`,
|
|
5064
|
-
deleteFunction: () =>
|
|
5065
|
-
() => onDeleted ? onDeleted() : router.push(generateUrl({ page:
|
|
5064
|
+
deleteFunction: () => _chunk3HL4VFJ4js.UserService.delete({ userId: user.id, companyId: cId }).then(
|
|
5065
|
+
() => onDeleted ? onDeleted() : router.push(generateUrl({ page: _chunk3HL4VFJ4js.Modules.User }))
|
|
5066
5066
|
)
|
|
5067
5067
|
}
|
|
5068
5068
|
);
|
|
@@ -5070,7 +5070,7 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
5070
5070
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleterInternal, "UserDeleterInternal");
|
|
5071
5071
|
function UserDeleter(props) {
|
|
5072
5072
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
5073
|
-
if (!hasPermissionToModule({ module:
|
|
5073
|
+
if (!hasPermissionToModule({ module: _chunk3HL4VFJ4js.Modules.User, action: "delete" /* Delete */, data: props.user })) return null;
|
|
5074
5074
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserDeleterInternal, { ...props });
|
|
5075
5075
|
}
|
|
5076
5076
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleter, "UserDeleter");
|
|
@@ -5134,7 +5134,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
5134
5134
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
5135
5135
|
if (!user) {
|
|
5136
5136
|
try {
|
|
5137
|
-
const existingUser = await
|
|
5137
|
+
const existingUser = await _chunk3HL4VFJ4js.UserService.findByEmail({ email: values.email });
|
|
5138
5138
|
if (existingUser) {
|
|
5139
5139
|
form.setError("email", {
|
|
5140
5140
|
type: "manual",
|
|
@@ -5147,7 +5147,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
5147
5147
|
}
|
|
5148
5148
|
}
|
|
5149
5149
|
if (values.avatar && contentType) {
|
|
5150
|
-
const s3 = await
|
|
5150
|
+
const s3 = await _chunk3HL4VFJ4js.S3Service.getPreSignedUrl({
|
|
5151
5151
|
key: values.avatar,
|
|
5152
5152
|
contentType,
|
|
5153
5153
|
isPublic: true
|
|
@@ -5173,16 +5173,16 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
5173
5173
|
adminCreated
|
|
5174
5174
|
};
|
|
5175
5175
|
try {
|
|
5176
|
-
const updatedUser = user ? await
|
|
5176
|
+
const updatedUser = user ? await _chunk3HL4VFJ4js.UserService.update(payload) : await _chunk3HL4VFJ4js.UserService.create(payload);
|
|
5177
5177
|
if (_optionalChain([currentUser, 'optionalAccess', _132 => _132.id]) === updatedUser.id) setUser(updatedUser);
|
|
5178
5178
|
if (onRevalidate) {
|
|
5179
|
-
await onRevalidate(generateUrl({ page:
|
|
5179
|
+
await onRevalidate(generateUrl({ page: _chunk3HL4VFJ4js.Modules.User, id: updatedUser.id, language: `[locale]` }));
|
|
5180
5180
|
}
|
|
5181
5181
|
if (propagateChanges) {
|
|
5182
5182
|
propagateChanges(updatedUser);
|
|
5183
5183
|
setOpen(false);
|
|
5184
5184
|
} else {
|
|
5185
|
-
router.push(generateUrl({ page:
|
|
5185
|
+
router.push(generateUrl({ page: _chunk3HL4VFJ4js.Modules.User, id: updatedUser.id }));
|
|
5186
5186
|
}
|
|
5187
5187
|
} catch (error) {
|
|
5188
5188
|
errorToast({ title: user ? t(`generic.errors.update`) : t(`generic.errors.create`), error });
|
|
@@ -5190,7 +5190,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
5190
5190
|
}, "onSubmit");
|
|
5191
5191
|
_react.useEffect.call(void 0, () => {
|
|
5192
5192
|
async function fetchRoles() {
|
|
5193
|
-
const roles2 = await
|
|
5193
|
+
const roles2 = await _chunk3HL4VFJ4js.RoleService.findAllRoles({});
|
|
5194
5194
|
const availableRoles = roles2.filter(
|
|
5195
5195
|
(role) => role.id !== _chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _133 => _133.features, 'access', _134 => _134.some, 'call', _135 => _135((feature) => feature.id === _optionalChain([role, 'access', _136 => _136.requiredFeature, 'optionalAccess', _137 => _137.id]))]))
|
|
5196
5196
|
);
|
|
@@ -5218,7 +5218,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
5218
5218
|
setContentType(null);
|
|
5219
5219
|
}
|
|
5220
5220
|
}, [file]);
|
|
5221
|
-
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _141 => _141.id]) === _optionalChain([user, 'optionalAccess', _142 => _142.id]) && hasRole(_chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module:
|
|
5221
|
+
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _141 => _141.id]) === _optionalChain([user, 'optionalAccess', _142 => _142.id]) && hasRole(_chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunk3HL4VFJ4js.Modules.User, action: "update" /* Update */ }) || hasRole(_chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator));
|
|
5222
5222
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
5223
5223
|
trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTrigger, { asChild: true, children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!user }),
|
|
5224
5224
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -5335,7 +5335,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserEditorInternal, "UserEditorInternal");
|
|
|
5335
5335
|
function UserEditor(props) {
|
|
5336
5336
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
5337
5337
|
if (!hasPermissionToModule({
|
|
5338
|
-
module:
|
|
5338
|
+
module: _chunk3HL4VFJ4js.Modules.User,
|
|
5339
5339
|
action: props.user ? "update" /* Update */ : "create" /* Create */,
|
|
5340
5340
|
data: props.user
|
|
5341
5341
|
}))
|
|
@@ -5374,10 +5374,10 @@ function UserMultiSelect({
|
|
|
5374
5374
|
const data = useDataListRetriever({
|
|
5375
5375
|
ready: !!company,
|
|
5376
5376
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
5377
|
-
return
|
|
5377
|
+
return _chunk3HL4VFJ4js.UserService.findAllUsers(params);
|
|
5378
5378
|
}, "retriever"),
|
|
5379
5379
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _149 => _149.id]) },
|
|
5380
|
-
module:
|
|
5380
|
+
module: _chunk3HL4VFJ4js.Modules.User
|
|
5381
5381
|
});
|
|
5382
5382
|
_react.useEffect.call(void 0, () => {
|
|
5383
5383
|
if (company) data.setReady(true);
|
|
@@ -5488,7 +5488,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
5488
5488
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
5489
5489
|
const reactivateUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
5490
5490
|
try {
|
|
5491
|
-
const updatedUser = await
|
|
5491
|
+
const updatedUser = await _chunk3HL4VFJ4js.UserService.reactivate({ userId: user.id });
|
|
5492
5492
|
setOpen(false);
|
|
5493
5493
|
propagateChanges(updatedUser);
|
|
5494
5494
|
} catch (error) {
|
|
@@ -5526,7 +5526,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
5526
5526
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivatorInterface, "UserReactivatorInterface");
|
|
5527
5527
|
function UserReactivator(props) {
|
|
5528
5528
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
5529
|
-
if (!hasPermissionToModule({ module:
|
|
5529
|
+
if (!hasPermissionToModule({ module: _chunk3HL4VFJ4js.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
5530
5530
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserReactivatorInterface, { ...props });
|
|
5531
5531
|
}
|
|
5532
5532
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivator, "UserReactivator");
|
|
@@ -5542,7 +5542,7 @@ function UserResentInvitationEmailInternal({ user }) {
|
|
|
5542
5542
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
5543
5543
|
const sendInvitationEmail = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
5544
5544
|
try {
|
|
5545
|
-
await
|
|
5545
|
+
await _chunk3HL4VFJ4js.UserService.sendInvitation({ userId: user.id, companyId: user.company.id });
|
|
5546
5546
|
setOpen(false);
|
|
5547
5547
|
_sonner.toast.message(t(`foundations.user.resend_activation.email_sent`), {
|
|
5548
5548
|
description: t(`foundations.user.resend_activation.email_sent_description`, { email: user.email })
|
|
@@ -5582,7 +5582,7 @@ function UserResentInvitationEmailInternal({ user }) {
|
|
|
5582
5582
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmailInternal, "UserResentInvitationEmailInternal");
|
|
5583
5583
|
function UserResentInvitationEmail(props) {
|
|
5584
5584
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
5585
|
-
if (!hasPermissionToModule({ module:
|
|
5585
|
+
if (!hasPermissionToModule({ module: _chunk3HL4VFJ4js.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
5586
5586
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserResentInvitationEmailInternal, { ...props });
|
|
5587
5587
|
}
|
|
5588
5588
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmail, "UserResentInvitationEmail");
|
|
@@ -5614,22 +5614,22 @@ function UserAvatar({ user, className, showFull, showLink }) {
|
|
|
5614
5614
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
|
|
5615
5615
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { asChild: true, children: showLink === false ? (
|
|
5616
5616
|
// If showLink is explicitly false, never show a link
|
|
5617
|
-
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
5617
|
+
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className), children: [
|
|
5618
5618
|
getAvatar(),
|
|
5619
5619
|
user.name
|
|
5620
5620
|
] }) : getAvatar()
|
|
5621
5621
|
) : showFull ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5622
5622
|
Link2,
|
|
5623
5623
|
{
|
|
5624
|
-
href: generateUrl({ page:
|
|
5625
|
-
className:
|
|
5624
|
+
href: generateUrl({ page: _chunk3HL4VFJ4js.Modules.User, id: user.id }),
|
|
5625
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className),
|
|
5626
5626
|
onClick: (e) => e.stopPropagation(),
|
|
5627
5627
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center gap-x-2", children: [
|
|
5628
5628
|
getAvatar(),
|
|
5629
5629
|
user.name
|
|
5630
5630
|
] })
|
|
5631
5631
|
}
|
|
5632
|
-
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link2, { href: generateUrl({ page:
|
|
5632
|
+
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link2, { href: generateUrl({ page: _chunk3HL4VFJ4js.Modules.User, id: user.id }), className, children: getAvatar() }) : getAvatar() }),
|
|
5633
5633
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: user.name })
|
|
5634
5634
|
] });
|
|
5635
5635
|
}
|
|
@@ -5645,10 +5645,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
5645
5645
|
const [isSearching, setIsSearching] = _react.useState.call(void 0, false);
|
|
5646
5646
|
const data = useDataListRetriever({
|
|
5647
5647
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
5648
|
-
return
|
|
5648
|
+
return _chunk3HL4VFJ4js.UserService.findMany(params);
|
|
5649
5649
|
}, "retriever"),
|
|
5650
5650
|
retrieverParams: {},
|
|
5651
|
-
module:
|
|
5651
|
+
module: _chunk3HL4VFJ4js.Modules.User
|
|
5652
5652
|
});
|
|
5653
5653
|
const search = _react.useCallback.call(void 0,
|
|
5654
5654
|
async (searchedTerm) => {
|
|
@@ -5753,24 +5753,24 @@ var UserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
5753
5753
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
5754
5754
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
5755
5755
|
const [user, setUser] = _react.useState.call(void 0,
|
|
5756
|
-
dehydratedUser ?
|
|
5756
|
+
dehydratedUser ? _chunk3HL4VFJ4js.rehydrate.call(void 0, _chunk3HL4VFJ4js.Modules.User, dehydratedUser) : void 0
|
|
5757
5757
|
);
|
|
5758
5758
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
5759
5759
|
const response = [];
|
|
5760
|
-
if (hasPermissionToModule({ module:
|
|
5760
|
+
if (hasPermissionToModule({ module: _chunk3HL4VFJ4js.Modules.User, action: "update" /* Update */ })) {
|
|
5761
5761
|
response.push({
|
|
5762
5762
|
name: t(`generic.settings`),
|
|
5763
5763
|
href: generateUrl({ page: `/settings` })
|
|
5764
5764
|
});
|
|
5765
5765
|
response.push({
|
|
5766
5766
|
name: t(`types.users`, { count: 2 }),
|
|
5767
|
-
href: generateUrl({ page: `/settings`, id:
|
|
5767
|
+
href: generateUrl({ page: `/settings`, id: _chunk3HL4VFJ4js.Modules.User.pageUrl })
|
|
5768
5768
|
});
|
|
5769
5769
|
}
|
|
5770
5770
|
if (user)
|
|
5771
5771
|
response.push({
|
|
5772
5772
|
name: `${user.name}${user.isDeleted ? ` (${t(`foundations.user.deleted`)})` : ""}`,
|
|
5773
|
-
href: generateUrl({ page:
|
|
5773
|
+
href: generateUrl({ page: _chunk3HL4VFJ4js.Modules.User, id: user.id })
|
|
5774
5774
|
});
|
|
5775
5775
|
return response;
|
|
5776
5776
|
}, "breadcrumb");
|
|
@@ -5825,7 +5825,7 @@ function UserDetails({ user }) {
|
|
|
5825
5825
|
const { title } = useSharedContext();
|
|
5826
5826
|
let roles = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
5827
5827
|
if (user.roles && user.roles.length > 0) {
|
|
5828
|
-
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, Link2, { href: generateUrl({ page:
|
|
5828
|
+
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, Link2, { href: generateUrl({ page: _chunk3HL4VFJ4js.Modules.Role, id: role.id }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { className: "mr-2", variant: `default`, children: t(`foundations.role.roles`, { role: role.id.replaceAll(`-`, ``) }) }) }, role.id)) }) });
|
|
5829
5829
|
}
|
|
5830
5830
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
5831
5831
|
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,
|
|
@@ -5892,18 +5892,18 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserIndexContainer, "UserIndexContainer");
|
|
|
5892
5892
|
function UsersListContainerInternal() {
|
|
5893
5893
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
5894
5894
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
5895
|
-
if (!hasPermissionToModule({ module:
|
|
5895
|
+
if (!hasPermissionToModule({ module: _chunk3HL4VFJ4js.Modules.User, action: "delete" /* Delete */ })) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {});
|
|
5896
5896
|
const tabs = [
|
|
5897
5897
|
{
|
|
5898
5898
|
label: t(`types.users`, { count: 2 }),
|
|
5899
5899
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {}),
|
|
5900
|
-
modules: [
|
|
5900
|
+
modules: [_chunk3HL4VFJ4js.Modules.Company],
|
|
5901
5901
|
action: "read" /* Read */
|
|
5902
5902
|
},
|
|
5903
5903
|
{
|
|
5904
5904
|
label: t(`foundations.user.deleted`),
|
|
5905
5905
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, { isDeleted: true }),
|
|
5906
|
-
modules: [
|
|
5906
|
+
modules: [_chunk3HL4VFJ4js.Modules.Company],
|
|
5907
5907
|
action: "update" /* Update */
|
|
5908
5908
|
}
|
|
5909
5909
|
];
|
|
@@ -5921,9 +5921,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersListContainer, "UsersListContainer");
|
|
|
5921
5921
|
function AdminUsersListInternal({ company }) {
|
|
5922
5922
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
5923
5923
|
const data = useDataListRetriever({
|
|
5924
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
5924
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.UserService.findManyForAmin(params), "retriever"),
|
|
5925
5925
|
retrieverParams: { companyId: company.id },
|
|
5926
|
-
module:
|
|
5926
|
+
module: _chunk3HL4VFJ4js.Modules.User
|
|
5927
5927
|
});
|
|
5928
5928
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5929
5929
|
ContentListTable,
|
|
@@ -5931,7 +5931,7 @@ function AdminUsersListInternal({ company }) {
|
|
|
5931
5931
|
title: t(`types.users`, { count: 2 }),
|
|
5932
5932
|
data,
|
|
5933
5933
|
fields: ["name" /* name */, "email" /* email */, "createdAt" /* createdAt */],
|
|
5934
|
-
tableGeneratorType:
|
|
5934
|
+
tableGeneratorType: _chunk3HL4VFJ4js.Modules.User,
|
|
5935
5935
|
functions: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserEditor, { propagateChanges: data.refresh, adminCreated: true })
|
|
5936
5936
|
}
|
|
5937
5937
|
);
|
|
@@ -5953,9 +5953,9 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
5953
5953
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
5954
5954
|
const data = useDataListRetriever({
|
|
5955
5955
|
ready: !!company,
|
|
5956
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
5956
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.UserService.findAllUsers(params), "retriever"),
|
|
5957
5957
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _168 => _168.id]), isDeleted },
|
|
5958
|
-
module:
|
|
5958
|
+
module: _chunk3HL4VFJ4js.Modules.User
|
|
5959
5959
|
});
|
|
5960
5960
|
_react.useEffect.call(void 0, () => {
|
|
5961
5961
|
if (company) data.setReady(true);
|
|
@@ -5968,7 +5968,7 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
5968
5968
|
{
|
|
5969
5969
|
data,
|
|
5970
5970
|
fields: ["name" /* name */, "email" /* email */],
|
|
5971
|
-
tableGeneratorType:
|
|
5971
|
+
tableGeneratorType: _chunk3HL4VFJ4js.Modules.User,
|
|
5972
5972
|
functions,
|
|
5973
5973
|
title: t(`types.users`, { count: 2 })
|
|
5974
5974
|
}
|
|
@@ -5984,7 +5984,7 @@ function ContributorsList({ content }) {
|
|
|
5984
5984
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5985
5985
|
Link2,
|
|
5986
5986
|
{
|
|
5987
|
-
href: generateUrl({ page:
|
|
5987
|
+
href: generateUrl({ page: _chunk3HL4VFJ4js.Modules.User, id: content.author.id }),
|
|
5988
5988
|
onClick: (e) => e.stopPropagation(),
|
|
5989
5989
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: content.author, className: "mr-1 h-6 w-6" })
|
|
5990
5990
|
},
|
|
@@ -5993,7 +5993,7 @@ function ContributorsList({ content }) {
|
|
|
5993
5993
|
/* @__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,
|
|
5994
5994
|
Link2,
|
|
5995
5995
|
{
|
|
5996
|
-
href: generateUrl({ page:
|
|
5996
|
+
href: generateUrl({ page: _chunk3HL4VFJ4js.Modules.User, id: editor.id }),
|
|
5997
5997
|
onClick: (e) => e.stopPropagation(),
|
|
5998
5998
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: editor, className: "h-5 w-5" })
|
|
5999
5999
|
},
|
|
@@ -6009,8 +6009,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContributorsList, "ContributorsList");
|
|
|
6009
6009
|
function RelevantUsersList({ id }) {
|
|
6010
6010
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
6011
6011
|
const data = useDataListRetriever({
|
|
6012
|
-
module:
|
|
6013
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
6012
|
+
module: _chunk3HL4VFJ4js.Modules.User,
|
|
6013
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.UserService.findRelevant(params), "retriever"),
|
|
6014
6014
|
retrieverParams: { id }
|
|
6015
6015
|
});
|
|
6016
6016
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -6018,7 +6018,7 @@ function RelevantUsersList({ id }) {
|
|
|
6018
6018
|
{
|
|
6019
6019
|
data,
|
|
6020
6020
|
fields: ["name" /* name */, "email" /* email */, "relevance" /* relevance */],
|
|
6021
|
-
tableGeneratorType:
|
|
6021
|
+
tableGeneratorType: _chunk3HL4VFJ4js.Modules.User,
|
|
6022
6022
|
title: t(`generic.relevant_users`)
|
|
6023
6023
|
}
|
|
6024
6024
|
);
|
|
@@ -6031,16 +6031,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RelevantUsersList, "RelevantUsersList");
|
|
|
6031
6031
|
function RoleUsersList({ role }) {
|
|
6032
6032
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
6033
6033
|
const data = useDataListRetriever({
|
|
6034
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
6034
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.UserService.findAllUsersByRole(params), "retriever"),
|
|
6035
6035
|
retrieverParams: { roleId: role.id },
|
|
6036
|
-
module:
|
|
6036
|
+
module: _chunk3HL4VFJ4js.Modules.User
|
|
6037
6037
|
});
|
|
6038
6038
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6039
6039
|
ContentListTable,
|
|
6040
6040
|
{
|
|
6041
6041
|
data,
|
|
6042
6042
|
fields: ["name" /* name */, "email" /* email */],
|
|
6043
|
-
tableGeneratorType:
|
|
6043
|
+
tableGeneratorType: _chunk3HL4VFJ4js.Modules.User,
|
|
6044
6044
|
title: t(`types.users`, { count: 2 })
|
|
6045
6045
|
}
|
|
6046
6046
|
);
|
|
@@ -6090,7 +6090,7 @@ function UsersList({ data, optionComponents, removeFunction, hideOptions, showRe
|
|
|
6090
6090
|
{
|
|
6091
6091
|
data,
|
|
6092
6092
|
fields: ["name" /* name */, "email" /* email */],
|
|
6093
|
-
tableGeneratorType:
|
|
6093
|
+
tableGeneratorType: _chunk3HL4VFJ4js.Modules.User,
|
|
6094
6094
|
title: t(`types.users`, { count: 2 })
|
|
6095
6095
|
}
|
|
6096
6096
|
);
|
|
@@ -6103,8 +6103,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersList, "UsersList");
|
|
|
6103
6103
|
function UsersListByContentIds({ contentIds }) {
|
|
6104
6104
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
6105
6105
|
const data = useDataListRetriever({
|
|
6106
|
-
module:
|
|
6107
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
6106
|
+
module: _chunk3HL4VFJ4js.Modules.User,
|
|
6107
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.UserService.findManyByContentIds(params), "retriever"),
|
|
6108
6108
|
retrieverParams: { contentIds }
|
|
6109
6109
|
});
|
|
6110
6110
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -6112,7 +6112,7 @@ function UsersListByContentIds({ contentIds }) {
|
|
|
6112
6112
|
{
|
|
6113
6113
|
data,
|
|
6114
6114
|
fields: ["name" /* name */, "email" /* email */],
|
|
6115
|
-
tableGeneratorType:
|
|
6115
|
+
tableGeneratorType: _chunk3HL4VFJ4js.Modules.User,
|
|
6116
6116
|
title: t(`generic.relevant_users`)
|
|
6117
6117
|
}
|
|
6118
6118
|
);
|
|
@@ -6286,8 +6286,8 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
6286
6286
|
}
|
|
6287
6287
|
};
|
|
6288
6288
|
try {
|
|
6289
|
-
await
|
|
6290
|
-
const fullUser = await
|
|
6289
|
+
await _chunk3HL4VFJ4js.CompanyService.updateConfigurations(payload);
|
|
6290
|
+
const fullUser = await _chunk3HL4VFJ4js.UserService.findFullUser();
|
|
6291
6291
|
if (fullUser) {
|
|
6292
6292
|
setUser(fullUser);
|
|
6293
6293
|
}
|
|
@@ -6342,7 +6342,7 @@ function CompanyDeleterInternal({ company }) {
|
|
|
6342
6342
|
const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
6343
6343
|
setIsDeleting(true);
|
|
6344
6344
|
try {
|
|
6345
|
-
await
|
|
6345
|
+
await _chunk3HL4VFJ4js.CompanyService.delete({ companyId: company.id });
|
|
6346
6346
|
router.push("/");
|
|
6347
6347
|
} catch (error) {
|
|
6348
6348
|
errorToast({ title: t(`generic.errors.delete`), error });
|
|
@@ -6412,7 +6412,7 @@ function CompanyDeleterInternal({ company }) {
|
|
|
6412
6412
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleterInternal, "CompanyDeleterInternal");
|
|
6413
6413
|
function CompanyDeleter({ company }) {
|
|
6414
6414
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
6415
|
-
if (!hasRole(_chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator) && !hasPermissionToModule({ module:
|
|
6415
|
+
if (!hasRole(_chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator) && !hasPermissionToModule({ module: _chunk3HL4VFJ4js.Modules.Company, action: "delete" /* Delete */ }))
|
|
6416
6416
|
return null;
|
|
6417
6417
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleterInternal, { company });
|
|
6418
6418
|
}
|
|
@@ -6460,7 +6460,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
6460
6460
|
});
|
|
6461
6461
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
6462
6462
|
if (values.logo && contentType) {
|
|
6463
|
-
const s3 = await
|
|
6463
|
+
const s3 = await _chunk3HL4VFJ4js.S3Service.getPreSignedUrl({
|
|
6464
6464
|
key: values.logo,
|
|
6465
6465
|
contentType,
|
|
6466
6466
|
isPublic: true
|
|
@@ -6479,9 +6479,9 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
6479
6479
|
moduleIds: values.moduleIds
|
|
6480
6480
|
};
|
|
6481
6481
|
try {
|
|
6482
|
-
const updatedCompany = company ? await
|
|
6482
|
+
const updatedCompany = company ? await _chunk3HL4VFJ4js.CompanyService.update(payload) : await _chunk3HL4VFJ4js.CompanyService.create(payload);
|
|
6483
6483
|
if (onRevalidate) {
|
|
6484
|
-
await onRevalidate(generateUrl({ page:
|
|
6484
|
+
await onRevalidate(generateUrl({ page: _chunk3HL4VFJ4js.Modules.Company, id: updatedCompany.id, language: `[locale]` }));
|
|
6485
6485
|
}
|
|
6486
6486
|
if (company && propagateChanges) {
|
|
6487
6487
|
_cookiesnext.setCookie.call(void 0, "reloadData", "true", { path: "/" });
|
|
@@ -6499,7 +6499,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
6499
6499
|
}, "onSubmit");
|
|
6500
6500
|
_react.useEffect.call(void 0, () => {
|
|
6501
6501
|
async function fetchFeatures() {
|
|
6502
|
-
const allfeatures = await
|
|
6502
|
+
const allfeatures = await _chunk3HL4VFJ4js.FeatureService.findMany({});
|
|
6503
6503
|
if (hasRole(_chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator)) {
|
|
6504
6504
|
setFeatures(allfeatures);
|
|
6505
6505
|
} else {
|
|
@@ -6613,9 +6613,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyEditor, "CompanyEditor");
|
|
|
6613
6613
|
function CompaniesList() {
|
|
6614
6614
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
6615
6615
|
const data = useDataListRetriever({
|
|
6616
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
6616
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.CompanyService.findMany(params), "retriever"),
|
|
6617
6617
|
retrieverParams: {},
|
|
6618
|
-
module:
|
|
6618
|
+
module: _chunk3HL4VFJ4js.Modules.Company
|
|
6619
6619
|
});
|
|
6620
6620
|
const functions = [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, {}, "create-account")];
|
|
6621
6621
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -6623,7 +6623,7 @@ function CompaniesList() {
|
|
|
6623
6623
|
{
|
|
6624
6624
|
data,
|
|
6625
6625
|
fields: ["name" /* name */, "createdAt" /* createdAt */],
|
|
6626
|
-
tableGeneratorType:
|
|
6626
|
+
tableGeneratorType: _chunk3HL4VFJ4js.Modules.Company,
|
|
6627
6627
|
functions,
|
|
6628
6628
|
title: t(`types.companies`, { count: 2 })
|
|
6629
6629
|
}
|
|
@@ -6644,14 +6644,14 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
6644
6644
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
6645
6645
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
6646
6646
|
const [company, setCompany] = _react.useState.call(void 0,
|
|
6647
|
-
dehydratedCompany ?
|
|
6647
|
+
dehydratedCompany ? _chunk3HL4VFJ4js.rehydrate.call(void 0, _chunk3HL4VFJ4js.Modules.Company, dehydratedCompany) : void 0
|
|
6648
6648
|
);
|
|
6649
6649
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
6650
6650
|
const response = [];
|
|
6651
6651
|
if (company)
|
|
6652
6652
|
response.push({
|
|
6653
6653
|
name: company.name,
|
|
6654
|
-
href: generateUrl({ page:
|
|
6654
|
+
href: generateUrl({ page: _chunk3HL4VFJ4js.Modules.Company })
|
|
6655
6655
|
});
|
|
6656
6656
|
return response;
|
|
6657
6657
|
}, "breadcrumb");
|
|
@@ -6661,9 +6661,9 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
6661
6661
|
};
|
|
6662
6662
|
if (company) response.element = company.name;
|
|
6663
6663
|
const functions = [];
|
|
6664
|
-
if (company && hasRole(_chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator) && hasPermissionToModule({ module:
|
|
6664
|
+
if (company && hasRole(_chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator) && hasPermissionToModule({ module: _chunk3HL4VFJ4js.Modules.Company, action: "delete" /* Delete */ }))
|
|
6665
6665
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleter, { company }, "companyDeleter"));
|
|
6666
|
-
if (hasRole(_chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module:
|
|
6666
|
+
if (hasRole(_chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module: _chunk3HL4VFJ4js.Modules.Company, action: "update" /* Update */ })) {
|
|
6667
6667
|
if (company) functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditor, { company }, "companyConfigurationEditor"));
|
|
6668
6668
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, { company, propagateChanges: setCompany }, "companyEditor"));
|
|
6669
6669
|
}
|
|
@@ -6776,7 +6776,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
6776
6776
|
setIsLoading(true);
|
|
6777
6777
|
setError(null);
|
|
6778
6778
|
try {
|
|
6779
|
-
const fetchedNotifications = await
|
|
6779
|
+
const fetchedNotifications = await _chunk3HL4VFJ4js.NotificationService.findMany({});
|
|
6780
6780
|
setNotifications(fetchedNotifications);
|
|
6781
6781
|
setLastLoaded(Date.now());
|
|
6782
6782
|
} catch (error2) {
|
|
@@ -6792,7 +6792,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
6792
6792
|
try {
|
|
6793
6793
|
const data = {
|
|
6794
6794
|
data: ids.map((id) => ({
|
|
6795
|
-
type:
|
|
6795
|
+
type: _chunk3HL4VFJ4js.Modules.Notification.name,
|
|
6796
6796
|
id,
|
|
6797
6797
|
attributes: {
|
|
6798
6798
|
isRead: true
|
|
@@ -6801,8 +6801,8 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
6801
6801
|
relationships: {}
|
|
6802
6802
|
}))
|
|
6803
6803
|
};
|
|
6804
|
-
await
|
|
6805
|
-
const allNotifications = await
|
|
6804
|
+
await _chunk3HL4VFJ4js.NotificationService.markAsRead({ data });
|
|
6805
|
+
const allNotifications = await _chunk3HL4VFJ4js.NotificationService.findMany({});
|
|
6806
6806
|
setNotifications(allNotifications);
|
|
6807
6807
|
setLastLoaded(Date.now());
|
|
6808
6808
|
} catch (error2) {
|
|
@@ -6870,18 +6870,18 @@ var RoleProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
6870
6870
|
const generateUrl = usePageUrlGenerator();
|
|
6871
6871
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
6872
6872
|
const [role, setRole] = _react.useState.call(void 0,
|
|
6873
|
-
dehydratedRole ?
|
|
6873
|
+
dehydratedRole ? _chunk3HL4VFJ4js.rehydrate.call(void 0, _chunk3HL4VFJ4js.Modules.Role, dehydratedRole) : void 0
|
|
6874
6874
|
);
|
|
6875
6875
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
6876
6876
|
const response = [];
|
|
6877
6877
|
response.push({
|
|
6878
6878
|
name: t(`types.roles`, { count: 2 }),
|
|
6879
|
-
href: generateUrl({ page:
|
|
6879
|
+
href: generateUrl({ page: _chunk3HL4VFJ4js.Modules.Role })
|
|
6880
6880
|
});
|
|
6881
6881
|
if (role)
|
|
6882
6882
|
response.push({
|
|
6883
6883
|
name: role.name,
|
|
6884
|
-
href: generateUrl({ page:
|
|
6884
|
+
href: generateUrl({ page: _chunk3HL4VFJ4js.Modules.Role, id: role.id })
|
|
6885
6885
|
});
|
|
6886
6886
|
return response;
|
|
6887
6887
|
}, "breadcrumb");
|
|
@@ -7116,7 +7116,7 @@ function usePushNotifications() {
|
|
|
7116
7116
|
};
|
|
7117
7117
|
const subscriptionHash = btoa(JSON.stringify(plainSubscription));
|
|
7118
7118
|
if (lastRegisteredSubscription !== subscriptionHash) {
|
|
7119
|
-
await
|
|
7119
|
+
await _chunk3HL4VFJ4js.PushService.register({ data: plainSubscription });
|
|
7120
7120
|
sessionStorage.setItem(sessionKey, subscriptionHash);
|
|
7121
7121
|
}
|
|
7122
7122
|
} catch (error) {
|
|
@@ -7199,7 +7199,7 @@ function useSocket({ token }) {
|
|
|
7199
7199
|
});
|
|
7200
7200
|
}, "handleMessage");
|
|
7201
7201
|
const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
|
|
7202
|
-
const notification =
|
|
7202
|
+
const notification = _chunk3HL4VFJ4js.rehydrate.call(void 0, _chunk3HL4VFJ4js.Modules.Notification, data);
|
|
7203
7203
|
if (notification) {
|
|
7204
7204
|
setSocketNotifications((prev) => {
|
|
7205
7205
|
const newNotifications = [...prev, notification];
|
|
@@ -7314,7 +7314,7 @@ function ContentTitle({ type, element, functions, className }) {
|
|
|
7314
7314
|
setClientFunctions(functions);
|
|
7315
7315
|
}, [functions]);
|
|
7316
7316
|
if (!element) return null;
|
|
7317
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
7317
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, `mb-4 flex w-full flex-col`, className), children: [
|
|
7318
7318
|
(type || isClient) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-row items-center justify-between gap-x-4", children: [
|
|
7319
7319
|
type && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `text-muted-foreground text-xl font-light`, children: type }),
|
|
7320
7320
|
isClient && clientFunctions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-row items-center justify-start", children: clientFunctions })
|
|
@@ -7428,7 +7428,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, RecentPagesNavigator, "RecentPagesNavigator
|
|
|
7428
7428
|
function PageContainer({ children, testId, className }) {
|
|
7429
7429
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex h-full w-full flex-col`, "data-testid": testId, children: [
|
|
7430
7430
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header2, {}),
|
|
7431
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className:
|
|
7431
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className: _chunk3HL4VFJ4js.cn.call(void 0, `flex w-full flex-1 flex-col gap-y-4 pt-4 pl-4 pr-4`, className), children })
|
|
7432
7432
|
] });
|
|
7433
7433
|
}
|
|
7434
7434
|
_chunk7QVYU63Ejs.__name.call(void 0, PageContainer, "PageContainer");
|
|
@@ -7537,7 +7537,7 @@ function TabsContainer({
|
|
|
7537
7537
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7538
7538
|
TabsList,
|
|
7539
7539
|
{
|
|
7540
|
-
className:
|
|
7540
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
7541
7541
|
`${style ? `my-4 flex w-full justify-start rounded-none border-b bg-transparent pb-0` : ``}`,
|
|
7542
7542
|
tabsListClassName
|
|
7543
7543
|
),
|
|
@@ -7545,7 +7545,7 @@ function TabsContainer({
|
|
|
7545
7545
|
TabsTrigger,
|
|
7546
7546
|
{
|
|
7547
7547
|
value: tab.label,
|
|
7548
|
-
className:
|
|
7548
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
7549
7549
|
`${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`}`,
|
|
7550
7550
|
tabsTriggerClassName
|
|
7551
7551
|
),
|
|
@@ -7565,7 +7565,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, TabsContainer, "TabsContainer");
|
|
|
7565
7565
|
// src/components/contents/AttributeElement.tsx
|
|
7566
7566
|
|
|
7567
7567
|
function AttributeElement({ inline, title, value, className }) {
|
|
7568
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
7568
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, `flex ${inline === true ? "flex-row" : "flex-col"} my-1 justify-start`, className), children: [
|
|
7569
7569
|
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${inline === true ? "min-w-48 pr-4" : "w-full"} text-sm font-semibold`, children: title }),
|
|
7570
7570
|
value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col text-sm", children: value })
|
|
7571
7571
|
] });
|
|
@@ -7588,7 +7588,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AllowedUsersDetails, "AllowedUsersDetails")
|
|
|
7588
7588
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
7589
7589
|
|
|
7590
7590
|
|
|
7591
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
7591
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-UF7DYLFA.js"))), {
|
|
7592
7592
|
ssr: false
|
|
7593
7593
|
});
|
|
7594
7594
|
var BlockNoteEditorContainer = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -7931,7 +7931,7 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
7931
7931
|
}, "handleClear");
|
|
7932
7932
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open: isOpen, onOpenChange: setIsOpen, children: [
|
|
7933
7933
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { asChild: true, children }),
|
|
7934
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className:
|
|
7934
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className: _chunk3HL4VFJ4js.cn.call(void 0, "w-auto p-0", className), align, onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "p-3", children: [
|
|
7935
7935
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative mb-3", children: [
|
|
7936
7936
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7937
7937
|
Input,
|
|
@@ -8045,13 +8045,13 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
8045
8045
|
setDate(range);
|
|
8046
8046
|
}
|
|
8047
8047
|
}, "handleSelect");
|
|
8048
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
8048
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, "grid gap-2"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, children: [
|
|
8049
8049
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8050
8050
|
Button,
|
|
8051
8051
|
{
|
|
8052
8052
|
id: "date",
|
|
8053
8053
|
variant: "outline",
|
|
8054
|
-
className:
|
|
8054
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
|
|
8055
8055
|
children: [
|
|
8056
8056
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
|
|
8057
8057
|
_optionalChain([date, 'optionalAccess', _225 => _225.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -8244,7 +8244,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
8244
8244
|
ref,
|
|
8245
8245
|
tabIndex: 0,
|
|
8246
8246
|
onKeyDownCapture: handleKeyDown,
|
|
8247
|
-
className:
|
|
8247
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
8248
8248
|
"grid w-full overflow-hidden focus:outline-none",
|
|
8249
8249
|
className,
|
|
8250
8250
|
// Original className from props
|
|
@@ -8268,12 +8268,12 @@ var FileUploaderContent = _react.forwardRef.call(void 0,
|
|
|
8268
8268
|
({ children, className, ...props }, ref) => {
|
|
8269
8269
|
const { orientation } = useFileUpload();
|
|
8270
8270
|
const containerRef = _react.useRef.call(void 0, null);
|
|
8271
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
8271
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, "w-full px-1"), ref: containerRef, "aria-description": "content file holder", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8272
8272
|
"div",
|
|
8273
8273
|
{
|
|
8274
8274
|
...props,
|
|
8275
8275
|
ref,
|
|
8276
|
-
className:
|
|
8276
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
8277
8277
|
"flex gap-1 rounded-xl",
|
|
8278
8278
|
orientation === "horizontal" ? "flex-raw flex-wrap" : "flex-col",
|
|
8279
8279
|
className
|
|
@@ -8293,7 +8293,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
8293
8293
|
"div",
|
|
8294
8294
|
{
|
|
8295
8295
|
ref,
|
|
8296
|
-
className:
|
|
8296
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
8297
8297
|
buttonVariants({ variant: "ghost" }),
|
|
8298
8298
|
"relative h-6 cursor-pointer justify-between p-1",
|
|
8299
8299
|
className,
|
|
@@ -8306,7 +8306,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
8306
8306
|
"button",
|
|
8307
8307
|
{
|
|
8308
8308
|
type: "button",
|
|
8309
|
-
className:
|
|
8309
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "absolute", direction === "rtl" ? "top-1 left-1" : "top-1 right-1"),
|
|
8310
8310
|
onClick: () => removeFileFromSet(index),
|
|
8311
8311
|
children: [
|
|
8312
8312
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: t(`generic.remove_item`, { index }) }),
|
|
@@ -8330,12 +8330,12 @@ var FileInput = _react.forwardRef.call(void 0,
|
|
|
8330
8330
|
{
|
|
8331
8331
|
ref,
|
|
8332
8332
|
...props,
|
|
8333
|
-
className:
|
|
8333
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, `relative w-full ${isLOF ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`, className),
|
|
8334
8334
|
children: [
|
|
8335
8335
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8336
8336
|
"div",
|
|
8337
8337
|
{
|
|
8338
|
-
className:
|
|
8338
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
8339
8339
|
"w-full rounded-lg duration-300 ease-in-out",
|
|
8340
8340
|
// Simpler border logic: if parent is drag-active, it controls the border.
|
|
8341
8341
|
// Otherwise, FileInput can show its own accept/reject/default border.
|
|
@@ -8680,7 +8680,7 @@ function FormDateTime({
|
|
|
8680
8680
|
Button,
|
|
8681
8681
|
{
|
|
8682
8682
|
variant: "outline",
|
|
8683
|
-
className:
|
|
8683
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "w-full pl-3 text-left font-normal", !field.value && "text-muted-foreground"),
|
|
8684
8684
|
children: [
|
|
8685
8685
|
field.value ? formatDateTime(field.value) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t(`generic.pick_date_time`) }),
|
|
8686
8686
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Calendar, { className: "ml-auto h-4 w-4 opacity-50" })
|
|
@@ -8880,7 +8880,7 @@ var PasswordInput = React38.forwardRef(({ className, type, ...props }, ref) => {
|
|
|
8880
8880
|
const disabled = props.value === "" || props.value === void 0 || props.disabled;
|
|
8881
8881
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8882
8882
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
8883
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className:
|
|
8883
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className: _chunk3HL4VFJ4js.cn.call(void 0, "", className), ref, ...props }),
|
|
8884
8884
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8885
8885
|
Button,
|
|
8886
8886
|
{
|
|
@@ -9088,7 +9088,7 @@ function FormPlaceAutocomplete({
|
|
|
9088
9088
|
placeholder,
|
|
9089
9089
|
disabled,
|
|
9090
9090
|
"data-testid": testId,
|
|
9091
|
-
className:
|
|
9091
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "w-full", className)
|
|
9092
9092
|
}
|
|
9093
9093
|
) }),
|
|
9094
9094
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormMessage, {})
|
|
@@ -9121,7 +9121,7 @@ function FormPlaceAutocomplete({
|
|
|
9121
9121
|
placeholder,
|
|
9122
9122
|
disabled: disabled || !apiKey,
|
|
9123
9123
|
"data-testid": testId,
|
|
9124
|
-
className:
|
|
9124
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "w-full", className)
|
|
9125
9125
|
}
|
|
9126
9126
|
),
|
|
9127
9127
|
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" }) }),
|
|
@@ -9266,7 +9266,7 @@ function FormTextarea({
|
|
|
9266
9266
|
Textarea,
|
|
9267
9267
|
{
|
|
9268
9268
|
...field,
|
|
9269
|
-
className:
|
|
9269
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "min-h-96 w-full", className),
|
|
9270
9270
|
disabled: form.formState.isSubmitting,
|
|
9271
9271
|
placeholder,
|
|
9272
9272
|
"data-testid": testId
|
|
@@ -9774,14 +9774,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, useJsonApiMutation, "useJsonApiMutation");
|
|
|
9774
9774
|
function useRehydration(classKey, data) {
|
|
9775
9775
|
return _react.useMemo.call(void 0, () => {
|
|
9776
9776
|
if (!data) return null;
|
|
9777
|
-
return
|
|
9777
|
+
return _chunk3HL4VFJ4js.RehydrationFactory.rehydrate(classKey, data);
|
|
9778
9778
|
}, [classKey, data]);
|
|
9779
9779
|
}
|
|
9780
9780
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydration, "useRehydration");
|
|
9781
9781
|
function useRehydrationList(classKey, data) {
|
|
9782
9782
|
return _react.useMemo.call(void 0, () => {
|
|
9783
9783
|
if (!data || data.length === 0) return [];
|
|
9784
|
-
return
|
|
9784
|
+
return _chunk3HL4VFJ4js.RehydrationFactory.rehydrateList(classKey, data);
|
|
9785
9785
|
}, [classKey, data]);
|
|
9786
9786
|
}
|
|
9787
9787
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydrationList, "useRehydrationList");
|
|
@@ -9823,9 +9823,9 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
9823
9823
|
{
|
|
9824
9824
|
href: hasRole(_chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
9825
9825
|
page: "/administration",
|
|
9826
|
-
id: _optionalChain([
|
|
9826
|
+
id: _optionalChain([_chunk3HL4VFJ4js.Modules, 'access', _277 => _277.Company, 'access', _278 => _278.pageUrl, 'optionalAccess', _279 => _279.substring, 'call', _280 => _280(1)]),
|
|
9827
9827
|
childPage: company.id
|
|
9828
|
-
}) : generateUrl({ page:
|
|
9828
|
+
}) : generateUrl({ page: _chunk3HL4VFJ4js.Modules.Company, id: company.id }),
|
|
9829
9829
|
children: row.getValue("name")
|
|
9830
9830
|
}
|
|
9831
9831
|
);
|
|
@@ -9875,7 +9875,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
9875
9875
|
header: t(`foundations.role.fields.name.label`),
|
|
9876
9876
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
9877
9877
|
const role = row.original.jsonApiData;
|
|
9878
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link2, { href: generateUrl({ page:
|
|
9878
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link2, { href: generateUrl({ page: _chunk3HL4VFJ4js.Modules.Role, id: role.id }), children: row.getValue("name") });
|
|
9879
9879
|
}, "cell"),
|
|
9880
9880
|
enableSorting: false,
|
|
9881
9881
|
enableHiding: false
|
|
@@ -9912,7 +9912,7 @@ var useUserSearch = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
|
9912
9912
|
if (search === searchQueryRef.current && users.length > 0) return;
|
|
9913
9913
|
setIsLoading(true);
|
|
9914
9914
|
searchQueryRef.current = search;
|
|
9915
|
-
const fetchedUsers = await
|
|
9915
|
+
const fetchedUsers = await _chunk3HL4VFJ4js.UserService.findMany({ search, fetchAll: true });
|
|
9916
9916
|
setUsers(fetchedUsers);
|
|
9917
9917
|
} catch (error) {
|
|
9918
9918
|
console.error("Failed to load users:", error);
|
|
@@ -9978,8 +9978,8 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
9978
9978
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9979
9979
|
Link2,
|
|
9980
9980
|
{
|
|
9981
|
-
href: generateUrl({ page:
|
|
9982
|
-
className:
|
|
9981
|
+
href: generateUrl({ page: _chunk3HL4VFJ4js.Modules.User, id: user.id }),
|
|
9982
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
9983
9983
|
`flex items-center justify-start gap-2`,
|
|
9984
9984
|
user.isDeleted || !user.isActivated ? "text-muted-foreground italic" : ""
|
|
9985
9985
|
),
|
|
@@ -10073,11 +10073,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
10073
10073
|
header: t(`foundations.content.fields.name.label`),
|
|
10074
10074
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
10075
10075
|
const content = row.original.jsonApiData;
|
|
10076
|
-
const contentModule = content.contentType ?
|
|
10076
|
+
const contentModule = content.contentType ? _chunk3HL4VFJ4js.Modules.findByModelName(content.contentType) : void 0;
|
|
10077
10077
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
10078
10078
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
|
|
10079
10079
|
/* @__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: [
|
|
10080
|
-
contentModule &&
|
|
10080
|
+
contentModule && _chunk3HL4VFJ4js.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
10081
10081
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link2, { href: link, children: content.name })
|
|
10082
10082
|
] }) }),
|
|
10083
10083
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: content.tldr })
|
|
@@ -10381,7 +10381,7 @@ function Register() {
|
|
|
10381
10381
|
email: values.email,
|
|
10382
10382
|
password: values.password
|
|
10383
10383
|
};
|
|
10384
|
-
await
|
|
10384
|
+
await _chunk3HL4VFJ4js.AuthService.register(payload);
|
|
10385
10385
|
setShowConfirmation(true);
|
|
10386
10386
|
} catch (e) {
|
|
10387
10387
|
errorToast({ error: e });
|
|
@@ -10582,7 +10582,7 @@ function AcceptInvitation() {
|
|
|
10582
10582
|
const payload = {
|
|
10583
10583
|
code
|
|
10584
10584
|
};
|
|
10585
|
-
await
|
|
10585
|
+
await _chunk3HL4VFJ4js.AuthService.validateCode(payload);
|
|
10586
10586
|
} catch (e) {
|
|
10587
10587
|
setError(e instanceof Error ? e.message : String(e));
|
|
10588
10588
|
errorToast({ title: t(`generic.errors.error`), error: e });
|
|
@@ -10620,7 +10620,7 @@ function AcceptInvitation() {
|
|
|
10620
10620
|
code: _optionalChain([params, 'optionalAccess', _303 => _303.code]),
|
|
10621
10621
|
password: values.password
|
|
10622
10622
|
};
|
|
10623
|
-
await
|
|
10623
|
+
await _chunk3HL4VFJ4js.AuthService.acceptInvitation(payload);
|
|
10624
10624
|
setShowConfirmation(true);
|
|
10625
10625
|
_sonner.toast.success(t("foundations.auth.account_activated"), {
|
|
10626
10626
|
description: t("foundations.auth.account_activated_description")
|
|
@@ -10683,7 +10683,7 @@ function ActivateAccount() {
|
|
|
10683
10683
|
const payload = {
|
|
10684
10684
|
activationCode: code
|
|
10685
10685
|
};
|
|
10686
|
-
await
|
|
10686
|
+
await _chunk3HL4VFJ4js.AuthService.activate(payload);
|
|
10687
10687
|
setShowConfirmation(true);
|
|
10688
10688
|
setParams(void 0);
|
|
10689
10689
|
_sonner.toast.success(t("foundations.auth.account_activated"), {
|
|
@@ -10726,8 +10726,8 @@ function Cookies({ dehydratedAuth, page }) {
|
|
|
10726
10726
|
_react.useEffect.call(void 0, () => {
|
|
10727
10727
|
if (hasSaved) return;
|
|
10728
10728
|
async function saveTokenOnServer() {
|
|
10729
|
-
await
|
|
10730
|
-
const auth =
|
|
10729
|
+
await _chunk3HL4VFJ4js.AuthService.saveToken({ dehydratedAuth });
|
|
10730
|
+
const auth = _chunk3HL4VFJ4js.rehydrate.call(void 0, _chunk3HL4VFJ4js.Modules.Auth, dehydratedAuth);
|
|
10731
10731
|
setUser(auth.user);
|
|
10732
10732
|
setHasSaved(true);
|
|
10733
10733
|
if (page) {
|
|
@@ -10770,7 +10770,7 @@ function ForgotPassword() {
|
|
|
10770
10770
|
const payload = {
|
|
10771
10771
|
email: values.email
|
|
10772
10772
|
};
|
|
10773
|
-
await
|
|
10773
|
+
await _chunk3HL4VFJ4js.AuthService.initialiseForgotPassword(payload);
|
|
10774
10774
|
setShowConfirmation(true);
|
|
10775
10775
|
} catch (e) {
|
|
10776
10776
|
errorToast({ error: e });
|
|
@@ -10841,7 +10841,7 @@ function Login() {
|
|
|
10841
10841
|
});
|
|
10842
10842
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
10843
10843
|
try {
|
|
10844
|
-
const user = await
|
|
10844
|
+
const user = await _chunk3HL4VFJ4js.AuthService.login({
|
|
10845
10845
|
email: values.email,
|
|
10846
10846
|
password: values.password
|
|
10847
10847
|
});
|
|
@@ -10920,7 +10920,7 @@ function Logout() {
|
|
|
10920
10920
|
const generateUrl = usePageUrlGenerator();
|
|
10921
10921
|
_react.useEffect.call(void 0, () => {
|
|
10922
10922
|
const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
10923
|
-
await
|
|
10923
|
+
await _chunk3HL4VFJ4js.AuthService.logout();
|
|
10924
10924
|
window.location.href = generateUrl({ page: `/` });
|
|
10925
10925
|
}, "logOut");
|
|
10926
10926
|
logOut();
|
|
@@ -10935,7 +10935,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, Logout, "Logout");
|
|
|
10935
10935
|
function RefreshUser() {
|
|
10936
10936
|
const { setUser } = useCurrentUserContext();
|
|
10937
10937
|
const loadFullUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
10938
|
-
const fullUser = await
|
|
10938
|
+
const fullUser = await _chunk3HL4VFJ4js.UserService.findFullUser();
|
|
10939
10939
|
if (fullUser) {
|
|
10940
10940
|
setUser(fullUser);
|
|
10941
10941
|
const token = {
|
|
@@ -10948,7 +10948,7 @@ function RefreshUser() {
|
|
|
10948
10948
|
return { id: module.id, permissions: module.permissions };
|
|
10949
10949
|
})
|
|
10950
10950
|
};
|
|
10951
|
-
await _optionalChain([
|
|
10951
|
+
await _optionalChain([_chunk3HL4VFJ4js.getTokenHandler.call(void 0, ), 'optionalAccess', _312 => _312.updateToken, 'call', _313 => _313(token)]);
|
|
10952
10952
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
10953
10953
|
}
|
|
10954
10954
|
}, "loadFullUser");
|
|
@@ -10980,7 +10980,7 @@ function ResetPassword() {
|
|
|
10980
10980
|
const payload = {
|
|
10981
10981
|
code
|
|
10982
10982
|
};
|
|
10983
|
-
await
|
|
10983
|
+
await _chunk3HL4VFJ4js.AuthService.validateCode(payload);
|
|
10984
10984
|
} catch (e) {
|
|
10985
10985
|
setError(e instanceof Error ? e.message : String(e));
|
|
10986
10986
|
errorToast({ title: t(`generic.errors.error`), error: e });
|
|
@@ -11018,7 +11018,7 @@ function ResetPassword() {
|
|
|
11018
11018
|
code: _optionalChain([params, 'optionalAccess', _315 => _315.code]),
|
|
11019
11019
|
password: values.password
|
|
11020
11020
|
};
|
|
11021
|
-
await
|
|
11021
|
+
await _chunk3HL4VFJ4js.AuthService.resetPassword(payload);
|
|
11022
11022
|
setShowConfirmation(true);
|
|
11023
11023
|
_sonner.toast.success(t(`foundations.auth.reset_success`), {
|
|
11024
11024
|
description: t(`foundations.auth.reset_success_description`)
|
|
@@ -11061,12 +11061,12 @@ function ContentsList({ contentList }) {
|
|
|
11061
11061
|
_chunk7QVYU63Ejs.__name.call(void 0, ContentsList, "ContentsList");
|
|
11062
11062
|
function ContentsListElement({ content }) {
|
|
11063
11063
|
const generateUrl = usePageUrlGenerator();
|
|
11064
|
-
const contentModule = content.contentType ?
|
|
11064
|
+
const contentModule = content.contentType ? _chunk3HL4VFJ4js.Modules.findByModelName(content.contentType) : void 0;
|
|
11065
11065
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
11066
11066
|
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: [
|
|
11067
11067
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCard, { children: [
|
|
11068
11068
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HoverCardTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Link2, { href: link, className: "flex w-full items-center justify-start gap-2 font-semibold", children: [
|
|
11069
|
-
contentModule &&
|
|
11069
|
+
contentModule && _chunk3HL4VFJ4js.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
11070
11070
|
content.name
|
|
11071
11071
|
] }) }),
|
|
11072
11072
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCardContent, { className: "flex max-h-96 w-96 flex-col gap-y-4 overflow-y-auto", children: [
|
|
@@ -11085,8 +11085,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListElement, "ContentsListElement")
|
|
|
11085
11085
|
function ContentsListById({ contentIds }) {
|
|
11086
11086
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11087
11087
|
const data = useDataListRetriever({
|
|
11088
|
-
module:
|
|
11089
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
11088
|
+
module: _chunk3HL4VFJ4js.Modules.Content,
|
|
11089
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.ContentService.findMany(params), "retriever"),
|
|
11090
11090
|
retrieverParams: { contentIds }
|
|
11091
11091
|
});
|
|
11092
11092
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11094,7 +11094,7 @@ function ContentsListById({ contentIds }) {
|
|
|
11094
11094
|
{
|
|
11095
11095
|
data,
|
|
11096
11096
|
fields: ["name" /* name */, "authors" /* authors */, "updatedAt" /* updatedAt */],
|
|
11097
|
-
tableGeneratorType:
|
|
11097
|
+
tableGeneratorType: _chunk3HL4VFJ4js.Modules.Content,
|
|
11098
11098
|
title: t(`generic.relevant`)
|
|
11099
11099
|
}
|
|
11100
11100
|
);
|
|
@@ -11107,8 +11107,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListById, "ContentsListById");
|
|
|
11107
11107
|
function RelevantContentsList({ id }) {
|
|
11108
11108
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11109
11109
|
const data = useDataListRetriever({
|
|
11110
|
-
module:
|
|
11111
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
11110
|
+
module: _chunk3HL4VFJ4js.Modules.Content,
|
|
11111
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.ContentService.findRelevant(params), "retriever"),
|
|
11112
11112
|
retrieverParams: { id }
|
|
11113
11113
|
});
|
|
11114
11114
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11116,7 +11116,7 @@ function RelevantContentsList({ id }) {
|
|
|
11116
11116
|
{
|
|
11117
11117
|
data,
|
|
11118
11118
|
fields: ["name" /* name */, "authors" /* authors */, "relevance" /* relevance */, "updatedAt" /* updatedAt */],
|
|
11119
|
-
tableGeneratorType:
|
|
11119
|
+
tableGeneratorType: _chunk3HL4VFJ4js.Modules.Content,
|
|
11120
11120
|
title: t(`generic.relevant`)
|
|
11121
11121
|
}
|
|
11122
11122
|
);
|
|
@@ -11169,12 +11169,12 @@ function NotificationsList({ archived }) {
|
|
|
11169
11169
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11170
11170
|
const generateUrl = usePageUrlGenerator();
|
|
11171
11171
|
const data = useDataListRetriever({
|
|
11172
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
11172
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.NotificationService.findMany(params), "retriever"),
|
|
11173
11173
|
retrieverParams: { isArchived: archived },
|
|
11174
|
-
module:
|
|
11174
|
+
module: _chunk3HL4VFJ4js.Modules.Notification
|
|
11175
11175
|
});
|
|
11176
11176
|
const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
|
|
11177
|
-
await
|
|
11177
|
+
await _chunk3HL4VFJ4js.NotificationService.archive({ id: notification.id });
|
|
11178
11178
|
data.removeElement(notification);
|
|
11179
11179
|
}, "archiveNotification");
|
|
11180
11180
|
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: [
|
|
@@ -11188,7 +11188,7 @@ function NotificationsList({ archived }) {
|
|
|
11188
11188
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _316 => _316.data, 'optionalAccess', _317 => _317.map, 'call', _318 => _318((notification) => {
|
|
11189
11189
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
11190
11190
|
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: [
|
|
11191
|
-
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, Link2, { href: generateUrl({ page:
|
|
11191
|
+
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, Link2, { href: generateUrl({ page: _chunk3HL4VFJ4js.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" }),
|
|
11192
11192
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
11193
11193
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`foundations.notification.${notification.notificationType}.description`, {
|
|
11194
11194
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
@@ -11497,7 +11497,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
11497
11497
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11498
11498
|
_react.useEffect.call(void 0, () => {
|
|
11499
11499
|
async function checkCompanyAdminDeletability() {
|
|
11500
|
-
const roleUsers = await
|
|
11500
|
+
const roleUsers = await _chunk3HL4VFJ4js.UserService.findAllUsersByRole({
|
|
11501
11501
|
roleId: role.id
|
|
11502
11502
|
});
|
|
11503
11503
|
if (roleUsers.length > 1) setCanRemove(true);
|
|
@@ -11511,7 +11511,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
11511
11511
|
}, [role]);
|
|
11512
11512
|
const remove = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
11513
11513
|
try {
|
|
11514
|
-
await
|
|
11514
|
+
await _chunk3HL4VFJ4js.RoleService.removeUserFromRole({
|
|
11515
11515
|
roleId: role.id,
|
|
11516
11516
|
userId: user.id
|
|
11517
11517
|
});
|
|
@@ -11575,7 +11575,7 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
11575
11575
|
const [roles, setRoles] = _react.useState.call(void 0, []);
|
|
11576
11576
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11577
11577
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (role) => {
|
|
11578
|
-
await
|
|
11578
|
+
await _chunk3HL4VFJ4js.RoleService.addUserToRole({
|
|
11579
11579
|
roleId: role.id,
|
|
11580
11580
|
userId: user.id
|
|
11581
11581
|
});
|
|
@@ -11599,7 +11599,7 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
11599
11599
|
const searchRoles = _react.useCallback.call(void 0,
|
|
11600
11600
|
async (term) => {
|
|
11601
11601
|
setRoles(
|
|
11602
|
-
await
|
|
11602
|
+
await _chunk3HL4VFJ4js.RoleService.findAllRolesUserNotIn({
|
|
11603
11603
|
search: term,
|
|
11604
11604
|
userId: user.id
|
|
11605
11605
|
})
|
|
@@ -11667,16 +11667,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserRoleAdd, "UserRoleAdd");
|
|
|
11667
11667
|
function RolesList() {
|
|
11668
11668
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11669
11669
|
const data = useDataListRetriever({
|
|
11670
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
11670
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.RoleService.findAllRoles(params), "retriever"),
|
|
11671
11671
|
retrieverParams: {},
|
|
11672
|
-
module:
|
|
11672
|
+
module: _chunk3HL4VFJ4js.Modules.Role
|
|
11673
11673
|
});
|
|
11674
11674
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11675
11675
|
ContentListTable,
|
|
11676
11676
|
{
|
|
11677
11677
|
data,
|
|
11678
11678
|
fields: ["name" /* name */, "description" /* description */],
|
|
11679
|
-
tableGeneratorType:
|
|
11679
|
+
tableGeneratorType: _chunk3HL4VFJ4js.Modules.Role,
|
|
11680
11680
|
title: t(`types.roles`, { count: 2 })
|
|
11681
11681
|
}
|
|
11682
11682
|
);
|
|
@@ -11689,16 +11689,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RolesList, "RolesList");
|
|
|
11689
11689
|
function UserRolesList({ user }) {
|
|
11690
11690
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11691
11691
|
const data = useDataListRetriever({
|
|
11692
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
11692
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.RoleService.findAllRolesByUser(params), "retriever"),
|
|
11693
11693
|
retrieverParams: { userId: user.id },
|
|
11694
|
-
module:
|
|
11694
|
+
module: _chunk3HL4VFJ4js.Modules.Role
|
|
11695
11695
|
});
|
|
11696
11696
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11697
11697
|
ContentListTable,
|
|
11698
11698
|
{
|
|
11699
11699
|
data,
|
|
11700
11700
|
fields: ["name" /* name */, "description" /* description */],
|
|
11701
|
-
tableGeneratorType:
|
|
11701
|
+
tableGeneratorType: _chunk3HL4VFJ4js.Modules.Role,
|
|
11702
11702
|
title: t(`types.roles`, { count: 2 })
|
|
11703
11703
|
}
|
|
11704
11704
|
);
|
|
@@ -12082,4 +12082,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserRolesList, "UserRolesList");
|
|
|
12082
12082
|
|
|
12083
12083
|
|
|
12084
12084
|
exports.JsonApiContext = JsonApiContext; exports.useJsonApiConfig = useJsonApiConfig; exports.useJsonApiConfigOptional = useJsonApiConfigOptional; 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.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; 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.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.Avatar = Avatar; exports.AvatarImage = AvatarImage; exports.AvatarFallback = AvatarFallback; 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.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardContent = CardContent; exports.CardFooter = CardFooter; 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 = CollapsibleTrigger2; exports.CollapsibleContent = CollapsibleContent2; 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.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.ContextMenuTrigger = ContextMenuTrigger; exports.ContextMenuGroup = ContextMenuGroup; exports.ContextMenuPortal = ContextMenuPortal; exports.ContextMenuSub = ContextMenuSub; exports.ContextMenuRadioGroup = ContextMenuRadioGroup; exports.ContextMenuSubTrigger = ContextMenuSubTrigger; exports.ContextMenuSubContent = ContextMenuSubContent; exports.ContextMenuContent = ContextMenuContent; exports.ContextMenuItem = ContextMenuItem; exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem; exports.ContextMenuRadioItem = ContextMenuRadioItem; exports.ContextMenuLabel = ContextMenuLabel; 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.DropdownMenuTrigger = DropdownMenuTrigger; exports.DropdownMenuGroup = DropdownMenuGroup; exports.DropdownMenuPortal = DropdownMenuPortal; exports.DropdownMenuSub = DropdownMenuSub; exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup; exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger; exports.DropdownMenuSubContent = DropdownMenuSubContent; exports.DropdownMenuContent = DropdownMenuContent; exports.DropdownMenuItem = DropdownMenuItem; exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem; exports.DropdownMenuRadioItem = DropdownMenuRadioItem; exports.DropdownMenuLabel = DropdownMenuLabel; exports.DropdownMenuSeparator = DropdownMenuSeparator; exports.DropdownMenuShortcut = DropdownMenuShortcut; exports.Label = Label3; exports.Form = Form; exports.FormField = FormField; exports.useFormField = useFormField; exports.FormItem = FormItem; exports.FormLabel = FormLabel; exports.FormControl = FormControl; exports.FormDescription = FormDescription; exports.FormMessage = FormMessage; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.Input = Input; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuViewport = NavigationMenuViewport; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.Popover = Popover; exports.PopoverTrigger = PopoverTrigger; exports.PopoverAnchor = PopoverAnchor; exports.PopoverContent = PopoverContent; exports.Progress = Progress; exports.RadioGroup = RadioGroup3; 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.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.Separator = Separator4; 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.SIDEBAR_WIDTH = SIDEBAR_WIDTH; exports.SIDEBAR_WIDTH_MOBILE = SIDEBAR_WIDTH_MOBILE; exports.SIDEBAR_WIDTH_ICON = SIDEBAR_WIDTH_ICON; 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.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.Textarea = Textarea; 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 = Link2; exports.MultiSelect = MultiSelect; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.Header = Header2; 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.FormCheckbox = FormCheckbox; exports.FormContainerGeneric = FormContainerGeneric; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.PasswordInput = PasswordInput; exports.FormPassword = FormPassword; exports.FormPlaceAutocomplete = FormPlaceAutocomplete; exports.FormSelect = FormSelect; exports.FormSlider = FormSlider; exports.FormSwitch = FormSwitch; exports.FormTextarea = FormTextarea; exports.FormFeatures = FormFeatures; exports.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; exports.AuthContainer = AuthContainer; exports.LandingComponent = LandingComponent; exports.AcceptInvitation = AcceptInvitation; exports.ActivateAccount = ActivateAccount; exports.Cookies = Cookies; exports.ForgotPassword = ForgotPassword; exports.Login = Login; exports.Logout = Logout; exports.RefreshUser = RefreshUser; exports.ResetPassword = ResetPassword; exports.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationSecurityForm = CompanyConfigurationSecurityForm; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.RoleProvider = RoleProvider; exports.useRoleContext = useRoleContext; exports.RoleDetails = RoleDetails; exports.RoleContainer = RoleContainer; exports.FormRoles = FormRoles; exports.RemoveUserFromRole = RemoveUserFromRole; exports.UserRoleAdd = UserRoleAdd; exports.useRoleTableStructure = useRoleTableStructure; exports.RolesList = RolesList; exports.UserRolesList = UserRolesList; exports.AddUserToRole = AddUserToRole; exports.UserAvatarEditor = UserAvatarEditor; exports.UserDeleter = UserDeleter; exports.UserEditor = UserEditor; exports.UserMultiSelect = UserMultiSelect; exports.UserReactivator = UserReactivator; exports.UserResentInvitationEmail = UserResentInvitationEmail; exports.UserSelector = UserSelector; exports.UserProvider = UserProvider; exports.useUserContext = useUserContext; exports.CompanyProvider = CompanyProvider; exports.useCompanyContext = useCompanyContext; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.useContentTableStructure = useContentTableStructure;
|
|
12085
|
-
//# sourceMappingURL=chunk-
|
|
12085
|
+
//# sourceMappingURL=chunk-HYAMXMLI.js.map
|