@carlonicora/nextjs-jsonapi 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/{BlockNoteEditor-CNXQ3WL3.js → BlockNoteEditor-7WYPN34K.js} +17 -17
  2. package/dist/{BlockNoteEditor-CNXQ3WL3.js.map → BlockNoteEditor-7WYPN34K.js.map} +1 -1
  3. package/dist/{BlockNoteEditor-DC33K4IF.mjs → BlockNoteEditor-V625C23O.mjs} +7 -7
  4. package/dist/{JsonApiRequest-O7BGUMFO.mjs → JsonApiRequest-6UR7DIAR.mjs} +4 -2
  5. package/dist/JsonApiRequest-UJ7FGIVI.js +25 -0
  6. package/dist/JsonApiRequest-UJ7FGIVI.js.map +1 -0
  7. package/dist/{chunk-EZK3H6EJ.js → chunk-5IET37O4.js} +206 -206
  8. package/dist/{chunk-EZK3H6EJ.js.map → chunk-5IET37O4.js.map} +1 -1
  9. package/dist/{chunk-Y4XI3AZR.mjs → chunk-5QC7A6BL.mjs} +32 -20
  10. package/dist/chunk-5QC7A6BL.mjs.map +1 -0
  11. package/dist/{chunk-LJRD4SRV.js → chunk-DEYKTLA3.js} +6 -6
  12. package/dist/{chunk-LJRD4SRV.js.map → chunk-DEYKTLA3.js.map} +1 -1
  13. package/dist/{chunk-NPPQNSXN.mjs → chunk-FMBQZAIP.mjs} +3 -3
  14. package/dist/{chunk-MHVXFWZY.mjs → chunk-HTLEKZND.mjs} +3 -3
  15. package/dist/{chunk-74F6BBHH.mjs → chunk-IKBA4AHN.mjs} +2 -1
  16. package/dist/chunk-IKBA4AHN.mjs.map +1 -0
  17. package/dist/{chunk-JLN6UWII.mjs → chunk-JGFWIT2E.mjs} +2 -2
  18. package/dist/{chunk-KDFDGXCX.js → chunk-K2ANOT66.js} +576 -564
  19. package/dist/chunk-K2ANOT66.js.map +1 -0
  20. package/dist/{chunk-X53MF5ZN.mjs → chunk-P2F54I7Q.mjs} +2 -2
  21. package/dist/{chunk-5ZEADNNP.js → chunk-PMXG5WBC.js} +3 -2
  22. package/dist/chunk-PMXG5WBC.js.map +1 -0
  23. package/dist/{chunk-L6LH7WA4.js → chunk-PO5Q3H5I.js} +190 -190
  24. package/dist/{chunk-L6LH7WA4.js.map → chunk-PO5Q3H5I.js.map} +1 -1
  25. package/dist/{chunk-WZJDLITG.js → chunk-Q4FXESVT.js} +3 -3
  26. package/dist/{chunk-WZJDLITG.js.map → chunk-Q4FXESVT.js.map} +1 -1
  27. package/dist/client/index.js +7 -7
  28. package/dist/client/index.mjs +6 -6
  29. package/dist/components/index.js +7 -7
  30. package/dist/components/index.mjs +6 -6
  31. package/dist/contexts/index.js +7 -7
  32. package/dist/contexts/index.mjs +6 -6
  33. package/dist/core/index.js +2 -2
  34. package/dist/core/index.mjs +1 -1
  35. package/dist/features/index.js +4 -4
  36. package/dist/features/index.mjs +3 -3
  37. package/dist/hooks/index.js +7 -7
  38. package/dist/hooks/index.mjs +6 -6
  39. package/dist/index.d.mts +2 -1
  40. package/dist/index.d.ts +2 -1
  41. package/dist/index.js +5 -3
  42. package/dist/index.js.map +1 -1
  43. package/dist/index.mjs +4 -2
  44. package/dist/shadcnui/index.js +4 -4
  45. package/dist/shadcnui/index.mjs +3 -3
  46. package/dist/utils/index.js +3 -3
  47. package/dist/utils/index.mjs +2 -2
  48. package/package.json +1 -1
  49. package/src/components/errors/ErrorDetails.tsx +2 -2
  50. package/src/features/auth/components/containers/AuthContainer.tsx +1 -1
  51. package/src/features/auth/components/details/LandingComponent.tsx +20 -1
  52. package/src/features/auth/components/forms/AcceptInvitation.tsx +1 -1
  53. package/src/features/auth/components/forms/ActivateAccount.tsx +1 -1
  54. package/src/features/auth/components/forms/ForgotPassword.tsx +1 -1
  55. package/src/features/auth/components/forms/Login.tsx +1 -1
  56. package/src/features/auth/components/forms/Register.tsx +1 -1
  57. package/src/features/auth/components/forms/ResetPassword.tsx +1 -1
  58. package/src/features/company/components/forms/CompanyLicense.tsx +1 -8
  59. package/src/unified/JsonApiRequest.ts +2 -2
  60. package/dist/JsonApiRequest-VARLNKAF.js +0 -23
  61. package/dist/JsonApiRequest-VARLNKAF.js.map +0 -1
  62. package/dist/chunk-5ZEADNNP.js.map +0 -1
  63. package/dist/chunk-74F6BBHH.mjs.map +0 -1
  64. package/dist/chunk-KDFDGXCX.js.map +0 -1
  65. package/dist/chunk-Y4XI3AZR.mjs.map +0 -1
  66. /package/dist/{BlockNoteEditor-DC33K4IF.mjs.map → BlockNoteEditor-V625C23O.mjs.map} +0 -0
  67. /package/dist/{JsonApiRequest-O7BGUMFO.mjs.map → JsonApiRequest-6UR7DIAR.mjs.map} +0 -0
  68. /package/dist/{chunk-NPPQNSXN.mjs.map → chunk-FMBQZAIP.mjs.map} +0 -0
  69. /package/dist/{chunk-MHVXFWZY.mjs.map → chunk-HTLEKZND.mjs.map} +0 -0
  70. /package/dist/{chunk-JLN6UWII.mjs.map → chunk-JGFWIT2E.mjs.map} +0 -0
  71. /package/dist/{chunk-X53MF5ZN.mjs.map → chunk-P2F54I7Q.mjs.map} +0 -0
@@ -94,11 +94,11 @@
94
94
 
95
95
 
96
96
 
97
- var _chunkEZK3H6EJjs = require('./chunk-EZK3H6EJ.js');
97
+ var _chunk5IET37O4js = require('./chunk-5IET37O4.js');
98
98
 
99
99
 
100
100
 
101
- var _chunkLJRD4SRVjs = require('./chunk-LJRD4SRV.js');
101
+ var _chunkDEYKTLA3js = require('./chunk-DEYKTLA3.js');
102
102
 
103
103
 
104
104
 
@@ -109,7 +109,7 @@ var _chunkLJRD4SRVjs = require('./chunk-LJRD4SRV.js');
109
109
 
110
110
 
111
111
 
112
- var _chunkL6LH7WA4js = require('./chunk-L6LH7WA4.js');
112
+ var _chunkPO5Q3H5Ijs = require('./chunk-PO5Q3H5I.js');
113
113
 
114
114
 
115
115
 
@@ -120,7 +120,8 @@ var _chunkAYHKQWHHjs = require('./chunk-AYHKQWHH.js');
120
120
 
121
121
 
122
122
 
123
- var _chunk5ZEADNNPjs = require('./chunk-5ZEADNNP.js');
123
+
124
+ var _chunkPMXG5WBCjs = require('./chunk-PMXG5WBC.js');
124
125
 
125
126
 
126
127
  var _chunk4HCRAOS5js = require('./chunk-4HCRAOS5.js');
@@ -132,7 +133,7 @@ var _chunk3FBCC4G3js = require('./chunk-3FBCC4G3.js');
132
133
 
133
134
 
134
135
 
135
- var _chunkWZJDLITGjs = require('./chunk-WZJDLITG.js');
136
+ var _chunkQ4FXESVTjs = require('./chunk-Q4FXESVT.js');
136
137
 
137
138
 
138
139
  var _chunk32HM6MDDjs = require('./chunk-32HM6MDD.js');
@@ -255,7 +256,7 @@ function useDataListRetriever(params) {
255
256
  const abortControllerRef = _react.useRef.call(void 0, null);
256
257
  const isFetchingRef = _react.useRef.call(void 0, false);
257
258
  const resolvedType = params.module;
258
- const resolvedService = _chunkWZJDLITGjs.AbstractService;
259
+ const resolvedService = _chunkQ4FXESVTjs.AbstractService;
259
260
  const parsePageParams = _react.useCallback.call(void 0, (url) => {
260
261
  if (!url) return null;
261
262
  try {
@@ -968,7 +969,7 @@ function usePageTracker() {
968
969
  const moduleName = pathParts[0];
969
970
  const entityId = pathParts.length > 1 ? pathParts[1] : null;
970
971
  if (!entityId) return;
971
- const trackablePages = _chunk5ZEADNNPjs.getTrackablePages.call(void 0, );
972
+ const trackablePages = _chunkPMXG5WBCjs.getTrackablePages.call(void 0, );
972
973
  const foundModule = trackablePages.find((mod) => mod.pageUrl === `/${moduleName}`);
973
974
  if (!foundModule) return;
974
975
  const baseUrl = `/${moduleName}/${entityId}`;
@@ -1015,7 +1016,7 @@ function usePushNotifications() {
1015
1016
  try {
1016
1017
  const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _31 => _31.id])}`;
1017
1018
  const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
1018
- const registration = await navigator.serviceWorker.register(`${_chunk5ZEADNNPjs.getAppUrl.call(void 0, )}/sw.js`);
1019
+ const registration = await navigator.serviceWorker.register(`${_chunkPMXG5WBCjs.getAppUrl.call(void 0, )}/sw.js`);
1019
1020
  let permission = Notification.permission;
1020
1021
  if (permission === "default") {
1021
1022
  permission = await Notification.requestPermission();
@@ -1040,7 +1041,7 @@ function usePushNotifications() {
1040
1041
  };
1041
1042
  const subscriptionHash = btoa(JSON.stringify(plainSubscription));
1042
1043
  if (lastRegisteredSubscription !== subscriptionHash) {
1043
- await _chunkL6LH7WA4js.PushService.register({ data: plainSubscription });
1044
+ await _chunkPO5Q3H5Ijs.PushService.register({ data: plainSubscription });
1044
1045
  sessionStorage.setItem(sessionKey, subscriptionHash);
1045
1046
  }
1046
1047
  } catch (error) {
@@ -1123,7 +1124,7 @@ function useSocket({ token }) {
1123
1124
  });
1124
1125
  }, "handleMessage");
1125
1126
  const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
1126
- const notification = _chunkWZJDLITGjs.rehydrate.call(void 0, _chunkWZJDLITGjs.Modules.Notification, data);
1127
+ const notification = _chunkQ4FXESVTjs.rehydrate.call(void 0, _chunkQ4FXESVTjs.Modules.Notification, data);
1127
1128
  if (notification) {
1128
1129
  setSocketNotifications((prev) => {
1129
1130
  const newNotifications = [...prev, notification];
@@ -1214,20 +1215,20 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
1214
1215
  if (!token && dehydratedUser) setDehydratedUser(null);
1215
1216
  }, [dehydratedUser, setDehydratedUser]);
1216
1217
  const matchUrlToModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
1217
- const moduleKeys = Object.getOwnPropertyNames(_chunkWZJDLITGjs.Modules).filter(
1218
+ const moduleKeys = Object.getOwnPropertyNames(_chunkQ4FXESVTjs.Modules).filter(
1218
1219
  (key) => key !== "prototype" && key !== "_factory" && key !== "length" && key !== "name"
1219
1220
  );
1220
1221
  const matchedModuleKey = moduleKeys.find((key) => {
1221
- const descriptor2 = Object.getOwnPropertyDescriptor(_chunkWZJDLITGjs.Modules, key);
1222
+ const descriptor2 = Object.getOwnPropertyDescriptor(_chunkQ4FXESVTjs.Modules, key);
1222
1223
  if (!_optionalChain([descriptor2, 'optionalAccess', _36 => _36.get])) return false;
1223
- const selectedModule = descriptor2.get.call(_chunkWZJDLITGjs.Modules);
1224
+ const selectedModule = descriptor2.get.call(_chunkQ4FXESVTjs.Modules);
1224
1225
  return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _37 => _37.pageUrl, 'optionalAccess', _38 => _38.toLowerCase, 'call', _39 => _39()]));
1225
1226
  });
1226
1227
  if (!matchedModuleKey) return void 0;
1227
- const descriptor = Object.getOwnPropertyDescriptor(_chunkWZJDLITGjs.Modules, matchedModuleKey);
1228
- return _optionalChain([descriptor, 'optionalAccess', _40 => _40.get, 'optionalAccess', _41 => _41.call, 'call', _42 => _42(_chunkWZJDLITGjs.Modules)]);
1228
+ const descriptor = Object.getOwnPropertyDescriptor(_chunkQ4FXESVTjs.Modules, matchedModuleKey);
1229
+ return _optionalChain([descriptor, 'optionalAccess', _40 => _40.get, 'optionalAccess', _41 => _41.call, 'call', _42 => _42(_chunkQ4FXESVTjs.Modules)]);
1229
1230
  }, "matchUrlToModule");
1230
- const currentUser = dehydratedUser ? _chunkWZJDLITGjs.rehydrate.call(void 0, _chunkWZJDLITGjs.Modules.User, dehydratedUser) : null;
1231
+ const currentUser = dehydratedUser ? _chunkQ4FXESVTjs.rehydrate.call(void 0, _chunkQ4FXESVTjs.Modules.User, dehydratedUser) : null;
1231
1232
  const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _43 => _43.company]), () => ( null));
1232
1233
  const setUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (user) => {
1233
1234
  if (user) setDehydratedUser(user.dehydrate());
@@ -1309,24 +1310,24 @@ function Breadcrumb2({ items }) {
1309
1310
  const generateUrl = usePageUrlGenerator();
1310
1311
  const t = _nextintl.useTranslations.call(void 0, );
1311
1312
  const [open, setOpen] = _react.useState.call(void 0, false);
1312
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Breadcrumb, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.BreadcrumbList, { children: [
1313
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.BreadcrumbItem, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Link, { href: generateUrl({ page: `/` }), children: t(`generic.home`) }) }),
1314
- items.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.BreadcrumbSeparator, {}),
1313
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Breadcrumb, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.BreadcrumbList, { children: [
1314
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.BreadcrumbItem, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Link, { href: generateUrl({ page: `/` }), children: t(`generic.home`) }) }),
1315
+ items.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.BreadcrumbSeparator, {}),
1315
1316
  items.length > ITEMS_TO_DISPLAY ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1316
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.BreadcrumbItem, { children: items[0].href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Link, { href: items[0].href, children: items[0].name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: items[0].name }) }),
1317
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.BreadcrumbSeparator, {}),
1318
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.BreadcrumbItem, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.DropdownMenu, { open, onOpenChange: setOpen, children: [
1319
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DropdownMenuTrigger, { className: "flex items-center gap-1", "aria-label": "Toggle menu", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.BreadcrumbEllipsis, { className: "h-4 w-4" }) }),
1320
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DropdownMenuContent, { align: "start", children: items.slice(1, -ITEMS_TO_DISPLAY + 1).map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DropdownMenuItem, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Link, { href: item.href ? item.href : "#", children: item.name }) }, index)) })
1317
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.BreadcrumbItem, { children: items[0].href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Link, { href: items[0].href, children: items[0].name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: items[0].name }) }),
1318
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.BreadcrumbSeparator, {}),
1319
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.BreadcrumbItem, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.DropdownMenu, { open, onOpenChange: setOpen, children: [
1320
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DropdownMenuTrigger, { className: "flex items-center gap-1", "aria-label": "Toggle menu", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.BreadcrumbEllipsis, { className: "h-4 w-4" }) }),
1321
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DropdownMenuContent, { align: "start", children: items.slice(1, -ITEMS_TO_DISPLAY + 1).map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DropdownMenuItem, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Link, { href: item.href ? item.href : "#", children: item.name }) }, index)) })
1321
1322
  ] }) }),
1322
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.BreadcrumbSeparator, {}),
1323
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.BreadcrumbSeparator, {}),
1323
1324
  items.slice(-ITEMS_TO_DISPLAY + 1).map((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
1324
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.BreadcrumbItem, { children: item.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Link, { href: item.href, children: item.name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: item.name }) }),
1325
- index < items.slice(-ITEMS_TO_DISPLAY + 1).length - 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.BreadcrumbSeparator, {})
1325
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.BreadcrumbItem, { children: item.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Link, { href: item.href, children: item.name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: item.name }) }),
1326
+ index < items.slice(-ITEMS_TO_DISPLAY + 1).length - 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.BreadcrumbSeparator, {})
1326
1327
  ] }, index))
1327
1328
  ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: items.map((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
1328
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.BreadcrumbItem, { children: item.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Link, { href: item.href, children: item.name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: item.name }) }),
1329
- index < items.length - 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.BreadcrumbSeparator, {})
1329
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.BreadcrumbItem, { children: item.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Link, { href: item.href, children: item.name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: item.name }) }),
1330
+ index < items.length - 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.BreadcrumbSeparator, {})
1330
1331
  ] }, index)) })
1331
1332
  ] }) });
1332
1333
  }
@@ -1343,7 +1344,7 @@ function ContentTitle({ type, element, functions, className }) {
1343
1344
  setClientFunctions(functions);
1344
1345
  }, [functions]);
1345
1346
  if (!element) return null;
1346
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkLJRD4SRVjs.cn.call(void 0, `mb-4 flex w-full flex-col`, className), children: [
1347
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkDEYKTLA3js.cn.call(void 0, `mb-4 flex w-full flex-col`, className), children: [
1347
1348
  (type || isClient) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-row items-center justify-between gap-x-4", children: [
1348
1349
  type && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `text-muted-foreground text-xl font-light`, children: type }),
1349
1350
  isClient && clientFunctions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-row items-center justify-start", children: clientFunctions })
@@ -1373,7 +1374,7 @@ var useSharedContext = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () =
1373
1374
  function Header({ children }) {
1374
1375
  const { breadcrumbs } = useSharedContext();
1375
1376
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "header", { className: `sticky top-0 z-10 flex h-12 flex-col items-center justify-start gap-x-4 border-b`, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-sidebar flex h-12 w-full flex-row items-center justify-between pl-2 pr-4", children: [
1376
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SidebarTrigger, { "aria-label": "Toggle sidebar" }),
1377
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SidebarTrigger, { "aria-label": "Toggle sidebar" }),
1377
1378
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Breadcrumb2, { items: breadcrumbs }) }),
1378
1379
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-64 flex-row items-center justify-end gap-x-4 whitespace-nowrap", children: children ? children : null })
1379
1380
  ] }) });
@@ -1389,7 +1390,7 @@ function ModeToggleSwitch() {
1389
1390
  const handleToggle = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
1390
1391
  setTheme(theme === "light" ? "dark" : "light");
1391
1392
  }, "handleToggle");
1392
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Switch, { checked: theme === "dark", onCheckedChange: handleToggle, className: "relative", children: theme === "dark" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.MoonIcon, { className: "text-primary-foreground h-4 w-4" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.SunIcon, { className: "text-primary h-4 w-4" }) }) });
1393
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Switch, { checked: theme === "dark", onCheckedChange: handleToggle, className: "relative", children: theme === "dark" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.MoonIcon, { className: "text-primary-foreground h-4 w-4" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.SunIcon, { className: "text-primary h-4 w-4" }) }) });
1393
1394
  }
1394
1395
  _chunk7QVYU63Ejs.__name.call(void 0, ModeToggleSwitch, "ModeToggleSwitch");
1395
1396
 
@@ -1449,16 +1450,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, PageSection, "PageSection");
1449
1450
  function RecentPagesNavigator() {
1450
1451
  const recentPages = _jotai.useAtomValue.call(void 0, _chunk3FBCC4G3js.recentPagesAtom);
1451
1452
  const t = _nextintl.useTranslations.call(void 0, );
1452
- const { state } = _chunkEZK3H6EJjs.useSidebar.call(void 0, );
1453
+ const { state } = _chunk5IET37O4js.useSidebar.call(void 0, );
1453
1454
  if (recentPages.length === 0) {
1454
1455
  return null;
1455
1456
  }
1456
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.DropdownMenu, { children: [
1457
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full cursor-pointer items-center gap-2", children: state === "collapsed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.HistoryIcon, { className: "h-4 w-4" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t(`generic.recent_pages`) }) }) }),
1458
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.DropdownMenuContent, { align: "start", className: "w-96", children: [
1459
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DropdownMenuLabel, { children: t(`generic.recent_pages`) }),
1460
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DropdownMenuSeparator, {}),
1461
- recentPages.map((page, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Link, { href: page.url, className: "flex items-center gap-2", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
1457
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.DropdownMenu, { children: [
1458
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full cursor-pointer items-center gap-2", children: state === "collapsed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.HistoryIcon, { className: "h-4 w-4" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t(`generic.recent_pages`) }) }) }),
1459
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.DropdownMenuContent, { align: "start", className: "w-96", children: [
1460
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DropdownMenuLabel, { children: t(`generic.recent_pages`) }),
1461
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DropdownMenuSeparator, {}),
1462
+ recentPages.map((page, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Link, { href: page.url, className: "flex items-center gap-2", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
1462
1463
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-sm", children: page.title }),
1463
1464
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground text-xs font-normal", children: t(`types.${page.moduleType}`, { count: 1 }) })
1464
1465
  ] }) }) }, `${page.url}-${index}`))
@@ -1472,7 +1473,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, RecentPagesNavigator, "RecentPagesNavigator
1472
1473
  function PageContainer({ children, testId, className }) {
1473
1474
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex h-full w-full flex-col`, "data-testid": testId, children: [
1474
1475
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header, {}),
1475
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className: _chunkLJRD4SRVjs.cn.call(void 0, `flex w-full flex-1 flex-col gap-y-4 pt-4 pl-4 pr-4`, className), children })
1476
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className: _chunkDEYKTLA3js.cn.call(void 0, `flex w-full flex-1 flex-col gap-y-4 pt-4 pl-4 pr-4`, className), children })
1476
1477
  ] });
1477
1478
  }
1478
1479
  _chunk7QVYU63Ejs.__name.call(void 0, PageContainer, "PageContainer");
@@ -1576,20 +1577,20 @@ function TabsContainer({
1576
1577
  if (validTabs.length === 1) {
1577
1578
  return validTabs[0].content;
1578
1579
  }
1579
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Tabs, { defaultValue, className: "w-full", children: [
1580
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Tabs, { defaultValue, className: "w-full", children: [
1580
1581
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between", children: [
1581
1582
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1582
- _chunkEZK3H6EJjs.TabsList,
1583
+ _chunk5IET37O4js.TabsList,
1583
1584
  {
1584
- className: _chunkLJRD4SRVjs.cn.call(void 0,
1585
+ className: _chunkDEYKTLA3js.cn.call(void 0,
1585
1586
  `${style ? `my-4 flex w-full justify-start rounded-none border-b bg-transparent pb-0` : ``}`,
1586
1587
  tabsListClassName
1587
1588
  ),
1588
1589
  children: validTabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1589
- _chunkEZK3H6EJjs.TabsTrigger,
1590
+ _chunk5IET37O4js.TabsTrigger,
1590
1591
  {
1591
1592
  value: tab.label,
1592
- className: _chunkLJRD4SRVjs.cn.call(void 0,
1593
+ className: _chunkDEYKTLA3js.cn.call(void 0,
1593
1594
  `${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`}`,
1594
1595
  tabsTriggerClassName
1595
1596
  ),
@@ -1601,7 +1602,7 @@ function TabsContainer({
1601
1602
  ),
1602
1603
  additionalComponent && additionalComponent
1603
1604
  ] }),
1604
- scrollAreaClassName ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.ScrollArea, { className: scrollAreaClassName, children: validTabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TabsContent, { value: tab.label, children: tab.content }, tab.label)) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: validTabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TabsContent, { value: tab.label, children: tab.content }, tab.label)) })
1605
+ scrollAreaClassName ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.ScrollArea, { className: scrollAreaClassName, children: validTabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TabsContent, { value: tab.label, children: tab.content }, tab.label)) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: validTabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TabsContent, { value: tab.label, children: tab.content }, tab.label)) })
1605
1606
  ] });
1606
1607
  }
1607
1608
  _chunk7QVYU63Ejs.__name.call(void 0, TabsContainer, "TabsContainer");
@@ -1609,7 +1610,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, TabsContainer, "TabsContainer");
1609
1610
  // src/components/contents/AttributeElement.tsx
1610
1611
 
1611
1612
  function AttributeElement({ inline, title, value, className }) {
1612
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkLJRD4SRVjs.cn.call(void 0, `flex ${inline === true ? "flex-row" : "flex-col"} my-1 justify-start`, className), children: [
1613
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkDEYKTLA3js.cn.call(void 0, `flex ${inline === true ? "flex-row" : "flex-col"} my-1 justify-start`, className), children: [
1613
1614
  title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${inline === true ? "min-w-48 pr-4" : "w-full"} text-sm font-semibold`, children: title }),
1614
1615
  value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col text-sm", children: value })
1615
1616
  ] });
@@ -1632,7 +1633,7 @@ function UserDetails({ user }) {
1632
1633
  const { title } = useSharedContext();
1633
1634
  let roles = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
1634
1635
  if (user.roles && user.roles.length > 0) {
1635
- 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, _chunkEZK3H6EJjs.Link, { href: generateUrl({ page: _chunkWZJDLITGjs.Modules.Role, id: role.id }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Badge, { className: "mr-2", variant: `default`, children: t(`foundations.role.roles`, { role: role.id.replaceAll(`-`, ``) }) }) }, role.id)) }) });
1636
+ 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, _chunk5IET37O4js.Link, { href: generateUrl({ page: _chunkQ4FXESVTjs.Modules.Role, id: role.id }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Badge, { className: "mr-2", variant: `default`, children: t(`foundations.role.roles`, { role: role.id.replaceAll(`-`, ``) }) }) }, role.id)) }) });
1636
1637
  }
