@carlonicora/nextjs-jsonapi 1.29.1 → 1.29.3

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 (102) hide show
  1. package/dist/{BlockNoteEditor-7BDLLHRA.js → BlockNoteEditor-CJWHJRG3.js} +17 -17
  2. package/dist/BlockNoteEditor-CJWHJRG3.js.map +1 -0
  3. package/dist/{BlockNoteEditor-F5KCNLVF.mjs → BlockNoteEditor-ZET7ANBC.mjs} +7 -7
  4. package/dist/BlockNoteEditor-ZET7ANBC.mjs.map +1 -0
  5. package/dist/billing/index.js +334 -333
  6. package/dist/billing/index.js.map +1 -1
  7. package/dist/billing/index.mjs +8 -7
  8. package/dist/billing/index.mjs.map +1 -1
  9. package/dist/{chunk-YLSLXQ3O.mjs → chunk-3HGZMKT4.mjs} +494 -524
  10. package/dist/chunk-3HGZMKT4.mjs.map +1 -0
  11. package/dist/{chunk-7M7NPKOF.js → chunk-6HQ6CPVL.js} +916 -946
  12. package/dist/chunk-6HQ6CPVL.js.map +1 -0
  13. package/dist/{chunk-DU64WMZD.mjs → chunk-NYNLJEPF.mjs} +4 -4
  14. package/dist/chunk-NYNLJEPF.mjs.map +1 -0
  15. package/dist/{chunk-J22NEVSK.js → chunk-UYBCHXXL.js} +4 -4
  16. package/dist/chunk-UYBCHXXL.js.map +1 -0
  17. package/dist/client/index.js +3 -3
  18. package/dist/client/index.mjs +2 -2
  19. package/dist/components/index.js +3 -3
  20. package/dist/components/index.mjs +2 -2
  21. package/dist/contexts/index.js +3 -3
  22. package/dist/contexts/index.mjs +2 -2
  23. package/dist/core/index.js +2 -2
  24. package/dist/core/index.mjs +1 -1
  25. package/dist/index.js +2 -2
  26. package/dist/index.mjs +1 -1
  27. package/dist/server/index.js +3 -3
  28. package/dist/server/index.mjs +1 -1
  29. package/package.json +1 -1
  30. package/src/components/details/AllowedUsersDetails.tsx +1 -1
  31. package/src/components/editors/BlockNoteEditor.tsx +5 -5
  32. package/src/components/forms/CommonAssociationForm.tsx +9 -9
  33. package/src/components/forms/CommonDeleter.tsx +14 -8
  34. package/src/components/forms/CommonEditorButtons.tsx +2 -2
  35. package/src/components/forms/CommonEditorHeader.tsx +4 -4
  36. package/src/components/forms/CommonEditorTrigger.tsx +1 -1
  37. package/src/components/forms/FileUploader.tsx +8 -8
  38. package/src/components/forms/FormDateTime.tsx +6 -12
  39. package/src/components/forms/FormInput.tsx +4 -20
  40. package/src/components/forms/PasswordInput.tsx +1 -1
  41. package/src/components/navigations/Breadcrumb.tsx +1 -1
  42. package/src/components/navigations/Header.tsx +2 -2
  43. package/src/components/navigations/RecentPagesNavigator.tsx +3 -3
  44. package/src/components/tables/ContentTableSearch.tsx +1 -1
  45. package/src/contexts/CommonContext.tsx +2 -2
  46. package/src/core/abstracts/AbstractService.ts +2 -2
  47. package/src/features/auth/components/details/LandingComponent.tsx +5 -5
  48. package/src/features/auth/components/forms/AcceptInvitation.tsx +16 -22
  49. package/src/features/auth/components/forms/ActivateAccount.tsx +8 -8
  50. package/src/features/auth/components/forms/ForgotPassword.tsx +9 -9
  51. package/src/features/auth/components/forms/Login.tsx +12 -12
  52. package/src/features/auth/components/forms/Register.tsx +19 -21
  53. package/src/features/auth/components/forms/ResetPassword.tsx +12 -18
  54. package/src/features/billing/stripe-subscription/hooks/useSubscriptionWizard.ts +5 -4
  55. package/src/features/company/components/details/TokenStatusIndicator.tsx +7 -7
  56. package/src/features/company/components/forms/CompanyConfigurationEditor.tsx +2 -2
  57. package/src/features/company/components/forms/CompanyDeleter.tsx +13 -11
  58. package/src/features/company/components/forms/CompanyEditor.tsx +7 -13
  59. package/src/features/company/components/lists/CompaniesList.tsx +1 -1
  60. package/src/features/company/contexts/CompanyContext.tsx +1 -1
  61. package/src/features/company/hooks/useCompanyTableStructure.tsx +2 -2
  62. package/src/features/content/components/lists/ContentsList.tsx +1 -1
  63. package/src/features/content/components/lists/ContentsListById.tsx +1 -1
  64. package/src/features/content/components/lists/RelevantContentsList.tsx +1 -1
  65. package/src/features/content/hooks/useContentTableStructure.tsx +5 -5
  66. package/src/features/notification/components/containers/NotificationsListContainer.tsx +2 -2
  67. package/src/features/notification/components/lists/NotificationsList.tsx +3 -3
  68. package/src/features/notification/components/modals/NotificationModal.tsx +3 -5
  69. package/src/features/notification/components/notifications/Notification.tsx +4 -4
  70. package/src/features/notification/contexts/NotificationContext.tsx +2 -2
  71. package/src/features/role/components/details/RoleDetails.tsx +1 -1
  72. package/src/features/role/components/forms/FormRoles.tsx +2 -2
  73. package/src/features/role/components/forms/RemoveUserFromRole.tsx +9 -11
  74. package/src/features/role/components/forms/UserRoleAdd.tsx +18 -18
  75. package/src/features/role/components/lists/RolesList.tsx +1 -1
  76. package/src/features/role/components/lists/UserRolesList.tsx +1 -1
  77. package/src/features/role/contexts/RoleContext.tsx +2 -2
  78. package/src/features/role/hooks/useRoleTableStructure.tsx +3 -3
  79. package/src/features/user/components/containers/UsersListContainer.tsx +2 -2
  80. package/src/features/user/components/details/UserDetails.tsx +6 -6
  81. package/src/features/user/components/forms/RoleUserAdd.tsx +8 -8
  82. package/src/features/user/components/forms/UserAvatarEditor.tsx +2 -2
  83. package/src/features/user/components/forms/UserEditor.tsx +21 -25
  84. package/src/features/user/components/forms/UserReactivator.tsx +7 -7
  85. package/src/features/user/components/forms/UserResentInvitationEmail.tsx +9 -9
  86. package/src/features/user/components/forms/UserSelector.tsx +4 -9
  87. package/src/features/user/components/lists/AdminUsersList.tsx +1 -1
  88. package/src/features/user/components/lists/CompanyUsersList.tsx +1 -1
  89. package/src/features/user/components/lists/RelevantUsersList.tsx +1 -1
  90. package/src/features/user/components/lists/RoleUsersList.tsx +1 -1
  91. package/src/features/user/components/lists/UsersList.tsx +1 -1
  92. package/src/features/user/components/lists/UsersListByContentIds.tsx +1 -1
  93. package/src/features/user/components/widgets/UserSearchPopover.tsx +3 -3
  94. package/src/features/user/contexts/UserContext.tsx +5 -5
  95. package/src/features/user/hooks/useUserTableStructure.tsx +6 -6
  96. package/src/utils/blocknote-diff.util.ts +1 -1
  97. package/dist/BlockNoteEditor-7BDLLHRA.js.map +0 -1
  98. package/dist/BlockNoteEditor-F5KCNLVF.mjs.map +0 -1
  99. package/dist/chunk-7M7NPKOF.js.map +0 -1
  100. package/dist/chunk-DU64WMZD.mjs.map +0 -1
  101. package/dist/chunk-J22NEVSK.js.map +0 -1
  102. package/dist/chunk-YLSLXQ3O.mjs.map +0 -1
@@ -36,7 +36,7 @@ import {
36
36
  rehydrate,
37
37
  useComposedRefs,
38
38
  useIsMobile
39
- } from "./chunk-DU64WMZD.mjs";
39
+ } from "./chunk-NYNLJEPF.mjs";
40
40
  import {
41
41
  JsonApiContext
42
42
  } from "./chunk-VOXD3ZLY.mjs";
@@ -1074,10 +1074,10 @@ function AddUserToRoleInternal({ role, refresh }) {
1074
1074
  setUsers(users.filter((u) => u.id !== user.id));
1075
1075
  triggerAssociationToast({
1076
1076
  t,
1077
- source: t(`types.users`, { count: 1 }),
1078
- destination: t(`types.roles`, { count: 1 }),
1077
+ source: t(`entities.users`, { count: 1 }),
1078
+ destination: t(`entities.roles`, { count: 1 }),
1079
1079
  source_name: user.name,
1080
- destination_name: t(`foundations.role.roles`, { role: role.id.replaceAll(`-`, ``) })
1080
+ destination_name: t(`role.roles`, { role: role.id.replaceAll(`-`, ``) })
1081
1081
  });
1082
1082
  refresh();
1083
1083
  }, "addUserToRole");
@@ -1096,8 +1096,8 @@ function AddUserToRoleInternal({ role, refresh }) {
1096
1096
  /* @__PURE__ */ jsx5(
1097
1097
  CommonAssociationTrigger,
1098
1098
  {
1099
- sourceType: t(`types.users`, { count: 1 }),
1100
- destinationType: t(`types.roles`, { count: 1 }),
1099
+ sourceType: t(`entities.users`, { count: 1 }),
1100
+ destinationType: t(`entities.roles`, { count: 1 }),
1101
1101
  onTrigger: () => setShow(true)
1102
1102
  }
1103
1103
  ),
@@ -1107,9 +1107,9 @@ function AddUserToRoleInternal({ role, refresh }) {
1107
1107
  show,
1108
1108
  setShow,
1109
1109
  data,
1110
- source: t(`types.users`, { count: 1 }),
1111
- destination: t(`types.roles`, { count: 1 }),
1112
- destinationName: t(`foundations.role.roles`, { role: role.id.replaceAll(`-`, ``) }),
1110
+ source: t(`entities.users`, { count: 1 }),
1111
+ destination: t(`entities.roles`, { count: 1 }),
1112
+ destinationName: t(`role.roles`, { role: role.id.replaceAll(`-`, ``) }),
1113
1113
  children: /* @__PURE__ */ jsx5(UserListInAdd, { data, existingUsers, setSelectedUser: addUserToRole })
1114
1114
  }
1115
1115
  )
@@ -6821,7 +6821,7 @@ function UserAvatarEditor({ user, file, setFile, resetImage, setResetImage }) {
6821
6821
  Image,
6822
6822
  {
6823
6823
  src: file ? URL.createObjectURL(file) : user?.avatar || "",
6824
- alt: t(`generic.avatar`),
6824
+ alt: t(`common.avatar`),
6825
6825
  width: 200,
6826
6826
  height: 200
6827
6827
  }
@@ -6840,7 +6840,7 @@ function UserAvatarEditor({ user, file, setFile, resetImage, setResetImage }) {
6840
6840
  setFile(null);
6841
6841
  setResetImage(true);
6842
6842
  },
6843
- children: t(`generic.buttons.remove`)
6843
+ children: t(`ui.buttons.remove`)
6844
6844
  }
6845
6845
  )
6846
6846
  ] });
@@ -6911,8 +6911,8 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
6911
6911
  }, [company]);
6912
6912
  const formSchema = z.object({
6913
6913
  id: z.uuidv4(),
6914
- name: z.string().min(1, { message: t(`foundations.user.fields.name.error`) }),
6915
- email: z.string().min(1, { message: t(`generic.fields.email.error`) }),
6914
+ name: z.string().min(1, { message: t(`user.fields.name.error`) }),
6915
+ email: z.string().min(1, { message: t(`common.fields.email.error`) }),
6916
6916
  password: z.string().optional(),
6917
6917
  title: z.string().optional(),
6918
6918
  bio: z.string().optional(),
@@ -6943,9 +6943,9 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
6943
6943
  if (existingUser) {
6944
6944
  form.setError("email", {
6945
6945
  type: "manual",
6946
- message: t(`foundations.user.errors.email_exists`)
6946
+ message: t(`user.errors.email_exists`)
6947
6947
  });
6948
- errorToast({ title: t(`foundations.user.errors.email_exists`), error: "" });
6948
+ errorToast({ title: t(`user.errors.email_exists`), error: "" });
6949
6949
  return;
6950
6950
  }
6951
6951
  } catch (error) {
@@ -6990,7 +6990,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
6990
6990
  router.push(generateUrl({ page: Modules.User, id: updatedUser.id }));
6991
6991
  }
6992
6992
  } catch (error) {
6993
- errorToast({ title: user ? t(`generic.errors.update`) : t(`generic.errors.create`), error });
6993
+ errorToast({ title: user ? t(`common.errors.update`) : t(`common.errors.create`), error });
6994
6994
  }
6995
6995
  }, "onSubmit");
