@carlonicora/nextjs-jsonapi 1.44.2 → 1.45.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/README.md +2 -2
  2. package/dist/{BlockNoteEditor-2ZP2BEZC.mjs → BlockNoteEditor-IAA6SRJD.mjs} +4 -4
  3. package/dist/{BlockNoteEditor-C7CVGQDG.js → BlockNoteEditor-JYQVZHSR.js} +14 -14
  4. package/dist/{BlockNoteEditor-C7CVGQDG.js.map → BlockNoteEditor-JYQVZHSR.js.map} +1 -1
  5. package/dist/{auth.interface-BJGKQ0zr.d.ts → auth.interface-DgpoGNZN.d.ts} +1 -0
  6. package/dist/{auth.interface-8XglqHir.d.mts → auth.interface-quk7psiq.d.mts} +1 -0
  7. package/dist/billing/index.js +346 -346
  8. package/dist/billing/index.mjs +3 -3
  9. package/dist/{chunk-LBIC4GJK.mjs → chunk-4HMQNMP6.mjs} +28 -2
  10. package/dist/chunk-4HMQNMP6.mjs.map +1 -0
  11. package/dist/{chunk-L5F5ZN5F.js → chunk-AHXRHXZ2.js} +84 -2
  12. package/dist/chunk-AHXRHXZ2.js.map +1 -0
  13. package/dist/{chunk-CLXIZJVH.mjs → chunk-EA3EPEDL.mjs} +839 -450
  14. package/dist/chunk-EA3EPEDL.mjs.map +1 -0
  15. package/dist/{chunk-OODZEX6P.js → chunk-GP3MDKGE.js} +28 -2
  16. package/dist/chunk-GP3MDKGE.js.map +1 -0
  17. package/dist/{chunk-24E7WD4J.js → chunk-XRBK4J6U.js} +954 -565
  18. package/dist/chunk-XRBK4J6U.js.map +1 -0
  19. package/dist/{chunk-PHNL4QUF.mjs → chunk-ZMGUP2AI.mjs} +84 -2
  20. package/dist/chunk-ZMGUP2AI.mjs.map +1 -0
  21. package/dist/client/index.js +4 -4
  22. package/dist/client/index.mjs +3 -3
  23. package/dist/components/index.d.mts +160 -3
  24. package/dist/components/index.d.ts +160 -3
  25. package/dist/components/index.js +10 -4
  26. package/dist/components/index.js.map +1 -1
  27. package/dist/components/index.mjs +9 -3
  28. package/dist/contexts/index.js +4 -4
  29. package/dist/contexts/index.mjs +3 -3
  30. package/dist/core/index.d.mts +42 -5
  31. package/dist/core/index.d.ts +42 -5
  32. package/dist/core/index.js +10 -2
  33. package/dist/core/index.js.map +1 -1
  34. package/dist/core/index.mjs +9 -1
  35. package/dist/index.d.mts +66 -5
  36. package/dist/index.d.ts +66 -5
  37. package/dist/index.js +17 -3
  38. package/dist/index.js.map +1 -1
  39. package/dist/index.mjs +16 -2
  40. package/dist/{s3.service-DOwqcUDT.d.ts → s3.service--8IFzWsB.d.ts} +1 -1
  41. package/dist/{s3.service-D0rbmLFp.d.mts → s3.service-GQa6F4Ks.d.mts} +1 -1
  42. package/dist/server/index.d.mts +2 -2
  43. package/dist/server/index.d.ts +2 -2
  44. package/dist/server/index.js +3 -3
  45. package/dist/server/index.mjs +1 -1
  46. package/package.json +3 -3
  47. package/scripts/generate-web-module/types/template-data.interface.ts +1 -1
  48. package/src/components/index.ts +1 -0
  49. package/src/core/index.ts +3 -0
  50. package/src/core/registry/ModuleRegistry.ts +3 -0
  51. package/src/features/auth/components/buttons/GoogleSignInButton.tsx +13 -2
  52. package/src/features/auth/components/forms/Login.tsx +24 -2
  53. package/src/features/auth/components/forms/Logout.tsx +9 -1
  54. package/src/features/auth/components/forms/Register.tsx +45 -5
  55. package/src/features/auth/components/forms/__tests__/Logout.spec.tsx +118 -0
  56. package/src/features/auth/config.ts +1 -1
  57. package/src/features/auth/data/auth.interface.ts +1 -0
  58. package/src/features/auth/data/auth.ts +1 -0
  59. package/src/features/auth/utils/__tests__/clearClientStorage.spec.ts +81 -0
  60. package/src/features/auth/utils/clearClientStorage.ts +11 -0
  61. package/src/features/auth/utils/index.ts +1 -0
  62. package/src/features/index.ts +1 -0
  63. package/src/features/referral/__tests__/config.spec.ts +105 -0
  64. package/src/features/referral/__tests__/referral-cookie.spec.ts +188 -0
  65. package/src/features/referral/components/ReferralCodeCapture.tsx +51 -0
  66. package/src/features/referral/components/ReferralDialog.tsx +94 -0
  67. package/src/features/referral/components/ReferralWidget.tsx +334 -0
  68. package/src/features/referral/components/index.ts +3 -0
  69. package/src/features/referral/config.ts +89 -0
  70. package/src/features/referral/data/ReferralService.ts +38 -0
  71. package/src/features/referral/data/ReferralStats.ts +31 -0
  72. package/src/features/referral/data/index.ts +2 -0
  73. package/src/features/referral/hooks/index.ts +2 -0
  74. package/src/features/referral/hooks/useReferralInvite.ts +32 -0
  75. package/src/features/referral/hooks/useReferralStats.ts +26 -0
  76. package/src/features/referral/index.ts +21 -0
  77. package/src/features/referral/interfaces/index.ts +1 -0
  78. package/src/features/referral/interfaces/referral.interface.ts +5 -0
  79. package/src/features/referral/referral-stats.module.ts +9 -0
  80. package/src/features/referral/referral.module.ts +9 -0
  81. package/src/features/referral/utils/index.ts +1 -0
  82. package/src/features/referral/utils/referral-cookie.ts +35 -0
  83. package/src/index.ts +4 -0
  84. package/dist/chunk-24E7WD4J.js.map +0 -1
  85. package/dist/chunk-CLXIZJVH.mjs.map +0 -1
  86. package/dist/chunk-L5F5ZN5F.js.map +0 -1
  87. package/dist/chunk-LBIC4GJK.mjs.map +0 -1
  88. package/dist/chunk-OODZEX6P.js.map +0 -1
  89. package/dist/chunk-PHNL4QUF.mjs.map +0 -1
  90. /package/dist/{BlockNoteEditor-2ZP2BEZC.mjs.map → BlockNoteEditor-IAA6SRJD.mjs.map} +0 -0
@@ -15,9 +15,9 @@
15
15
 
16
16
 
17
17
 
18
- var _chunkOODZEX6Pjs = require('./chunk-OODZEX6P.js');
19
18
 
20
19
 
20
+ var _chunkGP3MDKGEjs = require('./chunk-GP3MDKGE.js');
21
21
 
22
22
 
23
23
 
@@ -45,7 +45,10 @@ var _chunkOODZEX6Pjs = require('./chunk-OODZEX6P.js');
45
45
 
46
46
 
47
47
 
48
- var _chunkL5F5ZN5Fjs = require('./chunk-L5F5ZN5F.js');
48
+
49
+
50
+
51
+ var _chunkAHXRHXZ2js = require('./chunk-AHXRHXZ2.js');
49
52
 
50
53
 
51
54
  var _chunk3EPNHTMHjs = require('./chunk-3EPNHTMH.js');
@@ -192,7 +195,7 @@ function useDataListRetriever(params) {
192
195
  const isFetchingRef = _react.useRef.call(void 0, false);
193
196
  const isPaginatingRef = _react.useRef.call(void 0, false);
194
197
  const resolvedType = params.module;
195
- const resolvedService = _chunkL5F5ZN5Fjs.ClientAbstractService;
198
+ const resolvedService = _chunkAHXRHXZ2js.ClientAbstractService;
196
199
  const parsePageParams = _react.useCallback.call(void 0, (url) => {
197
200
  if (!url) return null;
198
201
  try {
@@ -311,7 +314,7 @@ function useDataListRetriever(params) {
311
314
  setIsLoaded(true);
312
315
  setNextPage(nextRef.next ? nextRef.next : void 0);
313
316
  setPreviousPage(previousRef.previous ? previousRef.previous : void 0);
314
- const apiTotal = _nullishCoalesce(totalRef.total, () => ( _chunkL5F5ZN5Fjs.getLastApiTotal.call(void 0, )));
317
+ const apiTotal = _nullishCoalesce(totalRef.total, () => ( _chunkAHXRHXZ2js.getLastApiTotal.call(void 0, )));
315
318
  if (apiTotal !== void 0) {
316
319
  setTotal(apiTotal);
317
320
  }
@@ -956,20 +959,20 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
956
959
  if (!token && dehydratedUser) setDehydratedUser(null);
957
960
  }, [dehydratedUser, setDehydratedUser]);
958
961
  const matchUrlToModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (_params) => {
959
- const moduleKeys = Object.getOwnPropertyNames(_chunkL5F5ZN5Fjs.Modules).filter(
962
+ const moduleKeys = Object.getOwnPropertyNames(_chunkAHXRHXZ2js.Modules).filter(
960
963
  (key) => key !== "prototype" && key !== "_factory" && key !== "length" && key !== "name"
961
964
  );
962
965
  const matchedModuleKey = moduleKeys.find((key) => {
963
- const descriptor2 = Object.getOwnPropertyDescriptor(_chunkL5F5ZN5Fjs.Modules, key);
966
+ const descriptor2 = Object.getOwnPropertyDescriptor(_chunkAHXRHXZ2js.Modules, key);
964
967
  if (!_optionalChain([descriptor2, 'optionalAccess', _29 => _29.get])) return false;
965
- const selectedModule = descriptor2.get.call(_chunkL5F5ZN5Fjs.Modules);
968
+ const selectedModule = descriptor2.get.call(_chunkAHXRHXZ2js.Modules);
966
969
  return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _30 => _30.pageUrl, 'optionalAccess', _31 => _31.toLowerCase, 'call', _32 => _32()]));
967
970
  });
968
971
  if (!matchedModuleKey) return void 0;
969
- const descriptor = Object.getOwnPropertyDescriptor(_chunkL5F5ZN5Fjs.Modules, matchedModuleKey);
970
- return _optionalChain([descriptor, 'optionalAccess', _33 => _33.get, 'optionalAccess', _34 => _34.call, 'call', _35 => _35(_chunkL5F5ZN5Fjs.Modules)]);
972
+ const descriptor = Object.getOwnPropertyDescriptor(_chunkAHXRHXZ2js.Modules, matchedModuleKey);
973
+ return _optionalChain([descriptor, 'optionalAccess', _33 => _33.get, 'optionalAccess', _34 => _34.call, 'call', _35 => _35(_chunkAHXRHXZ2js.Modules)]);
971
974
  }, "matchUrlToModule");
972
- const currentUser = dehydratedUser ? _chunkL5F5ZN5Fjs.rehydrate.call(void 0, _chunkL5F5ZN5Fjs.Modules.User, dehydratedUser) : null;
975
+ const currentUser = dehydratedUser ? _chunkAHXRHXZ2js.rehydrate.call(void 0, _chunkAHXRHXZ2js.Modules.User, dehydratedUser) : null;
973
976
  const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _36 => _36.company]), () => ( null));
974
977
  const setUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (user) => {
975
978
  if (user) setDehydratedUser(user.dehydrate());
@@ -980,21 +983,21 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
980
983
  return !!_optionalChain([currentUser, 'access', _37 => _37.roles, 'optionalAccess', _38 => _38.some, 'call', _39 => _39((userRole) => userRole.id === roleId)]);
981
984
  }, "hasRole");
982
985
  const hasAccesToFeature = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (featureIdentifier) => {
983
- if (hasRole(_chunkOODZEX6Pjs.getRoleId.call(void 0, ).Administrator)) return true;
986
+ if (hasRole(_chunkGP3MDKGEjs.getRoleId.call(void 0, ).Administrator)) return true;
984
987
  if (!company) return false;
985
988
  return company.features.some((feature) => feature.id === featureIdentifier);
986
989
  }, "hasAccesToFeature");
987
990
  function hasPermissionToModule(params) {
988
991
  if (!currentUser) return false;
989
992
  if (!!params.module.feature && !hasAccesToFeature(params.module.feature)) return false;
990
- return _chunkL5F5ZN5Fjs.checkPermissions.call(void 0, { module: params.module, action: params.action, data: params.data, user: currentUser });
993
+ return _chunkAHXRHXZ2js.checkPermissions.call(void 0, { module: params.module, action: params.action, data: params.data, user: currentUser });
991
994
  }
992
995
  _chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModule, "hasPermissionToModule");
993
996
  function hasPermissionToModules(params) {
994
997
  if (!currentUser) return false;
995
998
  if (!params.modules.every((module) => !module.feature || hasAccesToFeature(module.feature))) return false;
996
999
  return params.modules.every(
997
- (module) => _chunkL5F5ZN5Fjs.checkPermissions.call(void 0, { module, action: params.action, data: params.data, user: currentUser })
1000
+ (module) => _chunkAHXRHXZ2js.checkPermissions.call(void 0, { module, action: params.action, data: params.data, user: currentUser })
998
1001
  );
999
1002
  }
1000
1003
  _chunk7QVYU63Ejs.__name.call(void 0, hasPermissionToModules, "hasPermissionToModules");
@@ -1015,13 +1018,13 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
1015
1018
  }
1016
1019
  setIsRefreshing(true);
1017
1020
  try {
1018
- const fullUser = await _chunkL5F5ZN5Fjs.UserService.findFullUser();
1021
+ const fullUser = await _chunkAHXRHXZ2js.UserService.findFullUser();
1019
1022
  if (fullUser) {
1020
1023
  const dehydrated = fullUser.dehydrate();
1021
1024
  setDehydratedUser(dehydrated);
1022
1025
  setUser(fullUser);
1023
1026
  if (!_optionalChain([options, 'optionalAccess', _40 => _40.skipCookieUpdate])) {
1024
- await _optionalChain([_chunkL5F5ZN5Fjs.getTokenHandler.call(void 0, ), 'optionalAccess', _41 => _41.updateToken, 'call', _42 => _42({
1027
+ await _optionalChain([_chunkAHXRHXZ2js.getTokenHandler.call(void 0, ), 'optionalAccess', _41 => _41.updateToken, 'call', _42 => _42({
1025
1028
  userId: fullUser.id,
1026
1029
  companyId: _optionalChain([fullUser, 'access', _43 => _43.company, 'optionalAccess', _44 => _44.id]),
1027
1030
  roles: fullUser.roles.map((role) => role.id),
@@ -1109,7 +1112,7 @@ function AddUserToRoleInternal({ role, refresh }) {
1109
1112
  const [existingUsers, setExistingUsers] = _react.useState.call(void 0, null);
1110
1113
  _react.useEffect.call(void 0, () => {
1111
1114
  const fetchExistingUsers = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
1112
- setExistingUsers(await _chunkL5F5ZN5Fjs.UserService.findMany({ roleId: role.id, fetchAll: true }));
1115
+ setExistingUsers(await _chunkAHXRHXZ2js.UserService.findMany({ roleId: role.id, fetchAll: true }));
1113
1116
  }, "fetchExistingUsers");
1114
1117
  if (show) {
1115
1118
  setExistingUsers(null);
@@ -1117,7 +1120,7 @@ function AddUserToRoleInternal({ role, refresh }) {
1117
1120
  }
1118
1121
  }, [show]);
1119
1122
  const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (user) => {
1120
- await _chunkL5F5ZN5Fjs.RoleService.addUserToRole({
1123
+ await _chunkAHXRHXZ2js.RoleService.addUserToRole({
1121
1124
  roleId: role.id,
1122
1125
  userId: user.id
1123
1126
  });
@@ -1133,9 +1136,9 @@ function AddUserToRoleInternal({ role, refresh }) {
1133
1136
  }, "addUserToRole");
1134
1137
  const data = useDataListRetriever({
1135
1138
  ready: !!company && show,
1136
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL5F5ZN5Fjs.UserService.findAllUsers(params), "retriever"),
1139
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAHXRHXZ2js.UserService.findAllUsers(params), "retriever"),
1137
1140
  retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _55 => _55.id]) },
1138
- module: _chunkL5F5ZN5Fjs.Modules.User
1141
+ module: _chunkAHXRHXZ2js.Modules.User
1139
1142
  });
1140
1143
  _react.useEffect.call(void 0, () => {
1141
1144
  if (!!company && show) {
@@ -1186,7 +1189,7 @@ function Accordion({ className, ...props }) {
1186
1189
  _accordion.Accordion.Root,
1187
1190
  {
1188
1191
  "data-slot": "accordion",
1189
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "overflow-hidden rounded-md border flex w-full flex-col", className),
1192
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "overflow-hidden rounded-md border flex w-full flex-col", className),
1190
1193
  ...props
1191
1194
  }
1192
1195
  );
@@ -1197,7 +1200,7 @@ function AccordionItem({ className, ...props }) {
1197
1200
  _accordion.Accordion.Item,
1198
1201
  {
1199
1202
  "data-slot": "accordion-item",
1200
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "data-open:bg-muted/50 not-last:border-b", className),
1203
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "data-open:bg-muted/50 not-last:border-b", className),
1201
1204
  ...props
1202
1205
  }
1203
1206
  );
@@ -1208,7 +1211,7 @@ function AccordionTrigger({ className, children, ...props }) {
1208
1211
  _accordion.Accordion.Trigger,
1209
1212
  {
1210
1213
  "data-slot": "accordion-trigger",
1211
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
1214
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
1212
1215
  "**: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",
1213
1216
  className
1214
1217
  ),
@@ -1244,7 +1247,7 @@ function AccordionContent({ className, children, ...props }) {
1244
1247
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1245
1248
  "div",
1246
1249
  {
1247
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
1250
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
1248
1251
  "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",
1249
1252
  className
1250
1253
  ),
@@ -1274,7 +1277,7 @@ var alertVariants = _classvarianceauthority.cva.call(void 0,
1274
1277
  }
1275
1278
  );
1276
1279
  function Alert({ className, variant, ...props }) {
1277
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "alert", role: "alert", className: _chunkL5F5ZN5Fjs.cn.call(void 0, alertVariants({ variant }), className), ...props });
1280
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "alert", role: "alert", className: _chunkAHXRHXZ2js.cn.call(void 0, alertVariants({ variant }), className), ...props });
1278
1281
  }
1279
1282
  _chunk7QVYU63Ejs.__name.call(void 0, Alert, "Alert");
1280
1283
  function AlertTitle({ className, ...props }) {
@@ -1282,7 +1285,7 @@ function AlertTitle({ className, ...props }) {
1282
1285
  "div",
1283
1286
  {
1284
1287
  "data-slot": "alert-title",
1285
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
1288
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
1286
1289
  "font-medium group-has-[>svg]/alert:col-start-2 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3",
1287
1290
  className
1288
1291
  ),
@@ -1296,7 +1299,7 @@ function AlertDescription({ className, ...props }) {
1296
1299
  "div",
1297
1300
  {
1298
1301
  "data-slot": "alert-description",
1299
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
1302
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
1300
1303
  "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",
1301
1304
  className
1302
1305
  ),
@@ -1306,7 +1309,7 @@ function AlertDescription({ className, ...props }) {
1306
1309
  }
1307
1310
  _chunk7QVYU63Ejs.__name.call(void 0, AlertDescription, "AlertDescription");
1308
1311
  function AlertAction({ className, ...props }) {
1309
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "alert-action", className: _chunkL5F5ZN5Fjs.cn.call(void 0, "absolute top-1.5 right-2", className), ...props });
1312
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "alert-action", className: _chunkAHXRHXZ2js.cn.call(void 0, "absolute top-1.5 right-2", className), ...props });
1310
1313
  }
1311
1314
  _chunk7QVYU63Ejs.__name.call(void 0, AlertAction, "AlertAction");
1312
1315
 
@@ -1352,7 +1355,7 @@ function Button({
1352
1355
  size = "default",
1353
1356
  ...props
1354
1357
  }) {
1355
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _button.Button, { "data-slot": "button", className: _chunkL5F5ZN5Fjs.cn.call(void 0, buttonVariants({ variant, size, className })), ...props });
1358
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _button.Button, { "data-slot": "button", className: _chunkAHXRHXZ2js.cn.call(void 0, buttonVariants({ variant, size, className })), ...props });
1356
1359
  }
1357
1360
  _chunk7QVYU63Ejs.__name.call(void 0, Button, "Button");
1358
1361
 
@@ -1375,7 +1378,7 @@ function AlertDialogOverlay({ className, ...props }) {
1375
1378
  _alertdialog.AlertDialog.Backdrop,
1376
1379
  {
1377
1380
  "data-slot": "alert-dialog-overlay",
1378
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
1381
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
1379
1382
  "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",
1380
1383
  className
1381
1384
  ),
@@ -1396,7 +1399,7 @@ function AlertDialogContent({
1396
1399
  {
1397
1400
  "data-slot": "alert-dialog-content",
1398
1401
  "data-size": size,
1399
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
1402
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
1400
1403
  "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",
1401
1404
  className
1402
1405
  ),
@@ -1411,7 +1414,7 @@ function AlertDialogHeader({ className, ...props }) {
1411
1414
  "div",
1412
1415
  {
1413
1416
  "data-slot": "alert-dialog-header",
1414
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
1417
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
1415
1418
  "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]",
1416
1419
  className
1417
1420
  ),
@@ -1425,7 +1428,7 @@ function AlertDialogFooter({ className, ...props }) {
1425
1428
  "div",
1426
1429
  {
1427
1430
  "data-slot": "alert-dialog-footer",
1428
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
1431
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
1429
1432
  "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",
1430
1433
  className
1431
1434
  ),
@@ -1439,7 +1442,7 @@ function AlertDialogMedia({ className, ...props }) {
1439
1442
  "div",
1440
1443
  {
1441
1444
  "data-slot": "alert-dialog-media",
1442
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
1445
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
1443
1446
  "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",
1444
1447
  className
1445
1448
  ),
@@ -1453,7 +1456,7 @@ function AlertDialogTitle({ className, ...props }) {
1453
1456
  _alertdialog.AlertDialog.Title,
1454
1457
  {
1455
1458
  "data-slot": "alert-dialog-title",
1456
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
1459
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
1457
1460
  "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",
1458
1461
  className
1459
1462
  ),
@@ -1470,7 +1473,7 @@ function AlertDialogDescription({
1470
1473
  _alertdialog.AlertDialog.Description,
1471
1474
  {
1472
1475
  "data-slot": "alert-dialog-description",
1473
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
1476
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
1474
1477
  "text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3",
1475
1478
  className
1476
1479
  ),
@@ -1480,7 +1483,7 @@ function AlertDialogDescription({
1480
1483
  }
1481
1484
  _chunk7QVYU63Ejs.__name.call(void 0, AlertDialogDescription, "AlertDialogDescription");
1482
1485
  function AlertDialogAction({ className, ...props }) {
1483
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { "data-slot": "alert-dialog-action", className: _chunkL5F5ZN5Fjs.cn.call(void 0, className), ...props });
1486
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { "data-slot": "alert-dialog-action", className: _chunkAHXRHXZ2js.cn.call(void 0, className), ...props });
1484
1487
  }
1485
1488
  _chunk7QVYU63Ejs.__name.call(void 0, AlertDialogAction, "AlertDialogAction");
1486
1489
  function AlertDialogCancel({
@@ -1493,7 +1496,7 @@ function AlertDialogCancel({
1493
1496
  _alertdialog.AlertDialog.Close,
1494
1497
  {
1495
1498
  "data-slot": "alert-dialog-cancel",
1496
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, className),
1499
+ className: _chunkAHXRHXZ2js.cn.call(void 0, className),
1497
1500
  render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant, size }),
1498
1501
  ...props
1499
1502
  }
@@ -1514,7 +1517,7 @@ function Avatar({
1514
1517
  {
1515
1518
  "data-slot": "avatar",
1516
1519
  "data-size": size,
1517
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
1520
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
1518
1521
  "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",
1519
1522
  className
1520
1523
  ),
@@ -1528,7 +1531,7 @@ function AvatarImage({ className, ...props }) {
1528
1531
  _avatar.Avatar.Image,
1529
1532
  {
1530
1533
  "data-slot": "avatar-image",
1531
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "rounded-full aspect-square size-full object-cover", className),
1534
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "rounded-full aspect-square size-full object-cover", className),
1532
1535
  ...props
1533
1536
  }
1534
1537
  );
@@ -1539,7 +1542,7 @@ function AvatarFallback({ className, ...props }) {
1539
1542
  _avatar.Avatar.Fallback,
1540
1543
  {
1541
1544
  "data-slot": "avatar-fallback",
1542
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
1545
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
1543
1546
  "bg-muted text-muted-foreground rounded-full flex size-full items-center justify-center text-sm group-data-[size=sm]/avatar:text-xs",
1544
1547
  className
1545
1548
  ),
@@ -1553,7 +1556,7 @@ function AvatarBadge({ className, ...props }) {
1553
1556
  "span",
1554
1557
  {
1555
1558
  "data-slot": "avatar-badge",
1556
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
1559
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
1557
1560
  "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",
1558
1561
  "group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden",
1559
1562
  "group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2",
@@ -1570,7 +1573,7 @@ function AvatarGroup({ className, ...props }) {
1570
1573
  "div",
1571
1574
  {
1572
1575
  "data-slot": "avatar-group",
1573
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
1576
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
1574
1577
  "*:data-[slot=avatar]:ring-background group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2",
1575
1578
  className
1576
1579
  ),
@@ -1584,7 +1587,7 @@ function AvatarGroupCount({ className, ...props }) {
1584
1587
  "div",
1585
1588
  {
1586
1589
  "data-slot": "avatar-group-count",
1587
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
1590
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
1588
1591
  "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",
1589
1592
  className
1590
1593
  ),
@@ -1626,7 +1629,7 @@ function Badge({
1626
1629
  defaultTagName: "span",
1627
1630
  props: _mergeprops.mergeProps.call(void 0,
1628
1631
  {
1629
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, badgeVariants({ className, variant }))
1632
+ className: _chunkAHXRHXZ2js.cn.call(void 0, badgeVariants({ className, variant }))
1630
1633
  },
1631
1634
  props
1632
1635
  ),
@@ -1645,7 +1648,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, Badge, "Badge");
1645
1648
 
1646
1649
 
1647
1650
  function Breadcrumb({ className, ...props }) {
1648
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", className: _chunkL5F5ZN5Fjs.cn.call(void 0, className), ...props });
1651
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", className: _chunkAHXRHXZ2js.cn.call(void 0, className), ...props });
1649
1652
  }
1650
1653
  _chunk7QVYU63Ejs.__name.call(void 0, Breadcrumb, "Breadcrumb");
1651
1654
  function BreadcrumbList({ className, ...props }) {
@@ -1653,14 +1656,14 @@ function BreadcrumbList({ className, ...props }) {
1653
1656
  "ol",
1654
1657
  {
1655
1658
  "data-slot": "breadcrumb-list",
1656
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-muted-foreground gap-1.5 text-xs/relaxed flex flex-wrap items-center break-words", className),
1659
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "text-muted-foreground gap-1.5 text-xs/relaxed flex flex-wrap items-center break-words", className),
1657
1660
  ...props
1658
1661
  }
1659
1662
  );
1660
1663
  }
1661
1664
  _chunk7QVYU63Ejs.__name.call(void 0, BreadcrumbList, "BreadcrumbList");
1662
1665
  function BreadcrumbItem({ className, ...props }) {
1663
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-slot": "breadcrumb-item", className: _chunkL5F5ZN5Fjs.cn.call(void 0, "gap-1 inline-flex items-center", className), ...props });
1666
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-slot": "breadcrumb-item", className: _chunkAHXRHXZ2js.cn.call(void 0, "gap-1 inline-flex items-center", className), ...props });
1664
1667
  }
1665
1668
  _chunk7QVYU63Ejs.__name.call(void 0, BreadcrumbItem, "BreadcrumbItem");
1666
1669
  function BreadcrumbLink({ className, render, ...props }) {
@@ -1668,7 +1671,7 @@ function BreadcrumbLink({ className, render, ...props }) {
1668
1671
  defaultTagName: "a",
1669
1672
  props: _mergeprops.mergeProps.call(void 0,
1670
1673
  {
1671
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "hover:text-foreground transition-colors", className)
1674
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "hover:text-foreground transition-colors", className)
1672
1675
  },
1673
1676
  props
1674
1677
  ),
@@ -1687,7 +1690,7 @@ function BreadcrumbPage({ className, ...props }) {
1687
1690
  role: "link",
1688
1691
  "aria-disabled": "true",
1689
1692
  "aria-current": "page",
1690
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-foreground font-normal", className),
1693
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "text-foreground font-normal", className),
1691
1694
  ...props
1692
1695
  }
1693
1696
  );
@@ -1700,7 +1703,7 @@ function BreadcrumbSeparator({ children, className, ...props }) {
1700
1703
  "data-slot": "breadcrumb-separator",
1701
1704
  role: "presentation",
1702
1705
  "aria-hidden": "true",
1703
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "[&>svg]:size-3.5", className),
1706
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "[&>svg]:size-3.5", className),
1704
1707
  ...props,
1705
1708
  children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, {})))
1706
1709
  }
@@ -1714,7 +1717,7 @@ function BreadcrumbEllipsis({ className, ...props }) {
1714
1717
  "data-slot": "breadcrumb-ellipsis",
1715
1718
  role: "presentation",
1716
1719
  "aria-hidden": "true",
1717
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "size-4 [&>svg]:size-3.5 flex items-center justify-center", className),
1720
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "size-4 [&>svg]:size-3.5 flex items-center justify-center", className),
1718
1721
  ...props,
1719
1722
  children: [
1720
1723
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.MoreHorizontalIcon, {}),
@@ -1745,7 +1748,7 @@ function Calendar({
1745
1748
  _reactdaypicker.DayPicker,
1746
1749
  {
1747
1750
  showOutsideDays,
1748
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
1751
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
1749
1752
  "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",
1750
1753
  String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
1751
1754
  String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
@@ -1757,82 +1760,82 @@ function Calendar({
1757
1760
  ...formatters
1758
1761
  },
1759
1762
  classNames: {
1760
- root: _chunkL5F5ZN5Fjs.cn.call(void 0, "w-fit", defaultClassNames.root),
1761
- months: _chunkL5F5ZN5Fjs.cn.call(void 0, "flex gap-4 flex-col md:flex-row relative", defaultClassNames.months),
1762
- month: _chunkL5F5ZN5Fjs.cn.call(void 0, "flex flex-col w-full gap-4", defaultClassNames.month),
1763
- nav: _chunkL5F5ZN5Fjs.cn.call(void 0, "flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between", defaultClassNames.nav),
1764
- button_previous: _chunkL5F5ZN5Fjs.cn.call(void 0,
1763
+ root: _chunkAHXRHXZ2js.cn.call(void 0, "w-fit", defaultClassNames.root),
1764
+ months: _chunkAHXRHXZ2js.cn.call(void 0, "flex gap-4 flex-col md:flex-row relative", defaultClassNames.months),
1765
+ month: _chunkAHXRHXZ2js.cn.call(void 0, "flex flex-col w-full gap-4", defaultClassNames.month),
1766
+ nav: _chunkAHXRHXZ2js.cn.call(void 0, "flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between", defaultClassNames.nav),
1767
+ button_previous: _chunkAHXRHXZ2js.cn.call(void 0,
1765
1768
  buttonVariants({ variant: buttonVariant }),
1766
1769
  "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
1767
1770
  defaultClassNames.button_previous
1768
1771
  ),
1769
- button_next: _chunkL5F5ZN5Fjs.cn.call(void 0,
1772
+ button_next: _chunkAHXRHXZ2js.cn.call(void 0,
1770
1773
  buttonVariants({ variant: buttonVariant }),
1771
1774
  "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
1772
1775
  defaultClassNames.button_next
1773
1776
  ),
1774
- month_caption: _chunkL5F5ZN5Fjs.cn.call(void 0,
1777
+ month_caption: _chunkAHXRHXZ2js.cn.call(void 0,
1775
1778
  "flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
1776
1779
  defaultClassNames.month_caption
1777
1780
  ),
1778
- dropdowns: _chunkL5F5ZN5Fjs.cn.call(void 0,
1781
+ dropdowns: _chunkAHXRHXZ2js.cn.call(void 0,
1779
1782
  "w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
1780
1783
  defaultClassNames.dropdowns
1781
1784
  ),
1782
- dropdown_root: _chunkL5F5ZN5Fjs.cn.call(void 0,
1785
+ dropdown_root: _chunkAHXRHXZ2js.cn.call(void 0,
1783
1786
  "relative cn-calendar-dropdown-root rounded-(--cell-radius)",
1784
1787
  defaultClassNames.dropdown_root
1785
1788
  ),
1786
- dropdown: _chunkL5F5ZN5Fjs.cn.call(void 0, "absolute bg-popover inset-0 opacity-0", defaultClassNames.dropdown),
1787
- caption_label: _chunkL5F5ZN5Fjs.cn.call(void 0,
1789
+ dropdown: _chunkAHXRHXZ2js.cn.call(void 0, "absolute bg-popover inset-0 opacity-0", defaultClassNames.dropdown),
1790
+ caption_label: _chunkAHXRHXZ2js.cn.call(void 0,
1788
1791
  "select-none font-medium",
1789
1792
  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",
1790
1793
  defaultClassNames.caption_label
1791
1794
  ),
1792
1795
  table: "w-full border-collapse",
1793
- weekdays: _chunkL5F5ZN5Fjs.cn.call(void 0, "flex", defaultClassNames.weekdays),
1794
- weekday: _chunkL5F5ZN5Fjs.cn.call(void 0,
1796
+ weekdays: _chunkAHXRHXZ2js.cn.call(void 0, "flex", defaultClassNames.weekdays),
1797
+ weekday: _chunkAHXRHXZ2js.cn.call(void 0,
1795
1798
  "text-muted-foreground rounded-(--cell-radius) flex-1 font-normal text-[0.8rem] select-none",
1796
1799
  defaultClassNames.weekday
1797
1800
  ),
1798
- week: _chunkL5F5ZN5Fjs.cn.call(void 0, "flex w-full mt-2", defaultClassNames.week),
1799
- week_number_header: _chunkL5F5ZN5Fjs.cn.call(void 0, "select-none w-(--cell-size)", defaultClassNames.week_number_header),
1800
- week_number: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-[0.8rem] select-none text-muted-foreground", defaultClassNames.week_number),
1801
- day: _chunkL5F5ZN5Fjs.cn.call(void 0,
1801
+ week: _chunkAHXRHXZ2js.cn.call(void 0, "flex w-full mt-2", defaultClassNames.week),
1802
+ week_number_header: _chunkAHXRHXZ2js.cn.call(void 0, "select-none w-(--cell-size)", defaultClassNames.week_number_header),
1803
+ week_number: _chunkAHXRHXZ2js.cn.call(void 0, "text-[0.8rem] select-none text-muted-foreground", defaultClassNames.week_number),
1804
+ day: _chunkAHXRHXZ2js.cn.call(void 0,
1802
1805
  "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",
1803
1806
  props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)" : "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)",
1804
1807
  defaultClassNames.day
1805
1808
  ),
1806
- range_start: _chunkL5F5ZN5Fjs.cn.call(void 0,
1809
+ range_start: _chunkAHXRHXZ2js.cn.call(void 0,
1807
1810
  "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",
1808
1811
  defaultClassNames.range_start
1809
1812
  ),
1810
- range_middle: _chunkL5F5ZN5Fjs.cn.call(void 0, "rounded-none", defaultClassNames.range_middle),
1811
- range_end: _chunkL5F5ZN5Fjs.cn.call(void 0,
1813
+ range_middle: _chunkAHXRHXZ2js.cn.call(void 0, "rounded-none", defaultClassNames.range_middle),
1814
+ range_end: _chunkAHXRHXZ2js.cn.call(void 0,
1812
1815
  "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",
1813
1816
  defaultClassNames.range_end
1814
1817
  ),
1815
- today: _chunkL5F5ZN5Fjs.cn.call(void 0,
1818
+ today: _chunkAHXRHXZ2js.cn.call(void 0,
1816
1819
  "bg-muted text-foreground rounded-(--cell-radius) data-[selected=true]:rounded-none",
1817
1820
  defaultClassNames.today
1818
1821
  ),
1819
- outside: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-muted-foreground aria-selected:text-muted-foreground", defaultClassNames.outside),
1820
- disabled: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-muted-foreground opacity-50", defaultClassNames.disabled),
1821
- hidden: _chunkL5F5ZN5Fjs.cn.call(void 0, "invisible", defaultClassNames.hidden),
1822
+ outside: _chunkAHXRHXZ2js.cn.call(void 0, "text-muted-foreground aria-selected:text-muted-foreground", defaultClassNames.outside),
1823
+ disabled: _chunkAHXRHXZ2js.cn.call(void 0, "text-muted-foreground opacity-50", defaultClassNames.disabled),
1824
+ hidden: _chunkAHXRHXZ2js.cn.call(void 0, "invisible", defaultClassNames.hidden),
1822
1825
  ...classNames
1823
1826
  },
1824
1827
  components: {
1825
1828
  Root: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className: className2, rootRef, ...props2 }) => {
1826
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "calendar", ref: rootRef, className: _chunkL5F5ZN5Fjs.cn.call(void 0, className2), ...props2 });
1829
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "calendar", ref: rootRef, className: _chunkAHXRHXZ2js.cn.call(void 0, className2), ...props2 });
1827
1830
  }, "Root"),
1828
1831
  Chevron: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ className: className2, orientation, ...props2 }) => {
1829
1832
  if (orientation === "left") {
1830
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeftIcon, { className: _chunkL5F5ZN5Fjs.cn.call(void 0, "size-4", className2), ...props2 });
1833
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeftIcon, { className: _chunkAHXRHXZ2js.cn.call(void 0, "size-4", className2), ...props2 });
1831
1834
  }
1832
1835
  if (orientation === "right") {
1833
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className: _chunkL5F5ZN5Fjs.cn.call(void 0, "size-4", className2), ...props2 });
1836
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className: _chunkAHXRHXZ2js.cn.call(void 0, "size-4", className2), ...props2 });
1834
1837
  }
1835
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: _chunkL5F5ZN5Fjs.cn.call(void 0, "size-4", className2), ...props2 });
1838
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: _chunkAHXRHXZ2js.cn.call(void 0, "size-4", className2), ...props2 });
1836
1839
  }, "Chevron"),
