@carlonicora/nextjs-jsonapi 1.35.0 → 1.36.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 (44) hide show
  1. package/dist/{BlockNoteEditor-O2GEMLA5.mjs → BlockNoteEditor-KFUTQVUK.mjs} +3 -3
  2. package/dist/{BlockNoteEditor-3NFHRHR5.js → BlockNoteEditor-N3J42SBY.js} +13 -13
  3. package/dist/{BlockNoteEditor-3NFHRHR5.js.map → BlockNoteEditor-N3J42SBY.js.map} +1 -1
  4. package/dist/billing/index.js +333 -333
  5. package/dist/billing/index.mjs +2 -2
  6. package/dist/{chunk-NJXGCB7Q.mjs → chunk-DLJTN632.mjs} +134 -62
  7. package/dist/chunk-DLJTN632.mjs.map +1 -0
  8. package/dist/{chunk-IZKIM7U5.js → chunk-NNCTRU4O.js} +21 -1
  9. package/dist/chunk-NNCTRU4O.js.map +1 -0
  10. package/dist/{chunk-T4UAULVP.js → chunk-S2RZBQP4.js} +723 -651
  11. package/dist/chunk-S2RZBQP4.js.map +1 -0
  12. package/dist/{chunk-FJUMCH77.mjs → chunk-YZV24UWN.mjs} +21 -1
  13. package/dist/{chunk-FJUMCH77.mjs.map → chunk-YZV24UWN.mjs.map} +1 -1
  14. package/dist/client/index.js +3 -3
  15. package/dist/client/index.mjs +2 -2
  16. package/dist/components/index.js +3 -3
  17. package/dist/components/index.mjs +2 -2
  18. package/dist/contexts/index.d.mts +3 -1
  19. package/dist/contexts/index.d.ts +3 -1
  20. package/dist/contexts/index.js +3 -3
  21. package/dist/contexts/index.mjs +2 -2
  22. package/dist/core/index.d.mts +2 -2
  23. package/dist/core/index.d.ts +2 -2
  24. package/dist/core/index.js +2 -2
  25. package/dist/core/index.mjs +1 -1
  26. package/dist/index.d.mts +1 -1
  27. package/dist/index.d.ts +1 -1
  28. package/dist/index.js +2 -2
  29. package/dist/index.mjs +1 -1
  30. package/dist/{s3.service-DcqkGrKD.d.ts → s3.service-DXkDoMf1.d.ts} +3 -0
  31. package/dist/{s3.service-ag6M_7GO.d.mts → s3.service-hnTPVTm2.d.mts} +3 -0
  32. package/dist/server/index.d.mts +1 -1
  33. package/dist/server/index.d.ts +1 -1
  34. package/dist/server/index.js +3 -3
  35. package/dist/server/index.mjs +1 -1
  36. package/package.json +1 -1
  37. package/src/features/company/components/forms/CompanyDeleter.tsx +157 -70
  38. package/src/features/company/contexts/CompanyContext.tsx +1 -1
  39. package/src/features/company/data/company.service.ts +23 -0
  40. package/src/features/user/contexts/CurrentUserContext.tsx +19 -13
  41. package/dist/chunk-IZKIM7U5.js.map +0 -1
  42. package/dist/chunk-NJXGCB7Q.mjs.map +0 -1
  43. package/dist/chunk-T4UAULVP.js.map +0 -1
  44. /package/dist/{BlockNoteEditor-O2GEMLA5.mjs.map → BlockNoteEditor-KFUTQVUK.mjs.map} +0 -0
@@ -41,7 +41,7 @@ var _chunk2PHWAL6Qjs = require('./chunk-2PHWAL6Q.js');
41
41
 
42
42
 
43
43
 
44
- var _chunkIZKIM7U5js = require('./chunk-IZKIM7U5.js');
44
+ var _chunkNNCTRU4Ojs = require('./chunk-NNCTRU4O.js');
45
45
 
46
46
 
47
47
  var _chunk3EPNHTMHjs = require('./chunk-3EPNHTMH.js');
@@ -188,7 +188,7 @@ function useDataListRetriever(params) {
188
188
  const isFetchingRef = _react.useRef.call(void 0, false);
189
189
  const isPaginatingRef = _react.useRef.call(void 0, false);
190
190
  const resolvedType = params.module;
191
- const resolvedService = _chunkIZKIM7U5js.ClientAbstractService;
191
+ const resolvedService = _chunkNNCTRU4Ojs.ClientAbstractService;
192
192
  const parsePageParams = _react.useCallback.call(void 0, (url) => {
193
193
  if (!url) return null;
194
194
  try {
@@ -307,7 +307,7 @@ function useDataListRetriever(params) {
307
307
  setIsLoaded(true);
308
308
  setNextPage(nextRef.next ? nextRef.next : void 0);
309
309
  setPreviousPage(previousRef.previous ? previousRef.previous : void 0);
310
- const apiTotal = _nullishCoalesce(totalRef.total, () => ( _chunkIZKIM7U5js.getLastApiTotal.call(void 0, )));
310
+ const apiTotal = _nullishCoalesce(totalRef.total, () => ( _chunkNNCTRU4Ojs.getLastApiTotal.call(void 0, )));
311
311
  if (apiTotal !== void 0) {
312
312
  setTotal(apiTotal);
313
313
  }
@@ -952,20 +952,20 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
952
952
  if (!token && dehydratedUser) setDehydratedUser(null);
953
953
  }, [dehydratedUser, setDehydratedUser]);
954
954
  const matchUrlToModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
955
- const moduleKeys = Object.getOwnPropertyNames(_chunkIZKIM7U5js.Modules).filter(
955
+ const moduleKeys = Object.getOwnPropertyNames(_chunkNNCTRU4Ojs.Modules).filter(
956
956
  (key) => key !== "prototype" && key !== "_factory" && key !== "length" && key !== "name"
957
957
  );
958
958
  const matchedModuleKey = moduleKeys.find((key) => {
959
- const descriptor2 = Object.getOwnPropertyDescriptor(_chunkIZKIM7U5js.Modules, key);
959
+ const descriptor2 = Object.getOwnPropertyDescriptor(_chunkNNCTRU4Ojs.Modules, key);
960
960
  if (!_optionalChain([descriptor2, 'optionalAccess', _29 => _29.get])) return false;
961
- const selectedModule = descriptor2.get.call(_chunkIZKIM7U5js.Modules);
961
+ const selectedModule = descriptor2.get.call(_chunkNNCTRU4Ojs.Modules);
962
962
  return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _30 => _30.pageUrl, 'optionalAccess', _31 => _31.toLowerCase, 'call', _32 => _32()]));
963
963
  });
964
964
  if (!matchedModuleKey) return void 0;
965
- const descriptor = Object.getOwnPropertyDescriptor(_chunkIZKIM7U5js.Modules, matchedModuleKey);
966
- return _optionalChain([descriptor, 'optionalAccess', _33 => _33.get, 'optionalAccess', _34 => _34.call, 'call', _35 => _35(_chunkIZKIM7U5js.Modules)]);
965
+ const descriptor = Object.getOwnPropertyDescriptor(_chunkNNCTRU4Ojs.Modules, matchedModuleKey);
966
+ return _optionalChain([descriptor, 'optionalAccess', _33 => _33.get, 'optionalAccess', _34 => _34.call, 'call', _35 => _35(_chunkNNCTRU4Ojs.Modules)]);
967
967
  }, "matchUrlToModule");
968
- const currentUser = dehydratedUser ? _chunkIZKIM7U5js.rehydrate.call(void 0, _chunkIZKIM7U5js.Modules.User, dehydratedUser) : null;
968
+ const currentUser = dehydratedUser ? _chunkNNCTRU4Ojs.rehydrate.call(void 0, _chunkNNCTRU4Ojs.Modules.User, dehydratedUser) : null;
969
969
  const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _36 => _36.company]), () => ( null));
970
970
  const setUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (user) => {
971
971
  if (user) setDehydratedUser(user.dehydrate());
@@ -983,14 +983,14 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
983
983
  function hasPermissionToModule(params) {
984
984
  if (!currentUser) return false;
985
985
  if (!!params.module.feature && !hasAccesToFeature(params.module.feature)) return false;
986
- return _chunkIZKIM7U5js.checkPermissions.call(void 0, { module: params.module, action: params.action, data: params.data, user: currentUser });
986
+ return _chunkNNCTRU4Ojs.checkPermissions.call(void 0, { module: params.module, action: params.action, data: params.data, user: currentUser });
987
987
  }
988
988
  _chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModule, "hasPermissionToModule");
989
989
  function hasPermissionToModules(params) {
990
990
  if (!currentUser) return false;
991
991
  if (!params.modules.every((module) => !module.feature || hasAccesToFeature(module.feature))) return false;
992
992
  return params.modules.every(
993
- (module) => _chunkIZKIM7U5js.checkPermissions.call(void 0, { module, action: params.action, data: params.data, user: currentUser })
993
+ (module) => _chunkNNCTRU4Ojs.checkPermissions.call(void 0, { module, action: params.action, data: params.data, user: currentUser })
994
994
  );
995
995
  }
996
996
  _chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModules, "hasPermissionToModules");
@@ -1004,27 +1004,29 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
1004
1004
  }
1005
1005
  _chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToPath, "hasPermissionToPath");
1006
1006
  const [isRefreshing, setIsRefreshing] = _react.useState.call(void 0, false);
