@carlonicora/nextjs-jsonapi 1.3.0 → 1.4.0

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