1837
1840
  DayButton: CalendarDayButton,
1838
1841
  WeekNumber: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ children, ...props2 }) => {
@@ -1861,7 +1864,7 @@ function CalendarDayButton({ className, day, modifiers, ...props }) {
1861
1864
  "data-range-start": modifiers.range_start,
1862
1865
  "data-range-end": modifiers.range_end,
1863
1866
  "data-range-middle": modifiers.range_middle,
1864
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
1867
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
1865
1868
  "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",
1866
1869
  defaultClassNames.day,
1867
1870
  className
@@ -1880,7 +1883,7 @@ function Card({ className, size = "default", ...props }) {
1880
1883
  {
1881
1884
  "data-slot": "card",
1882
1885
  "data-size": size,
1883
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
1886
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
1884
1887
  "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",
1885
1888
  className
1886
1889
  ),
@@ -1894,7 +1897,7 @@ function CardHeader({ className, ...props }) {
1894
1897
  "div",
1895
1898
  {
1896
1899
  "data-slot": "card-header",
1897
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
1900
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
1898
1901
  "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]",
1899
1902
  className
1900
1903
  ),
@@ -1904,11 +1907,11 @@ function CardHeader({ className, ...props }) {
1904
1907
  }
1905
1908
  _chunk7QVYU63Ejs.__name.call(void 0, CardHeader, "CardHeader");
1906
1909
  function CardTitle({ className, ...props }) {
1907
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-title", className: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-sm font-medium", className), ...props });
1910
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-title", className: _chunkAHXRHXZ2js.cn.call(void 0, "text-sm font-medium", className), ...props });
1908
1911
  }
1909
1912
  _chunk7QVYU63Ejs.__name.call(void 0, CardTitle, "CardTitle");
1910
1913
  function CardDescription({ className, ...props }) {
1911
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-description", className: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className), ...props });
1914
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-description", className: _chunkAHXRHXZ2js.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className), ...props });
1912
1915
  }
1913
1916
  _chunk7QVYU63Ejs.__name.call(void 0, CardDescription, "CardDescription");
1914
1917
  function CardAction({ className, ...props }) {
@@ -1916,14 +1919,14 @@ function CardAction({ className, ...props }) {
1916
1919
  "div",
1917
1920
  {
1918
1921
  "data-slot": "card-action",
1919
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
1922
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
1920
1923
  ...props
1921
1924
  }
1922
1925
  );
1923
1926
  }
1924
1927
  _chunk7QVYU63Ejs.__name.call(void 0, CardAction, "CardAction");
1925
1928
  function CardContent({ className, ...props }) {
1926
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-content", className: _chunkL5F5ZN5Fjs.cn.call(void 0, "px-4 group-data-[size=sm]/card:px-3", className), ...props });
1929
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "card-content", className: _chunkAHXRHXZ2js.cn.call(void 0, "px-4 group-data-[size=sm]/card:px-3", className), ...props });
1927
1930
  }
1928
1931
  _chunk7QVYU63Ejs.__name.call(void 0, CardContent, "CardContent");