1637
1638
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
1638
1639
  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,
@@ -1646,7 +1647,7 @@ function UserDetails({ user }) {
1646
1647
  }
1647
1648
  ) }),
1648
1649
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { type: title.type, element: title.element, functions: title.functions }),
1649
- user.isDeleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Badge, { variant: "destructive", children: t(`foundations.user.errors.deleted`) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: !user.isActivated && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Badge, { variant: "destructive", children: t(`foundations.user.errors.inactive`) }) }) }),
1650
+ user.isDeleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Badge, { variant: "destructive", children: t(`foundations.user.errors.deleted`) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: !user.isActivated && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Badge, { variant: "destructive", children: t(`foundations.user.errors.inactive`) }) }) }),
1650
1651
  roles,
1651
1652
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AttributeElement, { inline: true, title: t(`foundations.user.fields.title.label`), value: user.title }),
1652
1653
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AttributeElement, { inline: true, title: t(`generic.fields.email.label`), value: user.email }),
@@ -1669,31 +1670,31 @@ function UserAvatar({ user, className, showFull, showLink }) {
1669
1670
  return _nullishCoalesce(initials, () => ( ""));
1670
1671
  }, "getInitials");
1671
1672
  const getAvatar = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
1672
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Avatar, { className: `h-6 w-6 ${className}`, children: [
1673
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _47 => _47.avatar]) }),
1674
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.AvatarFallback, { children: getInitials(user.name) })
1673
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Avatar, { className: `h-6 w-6 ${className}`, children: [
1674
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _47 => _47.avatar]) }),
1675
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.AvatarFallback, { children: getInitials(user.name) })
1675
1676
  ] }) });
1676
1677
  }, "getAvatar");
1677
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Tooltip, { children: [
1678
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TooltipTrigger, { asChild: true, children: showLink === false ? (
1678
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Tooltip, { children: [
1679
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TooltipTrigger, { asChild: true, children: showLink === false ? (
1679
1680
  // If showLink is explicitly false, never show a link
1680
- showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkLJRD4SRVjs.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className), children: [
1681
+ showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkDEYKTLA3js.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className), children: [
1681
1682
  getAvatar(),
1682
1683
  user.name
1683
1684
  ] }) : getAvatar()
1684
1685
  ) : showFull ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1685
- _chunkEZK3H6EJjs.Link,
1686
+ _chunk5IET37O4js.Link,
1686
1687
  {
1687
- href: generateUrl({ page: _chunkWZJDLITGjs.Modules.User, id: user.id }),
1688
- className: _chunkLJRD4SRVjs.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className),
1688
+ href: generateUrl({ page: _chunkQ4FXESVTjs.Modules.User, id: user.id }),
1689
+ className: _chunkDEYKTLA3js.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className),
1689
1690
  onClick: (e) => e.stopPropagation(),
1690
1691
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center gap-x-2", children: [
1691
1692
  getAvatar(),
1692
1693
  user.name
1693
1694
  ] })
1694
1695
  }
1695
- ) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Link, { href: generateUrl({ page: _chunkWZJDLITGjs.Modules.User, id: user.id }), className, children: getAvatar() }) : getAvatar() }),
1696
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TooltipContent, { children: user.name })
1696
+ ) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Link, { href: generateUrl({ page: _chunkQ4FXESVTjs.Modules.User, id: user.id }), className, children: getAvatar() }) : getAvatar() }),
1697
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TooltipContent, { children: user.name })
1697
1698
  ] });
1698
1699
  }
1699
1700
  _chunk7QVYU63Ejs.__name.call(void 0, UserAvatar, "UserAvatar");
@@ -1704,7 +1705,7 @@ function UserIndexDetails() {
1704
1705
  const { user } = useUserContext();
1705
1706
  const { currentUser } = useCurrentUserContext();
1706
1707
  if (!user || !currentUser) return null;
1707
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-row gap-x-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Card, { className: "min-h-96 w-96 flex-shrink-0 self-start p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardContent, { className: "flex h-full flex-col gap-y-4 p-2", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full justify-start gap-x-4", children: [
1708
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-row gap-x-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Card, { className: "min-h-96 w-96 flex-shrink-0 self-start p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardContent, { className: "flex h-full flex-col gap-y-4 p-2", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full justify-start gap-x-4", children: [
1708
1709
  user.avatar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user, className: "h-40 w-40" }),
1709
1710
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col justify-start gap-y-2", children: [
1710
1711
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-primary text-2xl font-semibold", children: user.name }),
@@ -1742,18 +1743,18 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserIndexContainer, "UserIndexContainer");
1742
1743
  function UsersListContainerInternal() {
1743
1744
  const { hasPermissionToModule } = useCurrentUserContext();
1744
1745
  const t = _nextintl.useTranslations.call(void 0, );
1745
- if (!hasPermissionToModule({ module: _chunkWZJDLITGjs.Modules.User, action: "delete" /* Delete */ })) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {});
1746
+ if (!hasPermissionToModule({ module: _chunkQ4FXESVTjs.Modules.User, action: "delete" /* Delete */ })) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {});
1746
1747
  const tabs = [
1747
1748
  {
1748
1749
  label: t(`types.users`, { count: 2 }),
1749
1750
  content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {}),
1750
- modules: [_chunkWZJDLITGjs.Modules.Company],
1751
+ modules: [_chunkQ4FXESVTjs.Modules.Company],
1751
1752
  action: "read" /* Read */
1752
1753
  },
1753
1754
  {
1754
1755
  label: t(`foundations.user.deleted`),
1755
1756
  content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, { isDeleted: true }),
1756
- modules: [_chunkWZJDLITGjs.Modules.Company],
1757
+ modules: [_chunkQ4FXESVTjs.Modules.Company],
1757
1758
  action: "update" /* Update */
1758
1759
  }
1759
1760
  ];
@@ -1771,9 +1772,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersListContainer, "UsersListContainer");
1771
1772
  function AdminUsersListInternal({ company }) {
1772
1773
  const t = _nextintl.useTranslations.call(void 0, );
1773
1774
  const data = useDataListRetriever({
1774
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL6LH7WA4js.UserService.findManyForAmin(params), "retriever"),
1775
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkPO5Q3H5Ijs.UserService.findManyForAmin(params), "retriever"),
1775
1776
  retrieverParams: { companyId: company.id },
1776
- module: _chunkWZJDLITGjs.Modules.User
1777
+ module: _chunkQ4FXESVTjs.Modules.User
1777
1778
  });
1778
1779
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1779
1780
  ContentListTable,
@@ -1781,7 +1782,7 @@ function AdminUsersListInternal({ company }) {
1781
1782
  title: t(`types.users`, { count: 2 }),
1782
1783
  data,
1783
1784
  fields: ["name" /* name */, "email" /* email */, "createdAt" /* createdAt */],
1784
- tableGeneratorType: _chunkWZJDLITGjs.Modules.User,
1785
+ tableGeneratorType: _chunkQ4FXESVTjs.Modules.User,
1785
1786
  functions: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserEditor, { propagateChanges: data.refresh, adminCreated: true })
1786
1787
  }
1787
1788
  );
@@ -1803,9 +1804,9 @@ function CompanyUsersList({ isDeleted }) {
1803
1804
  const t = _nextintl.useTranslations.call(void 0, );
1804
1805
  const data = useDataListRetriever({
1805
1806
  ready: !!company,
1806
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL6LH7WA4js.UserService.findAllUsers(params), "retriever"),
1807
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkPO5Q3H5Ijs.UserService.findAllUsers(params), "retriever"),
1807
1808
  retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _48 => _48.id]), isDeleted },
1808
- module: _chunkWZJDLITGjs.Modules.User
1809
+ module: _chunkQ4FXESVTjs.Modules.User
1809
1810
  });
1810
1811
  _react.useEffect.call(void 0, () => {
1811
1812
  if (company) data.setReady(true);
@@ -1818,7 +1819,7 @@ function CompanyUsersList({ isDeleted }) {
1818
1819
  {
1819
1820
  data,
1820
1821
  fields: ["name" /* name */, "email" /* email */],
1821
- tableGeneratorType: _chunkWZJDLITGjs.Modules.User,
1822
+ tableGeneratorType: _chunkQ4FXESVTjs.Modules.User,
1822
1823
  functions,
1823
1824
  title: t(`types.users`, { count: 2 })
1824
1825
  }
@@ -1832,18 +1833,18 @@ function ContributorsList({ content }) {
1832
1833
  const generateUrl = usePageUrlGenerator();
1833
1834
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-row items-center", children: [
1834
1835
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1835
- _chunkEZK3H6EJjs.Link,
1836
+ _chunk5IET37O4js.Link,
1836
1837
  {
1837
- href: generateUrl({ page: _chunkWZJDLITGjs.Modules.User, id: content.author.id }),
1838
+ href: generateUrl({ page: _chunkQ4FXESVTjs.Modules.User, id: content.author.id }),
1838
1839
  onClick: (e) => e.stopPropagation(),
1839
1840
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: content.author, className: "mr-1 h-6 w-6" })
1840
1841
  },
1841
1842
  content.author.id
1842
1843
  ),
1843
1844
  /* @__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,
1844
- _chunkEZK3H6EJjs.Link,
1845
+ _chunk5IET37O4js.Link,
1845
1846
  {
1846
- href: generateUrl({ page: _chunkWZJDLITGjs.Modules.User, id: editor.id }),
1847
+ href: generateUrl({ page: _chunkQ4FXESVTjs.Modules.User, id: editor.id }),
1847
1848
  onClick: (e) => e.stopPropagation(),
1848
1849
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: editor, className: "h-5 w-5" })
1849
1850
  },
@@ -1859,8 +1860,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContributorsList, "ContributorsList");
1859
1860
  function RelevantUsersList({ id }) {
1860
1861
  const t = _nextintl.useTranslations.call(void 0, );
1861
1862
  const data = useDataListRetriever({
1862
- module: _chunkWZJDLITGjs.Modules.User,
1863
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL6LH7WA4js.UserService.findRelevant(params), "retriever"),
1863
+ module: _chunkQ4FXESVTjs.Modules.User,
1864
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkPO5Q3H5Ijs.UserService.findRelevant(params), "retriever"),
1864
1865
  retrieverParams: { id }
1865
1866
  });
1866
1867
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1868,7 +1869,7 @@ function RelevantUsersList({ id }) {
1868
1869
  {
1869
1870
  data,
1870
1871
  fields: ["name" /* name */, "email" /* email */, "relevance" /* relevance */],
1871
- tableGeneratorType: _chunkWZJDLITGjs.Modules.User,
1872
+ tableGeneratorType: _chunkQ4FXESVTjs.Modules.User,
1872
1873
  title: t(`generic.relevant_users`)
1873
1874
  }
1874
1875
  );
@@ -1881,16 +1882,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RelevantUsersList, "RelevantUsersList");
1881
1882
  function RoleUsersList({ role }) {
1882
1883
  const t = _nextintl.useTranslations.call(void 0, );
1883
1884
  const data = useDataListRetriever({
1884
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL6LH7WA4js.UserService.findAllUsersByRole(params), "retriever"),
1885
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkPO5Q3H5Ijs.UserService.findAllUsersByRole(params), "retriever"),
1885
1886
  retrieverParams: { roleId: role.id },
1886
- module: _chunkWZJDLITGjs.Modules.User
1887
+ module: _chunkQ4FXESVTjs.Modules.User
1887
1888
  });
1888
1889
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1889
1890
  ContentListTable,
1890
1891
  {
1891
1892
  data,
1892
1893
  fields: ["name" /* name */, "email" /* email */],
1893
- tableGeneratorType: _chunkWZJDLITGjs.Modules.User,
1894
+ tableGeneratorType: _chunkQ4FXESVTjs.Modules.User,
1894
1895
  title: t(`types.users`, { count: 2 })
1895
1896
  }
1896
1897
  );
@@ -1905,7 +1906,7 @@ function UserListInAdd({ data, existingUsers, setSelectedUser, setLevelOpen }) {
1905
1906
  (user) => existingUsers && !existingUsers.find((existingUser) => existingUser.id === user.id)
1906
1907
  ).map((user) => {
1907
1908
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, React4.default.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1908
- _chunkEZK3H6EJjs.CommandItem,
1909
+ _chunk5IET37O4js.CommandItem,
1909
1910
  {
1910
1911
  className: "cursor-pointer",
1911
1912
  onClick: (e) => {
@@ -1940,7 +1941,7 @@ function UsersList({ data, optionComponents, removeFunction, hideOptions, showRe
1940
1941
  {
1941
1942
  data,
1942
1943
  fields: ["name" /* name */, "email" /* email */],
1943
- tableGeneratorType: _chunkWZJDLITGjs.Modules.User,
1944
+ tableGeneratorType: _chunkQ4FXESVTjs.Modules.User,
1944
1945
  title: t(`types.users`, { count: 2 })
1945
1946
  }
1946
1947
  );
@@ -1953,8 +1954,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersList, "UsersList");
1953
1954
  function UsersListByContentIds({ contentIds }) {
1954
1955
  const t = _nextintl.useTranslations.call(void 0, );
1955
1956
  const data = useDataListRetriever({
1956
- module: _chunkWZJDLITGjs.Modules.User,
1957
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL6LH7WA4js.UserService.findManyByContentIds(params), "retriever"),
1957
+ module: _chunkQ4FXESVTjs.Modules.User,
1958
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkPO5Q3H5Ijs.UserService.findManyByContentIds(params), "retriever"),
1958
1959
  retrieverParams: { contentIds }
1959
1960
  });
1960
1961
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1962,7 +1963,7 @@ function UsersListByContentIds({ contentIds }) {
1962
1963
  {
1963
1964
  data,
1964
1965
  fields: ["name" /* name */, "email" /* email */],
1965
- tableGeneratorType: _chunkWZJDLITGjs.Modules.User,
1966
+ tableGeneratorType: _chunkQ4FXESVTjs.Modules.User,
1966
1967
  title: t(`generic.relevant_users`)
1967
1968
  }
1968
1969
  );
@@ -1984,7 +1985,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AllowedUsersDetails, "AllowedUsersDetails")
1984
1985
  var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
1985
1986
 
1986
1987
 
1987
- var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-CNXQ3WL3.js"))), {
1988
+ var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-7WYPN34K.js"))), {
1988
1989
  ssr: false
1989
1990
  });
1990
1991
  var BlockNoteEditorContainer = React4.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
@@ -1996,26 +1997,26 @@ var BlockNoteEditorContainer = React4.default.memo(/* @__PURE__ */ _chunk7QVYU63
1996
1997
 
1997
1998
  function ErrorDetails({ title, message, code }) {
1998
1999
  if (code === 403)
1999
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-xl max-w-xl", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Card, { className: "w-full", children: [
2000
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardHeader, { children: [
2001
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardTitle, { className: "text-foreground flex flex-col items-center gap-y-4 pb-10 text-4xl", children: [
2002
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/phlow-logo.webp", alt: "Phlow", width: 100, height: 100, priority: true }),
2000
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-xl max-w-xl", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Card, { className: "w-full", children: [
2001
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardHeader, { children: [
2002
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardTitle, { className: "text-foreground flex flex-col items-center gap-y-4 pb-10 text-4xl", children: [
2003
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/logo.webp", alt: "Logo", width: 100, height: 100, priority: true }),
2003
2004
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: "Unauthorised" })
2004
2005
  ] }),
2005
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardDescription, { className: "text-center text-lg", children: "We are sorry, but you are not allowed to access this content." })
2006
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardDescription, { className: "text-center text-lg", children: "We are sorry, but you are not allowed to access this content." })
2006
2007
  ] }),
2007
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardContent, {})
2008
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardContent, {})
2008
2009
  ] }) });
2009
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-xl max-w-xl", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Card, { className: "w-full", children: [
2010
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardHeader, { children: [
2011
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardTitle, { className: "text-foreground flex flex-col items-center gap-y-4 pb-10 text-center text-4xl", children: [
2012
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/phlow-logo.webp", alt: "Phlow", width: 100, height: 100, priority: true }),
2010
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-xl max-w-xl", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Card, { className: "w-full", children: [
2011
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardHeader, { children: [
2012
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardTitle, { className: "text-foreground flex flex-col items-center gap-y-4 pb-10 text-center text-4xl", children: [
2013
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/logo.webp", alt: "Logo", width: 100, height: 100, priority: true }),
2013
2014
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: code }),
2014
2015
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: title })
2015
2016
  ] }),
2016
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardDescription, { className: "text-center text-lg", children: message })
2017
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardDescription, { className: "text-center text-lg", children: message })
2017
2018
  ] }),
2018
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardContent, {})
2019
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardContent, {})
2019
2020
  ] }) });
2020
2021
  }
2021
2022
  _chunk7QVYU63Ejs.__name.call(void 0, ErrorDetails, "ErrorDetails");