1007
- const refreshUser = _react.useCallback.call(void 0, async () => {
1007
+ const refreshUser = _react.useCallback.call(void 0, async (options) => {
1008
1008
  if (isRefreshing) {
1009
1009
  return;
1010
1010
  }
1011
1011
  setIsRefreshing(true);
1012
1012
  try {
1013
- const fullUser = await _chunkIZKIM7U5js.UserService.findFullUser();
1013
+ const fullUser = await _chunkNNCTRU4Ojs.UserService.findFullUser();
1014
1014
  if (fullUser) {
1015
1015
  const dehydrated = fullUser.dehydrate();
1016
1016
  setDehydratedUser(dehydrated);
1017
1017
  setUser(fullUser);
1018
- await _optionalChain([_chunkIZKIM7U5js.getTokenHandler.call(void 0, ), 'optionalAccess', _40 => _40.updateToken, 'call', _41 => _41({
1019
- userId: fullUser.id,
1020
- companyId: _optionalChain([fullUser, 'access', _42 => _42.company, 'optionalAccess', _43 => _43.id]),
1021
- roles: fullUser.roles.map((role) => role.id),
1022
- features: _nullishCoalesce(_optionalChain([fullUser, 'access', _44 => _44.company, 'optionalAccess', _45 => _45.features, 'optionalAccess', _46 => _46.map, 'call', _47 => _47((feature) => feature.id)]), () => ( [])),
1023
- modules: fullUser.modules.map((module) => ({
1024
- id: module.id,
1025
- permissions: module.permissions
1026
- }))
1027
- })]);
1018
+ if (!_optionalChain([options, 'optionalAccess', _40 => _40.skipCookieUpdate])) {
1019
+ await _optionalChain([_chunkNNCTRU4Ojs.getTokenHandler.call(void 0, ), 'optionalAccess', _41 => _41.updateToken, 'call', _42 => _42({
1020
+ userId: fullUser.id,
1021
+ companyId: _optionalChain([fullUser, 'access', _43 => _43.company, 'optionalAccess', _44 => _44.id]),
1022
+ roles: fullUser.roles.map((role) => role.id),
1023
+ features: _nullishCoalesce(_optionalChain([fullUser, 'access', _45 => _45.company, 'optionalAccess', _46 => _46.features, 'optionalAccess', _47 => _47.map, 'call', _48 => _48((feature) => feature.id)]), () => ( [])),
1024
+ modules: fullUser.modules.map((module) => ({
1025
+ id: module.id,
1026
+ permissions: module.permissions
1027
+ }))
1028
+ })]);
1029
+ }
1028
1030
  }
1029
1031
  } catch (error) {
1030
1032
  console.error("Failed to refresh user data:", error);
@@ -1037,13 +1039,13 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
1037
1039
  refreshUserRef.current = refreshUser;
1038
1040
  const isRefreshingRef = _react.useRef.call(void 0, false);
1039
1041
  _react.useEffect.call(void 0, () => {
1040
- if (!socket || !isConnected || !_optionalChain([currentUser, 'optionalAccess', _48 => _48.company, 'optionalAccess', _49 => _49.id])) {
1042
+ if (!socket || !isConnected || !_optionalChain([currentUser, 'optionalAccess', _49 => _49.company, 'optionalAccess', _50 => _50.id])) {
1041
1043
  return;
1042
1044
  }
1043
1045
  const handleCompanyUpdate = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
1044
- if (data.companyId === _optionalChain([currentUser, 'access', _50 => _50.company, 'optionalAccess', _51 => _51.id]) && !isRefreshingRef.current) {
1046
+ if (data.companyId === _optionalChain([currentUser, 'access', _51 => _51.company, 'optionalAccess', _52 => _52.id]) && !isRefreshingRef.current) {
1045
1047
  isRefreshingRef.current = true;
1046
- refreshUserRef.current().finally(() => {
1048
+ refreshUserRef.current({ skipCookieUpdate: true }).finally(() => {
1047
1049
  isRefreshingRef.current = false;
1048
1050
  });
1049
1051
  }
@@ -1054,7 +1056,7 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
1054
1056
  socket.off("company:tokens_updated", handleCompanyUpdate);
1055
1057
  socket.off("company:subscription_updated", handleCompanyUpdate);
1056
1058
  };
1057
- }, [socket, isConnected, _optionalChain([currentUser, 'optionalAccess', _52 => _52.company, 'optionalAccess', _53 => _53.id])]);
1059
+ }, [socket, isConnected, _optionalChain([currentUser, 'optionalAccess', _53 => _53.company, 'optionalAccess', _54 => _54.id])]);
1058
1060
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1059
1061
  CurrentUserContext.Provider,
1060
1062
  {
@@ -1100,7 +1102,7 @@ function AddUserToRoleInternal({ role, refresh }) {
1100
1102
  const [existingUsers, setExistingUsers] = _react.useState.call(void 0, null);
1101
1103
  _react.useEffect.call(void 0, () => {
1102
1104
  const fetchExistingUsers = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
1103
- setExistingUsers(await _chunkIZKIM7U5js.UserService.findMany({ roleId: role.id, fetchAll: true }));
1105
+ setExistingUsers(await _chunkNNCTRU4Ojs.UserService.findMany({ roleId: role.id, fetchAll: true }));
1104
1106
  }, "fetchExistingUsers");
1105
1107
  if (show) {
1106
1108
  setExistingUsers(null);
@@ -1108,7 +1110,7 @@ function AddUserToRoleInternal({ role, refresh }) {
1108
1110
  }
1109
1111
  }, [show]);
1110
1112
  const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (user) => {
1111
- await _chunkIZKIM7U5js.RoleService.addUserToRole({
1113
+ await _chunkNNCTRU4Ojs.RoleService.addUserToRole({
1112
1114
  roleId: role.id,
1113
1115
  userId: user.id
1114
1116
  });
@@ -1124,9 +1126,9 @@ function AddUserToRoleInternal({ role, refresh }) {
1124
1126
  }, "addUserToRole");
1125
1127
  const data = useDataListRetriever({
1126
1128
  ready: !!company && show,
1127
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkIZKIM7U5js.UserService.findAllUsers(params), "retriever"),
1128
- retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _54 => _54.id]) },
1129
- module: _chunkIZKIM7U5js.Modules.User
1129
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkNNCTRU4Ojs.UserService.findAllUsers(params), "retriever"),
1130
+ retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _55 => _55.id]) },
1131
+ module: _chunkNNCTRU4Ojs.Modules.User
1130
1132
  });
1131
1133
  _react.useEffect.call(void 0, () => {
1132
1134
  if (!!company && show) {
@@ -1177,7 +1179,7 @@ function Accordion({ className, ...props }) {
1177
1179
  _accordion.Accordion.Root,
1178
1180
  {
1179
1181
  "data-slot": "accordion",
1180
- className: _chunkIZKIM7U5js.cn.call(void 0, "overflow-hidden rounded-md border flex w-full flex-col", className),
1182
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "overflow-hidden rounded-md border flex w-full flex-col", className),
1181
1183
  ...props
1182
1184
  }
1183
1185
  );
@@ -1188,7 +1190,7 @@ function AccordionItem({ className, ...props }) {
1188
1190
  _accordion.Accordion.Item,
1189
1191
  {
1190
1192
  "data-slot": "accordion-item",
1191
- className: _chunkIZKIM7U5js.cn.call(void 0, "data-open:bg-muted/50 not-last:border-b", className),
1193
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "data-open:bg-muted/50 not-last:border-b", className),
1192
1194
  ...props
1193
1195
  }
1194
1196
  );
@@ -1203,7 +1205,7 @@ function AccordionTrigger({
1203
1205
  _accordion.Accordion.Trigger,
1204
1206
  {
1205
1207
  "data-slot": "accordion-trigger",
1206
- className: _chunkIZKIM7U5js.cn.call(void 0,
1208
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
1207
1209
  "**:data-[slot=accordion-trigger-icon]:text-muted-foreground gap-6 p-2 text-left text-xs/relaxed font-medium hover:underline **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 group/accordion-trigger relative flex flex-1 items-start justify-between border border-transparent transition-all outline-none disabled:pointer-events-none disabled:opacity-50",
1208
1210
  className
1209
1211
  ),
@@ -1231,7 +1233,7 @@ function AccordionContent({
1231
1233
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1232
1234
  "div",
1233
1235
  {
1234
- className: _chunkIZKIM7U5js.cn.call(void 0,
1236
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
1235
1237
  "pt-0 pb-4 [&_a]:hover:text-foreground h-(--accordion-panel-height) data-ending-style:h-0 data-starting-style:h-0 [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4",
1236
1238
  className
1237
1239
  ),
@@ -1267,7 +1269,7 @@ function Alert({
1267
1269
  {
1268
1270
  "data-slot": "alert",
1269
1271
  role: "alert",
1270
- className: _chunkIZKIM7U5js.cn.call(void 0, alertVariants({ variant }), className),
1272
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, alertVariants({ variant }), className),
1271
1273
  ...props
1272
1274
  }
1273
1275
  );
@@ -1278,7 +1280,7 @@ function AlertTitle({ className, ...props }) {
1278
1280
  "div",
1279
1281
  {
1280
1282
  "data-slot": "alert-title",
1281
- className: _chunkIZKIM7U5js.cn.call(void 0,
1283
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
1282
1284
  "font-medium group-has-[>svg]/alert:col-start-2 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3",
1283
1285
  className
1284
1286
  ),
@@ -1295,7 +1297,7 @@ function AlertDescription({
1295
1297
  "div",
1296
1298
  {
1297
1299
  "data-slot": "alert-description",
1298
- className: _chunkIZKIM7U5js.cn.call(void 0,
1300
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
1299
1301
  "text-muted-foreground text-xs/relaxed text-balance md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3",
1300
1302
  className
1301
1303
  ),
@@ -1309,7 +1311,7 @@ function AlertAction({ className, ...props }) {
1309
1311
  "div",
1310
1312
  {
1311
1313
  "data-slot": "alert-action",
1312
- className: _chunkIZKIM7U5js.cn.call(void 0, "absolute top-1.5 right-2", className),
1314
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "absolute top-1.5 right-2", className),
1313
1315
  ...props
1314
1316
  }
1315
1317
  );
@@ -1362,7 +1364,7 @@ function Button({
1362
1364
  _button.Button,
1363
1365
  {
1364
1366
  "data-slot": "button",
1365
- className: _chunkIZKIM7U5js.cn.call(void 0, buttonVariants({ variant, size, className })),
1367
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, buttonVariants({ variant, size, className })),
1366
1368
  ...props
1367
1369
  }
1368
1370
  );
@@ -1391,7 +1393,7 @@ function AlertDialogOverlay({
1391
1393
  _alertdialog.AlertDialog.Backdrop,
1392
1394
  {
1393
1395
  "data-slot": "alert-dialog-overlay",
1394
- className: _chunkIZKIM7U5js.cn.call(void 0,
1396
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
1395
1397
  "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 isolate z-50",
1396
1398
  className
1397
1399
  ),
@@ -1412,7 +1414,7 @@ function AlertDialogContent({
1412
1414
  {
1413
1415
  "data-slot": "alert-dialog-content",
1414
1416
  "data-size": size,
1415
- className: _chunkIZKIM7U5js.cn.call(void 0,
1417
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
1416
1418
  "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 bg-background ring-foreground/10 gap-3 rounded-xl p-4 ring-1 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 outline-none",
1417
1419
  className
1418
1420
  ),
@@ -1430,7 +1432,7 @@ function AlertDialogHeader({
1430
1432
  "div",
1431
1433
  {
1432
1434
  "data-slot": "alert-dialog-header",
1433
- className: _chunkIZKIM7U5js.cn.call(void 0, "grid grid-rows-[auto_1fr] place-items-center gap-1 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", className),
1435
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "grid grid-rows-[auto_1fr] place-items-center gap-1 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", className),
1434
1436
  ...props
1435
1437
  }
1436
1438
  );
@@ -1444,7 +1446,7 @@ function AlertDialogFooter({
1444
1446
  "div",
1445
1447
  {
1446
1448
  "data-slot": "alert-dialog-footer",
1447
- className: _chunkIZKIM7U5js.cn.call(void 0,
1449
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
1448
1450
  "flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",
1449
1451
  className
1450
1452
  ),
@@ -1461,7 +1463,7 @@ function AlertDialogMedia({
1461
1463
  "div",
1462
1464
  {
1463
1465
  "data-slot": "alert-dialog-media",
1464
- className: _chunkIZKIM7U5js.cn.call(void 0, "bg-muted mb-2 inline-flex size-8 items-center justify-center rounded-md sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-4", className),
1466
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "bg-muted mb-2 inline-flex size-8 items-center justify-center rounded-md sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-4", className),
1465
1467
  ...props
1466
1468
  }
1467
1469
  );
@@ -1475,7 +1477,7 @@ function AlertDialogTitle({
1475
1477
  _alertdialog.AlertDialog.Title,
1476
1478
  {
1477
1479
  "data-slot": "alert-dialog-title",
1478
- className: _chunkIZKIM7U5js.cn.call(void 0, "text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", className),
1480
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", className),
1479
1481
  ...props
1480
1482
  }
1481
1483
  );
@@ -1489,7 +1491,7 @@ function AlertDialogDescription({
1489
1491
  _alertdialog.AlertDialog.Description,
1490
1492
  {
1491
1493
  "data-slot": "alert-dialog-description",
1492
- className: _chunkIZKIM7U5js.cn.call(void 0, "text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3", className),
1494
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3", className),
1493
1495
  ...props
1494
1496
  }
1495
1497
  );
@@ -1503,7 +1505,7 @@ function AlertDialogAction({
1503
1505
  Button,
1504
1506
  {
1505
1507
  "data-slot": "alert-dialog-action",
1506
- className: _chunkIZKIM7U5js.cn.call(void 0, className),
1508
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, className),
1507
1509
  ...props
1508
1510
  }
1509
1511
  );
@@ -1519,7 +1521,7 @@ function AlertDialogCancel({
1519
1521
  _alertdialog.AlertDialog.Close,
1520
1522
  {
1521
1523
  "data-slot": "alert-dialog-cancel",
1522
- className: _chunkIZKIM7U5js.cn.call(void 0, className),
1524
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, className),
1523
1525
  render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant, size }),
1524
1526
  ...props
1525
1527
  }
@@ -1540,7 +1542,7 @@ function Avatar({
1540
1542
  {
1541
1543
  "data-slot": "avatar",
1542
1544
  "data-size": size,
1543
- className: _chunkIZKIM7U5js.cn.call(void 0,
1545
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
1544
1546
  "size-8 rounded-full after:rounded-full data-[size=lg]:size-10 data-[size=sm]:size-6 after:border-border group/avatar relative flex shrink-0 select-none after:absolute after:inset-0 after:border after:mix-blend-darken dark:after:mix-blend-lighten",
1545
1547
  className
1546
1548
  ),
@@ -1554,7 +1556,7 @@ function AvatarImage({ className, ...props }) {
1554
1556
  _avatar.Avatar.Image,
1555
1557
  {
1556
1558
  "data-slot": "avatar-image",
1557
- className: _chunkIZKIM7U5js.cn.call(void 0,
1559
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
1558
1560
  "rounded-full aspect-square size-full object-cover",
1559
1561
  className
1560
1562
  ),
@@ -1571,7 +1573,7 @@ function AvatarFallback({
1571
1573
  _avatar.Avatar.Fallback,
1572
1574
  {
1573
1575
  "data-slot": "avatar-fallback",
1574
- className: _chunkIZKIM7U5js.cn.call(void 0,
1576
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
1575
1577
  "bg-muted text-muted-foreground rounded-full flex size-full items-center justify-center text-sm group-data-[size=sm]/avatar:text-xs",
1576
1578
  className
1577
1579
  ),
@@ -1585,7 +1587,7 @@ function AvatarBadge({ className, ...props }) {
1585
1587
  "span",
1586
1588
  {
1587
1589
  "data-slot": "avatar-badge",
1588
- className: _chunkIZKIM7U5js.cn.call(void 0,
1590
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
1589
1591
  "bg-primary text-primary-foreground ring-background absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-blend-color ring-2 select-none",
1590
1592
  "group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden",
1591
1593
  "group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2",
@@ -1602,7 +1604,7 @@ function AvatarGroup({ className, ...props }) {
1602
1604
  "div",
1603
1605
  {
1604
1606
  "data-slot": "avatar-group",
1605
- className: _chunkIZKIM7U5js.cn.call(void 0,
1607
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
1606
1608
  "*:data-[slot=avatar]:ring-background group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2",
1607
1609
  className
1608
1610
  ),
@@ -1619,7 +1621,7 @@ function AvatarGroupCount({
1619
1621
  "div",
1620
1622
  {
1621
1623
  "data-slot": "avatar-group-count",
1622
- className: _chunkIZKIM7U5js.cn.call(void 0, "bg-muted text-muted-foreground size-8 rounded-full text-xs/relaxed group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3 ring-background relative flex shrink-0 items-center justify-center ring-2", className),
1624
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "bg-muted text-muted-foreground size-8 rounded-full text-xs/relaxed group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3 ring-background relative flex shrink-0 items-center justify-center ring-2", className),
1623
1625
  ...props
1624
1626
  }
1625
1627
  );
@@ -1658,7 +1660,7 @@ function Badge({
1658
1660
  defaultTagName: "span",
1659
1661
  props: _mergeprops.mergeProps.call(void 0,
1660
1662
  {
1661
- className: _chunkIZKIM7U5js.cn.call(void 0, badgeVariants({ className, variant }))
1663
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, badgeVariants({ className, variant }))
1662
1664
  },
1663
1665
  props
1664
1666
  ),
@@ -1682,7 +1684,7 @@ function Breadcrumb({ className, ...props }) {
1682
1684
  {
1683
1685
  "aria-label": "breadcrumb",
1684
1686
  "data-slot": "breadcrumb",
1685
- className: _chunkIZKIM7U5js.cn.call(void 0, className),
1687
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, className),
1686
1688
  ...props
1687
1689
  }
1688
1690
  );
@@ -1693,7 +1695,7 @@ function BreadcrumbList({ className, ...props }) {
1693
1695
  "ol",
1694
1696
  {
1695
1697
  "data-slot": "breadcrumb-list",
1696
- className: _chunkIZKIM7U5js.cn.call(void 0,
1698
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
1697
1699
  "text-muted-foreground gap-1.5 text-xs/relaxed flex flex-wrap items-center break-words",
1698
1700
  className
1699
1701
  ),
@@ -1707,7 +1709,7 @@ function BreadcrumbItem({ className, ...props }) {
1707
1709
  "li",
1708
1710
  {
1709
1711
  "data-slot": "breadcrumb-item",
1710
- className: _chunkIZKIM7U5js.cn.call(void 0, "gap-1 inline-flex items-center", className),
1712
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "gap-1 inline-flex items-center", className),
1711
1713
  ...props
1712
1714
  }
1713
1715
  );
@@ -1722,7 +1724,7 @@ function BreadcrumbLink({
1722
1724
  defaultTagName: "a",
1723
1725
  props: _mergeprops.mergeProps.call(void 0,
1724
1726
  {
1725
- className: _chunkIZKIM7U5js.cn.call(void 0, "hover:text-foreground transition-colors", className)
1727
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "hover:text-foreground transition-colors", className)
1726
1728
  },
1727
1729
  props
1728
1730
  ),
@@ -1741,7 +1743,7 @@ function BreadcrumbPage({ className, ...props }) {
1741
1743
  role: "link",
1742
1744
  "aria-disabled": "true",
1743
1745
  "aria-current": "page",
1744
- className: _chunkIZKIM7U5js.cn.call(void 0, "text-foreground font-normal", className),
1746
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-foreground font-normal", className),
1745
1747
  ...props
1746
1748
  }
1747
1749
  );
@@ -1758,7 +1760,7 @@ function BreadcrumbSeparator({
1758
1760
  "data-slot": "breadcrumb-separator",
1759
1761
  role: "presentation",
1760
1762
  "aria-hidden": "true",
1761
- className: _chunkIZKIM7U5js.cn.call(void 0, "[&>svg]:size-3.5", className),
1763
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "[&>svg]:size-3.5", className),
1762
1764
  ...props,
1763
1765
  children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1764
1766
  _lucidereact.ChevronRightIcon,
@@ -1778,7 +1780,7 @@ function BreadcrumbEllipsis({
1778
1780
  "data-slot": "breadcrumb-ellipsis",
1779
1781
  role: "presentation",
1780
1782
  "aria-hidden": "true",
1781
- className: _chunkIZKIM7U5js.cn.call(void 0,
1783
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
1782
1784
  "size-4 [&>svg]:size-3.5 flex items-center justify-center",
1783
1785
  className
1784
1786
  ),
@@ -1818,7 +1820,7 @@ function Calendar({
1818
1820
  _reactdaypicker.DayPicker,
1819
1821
  {
1820
1822
  showOutsideDays,
1821
- className: _chunkIZKIM7U5js.cn.call(void 0,
1823
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
1822
1824
  "p-3 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(6)] bg-background group/calendar [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
1823
1825
  String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
1824
1826
  String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
@@ -1830,89 +1832,89 @@ function Calendar({
1830
1832
  ...formatters
1831
1833
  },
1832
1834
  classNames: {
1833
- root: _chunkIZKIM7U5js.cn.call(void 0, "w-fit", defaultClassNames.root),
1834
- months: _chunkIZKIM7U5js.cn.call(void 0,
1835
+ root: _chunkNNCTRU4Ojs.cn.call(void 0, "w-fit", defaultClassNames.root),
1836
+ months: _chunkNNCTRU4Ojs.cn.call(void 0,
1835
1837
  "flex gap-4 flex-col md:flex-row relative",
1836
1838
  defaultClassNames.months
1837
1839
  ),
1838
- month: _chunkIZKIM7U5js.cn.call(void 0, "flex flex-col w-full gap-4", defaultClassNames.month),
1839
- nav: _chunkIZKIM7U5js.cn.call(void 0,
1840
+ month: _chunkNNCTRU4Ojs.cn.call(void 0, "flex flex-col w-full gap-4", defaultClassNames.month),
1841
+ nav: _chunkNNCTRU4Ojs.cn.call(void 0,
1840
1842
  "flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
1841
1843
  defaultClassNames.nav
1842
1844
  ),
1843
- button_previous: _chunkIZKIM7U5js.cn.call(void 0,
1845
+ button_previous: _chunkNNCTRU4Ojs.cn.call(void 0,
1844
1846
  buttonVariants({ variant: buttonVariant }),
1845
1847
  "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
1846
1848
  defaultClassNames.button_previous
1847
1849
  ),
1848
- button_next: _chunkIZKIM7U5js.cn.call(void 0,
1850
+ button_next: _chunkNNCTRU4Ojs.cn.call(void 0,
1849
1851
  buttonVariants({ variant: buttonVariant }),
1850
1852
  "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
1851
1853
  defaultClassNames.button_next
1852
1854
  ),
1853
- month_caption: _chunkIZKIM7U5js.cn.call(void 0,
1855
+ month_caption: _chunkNNCTRU4Ojs.cn.call(void 0,
1854
1856
  "flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
1855
1857
  defaultClassNames.month_caption
1856
1858
  ),
1857
- dropdowns: _chunkIZKIM7U5js.cn.call(void 0,
1859
+ dropdowns: _chunkNNCTRU4Ojs.cn.call(void 0,
1858
1860
  "w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
1859
1861
  defaultClassNames.dropdowns
1860
1862
  ),
1861
- dropdown_root: _chunkIZKIM7U5js.cn.call(void 0,
1863
+ dropdown_root: _chunkNNCTRU4Ojs.cn.call(void 0,
1862
1864
  "relative cn-calendar-dropdown-root rounded-(--cell-radius)",
1863
1865
  defaultClassNames.dropdown_root
1864
1866
  ),
1865
- dropdown: _chunkIZKIM7U5js.cn.call(void 0,
1867
+ dropdown: _chunkNNCTRU4Ojs.cn.call(void 0,
1866
1868
  "absolute bg-popover inset-0 opacity-0",
1867
1869
  defaultClassNames.dropdown
1868
1870
  ),
1869
- caption_label: _chunkIZKIM7U5js.cn.call(void 0,
1871
+ caption_label: _chunkNNCTRU4Ojs.cn.call(void 0,
1870
1872
  "select-none font-medium",
1871
1873
  captionLayout === "label" ? "text-sm" : "cn-calendar-caption-label rounded-(--cell-radius) flex items-center gap-1 text-sm [&>svg]:text-muted-foreground [&>svg]:size-3.5",
1872
1874
  defaultClassNames.caption_label
1873
1875
  ),
1874
1876
  table: "w-full border-collapse",
1875
- weekdays: _chunkIZKIM7U5js.cn.call(void 0, "flex", defaultClassNames.weekdays),
1876
- weekday: _chunkIZKIM7U5js.cn.call(void 0,
1877
+ weekdays: _chunkNNCTRU4Ojs.cn.call(void 0, "flex", defaultClassNames.weekdays),
1878
+ weekday: _chunkNNCTRU4Ojs.cn.call(void 0,
1877
1879
  "text-muted-foreground rounded-(--cell-radius) flex-1 font-normal text-[0.8rem] select-none",
1878
1880
  defaultClassNames.weekday
1879
1881
  ),
1880
- week: _chunkIZKIM7U5js.cn.call(void 0, "flex w-full mt-2", defaultClassNames.week),
1881
- week_number_header: _chunkIZKIM7U5js.cn.call(void 0,
1882
+ week: _chunkNNCTRU4Ojs.cn.call(void 0, "flex w-full mt-2", defaultClassNames.week),
1883
+ week_number_header: _chunkNNCTRU4Ojs.cn.call(void 0,
1882
1884
  "select-none w-(--cell-size)",
1883
1885
  defaultClassNames.week_number_header
1884
1886
  ),
1885
- week_number: _chunkIZKIM7U5js.cn.call(void 0,
1887
+ week_number: _chunkNNCTRU4Ojs.cn.call(void 0,
1886
1888
  "text-[0.8rem] select-none text-muted-foreground",
1887
1889
  defaultClassNames.week_number
1888
1890
  ),
1889
- day: _chunkIZKIM7U5js.cn.call(void 0,
1891
+ day: _chunkNNCTRU4Ojs.cn.call(void 0,
1890
1892
  "relative w-full rounded-(--cell-radius) h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-(--cell-radius) group/day aspect-square select-none",
1891
1893
  props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)" : "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)",
1892
1894
  defaultClassNames.day
1893
1895
  ),
1894
- range_start: _chunkIZKIM7U5js.cn.call(void 0,
1896
+ range_start: _chunkNNCTRU4Ojs.cn.call(void 0,
1895
1897
  "rounded-l-(--cell-radius) bg-muted elative after:bg-muted after:absolute after:inset-y-0 after:w-4 after:right-0 -z-0 isolate",
1896
1898
  defaultClassNames.range_start
1897
1899
  ),
1898
- range_middle: _chunkIZKIM7U5js.cn.call(void 0, "rounded-none", defaultClassNames.range_middle),
1899
- range_end: _chunkIZKIM7U5js.cn.call(void 0,
1900
+ range_middle: _chunkNNCTRU4Ojs.cn.call(void 0, "rounded-none", defaultClassNames.range_middle),
1901
+ range_end: _chunkNNCTRU4Ojs.cn.call(void 0,
1900
1902
  "rounded-r-(--cell-radius) bg-muted relative after:bg-muted after:absolute after:inset-y-0 after:w-4 after:left-0 -z-0 isolate",
1901
1903
  defaultClassNames.range_end
1902
1904
  ),
1903
- today: _chunkIZKIM7U5js.cn.call(void 0,
1905
+ today: _chunkNNCTRU4Ojs.cn.call(void 0,
1904
1906
  "bg-muted text-foreground rounded-(--cell-radius) data-[selected=true]:rounded-none",
1905
1907
  defaultClassNames.today
1906
1908
  ),
1907
- outside: _chunkIZKIM7U5js.cn.call(void 0,
1909
+ outside: _chunkNNCTRU4Ojs.cn.call(void 0,
1908
1910
  "text-muted-foreground aria-selected:text-muted-foreground",
1909
1911
  defaultClassNames.outside
1910
1912
  ),
1911
- disabled: _chunkIZKIM7U5js.cn.call(void 0,
1913
+ disabled: _chunkNNCTRU4Ojs.cn.call(void 0,
1912
1914
  "text-muted-foreground opacity-50",
1913
1915
  defaultClassNames.disabled
1914
1916
  ),
1915
- hidden: _chunkIZKIM7U5js.cn.call(void 0, "invisible", defaultClassNames.hidden),
1917
+ hidden: _chunkNNCTRU4Ojs.cn.call(void 0, "invisible", defaultClassNames.hidden),
1916
1918
  ...classNames
1917
1919
  },
1918
1920
  components: {
@@ -1922,19 +1924,19 @@ function Calendar({
1922
1924
  {
1923
1925
  "data-slot": "calendar",
1924
1926
  ref: rootRef,
1925
- className: _chunkIZKIM7U5js.cn.call(void 0, className2),
1927
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, className2),
1926
1928
  ...props2
1927
1929
  }
1928
1930
  );
1929
1931
  }, "Root"),
1930
1932
  Chevron: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className: className2, orientation, ...props2 }) => {
1931
1933
  if (orientation === "left") {
1932
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeftIcon, { className: _chunkIZKIM7U5js.cn.call(void 0, "size-4", className2), ...props2 });
1934
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeftIcon, { className: _chunkNNCTRU4Ojs.cn.call(void 0, "size-4", className2), ...props2 });
1933
1935
  }
1934
1936
  if (orientation === "right") {
1935
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className: _chunkIZKIM7U5js.cn.call(void 0, "size-4", className2), ...props2 });
1937
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className: _chunkNNCTRU4Ojs.cn.call(void 0, "size-4", className2), ...props2 });
1936
1938
  }
1937
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: _chunkIZKIM7U5js.cn.call(void 0, "size-4", className2), ...props2 });
1939
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: _chunkNNCTRU4Ojs.cn.call(void 0, "size-4", className2), ...props2 });
1938
1940
  }, "Chevron"),
1939
1941
  DayButton: CalendarDayButton,
1940
1942
  WeekNumber: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ children, ...props2 }) => {
@@ -1956,7 +1958,7 @@ function CalendarDayButton({
1956
1958
  const defaultClassNames = _reactdaypicker.getDefaultClassNames.call(void 0, );
1957
1959
  const ref = React3.useRef(null);
1958
1960
  React3.useEffect(() => {
1959
- if (modifiers.focused) _optionalChain([ref, 'access', _55 => _55.current, 'optionalAccess', _56 => _56.focus, 'call', _57 => _57()]);
1961
+ if (modifiers.focused) _optionalChain([ref, 'access', _56 => _56.current, 'optionalAccess', _57 => _57.focus, 'call', _58 => _58()]);
1960
1962
  }, [modifiers.focused]);
1961
1963
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1962
1964
  Button,
@@ -1968,7 +1970,7 @@ function CalendarDayButton({
1968
1970
  "data-range-start": modifiers.range_start,
1969
1971
  "data-range-end": modifiers.range_end,
1970
1972
  "data-range-middle": modifiers.range_middle,
1971
- className: _chunkIZKIM7U5js.cn.call(void 0,
1973
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
1972
1974
  "data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-foreground relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-r-(--cell-radius) data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-l-(--cell-radius) [&>span]:text-xs [&>span]:opacity-70",
1973
1975
  defaultClassNames.day,
1974
1976
  className
@@ -1987,7 +1989,7 @@ function Card({ className, size = "default", ...props }) {
1987
1989
  {
1988
1990
  "data-slot": "card",
1989
1991
  "data-size": size,
1990
- className: _chunkIZKIM7U5js.cn.call(void 0,
1992
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
1991
1993
  "ring-foreground/10 bg-card text-card-foreground gap-4 overflow-clip rounded-lg py-4 text-xs/relaxed ring-1 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg group/card flex flex-col",
1992
1994
  className
1993
1995
  ),
@@ -2001,7 +2003,7 @@ function CardHeader({ className, ...props }) {
2001
2003
  "div",
2002
2004
  {
2003
2005
  "data-slot": "card-header",
2004
- className: _chunkIZKIM7U5js.cn.call(void 0,
2006
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2005
2007
  "gap-1 rounded-t-lg px-4 group-data-[size=sm]/card:px-3 [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3 group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",
2006
2008
  className
2007
2009
  ),
@@ -2011,11 +2013,11 @@ function CardHeader({ className, ...props }) {
2011
2013
  }
2012
2014
  _chunk7QVYU63Ejs.__name.call(void 0, CardHeader, "CardHeader");
2013
2015
  function CardTitle({ className, ...props }) {
2014
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-title", className: _chunkIZKIM7U5js.cn.call(void 0, "text-sm font-medium", className), ...props });
2016
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-title", className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-sm font-medium", className), ...props });
2015
2017
  }
2016
2018
  _chunk7QVYU63Ejs.__name.call(void 0, CardTitle, "CardTitle");
2017
2019
  function CardDescription({ className, ...props }) {
2018
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-description", className: _chunkIZKIM7U5js.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className), ...props });
2020
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-description", className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className), ...props });
2019
2021
  }
2020
2022
  _chunk7QVYU63Ejs.__name.call(void 0, CardDescription, "CardDescription");
2021
2023
  function CardAction({ className, ...props }) {
@@ -2023,14 +2025,14 @@ function CardAction({ className, ...props }) {
2023
2025
  "div",
2024
2026
  {
2025
2027
  "data-slot": "card-action",
2026
- className: _chunkIZKIM7U5js.cn.call(void 0, "col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
2028
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
2027
2029
  ...props
2028
2030
  }
2029
2031
  );
2030
2032
  }
2031
2033
  _chunk7QVYU63Ejs.__name.call(void 0, CardAction, "CardAction");
2032
2034
  function CardContent({ className, ...props }) {
2033
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-content", className: _chunkIZKIM7U5js.cn.call(void 0, "px-4 group-data-[size=sm]/card:px-3", className), ...props });
2035
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-content", className: _chunkNNCTRU4Ojs.cn.call(void 0, "px-4 group-data-[size=sm]/card:px-3", className), ...props });
2034
2036
  }
2035
2037
  _chunk7QVYU63Ejs.__name.call(void 0, CardContent, "CardContent");
2036
2038
  function CardFooter({ className, ...props }) {
@@ -2038,7 +2040,7 @@ function CardFooter({ className, ...props }) {
2038
2040
  "div",
2039
2041
  {
2040
2042
  "data-slot": "card-footer",
2041
- className: _chunkIZKIM7U5js.cn.call(void 0,
2043
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2042
2044
  "rounded-b-lg px-4 group-data-[size=sm]/card:px-3 [.border-t]:pt-4 group-data-[size=sm]/card:[.border-t]:pt-3 flex items-center",
2043
2045
  className
2044
2046
  ),
@@ -2086,10 +2088,10 @@ function Carousel({
2086
2088
  setCanScrollNext(api2.canScrollNext());
2087
2089
  }, []);
2088
2090
  const scrollPrev = React4.useCallback(() => {
2089
- _optionalChain([api, 'optionalAccess', _58 => _58.scrollPrev, 'call', _59 => _59()]);
2091
+ _optionalChain([api, 'optionalAccess', _59 => _59.scrollPrev, 'call', _60 => _60()]);
2090
2092
  }, [api]);
2091
2093
  const scrollNext = React4.useCallback(() => {
2092
- _optionalChain([api, 'optionalAccess', _60 => _60.scrollNext, 'call', _61 => _61()]);
2094
+ _optionalChain([api, 'optionalAccess', _61 => _61.scrollNext, 'call', _62 => _62()]);
2093
2095
  }, [api]);
2094
2096
  const handleKeyDown = React4.useCallback(
2095
2097
  (event) => {
@@ -2113,7 +2115,7 @@ function Carousel({
2113
2115
  api.on("reInit", onSelect);
2114
2116
  api.on("select", onSelect);
2115
2117
  return () => {
2116
- _optionalChain([api, 'optionalAccess', _62 => _62.off, 'call', _63 => _63("select", onSelect)]);
2118
+ _optionalChain([api, 'optionalAccess', _63 => _63.off, 'call', _64 => _64("select", onSelect)]);
2117
2119
  };
2118
2120
  }, [api, onSelect]);
2119
2121
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2123,7 +2125,7 @@ function Carousel({
2123
2125
  carouselRef,
2124
2126
  api,
2125
2127
  opts,
2126
- orientation: orientation || (_optionalChain([opts, 'optionalAccess', _64 => _64.axis]) === "y" ? "vertical" : "horizontal"),
2128
+ orientation: orientation || (_optionalChain([opts, 'optionalAccess', _65 => _65.axis]) === "y" ? "vertical" : "horizontal"),
2127
2129
  scrollPrev,
2128
2130
  scrollNext,
2129
2131
  canScrollPrev,
@@ -2133,7 +2135,7 @@ function Carousel({
2133
2135
  "div",
2134
2136
  {
2135
2137
  onKeyDownCapture: handleKeyDown,
2136
- className: _chunkIZKIM7U5js.cn.call(void 0, "relative", className),
2138
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "relative", className),
2137
2139
  role: "region",
2138
2140
  "aria-roledescription": "carousel",
2139
2141
  "data-slot": "carousel",
@@ -2156,7 +2158,7 @@ function CarouselContent({ className, ...props }) {
2156
2158
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2157
2159
  "div",
2158
2160
  {
2159
- className: _chunkIZKIM7U5js.cn.call(void 0,
2161
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2160
2162
  "flex",
2161
2163
  orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
2162
2164
  className
@@ -2176,7 +2178,7 @@ function CarouselItem({ className, ...props }) {
2176
2178
  role: "group",
2177
2179
  "aria-roledescription": "slide",
2178
2180
  "data-slot": "carousel-item",
2179
- className: _chunkIZKIM7U5js.cn.call(void 0,
2181
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2180
2182
  "min-w-0 shrink-0 grow-0 basis-full",
2181
2183
  orientation === "horizontal" ? "pl-4" : "pt-4",
2182
2184
  className
@@ -2199,7 +2201,7 @@ function CarouselPrevious({
2199
2201
  "data-slot": "carousel-previous",
2200
2202
  variant,
2201
2203
  size,
2202
- className: _chunkIZKIM7U5js.cn.call(void 0,
2204
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2203
2205
  "rounded-full absolute touch-manipulation",
2204
2206
  orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
2205
2207
  className
@@ -2231,7 +2233,7 @@ function CarouselNext({
2231
2233
  "data-slot": "carousel-next",
2232
2234
  variant,
2233
2235
  size,
2234
- className: _chunkIZKIM7U5js.cn.call(void 0,
2236
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2235
2237
  "rounded-full absolute touch-manipulation",
2236
2238
  orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
2237
2239
  className
@@ -2279,7 +2281,7 @@ function ChartContainer({
2279
2281
  {
2280
2282
  "data-slot": "chart",
2281
2283
  "data-chart": chartId,
2282
- className: _chunkIZKIM7U5js.cn.call(void 0,
2284
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2283
2285
  "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",
2284
2286
  className
2285
2287
  ),
@@ -2307,7 +2309,7 @@ var ChartStyle = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ id, con
2307
2309
  ([theme, prefix]) => `
2308
2310
  ${prefix} [data-chart=${id}] {
2309
2311
  ${colorConfig.map(([key, itemConfig]) => {
2310
- const color = _optionalChain([itemConfig, 'access', _65 => _65.theme, 'optionalAccess', _66 => _66[theme]]) || itemConfig.color;
2312
+ const color = _optionalChain([itemConfig, 'access', _66 => _66.theme, 'optionalAccess', _67 => _67[theme]]) || itemConfig.color;
2311
2313
  return color ? ` --color-${key}: ${color};` : null;
2312
2314
  }).join("\n")}
2313
2315
  }
@@ -2335,20 +2337,20 @@ function ChartTooltipContent({
2335
2337
  }) {
2336
2338
  const { config } = useChart();
2337
2339
  const tooltipLabel = React5.useMemo(() => {
2338
- if (hideLabel || !_optionalChain([payload, 'optionalAccess', _67 => _67.length])) {
2340
+ if (hideLabel || !_optionalChain([payload, 'optionalAccess', _68 => _68.length])) {
2339
2341
  return null;
2340
2342
  }
2341
2343
  const [item] = payload;
2342
- const key = `${labelKey || _optionalChain([item, 'optionalAccess', _68 => _68.dataKey]) || _optionalChain([item, 'optionalAccess', _69 => _69.name]) || "value"}`;
2344
+ const key = `${labelKey || _optionalChain([item, 'optionalAccess', _69 => _69.dataKey]) || _optionalChain([item, 'optionalAccess', _70 => _70.name]) || "value"}`;
2343
2345
  const itemConfig = getPayloadConfigFromPayload(config, item, key);
2344
- const value = !labelKey && typeof label === "string" ? _optionalChain([config, 'access', _70 => _70[label], 'optionalAccess', _71 => _71.label]) || label : _optionalChain([itemConfig, 'optionalAccess', _72 => _72.label]);
2346
+ const value = !labelKey && typeof label === "string" ? _optionalChain([config, 'access', _71 => _71[label], 'optionalAccess', _72 => _72.label]) || label : _optionalChain([itemConfig, 'optionalAccess', _73 => _73.label]);
2345
2347
  if (labelFormatter) {
2346
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkIZKIM7U5js.cn.call(void 0, "font-medium", labelClassName), children: labelFormatter(value, payload) });
2348
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNNCTRU4Ojs.cn.call(void 0, "font-medium", labelClassName), children: labelFormatter(value, payload) });
2347
2349
  }
2348
2350
  if (!value) {
2349
2351
  return null;
2350
2352
  }
2351
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkIZKIM7U5js.cn.call(void 0, "font-medium", labelClassName), children: value });
2353
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNNCTRU4Ojs.cn.call(void 0, "font-medium", labelClassName), children: value });
2352
2354
  }, [
2353
2355
  label,
2354
2356
  labelFormatter,
@@ -2358,14 +2360,14 @@ function ChartTooltipContent({
2358
2360
  config,
2359
2361
  labelKey
2360
2362
  ]);
2361
- if (!active || !_optionalChain([payload, 'optionalAccess', _73 => _73.length])) {
2363
+ if (!active || !_optionalChain([payload, 'optionalAccess', _74 => _74.length])) {
2362
2364
  return null;
2363
2365
  }
2364
2366
  const nestLabel = payload.length === 1 && indicator !== "dot";
2365
2367
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2366
2368
  "div",
2367
2369
  {
2368
- className: _chunkIZKIM7U5js.cn.call(void 0,
2370
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2369
2371
  "border-border/50 bg-background gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs/relaxed shadow-xl grid min-w-[8rem] items-start",
2370
2372
  className
2371
2373
  ),
@@ -2374,19 +2376,19 @@ function ChartTooltipContent({
2374
2376
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid gap-1.5", children: payload.filter((item) => item.type !== "none").map((item, index) => {
2375
2377
  const key = `${nameKey || item.name || item.dataKey || "value"}`;
2376
2378
  const itemConfig = getPayloadConfigFromPayload(config, item, key);
2377
- const indicatorColor = color || _optionalChain([item, 'access', _74 => _74.payload, 'optionalAccess', _75 => _75.fill]) || item.color;
2379
+ const indicatorColor = color || _optionalChain([item, 'access', _75 => _75.payload, 'optionalAccess', _76 => _76.fill]) || item.color;
2378
2380
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2379
2381
  "div",
2380
2382
  {
2381
- className: _chunkIZKIM7U5js.cn.call(void 0,
2383
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2382
2384
  "[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
2383
2385
  indicator === "dot" && "items-center"
2384
2386
  ),
2385
- children: formatter && _optionalChain([item, 'optionalAccess', _76 => _76.value]) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
2386
- _optionalChain([itemConfig, 'optionalAccess', _77 => _77.icon]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2387
+ children: formatter && _optionalChain([item, 'optionalAccess', _77 => _77.value]) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
2388
+ _optionalChain([itemConfig, 'optionalAccess', _78 => _78.icon]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2387
2389
  "div",
2388
2390
  {
2389
- className: _chunkIZKIM7U5js.cn.call(void 0,
2391
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2390
2392
  "shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",
2391
2393
  {
2392
2394
  "h-2.5 w-2.5": indicator === "dot",
@@ -2404,14 +2406,14 @@ function ChartTooltipContent({
2404
2406
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2405
2407
  "div",
2406
2408
  {
2407
- className: _chunkIZKIM7U5js.cn.call(void 0,
2409
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2408
2410
  "flex flex-1 justify-between leading-none",
2409
2411
  nestLabel ? "items-end" : "items-center"
2410
2412
  ),
2411
2413
  children: [
2412
2414
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid gap-1.5", children: [
2413
2415
  nestLabel ? tooltipLabel : null,
2414
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground", children: _optionalChain([itemConfig, 'optionalAccess', _78 => _78.label]) || item.name })
2416
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground", children: _optionalChain([itemConfig, 'optionalAccess', _79 => _79.label]) || item.name })
2415
2417
  ] }),
2416
2418
  item.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-foreground font-mono font-medium tabular-nums", children: item.value.toLocaleString() })
2417
2419
  ]
@@ -2436,13 +2438,13 @@ function ChartLegendContent({
2436
2438
  nameKey
2437
2439
  }) {
2438
2440
  const { config } = useChart();
2439
- if (!_optionalChain([payload, 'optionalAccess', _79 => _79.length])) {
2441
+ if (!_optionalChain([payload, 'optionalAccess', _80 => _80.length])) {
2440
2442
  return null;
2441
2443
  }
2442
2444
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2443
2445
  "div",
2444
2446
  {
2445
- className: _chunkIZKIM7U5js.cn.call(void 0,
2447
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2446
2448
  "flex items-center justify-center gap-4",
2447
2449
  verticalAlign === "top" ? "pb-3" : "pt-3",
2448
2450
  className
@@ -2453,11 +2455,11 @@ function ChartLegendContent({
2453
2455
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2454
2456
  "div",
2455
2457
  {
2456
- className: _chunkIZKIM7U5js.cn.call(void 0,
2458
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2457
2459
  "[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"
2458
2460
  ),
2459
2461
  children: [
2460
- _optionalChain([itemConfig, 'optionalAccess', _80 => _80.icon]) && !hideIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2462
+ _optionalChain([itemConfig, 'optionalAccess', _81 => _81.icon]) && !hideIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2461
2463
  "div",
2462
2464
  {
2463
2465
  className: "h-2 w-2 shrink-0 rounded-[2px]",
@@ -2466,7 +2468,7 @@ function ChartLegendContent({
2466
2468
  }
2467
2469
  }
2468
2470
  ),
2469
- _optionalChain([itemConfig, 'optionalAccess', _81 => _81.label])
2471
+ _optionalChain([itemConfig, 'optionalAccess', _82 => _82.label])
2470
2472
  ]
2471
2473
  },
2472
2474
  item.value
@@ -2500,7 +2502,7 @@ function Checkbox({ className, ...props }) {
2500
2502
  _checkbox.Checkbox.Root,
2501
2503
  {
2502
2504
  "data-slot": "checkbox",
2503
- className: _chunkIZKIM7U5js.cn.call(void 0,
2505
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2504
2506
  "border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-[4px] border transition-shadow group-has-disabled/field:opacity-50 focus-visible:ring-[2px] aria-invalid:ring-[2px] peer relative shrink-0 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-50",
2505
2507
  className
2506
2508
  ),
@@ -2568,7 +2570,7 @@ function DialogOverlay({
2568
2570
  _dialog.Dialog.Backdrop,
2569
2571
  {
2570
2572
  "data-slot": "dialog-overlay",
2571
- className: _chunkIZKIM7U5js.cn.call(void 0, "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 isolate z-50", className),
2573
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 isolate z-50", className),
2572
2574
  ...props
2573
2575
  }
2574
2576
  );
@@ -2586,7 +2588,7 @@ function DialogContent({
2586
2588
  _dialog.Dialog.Popup,
2587
2589
  {
2588
2590
  "data-slot": "dialog-content",
2589
- className: _chunkIZKIM7U5js.cn.call(void 0,
2591
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2590
2592
  "bg-background data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/10 grid gap-4 rounded-xl p-4 text-xs/relaxed ring-1 duration-100 fixed top-1/2 left-1/2 z-50 w-full max-w-lg -translate-x-1/2 -translate-y-1/2 outline-none",
2591
2593
  className
2592
2594
  ),
@@ -2625,7 +2627,7 @@ function DialogHeader({ className, ...props }) {
2625
2627
  "div",
2626
2628
  {
2627
2629
  "data-slot": "dialog-header",
2628
- className: _chunkIZKIM7U5js.cn.call(void 0, "gap-1 flex flex-col", className),
2630
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "gap-1 flex flex-col", className),
2629
2631
  ...props
2630
2632
  }
2631
2633
  );
@@ -2641,7 +2643,7 @@ function DialogFooter({
2641
2643
  "div",
2642
2644
  {
2643
2645
  "data-slot": "dialog-footer",
2644
- className: _chunkIZKIM7U5js.cn.call(void 0,
2646
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2645
2647
  "gap-2 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
2646
2648
  className
2647
2649
  ),
@@ -2659,7 +2661,7 @@ function DialogTitle({ className, ...props }) {
2659
2661
  _dialog.Dialog.Title,
2660
2662
  {
2661
2663
  "data-slot": "dialog-title",
2662
- className: _chunkIZKIM7U5js.cn.call(void 0, "text-sm font-medium", className),
2664
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-sm font-medium", className),
2663
2665
  ...props
2664
2666
  }
2665
2667
  );
@@ -2673,7 +2675,7 @@ function DialogDescription({
2673
2675
  _dialog.Dialog.Description,
2674
2676
  {
2675
2677
  "data-slot": "dialog-description",
2676
- className: _chunkIZKIM7U5js.cn.call(void 0, "text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed *:[a]:underline *:[a]:underline-offset-3", className),
2678
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed *:[a]:underline *:[a]:underline-offset-3", className),
2677
2679
  ...props
2678
2680
  }
2679
2681
  );
@@ -2692,7 +2694,7 @@ function Input({ className, type, ...props }) {
2692
2694
  {
2693
2695
  type,
2694
2696
  "data-slot": "input",
2695
- className: _chunkIZKIM7U5js.cn.call(void 0,
2697
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2696
2698
  "bg-input/20 dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-7 rounded-md border px-2 py-0.5 text-sm transition-colors file:h-6 file:text-xs/relaxed file:font-medium focus-visible:ring-[2px] aria-invalid:ring-[2px] md:text-xs/relaxed file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
2697
2699
  className
2698
2700
  ),
@@ -2709,7 +2711,7 @@ function Textarea({ className, ...props }) {
2709
2711
  "textarea",
2710
2712
  {
2711
2713
  "data-slot": "textarea",
2712
- className: _chunkIZKIM7U5js.cn.call(void 0,
2714
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2713
2715
  "border-input bg-input/20 dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 resize-none rounded-md border px-2 py-2 text-sm transition-colors focus-visible:ring-[2px] aria-invalid:ring-[2px] md:text-xs/relaxed placeholder:text-muted-foreground flex field-sizing-content min-h-16 w-full outline-none disabled:cursor-not-allowed disabled:opacity-50",
2714
2716
  className
2715
2717
  ),
@@ -2727,7 +2729,7 @@ function InputGroup({ className, ...props }) {
2727
2729
  {
2728
2730
  "data-slot": "input-group",
2729
2731
  role: "group",
2730
- className: _chunkIZKIM7U5js.cn.call(void 0,
2732
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2731
2733
  "border-input bg-input/20 dark:bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/30 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 h-7 rounded-md border transition-colors has-data-[align=block-end]:rounded-md has-data-[align=block-start]:rounded-md has-[[data-slot=input-group-control]:focus-visible]:ring-[2px] has-[[data-slot][aria-invalid=true]]:ring-[2px] has-[textarea]:rounded-md has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 [[data-slot=combobox-content]_&]:focus-within:border-inherit [[data-slot=combobox-content]_&]:focus-within:ring-0 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto",
2732
2734
  className
2733
2735
  ),
@@ -2763,12 +2765,12 @@ function InputGroupAddon({
2763
2765
  role: "group",
2764
2766
  "data-slot": "input-group-addon",
2765
2767
  "data-align": align,
2766
- className: _chunkIZKIM7U5js.cn.call(void 0, inputGroupAddonVariants({ align }), className),
2768
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, inputGroupAddonVariants({ align }), className),
2767
2769
  onClick: (e) => {
2768
2770
  if (e.target.closest("button")) {
2769
2771
  return;
2770
2772
  }
2771
- _optionalChain([e, 'access', _82 => _82.currentTarget, 'access', _83 => _83.parentElement, 'optionalAccess', _84 => _84.querySelector, 'call', _85 => _85("input"), 'optionalAccess', _86 => _86.focus, 'call', _87 => _87()]);
2773
+ _optionalChain([e, 'access', _83 => _83.currentTarget, 'access', _84 => _84.parentElement, 'optionalAccess', _85 => _85.querySelector, 'call', _86 => _86("input"), 'optionalAccess', _87 => _87.focus, 'call', _88 => _88()]);
2772
2774
  },
2773
2775
  ...props
2774
2776
  }
@@ -2804,7 +2806,7 @@ function InputGroupButton({
2804
2806
  type,
2805
2807
  "data-size": size,
2806
2808
  variant,
2807
- className: _chunkIZKIM7U5js.cn.call(void 0, inputGroupButtonVariants({ size }), className),
2809
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, inputGroupButtonVariants({ size }), className),
2808
2810
  ...props
2809
2811
  }
2810
2812
  );
@@ -2814,7 +2816,7 @@ function InputGroupText({ className, ...props }) {
2814
2816
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2815
2817
  "span",
2816
2818
  {
2817
- className: _chunkIZKIM7U5js.cn.call(void 0,
2819
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2818
2820
  "text-muted-foreground gap-2 text-xs/relaxed [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none",
2819
2821
  className
2820
2822
  ),
@@ -2831,7 +2833,7 @@ function InputGroupInput({
2831
2833
  Input,
2832
2834
  {
2833
2835
  "data-slot": "input-group-control",
2834
- className: _chunkIZKIM7U5js.cn.call(void 0, "rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent flex-1", className),
2836
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent flex-1", className),
2835
2837
  ...props
2836
2838
  }
2837
2839
  );
@@ -2845,7 +2847,7 @@ function InputGroupTextarea({
2845
2847
  Textarea,
2846
2848
  {
2847
2849
  "data-slot": "input-group-control",
2848
- className: _chunkIZKIM7U5js.cn.call(void 0, "rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent flex-1 resize-none", className),
2850
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent flex-1 resize-none", className),
2849
2851
  ...props
2850
2852
  }
2851
2853
  );
@@ -2863,7 +2865,7 @@ function Command({
2863
2865
  _cmdk.Command,
2864
2866
  {
2865
2867
  "data-slot": "command",
2866
- className: _chunkIZKIM7U5js.cn.call(void 0,
2868
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2867
2869
  "bg-popover text-popover-foreground rounded-xl p-1 flex size-full flex-col overflow-hidden",
2868
2870
  className
2869
2871
  ),
@@ -2888,7 +2890,7 @@ function CommandDialog({
2888
2890
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2889
2891
  DialogContent,
2890
2892
  {
2891
- className: _chunkIZKIM7U5js.cn.call(void 0, "rounded-xl! p-0 overflow-hidden p-0", className),
2893
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "rounded-xl! p-0 overflow-hidden p-0", className),
2892
2894
  showCloseButton,
2893
2895
  children
2894
2896
  }
@@ -2905,7 +2907,7 @@ function CommandInput({
2905
2907
  _cmdk.Command.Input,
2906
2908
  {
2907
2909
  "data-slot": "command-input",
2908
- className: _chunkIZKIM7U5js.cn.call(void 0,
2910
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2909
2911
  "w-full text-xs/relaxed outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
2910
2912
  className
2911
2913
  ),
@@ -2924,7 +2926,7 @@ function CommandList({
2924
2926
  _cmdk.Command.List,
2925
2927
  {
2926
2928
  "data-slot": "command-list",
2927
- className: _chunkIZKIM7U5js.cn.call(void 0,
2929
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2928
2930
  "no-scrollbar max-h-72 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto",
2929
2931
  className
2930
2932
  ),
@@ -2941,7 +2943,7 @@ function CommandEmpty({
2941
2943
  _cmdk.Command.Empty,
2942
2944
  {
2943
2945
  "data-slot": "command-empty",
2944
- className: _chunkIZKIM7U5js.cn.call(void 0, "py-6 text-center text-xs/relaxed", className),
2946
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "py-6 text-center text-xs/relaxed", className),
2945
2947
  ...props
2946
2948
  }
2947
2949
  );
@@ -2955,7 +2957,7 @@ function CommandGroup({
2955
2957
  _cmdk.Command.Group,
2956
2958
  {
2957
2959
  "data-slot": "command-group",
2958
- className: _chunkIZKIM7U5js.cn.call(void 0, "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium", className),
2960
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium", className),
2959
2961
  ...props
2960
2962
  }
2961
2963
  );
@@ -2969,7 +2971,7 @@ function CommandSeparator({
2969
2971
  _cmdk.Command.Separator,
2970
2972
  {
2971
2973
  "data-slot": "command-separator",
2972
- className: _chunkIZKIM7U5js.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
2974
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
2973
2975
  ...props
2974
2976
  }
2975
2977
  );
@@ -2984,7 +2986,7 @@ function CommandItem({
2984
2986
  _cmdk.Command.Item,
2985
2987
  {
2986
2988
  "data-slot": "command-item",
2987
- className: _chunkIZKIM7U5js.cn.call(void 0,
2989
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
2988
2990
  "data-selected:bg-muted data-selected:text-foreground data-selected:*:[svg]:text-foreground relative flex min-h-7 cursor-default items-center gap-2 rounded-md px-2.5 py-1.5 text-xs/relaxed outline-hidden select-none [&_svg:not([class*='size-'])]:size-3.5 [[data-slot=dialog-content]_&]:rounded-md group/command-item data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
2989
2991
  className
2990
2992
  ),
@@ -3005,7 +3007,7 @@ function CommandShortcut({
3005
3007
  "span",
3006
3008
  {
3007
3009
  "data-slot": "command-shortcut",
3008
- className: _chunkIZKIM7U5js.cn.call(void 0, "text-muted-foreground group-data-selected/command-item:text-foreground ml-auto text-[0.625rem] tracking-widest", className),
3010
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-muted-foreground group-data-selected/command-item:text-foreground ml-auto text-[0.625rem] tracking-widest", className),
3009
3011
  ...props
3010
3012
  }
3011
3013
  );
@@ -3032,7 +3034,7 @@ function ContextMenuTrigger({
3032
3034
  _contextmenu.ContextMenu.Trigger,
3033
3035
  {
3034
3036
  "data-slot": "context-menu-trigger",
3035
- className: _chunkIZKIM7U5js.cn.call(void 0, "select-none", className),
3037
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "select-none", className),
3036
3038
  ...props
3037
3039
  }
3038
3040
  );
@@ -3058,7 +3060,7 @@ function ContextMenuContent({
3058
3060
  _contextmenu.ContextMenu.Popup,
3059
3061
  {
3060
3062
  "data-slot": "context-menu-content",
3061
- className: _chunkIZKIM7U5js.cn.call(void 0, "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100 z-50 max-h-(--available-height) origin-(--transform-origin) overflow-x-hidden overflow-y-auto outline-none", className),
3063
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100 z-50 max-h-(--available-height) origin-(--transform-origin) overflow-x-hidden overflow-y-auto outline-none", className),
3062
3064
  ...props
3063
3065
  }
3064
3066
  )
@@ -3080,7 +3082,7 @@ function ContextMenuLabel({
3080
3082
  {
3081
3083
  "data-slot": "context-menu-label",
3082
3084
  "data-inset": inset,
3083
- className: _chunkIZKIM7U5js.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
3085
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
3084
3086
  ...props
3085
3087
  }
3086
3088
  );
@@ -3098,7 +3100,7 @@ function ContextMenuItem({
3098
3100
  "data-slot": "context-menu-item",
3099
3101
  "data-inset": inset,
3100
3102
  "data-variant": variant,
3101
- className: _chunkIZKIM7U5js.cn.call(void 0,
3103
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
3102
3104
  "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3.5 group/context-menu-item relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0",
3103
3105
  className
3104
3106
  ),
@@ -3122,7 +3124,7 @@ function ContextMenuSubTrigger({
3122
3124
  {
3123
3125
  "data-slot": "context-menu-sub-trigger",
3124
3126
  "data-inset": inset,
3125
- className: _chunkIZKIM7U5js.cn.call(void 0,
3127
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
3126
3128
  "focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs [&_svg:not([class*='size-'])]:size-3.5 flex cursor-default items-center outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0",
3127
3129
  className
3128
3130
  ),
@@ -3159,7 +3161,7 @@ function ContextMenuCheckboxItem({
3159
3161
  _contextmenu.ContextMenu.CheckboxItem,
3160
3162
  {
3161
3163
  "data-slot": "context-menu-checkbox-item",
3162
- className: _chunkIZKIM7U5js.cn.call(void 0,
3164
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
3163
3165
  "focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground min-h-7 gap-2 rounded-md py-1.5 pr-8 pl-2 text-xs [&_svg:not([class*='size-'])]:size-3.5 relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
3164
3166
  className
3165
3167
  ),
@@ -3197,7 +3199,7 @@ function ContextMenuRadioItem({
3197
3199
  _contextmenu.ContextMenu.RadioItem,
3198
3200
  {
3199
3201
  "data-slot": "context-menu-radio-item",
3200
- className: _chunkIZKIM7U5js.cn.call(void 0,
3202
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
3201
3203
  "focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground min-h-7 gap-2 rounded-md py-1.5 pr-8 pl-2 text-xs [&_svg:not([class*='size-'])]:size-3.5 relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
3202
3204
  className
3203
3205
  ),
@@ -3221,7 +3223,7 @@ function ContextMenuSeparator({
3221
3223
  _contextmenu.ContextMenu.Separator,
3222
3224
  {
3223
3225
  "data-slot": "context-menu-separator",
3224
- className: _chunkIZKIM7U5js.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
3226
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
3225
3227
  ...props
3226
3228
  }
3227
3229
  );
@@ -3235,7 +3237,7 @@ function ContextMenuShortcut({
3235
3237
  "span",
3236
3238
  {
3237
3239
  "data-slot": "context-menu-shortcut",
3238
- className: _chunkIZKIM7U5js.cn.call(void 0, "text-muted-foreground group-focus/context-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest", className),
3240
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-muted-foreground group-focus/context-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest", className),
3239
3241
  ...props
3240
3242
  }
3241
3243
  );
@@ -3277,7 +3279,7 @@ function DrawerOverlay({
3277
3279
  _vaul.Drawer.Overlay,
3278
3280
  {
3279
3281
  "data-slot": "drawer-overlay",
3280
- className: _chunkIZKIM7U5js.cn.call(void 0, "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50", className),
3282
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50", className),
3281
3283
  ...props
3282
3284
  }
3283
3285
  );
@@ -3294,7 +3296,7 @@ function DrawerContent({
3294
3296
  _vaul.Drawer.Content,
3295
3297
  {
3296
3298
  "data-slot": "drawer-content",
3297
- className: _chunkIZKIM7U5js.cn.call(void 0,
3299
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
3298
3300
  "before:bg-background relative flex h-auto flex-col bg-transparent p-2 text-xs/relaxed before:absolute before:inset-2 before:-z-10 before:rounded-xl data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm group/drawer-content fixed z-50",
3299
3301
  className
3300
3302
  ),
@@ -3313,7 +3315,7 @@ function DrawerHeader({ className, ...props }) {
3313
3315
  "div",
3314
3316
  {
3315
3317
  "data-slot": "drawer-header",
3316
- className: _chunkIZKIM7U5js.cn.call(void 0, "gap-1 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:text-left flex flex-col", className),
3318
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "gap-1 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:text-left flex flex-col", className),
3317
3319
  ...props
3318
3320
  }
3319
3321
  );
@@ -3324,7 +3326,7 @@ function DrawerFooter({ className, ...props }) {
3324
3326
  "div",
3325
3327
  {
3326
3328
  "data-slot": "drawer-footer",
3327
- className: _chunkIZKIM7U5js.cn.call(void 0, "gap-2 p-4 mt-auto flex flex-col", className),
3329
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "gap-2 p-4 mt-auto flex flex-col", className),
3328
3330
  ...props
3329
3331
  }
3330
3332
  );
@@ -3338,7 +3340,7 @@ function DrawerTitle({
3338
3340
  _vaul.Drawer.Title,
3339
3341
  {
3340
3342
  "data-slot": "drawer-title",
3341
- className: _chunkIZKIM7U5js.cn.call(void 0, "text-foreground text-sm font-medium", className),
3343
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-foreground text-sm font-medium", className),
3342
3344
  ...props
3343
3345
  }
3344
3346
  );
@@ -3352,7 +3354,7 @@ function DrawerDescription({
3352
3354
  _vaul.Drawer.Description,
3353
3355
  {
3354
3356
  "data-slot": "drawer-description",
3355
- className: _chunkIZKIM7U5js.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
3357
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
3356
3358
  ...props
3357
3359
  }
3358
3360
  );
@@ -3395,7 +3397,7 @@ function DropdownMenuContent({
3395
3397
  _menu.Menu.Popup,
3396
3398
  {
3397
3399
  "data-slot": "dropdown-menu-content",
3398
- className: _chunkIZKIM7U5js.cn.call(void 0, "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100 z-50 max-h-(--available-height) w-(--anchor-width) origin-(--transform-origin) overflow-x-hidden overflow-y-auto outline-none data-closed:overflow-hidden", className),
3400
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100 z-50 max-h-(--available-height) w-(--anchor-width) origin-(--transform-origin) overflow-x-hidden overflow-y-auto outline-none data-closed:overflow-hidden", className),
3399
3401
  ...props
3400
3402
  }
3401
3403
  )
@@ -3417,7 +3419,7 @@ function DropdownMenuLabel({
3417
3419
  {
3418
3420
  "data-slot": "dropdown-menu-label",
3419
3421
  "data-inset": inset,
3420
- className: _chunkIZKIM7U5js.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
3422
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
3421
3423
  ...props
3422
3424
  }
3423
3425
  );
@@ -3435,7 +3437,7 @@ function DropdownMenuItem({
3435
3437
  "data-slot": "dropdown-menu-item",
3436
3438
  "data-inset": inset,
3437
3439
  "data-variant": variant,
3438
- className: _chunkIZKIM7U5js.cn.call(void 0,
3440
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
3439
3441
  "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3.5 group/dropdown-menu-item relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0",
3440
3442
  className
3441
3443
  ),
@@ -3459,7 +3461,7 @@ function DropdownMenuSubTrigger({
3459
3461
  {
3460
3462
  "data-slot": "dropdown-menu-sub-trigger",
3461
3463
  "data-inset": inset,
3462
- className: _chunkIZKIM7U5js.cn.call(void 0,
3464
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
3463
3465
  "focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs [&_svg:not([class*='size-'])]:size-3.5 flex cursor-default items-center outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0",
3464
3466
  className
3465
3467
  ),
@@ -3484,7 +3486,7 @@ function DropdownMenuSubContent({
3484
3486
  DropdownMenuContent,
3485
3487
  {
3486
3488
  "data-slot": "dropdown-menu-sub-content",
3487
- className: _chunkIZKIM7U5js.cn.call(void 0, "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100 w-auto", className),
3489
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100 w-auto", className),
3488
3490
  align,
3489
3491
  alignOffset,
3490
3492
  side,
@@ -3504,7 +3506,7 @@ function DropdownMenuCheckboxItem({
3504
3506
  _menu.Menu.CheckboxItem,
3505
3507
  {
3506
3508
  "data-slot": "dropdown-menu-checkbox-item",
3507
- className: _chunkIZKIM7U5js.cn.call(void 0,
3509
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
3508
3510
  "focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground min-h-7 gap-2 rounded-md py-1.5 pr-8 pl-2 text-xs [&_svg:not([class*='size-'])]:size-3.5 relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
3509
3511
  className
3510
3512
  ),
@@ -3547,7 +3549,7 @@ function DropdownMenuRadioItem({
3547
3549
  _menu.Menu.RadioItem,
3548
3550
  {
3549
3551
  "data-slot": "dropdown-menu-radio-item",
3550
- className: _chunkIZKIM7U5js.cn.call(void 0,
3552
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
3551
3553
  "focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground min-h-7 gap-2 rounded-md py-1.5 pr-8 pl-2 text-xs [&_svg:not([class*='size-'])]:size-3.5 relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
3552
3554
  className
3553
3555
  ),
@@ -3578,7 +3580,7 @@ function DropdownMenuSeparator({
3578
3580
  _menu.Menu.Separator,
3579
3581
  {
3580
3582
  "data-slot": "dropdown-menu-separator",
3581
- className: _chunkIZKIM7U5js.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
3583
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
3582
3584
  ...props
3583
3585
  }
3584
3586
  );
@@ -3592,7 +3594,7 @@ function DropdownMenuShortcut({
3592
3594
  "span",
3593
3595
  {
3594
3596
  "data-slot": "dropdown-menu-shortcut",
3595
- className: _chunkIZKIM7U5js.cn.call(void 0, "text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest", className),
3597
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest", className),
3596
3598
  ...props
3597
3599
  }
3598
3600
  );
@@ -3610,7 +3612,7 @@ function Label({ className, ...props }) {
3610
3612
  "label",
3611
3613
  {
3612
3614
  "data-slot": "label",
3613
- className: _chunkIZKIM7U5js.cn.call(void 0,
3615
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
3614
3616
  "gap-2 text-xs/relaxed leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed",
3615
3617
  className
3616
3618
  ),
@@ -3633,7 +3635,7 @@ function Separator({
3633
3635
  {
3634
3636
  "data-slot": "separator",
3635
3637
  orientation,
3636
- className: _chunkIZKIM7U5js.cn.call(void 0,
3638
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
3637
3639
  "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch",
3638
3640
  className
3639
3641
  ),
@@ -3650,7 +3652,7 @@ function FieldSet({ className, ...props }) {
3650
3652
  "fieldset",
3651
3653
  {
3652
3654
  "data-slot": "field-set",
3653
- className: _chunkIZKIM7U5js.cn.call(void 0, "gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col", className),
3655
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col", className),
3654
3656
  ...props
3655
3657
  }
3656
3658
  );
@@ -3666,7 +3668,7 @@ function FieldLegend({
3666
3668
  {
3667
3669
  "data-slot": "field-legend",
3668
3670
  "data-variant": variant,
3669
- className: _chunkIZKIM7U5js.cn.call(void 0, "mb-2 font-medium data-[variant=label]:text-xs/relaxed data-[variant=legend]:text-sm", className),
3671
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "mb-2 font-medium data-[variant=label]:text-xs/relaxed data-[variant=legend]:text-sm", className),
3670
3672
  ...props
3671
3673
  }
3672
3674
  );
@@ -3677,7 +3679,7 @@ function FieldGroup({ className, ...props }) {
3677
3679
  "div",
3678
3680
  {
3679
3681
  "data-slot": "field-group",
3680
- className: _chunkIZKIM7U5js.cn.call(void 0,
3682
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
3681
3683
  "gap-4 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4 group/field-group @container/field-group flex w-full flex-col",
3682
3684
  className
3683
3685
  ),
@@ -3709,7 +3711,7 @@ function Field({
3709
3711
  role: "group",
3710
3712
  "data-slot": "field",
3711
3713
  "data-orientation": orientation,
3712
- className: _chunkIZKIM7U5js.cn.call(void 0, fieldVariants({ orientation }), className),
3714
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, fieldVariants({ orientation }), className),
3713
3715
  ...props
3714
3716
  }
3715
3717
  );
@@ -3720,7 +3722,7 @@ function FieldContent({ className, ...props }) {
3720
3722
  "div",
3721
3723
  {
3722
3724
  "data-slot": "field-content",
3723
- className: _chunkIZKIM7U5js.cn.call(void 0,
3725
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
3724
3726
  "gap-0.5 group/field-content flex flex-1 flex-col leading-snug",
3725
3727
  className
3726
3728
  ),
@@ -3737,7 +3739,7 @@ function FieldLabel({
3737
3739
  Label,
3738
3740
  {
3739
3741
  "data-slot": "field-label",
3740
- className: _chunkIZKIM7U5js.cn.call(void 0,
3742
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
3741
3743
  "has-data-checked:bg-primary/5 dark:has-data-checked:bg-primary/10 gap-2 group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-2 group/field-label peer/field-label flex w-fit leading-snug",
3742
3744
  "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",
3743
3745
  className
@@ -3752,7 +3754,7 @@ function FieldTitle({ className, ...props }) {
3752
3754
  "div",
3753
3755
  {
3754
3756
  "data-slot": "field-label",
3755
- className: _chunkIZKIM7U5js.cn.call(void 0,
3757
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
3756
3758
  "gap-2 text-xs/relaxed font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center leading-snug",
3757
3759
  className
3758
3760
  ),
@@ -3766,7 +3768,7 @@ function FieldDescription({ className, ...props }) {
3766
3768
  "p",
3767
3769
  {
3768
3770
  "data-slot": "field-description",
3769
- className: _chunkIZKIM7U5js.cn.call(void 0,
3771
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
3770
3772
  "text-muted-foreground text-left text-xs/relaxed [[data-variant=legend]+&]:-mt-1.5 leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance",
3771
3773
  "last:mt-0 nth-last-2:-mt-1",
3772
3774
  "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
@@ -3787,7 +3789,7 @@ function FieldSeparator({
3787
3789
  {
3788
3790
  "data-slot": "field-separator",
3789
3791
  "data-content": !!children,
3790
- className: _chunkIZKIM7U5js.cn.call(void 0, "-my-2 h-5 text-xs/relaxed group-data-[variant=outline]/field-group:-mb-2 relative", className),
3792
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "-my-2 h-5 text-xs/relaxed group-data-[variant=outline]/field-group:-mb-2 relative", className),
3791
3793
  ...props,
3792
3794
  children: [
3793
3795
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, { className: "absolute inset-0 top-1/2" }),
@@ -3814,17 +3816,17 @@ function FieldError({
3814
3816
  if (children) {
3815
3817
  return children;
3816
3818
  }
3817
- if (!_optionalChain([errors, 'optionalAccess', _88 => _88.length])) {
3819
+ if (!_optionalChain([errors, 'optionalAccess', _89 => _89.length])) {
3818
3820
  return null;
3819
3821
  }
3820
3822
  const uniqueErrors = [
3821
- ...new Map(errors.map((error) => [_optionalChain([error, 'optionalAccess', _89 => _89.message]), error])).values()
3823
+ ...new Map(errors.map((error) => [_optionalChain([error, 'optionalAccess', _90 => _90.message]), error])).values()
3822
3824
  ];
3823
- if (_optionalChain([uniqueErrors, 'optionalAccess', _90 => _90.length]) == 1) {
3824
- return _optionalChain([uniqueErrors, 'access', _91 => _91[0], 'optionalAccess', _92 => _92.message]);
3825
+ if (_optionalChain([uniqueErrors, 'optionalAccess', _91 => _91.length]) == 1) {
3826
+ return _optionalChain([uniqueErrors, 'access', _92 => _92[0], 'optionalAccess', _93 => _93.message]);
3825
3827
  }
3826
3828
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map(
3827
- (error, index) => _optionalChain([error, 'optionalAccess', _93 => _93.message]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: error.message }, index)
3829
+ (error, index) => _optionalChain([error, 'optionalAccess', _94 => _94.message]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: error.message }, index)
3828
3830
  ) });
3829
3831
  }, [children, errors]);
3830
3832
  if (!content) {
@@ -3835,7 +3837,7 @@ function FieldError({
3835
3837
  {
3836
3838
  role: "alert",
3837
3839
  "data-slot": "field-error",
3838
- className: _chunkIZKIM7U5js.cn.call(void 0, "text-destructive text-xs/relaxed font-normal", className),
3840
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-destructive text-xs/relaxed font-normal", className),
3839
3841
  ...props,
3840
3842
  children: content
3841
3843
  }
@@ -3878,7 +3880,7 @@ function HoverCardContent({
3878
3880
  _previewcard.PreviewCard.Popup,
3879
3881
  {
3880
3882
  "data-slot": "hover-card-content",
3881
- className: _chunkIZKIM7U5js.cn.call(void 0,
3883
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
3882
3884
  "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground w-72 rounded-lg p-2.5 text-xs/relaxed shadow-md ring-1 duration-100 z-50 origin-(--transform-origin) outline-hidden",
3883
3885
  className
3884
3886
  ),
@@ -3904,12 +3906,12 @@ function InputOTP({
3904
3906
  _inputotp.OTPInput,
3905
3907
  {
3906
3908
  "data-slot": "input-otp",
3907
- containerClassName: _chunkIZKIM7U5js.cn.call(void 0,
3909
+ containerClassName: _chunkNNCTRU4Ojs.cn.call(void 0,
3908
3910
  "cn-input-otp flex items-center has-disabled:opacity-50",
3909
3911
  containerClassName
3910
3912
  ),
3911
3913
  spellCheck: false,
3912
- className: _chunkIZKIM7U5js.cn.call(void 0,
3914
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
3913
3915
  "disabled:cursor-not-allowed",
3914
3916
  className
3915
3917
  ),
@@ -3923,7 +3925,7 @@ function InputOTPGroup({ className, ...props }) {
3923
3925
  "div",
3924
3926
  {
3925
3927
  "data-slot": "input-otp-group",
3926
- className: _chunkIZKIM7U5js.cn.call(void 0, "has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 has-aria-invalid:border-destructive rounded-md has-aria-invalid:ring-[2px] flex items-center", className),
3928
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 has-aria-invalid:border-destructive rounded-md has-aria-invalid:ring-[2px] flex items-center", className),
3927
3929
  ...props
3928
3930
  }
3929
3931
  );
@@ -3935,13 +3937,13 @@ function InputOTPSlot({
3935
3937
  ...props
3936
3938
  }) {
3937
3939
  const inputOTPContext = React6.useContext(_inputotp.OTPInputContext);
3938
- const { char, hasFakeCaret, isActive } = _nullishCoalesce(_optionalChain([inputOTPContext, 'optionalAccess', _94 => _94.slots, 'access', _95 => _95[index]]), () => ( {}));
3940
+ const { char, hasFakeCaret, isActive } = _nullishCoalesce(_optionalChain([inputOTPContext, 'optionalAccess', _95 => _95.slots, 'access', _96 => _96[index]]), () => ( {}));
3939
3941
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3940
3942
  "div",
3941
3943
  {
3942
3944
  "data-slot": "input-otp-slot",
3943
3945
  "data-active": isActive,
3944
- className: _chunkIZKIM7U5js.cn.call(void 0,
3946
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
3945
3947
  "bg-input/20 dark:bg-input/30 border-input data-[active=true]:border-ring data-[active=true]:ring-ring/30 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive size-7 border-y border-r text-xs/relaxed transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:ring-[2px] relative flex items-center justify-center data-[active=true]:z-10",
3946
3948
  className
3947
3949
  ),
@@ -3985,7 +3987,7 @@ function NavigationMenu({
3985
3987
  _navigationmenu.NavigationMenu.Root,
3986
3988
  {
3987
3989
  "data-slot": "navigation-menu",
3988
- className: _chunkIZKIM7U5js.cn.call(void 0,
3990
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
3989
3991
  "max-w-max group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
3990
3992
  className
3991
3993
  ),
@@ -4006,7 +4008,7 @@ function NavigationMenuList({
4006
4008
  _navigationmenu.NavigationMenu.List,
4007
4009
  {
4008
4010
  "data-slot": "navigation-menu-list",
4009
- className: _chunkIZKIM7U5js.cn.call(void 0,
4011
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
4010
4012
  "gap-0 group flex flex-1 list-none items-center justify-center",
4011
4013
  className
4012
4014
  ),
@@ -4023,7 +4025,7 @@ function NavigationMenuItem({
4023
4025
  _navigationmenu.NavigationMenu.Item,
4024
4026
  {
4025
4027
  "data-slot": "navigation-menu-item",
4026
- className: _chunkIZKIM7U5js.cn.call(void 0, "relative", className),
4028
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "relative", className),
4027
4029
  ...props
4028
4030
  }
4029
4031
  );
@@ -4041,7 +4043,7 @@ function NavigationMenuTrigger({
4041
4043
  _navigationmenu.NavigationMenu.Trigger,
4042
4044
  {
4043
4045
  "data-slot": "navigation-menu-trigger",
4044
- className: _chunkIZKIM7U5js.cn.call(void 0, navigationMenuTriggerStyle(), "group", className),
4046
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, navigationMenuTriggerStyle(), "group", className),
4045
4047
  ...props,
4046
4048
  children: [
4047
4049
  children,
@@ -4060,7 +4062,7 @@ function NavigationMenuContent({
4060
4062
  _navigationmenu.NavigationMenu.Content,
4061
4063
  {
4062
4064
  "data-slot": "navigation-menu-content",
4063
- className: _chunkIZKIM7U5js.cn.call(void 0,
4065
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
4064
4066
  "data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/10 p-1.5 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-xl group-data-[viewport=false]/navigation-menu:shadow-md group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 h-full w-auto **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
4065
4067
  className
4066
4068
  ),
@@ -4084,7 +4086,7 @@ function NavigationMenuPositioner({
4084
4086
  sideOffset,
4085
4087
  align,
4086
4088
  alignOffset,
4087
- className: _chunkIZKIM7U5js.cn.call(void 0,
4089
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
4088
4090
  "transition-[top,left,right,bottom] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0 isolate z-50 h-[var(--positioner-height)] w-[var(--positioner-width)] max-w-[var(--available-width)] data-[instant]:transition-none",
4089
4091
  className
4090
4092
  ),
@@ -4102,7 +4104,7 @@ function NavigationMenuLink({
4102
4104
  _navigationmenu.NavigationMenu.Link,
4103
4105
  {
4104
4106
  "data-slot": "navigation-menu-link",
4105
- className: _chunkIZKIM7U5js.cn.call(void 0, "data-[active=true]:focus:bg-muted data-[active=true]:hover:bg-muted data-[active=true]:bg-muted/50 focus-visible:ring-ring/30 hover:bg-muted focus:bg-muted flex items-center gap-1.5 rounded-lg p-2 text-xs/relaxed transition-all outline-none focus-visible:ring-[2px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4", className),
4107
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "data-[active=true]:focus:bg-muted data-[active=true]:hover:bg-muted data-[active=true]:bg-muted/50 focus-visible:ring-ring/30 hover:bg-muted focus:bg-muted flex items-center gap-1.5 rounded-lg p-2 text-xs/relaxed transition-all outline-none focus-visible:ring-[2px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4", className),
4106
4108
  ...props
4107
4109
  }
4108
4110
  );
@@ -4116,7 +4118,7 @@ function NavigationMenuIndicator({
4116
4118
  _navigationmenu.NavigationMenu.Icon,
4117
4119
  {
4118
4120
  "data-slot": "navigation-menu-indicator",
4119
- className: _chunkIZKIM7U5js.cn.call(void 0,
4121
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
4120
4122
  "data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
4121
4123
  className
4122
4124
  ),
@@ -4158,7 +4160,7 @@ function PopoverContent({
4158
4160
  _popover.Popover.Popup,
4159
4161
  {
4160
4162
  "data-slot": "popover-content",
4161
- className: _chunkIZKIM7U5js.cn.call(void 0,
4163
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
4162
4164
  "bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 flex flex-col gap-4 rounded-lg p-2.5 text-xs shadow-md ring-1 duration-100 z-50 w-72 origin-(--transform-origin) outline-hidden",
4163
4165
  className
4164
4166
  ),
@@ -4174,7 +4176,7 @@ function PopoverHeader({ className, ...props }) {
4174
4176
  "div",
4175
4177
  {
4176
4178
  "data-slot": "popover-header",
4177
- className: _chunkIZKIM7U5js.cn.call(void 0, "flex flex-col gap-1 text-xs", className),
4179
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "flex flex-col gap-1 text-xs", className),
4178
4180
  ...props
4179
4181
  }
4180
4182
  );
@@ -4185,7 +4187,7 @@ function PopoverTitle({ className, ...props }) {
4185
4187
  _popover.Popover.Title,
4186
4188
  {
4187
4189
  "data-slot": "popover-title",
4188
- className: _chunkIZKIM7U5js.cn.call(void 0, "text-sm font-medium", className),
4190
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-sm font-medium", className),
4189
4191
  ...props
4190
4192
  }
4191
4193
  );
@@ -4199,7 +4201,7 @@ function PopoverDescription({
4199
4201
  _popover.Popover.Description,
4200
4202
  {
4201
4203
  "data-slot": "popover-description",
4202
- className: _chunkIZKIM7U5js.cn.call(void 0, "text-muted-foreground", className),
4204
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-muted-foreground", className),
4203
4205
  ...props
4204
4206
  }
4205
4207
  );
@@ -4220,7 +4222,7 @@ function Progress({
4220
4222
  {
4221
4223
  value,
4222
4224
  "data-slot": "progress",
4223
- className: _chunkIZKIM7U5js.cn.call(void 0, "flex flex-wrap gap-3", className),
4225
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "flex flex-wrap gap-3", className),
4224
4226
  ...props,
4225
4227
  children: [
4226
4228
  children,
@@ -4234,7 +4236,7 @@ function ProgressTrack({ className, ...props }) {
4234
4236
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4235
4237
  _progress.Progress.Track,
4236
4238
  {
4237
- className: _chunkIZKIM7U5js.cn.call(void 0,
4239
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
4238
4240
  "bg-muted h-1 rounded-md relative flex w-full items-center overflow-x-hidden",
4239
4241
  className
4240
4242
  ),
@@ -4252,7 +4254,7 @@ function ProgressIndicator({
4252
4254
  _progress.Progress.Indicator,
4253
4255
  {
4254
4256
  "data-slot": "progress-indicator",
4255
- className: _chunkIZKIM7U5js.cn.call(void 0, "bg-primary h-full transition-all", className),
4257
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "bg-primary h-full transition-all", className),
4256
4258
  ...props
4257
4259
  }
4258
4260
  );
@@ -4262,7 +4264,7 @@ function ProgressLabel({ className, ...props }) {
4262
4264
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4263
4265
  _progress.Progress.Label,
4264
4266
  {
4265
- className: _chunkIZKIM7U5js.cn.call(void 0, "text-xs/relaxed font-medium", className),
4267
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-xs/relaxed font-medium", className),
4266
4268
  "data-slot": "progress-label",
4267
4269
  ...props
4268
4270
  }
@@ -4273,7 +4275,7 @@ function ProgressValue({ className, ...props }) {
4273
4275
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4274
4276
  _progress.Progress.Value,
4275
4277
  {
4276
- className: _chunkIZKIM7U5js.cn.call(void 0, "text-muted-foreground ml-auto text-xs/relaxed tabular-nums", className),
4278
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-muted-foreground ml-auto text-xs/relaxed tabular-nums", className),
4277
4279
  "data-slot": "progress-value",
4278
4280
  ...props
4279
4281
  }
@@ -4291,7 +4293,7 @@ function RadioGroup({ className, ...props }) {
4291
4293
  _radiogroup.RadioGroup,
4292
4294
  {
4293
4295
  "data-slot": "radio-group",
4294
- className: _chunkIZKIM7U5js.cn.call(void 0, "grid gap-3 w-full", className),
4296
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "grid gap-3 w-full", className),
4295
4297
  ...props
4296
4298
  }
4297
4299
  );
@@ -4302,7 +4304,7 @@ function RadioGroupItem({ className, ...props }) {
4302
4304
  _radio.Radio.Root,
4303
4305
  {
4304
4306
  "data-slot": "radio-group-item",
4305
- className: _chunkIZKIM7U5js.cn.call(void 0,
4307
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
4306
4308
  "border-input text-primary dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 data-checked:bg-primary data-checked:border-primary flex size-4 rounded-full transition-none focus-visible:ring-[2px] aria-invalid:ring-[2px] group/radio-group-item peer relative aspect-square shrink-0 border outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-50",
4307
4309
  className
4308
4310
  ),
@@ -4331,7 +4333,7 @@ function ResizablePanelGroup({
4331
4333
  ResizablePrimitive.PanelGroup,
4332
4334
  {
4333
4335
  "data-slot": "resizable-panel-group",
4334
- className: _chunkIZKIM7U5js.cn.call(void 0,
4336
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
4335
4337
  "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
4336
4338
  className
4337
4339
  ),
@@ -4355,7 +4357,7 @@ function ResizableHandle({
4355
4357
  ResizablePrimitive.PanelResizeHandle,
4356
4358
  {
4357
4359
  "data-slot": "resizable-handle",
4358
- className: _chunkIZKIM7U5js.cn.call(void 0,
4360
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
4359
4361
  "bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",
4360
4362
  className
4361
4363
  ),
@@ -4378,7 +4380,7 @@ function ScrollArea({
4378
4380
  _scrollarea.ScrollArea.Root,
4379
4381
  {
4380
4382
  "data-slot": "scroll-area",
4381
- className: _chunkIZKIM7U5js.cn.call(void 0, "relative", className),
4383
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "relative", className),
4382
4384
  ...props,
4383
4385
  children: [
4384
4386
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -4407,7 +4409,7 @@ function ScrollBar({
4407
4409
  "data-slot": "scroll-area-scrollbar",
4408
4410
  "data-orientation": orientation,
4409
4411
  orientation,
4410
- className: _chunkIZKIM7U5js.cn.call(void 0,
4412
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
4411
4413
  "data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent flex touch-none p-px transition-colors select-none",
4412
4414
  className
4413
4415
  ),
@@ -4434,7 +4436,7 @@ function SelectGroup({ className, ...props }) {
4434
4436
  _select.Select.Group,
4435
4437
  {
4436
4438
  "data-slot": "select-group",
4437
- className: _chunkIZKIM7U5js.cn.call(void 0, "scroll-my-1 p-1", className),
4439
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "scroll-my-1 p-1", className),
4438
4440
  ...props
4439
4441
  }
4440
4442
  );
@@ -4445,7 +4447,7 @@ function SelectValue({ className, ...props }) {
4445
4447
  _select.Select.Value,
4446
4448
  {
4447
4449
  "data-slot": "select-value",
4448
- className: _chunkIZKIM7U5js.cn.call(void 0, "flex flex-1 text-left", className),
4450
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "flex flex-1 text-left", className),
4449
4451
  ...props
4450
4452
  }
4451
4453
  );
@@ -4462,7 +4464,7 @@ function SelectTrigger({
4462
4464
  {
4463
4465
  "data-slot": "select-trigger",
4464
4466
  "data-size": size,
4465
- className: _chunkIZKIM7U5js.cn.call(void 0,
4467
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
4466
4468
  "border-input data-[placeholder]:text-muted-foreground bg-input/20 dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 gap-1.5 rounded-md border px-2 py-1.5 text-xs/relaxed transition-colors focus-visible:ring-[2px] aria-invalid:ring-[2px] data-[size=default]:h-7 data-[size=sm]:h-6 *:data-[slot=select-value]:flex *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-3.5 flex w-fit items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
4467
4469
  className
4468
4470
  ),
@@ -4503,7 +4505,7 @@ function SelectContent({
4503
4505
  _select.Select.Popup,
4504
4506
  {
4505
4507
  "data-slot": "select-content",
4506
- className: _chunkIZKIM7U5js.cn.call(void 0, "bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 min-w-32 rounded-lg shadow-md ring-1 duration-100 relative isolate z-50 max-h-(--available-height) w-(--anchor-width) origin-(--transform-origin) overflow-x-hidden overflow-y-auto", className),
4508
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 min-w-32 rounded-lg shadow-md ring-1 duration-100 relative isolate z-50 max-h-(--available-height) w-(--anchor-width) origin-(--transform-origin) overflow-x-hidden overflow-y-auto", className),
4507
4509
  ...props,
4508
4510
  children: [
4509
4511
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectScrollUpButton, {}),
@@ -4524,7 +4526,7 @@ function SelectLabel({
4524
4526
  _select.Select.GroupLabel,
4525
4527
  {
4526
4528
  "data-slot": "select-label",
4527
- className: _chunkIZKIM7U5js.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs", className),
4529
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs", className),
4528
4530
  ...props
4529
4531
  }
4530
4532
  );
@@ -4539,7 +4541,7 @@ function SelectItem({
4539
4541
  _select.Select.Item,
4540
4542
  {
4541
4543
  "data-slot": "select-item",
4542
- className: _chunkIZKIM7U5js.cn.call(void 0,
4544
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
4543
4545
  "focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3.5 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
4544
4546
  className
4545
4547
  ),
@@ -4566,7 +4568,7 @@ function SelectSeparator({
4566
4568
  _select.Select.Separator,
4567
4569
  {
4568
4570
  "data-slot": "select-separator",
4569
- className: _chunkIZKIM7U5js.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px pointer-events-none", className),
4571
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px pointer-events-none", className),
4570
4572
  ...props
4571
4573
  }
4572
4574
  );
@@ -4580,7 +4582,7 @@ function SelectScrollUpButton({
4580
4582
  _select.Select.ScrollUpArrow,
4581
4583
  {
4582
4584
  "data-slot": "select-scroll-up-button",
4583
- className: _chunkIZKIM7U5js.cn.call(void 0, "bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5 top-0 w-full", className),
4585
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5 top-0 w-full", className),
4584
4586
  ...props,
4585
4587
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4586
4588
  _lucidereact.ChevronUpIcon,
@@ -4598,7 +4600,7 @@ function SelectScrollDownButton({
4598
4600
  _select.Select.ScrollDownArrow,
4599
4601
  {
4600
4602
  "data-slot": "select-scroll-down-button",
4601
- className: _chunkIZKIM7U5js.cn.call(void 0, "bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5 bottom-0 w-full", className),
4603
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5 bottom-0 w-full", className),
4602
4604
  ...props,
4603
4605
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4604
4606
  _lucidereact.ChevronDownIcon,
@@ -4634,7 +4636,7 @@ function SheetOverlay({ className, ...props }) {
4634
4636
  _dialog.Dialog.Backdrop,
4635
4637
  {
4636
4638
  "data-slot": "sheet-overlay",
4637
- className: _chunkIZKIM7U5js.cn.call(void 0, "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50", className),
4639
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50", className),
4638
4640
  ...props
4639
4641
  }
4640
4642
  );
@@ -4654,7 +4656,7 @@ function SheetContent({
4654
4656
  {
4655
4657
  "data-slot": "sheet-content",
4656
4658
  "data-side": side,
4657
- className: _chunkIZKIM7U5js.cn.call(void 0, "bg-background data-open:animate-in data-closed:animate-out data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 fixed z-50 flex flex-col bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm", className),
4659
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "bg-background data-open:animate-in data-closed:animate-out data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 fixed z-50 flex flex-col bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm", className),
4658
4660
  ...props,
4659
4661
  children: [
4660
4662
  children,
@@ -4690,7 +4692,7 @@ function SheetHeader({ className, ...props }) {
4690
4692
  "div",
4691
4693
  {
4692
4694
  "data-slot": "sheet-header",
4693
- className: _chunkIZKIM7U5js.cn.call(void 0, "gap-1.5 p-6 flex flex-col", className),
4695
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "gap-1.5 p-6 flex flex-col", className),
4694
4696
  ...props
4695
4697
  }
4696
4698
  );
@@ -4701,7 +4703,7 @@ function SheetFooter({ className, ...props }) {
4701
4703
  "div",
4702
4704
  {
4703
4705
  "data-slot": "sheet-footer",
4704
- className: _chunkIZKIM7U5js.cn.call(void 0, "gap-2 p-6 mt-auto flex flex-col", className),
4706
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "gap-2 p-6 mt-auto flex flex-col", className),
4705
4707
  ...props
4706
4708
  }
4707
4709
  );
@@ -4712,7 +4714,7 @@ function SheetTitle({ className, ...props }) {
4712
4714
  _dialog.Dialog.Title,
4713
4715
  {
4714
4716
  "data-slot": "sheet-title",
4715
- className: _chunkIZKIM7U5js.cn.call(void 0, "text-foreground text-sm font-medium", className),
4717
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-foreground text-sm font-medium", className),
4716
4718
  ...props
4717
4719
  }
4718
4720
  );
@@ -4726,7 +4728,7 @@ function SheetDescription({
4726
4728
  _dialog.Dialog.Description,
4727
4729
  {
4728
4730
  "data-slot": "sheet-description",
4729
- className: _chunkIZKIM7U5js.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
4731
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
4730
4732
  ...props
4731
4733
  }
4732
4734
  );
@@ -4746,7 +4748,7 @@ function Skeleton({ className, ...props }) {
4746
4748
  "div",
4747
4749
  {
4748
4750
  "data-slot": "skeleton",
4749
- className: _chunkIZKIM7U5js.cn.call(void 0, "bg-muted rounded-md animate-pulse", className),
4751
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "bg-muted rounded-md animate-pulse", className),
4750
4752
  ...props
4751
4753
  }
4752
4754
  );
@@ -4799,7 +4801,7 @@ function TooltipContent({
4799
4801
  _tooltip.Tooltip.Popup,
4800
4802
  {
4801
4803
  "data-slot": "tooltip-content",
4802
- className: _chunkIZKIM7U5js.cn.call(void 0,
4804
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
4803
4805
  "data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 rounded-md px-3 py-1.5 text-xs **:data-[slot=kbd]:rounded-md bg-foreground text-background z-50 w-fit max-w-xs origin-(--transform-origin)",
4804
4806
  className
4805
4807
  ),
@@ -4842,7 +4844,7 @@ function SidebarProvider({
4842
4844
  children,
4843
4845
  ...props
4844
4846
  }) {
4845
- const isMobile = _chunkIZKIM7U5js.useIsMobile.call(void 0, );
4847
+ const isMobile = _chunkNNCTRU4Ojs.useIsMobile.call(void 0, );
4846
4848
  const [openMobile, setOpenMobile] = React7.useState(false);
4847
4849
  const [_open, _setOpen] = React7.useState(defaultOpen);
4848
4850
  const open = _nullishCoalesce(openProp, () => ( _open));
@@ -4893,7 +4895,7 @@ function SidebarProvider({
4893
4895
  "--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
4894
4896
  ...style
4895
4897
  },
4896
- className: _chunkIZKIM7U5js.cn.call(void 0,
4898
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
4897
4899
  "group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",
4898
4900
  className
4899
4901
  ),
@@ -4917,7 +4919,7 @@ function Sidebar({
4917
4919
  "div",
4918
4920
  {
4919
4921
  "data-slot": "sidebar",
4920
- className: _chunkIZKIM7U5js.cn.call(void 0,
4922
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
4921
4923
  "bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",
4922
4924
  className
4923
4925
  ),
@@ -4962,7 +4964,7 @@ function Sidebar({
4962
4964
  "div",
4963
4965
  {
4964
4966
  "data-slot": "sidebar-gap",
4965
- className: _chunkIZKIM7U5js.cn.call(void 0,
4967
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
4966
4968
  "transition-[width] duration-200 ease-linear relative w-(--sidebar-width) bg-transparent",
4967
4969
  "group-data-[collapsible=offExamples]:w-0",
4968
4970
  "group-data-[side=right]:rotate-180",
@@ -4974,7 +4976,7 @@ function Sidebar({
4974
4976
  "div",
4975
4977
  {
4976
4978
  "data-slot": "sidebar-container",
4977
- className: _chunkIZKIM7U5js.cn.call(void 0,
4979
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
4978
4980
  "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
4979
4981
  side === "left" ? "left-0 group-data-[collapsible=offExamples]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offExamples]:right-[calc(var(--sidebar-width)*-1)]",
4980
4982
  // Adjust the padding for floating and inset variants.
@@ -5011,9 +5013,9 @@ function SidebarTrigger({
5011
5013
  "data-slot": "sidebar-trigger",
5012
5014
  variant: "ghost",
5013
5015
  size: "icon-sm",
5014
- className: _chunkIZKIM7U5js.cn.call(void 0, className),
5016
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, className),
5015
5017
  onClick: (event) => {
5016
- _optionalChain([onClick, 'optionalCall', _96 => _96(event)]);
5018
+ _optionalChain([onClick, 'optionalCall', _97 => _97(event)]);
5017
5019
  toggleSidebar();
5018
5020
  },
5019
5021
  ...props,
@@ -5039,7 +5041,7 @@ function SidebarRail({ className, ...props }) {
5039
5041
  tabIndex: -1,
5040
5042
  onClick: toggleSidebar,
5041
5043
  title: "Toggle Sidebar",
5042
- className: _chunkIZKIM7U5js.cn.call(void 0,
5044
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
5043
5045
  "hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex",
5044
5046
  "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
5045
5047
  "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
@@ -5058,7 +5060,7 @@ function SidebarInset({ className, ...props }) {
5058
5060
  "main",
5059
5061
  {
5060
5062
  "data-slot": "sidebar-inset",
5061
- className: _chunkIZKIM7U5js.cn.call(void 0,
5063
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
5062
5064
  "bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 relative flex w-full flex-1 flex-col",
5063
5065
  className
5064
5066
  ),
@@ -5076,7 +5078,7 @@ function SidebarInput({
5076
5078
  {
5077
5079
  "data-slot": "sidebar-input",
5078
5080
  "data-sidebar": "input",
5079
- className: _chunkIZKIM7U5js.cn.call(void 0, "bg-muted/20 dark:bg-muted/30 border-input h-8 w-full", className),
5081
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "bg-muted/20 dark:bg-muted/30 border-input h-8 w-full", className),
5080
5082
  ...props
5081
5083
  }
5082
5084
  );
@@ -5088,7 +5090,7 @@ function SidebarHeader({ className, ...props }) {
5088
5090
  {
5089
5091
  "data-slot": "sidebar-header",
5090
5092
  "data-sidebar": "header",
5091
- className: _chunkIZKIM7U5js.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
5093
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
5092
5094
  ...props
5093
5095
  }
5094
5096
  );
@@ -5100,7 +5102,7 @@ function SidebarFooter({ className, ...props }) {
5100
5102
  {
5101
5103
  "data-slot": "sidebar-footer",
5102
5104
  "data-sidebar": "footer",
5103
- className: _chunkIZKIM7U5js.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
5105
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
5104
5106
  ...props
5105
5107
  }
5106
5108
  );
@@ -5115,7 +5117,7 @@ function SidebarSeparator({
5115
5117
  {
5116
5118
  "data-slot": "sidebar-separator",
5117
5119
  "data-sidebar": "separator",
5118
- className: _chunkIZKIM7U5js.cn.call(void 0, "bg-sidebar-border mx-2 w-auto", className),
5120
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "bg-sidebar-border mx-2 w-auto", className),
5119
5121
  ...props
5120
5122
  }
5121
5123
  );
@@ -5127,7 +5129,7 @@ function SidebarContent({ className, ...props }) {
5127
5129
  {
5128
5130
  "data-slot": "sidebar-content",
5129
5131
  "data-sidebar": "content",
5130
- className: _chunkIZKIM7U5js.cn.call(void 0,
5132
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
5131
5133
  "no-scrollbar gap-0 flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",
5132
5134
  className
5133
5135
  ),
@@ -5142,7 +5144,7 @@ function SidebarGroup({ className, ...props }) {
5142
5144
  {
5143
5145
  "data-slot": "sidebar-group",
5144
5146
  "data-sidebar": "group",
5145
- className: _chunkIZKIM7U5js.cn.call(void 0,
5147
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
5146
5148
  "px-2 py-1 relative flex w-full min-w-0 flex-col",
5147
5149
  className
5148
5150
  ),
@@ -5160,7 +5162,7 @@ function SidebarGroupLabel({
5160
5162
  defaultTagName: "div",
5161
5163
  props: _mergeprops.mergeProps.call(void 0,
5162
5164
  {
5163
- className: _chunkIZKIM7U5js.cn.call(void 0,
5165
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
5164
5166
  "text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-md px-2 text-xs transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 flex shrink-0 items-center outline-hidden [&>svg]:shrink-0",
5165
5167
  className
5166
5168
  )
@@ -5184,7 +5186,7 @@ function SidebarGroupAction({
5184
5186
  defaultTagName: "button",
5185
5187
  props: _mergeprops.mergeProps.call(void 0,
5186
5188
  {
5187
- className: _chunkIZKIM7U5js.cn.call(void 0,
5189
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
5188
5190
  "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 w-5 rounded-md p-0 focus-visible:ring-2 [&>svg]:size-4 flex aspect-square items-center justify-center outline-hidden transition-transform [&>svg]:shrink-0 after:absolute after:-inset-2 md:after:hidden group-data-[collapsible=icon]:hidden",
5189
5191
  className
5190
5192
  )
@@ -5208,7 +5210,7 @@ function SidebarGroupContent({
5208
5210
  {
5209
5211
  "data-slot": "sidebar-group-content",
5210
5212
  "data-sidebar": "group-content",
5211
- className: _chunkIZKIM7U5js.cn.call(void 0, "text-xs w-full", className),
5213
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-xs w-full", className),
5212
5214
  ...props
5213
5215
  }
5214
5216
  );
@@ -5220,7 +5222,7 @@ function SidebarMenu({ className, ...props }) {
5220
5222
  {
5221
5223
  "data-slot": "sidebar-menu",
5222
5224
  "data-sidebar": "menu",
5223
- className: _chunkIZKIM7U5js.cn.call(void 0, "gap-px flex w-full min-w-0 flex-col", className),
5225
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "gap-px flex w-full min-w-0 flex-col", className),
5224
5226
  ...props
5225
5227
  }
5226
5228
  );
@@ -5232,7 +5234,7 @@ function SidebarMenuItem({ className, ...props }) {
5232
5234
  {
5233
5235
  "data-slot": "sidebar-menu-item",
5234
5236
  "data-sidebar": "menu-item",
5235
- className: _chunkIZKIM7U5js.cn.call(void 0, "group/menu-item relative", className),
5237
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "group/menu-item relative", className),
5236
5238
  ...props
5237
5239
  }
5238
5240
  );
@@ -5272,7 +5274,7 @@ function SidebarMenuButton({
5272
5274
  defaultTagName: "button",
5273
5275
  props: _mergeprops.mergeProps.call(void 0,
5274
5276
  {
5275
- className: _chunkIZKIM7U5js.cn.call(void 0, sidebarMenuButtonVariants({ variant, size }), className)
5277
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, sidebarMenuButtonVariants({ variant, size }), className)
5276
5278
  },
5277
5279
  props
5278
5280
  ),
@@ -5316,7 +5318,7 @@ function SidebarMenuAction({
5316
5318
  defaultTagName: "button",
5317
5319
  props: _mergeprops.mergeProps.call(void 0,
5318
5320
  {
5319
- className: _chunkIZKIM7U5js.cn.call(void 0,
5321
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
5320
5322
  "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 aspect-square w-5 rounded-[calc(var(--radius-sm)-2px)] p-0 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 focus-visible:ring-2 [&>svg]:size-4 flex items-center justify-center outline-hidden transition-transform group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 md:after:hidden [&>svg]:shrink-0",
5321
5323
  showOnHover && "peer-data-active/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-open:opacity-100 md:opacity-0",
5322
5324
  className
@@ -5341,7 +5343,7 @@ function SidebarMenuBadge({
5341
5343
  {
5342
5344
  "data-slot": "sidebar-menu-badge",
5343
5345
  "data-sidebar": "menu-badge",
5344
- className: _chunkIZKIM7U5js.cn.call(void 0,
5346
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
5345
5347
  "text-sidebar-foreground peer-hover/menu-button:text-sidebar-accent-foreground peer-data-active/menu-button:text-sidebar-accent-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 rounded-[calc(var(--radius-sm)-2px)] px-1 text-xs font-medium peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 flex items-center justify-center tabular-nums select-none group-data-[collapsible=icon]:hidden",
5346
5348
  className
5347
5349
  ),
@@ -5363,7 +5365,7 @@ function SidebarMenuSkeleton({
5363
5365
  {
5364
5366
  "data-slot": "sidebar-menu-skeleton",
5365
5367
  "data-sidebar": "menu-skeleton",
5366
- className: _chunkIZKIM7U5js.cn.call(void 0, "h-8 gap-2 rounded-md px-2 flex items-center", className),
5368
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "h-8 gap-2 rounded-md px-2 flex items-center", className),
5367
5369
  ...props,
5368
5370
  children: [
5369
5371
  showIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -5394,7 +5396,7 @@ function SidebarMenuSub({ className, ...props }) {
5394
5396
  {
5395
5397
  "data-slot": "sidebar-menu-sub",
5396
5398
  "data-sidebar": "menu-sub",
5397
- className: _chunkIZKIM7U5js.cn.call(void 0, "border-sidebar-border mx-3.5 translate-x-px gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden flex min-w-0 flex-col", className),
5399
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "border-sidebar-border mx-3.5 translate-x-px gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden flex min-w-0 flex-col", className),
5398
5400
  ...props
5399
5401
  }
5400
5402
  );
@@ -5409,7 +5411,7 @@ function SidebarMenuSubItem({
5409
5411
  {
5410
5412
  "data-slot": "sidebar-menu-sub-item",
5411
5413
  "data-sidebar": "menu-sub-item",
5412
- className: _chunkIZKIM7U5js.cn.call(void 0, "group/menu-sub-item relative", className),
5414
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "group/menu-sub-item relative", className),
5413
5415
  ...props
5414
5416
  }
5415
5417
  );
@@ -5426,7 +5428,7 @@ function SidebarMenuSubButton({
5426
5428
  defaultTagName: "a",
5427
5429
  props: _mergeprops.mergeProps.call(void 0,
5428
5430
  {
5429
- className: _chunkIZKIM7U5js.cn.call(void 0,
5431
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
5430
5432
  "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground h-7 gap-2 rounded-md px-2 focus-visible:ring-2 data-[size=md]:text-xs data-[size=sm]:text-xs [&>svg]:size-4 flex min-w-0 -translate-x-px items-center overflow-hidden outline-hidden group-data-[collapsible=icon]:hidden disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:shrink-0",
5431
5433
  className
5432
5434
  )
@@ -5474,7 +5476,7 @@ function Slider({
5474
5476
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
5475
5477
  _slider.Slider.Control,
5476
5478
  {
5477
- className: _chunkIZKIM7U5js.cn.call(void 0,
5479
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
5478
5480
  "data-vertical:min-h-40 relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-vertical:h-full data-vertical:w-auto data-vertical:flex-col",
5479
5481
  className
5480
5482
  ),
@@ -5558,7 +5560,7 @@ function Switch({
5558
5560
  {
5559
5561
  "data-slot": "switch",
5560
5562
  "data-size": size,
5561
- className: _chunkIZKIM7U5js.cn.call(void 0,
5563
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
5562
5564
  "data-checked:bg-primary data-unchecked:bg-input focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 dark:data-unchecked:bg-input/80 shrink-0 rounded-full border border-transparent focus-visible:ring-[2px] aria-invalid:ring-[2px] data-[size=default]:h-[16.6px] data-[size=default]:w-[28px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] peer group/switch relative inline-flex items-center transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 data-disabled:cursor-not-allowed data-disabled:opacity-50",
5563
5565
  className
5564
5566
  ),
@@ -5567,7 +5569,7 @@ function Switch({
5567
5569
  _switch.Switch.Thumb,
5568
5570
  {
5569
5571
  "data-slot": "switch-thumb",
5570
- className: _chunkIZKIM7U5js.cn.call(void 0,
5572
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
5571
5573
  "bg-background dark:data-unchecked:bg-foreground dark:data-checked:bg-primary-foreground rounded-full group-data-[size=default]/switch:size-3.5 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0 pointer-events-none block ring-0 transition-transform",
5572
5574
  children && "flex items-center justify-center"
5573
5575
  ),
@@ -5582,15 +5584,15 @@ _chunk7QVYU63Ejs.__name.call(void 0, Switch, "Switch");
5582
5584
  // src/shadcnui/ui/table.tsx
5583
5585
 
5584
5586
  function Table({ className, ...props }) {
5585
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "table-container", className: "relative w-full overflow-x-clip", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "table", { "data-slot": "table", className: _chunkIZKIM7U5js.cn.call(void 0, "w-full caption-bottom text-xs", className), ...props }) });
5587
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "table-container", className: "relative w-full overflow-x-clip", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "table", { "data-slot": "table", className: _chunkNNCTRU4Ojs.cn.call(void 0, "w-full caption-bottom text-xs", className), ...props }) });
5586
5588
  }
5587
5589
  _chunk7QVYU63Ejs.__name.call(void 0, Table, "Table");
5588
5590
  function TableHeader({ className, ...props }) {
5589
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { "data-slot": "table-header", className: _chunkIZKIM7U5js.cn.call(void 0, "[&_tr]:border-b", className), ...props });
5591
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { "data-slot": "table-header", className: _chunkNNCTRU4Ojs.cn.call(void 0, "[&_tr]:border-b", className), ...props });
5590
5592
  }
5591
5593
  _chunk7QVYU63Ejs.__name.call(void 0, TableHeader, "TableHeader");
5592
5594
  function TableBody({ className, ...props }) {
5593
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { "data-slot": "table-body", className: _chunkIZKIM7U5js.cn.call(void 0, "[&_tr:last-child]:border-0", className), ...props });
5595
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { "data-slot": "table-body", className: _chunkNNCTRU4Ojs.cn.call(void 0, "[&_tr:last-child]:border-0", className), ...props });
5594
5596
  }
5595
5597
  _chunk7QVYU63Ejs.__name.call(void 0, TableBody, "TableBody");
5596
5598
  function TableFooter({ className, ...props }) {
@@ -5598,7 +5600,7 @@ function TableFooter({ className, ...props }) {
5598
5600
  "tfoot",
5599
5601
  {
5600
5602
  "data-slot": "table-footer",
5601
- className: _chunkIZKIM7U5js.cn.call(void 0, "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", className),
5603
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", className),
5602
5604
  ...props
5603
5605
  }
5604
5606
  );
@@ -5609,7 +5611,7 @@ function TableRow({ className, ...props }) {
5609
5611
  "tr",
5610
5612
  {
5611
5613
  "data-slot": "table-row",
5612
- className: _chunkIZKIM7U5js.cn.call(void 0, "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", className),
5614
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", className),
5613
5615
  ...props
5614
5616
  }
5615
5617
  );
@@ -5620,7 +5622,7 @@ function TableHead({ className, ...props }) {
5620
5622
  "th",
5621
5623
  {
5622
5624
  "data-slot": "table-head",
5623
- className: _chunkIZKIM7U5js.cn.call(void 0,
5625
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
5624
5626
  "text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0",
5625
5627
  className
5626
5628
  ),
@@ -5634,14 +5636,14 @@ function TableCell({ className, ...props }) {
5634
5636
  "td",
5635
5637
  {
5636
5638
  "data-slot": "table-cell",
5637
- className: _chunkIZKIM7U5js.cn.call(void 0, "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0", className),
5639
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0", className),
5638
5640
  ...props
5639
5641
  }
5640
5642
  );
5641
5643
  }
5642
5644
  _chunk7QVYU63Ejs.__name.call(void 0, TableCell, "TableCell");
5643
5645
  function TableCaption({ className, ...props }) {
5644
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "caption", { "data-slot": "table-caption", className: _chunkIZKIM7U5js.cn.call(void 0, "text-muted-foreground mt-4 text-xs", className), ...props });
5646
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "caption", { "data-slot": "table-caption", className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-muted-foreground mt-4 text-xs", className), ...props });
5645
5647
  }
5646
5648
  _chunk7QVYU63Ejs.__name.call(void 0, TableCaption, "TableCaption");
5647
5649
 
@@ -5659,7 +5661,7 @@ function Tabs({
5659
5661
  {
5660
5662
  "data-slot": "tabs",
5661
5663
  "data-orientation": orientation,
5662
- className: _chunkIZKIM7U5js.cn.call(void 0,
5664
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
5663
5665
  "gap-2 group/tabs flex data-[orientation=horizontal]:flex-col",
5664
5666
  className
5665
5667
  ),
@@ -5692,7 +5694,7 @@ function TabsList({
5692
5694
  {
5693
5695
  "data-slot": "tabs-list",
5694
5696
  "data-variant": variant,
5695
- className: _chunkIZKIM7U5js.cn.call(void 0, tabsListVariants({ variant }), className),
5697
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, tabsListVariants({ variant }), className),
5696
5698
  ...props
5697
5699
  }
5698
5700
  );
@@ -5703,7 +5705,7 @@ function TabsTrigger({ className, ...props }) {
5703
5705
  _tabs.Tabs.Tab,
5704
5706
  {
5705
5707
  "data-slot": "tabs-trigger",
5706
- className: _chunkIZKIM7U5js.cn.call(void 0,
5708
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
5707
5709
  "gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-xs font-medium group-data-vertical/tabs:py-[calc(--spacing(1.25))] [&_svg:not([class*='size-'])]:size-3.5 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center whitespace-nowrap transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
5708
5710
  "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent",
5709
5711
  "data-active:bg-background dark:data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 data-active:text-foreground",
@@ -5720,7 +5722,7 @@ function TabsContent({ className, ...props }) {
5720
5722
  _tabs.Tabs.Panel,
5721
5723
  {
5722
5724
  "data-slot": "tabs-content",
5723
- className: _chunkIZKIM7U5js.cn.call(void 0, "text-xs/relaxed flex-1 outline-none", className),
5725
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "text-xs/relaxed flex-1 outline-none", className),
5724
5726
  ...props
5725
5727
  }
5726
5728
  );
@@ -5761,7 +5763,7 @@ function Toggle({
5761
5763
  _toggle.Toggle,
5762
5764
  {
5763
5765
  "data-slot": "toggle",
5764
- className: _chunkIZKIM7U5js.cn.call(void 0, toggleVariants({ variant, size, className })),
5766
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, toggleVariants({ variant, size, className })),
5765
5767
  ...props
5766
5768
  }
5767
5769
  );
@@ -5807,14 +5809,14 @@ var coordinateGetter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (eve
5807
5809
  if (!active || !collisionRect) return;
5808
5810
  const filteredContainers = [];
5809
5811
  for (const entry of droppableContainers.getEnabled()) {
5810
- if (!entry || _optionalChain([entry, 'optionalAccess', _97 => _97.disabled])) return;
5812
+ if (!entry || _optionalChain([entry, 'optionalAccess', _98 => _98.disabled])) return;
5811
5813
  const rect = droppableRects.get(entry.id);
5812
5814
  if (!rect) return;
5813
5815
  const data = entry.data.current;
5814
5816
  if (data) {
5815
5817
  const { type, children } = data;
5816
- if (type === "container" && _optionalChain([children, 'optionalAccess', _98 => _98.length]) > 0) {
5817
- if (_optionalChain([active, 'access', _99 => _99.data, 'access', _100 => _100.current, 'optionalAccess', _101 => _101.type]) !== "container") {
5818
+ if (type === "container" && _optionalChain([children, 'optionalAccess', _99 => _99.length]) > 0) {
5819
+ if (_optionalChain([active, 'access', _100 => _100.data, 'access', _101 => _101.current, 'optionalAccess', _102 => _102.type]) !== "container") {
5818
5820
  return;
5819
5821
  }
5820
5822
  }
@@ -5852,8 +5854,8 @@ var coordinateGetter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (eve
5852
5854
  const closestId = _core.getFirstCollision.call(void 0, collisions, "id");
5853
5855
  if (closestId != null) {
5854
5856
  const newDroppable = droppableContainers.get(closestId);
5855
- const newNode = _optionalChain([newDroppable, 'optionalAccess', _102 => _102.node, 'access', _103 => _103.current]);
5856
- const newRect = _optionalChain([newDroppable, 'optionalAccess', _104 => _104.rect, 'access', _105 => _105.current]);
5857
+ const newNode = _optionalChain([newDroppable, 'optionalAccess', _103 => _103.node, 'access', _104 => _104.current]);
5858
+ const newRect = _optionalChain([newDroppable, 'optionalAccess', _105 => _105.rect, 'access', _106 => _106.current]);
5857
5859
  if (newNode && newRect) {
5858
5860
  if (newDroppable.id === "placeholder") {
5859
5861
  return {
@@ -5861,7 +5863,7 @@ var coordinateGetter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (eve
5861
5863
  y: newRect.top + (newRect.height - collisionRect.height) / 2
5862
5864
  };
5863
5865
  }
5864
- if (_optionalChain([newDroppable, 'access', _106 => _106.data, 'access', _107 => _107.current, 'optionalAccess', _108 => _108.type]) === "container") {
5866
+ if (_optionalChain([newDroppable, 'access', _107 => _107.data, 'access', _108 => _108.current, 'optionalAccess', _109 => _109.type]) === "container") {
5865
5867
  return {
5866
5868
  x: newRect.left + 20,
5867
5869
  y: newRect.top + 74
@@ -5965,7 +5967,7 @@ function KanbanRoot(props) {
5965
5967
  )
5966
5968
  });
5967
5969
  if (closestItem.length > 0) {
5968
- overId = _nullishCoalesce(_optionalChain([closestItem, 'access', _109 => _109[0], 'optionalAccess', _110 => _110.id]), () => ( overId));
5970
+ overId = _nullishCoalesce(_optionalChain([closestItem, 'access', _110 => _110[0], 'optionalAccess', _111 => _111.id]), () => ( overId));
5969
5971
  }
5970
5972
  }
5971
5973
  }
@@ -5976,7 +5978,7 @@ function KanbanRoot(props) {
5976
5978
  );
5977
5979
  const onDragStart = React9.useCallback(
5978
5980
  (event) => {
5979
- _optionalChain([kanbanProps, 'access', _111 => _111.onDragStart, 'optionalCall', _112 => _112(event)]);
5981
+ _optionalChain([kanbanProps, 'access', _112 => _112.onDragStart, 'optionalCall', _113 => _113(event)]);
5980
5982
  if (event.activatorEvent.defaultPrevented) return;
5981
5983
  setActiveId(event.active.id);
5982
5984
  },
@@ -5984,7 +5986,7 @@ function KanbanRoot(props) {
5984
5986
  );
5985
5987
  const onDragOver = React9.useCallback(
5986
5988
  (event) => {
5987
- _optionalChain([kanbanProps, 'access', _113 => _113.onDragOver, 'optionalCall', _114 => _114(event)]);
5989
+ _optionalChain([kanbanProps, 'access', _114 => _114.onDragOver, 'optionalCall', _115 => _115(event)]);
5988
5990
  if (event.activatorEvent.defaultPrevented) return;
5989
5991
  const { active, over } = event;
5990
5992
  if (!over) return;
@@ -5999,7 +6001,7 @@ function KanbanRoot(props) {
5999
6001
  if (activeIndex !== overIndex) {
6000
6002
  const newColumns = { ...value };
6001
6003
  newColumns[activeColumn] = _sortable.arrayMove.call(void 0, items, activeIndex, overIndex);
6002
- _optionalChain([onValueChange, 'optionalCall', _115 => _115(newColumns)]);
6004
+ _optionalChain([onValueChange, 'optionalCall', _116 => _116(newColumns)]);
6003
6005
  }
6004
6006
  } else {
6005
6007
  const activeItems = value[activeColumn];
@@ -6014,7 +6016,7 @@ function KanbanRoot(props) {
6014
6016
  [activeColumn]: activeItems.filter((item) => getItemValue(item) !== active.id),
6015
6017
  [overColumn]: [...overItems, activeItem]
6016
6018
  };
6017
- _optionalChain([onValueChange, 'optionalCall', _116 => _116(updatedItems)]);
6019
+ _optionalChain([onValueChange, 'optionalCall', _117 => _117(updatedItems)]);
6018
6020
  hasMovedRef.current = true;
6019
6021
  }
6020
6022
  },
@@ -6022,7 +6024,7 @@ function KanbanRoot(props) {
6022
6024
  );
6023
6025
  const onDragEnd = React9.useCallback(
6024
6026
  (event) => {
6025
- _optionalChain([kanbanProps, 'access', _117 => _117.onDragEnd, 'optionalCall', _118 => _118(event)]);
6027
+ _optionalChain([kanbanProps, 'access', _118 => _118.onDragEnd, 'optionalCall', _119 => _119(event)]);
6026
6028
  if (event.activatorEvent.defaultPrevented) return;
6027
6029
  const { active, over } = event;
6028
6030
  if (!over) {
@@ -6045,7 +6047,7 @@ function KanbanRoot(props) {
6045
6047
  if (onMove) {
6046
6048
  onMove({ ...event, activeIndex, overIndex });
6047
6049
  } else {
6048
- _optionalChain([onValueChange, 'optionalCall', _119 => _119(newColumns)]);
6050
+ _optionalChain([onValueChange, 'optionalCall', _120 => _120(newColumns)]);
6049
6051
  }
6050
6052
  }
6051
6053
  } else {
@@ -6073,7 +6075,7 @@ function KanbanRoot(props) {
6073
6075
  overIndex
6074
6076
  });
6075
6077
  } else {
6076
- _optionalChain([onValueChange, 'optionalCall', _120 => _120(newColumns)]);
6078
+ _optionalChain([onValueChange, 'optionalCall', _121 => _121(newColumns)]);
6077
6079
  }
6078
6080
  }
6079
6081
  }
@@ -6085,7 +6087,7 @@ function KanbanRoot(props) {
6085
6087
  );
6086
6088
  const onDragCancel = React9.useCallback(
6087
6089
  (event) => {
6088
- _optionalChain([kanbanProps, 'access', _121 => _121.onDragCancel, 'optionalCall', _122 => _122(event)]);
6090
+ _optionalChain([kanbanProps, 'access', _122 => _122.onDragCancel, 'optionalCall', _123 => _123(event)]);
6089
6091
  if (event.activatorEvent.defaultPrevented) return;
6090
6092
  setActiveId(null);
6091
6093
  hasMovedRef.current = false;
@@ -6104,7 +6106,7 @@ function KanbanRoot(props) {
6104
6106
  })();
6105
6107
  const total = isColumn ? Object.keys(value).length : (() => {
6106
6108
  const column = getColumn(active.id);
6107
- return column ? _nullishCoalesce(_optionalChain([value, 'access', _123 => _123[column], 'optionalAccess', _124 => _124.length]), () => ( 0)) : 0;
6109
+ return column ? _nullishCoalesce(_optionalChain([value, 'access', _124 => _124[column], 'optionalAccess', _125 => _125.length]), () => ( 0)) : 0;
6108
6110
  })();
6109
6111
  return `Picked up ${itemType} at position ${position} of ${total}`;
6110
6112
  },
@@ -6119,7 +6121,7 @@ function KanbanRoot(props) {
6119
6121
  })();
6120
6122
  const total = isColumn ? Object.keys(value).length : (() => {
6121
6123
  const column = getColumn(over.id);
6122
- return column ? _nullishCoalesce(_optionalChain([value, 'access', _125 => _125[column], 'optionalAccess', _126 => _126.length]), () => ( 0)) : 0;
6124
+ return column ? _nullishCoalesce(_optionalChain([value, 'access', _126 => _126[column], 'optionalAccess', _127 => _127.length]), () => ( 0)) : 0;
6123
6125
  })();
6124
6126
  const overColumn = getColumn(over.id);
6125
6127
  const activeColumn = getColumn(active.id);
@@ -6142,7 +6144,7 @@ function KanbanRoot(props) {
6142
6144
  })();
6143
6145
  const total = isColumn ? Object.keys(value).length : (() => {
6144
6146
  const column = getColumn(over.id);
6145
- return column ? _nullishCoalesce(_optionalChain([value, 'access', _127 => _127[column], 'optionalAccess', _128 => _128.length]), () => ( 0)) : 0;
6147
+ return column ? _nullishCoalesce(_optionalChain([value, 'access', _128 => _128[column], 'optionalAccess', _129 => _129.length]), () => ( 0)) : 0;
6146
6148
  })();
6147
6149
  const overColumn = getColumn(over.id);
6148
6150
  const activeColumn = getColumn(active.id);
@@ -6230,7 +6232,7 @@ var KanbanBoard = React9.forwardRef((props, forwardedRef) => {
6230
6232
  "data-slot": "kanban-board",
6231
6233
  ...boardProps,
6232
6234
  ref: forwardedRef,
6233
- className: _chunkIZKIM7U5js.cn.call(void 0,
6235
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
6234
6236
  "flex size-full gap-4",
6235
6237
  context.orientation === "horizontal" ? "flex-row" : "flex-col",
6236
6238
  className
@@ -6269,7 +6271,7 @@ var KanbanColumn = React9.forwardRef((props, forwardedRef) => {
6269
6271
  disabled,
6270
6272
  animateLayoutChanges
6271
6273
  });
6272
- const composedRef = _chunkIZKIM7U5js.useComposedRefs.call(void 0, forwardedRef, (node) => {
6274
+ const composedRef = _chunkNNCTRU4Ojs.useComposedRefs.call(void 0, forwardedRef, (node) => {
6273
6275
  if (disabled) return;
6274
6276
  setNodeRef(node);
6275
6277
  });
@@ -6313,7 +6315,7 @@ var KanbanColumn = React9.forwardRef((props, forwardedRef) => {
6313
6315
  ...asHandle && !disabled ? listeners : {},
6314
6316
  ref: composedRef,
6315
6317
  style: composedStyle,
6316
- className: _chunkIZKIM7U5js.cn.call(void 0,
6318
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
6317
6319
  "flex size-full w-full flex-col gap-2 rounded-lg border bg-zinc-100 p-2.5 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:bg-zinc-900",
6318
6320
  {
6319
6321
  "touch-none select-none": asHandle,
@@ -6336,7 +6338,7 @@ var KanbanColumnHandle = React9.forwardRef((props, forwardedRef) => {
6336
6338
  const context = useKanbanContext(COLUMN_NAME);
6337
6339
  const columnContext = useKanbanColumnContext(COLUMN_HANDLE_NAME);
6338
6340
  const isDisabled = _nullishCoalesce(disabled, () => ( columnContext.disabled));
6339
- const composedRef = _chunkIZKIM7U5js.useComposedRefs.call(void 0, forwardedRef, (node) => {
6341
+ const composedRef = _chunkNNCTRU4Ojs.useComposedRefs.call(void 0, forwardedRef, (node) => {
6340
6342
  if (isDisabled) return;
6341
6343
  columnContext.setActivatorNodeRef(node);
6342
6344
  });
@@ -6353,7 +6355,7 @@ var KanbanColumnHandle = React9.forwardRef((props, forwardedRef) => {
6353
6355
  ...isDisabled ? {} : columnContext.attributes,
6354
6356
  ...isDisabled ? {} : columnContext.listeners,
6355
6357
  ref: composedRef,
6356
- className: _chunkIZKIM7U5js.cn.call(void 0,
6358
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
6357
6359
  "select-none disabled:pointer-events-none disabled:opacity-50",
6358
6360
  context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
6359
6361
  className
@@ -6389,7 +6391,7 @@ var KanbanItem = React9.forwardRef((props, forwardedRef) => {
6389
6391
  if (value === "") {
6390
6392
  throw new Error(`\`${ITEM_NAME}\` value cannot be an empty string`);
6391
6393
  }
6392
- const composedRef = _chunkIZKIM7U5js.useComposedRefs.call(void 0, forwardedRef, (node) => {
6394
+ const composedRef = _chunkNNCTRU4Ojs.useComposedRefs.call(void 0, forwardedRef, (node) => {
6393
6395
  if (disabled) return;
6394
6396
  setNodeRef(node);
6395
6397
  });
@@ -6424,7 +6426,7 @@ var KanbanItem = React9.forwardRef((props, forwardedRef) => {
6424
6426
  ...asHandle && !disabled ? listeners : {},
6425
6427
  ref: composedRef,
6426
6428
  style: composedStyle,
6427
- className: _chunkIZKIM7U5js.cn.call(void 0,
6429
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
6428
6430
  "focus-visible:ring-ring focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden",
6429
6431
  {
6430
6432
  "touch-none select-none": asHandle,
@@ -6445,7 +6447,7 @@ var KanbanItemHandle = React9.forwardRef((props, forwardedRef) => {
6445
6447
  const context = useKanbanContext(ITEM_HANDLE_NAME);
6446
6448
  const itemContext = useKanbanItemContext(ITEM_HANDLE_NAME);
6447
6449
  const isDisabled = _nullishCoalesce(disabled, () => ( itemContext.disabled));
6448
- const composedRef = _chunkIZKIM7U5js.useComposedRefs.call(void 0, forwardedRef, (node) => {
6450
+ const composedRef = _chunkNNCTRU4Ojs.useComposedRefs.call(void 0, forwardedRef, (node) => {
6449
6451
  if (isDisabled) return;
6450
6452
  itemContext.setActivatorNodeRef(node);
6451
6453
  });
@@ -6462,7 +6464,7 @@ var KanbanItemHandle = React9.forwardRef((props, forwardedRef) => {
6462
6464
  ...isDisabled ? {} : itemContext.attributes,
6463
6465
  ...isDisabled ? {} : itemContext.listeners,
6464
6466
  ref: composedRef,
6465
- className: _chunkIZKIM7U5js.cn.call(void 0,
6467
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
6466
6468
  "select-none disabled:pointer-events-none disabled:opacity-50",
6467
6469
  context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
6468
6470
  className
@@ -6488,7 +6490,7 @@ function KanbanOverlay(props) {
6488
6490
  const context = useKanbanContext(OVERLAY_NAME);
6489
6491
  const [mounted, setMounted] = React9.useState(false);
6490
6492
  React9.useLayoutEffect(() => setMounted(true), []);
6491
- const container = _nullishCoalesce(containerProp, () => ( (mounted ? _optionalChain([globalThis, 'access', _129 => _129.document, 'optionalAccess', _130 => _130.body]) : null)));
6493
+ const container = _nullishCoalesce(containerProp, () => ( (mounted ? _optionalChain([globalThis, 'access', _130 => _130.document, 'optionalAccess', _131 => _131.body]) : null)));
6492
6494
  if (!container) return null;
6493
6495
  const variant = context.activeId && context.activeId in context.items ? "column" : "item";
6494
6496
  return ReactDOM.createPortal(
@@ -6497,7 +6499,7 @@ function KanbanOverlay(props) {
6497
6499
  {
6498
6500
  dropAnimation,
6499
6501
  modifiers: context.modifiers,
6500
- className: _chunkIZKIM7U5js.cn.call(void 0, !context.flatCursor && "cursor-grabbing"),
6502
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, !context.flatCursor && "cursor-grabbing"),
6501
6503
  ...overlayProps,
6502
6504
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, KanbanOverlayContext.Provider, { value: true, children: context.activeId && children ? typeof children === "function" ? children({
6503
6505
  value: context.activeId,
@@ -6515,7 +6517,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, KanbanOverlay, "KanbanOverlay");
6515
6517
 
6516
6518
  var Link = React10.forwardRef(({ className, href, children, ...props }, ref) => {
6517
6519
  const NextIntlLink = _chunk2PHWAL6Qjs.getI18nLink.call(void 0, );
6518
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NextIntlLink, { prefetch: false, ref, href, className: _chunkIZKIM7U5js.cn.call(void 0, `font-medium`, className), ...props, children });
6520
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NextIntlLink, { prefetch: false, ref, href, className: _chunkNNCTRU4Ojs.cn.call(void 0, `font-medium`, className), ...props, children });
6519
6521
  });
6520
6522
  Link.displayName = "Link";
6521
6523
 
@@ -6612,7 +6614,7 @@ var MultiSelect = React11.forwardRef(
6612
6614
  {
6613
6615
  ...props,
6614
6616
  onClick: handleTogglePopover,
6615
- className: _chunkIZKIM7U5js.cn.call(void 0,
6617
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
6616
6618
  "flex h-auto min-h-10 w-full items-center justify-between rounded-md border bg-inherit p-1 hover:bg-inherit [&_svg]:pointer-events-auto",
6617
6619
  className
6618
6620
  ),
@@ -6620,15 +6622,15 @@ var MultiSelect = React11.forwardRef(
6620
6622
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-wrap items-center", children: [
6621
6623
  selectedValues.slice(0, maxCount).map((value2) => {
6622
6624
  const option = options.find((o) => o.value === value2);
6623
- const IconComponent = _optionalChain([option, 'optionalAccess', _131 => _131.icon]);
6625
+ const IconComponent = _optionalChain([option, 'optionalAccess', _132 => _132.icon]);
6624
6626
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
6625
6627
  Badge,
6626
6628
  {
6627
- className: _chunkIZKIM7U5js.cn.call(void 0, isAnimating ? "animate-bounce" : "", multiSelectVariants({ variant })),
6629
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, isAnimating ? "animate-bounce" : "", multiSelectVariants({ variant })),
6628
6630
  style: { animationDuration: `${animation}s` },
6629
6631
  children: [
6630
6632
  IconComponent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: "mr-2 h-4 w-4" }),
6631
- _optionalChain([option, 'optionalAccess', _132 => _132.label]),
6633
+ _optionalChain([option, 'optionalAccess', _133 => _133.label]),
6632
6634
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6633
6635
  _lucidereact.XCircle,
6634
6636
  {
@@ -6647,7 +6649,7 @@ var MultiSelect = React11.forwardRef(
6647
6649
  selectedValues.length > maxCount && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
6648
6650
  Badge,
6649
6651
  {
6650
- className: _chunkIZKIM7U5js.cn.call(void 0,
6652
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
6651
6653
  "text-foreground border-foreground/1 bg-transparent hover:bg-transparent",
6652
6654
  isAnimating ? "animate-bounce" : "",
6653
6655
  multiSelectVariants({ variant })
@@ -6711,7 +6713,7 @@ var MultiSelect = React11.forwardRef(
6711
6713
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6712
6714
  "div",
6713
6715
  {
6714
- className: _chunkIZKIM7U5js.cn.call(void 0,
6716
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
6715
6717
  "border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
6716
6718
  selectedValues.length === options.length ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
6717
6719
  ),
@@ -6734,7 +6736,7 @@ var MultiSelect = React11.forwardRef(
6734
6736
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6735
6737
  "div",
6736
6738
  {
6737
- className: _chunkIZKIM7U5js.cn.call(void 0,
6739
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
6738
6740
  "border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
6739
6741
  isSelected ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
6740
6742
  ),
@@ -6769,7 +6771,7 @@ var MultiSelect = React11.forwardRef(
6769
6771
  animation > 0 && selectedValues.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6770
6772
  _lucidereact.WandSparkles,
6771
6773
  {
6772
- className: _chunkIZKIM7U5js.cn.call(void 0,
6774
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
6773
6775
  "text-foreground bg-background my-2 h-3 w-3 cursor-pointer",
6774
6776
  isAnimating ? "" : "text-muted-foreground"
6775
6777
  ),
@@ -6808,10 +6810,10 @@ function UserAvatarEditor({ user, file, setFile, resetImage, setResetImage }) {
6808
6810
  onValueChange: setFiles,
6809
6811
  dropzoneOptions: dropzone2,
6810
6812
  className: "h-40 w-40 rounded-full p-0",
6811
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "bg-muted text-muted-foreground flex h-full w-full flex-col items-center justify-center", children: !resetImage && (file || _optionalChain([user, 'optionalAccess', _133 => _133.avatar])) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6813
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "bg-muted text-muted-foreground flex h-full w-full flex-col items-center justify-center", children: !resetImage && (file || _optionalChain([user, 'optionalAccess', _134 => _134.avatar])) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6812
6814
  _image2.default,
6813
6815
  {
6814
- src: file ? URL.createObjectURL(file) : _optionalChain([user, 'optionalAccess', _134 => _134.avatar]) || "",
6816
+ src: file ? URL.createObjectURL(file) : _optionalChain([user, 'optionalAccess', _135 => _135.avatar]) || "",
6815
6817
  alt: t(`common.avatar`),
6816
6818
  width: 200,
6817
6819
  height: 200
@@ -6819,7 +6821,7 @@ function UserAvatarEditor({ user, file, setFile, resetImage, setResetImage }) {
6819
6821
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.UploadIcon, { className: "my-4 h-8 w-8" }) })
6820
6822
  }
6821
6823
  ),
6822
- !resetImage && (file || _optionalChain([user, 'optionalAccess', _135 => _135.avatar])) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6824
+ !resetImage && (file || _optionalChain([user, 'optionalAccess', _136 => _136.avatar])) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6823
6825
  Button,
6824
6826
  {
6825
6827
  className: "",
@@ -6847,7 +6849,7 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
6847
6849
  const router = _chunk2PHWAL6Qjs.useI18nRouter.call(void 0, );
6848
6850
  const t = _nextintl.useTranslations.call(void 0, );
6849
6851
  let cId;
6850
- if (_optionalChain([currentUser, 'optionalAccess', _136 => _136.roles, 'access', _137 => _137.find, 'call', _138 => _138((role) => role.id === _chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator)]) && companyId) {
6852
+ if (_optionalChain([currentUser, 'optionalAccess', _137 => _137.roles, 'access', _138 => _138.find, 'call', _139 => _139((role) => role.id === _chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator)]) && companyId) {
6851
6853
  cId = companyId;
6852
6854
  } else {
6853
6855
  if (!company) return;
@@ -6857,8 +6859,8 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
6857
6859
  CommonDeleter,
6858
6860
  {
6859
6861
  type: `users`,
6860
- deleteFunction: () => _chunkIZKIM7U5js.UserService.delete({ userId: user.id, companyId: cId }).then(
6861
- () => onDeleted ? onDeleted() : router.push(generateUrl({ page: _chunkIZKIM7U5js.Modules.User }))
6862
+ deleteFunction: () => _chunkNNCTRU4Ojs.UserService.delete({ userId: user.id, companyId: cId }).then(
6863
+ () => onDeleted ? onDeleted() : router.push(generateUrl({ page: _chunkNNCTRU4Ojs.Modules.User }))
6862
6864
  )
6863
6865
  }
6864
6866
  );
@@ -6866,7 +6868,7 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
6866
6868
  _chunk7QVYU63Ejs.__name.call(void 0, UserDeleterInternal, "UserDeleterInternal");
6867
6869
  function UserDeleter(props) {
6868
6870
  const { hasPermissionToModule } = useCurrentUserContext();
6869
- if (!hasPermissionToModule({ module: _chunkIZKIM7U5js.Modules.User, action: "delete" /* Delete */, data: props.user })) return null;
6871
+ if (!hasPermissionToModule({ module: _chunkNNCTRU4Ojs.Modules.User, action: "delete" /* Delete */, data: props.user })) return null;
6870
6872
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserDeleterInternal, { ...props });
6871
6873
  }
6872
6874
  _chunk7QVYU63Ejs.__name.call(void 0, UserDeleter, "UserDeleter");
@@ -6915,22 +6917,22 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
6915
6917
  const form = _reacthookform.useForm.call(void 0, {
6916
6918
  resolver: _zod.zodResolver.call(void 0, formSchema),
6917
6919
  defaultValues: {
6918
- id: _optionalChain([user, 'optionalAccess', _139 => _139.id]) || _uuid.v4.call(void 0, ),
6919
- name: _optionalChain([user, 'optionalAccess', _140 => _140.name]) || "",
6920
- title: _optionalChain([user, 'optionalAccess', _141 => _141.title]) || "",
6921
- bio: _optionalChain([user, 'optionalAccess', _142 => _142.bio]) || "",
6922
- email: _optionalChain([user, 'optionalAccess', _143 => _143.email]) || "",
6923
- phone: _optionalChain([user, 'optionalAccess', _144 => _144.phone]) || "",
6920
+ id: _optionalChain([user, 'optionalAccess', _140 => _140.id]) || _uuid.v4.call(void 0, ),
6921
+ name: _optionalChain([user, 'optionalAccess', _141 => _141.name]) || "",
6922
+ title: _optionalChain([user, 'optionalAccess', _142 => _142.title]) || "",
6923
+ bio: _optionalChain([user, 'optionalAccess', _143 => _143.bio]) || "",
6924
+ email: _optionalChain([user, 'optionalAccess', _144 => _144.email]) || "",
6925
+ phone: _optionalChain([user, 'optionalAccess', _145 => _145.phone]) || "",
6924
6926
  password: "",
6925
- roleIds: _optionalChain([user, 'optionalAccess', _145 => _145.roles, 'access', _146 => _146.map, 'call', _147 => _147((role) => role.id)]) || [],
6927
+ roleIds: _optionalChain([user, 'optionalAccess', _146 => _146.roles, 'access', _147 => _147.map, 'call', _148 => _148((role) => role.id)]) || [],
6926
6928
  sendInvitationEmail: false,
6927
- avatar: _optionalChain([user, 'optionalAccess', _148 => _148.avatarUrl]) || ""
6929
+ avatar: _optionalChain([user, 'optionalAccess', _149 => _149.avatarUrl]) || ""
6928
6930
  }
6929
6931
  });
6930
6932
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
6931
6933
  if (!user) {
6932
6934
  try {
6933
- const existingUser = await _chunkIZKIM7U5js.UserService.findByEmail({ email: values.email });
6935
+ const existingUser = await _chunkNNCTRU4Ojs.UserService.findByEmail({ email: values.email });
6934
6936
  if (existingUser) {
6935
6937
  form.setError("email", {
6936
6938
  type: "manual",
@@ -6943,7 +6945,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
6943
6945
  }
6944
6946
  }
6945
6947
  if (values.avatar && contentType) {
6946
- const s3 = await _chunkIZKIM7U5js.S3Service.getPreSignedUrl({
6948
+ const s3 = await _chunkNNCTRU4Ojs.S3Service.getPreSignedUrl({
6947
6949
  key: values.avatar,
6948
6950
  contentType,
6949
6951
  isPublic: true
@@ -6969,16 +6971,16 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
6969
6971
  adminCreated
6970
6972
  };
6971
6973
  try {
6972
- const updatedUser = user ? await _chunkIZKIM7U5js.UserService.update(payload) : await _chunkIZKIM7U5js.UserService.create(payload);
6973
- if (_optionalChain([currentUser, 'optionalAccess', _149 => _149.id]) === updatedUser.id) setUser(updatedUser);
6974
+ const updatedUser = user ? await _chunkNNCTRU4Ojs.UserService.update(payload) : await _chunkNNCTRU4Ojs.UserService.create(payload);
6975
+ if (_optionalChain([currentUser, 'optionalAccess', _150 => _150.id]) === updatedUser.id) setUser(updatedUser);
6974
6976
  if (onRevalidate) {
6975
- await onRevalidate(generateUrl({ page: _chunkIZKIM7U5js.Modules.User, id: updatedUser.id, language: `[locale]` }));
6977
+ await onRevalidate(generateUrl({ page: _chunkNNCTRU4Ojs.Modules.User, id: updatedUser.id, language: `[locale]` }));
6976
6978
  }
6977
6979
  if (propagateChanges) {
6978
6980
  propagateChanges(updatedUser);
6979
6981
  setOpen(false);
6980
6982
  } else {
6981
- router.push(generateUrl({ page: _chunkIZKIM7U5js.Modules.User, id: updatedUser.id }));
6983
+ router.push(generateUrl({ page: _chunkNNCTRU4Ojs.Modules.User, id: updatedUser.id }));
6982
6984
  }
6983
6985
  } catch (error) {
6984
6986
  errorToast({ title: user ? t(`common.errors.update`) : t(`common.errors.create`), error });
@@ -6986,14 +6988,14 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
6986
6988
  }, "onSubmit");
6987
6989
  _react.useEffect.call(void 0, () => {
6988
6990
  async function fetchRoles() {
6989
- const roles2 = await _chunkIZKIM7U5js.RoleService.findAllRoles({});
6991
+ const roles2 = await _chunkNNCTRU4Ojs.RoleService.findAllRoles({});
6990
6992
  const availableRoles = roles2.filter(
6991
- (role) => role.id !== _chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _150 => _150.features, 'access', _151 => _151.some, 'call', _152 => _152((feature) => feature.id === _optionalChain([role, 'access', _153 => _153.requiredFeature, 'optionalAccess', _154 => _154.id]))]))
6993
+ (role) => role.id !== _chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _151 => _151.features, 'access', _152 => _152.some, 'call', _153 => _153((feature) => feature.id === _optionalChain([role, 'access', _154 => _154.requiredFeature, 'optionalAccess', _155 => _155.id]))]))
6992
6994
  );
6993
6995
  setRoles(availableRoles);
6994
6996
  }
6995
6997
  _chunk7QVYU63Ejs.__name.call(void 0, fetchRoles, "fetchRoles");
6996
- if (open && (company || _optionalChain([currentUser, 'optionalAccess', _155 => _155.roles, 'access', _156 => _156.find, 'call', _157 => _157((role) => role.id === _chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator)])) && roles.length === 0)
6998
+ if (open && (company || _optionalChain([currentUser, 'optionalAccess', _156 => _156.roles, 'access', _157 => _157.find, 'call', _158 => _158((role) => role.id === _chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator)])) && roles.length === 0)
6997
6999
  fetchRoles();
6998
7000
  }, [company, open]);
6999
7001
  _react.useEffect.call(void 0, () => {
@@ -7014,7 +7016,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
7014
7016
  setContentType(null);
7015
7017
  }
7016
7018
  }, [file]);
7017
- const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _158 => _158.id]) === _optionalChain([user, 'optionalAccess', _159 => _159.id]) && hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkIZKIM7U5js.Modules.User, action: "update" /* Update */ }) || hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator));
7019
+ const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _159 => _159.id]) === _optionalChain([user, 'optionalAccess', _160 => _160.id]) && hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkNNCTRU4Ojs.Modules.User, action: "update" /* Update */ }) || hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator));
7018
7020
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
7019
7021
  trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTrigger, { children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!user }),
7020
7022
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -7022,7 +7024,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
7022
7024
  {
7023
7025
  className: `flex max-h-[70vh] ${canChangeRoles ? `max-w-[90vw]` : `max-w-3xl`} min-h-3xl max-h-[90vh] flex-col overflow-y-auto`,
7024
7026
  children: [
7025
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorHeader, { type: t(`entities.users`, { count: 1 }), name: _optionalChain([user, 'optionalAccess', _160 => _160.name]) }),
7027
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorHeader, { type: t(`entities.users`, { count: 1 }), name: _optionalChain([user, 'optionalAccess', _161 => _161.name]) }),
7026
7028
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), className: `flex w-full flex-col gap-y-4`, children: [
7027
7029
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex flex-row gap-x-4`, children: [
7028
7030
  /* @__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,
@@ -7101,10 +7103,10 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
7101
7103
  ] })
7102
7104
  ] }),
7103
7105
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-end gap-x-4", children: [
7104
- user && _optionalChain([currentUser, 'optionalAccess', _161 => _161.roles, 'access', _162 => _162.find, 'call', _163 => _163((role) => role.id === _chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator)]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7106
+ user && _optionalChain([currentUser, 'optionalAccess', _162 => _162.roles, 'access', _163 => _163.find, 'call', _164 => _164((role) => role.id === _chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator)]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7105
7107
  UserDeleter,
7106
7108
  {
7107
- companyId: _optionalChain([user, 'access', _164 => _164.company, 'optionalAccess', _165 => _165.id]),
7109
+ companyId: _optionalChain([user, 'access', _165 => _165.company, 'optionalAccess', _166 => _166.id]),
7108
7110
  user,
7109
7111
  onDeleted: () => {
7110
7112
  setOpen(false);
@@ -7124,7 +7126,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserEditorInternal, "UserEditorInternal");
7124
7126
  function UserEditor(props) {
7125
7127
  const { hasPermissionToModule } = useCurrentUserContext();
7126
7128
  if (!hasPermissionToModule({
7127
- module: _chunkIZKIM7U5js.Modules.User,
7129
+ module: _chunkNNCTRU4Ojs.Modules.User,
7128
7130
  action: props.user ? "update" /* Update */ : "create" /* Create */,
7129
7131
  data: props.user
7130
7132
  }))
@@ -7211,7 +7213,7 @@ function CommonAssociationCommandDialog({
7211
7213
  _chunk7QVYU63Ejs.__name.call(void 0, CommonAssociationCommandDialog, "CommonAssociationCommandDialog");
7212
7214
  var triggerAssociationToast = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
7213
7215
  if (params.level) {
7214
- _chunkIZKIM7U5js.showToast.call(void 0,
7216
+ _chunkNNCTRU4Ojs.showToast.call(void 0,
7215
7217
  params.t(`common.association.label`, {
7216
7218
  source: params.source,
7217
7219
  destination: params.destination
@@ -7227,7 +7229,7 @@ var triggerAssociationToast = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
7227
7229
  }
7228
7230
  );
7229
7231
  } else {
7230
- _chunkIZKIM7U5js.showToast.call(void 0,
7232
+ _chunkNNCTRU4Ojs.showToast.call(void 0,
7231
7233
  params.t(`common.association.label`, {
7232
7234
  source: params.source,
7233
7235
  destination: params.destination
@@ -7279,7 +7281,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ErrorDetails, "ErrorDetails");
7279
7281
 
7280
7282
  // src/components/errors/errorToast.ts
7281
7283
  function errorToast(params) {
7282
- _chunkIZKIM7U5js.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess', _166 => _166.title]), () => ( "Error")), {
7284
+ _chunkNNCTRU4Ojs.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess', _167 => _167.title]), () => ( "Error")), {
7283
7285
  description: params.error instanceof Error ? params.error.message : String(params.error)
7284
7286
  });
7285
7287
  }
@@ -7483,7 +7485,7 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
7483
7485
  }, "handleClear");
7484
7486
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open: isOpen, onOpenChange: setIsOpen, children: [
7485
7487
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { children }),
7486
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className: _chunkIZKIM7U5js.cn.call(void 0, "p-0", className), align, onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "p-3", children: [
7488
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className: _chunkNNCTRU4Ojs.cn.call(void 0, "p-0", className), align, onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "p-3", children: [
7487
7489
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative mb-3", children: [
7488
7490
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7489
7491
  Input,
@@ -7582,7 +7584,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
7582
7584
  const [open, setOpen] = _react.useState.call(void 0, false);
7583
7585
  const [prevRange, setPrevRange] = _react.useState.call(void 0, date);
7584
7586
  _react.useEffect.call(void 0, () => {
7585
- if (_optionalChain([date, 'optionalAccess', _167 => _167.from]) && _optionalChain([date, 'optionalAccess', _168 => _168.to]) && date.to > date.from && (_optionalChain([prevRange, 'optionalAccess', _169 => _169.from, 'optionalAccess', _170 => _170.getTime, 'call', _171 => _171()]) !== date.from.getTime() || _optionalChain([prevRange, 'optionalAccess', _172 => _172.to, 'optionalAccess', _173 => _173.getTime, 'call', _174 => _174()]) !== date.to.getTime())) {
7587
+ if (_optionalChain([date, 'optionalAccess', _168 => _168.from]) && _optionalChain([date, 'optionalAccess', _169 => _169.to]) && date.to > date.from && (_optionalChain([prevRange, 'optionalAccess', _170 => _170.from, 'optionalAccess', _171 => _171.getTime, 'call', _172 => _172()]) !== date.from.getTime() || _optionalChain([prevRange, 'optionalAccess', _173 => _173.to, 'optionalAccess', _174 => _174.getTime, 'call', _175 => _175()]) !== date.to.getTime())) {
7586
7588
  onDateChange(date);
7587
7589
  setPrevRange(date);
7588
7590
  setOpen(false);
@@ -7593,22 +7595,22 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
7593
7595
  setDate(void 0);
7594
7596
  return;
7595
7597
  }
7596
- if (range.from && (!_optionalChain([date, 'optionalAccess', _175 => _175.from]) || range.from.getTime() !== date.from.getTime())) {
7598
+ if (range.from && (!_optionalChain([date, 'optionalAccess', _176 => _176.from]) || range.from.getTime() !== date.from.getTime())) {
7597
7599
  setDate({ from: range.from, to: void 0 });
7598
7600
  } else {
7599
7601
  setDate(range);
7600
7602
  }
7601
7603
  }, "handleSelect");
7602
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkIZKIM7U5js.cn.call(void 0, "grid gap-2"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, children: [
7604
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNNCTRU4Ojs.cn.call(void 0, "grid gap-2"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, children: [
7603
7605
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
7604
7606
  Button,
7605
7607
  {
7606
7608
  id: "date",
7607
7609
  variant: "outline",
7608
- className: _chunkIZKIM7U5js.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
7610
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
7609
7611
  children: [
7610
7612
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
7611
- _optionalChain([date, 'optionalAccess', _176 => _176.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
7613
+ _optionalChain([date, 'optionalAccess', _177 => _177.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
7612
7614
  _datefns.format.call(void 0, date.from, "LLL dd, y"),
7613
7615
  " - ",
7614
7616
  _datefns.format.call(void 0, date.to, "LLL dd, y")
@@ -7621,7 +7623,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
7621
7623
  Calendar,
7622
7624
  {
7623
7625
  mode: "range",
7624
- defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess', _177 => _177.from]), () => ( (showPreviousMonth ? new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 1) : void 0))),
7626
+ defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess', _178 => _178.from]), () => ( (showPreviousMonth ? new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 1) : void 0))),
7625
7627
  selected: date,
7626
7628
  onSelect: handleSelect,
7627
7629
  numberOfMonths: 2
@@ -7708,7 +7710,7 @@ var FileUploader = _react.forwardRef.call(void 0,
7708
7710
  movePrev();
7709
7711
  } else if (e.key === "Enter" || e.key === "Space") {
7710
7712
  if (activeIndex === -1) {
7711
- _optionalChain([dropzoneState, 'access', _178 => _178.inputRef, 'access', _179 => _179.current, 'optionalAccess', _180 => _180.click, 'call', _181 => _181()]);
7713
+ _optionalChain([dropzoneState, 'access', _179 => _179.inputRef, 'access', _180 => _180.current, 'optionalAccess', _181 => _181.click, 'call', _182 => _182()]);
7712
7714
  }
7713
7715
  } else if (e.key === "Delete" || e.key === "Backspace") {
7714
7716
  if (activeIndex !== -1) {
@@ -7729,7 +7731,7 @@ var FileUploader = _react.forwardRef.call(void 0,
7729
7731
  (acceptedFiles, rejectedFiles) => {
7730
7732
  const files = acceptedFiles;
7731
7733
  if (!files) {
7732
- _chunkIZKIM7U5js.showError.call(void 0, t("common.errors.file"), {
7734
+ _chunkNNCTRU4Ojs.showError.call(void 0, t("common.errors.file"), {
7733
7735
  description: t("common.errors.file_large")
7734
7736
  });
7735
7737
  return;
@@ -7746,14 +7748,14 @@ var FileUploader = _react.forwardRef.call(void 0,
7746
7748
  onValueChange(newValues);
7747
7749
  if (rejectedFiles.length > 0) {
7748
7750
  for (let i = 0; i < rejectedFiles.length; i++) {
7749
- if (_optionalChain([rejectedFiles, 'access', _182 => _182[i], 'access', _183 => _183.errors, 'access', _184 => _184[0], 'optionalAccess', _185 => _185.code]) === "file-too-large") {
7750
- _chunkIZKIM7U5js.showError.call(void 0, t("common.errors.file"), {
7751
+ if (_optionalChain([rejectedFiles, 'access', _183 => _183[i], 'access', _184 => _184.errors, 'access', _185 => _185[0], 'optionalAccess', _186 => _186.code]) === "file-too-large") {
7752
+ _chunkNNCTRU4Ojs.showError.call(void 0, t("common.errors.file"), {
7751
7753
  description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
7752
7754
  });
7753
7755
  break;
7754
7756
  }
7755
- if (_optionalChain([rejectedFiles, 'access', _186 => _186[i], 'access', _187 => _187.errors, 'access', _188 => _188[0], 'optionalAccess', _189 => _189.message])) {
7756
- _chunkIZKIM7U5js.showError.call(void 0, t(`common.errors.file`), {
7757
+ if (_optionalChain([rejectedFiles, 'access', _187 => _187[i], 'access', _188 => _188.errors, 'access', _189 => _189[0], 'optionalAccess', _190 => _190.message])) {
7758
+ _chunkNNCTRU4Ojs.showError.call(void 0, t(`common.errors.file`), {
7757
7759
  description: rejectedFiles[i].errors[0].message
7758
7760
  });
7759
7761
  break;
@@ -7797,7 +7799,7 @@ var FileUploader = _react.forwardRef.call(void 0,
7797
7799
  ref,
7798
7800
  tabIndex: 0,
7799
7801
  onKeyDownCapture: handleKeyDown,
7800
- className: _chunkIZKIM7U5js.cn.call(void 0,
7802
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
7801
7803
  "grid w-full overflow-hidden focus:outline-none",
7802
7804
  className,
7803
7805
  // Original className from props
@@ -7821,12 +7823,12 @@ var FileUploaderContent = _react.forwardRef.call(void 0,
7821
7823
  ({ children, className, ...props }, ref) => {
7822
7824
  const { orientation } = useFileUpload();
7823
7825
  const containerRef = _react.useRef.call(void 0, null);
7824
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkIZKIM7U5js.cn.call(void 0, "w-full px-1"), ref: containerRef, "aria-description": "content file holder", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7826
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNNCTRU4Ojs.cn.call(void 0, "w-full px-1"), ref: containerRef, "aria-description": "content file holder", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7825
7827
  "div",
7826
7828
  {
7827
7829
  ...props,
7828
7830
  ref,
7829
- className: _chunkIZKIM7U5js.cn.call(void 0,
7831
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
7830
7832
  "flex gap-1 rounded-xl",
7831
7833
  orientation === "horizontal" ? "flex-raw flex-wrap" : "flex-col",
7832
7834
  className
@@ -7846,7 +7848,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
7846
7848
  "div",
7847
7849
  {
7848
7850
  ref,
7849
- className: _chunkIZKIM7U5js.cn.call(void 0,
7851
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
7850
7852
  buttonVariants({ variant: "ghost" }),
7851
7853
  "relative h-6 cursor-pointer justify-between p-1",
7852
7854
  className,
@@ -7859,7 +7861,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
7859
7861
  "button",
7860
7862
  {
7861
7863
  type: "button",
7862
- className: _chunkIZKIM7U5js.cn.call(void 0, "absolute", direction === "rtl" ? "top-1 left-1" : "top-1 right-1"),
7864
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "absolute", direction === "rtl" ? "top-1 left-1" : "top-1 right-1"),
7863
7865
  onClick: () => removeFileFromSet(index),
7864
7866
  children: [
7865
7867
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: t(`common.remove_item`, { index }) }),
@@ -7883,12 +7885,12 @@ var FileInput = _react.forwardRef.call(void 0,
7883
7885
  {
7884
7886
  ref,
7885
7887
  ...props,
7886
- className: _chunkIZKIM7U5js.cn.call(void 0, `relative w-full ${isLOF ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`, className),
7888
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, `relative w-full ${isLOF ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`, className),
7887
7889
  children: [
7888
7890
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7889
7891
  "div",
7890
7892
  {
7891
- className: _chunkIZKIM7U5js.cn.call(void 0,
7893
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
7892
7894
  "w-full rounded-lg duration-300 ease-in-out",
7893
7895
  // Simpler border logic: if parent is drag-active, it controls the border.
7894
7896
  // Otherwise, FileInput can show its own accept/reject/default border.
@@ -8222,7 +8224,7 @@ function FormDateTime({
8222
8224
  Button,
8223
8225
  {
8224
8226
  variant: "outline",
8225
- className: _chunkIZKIM7U5js.cn.call(void 0, "w-full pl-3 text-left font-normal", !field.value && "text-muted-foreground")
8227
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "w-full pl-3 text-left font-normal", !field.value && "text-muted-foreground")
8226
8228
  }
8227
8229
  ),
8228
8230
  children: [
@@ -8410,7 +8412,7 @@ var PasswordInput = React12.forwardRef(({ className, type, ...props }, ref) => {
8410
8412
  const disabled = props.value === "" || props.value === void 0 || props.disabled;
8411
8413
  const t = _nextintl.useTranslations.call(void 0, );
8412
8414
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
8413
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className: _chunkIZKIM7U5js.cn.call(void 0, "", className), ref, ...props }),
8415
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className: _chunkNNCTRU4Ojs.cn.call(void 0, "", className), ref, ...props }),
8414
8416
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
8415
8417
  Button,
8416
8418
  {
@@ -8534,11 +8536,11 @@ function FormPlaceAutocomplete({
8534
8536
  const data = await response.json();
8535
8537
  if (data.suggestions) {
8536
8538
  const formattedSuggestions = data.suggestions.map((suggestion) => ({
8537
- place_id: _optionalChain([suggestion, 'access', _190 => _190.placePrediction, 'optionalAccess', _191 => _191.placeId]) || "",
8538
- description: _optionalChain([suggestion, 'access', _192 => _192.placePrediction, 'optionalAccess', _193 => _193.text, 'optionalAccess', _194 => _194.text]) || "",
8539
+ place_id: _optionalChain([suggestion, 'access', _191 => _191.placePrediction, 'optionalAccess', _192 => _192.placeId]) || "",
8540
+ description: _optionalChain([suggestion, 'access', _193 => _193.placePrediction, 'optionalAccess', _194 => _194.text, 'optionalAccess', _195 => _195.text]) || "",
8539
8541
  structured_formatting: {
8540
- main_text: _optionalChain([suggestion, 'access', _195 => _195.placePrediction, 'optionalAccess', _196 => _196.structuredFormat, 'optionalAccess', _197 => _197.mainText, 'optionalAccess', _198 => _198.text]) || "",
8541
- secondary_text: _optionalChain([suggestion, 'access', _199 => _199.placePrediction, 'optionalAccess', _200 => _200.structuredFormat, 'optionalAccess', _201 => _201.secondaryText, 'optionalAccess', _202 => _202.text]) || ""
8542
+ main_text: _optionalChain([suggestion, 'access', _196 => _196.placePrediction, 'optionalAccess', _197 => _197.structuredFormat, 'optionalAccess', _198 => _198.mainText, 'optionalAccess', _199 => _199.text]) || "",
8543
+ secondary_text: _optionalChain([suggestion, 'access', _200 => _200.placePrediction, 'optionalAccess', _201 => _201.structuredFormat, 'optionalAccess', _202 => _202.secondaryText, 'optionalAccess', _203 => _203.text]) || ""
8542
8544
  }
8543
8545
  }));
8544
8546
  setSuggestions(formattedSuggestions);
@@ -8604,7 +8606,7 @@ function FormPlaceAutocomplete({
8604
8606
  placeholder,
8605
8607
  disabled,
8606
8608
  "data-testid": testId,
8607
- className: _chunkIZKIM7U5js.cn.call(void 0, "w-full", className)
8609
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "w-full", className)
8608
8610
  }
8609
8611
  ) }) });
8610
8612
  }
@@ -8623,7 +8625,7 @@ function FormPlaceAutocomplete({
8623
8625
  placeholder,
8624
8626
  disabled: disabled || !apiKey,
8625
8627
  "data-testid": testId,
8626
- className: _chunkIZKIM7U5js.cn.call(void 0, "w-full", className)
8628
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "w-full", className)
8627
8629
  }
8628
8630
  ),
8629
8631
  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" }) }),
@@ -8633,8 +8635,8 @@ function FormPlaceAutocomplete({
8633
8635
  className: "hover:bg-muted cursor-pointer px-3 py-2 text-sm",
8634
8636
  onClick: () => handleSuggestionSelect(suggestion),
8635
8637
  children: [
8636
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _203 => _203.structured_formatting, 'optionalAccess', _204 => _204.main_text]) }),
8637
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access', _205 => _205.structured_formatting, 'optionalAccess', _206 => _206.secondary_text]) })
8638
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _204 => _204.structured_formatting, 'optionalAccess', _205 => _205.main_text]) }),
8639
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access', _206 => _206.structured_formatting, 'optionalAccess', _207 => _207.secondary_text]) })
8638
8640
  ]
8639
8641
  },
8640
8642
  suggestion.place_id || index
@@ -8755,7 +8757,7 @@ function FormTextarea({
8755
8757
  Textarea,
8756
8758
  {
8757
8759
  ...field,
8758
- className: _chunkIZKIM7U5js.cn.call(void 0, "min-h-96 w-full", className),
8760
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "min-h-96 w-full", className),
8759
8761
  disabled: form.formState.isSubmitting,
8760
8762
  placeholder,
8761
8763
  "data-testid": testId
@@ -8870,10 +8872,10 @@ function UserMultiSelect({
8870
8872
  const data = useDataListRetriever({
8871
8873
  ready: !!company,
8872
8874
  retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
8873
- return _chunkIZKIM7U5js.UserService.findAllUsers(params);
8875
+ return _chunkNNCTRU4Ojs.UserService.findAllUsers(params);
8874
8876
  }, "retriever"),
8875
- retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _207 => _207.id]) },
8876
- module: _chunkIZKIM7U5js.Modules.User
8877
+ retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _208 => _208.id]) },
8878
+ module: _chunkNNCTRU4Ojs.Modules.User
8877
8879
  });
8878
8880
  _react.useEffect.call(void 0, () => {
8879
8881
  if (company) data.setReady(true);
@@ -8899,7 +8901,7 @@ function UserMultiSelect({
8899
8901
  _react.useEffect.call(void 0, () => {
8900
8902
  if (data.data && data.data.length > 0) {
8901
8903
  const users = data.data;
8902
- const filteredUsers = users.filter((user) => user.id !== _optionalChain([currentUser, 'optionalAccess', _208 => _208.id]));
8904
+ const filteredUsers = users.filter((user) => user.id !== _optionalChain([currentUser, 'optionalAccess', _209 => _209.id]));
8903
8905
  const options = filteredUsers.map((user) => ({
8904
8906
  label: user.name,
8905
8907
  value: user.id,
@@ -8930,7 +8932,7 @@ function UserMultiSelect({
8930
8932
  return existingUser;
8931
8933
  }
8932
8934
  const option = userOptions.find((option2) => option2.value === id2);
8933
- if (_optionalChain([option, 'optionalAccess', _209 => _209.userData])) {
8935
+ if (_optionalChain([option, 'optionalAccess', _210 => _210.userData])) {
8934
8936
  return {
8935
8937
  id: option.userData.id,
8936
8938
  name: option.userData.name,
@@ -8941,7 +8943,7 @@ function UserMultiSelect({
8941
8943
  });
8942
8944
  form.setValue(id, updatedSelectedUsers);
8943
8945
  if (onChange) {
8944
- const fullSelectedUsers = selectedIds.map((id2) => _optionalChain([userOptions, 'access', _210 => _210.find, 'call', _211 => _211((option) => option.value === id2), 'optionalAccess', _212 => _212.userData])).filter(Boolean);
8946
+ const fullSelectedUsers = selectedIds.map((id2) => _optionalChain([userOptions, 'access', _211 => _211.find, 'call', _212 => _212((option) => option.value === id2), 'optionalAccess', _213 => _213.userData])).filter(Boolean);
8945
8947
  onChange(fullSelectedUsers);
8946
8948
  }
8947
8949
  }, "handleValueChange");
@@ -8970,7 +8972,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
8970
8972
  const t = _nextintl.useTranslations.call(void 0, );
8971
8973
  const reactivateUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
8972
8974
  try {
8973
- const updatedUser = await _chunkIZKIM7U5js.UserService.reactivate({ userId: user.id });
8975
+ const updatedUser = await _chunkNNCTRU4Ojs.UserService.reactivate({ userId: user.id });
8974
8976
  setOpen(false);
8975
8977
  propagateChanges(updatedUser);
8976
8978
  } catch (error) {
@@ -9008,7 +9010,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
9008
9010
  _chunk7QVYU63Ejs.__name.call(void 0, UserReactivatorInterface, "UserReactivatorInterface");
9009
9011
  function UserReactivator(props) {
9010
9012
  const { hasPermissionToModule } = useCurrentUserContext();
9011
- if (!hasPermissionToModule({ module: _chunkIZKIM7U5js.Modules.User, action: "update" /* Update */, data: props.user })) return null;
9013
+ if (!hasPermissionToModule({ module: _chunkNNCTRU4Ojs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
9012
9014
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserReactivatorInterface, { ...props });
9013
9015
  }
9014
9016
  _chunk7QVYU63Ejs.__name.call(void 0, UserReactivator, "UserReactivator");
@@ -9023,9 +9025,9 @@ function UserResentInvitationEmailInternal({ user }) {
9023
9025
  const t = _nextintl.useTranslations.call(void 0, );
9024
9026
  const sendInvitationEmail = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
9025
9027
  try {
9026
- await _chunkIZKIM7U5js.UserService.sendInvitation({ userId: user.id, companyId: user.company.id });
9028
+ await _chunkNNCTRU4Ojs.UserService.sendInvitation({ userId: user.id, companyId: user.company.id });
9027
9029
  setOpen(false);
9028
- _chunkIZKIM7U5js.showToast.call(void 0, t(`user.resend_activation.email_sent`), {
9030
+ _chunkNNCTRU4Ojs.showToast.call(void 0, t(`user.resend_activation.email_sent`), {
9029
9031
  description: t(`user.resend_activation.email_sent_description`, { email: user.email })
9030
9032
  });
9031
9033
  } catch (error) {
@@ -9063,7 +9065,7 @@ function UserResentInvitationEmailInternal({ user }) {
9063
9065
  _chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmailInternal, "UserResentInvitationEmailInternal");
9064
9066
  function UserResentInvitationEmail(props) {
9065
9067
  const { hasPermissionToModule } = useCurrentUserContext();
9066
- if (!hasPermissionToModule({ module: _chunkIZKIM7U5js.Modules.User, action: "update" /* Update */, data: props.user })) return null;
9068
+ if (!hasPermissionToModule({ module: _chunkNNCTRU4Ojs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
9067
9069
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserResentInvitationEmailInternal, { ...props });
9068
9070
  }
9069
9071
  _chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmail, "UserResentInvitationEmail");
@@ -9088,28 +9090,28 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
9088
9090
  }, "getInitials");
9089
9091
  const getAvatar = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
9090
9092
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Avatar, { className: `h-6 w-6 ${className}`, children: [
9091
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _213 => _213.avatar]) }),
9093
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _214 => _214.avatar]) }),
9092
9094
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: getInitials(user.name) })
9093
9095
  ] }) });
9094
9096
  }, "getAvatar");
9095
9097
  const content = showLink === false ? (
9096
9098
  // If showLink is explicitly false, never show a link
9097
- showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkIZKIM7U5js.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className), children: [
9099
+ showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkNNCTRU4Ojs.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className), children: [
9098
9100
  getAvatar(),
9099
9101
  user.name
9100
9102
  ] }) : getAvatar()
9101
9103
  ) : showFull ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9102
9104
  Link,
9103
9105
  {
9104
- href: generateUrl({ page: _chunkIZKIM7U5js.Modules.User, id: user.id }),
9105
- className: _chunkIZKIM7U5js.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className),
9106
+ href: generateUrl({ page: _chunkNNCTRU4Ojs.Modules.User, id: user.id }),
9107
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className),
9106
9108
  onClick: (e) => e.stopPropagation(),
9107
9109
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center gap-x-2", children: [
9108
9110
  getAvatar(),
9109
9111
  user.name
9110
9112
  ] })
9111
9113
  }
9112
- ) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunkIZKIM7U5js.Modules.User, id: user.id }), className, children: getAvatar() }) : getAvatar();
9114
+ ) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunkNNCTRU4Ojs.Modules.User, id: user.id }), className, children: getAvatar() }) : getAvatar();
9113
9115
  if (!showTooltip) {
9114
9116
  return content;
9115
9117
  }
@@ -9130,10 +9132,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
9130
9132
  const [isSearching, setIsSearching] = _react.useState.call(void 0, false);
9131
9133
  const data = useDataListRetriever({
9132
9134
  retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
9133
- return _chunkIZKIM7U5js.UserService.findMany(params);
9135
+ return _chunkNNCTRU4Ojs.UserService.findMany(params);
9134
9136
  }, "retriever"),
9135
9137
  retrieverParams: {},
9136
- module: _chunkIZKIM7U5js.Modules.User
9138
+ module: _chunkNNCTRU4Ojs.Modules.User
9137
9139
  });
9138
9140
  const search = _react.useCallback.call(void 0,
9139
9141
  async (searchedTerm) => {
@@ -9170,10 +9172,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
9170
9172
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
9171
9173
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, 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: [
9172
9174
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Avatar, { className: `mr-2 h-6 w-6`, children: [
9173
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _214 => _214.value, 'optionalAccess', _215 => _215.avatar]) }),
9174
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access', _216 => _216.value, 'optionalAccess', _217 => _217.name]) ? _optionalChain([field, 'access', _218 => _218.value, 'optionalAccess', _219 => _219.name, 'access', _220 => _220.split, 'call', _221 => _221(" "), 'access', _222 => _222.map, 'call', _223 => _223((name) => name.charAt(0).toUpperCase())]) : "X" })
9175
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _215 => _215.value, 'optionalAccess', _216 => _216.avatar]) }),
9176
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access', _217 => _217.value, 'optionalAccess', _218 => _218.name]) ? _optionalChain([field, 'access', _219 => _219.value, 'optionalAccess', _220 => _220.name, 'access', _221 => _221.split, 'call', _222 => _222(" "), 'access', _223 => _223.map, 'call', _224 => _224((name) => name.charAt(0).toUpperCase())]) : "X" })
9175
9177
  ] }) }),
9176
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "", children: _nullishCoalesce(_optionalChain([field, 'access', _224 => _224.value, 'optionalAccess', _225 => _225.name]), () => ( "")) })
9178
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "", children: _nullishCoalesce(_optionalChain([field, 'access', _225 => _225.value, 'optionalAccess', _226 => _226.name]), () => ( "")) })
9177
9179
  ] }) }) : /* @__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(`ui.search.placeholder`, { type: t(`entities.users`, { count: 1 }) }))) }) }) }),
9178
9180
  field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9179
9181
  _lucidereact.CircleX,
@@ -9232,24 +9234,24 @@ var UserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
9232
9234
  const { hasPermissionToModule } = useCurrentUserContext();
9233
9235
  const t = _nextintl.useTranslations.call(void 0, );
9234
9236
  const [user, setUser] = _react.useState.call(void 0,
9235
- dehydratedUser ? _chunkIZKIM7U5js.rehydrate.call(void 0, _chunkIZKIM7U5js.Modules.User, dehydratedUser) : void 0
9237
+ dehydratedUser ? _chunkNNCTRU4Ojs.rehydrate.call(void 0, _chunkNNCTRU4Ojs.Modules.User, dehydratedUser) : void 0
9236
9238
  );
9237
9239
  const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
9238
9240
  const response = [];
9239
- if (hasPermissionToModule({ module: _chunkIZKIM7U5js.Modules.User, action: "update" /* Update */ })) {
9241
+ if (hasPermissionToModule({ module: _chunkNNCTRU4Ojs.Modules.User, action: "update" /* Update */ })) {
9240
9242
  response.push({
9241
9243
  name: t(`common.settings`),
9242
9244
  href: generateUrl({ page: `/settings` })
9243
9245
  });
9244
9246
  response.push({
9245
9247
  name: t(`entities.users`, { count: 2 }),
9246
- href: generateUrl({ page: `/settings`, id: _chunkIZKIM7U5js.Modules.User.pageUrl })
9248
+ href: generateUrl({ page: `/settings`, id: _chunkNNCTRU4Ojs.Modules.User.pageUrl })
9247
9249
  });
9248
9250
  }
9249
9251
  if (user)
9250
9252
  response.push({
9251
9253
  name: `${user.name}${user.isDeleted ? ` (${t(`user.deleted`)})` : ""}`,
9252
- href: generateUrl({ page: _chunkIZKIM7U5js.Modules.User, id: user.id })
9254
+ href: generateUrl({ page: _chunkNNCTRU4Ojs.Modules.User, id: user.id })
9253
9255
  });
9254
9256
  return response;
9255
9257
  }, "breadcrumb");
@@ -9304,7 +9306,7 @@ function UserDetails({ user }) {
9304
9306
  const { title } = useSharedContext();
9305
9307
  let roles = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
9306
9308
  if (user.roles && user.roles.length > 0) {
9307
- 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, Link, { href: generateUrl({ page: _chunkIZKIM7U5js.Modules.Role, id: role.id }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { className: "mr-2", variant: `default`, children: t(`role.roles`, { role: role.id.replaceAll(`-`, ``) }) }) }, role.id)) }) });
9309
+ 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, Link, { href: generateUrl({ page: _chunkNNCTRU4Ojs.Modules.Role, id: role.id }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { className: "mr-2", variant: `default`, children: t(`role.roles`, { role: role.id.replaceAll(`-`, ``) }) }) }, role.id)) }) });
9308
9310
  }
9309
9311
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
9310
9312
  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,
@@ -9317,7 +9319,7 @@ function UserDetails({ user }) {
9317
9319
  className: "h-auto w-full rounded-lg object-contain"
9318
9320
  }
9319
9321
  ) }),
9320
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkIZKIM7U5js.Modules.User, type: title.type, element: title.element, functions: title.functions }),
9322
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkNNCTRU4Ojs.Modules.User, type: title.type, element: title.element, functions: title.functions }),
9321
9323
  user.isDeleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "destructive", children: t(`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, Badge, { variant: "destructive", children: t(`user.errors.inactive`) }) }) }),
9322
9324
  roles,
9323
9325
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AttributeElement, { inline: true, title: t(`user.fields.title.label`), value: user.title }),
@@ -9371,18 +9373,18 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserIndexContainer, "UserIndexContainer");
9371
9373
  function UsersListContainerInternal() {
9372
9374
  const { hasPermissionToModule } = useCurrentUserContext();
9373
9375
  const t = _nextintl.useTranslations.call(void 0, );
9374
- if (!hasPermissionToModule({ module: _chunkIZKIM7U5js.Modules.User, action: "delete" /* Delete */ })) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {});
9376
+ if (!hasPermissionToModule({ module: _chunkNNCTRU4Ojs.Modules.User, action: "delete" /* Delete */ })) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {});
9375
9377
  const tabs = [
9376
9378
  {
9377
9379
  label: t(`entities.users`, { count: 2 }),
9378
9380
  content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {}),
9379
- modules: [_chunkIZKIM7U5js.Modules.Company],
9381
+ modules: [_chunkNNCTRU4Ojs.Modules.Company],
9380
9382
  action: "read" /* Read */
9381
9383
  },
9382
9384
  {
9383
9385
  label: t(`user.deleted`),
9384
9386
  content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, { isDeleted: true }),
9385
- modules: [_chunkIZKIM7U5js.Modules.Company],
9387
+ modules: [_chunkNNCTRU4Ojs.Modules.Company],
9386
9388
  action: "update" /* Update */
9387
9389
  }
9388
9390
  ];
@@ -9400,9 +9402,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersListContainer, "UsersListContainer");
9400
9402
  function AdminUsersListInternal({ company }) {
9401
9403
  const t = _nextintl.useTranslations.call(void 0, );
9402
9404
  const data = useDataListRetriever({
9403
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkIZKIM7U5js.UserService.findManyForAmin(params), "retriever"),
9405
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkNNCTRU4Ojs.UserService.findManyForAmin(params), "retriever"),
9404
9406
  retrieverParams: { companyId: company.id },
9405
- module: _chunkIZKIM7U5js.Modules.User
9407
+ module: _chunkNNCTRU4Ojs.Modules.User
9406
9408
  });
9407
9409
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9408
9410
  ContentListTable,
@@ -9410,7 +9412,7 @@ function AdminUsersListInternal({ company }) {
9410
9412
  title: t(`entities.users`, { count: 2 }),
9411
9413
  data,
9412
9414
  fields: ["name" /* name */, "email" /* email */, "createdAt" /* createdAt */],
9413
- tableGeneratorType: _chunkIZKIM7U5js.Modules.User,
9415
+ tableGeneratorType: _chunkNNCTRU4Ojs.Modules.User,
9414
9416
  functions: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserEditor, { propagateChanges: data.refresh, adminCreated: true })
9415
9417
  }
9416
9418
  );
@@ -9432,9 +9434,9 @@ function CompanyUsersList({ isDeleted }) {
9432
9434
  const t = _nextintl.useTranslations.call(void 0, );
9433
9435
  const data = useDataListRetriever({
9434
9436
  ready: !!company,
9435
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkIZKIM7U5js.UserService.findAllUsers(params), "retriever"),
9436
- retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _226 => _226.id]), isDeleted },
9437
- module: _chunkIZKIM7U5js.Modules.User
9437
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkNNCTRU4Ojs.UserService.findAllUsers(params), "retriever"),
9438
+ retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _227 => _227.id]), isDeleted },
9439
+ module: _chunkNNCTRU4Ojs.Modules.User
9438
9440
  });
9439
9441
  _react.useEffect.call(void 0, () => {
9440
9442
  if (company) data.setReady(true);
@@ -9447,7 +9449,7 @@ function CompanyUsersList({ isDeleted }) {
9447
9449
  {
9448
9450
  data,
9449
9451
  fields: ["name" /* name */, "email" /* email */],
9450
- tableGeneratorType: _chunkIZKIM7U5js.Modules.User,
9452
+ tableGeneratorType: _chunkNNCTRU4Ojs.Modules.User,
9451
9453
  functions,
9452
9454
  title: t(`entities.users`, { count: 2 })
9453
9455
  }
@@ -9463,7 +9465,7 @@ function ContributorsList({ content }) {
9463
9465
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9464
9466
  Link,
9465
9467
  {
9466
- href: generateUrl({ page: _chunkIZKIM7U5js.Modules.User, id: content.author.id }),
9468
+ href: generateUrl({ page: _chunkNNCTRU4Ojs.Modules.User, id: content.author.id }),
9467
9469
  onClick: (e) => e.stopPropagation(),
9468
9470
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: content.author, className: "mr-1 h-6 w-6" })
9469
9471
  },
@@ -9472,7 +9474,7 @@ function ContributorsList({ content }) {
9472
9474
  /* @__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,
9473
9475
  Link,
9474
9476
  {
9475
- href: generateUrl({ page: _chunkIZKIM7U5js.Modules.User, id: editor.id }),
9477
+ href: generateUrl({ page: _chunkNNCTRU4Ojs.Modules.User, id: editor.id }),
9476
9478
  onClick: (e) => e.stopPropagation(),
9477
9479
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: editor, className: "h-5 w-5" })
9478
9480
  },
@@ -9488,8 +9490,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContributorsList, "ContributorsList");
9488
9490
  function RelevantUsersList({ id }) {
9489
9491
  const t = _nextintl.useTranslations.call(void 0, );
9490
9492
  const data = useDataListRetriever({
9491
- module: _chunkIZKIM7U5js.Modules.User,
9492
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkIZKIM7U5js.UserService.findRelevant(params), "retriever"),
9493
+ module: _chunkNNCTRU4Ojs.Modules.User,
9494
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkNNCTRU4Ojs.UserService.findRelevant(params), "retriever"),
9493
9495
  retrieverParams: { id }
9494
9496
  });
9495
9497
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -9497,7 +9499,7 @@ function RelevantUsersList({ id }) {
9497
9499
  {
9498
9500
  data,
9499
9501
  fields: ["name" /* name */, "email" /* email */, "relevance" /* relevance */],
9500
- tableGeneratorType: _chunkIZKIM7U5js.Modules.User,
9502
+ tableGeneratorType: _chunkNNCTRU4Ojs.Modules.User,
9501
9503
  title: t(`common.relevant_users`)
9502
9504
  }
9503
9505
  );
@@ -9510,16 +9512,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RelevantUsersList, "RelevantUsersList");
9510
9512
  function RoleUsersList({ role }) {
9511
9513
  const t = _nextintl.useTranslations.call(void 0, );
9512
9514
  const data = useDataListRetriever({
9513
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkIZKIM7U5js.UserService.findAllUsersByRole(params), "retriever"),
9515
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkNNCTRU4Ojs.UserService.findAllUsersByRole(params), "retriever"),
9514
9516
  retrieverParams: { roleId: role.id },
9515
- module: _chunkIZKIM7U5js.Modules.User
9517
+ module: _chunkNNCTRU4Ojs.Modules.User
9516
9518
  });
9517
9519
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9518
9520
  ContentListTable,
9519
9521
  {
9520
9522
  data,
9521
9523
  fields: ["name" /* name */, "email" /* email */],
9522
- tableGeneratorType: _chunkIZKIM7U5js.Modules.User,
9524
+ tableGeneratorType: _chunkNNCTRU4Ojs.Modules.User,
9523
9525
  title: t(`entities.users`, { count: 2 })
9524
9526
  }
9525
9527
  );
@@ -9539,11 +9541,11 @@ function UserListInAdd({ data, existingUsers, setSelectedUser, setLevelOpen }) {
9539
9541
  className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
9540
9542
  onClick: (e) => {
9541
9543
  setSelectedUser(user);
9542
- _optionalChain([setLevelOpen, 'optionalCall', _227 => _227(true)]);
9544
+ _optionalChain([setLevelOpen, 'optionalCall', _228 => _228(true)]);
9543
9545
  },
9544
9546
  onSelect: (e) => {
9545
9547
  setSelectedUser(user);
9546
- _optionalChain([setLevelOpen, 'optionalCall', _228 => _228(true)]);
9548
+ _optionalChain([setLevelOpen, 'optionalCall', _229 => _229(true)]);
9547
9549
  },
9548
9550
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between px-4 py-1", children: [
9549
9551
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user }),
@@ -9569,7 +9571,7 @@ function UsersList({ data, optionComponents, removeFunction, hideOptions, showRe
9569
9571
  {
9570
9572
  data,
9571
9573
  fields: ["name" /* name */, "email" /* email */],
9572
- tableGeneratorType: _chunkIZKIM7U5js.Modules.User,
9574
+ tableGeneratorType: _chunkNNCTRU4Ojs.Modules.User,
9573
9575
  title: t(`entities.users`, { count: 2 })
9574
9576
  }
9575
9577
  );
@@ -9582,8 +9584,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersList, "UsersList");
9582
9584
  function UsersListByContentIds({ contentIds }) {
9583
9585
  const t = _nextintl.useTranslations.call(void 0, );
9584
9586
  const data = useDataListRetriever({
9585
- module: _chunkIZKIM7U5js.Modules.User,
9586
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkIZKIM7U5js.UserService.findManyByContentIds(params), "retriever"),
9587
+ module: _chunkNNCTRU4Ojs.Modules.User,
9588
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkNNCTRU4Ojs.UserService.findManyByContentIds(params), "retriever"),
9587
9589
  retrieverParams: { contentIds }
9588
9590
  });
9589
9591
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -9591,7 +9593,7 @@ function UsersListByContentIds({ contentIds }) {
9591
9593
  {
9592
9594
  data,
9593
9595
  fields: ["name" /* name */, "email" /* email */],
9594
- tableGeneratorType: _chunkIZKIM7U5js.Modules.User,
9596
+ tableGeneratorType: _chunkNNCTRU4Ojs.Modules.User,
9595
9597
  title: t(`common.relevant_users`)
9596
9598
  }
9597
9599
  );
@@ -9609,7 +9611,7 @@ function CompanyDetails() {
9609
9611
  const { company } = useCompanyContext();
9610
9612
  if (!company) return null;
9611
9613
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
9612
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkIZKIM7U5js.Modules.Company, type: title.type, element: title.element, functions: title.functions }),
9614
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkNNCTRU4Ojs.Modules.Company, type: title.type, element: title.element, functions: title.functions }),
9613
9615
  company.logo && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: company.logo, alt: company.name, width: 150, height: 150, className: "mb-4 rounded-md" })
9614
9616
  ] });
9615
9617
  }
@@ -9674,13 +9676,13 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
9674
9676
  const textSize = textSizeClasses[size];
9675
9677
  const getBatteryIcon = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
9676
9678
  if (percentage > 75) {
9677
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryFull, { className: _chunkIZKIM7U5js.cn.call(void 0, iconSize, "text-green-500") });
9679
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryFull, { className: _chunkNNCTRU4Ojs.cn.call(void 0, iconSize, "text-green-500") });
9678
9680
  } else if (percentage > 50) {
9679
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryMedium, { className: _chunkIZKIM7U5js.cn.call(void 0, iconSize, "text-green-500") });
9681
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryMedium, { className: _chunkNNCTRU4Ojs.cn.call(void 0, iconSize, "text-green-500") });
9680
9682
  } else if (percentage >= 25) {
9681
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryLow, { className: _chunkIZKIM7U5js.cn.call(void 0, iconSize, "text-yellow-500") });
9683
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryLow, { className: _chunkNNCTRU4Ojs.cn.call(void 0, iconSize, "text-yellow-500") });
9682
9684
  } else {
9683
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Battery, { className: _chunkIZKIM7U5js.cn.call(void 0, iconSize, "text-destructive") });
9685
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Battery, { className: _chunkNNCTRU4Ojs.cn.call(void 0, iconSize, "text-destructive") });
9684
9686
  }
9685
9687
  }, "getBatteryIcon");
9686
9688
  const getStatusColor = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
@@ -9700,7 +9702,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
9700
9702
  t("billing.tokens.monthly", { defaultValue: "Monthly Pages" }),
9701
9703
  ":"
9702
9704
  ] }),
9703
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkIZKIM7U5js.cn.call(void 0, "font-medium", getStatusColor()), children: [
9705
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkNNCTRU4Ojs.cn.call(void 0, "font-medium", getStatusColor()), children: [
9704
9706
  availableMonthlyTokens,
9705
9707
  " / ",
9706
9708
  monthlyTokens
@@ -9711,7 +9713,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
9711
9713
  t("billing.tokens.available", { defaultValue: "Available" }),
9712
9714
  ":"
9713
9715
  ] }),
9714
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkIZKIM7U5js.cn.call(void 0, "font-medium", getStatusColor()), children: [
9716
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkNNCTRU4Ojs.cn.call(void 0, "font-medium", getStatusColor()), children: [
9715
9717
  percentage.toFixed(0),
9716
9718
  "%"
9717
9719
  ] })
@@ -9732,14 +9734,14 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
9732
9734
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
9733
9735
  "div",
9734
9736
  {
9735
- className: _chunkIZKIM7U5js.cn.call(void 0, "inline-flex items-center gap-1.5 cursor-default", className),
9737
+ className: _chunkNNCTRU4Ojs.cn.call(void 0, "inline-flex items-center gap-1.5 cursor-default", className),
9736
9738
  "aria-label": t("billing.tokens.status", { defaultValue: "Page Status" }),
9737
9739
  children: [
9738
9740
  getBatteryIcon(),
9739
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkIZKIM7U5js.cn.call(void 0, textSize, "text-muted-foreground font-medium"), children: availableMonthlyTokens }),
9741
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkNNCTRU4Ojs.cn.call(void 0, textSize, "text-muted-foreground font-medium"), children: availableMonthlyTokens }),
9740
9742
  showExtraPages && availableExtraTokens > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "inline-flex items-center gap-0.5", children: [
9741
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className: _chunkIZKIM7U5js.cn.call(void 0, smallIconSize, "text-blue-500") }),
9742
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkIZKIM7U5js.cn.call(void 0, textSize, "text-blue-500 font-medium"), children: availableExtraTokens })
9743
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className: _chunkNNCTRU4Ojs.cn.call(void 0, smallIconSize, "text-blue-500") }),
9744
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkNNCTRU4Ojs.cn.call(void 0, textSize, "text-blue-500 font-medium"), children: availableExtraTokens })
9743
9745
  ] })
9744
9746
  ]
9745
9747
  }
@@ -9822,8 +9824,8 @@ function CompanyConfigurationEditorInternal({ company }) {
9822
9824
  const { setUser } = useCurrentUserContext();
9823
9825
  const defaultValues = _react.useMemo.call(void 0, () => {
9824
9826
  return {
9825
- isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access', _229 => _229.configurations, 'optionalAccess', _230 => _230.isManagedKnowledge]), () => ( false)),
9826
- allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access', _231 => _231.configurations, 'optionalAccess', _232 => _232.allowPublicBot]), () => ( false))
9827
+ isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access', _230 => _230.configurations, 'optionalAccess', _231 => _231.isManagedKnowledge]), () => ( false)),
9828
+ allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access', _232 => _232.configurations, 'optionalAccess', _233 => _233.allowPublicBot]), () => ( false))
9827
9829
  };
9828
9830
  }, [company.configurations]);
9829
9831
  const close = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
@@ -9842,8 +9844,8 @@ function CompanyConfigurationEditorInternal({ company }) {
9842
9844
  _react.useEffect.call(void 0, () => {
9843
9845
  if (open) {
9844
9846
  form.reset({
9845
- isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access', _233 => _233.configurations, 'optionalAccess', _234 => _234.isManagedKnowledge]), () => ( false)),
9846
- allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access', _235 => _235.configurations, 'optionalAccess', _236 => _236.allowPublicBot]), () => ( false))
9847
+ isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access', _234 => _234.configurations, 'optionalAccess', _235 => _235.isManagedKnowledge]), () => ( false)),
9848
+ allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access', _236 => _236.configurations, 'optionalAccess', _237 => _237.allowPublicBot]), () => ( false))
9847
9849
  });
9848
9850
  }
9849
9851
  }, [company, open]);
@@ -9856,12 +9858,12 @@ function CompanyConfigurationEditorInternal({ company }) {
9856
9858
  }
9857
9859
  };
9858
9860
  try {
9859
- await _chunkIZKIM7U5js.CompanyService.updateConfigurations(payload);
9860
- const fullUser = await _chunkIZKIM7U5js.UserService.findFullUser();
9861
+ await _chunkNNCTRU4Ojs.CompanyService.updateConfigurations(payload);
9862
+ const fullUser = await _chunkNNCTRU4Ojs.UserService.findFullUser();
9861
9863
  if (fullUser) {
9862
9864
  setUser(fullUser);
9863
9865
  }
9864
- _chunkIZKIM7U5js.showToast.call(void 0, "Configurations Updated", {
9866
+ _chunkNNCTRU4Ojs.showToast.call(void 0, "Configurations Updated", {
9865
9867
  description: `The system configurations have been updated successfully.`
9866
9868
  });
9867
9869
  close();
@@ -9903,88 +9905,158 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditor, "CompanyConfigu
9903
9905
 
9904
9906
 
9905
9907
 
9906
- function CompanyDeleterInternal({ company }) {
9908
+ function CompanyDeleterInternal({ company, isAdministrator: isAdministrator2 }) {
9907
9909
  const t = _nextintl.useTranslations.call(void 0, );
9908
- const router = _chunk2PHWAL6Qjs.useI18nRouter.call(void 0, );
9910
+ const generateUrl = usePageUrlGenerator();
9909
9911
  const [open, setOpen] = _react.useState.call(void 0, false);
9912
+ const [finalWarningOpen, setFinalWarningOpen] = _react.useState.call(void 0, false);
9910
9913
  const [isDeleting, setIsDeleting] = _react.useState.call(void 0, false);
9911
9914
  const [companyName, setCompanyName] = _react.useState.call(void 0, "");
9912
- const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
9915
+ const handleProceedToFinalWarning = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
9916
+ console.log("[CompanyDeleter] Proceeding to final warning dialog");
9917
+ console.log("[CompanyDeleter] Company name entered:", companyName);
9918
+ console.log("[CompanyDeleter] Expected company name:", company.name);
9919
+ setOpen(false);
9920
+ setFinalWarningOpen(true);
9921
+ }, "handleProceedToFinalWarning");
9922
+ const handleFinalDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
9923
+ console.log("[CompanyDeleter] handleFinalDelete called");
9924
+ console.log("[CompanyDeleter] isAdministrator:", isAdministrator2);
9925
+ console.log("[CompanyDeleter] company.id:", company.id);
9926
+ console.log("[CompanyDeleter] company.name:", company.name);
9913
9927
  setIsDeleting(true);
9914
9928
  try {
9915
- await _chunkIZKIM7U5js.CompanyService.delete({ companyId: company.id });
9916
- router.push("/");
9929
+ if (isAdministrator2) {
9930
+ console.log("[CompanyDeleter] Using Administrator delete endpoint");
9931
+ await _chunkNNCTRU4Ojs.CompanyService.delete({ companyId: company.id });
9932
+ } else {
9933
+ console.log("[CompanyDeleter] Using CompanyAdministrator self-delete endpoint");
9934
+ await _chunkNNCTRU4Ojs.CompanyService.selfDelete({ companyId: company.id });
9935
+ }
9936
+ console.log("[CompanyDeleter] Delete successful, logging out user");
9937
+ await _chunkNNCTRU4Ojs.AuthService.logout();
9938
+ window.location.href = generateUrl({ page: `/` });
9917
9939
  } catch (error) {
9940
+ console.error("[CompanyDeleter] Delete failed with error:", error);
9941
+ console.error("[CompanyDeleter] Error details:", JSON.stringify(error, null, 2));
9918
9942
  errorToast({ title: t(`common.errors.delete`), error });
9943
+ setIsDeleting(false);
9919
9944
  }
9920
- setIsDeleting(false);
9921
- }, "handleDelete");
9922
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AlertDialog, { open, onOpenChange: setOpen, children: [
9923
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Button, { size: "sm", variant: "destructive", children: [
9924
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2Icon, { className: "mr-3 h-3.5 w-3.5" }),
9925
- t(`ui.buttons.delete`)
9926
- ] }) }),
9927
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AlertDialogContent, { className: `flex max-h-[70vh] max-w-3xl flex-col overflow-y-auto`, children: [
9928
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AlertDialogHeader, { children: [
9929
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogTitle, { children: t(`common.delete.title`, { type: t(`entities.companies`, { count: 1 }) }) }),
9930
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogDescription, { children: t(`common.delete.subtitle`, { type: t(`entities.companies`, { count: 1 }) }) })
9931
- ] }),
9932
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-destructive p-4 text-sm", children: t(`common.delete.description`, { type: t(`entities.companies`, { count: 1 }) }) }),
9933
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
9934
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: t(`common.delete.confirmation`, { type: t(`entities.companies`, { count: 1 }) }) }),
9935
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
9936
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Label, { className: "flex items-center", children: [
9937
- t(`company.fields.name.label`),
9938
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-destructive ml-2 font-semibold", children: "*" })
9939
- ] }),
9945
+ }, "handleFinalDelete");
9946
+ const handleGoBack = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
9947
+ setFinalWarningOpen(false);
9948
+ setCompanyName("");
9949
+ }, "handleGoBack");
9950
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
9951
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AlertDialog, { open, onOpenChange: setOpen, children: [
9952
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9953
+ Button,
9954
+ {
9955
+ render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {}),
9956
+ nativeButton: false,
9957
+ size: "sm",
9958
+ variant: "ghost",
9959
+ className: "text-muted-foreground hover:text-destructive",
9960
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2Icon, {})
9961
+ }
9962
+ ) }),
9963
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AlertDialogContent, { className: `flex max-h-[70vh] max-w-3xl flex-col overflow-y-auto`, children: [
9964
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AlertDialogHeader, { children: [
9965
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogTitle, { children: t(`common.delete.title`, { type: t(`entities.companies`, { count: 1 }) }) }),
9966
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogDescription, { children: t(`common.delete.subtitle`, { type: t(`entities.companies`, { count: 1 }) }) })
9967
+ ] }),
9968
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-destructive p-4 text-sm", children: t(`common.delete.description`, { type: t(`entities.companies`, { count: 1 }) }) }),
9969
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
9970
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: t(`common.delete.confirmation`, { type: t(`entities.companies`, { count: 1 }) }) }),
9971
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
9972
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Label, { className: "flex items-center", children: [
9973
+ t(`company.fields.name.label`),
9974
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-destructive ml-2 font-semibold", children: "*" })
9975
+ ] }),
9976
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9977
+ Input,
9978
+ {
9979
+ className: `w-full`,
9980
+ placeholder: t(`company.fields.name.placeholder`),
9981
+ onChange: (e) => setCompanyName(e.target.value)
9982
+ }
9983
+ )
9984
+ ] })
9985
+ ] }),
9986
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-end", children: [
9987
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "mr-2", variant: "outline", type: `button`, onClick: () => setOpen(false), children: t(`ui.buttons.cancel`) }),
9940
9988
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9941
- Input,
9989
+ Button,
9942
9990
  {
9943
- className: `w-full`,
9944
- placeholder: t(`company.fields.name.placeholder`),
9945
- onChange: (e) => setCompanyName(e.target.value)
9991
+ type: "submit",
9992
+ onClick: (e) => {
9993
+ e.preventDefault();
9994
+ handleProceedToFinalWarning();
9995
+ },
9996
+ variant: "destructive",
9997
+ disabled: company.name !== companyName,
9998
+ children: t(`ui.buttons.delete`)
9946
9999
  }
9947
10000
  )
9948
10001
  ] })