1929
1932
  function CardFooter({ className, ...props }) {
@@ -1931,7 +1934,7 @@ function CardFooter({ className, ...props }) {
1931
1934
  "div",
1932
1935
  {
1933
1936
  "data-slot": "card-footer",
1934
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
1937
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
1935
1938
  "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",
1936
1939
  className
1937
1940
  ),
@@ -2026,7 +2029,7 @@ function Carousel({
2026
2029
  "div",
2027
2030
  {
2028
2031
  onKeyDownCapture: handleKeyDown,
2029
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "relative", className),
2032
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "relative", className),
2030
2033
  role: "region",
2031
2034
  "aria-roledescription": "carousel",
2032
2035
  "data-slot": "carousel",
@@ -2040,7 +2043,7 @@ function Carousel({
2040
2043
  _chunk7QVYU63Ejs.__name.call(void 0, Carousel, "Carousel");
2041
2044
  function CarouselContent({ className, ...props }) {
2042
2045
  const { carouselRef, orientation } = useCarousel();
2043
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: carouselRef, className: "overflow-hidden", "data-slot": "carousel-content", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkL5F5ZN5Fjs.cn.call(void 0, "flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className), ...props }) });
2046
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: carouselRef, className: "overflow-hidden", "data-slot": "carousel-content", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkAHXRHXZ2js.cn.call(void 0, "flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className), ...props }) });
2044
2047
  }
2045
2048
  _chunk7QVYU63Ejs.__name.call(void 0, CarouselContent, "CarouselContent");
2046
2049
  function CarouselItem({ className, ...props }) {
@@ -2051,7 +2054,7 @@ function CarouselItem({ className, ...props }) {
2051
2054
  role: "group",
2052
2055
  "aria-roledescription": "slide",
2053
2056
  "data-slot": "carousel-item",
2054
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "min-w-0 shrink-0 grow-0 basis-full", orientation === "horizontal" ? "pl-4" : "pt-4", className),
2057
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "min-w-0 shrink-0 grow-0 basis-full", orientation === "horizontal" ? "pl-4" : "pt-4", className),
2055
2058
  ...props
2056
2059
  }
2057
2060
  );
@@ -2070,7 +2073,7 @@ function CarouselPrevious({
2070
2073
  "data-slot": "carousel-previous",
2071
2074
  variant,
2072
2075
  size,
2073
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2076
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2074
2077
  "rounded-full absolute touch-manipulation",
2075
2078
  orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
2076
2079
  className
@@ -2099,7 +2102,7 @@ function CarouselNext({
2099
2102
  "data-slot": "carousel-next",
2100
2103
  variant,
2101
2104
  size,
2102
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2105
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2103
2106
  "rounded-full absolute touch-manipulation",
2104
2107
  orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
2105
2108
  className
@@ -2144,7 +2147,7 @@ function ChartContainer({
2144
2147
  {
2145
2148
  "data-slot": "chart",
2146
2149
  "data-chart": chartId,
2147
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2150
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2148
2151
  "[&_.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",
2149
2152
  className
2150
2153
  ),
@@ -2206,12 +2209,12 @@ function ChartTooltipContent({
2206
2209
  const itemConfig = getPayloadConfigFromPayload(config, item, key);
2207
2210
  const value = !labelKey && typeof label === "string" ? _optionalChain([config, 'access', _71 => _71[label], 'optionalAccess', _72 => _72.label]) || label : _optionalChain([itemConfig, 'optionalAccess', _73 => _73.label]);
2208
2211
  if (labelFormatter) {
2209
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkL5F5ZN5Fjs.cn.call(void 0, "font-medium", labelClassName), children: labelFormatter(value, payload) });
2212
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkAHXRHXZ2js.cn.call(void 0, "font-medium", labelClassName), children: labelFormatter(value, payload) });
2210
2213
  }
2211
2214
  if (!value) {
2212
2215
  return null;
2213
2216
  }
2214
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkL5F5ZN5Fjs.cn.call(void 0, "font-medium", labelClassName), children: value });
2217
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkAHXRHXZ2js.cn.call(void 0, "font-medium", labelClassName), children: value });
2215
2218
  }, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey]);
2216
2219
  if (!active || !_optionalChain([payload, 'optionalAccess', _74 => _74.length])) {
2217
2220
  return null;
@@ -2220,7 +2223,7 @@ function ChartTooltipContent({
2220
2223
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2221
2224
  "div",
2222
2225
  {
2223
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2226
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2224
2227
  "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",
2225
2228
  className
2226
2229
  ),
@@ -2233,7 +2236,7 @@ function ChartTooltipContent({
2233
2236
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2234
2237
  "div",
2235
2238
  {
2236
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2239
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2237
2240
  "[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
2238
2241
  indicator === "dot" && "items-center"
2239
2242
  ),
@@ -2241,7 +2244,7 @@ function ChartTooltipContent({
2241
2244
  _optionalChain([itemConfig, 'optionalAccess', _78 => _78.icon]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2242
2245
  "div",
2243
2246
  {
2244
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", {
2247
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", {
2245
2248
  "h-2.5 w-2.5": indicator === "dot",
2246
2249
  "w-1": indicator === "line",
2247
2250
  "w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
@@ -2256,7 +2259,7 @@ function ChartTooltipContent({
2256
2259
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2257
2260
  "div",
2258
2261
  {
2259
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2262
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2260
2263
  "flex flex-1 justify-between leading-none",
2261
2264
  nestLabel ? "items-end" : "items-center"
2262
2265
  ),
@@ -2291,13 +2294,13 @@ function ChartLegendContent({
2291
2294
  if (!_optionalChain([payload, 'optionalAccess', _80 => _80.length])) {
2292
2295
  return null;
2293
2296
  }
2294
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkL5F5ZN5Fjs.cn.call(void 0, "flex items-center justify-center gap-4", verticalAlign === "top" ? "pb-3" : "pt-3", className), children: payload.filter((item) => item.type !== "none").map((item) => {
2297
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkAHXRHXZ2js.cn.call(void 0, "flex items-center justify-center gap-4", verticalAlign === "top" ? "pb-3" : "pt-3", className), children: payload.filter((item) => item.type !== "none").map((item) => {
2295
2298
  const key = `${nameKey || item.dataKey || "value"}`;
2296
2299
  const itemConfig = getPayloadConfigFromPayload(config, item, key);
2297
2300
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2298
2301
  "div",
2299
2302
  {
2300
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),
2303
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),
2301
2304
  children: [
2302
2305
  _optionalChain([itemConfig, 'optionalAccess', _81 => _81.icon]) && !hideIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2303
2306
  "div",
@@ -2340,7 +2343,7 @@ function Checkbox({ className, ...props }) {
2340
2343
  _checkbox.Checkbox.Root,
2341
2344
  {
2342
2345
  "data-slot": "checkbox",
2343
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2346
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2344
2347
  "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",
2345
2348
  className
2346
2349
  ),
@@ -2402,7 +2405,7 @@ function DialogOverlay({ className, ...props }) {
2402
2405
  _dialog.Dialog.Backdrop,
2403
2406
  {
2404
2407
  "data-slot": "dialog-overlay",
2405
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2408
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2406
2409
  "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",
2407
2410
  className
2408
2411
  ),
@@ -2423,7 +2426,7 @@ function DialogContent({
2423
2426
  _dialog.Dialog.Popup,
2424
2427
  {
2425
2428
  "data-slot": "dialog-content",
2426
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2429
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2427
2430
  "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",
2428
2431
  className
2429
2432
  ),
@@ -2448,7 +2451,7 @@ function DialogContent({
2448
2451
  }
2449
2452
  _chunk7QVYU63Ejs.__name.call(void 0, DialogContent, "DialogContent");
2450
2453
  function DialogHeader({ className, ...props }) {
2451
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "dialog-header", className: _chunkL5F5ZN5Fjs.cn.call(void 0, "gap-1 flex flex-col", className), ...props });
2454
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "dialog-header", className: _chunkAHXRHXZ2js.cn.call(void 0, "gap-1 flex flex-col", className), ...props });
2452
2455
  }
2453
2456
  _chunk7QVYU63Ejs.__name.call(void 0, DialogHeader, "DialogHeader");
2454
2457
  function DialogFooter({
@@ -2461,7 +2464,7 @@ function DialogFooter({
2461
2464
  "div",
2462
2465
  {
2463
2466
  "data-slot": "dialog-footer",
2464
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "gap-2 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
2467
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "gap-2 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
2465
2468
  ...props,
2466
2469
  children: [
2467
2470
  children,
@@ -2472,7 +2475,7 @@ function DialogFooter({
2472
2475
  }
2473
2476
  _chunk7QVYU63Ejs.__name.call(void 0, DialogFooter, "DialogFooter");
2474
2477
  function DialogTitle({ className, ...props }) {
2475
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _dialog.Dialog.Title, { "data-slot": "dialog-title", className: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-sm font-medium", className), ...props });
2478
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _dialog.Dialog.Title, { "data-slot": "dialog-title", className: _chunkAHXRHXZ2js.cn.call(void 0, "text-sm font-medium", className), ...props });
2476
2479
  }
2477
2480
  _chunk7QVYU63Ejs.__name.call(void 0, DialogTitle, "DialogTitle");
2478
2481
  function DialogDescription({ className, ...props }) {
@@ -2480,7 +2483,7 @@ function DialogDescription({ className, ...props }) {
2480
2483
  _dialog.Dialog.Description,
2481
2484
  {
2482
2485
  "data-slot": "dialog-description",
2483
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2486
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2484
2487
  "text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed *:[a]:underline *:[a]:underline-offset-3",
2485
2488
  className
2486
2489
  ),
@@ -2502,7 +2505,7 @@ function Input({ className, type, ...props }) {
2502
2505
  {
2503
2506
  type,
2504
2507
  "data-slot": "input",
2505
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2508
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2506
2509
  "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",
2507
2510
  className
2508
2511
  ),
@@ -2519,7 +2522,7 @@ function Textarea({ className, ...props }) {
2519
2522
  "textarea",
2520
2523
  {
2521
2524
  "data-slot": "textarea",
2522
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2525
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2523
2526
  "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",
2524
2527
  className
2525
2528
  ),
@@ -2537,7 +2540,7 @@ function InputGroup({ className, ...props }) {
2537
2540
  {
2538
2541
  "data-slot": "input-group",
2539
2542
  role: "group",
2540
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2543
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2541
2544
  "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",
2542
2545
  className
2543
2546
  ),
@@ -2573,7 +2576,7 @@ function InputGroupAddon({
2573
2576
  role: "group",
2574
2577
  "data-slot": "input-group-addon",
2575
2578
  "data-align": align,
2576
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, inputGroupAddonVariants({ align }), className),
2579
+ className: _chunkAHXRHXZ2js.cn.call(void 0, inputGroupAddonVariants({ align }), className),
2577
2580
  onClick: (e) => {
2578
2581
  if (e.target.closest("button")) {
2579
2582
  return;
@@ -2611,7 +2614,7 @@ function InputGroupButton({
2611
2614
  type,
2612
2615
  "data-size": size,
2613
2616
  variant,
2614
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, inputGroupButtonVariants({ size }), className),
2617
+ className: _chunkAHXRHXZ2js.cn.call(void 0, inputGroupButtonVariants({ size }), className),
2615
2618
  ...props
2616
2619
  }
2617
2620
  );
@@ -2621,7 +2624,7 @@ function InputGroupText({ className, ...props }) {
2621
2624
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2622
2625
  "span",
2623
2626
  {
2624
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2627
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2625
2628
  "text-muted-foreground gap-2 text-xs/relaxed [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none",
2626
2629
  className
2627
2630
  ),
@@ -2635,7 +2638,7 @@ function InputGroupInput({ className, ...props }) {
2635
2638
  Input,
2636
2639
  {
2637
2640
  "data-slot": "input-group-control",
2638
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2641
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2639
2642
  "rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent flex-1",
2640
2643
  className
2641
2644
  ),
@@ -2649,7 +2652,7 @@ function InputGroupTextarea({ className, ...props }) {
2649
2652
  Textarea,
2650
2653
  {
2651
2654
  "data-slot": "input-group-control",
2652
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2655
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2653
2656
  "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",
2654
2657
  className
2655
2658
  ),
@@ -2667,7 +2670,7 @@ function Command({ className, ...props }) {
2667
2670
  _cmdk.Command,
2668
2671
  {
2669
2672
  "data-slot": "command",
2670
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2673
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2671
2674
  "bg-popover text-popover-foreground rounded-xl p-1 flex size-full flex-col overflow-hidden",
2672
2675
  className
2673
2676
  ),
@@ -2689,7 +2692,7 @@ function CommandDialog({
2689
2692
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTitle, { children: title }),
2690
2693
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogDescription, { children: description })
2691
2694
  ] }),
2692
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogContent, { className: _chunkL5F5ZN5Fjs.cn.call(void 0, "rounded-xl! p-0 overflow-hidden p-0", className), showCloseButton, children })
2695
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogContent, { className: _chunkAHXRHXZ2js.cn.call(void 0, "rounded-xl! p-0 overflow-hidden p-0", className), showCloseButton, children })
2693
2696
  ] });
2694
2697
  }
2695
2698
  _chunk7QVYU63Ejs.__name.call(void 0, CommandDialog, "CommandDialog");
@@ -2699,7 +2702,7 @@ function CommandInput({ className, ...props }) {
2699
2702
  _cmdk.Command.Input,
2700
2703
  {
2701
2704
  "data-slot": "command-input",
2702
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2705
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2703
2706
  "w-full text-xs/relaxed outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
2704
2707
  className
2705
2708
  ),
@@ -2715,7 +2718,7 @@ function CommandList({ className, ...props }) {
2715
2718
  _cmdk.Command.List,
2716
2719
  {
2717
2720
  "data-slot": "command-list",
2718
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "no-scrollbar max-h-72 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto", className),
2721
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "no-scrollbar max-h-72 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto", className),
2719
2722
  ...props
2720
2723
  }
2721
2724
  );
@@ -2726,7 +2729,7 @@ function CommandEmpty({ className, ...props }) {
2726
2729
  _cmdk.Command.Empty,
2727
2730
  {
2728
2731
  "data-slot": "command-empty",
2729
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "py-6 text-center text-xs/relaxed", className),
2732
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "py-6 text-center text-xs/relaxed", className),
2730
2733
  ...props
2731
2734
  }
2732
2735
  );
@@ -2737,7 +2740,7 @@ function CommandGroup({ className, ...props }) {
2737
2740
  _cmdk.Command.Group,
2738
2741
  {
2739
2742
  "data-slot": "command-group",
2740
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2743
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2741
2744
  "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",
2742
2745
  className
2743
2746
  ),
@@ -2751,7 +2754,7 @@ function CommandSeparator({ className, ...props }) {
2751
2754
  _cmdk.Command.Separator,
2752
2755
  {
2753
2756
  "data-slot": "command-separator",
2754
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
2757
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
2755
2758
  ...props
2756
2759
  }
2757
2760
  );
@@ -2762,7 +2765,7 @@ function CommandItem({ className, children, ...props }) {
2762
2765
  _cmdk.Command.Item,
2763
2766
  {
2764
2767
  "data-slot": "command-item",
2765
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2768
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2766
2769
  "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",
2767
2770
  className
2768
2771
  ),
@@ -2780,7 +2783,7 @@ function CommandShortcut({ className, ...props }) {
2780
2783
  "span",
2781
2784
  {
2782
2785
  "data-slot": "command-shortcut",
2783
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2786
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2784
2787
  "text-muted-foreground group-data-selected/command-item:text-foreground ml-auto text-[0.625rem] tracking-widest",
2785
2788
  className
2786
2789
  ),
@@ -2807,7 +2810,7 @@ function ContextMenuTrigger({ className, ...props }) {
2807
2810
  _contextmenu.ContextMenu.Trigger,
2808
2811
  {
2809
2812
  "data-slot": "context-menu-trigger",
2810
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "select-none", className),
2813
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "select-none", className),
2811
2814
  ...props
2812
2815
  }
2813
2816
  );
@@ -2833,7 +2836,7 @@ function ContextMenuContent({
2833
2836
  _contextmenu.ContextMenu.Popup,
2834
2837
  {
2835
2838
  "data-slot": "context-menu-content",
2836
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2839
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2837
2840
  "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",
2838
2841
  className
2839
2842
  ),
@@ -2858,7 +2861,7 @@ function ContextMenuLabel({
2858
2861
  {
2859
2862
  "data-slot": "context-menu-label",
2860
2863
  "data-inset": inset,
2861
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
2864
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
2862
2865
  ...props
2863
2866
  }
2864
2867
  );
@@ -2876,7 +2879,7 @@ function ContextMenuItem({
2876
2879
  "data-slot": "context-menu-item",
2877
2880
  "data-inset": inset,
2878
2881
  "data-variant": variant,
2879
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2882
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2880
2883
  "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",
2881
2884
  className
2882
2885
  ),
@@ -2900,7 +2903,7 @@ function ContextMenuSubTrigger({
2900
2903
  {
2901
2904
  "data-slot": "context-menu-sub-trigger",
2902
2905
  "data-inset": inset,
2903
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2906
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2904
2907
  "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",
2905
2908
  className
2906
2909
  ),
@@ -2922,7 +2925,7 @@ function ContextMenuCheckboxItem({ className, children, checked, ...props }) {
2922
2925
  _contextmenu.ContextMenu.CheckboxItem,
2923
2926
  {
2924
2927
  "data-slot": "context-menu-checkbox-item",
2925
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2928
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2926
2929
  "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",
2927
2930
  className
2928
2931
  ),
@@ -2945,7 +2948,7 @@ function ContextMenuRadioItem({ className, children, ...props }) {
2945
2948
  _contextmenu.ContextMenu.RadioItem,
2946
2949
  {
2947
2950
  "data-slot": "context-menu-radio-item",
2948
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2951
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2949
2952
  "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",
2950
2953
  className
2951
2954
  ),
@@ -2963,7 +2966,7 @@ function ContextMenuSeparator({ className, ...props }) {
2963
2966
  _contextmenu.ContextMenu.Separator,
2964
2967
  {
2965
2968
  "data-slot": "context-menu-separator",
2966
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
2969
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
2967
2970
  ...props
2968
2971
  }
2969
2972
  );
@@ -2974,7 +2977,7 @@ function ContextMenuShortcut({ className, ...props }) {
2974
2977
  "span",
2975
2978
  {
2976
2979
  "data-slot": "context-menu-shortcut",
2977
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
2980
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
2978
2981
  "text-muted-foreground group-focus/context-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest",
2979
2982
  className
2980
2983
  ),
@@ -3008,7 +3011,7 @@ function DrawerOverlay({ className, ...props }) {
3008
3011
  _vaul.Drawer.Overlay,
3009
3012
  {
3010
3013
  "data-slot": "drawer-overlay",
3011
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3014
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3012
3015
  "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",
3013
3016
  className
3014
3017
  ),
@@ -3024,7 +3027,7 @@ function DrawerContent({ className, children, ...props }) {
3024
3027
  _vaul.Drawer.Content,
3025
3028
  {
3026
3029
  "data-slot": "drawer-content",
3027
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3030
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3028
3031
  "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",
3029
3032
  className
3030
3033
  ),
@@ -3043,7 +3046,7 @@ function DrawerHeader({ className, ...props }) {
3043
3046
  "div",
3044
3047
  {
3045
3048
  "data-slot": "drawer-header",
3046
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3049
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3047
3050
  "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",
3048
3051
  className
3049
3052
  ),
@@ -3053,7 +3056,7 @@ function DrawerHeader({ className, ...props }) {
3053
3056
  }
3054
3057
  _chunk7QVYU63Ejs.__name.call(void 0, DrawerHeader, "DrawerHeader");
3055
3058
  function DrawerFooter({ className, ...props }) {
3056
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "drawer-footer", className: _chunkL5F5ZN5Fjs.cn.call(void 0, "gap-2 p-4 mt-auto flex flex-col", className), ...props });
3059
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "drawer-footer", className: _chunkAHXRHXZ2js.cn.call(void 0, "gap-2 p-4 mt-auto flex flex-col", className), ...props });
3057
3060
  }
3058
3061
  _chunk7QVYU63Ejs.__name.call(void 0, DrawerFooter, "DrawerFooter");
3059
3062
  function DrawerTitle({ className, ...props }) {
@@ -3061,7 +3064,7 @@ function DrawerTitle({ className, ...props }) {
3061
3064
  _vaul.Drawer.Title,
3062
3065
  {
3063
3066
  "data-slot": "drawer-title",
3064
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-foreground text-sm font-medium", className),
3067
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "text-foreground text-sm font-medium", className),
3065
3068
  ...props
3066
3069
  }
3067
3070
  );
@@ -3072,7 +3075,7 @@ function DrawerDescription({ className, ...props }) {
3072
3075
  _vaul.Drawer.Description,
3073
3076
  {
3074
3077
  "data-slot": "drawer-description",
3075
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
3078
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
3076
3079
  ...props
3077
3080
  }
3078
3081
  );
@@ -3115,7 +3118,7 @@ function DropdownMenuContent({
3115
3118
  _menu.Menu.Popup,
3116
3119
  {
3117
3120
  "data-slot": "dropdown-menu-content",
3118
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3121
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3119
3122
  "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",
3120
3123
  className
3121
3124
  ),
@@ -3140,7 +3143,7 @@ function DropdownMenuLabel({
3140
3143
  {
3141
3144
  "data-slot": "dropdown-menu-label",
3142
3145
  "data-inset": inset,
3143
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
3146
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs data-[inset]:pl-8", className),
3144
3147
  ...props
3145
3148
  }
3146
3149
  );
@@ -3158,7 +3161,7 @@ function DropdownMenuItem({
3158
3161
  "data-slot": "dropdown-menu-item",
3159
3162
  "data-inset": inset,
3160
3163
  "data-variant": variant,
3161
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3164
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3162
3165
  "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",
3163
3166
  className
3164
3167
  ),
@@ -3182,7 +3185,7 @@ function DropdownMenuSubTrigger({
3182
3185
  {
3183
3186
  "data-slot": "dropdown-menu-sub-trigger",
3184
3187
  "data-inset": inset,
3185
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3188
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3186
3189
  "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",
3187
3190
  className
3188
3191
  ),
@@ -3207,7 +3210,7 @@ function DropdownMenuSubContent({
3207
3210
  DropdownMenuContent,
3208
3211
  {
3209
3212
  "data-slot": "dropdown-menu-sub-content",
3210
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3213
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3211
3214
  "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",
3212
3215
  className
3213
3216
  ),
@@ -3225,7 +3228,7 @@ function DropdownMenuCheckboxItem({ className, children, checked, ...props }) {
3225
3228
  _menu.Menu.CheckboxItem,
3226
3229
  {
3227
3230
  "data-slot": "dropdown-menu-checkbox-item",
3228
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3231
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3229
3232
  "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",
3230
3233
  className
3231
3234
  ),
@@ -3255,7 +3258,7 @@ function DropdownMenuRadioItem({ className, children, ...props }) {
3255
3258
  _menu.Menu.RadioItem,
3256
3259
  {
3257
3260
  "data-slot": "dropdown-menu-radio-item",
3258
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3261
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3259
3262
  "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",
3260
3263
  className
3261
3264
  ),
@@ -3280,7 +3283,7 @@ function DropdownMenuSeparator({ className, ...props }) {
3280
3283
  _menu.Menu.Separator,
3281
3284
  {
3282
3285
  "data-slot": "dropdown-menu-separator",
3283
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
3286
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px", className),
3284
3287
  ...props
3285
3288
  }
3286
3289
  );
@@ -3291,7 +3294,7 @@ function DropdownMenuShortcut({ className, ...props }) {
3291
3294
  "span",
3292
3295
  {
3293
3296
  "data-slot": "dropdown-menu-shortcut",
3294
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3297
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3295
3298
  "text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest",
3296
3299
  className
3297
3300
  ),
@@ -3312,7 +3315,7 @@ function Label({ className, ...props }) {
3312
3315
  "label",
3313
3316
  {
3314
3317
  "data-slot": "label",
3315
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3318
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3316
3319
  "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",
3317
3320
  className
3318
3321
  ),
@@ -3331,7 +3334,7 @@ function Separator({ className, orientation = "horizontal", ...props }) {
3331
3334
  {
3332
3335
  "data-slot": "separator",
3333
3336
  orientation,
3334
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3337
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3335
3338
  "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch",
3336
3339
  className
3337
3340
  ),
@@ -3348,7 +3351,7 @@ function FieldSet({ className, ...props }) {
3348
3351
  "fieldset",
3349
3352
  {
3350
3353
  "data-slot": "field-set",
3351
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3354
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3352
3355
  "gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col",
3353
3356
  className
3354
3357
  ),
@@ -3367,7 +3370,7 @@ function FieldLegend({
3367
3370
  {
3368
3371
  "data-slot": "field-legend",
3369
3372
  "data-variant": variant,
3370
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "mb-2 font-medium data-[variant=label]:text-xs/relaxed data-[variant=legend]:text-sm", className),
3373
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "mb-2 font-medium data-[variant=label]:text-xs/relaxed data-[variant=legend]:text-sm", className),
3371
3374
  ...props
3372
3375
  }
3373
3376
  );
@@ -3378,7 +3381,7 @@ function FieldGroup({ className, ...props }) {
3378
3381
  "div",
3379
3382
  {
3380
3383
  "data-slot": "field-group",
3381
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3384
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3382
3385
  "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",
3383
3386
  className
3384
3387
  ),
@@ -3410,7 +3413,7 @@ function Field({
3410
3413
  role: "group",
3411
3414
  "data-slot": "field",
3412
3415
  "data-orientation": orientation,
3413
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, fieldVariants({ orientation }), className),
3416
+ className: _chunkAHXRHXZ2js.cn.call(void 0, fieldVariants({ orientation }), className),
3414
3417
  ...props
3415
3418
  }
3416
3419
  );
@@ -3421,7 +3424,7 @@ function FieldContent({ className, ...props }) {
3421
3424
  "div",
3422
3425
  {
3423
3426
  "data-slot": "field-content",
3424
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "gap-0.5 group/field-content flex flex-1 flex-col leading-snug", className),
3427
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "gap-0.5 group/field-content flex flex-1 flex-col leading-snug", className),
3425
3428
  ...props
3426
3429
  }
3427
3430
  );
@@ -3432,7 +3435,7 @@ function FieldLabel({ className, ...props }) {
3432
3435
  Label,
3433
3436
  {
3434
3437
  "data-slot": "field-label",
3435
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3438
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3436
3439
  "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",
3437
3440
  "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",
3438
3441
  className
@@ -3447,7 +3450,7 @@ function FieldTitle({ className, ...props }) {
3447
3450
  "div",
3448
3451
  {
3449
3452
  "data-slot": "field-label",
3450
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3453
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3451
3454
  "gap-2 text-xs/relaxed font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center leading-snug",
3452
3455
  className
3453
3456
  ),
@@ -3461,7 +3464,7 @@ function FieldDescription({ className, ...props }) {
3461
3464
  "p",
3462
3465
  {
3463
3466
  "data-slot": "field-description",
3464
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3467
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3465
3468
  "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",
3466
3469
  "last:mt-0 nth-last-2:-mt-1",
3467
3470
  "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
@@ -3482,7 +3485,7 @@ function FieldSeparator({
3482
3485
  {
3483
3486
  "data-slot": "field-separator",
3484
3487
  "data-content": !!children,
3485
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "-my-2 h-5 text-xs/relaxed group-data-[variant=outline]/field-group:-mb-2 relative", className),
3488
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "-my-2 h-5 text-xs/relaxed group-data-[variant=outline]/field-group:-mb-2 relative", className),
3486
3489
  ...props,
3487
3490
  children: [
3488
3491
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, { className: "absolute inset-0 top-1/2" }),
@@ -3526,7 +3529,7 @@ function FieldError({
3526
3529
  {
3527
3530
  role: "alert",
3528
3531
  "data-slot": "field-error",
3529
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-destructive text-xs/relaxed font-normal", className),
3532
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "text-destructive text-xs/relaxed font-normal", className),
3530
3533
  ...props,
3531
3534
  children: content
3532
3535
  }
@@ -3569,7 +3572,7 @@ function HoverCardContent({
3569
3572
  _previewcard.PreviewCard.Popup,
3570
3573
  {
3571
3574
  "data-slot": "hover-card-content",
3572
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3575
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3573
3576
  "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",
3574
3577
  className
3575
3578
  ),
@@ -3595,9 +3598,9 @@ function InputOTP({
3595
3598
  _inputotp.OTPInput,
3596
3599
  {
3597
3600
  "data-slot": "input-otp",
3598
- containerClassName: _chunkL5F5ZN5Fjs.cn.call(void 0, "cn-input-otp flex items-center has-disabled:opacity-50", containerClassName),
3601
+ containerClassName: _chunkAHXRHXZ2js.cn.call(void 0, "cn-input-otp flex items-center has-disabled:opacity-50", containerClassName),
3599
3602
  spellCheck: false,
3600
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "disabled:cursor-not-allowed", className),
3603
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "disabled:cursor-not-allowed", className),
3601
3604
  ...props
3602
3605
  }
3603
3606
  );
@@ -3608,7 +3611,7 @@ function InputOTPGroup({ className, ...props }) {
3608
3611
  "div",
3609
3612
  {
3610
3613
  "data-slot": "input-otp-group",
3611
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3614
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3612
3615
  "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",
3613
3616
  className
3614
3617
  ),
@@ -3629,7 +3632,7 @@ function InputOTPSlot({
3629
3632
  {
3630
3633
  "data-slot": "input-otp-slot",
3631
3634
  "data-active": isActive,
3632
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3635
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3633
3636
  "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",
3634
3637
  className
3635
3638
  ),
@@ -3670,7 +3673,7 @@ function NavigationMenu({
3670
3673
  _navigationmenu.NavigationMenu.Root,
3671
3674
  {
3672
3675
  "data-slot": "navigation-menu",
3673
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3676
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3674
3677
  "max-w-max group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
3675
3678
  className
3676
3679
  ),
@@ -3688,14 +3691,14 @@ function NavigationMenuList({ className, ...props }) {
3688
3691
  _navigationmenu.NavigationMenu.List,
3689
3692
  {
3690
3693
  "data-slot": "navigation-menu-list",
3691
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "gap-0 group flex flex-1 list-none items-center justify-center", className),
3694
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "gap-0 group flex flex-1 list-none items-center justify-center", className),
3692
3695
  ...props
3693
3696
  }
3694
3697
  );
3695
3698
  }
3696
3699
  _chunk7QVYU63Ejs.__name.call(void 0, NavigationMenuList, "NavigationMenuList");
3697
3700
  function NavigationMenuItem({ className, ...props }) {
3698
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _navigationmenu.NavigationMenu.Item, { "data-slot": "navigation-menu-item", className: _chunkL5F5ZN5Fjs.cn.call(void 0, "relative", className), ...props });
3701
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _navigationmenu.NavigationMenu.Item, { "data-slot": "navigation-menu-item", className: _chunkAHXRHXZ2js.cn.call(void 0, "relative", className), ...props });
3699
3702
  }
3700
3703
  _chunk7QVYU63Ejs.__name.call(void 0, NavigationMenuItem, "NavigationMenuItem");
3701
3704
  var navigationMenuTriggerStyle = _classvarianceauthority.cva.call(void 0,
@@ -3706,7 +3709,7 @@ function NavigationMenuTrigger({ className, children, ...props }) {
3706
3709
  _navigationmenu.NavigationMenu.Trigger,
3707
3710
  {
3708
3711
  "data-slot": "navigation-menu-trigger",
3709
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, navigationMenuTriggerStyle(), "group", className),
3712
+ className: _chunkAHXRHXZ2js.cn.call(void 0, navigationMenuTriggerStyle(), "group", className),
3710
3713
  ...props,
3711
3714
  children: [
3712
3715
  children,
@@ -3728,7 +3731,7 @@ function NavigationMenuContent({ className, ...props }) {
3728
3731
  _navigationmenu.NavigationMenu.Content,
3729
3732
  {
3730
3733
  "data-slot": "navigation-menu-content",
3731
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3734
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3732
3735
  "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",
3733
3736
  className
3734
3737
  ),
@@ -3752,7 +3755,7 @@ function NavigationMenuPositioner({
3752
3755
  sideOffset,
3753
3756
  align,
3754
3757
  alignOffset,
3755
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3758
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3756
3759
  "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",
3757
3760
  className
3758
3761
  ),
@@ -3767,7 +3770,7 @@ function NavigationMenuLink({ className, ...props }) {
3767
3770
  _navigationmenu.NavigationMenu.Link,
3768
3771
  {
3769
3772
  "data-slot": "navigation-menu-link",
3770
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3773
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3771
3774
  "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",
3772
3775
  className
3773
3776
  ),
@@ -3784,7 +3787,7 @@ function NavigationMenuIndicator({
3784
3787
  _navigationmenu.NavigationMenu.Icon,
3785
3788
  {
3786
3789
  "data-slot": "navigation-menu-indicator",
3787
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3790
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3788
3791
  "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",
3789
3792
  className
3790
3793
  ),
@@ -3826,7 +3829,7 @@ function PopoverContent({
3826
3829
  _popover.Popover.Popup,
3827
3830
  {
3828
3831
  "data-slot": "popover-content",
3829
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3832
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3830
3833
  "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",
3831
3834
  className
3832
3835
  ),
@@ -3838,11 +3841,11 @@ function PopoverContent({
3838
3841
  }
3839
3842
  _chunk7QVYU63Ejs.__name.call(void 0, PopoverContent, "PopoverContent");
3840
3843
  function PopoverHeader({ className, ...props }) {
3841
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "popover-header", className: _chunkL5F5ZN5Fjs.cn.call(void 0, "flex flex-col gap-1 text-xs", className), ...props });
3844
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "popover-header", className: _chunkAHXRHXZ2js.cn.call(void 0, "flex flex-col gap-1 text-xs", className), ...props });
3842
3845
  }
3843
3846
  _chunk7QVYU63Ejs.__name.call(void 0, PopoverHeader, "PopoverHeader");
3844
3847
  function PopoverTitle({ className, ...props }) {
3845
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _popover.Popover.Title, { "data-slot": "popover-title", className: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-sm font-medium", className), ...props });
3848
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _popover.Popover.Title, { "data-slot": "popover-title", className: _chunkAHXRHXZ2js.cn.call(void 0, "text-sm font-medium", className), ...props });
3846
3849
  }
3847
3850
  _chunk7QVYU63Ejs.__name.call(void 0, PopoverTitle, "PopoverTitle");
3848
3851
  function PopoverDescription({ className, ...props }) {
@@ -3850,7 +3853,7 @@ function PopoverDescription({ className, ...props }) {
3850
3853
  _popover.Popover.Description,
3851
3854
  {
3852
3855
  "data-slot": "popover-description",
3853
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-muted-foreground", className),
3856
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "text-muted-foreground", className),
3854
3857
  ...props
3855
3858
  }
3856
3859
  );
@@ -3866,7 +3869,7 @@ function Progress({ className, children, value, ...props }) {
3866
3869
  {
3867
3870
  value,
3868
3871
  "data-slot": "progress",
3869
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "flex flex-wrap gap-3", className),
3872
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "flex flex-wrap gap-3", className),
3870
3873
  ...props,
3871
3874
  children: [
3872
3875
  children,
@@ -3880,7 +3883,7 @@ function ProgressTrack({ className, ...props }) {
3880
3883
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3881
3884
  _progress.Progress.Track,
3882
3885
  {
3883
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "bg-muted h-1 rounded-md relative flex w-full items-center overflow-x-hidden", className),
3886
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "bg-muted h-1 rounded-md relative flex w-full items-center overflow-x-hidden", className),
3884
3887
  "data-slot": "progress-track",
3885
3888
  ...props
3886
3889
  }
@@ -3892,7 +3895,7 @@ function ProgressIndicator({ className, ...props }) {
3892
3895
  _progress.Progress.Indicator,
3893
3896
  {
3894
3897
  "data-slot": "progress-indicator",
3895
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "bg-primary h-full transition-all", className),
3898
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "bg-primary h-full transition-all", className),
3896
3899
  ...props
3897
3900
  }
3898
3901
  );
@@ -3902,7 +3905,7 @@ function ProgressLabel({ className, ...props }) {
3902
3905
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3903
3906
  _progress.Progress.Label,
3904
3907
  {
3905
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-xs/relaxed font-medium", className),
3908
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "text-xs/relaxed font-medium", className),
3906
3909
  "data-slot": "progress-label",
3907
3910
  ...props
3908
3911
  }
@@ -3913,7 +3916,7 @@ function ProgressValue({ className, ...props }) {
3913
3916
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3914
3917
  _progress.Progress.Value,
3915
3918
  {
3916
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-muted-foreground ml-auto text-xs/relaxed tabular-nums", className),
3919
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "text-muted-foreground ml-auto text-xs/relaxed tabular-nums", className),
3917
3920
  "data-slot": "progress-value",
3918
3921
  ...props
3919
3922
  }
@@ -3927,7 +3930,7 @@ var _radiogroup = require('@base-ui/react/radio-group');
3927
3930
 
3928
3931
 
3929
3932
  function RadioGroup({ className, ...props }) {
3930
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _radiogroup.RadioGroup, { "data-slot": "radio-group", className: _chunkL5F5ZN5Fjs.cn.call(void 0, "grid gap-3 w-full", className), ...props });
3933
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _radiogroup.RadioGroup, { "data-slot": "radio-group", className: _chunkAHXRHXZ2js.cn.call(void 0, "grid gap-3 w-full", className), ...props });
3931
3934
  }
3932
3935
  _chunk7QVYU63Ejs.__name.call(void 0, RadioGroup, "RadioGroup");
3933
3936
  function RadioGroupItem({ className, ...props }) {
@@ -3935,7 +3938,7 @@ function RadioGroupItem({ className, ...props }) {
3935
3938
  _radio.Radio.Root,
3936
3939
  {
3937
3940
  "data-slot": "radio-group-item",
3938
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3941
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3939
3942
  "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",
3940
3943
  className
3941
3944
  ),
@@ -3962,7 +3965,7 @@ function ResizablePanelGroup({ className, ...props }) {
3962
3965
  ResizablePrimitive.Group,
3963
3966
  {
3964
3967
  "data-slot": "resizable-panel-group",
3965
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3968
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3966
3969
  "flex h-full w-full",
3967
3970
  // v4 uses aria-orientation instead of data-panel-group-direction
3968
3971
  "aria-[orientation=vertical]:flex-col",
@@ -3986,7 +3989,7 @@ function ResizableHandle({
3986
3989
  ResizablePrimitive.Separator,
3987
3990
  {
3988
3991
  "data-slot": "resizable-handle",
3989
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
3992
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
3990
3993
  "bg-border relative flex items-center justify-center",
3991
3994
  "focus-visible:ring-ring focus-visible:ring-1 focus-visible:ring-offset-1",
3992
3995
  // v4: Separator aria-orientation is OPPOSITE of Group orientation
@@ -4013,7 +4016,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ResizableHandle, "ResizableHandle");
4013
4016
  var _scrollarea = require('@base-ui/react/scroll-area');
4014
4017
 
4015
4018
  function ScrollArea({ className, children, ...props }) {
4016
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _scrollarea.ScrollArea.Root, { "data-slot": "scroll-area", className: _chunkL5F5ZN5Fjs.cn.call(void 0, "relative", className), ...props, children: [
4019
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _scrollarea.ScrollArea.Root, { "data-slot": "scroll-area", className: _chunkAHXRHXZ2js.cn.call(void 0, "relative", className), ...props, children: [
4017
4020
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4018
4021
  _scrollarea.ScrollArea.Viewport,
4019
4022
  {
@@ -4034,7 +4037,7 @@ function ScrollBar({ className, orientation = "vertical", ...props }) {
4034
4037
  "data-slot": "scroll-area-scrollbar",
4035
4038
  "data-orientation": orientation,
4036
4039
  orientation,
4037
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
4040
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
4038
4041
  "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",
4039
4042
  className
4040
4043
  ),
@@ -4051,11 +4054,11 @@ var _select = require('@base-ui/react/select');
4051
4054
 
4052
4055
  var Select = _select.Select.Root;
4053
4056
  function SelectGroup({ className, ...props }) {
4054
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _select.Select.Group, { "data-slot": "select-group", className: _chunkL5F5ZN5Fjs.cn.call(void 0, "scroll-my-1 p-1", className), ...props });
4057
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _select.Select.Group, { "data-slot": "select-group", className: _chunkAHXRHXZ2js.cn.call(void 0, "scroll-my-1 p-1", className), ...props });
4055
4058
  }
4056
4059
  _chunk7QVYU63Ejs.__name.call(void 0, SelectGroup, "SelectGroup");
4057
4060
  function SelectValue({ className, ...props }) {
4058
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _select.Select.Value, { "data-slot": "select-value", className: _chunkL5F5ZN5Fjs.cn.call(void 0, "flex flex-1 text-left", className), ...props });
4061
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _select.Select.Value, { "data-slot": "select-value", className: _chunkAHXRHXZ2js.cn.call(void 0, "flex flex-1 text-left", className), ...props });
4059
4062
  }
4060
4063
  _chunk7QVYU63Ejs.__name.call(void 0, SelectValue, "SelectValue");
4061
4064
  function SelectTrigger({
@@ -4069,7 +4072,7 @@ function SelectTrigger({
4069
4072
  {
4070
4073
  "data-slot": "select-trigger",
4071
4074
  "data-size": size,
4072
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
4075
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
4073
4076
  "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",
4074
4077
  className
4075
4078
  ),
@@ -4110,7 +4113,7 @@ function SelectContent({
4110
4113
  _select.Select.Popup,
4111
4114
  {
4112
4115
  "data-slot": "select-content",
4113
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
4116
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
4114
4117
  "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",
4115
4118
  className
4116
4119
  ),
@@ -4131,7 +4134,7 @@ function SelectLabel({ className, ...props }) {
4131
4134
  _select.Select.GroupLabel,
4132
4135
  {
4133
4136
  "data-slot": "select-label",
4134
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs", className),
4137
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "text-muted-foreground px-2 py-1.5 text-xs", className),
4135
4138
  ...props
4136
4139
  }
4137
4140
  );
@@ -4142,7 +4145,7 @@ function SelectItem({ className, children, ...props }) {
4142
4145
  _select.Select.Item,
4143
4146
  {
4144
4147
  "data-slot": "select-item",
4145
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
4148
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
4146
4149
  "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",
4147
4150
  className
4148
4151
  ),
@@ -4166,7 +4169,7 @@ function SelectSeparator({ className, ...props }) {
4166
4169
  _select.Select.Separator,
4167
4170
  {
4168
4171
  "data-slot": "select-separator",
4169
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px pointer-events-none", className),
4172
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "bg-border/50 -mx-1 my-1 h-px pointer-events-none", className),
4170
4173
  ...props
4171
4174
  }
4172
4175
  );
@@ -4177,7 +4180,7 @@ function SelectScrollUpButton({ className, ...props }) {
4177
4180
  _select.Select.ScrollUpArrow,
4178
4181
  {
4179
4182
  "data-slot": "select-scroll-up-button",
4180
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
4183
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
4181
4184
  "bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5 top-0 w-full",
4182
4185
  className
4183
4186
  ),
@@ -4192,7 +4195,7 @@ function SelectScrollDownButton({ className, ...props }) {
4192
4195
  _select.Select.ScrollDownArrow,
4193
4196
  {
4194
4197
  "data-slot": "select-scroll-down-button",
4195
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
4198
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
4196
4199
  "bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5 bottom-0 w-full",
4197
4200
  className
4198
4201
  ),
@@ -4228,7 +4231,7 @@ function SheetOverlay({ className, ...props }) {
4228
4231
  _dialog.Dialog.Backdrop,
4229
4232
  {
4230
4233
  "data-slot": "sheet-overlay",
4231
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
4234
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
4232
4235
  "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",
4233
4236
  className
4234
4237
  ),
@@ -4251,7 +4254,7 @@ function SheetContent({
4251
4254
  {
4252
4255
  "data-slot": "sheet-content",
4253
4256
  "data-side": side,
4254
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
4257
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
4255
4258
  "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",
4256
4259
  className
4257
4260
  ),
@@ -4276,11 +4279,11 @@ function SheetContent({
4276
4279
  }
4277
4280
  _chunk7QVYU63Ejs.__name.call(void 0, SheetContent, "SheetContent");
4278
4281
  function SheetHeader({ className, ...props }) {
4279
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "sheet-header", className: _chunkL5F5ZN5Fjs.cn.call(void 0, "gap-1.5 p-6 flex flex-col", className), ...props });
4282
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "sheet-header", className: _chunkAHXRHXZ2js.cn.call(void 0, "gap-1.5 p-6 flex flex-col", className), ...props });
4280
4283
  }
4281
4284
  _chunk7QVYU63Ejs.__name.call(void 0, SheetHeader, "SheetHeader");
4282
4285
  function SheetFooter({ className, ...props }) {
4283
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "sheet-footer", className: _chunkL5F5ZN5Fjs.cn.call(void 0, "gap-2 p-6 mt-auto flex flex-col", className), ...props });
4286
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "sheet-footer", className: _chunkAHXRHXZ2js.cn.call(void 0, "gap-2 p-6 mt-auto flex flex-col", className), ...props });
4284
4287
  }
4285
4288
  _chunk7QVYU63Ejs.__name.call(void 0, SheetFooter, "SheetFooter");
4286
4289
  function SheetTitle({ className, ...props }) {
@@ -4288,7 +4291,7 @@ function SheetTitle({ className, ...props }) {
4288
4291
  _dialog.Dialog.Title,
4289
4292
  {
4290
4293
  "data-slot": "sheet-title",
4291
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-foreground text-sm font-medium", className),
4294
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "text-foreground text-sm font-medium", className),
4292
4295
  ...props
4293
4296
  }
4294
4297
  );
@@ -4299,7 +4302,7 @@ function SheetDescription({ className, ...props }) {
4299
4302
  _dialog.Dialog.Description,
4300
4303
  {
4301
4304
  "data-slot": "sheet-description",
4302
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
4305
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "text-muted-foreground text-xs/relaxed", className),
4303
4306
  ...props
4304
4307
  }
4305
4308
  );
@@ -4315,7 +4318,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, SheetDescription, "SheetDescription");
4315
4318
  // src/shadcnui/ui/skeleton.tsx
4316
4319
 
4317
4320
  function Skeleton({ className, ...props }) {
4318
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "skeleton", className: _chunkL5F5ZN5Fjs.cn.call(void 0, "bg-muted rounded-md animate-pulse", className), ...props });
4321
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "skeleton", className: _chunkAHXRHXZ2js.cn.call(void 0, "bg-muted rounded-md animate-pulse", className), ...props });
4319
4322
  }
4320
4323
  _chunk7QVYU63Ejs.__name.call(void 0, Skeleton, "Skeleton");
4321
4324
 
@@ -4355,7 +4358,7 @@ function TooltipContent({
4355
4358
  _tooltip.Tooltip.Popup,
4356
4359
  {
4357
4360
  "data-slot": "tooltip-content",
4358
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
4361
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
4359
4362
  "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)",
4360
4363
  className
4361
4364
  ),
@@ -4398,7 +4401,7 @@ function SidebarProvider({
4398
4401
  children,
4399
4402
  ...props
4400
4403
  }) {
4401
- const isMobile = _chunkL5F5ZN5Fjs.useIsMobile.call(void 0, );
4404
+ const isMobile = _chunkAHXRHXZ2js.useIsMobile.call(void 0, );
4402
4405
  const [openMobile, setOpenMobile] = React7.useState(false);
4403
4406
  const [_open, _setOpen] = React7.useState(defaultOpen);
4404
4407
  const open = _nullishCoalesce(openProp, () => ( _open));
@@ -4449,7 +4452,7 @@ function SidebarProvider({
4449
4452
  "--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
4450
4453
  ...style
4451
4454
  },
4452
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", className),
4455
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", className),
4453
4456
  ...props,
4454
4457
  children
4455
4458
  }
@@ -4470,7 +4473,7 @@ function Sidebar({
4470
4473
  "div",
4471
4474
  {
4472
4475
  "data-slot": "sidebar",
4473
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", className),
4476
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", className),
4474
4477
  ...props,
4475
4478
  children
4476
4479
  }
@@ -4512,7 +4515,7 @@ function Sidebar({
4512
4515
  "div",
4513
4516
  {
4514
4517
  "data-slot": "sidebar-gap",
4515
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
4518
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
4516
4519
  "transition-[width] duration-200 ease-linear relative w-(--sidebar-width) bg-transparent",
4517
4520
  "group-data-[collapsible=offExamples]:w-0",
4518
4521
  "group-data-[side=right]:rotate-180",
@@ -4524,7 +4527,7 @@ function Sidebar({
4524
4527
  "div",
4525
4528
  {
4526
4529
  "data-slot": "sidebar-container",
4527
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
4530
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
4528
4531
  "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
4529
4532
  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)]",
4530
4533
  // Adjust the padding for floating and inset variants.
@@ -4557,7 +4560,7 @@ function SidebarTrigger({ className, onClick, ...props }) {
4557
4560
  "data-slot": "sidebar-trigger",
4558
4561
  variant: "ghost",
4559
4562
  size: "icon-sm",
4560
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, className),
4563
+ className: _chunkAHXRHXZ2js.cn.call(void 0, className),
4561
4564
  onClick: (event) => {
4562
4565
  _optionalChain([onClick, 'optionalCall', _97 => _97(event)]);
4563
4566
  toggleSidebar();
@@ -4582,7 +4585,7 @@ function SidebarRail({ className, ...props }) {
4582
4585
  tabIndex: -1,
4583
4586
  onClick: toggleSidebar,
4584
4587
  title: "Toggle Sidebar",
4585
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
4588
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
4586
4589
  "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",
4587
4590
  "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
4588
4591
  "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
@@ -4601,7 +4604,7 @@ function SidebarInset({ className, ...props }) {
4601
4604
  "main",
4602
4605
  {
4603
4606
  "data-slot": "sidebar-inset",
4604
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
4607
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
4605
4608
  "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",
4606
4609
  className
4607
4610
  ),
@@ -4616,7 +4619,7 @@ function SidebarInput({ className, ...props }) {
4616
4619
  {
4617
4620
  "data-slot": "sidebar-input",
4618
4621
  "data-sidebar": "input",
4619
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "bg-muted/20 dark:bg-muted/30 border-input h-8 w-full", className),
4622
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "bg-muted/20 dark:bg-muted/30 border-input h-8 w-full", className),
4620
4623
  ...props
4621
4624
  }
4622
4625
  );
@@ -4628,7 +4631,7 @@ function SidebarHeader({ className, ...props }) {
4628
4631
  {
4629
4632
  "data-slot": "sidebar-header",
4630
4633
  "data-sidebar": "header",
4631
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
4634
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
4632
4635
  ...props
4633
4636
  }
4634
4637
  );
@@ -4640,7 +4643,7 @@ function SidebarFooter({ className, ...props }) {
4640
4643
  {
4641
4644
  "data-slot": "sidebar-footer",
4642
4645
  "data-sidebar": "footer",
4643
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
4646
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "gap-2 p-2 flex flex-col", className),
4644
4647
  ...props
4645
4648
  }
4646
4649
  );
@@ -4652,7 +4655,7 @@ function SidebarSeparator({ className, ...props }) {
4652
4655
  {
4653
4656
  "data-slot": "sidebar-separator",
4654
4657
  "data-sidebar": "separator",
4655
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "bg-sidebar-border mx-2 w-auto", className),
4658
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "bg-sidebar-border mx-2 w-auto", className),
4656
4659
  ...props
4657
4660
  }
4658
4661
  );
@@ -4664,7 +4667,7 @@ function SidebarContent({ className, ...props }) {
4664
4667
  {
4665
4668
  "data-slot": "sidebar-content",
4666
4669
  "data-sidebar": "content",
4667
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
4670
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
4668
4671
  "no-scrollbar gap-0 flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",
4669
4672
  className
4670
4673
  ),
@@ -4679,7 +4682,7 @@ function SidebarGroup({ className, ...props }) {
4679
4682
  {
4680
4683
  "data-slot": "sidebar-group",
4681
4684
  "data-sidebar": "group",
4682
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "px-2 py-1 relative flex w-full min-w-0 flex-col", className),
4685
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "px-2 py-1 relative flex w-full min-w-0 flex-col", className),
4683
4686
  ...props
4684
4687
  }
4685
4688
  );
@@ -4694,7 +4697,7 @@ function SidebarGroupLabel({
4694
4697
  defaultTagName: "div",
4695
4698
  props: _mergeprops.mergeProps.call(void 0,
4696
4699
  {
4697
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
4700
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
4698
4701
  "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",
4699
4702
  className
4700
4703
  )
@@ -4718,7 +4721,7 @@ function SidebarGroupAction({
4718
4721
  defaultTagName: "button",
4719
4722
  props: _mergeprops.mergeProps.call(void 0,
4720
4723
  {
4721
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
4724
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
4722
4725
  "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",
4723
4726
  className
4724
4727
  )
@@ -4739,7 +4742,7 @@ function SidebarGroupContent({ className, ...props }) {
4739
4742
  {
4740
4743
  "data-slot": "sidebar-group-content",
4741
4744
  "data-sidebar": "group-content",
4742
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-xs w-full", className),
4745
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "text-xs w-full", className),
4743
4746
  ...props
4744
4747
  }
4745
4748
  );
@@ -4751,7 +4754,7 @@ function SidebarMenu({ className, ...props }) {
4751
4754
  {
4752
4755
  "data-slot": "sidebar-menu",
4753
4756
  "data-sidebar": "menu",
4754
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "gap-px flex w-full min-w-0 flex-col", className),
4757
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "gap-px flex w-full min-w-0 flex-col", className),
4755
4758
  ...props
4756
4759
  }
4757
4760
  );
@@ -4763,7 +4766,7 @@ function SidebarMenuItem({ className, ...props }) {
4763
4766
  {
4764
4767
  "data-slot": "sidebar-menu-item",
4765
4768
  "data-sidebar": "menu-item",
4766
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "group/menu-item relative", className),
4769
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "group/menu-item relative", className),
4767
4770
  ...props
4768
4771
  }
4769
4772
  );
@@ -4803,7 +4806,7 @@ function SidebarMenuButton({
4803
4806
  defaultTagName: "button",
4804
4807
  props: _mergeprops.mergeProps.call(void 0,
4805
4808
  {
4806
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, sidebarMenuButtonVariants({ variant, size }), className)
4809
+ className: _chunkAHXRHXZ2js.cn.call(void 0, sidebarMenuButtonVariants({ variant, size }), className)
4807
4810
  },
4808
4811
  props
4809
4812
  ),
@@ -4839,7 +4842,7 @@ function SidebarMenuAction({
4839
4842
  defaultTagName: "button",
4840
4843
  props: _mergeprops.mergeProps.call(void 0,
4841
4844
  {
4842
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
4845
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
4843
4846
  "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",
4844
4847
  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",
4845
4848
  className
@@ -4861,7 +4864,7 @@ function SidebarMenuBadge({ className, ...props }) {
4861
4864
  {
4862
4865
  "data-slot": "sidebar-menu-badge",
4863
4866
  "data-sidebar": "menu-badge",
4864
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
4867
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
4865
4868
  "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",
4866
4869
  className
4867
4870
  ),
@@ -4883,7 +4886,7 @@ function SidebarMenuSkeleton({
4883
4886
  {
4884
4887
  "data-slot": "sidebar-menu-skeleton",
4885
4888
  "data-sidebar": "menu-skeleton",
4886
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "h-8 gap-2 rounded-md px-2 flex items-center", className),
4889
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "h-8 gap-2 rounded-md px-2 flex items-center", className),
4887
4890
  ...props,
4888
4891
  children: [
4889
4892
  showIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" }),
@@ -4908,7 +4911,7 @@ function SidebarMenuSub({ className, ...props }) {
4908
4911
  {
4909
4912
  "data-slot": "sidebar-menu-sub",
4910
4913
  "data-sidebar": "menu-sub",
4911
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
4914
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
4912
4915
  "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",
4913
4916
  className
4914
4917
  ),
@@ -4923,7 +4926,7 @@ function SidebarMenuSubItem({ className, ...props }) {
4923
4926
  {
4924
4927
  "data-slot": "sidebar-menu-sub-item",
4925
4928
  "data-sidebar": "menu-sub-item",
4926
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "group/menu-sub-item relative", className),
4929
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "group/menu-sub-item relative", className),
4927
4930
  ...props
4928
4931
  }
4929
4932
  );
@@ -4940,7 +4943,7 @@ function SidebarMenuSubButton({
4940
4943
  defaultTagName: "a",
4941
4944
  props: _mergeprops.mergeProps.call(void 0,
4942
4945
  {
4943
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
4946
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
4944
4947
  "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",
4945
4948
  className
4946
4949
  )
@@ -4981,7 +4984,7 @@ function Slider({ className, defaultValue, value, min = 0, max = 100, ...props }
4981
4984
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4982
4985
  _slider.Slider.Control,
4983
4986
  {
4984
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
4987
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
4985
4988
  "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",
4986
4989
  className
4987
4990
  ),
@@ -5065,7 +5068,7 @@ function Switch({
5065
5068
  {
5066
5069
  "data-slot": "switch",
5067
5070
  "data-size": size,
5068
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
5071
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
5069
5072
  "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",
5070
5073
  className
5071
5074
  ),
@@ -5074,7 +5077,7 @@ function Switch({
5074
5077
  _switch.Switch.Thumb,
5075
5078
  {
5076
5079
  "data-slot": "switch-thumb",
5077
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
5080
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
5078
5081
  "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",
5079
5082
  children && "flex items-center justify-center"
5080
5083
  ),
@@ -5089,15 +5092,15 @@ _chunk7QVYU63Ejs.__name.call(void 0, Switch, "Switch");
5089
5092
  // src/shadcnui/ui/table.tsx
5090
5093
 
5091
5094
  function Table({ className, ...props }) {
5092
- 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: _chunkL5F5ZN5Fjs.cn.call(void 0, "w-full caption-bottom text-xs", className), ...props }) });
5095
+ 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: _chunkAHXRHXZ2js.cn.call(void 0, "w-full caption-bottom text-xs", className), ...props }) });
5093
5096
  }
5094
5097
  _chunk7QVYU63Ejs.__name.call(void 0, Table, "Table");
5095
5098
  function TableHeader({ className, ...props }) {
5096
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { "data-slot": "table-header", className: _chunkL5F5ZN5Fjs.cn.call(void 0, "[&_tr]:border-b", className), ...props });
5099
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { "data-slot": "table-header", className: _chunkAHXRHXZ2js.cn.call(void 0, "[&_tr]:border-b", className), ...props });
5097
5100
  }
5098
5101
  _chunk7QVYU63Ejs.__name.call(void 0, TableHeader, "TableHeader");
5099
5102
  function TableBody({ className, ...props }) {
5100
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { "data-slot": "table-body", className: _chunkL5F5ZN5Fjs.cn.call(void 0, "[&_tr:last-child]:border-0", className), ...props });
5103
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { "data-slot": "table-body", className: _chunkAHXRHXZ2js.cn.call(void 0, "[&_tr:last-child]:border-0", className), ...props });
5101
5104
  }
5102
5105
  _chunk7QVYU63Ejs.__name.call(void 0, TableBody, "TableBody");
5103
5106
  function TableFooter({ className, ...props }) {
@@ -5105,7 +5108,7 @@ function TableFooter({ className, ...props }) {
5105
5108
  "tfoot",
5106
5109
  {
5107
5110
  "data-slot": "table-footer",
5108
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", className),
5111
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", className),
5109
5112
  ...props
5110
5113
  }
5111
5114
  );
@@ -5116,7 +5119,7 @@ function TableRow({ className, ...props }) {
5116
5119
  "tr",
5117
5120
  {
5118
5121
  "data-slot": "table-row",
5119
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", className),
5122
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", className),
5120
5123
  ...props
5121
5124
  }
5122
5125
  );
@@ -5127,7 +5130,7 @@ function TableHead({ className, ...props }) {
5127
5130
  "th",
5128
5131
  {
5129
5132
  "data-slot": "table-head",
5130
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
5133
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
5131
5134
  "text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0",
5132
5135
  className
5133
5136
  ),
@@ -5141,14 +5144,14 @@ function TableCell({ className, ...props }) {
5141
5144
  "td",
5142
5145
  {
5143
5146
  "data-slot": "table-cell",
5144
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0", className),
5147
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0", className),
5145
5148
  ...props
5146
5149
  }
5147
5150
  );
5148
5151
  }
5149
5152
  _chunk7QVYU63Ejs.__name.call(void 0, TableCell, "TableCell");
5150
5153
  function TableCaption({ className, ...props }) {
5151
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "caption", { "data-slot": "table-caption", className: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-muted-foreground mt-4 text-xs", className), ...props });
5154
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "caption", { "data-slot": "table-caption", className: _chunkAHXRHXZ2js.cn.call(void 0, "text-muted-foreground mt-4 text-xs", className), ...props });
5152
5155
  }
5153
5156
  _chunk7QVYU63Ejs.__name.call(void 0, TableCaption, "TableCaption");
5154
5157
 
@@ -5162,7 +5165,7 @@ function Tabs({ className, orientation = "horizontal", ...props }) {
5162
5165
  {
5163
5166
  "data-slot": "tabs",
5164
5167
  "data-orientation": orientation,
5165
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "gap-2 group/tabs flex data-[orientation=horizontal]:flex-col", className),
5168
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "gap-2 group/tabs flex data-[orientation=horizontal]:flex-col", className),
5166
5169
  ...props
5167
5170
  }
5168
5171
  );
@@ -5192,7 +5195,7 @@ function TabsList({
5192
5195
  {
5193
5196
  "data-slot": "tabs-list",
5194
5197
  "data-variant": variant,
5195
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, tabsListVariants({ variant }), className),
5198
+ className: _chunkAHXRHXZ2js.cn.call(void 0, tabsListVariants({ variant }), className),
5196
5199
  ...props
5197
5200
  }
5198
5201
  );
@@ -5203,7 +5206,7 @@ function TabsTrigger({ className, ...props }) {
5203
5206
  _tabs.Tabs.Tab,
5204
5207
  {
5205
5208
  "data-slot": "tabs-trigger",
5206
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
5209
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
5207
5210
  "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",
5208
5211
  "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",
5209
5212
  "data-active:bg-background dark:data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 data-active:text-foreground",
@@ -5220,7 +5223,7 @@ function TabsContent({ className, ...props }) {
5220
5223
  _tabs.Tabs.Panel,
5221
5224
  {
5222
5225
  "data-slot": "tabs-content",
5223
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-xs/relaxed flex-1 outline-none", className),
5226
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "text-xs/relaxed flex-1 outline-none", className),
5224
5227
  ...props
5225
5228
  }
5226
5229
  );
@@ -5257,7 +5260,7 @@ function Toggle({
5257
5260
  size = "default",
5258
5261
  ...props
5259
5262
  }) {
5260
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _toggle.Toggle, { "data-slot": "toggle", className: _chunkL5F5ZN5Fjs.cn.call(void 0, toggleVariants({ variant, size, className })), ...props });
5263
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _toggle.Toggle, { "data-slot": "toggle", className: _chunkAHXRHXZ2js.cn.call(void 0, toggleVariants({ variant, size, className })), ...props });
5261
5264
  }
5262
5265
  _chunk7QVYU63Ejs.__name.call(void 0, Toggle, "Toggle");
5263
5266
 
@@ -5723,7 +5726,7 @@ var KanbanBoard = React9.forwardRef((props, forwardedRef) => {
5723
5726
  "data-slot": "kanban-board",
5724
5727
  ...boardProps,
5725
5728
  ref: forwardedRef,
5726
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
5729
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
5727
5730
  "flex size-full gap-4",
5728
5731
  context.orientation === "horizontal" ? "flex-row" : "flex-col",
5729
5732
  className
@@ -5762,7 +5765,7 @@ var KanbanColumn = React9.forwardRef((props, forwardedRef) => {
5762
5765
  disabled,
5763
5766
  animateLayoutChanges
5764
5767
  });
5765
- const composedRef = _chunkL5F5ZN5Fjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
5768
+ const composedRef = _chunkAHXRHXZ2js.useComposedRefs.call(void 0, forwardedRef, (node) => {
5766
5769
  if (disabled) return;
5767
5770
  setNodeRef(node);
5768
5771
  });
@@ -5806,7 +5809,7 @@ var KanbanColumn = React9.forwardRef((props, forwardedRef) => {
5806
5809
  ...asHandle && !disabled ? listeners : {},
5807
5810
  ref: composedRef,
5808
5811
  style: composedStyle,
5809
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
5812
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
5810
5813
  "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",
5811
5814
  {
5812
5815
  "touch-none select-none": asHandle,
@@ -5829,7 +5832,7 @@ var KanbanColumnHandle = React9.forwardRef((props, forwardedRef) => {
5829
5832
  const context = useKanbanContext(COLUMN_NAME);
5830
5833
  const columnContext = useKanbanColumnContext(COLUMN_HANDLE_NAME);
5831
5834
  const isDisabled = _nullishCoalesce(disabled, () => ( columnContext.disabled));
5832
- const composedRef = _chunkL5F5ZN5Fjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
5835
+ const composedRef = _chunkAHXRHXZ2js.useComposedRefs.call(void 0, forwardedRef, (node) => {
5833
5836
  if (isDisabled) return;
5834
5837
  columnContext.setActivatorNodeRef(node);
5835
5838
  });
@@ -5846,7 +5849,7 @@ var KanbanColumnHandle = React9.forwardRef((props, forwardedRef) => {
5846
5849
  ...isDisabled ? {} : columnContext.attributes,
5847
5850
  ...isDisabled ? {} : columnContext.listeners,
5848
5851
  ref: composedRef,
5849
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
5852
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
5850
5853
  "select-none disabled:pointer-events-none disabled:opacity-50",
5851
5854
  context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
5852
5855
  className
@@ -5882,7 +5885,7 @@ var KanbanItem = React9.forwardRef((props, forwardedRef) => {
5882
5885
  if (value === "") {
5883
5886
  throw new Error(`\`${ITEM_NAME}\` value cannot be an empty string`);
5884
5887
  }
5885
- const composedRef = _chunkL5F5ZN5Fjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
5888
+ const composedRef = _chunkAHXRHXZ2js.useComposedRefs.call(void 0, forwardedRef, (node) => {
5886
5889
  if (disabled) return;
5887
5890
  setNodeRef(node);
5888
5891
  });
@@ -5917,7 +5920,7 @@ var KanbanItem = React9.forwardRef((props, forwardedRef) => {
5917
5920
  ...asHandle && !disabled ? listeners : {},
5918
5921
  ref: composedRef,
5919
5922
  style: composedStyle,
5920
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
5923
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
5921
5924
  "focus-visible:ring-ring focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden",
5922
5925
  {
5923
5926
  "touch-none select-none": asHandle,
@@ -5938,7 +5941,7 @@ var KanbanItemHandle = React9.forwardRef((props, forwardedRef) => {
5938
5941
  const context = useKanbanContext(ITEM_HANDLE_NAME);
5939
5942
  const itemContext = useKanbanItemContext(ITEM_HANDLE_NAME);
5940
5943
  const isDisabled = _nullishCoalesce(disabled, () => ( itemContext.disabled));
5941
- const composedRef = _chunkL5F5ZN5Fjs.useComposedRefs.call(void 0, forwardedRef, (node) => {
5944
+ const composedRef = _chunkAHXRHXZ2js.useComposedRefs.call(void 0, forwardedRef, (node) => {
5942
5945
  if (isDisabled) return;
5943
5946
  itemContext.setActivatorNodeRef(node);
5944
5947
  });
@@ -5955,7 +5958,7 @@ var KanbanItemHandle = React9.forwardRef((props, forwardedRef) => {
5955
5958
  ...isDisabled ? {} : itemContext.attributes,
5956
5959
  ...isDisabled ? {} : itemContext.listeners,
5957
5960
  ref: composedRef,
5958
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
5961
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
5959
5962
  "select-none disabled:pointer-events-none disabled:opacity-50",
5960
5963
  context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
5961
5964
  className
@@ -5990,7 +5993,7 @@ function KanbanOverlay(props) {
5990
5993
  {
5991
5994
  dropAnimation,
5992
5995
  modifiers: context.modifiers,
5993
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, !context.flatCursor && "cursor-grabbing"),
5996
+ className: _chunkAHXRHXZ2js.cn.call(void 0, !context.flatCursor && "cursor-grabbing"),
5994
5997
  ...overlayProps,
5995
5998
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, KanbanOverlayContext.Provider, { value: true, children: context.activeId && children ? typeof children === "function" ? children({
5996
5999
  value: context.activeId,
@@ -6007,8 +6010,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, KanbanOverlay, "KanbanOverlay");
6007
6010
 
6008
6011
 
6009
6012
  var Link = React10.forwardRef(({ className, href, children, ...props }, ref) => {
6010
- const NextIntlLink = _chunkOODZEX6Pjs.getI18nLink.call(void 0, );
6011
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NextIntlLink, { prefetch: false, ref, href, className: _chunkL5F5ZN5Fjs.cn.call(void 0, `font-medium`, className), ...props, children });
6013
+ const NextIntlLink = _chunkGP3MDKGEjs.getI18nLink.call(void 0, );
6014
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NextIntlLink, { prefetch: false, ref, href, className: _chunkAHXRHXZ2js.cn.call(void 0, `font-medium`, className), ...props, children });
6012
6015
  });
6013
6016
  Link.displayName = "Link";
6014
6017
 
@@ -6108,7 +6111,7 @@ var MultiSelect = React11.forwardRef(
6108
6111
  {
6109
6112
  ...props,
6110
6113
  onClick: handleTogglePopover,
6111
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
6114
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
6112
6115
  "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",
6113
6116
  className
6114
6117
  ),
@@ -6120,7 +6123,7 @@ var MultiSelect = React11.forwardRef(
6120
6123
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
6121
6124
  Badge,
6122
6125
  {
6123
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, isAnimating ? "animate-bounce" : "", multiSelectVariants({ variant })),
6126
+ className: _chunkAHXRHXZ2js.cn.call(void 0, isAnimating ? "animate-bounce" : "", multiSelectVariants({ variant })),
6124
6127
  style: { animationDuration: `${animation}s` },
6125
6128
  children: [
6126
6129
  IconComponent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: "mr-2 h-4 w-4" }),
@@ -6143,7 +6146,7 @@ var MultiSelect = React11.forwardRef(
6143
6146
  selectedValues.length > maxCount && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
6144
6147
  Badge,
6145
6148
  {
6146
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
6149
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
6147
6150
  "text-foreground border-foreground/1 bg-transparent hover:bg-transparent",
6148
6151
  isAnimating ? "animate-bounce" : "",
6149
6152
  multiSelectVariants({ variant })
@@ -6208,7 +6211,7 @@ var MultiSelect = React11.forwardRef(
6208
6211
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6209
6212
  "div",
6210
6213
  {
6211
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
6214
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
6212
6215
  "border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
6213
6216
  selectedValues.length === options.length ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
6214
6217
  ),
@@ -6231,7 +6234,7 @@ var MultiSelect = React11.forwardRef(
6231
6234
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6232
6235
  "div",
6233
6236
  {
6234
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
6237
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
6235
6238
  "border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
6236
6239
  isSelected ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
6237
6240
  ),
@@ -6266,7 +6269,7 @@ var MultiSelect = React11.forwardRef(
6266
6269
  animation > 0 && selectedValues.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6267
6270
  _lucidereact.WandSparkles,
6268
6271
  {
6269
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
6272
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
6270
6273
  "text-foreground bg-background my-2 h-3 w-3 cursor-pointer",
6271
6274
  isAnimating ? "" : "text-muted-foreground"
6272
6275
  ),
@@ -6341,10 +6344,10 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserAvatarEditor, "UserAvatarEditor");
6341
6344
  function UserDeleterInternal({ user, onDeleted, companyId }) {
6342
6345
  const { currentUser, company } = useCurrentUserContext();
6343
6346
  const generateUrl = usePageUrlGenerator();
6344
- const router = _chunkOODZEX6Pjs.useI18nRouter.call(void 0, );
6347
+ const router = _chunkGP3MDKGEjs.useI18nRouter.call(void 0, );
6345
6348
  const _t = _nextintl.useTranslations.call(void 0, );
6346
6349
  let cId;
6347
- if (_optionalChain([currentUser, 'optionalAccess', _137 => _137.roles, 'access', _138 => _138.find, 'call', _139 => _139((role) => role.id === _chunkOODZEX6Pjs.getRoleId.call(void 0, ).Administrator)]) && companyId) {
6350
+ if (_optionalChain([currentUser, 'optionalAccess', _137 => _137.roles, 'access', _138 => _138.find, 'call', _139 => _139((role) => role.id === _chunkGP3MDKGEjs.getRoleId.call(void 0, ).Administrator)]) && companyId) {
6348
6351
  cId = companyId;
6349
6352
  } else {
6350
6353
  if (!company) return;
@@ -6354,8 +6357,8 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
6354
6357
  CommonDeleter,
6355
6358
  {
6356
6359
  type: `users`,
6357
- deleteFunction: () => _chunkL5F5ZN5Fjs.UserService.delete({ userId: user.id, companyId: cId }).then(
6358
- () => onDeleted ? onDeleted() : router.push(generateUrl({ page: _chunkL5F5ZN5Fjs.Modules.User }))
6360
+ deleteFunction: () => _chunkAHXRHXZ2js.UserService.delete({ userId: user.id, companyId: cId }).then(
6361
+ () => onDeleted ? onDeleted() : router.push(generateUrl({ page: _chunkAHXRHXZ2js.Modules.User }))
6359
6362
  )
6360
6363
  }
6361
6364
  );
@@ -6363,7 +6366,7 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
6363
6366
  _chunk7QVYU63Ejs.__name.call(void 0, UserDeleterInternal, "UserDeleterInternal");
6364
6367
  function UserDeleter(props) {
6365
6368
  const { hasPermissionToModule } = useCurrentUserContext();
6366
- if (!hasPermissionToModule({ module: _chunkL5F5ZN5Fjs.Modules.User, action: "delete" /* Delete */, data: props.user })) return null;
6369
+ if (!hasPermissionToModule({ module: _chunkAHXRHXZ2js.Modules.User, action: "delete" /* Delete */, data: props.user })) return null;
6367
6370
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserDeleterInternal, { ...props });
6368
6371
  }
6369
6372
  _chunk7QVYU63Ejs.__name.call(void 0, UserDeleter, "UserDeleter");
@@ -6386,7 +6389,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
6386
6389
  } = useCurrentUserContext();
6387
6390
  const { company: companyFromContext } = useCompanyContext();
6388
6391
  const generateUrl = usePageUrlGenerator();
6389
- const router = _chunkOODZEX6Pjs.useI18nRouter.call(void 0, );
6392
+ const router = _chunkGP3MDKGEjs.useI18nRouter.call(void 0, );
6390
6393
  const [open, setOpen] = _react.useState.call(void 0, false);
6391
6394
  const [roles, setRoles] = _react.useState.call(void 0, []);
6392
6395
  const [file, setFile] = _react.useState.call(void 0, null);
@@ -6427,7 +6430,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
6427
6430
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
6428
6431
  if (!user) {
6429
6432
  try {
6430
- const existingUser = await _chunkL5F5ZN5Fjs.UserService.findByEmail({ email: values.email });
6433
+ const existingUser = await _chunkAHXRHXZ2js.UserService.findByEmail({ email: values.email });
6431
6434
  if (existingUser) {
6432
6435
  form.setError("email", {
6433
6436
  type: "manual",
@@ -6440,7 +6443,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
6440
6443
  }
6441
6444
  }
6442
6445
  if (values.avatar && contentType) {
6443
- const s3 = await _chunkL5F5ZN5Fjs.S3Service.getPreSignedUrl({
6446
+ const s3 = await _chunkAHXRHXZ2js.S3Service.getPreSignedUrl({
6444
6447
  key: values.avatar,
6445
6448
  contentType,
6446
6449
  isPublic: true
@@ -6466,16 +6469,16 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
6466
6469
  adminCreated
6467
6470
  };
6468
6471
  try {
6469
- const updatedUser = user ? await _chunkL5F5ZN5Fjs.UserService.update(payload) : await _chunkL5F5ZN5Fjs.UserService.create(payload);
6472
+ const updatedUser = user ? await _chunkAHXRHXZ2js.UserService.update(payload) : await _chunkAHXRHXZ2js.UserService.create(payload);
6470
6473
  if (_optionalChain([currentUser, 'optionalAccess', _150 => _150.id]) === updatedUser.id) setUser(updatedUser);
6471
6474
  if (onRevalidate) {
6472
- await onRevalidate(generateUrl({ page: _chunkL5F5ZN5Fjs.Modules.User, id: updatedUser.id, language: `[locale]` }));
6475
+ await onRevalidate(generateUrl({ page: _chunkAHXRHXZ2js.Modules.User, id: updatedUser.id, language: `[locale]` }));
6473
6476
  }
6474
6477
  if (propagateChanges) {
6475
6478
  propagateChanges(updatedUser);
6476
6479
  setOpen(false);
6477
6480
  } else {
6478
- router.push(generateUrl({ page: _chunkL5F5ZN5Fjs.Modules.User, id: updatedUser.id }));
6481
+ router.push(generateUrl({ page: _chunkAHXRHXZ2js.Modules.User, id: updatedUser.id }));
6479
6482
  }
6480
6483
  } catch (error) {
6481
6484
  errorToast({ title: user ? t(`common.errors.update`) : t(`common.errors.create`), error });
@@ -6483,14 +6486,14 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
6483
6486
  }, "onSubmit");
6484
6487
  _react.useEffect.call(void 0, () => {
6485
6488
  async function fetchRoles() {
6486
- const roles2 = await _chunkL5F5ZN5Fjs.RoleService.findAllRoles({});
6489
+ const roles2 = await _chunkAHXRHXZ2js.RoleService.findAllRoles({});
6487
6490
  const availableRoles = roles2.filter(
6488
- (role) => role.id !== _chunkOODZEX6Pjs.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]))]))
6491
+ (role) => role.id !== _chunkGP3MDKGEjs.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]))]))
6489
6492
  );
6490
6493
  setRoles(availableRoles);
6491
6494
  }
6492
6495
  _chunk7QVYU63Ejs.__name.call(void 0, fetchRoles, "fetchRoles");
6493
- if (open && (company || _optionalChain([currentUser, 'optionalAccess', _156 => _156.roles, 'access', _157 => _157.find, 'call', _158 => _158((role) => role.id === _chunkOODZEX6Pjs.getRoleId.call(void 0, ).Administrator)])) && roles.length === 0)
6496
+ if (open && (company || _optionalChain([currentUser, 'optionalAccess', _156 => _156.roles, 'access', _157 => _157.find, 'call', _158 => _158((role) => role.id === _chunkGP3MDKGEjs.getRoleId.call(void 0, ).Administrator)])) && roles.length === 0)
6494
6497
  fetchRoles();
6495
6498
  }, [company, open]);
6496
6499
  _react.useEffect.call(void 0, () => {
@@ -6511,7 +6514,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
6511
6514
  setContentType(null);
6512
6515
  }
6513
6516
  }, [file]);
6514
- const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _159 => _159.id]) === _optionalChain([user, 'optionalAccess', _160 => _160.id]) && hasRole(_chunkOODZEX6Pjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkL5F5ZN5Fjs.Modules.User, action: "update" /* Update */ }) || hasRole(_chunkOODZEX6Pjs.getRoleId.call(void 0, ).Administrator));
6517
+ const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _159 => _159.id]) === _optionalChain([user, 'optionalAccess', _160 => _160.id]) && hasRole(_chunkGP3MDKGEjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkAHXRHXZ2js.Modules.User, action: "update" /* Update */ }) || hasRole(_chunkGP3MDKGEjs.getRoleId.call(void 0, ).Administrator));
6515
6518
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
6516
6519
  trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTrigger, { children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!user }),
6517
6520
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -6598,7 +6601,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
6598
6601
  ] })
6599
6602
  ] }),
6600
6603
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-end gap-x-4", children: [
6601
- user && _optionalChain([currentUser, 'optionalAccess', _162 => _162.roles, 'access', _163 => _163.find, 'call', _164 => _164((role) => role.id === _chunkOODZEX6Pjs.getRoleId.call(void 0, ).Administrator)]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6604
+ user && _optionalChain([currentUser, 'optionalAccess', _162 => _162.roles, 'access', _163 => _163.find, 'call', _164 => _164((role) => role.id === _chunkGP3MDKGEjs.getRoleId.call(void 0, ).Administrator)]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6602
6605
  UserDeleter,
6603
6606
  {
6604
6607
  companyId: _optionalChain([user, 'access', _165 => _165.company, 'optionalAccess', _166 => _166.id]),
@@ -6621,7 +6624,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserEditorInternal, "UserEditorInternal");
6621
6624
  function UserEditor(props) {
6622
6625
  const { hasPermissionToModule } = useCurrentUserContext();
6623
6626
  if (!hasPermissionToModule({
6624
- module: _chunkL5F5ZN5Fjs.Modules.User,
6627
+ module: _chunkAHXRHXZ2js.Modules.User,
6625
6628
  action: props.user ? "update" /* Update */ : "create" /* Create */,
6626
6629
  data: props.user
6627
6630
  }))
@@ -6709,7 +6712,7 @@ function CommonAssociationCommandDialog({
6709
6712
  _chunk7QVYU63Ejs.__name.call(void 0, CommonAssociationCommandDialog, "CommonAssociationCommandDialog");
6710
6713
  var triggerAssociationToast = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
6711
6714
  if (params.level) {
6712
- _chunkL5F5ZN5Fjs.showToast.call(void 0,
6715
+ _chunkAHXRHXZ2js.showToast.call(void 0,
6713
6716
  params.t(`common.association.label`, {
6714
6717
  source: params.source,
6715
6718
  destination: params.destination
@@ -6725,7 +6728,7 @@ var triggerAssociationToast = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
6725
6728
  }
6726
6729
  );
6727
6730
  } else {
6728
- _chunkL5F5ZN5Fjs.showToast.call(void 0,
6731
+ _chunkAHXRHXZ2js.showToast.call(void 0,
6729
6732
  params.t(`common.association.label`, {
6730
6733
  source: params.source,
6731
6734
  destination: params.destination
@@ -6777,7 +6780,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ErrorDetails, "ErrorDetails");
6777
6780
 
6778
6781
  // src/components/errors/errorToast.ts
6779
6782
  function errorToast(params) {
6780
- _chunkL5F5ZN5Fjs.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess', _167 => _167.title]), () => ( "Error")), {
6783
+ _chunkAHXRHXZ2js.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess', _167 => _167.title]), () => ( "Error")), {
6781
6784
  description: params.error instanceof Error ? params.error.message : String(params.error)
6782
6785
  });
6783
6786
  }
@@ -6786,8 +6789,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, errorToast, "errorToast");
6786
6789
  // src/components/forms/CommonDeleter.tsx
6787
6790
 
6788
6791
  function CommonDeleter({ deleteFunction, redirectTo, type, forceShow, testId }) {
6789
- const t = _chunkOODZEX6Pjs.useI18nTranslations.call(void 0, );
6790
- const router = _chunkOODZEX6Pjs.useI18nRouter.call(void 0, );
6792
+ const t = _chunkGP3MDKGEjs.useI18nTranslations.call(void 0, );
6793
+ const router = _chunkGP3MDKGEjs.useI18nRouter.call(void 0, );
6791
6794
  const [open, setOpen] = _react.useState.call(void 0, forceShow || false);
6792
6795
  const [isDeleting, setIsDeleting] = _react.useState.call(void 0, false);
6793
6796
  const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
@@ -6929,8 +6932,8 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
6929
6932
  align = "start",
6930
6933
  className
6931
6934
  }) => {
6932
- const locale = _chunkOODZEX6Pjs.useI18nLocale.call(void 0, );
6933
- const dateFnsLocale = _chunkOODZEX6Pjs.useI18nDateFnsLocale.call(void 0, );
6935
+ const locale = _chunkGP3MDKGEjs.useI18nLocale.call(void 0, );
6936
+ const dateFnsLocale = _chunkGP3MDKGEjs.useI18nDateFnsLocale.call(void 0, );
6934
6937
  const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
6935
6938
  const [displayMonth, setDisplayMonth] = _react.useState.call(void 0, () => value || /* @__PURE__ */ new Date());
6936
6939
  const dateFormatter = _react.useMemo.call(void 0,
@@ -6993,7 +6996,7 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
6993
6996
  }, "handleClear");
6994
6997
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open: isOpen, onOpenChange: setIsOpen, children: [
6995
6998
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { children }),
6996
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className: _chunkL5F5ZN5Fjs.cn.call(void 0, "p-0", className), align, onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "p-3", children: [
6999
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className: _chunkAHXRHXZ2js.cn.call(void 0, "p-0", className), align, onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "p-3", children: [
6997
7000
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative mb-3", children: [
6998
7001
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6999
7002
  Input,
@@ -7109,13 +7112,13 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
7109
7112
  setDate(range);
7110
7113
  }
7111
7114
  }, "handleSelect");
7112
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkL5F5ZN5Fjs.cn.call(void 0, "grid gap-2"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, children: [
7115
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkAHXRHXZ2js.cn.call(void 0, "grid gap-2"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, children: [
7113
7116
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
7114
7117
  Button,
7115
7118
  {
7116
7119
  id: "date",
7117
7120
  variant: "outline",
7118
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
7121
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
7119
7122
  children: [
7120
7123
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
7121
7124
  _optionalChain([date, 'optionalAccess', _177 => _177.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
@@ -7239,7 +7242,7 @@ var FileUploader = _react.forwardRef.call(void 0,
7239
7242
  (acceptedFiles, rejectedFiles) => {
7240
7243
  const files = acceptedFiles;
7241
7244
  if (!files) {
7242
- _chunkL5F5ZN5Fjs.showError.call(void 0, t("common.errors.file"), {
7245
+ _chunkAHXRHXZ2js.showError.call(void 0, t("common.errors.file"), {
7243
7246
  description: t("common.errors.file_large")
7244
7247
  });
7245
7248
  return;
@@ -7257,13 +7260,13 @@ var FileUploader = _react.forwardRef.call(void 0,
7257
7260
  if (rejectedFiles.length > 0) {
7258
7261
  for (let i = 0; i < rejectedFiles.length; i++) {
7259
7262
  if (_optionalChain([rejectedFiles, 'access', _183 => _183[i], 'access', _184 => _184.errors, 'access', _185 => _185[0], 'optionalAccess', _186 => _186.code]) === "file-too-large") {
7260
- _chunkL5F5ZN5Fjs.showError.call(void 0, t("common.errors.file"), {
7263
+ _chunkAHXRHXZ2js.showError.call(void 0, t("common.errors.file"), {
7261
7264
  description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
7262
7265
  });
7263
7266
  break;
7264
7267
  }
7265
7268
  if (_optionalChain([rejectedFiles, 'access', _187 => _187[i], 'access', _188 => _188.errors, 'access', _189 => _189[0], 'optionalAccess', _190 => _190.message])) {
7266
- _chunkL5F5ZN5Fjs.showError.call(void 0, t(`common.errors.file`), {
7269
+ _chunkAHXRHXZ2js.showError.call(void 0, t(`common.errors.file`), {
7267
7270
  description: rejectedFiles[i].errors[0].message
7268
7271
  });
7269
7272
  break;
@@ -7307,7 +7310,7 @@ var FileUploader = _react.forwardRef.call(void 0,
7307
7310
  ref,
7308
7311
  tabIndex: 0,
7309
7312
  onKeyDownCapture: handleKeyDown,
7310
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
7313
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
7311
7314
  "grid w-full overflow-hidden focus:outline-none",
7312
7315
  className,
7313
7316
  // Original className from props
@@ -7331,12 +7334,12 @@ var FileUploaderContent = _react.forwardRef.call(void 0,
7331
7334
  ({ children, className, ...props }, ref) => {
7332
7335
  const { orientation } = useFileUpload();
7333
7336
  const containerRef = _react.useRef.call(void 0, null);
7334
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkL5F5ZN5Fjs.cn.call(void 0, "w-full px-1"), ref: containerRef, "aria-description": "content file holder", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7337
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkAHXRHXZ2js.cn.call(void 0, "w-full px-1"), ref: containerRef, "aria-description": "content file holder", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7335
7338
  "div",
7336
7339
  {
7337
7340
  ...props,
7338
7341
  ref,
7339
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
7342
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
7340
7343
  "flex gap-1 rounded-xl",
7341
7344
  orientation === "horizontal" ? "flex-raw flex-wrap" : "flex-col",
7342
7345
  className
@@ -7356,7 +7359,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
7356
7359
  "div",
7357
7360
  {
7358
7361
  ref,
7359
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
7362
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
7360
7363
  buttonVariants({ variant: "ghost" }),
7361
7364
  "relative h-6 cursor-pointer justify-between p-1",
7362
7365
  className,
@@ -7369,7 +7372,7 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
7369
7372
  "button",
7370
7373
  {
7371
7374
  type: "button",
7372
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "absolute", direction === "rtl" ? "top-1 left-1" : "top-1 right-1"),
7375
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "absolute", direction === "rtl" ? "top-1 left-1" : "top-1 right-1"),
7373
7376
  onClick: () => removeFileFromSet(index),
7374
7377
  children: [
7375
7378
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: t(`common.remove_item`, { index }) }),
@@ -7393,12 +7396,12 @@ var FileInput = _react.forwardRef.call(void 0,
7393
7396
  {
7394
7397
  ref,
7395
7398
  ...props,
7396
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, `relative w-full ${isLOF ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`, className),
7399
+ className: _chunkAHXRHXZ2js.cn.call(void 0, `relative w-full ${isLOF ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`, className),
7397
7400
  children: [
7398
7401
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7399
7402
  "div",
7400
7403
  {
7401
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
7404
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
7402
7405
  "w-full rounded-lg duration-300 ease-in-out",
7403
7406
  // Simpler border logic: if parent is drag-active, it controls the border.
7404
7407
  // Otherwise, FileInput can show its own accept/reject/default border.
@@ -7501,8 +7504,8 @@ function FormDate({
7501
7504
  onChange,
7502
7505
  isRequired = false
7503
7506
  }) {
7504
- const locale = _chunkOODZEX6Pjs.useI18nLocale.call(void 0, );
7505
- const dateFnsLocale = _chunkOODZEX6Pjs.useI18nDateFnsLocale.call(void 0, );
7507
+ const locale = _chunkGP3MDKGEjs.useI18nLocale.call(void 0, );
7508
+ const dateFnsLocale = _chunkGP3MDKGEjs.useI18nDateFnsLocale.call(void 0, );
7506
7509
  const [open, setOpen] = _react.useState.call(void 0, false);
7507
7510
  const [displayMonth, setDisplayMonth] = _react.useState.call(void 0, () => {
7508
7511
  const currentValue = form.getValues(id);
@@ -7662,9 +7665,9 @@ function FormDateTime({
7662
7665
  allowEmpty
7663
7666
  }) {
7664
7667
  const [open, setOpen] = _react.useState.call(void 0, false);
7665
- const t = _chunkOODZEX6Pjs.useI18nTranslations.call(void 0, );
7666
- const locale = _chunkOODZEX6Pjs.useI18nLocale.call(void 0, );
7667
- const dateFnsLocale = _chunkOODZEX6Pjs.useI18nDateFnsLocale.call(void 0, );
7668
+ const t = _chunkGP3MDKGEjs.useI18nTranslations.call(void 0, );
7669
+ const locale = _chunkGP3MDKGEjs.useI18nLocale.call(void 0, );
7670
+ const dateFnsLocale = _chunkGP3MDKGEjs.useI18nDateFnsLocale.call(void 0, );
7668
7671
  const dateTimeFormatter = _react.useMemo.call(void 0,
7669
7672
  () => new Intl.DateTimeFormat(locale, {
7670
7673
  year: "numeric",
@@ -7715,7 +7718,7 @@ function FormDateTime({
7715
7718
  Button,
7716
7719
  {
7717
7720
  variant: "outline",
7718
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "w-full pl-3 text-left font-normal", !field.value && "text-muted-foreground")
7721
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "w-full pl-3 text-left font-normal", !field.value && "text-muted-foreground")
7719
7722
  }
7720
7723
  ),
7721
7724
  children: [
@@ -7904,7 +7907,7 @@ var PasswordInput = React12.forwardRef(
7904
7907
  const disabled = props.value === "" || props.value === void 0 || props.disabled;
7905
7908
  const t = _nextintl.useTranslations.call(void 0, );
7906
7909
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
7907
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className: _chunkL5F5ZN5Fjs.cn.call(void 0, "", className), ref, ...props }),
7910
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { type: showPassword ? "text" : "password", className: _chunkAHXRHXZ2js.cn.call(void 0, "", className), ref, ...props }),
7908
7911
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
7909
7912
  Button,
7910
7913
  {
@@ -8089,7 +8092,7 @@ function FormPlaceAutocomplete({
8089
8092
  placeholder,
8090
8093
  disabled,
8091
8094
  "data-testid": testId,
8092
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "w-full", className)
8095
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "w-full", className)
8093
8096
  }
8094
8097
  ) }) });
8095
8098
  }
@@ -8108,7 +8111,7 @@ function FormPlaceAutocomplete({
8108
8111
  placeholder,
8109
8112
  disabled: disabled || !apiKey,
8110
8113
  "data-testid": testId,
8111
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "w-full", className)
8114
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "w-full", className)
8112
8115
  }
8113
8116
  ),
8114
8117
  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" }) }),
@@ -8233,7 +8236,7 @@ function FormTextarea({
8233
8236
  Textarea,
8234
8237
  {
8235
8238
  ...field,
8236
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "min-h-96 w-full", className),
8239
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "min-h-96 w-full", className),
8237
8240
  disabled: form.formState.isSubmitting,
8238
8241
  placeholder,
8239
8242
  "data-testid": testId
@@ -8342,10 +8345,10 @@ function UserMultiSelect({
8342
8345
  const data = useDataListRetriever({
8343
8346
  ready: !!company,
8344
8347
  retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
8345
- return _chunkL5F5ZN5Fjs.UserService.findAllUsers(params);
8348
+ return _chunkAHXRHXZ2js.UserService.findAllUsers(params);
8346
8349
  }, "retriever"),
8347
8350
  retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _211 => _211.id]) },
8348
- module: _chunkL5F5ZN5Fjs.Modules.User
8351
+ module: _chunkAHXRHXZ2js.Modules.User
8349
8352
  });
8350
8353
  _react.useEffect.call(void 0, () => {
8351
8354
  if (company) data.setReady(true);
@@ -8445,7 +8448,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
8445
8448
  const t = _nextintl.useTranslations.call(void 0, );
8446
8449
  const reactivateUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
8447
8450
  try {
8448
- const updatedUser = await _chunkL5F5ZN5Fjs.UserService.reactivate({ userId: user.id });
8451
+ const updatedUser = await _chunkAHXRHXZ2js.UserService.reactivate({ userId: user.id });
8449
8452
  setOpen(false);
8450
8453
  propagateChanges(updatedUser);
8451
8454
  } catch (error) {
@@ -8483,7 +8486,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
8483
8486
  _chunk7QVYU63Ejs.__name.call(void 0, UserReactivatorInterface, "UserReactivatorInterface");
8484
8487
  function UserReactivator(props) {
8485
8488
  const { hasPermissionToModule } = useCurrentUserContext();
8486
- if (!hasPermissionToModule({ module: _chunkL5F5ZN5Fjs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
8489
+ if (!hasPermissionToModule({ module: _chunkAHXRHXZ2js.Modules.User, action: "update" /* Update */, data: props.user })) return null;
8487
8490
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserReactivatorInterface, { ...props });
8488
8491
  }
8489
8492
  _chunk7QVYU63Ejs.__name.call(void 0, UserReactivator, "UserReactivator");
@@ -8498,9 +8501,9 @@ function UserResentInvitationEmailInternal({ user }) {
8498
8501
  const t = _nextintl.useTranslations.call(void 0, );
8499
8502
  const sendInvitationEmail = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
8500
8503
  try {
8501
- await _chunkL5F5ZN5Fjs.UserService.sendInvitation({ userId: user.id, companyId: user.company.id });
8504
+ await _chunkAHXRHXZ2js.UserService.sendInvitation({ userId: user.id, companyId: user.company.id });
8502
8505
  setOpen(false);
8503
- _chunkL5F5ZN5Fjs.showToast.call(void 0, t(`user.resend_activation.email_sent`), {
8506
+ _chunkAHXRHXZ2js.showToast.call(void 0, t(`user.resend_activation.email_sent`), {
8504
8507
  description: t(`user.resend_activation.email_sent_description`, { email: user.email })
8505
8508
  });
8506
8509
  } catch (error) {
@@ -8538,7 +8541,7 @@ function UserResentInvitationEmailInternal({ user }) {
8538
8541
  _chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmailInternal, "UserResentInvitationEmailInternal");
8539
8542
  function UserResentInvitationEmail(props) {
8540
8543
  const { hasPermissionToModule } = useCurrentUserContext();
8541
- if (!hasPermissionToModule({ module: _chunkL5F5ZN5Fjs.Modules.User, action: "update" /* Update */, data: props.user })) return null;
8544
+ if (!hasPermissionToModule({ module: _chunkAHXRHXZ2js.Modules.User, action: "update" /* Update */, data: props.user })) return null;
8542
8545
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserResentInvitationEmailInternal, { ...props });
8543
8546
  }
8544
8547
  _chunk7QVYU63Ejs.__name.call(void 0, UserResentInvitationEmail, "UserResentInvitationEmail");
@@ -8569,22 +8572,22 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
8569
8572
  }, "getAvatar");
8570
8573
  const content = showLink === false ? (
8571
8574
  // If showLink is explicitly false, never show a link
8572
- showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkL5F5ZN5Fjs.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className), children: [
8575
+ showFull ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkAHXRHXZ2js.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className), children: [
8573
8576
  getAvatar(),
8574
8577
  user.name
8575
8578
  ] }) : getAvatar()
8576
8579
  ) : showFull ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8577
8580
  Link,
8578
8581
  {
8579
- href: generateUrl({ page: _chunkL5F5ZN5Fjs.Modules.User, id: user.id }),
8580
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className),
8582
+ href: generateUrl({ page: _chunkAHXRHXZ2js.Modules.User, id: user.id }),
8583
+ className: _chunkAHXRHXZ2js.cn.call(void 0, `mb-2 flex w-full flex-row items-center justify-start gap-x-2 text-sm`, className),
8581
8584
  onClick: (e) => e.stopPropagation(),
8582
8585
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center gap-x-2", children: [
8583
8586
  getAvatar(),
8584
8587
  user.name
8585
8588
  ] })
8586
8589
  }
8587
- ) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunkL5F5ZN5Fjs.Modules.User, id: user.id }), className, children: getAvatar() }) : getAvatar();
8590
+ ) : showLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunkAHXRHXZ2js.Modules.User, id: user.id }), className, children: getAvatar() }) : getAvatar();
8588
8591
  if (!showTooltip) {
8589
8592
  return content;
8590
8593
  }
@@ -8605,10 +8608,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
8605
8608
  const [isSearching, setIsSearching] = _react.useState.call(void 0, false);
8606
8609
  const data = useDataListRetriever({
8607
8610
  retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
8608
- return _chunkL5F5ZN5Fjs.UserService.findMany(params);
8611
+ return _chunkAHXRHXZ2js.UserService.findMany(params);
8609
8612
  }, "retriever"),
8610
8613
  retrieverParams: {},
8611
- module: _chunkL5F5ZN5Fjs.Modules.User
8614
+ module: _chunkAHXRHXZ2js.Modules.User
8612
8615
  });
8613
8616
  const search = _react.useCallback.call(void 0,
8614
8617
  async (searchedTerm) => {
@@ -8707,24 +8710,24 @@ var UserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
8707
8710
  const { hasPermissionToModule } = useCurrentUserContext();
8708
8711
  const t = _nextintl.useTranslations.call(void 0, );
8709
8712
  const [user, setUser] = _react.useState.call(void 0,
8710
- dehydratedUser ? _chunkL5F5ZN5Fjs.rehydrate.call(void 0, _chunkL5F5ZN5Fjs.Modules.User, dehydratedUser) : void 0
8713
+ dehydratedUser ? _chunkAHXRHXZ2js.rehydrate.call(void 0, _chunkAHXRHXZ2js.Modules.User, dehydratedUser) : void 0
8711
8714
  );
8712
8715
  const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
8713
8716
  const response = [];
8714
- if (hasPermissionToModule({ module: _chunkL5F5ZN5Fjs.Modules.User, action: "update" /* Update */ })) {
8717
+ if (hasPermissionToModule({ module: _chunkAHXRHXZ2js.Modules.User, action: "update" /* Update */ })) {
8715
8718
  response.push({
8716
8719
  name: t(`common.settings`, { item: "settings" }),
8717
8720
  href: generateUrl({ page: `/settings` })
8718
8721
  });
8719
8722
  response.push({
8720
8723
  name: t(`entities.users`, { count: 2 }),
8721
- href: generateUrl({ page: `/settings`, id: _chunkL5F5ZN5Fjs.Modules.User.pageUrl })
8724
+ href: generateUrl({ page: `/settings`, id: _chunkAHXRHXZ2js.Modules.User.pageUrl })
8722
8725
  });
8723
8726
  }
8724
8727
  if (user)
8725
8728
  response.push({
8726
8729
  name: `${user.name}${user.isDeleted ? ` (${t(`user.deleted`)})` : ""}`,
8727
- href: generateUrl({ page: _chunkL5F5ZN5Fjs.Modules.User, id: user.id })
8730
+ href: generateUrl({ page: _chunkAHXRHXZ2js.Modules.User, id: user.id })
8728
8731
  });
8729
8732
  return response;
8730
8733
  }, "breadcrumb");
@@ -8779,7 +8782,7 @@ function UserDetails({ user }) {
8779
8782
  const { title } = useSharedContext();
8780
8783
  let roles = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
8781
8784
  if (user.roles && user.roles.length > 0) {
8782
- 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: _chunkL5F5ZN5Fjs.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)) }) });
8785
+ 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: _chunkAHXRHXZ2js.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)) }) });
8783
8786
  }
8784
8787
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
8785
8788
  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,
@@ -8792,7 +8795,7 @@ function UserDetails({ user }) {
8792
8795
  className: "h-auto w-full rounded-lg object-contain"
8793
8796
  }
8794
8797
  ) }),
8795
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkL5F5ZN5Fjs.Modules.User, type: title.type, element: title.element, functions: title.functions }),
8798
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkAHXRHXZ2js.Modules.User, type: title.type, element: title.element, functions: title.functions }),
8796
8799
  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`) }) }) }),
8797
8800
  roles,
8798
8801
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AttributeElement, { inline: true, title: t(`user.fields.title.label`), value: user.title }),
@@ -8828,7 +8831,7 @@ function UserStanadaloneDetails({ user }) {
8828
8831
  const { title } = useSharedContext();
8829
8832
  let roles = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
8830
8833
  if (user.roles && user.roles.length > 0) {
8831
- 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: _chunkL5F5ZN5Fjs.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)) }) });
8834
+ 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: _chunkAHXRHXZ2js.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)) }) });
8832
8835
  }
8833
8836
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row gap-x-4", children: [
8834
8837
  user.avatar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-64", children: /* @__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,
@@ -8842,7 +8845,7 @@ function UserStanadaloneDetails({ user }) {
8842
8845
  }
8843
8846
  ) }) }),
8844
8847
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
8845
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkL5F5ZN5Fjs.Modules.User, type: title.type, element: title.element, functions: title.functions }),
8848
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkAHXRHXZ2js.Modules.User, type: title.type, element: title.element, functions: title.functions }),
8846
8849
  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`) }) }) }),
8847
8850
  roles,
8848
8851
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AttributeElement, { inline: true, title: t(`user.fields.title.label`), value: user.title }),
@@ -8881,18 +8884,18 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserIndexContainer, "UserIndexContainer");
8881
8884
  function UsersListContainerInternal() {
8882
8885
  const { hasPermissionToModule } = useCurrentUserContext();
8883
8886
  const t = _nextintl.useTranslations.call(void 0, );
8884
- if (!hasPermissionToModule({ module: _chunkL5F5ZN5Fjs.Modules.User, action: "delete" /* Delete */ })) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {});
8887
+ if (!hasPermissionToModule({ module: _chunkAHXRHXZ2js.Modules.User, action: "delete" /* Delete */ })) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {});
8885
8888
  const tabs = [
8886
8889
  {
8887
8890
  label: t(`entities.users`, { count: 2 }),
8888
8891
  content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, {}),
8889
- modules: [_chunkL5F5ZN5Fjs.Modules.Company],
8892
+ modules: [_chunkAHXRHXZ2js.Modules.Company],
8890
8893
  action: "read" /* Read */
8891
8894
  },
8892
8895
  {
8893
8896
  label: t(`user.deleted`),
8894
8897
  content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyUsersList, { isDeleted: true }),
8895
- modules: [_chunkL5F5ZN5Fjs.Modules.Company],
8898
+ modules: [_chunkAHXRHXZ2js.Modules.Company],
8896
8899
  action: "update" /* Update */
8897
8900
  }
8898
8901
  ];
@@ -8910,9 +8913,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersListContainer, "UsersListContainer");
8910
8913
  function AdminUsersListInternal({ company }) {
8911
8914
  const t = _nextintl.useTranslations.call(void 0, );
8912
8915
  const data = useDataListRetriever({
8913
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL5F5ZN5Fjs.UserService.findManyForAmin(params), "retriever"),
8916
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAHXRHXZ2js.UserService.findManyForAmin(params), "retriever"),
8914
8917
  retrieverParams: { companyId: company.id },
8915
- module: _chunkL5F5ZN5Fjs.Modules.User
8918
+ module: _chunkAHXRHXZ2js.Modules.User
8916
8919
  });
8917
8920
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8918
8921
  ContentListTable,
@@ -8920,7 +8923,7 @@ function AdminUsersListInternal({ company }) {
8920
8923
  title: t(`entities.users`, { count: 2 }),
8921
8924
  data,
8922
8925
  fields: ["name" /* name */, "email" /* email */, "createdAt" /* createdAt */],
8923
- tableGeneratorType: _chunkL5F5ZN5Fjs.Modules.User,
8926
+ tableGeneratorType: _chunkAHXRHXZ2js.Modules.User,
8924
8927
  functions: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserEditor, { propagateChanges: data.refresh, adminCreated: true })
8925
8928
  }
8926
8929
  );
@@ -8942,9 +8945,9 @@ function CompanyUsersList({ isDeleted }) {
8942
8945
  const t = _nextintl.useTranslations.call(void 0, );
8943
8946
  const data = useDataListRetriever({
8944
8947
  ready: !!company,
8945
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL5F5ZN5Fjs.UserService.findAllUsers(params), "retriever"),
8948
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAHXRHXZ2js.UserService.findAllUsers(params), "retriever"),
8946
8949
  retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _230 => _230.id]), isDeleted },
8947
- module: _chunkL5F5ZN5Fjs.Modules.User
8950
+ module: _chunkAHXRHXZ2js.Modules.User
8948
8951
  });
8949
8952
  _react.useEffect.call(void 0, () => {
8950
8953
  if (company) data.setReady(true);
@@ -8957,7 +8960,7 @@ function CompanyUsersList({ isDeleted }) {
8957
8960
  {
8958
8961
  data,
8959
8962
  fields: ["name" /* name */, "email" /* email */],
8960
- tableGeneratorType: _chunkL5F5ZN5Fjs.Modules.User,
8963
+ tableGeneratorType: _chunkAHXRHXZ2js.Modules.User,
8961
8964
  functions,
8962
8965
  title: t(`entities.users`, { count: 2 })
8963
8966
  }
@@ -8973,7 +8976,7 @@ function ContributorsList({ content }) {
8973
8976
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8974
8977
  Link,
8975
8978
  {
8976
- href: generateUrl({ page: _chunkL5F5ZN5Fjs.Modules.User, id: content.author.id }),
8979
+ href: generateUrl({ page: _chunkAHXRHXZ2js.Modules.User, id: content.author.id }),
8977
8980
  onClick: (e) => e.stopPropagation(),
8978
8981
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: content.author, className: "mr-1 h-6 w-6" })
8979
8982
  },
@@ -8982,7 +8985,7 @@ function ContributorsList({ content }) {
8982
8985
  /* @__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,
8983
8986
  Link,
8984
8987
  {
8985
- href: generateUrl({ page: _chunkL5F5ZN5Fjs.Modules.User, id: editor.id }),
8988
+ href: generateUrl({ page: _chunkAHXRHXZ2js.Modules.User, id: editor.id }),
8986
8989
  onClick: (e) => e.stopPropagation(),
8987
8990
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: editor, className: "h-5 w-5" })
8988
8991
  },
@@ -8998,8 +9001,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContributorsList, "ContributorsList");
8998
9001
  function RelevantUsersList({ id }) {
8999
9002
  const t = _nextintl.useTranslations.call(void 0, );
9000
9003
  const data = useDataListRetriever({
9001
- module: _chunkL5F5ZN5Fjs.Modules.User,
9002
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL5F5ZN5Fjs.UserService.findRelevant(params), "retriever"),
9004
+ module: _chunkAHXRHXZ2js.Modules.User,
9005
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAHXRHXZ2js.UserService.findRelevant(params), "retriever"),
9003
9006
  retrieverParams: { id }
9004
9007
  });
9005
9008
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -9007,7 +9010,7 @@ function RelevantUsersList({ id }) {
9007
9010
  {
9008
9011
  data,
9009
9012
  fields: ["name" /* name */, "email" /* email */, "relevance" /* relevance */],
9010
- tableGeneratorType: _chunkL5F5ZN5Fjs.Modules.User,
9013
+ tableGeneratorType: _chunkAHXRHXZ2js.Modules.User,
9011
9014
  title: t(`common.relevant_users`)
9012
9015
  }
9013
9016
  );
@@ -9020,16 +9023,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RelevantUsersList, "RelevantUsersList");
9020
9023
  function RoleUsersList({ role }) {
9021
9024
  const t = _nextintl.useTranslations.call(void 0, );
9022
9025
  const data = useDataListRetriever({
9023
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL5F5ZN5Fjs.UserService.findAllUsersByRole(params), "retriever"),
9026
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAHXRHXZ2js.UserService.findAllUsersByRole(params), "retriever"),
9024
9027
  retrieverParams: { roleId: role.id },
9025
- module: _chunkL5F5ZN5Fjs.Modules.User
9028
+ module: _chunkAHXRHXZ2js.Modules.User
9026
9029
  });
9027
9030
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9028
9031
  ContentListTable,
9029
9032
  {
9030
9033
  data,
9031
9034
  fields: ["name" /* name */, "email" /* email */],
9032
- tableGeneratorType: _chunkL5F5ZN5Fjs.Modules.User,
9035
+ tableGeneratorType: _chunkAHXRHXZ2js.Modules.User,
9033
9036
  title: t(`entities.users`, { count: 2 })
9034
9037
  }
9035
9038
  );
@@ -9085,7 +9088,7 @@ function UsersList({
9085
9088
  {
9086
9089
  data,
9087
9090
  fields: ["name" /* name */, "email" /* email */],
9088
- tableGeneratorType: _chunkL5F5ZN5Fjs.Modules.User,
9091
+ tableGeneratorType: _chunkAHXRHXZ2js.Modules.User,
9089
9092
  title: t(`entities.users`, { count: 2 })
9090
9093
  }
9091
9094
  );
@@ -9098,8 +9101,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, UsersList, "UsersList");
9098
9101
  function UsersListByContentIds({ contentIds }) {
9099
9102
  const t = _nextintl.useTranslations.call(void 0, );
9100
9103
  const data = useDataListRetriever({
9101
- module: _chunkL5F5ZN5Fjs.Modules.User,
9102
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL5F5ZN5Fjs.UserService.findManyByContentIds(params), "retriever"),
9104
+ module: _chunkAHXRHXZ2js.Modules.User,
9105
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAHXRHXZ2js.UserService.findManyByContentIds(params), "retriever"),
9103
9106
  retrieverParams: { contentIds }
9104
9107
  });
9105
9108
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -9107,7 +9110,7 @@ function UsersListByContentIds({ contentIds }) {
9107
9110
  {
9108
9111
  data,
9109
9112
  fields: ["name" /* name */, "email" /* email */],
9110
- tableGeneratorType: _chunkL5F5ZN5Fjs.Modules.User,
9113
+ tableGeneratorType: _chunkAHXRHXZ2js.Modules.User,
9111
9114
  title: t(`common.relevant_users`)
9112
9115
  }
9113
9116
  );
@@ -9125,7 +9128,7 @@ function CompanyDetails() {
9125
9128
  const { company } = useCompanyContext();
9126
9129
  if (!company) return null;
9127
9130
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
9128
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkL5F5ZN5Fjs.Modules.Company, type: title.type, element: title.element, functions: title.functions }),
9131
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkAHXRHXZ2js.Modules.Company, type: title.type, element: title.element, functions: title.functions }),
9129
9132
  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" })
9130
9133
  ] });
9131
9134
  }
@@ -9136,7 +9139,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyDetails, "CompanyDetails");
9136
9139
  function AdminCompanyContainerInternal() {
9137
9140
  const { company } = useCompanyContext();
9138
9141
  const { hasRole } = useCurrentUserContext();
9139
- if (!company || !hasRole(_chunkOODZEX6Pjs.getRoleId.call(void 0, ).Administrator)) return null;
9142
+ if (!company || !hasRole(_chunkGP3MDKGEjs.getRoleId.call(void 0, ).Administrator)) return null;
9140
9143
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
9141
9144
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDetails, {}),
9142
9145
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AdminUsersList, {})
@@ -9190,13 +9193,13 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
9190
9193
  const textSize = textSizeClasses[size];
9191
9194
  const getBatteryIcon = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
9192
9195
  if (percentage > 75) {
9193
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryFull, { className: _chunkL5F5ZN5Fjs.cn.call(void 0, iconSize, "text-green-500") });
9196
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryFull, { className: _chunkAHXRHXZ2js.cn.call(void 0, iconSize, "text-green-500") });
9194
9197
  } else if (percentage > 50) {
9195
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryMedium, { className: _chunkL5F5ZN5Fjs.cn.call(void 0, iconSize, "text-green-500") });
9198
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryMedium, { className: _chunkAHXRHXZ2js.cn.call(void 0, iconSize, "text-green-500") });
9196
9199
  } else if (percentage >= 25) {
9197
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryLow, { className: _chunkL5F5ZN5Fjs.cn.call(void 0, iconSize, "text-yellow-500") });
9200
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.BatteryLow, { className: _chunkAHXRHXZ2js.cn.call(void 0, iconSize, "text-yellow-500") });
9198
9201
  } else {
9199
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Battery, { className: _chunkL5F5ZN5Fjs.cn.call(void 0, iconSize, "text-destructive") });
9202
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Battery, { className: _chunkAHXRHXZ2js.cn.call(void 0, iconSize, "text-destructive") });
9200
9203
  }
9201
9204
  }, "getBatteryIcon");
9202
9205
  const getStatusColor = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
@@ -9216,7 +9219,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
9216
9219
  t("billing.tokens.monthly", { defaultValue: "Monthly Pages" }),
9217
9220
  ":"
9218
9221
  ] }),
9219
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkL5F5ZN5Fjs.cn.call(void 0, "font-medium", getStatusColor()), children: [
9222
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkAHXRHXZ2js.cn.call(void 0, "font-medium", getStatusColor()), children: [
9220
9223
  availableMonthlyTokens,
9221
9224
  " / ",
9222
9225
  monthlyTokens
@@ -9227,7 +9230,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
9227
9230
  t("billing.tokens.available", { defaultValue: "Available" }),
9228
9231
  ":"
9229
9232
  ] }),
9230
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkL5F5ZN5Fjs.cn.call(void 0, "font-medium", getStatusColor()), children: [
9233
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkAHXRHXZ2js.cn.call(void 0, "font-medium", getStatusColor()), children: [
9231
9234
  percentage.toFixed(0),
9232
9235
  "%"
9233
9236
  ] })
@@ -9248,14 +9251,14 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
9248
9251
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
9249
9252
  "div",
9250
9253
  {
9251
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "inline-flex items-center gap-1.5 cursor-default", className),
9254
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "inline-flex items-center gap-1.5 cursor-default", className),
9252
9255
  "aria-label": t("billing.tokens.status", { defaultValue: "Page Status" }),
9253
9256
  children: [
9254
9257
  getBatteryIcon(),
9255
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkL5F5ZN5Fjs.cn.call(void 0, textSize, "text-muted-foreground font-medium"), children: availableMonthlyTokens }),
9258
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkAHXRHXZ2js.cn.call(void 0, textSize, "text-muted-foreground font-medium"), children: availableMonthlyTokens }),
9256
9259
  showExtraPages && availableExtraTokens > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "inline-flex items-center gap-0.5", children: [
9257
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className: _chunkL5F5ZN5Fjs.cn.call(void 0, smallIconSize, "text-blue-500") }),
9258
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkL5F5ZN5Fjs.cn.call(void 0, textSize, "text-blue-500 font-medium"), children: availableExtraTokens })
9260
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className: _chunkAHXRHXZ2js.cn.call(void 0, smallIconSize, "text-blue-500") }),
9261
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkAHXRHXZ2js.cn.call(void 0, textSize, "text-blue-500 font-medium"), children: availableExtraTokens })
9259
9262
  ] })
9260
9263
  ]
9261
9264
  }
@@ -9372,12 +9375,12 @@ function CompanyConfigurationEditorInternal({ company }) {
9372
9375
  }
9373
9376
  };
9374
9377
  try {
9375
- await _chunkL5F5ZN5Fjs.CompanyService.updateConfigurations(payload);
9376
- const fullUser = await _chunkL5F5ZN5Fjs.UserService.findFullUser();
9378
+ await _chunkAHXRHXZ2js.CompanyService.updateConfigurations(payload);
9379
+ const fullUser = await _chunkAHXRHXZ2js.UserService.findFullUser();
9377
9380
  if (fullUser) {
9378
9381
  setUser(fullUser);
9379
9382
  }
9380
- _chunkL5F5ZN5Fjs.showToast.call(void 0, "Configurations Updated", {
9383
+ _chunkAHXRHXZ2js.showToast.call(void 0, "Configurations Updated", {
9381
9384
  description: `The system configurations have been updated successfully.`
9382
9385
  });
9383
9386
  close();
@@ -9409,7 +9412,7 @@ function CompanyConfigurationEditorInternal({ company }) {
9409
9412
  _chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditorInternal, "CompanyConfigurationEditorInternal");
9410
9413
  function CompanyConfigurationEditor(props) {
9411
9414
  const { hasRole } = useCurrentUserContext();
9412
- if (hasRole(_chunkOODZEX6Pjs.getRoleId.call(void 0, ).Administrator)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditorInternal, { ...props });
9415
+ if (hasRole(_chunkGP3MDKGEjs.getRoleId.call(void 0, ).Administrator)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditorInternal, { ...props });
9413
9416
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditorInternal, { ...props });
9414
9417
  }
9415
9418
  _chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditor, "CompanyConfigurationEditor");
@@ -9434,11 +9437,11 @@ function CompanyDeleterInternal({ company, isAdministrator: isAdministrator2 })
9434
9437
  setIsDeleting(true);
9435
9438
  try {
9436
9439
  if (isAdministrator2) {
9437
- await _chunkL5F5ZN5Fjs.CompanyService.delete({ companyId: company.id });
9440
+ await _chunkAHXRHXZ2js.CompanyService.delete({ companyId: company.id });
9438
9441
  } else {
9439
- await _chunkL5F5ZN5Fjs.CompanyService.selfDelete({ companyId: company.id });
9442
+ await _chunkAHXRHXZ2js.CompanyService.selfDelete({ companyId: company.id });
9440
9443
  }
9441
- await _chunkL5F5ZN5Fjs.AuthService.logout();
9444
+ await _chunkAHXRHXZ2js.AuthService.logout();
9442
9445
  window.location.href = generateUrl({ page: `/` });
9443
9446
  } catch (error) {
9444
9447
  errorToast({ title: t(`common.errors.delete`), error });
@@ -9543,9 +9546,9 @@ function CompanyDeleterInternal({ company, isAdministrator: isAdministrator2 })
9543
9546
  _chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleterInternal, "CompanyDeleterInternal");
9544
9547
  function CompanyDeleter({ company }) {
9545
9548
  const { hasPermissionToModule, hasRole } = useCurrentUserContext();
9546
- const isAdministrator2 = hasRole(_chunkOODZEX6Pjs.getRoleId.call(void 0, ).Administrator);
9547
- const isCompanyAdministrator = hasRole(_chunkOODZEX6Pjs.getRoleId.call(void 0, ).CompanyAdministrator);
9548
- const hasDeletePermission = hasPermissionToModule({ module: _chunkL5F5ZN5Fjs.Modules.Company, action: "delete" /* Delete */ });
9549
+ const isAdministrator2 = hasRole(_chunkGP3MDKGEjs.getRoleId.call(void 0, ).Administrator);
9550
+ const isCompanyAdministrator = hasRole(_chunkGP3MDKGEjs.getRoleId.call(void 0, ).CompanyAdministrator);
9551
+ const hasDeletePermission = hasPermissionToModule({ module: _chunkAHXRHXZ2js.Modules.Company, action: "delete" /* Delete */ });
9549
9552
  if (!isAdministrator2 && !isCompanyAdministrator && !hasDeletePermission) {
9550
9553
  return null;
9551
9554
  }
@@ -9566,7 +9569,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleter, "CompanyDeleter");
9566
9569
 
9567
9570
  function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
9568
9571
  const { hasRole } = useCurrentUserContext();
9569
- const router = _chunkOODZEX6Pjs.useI18nRouter.call(void 0, );
9572
+ const router = _chunkGP3MDKGEjs.useI18nRouter.call(void 0, );
9570
9573
  const [open, setOpen] = _react.useState.call(void 0, false);
9571
9574
  const [features, setFeatures] = _react.useState.call(void 0, []);
9572
9575
  const [file, setFile] = _react.useState.call(void 0, null);
@@ -9595,7 +9598,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
9595
9598
  });
9596
9599
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
9597
9600
  if (values.logo && contentType) {
9598
- const s3 = await _chunkL5F5ZN5Fjs.S3Service.getPreSignedUrl({
9601
+ const s3 = await _chunkAHXRHXZ2js.S3Service.getPreSignedUrl({
9599
9602
  key: values.logo,
9600
9603
  contentType,
9601
9604
  isPublic: true
@@ -9614,9 +9617,9 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
9614
9617
  moduleIds: values.moduleIds
9615
9618
  };
9616
9619
  try {
9617
- const updatedCompany = company ? await _chunkL5F5ZN5Fjs.CompanyService.update(payload) : await _chunkL5F5ZN5Fjs.CompanyService.create(payload);
9620
+ const updatedCompany = company ? await _chunkAHXRHXZ2js.CompanyService.update(payload) : await _chunkAHXRHXZ2js.CompanyService.create(payload);
9618
9621
  if (onRevalidate) {
9619
- await onRevalidate(generateUrl({ page: _chunkL5F5ZN5Fjs.Modules.Company, id: updatedCompany.id, language: `[locale]` }));
9622
+ await onRevalidate(generateUrl({ page: _chunkAHXRHXZ2js.Modules.Company, id: updatedCompany.id, language: `[locale]` }));
9620
9623
  }
9621
9624
  if (company && propagateChanges) {
9622
9625
  _cookiesnext.setCookie.call(void 0, "reloadData", "true", { path: "/" });
@@ -9634,15 +9637,15 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
9634
9637
  }, "onSubmit");
9635
9638
  _react.useEffect.call(void 0, () => {
9636
9639
  async function fetchFeatures() {
9637
- const allfeatures = await _chunkL5F5ZN5Fjs.FeatureService.findMany({});
9638
- if (hasRole(_chunkOODZEX6Pjs.getRoleId.call(void 0, ).Administrator)) {
9640
+ const allfeatures = await _chunkAHXRHXZ2js.FeatureService.findMany({});
9641
+ if (hasRole(_chunkGP3MDKGEjs.getRoleId.call(void 0, ).Administrator)) {
9639
9642
  setFeatures(allfeatures);
9640
9643
  } else {
9641
9644
  setFeatures(allfeatures.filter((feature) => feature.isCore));
9642
9645
  }
9643
9646
  }
9644
9647
  _chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
9645
- if (open && features.length === 0 && (hasRole(_chunkOODZEX6Pjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkOODZEX6Pjs.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"))
9648
+ if (open && features.length === 0 && (hasRole(_chunkGP3MDKGEjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkGP3MDKGEjs.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"))
9646
9649
  fetchFeatures();
9647
9650
  }, [open, features]);
9648
9651
  _react.useEffect.call(void 0, () => {
@@ -9676,8 +9679,8 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
9676
9679
  "application/images": [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg"]
9677
9680
  }
9678
9681
  };
9679
- const canAccessFeatures = hasRole(_chunkOODZEX6Pjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkOODZEX6Pjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _255 => _255.env, 'access', _256 => _256.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _257 => _257.toLowerCase, 'call', _258 => _258()]) === "true";
9680
- const isAdministrator2 = hasRole(_chunkOODZEX6Pjs.getRoleId.call(void 0, ).Administrator);
9682
+ const canAccessFeatures = hasRole(_chunkGP3MDKGEjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkGP3MDKGEjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _255 => _255.env, 'access', _256 => _256.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _257 => _257.toLowerCase, 'call', _258 => _258()]) === "true";
9683
+ const isAdministrator2 = hasRole(_chunkGP3MDKGEjs.getRoleId.call(void 0, ).Administrator);
9681
9684
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
9682
9685
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!company }),
9683
9686
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -9730,9 +9733,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyEditor, "CompanyEditor");
9730
9733
  function CompaniesList() {
9731
9734
  const t = _nextintl.useTranslations.call(void 0, );
9732
9735
  const data = useDataListRetriever({
9733
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL5F5ZN5Fjs.CompanyService.findMany(params), "retriever"),
9736
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAHXRHXZ2js.CompanyService.findMany(params), "retriever"),
9734
9737
  retrieverParams: {},
9735
- module: _chunkL5F5ZN5Fjs.Modules.Company
9738
+ module: _chunkAHXRHXZ2js.Modules.Company
9736
9739
  });
9737
9740
  const functions = [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, {}, "create-account")];
9738
9741
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -9740,7 +9743,7 @@ function CompaniesList() {
9740
9743
  {
9741
9744
  data,
9742
9745
  fields: ["name" /* name */, "createdAt" /* createdAt */],
9743
- tableGeneratorType: _chunkL5F5ZN5Fjs.Modules.Company,
9746
+ tableGeneratorType: _chunkAHXRHXZ2js.Modules.Company,
9744
9747
  functions,
9745
9748
  title: t(`entities.companies`, { count: 2 })
9746
9749
  }
@@ -9761,14 +9764,14 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
9761
9764
  const t = _nextintl.useTranslations.call(void 0, );
9762
9765
  const { hasPermissionToModule, hasRole } = useCurrentUserContext();
9763
9766
  const [company, setCompany] = _react.useState.call(void 0,
9764
- dehydratedCompany ? _chunkL5F5ZN5Fjs.rehydrate.call(void 0, _chunkL5F5ZN5Fjs.Modules.Company, dehydratedCompany) : void 0
9767
+ dehydratedCompany ? _chunkAHXRHXZ2js.rehydrate.call(void 0, _chunkAHXRHXZ2js.Modules.Company, dehydratedCompany) : void 0
9765
9768
  );
9766
9769
  const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
9767
9770
  const response = [];
9768
9771
  if (company)
9769
9772
  response.push({
9770
9773
  name: company.name,
9771
- href: generateUrl({ page: _chunkL5F5ZN5Fjs.Modules.Company })
9774
+ href: generateUrl({ page: _chunkAHXRHXZ2js.Modules.Company })
9772
9775
  });
9773
9776
  return response;
9774
9777
  }, "breadcrumb");
@@ -9778,9 +9781,9 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
9778
9781
  };
9779
9782
  if (company) response.element = company.name;
9780
9783
  const functions = [];
9781
- if (company && (hasRole(_chunkOODZEX6Pjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkOODZEX6Pjs.getRoleId.call(void 0, ).CompanyAdministrator)) && hasPermissionToModule({ module: _chunkL5F5ZN5Fjs.Modules.Company, action: "delete" /* Delete */ }))
9784
+ if (company && (hasRole(_chunkGP3MDKGEjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkGP3MDKGEjs.getRoleId.call(void 0, ).CompanyAdministrator)) && hasPermissionToModule({ module: _chunkAHXRHXZ2js.Modules.Company, action: "delete" /* Delete */ }))
9782
9785
  functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleter, { company }, "companyDeleter"));
9783
- if (hasRole(_chunkOODZEX6Pjs.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module: _chunkL5F5ZN5Fjs.Modules.Company, action: "update" /* Update */ })) {
9786
+ if (hasRole(_chunkGP3MDKGEjs.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module: _chunkAHXRHXZ2js.Modules.Company, action: "update" /* Update */ })) {
9784
9787
  functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, { company, propagateChanges: setCompany }, "companyEditor"));
9785
9788
  }
9786
9789
  if (functions.length > 0) response.functions = functions;
@@ -9872,7 +9875,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, NotificationMenuItem, "NotificationMenuItem
9872
9875
  var NotificationContext = _react.createContext.call(void 0, void 0);
9873
9876
  var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ children }) => {
9874
9877
  const t = _nextintl.useTranslations.call(void 0, );
9875
- const router = _chunkOODZEX6Pjs.useI18nRouter.call(void 0, );
9878
+ const router = _chunkGP3MDKGEjs.useI18nRouter.call(void 0, );
9876
9879
  const [notifications, setNotifications] = _react.useState.call(void 0, []);
9877
9880
  const [isLoading, setIsLoading] = _react.useState.call(void 0, false);
9878
9881
  const [error, setError] = _react.useState.call(void 0, null);
@@ -9899,7 +9902,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
9899
9902
  setIsLoading(true);
9900
9903
  setError(null);
9901
9904
  try {
9902
- const fetchedNotifications = await _chunkL5F5ZN5Fjs.NotificationService.findMany({});
9905
+ const fetchedNotifications = await _chunkAHXRHXZ2js.NotificationService.findMany({});
9903
9906
  setNotifications(fetchedNotifications);
9904
9907
  setLastLoaded(Date.now());
9905
9908
  } catch (error2) {
@@ -9911,8 +9914,8 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
9911
9914
  }, []);
9912
9915
  _react.useEffect.call(void 0, () => {
9913
9916
  if (hasInitiallyLoaded || !currentUser) return;
9914
- if (_chunkOODZEX6Pjs.isRolesConfigured.call(void 0, )) {
9915
- const isAdmin = _optionalChain([currentUser, 'access', _266 => _266.roles, 'optionalAccess', _267 => _267.some, 'call', _268 => _268((role) => role.id === _chunkOODZEX6Pjs.getRoleId.call(void 0, ).Administrator)]);
9917
+ if (_chunkGP3MDKGEjs.isRolesConfigured.call(void 0, )) {
9918
+ const isAdmin = _optionalChain([currentUser, 'access', _266 => _266.roles, 'optionalAccess', _267 => _267.some, 'call', _268 => _268((role) => role.id === _chunkGP3MDKGEjs.getRoleId.call(void 0, ).Administrator)]);
9916
9919
  if (isAdmin) {
9917
9920
  setHasInitiallyLoaded(true);
9918
9921
  return;
@@ -9927,7 +9930,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
9927
9930
  try {
9928
9931
  const data = {
9929
9932
  data: ids.map((id) => ({
9930
- type: _chunkL5F5ZN5Fjs.Modules.Notification.name,
9933
+ type: _chunkAHXRHXZ2js.Modules.Notification.name,
9931
9934
  id,
9932
9935
  attributes: {
9933
9936
  isRead: true
@@ -9936,8 +9939,8 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
9936
9939
  relationships: {}
9937
9940
  }))
9938
9941
  };
9939
- await _chunkL5F5ZN5Fjs.NotificationService.markAsRead({ data });
9940
- const allNotifications = await _chunkL5F5ZN5Fjs.NotificationService.findMany({});
9942
+ await _chunkAHXRHXZ2js.NotificationService.markAsRead({ data });
9943
+ const allNotifications = await _chunkAHXRHXZ2js.NotificationService.findMany({});
9941
9944
  setNotifications(allNotifications);
9942
9945
  setLastLoaded(Date.now());
9943
9946
  } catch (error2) {
@@ -10235,18 +10238,18 @@ var RoleProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ child
10235
10238
  const generateUrl = usePageUrlGenerator();
10236
10239
  const t = _nextintl.useTranslations.call(void 0, );
10237
10240
  const [role, setRole] = _react.useState.call(void 0,
10238
- dehydratedRole ? _chunkL5F5ZN5Fjs.rehydrate.call(void 0, _chunkL5F5ZN5Fjs.Modules.Role, dehydratedRole) : void 0
10241
+ dehydratedRole ? _chunkAHXRHXZ2js.rehydrate.call(void 0, _chunkAHXRHXZ2js.Modules.Role, dehydratedRole) : void 0
10239
10242
  );
10240
10243
  const breadcrumb = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
10241
10244
  const response = [];
10242
10245
  response.push({
10243
10246
  name: t(`entities.roles`, { count: 2 }),
10244
- href: generateUrl({ page: _chunkL5F5ZN5Fjs.Modules.Role })
10247
+ href: generateUrl({ page: _chunkAHXRHXZ2js.Modules.Role })
10245
10248
  });
10246
10249
  if (role)
10247
10250
  response.push({
10248
10251
  name: role.name,
10249
- href: generateUrl({ page: _chunkL5F5ZN5Fjs.Modules.Role, id: role.id })
10252
+ href: generateUrl({ page: _chunkAHXRHXZ2js.Modules.Role, id: role.id })
10250
10253
  });
10251
10254
  return response;
10252
10255
  }, "breadcrumb");
@@ -10365,7 +10368,7 @@ function usePageTracker() {
10365
10368
  const moduleName = pathParts[0];
10366
10369
  const entityId = pathParts.length > 1 ? pathParts[1] : null;
10367
10370
  if (!entityId) return;
10368
- const trackablePages = _chunkOODZEX6Pjs.getTrackablePages.call(void 0, );
10371
+ const trackablePages = _chunkGP3MDKGEjs.getTrackablePages.call(void 0, );
10369
10372
  const foundModule = trackablePages.find((mod) => mod.pageUrl === `/${moduleName}`);
10370
10373
  if (!foundModule) return;
10371
10374
  const baseUrl = `/${moduleName}/${entityId}`;
@@ -10412,7 +10415,7 @@ function usePushNotifications() {
10412
10415
  try {
10413
10416
  const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _280 => _280.id])}`;
10414
10417
  const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
10415
- const registration = await navigator.serviceWorker.register(`${_chunkOODZEX6Pjs.getAppUrl.call(void 0, )}/sw.js`);
10418
+ const registration = await navigator.serviceWorker.register(`${_chunkGP3MDKGEjs.getAppUrl.call(void 0, )}/sw.js`);
10416
10419
  let permission = Notification.permission;
10417
10420
  if (permission === "default") {
10418
10421
  permission = await Notification.requestPermission();
@@ -10437,7 +10440,7 @@ function usePushNotifications() {
10437
10440
  };
10438
10441
  const subscriptionHash = btoa(JSON.stringify(plainSubscription));
10439
10442
  if (lastRegisteredSubscription !== subscriptionHash) {
10440
- await _chunkL5F5ZN5Fjs.PushService.register({ data: plainSubscription });
10443
+ await _chunkAHXRHXZ2js.PushService.register({ data: plainSubscription });
10441
10444
  sessionStorage.setItem(sessionKey, subscriptionHash);
10442
10445
  }
10443
10446
  } catch (error) {
@@ -10445,7 +10448,7 @@ function usePushNotifications() {
10445
10448
  }
10446
10449
  }
10447
10450
  }, "register");
10448
- if (currentUser && !hasRole(_chunkOODZEX6Pjs.getRoleId.call(void 0, ).Administrator)) register();
10451
+ if (currentUser && !hasRole(_chunkGP3MDKGEjs.getRoleId.call(void 0, ).Administrator)) register();
10449
10452
  }, [currentUser]);
10450
10453
  }
10451
10454
  _chunk7QVYU63Ejs.__name.call(void 0, usePushNotifications, "usePushNotifications");
@@ -10520,7 +10523,7 @@ function useSocket({ token }) {
10520
10523
  });
10521
10524
  }, "handleMessage");
10522
10525
  const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
10523
- const notification = _chunkL5F5ZN5Fjs.rehydrate.call(void 0, _chunkL5F5ZN5Fjs.Modules.Notification, data);
10526
+ const notification = _chunkAHXRHXZ2js.rehydrate.call(void 0, _chunkAHXRHXZ2js.Modules.Notification, data);
10524
10527
  if (notification) {
10525
10528
  setSocketNotifications((prev) => {
10526
10529
  const newNotifications = [...prev, notification];
@@ -10635,12 +10638,12 @@ function ContentTitle({ module, type, element, functions, className, prioritizeF
10635
10638
  setClientFunctions(functions);
10636
10639
  }, [functions]);
10637
10640
  if (!element) return null;
10638
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkL5F5ZN5Fjs.cn.call(void 0, `mb-4 flex items-center justify-between gap-x-4 w-full`, className), children: [
10639
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkL5F5ZN5Fjs.cn.call(void 0, "flex flex-col", prioritizeFunctions ? "min-w-0 shrink" : "w-full"), children: [
10641
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkAHXRHXZ2js.cn.call(void 0, `mb-4 flex items-center justify-between gap-x-4 w-full`, className), children: [
10642
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkAHXRHXZ2js.cn.call(void 0, "flex flex-col", prioritizeFunctions ? "min-w-0 shrink" : "w-full"), children: [
10640
10643
  type && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
10641
10644
  "div",
10642
10645
  {
10643
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
10646
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
10644
10647
  "text-muted-foreground text-xl font-light flex gap-x-2 items-center",
10645
10648
  prioritizeFunctions && "shrink-0 whitespace-nowrap"
10646
10649
  ),
@@ -10650,9 +10653,9 @@ function ContentTitle({ module, type, element, functions, className, prioritizeF
10650
10653
  ]
10651
10654
  }
10652
10655
  ),
10653
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkL5F5ZN5Fjs.cn.call(void 0, "text-primary text-3xl font-semibold", prioritizeFunctions ? "truncate" : "w-full"), children: element })
10656
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkAHXRHXZ2js.cn.call(void 0, "text-primary text-3xl font-semibold", prioritizeFunctions ? "truncate" : "w-full"), children: element })
10654
10657
  ] }),
10655
- isClient && clientFunctions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkL5F5ZN5Fjs.cn.call(void 0, "flex flex-row items-center justify-start", prioritizeFunctions && "shrink-0"), children: clientFunctions })
10658
+ isClient && clientFunctions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkAHXRHXZ2js.cn.call(void 0, "flex flex-row items-center justify-start", prioritizeFunctions && "shrink-0"), children: clientFunctions })
10656
10659
  ] });
10657
10660
  }
10658
10661
  _chunk7QVYU63Ejs.__name.call(void 0, ContentTitle, "ContentTitle");
@@ -10762,7 +10765,7 @@ function PageContainer({ children, testId, className }) {
10762
10765
  const headerChildren = useHeaderChildren();
10763
10766
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex h-full w-full flex-col`, "data-testid": testId, children: [
10764
10767
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header, { children: headerChildren }),
10765
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className: _chunkL5F5ZN5Fjs.cn.call(void 0, `flex w-full flex-1 flex-col gap-y-4 pt-4 pl-4 pr-0 pb-20`, className), children })
10768
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className: _chunkAHXRHXZ2js.cn.call(void 0, `flex w-full flex-1 flex-col gap-y-4 pt-4 pl-4 pr-0 pb-20`, className), children })
10766
10769
  ] });
10767
10770
  }