@@ -2043,7 +2044,7 @@ function CommonAssociationTrigger({
2043
2044
  const t = _nextintl.useTranslations.call(void 0, );
2044
2045
  if (hasDestination)
2045
2046
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hover:text-accent cursor-pointer", onClick: onTrigger, children: "Join" });
2046
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Button, { variant: `outline`, size: `sm`, onClick: onTrigger, children: t(`generic.association.label`, {
2047
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Button, { variant: `outline`, size: `sm`, onClick: onTrigger, children: t(`generic.association.label`, {
2047
2048
  source: sourceType,
2048
2049
  destination: destinationType
2049
2050
  }) });
@@ -2073,29 +2074,29 @@ function CommonAssociationCommandDialog({
2073
2074
  _react.useEffect.call(void 0, () => {
2074
2075
  if (show) updateSearchTerm(searchTerm);
2075
2076
  }, [show, searchTerm]);
2076
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CommandDialog, { open: show, onOpenChange: setShow, children: [
2077
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.DialogHeader, { className: "flex flex-col items-start p-4 pb-0", children: [
2078
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DialogTitle, { children: t(`generic.association.label`, {
2077
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CommandDialog, { open: show, onOpenChange: setShow, children: [
2078
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.DialogHeader, { className: "flex flex-col items-start p-4 pb-0", children: [
2079
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DialogTitle, { children: t(`generic.association.label`, {
2079
2080
  source,
2080
2081
  destination
2081
2082
  }) }),
2082
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DialogDescription, { children: t(`generic.association.description`, {
2083
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DialogDescription, { children: t(`generic.association.description`, {
2083
2084
  source,
2084
2085
  destination,
2085
2086
  destination_name: destinationName
2086
2087
  }) })
2087
2088
  ] }),
2088
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Command, { shouldFilter: false, className: "p-4", children: [
2089
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Command, { shouldFilter: false, className: "p-4", children: [
2089
2090
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2090
- _chunkEZK3H6EJjs.CommandInput,
2091
+ _chunk5IET37O4js.CommandInput,
2091
2092
  {
2092
2093
  placeholder: t(`generic.search.placeholder`, { type: source }),
2093
2094
  value: searchTerm,
2094
2095
  onValueChange: setSearchTerm
2095
2096
  }
2096
2097
  ),
2097
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CommandList, { className: "mt-3 h-auto max-h-96 min-h-96 max-w-full overflow-y-auto overflow-x-hidden", children: [
2098
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CommandEmpty, { children: t(`generic.search.no_results`, { type: source }) }),
2098
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CommandList, { className: "mt-3 h-auto max-h-96 min-h-96 max-w-full overflow-y-auto overflow-x-hidden", children: [
2099
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CommandEmpty, { children: t(`generic.search.no_results`, { type: source }) }),
2099
2100
  children
2100
2101
  ] })
2101
2102
  ] })
@@ -2157,17 +2158,17 @@ function CommonDeleter({ deleteFunction, redirectTo, type, forceShow }) {
2157
2158
  }
2158
2159
  setIsDeleting(false);
2159
2160
  }, "handleDelete");
2160
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.AlertDialog, { open, onOpenChange: setOpen, children: [
2161
- forceShow ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.AlertDialogTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Button, { size: "sm", variant: "ghost", className: "text-muted-foreground hover:text-destructive", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2Icon, {}) }) }),
2162
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.AlertDialogContent, { className: `flex max-h-[70vh] max-w-3xl flex-col overflow-y-auto`, children: [
2163
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.AlertDialogHeader, { children: [
2164
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.AlertDialogTitle, { children: t(`generic.delete.title`, { type: t(`types.${type}`, { count: 1 }) }) }),
2165
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.AlertDialogDescription, { children: t(`generic.delete.subtitle`, { type: t(`types.${type}`, { count: 1 }) }) })
2161
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.AlertDialog, { open, onOpenChange: setOpen, children: [
2162
+ forceShow ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.AlertDialogTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Button, { size: "sm", variant: "ghost", className: "text-muted-foreground hover:text-destructive", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2Icon, {}) }) }),
2163
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.AlertDialogContent, { className: `flex max-h-[70vh] max-w-3xl flex-col overflow-y-auto`, children: [
2164
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.AlertDialogHeader, { children: [
2165
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.AlertDialogTitle, { children: t(`generic.delete.title`, { type: t(`types.${type}`, { count: 1 }) }) }),
2166
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.AlertDialogDescription, { children: t(`generic.delete.subtitle`, { type: t(`types.${type}`, { count: 1 }) }) })
2166
2167
  ] }),
2167
2168
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-destructive p-4 text-sm", children: t(`generic.delete.description`, { type: t(`types.${type}`, { count: 1 }) }) }),
2168
2169
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-end", children: [
2169
2170
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2170
- _chunkEZK3H6EJjs.Button,
2171
+ _chunk5IET37O4js.Button,
2171
2172
  {
2172
2173
  className: "mr-2",
2173
2174
  variant: "outline",
@@ -2178,7 +2179,7 @@ function CommonDeleter({ deleteFunction, redirectTo, type, forceShow }) {
2178
2179
  }
2179
2180
  ),
2180
2181
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2181
- _chunkEZK3H6EJjs.Button,
2182
+ _chunk5IET37O4js.Button,
2182
2183
  {
2183
2184
  type: "submit",
2184
2185
  onClick: (e) => {
@@ -2206,7 +2207,7 @@ function CommonEditorButtons({ isEdit, form, disabled, setOpen }) {
2206
2207
  const t = _nextintl.useTranslations.call(void 0, );
2207
2208
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-end", children: [
2208
2209
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2209
- _chunkEZK3H6EJjs.Button,
2210
+ _chunk5IET37O4js.Button,
2210
2211
  {
2211
2212
  className: "mr-2",
2212
2213
  variant: "outline",
@@ -2216,7 +2217,7 @@ function CommonEditorButtons({ isEdit, form, disabled, setOpen }) {
2216
2217
  children: t(`generic.buttons.cancel`)
2217
2218
  }
2218
2219
  ),
2219
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Button, { type: "submit", disabled: form.formState.isSubmitting || disabled, "data-testid": `modal-button-create`, children: isEdit ? t(`generic.buttons.confirm_update`) : t(`generic.buttons.confirm_create`) })
2220
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Button, { type: "submit", disabled: form.formState.isSubmitting || disabled, "data-testid": `modal-button-create`, children: isEdit ? t(`generic.buttons.confirm_update`) : t(`generic.buttons.confirm_create`) })
2220
2221
  ] });
2221
2222
  }
2222
2223
  _chunk7QVYU63Ejs.__name.call(void 0, CommonEditorButtons, "CommonEditorButtons");
@@ -2226,11 +2227,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, CommonEditorButtons, "CommonEditorButtons")
2226
2227
 
2227
2228
  function CommonEditorHeader({ type, name }) {
2228
2229
  const t = _nextintl.useTranslations.call(void 0, );
2229
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.DialogHeader, { children: [
2230
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DialogTitle, { children: name ? t(`generic.edit.update.title`, {
2230
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.DialogHeader, { children: [
2231
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DialogTitle, { children: name ? t(`generic.edit.update.title`, {
2231
2232
  type
2232
2233
  }) : t(`generic.edit.create.title`, { type }) }),
2233
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DialogDescription, { children: name ? t(`generic.edit.update.description`, {
2234
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DialogDescription, { children: name ? t(`generic.edit.update.description`, {
2234
2235
  type,
2235
2236
  name
2236
2237
  }) : t(`generic.edit.create.description`, {
@@ -2246,7 +2247,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, CommonEditorHeader, "CommonEditorHeader");
2246
2247
 
2247
2248
  function CommonEditorTrigger({ isEdit, edit, create }) {
2248
2249
  const t = _nextintl.useTranslations.call(void 0, );
2249
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DialogTrigger, { asChild: true, children: isEdit ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Button, { size: "sm", variant: `ghost`, className: "text-muted-foreground", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PencilIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Button, { size: "sm", variant: `outline`, children: create ? create : t(`generic.buttons.create`) }) });
2250
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DialogTrigger, { asChild: true, children: isEdit ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Button, { size: "sm", variant: `ghost`, className: "text-muted-foreground", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PencilIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Button, { size: "sm", variant: `outline`, children: create ? create : t(`generic.buttons.create`) }) });
2250
2251
  }
2251
2252
  _chunk7QVYU63Ejs.__name.call(void 0, CommonEditorTrigger, "CommonEditorTrigger");
2252
2253
 
@@ -2325,12 +2326,12 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
2325
2326
  onSelect(void 0);
2326
2327
  setInputValue("");
2327
2328
  }, "handleClear");
2328
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Popover, { open: isOpen, onOpenChange: setIsOpen, children: [
2329
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.PopoverTrigger, { asChild: true, children }),
2330
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.PopoverContent, { className: _chunkLJRD4SRVjs.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: [
2329
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Popover, { open: isOpen, onOpenChange: setIsOpen, children: [
2330
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.PopoverTrigger, { asChild: true, children }),
2331
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.PopoverContent, { className: _chunkDEYKTLA3js.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: [
2331
2332
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative mb-3", children: [
2332
2333
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2333
- _chunkEZK3H6EJjs.Input,
2334
+ _chunk5IET37O4js.Input,
2334
2335
  {
2335
2336
  value: inputValue,
2336
2337
  onChange: (e) => handleInputChange(e.target.value),
@@ -2362,7 +2363,7 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
2362
2363
  ] }),
2363
2364
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-3 flex gap-2", children: [
2364
2365
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2365
- _chunkEZK3H6EJjs.Select,
2366
+ _chunk5IET37O4js.Select,
2366
2367
  {
2367
2368
  value: displayMonth.getMonth().toString(),
2368
2369
  onValueChange: (value2) => {
@@ -2371,13 +2372,13 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
2371
2372
  setDisplayMonth(newDate);
2372
2373
  },
2373
2374
  children: [
2374
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectTrigger, { className: "w-[130px]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectValue, {}) }),
2375
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectContent, { children: monthNames.map((month, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectItem, { value: index.toString(), children: month }, index)) })
2375
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectTrigger, { className: "w-[130px]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectValue, {}) }),
2376
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectContent, { children: monthNames.map((month, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectItem, { value: index.toString(), children: month }, index)) })
2376
2377
  ]
2377
2378
  }
2378
2379
  ),
2379
2380
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2380
- _chunkEZK3H6EJjs.Select,
2381
+ _chunk5IET37O4js.Select,
2381
2382
  {
2382
2383
  value: displayMonth.getFullYear().toString(),
2383
2384
  onValueChange: (value2) => {
@@ -2386,14 +2387,14 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
2386
2387
  setDisplayMonth(newDate);
2387
2388
  },
2388
2389
  children: [
2389
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectTrigger, { className: "w-[80px]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectValue, {}) }),
2390
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectContent, { children: yearOptions.reverse().map((year) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectItem, { value: year.toString(), children: year }, year)) })
2390
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectTrigger, { className: "w-[80px]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectValue, {}) }),
2391
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectContent, { children: yearOptions.reverse().map((year) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectItem, { value: year.toString(), children: year }, year)) })
2391
2392
  ]
2392
2393
  }
2393
2394
  )
2394
2395
  ] }),
2395
2396
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2396
- _chunkEZK3H6EJjs.Calendar,
2397
+ _chunk5IET37O4js.Calendar,
2397
2398
  {
2398
2399
  mode: "single",
2399
2400
  selected: value,
@@ -2441,13 +2442,13 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
2441
2442
  setDate(range);
2442
2443
  }
2443
2444
  }, "handleSelect");
2444
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkLJRD4SRVjs.cn.call(void 0, "grid gap-2"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Popover, { open, onOpenChange: setOpen, children: [
2445
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2446
- _chunkEZK3H6EJjs.Button,
2445
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkDEYKTLA3js.cn.call(void 0, "grid gap-2"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Popover, { open, onOpenChange: setOpen, children: [
2446
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2447
+ _chunk5IET37O4js.Button,
2447
2448
  {
2448
2449
  id: "date",
2449
2450
  variant: "outline",
2450
- className: _chunkLJRD4SRVjs.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
2451
+ className: _chunkDEYKTLA3js.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
2451
2452
  children: [
2452
2453
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
2453
2454
  _optionalChain([date, 'optionalAccess', _61 => _61.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
@@ -2458,9 +2459,9 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
2458
2459
  ]
2459
2460
  }
2460
2461
  ) }),
2461
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2 p-2", children: [
2462
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2 p-2", children: [
2462
2463
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2463
- _chunkEZK3H6EJjs.Calendar,
2464
+ _chunk5IET37O4js.Calendar,
2464
2465
  {
2465
2466
  mode: "range",
2466
2467
  defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess', _62 => _62.from]), () => ( (showPreviousMonth ? new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 1) : void 0))),
@@ -2470,7 +2471,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
2470
2471
  }
2471
2472
  ),
2472
2473
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2473
- _chunkEZK3H6EJjs.Button,
2474
+ _chunk5IET37O4js.Button,
2474
2475
  {
2475
2476
  variant: "secondary",
2476
2477
  type: "button",
@@ -2640,7 +2641,7 @@ var FileUploader = _react.forwardRef.call(void 0,
2640
2641
  ref,
2641
2642
  tabIndex: 0,
2642
2643
  onKeyDownCapture: handleKeyDown,
2643
- className: _chunkLJRD4SRVjs.cn.call(void 0,
2644
+ className: _chunkDEYKTLA3js.cn.call(void 0,
2644
2645
  "grid w-full overflow-hidden focus:outline-none",
2645
2646
  className,
2646
2647
  // Original className from props
@@ -2664,12 +2665,12 @@ var FileUploaderContent = _react.forwardRef.call(void 0,
2664
2665
  ({ children, className, ...props }, ref) => {
2665
2666
  const { orientation } = useFileUpload();
2666
2667
  const containerRef = _react.useRef.call(void 0, null);
2667
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkLJRD4SRVjs.cn.call(void 0, "w-full px-1"), ref: containerRef, "aria-description": "content file holder", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2668
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkDEYKTLA3js.cn.call(void 0, "w-full px-1"), ref: containerRef, "aria-description": "content file holder", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2668
2669
  "div",
2669
2670
  {
2670
2671
  ...props,
2671
2672
  ref,
2672
- className: _chunkLJRD4SRVjs.cn.call(void 0,
2673
+ className: _chunkDEYKTLA3js.cn.call(void 0,
2673
2674
  "flex gap-1 rounded-xl",
2674
2675
  orientation === "horizontal" ? "flex-raw flex-wrap" : "flex-col",
2675
2676
  className
@@ -2689,8 +2690,8 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
2689
2690
  "div",
2690
2691
  {
2691
2692
  ref,
2692
- className: _chunkLJRD4SRVjs.cn.call(void 0,
2693
- _chunkEZK3H6EJjs.buttonVariants.call(void 0, { variant: "ghost" }),
2693
+ className: _chunkDEYKTLA3js.cn.call(void 0,
2694
+ _chunk5IET37O4js.buttonVariants.call(void 0, { variant: "ghost" }),
2694
2695
  "relative h-6 cursor-pointer justify-between p-1",
2695
2696
  className,
2696
2697
  isSelected ? "bg-muted" : ""
@@ -2702,7 +2703,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
2702
2703
  "button",
2703
2704
  {
2704
2705
  type: "button",
2705
- className: _chunkLJRD4SRVjs.cn.call(void 0, "absolute", direction === "rtl" ? "top-1 left-1" : "top-1 right-1"),
2706
+ className: _chunkDEYKTLA3js.cn.call(void 0, "absolute", direction === "rtl" ? "top-1 left-1" : "top-1 right-1"),
2706
2707
  onClick: () => removeFileFromSet(index),
2707
2708
  children: [
2708
2709
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: t(`generic.remove_item`, { index }) }),
@@ -2726,12 +2727,12 @@ var FileInput = _react.forwardRef.call(void 0,
2726
2727
  {
2727
2728
  ref,
2728
2729
  ...props,
2729
- className: _chunkLJRD4SRVjs.cn.call(void 0, `relative w-full ${isLOF ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`, className),
2730
+ className: _chunkDEYKTLA3js.cn.call(void 0, `relative w-full ${isLOF ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`, className),
2730
2731
  children: [
2731
2732
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2732
2733
  "div",
2733
2734
  {
2734
- className: _chunkLJRD4SRVjs.cn.call(void 0,
2735
+ className: _chunkDEYKTLA3js.cn.call(void 0,
2735
2736
  "w-full rounded-lg duration-300 ease-in-out",
2736
2737
  // Simpler border logic: if parent is drag-active, it controls the border.
2737
2738
  // Otherwise, FileInput can show its own accept/reject/default border.
@@ -2748,7 +2749,7 @@ var FileInput = _react.forwardRef.call(void 0,
2748
2749
  }
2749
2750
  ),
2750
2751
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2751
- _chunkEZK3H6EJjs.Input,
2752
+ _chunk5IET37O4js.Input,
2752
2753
  {
2753
2754
  ref: dropzoneState.inputRef,
2754
2755
  disabled: isLOF,
@@ -2767,30 +2768,30 @@ FileInput.displayName = "FileInput";
2767
2768
 
2768
2769
  function FormCheckbox({ form, id, name, labelBefore, description, isRequired }) {
2769
2770
  const simpleLabel = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
2770
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormLabel, { htmlFor: id, className: `font-normal ${labelBefore ? "" : "ml-3"}`, children: name });
2771
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormLabel, { htmlFor: id, className: `font-normal ${labelBefore ? "" : "ml-3"}`, children: name });
2771
2772
  }, "simpleLabel");
2772
2773
  const label = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
2773
2774
  if (description) return simpleLabel();
2774
2775
  else
2775
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Tooltip, { children: [
2776
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TooltipTrigger, { asChild: true, children: simpleLabel() }),
2777
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TooltipContent, { children: description })
2776
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Tooltip, { children: [
2777
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TooltipTrigger, { asChild: true, children: simpleLabel() }),
2778
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TooltipContent, { children: description })
2778
2779
  ] });
2779
2780
  }, "label");
2780
2781
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2781
- _chunkEZK3H6EJjs.FormField,
2782
+ _chunk5IET37O4js.FormField,
2782
2783
  {
2783
2784
  control: form.control,
2784
2785
  name: id,
2785
- render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormItem, { className: `${name ? "mb-5" : "mb-1"}`, children: [
2786
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-x-4", children: [
2786
+ render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormItem, { className: `${name ? "mb-5" : "mb-1"}`, children: [
2787
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-x-4", children: [
2787
2788
  labelBefore && label(),
2788
2789
  labelBefore && isRequired && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-destructive ml-2 font-semibold", children: "*" }),
2789
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Checkbox, { id, defaultChecked: field.value, onCheckedChange: field.onChange }),
2790
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Checkbox, { id, defaultChecked: field.value, onCheckedChange: field.onChange }),
2790
2791
  !labelBefore && label(),
2791
2792
  !labelBefore && isRequired && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-destructive ml-2 font-semibold", children: "*" })
2792
2793
  ] }) }),
2793
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormMessage, {})
2794
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormMessage, {})
2794
2795
  ] })
2795
2796
  }
2796
2797
  ) });
@@ -2807,17 +2808,17 @@ function FormContainerGeneric({
2807
2808
  isRequired = false
2808
2809
  }) {
2809
2810
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2810
- _chunkEZK3H6EJjs.FormField,
2811
+ _chunk5IET37O4js.FormField,
2811
2812
  {
2812
2813
  control: form.control,
2813
2814
  name: id,
2814
- render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormItem, { className: `${name ? "mb-5" : "mb-1"}`, children: [
2815
- name && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormLabel, { className: "flex items-center", children: [
2815
+ render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormItem, { className: `${name ? "mb-5" : "mb-1"}`, children: [
2816
+ name && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormLabel, { className: "flex items-center", children: [
2816
2817
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: name }),
2817
2818
  isRequired && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-destructive ml-2 font-semibold", children: "*" })
2818
2819
  ] }),
2819
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormControl, { children }),
2820
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormMessage, {})
2820
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormControl, { children }),
2821
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormMessage, {})
2821
2822
  ] })
2822
2823
  }
2823
2824
  ) });
@@ -2903,20 +2904,20 @@ function FormDate({
2903
2904
  if (onChange) onChange(selectedDate);
2904
2905
  }, "handleCalendarSelect");
2905
2906
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2906
- _chunkEZK3H6EJjs.FormField,
2907
+ _chunk5IET37O4js.FormField,
2907
2908
  {
2908
2909
  control: form.control,
2909
2910
  name: id,
2910
- render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormItem, { className: `${name ? "mb-5" : "mb-1"} w-full`, children: [
2911
- name && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormLabel, { className: "dlex items-center", children: [
2911
+ render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormItem, { className: `${name ? "mb-5" : "mb-1"} w-full`, children: [
2912
+ name && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormLabel, { className: "dlex items-center", children: [
2912
2913
  name,
2913
2914
  " ",
2914
2915
  isRequired && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-destructive ml-2 font-semibold", children: "*" })
2915
2916
  ] }),
2916
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Popover, { open, onOpenChange: setOpen, modal: true, children: [
2917
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Popover, { open, onOpenChange: setOpen, modal: true, children: [
2917
2918
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
2918
2919
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2919
- _chunkEZK3H6EJjs.Input,
2920
+ _chunk5IET37O4js.Input,
2920
2921
  {
2921
2922
  value: inputValue,
2922
2923
  onChange: (e) => handleInputChange(e.target.value, field),
@@ -2925,7 +2926,7 @@ function FormDate({
2925
2926
  }
2926
2927
  ),
2927
2928
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "absolute right-1 top-1/2 flex -translate-y-1/2 items-center space-x-1", children: [
2928
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2929
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2929
2930
  "button",
2930
2931
  {
2931
2932
  type: "button",
@@ -2948,10 +2949,10 @@ function FormDate({
2948
2949
  )
2949
2950
  ] })
2950
2951
  ] }),
2951
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "p-3", children: [
2952
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "p-3", children: [
2952
2953
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-3 flex gap-2", children: [
2953
2954
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2954
- _chunkEZK3H6EJjs.Select,
2955
+ _chunk5IET37O4js.Select,
2955
2956
  {
2956
2957
  value: displayMonth.getMonth().toString(),
2957
2958
  onValueChange: (value) => {
@@ -2960,13 +2961,13 @@ function FormDate({
2960
2961
  setDisplayMonth(newDate);
2961
2962
  },
2962
2963
  children: [
2963
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectTrigger, { className: "w-[130px]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectValue, {}) }),
2964
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectContent, { children: monthNames.map((month, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectItem, { value: index.toString(), children: month }, index)) })
2964
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectTrigger, { className: "w-[130px]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectValue, {}) }),
2965
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectContent, { children: monthNames.map((month, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectItem, { value: index.toString(), children: month }, index)) })
2965
2966
  ]
2966
2967
  }
2967
2968
  ),
2968
2969
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2969
- _chunkEZK3H6EJjs.Select,
2970
+ _chunk5IET37O4js.Select,
2970
2971
  {
2971
2972
  value: displayMonth.getFullYear().toString(),
2972
2973
  onValueChange: (value) => {
@@ -2975,14 +2976,14 @@ function FormDate({
2975
2976
  setDisplayMonth(newDate);
2976
2977
  },
2977
2978
  children: [
2978
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectTrigger, { className: "w-[80px]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectValue, {}) }),
2979
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectContent, { children: yearOptions.reverse().map((year) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectItem, { value: year.toString(), children: year }, year)) })
2979
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectTrigger, { className: "w-[80px]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectValue, {}) }),
2980
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectContent, { children: yearOptions.reverse().map((year) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectItem, { value: year.toString(), children: year }, year)) })
2980
2981
  ]
2981
2982
  }
2982
2983
  )
2983
2984
  ] }),
2984
2985
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2985
- _chunkEZK3H6EJjs.Calendar,
2986
+ _chunk5IET37O4js.Calendar,
2986
2987
  {
2987
2988
  mode: "single",
2988
2989
  selected: field.value,
@@ -2999,7 +3000,7 @@ function FormDate({
2999
3000
  )
3000
3001
  ] }) })
3001
3002
  ] }) }) }),
3002
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormMessage, {})
3003
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormMessage, {})
3003
3004
  ] })
3004
3005
  }
3005
3006
  ) });
@@ -3064,19 +3065,19 @@ function FormDateTime({
3064
3065
  }
3065
3066
  }, "handleTimeChange");
3066
3067
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3067
- _chunkEZK3H6EJjs.FormField,
3068
+ _chunk5IET37O4js.FormField,
3068
3069
  {
3069
3070
  control: form.control,
3070
3071
  name: id,
3071
- render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormItem, { className: `${name ? "mb-5" : "mb-1"} w-full`, children: [
3072
- name && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormLabel, { children: name }),
3073
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative flex flex-row", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Popover, { open, onOpenChange: setOpen, modal: true, children: [
3072
+ render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormItem, { className: `${name ? "mb-5" : "mb-1"} w-full`, children: [
3073
+ name && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormLabel, { children: name }),
3074
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative flex flex-row", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Popover, { open, onOpenChange: setOpen, modal: true, children: [
3074
3075
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
3075
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3076
- _chunkEZK3H6EJjs.Button,
3076
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3077
+ _chunk5IET37O4js.Button,
3077
3078
  {
3078
3079
  variant: "outline",
3079
- className: _chunkLJRD4SRVjs.cn.call(void 0, "w-full pl-3 text-left font-normal", !field.value && "text-muted-foreground"),
3080
+ className: _chunkDEYKTLA3js.cn.call(void 0, "w-full pl-3 text-left font-normal", !field.value && "text-muted-foreground"),
3080
3081
  children: [
3081
3082
  field.value ? formatDateTime(field.value) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t(`generic.pick_date_time`) }),
3082
3083
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Calendar, { className: "ml-auto h-4 w-4 opacity-50" })
@@ -3094,9 +3095,9 @@ function FormDateTime({
3094
3095
  }
3095
3096
  )
3096
3097
  ] }),
3097
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.PopoverContent, { className: "w-auto p-4", align: "start", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col space-y-4", children: [
3098
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.PopoverContent, { className: "w-auto p-4", align: "start", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col space-y-4", children: [
3098
3099
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3099
- _chunkEZK3H6EJjs.Calendar,
3100
+ _chunk5IET37O4js.Calendar,
3100
3101
  {
3101
3102
  mode: "single",
3102
3103
  selected: field.value,
@@ -3121,9 +3122,9 @@ function FormDateTime({
3121
3122
  ),
3122
3123
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-row items-end justify-center space-x-4", children: [
3123
3124
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col space-y-2", children: [
3124
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Label, { htmlFor: "hours-select", children: t(`generic.hours`) }),
3125
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Label, { htmlFor: "hours-select", children: t(`generic.hours`) }),
3125
3126
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3126
- _chunkEZK3H6EJjs.Select,
3127
+ _chunk5IET37O4js.Select,
3127
3128
  {
3128
3129
  value: String(field.value ? new Date(field.value).getHours() : selectedHours),
3129
3130
  onValueChange: (value) => {
@@ -3135,17 +3136,17 @@ function FormDateTime({
3135
3136
  );
3136
3137
  },
3137
3138
  children: [
3138
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectTrigger, { id: "hours-select", className: "w-[70px]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectValue, { placeholder: "Hour" }) }),
3139
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectContent, { children: hoursOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectItem, { value: String(option.value), children: option.label }, option.value)) })
3139
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectTrigger, { id: "hours-select", className: "w-[70px]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectValue, { placeholder: "Hour" }) }),
3140
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectContent, { children: hoursOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectItem, { value: String(option.value), children: option.label }, option.value)) })
3140
3141
  ]
3141
3142
  }
3142
3143
  )
3143
3144
  ] }),
3144
3145
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-[9px] text-xl", children: ":" }),
3145
3146
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col space-y-2", children: [
3146
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Label, { htmlFor: "minutes-select", children: t(`generic.minutes`) }),
3147
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Label, { htmlFor: "minutes-select", children: t(`generic.minutes`) }),
3147
3148
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3148
- _chunkEZK3H6EJjs.Select,
3149
+ _chunk5IET37O4js.Select,
3149
3150
  {
3150
3151
  value: String(
3151
3152
  field.value ? roundToNearestFiveMinutes(new Date(field.value).getMinutes()) : selectedMinutes
@@ -3156,15 +3157,15 @@ function FormDateTime({
3156
3157
  handleTimeChange(field.value ? new Date(field.value).getHours() : selectedHours, minutes);
3157
3158
  },
3158
3159
  children: [
3159
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectTrigger, { id: "minutes-select", className: "w-[70px]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectValue, { placeholder: "Min" }) }),
3160
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectContent, { children: minutesOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectItem, { value: String(option.value), children: option.label }, option.value)) })
3160
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectTrigger, { id: "minutes-select", className: "w-[70px]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectValue, { placeholder: "Min" }) }),
3161
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectContent, { children: minutesOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectItem, { value: String(option.value), children: option.label }, option.value)) })
3161
3162
  ]
3162
3163
  }
3163
3164
  )
3164
3165
  ] })
3165
3166
  ] }),
3166
3167
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3167
- _chunkEZK3H6EJjs.Button,
3168
+ _chunk5IET37O4js.Button,
3168
3169
  {
3169
3170
  className: "mt-2",
3170
3171
  onClick: () => {
@@ -3175,7 +3176,7 @@ function FormDateTime({
3175
3176
  )
3176
3177
  ] }) })
3177
3178
  ] }) }) }),
3178
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormMessage, {})
3179
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormMessage, {})
3179
3180
  ] })
3180
3181
  }
3181
3182
  ) });
@@ -3201,7 +3202,7 @@ function FormInput({
3201
3202
  }) {
3202
3203
  const t = _nextintl.useTranslations.call(void 0, );
3203
3204
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3204
- _chunkEZK3H6EJjs.FormField,
3205
+ _chunk5IET37O4js.FormField,
3205
3206
  {
3206
3207
  control: form.control,
3207
3208
  name: id,
@@ -3226,15 +3227,15 @@ function FormInput({
3226
3227
  if (onBlur) await onBlur();
3227
3228
  field.onBlur();
3228
3229
  }, "handleBlur");
3229
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormItem, { className: `${name ? "mb-5" : "mb-1"}`, children: [
3230
- name && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormLabel, { className: "flex items-center", children: [
3230
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormItem, { className: `${name ? "mb-5" : "mb-1"}`, children: [
3231
+ name && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormLabel, { className: "flex items-center", children: [
3231
3232
  name,
3232
3233
  isRequired && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-destructive ml-2 font-semibold", children: "*" })
3233
3234
  ] }),
3234
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
3235
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
3235
3236
  type === "currency" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground absolute top-0 left-0 pt-2 pl-3", children: "\u20AC" }),
3236
3237
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3237
- _chunkEZK3H6EJjs.Input,
3238
+ _chunk5IET37O4js.Input,
3238
3239
  {
3239
3240
  "data-testid": testId,
3240
3241
  ...field,
@@ -3258,7 +3259,7 @@ function FormInput({
3258
3259
  }
3259
3260
  )
3260
3261
  ] }) }),
3261
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormMessage, { "data-testid": testId ? `${testId}-error` : void 0 })
3262
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormMessage, { "data-testid": testId ? `${testId}-error` : void 0 })
3262
3263
  ] });