10002
+ ] })
10003
+ ] }),
10004
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialog, { open: finalWarningOpen, onOpenChange: setFinalWarningOpen, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AlertDialogContent, { className: `flex max-h-[70vh] max-w-3xl flex-col overflow-y-auto`, children: [
10005
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AlertDialogHeader, { children: [
10006
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogTitle, { children: t(`common.delete.finalWarning.title`) }),
10007
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogDescription, { children: t(`common.delete.finalWarning.subtitle`) })
10008
+ ] }),
10009
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-destructive/10 border-destructive text-destructive rounded-md border p-4 text-sm", children: [
10010
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "mb-3 font-semibold", children: t(`common.delete.finalWarning.description`) }),
10011
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "ul", { className: "list-disc space-y-1 pl-5", children: [
10012
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: t(`common.delete.finalWarning.bullet1`) }),
10013
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: t(`common.delete.finalWarning.bullet2`) }),
10014
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: t(`common.delete.finalWarning.bullet3`) }),
10015
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: t(`common.delete.finalWarning.bullet4`) }),
10016
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: t(`common.delete.finalWarning.bullet5`) })
10017
+ ] })
9949
10018
  ] }),
9950
10019
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-end", children: [
9951
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9952
- Button,
9953
- {
9954
- className: "mr-2",
9955
- variant: "outline",
9956
- type: `button`,
9957
- onClick: () => setOpen(false),
9958
- disabled: isDeleting,
9959
- children: t(`ui.buttons.cancel`)
9960
- }
9961
- ),
10020
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "mr-2", variant: "outline", type: `button`, onClick: handleGoBack, disabled: isDeleting, children: t(`ui.buttons.go_back`) }),
9962
10021
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9963
10022
  Button,