10768
10771
  _chunk7QVYU63Ejs.__name.call(void 0, PageContainer, "PageContainer");
@@ -10871,7 +10874,7 @@ function TabsContainer({
10871
10874
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10872
10875
  TabsList,
10873
10876
  {
10874
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
10877
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
10875
10878
  `${style ? `my-4 flex w-full justify-start rounded-none border-b bg-transparent pb-0` : ``}`,
10876
10879
  tabsListClassName
10877
10880
  ),
@@ -10879,7 +10882,7 @@ function TabsContainer({
10879
10882
  TabsTrigger,
10880
10883
  {
10881
10884
  value: tab.label,
10882
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
10885
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
10883
10886
  `${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`}`,
10884
10887
  tabsTriggerClassName
10885
10888
  ),
@@ -10899,7 +10902,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, TabsContainer, "TabsContainer");
10899
10902
  // src/components/contents/AttributeElement.tsx
10900
10903
 
10901
10904
  function AttributeElement({ inline, title, value, className }) {
10902
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkL5F5ZN5Fjs.cn.call(void 0, `flex ${inline === true ? "flex-row" : "flex-col"} my-1 justify-start`, className), children: [
10905
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkAHXRHXZ2js.cn.call(void 0, `flex ${inline === true ? "flex-row" : "flex-col"} my-1 justify-start`, className), children: [
10903
10906
  title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${inline === true ? "min-w-48 pr-4" : "w-full"} text-sm font-semibold`, children: title }),
10904
10907
  value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col text-sm", children: value })
10905
10908
  ] });