3263
3264
  }
3264
3265
  }
@@ -3276,9 +3277,9 @@ var PasswordInput = React4.forwardRef(({ className, type, ...props }, ref) => {
3276
3277
  const disabled = props.value === "" || props.value === void 0 || props.disabled;
3277
3278
  const t = _nextintl.useTranslations.call(void 0, );
3278
3279
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
3279
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Input, { type: showPassword ? "text" : "password", className: _chunkLJRD4SRVjs.cn.call(void 0, "", className), ref, ...props }),
3280
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Input, { type: showPassword ? "text" : "password", className: _chunkDEYKTLA3js.cn.call(void 0, "", className), ref, ...props }),
3280
3281
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3281
- _chunkEZK3H6EJjs.Button,
3282
+ _chunk5IET37O4js.Button,
3282
3283
  {
3283
3284
  type: "button",
3284
3285
  variant: "ghost",
@@ -3317,16 +3318,16 @@ function FormPassword({
3317
3318
  isRequired
3318
3319
  }) {
3319
3320
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3320
- _chunkEZK3H6EJjs.FormField,
3321
+ _chunk5IET37O4js.FormField,
3321
3322
  {
3322
3323
  control: form.control,
3323
3324
  name: id,
3324
- render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormItem, { className: `${name ? "mb-5" : "mb-1"}`, children: [
3325
- name && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormLabel, { children: [
3325
+ render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormItem, { className: `${name ? "mb-5" : "mb-1"}`, children: [
3326
+ name && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormLabel, { children: [
3326
3327
  name,
3327
3328
  isRequired && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-destructive ml-2 font-semibold", children: "*" })
3328
3329
  ] }),
3329
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3330
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3330
3331
  PasswordInput,
3331
3332
  {
3332
3333
  ...field,
@@ -3337,7 +3338,7 @@ function FormPassword({
3337
3338
  "data-testid": testId
3338
3339
  }
3339
3340
  ) }),
3340
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormMessage, { "data-testid": testId ? `${testId}-error` : void 0 })
3341
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormMessage, { "data-testid": testId ? `${testId}-error` : void 0 })
3341
3342
  ] })
3342
3343
  }
3343
3344
  ) });
@@ -3468,43 +3469,43 @@ function FormPlaceAutocomplete({
3468
3469
  }, []);
3469
3470
  if (loadError) {
3470
3471
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3471
- _chunkEZK3H6EJjs.FormField,
3472
+ _chunk5IET37O4js.FormField,
3472
3473
  {
3473
3474
  control: form.control,
3474
3475
  name: id,
3475
- render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormItem, { className: `${name ? "mb-5" : "mb-1"}`, children: [
3476
- name && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormLabel, { className: "flex items-center", children: [
3476
+ render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormItem, { className: `${name ? "mb-5" : "mb-1"}`, children: [
3477
+ name && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormLabel, { className: "flex items-center", children: [
3477
3478
  name,
3478
3479
  isRequired && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-destructive ml-2 font-semibold", children: "*" })
3479
3480
  ] }),
3480
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3481
- _chunkEZK3H6EJjs.Input,
3481
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3482
+ _chunk5IET37O4js.Input,
3482
3483
  {
3483
3484
  ...field,
3484
3485
  placeholder,
3485
3486
  disabled,
3486
3487
  "data-testid": testId,
3487
- className: _chunkLJRD4SRVjs.cn.call(void 0, "w-full", className)
3488
+ className: _chunkDEYKTLA3js.cn.call(void 0, "w-full", className)
3488
3489
  }
3489
3490
  ) }),
3490
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormMessage, {})
3491
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormMessage, {})
3491
3492
  ] })
3492
3493
  }
3493
3494
  ) });
3494
3495
  }
3495
3496
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", ref: containerRef, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3496
- _chunkEZK3H6EJjs.FormField,
3497
+ _chunk5IET37O4js.FormField,
3497
3498
  {
3498
3499
  control: form.control,
3499
3500
  name: id,
3500
- render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormItem, { className: `${name ? "mb-5" : "mb-1"}`, children: [
3501
- name && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormLabel, { className: "flex items-center", children: [
3501
+ render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormItem, { className: `${name ? "mb-5" : "mb-1"}`, children: [
3502
+ name && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormLabel, { className: "flex items-center", children: [
3502
3503
  name,
3503
3504
  isRequired && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-destructive ml-2 font-semibold", children: "*" })
3504
3505
  ] }),
3505
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
3506
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
3506
3507
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3507
- _chunkEZK3H6EJjs.Input,
3508
+ _chunk5IET37O4js.Input,
3508
3509
  {
3509
3510
  value: inputValue,
3510
3511
  onChange: (e) => handleInputChange(e.target.value),
@@ -3517,7 +3518,7 @@ function FormPlaceAutocomplete({
3517
3518
  placeholder,
3518
3519
  disabled: disabled || !apiKey,
3519
3520
  "data-testid": testId,
3520
- className: _chunkLJRD4SRVjs.cn.call(void 0, "w-full", className)
3521
+ className: _chunkDEYKTLA3js.cn.call(void 0, "w-full", className)
3521
3522
  }
3522
3523
  ),
3523
3524
  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" }) }),
@@ -3534,7 +3535,7 @@ function FormPlaceAutocomplete({
3534
3535
  suggestion.place_id || index
3535
3536
  )) })
3536
3537
  ] }) }),
3537
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormMessage, {})
3538
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormMessage, {})
3538
3539
  ] })
3539
3540
  }
3540
3541
  ) });
@@ -3555,14 +3556,14 @@ function FormSelect({
3555
3556
  testId
3556
3557
  }) {
3557
3558
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `flex w-full flex-col`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3558
- _chunkEZK3H6EJjs.FormField,
3559
+ _chunk5IET37O4js.FormField,
3559
3560
  {
3560
3561
  control: form.control,
3561
3562
  name: id,
3562
- render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormItem, { className: `flex w-full ${useRows ? `flex-row items-center justify-between gap-x-4` : `flex-col`}`, children: [
3563
- name && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormLabel, { className: `${useRows ? `min-w-28` : ``}`, children: name }),
3563
+ render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormItem, { className: `flex w-full ${useRows ? `flex-row items-center justify-between gap-x-4` : `flex-col`}`, children: [
3564
+ name && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormLabel, { className: `${useRows ? `min-w-28` : ``}`, children: name }),
3564
3565
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3565
- _chunkEZK3H6EJjs.Select,
3566
+ _chunk5IET37O4js.Select,
3566
3567
  {
3567
3568
  onValueChange: (e) => {
3568
3569
  field.onChange(e);
@@ -3571,12 +3572,12 @@ function FormSelect({
3571
3572
  defaultValue: field.value,
3572
3573
  "data-testid": testId,
3573
3574
  children: [
3574
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormControl, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectValue, { placeholder }) }) }),
3575
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectContent, { children: values.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.SelectItem, { value: type.id, children: type.text }, type.id)) })
3575
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormControl, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectValue, { placeholder }) }) }),
3576
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectContent, { children: values.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.SelectItem, { value: type.id, children: type.text }, type.id)) })
3576
3577
  ]
3577
3578
  }
3578
3579
  ),
3579
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormMessage, {})
3580
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormMessage, {})
3580
3581
  ] })
3581
3582
  }
3582
3583
  ) });
@@ -3595,16 +3596,16 @@ function FormSlider({
3595
3596
  }) {
3596
3597
  const value = _reacthookform.useWatch.call(void 0, { control: form.control, name: id });
3597
3598
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3598
- _chunkEZK3H6EJjs.FormField,
3599
+ _chunk5IET37O4js.FormField,
3599
3600
  {
3600
3601
  control: form.control,
3601
3602
  name: id,
3602
- render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormItem, { className: `${name ? "mb-5" : "mb-1"}`, children: [
3603
- name && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormLabel, { children: name }),
3604
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
3603
+ render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormItem, { className: `${name ? "mb-5" : "mb-1"}`, children: [
3604
+ name && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormLabel, { children: name }),
3605
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
3605
3606
  showPercentage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mb-2 flex w-full justify-center text-xs", children: `${value}%` }),
3606
3607
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3607
- _chunkEZK3H6EJjs.Slider,
3608
+ _chunk5IET37O4js.Slider,
3608
3609
  {
3609
3610
  onValueChange: (value2) => form.setValue(id, value2[0]),
3610
3611
  value: [value],
@@ -3614,7 +3615,7 @@ function FormSlider({
3614
3615
  }
3615
3616
  )
3616
3617
  ] }) }),
3617
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormMessage, {})
3618
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormMessage, {})
3618
3619
  ] })
3619
3620
  }
3620
3621
  ) });
@@ -3625,16 +3626,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, FormSlider, "FormSlider");
3625
3626
 
3626
3627
  function FormSwitch({ form, id, name, disabled }) {
3627
3628
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3628
- _chunkEZK3H6EJjs.FormField,
3629
+ _chunk5IET37O4js.FormField,
3629
3630
  {
3630
3631
  control: form.control,
3631
3632
  name: id,
3632
- render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormItem, { className: `${name ? "mb-5" : "mb-1"}`, children: [
3633
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-row gap-x-4", children: [
3634
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Switch, { checked: field.value, onCheckedChange: field.onChange }),
3635
- name && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormLabel, { children: name })
3633
+ render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormItem, { className: `${name ? "mb-5" : "mb-1"}`, children: [
3634
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-row gap-x-4", children: [
3635
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Switch, { checked: field.value, onCheckedChange: field.onChange }),
3636
+ name && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormLabel, { children: name })
3636
3637
  ] }) }),
3637
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormMessage, {})
3638
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormMessage, {})
3638
3639
  ] })
3639
3640
  }
3640
3641
  ) });
@@ -3652,23 +3653,23 @@ function FormTextarea({
3652
3653
  testId
3653
3654
  }) {
3654
3655
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3655
- _chunkEZK3H6EJjs.FormField,
3656
+ _chunk5IET37O4js.FormField,
3656
3657
  {
3657
3658
  control: form.control,
3658
3659
  name: id,
3659
- render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormItem, { className: "mb-5", children: [
3660
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormLabel, { children: name }),
3661
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3662
- _chunkEZK3H6EJjs.Textarea,
3660
+ render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormItem, { className: "mb-5", children: [
3661
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormLabel, { children: name }),
3662
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3663
+ _chunk5IET37O4js.Textarea,
3663
3664
  {
3664
3665
  ...field,
3665
- className: _chunkLJRD4SRVjs.cn.call(void 0, "min-h-96 w-full", className),
3666
+ className: _chunkDEYKTLA3js.cn.call(void 0, "min-h-96 w-full", className),
3666
3667
  disabled: form.formState.isSubmitting,
3667
3668
  placeholder,
3668
3669
  "data-testid": testId
3669
3670
  }
3670
3671
  ) }),
3671
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormMessage, { "data-testid": testId ? `${testId}-error` : void 0 })
3672
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormMessage, { "data-testid": testId ? `${testId}-error` : void 0 })
3672
3673
  ] })
3673
3674
  }
3674
3675
  ) });
@@ -3750,12 +3751,12 @@ function FormFeatures({
3750
3751
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
3751
3752
  name && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "mb-5 font-semibold", children: name }),
3752
3753
  features.map((feature) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3753
- _chunkEZK3H6EJjs.Accordion,
3754
+ _chunk5IET37O4js.Accordion,
3754
3755
  {
3755
3756
  type: "single",
3756
3757
  collapsible: true,
3757
3758
  className: `w-full p-0`,
3758
- children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.AccordionItem, { value: feature.id, className: "p-0", children: [
3759
+ children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.AccordionItem, { value: feature.id, className: "p-0", children: [
3759
3760
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3760
3761
  "div",
3761
3762
  {
@@ -3763,7 +3764,7 @@ function FormFeatures({
3763
3764
  children: [
3764
3765
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center", onClick: (e) => e.stopPropagation(), children: [
3765
3766
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3766
- _chunkEZK3H6EJjs.Checkbox,
3767
+ _chunk5IET37O4js.Checkbox,
3767
3768
  {
3768
3769
  id: feature.id,
3769
3770
  checked: isFeatureChecked(feature),
@@ -3772,20 +3773,20 @@ function FormFeatures({
3772
3773
  }
3773
3774
  }
3774
3775
  ),
3775
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormLabel, { htmlFor: feature.id, className: "ml-3 cursor-pointer font-normal", children: feature.name })
3776
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormLabel, { htmlFor: feature.id, className: "ml-3 cursor-pointer font-normal", children: feature.name })
3776
3777
  ] }),
3777
- feature.modules.filter((module) => !module.isCore).length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.AccordionTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full" }) })
3778
+ feature.modules.filter((module) => !module.isCore).length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.AccordionTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full" }) })
3778
3779
  ]
3779
3780
  }
3780
3781
  ),
3781
- feature.modules.filter((module) => !module.isCore).length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.AccordionContent, { className: "pl-6", children: feature.modules.filter((module) => !module.isCore).sort((a, b) => a.name.localeCompare(b.name)).map((module) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3782
+ feature.modules.filter((module) => !module.isCore).length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.AccordionContent, { className: "pl-6", children: feature.modules.filter((module) => !module.isCore).sort((a, b) => a.name.localeCompare(b.name)).map((module) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3782
3783
  "div",
3783
3784
  {
3784
3785
  className: "flex items-center border-t py-2",
3785
3786
  onClick: (e) => e.stopPropagation(),
3786
3787
  children: [
3787
3788
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3788
- _chunkEZK3H6EJjs.Checkbox,
3789
+ _chunk5IET37O4js.Checkbox,
3789
3790
  {
3790
3791
  id: module.id,
3791
3792
  checked: selectedModules.includes(module.id),
@@ -3794,7 +3795,7 @@ function FormFeatures({
3794
3795
  }
3795
3796
  }
3796
3797
  ),
3797
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormLabel, { htmlFor: module.id, className: "ml-3 cursor-pointer font-normal", children: module.name })
3798
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormLabel, { htmlFor: module.id, className: "ml-3 cursor-pointer font-normal", children: module.name })
3798
3799
  ]
3799
3800
  },
3800
3801
  module.id
@@ -3803,7 +3804,7 @@ function FormFeatures({
3803
3804
  },
3804
3805
  feature.id
3805
3806
  )),
3806
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormMessage, {})
3807
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormMessage, {})
3807
3808
  ] });
3808
3809
  }
3809
3810
  _chunk7QVYU63Ejs.__name.call(void 0, FormFeatures, "FormFeatures");
@@ -3833,14 +3834,14 @@ function PageContainerContentDetails({ items, section, module, id }) {
3833
3834
  };
3834
3835
  }, []);
3835
3836
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3836
- _chunkEZK3H6EJjs.Tabs,
3837
+ _chunk5IET37O4js.Tabs,
3837
3838
  {
3838
3839
  defaultValue: section || items[0].title,
3839
3840
  onValueChange: (a) => rewriteUrl({ page: module, id, childPage: a }),
3840
3841
  children: [
3841
3842
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: sentinelRef, className: "h-0" }),
3842
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `bg-background sticky top-0 z-10 mb-2 pb-2 transition-shadow ${isScrolled ? "border-b" : ""}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TabsList, { children: items.map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TabsTrigger, { value: item.title, children: item.title }, item.title)) }) }),
3843
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pr-4", children: items.map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TabsContent, { value: item.title, children: item.content }, item.title)) })
3843
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `bg-background sticky top-0 z-10 mb-2 pb-2 transition-shadow ${isScrolled ? "border-b" : ""}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TabsList, { children: items.map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TabsTrigger, { value: item.title, children: item.title }, item.title)) }) }),
3844
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pr-4", children: items.map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TabsContent, { value: item.title, children: item.content }, item.title)) })
3844
3845
  ]
3845
3846
  }
3846
3847
  );
@@ -3850,13 +3851,13 @@ _chunk7QVYU63Ejs.__name.call(void 0, PageContainerContentDetails, "PageContainer
3850
3851
  // src/components/pages/PageContentContainer.tsx
3851
3852
 
3852
3853
  function PageContentContainer({ details, footer, content }) {
3853
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[calc(100vh-(--spacing(16)))] w-full", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.ResizablePanelGroup, { direction: "horizontal", className: "items-stretch", autoSaveId: "page-content-layout", children: [
3854
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.ResizablePanel, { id: "left-panel", defaultSize: 32, minSize: 20, maxSize: 40, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "@container flex h-full flex-col pr-4", children: [
3854
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[calc(100vh-(--spacing(16)))] w-full", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.ResizablePanelGroup, { direction: "horizontal", className: "items-stretch", autoSaveId: "page-content-layout", children: [
3855
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.ResizablePanel, { id: "left-panel", defaultSize: 32, minSize: 20, maxSize: 40, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "@container flex h-full flex-col pr-4", children: [
3855
3856
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1 overflow-y-auto", children: details }),
3856
3857
  footer && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-col gap-y-2 pt-2 pb-2", children: footer })
3857
3858
  ] }) }),
3858
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.ResizableHandle, { withHandle: true }),
3859
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.ResizablePanel, { id: "right-panel", className: "pl-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full overflow-y-auto", children: content }) })
3859
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.ResizableHandle, { withHandle: true }),
3860
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.ResizablePanel, { id: "right-panel", className: "pl-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full overflow-y-auto", children: content }) })
3860
3861
  ] }) });
3861
3862
  }
3862
3863
  _chunk7QVYU63Ejs.__name.call(void 0, PageContentContainer, "PageContentContainer");
@@ -3894,7 +3895,7 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
3894
3895
  accessorKey: params.name,
3895
3896
  header: "",
3896
3897
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3897
- _chunkEZK3H6EJjs.Checkbox,
3898
+ _chunk5IET37O4js.Checkbox,
3898
3899
  {
3899
3900
  checked: _optionalChain([params, 'access', _92 => _92.checkedIds, 'optionalAccess', _93 => _93.includes, 'call', _94 => _94(row.getValue(params.name))]) || false,
3900
3901
  onCheckedChange: (value) => {
@@ -3916,7 +3917,7 @@ var cellLink = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
3916
3917
  id: params.name,
3917
3918
  accessorKey: params.name,
3918
3919
  header: params.title,
3919
- cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Link, { href: params.generateUrl(row.getValue(params.id)), children: row.getValue(params.name) }), "cell"),
3920
+ cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Link, { href: params.generateUrl(row.getValue(params.id)), children: row.getValue(params.name) }), "cell"),
3920
3921
  enableSorting: false,
3921
3922
  enableHiding: false
3922
3923
  };
@@ -3929,7 +3930,7 @@ var cellUrl = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
3929
3930
  id: params.name,
3930
3931
  accessorKey: params.name,
3931
3932
  header: params.title,
3932
- cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Link, { href: row.getValue(params.name), children: row.getValue(params.name) }), "cell"),
3933
+ cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Link, { href: row.getValue(params.name), children: row.getValue(params.name) }), "cell"),
3933
3934
  enableSorting: false,
3934
3935
  enableHiding: false
3935
3936
  };
@@ -3978,7 +3979,7 @@ function useJsonApiGet(params) {
3978
3979
  setLoading(true);
3979
3980
  setError(null);
3980
3981
  try {
3981
- const { JsonApiGet } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-VARLNKAF.js")));
3982
+ const { JsonApiGet } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-UJ7FGIVI.js")));
3982
3983
  const language = navigator.language.split("-")[0] || "en";
3983
3984
  const apiResponse = await JsonApiGet({
3984
3985
  classKey: params.classKey,
@@ -4083,7 +4084,7 @@ function useJsonApiMutation(config) {
4083
4084
  setLoading(true);
4084
4085
  setError(null);
4085
4086
  try {
4086
- const { JsonApiPost, JsonApiPut, JsonApiPatch, JsonApiDelete } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-VARLNKAF.js")));
4087
+ const { JsonApiPost, JsonApiPut, JsonApiPatch, JsonApiDelete } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-UJ7FGIVI.js")));
4087
4088
  const language = navigator.language.split("-")[0] || "en";
4088
4089
  let apiResponse;
4089
4090
  switch (config.method) {
@@ -4170,14 +4171,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, useJsonApiMutation, "useJsonApiMutation");
4170
4171
  function useRehydration(classKey, data) {
4171
4172
  return _react.useMemo.call(void 0, () => {
4172
4173
  if (!data) return null;
4173
- return _chunkWZJDLITGjs.RehydrationFactory.rehydrate(classKey, data);
4174
+ return _chunkQ4FXESVTjs.RehydrationFactory.rehydrate(classKey, data);
4174
4175
  }, [classKey, data]);
4175
4176
  }
4176
4177
  _chunk7QVYU63Ejs.__name.call(void 0, useRehydration, "useRehydration");
4177
4178
  function useRehydrationList(classKey, data) {
4178
4179
  return _react.useMemo.call(void 0, () => {
4179
4180
  if (!data || data.length === 0) return [];
4180
- return _chunkWZJDLITGjs.RehydrationFactory.rehydrateList(classKey, data);
4181
+ return _chunkQ4FXESVTjs.RehydrationFactory.rehydrateList(classKey, data);
4181
4182
  }, [classKey, data]);
4182
4183
  }
4183
4184
  _chunk7QVYU63Ejs.__name.call(void 0, useRehydrationList, "useRehydrationList");
@@ -4215,13 +4216,13 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
4215
4216
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
4216
4217
  const company = row.original.jsonApiData;
4217
4218
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4218
- _chunkEZK3H6EJjs.Link,
4219
+ _chunk5IET37O4js.Link,
4219
4220
  {
4220
4221
  href: hasRole(_chunk4HCRAOS5js.getRoleId.call(void 0, ).Administrator) ? generateUrl({
4221
4222
  page: "/administration",
4222
- id: _optionalChain([_chunkWZJDLITGjs.Modules, 'access', _113 => _113.Company, 'access', _114 => _114.pageUrl, 'optionalAccess', _115 => _115.substring, 'call', _116 => _116(1)]),
4223
+ id: _optionalChain([_chunkQ4FXESVTjs.Modules, 'access', _113 => _113.Company, 'access', _114 => _114.pageUrl, 'optionalAccess', _115 => _115.substring, 'call', _116 => _116(1)]),
4223
4224
  childPage: company.id
4224
- }) : generateUrl({ page: _chunkWZJDLITGjs.Modules.Company, id: company.id }),
4225
+ }) : generateUrl({ page: _chunkQ4FXESVTjs.Modules.Company, id: company.id }),
4225
4226
  children: row.getValue("name")
4226
4227
  }
4227
4228
  );
@@ -4271,7 +4272,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
4271
4272
  header: t(`foundations.role.fields.name.label`),
4272
4273
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
4273
4274
  const role = row.original.jsonApiData;
4274
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Link, { href: generateUrl({ page: _chunkWZJDLITGjs.Modules.Role, id: role.id }), children: row.getValue("name") });
4275
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Link, { href: generateUrl({ page: _chunkQ4FXESVTjs.Modules.Role, id: role.id }), children: row.getValue("name") });
4275
4276
  }, "cell"),
4276
4277
  enableSorting: false,
4277
4278
  enableHiding: false
@@ -4308,7 +4309,7 @@ var useUserSearch = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
4308
4309
  if (search === searchQueryRef.current && users.length > 0) return;
4309
4310
  setIsLoading(true);
4310
4311
  searchQueryRef.current = search;
4311
- const fetchedUsers = await _chunkL6LH7WA4js.UserService.findMany({ search, fetchAll: true });
4312
+ const fetchedUsers = await _chunkPO5Q3H5Ijs.UserService.findMany({ search, fetchAll: true });
4312
4313
  setUsers(fetchedUsers);
4313
4314
  } catch (error) {
4314
4315
  console.error("Failed to load users:", error);
@@ -4372,10 +4373,10 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
4372
4373
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
4373
4374
  const user = row.original.jsonApiData;
4374
4375
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4375
- _chunkEZK3H6EJjs.Link,
4376
+ _chunk5IET37O4js.Link,
4376
4377
  {
4377
- href: generateUrl({ page: _chunkWZJDLITGjs.Modules.User, id: user.id }),
4378
- className: _chunkLJRD4SRVjs.cn.call(void 0,
4378
+ href: generateUrl({ page: _chunkQ4FXESVTjs.Modules.User, id: user.id }),
4379
+ className: _chunkDEYKTLA3js.cn.call(void 0,
4379
4380
  `flex items-center justify-start gap-2`,
4380
4381
  user.isDeleted || !user.isActivated ? "text-muted-foreground italic" : ""
4381
4382
  ),
@@ -4469,14 +4470,14 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
4469
4470
  header: t(`foundations.content.fields.name.label`),
4470
4471
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
4471
4472
  const content = row.original.jsonApiData;
4472
- const contentModule = content.contentType ? _chunkWZJDLITGjs.Modules.findByModelName(content.contentType) : void 0;
4473
+ const contentModule = content.contentType ? _chunkQ4FXESVTjs.Modules.findByModelName(content.contentType) : void 0;
4473
4474
  const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
4474
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Tooltip, { children: [
4475
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TooltipTrigger, { className: "flex items-center justify-start space-x-2", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
4476
- contentModule && _chunkLJRD4SRVjs.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
4477
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Link, { href: link, children: content.name })
4475
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Tooltip, { children: [
4476
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TooltipTrigger, { className: "flex items-center justify-start space-x-2", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
4477
+ contentModule && _chunkDEYKTLA3js.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
4478
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Link, { href: link, children: content.name })
4478
4479
  ] }) }),
4479
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TooltipContent, { children: content.tldr })
4480
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TooltipContent, { children: content.tldr })
4480
4481
  ] });