9964
10023
  {
9965
10024
  type: "submit",
9966
10025
  onClick: (e) => {
9967
10026
  e.preventDefault();
9968
- handleDelete();
10027
+ handleFinalDelete();
9969
10028
  },
9970
10029
  variant: "destructive",
9971
- disabled: company.name !== companyName || isDeleting,
10030
+ disabled: isDeleting,
9972
10031
  children: isDeleting ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
9973
10032
  t(`ui.buttons.deleting`),
9974
10033
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.LoaderCircleIcon, { className: "animate-spin-slow h-5 w-5" })
9975
- ] }) : t(`ui.buttons.delete`)
10034
+ ] }) : t(`ui.buttons.delete_forever`)
9976
10035
  }
9977
10036
  )
9978
10037
  ] })
9979
- ] })
10038
+ ] }) })
9980
10039
  ] });
9981
10040
  }
9982
10041
  _chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleterInternal, "CompanyDeleterInternal");
9983
10042
  function CompanyDeleter({ company }) {
9984
10043
  const { hasPermissionToModule, hasRole } = useCurrentUserContext();
9985
- if (!hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator) && !hasPermissionToModule({ module: _chunkIZKIM7U5js.Modules.Company, action: "delete" /* Delete */ }))
10044
+ const isAdministrator2 = hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator);
10045
+ const isCompanyAdministrator = hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).CompanyAdministrator);
10046
+ const hasDeletePermission = hasPermissionToModule({ module: _chunkNNCTRU4Ojs.Modules.Company, action: "delete" /* Delete */ });
10047
+ console.log("[CompanyDeleter] Role check:", {
10048
+ isAdministrator: isAdministrator2,
10049
+ isCompanyAdministrator,
10050
+ hasDeletePermission,
10051
+ companyId: company.id,
10052
+ companyName: company.name
10053
+ });
10054
+ if (!isAdministrator2 && !isCompanyAdministrator && !hasDeletePermission) {
10055
+ console.log("[CompanyDeleter] Access denied - no delete permissions");
9986
10056
  return null;
9987
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleterInternal, { company });
10057
+ }
10058
+ console.log("[CompanyDeleter] Access granted, rendering with isAdministrator:", isAdministrator2);
10059
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleterInternal, { company, isAdministrator: isAdministrator2 });
9988
10060
  }