@@ -10922,7 +10925,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AllowedUsersDetails, "AllowedUsersDetails")
10922
10925
  var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
10923
10926
 
10924
10927
 
10925
- var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-C7CVGQDG.js"))), {
10928
+ var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-JYQVZHSR.js"))), {
10926
10929
  ssr: false
10927
10930
  });
10928
10931
  var BlockNoteEditorContainer = React3.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
@@ -10974,7 +10977,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, PageContainerContentDetails, "PageContainer
10974
10977
 
10975
10978
  function PageContentContainer({ header, details, footer, content, fullBleed }) {
10976
10979
  const [mounted, setMounted] = _react.useState.call(void 0, false);
10977
- const isMobile = _chunkL5F5ZN5Fjs.useIsMobile.call(void 0, );
10980
+ const isMobile = _chunkAHXRHXZ2js.useIsMobile.call(void 0, );
10978
10981
  _react.useEffect.call(void 0, () => {
10979
10982
  setMounted(true);
10980
10983
  }, []);
@@ -11021,13 +11024,13 @@ function PageContentContainer({ header, details, footer, content, fullBleed }) {
11021
11024
  {
11022
11025
  id: "right-panel",
11023
11026
  defaultSize: rightPanelDefaultSize,
11024
- className: _chunkL5F5ZN5Fjs.cn.call(void 0, "w-full", isMobile ? "pt-4" : ""),
11025
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkL5F5ZN5Fjs.cn.call(void 0, "h-full overflow-x-hidden overflow-y-auto pt-4", fullBleed ? "" : "px-4 pb-20"), children: content })
11027
+ className: _chunkAHXRHXZ2js.cn.call(void 0, "w-full", isMobile ? "pt-4" : ""),
11028
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkAHXRHXZ2js.cn.call(void 0, "h-full overflow-x-hidden overflow-y-auto pt-4", fullBleed ? "" : "px-4 pb-20"), children: content })
11026
11029
  }