4481
4482
  }, "cell"),
4482
4483
  enableSorting: false,
@@ -4611,7 +4612,7 @@ function ContentTableSearch({ data }) {
4611
4612
  }
4612
4613
  ),
4613
4614
  isExpanded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4614
- _chunkEZK3H6EJjs.Input,
4615
+ _chunk5IET37O4js.Input,
4615
4616
  {
4616
4617
  ref: inputRef,
4617
4618
  onKeyDown: (e) => {
@@ -4675,9 +4676,9 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
4675
4676
  });
4676
4677
  const rowModel = tableData ? table.getRowModel() : null;
4677
4678
  const showFooter = !!(props.functions || data.next || data.previous);
4678
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-hidden rounded-md border", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Table, { children: [
4679
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.TableHeader, { className: "bg-muted font-semibold", children: [
4680
- props.title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TableHead, { className: "bg-card text-primary p-4 text-left font-bold", colSpan: tableColumns.length, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-x-2", children: [
4679
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-hidden rounded-md border", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Table, { children: [
4680
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.TableHeader, { className: "bg-muted font-semibold", children: [
4681
+ props.title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TableHead, { className: "bg-card text-primary p-4 text-left font-bold", colSpan: tableColumns.length, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-x-2", children: [
4681
4682
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: props.title }),
4682
4683
  (props.functions || props.filters || allowSearch) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
4683
4684
  props.functions,
@@ -4685,14 +4686,14 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
4685
4686
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTableSearch, { data })
4686
4687
  ] })
4687
4688
  ] }) }) }),
4688
- table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TableRow, { children: headerGroup.headers.map((header) => {
4689
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TableHead, { children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
4689
+ table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TableRow, { children: headerGroup.headers.map((header) => {
4690
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TableHead, { children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
4690
4691
  }) }, headerGroup.id))
4691
4692
  ] }),
4692
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _132 => _132.rows, 'optionalAccess', _133 => _133.length]) ? rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TableRow, { children: row.getVisibleCells().map((cell) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TableCell, { children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id)) }, row.id)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TableCell, { colSpan: tableColumns.length, className: "h-24 text-center", children: "No results." }) }) }),
4693
- showFooter && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TableFooter, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TableCell, { colSpan: tableColumns.length, className: "bg-card py-4 text-right", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-end space-x-2", children: [
4693
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _132 => _132.rows, 'optionalAccess', _133 => _133.length]) ? rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TableRow, { children: row.getVisibleCells().map((cell) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TableCell, { children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id)) }, row.id)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TableCell, { colSpan: tableColumns.length, className: "h-24 text-center", children: "No results." }) }) }),
4694
+ showFooter && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TableFooter, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TableCell, { colSpan: tableColumns.length, className: "bg-card py-4 text-right", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-end space-x-2", children: [
4694
4695
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4695
- _chunkEZK3H6EJjs.Button,
4696
+ _chunk5IET37O4js.Button,
4696
4697
  {
4697
4698
  variant: "outline",
4698
4699
  size: "sm",
@@ -4710,7 +4711,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
4710
4711
  data.pageInfo.endItem
4711
4712
  ] }),
4712
4713
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4713
- _chunkEZK3H6EJjs.Button,
4714
+ _chunk5IET37O4js.Button,
4714
4715
  {
4715
4716
  variant: "outline",
4716
4717
  size: "sm",
@@ -4777,22 +4778,22 @@ function Register() {
4777
4778
  email: values.email,
4778
4779
  password: values.password
4779
4780
  };
4780
- await _chunkL6LH7WA4js.AuthService.register(payload);
4781
+ await _chunkPO5Q3H5Ijs.AuthService.register(payload);
4781
4782
  setShowConfirmation(true);
4782
4783
  } catch (e) {
4783
4784
  errorToast({ error: e });
4784
4785
  }
4785
4786
  }, "onSubmit");
4786
4787
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
4787
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardHeader, { children: [
4788
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardTitle, { className: "text-primary flex flex-col items-center pb-10 text-4xl", children: [
4789
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/phlow-logo.webp", alt: "Phlow", width: 100, height: 100, priority: true }),
4788
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardHeader, { children: [
4789
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardTitle, { className: "text-primary flex flex-col items-center pb-10 text-4xl", children: [
4790
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/logo.webp", alt: "Logo", width: 100, height: 100, priority: true }),
4790
4791
  t(`foundations.auth.register`)
4791
4792
  ] }),
4792
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardDescription, { className: "text-sm", children: showConfirmation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: " " }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: t(`foundations.auth.register_description`) }) })
4793
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardDescription, { className: "text-sm", children: showConfirmation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: " " }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: t(`foundations.auth.register_description`) }) })
4793
4794
  ] }),
4794
- showConfirmation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardDescription, { className: "text-center text-xl", children: t("foundations.auth.register_confirmation") }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), children: [
4795
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardContent, { children: [
4795
+ showConfirmation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardDescription, { className: "text-center text-xl", children: t("foundations.auth.register_confirmation") }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), children: [
4796
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardContent, { children: [
4796
4797
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4797
4798
  FormInput,
4798
4799
  {
@@ -4833,11 +4834,11 @@ function Register() {
4833
4834
  placeholder: t(`foundations.user.fields.password.placeholder`)
4834
4835
  }
4835
4836
  ),
4836
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Button, { className: "mt-4 w-full", type: "submit", children: t(`foundations.auth.buttons.register`) })
4837
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Button, { className: "mt-4 w-full", type: "submit", children: t(`foundations.auth.buttons.register`) })
4837
4838
  ] }),
4838
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardFooter, { className: "flex w-full flex-row justify-between", children: [
4839
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardFooter, { className: "flex w-full flex-row justify-between", children: [
4839
4840
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4840
- _chunkEZK3H6EJjs.Link,
4841
+ _chunk5IET37O4js.Link,
4841
4842
  {
4842
4843
  href: "#",
4843
4844
  className: "flex w-full justify-start",
@@ -4846,7 +4847,7 @@ function Register() {
4846
4847
  }
4847
4848
  ),
4848
4849
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4849
- _chunkEZK3H6EJjs.Link,
4850
+ _chunk5IET37O4js.Link,
4850
4851
  {
4851
4852
  href: "#",
4852
4853
  className: "flex w-full justify-end",
@@ -4919,8 +4920,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, AuthContainer, "AuthContainer");
4919
4920
  function InnerAuthContainer() {
4920
4921
  const { activeComponent } = useAuthContext();
4921
4922
  if (activeComponent === null)
4922
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "max-w-sm", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/phlow-logo.webp", alt: "Phlow", width: 100, height: 100, className: "animate-spin-slow", priority: true }) });
4923
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Card, { className: "w-full max-w-md", children: activeComponent });
4923
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "max-w-sm", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/logo.webp", alt: "Logo", width: 100, height: 100, className: "animate-spin-slow", priority: true }) });
4924
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Card, { className: "w-full max-w-md", children: activeComponent });
4924
4925
  }
4925
4926
  _chunk7QVYU63Ejs.__name.call(void 0, InnerAuthContainer, "InnerAuthContainer");
4926
4927
 
@@ -4932,16 +4933,27 @@ function LandingComponent() {
4932
4933
  const t = _nextintl.useTranslations.call(void 0, );
4933
4934
  const { setComponentType } = useAuthContext();
4934
4935
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
4935
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardHeader, { className: "mb-4", "data-testid": "page-pre-login-container", children: [
4936
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardTitle, { className: "text-primary flex flex-col items-center gap-y-8 pb-8 text-4xl", children: [
4937
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/phlow-logo.webp", alt: "Phlow", width: 100, height: 100, priority: true }),
4936
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardHeader, { className: "mb-4", "data-testid": "page-pre-login-container", children: [
4937
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardTitle, { className: "text-primary flex flex-col items-center gap-y-8 pb-8 text-4xl", children: [
4938
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/logo.webp", alt: "Logo", width: 100, height: 100, priority: true }),
4938
4939
  t(`generic.title`)
4939
4940
  ] }),
4940
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardDescription, { className: "flex w-full justify-center text-center text-sm", children: t(`generic.description`) })
4941
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardDescription, { className: "flex w-full justify-center text-center text-sm", children: t(`generic.description`) })
4941
4942
  ] }),
4942
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardFooter, { className: "mt-4 flex w-full flex-col justify-between", children: [
4943
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Link, { href: "#", className: "flex w-full justify-start", onClick: () => setComponentType(5 /* Register */), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Button, { className: "mt-4 w-full", variant: `default`, children: t(`foundations.auth.buttons.register`) }) }),
4944
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Link, { href: "#", className: "flex w-full justify-end", onClick: () => setComponentType(0 /* Login */), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Button, { className: "mt-4 w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: t(`foundations.auth.buttons.login`) }) })
4943
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardFooter, { className: "mt-4 flex w-full flex-col justify-between", children: [
4944
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Link, { href: "#", className: "flex w-full justify-start", onClick: () => setComponentType(5 /* Register */), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Button, { className: "mt-4 w-full", variant: `default`, children: t(`foundations.auth.buttons.register`) }) }),
4945
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Link, { href: "#", className: "flex w-full justify-end", onClick: () => setComponentType(0 /* Login */), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Button, { className: "mt-4 w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: t(`foundations.auth.buttons.login`) }) }),
4946
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4947
+ _chunk5IET37O4js.Button,
4948
+ {
4949
+ onClick: (e) => {
4950
+ e.preventDefault();
4951
+ window.location.href = `${_chunkPMXG5WBCjs.getApiUrl.call(void 0, )}auth/discord`;
4952
+ },
4953
+ className: `flex w-full justify-end`,
4954
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-sm font-medium leading-normal", children: "Discord" })
4955
+ }
4956
+ )
4945
4957
  ] })
4946
4958
  ] });
4947
4959
  }
@@ -4967,7 +4979,7 @@ function AcceptInvitation() {
4967
4979
  const payload = {
4968
4980
  code
4969
4981
  };
4970
- await _chunkL6LH7WA4js.AuthService.validateCode(payload);
4982
+ await _chunkPO5Q3H5Ijs.AuthService.validateCode(payload);
4971
4983
  } catch (e) {
4972
4984
  setError(e instanceof Error ? e.message : String(e));
4973
4985
  errorToast({ title: t(`generic.errors.error`), error: e });
@@ -5005,7 +5017,7 @@ function AcceptInvitation() {
5005
5017
  code: _optionalChain([params, 'optionalAccess', _139 => _139.code]),
5006
5018
  password: values.password
5007
5019
  };
5008
- await _chunkL6LH7WA4js.AuthService.acceptInvitation(payload);
5020
+ await _chunkPO5Q3H5Ijs.AuthService.acceptInvitation(payload);
5009
5021
  setShowConfirmation(true);
5010
5022
  _sonner.toast.success(t("foundations.auth.account_activated"), {
5011
5023
  description: t("foundations.auth.account_activated_description")
@@ -5019,14 +5031,14 @@ function AcceptInvitation() {
5019
5031
  }
5020
5032
  }, "onSubmit");
5021
5033
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
5022
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardHeader, { children: [
5023
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardTitle, { className: "text-primary flex flex-col items-center pb-10 text-4xl", children: [
5024
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/phlow-logo.webp", alt: "Phlow", width: 100, height: 100, priority: true }),
5034
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardHeader, { children: [
5035
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardTitle, { className: "text-primary flex flex-col items-center pb-10 text-4xl", children: [
5036
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/logo.webp", alt: "Logo", width: 100, height: 100, priority: true }),
5025
5037
  t("foundations.auth.accept_invitation")
5026
5038
  ] }),
5027
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardDescription, { className: "text-center text-sm", children: error ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: t("foundations.auth.errors.activating_account") }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: t("foundations.auth.select_password") }) })
5039
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardDescription, { className: "text-center text-sm", children: error ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: t("foundations.auth.errors.activating_account") }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: t("foundations.auth.select_password") }) })
5028
5040
  ] }),
5029
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardContent, { children: showConfirmation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardDescription, { className: "text-center text-xl", children: t("foundations.auth.activation_description") }) : error ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardDescription, { className: "text-center text-xl", children: error }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), children: [
5041
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardContent, { children: showConfirmation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardDescription, { className: "text-center text-xl", children: t("foundations.auth.activation_description") }) : error ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardDescription, { className: "text-center text-xl", children: error }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), children: [
5030
5042
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5031
5043
  FormPassword,
5032
5044
  {
@@ -5045,7 +5057,7 @@ function AcceptInvitation() {
5045
5057
  placeholder: t(`foundations.auth.fields.retype_password.placeholder`)
5046
5058
  }
5047
5059
  ),
5048
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Button, { className: "mt-4 w-full", type: "submit", children: t("foundations.auth.accept_invitation") })
5060
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Button, { className: "mt-4 w-full", type: "submit", children: t("foundations.auth.accept_invitation") })
5049
5061
  ] }) }) })
5050
5062
  ] });
5051
5063
  }
@@ -5068,7 +5080,7 @@ function ActivateAccount() {
5068
5080
  const payload = {
5069
5081
  activationCode: code
5070
5082
  };
5071
- await _chunkL6LH7WA4js.AuthService.activate(payload);
5083
+ await _chunkPO5Q3H5Ijs.AuthService.activate(payload);
5072
5084
  setShowConfirmation(true);
5073
5085
  setParams(void 0);
5074
5086
  _sonner.toast.success(t("foundations.auth.account_activated"), {
@@ -5090,14 +5102,14 @@ function ActivateAccount() {
5090
5102
  }
5091
5103
  }, []);
5092
5104
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
5093
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardHeader, { children: [
5094
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardTitle, { className: "text-primary flex flex-col items-center pb-10 text-4xl", children: [
5095
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/phlow-logo.webp", alt: "Phlow", width: 100, height: 100, priority: true }),
5105
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardHeader, { children: [
5106
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardTitle, { className: "text-primary flex flex-col items-center pb-10 text-4xl", children: [
5107
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/logo.webp", alt: "Logo", width: 100, height: 100, priority: true }),
5096
5108
  t("foundations.auth.accept_invitation")
5097
5109
  ] }),
5098
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardDescription, { className: "text-center text-sm", children: error ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: t("foundations.auth.errors.activating_account") }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: " " }) })
5110
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardDescription, { className: "text-center text-sm", children: error ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: t("foundations.auth.errors.activating_account") }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: " " }) })
5099
5111
  ] }),
5100
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardDescription, { className: "text-center text-xl", children: showConfirmation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: t("foundations.auth.activation_description") }) : error ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: error }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: t("foundations.auth.activation_wait") }) }) })
5112
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardDescription, { className: "text-center text-xl", children: showConfirmation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: t("foundations.auth.activation_description") }) : error ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: error }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: t("foundations.auth.activation_wait") }) }) })
5101
5113
  ] });
5102
5114
  }
5103
5115
  _chunk7QVYU63Ejs.__name.call(void 0, ActivateAccount, "ActivateAccount");
@@ -5111,8 +5123,8 @@ function Cookies({ dehydratedAuth, page }) {
5111
5123
  _react.useEffect.call(void 0, () => {
5112
5124
  if (hasSaved) return;
5113
5125
  async function saveTokenOnServer() {
5114
- await _chunkL6LH7WA4js.AuthService.saveToken({ dehydratedAuth });
5115
- const auth = _chunkWZJDLITGjs.rehydrate.call(void 0, _chunkWZJDLITGjs.Modules.Auth, dehydratedAuth);
5126
+ await _chunkPO5Q3H5Ijs.AuthService.saveToken({ dehydratedAuth });
5127
+ const auth = _chunkQ4FXESVTjs.rehydrate.call(void 0, _chunkQ4FXESVTjs.Modules.Auth, dehydratedAuth);
5116
5128
  setUser(auth.user);
5117
5129
  setHasSaved(true);
5118
5130
  if (page) {
@@ -5155,22 +5167,22 @@ function ForgotPassword() {
5155
5167
  const payload = {
5156
5168
  email: values.email
5157
5169
  };
5158
- await _chunkL6LH7WA4js.AuthService.initialiseForgotPassword(payload);
5170
+ await _chunkPO5Q3H5Ijs.AuthService.initialiseForgotPassword(payload);
5159
5171
  setShowConfirmation(true);
5160
5172
  } catch (e) {
5161
5173
  errorToast({ error: e });
5162
5174
  }
5163
5175
  }, "onSubmit");
5164
5176
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
5165
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardHeader, { "data-testid": "page-forgot-password-container", children: [
5166
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardTitle, { className: "text-primary flex flex-col items-center pb-10 text-4xl", children: [
5167
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/phlow-logo.webp", alt: "Phlows", width: 100, height: 100, priority: true }),
5177
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardHeader, { "data-testid": "page-forgot-password-container", children: [
5178
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardTitle, { className: "text-primary flex flex-col items-center pb-10 text-4xl", children: [
5179
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/logo.webp", alt: "Logo", width: 100, height: 100, priority: true }),
5168
5180
  t("foundations.auth.forgot_password")
5169
5181
  ] }),
5170
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardDescription, { className: "text-sm", children: showConfirmation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: " " }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: t(`foundations.auth.add_email_to_reset`) }) })
5182
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardDescription, { className: "text-sm", children: showConfirmation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: " " }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: t(`foundations.auth.add_email_to_reset`) }) })
5171
5183
  ] }),
5172
- showConfirmation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardDescription, { className: "text-center text-xl", children: t(`foundations.auth.reset_confirmation`) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), children: [
5173
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardContent, { children: [
5184
+ showConfirmation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardDescription, { className: "text-center text-xl", children: t(`foundations.auth.reset_confirmation`) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), children: [
5185
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardContent, { children: [
5174
5186
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5175
5187
  FormInput,
5176
5188
  {
@@ -5181,10 +5193,10 @@ function ForgotPassword() {
5181
5193
  testId: "form-forgot-password-input-email"
5182
5194
  }
5183
5195
  ),
5184
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Button, { className: "mt-4 w-full", type: "submit", "data-testid": "form-forgot-password-button-reset", children: t(`foundations.auth.buttons.reset_password`) })
5196
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Button, { className: "mt-4 w-full", type: "submit", "data-testid": "form-forgot-password-button-reset", children: t(`foundations.auth.buttons.reset_password`) })
5185
5197
  ] }),
5186
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardFooter, { className: "flex w-full flex-row justify-between", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5187
- _chunkEZK3H6EJjs.Link,
5198
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardFooter, { className: "flex w-full flex-row justify-between", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5199
+ _chunk5IET37O4js.Link,
5188
5200
  {
5189
5201
  href: "#",
5190
5202
  className: "flex w-full justify-end",
@@ -5226,7 +5238,7 @@ function Login() {
5226
5238
  });
5227
5239
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
5228
5240
  try {
5229
- const user = await _chunkL6LH7WA4js.AuthService.login({
5241
+ const user = await _chunkPO5Q3H5Ijs.AuthService.login({
5230
5242
  email: values.email,
5231
5243
  password: values.password
5232
5244
  });
@@ -5240,15 +5252,15 @@ function Login() {
5240
5252
  }
5241
5253
  }, "onSubmit");
5242
5254
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
5243
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardHeader, { "data-testid": "page-login-container", children: [
5244
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardTitle, { className: "text-primary flex flex-col items-center pb-10 text-4xl", children: [
5245
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/phlow-logo.webp", alt: "Phlow", width: 100, height: 100, priority: true }),
5255
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardHeader, { "data-testid": "page-login-container", children: [
5256
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardTitle, { className: "text-primary flex flex-col items-center pb-10 text-4xl", children: [
5257
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/logo.webp", alt: "Logo", width: 100, height: 100, priority: true }),
5246
5258
  t("foundations.auth.login")
5247
5259
  ] }),
5248
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardDescription, { className: "text-sm", children: t(`foundations.auth.login_description`) })
5260
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardDescription, { className: "text-sm", children: t(`foundations.auth.login_description`) })
5249
5261
  ] }),
5250
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), children: [
5251
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardContent, { children: [
5262
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), children: [
5263
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardContent, { children: [
5252
5264
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5253
5265
  FormInput,
5254
5266
  {
@@ -5270,11 +5282,11 @@ function Login() {
5270
5282
  testId: "form-login-input-password"
5271
5283
  }
5272
5284
  ),
5273
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Button, { className: "mt-4 w-full", type: "submit", "data-testid": "form-login-button-submit", children: t(`foundations.auth.login`) })
5285
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Button, { className: "mt-4 w-full", type: "submit", "data-testid": "form-login-button-submit", children: t(`foundations.auth.login`) })
5274
5286
  ] }),
5275
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardFooter, { className: "flex w-full flex-row justify-between", children: [
5287
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardFooter, { className: "flex w-full flex-row justify-between", children: [
5276
5288
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5277
- _chunkEZK3H6EJjs.Link,
5289
+ _chunk5IET37O4js.Link,
5278
5290
  {
5279
5291
  href: "#",
5280
5292
  className: "flex w-full justify-start",
@@ -5283,7 +5295,7 @@ function Login() {
5283
5295
  }
5284
5296
  ),
5285
5297
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5286
- _chunkEZK3H6EJjs.Link,
5298
+ _chunk5IET37O4js.Link,
5287
5299
  {
5288
5300
  href: "#",
5289
5301
  className: "flex w-full justify-end",
@@ -5305,7 +5317,7 @@ function Logout() {
5305
5317
  const generateUrl = usePageUrlGenerator();
5306
5318
  _react.useEffect.call(void 0, () => {
5307
5319
  const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
5308
- await _chunkL6LH7WA4js.AuthService.logout();
5320
+ await _chunkPO5Q3H5Ijs.AuthService.logout();
5309
5321
  window.location.href = generateUrl({ page: `/` });
5310
5322
  }, "logOut");
5311
5323
  logOut();
@@ -5320,7 +5332,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, Logout, "Logout");
5320
5332
  function RefreshUser() {
5321
5333
  const { setUser } = useCurrentUserContext();
5322
5334
  const loadFullUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
5323
- const fullUser = await _chunkL6LH7WA4js.UserService.findFullUser();
5335
+ const fullUser = await _chunkPO5Q3H5Ijs.UserService.findFullUser();
5324
5336
  if (fullUser) {
5325
5337
  setUser(fullUser);
5326
5338
  const token = {
@@ -5365,7 +5377,7 @@ function ResetPassword() {
5365
5377
  const payload = {
5366
5378
  code
5367
5379
  };
5368
- await _chunkL6LH7WA4js.AuthService.validateCode(payload);
5380
+ await _chunkPO5Q3H5Ijs.AuthService.validateCode(payload);
5369
5381
  } catch (e) {
5370
5382
  setError(e instanceof Error ? e.message : String(e));
5371
5383
  errorToast({ title: t(`generic.errors.error`), error: e });
@@ -5403,7 +5415,7 @@ function ResetPassword() {
5403
5415
  code: _optionalChain([params, 'optionalAccess', _151 => _151.code]),
5404
5416
  password: values.password
5405
5417
  };
5406
- await _chunkL6LH7WA4js.AuthService.resetPassword(payload);
5418
+ await _chunkPO5Q3H5Ijs.AuthService.resetPassword(payload);
5407
5419
  setShowConfirmation(true);
5408
5420
  _sonner.toast.success(t(`foundations.auth.reset_success`), {
5409
5421
  description: t(`foundations.auth.reset_success_description`)
@@ -5417,17 +5429,17 @@ function ResetPassword() {
5417
5429
  }
5418
5430
  }, "onSubmit");
5419
5431
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
5420
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardHeader, { children: [
5421
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardTitle, { className: "text-primary flex flex-col items-center pb-10 text-4xl", children: [
5422
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/phlow-logo.webp", alt: "Phlow", width: 100, height: 100, priority: true }),
5432
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardHeader, { children: [
5433
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardTitle, { className: "text-primary flex flex-col items-center pb-10 text-4xl", children: [
5434
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/logo.webp", alt: "Logo", width: 100, height: 100, priority: true }),
5423
5435
  t(`foundations.auth.password_reset`)
5424
5436
  ] }),
5425
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardDescription, { className: "text-center text-sm", children: error ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: t(`foundations.auth.errors.password_reset_error`) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: t(`foundations.auth.reset_password`) }) })
5437
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardDescription, { className: "text-center text-sm", children: error ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: t(`foundations.auth.errors.password_reset_error`) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: t(`foundations.auth.reset_password`) }) })
5426
5438
  ] }),
5427
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardContent, { children: showConfirmation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardDescription, { className: "text-center text-xl", children: t(`foundations.auth.reset_success_description`) }) : error ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardDescription, { className: "text-center text-xl", children: error }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), children: [
5439
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardContent, { children: showConfirmation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardDescription, { className: "text-center text-xl", children: t(`foundations.auth.reset_success_description`) }) : error ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardDescription, { className: "text-center text-xl", children: error }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), children: [
5428
5440
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormPassword, { form, id: "password", name: "Password" }),
5429
5441
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormPassword, { form, id: "passwordRetype", name: "Retype Password" }),
5430
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Button, { className: "mt-4 w-full", type: "submit", children: t(`foundations.auth.buttons.reset_password`) })
5442
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Button, { className: "mt-4 w-full", type: "submit", children: t(`foundations.auth.buttons.reset_password`) })
5431
5443
  ] }) }) })