9989
10061
  _chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleter, "CompanyDeleter");
9990
10062
 
@@ -10021,16 +10093,16 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
10021
10093
  const form = _reacthookform.useForm.call(void 0, {
10022
10094
  resolver: _zod.zodResolver.call(void 0, formSchema),
10023
10095
  defaultValues: {
10024
- id: _optionalChain([company, 'optionalAccess', _237 => _237.id]) || _uuid.v4.call(void 0, ),
10025
- name: _optionalChain([company, 'optionalAccess', _238 => _238.name]) || "",
10026
- featureIds: _optionalChain([company, 'optionalAccess', _239 => _239.features, 'access', _240 => _240.map, 'call', _241 => _241((feature) => feature.id)]) || [],
10027
- moduleIds: _optionalChain([company, 'optionalAccess', _242 => _242.modules, 'access', _243 => _243.map, 'call', _244 => _244((module) => module.id)]) || [],
10028
- logo: _optionalChain([company, 'optionalAccess', _245 => _245.logo]) || ""
10096
+ id: _optionalChain([company, 'optionalAccess', _238 => _238.id]) || _uuid.v4.call(void 0, ),
10097
+ name: _optionalChain([company, 'optionalAccess', _239 => _239.name]) || "",
10098
+ featureIds: _optionalChain([company, 'optionalAccess', _240 => _240.features, 'access', _241 => _241.map, 'call', _242 => _242((feature) => feature.id)]) || [],
10099
+ moduleIds: _optionalChain([company, 'optionalAccess', _243 => _243.modules, 'access', _244 => _244.map, 'call', _245 => _245((module) => module.id)]) || [],
10100
+ logo: _optionalChain([company, 'optionalAccess', _246 => _246.logo]) || ""
10029
10101
  }
10030
10102
  });