11027
11030
  )
11028
11031
  ]
11029
11032
  }
11030
- ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkL5F5ZN5Fjs.cn.call(void 0, "h-full overflow-x-hidden overflow-y-auto pt-4", fullBleed ? "" : "px-4 pb-20"), children: content }) })
11033
+ ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkAHXRHXZ2js.cn.call(void 0, "h-full overflow-x-hidden overflow-y-auto pt-4", fullBleed ? "" : "px-4 pb-20"), children: content }) })
11031
11034
  ] });
11032
11035
  }
11033
11036
  _chunk7QVYU63Ejs.__name.call(void 0, PageContentContainer, "PageContentContainer");
@@ -11325,14 +11328,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, useJsonApiMutation, "useJsonApiMutation");
11325
11328
  function useRehydration(classKey, data) {
11326
11329
  return _react.useMemo.call(void 0, () => {
11327
11330
  if (!data) return null;
11328
- return _chunkL5F5ZN5Fjs.RehydrationFactory.rehydrate(classKey, data);
11331
+ return _chunkAHXRHXZ2js.RehydrationFactory.rehydrate(classKey, data);
11329
11332
  }, [classKey, data]);
11330
11333
  }
11331
11334
  _chunk7QVYU63Ejs.__name.call(void 0, useRehydration, "useRehydration");
11332
11335
  function useRehydrationList(classKey, data) {
11333
11336
  return _react.useMemo.call(void 0, () => {
11334
11337
  if (!data || data.length === 0) return [];
11335
- return _chunkL5F5ZN5Fjs.RehydrationFactory.rehydrateList(classKey, data);
11338
+ return _chunkAHXRHXZ2js.RehydrationFactory.rehydrateList(classKey, data);
11336
11339
  }, [classKey, data]);
11337
11340
  }
11338
11341
  _chunk7QVYU63Ejs.__name.call(void 0, useRehydrationList, "useRehydrationList");
@@ -11372,11 +11375,11 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
11372
11375
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11373
11376
  Link,
11374
11377
  {
11375
- href: hasRole(_chunkOODZEX6Pjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
11378
+ href: hasRole(_chunkGP3MDKGEjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
11376
11379
  page: "/administration",
11377
- id: _optionalChain([_chunkL5F5ZN5Fjs.Modules, 'access', _306 => _306.Company, 'access', _307 => _307.pageUrl, 'optionalAccess', _308 => _308.substring, 'call', _309 => _309(1)]),
11380
+ id: _optionalChain([_chunkAHXRHXZ2js.Modules, 'access', _306 => _306.Company, 'access', _307 => _307.pageUrl, 'optionalAccess', _308 => _308.substring, 'call', _309 => _309(1)]),
11378
11381
  childPage: company.id
11379
- }) : generateUrl({ page: _chunkL5F5ZN5Fjs.Modules.Company, id: company.id }),
11382
+ }) : generateUrl({ page: _chunkAHXRHXZ2js.Modules.Company, id: company.id }),
11380
11383
  children: row.getValue("name")
11381
11384
  }
11382
11385
  );
@@ -11400,8 +11403,8 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
11400
11403
  var TRIAL_DAYS = 14;
11401
11404
  var GRACE_DAYS = 3;
11402
11405
  var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
11403
- if (!currentUser || !_chunkOODZEX6Pjs.isRolesConfigured.call(void 0, )) return false;
11404
- const adminRoleId = _chunkOODZEX6Pjs.getRoleId.call(void 0, ).Administrator;
11406
+ if (!currentUser || !_chunkGP3MDKGEjs.isRolesConfigured.call(void 0, )) return false;
11407
+ const adminRoleId = _chunkGP3MDKGEjs.getRoleId.call(void 0, ).Administrator;
11405
11408
  return !!_optionalChain([currentUser, 'access', _312 => _312.roles, 'optionalAccess', _313 => _313.some, 'call', _314 => _314((role) => role.id === adminRoleId)]);
11406
11409
  }, "isAdministrator");
11407
11410
  function useSubscriptionStatus() {
@@ -11491,7 +11494,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
11491
11494
  header: t(`role.fields.name.label`),
11492
11495
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
11493
11496
  const role = row.original.jsonApiData;
11494
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunkL5F5ZN5Fjs.Modules.Role, id: role.id }), children: row.getValue("name") });
11497
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunkAHXRHXZ2js.Modules.Role, id: role.id }), children: row.getValue("name") });
11495
11498
  }, "cell"),
11496
11499
  enableSorting: false,
11497
11500
  enableHiding: false
@@ -11528,7 +11531,7 @@ var useUserSearch = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
11528
11531
  if (search === searchQueryRef.current && users.length > 0) return;
11529
11532
  setIsLoading(true);
11530
11533
  searchQueryRef.current = search;
11531
- const fetchedUsers = await _chunkL5F5ZN5Fjs.UserService.findMany({ search, fetchAll: true });
11534
+ const fetchedUsers = await _chunkAHXRHXZ2js.UserService.findMany({ search, fetchAll: true });
11532
11535
  setUsers(fetchedUsers);
11533
11536
  } catch (error) {
11534
11537
  console.error("Failed to load users:", error);
@@ -11594,8 +11597,8 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
11594
11597
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
11595
11598
  Link,
11596
11599
  {
11597
- href: generateUrl({ page: _chunkL5F5ZN5Fjs.Modules.User, id: user.id }),
11598
- className: _chunkL5F5ZN5Fjs.cn.call(void 0,
11600
+ href: generateUrl({ page: _chunkAHXRHXZ2js.Modules.User, id: user.id }),
11601
+ className: _chunkAHXRHXZ2js.cn.call(void 0,
11599
11602
  `flex items-center justify-start gap-2`,
11600
11603
  user.isDeleted || !user.isActivated ? "text-muted-foreground italic" : ""
11601
11604
  ),
@@ -11689,11 +11692,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
11689
11692
  header: t(`content.fields.name.label`),
11690
11693
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
11691
11694
  const content = row.original.jsonApiData;
11692
- const contentModule = content.contentType ? _chunkL5F5ZN5Fjs.Modules.findByModelName(content.contentType) : void 0;
11695
+ const contentModule = content.contentType ? _chunkAHXRHXZ2js.Modules.findByModelName(content.contentType) : void 0;
11693
11696
  const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
11694
11697
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
11695
11698
  /* @__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: [
11696
- contentModule && _chunkL5F5ZN5Fjs.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
11699
+ contentModule && _chunkAHXRHXZ2js.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
11697
11700
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: link, children: content.name })
11698
11701
  ] }) }),
11699
11702
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: content.tldr })
@@ -11830,7 +11833,7 @@ function useOAuthClients() {
11830
11833
  setIsLoading(true);
11831
11834
  setError(null);
11832
11835
  try {
11833
- const fetchedClients = await _chunkL5F5ZN5Fjs.OAuthService.listClients();
11836
+ const fetchedClients = await _chunkAHXRHXZ2js.OAuthService.listClients();
11834
11837
  setClients(fetchedClients);
11835
11838
  } catch (err) {
11836
11839
  console.error("[useOAuthClients] Failed to fetch clients:", err);
@@ -11847,7 +11850,7 @@ function useOAuthClients() {
11847
11850
  setIsLoading(true);
11848
11851
  setError(null);
11849
11852
  try {
11850
- const result = await _chunkL5F5ZN5Fjs.OAuthService.createClient(data);
11853
+ const result = await _chunkAHXRHXZ2js.OAuthService.createClient(data);
11851
11854
  addClient(result.client);
11852
11855
  if (result.clientSecret) {
11853
11856
  setNewClientSecret({
@@ -11894,7 +11897,7 @@ function useOAuthClient(clientId) {
11894
11897
  setIsLoading(true);
11895
11898
  setError(null);
11896
11899
  try {
11897
- const fetched = await _chunkL5F5ZN5Fjs.OAuthService.getClient({ clientId });
11900
+ const fetched = await _chunkAHXRHXZ2js.OAuthService.getClient({ clientId });
11898
11901
  setFetchedClient(fetched);
11899
11902
  } catch (err) {
11900
11903
  console.error("[useOAuthClient] Failed to fetch client:", err);
@@ -11914,7 +11917,7 @@ function useOAuthClient(clientId) {
11914
11917
  setIsLoading(true);
11915
11918
  setError(null);
11916
11919
  try {
11917
- const updated = await _chunkL5F5ZN5Fjs.OAuthService.updateClient({ clientId, data });
11920
+ const updated = await _chunkAHXRHXZ2js.OAuthService.updateClient({ clientId, data });
11918
11921
  updateClientInStore(updated);
11919
11922
  setFetchedClient(updated);
11920
11923
  } catch (err) {
@@ -11933,7 +11936,7 @@ function useOAuthClient(clientId) {
11933
11936
  setIsLoading(true);
11934
11937
  setError(null);
11935
11938
  try {
11936
- await _chunkL5F5ZN5Fjs.OAuthService.deleteClient({ clientId });
11939
+ await _chunkAHXRHXZ2js.OAuthService.deleteClient({ clientId });
11937
11940
  removeClientFromStore(clientId);
11938
11941
  } catch (err) {
11939
11942
  console.error("[useOAuthClient] Failed to delete client:", err);
@@ -11949,7 +11952,7 @@ function useOAuthClient(clientId) {
11949
11952
  setIsLoading(true);
11950
11953
  setError(null);
11951
11954
  try {
11952
- const result = await _chunkL5F5ZN5Fjs.OAuthService.regenerateSecret({ clientId });
11955
+ const result = await _chunkAHXRHXZ2js.OAuthService.regenerateSecret({ clientId });
11953
11956
  setNewClientSecret({
11954
11957
  clientId,
11955
11958
  secret: result.clientSecret
@@ -11993,7 +11996,7 @@ function useOAuthConsent(params) {
11993
11996
  setIsLoading(true);
11994
11997
  setError(null);
11995
11998
  try {
11996
- const info = await _chunkL5F5ZN5Fjs.OAuthService.getAuthorizationInfo(params);
11999
+ const info = await _chunkAHXRHXZ2js.OAuthService.getAuthorizationInfo(params);
11997
12000
  setClientInfo(info);
11998
12001
  } catch (err) {
11999
12002
  console.error("[useOAuthConsent] Failed to fetch authorization info:", err);
@@ -12015,7 +12018,7 @@ function useOAuthConsent(params) {
12015
12018
  setIsSubmitting(true);
12016
12019
  setError(null);
12017
12020
  try {
12018
- const result = await _chunkL5F5ZN5Fjs.OAuthService.approveAuthorization(params);
12021
+ const result = await _chunkAHXRHXZ2js.OAuthService.approveAuthorization(params);
12019
12022
  if (result.redirectUrl) {
12020
12023
  window.location.href = result.redirectUrl;
12021
12024
  }
@@ -12029,7 +12032,7 @@ function useOAuthConsent(params) {
12029
12032
  setIsSubmitting(true);
12030
12033
  setError(null);
12031
12034
  try {
12032
- const result = await _chunkL5F5ZN5Fjs.OAuthService.denyAuthorization(params);
12035
+ const result = await _chunkAHXRHXZ2js.OAuthService.denyAuthorization(params);
12033
12036
  if (result.redirectUrl) {
12034
12037
  window.location.href = result.redirectUrl;
12035
12038
  }
@@ -12282,18 +12285,49 @@ _chunk7QVYU63Ejs.__name.call(void 0, GdprConsentSection, "GdprConsentSection");
12282
12285
 
12283
12286
  // src/features/auth/components/forms/Register.tsx
12284
12287
 
12288
+ var REFERRAL_COOKIE_NAME = "referral_code";
12289
+ function getReferralCode() {
12290
+ if (typeof document === "undefined") return null;
12291
+ const cookies = document.cookie.split("; ");
12292
+ for (const cookie of cookies) {
12293
+ const [name, value] = cookie.split("=");
12294
+ if (name === REFERRAL_COOKIE_NAME && value) {
12295
+ return decodeURIComponent(value);
12296
+ }
12297
+ }
12298
+ return null;
12299
+ }
12300
+ _chunk7QVYU63Ejs.__name.call(void 0, getReferralCode, "getReferralCode");
12301
+ function clearReferralCode() {
12302
+ if (typeof document === "undefined") return;
12303
+ document.cookie = `${REFERRAL_COOKIE_NAME}=; path=/; max-age=0; SameSite=Lax`;
12304
+ }
12305
+ _chunk7QVYU63Ejs.__name.call(void 0, clearReferralCode, "clearReferralCode");
12306
+ function buildOAuthQueryParams(inviteCode, referralCode) {
12307
+ const params = new URLSearchParams();
12308
+ if (inviteCode) params.set("invite", inviteCode);
12309
+ if (referralCode) params.set("referral", referralCode);
12310
+ return params.toString() ? `?${params.toString()}` : "";
12311
+ }
12312
+ _chunk7QVYU63Ejs.__name.call(void 0, buildOAuthQueryParams, "buildOAuthQueryParams");
12285
12313
  function Register() {
12286
12314
  const t = _nextintl.useTranslations.call(void 0, );
12287
12315
  const { setComponentType } = useAuthContext();
12288
12316
  const searchParams = _navigation.useSearchParams.call(void 0, );
12289
12317
  const inviteCode = searchParams.get("invite");
12290
- const registrationMode = _chunkOODZEX6Pjs.getRegistrationMode.call(void 0, );
12318
+ const registrationMode = _chunkGP3MDKGEjs.getRegistrationMode.call(void 0, );
12291
12319
  const [showConfirmation, setShowConfirmation] = _react.useState.call(void 0, false);
12292
12320
  const [inviteValidated, setInviteValidated] = _react.useState.call(void 0, false);
12293
12321
  const [inviteError, setInviteError] = _react.useState.call(void 0, "");
12294
12322
  const [isValidatingInvite, setIsValidatingInvite] = _react.useState.call(void 0,
12295
12323
  registrationMode === "waitlist" && !!inviteCode
12296
12324
  );
12325
+ const [referralCode, setReferralCode2] = _react.useState.call(void 0, null);
12326
+ _react.useEffect.call(void 0, () => {
12327
+ const code = getReferralCode();
12328
+ console.log("[REFERRAL] Register.tsx - cookie value on mount:", code);
12329
+ setReferralCode2(code);
12330
+ }, []);
12297
12331
  const formSchema = _zod3.z.object({
12298
12332
  company: _zod3.z.string().min(1, {
12299
12333
  message: t(`common.errors.missing_company_name`)
@@ -12330,7 +12364,7 @@ function Register() {
12330
12364
  }
12331
12365
  setIsValidatingInvite(true);
12332
12366
  try {
12333
- const result = await _chunkL5F5ZN5Fjs.WaitlistService.validateInvite(inviteCode);
12367
+ const result = await _chunkAHXRHXZ2js.WaitlistService.validateInvite(inviteCode);
12334
12368
  if (result && result.valid) {
12335
12369
  setInviteValidated(true);
12336
12370
  form.setValue("email", result.email);
@@ -12349,6 +12383,7 @@ function Register() {
12349
12383
  }, [registrationMode, inviteCode, form, t]);
12350
12384
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
12351
12385
  try {
12386
+ console.log("[REFERRAL] Register.tsx - referralCode at submit:", referralCode);
12352
12387
  const payload = {
12353
12388
  id: _uuid.v4.call(void 0, ),
12354
12389
  companyName: values.company,
@@ -12358,9 +12393,12 @@ function Register() {
12358
12393
  termsAcceptedAt: (/* @__PURE__ */ new Date()).toISOString(),
12359
12394
  marketingConsent: _nullishCoalesce(values.marketingConsent, () => ( false)),
12360
12395
  marketingConsentAt: values.marketingConsent ? (/* @__PURE__ */ new Date()).toISOString() : null,
12361
- inviteCode: _nullishCoalesce(inviteCode, () => ( void 0))
12396
+ inviteCode: _nullishCoalesce(inviteCode, () => ( void 0)),
12397
+ referralCode: _nullishCoalesce(referralCode, () => ( void 0))
12362
12398
  };
12363
- await _chunkL5F5ZN5Fjs.AuthService.register(payload);
12399
+ console.log("[REFERRAL] Register.tsx - payload.referralCode:", payload.referralCode);
12400
+ await _chunkAHXRHXZ2js.AuthService.register(payload);
12401
+ clearReferralCode();
12364
12402
  setShowConfirmation(true);
12365
12403
  } catch (e) {
12366
12404
  errorToast({ error: e });
@@ -12457,16 +12495,16 @@ function Register() {
12457
12495
  ),
12458
12496
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GdprConsentSection, { form }),
12459
12497
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "mt-4 w-full", type: "submit", children: t(`auth.buttons.register`) }),
12460
- registrationMode === "waitlist" && inviteValidated && (_chunkOODZEX6Pjs.isGoogleAuthEnabled.call(void 0, ) || _chunkOODZEX6Pjs.isDiscordAuthEnabled.call(void 0, )) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4 pt-4", children: [
12498
+ (registrationMode !== "waitlist" || inviteValidated) && (_chunkGP3MDKGEjs.isGoogleAuthEnabled.call(void 0, ) || _chunkGP3MDKGEjs.isDiscordAuthEnabled.call(void 0, )) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4 pt-4", children: [
12461
12499
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
12462
12500
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-full border-t" }) }),
12463
12501
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative flex justify-center text-xs uppercase", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "bg-card px-2 text-muted-foreground", children: t("auth.buttons.or") }) })
12464
12502
  ] }),
12465
12503
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
12466
- _chunkOODZEX6Pjs.isGoogleAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12504
+ _chunkGP3MDKGEjs.isGoogleAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12467
12505
  Link,
12468
12506
  {
12469
- href: `${_chunkOODZEX6Pjs.getApiUrl.call(void 0, )}auth/google${inviteCode ? `?invite=${inviteCode}` : ""}`,
12507
+ href: `${_chunkGP3MDKGEjs.getApiUrl.call(void 0, )}auth/google${buildOAuthQueryParams(inviteCode, referralCode)}`,
12470
12508
  className: "flex w-full",
12471
12509
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
12472
12510
  Button,
@@ -12511,10 +12549,10 @@ function Register() {
12511
12549
  )
12512
12550
  }