5432
5444
  ] });
5433
5445
  }
@@ -5515,13 +5527,13 @@ function CompanyConfigurationSecurityForm({ form }) {
5515
5527
  break;
5516
5528
  }
5517
5529
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5518
- _chunkEZK3H6EJjs.FormField,
5530
+ _chunk5IET37O4js.FormField,
5519
5531
  {
5520
5532
  control: form.control,
5521
5533
  name: currentField,
5522
- render: ({ field: formField }) => type === "checkbox" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormItem, { className: "flex items-start space-x-4", children: [
5523
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5524
- _chunkEZK3H6EJjs.Checkbox,
5534
+ render: ({ field: formField }) => type === "checkbox" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormItem, { className: "flex items-start space-x-4", children: [
5535
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5536
+ _chunk5IET37O4js.Checkbox,
5525
5537
  {
5526
5538
  id: currentField,
5527
5539
  checked: formField.value,
@@ -5531,23 +5543,23 @@ function CompanyConfigurationSecurityForm({ form }) {
5531
5543
  }
5532
5544
  ) }),
5533
5545
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid gap-2", children: [
5534
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormLabel, { htmlFor: currentField, children: [
5546
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormLabel, { htmlFor: currentField, children: [
5535
5547
  label,
5536
5548
  " ",
5537
5549
  isRequired && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-destructive", children: "*" })
5538
5550
  ] }),
5539
5551
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-muted-foreground text-sm", children: placeholder })
5540
5552
  ] }),
5541
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormLabel, {}),
5542
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormMessage, {})
5543
- ] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormItem, { children: [
5544
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormLabel, { children: [
5553
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormLabel, {}),
5554
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormMessage, {})
5555
+ ] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormItem, { children: [
5556
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormLabel, { children: [
5545
5557
  label,
5546
5558
  " ",
5547
5559
  isRequired && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-destructive", children: "*" })
5548
5560
  ] }),
5549
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Input, { type, placeholder, ...formField }) }),
5550
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormMessage, {})
5561
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Input, { type, placeholder, ...formField }) }),
5562
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormMessage, {})
5551
5563
  ] })
5552
5564
  },
5553
5565
  currentField
@@ -5600,8 +5612,8 @@ function CompanyConfigurationEditorInternal({ company }) {
5600
5612
  }
5601
5613
  };
5602
5614
  try {
5603
- await _chunkL6LH7WA4js.CompanyService.updateConfigurations(payload);
5604
- const fullUser = await _chunkL6LH7WA4js.UserService.findFullUser();
5615
+ await _chunkPO5Q3H5Ijs.CompanyService.updateConfigurations(payload);
5616
+ const fullUser = await _chunkPO5Q3H5Ijs.UserService.findFullUser();
5605
5617
  if (fullUser) {
5606
5618
  setUser(fullUser);
5607
5619
  }
@@ -5616,18 +5628,18 @@ function CompanyConfigurationEditorInternal({ company }) {
5616
5628
  });
5617
5629
  }
5618
5630
  }, "onSubmit");
5619
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Dialog, { open, onOpenChange: setOpen, children: [
5620
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DialogTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Button, { size: "sm", variant: `ghost`, className: "cursor-pointer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Settings2Icon, { className: "h-3.5 w-3.5" }) }) }),
5621
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.DialogContent, { className: `flex max-h-[70vh] max-w-4xl flex-col overflow-y-auto`, children: [
5622
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.DialogHeader, { children: [
5623
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DialogTitle, { children: t(`types.configurations`, { count: 2 }) }),
5624
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DialogDescription, { className: "text-destructive", children: t(`features.configuration.warning_description`) })
5631
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Dialog, { open, onOpenChange: setOpen, children: [
5632
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DialogTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Button, { size: "sm", variant: `ghost`, className: "cursor-pointer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Settings2Icon, { className: "h-3.5 w-3.5" }) }) }),
5633
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.DialogContent, { className: `flex max-h-[70vh] max-w-4xl flex-col overflow-y-auto`, children: [
5634
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.DialogHeader, { children: [
5635
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DialogTitle, { children: t(`types.configurations`, { count: 2 }) }),
5636
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DialogDescription, { className: "text-destructive", children: t(`features.configuration.warning_description`) })
5625
5637
  ] }),
5626
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), className: `flex w-full flex-col gap-y-4`, children: [
5627
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `flex flex-row gap-x-4`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `flex w-full flex-col justify-start gap-y-4`, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Tabs, { defaultValue: process.env.NEXT_PUBLIC_PRIVATE_INSTALLATION ? "security" : "ai", children: [
5628
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TabsList, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TabsTrigger, { value: "security", children: "Privacy & Security" }) }),
5629
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TabsContent, { value: "features", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-muted-foreground text-sm", children: "Feature configuration will be implemented in future updates." }) }) }),
5630
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TabsContent, { value: "security", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationSecurityForm, { form }) })
5638
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), className: `flex w-full flex-col gap-y-4`, children: [
5639
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `flex flex-row gap-x-4`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `flex w-full flex-col justify-start gap-y-4`, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Tabs, { defaultValue: process.env.NEXT_PUBLIC_PRIVATE_INSTALLATION ? "security" : "ai", children: [
5640
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TabsList, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TabsTrigger, { value: "security", children: "Privacy & Security" }) }),
5641
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TabsContent, { value: "features", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-muted-foreground text-sm", children: "Feature configuration will be implemented in future updates." }) }) }),
5642
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TabsContent, { value: "security", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationSecurityForm, { form }) })
5631
5643
  ] }) }) }),
5632
5644
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorButtons, { form, setOpen, isEdit: true })
5633
5645
  ] }) })
@@ -5656,33 +5668,33 @@ function CompanyDeleterInternal({ company }) {
5656
5668
  const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
5657
5669
  setIsDeleting(true);
5658
5670
  try {
5659
- await _chunkL6LH7WA4js.CompanyService.delete({ companyId: company.id });
5671
+ await _chunkPO5Q3H5Ijs.CompanyService.delete({ companyId: company.id });
5660
5672
  router.push("/");
5661
5673
  } catch (error) {
5662
5674
  errorToast({ title: t(`generic.errors.delete`), error });
5663
5675
  }
5664
5676
  setIsDeleting(false);
5665
5677
  }, "handleDelete");
5666
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.AlertDialog, { open, onOpenChange: setOpen, children: [
5667
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.AlertDialogTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Button, { size: "sm", variant: "destructive", children: [
5678
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.AlertDialog, { open, onOpenChange: setOpen, children: [
5679
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.AlertDialogTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Button, { size: "sm", variant: "destructive", children: [
5668
5680
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2Icon, { className: "mr-3 h-3.5 w-3.5" }),
5669
5681
  t(`generic.buttons.delete`)
5670
5682
  ] }) }),
5671
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.AlertDialogContent, { className: `flex max-h-[70vh] max-w-3xl flex-col overflow-y-auto`, children: [
5672
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.AlertDialogHeader, { children: [
5673
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.AlertDialogTitle, { children: t(`generic.delete.title`, { type: t(`types.companies`, { count: 1 }) }) }),
5674
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.AlertDialogDescription, { children: t(`generic.delete.subtitle`, { type: t(`types.companies`, { count: 1 }) }) })
5683
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.AlertDialogContent, { className: `flex max-h-[70vh] max-w-3xl flex-col overflow-y-auto`, children: [
5684
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.AlertDialogHeader, { children: [
5685
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.AlertDialogTitle, { children: t(`generic.delete.title`, { type: t(`types.companies`, { count: 1 }) }) }),
5686
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.AlertDialogDescription, { children: t(`generic.delete.subtitle`, { type: t(`types.companies`, { count: 1 }) }) })
5675
5687
  ] }),
5676
5688
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-destructive p-4 text-sm", children: t(`generic.delete.description`, { type: t(`types.companies`, { count: 1 }) }) }),
5677
5689
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
5678
5690
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: t(`generic.delete.confirmation`, { type: t(`types.companies`, { count: 1 }) }) }),
5679
5691
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
5680
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Label, { className: "flex items-center", children: [
5692
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Label, { className: "flex items-center", children: [
5681
5693
  t(`foundations.company.fields.name.label`),
5682
5694
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-destructive ml-2 font-semibold", children: "*" })
5683
5695
  ] }),
5684
5696
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5685
- _chunkEZK3H6EJjs.Input,
5697
+ _chunk5IET37O4js.Input,
5686
5698
  {
5687
5699
  className: `w-full`,
5688
5700
  placeholder: t(`foundations.company.fields.name.placeholder`),
@@ -5693,7 +5705,7 @@ function CompanyDeleterInternal({ company }) {
5693
5705
  ] }),
5694
5706
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-end", children: [
5695
5707
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5696
- _chunkEZK3H6EJjs.Button,
5708
+ _chunk5IET37O4js.Button,
5697
5709
  {
5698
5710
  className: "mr-2",
5699
5711
  variant: "outline",
@@ -5704,7 +5716,7 @@ function CompanyDeleterInternal({ company }) {
5704
5716
  }
5705
5717
  ),
5706
5718
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5707
- _chunkEZK3H6EJjs.Button,
5719
+ _chunk5IET37O4js.Button,
5708
5720
  {
5709
5721
  type: "submit",
5710
5722
  onClick: (e) => {
@@ -5726,7 +5738,7 @@ function CompanyDeleterInternal({ company }) {
5726
5738
  _chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleterInternal, "CompanyDeleterInternal");
5727
5739
  function CompanyDeleter({ company }) {
5728
5740
  const { hasPermissionToModule, hasRole } = useCurrentUserContext();
5729
- if (!hasRole(_chunk4HCRAOS5js.getRoleId.call(void 0, ).Administrator) && !hasPermissionToModule({ module: _chunkWZJDLITGjs.Modules.Company, action: "delete" /* Delete */ }))
5741
+ if (!hasRole(_chunk4HCRAOS5js.getRoleId.call(void 0, ).Administrator) && !hasPermissionToModule({ module: _chunkQ4FXESVTjs.Modules.Company, action: "delete" /* Delete */ }))
5730
5742
  return null;
5731
5743
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleterInternal, { company });
5732
5744
  }
@@ -5774,7 +5786,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
5774
5786
  });
5775
5787
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
5776
5788
  if (values.logo && contentType) {
5777
- const s3 = await _chunkL6LH7WA4js.S3Service.getPreSignedUrl({
5789
+ const s3 = await _chunkPO5Q3H5Ijs.S3Service.getPreSignedUrl({
5778
5790
  key: values.logo,
5779
5791
  contentType,
5780
5792
  isPublic: true
@@ -5793,9 +5805,9 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
5793
5805
  moduleIds: values.moduleIds
5794
5806
  };
5795
5807
  try {
5796
- const updatedCompany = company ? await _chunkL6LH7WA4js.CompanyService.update(payload) : await _chunkL6LH7WA4js.CompanyService.create(payload);
5808
+ const updatedCompany = company ? await _chunkPO5Q3H5Ijs.CompanyService.update(payload) : await _chunkPO5Q3H5Ijs.CompanyService.create(payload);
5797
5809
  if (onRevalidate) {
5798
- await onRevalidate(generateUrl({ page: _chunkWZJDLITGjs.Modules.Company, id: updatedCompany.id, language: `[locale]` }));
5810
+ await onRevalidate(generateUrl({ page: _chunkQ4FXESVTjs.Modules.Company, id: updatedCompany.id, language: `[locale]` }));
5799
5811
  }
5800
5812
  if (company && propagateChanges) {
5801
5813
  _cookiesnext.setCookie.call(void 0, "reloadData", "true", { path: "/" });
@@ -5813,7 +5825,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
5813
5825
  }, "onSubmit");
5814
5826
  _react.useEffect.call(void 0, () => {
5815
5827
  async function fetchFeatures() {
5816
- const allfeatures = await _chunkL6LH7WA4js.FeatureService.findMany({});
5828
+ const allfeatures = await _chunkPO5Q3H5Ijs.FeatureService.findMany({});
5817
5829
  if (hasRole(_chunk4HCRAOS5js.getRoleId.call(void 0, ).Administrator)) {
5818
5830
  setFeatures(allfeatures);
5819
5831
  } else {
@@ -5857,15 +5869,15 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
5857
5869
  };
5858
5870
  const canAccessFeatures = hasRole(_chunk4HCRAOS5js.getRoleId.call(void 0, ).Administrator) || hasRole(_chunk4HCRAOS5js.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _174 => _174.env, 'access', _175 => _175.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _176 => _176.toLowerCase, 'call', _177 => _177()]) === "true";
5859
5871
  const isAdministrator = hasRole(_chunk4HCRAOS5js.getRoleId.call(void 0, ).Administrator);
5860
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Dialog, { open, onOpenChange: setOpen, children: [
5872
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Dialog, { open, onOpenChange: setOpen, children: [
5861
5873
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!company }),
5862
5874
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
5863
- _chunkEZK3H6EJjs.DialogContent,
5875
+ _chunk5IET37O4js.DialogContent,
5864
5876
  {
5865
5877
  className: `flex max-h-[70vh] w-full ${isAdministrator || canAccessFeatures ? `max-w-5xl` : `max-w-4xl`} flex-col overflow-y-auto`,
5866
5878
  children: [
5867
5879
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorHeader, { type: t(`types.companies`, { count: 1 }), name: _optionalChain([company, 'optionalAccess', _178 => _178.name]) }),
5868
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), className: `flex w-full flex-col gap-y-4`, children: [
5880
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), className: `flex w-full flex-col gap-y-4`, children: [
5869
5881
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start justify-between gap-x-4", children: [
5870
5882
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `flex w-96 flex-col justify-start gap-y-4`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileUploader, { value: files, onValueChange: setFiles, dropzoneOptions: dropzone2, className: "w-full p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "text-neutral-300 outline-dashed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: file || _optionalChain([company, 'optionalAccess', _179 => _179.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5871
5883
  _image2.default,
@@ -5888,7 +5900,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
5888
5900
  placeholder: t(`foundations.company.fields.name.placeholder`)
5889
5901
  }
5890
5902
  ) }),
5891
- canAccessFeatures && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `flex w-96 flex-col justify-start gap-y-4`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.ScrollArea, { className: "h-max", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5903
+ canAccessFeatures && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `flex w-96 flex-col justify-start gap-y-4`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.ScrollArea, { className: "h-max", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5892
5904
  FormFeatures,
5893
5905
  {
5894
5906
  form,
@@ -5927,9 +5939,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyEditor, "CompanyEditor");
5927
5939
  function CompaniesList() {
5928
5940
  const t = _nextintl.useTranslations.call(void 0, );
5929
5941
  const data = useDataListRetriever({
5930
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL6LH7WA4js.CompanyService.findMany(params), "retriever"),
5942
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkPO5Q3H5Ijs.CompanyService.findMany(params), "retriever"),
5931
5943
  retrieverParams: {},
5932
- module: _chunkWZJDLITGjs.Modules.Company
5944
+ module: _chunkQ4FXESVTjs.Modules.Company
5933
5945
  });
5934
5946
  const functions = [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, {}, "create-account")];
5935
5947
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -5937,7 +5949,7 @@ function CompaniesList() {
5937
5949
  {
5938
5950
  data,
5939
5951
  fields: ["name" /* name */, "createdAt" /* createdAt */],
5940
- tableGeneratorType: _chunkWZJDLITGjs.Modules.Company,
5952
+ tableGeneratorType: _chunkQ4FXESVTjs.Modules.Company,
5941
5953
  functions,
5942
5954
  title: t(`types.companies`, { count: 2 })
5943
5955
  }
@@ -5958,16 +5970,16 @@ function ContentsList({ contentList }) {
5958
5970
  _chunk7QVYU63Ejs.__name.call(void 0, ContentsList, "ContentsList");
5959
5971
  function ContentsListElement({ content }) {
5960
5972
  const generateUrl = usePageUrlGenerator();
5961
- const contentModule = content.contentType ? _chunkWZJDLITGjs.Modules.findByModelName(content.contentType) : void 0;
5973
+ const contentModule = content.contentType ? _chunkQ4FXESVTjs.Modules.findByModelName(content.contentType) : void 0;
5962
5974
  const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
5963
5975
  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: [
5964
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.HoverCard, { children: [
5965
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.HoverCardTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Link, { href: link, className: "flex w-full items-center justify-start gap-2 font-semibold", children: [
5966
- contentModule && _chunkLJRD4SRVjs.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
5976
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.HoverCard, { children: [
5977
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.HoverCardTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Link, { href: link, className: "flex w-full items-center justify-start gap-2 font-semibold", children: [
5978
+ contentModule && _chunkDEYKTLA3js.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
5967
5979
  content.name
5968
5980
  ] }) }),
5969
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.HoverCardContent, { className: "flex max-h-96 w-96 flex-col gap-y-4 overflow-y-auto", children: [
5970
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Link, { href: link, className: "font-semibold", children: content.name }),
5981
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.HoverCardContent, { className: "flex max-h-96 w-96 flex-col gap-y-4 overflow-y-auto", children: [
5982
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Link, { href: link, className: "font-semibold", children: content.name }),
5971
5983
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-xs", children: content.abstract })
5972
5984
  ] })
5973
5985
  ] }),
@@ -5982,8 +5994,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListElement, "ContentsListElement")
5982
5994
  function ContentsListById({ contentIds }) {
5983
5995
  const t = _nextintl.useTranslations.call(void 0, );
5984
5996
  const data = useDataListRetriever({
5985
- module: _chunkWZJDLITGjs.Modules.Content,
5986
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL6LH7WA4js.ContentService.findMany(params), "retriever"),
5997
+ module: _chunkQ4FXESVTjs.Modules.Content,
5998
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkPO5Q3H5Ijs.ContentService.findMany(params), "retriever"),
5987
5999
  retrieverParams: { contentIds }
5988
6000
  });
5989
6001
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -5991,7 +6003,7 @@ function ContentsListById({ contentIds }) {
5991
6003
  {
5992
6004
  data,
5993
6005
  fields: ["name" /* name */, "authors" /* authors */, "updatedAt" /* updatedAt */],
5994
- tableGeneratorType: _chunkWZJDLITGjs.Modules.Content,
6006
+ tableGeneratorType: _chunkQ4FXESVTjs.Modules.Content,
5995
6007
  title: t(`generic.relevant`)
5996
6008
  }
5997
6009
  );
@@ -6004,8 +6016,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListById, "ContentsListById");
6004
6016
  function RelevantContentsList({ id }) {
6005
6017
  const t = _nextintl.useTranslations.call(void 0, );
6006
6018
  const data = useDataListRetriever({
6007
- module: _chunkWZJDLITGjs.Modules.Content,
6008
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL6LH7WA4js.ContentService.findRelevant(params), "retriever"),
6019
+ module: _chunkQ4FXESVTjs.Modules.Content,
6020
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkPO5Q3H5Ijs.ContentService.findRelevant(params), "retriever"),
6009
6021
  retrieverParams: { id }
6010
6022
  });
6011
6023
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -6013,7 +6025,7 @@ function RelevantContentsList({ id }) {
6013
6025
  {
6014
6026
  data,
6015
6027
  fields: ["name" /* name */, "authors" /* authors */, "relevance" /* relevance */, "updatedAt" /* updatedAt */],
6016
- tableGeneratorType: _chunkWZJDLITGjs.Modules.Content,
6028
+ tableGeneratorType: _chunkQ4FXESVTjs.Modules.Content,
6017
6029
  title: t(`generic.relevant`)
6018
6030
  }
6019
6031
  );
@@ -6115,7 +6127,7 @@ function NotificationMenuItem({ notification, closePopover }) {
6115
6127
  ] })
6116
6128
  ] });
6117
6129
  if (!data.url) return response;
6118
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Link, { href: data.url, onClick: closePopover, children: response });
6130
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Link, { href: data.url, onClick: closePopover, children: response });
6119
6131
  }
6120
6132
  _chunk7QVYU63Ejs.__name.call(void 0, NotificationMenuItem, "NotificationMenuItem");
6121
6133
 
@@ -6149,7 +6161,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
6149
6161
  setIsLoading(true);
6150
6162
  setError(null);
6151
6163
  try {
6152
- const fetchedNotifications = await _chunkL6LH7WA4js.NotificationService.findMany({});
6164
+ const fetchedNotifications = await _chunkPO5Q3H5Ijs.NotificationService.findMany({});
6153
6165
  setNotifications(fetchedNotifications);
6154
6166
  setLastLoaded(Date.now());
6155
6167
  } catch (error2) {
@@ -6165,7 +6177,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
6165
6177
  try {
6166
6178
  const data = {
6167
6179
  data: ids.map((id) => ({
6168
- type: _chunkWZJDLITGjs.Modules.Notification.name,
6180
+ type: _chunkQ4FXESVTjs.Modules.Notification.name,
6169
6181
  id,
6170
6182
  attributes: {
6171
6183
  isRead: true
@@ -6174,8 +6186,8 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
6174
6186
  relationships: {}
6175
6187
  }))
6176
6188
  };
6177
- await _chunkL6LH7WA4js.NotificationService.markAsRead({ data });
6178
- const allNotifications = await _chunkL6LH7WA4js.NotificationService.findMany({});
6189
+ await _chunkPO5Q3H5Ijs.NotificationService.markAsRead({ data });
6190
+ const allNotifications = await _chunkPO5Q3H5Ijs.NotificationService.findMany({});
6179
6191
  setNotifications(allNotifications);
6180
6192
  setLastLoaded(Date.now());
6181
6193
  } catch (error2) {
@@ -6242,26 +6254,26 @@ function NotificationsList({ archived }) {
6242
6254
  const t = _nextintl.useTranslations.call(void 0, );
6243
6255
  const generateUrl = usePageUrlGenerator();
6244
6256
  const data = useDataListRetriever({
6245
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL6LH7WA4js.NotificationService.findMany(params), "retriever"),
6257
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkPO5Q3H5Ijs.NotificationService.findMany(params), "retriever"),
6246
6258
  retrieverParams: { isArchived: archived },
6247
- module: _chunkWZJDLITGjs.Modules.Notification
6259
+ module: _chunkQ4FXESVTjs.Modules.Notification
6248
6260
  });
6249
6261
  const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
6250
- await _chunkL6LH7WA4js.NotificationService.archive({ id: notification.id });
6262
+ await _chunkPO5Q3H5Ijs.NotificationService.archive({ id: notification.id });
6251
6263
  data.removeElement(notification);
6252
6264
  }, "archiveNotification");
6253
- 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, _chunkEZK3H6EJjs.Card, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardContent, { className: "p-2", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center", children: [
6254
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Skeleton, { className: "mr-4 h-8 w-8 rounded-full" }),
6265
+ 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, _chunk5IET37O4js.Card, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardContent, { className: "p-2", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center", children: [
6266
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Skeleton, { className: "mr-4 h-8 w-8 rounded-full" }),
6255
6267
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 space-y-2", children: [
6256
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Skeleton, { className: "h-4 w-3/4" }),
6257
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Skeleton, { className: "h-3 w-1/2" })
6268
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Skeleton, { className: "h-4 w-3/4" }),
6269
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Skeleton, { className: "h-3 w-1/2" })
6258
6270
  ] }),
6259
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Skeleton, { className: "h-8 w-20" })
6271
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Skeleton, { className: "h-8 w-20" })
6260
6272
  ] }) }) }, i)) }), "LoadingSkeleton");