10031
10103
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
10032
10104
  if (values.logo && contentType) {
10033
- const s3 = await _chunkIZKIM7U5js.S3Service.getPreSignedUrl({
10105
+ const s3 = await _chunkNNCTRU4Ojs.S3Service.getPreSignedUrl({
10034
10106
  key: values.logo,
10035
10107
  contentType,
10036
10108
  isPublic: true
@@ -10042,16 +10114,16 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
10042
10114
  });
10043
10115
  }
10044
10116
  const payload = {
10045
- id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _246 => _246.id]), () => ( _uuid.v4.call(void 0, ))),
10117
+ id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _247 => _247.id]), () => ( _uuid.v4.call(void 0, ))),
10046
10118
  name: values.name,
10047
10119
  logo: files && contentType ? values.logo : void 0,
10048
10120
  featureIds: values.featureIds,
10049
10121
  moduleIds: values.moduleIds
10050
10122
  };
10051
10123
  try {
10052
- const updatedCompany = company ? await _chunkIZKIM7U5js.CompanyService.update(payload) : await _chunkIZKIM7U5js.CompanyService.create(payload);
10124
+ const updatedCompany = company ? await _chunkNNCTRU4Ojs.CompanyService.update(payload) : await _chunkNNCTRU4Ojs.CompanyService.create(payload);
10053
10125
  if (onRevalidate) {
10054
- await onRevalidate(generateUrl({ page: _chunkIZKIM7U5js.Modules.Company, id: updatedCompany.id, language: `[locale]` }));
10126
+ await onRevalidate(generateUrl({ page: _chunkNNCTRU4Ojs.Modules.Company, id: updatedCompany.id, language: `[locale]` }));
10055
10127
  }
10056
10128
  if (company && propagateChanges) {
10057
10129
  _cookiesnext.setCookie.call(void 0, "reloadData", "true", { path: "/" });
@@ -10069,7 +10141,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
10069
10141
  }, "onSubmit");
10070
10142
  _react.useEffect.call(void 0, () => {
10071
10143
  async function fetchFeatures() {
10072
- const allfeatures = await _chunkIZKIM7U5js.FeatureService.findMany({});
10144
+ const allfeatures = await _chunkNNCTRU4Ojs.FeatureService.findMany({});
10073
10145
  if (hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator)) {
10074
10146
  setFeatures(allfeatures);
10075
10147
  } else {
@@ -10077,7 +10149,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
10077
10149
  }
10078
10150
  }
10079
10151
  _chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
10080
- if (open && features.length === 0 && (hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _247 => _247.env, 'access', _248 => _248.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _249 => _249.toLowerCase, 'call', _250 => _250()]) === "true"))
10152
+ if (open && features.length === 0 && (hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _248 => _248.env, 'access', _249 => _249.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _250 => _250.toLowerCase, 'call', _251 => _251()]) === "true"))
10081
10153
  fetchFeatures();
10082
10154
  }, [open, features]);
10083
10155
  _react.useEffect.call(void 0, () => {
@@ -10111,7 +10183,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
10111
10183
  "application/images": [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg"]
10112
10184
  }
10113
10185
  };
10114
- const canAccessFeatures = hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _251 => _251.env, 'access', _252 => _252.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _253 => _253.toLowerCase, 'call', _254 => _254()]) === "true";
10186
+ const canAccessFeatures = hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _252 => _252.env, 'access', _253 => _253.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _254 => _254.toLowerCase, 'call', _255 => _255()]) === "true";
10115
10187
  const isAdministrator2 = hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator);