12513
12551
  ),
12514
- _chunkOODZEX6Pjs.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12552
+ _chunkGP3MDKGEjs.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12515
12553
  Link,
12516
12554
  {
12517
- href: `${_chunkOODZEX6Pjs.getApiUrl.call(void 0, )}auth/discord${inviteCode ? `?invite=${inviteCode}` : ""}`,
12555
+ href: `${_chunkGP3MDKGEjs.getApiUrl.call(void 0, )}auth/discord${buildOAuthQueryParams(inviteCode, referralCode)}`,
12518
12556
  className: "flex w-full",
12519
12557
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Button, { className: "w-full", variant: "outline", type: "button", children: [
12520
12558
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { className: "mr-2 h-5 w-5", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z" }) }),
@@ -12639,7 +12677,7 @@ function BackupCodesDialog({ remainingCodes, onRegenerate, trigger }) {
12639
12677
  const handleGenerate = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
12640
12678
  setIsLoading(true);
12641
12679
  try {
12642
- const newCodes = await _chunkL5F5ZN5Fjs.TwoFactorService.generateBackupCodes();
12680
+ const newCodes = await _chunkAHXRHXZ2js.TwoFactorService.generateBackupCodes();
12643
12681
  setCodes(newCodes);
12644
12682
  setShowCodes(true);
12645
12683
  onRegenerate();
@@ -12652,7 +12690,7 @@ function BackupCodesDialog({ remainingCodes, onRegenerate, trigger }) {
12652
12690
  const handleCopyAll = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
12653
12691
  const text = codes.join("\n");
12654
12692
  await navigator.clipboard.writeText(text);
12655
- _chunkL5F5ZN5Fjs.showToast.call(void 0, t("auth.two_factor.codes_copied"));
12693
+ _chunkAHXRHXZ2js.showToast.call(void 0, t("auth.two_factor.codes_copied"));
12656
12694
  }, "handleCopyAll");
12657
12695
  const handleDownload = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
12658
12696
  const text = `Backup Codes
@@ -12807,8 +12845,8 @@ function DisableTwoFactorDialog({ onSuccess, trigger }) {
12807
12845
  setIsLoading(true);
12808
12846
  setError(void 0);
12809
12847
  try {
12810
- await _chunkL5F5ZN5Fjs.TwoFactorService.disable({ code });
12811
- _chunkL5F5ZN5Fjs.showToast.call(void 0, t("auth.two_factor.disabled_success"));
12848
+ await _chunkAHXRHXZ2js.TwoFactorService.disable({ code });
12849
+ _chunkAHXRHXZ2js.showToast.call(void 0, t("auth.two_factor.disabled_success"));
12812
12850
  setOpen(false);
12813
12851
  onSuccess();
12814
12852
  } catch (err) {
@@ -12854,8 +12892,8 @@ function PasskeyList({ passkeys, onRefresh }) {
12854
12892
  const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (passkey) => {
12855
12893
  setIsLoading(true);
12856
12894
  try {
12857
- await _chunkL5F5ZN5Fjs.TwoFactorService.deletePasskey({ id: passkey.id });
12858
- _chunkL5F5ZN5Fjs.showToast.call(void 0, t("common.success"), {
12895
+ await _chunkAHXRHXZ2js.TwoFactorService.deletePasskey({ id: passkey.id });
12896
+ _chunkAHXRHXZ2js.showToast.call(void 0, t("common.success"), {
12859
12897
  description: t("auth.two_factor.passkey_deleted")
12860
12898
  });
12861
12899
  onRefresh();
@@ -12872,11 +12910,11 @@ function PasskeyList({ passkeys, onRefresh }) {
12872
12910
  if (!selectedPasskey || !newName.trim()) return;
12873
12911
  setIsLoading(true);
12874
12912
  try {
12875
- await _chunkL5F5ZN5Fjs.TwoFactorService.renamePasskey({
12913
+ await _chunkAHXRHXZ2js.TwoFactorService.renamePasskey({
12876
12914
  id: selectedPasskey.id,
12877
12915
  name: newName.trim()
12878
12916
  });
12879
- _chunkL5F5ZN5Fjs.showToast.call(void 0, t("common.success"), {
12917
+ _chunkAHXRHXZ2js.showToast.call(void 0, t("common.success"), {
12880
12918
  description: t("auth.two_factor.passkey_renamed")
12881
12919
  });
12882
12920
  setRenameDialogOpen(false);
@@ -12976,23 +13014,23 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
12976
13014
  if (!name.trim()) return;
12977
13015
  setIsLoading(true);
12978
13016
  try {
12979
- const registrationData = await _chunkL5F5ZN5Fjs.TwoFactorService.getPasskeyRegistrationOptions({
13017
+ const registrationData = await _chunkAHXRHXZ2js.TwoFactorService.getPasskeyRegistrationOptions({
12980
13018
  id: _uuid.v4.call(void 0, ),
12981
13019
  userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _346 => _346.email]), () => ( "")),
12982
13020
  userDisplayName: _optionalChain([currentUser, 'optionalAccess', _347 => _347.name])
12983
13021
  });
12984
13022
  const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
12985
- await _chunkL5F5ZN5Fjs.TwoFactorService.verifyPasskeyRegistration({
13023
+ await _chunkAHXRHXZ2js.TwoFactorService.verifyPasskeyRegistration({
12986
13024
  id: _uuid.v4.call(void 0, ),
12987
13025
  pendingId: registrationData.pendingId,
12988
13026
  name: name.trim(),
12989
13027
  response: credential
12990
13028
  });
12991
- const status = await _chunkL5F5ZN5Fjs.TwoFactorService.getStatus();
13029
+ const status = await _chunkAHXRHXZ2js.TwoFactorService.getStatus();
12992
13030
  if (!status.isEnabled) {
12993
- await _chunkL5F5ZN5Fjs.TwoFactorService.enable({ id: _uuid.v4.call(void 0, ), preferredMethod: "passkey" });
13031
+ await _chunkAHXRHXZ2js.TwoFactorService.enable({ id: _uuid.v4.call(void 0, ), preferredMethod: "passkey" });
12994
13032
  }
12995
- _chunkL5F5ZN5Fjs.showToast.call(void 0, t("common.success"), {
13033
+ _chunkAHXRHXZ2js.showToast.call(void 0, t("common.success"), {
12996
13034
  description: t("auth.two_factor.passkey_registered")
12997
13035
  });
12998
13036
  setName("");
@@ -13043,8 +13081,8 @@ function TotpAuthenticatorList({ authenticators, onDelete }) {
13043
13081
  const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (id) => {
13044
13082
  setDeletingId(id);
13045
13083
  try {
13046
- await _chunkL5F5ZN5Fjs.TwoFactorService.deleteTotpAuthenticator({ id });
13047
- _chunkL5F5ZN5Fjs.showToast.call(void 0, t("common.success"), {
13084
+ await _chunkAHXRHXZ2js.TwoFactorService.deleteTotpAuthenticator({ id });
13085
+ _chunkAHXRHXZ2js.showToast.call(void 0, t("common.success"), {
13048
13086
  description: t("auth.two_factor.authenticator_removed")
13049
13087
  });
13050
13088
  onDelete();
@@ -13127,7 +13165,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
13127
13165
  if (!name.trim()) return;
13128
13166
  setIsLoading(true);
13129
13167
  try {
13130
- const setup = await _chunkL5F5ZN5Fjs.TwoFactorService.setupTotp({
13168
+ const setup = await _chunkAHXRHXZ2js.TwoFactorService.setupTotp({
13131
13169
  id: _uuid.v4.call(void 0, ),
13132
13170
  name: name.trim(),
13133
13171
  accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _348 => _348.email]), () => ( ""))
@@ -13145,16 +13183,16 @@ function TotpSetupDialog({ onSuccess, trigger }) {
13145
13183
  setIsLoading(true);
13146
13184
  setVerifyError(void 0);
13147
13185
  try {
13148
- await _chunkL5F5ZN5Fjs.TwoFactorService.verifyTotpSetup({
13186
+ await _chunkAHXRHXZ2js.TwoFactorService.verifyTotpSetup({
13149
13187
  id: _uuid.v4.call(void 0, ),
13150
13188
  authenticatorId,
13151
13189
  code
13152
13190
  });
13153
- const status = await _chunkL5F5ZN5Fjs.TwoFactorService.getStatus();
13191
+ const status = await _chunkAHXRHXZ2js.TwoFactorService.getStatus();
13154
13192
  if (!status.isEnabled) {
13155
- await _chunkL5F5ZN5Fjs.TwoFactorService.enable({ id: _uuid.v4.call(void 0, ), preferredMethod: "totp" });
13193
+ await _chunkAHXRHXZ2js.TwoFactorService.enable({ id: _uuid.v4.call(void 0, ), preferredMethod: "totp" });
13156
13194
  }
13157
- _chunkL5F5ZN5Fjs.showToast.call(void 0, t("common.success"), {
13195
+ _chunkAHXRHXZ2js.showToast.call(void 0, t("common.success"), {
13158
13196
  description: t("auth.two_factor.authenticator_added")
13159
13197
  });
13160
13198
  setOpen(false);
@@ -13229,9 +13267,9 @@ function TwoFactorSettings() {
13229
13267
  const loadStatus = _react.useCallback.call(void 0, async () => {
13230
13268
  try {
13231
13269
  const [statusData, authenticatorsList, passkeysList] = await Promise.all([
13232
- _chunkL5F5ZN5Fjs.TwoFactorService.getStatus(),
13233
- _chunkL5F5ZN5Fjs.TwoFactorService.listTotpAuthenticators(),
13234
- _chunkL5F5ZN5Fjs.TwoFactorService.listPasskeys()
13270
+ _chunkAHXRHXZ2js.TwoFactorService.getStatus(),
13271
+ _chunkAHXRHXZ2js.TwoFactorService.listTotpAuthenticators(),
13272
+ _chunkAHXRHXZ2js.TwoFactorService.listPasskeys()
13235
13273
  ]);
13236
13274
  setStatus(statusData);
13237
13275
  setAuthenticators(authenticatorsList);
@@ -13252,8 +13290,8 @@ function TwoFactorSettings() {
13252
13290
  setIsEnabling(true);
13253
13291
  try {
13254
13292
  const preferredMethod = authenticators.length > 0 ? "totp" : "passkey";
13255
- await _chunkL5F5ZN5Fjs.TwoFactorService.enable({ id: _uuid.v4.call(void 0, ), preferredMethod });
13256
- _chunkL5F5ZN5Fjs.showToast.call(void 0, t("common.success"), { description: t("auth.two_factor.enabled_success") });
13293
+ await _chunkAHXRHXZ2js.TwoFactorService.enable({ id: _uuid.v4.call(void 0, ), preferredMethod });
13294
+ _chunkAHXRHXZ2js.showToast.call(void 0, t("common.success"), { description: t("auth.two_factor.enabled_success") });
13257
13295
  await loadStatus();
13258
13296
  } catch (error) {
13259
13297
  errorToast({ title: t("common.errors.error"), error });
@@ -13342,11 +13380,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, SecurityContainer, "SecurityContainer");
13342
13380
 
13343
13381
  // src/features/auth/components/buttons/GoogleSignInButton.tsx
13344
13382
 
13345
- function GoogleSignInButton() {
13346
- if (!_chunkOODZEX6Pjs.isGoogleAuthEnabled.call(void 0, )) {
13383
+ function GoogleSignInButton({ referralCode }) {
13384
+ if (!_chunkGP3MDKGEjs.isGoogleAuthEnabled.call(void 0, )) {
13347
13385
  return null;
13348
13386
  }
13349
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: `${_chunkOODZEX6Pjs.getApiUrl.call(void 0, )}auth/google`, className: "flex w-full justify-end", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
13387
+ const buildGoogleOAuthUrl = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
13388
+ const baseUrl = `${_chunkGP3MDKGEjs.getApiUrl.call(void 0, )}auth/google`;
13389
+ if (!referralCode) return baseUrl;
13390
+ return `${baseUrl}?referral=${encodeURIComponent(referralCode)}`;
13391
+ }, "buildGoogleOAuthUrl");
13392
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: buildGoogleOAuthUrl(), className: "flex w-full justify-end", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
13350
13393
  Button,
13351
13394
  {
13352
13395
  className: "w-full bg-white hover:bg-gray-50 text-gray-700 border border-gray-300",
@@ -13404,8 +13447,8 @@ function LandingComponent() {
13404
13447
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { className: "flex w-full justify-center text-center text-sm", children: t(`common.description`) })
13405
13448
  ] }),
13406
13449
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardFooter, { className: "mt-4 flex w-full flex-col justify-between gap-y-4", children: [
13407
- _chunkOODZEX6Pjs.isInternalAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
13408
- _chunkOODZEX6Pjs.isRegistrationAllowed.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13450
+ _chunkGP3MDKGEjs.isInternalAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
13451
+ _chunkGP3MDKGEjs.isRegistrationAllowed.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13409
13452
  Link,
13410
13453
  {
13411
13454
  href: "#",
@@ -13416,8 +13459,8 @@ function LandingComponent() {
13416
13459
  ),
13417
13460
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: "#", className: "flex w-full justify-end", onClick: () => setComponentType(0 /* Login */), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: t(`auth.buttons.login`) }) })
13418
13461
  ] }),
13419
- _chunkOODZEX6Pjs.isGoogleAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GoogleSignInButton, {}),
13420
- _chunkOODZEX6Pjs.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: `${_chunkOODZEX6Pjs.getApiUrl.call(void 0, )}auth/discord`, className: "flex w-full justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: "Login with Discord" }) })
13462
+ _chunkGP3MDKGEjs.isGoogleAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GoogleSignInButton, {}),
13463
+ _chunkGP3MDKGEjs.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: `${_chunkGP3MDKGEjs.getApiUrl.call(void 0, )}auth/discord`, className: "flex w-full justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: "Login with Discord" }) })
13421
13464
  ] })
13422
13465
  ] });
13423
13466
  }
@@ -13442,7 +13485,7 @@ function AcceptInvitation() {
13442
13485
  const payload = {
13443
13486
  code
13444
13487
  };
13445
- await _chunkL5F5ZN5Fjs.AuthService.validateCode(payload);
13488
+ await _chunkAHXRHXZ2js.AuthService.validateCode(payload);
13446
13489
  } catch (e) {
13447
13490
  setError(e instanceof Error ? e.message : String(e));
13448
13491
  errorToast({ title: t(`common.errors.error`), error: e });
@@ -13480,9 +13523,9 @@ function AcceptInvitation() {
13480
13523
  code: _optionalChain([params, 'optionalAccess', _352 => _352.code]),
13481
13524
  password: values.password
13482
13525
  };
13483
- await _chunkL5F5ZN5Fjs.AuthService.acceptInvitation(payload);
13526
+ await _chunkAHXRHXZ2js.AuthService.acceptInvitation(payload);
13484
13527
  setShowConfirmation(true);
13485
- _chunkL5F5ZN5Fjs.showToast.call(void 0, t("auth.account_activated"), {
13528
+ _chunkAHXRHXZ2js.showToast.call(void 0, t("auth.account_activated"), {
13486
13529
  description: t("auth.account_activated_description")
13487
13530
  });
13488
13531
  setTimeout(() => {
@@ -13542,10 +13585,10 @@ function ActivateAccount() {
13542
13585
  const payload = {
13543
13586
  activationCode: code
13544
13587
  };
13545
- await _chunkL5F5ZN5Fjs.AuthService.activate(payload);
13588
+ await _chunkAHXRHXZ2js.AuthService.activate(payload);
13546
13589
  setShowConfirmation(true);
13547
13590
  setParams(void 0);
13548
- _chunkL5F5ZN5Fjs.showToast.call(void 0, t("auth.account_activated"), {
13591
+ _chunkAHXRHXZ2js.showToast.call(void 0, t("auth.account_activated"), {
13549
13592
  description: t("auth.account_activated_description")
13550
13593
  });
13551
13594
  setTimeout(() => {
@@ -13580,13 +13623,13 @@ _chunk7QVYU63Ejs.__name.call(void 0, ActivateAccount, "ActivateAccount");
13580
13623
 
13581
13624
  function Cookies({ dehydratedAuth, page }) {
13582
13625
  const { setUser } = useCurrentUserContext();
13583
- const router = _chunkOODZEX6Pjs.useI18nRouter.call(void 0, );
13626
+ const router = _chunkGP3MDKGEjs.useI18nRouter.call(void 0, );
13584
13627
  const [hasSaved, setHasSaved] = _react.useState.call(void 0, false);
13585
13628
  _react.useEffect.call(void 0, () => {
13586
13629
  if (hasSaved) return;
13587
13630
  async function saveTokenOnServer() {
13588
- await _chunkL5F5ZN5Fjs.AuthService.saveToken({ dehydratedAuth });
13589
- const auth = _chunkL5F5ZN5Fjs.rehydrate.call(void 0, _chunkL5F5ZN5Fjs.Modules.Auth, dehydratedAuth);
13631
+ await _chunkAHXRHXZ2js.AuthService.saveToken({ dehydratedAuth });
13632
+ const auth = _chunkAHXRHXZ2js.rehydrate.call(void 0, _chunkAHXRHXZ2js.Modules.Auth, dehydratedAuth);
13590
13633
  setUser(auth.user);
13591
13634
  setHasSaved(true);
13592
13635
  if (page) {
@@ -13629,7 +13672,7 @@ function ForgotPassword() {
13629
13672
  const payload = {
13630
13673
  email: values.email
13631
13674
  };
13632
- await _chunkL5F5ZN5Fjs.AuthService.initialiseForgotPassword(payload);
13675
+ await _chunkAHXRHXZ2js.AuthService.initialiseForgotPassword(payload);
13633
13676
  setShowConfirmation(true);
13634
13677
  } catch (e) {
13635
13678
  errorToast({ error: e });
@@ -13680,15 +13723,32 @@ _chunk7QVYU63Ejs.__name.call(void 0, ForgotPassword, "ForgotPassword");
13680
13723
 
13681
13724
 
13682
13725
 
13726
+
13683
13727
  function Login() {
13684
13728
  const t = _nextintl.useTranslations.call(void 0, );
13685
13729
  const { setUser } = useCurrentUserContext();
13686
13730
  const { setComponentType, setPendingTwoFactor } = useAuthContext();
13687
13731
  const generateUrl = usePageUrlGenerator();
13688
- const i18nRouter = _chunkOODZEX6Pjs.useI18nRouter.call(void 0, );
13732
+ const i18nRouter = _chunkGP3MDKGEjs.useI18nRouter.call(void 0, );
13689
13733
  const nativeRouter = _navigation.useRouter.call(void 0, );
13690
13734
  const searchParams = _navigation.useSearchParams.call(void 0, );
13691
13735
  const callbackUrl = searchParams.get("callbackUrl");
13736
+ const [referralCode, setReferralCode2] = _react.useState.call(void 0, null);
13737
+ _react.useEffect.call(void 0, () => {
13738
+ const cookies = document.cookie.split("; ");
13739
+ for (const cookie of cookies) {
13740
+ const [name, value] = cookie.split("=");
13741
+ if (name === "referral_code" && value) {
13742
+ setReferralCode2(decodeURIComponent(value));
13743
+ break;
13744
+ }
13745
+ }
13746
+ }, []);
13747
+ const buildDiscordOAuthUrl = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
13748
+ const baseUrl = `${_chunkGP3MDKGEjs.getApiUrl.call(void 0, )}auth/discord`;
13749
+ if (!referralCode) return baseUrl;
13750
+ return `${baseUrl}?referral=${encodeURIComponent(referralCode)}`;
13751
+ }, "buildDiscordOAuthUrl");
13692
13752
  const formSchema = _zod3.z.object({
13693
13753
  email: _zod3.z.string().email({
13694
13754
  message: t(`common.errors.invalid_email`)
@@ -13704,7 +13764,7 @@ function Login() {
13704
13764
  });
13705
13765
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
13706
13766
  try {
13707
- const response = await _chunkL5F5ZN5Fjs.AuthService.login({
13767
+ const response = await _chunkAHXRHXZ2js.AuthService.login({
13708
13768
  email: values.email,
13709
13769
  password: values.password
13710
13770
  });
@@ -13738,7 +13798,7 @@ function Login() {
13738
13798
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { className: "text-sm", children: t(`auth.login_description`) })
13739
13799
  ] }),
13740
13800
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), children: [
13741
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { children: _chunkOODZEX6Pjs.isInternalAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
13801
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { children: _chunkGP3MDKGEjs.isInternalAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
13742
13802
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13743
13803
  FormInput,
13744
13804
  {
@@ -13763,8 +13823,8 @@ function Login() {
13763
13823
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "mt-4 w-full", type: "submit", "data-testid": "form-login-button-submit", children: t(`auth.buttons.login`) })
13764
13824
  ] }) }),
13765
13825
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardFooter, { className: "flex w-full flex-col gap-y-4 mt-4", children: [
13766
- _chunkOODZEX6Pjs.isGoogleAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GoogleSignInButton, {}),
13767
- _chunkOODZEX6Pjs.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: `${_chunkOODZEX6Pjs.getApiUrl.call(void 0, )}auth/discord`, className: "flex w-full justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: "Login with Discord" }) }),
13826
+ _chunkGP3MDKGEjs.isGoogleAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GoogleSignInButton, { referralCode }),
13827
+ _chunkGP3MDKGEjs.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: buildDiscordOAuthUrl(), className: "flex w-full justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: "Login with Discord" }) }),
13768
13828
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row justify-between", children: [
13769
13829
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13770
13830
  Link,
@@ -13795,11 +13855,25 @@ _chunk7QVYU63Ejs.__name.call(void 0, Login, "Login");
13795
13855
  // src/features/auth/components/forms/Logout.tsx
13796
13856
 
13797
13857
 
13798
- function Logout() {
13858
+ // src/features/auth/utils/clearClientStorage.ts
13859
+ function clearClientStorage(keys) {
13860
+ if (typeof window === "undefined") return;
13861
+ keys.forEach((key) => {
13862
+ window.localStorage.removeItem(key);
13863
+ });
13864
+ }
13865
+ _chunk7QVYU63Ejs.__name.call(void 0, clearClientStorage, "clearClientStorage");
13866
+
13867
+ // src/features/auth/components/forms/Logout.tsx
13868
+
13869
+ function Logout({ storageKeys }) {
13799
13870
  const generateUrl = usePageUrlGenerator();
13800
13871
  _react.useEffect.call(void 0, () => {
13801
13872
  const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
13802
- await _chunkL5F5ZN5Fjs.AuthService.logout();
13873
+ if (_optionalChain([storageKeys, 'optionalAccess', _353 => _353.length])) {
13874
+ clearClientStorage(storageKeys);
13875
+ }
13876
+ await _chunkAHXRHXZ2js.AuthService.logout();
13803
13877
  window.location.href = generateUrl({ page: `/` });
13804
13878
  }, "logOut");
13805
13879
  logOut();
@@ -13814,19 +13888,19 @@ _chunk7QVYU63Ejs.__name.call(void 0, Logout, "Logout");
13814
13888
  function RefreshUser() {
13815
13889
  const { setUser } = useCurrentUserContext();
13816
13890
  const loadFullUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
13817
- const fullUser = await _chunkL5F5ZN5Fjs.UserService.findFullUser();
13891
+ const fullUser = await _chunkAHXRHXZ2js.UserService.findFullUser();
13818
13892
  if (fullUser) {
13819
13893
  setUser(fullUser);
13820
13894
  const token = {
13821
13895
  userId: fullUser.id,
13822
- companyId: _optionalChain([fullUser, 'access', _353 => _353.company, 'optionalAccess', _354 => _354.id]),
13896
+ companyId: _optionalChain([fullUser, 'access', _354 => _354.company, 'optionalAccess', _355 => _355.id]),
13823
13897
  roles: fullUser.roles.map((role) => role.id),
13824
- features: _nullishCoalesce(_optionalChain([fullUser, 'access', _355 => _355.company, 'optionalAccess', _356 => _356.features, 'optionalAccess', _357 => _357.map, 'call', _358 => _358((feature) => feature.id)]), () => ( [])),
13898
+ features: _nullishCoalesce(_optionalChain([fullUser, 'access', _356 => _356.company, 'optionalAccess', _357 => _357.features, 'optionalAccess', _358 => _358.map, 'call', _359 => _359((feature) => feature.id)]), () => ( [])),
13825
13899
  modules: fullUser.modules.map((module) => {
13826
13900
  return { id: module.id, permissions: module.permissions };
13827
13901
  })
13828
13902
  };
13829
- await _optionalChain([_chunkL5F5ZN5Fjs.getTokenHandler.call(void 0, ), 'optionalAccess', _359 => _359.updateToken, 'call', _360 => _360(token)]);
13903
+ await _optionalChain([_chunkAHXRHXZ2js.getTokenHandler.call(void 0, ), 'optionalAccess', _360 => _360.updateToken, 'call', _361 => _361(token)]);
13830
13904
  _cookiesnext.deleteCookie.call(void 0, "reloadData");
13831
13905
  }
13832
13906
  }, "loadFullUser");
@@ -13857,7 +13931,7 @@ function ResetPassword() {
13857
13931
  const payload = {
13858
13932
  code
13859
13933
  };
13860
- await _chunkL5F5ZN5Fjs.AuthService.validateCode(payload);
13934
+ await _chunkAHXRHXZ2js.AuthService.validateCode(payload);
13861
13935
  } catch (e) {
13862
13936
  setError(e instanceof Error ? e.message : String(e));
13863
13937
  errorToast({ title: t(`common.errors.error`), error: e });
@@ -13890,14 +13964,14 @@ function ResetPassword() {
13890
13964
  });
13891
13965
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
13892
13966
  try {
13893
- if (!_optionalChain([params, 'optionalAccess', _361 => _361.code])) return;
13967
+ if (!_optionalChain([params, 'optionalAccess', _362 => _362.code])) return;
13894
13968
  const payload = {
13895
- code: _optionalChain([params, 'optionalAccess', _362 => _362.code]),
13969
+ code: _optionalChain([params, 'optionalAccess', _363 => _363.code]),
13896
13970
  password: values.password
13897
13971
  };
13898
- await _chunkL5F5ZN5Fjs.AuthService.resetPassword(payload);
13972
+ await _chunkAHXRHXZ2js.AuthService.resetPassword(payload);
13899
13973
  setShowConfirmation(true);
13900
- _chunkL5F5ZN5Fjs.showToast.call(void 0, t(`auth.reset_success`), {
13974
+ _chunkAHXRHXZ2js.showToast.call(void 0, t(`auth.reset_success`), {
13901
13975
  description: t(`auth.reset_success_description`)
13902
13976
  });
13903
13977
  setTimeout(() => {
@@ -13943,9 +14017,9 @@ function PasskeyButton({ pendingToken, onSuccess, onError, disabled = false }) {
13943
14017
  const handleClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
13944
14018
  setIsLoading(true);
13945
14019
  try {
13946
- const { pendingId, options } = await _chunkL5F5ZN5Fjs.TwoFactorService.getPasskeyAuthOptions({ pendingToken });
14020
+ const { pendingId, options } = await _chunkAHXRHXZ2js.TwoFactorService.getPasskeyAuthOptions({ pendingToken });
13947
14021
  const credential = await _browser.startAuthentication.call(void 0, { optionsJSON: options });
13948
- const auth = await _chunkL5F5ZN5Fjs.TwoFactorService.verifyPasskey({
14022
+ const auth = await _chunkAHXRHXZ2js.TwoFactorService.verifyPasskey({
13949
14023
  id: _uuid.v4.call(void 0, ),
13950
14024
  pendingToken,
13951
14025
  pendingId,
@@ -13980,7 +14054,7 @@ function TwoFactorChallenge() {
13980
14054
  const { setUser } = useCurrentUserContext();
13981
14055
  const { pendingTwoFactor, setPendingTwoFactor } = useAuthContext();
13982
14056
  const generateUrl = usePageUrlGenerator();
13983
- const i18nRouter = _chunkOODZEX6Pjs.useI18nRouter.call(void 0, );
14057
+ const i18nRouter = _chunkGP3MDKGEjs.useI18nRouter.call(void 0, );
13984
14058
  const nativeRouter = _navigation.useRouter.call(void 0, );
13985
14059
  const searchParams = _navigation.useSearchParams.call(void 0, );
13986
14060
  const callbackUrl = searchParams.get("callbackUrl");
@@ -14004,7 +14078,7 @@ function TwoFactorChallenge() {
14004
14078
  setIsVerifying(true);
14005
14079
  setTotpError(void 0);
14006
14080
  try {
14007
- const auth = await _chunkL5F5ZN5Fjs.TwoFactorService.verifyTotp({
14081
+ const auth = await _chunkAHXRHXZ2js.TwoFactorService.verifyTotp({
14008
14082
  id: _uuid.v4.call(void 0, ),
14009
14083
  pendingToken: pendingTwoFactor.pendingToken,
14010
14084
  code
@@ -14034,7 +14108,7 @@ function TwoFactorChallenge() {
14034
14108
  setIsVerifying(true);
14035
14109
  setBackupError(void 0);
14036
14110
  try {
14037
- const auth = await _chunkL5F5ZN5Fjs.TwoFactorService.verifyBackupCode({
14111
+ const auth = await _chunkAHXRHXZ2js.TwoFactorService.verifyBackupCode({
14038
14112
  id: _uuid.v4.call(void 0, ),
14039
14113
  pendingToken: pendingTwoFactor.pendingToken,
14040
14114
  code: backupCode
@@ -14125,12 +14199,12 @@ function ContentsList({ contentList }) {
14125
14199
  _chunk7QVYU63Ejs.__name.call(void 0, ContentsList, "ContentsList");
14126
14200
  function ContentsListElement({ content }) {
14127
14201
  const generateUrl = usePageUrlGenerator();
14128
- const contentModule = content.contentType ? _chunkL5F5ZN5Fjs.Modules.findByModelName(content.contentType) : void 0;
14202
+ const contentModule = content.contentType ? _chunkAHXRHXZ2js.Modules.findByModelName(content.contentType) : void 0;
14129
14203
  const link = contentModule ? generateUrl({ page: contentModule, id: content.id }) : "#";
14130
14204
  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: [
14131
14205
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCard, { children: [
14132
14206
  /* @__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: [
14133
- contentModule && _chunkL5F5ZN5Fjs.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
14207
+ contentModule && _chunkAHXRHXZ2js.getIconByModule.call(void 0, { module: contentModule, className: "h-4 w-4" }),
14134
14208
  content.name
14135
14209
  ] }) }),
14136
14210
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, HoverCardContent, { className: "flex max-h-96 w-96 flex-col gap-y-4 overflow-y-auto", children: [
@@ -14149,8 +14223,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListElement, "ContentsListElement")
14149
14223
  function ContentsListById({ contentIds }) {
14150
14224
  const t = _nextintl.useTranslations.call(void 0, );
14151
14225
  const data = useDataListRetriever({
14152
- module: _chunkL5F5ZN5Fjs.Modules.Content,
14153
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL5F5ZN5Fjs.ContentService.findMany(params), "retriever"),
14226
+ module: _chunkAHXRHXZ2js.Modules.Content,
14227
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAHXRHXZ2js.ContentService.findMany(params), "retriever"),
14154
14228
  retrieverParams: { contentIds }
14155
14229
  });
14156
14230
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -14158,7 +14232,7 @@ function ContentsListById({ contentIds }) {
14158
14232
  {
14159
14233
  data,
14160
14234
  fields: ["name" /* name */, "authors" /* authors */, "updatedAt" /* updatedAt */],
14161
- tableGeneratorType: _chunkL5F5ZN5Fjs.Modules.Content,
14235
+ tableGeneratorType: _chunkAHXRHXZ2js.Modules.Content,
14162
14236
  title: t(`common.relevant`)
14163
14237
  }
14164
14238
  );
@@ -14171,8 +14245,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentsListById, "ContentsListById");
14171
14245
  function RelevantContentsList({ id }) {
14172
14246
  const t = _nextintl.useTranslations.call(void 0, );
14173
14247
  const data = useDataListRetriever({
14174
- module: _chunkL5F5ZN5Fjs.Modules.Content,
14175
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL5F5ZN5Fjs.ContentService.findRelevant(params), "retriever"),
14248
+ module: _chunkAHXRHXZ2js.Modules.Content,
14249
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAHXRHXZ2js.ContentService.findRelevant(params), "retriever"),
14176
14250
  retrieverParams: { id }
14177
14251
  });
14178
14252
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -14180,7 +14254,7 @@ function RelevantContentsList({ id }) {
14180
14254
  {
14181
14255
  data,
14182
14256
  fields: ["name" /* name */, "authors" /* authors */, "relevance" /* relevance */, "updatedAt" /* updatedAt */],
14183
- tableGeneratorType: _chunkL5F5ZN5Fjs.Modules.Content,
14257
+ tableGeneratorType: _chunkAHXRHXZ2js.Modules.Content,
14184
14258
  title: t(`common.relevant`)
14185
14259
  }
14186
14260
  );
@@ -14233,12 +14307,12 @@ function NotificationsList({ archived }) {
14233
14307
  const t = _nextintl.useTranslations.call(void 0, );
14234
14308
  const generateUrl = usePageUrlGenerator();
14235
14309
  const data = useDataListRetriever({
14236
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL5F5ZN5Fjs.NotificationService.findMany(params), "retriever"),
14310
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAHXRHXZ2js.NotificationService.findMany(params), "retriever"),
14237
14311
  retrieverParams: { isArchived: archived },
14238
- module: _chunkL5F5ZN5Fjs.Modules.Notification
14312
+ module: _chunkAHXRHXZ2js.Modules.Notification
14239
14313
  });
14240
14314
  const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
14241
- await _chunkL5F5ZN5Fjs.NotificationService.archive({ id: notification.id });
14315
+ await _chunkAHXRHXZ2js.NotificationService.archive({ id: notification.id });
14242
14316
  data.removeElement(notification);
14243
14317
  }, "archiveNotification");
14244
14318
  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: [
@@ -14249,14 +14323,14 @@ function NotificationsList({ archived }) {
14249
14323
  ] }),
14250
14324
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
14251
14325
  ] }) }) }, i)) }), "LoadingSkeleton");
14252
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _363 => _363.data, 'optionalAccess', _364 => _364.map, 'call', _365 => _365((notification) => {
14326
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _364 => _364.data, 'optionalAccess', _365 => _365.map, 'call', _366 => _366((notification) => {
14253
14327
  const notificationData = generateNotificationData({ notification, generateUrl });
14254
14328
  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: [
14255
- 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: _chunkL5F5ZN5Fjs.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" }),
14329
+ 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: _chunkAHXRHXZ2js.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" }),
14256
14330
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
14257
14331
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
14258
14332
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
14259
- actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _366 => _366.actor, 'optionalAccess', _367 => _367.name]), () => ( "")),
14333
+ actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _367 => _367.actor, 'optionalAccess', _368 => _368.name]), () => ( "")),
14260
14334
  title: notificationData.title
14261
14335
  }) }),
14262
14336
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
@@ -14399,7 +14473,7 @@ function NotificationModalContent({ isOpen, setIsOpen }) {
14399
14473
  batch.forEach((notification) => {
14400
14474
  addNotification(notification);
14401
14475
  const toastNotification = generateToastNotification(notification, t, generateUrl);
14402
- _chunkL5F5ZN5Fjs.showToast.call(void 0, toastNotification.title, {
14476
+ _chunkAHXRHXZ2js.showToast.call(void 0, toastNotification.title, {
14403
14477
  description: toastNotification.description,
14404
14478
  action: toastNotification.action
14405
14479
  });
@@ -14493,6 +14567,318 @@ function PushNotificationProvider({ children }) {
14493
14567
  }
14494
14568
  _chunk7QVYU63Ejs.__name.call(void 0, PushNotificationProvider, "PushNotificationProvider");
14495
14569
 
14570
+ // src/features/referral/components/ReferralCodeCapture.tsx
14571
+
14572
+
14573
+
14574
+ // src/features/referral/utils/referral-cookie.ts
14575
+ function setReferralCode(code) {
14576
+ const config = _chunkGP3MDKGEjs.getReferralConfig.call(void 0, );
14577
+ const maxAge = config.cookieDays * 24 * 60 * 60;
14578
+ document.cookie = `${config.cookieName}=${encodeURIComponent(code)}; path=/; max-age=${maxAge}; SameSite=Lax`;
14579
+ }
14580
+ _chunk7QVYU63Ejs.__name.call(void 0, setReferralCode, "setReferralCode");
14581
+ function getReferralCode2() {
14582
+ const config = _chunkGP3MDKGEjs.getReferralConfig.call(void 0, );
14583
+ const cookies = document.cookie.split("; ");
14584
+ for (const cookie of cookies) {
14585
+ const [name, value] = cookie.split("=");
14586
+ if (name === config.cookieName && value) {
14587
+ return decodeURIComponent(value);
14588
+ }
14589
+ }
14590
+ return null;
14591
+ }
14592
+ _chunk7QVYU63Ejs.__name.call(void 0, getReferralCode2, "getReferralCode");
14593
+
14594
+ // src/features/referral/components/ReferralCodeCapture.tsx
14595
+ function ReferralCodeCapture() {
14596
+ const searchParams = _navigation.useSearchParams.call(void 0, );
14597
+ _react.useEffect.call(void 0, () => {
14598
+ console.log("[REFERRAL] ReferralCodeCapture mounted");
14599
+ console.log("[REFERRAL] isReferralEnabled():", _chunkGP3MDKGEjs.isReferralEnabled.call(void 0, ));
14600
+ if (!_chunkGP3MDKGEjs.isReferralEnabled.call(void 0, )) {
14601
+ console.log("[REFERRAL] Feature DISABLED - not capturing");
14602
+ return;
14603
+ }
14604
+ const config = _chunkGP3MDKGEjs.getReferralConfig.call(void 0, );
14605
+ const refCode = searchParams.get(config.urlParamName);
14606
+ console.log("[REFERRAL] URL param '" + config.urlParamName + "':", refCode);
14607
+ if (refCode) {
14608
+ const existingCode = getReferralCode2();
14609
+ console.log("[REFERRAL] Existing cookie:", existingCode);
14610
+ if (!existingCode) {
14611
+ setReferralCode(refCode);
14612
+ console.log("[REFERRAL] Cookie SET to:", refCode);
14613
+ } else {
14614
+ console.log("[REFERRAL] Cookie already exists, not overwriting");
14615
+ }
14616
+ }
14617
+ }, [searchParams]);
14618
+ return null;
14619
+ }
14620
+ _chunk7QVYU63Ejs.__name.call(void 0, ReferralCodeCapture, "ReferralCodeCapture");
14621
+
14622
+ // src/features/referral/components/ReferralWidget.tsx
14623
+
14624
+
14625
+
14626
+ // src/features/referral/hooks/useReferralInvite.ts
14627
+
14628
+ function useReferralInvite() {
14629
+ const [sending, setSending] = _react.useState.call(void 0, false);
14630
+ const [error, setError] = _react.useState.call(void 0, null);
14631
+ const [success, setSuccess] = _react.useState.call(void 0, false);
14632
+ const sendInvite = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (email) => {
14633
+ if (!_chunkGP3MDKGEjs.isReferralEnabled.call(void 0, )) {
14634
+ return;
14635
+ }
14636
+ setSending(true);
14637
+ setError(null);
14638
+ setSuccess(false);
14639
+ try {
14640
+ await _chunkAHXRHXZ2js.ReferralService.sendReferralEmail(email);
14641
+ setSuccess(true);
14642
+ } catch (err) {
14643
+ setError(err);
14644
+ } finally {
14645
+ setSending(false);
14646
+ }
14647
+ }, "sendInvite");
14648
+ return { sendInvite, sending, error, success };
14649
+ }
14650
+ _chunk7QVYU63Ejs.__name.call(void 0, useReferralInvite, "useReferralInvite");
14651
+
14652
+ // src/features/referral/hooks/useReferralStats.ts
14653
+
14654
+ function useReferralStats() {
14655
+ const [stats, setStats] = _react.useState.call(void 0, null);
14656
+ const [loading, setLoading] = _react.useState.call(void 0, true);
14657
+ const [error, setError] = _react.useState.call(void 0, null);
14658
+ _react.useEffect.call(void 0, () => {
14659
+ if (!_chunkGP3MDKGEjs.isReferralEnabled.call(void 0, )) {
14660
+ setLoading(false);
14661
+ return;
14662
+ }
14663
+ _chunkAHXRHXZ2js.ReferralService.getMyReferralStats().then(setStats).catch(setError).finally(() => setLoading(false));
14664
+ }, []);
14665
+ return { stats, loading, error };
14666
+ }
14667
+ _chunk7QVYU63Ejs.__name.call(void 0, useReferralStats, "useReferralStats");
14668
+
14669
+ // src/features/referral/components/ReferralWidget.tsx
14670
+
14671
+ var DEFAULT_TRANSLATIONS = {
14672
+ title: "Invite Friends",
14673
+ description: "Share your referral link and earn rewards when your friends subscribe.",
14674
+ yourLink: "Your referral link",
14675
+ copyButton: "Copy",
14676
+ copiedMessage: "Link copied to clipboard!",
14677
+ statsLabel: "Your referral stats",
14678
+ completedLabel: "Successful referrals",
14679
+ tokensLabel: "Tokens earned",
14680
+ inviteTitle: "Invite by email",
14681
+ inviteDescription: "Send an invitation directly to a friend's email.",
14682
+ emailPlaceholder: "friend@example.com",
14683
+ sendButton: "Send",
14684
+ sendingButton: "Sending...",
14685
+ inviteSent: "Invitation sent successfully!",
14686
+ inviteError: "Failed to send invitation",
14687
+ copyError: "Failed to copy link",
14688
+ invalidEmail: "Please enter a valid email address"
14689
+ };
14690
+ async function copyToClipboard(text) {
14691
+ if (_optionalChain([navigator, 'access', _369 => _369.clipboard, 'optionalAccess', _370 => _370.writeText])) {
14692
+ try {
14693
+ await navigator.clipboard.writeText(text);
14694
+ return true;
14695
+ } catch (err) {
14696
+ console.warn("Clipboard API failed, trying fallback:", err);
14697
+ }
14698
+ }
14699
+ try {
14700
+ const textArea = document.createElement("textarea");
14701
+ textArea.value = text;
14702
+ textArea.style.position = "fixed";
14703
+ textArea.style.left = "-999999px";
14704
+ textArea.style.top = "-999999px";
14705
+ document.body.appendChild(textArea);
14706
+ textArea.focus();
14707
+ textArea.select();
14708
+ const success = document.execCommand("copy");
14709
+ document.body.removeChild(textArea);
14710
+ return success;
14711
+ } catch (err) {
14712
+ console.error("Fallback copy failed:", err);
14713
+ return false;
14714
+ }
14715
+ }
14716
+ _chunk7QVYU63Ejs.__name.call(void 0, copyToClipboard, "copyToClipboard");
14717
+ function ReferralWidget({
14718
+ translations,
14719
+ className,
14720
+ isDialog = false,
14721
+ onLinkCopied,
14722
+ onInviteSent,
14723
+ onInviteError
14724
+ }) {
14725
+ const t = { ...DEFAULT_TRANSLATIONS, ...translations };
14726
+ const { stats, loading, error } = useReferralStats();
14727
+ const { sendInvite, sending } = useReferralInvite();
14728
+ const [email, setEmail] = _react.useState.call(void 0, "");
14729
+ const [copied, setCopied] = _react.useState.call(void 0, false);
14730
+ const linkInputRef = _react.useRef.call(void 0, null);
14731
+ const config = _chunkGP3MDKGEjs.getReferralConfig.call(void 0, );
14732
+ const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
14733
+ const referralUrl = _optionalChain([stats, 'optionalAccess', _371 => _371.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
14734
+ if (!_chunkGP3MDKGEjs.isReferralEnabled.call(void 0, )) {
14735
+ return null;
14736
+ }
14737
+ const handleCopyLink = _react.useCallback.call(void 0, async () => {
14738
+ if (!referralUrl) return;
14739
+ const success = await copyToClipboard(referralUrl);
14740
+ if (success) {
14741
+ setCopied(true);
14742
+ _chunkAHXRHXZ2js.showToast.call(void 0, t.copiedMessage);
14743
+ _optionalChain([onLinkCopied, 'optionalCall', _372 => _372()]);
14744
+ setTimeout(() => setCopied(false), 2e3);
14745
+ } else {
14746
+ _chunkAHXRHXZ2js.showError.call(void 0, t.copyError);
14747
+ }
14748
+ }, [referralUrl, t.copiedMessage, t.copyError, onLinkCopied]);
14749
+ const handleSendInvite = _react.useCallback.call(void 0, async () => {
14750
+ if (!email || !email.includes("@")) {
14751
+ _chunkAHXRHXZ2js.showError.call(void 0, t.invalidEmail);
14752
+ return;
14753
+ }
14754
+ try {
14755
+ await sendInvite(email);
14756
+ _chunkAHXRHXZ2js.showToast.call(void 0, t.inviteSent);
14757
+ _optionalChain([onInviteSent, 'optionalCall', _373 => _373(email)]);
14758
+ setEmail("");
14759
+ } catch (err) {
14760
+ const error2 = err instanceof Error ? err : new Error(t.inviteError);
14761
+ _chunkAHXRHXZ2js.showError.call(void 0, error2.message);
14762
+ _optionalChain([onInviteError, 'optionalCall', _374 => _374(error2)]);
14763
+ }
14764
+ }, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
14765
+ const handleEmailKeyDown = _react.useCallback.call(void 0,
14766
+ (e) => {
14767
+ if (e.key === "Enter" && !sending) {
14768
+ e.preventDefault();
14769
+ handleSendInvite();
14770
+ }
14771
+ },
14772
+ [handleSendInvite, sending]
14773
+ );
14774
+ if (loading) {
14775
+ if (isDialog) {
14776
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center justify-center py-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "text-muted-foreground h-6 w-6 animate-spin" }) });
14777
+ }
14778
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { className: `p-6 ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center justify-center py-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "text-muted-foreground h-6 w-6 animate-spin" }) }) });
14779
+ }
14780
+ if (error) {
14781
+ const errorMessage = error instanceof Error ? error.message : "Failed to load referral data";
14782
+ if (isDialog) {
14783
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-destructive text-center text-sm", children: errorMessage });
14784
+ }
14785
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { className: `p-6 ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-destructive text-center text-sm", children: errorMessage }) });
14786
+ }
14787
+ const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4", children: [
14788
+ !isDialog && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-3", children: [
14789
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-primary/10 rounded-full p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Users, { className: "text-primary h-5 w-5" }) }),
14790
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-1", children: [
14791
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-lg font-semibold", children: t.title }),
14792
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-muted-foreground text-sm", children: t.description })
14793
+ ] })
14794
+ ] }),
14795
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
14796
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { className: "text-sm font-medium", children: t.yourLink }),
14797
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-2", children: [
14798
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Input, { ref: linkInputRef, value: referralUrl, readOnly: true, className: "font-mono text-sm" }),
14799
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14800
+ Button,
14801
+ {
14802
+ type: "button",
14803
+ variant: "outline",
14804
+ size: "icon",
14805
+ onClick: handleCopyLink,
14806
+ disabled: !referralUrl,
14807
+ "aria-label": t.copyButton,
14808
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Copy, { className: `h-4 w-4 ${copied ? "text-green-500" : ""}` })
14809
+ }
14810
+ )
14811
+ ] })
14812
+ ] }),
14813
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
14814
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { className: "text-sm font-medium", children: t.inviteTitle }),
14815
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-muted-foreground text-sm", children: t.inviteDescription }),
14816
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-2", children: [
14817
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14818
+ Input,
14819
+ {
14820
+ type: "email",
14821
+ value: email,
14822
+ onChange: (e) => setEmail(e.target.value),
14823
+ onKeyDown: handleEmailKeyDown,
14824
+ placeholder: t.emailPlaceholder,
14825
+ disabled: sending
14826
+ }
14827
+ ),
14828
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14829
+ Button,
14830
+ {
14831
+ type: "button",
14832
+ variant: "outline",
14833
+ size: "icon",
14834
+ onClick: handleSendInvite,
14835
+ disabled: sending || !email,
14836
+ "aria-label": sending ? t.sendingButton : t.sendButton,
14837
+ children: sending ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Mail, { className: "h-4 w-4" })
14838
+ }
14839
+ )
14840
+ ] })
14841
+ ] }),
14842
+ stats && stats.completedReferrals > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-border border-t pt-3", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-muted-foreground text-sm", children: [
14843
+ t.completedLabel,
14844
+ ": ",
14845
+ stats.completedReferrals
14846
+ ] }) })
14847
+ ] });
14848
+ if (isDialog) {
14849
+ return content;
14850
+ }
14851
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { className: `p-6 ${_nullishCoalesce(className, () => ( ""))}`, children: content });
14852
+ }
14853
+ _chunk7QVYU63Ejs.__name.call(void 0, ReferralWidget, "ReferralWidget");
14854
+
14855
+ // src/features/referral/components/ReferralDialog.tsx
14856
+
14857
+ var DEFAULT_DIALOG_TRANSLATIONS = {
14858
+ dialogTitle: "Invite Friends",
14859
+ dialogDescription: "Share your referral link and earn rewards when your friends subscribe."
14860
+ };
14861
+ function ReferralDialog({
14862
+ open,
14863
+ onOpenChange,
14864
+ translations,
14865
+ dialogClassName,
14866
+ ...widgetProps
14867
+ }) {
14868
+ if (!_chunkGP3MDKGEjs.isReferralEnabled.call(void 0, )) {
14869
+ return null;
14870
+ }
14871
+ const t = { ...DEFAULT_DIALOG_TRANSLATIONS, ...translations };
14872
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Dialog, { open, onOpenChange, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogContent, { className: _nullishCoalesce(dialogClassName, () => ( "max-w-md")), children: [
14873
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogHeader, { children: [
14874
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTitle, { children: t.dialogTitle }),
14875
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogDescription, { children: t.dialogDescription })
14876
+ ] }),
14877
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReferralWidget, { ...widgetProps, translations, isDialog: true })
14878
+ ] }) });
14879
+ }
14880
+ _chunk7QVYU63Ejs.__name.call(void 0, ReferralDialog, "ReferralDialog");
14881
+
14496
14882
  // src/features/role/components/details/RoleDetails.tsx
14497
14883
 
14498
14884
 
@@ -14560,13 +14946,13 @@ function RemoveUserFromRole({ role, user, refresh }) {
14560
14946
  const t = _nextintl.useTranslations.call(void 0, );
14561
14947
  _react.useEffect.call(void 0, () => {
14562
14948
  async function checkCompanyAdminDeletability() {
14563
- const roleUsers = await _chunkL5F5ZN5Fjs.UserService.findAllUsersByRole({
14949
+ const roleUsers = await _chunkAHXRHXZ2js.UserService.findAllUsersByRole({
14564
14950
  roleId: role.id
14565
14951
  });
14566
14952
  if (roleUsers.length > 1) setCanRemove(true);
14567
14953
  }
14568
14954
  _chunk7QVYU63Ejs.__name.call(void 0, checkCompanyAdminDeletability, "checkCompanyAdminDeletability");
14569
- if (role.id !== _chunkOODZEX6Pjs.getRoleId.call(void 0, ).CompanyAdministrator) {
14955
+ if (role.id !== _chunkGP3MDKGEjs.getRoleId.call(void 0, ).CompanyAdministrator) {
14570
14956
  setCanRemove(true);
14571
14957
  return;
14572
14958
  }
@@ -14574,7 +14960,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
14574
14960
  }, [role]);
14575
14961
  const remove = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
14576
14962
  try {
14577
- await _chunkL5F5ZN5Fjs.RoleService.removeUserFromRole({
14963
+ await _chunkAHXRHXZ2js.RoleService.removeUserFromRole({
14578
14964
  roleId: role.id,
14579
14965
  userId: user.id
14580
14966
  });
@@ -14637,12 +15023,12 @@ function UserRoleAdd({ user, refresh }) {
14637
15023
  const [roles, setRoles] = _react.useState.call(void 0, []);
14638
15024
  const t = _nextintl.useTranslations.call(void 0, );
14639
15025
  const addUserToRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (role) => {
14640
- await _chunkL5F5ZN5Fjs.RoleService.addUserToRole({
15026
+ await _chunkAHXRHXZ2js.RoleService.addUserToRole({
14641
15027
  roleId: role.id,
14642
15028
  userId: user.id
14643
15029
  });
14644
15030
  setRoles(roles.filter((u) => u.id !== role.id));
14645
- _chunkL5F5ZN5Fjs.showToast.call(void 0,
15031
+ _chunkAHXRHXZ2js.showToast.call(void 0,
14646
15032
  t(`common.association.label`, {
14647
15033
  source: t(`entities.roles`, { count: 1 }),
14648
15034
  destination: t(`entities.users`, { count: 1 })
@@ -14661,7 +15047,7 @@ function UserRoleAdd({ user, refresh }) {
14661
15047
  const searchRoles = _react.useCallback.call(void 0,
14662
15048
  async (term) => {
14663
15049
  setRoles(
14664
- await _chunkL5F5ZN5Fjs.RoleService.findAllRolesUserNotIn({
15050
+ await _chunkAHXRHXZ2js.RoleService.findAllRolesUserNotIn({
14665
15051
  search: term,
14666
15052
  userId: user.id
14667
15053
  })
@@ -14729,16 +15115,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserRoleAdd, "UserRoleAdd");
14729
15115
  function RolesList() {
14730
15116
  const t = _nextintl.useTranslations.call(void 0, );
14731
15117
  const data = useDataListRetriever({
14732
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL5F5ZN5Fjs.RoleService.findAllRoles(params), "retriever"),
15118
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAHXRHXZ2js.RoleService.findAllRoles(params), "retriever"),
14733
15119
  retrieverParams: {},
14734
- module: _chunkL5F5ZN5Fjs.Modules.Role
15120
+ module: _chunkAHXRHXZ2js.Modules.Role
14735
15121
  });
14736
15122
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14737
15123
  ContentListTable,
14738
15124
  {
14739
15125
  data,
14740
15126
  fields: ["name" /* name */, "description" /* description */],
14741
- tableGeneratorType: _chunkL5F5ZN5Fjs.Modules.Role,
15127
+ tableGeneratorType: _chunkAHXRHXZ2js.Modules.Role,
14742
15128
  title: t(`entities.roles`, { count: 2 })
14743
15129
  }
14744
15130
  );
@@ -14751,16 +15137,16 @@ _chunk7QVYU63Ejs.__name.call(void 0, RolesList, "RolesList");
14751
15137
  function UserRolesList({ user }) {
14752
15138
  const t = _nextintl.useTranslations.call(void 0, );
14753
15139
  const data = useDataListRetriever({
14754
- retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkL5F5ZN5Fjs.RoleService.findAllRolesByUser(params), "retriever"),
15140
+ retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkAHXRHXZ2js.RoleService.findAllRolesByUser(params), "retriever"),
14755
15141
  retrieverParams: { userId: user.id },
14756
- module: _chunkL5F5ZN5Fjs.Modules.Role
15142
+ module: _chunkAHXRHXZ2js.Modules.Role
14757
15143
  });
14758
15144
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14759
15145
  ContentListTable,
14760
15146
  {
14761
15147
  data,
14762
15148
  fields: ["name" /* name */, "description" /* description */],
14763
- tableGeneratorType: _chunkL5F5ZN5Fjs.Modules.Role,
15149
+ tableGeneratorType: _chunkAHXRHXZ2js.Modules.Role,
14764
15150
  title: t(`entities.roles`, { count: 2 })
14765
15151
  }
14766
15152
  );
@@ -14867,7 +15253,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthRedirectUriInput, "OAuthRedirectUriInp
14867
15253
  function OAuthScopeSelector({
14868
15254
  value,
14869
15255
  onChange,
14870
- availableScopes = _chunkL5F5ZN5Fjs.AVAILABLE_OAUTH_SCOPES,
15256
+ availableScopes = _chunkAHXRHXZ2js.AVAILABLE_OAUTH_SCOPES,
14871
15257
  disabled = false,
14872
15258
  error,
14873
15259
  label = "Allowed Scopes"
@@ -15126,7 +15512,7 @@ function OAuthClientList({
15126
15512
  OAuthClientCard,
15127
15513
  {
15128
15514
  client,
15129
- onClick: () => _optionalChain([onClientClick, 'optionalCall', _368 => _368(client)]),
15515
+ onClick: () => _optionalChain([onClientClick, 'optionalCall', _375 => _375(client)]),
15130
15516
  onEdit: onEditClick ? () => onEditClick(client) : void 0,
15131
15517
  onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
15132
15518
  },
@@ -15142,11 +15528,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
15142
15528
  function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
15143
15529
  const isEditMode = !!client;
15144
15530
  const [formState, setFormState] = _react.useState.call(void 0, {
15145
- name: _optionalChain([client, 'optionalAccess', _369 => _369.name]) || "",
15146
- description: _optionalChain([client, 'optionalAccess', _370 => _370.description]) || "",
15147
- redirectUris: _optionalChain([client, 'optionalAccess', _371 => _371.redirectUris, 'optionalAccess', _372 => _372.length]) ? client.redirectUris : [""],
15148
- allowedScopes: _optionalChain([client, 'optionalAccess', _373 => _373.allowedScopes]) || [],
15149
- isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _374 => _374.isConfidential]), () => ( true))
15531
+ name: _optionalChain([client, 'optionalAccess', _376 => _376.name]) || "",
15532
+ description: _optionalChain([client, 'optionalAccess', _377 => _377.description]) || "",
15533
+ redirectUris: _optionalChain([client, 'optionalAccess', _378 => _378.redirectUris, 'optionalAccess', _379 => _379.length]) ? client.redirectUris : [""],
15534
+ allowedScopes: _optionalChain([client, 'optionalAccess', _380 => _380.allowedScopes]) || [],
15535
+ isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _381 => _381.isConfidential]), () => ( true))
15150
15536
  });
15151
15537
  const [errors, setErrors] = _react.useState.call(void 0, {});
15152
15538
  const validate = _react.useCallback.call(void 0, () => {
@@ -15173,7 +15559,7 @@ function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
15173
15559
  description: formState.description.trim() || void 0,
15174
15560
  redirectUris: formState.redirectUris.filter((uri) => uri.trim()),
15175
15561
  allowedScopes: formState.allowedScopes,
15176
- allowedGrantTypes: _chunkL5F5ZN5Fjs.DEFAULT_GRANT_TYPES,
15562
+ allowedGrantTypes: _chunkAHXRHXZ2js.DEFAULT_GRANT_TYPES,
15177
15563
  isConfidential: formState.isConfidential
15178
15564
  };
15179
15565
  await onSubmit(data);
@@ -15287,7 +15673,7 @@ function OAuthClientDetail({
15287
15673
  const [showRegenerateConfirm, setShowRegenerateConfirm] = _react.useState.call(void 0, false);
15288
15674
  const [isDeleting, setIsDeleting] = _react.useState.call(void 0, false);
15289
15675
  const [isRegenerating, setIsRegenerating] = _react.useState.call(void 0, false);
15290
- const copyToClipboard = _react.useCallback.call(void 0, async (text, field) => {
15676
+ const copyToClipboard2 = _react.useCallback.call(void 0, async (text, field) => {
15291
15677
  try {
15292
15678
  await navigator.clipboard.writeText(text);
15293
15679
  setCopiedField(field);
@@ -15339,7 +15725,7 @@ function OAuthClientDetail({
15339
15725
  {
15340
15726
  variant: "outline",
15341
15727
  size: "icon",
15342
- onClick: () => copyToClipboard(client.clientId, "clientId"),
15728
+ onClick: () => copyToClipboard2(client.clientId, "clientId"),
15343
15729
  title: "Copy Client ID",
15344
15730
  children: copiedField === "clientId" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Check, { className: "h-4 w-4 text-green-600" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Copy, { className: "h-4 w-4" })
15345
15731
  }
@@ -15374,7 +15760,7 @@ function OAuthClientDetail({
15374
15760
  ] }),
15375
15761
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
15376
15762
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
15377
- /* @__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([_chunkL5F5ZN5Fjs.OAUTH_SCOPE_DISPLAY, 'access', _375 => _375[scope], 'optionalAccess', _376 => _376.name]) || scope }, scope)) })
15763
+ /* @__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([_chunkAHXRHXZ2js.OAUTH_SCOPE_DISPLAY, 'access', _382 => _382[scope], 'optionalAccess', _383 => _383.name]) || scope }, scope)) })
15378
15764
  ] }),
15379
15765
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
15380
15766
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
@@ -15518,7 +15904,7 @@ function OAuthConsentScreen({
15518
15904
  if (error || !clientInfo) {
15519
15905
  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: [
15520
15906
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
15521
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _377 => _377.message]) || "Invalid authorization request. Please try again." })
15907
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _384 => _384.message]) || "Invalid authorization request. Please try again." })
15522
15908
  ] }) }) }) });
15523
15909
  }
15524
15910
  const { client, scopes } = clientInfo;
@@ -15658,7 +16044,7 @@ function WaitlistForm({ onSuccess }) {
15658
16044
  const t = _nextintl.useTranslations.call(void 0, );
15659
16045
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
15660
16046
  const [isSuccess, setIsSuccess] = _react.useState.call(void 0, false);
15661
- const config = _chunkOODZEX6Pjs.getWaitlistConfig.call(void 0, );
16047
+ const config = _chunkGP3MDKGEjs.getWaitlistConfig.call(void 0, );
15662
16048
  const questionnaireFields = _nullishCoalesce(config.questionnaire, () => ( []));
15663
16049
  const questionnaireSchema = questionnaireFields.reduce(
15664
16050
  (acc, field) => {
@@ -15724,7 +16110,7 @@ function WaitlistForm({ onSuccess }) {
15724
16110
  setIsSubmitting(true);
15725
16111
  try {
15726
16112
  const now = (/* @__PURE__ */ new Date()).toISOString();
15727
- await _chunkL5F5ZN5Fjs.WaitlistService.submit({
16113
+ await _chunkAHXRHXZ2js.WaitlistService.submit({
15728
16114
  id: values.id,
15729
16115
  email: values.email,
15730
16116
  gdprConsent: values.gdprConsent,
@@ -15734,7 +16120,7 @@ function WaitlistForm({ onSuccess }) {
15734
16120
  questionnaire: values.questionnaire
15735
16121
  });
15736
16122
  setIsSuccess(true);
15737
- _optionalChain([onSuccess, 'optionalCall', _378 => _378()]);
16123
+ _optionalChain([onSuccess, 'optionalCall', _385 => _385()]);
15738
16124
  } catch (e) {
15739
16125
  errorToast({ error: e });
15740
16126
  } finally {
@@ -15800,7 +16186,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, WaitlistForm, "WaitlistForm");
15800
16186
 
15801
16187
 
15802
16188
  function WaitlistHeroSection() {
15803
- const config = _chunkOODZEX6Pjs.getWaitlistConfig.call(void 0, );
16189
+ const config = _chunkGP3MDKGEjs.getWaitlistConfig.call(void 0, );
15804
16190
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "relative overflow-hidden py-16 md:py-24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "container mx-auto px-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid gap-12 lg:grid-cols-2 lg:items-center", children: [
15805
16191
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
15806
16192
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
@@ -15845,7 +16231,7 @@ function WaitlistConfirmation({ code }) {
15845
16231
  _react.useEffect.call(void 0, () => {
15846
16232
  async function confirmEmail() {
15847
16233
  try {
15848
- await _chunkL5F5ZN5Fjs.WaitlistService.confirm(code);
16234
+ await _chunkAHXRHXZ2js.WaitlistService.confirm(code);
15849
16235
  setState("success");
15850
16236
  } catch (error) {
15851
16237
  setState("error");
@@ -15986,7 +16372,7 @@ function WaitlistList() {
15986
16372
  const loadEntries = _react.useCallback.call(void 0, async () => {
15987
16373
  setIsLoading(true);
15988
16374
  try {
15989
- const result = await _chunkL5F5ZN5Fjs.WaitlistService.findMany({
16375
+ const result = await _chunkAHXRHXZ2js.WaitlistService.findMany({
15990
16376
  status: statusFilter === "all" ? void 0 : statusFilter,
15991
16377
  fetchAll: true
15992
16378
  });
@@ -16003,8 +16389,8 @@ function WaitlistList() {
16003
16389
  }, [loadEntries]);
16004
16390
  const handleInvite = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (entry) => {
16005
16391
  try {
16006
- await _chunkL5F5ZN5Fjs.WaitlistService.invite(entry.id);
16007
- _chunkL5F5ZN5Fjs.showToast.call(void 0, t("waitlist.admin.invite_sent", { email: entry.email }));
16392
+ await _chunkAHXRHXZ2js.WaitlistService.invite(entry.id);
16393
+ _chunkAHXRHXZ2js.showToast.call(void 0, t("waitlist.admin.invite_sent", { email: entry.email }));
16008
16394
  loadEntries();
16009
16395
  } catch (error) {
16010
16396
  errorToast({ error });
@@ -16489,5 +16875,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, WaitlistList, "WaitlistList");
16489
16875
 
16490
16876
 
16491
16877
 
16492
- 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.UserStanadaloneDetails = UserStanadaloneDetails; 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.BackupCodesDialog = BackupCodesDialog; exports.TotpInput = TotpInput; exports.DisableTwoFactorDialog = DisableTwoFactorDialog; exports.PasskeyList = PasskeyList; exports.PasskeySetupDialog = PasskeySetupDialog; exports.TotpAuthenticatorList = TotpAuthenticatorList; exports.TotpSetupDialog = TotpSetupDialog; exports.TwoFactorSettings = TwoFactorSettings; exports.SecurityContainer = SecurityContainer; 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.PasskeyButton = PasskeyButton; exports.TwoFactorChallenge = TwoFactorChallenge; 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.WaitlistQuestionnaireRenderer = WaitlistQuestionnaireRenderer; exports.WaitlistForm = WaitlistForm; exports.WaitlistHeroSection = WaitlistHeroSection; exports.WaitlistSuccessState = WaitlistSuccessState; exports.WaitlistConfirmation = WaitlistConfirmation; exports.WaitlistList = WaitlistList; 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;
16493
- //# sourceMappingURL=chunk-24E7WD4J.js.map
16878
+
16879
+
16880
+
16881
+ 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.UserStanadaloneDetails = UserStanadaloneDetails; 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.BackupCodesDialog = BackupCodesDialog; exports.TotpInput = TotpInput; exports.DisableTwoFactorDialog = DisableTwoFactorDialog; exports.PasskeyList = PasskeyList; exports.PasskeySetupDialog = PasskeySetupDialog; exports.TotpAuthenticatorList = TotpAuthenticatorList; exports.TotpSetupDialog = TotpSetupDialog; exports.TwoFactorSettings = TwoFactorSettings; exports.SecurityContainer = SecurityContainer; 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.PasskeyButton = PasskeyButton; exports.TwoFactorChallenge = TwoFactorChallenge; 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.ReferralCodeCapture = ReferralCodeCapture; exports.ReferralWidget = ReferralWidget; exports.ReferralDialog = ReferralDialog; 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.WaitlistQuestionnaireRenderer = WaitlistQuestionnaireRenderer; exports.WaitlistForm = WaitlistForm; exports.WaitlistHeroSection = WaitlistHeroSection; exports.WaitlistSuccessState = WaitlistSuccessState; exports.WaitlistConfirmation = WaitlistConfirmation; exports.WaitlistList = WaitlistList; 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;
16882
+ //# sourceMappingURL=chunk-XRBK4J6U.js.map