@carlonicora/nextjs-jsonapi 1.9.1 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BlockNoteEditor-TF7MR7IP.mjs → BlockNoteEditor-2GCDAIKS.mjs} +5 -5
- package/dist/{BlockNoteEditor-PX5RPSZR.js → BlockNoteEditor-PQTIP7BM.js} +15 -15
- package/dist/{BlockNoteEditor-PX5RPSZR.js.map → BlockNoteEditor-PQTIP7BM.js.map} +1 -1
- package/dist/JsonApiRequest-FXZCYIER.js +24 -0
- package/dist/{JsonApiRequest-FZAFAES3.js.map → JsonApiRequest-FXZCYIER.js.map} +1 -1
- package/dist/{JsonApiRequest-ARXYJ2AG.mjs → JsonApiRequest-HFWXMKMA.mjs} +2 -2
- package/dist/{chunk-I7OQ5WKX.js → chunk-6YD42BP6.js} +3 -3
- package/dist/{chunk-I7OQ5WKX.js.map → chunk-6YD42BP6.js.map} +1 -1
- package/dist/{chunk-LPBABDEP.js → chunk-AE3J2MAT.js} +45 -38
- package/dist/chunk-AE3J2MAT.js.map +1 -0
- package/dist/{chunk-PFBYNJ2R.js → chunk-AHEG4IYG.js} +422 -406
- package/dist/chunk-AHEG4IYG.js.map +1 -0
- package/dist/{chunk-UVXEP2ED.js → chunk-FPZPD4JI.js} +37 -12
- package/dist/chunk-FPZPD4JI.js.map +1 -0
- package/dist/{chunk-33UYFFIK.mjs → chunk-SJIVGCNM.mjs} +2 -2
- package/dist/{chunk-CHNXYTKO.mjs → chunk-TGBXBUWM.mjs} +37 -12
- package/dist/chunk-TGBXBUWM.mjs.map +1 -0
- package/dist/{chunk-MOVONDSX.mjs → chunk-UJY3EIUK.mjs} +12 -5
- package/dist/chunk-UJY3EIUK.mjs.map +1 -0
- package/dist/{chunk-AEZWDB5X.mjs → chunk-VSB546UN.mjs} +33 -17
- package/dist/{chunk-AEZWDB5X.mjs.map → chunk-VSB546UN.mjs.map} +1 -1
- package/dist/client/index.js +5 -5
- package/dist/client/index.mjs +4 -4
- package/dist/components/index.js +5 -5
- package/dist/components/index.mjs +4 -4
- package/dist/contexts/index.js +5 -5
- package/dist/contexts/index.mjs +4 -4
- package/dist/core/index.d.mts +6 -1
- package/dist/core/index.d.ts +6 -1
- package/dist/core/index.js +3 -3
- package/dist/core/index.mjs +2 -2
- package/dist/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/dist/server/index.js +12 -12
- package/dist/server/index.mjs +2 -2
- package/package.json +1 -1
- package/src/components/pages/PageContentContainer.tsx +22 -9
- package/src/core/registry/ModuleRegistry.ts +16 -1
- package/src/core/registry/bootstrapStore.ts +51 -11
- package/dist/JsonApiRequest-FZAFAES3.js +0 -24
- package/dist/chunk-CHNXYTKO.mjs.map +0 -1
- package/dist/chunk-LPBABDEP.js.map +0 -1
- package/dist/chunk-MOVONDSX.mjs.map +0 -1
- package/dist/chunk-PFBYNJ2R.js.map +0 -1
- package/dist/chunk-UVXEP2ED.js.map +0 -1
- /package/dist/{BlockNoteEditor-TF7MR7IP.mjs.map → BlockNoteEditor-2GCDAIKS.mjs.map} +0 -0
- /package/dist/{JsonApiRequest-ARXYJ2AG.mjs.map → JsonApiRequest-HFWXMKMA.mjs.map} +0 -0
- /package/dist/{chunk-33UYFFIK.mjs.map → chunk-SJIVGCNM.mjs.map} +0 -0
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk6YD42BP6js = require('./chunk-6YD42BP6.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -30,7 +30,7 @@ var _chunkI7OQ5WKXjs = require('./chunk-I7OQ5WKX.js');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkAE3J2MATjs = require('./chunk-AE3J2MAT.js');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
var _chunk7QVYU63Ejs = require('./chunk-7QVYU63E.js');
|
|
@@ -156,7 +156,7 @@ function useDataListRetriever(params) {
|
|
|
156
156
|
const abortControllerRef = _react.useRef.call(void 0, null);
|
|
157
157
|
const isFetchingRef = _react.useRef.call(void 0, false);
|
|
158
158
|
const resolvedType = params.module;
|
|
159
|
-
const resolvedService =
|
|
159
|
+
const resolvedService = _chunkAE3J2MATjs.ClientAbstractService;
|
|
160
160
|
const parsePageParams = _react.useCallback.call(void 0, (url) => {
|
|
161
161
|
if (!url) return null;
|
|
162
162
|
try {
|
|
@@ -857,20 +857,20 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
857
857
|
if (!token && dehydratedUser) setDehydratedUser(null);
|
|
858
858
|
}, [dehydratedUser, setDehydratedUser]);
|
|
859
859
|
const matchUrlToModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
860
|
-
const moduleKeys = Object.getOwnPropertyNames(
|
|
860
|
+
const moduleKeys = Object.getOwnPropertyNames(_chunkAE3J2MATjs.Modules).filter(
|
|
861
861
|
(key) => key !== "prototype" && key !== "_factory" && key !== "length" && key !== "name"
|
|
862
862
|
);
|
|
863
863
|
const matchedModuleKey = moduleKeys.find((key) => {
|
|
864
|
-
const descriptor2 = Object.getOwnPropertyDescriptor(
|
|
864
|
+
const descriptor2 = Object.getOwnPropertyDescriptor(_chunkAE3J2MATjs.Modules, key);
|
|
865
865
|
if (!_optionalChain([descriptor2, 'optionalAccess', _25 => _25.get])) return false;
|
|
866
|
-
const selectedModule = descriptor2.get.call(
|
|
866
|
+
const selectedModule = descriptor2.get.call(_chunkAE3J2MATjs.Modules);
|
|
867
867
|
return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _26 => _26.pageUrl, 'optionalAccess', _27 => _27.toLowerCase, 'call', _28 => _28()]));
|
|
868
868
|
});
|
|
869
869
|
if (!matchedModuleKey) return void 0;
|
|
870
|
-
const descriptor = Object.getOwnPropertyDescriptor(
|
|
871
|
-
return _optionalChain([descriptor, 'optionalAccess', _29 => _29.get, 'optionalAccess', _30 => _30.call, 'call', _31 => _31(
|
|
870
|
+
const descriptor = Object.getOwnPropertyDescriptor(_chunkAE3J2MATjs.Modules, matchedModuleKey);
|
|
871
|
+
return _optionalChain([descriptor, 'optionalAccess', _29 => _29.get, 'optionalAccess', _30 => _30.call, 'call', _31 => _31(_chunkAE3J2MATjs.Modules)]);
|
|
872
872
|
}, "matchUrlToModule");
|
|
873
|
-
const currentUser = dehydratedUser ?
|
|
873
|
+
const currentUser = dehydratedUser ? _chunkAE3J2MATjs.rehydrate.call(void 0, _chunkAE3J2MATjs.Modules.User, dehydratedUser) : null;
|
|
874
874
|
const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _32 => _32.company]), () => ( null));
|
|
875
875
|
const setUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (user) => {
|
|
876
876
|
if (user) setDehydratedUser(user.dehydrate());
|
|
@@ -881,21 +881,21 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
881
881
|
return !!_optionalChain([currentUser, 'access', _33 => _33.roles, 'optionalAccess', _34 => _34.some, 'call', _35 => _35((userRole) => userRole.id === roleId)]);
|
|
882
882
|
}, "hasRole");
|
|
883
883
|
const hasAccesToFeature = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (featureIdentifier) => {
|
|
884
|
-
if (hasRole(
|
|
884
|
+
if (hasRole(_chunk6YD42BP6js.getRoleId.call(void 0, ).Administrator)) return true;
|
|
885
885
|
if (!company) return false;
|
|
886
886
|
return company.features.some((feature) => feature.id === featureIdentifier);
|
|
887
887
|
}, "hasAccesToFeature");
|
|
888
888
|
function hasPermissionToModule(params) {
|
|
889
889
|
if (!currentUser) return false;
|
|
890
890
|
if (!!params.module.feature && !hasAccesToFeature(params.module.feature)) return false;
|
|
891
|
-
return
|
|
891
|
+
return _chunkAE3J2MATjs.checkPermissions.call(void 0, { module: params.module, action: params.action, data: params.data, user: currentUser });
|
|
892
892
|
}
|
|
893
893
|
_chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModule, "hasPermissionToModule");
|
|
894
894
|
function hasPermissionToModules(params) {
|
|
895
895
|
if (!currentUser) return false;
|
|
896
896
|
if (!params.modules.every((module) => !module.feature || hasAccesToFeature(module.feature))) return false;
|
|
897
897
|
return params.modules.every(
|
|
898
|
-
(module) =>
|
|
898
|
+
(module) => _chunkAE3J2MATjs.checkPermissions.call(void 0, { module, action: params.action, data: params.data, user: currentUser })
|
|
899
899
|
);
|
|
900
900
|
}
|
|
901
901
|
_chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModules, "hasPermissionToModules");
|
|
@@ -951,7 +951,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
951
951
|
const [existingUsers, setExistingUsers] = _react.useState.call(void 0, null);
|
|
952
952
|
_react.useEffect.call(void 0, () => {
|
|
953
953
|
const fetchExistingUsers = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
954
|
-
setExistingUsers(await
|
|
954
|
+
setExistingUsers(await _chunkAE3J2MATjs.UserService.findMany({ roleId: role.id, fetchAll: true }));
|
|
955
955
|
}, "fetchExistingUsers");
|
|
956
956
|
if (show) {
|
|
957
957
|
setExistingUsers(null);
|
|
@@ -959,7 +959,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
959
959
|
}
|
|
960
960
|
}, [show]);
|
|
961
961
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (user) => {
|
|
962
|
-
await
|
|
962
|
+
await _chunkAE3J2MATjs.RoleService.addUserToRole({
|
|
963
963
|
roleId: role.id,
|
|
964
964
|
userId: user.id
|
|
965
965
|
});
|
|
@@ -975,9 +975,9 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
975
975
|
}, "addUserToRole");
|
|
976
976
|
const data = useDataListRetriever({
|
|
977
977
|
ready: !!company && show,
|
|
978
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
978
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAE3J2MATjs.UserService.findAllUsers(params), "retriever"),
|
|
979
979
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _36 => _36.id]) },
|
|
980
|
-
module:
|
|
980
|
+
module: _chunkAE3J2MATjs.Modules.User
|
|
981
981
|
});
|
|
982
982
|
_react.useEffect.call(void 0, () => {
|
|
983
983
|
if (!!company && show) {
|
|
@@ -1025,13 +1025,13 @@ var _reacticons = require('@radix-ui/react-icons');
|
|
|
1025
1025
|
|
|
1026
1026
|
|
|
1027
1027
|
var Accordion = AccordionPrimitive.Root;
|
|
1028
|
-
var AccordionItem = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AccordionPrimitive.Item, { ref, className:
|
|
1028
|
+
var AccordionItem = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AccordionPrimitive.Item, { ref, className: _chunkAE3J2MATjs.cn.call(void 0, "border-b", className), ...props }));
|
|
1029
1029
|
AccordionItem.displayName = "AccordionItem";
|
|
1030
1030
|
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,
|
|
1031
1031
|
AccordionPrimitive.Trigger,
|
|
1032
1032
|
{
|
|
1033
1033
|
ref,
|
|
1034
|
-
className:
|
|
1034
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all", className),
|
|
1035
1035
|
...props,
|
|
1036
1036
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center", children: [
|
|
1037
1037
|
children,
|
|
@@ -1046,7 +1046,7 @@ var AccordionContent = React2.forwardRef(({ className, children, ...props }, ref
|
|
|
1046
1046
|
ref,
|
|
1047
1047
|
className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
1048
1048
|
...props,
|
|
1049
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1049
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkAE3J2MATjs.cn.call(void 0, "pb-4 pt-0", className), children })
|
|
1050
1050
|
}
|
|
1051
1051
|
));
|
|
1052
1052
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
@@ -1069,14 +1069,14 @@ var alertVariants = _classvarianceauthority.cva.call(void 0,
|
|
|
1069
1069
|
}
|
|
1070
1070
|
}
|
|
1071
1071
|
);
|
|
1072
|
-
var Alert = React3.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, role: "alert", className:
|
|
1072
|
+
var Alert = React3.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, role: "alert", className: _chunkAE3J2MATjs.cn.call(void 0, alertVariants({ variant }), className), ...props }));
|
|
1073
1073
|
Alert.displayName = "Alert";
|
|
1074
1074
|
var AlertTitle = React3.forwardRef(
|
|
1075
|
-
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h5", { ref, className:
|
|
1075
|
+
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h5", { ref, className: _chunkAE3J2MATjs.cn.call(void 0, "mb-1 font-medium leading-none tracking-tight", className), ...props })
|
|
1076
1076
|
);
|
|
1077
1077
|
AlertTitle.displayName = "AlertTitle";
|
|
1078
1078
|
var AlertDescription = React3.forwardRef(
|
|
1079
|
-
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
1079
|
+
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkAE3J2MATjs.cn.call(void 0, "text-sm [&_p]:leading-relaxed", className), ...props })
|
|
1080
1080
|
);
|
|
1081
1081
|
AlertDescription.displayName = "AlertDescription";
|
|
1082
1082
|
|
|
@@ -1122,7 +1122,7 @@ function Button({
|
|
|
1122
1122
|
...props
|
|
1123
1123
|
}) {
|
|
1124
1124
|
const Comp = asChild ? _reactslot.Slot : "button";
|
|
1125
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Comp, { "data-slot": "button", className:
|
|
1125
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Comp, { "data-slot": "button", className: _chunkAE3J2MATjs.cn.call(void 0, buttonVariants({ variant, size, className })), ...props });
|
|
1126
1126
|
}
|
|
1127
1127
|
_chunk7QVYU63Ejs.__name.call(void 0, Button, "Button");
|
|
1128
1128
|
|
|
@@ -1134,7 +1134,7 @@ var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
|
1134
1134
|
var AlertDialogOverlay = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1135
1135
|
AlertDialogPrimitive.Overlay,
|
|
1136
1136
|
{
|
|
1137
|
-
className:
|
|
1137
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1138
1138
|
"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",
|
|
1139
1139
|
className
|
|
1140
1140
|
),
|
|
@@ -1149,7 +1149,7 @@ var AlertDialogContent = React4.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1149
1149
|
AlertDialogPrimitive.Content,
|
|
1150
1150
|
{
|
|
1151
1151
|
ref,
|
|
1152
|
-
className:
|
|
1152
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1153
1153
|
"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",
|
|
1154
1154
|
className
|
|
1155
1155
|
),
|
|
@@ -1164,7 +1164,7 @@ var AlertDialogHeader = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
1164
1164
|
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1165
1165
|
"div",
|
|
1166
1166
|
{
|
|
1167
|
-
className:
|
|
1167
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1168
1168
|
"flex flex-col space-y-2 text-center sm:text-left",
|
|
1169
1169
|
className
|
|
1170
1170
|
),
|
|
@@ -1178,7 +1178,7 @@ var AlertDialogFooter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
1178
1178
|
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1179
1179
|
"div",
|
|
1180
1180
|
{
|
|
1181
|
-
className:
|
|
1181
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1182
1182
|
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
1183
1183
|
className
|
|
1184
1184
|
),
|
|
@@ -1190,7 +1190,7 @@ var AlertDialogTitle = React4.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1190
1190
|
AlertDialogPrimitive.Title,
|
|
1191
1191
|
{
|
|
1192
1192
|
ref,
|
|
1193
|
-
className:
|
|
1193
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "text-lg font-semibold", className),
|
|
1194
1194
|
...props
|
|
1195
1195
|
}
|
|
1196
1196
|
));
|
|
@@ -1199,7 +1199,7 @@ var AlertDialogDescription = React4.forwardRef(({ className, ...props }, ref) =>
|
|
|
1199
1199
|
AlertDialogPrimitive.Description,
|
|
1200
1200
|
{
|
|
1201
1201
|
ref,
|
|
1202
|
-
className:
|
|
1202
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "text-sm text-muted-foreground", className),
|
|
1203
1203
|
...props
|
|
1204
1204
|
}
|
|
1205
1205
|
));
|
|
@@ -1208,7 +1208,7 @@ var AlertDialogAction = React4.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1208
1208
|
AlertDialogPrimitive.Action,
|
|
1209
1209
|
{
|
|
1210
1210
|
ref,
|
|
1211
|
-
className:
|
|
1211
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, buttonVariants(), className),
|
|
1212
1212
|
...props
|
|
1213
1213
|
}
|
|
1214
1214
|
));
|
|
@@ -1217,7 +1217,7 @@ var AlertDialogCancel = React4.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1217
1217
|
AlertDialogPrimitive.Cancel,
|
|
1218
1218
|
{
|
|
1219
1219
|
ref,
|
|
1220
|
-
className:
|
|
1220
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1221
1221
|
buttonVariants({ variant: "outline" }),
|
|
1222
1222
|
"mt-2 sm:mt-0",
|
|
1223
1223
|
className
|
|
@@ -1235,7 +1235,7 @@ var Avatar = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
1235
1235
|
AvatarPrimitive.Root,
|
|
1236
1236
|
{
|
|
1237
1237
|
ref,
|
|
1238
|
-
className:
|
|
1238
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1239
1239
|
"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
|
|
1240
1240
|
className
|
|
1241
1241
|
),
|
|
@@ -1247,7 +1247,7 @@ var AvatarImage = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1247
1247
|
AvatarPrimitive.Image,
|
|
1248
1248
|
{
|
|
1249
1249
|
ref,
|
|
1250
|
-
className:
|
|
1250
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "aspect-square h-full w-full", className),
|
|
1251
1251
|
...props
|
|
1252
1252
|
}
|
|
1253
1253
|
));
|
|
@@ -1256,7 +1256,7 @@ var AvatarFallback = React5.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1256
1256
|
AvatarPrimitive.Fallback,
|
|
1257
1257
|
{
|
|
1258
1258
|
ref,
|
|
1259
|
-
className:
|
|
1259
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1260
1260
|
"flex h-full w-full items-center justify-center rounded-full bg-muted",
|
|
1261
1261
|
className
|
|
1262
1262
|
),
|
|
@@ -1295,7 +1295,7 @@ var badgeVariants = _classvarianceauthority.cva.call(void 0,
|
|
|
1295
1295
|
}
|
|
1296
1296
|
);
|
|
1297
1297
|
function Badge({ className, variant, ...props }) {
|
|
1298
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1298
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkAE3J2MATjs.cn.call(void 0, badgeVariants({ variant }), className), ...props });
|
|
1299
1299
|
}
|
|
1300
1300
|
_chunk7QVYU63Ejs.__name.call(void 0, Badge, "Badge");
|
|
1301
1301
|
|
|
@@ -1310,7 +1310,7 @@ var BreadcrumbList = React6.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1310
1310
|
"ol",
|
|
1311
1311
|
{
|
|
1312
1312
|
ref,
|
|
1313
|
-
className:
|
|
1313
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1314
1314
|
"flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",
|
|
1315
1315
|
className
|
|
1316
1316
|
),
|
|
@@ -1322,7 +1322,7 @@ var BreadcrumbItem = React6.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1322
1322
|
"li",
|
|
1323
1323
|
{
|
|
1324
1324
|
ref,
|
|
1325
|
-
className:
|
|
1325
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "inline-flex items-center gap-1.5", className),
|
|
1326
1326
|
...props
|
|
1327
1327
|
}
|
|
1328
1328
|
));
|
|
@@ -1333,7 +1333,7 @@ var BreadcrumbLink = React6.forwardRef(({ asChild, className, ...props }, ref) =
|
|
|
1333
1333
|
Comp,
|
|
1334
1334
|
{
|
|
1335
1335
|
ref,
|
|
1336
|
-
className:
|
|
1336
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "transition-colors hover:text-foreground", className),
|
|
1337
1337
|
...props
|
|
1338
1338
|
}
|
|
1339
1339
|
);
|
|
@@ -1346,7 +1346,7 @@ var BreadcrumbPage = React6.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1346
1346
|
role: "link",
|
|
1347
1347
|
"aria-disabled": "true",
|
|
1348
1348
|
"aria-current": "page",
|
|
1349
|
-
className:
|
|
1349
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "font-normal text-foreground", className),
|
|
1350
1350
|
...props
|
|
1351
1351
|
}
|
|
1352
1352
|
));
|
|
@@ -1360,7 +1360,7 @@ var BreadcrumbSeparator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
1360
1360
|
{
|
|
1361
1361
|
role: "presentation",
|
|
1362
1362
|
"aria-hidden": "true",
|
|
1363
|
-
className:
|
|
1363
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "[&>svg]:h-3.5 [&>svg]:w-3.5", className),
|
|
1364
1364
|
...props,
|
|
1365
1365
|
children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.ChevronRightIcon, {})))
|
|
1366
1366
|
}
|
|
@@ -1374,7 +1374,7 @@ var BreadcrumbEllipsis = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
1374
1374
|
{
|
|
1375
1375
|
role: "presentation",
|
|
1376
1376
|
"aria-hidden": "true",
|
|
1377
|
-
className:
|
|
1377
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "flex h-9 w-9 items-center justify-center", className),
|
|
1378
1378
|
...props,
|
|
1379
1379
|
children: [
|
|
1380
1380
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.DotsHorizontalIcon, { className: "h-4 w-4" }),
|
|
@@ -1393,55 +1393,55 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
|
1393
1393
|
_reactdaypicker.DayPicker,
|
|
1394
1394
|
{
|
|
1395
1395
|
showOutsideDays,
|
|
1396
|
-
className:
|
|
1396
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "p-3", className),
|
|
1397
1397
|
classNames: {
|
|
1398
1398
|
months: `relative flex ${defaultClassNames.month}`,
|
|
1399
1399
|
month_caption: `relative mx-10 flex h-7 items-center justify-center ${defaultClassNames.month_caption}`,
|
|
1400
|
-
weekdays:
|
|
1401
|
-
weekday:
|
|
1402
|
-
month:
|
|
1403
|
-
caption_label:
|
|
1404
|
-
button_next:
|
|
1400
|
+
weekdays: _chunkAE3J2MATjs.cn.call(void 0, "flex flex-row", _optionalChain([classNames, 'optionalAccess', _37 => _37.weekdays])),
|
|
1401
|
+
weekday: _chunkAE3J2MATjs.cn.call(void 0, "w-8 text-sm font-normal text-muted-foreground", _optionalChain([classNames, 'optionalAccess', _38 => _38.weekday])),
|
|
1402
|
+
month: _chunkAE3J2MATjs.cn.call(void 0, "w-full", _optionalChain([classNames, 'optionalAccess', _39 => _39.month])),
|
|
1403
|
+
caption_label: _chunkAE3J2MATjs.cn.call(void 0, "truncate text-sm font-medium", _optionalChain([classNames, 'optionalAccess', _40 => _40.caption_label])),
|
|
1404
|
+
button_next: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1405
1405
|
buttonVariants({ variant: "outline" }),
|
|
1406
1406
|
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100 absolute right-1 [&_svg]:fill-foreground",
|
|
1407
1407
|
_optionalChain([classNames, 'optionalAccess', _41 => _41.button_next])
|
|
1408
1408
|
),
|
|
1409
|
-
button_previous:
|
|
1409
|
+
button_previous: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1410
1410
|
buttonVariants({ variant: "outline" }),
|
|
1411
1411
|
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100 absolute left-1 [&_svg]:fill-foreground",
|
|
1412
1412
|
_optionalChain([classNames, 'optionalAccess', _42 => _42.button_previous])
|
|
1413
1413
|
),
|
|
1414
|
-
nav:
|
|
1415
|
-
month_grid:
|
|
1416
|
-
week:
|
|
1417
|
-
day:
|
|
1418
|
-
day_button:
|
|
1414
|
+
nav: _chunkAE3J2MATjs.cn.call(void 0, "flex items-start", _optionalChain([classNames, 'optionalAccess', _43 => _43.nav])),
|
|
1415
|
+
month_grid: _chunkAE3J2MATjs.cn.call(void 0, "mx-auto mt-4", _optionalChain([classNames, 'optionalAccess', _44 => _44.month_grid])),
|
|
1416
|
+
week: _chunkAE3J2MATjs.cn.call(void 0, "mt-2 flex w-max items-start", _optionalChain([classNames, 'optionalAccess', _45 => _45.week])),
|
|
1417
|
+
day: _chunkAE3J2MATjs.cn.call(void 0, "flex size-8 flex-1 items-center justify-center p-0 text-sm", _optionalChain([classNames, 'optionalAccess', _46 => _46.day])),
|
|
1418
|
+
day_button: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1419
1419
|
"size-8 rounded-md p-0 font-normal transition-none aria-selected:opacity-100",
|
|
1420
1420
|
_optionalChain([classNames, 'optionalAccess', _47 => _47.day_button])
|
|
1421
1421
|
),
|
|
1422
|
-
range_start:
|
|
1422
|
+
range_start: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1423
1423
|
"bg-accent [&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground day-range-start rounded-s-md",
|
|
1424
1424
|
_optionalChain([classNames, 'optionalAccess', _48 => _48.range_start])
|
|
1425
1425
|
),
|
|
1426
|
-
range_middle:
|
|
1426
|
+
range_middle: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1427
1427
|
"bg-accent !text-foreground [&>button]:bg-transparent [&>button]:!text-foreground [&>button]:hover:bg-transparent [&>button]:hover:!text-foreground",
|
|
1428
1428
|
_optionalChain([classNames, 'optionalAccess', _49 => _49.range_middle])
|
|
1429
1429
|
),
|
|
1430
|
-
range_end:
|
|
1430
|
+
range_end: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1431
1431
|
"bg-accent [&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground day-range-end rounded-e-md",
|
|
1432
1432
|
_optionalChain([classNames, 'optionalAccess', _50 => _50.range_end])
|
|
1433
1433
|
),
|
|
1434
|
-
selected:
|
|
1434
|
+
selected: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1435
1435
|
"[&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground",
|
|
1436
1436
|
_optionalChain([classNames, 'optionalAccess', _51 => _51.selected])
|
|
1437
1437
|
),
|
|
1438
|
-
today:
|
|
1439
|
-
outside:
|
|
1438
|
+
today: _chunkAE3J2MATjs.cn.call(void 0, "[&>button]:bg-accent [&>button]:text-accent-foreground", _optionalChain([classNames, 'optionalAccess', _52 => _52.today])),
|
|
1439
|
+
outside: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1440
1440
|
"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",
|
|
1441
1441
|
_optionalChain([classNames, 'optionalAccess', _53 => _53.outside])
|
|
1442
1442
|
),
|
|
1443
|
-
disabled:
|
|
1444
|
-
hidden:
|
|
1443
|
+
disabled: _chunkAE3J2MATjs.cn.call(void 0, "text-muted-foreground opacity-50", _optionalChain([classNames, 'optionalAccess', _54 => _54.disabled])),
|
|
1444
|
+
hidden: _chunkAE3J2MATjs.cn.call(void 0, "invisible flex-1", _optionalChain([classNames, 'optionalAccess', _55 => _55.hidden])),
|
|
1445
1445
|
...classNames
|
|
1446
1446
|
},
|
|
1447
1447
|
...props
|
|
@@ -1454,26 +1454,26 @@ Calendar.displayName = "Calendar";
|
|
|
1454
1454
|
// src/shadcnui/ui/card.tsx
|
|
1455
1455
|
|
|
1456
1456
|
|
|
1457
|
-
var Card = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
1457
|
+
var Card = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkAE3J2MATjs.cn.call(void 0, "rounded-xl border bg-card text-card-foreground shadow", className), ...props }));
|
|
1458
1458
|
Card.displayName = "Card";
|
|
1459
1459
|
var CardHeader = React7.forwardRef(
|
|
1460
|
-
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
1460
|
+
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkAE3J2MATjs.cn.call(void 0, "flex flex-col space-y-1.5 p-6", className), ...props })
|
|
1461
1461
|
);
|
|
1462
1462
|
CardHeader.displayName = "CardHeader";
|
|
1463
1463
|
var CardTitle = React7.forwardRef(
|
|
1464
|
-
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
1464
|
+
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkAE3J2MATjs.cn.call(void 0, "font-semibold leading-none tracking-tight", className), ...props })
|
|
1465
1465
|
);
|
|
1466
1466
|
CardTitle.displayName = "CardTitle";
|
|
1467
1467
|
var CardDescription = React7.forwardRef(
|
|
1468
|
-
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
1468
|
+
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkAE3J2MATjs.cn.call(void 0, "text-sm text-muted-foreground", className), ...props })
|
|
1469
1469
|
);
|
|
1470
1470
|
CardDescription.displayName = "CardDescription";
|
|
1471
1471
|
var CardContent = React7.forwardRef(
|
|
1472
|
-
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
1472
|
+
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkAE3J2MATjs.cn.call(void 0, "p-6 pt-0", className), ...props })
|
|
1473
1473
|
);
|
|
1474
1474
|
CardContent.displayName = "CardContent";
|
|
1475
1475
|
var CardFooter = React7.forwardRef(
|
|
1476
|
-
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
1476
|
+
({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkAE3J2MATjs.cn.call(void 0, "flex items-center p-6 pt-0", className), ...props })
|
|
1477
1477
|
);
|
|
1478
1478
|
CardFooter.displayName = "CardFooter";
|
|
1479
1479
|
|
|
@@ -1562,7 +1562,7 @@ var Carousel = React8.forwardRef(
|
|
|
1562
1562
|
{
|
|
1563
1563
|
ref,
|
|
1564
1564
|
onKeyDownCapture: handleKeyDown,
|
|
1565
|
-
className:
|
|
1565
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "relative", className),
|
|
1566
1566
|
role: "region",
|
|
1567
1567
|
"aria-roledescription": "carousel",
|
|
1568
1568
|
...props,
|
|
@@ -1581,7 +1581,7 @@ var CarouselContent = React8.forwardRef(
|
|
|
1581
1581
|
"div",
|
|
1582
1582
|
{
|
|
1583
1583
|
ref,
|
|
1584
|
-
className:
|
|
1584
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className),
|
|
1585
1585
|
...props
|
|
1586
1586
|
}
|
|
1587
1587
|
) });
|
|
@@ -1597,7 +1597,7 @@ var CarouselItem = React8.forwardRef(
|
|
|
1597
1597
|
ref,
|
|
1598
1598
|
role: "group",
|
|
1599
1599
|
"aria-roledescription": "slide",
|
|
1600
|
-
className:
|
|
1600
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "min-w-0 shrink-0 grow-0 basis-full", orientation === "horizontal" ? "pl-4" : "pt-4", className),
|
|
1601
1601
|
...props
|
|
1602
1602
|
}
|
|
1603
1603
|
);
|
|
@@ -1613,7 +1613,7 @@ var CarouselPrevious = React8.forwardRef(
|
|
|
1613
1613
|
ref,
|
|
1614
1614
|
variant,
|
|
1615
1615
|
size,
|
|
1616
|
-
className:
|
|
1616
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1617
1617
|
"absolute h-8 w-8 rounded-full",
|
|
1618
1618
|
orientation === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
1619
1619
|
className
|
|
@@ -1639,7 +1639,7 @@ var CarouselNext = React8.forwardRef(
|
|
|
1639
1639
|
ref,
|
|
1640
1640
|
variant,
|
|
1641
1641
|
size,
|
|
1642
|
-
className:
|
|
1642
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1643
1643
|
"absolute h-8 w-8 rounded-full",
|
|
1644
1644
|
orientation === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
1645
1645
|
className
|
|
@@ -1685,7 +1685,7 @@ function ChartContainer({
|
|
|
1685
1685
|
{
|
|
1686
1686
|
"data-slot": "chart",
|
|
1687
1687
|
"data-chart": chartId,
|
|
1688
|
-
className:
|
|
1688
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1689
1689
|
"[&_.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",
|
|
1690
1690
|
className
|
|
1691
1691
|
),
|
|
@@ -1750,12 +1750,12 @@ function ChartTooltipContent({
|
|
|
1750
1750
|
return typeof v === "string" || typeof v === "number" ? v : void 0;
|
|
1751
1751
|
})();
|
|
1752
1752
|
if (labelFormatter) {
|
|
1753
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1753
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkAE3J2MATjs.cn.call(void 0, "font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
1754
1754
|
}
|
|
1755
1755
|
if (!value) {
|
|
1756
1756
|
return null;
|
|
1757
1757
|
}
|
|
1758
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1758
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkAE3J2MATjs.cn.call(void 0, "font-medium", labelClassName), children: value });
|
|
1759
1759
|
}, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey]);
|
|
1760
1760
|
if (!active || !_optionalChain([payload, 'optionalAccess', _71 => _71.length])) {
|
|
1761
1761
|
return null;
|
|
@@ -1764,7 +1764,7 @@ function ChartTooltipContent({
|
|
|
1764
1764
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1765
1765
|
"div",
|
|
1766
1766
|
{
|
|
1767
|
-
className:
|
|
1767
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1768
1768
|
"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",
|
|
1769
1769
|
className
|
|
1770
1770
|
),
|
|
@@ -1777,7 +1777,7 @@ function ChartTooltipContent({
|
|
|
1777
1777
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1778
1778
|
"div",
|
|
1779
1779
|
{
|
|
1780
|
-
className:
|
|
1780
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1781
1781
|
"[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
|
|
1782
1782
|
indicator === "dot" && "items-center"
|
|
1783
1783
|
),
|
|
@@ -1785,7 +1785,7 @@ function ChartTooltipContent({
|
|
|
1785
1785
|
_optionalChain([itemConfig, 'optionalAccess', _73 => _73.icon]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1786
1786
|
"div",
|
|
1787
1787
|
{
|
|
1788
|
-
className:
|
|
1788
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "shrink-0 rounded-[2px] border-[var(--color-border)] bg-[var(--color-bg)]", {
|
|
1789
1789
|
"h-2.5 w-2.5": indicator === "dot",
|
|
1790
1790
|
"w-1": indicator === "line",
|
|
1791
1791
|
"w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
|
|
@@ -1800,7 +1800,7 @@ function ChartTooltipContent({
|
|
|
1800
1800
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1801
1801
|
"div",
|
|
1802
1802
|
{
|
|
1803
|
-
className:
|
|
1803
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "flex flex-1 justify-between leading-none", nestLabel ? "items-end" : "items-center"),
|
|
1804
1804
|
children: [
|
|
1805
1805
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid gap-1.5", children: [
|
|
1806
1806
|
nestLabel ? tooltipLabel : null,
|
|
@@ -1832,13 +1832,13 @@ function ChartLegendContent({
|
|
|
1832
1832
|
if (!_optionalChain([payload, 'optionalAccess', _75 => _75.length])) {
|
|
1833
1833
|
return null;
|
|
1834
1834
|
}
|
|
1835
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1835
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkAE3J2MATjs.cn.call(void 0, "flex items-center justify-center gap-4", verticalAlign === "top" ? "pb-3" : "pt-3", className), children: payload.map((item) => {
|
|
1836
1836
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
1837
1837
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1838
1838
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1839
1839
|
"div",
|
|
1840
1840
|
{
|
|
1841
|
-
className:
|
|
1841
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),
|
|
1842
1842
|
children: [
|
|
1843
1843
|
_optionalChain([itemConfig, 'optionalAccess', _76 => _76.icon]) && !hideIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1844
1844
|
"div",
|
|
@@ -1881,7 +1881,7 @@ var Checkbox = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1881
1881
|
CheckboxPrimitive.Root,
|
|
1882
1882
|
{
|
|
1883
1883
|
ref,
|
|
1884
|
-
className:
|
|
1884
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1885
1885
|
"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",
|
|
1886
1886
|
className
|
|
1887
1887
|
),
|
|
@@ -1889,7 +1889,7 @@ var Checkbox = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1889
1889
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1890
1890
|
CheckboxPrimitive.Indicator,
|
|
1891
1891
|
{
|
|
1892
|
-
className:
|
|
1892
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "flex items-center justify-center text-current"),
|
|
1893
1893
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.CheckIcon, { className: "h-4 w-4" })
|
|
1894
1894
|
}
|
|
1895
1895
|
)
|
|
@@ -1921,7 +1921,7 @@ var DialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1921
1921
|
DialogPrimitive.Overlay,
|
|
1922
1922
|
{
|
|
1923
1923
|
ref,
|
|
1924
|
-
className:
|
|
1924
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1925
1925
|
"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",
|
|
1926
1926
|
className
|
|
1927
1927
|
),
|
|
@@ -1935,7 +1935,7 @@ var DialogContent = React11.forwardRef(({ className, children, ...props }, ref)
|
|
|
1935
1935
|
DialogPrimitive.Content,
|
|
1936
1936
|
{
|
|
1937
1937
|
ref,
|
|
1938
|
-
className:
|
|
1938
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1939
1939
|
"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",
|
|
1940
1940
|
className
|
|
1941
1941
|
),
|
|
@@ -1951,20 +1951,20 @@ var DialogContent = React11.forwardRef(({ className, children, ...props }, ref)
|
|
|
1951
1951
|
)
|
|
1952
1952
|
] }));
|
|
1953
1953
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
1954
|
-
var DialogHeader = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1954
|
+
var DialogHeader = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkAE3J2MATjs.cn.call(void 0, "flex flex-col space-y-1.5 text-center sm:text-left", className), ...props }), "DialogHeader");
|
|
1955
1955
|
DialogHeader.displayName = "DialogHeader";
|
|
1956
|
-
var DialogFooter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1956
|
+
var DialogFooter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkAE3J2MATjs.cn.call(void 0, "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props }), "DialogFooter");
|
|
1957
1957
|
DialogFooter.displayName = "DialogFooter";
|
|
1958
1958
|
var DialogTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1959
1959
|
DialogPrimitive.Title,
|
|
1960
1960
|
{
|
|
1961
1961
|
ref,
|
|
1962
|
-
className:
|
|
1962
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "text-lg font-semibold leading-none tracking-tight", className),
|
|
1963
1963
|
...props
|
|
1964
1964
|
}
|
|
1965
1965
|
));
|
|
1966
1966
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
1967
|
-
var DialogDescription = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogPrimitive.Description, { ref, className:
|
|
1967
|
+
var DialogDescription = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogPrimitive.Description, { ref, className: _chunkAE3J2MATjs.cn.call(void 0, "text-sm text-muted-foreground", className), ...props }));
|
|
1968
1968
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
1969
1969
|
|
|
1970
1970
|
// src/shadcnui/ui/command.tsx
|
|
@@ -1973,7 +1973,7 @@ var Command = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1973
1973
|
_cmdk.Command,
|
|
1974
1974
|
{
|
|
1975
1975
|
ref,
|
|
1976
|
-
className:
|
|
1976
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1977
1977
|
"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
|
|
1978
1978
|
className
|
|
1979
1979
|
),
|
|
@@ -1990,7 +1990,7 @@ var CommandInput = React12.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1990
1990
|
_cmdk.Command.Input,
|
|
1991
1991
|
{
|
|
1992
1992
|
ref,
|
|
1993
|
-
className:
|
|
1993
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
1994
1994
|
"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",
|
|
1995
1995
|
className
|
|
1996
1996
|
),
|
|
@@ -2003,7 +2003,7 @@ var CommandList = React12.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2003
2003
|
_cmdk.Command.List,
|
|
2004
2004
|
{
|
|
2005
2005
|
ref,
|
|
2006
|
-
className:
|
|
2006
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "max-h-[300px] overflow-y-auto overflow-x-hidden", className),
|
|
2007
2007
|
...props
|
|
2008
2008
|
}
|
|
2009
2009
|
));
|
|
@@ -2021,7 +2021,7 @@ var CommandGroup = React12.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2021
2021
|
_cmdk.Command.Group,
|
|
2022
2022
|
{
|
|
2023
2023
|
ref,
|
|
2024
|
-
className:
|
|
2024
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2025
2025
|
"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",
|
|
2026
2026
|
className
|
|
2027
2027
|
),
|
|
@@ -2033,7 +2033,7 @@ var CommandSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2033
2033
|
_cmdk.Command.Separator,
|
|
2034
2034
|
{
|
|
2035
2035
|
ref,
|
|
2036
|
-
className:
|
|
2036
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "-mx-1 h-px bg-border", className),
|
|
2037
2037
|
...props
|
|
2038
2038
|
}
|
|
2039
2039
|
));
|
|
@@ -2042,7 +2042,7 @@ var CommandItem = React12.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2042
2042
|
_cmdk.Command.Item,
|
|
2043
2043
|
{
|
|
2044
2044
|
ref,
|
|
2045
|
-
className:
|
|
2045
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2046
2046
|
"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",
|
|
2047
2047
|
className
|
|
2048
2048
|
),
|
|
@@ -2057,7 +2057,7 @@ var CommandShortcut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
2057
2057
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2058
2058
|
"span",
|
|
2059
2059
|
{
|
|
2060
|
-
className:
|
|
2060
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2061
2061
|
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
2062
2062
|
className
|
|
2063
2063
|
),
|
|
@@ -2082,7 +2082,7 @@ var ContextMenuSubTrigger = React13.forwardRef(({ className, inset, children, ..
|
|
|
2082
2082
|
ContextMenuPrimitive.SubTrigger,
|
|
2083
2083
|
{
|
|
2084
2084
|
ref,
|
|
2085
|
-
className:
|
|
2085
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2086
2086
|
"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",
|
|
2087
2087
|
inset && "pl-8",
|
|
2088
2088
|
className
|
|
@@ -2099,7 +2099,7 @@ var ContextMenuSubContent = React13.forwardRef(({ className, ...props }, ref) =>
|
|
|
2099
2099
|
ContextMenuPrimitive.SubContent,
|
|
2100
2100
|
{
|
|
2101
2101
|
ref,
|
|
2102
|
-
className:
|
|
2102
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2103
2103
|
"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",
|
|
2104
2104
|
className
|
|
2105
2105
|
),
|
|
@@ -2111,7 +2111,7 @@ var ContextMenuContent = React13.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2111
2111
|
ContextMenuPrimitive.Content,
|
|
2112
2112
|
{
|
|
2113
2113
|
ref,
|
|
2114
|
-
className:
|
|
2114
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2115
2115
|
"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",
|
|
2116
2116
|
className
|
|
2117
2117
|
),
|
|
@@ -2123,7 +2123,7 @@ var ContextMenuItem = React13.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
2123
2123
|
ContextMenuPrimitive.Item,
|
|
2124
2124
|
{
|
|
2125
2125
|
ref,
|
|
2126
|
-
className:
|
|
2126
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2127
2127
|
"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",
|
|
2128
2128
|
inset && "pl-8",
|
|
2129
2129
|
className
|
|
@@ -2136,7 +2136,7 @@ var ContextMenuCheckboxItem = React13.forwardRef(({ className, children, checked
|
|
|
2136
2136
|
ContextMenuPrimitive.CheckboxItem,
|
|
2137
2137
|
{
|
|
2138
2138
|
ref,
|
|
2139
|
-
className:
|
|
2139
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2140
2140
|
"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",
|
|
2141
2141
|
className
|
|
2142
2142
|
),
|
|
@@ -2153,7 +2153,7 @@ var ContextMenuRadioItem = React13.forwardRef(({ className, children, ...props }
|
|
|
2153
2153
|
ContextMenuPrimitive.RadioItem,
|
|
2154
2154
|
{
|
|
2155
2155
|
ref,
|
|
2156
|
-
className:
|
|
2156
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2157
2157
|
"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",
|
|
2158
2158
|
className
|
|
2159
2159
|
),
|
|
@@ -2169,15 +2169,15 @@ var ContextMenuLabel = React13.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2169
2169
|
ContextMenuPrimitive.Label,
|
|
2170
2170
|
{
|
|
2171
2171
|
ref,
|
|
2172
|
-
className:
|
|
2172
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "px-2 py-1.5 text-sm font-semibold text-foreground", inset && "pl-8", className),
|
|
2173
2173
|
...props
|
|
2174
2174
|
}
|
|
2175
2175
|
));
|
|
2176
2176
|
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
2177
|
-
var ContextMenuSeparator = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContextMenuPrimitive.Separator, { ref, className:
|
|
2177
|
+
var ContextMenuSeparator = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContextMenuPrimitive.Separator, { ref, className: _chunkAE3J2MATjs.cn.call(void 0, "-mx-1 my-1 h-px bg-border", className), ...props }));
|
|
2178
2178
|
ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
|
|
2179
2179
|
var ContextMenuShortcut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => {
|
|
2180
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
2180
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkAE3J2MATjs.cn.call(void 0, "ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
|
|
2181
2181
|
}, "ContextMenuShortcut");
|
|
2182
2182
|
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
2183
2183
|
|
|
@@ -2190,7 +2190,7 @@ Drawer.displayName = "Drawer";
|
|
|
2190
2190
|
var DrawerTrigger = _vaul.Drawer.Trigger;
|
|
2191
2191
|
var DrawerPortal = _vaul.Drawer.Portal;
|
|
2192
2192
|
var DrawerClose = _vaul.Drawer.Close;
|
|
2193
|
-
var DrawerOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _vaul.Drawer.Overlay, { ref, className:
|
|
2193
|
+
var DrawerOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _vaul.Drawer.Overlay, { ref, className: _chunkAE3J2MATjs.cn.call(void 0, "fixed inset-0 z-50 bg-black/80", className), ...props }));
|
|
2194
2194
|
DrawerOverlay.displayName = _vaul.Drawer.Overlay.displayName;
|
|
2195
2195
|
var DrawerContent = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DrawerPortal, { children: [
|
|
2196
2196
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DrawerOverlay, {}),
|
|
@@ -2198,7 +2198,7 @@ var DrawerContent = React14.forwardRef(({ className, children, ...props }, ref)
|
|
|
2198
2198
|
_vaul.Drawer.Content,
|
|
2199
2199
|
{
|
|
2200
2200
|
ref,
|
|
2201
|
-
className:
|
|
2201
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2202
2202
|
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
|
|
2203
2203
|
className
|
|
2204
2204
|
),
|
|
@@ -2211,20 +2211,20 @@ var DrawerContent = React14.forwardRef(({ className, children, ...props }, ref)
|
|
|
2211
2211
|
)
|
|
2212
2212
|
] }));
|
|
2213
2213
|
DrawerContent.displayName = "DrawerContent";
|
|
2214
|
-
var DrawerHeader = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2214
|
+
var DrawerHeader = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkAE3J2MATjs.cn.call(void 0, "grid gap-1.5 p-4 text-center sm:text-left", className), ...props }), "DrawerHeader");
|
|
2215
2215
|
DrawerHeader.displayName = "DrawerHeader";
|
|
2216
|
-
var DrawerFooter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2216
|
+
var DrawerFooter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkAE3J2MATjs.cn.call(void 0, "mt-auto flex flex-col gap-2 p-4", className), ...props }), "DrawerFooter");
|
|
2217
2217
|
DrawerFooter.displayName = "DrawerFooter";
|
|
2218
2218
|
var DrawerTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2219
2219
|
_vaul.Drawer.Title,
|
|
2220
2220
|
{
|
|
2221
2221
|
ref,
|
|
2222
|
-
className:
|
|
2222
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "text-lg font-semibold leading-none tracking-tight", className),
|
|
2223
2223
|
...props
|
|
2224
2224
|
}
|
|
2225
2225
|
));
|
|
2226
2226
|
DrawerTitle.displayName = _vaul.Drawer.Title.displayName;
|
|
2227
|
-
var DrawerDescription = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _vaul.Drawer.Description, { ref, className:
|
|
2227
|
+
var DrawerDescription = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _vaul.Drawer.Description, { ref, className: _chunkAE3J2MATjs.cn.call(void 0, "text-sm text-muted-foreground", className), ...props }));
|
|
2228
2228
|
DrawerDescription.displayName = _vaul.Drawer.Description.displayName;
|
|
2229
2229
|
|
|
2230
2230
|
// src/shadcnui/ui/dropdown-menu.tsx
|
|
@@ -2246,7 +2246,7 @@ var DropdownMenuSubTrigger = React15.forwardRef(({ className, inset, children, .
|
|
|
2246
2246
|
DropdownMenuPrimitive.SubTrigger,
|
|
2247
2247
|
{
|
|
2248
2248
|
ref,
|
|
2249
|
-
className:
|
|
2249
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2250
2250
|
"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",
|
|
2251
2251
|
inset && "pl-8",
|
|
2252
2252
|
className
|
|
@@ -2263,7 +2263,7 @@ var DropdownMenuSubContent = React15.forwardRef(({ className, ...props }, ref) =
|
|
|
2263
2263
|
DropdownMenuPrimitive.SubContent,
|
|
2264
2264
|
{
|
|
2265
2265
|
ref,
|
|
2266
|
-
className:
|
|
2266
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2267
2267
|
"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",
|
|
2268
2268
|
className
|
|
2269
2269
|
),
|
|
@@ -2276,7 +2276,7 @@ var DropdownMenuContent = React15.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
2276
2276
|
{
|
|
2277
2277
|
ref,
|
|
2278
2278
|
sideOffset,
|
|
2279
|
-
className:
|
|
2279
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2280
2280
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
2281
2281
|
"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",
|
|
2282
2282
|
className
|
|
@@ -2289,7 +2289,7 @@ var DropdownMenuItem = React15.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2289
2289
|
DropdownMenuPrimitive.Item,
|
|
2290
2290
|
{
|
|
2291
2291
|
ref,
|
|
2292
|
-
className:
|
|
2292
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2293
2293
|
"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",
|
|
2294
2294
|
inset && "pl-8",
|
|
2295
2295
|
className
|
|
@@ -2302,7 +2302,7 @@ var DropdownMenuCheckboxItem = React15.forwardRef(({ className, children, checke
|
|
|
2302
2302
|
DropdownMenuPrimitive.CheckboxItem,
|
|
2303
2303
|
{
|
|
2304
2304
|
ref,
|
|
2305
|
-
className:
|
|
2305
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2306
2306
|
"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",
|
|
2307
2307
|
className
|
|
2308
2308
|
),
|
|
@@ -2319,7 +2319,7 @@ var DropdownMenuRadioItem = React15.forwardRef(({ className, children, ...props
|
|
|
2319
2319
|
DropdownMenuPrimitive.RadioItem,
|
|
2320
2320
|
{
|
|
2321
2321
|
ref,
|
|
2322
|
-
className:
|
|
2322
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2323
2323
|
"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",
|
|
2324
2324
|
className
|
|
2325
2325
|
),
|
|
@@ -2335,7 +2335,7 @@ var DropdownMenuLabel = React15.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2335
2335
|
DropdownMenuPrimitive.Label,
|
|
2336
2336
|
{
|
|
2337
2337
|
ref,
|
|
2338
|
-
className:
|
|
2338
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2339
2339
|
"px-2 py-1.5 text-sm font-semibold",
|
|
2340
2340
|
inset && "pl-8",
|
|
2341
2341
|
className
|
|
@@ -2348,7 +2348,7 @@ var DropdownMenuSeparator = React15.forwardRef(({ className, ...props }, ref) =>
|
|
|
2348
2348
|
DropdownMenuPrimitive.Separator,
|
|
2349
2349
|
{
|
|
2350
2350
|
ref,
|
|
2351
|
-
className:
|
|
2351
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "-mx-1 my-1 h-px bg-muted", className),
|
|
2352
2352
|
...props
|
|
2353
2353
|
}
|
|
2354
2354
|
));
|
|
@@ -2360,7 +2360,7 @@ var DropdownMenuShortcut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
2360
2360
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2361
2361
|
"span",
|
|
2362
2362
|
{
|
|
2363
|
-
className:
|
|
2363
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "ml-auto text-xs tracking-widest opacity-60", className),
|
|
2364
2364
|
...props
|
|
2365
2365
|
}
|
|
2366
2366
|
);
|
|
@@ -2384,7 +2384,7 @@ var Label3 = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
2384
2384
|
LabelPrimitive.Root,
|
|
2385
2385
|
{
|
|
2386
2386
|
ref,
|
|
2387
|
-
className:
|
|
2387
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, labelVariants(), className),
|
|
2388
2388
|
...props
|
|
2389
2389
|
}
|
|
2390
2390
|
));
|
|
@@ -2421,13 +2421,13 @@ var FormItemContext = React17.createContext({});
|
|
|
2421
2421
|
var FormItem = React17.forwardRef(
|
|
2422
2422
|
({ className, ...props }, ref) => {
|
|
2423
2423
|
const id = React17.useId();
|
|
2424
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
2424
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkAE3J2MATjs.cn.call(void 0, "space-y-2", className), ...props }) });
|
|
2425
2425
|
}
|
|
2426
2426
|
);
|
|
2427
2427
|
FormItem.displayName = "FormItem";
|
|
2428
2428
|
var FormLabel = React17.forwardRef(({ className, ...props }, ref) => {
|
|
2429
2429
|
const { error, formItemId } = useFormField();
|
|
2430
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label3, { ref, className:
|
|
2430
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label3, { ref, className: _chunkAE3J2MATjs.cn.call(void 0, error && "text-destructive", className), htmlFor: formItemId, ...props });
|
|
2431
2431
|
});
|
|
2432
2432
|
FormLabel.displayName = "FormLabel";
|
|
2433
2433
|
var FormControl = React17.forwardRef(
|
|
@@ -2449,7 +2449,7 @@ FormControl.displayName = "FormControl";
|
|
|
2449
2449
|
var FormDescription = React17.forwardRef(
|
|
2450
2450
|
({ className, ...props }, ref) => {
|
|
2451
2451
|
const { formDescriptionId } = useFormField();
|
|
2452
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { ref, id: formDescriptionId, className:
|
|
2452
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { ref, id: formDescriptionId, className: _chunkAE3J2MATjs.cn.call(void 0, "text-muted-foreground text-[0.8rem]", className), ...props });
|
|
2453
2453
|
}
|
|
2454
2454
|
);
|
|
2455
2455
|
FormDescription.displayName = "FormDescription";
|
|
@@ -2465,7 +2465,7 @@ var FormMessage = React17.forwardRef(
|
|
|
2465
2465
|
{
|
|
2466
2466
|
ref,
|
|
2467
2467
|
id: formMessageId,
|
|
2468
|
-
className:
|
|
2468
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "text-destructive text-[0.8rem] font-medium", className),
|
|
2469
2469
|
...props,
|
|
2470
2470
|
children: body
|
|
2471
2471
|
}
|
|
@@ -2486,7 +2486,7 @@ var HoverCardContent = React18.forwardRef(({ className, align = "center", sideOf
|
|
|
2486
2486
|
ref,
|
|
2487
2487
|
align,
|
|
2488
2488
|
sideOffset,
|
|
2489
|
-
className:
|
|
2489
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2490
2490
|
"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",
|
|
2491
2491
|
className
|
|
2492
2492
|
),
|
|
@@ -2503,7 +2503,7 @@ function Input({ className, type, ...props }) {
|
|
|
2503
2503
|
{
|
|
2504
2504
|
type,
|
|
2505
2505
|
"data-slot": "input",
|
|
2506
|
-
className:
|
|
2506
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2507
2507
|
"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",
|
|
2508
2508
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
2509
2509
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
@@ -2531,7 +2531,7 @@ function NavigationMenu({
|
|
|
2531
2531
|
{
|
|
2532
2532
|
"data-slot": "navigation-menu",
|
|
2533
2533
|
"data-viewport": viewport,
|
|
2534
|
-
className:
|
|
2534
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2535
2535
|
"group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
|
|
2536
2536
|
className
|
|
2537
2537
|
),
|
|
@@ -2552,7 +2552,7 @@ function NavigationMenuList({
|
|
|
2552
2552
|
NavigationMenuPrimitive.List,
|
|
2553
2553
|
{
|
|
2554
2554
|
"data-slot": "navigation-menu-list",
|
|
2555
|
-
className:
|
|
2555
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2556
2556
|
"group flex flex-1 list-none items-center justify-center gap-1",
|
|
2557
2557
|
className
|
|
2558
2558
|
),
|
|
@@ -2569,7 +2569,7 @@ function NavigationMenuItem({
|
|
|
2569
2569
|
NavigationMenuPrimitive.Item,
|
|
2570
2570
|
{
|
|
2571
2571
|
"data-slot": "navigation-menu-item",
|
|
2572
|
-
className:
|
|
2572
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "relative", className),
|
|
2573
2573
|
...props
|
|
2574
2574
|
}
|
|
2575
2575
|
);
|
|
@@ -2587,7 +2587,7 @@ function NavigationMenuTrigger({
|
|
|
2587
2587
|
NavigationMenuPrimitive.Trigger,
|
|
2588
2588
|
{
|
|
2589
2589
|
"data-slot": "navigation-menu-trigger",
|
|
2590
|
-
className:
|
|
2590
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, navigationMenuTriggerStyle(), "group", className),
|
|
2591
2591
|
...props,
|
|
2592
2592
|
children: [
|
|
2593
2593
|
children,
|
|
@@ -2612,7 +2612,7 @@ function NavigationMenuContent({
|
|
|
2612
2612
|
NavigationMenuPrimitive.Content,
|
|
2613
2613
|
{
|
|
2614
2614
|
"data-slot": "navigation-menu-content",
|
|
2615
|
-
className:
|
|
2615
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2616
2616
|
"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",
|
|
2617
2617
|
"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",
|
|
2618
2618
|
className
|
|
@@ -2629,14 +2629,14 @@ function NavigationMenuViewport({
|
|
|
2629
2629
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2630
2630
|
"div",
|
|
2631
2631
|
{
|
|
2632
|
-
className:
|
|
2632
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2633
2633
|
"absolute top-full left-0 isolate z-50 flex justify-center"
|
|
2634
2634
|
),
|
|
2635
2635
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2636
2636
|
NavigationMenuPrimitive.Viewport,
|
|
2637
2637
|
{
|
|
2638
2638
|
"data-slot": "navigation-menu-viewport",
|
|
2639
|
-
className:
|
|
2639
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2640
2640
|
"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)]",
|
|
2641
2641
|
className
|
|
2642
2642
|
),
|
|
@@ -2655,7 +2655,7 @@ function NavigationMenuLink({
|
|
|
2655
2655
|
NavigationMenuPrimitive.Link,
|
|
2656
2656
|
{
|
|
2657
2657
|
"data-slot": "navigation-menu-link",
|
|
2658
|
-
className:
|
|
2658
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2659
2659
|
"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",
|
|
2660
2660
|
className
|
|
2661
2661
|
),
|
|
@@ -2672,7 +2672,7 @@ function NavigationMenuIndicator({
|
|
|
2672
2672
|
NavigationMenuPrimitive.Indicator,
|
|
2673
2673
|
{
|
|
2674
2674
|
"data-slot": "navigation-menu-indicator",
|
|
2675
|
-
className:
|
|
2675
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2676
2676
|
"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",
|
|
2677
2677
|
className
|
|
2678
2678
|
),
|
|
@@ -2696,7 +2696,7 @@ var PopoverContent = React19.forwardRef(({ className, align = "center", sideOffs
|
|
|
2696
2696
|
ref,
|
|
2697
2697
|
align,
|
|
2698
2698
|
sideOffset,
|
|
2699
|
-
className:
|
|
2699
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2700
2700
|
"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",
|
|
2701
2701
|
className
|
|
2702
2702
|
),
|
|
@@ -2713,7 +2713,7 @@ var Progress = React20.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
2713
2713
|
ProgressPrimitive.Root,
|
|
2714
2714
|
{
|
|
2715
2715
|
ref,
|
|
2716
|
-
className:
|
|
2716
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "relative h-2 w-full overflow-hidden rounded-full bg-primary/20", className),
|
|
2717
2717
|
...props,
|
|
2718
2718
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2719
2719
|
ProgressPrimitive.Indicator,
|
|
@@ -2732,7 +2732,7 @@ var _reactradiogroup = require('@radix-ui/react-radio-group'); var RadioGroupPri
|
|
|
2732
2732
|
|
|
2733
2733
|
|
|
2734
2734
|
var RadioGroup3 = React21.forwardRef(({ className, ...props }, ref) => {
|
|
2735
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioGroupPrimitive.Root, { className:
|
|
2735
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioGroupPrimitive.Root, { className: _chunkAE3J2MATjs.cn.call(void 0, "grid gap-2", className), ...props, ref });
|
|
2736
2736
|
});
|
|
2737
2737
|
RadioGroup3.displayName = RadioGroupPrimitive.Root.displayName;
|
|
2738
2738
|
var RadioGroupItem = React21.forwardRef(({ className, ...props }, ref) => {
|
|
@@ -2740,7 +2740,7 @@ var RadioGroupItem = React21.forwardRef(({ className, ...props }, ref) => {
|
|
|
2740
2740
|
RadioGroupPrimitive.Item,
|
|
2741
2741
|
{
|
|
2742
2742
|
ref,
|
|
2743
|
-
className:
|
|
2743
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2744
2744
|
"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",
|
|
2745
2745
|
className
|
|
2746
2746
|
),
|
|
@@ -2760,7 +2760,7 @@ function ResizablePanelGroup({ className, ...props }) {
|
|
|
2760
2760
|
ResizablePrimitive.PanelGroup,
|
|
2761
2761
|
{
|
|
2762
2762
|
"data-slot": "resizable-panel-group",
|
|
2763
|
-
className:
|
|
2763
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className),
|
|
2764
2764
|
...props
|
|
2765
2765
|
}
|
|
2766
2766
|
);
|
|
@@ -2779,7 +2779,7 @@ function ResizableHandle({
|
|
|
2779
2779
|
ResizablePrimitive.PanelResizeHandle,
|
|
2780
2780
|
{
|
|
2781
2781
|
"data-slot": "resizable-handle",
|
|
2782
|
-
className:
|
|
2782
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2783
2783
|
"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",
|
|
2784
2784
|
className
|
|
2785
2785
|
),
|
|
@@ -2794,7 +2794,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ResizableHandle, "ResizableHandle");
|
|
|
2794
2794
|
var _reactscrollarea = require('@radix-ui/react-scroll-area'); var ScrollAreaPrimitive = _interopRequireWildcard(_reactscrollarea);
|
|
2795
2795
|
|
|
2796
2796
|
|
|
2797
|
-
var ScrollArea = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, ScrollAreaPrimitive.Root, { ref, className:
|
|
2797
|
+
var ScrollArea = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, ScrollAreaPrimitive.Root, { ref, className: _chunkAE3J2MATjs.cn.call(void 0, "relative overflow-hidden", className), ...props, children: [
|
|
2798
2798
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
2799
2799
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScrollBar, {}),
|
|
2800
2800
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScrollAreaPrimitive.Corner, {})
|
|
@@ -2805,7 +2805,7 @@ var ScrollBar = React22.forwardRef(({ className, orientation = "vertical", ...pr
|
|
|
2805
2805
|
{
|
|
2806
2806
|
ref,
|
|
2807
2807
|
orientation,
|
|
2808
|
-
className:
|
|
2808
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2809
2809
|
"flex touch-none select-none transition-colors",
|
|
2810
2810
|
orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
|
|
2811
2811
|
orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
|
|
@@ -2834,7 +2834,7 @@ var SelectTrigger = React23.forwardRef(({ className, children, ...props }, ref)
|
|
|
2834
2834
|
SelectPrimitive.Trigger,
|
|
2835
2835
|
{
|
|
2836
2836
|
ref,
|
|
2837
|
-
className:
|
|
2837
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2838
2838
|
"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",
|
|
2839
2839
|
className
|
|
2840
2840
|
),
|
|
@@ -2850,7 +2850,7 @@ var SelectScrollUpButton = React23.forwardRef(({ className, ...props }, ref) =>
|
|
|
2850
2850
|
SelectPrimitive.ScrollUpButton,
|
|
2851
2851
|
{
|
|
2852
2852
|
ref,
|
|
2853
|
-
className:
|
|
2853
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2854
2854
|
"flex cursor-default items-center justify-center py-1",
|
|
2855
2855
|
className
|
|
2856
2856
|
),
|
|
@@ -2863,7 +2863,7 @@ var SelectScrollDownButton = React23.forwardRef(({ className, ...props }, ref) =
|
|
|
2863
2863
|
SelectPrimitive.ScrollDownButton,
|
|
2864
2864
|
{
|
|
2865
2865
|
ref,
|
|
2866
|
-
className:
|
|
2866
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2867
2867
|
"flex cursor-default items-center justify-center py-1",
|
|
2868
2868
|
className
|
|
2869
2869
|
),
|
|
@@ -2876,7 +2876,7 @@ var SelectContent = React23.forwardRef(({ className, children, position = "poppe
|
|
|
2876
2876
|
SelectPrimitive.Content,
|
|
2877
2877
|
{
|
|
2878
2878
|
ref,
|
|
2879
|
-
className:
|
|
2879
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2880
2880
|
"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",
|
|
2881
2881
|
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",
|
|
2882
2882
|
className
|
|
@@ -2888,7 +2888,7 @@ var SelectContent = React23.forwardRef(({ className, children, position = "poppe
|
|
|
2888
2888
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2889
2889
|
SelectPrimitive.Viewport,
|
|
2890
2890
|
{
|
|
2891
|
-
className:
|
|
2891
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2892
2892
|
"p-1",
|
|
2893
2893
|
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
2894
2894
|
),
|
|
@@ -2904,7 +2904,7 @@ var SelectLabel = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2904
2904
|
SelectPrimitive.Label,
|
|
2905
2905
|
{
|
|
2906
2906
|
ref,
|
|
2907
|
-
className:
|
|
2907
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "px-2 py-1.5 text-sm font-semibold", className),
|
|
2908
2908
|
...props
|
|
2909
2909
|
}
|
|
2910
2910
|
));
|
|
@@ -2913,7 +2913,7 @@ var SelectItem = React23.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
2913
2913
|
SelectPrimitive.Item,
|
|
2914
2914
|
{
|
|
2915
2915
|
ref,
|
|
2916
|
-
className:
|
|
2916
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2917
2917
|
"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",
|
|
2918
2918
|
className
|
|
2919
2919
|
),
|
|
@@ -2929,7 +2929,7 @@ var SelectSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
2929
2929
|
SelectPrimitive.Separator,
|
|
2930
2930
|
{
|
|
2931
2931
|
ref,
|
|
2932
|
-
className:
|
|
2932
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "-mx-1 my-1 h-px bg-muted", className),
|
|
2933
2933
|
...props
|
|
2934
2934
|
}
|
|
2935
2935
|
));
|
|
@@ -2950,7 +2950,7 @@ function Separator4({
|
|
|
2950
2950
|
"data-slot": "separator",
|
|
2951
2951
|
decorative,
|
|
2952
2952
|
orientation,
|
|
2953
|
-
className:
|
|
2953
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2954
2954
|
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
2955
2955
|
className
|
|
2956
2956
|
),
|
|
@@ -2994,7 +2994,7 @@ function SheetOverlay({
|
|
|
2994
2994
|
SheetPrimitive.Overlay,
|
|
2995
2995
|
{
|
|
2996
2996
|
"data-slot": "sheet-overlay",
|
|
2997
|
-
className:
|
|
2997
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
2998
2998
|
"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",
|
|
2999
2999
|
className
|
|
3000
3000
|
),
|
|
@@ -3015,7 +3015,7 @@ function SheetContent({
|
|
|
3015
3015
|
SheetPrimitive.Content,
|
|
3016
3016
|
{
|
|
3017
3017
|
"data-slot": "sheet-content",
|
|
3018
|
-
className:
|
|
3018
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
3019
3019
|
"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",
|
|
3020
3020
|
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",
|
|
3021
3021
|
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",
|
|
@@ -3041,7 +3041,7 @@ function SheetHeader({ className, ...props }) {
|
|
|
3041
3041
|
"div",
|
|
3042
3042
|
{
|
|
3043
3043
|
"data-slot": "sheet-header",
|
|
3044
|
-
className:
|
|
3044
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "flex flex-col gap-1.5 p-4", className),
|
|
3045
3045
|
...props
|
|
3046
3046
|
}
|
|
3047
3047
|
);
|
|
@@ -3052,7 +3052,7 @@ function SheetFooter({ className, ...props }) {
|
|
|
3052
3052
|
"div",
|
|
3053
3053
|
{
|
|
3054
3054
|
"data-slot": "sheet-footer",
|
|
3055
|
-
className:
|
|
3055
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "mt-auto flex flex-col gap-2 p-4", className),
|
|
3056
3056
|
...props
|
|
3057
3057
|
}
|
|
3058
3058
|
);
|
|
@@ -3066,7 +3066,7 @@ function SheetTitle({
|
|
|
3066
3066
|
SheetPrimitive.Title,
|
|
3067
3067
|
{
|
|
3068
3068
|
"data-slot": "sheet-title",
|
|
3069
|
-
className:
|
|
3069
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "text-foreground font-semibold", className),
|
|
3070
3070
|
...props
|
|
3071
3071
|
}
|
|
3072
3072
|
);
|
|
@@ -3080,7 +3080,7 @@ function SheetDescription({
|
|
|
3080
3080
|
SheetPrimitive.Description,
|
|
3081
3081
|
{
|
|
3082
3082
|
"data-slot": "sheet-description",
|
|
3083
|
-
className:
|
|
3083
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "text-muted-foreground text-sm", className),
|
|
3084
3084
|
...props
|
|
3085
3085
|
}
|
|
3086
3086
|
);
|
|
@@ -3100,7 +3100,7 @@ function Skeleton({ className, ...props }) {
|
|
|
3100
3100
|
"div",
|
|
3101
3101
|
{
|
|
3102
3102
|
"data-slot": "skeleton",
|
|
3103
|
-
className:
|
|
3103
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "bg-accent animate-pulse rounded-md", className),
|
|
3104
3104
|
...props
|
|
3105
3105
|
}
|
|
3106
3106
|
);
|
|
@@ -3147,7 +3147,7 @@ function TooltipContent({
|
|
|
3147
3147
|
{
|
|
3148
3148
|
"data-slot": "tooltip-content",
|
|
3149
3149
|
sideOffset,
|
|
3150
|
-
className:
|
|
3150
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
3151
3151
|
"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",
|
|
3152
3152
|
className
|
|
3153
3153
|
),
|
|
@@ -3187,7 +3187,7 @@ function SidebarProvider({
|
|
|
3187
3187
|
children,
|
|
3188
3188
|
...props
|
|
3189
3189
|
}) {
|
|
3190
|
-
const isMobile =
|
|
3190
|
+
const isMobile = _chunkAE3J2MATjs.useIsMobile.call(void 0, );
|
|
3191
3191
|
const [openMobile, setOpenMobile] = React24.useState(false);
|
|
3192
3192
|
const [_open, _setOpen] = React24.useState(defaultOpen);
|
|
3193
3193
|
const open = _nullishCoalesce(openProp, () => ( _open));
|
|
@@ -3238,7 +3238,7 @@ function SidebarProvider({
|
|
|
3238
3238
|
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
3239
3239
|
...style
|
|
3240
3240
|
},
|
|
3241
|
-
className:
|
|
3241
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", className),
|
|
3242
3242
|
...props,
|
|
3243
3243
|
children
|
|
3244
3244
|
}
|
|
@@ -3259,7 +3259,7 @@ function Sidebar({
|
|
|
3259
3259
|
"div",
|
|
3260
3260
|
{
|
|
3261
3261
|
"data-slot": "sidebar",
|
|
3262
|
-
className:
|
|
3262
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", className),
|
|
3263
3263
|
...props,
|
|
3264
3264
|
children
|
|
3265
3265
|
}
|
|
@@ -3301,7 +3301,7 @@ function Sidebar({
|
|
|
3301
3301
|
"div",
|
|
3302
3302
|
{
|
|
3303
3303
|
"data-slot": "sidebar-gap",
|
|
3304
|
-
className:
|
|
3304
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
3305
3305
|
"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
|
|
3306
3306
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
3307
3307
|
"group-data-[side=right]:rotate-180",
|
|
@@ -3313,7 +3313,7 @@ function Sidebar({
|
|
|
3313
3313
|
"div",
|
|
3314
3314
|
{
|
|
3315
3315
|
"data-slot": "sidebar-container",
|
|
3316
|
-
className:
|
|
3316
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
3317
3317
|
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
3318
3318
|
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)]",
|
|
3319
3319
|
// Adjust the padding for floating and inset variants.
|
|
@@ -3346,7 +3346,7 @@ function SidebarTrigger({ className, onClick, ...props }) {
|
|
|
3346
3346
|
"data-slot": "sidebar-trigger",
|
|
3347
3347
|
variant: "ghost",
|
|
3348
3348
|
size: "icon",
|
|
3349
|
-
className:
|
|
3349
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "size-7", className),
|
|
3350
3350
|
onClick: (event) => {
|
|
3351
3351
|
_optionalChain([onClick, 'optionalCall', _79 => _79(event)]);
|
|
3352
3352
|
toggleSidebar();
|
|
@@ -3371,7 +3371,7 @@ function SidebarRail({ className, ...props }) {
|
|
|
3371
3371
|
tabIndex: -1,
|
|
3372
3372
|
onClick: toggleSidebar,
|
|
3373
3373
|
title: "Toggle Sidebar",
|
|
3374
|
-
className:
|
|
3374
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
3375
3375
|
"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",
|
|
3376
3376
|
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
3377
3377
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
@@ -3390,7 +3390,7 @@ function SidebarInset({ className, ...props }) {
|
|
|
3390
3390
|
"main",
|
|
3391
3391
|
{
|
|
3392
3392
|
"data-slot": "sidebar-inset",
|
|
3393
|
-
className:
|
|
3393
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
3394
3394
|
"bg-background relative flex w-full flex-1 flex-col",
|
|
3395
3395
|
"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",
|
|
3396
3396
|
className
|
|
@@ -3406,7 +3406,7 @@ function SidebarInput({ className, ...props }) {
|
|
|
3406
3406
|
{
|
|
3407
3407
|
"data-slot": "sidebar-input",
|
|
3408
3408
|
"data-sidebar": "input",
|
|
3409
|
-
className:
|
|
3409
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "bg-background h-8 w-full shadow-none", className),
|
|
3410
3410
|
...props
|
|
3411
3411
|
}
|
|
3412
3412
|
);
|
|
@@ -3418,7 +3418,7 @@ function SidebarHeader({ className, ...props }) {
|
|
|
3418
3418
|
{
|
|
3419
3419
|
"data-slot": "sidebar-header",
|
|
3420
3420
|
"data-sidebar": "header",
|
|
3421
|
-
className:
|
|
3421
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "flex flex-col gap-2 p-2", className),
|
|
3422
3422
|
...props
|
|
3423
3423
|
}
|
|
3424
3424
|
);
|
|
@@ -3430,7 +3430,7 @@ function SidebarFooter({ className, ...props }) {
|
|
|
3430
3430
|
{
|
|
3431
3431
|
"data-slot": "sidebar-footer",
|
|
3432
3432
|
"data-sidebar": "footer",
|
|
3433
|
-
className:
|
|
3433
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "flex flex-col gap-2 p-2", className),
|
|
3434
3434
|
...props
|
|
3435
3435
|
}
|
|
3436
3436
|
);
|
|
@@ -3442,7 +3442,7 @@ function SidebarSeparator({ className, ...props }) {
|
|
|
3442
3442
|
{
|
|
3443
3443
|
"data-slot": "sidebar-separator",
|
|
3444
3444
|
"data-sidebar": "separator",
|
|
3445
|
-
className:
|
|
3445
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "bg-sidebar-border mx-2 w-auto", className),
|
|
3446
3446
|
...props
|
|
3447
3447
|
}
|
|
3448
3448
|
);
|
|
@@ -3454,7 +3454,7 @@ function SidebarContent({ className, ...props }) {
|
|
|
3454
3454
|
{
|
|
3455
3455
|
"data-slot": "sidebar-content",
|
|
3456
3456
|
"data-sidebar": "content",
|
|
3457
|
-
className:
|
|
3457
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
3458
3458
|
"flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
3459
3459
|
className
|
|
3460
3460
|
),
|
|
@@ -3469,7 +3469,7 @@ function SidebarGroup({ className, ...props }) {
|
|
|
3469
3469
|
{
|
|
3470
3470
|
"data-slot": "sidebar-group",
|
|
3471
3471
|
"data-sidebar": "group",
|
|
3472
|
-
className:
|
|
3472
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "relative flex w-full min-w-0 flex-col p-2", className),
|
|
3473
3473
|
...props
|
|
3474
3474
|
}
|
|
3475
3475
|
);
|
|
@@ -3486,7 +3486,7 @@ function SidebarGroupLabel({
|
|
|
3486
3486
|
{
|
|
3487
3487
|
"data-slot": "sidebar-group-label",
|
|
3488
3488
|
"data-sidebar": "group-label",
|
|
3489
|
-
className:
|
|
3489
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
3490
3490
|
"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",
|
|
3491
3491
|
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
3492
3492
|
className
|
|
@@ -3507,7 +3507,7 @@ function SidebarGroupAction({
|
|
|
3507
3507
|
{
|
|
3508
3508
|
"data-slot": "sidebar-group-action",
|
|
3509
3509
|
"data-sidebar": "group-action",
|
|
3510
|
-
className:
|
|
3510
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
3511
3511
|
"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",
|
|
3512
3512
|
// Increases the hit area of the button on mobile.
|
|
3513
3513
|
"after:absolute after:-inset-2 md:after:hidden",
|
|
@@ -3525,7 +3525,7 @@ function SidebarGroupContent({ className, ...props }) {
|
|
|
3525
3525
|
{
|
|
3526
3526
|
"data-slot": "sidebar-group-content",
|
|
3527
3527
|
"data-sidebar": "group-content",
|
|
3528
|
-
className:
|
|
3528
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "w-full text-sm", className),
|
|
3529
3529
|
...props
|
|
3530
3530
|
}
|
|
3531
3531
|
);
|
|
@@ -3537,7 +3537,7 @@ function SidebarMenu({ className, ...props }) {
|
|
|
3537
3537
|
{
|
|
3538
3538
|
"data-slot": "sidebar-menu",
|
|
3539
3539
|
"data-sidebar": "menu",
|
|
3540
|
-
className:
|
|
3540
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "flex w-full min-w-0 flex-col gap-1", className),
|
|
3541
3541
|
...props
|
|
3542
3542
|
}
|
|
3543
3543
|
);
|
|
@@ -3549,7 +3549,7 @@ function SidebarMenuItem({ className, ...props }) {
|
|
|
3549
3549
|
{
|
|
3550
3550
|
"data-slot": "sidebar-menu-item",
|
|
3551
3551
|
"data-sidebar": "menu-item",
|
|
3552
|
-
className:
|
|
3552
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "group/menu-item relative", className),
|
|
3553
3553
|
...props
|
|
3554
3554
|
}
|
|
3555
3555
|
);
|
|
@@ -3593,7 +3593,7 @@ function SidebarMenuButton({
|
|
|
3593
3593
|
"data-sidebar": "menu-button",
|
|
3594
3594
|
"data-size": size,
|
|
3595
3595
|
"data-active": isActive,
|
|
3596
|
-
className:
|
|
3596
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, sidebarMenuButtonVariants({ variant, size }), className),
|
|
3597
3597
|
...props
|
|
3598
3598
|
}
|
|
3599
3599
|
);
|
|
@@ -3623,7 +3623,7 @@ function SidebarMenuAction({
|
|
|
3623
3623
|
{
|
|
3624
3624
|
"data-slot": "sidebar-menu-action",
|
|
3625
3625
|
"data-sidebar": "menu-action",
|
|
3626
|
-
className:
|
|
3626
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
3627
3627
|
"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",
|
|
3628
3628
|
// Increases the hit area of the button on mobile.
|
|
3629
3629
|
"after:absolute after:-inset-2 md:after:hidden",
|
|
@@ -3645,7 +3645,7 @@ function SidebarMenuBadge({ className, ...props }) {
|
|
|
3645
3645
|
{
|
|
3646
3646
|
"data-slot": "sidebar-menu-badge",
|
|
3647
3647
|
"data-sidebar": "menu-badge",
|
|
3648
|
-
className:
|
|
3648
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
3649
3649
|
"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",
|
|
3650
3650
|
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
|
|
3651
3651
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
@@ -3672,7 +3672,7 @@ function SidebarMenuSkeleton({
|
|
|
3672
3672
|
{
|
|
3673
3673
|
"data-slot": "sidebar-menu-skeleton",
|
|
3674
3674
|
"data-sidebar": "menu-skeleton",
|
|
3675
|
-
className:
|
|
3675
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
3676
3676
|
...props,
|
|
3677
3677
|
children: [
|
|
3678
3678
|
showIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" }),
|
|
@@ -3697,7 +3697,7 @@ function SidebarMenuSub({ className, ...props }) {
|
|
|
3697
3697
|
{
|
|
3698
3698
|
"data-slot": "sidebar-menu-sub",
|
|
3699
3699
|
"data-sidebar": "menu-sub",
|
|
3700
|
-
className:
|
|
3700
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
3701
3701
|
"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",
|
|
3702
3702
|
"group-data-[collapsible=icon]:hidden",
|
|
3703
3703
|
className
|
|
@@ -3713,7 +3713,7 @@ function SidebarMenuSubItem({ className, ...props }) {
|
|
|
3713
3713
|
{
|
|
3714
3714
|
"data-slot": "sidebar-menu-sub-item",
|
|
3715
3715
|
"data-sidebar": "menu-sub-item",
|
|
3716
|
-
className:
|
|
3716
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "group/menu-sub-item relative", className),
|
|
3717
3717
|
...props
|
|
3718
3718
|
}
|
|
3719
3719
|
);
|
|
@@ -3734,7 +3734,7 @@ function SidebarMenuSubButton({
|
|
|
3734
3734
|
"data-sidebar": "menu-sub-button",
|
|
3735
3735
|
"data-size": size,
|
|
3736
3736
|
"data-active": isActive,
|
|
3737
|
-
className:
|
|
3737
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
3738
3738
|
"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",
|
|
3739
3739
|
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
|
3740
3740
|
size === "sm" && "text-xs",
|
|
@@ -3756,7 +3756,7 @@ var Slider = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
3756
3756
|
SliderPrimitive.Root,
|
|
3757
3757
|
{
|
|
3758
3758
|
ref,
|
|
3759
|
-
className:
|
|
3759
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "relative flex w-full touch-none select-none items-center", className),
|
|
3760
3760
|
...props,
|
|
3761
3761
|
children: [
|
|
3762
3762
|
/* @__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" }) }),
|
|
@@ -3794,7 +3794,7 @@ var _reactswitch = require('@radix-ui/react-switch'); var SwitchPrimitives = _in
|
|
|
3794
3794
|
var Switch = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3795
3795
|
SwitchPrimitives.Root,
|
|
3796
3796
|
{
|
|
3797
|
-
className:
|
|
3797
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
3798
3798
|
"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",
|
|
3799
3799
|
className
|
|
3800
3800
|
),
|
|
@@ -3803,7 +3803,7 @@ var Switch = React26.forwardRef(({ className, children, ...props }, ref) => /* @
|
|
|
3803
3803
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3804
3804
|
SwitchPrimitives.Thumb,
|
|
3805
3805
|
{
|
|
3806
|
-
className:
|
|
3806
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
3807
3807
|
"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"
|
|
3808
3808
|
),
|
|
3809
3809
|
children
|
|
@@ -3820,18 +3820,18 @@ var Table = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
3820
3820
|
"table",
|
|
3821
3821
|
{
|
|
3822
3822
|
ref,
|
|
3823
|
-
className:
|
|
3823
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "w-full caption-bottom text-sm", className),
|
|
3824
3824
|
...props
|
|
3825
3825
|
}
|
|
3826
3826
|
) }));
|
|
3827
3827
|
Table.displayName = "Table";
|
|
3828
|
-
var TableHeader = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { ref, className:
|
|
3828
|
+
var TableHeader = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { ref, className: _chunkAE3J2MATjs.cn.call(void 0, "[&_tr]:border-b", className), ...props }));
|
|
3829
3829
|
TableHeader.displayName = "TableHeader";
|
|
3830
3830
|
var TableBody = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3831
3831
|
"tbody",
|
|
3832
3832
|
{
|
|
3833
3833
|
ref,
|
|
3834
|
-
className:
|
|
3834
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "[&_tr:last-child]:border-0", className),
|
|
3835
3835
|
...props
|
|
3836
3836
|
}
|
|
3837
3837
|
));
|
|
@@ -3840,7 +3840,7 @@ var TableFooter = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3840
3840
|
"tfoot",
|
|
3841
3841
|
{
|
|
3842
3842
|
ref,
|
|
3843
|
-
className:
|
|
3843
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
3844
3844
|
"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
|
|
3845
3845
|
className
|
|
3846
3846
|
),
|
|
@@ -3852,7 +3852,7 @@ var TableRow = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
3852
3852
|
"tr",
|
|
3853
3853
|
{
|
|
3854
3854
|
ref,
|
|
3855
|
-
className:
|
|
3855
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
3856
3856
|
"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
|
|
3857
3857
|
className
|
|
3858
3858
|
),
|
|
@@ -3864,7 +3864,7 @@ var TableHead = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
3864
3864
|
"th",
|
|
3865
3865
|
{
|
|
3866
3866
|
ref,
|
|
3867
|
-
className:
|
|
3867
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
3868
3868
|
"h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
3869
3869
|
className
|
|
3870
3870
|
),
|
|
@@ -3876,7 +3876,7 @@ var TableCell = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
3876
3876
|
"td",
|
|
3877
3877
|
{
|
|
3878
3878
|
ref,
|
|
3879
|
-
className:
|
|
3879
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
3880
3880
|
"p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
3881
3881
|
className
|
|
3882
3882
|
),
|
|
@@ -3888,7 +3888,7 @@ var TableCaption = React27.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3888
3888
|
"caption",
|
|
3889
3889
|
{
|
|
3890
3890
|
ref,
|
|
3891
|
-
className:
|
|
3891
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "mt-4 text-sm text-muted-foreground", className),
|
|
3892
3892
|
...props
|
|
3893
3893
|
}
|
|
3894
3894
|
));
|
|
@@ -3903,7 +3903,7 @@ var TabsList = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
3903
3903
|
TabsPrimitive.List,
|
|
3904
3904
|
{
|
|
3905
3905
|
ref,
|
|
3906
|
-
className:
|
|
3906
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
3907
3907
|
"inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
|
|
3908
3908
|
className
|
|
3909
3909
|
),
|
|
@@ -3915,7 +3915,7 @@ var TabsTrigger = React28.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3915
3915
|
TabsPrimitive.Trigger,
|
|
3916
3916
|
{
|
|
3917
3917
|
ref,
|
|
3918
|
-
className:
|
|
3918
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
3919
3919
|
"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",
|
|
3920
3920
|
className
|
|
3921
3921
|
),
|
|
@@ -3927,7 +3927,7 @@ var TabsContent = React28.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3927
3927
|
TabsPrimitive.Content,
|
|
3928
3928
|
{
|
|
3929
3929
|
ref,
|
|
3930
|
-
className:
|
|
3930
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
3931
3931
|
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
3932
3932
|
className
|
|
3933
3933
|
),
|
|
@@ -3944,7 +3944,7 @@ var Textarea = React29.forwardRef(
|
|
|
3944
3944
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3945
3945
|
"textarea",
|
|
3946
3946
|
{
|
|
3947
|
-
className:
|
|
3947
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
3948
3948
|
"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",
|
|
3949
3949
|
className
|
|
3950
3950
|
),
|
|
@@ -3981,7 +3981,7 @@ var toggleVariants = _classvarianceauthority.cva.call(void 0,
|
|
|
3981
3981
|
}
|
|
3982
3982
|
}
|
|
3983
3983
|
);
|
|
3984
|
-
var Toggle = React30.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TogglePrimitive.Root, { ref, className:
|
|
3984
|
+
var Toggle = React30.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TogglePrimitive.Root, { ref, className: _chunkAE3J2MATjs.cn.call(void 0, toggleVariants({ variant, size, className })), ...props }));
|
|
3985
3985
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
3986
3986
|
|
|
3987
3987
|
// src/shadcnui/custom/kanban.tsx
|
|
@@ -4446,7 +4446,7 @@ var KanbanBoard = React31.forwardRef((props, forwardedRef) => {
|
|
|
4446
4446
|
"data-slot": "kanban-board",
|
|
4447
4447
|
...boardProps,
|
|
4448
4448
|
ref: forwardedRef,
|
|
4449
|
-
className:
|
|
4449
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
4450
4450
|
"flex size-full gap-4",
|
|
4451
4451
|
context.orientation === "horizontal" ? "flex-row" : "flex-col",
|
|
4452
4452
|
className
|
|
@@ -4485,7 +4485,7 @@ var KanbanColumn = React31.forwardRef((props, forwardedRef) => {
|
|
|
4485
4485
|
disabled,
|
|
4486
4486
|
animateLayoutChanges
|
|
4487
4487
|
});
|
|
4488
|
-
const composedRef =
|
|
4488
|
+
const composedRef = _chunkAE3J2MATjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
4489
4489
|
if (disabled) return;
|
|
4490
4490
|
setNodeRef(node);
|
|
4491
4491
|
});
|
|
@@ -4529,7 +4529,7 @@ var KanbanColumn = React31.forwardRef((props, forwardedRef) => {
|
|
|
4529
4529
|
...asHandle && !disabled ? listeners : {},
|
|
4530
4530
|
ref: composedRef,
|
|
4531
4531
|
style: composedStyle,
|
|
4532
|
-
className:
|
|
4532
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
4533
4533
|
"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",
|
|
4534
4534
|
{
|
|
4535
4535
|
"touch-none select-none": asHandle,
|
|
@@ -4552,7 +4552,7 @@ var KanbanColumnHandle = React31.forwardRef((props, forwardedRef) => {
|
|
|
4552
4552
|
const context = useKanbanContext(COLUMN_NAME);
|
|
4553
4553
|
const columnContext = useKanbanColumnContext(COLUMN_HANDLE_NAME);
|
|
4554
4554
|
const isDisabled = _nullishCoalesce(disabled, () => ( columnContext.disabled));
|
|
4555
|
-
const composedRef =
|
|
4555
|
+
const composedRef = _chunkAE3J2MATjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
4556
4556
|
if (isDisabled) return;
|
|
4557
4557
|
columnContext.setActivatorNodeRef(node);
|
|
4558
4558
|
});
|
|
@@ -4569,7 +4569,7 @@ var KanbanColumnHandle = React31.forwardRef((props, forwardedRef) => {
|
|
|
4569
4569
|
...isDisabled ? {} : columnContext.attributes,
|
|
4570
4570
|
...isDisabled ? {} : columnContext.listeners,
|
|
4571
4571
|
ref: composedRef,
|
|
4572
|
-
className:
|
|
4572
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
4573
4573
|
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
4574
4574
|
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
4575
4575
|
className
|
|
@@ -4605,7 +4605,7 @@ var KanbanItem = React31.forwardRef((props, forwardedRef) => {
|
|
|
4605
4605
|
if (value === "") {
|
|
4606
4606
|
throw new Error(`\`${ITEM_NAME}\` value cannot be an empty string`);
|
|
4607
4607
|
}
|
|
4608
|
-
const composedRef =
|
|
4608
|
+
const composedRef = _chunkAE3J2MATjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
4609
4609
|
if (disabled) return;
|
|
4610
4610
|
setNodeRef(node);
|
|
4611
4611
|
});
|
|
@@ -4640,7 +4640,7 @@ var KanbanItem = React31.forwardRef((props, forwardedRef) => {
|
|
|
4640
4640
|
...asHandle && !disabled ? listeners : {},
|
|
4641
4641
|
ref: composedRef,
|
|
4642
4642
|
style: composedStyle,
|
|
4643
|
-
className:
|
|
4643
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
4644
4644
|
"focus-visible:ring-ring focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden",
|
|
4645
4645
|
{
|
|
4646
4646
|
"touch-none select-none": asHandle,
|
|
@@ -4661,7 +4661,7 @@ var KanbanItemHandle = React31.forwardRef((props, forwardedRef) => {
|
|
|
4661
4661
|
const context = useKanbanContext(ITEM_HANDLE_NAME);
|
|
4662
4662
|
const itemContext = useKanbanItemContext(ITEM_HANDLE_NAME);
|
|
4663
4663
|
const isDisabled = _nullishCoalesce(disabled, () => ( itemContext.disabled));
|
|
4664
|
-
const composedRef =
|
|
4664
|
+
const composedRef = _chunkAE3J2MATjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
4665
4665
|
if (isDisabled) return;
|
|
4666
4666
|
itemContext.setActivatorNodeRef(node);
|
|
4667
4667
|
});
|
|
@@ -4678,7 +4678,7 @@ var KanbanItemHandle = React31.forwardRef((props, forwardedRef) => {
|
|
|
4678
4678
|
...isDisabled ? {} : itemContext.attributes,
|
|
4679
4679
|
...isDisabled ? {} : itemContext.listeners,
|
|
4680
4680
|
ref: composedRef,
|
|
4681
|
-
className:
|
|
4681
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
4682
4682
|
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
4683
4683
|
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
4684
4684
|
className
|
|
@@ -4713,7 +4713,7 @@ function KanbanOverlay(props) {
|
|
|
4713
4713
|
{
|
|
4714
4714
|
dropAnimation,
|
|
4715
4715
|
modifiers: context.modifiers,
|
|
4716
|
-
className:
|
|
4716
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, !context.flatCursor && "cursor-grabbing"),
|
|
4717
4717
|
...overlayProps,
|
|
4718
4718
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, KanbanOverlayContext.Provider, { value: true, children: context.activeId && children ? typeof children === "function" ? children({
|
|
4719
4719
|
value: context.activeId,
|
|
@@ -4731,7 +4731,7 @@ var _link = require('next/link'); var _link2 = _interopRequireDefault(_link);
|
|
|
4731
4731
|
|
|
4732
4732
|
|
|
4733
4733
|
var Link2 = React32.forwardRef(({ className, ...props }, ref) => {
|
|
4734
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { ref, className:
|
|
4734
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { ref, className: _chunkAE3J2MATjs.cn.call(void 0, `font-medium`, className), ...props });
|
|
4735
4735
|
});
|
|
4736
4736
|
Link2.displayName = "Link";
|
|
4737
4737
|
|
|
@@ -4830,7 +4830,7 @@ var MultiSelect = React33.forwardRef(
|
|
|
4830
4830
|
ref,
|
|
4831
4831
|
...props,
|
|
4832
4832
|
onClick: handleTogglePopover,
|
|
4833
|
-
className:
|
|
4833
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
4834
4834
|
"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",
|
|
4835
4835
|
className
|
|
4836
4836
|
),
|
|
@@ -4842,7 +4842,7 @@ var MultiSelect = React33.forwardRef(
|
|
|
4842
4842
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4843
4843
|
Badge,
|
|
4844
4844
|
{
|
|
4845
|
-
className:
|
|
4845
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, isAnimating ? "animate-bounce" : "", multiSelectVariants({ variant })),
|
|
4846
4846
|
style: { animationDuration: `${animation}s` },
|
|
4847
4847
|
children: [
|
|
4848
4848
|
IconComponent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: "mr-2 h-4 w-4" }),
|
|
@@ -4865,7 +4865,7 @@ var MultiSelect = React33.forwardRef(
|
|
|
4865
4865
|
selectedValues.length > maxCount && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4866
4866
|
Badge,
|
|
4867
4867
|
{
|
|
4868
|
-
className:
|
|
4868
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
4869
4869
|
"text-foreground border-foreground/1 bg-transparent hover:bg-transparent",
|
|
4870
4870
|
isAnimating ? "animate-bounce" : "",
|
|
4871
4871
|
multiSelectVariants({ variant })
|
|
@@ -4924,7 +4924,7 @@ var MultiSelect = React33.forwardRef(
|
|
|
4924
4924
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4925
4925
|
"div",
|
|
4926
4926
|
{
|
|
4927
|
-
className:
|
|
4927
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
4928
4928
|
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
4929
4929
|
selectedValues.length === options.length ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
4930
4930
|
),
|
|
@@ -4944,7 +4944,7 @@ var MultiSelect = React33.forwardRef(
|
|
|
4944
4944
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4945
4945
|
"div",
|
|
4946
4946
|
{
|
|
4947
|
-
className:
|
|
4947
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
4948
4948
|
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
4949
4949
|
isSelected ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
4950
4950
|
),
|
|
@@ -4979,7 +4979,7 @@ var MultiSelect = React33.forwardRef(
|
|
|
4979
4979
|
animation > 0 && selectedValues.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4980
4980
|
_lucidereact.WandSparkles,
|
|
4981
4981
|
{
|
|
4982
|
-
className:
|
|
4982
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
4983
4983
|
"text-foreground bg-background my-2 h-3 w-3 cursor-pointer",
|
|
4984
4984
|
isAnimating ? "" : "text-muted-foreground"
|
|
4985
4985
|
),
|
|
@@ -5054,10 +5054,10 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserAvatarEditor, "UserAvatarEditor");
|
|
|
5054
5054
|
function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
5055
5055
|
const { currentUser, company } = useCurrentUserContext();
|
|
5056
5056
|
const generateUrl = usePageUrlGenerator();
|
|
5057
|
-
const router =
|
|
5057
|
+
const router = _chunk6YD42BP6js.useI18nRouter.call(void 0, );
|
|
5058
5058
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
5059
5059
|
let cId;
|
|
5060
|
-
if (_optionalChain([currentUser, 'optionalAccess', _119 => _119.roles, 'access', _120 => _120.find, 'call', _121 => _121((role) => role.id ===
|
|
5060
|
+
if (_optionalChain([currentUser, 'optionalAccess', _119 => _119.roles, 'access', _120 => _120.find, 'call', _121 => _121((role) => role.id === _chunk6YD42BP6js.getRoleId.call(void 0, ).Administrator)]) && companyId) {
|
|
5061
5061
|
cId = companyId;
|
|
5062
5062
|
} else {
|
|
5063
5063
|
if (!company) return;
|
|
@@ -5067,8 +5067,8 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
5067
5067
|
CommonDeleter,
|
|
5068
5068
|
{
|
|
5069
5069
|
type: `users`,
|
|
5070
|
-
deleteFunction: () =>
|
|
5071
|
-
() => onDeleted ? onDeleted() : router.push(generateUrl({ page:
|
|
5070
|
+
deleteFunction: () => _chunkAE3J2MATjs.UserService.delete({ userId: user.id, companyId: cId }).then(
|
|
5071
|
+
() => onDeleted ? onDeleted() : router.push(generateUrl({ page: _chunkAE3J2MATjs.Modules.User }))
|
|
5072
5072
|
)
|
|
5073
5073
|
}
|
|
5074
5074
|
);
|
|
@@ -5076,7 +5076,7 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
5076
5076
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleterInternal, "UserDeleterInternal");
|
|
5077
5077
|
function UserDeleter(props) {
|
|
5078
5078
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
5079
|
-
if (!hasPermissionToModule({ module:
|
|
5079
|
+
if (!hasPermissionToModule({ module: _chunkAE3J2MATjs.Modules.User, action: "delete" /* Delete */, data: props.user })) return null;
|
|
5080
5080
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserDeleterInternal, { ...props });
|
|
5081
5081
|
}
|
|
5082
5082
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleter, "UserDeleter");
|
|
@@ -5099,7 +5099,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
5099
5099
|
} = useCurrentUserContext();
|
|
5100
5100
|
const { company: companyFromContext } = useCompanyContext();
|
|
5101
5101
|
const generateUrl = usePageUrlGenerator();
|
|
5102
|
-
const router =
|
|
5102
|
+
const router = _chunk6YD42BP6js.useI18nRouter.call(void 0, );
|
|
5103
5103
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
5104
5104
|
const [roles, setRoles] = _react.useState.call(void 0, []);
|
|
5105
5105
|
const [file, setFile] = _react.useState.call(void 0, null);
|
|
@@ -5140,7 +5140,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
5140
5140
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
5141
5141
|
if (!user) {
|
|
5142
5142
|
try {
|
|
5143
|
-
const existingUser = await
|
|
5143
|
+
const existingUser = await _chunkAE3J2MATjs.UserService.findByEmail({ email: values.email });
|
|
5144
5144
|
if (existingUser) {
|
|
5145
5145
|
form.setError("email", {
|
|
5146
5146
|
type: "manual",
|
|
@@ -5153,7 +5153,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
5153
5153
|
}
|
|
5154
5154
|
}
|
|
5155
5155
|
if (values.avatar && contentType) {
|
|
5156
|
-
const s3 = await
|
|
5156
|
+
const s3 = await _chunkAE3J2MATjs.S3Service.getPreSignedUrl({
|
|
5157
5157
|
key: values.avatar,
|
|
5158
5158
|
contentType,
|
|
5159
5159
|
isPublic: true
|
|
@@ -5179,16 +5179,16 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
5179
5179
|
adminCreated
|
|
5180
5180
|
};
|
|
5181
5181
|
try {
|
|
5182
|
-
const updatedUser = user ? await
|
|
5182
|
+
const updatedUser = user ? await _chunkAE3J2MATjs.UserService.update(payload) : await _chunkAE3J2MATjs.UserService.create(payload);
|
|
5183
5183
|
if (_optionalChain([currentUser, 'optionalAccess', _132 => _132.id]) === updatedUser.id) setUser(updatedUser);
|
|
5184
5184
|
if (onRevalidate) {
|
|
5185
|
-
await onRevalidate(generateUrl({ page:
|
|
5185
|
+
await onRevalidate(generateUrl({ page: _chunkAE3J2MATjs.Modules.User, id: updatedUser.id, language: `[locale]` }));
|
|
5186
5186
|
}
|
|
5187
5187
|
if (propagateChanges) {
|
|
5188
5188
|
propagateChanges(updatedUser);
|
|
5189
5189
|
setOpen(false);
|
|
5190
5190
|
} else {
|
|
5191
|
-
router.push(generateUrl({ page:
|
|
5191
|
+
router.push(generateUrl({ page: _chunkAE3J2MATjs.Modules.User, id: updatedUser.id }));
|
|
5192
5192
|
}
|
|
5193
5193
|
} catch (error) {
|
|
5194
5194
|
errorToast({ title: user ? t(`generic.errors.update`) : t(`generic.errors.create`), error });
|
|
@@ -5196,14 +5196,14 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
5196
5196
|
}, "onSubmit");
|
|
5197
5197
|
_react.useEffect.call(void 0, () => {
|
|
5198
5198
|
async function fetchRoles() {
|
|
5199
|
-
const roles2 = await
|
|
5199
|
+
const roles2 = await _chunkAE3J2MATjs.RoleService.findAllRoles({});
|
|
5200
5200
|
const availableRoles = roles2.filter(
|
|
5201
|
-
(role) => role.id !==
|
|
5201
|
+
(role) => role.id !== _chunk6YD42BP6js.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]))]))
|
|
5202
5202
|
);
|
|
5203
5203
|
setRoles(availableRoles);
|
|
5204
5204
|
}
|
|
5205
5205
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchRoles, "fetchRoles");
|
|
5206
|
-
if (open && (company || _optionalChain([currentUser, 'optionalAccess', _138 => _138.roles, 'access', _139 => _139.find, 'call', _140 => _140((role) => role.id ===
|
|
5206
|
+
if (open && (company || _optionalChain([currentUser, 'optionalAccess', _138 => _138.roles, 'access', _139 => _139.find, 'call', _140 => _140((role) => role.id === _chunk6YD42BP6js.getRoleId.call(void 0, ).Administrator)])) && roles.length === 0)
|
|
5207
5207
|
fetchRoles();
|
|
5208
5208
|
}, [company, open]);
|
|
5209
5209
|
_react.useEffect.call(void 0, () => {
|
|
@@ -5224,7 +5224,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
5224
5224
|
setContentType(null);
|
|
5225
5225
|
}
|
|
5226
5226
|
}, [file]);
|
|
5227
|
-
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _141 => _141.id]) === _optionalChain([user, 'optionalAccess', _142 => _142.id]) && hasRole(
|
|
5227
|
+
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _141 => _141.id]) === _optionalChain([user, 'optionalAccess', _142 => _142.id]) && hasRole(_chunk6YD42BP6js.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkAE3J2MATjs.Modules.User, action: "update" /* Update */ }) || hasRole(_chunk6YD42BP6js.getRoleId.call(void 0, ).Administrator));
|
|
5228
5228
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
5229
5229
|
trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTrigger, { asChild: true, children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!user }),
|
|
5230
5230
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -5318,7 +5318,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
5318
5318
|
] })
|
|
5319
5319
|
] }),
|
|
5320
5320
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-end gap-x-4", children: [
|
|
5321
|
-
user && _optionalChain([currentUser, 'optionalAccess', _144 => _144.roles, 'access', _145 => _145.find, 'call', _146 => _146((role) => role.id ===
|
|
5321
|
+
user && _optionalChain([currentUser, 'optionalAccess', _144 => _144.roles, 'access', _145 => _145.find, 'call', _146 => _146((role) => role.id === _chunk6YD42BP6js.getRoleId.call(void 0, ).Administrator)]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5322
5322
|
UserDeleter,
|
|
5323
5323
|
{
|
|
5324
5324
|
companyId: _optionalChain([user, 'access', _147 => _147.company, 'optionalAccess', _148 => _148.id]),
|
|
@@ -5341,7 +5341,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserEditorInternal, "UserEditorInternal");
|
|
|
5341
5341
|
function UserEditor(props) {
|
|
5342
5342
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
5343
5343
|
if (!hasPermissionToModule({
|
|
5344
|
-
module:
|
|
5344
|
+
module: _chunkAE3J2MATjs.Modules.User,
|
|
5345
5345
|
action: props.user ? "update" /* Update */ : "create" /* Create */,
|
|
5346
5346
|
data: props.user
|
|
5347
5347
|
}))
|
|
@@ -5380,10 +5380,10 @@ function UserMultiSelect({
|
|
|
5380
5380
|
const data = useDataListRetriever({
|
|
5381
5381
|
ready: !!company,
|
|
5382
5382
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
5383
|
-
return
|
|
5383
|
+
return _chunkAE3J2MATjs.UserService.findAllUsers(params);
|
|
5384
5384
|
}, "retriever"),
|
|
5385
5385
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _149 => _149.id]) },
|
|
5386
|
-
module:
|
|
5386
|
+
module: _chunkAE3J2MATjs.Modules.User
|
|
5387
5387
|
});
|
|
5388
5388
|
_react.useEffect.call(void 0, () => {
|
|
5389
5389
|
if (company) data.setReady(true);
|
|
@@ -5494,7 +5494,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
5494
5494
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
5495
5495
|
const reactivateUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
5496
5496
|
try {
|
|
5497
|
-
const updatedUser = await
|
|
5497
|
+
const updatedUser = await _chunkAE3J2MATjs.UserService.reactivate({ userId: user.id });
|
|
5498
5498
|
setOpen(false);
|
|
5499
5499
|
propagateChanges(updatedUser);
|
|
5500
5500
|
} catch (error) {
|
|
@@ -5532,7 +5532,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
5532
5532
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivatorInterface, "UserReactivatorInterface");
|
|
5533
5533
|
function UserReactivator(props) {
|
|
5534
5534
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
5535
|
-
if (!hasPermissionToModule({ module:
|
|
5535
|
+
if (!hasPermissionToModule({ module: _chunkAE3J2MATjs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
5536
5536
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserReactivatorInterface, { ...props });
|
|
5537
5537
|
}
|
|
5538
5538
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivator, "UserReactivator");
|
|
@@ -5548,7 +5548,7 @@ function UserResentInvitationEmailInternal({ user }) {
|
|
|
5548
5548
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
5549
5549
|
const sendInvitationEmail = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
5550
5550
|
try {
|
|
5551
|
-
await
|
|
5551
|
+
await _chunkAE3J2MATjs.UserService.sendInvitation({ userId: user.id, companyId: user.company.id });
|
|
5552
5552
|
setOpen(false);
|
|
5553
5553
|
_sonner.toast.message(t(`foundations.user.resend_activation.email_sent`), {
|
|
5554
5554
|
description: t(`foundations.user.resend_activation.email_sent_description`, { email: user.email })
|
|
@@ -5588,7 +5588,7 @@ function UserResentInvitationEmailInternal({ user }) {
|
|
|
5588
5588
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmailInternal, "UserResentInvitationEmailInternal");
|
|
5589
5589
|
function UserResentInvitationEmail(props) {
|
|
5590
5590
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
5591
|
-
if (!hasPermissionToModule({ module:
|
|
5591
|
+
if (!hasPermissionToModule({ module: _chunkAE3J2MATjs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
5592
5592
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserResentInvitationEmailInternal, { ...props });
|
|
5593
5593
|
}
|
|
5594
5594
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmail, "UserResentInvitationEmail");
|
|
@@ -5620,22 +5620,22 @@ function UserAvatar({ user, className, showFull, showLink }) {
|
|
|
5620
5620
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
|
|
5621
5621
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { asChild: true, children: showLink === false ? (
|
|
5622
5622
|
// If showLink is explicitly false, never show a link
|
|
5623
|
-
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
5623
|
+
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkAE3J2MATjs.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className), children: [
|
|
5624
5624
|
getAvatar(),
|
|
5625
5625
|
user.name
|
|
5626
5626
|
] }) : getAvatar()
|
|
5627
5627
|
) : showFull ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5628
5628
|
Link2,
|
|
5629
5629
|
{
|
|
5630
|
-
href: generateUrl({ page:
|
|
5631
|
-
className:
|
|
5630
|
+
href: generateUrl({ page: _chunkAE3J2MATjs.Modules.User, id: user.id }),
|
|
5631
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className),
|
|
5632
5632
|
onClick: (e) => e.stopPropagation(),
|
|
5633
5633
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center gap-x-2", children: [
|
|
5634
5634
|
getAvatar(),
|
|
5635
5635
|
user.name
|
|
5636
5636
|
] })
|
|
5637
5637
|
}
|
|
5638
|
-
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link2, { href: generateUrl({ page:
|
|
5638
|
+
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link2, { href: generateUrl({ page: _chunkAE3J2MATjs.Modules.User, id: user.id }), className, children: getAvatar() }) : getAvatar() }),
|
|
5639
5639
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: user.name })
|
|
5640
5640
|
] });
|
|
5641
5641
|
}
|
|
@@ -5651,10 +5651,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
5651
5651
|
const [isSearching, setIsSearching] = _react.useState.call(void 0, false);
|
|
5652
5652
|
const data = useDataListRetriever({
|
|
5653
5653
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
5654
|
-
return
|
|
5654
|
+
return _chunkAE3J2MATjs.UserService.findMany(params);
|
|
5655
5655
|
}, "retriever"),
|
|
5656
5656
|
retrieverParams: {},
|
|
5657
|
-
module:
|
|
5657
|
+
module: _chunkAE3J2MATjs.Modules.User
|
|
5658
5658
|
});
|
|
5659
5659
|
const search = _react.useCallback.call(void 0,
|
|
5660
5660
|
async (searchedTerm) => {
|
|
@@ -5759,24 +5759,24 @@ var UserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
5759
5759
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
5760
5760
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
5761
5761
|
const [user, setUser] = _react.useState.call(void 0,
|
|
5762
|
-
dehydratedUser ?
|
|
5762
|
+
dehydratedUser ? _chunkAE3J2MATjs.rehydrate.call(void 0, _chunkAE3J2MATjs.Modules.User, dehydratedUser) : void 0
|
|
5763
5763
|
);
|
|
5764
5764
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
5765
5765
|
const response = [];
|
|
5766
|
-
if (hasPermissionToModule({ module:
|
|
5766
|
+
if (hasPermissionToModule({ module: _chunkAE3J2MATjs.Modules.User, action: "update" /* Update */ })) {
|
|
5767
5767
|
response.push({
|
|
5768
5768
|
name: t(`generic.settings`),
|
|
5769
5769
|
href: generateUrl({ page: `/settings` })
|
|
5770
5770
|
});
|
|
5771
5771
|
response.push({
|
|
5772
5772
|
name: t(`types.users`, { count: 2 }),
|
|
5773
|
-
href: generateUrl({ page: `/settings`, id:
|
|
5773
|
+
href: generateUrl({ page: `/settings`, id: _chunkAE3J2MATjs.Modules.User.pageUrl })
|
|
5774
5774
|
});
|
|
5775
5775
|
}
|
|
5776
5776
|
if (user)
|
|
5777
5777
|
response.push({
|
|
5778
5778
|
name: `${user.name}${user.isDeleted ? ` (${t(`foundations.user.deleted`)})` : ""}`,
|
|
5779
|
-
href: generateUrl({ page:
|
|
5779
|
+
href: generateUrl({ page: _chunkAE3J2MATjs.Modules.User, id: user.id })
|
|
5780
5780
|
});
|
|
5781
5781
|
return response;
|
|
5782
5782
|
}, "breadcrumb");
|
|
@@ -5831,7 +5831,7 @@ function UserDetails({ user }) {
|
|
|
5831
5831
|
const { title } = useSharedContext();
|
|
5832
5832
|
let roles = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
5833
5833
|
if (user.roles && user.roles.length > 0) {
|
|
5834
|
-
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:
|
|
5834
|
+
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: _chunkAE3J2MATjs.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)) }) });
|
|
5835
5835
|
}
|
|
5836
5836
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
5837
5837
|
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,
|
|
@@ -5898,18 +5898,18 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserIndexContainer, "UserIndexContainer");
|
|
|
5898
5898
|
function UsersListContainerInternal() {
|
|
5899
5899
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
5900
5900
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
5901
|
-
if (!hasPermissionToModule({ module:
|
|
5901
|
+
if (!hasPermissionToModule({ module: _chunkAE3J2MATjs.Modules.User, action: "delete" /* Delete */ })) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {});
|
|
5902
5902
|
const tabs = [
|
|
5903
5903
|
{
|
|
5904
5904
|
label: t(`types.users`, { count: 2 }),
|
|
5905
5905
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {}),
|
|
5906
|
-
modules: [
|
|
5906
|
+
modules: [_chunkAE3J2MATjs.Modules.Company],
|
|
5907
5907
|
action: "read" /* Read */
|
|
5908
5908
|
},
|
|
5909
5909
|
{
|
|
5910
5910
|
label: t(`foundations.user.deleted`),
|
|
5911
5911
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, { isDeleted: true }),
|
|
5912
|
-
modules: [
|
|
5912
|
+
modules: [_chunkAE3J2MATjs.Modules.Company],
|
|
5913
5913
|
action: "update" /* Update */
|
|
5914
5914
|
}
|
|
5915
5915
|
];
|
|
@@ -5927,9 +5927,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersListContainer, "UsersListContainer");
|
|
|
5927
5927
|
function AdminUsersListInternal({ company }) {
|
|
5928
5928
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
5929
5929
|
const data = useDataListRetriever({
|
|
5930
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
5930
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAE3J2MATjs.UserService.findManyForAmin(params), "retriever"),
|
|
5931
5931
|
retrieverParams: { companyId: company.id },
|
|
5932
|
-
module:
|
|
5932
|
+
module: _chunkAE3J2MATjs.Modules.User
|
|
5933
5933
|
});
|
|
5934
5934
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5935
5935
|
ContentListTable,
|
|
@@ -5937,7 +5937,7 @@ function AdminUsersListInternal({ company }) {
|
|
|
5937
5937
|
title: t(`types.users`, { count: 2 }),
|
|
5938
5938
|
data,
|
|
5939
5939
|
fields: ["name" /* name */, "email" /* email */, "createdAt" /* createdAt */],
|
|
5940
|
-
tableGeneratorType:
|
|
5940
|
+
tableGeneratorType: _chunkAE3J2MATjs.Modules.User,
|
|
5941
5941
|
functions: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserEditor, { propagateChanges: data.refresh, adminCreated: true })
|
|
5942
5942
|
}
|
|
5943
5943
|
);
|
|
@@ -5959,9 +5959,9 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
5959
5959
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
5960
5960
|
const data = useDataListRetriever({
|
|
5961
5961
|
ready: !!company,
|
|
5962
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
5962
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAE3J2MATjs.UserService.findAllUsers(params), "retriever"),
|
|
5963
5963
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _168 => _168.id]), isDeleted },
|
|
5964
|
-
module:
|
|
5964
|
+
module: _chunkAE3J2MATjs.Modules.User
|
|
5965
5965
|
});
|
|
5966
5966
|
_react.useEffect.call(void 0, () => {
|
|
5967
5967
|
if (company) data.setReady(true);
|
|
@@ -5974,7 +5974,7 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
5974
5974
|
{
|
|
5975
5975
|
data,
|
|
5976
5976
|
fields: ["name" /* name */, "email" /* email */],
|
|
5977
|
-
tableGeneratorType:
|
|
5977
|
+
tableGeneratorType: _chunkAE3J2MATjs.Modules.User,
|
|
5978
5978
|
functions,
|
|
5979
5979
|
title: t(`types.users`, { count: 2 })
|
|
5980
5980
|
}
|
|
@@ -5990,7 +5990,7 @@ function ContributorsList({ content }) {
|
|
|
5990
5990
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5991
5991
|
Link2,
|
|
5992
5992
|
{
|
|
5993
|
-
href: generateUrl({ page:
|
|
5993
|
+
href: generateUrl({ page: _chunkAE3J2MATjs.Modules.User, id: content.author.id }),
|
|
5994
5994
|
onClick: (e) => e.stopPropagation(),
|
|
5995
5995
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: content.author, className: "mr-1 h-6 w-6" })
|
|
5996
5996
|
},
|
|
@@ -5999,7 +5999,7 @@ function ContributorsList({ content }) {
|
|
|
5999
5999
|
/* @__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,
|
|
6000
6000
|
Link2,
|
|
6001
6001
|
{
|
|
6002
|
-
href: generateUrl({ page:
|
|
6002
|
+
href: generateUrl({ page: _chunkAE3J2MATjs.Modules.User, id: editor.id }),
|
|
6003
6003
|
onClick: (e) => e.stopPropagation(),
|
|
6004
6004
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: editor, className: "h-5 w-5" })
|
|
6005
6005
|
},
|
|
@@ -6015,8 +6015,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContributorsList, "ContributorsList");
|
|
|
6015
6015
|
function RelevantUsersList({ id }) {
|
|
6016
6016
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
6017
6017
|
const data = useDataListRetriever({
|
|
6018
|
-
module:
|
|
6019
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
6018
|
+
module: _chunkAE3J2MATjs.Modules.User,
|
|
6019
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAE3J2MATjs.UserService.findRelevant(params), "retriever"),
|
|
6020
6020
|
retrieverParams: { id }
|
|
6021
6021
|
});
|
|
6022
6022
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -6024,7 +6024,7 @@ function RelevantUsersList({ id }) {
|
|
|
6024
6024
|
{
|
|
6025
6025
|
data,
|
|
6026
6026
|
fields: ["name" /* name */, "email" /* email */, "relevance" /* relevance */],
|
|
6027
|
-
tableGeneratorType:
|
|
6027
|
+
tableGeneratorType: _chunkAE3J2MATjs.Modules.User,
|
|
6028
6028
|
title: t(`generic.relevant_users`)
|
|
6029
6029
|
}
|
|
6030
6030
|
);
|
|
@@ -6037,16 +6037,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RelevantUsersList, "RelevantUsersList");
|
|
|
6037
6037
|
function RoleUsersList({ role }) {
|
|
6038
6038
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
6039
6039
|
const data = useDataListRetriever({
|
|
6040
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
6040
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAE3J2MATjs.UserService.findAllUsersByRole(params), "retriever"),
|
|
6041
6041
|
retrieverParams: { roleId: role.id },
|
|
6042
|
-
module:
|
|
6042
|
+
module: _chunkAE3J2MATjs.Modules.User
|
|
6043
6043
|
});
|
|
6044
6044
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6045
6045
|
ContentListTable,
|
|
6046
6046
|
{
|
|
6047
6047
|
data,
|
|
6048
6048
|
fields: ["name" /* name */, "email" /* email */],
|
|
6049
|
-
tableGeneratorType:
|
|
6049
|
+
tableGeneratorType: _chunkAE3J2MATjs.Modules.User,
|
|
6050
6050
|
title: t(`types.users`, { count: 2 })
|
|
6051
6051
|
}
|
|
6052
6052
|
);
|
|
@@ -6096,7 +6096,7 @@ function UsersList({ data, optionComponents, removeFunction, hideOptions, showRe
|
|
|
6096
6096
|
{
|
|
6097
6097
|
data,
|
|
6098
6098
|
fields: ["name" /* name */, "email" /* email */],
|
|
6099
|
-
tableGeneratorType:
|
|
6099
|
+
tableGeneratorType: _chunkAE3J2MATjs.Modules.User,
|
|
6100
6100
|
title: t(`types.users`, { count: 2 })
|
|
6101
6101
|
}
|
|
6102
6102
|
);
|
|
@@ -6109,8 +6109,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersList, "UsersList");
|
|
|
6109
6109
|
function UsersListByContentIds({ contentIds }) {
|
|
6110
6110
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
6111
6111
|
const data = useDataListRetriever({
|
|
6112
|
-
module:
|
|
6113
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
6112
|
+
module: _chunkAE3J2MATjs.Modules.User,
|
|
6113
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAE3J2MATjs.UserService.findManyByContentIds(params), "retriever"),
|
|
6114
6114
|
retrieverParams: { contentIds }
|
|
6115
6115
|
});
|
|
6116
6116
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -6118,7 +6118,7 @@ function UsersListByContentIds({ contentIds }) {
|
|
|
6118
6118
|
{
|
|
6119
6119
|
data,
|
|
6120
6120
|
fields: ["name" /* name */, "email" /* email */],
|
|
6121
|
-
tableGeneratorType:
|
|
6121
|
+
tableGeneratorType: _chunkAE3J2MATjs.Modules.User,
|
|
6122
6122
|
title: t(`generic.relevant_users`)
|
|
6123
6123
|
}
|
|
6124
6124
|
);
|
|
@@ -6147,7 +6147,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyDetails, "CompanyDetails");
|
|
|
6147
6147
|
function AdminCompanyContainerInternal() {
|
|
6148
6148
|
const { company } = useCompanyContext();
|
|
6149
6149
|
const { hasRole } = useCurrentUserContext();
|
|
6150
|
-
if (!company || !hasRole(
|
|
6150
|
+
if (!company || !hasRole(_chunk6YD42BP6js.getRoleId.call(void 0, ).Administrator)) return null;
|
|
6151
6151
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
6152
6152
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDetails, {}),
|
|
6153
6153
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AdminUsersList, {})
|
|
@@ -6292,8 +6292,8 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
6292
6292
|
}
|
|
6293
6293
|
};
|
|
6294
6294
|
try {
|
|
6295
|
-
await
|
|
6296
|
-
const fullUser = await
|
|
6295
|
+
await _chunkAE3J2MATjs.CompanyService.updateConfigurations(payload);
|
|
6296
|
+
const fullUser = await _chunkAE3J2MATjs.UserService.findFullUser();
|
|
6297
6297
|
if (fullUser) {
|
|
6298
6298
|
setUser(fullUser);
|
|
6299
6299
|
}
|
|
@@ -6329,7 +6329,7 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
6329
6329
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditorInternal, "CompanyConfigurationEditorInternal");
|
|
6330
6330
|
function CompanyConfigurationEditor(props) {
|
|
6331
6331
|
const { hasRole } = useCurrentUserContext();
|
|
6332
|
-
if (hasRole(
|
|
6332
|
+
if (hasRole(_chunk6YD42BP6js.getRoleId.call(void 0, ).Administrator)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditorInternal, { ...props });
|
|
6333
6333
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditorInternal, { ...props });
|
|
6334
6334
|
}
|
|
6335
6335
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditor, "CompanyConfigurationEditor");
|
|
@@ -6341,14 +6341,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditor, "CompanyConfigu
|
|
|
6341
6341
|
|
|
6342
6342
|
function CompanyDeleterInternal({ company }) {
|
|
6343
6343
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
6344
|
-
const router =
|
|
6344
|
+
const router = _chunk6YD42BP6js.useI18nRouter.call(void 0, );
|
|
6345
6345
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
6346
6346
|
const [isDeleting, setIsDeleting] = _react.useState.call(void 0, false);
|
|
6347
6347
|
const [companyName, setCompanyName] = _react.useState.call(void 0, "");
|
|
6348
6348
|
const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
6349
6349
|
setIsDeleting(true);
|
|
6350
6350
|
try {
|
|
6351
|
-
await
|
|
6351
|
+
await _chunkAE3J2MATjs.CompanyService.delete({ companyId: company.id });
|
|
6352
6352
|
router.push("/");
|
|
6353
6353
|
} catch (error) {
|
|
6354
6354
|
errorToast({ title: t(`generic.errors.delete`), error });
|
|
@@ -6418,7 +6418,7 @@ function CompanyDeleterInternal({ company }) {
|
|
|
6418
6418
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleterInternal, "CompanyDeleterInternal");
|
|
6419
6419
|
function CompanyDeleter({ company }) {
|
|
6420
6420
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
6421
|
-
if (!hasRole(
|
|
6421
|
+
if (!hasRole(_chunk6YD42BP6js.getRoleId.call(void 0, ).Administrator) && !hasPermissionToModule({ module: _chunkAE3J2MATjs.Modules.Company, action: "delete" /* Delete */ }))
|
|
6422
6422
|
return null;
|
|
6423
6423
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleterInternal, { company });
|
|
6424
6424
|
}
|
|
@@ -6437,7 +6437,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleter, "CompanyDeleter");
|
|
|
6437
6437
|
|
|
6438
6438
|
function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
6439
6439
|
const { hasRole } = useCurrentUserContext();
|
|
6440
|
-
const router =
|
|
6440
|
+
const router = _chunk6YD42BP6js.useI18nRouter.call(void 0, );
|
|
6441
6441
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
6442
6442
|
const [features, setFeatures] = _react.useState.call(void 0, []);
|
|
6443
6443
|
const [file, setFile] = _react.useState.call(void 0, null);
|
|
@@ -6466,7 +6466,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
6466
6466
|
});
|
|
6467
6467
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
6468
6468
|
if (values.logo && contentType) {
|
|
6469
|
-
const s3 = await
|
|
6469
|
+
const s3 = await _chunkAE3J2MATjs.S3Service.getPreSignedUrl({
|
|
6470
6470
|
key: values.logo,
|
|
6471
6471
|
contentType,
|
|
6472
6472
|
isPublic: true
|
|
@@ -6485,9 +6485,9 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
6485
6485
|
moduleIds: values.moduleIds
|
|
6486
6486
|
};
|
|
6487
6487
|
try {
|
|
6488
|
-
const updatedCompany = company ? await
|
|
6488
|
+
const updatedCompany = company ? await _chunkAE3J2MATjs.CompanyService.update(payload) : await _chunkAE3J2MATjs.CompanyService.create(payload);
|
|
6489
6489
|
if (onRevalidate) {
|
|
6490
|
-
await onRevalidate(generateUrl({ page:
|
|
6490
|
+
await onRevalidate(generateUrl({ page: _chunkAE3J2MATjs.Modules.Company, id: updatedCompany.id, language: `[locale]` }));
|
|
6491
6491
|
}
|
|
6492
6492
|
if (company && propagateChanges) {
|
|
6493
6493
|
_cookiesnext.setCookie.call(void 0, "reloadData", "true", { path: "/" });
|
|
@@ -6505,15 +6505,15 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
6505
6505
|
}, "onSubmit");
|
|
6506
6506
|
_react.useEffect.call(void 0, () => {
|
|
6507
6507
|
async function fetchFeatures() {
|
|
6508
|
-
const allfeatures = await
|
|
6509
|
-
if (hasRole(
|
|
6508
|
+
const allfeatures = await _chunkAE3J2MATjs.FeatureService.findMany({});
|
|
6509
|
+
if (hasRole(_chunk6YD42BP6js.getRoleId.call(void 0, ).Administrator)) {
|
|
6510
6510
|
setFeatures(allfeatures);
|
|
6511
6511
|
} else {
|
|
6512
6512
|
setFeatures(allfeatures.filter((feature) => feature.isProduction));
|
|
6513
6513
|
}
|
|
6514
6514
|
}
|
|
6515
6515
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
|
|
6516
|
-
if (open && features.length === 0 && (hasRole(
|
|
6516
|
+
if (open && features.length === 0 && (hasRole(_chunk6YD42BP6js.getRoleId.call(void 0, ).Administrator) || hasRole(_chunk6YD42BP6js.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _189 => _189.env, 'access', _190 => _190.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _191 => _191.toLowerCase, 'call', _192 => _192()]) === "true"))
|
|
6517
6517
|
fetchFeatures();
|
|
6518
6518
|
}, [open, features]);
|
|
6519
6519
|
_react.useEffect.call(void 0, () => {
|
|
@@ -6547,8 +6547,8 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
6547
6547
|
"application/images": [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg"]
|
|
6548
6548
|
}
|
|
6549
6549
|
};
|
|
6550
|
-
const canAccessFeatures = hasRole(
|
|
6551
|
-
const isAdministrator = hasRole(
|
|
6550
|
+
const canAccessFeatures = hasRole(_chunk6YD42BP6js.getRoleId.call(void 0, ).Administrator) || hasRole(_chunk6YD42BP6js.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _193 => _193.env, 'access', _194 => _194.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _195 => _195.toLowerCase, 'call', _196 => _196()]) === "true";
|
|
6551
|
+
const isAdministrator = hasRole(_chunk6YD42BP6js.getRoleId.call(void 0, ).Administrator);
|
|
6552
6552
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
6553
6553
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!company }),
|
|
6554
6554
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -6619,9 +6619,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyEditor, "CompanyEditor");
|
|
|
6619
6619
|
function CompaniesList() {
|
|
6620
6620
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
6621
6621
|
const data = useDataListRetriever({
|
|
6622
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
6622
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAE3J2MATjs.CompanyService.findMany(params), "retriever"),
|
|
6623
6623
|
retrieverParams: {},
|
|
6624
|
-
module:
|
|
6624
|
+
module: _chunkAE3J2MATjs.Modules.Company
|
|
6625
6625
|
});
|
|
6626
6626
|
const functions = [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, {}, "create-account")];
|
|
6627
6627
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -6629,7 +6629,7 @@ function CompaniesList() {
|
|
|
6629
6629
|
{
|
|
6630
6630
|
data,
|
|
6631
6631
|
fields: ["name" /* name */, "createdAt" /* createdAt */],
|
|
6632
|
-
tableGeneratorType:
|
|
6632
|
+
tableGeneratorType: _chunkAE3J2MATjs.Modules.Company,
|
|
6633
6633
|
functions,
|
|
6634
6634
|
title: t(`types.companies`, { count: 2 })
|
|
6635
6635
|
}
|
|
@@ -6650,14 +6650,14 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
6650
6650
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
6651
6651
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
6652
6652
|
const [company, setCompany] = _react.useState.call(void 0,
|
|
6653
|
-
dehydratedCompany ?
|
|
6653
|
+
dehydratedCompany ? _chunkAE3J2MATjs.rehydrate.call(void 0, _chunkAE3J2MATjs.Modules.Company, dehydratedCompany) : void 0
|
|
6654
6654
|
);
|
|
6655
6655
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
6656
6656
|
const response = [];
|
|
6657
6657
|
if (company)
|
|
6658
6658
|
response.push({
|
|
6659
6659
|
name: company.name,
|
|
6660
|
-
href: generateUrl({ page:
|
|
6660
|
+
href: generateUrl({ page: _chunkAE3J2MATjs.Modules.Company })
|
|
6661
6661
|
});
|
|
6662
6662
|
return response;
|
|
6663
6663
|
}, "breadcrumb");
|
|
@@ -6667,9 +6667,9 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
6667
6667
|
};
|
|
6668
6668
|
if (company) response.element = company.name;
|
|
6669
6669
|
const functions = [];
|
|
6670
|
-
if (company && hasRole(
|
|
6670
|
+
if (company && hasRole(_chunk6YD42BP6js.getRoleId.call(void 0, ).Administrator) && hasPermissionToModule({ module: _chunkAE3J2MATjs.Modules.Company, action: "delete" /* Delete */ }))
|
|
6671
6671
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleter, { company }, "companyDeleter"));
|
|
6672
|
-
if (hasRole(
|
|
6672
|
+
if (hasRole(_chunk6YD42BP6js.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module: _chunkAE3J2MATjs.Modules.Company, action: "update" /* Update */ })) {
|
|
6673
6673
|
if (company) functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditor, { company }, "companyConfigurationEditor"));
|
|
6674
6674
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, { company, propagateChanges: setCompany }, "companyEditor"));
|
|
6675
6675
|
}
|
|
@@ -6757,7 +6757,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, NotificationMenuItem, "NotificationMenuItem
|
|
|
6757
6757
|
var NotificationContext = _react.createContext.call(void 0, void 0);
|
|
6758
6758
|
var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ children }) => {
|
|
6759
6759
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
6760
|
-
const router =
|
|
6760
|
+
const router = _chunk6YD42BP6js.useI18nRouter.call(void 0, );
|
|
6761
6761
|
const [notifications, setNotifications] = _react.useState.call(void 0, []);
|
|
6762
6762
|
const [isLoading, setIsLoading] = _react.useState.call(void 0, false);
|
|
6763
6763
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
@@ -6782,7 +6782,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
6782
6782
|
setIsLoading(true);
|
|
6783
6783
|
setError(null);
|
|
6784
6784
|
try {
|
|
6785
|
-
const fetchedNotifications = await
|
|
6785
|
+
const fetchedNotifications = await _chunkAE3J2MATjs.NotificationService.findMany({});
|
|
6786
6786
|
setNotifications(fetchedNotifications);
|
|
6787
6787
|
setLastLoaded(Date.now());
|
|
6788
6788
|
} catch (error2) {
|
|
@@ -6798,7 +6798,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
6798
6798
|
try {
|
|
6799
6799
|
const data = {
|
|
6800
6800
|
data: ids.map((id) => ({
|
|
6801
|
-
type:
|
|
6801
|
+
type: _chunkAE3J2MATjs.Modules.Notification.name,
|
|
6802
6802
|
id,
|
|
6803
6803
|
attributes: {
|
|
6804
6804
|
isRead: true
|
|
@@ -6807,8 +6807,8 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
6807
6807
|
relationships: {}
|
|
6808
6808
|
}))
|
|
6809
6809
|
};
|
|
6810
|
-
await
|
|
6811
|
-
const allNotifications = await
|
|
6810
|
+
await _chunkAE3J2MATjs.NotificationService.markAsRead({ data });
|
|
6811
|
+
const allNotifications = await _chunkAE3J2MATjs.NotificationService.findMany({});
|
|
6812
6812
|
setNotifications(allNotifications);
|
|
6813
6813
|
setLastLoaded(Date.now());
|
|
6814
6814
|
} catch (error2) {
|
|
@@ -6876,18 +6876,18 @@ var RoleProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
6876
6876
|
const generateUrl = usePageUrlGenerator();
|
|
6877
6877
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
6878
6878
|
const [role, setRole] = _react.useState.call(void 0,
|
|
6879
|
-
dehydratedRole ?
|
|
6879
|
+
dehydratedRole ? _chunkAE3J2MATjs.rehydrate.call(void 0, _chunkAE3J2MATjs.Modules.Role, dehydratedRole) : void 0
|
|
6880
6880
|
);
|
|
6881
6881
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
6882
6882
|
const response = [];
|
|
6883
6883
|
response.push({
|
|
6884
6884
|
name: t(`types.roles`, { count: 2 }),
|
|
6885
|
-
href: generateUrl({ page:
|
|
6885
|
+
href: generateUrl({ page: _chunkAE3J2MATjs.Modules.Role })
|
|
6886
6886
|
});
|
|
6887
6887
|
if (role)
|
|
6888
6888
|
response.push({
|
|
6889
6889
|
name: role.name,
|
|
6890
|
-
href: generateUrl({ page:
|
|
6890
|
+
href: generateUrl({ page: _chunkAE3J2MATjs.Modules.Role, id: role.id })
|
|
6891
6891
|
});
|
|
6892
6892
|
return response;
|
|
6893
6893
|
}, "breadcrumb");
|
|
@@ -7050,7 +7050,7 @@ function usePageTracker() {
|
|
|
7050
7050
|
const moduleName = pathParts[0];
|
|
7051
7051
|
const entityId = pathParts.length > 1 ? pathParts[1] : null;
|
|
7052
7052
|
if (!entityId) return;
|
|
7053
|
-
const trackablePages =
|
|
7053
|
+
const trackablePages = _chunk6YD42BP6js.getTrackablePages.call(void 0, );
|
|
7054
7054
|
const foundModule = trackablePages.find((mod) => mod.pageUrl === `/${moduleName}`);
|
|
7055
7055
|
if (!foundModule) return;
|
|
7056
7056
|
const baseUrl = `/${moduleName}/${entityId}`;
|
|
@@ -7097,7 +7097,7 @@ function usePushNotifications() {
|
|
|
7097
7097
|
try {
|
|
7098
7098
|
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _210 => _210.id])}`;
|
|
7099
7099
|
const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
|
|
7100
|
-
const registration = await navigator.serviceWorker.register(`${
|
|
7100
|
+
const registration = await navigator.serviceWorker.register(`${_chunk6YD42BP6js.getAppUrl.call(void 0, )}/sw.js`);
|
|
7101
7101
|
let permission = Notification.permission;
|
|
7102
7102
|
if (permission === "default") {
|
|
7103
7103
|
permission = await Notification.requestPermission();
|
|
@@ -7122,7 +7122,7 @@ function usePushNotifications() {
|
|
|
7122
7122
|
};
|
|
7123
7123
|
const subscriptionHash = btoa(JSON.stringify(plainSubscription));
|
|
7124
7124
|
if (lastRegisteredSubscription !== subscriptionHash) {
|
|
7125
|
-
await
|
|
7125
|
+
await _chunkAE3J2MATjs.PushService.register({ data: plainSubscription });
|
|
7126
7126
|
sessionStorage.setItem(sessionKey, subscriptionHash);
|
|
7127
7127
|
}
|
|
7128
7128
|
} catch (error) {
|
|
@@ -7130,7 +7130,7 @@ function usePushNotifications() {
|
|
|
7130
7130
|
}
|
|
7131
7131
|
}
|
|
7132
7132
|
}, "register");
|
|
7133
|
-
if (currentUser && !hasRole(
|
|
7133
|
+
if (currentUser && !hasRole(_chunk6YD42BP6js.getRoleId.call(void 0, ).Administrator)) register();
|
|
7134
7134
|
}, [currentUser]);
|
|
7135
7135
|
}
|
|
7136
7136
|
_chunk7QVYU63Ejs.__name.call(void 0, usePushNotifications, "usePushNotifications");
|
|
@@ -7205,7 +7205,7 @@ function useSocket({ token }) {
|
|
|
7205
7205
|
});
|
|
7206
7206
|
}, "handleMessage");
|
|
7207
7207
|
const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
|
|
7208
|
-
const notification =
|
|
7208
|
+
const notification = _chunkAE3J2MATjs.rehydrate.call(void 0, _chunkAE3J2MATjs.Modules.Notification, data);
|
|
7209
7209
|
if (notification) {
|
|
7210
7210
|
setSocketNotifications((prev) => {
|
|
7211
7211
|
const newNotifications = [...prev, notification];
|
|
@@ -7320,7 +7320,7 @@ function ContentTitle({ type, element, functions, className }) {
|
|
|
7320
7320
|
setClientFunctions(functions);
|
|
7321
7321
|
}, [functions]);
|
|
7322
7322
|
if (!element) return null;
|
|
7323
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
7323
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkAE3J2MATjs.cn.call(void 0, `mb-4 flex w-full flex-col`, className), children: [
|
|
7324
7324
|
(type || isClient) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-row items-center justify-between gap-x-4", children: [
|
|
7325
7325
|
type && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `text-muted-foreground text-xl font-light`, children: type }),
|
|
7326
7326
|
isClient && clientFunctions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-row items-center justify-start", children: clientFunctions })
|
|
@@ -7434,7 +7434,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, RecentPagesNavigator, "RecentPagesNavigator
|
|
|
7434
7434
|
function PageContainer({ children, testId, className }) {
|
|
7435
7435
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex h-full w-full flex-col`, "data-testid": testId, children: [
|
|
7436
7436
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header2, {}),
|
|
7437
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className:
|
|
7437
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className: _chunkAE3J2MATjs.cn.call(void 0, `flex w-full flex-1 flex-col gap-y-4 pt-4 pl-4 pr-4 pb-20`, className), children })
|
|
7438
7438
|
] });
|
|
7439
7439
|
}
|
|
7440
7440
|
_chunk7QVYU63Ejs.__name.call(void 0, PageContainer, "PageContainer");
|
|
@@ -7543,7 +7543,7 @@ function TabsContainer({
|
|
|
7543
7543
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7544
7544
|
TabsList,
|
|
7545
7545
|
{
|
|
7546
|
-
className:
|
|
7546
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
7547
7547
|
`${style ? `my-4 flex w-full justify-start rounded-none border-b bg-transparent pb-0` : ``}`,
|
|
7548
7548
|
tabsListClassName
|
|
7549
7549
|
),
|
|
@@ -7551,7 +7551,7 @@ function TabsContainer({
|
|
|
7551
7551
|
TabsTrigger,
|
|
7552
7552
|
{
|
|
7553
7553
|
value: tab.label,
|
|
7554
|
-
className:
|
|
7554
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
7555
7555
|
`${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`}`,
|
|
7556
7556
|
tabsTriggerClassName
|
|
7557
7557
|
),
|
|
@@ -7571,7 +7571,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, TabsContainer, "TabsContainer");
|
|
|
7571
7571
|
// src/components/contents/AttributeElement.tsx
|
|
7572
7572
|
|
|
7573
7573
|
function AttributeElement({ inline, title, value, className }) {
|
|
7574
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
7574
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkAE3J2MATjs.cn.call(void 0, `flex ${inline === true ? "flex-row" : "flex-col"} my-1 justify-start`, className), children: [
|
|
7575
7575
|
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${inline === true ? "min-w-48 pr-4" : "w-full"} text-sm font-semibold`, children: title }),
|
|
7576
7576
|
value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col text-sm", children: value })
|
|
7577
7577
|
] });
|
|
@@ -7594,7 +7594,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AllowedUsersDetails, "AllowedUsersDetails")
|
|
|
7594
7594
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
7595
7595
|
|
|
7596
7596
|
|
|
7597
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
7597
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-PQTIP7BM.js"))), {
|
|
7598
7598
|
ssr: false
|
|
7599
7599
|
});
|
|
7600
7600
|
var BlockNoteEditorContainer = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -7752,8 +7752,8 @@ var triggerAssociationToast = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
7752
7752
|
|
|
7753
7753
|
|
|
7754
7754
|
function CommonDeleter({ deleteFunction, redirectTo, type, forceShow }) {
|
|
7755
|
-
const t =
|
|
7756
|
-
const router =
|
|
7755
|
+
const t = _chunk6YD42BP6js.useI18nTranslations.call(void 0, );
|
|
7756
|
+
const router = _chunk6YD42BP6js.useI18nRouter.call(void 0, );
|
|
7757
7757
|
const [open, setOpen] = _react.useState.call(void 0, forceShow || false);
|
|
7758
7758
|
const [isDeleting, setIsDeleting] = _react.useState.call(void 0, false);
|
|
7759
7759
|
const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
@@ -7873,8 +7873,8 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
7873
7873
|
align = "start",
|
|
7874
7874
|
className
|
|
7875
7875
|
}) => {
|
|
7876
|
-
const locale =
|
|
7877
|
-
const dateFnsLocale =
|
|
7876
|
+
const locale = _chunk6YD42BP6js.useI18nLocale.call(void 0, );
|
|
7877
|
+
const dateFnsLocale = _chunk6YD42BP6js.useI18nDateFnsLocale.call(void 0, );
|
|
7878
7878
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
7879
7879
|
const [displayMonth, setDisplayMonth] = _react.useState.call(void 0, () => value || /* @__PURE__ */ new Date());
|
|
7880
7880
|
const dateFormatter = _react.useMemo.call(void 0,
|
|
@@ -7937,7 +7937,7 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
7937
7937
|
}, "handleClear");
|
|
7938
7938
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open: isOpen, onOpenChange: setIsOpen, children: [
|
|
7939
7939
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { asChild: true, children }),
|
|
7940
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className:
|
|
7940
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className: _chunkAE3J2MATjs.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: [
|
|
7941
7941
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative mb-3", children: [
|
|
7942
7942
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7943
7943
|
Input,
|
|
@@ -8051,13 +8051,13 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
8051
8051
|
setDate(range);
|
|
8052
8052
|
}
|
|
8053
8053
|
}, "handleSelect");
|
|
8054
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
8054
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkAE3J2MATjs.cn.call(void 0, "grid gap-2"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, children: [
|
|
8055
8055
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8056
8056
|
Button,
|
|
8057
8057
|
{
|
|
8058
8058
|
id: "date",
|
|
8059
8059
|
variant: "outline",
|
|
8060
|
-
className:
|
|
8060
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
|
|
8061
8061
|
children: [
|
|
8062
8062
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
|
|
8063
8063
|
_optionalChain([date, 'optionalAccess', _225 => _225.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -8250,7 +8250,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
8250
8250
|
ref,
|
|
8251
8251
|
tabIndex: 0,
|
|
8252
8252
|
onKeyDownCapture: handleKeyDown,
|
|
8253
|
-
className:
|
|
8253
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
8254
8254
|
"grid w-full overflow-hidden focus:outline-none",
|
|
8255
8255
|
className,
|
|
8256
8256
|
// Original className from props
|
|
@@ -8274,12 +8274,12 @@ var FileUploaderContent = _react.forwardRef.call(void 0,
|
|
|
8274
8274
|
({ children, className, ...props }, ref) => {
|
|
8275
8275
|
const { orientation } = useFileUpload();
|
|
8276
8276
|
const containerRef = _react.useRef.call(void 0, null);
|
|
8277
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
8277
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkAE3J2MATjs.cn.call(void 0, "w-full px-1"), ref: containerRef, "aria-description": "content file holder", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8278
8278
|
"div",
|
|
8279
8279
|
{
|
|
8280
8280
|
...props,
|
|
8281
8281
|
ref,
|
|
8282
|
-
className:
|
|
8282
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
8283
8283
|
"flex gap-1 rounded-xl",
|
|
8284
8284
|
orientation === "horizontal" ? "flex-raw flex-wrap" : "flex-col",
|
|
8285
8285
|
className
|
|
@@ -8299,7 +8299,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
8299
8299
|
"div",
|
|
8300
8300
|
{
|
|
8301
8301
|
ref,
|
|
8302
|
-
className:
|
|
8302
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
8303
8303
|
buttonVariants({ variant: "ghost" }),
|
|
8304
8304
|
"relative h-6 cursor-pointer justify-between p-1",
|
|
8305
8305
|
className,
|
|
@@ -8312,7 +8312,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
8312
8312
|
"button",
|
|
8313
8313
|
{
|
|
8314
8314
|
type: "button",
|
|
8315
|
-
className:
|
|
8315
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "absolute", direction === "rtl" ? "top-1 left-1" : "top-1 right-1"),
|
|
8316
8316
|
onClick: () => removeFileFromSet(index),
|
|
8317
8317
|
children: [
|
|
8318
8318
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: t(`generic.remove_item`, { index }) }),
|
|
@@ -8336,12 +8336,12 @@ var FileInput = _react.forwardRef.call(void 0,
|
|
|
8336
8336
|
{
|
|
8337
8337
|
ref,
|
|
8338
8338
|
...props,
|
|
8339
|
-
className:
|
|
8339
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, `relative w-full ${isLOF ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`, className),
|
|
8340
8340
|
children: [
|
|
8341
8341
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8342
8342
|
"div",
|
|
8343
8343
|
{
|
|
8344
|
-
className:
|
|
8344
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
8345
8345
|
"w-full rounded-lg duration-300 ease-in-out",
|
|
8346
8346
|
// Simpler border logic: if parent is drag-active, it controls the border.
|
|
8347
8347
|
// Otherwise, FileInput can show its own accept/reject/default border.
|
|
@@ -8447,8 +8447,8 @@ function FormDate({
|
|
|
8447
8447
|
onChange,
|
|
8448
8448
|
isRequired = false
|
|
8449
8449
|
}) {
|
|
8450
|
-
const locale =
|
|
8451
|
-
const dateFnsLocale =
|
|
8450
|
+
const locale = _chunk6YD42BP6js.useI18nLocale.call(void 0, );
|
|
8451
|
+
const dateFnsLocale = _chunk6YD42BP6js.useI18nDateFnsLocale.call(void 0, );
|
|
8452
8452
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
8453
8453
|
const [displayMonth, setDisplayMonth] = _react.useState.call(void 0, () => {
|
|
8454
8454
|
const currentValue = form.getValues(id);
|
|
@@ -8629,9 +8629,9 @@ function FormDateTime({
|
|
|
8629
8629
|
allowEmpty
|
|
8630
8630
|
}) {
|
|
8631
8631
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
8632
|
-
const t =
|
|
8633
|
-
const locale =
|
|
8634
|
-
const dateFnsLocale =
|
|
8632
|
+
const t = _chunk6YD42BP6js.useI18nTranslations.call(void 0, );
|
|
8633
|
+
const locale = _chunk6YD42BP6js.useI18nLocale.call(void 0, );
|
|
8634
|
+
const dateFnsLocale = _chunk6YD42BP6js.useI18nDateFnsLocale.call(void 0, );
|
|
8635
8635
|
const dateTimeFormatter = _react.useMemo.call(void 0,
|
|
8636
8636
|
() => new Intl.DateTimeFormat(locale, {
|
|
8637
8637
|
year: "numeric",
|
|
@@ -8686,7 +8686,7 @@ function FormDateTime({
|
|
|
8686
8686
|
Button,
|
|
8687
8687
|
{
|
|
8688
8688
|
variant: "outline",
|
|
8689
|
-
className:
|
|
8689
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "w-full pl-3 text-left font-normal", !field.value && "text-muted-foreground"),
|
|
8690
8690
|
children: [
|
|
8691
8691
|
field.value ? formatDateTime(field.value) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t(`generic.pick_date_time`) }),
|
|
8692
8692
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Calendar, { className: "ml-auto h-4 w-4 opacity-50" })
|
|
@@ -8886,7 +8886,7 @@ var PasswordInput = React38.forwardRef(({ className, type, ...props }, ref) => {
|
|
|
8886
8886
|
const disabled = props.value === "" || props.value === void 0 || props.disabled;
|
|
8887
8887
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8888
8888
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
8889
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className:
|
|
8889
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className: _chunkAE3J2MATjs.cn.call(void 0, "", className), ref, ...props }),
|
|
8890
8890
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8891
8891
|
Button,
|
|
8892
8892
|
{
|
|
@@ -9094,7 +9094,7 @@ function FormPlaceAutocomplete({
|
|
|
9094
9094
|
placeholder,
|
|
9095
9095
|
disabled,
|
|
9096
9096
|
"data-testid": testId,
|
|
9097
|
-
className:
|
|
9097
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "w-full", className)
|
|
9098
9098
|
}
|
|
9099
9099
|
) }),
|
|
9100
9100
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormMessage, {})
|
|
@@ -9127,7 +9127,7 @@ function FormPlaceAutocomplete({
|
|
|
9127
9127
|
placeholder,
|
|
9128
9128
|
disabled: disabled || !apiKey,
|
|
9129
9129
|
"data-testid": testId,
|
|
9130
|
-
className:
|
|
9130
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "w-full", className)
|
|
9131
9131
|
}
|
|
9132
9132
|
),
|
|
9133
9133
|
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" }) }),
|
|
@@ -9272,7 +9272,7 @@ function FormTextarea({
|
|
|
9272
9272
|
Textarea,
|
|
9273
9273
|
{
|
|
9274
9274
|
...field,
|
|
9275
|
-
className:
|
|
9275
|
+
className: _chunkAE3J2MATjs.cn.call(void 0, "min-h-96 w-full", className),
|
|
9276
9276
|
disabled: form.formState.isSubmitting,
|
|
9277
9277
|
placeholder,
|
|
9278
9278
|
"data-testid": testId
|
|
@@ -9462,23 +9462,39 @@ _chunk7QVYU63Ejs.__name.call(void 0, PageContainerContentDetails, "PageContainer
|
|
|
9462
9462
|
|
|
9463
9463
|
function PageContentContainer({ details, footer, content }) {
|
|
9464
9464
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
9465
|
+
const isMobile = _chunkAE3J2MATjs.useIsMobile.call(void 0, );
|
|
9465
9466
|
_react.useEffect.call(void 0, () => {
|
|
9466
9467
|
setMounted(true);
|
|
9467
9468
|
}, []);
|
|
9468
|
-
|
|
9469
|
-
|
|
9469
|
+
const isReady = mounted && isMobile !== void 0;
|
|
9470
|
+
if (!isReady) {
|
|
9471
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[calc(100vh-(--spacing(16)))] w-full" });
|
|
9472
|
+
}
|
|
9473
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[calc(100vh-(--spacing(16)))] w-full transition-opacity duration-150 animate-in fade-in", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9474
|
+
ResizablePanelGroup,
|
|
9470
9475
|
{
|
|
9471
|
-
|
|
9472
|
-
|
|
9473
|
-
|
|
9474
|
-
|
|
9475
|
-
|
|
9476
|
-
|
|
9476
|
+
direction: isMobile ? "vertical" : "horizontal",
|
|
9477
|
+
className: "items-stretch",
|
|
9478
|
+
autoSaveId: isMobile ? void 0 : "page-content-layout",
|
|
9479
|
+
children: [
|
|
9480
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9481
|
+
ResizablePanel,
|
|
9482
|
+
{
|
|
9483
|
+
id: "left-panel",
|
|
9484
|
+
defaultSize: isMobile ? 10 : 32,
|
|
9485
|
+
minSize: isMobile ? 10 : 20,
|
|
9486
|
+
maxSize: isMobile ? 90 : 40,
|
|
9487
|
+
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `@container flex h-full flex-col ${isMobile ? "pb-4" : "pr-4"}`, children: [
|
|
9488
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1 overflow-y-auto", children: details }),
|
|
9489
|
+
footer && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-col gap-y-2 pt-2 pb-2", children: footer })
|
|
9490
|
+
] })
|
|
9491
|
+
}
|
|
9492
|
+
),
|
|
9477
9493
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ResizableHandle, { withHandle: true }),
|
|
9478
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ResizablePanel, { id: "right-panel", className: "pl-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full overflow-y-auto", children: content }) })
|
|
9479
|
-
]
|
|
9494
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ResizablePanel, { id: "right-panel", className: isMobile ? "pt-4" : "pl-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full overflow-y-auto", children: content }) })
|
|
9495
|
+
]
|
|
9480
9496
|
}
|
|
9481
|
-
);
|
|
9497
|
+
) });
|
|
9482
9498
|
}
|
|
9483
9499
|
_chunk7QVYU63Ejs.__name.call(void 0, PageContentContainer, "PageContentContainer");
|
|
9484
9500
|
|
|
@@ -9599,7 +9615,7 @@ function useJsonApiGet(params) {
|
|
|
9599
9615
|
setLoading(true);
|
|
9600
9616
|
setError(null);
|
|
9601
9617
|
try {
|
|
9602
|
-
const { JsonApiGet } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-
|
|
9618
|
+
const { JsonApiGet } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-FXZCYIER.js")));
|
|
9603
9619
|
const language = navigator.language.split("-")[0] || "en";
|
|
9604
9620
|
const apiResponse = await JsonApiGet({
|
|
9605
9621
|
classKey: params.classKey,
|
|
@@ -9704,7 +9720,7 @@ function useJsonApiMutation(config) {
|
|
|
9704
9720
|
setLoading(true);
|
|
9705
9721
|
setError(null);
|
|
9706
9722
|
try {
|
|
9707
|
-
const { JsonApiPost, JsonApiPut, JsonApiPatch, JsonApiDelete } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-
|
|
9723
|
+
const { JsonApiPost, JsonApiPut, JsonApiPatch, JsonApiDelete } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-FXZCYIER.js")));
|
|
9708
9724
|
const language = navigator.language.split("-")[0] || "en";
|
|
9709
9725
|
let apiResponse;
|
|
9710
9726
|
switch (config.method) {
|
|
@@ -9791,14 +9807,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, useJsonApiMutation, "useJsonApiMutation");
|
|
|
9791
9807
|
function useRehydration(classKey, data) {
|
|
9792
9808
|
return _react.useMemo.call(void 0, () => {
|
|
9793
9809
|
if (!data) return null;
|
|
9794
|
-
return
|
|
9810
|
+
return _chunkAE3J2MATjs.RehydrationFactory.rehydrate(classKey, data);
|
|
9795
9811
|
}, [classKey, data]);
|
|
9796
9812
|
}
|
|
9797
9813
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydration, "useRehydration");
|
|
9798
9814
|
function useRehydrationList(classKey, data) {
|
|
9799
9815
|
return _react.useMemo.call(void 0, () => {
|
|
9800
9816
|
if (!data || data.length === 0) return [];
|
|
9801
|
-
return
|
|
9817
|
+
return _chunkAE3J2MATjs.RehydrationFactory.rehydrateList(classKey, data);
|
|
9802
9818
|
}, [classKey, data]);
|
|
9803
9819
|
}
|
|
9804
9820
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydrationList, "useRehydrationList");
|
|
@@ -9838,11 +9854,11 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
9838
9854
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9839
9855
|
Link2,
|
|
9840
9856
|
{
|
|
9841
|
-
href: hasRole(
|
|
9857
|
+
href: hasRole(_chunk6YD42BP6js.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
9842
9858
|
page: "/administration",
|
|
9843
|
-
id: _optionalChain([
|
|
9859
|
+
id: _optionalChain([_chunkAE3J2MATjs.Modules, 'access', _277 => _277.Company, 'access', _278 => _278.pageUrl, 'optionalAccess', _279 => _279.substring, 'call', _280 => _280(1)]),
|
|
9844
9860
|
childPage: company.id
|
|
9845
|
-
}) : generateUrl({ page:
|
|
9861
|
+
}) : generateUrl({ page: _chunkAE3J2MATjs.Modules.Company, id: company.id }),
|
|
9846
9862
|
children: row.getValue("name")
|
|
9847
9863
|
}
|
|
9848
9864
|
);
|
|
@@ -9892,7 +9908,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
9892
9908
|
header: t(`foundations.role.fields.name.label`),
|
|
9893
9909
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
9894
9910
|
const role = row.original.jsonApiData;
|
|
9895
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link2, { href: generateUrl({ page:
|
|
9911
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link2, { href: generateUrl({ page: _chunkAE3J2MATjs.Modules.Role, id: role.id }), children: row.getValue("name") });
|
|
9896
9912
|
}, "cell"),
|
|
9897
9913
|
enableSorting: false,
|
|
9898
9914
|
enableHiding: false
|
|
@@ -9929,7 +9945,7 @@ var useUserSearch = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
|
9929
9945
|
if (search === searchQueryRef.current && users.length > 0) return;
|
|
9930
9946
|
setIsLoading(true);
|
|
9931
9947
|
searchQueryRef.current = search;
|
|
9932
|
-
const fetchedUsers = await
|
|
9948
|
+
const fetchedUsers = await _chunkAE3J2MATjs.UserService.findMany({ search, fetchAll: true });
|
|
9933
9949
|
setUsers(fetchedUsers);
|
|
9934
9950
|
} catch (error) {
|
|
9935
9951
|
console.error("Failed to load users:", error);
|
|
@@ -9995,8 +10011,8 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
9995
10011
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9996
10012
|
Link2,
|
|
9997
10013
|
{
|
|
9998
|
-
href: generateUrl({ page:
|
|
9999
|
-
className:
|
|
10014
|
+
href: generateUrl({ page: _chunkAE3J2MATjs.Modules.User, id: user.id }),
|
|
10015
|
+
className: _chunkAE3J2MATjs.cn.call(void 0,
|
|
10000
10016
|
`flex items-center justify-start gap-2`,
|
|
10001
10017
|
user.isDeleted || !user.isActivated ? "text-muted-foreground italic" : ""
|
|
10002
10018
|
),
|
|
@@ -10090,11 +10106,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
10090
10106
|
header: t(`foundations.content.fields.name.label`),
|
|
10091
10107
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
10092
10108
|
const content = row.original.jsonApiData;
|
|
10093
|
-
const contentModule = content.contentType ?
|
|
10109
|
+
const contentModule = content.contentType ? _chunkAE3J2MATjs.Modules.findByModelName(content.contentType) : void 0;
|
|
10094
10110
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
10095
10111
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
|
|
10096
10112
|
/* @__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: [
|
|
10097
|
-
contentModule &&
|
|
10113
|
+
contentModule && _chunkAE3J2MATjs.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
10098
10114
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link2, { href: link, children: content.name })
|
|
10099
10115
|
] }) }),
|
|
10100
10116
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: content.tldr })
|
|
@@ -10398,7 +10414,7 @@ function Register() {
|
|
|
10398
10414
|
email: values.email,
|
|
10399
10415
|
password: values.password
|
|
10400
10416
|
};
|
|
10401
|
-
await
|
|
10417
|
+
await _chunkAE3J2MATjs.AuthService.register(payload);
|
|
10402
10418
|
setShowConfirmation(true);
|
|
10403
10419
|
} catch (e) {
|
|
10404
10420
|
errorToast({ error: e });
|
|
@@ -10561,7 +10577,7 @@ function LandingComponent() {
|
|
|
10561
10577
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { className: "flex w-full justify-center text-center text-sm", children: t(`generic.description`) })
|
|
10562
10578
|
] }),
|
|
10563
10579
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardFooter, { className: "mt-4 flex w-full flex-col justify-between gap-y-4", children: [
|
|
10564
|
-
|
|
10580
|
+
_chunk6YD42BP6js.isInternalAuthConfigured.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
10565
10581
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10566
10582
|
Link2,
|
|
10567
10583
|
{
|
|
@@ -10573,7 +10589,7 @@ function LandingComponent() {
|
|
|
10573
10589
|
),
|
|
10574
10590
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link2, { href: "#", className: "flex w-full justify-end", onClick: () => setComponentType(0 /* Login */), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: t(`foundations.auth.buttons.login`) }) })
|
|
10575
10591
|
] }),
|
|
10576
|
-
|
|
10592
|
+
_chunk6YD42BP6js.isDiscordConfigured.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link2, { href: `${_chunk6YD42BP6js.getApiUrl.call(void 0, )}auth/discord`, className: "flex w-full justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: "Login with Discord" }) })
|
|
10577
10593
|
] })
|
|
10578
10594
|
] });
|
|
10579
10595
|
}
|
|
@@ -10599,7 +10615,7 @@ function AcceptInvitation() {
|
|
|
10599
10615
|
const payload = {
|
|
10600
10616
|
code
|
|
10601
10617
|
};
|
|
10602
|
-
await
|
|
10618
|
+
await _chunkAE3J2MATjs.AuthService.validateCode(payload);
|
|
10603
10619
|
} catch (e) {
|
|
10604
10620
|
setError(e instanceof Error ? e.message : String(e));
|
|
10605
10621
|
errorToast({ title: t(`generic.errors.error`), error: e });
|
|
@@ -10637,7 +10653,7 @@ function AcceptInvitation() {
|
|
|
10637
10653
|
code: _optionalChain([params, 'optionalAccess', _303 => _303.code]),
|
|
10638
10654
|
password: values.password
|
|
10639
10655
|
};
|
|
10640
|
-
await
|
|
10656
|
+
await _chunkAE3J2MATjs.AuthService.acceptInvitation(payload);
|
|
10641
10657
|
setShowConfirmation(true);
|
|
10642
10658
|
_sonner.toast.success(t("foundations.auth.account_activated"), {
|
|
10643
10659
|
description: t("foundations.auth.account_activated_description")
|
|
@@ -10700,7 +10716,7 @@ function ActivateAccount() {
|
|
|
10700
10716
|
const payload = {
|
|
10701
10717
|
activationCode: code
|
|
10702
10718
|
};
|
|
10703
|
-
await
|
|
10719
|
+
await _chunkAE3J2MATjs.AuthService.activate(payload);
|
|
10704
10720
|
setShowConfirmation(true);
|
|
10705
10721
|
setParams(void 0);
|
|
10706
10722
|
_sonner.toast.success(t("foundations.auth.account_activated"), {
|
|
@@ -10738,13 +10754,13 @@ _chunk7QVYU63Ejs.__name.call(void 0, ActivateAccount, "ActivateAccount");
|
|
|
10738
10754
|
|
|
10739
10755
|
function Cookies({ dehydratedAuth, page }) {
|
|
10740
10756
|
const { setUser } = useCurrentUserContext();
|
|
10741
|
-
const router =
|
|
10757
|
+
const router = _chunk6YD42BP6js.useI18nRouter.call(void 0, );
|
|
10742
10758
|
const [hasSaved, setHasSaved] = _react.useState.call(void 0, false);
|
|
10743
10759
|
_react.useEffect.call(void 0, () => {
|
|
10744
10760
|
if (hasSaved) return;
|
|
10745
10761
|
async function saveTokenOnServer() {
|
|
10746
|
-
await
|
|
10747
|
-
const auth =
|
|
10762
|
+
await _chunkAE3J2MATjs.AuthService.saveToken({ dehydratedAuth });
|
|
10763
|
+
const auth = _chunkAE3J2MATjs.rehydrate.call(void 0, _chunkAE3J2MATjs.Modules.Auth, dehydratedAuth);
|
|
10748
10764
|
setUser(auth.user);
|
|
10749
10765
|
setHasSaved(true);
|
|
10750
10766
|
if (page) {
|
|
@@ -10787,7 +10803,7 @@ function ForgotPassword() {
|
|
|
10787
10803
|
const payload = {
|
|
10788
10804
|
email: values.email
|
|
10789
10805
|
};
|
|
10790
|
-
await
|
|
10806
|
+
await _chunkAE3J2MATjs.AuthService.initialiseForgotPassword(payload);
|
|
10791
10807
|
setShowConfirmation(true);
|
|
10792
10808
|
} catch (e) {
|
|
10793
10809
|
errorToast({ error: e });
|
|
@@ -10842,7 +10858,7 @@ function Login() {
|
|
|
10842
10858
|
const { setUser } = useCurrentUserContext();
|
|
10843
10859
|
const { setComponentType } = useAuthContext();
|
|
10844
10860
|
const generateUrl = usePageUrlGenerator();
|
|
10845
|
-
const router =
|
|
10861
|
+
const router = _chunk6YD42BP6js.useI18nRouter.call(void 0, );
|
|
10846
10862
|
const formSchema = _zod3.z.object({
|
|
10847
10863
|
email: _zod3.z.string().email({
|
|
10848
10864
|
message: t(`generic.errors.invalid_email`)
|
|
@@ -10858,7 +10874,7 @@ function Login() {
|
|
|
10858
10874
|
});
|
|
10859
10875
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
10860
10876
|
try {
|
|
10861
|
-
const user = await
|
|
10877
|
+
const user = await _chunkAE3J2MATjs.AuthService.login({
|
|
10862
10878
|
email: values.email,
|
|
10863
10879
|
password: values.password
|
|
10864
10880
|
});
|
|
@@ -10937,7 +10953,7 @@ function Logout() {
|
|
|
10937
10953
|
const generateUrl = usePageUrlGenerator();
|
|
10938
10954
|
_react.useEffect.call(void 0, () => {
|
|
10939
10955
|
const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
10940
|
-
await
|
|
10956
|
+
await _chunkAE3J2MATjs.AuthService.logout();
|
|
10941
10957
|
window.location.href = generateUrl({ page: `/` });
|
|
10942
10958
|
}, "logOut");
|
|
10943
10959
|
logOut();
|
|
@@ -10952,7 +10968,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, Logout, "Logout");
|
|
|
10952
10968
|
function RefreshUser() {
|
|
10953
10969
|
const { setUser } = useCurrentUserContext();
|
|
10954
10970
|
const loadFullUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
10955
|
-
const fullUser = await
|
|
10971
|
+
const fullUser = await _chunkAE3J2MATjs.UserService.findFullUser();
|
|
10956
10972
|
if (fullUser) {
|
|
10957
10973
|
setUser(fullUser);
|
|
10958
10974
|
const token = {
|
|
@@ -10965,7 +10981,7 @@ function RefreshUser() {
|
|
|
10965
10981
|
return { id: module.id, permissions: module.permissions };
|
|
10966
10982
|
})
|
|
10967
10983
|
};
|
|
10968
|
-
await _optionalChain([
|
|
10984
|
+
await _optionalChain([_chunkAE3J2MATjs.getTokenHandler.call(void 0, ), 'optionalAccess', _312 => _312.updateToken, 'call', _313 => _313(token)]);
|
|
10969
10985
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
10970
10986
|
}
|
|
10971
10987
|
}, "loadFullUser");
|
|
@@ -10997,7 +11013,7 @@ function ResetPassword() {
|
|
|
10997
11013
|
const payload = {
|
|
10998
11014
|
code
|
|
10999
11015
|
};
|
|
11000
|
-
await
|
|
11016
|
+
await _chunkAE3J2MATjs.AuthService.validateCode(payload);
|
|
11001
11017
|
} catch (e) {
|
|
11002
11018
|
setError(e instanceof Error ? e.message : String(e));
|
|
11003
11019
|
errorToast({ title: t(`generic.errors.error`), error: e });
|
|
@@ -11035,7 +11051,7 @@ function ResetPassword() {
|
|
|
11035
11051
|
code: _optionalChain([params, 'optionalAccess', _315 => _315.code]),
|
|
11036
11052
|
password: values.password
|
|
11037
11053
|
};
|
|
11038
|
-
await
|
|
11054
|
+
await _chunkAE3J2MATjs.AuthService.resetPassword(payload);
|
|
11039
11055
|
setShowConfirmation(true);
|
|
11040
11056
|
_sonner.toast.success(t(`foundations.auth.reset_success`), {
|
|
11041
11057
|
description: t(`foundations.auth.reset_success_description`)
|
|
@@ -11078,12 +11094,12 @@ function ContentsList({ contentList }) {
|
|
|
11078
11094
|
_chunk7QVYU63Ejs.__name.call(void 0, ContentsList, "ContentsList");
|
|
11079
11095
|
function ContentsListElement({ content }) {
|
|
11080
11096
|
const generateUrl = usePageUrlGenerator();
|
|
11081
|
-
const contentModule = content.contentType ?
|
|
11097
|
+
const contentModule = content.contentType ? _chunkAE3J2MATjs.Modules.findByModelName(content.contentType) : void 0;
|
|
11082
11098
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
11083
11099
|
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: [
|
|
11084
11100
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCard, { children: [
|
|
11085
11101
|
/* @__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: [
|
|
11086
|
-
contentModule &&
|
|
11102
|
+
contentModule && _chunkAE3J2MATjs.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
11087
11103
|
content.name
|
|
11088
11104
|
] }) }),
|
|
11089
11105
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCardContent, { className: "flex max-h-96 w-96 flex-col gap-y-4 overflow-y-auto", children: [
|
|
@@ -11102,8 +11118,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListElement, "ContentsListElement")
|
|
|
11102
11118
|
function ContentsListById({ contentIds }) {
|
|
11103
11119
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11104
11120
|
const data = useDataListRetriever({
|
|
11105
|
-
module:
|
|
11106
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
11121
|
+
module: _chunkAE3J2MATjs.Modules.Content,
|
|
11122
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAE3J2MATjs.ContentService.findMany(params), "retriever"),
|
|
11107
11123
|
retrieverParams: { contentIds }
|
|
11108
11124
|
});
|
|
11109
11125
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11111,7 +11127,7 @@ function ContentsListById({ contentIds }) {
|
|
|
11111
11127
|
{
|
|
11112
11128
|
data,
|
|
11113
11129
|
fields: ["name" /* name */, "authors" /* authors */, "updatedAt" /* updatedAt */],
|
|
11114
|
-
tableGeneratorType:
|
|
11130
|
+
tableGeneratorType: _chunkAE3J2MATjs.Modules.Content,
|
|
11115
11131
|
title: t(`generic.relevant`)
|
|
11116
11132
|
}
|
|
11117
11133
|
);
|
|
@@ -11124,8 +11140,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListById, "ContentsListById");
|
|
|
11124
11140
|
function RelevantContentsList({ id }) {
|
|
11125
11141
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11126
11142
|
const data = useDataListRetriever({
|
|
11127
|
-
module:
|
|
11128
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
11143
|
+
module: _chunkAE3J2MATjs.Modules.Content,
|
|
11144
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAE3J2MATjs.ContentService.findRelevant(params), "retriever"),
|
|
11129
11145
|
retrieverParams: { id }
|
|
11130
11146
|
});
|
|
11131
11147
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11133,7 +11149,7 @@ function RelevantContentsList({ id }) {
|
|
|
11133
11149
|
{
|
|
11134
11150
|
data,
|
|
11135
11151
|
fields: ["name" /* name */, "authors" /* authors */, "relevance" /* relevance */, "updatedAt" /* updatedAt */],
|
|
11136
|
-
tableGeneratorType:
|
|
11152
|
+
tableGeneratorType: _chunkAE3J2MATjs.Modules.Content,
|
|
11137
11153
|
title: t(`generic.relevant`)
|
|
11138
11154
|
}
|
|
11139
11155
|
);
|
|
@@ -11186,12 +11202,12 @@ function NotificationsList({ archived }) {
|
|
|
11186
11202
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11187
11203
|
const generateUrl = usePageUrlGenerator();
|
|
11188
11204
|
const data = useDataListRetriever({
|
|
11189
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
11205
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAE3J2MATjs.NotificationService.findMany(params), "retriever"),
|
|
11190
11206
|
retrieverParams: { isArchived: archived },
|
|
11191
|
-
module:
|
|
11207
|
+
module: _chunkAE3J2MATjs.Modules.Notification
|
|
11192
11208
|
});
|
|
11193
11209
|
const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
|
|
11194
|
-
await
|
|
11210
|
+
await _chunkAE3J2MATjs.NotificationService.archive({ id: notification.id });
|
|
11195
11211
|
data.removeElement(notification);
|
|
11196
11212
|
}, "archiveNotification");
|
|
11197
11213
|
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: [
|
|
@@ -11205,7 +11221,7 @@ function NotificationsList({ archived }) {
|
|
|
11205
11221
|
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) => {
|
|
11206
11222
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
11207
11223
|
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: [
|
|
11208
|
-
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:
|
|
11224
|
+
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: _chunkAE3J2MATjs.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" }),
|
|
11209
11225
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
11210
11226
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`foundations.notification.${notification.notificationType}.description`, {
|
|
11211
11227
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
@@ -11514,13 +11530,13 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
11514
11530
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11515
11531
|
_react.useEffect.call(void 0, () => {
|
|
11516
11532
|
async function checkCompanyAdminDeletability() {
|
|
11517
|
-
const roleUsers = await
|
|
11533
|
+
const roleUsers = await _chunkAE3J2MATjs.UserService.findAllUsersByRole({
|
|
11518
11534
|
roleId: role.id
|
|
11519
11535
|
});
|
|
11520
11536
|
if (roleUsers.length > 1) setCanRemove(true);
|
|
11521
11537
|
}
|
|
11522
11538
|
_chunk7QVYU63Ejs.__name.call(void 0, checkCompanyAdminDeletability, "checkCompanyAdminDeletability");
|
|
11523
|
-
if (role.id !==
|
|
11539
|
+
if (role.id !== _chunk6YD42BP6js.getRoleId.call(void 0, ).CompanyAdministrator) {
|
|
11524
11540
|
setCanRemove(true);
|
|
11525
11541
|
return;
|
|
11526
11542
|
}
|
|
@@ -11528,7 +11544,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
11528
11544
|
}, [role]);
|
|
11529
11545
|
const remove = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
11530
11546
|
try {
|
|
11531
|
-
await
|
|
11547
|
+
await _chunkAE3J2MATjs.RoleService.removeUserFromRole({
|
|
11532
11548
|
roleId: role.id,
|
|
11533
11549
|
userId: user.id
|
|
11534
11550
|
});
|
|
@@ -11592,7 +11608,7 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
11592
11608
|
const [roles, setRoles] = _react.useState.call(void 0, []);
|
|
11593
11609
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11594
11610
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (role) => {
|
|
11595
|
-
await
|
|
11611
|
+
await _chunkAE3J2MATjs.RoleService.addUserToRole({
|
|
11596
11612
|
roleId: role.id,
|
|
11597
11613
|
userId: user.id
|
|
11598
11614
|
});
|
|
@@ -11616,7 +11632,7 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
11616
11632
|
const searchRoles = _react.useCallback.call(void 0,
|
|
11617
11633
|
async (term) => {
|
|
11618
11634
|
setRoles(
|
|
11619
|
-
await
|
|
11635
|
+
await _chunkAE3J2MATjs.RoleService.findAllRolesUserNotIn({
|
|
11620
11636
|
search: term,
|
|
11621
11637
|
userId: user.id
|
|
11622
11638
|
})
|
|
@@ -11684,16 +11700,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserRoleAdd, "UserRoleAdd");
|
|
|
11684
11700
|
function RolesList() {
|
|
11685
11701
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11686
11702
|
const data = useDataListRetriever({
|
|
11687
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
11703
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAE3J2MATjs.RoleService.findAllRoles(params), "retriever"),
|
|
11688
11704
|
retrieverParams: {},
|
|
11689
|
-
module:
|
|
11705
|
+
module: _chunkAE3J2MATjs.Modules.Role
|
|
11690
11706
|
});
|
|
11691
11707
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11692
11708
|
ContentListTable,
|
|
11693
11709
|
{
|
|
11694
11710
|
data,
|
|
11695
11711
|
fields: ["name" /* name */, "description" /* description */],
|
|
11696
|
-
tableGeneratorType:
|
|
11712
|
+
tableGeneratorType: _chunkAE3J2MATjs.Modules.Role,
|
|
11697
11713
|
title: t(`types.roles`, { count: 2 })
|
|
11698
11714
|
}
|
|
11699
11715
|
);
|
|
@@ -11706,16 +11722,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RolesList, "RolesList");
|
|
|
11706
11722
|
function UserRolesList({ user }) {
|
|
11707
11723
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11708
11724
|
const data = useDataListRetriever({
|
|
11709
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
11725
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAE3J2MATjs.RoleService.findAllRolesByUser(params), "retriever"),
|
|
11710
11726
|
retrieverParams: { userId: user.id },
|
|
11711
|
-
module:
|
|
11727
|
+
module: _chunkAE3J2MATjs.Modules.Role
|
|
11712
11728
|
});
|
|
11713
11729
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11714
11730
|
ContentListTable,
|
|
11715
11731
|
{
|
|
11716
11732
|
data,
|
|
11717
11733
|
fields: ["name" /* name */, "description" /* description */],
|
|
11718
|
-
tableGeneratorType:
|
|
11734
|
+
tableGeneratorType: _chunkAE3J2MATjs.Modules.Role,
|
|
11719
11735
|
title: t(`types.roles`, { count: 2 })
|
|
11720
11736
|
}
|
|
11721
11737
|
);
|
|
@@ -12099,4 +12115,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserRolesList, "UserRolesList");
|
|
|
12099
12115
|
|
|
12100
12116
|
|
|
12101
12117
|
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;
|
|
12102
|
-
//# sourceMappingURL=chunk-
|
|
12118
|
+
//# sourceMappingURL=chunk-AHEG4IYG.js.map
|