10116
10188
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
10117
10189
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!company }),
@@ -10120,13 +10192,13 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
10120
10192
  {
10121
10193
  className: `flex max-h-[70vh] w-full ${isAdministrator2 || canAccessFeatures ? `max-w-5xl` : `max-w-4xl`} flex-col overflow-y-auto`,
10122
10194
  children: [
10123
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorHeader, { type: t(`entities.companies`, { count: 1 }), name: _optionalChain([company, 'optionalAccess', _255 => _255.name]) }),
10195
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorHeader, { type: t(`entities.companies`, { count: 1 }), name: _optionalChain([company, 'optionalAccess', _256 => _256.name]) }),
10124
10196
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), className: `flex w-full flex-col gap-y-4`, children: [
10125
10197
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start justify-between gap-x-4", children: [
10126
- /* @__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', _256 => _256.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10198
+ /* @__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', _257 => _257.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10127
10199
  _image2.default,
10128
10200
  {
10129
- src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _257 => _257.logo]) || "",
10201
+ src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _258 => _258.logo]) || "",
10130
10202
  alt: "Company Logo",
10131
10203
  width: 200,
10132
10204
  height: 200
@@ -10165,9 +10237,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyEditor, "CompanyEditor");
10165
10237
  function CompaniesList() {
10166
10238
  const t = _nextintl.useTranslations.call(void 0, );
10167
10239
  const data = useDataListRetriever({
10168
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkIZKIM7U5js.CompanyService.findMany(params), "retriever"),
10240
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkNNCTRU4Ojs.CompanyService.findMany(params), "retriever"),
10169
10241
  retrieverParams: {},
10170
- module: _chunkIZKIM7U5js.Modules.Company
10242
+ module: _chunkNNCTRU4Ojs.Modules.Company
10171
10243
  });
10172
10244
  const functions = [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, {}, "create-account")];
10173
10245
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -10175,7 +10247,7 @@ function CompaniesList() {
10175
10247
  {
10176
10248
  data,
10177
10249
  fields: ["name" /* name */, "createdAt" /* createdAt */],
10178
- tableGeneratorType: _chunkIZKIM7U5js.Modules.Company,
10250
+ tableGeneratorType: _chunkNNCTRU4Ojs.Modules.Company,
10179
10251
  functions,
10180
10252
  title: t(`entities.companies`, { count: 2 })
10181
10253
  }
@@ -10196,14 +10268,14 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
10196
10268
  const t = _nextintl.useTranslations.call(void 0, );
10197
10269
  const { hasPermissionToModule, hasRole } = useCurrentUserContext();
10198
10270
  const [company, setCompany] = _react.useState.call(void 0,
10199
- dehydratedCompany ? _chunkIZKIM7U5js.rehydrate.call(void 0, _chunkIZKIM7U5js.Modules.Company, dehydratedCompany) : void 0
10271
+ dehydratedCompany ? _chunkNNCTRU4Ojs.rehydrate.call(void 0, _chunkNNCTRU4Ojs.Modules.Company, dehydratedCompany) : void 0
10200
10272
  );
10201
10273
  const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
10202
10274
  const response = [];
10203
10275
  if (company)
10204
10276
  response.push({
10205
10277
  name: company.name,
10206
- href: generateUrl({ page: _chunkIZKIM7U5js.Modules.Company })
10278
+ href: generateUrl({ page: _chunkNNCTRU4Ojs.Modules.Company })
10207
10279
  });
10208
10280
  return response;
10209
10281
  }, "breadcrumb");
@@ -10213,9 +10285,9 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
10213
10285
  };
10214
10286
  if (company) response.element = company.name;
10215
10287
  const functions = [];
10216
- if (company && hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator) && hasPermissionToModule({ module: _chunkIZKIM7U5js.Modules.Company, action: "delete" /* Delete */ }))
10288
+ if (company && (hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).CompanyAdministrator)) && hasPermissionToModule({ module: _chunkNNCTRU4Ojs.Modules.Company, action: "delete" /* Delete */ }))
10217
10289
  functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleter, { company }, "companyDeleter"));
10218
- if (hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module: _chunkIZKIM7U5js.Modules.Company, action: "update" /* Update */ })) {
10290
+ if (hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module: _chunkNNCTRU4Ojs.Modules.Company, action: "update" /* Update */ })) {
10219
10291
  functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, { company, propagateChanges: setCompany }, "companyEditor"));
10220
10292
  }
10221
10293
  if (functions.length > 0) response.functions = functions;
@@ -10261,7 +10333,7 @@ function NotificationToast(notification, t, generateUrl, reouter) {
10261
10333
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
10262
10334
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
10263
10335
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
10264
- actor: _nullishCoalesce(_optionalChain([data, 'access', _258 => _258.actor, 'optionalAccess', _259 => _259.name]), () => ( "")),
10336
+ actor: _nullishCoalesce(_optionalChain([data, 'access', _259 => _259.actor, 'optionalAccess', _260 => _260.name]), () => ( "")),
10265
10337
  title: data.title,
10266
10338
  message: _nullishCoalesce(notification.message, () => ( ""))
10267
10339
  }) }),
@@ -10290,7 +10362,7 @@ function NotificationMenuItem({ notification, closePopover }) {
10290
10362
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
10291
10363
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
10292
10364
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
10293
- actor: _nullishCoalesce(_optionalChain([data, 'access', _260 => _260.actor, 'optionalAccess', _261 => _261.name]), () => ( "")),
10365
+ actor: _nullishCoalesce(_optionalChain([data, 'access', _261 => _261.actor, 'optionalAccess', _262 => _262.name]), () => ( "")),
10294
10366
  title: data.title,
10295
10367
  message: _nullishCoalesce(notification.message, () => ( ""))
10296
10368
  }) }),
@@ -10334,7 +10406,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
10334
10406
  setIsLoading(true);
10335
10407
  setError(null);
