@carlonicora/nextjs-jsonapi 1.7.3 → 1.7.5
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-YJIRMV55.js → BlockNoteEditor-CCOSI7TW.js} +13 -13
- package/dist/{BlockNoteEditor-YJIRMV55.js.map → BlockNoteEditor-CCOSI7TW.js.map} +1 -1
- package/dist/{BlockNoteEditor-BEFUKFSV.mjs → BlockNoteEditor-KH7WWHBK.mjs} +3 -3
- package/dist/{chunk-JPHVDI2C.mjs → chunk-2O7ODHTG.mjs} +3 -4
- package/dist/chunk-2O7ODHTG.mjs.map +1 -0
- package/dist/{chunk-R6GNY4EB.mjs → chunk-2TCBJO4B.mjs} +10 -4
- package/dist/chunk-2TCBJO4B.mjs.map +1 -0
- package/dist/{chunk-BYMZEX5B.js → chunk-3HL4VFJ4.js} +3 -4
- package/dist/chunk-3HL4VFJ4.js.map +1 -0
- package/dist/{chunk-5M3RUC2D.js → chunk-KFON36OE.js} +365 -359
- package/dist/chunk-KFON36OE.js.map +1 -0
- package/dist/client/index.d.mts +2 -1
- package/dist/client/index.d.ts +2 -1
- package/dist/client/index.js +3 -3
- package/dist/client/index.mjs +2 -2
- package/dist/components/index.js +3 -3
- package/dist/components/index.mjs +2 -2
- package/dist/contexts/index.js +3 -3
- package/dist/contexts/index.mjs +2 -2
- package/dist/core/index.d.mts +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
- package/src/hooks/url.rewriter.ts +13 -2
- package/src/utils/date-formatter.ts +2 -4
- package/dist/chunk-5M3RUC2D.js.map +0 -1
- package/dist/chunk-BYMZEX5B.js.map +0 -1
- package/dist/chunk-JPHVDI2C.mjs.map +0 -1
- package/dist/chunk-R6GNY4EB.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-BEFUKFSV.mjs.map → BlockNoteEditor-KH7WWHBK.mjs.map} +0 -0
|
@@ -30,7 +30,7 @@ var _chunkAGWQ75PQjs = require('./chunk-AGWQ75PQ.js');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunk3HL4VFJ4js = require('./chunk-3HL4VFJ4.js');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
var _chunk7QVYU63Ejs = require('./chunk-7QVYU63E.js');
|
|
@@ -128,7 +128,13 @@ function useUrlRewriter() {
|
|
|
128
128
|
window.history.replaceState(
|
|
129
129
|
null,
|
|
130
130
|
"",
|
|
131
|
-
generateUrl({
|
|
131
|
+
generateUrl({
|
|
132
|
+
page: params.page,
|
|
133
|
+
id: params.id,
|
|
134
|
+
childPage: params.childPage,
|
|
135
|
+
childId: params.childId,
|
|
136
|
+
language: locale
|
|
137
|
+
})
|
|
132
138
|
);
|
|
133
139
|
},
|
|
134
140
|
[locale, generateUrl]
|
|
@@ -150,7 +156,7 @@ function useDataListRetriever(params) {
|
|
|
150
156
|
const abortControllerRef = _react.useRef.call(void 0, null);
|
|
151
157
|
const isFetchingRef = _react.useRef.call(void 0, false);
|
|
152
158
|
const resolvedType = params.module;
|
|
153
|
-
const resolvedService =
|
|
159
|
+
const resolvedService = _chunk3HL4VFJ4js.ClientAbstractService;
|
|
154
160
|
const parsePageParams = _react.useCallback.call(void 0, (url) => {
|
|
155
161
|
if (!url) return null;
|
|
156
162
|
try {
|
|
@@ -851,20 +857,20 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
851
857
|
if (!token && dehydratedUser) setDehydratedUser(null);
|
|
852
858
|
}, [dehydratedUser, setDehydratedUser]);
|
|
853
859
|
const matchUrlToModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
854
|
-
const moduleKeys = Object.getOwnPropertyNames(
|
|
860
|
+
const moduleKeys = Object.getOwnPropertyNames(_chunk3HL4VFJ4js.Modules).filter(
|
|
855
861
|
(key) => key !== "prototype" && key !== "_factory" && key !== "length" && key !== "name"
|
|
856
862
|
);
|
|
857
863
|
const matchedModuleKey = moduleKeys.find((key) => {
|
|
858
|
-
const descriptor2 = Object.getOwnPropertyDescriptor(
|
|
864
|
+
const descriptor2 = Object.getOwnPropertyDescriptor(_chunk3HL4VFJ4js.Modules, key);
|
|
859
865
|
if (!_optionalChain([descriptor2, 'optionalAccess', _25 => _25.get])) return false;
|
|
860
|
-
const selectedModule = descriptor2.get.call(
|
|
866
|
+
const selectedModule = descriptor2.get.call(_chunk3HL4VFJ4js.Modules);
|
|
861
867
|
return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _26 => _26.pageUrl, 'optionalAccess', _27 => _27.toLowerCase, 'call', _28 => _28()]));
|
|
862
868
|
});
|
|
863
869
|
if (!matchedModuleKey) return void 0;
|
|
864
|
-
const descriptor = Object.getOwnPropertyDescriptor(
|
|
865
|
-
return _optionalChain([descriptor, 'optionalAccess', _29 => _29.get, 'optionalAccess', _30 => _30.call, 'call', _31 => _31(
|
|
870
|
+
const descriptor = Object.getOwnPropertyDescriptor(_chunk3HL4VFJ4js.Modules, matchedModuleKey);
|
|
871
|
+
return _optionalChain([descriptor, 'optionalAccess', _29 => _29.get, 'optionalAccess', _30 => _30.call, 'call', _31 => _31(_chunk3HL4VFJ4js.Modules)]);
|
|
866
872
|
}, "matchUrlToModule");
|
|
867
|
-
const currentUser = dehydratedUser ?
|
|
873
|
+
const currentUser = dehydratedUser ? _chunk3HL4VFJ4js.rehydrate.call(void 0, _chunk3HL4VFJ4js.Modules.User, dehydratedUser) : null;
|
|
868
874
|
const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _32 => _32.company]), () => ( null));
|
|
869
875
|
const setUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (user) => {
|
|
870
876
|
if (user) setDehydratedUser(user.dehydrate());
|
|
@@ -882,14 +888,14 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
882
888
|
function hasPermissionToModule(params) {
|
|
883
889
|
if (!currentUser) return false;
|
|
884
890
|
if (!!params.module.feature && !hasAccesToFeature(params.module.feature)) return false;
|
|
885
|
-
return
|
|
891
|
+
return _chunk3HL4VFJ4js.checkPermissions.call(void 0, { module: params.module, action: params.action, data: params.data, user: currentUser });
|
|
886
892
|
}
|
|
887
893
|
_chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModule, "hasPermissionToModule");
|
|
888
894
|
function hasPermissionToModules(params) {
|
|
889
895
|
if (!currentUser) return false;
|
|
890
896
|
if (!params.modules.every((module) => !module.feature || hasAccesToFeature(module.feature))) return false;
|
|
891
897
|
return params.modules.every(
|
|
892
|
-
(module) =>
|
|
898
|
+
(module) => _chunk3HL4VFJ4js.checkPermissions.call(void 0, { module, action: params.action, data: params.data, user: currentUser })
|
|
893
899
|
);
|
|
894
900
|
}
|
|
895
901
|
_chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModules, "hasPermissionToModules");
|
|
@@ -945,7 +951,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
945
951
|
const [existingUsers, setExistingUsers] = _react.useState.call(void 0, null);
|
|
946
952
|
_react.useEffect.call(void 0, () => {
|
|
947
953
|
const fetchExistingUsers = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
948
|
-
setExistingUsers(await
|
|
954
|
+
setExistingUsers(await _chunk3HL4VFJ4js.UserService.findMany({ roleId: role.id, fetchAll: true }));
|
|
949
955
|
}, "fetchExistingUsers");
|
|
950
956
|
if (show) {
|
|
951
957
|
setExistingUsers(null);
|
|
@@ -953,7 +959,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
953
959
|
}
|
|
954
960
|
}, [show]);
|
|
955
961
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (user) => {
|
|
956
|
-
await
|
|
962
|
+
await _chunk3HL4VFJ4js.RoleService.addUserToRole({
|
|
957
963
|
roleId: role.id,
|
|
958
964
|
userId: user.id
|
|
959
965
|
});
|
|
@@ -969,9 +975,9 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
969
975
|
}, "addUserToRole");
|
|
970
976
|
const data = useDataListRetriever({
|
|
971
977
|
ready: !!company && show,
|
|
972
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
978
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.UserService.findAllUsers(params), "retriever"),
|
|
973
979
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _36 => _36.id]) },
|
|
974
|
-
module:
|
|
980
|
+
module: _chunk3HL4VFJ4js.Modules.User
|
|
975
981
|
});
|
|
976
982
|
_react.useEffect.call(void 0, () => {
|
|
977
983
|
if (!!company && show) {
|
|
@@ -1019,13 +1025,13 @@ var _reacticons = require('@radix-ui/react-icons');
|
|
|
1019
1025
|
|
|
1020
1026
|
|
|
1021
1027
|
var Accordion = AccordionPrimitive.Root;
|
|
1022
|
-
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: _chunk3HL4VFJ4js.cn.call(void 0, "border-b", className), ...props }));
|
|
1023
1029
|
AccordionItem.displayName = "AccordionItem";
|
|
1024
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,
|
|
1025
1031
|
AccordionPrimitive.Trigger,
|
|
1026
1032
|
{
|
|
1027
1033
|
ref,
|
|
1028
|
-
className:
|
|
1034
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all", className),
|
|
1029
1035
|
...props,
|
|
1030
1036
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center", children: [
|
|
1031
1037
|
children,
|
|
@@ -1040,7 +1046,7 @@ var AccordionContent = React2.forwardRef(({ className, children, ...props }, ref
|
|
|
1040
1046
|
ref,
|
|
1041
1047
|
className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
1042
1048
|
...props,
|
|
1043
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1049
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, "pb-4 pt-0", className), children })
|
|
1044
1050
|
}
|
|
1045
1051
|
));
|
|
1046
1052
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
@@ -1063,14 +1069,14 @@ var alertVariants = _classvarianceauthority.cva.call(void 0,
|
|
|
1063
1069
|
}
|
|
1064
1070
|
}
|
|
1065
1071
|
);
|
|
1066
|
-
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: _chunk3HL4VFJ4js.cn.call(void 0, alertVariants({ variant }), className), ...props }));
|
|
1067
1073
|
Alert.displayName = "Alert";
|
|
1068
1074
|
var AlertTitle = React3.forwardRef(
|
|
1069
|
-
({ 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: _chunk3HL4VFJ4js.cn.call(void 0, "mb-1 font-medium leading-none tracking-tight", className), ...props })
|
|
1070
1076
|
);
|
|
1071
1077
|
AlertTitle.displayName = "AlertTitle";
|
|
1072
1078
|
var AlertDescription = React3.forwardRef(
|
|
1073
|
-
({ 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: _chunk3HL4VFJ4js.cn.call(void 0, "text-sm [&_p]:leading-relaxed", className), ...props })
|
|
1074
1080
|
);
|
|
1075
1081
|
AlertDescription.displayName = "AlertDescription";
|
|
1076
1082
|
|
|
@@ -1116,7 +1122,7 @@ function Button({
|
|
|
1116
1122
|
...props
|
|
1117
1123
|
}) {
|
|
1118
1124
|
const Comp = asChild ? _reactslot.Slot : "button";
|
|
1119
|
-
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: _chunk3HL4VFJ4js.cn.call(void 0, buttonVariants({ variant, size, className })), ...props });
|
|
1120
1126
|
}
|
|
1121
1127
|
_chunk7QVYU63Ejs.__name.call(void 0, Button, "Button");
|
|
1122
1128
|
|
|
@@ -1128,7 +1134,7 @@ var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
|
1128
1134
|
var AlertDialogOverlay = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1129
1135
|
AlertDialogPrimitive.Overlay,
|
|
1130
1136
|
{
|
|
1131
|
-
className:
|
|
1137
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1132
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",
|
|
1133
1139
|
className
|
|
1134
1140
|
),
|
|
@@ -1143,7 +1149,7 @@ var AlertDialogContent = React4.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1143
1149
|
AlertDialogPrimitive.Content,
|
|
1144
1150
|
{
|
|
1145
1151
|
ref,
|
|
1146
|
-
className:
|
|
1152
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1147
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",
|
|
1148
1154
|
className
|
|
1149
1155
|
),
|
|
@@ -1158,7 +1164,7 @@ var AlertDialogHeader = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
1158
1164
|
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1159
1165
|
"div",
|
|
1160
1166
|
{
|
|
1161
|
-
className:
|
|
1167
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1162
1168
|
"flex flex-col space-y-2 text-center sm:text-left",
|
|
1163
1169
|
className
|
|
1164
1170
|
),
|
|
@@ -1172,7 +1178,7 @@ var AlertDialogFooter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
1172
1178
|
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1173
1179
|
"div",
|
|
1174
1180
|
{
|
|
1175
|
-
className:
|
|
1181
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1176
1182
|
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
1177
1183
|
className
|
|
1178
1184
|
),
|
|
@@ -1184,7 +1190,7 @@ var AlertDialogTitle = React4.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1184
1190
|
AlertDialogPrimitive.Title,
|
|
1185
1191
|
{
|
|
1186
1192
|
ref,
|
|
1187
|
-
className:
|
|
1193
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "text-lg font-semibold", className),
|
|
1188
1194
|
...props
|
|
1189
1195
|
}
|
|
1190
1196
|
));
|
|
@@ -1193,7 +1199,7 @@ var AlertDialogDescription = React4.forwardRef(({ className, ...props }, ref) =>
|
|
|
1193
1199
|
AlertDialogPrimitive.Description,
|
|
1194
1200
|
{
|
|
1195
1201
|
ref,
|
|
1196
|
-
className:
|
|
1202
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "text-sm text-muted-foreground", className),
|
|
1197
1203
|
...props
|
|
1198
1204
|
}
|
|
1199
1205
|
));
|
|
@@ -1202,7 +1208,7 @@ var AlertDialogAction = React4.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1202
1208
|
AlertDialogPrimitive.Action,
|
|
1203
1209
|
{
|
|
1204
1210
|
ref,
|
|
1205
|
-
className:
|
|
1211
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, buttonVariants(), className),
|
|
1206
1212
|
...props
|
|
1207
1213
|
}
|
|
1208
1214
|
));
|
|
@@ -1211,7 +1217,7 @@ var AlertDialogCancel = React4.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1211
1217
|
AlertDialogPrimitive.Cancel,
|
|
1212
1218
|
{
|
|
1213
1219
|
ref,
|
|
1214
|
-
className:
|
|
1220
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1215
1221
|
buttonVariants({ variant: "outline" }),
|
|
1216
1222
|
"mt-2 sm:mt-0",
|
|
1217
1223
|
className
|
|
@@ -1229,7 +1235,7 @@ var Avatar = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
1229
1235
|
AvatarPrimitive.Root,
|
|
1230
1236
|
{
|
|
1231
1237
|
ref,
|
|
1232
|
-
className:
|
|
1238
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1233
1239
|
"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
|
|
1234
1240
|
className
|
|
1235
1241
|
),
|
|
@@ -1241,7 +1247,7 @@ var AvatarImage = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1241
1247
|
AvatarPrimitive.Image,
|
|
1242
1248
|
{
|
|
1243
1249
|
ref,
|
|
1244
|
-
className:
|
|
1250
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "aspect-square h-full w-full", className),
|
|
1245
1251
|
...props
|
|
1246
1252
|
}
|
|
1247
1253
|
));
|
|
@@ -1250,7 +1256,7 @@ var AvatarFallback = React5.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1250
1256
|
AvatarPrimitive.Fallback,
|
|
1251
1257
|
{
|
|
1252
1258
|
ref,
|
|
1253
|
-
className:
|
|
1259
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1254
1260
|
"flex h-full w-full items-center justify-center rounded-full bg-muted",
|
|
1255
1261
|
className
|
|
1256
1262
|
),
|
|
@@ -1289,7 +1295,7 @@ var badgeVariants = _classvarianceauthority.cva.call(void 0,
|
|
|
1289
1295
|
}
|
|
1290
1296
|
);
|
|
1291
1297
|
function Badge({ className, variant, ...props }) {
|
|
1292
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1298
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, badgeVariants({ variant }), className), ...props });
|
|
1293
1299
|
}
|
|
1294
1300
|
_chunk7QVYU63Ejs.__name.call(void 0, Badge, "Badge");
|
|
1295
1301
|
|
|
@@ -1304,7 +1310,7 @@ var BreadcrumbList = React6.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1304
1310
|
"ol",
|
|
1305
1311
|
{
|
|
1306
1312
|
ref,
|
|
1307
|
-
className:
|
|
1313
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1308
1314
|
"flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",
|
|
1309
1315
|
className
|
|
1310
1316
|
),
|
|
@@ -1316,7 +1322,7 @@ var BreadcrumbItem = React6.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1316
1322
|
"li",
|
|
1317
1323
|
{
|
|
1318
1324
|
ref,
|
|
1319
|
-
className:
|
|
1325
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "inline-flex items-center gap-1.5", className),
|
|
1320
1326
|
...props
|
|
1321
1327
|
}
|
|
1322
1328
|
));
|
|
@@ -1327,7 +1333,7 @@ var BreadcrumbLink = React6.forwardRef(({ asChild, className, ...props }, ref) =
|
|
|
1327
1333
|
Comp,
|
|
1328
1334
|
{
|
|
1329
1335
|
ref,
|
|
1330
|
-
className:
|
|
1336
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "transition-colors hover:text-foreground", className),
|
|
1331
1337
|
...props
|
|
1332
1338
|
}
|
|
1333
1339
|
);
|
|
@@ -1340,7 +1346,7 @@ var BreadcrumbPage = React6.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1340
1346
|
role: "link",
|
|
1341
1347
|
"aria-disabled": "true",
|
|
1342
1348
|
"aria-current": "page",
|
|
1343
|
-
className:
|
|
1349
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "font-normal text-foreground", className),
|
|
1344
1350
|
...props
|
|
1345
1351
|
}
|
|
1346
1352
|
));
|
|
@@ -1354,7 +1360,7 @@ var BreadcrumbSeparator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
1354
1360
|
{
|
|
1355
1361
|
role: "presentation",
|
|
1356
1362
|
"aria-hidden": "true",
|
|
1357
|
-
className:
|
|
1363
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "[&>svg]:h-3.5 [&>svg]:w-3.5", className),
|
|
1358
1364
|
...props,
|
|
1359
1365
|
children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.ChevronRightIcon, {})))
|
|
1360
1366
|
}
|
|
@@ -1368,7 +1374,7 @@ var BreadcrumbEllipsis = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
1368
1374
|
{
|
|
1369
1375
|
role: "presentation",
|
|
1370
1376
|
"aria-hidden": "true",
|
|
1371
|
-
className:
|
|
1377
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "flex h-9 w-9 items-center justify-center", className),
|
|
1372
1378
|
...props,
|
|
1373
1379
|
children: [
|
|
1374
1380
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.DotsHorizontalIcon, { className: "h-4 w-4" }),
|
|
@@ -1387,55 +1393,55 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
|
1387
1393
|
_reactdaypicker.DayPicker,
|
|
1388
1394
|
{
|
|
1389
1395
|
showOutsideDays,
|
|
1390
|
-
className:
|
|
1396
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "p-3", className),
|
|
1391
1397
|
classNames: {
|
|
1392
1398
|
months: `relative flex ${defaultClassNames.month}`,
|
|
1393
1399
|
month_caption: `relative mx-10 flex h-7 items-center justify-center ${defaultClassNames.month_caption}`,
|
|
1394
|
-
weekdays:
|
|
1395
|
-
weekday:
|
|
1396
|
-
month:
|
|
1397
|
-
caption_label:
|
|
1398
|
-
button_next:
|
|
1400
|
+
weekdays: _chunk3HL4VFJ4js.cn.call(void 0, "flex flex-row", _optionalChain([classNames, 'optionalAccess', _37 => _37.weekdays])),
|
|
1401
|
+
weekday: _chunk3HL4VFJ4js.cn.call(void 0, "w-8 text-sm font-normal text-muted-foreground", _optionalChain([classNames, 'optionalAccess', _38 => _38.weekday])),
|
|
1402
|
+
month: _chunk3HL4VFJ4js.cn.call(void 0, "w-full", _optionalChain([classNames, 'optionalAccess', _39 => _39.month])),
|
|
1403
|
+
caption_label: _chunk3HL4VFJ4js.cn.call(void 0, "truncate text-sm font-medium", _optionalChain([classNames, 'optionalAccess', _40 => _40.caption_label])),
|
|
1404
|
+
button_next: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1399
1405
|
buttonVariants({ variant: "outline" }),
|
|
1400
1406
|
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100 absolute right-1 [&_svg]:fill-foreground",
|
|
1401
1407
|
_optionalChain([classNames, 'optionalAccess', _41 => _41.button_next])
|
|
1402
1408
|
),
|
|
1403
|
-
button_previous:
|
|
1409
|
+
button_previous: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1404
1410
|
buttonVariants({ variant: "outline" }),
|
|
1405
1411
|
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100 absolute left-1 [&_svg]:fill-foreground",
|
|
1406
1412
|
_optionalChain([classNames, 'optionalAccess', _42 => _42.button_previous])
|
|
1407
1413
|
),
|
|
1408
|
-
nav:
|
|
1409
|
-
month_grid:
|
|
1410
|
-
week:
|
|
1411
|
-
day:
|
|
1412
|
-
day_button:
|
|
1414
|
+
nav: _chunk3HL4VFJ4js.cn.call(void 0, "flex items-start", _optionalChain([classNames, 'optionalAccess', _43 => _43.nav])),
|
|
1415
|
+
month_grid: _chunk3HL4VFJ4js.cn.call(void 0, "mx-auto mt-4", _optionalChain([classNames, 'optionalAccess', _44 => _44.month_grid])),
|
|
1416
|
+
week: _chunk3HL4VFJ4js.cn.call(void 0, "mt-2 flex w-max items-start", _optionalChain([classNames, 'optionalAccess', _45 => _45.week])),
|
|
1417
|
+
day: _chunk3HL4VFJ4js.cn.call(void 0, "flex size-8 flex-1 items-center justify-center p-0 text-sm", _optionalChain([classNames, 'optionalAccess', _46 => _46.day])),
|
|
1418
|
+
day_button: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1413
1419
|
"size-8 rounded-md p-0 font-normal transition-none aria-selected:opacity-100",
|
|
1414
1420
|
_optionalChain([classNames, 'optionalAccess', _47 => _47.day_button])
|
|
1415
1421
|
),
|
|
1416
|
-
range_start:
|
|
1422
|
+
range_start: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1417
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",
|
|
1418
1424
|
_optionalChain([classNames, 'optionalAccess', _48 => _48.range_start])
|
|
1419
1425
|
),
|
|
1420
|
-
range_middle:
|
|
1426
|
+
range_middle: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1421
1427
|
"bg-accent !text-foreground [&>button]:bg-transparent [&>button]:!text-foreground [&>button]:hover:bg-transparent [&>button]:hover:!text-foreground",
|
|
1422
1428
|
_optionalChain([classNames, 'optionalAccess', _49 => _49.range_middle])
|
|
1423
1429
|
),
|
|
1424
|
-
range_end:
|
|
1430
|
+
range_end: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1425
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",
|
|
1426
1432
|
_optionalChain([classNames, 'optionalAccess', _50 => _50.range_end])
|
|
1427
1433
|
),
|
|
1428
|
-
selected:
|
|
1434
|
+
selected: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1429
1435
|
"[&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground",
|
|
1430
1436
|
_optionalChain([classNames, 'optionalAccess', _51 => _51.selected])
|
|
1431
1437
|
),
|
|
1432
|
-
today:
|
|
1433
|
-
outside:
|
|
1438
|
+
today: _chunk3HL4VFJ4js.cn.call(void 0, "[&>button]:bg-accent [&>button]:text-accent-foreground", _optionalChain([classNames, 'optionalAccess', _52 => _52.today])),
|
|
1439
|
+
outside: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1434
1440
|
"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",
|
|
1435
1441
|
_optionalChain([classNames, 'optionalAccess', _53 => _53.outside])
|
|
1436
1442
|
),
|
|
1437
|
-
disabled:
|
|
1438
|
-
hidden:
|
|
1443
|
+
disabled: _chunk3HL4VFJ4js.cn.call(void 0, "text-muted-foreground opacity-50", _optionalChain([classNames, 'optionalAccess', _54 => _54.disabled])),
|
|
1444
|
+
hidden: _chunk3HL4VFJ4js.cn.call(void 0, "invisible flex-1", _optionalChain([classNames, 'optionalAccess', _55 => _55.hidden])),
|
|
1439
1445
|
...classNames
|
|
1440
1446
|
},
|
|
1441
1447
|
...props
|
|
@@ -1448,26 +1454,26 @@ Calendar.displayName = "Calendar";
|
|
|
1448
1454
|
// src/shadcnui/ui/card.tsx
|
|
1449
1455
|
|
|
1450
1456
|
|
|
1451
|
-
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: _chunk3HL4VFJ4js.cn.call(void 0, "rounded-xl border bg-card text-card-foreground shadow", className), ...props }));
|
|
1452
1458
|
Card.displayName = "Card";
|
|
1453
1459
|
var CardHeader = React7.forwardRef(
|
|
1454
|
-
({ 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: _chunk3HL4VFJ4js.cn.call(void 0, "flex flex-col space-y-1.5 p-6", className), ...props })
|
|
1455
1461
|
);
|
|
1456
1462
|
CardHeader.displayName = "CardHeader";
|
|
1457
1463
|
var CardTitle = React7.forwardRef(
|
|
1458
|
-
({ 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: _chunk3HL4VFJ4js.cn.call(void 0, "font-semibold leading-none tracking-tight", className), ...props })
|
|
1459
1465
|
);
|
|
1460
1466
|
CardTitle.displayName = "CardTitle";
|
|
1461
1467
|
var CardDescription = React7.forwardRef(
|
|
1462
|
-
({ 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: _chunk3HL4VFJ4js.cn.call(void 0, "text-sm text-muted-foreground", className), ...props })
|
|
1463
1469
|
);
|
|
1464
1470
|
CardDescription.displayName = "CardDescription";
|
|
1465
1471
|
var CardContent = React7.forwardRef(
|
|
1466
|
-
({ 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: _chunk3HL4VFJ4js.cn.call(void 0, "p-6 pt-0", className), ...props })
|
|
1467
1473
|
);
|
|
1468
1474
|
CardContent.displayName = "CardContent";
|
|
1469
1475
|
var CardFooter = React7.forwardRef(
|
|
1470
|
-
({ 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: _chunk3HL4VFJ4js.cn.call(void 0, "flex items-center p-6 pt-0", className), ...props })
|
|
1471
1477
|
);
|
|
1472
1478
|
CardFooter.displayName = "CardFooter";
|
|
1473
1479
|
|
|
@@ -1556,7 +1562,7 @@ var Carousel = React8.forwardRef(
|
|
|
1556
1562
|
{
|
|
1557
1563
|
ref,
|
|
1558
1564
|
onKeyDownCapture: handleKeyDown,
|
|
1559
|
-
className:
|
|
1565
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "relative", className),
|
|
1560
1566
|
role: "region",
|
|
1561
1567
|
"aria-roledescription": "carousel",
|
|
1562
1568
|
...props,
|
|
@@ -1575,7 +1581,7 @@ var CarouselContent = React8.forwardRef(
|
|
|
1575
1581
|
"div",
|
|
1576
1582
|
{
|
|
1577
1583
|
ref,
|
|
1578
|
-
className:
|
|
1584
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className),
|
|
1579
1585
|
...props
|
|
1580
1586
|
}
|
|
1581
1587
|
) });
|
|
@@ -1591,7 +1597,7 @@ var CarouselItem = React8.forwardRef(
|
|
|
1591
1597
|
ref,
|
|
1592
1598
|
role: "group",
|
|
1593
1599
|
"aria-roledescription": "slide",
|
|
1594
|
-
className:
|
|
1600
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "min-w-0 shrink-0 grow-0 basis-full", orientation === "horizontal" ? "pl-4" : "pt-4", className),
|
|
1595
1601
|
...props
|
|
1596
1602
|
}
|
|
1597
1603
|
);
|
|
@@ -1607,7 +1613,7 @@ var CarouselPrevious = React8.forwardRef(
|
|
|
1607
1613
|
ref,
|
|
1608
1614
|
variant,
|
|
1609
1615
|
size,
|
|
1610
|
-
className:
|
|
1616
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1611
1617
|
"absolute h-8 w-8 rounded-full",
|
|
1612
1618
|
orientation === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
1613
1619
|
className
|
|
@@ -1633,7 +1639,7 @@ var CarouselNext = React8.forwardRef(
|
|
|
1633
1639
|
ref,
|
|
1634
1640
|
variant,
|
|
1635
1641
|
size,
|
|
1636
|
-
className:
|
|
1642
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1637
1643
|
"absolute h-8 w-8 rounded-full",
|
|
1638
1644
|
orientation === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
1639
1645
|
className
|
|
@@ -1679,7 +1685,7 @@ function ChartContainer({
|
|
|
1679
1685
|
{
|
|
1680
1686
|
"data-slot": "chart",
|
|
1681
1687
|
"data-chart": chartId,
|
|
1682
|
-
className:
|
|
1688
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1683
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",
|
|
1684
1690
|
className
|
|
1685
1691
|
),
|
|
@@ -1744,12 +1750,12 @@ function ChartTooltipContent({
|
|
|
1744
1750
|
return typeof v === "string" || typeof v === "number" ? v : void 0;
|
|
1745
1751
|
})();
|
|
1746
1752
|
if (labelFormatter) {
|
|
1747
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1753
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, "font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
1748
1754
|
}
|
|
1749
1755
|
if (!value) {
|
|
1750
1756
|
return null;
|
|
1751
1757
|
}
|
|
1752
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1758
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, "font-medium", labelClassName), children: value });
|
|
1753
1759
|
}, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey]);
|
|
1754
1760
|
if (!active || !_optionalChain([payload, 'optionalAccess', _71 => _71.length])) {
|
|
1755
1761
|
return null;
|
|
@@ -1758,7 +1764,7 @@ function ChartTooltipContent({
|
|
|
1758
1764
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1759
1765
|
"div",
|
|
1760
1766
|
{
|
|
1761
|
-
className:
|
|
1767
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1762
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",
|
|
1763
1769
|
className
|
|
1764
1770
|
),
|
|
@@ -1771,7 +1777,7 @@ function ChartTooltipContent({
|
|
|
1771
1777
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1772
1778
|
"div",
|
|
1773
1779
|
{
|
|
1774
|
-
className:
|
|
1780
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1775
1781
|
"[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
|
|
1776
1782
|
indicator === "dot" && "items-center"
|
|
1777
1783
|
),
|
|
@@ -1779,7 +1785,7 @@ function ChartTooltipContent({
|
|
|
1779
1785
|
_optionalChain([itemConfig, 'optionalAccess', _73 => _73.icon]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1780
1786
|
"div",
|
|
1781
1787
|
{
|
|
1782
|
-
className:
|
|
1788
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "shrink-0 rounded-[2px] border-[var(--color-border)] bg-[var(--color-bg)]", {
|
|
1783
1789
|
"h-2.5 w-2.5": indicator === "dot",
|
|
1784
1790
|
"w-1": indicator === "line",
|
|
1785
1791
|
"w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
|
|
@@ -1794,7 +1800,7 @@ function ChartTooltipContent({
|
|
|
1794
1800
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1795
1801
|
"div",
|
|
1796
1802
|
{
|
|
1797
|
-
className:
|
|
1803
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "flex flex-1 justify-between leading-none", nestLabel ? "items-end" : "items-center"),
|
|
1798
1804
|
children: [
|
|
1799
1805
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid gap-1.5", children: [
|
|
1800
1806
|
nestLabel ? tooltipLabel : null,
|
|
@@ -1826,13 +1832,13 @@ function ChartLegendContent({
|
|
|
1826
1832
|
if (!_optionalChain([payload, 'optionalAccess', _75 => _75.length])) {
|
|
1827
1833
|
return null;
|
|
1828
1834
|
}
|
|
1829
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1835
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, "flex items-center justify-center gap-4", verticalAlign === "top" ? "pb-3" : "pt-3", className), children: payload.map((item) => {
|
|
1830
1836
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
1831
1837
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1832
1838
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1833
1839
|
"div",
|
|
1834
1840
|
{
|
|
1835
|
-
className:
|
|
1841
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),
|
|
1836
1842
|
children: [
|
|
1837
1843
|
_optionalChain([itemConfig, 'optionalAccess', _76 => _76.icon]) && !hideIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1838
1844
|
"div",
|
|
@@ -1875,7 +1881,7 @@ var Checkbox = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1875
1881
|
CheckboxPrimitive.Root,
|
|
1876
1882
|
{
|
|
1877
1883
|
ref,
|
|
1878
|
-
className:
|
|
1884
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1879
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",
|
|
1880
1886
|
className
|
|
1881
1887
|
),
|
|
@@ -1883,7 +1889,7 @@ var Checkbox = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1883
1889
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1884
1890
|
CheckboxPrimitive.Indicator,
|
|
1885
1891
|
{
|
|
1886
|
-
className:
|
|
1892
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "flex items-center justify-center text-current"),
|
|
1887
1893
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacticons.CheckIcon, { className: "h-4 w-4" })
|
|
1888
1894
|
}
|
|
1889
1895
|
)
|
|
@@ -1915,7 +1921,7 @@ var DialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1915
1921
|
DialogPrimitive.Overlay,
|
|
1916
1922
|
{
|
|
1917
1923
|
ref,
|
|
1918
|
-
className:
|
|
1924
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1919
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",
|
|
1920
1926
|
className
|
|
1921
1927
|
),
|
|
@@ -1929,7 +1935,7 @@ var DialogContent = React11.forwardRef(({ className, children, ...props }, ref)
|
|
|
1929
1935
|
DialogPrimitive.Content,
|
|
1930
1936
|
{
|
|
1931
1937
|
ref,
|
|
1932
|
-
className:
|
|
1938
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1933
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",
|
|
1934
1940
|
className
|
|
1935
1941
|
),
|
|
@@ -1945,20 +1951,20 @@ var DialogContent = React11.forwardRef(({ className, children, ...props }, ref)
|
|
|
1945
1951
|
)
|
|
1946
1952
|
] }));
|
|
1947
1953
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
1948
|
-
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: _chunk3HL4VFJ4js.cn.call(void 0, "flex flex-col space-y-1.5 text-center sm:text-left", className), ...props }), "DialogHeader");
|
|
1949
1955
|
DialogHeader.displayName = "DialogHeader";
|
|
1950
|
-
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: _chunk3HL4VFJ4js.cn.call(void 0, "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props }), "DialogFooter");
|
|
1951
1957
|
DialogFooter.displayName = "DialogFooter";
|
|
1952
1958
|
var DialogTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1953
1959
|
DialogPrimitive.Title,
|
|
1954
1960
|
{
|
|
1955
1961
|
ref,
|
|
1956
|
-
className:
|
|
1962
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "text-lg font-semibold leading-none tracking-tight", className),
|
|
1957
1963
|
...props
|
|
1958
1964
|
}
|
|
1959
1965
|
));
|
|
1960
1966
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
1961
|
-
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: _chunk3HL4VFJ4js.cn.call(void 0, "text-sm text-muted-foreground", className), ...props }));
|
|
1962
1968
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
1963
1969
|
|
|
1964
1970
|
// src/shadcnui/ui/command.tsx
|
|
@@ -1967,7 +1973,7 @@ var Command = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1967
1973
|
_cmdk.Command,
|
|
1968
1974
|
{
|
|
1969
1975
|
ref,
|
|
1970
|
-
className:
|
|
1976
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1971
1977
|
"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
|
|
1972
1978
|
className
|
|
1973
1979
|
),
|
|
@@ -1984,7 +1990,7 @@ var CommandInput = React12.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1984
1990
|
_cmdk.Command.Input,
|
|
1985
1991
|
{
|
|
1986
1992
|
ref,
|
|
1987
|
-
className:
|
|
1993
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
1988
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",
|
|
1989
1995
|
className
|
|
1990
1996
|
),
|
|
@@ -1997,7 +2003,7 @@ var CommandList = React12.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1997
2003
|
_cmdk.Command.List,
|
|
1998
2004
|
{
|
|
1999
2005
|
ref,
|
|
2000
|
-
className:
|
|
2006
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "max-h-[300px] overflow-y-auto overflow-x-hidden", className),
|
|
2001
2007
|
...props
|
|
2002
2008
|
}
|
|
2003
2009
|
));
|
|
@@ -2015,7 +2021,7 @@ var CommandGroup = React12.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2015
2021
|
_cmdk.Command.Group,
|
|
2016
2022
|
{
|
|
2017
2023
|
ref,
|
|
2018
|
-
className:
|
|
2024
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2019
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",
|
|
2020
2026
|
className
|
|
2021
2027
|
),
|
|
@@ -2027,7 +2033,7 @@ var CommandSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2027
2033
|
_cmdk.Command.Separator,
|
|
2028
2034
|
{
|
|
2029
2035
|
ref,
|
|
2030
|
-
className:
|
|
2036
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "-mx-1 h-px bg-border", className),
|
|
2031
2037
|
...props
|
|
2032
2038
|
}
|
|
2033
2039
|
));
|
|
@@ -2036,7 +2042,7 @@ var CommandItem = React12.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2036
2042
|
_cmdk.Command.Item,
|
|
2037
2043
|
{
|
|
2038
2044
|
ref,
|
|
2039
|
-
className:
|
|
2045
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2040
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",
|
|
2041
2047
|
className
|
|
2042
2048
|
),
|
|
@@ -2051,7 +2057,7 @@ var CommandShortcut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
2051
2057
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2052
2058
|
"span",
|
|
2053
2059
|
{
|
|
2054
|
-
className:
|
|
2060
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2055
2061
|
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
2056
2062
|
className
|
|
2057
2063
|
),
|
|
@@ -2076,7 +2082,7 @@ var ContextMenuSubTrigger = React13.forwardRef(({ className, inset, children, ..
|
|
|
2076
2082
|
ContextMenuPrimitive.SubTrigger,
|
|
2077
2083
|
{
|
|
2078
2084
|
ref,
|
|
2079
|
-
className:
|
|
2085
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2080
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",
|
|
2081
2087
|
inset && "pl-8",
|
|
2082
2088
|
className
|
|
@@ -2093,7 +2099,7 @@ var ContextMenuSubContent = React13.forwardRef(({ className, ...props }, ref) =>
|
|
|
2093
2099
|
ContextMenuPrimitive.SubContent,
|
|
2094
2100
|
{
|
|
2095
2101
|
ref,
|
|
2096
|
-
className:
|
|
2102
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2097
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",
|
|
2098
2104
|
className
|
|
2099
2105
|
),
|
|
@@ -2105,7 +2111,7 @@ var ContextMenuContent = React13.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2105
2111
|
ContextMenuPrimitive.Content,
|
|
2106
2112
|
{
|
|
2107
2113
|
ref,
|
|
2108
|
-
className:
|
|
2114
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2109
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",
|
|
2110
2116
|
className
|
|
2111
2117
|
),
|
|
@@ -2117,7 +2123,7 @@ var ContextMenuItem = React13.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
2117
2123
|
ContextMenuPrimitive.Item,
|
|
2118
2124
|
{
|
|
2119
2125
|
ref,
|
|
2120
|
-
className:
|
|
2126
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2121
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",
|
|
2122
2128
|
inset && "pl-8",
|
|
2123
2129
|
className
|
|
@@ -2130,7 +2136,7 @@ var ContextMenuCheckboxItem = React13.forwardRef(({ className, children, checked
|
|
|
2130
2136
|
ContextMenuPrimitive.CheckboxItem,
|
|
2131
2137
|
{
|
|
2132
2138
|
ref,
|
|
2133
|
-
className:
|
|
2139
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2134
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",
|
|
2135
2141
|
className
|
|
2136
2142
|
),
|
|
@@ -2147,7 +2153,7 @@ var ContextMenuRadioItem = React13.forwardRef(({ className, children, ...props }
|
|
|
2147
2153
|
ContextMenuPrimitive.RadioItem,
|
|
2148
2154
|
{
|
|
2149
2155
|
ref,
|
|
2150
|
-
className:
|
|
2156
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2151
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",
|
|
2152
2158
|
className
|
|
2153
2159
|
),
|
|
@@ -2163,15 +2169,15 @@ var ContextMenuLabel = React13.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2163
2169
|
ContextMenuPrimitive.Label,
|
|
2164
2170
|
{
|
|
2165
2171
|
ref,
|
|
2166
|
-
className:
|
|
2172
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "px-2 py-1.5 text-sm font-semibold text-foreground", inset && "pl-8", className),
|
|
2167
2173
|
...props
|
|
2168
2174
|
}
|
|
2169
2175
|
));
|
|
2170
2176
|
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
2171
|
-
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: _chunk3HL4VFJ4js.cn.call(void 0, "-mx-1 my-1 h-px bg-border", className), ...props }));
|
|
2172
2178
|
ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
|
|
2173
2179
|
var ContextMenuShortcut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className, ...props }) => {
|
|
2174
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
2180
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HL4VFJ4js.cn.call(void 0, "ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
|
|
2175
2181
|
}, "ContextMenuShortcut");
|
|
2176
2182
|
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
2177
2183
|
|
|
@@ -2184,7 +2190,7 @@ Drawer.displayName = "Drawer";
|
|
|
2184
2190
|
var DrawerTrigger = _vaul.Drawer.Trigger;
|
|
2185
2191
|
var DrawerPortal = _vaul.Drawer.Portal;
|
|
2186
2192
|
var DrawerClose = _vaul.Drawer.Close;
|
|
2187
|
-
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: _chunk3HL4VFJ4js.cn.call(void 0, "fixed inset-0 z-50 bg-black/80", className), ...props }));
|
|
2188
2194
|
DrawerOverlay.displayName = _vaul.Drawer.Overlay.displayName;
|
|
2189
2195
|
var DrawerContent = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DrawerPortal, { children: [
|
|
2190
2196
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DrawerOverlay, {}),
|
|
@@ -2192,7 +2198,7 @@ var DrawerContent = React14.forwardRef(({ className, children, ...props }, ref)
|
|
|
2192
2198
|
_vaul.Drawer.Content,
|
|
2193
2199
|
{
|
|
2194
2200
|
ref,
|
|
2195
|
-
className:
|
|
2201
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2196
2202
|
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
|
|
2197
2203
|
className
|
|
2198
2204
|
),
|
|
@@ -2205,20 +2211,20 @@ var DrawerContent = React14.forwardRef(({ className, children, ...props }, ref)
|
|
|
2205
2211
|
)
|
|
2206
2212
|
] }));
|
|
2207
2213
|
DrawerContent.displayName = "DrawerContent";
|
|
2208
|
-
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: _chunk3HL4VFJ4js.cn.call(void 0, "grid gap-1.5 p-4 text-center sm:text-left", className), ...props }), "DrawerHeader");
|
|
2209
2215
|
DrawerHeader.displayName = "DrawerHeader";
|
|
2210
|
-
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: _chunk3HL4VFJ4js.cn.call(void 0, "mt-auto flex flex-col gap-2 p-4", className), ...props }), "DrawerFooter");
|
|
2211
2217
|
DrawerFooter.displayName = "DrawerFooter";
|
|
2212
2218
|
var DrawerTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2213
2219
|
_vaul.Drawer.Title,
|
|
2214
2220
|
{
|
|
2215
2221
|
ref,
|
|
2216
|
-
className:
|
|
2222
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "text-lg font-semibold leading-none tracking-tight", className),
|
|
2217
2223
|
...props
|
|
2218
2224
|
}
|
|
2219
2225
|
));
|
|
2220
2226
|
DrawerTitle.displayName = _vaul.Drawer.Title.displayName;
|
|
2221
|
-
var DrawerDescription = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _vaul.Drawer.Description, { ref, className:
|
|
2227
|
+
var DrawerDescription = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _vaul.Drawer.Description, { ref, className: _chunk3HL4VFJ4js.cn.call(void 0, "text-sm text-muted-foreground", className), ...props }));
|
|
2222
2228
|
DrawerDescription.displayName = _vaul.Drawer.Description.displayName;
|
|
2223
2229
|
|
|
2224
2230
|
// src/shadcnui/ui/dropdown-menu.tsx
|
|
@@ -2240,7 +2246,7 @@ var DropdownMenuSubTrigger = React15.forwardRef(({ className, inset, children, .
|
|
|
2240
2246
|
DropdownMenuPrimitive.SubTrigger,
|
|
2241
2247
|
{
|
|
2242
2248
|
ref,
|
|
2243
|
-
className:
|
|
2249
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2244
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",
|
|
2245
2251
|
inset && "pl-8",
|
|
2246
2252
|
className
|
|
@@ -2257,7 +2263,7 @@ var DropdownMenuSubContent = React15.forwardRef(({ className, ...props }, ref) =
|
|
|
2257
2263
|
DropdownMenuPrimitive.SubContent,
|
|
2258
2264
|
{
|
|
2259
2265
|
ref,
|
|
2260
|
-
className:
|
|
2266
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2261
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",
|
|
2262
2268
|
className
|
|
2263
2269
|
),
|
|
@@ -2270,7 +2276,7 @@ var DropdownMenuContent = React15.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
2270
2276
|
{
|
|
2271
2277
|
ref,
|
|
2272
2278
|
sideOffset,
|
|
2273
|
-
className:
|
|
2279
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2274
2280
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
2275
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",
|
|
2276
2282
|
className
|
|
@@ -2283,7 +2289,7 @@ var DropdownMenuItem = React15.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2283
2289
|
DropdownMenuPrimitive.Item,
|
|
2284
2290
|
{
|
|
2285
2291
|
ref,
|
|
2286
|
-
className:
|
|
2292
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2287
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",
|
|
2288
2294
|
inset && "pl-8",
|
|
2289
2295
|
className
|
|
@@ -2296,7 +2302,7 @@ var DropdownMenuCheckboxItem = React15.forwardRef(({ className, children, checke
|
|
|
2296
2302
|
DropdownMenuPrimitive.CheckboxItem,
|
|
2297
2303
|
{
|
|
2298
2304
|
ref,
|
|
2299
|
-
className:
|
|
2305
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2300
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",
|
|
2301
2307
|
className
|
|
2302
2308
|
),
|
|
@@ -2313,7 +2319,7 @@ var DropdownMenuRadioItem = React15.forwardRef(({ className, children, ...props
|
|
|
2313
2319
|
DropdownMenuPrimitive.RadioItem,
|
|
2314
2320
|
{
|
|
2315
2321
|
ref,
|
|
2316
|
-
className:
|
|
2322
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2317
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",
|
|
2318
2324
|
className
|
|
2319
2325
|
),
|
|
@@ -2329,7 +2335,7 @@ var DropdownMenuLabel = React15.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2329
2335
|
DropdownMenuPrimitive.Label,
|
|
2330
2336
|
{
|
|
2331
2337
|
ref,
|
|
2332
|
-
className:
|
|
2338
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2333
2339
|
"px-2 py-1.5 text-sm font-semibold",
|
|
2334
2340
|
inset && "pl-8",
|
|
2335
2341
|
className
|
|
@@ -2342,7 +2348,7 @@ var DropdownMenuSeparator = React15.forwardRef(({ className, ...props }, ref) =>
|
|
|
2342
2348
|
DropdownMenuPrimitive.Separator,
|
|
2343
2349
|
{
|
|
2344
2350
|
ref,
|
|
2345
|
-
className:
|
|
2351
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "-mx-1 my-1 h-px bg-muted", className),
|
|
2346
2352
|
...props
|
|
2347
2353
|
}
|
|
2348
2354
|
));
|
|
@@ -2354,7 +2360,7 @@ var DropdownMenuShortcut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
2354
2360
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2355
2361
|
"span",
|
|
2356
2362
|
{
|
|
2357
|
-
className:
|
|
2363
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "ml-auto text-xs tracking-widest opacity-60", className),
|
|
2358
2364
|
...props
|
|
2359
2365
|
}
|
|
2360
2366
|
);
|
|
@@ -2378,7 +2384,7 @@ var Label3 = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
2378
2384
|
LabelPrimitive.Root,
|
|
2379
2385
|
{
|
|
2380
2386
|
ref,
|
|
2381
|
-
className:
|
|
2387
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, labelVariants(), className),
|
|
2382
2388
|
...props
|
|
2383
2389
|
}
|
|
2384
2390
|
));
|
|
@@ -2415,13 +2421,13 @@ var FormItemContext = React17.createContext({});
|
|
|
2415
2421
|
var FormItem = React17.forwardRef(
|
|
2416
2422
|
({ className, ...props }, ref) => {
|
|
2417
2423
|
const id = React17.useId();
|
|
2418
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
2424
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3HL4VFJ4js.cn.call(void 0, "space-y-2", className), ...props }) });
|
|
2419
2425
|
}
|
|
2420
2426
|
);
|
|
2421
2427
|
FormItem.displayName = "FormItem";
|
|
2422
2428
|
var FormLabel = React17.forwardRef(({ className, ...props }, ref) => {
|
|
2423
2429
|
const { error, formItemId } = useFormField();
|
|
2424
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label3, { ref, className:
|
|
2430
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label3, { ref, className: _chunk3HL4VFJ4js.cn.call(void 0, error && "text-destructive", className), htmlFor: formItemId, ...props });
|
|
2425
2431
|
});
|
|
2426
2432
|
FormLabel.displayName = "FormLabel";
|
|
2427
2433
|
var FormControl = React17.forwardRef(
|
|
@@ -2443,7 +2449,7 @@ FormControl.displayName = "FormControl";
|
|
|
2443
2449
|
var FormDescription = React17.forwardRef(
|
|
2444
2450
|
({ className, ...props }, ref) => {
|
|
2445
2451
|
const { formDescriptionId } = useFormField();
|
|
2446
|
-
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: _chunk3HL4VFJ4js.cn.call(void 0, "text-muted-foreground text-[0.8rem]", className), ...props });
|
|
2447
2453
|
}
|
|
2448
2454
|
);
|
|
2449
2455
|
FormDescription.displayName = "FormDescription";
|
|
@@ -2459,7 +2465,7 @@ var FormMessage = React17.forwardRef(
|
|
|
2459
2465
|
{
|
|
2460
2466
|
ref,
|
|
2461
2467
|
id: formMessageId,
|
|
2462
|
-
className:
|
|
2468
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "text-destructive text-[0.8rem] font-medium", className),
|
|
2463
2469
|
...props,
|
|
2464
2470
|
children: body
|
|
2465
2471
|
}
|
|
@@ -2480,7 +2486,7 @@ var HoverCardContent = React18.forwardRef(({ className, align = "center", sideOf
|
|
|
2480
2486
|
ref,
|
|
2481
2487
|
align,
|
|
2482
2488
|
sideOffset,
|
|
2483
|
-
className:
|
|
2489
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2484
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",
|
|
2485
2491
|
className
|
|
2486
2492
|
),
|
|
@@ -2497,7 +2503,7 @@ function Input({ className, type, ...props }) {
|
|
|
2497
2503
|
{
|
|
2498
2504
|
type,
|
|
2499
2505
|
"data-slot": "input",
|
|
2500
|
-
className:
|
|
2506
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2501
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",
|
|
2502
2508
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
2503
2509
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
@@ -2525,7 +2531,7 @@ function NavigationMenu({
|
|
|
2525
2531
|
{
|
|
2526
2532
|
"data-slot": "navigation-menu",
|
|
2527
2533
|
"data-viewport": viewport,
|
|
2528
|
-
className:
|
|
2534
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2529
2535
|
"group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
|
|
2530
2536
|
className
|
|
2531
2537
|
),
|
|
@@ -2546,7 +2552,7 @@ function NavigationMenuList({
|
|
|
2546
2552
|
NavigationMenuPrimitive.List,
|
|
2547
2553
|
{
|
|
2548
2554
|
"data-slot": "navigation-menu-list",
|
|
2549
|
-
className:
|
|
2555
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2550
2556
|
"group flex flex-1 list-none items-center justify-center gap-1",
|
|
2551
2557
|
className
|
|
2552
2558
|
),
|
|
@@ -2563,7 +2569,7 @@ function NavigationMenuItem({
|
|
|
2563
2569
|
NavigationMenuPrimitive.Item,
|
|
2564
2570
|
{
|
|
2565
2571
|
"data-slot": "navigation-menu-item",
|
|
2566
|
-
className:
|
|
2572
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "relative", className),
|
|
2567
2573
|
...props
|
|
2568
2574
|
}
|
|
2569
2575
|
);
|
|
@@ -2581,7 +2587,7 @@ function NavigationMenuTrigger({
|
|
|
2581
2587
|
NavigationMenuPrimitive.Trigger,
|
|
2582
2588
|
{
|
|
2583
2589
|
"data-slot": "navigation-menu-trigger",
|
|
2584
|
-
className:
|
|
2590
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, navigationMenuTriggerStyle(), "group", className),
|
|
2585
2591
|
...props,
|
|
2586
2592
|
children: [
|
|
2587
2593
|
children,
|
|
@@ -2606,7 +2612,7 @@ function NavigationMenuContent({
|
|
|
2606
2612
|
NavigationMenuPrimitive.Content,
|
|
2607
2613
|
{
|
|
2608
2614
|
"data-slot": "navigation-menu-content",
|
|
2609
|
-
className:
|
|
2615
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2610
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",
|
|
2611
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",
|
|
2612
2618
|
className
|
|
@@ -2623,14 +2629,14 @@ function NavigationMenuViewport({
|
|
|
2623
2629
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2624
2630
|
"div",
|
|
2625
2631
|
{
|
|
2626
|
-
className:
|
|
2632
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2627
2633
|
"absolute top-full left-0 isolate z-50 flex justify-center"
|
|
2628
2634
|
),
|
|
2629
2635
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2630
2636
|
NavigationMenuPrimitive.Viewport,
|
|
2631
2637
|
{
|
|
2632
2638
|
"data-slot": "navigation-menu-viewport",
|
|
2633
|
-
className:
|
|
2639
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2634
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)]",
|
|
2635
2641
|
className
|
|
2636
2642
|
),
|
|
@@ -2649,7 +2655,7 @@ function NavigationMenuLink({
|
|
|
2649
2655
|
NavigationMenuPrimitive.Link,
|
|
2650
2656
|
{
|
|
2651
2657
|
"data-slot": "navigation-menu-link",
|
|
2652
|
-
className:
|
|
2658
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2653
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",
|
|
2654
2660
|
className
|
|
2655
2661
|
),
|
|
@@ -2666,7 +2672,7 @@ function NavigationMenuIndicator({
|
|
|
2666
2672
|
NavigationMenuPrimitive.Indicator,
|
|
2667
2673
|
{
|
|
2668
2674
|
"data-slot": "navigation-menu-indicator",
|
|
2669
|
-
className:
|
|
2675
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2670
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",
|
|
2671
2677
|
className
|
|
2672
2678
|
),
|
|
@@ -2690,7 +2696,7 @@ var PopoverContent = React19.forwardRef(({ className, align = "center", sideOffs
|
|
|
2690
2696
|
ref,
|
|
2691
2697
|
align,
|
|
2692
2698
|
sideOffset,
|
|
2693
|
-
className:
|
|
2699
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2694
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",
|
|
2695
2701
|
className
|
|
2696
2702
|
),
|
|
@@ -2707,7 +2713,7 @@ var Progress = React20.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
2707
2713
|
ProgressPrimitive.Root,
|
|
2708
2714
|
{
|
|
2709
2715
|
ref,
|
|
2710
|
-
className:
|
|
2716
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "relative h-2 w-full overflow-hidden rounded-full bg-primary/20", className),
|
|
2711
2717
|
...props,
|
|
2712
2718
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2713
2719
|
ProgressPrimitive.Indicator,
|
|
@@ -2726,7 +2732,7 @@ var _reactradiogroup = require('@radix-ui/react-radio-group'); var RadioGroupPri
|
|
|
2726
2732
|
|
|
2727
2733
|
|
|
2728
2734
|
var RadioGroup3 = React21.forwardRef(({ className, ...props }, ref) => {
|
|
2729
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioGroupPrimitive.Root, { className:
|
|
2735
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioGroupPrimitive.Root, { className: _chunk3HL4VFJ4js.cn.call(void 0, "grid gap-2", className), ...props, ref });
|
|
2730
2736
|
});
|
|
2731
2737
|
RadioGroup3.displayName = RadioGroupPrimitive.Root.displayName;
|
|
2732
2738
|
var RadioGroupItem = React21.forwardRef(({ className, ...props }, ref) => {
|
|
@@ -2734,7 +2740,7 @@ var RadioGroupItem = React21.forwardRef(({ className, ...props }, ref) => {
|
|
|
2734
2740
|
RadioGroupPrimitive.Item,
|
|
2735
2741
|
{
|
|
2736
2742
|
ref,
|
|
2737
|
-
className:
|
|
2743
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2738
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",
|
|
2739
2745
|
className
|
|
2740
2746
|
),
|
|
@@ -2754,7 +2760,7 @@ function ResizablePanelGroup({ className, ...props }) {
|
|
|
2754
2760
|
ResizablePrimitive.PanelGroup,
|
|
2755
2761
|
{
|
|
2756
2762
|
"data-slot": "resizable-panel-group",
|
|
2757
|
-
className:
|
|
2763
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className),
|
|
2758
2764
|
...props
|
|
2759
2765
|
}
|
|
2760
2766
|
);
|
|
@@ -2773,7 +2779,7 @@ function ResizableHandle({
|
|
|
2773
2779
|
ResizablePrimitive.PanelResizeHandle,
|
|
2774
2780
|
{
|
|
2775
2781
|
"data-slot": "resizable-handle",
|
|
2776
|
-
className:
|
|
2782
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2777
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",
|
|
2778
2784
|
className
|
|
2779
2785
|
),
|
|
@@ -2788,7 +2794,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ResizableHandle, "ResizableHandle");
|
|
|
2788
2794
|
var _reactscrollarea = require('@radix-ui/react-scroll-area'); var ScrollAreaPrimitive = _interopRequireWildcard(_reactscrollarea);
|
|
2789
2795
|
|
|
2790
2796
|
|
|
2791
|
-
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: _chunk3HL4VFJ4js.cn.call(void 0, "relative overflow-hidden", className), ...props, children: [
|
|
2792
2798
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
2793
2799
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScrollBar, {}),
|
|
2794
2800
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScrollAreaPrimitive.Corner, {})
|
|
@@ -2799,7 +2805,7 @@ var ScrollBar = React22.forwardRef(({ className, orientation = "vertical", ...pr
|
|
|
2799
2805
|
{
|
|
2800
2806
|
ref,
|
|
2801
2807
|
orientation,
|
|
2802
|
-
className:
|
|
2808
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2803
2809
|
"flex touch-none select-none transition-colors",
|
|
2804
2810
|
orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
|
|
2805
2811
|
orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
|
|
@@ -2828,7 +2834,7 @@ var SelectTrigger = React23.forwardRef(({ className, children, ...props }, ref)
|
|
|
2828
2834
|
SelectPrimitive.Trigger,
|
|
2829
2835
|
{
|
|
2830
2836
|
ref,
|
|
2831
|
-
className:
|
|
2837
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2832
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",
|
|
2833
2839
|
className
|
|
2834
2840
|
),
|
|
@@ -2844,7 +2850,7 @@ var SelectScrollUpButton = React23.forwardRef(({ className, ...props }, ref) =>
|
|
|
2844
2850
|
SelectPrimitive.ScrollUpButton,
|
|
2845
2851
|
{
|
|
2846
2852
|
ref,
|
|
2847
|
-
className:
|
|
2853
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2848
2854
|
"flex cursor-default items-center justify-center py-1",
|
|
2849
2855
|
className
|
|
2850
2856
|
),
|
|
@@ -2857,7 +2863,7 @@ var SelectScrollDownButton = React23.forwardRef(({ className, ...props }, ref) =
|
|
|
2857
2863
|
SelectPrimitive.ScrollDownButton,
|
|
2858
2864
|
{
|
|
2859
2865
|
ref,
|
|
2860
|
-
className:
|
|
2866
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2861
2867
|
"flex cursor-default items-center justify-center py-1",
|
|
2862
2868
|
className
|
|
2863
2869
|
),
|
|
@@ -2870,7 +2876,7 @@ var SelectContent = React23.forwardRef(({ className, children, position = "poppe
|
|
|
2870
2876
|
SelectPrimitive.Content,
|
|
2871
2877
|
{
|
|
2872
2878
|
ref,
|
|
2873
|
-
className:
|
|
2879
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2874
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",
|
|
2875
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",
|
|
2876
2882
|
className
|
|
@@ -2882,7 +2888,7 @@ var SelectContent = React23.forwardRef(({ className, children, position = "poppe
|
|
|
2882
2888
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2883
2889
|
SelectPrimitive.Viewport,
|
|
2884
2890
|
{
|
|
2885
|
-
className:
|
|
2891
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2886
2892
|
"p-1",
|
|
2887
2893
|
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
2888
2894
|
),
|
|
@@ -2898,7 +2904,7 @@ var SelectLabel = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2898
2904
|
SelectPrimitive.Label,
|
|
2899
2905
|
{
|
|
2900
2906
|
ref,
|
|
2901
|
-
className:
|
|
2907
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "px-2 py-1.5 text-sm font-semibold", className),
|
|
2902
2908
|
...props
|
|
2903
2909
|
}
|
|
2904
2910
|
));
|
|
@@ -2907,7 +2913,7 @@ var SelectItem = React23.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
2907
2913
|
SelectPrimitive.Item,
|
|
2908
2914
|
{
|
|
2909
2915
|
ref,
|
|
2910
|
-
className:
|
|
2916
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2911
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",
|
|
2912
2918
|
className
|
|
2913
2919
|
),
|
|
@@ -2923,7 +2929,7 @@ var SelectSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
2923
2929
|
SelectPrimitive.Separator,
|
|
2924
2930
|
{
|
|
2925
2931
|
ref,
|
|
2926
|
-
className:
|
|
2932
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "-mx-1 my-1 h-px bg-muted", className),
|
|
2927
2933
|
...props
|
|
2928
2934
|
}
|
|
2929
2935
|
));
|
|
@@ -2944,7 +2950,7 @@ function Separator4({
|
|
|
2944
2950
|
"data-slot": "separator",
|
|
2945
2951
|
decorative,
|
|
2946
2952
|
orientation,
|
|
2947
|
-
className:
|
|
2953
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2948
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",
|
|
2949
2955
|
className
|
|
2950
2956
|
),
|
|
@@ -2988,7 +2994,7 @@ function SheetOverlay({
|
|
|
2988
2994
|
SheetPrimitive.Overlay,
|
|
2989
2995
|
{
|
|
2990
2996
|
"data-slot": "sheet-overlay",
|
|
2991
|
-
className:
|
|
2997
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
2992
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",
|
|
2993
2999
|
className
|
|
2994
3000
|
),
|
|
@@ -3009,7 +3015,7 @@ function SheetContent({
|
|
|
3009
3015
|
SheetPrimitive.Content,
|
|
3010
3016
|
{
|
|
3011
3017
|
"data-slot": "sheet-content",
|
|
3012
|
-
className:
|
|
3018
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3013
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",
|
|
3014
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",
|
|
3015
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",
|
|
@@ -3035,7 +3041,7 @@ function SheetHeader({ className, ...props }) {
|
|
|
3035
3041
|
"div",
|
|
3036
3042
|
{
|
|
3037
3043
|
"data-slot": "sheet-header",
|
|
3038
|
-
className:
|
|
3044
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "flex flex-col gap-1.5 p-4", className),
|
|
3039
3045
|
...props
|
|
3040
3046
|
}
|
|
3041
3047
|
);
|
|
@@ -3046,7 +3052,7 @@ function SheetFooter({ className, ...props }) {
|
|
|
3046
3052
|
"div",
|
|
3047
3053
|
{
|
|
3048
3054
|
"data-slot": "sheet-footer",
|
|
3049
|
-
className:
|
|
3055
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "mt-auto flex flex-col gap-2 p-4", className),
|
|
3050
3056
|
...props
|
|
3051
3057
|
}
|
|
3052
3058
|
);
|
|
@@ -3060,7 +3066,7 @@ function SheetTitle({
|
|
|
3060
3066
|
SheetPrimitive.Title,
|
|
3061
3067
|
{
|
|
3062
3068
|
"data-slot": "sheet-title",
|
|
3063
|
-
className:
|
|
3069
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "text-foreground font-semibold", className),
|
|
3064
3070
|
...props
|
|
3065
3071
|
}
|
|
3066
3072
|
);
|
|
@@ -3074,7 +3080,7 @@ function SheetDescription({
|
|
|
3074
3080
|
SheetPrimitive.Description,
|
|
3075
3081
|
{
|
|
3076
3082
|
"data-slot": "sheet-description",
|
|
3077
|
-
className:
|
|
3083
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "text-muted-foreground text-sm", className),
|
|
3078
3084
|
...props
|
|
3079
3085
|
}
|
|
3080
3086
|
);
|
|
@@ -3094,7 +3100,7 @@ function Skeleton({ className, ...props }) {
|
|
|
3094
3100
|
"div",
|
|
3095
3101
|
{
|
|
3096
3102
|
"data-slot": "skeleton",
|
|
3097
|
-
className:
|
|
3103
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "bg-accent animate-pulse rounded-md", className),
|
|
3098
3104
|
...props
|
|
3099
3105
|
}
|
|
3100
3106
|
);
|
|
@@ -3141,7 +3147,7 @@ function TooltipContent({
|
|
|
3141
3147
|
{
|
|
3142
3148
|
"data-slot": "tooltip-content",
|
|
3143
3149
|
sideOffset,
|
|
3144
|
-
className:
|
|
3150
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3145
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",
|
|
3146
3152
|
className
|
|
3147
3153
|
),
|
|
@@ -3181,7 +3187,7 @@ function SidebarProvider({
|
|
|
3181
3187
|
children,
|
|
3182
3188
|
...props
|
|
3183
3189
|
}) {
|
|
3184
|
-
const isMobile =
|
|
3190
|
+
const isMobile = _chunk3HL4VFJ4js.useIsMobile.call(void 0, );
|
|
3185
3191
|
const [openMobile, setOpenMobile] = React24.useState(false);
|
|
3186
3192
|
const [_open, _setOpen] = React24.useState(defaultOpen);
|
|
3187
3193
|
const open = _nullishCoalesce(openProp, () => ( _open));
|
|
@@ -3232,7 +3238,7 @@ function SidebarProvider({
|
|
|
3232
3238
|
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
3233
3239
|
...style
|
|
3234
3240
|
},
|
|
3235
|
-
className:
|
|
3241
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", className),
|
|
3236
3242
|
...props,
|
|
3237
3243
|
children
|
|
3238
3244
|
}
|
|
@@ -3253,7 +3259,7 @@ function Sidebar({
|
|
|
3253
3259
|
"div",
|
|
3254
3260
|
{
|
|
3255
3261
|
"data-slot": "sidebar",
|
|
3256
|
-
className:
|
|
3262
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", className),
|
|
3257
3263
|
...props,
|
|
3258
3264
|
children
|
|
3259
3265
|
}
|
|
@@ -3295,7 +3301,7 @@ function Sidebar({
|
|
|
3295
3301
|
"div",
|
|
3296
3302
|
{
|
|
3297
3303
|
"data-slot": "sidebar-gap",
|
|
3298
|
-
className:
|
|
3304
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3299
3305
|
"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
|
|
3300
3306
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
3301
3307
|
"group-data-[side=right]:rotate-180",
|
|
@@ -3307,7 +3313,7 @@ function Sidebar({
|
|
|
3307
3313
|
"div",
|
|
3308
3314
|
{
|
|
3309
3315
|
"data-slot": "sidebar-container",
|
|
3310
|
-
className:
|
|
3316
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3311
3317
|
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
3312
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)]",
|
|
3313
3319
|
// Adjust the padding for floating and inset variants.
|
|
@@ -3340,7 +3346,7 @@ function SidebarTrigger({ className, onClick, ...props }) {
|
|
|
3340
3346
|
"data-slot": "sidebar-trigger",
|
|
3341
3347
|
variant: "ghost",
|
|
3342
3348
|
size: "icon",
|
|
3343
|
-
className:
|
|
3349
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "size-7", className),
|
|
3344
3350
|
onClick: (event) => {
|
|
3345
3351
|
_optionalChain([onClick, 'optionalCall', _79 => _79(event)]);
|
|
3346
3352
|
toggleSidebar();
|
|
@@ -3365,7 +3371,7 @@ function SidebarRail({ className, ...props }) {
|
|
|
3365
3371
|
tabIndex: -1,
|
|
3366
3372
|
onClick: toggleSidebar,
|
|
3367
3373
|
title: "Toggle Sidebar",
|
|
3368
|
-
className:
|
|
3374
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3369
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",
|
|
3370
3376
|
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
3371
3377
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
@@ -3384,7 +3390,7 @@ function SidebarInset({ className, ...props }) {
|
|
|
3384
3390
|
"main",
|
|
3385
3391
|
{
|
|
3386
3392
|
"data-slot": "sidebar-inset",
|
|
3387
|
-
className:
|
|
3393
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3388
3394
|
"bg-background relative flex w-full flex-1 flex-col",
|
|
3389
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",
|
|
3390
3396
|
className
|
|
@@ -3400,7 +3406,7 @@ function SidebarInput({ className, ...props }) {
|
|
|
3400
3406
|
{
|
|
3401
3407
|
"data-slot": "sidebar-input",
|
|
3402
3408
|
"data-sidebar": "input",
|
|
3403
|
-
className:
|
|
3409
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "bg-background h-8 w-full shadow-none", className),
|
|
3404
3410
|
...props
|
|
3405
3411
|
}
|
|
3406
3412
|
);
|
|
@@ -3412,7 +3418,7 @@ function SidebarHeader({ className, ...props }) {
|
|
|
3412
3418
|
{
|
|
3413
3419
|
"data-slot": "sidebar-header",
|
|
3414
3420
|
"data-sidebar": "header",
|
|
3415
|
-
className:
|
|
3421
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "flex flex-col gap-2 p-2", className),
|
|
3416
3422
|
...props
|
|
3417
3423
|
}
|
|
3418
3424
|
);
|
|
@@ -3424,7 +3430,7 @@ function SidebarFooter({ className, ...props }) {
|
|
|
3424
3430
|
{
|
|
3425
3431
|
"data-slot": "sidebar-footer",
|
|
3426
3432
|
"data-sidebar": "footer",
|
|
3427
|
-
className:
|
|
3433
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "flex flex-col gap-2 p-2", className),
|
|
3428
3434
|
...props
|
|
3429
3435
|
}
|
|
3430
3436
|
);
|
|
@@ -3436,7 +3442,7 @@ function SidebarSeparator({ className, ...props }) {
|
|
|
3436
3442
|
{
|
|
3437
3443
|
"data-slot": "sidebar-separator",
|
|
3438
3444
|
"data-sidebar": "separator",
|
|
3439
|
-
className:
|
|
3445
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "bg-sidebar-border mx-2 w-auto", className),
|
|
3440
3446
|
...props
|
|
3441
3447
|
}
|
|
3442
3448
|
);
|
|
@@ -3448,7 +3454,7 @@ function SidebarContent({ className, ...props }) {
|
|
|
3448
3454
|
{
|
|
3449
3455
|
"data-slot": "sidebar-content",
|
|
3450
3456
|
"data-sidebar": "content",
|
|
3451
|
-
className:
|
|
3457
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3452
3458
|
"flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
3453
3459
|
className
|
|
3454
3460
|
),
|
|
@@ -3463,7 +3469,7 @@ function SidebarGroup({ className, ...props }) {
|
|
|
3463
3469
|
{
|
|
3464
3470
|
"data-slot": "sidebar-group",
|
|
3465
3471
|
"data-sidebar": "group",
|
|
3466
|
-
className:
|
|
3472
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "relative flex w-full min-w-0 flex-col p-2", className),
|
|
3467
3473
|
...props
|
|
3468
3474
|
}
|
|
3469
3475
|
);
|
|
@@ -3480,7 +3486,7 @@ function SidebarGroupLabel({
|
|
|
3480
3486
|
{
|
|
3481
3487
|
"data-slot": "sidebar-group-label",
|
|
3482
3488
|
"data-sidebar": "group-label",
|
|
3483
|
-
className:
|
|
3489
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3484
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",
|
|
3485
3491
|
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
3486
3492
|
className
|
|
@@ -3501,7 +3507,7 @@ function SidebarGroupAction({
|
|
|
3501
3507
|
{
|
|
3502
3508
|
"data-slot": "sidebar-group-action",
|
|
3503
3509
|
"data-sidebar": "group-action",
|
|
3504
|
-
className:
|
|
3510
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3505
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",
|
|
3506
3512
|
// Increases the hit area of the button on mobile.
|
|
3507
3513
|
"after:absolute after:-inset-2 md:after:hidden",
|
|
@@ -3519,7 +3525,7 @@ function SidebarGroupContent({ className, ...props }) {
|
|
|
3519
3525
|
{
|
|
3520
3526
|
"data-slot": "sidebar-group-content",
|
|
3521
3527
|
"data-sidebar": "group-content",
|
|
3522
|
-
className:
|
|
3528
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "w-full text-sm", className),
|
|
3523
3529
|
...props
|
|
3524
3530
|
}
|
|
3525
3531
|
);
|
|
@@ -3531,7 +3537,7 @@ function SidebarMenu({ className, ...props }) {
|
|
|
3531
3537
|
{
|
|
3532
3538
|
"data-slot": "sidebar-menu",
|
|
3533
3539
|
"data-sidebar": "menu",
|
|
3534
|
-
className:
|
|
3540
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "flex w-full min-w-0 flex-col gap-1", className),
|
|
3535
3541
|
...props
|
|
3536
3542
|
}
|
|
3537
3543
|
);
|
|
@@ -3543,7 +3549,7 @@ function SidebarMenuItem({ className, ...props }) {
|
|
|
3543
3549
|
{
|
|
3544
3550
|
"data-slot": "sidebar-menu-item",
|
|
3545
3551
|
"data-sidebar": "menu-item",
|
|
3546
|
-
className:
|
|
3552
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "group/menu-item relative", className),
|
|
3547
3553
|
...props
|
|
3548
3554
|
}
|
|
3549
3555
|
);
|
|
@@ -3587,7 +3593,7 @@ function SidebarMenuButton({
|
|
|
3587
3593
|
"data-sidebar": "menu-button",
|
|
3588
3594
|
"data-size": size,
|
|
3589
3595
|
"data-active": isActive,
|
|
3590
|
-
className:
|
|
3596
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, sidebarMenuButtonVariants({ variant, size }), className),
|
|
3591
3597
|
...props
|
|
3592
3598
|
}
|
|
3593
3599
|
);
|
|
@@ -3617,7 +3623,7 @@ function SidebarMenuAction({
|
|
|
3617
3623
|
{
|
|
3618
3624
|
"data-slot": "sidebar-menu-action",
|
|
3619
3625
|
"data-sidebar": "menu-action",
|
|
3620
|
-
className:
|
|
3626
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3621
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",
|
|
3622
3628
|
// Increases the hit area of the button on mobile.
|
|
3623
3629
|
"after:absolute after:-inset-2 md:after:hidden",
|
|
@@ -3639,7 +3645,7 @@ function SidebarMenuBadge({ className, ...props }) {
|
|
|
3639
3645
|
{
|
|
3640
3646
|
"data-slot": "sidebar-menu-badge",
|
|
3641
3647
|
"data-sidebar": "menu-badge",
|
|
3642
|
-
className:
|
|
3648
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3643
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",
|
|
3644
3650
|
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
|
|
3645
3651
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
@@ -3666,7 +3672,7 @@ function SidebarMenuSkeleton({
|
|
|
3666
3672
|
{
|
|
3667
3673
|
"data-slot": "sidebar-menu-skeleton",
|
|
3668
3674
|
"data-sidebar": "menu-skeleton",
|
|
3669
|
-
className:
|
|
3675
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
3670
3676
|
...props,
|
|
3671
3677
|
children: [
|
|
3672
3678
|
showIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" }),
|
|
@@ -3691,7 +3697,7 @@ function SidebarMenuSub({ className, ...props }) {
|
|
|
3691
3697
|
{
|
|
3692
3698
|
"data-slot": "sidebar-menu-sub",
|
|
3693
3699
|
"data-sidebar": "menu-sub",
|
|
3694
|
-
className:
|
|
3700
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3695
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",
|
|
3696
3702
|
"group-data-[collapsible=icon]:hidden",
|
|
3697
3703
|
className
|
|
@@ -3707,7 +3713,7 @@ function SidebarMenuSubItem({ className, ...props }) {
|
|
|
3707
3713
|
{
|
|
3708
3714
|
"data-slot": "sidebar-menu-sub-item",
|
|
3709
3715
|
"data-sidebar": "menu-sub-item",
|
|
3710
|
-
className:
|
|
3716
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "group/menu-sub-item relative", className),
|
|
3711
3717
|
...props
|
|
3712
3718
|
}
|
|
3713
3719
|
);
|
|
@@ -3728,7 +3734,7 @@ function SidebarMenuSubButton({
|
|
|
3728
3734
|
"data-sidebar": "menu-sub-button",
|
|
3729
3735
|
"data-size": size,
|
|
3730
3736
|
"data-active": isActive,
|
|
3731
|
-
className:
|
|
3737
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3732
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",
|
|
3733
3739
|
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
|
3734
3740
|
size === "sm" && "text-xs",
|
|
@@ -3750,7 +3756,7 @@ var Slider = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
3750
3756
|
SliderPrimitive.Root,
|
|
3751
3757
|
{
|
|
3752
3758
|
ref,
|
|
3753
|
-
className:
|
|
3759
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "relative flex w-full touch-none select-none items-center", className),
|
|
3754
3760
|
...props,
|
|
3755
3761
|
children: [
|
|
3756
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" }) }),
|
|
@@ -3788,7 +3794,7 @@ var _reactswitch = require('@radix-ui/react-switch'); var SwitchPrimitives = _in
|
|
|
3788
3794
|
var Switch = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3789
3795
|
SwitchPrimitives.Root,
|
|
3790
3796
|
{
|
|
3791
|
-
className:
|
|
3797
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3792
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",
|
|
3793
3799
|
className
|
|
3794
3800
|
),
|
|
@@ -3797,7 +3803,7 @@ var Switch = React26.forwardRef(({ className, children, ...props }, ref) => /* @
|
|
|
3797
3803
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3798
3804
|
SwitchPrimitives.Thumb,
|
|
3799
3805
|
{
|
|
3800
|
-
className:
|
|
3806
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3801
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"
|
|
3802
3808
|
),
|
|
3803
3809
|
children
|
|
@@ -3814,18 +3820,18 @@ var Table = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
3814
3820
|
"table",
|
|
3815
3821
|
{
|
|
3816
3822
|
ref,
|
|
3817
|
-
className:
|
|
3823
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "w-full caption-bottom text-sm", className),
|
|
3818
3824
|
...props
|
|
3819
3825
|
}
|
|
3820
3826
|
) }));
|
|
3821
3827
|
Table.displayName = "Table";
|
|
3822
|
-
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: _chunk3HL4VFJ4js.cn.call(void 0, "[&_tr]:border-b", className), ...props }));
|
|
3823
3829
|
TableHeader.displayName = "TableHeader";
|
|
3824
3830
|
var TableBody = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3825
3831
|
"tbody",
|
|
3826
3832
|
{
|
|
3827
3833
|
ref,
|
|
3828
|
-
className:
|
|
3834
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "[&_tr:last-child]:border-0", className),
|
|
3829
3835
|
...props
|
|
3830
3836
|
}
|
|
3831
3837
|
));
|
|
@@ -3834,7 +3840,7 @@ var TableFooter = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3834
3840
|
"tfoot",
|
|
3835
3841
|
{
|
|
3836
3842
|
ref,
|
|
3837
|
-
className:
|
|
3843
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3838
3844
|
"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
|
|
3839
3845
|
className
|
|
3840
3846
|
),
|
|
@@ -3846,7 +3852,7 @@ var TableRow = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
3846
3852
|
"tr",
|
|
3847
3853
|
{
|
|
3848
3854
|
ref,
|
|
3849
|
-
className:
|
|
3855
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3850
3856
|
"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
|
|
3851
3857
|
className
|
|
3852
3858
|
),
|
|
@@ -3858,7 +3864,7 @@ var TableHead = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
3858
3864
|
"th",
|
|
3859
3865
|
{
|
|
3860
3866
|
ref,
|
|
3861
|
-
className:
|
|
3867
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3862
3868
|
"h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
3863
3869
|
className
|
|
3864
3870
|
),
|
|
@@ -3870,7 +3876,7 @@ var TableCell = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
3870
3876
|
"td",
|
|
3871
3877
|
{
|
|
3872
3878
|
ref,
|
|
3873
|
-
className:
|
|
3879
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3874
3880
|
"p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
3875
3881
|
className
|
|
3876
3882
|
),
|
|
@@ -3882,7 +3888,7 @@ var TableCaption = React27.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3882
3888
|
"caption",
|
|
3883
3889
|
{
|
|
3884
3890
|
ref,
|
|
3885
|
-
className:
|
|
3891
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "mt-4 text-sm text-muted-foreground", className),
|
|
3886
3892
|
...props
|
|
3887
3893
|
}
|
|
3888
3894
|
));
|
|
@@ -3897,7 +3903,7 @@ var TabsList = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
3897
3903
|
TabsPrimitive.List,
|
|
3898
3904
|
{
|
|
3899
3905
|
ref,
|
|
3900
|
-
className:
|
|
3906
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3901
3907
|
"inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
|
|
3902
3908
|
className
|
|
3903
3909
|
),
|
|
@@ -3909,7 +3915,7 @@ var TabsTrigger = React28.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3909
3915
|
TabsPrimitive.Trigger,
|
|
3910
3916
|
{
|
|
3911
3917
|
ref,
|
|
3912
|
-
className:
|
|
3918
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3913
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",
|
|
3914
3920
|
className
|
|
3915
3921
|
),
|
|
@@ -3921,7 +3927,7 @@ var TabsContent = React28.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3921
3927
|
TabsPrimitive.Content,
|
|
3922
3928
|
{
|
|
3923
3929
|
ref,
|
|
3924
|
-
className:
|
|
3930
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3925
3931
|
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
3926
3932
|
className
|
|
3927
3933
|
),
|
|
@@ -3938,7 +3944,7 @@ var Textarea = React29.forwardRef(
|
|
|
3938
3944
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3939
3945
|
"textarea",
|
|
3940
3946
|
{
|
|
3941
|
-
className:
|
|
3947
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
3942
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",
|
|
3943
3949
|
className
|
|
3944
3950
|
),
|
|
@@ -3975,7 +3981,7 @@ var toggleVariants = _classvarianceauthority.cva.call(void 0,
|
|
|
3975
3981
|
}
|
|
3976
3982
|
}
|
|
3977
3983
|
);
|
|
3978
|
-
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: _chunk3HL4VFJ4js.cn.call(void 0, toggleVariants({ variant, size, className })), ...props }));
|
|
3979
3985
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
3980
3986
|
|
|
3981
3987
|
// src/shadcnui/custom/kanban.tsx
|
|
@@ -4440,7 +4446,7 @@ var KanbanBoard = React31.forwardRef((props, forwardedRef) => {
|
|
|
4440
4446
|
"data-slot": "kanban-board",
|
|
4441
4447
|
...boardProps,
|
|
4442
4448
|
ref: forwardedRef,
|
|
4443
|
-
className:
|
|
4449
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
4444
4450
|
"flex size-full gap-4",
|
|
4445
4451
|
context.orientation === "horizontal" ? "flex-row" : "flex-col",
|
|
4446
4452
|
className
|
|
@@ -4479,7 +4485,7 @@ var KanbanColumn = React31.forwardRef((props, forwardedRef) => {
|
|
|
4479
4485
|
disabled,
|
|
4480
4486
|
animateLayoutChanges
|
|
4481
4487
|
});
|
|
4482
|
-
const composedRef =
|
|
4488
|
+
const composedRef = _chunk3HL4VFJ4js.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
4483
4489
|
if (disabled) return;
|
|
4484
4490
|
setNodeRef(node);
|
|
4485
4491
|
});
|
|
@@ -4523,7 +4529,7 @@ var KanbanColumn = React31.forwardRef((props, forwardedRef) => {
|
|
|
4523
4529
|
...asHandle && !disabled ? listeners : {},
|
|
4524
4530
|
ref: composedRef,
|
|
4525
4531
|
style: composedStyle,
|
|
4526
|
-
className:
|
|
4532
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
4527
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",
|
|
4528
4534
|
{
|
|
4529
4535
|
"touch-none select-none": asHandle,
|
|
@@ -4546,7 +4552,7 @@ var KanbanColumnHandle = React31.forwardRef((props, forwardedRef) => {
|
|
|
4546
4552
|
const context = useKanbanContext(COLUMN_NAME);
|
|
4547
4553
|
const columnContext = useKanbanColumnContext(COLUMN_HANDLE_NAME);
|
|
4548
4554
|
const isDisabled = _nullishCoalesce(disabled, () => ( columnContext.disabled));
|
|
4549
|
-
const composedRef =
|
|
4555
|
+
const composedRef = _chunk3HL4VFJ4js.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
4550
4556
|
if (isDisabled) return;
|
|
4551
4557
|
columnContext.setActivatorNodeRef(node);
|
|
4552
4558
|
});
|
|
@@ -4563,7 +4569,7 @@ var KanbanColumnHandle = React31.forwardRef((props, forwardedRef) => {
|
|
|
4563
4569
|
...isDisabled ? {} : columnContext.attributes,
|
|
4564
4570
|
...isDisabled ? {} : columnContext.listeners,
|
|
4565
4571
|
ref: composedRef,
|
|
4566
|
-
className:
|
|
4572
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
4567
4573
|
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
4568
4574
|
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
4569
4575
|
className
|
|
@@ -4599,7 +4605,7 @@ var KanbanItem = React31.forwardRef((props, forwardedRef) => {
|
|
|
4599
4605
|
if (value === "") {
|
|
4600
4606
|
throw new Error(`\`${ITEM_NAME}\` value cannot be an empty string`);
|
|
4601
4607
|
}
|
|
4602
|
-
const composedRef =
|
|
4608
|
+
const composedRef = _chunk3HL4VFJ4js.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
4603
4609
|
if (disabled) return;
|
|
4604
4610
|
setNodeRef(node);
|
|
4605
4611
|
});
|
|
@@ -4634,7 +4640,7 @@ var KanbanItem = React31.forwardRef((props, forwardedRef) => {
|
|
|
4634
4640
|
...asHandle && !disabled ? listeners : {},
|
|
4635
4641
|
ref: composedRef,
|
|
4636
4642
|
style: composedStyle,
|
|
4637
|
-
className:
|
|
4643
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
4638
4644
|
"focus-visible:ring-ring focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden",
|
|
4639
4645
|
{
|
|
4640
4646
|
"touch-none select-none": asHandle,
|
|
@@ -4655,7 +4661,7 @@ var KanbanItemHandle = React31.forwardRef((props, forwardedRef) => {
|
|
|
4655
4661
|
const context = useKanbanContext(ITEM_HANDLE_NAME);
|
|
4656
4662
|
const itemContext = useKanbanItemContext(ITEM_HANDLE_NAME);
|
|
4657
4663
|
const isDisabled = _nullishCoalesce(disabled, () => ( itemContext.disabled));
|
|
4658
|
-
const composedRef =
|
|
4664
|
+
const composedRef = _chunk3HL4VFJ4js.useComposedRefs.call(void 0, forwardedRef, (node) => {
|
|
4659
4665
|
if (isDisabled) return;
|
|
4660
4666
|
itemContext.setActivatorNodeRef(node);
|
|
4661
4667
|
});
|
|
@@ -4672,7 +4678,7 @@ var KanbanItemHandle = React31.forwardRef((props, forwardedRef) => {
|
|
|
4672
4678
|
...isDisabled ? {} : itemContext.attributes,
|
|
4673
4679
|
...isDisabled ? {} : itemContext.listeners,
|
|
4674
4680
|
ref: composedRef,
|
|
4675
|
-
className:
|
|
4681
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
4676
4682
|
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
4677
4683
|
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
4678
4684
|
className
|
|
@@ -4707,7 +4713,7 @@ function KanbanOverlay(props) {
|
|
|
4707
4713
|
{
|
|
4708
4714
|
dropAnimation,
|
|
4709
4715
|
modifiers: context.modifiers,
|
|
4710
|
-
className:
|
|
4716
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, !context.flatCursor && "cursor-grabbing"),
|
|
4711
4717
|
...overlayProps,
|
|
4712
4718
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, KanbanOverlayContext.Provider, { value: true, children: context.activeId && children ? typeof children === "function" ? children({
|
|
4713
4719
|
value: context.activeId,
|
|
@@ -4725,7 +4731,7 @@ var _link = require('next/link'); var _link2 = _interopRequireDefault(_link);
|
|
|
4725
4731
|
|
|
4726
4732
|
|
|
4727
4733
|
var Link2 = React32.forwardRef(({ className, ...props }, ref) => {
|
|
4728
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { ref, className:
|
|
4734
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { ref, className: _chunk3HL4VFJ4js.cn.call(void 0, `font-medium`, className), ...props });
|
|
4729
4735
|
});
|
|
4730
4736
|
Link2.displayName = "Link";
|
|
4731
4737
|
|
|
@@ -4824,7 +4830,7 @@ var MultiSelect = React33.forwardRef(
|
|
|
4824
4830
|
ref,
|
|
4825
4831
|
...props,
|
|
4826
4832
|
onClick: handleTogglePopover,
|
|
4827
|
-
className:
|
|
4833
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
4828
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",
|
|
4829
4835
|
className
|
|
4830
4836
|
),
|
|
@@ -4836,7 +4842,7 @@ var MultiSelect = React33.forwardRef(
|
|
|
4836
4842
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4837
4843
|
Badge,
|
|
4838
4844
|
{
|
|
4839
|
-
className:
|
|
4845
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, isAnimating ? "animate-bounce" : "", multiSelectVariants({ variant })),
|
|
4840
4846
|
style: { animationDuration: `${animation}s` },
|
|
4841
4847
|
children: [
|
|
4842
4848
|
IconComponent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: "mr-2 h-4 w-4" }),
|
|
@@ -4859,7 +4865,7 @@ var MultiSelect = React33.forwardRef(
|
|
|
4859
4865
|
selectedValues.length > maxCount && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4860
4866
|
Badge,
|
|
4861
4867
|
{
|
|
4862
|
-
className:
|
|
4868
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
4863
4869
|
"text-foreground border-foreground/1 bg-transparent hover:bg-transparent",
|
|
4864
4870
|
isAnimating ? "animate-bounce" : "",
|
|
4865
4871
|
multiSelectVariants({ variant })
|
|
@@ -4918,7 +4924,7 @@ var MultiSelect = React33.forwardRef(
|
|
|
4918
4924
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4919
4925
|
"div",
|
|
4920
4926
|
{
|
|
4921
|
-
className:
|
|
4927
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
4922
4928
|
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
4923
4929
|
selectedValues.length === options.length ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
4924
4930
|
),
|
|
@@ -4938,7 +4944,7 @@ var MultiSelect = React33.forwardRef(
|
|
|
4938
4944
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4939
4945
|
"div",
|
|
4940
4946
|
{
|
|
4941
|
-
className:
|
|
4947
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
4942
4948
|
"border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
4943
4949
|
isSelected ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
4944
4950
|
),
|
|
@@ -4973,7 +4979,7 @@ var MultiSelect = React33.forwardRef(
|
|
|
4973
4979
|
animation > 0 && selectedValues.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4974
4980
|
_lucidereact.WandSparkles,
|
|
4975
4981
|
{
|
|
4976
|
-
className:
|
|
4982
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
4977
4983
|
"text-foreground bg-background my-2 h-3 w-3 cursor-pointer",
|
|
4978
4984
|
isAnimating ? "" : "text-muted-foreground"
|
|
4979
4985
|
),
|
|
@@ -5061,8 +5067,8 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
5061
5067
|
CommonDeleter,
|
|
5062
5068
|
{
|
|
5063
5069
|
type: `users`,
|
|
5064
|
-
deleteFunction: () =>
|
|
5065
|
-
() => onDeleted ? onDeleted() : router.push(generateUrl({ page:
|
|
5070
|
+
deleteFunction: () => _chunk3HL4VFJ4js.UserService.delete({ userId: user.id, companyId: cId }).then(
|
|
5071
|
+
() => onDeleted ? onDeleted() : router.push(generateUrl({ page: _chunk3HL4VFJ4js.Modules.User }))
|
|
5066
5072
|
)
|
|
5067
5073
|
}
|
|
5068
5074
|
);
|
|
@@ -5070,7 +5076,7 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
5070
5076
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleterInternal, "UserDeleterInternal");
|
|
5071
5077
|
function UserDeleter(props) {
|
|
5072
5078
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
5073
|
-
if (!hasPermissionToModule({ module:
|
|
5079
|
+
if (!hasPermissionToModule({ module: _chunk3HL4VFJ4js.Modules.User, action: "delete" /* Delete */, data: props.user })) return null;
|
|
5074
5080
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserDeleterInternal, { ...props });
|
|
5075
5081
|
}
|
|
5076
5082
|
_chunk7QVYU63Ejs.__name.call(void 0, UserDeleter, "UserDeleter");
|
|
@@ -5134,7 +5140,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
5134
5140
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
5135
5141
|
if (!user) {
|
|
5136
5142
|
try {
|
|
5137
|
-
const existingUser = await
|
|
5143
|
+
const existingUser = await _chunk3HL4VFJ4js.UserService.findByEmail({ email: values.email });
|
|
5138
5144
|
if (existingUser) {
|
|
5139
5145
|
form.setError("email", {
|
|
5140
5146
|
type: "manual",
|
|
@@ -5147,7 +5153,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
5147
5153
|
}
|
|
5148
5154
|
}
|
|
5149
5155
|
if (values.avatar && contentType) {
|
|
5150
|
-
const s3 = await
|
|
5156
|
+
const s3 = await _chunk3HL4VFJ4js.S3Service.getPreSignedUrl({
|
|
5151
5157
|
key: values.avatar,
|
|
5152
5158
|
contentType,
|
|
5153
5159
|
isPublic: true
|
|
@@ -5173,16 +5179,16 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
5173
5179
|
adminCreated
|
|
5174
5180
|
};
|
|
5175
5181
|
try {
|
|
5176
|
-
const updatedUser = user ? await
|
|
5182
|
+
const updatedUser = user ? await _chunk3HL4VFJ4js.UserService.update(payload) : await _chunk3HL4VFJ4js.UserService.create(payload);
|
|
5177
5183
|
if (_optionalChain([currentUser, 'optionalAccess', _132 => _132.id]) === updatedUser.id) setUser(updatedUser);
|
|
5178
5184
|
if (onRevalidate) {
|
|
5179
|
-
await onRevalidate(generateUrl({ page:
|
|
5185
|
+
await onRevalidate(generateUrl({ page: _chunk3HL4VFJ4js.Modules.User, id: updatedUser.id, language: `[locale]` }));
|
|
5180
5186
|
}
|
|
5181
5187
|
if (propagateChanges) {
|
|
5182
5188
|
propagateChanges(updatedUser);
|
|
5183
5189
|
setOpen(false);
|
|
5184
5190
|
} else {
|
|
5185
|
-
router.push(generateUrl({ page:
|
|
5191
|
+
router.push(generateUrl({ page: _chunk3HL4VFJ4js.Modules.User, id: updatedUser.id }));
|
|
5186
5192
|
}
|
|
5187
5193
|
} catch (error) {
|
|
5188
5194
|
errorToast({ title: user ? t(`generic.errors.update`) : t(`generic.errors.create`), error });
|
|
@@ -5190,7 +5196,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
5190
5196
|
}, "onSubmit");
|
|
5191
5197
|
_react.useEffect.call(void 0, () => {
|
|
5192
5198
|
async function fetchRoles() {
|
|
5193
|
-
const roles2 = await
|
|
5199
|
+
const roles2 = await _chunk3HL4VFJ4js.RoleService.findAllRoles({});
|
|
5194
5200
|
const availableRoles = roles2.filter(
|
|
5195
5201
|
(role) => role.id !== _chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _133 => _133.features, 'access', _134 => _134.some, 'call', _135 => _135((feature) => feature.id === _optionalChain([role, 'access', _136 => _136.requiredFeature, 'optionalAccess', _137 => _137.id]))]))
|
|
5196
5202
|
);
|
|
@@ -5218,7 +5224,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
5218
5224
|
setContentType(null);
|
|
5219
5225
|
}
|
|
5220
5226
|
}, [file]);
|
|
5221
|
-
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _141 => _141.id]) === _optionalChain([user, 'optionalAccess', _142 => _142.id]) && hasRole(_chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module:
|
|
5227
|
+
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _141 => _141.id]) === _optionalChain([user, 'optionalAccess', _142 => _142.id]) && hasRole(_chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunk3HL4VFJ4js.Modules.User, action: "update" /* Update */ }) || hasRole(_chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator));
|
|
5222
5228
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
5223
5229
|
trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTrigger, { asChild: true, children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!user }),
|
|
5224
5230
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -5335,7 +5341,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserEditorInternal, "UserEditorInternal");
|
|
|
5335
5341
|
function UserEditor(props) {
|
|
5336
5342
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
5337
5343
|
if (!hasPermissionToModule({
|
|
5338
|
-
module:
|
|
5344
|
+
module: _chunk3HL4VFJ4js.Modules.User,
|
|
5339
5345
|
action: props.user ? "update" /* Update */ : "create" /* Create */,
|
|
5340
5346
|
data: props.user
|
|
5341
5347
|
}))
|
|
@@ -5374,10 +5380,10 @@ function UserMultiSelect({
|
|
|
5374
5380
|
const data = useDataListRetriever({
|
|
5375
5381
|
ready: !!company,
|
|
5376
5382
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
5377
|
-
return
|
|
5383
|
+
return _chunk3HL4VFJ4js.UserService.findAllUsers(params);
|
|
5378
5384
|
}, "retriever"),
|
|
5379
5385
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _149 => _149.id]) },
|
|
5380
|
-
module:
|
|
5386
|
+
module: _chunk3HL4VFJ4js.Modules.User
|
|
5381
5387
|
});
|
|
5382
5388
|
_react.useEffect.call(void 0, () => {
|
|
5383
5389
|
if (company) data.setReady(true);
|
|
@@ -5488,7 +5494,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
5488
5494
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
5489
5495
|
const reactivateUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
5490
5496
|
try {
|
|
5491
|
-
const updatedUser = await
|
|
5497
|
+
const updatedUser = await _chunk3HL4VFJ4js.UserService.reactivate({ userId: user.id });
|
|
5492
5498
|
setOpen(false);
|
|
5493
5499
|
propagateChanges(updatedUser);
|
|
5494
5500
|
} catch (error) {
|
|
@@ -5526,7 +5532,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
|
|
|
5526
5532
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivatorInterface, "UserReactivatorInterface");
|
|
5527
5533
|
function UserReactivator(props) {
|
|
5528
5534
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
5529
|
-
if (!hasPermissionToModule({ module:
|
|
5535
|
+
if (!hasPermissionToModule({ module: _chunk3HL4VFJ4js.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
5530
5536
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserReactivatorInterface, { ...props });
|
|
5531
5537
|
}
|
|
5532
5538
|
_chunk7QVYU63Ejs.__name.call(void 0, UserReactivator, "UserReactivator");
|
|
@@ -5542,7 +5548,7 @@ function UserResentInvitationEmailInternal({ user }) {
|
|
|
5542
5548
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
5543
5549
|
const sendInvitationEmail = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
5544
5550
|
try {
|
|
5545
|
-
await
|
|
5551
|
+
await _chunk3HL4VFJ4js.UserService.sendInvitation({ userId: user.id, companyId: user.company.id });
|
|
5546
5552
|
setOpen(false);
|
|
5547
5553
|
_sonner.toast.message(t(`foundations.user.resend_activation.email_sent`), {
|
|
5548
5554
|
description: t(`foundations.user.resend_activation.email_sent_description`, { email: user.email })
|
|
@@ -5582,7 +5588,7 @@ function UserResentInvitationEmailInternal({ user }) {
|
|
|
5582
5588
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmailInternal, "UserResentInvitationEmailInternal");
|
|
5583
5589
|
function UserResentInvitationEmail(props) {
|
|
5584
5590
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
5585
|
-
if (!hasPermissionToModule({ module:
|
|
5591
|
+
if (!hasPermissionToModule({ module: _chunk3HL4VFJ4js.Modules.User, action: "update" /* Update */, data: props.user })) return null;
|
|
5586
5592
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserResentInvitationEmailInternal, { ...props });
|
|
5587
5593
|
}
|
|
5588
5594
|
_chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmail, "UserResentInvitationEmail");
|
|
@@ -5614,22 +5620,22 @@ function UserAvatar({ user, className, showFull, showLink }) {
|
|
|
5614
5620
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
|
|
5615
5621
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { asChild: true, children: showLink === false ? (
|
|
5616
5622
|
// If showLink is explicitly false, never show a link
|
|
5617
|
-
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
5623
|
+
showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className), children: [
|
|
5618
5624
|
getAvatar(),
|
|
5619
5625
|
user.name
|
|
5620
5626
|
] }) : getAvatar()
|
|
5621
5627
|
) : showFull ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5622
5628
|
Link2,
|
|
5623
5629
|
{
|
|
5624
|
-
href: generateUrl({ page:
|
|
5625
|
-
className:
|
|
5630
|
+
href: generateUrl({ page: _chunk3HL4VFJ4js.Modules.User, id: user.id }),
|
|
5631
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className),
|
|
5626
5632
|
onClick: (e) => e.stopPropagation(),
|
|
5627
5633
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center gap-x-2", children: [
|
|
5628
5634
|
getAvatar(),
|
|
5629
5635
|
user.name
|
|
5630
5636
|
] })
|
|
5631
5637
|
}
|
|
5632
|
-
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link2, { href: generateUrl({ page:
|
|
5638
|
+
) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link2, { href: generateUrl({ page: _chunk3HL4VFJ4js.Modules.User, id: user.id }), className, children: getAvatar() }) : getAvatar() }),
|
|
5633
5639
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: user.name })
|
|
5634
5640
|
] });
|
|
5635
5641
|
}
|
|
@@ -5645,10 +5651,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
5645
5651
|
const [isSearching, setIsSearching] = _react.useState.call(void 0, false);
|
|
5646
5652
|
const data = useDataListRetriever({
|
|
5647
5653
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
5648
|
-
return
|
|
5654
|
+
return _chunk3HL4VFJ4js.UserService.findMany(params);
|
|
5649
5655
|
}, "retriever"),
|
|
5650
5656
|
retrieverParams: {},
|
|
5651
|
-
module:
|
|
5657
|
+
module: _chunk3HL4VFJ4js.Modules.User
|
|
5652
5658
|
});
|
|
5653
5659
|
const search = _react.useCallback.call(void 0,
|
|
5654
5660
|
async (searchedTerm) => {
|
|
@@ -5753,24 +5759,24 @@ var UserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
5753
5759
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
5754
5760
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
5755
5761
|
const [user, setUser] = _react.useState.call(void 0,
|
|
5756
|
-
dehydratedUser ?
|
|
5762
|
+
dehydratedUser ? _chunk3HL4VFJ4js.rehydrate.call(void 0, _chunk3HL4VFJ4js.Modules.User, dehydratedUser) : void 0
|
|
5757
5763
|
);
|
|
5758
5764
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
5759
5765
|
const response = [];
|
|
5760
|
-
if (hasPermissionToModule({ module:
|
|
5766
|
+
if (hasPermissionToModule({ module: _chunk3HL4VFJ4js.Modules.User, action: "update" /* Update */ })) {
|
|
5761
5767
|
response.push({
|
|
5762
5768
|
name: t(`generic.settings`),
|
|
5763
5769
|
href: generateUrl({ page: `/settings` })
|
|
5764
5770
|
});
|
|
5765
5771
|
response.push({
|
|
5766
5772
|
name: t(`types.users`, { count: 2 }),
|
|
5767
|
-
href: generateUrl({ page: `/settings`, id:
|
|
5773
|
+
href: generateUrl({ page: `/settings`, id: _chunk3HL4VFJ4js.Modules.User.pageUrl })
|
|
5768
5774
|
});
|
|
5769
5775
|
}
|
|
5770
5776
|
if (user)
|
|
5771
5777
|
response.push({
|
|
5772
5778
|
name: `${user.name}${user.isDeleted ? ` (${t(`foundations.user.deleted`)})` : ""}`,
|
|
5773
|
-
href: generateUrl({ page:
|
|
5779
|
+
href: generateUrl({ page: _chunk3HL4VFJ4js.Modules.User, id: user.id })
|
|
5774
5780
|
});
|
|
5775
5781
|
return response;
|
|
5776
5782
|
}, "breadcrumb");
|
|
@@ -5825,7 +5831,7 @@ function UserDetails({ user }) {
|
|
|
5825
5831
|
const { title } = useSharedContext();
|
|
5826
5832
|
let roles = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
5827
5833
|
if (user.roles && user.roles.length > 0) {
|
|
5828
|
-
roles = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-4 w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: user.roles.map((role, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link2, { href: generateUrl({ page:
|
|
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: _chunk3HL4VFJ4js.Modules.Role, id: role.id }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { className: "mr-2", variant: `default`, children: t(`foundations.role.roles`, { role: role.id.replaceAll(`-`, ``) }) }) }, role.id)) }) });
|
|
5829
5835
|
}
|
|
5830
5836
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
|
|
5831
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,
|
|
@@ -5892,18 +5898,18 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserIndexContainer, "UserIndexContainer");
|
|
|
5892
5898
|
function UsersListContainerInternal() {
|
|
5893
5899
|
const { hasPermissionToModule } = useCurrentUserContext();
|
|
5894
5900
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
5895
|
-
if (!hasPermissionToModule({ module:
|
|
5901
|
+
if (!hasPermissionToModule({ module: _chunk3HL4VFJ4js.Modules.User, action: "delete" /* Delete */ })) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {});
|
|
5896
5902
|
const tabs = [
|
|
5897
5903
|
{
|
|
5898
5904
|
label: t(`types.users`, { count: 2 }),
|
|
5899
5905
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {}),
|
|
5900
|
-
modules: [
|
|
5906
|
+
modules: [_chunk3HL4VFJ4js.Modules.Company],
|
|
5901
5907
|
action: "read" /* Read */
|
|
5902
5908
|
},
|
|
5903
5909
|
{
|
|
5904
5910
|
label: t(`foundations.user.deleted`),
|
|
5905
5911
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, { isDeleted: true }),
|
|
5906
|
-
modules: [
|
|
5912
|
+
modules: [_chunk3HL4VFJ4js.Modules.Company],
|
|
5907
5913
|
action: "update" /* Update */
|
|
5908
5914
|
}
|
|
5909
5915
|
];
|
|
@@ -5921,9 +5927,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersListContainer, "UsersListContainer");
|
|
|
5921
5927
|
function AdminUsersListInternal({ company }) {
|
|
5922
5928
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
5923
5929
|
const data = useDataListRetriever({
|
|
5924
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
5930
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.UserService.findManyForAmin(params), "retriever"),
|
|
5925
5931
|
retrieverParams: { companyId: company.id },
|
|
5926
|
-
module:
|
|
5932
|
+
module: _chunk3HL4VFJ4js.Modules.User
|
|
5927
5933
|
});
|
|
5928
5934
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5929
5935
|
ContentListTable,
|
|
@@ -5931,7 +5937,7 @@ function AdminUsersListInternal({ company }) {
|
|
|
5931
5937
|
title: t(`types.users`, { count: 2 }),
|
|
5932
5938
|
data,
|
|
5933
5939
|
fields: ["name" /* name */, "email" /* email */, "createdAt" /* createdAt */],
|
|
5934
|
-
tableGeneratorType:
|
|
5940
|
+
tableGeneratorType: _chunk3HL4VFJ4js.Modules.User,
|
|
5935
5941
|
functions: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserEditor, { propagateChanges: data.refresh, adminCreated: true })
|
|
5936
5942
|
}
|
|
5937
5943
|
);
|
|
@@ -5953,9 +5959,9 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
5953
5959
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
5954
5960
|
const data = useDataListRetriever({
|
|
5955
5961
|
ready: !!company,
|
|
5956
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
5962
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.UserService.findAllUsers(params), "retriever"),
|
|
5957
5963
|
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _168 => _168.id]), isDeleted },
|
|
5958
|
-
module:
|
|
5964
|
+
module: _chunk3HL4VFJ4js.Modules.User
|
|
5959
5965
|
});
|
|
5960
5966
|
_react.useEffect.call(void 0, () => {
|
|
5961
5967
|
if (company) data.setReady(true);
|
|
@@ -5968,7 +5974,7 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
5968
5974
|
{
|
|
5969
5975
|
data,
|
|
5970
5976
|
fields: ["name" /* name */, "email" /* email */],
|
|
5971
|
-
tableGeneratorType:
|
|
5977
|
+
tableGeneratorType: _chunk3HL4VFJ4js.Modules.User,
|
|
5972
5978
|
functions,
|
|
5973
5979
|
title: t(`types.users`, { count: 2 })
|
|
5974
5980
|
}
|
|
@@ -5984,7 +5990,7 @@ function ContributorsList({ content }) {
|
|
|
5984
5990
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5985
5991
|
Link2,
|
|
5986
5992
|
{
|
|
5987
|
-
href: generateUrl({ page:
|
|
5993
|
+
href: generateUrl({ page: _chunk3HL4VFJ4js.Modules.User, id: content.author.id }),
|
|
5988
5994
|
onClick: (e) => e.stopPropagation(),
|
|
5989
5995
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: content.author, className: "mr-1 h-6 w-6" })
|
|
5990
5996
|
},
|
|
@@ -5993,7 +5999,7 @@ function ContributorsList({ content }) {
|
|
|
5993
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,
|
|
5994
6000
|
Link2,
|
|
5995
6001
|
{
|
|
5996
|
-
href: generateUrl({ page:
|
|
6002
|
+
href: generateUrl({ page: _chunk3HL4VFJ4js.Modules.User, id: editor.id }),
|
|
5997
6003
|
onClick: (e) => e.stopPropagation(),
|
|
5998
6004
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: editor, className: "h-5 w-5" })
|
|
5999
6005
|
},
|
|
@@ -6009,8 +6015,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContributorsList, "ContributorsList");
|
|
|
6009
6015
|
function RelevantUsersList({ id }) {
|
|
6010
6016
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
6011
6017
|
const data = useDataListRetriever({
|
|
6012
|
-
module:
|
|
6013
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
6018
|
+
module: _chunk3HL4VFJ4js.Modules.User,
|
|
6019
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.UserService.findRelevant(params), "retriever"),
|
|
6014
6020
|
retrieverParams: { id }
|
|
6015
6021
|
});
|
|
6016
6022
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -6018,7 +6024,7 @@ function RelevantUsersList({ id }) {
|
|
|
6018
6024
|
{
|
|
6019
6025
|
data,
|
|
6020
6026
|
fields: ["name" /* name */, "email" /* email */, "relevance" /* relevance */],
|
|
6021
|
-
tableGeneratorType:
|
|
6027
|
+
tableGeneratorType: _chunk3HL4VFJ4js.Modules.User,
|
|
6022
6028
|
title: t(`generic.relevant_users`)
|
|
6023
6029
|
}
|
|
6024
6030
|
);
|
|
@@ -6031,16 +6037,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RelevantUsersList, "RelevantUsersList");
|
|
|
6031
6037
|
function RoleUsersList({ role }) {
|
|
6032
6038
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
6033
6039
|
const data = useDataListRetriever({
|
|
6034
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
6040
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.UserService.findAllUsersByRole(params), "retriever"),
|
|
6035
6041
|
retrieverParams: { roleId: role.id },
|
|
6036
|
-
module:
|
|
6042
|
+
module: _chunk3HL4VFJ4js.Modules.User
|
|
6037
6043
|
});
|
|
6038
6044
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6039
6045
|
ContentListTable,
|
|
6040
6046
|
{
|
|
6041
6047
|
data,
|
|
6042
6048
|
fields: ["name" /* name */, "email" /* email */],
|
|
6043
|
-
tableGeneratorType:
|
|
6049
|
+
tableGeneratorType: _chunk3HL4VFJ4js.Modules.User,
|
|
6044
6050
|
title: t(`types.users`, { count: 2 })
|
|
6045
6051
|
}
|
|
6046
6052
|
);
|
|
@@ -6090,7 +6096,7 @@ function UsersList({ data, optionComponents, removeFunction, hideOptions, showRe
|
|
|
6090
6096
|
{
|
|
6091
6097
|
data,
|
|
6092
6098
|
fields: ["name" /* name */, "email" /* email */],
|
|
6093
|
-
tableGeneratorType:
|
|
6099
|
+
tableGeneratorType: _chunk3HL4VFJ4js.Modules.User,
|
|
6094
6100
|
title: t(`types.users`, { count: 2 })
|
|
6095
6101
|
}
|
|
6096
6102
|
);
|
|
@@ -6103,8 +6109,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersList, "UsersList");
|
|
|
6103
6109
|
function UsersListByContentIds({ contentIds }) {
|
|
6104
6110
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
6105
6111
|
const data = useDataListRetriever({
|
|
6106
|
-
module:
|
|
6107
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
6112
|
+
module: _chunk3HL4VFJ4js.Modules.User,
|
|
6113
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.UserService.findManyByContentIds(params), "retriever"),
|
|
6108
6114
|
retrieverParams: { contentIds }
|
|
6109
6115
|
});
|
|
6110
6116
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -6112,7 +6118,7 @@ function UsersListByContentIds({ contentIds }) {
|
|
|
6112
6118
|
{
|
|
6113
6119
|
data,
|
|
6114
6120
|
fields: ["name" /* name */, "email" /* email */],
|
|
6115
|
-
tableGeneratorType:
|
|
6121
|
+
tableGeneratorType: _chunk3HL4VFJ4js.Modules.User,
|
|
6116
6122
|
title: t(`generic.relevant_users`)
|
|
6117
6123
|
}
|
|
6118
6124
|
);
|
|
@@ -6286,8 +6292,8 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
6286
6292
|
}
|
|
6287
6293
|
};
|
|
6288
6294
|
try {
|
|
6289
|
-
await
|
|
6290
|
-
const fullUser = await
|
|
6295
|
+
await _chunk3HL4VFJ4js.CompanyService.updateConfigurations(payload);
|
|
6296
|
+
const fullUser = await _chunk3HL4VFJ4js.UserService.findFullUser();
|
|
6291
6297
|
if (fullUser) {
|
|
6292
6298
|
setUser(fullUser);
|
|
6293
6299
|
}
|
|
@@ -6342,7 +6348,7 @@ function CompanyDeleterInternal({ company }) {
|
|
|
6342
6348
|
const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
6343
6349
|
setIsDeleting(true);
|
|
6344
6350
|
try {
|
|
6345
|
-
await
|
|
6351
|
+
await _chunk3HL4VFJ4js.CompanyService.delete({ companyId: company.id });
|
|
6346
6352
|
router.push("/");
|
|
6347
6353
|
} catch (error) {
|
|
6348
6354
|
errorToast({ title: t(`generic.errors.delete`), error });
|
|
@@ -6412,7 +6418,7 @@ function CompanyDeleterInternal({ company }) {
|
|
|
6412
6418
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleterInternal, "CompanyDeleterInternal");
|
|
6413
6419
|
function CompanyDeleter({ company }) {
|
|
6414
6420
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
6415
|
-
if (!hasRole(_chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator) && !hasPermissionToModule({ module:
|
|
6421
|
+
if (!hasRole(_chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator) && !hasPermissionToModule({ module: _chunk3HL4VFJ4js.Modules.Company, action: "delete" /* Delete */ }))
|
|
6416
6422
|
return null;
|
|
6417
6423
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleterInternal, { company });
|
|
6418
6424
|
}
|
|
@@ -6460,7 +6466,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
6460
6466
|
});
|
|
6461
6467
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
6462
6468
|
if (values.logo && contentType) {
|
|
6463
|
-
const s3 = await
|
|
6469
|
+
const s3 = await _chunk3HL4VFJ4js.S3Service.getPreSignedUrl({
|
|
6464
6470
|
key: values.logo,
|
|
6465
6471
|
contentType,
|
|
6466
6472
|
isPublic: true
|
|
@@ -6479,9 +6485,9 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
6479
6485
|
moduleIds: values.moduleIds
|
|
6480
6486
|
};
|
|
6481
6487
|
try {
|
|
6482
|
-
const updatedCompany = company ? await
|
|
6488
|
+
const updatedCompany = company ? await _chunk3HL4VFJ4js.CompanyService.update(payload) : await _chunk3HL4VFJ4js.CompanyService.create(payload);
|
|
6483
6489
|
if (onRevalidate) {
|
|
6484
|
-
await onRevalidate(generateUrl({ page:
|
|
6490
|
+
await onRevalidate(generateUrl({ page: _chunk3HL4VFJ4js.Modules.Company, id: updatedCompany.id, language: `[locale]` }));
|
|
6485
6491
|
}
|
|
6486
6492
|
if (company && propagateChanges) {
|
|
6487
6493
|
_cookiesnext.setCookie.call(void 0, "reloadData", "true", { path: "/" });
|
|
@@ -6499,7 +6505,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
6499
6505
|
}, "onSubmit");
|
|
6500
6506
|
_react.useEffect.call(void 0, () => {
|
|
6501
6507
|
async function fetchFeatures() {
|
|
6502
|
-
const allfeatures = await
|
|
6508
|
+
const allfeatures = await _chunk3HL4VFJ4js.FeatureService.findMany({});
|
|
6503
6509
|
if (hasRole(_chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator)) {
|
|
6504
6510
|
setFeatures(allfeatures);
|
|
6505
6511
|
} else {
|
|
@@ -6613,9 +6619,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyEditor, "CompanyEditor");
|
|
|
6613
6619
|
function CompaniesList() {
|
|
6614
6620
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
6615
6621
|
const data = useDataListRetriever({
|
|
6616
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
6622
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.CompanyService.findMany(params), "retriever"),
|
|
6617
6623
|
retrieverParams: {},
|
|
6618
|
-
module:
|
|
6624
|
+
module: _chunk3HL4VFJ4js.Modules.Company
|
|
6619
6625
|
});
|
|
6620
6626
|
const functions = [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, {}, "create-account")];
|
|
6621
6627
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -6623,7 +6629,7 @@ function CompaniesList() {
|
|
|
6623
6629
|
{
|
|
6624
6630
|
data,
|
|
6625
6631
|
fields: ["name" /* name */, "createdAt" /* createdAt */],
|
|
6626
|
-
tableGeneratorType:
|
|
6632
|
+
tableGeneratorType: _chunk3HL4VFJ4js.Modules.Company,
|
|
6627
6633
|
functions,
|
|
6628
6634
|
title: t(`types.companies`, { count: 2 })
|
|
6629
6635
|
}
|
|
@@ -6644,14 +6650,14 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
6644
6650
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
6645
6651
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
6646
6652
|
const [company, setCompany] = _react.useState.call(void 0,
|
|
6647
|
-
dehydratedCompany ?
|
|
6653
|
+
dehydratedCompany ? _chunk3HL4VFJ4js.rehydrate.call(void 0, _chunk3HL4VFJ4js.Modules.Company, dehydratedCompany) : void 0
|
|
6648
6654
|
);
|
|
6649
6655
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
6650
6656
|
const response = [];
|
|
6651
6657
|
if (company)
|
|
6652
6658
|
response.push({
|
|
6653
6659
|
name: company.name,
|
|
6654
|
-
href: generateUrl({ page:
|
|
6660
|
+
href: generateUrl({ page: _chunk3HL4VFJ4js.Modules.Company })
|
|
6655
6661
|
});
|
|
6656
6662
|
return response;
|
|
6657
6663
|
}, "breadcrumb");
|
|
@@ -6661,9 +6667,9 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
6661
6667
|
};
|
|
6662
6668
|
if (company) response.element = company.name;
|
|
6663
6669
|
const functions = [];
|
|
6664
|
-
if (company && hasRole(_chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator) && hasPermissionToModule({ module:
|
|
6670
|
+
if (company && hasRole(_chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator) && hasPermissionToModule({ module: _chunk3HL4VFJ4js.Modules.Company, action: "delete" /* Delete */ }))
|
|
6665
6671
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleter, { company }, "companyDeleter"));
|
|
6666
|
-
if (hasRole(_chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module:
|
|
6672
|
+
if (hasRole(_chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module: _chunk3HL4VFJ4js.Modules.Company, action: "update" /* Update */ })) {
|
|
6667
6673
|
if (company) functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditor, { company }, "companyConfigurationEditor"));
|
|
6668
6674
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, { company, propagateChanges: setCompany }, "companyEditor"));
|
|
6669
6675
|
}
|
|
@@ -6776,7 +6782,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
6776
6782
|
setIsLoading(true);
|
|
6777
6783
|
setError(null);
|
|
6778
6784
|
try {
|
|
6779
|
-
const fetchedNotifications = await
|
|
6785
|
+
const fetchedNotifications = await _chunk3HL4VFJ4js.NotificationService.findMany({});
|
|
6780
6786
|
setNotifications(fetchedNotifications);
|
|
6781
6787
|
setLastLoaded(Date.now());
|
|
6782
6788
|
} catch (error2) {
|
|
@@ -6792,7 +6798,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
6792
6798
|
try {
|
|
6793
6799
|
const data = {
|
|
6794
6800
|
data: ids.map((id) => ({
|
|
6795
|
-
type:
|
|
6801
|
+
type: _chunk3HL4VFJ4js.Modules.Notification.name,
|
|
6796
6802
|
id,
|
|
6797
6803
|
attributes: {
|
|
6798
6804
|
isRead: true
|
|
@@ -6801,8 +6807,8 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
6801
6807
|
relationships: {}
|
|
6802
6808
|
}))
|
|
6803
6809
|
};
|
|
6804
|
-
await
|
|
6805
|
-
const allNotifications = await
|
|
6810
|
+
await _chunk3HL4VFJ4js.NotificationService.markAsRead({ data });
|
|
6811
|
+
const allNotifications = await _chunk3HL4VFJ4js.NotificationService.findMany({});
|
|
6806
6812
|
setNotifications(allNotifications);
|
|
6807
6813
|
setLastLoaded(Date.now());
|
|
6808
6814
|
} catch (error2) {
|
|
@@ -6870,18 +6876,18 @@ var RoleProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
|
|
|
6870
6876
|
const generateUrl = usePageUrlGenerator();
|
|
6871
6877
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
6872
6878
|
const [role, setRole] = _react.useState.call(void 0,
|
|
6873
|
-
dehydratedRole ?
|
|
6879
|
+
dehydratedRole ? _chunk3HL4VFJ4js.rehydrate.call(void 0, _chunk3HL4VFJ4js.Modules.Role, dehydratedRole) : void 0
|
|
6874
6880
|
);
|
|
6875
6881
|
const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
6876
6882
|
const response = [];
|
|
6877
6883
|
response.push({
|
|
6878
6884
|
name: t(`types.roles`, { count: 2 }),
|
|
6879
|
-
href: generateUrl({ page:
|
|
6885
|
+
href: generateUrl({ page: _chunk3HL4VFJ4js.Modules.Role })
|
|
6880
6886
|
});
|
|
6881
6887
|
if (role)
|
|
6882
6888
|
response.push({
|
|
6883
6889
|
name: role.name,
|
|
6884
|
-
href: generateUrl({ page:
|
|
6890
|
+
href: generateUrl({ page: _chunk3HL4VFJ4js.Modules.Role, id: role.id })
|
|
6885
6891
|
});
|
|
6886
6892
|
return response;
|
|
6887
6893
|
}, "breadcrumb");
|
|
@@ -7116,7 +7122,7 @@ function usePushNotifications() {
|
|
|
7116
7122
|
};
|
|
7117
7123
|
const subscriptionHash = btoa(JSON.stringify(plainSubscription));
|
|
7118
7124
|
if (lastRegisteredSubscription !== subscriptionHash) {
|
|
7119
|
-
await
|
|
7125
|
+
await _chunk3HL4VFJ4js.PushService.register({ data: plainSubscription });
|
|
7120
7126
|
sessionStorage.setItem(sessionKey, subscriptionHash);
|
|
7121
7127
|
}
|
|
7122
7128
|
} catch (error) {
|
|
@@ -7199,7 +7205,7 @@ function useSocket({ token }) {
|
|
|
7199
7205
|
});
|
|
7200
7206
|
}, "handleMessage");
|
|
7201
7207
|
const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
|
|
7202
|
-
const notification =
|
|
7208
|
+
const notification = _chunk3HL4VFJ4js.rehydrate.call(void 0, _chunk3HL4VFJ4js.Modules.Notification, data);
|
|
7203
7209
|
if (notification) {
|
|
7204
7210
|
setSocketNotifications((prev) => {
|
|
7205
7211
|
const newNotifications = [...prev, notification];
|
|
@@ -7314,7 +7320,7 @@ function ContentTitle({ type, element, functions, className }) {
|
|
|
7314
7320
|
setClientFunctions(functions);
|
|
7315
7321
|
}, [functions]);
|
|
7316
7322
|
if (!element) return null;
|
|
7317
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
7323
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, `mb-4 flex w-full flex-col`, className), children: [
|
|
7318
7324
|
(type || isClient) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-row items-center justify-between gap-x-4", children: [
|
|
7319
7325
|
type && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `text-muted-foreground text-xl font-light`, children: type }),
|
|
7320
7326
|
isClient && clientFunctions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-row items-center justify-start", children: clientFunctions })
|
|
@@ -7428,7 +7434,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, RecentPagesNavigator, "RecentPagesNavigator
|
|
|
7428
7434
|
function PageContainer({ children, testId, className }) {
|
|
7429
7435
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex h-full w-full flex-col`, "data-testid": testId, children: [
|
|
7430
7436
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header2, {}),
|
|
7431
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className:
|
|
7437
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className: _chunk3HL4VFJ4js.cn.call(void 0, `flex w-full flex-1 flex-col gap-y-4 pt-4 pl-4 pr-4`, className), children })
|
|
7432
7438
|
] });
|
|
7433
7439
|
}
|
|
7434
7440
|
_chunk7QVYU63Ejs.__name.call(void 0, PageContainer, "PageContainer");
|
|
@@ -7537,7 +7543,7 @@ function TabsContainer({
|
|
|
7537
7543
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7538
7544
|
TabsList,
|
|
7539
7545
|
{
|
|
7540
|
-
className:
|
|
7546
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
7541
7547
|
`${style ? `my-4 flex w-full justify-start rounded-none border-b bg-transparent pb-0` : ``}`,
|
|
7542
7548
|
tabsListClassName
|
|
7543
7549
|
),
|
|
@@ -7545,7 +7551,7 @@ function TabsContainer({
|
|
|
7545
7551
|
TabsTrigger,
|
|
7546
7552
|
{
|
|
7547
7553
|
value: tab.label,
|
|
7548
|
-
className:
|
|
7554
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
7549
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`}`,
|
|
7550
7556
|
tabsTriggerClassName
|
|
7551
7557
|
),
|
|
@@ -7565,7 +7571,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, TabsContainer, "TabsContainer");
|
|
|
7565
7571
|
// src/components/contents/AttributeElement.tsx
|
|
7566
7572
|
|
|
7567
7573
|
function AttributeElement({ inline, title, value, className }) {
|
|
7568
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
7574
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, `flex ${inline === true ? "flex-row" : "flex-col"} my-1 justify-start`, className), children: [
|
|
7569
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 }),
|
|
7570
7576
|
value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col text-sm", children: value })
|
|
7571
7577
|
] });
|
|
@@ -7588,7 +7594,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AllowedUsersDetails, "AllowedUsersDetails")
|
|
|
7588
7594
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
7589
7595
|
|
|
7590
7596
|
|
|
7591
|
-
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-CCOSI7TW.js"))), {
|
|
7592
7598
|
ssr: false
|
|
7593
7599
|
});
|
|
7594
7600
|
var BlockNoteEditorContainer = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -7931,7 +7937,7 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
7931
7937
|
}, "handleClear");
|
|
7932
7938
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open: isOpen, onOpenChange: setIsOpen, children: [
|
|
7933
7939
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { asChild: true, children }),
|
|
7934
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className:
|
|
7940
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className: _chunk3HL4VFJ4js.cn.call(void 0, "w-auto p-0", className), align, onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "p-3", children: [
|
|
7935
7941
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative mb-3", children: [
|
|
7936
7942
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7937
7943
|
Input,
|
|
@@ -8045,13 +8051,13 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
8045
8051
|
setDate(range);
|
|
8046
8052
|
}
|
|
8047
8053
|
}, "handleSelect");
|
|
8048
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
8054
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, "grid gap-2"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, children: [
|
|
8049
8055
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8050
8056
|
Button,
|
|
8051
8057
|
{
|
|
8052
8058
|
id: "date",
|
|
8053
8059
|
variant: "outline",
|
|
8054
|
-
className:
|
|
8060
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
|
|
8055
8061
|
children: [
|
|
8056
8062
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
|
|
8057
8063
|
_optionalChain([date, 'optionalAccess', _225 => _225.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -8244,7 +8250,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
8244
8250
|
ref,
|
|
8245
8251
|
tabIndex: 0,
|
|
8246
8252
|
onKeyDownCapture: handleKeyDown,
|
|
8247
|
-
className:
|
|
8253
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
8248
8254
|
"grid w-full overflow-hidden focus:outline-none",
|
|
8249
8255
|
className,
|
|
8250
8256
|
// Original className from props
|
|
@@ -8268,12 +8274,12 @@ var FileUploaderContent = _react.forwardRef.call(void 0,
|
|
|
8268
8274
|
({ children, className, ...props }, ref) => {
|
|
8269
8275
|
const { orientation } = useFileUpload();
|
|
8270
8276
|
const containerRef = _react.useRef.call(void 0, null);
|
|
8271
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
8277
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3HL4VFJ4js.cn.call(void 0, "w-full px-1"), ref: containerRef, "aria-description": "content file holder", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8272
8278
|
"div",
|
|
8273
8279
|
{
|
|
8274
8280
|
...props,
|
|
8275
8281
|
ref,
|
|
8276
|
-
className:
|
|
8282
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
8277
8283
|
"flex gap-1 rounded-xl",
|
|
8278
8284
|
orientation === "horizontal" ? "flex-raw flex-wrap" : "flex-col",
|
|
8279
8285
|
className
|
|
@@ -8293,7 +8299,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
8293
8299
|
"div",
|
|
8294
8300
|
{
|
|
8295
8301
|
ref,
|
|
8296
|
-
className:
|
|
8302
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
8297
8303
|
buttonVariants({ variant: "ghost" }),
|
|
8298
8304
|
"relative h-6 cursor-pointer justify-between p-1",
|
|
8299
8305
|
className,
|
|
@@ -8306,7 +8312,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
8306
8312
|
"button",
|
|
8307
8313
|
{
|
|
8308
8314
|
type: "button",
|
|
8309
|
-
className:
|
|
8315
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "absolute", direction === "rtl" ? "top-1 left-1" : "top-1 right-1"),
|
|
8310
8316
|
onClick: () => removeFileFromSet(index),
|
|
8311
8317
|
children: [
|
|
8312
8318
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: t(`generic.remove_item`, { index }) }),
|
|
@@ -8330,12 +8336,12 @@ var FileInput = _react.forwardRef.call(void 0,
|
|
|
8330
8336
|
{
|
|
8331
8337
|
ref,
|
|
8332
8338
|
...props,
|
|
8333
|
-
className:
|
|
8339
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, `relative w-full ${isLOF ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`, className),
|
|
8334
8340
|
children: [
|
|
8335
8341
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8336
8342
|
"div",
|
|
8337
8343
|
{
|
|
8338
|
-
className:
|
|
8344
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
8339
8345
|
"w-full rounded-lg duration-300 ease-in-out",
|
|
8340
8346
|
// Simpler border logic: if parent is drag-active, it controls the border.
|
|
8341
8347
|
// Otherwise, FileInput can show its own accept/reject/default border.
|
|
@@ -8680,7 +8686,7 @@ function FormDateTime({
|
|
|
8680
8686
|
Button,
|
|
8681
8687
|
{
|
|
8682
8688
|
variant: "outline",
|
|
8683
|
-
className:
|
|
8689
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "w-full pl-3 text-left font-normal", !field.value && "text-muted-foreground"),
|
|
8684
8690
|
children: [
|
|
8685
8691
|
field.value ? formatDateTime(field.value) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t(`generic.pick_date_time`) }),
|
|
8686
8692
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Calendar, { className: "ml-auto h-4 w-4 opacity-50" })
|
|
@@ -8880,7 +8886,7 @@ var PasswordInput = React38.forwardRef(({ className, type, ...props }, ref) => {
|
|
|
8880
8886
|
const disabled = props.value === "" || props.value === void 0 || props.disabled;
|
|
8881
8887
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8882
8888
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
8883
|
-
/* @__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: _chunk3HL4VFJ4js.cn.call(void 0, "", className), ref, ...props }),
|
|
8884
8890
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8885
8891
|
Button,
|
|
8886
8892
|
{
|
|
@@ -9088,7 +9094,7 @@ function FormPlaceAutocomplete({
|
|
|
9088
9094
|
placeholder,
|
|
9089
9095
|
disabled,
|
|
9090
9096
|
"data-testid": testId,
|
|
9091
|
-
className:
|
|
9097
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "w-full", className)
|
|
9092
9098
|
}
|
|
9093
9099
|
) }),
|
|
9094
9100
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormMessage, {})
|
|
@@ -9121,7 +9127,7 @@ function FormPlaceAutocomplete({
|
|
|
9121
9127
|
placeholder,
|
|
9122
9128
|
disabled: disabled || !apiKey,
|
|
9123
9129
|
"data-testid": testId,
|
|
9124
|
-
className:
|
|
9130
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "w-full", className)
|
|
9125
9131
|
}
|
|
9126
9132
|
),
|
|
9127
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" }) }),
|
|
@@ -9266,7 +9272,7 @@ function FormTextarea({
|
|
|
9266
9272
|
Textarea,
|
|
9267
9273
|
{
|
|
9268
9274
|
...field,
|
|
9269
|
-
className:
|
|
9275
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0, "min-h-96 w-full", className),
|
|
9270
9276
|
disabled: form.formState.isSubmitting,
|
|
9271
9277
|
placeholder,
|
|
9272
9278
|
"data-testid": testId
|
|
@@ -9774,14 +9780,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, useJsonApiMutation, "useJsonApiMutation");
|
|
|
9774
9780
|
function useRehydration(classKey, data) {
|
|
9775
9781
|
return _react.useMemo.call(void 0, () => {
|
|
9776
9782
|
if (!data) return null;
|
|
9777
|
-
return
|
|
9783
|
+
return _chunk3HL4VFJ4js.RehydrationFactory.rehydrate(classKey, data);
|
|
9778
9784
|
}, [classKey, data]);
|
|
9779
9785
|
}
|
|
9780
9786
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydration, "useRehydration");
|
|
9781
9787
|
function useRehydrationList(classKey, data) {
|
|
9782
9788
|
return _react.useMemo.call(void 0, () => {
|
|
9783
9789
|
if (!data || data.length === 0) return [];
|
|
9784
|
-
return
|
|
9790
|
+
return _chunk3HL4VFJ4js.RehydrationFactory.rehydrateList(classKey, data);
|
|
9785
9791
|
}, [classKey, data]);
|
|
9786
9792
|
}
|
|
9787
9793
|
_chunk7QVYU63Ejs.__name.call(void 0, useRehydrationList, "useRehydrationList");
|
|
@@ -9823,9 +9829,9 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
9823
9829
|
{
|
|
9824
9830
|
href: hasRole(_chunkAGWQ75PQjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
9825
9831
|
page: "/administration",
|
|
9826
|
-
id: _optionalChain([
|
|
9832
|
+
id: _optionalChain([_chunk3HL4VFJ4js.Modules, 'access', _277 => _277.Company, 'access', _278 => _278.pageUrl, 'optionalAccess', _279 => _279.substring, 'call', _280 => _280(1)]),
|
|
9827
9833
|
childPage: company.id
|
|
9828
|
-
}) : generateUrl({ page:
|
|
9834
|
+
}) : generateUrl({ page: _chunk3HL4VFJ4js.Modules.Company, id: company.id }),
|
|
9829
9835
|
children: row.getValue("name")
|
|
9830
9836
|
}
|
|
9831
9837
|
);
|
|
@@ -9875,7 +9881,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
9875
9881
|
header: t(`foundations.role.fields.name.label`),
|
|
9876
9882
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
9877
9883
|
const role = row.original.jsonApiData;
|
|
9878
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link2, { href: generateUrl({ page:
|
|
9884
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link2, { href: generateUrl({ page: _chunk3HL4VFJ4js.Modules.Role, id: role.id }), children: row.getValue("name") });
|
|
9879
9885
|
}, "cell"),
|
|
9880
9886
|
enableSorting: false,
|
|
9881
9887
|
enableHiding: false
|
|
@@ -9912,7 +9918,7 @@ var useUserSearch = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
|
9912
9918
|
if (search === searchQueryRef.current && users.length > 0) return;
|
|
9913
9919
|
setIsLoading(true);
|
|
9914
9920
|
searchQueryRef.current = search;
|
|
9915
|
-
const fetchedUsers = await
|
|
9921
|
+
const fetchedUsers = await _chunk3HL4VFJ4js.UserService.findMany({ search, fetchAll: true });
|
|
9916
9922
|
setUsers(fetchedUsers);
|
|
9917
9923
|
} catch (error) {
|
|
9918
9924
|
console.error("Failed to load users:", error);
|
|
@@ -9978,8 +9984,8 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
9978
9984
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9979
9985
|
Link2,
|
|
9980
9986
|
{
|
|
9981
|
-
href: generateUrl({ page:
|
|
9982
|
-
className:
|
|
9987
|
+
href: generateUrl({ page: _chunk3HL4VFJ4js.Modules.User, id: user.id }),
|
|
9988
|
+
className: _chunk3HL4VFJ4js.cn.call(void 0,
|
|
9983
9989
|
`flex items-center justify-start gap-2`,
|
|
9984
9990
|
user.isDeleted || !user.isActivated ? "text-muted-foreground italic" : ""
|
|
9985
9991
|
),
|
|
@@ -10073,11 +10079,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
10073
10079
|
header: t(`foundations.content.fields.name.label`),
|
|
10074
10080
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
10075
10081
|
const content = row.original.jsonApiData;
|
|
10076
|
-
const contentModule = content.contentType ?
|
|
10082
|
+
const contentModule = content.contentType ? _chunk3HL4VFJ4js.Modules.findByModelName(content.contentType) : void 0;
|
|
10077
10083
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
10078
10084
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
|
|
10079
10085
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { className: "flex items-center justify-start space-x-2", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
10080
|
-
contentModule &&
|
|
10086
|
+
contentModule && _chunk3HL4VFJ4js.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
10081
10087
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link2, { href: link, children: content.name })
|
|
10082
10088
|
] }) }),
|
|
10083
10089
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: content.tldr })
|
|
@@ -10381,7 +10387,7 @@ function Register() {
|
|
|
10381
10387
|
email: values.email,
|
|
10382
10388
|
password: values.password
|
|
10383
10389
|
};
|
|
10384
|
-
await
|
|
10390
|
+
await _chunk3HL4VFJ4js.AuthService.register(payload);
|
|
10385
10391
|
setShowConfirmation(true);
|
|
10386
10392
|
} catch (e) {
|
|
10387
10393
|
errorToast({ error: e });
|
|
@@ -10582,7 +10588,7 @@ function AcceptInvitation() {
|
|
|
10582
10588
|
const payload = {
|
|
10583
10589
|
code
|
|
10584
10590
|
};
|
|
10585
|
-
await
|
|
10591
|
+
await _chunk3HL4VFJ4js.AuthService.validateCode(payload);
|
|
10586
10592
|
} catch (e) {
|
|
10587
10593
|
setError(e instanceof Error ? e.message : String(e));
|
|
10588
10594
|
errorToast({ title: t(`generic.errors.error`), error: e });
|
|
@@ -10620,7 +10626,7 @@ function AcceptInvitation() {
|
|
|
10620
10626
|
code: _optionalChain([params, 'optionalAccess', _303 => _303.code]),
|
|
10621
10627
|
password: values.password
|
|
10622
10628
|
};
|
|
10623
|
-
await
|
|
10629
|
+
await _chunk3HL4VFJ4js.AuthService.acceptInvitation(payload);
|
|
10624
10630
|
setShowConfirmation(true);
|
|
10625
10631
|
_sonner.toast.success(t("foundations.auth.account_activated"), {
|
|
10626
10632
|
description: t("foundations.auth.account_activated_description")
|
|
@@ -10683,7 +10689,7 @@ function ActivateAccount() {
|
|
|
10683
10689
|
const payload = {
|
|
10684
10690
|
activationCode: code
|
|
10685
10691
|
};
|
|
10686
|
-
await
|
|
10692
|
+
await _chunk3HL4VFJ4js.AuthService.activate(payload);
|
|
10687
10693
|
setShowConfirmation(true);
|
|
10688
10694
|
setParams(void 0);
|
|
10689
10695
|
_sonner.toast.success(t("foundations.auth.account_activated"), {
|
|
@@ -10726,8 +10732,8 @@ function Cookies({ dehydratedAuth, page }) {
|
|
|
10726
10732
|
_react.useEffect.call(void 0, () => {
|
|
10727
10733
|
if (hasSaved) return;
|
|
10728
10734
|
async function saveTokenOnServer() {
|
|
10729
|
-
await
|
|
10730
|
-
const auth =
|
|
10735
|
+
await _chunk3HL4VFJ4js.AuthService.saveToken({ dehydratedAuth });
|
|
10736
|
+
const auth = _chunk3HL4VFJ4js.rehydrate.call(void 0, _chunk3HL4VFJ4js.Modules.Auth, dehydratedAuth);
|
|
10731
10737
|
setUser(auth.user);
|
|
10732
10738
|
setHasSaved(true);
|
|
10733
10739
|
if (page) {
|
|
@@ -10770,7 +10776,7 @@ function ForgotPassword() {
|
|
|
10770
10776
|
const payload = {
|
|
10771
10777
|
email: values.email
|
|
10772
10778
|
};
|
|
10773
|
-
await
|
|
10779
|
+
await _chunk3HL4VFJ4js.AuthService.initialiseForgotPassword(payload);
|
|
10774
10780
|
setShowConfirmation(true);
|
|
10775
10781
|
} catch (e) {
|
|
10776
10782
|
errorToast({ error: e });
|
|
@@ -10841,7 +10847,7 @@ function Login() {
|
|
|
10841
10847
|
});
|
|
10842
10848
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
10843
10849
|
try {
|
|
10844
|
-
const user = await
|
|
10850
|
+
const user = await _chunk3HL4VFJ4js.AuthService.login({
|
|
10845
10851
|
email: values.email,
|
|
10846
10852
|
password: values.password
|
|
10847
10853
|
});
|
|
@@ -10920,7 +10926,7 @@ function Logout() {
|
|
|
10920
10926
|
const generateUrl = usePageUrlGenerator();
|
|
10921
10927
|
_react.useEffect.call(void 0, () => {
|
|
10922
10928
|
const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
10923
|
-
await
|
|
10929
|
+
await _chunk3HL4VFJ4js.AuthService.logout();
|
|
10924
10930
|
window.location.href = generateUrl({ page: `/` });
|
|
10925
10931
|
}, "logOut");
|
|
10926
10932
|
logOut();
|
|
@@ -10935,7 +10941,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, Logout, "Logout");
|
|
|
10935
10941
|
function RefreshUser() {
|
|
10936
10942
|
const { setUser } = useCurrentUserContext();
|
|
10937
10943
|
const loadFullUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
10938
|
-
const fullUser = await
|
|
10944
|
+
const fullUser = await _chunk3HL4VFJ4js.UserService.findFullUser();
|
|
10939
10945
|
if (fullUser) {
|
|
10940
10946
|
setUser(fullUser);
|
|
10941
10947
|
const token = {
|
|
@@ -10948,7 +10954,7 @@ function RefreshUser() {
|
|
|
10948
10954
|
return { id: module.id, permissions: module.permissions };
|
|
10949
10955
|
})
|
|
10950
10956
|
};
|
|
10951
|
-
await _optionalChain([
|
|
10957
|
+
await _optionalChain([_chunk3HL4VFJ4js.getTokenHandler.call(void 0, ), 'optionalAccess', _312 => _312.updateToken, 'call', _313 => _313(token)]);
|
|
10952
10958
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
10953
10959
|
}
|
|
10954
10960
|
}, "loadFullUser");
|
|
@@ -10980,7 +10986,7 @@ function ResetPassword() {
|
|
|
10980
10986
|
const payload = {
|
|
10981
10987
|
code
|
|
10982
10988
|
};
|
|
10983
|
-
await
|
|
10989
|
+
await _chunk3HL4VFJ4js.AuthService.validateCode(payload);
|
|
10984
10990
|
} catch (e) {
|
|
10985
10991
|
setError(e instanceof Error ? e.message : String(e));
|
|
10986
10992
|
errorToast({ title: t(`generic.errors.error`), error: e });
|
|
@@ -11018,7 +11024,7 @@ function ResetPassword() {
|
|
|
11018
11024
|
code: _optionalChain([params, 'optionalAccess', _315 => _315.code]),
|
|
11019
11025
|
password: values.password
|
|
11020
11026
|
};
|
|
11021
|
-
await
|
|
11027
|
+
await _chunk3HL4VFJ4js.AuthService.resetPassword(payload);
|
|
11022
11028
|
setShowConfirmation(true);
|
|
11023
11029
|
_sonner.toast.success(t(`foundations.auth.reset_success`), {
|
|
11024
11030
|
description: t(`foundations.auth.reset_success_description`)
|
|
@@ -11061,12 +11067,12 @@ function ContentsList({ contentList }) {
|
|
|
11061
11067
|
_chunk7QVYU63Ejs.__name.call(void 0, ContentsList, "ContentsList");
|
|
11062
11068
|
function ContentsListElement({ content }) {
|
|
11063
11069
|
const generateUrl = usePageUrlGenerator();
|
|
11064
|
-
const contentModule = content.contentType ?
|
|
11070
|
+
const contentModule = content.contentType ? _chunk3HL4VFJ4js.Modules.findByModelName(content.contentType) : void 0;
|
|
11065
11071
|
const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
|
|
11066
11072
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hover:bg-muted flex w-full flex-col gap-y-2 border-b p-2 py-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full justify-between gap-x-2", children: [
|
|
11067
11073
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCard, { children: [
|
|
11068
11074
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HoverCardTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Link2, { href: link, className: "flex w-full items-center justify-start gap-2 font-semibold", children: [
|
|
11069
|
-
contentModule &&
|
|
11075
|
+
contentModule && _chunk3HL4VFJ4js.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
|
|
11070
11076
|
content.name
|
|
11071
11077
|
] }) }),
|
|
11072
11078
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCardContent, { className: "flex max-h-96 w-96 flex-col gap-y-4 overflow-y-auto", children: [
|
|
@@ -11085,8 +11091,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListElement, "ContentsListElement")
|
|
|
11085
11091
|
function ContentsListById({ contentIds }) {
|
|
11086
11092
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11087
11093
|
const data = useDataListRetriever({
|
|
11088
|
-
module:
|
|
11089
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
11094
|
+
module: _chunk3HL4VFJ4js.Modules.Content,
|
|
11095
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.ContentService.findMany(params), "retriever"),
|
|
11090
11096
|
retrieverParams: { contentIds }
|
|
11091
11097
|
});
|
|
11092
11098
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11094,7 +11100,7 @@ function ContentsListById({ contentIds }) {
|
|
|
11094
11100
|
{
|
|
11095
11101
|
data,
|
|
11096
11102
|
fields: ["name" /* name */, "authors" /* authors */, "updatedAt" /* updatedAt */],
|
|
11097
|
-
tableGeneratorType:
|
|
11103
|
+
tableGeneratorType: _chunk3HL4VFJ4js.Modules.Content,
|
|
11098
11104
|
title: t(`generic.relevant`)
|
|
11099
11105
|
}
|
|
11100
11106
|
);
|
|
@@ -11107,8 +11113,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListById, "ContentsListById");
|
|
|
11107
11113
|
function RelevantContentsList({ id }) {
|
|
11108
11114
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11109
11115
|
const data = useDataListRetriever({
|
|
11110
|
-
module:
|
|
11111
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
11116
|
+
module: _chunk3HL4VFJ4js.Modules.Content,
|
|
11117
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.ContentService.findRelevant(params), "retriever"),
|
|
11112
11118
|
retrieverParams: { id }
|
|
11113
11119
|
});
|
|
11114
11120
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11116,7 +11122,7 @@ function RelevantContentsList({ id }) {
|
|
|
11116
11122
|
{
|
|
11117
11123
|
data,
|
|
11118
11124
|
fields: ["name" /* name */, "authors" /* authors */, "relevance" /* relevance */, "updatedAt" /* updatedAt */],
|
|
11119
|
-
tableGeneratorType:
|
|
11125
|
+
tableGeneratorType: _chunk3HL4VFJ4js.Modules.Content,
|
|
11120
11126
|
title: t(`generic.relevant`)
|
|
11121
11127
|
}
|
|
11122
11128
|
);
|
|
@@ -11169,12 +11175,12 @@ function NotificationsList({ archived }) {
|
|
|
11169
11175
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11170
11176
|
const generateUrl = usePageUrlGenerator();
|
|
11171
11177
|
const data = useDataListRetriever({
|
|
11172
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
11178
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.NotificationService.findMany(params), "retriever"),
|
|
11173
11179
|
retrieverParams: { isArchived: archived },
|
|
11174
|
-
module:
|
|
11180
|
+
module: _chunk3HL4VFJ4js.Modules.Notification
|
|
11175
11181
|
});
|
|
11176
11182
|
const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
|
|
11177
|
-
await
|
|
11183
|
+
await _chunk3HL4VFJ4js.NotificationService.archive({ id: notification.id });
|
|
11178
11184
|
data.removeElement(notification);
|
|
11179
11185
|
}, "archiveNotification");
|
|
11180
11186
|
const LoadingSkeleton = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: "p-2", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center", children: [
|
|
@@ -11188,7 +11194,7 @@ function NotificationsList({ archived }) {
|
|
|
11188
11194
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _316 => _316.data, 'optionalAccess', _317 => _317.map, 'call', _318 => _318((notification) => {
|
|
11189
11195
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
11190
11196
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: "p-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex w-full flex-row items-center p-2`, children: [
|
|
11191
|
-
notificationData.actor ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-12 max-w-12 px-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link2, { href: generateUrl({ page:
|
|
11197
|
+
notificationData.actor ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-12 max-w-12 px-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link2, { href: generateUrl({ page: _chunk3HL4VFJ4js.Modules.User, id: notificationData.actor.id }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: notificationData.actor, className: "h-8 w-8" }) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-14 max-w-14 px-2" }),
|
|
11192
11198
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
11193
11199
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`foundations.notification.${notification.notificationType}.description`, {
|
|
11194
11200
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
@@ -11497,7 +11503,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
11497
11503
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11498
11504
|
_react.useEffect.call(void 0, () => {
|
|
11499
11505
|
async function checkCompanyAdminDeletability() {
|
|
11500
|
-
const roleUsers = await
|
|
11506
|
+
const roleUsers = await _chunk3HL4VFJ4js.UserService.findAllUsersByRole({
|
|
11501
11507
|
roleId: role.id
|
|
11502
11508
|
});
|
|
11503
11509
|
if (roleUsers.length > 1) setCanRemove(true);
|
|
@@ -11511,7 +11517,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
11511
11517
|
}, [role]);
|
|
11512
11518
|
const remove = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
11513
11519
|
try {
|
|
11514
|
-
await
|
|
11520
|
+
await _chunk3HL4VFJ4js.RoleService.removeUserFromRole({
|
|
11515
11521
|
roleId: role.id,
|
|
11516
11522
|
userId: user.id
|
|
11517
11523
|
});
|
|
@@ -11575,7 +11581,7 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
11575
11581
|
const [roles, setRoles] = _react.useState.call(void 0, []);
|
|
11576
11582
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11577
11583
|
const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (role) => {
|
|
11578
|
-
await
|
|
11584
|
+
await _chunk3HL4VFJ4js.RoleService.addUserToRole({
|
|
11579
11585
|
roleId: role.id,
|
|
11580
11586
|
userId: user.id
|
|
11581
11587
|
});
|
|
@@ -11599,7 +11605,7 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
11599
11605
|
const searchRoles = _react.useCallback.call(void 0,
|
|
11600
11606
|
async (term) => {
|
|
11601
11607
|
setRoles(
|
|
11602
|
-
await
|
|
11608
|
+
await _chunk3HL4VFJ4js.RoleService.findAllRolesUserNotIn({
|
|
11603
11609
|
search: term,
|
|
11604
11610
|
userId: user.id
|
|
11605
11611
|
})
|
|
@@ -11667,16 +11673,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserRoleAdd, "UserRoleAdd");
|
|
|
11667
11673
|
function RolesList() {
|
|
11668
11674
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11669
11675
|
const data = useDataListRetriever({
|
|
11670
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
11676
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.RoleService.findAllRoles(params), "retriever"),
|
|
11671
11677
|
retrieverParams: {},
|
|
11672
|
-
module:
|
|
11678
|
+
module: _chunk3HL4VFJ4js.Modules.Role
|
|
11673
11679
|
});
|
|
11674
11680
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11675
11681
|
ContentListTable,
|
|
11676
11682
|
{
|
|
11677
11683
|
data,
|
|
11678
11684
|
fields: ["name" /* name */, "description" /* description */],
|
|
11679
|
-
tableGeneratorType:
|
|
11685
|
+
tableGeneratorType: _chunk3HL4VFJ4js.Modules.Role,
|
|
11680
11686
|
title: t(`types.roles`, { count: 2 })
|
|
11681
11687
|
}
|
|
11682
11688
|
);
|
|
@@ -11689,16 +11695,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RolesList, "RolesList");
|
|
|
11689
11695
|
function UserRolesList({ user }) {
|
|
11690
11696
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11691
11697
|
const data = useDataListRetriever({
|
|
11692
|
-
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
|
|
11698
|
+
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk3HL4VFJ4js.RoleService.findAllRolesByUser(params), "retriever"),
|
|
11693
11699
|
retrieverParams: { userId: user.id },
|
|
11694
|
-
module:
|
|
11700
|
+
module: _chunk3HL4VFJ4js.Modules.Role
|
|
11695
11701
|
});
|
|
11696
11702
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11697
11703
|
ContentListTable,
|
|
11698
11704
|
{
|
|
11699
11705
|
data,
|
|
11700
11706
|
fields: ["name" /* name */, "description" /* description */],
|
|
11701
|
-
tableGeneratorType:
|
|
11707
|
+
tableGeneratorType: _chunk3HL4VFJ4js.Modules.Role,
|
|
11702
11708
|
title: t(`types.roles`, { count: 2 })
|
|
11703
11709
|
}
|
|
11704
11710
|
);
|
|
@@ -12082,4 +12088,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserRolesList, "UserRolesList");
|
|
|
12082
12088
|
|
|
12083
12089
|
|
|
12084
12090
|
exports.JsonApiContext = JsonApiContext; exports.useJsonApiConfig = useJsonApiConfig; exports.useJsonApiConfigOptional = useJsonApiConfigOptional; exports.JsonApiProvider = JsonApiProvider; exports.useJsonApiGet = useJsonApiGet; exports.useJsonApiMutation = useJsonApiMutation; exports.useRehydration = useRehydration; exports.useRehydrationList = useRehydrationList; exports.TableGeneratorRegistry = TableGeneratorRegistry; exports.tableGeneratorRegistry = tableGeneratorRegistry; exports.usePageUrlGenerator = usePageUrlGenerator; exports.useUrlRewriter = useUrlRewriter; exports.useDataListRetriever = useDataListRetriever; exports.useDebounce = useDebounce; exports.registerTableGenerator = registerTableGenerator; exports.useTableGenerator = useTableGenerator; exports.useCustomD3Graph = useCustomD3Graph; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.buttonVariants = buttonVariants; exports.Button = Button; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.Avatar = Avatar; exports.AvatarImage = AvatarImage; exports.AvatarFallback = AvatarFallback; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.Calendar = Calendar; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger2; exports.CollapsibleContent = CollapsibleContent2; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.Command = Command; exports.CommandDialog = CommandDialog; exports.CommandInput = CommandInput; exports.CommandList = CommandList; exports.CommandEmpty = CommandEmpty; exports.CommandGroup = CommandGroup; exports.CommandSeparator = CommandSeparator; exports.CommandItem = CommandItem; exports.CommandShortcut = CommandShortcut; exports.ContextMenu = ContextMenu; exports.ContextMenuTrigger = ContextMenuTrigger; exports.ContextMenuGroup = ContextMenuGroup; exports.ContextMenuPortal = ContextMenuPortal; exports.ContextMenuSub = ContextMenuSub; exports.ContextMenuRadioGroup = ContextMenuRadioGroup; exports.ContextMenuSubTrigger = ContextMenuSubTrigger; exports.ContextMenuSubContent = ContextMenuSubContent; exports.ContextMenuContent = ContextMenuContent; exports.ContextMenuItem = ContextMenuItem; exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem; exports.ContextMenuRadioItem = ContextMenuRadioItem; exports.ContextMenuLabel = ContextMenuLabel; exports.ContextMenuSeparator = ContextMenuSeparator; exports.ContextMenuShortcut = ContextMenuShortcut; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerPortal = DrawerPortal; exports.DrawerClose = DrawerClose; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerFooter = DrawerFooter; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DropdownMenu = DropdownMenu; exports.DropdownMenuTrigger = DropdownMenuTrigger; exports.DropdownMenuGroup = DropdownMenuGroup; exports.DropdownMenuPortal = DropdownMenuPortal; exports.DropdownMenuSub = DropdownMenuSub; exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup; exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger; exports.DropdownMenuSubContent = DropdownMenuSubContent; exports.DropdownMenuContent = DropdownMenuContent; exports.DropdownMenuItem = DropdownMenuItem; exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem; exports.DropdownMenuRadioItem = DropdownMenuRadioItem; exports.DropdownMenuLabel = DropdownMenuLabel; exports.DropdownMenuSeparator = DropdownMenuSeparator; exports.DropdownMenuShortcut = DropdownMenuShortcut; exports.Label = Label3; exports.Form = Form; exports.FormField = FormField; exports.useFormField = useFormField; exports.FormItem = FormItem; exports.FormLabel = FormLabel; exports.FormControl = FormControl; exports.FormDescription = FormDescription; exports.FormMessage = FormMessage; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.Input = Input; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuViewport = NavigationMenuViewport; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.Popover = Popover; exports.PopoverTrigger = PopoverTrigger; exports.PopoverAnchor = PopoverAnchor; exports.PopoverContent = PopoverContent; exports.Progress = Progress; exports.RadioGroup = RadioGroup3; exports.RadioGroupItem = RadioGroupItem; exports.ResizablePanelGroup = ResizablePanelGroup; exports.ResizablePanel = ResizablePanel; exports.ResizableHandle = ResizableHandle; exports.ScrollArea = ScrollArea; exports.ScrollBar = ScrollBar; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.Separator = Separator4; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Skeleton = Skeleton; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip2; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.SIDEBAR_WIDTH = SIDEBAR_WIDTH; exports.SIDEBAR_WIDTH_MOBILE = SIDEBAR_WIDTH_MOBILE; exports.SIDEBAR_WIDTH_ICON = SIDEBAR_WIDTH_ICON; exports.useSidebar = useSidebar; exports.SidebarProvider = SidebarProvider; exports.Sidebar = Sidebar; exports.SidebarTrigger = SidebarTrigger; exports.SidebarRail = SidebarRail; exports.SidebarInset = SidebarInset; exports.SidebarInput = SidebarInput; exports.SidebarHeader = SidebarHeader; exports.SidebarFooter = SidebarFooter; exports.SidebarSeparator = SidebarSeparator; exports.SidebarContent = SidebarContent; exports.SidebarGroup = SidebarGroup; exports.SidebarGroupLabel = SidebarGroupLabel; exports.SidebarGroupAction = SidebarGroupAction; exports.SidebarGroupContent = SidebarGroupContent; exports.SidebarMenu = SidebarMenu; exports.SidebarMenuItem = SidebarMenuItem; exports.SidebarMenuButton = SidebarMenuButton; exports.SidebarMenuAction = SidebarMenuAction; exports.SidebarMenuBadge = SidebarMenuBadge; exports.SidebarMenuSkeleton = SidebarMenuSkeleton; exports.SidebarMenuSub = SidebarMenuSub; exports.SidebarMenuSubItem = SidebarMenuSubItem; exports.SidebarMenuSubButton = SidebarMenuSubButton; exports.Slider = Slider; exports.Toaster = Toaster; exports.Switch = Switch; exports.Table = Table; exports.TableHeader = TableHeader; exports.TableBody = TableBody; exports.TableFooter = TableFooter; exports.TableRow = TableRow; exports.TableHead = TableHead; exports.TableCell = TableCell; exports.TableCaption = TableCaption; exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.Textarea = Textarea; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.KanbanRoot = KanbanRoot; exports.KanbanBoard = KanbanBoard; exports.KanbanColumn = KanbanColumn; exports.KanbanColumnHandle = KanbanColumnHandle; exports.KanbanItem = KanbanItem; exports.KanbanItemHandle = KanbanItemHandle; exports.KanbanOverlay = KanbanOverlay; exports.Link = Link2; exports.MultiSelect = MultiSelect; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.Header = Header2; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.UserDetails = UserDetails; exports.UserAvatar = UserAvatar; exports.UserIndexDetails = UserIndexDetails; exports.UserContainer = UserContainer; exports.UserIndexContainer = UserIndexContainer; exports.UsersListContainer = UsersListContainer; exports.AdminUsersList = AdminUsersList; exports.CompanyUsersList = CompanyUsersList; exports.ContributorsList = ContributorsList; exports.RelevantUsersList = RelevantUsersList; exports.RoleUsersList = RoleUsersList; exports.UserListInAdd = UserListInAdd; exports.UsersList = UsersList; exports.UsersListByContentIds = UsersListByContentIds; exports.AllowedUsersDetails = AllowedUsersDetails; exports.ErrorDetails = ErrorDetails; exports.errorToast = errorToast; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorTrigger = CommonEditorTrigger; exports.DatePickerPopover = DatePickerPopover; exports.DateRangeSelector = DateRangeSelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.FormCheckbox = FormCheckbox; exports.FormContainerGeneric = FormContainerGeneric; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.PasswordInput = PasswordInput; exports.FormPassword = FormPassword; exports.FormPlaceAutocomplete = FormPlaceAutocomplete; exports.FormSelect = FormSelect; exports.FormSlider = FormSlider; exports.FormSwitch = FormSwitch; exports.FormTextarea = FormTextarea; exports.FormFeatures = FormFeatures; exports.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; exports.AuthContainer = AuthContainer; exports.LandingComponent = LandingComponent; exports.AcceptInvitation = AcceptInvitation; exports.ActivateAccount = ActivateAccount; exports.Cookies = Cookies; exports.ForgotPassword = ForgotPassword; exports.Login = Login; exports.Logout = Logout; exports.RefreshUser = RefreshUser; exports.ResetPassword = ResetPassword; exports.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationSecurityForm = CompanyConfigurationSecurityForm; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.RoleProvider = RoleProvider; exports.useRoleContext = useRoleContext; exports.RoleDetails = RoleDetails; exports.RoleContainer = RoleContainer; exports.FormRoles = FormRoles; exports.RemoveUserFromRole = RemoveUserFromRole; exports.UserRoleAdd = UserRoleAdd; exports.useRoleTableStructure = useRoleTableStructure; exports.RolesList = RolesList; exports.UserRolesList = UserRolesList; exports.AddUserToRole = AddUserToRole; exports.UserAvatarEditor = UserAvatarEditor; exports.UserDeleter = UserDeleter; exports.UserEditor = UserEditor; exports.UserMultiSelect = UserMultiSelect; exports.UserReactivator = UserReactivator; exports.UserResentInvitationEmail = UserResentInvitationEmail; exports.UserSelector = UserSelector; exports.UserProvider = UserProvider; exports.useUserContext = useUserContext; exports.CompanyProvider = CompanyProvider; exports.useCompanyContext = useCompanyContext; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.useContentTableStructure = useContentTableStructure;
|
|
12085
|
-
//# sourceMappingURL=chunk-
|
|
12091
|
+
//# sourceMappingURL=chunk-KFON36OE.js.map
|