6261
6273
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _185 => _185.data, 'optionalAccess', _186 => _186.map, 'call', _187 => _187((notification) => {
6262
6274
  const notificationData = generateNotificationData({ notification, generateUrl });
6263
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Card, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardContent, { className: "p-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex w-full flex-row items-center p-2`, children: [
6264
- 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, _chunkEZK3H6EJjs.Link, { href: generateUrl({ page: _chunkWZJDLITGjs.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" }),
6275
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Card, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardContent, { className: "p-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex w-full flex-row items-center p-2`, children: [
6276
+ 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, _chunk5IET37O4js.Link, { href: generateUrl({ page: _chunkQ4FXESVTjs.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" }),
6265
6277
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
6266
6278
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`foundations.notification.${notification.notificationType}.description`, {
6267
6279
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
@@ -6271,10 +6283,10 @@ function NotificationsList({ archived }) {
6271
6283
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
6272
6284
  ] }),
6273
6285
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-row items-center", children: [
6274
- notificationData.url ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Link, { href: notificationData.url, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Button, { variant: `outline`, size: `sm`, onClick: (e) => e.stopPropagation(), children: t(`foundations.notification.${notification.notificationType}.buttons.action`) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {}),
6275
- !archived && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Tooltip, { children: [
6276
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6277
- _chunkEZK3H6EJjs.Button,
6286
+ notificationData.url ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Link, { href: notificationData.url, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Button, { variant: `outline`, size: `sm`, onClick: (e) => e.stopPropagation(), children: t(`foundations.notification.${notification.notificationType}.buttons.action`) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {}),
6287
+ !archived && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Tooltip, { children: [
6288
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6289
+ _chunk5IET37O4js.Button,
6278
6290
  {
6279
6291
  variant: `link`,
6280
6292
  onClick: (e) => {
@@ -6286,7 +6298,7 @@ function NotificationsList({ archived }) {
6286
6298
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ArchiveIcon, { className: "h-4 w-4 cursor-pointer" })
6287
6299
  }
6288
6300
  ) }),
6289
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TooltipContent, { children: t(`foundations.notification.buttons.archive`) })
6301
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TooltipContent, { children: t(`foundations.notification.buttons.archive`) })
6290
6302
  ] })
6291
6303
  ] })
6292
6304
  ] }) }) }, notification.id);
@@ -6452,8 +6464,8 @@ function NotificationModalContent({ isOpen, setIsOpen }) {
6452
6464
  }
6453
6465
  }, "handleOpenChange");
6454
6466
  const unreadNotifications = newNotifications && unreadCount > 0;
6455
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Popover, { open: isOpen, onOpenChange: handleOpenChange, "data-testid": `sidebar-notification button`, children: [
6456
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.SidebarMenuButton, { className: "text-muted-foreground h-6", disabled: isLoading, children: [
6467
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Popover, { open: isOpen, onOpenChange: handleOpenChange, "data-testid": `sidebar-notification button`, children: [
6468
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.SidebarMenuButton, { className: "text-muted-foreground h-6", disabled: isLoading, children: [
6457
6469
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6458
6470
  _lucidereact.BellIcon,
6459
6471
  {
@@ -6462,17 +6474,17 @@ function NotificationModalContent({ isOpen, setIsOpen }) {
6462
6474
  ),
6463
6475
  t(`types.notifications`, { count: 2 })
6464
6476
  ] }) }),
6465
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.PopoverContent, { className: "relative left-10 w-80 border-0 p-0 shadow-none", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Card, { children: [
6466
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CardHeader, { className: "p-4", children: [
6467
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardTitle, { children: t(`types.notifications`, { count: 2 }) }),
6477
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.PopoverContent, { className: "relative left-10 w-80 border-0 p-0 shadow-none", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Card, { children: [
6478
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CardHeader, { className: "p-4", children: [
6479
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardTitle, { children: t(`types.notifications`, { count: 2 }) }),
6468
6480
  isLoading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground text-xs", children: "Loading..." }),
6469
6481
  error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive text-xs", children: [
6470
6482
  "Error: ",
6471
6483
  error
6472
6484
  ] })
6473
6485
  ] }),
6474
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Separator, {}),
6475
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.ScrollArea, { className: "h-96", children: notifications.length > 0 ? notifications.map((notification) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: generateNotification(notification, () => setIsOpen(false)) }, notification.id)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-4 text-center text-sm text-gray-500", children: t(`foundations.notification.empty`, { count: 2 }) }) })
6486
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Separator, {}),
6487
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.ScrollArea, { className: "h-96", children: notifications.length > 0 ? notifications.map((notification) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: generateNotification(notification, () => setIsOpen(false)) }, notification.id)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-4 text-center text-sm text-gray-500", children: t(`foundations.notification.empty`, { count: 2 }) }) })
6476
6488
  ] }) })
6477
6489
  ] });
6478
6490
  }
@@ -6499,18 +6511,18 @@ var RoleProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
6499
6511
  const generateUrl = usePageUrlGenerator();
6500
6512
  const t = _nextintl.useTranslations.call(void 0, );
6501
6513
  const [role, setRole] = _react.useState.call(void 0,
6502
- dehydratedRole ? _chunkWZJDLITGjs.rehydrate.call(void 0, _chunkWZJDLITGjs.Modules.Role, dehydratedRole) : void 0
6514
+ dehydratedRole ? _chunkQ4FXESVTjs.rehydrate.call(void 0, _chunkQ4FXESVTjs.Modules.Role, dehydratedRole) : void 0
6503
6515
  );
6504
6516
  const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
6505
6517
  const response = [];
6506
6518
  response.push({
6507
6519
  name: t(`types.roles`, { count: 2 }),
6508
- href: generateUrl({ page: _chunkWZJDLITGjs.Modules.Role })
6520
+ href: generateUrl({ page: _chunkQ4FXESVTjs.Modules.Role })
6509
6521
  });
6510
6522
  if (role)
6511
6523
  response.push({
6512
6524
  name: role.name,
6513
- href: generateUrl({ page: _chunkWZJDLITGjs.Modules.Role, id: role.id })
6525
+ href: generateUrl({ page: _chunkQ4FXESVTjs.Modules.Role, id: role.id })
6514
6526
  });
6515
6527
  return response;
6516
6528
  }, "breadcrumb");
@@ -6551,7 +6563,7 @@ function RoleDetails() {
6551
6563
  const { role } = useRoleContext();
6552
6564
  const t = _nextintl.useTranslations.call(void 0, );
6553
6565
  if (!role) return null;
6554
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Card, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CardContent, { className: "p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AttributeElement, { title: t(`foundations.role.fields.description.label`), value: role.description }) }) });
6566
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Card, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CardContent, { className: "p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AttributeElement, { title: t(`foundations.role.fields.description.label`), value: role.description }) }) });
6555
6567
  }
6556
6568
  _chunk7QVYU63Ejs.__name.call(void 0, RoleDetails, "RoleDetails");
6557
6569
 
@@ -6574,18 +6586,18 @@ function FormRoles({ form, id, name, roles }) {
6574
6586
  const t = _nextintl.useTranslations.call(void 0, );
6575
6587
  const { hasAccesToFeature } = useCurrentUserContext();
6576
6588
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6577
- _chunkEZK3H6EJjs.FormField,
6589
+ _chunk5IET37O4js.FormField,
6578
6590
  {
6579
6591
  control: form.control,
6580
6592
  name: id,
6581
- render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormItem, { className: `${name ? "mb-5" : "mb-1"}`, children: [
6582
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
6593
+ render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormItem, { className: `${name ? "mb-5" : "mb-1"}`, children: [
6594
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
6583
6595
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-sm font-semibold", children: name }),
6584
6596
  roles.filter((role) => role.isSelectable).sort((a, b) => a.name.localeCompare(b.name)).map((role) => {
6585
6597
  if (role.requiredFeature && !hasAccesToFeature(role.requiredFeature.id)) return null;
6586
6598
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
6587
6599
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6588
- _chunkEZK3H6EJjs.Checkbox,
6600
+ _chunk5IET37O4js.Checkbox,
6589
6601
  {
6590
6602
  defaultChecked: field.value.some((roleId) => roleId === role.id),
6591
6603
  onCheckedChange: (checked) => {
@@ -6600,14 +6612,14 @@ function FormRoles({ form, id, name, roles }) {
6600
6612
  }
6601
6613
  }
6602
6614
  ),
6603
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Tooltip, { children: [
6604
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormLabel, { className: "ml-3 font-normal", children: t(`foundations.role.roles`, { role: role.id.replaceAll(`-`, ``) }) }) }),
6605
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TooltipContent, { children: t(`foundations.role.roles_descriptions`, { role: role.id.replaceAll(`-`, ``) }) })
6615
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Tooltip, { children: [
6616
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormLabel, { className: "ml-3 font-normal", children: t(`foundations.role.roles`, { role: role.id.replaceAll(`-`, ``) }) }) }),
6617
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TooltipContent, { children: t(`foundations.role.roles_descriptions`, { role: role.id.replaceAll(`-`, ``) }) })
6606
6618
  ] })
6607
6619
  ] }, role.id);
6608
6620
  })
6609
6621
  ] }) }),
6610
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormMessage, {})
6622
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormMessage, {})
6611
6623
  ] })
6612
6624
  }
6613
6625
  ) });
@@ -6624,7 +6636,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
6624
6636
  const t = _nextintl.useTranslations.call(void 0, );