10336
10408
  try {
10337
- const fetchedNotifications = await _chunkIZKIM7U5js.NotificationService.findMany({});
10409
+ const fetchedNotifications = await _chunkNNCTRU4Ojs.NotificationService.findMany({});
10338
10410
  setNotifications(fetchedNotifications);
10339
10411
  setLastLoaded(Date.now());
10340
10412
  } catch (error2) {
@@ -10347,7 +10419,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
10347
10419
  _react.useEffect.call(void 0, () => {
10348
10420
  if (hasInitiallyLoaded || !currentUser) return;
10349
10421
  if (_chunk2PHWAL6Qjs.isRolesConfigured.call(void 0, )) {
10350
- const isAdmin = _optionalChain([currentUser, 'access', _262 => _262.roles, 'optionalAccess', _263 => _263.some, 'call', _264 => _264(
10422
+ const isAdmin = _optionalChain([currentUser, 'access', _263 => _263.roles, 'optionalAccess', _264 => _264.some, 'call', _265 => _265(
10351
10423
  (role) => role.id === _chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator
10352
10424
  )]);
10353
10425
  if (isAdmin) {
@@ -10364,7 +10436,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
10364
10436
  try {
10365
10437
  const data = {
10366
10438
  data: ids.map((id) => ({
10367
- type: _chunkIZKIM7U5js.Modules.Notification.name,
10439
+ type: _chunkNNCTRU4Ojs.Modules.Notification.name,
10368
10440
  id,
10369
10441
  attributes: {
10370
10442
  isRead: true
@@ -10373,8 +10445,8 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
10373
10445
  relationships: {}
10374
10446
  }))
10375
10447
  };
10376
- await _chunkIZKIM7U5js.NotificationService.markAsRead({ data });
10377
- const allNotifications = await _chunkIZKIM7U5js.NotificationService.findMany({});
10448
+ await _chunkNNCTRU4Ojs.NotificationService.markAsRead({ data });
10449
+ const allNotifications = await _chunkNNCTRU4Ojs.NotificationService.findMany({});
10378
10450
  setNotifications(allNotifications);
10379
10451
  setLastLoaded(Date.now());
10380
10452
  } catch (error2) {
@@ -10551,7 +10623,7 @@ function OnboardingProvider({
10551
10623
  let tourSteps = steps;
10552
10624
  if (!tourSteps) {
10553
10625
  const tour2 = tours.find((t) => t.id === tourId);
10554
- tourSteps = _optionalChain([tour2, 'optionalAccess', _265 => _265.steps]);
10626
+ tourSteps = _optionalChain([tour2, 'optionalAccess', _266 => _266.steps]);
10555
10627
  }
10556
10628
  if (!tourSteps || tourSteps.length === 0) {
10557
10629
  console.warn(`No steps found for tour: ${tourId}`);
@@ -10619,10 +10691,10 @@ function OnboardingProvider({
10619
10691
  when: {
10620
10692
  show: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
10621
10693
  setCurrentStepIndex(index);
10622
- _optionalChain([stepConfig, 'access', _266 => _266.onShow, 'optionalCall', _267 => _267()]);
10694
+ _optionalChain([stepConfig, 'access', _267 => _267.onShow, 'optionalCall', _268 => _268()]);
10623
10695
  }, "show"),
10624
10696
  hide: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
10625
- _optionalChain([stepConfig, 'access', _268 => _268.onHide, 'optionalCall', _269 => _269()]);
10697
+ _optionalChain([stepConfig, 'access', _269 => _269.onHide, 'optionalCall', _270 => _270()]);
10626
10698
  }, "hide")
10627
10699
  }
10628
10700
  });
@@ -10672,18 +10744,18 @@ var RoleProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
10672
10744
  const generateUrl = usePageUrlGenerator();
10673
10745
  const t = _nextintl.useTranslations.call(void 0, );
10674
10746
  const [role, setRole] = _react.useState.call(void 0,
10675
- dehydratedRole ? _chunkIZKIM7U5js.rehydrate.call(void 0, _chunkIZKIM7U5js.Modules.Role, dehydratedRole) : void 0
10747
+ dehydratedRole ? _chunkNNCTRU4Ojs.rehydrate.call(void 0, _chunkNNCTRU4Ojs.Modules.Role, dehydratedRole) : void 0
10676
10748
  );
10677
10749
  const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
10678
10750
  const response = [];
10679
10751
  response.push({
10680
10752
  name: t(`entities.roles`, { count: 2 }),
10681
- href: generateUrl({ page: _chunkIZKIM7U5js.Modules.Role })
10753
+ href: generateUrl({ page: _chunkNNCTRU4Ojs.Modules.Role })
10682
10754
  });
10683
10755
  if (role)
10684
10756
  response.push({
10685
10757
  name: role.name,
10686
- href: generateUrl({ page: _chunkIZKIM7U5js.Modules.Role, id: role.id })
10758
+ href: generateUrl({ page: _chunkNNCTRU4Ojs.Modules.Role, id: role.id })
10687
10759
  });
10688
10760
  return response;
10689
10761
  }, "breadcrumb");
@@ -10810,7 +10882,7 @@ function usePageTracker() {
10810
10882
  if (typeof document !== "undefined") {
10811
10883
  const titleParts = document.title.split("]");
10812
10884
  if (titleParts[1]) {
10813
- const cleanTitle = _optionalChain([titleParts, 'access', _270 => _270[1], 'access', _271 => _271.split, 'call', _272 => _272("|"), 'access', _273 => _273[0], 'optionalAccess', _274 => _274.trim, 'call', _275 => _275()]);
10885
+ const cleanTitle = _optionalChain([titleParts, 'access', _271 => _271[1], 'access', _272 => _272.split, 'call', _273 => _273("|"), 'access', _274 => _274[0], 'optionalAccess', _275 => _275.trim, 'call', _276 => _276()]);
10814
10886
  pageTitle = cleanTitle || foundModule.name;
10815
10887
  }
10816
10888
  }
@@ -10847,7 +10919,7 @@ function usePushNotifications() {
10847
10919
  const register = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
10848
10920
  if ("serviceWorker" in navigator && "PushManager" in window) {
10849
10921
  try {
10850
- const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _276 => _276.id])}`;
10922
+ const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _277 => _277.id])}`;
10851
10923
  const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
10852
10924
  const registration = await navigator.serviceWorker.register(`${_chunk2PHWAL6Qjs.getAppUrl.call(void 0, )}/sw.js`);
10853
10925
  let permission = Notification.permission;
@@ -10874,7 +10946,7 @@ function usePushNotifications() {
10874
10946
  };
10875
10947
  const subscriptionHash = btoa(JSON.stringify(plainSubscription));
10876
10948
  if (lastRegisteredSubscription !== subscriptionHash) {
10877
- await _chunkIZKIM7U5js.PushService.register({ data: plainSubscription });
10949
+ await _chunkNNCTRU4Ojs.PushService.register({ data: plainSubscription });
10878
10950
  sessionStorage.setItem(sessionKey, subscriptionHash);
10879
10951
  }
10880
10952
  } catch (error) {
@@ -10901,7 +10973,7 @@ function useSocket({ token }) {
10901
10973
  const socketRef = _react.useRef.call(void 0, null);
10902
10974
  _react.useEffect.call(void 0, () => {
10903
10975
  if (!token) return;
10904
- const globalSocketKey = `__socket_${_optionalChain([process, 'access', _277 => _277.env, 'access', _278 => _278.NEXT_PUBLIC_API_URL, 'optionalAccess', _279 => _279.replace, 'call', _280 => _280(/[^a-zA-Z0-9]/g, "_")])}`;
10976
+ const globalSocketKey = `__socket_${_optionalChain([process, 'access', _278 => _278.env, 'access', _279 => _279.NEXT_PUBLIC_API_URL, 'optionalAccess', _280 => _280.replace, 'call', _281 => _281(/[^a-zA-Z0-9]/g, "_")])}`;
10905
10977
  if (typeof window !== "undefined") {
10906
10978
  const _allSocketKeys = Object.keys(window).filter((key) => key.startsWith("__socket_"));
10907
10979
  const existingSocket = window[globalSocketKey];
@@ -10957,7 +11029,7 @@ function useSocket({ token }) {
10957
11029
  });
10958
11030
  }, "handleMessage");
10959
11031
  const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
10960
- const notification = _chunkIZKIM7U5js.rehydrate.call(void 0, _chunkIZKIM7U5js.Modules.Notification, data);
11032
+ const notification = _chunkNNCTRU4Ojs.rehydrate.call(void 0, _chunkNNCTRU4Ojs.Modules.Notification, data);
10961
11033
  if (notification) {
10962
11034
  setSocketNotifications((prev) => {
10963
11035
  const newNotifications = [...prev, notification];
@@ -11072,7 +11144,7 @@ function ContentTitle({ module, type, element, functions, className }) {
11072
11144
  setClientFunctions(functions);
11073
11145
  }, [functions]);
11074
11146
  if (!element) return null;
11075
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkIZKIM7U5js.cn.call(void 0, `mb-4 flex items-center justify-between gap-x-4 w-full`, className), children: [
11147
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkNNCTRU4Ojs.cn.call(void 0, `mb-4 flex items-center justify-between gap-x-4 w-full`, className), children: [
11076
11148
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col w-full", children: [
11077
11149
  type && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `text-muted-foreground text-xl font-light flex gap-x-2 items-center`, children: [
11078
11150
  module && module.icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, module.icon, { className: "w-5 h-5 inline-block" }),
@@ -11190,7 +11262,7 @@ function PageContainer({ children, testId, className }) {
11190
11262
  const headerChildren = useHeaderChildren();
11191
11263
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex h-full w-full flex-col`, "data-testid": testId, children: [
11192
11264
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header, { children: headerChildren }),
11193
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className: _chunkIZKIM7U5js.cn.call(void 0, `flex w-full flex-1 flex-col gap-y-4 pt-4 pl-4 pr-4 pb-20`, className), children })
11265
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className: _chunkNNCTRU4Ojs.cn.call(void 0, `flex w-full flex-1 flex-col gap-y-4 pt-4 pl-4 pr-4 pb-20`, className), children })
11194
11266
  ] });
11195
11267
  }
11196
11268
  _chunk7QVYU63Ejs.__name.call(void 0, PageContainer, "PageContainer");
@@ -11299,7 +11371,7 @@ function TabsContainer({
11299
11371
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11300
11372
  TabsList,
11301
11373
  {
11302
- className: _chunkIZKIM7U5js.cn.call(void 0,
11374
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
11303
11375
  `${style ? `my-4 flex w-full justify-start rounded-none border-b bg-transparent pb-0` : ``}`,
11304
11376
  tabsListClassName
11305
11377
  ),
@@ -11307,7 +11379,7 @@ function TabsContainer({
11307
11379
  TabsTrigger,
11308
11380
  {
11309
11381
  value: tab.label,
11310
- className: _chunkIZKIM7U5js.cn.call(void 0,
11382
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
11311
11383
  `${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`}`,
11312
11384
  tabsTriggerClassName
11313
11385
  ),
@@ -11327,7 +11399,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, TabsContainer, "TabsContainer");
11327
11399
  // src/components/contents/AttributeElement.tsx
11328
11400
 
11329
11401
  function AttributeElement({ inline, title, value, className }) {
11330
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkIZKIM7U5js.cn.call(void 0, `flex ${inline === true ? "flex-row" : "flex-col"} my-1 justify-start`, className), children: [
11402
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkNNCTRU4Ojs.cn.call(void 0, `flex ${inline === true ? "flex-row" : "flex-col"} my-1 justify-start`, className), children: [
11331
11403
  title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${inline === true ? "min-w-48 pr-4" : "w-full"} text-sm font-semibold`, children: title }),
11332
11404
  value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col text-sm", children: value })
11333
11405
  ] });
@@ -11350,7 +11422,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AllowedUsersDetails, "AllowedUsersDetails")
11350
11422
  var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
11351
11423
 
11352
11424
 
11353
- var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-3NFHRHR5.js"))), {
11425
+ var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-N3J42SBY.js"))), {
11354
11426
  ssr: false
11355
11427
  });
11356
11428
  var BlockNoteEditorContainer = React3.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
@@ -11401,7 +11473,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, PageContainerContentDetails, "PageContainer
11401
11473
 
11402
11474
  function PageContentContainer({ header, details, footer, content }) {
11403
11475
  const [mounted, setMounted] = _react.useState.call(void 0, false);
11404
- const isMobile = _chunkIZKIM7U5js.useIsMobile.call(void 0, );
11476
+ const isMobile = _chunkNNCTRU4Ojs.useIsMobile.call(void 0, );
11405
11477
  _react.useEffect.call(void 0, () => {
11406
11478
  setMounted(true);
11407
11479
  }, []);
@@ -11475,10 +11547,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
11475
11547
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11476
11548
  Checkbox,
11477
11549
  {
11478
- checked: _optionalChain([params, 'access', _281 => _281.checkedIds, 'optionalAccess', _282 => _282.includes, 'call', _283 => _283(row.getValue(params.name))]) || false,
11550
+ checked: _optionalChain([params, 'access', _282 => _282.checkedIds, 'optionalAccess', _283 => _283.includes, 'call', _284 => _284(row.getValue(params.name))]) || false,
11479
11551
  onCheckedChange: (value) => {
11480
11552
  row.toggleSelected(!!value);
11481
- _optionalChain([params, 'access', _284 => _284.toggleId, 'optionalCall', _285 => _285(row.getValue(params.name))]);
11553
+ _optionalChain([params, 'access', _285 => _285.toggleId, 'optionalCall', _286 => _286(row.getValue(params.name))]);
11482
11554
  },
11483
11555
  "aria-label": "Select row"
11484
11556
  }
@@ -11537,7 +11609,7 @@ function useJsonApiGet(params) {
11537
11609
  const [response, setResponse] = _react.useState.call(void 0, null);
11538
11610
  const isMounted = _react.useRef.call(void 0, true);
11539
11611
  const fetchData = _react.useCallback.call(void 0, async () => {
11540
- if (_optionalChain([params, 'access', _286 => _286.options, 'optionalAccess', _287 => _287.enabled]) === false) return;
11612
+ if (_optionalChain([params, 'access', _287 => _287.options, 'optionalAccess', _288 => _288.enabled]) === false) return;
11541
11613
  setLoading(true);
11542
11614
  setError(null);
11543
11615
  try {
@@ -11564,9 +11636,9 @@ function useJsonApiGet(params) {
11564
11636
  setLoading(false);
11565
11637
  }
11566
11638
  }
11567
- }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _288 => _288.options, 'optionalAccess', _289 => _289.enabled])]);
11639
+ }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _289 => _289.options, 'optionalAccess', _290 => _290.enabled])]);
11568
11640
  const fetchNextPage = _react.useCallback.call(void 0, async () => {
11569
- if (!_optionalChain([response, 'optionalAccess', _290 => _290.nextPage])) return;
11641
+ if (!_optionalChain([response, 'optionalAccess', _291 => _291.nextPage])) return;
11570
11642
  setLoading(true);
11571
11643
  try {
11572
11644
  const nextResponse = await response.nextPage();
@@ -11587,7 +11659,7 @@ function useJsonApiGet(params) {
11587
11659
  }
11588
11660
  }, [response]);
11589
11661
  const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
11590
- if (!_optionalChain([response, 'optionalAccess', _291 => _291.prevPage])) return;
11662
+ if (!_optionalChain([response, 'optionalAccess', _292 => _292.prevPage])) return;
11591
11663
  setLoading(true);
11592
11664
  try {
11593
11665
  const prevResponse = await response.prevPage();
@@ -11613,15 +11685,15 @@ function useJsonApiGet(params) {
11613
11685
  return () => {
11614
11686
  isMounted.current = false;
11615
11687
  };
11616
- }, [fetchData, ..._optionalChain([params, 'access', _292 => _292.options, 'optionalAccess', _293 => _293.deps]) || []]);
11688
+ }, [fetchData, ..._optionalChain([params, 'access', _293 => _293.options, 'optionalAccess', _294 => _294.deps]) || []]);
11617
11689
  return {
11618
11690
  data,
11619
11691
  loading,
11620
11692
  error,
11621
11693
  response,
11622
11694
  refetch: fetchData,
11623
- hasNextPage: !!_optionalChain([response, 'optionalAccess', _294 => _294.next]),
11624
- hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _295 => _295.prev]),
11695
+ hasNextPage: !!_optionalChain([response, 'optionalAccess', _295 => _295.next]),
11696
+ hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _296 => _296.prev]),
11625
11697
  fetchNextPage,
11626
11698
  fetchPreviousPage
11627
11699
  };
@@ -11699,17 +11771,17 @@ function useJsonApiMutation(config) {
11699
11771
  if (apiResponse.ok) {
11700
11772
  const resultData = apiResponse.data;
11701
11773
  setData(resultData);
11702
- _optionalChain([config, 'access', _296 => _296.onSuccess, 'optionalCall', _297 => _297(resultData)]);
11774
+ _optionalChain([config, 'access', _297 => _297.onSuccess, 'optionalCall', _298 => _298(resultData)]);
11703
11775
  return resultData;
11704
11776
  } else {
11705
11777
  setError(apiResponse.error);
11706
- _optionalChain([config, 'access', _298 => _298.onError, 'optionalCall', _299 => _299(apiResponse.error)]);
11778
+ _optionalChain([config, 'access', _299 => _299.onError, 'optionalCall', _300 => _300(apiResponse.error)]);
11707
11779
  return null;
11708
11780
  }
11709
11781
  } catch (err) {
11710
11782
  const errorMessage = err instanceof Error ? err.message : "Unknown error";
11711
11783
  setError(errorMessage);
11712
- _optionalChain([config, 'access', _300 => _300.onError, 'optionalCall', _301 => _301(errorMessage)]);
11784
+ _optionalChain([config, 'access', _301 => _301.onError, 'optionalCall', _302 => _302(errorMessage)]);
11713
11785
  return null;
11714
11786
  } finally {
11715
11787
  setLoading(false);
@@ -11733,14 +11805,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, useJsonApiMutation, "useJsonApiMutation");
11733
11805
  function useRehydration(classKey, data) {
11734
11806
  return _react.useMemo.call(void 0, () => {
11735
11807
  if (!data) return null;
11736
- return _chunkIZKIM7U5js.RehydrationFactory.rehydrate(classKey, data);
11808
+ return _chunkNNCTRU4Ojs.RehydrationFactory.rehydrate(classKey, data);
11737
11809
  }, [classKey, data]);
11738
11810
  }
11739
11811
  _chunk7QVYU63Ejs.__name.call(void 0, useRehydration, "useRehydration");
11740
11812
  function useRehydrationList(classKey, data) {
11741
11813
  return _react.useMemo.call(void 0, () => {
11742
11814
  if (!data || data.length === 0) return [];
11743
- return _chunkIZKIM7U5js.RehydrationFactory.rehydrateList(classKey, data);
11815
+ return _chunkNNCTRU4Ojs.RehydrationFactory.rehydrateList(classKey, data);
11744
11816
  }, [classKey, data]);
11745
11817
  }
11746
11818
  _chunk7QVYU63Ejs.__name.call(void 0, useRehydrationList, "useRehydrationList");
@@ -11782,9 +11854,9 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
11782
11854
  {
11783
11855
  href: hasRole(_chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
11784
11856
  page: "/administration",
11785
- id: _optionalChain([_chunkIZKIM7U5js.Modules, 'access', _302 => _302.Company, 'access', _303 => _303.pageUrl, 'optionalAccess', _304 => _304.substring, 'call', _305 => _305(1)]),
11857
+ id: _optionalChain([_chunkNNCTRU4Ojs.Modules, 'access', _303 => _303.Company, 'access', _304 => _304.pageUrl, 'optionalAccess', _305 => _305.substring, 'call', _306 => _306(1)]),
11786
11858
  childPage: company.id
11787
- }) : generateUrl({ page: _chunkIZKIM7U5js.Modules.Company, id: company.id }),
11859
+ }) : generateUrl({ page: _chunkNNCTRU4Ojs.Modules.Company, id: company.id }),
11788
11860
  children: row.getValue("name")
11789
11861
  }
11790
11862
  );
@@ -11798,7 +11870,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
11798
11870
  })
11799
11871
  };
11800
11872
  const columns = _react.useMemo.call(void 0, () => {
11801
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _306 => _306[field], 'optionalCall', _307 => _307()])).filter((col) => col !== void 0);
11873
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _307 => _307[field], 'optionalCall', _308 => _308()])).filter((col) => col !== void 0);
11802
11874
  }, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
11803
11875
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
11804
11876
  }, "useCompanyTableStructure");
@@ -11810,7 +11882,7 @@ var GRACE_DAYS = 3;
11810
11882
  var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
11811
11883
  if (!currentUser || !_chunk2PHWAL6Qjs.isRolesConfigured.call(void 0, )) return false;
11812
11884
  const adminRoleId = _chunk2PHWAL6Qjs.getRoleId.call(void 0, ).Administrator;
11813
- return !!_optionalChain([currentUser, 'access', _308 => _308.roles, 'optionalAccess', _309 => _309.some, 'call', _310 => _310((role) => role.id === adminRoleId)]);
11885
+ return !!_optionalChain([currentUser, 'access', _309 => _309.roles, 'optionalAccess', _310 => _310.some, 'call', _311 => _311((role) => role.id === adminRoleId)]);
11814
11886
  }, "isAdministrator");
11815
11887
  function useSubscriptionStatus() {
11816
11888
  const { company, currentUser } = useCurrentUserContext();
@@ -11899,7 +11971,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
11899
11971
  header: t(`role.fields.name.label`),
11900
11972
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
11901
11973
  const role = row.original.jsonApiData;
11902
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunkIZKIM7U5js.Modules.Role, id: role.id }), children: row.getValue("name") });
11974
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunkNNCTRU4Ojs.Modules.Role, id: role.id }), children: row.getValue("name") });
11903
11975
  }, "cell"),
11904
11976
  enableSorting: false,
11905
11977
  enableHiding: false
@@ -11918,7 +11990,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
11918
11990
  })
11919
11991
  };
11920
11992
  const columns = _react.useMemo.call(void 0, () => {
11921
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _311 => _311[field], 'optionalCall', _312 => _312()])).filter((col) => col !== void 0);
11993
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _312 => _312[field], 'optionalCall', _313 => _313()])).filter((col) => col !== void 0);
11922
11994
  }, [params.fields, fieldColumnMap, t, generateUrl]);
11923
11995
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
11924
11996
  }, "useRoleTableStructure");
@@ -11936,7 +12008,7 @@ var useUserSearch = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
11936
12008
  if (search === searchQueryRef.current && users.length > 0) return;
11937
12009
  setIsLoading(true);
11938
12010
  searchQueryRef.current = search;
11939
- const fetchedUsers = await _chunkIZKIM7U5js.UserService.findMany({ search, fetchAll: true });
12011
+ const fetchedUsers = await _chunkNNCTRU4Ojs.UserService.findMany({ search, fetchAll: true });
11940
12012
  setUsers(fetchedUsers);
11941
12013
  } catch (error) {
11942
12014
  console.error("Failed to load users:", error);
@@ -12002,8 +12074,8 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
12002
12074
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
12003
12075
  Link,
12004
12076
  {
12005
- href: generateUrl({ page: _chunkIZKIM7U5js.Modules.User, id: user.id }),
12006
- className: _chunkIZKIM7U5js.cn.call(void 0,
12077
+ href: generateUrl({ page: _chunkNNCTRU4Ojs.Modules.User, id: user.id }),
12078
+ className: _chunkNNCTRU4Ojs.cn.call(void 0,
12007
12079
  `flex items-center justify-start gap-2`,
12008
12080
  user.isDeleted || !user.isActivated ? "text-muted-foreground italic" : ""
12009
12081
  ),
@@ -12061,7 +12133,7 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
12061
12133
  })
12062
12134
  };
12063
12135
  const columns = _react.useMemo.call(void 0, () => {
12064
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _313 => _313[field], 'optionalCall', _314 => _314()])).filter((col) => col !== void 0);
12136
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _314 => _314[field], 'optionalCall', _315 => _315()])).filter((col) => col !== void 0);
12065
12137
  }, [params.fields, fieldColumnMap, t, generateUrl]);
12066
12138
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
12067
12139
  }, "useUserTableStructure");
@@ -12097,11 +12169,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
12097
12169
  header: t(`content.fields.name.label`),
12098
12170
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
12099
12171
  const content = row.original.jsonApiData;
12100
- const contentModule = content.contentType ? _chunkIZKIM7U5js.Modules.findByModelName(content.contentType) : void 0;
12172
+ const contentModule = content.contentType ? _chunkNNCTRU4Ojs.Modules.findByModelName(content.contentType) : void 0;
12101
12173
  const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
12102
12174
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
12103
12175
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { className: "flex items-center justify-start space-x-2", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
12104
- contentModule && _chunkIZKIM7U5js.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
12176
+ contentModule && _chunkNNCTRU4Ojs.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
12105
12177
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: link, children: content.name })
12106
12178
  ] }) }),
12107
12179
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: content.tldr })
@@ -12162,11 +12234,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
12162
12234
  return params.fields.map((field) => {
12163
12235
  const localHandler = fieldColumnMap[field];
12164
12236
  if (localHandler) return localHandler();
12165
- const customHandler = _optionalChain([params, 'access', _315 => _315.context, 'optionalAccess', _316 => _316.customCells, 'optionalAccess', _317 => _317[field]]);
12237
+ const customHandler = _optionalChain([params, 'access', _316 => _316.context, 'optionalAccess', _317 => _317.customCells, 'optionalAccess', _318 => _318[field]]);
12166
12238
  if (customHandler) return customHandler({ t });
12167
12239
  return void 0;
12168
12240
  }).filter((col) => col !== void 0);
12169
- }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _318 => _318.context, 'optionalAccess', _319 => _319.customCells])]);
12241
+ }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _319 => _319.context, 'optionalAccess', _320 => _320.customCells])]);
12170
12242
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
12171
12243
  }, "useContentTableStructure");
12172
12244
 
@@ -12238,7 +12310,7 @@ function useOAuthClients() {
12238
12310
  setIsLoading(true);
12239
12311
  setError(null);
12240
12312
  try {
12241
- const fetchedClients = await _chunkIZKIM7U5js.OAuthService.listClients();
12313
+ const fetchedClients = await _chunkNNCTRU4Ojs.OAuthService.listClients();
12242
12314
  setClients(fetchedClients);
12243
12315
  } catch (err) {
12244
12316
  console.error("[useOAuthClients] Failed to fetch clients:", err);
@@ -12255,7 +12327,7 @@ function useOAuthClients() {
12255
12327
  setIsLoading(true);
12256
12328
  setError(null);
12257
12329
  try {
12258
- const result = await _chunkIZKIM7U5js.OAuthService.createClient(data);
12330
+ const result = await _chunkNNCTRU4Ojs.OAuthService.createClient(data);
12259
12331
  addClient(result.client);
12260
12332
  if (result.clientSecret) {
12261
12333
  setNewClientSecret({
@@ -12302,7 +12374,7 @@ function useOAuthClient(clientId) {
12302
12374
  setIsLoading(true);
12303
12375
  setError(null);
12304
12376
  try {
12305
- const fetched = await _chunkIZKIM7U5js.OAuthService.getClient({ clientId });
12377
+ const fetched = await _chunkNNCTRU4Ojs.OAuthService.getClient({ clientId });
12306
12378
  setFetchedClient(fetched);
12307
12379
  } catch (err) {
12308
12380
  console.error("[useOAuthClient] Failed to fetch client:", err);
@@ -12322,7 +12394,7 @@ function useOAuthClient(clientId) {
12322
12394
  setIsLoading(true);
12323
12395
  setError(null);
12324
12396
  try {
12325
- const updated = await _chunkIZKIM7U5js.OAuthService.updateClient({ clientId, data });
12397
+ const updated = await _chunkNNCTRU4Ojs.OAuthService.updateClient({ clientId, data });
12326
12398
  updateClientInStore(updated);
12327
12399
  setFetchedClient(updated);
12328
12400
  } catch (err) {
@@ -12341,7 +12413,7 @@ function useOAuthClient(clientId) {
12341
12413
  setIsLoading(true);
12342
12414
  setError(null);
12343
12415
  try {
12344
- await _chunkIZKIM7U5js.OAuthService.deleteClient({ clientId });
12416
+ await _chunkNNCTRU4Ojs.OAuthService.deleteClient({ clientId });
12345
12417
  removeClientFromStore(clientId);
12346
12418
  } catch (err) {
12347
12419
  console.error("[useOAuthClient] Failed to delete client:", err);
@@ -12357,7 +12429,7 @@ function useOAuthClient(clientId) {
12357
12429
  setIsLoading(true);
12358
12430
  setError(null);
12359
12431
  try {
12360
- const result = await _chunkIZKIM7U5js.OAuthService.regenerateSecret({ clientId });
12432
+ const result = await _chunkNNCTRU4Ojs.OAuthService.regenerateSecret({ clientId });
12361
12433
  setNewClientSecret({
12362
12434
  clientId,
12363
12435
  secret: result.clientSecret
@@ -12401,7 +12473,7 @@ function useOAuthConsent(params) {
12401
12473
  setIsLoading(true);
12402
12474
  setError(null);
12403
12475
  try {
12404
- const info = await _chunkIZKIM7U5js.OAuthService.getAuthorizationInfo(params);
12476
+ const info = await _chunkNNCTRU4Ojs.OAuthService.getAuthorizationInfo(params);
12405
12477
  setClientInfo(info);
12406
12478
  } catch (err) {
12407
12479
  console.error("[useOAuthConsent] Failed to fetch authorization info:", err);
@@ -12423,7 +12495,7 @@ function useOAuthConsent(params) {
12423
12495
  setIsSubmitting(true);
12424
12496
  setError(null);
12425
12497
  try {
12426
- const result = await _chunkIZKIM7U5js.OAuthService.approveAuthorization(params);
12498
+ const result = await _chunkNNCTRU4Ojs.OAuthService.approveAuthorization(params);
12427
12499
  if (result.redirectUrl) {
12428
12500
  window.location.href = result.redirectUrl;
12429
12501
  }
@@ -12437,7 +12509,7 @@ function useOAuthConsent(params) {
12437
12509
  setIsSubmitting(true);
12438
12510
  setError(null);
12439
12511
  try {
12440
- const result = await _chunkIZKIM7U5js.OAuthService.denyAuthorization(params);
12512
+ const result = await _chunkNNCTRU4Ojs.OAuthService.denyAuthorization(params);
12441
12513
  if (result.redirectUrl) {
12442
12514
  window.location.href = result.redirectUrl;
12443
12515
  }
@@ -12501,7 +12573,7 @@ function ContentTableSearch({ data }) {
12501
12573
  const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
12502
12574
  if (!isExpanded) {
12503
12575
  setIsFocused(true);
12504
- setTimeout(() => _optionalChain([inputRef, 'access', _320 => _320.current, 'optionalAccess', _321 => _321.focus, 'call', _322 => _322()]), 50);
12576
+ setTimeout(() => _optionalChain([inputRef, 'access', _321 => _321.current, 'optionalAccess', _322 => _322.focus, 'call', _323 => _323()]), 50);
12505
12577
  }
12506
12578
  }, "handleSearchIconClick");
12507
12579
  const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
@@ -12564,7 +12636,7 @@ var EMPTY_ARRAY = [];
12564
12636
  var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function ContentListTable2(props) {
12565
12637
  const { data, fields, checkedIds, toggleId, allowSearch, filters } = props;
12566
12638
  const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
12567
- data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _323 => _323.data]), () => ( EMPTY_ARRAY)),
12639
+ data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _324 => _324.data]), () => ( EMPTY_ARRAY)),
12568
12640
  fields,
12569
12641
  checkedIds,
12570
12642
  toggleId,
@@ -12605,7 +12677,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
12605
12677
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
12606
12678
  }) }, headerGroup.id))
12607
12679
  ] }),
12608
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _324 => _324.rows, 'optionalAccess', _325 => _325.length]) ? rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id)) }, row.id)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "h-24 text-center", children: "No results." }) }) }),
12680
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _325 => _325.rows, 'optionalAccess', _326 => _326.length]) ? rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id)) }, row.id)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "h-24 text-center", children: "No results." }) }) }),
12609
12681
  showFooter && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableFooter, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, 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: [
12610
12682
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12611
12683
  Button,
@@ -12614,7 +12686,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
12614
12686
  size: "sm",
12615
12687
  onClick: (e) => {
12616
12688
  e.preventDefault();
12617
- _optionalChain([data, 'access', _326 => _326.previous, 'optionalCall', _327 => _327(true)]);
12689
+ _optionalChain([data, 'access', _327 => _327.previous, 'optionalCall', _328 => _328(true)]);
12618
12690
  },
12619
12691
  disabled: !data.previous,
12620
12692
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
@@ -12628,7 +12700,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
12628
12700
  size: "sm",
12629
12701
  onClick: (e) => {
12630
12702
  e.preventDefault();
12631
- _optionalChain([data, 'access', _328 => _328.next, 'optionalCall', _329 => _329(true)]);
12703
+ _optionalChain([data, 'access', _329 => _329.next, 'optionalCall', _330 => _330(true)]);
12632
12704
  },
12633
12705
  disabled: !data.next,
12634
12706
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" })
@@ -12741,7 +12813,7 @@ function Register() {
12741
12813
  marketingConsent: _nullishCoalesce(values.marketingConsent, () => ( false)),
12742
12814
  marketingConsentAt: values.marketingConsent ? (/* @__PURE__ */ new Date()).toISOString() : null
12743
12815
  };
12744
- await _chunkIZKIM7U5js.AuthService.register(payload);
12816
+ await _chunkNNCTRU4Ojs.AuthService.register(payload);
12745
12817
  setShowConfirmation(true);
12746
12818
  } catch (e) {
12747
12819
  errorToast({ error: e });
@@ -12995,7 +13067,7 @@ function AcceptInvitation() {
12995
13067
  const payload = {
12996
13068
  code
12997
13069
  };
12998
- await _chunkIZKIM7U5js.AuthService.validateCode(payload);
13070
+ await _chunkNNCTRU4Ojs.AuthService.validateCode(payload);
12999
13071
  } catch (e) {
13000
13072
  setError(e instanceof Error ? e.message : String(e));
13001
13073
  errorToast({ title: t(`common.errors.error`), error: e });
@@ -13028,14 +13100,14 @@ function AcceptInvitation() {
13028
13100
  });
13029
13101
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
13030
13102
  try {
13031
- if (!_optionalChain([params, 'optionalAccess', _330 => _330.code])) return;
13103
+ if (!_optionalChain([params, 'optionalAccess', _331 => _331.code])) return;
13032
13104
  const payload = {
13033
- code: _optionalChain([params, 'optionalAccess', _331 => _331.code]),
13105
+ code: _optionalChain([params, 'optionalAccess', _332 => _332.code]),
13034
13106
  password: values.password
13035
13107
  };
13036
- await _chunkIZKIM7U5js.AuthService.acceptInvitation(payload);
13108
+ await _chunkNNCTRU4Ojs.AuthService.acceptInvitation(payload);
13037
13109
  setShowConfirmation(true);
13038
- _chunkIZKIM7U5js.showToast.call(void 0, t("auth.account_activated"), {
13110
+ _chunkNNCTRU4Ojs.showToast.call(void 0, t("auth.account_activated"), {
13039
13111
  description: t("auth.account_activated_description")
13040
13112
  });
13041
13113
  setTimeout(() => {
@@ -13095,10 +13167,10 @@ function ActivateAccount() {
13095
13167
  const payload = {
13096
13168
  activationCode: code
13097
13169
  };
13098
- await _chunkIZKIM7U5js.AuthService.activate(payload);
13170
+ await _chunkNNCTRU4Ojs.AuthService.activate(payload);
13099
13171
  setShowConfirmation(true);
13100
13172
  setParams(void 0);
13101
- _chunkIZKIM7U5js.showToast.call(void 0, t("auth.account_activated"), {
13173
+ _chunkNNCTRU4Ojs.showToast.call(void 0, t("auth.account_activated"), {
13102
13174
  description: t("auth.account_activated_description")
13103
13175
  });
13104
13176
  setTimeout(() => {
@@ -13138,8 +13210,8 @@ function Cookies({ dehydratedAuth, page }) {
13138
13210
  _react.useEffect.call(void 0, () => {
13139
13211
  if (hasSaved) return;
13140
13212
  async function saveTokenOnServer() {
13141
- await _chunkIZKIM7U5js.AuthService.saveToken({ dehydratedAuth });
13142
- const auth = _chunkIZKIM7U5js.rehydrate.call(void 0, _chunkIZKIM7U5js.Modules.Auth, dehydratedAuth);
13213
+ await _chunkNNCTRU4Ojs.AuthService.saveToken({ dehydratedAuth });
13214
+ const auth = _chunkNNCTRU4Ojs.rehydrate.call(void 0, _chunkNNCTRU4Ojs.Modules.Auth, dehydratedAuth);
13143
13215
  setUser(auth.user);
13144
13216
  setHasSaved(true);
13145
13217
  if (page) {
@@ -13182,7 +13254,7 @@ function ForgotPassword() {
13182
13254
  const payload = {
13183
13255
  email: values.email
13184
13256
  };
13185
- await _chunkIZKIM7U5js.AuthService.initialiseForgotPassword(payload);
13257
+ await _chunkNNCTRU4Ojs.AuthService.initialiseForgotPassword(payload);
13186
13258
  setShowConfirmation(true);
13187
13259
  } catch (e) {
13188
13260
  errorToast({ error: e });
@@ -13253,7 +13325,7 @@ function Login() {
13253
13325
  });
13254
13326
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
13255
13327
  try {
13256
- const user = await _chunkIZKIM7U5js.AuthService.login({
13328
+ const user = await _chunkNNCTRU4Ojs.AuthService.login({
13257
13329
  email: values.email,
13258
13330
  password: values.password
13259
13331
  });
@@ -13336,7 +13408,7 @@ function Logout() {
13336
13408
  const generateUrl = usePageUrlGenerator();
13337
13409
  _react.useEffect.call(void 0, () => {
13338
13410
  const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
13339
- await _chunkIZKIM7U5js.AuthService.logout();
13411
+ await _chunkNNCTRU4Ojs.AuthService.logout();
13340
13412
  window.location.href = generateUrl({ page: `/` });
13341
13413
  }, "logOut");
13342
13414
  logOut();
@@ -13351,19 +13423,19 @@ _chunk7QVYU63Ejs.__name.call(void 0, Logout, "Logout");
13351
13423
  function RefreshUser() {
13352
13424
  const { setUser } = useCurrentUserContext();
13353
13425
  const loadFullUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
13354
- const fullUser = await _chunkIZKIM7U5js.UserService.findFullUser();
13426
+ const fullUser = await _chunkNNCTRU4Ojs.UserService.findFullUser();
13355
13427
  if (fullUser) {
13356
13428
  setUser(fullUser);
13357
13429
  const token = {
13358
13430
  userId: fullUser.id,
13359
- companyId: _optionalChain([fullUser, 'access', _332 => _332.company, 'optionalAccess', _333 => _333.id]),
13431
+ companyId: _optionalChain([fullUser, 'access', _333 => _333.company, 'optionalAccess', _334 => _334.id]),
13360
13432
  roles: fullUser.roles.map((role) => role.id),
13361
- features: _nullishCoalesce(_optionalChain([fullUser, 'access', _334 => _334.company, 'optionalAccess', _335 => _335.features, 'optionalAccess', _336 => _336.map, 'call', _337 => _337((feature) => feature.id)]), () => ( [])),
13433
+ features: _nullishCoalesce(_optionalChain([fullUser, 'access', _335 => _335.company, 'optionalAccess', _336 => _336.features, 'optionalAccess', _337 => _337.map, 'call', _338 => _338((feature) => feature.id)]), () => ( [])),
13362
13434
  modules: fullUser.modules.map((module) => {
13363
13435
  return { id: module.id, permissions: module.permissions };
13364
13436
  })
13365
13437
  };
13366
- await _optionalChain([_chunkIZKIM7U5js.getTokenHandler.call(void 0, ), 'optionalAccess', _338 => _338.updateToken, 'call', _339 => _339(token)]);
13438
+ await _optionalChain([_chunkNNCTRU4Ojs.getTokenHandler.call(void 0, ), 'optionalAccess', _339 => _339.updateToken, 'call', _340 => _340(token)]);
13367
13439
  _cookiesnext.deleteCookie.call(void 0, "reloadData");
13368
13440
  }
13369
13441
  }, "loadFullUser");
@@ -13394,7 +13466,7 @@ function ResetPassword() {
13394
13466
  const payload = {
13395
13467
  code
13396
13468
  };
13397
- await _chunkIZKIM7U5js.AuthService.validateCode(payload);
13469
+ await _chunkNNCTRU4Ojs.AuthService.validateCode(payload);
13398
13470
  } catch (e) {
13399
13471
  setError(e instanceof Error ? e.message : String(e));
13400
13472
  errorToast({ title: t(`common.errors.error`), error: e });
@@ -13427,14 +13499,14 @@ function ResetPassword() {
13427
13499
  });
13428
13500
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
13429
13501
  try {
13430
- if (!_optionalChain([params, 'optionalAccess', _340 => _340.code])) return;
13502
+ if (!_optionalChain([params, 'optionalAccess', _341 => _341.code])) return;
13431
13503
  const payload = {
13432
- code: _optionalChain([params, 'optionalAccess', _341 => _341.code]),
13504
+ code: _optionalChain([params, 'optionalAccess', _342 => _342.code]),
13433
13505
  password: values.password
13434
13506
  };
13435
- await _chunkIZKIM7U5js.AuthService.resetPassword(payload);
13507
+ await _chunkNNCTRU4Ojs.AuthService.resetPassword(payload);
13436
13508
  setShowConfirmation(true);
13437
- _chunkIZKIM7U5js.showToast.call(void 0, t(`auth.reset_success`), {
13509
+ _chunkNNCTRU4Ojs.showToast.call(void 0, t(`auth.reset_success`), {
13438
13510
  description: t(`auth.reset_success_description`)
13439
13511
  });
13440
13512
  setTimeout(() => {
@@ -13475,12 +13547,12 @@ function ContentsList({ contentList }) {
13475
13547
  _chunk7QVYU63Ejs.__name.call(void 0, ContentsList, "ContentsList");
13476
13548
  function ContentsListElement({ content }) {
13477
13549
  const generateUrl = usePageUrlGenerator();
13478
- const contentModule = content.contentType ? _chunkIZKIM7U5js.Modules.findByModelName(content.contentType) : void 0;
13550
+ const contentModule = content.contentType ? _chunkNNCTRU4Ojs.Modules.findByModelName(content.contentType) : void 0;
13479
13551
  const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
13480
13552
  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: [
13481
13553
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCard, { children: [
13482
13554
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HoverCardTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Link, { href: link, className: "flex w-full items-center justify-start gap-2 font-semibold", children: [
13483
- contentModule && _chunkIZKIM7U5js.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
13555
+ contentModule && _chunkNNCTRU4Ojs.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
13484
13556
  content.name
13485
13557
  ] }) }),
13486
13558
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCardContent, { className: "flex max-h-96 w-96 flex-col gap-y-4 overflow-y-auto", children: [
@@ -13499,8 +13571,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListElement, "ContentsListElement")
13499
13571
  function ContentsListById({ contentIds }) {
13500
13572
  const t = _nextintl.useTranslations.call(void 0, );
13501
13573
  const data = useDataListRetriever({
13502
- module: _chunkIZKIM7U5js.Modules.Content,
13503
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkIZKIM7U5js.ContentService.findMany(params), "retriever"),
13574
+ module: _chunkNNCTRU4Ojs.Modules.Content,
13575
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkNNCTRU4Ojs.ContentService.findMany(params), "retriever"),
13504
13576
  retrieverParams: { contentIds }
13505
13577
  });
13506
13578
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -13508,7 +13580,7 @@ function ContentsListById({ contentIds }) {
13508
13580
  {
13509
13581
  data,
13510
13582
  fields: ["name" /* name */, "authors" /* authors */, "updatedAt" /* updatedAt */],
13511
- tableGeneratorType: _chunkIZKIM7U5js.Modules.Content,
13583
+ tableGeneratorType: _chunkNNCTRU4Ojs.Modules.Content,
13512
13584
  title: t(`common.relevant`)
13513
13585
  }
13514
13586
  );
@@ -13521,8 +13593,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListById, "ContentsListById");
13521
13593
  function RelevantContentsList({ id }) {
13522
13594
  const t = _nextintl.useTranslations.call(void 0, );
13523
13595
  const data = useDataListRetriever({
13524
- module: _chunkIZKIM7U5js.Modules.Content,
13525
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkIZKIM7U5js.ContentService.findRelevant(params), "retriever"),
13596
+ module: _chunkNNCTRU4Ojs.Modules.Content,
13597
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkNNCTRU4Ojs.ContentService.findRelevant(params), "retriever"),
13526
13598
  retrieverParams: { id }
13527
13599
  });
13528
13600
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -13530,7 +13602,7 @@ function RelevantContentsList({ id }) {
13530
13602
  {
13531
13603
  data,
13532
13604
  fields: ["name" /* name */, "authors" /* authors */, "relevance" /* relevance */, "updatedAt" /* updatedAt */],
13533
- tableGeneratorType: _chunkIZKIM7U5js.Modules.Content,
13605
+ tableGeneratorType: _chunkNNCTRU4Ojs.Modules.Content,
13534
13606
  title: t(`common.relevant`)
13535
13607
  }
13536
13608
  );
@@ -13583,12 +13655,12 @@ function NotificationsList({ archived }) {
13583
13655
  const t = _nextintl.useTranslations.call(void 0, );
13584
13656
  const generateUrl = usePageUrlGenerator();
13585
13657
  const data = useDataListRetriever({
13586
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkIZKIM7U5js.NotificationService.findMany(params), "retriever"),
13658
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkNNCTRU4Ojs.NotificationService.findMany(params), "retriever"),
13587
13659
  retrieverParams: { isArchived: archived },
13588
- module: _chunkIZKIM7U5js.Modules.Notification
13660
+ module: _chunkNNCTRU4Ojs.Modules.Notification
13589
13661
  });
13590
13662
  const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
13591
- await _chunkIZKIM7U5js.NotificationService.archive({ id: notification.id });
13663
+ await _chunkNNCTRU4Ojs.NotificationService.archive({ id: notification.id });
13592
13664
  data.removeElement(notification);
13593
13665
  }, "archiveNotification");
13594
13666
  const LoadingSkeleton = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: "p-2", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center", children: [
@@ -13599,14 +13671,14 @@ function NotificationsList({ archived }) {
13599
13671
  ] }),
13600
13672
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
13601
13673
  ] }) }) }, i)) }), "LoadingSkeleton");
13602
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _342 => _342.data, 'optionalAccess', _343 => _343.map, 'call', _344 => _344((notification) => {
13674
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _343 => _343.data, 'optionalAccess', _344 => _344.map, 'call', _345 => _345((notification) => {
13603
13675
  const notificationData = generateNotificationData({ notification, generateUrl });
13604
13676
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: "p-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex w-full flex-row items-center p-2`, children: [
13605
- 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, Link, { href: generateUrl({ page: _chunkIZKIM7U5js.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" }),
13677
+ 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, Link, { href: generateUrl({ page: _chunkNNCTRU4Ojs.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" }),
13606
13678
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
13607
13679
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
13608
13680
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
13609
- actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _345 => _345.actor, 'optionalAccess', _346 => _346.name]), () => ( "")),
13681
+ actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _346 => _346.actor, 'optionalAccess', _347 => _347.name]), () => ( "")),
13610
13682
  title: notificationData.title
13611
13683
  }) }),
13612
13684
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
@@ -13745,7 +13817,7 @@ function NotificationModalContent({ isOpen, setIsOpen }) {
13745
13817
  batch.forEach((notification) => {
13746
13818
  addNotification(notification);
13747
13819
  const toastNotification = generateToastNotification(notification, t, generateUrl);
13748
- _chunkIZKIM7U5js.showToast.call(void 0, toastNotification.title, {
13820
+ _chunkNNCTRU4Ojs.showToast.call(void 0, toastNotification.title, {
13749
13821
  description: toastNotification.description,
13750
13822
  action: toastNotification.action
13751
13823
  });
@@ -13906,7 +13978,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
13906
13978
  const t = _nextintl.useTranslations.call(void 0, );
13907
13979
  _react.useEffect.call(void 0, () => {
13908
13980
  async function checkCompanyAdminDeletability() {
13909
- const roleUsers = await _chunkIZKIM7U5js.UserService.findAllUsersByRole({
13981
+ const roleUsers = await _chunkNNCTRU4Ojs.UserService.findAllUsersByRole({
13910
13982
  roleId: role.id
13911
13983
  });
13912
13984
  if (roleUsers.length > 1) setCanRemove(true);
@@ -13920,7 +13992,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
13920
13992
  }, [role]);
13921
13993
  const remove = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
13922
13994
  try {
13923
- await _chunkIZKIM7U5js.RoleService.removeUserFromRole({
13995
+ await _chunkNNCTRU4Ojs.RoleService.removeUserFromRole({
13924
13996
  roleId: role.id,
13925
13997
  userId: user.id
13926
13998
  });
@@ -13983,12 +14055,12 @@ function UserRoleAdd({ user, refresh }) {
13983
14055
  const [roles, setRoles] = _react.useState.call(void 0, []);
13984
14056
  const t = _nextintl.useTranslations.call(void 0, );
13985
14057
  const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (role) => {
13986
- await _chunkIZKIM7U5js.RoleService.addUserToRole({
14058
+ await _chunkNNCTRU4Ojs.RoleService.addUserToRole({
13987
14059
  roleId: role.id,
13988
14060
  userId: user.id
13989
14061
  });
13990
14062
  setRoles(roles.filter((u) => u.id !== role.id));
13991
- _chunkIZKIM7U5js.showToast.call(void 0,
14063
+ _chunkNNCTRU4Ojs.showToast.call(void 0,
13992
14064
  t(`common.association.label`, {
13993
14065
  source: t(`entities.roles`, { count: 1 }),
13994
14066
  destination: t(`entities.users`, { count: 1 })
@@ -14007,7 +14079,7 @@ function UserRoleAdd({ user, refresh }) {
14007
14079
  const searchRoles = _react.useCallback.call(void 0,
14008
14080
  async (term) => {
14009
14081
  setRoles(
14010
- await _chunkIZKIM7U5js.RoleService.findAllRolesUserNotIn({
14082
+ await _chunkNNCTRU4Ojs.RoleService.findAllRolesUserNotIn({
14011
14083
  search: term,
14012
14084
  userId: user.id
14013
14085
  })
@@ -14075,16 +14147,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserRoleAdd, "UserRoleAdd");
14075
14147
  function RolesList() {
14076
14148
  const t = _nextintl.useTranslations.call(void 0, );
14077
14149
  const data = useDataListRetriever({
14078
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkIZKIM7U5js.RoleService.findAllRoles(params), "retriever"),
14150
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkNNCTRU4Ojs.RoleService.findAllRoles(params), "retriever"),
14079
14151
  retrieverParams: {},
14080
- module: _chunkIZKIM7U5js.Modules.Role
14152
+ module: _chunkNNCTRU4Ojs.Modules.Role
14081
14153
  });
14082
14154
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14083
14155
  ContentListTable,
14084
14156
  {
14085
14157
  data,
14086
14158
  fields: ["name" /* name */, "description" /* description */],
14087
- tableGeneratorType: _chunkIZKIM7U5js.Modules.Role,
14159
+ tableGeneratorType: _chunkNNCTRU4Ojs.Modules.Role,
14088
14160
  title: t(`entities.roles`, { count: 2 })
14089
14161
  }
14090
14162
  );
@@ -14097,16 +14169,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RolesList, "RolesList");
14097
14169
  function UserRolesList({ user }) {
14098
14170
  const t = _nextintl.useTranslations.call(void 0, );
14099
14171
  const data = useDataListRetriever({
14100
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkIZKIM7U5js.RoleService.findAllRolesByUser(params), "retriever"),
14172
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkNNCTRU4Ojs.RoleService.findAllRolesByUser(params), "retriever"),
14101
14173
  retrieverParams: { userId: user.id },
14102
- module: _chunkIZKIM7U5js.Modules.Role
14174
+ module: _chunkNNCTRU4Ojs.Modules.Role
14103
14175
  });
14104
14176
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14105
14177
  ContentListTable,
14106
14178
  {
14107
14179
  data,
14108
14180
  fields: ["name" /* name */, "description" /* description */],
14109
- tableGeneratorType: _chunkIZKIM7U5js.Modules.Role,
14181
+ tableGeneratorType: _chunkNNCTRU4Ojs.Modules.Role,
14110
14182
  title: t(`entities.roles`, { count: 2 })
14111
14183
  }
14112
14184
  );
@@ -14224,7 +14296,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthRedirectUriInput, "OAuthRedirectUriInp
14224
14296
  function OAuthScopeSelector({
14225
14297
  value,
14226
14298
  onChange,
14227
- availableScopes = _chunkIZKIM7U5js.AVAILABLE_OAUTH_SCOPES,
14299
+ availableScopes = _chunkNNCTRU4Ojs.AVAILABLE_OAUTH_SCOPES,
14228
14300
  disabled = false,
14229
14301
  error,
14230
14302
  label = "Allowed Scopes"
@@ -14499,7 +14571,7 @@ function OAuthClientList({
14499
14571
  OAuthClientCard,
14500
14572
  {
14501
14573
  client,
14502
- onClick: () => _optionalChain([onClientClick, 'optionalCall', _347 => _347(client)]),
14574
+ onClick: () => _optionalChain([onClientClick, 'optionalCall', _348 => _348(client)]),
14503
14575
  onEdit: onEditClick ? () => onEditClick(client) : void 0,
14504
14576
  onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
14505
14577
  },
@@ -14520,11 +14592,11 @@ function OAuthClientForm({
14520
14592
  }) {
14521
14593
  const isEditMode = !!client;
14522
14594
  const [formState, setFormState] = _react.useState.call(void 0, {
14523
- name: _optionalChain([client, 'optionalAccess', _348 => _348.name]) || "",
14524
- description: _optionalChain([client, 'optionalAccess', _349 => _349.description]) || "",
14525
- redirectUris: _optionalChain([client, 'optionalAccess', _350 => _350.redirectUris, 'optionalAccess', _351 => _351.length]) ? client.redirectUris : [""],
14526
- allowedScopes: _optionalChain([client, 'optionalAccess', _352 => _352.allowedScopes]) || [],
14527
- isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _353 => _353.isConfidential]), () => ( true))
14595
+ name: _optionalChain([client, 'optionalAccess', _349 => _349.name]) || "",
14596
+ description: _optionalChain([client, 'optionalAccess', _350 => _350.description]) || "",
14597
+ redirectUris: _optionalChain([client, 'optionalAccess', _351 => _351.redirectUris, 'optionalAccess', _352 => _352.length]) ? client.redirectUris : [""],
14598
+ allowedScopes: _optionalChain([client, 'optionalAccess', _353 => _353.allowedScopes]) || [],
14599
+ isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _354 => _354.isConfidential]), () => ( true))
14528
14600
  });
14529
14601
  const [errors, setErrors] = _react.useState.call(void 0, {});
14530
14602
  const validate = _react.useCallback.call(void 0, () => {
@@ -14551,7 +14623,7 @@ function OAuthClientForm({
14551
14623
  description: formState.description.trim() || void 0,
14552
14624
  redirectUris: formState.redirectUris.filter((uri) => uri.trim()),
14553
14625
  allowedScopes: formState.allowedScopes,
14554
- allowedGrantTypes: _chunkIZKIM7U5js.DEFAULT_GRANT_TYPES,
14626
+ allowedGrantTypes: _chunkNNCTRU4Ojs.DEFAULT_GRANT_TYPES,
14555
14627
  isConfidential: formState.isConfidential
14556
14628
  };
14557
14629
  await onSubmit(data);
@@ -14752,7 +14824,7 @@ function OAuthClientDetail({
14752
14824
  ] }),
14753
14825
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
14754
14826
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
14755
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: client.allowedScopes.map((scope) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "secondary", children: _optionalChain([_chunkIZKIM7U5js.OAUTH_SCOPE_DISPLAY, 'access', _354 => _354[scope], 'optionalAccess', _355 => _355.name]) || scope }, scope)) })
14827
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: client.allowedScopes.map((scope) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "secondary", children: _optionalChain([_chunkNNCTRU4Ojs.OAUTH_SCOPE_DISPLAY, 'access', _355 => _355[scope], 'optionalAccess', _356 => _356.name]) || scope }, scope)) })
14756
14828
  ] }),
14757
14829
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
14758
14830
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
@@ -14953,7 +15025,7 @@ function OAuthConsentScreen({
14953
15025
  if (error || !clientInfo) {
14954
15026
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-screen flex items-center justify-center p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { className: "w-full max-w-md", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: "py-8", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Alert, { variant: "destructive", children: [
14955
15027
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
14956
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _356 => _356.message]) || "Invalid authorization request. Please try again." })
15028
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _357 => _357.message]) || "Invalid authorization request. Please try again." })
14957
15029
  ] }) }) }) });
14958
15030
  }
14959
15031
  const { client, scopes } = clientInfo;
@@ -15423,4 +15495,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthConsentScreen, "OAuthConsentScreen");
15423
15495
 
15424
15496
 
15425
15497
  exports.JsonApiProvider = JsonApiProvider; exports.useJsonApiGet = useJsonApiGet; exports.useJsonApiMutation = useJsonApiMutation; exports.useRehydration = useRehydration; exports.useRehydrationList = useRehydrationList; exports.TableGeneratorRegistry = TableGeneratorRegistry; exports.tableGeneratorRegistry = tableGeneratorRegistry; exports.usePageUrlGenerator = usePageUrlGenerator; exports.useUrlRewriter = useUrlRewriter; exports.useDataListRetriever = useDataListRetriever; exports.useDebounce = useDebounce; exports.registerTableGenerator = registerTableGenerator; exports.useTableGenerator = useTableGenerator; exports.useCustomD3Graph = useCustomD3Graph; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.HeaderChildrenProvider = HeaderChildrenProvider; exports.useHeaderChildren = useHeaderChildren; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AlertAction = AlertAction; exports.buttonVariants = buttonVariants; exports.Button = Button; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogMedia = AlertDialogMedia; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.Avatar = Avatar; exports.AvatarImage = AvatarImage; exports.AvatarFallback = AvatarFallback; exports.AvatarBadge = AvatarBadge; exports.AvatarGroup = AvatarGroup; exports.AvatarGroupCount = AvatarGroupCount; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.Calendar = Calendar; exports.CalendarDayButton = CalendarDayButton; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardAction = CardAction; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.useCarousel = useCarousel; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger; exports.CollapsibleContent = CollapsibleContent; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.Input = Input; exports.Textarea = Textarea; exports.InputGroup = InputGroup; exports.InputGroupAddon = InputGroupAddon; exports.InputGroupButton = InputGroupButton; exports.InputGroupText = InputGroupText; exports.InputGroupInput = InputGroupInput; exports.InputGroupTextarea = InputGroupTextarea; exports.Command = Command; exports.CommandDialog = CommandDialog; exports.CommandInput = CommandInput; exports.CommandList = CommandList; exports.CommandEmpty = CommandEmpty; exports.CommandGroup = CommandGroup; exports.CommandSeparator = CommandSeparator; exports.CommandItem = CommandItem; exports.CommandShortcut = CommandShortcut; exports.ContextMenu = ContextMenu; exports.ContextMenuPortal = ContextMenuPortal; exports.ContextMenuTrigger = ContextMenuTrigger; exports.ContextMenuContent = ContextMenuContent; exports.ContextMenuGroup = ContextMenuGroup; exports.ContextMenuLabel = ContextMenuLabel; exports.ContextMenuItem = ContextMenuItem; exports.ContextMenuSub = ContextMenuSub; exports.ContextMenuSubTrigger = ContextMenuSubTrigger; exports.ContextMenuSubContent = ContextMenuSubContent; exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem; exports.ContextMenuRadioGroup = ContextMenuRadioGroup; exports.ContextMenuRadioItem = ContextMenuRadioItem; exports.ContextMenuSeparator = ContextMenuSeparator; exports.ContextMenuShortcut = ContextMenuShortcut; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerPortal = DrawerPortal; exports.DrawerClose = DrawerClose; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerFooter = DrawerFooter; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DropdownMenu = DropdownMenu; exports.DropdownMenuPortal = DropdownMenuPortal; exports.DropdownMenuTrigger = DropdownMenuTrigger; exports.DropdownMenuContent = DropdownMenuContent; exports.DropdownMenuGroup = DropdownMenuGroup; exports.DropdownMenuLabel = DropdownMenuLabel; exports.DropdownMenuItem = DropdownMenuItem; exports.DropdownMenuSub = DropdownMenuSub; exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger; exports.DropdownMenuSubContent = DropdownMenuSubContent; exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem; exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup; exports.DropdownMenuRadioItem = DropdownMenuRadioItem; exports.DropdownMenuSeparator = DropdownMenuSeparator; exports.DropdownMenuShortcut = DropdownMenuShortcut; exports.Label = Label; exports.Separator = Separator; exports.FieldSet = FieldSet; exports.FieldLegend = FieldLegend; exports.FieldGroup = FieldGroup; exports.Field = Field; exports.FieldContent = FieldContent; exports.FieldLabel = FieldLabel; exports.FieldTitle = FieldTitle; exports.FieldDescription = FieldDescription; exports.FieldSeparator = FieldSeparator; exports.FieldError = FieldError; exports.Form = Form; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.InputOTP = InputOTP; exports.InputOTPGroup = InputOTPGroup; exports.InputOTPSlot = InputOTPSlot; exports.InputOTPSeparator = InputOTPSeparator; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuPositioner = NavigationMenuPositioner; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.Popover = Popover; exports.PopoverTrigger = PopoverTrigger; exports.PopoverContent = PopoverContent; exports.PopoverHeader = PopoverHeader; exports.PopoverTitle = PopoverTitle; exports.PopoverDescription = PopoverDescription; exports.Progress = Progress; exports.ProgressTrack = ProgressTrack; exports.ProgressIndicator = ProgressIndicator; exports.ProgressLabel = ProgressLabel; exports.ProgressValue = ProgressValue; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.ResizablePanelGroup = ResizablePanelGroup; exports.ResizablePanel = ResizablePanel; exports.ResizableHandle = ResizableHandle; exports.ScrollArea = ScrollArea; exports.ScrollBar = ScrollBar; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Skeleton = Skeleton; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip2; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.useSidebar = useSidebar; exports.SidebarProvider = SidebarProvider; exports.Sidebar = Sidebar; exports.SidebarTrigger = SidebarTrigger; exports.SidebarRail = SidebarRail; exports.SidebarInset = SidebarInset; exports.SidebarInput = SidebarInput; exports.SidebarHeader = SidebarHeader; exports.SidebarFooter = SidebarFooter; exports.SidebarSeparator = SidebarSeparator; exports.SidebarContent = SidebarContent; exports.SidebarGroup = SidebarGroup; exports.SidebarGroupLabel = SidebarGroupLabel; exports.SidebarGroupAction = SidebarGroupAction; exports.SidebarGroupContent = SidebarGroupContent; exports.SidebarMenu = SidebarMenu; exports.SidebarMenuItem = SidebarMenuItem; exports.SidebarMenuButton = SidebarMenuButton; exports.SidebarMenuAction = SidebarMenuAction; exports.SidebarMenuBadge = SidebarMenuBadge; exports.SidebarMenuSkeleton = SidebarMenuSkeleton; exports.SidebarMenuSub = SidebarMenuSub; exports.SidebarMenuSubItem = SidebarMenuSubItem; exports.SidebarMenuSubButton = SidebarMenuSubButton; exports.Slider = Slider; exports.Toaster = Toaster; exports.Switch = Switch; exports.Table = Table; exports.TableHeader = TableHeader; exports.TableBody = TableBody; exports.TableFooter = TableFooter; exports.TableRow = TableRow; exports.TableHead = TableHead; exports.TableCell = TableCell; exports.TableCaption = TableCaption; exports.Tabs = Tabs; exports.tabsListVariants = tabsListVariants; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.KanbanRoot = KanbanRoot; exports.KanbanBoard = KanbanBoard; exports.KanbanColumn = KanbanColumn; exports.KanbanColumnHandle = KanbanColumnHandle; exports.KanbanItem = KanbanItem; exports.KanbanItemHandle = KanbanItemHandle; exports.KanbanOverlay = KanbanOverlay; exports.Link = Link; exports.MultiSelect = MultiSelect; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.Header = Header; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.UserDetails = UserDetails; exports.UserAvatar = UserAvatar; exports.UserIndexDetails = UserIndexDetails; exports.UserContainer = UserContainer; exports.UserIndexContainer = UserIndexContainer; exports.UsersListContainer = UsersListContainer; exports.AdminUsersList = AdminUsersList; exports.CompanyUsersList = CompanyUsersList; exports.ContributorsList = ContributorsList; exports.RelevantUsersList = RelevantUsersList; exports.RoleUsersList = RoleUsersList; exports.UserListInAdd = UserListInAdd; exports.UsersList = UsersList; exports.UsersListByContentIds = UsersListByContentIds; exports.AllowedUsersDetails = AllowedUsersDetails; exports.ErrorDetails = ErrorDetails; exports.errorToast = errorToast; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorTrigger = CommonEditorTrigger; exports.DatePickerPopover = DatePickerPopover; exports.DateRangeSelector = DateRangeSelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.FormFieldWrapper = FormFieldWrapper; exports.FormCheckbox = FormCheckbox; 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.GdprConsentCheckbox = GdprConsentCheckbox; exports.FormFeatures = FormFeatures; exports.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; exports.GdprConsentSection = GdprConsentSection; exports.AuthContainer = AuthContainer; exports.LandingComponent = LandingComponent; exports.AcceptInvitation = AcceptInvitation; exports.ActivateAccount = ActivateAccount; exports.Cookies = Cookies; exports.ForgotPassword = ForgotPassword; exports.Login = Login; exports.Logout = Logout; exports.RefreshUser = RefreshUser; exports.ResetPassword = ResetPassword; exports.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyContainer = CompanyContainer; exports.TokenStatusIndicator = TokenStatusIndicator; exports.CompanyConfigurationSecurityForm = CompanyConfigurationSecurityForm; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.OnboardingCard = OnboardingCard; exports.RoleProvider = RoleProvider; exports.useRoleContext = useRoleContext; exports.RoleDetails = RoleDetails; exports.RoleContainer = RoleContainer; exports.FormRoles = FormRoles; exports.RemoveUserFromRole = RemoveUserFromRole; exports.UserRoleAdd = UserRoleAdd; exports.useRoleTableStructure = useRoleTableStructure; exports.RolesList = RolesList; exports.UserRolesList = UserRolesList; exports.OAuthRedirectUriInput = OAuthRedirectUriInput; exports.OAuthScopeSelector = OAuthScopeSelector; exports.OAuthClientSecretDisplay = OAuthClientSecretDisplay; exports.OAuthClientCard = OAuthClientCard; exports.OAuthClientList = OAuthClientList; exports.OAuthClientForm = OAuthClientForm; exports.OAuthClientDetail = OAuthClientDetail; exports.OAuthConsentHeader = OAuthConsentHeader; exports.OAuthScopeList = OAuthScopeList; exports.OAuthConsentActions = OAuthConsentActions; exports.useOAuthConsent = useOAuthConsent; exports.OAuthConsentScreen = OAuthConsentScreen; exports.AddUserToRole = AddUserToRole; exports.UserAvatarEditor = UserAvatarEditor; exports.UserDeleter = UserDeleter; exports.UserEditor = UserEditor; exports.UserMultiSelect = UserMultiSelect; exports.UserReactivator = UserReactivator; exports.UserResentInvitationEmail = UserResentInvitationEmail; exports.UserSelector = UserSelector; exports.UserProvider = UserProvider; exports.useUserContext = useUserContext; exports.CompanyProvider = CompanyProvider; exports.useCompanyContext = useCompanyContext; exports.DEFAULT_ONBOARDING_LABELS = DEFAULT_ONBOARDING_LABELS; exports.OnboardingProvider = OnboardingProvider; exports.useOnboarding = useOnboarding; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
15426
- //# sourceMappingURL=chunk-T4UAULVP.js.map
15498
+ //# sourceMappingURL=chunk-S2RZBQP4.js.map