6996
6996
  useEffect10(() => {
@@ -7031,7 +7031,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
7031
7031
  {
7032
7032
  className: `flex max-h-[70vh] ${canChangeRoles ? `max-w-[90vw]` : `max-w-3xl`} min-h-3xl max-h-[90vh] flex-col overflow-y-auto`,
7033
7033
  children: [
7034
- /* @__PURE__ */ jsx53(CommonEditorHeader, { type: t(`types.users`, { count: 1 }), name: user?.name }),
7034
+ /* @__PURE__ */ jsx53(CommonEditorHeader, { type: t(`entities.users`, { count: 1 }), name: user?.name }),
7035
7035
  /* @__PURE__ */ jsx53(Form, { ...form, children: /* @__PURE__ */ jsxs24("form", { onSubmit: form.handleSubmit(onSubmit), className: `flex w-full flex-col gap-y-4`, children: [
7036
7036
  /* @__PURE__ */ jsxs24("div", { className: `flex flex-row gap-x-4`, children: [
7037
7037
  /* @__PURE__ */ jsx53("div", { className: `flex w-40 flex-col justify-start gap-y-2`, children: /* @__PURE__ */ jsx53(
@@ -7050,8 +7050,8 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
7050
7050
  {
7051
7051
  form,
7052
7052
  id: "name",
7053
- name: t(`foundations.user.fields.name.label`),
7054
- placeholder: t(`foundations.user.fields.name.placeholder`)
7053
+ name: t(`user.fields.name.label`),
7054
+ placeholder: t(`user.fields.name.placeholder`)
7055
7055
  }
7056
7056
  ),
7057
7057
  /* @__PURE__ */ jsx53(
@@ -7059,8 +7059,8 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
7059
7059
  {
7060
7060
  form,
7061
7061
  id: "email",
7062
- name: t(`generic.fields.email.label`),
7063
- placeholder: t(`generic.fields.email.placeholder`)
7062
+ name: t(`common.fields.email.label`),
7063
+ placeholder: t(`common.fields.email.placeholder`)
7064
7064
  }
7065
7065
  ),
7066
7066
  /* @__PURE__ */ jsx53(
@@ -7068,8 +7068,8 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
7068
7068
  {
7069
7069
  form,
7070
7070
  id: "phone",
7071
- name: t(`foundations.user.fields.phone.label`),
7072
- placeholder: t(`foundations.user.fields.phone.placeholder`)
7071
+ name: t(`user.fields.phone.label`),
7072
+ placeholder: t(`user.fields.phone.placeholder`)
7073
7073
  }
7074
7074
  ),
7075
7075
  /* @__PURE__ */ jsx53(
@@ -7077,8 +7077,8 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
7077
7077
  {
7078
7078
  form,
7079
7079
  id: "password",
7080
- name: t(`foundations.user.fields.password.label`),
7081
- placeholder: t(`foundations.user.fields.password.placeholder`)
7080
+ name: t(`user.fields.password.label`),
7081
+ placeholder: t(`user.fields.password.placeholder`)
7082
7082
  }
7083
7083
  ),
7084
7084
  /* @__PURE__ */ jsx53(
@@ -7086,8 +7086,8 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
7086
7086
  {
7087
7087
  form,
7088
7088
  id: "title",
7089
- name: t(`foundations.user.fields.title.label`),
7090
- placeholder: t(`foundations.user.fields.title.placeholder`)
7089
+ name: t(`user.fields.title.label`),
7090
+ placeholder: t(`user.fields.title.placeholder`)
7091
7091
  }
7092
7092
  ),
7093
7093
  /* @__PURE__ */ jsx53(
@@ -7095,24 +7095,17 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
7095
7095
  {
7096
7096
  form,
7097
7097
  id: "bio",
7098
- name: t(`foundations.user.fields.bio.label`),
7099
- placeholder: t(`foundations.user.fields.bio.placeholder`),
7098
+ name: t(`user.fields.bio.label`),
7099
+ placeholder: t(`user.fields.bio.placeholder`),
7100
7100
  className: "min-h-40"
7101
7101
  }
7102
7102
  )
7103
7103
  ] }),
7104
7104
  canChangeRoles && /* @__PURE__ */ jsxs24("div", { className: "flex w-1/3 flex-col", children: [
7105
- canChangeRoles && /* @__PURE__ */ jsx53(FormRoles, { form, id: "roleIds", name: t(`types.roles`, { count: 2 }), roles }),
7105
+ canChangeRoles && /* @__PURE__ */ jsx53(FormRoles, { form, id: "roleIds", name: t(`entities.roles`, { count: 2 }), roles }),
7106
7106
  !user && /* @__PURE__ */ jsxs24("div", { className: "flex flex-col gap-y-4", children: [
7107
- /* @__PURE__ */ jsx53("div", { className: "text-sm font-semibold", children: t(`foundations.user.send_activation_email`) }),
7108
- /* @__PURE__ */ jsx53(
7109
- FormCheckbox,
7110
- {
7111
- form,
7112
- id: "sendInvitationEmail",
7113
- name: t(`foundations.user.send_activation_email`)
7114
- }
7115
- )
7107
+ /* @__PURE__ */ jsx53("div", { className: "text-sm font-semibold", children: t(`user.send_activation_email`) }),
7108
+ /* @__PURE__ */ jsx53(FormCheckbox, { form, id: "sendInvitationEmail", name: t(`user.send_activation_email`) })
7116
7109
  ] })
7117
7110
  ] })
7118
7111
  ] }),
@@ -7167,7 +7160,7 @@ function CommonAssociationTrigger({
7167
7160
  const t = useTranslations5();
7168
7161
  if (hasDestination)
7169
7162
  return /* @__PURE__ */ jsx54("div", { className: "hover:text-accent cursor-pointer", onClick: onTrigger, children: "Join" });
7170
- return /* @__PURE__ */ jsx54(Button, { variant: `outline`, size: `sm`, onClick: onTrigger, children: t(`generic.association.label`, {
7163
+ return /* @__PURE__ */ jsx54(Button, { variant: `outline`, size: `sm`, onClick: onTrigger, children: t(`common.association.label`, {
7171
7164
  source: sourceType,
7172
7165
  destination: destinationType
7173
7166
  }) });
@@ -7199,11 +7192,11 @@ function CommonAssociationCommandDialog({
7199
7192
  }, [show, searchTerm]);
7200
7193
  return /* @__PURE__ */ jsxs25(CommandDialog, { open: show, onOpenChange: setShow, children: [
7201
7194
  /* @__PURE__ */ jsxs25(DialogHeader, { className: "flex flex-col items-start p-4 pb-0", children: [
7202
- /* @__PURE__ */ jsx54(DialogTitle, { children: t(`generic.association.label`, {
7195
+ /* @__PURE__ */ jsx54(DialogTitle, { children: t(`common.association.label`, {
7203
7196
  source,
7204
7197
  destination
7205
7198
  }) }),
7206
- /* @__PURE__ */ jsx54(DialogDescription, { children: t(`generic.association.description`, {
7199
+ /* @__PURE__ */ jsx54(DialogDescription, { children: t(`common.association.description`, {
7207
7200
  source,
7208
7201
  destination,
7209
7202
  destination_name: destinationName
@@ -7213,13 +7206,13 @@ function CommonAssociationCommandDialog({
7213
7206
  /* @__PURE__ */ jsx54(
7214
7207
  CommandInput,
7215
7208
  {
7216
- placeholder: t(`generic.search.placeholder`, { type: source }),
7209
+ placeholder: t(`ui.search.placeholder`, { type: source }),
7217
7210
  value: searchTerm,
7218
7211
  onValueChange: setSearchTerm
7219
7212
  }
7220
7213
  ),
7221
7214
  /* @__PURE__ */ jsxs25(CommandList, { className: "mt-3 h-auto max-h-96 min-h-96 max-w-full overflow-y-auto overflow-x-hidden", children: [
7222
- /* @__PURE__ */ jsx54(CommandEmpty, { children: t(`generic.search.no_results`, { type: source }) }),
7215
+ /* @__PURE__ */ jsx54(CommandEmpty, { children: t(`ui.search.no_results`, { type: source }) }),
7223
7216
  children
7224
7217
  ] })
7225
7218
  ] })
@@ -7229,12 +7222,12 @@ __name(CommonAssociationCommandDialog, "CommonAssociationCommandDialog");
7229
7222
  var triggerAssociationToast = /* @__PURE__ */ __name((params) => {
7230
7223
  if (params.level) {
7231
7224
  toast.message(
7232
- params.t(`generic.association.label`, {
7225
+ params.t(`common.association.label`, {
7233
7226
  source: params.source,
7234
7227
  destination: params.destination
7235
7228
  }),
7236
7229
  {
7237
- description: params.t(`generic.association.success_level`, {
7230
+ description: params.t(`common.association.success_level`, {
7238
7231
  source: params.source,
7239
7232
  destination: params.destination,
7240
7233
  source_name: params.source_name,
@@ -7245,12 +7238,12 @@ var triggerAssociationToast = /* @__PURE__ */ __name((params) => {
7245
7238
  );
7246
7239
  } else {
7247
7240
  toast.message(
7248
- params.t(`generic.association.label`, {
7241
+ params.t(`common.association.label`, {
7249
7242
  source: params.source,
7250
7243
  destination: params.destination
7251
7244
  }),
7252
7245
  {
7253
- description: params.t(`generic.association.success`, {
7246
+ description: params.t(`common.association.success`, {
7254
7247
  source: params.source,
7255
7248
  destination: params.destination,
7256
7249
  source_name: params.source_name,
@@ -7317,18 +7310,28 @@ function CommonDeleter({ deleteFunction, redirectTo, type, forceShow }) {
7317
7310
  setOpen(false);
7318
7311
  if (redirectTo) router.push(redirectTo);
7319
7312
  } catch (error) {
7320
- errorToast({ title: t(`generic.errors.delete`), error });
7313
+ errorToast({ title: t(`common.errors.delete`), error });
7321
7314
  }
7322
7315
  setIsDeleting(false);
7323
7316
  }, "handleDelete");
7324
7317
  return /* @__PURE__ */ jsxs27(AlertDialog, { open, onOpenChange: setOpen, children: [
7325
- forceShow ? null : /* @__PURE__ */ jsx56(AlertDialogTrigger, { children: /* @__PURE__ */ jsx56(Button, { render: /* @__PURE__ */ jsx56("div", {}), nativeButton: false, size: "sm", variant: "ghost", className: "text-muted-foreground hover:text-destructive", children: /* @__PURE__ */ jsx56(Trash2Icon, {}) }) }),
7318
+ forceShow ? null : /* @__PURE__ */ jsx56(AlertDialogTrigger, { children: /* @__PURE__ */ jsx56(
7319
+ Button,
7320
+ {
7321
+ render: /* @__PURE__ */ jsx56("div", {}),
7322
+ nativeButton: false,
7323
+ size: "sm",
7324
+ variant: "ghost",
7325
+ className: "text-muted-foreground hover:text-destructive",
7326
+ children: /* @__PURE__ */ jsx56(Trash2Icon, {})
7327
+ }
7328
+ ) }),
7326
7329
  /* @__PURE__ */ jsxs27(AlertDialogContent, { className: `flex max-h-[70vh] max-w-3xl flex-col overflow-y-auto`, children: [
7327
7330
  /* @__PURE__ */ jsxs27(AlertDialogHeader, { children: [
7328
- /* @__PURE__ */ jsx56(AlertDialogTitle, { children: t(`generic.delete.title`, { type: t(`types.${type}`, { count: 1 }) }) }),
7329
- /* @__PURE__ */ jsx56(AlertDialogDescription, { children: t(`generic.delete.subtitle`, { type: t(`types.${type}`, { count: 1 }) }) })
7331
+ /* @__PURE__ */ jsx56(AlertDialogTitle, { children: t(`common.delete.title`, { type: t(`entities.${type}`, { count: 1 }) }) }),
7332
+ /* @__PURE__ */ jsx56(AlertDialogDescription, { children: t(`common.delete.subtitle`, { type: t(`entities.${type}`, { count: 1 }) }) })
7330
7333
  ] }),
7331
- /* @__PURE__ */ jsx56("div", { className: "text-destructive p-4 text-sm", children: t(`generic.delete.description`, { type: t(`types.${type}`, { count: 1 }) }) }),
7334
+ /* @__PURE__ */ jsx56("div", { className: "text-destructive p-4 text-sm", children: t(`common.delete.description`, { type: t(`entities.${type}`, { count: 1 }) }) }),
7332
7335
  /* @__PURE__ */ jsxs27("div", { className: "flex justify-end", children: [
7333
7336
  /* @__PURE__ */ jsx56(
7334
7337
  Button,
@@ -7338,7 +7341,7 @@ function CommonDeleter({ deleteFunction, redirectTo, type, forceShow }) {
7338
7341
  type: `button`,
7339
7342
  onClick: () => setOpen(false),
7340
7343
  disabled: isDeleting,
7341
- children: t(`generic.buttons.cancel`)
7344
+ children: t(`ui.buttons.cancel`)
7342
7345
  }
7343
7346
  ),
7344
7347
  /* @__PURE__ */ jsx56(
@@ -7352,9 +7355,9 @@ function CommonDeleter({ deleteFunction, redirectTo, type, forceShow }) {
7352
7355
  variant: "destructive",
7353
7356
  disabled: isDeleting,
7354
7357
  children: isDeleting ? /* @__PURE__ */ jsxs27(Fragment4, { children: [
7355
- t(`generic.buttons.is_deleting`),
7358
+ t(`ui.buttons.is_deleting`),
7356
7359
  /* @__PURE__ */ jsx56(LoaderCircleIcon, { className: "animate-spin-slow h-5 w-5" })
7357
- ] }) : t(`generic.buttons.delete`)
7360
+ ] }) : t(`ui.buttons.delete`)
7358
7361
  }
7359
7362
  )
7360
7363
  ] })
@@ -7377,10 +7380,10 @@ function CommonEditorButtons({ isEdit, form, disabled, setOpen }) {
7377
7380
  type: `button`,
7378
7381
  onClick: () => setOpen(false),
7379
7382
  "data-testid": `modal-button-cancel`,
7380
- children: t(`generic.buttons.cancel`)
7383
+ children: t(`ui.buttons.cancel`)
7381
7384
  }
7382
7385
  ),
7383
- /* @__PURE__ */ jsx57(Button, { type: "submit", disabled: form.formState.isSubmitting || disabled, "data-testid": `modal-button-create`, children: isEdit ? t(`generic.buttons.confirm_update`) : t(`generic.buttons.confirm_create`) })
7386
+ /* @__PURE__ */ jsx57(Button, { type: "submit", disabled: form.formState.isSubmitting || disabled, "data-testid": `modal-button-create`, children: isEdit ? t(`ui.buttons.confirm_update`) : t(`ui.buttons.confirm_create`) })
7384
7387
  ] });
7385
7388
  }
7386
7389
  __name(CommonEditorButtons, "CommonEditorButtons");
@@ -7391,13 +7394,13 @@ import { jsx as jsx58, jsxs as jsxs29 } from "react/jsx-runtime";
7391
7394
  function CommonEditorHeader({ type, name }) {
7392
7395
  const t = useTranslations7();
7393
7396
  return /* @__PURE__ */ jsxs29(DialogHeader, { children: [
7394
- /* @__PURE__ */ jsx58(DialogTitle, { children: name ? t(`generic.edit.update.title`, {
7397
+ /* @__PURE__ */ jsx58(DialogTitle, { children: name ? t(`common.edit.update.title`, {
7395
7398
  type
7396
- }) : t(`generic.edit.create.title`, { type }) }),
7397
- /* @__PURE__ */ jsx58(DialogDescription, { children: name ? t(`generic.edit.update.description`, {
7399
+ }) : t(`common.edit.create.title`, { type }) }),
7400
+ /* @__PURE__ */ jsx58(DialogDescription, { children: name ? t(`common.edit.update.description`, {
7398
7401
  type,
7399
7402
  name
7400
- }) : t(`generic.edit.create.description`, {
7403
+ }) : t(`common.edit.create.description`, {
7401
7404
  type
7402
7405
  }) })
7403
7406
  ] });
@@ -7410,7 +7413,7 @@ import { useTranslations as useTranslations8 } from "next-intl";
7410
7413
  import { jsx as jsx59 } from "react/jsx-runtime";
7411
7414
  function CommonEditorTrigger({ isEdit, edit, create }) {
7412
7415
  const t = useTranslations8();
7413
- return /* @__PURE__ */ jsx59(DialogTrigger, { children: isEdit ? /* @__PURE__ */ jsx59(Button, { render: /* @__PURE__ */ jsx59("div", {}), nativeButton: false, size: "sm", variant: `ghost`, className: "text-muted-foreground", children: /* @__PURE__ */ jsx59(PencilIcon, {}) }) : /* @__PURE__ */ jsx59(Button, { render: /* @__PURE__ */ jsx59("div", {}), nativeButton: false, size: "sm", variant: `outline`, children: create ? create : t(`generic.buttons.create`) }) });
7416
+ return /* @__PURE__ */ jsx59(DialogTrigger, { children: isEdit ? /* @__PURE__ */ jsx59(Button, { render: /* @__PURE__ */ jsx59("div", {}), nativeButton: false, size: "sm", variant: `ghost`, className: "text-muted-foreground", children: /* @__PURE__ */ jsx59(PencilIcon, {}) }) : /* @__PURE__ */ jsx59(Button, { render: /* @__PURE__ */ jsx59("div", {}), nativeButton: false, size: "sm", variant: `outline`, children: create ? create : t(`ui.buttons.create`) }) });
7414
7417
  }
7415
7418
  __name(CommonEditorTrigger, "CommonEditorTrigger");
7416
7419
 
@@ -7738,8 +7741,8 @@ var FileUploader = forwardRef4(
7738
7741
  (acceptedFiles, rejectedFiles) => {
7739
7742
  const files = acceptedFiles;
7740
7743
  if (!files) {
7741
- toast3.error(t("generic.errors.file"), {
7742
- description: t("generic.errors.file_large")
7744
+ toast3.error(t("common.errors.file"), {
7745
+ description: t("common.errors.file_large")
7743
7746
  });
7744
7747
  return;
7745
7748
  }
@@ -7756,13 +7759,13 @@ var FileUploader = forwardRef4(
7756
7759
  if (rejectedFiles.length > 0) {
7757
7760
  for (let i = 0; i < rejectedFiles.length; i++) {
7758
7761
  if (rejectedFiles[i].errors[0]?.code === "file-too-large") {
7759
- toast3.error(t("generic.errors.file"), {
7760
- description: t(`generic.errors.file_max`, { size: maxSize / 1024 / 1024 })
7762
+ toast3.error(t("common.errors.file"), {
7763
+ description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
7761
7764
  });
7762
7765
  break;
7763
7766
  }
7764
7767
  if (rejectedFiles[i].errors[0]?.message) {
7765
- toast3.error(t(`generic.errors.file`), {
7768
+ toast3.error(t(`common.errors.file`), {
7766
7769
  description: rejectedFiles[i].errors[0].message
7767
7770
  });
7768
7771
  break;
@@ -7871,7 +7874,7 @@ var FileUploaderItem = forwardRef4(
7871
7874
  className: cn("absolute", direction === "rtl" ? "top-1 left-1" : "top-1 right-1"),
7872
7875
  onClick: () => removeFileFromSet(index),
7873
7876
  children: [
7874
- /* @__PURE__ */ jsx62("span", { className: "sr-only", children: t(`generic.remove_item`, { index }) }),
7877
+ /* @__PURE__ */ jsx62("span", { className: "sr-only", children: t(`common.remove_item`, { index }) }),
7875
7878
  /* @__PURE__ */ jsx62(RemoveIcon, { className: "hover:stroke-destructive h-4 w-4 duration-200 ease-in-out" })
7876
7879
  ]
7877
7880
  }
@@ -8222,126 +8225,118 @@ function FormDateTime({
8222
8225
  if (onChange) onChange(updatedDate);
8223
8226
  }
8224
8227
  }, "handleTimeChange");
8225
- return /* @__PURE__ */ jsx66("div", { className: "flex w-full flex-col", children: /* @__PURE__ */ jsx66(
8226
- FormFieldWrapper,
8227
- {
8228
- form,
8229
- name: id,
8230
- label: name,
8231
- children: (field) => /* @__PURE__ */ jsx66("div", { className: "relative flex flex-row", children: /* @__PURE__ */ jsxs36(Popover, { open, onOpenChange: setOpen, modal: true, children: [
8232
- /* @__PURE__ */ jsxs36("div", { className: "flex w-full flex-row items-center justify-between", children: [
8233
- /* @__PURE__ */ jsxs36(
8234
- PopoverTrigger,
8228
+ return /* @__PURE__ */ jsx66("div", { className: "flex w-full flex-col", children: /* @__PURE__ */ jsx66(FormFieldWrapper, { form, name: id, label: name, children: (field) => /* @__PURE__ */ jsx66("div", { className: "relative flex flex-row", children: /* @__PURE__ */ jsxs36(Popover, { open, onOpenChange: setOpen, modal: true, children: [
8229
+ /* @__PURE__ */ jsxs36("div", { className: "flex w-full flex-row items-center justify-between", children: [
8230
+ /* @__PURE__ */ jsxs36(
8231
+ PopoverTrigger,
8232
+ {
8233
+ render: /* @__PURE__ */ jsx66(
8234
+ Button,
8235
8235
  {
8236
- render: /* @__PURE__ */ jsx66(
8237
- Button,
8238
- {
8239
- variant: "outline",
8240
- className: cn("w-full pl-3 text-left font-normal", !field.value && "text-muted-foreground")
8241
- }
8242
- ),
8243
- children: [
8244
- field.value ? formatDateTime(field.value) : /* @__PURE__ */ jsx66("span", { children: t(`generic.pick_date_time`) }),
8245
- /* @__PURE__ */ jsx66(CalendarIcon4, { className: "ml-auto h-4 w-4 opacity-50" })
8246
- ]
8236
+ variant: "outline",
8237
+ className: cn("w-full pl-3 text-left font-normal", !field.value && "text-muted-foreground")
8247
8238
  }
8248
8239
  ),
8249
- field.value && allowEmpty !== false && /* @__PURE__ */ jsx66(
8250
- CircleXIcon3,
8251
- {
8252
- className: "text-muted hover:text-destructive ml-2 h-6 w-6 cursor-pointer",
8253
- onClick: () => {
8254
- if (onChange) onChange(void 0);
8255
- form.setValue(id, "");
8240
+ children: [
8241
+ field.value ? formatDateTime(field.value) : /* @__PURE__ */ jsx66("span", { children: t(`common.pick_date_time`) }),
8242
+ /* @__PURE__ */ jsx66(CalendarIcon4, { className: "ml-auto h-4 w-4 opacity-50" })
8243
+ ]
8244
+ }
8245
+ ),
8246
+ field.value && allowEmpty !== false && /* @__PURE__ */ jsx66(
8247
+ CircleXIcon3,
8248
+ {
8249
+ className: "text-muted hover:text-destructive ml-2 h-6 w-6 cursor-pointer",
8250
+ onClick: () => {
8251
+ if (onChange) onChange(void 0);
8252
+ form.setValue(id, "");
8253
+ }
8254
+ }
8255
+ )
8256
+ ] }),
8257
+ /* @__PURE__ */ jsx66(PopoverContent, { className: "w-auto p-4", align: "start", children: /* @__PURE__ */ jsxs36("div", { className: "flex flex-col space-y-4", children: [
8258
+ /* @__PURE__ */ jsx66(
8259
+ Calendar,
8260
+ {
8261
+ mode: "single",
8262
+ selected: field.value,
8263
+ onSelect: (date) => {
8264
+ if (date) {
8265
+ const newDate = new Date(date);
8266
+ if (field.value) {
8267
+ const currentDate = new Date(field.value);
8268
+ newDate.setHours(currentDate.getHours(), currentDate.getMinutes());
8269
+ } else {
8270
+ newDate.setHours(selectedHours, selectedMinutes);
8256
8271
  }
8272
+ form.setValue(id, newDate);
8273
+ if (onChange) onChange(newDate);
8274
+ setSelectedHours(newDate.getHours());
8275
+ setSelectedMinutes(roundToNearestFiveMinutes(newDate.getMinutes()));
8257
8276
  }
8258
- )
8259
- ] }),
8260
- /* @__PURE__ */ jsx66(PopoverContent, { className: "w-auto p-4", align: "start", children: /* @__PURE__ */ jsxs36("div", { className: "flex flex-col space-y-4", children: [
8261
- /* @__PURE__ */ jsx66(
8262
- Calendar,
8277
+ },
8278
+ disabled: (date) => minDate && date < minDate ? true : false,
8279
+ locale: dateFnsLocale
8280
+ }
8281
+ ),
8282
+ /* @__PURE__ */ jsxs36("div", { className: "flex flex-row items-end justify-center space-x-4", children: [
8283
+ /* @__PURE__ */ jsxs36("div", { className: "flex flex-col space-y-2", children: [
8284
+ /* @__PURE__ */ jsx66(Label, { htmlFor: "hours-select", children: t(`common.hours`) }),
8285
+ /* @__PURE__ */ jsxs36(
8286
+ Select,
8263
8287
  {
8264
- mode: "single",
8265
- selected: field.value,
8266
- onSelect: (date) => {
8267
- if (date) {
8268
- const newDate = new Date(date);
8269
- if (field.value) {
8270
- const currentDate = new Date(field.value);
8271
- newDate.setHours(currentDate.getHours(), currentDate.getMinutes());
8272
- } else {
8273
- newDate.setHours(selectedHours, selectedMinutes);
8274
- }
8275
- form.setValue(id, newDate);
8276
- if (onChange) onChange(newDate);
8277
- setSelectedHours(newDate.getHours());
8278
- setSelectedMinutes(roundToNearestFiveMinutes(newDate.getMinutes()));
8279
- }
8288
+ value: String(field.value ? new Date(field.value).getHours() : selectedHours),
8289
+ onValueChange: (value) => {
8290
+ if (!value) return;
8291
+ const hours = parseInt(value);
8292
+ setSelectedHours(hours);
8293
+ handleTimeChange(
8294
+ hours,
8295
+ field.value ? roundToNearestFiveMinutes(new Date(field.value).getMinutes()) : selectedMinutes
8296
+ );
8280
8297
  },
8281
- disabled: (date) => minDate && date < minDate ? true : false,
8282
- locale: dateFnsLocale
8298
+ children: [
8299
+ /* @__PURE__ */ jsx66(SelectTrigger, { id: "hours-select", className: "w-[70px]", children: /* @__PURE__ */ jsx66(SelectValue, {}) }),
8300
+ /* @__PURE__ */ jsx66(SelectContent, { children: hoursOptions.map((option) => /* @__PURE__ */ jsx66(SelectItem, { value: String(option.value), children: option.label }, option.value)) })
8301
+ ]
8283
8302
  }
8284
- ),
8285
- /* @__PURE__ */ jsxs36("div", { className: "flex flex-row items-end justify-center space-x-4", children: [
8286
- /* @__PURE__ */ jsxs36("div", { className: "flex flex-col space-y-2", children: [
8287
- /* @__PURE__ */ jsx66(Label, { htmlFor: "hours-select", children: t(`generic.hours`) }),
8288
- /* @__PURE__ */ jsxs36(
8289
- Select,
8290
- {
8291
- value: String(field.value ? new Date(field.value).getHours() : selectedHours),
8292
- onValueChange: (value) => {
8293
- if (!value) return;
8294
- const hours = parseInt(value);
8295
- setSelectedHours(hours);
8296
- handleTimeChange(
8297
- hours,
8298
- field.value ? roundToNearestFiveMinutes(new Date(field.value).getMinutes()) : selectedMinutes
8299
- );
8300
- },
8301
- children: [
8302
- /* @__PURE__ */ jsx66(SelectTrigger, { id: "hours-select", className: "w-[70px]", children: /* @__PURE__ */ jsx66(SelectValue, {}) }),
8303
- /* @__PURE__ */ jsx66(SelectContent, { children: hoursOptions.map((option) => /* @__PURE__ */ jsx66(SelectItem, { value: String(option.value), children: option.label }, option.value)) })
8304
- ]
8305
- }
8306
- )
8307
- ] }),
8308
- /* @__PURE__ */ jsx66("div", { className: "mb-[9px] text-xl", children: ":" }),
8309
- /* @__PURE__ */ jsxs36("div", { className: "flex flex-col space-y-2", children: [
8310
- /* @__PURE__ */ jsx66(Label, { htmlFor: "minutes-select", children: t(`generic.minutes`) }),
8311
- /* @__PURE__ */ jsxs36(
8312
- Select,
8313
- {
8314
- value: String(
8315
- field.value ? roundToNearestFiveMinutes(new Date(field.value).getMinutes()) : selectedMinutes
8316
- ),
8317
- onValueChange: (value) => {
8318
- if (!value) return;
8319
- const minutes = parseInt(value);
8320
- setSelectedMinutes(minutes);
8321
- handleTimeChange(field.value ? new Date(field.value).getHours() : selectedHours, minutes);
8322
- },
8323
- children: [
8324
- /* @__PURE__ */ jsx66(SelectTrigger, { id: "minutes-select", className: "w-[70px]", children: /* @__PURE__ */ jsx66(SelectValue, {}) }),
8325
- /* @__PURE__ */ jsx66(SelectContent, { children: minutesOptions.map((option) => /* @__PURE__ */ jsx66(SelectItem, { value: String(option.value), children: option.label }, option.value)) })
8326
- ]
8327
- }
8328
- )
8329
- ] })
8330
- ] }),
8331
- /* @__PURE__ */ jsx66(
8332
- Button,
8303
+ )
8304
+ ] }),
8305
+ /* @__PURE__ */ jsx66("div", { className: "mb-[9px] text-xl", children: ":" }),
8306
+ /* @__PURE__ */ jsxs36("div", { className: "flex flex-col space-y-2", children: [
8307
+ /* @__PURE__ */ jsx66(Label, { htmlFor: "minutes-select", children: t(`common.minutes`) }),
8308
+ /* @__PURE__ */ jsxs36(
8309
+ Select,
8333
8310
  {
8334
- className: "mt-2",
8335
- onClick: () => {
8336
- setOpen(false);
8311
+ value: String(
8312
+ field.value ? roundToNearestFiveMinutes(new Date(field.value).getMinutes()) : selectedMinutes
8313
+ ),
8314
+ onValueChange: (value) => {
8315
+ if (!value) return;
8316
+ const minutes = parseInt(value);
8317
+ setSelectedMinutes(minutes);
8318
+ handleTimeChange(field.value ? new Date(field.value).getHours() : selectedHours, minutes);
8337
8319
  },
8338
- children: t(`generic.buttons.select_date`)
8320
+ children: [
8321
+ /* @__PURE__ */ jsx66(SelectTrigger, { id: "minutes-select", className: "w-[70px]", children: /* @__PURE__ */ jsx66(SelectValue, {}) }),
8322
+ /* @__PURE__ */ jsx66(SelectContent, { children: minutesOptions.map((option) => /* @__PURE__ */ jsx66(SelectItem, { value: String(option.value), children: option.label }, option.value)) })
8323
+ ]
8339
8324
  }
8340
8325
  )
8341
- ] }) })
8342
- ] }) })
8343
- }
8344
- ) });
8326
+ ] })
8327
+ ] }),
8328
+ /* @__PURE__ */ jsx66(
8329
+ Button,
8330
+ {
8331
+ className: "mt-2",
8332
+ onClick: () => {
8333
+ setOpen(false);
8334
+ },
8335
+ children: t(`ui.buttons.select_date`)
8336
+ }
8337
+ )
8338
+ ] }) })
8339
+ ] }) }) }) });
8345
8340
  }
8346
8341
  __name(FormDateTime, "FormDateTime");
8347
8342
 
@@ -8363,66 +8358,57 @@ function FormInput({
8363
8358
  isRequired = false
8364
8359
  }) {
8365
8360
  const t = useTranslations10();
8366
- return /* @__PURE__ */ jsx67("div", { className: "flex w-full flex-col", children: /* @__PURE__ */ jsx67(
8367
- FormFieldWrapper,
8368
- {
8369
- form,
8370
- name: id,
8371
- label: name,
8372
- isRequired,
8373
- children: (field) => {
8374
- const handleBlur = /* @__PURE__ */ __name(async (e) => {
8375
- let value = e.target.value;
8376
- if (type === "link" && value) {
8377
- if (!/^https?:\/\//i.test(value)) {
8378
- value = "https://" + value;
8379
- field.onChange(value);
8380
- }
8381
- try {
8382
- new URL(value);
8383
- form.clearErrors(id);
8384
- } catch (error) {
8385
- form.setError(id, {
8386
- type: "validate",
8387
- message: t(`generic.errors.valid_url`)
8388
- });
8389
- }
8390
- }
8391
- if (onBlur) await onBlur();
8392
- field.onBlur();
8393
- }, "handleBlur");
8394
- const handleChange = /* @__PURE__ */ __name((e) => {
8395
- if (type === "number" || type === "currency") {
8396
- const value = e.target.value.replace(/[^0-9]/g, "");
8397
- field.onChange(+value);
8398
- if (onChange) onChange(+value);
8399
- } else {
8400
- field.onChange(e.target.value);
8401
- if (onChange) onChange(e.target.value);
8402
- }
8403
- }, "handleChange");
8404
- const inputProps = {
8405
- ...field,
8406
- autoFocus: autoFocus === true,
8407
- type: type === "number" || type === "currency" ? "number" : type === "password" ? "password" : "text",
8408
- className: `w-full ${type === "number" || type === "currency" ? "text-end" : ""}`,
8409
- disabled: disabled === true || form.formState.isSubmitting,
8410
- placeholder: placeholder || "",
8411
- onBlur: handleBlur,
8412
- onKeyDown,
8413
- onChange: handleChange,
8414
- "data-testid": testId
8415
- };
8416
- if (type === "currency") {
8417
- return /* @__PURE__ */ jsxs37(InputGroup, { children: [
8418
- /* @__PURE__ */ jsx67(InputGroupAddon, { children: /* @__PURE__ */ jsx67(InputGroupText, { children: "\u20AC" }) }),
8419
- /* @__PURE__ */ jsx67(InputGroupInput, { ...inputProps })
8420
- ] });
8361
+ return /* @__PURE__ */ jsx67("div", { className: "flex w-full flex-col", children: /* @__PURE__ */ jsx67(FormFieldWrapper, { form, name: id, label: name, isRequired, children: (field) => {
8362
+ const handleBlur = /* @__PURE__ */ __name(async (e) => {
8363
+ let value = e.target.value;
8364
+ if (type === "link" && value) {
8365
+ if (!/^https?:\/\//i.test(value)) {
8366
+ value = "https://" + value;
8367
+ field.onChange(value);
8368
+ }
8369
+ try {
8370
+ new URL(value);
8371
+ form.clearErrors(id);
8372
+ } catch (error) {
8373
+ form.setError(id, {
8374
+ type: "validate",
8375
+ message: t(`common.errors.valid_url`)
8376
+ });
8421
8377
  }
8422
- return /* @__PURE__ */ jsx67(Input, { ...inputProps });
8423
8378
  }
8379
+ if (onBlur) await onBlur();
8380
+ field.onBlur();
8381
+ }, "handleBlur");
8382
+ const handleChange = /* @__PURE__ */ __name((e) => {
8383
+ if (type === "number" || type === "currency") {
8384
+ const value = e.target.value.replace(/[^0-9]/g, "");
8385
+ field.onChange(+value);
8386
+ if (onChange) onChange(+value);
8387
+ } else {
8388
+ field.onChange(e.target.value);
8389
+ if (onChange) onChange(e.target.value);
8390
+ }
8391
+ }, "handleChange");
8392
+ const inputProps = {
8393
+ ...field,
8394
+ autoFocus: autoFocus === true,
8395
+ type: type === "number" || type === "currency" ? "number" : type === "password" ? "password" : "text",
8396
+ className: `w-full ${type === "number" || type === "currency" ? "text-end" : ""}`,
8397
+ disabled: disabled === true || form.formState.isSubmitting,
8398
+ placeholder: placeholder || "",
8399
+ onBlur: handleBlur,
8400
+ onKeyDown,
8401
+ onChange: handleChange,
8402
+ "data-testid": testId
8403
+ };
8404
+ if (type === "currency") {
8405
+ return /* @__PURE__ */ jsxs37(InputGroup, { children: [
8406
+ /* @__PURE__ */ jsx67(InputGroupAddon, { children: /* @__PURE__ */ jsx67(InputGroupText, { children: "\u20AC" }) }),
8407
+ /* @__PURE__ */ jsx67(InputGroupInput, { ...inputProps })
8408
+ ] });
8424
8409
  }
8425
- ) });
8410
+ return /* @__PURE__ */ jsx67(Input, { ...inputProps });
8411
+ } }) });
8426
8412
  }
8427
8413
  __name(FormInput, "FormInput");
8428
8414
 
@@ -8448,7 +8434,7 @@ var PasswordInput = React12.forwardRef(({ className, type, ...props }, ref) => {
8448
8434
  disabled,
8449
8435
  children: [
8450
8436
  showPassword && !disabled ? /* @__PURE__ */ jsx68(EyeIcon, { className: "h-4 w-4", "aria-hidden": "true" }) : /* @__PURE__ */ jsx68(EyeOffIcon, { className: "h-4 w-4", "aria-hidden": "true" }),
8451
- /* @__PURE__ */ jsx68("span", { className: "sr-only", children: showPassword ? t(`generic.hide_password`) : t(`generic.show_password`) })
8437
+ /* @__PURE__ */ jsx68("span", { className: "sr-only", children: showPassword ? t(`common.hide_password`) : t(`common.show_password`) })
8452
8438
  ]
8453
8439
  }
8454
8440
  ),
@@ -8971,22 +8957,22 @@ function UserReactivatorInterface({ user, propagateChanges }) {
8971
8957
  setOpen(false);
8972
8958
  propagateChanges(updatedUser);
8973
8959
  } catch (error) {
8974
- errorToast({ title: t(`generic.errors.error`), error });
8960
+ errorToast({ title: t(`common.errors.error`), error });
8975
8961
  }
8976
8962
  }, "reactivateUser");
8977
8963
  return /* @__PURE__ */ jsxs46(Dialog, { open, onOpenChange: setOpen, children: [
8978
8964
  /* @__PURE__ */ jsx78(DialogTrigger, { children: /* @__PURE__ */ jsxs46(Button, { size: "sm", children: [
8979
8965
  /* @__PURE__ */ jsx78(UserCheckIcon, { className: "mr-3 h-3.5 w-3.5" }),
8980
- t(`foundations.user.buttons.reactivate`)
8966
+ t(`user.buttons.reactivate`)
8981
8967
  ] }) }),
8982
8968
  /* @__PURE__ */ jsxs46(DialogContent, { className: `flex max-h-[70vh] max-w-3xl flex-col overflow-y-auto`, children: [
8983
8969
  /* @__PURE__ */ jsxs46(DialogHeader, { children: [
8984
- /* @__PURE__ */ jsx78(DialogTitle, { children: t(`foundations.user.reactivate.title`) }),
8985
- /* @__PURE__ */ jsx78(DialogDescription, { children: t(`foundations.user.reactivate.subtitle`) })
8970
+ /* @__PURE__ */ jsx78(DialogTitle, { children: t(`user.reactivate.title`) }),
8971
+ /* @__PURE__ */ jsx78(DialogDescription, { children: t(`user.reactivate.subtitle`) })
8986
8972
  ] }),
8987
- t(`foundations.user.reactivate.description`, { name: user.name }),
8973
+ t(`user.reactivate.description`, { name: user.name }),
8988
8974
  /* @__PURE__ */ jsxs46("div", { className: "flex justify-end", children: [
8989
- /* @__PURE__ */ jsx78(Button, { className: "mr-2", variant: "outline", type: `button`, onClick: () => setOpen(false), children: t(`generic.buttons.cancel`) }),
8975
+ /* @__PURE__ */ jsx78(Button, { className: "mr-2", variant: "outline", type: `button`, onClick: () => setOpen(false), children: t(`ui.buttons.cancel`) }),
8990
8976
  /* @__PURE__ */ jsx78(
8991
8977
  Button,
8992
8978
  {
@@ -8995,7 +8981,7 @@ function UserReactivatorInterface({ user, propagateChanges }) {
8995
8981
  e.preventDefault();
8996
8982
  reactivateUser();
8997
8983
  },
8998
- children: t(`foundations.user.buttons.reactivate`)
8984
+ children: t(`user.buttons.reactivate`)
8999
8985
  }
9000
8986
  )
9001
8987
  ] })
@@ -9023,26 +9009,26 @@ function UserResentInvitationEmailInternal({ user }) {
9023
9009
  try {
9024
9010
  await UserService.sendInvitation({ userId: user.id, companyId: user.company.id });
9025
9011
  setOpen(false);
9026
- toast4.message(t(`foundations.user.resend_activation.email_sent`), {
9027
- description: t(`foundations.user.resend_activation.email_sent_description`, { email: user.email })
9012
+ toast4.message(t(`user.resend_activation.email_sent`), {
9013
+ description: t(`user.resend_activation.email_sent_description`, { email: user.email })
9028
9014
  });
9029
9015
  } catch (error) {
9030
- errorToast({ title: t(`generic.errors.error`), error });
9016
+ errorToast({ title: t(`common.errors.error`), error });
9031
9017
  }
9032
9018
  }, "sendInvitationEmail");
9033
9019
  return /* @__PURE__ */ jsxs47(Dialog, { open, onOpenChange: setOpen, children: [
9034
9020
  /* @__PURE__ */ jsxs47(Tooltip2, { children: [
9035
9021
  /* @__PURE__ */ jsx79(TooltipTrigger, { children: /* @__PURE__ */ jsx79(DialogTrigger, { children: /* @__PURE__ */ jsx79(Button, { size: "sm", variant: `ghost`, className: "text-muted-foreground", children: /* @__PURE__ */ jsx79(MailIcon, {}) }) }) }),
9036
- /* @__PURE__ */ jsx79(TooltipContent, { children: t(`foundations.user.buttons.resend_activation`) })
9022
+ /* @__PURE__ */ jsx79(TooltipContent, { children: t(`user.buttons.resend_activation`) })
9037
9023
  ] }),
9038
9024
  /* @__PURE__ */ jsxs47(DialogContent, { className: `flex max-h-[70vh] max-w-3xl flex-col overflow-y-auto`, children: [
9039
9025
  /* @__PURE__ */ jsxs47(DialogHeader, { children: [
9040
- /* @__PURE__ */ jsx79(DialogTitle, { children: t(`foundations.user.resend_activation.title`) }),
9041
- /* @__PURE__ */ jsx79(DialogDescription, { children: t(`foundations.user.resend_activation.subtitle`) })
9026
+ /* @__PURE__ */ jsx79(DialogTitle, { children: t(`user.resend_activation.title`) }),
9027
+ /* @__PURE__ */ jsx79(DialogDescription, { children: t(`user.resend_activation.subtitle`) })
9042
9028
  ] }),
9043
- t(`foundations.user.resend_activation.description`, { email: user.email }),
9029
+ t(`user.resend_activation.description`, { email: user.email }),
9044
9030
  /* @__PURE__ */ jsxs47("div", { className: "flex justify-end", children: [
9045
- /* @__PURE__ */ jsx79(Button, { className: "mr-2", variant: "outline", type: `button`, onClick: () => setOpen(false), children: t(`generic.buttons.cancel`) }),
9031
+ /* @__PURE__ */ jsx79(Button, { className: "mr-2", variant: "outline", type: `button`, onClick: () => setOpen(false), children: t(`ui.buttons.cancel`) }),
9046
9032
  /* @__PURE__ */ jsx79(
9047
9033
  Button,
9048
9034
  {
@@ -9051,7 +9037,7 @@ function UserResentInvitationEmailInternal({ user }) {
9051
9037
  e.preventDefault();
9052
9038
  sendInvitationEmail();
9053
9039
  },
9054
- children: t(`foundations.user.buttons.resend_activation`)
9040
+ children: t(`user.buttons.resend_activation`)
9055
9041
  }
9056
9042
  )
9057
9043
  ] })
@@ -9164,70 +9150,61 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
9164
9150
  setOpen(false);
9165
9151
  }, 0);
9166
9152
  }, "setUser");
9167
- return /* @__PURE__ */ jsx81("div", { className: "flex w-full flex-col", children: /* @__PURE__ */ jsx81(
9168
- FormFieldWrapper,
9169
- {
9170
- form,
9171
- name: id,
9172
- label,
9173
- isRequired,
9174
- children: (field) => /* @__PURE__ */ jsxs49(Popover, { open, onOpenChange: setOpen, modal: true, children: [
9175
- /* @__PURE__ */ jsxs49("div", { className: "flex w-full flex-row items-center justify-between", children: [
9176
- /* @__PURE__ */ jsx81(PopoverTrigger, { className: "w-full", children: /* @__PURE__ */ jsx81("div", { className: "flex w-full flex-row items-center justify-start rounded-md", children: field.value ? /* @__PURE__ */ jsx81(Fragment6, { children: /* @__PURE__ */ jsxs49("div", { className: "flex w-full flex-row items-center justify-start rounded-md border p-2", children: [
9177
- /* @__PURE__ */ jsx81("div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ jsxs49(Avatar, { className: `mr-2 h-6 w-6`, children: [
9178
- /* @__PURE__ */ jsx81(AvatarImage, { src: field.value?.avatar }),
9179
- /* @__PURE__ */ jsx81(AvatarFallback, { children: field.value?.name ? field.value?.name.split(" ").map((name) => name.charAt(0).toUpperCase()) : "X" })
9180
- ] }) }),
9181
- /* @__PURE__ */ jsx81("span", { className: "", children: field.value?.name ?? "" })
9182
- ] }) }) : /* @__PURE__ */ jsx81("div", { className: "text-muted-foreground mr-7 flex h-10 w-full flex-row items-center justify-start rounded-md border p-2 text-sm", children: placeholder ?? t(`generic.search.placeholder`, { type: t(`types.users`, { count: 1 }) }) }) }) }),
9183
- field.value && /* @__PURE__ */ jsx81(
9184
- CircleX,
9185
- {
9186
- className: "text-muted hover:text-destructive ml-2 h-6 w-6 cursor-pointer",
9187
- onClick: () => setUser()
9153
+ return /* @__PURE__ */ jsx81("div", { className: "flex w-full flex-col", children: /* @__PURE__ */ jsx81(FormFieldWrapper, { form, name: id, label, isRequired, children: (field) => /* @__PURE__ */ jsxs49(Popover, { open, onOpenChange: setOpen, modal: true, children: [
9154
+ /* @__PURE__ */ jsxs49("div", { className: "flex w-full flex-row items-center justify-between", children: [
9155
+ /* @__PURE__ */ jsx81(PopoverTrigger, { className: "w-full", children: /* @__PURE__ */ jsx81("div", { className: "flex w-full flex-row items-center justify-start rounded-md", children: field.value ? /* @__PURE__ */ jsx81(Fragment6, { children: /* @__PURE__ */ jsxs49("div", { className: "flex w-full flex-row items-center justify-start rounded-md border p-2", children: [
9156
+ /* @__PURE__ */ jsx81("div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ jsxs49(Avatar, { className: `mr-2 h-6 w-6`, children: [
9157
+ /* @__PURE__ */ jsx81(AvatarImage, { src: field.value?.avatar }),
9158
+ /* @__PURE__ */ jsx81(AvatarFallback, { children: field.value?.name ? field.value?.name.split(" ").map((name) => name.charAt(0).toUpperCase()) : "X" })
9159
+ ] }) }),
9160
+ /* @__PURE__ */ jsx81("span", { className: "", children: field.value?.name ?? "" })
9161
+ ] }) }) : /* @__PURE__ */ jsx81("div", { className: "text-muted-foreground mr-7 flex h-10 w-full flex-row items-center justify-start rounded-md border p-2 text-sm", children: placeholder ?? t(`ui.search.placeholder`, { type: t(`entities.users`, { count: 1 }) }) }) }) }),
9162
+ field.value && /* @__PURE__ */ jsx81(
9163
+ CircleX,
9164
+ {
9165
+ className: "text-muted hover:text-destructive ml-2 h-6 w-6 cursor-pointer",
9166
+ onClick: () => setUser()
9167
+ }
9168
+ )
9169
+ ] }),
9170
+ /* @__PURE__ */ jsx81(PopoverContent, { children: /* @__PURE__ */ jsxs49(Command, { shouldFilter: false, children: [
9171
+ /* @__PURE__ */ jsxs49("div", { className: "relative mb-2 w-full", children: [
9172
+ /* @__PURE__ */ jsx81(SearchIcon2, { className: "text-muted-foreground absolute top-2.5 left-2.5 h-4 w-4" }),
9173
+ /* @__PURE__ */ jsx81(
9174
+ Input,
9175
+ {
9176
+ placeholder: t(`ui.search.placeholder`, { type: t(`entities.users`, { count: 1 }) }),
9177
+ type: "text",
9178
+ className: "w-full pr-8 pl-8",
9179
+ onChange: (e) => setSearchTerm(e.target.value),
9180
+ value: searchTerm
9181
+ }
9182
+ ),
9183
+ isSearching ? /* @__PURE__ */ jsx81(RefreshCwIcon, { className: "text-muted-foreground absolute top-2.5 right-2.5 h-4 w-4 animate-spin" }) : searchTermRef.current ? /* @__PURE__ */ jsx81(
9184
+ XIcon5,
9185
+ {
9186
+ className: `absolute top-2.5 right-2.5 h-4 w-4 ${searchTermRef.current ? "cursor-pointer" : "text-muted-foreground"}`,
9187
+ onClick: () => {
9188
+ setSearchTerm("");
9189
+ search("");
9188
9190
  }
9189
- )
9190
- ] }),
9191
- /* @__PURE__ */ jsx81(PopoverContent, { children: /* @__PURE__ */ jsxs49(Command, { shouldFilter: false, children: [
9192
- /* @__PURE__ */ jsxs49("div", { className: "relative mb-2 w-full", children: [
9193
- /* @__PURE__ */ jsx81(SearchIcon2, { className: "text-muted-foreground absolute top-2.5 left-2.5 h-4 w-4" }),
9194
- /* @__PURE__ */ jsx81(
9195
- Input,
9196
- {
9197
- placeholder: t(`generic.search.placeholder`, { type: t(`types.users`, { count: 1 }) }),
9198
- type: "text",
9199
- className: "w-full pr-8 pl-8",
9200
- onChange: (e) => setSearchTerm(e.target.value),
9201
- value: searchTerm
9202
- }
9203
- ),
9204
- isSearching ? /* @__PURE__ */ jsx81(RefreshCwIcon, { className: "text-muted-foreground absolute top-2.5 right-2.5 h-4 w-4 animate-spin" }) : searchTermRef.current ? /* @__PURE__ */ jsx81(
9205
- XIcon5,
9206
- {
9207
- className: `absolute top-2.5 right-2.5 h-4 w-4 ${searchTermRef.current ? "cursor-pointer" : "text-muted-foreground"}`,
9208
- onClick: () => {
9209
- setSearchTerm("");
9210
- search("");
9211
- }
9212
- }
9213
- ) : /* @__PURE__ */ jsx81(Fragment6, {})
9214
- ] }),
9215
- /* @__PURE__ */ jsx81(CommandList, { children: data.data && data.data.length > 0 && data.data.map((user) => /* @__PURE__ */ jsxs49(
9216
- CommandItem,
9217
- {
9218
- className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
9219
- onSelect: () => setUser(user),
9220
- children: [
9221
- /* @__PURE__ */ jsx81(UserAvatar, { user, className: `mr-2 h-4 w-4` }),
9222
- /* @__PURE__ */ jsx81("span", { className: "", children: user.name })
9223
- ]
9224
- },
9225
- user.id
9226
- )) })
9227
- ] }) })
9228
- ] })
9229
- }
9230
- ) });
9191
+ }
9192
+ ) : /* @__PURE__ */ jsx81(Fragment6, {})
9193
+ ] }),
9194
+ /* @__PURE__ */ jsx81(CommandList, { children: data.data && data.data.length > 0 && data.data.map((user) => /* @__PURE__ */ jsxs49(
9195
+ CommandItem,
9196
+ {
9197
+ className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
9198
+ onSelect: () => setUser(user),
9199
+ children: [
9200
+ /* @__PURE__ */ jsx81(UserAvatar, { user, className: `mr-2 h-4 w-4` }),
9201
+ /* @__PURE__ */ jsx81("span", { className: "", children: user.name })
9202
+ ]
9203
+ },
9204
+ user.id
9205
+ )) })
9206
+ ] }) })
9207
+ ] }) }) });
9231
9208
  }
9232
9209
  __name(UserSelector, "UserSelector");
9233
9210
 
@@ -9245,28 +9222,28 @@ var UserProvider = /* @__PURE__ */ __name(({ children, dehydratedUser }) => {
9245
9222
  const response = [];
9246
9223
  if (hasPermissionToModule({ module: Modules.User, action: "update" /* Update */ })) {
9247
9224
  response.push({
9248
- name: t(`generic.settings`),
9225
+ name: t(`common.settings`),
9249
9226
  href: generateUrl({ page: `/settings` })
9250
9227
  });
9251
9228
  response.push({
9252
- name: t(`types.users`, { count: 2 }),
9229
+ name: t(`entities.users`, { count: 2 }),
9253
9230
  href: generateUrl({ page: `/settings`, id: Modules.User.pageUrl })
9254
9231
  });
9255
9232
  }
9256
9233
  if (user)
9257
9234
  response.push({
9258
- name: `${user.name}${user.isDeleted ? ` (${t(`foundations.user.deleted`)})` : ""}`,
9235
+ name: `${user.name}${user.isDeleted ? ` (${t(`user.deleted`)})` : ""}`,
9259
9236
  href: generateUrl({ page: Modules.User, id: user.id })
9260
9237
  });
9261
9238
  return response;
9262
9239
  }, "breadcrumb");
9263
9240
  const title = /* @__PURE__ */ __name(() => {
9264
9241
  const response = {
9265
- type: t(`types.users`, { count: user ? 1 : 2 })
9242
+ type: t(`entities.users`, { count: user ? 1 : 2 })
9266
9243
  };
9267
9244
  const functions = [];
9268
9245
  if (user) {
9269
- response.element = `${user.name}${user.isDeleted ? ` (${t(`foundations.user.deleted`)})` : ""}`;
9246
+ response.element = `${user.name}${user.isDeleted ? ` (${t(`user.deleted`)})` : ""}`;
9270
9247
  if (user.isDeleted) {
9271
9248
  functions.push(/* @__PURE__ */ jsx82(UserReactivator, { user, propagateChanges: setUser }, `UserReactivator`));
9272
9249
  } else {
@@ -9311,7 +9288,7 @@ function UserDetails({ user }) {
9311
9288
  const { title } = useSharedContext();
9312
9289
  let roles = /* @__PURE__ */ jsx83(Fragment7, {});
9313
9290
  if (user.roles && user.roles.length > 0) {
9314
- roles = /* @__PURE__ */ jsx83("div", { className: "mb-4 w-full", children: /* @__PURE__ */ jsx83("div", { className: "flex flex-wrap gap-2", children: user.roles.map((role, index) => /* @__PURE__ */ jsx83(Link, { href: generateUrl({ page: Modules.Role, id: role.id }), children: /* @__PURE__ */ jsx83(Badge, { className: "mr-2", variant: `default`, children: t(`foundations.role.roles`, { role: role.id.replaceAll(`-`, ``) }) }) }, role.id)) }) });
9291
+ roles = /* @__PURE__ */ jsx83("div", { className: "mb-4 w-full", children: /* @__PURE__ */ jsx83("div", { className: "flex flex-wrap gap-2", children: user.roles.map((role, index) => /* @__PURE__ */ jsx83(Link, { href: generateUrl({ page: Modules.Role, id: role.id }), children: /* @__PURE__ */ jsx83(Badge, { className: "mr-2", variant: `default`, children: t(`role.roles`, { role: role.id.replaceAll(`-`, ``) }) }) }, role.id)) }) });
9315
9292
  }
9316
9293
  return /* @__PURE__ */ jsxs50("div", { className: "flex w-full flex-col gap-y-2", children: [
9317
9294
  user.avatar && /* @__PURE__ */ jsx83("div", { className: "relative aspect-auto w-full max-w-md overflow-hidden rounded-lg", children: /* @__PURE__ */ jsx83(
@@ -9325,11 +9302,11 @@ function UserDetails({ user }) {
9325
9302
  }
9326
9303
  ) }),
9327
9304
  /* @__PURE__ */ jsx83(ContentTitle, { module: Modules.User, type: title.type, element: title.element, functions: title.functions }),
9328
- user.isDeleted ? /* @__PURE__ */ jsx83("div", { children: /* @__PURE__ */ jsx83(Badge, { variant: "destructive", children: t(`foundations.user.errors.deleted`) }) }) : /* @__PURE__ */ jsx83(Fragment7, { children: !user.isActivated && /* @__PURE__ */ jsx83("div", { children: /* @__PURE__ */ jsx83(Badge, { variant: "destructive", children: t(`foundations.user.errors.inactive`) }) }) }),
9305
+ user.isDeleted ? /* @__PURE__ */ jsx83("div", { children: /* @__PURE__ */ jsx83(Badge, { variant: "destructive", children: t(`user.errors.deleted`) }) }) : /* @__PURE__ */ jsx83(Fragment7, { children: !user.isActivated && /* @__PURE__ */ jsx83("div", { children: /* @__PURE__ */ jsx83(Badge, { variant: "destructive", children: t(`user.errors.inactive`) }) }) }),
9329
9306
  roles,
9330
- /* @__PURE__ */ jsx83(AttributeElement, { inline: true, title: t(`foundations.user.fields.title.label`), value: user.title }),
9331
- /* @__PURE__ */ jsx83(AttributeElement, { inline: true, title: t(`generic.fields.email.label`), value: user.email }),
9332
- /* @__PURE__ */ jsx83(AttributeElement, { inline: false, title: t(`foundations.user.fields.bio.label`), value: user.bio })
9307
+ /* @__PURE__ */ jsx83(AttributeElement, { inline: true, title: t(`user.fields.title.label`), value: user.title }),
9308
+ /* @__PURE__ */ jsx83(AttributeElement, { inline: true, title: t(`common.fields.email.label`), value: user.email }),
9309
+ /* @__PURE__ */ jsx83(AttributeElement, { inline: false, title: t(`user.fields.bio.label`), value: user.bio })
9333
9310
  ] });
9334
9311
  }
9335
9312
  __name(UserDetails, "UserDetails");
@@ -9381,13 +9358,13 @@ function UsersListContainerInternal() {
9381
9358
  if (!hasPermissionToModule({ module: Modules.User, action: "delete" /* Delete */ })) return /* @__PURE__ */ jsx87(CompanyUsersList, {});
9382
9359
  const tabs = [
9383
9360
  {
9384
- label: t(`types.users`, { count: 2 }),
9361
+ label: t(`entities.users`, { count: 2 }),
9385
9362
  content: /* @__PURE__ */ jsx87(CompanyUsersList, {}),
9386
9363
  modules: [Modules.Company],
9387
9364
  action: "read" /* Read */
9388
9365
  },
9389
9366
  {
9390
- label: t(`foundations.user.deleted`),
9367
+ label: t(`user.deleted`),
9391
9368
  content: /* @__PURE__ */ jsx87(CompanyUsersList, { isDeleted: true }),
9392
9369
  modules: [Modules.Company],
9393
9370
  action: "update" /* Update */
@@ -9414,7 +9391,7 @@ function AdminUsersListInternal({ company }) {
9414
9391
  return /* @__PURE__ */ jsx88(
9415
9392
  ContentListTable,
9416
9393
  {
9417
- title: t(`types.users`, { count: 2 }),
9394
+ title: t(`entities.users`, { count: 2 }),
9418
9395
  data,
9419
9396
  fields: ["name" /* name */, "email" /* email */, "createdAt" /* createdAt */],
9420
9397
  tableGeneratorType: Modules.User,
@@ -9456,7 +9433,7 @@ function CompanyUsersList({ isDeleted }) {
9456
9433
  fields: ["name" /* name */, "email" /* email */],
9457
9434
  tableGeneratorType: Modules.User,
9458
9435
  functions,
9459
- title: t(`types.users`, { count: 2 })
9436
+ title: t(`entities.users`, { count: 2 })
9460
9437
  }
9461
9438
  );
9462
9439
  }
@@ -9505,7 +9482,7 @@ function RelevantUsersList({ id }) {
9505
9482
  data,
9506
9483
  fields: ["name" /* name */, "email" /* email */, "relevance" /* relevance */],
9507
9484
  tableGeneratorType: Modules.User,
9508
- title: t(`generic.relevant_users`)
9485
+ title: t(`common.relevant_users`)
9509
9486
  }
9510
9487
  );
9511
9488
  }
@@ -9527,7 +9504,7 @@ function RoleUsersList({ role }) {
9527
9504
  data,
9528
9505
  fields: ["name" /* name */, "email" /* email */],
9529
9506
  tableGeneratorType: Modules.User,
9530
- title: t(`types.users`, { count: 2 })
9507
+ title: t(`entities.users`, { count: 2 })
9531
9508
  }
9532
9509
  );
9533
9510
  }
@@ -9577,7 +9554,7 @@ function UsersList({ data, optionComponents, removeFunction, hideOptions, showRe
9577
9554
  data,
9578
9555
  fields: ["name" /* name */, "email" /* email */],
9579
9556
  tableGeneratorType: Modules.User,
9580
- title: t(`types.users`, { count: 2 })
9557
+ title: t(`entities.users`, { count: 2 })
9581
9558
  }
9582
9559
  );
9583
9560
  }
@@ -9599,7 +9576,7 @@ function UsersListByContentIds({ contentIds }) {
9599
9576
  data,
9600
9577
  fields: ["name" /* name */, "email" /* email */],
9601
9578
  tableGeneratorType: Modules.User,
9602
- title: t(`generic.relevant_users`)
9579
+ title: t(`common.relevant_users`)
9603
9580
  }
9604
9581
  );
9605
9582
  }
@@ -9702,11 +9679,11 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
9702
9679
  }
9703
9680
  }, "getStatusColor");
9704
9681
  const tooltipContent = /* @__PURE__ */ jsxs57("div", { className: "flex flex-col gap-2 p-1", children: [
9705
- /* @__PURE__ */ jsx99("div", { className: "font-semibold text-sm", children: t("generic.tokens.status", { defaultValue: "Page Status" }) }),
9682
+ /* @__PURE__ */ jsx99("div", { className: "font-semibold text-sm", children: t("billing.tokens.status", { defaultValue: "Page Status" }) }),
9706
9683
  /* @__PURE__ */ jsxs57("div", { className: "flex flex-col gap-1 text-xs", children: [
9707
9684
  /* @__PURE__ */ jsxs57("div", { className: "flex items-center justify-between gap-4", children: [
9708
9685
  /* @__PURE__ */ jsxs57("span", { className: "text-muted-foreground", children: [
9709
- t("generic.tokens.monthly", { defaultValue: "Monthly Pages" }),
9686
+ t("billing.tokens.monthly", { defaultValue: "Monthly Pages" }),
9710
9687
  ":"
9711
9688
  ] }),
9712
9689
  /* @__PURE__ */ jsxs57("span", { className: cn("font-medium", getStatusColor()), children: [
@@ -9717,7 +9694,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
9717
9694
  ] }),
9718
9695
  /* @__PURE__ */ jsxs57("div", { className: "flex items-center justify-between gap-4", children: [
9719
9696
  /* @__PURE__ */ jsxs57("span", { className: "text-muted-foreground", children: [
9720
- t("generic.tokens.available", { defaultValue: "Available" }),
9697
+ t("billing.tokens.available", { defaultValue: "Available" }),
9721
9698
  ":"
9722
9699
  ] }),
9723
9700
  /* @__PURE__ */ jsxs57("span", { className: cn("font-medium", getStatusColor()), children: [
@@ -9725,16 +9702,16 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
9725
9702
  "%"
9726
9703
  ] })
9727
9704
  ] }),
9728
- /* @__PURE__ */ jsx99(Link2, { href: "/settings/billing?action=subscribe", className: "w-full flex justify-end my-4", children: /* @__PURE__ */ jsx99(Button, { variant: "outline", size: "sm", children: t("generic.tokens.upgrade_plan", { defaultValue: "Upgrade plan" }) }) }),
9705
+ /* @__PURE__ */ jsx99(Link2, { href: "/settings/billing?action=subscribe", className: "w-full flex justify-end my-4", children: /* @__PURE__ */ jsx99(Button, { variant: "outline", size: "sm", children: t("billing.tokens.upgrade_plan", { defaultValue: "Upgrade plan" }) }) }),
9729
9706
  /* @__PURE__ */ jsx99(Separator, {}),
9730
9707
  /* @__PURE__ */ jsxs57("div", { className: "flex items-center justify-between gap-4 pt-1 mt-1", children: [
9731
9708
  /* @__PURE__ */ jsxs57("span", { className: "text-muted-foreground", children: [
9732
- t("generic.tokens.available_extra", { defaultValue: "Extra Pages" }),
9709
+ t("billing.tokens.available_extra", { defaultValue: "Extra Pages" }),
9733
9710
  ":"
9734
9711
  ] }),
9735
9712
  /* @__PURE__ */ jsx99("span", { className: "font-medium text-blue-500", children: availableExtraTokens })
9736
9713
  ] }),
9737
- /* @__PURE__ */ jsx99(Link2, { href: "/settings/billing?action=subscribe", className: "w-full flex justify-end my-4", children: /* @__PURE__ */ jsx99(Button, { variant: "outline", size: "sm", children: t("generic.tokens.purchase_extra", { defaultValue: "Purchase additional analysis" }) }) })
9714
+ /* @__PURE__ */ jsx99(Link2, { href: "/settings/billing?action=subscribe", className: "w-full flex justify-end my-4", children: /* @__PURE__ */ jsx99(Button, { variant: "outline", size: "sm", children: t("billing.tokens.purchase_extra", { defaultValue: "Purchase additional analysis" }) }) })
9738
9715
  ] })
9739
9716
  ] });
9740
9717
  return /* @__PURE__ */ jsxs57(Tooltip2, { children: [
@@ -9742,7 +9719,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
9742
9719
  "div",
9743
9720
  {
9744
9721
  className: cn("inline-flex items-center gap-1.5 cursor-default", className),
9745
- "aria-label": t("generic.tokens.status", { defaultValue: "Page Status" }),
9722
+ "aria-label": t("billing.tokens.status", { defaultValue: "Page Status" }),
9746
9723
  children: [
9747
9724
  getBatteryIcon(),
9748
9725
  /* @__PURE__ */ jsx99("span", { className: cn(textSize, "text-muted-foreground font-medium"), children: availableMonthlyTokens }),
@@ -9877,7 +9854,7 @@ function CompanyConfigurationEditorInternal({ company }) {
9877
9854
  close();
9878
9855
  } catch (error) {
9879
9856
  errorToast({
9880
- title: t(`generic.errors.update`),
9857
+ title: t(`common.errors.update`),
9881
9858
  error
9882
9859
  });
9883
9860
  }
@@ -9886,7 +9863,7 @@ function CompanyConfigurationEditorInternal({ company }) {
9886
9863
  /* @__PURE__ */ jsx101(DialogTrigger, { children: /* @__PURE__ */ jsx101(Button, { size: "sm", variant: `ghost`, className: "cursor-pointer", children: /* @__PURE__ */ jsx101(Settings2Icon, { className: "h-3.5 w-3.5" }) }) }),
9887
9864
  /* @__PURE__ */ jsxs58(DialogContent, { className: `flex max-h-[70vh] max-w-4xl flex-col overflow-y-auto`, children: [
9888
9865
  /* @__PURE__ */ jsxs58(DialogHeader, { children: [
9889
- /* @__PURE__ */ jsx101(DialogTitle, { children: t(`types.configurations`, { count: 2 }) }),
9866
+ /* @__PURE__ */ jsx101(DialogTitle, { children: t(`entities.configuration`, { count: 2 }) }),
9890
9867
  /* @__PURE__ */ jsx101(DialogDescription, { className: "text-destructive", children: t(`features.configuration.warning_description`) })
9891
9868
  ] }),
9892
9869
  /* @__PURE__ */ jsx101(Form, { ...form, children: /* @__PURE__ */ jsxs58("form", { onSubmit: form.handleSubmit(onSubmit), className: `flex w-full flex-col gap-y-4`, children: [
@@ -9925,33 +9902,33 @@ function CompanyDeleterInternal({ company }) {
9925
9902
  await CompanyService.delete({ companyId: company.id });
9926
9903
  router.push("/");
9927
9904
  } catch (error) {
9928
- errorToast({ title: t(`generic.errors.delete`), error });
9905
+ errorToast({ title: t(`common.errors.delete`), error });
9929
9906
  }
9930
9907
  setIsDeleting(false);
9931
9908
  }, "handleDelete");
9932
9909
  return /* @__PURE__ */ jsxs59(AlertDialog, { open, onOpenChange: setOpen, children: [
9933
9910
  /* @__PURE__ */ jsx102(AlertDialogTrigger, { children: /* @__PURE__ */ jsxs59(Button, { size: "sm", variant: "destructive", children: [
9934
9911
  /* @__PURE__ */ jsx102(Trash2Icon2, { className: "mr-3 h-3.5 w-3.5" }),
9935
- t(`generic.buttons.delete`)
9912
+ t(`ui.buttons.delete`)
9936
9913
  ] }) }),
9937
9914
  /* @__PURE__ */ jsxs59(AlertDialogContent, { className: `flex max-h-[70vh] max-w-3xl flex-col overflow-y-auto`, children: [
9938
9915
  /* @__PURE__ */ jsxs59(AlertDialogHeader, { children: [
9939
- /* @__PURE__ */ jsx102(AlertDialogTitle, { children: t(`generic.delete.title`, { type: t(`types.companies`, { count: 1 }) }) }),
9940
- /* @__PURE__ */ jsx102(AlertDialogDescription, { children: t(`generic.delete.subtitle`, { type: t(`types.companies`, { count: 1 }) }) })
9916
+ /* @__PURE__ */ jsx102(AlertDialogTitle, { children: t(`common.delete.title`, { type: t(`entities.companies`, { count: 1 }) }) }),
9917
+ /* @__PURE__ */ jsx102(AlertDialogDescription, { children: t(`common.delete.subtitle`, { type: t(`entities.companies`, { count: 1 }) }) })
9941
9918
  ] }),
9942
- /* @__PURE__ */ jsx102("div", { className: "text-destructive p-4 text-sm", children: t(`generic.delete.description`, { type: t(`types.companies`, { count: 1 }) }) }),
9919
+ /* @__PURE__ */ jsx102("div", { className: "text-destructive p-4 text-sm", children: t(`common.delete.description`, { type: t(`entities.companies`, { count: 1 }) }) }),
9943
9920
  /* @__PURE__ */ jsxs59("div", { className: "flex w-full flex-col gap-y-2", children: [
9944
- /* @__PURE__ */ jsx102("div", { children: t(`generic.delete.confirmation`, { type: t(`types.companies`, { count: 1 }) }) }),
9921
+ /* @__PURE__ */ jsx102("div", { children: t(`common.delete.confirmation`, { type: t(`entities.companies`, { count: 1 }) }) }),
9945
9922
  /* @__PURE__ */ jsxs59("div", { className: "flex w-full flex-col", children: [
9946
9923
  /* @__PURE__ */ jsxs59(Label, { className: "flex items-center", children: [
9947
- t(`foundations.company.fields.name.label`),
9924
+ t(`company.fields.name.label`),
9948
9925
  /* @__PURE__ */ jsx102("span", { className: "text-destructive ml-2 font-semibold", children: "*" })
9949
9926
  ] }),
9950
9927
  /* @__PURE__ */ jsx102(
9951
9928
  Input,
9952
9929
  {
9953
9930
  className: `w-full`,
9954
- placeholder: t(`foundations.company.fields.name.placeholder`),
9931
+ placeholder: t(`company.fields.name.placeholder`),
9955
9932
  onChange: (e) => setCompanyName(e.target.value)
9956
9933
  }
9957
9934
  )
@@ -9966,7 +9943,7 @@ function CompanyDeleterInternal({ company }) {
9966
9943
  type: `button`,
9967
9944
  onClick: () => setOpen(false),
9968
9945
  disabled: isDeleting,
9969
- children: t(`generic.buttons.cancel`)
9946
+ children: t(`ui.buttons.cancel`)
9970
9947
  }
9971
9948
  ),
9972
9949
  /* @__PURE__ */ jsx102(
@@ -9980,9 +9957,9 @@ function CompanyDeleterInternal({ company }) {
9980
9957
  variant: "destructive",
9981
9958
  disabled: company.name !== companyName || isDeleting,
9982
9959
  children: isDeleting ? /* @__PURE__ */ jsxs59(Fragment10, { children: [
9983
- t(`generic.buttons.is_deleting`),
9960
+ t(`ui.buttons.is_deleting`),
9984
9961
  /* @__PURE__ */ jsx102(LoaderCircleIcon2, { className: "animate-spin-slow h-5 w-5" })
9985
- ] }) : t(`generic.buttons.delete`)
9962
+ ] }) : t(`ui.buttons.delete`)
9986
9963
  }
9987
9964
  )
9988
9965
  ] })
@@ -10022,7 +9999,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
10022
9999
  const formSchema = z3.object({
10023
10000
  id: z3.uuidv4(),
10024
10001
  name: z3.string().min(1, {
10025
- message: t(`foundations.company.fields.name.error`)
10002
+ message: t(`company.fields.name.error`)
10026
10003
  }),
10027
10004
  featureIds: z3.array(z3.string()).optional(),
10028
10005
  moduleIds: z3.array(z3.string()).optional(),
@@ -10072,7 +10049,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
10072
10049
  }
10073
10050
  } catch (error) {
10074
10051
  errorToast({
10075
- title: company ? t(`generic.errors.update`) : t(`generic.errors.create`),
10052
+ title: company ? t(`common.errors.update`) : t(`common.errors.create`),
10076
10053
  error
10077
10054
  });
10078
10055
  }
@@ -10130,7 +10107,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
10130
10107
  {
10131
10108
  className: `flex max-h-[70vh] w-full ${isAdministrator || canAccessFeatures ? `max-w-5xl` : `max-w-4xl`} flex-col overflow-y-auto`,
10132
10109
  children: [
10133
- /* @__PURE__ */ jsx103(CommonEditorHeader, { type: t(`types.companies`, { count: 1 }), name: company?.name }),
10110
+ /* @__PURE__ */ jsx103(CommonEditorHeader, { type: t(`entities.companies`, { count: 1 }), name: company?.name }),
10134
10111
  /* @__PURE__ */ jsx103(Form, { ...form, children: /* @__PURE__ */ jsxs60("form", { onSubmit: form.handleSubmit(onSubmit), className: `flex w-full flex-col gap-y-4`, children: [
10135
10112
  /* @__PURE__ */ jsxs60("div", { className: "flex w-full items-start justify-between gap-x-4", children: [
10136
10113
  /* @__PURE__ */ jsx103("div", { className: `flex w-96 flex-col justify-start gap-y-4`, children: /* @__PURE__ */ jsx103(FileUploader, { value: files, onValueChange: setFiles, dropzoneOptions: dropzone2, className: "w-full p-4", children: /* @__PURE__ */ jsx103(FileInput, { className: "text-neutral-300 outline-dashed", children: /* @__PURE__ */ jsx103("div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: /* @__PURE__ */ jsx103("div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: file || company?.logo ? /* @__PURE__ */ jsx103(
@@ -10143,25 +10120,18 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
10143
10120
  }
10144
10121
  ) : /* @__PURE__ */ jsxs60(Fragment11, { children: [
10145
10122
  /* @__PURE__ */ jsx103(UploadIcon3, { className: "my-4 h-8 w-8" }),
10146
- /* @__PURE__ */ jsx103("p", { className: "mb-1 flex w-full text-center text-sm", children: t(`foundations.company.click_drag_logo`) })
10123
+ /* @__PURE__ */ jsx103("p", { className: "mb-1 flex w-full text-center text-sm", children: t(`company.click_drag_logo`) })
10147
10124
  ] }) }) }) }) }) }),
10148
10125
  /* @__PURE__ */ jsx103("div", { className: `flex w-full flex-col justify-start gap-y-4`, children: /* @__PURE__ */ jsx103(
10149
10126
  FormInput,
10150
10127
  {
10151
10128
  form,
10152
10129
  id: "name",
10153
- name: t(`foundations.company.fields.name.label`),
10154
- placeholder: t(`foundations.company.fields.name.placeholder`)
10130
+ name: t(`company.fields.name.label`),
10131
+ placeholder: t(`company.fields.name.placeholder`)
10155
10132
  }
10156
10133
  ) }),
10157
- canAccessFeatures && /* @__PURE__ */ jsx103("div", { className: `flex w-96 flex-col justify-start gap-y-4`, children: /* @__PURE__ */ jsx103(ScrollArea, { className: "h-max", children: /* @__PURE__ */ jsx103(
10158
- FormFeatures,
10159
- {
10160
- form,
10161
- name: t(`foundations.company.features_and_modules`),
10162
- features
10163
- }
10164
- ) }) })
10134
+ canAccessFeatures && /* @__PURE__ */ jsx103("div", { className: `flex w-96 flex-col justify-start gap-y-4`, children: /* @__PURE__ */ jsx103(ScrollArea, { className: "h-max", children: /* @__PURE__ */ jsx103(FormFeatures, { form, name: t(`company.features_and_modules`), features }) }) })
10165
10135
  ] }),
10166
10136
  /* @__PURE__ */ jsx103(CommonEditorButtons, { form, setOpen, isEdit: !!company })
10167
10137
  ] }) })
@@ -10194,7 +10164,7 @@ function CompaniesList() {
10194
10164
  fields: ["name" /* name */, "createdAt" /* createdAt */],
10195
10165
  tableGeneratorType: Modules.Company,
10196
10166
  functions,
10197
- title: t(`types.companies`, { count: 2 })
10167
+ title: t(`entities.companies`, { count: 2 })
10198
10168
  }
10199
10169
  );
10200
10170
  }
@@ -10226,7 +10196,7 @@ var CompanyProvider = /* @__PURE__ */ __name(({ children, dehydratedCompany }) =
10226
10196
  }, "breadcrumb");
10227
10197
  const title = /* @__PURE__ */ __name(() => {
10228
10198
  const response = {
10229
- type: t(`types.companies`, { count: company ? 1 : 2 })
10199
+ type: t(`entities.companies`, { count: company ? 1 : 2 })
10230
10200
  };
10231
10201
  if (company) response.element = company.name;
10232
10202
  const functions = [];
@@ -10272,11 +10242,11 @@ var generateNotificationData = /* @__PURE__ */ __name((params) => {
10272
10242
  function NotificationToast(notification, t, generateUrl, reouter) {
10273
10243
  const data = generateNotificationData({ notification, generateUrl });
10274
10244
  return {
10275
- title: t(`foundations.notification.${notification.notificationType}.title`),
10245
+ title: t(`notification.${notification.notificationType}.title`),
10276
10246
  description: /* @__PURE__ */ jsxs61("div", { className: `flex w-full flex-row items-center p-2`, children: [
10277
10247
  data.actor ? /* @__PURE__ */ jsx106("div", { className: "flex w-12 max-w-12 px-2", children: /* @__PURE__ */ jsx106(UserAvatar, { user: data.actor, className: "h-8 w-8" }) }) : /* @__PURE__ */ jsx106("div", { className: "flex w-14 max-w-14 px-2" }),
10278
10248
  /* @__PURE__ */ jsxs61("div", { className: "flex w-full flex-col", children: [
10279
- /* @__PURE__ */ jsx106("p", { className: "text-sm", children: t.rich(`foundations.notification.${notification.notificationType}.description`, {
10249
+ /* @__PURE__ */ jsx106("p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
10280
10250
  strong: /* @__PURE__ */ __name((chunks) => /* @__PURE__ */ jsx106("strong", { children: chunks }), "strong"),
10281
10251
  actor: data.actor?.name ?? "",
10282
10252
  title: data.title,
@@ -10286,7 +10256,7 @@ function NotificationToast(notification, t, generateUrl, reouter) {
10286
10256
  ] })
10287
10257
  ] }),
10288
10258
  action: data.url ? {
10289
- label: t(`foundations.notification.${notification.notificationType}.buttons.action`),
10259
+ label: t(`notification.${notification.notificationType}.buttons.action`),
10290
10260
  onClick: /* @__PURE__ */ __name(() => {
10291
10261
  reouter.push(data.url);
10292
10262
  }, "onClick")
@@ -10305,7 +10275,7 @@ function NotificationMenuItem({ notification, closePopover }) {
10305
10275
  const response = /* @__PURE__ */ jsxs61("div", { className: `flex w-full flex-row p-2 ${isRead ? "" : "bg-muted"} items-center`, children: [
10306
10276
  data.actor ? /* @__PURE__ */ jsx106("div", { className: "flex w-12 max-w-12 px-2", children: /* @__PURE__ */ jsx106(UserAvatar, { user: data.actor, className: "h-8 w-8" }) }) : /* @__PURE__ */ jsx106("div", { className: "flex w-14 max-w-14 px-2" }),
10307
10277
  /* @__PURE__ */ jsxs61("div", { className: "flex w-full flex-col", children: [
10308
- /* @__PURE__ */ jsx106("p", { className: "text-sm", children: t.rich(`foundations.notification.${notification.notificationType}.description`, {
10278
+ /* @__PURE__ */ jsx106("p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
10309
10279
  strong: /* @__PURE__ */ __name((chunks) => /* @__PURE__ */ jsx106("strong", { children: chunks }), "strong"),
10310
10280
  actor: data.actor?.name ?? "",
10311
10281
  title: data.title,
@@ -10395,13 +10365,13 @@ var NotificationContextProvider = /* @__PURE__ */ __name(({ children }) => {
10395
10365
  const breadcrumb = /* @__PURE__ */ __name(() => {
10396
10366
  const response = [];
10397
10367
  response.push({
10398
- name: t(`types.notifications`, { count: 2 })
10368
+ name: t(`entities.notifications`, { count: 2 })
10399
10369
  });
10400
10370
  return response;
10401
10371
  }, "breadcrumb");
10402
10372
  const title = /* @__PURE__ */ __name(() => {
10403
10373
  const response = {
10404
- type: t(`types.notifications`, { count: 2 })
10374
+ type: t(`entities.notifications`, { count: 2 })
10405
10375
  };
10406
10376
  return response;
10407
10377
  }, "title");
@@ -10448,7 +10418,7 @@ var RoleProvider = /* @__PURE__ */ __name(({ children, dehydratedRole }) => {
10448
10418
  const breadcrumb = /* @__PURE__ */ __name(() => {
10449
10419
  const response = [];
10450
10420
  response.push({
10451
- name: t(`types.roles`, { count: 2 }),
10421
+ name: t(`entities.roles`, { count: 2 }),
10452
10422
  href: generateUrl({ page: Modules.Role })
10453
10423
  });
10454
10424
  if (role)
@@ -10460,7 +10430,7 @@ var RoleProvider = /* @__PURE__ */ __name(({ children, dehydratedRole }) => {
10460
10430
  }, "breadcrumb");
10461
10431
  const title = /* @__PURE__ */ __name(() => {
10462
10432
  const response = {
10463
- type: t(`types.roles`, { count: role ? 1 : 2 })
10433
+ type: t(`entities.roles`, { count: role ? 1 : 2 })
10464
10434
  };
10465
10435
  const functions = [];
10466
10436
  if (role) {
@@ -10519,7 +10489,7 @@ var CommonProvider = /* @__PURE__ */ __name(({ children }) => {
10519
10489
  }, "breadcrumb");
10520
10490
  const title = /* @__PURE__ */ __name(() => {
10521
10491
  const response = {
10522
- type: t(`generic.title`)
10492
+ type: t(`common.title`)
10523
10493
  };
10524
10494
  if (company) response.element = company.name;
10525
10495
  return response;
@@ -10810,7 +10780,7 @@ function BreadcrumbNavigation({ items }) {
10810
10780
  const t = useTranslations37();
10811
10781
  const [open, setOpen] = useState33(false);
10812
10782
  return /* @__PURE__ */ jsx111(Breadcrumb, { children: /* @__PURE__ */ jsxs62(BreadcrumbList, { children: [
10813
- /* @__PURE__ */ jsx111(BreadcrumbItem, { children: /* @__PURE__ */ jsx111(Link, { href: generateUrl({ page: `/` }), children: t(`generic.home`) }) }),
10783
+ /* @__PURE__ */ jsx111(BreadcrumbItem, { children: /* @__PURE__ */ jsx111(Link, { href: generateUrl({ page: `/` }), children: t(`common.home`) }) }),
10814
10784
  items.length > 0 && /* @__PURE__ */ jsx111(BreadcrumbSeparator, {}),
10815
10785
  items.length > ITEMS_TO_DISPLAY ? /* @__PURE__ */ jsxs62(Fragment13, { children: [
10816
10786
  /* @__PURE__ */ jsx111(BreadcrumbItem, { children: items[0].href ? /* @__PURE__ */ jsx111(Link, { href: items[0].href, children: items[0].name }) : /* @__PURE__ */ jsx111(Fragment13, { children: items[0].name }) }),
@@ -10883,13 +10853,13 @@ function Header({ children }) {
10883
10853
  className: "h-6 w-6",
10884
10854
  onClick: () => refreshUser(),
10885
10855
  disabled: isRefreshing,
10886
- "aria-label": t("generic.refresh", { defaultValue: "Refresh" })
10856
+ "aria-label": t("common.refresh", { defaultValue: "Refresh" })
10887
10857
  }
10888
10858
  ),
10889
10859
  children: /* @__PURE__ */ jsx113(RefreshCwIcon2, { className: `h-3.5 w-3.5 ${isRefreshing ? "animate-spin" : ""}` })
10890
10860
  }
10891
10861
  ),
10892
- /* @__PURE__ */ jsx113(TooltipContent, { side: "bottom", children: t("generic.refresh", { defaultValue: "Refresh" }) })
10862
+ /* @__PURE__ */ jsx113(TooltipContent, { side: "bottom", children: t("common.refresh", { defaultValue: "Refresh" }) })
10893
10863
  ] })
10894
10864
  ] }),
10895
10865
  children ? children : null
@@ -10972,13 +10942,13 @@ function RecentPagesNavigator() {
10972
10942
  return null;
10973
10943
  }
10974
10944
  return /* @__PURE__ */ jsxs66(DropdownMenu, { children: [
10975
- /* @__PURE__ */ jsx116(DropdownMenuTrigger, { children: /* @__PURE__ */ jsx116("div", { className: "flex w-full cursor-pointer items-center gap-2", children: state === "collapsed" ? /* @__PURE__ */ jsx116(HistoryIcon, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx116("span", { children: t(`generic.recent_pages`) }) }) }),
10945
+ /* @__PURE__ */ jsx116(DropdownMenuTrigger, { children: /* @__PURE__ */ jsx116("div", { className: "flex w-full cursor-pointer items-center gap-2", children: state === "collapsed" ? /* @__PURE__ */ jsx116(HistoryIcon, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx116("span", { children: t(`common.recent_pages`) }) }) }),
10976
10946
  /* @__PURE__ */ jsxs66(DropdownMenuContent, { align: "start", className: "w-96", children: [
10977
- /* @__PURE__ */ jsx116(DropdownMenuLabel, { children: t(`generic.recent_pages`) }),
10947
+ /* @__PURE__ */ jsx116(DropdownMenuLabel, { children: t(`common.recent_pages`) }),
10978
10948
  /* @__PURE__ */ jsx116(DropdownMenuSeparator, {}),
10979
10949
  recentPages.map((page, index) => /* @__PURE__ */ jsx116(DropdownMenuItem, { children: /* @__PURE__ */ jsx116(Link, { href: page.url, className: "flex items-center gap-2", children: /* @__PURE__ */ jsxs66("div", { className: "flex flex-col", children: [
10980
10950
  /* @__PURE__ */ jsx116("div", { className: "truncate text-sm", children: page.title }),
10981
- /* @__PURE__ */ jsx116("div", { className: "text-muted-foreground text-xs font-normal", children: t(`types.${page.moduleType}`, { count: 1 }) })
10951
+ /* @__PURE__ */ jsx116("div", { className: "text-muted-foreground text-xs font-normal", children: t(`entities.${page.moduleType}`, { count: 1 }) })
10982
10952
  ] }) }) }, `${page.url}-${index}`))
10983
10953
  ] })
10984
10954
  ] });
@@ -11141,7 +11111,7 @@ import { jsx as jsx121, jsxs as jsxs71 } from "react/jsx-runtime";
11141
11111
  function AllowedUsersDetails({ showTitle, content }) {
11142
11112
  const t = useTranslations41();
11143
11113
  return /* @__PURE__ */ jsxs71("div", { className: "mb-2 flex w-full flex-col gap-y-2", children: [
11144
- showTitle && /* @__PURE__ */ jsx121("h3", { className: "text-xs font-semibold", children: t("generic.permissions") }),
11114
+ showTitle && /* @__PURE__ */ jsx121("h3", { className: "text-xs font-semibold", children: t("common.permissions") }),
11145
11115
  /* @__PURE__ */ jsx121("div", { className: "flex w-full items-center justify-start gap-x-4", children: /* @__PURE__ */ jsx121(ContributorsList, { content }) })
11146
11116
  ] });
11147
11117
  }
@@ -11151,7 +11121,7 @@ __name(AllowedUsersDetails, "AllowedUsersDetails");
11151
11121
  import dynamic from "next/dynamic";
11152
11122
  import React15 from "react";
11153
11123
  import { jsx as jsx122 } from "react/jsx-runtime";
11154
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-F5KCNLVF.mjs"), {
11124
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-ZET7ANBC.mjs"), {
11155
11125
  ssr: false
11156
11126
  });
11157
11127
  var BlockNoteEditorContainer = React15.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -11575,7 +11545,7 @@ var useCompanyTableStructure = /* @__PURE__ */ __name((params) => {
11575
11545
  ["name" /* name */]: () => ({
11576
11546
  id: "name",
11577
11547
  accessorKey: "name",
11578
- header: t(`foundations.user.fields.name.label`),
11548
+ header: t(`user.fields.name.label`),
11579
11549
  cell: /* @__PURE__ */ __name(({ row }) => {
11580
11550
  const company = row.original.jsonApiData;
11581
11551
  return /* @__PURE__ */ jsx130(
@@ -11595,7 +11565,7 @@ var useCompanyTableStructure = /* @__PURE__ */ __name((params) => {
11595
11565
  }),
11596
11566
  ["createdAt" /* createdAt */]: () => cellDate({
11597
11567
  name: "createdAt",
11598
- title: t(`generic.date.create`)
11568
+ title: t(`common.date.create`)
11599
11569
  })
11600
11570
  };
11601
11571
  const columns = useMemo14(() => {
@@ -11683,7 +11653,7 @@ var useRoleTableStructure = /* @__PURE__ */ __name((params) => {
11683
11653
  ["name" /* name */]: () => ({
11684
11654
  id: "name",
11685
11655
  accessorKey: "name",
11686
- header: t(`foundations.role.fields.name.label`),
11656
+ header: t(`role.fields.name.label`),
11687
11657
  cell: /* @__PURE__ */ __name(({ row }) => {
11688
11658
  const role = row.original.jsonApiData;
11689
11659
  return /* @__PURE__ */ jsx131(Link, { href: generateUrl({ page: Modules.Role, id: role.id }), children: row.getValue("name") });
@@ -11694,14 +11664,14 @@ var useRoleTableStructure = /* @__PURE__ */ __name((params) => {
11694
11664
  ["description" /* description */]: () => ({
11695
11665
  id: "description",
11696
11666
  accessorKey: "description",
11697
- header: t(`foundations.role.fields.description.label`),
11667
+ header: t(`role.fields.description.label`),
11698
11668
  cell: /* @__PURE__ */ __name(({ row }) => /* @__PURE__ */ jsx131(Fragment15, { children: row.getValue("description") }), "cell"),
11699
11669
  enableSorting: false,
11700
11670
  enableHiding: false
11701
11671
  }),
11702
11672
  ["createdAt" /* createdAt */]: () => cellDate({
11703
11673
  name: "createdAt",
11704
- title: t(`generic.date.create`)
11674
+ title: t(`common.date.create`)
11705
11675
  })
11706
11676
  };
11707
11677
  const columns = useMemo16(() => {
@@ -11783,7 +11753,7 @@ var useUserTableStructure = /* @__PURE__ */ __name((params) => {
11783
11753
  ["name" /* name */]: () => ({
11784
11754
  id: "name",
11785
11755
  accessorKey: "name",
11786
- header: t(`foundations.user.fields.name.label`),
11756
+ header: t(`user.fields.name.label`),
11787
11757
  cell: /* @__PURE__ */ __name(({ row }) => {
11788
11758
  const user = row.original.jsonApiData;
11789
11759
  return /* @__PURE__ */ jsxs74(
@@ -11797,8 +11767,8 @@ var useUserTableStructure = /* @__PURE__ */ __name((params) => {
11797
11767
  children: [
11798
11768
  /* @__PURE__ */ jsx132(UserAvatar, { user }),
11799
11769
  user.name,
11800
- user.isDeleted ? ` - ${t("foundations.user.errors.deleted")}` : "",
11801
- !user.isActivated ? ` - ${t("foundations.user.errors.inactive")}` : ""
11770
+ user.isDeleted ? ` - ${t("user.errors.deleted")}` : "",
11771
+ !user.isActivated ? ` - ${t("user.errors.inactive")}` : ""
11802
11772
  ]
11803
11773
  }
11804
11774
  );
@@ -11809,7 +11779,7 @@ var useUserTableStructure = /* @__PURE__ */ __name((params) => {
11809
11779
  ["email" /* email */]: () => ({
11810
11780
  id: "email",
11811
11781
  accessorKey: "email",
11812
- header: t(`generic.fields.email.label`),
11782
+ header: t(`common.fields.email.label`),
11813
11783
  cell: /* @__PURE__ */ __name(({ row }) => /* @__PURE__ */ jsx132(Fragment16, { children: row.getValue("email") }), "cell"),
11814
11784
  enableSorting: false,
11815
11785
  enableHiding: false
@@ -11817,7 +11787,7 @@ var useUserTableStructure = /* @__PURE__ */ __name((params) => {
11817
11787
  ["relevance" /* relevance */]: () => ({
11818
11788
  id: "relevance",
11819
11789
  accessorKey: "relevance",
11820
- header: t(`generic.relevance`),
11790
+ header: t(`common.relevance`),
11821
11791
  cell: /* @__PURE__ */ __name(({ row }) => {
11822
11792
  const user = row.original.jsonApiData;
11823
11793
  if (!user.relevance) return /* @__PURE__ */ jsx132(Fragment16, {});
@@ -11844,7 +11814,7 @@ var useUserTableStructure = /* @__PURE__ */ __name((params) => {
11844
11814
  }),
11845
11815
  ["createdAt" /* createdAt */]: () => cellDate({
11846
11816
  name: "createdAt",
11847
- title: t(`generic.date.create`)
11817
+ title: t(`common.date.create`)
11848
11818
  })
11849
11819
  };
11850
11820
  const columns = useMemo17(() => {
@@ -11881,7 +11851,7 @@ var useContentTableStructure = /* @__PURE__ */ __name((params) => {
11881
11851
  ["name" /* name */]: () => ({
11882
11852
  id: "name",
11883
11853
  accessorKey: "name",
11884
- header: t(`foundations.content.fields.name.label`),
11854
+ header: t(`content.fields.name.label`),
11885
11855
  cell: /* @__PURE__ */ __name(({ row }) => {
11886
11856
  const content = row.original.jsonApiData;
11887
11857
  const contentModule = content.contentType ? Modules.findByModelName(content.contentType) : void 0;
@@ -11900,7 +11870,7 @@ var useContentTableStructure = /* @__PURE__ */ __name((params) => {
11900
11870
  ["relevance" /* relevance */]: () => ({
11901
11871
  id: "relevance",
11902
11872
  accessorKey: "relevance",
11903
- header: t(`generic.relevance`),
11873
+ header: t(`common.relevance`),
11904
11874
  cell: /* @__PURE__ */ __name(({ row }) => {
11905
11875
  const content = row.original.jsonApiData;
11906
11876
  if (!content.relevance) return /* @__PURE__ */ jsx133(Fragment17, {});
@@ -11928,7 +11898,7 @@ var useContentTableStructure = /* @__PURE__ */ __name((params) => {
11928
11898
  ["authors" /* authors */]: () => ({
11929
11899
  id: "authors",
11930
11900
  accessorKey: "authors",
11931
- header: t(`generic.relationships.author.label`),
11901
+ header: t(`common.relationships.author.label`),
11932
11902
  cell: /* @__PURE__ */ __name(({ row }) => {
11933
11903
  const content = row.original.jsonApiData;
11934
11904
  return /* @__PURE__ */ jsx133(ContributorsList, { content });
@@ -11938,11 +11908,11 @@ var useContentTableStructure = /* @__PURE__ */ __name((params) => {
11938
11908
  }),
11939
11909
  ["createdAt" /* createdAt */]: () => cellDate({
11940
11910
  name: "createdAt",
11941
- title: t(`generic.date.create`)
11911
+ title: t(`common.date.create`)
11942
11912
  }),
11943
11913
  ["updatedAt" /* updatedAt */]: () => cellDate({
11944
11914
  name: "updatedAt",
11945
- title: t(`generic.date.update`)
11915
+ title: t(`common.date.update`)
11946
11916
  })
11947
11917
  };
11948
11918
  const columns = useMemo18(() => {
@@ -12324,7 +12294,7 @@ function ContentTableSearch({ data }) {
12324
12294
  },
12325
12295
  onFocus: () => setIsFocused(true),
12326
12296
  onBlur: handleBlur,
12327
- placeholder: t(`generic.search.placeholder_global`),
12297
+ placeholder: t(`ui.search.placeholder_global`),
12328
12298
  type: "text",
12329
12299
  className: "border-border/50 focus-visible:border-border h-10 w-full pr-8 pl-8 text-xs shadow-none focus-visible:ring-0",
12330
12300
  onChange: (e) => setSearchTerm(e.target.value),
@@ -12450,16 +12420,16 @@ function Register() {
12450
12420
  const [showConfirmation, setShowConfirmation] = useState45(false);
12451
12421
  const formSchema = z4.object({
12452
12422
  company: z4.string().min(1, {
12453
- message: t(`generic.errors.missing_company_name`)
12423
+ message: t(`common.errors.missing_company_name`)
12454
12424
  }),
12455
12425
  name: z4.string().min(1, {
12456
- message: t("generic.errors.missing_name")
12426
+ message: t("common.errors.missing_name")
12457
12427
  }),
12458
12428
  email: z4.string().email({
12459
- message: t(`generic.errors.invalid_email`)
12429
+ message: t(`common.errors.invalid_email`)
12460
12430
  }),
12461
- password: z4.string().min(8, t(`foundations.auth.errors.password_too_short`)).regex(/^(?=.*[0-9])(?=.*[^a-zA-Z0-9]).*$/, {
12462
- message: t(`foundations.auth.errors.password_invalid_format`)
12431
+ password: z4.string().min(8, t(`auth.errors.password_too_short`)).regex(/^(?=.*[0-9])(?=.*[^a-zA-Z0-9]).*$/, {
12432
+ message: t(`auth.errors.password_invalid_format`)
12463
12433
  })
12464
12434
  });
12465
12435
  const form = useForm4({
@@ -12490,11 +12460,11 @@ function Register() {
12490
12460
  /* @__PURE__ */ jsxs78(CardHeader, { children: [
12491
12461
  /* @__PURE__ */ jsxs78(CardTitle, { className: "text-primary flex flex-col items-center pb-10 text-4xl", children: [
12492
12462
  /* @__PURE__ */ jsx136(Image7, { src: "/logo.webp", alt: "Logo", width: 100, height: 100, priority: true }),
12493
- t(`foundations.auth.register`)
12463
+ t(`auth.register`)
12494
12464
  ] }),
12495
- /* @__PURE__ */ jsx136(CardDescription, { className: "text-sm", children: showConfirmation ? /* @__PURE__ */ jsx136(Fragment19, { children: " " }) : /* @__PURE__ */ jsx136(Fragment19, { children: t(`foundations.auth.register_description`) }) })
12465
+ /* @__PURE__ */ jsx136(CardDescription, { className: "text-sm", children: showConfirmation ? /* @__PURE__ */ jsx136(Fragment19, { children: " " }) : /* @__PURE__ */ jsx136(Fragment19, { children: t(`auth.register_description`) }) })
12496
12466
  ] }),
12497
- showConfirmation ? /* @__PURE__ */ jsx136(CardContent, { children: /* @__PURE__ */ jsx136(CardDescription, { className: "text-center text-xl", children: t("foundations.auth.register_confirmation") }) }) : /* @__PURE__ */ jsx136(Form, { ...form, children: /* @__PURE__ */ jsxs78("form", { onSubmit: form.handleSubmit(onSubmit), children: [
12467
+ showConfirmation ? /* @__PURE__ */ jsx136(CardContent, { children: /* @__PURE__ */ jsx136(CardDescription, { className: "text-center text-xl", children: t("auth.register_confirmation") }) }) : /* @__PURE__ */ jsx136(Form, { ...form, children: /* @__PURE__ */ jsxs78("form", { onSubmit: form.handleSubmit(onSubmit), children: [
12498
12468
  /* @__PURE__ */ jsxs78(CardContent, { children: [
12499
12469
  /* @__PURE__ */ jsx136(
12500
12470
  FormInput,
@@ -12502,8 +12472,8 @@ function Register() {
12502
12472
  isRequired: true,
12503
12473
  form,
12504
12474
  id: "company",
12505
- name: t(`foundations.company.fields.name.label`),
12506
- placeholder: t(`foundations.company.fields.name.placeholder`)
12475
+ name: t(`company.fields.name.label`),
12476
+ placeholder: t(`company.fields.name.placeholder`)
12507
12477
  }
12508
12478
  ),
12509
12479
  /* @__PURE__ */ jsx136(
@@ -12512,8 +12482,8 @@ function Register() {
12512
12482
  isRequired: true,
12513
12483
  form,
12514
12484
  id: "name",
12515
- name: t(`foundations.user.fields.name.label`),
12516
- placeholder: t(`foundations.user.fields.name.placeholder`)
12485
+ name: t(`user.fields.name.label`),
12486
+ placeholder: t(`user.fields.name.placeholder`)
12517
12487
  }
12518
12488
  ),
12519
12489
  /* @__PURE__ */ jsx136(
@@ -12522,8 +12492,8 @@ function Register() {
12522
12492
  isRequired: true,
12523
12493
  form,
12524
12494
  id: "email",
12525
- name: t(`generic.fields.email.label`),
12526
- placeholder: t(`generic.fields.email.placeholder`)
12495
+ name: t(`common.fields.email.label`),
12496
+ placeholder: t(`common.fields.email.placeholder`)
12527
12497
  }
12528
12498
  ),
12529
12499
  /* @__PURE__ */ jsx136(
@@ -12532,11 +12502,11 @@ function Register() {
12532
12502
  isRequired: true,
12533
12503
  form,
12534
12504
  id: "password",
12535
- name: t(`foundations.user.fields.password.label`),
12536
- placeholder: t(`foundations.user.fields.password.placeholder`)
12505
+ name: t(`user.fields.password.label`),
12506
+ placeholder: t(`user.fields.password.placeholder`)
12537
12507
  }
12538
12508
  ),
12539
- /* @__PURE__ */ jsx136(Button, { className: "mt-4 w-full", type: "submit", children: t(`foundations.auth.buttons.register`) })
12509
+ /* @__PURE__ */ jsx136(Button, { className: "mt-4 w-full", type: "submit", children: t(`auth.buttons.register`) })
12540
12510
  ] }),
12541
12511
  /* @__PURE__ */ jsxs78(CardFooter, { className: "flex w-full flex-row justify-between", children: [
12542
12512
  /* @__PURE__ */ jsx136(
@@ -12545,7 +12515,7 @@ function Register() {
12545
12515
  href: "#",
12546
12516
  className: "flex w-full justify-start",
12547
12517
  onClick: () => setComponentType(0 /* Login */),
12548
- children: t(`foundations.auth.buttons.login`)
12518
+ children: t(`auth.buttons.login`)
12549
12519
  }
12550
12520
  ),
12551
12521
  /* @__PURE__ */ jsx136(
@@ -12554,7 +12524,7 @@ function Register() {
12554
12524
  href: "#",
12555
12525
  className: "flex w-full justify-end",
12556
12526
  onClick: () => setComponentType(1 /* ForgotPassword */),
12557
- children: t(`foundations.auth.buttons.forgot_password`)
12527
+ children: t(`auth.buttons.forgot_password`)
12558
12528
  }
12559
12529
  )
12560
12530
  ] })
@@ -12638,9 +12608,9 @@ function LandingComponent() {
12638
12608
  /* @__PURE__ */ jsxs79(CardHeader, { className: "mb-4", "data-testid": "page-pre-login-container", children: [
12639
12609
  /* @__PURE__ */ jsxs79(CardTitle, { className: "text-primary flex flex-col items-center gap-y-8 pb-8 text-4xl", children: [
12640
12610
  /* @__PURE__ */ jsx139(Image9, { src: "/logo.webp", alt: "Logo", width: 100, height: 100, priority: true }),
12641
- t(`generic.title`)
12611
+ t(`common.title`)
12642
12612
  ] }),
12643
- /* @__PURE__ */ jsx139(CardDescription, { className: "flex w-full justify-center text-center text-sm", children: t(`generic.description`) })
12613
+ /* @__PURE__ */ jsx139(CardDescription, { className: "flex w-full justify-center text-center text-sm", children: t(`common.description`) })
12644
12614
  ] }),
12645
12615
  /* @__PURE__ */ jsxs79(CardFooter, { className: "mt-4 flex w-full flex-col justify-between gap-y-4", children: [
12646
12616
  isInternalAuthEnabled() && /* @__PURE__ */ jsxs79(Fragment20, { children: [
@@ -12650,10 +12620,10 @@ function LandingComponent() {
12650
12620
  href: "#",
12651
12621
  className: "flex w-full justify-start",
12652
12622
  onClick: () => setComponentType(5 /* Register */),
12653
- children: /* @__PURE__ */ jsx139(Button, { className: "w-full", variant: `default`, children: t(`foundations.auth.buttons.register`) })
12623
+ children: /* @__PURE__ */ jsx139(Button, { className: "w-full", variant: `default`, children: t(`auth.buttons.register`) })
12654
12624
  }
12655
12625
  ),
12656
- /* @__PURE__ */ jsx139(Link, { href: "#", className: "flex w-full justify-end", onClick: () => setComponentType(0 /* Login */), children: /* @__PURE__ */ jsx139(Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: t(`foundations.auth.buttons.login`) }) })
12626
+ /* @__PURE__ */ jsx139(Link, { href: "#", className: "flex w-full justify-end", onClick: () => setComponentType(0 /* Login */), children: /* @__PURE__ */ jsx139(Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: t(`auth.buttons.login`) }) })
12657
12627
  ] }),
12658
12628
  isDiscordAuthEnabled() && /* @__PURE__ */ jsx139(Link, { href: `${getApiUrl()}auth/discord`, className: "flex w-full justify-end", children: /* @__PURE__ */ jsx139(Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: "Login with Discord" }) })
12659
12629
  ] })
@@ -12684,25 +12654,25 @@ function AcceptInvitation() {
12684
12654
  await AuthService.validateCode(payload);
12685
12655
  } catch (e) {
12686
12656
  setError(e instanceof Error ? e.message : String(e));
12687
- errorToast({ title: t(`generic.errors.error`), error: e });
12657
+ errorToast({ title: t(`common.errors.error`), error: e });
12688
12658
  }
12689
12659
  }
12690
12660
  __name(validateCode, "validateCode");
12691
12661
  if (params && params.code) {
12692
12662
  validateCode(params.code);
12693
12663
  } else {
12694
- setError(t(`foundations.auth.errors.invalid_invitation_code`));
12664
+ setError(t(`auth.errors.invalid_invitation_code`));
12695
12665
  }
12696
12666
  }, []);
12697
12667
  const formSchema = z5.object({
12698
12668
  password: z5.string().min(1, {
12699
- message: t(`foundations.user.fields.password.error`)
12669
+ message: t(`user.fields.password.error`)
12700
12670
  }),
12701
12671
  passwordRetype: z5.string().min(1, {
12702
- message: t("foundations.auth.errors.password_retype_required")
12672
+ message: t("auth.errors.password_retype_required")
12703
12673
  })
12704
12674
  }).refine((data) => data.password === data.passwordRetype, {
12705
- message: t("foundations.auth.fields.retype_password.error_not_match"),
12675
+ message: t("auth.fields.retype_password.error_not_match"),
12706
12676
  path: ["passwordRetype"]
12707
12677
  });
12708
12678
  const form = useForm5({
@@ -12721,33 +12691,33 @@ function AcceptInvitation() {
12721
12691
  };
12722
12692
  await AuthService.acceptInvitation(payload);
12723
12693
  setShowConfirmation(true);
12724
- toast6.success(t("foundations.auth.account_activated"), {
12725
- description: t("foundations.auth.account_activated_description")
12694
+ toast6.success(t("auth.account_activated"), {
12695
+ description: t("auth.account_activated_description")
12726
12696
  });
12727
12697
  setTimeout(() => {
12728
12698
  setComponentType(0 /* Login */);
12729
12699
  setParams(void 0);
12730
12700
  }, 2e3);
12731
12701
  } catch (e) {
12732
- errorToast({ title: t(`generic.errors.error`), error });
12702
+ errorToast({ title: t(`common.errors.error`), error });
12733
12703
  }
12734
12704
  }, "onSubmit");
12735
12705
  return /* @__PURE__ */ jsxs80(Fragment21, { children: [
12736
12706
  /* @__PURE__ */ jsxs80(CardHeader, { children: [
12737
12707
  /* @__PURE__ */ jsxs80(CardTitle, { className: "text-primary flex flex-col items-center pb-10 text-4xl", children: [
12738
12708
  /* @__PURE__ */ jsx140(Image10, { src: "/logo.webp", alt: "Logo", width: 100, height: 100, priority: true }),
12739
- t("foundations.auth.accept_invitation")
12709
+ t("auth.accept_invitation")
12740
12710
  ] }),
12741
- /* @__PURE__ */ jsx140(CardDescription, { className: "text-center text-sm", children: error ? /* @__PURE__ */ jsx140(Fragment21, { children: t("foundations.auth.errors.activating_account") }) : /* @__PURE__ */ jsx140(Fragment21, { children: t("foundations.auth.select_password") }) })
12711
+ /* @__PURE__ */ jsx140(CardDescription, { className: "text-center text-sm", children: error ? /* @__PURE__ */ jsx140(Fragment21, { children: t("auth.errors.activating_account") }) : /* @__PURE__ */ jsx140(Fragment21, { children: t("auth.select_password") }) })
12742
12712
  ] }),
12743
- /* @__PURE__ */ jsx140(CardContent, { children: showConfirmation ? /* @__PURE__ */ jsx140(CardDescription, { className: "text-center text-xl", children: t("foundations.auth.activation_description") }) : error ? /* @__PURE__ */ jsx140(CardDescription, { className: "text-center text-xl", children: error }) : /* @__PURE__ */ jsx140(Form, { ...form, children: /* @__PURE__ */ jsxs80("form", { onSubmit: form.handleSubmit(onSubmit), children: [
12713
+ /* @__PURE__ */ jsx140(CardContent, { children: showConfirmation ? /* @__PURE__ */ jsx140(CardDescription, { className: "text-center text-xl", children: t("auth.activation_description") }) : error ? /* @__PURE__ */ jsx140(CardDescription, { className: "text-center text-xl", children: error }) : /* @__PURE__ */ jsx140(Form, { ...form, children: /* @__PURE__ */ jsxs80("form", { onSubmit: form.handleSubmit(onSubmit), children: [
12744
12714
  /* @__PURE__ */ jsx140(
12745
12715
  FormPassword,
12746
12716
  {
12747
12717
  form,
12748
12718
  id: "password",
12749
- name: t(`foundations.user.fields.password.label`),
12750
- placeholder: t(`foundations.user.fields.password.placeholder`)
12719
+ name: t(`user.fields.password.label`),
12720
+ placeholder: t(`user.fields.password.placeholder`)
12751
12721
  }
12752
12722
  ),
12753
12723
  /* @__PURE__ */ jsx140(
@@ -12755,11 +12725,11 @@ function AcceptInvitation() {
12755
12725
  {
12756
12726
  form,
12757
12727
  id: "passwordRetype",
12758
- name: t("foundations.auth.fields.retype_password.label"),
12759
- placeholder: t(`foundations.auth.fields.retype_password.placeholder`)
12728
+ name: t("auth.fields.retype_password.label"),
12729
+ placeholder: t(`auth.fields.retype_password.placeholder`)
12760
12730
  }
12761
12731
  ),
12762
- /* @__PURE__ */ jsx140(Button, { className: "mt-4 w-full", type: "submit", children: t("foundations.auth.accept_invitation") })
12732
+ /* @__PURE__ */ jsx140(Button, { className: "mt-4 w-full", type: "submit", children: t("auth.accept_invitation") })
12763
12733
  ] }) }) })
12764
12734
  ] });
12765
12735
  }
@@ -12785,33 +12755,33 @@ function ActivateAccount() {
12785
12755
  await AuthService.activate(payload);
12786
12756
  setShowConfirmation(true);
12787
12757
  setParams(void 0);
12788
- toast7.success(t("foundations.auth.account_activated"), {
12789
- description: t("foundations.auth.account_activated_description")
12758
+ toast7.success(t("auth.account_activated"), {
12759
+ description: t("auth.account_activated_description")
12790
12760
  });
12791
12761
  setTimeout(() => {
12792
12762
  setComponentType(0 /* Login */);
12793
12763
  }, 2e3);
12794
12764
  } catch (e) {
12795
12765
  setError(e instanceof Error ? e.message : String(e));
12796
- errorToast({ title: t(`generic.errors.error`), error: e });
12766
+ errorToast({ title: t(`common.errors.error`), error: e });
12797
12767
  }
12798
12768
  }
12799
12769
  __name(ActivateAccount2, "ActivateAccount");
12800
12770
  if (params && params.code) {
12801
12771
  ActivateAccount2(params.code);
12802
12772
  } else {
12803
- setError(t(`foundations.auth.errors.invalid_invitation_code`));
12773
+ setError(t(`auth.errors.invalid_invitation_code`));
12804
12774
  }
12805
12775
  }, []);
12806
12776
  return /* @__PURE__ */ jsxs81(Fragment22, { children: [
12807
12777
  /* @__PURE__ */ jsxs81(CardHeader, { children: [
12808
12778
  /* @__PURE__ */ jsxs81(CardTitle, { className: "text-primary flex flex-col items-center pb-10 text-4xl", children: [
12809
12779
  /* @__PURE__ */ jsx141(Image11, { src: "/logo.webp", alt: "Logo", width: 100, height: 100, priority: true }),
12810
- t("foundations.auth.accept_invitation")
12780
+ t("auth.accept_invitation")
12811
12781
  ] }),
12812
- /* @__PURE__ */ jsx141(CardDescription, { className: "text-center text-sm", children: error ? /* @__PURE__ */ jsx141(Fragment22, { children: t("foundations.auth.errors.activating_account") }) : /* @__PURE__ */ jsx141(Fragment22, { children: " " }) })
12782
+ /* @__PURE__ */ jsx141(CardDescription, { className: "text-center text-sm", children: error ? /* @__PURE__ */ jsx141(Fragment22, { children: t("auth.errors.activating_account") }) : /* @__PURE__ */ jsx141(Fragment22, { children: " " }) })
12813
12783
  ] }),
12814
- /* @__PURE__ */ jsx141(CardContent, { children: /* @__PURE__ */ jsx141(CardDescription, { className: "text-center text-xl", children: showConfirmation ? /* @__PURE__ */ jsx141(Fragment22, { children: t("foundations.auth.activation_description") }) : error ? /* @__PURE__ */ jsx141(Fragment22, { children: error }) : /* @__PURE__ */ jsx141(Fragment22, { children: t("foundations.auth.activation_wait") }) }) })
12784
+ /* @__PURE__ */ jsx141(CardContent, { children: /* @__PURE__ */ jsx141(CardDescription, { className: "text-center text-xl", children: showConfirmation ? /* @__PURE__ */ jsx141(Fragment22, { children: t("auth.activation_description") }) : error ? /* @__PURE__ */ jsx141(Fragment22, { children: error }) : /* @__PURE__ */ jsx141(Fragment22, { children: t("auth.activation_wait") }) }) })
12815
12785
  ] });
12816
12786
  }
12817
12787
  __name(ActivateAccount, "ActivateAccount");
@@ -12855,7 +12825,7 @@ function ForgotPassword() {
12855
12825
  const [showConfirmation, setShowConfirmation] = useState50(false);
12856
12826
  const formSchema = z6.object({
12857
12827
  email: z6.string().email({
12858
- message: t(`generic.errors.invalid_email`)
12828
+ message: t(`common.errors.invalid_email`)
12859
12829
  })
12860
12830
  });
12861
12831
  const form = useForm6({
@@ -12879,23 +12849,23 @@ function ForgotPassword() {
12879
12849
  /* @__PURE__ */ jsxs82(CardHeader, { "data-testid": "page-forgot-password-container", children: [
12880
12850
  /* @__PURE__ */ jsxs82(CardTitle, { className: "text-primary flex flex-col items-center pb-10 text-4xl", children: [
12881
12851
  /* @__PURE__ */ jsx142(Image12, { src: "/logo.webp", alt: "Logo", width: 100, height: 100, priority: true }),
12882
- t("foundations.auth.forgot_password")
12852
+ t("auth.forgot_password")
12883
12853
  ] }),
12884
- /* @__PURE__ */ jsx142(CardDescription, { className: "text-sm", children: showConfirmation ? /* @__PURE__ */ jsx142(Fragment23, { children: " " }) : /* @__PURE__ */ jsx142(Fragment23, { children: t(`foundations.auth.add_email_to_reset`) }) })
12854
+ /* @__PURE__ */ jsx142(CardDescription, { className: "text-sm", children: showConfirmation ? /* @__PURE__ */ jsx142(Fragment23, { children: " " }) : /* @__PURE__ */ jsx142(Fragment23, { children: t(`auth.add_email_to_reset`) }) })
12885
12855
  ] }),
12886
- showConfirmation ? /* @__PURE__ */ jsx142(CardContent, { children: /* @__PURE__ */ jsx142(CardDescription, { className: "text-center text-xl", children: t(`foundations.auth.reset_confirmation`) }) }) : /* @__PURE__ */ jsx142(Form, { ...form, children: /* @__PURE__ */ jsxs82("form", { onSubmit: form.handleSubmit(onSubmit), children: [
12856
+ showConfirmation ? /* @__PURE__ */ jsx142(CardContent, { children: /* @__PURE__ */ jsx142(CardDescription, { className: "text-center text-xl", children: t(`auth.reset_confirmation`) }) }) : /* @__PURE__ */ jsx142(Form, { ...form, children: /* @__PURE__ */ jsxs82("form", { onSubmit: form.handleSubmit(onSubmit), children: [
12887
12857
  /* @__PURE__ */ jsxs82(CardContent, { children: [
12888
12858
  /* @__PURE__ */ jsx142(
12889
12859
  FormInput,
12890
12860
  {
12891
12861
  form,
12892
12862
  id: "email",
12893
- name: t(`generic.fields.email.label`),
12894
- placeholder: t(`generic.fields.email.placeholder`),
12863
+ name: t(`common.fields.email.label`),
12864
+ placeholder: t(`common.fields.email.placeholder`),
12895
12865
  testId: "form-forgot-password-input-email"
12896
12866
  }
12897
12867
  ),
12898
- /* @__PURE__ */ jsx142(Button, { className: "mt-4 w-full", type: "submit", "data-testid": "form-forgot-password-button-reset", children: t(`foundations.auth.buttons.reset_password`) })
12868
+ /* @__PURE__ */ jsx142(Button, { className: "mt-4 w-full", type: "submit", "data-testid": "form-forgot-password-button-reset", children: t(`auth.buttons.reset_password`) })
12899
12869
  ] }),
12900
12870
  /* @__PURE__ */ jsx142(CardFooter, { className: "flex w-full flex-row justify-between", children: /* @__PURE__ */ jsx142(
12901
12871
  Link,
@@ -12904,7 +12874,7 @@ function ForgotPassword() {
12904
12874
  className: "flex w-full justify-end",
12905
12875
  onClick: () => setComponentType(0 /* Login */),
12906
12876
  "data-testid": "form-forgot-password-link-login",
12907
- children: t(`foundations.auth.buttons.login`)
12877
+ children: t(`auth.buttons.login`)
12908
12878
  }
12909
12879
  ) })
12910
12880
  ] }) })
@@ -12927,9 +12897,9 @@ function Login() {
12927
12897
  const router = useI18nRouter();
12928
12898
  const formSchema = z7.object({
12929
12899
  email: z7.string().email({
12930
- message: t(`generic.errors.invalid_email`)
12900
+ message: t(`common.errors.invalid_email`)
12931
12901
  }),
12932
- password: z7.string().min(3, { message: t(`foundations.auth.errors.password_too_short`) })
12902
+ password: z7.string().min(3, { message: t(`auth.errors.password_too_short`) })
12933
12903
  });
12934
12904
  const form = useForm7({
12935
12905
  resolver: zodResolver7(formSchema),
@@ -12948,7 +12918,7 @@ function Login() {
12948
12918
  router.replace(generateUrl({ page: `/` }));
12949
12919
  } catch (e) {
12950
12920
  errorToast({
12951
- title: t(`generic.errors.error`),
12921
+ title: t(`common.errors.error`),
12952
12922
  error: e
12953
12923
  });
12954
12924
  }
@@ -12957,9 +12927,9 @@ function Login() {
12957
12927
  /* @__PURE__ */ jsxs83(CardHeader, { "data-testid": "page-login-container", children: [
12958
12928
  /* @__PURE__ */ jsxs83(CardTitle, { className: "text-primary flex flex-col items-center pb-10 text-4xl", children: [
12959
12929
  /* @__PURE__ */ jsx143(Image13, { src: "/logo.webp", alt: "Logo", width: 100, height: 100, priority: true }),
12960
- t("foundations.auth.login")
12930
+ t("auth.login")
12961
12931
  ] }),
12962
- /* @__PURE__ */ jsx143(CardDescription, { className: "text-sm", children: t(`foundations.auth.login_description`) })
12932
+ /* @__PURE__ */ jsx143(CardDescription, { className: "text-sm", children: t(`auth.login_description`) })
12963
12933
  ] }),
12964
12934
  /* @__PURE__ */ jsx143(Form, { ...form, children: /* @__PURE__ */ jsxs83("form", { onSubmit: form.handleSubmit(onSubmit), children: [
12965
12935
  /* @__PURE__ */ jsx143(CardContent, { children: isInternalAuthEnabled() && /* @__PURE__ */ jsxs83(Fragment24, { children: [
@@ -12969,8 +12939,8 @@ function Login() {
12969
12939
  autoFocus: true,
12970
12940
  form,
12971
12941
  id: "email",
12972
- name: t(`generic.fields.email.label`),
12973
- placeholder: t(`generic.fields.email.placeholder`),
12942
+ name: t(`common.fields.email.label`),
12943
+ placeholder: t(`common.fields.email.placeholder`),
12974
12944
  testId: "form-login-input-email"
12975
12945
  }
12976
12946
  ),
@@ -12979,12 +12949,12 @@ function Login() {
12979
12949
  {
12980
12950
  form,
12981
12951
  id: "password",
12982
- name: t(`foundations.user.fields.password.label`),
12983
- placeholder: t(`foundations.user.fields.password.placeholder`),
12952
+ name: t(`user.fields.password.label`),
12953
+ placeholder: t(`user.fields.password.placeholder`),
12984
12954
  testId: "form-login-input-password"
12985
12955
  }
12986
12956
  ),
12987
- /* @__PURE__ */ jsx143(Button, { className: "mt-4 w-full", type: "submit", "data-testid": "form-login-button-submit", children: t(`foundations.auth.login`) })
12957
+ /* @__PURE__ */ jsx143(Button, { className: "mt-4 w-full", type: "submit", "data-testid": "form-login-button-submit", children: t(`auth.login`) })
12988
12958
  ] }) }),
12989
12959
  /* @__PURE__ */ jsxs83(CardFooter, { className: "flex w-full flex-col gap-y-4 mt-4", children: [
12990
12960
  isDiscordAuthEnabled() && /* @__PURE__ */ jsx143(Link, { href: `${getApiUrl()}auth/discord`, className: "flex w-full justify-end", children: /* @__PURE__ */ jsx143(Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: "Login with Discord" }) }),
@@ -12995,7 +12965,7 @@ function Login() {
12995
12965
  href: "#",
12996
12966
  className: "flex w-full justify-start",
12997
12967
  onClick: () => setComponentType(5 /* Register */),
12998
- children: t(`foundations.auth.register`)
12968
+ children: t(`auth.register`)
12999
12969
  }
13000
12970
  ),
13001
12971
  /* @__PURE__ */ jsx143(
@@ -13005,7 +12975,7 @@ function Login() {
13005
12975
  className: "flex w-full justify-end",
13006
12976
  onClick: () => setComponentType(1 /* ForgotPassword */),
13007
12977
  "data-testid": "form-login-link-forgot-password",
13008
- children: t(`foundations.auth.forgot_password`)
12978
+ children: t(`auth.forgot_password`)
13009
12979
  }
13010
12980
  )
13011
12981
  ] })
@@ -13084,25 +13054,25 @@ function ResetPassword() {
13084
13054
  await AuthService.validateCode(payload);
13085
13055
  } catch (e) {
13086
13056
  setError(e instanceof Error ? e.message : String(e));
13087
- errorToast({ title: t(`generic.errors.error`), error: e });
13057
+ errorToast({ title: t(`common.errors.error`), error: e });
13088
13058
  }
13089
13059
  }
13090
13060
  __name(validateResetPasswordCode, "validateResetPasswordCode");
13091
13061
  if (params && params.code) {
13092
13062
  validateResetPasswordCode(params.code);
13093
13063
  } else {
13094
- setError(t(`foundations.auth.errors.invalid_password_reset_code`));
13064
+ setError(t(`auth.errors.invalid_password_reset_code`));
13095
13065
  }
13096
13066
  }, []);
13097
13067
  const formSchema = z8.object({
13098
13068
  password: z8.string().min(1, {
13099
- message: t(`foundations.user.fields.password.error`)
13069
+ message: t(`user.fields.password.error`)
13100
13070
  }),
13101
13071
  passwordRetype: z8.string().min(1, {
13102
- message: t(`foundations.auth.fields.retype_password.error`)
13072
+ message: t(`auth.fields.retype_password.error`)
13103
13073
  })
13104
13074
  }).refine((data) => data.password === data.passwordRetype, {
13105
- message: t(`foundations.auth.fields.retype_password.error_not_match`),
13075
+ message: t(`auth.fields.retype_password.error_not_match`),
13106
13076
  path: ["passwordRetype"]
13107
13077
  });
13108
13078
  const form = useForm8({
@@ -13121,29 +13091,29 @@ function ResetPassword() {
13121
13091
  };
13122
13092
  await AuthService.resetPassword(payload);
13123
13093
  setShowConfirmation(true);
13124
- toast8.success(t(`foundations.auth.reset_success`), {
13125
- description: t(`foundations.auth.reset_success_description`)
13094
+ toast8.success(t(`auth.reset_success`), {
13095
+ description: t(`auth.reset_success_description`)
13126
13096
  });
13127
13097
  setTimeout(() => {
13128
13098
  setComponentType(0 /* Login */);
13129
13099
  setParams(void 0);
13130
13100
  }, 2e3);
13131
13101
  } catch (e) {
13132
- errorToast({ title: t(`generic.errors.error`), error });
13102
+ errorToast({ title: t(`common.errors.error`), error });
13133
13103
  }
13134
13104
  }, "onSubmit");
13135
13105
  return /* @__PURE__ */ jsxs84(Fragment26, { children: [
13136
13106
  /* @__PURE__ */ jsxs84(CardHeader, { children: [
13137
13107
  /* @__PURE__ */ jsxs84(CardTitle, { className: "text-primary flex flex-col items-center pb-10 text-4xl", children: [
13138
13108
  /* @__PURE__ */ jsx145(Image14, { src: "/logo.webp", alt: "Logo", width: 100, height: 100, priority: true }),
13139
- t(`foundations.auth.password_reset`)
13109
+ t(`auth.password_reset`)
13140
13110
  ] }),
13141
- /* @__PURE__ */ jsx145(CardDescription, { className: "text-center text-sm", children: error ? /* @__PURE__ */ jsx145(Fragment26, { children: t(`foundations.auth.errors.password_reset_error`) }) : /* @__PURE__ */ jsx145(Fragment26, { children: t(`foundations.auth.reset_password`) }) })
13111
+ /* @__PURE__ */ jsx145(CardDescription, { className: "text-center text-sm", children: error ? /* @__PURE__ */ jsx145(Fragment26, { children: t(`auth.errors.password_reset_error`) }) : /* @__PURE__ */ jsx145(Fragment26, { children: t(`auth.reset_password`) }) })
13142
13112
  ] }),
13143
- /* @__PURE__ */ jsx145(CardContent, { children: showConfirmation ? /* @__PURE__ */ jsx145(CardDescription, { className: "text-center text-xl", children: t(`foundations.auth.reset_success_description`) }) : error ? /* @__PURE__ */ jsx145(CardDescription, { className: "text-center text-xl", children: error }) : /* @__PURE__ */ jsx145(Form, { ...form, children: /* @__PURE__ */ jsxs84("form", { onSubmit: form.handleSubmit(onSubmit), children: [
13113
+ /* @__PURE__ */ jsx145(CardContent, { children: showConfirmation ? /* @__PURE__ */ jsx145(CardDescription, { className: "text-center text-xl", children: t(`auth.reset_success_description`) }) : error ? /* @__PURE__ */ jsx145(CardDescription, { className: "text-center text-xl", children: error }) : /* @__PURE__ */ jsx145(Form, { ...form, children: /* @__PURE__ */ jsxs84("form", { onSubmit: form.handleSubmit(onSubmit), children: [
13144
13114
  /* @__PURE__ */ jsx145(FormPassword, { form, id: "password", name: "Password" }),
13145
13115
  /* @__PURE__ */ jsx145(FormPassword, { form, id: "passwordRetype", name: "Retype Password" }),
13146
- /* @__PURE__ */ jsx145(Button, { className: "mt-4 w-full", type: "submit", children: t(`foundations.auth.buttons.reset_password`) })
13116
+ /* @__PURE__ */ jsx145(Button, { className: "mt-4 w-full", type: "submit", children: t(`auth.buttons.reset_password`) })
13147
13117
  ] }) }) })
13148
13118
  ] });
13149
13119
  }
@@ -13155,7 +13125,7 @@ import { jsx as jsx146, jsxs as jsxs85 } from "react/jsx-runtime";
13155
13125
  function ContentsList({ contentList }) {
13156
13126
  const t = useTranslations54();
13157
13127
  return /* @__PURE__ */ jsxs85("div", { className: "flex min-h-0 w-full flex-col overflow-y-auto", children: [
13158
- /* @__PURE__ */ jsx146("h2", { className: "text-xl font-semibold", children: t(`foundations.content.news`) }),
13128
+ /* @__PURE__ */ jsx146("h2", { className: "text-xl font-semibold", children: t(`content.news`) }),
13159
13129
  /* @__PURE__ */ jsx146("div", { className: "flex flex-col", children: contentList.map((content) => /* @__PURE__ */ jsx146(ContentsListElement, { content }, content.id)) })
13160
13130
  ] });
13161
13131
  }
@@ -13196,7 +13166,7 @@ function ContentsListById({ contentIds }) {
13196
13166
  data,
13197
13167
  fields: ["name" /* name */, "authors" /* authors */, "updatedAt" /* updatedAt */],
13198
13168
  tableGeneratorType: Modules.Content,
13199
- title: t(`generic.relevant`)
13169
+ title: t(`common.relevant`)
13200
13170
  }
13201
13171
  );
13202
13172
  }
@@ -13218,7 +13188,7 @@ function RelevantContentsList({ id }) {
13218
13188
  data,
13219
13189
  fields: ["name" /* name */, "authors" /* authors */, "relevance" /* relevance */, "updatedAt" /* updatedAt */],
13220
13190
  tableGeneratorType: Modules.Content,
13221
- title: t(`generic.relevant`)
13191
+ title: t(`common.relevant`)
13222
13192
  }
13223
13193
  );
13224
13194
  }
@@ -13291,7 +13261,7 @@ function NotificationsList({ archived }) {
13291
13261
  return /* @__PURE__ */ jsx150(Card, { children: /* @__PURE__ */ jsx150(CardContent, { className: "p-0", children: /* @__PURE__ */ jsxs87("div", { className: `flex w-full flex-row items-center p-2`, children: [
13292
13262
  notificationData.actor ? /* @__PURE__ */ jsx150("div", { className: "flex w-12 max-w-12 px-2", children: /* @__PURE__ */ jsx150(Link, { href: generateUrl({ page: Modules.User, id: notificationData.actor.id }), children: /* @__PURE__ */ jsx150(UserAvatar, { user: notificationData.actor, className: "h-8 w-8" }) }) }) : /* @__PURE__ */ jsx150("div", { className: "flex w-14 max-w-14 px-2" }),
13293
13263
  /* @__PURE__ */ jsxs87("div", { className: "flex w-full flex-col", children: [
13294
- /* @__PURE__ */ jsx150("p", { className: "text-sm", children: t.rich(`foundations.notification.${notification.notificationType}.description`, {
13264
+ /* @__PURE__ */ jsx150("p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
13295
13265
  strong: /* @__PURE__ */ __name((chunks) => /* @__PURE__ */ jsx150("strong", { children: chunks }), "strong"),
13296
13266
  actor: notificationData.actor?.name ?? "",
13297
13267
  title: notificationData.title
@@ -13299,7 +13269,7 @@ function NotificationsList({ archived }) {
13299
13269
  /* @__PURE__ */ jsx150("div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
13300
13270
  ] }),
13301
13271
  /* @__PURE__ */ jsxs87("div", { className: "flex flex-row items-center", children: [
13302
- notificationData.url ? /* @__PURE__ */ jsx150(Link, { href: notificationData.url, children: /* @__PURE__ */ jsx150(Button, { variant: `outline`, size: `sm`, onClick: (e) => e.stopPropagation(), children: t(`foundations.notification.${notification.notificationType}.buttons.action`) }) }) : /* @__PURE__ */ jsx150(Fragment27, {}),
13272
+ notificationData.url ? /* @__PURE__ */ jsx150(Link, { href: notificationData.url, children: /* @__PURE__ */ jsx150(Button, { variant: `outline`, size: `sm`, onClick: (e) => e.stopPropagation(), children: t(`notification.${notification.notificationType}.buttons.action`) }) }) : /* @__PURE__ */ jsx150(Fragment27, {}),
13303
13273
  !archived && /* @__PURE__ */ jsxs87(Tooltip2, { children: [
13304
13274
  /* @__PURE__ */ jsx150(TooltipTrigger, { children: /* @__PURE__ */ jsx150(
13305
13275
  Button,
@@ -13314,7 +13284,7 @@ function NotificationsList({ archived }) {
13314
13284
  children: /* @__PURE__ */ jsx150(ArchiveIcon, { className: "h-4 w-4 cursor-pointer" })
13315
13285
  }
13316
13286
  ) }),
13317
- /* @__PURE__ */ jsx150(TooltipContent, { children: t(`foundations.notification.buttons.archive`) })
13287
+ /* @__PURE__ */ jsx150(TooltipContent, { children: t(`notification.buttons.archive`) })
13318
13288
  ] })
13319
13289
  ] })
13320
13290
  ] }) }) }, notification.id);
@@ -13338,11 +13308,11 @@ function NotificationsListContainerContent() {
13338
13308
  }
13339
13309
  const tabs = [
13340
13310
  {
13341
- label: t(`foundations.notification.inbox`),
13311
+ label: t(`notification.inbox`),
13342
13312
  content: /* @__PURE__ */ jsx151(NotificationsList, { archived: false })
13343
13313
  },
13344
13314
  {
13345
- label: t(`foundations.notification.archived`),
13315
+ label: t(`notification.archived`),
13346
13316
  content: /* @__PURE__ */ jsx151(NotificationsList, { archived: true })
13347
13317
  }
13348
13318
  ];
@@ -13497,11 +13467,11 @@ function NotificationModalContent({ isOpen, setIsOpen }) {
13497
13467
  className: `h-5 w-5 cursor-pointer ${unreadNotifications ? "text-destructive" : ""} ${isLoading ? "animate-pulse" : ""}`
13498
13468
  }
13499
13469
  ),
13500
- t(`types.notifications`, { count: 2 })
13470
+ t(`entities.notifications`, { count: 2 })
13501
13471
  ] }) }),
13502
13472
  /* @__PURE__ */ jsx152(PopoverContent, { className: "relative left-10 w-80 border-0 p-0 shadow-none", children: /* @__PURE__ */ jsxs89(Card, { children: [
13503
13473
  /* @__PURE__ */ jsxs89(CardHeader, { className: "p-4", children: [
13504
- /* @__PURE__ */ jsx152(CardTitle, { children: t(`types.notifications`, { count: 2 }) }),
13474
+ /* @__PURE__ */ jsx152(CardTitle, { children: t(`entities.notifications`, { count: 2 }) }),
13505
13475
  isLoading && /* @__PURE__ */ jsx152("div", { className: "text-muted-foreground text-xs", children: "Loading..." }),
13506
13476
  error && /* @__PURE__ */ jsxs89("div", { className: "text-destructive text-xs", children: [
13507
13477
  "Error: ",
@@ -13509,7 +13479,7 @@ function NotificationModalContent({ isOpen, setIsOpen }) {
13509
13479
  ] })
13510
13480
  ] }),
13511
13481
  /* @__PURE__ */ jsx152(Separator, {}),
13512
- /* @__PURE__ */ jsx152(ScrollArea, { className: "h-96", children: notifications.length > 0 ? notifications.map((notification) => /* @__PURE__ */ jsx152(Fragment28, { children: generateNotification(notification, () => setIsOpen(false)) }, notification.id)) : /* @__PURE__ */ jsx152("div", { className: "p-4 text-center text-sm text-gray-500", children: t(`foundations.notification.empty`, { count: 2 }) }) })
13482
+ /* @__PURE__ */ jsx152(ScrollArea, { className: "h-96", children: notifications.length > 0 ? notifications.map((notification) => /* @__PURE__ */ jsx152(Fragment28, { children: generateNotification(notification, () => setIsOpen(false)) }, notification.id)) : /* @__PURE__ */ jsx152("div", { className: "p-4 text-center text-sm text-gray-500", children: t(`notification.empty`) }) })
13513
13483
  ] }) })
13514
13484
  ] });
13515
13485
  }
@@ -13534,7 +13504,7 @@ function RoleDetails() {
13534
13504
  const { role } = useRoleContext();
13535
13505
  const t = useTranslations60();
13536
13506
  if (!role) return null;
13537
- return /* @__PURE__ */ jsx154(Card, { className: "w-full", children: /* @__PURE__ */ jsx154(CardContent, { className: "p-4", children: /* @__PURE__ */ jsx154(AttributeElement, { title: t(`foundations.role.fields.description.label`), value: role.description }) }) });
13507
+ return /* @__PURE__ */ jsx154(Card, { className: "w-full", children: /* @__PURE__ */ jsx154(CardContent, { className: "p-4", children: /* @__PURE__ */ jsx154(AttributeElement, { title: t(`role.fields.description.label`), value: role.description }) }) });
13538
13508
  }
13539
13509
  __name(RoleDetails, "RoleDetails");
13540
13510
 
@@ -13576,8 +13546,8 @@ function FormRoles({ form, id, name, roles }) {
13576
13546
  }
13577
13547
  ),
13578
13548
  /* @__PURE__ */ jsxs91(Tooltip2, { children: [
13579
- /* @__PURE__ */ jsx156(TooltipTrigger, { children: /* @__PURE__ */ jsx156(FieldLabel, { className: "ml-3 font-normal", children: t(`foundations.role.roles`, { role: role.id.replaceAll(`-`, ``) }) }) }),
13580
- /* @__PURE__ */ jsx156(TooltipContent, { children: t(`foundations.role.roles_descriptions`, { role: role.id.replaceAll(`-`, ``) }) })
13549
+ /* @__PURE__ */ jsx156(TooltipTrigger, { children: /* @__PURE__ */ jsx156(FieldLabel, { className: "ml-3 font-normal", children: t(`role.roles`, { role: role.id.replaceAll(`-`, ``) }) }) }),
13550
+ /* @__PURE__ */ jsx156(TooltipContent, { children: t(`role.roles_descriptions`, { role: role.id.replaceAll(`-`, ``) }) })
13581
13551
  ] })
13582
13552
  ] }, role.id);
13583
13553
  }) }) }) });
@@ -13615,10 +13585,10 @@ function RemoveUserFromRole({ role, user, refresh }) {
13615
13585
  setOpen(false);
13616
13586
  refresh();
13617
13587
  } catch (error) {
13618
- errorToast({ title: t(`generic.errors.error`), error });
13588
+ errorToast({ title: t(`common.errors.error`), error });
13619
13589
  }
13620
13590
  }, "remove");
13621
- const roleName = t(`foundations.role.roles`, { role: role.id.replaceAll(`-`, ``) });
13591
+ const roleName = t(`role.roles`, { role: role.id.replaceAll(`-`, ``) });
13622
13592
  return /* @__PURE__ */ jsxs92(Dialog, { open, onOpenChange: setOpen, children: [
13623
13593
  /* @__PURE__ */ jsx157(
13624
13594
  DialogTrigger,
@@ -13628,18 +13598,18 @@ function RemoveUserFromRole({ role, user, refresh }) {
13628
13598
  e.preventDefault();
13629
13599
  setOpen(true);
13630
13600
  },
13631
- children: /* @__PURE__ */ jsx157("span", { className: "hover:text-destructive cursor-pointer", children: t(`foundations.role.remove_user.title`) })
13601
+ children: /* @__PURE__ */ jsx157("span", { className: "hover:text-destructive cursor-pointer", children: t(`role.remove_user.title`) })
13632
13602
  }
13633
13603
  ),
13634
13604
  /* @__PURE__ */ jsxs92(DialogContent, { className: `flex max-h-[70vh] max-w-3xl flex-col overflow-y-auto`, children: [
13635
13605
  /* @__PURE__ */ jsxs92(DialogHeader, { children: [
13636
- /* @__PURE__ */ jsx157(DialogTitle, { children: t(`foundations.role.remove_user.title`) }),
13637
- /* @__PURE__ */ jsx157(DialogDescription, { children: canRemove ? t(`foundations.role.remove_user.subtitle_allowed`) : t(`foundations.role.remove_user.subtitle_not_allowed`) })
13606
+ /* @__PURE__ */ jsx157(DialogTitle, { children: t(`role.remove_user.title`) }),
13607
+ /* @__PURE__ */ jsx157(DialogDescription, { children: canRemove ? t(`role.remove_user.subtitle_allowed`) : t(`role.remove_user.subtitle_not_allowed`) })
13638
13608
  ] }),
13639
13609
  canRemove ? /* @__PURE__ */ jsxs92(Fragment31, { children: [
13640
- t(`foundations.role.remove_user.description_allowed`, { role: roleName, user: user.name }),
13610
+ t(`role.remove_user.description_allowed`, { role: roleName, user: user.name }),
13641
13611
  /* @__PURE__ */ jsxs92("div", { className: "flex justify-end", children: [
13642
- /* @__PURE__ */ jsx157(Button, { className: "mr-2", variant: "outline", type: `button`, onClick: () => setOpen(false), children: t(`generic.buttons.cancel`) }),
13612
+ /* @__PURE__ */ jsx157(Button, { className: "mr-2", variant: "outline", type: `button`, onClick: () => setOpen(false), children: t(`ui.buttons.cancel`) }),
13643
13613
  /* @__PURE__ */ jsx157(
13644
13614
  Button,
13645
13615
  {
@@ -13649,11 +13619,11 @@ function RemoveUserFromRole({ role, user, refresh }) {
13649
13619
  remove();
13650
13620
  },
13651
13621
  variant: "destructive",
13652
- children: t(`generic.buttons.confirm_delete`)
13622
+ children: t(`ui.buttons.confirm_delete`)
13653
13623
  }
13654
13624
  )
13655
13625
  ] })
13656
- ] }) : /* @__PURE__ */ jsx157(Fragment31, { children: t(`foundations.role.remove_user.description_not_allowed`, { role: roleName, user: user.name }) })
13626
+ ] }) : /* @__PURE__ */ jsx157(Fragment31, { children: t(`role.remove_user.description_not_allowed`, { role: roleName, user: user.name }) })
13657
13627
  ] })
13658
13628
  ] });
13659
13629
  }
@@ -13678,14 +13648,14 @@ function UserRoleAdd({ user, refresh }) {
13678
13648
  });
13679
13649
  setRoles(roles.filter((u) => u.id !== role.id));
13680
13650
  toast10.message(
13681
- t(`generic.association.label`, {
13682
- source: t(`types.roles`, { count: 1 }),
13683
- destination: t(`types.users`, { count: 1 })
13651
+ t(`common.association.label`, {
13652
+ source: t(`entities.roles`, { count: 1 }),
13653
+ destination: t(`entities.users`, { count: 1 })
13684
13654
  }),
13685
13655
  {
13686
- description: t(`generic.association.success`, {
13687
- source: t(`types.roles`, { count: 1 }),
13688
- destination: t(`types.users`, { count: 1 }),
13656
+ description: t(`common.association.success`, {
13657
+ source: t(`entities.roles`, { count: 1 }),
13658
+ destination: t(`entities.users`, { count: 1 }),
13689
13659
  source_name: role.name,
13690
13660
  destination_name: user.name
13691
13661
  })
@@ -13714,40 +13684,40 @@ function UserRoleAdd({ user, refresh }) {
13714
13684
  return /* @__PURE__ */ jsxs93(Fragment32, { children: [
13715
13685
  /* @__PURE__ */ jsxs93(Button, { size: "sm", onClick: () => setOpen(true), children: [
13716
13686
  /* @__PURE__ */ jsx158(PlusCircle2, { className: "mr-3 h-3.5 w-3.5" }),
13717
- t(`generic.association.label`, {
13718
- source: t(`types.roles`, { count: 1 }),
13719
- destination: t(`types.users`, { count: 1 })
13687
+ t(`common.association.label`, {
13688
+ source: t(`entities.roles`, { count: 1 }),
13689
+ destination: t(`entities.users`, { count: 1 })
13720
13690
  })
13721
13691
  ] }),
13722
13692
  /* @__PURE__ */ jsxs93(CommandDialog, { open, onOpenChange: setOpen, children: [
13723
- /* @__PURE__ */ jsx158(DialogTitle, { children: t(`generic.association.label`, {
13724
- source: t(`types.roles`, { count: 1 }),
13725
- destination: t(`types.users`, { count: 1 })
13693
+ /* @__PURE__ */ jsx158(DialogTitle, { children: t(`common.association.label`, {
13694
+ source: t(`entities.roles`, { count: 1 }),
13695
+ destination: t(`entities.users`, { count: 1 })
13726
13696
  }) }),
13727
- /* @__PURE__ */ jsx158(DialogDescription, { children: t(`generic.association.description`, {
13728
- source: t(`types.roles`, { count: 1 }),
13729
- destination: t(`types.users`, { count: 1 }),
13697
+ /* @__PURE__ */ jsx158(DialogDescription, { children: t(`common.association.description`, {
13698
+ source: t(`entities.roles`, { count: 1 }),
13699
+ destination: t(`entities.users`, { count: 1 }),
13730
13700
  destination_name: user.name
13731
13701
  }) }),
13732
13702
  /* @__PURE__ */ jsxs93(Command, { shouldFilter: false, children: [
13733
13703
  /* @__PURE__ */ jsx158(
13734
13704
  CommandInput,
13735
13705
  {
13736
- placeholder: t(`generic.search.placeholder`, { type: t(`types.roles`, { count: 1 }) }),
13706
+ placeholder: t(`ui.search.placeholder`, { type: t(`entities.roles`, { count: 1 }) }),
13737
13707
  value: searchTerm,
13738
13708
  onValueChange: setSearchTerm,
13739
13709
  ref: inputRef
13740
13710
  }
13741
13711
  ),
13742
13712
  /* @__PURE__ */ jsxs93(CommandList, { className: "mt-3 h-auto max-h-96 min-h-96 max-w-full overflow-x-hidden overflow-y-auto", children: [
13743
- /* @__PURE__ */ jsx158(CommandEmpty, { children: t(`generic.search.no_results`, { type: t(`types.roles`, { count: 1 }) }) }),
13713
+ /* @__PURE__ */ jsx158(CommandEmpty, { children: t(`ui.search.no_results`, { type: t(`entities.roles`, { count: 1 }) }) }),
13744
13714
  roles.map((role) => /* @__PURE__ */ jsx158(
13745
13715
  CommandItem,
13746
13716
  {
13747
13717
  className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
13748
13718
  onSelect: () => addUserToRole(role),
13749
13719
  onClick: () => addUserToRole(role),
13750
- children: t(`foundations.role.roles`, { role: role.id.replaceAll(`-`, ``) })
13720
+ children: t(`role.roles`, { role: role.id.replaceAll(`-`, ``) })
13751
13721
  },
13752
13722
  role.id
13753
13723
  ))
@@ -13774,7 +13744,7 @@ function RolesList() {
13774
13744
  data,
13775
13745
  fields: ["name" /* name */, "description" /* description */],
13776
13746
  tableGeneratorType: Modules.Role,
13777
- title: t(`types.roles`, { count: 2 })
13747
+ title: t(`entities.roles`, { count: 2 })
13778
13748
  }
13779
13749
  );
13780
13750
  }
@@ -13796,7 +13766,7 @@ function UserRolesList({ user }) {
13796
13766
  data,
13797
13767
  fields: ["name" /* name */, "description" /* description */],
13798
13768
  tableGeneratorType: Modules.Role,
13799
- title: t(`types.roles`, { count: 2 })
13769
+ title: t(`entities.roles`, { count: 2 })
13800
13770
  }
13801
13771
  );
13802
13772
  }
@@ -15106,4 +15076,4 @@ export {
15106
15076
  useOAuthClients,
15107
15077
  useOAuthClient
15108
15078
  };
15109
- //# sourceMappingURL=chunk-YLSLXQ3O.mjs.map
15079
+ //# sourceMappingURL=chunk-3HGZMKT4.mjs.map