6625
6637
  _react.useEffect.call(void 0, () => {
6626
6638
  async function checkCompanyAdminDeletability() {
6627
- const roleUsers = await _chunkL6LH7WA4js.UserService.findAllUsersByRole({
6639
+ const roleUsers = await _chunkPO5Q3H5Ijs.UserService.findAllUsersByRole({
6628
6640
  roleId: role.id
6629
6641
  });
6630
6642
  if (roleUsers.length > 1) setCanRemove(true);
@@ -6638,7 +6650,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
6638
6650
  }, [role]);
6639
6651
  const remove = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
6640
6652
  try {
6641
- await _chunkL6LH7WA4js.RoleService.removeUserFromRole({
6653
+ await _chunkPO5Q3H5Ijs.RoleService.removeUserFromRole({
6642
6654
  roleId: role.id,
6643
6655
  userId: user.id
6644
6656
  });
@@ -6649,9 +6661,9 @@ function RemoveUserFromRole({ role, user, refresh }) {
6649
6661
  }
6650
6662
  }, "remove");
6651
6663
  const roleName = t(`foundations.role.roles`, { role: role.id.replaceAll(`-`, ``) });
6652
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Dialog, { open, onOpenChange: setOpen, children: [
6664
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Dialog, { open, onOpenChange: setOpen, children: [
6653
6665
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6654
- _chunkEZK3H6EJjs.DialogTrigger,
6666
+ _chunk5IET37O4js.DialogTrigger,
6655
6667
  {
6656
6668
  onClick: (e) => {
6657
6669
  e.stopPropagation();
@@ -6661,17 +6673,17 @@ function RemoveUserFromRole({ role, user, refresh }) {
6661
6673
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "hover:text-destructive cursor-pointer", children: t(`foundations.role.remove_user.title`) })
6662
6674
  }
6663
6675
  ),
6664
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.DialogContent, { className: `flex max-h-[70vh] max-w-3xl flex-col overflow-y-auto`, children: [
6665
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.DialogHeader, { children: [
6666
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DialogTitle, { children: t(`foundations.role.remove_user.title`) }),
6667
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DialogDescription, { children: canRemove ? t(`foundations.role.remove_user.subtitle_allowed`) : t(`foundations.role.remove_user.subtitle_not_allowed`) })
6676
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.DialogContent, { className: `flex max-h-[70vh] max-w-3xl flex-col overflow-y-auto`, children: [
6677
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.DialogHeader, { children: [
6678
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DialogTitle, { children: t(`foundations.role.remove_user.title`) }),
6679
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DialogDescription, { children: canRemove ? t(`foundations.role.remove_user.subtitle_allowed`) : t(`foundations.role.remove_user.subtitle_not_allowed`) })
6668
6680
  ] }),
6669
6681
  canRemove ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
6670
6682
  t(`foundations.role.remove_user.description_allowed`, { role: roleName, user: user.name }),
6671
6683
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-end", children: [
6672
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Button, { className: "mr-2", variant: "outline", type: `button`, onClick: () => setOpen(false), children: t(`generic.buttons.cancel`) }),
6684
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Button, { className: "mr-2", variant: "outline", type: `button`, onClick: () => setOpen(false), children: t(`generic.buttons.cancel`) }),
6673
6685
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6674
- _chunkEZK3H6EJjs.Button,
6686
+ _chunk5IET37O4js.Button,
6675
6687
  {
6676
6688
  type: "submit",
6677
6689
  onClick: (e) => {
@@ -6702,7 +6714,7 @@ function UserRoleAdd({ user, refresh }) {
6702
6714
  const [roles, setRoles] = _react.useState.call(void 0, []);
6703
6715
  const t = _nextintl.useTranslations.call(void 0, );
6704
6716
  const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (role) => {
6705
- await _chunkL6LH7WA4js.RoleService.addUserToRole({
6717
+ await _chunkPO5Q3H5Ijs.RoleService.addUserToRole({
6706
6718
  roleId: role.id,
6707
6719
  userId: user.id
6708
6720
  });
@@ -6726,7 +6738,7 @@ function UserRoleAdd({ user, refresh }) {
6726
6738
  const searchRoles = _react.useCallback.call(void 0,
6727
6739
  async (term) => {
6728
6740
  setRoles(
6729
- await _chunkL6LH7WA4js.RoleService.findAllRolesUserNotIn({
6741
+ await _chunkPO5Q3H5Ijs.RoleService.findAllRolesUserNotIn({
6730
6742
  search: term,
6731
6743
  userId: user.id
6732
6744
  })
@@ -6742,26 +6754,26 @@ function UserRoleAdd({ user, refresh }) {
6742
6754
  if (open) searchRoles("");
6743
6755
  }, [open]);
6744
6756
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
6745
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Button, { size: "sm", onClick: () => setOpen(true), children: [
6757
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Button, { size: "sm", onClick: () => setOpen(true), children: [
6746
6758
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className: "mr-3 h-3.5 w-3.5" }),
6747
6759
  t(`generic.association.label`, {
6748
6760
  source: t(`types.roles`, { count: 1 }),
6749
6761
  destination: t(`types.users`, { count: 1 })
6750
6762
  })
6751
6763
  ] }),
6752
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CommandDialog, { open, onOpenChange: setOpen, children: [
6753
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DialogTitle, { children: t(`generic.association.label`, {
6764
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CommandDialog, { open, onOpenChange: setOpen, children: [
6765
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DialogTitle, { children: t(`generic.association.label`, {
6754
6766
  source: t(`types.roles`, { count: 1 }),
6755
6767
  destination: t(`types.users`, { count: 1 })
6756
6768
  }) }),
6757
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DialogDescription, { children: t(`generic.association.description`, {
6769
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DialogDescription, { children: t(`generic.association.description`, {
6758
6770
  source: t(`types.roles`, { count: 1 }),
6759
6771
  destination: t(`types.users`, { count: 1 }),
6760
6772
  destination_name: user.name
6761
6773
  }) }),
6762
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Command, { shouldFilter: false, children: [
6774
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Command, { shouldFilter: false, children: [
6763
6775
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6764
- _chunkEZK3H6EJjs.CommandInput,
6776
+ _chunk5IET37O4js.CommandInput,
6765
6777
  {
6766
6778
  placeholder: t(`generic.search.placeholder`, { type: t(`types.roles`, { count: 1 }) }),
6767
6779
  value: searchTerm,
@@ -6769,10 +6781,10 @@ function UserRoleAdd({ user, refresh }) {
6769
6781
  ref: inputRef
6770
6782
  }
6771
6783
  ),
6772
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CommandList, { className: "mt-3 h-auto max-h-96 min-h-96 max-w-full overflow-x-hidden overflow-y-auto", children: [
6773
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CommandEmpty, { children: t(`generic.search.no_results`, { type: t(`types.roles`, { count: 1 }) }) }),
6784
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CommandList, { className: "mt-3 h-auto max-h-96 min-h-96 max-w-full overflow-x-hidden overflow-y-auto", children: [
6785
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CommandEmpty, { children: t(`generic.search.no_results`, { type: t(`types.roles`, { count: 1 }) }) }),
6774
6786
  roles.map((role) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6775
- _chunkEZK3H6EJjs.CommandItem,
6787
+ _chunk5IET37O4js.CommandItem,
6776
6788
  {
6777
6789
  className: "cursor-pointer",
6778
6790
  onSelect: () => addUserToRole(role),
@@ -6794,16 +6806,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserRoleAdd, "UserRoleAdd");
6794
6806
  function RolesList() {
6795
6807
  const t = _nextintl.useTranslations.call(void 0, );
6796
6808
  const data = useDataListRetriever({
6797
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL6LH7WA4js.RoleService.findAllRoles(params), "retriever"),
6809
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkPO5Q3H5Ijs.RoleService.findAllRoles(params), "retriever"),
6798
6810
  retrieverParams: {},
6799
- module: _chunkWZJDLITGjs.Modules.Role
6811
+ module: _chunkQ4FXESVTjs.Modules.Role
6800
6812
  });
6801
6813
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6802
6814
  ContentListTable,
6803
6815
  {
6804
6816
  data,
6805
6817
  fields: ["name" /* name */, "description" /* description */],
6806
- tableGeneratorType: _chunkWZJDLITGjs.Modules.Role,
6818
+ tableGeneratorType: _chunkQ4FXESVTjs.Modules.Role,
6807
6819
  title: t(`types.roles`, { count: 2 })
6808
6820
  }
6809
6821
  );
@@ -6816,16 +6828,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RolesList, "RolesList");
6816
6828
  function UserRolesList({ user }) {
6817
6829
  const t = _nextintl.useTranslations.call(void 0, );
6818
6830
  const data = useDataListRetriever({
6819
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL6LH7WA4js.RoleService.findAllRolesByUser(params), "retriever"),
6831
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkPO5Q3H5Ijs.RoleService.findAllRolesByUser(params), "retriever"),
6820
6832
  retrieverParams: { userId: user.id },
6821
- module: _chunkWZJDLITGjs.Modules.Role
6833
+ module: _chunkQ4FXESVTjs.Modules.Role
6822
6834
  });
6823
6835
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6824
6836
  ContentListTable,
6825
6837
  {
6826
6838
  data,
6827
6839
  fields: ["name" /* name */, "description" /* description */],
6828
- tableGeneratorType: _chunkWZJDLITGjs.Modules.Role,
6840
+ tableGeneratorType: _chunkQ4FXESVTjs.Modules.Role,
6829
6841
  title: t(`types.roles`, { count: 2 })
6830
6842
  }
6831
6843
  );
@@ -6842,7 +6854,7 @@ function AddUserToRoleInternal({ role, refresh }) {
6842
6854
  const [existingUsers, setExistingUsers] = _react.useState.call(void 0, null);
6843
6855
  _react.useEffect.call(void 0, () => {
6844
6856
  const fetchExistingUsers = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
6845
- setExistingUsers(await _chunkL6LH7WA4js.UserService.findMany({ roleId: role.id, fetchAll: true }));
6857
+ setExistingUsers(await _chunkPO5Q3H5Ijs.UserService.findMany({ roleId: role.id, fetchAll: true }));
6846
6858
  }, "fetchExistingUsers");
6847
6859
  if (show) {
6848
6860
  setExistingUsers(null);
@@ -6850,7 +6862,7 @@ function AddUserToRoleInternal({ role, refresh }) {
6850
6862
  }
6851
6863
  }, [show]);
6852
6864
  const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (user) => {
6853
- await _chunkL6LH7WA4js.RoleService.addUserToRole({
6865
+ await _chunkPO5Q3H5Ijs.RoleService.addUserToRole({
6854
6866
  roleId: role.id,
6855
6867
  userId: user.id
6856
6868
  });
@@ -6866,9 +6878,9 @@ function AddUserToRoleInternal({ role, refresh }) {
6866
6878
  }, "addUserToRole");
6867
6879
  const data = useDataListRetriever({
6868
6880
  ready: !!company && show,
6869
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL6LH7WA4js.UserService.findAllUsers(params), "retriever"),
6881
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkPO5Q3H5Ijs.UserService.findAllUsers(params), "retriever"),
6870
6882
  retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _190 => _190.id]) },
6871
- module: _chunkWZJDLITGjs.Modules.User
6883
+ module: _chunkQ4FXESVTjs.Modules.User
6872
6884
  });
6873
6885
  _react.useEffect.call(void 0, () => {
6874
6886
  if (!!company && show) {
@@ -6947,7 +6959,7 @@ function UserAvatarEditor({ user, file, setFile, resetImage, setResetImage }) {
6947
6959
  }
6948
6960
  ),
6949
6961
  !resetImage && (file || _optionalChain([user, 'optionalAccess', _193 => _193.avatar])) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6950
- _chunkEZK3H6EJjs.Button,
6962
+ _chunk5IET37O4js.Button,
6951
6963
  {
6952
6964
  className: "",
6953
6965
  size: `sm`,
@@ -6984,8 +6996,8 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
6984
6996
  CommonDeleter,
6985
6997
  {
6986
6998
  type: `users`,
6987
- deleteFunction: () => _chunkL6LH7WA4js.UserService.delete({ userId: user.id, companyId: cId }).then(
6988
- () => onDeleted ? onDeleted() : router.push(generateUrl({ page: _chunkWZJDLITGjs.Modules.User }))
6999
+ deleteFunction: () => _chunkPO5Q3H5Ijs.UserService.delete({ userId: user.id, companyId: cId }).then(
7000
+ () => onDeleted ? onDeleted() : router.push(generateUrl({ page: _chunkQ4FXESVTjs.Modules.User }))
6989
7001
  )
6990
7002
  }
6991
7003
  );
@@ -6993,7 +7005,7 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
6993
7005
  _chunk7QVYU63Ejs.__name.call(void 0, UserDeleterInternal, "UserDeleterInternal");
6994
7006
  function UserDeleter(props) {
6995
7007
  const { hasPermissionToModule } = useCurrentUserContext();
6996
- if (!hasPermissionToModule({ module: _chunkWZJDLITGjs.Modules.User, action: "delete" /* Delete */, data: props.user })) return null;
7008
+ if (!hasPermissionToModule({ module: _chunkQ4FXESVTjs.Modules.User, action: "delete" /* Delete */, data: props.user })) return null;
6997
7009
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserDeleterInternal, { ...props });
6998
7010
  }
6999
7011
  _chunk7QVYU63Ejs.__name.call(void 0, UserDeleter, "UserDeleter");
@@ -7057,7 +7069,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
7057
7069
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
7058
7070
  if (!user) {
7059
7071
  try {
7060
- const existingUser = await _chunkL6LH7WA4js.UserService.findByEmail({ email: values.email });
7072
+ const existingUser = await _chunkPO5Q3H5Ijs.UserService.findByEmail({ email: values.email });
7061
7073
  if (existingUser) {
7062
7074
  form.setError("email", {
7063
7075
  type: "manual",
@@ -7070,7 +7082,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
7070
7082
  }
7071
7083
  }
7072
7084
  if (values.avatar && contentType) {
7073
- const s3 = await _chunkL6LH7WA4js.S3Service.getPreSignedUrl({
7085
+ const s3 = await _chunkPO5Q3H5Ijs.S3Service.getPreSignedUrl({
7074
7086
  key: values.avatar,
7075
7087
  contentType,
7076
7088
  isPublic: true
@@ -7096,16 +7108,16 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
7096
7108
  adminCreated
7097
7109
  };
7098
7110
  try {
7099
- const updatedUser = user ? await _chunkL6LH7WA4js.UserService.update(payload) : await _chunkL6LH7WA4js.UserService.create(payload);
7111
+ const updatedUser = user ? await _chunkPO5Q3H5Ijs.UserService.update(payload) : await _chunkPO5Q3H5Ijs.UserService.create(payload);
7100
7112
  if (_optionalChain([currentUser, 'optionalAccess', _207 => _207.id]) === updatedUser.id) setUser(updatedUser);
7101
7113
  if (onRevalidate) {
7102
- await onRevalidate(generateUrl({ page: _chunkWZJDLITGjs.Modules.User, id: updatedUser.id, language: `[locale]` }));
7114
+ await onRevalidate(generateUrl({ page: _chunkQ4FXESVTjs.Modules.User, id: updatedUser.id, language: `[locale]` }));
7103
7115
  }
7104
7116
  if (propagateChanges) {
7105
7117
  propagateChanges(updatedUser);
7106
7118
  setOpen(false);
7107
7119
  } else {
7108
- router.push(generateUrl({ page: _chunkWZJDLITGjs.Modules.User, id: updatedUser.id }));
7120
+ router.push(generateUrl({ page: _chunkQ4FXESVTjs.Modules.User, id: updatedUser.id }));
7109
7121
  }
7110
7122
  } catch (error) {
7111
7123
  errorToast({ title: user ? t(`generic.errors.update`) : t(`generic.errors.create`), error });
@@ -7113,7 +7125,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
7113
7125
  }, "onSubmit");
7114
7126
  _react.useEffect.call(void 0, () => {
7115
7127
  async function fetchRoles() {
7116
- const roles2 = await _chunkL6LH7WA4js.RoleService.findAllRoles({});
7128
+ const roles2 = await _chunkPO5Q3H5Ijs.RoleService.findAllRoles({});
7117
7129
  const availableRoles = roles2.filter(
7118
7130
  (role) => role.id !== _chunk4HCRAOS5js.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _208 => _208.features, 'access', _209 => _209.some, 'call', _210 => _210((feature) => feature.id === _optionalChain([role, 'access', _211 => _211.requiredFeature, 'optionalAccess', _212 => _212.id]))]))
7119
7131
  );
@@ -7141,16 +7153,16 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
7141
7153
  setContentType(null);
7142
7154
  }
7143
7155
  }, [file]);
7144
- const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _216 => _216.id]) === _optionalChain([user, 'optionalAccess', _217 => _217.id]) && hasRole(_chunk4HCRAOS5js.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkWZJDLITGjs.Modules.User, action: "update" /* Update */ }) || hasRole(_chunk4HCRAOS5js.getRoleId.call(void 0, ).Administrator));
7145
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Dialog, { open, onOpenChange: setOpen, children: [
7146
- trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DialogTrigger, { asChild: true, children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!user }),
7156
+ const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _216 => _216.id]) === _optionalChain([user, 'optionalAccess', _217 => _217.id]) && hasRole(_chunk4HCRAOS5js.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkQ4FXESVTjs.Modules.User, action: "update" /* Update */ }) || hasRole(_chunk4HCRAOS5js.getRoleId.call(void 0, ).Administrator));
7157
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Dialog, { open, onOpenChange: setOpen, children: [
7158
+ trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DialogTrigger, { asChild: true, children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!user }),
7147
7159
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
7148
- _chunkEZK3H6EJjs.DialogContent,
7160
+ _chunk5IET37O4js.DialogContent,
7149
7161
  {
7150
7162
  className: `flex max-h-[70vh] ${canChangeRoles ? `max-w-[90vw]` : `max-w-3xl`} min-h-3xl max-h-[90vh] flex-col overflow-y-auto`,
7151
7163
  children: [
7152
7164
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorHeader, { type: t(`types.users`, { count: 1 }), name: _optionalChain([user, 'optionalAccess', _218 => _218.name]) }),
7153
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), className: `flex w-full flex-col gap-y-4`, children: [
7165
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), className: `flex w-full flex-col gap-y-4`, children: [
7154
7166
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex flex-row gap-x-4`, children: [
7155
7167
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `flex w-40 flex-col justify-start gap-y-2`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7156
7168
  UserAvatarEditor,
@@ -7258,7 +7270,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserEditorInternal, "UserEditorInternal");
7258
7270
  function UserEditor(props) {
7259
7271
  const { hasPermissionToModule } = useCurrentUserContext();
7260
7272
  if (!hasPermissionToModule({
7261
- module: _chunkWZJDLITGjs.Modules.User,
7273
+ module: _chunkQ4FXESVTjs.Modules.User,
7262
7274
  action: props.user ? "update" /* Update */ : "create" /* Create */,
7263
7275
  data: props.user
7264
7276
  }))
@@ -7272,9 +7284,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserEditor, "UserEditor");
7272
7284
 
7273
7285
 
7274
7286
  function UserAvatarIcon({ className, url, name }) {
7275
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Avatar, { className: `${className || "h-4 w-4"}`, children: [
7276
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.AvatarImage, { src: url }),
7277
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.AvatarFallback, { children: name ? name.split(" ").map((n) => n.charAt(0).toUpperCase()).join("") : "U" })
7287
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Avatar, { className: `${className || "h-4 w-4"}`, children: [
7288
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.AvatarImage, { src: url }),
7289
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.AvatarFallback, { children: name ? name.split(" ").map((n) => n.charAt(0).toUpperCase()).join("") : "U" })
7278
7290
  ] });
7279
7291
  }
7280
7292
  _chunk7QVYU63Ejs.__name.call(void 0, UserAvatarIcon, "UserAvatarIcon");
@@ -7297,10 +7309,10 @@ function UserMultiSelect({
7297
7309
  const data = useDataListRetriever({
7298
7310
  ready: !!company,
7299
7311
  retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
7300
- return _chunkL6LH7WA4js.UserService.findAllUsers(params);
7312
+ return _chunkPO5Q3H5Ijs.UserService.findAllUsers(params);
7301
7313
  }, "retriever"),
7302
7314
  retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _224 => _224.id]) },
7303
- module: _chunkWZJDLITGjs.Modules.User
7315
+ module: _chunkQ4FXESVTjs.Modules.User
7304
7316
  });
7305
7317
  _react.useEffect.call(void 0, () => {
7306
7318
  if (company) data.setReady(true);
@@ -7374,17 +7386,17 @@ function UserMultiSelect({
7374
7386
  }, "handleValueChange");
7375
7387
  const selectedUserIds = selectedUsers.map((user) => user.id);
7376
7388
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7377
- _chunkEZK3H6EJjs.FormField,
7389
+ _chunk5IET37O4js.FormField,
7378
7390
  {
7379
7391
  control: form.control,
7380
7392
  name: id,
7381
- render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormItem, { className: `${label ? "mb-5" : "mb-1"}`, children: [
7382
- label && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormLabel, { className: "flex items-center", children: [
7393
+ render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormItem, { className: `${label ? "mb-5" : "mb-1"}`, children: [
7394
+ label && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormLabel, { className: "flex items-center", children: [
7383
7395
  label,
7384
7396
  isRequired && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-destructive ml-2 font-semibold", children: "*" })
7385
7397
  ] }),
7386
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7387
- _chunkEZK3H6EJjs.MultiSelect,
7398
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7399
+ _chunk5IET37O4js.MultiSelect,
7388
7400
  {
7389
7401
  options: userOptions,
7390
7402
  onValueChange: handleValueChange,
@@ -7394,7 +7406,7 @@ function UserMultiSelect({
7394
7406
  animation: 0
7395
7407
  }
7396
7408
  ) }),
7397
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormMessage, {})
7409
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormMessage, {})
7398
7410
  ] })
7399
7411
  }
7400
7412
  ) });
@@ -7411,28 +7423,28 @@ function UserReactivatorInterface({ user, propagateChanges }) {
7411
7423
  const t = _nextintl.useTranslations.call(void 0, );
7412
7424
  const reactivateUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
7413
7425
  try {
7414
- const updatedUser = await _chunkL6LH7WA4js.UserService.reactivate({ userId: user.id });
7426
+ const updatedUser = await _chunkPO5Q3H5Ijs.UserService.reactivate({ userId: user.id });
7415
7427
  setOpen(false);
7416
7428
  propagateChanges(updatedUser);
7417
7429
  } catch (error) {
7418
7430
  errorToast({ title: t(`generic.errors.error`), error });
7419
7431
  }
7420
7432
  }, "reactivateUser");
7421
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Dialog, { open, onOpenChange: setOpen, children: [
7422
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DialogTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Button, { size: "sm", children: [
7433
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Dialog, { open, onOpenChange: setOpen, children: [
7434
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DialogTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Button, { size: "sm", children: [
7423
7435
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.UserCheckIcon, { className: "mr-3 h-3.5 w-3.5" }),
7424
7436
  t(`foundations.user.buttons.reactivate`)
7425
7437
  ] }) }),
7426
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.DialogContent, { className: `flex max-h-[70vh] max-w-3xl flex-col overflow-y-auto`, children: [
7427
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.DialogHeader, { children: [
7428
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DialogTitle, { children: t(`foundations.user.reactivate.title`) }),
7429
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DialogDescription, { children: t(`foundations.user.reactivate.subtitle`) })
7438
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.DialogContent, { className: `flex max-h-[70vh] max-w-3xl flex-col overflow-y-auto`, children: [
7439
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.DialogHeader, { children: [
7440
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DialogTitle, { children: t(`foundations.user.reactivate.title`) }),
7441
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DialogDescription, { children: t(`foundations.user.reactivate.subtitle`) })
7430
7442
  ] }),
7431
7443
  t(`foundations.user.reactivate.description`, { name: user.name }),
7432
7444
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-end", children: [
7433
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Button, { className: "mr-2", variant: "outline", type: `button`, onClick: () => setOpen(false), children: t(`generic.buttons.cancel`) }),
7445
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Button, { className: "mr-2", variant: "outline", type: `button`, onClick: () => setOpen(false), children: t(`generic.buttons.cancel`) }),
7434
7446
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7435
- _chunkEZK3H6EJjs.Button,
7447
+ _chunk5IET37O4js.Button,
7436
7448
  {
7437
7449
  type: "submit",
7438
7450
  onClick: (e) => {
@@ -7449,7 +7461,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
7449
7461
  _chunk7QVYU63Ejs.__name.call(void 0, UserReactivatorInterface, "UserReactivatorInterface");
7450
7462
  function UserReactivator(props) {
7451
7463
  const { hasPermissionToModule } = useCurrentUserContext();
7452
- if (!hasPermissionToModule({ module: _chunkWZJDLITGjs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
7464
+ if (!hasPermissionToModule({ module: _chunkQ4FXESVTjs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
7453
7465
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserReactivatorInterface, { ...props });
7454
7466
  }
7455
7467
  _chunk7QVYU63Ejs.__name.call(void 0, UserReactivator, "UserReactivator");
@@ -7465,7 +7477,7 @@ function UserResentInvitationEmailInternal({ user }) {
7465
7477
  const t = _nextintl.useTranslations.call(void 0, );
7466
7478
  const sendInvitationEmail = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
7467
7479
  try {
7468
- await _chunkL6LH7WA4js.UserService.sendInvitation({ userId: user.id, companyId: user.company.id });
7480
+ await _chunkPO5Q3H5Ijs.UserService.sendInvitation({ userId: user.id, companyId: user.company.id });
7469
7481
  setOpen(false);
7470
7482
  _sonner.toast.message(t(`foundations.user.resend_activation.email_sent`), {
7471
7483
  description: t(`foundations.user.resend_activation.email_sent_description`, { email: user.email })
@@ -7474,21 +7486,21 @@ function UserResentInvitationEmailInternal({ user }) {
7474
7486
  errorToast({ title: t(`generic.errors.error`), error });
7475
7487
  }
7476
7488
  }, "sendInvitationEmail");
7477
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Dialog, { open, onOpenChange: setOpen, children: [
7478
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Tooltip, { children: [
7479
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DialogTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Button, { size: "sm", variant: `ghost`, className: "text-muted-foreground", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.MailIcon, {}) }) }) }),
7480
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.TooltipContent, { children: t(`foundations.user.buttons.resend_activation`) })
7489
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Dialog, { open, onOpenChange: setOpen, children: [
7490
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Tooltip, { children: [
7491
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DialogTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Button, { size: "sm", variant: `ghost`, className: "text-muted-foreground", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.MailIcon, {}) }) }) }),
7492
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.TooltipContent, { children: t(`foundations.user.buttons.resend_activation`) })
7481
7493
  ] }),
7482
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.DialogContent, { className: `flex max-h-[70vh] max-w-3xl flex-col overflow-y-auto`, children: [
7483
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.DialogHeader, { children: [
7484
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DialogTitle, { children: t(`foundations.user.resend_activation.title`) }),
7485
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.DialogDescription, { children: t(`foundations.user.resend_activation.subtitle`) })
7494
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.DialogContent, { className: `flex max-h-[70vh] max-w-3xl flex-col overflow-y-auto`, children: [
7495
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.DialogHeader, { children: [
7496
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DialogTitle, { children: t(`foundations.user.resend_activation.title`) }),
7497
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.DialogDescription, { children: t(`foundations.user.resend_activation.subtitle`) })
7486
7498
  ] }),
7487
7499
  t(`foundations.user.resend_activation.description`, { email: user.email }),
7488
7500
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-end", children: [
7489
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.Button, { className: "mr-2", variant: "outline", type: `button`, onClick: () => setOpen(false), children: t(`generic.buttons.cancel`) }),
7501
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.Button, { className: "mr-2", variant: "outline", type: `button`, onClick: () => setOpen(false), children: t(`generic.buttons.cancel`) }),
7490
7502
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7491
- _chunkEZK3H6EJjs.Button,
7503
+ _chunk5IET37O4js.Button,
7492
7504
  {
7493
7505
  type: "submit",
7494
7506
  onClick: (e) => {
@@ -7505,7 +7517,7 @@ function UserResentInvitationEmailInternal({ user }) {
7505
7517
  _chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmailInternal, "UserResentInvitationEmailInternal");
7506
7518
  function UserResentInvitationEmail(props) {
7507
7519
  const { hasPermissionToModule } = useCurrentUserContext();
7508
- if (!hasPermissionToModule({ module: _chunkWZJDLITGjs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
7520
+ if (!hasPermissionToModule({ module: _chunkQ4FXESVTjs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
7509
7521
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserResentInvitationEmailInternal, { ...props });
7510
7522
  }
7511
7523
  _chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmail, "UserResentInvitationEmail");
@@ -7523,10 +7535,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
7523
7535
  const [isSearching, setIsSearching] = _react.useState.call(void 0, false);
7524
7536
  const data = useDataListRetriever({
7525
7537
  retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
7526
- return _chunkL6LH7WA4js.UserService.findMany(params);
7538
+ return _chunkPO5Q3H5Ijs.UserService.findMany(params);
7527
7539
  }, "retriever"),
7528
7540
  retrieverParams: {},
7529
- module: _chunkWZJDLITGjs.Modules.User
7541
+ module: _chunkQ4FXESVTjs.Modules.User
7530
7542
  });
7531
7543
  const search = _react.useCallback.call(void 0,
7532
7544
  async (searchedTerm) => {
@@ -7560,21 +7572,21 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
7560
7572
  }, 0);
7561
7573
  }, "setUser");
7562
7574
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7563
- _chunkEZK3H6EJjs.FormField,
7575
+ _chunk5IET37O4js.FormField,
7564
7576
  {
7565
7577
  control: form.control,
7566
7578
  name: id,
7567
- render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormItem, { className: `${label ? "mb-5" : "mb-1"}`, children: [
7568
- label && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.FormLabel, { className: "flex items-center", children: [
7579
+ render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormItem, { className: `${label ? "mb-5" : "mb-1"}`, children: [
7580
+ label && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.FormLabel, { className: "flex items-center", children: [
7569
7581
  label,
7570
7582
  isRequired && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-destructive ml-2 font-semibold", children: "*" })
7571
7583
  ] }),
7572
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Popover, { open, onOpenChange: setOpen, modal: true, children: [
7584
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormControl, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Popover, { open, onOpenChange: setOpen, modal: true, children: [
7573
7585
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
7574
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.PopoverTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start rounded-md", children: field.value ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start rounded-md border p-2", children: [
7575
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Avatar, { className: `mr-2 h-6 w-6`, children: [
7576
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.AvatarImage, { src: _optionalChain([field, 'access', _230 => _230.value, 'optionalAccess', _231 => _231.avatar]) }),
7577
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.AvatarFallback, { children: _optionalChain([field, 'access', _232 => _232.value, 'optionalAccess', _233 => _233.name]) ? _optionalChain([field, 'access', _234 => _234.value, 'optionalAccess', _235 => _235.name, 'access', _236 => _236.split, 'call', _237 => _237(" "), 'access', _238 => _238.map, 'call', _239 => _239((name) => name.charAt(0).toUpperCase())]) : "X" })
7586
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.PopoverTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start rounded-md", children: field.value ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start rounded-md border p-2", children: [
7587
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Avatar, { className: `mr-2 h-6 w-6`, children: [
7588
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.AvatarImage, { src: _optionalChain([field, 'access', _230 => _230.value, 'optionalAccess', _231 => _231.avatar]) }),
7589
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.AvatarFallback, { children: _optionalChain([field, 'access', _232 => _232.value, 'optionalAccess', _233 => _233.name]) ? _optionalChain([field, 'access', _234 => _234.value, 'optionalAccess', _235 => _235.name, 'access', _236 => _236.split, 'call', _237 => _237(" "), 'access', _238 => _238.map, 'call', _239 => _239((name) => name.charAt(0).toUpperCase())]) : "X" })
7578
7590
  ] }) }),
7579
7591
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "", children: _nullishCoalesce(_optionalChain([field, 'access', _240 => _240.value, 'optionalAccess', _241 => _241.name]), () => ( "")) })
7580
7592
  ] }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mr-7 flex h-10 w-full flex-row items-center justify-start rounded-md border p-2 text-sm", children: _nullishCoalesce(placeholder, () => ( t(`generic.search.placeholder`, { type: t(`types.users`, { count: 1 }) }))) }) }) }),
@@ -7586,11 +7598,11 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
7586
7598
  }
7587
7599
  )
7588
7600
  ] }),
7589
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.PopoverContent, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.Command, { shouldFilter: false, children: [
7601
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.PopoverContent, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.Command, { shouldFilter: false, children: [
7590
7602
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative mb-2 w-full", children: [
7591
7603
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.SearchIcon, { className: "text-muted-foreground absolute top-2.5 left-2.5 h-4 w-4" }),
7592
7604
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7593
- _chunkEZK3H6EJjs.Input,
7605
+ _chunk5IET37O4js.Input,
7594
7606
  {
7595
7607
  placeholder: t(`generic.search.placeholder`, { type: t(`types.users`, { count: 1 }) }),
7596
7608
  type: "text",
@@ -7610,13 +7622,13 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
7610
7622
  }
7611
7623
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {})
7612
7624
  ] }),
7613
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.CommandList, { children: data.data && data.data.length > 0 && data.data.map((user) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEZK3H6EJjs.CommandItem, { className: "cursor-pointer", onSelect: () => setUser(user), children: [
7625
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.CommandList, { children: data.data && data.data.length > 0 && data.data.map((user) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5IET37O4js.CommandItem, { className: "cursor-pointer", onSelect: () => setUser(user), children: [
7614
7626
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user, className: `mr-2 h-4 w-4` }),
7615
7627
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "", children: user.name })
7616
7628
  ] }, user.id)) })
7617
7629
  ] }) })
7618
7630
  ] }) }),
7619
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEZK3H6EJjs.FormMessage, {})
7631
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5IET37O4js.FormMessage, {})
7620
7632
  ] })
7621
7633
  }
7622
7634
  ) });
@@ -7631,24 +7643,24 @@ var UserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
7631
7643
  const { hasPermissionToModule } = useCurrentUserContext();
7632
7644
  const t = _nextintl.useTranslations.call(void 0, );
7633
7645
  const [user, setUser] = _react.useState.call(void 0,
7634
- dehydratedUser ? _chunkWZJDLITGjs.rehydrate.call(void 0, _chunkWZJDLITGjs.Modules.User, dehydratedUser) : void 0
7646
+ dehydratedUser ? _chunkQ4FXESVTjs.rehydrate.call(void 0, _chunkQ4FXESVTjs.Modules.User, dehydratedUser) : void 0
7635
7647
  );
7636
7648
  const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
7637
7649
  const response = [];
7638
- if (hasPermissionToModule({ module: _chunkWZJDLITGjs.Modules.User, action: "update" /* Update */ })) {
7650
+ if (hasPermissionToModule({ module: _chunkQ4FXESVTjs.Modules.User, action: "update" /* Update */ })) {
7639
7651
  response.push({
7640
7652
  name: t(`generic.settings`),
7641
7653
  href: generateUrl({ page: `/settings` })
7642
7654
  });
7643
7655
  response.push({
7644
7656
  name: t(`types.users`, { count: 2 }),
7645
- href: generateUrl({ page: `/settings`, id: _chunkWZJDLITGjs.Modules.User.pageUrl })
7657
+ href: generateUrl({ page: `/settings`, id: _chunkQ4FXESVTjs.Modules.User.pageUrl })
7646
7658
  });
7647
7659
  }
7648
7660
  if (user)
7649
7661
  response.push({
7650
7662
  name: `${user.name}${user.isDeleted ? ` (${t(`foundations.user.deleted`)})` : ""}`,
7651
- href: generateUrl({ page: _chunkWZJDLITGjs.Modules.User, id: user.id })
7663
+ href: generateUrl({ page: _chunkQ4FXESVTjs.Modules.User, id: user.id })
7652
7664
  });
7653
7665
  return response;
7654
7666
  }, "breadcrumb");
@@ -7703,14 +7715,14 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
7703
7715
  const t = _nextintl.useTranslations.call(void 0, );
7704
7716
  const { hasPermissionToModule, hasRole } = useCurrentUserContext();
7705
7717
  const [company, setCompany] = _react.useState.call(void 0,
7706
- dehydratedCompany ? _chunkWZJDLITGjs.rehydrate.call(void 0, _chunkWZJDLITGjs.Modules.Company, dehydratedCompany) : void 0
7718
+ dehydratedCompany ? _chunkQ4FXESVTjs.rehydrate.call(void 0, _chunkQ4FXESVTjs.Modules.Company, dehydratedCompany) : void 0
7707
7719
  );
7708
7720
  const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
7709
7721
  const response = [];
7710
7722
  if (company)
7711
7723
  response.push({
7712
7724
  name: company.name,
7713
- href: generateUrl({ page: _chunkWZJDLITGjs.Modules.Company })
7725
+ href: generateUrl({ page: _chunkQ4FXESVTjs.Modules.Company })
7714
7726
  });
7715
7727
  return response;
7716
7728
  }, "breadcrumb");
@@ -7720,9 +7732,9 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
7720
7732
  };
7721
7733
  if (company) response.element = company.name;
7722
7734
  const functions = [];
7723
- if (company && hasRole(_chunk4HCRAOS5js.getRoleId.call(void 0, ).Administrator) && hasPermissionToModule({ module: _chunkWZJDLITGjs.Modules.Company, action: "delete" /* Delete */ }))
7735
+ if (company && hasRole(_chunk4HCRAOS5js.getRoleId.call(void 0, ).Administrator) && hasPermissionToModule({ module: _chunkQ4FXESVTjs.Modules.Company, action: "delete" /* Delete */ }))
7724
7736
  functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleter, { company }, "companyDeleter"));
7725
- if (hasRole(_chunk4HCRAOS5js.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module: _chunkWZJDLITGjs.Modules.Company, action: "update" /* Update */ })) {
7737
+ if (hasRole(_chunk4HCRAOS5js.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module: _chunkQ4FXESVTjs.Modules.Company, action: "update" /* Update */ })) {
7726
7738
  if (company) functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditor, { company }, "companyConfigurationEditor"));
7727
7739
  functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, { company, propagateChanges: setCompany }, "companyEditor"));
7728
7740
  }
@@ -7968,4 +7980,4 @@ var useSocketContext = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () =
7968
7980
 
7969
7981
 
7970
7982
  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.AddUserToRole = AddUserToRole; exports.UserAvatarEditor = UserAvatarEditor; exports.UserDeleter = UserDeleter; exports.UserEditor = UserEditor; exports.UserMultiSelect = UserMultiSelect; exports.UserReactivator = UserReactivator; exports.UserResentInvitationEmail = UserResentInvitationEmail; exports.UserAvatar = UserAvatar; exports.UserSelector = UserSelector; exports.UserProvider = UserProvider; exports.useUserContext = useUserContext; exports.UserDetails = UserDetails; 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.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationSecurityForm = CompanyConfigurationSecurityForm; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.CompanyProvider = CompanyProvider; exports.useCompanyContext = useCompanyContext; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.RoleProvider = RoleProvider; exports.useRoleContext = useRoleContext; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; 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.Breadcrumb = Breadcrumb2; exports.ContentTitle = ContentTitle; exports.Header = Header; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; 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.JsonApiContext = JsonApiContext; exports.useJsonApiConfig = useJsonApiConfig; exports.useJsonApiConfigOptional = useJsonApiConfigOptional; exports.JsonApiProvider = JsonApiProvider; exports.useJsonApiGet = useJsonApiGet; exports.useJsonApiMutation = useJsonApiMutation; exports.useRehydration = useRehydration; exports.useRehydrationList = useRehydrationList; exports.useRoleTableStructure = useRoleTableStructure; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.useContentTableStructure = useContentTableStructure; 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.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.RoleDetails = RoleDetails; exports.RoleContainer = RoleContainer; exports.FormRoles = FormRoles; exports.RemoveUserFromRole = RemoveUserFromRole; exports.UserRoleAdd = UserRoleAdd; exports.RolesList = RolesList; exports.UserRolesList = UserRolesList;
7971
- //# sourceMappingURL=chunk-KDFDGXCX.js.map
7983
+ //# sourceMappingURL=chunk-K2ANOT66.js.map