@carlonicora/nextjs-jsonapi 1.117.0 → 1.118.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/{AssistantMessageInterface-Ca0G0vZw.d.mts → AssistantMessageInterface-DH1QwtC_.d.mts} +1 -0
  2. package/dist/{AssistantMessageInterface-DEZ5AnVl.d.ts → AssistantMessageInterface-giWvsOrX.d.ts} +1 -0
  3. package/dist/{BlockNoteEditor-6UREFUSJ.js → BlockNoteEditor-5FFVS7KW.js} +9 -9
  4. package/dist/{BlockNoteEditor-6UREFUSJ.js.map → BlockNoteEditor-5FFVS7KW.js.map} +1 -1
  5. package/dist/{BlockNoteEditor-UQOOX3UT.mjs → BlockNoteEditor-6GRZW6BL.mjs} +2 -2
  6. package/dist/billing/index.js +299 -299
  7. package/dist/billing/index.mjs +1 -1
  8. package/dist/{chunk-SVEPL5J2.mjs → chunk-KXHEOLPZ.mjs} +287 -156
  9. package/dist/chunk-KXHEOLPZ.mjs.map +1 -0
  10. package/dist/{chunk-HXU2HDRN.js → chunk-M2ODDWY3.js} +372 -241
  11. package/dist/chunk-M2ODDWY3.js.map +1 -0
  12. package/dist/client/index.js +2 -2
  13. package/dist/client/index.mjs +1 -1
  14. package/dist/components/index.d.mts +73 -31
  15. package/dist/components/index.d.ts +73 -31
  16. package/dist/components/index.js +4 -2
  17. package/dist/components/index.js.map +1 -1
  18. package/dist/components/index.mjs +3 -1
  19. package/dist/contexts/index.d.mts +1 -1
  20. package/dist/contexts/index.d.ts +1 -1
  21. package/dist/contexts/index.js +2 -2
  22. package/dist/contexts/index.mjs +1 -1
  23. package/dist/core/index.d.mts +2 -2
  24. package/dist/core/index.d.ts +2 -2
  25. package/dist/features/help/index.js +30 -30
  26. package/dist/features/help/index.mjs +1 -1
  27. package/dist/index.d.mts +1 -1
  28. package/dist/index.d.ts +1 -1
  29. package/package.json +1 -1
  30. package/src/components/containers/RoundPageContainer.tsx +197 -76
  31. package/src/components/containers/TabsContainer.tsx +14 -0
  32. package/src/components/containers/__tests__/partitionTabs.spec.ts +51 -0
  33. package/src/components/containers/index.ts +1 -0
  34. package/src/components/containers/partitionTabs.ts +43 -0
  35. package/src/components/forms/EditorSheet.tsx +7 -2
  36. package/src/components/navigations/Breadcrumb.tsx +31 -5
  37. package/src/hooks/useSocket.ts +12 -1
  38. package/src/interfaces/breadcrumb.item.data.interface.ts +1 -0
  39. package/dist/chunk-HXU2HDRN.js.map +0 -1
  40. package/dist/chunk-SVEPL5J2.mjs.map +0 -1
  41. /package/dist/{BlockNoteEditor-UQOOX3UT.mjs.map → BlockNoteEditor-6GRZW6BL.mjs.map} +0 -0
@@ -7443,7 +7443,15 @@ function useSocket({ token }) {
7443
7443
  });
7444
7444
  }, "handleMessage");
7445
7445
  const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
7446
- const notification = _chunkS2PTWBN6js.rehydrate.call(void 0, _chunkS2PTWBN6js.Modules.Notification, data);
7446
+ const resource = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _177 => _177.data]), () => ( _optionalChain([data, 'optionalAccess', _178 => _178.jsonApi])));
7447
+ if (!_optionalChain([resource, 'optionalAccess', _179 => _179.type])) {
7448
+ console.warn("[useSocket] ignoring notification with unexpected payload shape", data);
7449
+ return;
7450
+ }
7451
+ const notification = _chunkS2PTWBN6js.rehydrate.call(void 0, _chunkS2PTWBN6js.Modules.Notification, {
7452
+ jsonApi: resource,
7453
+ included: _optionalChain([data, 'optionalAccess', _180 => _180.included]) || []
7454
+ });
7447
7455
  if (notification) {
7448
7456
  setSocketNotifications((prev) => {
7449
7457
  const newNotifications = [...prev, notification];
@@ -7580,23 +7588,23 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
7580
7588
  );
7581
7589
  const matchedModuleKey = moduleKeys.find((key) => {
7582
7590
  const descriptor2 = Object.getOwnPropertyDescriptor(_chunkS2PTWBN6js.Modules, key);
7583
- if (!_optionalChain([descriptor2, 'optionalAccess', _177 => _177.get])) return false;
7591
+ if (!_optionalChain([descriptor2, 'optionalAccess', _181 => _181.get])) return false;
7584
7592
  const selectedModule = descriptor2.get.call(_chunkS2PTWBN6js.Modules);
7585
- return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _178 => _178.pageUrl, 'optionalAccess', _179 => _179.toLowerCase, 'call', _180 => _180()]));
7593
+ return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _182 => _182.pageUrl, 'optionalAccess', _183 => _183.toLowerCase, 'call', _184 => _184()]));
7586
7594
  });
7587
7595
  if (!matchedModuleKey) return void 0;
7588
7596
  const descriptor = Object.getOwnPropertyDescriptor(_chunkS2PTWBN6js.Modules, matchedModuleKey);
7589
- return _optionalChain([descriptor, 'optionalAccess', _181 => _181.get, 'optionalAccess', _182 => _182.call, 'call', _183 => _183(_chunkS2PTWBN6js.Modules)]);
7597
+ return _optionalChain([descriptor, 'optionalAccess', _185 => _185.get, 'optionalAccess', _186 => _186.call, 'call', _187 => _187(_chunkS2PTWBN6js.Modules)]);
7590
7598
  }, "matchUrlToModule");
7591
7599
  const currentUser = dehydratedUser ? _chunkS2PTWBN6js.rehydrate.call(void 0, _chunkS2PTWBN6js.Modules.User, dehydratedUser) : null;
7592
- const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _184 => _184.company]), () => ( null));
7600
+ const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _188 => _188.company]), () => ( null));
7593
7601
  const setUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (user) => {
7594
7602
  if (user) setDehydratedUser(user.dehydrate());
7595
7603
  else setDehydratedUser(null);
7596
7604
  }, "setUser");
7597
7605
  const hasRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (roleId) => {
7598
7606
  if (!currentUser) return false;
7599
- return !!_optionalChain([currentUser, 'access', _185 => _185.roles, 'optionalAccess', _186 => _186.some, 'call', _187 => _187((userRole) => userRole.id === roleId)]);
7607
+ return !!_optionalChain([currentUser, 'access', _189 => _189.roles, 'optionalAccess', _190 => _190.some, 'call', _191 => _191((userRole) => userRole.id === roleId)]);
7600
7608
  }, "hasRole");
7601
7609
  const hasAccesToFeature = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (featureIdentifier) => {
7602
7610
  if (hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator)) return true;
@@ -7636,12 +7644,12 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
7636
7644
  try {
7637
7645
  const fullUser = await _chunkS2PTWBN6js.UserService.findFullUser();
7638
7646
  if (fullUser) {
7639
- if (!_optionalChain([options, 'optionalAccess', _188 => _188.skipCookieUpdate])) {
7640
- await _optionalChain([_chunkS2PTWBN6js.getTokenHandler.call(void 0, ), 'optionalAccess', _189 => _189.updateToken, 'call', _190 => _190({
7647
+ if (!_optionalChain([options, 'optionalAccess', _192 => _192.skipCookieUpdate])) {
7648
+ await _optionalChain([_chunkS2PTWBN6js.getTokenHandler.call(void 0, ), 'optionalAccess', _193 => _193.updateToken, 'call', _194 => _194({
7641
7649
  userId: fullUser.id,
7642
- companyId: _optionalChain([fullUser, 'access', _191 => _191.company, 'optionalAccess', _192 => _192.id]),
7650
+ companyId: _optionalChain([fullUser, 'access', _195 => _195.company, 'optionalAccess', _196 => _196.id]),
7643
7651
  roles: fullUser.roles.map((role) => role.id),
7644
- features: _nullishCoalesce(_optionalChain([fullUser, 'access', _193 => _193.company, 'optionalAccess', _194 => _194.features, 'optionalAccess', _195 => _195.map, 'call', _196 => _196((feature) => feature.id)]), () => ( [])),
7652
+ features: _nullishCoalesce(_optionalChain([fullUser, 'access', _197 => _197.company, 'optionalAccess', _198 => _198.features, 'optionalAccess', _199 => _199.map, 'call', _200 => _200((feature) => feature.id)]), () => ( [])),
7645
7653
  modules: fullUser.modules.map((module) => ({
7646
7654
  id: module.id,
7647
7655
  permissions: module.permissions
@@ -7663,11 +7671,11 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
7663
7671
  refreshUserRef.current = refreshUser;
7664
7672
  const isRefreshingRef = _react.useRef.call(void 0, false);
7665
7673
  _react.useEffect.call(void 0, () => {
7666
- if (!socket || !isConnected || !_optionalChain([currentUser, 'optionalAccess', _197 => _197.company, 'optionalAccess', _198 => _198.id])) {
7674
+ if (!socket || !isConnected || !_optionalChain([currentUser, 'optionalAccess', _201 => _201.company, 'optionalAccess', _202 => _202.id])) {
7667
7675
  return;
7668
7676
  }
7669
7677
  const handleCompanyUpdate = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
7670
- if (data.companyId === _optionalChain([currentUser, 'access', _199 => _199.company, 'optionalAccess', _200 => _200.id]) && !isRefreshingRef.current) {
7678
+ if (data.companyId === _optionalChain([currentUser, 'access', _203 => _203.company, 'optionalAccess', _204 => _204.id]) && !isRefreshingRef.current) {
7671
7679
  isRefreshingRef.current = true;
7672
7680
  refreshUserRef.current({ skipCookieUpdate: true }).finally(() => {
7673
7681
  isRefreshingRef.current = false;
@@ -7680,7 +7688,7 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
7680
7688
  socket.off("company:tokens_updated", handleCompanyUpdate);
7681
7689
  socket.off("company:subscription_updated", handleCompanyUpdate);
7682
7690
  };
7683
- }, [socket, isConnected, _optionalChain([currentUser, 'optionalAccess', _201 => _201.company, 'optionalAccess', _202 => _202.id])]);
7691
+ }, [socket, isConnected, _optionalChain([currentUser, 'optionalAccess', _205 => _205.company, 'optionalAccess', _206 => _206.id])]);
7684
7692
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7685
7693
  CurrentUserContext.Provider,
7686
7694
  {
@@ -7751,7 +7759,7 @@ function AddUserToRoleInternal({ role, refresh }) {
7751
7759
  const data = useDataListRetriever({
7752
7760
  ready: !!company && show,
7753
7761
  retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkS2PTWBN6js.UserService.findAllUsers(params), "retriever"),
7754
- retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _203 => _203.id]) },
7762
+ retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _207 => _207.id]) },
7755
7763
  module: _chunkS2PTWBN6js.Modules.User
7756
7764
  });
7757
7765
  _react.useEffect.call(void 0, () => {
@@ -7819,10 +7827,10 @@ function UserAvatarEditor({ user, file, setFile, resetImage, setResetImage }) {
7819
7827
  onValueChange: setFiles,
7820
7828
  dropzoneOptions: dropzone2,
7821
7829
  className: "h-40 w-40 rounded-full p-0",
7822
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "bg-muted text-muted-foreground flex h-full w-full flex-col items-center justify-center", children: !resetImage && (file || _optionalChain([user, 'optionalAccess', _204 => _204.avatar])) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7830
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "bg-muted text-muted-foreground flex h-full w-full flex-col items-center justify-center", children: !resetImage && (file || _optionalChain([user, 'optionalAccess', _208 => _208.avatar])) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7823
7831
  _image2.default,
7824
7832
  {
7825
- src: file ? URL.createObjectURL(file) : _optionalChain([user, 'optionalAccess', _205 => _205.avatar]) || "",
7833
+ src: file ? URL.createObjectURL(file) : _optionalChain([user, 'optionalAccess', _209 => _209.avatar]) || "",
7826
7834
  alt: t(`common.avatar`),
7827
7835
  width: 200,
7828
7836
  height: 200
@@ -7830,7 +7838,7 @@ function UserAvatarEditor({ user, file, setFile, resetImage, setResetImage }) {
7830
7838
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.UploadIcon, { className: "my-4 h-8 w-8" }) })
7831
7839
  }
7832
7840
  ),
7833
- !resetImage && (file || _optionalChain([user, 'optionalAccess', _206 => _206.avatar])) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7841
+ !resetImage && (file || _optionalChain([user, 'optionalAccess', _210 => _210.avatar])) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7834
7842
  Button,
7835
7843
  {
7836
7844
  className: "",
@@ -7858,7 +7866,7 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
7858
7866
  const router = _chunk6KLR3WJQjs.useI18nRouter.call(void 0, );
7859
7867
  const _t = _nextintl.useTranslations.call(void 0, );
7860
7868
  let cId;
7861
- if (_optionalChain([currentUser, 'optionalAccess', _207 => _207.roles, 'access', _208 => _208.find, 'call', _209 => _209((role) => role.id === _chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator)]) && companyId) {
7869
+ if (_optionalChain([currentUser, 'optionalAccess', _211 => _211.roles, 'access', _212 => _212.find, 'call', _213 => _213((role) => role.id === _chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator)]) && companyId) {
7862
7870
  cId = companyId;
7863
7871
  } else {
7864
7872
  if (!company) return;
@@ -7921,18 +7929,18 @@ function UserEditorInternal({
7921
7929
  }, [company]);
7922
7930
  const handleDialogOpenChange = _react.useCallback.call(void 0,
7923
7931
  (open) => {
7924
- if (open && (company || _optionalChain([currentUser, 'optionalAccess', _210 => _210.roles, 'access', _211 => _211.find, 'call', _212 => _212((role) => role.id === _chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator)])) && roles.length === 0) {
7932
+ if (open && (company || _optionalChain([currentUser, 'optionalAccess', _214 => _214.roles, 'access', _215 => _215.find, 'call', _216 => _216((role) => role.id === _chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator)])) && roles.length === 0) {
7925
7933
  async function fetchRoles() {
7926
7934
  const allRoles = await _chunkS2PTWBN6js.RoleService.findAllRoles({});
7927
7935
  const availableRoles = allRoles.filter(
7928
- (role) => role.id !== _chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _213 => _213.features, 'access', _214 => _214.some, 'call', _215 => _215((feature) => feature.id === _optionalChain([role, 'access', _216 => _216.requiredFeature, 'optionalAccess', _217 => _217.id]))]))
7936
+ (role) => role.id !== _chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _217 => _217.features, 'access', _218 => _218.some, 'call', _219 => _219((feature) => feature.id === _optionalChain([role, 'access', _220 => _220.requiredFeature, 'optionalAccess', _221 => _221.id]))]))
7929
7937
  );
7930
7938
  setRoles(availableRoles);
7931
7939
  }
7932
7940
  _chunk7QVYU63Ejs.__name.call(void 0, fetchRoles, "fetchRoles");
7933
7941
  fetchRoles();
7934
7942
  }
7935
- _optionalChain([onDialogOpenChange, 'optionalCall', _218 => _218(open)]);
7943
+ _optionalChain([onDialogOpenChange, 'optionalCall', _222 => _222(open)]);
7936
7944
  },
7937
7945
  [company, currentUser, roles.length, onDialogOpenChange]
7938
7946
  );
@@ -7966,29 +7974,29 @@ function UserEditorInternal({
7966
7974
  );
7967
7975
  const getDefaultValues = _react.useCallback.call(void 0, () => {
7968
7976
  return {
7969
- id: _optionalChain([user, 'optionalAccess', _219 => _219.id]) || _uuid.v4.call(void 0, ),
7970
- name: _optionalChain([user, 'optionalAccess', _220 => _220.name]) || "",
7971
- title: _optionalChain([user, 'optionalAccess', _221 => _221.title]) || "",
7972
- bio: _optionalChain([user, 'optionalAccess', _222 => _222.bio]) || "",
7973
- email: _optionalChain([user, 'optionalAccess', _223 => _223.email]) || "",
7974
- phone: _optionalChain([user, 'optionalAccess', _224 => _224.phone]) || "",
7977
+ id: _optionalChain([user, 'optionalAccess', _223 => _223.id]) || _uuid.v4.call(void 0, ),
7978
+ name: _optionalChain([user, 'optionalAccess', _224 => _224.name]) || "",
7979
+ title: _optionalChain([user, 'optionalAccess', _225 => _225.title]) || "",
7980
+ bio: _optionalChain([user, 'optionalAccess', _226 => _226.bio]) || "",
7981
+ email: _optionalChain([user, 'optionalAccess', _227 => _227.email]) || "",
7982
+ phone: _optionalChain([user, 'optionalAccess', _228 => _228.phone]) || "",
7975
7983
  password: "",
7976
- roleIds: _optionalChain([user, 'optionalAccess', _225 => _225.roles, 'access', _226 => _226.map, 'call', _227 => _227((role) => role.id)]) || [],
7984
+ roleIds: _optionalChain([user, 'optionalAccess', _229 => _229.roles, 'access', _230 => _230.map, 'call', _231 => _231((role) => role.id)]) || [],
7977
7985
  sendInvitationEmail: false,
7978
- avatar: _optionalChain([user, 'optionalAccess', _228 => _228.avatarUrl]) || ""
7986
+ avatar: _optionalChain([user, 'optionalAccess', _232 => _232.avatarUrl]) || ""
7979
7987
  };
7980
7988
  }, [user]);
7981
7989
  const form = _reacthookform.useForm.call(void 0, {
7982
7990
  resolver: _zod.zodResolver.call(void 0, formSchema),
7983
7991
  defaultValues: getDefaultValues()
7984
7992
  });
7985
- const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _229 => _229.id]) === _optionalChain([user, 'optionalAccess', _230 => _230.id]) && hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkS2PTWBN6js.Modules.User, action: "update" /* Update */ }) || hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator));
7993
+ const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _233 => _233.id]) === _optionalChain([user, 'optionalAccess', _234 => _234.id]) && hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkS2PTWBN6js.Modules.User, action: "update" /* Update */ }) || hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator));
7986
7994
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7987
7995
  EditorSheet,
7988
7996
  {
7989
7997
  form,
7990
7998
  entityType: t(`entities.users`, { count: 1 }),
7991
- entityName: _optionalChain([user, 'optionalAccess', _231 => _231.name]),
7999
+ entityName: _optionalChain([user, 'optionalAccess', _235 => _235.name]),
7992
8000
  isEdit: !!user,
7993
8001
  module: _chunkS2PTWBN6js.Modules.User,
7994
8002
  propagateChanges,
@@ -8040,7 +8048,7 @@ function UserEditorInternal({
8040
8048
  adminCreated
8041
8049
  };
8042
8050
  const updatedUser = user ? await _chunkS2PTWBN6js.UserService.update(payload) : await _chunkS2PTWBN6js.UserService.create(payload);
8043
- if (_optionalChain([currentUser, 'optionalAccess', _232 => _232.id]) === updatedUser.id) setUser(updatedUser);
8051
+ if (_optionalChain([currentUser, 'optionalAccess', _236 => _236.id]) === updatedUser.id) setUser(updatedUser);
8044
8052
  return updatedUser;
8045
8053
  },
8046
8054
  onRevalidate,
@@ -8288,7 +8296,7 @@ function EntityMultiSelector({
8288
8296
  if (open) {
8289
8297
  setSearchTerm("");
8290
8298
  requestAnimationFrame(() => {
8291
- _optionalChain([searchInputRef, 'access', _233 => _233.current, 'optionalAccess', _234 => _234.focus, 'call', _235 => _235()]);
8299
+ _optionalChain([searchInputRef, 'access', _237 => _237.current, 'optionalAccess', _238 => _238.focus, 'call', _239 => _239()]);
8292
8300
  });
8293
8301
  }
8294
8302
  }, [open]);
@@ -8305,7 +8313,7 @@ function EntityMultiSelector({
8305
8313
  form.setValue(id, next, { shouldDirty: true, shouldTouch: true });
8306
8314
  const cb = onChangeRef.current;
8307
8315
  if (cb) {
8308
- const fullData = next.map((v) => _optionalChain([options, 'access', _236 => _236.find, 'call', _237 => _237((opt) => opt.id === v.id), 'optionalAccess', _238 => _238.entityData])).filter(Boolean);
8316
+ const fullData = next.map((v) => _optionalChain([options, 'access', _240 => _240.find, 'call', _241 => _241((opt) => opt.id === v.id), 'optionalAccess', _242 => _242.entityData])).filter(Boolean);
8309
8317
  cb(fullData);
8310
8318
  }
8311
8319
  },
@@ -8318,7 +8326,7 @@ function EntityMultiSelector({
8318
8326
  form.setValue(id, next, { shouldDirty: true, shouldTouch: true });
8319
8327
  const cb = onChangeRef.current;
8320
8328
  if (cb) {
8321
- const fullData = next.map((v) => _optionalChain([options, 'access', _239 => _239.find, 'call', _240 => _240((opt) => opt.id === v.id), 'optionalAccess', _241 => _241.entityData])).filter(Boolean);
8329
+ const fullData = next.map((v) => _optionalChain([options, 'access', _243 => _243.find, 'call', _244 => _244((opt) => opt.id === v.id), 'optionalAccess', _245 => _245.entityData])).filter(Boolean);
8322
8330
  cb(fullData);
8323
8331
  }
8324
8332
  },
@@ -8456,11 +8464,11 @@ function UserMultiSelect({
8456
8464
  emptyText: t("ui.search.no_results", { type: t("entities.users", { count: 2 }) }),
8457
8465
  isRequired,
8458
8466
  retriever: (params) => _chunkS2PTWBN6js.UserService.findAllUsers(params),
8459
- retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _242 => _242.id]) },
8467
+ retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _246 => _246.id]) },
8460
8468
  module: _chunkS2PTWBN6js.Modules.User,
8461
8469
  getLabel: (user) => user.name,
8462
8470
  toFormValue: (user) => ({ id: user.id, name: user.name, avatar: user.avatar }),
8463
- excludeId: _optionalChain([currentUser, 'optionalAccess', _243 => _243.id]),
8471
+ excludeId: _optionalChain([currentUser, 'optionalAccess', _247 => _247.id]),
8464
8472
  onChange,
8465
8473
  renderOption: (user) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-2", children: [
8466
8474
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatarIcon, { url: user.avatar, name: user.name }),
@@ -8726,7 +8734,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ErrorDetails, "ErrorDetails");
8726
8734
 
8727
8735
  // src/components/errors/errorToast.ts
8728
8736
  function errorToast(params) {
8729
- _chunkS2PTWBN6js.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess', _244 => _244.title]), () => ( "Error")), {
8737
+ _chunkS2PTWBN6js.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess', _248 => _248.title]), () => ( "Error")), {
8730
8738
  description: params.error instanceof Error ? params.error.message : String(params.error)
8731
8739
  });
8732
8740
  }
@@ -8923,21 +8931,21 @@ function useEditorDialog(isFormDirty, options) {
8923
8931
  const [open, setOpen] = _react.useState.call(void 0, false);
8924
8932
  const [showDiscardConfirm, setShowDiscardConfirm] = _react.useState.call(void 0, false);
8925
8933
  _react.useEffect.call(void 0, () => {
8926
- if (_optionalChain([options, 'optionalAccess', _245 => _245.dialogOpen]) !== void 0) {
8934
+ if (_optionalChain([options, 'optionalAccess', _249 => _249.dialogOpen]) !== void 0) {
8927
8935
  setOpen(options.dialogOpen);
8928
8936
  }
8929
- }, [_optionalChain([options, 'optionalAccess', _246 => _246.dialogOpen])]);
8937
+ }, [_optionalChain([options, 'optionalAccess', _250 => _250.dialogOpen])]);
8930
8938
  _react.useEffect.call(void 0, () => {
8931
- if (typeof _optionalChain([options, 'optionalAccess', _247 => _247.onDialogOpenChange]) === "function") {
8939
+ if (typeof _optionalChain([options, 'optionalAccess', _251 => _251.onDialogOpenChange]) === "function") {
8932
8940
  options.onDialogOpenChange(open);
8933
8941
  }
8934
- }, [open, _optionalChain([options, 'optionalAccess', _248 => _248.onDialogOpenChange])]);
8942
+ }, [open, _optionalChain([options, 'optionalAccess', _252 => _252.onDialogOpenChange])]);
8935
8943
  _react.useEffect.call(void 0, () => {
8936
- if (_optionalChain([options, 'optionalAccess', _249 => _249.forceShow])) setOpen(true);
8937
- }, [_optionalChain([options, 'optionalAccess', _250 => _250.forceShow])]);
8944
+ if (_optionalChain([options, 'optionalAccess', _253 => _253.forceShow])) setOpen(true);
8945
+ }, [_optionalChain([options, 'optionalAccess', _254 => _254.forceShow])]);
8938
8946
  _react.useEffect.call(void 0, () => {
8939
8947
  if (!open) {
8940
- if (_optionalChain([options, 'optionalAccess', _251 => _251.onClose])) options.onClose();
8948
+ if (_optionalChain([options, 'optionalAccess', _255 => _255.onClose])) options.onClose();
8941
8949
  }
8942
8950
  }, [open]);
8943
8951
  const handleOpenChange = _react.useCallback.call(void 0,
@@ -9032,7 +9040,7 @@ function EditorSheet({
9032
9040
  hasBeenOpen.current = true;
9033
9041
  } else if (hasBeenOpen.current) {
9034
9042
  form.reset(onReset());
9035
- _optionalChain([onClose, 'optionalCall', _252 => _252()]);
9043
+ _optionalChain([onClose, 'optionalCall', _256 => _256()]);
9036
9044
  }
9037
9045
  }, [open]);
9038
9046
  const wrappedOnSubmit = _react.useCallback.call(void 0,
@@ -9046,11 +9054,11 @@ function EditorSheet({
9046
9054
  if (onSuccess) {
9047
9055
  await onSuccess();
9048
9056
  } else if (result) {
9049
- _optionalChain([onRevalidate, 'optionalCall', _253 => _253(generateUrl({ page: module, id: result.id, language: "[locale]" }))]);
9057
+ _optionalChain([onRevalidate, 'optionalCall', _257 => _257(generateUrl({ page: module, id: result.id, language: "[locale]" }))]);
9050
9058
  if (isEdit && propagateChanges) {
9051
9059
  propagateChanges(result);
9052
9060
  } else {
9053
- _optionalChain([onNavigate, 'optionalCall', _254 => _254(generateUrl({ page: module, id: result.id }))]);
9061
+ _optionalChain([onNavigate, 'optionalCall', _258 => _258(generateUrl({ page: module, id: result.id }))]);
9054
9062
  }
9055
9063
  }
9056
9064
  } catch (error) {
@@ -9064,7 +9072,14 @@ function EditorSheet({
9064
9072
  );
9065
9073
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
9066
9074
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Sheet, { open, onOpenChange: handleOpenChange, children: [
9067
- dialogOpen === void 0 && forceShow === void 0 && (trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTrigger, { children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTrigger, { children: isEdit ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9075
+ dialogOpen === void 0 && forceShow === void 0 && (trigger ? (
9076
+ // Base UI: the trigger renders its own <button>. Pass the caller's
9077
+ // element via `render` (NOT as children) so it BECOMES the trigger
9078
+ // button — otherwise an interactive trigger (e.g. <Button>) nests a
9079
+ // <button> inside SheetTrigger's <button> (invalid HTML / hydration
9080
+ // error). `render` also preserves the element's native `disabled`.
9081
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTrigger, { render: trigger })
9082
+ ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTrigger, { children: isEdit ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9068
9083
  Button,
9069
9084
  {
9070
9085
  render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {}),
@@ -9293,7 +9308,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
9293
9308
  }, []);
9294
9309
  const [prevRange, setPrevRange] = _react.useState.call(void 0, date);
9295
9310
  _react.useEffect.call(void 0, () => {
9296
- if (_optionalChain([date, 'optionalAccess', _255 => _255.from]) && _optionalChain([date, 'optionalAccess', _256 => _256.to]) && date.to > date.from && (_optionalChain([prevRange, 'optionalAccess', _257 => _257.from, 'optionalAccess', _258 => _258.getTime, 'call', _259 => _259()]) !== date.from.getTime() || _optionalChain([prevRange, 'optionalAccess', _260 => _260.to, 'optionalAccess', _261 => _261.getTime, 'call', _262 => _262()]) !== date.to.getTime())) {
9311
+ if (_optionalChain([date, 'optionalAccess', _259 => _259.from]) && _optionalChain([date, 'optionalAccess', _260 => _260.to]) && date.to > date.from && (_optionalChain([prevRange, 'optionalAccess', _261 => _261.from, 'optionalAccess', _262 => _262.getTime, 'call', _263 => _263()]) !== date.from.getTime() || _optionalChain([prevRange, 'optionalAccess', _264 => _264.to, 'optionalAccess', _265 => _265.getTime, 'call', _266 => _266()]) !== date.to.getTime())) {
9297
9312
  onDateChange(date);
9298
9313
  setPrevRange(date);
9299
9314
  setOpen(false);
@@ -9304,7 +9319,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
9304
9319
  setDate(void 0);
9305
9320
  return;
9306
9321
  }
9307
- if (range.from && (!_optionalChain([date, 'optionalAccess', _263 => _263.from]) || range.from.getTime() !== date.from.getTime())) {
9322
+ if (range.from && (!_optionalChain([date, 'optionalAccess', _267 => _267.from]) || range.from.getTime() !== date.from.getTime())) {
9308
9323
  setDate({ from: range.from, to: void 0 });
9309
9324
  } else {
9310
9325
  setDate(range);
@@ -9319,7 +9334,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
9319
9334
  className: _chunkS2PTWBN6js.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
9320
9335
  children: [
9321
9336
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
9322
- _optionalChain([date, 'optionalAccess', _264 => _264.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
9337
+ _optionalChain([date, 'optionalAccess', _268 => _268.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
9323
9338
  _datefns.format.call(void 0, date.from, "LLL dd, y"),
9324
9339
  " - ",
9325
9340
  _datefns.format.call(void 0, date.to, "LLL dd, y")
@@ -9342,7 +9357,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
9342
9357
  ),
9343
9358
  children: [
9344
9359
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
9345
- _optionalChain([date, 'optionalAccess', _265 => _265.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
9360
+ _optionalChain([date, 'optionalAccess', _269 => _269.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
9346
9361
  _datefns.format.call(void 0, date.from, "LLL dd, y"),
9347
9362
  " - ",
9348
9363
  _datefns.format.call(void 0, date.to, "LLL dd, y")
@@ -9355,7 +9370,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
9355
9370
  Calendar,
9356
9371
  {
9357
9372
  mode: "range",
9358
- defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess', _266 => _266.from]), () => ( (showPreviousMonth ? new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 1) : void 0))),
9373
+ defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess', _270 => _270.from]), () => ( (showPreviousMonth ? new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 1) : void 0))),
9359
9374
  selected: date,
9360
9375
  onSelect: handleSelect,
9361
9376
  numberOfMonths: 2
@@ -9443,7 +9458,7 @@ var FileUploader = _react.forwardRef.call(void 0,
9443
9458
  movePrev();
9444
9459
  } else if (e.key === "Enter" || e.key === "Space") {
9445
9460
  if (activeIndex === -1) {
9446
- _optionalChain([dropzoneState, 'access', _267 => _267.inputRef, 'access', _268 => _268.current, 'optionalAccess', _269 => _269.click, 'call', _270 => _270()]);
9461
+ _optionalChain([dropzoneState, 'access', _271 => _271.inputRef, 'access', _272 => _272.current, 'optionalAccess', _273 => _273.click, 'call', _274 => _274()]);
9447
9462
  }
9448
9463
  } else if (e.key === "Delete" || e.key === "Backspace") {
9449
9464
  if (activeIndex !== -1) {
@@ -9481,13 +9496,13 @@ var FileUploader = _react.forwardRef.call(void 0,
9481
9496
  onValueChange(newValues);
9482
9497
  if (rejectedFiles.length > 0) {
9483
9498
  for (let i = 0; i < rejectedFiles.length; i++) {
9484
- if (_optionalChain([rejectedFiles, 'access', _271 => _271[i], 'access', _272 => _272.errors, 'access', _273 => _273[0], 'optionalAccess', _274 => _274.code]) === "file-too-large") {
9499
+ if (_optionalChain([rejectedFiles, 'access', _275 => _275[i], 'access', _276 => _276.errors, 'access', _277 => _277[0], 'optionalAccess', _278 => _278.code]) === "file-too-large") {
9485
9500
  _chunkS2PTWBN6js.showError.call(void 0, t("common.errors.file"), {
9486
9501
  description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
9487
9502
  });
9488
9503
  break;
9489
9504
  }
9490
- if (_optionalChain([rejectedFiles, 'access', _275 => _275[i], 'access', _276 => _276.errors, 'access', _277 => _277[0], 'optionalAccess', _278 => _278.message])) {
9505
+ if (_optionalChain([rejectedFiles, 'access', _279 => _279[i], 'access', _280 => _280.errors, 'access', _281 => _281[0], 'optionalAccess', _282 => _282.message])) {
9491
9506
  _chunkS2PTWBN6js.showError.call(void 0, t(`common.errors.file`), {
9492
9507
  description: rejectedFiles[i].errors[0].message
9493
9508
  });
@@ -9786,7 +9801,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, FormCheckbox, "FormCheckbox");
9786
9801
  var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
9787
9802
 
9788
9803
 
9789
- var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-6UREFUSJ.js"))), {
9804
+ var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-5FFVS7KW.js"))), {
9790
9805
  ssr: false
9791
9806
  });
9792
9807
  var BlockNoteEditorContainer = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
@@ -9851,7 +9866,7 @@ function FormBlockNote({
9851
9866
  onChange: (content, isEmpty) => {
9852
9867
  lastEditorContentRef.current = content;
9853
9868
  field.onChange(content);
9854
- _optionalChain([onEmptyChange, 'optionalCall', _279 => _279(isEmpty)]);
9869
+ _optionalChain([onEmptyChange, 'optionalCall', _283 => _283(isEmpty)]);
9855
9870
  },
9856
9871
  placeholder,
9857
9872
  bordered: true,
@@ -10450,11 +10465,11 @@ function FormPlaceAutocomplete({
10450
10465
  const data = await response.json();
10451
10466
  if (data.suggestions) {
10452
10467
  const formattedSuggestions = data.suggestions.map((suggestion) => ({
10453
- place_id: _optionalChain([suggestion, 'access', _280 => _280.placePrediction, 'optionalAccess', _281 => _281.placeId]) || "",
10454
- description: _optionalChain([suggestion, 'access', _282 => _282.placePrediction, 'optionalAccess', _283 => _283.text, 'optionalAccess', _284 => _284.text]) || "",
10468
+ place_id: _optionalChain([suggestion, 'access', _284 => _284.placePrediction, 'optionalAccess', _285 => _285.placeId]) || "",
10469
+ description: _optionalChain([suggestion, 'access', _286 => _286.placePrediction, 'optionalAccess', _287 => _287.text, 'optionalAccess', _288 => _288.text]) || "",
10455
10470
  structured_formatting: {
10456
- main_text: _optionalChain([suggestion, 'access', _285 => _285.placePrediction, 'optionalAccess', _286 => _286.structuredFormat, 'optionalAccess', _287 => _287.mainText, 'optionalAccess', _288 => _288.text]) || "",
10457
- secondary_text: _optionalChain([suggestion, 'access', _289 => _289.placePrediction, 'optionalAccess', _290 => _290.structuredFormat, 'optionalAccess', _291 => _291.secondaryText, 'optionalAccess', _292 => _292.text]) || ""
10471
+ main_text: _optionalChain([suggestion, 'access', _289 => _289.placePrediction, 'optionalAccess', _290 => _290.structuredFormat, 'optionalAccess', _291 => _291.mainText, 'optionalAccess', _292 => _292.text]) || "",
10472
+ secondary_text: _optionalChain([suggestion, 'access', _293 => _293.placePrediction, 'optionalAccess', _294 => _294.structuredFormat, 'optionalAccess', _295 => _295.secondaryText, 'optionalAccess', _296 => _296.text]) || ""
10458
10473
  }
10459
10474
  }));
10460
10475
  setSuggestions(formattedSuggestions);
@@ -10601,8 +10616,8 @@ function FormPlaceAutocomplete({
10601
10616
  className: "hover:bg-muted cursor-pointer px-3 py-2 text-sm",
10602
10617
  onClick: () => handleSuggestionSelect(suggestion),
10603
10618
  children: [
10604
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _293 => _293.structured_formatting, 'optionalAccess', _294 => _294.main_text]) }),
10605
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access', _295 => _295.structured_formatting, 'optionalAccess', _296 => _296.secondary_text]) })
10619
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _297 => _297.structured_formatting, 'optionalAccess', _298 => _298.main_text]) }),
10620
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access', _299 => _299.structured_formatting, 'optionalAccess', _300 => _300.secondary_text]) })
10606
10621
  ]
10607
10622
  },
10608
10623
  suggestion.place_id || index
@@ -10650,7 +10665,7 @@ function FormSelect({
10650
10665
  disabled,
10651
10666
  "data-testid": testId,
10652
10667
  children: [
10653
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: field.value ? _optionalChain([values, 'access', _297 => _297.find, 'call', _298 => _298((v) => v.id === field.value), 'optionalAccess', _299 => _299.text]) : _nullishCoalesce(placeholder, () => ( "")) }) }),
10668
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: field.value ? _optionalChain([values, 'access', _301 => _301.find, 'call', _302 => _302((v) => v.id === field.value), 'optionalAccess', _303 => _303.text]) : _nullishCoalesce(placeholder, () => ( "")) }) }),
10654
10669
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SelectContent, { children: [
10655
10670
  allowEmpty && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: EMPTY_VALUE, className: "text-muted-foreground", children: _nullishCoalesce(placeholder, () => ( "")) }),
10656
10671
  values.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: type.id, children: type.text }, type.id))
@@ -10837,7 +10852,7 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
10837
10852
  }, "getInitials");
10838
10853
  const getAvatar = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
10839
10854
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Avatar, { className: `h-6 w-6 ${className}`, children: [
10840
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _300 => _300.avatar]) }),
10855
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _304 => _304.avatar]) }),
10841
10856
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: getInitials3(user.name) })
10842
10857
  ] }) });
10843
10858
  }, "getAvatar");
@@ -11028,7 +11043,7 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
11028
11043
  })
11029
11044
  };
11030
11045
  const columns = _react.useMemo.call(void 0, () => {
11031
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _301 => _301[field], 'optionalCall', _302 => _302()])).filter((col) => col !== void 0);
11046
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _305 => _305[field], 'optionalCall', _306 => _306()])).filter((col) => col !== void 0);
11032
11047
  }, [params.fields, fieldColumnMap, t, generateUrl]);
11033
11048
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
11034
11049
  }, "useUserTableStructure");
@@ -11142,10 +11157,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
11142
11157
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
11143
11158
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start rounded-md", children: field.value ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: [
11144
11159
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Avatar, { className: `mr-2 h-4 w-4`, children: [
11145
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _303 => _303.value, 'optionalAccess', _304 => _304.avatar]) }),
11146
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access', _305 => _305.value, 'optionalAccess', _306 => _306.name]) ? _optionalChain([field, 'access', _307 => _307.value, 'optionalAccess', _308 => _308.name, 'access', _309 => _309.split, 'call', _310 => _310(" "), 'access', _311 => _311.map, 'call', _312 => _312((name) => name.charAt(0).toUpperCase())]) : "X" })
11160
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _307 => _307.value, 'optionalAccess', _308 => _308.avatar]) }),
11161
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access', _309 => _309.value, 'optionalAccess', _310 => _310.name]) ? _optionalChain([field, 'access', _311 => _311.value, 'optionalAccess', _312 => _312.name, 'access', _313 => _313.split, 'call', _314 => _314(" "), 'access', _315 => _315.map, 'call', _316 => _316((name) => name.charAt(0).toUpperCase())]) : "X" })
11147
11162
  ] }) }),
11148
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _313 => _313.value, 'optionalAccess', _314 => _314.name]), () => ( "")) })
11163
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _317 => _317.value, 'optionalAccess', _318 => _318.name]), () => ( "")) })
11149
11164
  ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input text-muted-foreground flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: _nullishCoalesce(placeholder, () => ( t(`ui.search.placeholder`, { type: t(`entities.users`, { count: 1 }) }))) }) }) }),
11150
11165
  field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11151
11166
  _lucidereact.CircleX,
@@ -11476,7 +11491,7 @@ function CompanyUsersList({ isDeleted, fullWidth }) {
11476
11491
  const data = useDataListRetriever({
11477
11492
  ready: !!company,
11478
11493
  retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkS2PTWBN6js.UserService.findAllUsers(params), "retriever"),
11479
- retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _315 => _315.id]), isDeleted },
11494
+ retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _319 => _319.id]), isDeleted },
11480
11495
  module: _chunkS2PTWBN6js.Modules.User
11481
11496
  });
11482
11497
  _react.useEffect.call(void 0, () => {
@@ -11583,11 +11598,11 @@ function UserListInAdd({ data, existingUsers, setSelectedUser, setLevelOpen }) {
11583
11598
  className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
11584
11599
  onClick: (_e) => {
11585
11600
  setSelectedUser(user);
11586
- _optionalChain([setLevelOpen, 'optionalCall', _316 => _316(true)]);
11601
+ _optionalChain([setLevelOpen, 'optionalCall', _320 => _320(true)]);
11587
11602
  },
11588
11603
  onSelect: (_e) => {
11589
11604
  setSelectedUser(user);
11590
- _optionalChain([setLevelOpen, 'optionalCall', _317 => _317(true)]);
11605
+ _optionalChain([setLevelOpen, 'optionalCall', _321 => _321(true)]);
11591
11606
  },
11592
11607
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between px-4 py-1", children: [
11593
11608
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user }),
@@ -11718,7 +11733,7 @@ function CompanyContent({ company, actions }) {
11718
11733
  company.legal_address
11719
11734
  ] }),
11720
11735
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-y-1", children: [
11721
- _optionalChain([company, 'access', _318 => _318.configurations, 'optionalAccess', _319 => _319.country]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
11736
+ _optionalChain([company, 'access', _322 => _322.configurations, 'optionalAccess', _323 => _323.country]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
11722
11737
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
11723
11738
  t("features.configuration.country"),
11724
11739
  ":"
@@ -11726,7 +11741,7 @@ function CompanyContent({ company, actions }) {
11726
11741
  " ",
11727
11742
  company.configurations.country
11728
11743
  ] }),
11729
- _optionalChain([company, 'access', _320 => _320.configurations, 'optionalAccess', _321 => _321.currency]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
11744
+ _optionalChain([company, 'access', _324 => _324.configurations, 'optionalAccess', _325 => _325.currency]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
11730
11745
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
11731
11746
  t("features.configuration.currency"),
11732
11747
  ":"
@@ -12136,7 +12151,7 @@ function CompanyEditorInternal({
12136
12151
  const t = _nextintl.useTranslations.call(void 0, );
12137
12152
  const fiscalRef = _react.useRef.call(void 0, null);
12138
12153
  const addressComponentsRef = _react.useRef.call(void 0, {});
12139
- const canAccessFeatures = hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _322 => _322.env, 'access', _323 => _323.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _324 => _324.toLowerCase, 'call', _325 => _325()]) === "true";
12154
+ const canAccessFeatures = hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _326 => _326.env, 'access', _327 => _327.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _328 => _328.toLowerCase, 'call', _329 => _329()]) === "true";
12140
12155
  const handleDialogOpenChange = _react.useCallback.call(void 0,
12141
12156
  (open) => {
12142
12157
  if (open && features.length === 0 && canAccessFeatures) {
@@ -12151,7 +12166,7 @@ function CompanyEditorInternal({
12151
12166
  _chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
12152
12167
  fetchFeatures();
12153
12168
  }
12154
- _optionalChain([onDialogOpenChange, 'optionalCall', _326 => _326(open)]);
12169
+ _optionalChain([onDialogOpenChange, 'optionalCall', _330 => _330(open)]);
12155
12170
  },
12156
12171
  [features.length, canAccessFeatures, hasRole, onDialogOpenChange]
12157
12172
  );
@@ -12196,12 +12211,12 @@ function CompanyEditorInternal({
12196
12211
  );
12197
12212
  const getDefaultValues = _react.useCallback.call(void 0, () => {
12198
12213
  return {
12199
- id: _optionalChain([company, 'optionalAccess', _327 => _327.id]) || _uuid.v4.call(void 0, ),
12200
- name: _optionalChain([company, 'optionalAccess', _328 => _328.name]) || "",
12201
- featureIds: _optionalChain([company, 'optionalAccess', _329 => _329.features, 'access', _330 => _330.map, 'call', _331 => _331((feature) => feature.id)]) || [],
12202
- moduleIds: _optionalChain([company, 'optionalAccess', _332 => _332.modules, 'access', _333 => _333.map, 'call', _334 => _334((module) => module.id)]) || [],
12203
- logo: _optionalChain([company, 'optionalAccess', _335 => _335.logo]) || "",
12204
- legal_address: _optionalChain([company, 'optionalAccess', _336 => _336.legal_address]) || ""
12214
+ id: _optionalChain([company, 'optionalAccess', _331 => _331.id]) || _uuid.v4.call(void 0, ),
12215
+ name: _optionalChain([company, 'optionalAccess', _332 => _332.name]) || "",
12216
+ featureIds: _optionalChain([company, 'optionalAccess', _333 => _333.features, 'access', _334 => _334.map, 'call', _335 => _335((feature) => feature.id)]) || [],
12217
+ moduleIds: _optionalChain([company, 'optionalAccess', _336 => _336.modules, 'access', _337 => _337.map, 'call', _338 => _338((module) => module.id)]) || [],
12218
+ logo: _optionalChain([company, 'optionalAccess', _339 => _339.logo]) || "",
12219
+ legal_address: _optionalChain([company, 'optionalAccess', _340 => _340.legal_address]) || ""
12205
12220
  };
12206
12221
  }, [company]);
12207
12222
  const form = _reacthookform.useForm.call(void 0, {
@@ -12213,7 +12228,7 @@ function CompanyEditorInternal({
12213
12228
  {
12214
12229
  form,
12215
12230
  entityType: t(`entities.companies`, { count: 1 }),
12216
- entityName: _optionalChain([company, 'optionalAccess', _337 => _337.name]),
12231
+ entityName: _optionalChain([company, 'optionalAccess', _341 => _341.name]),
12217
12232
  isEdit: !!company,
12218
12233
  module: _chunkS2PTWBN6js.Modules.Company,
12219
12234
  propagateChanges,
@@ -12238,7 +12253,7 @@ function CompanyEditorInternal({
12238
12253
  throw new Error("Fiscal data validation failed");
12239
12254
  }
12240
12255
  const payload = {
12241
- id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _338 => _338.id]), () => ( _uuid.v4.call(void 0, ))),
12256
+ id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _342 => _342.id]), () => ( _uuid.v4.call(void 0, ))),
12242
12257
  name: values.name,
12243
12258
  logo: files && contentType ? values.logo : void 0,
12244
12259
  featureIds: values.featureIds,
@@ -12269,10 +12284,10 @@ function CompanyEditorInternal({
12269
12284
  dialogOpen,
12270
12285
  onDialogOpenChange: handleDialogOpenChange,
12271
12286
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start justify-between gap-x-4", children: [
12272
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-96 flex-col justify-start gap-y-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileUploader, { value: files, onValueChange: setFiles, dropzoneOptions: dropzone2, className: "w-full p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "text-neutral-300 outline-dashed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: file || _optionalChain([company, 'optionalAccess', _339 => _339.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12287
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-96 flex-col justify-start gap-y-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileUploader, { value: files, onValueChange: setFiles, dropzoneOptions: dropzone2, className: "w-full p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "text-neutral-300 outline-dashed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: file || _optionalChain([company, 'optionalAccess', _343 => _343.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12273
12288
  _image2.default,
12274
12289
  {
12275
- src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _340 => _340.logo]) || "",
12290
+ src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _344 => _344.logo]) || "",
12276
12291
  alt: "Company Logo",
12277
12292
  width: 200,
12278
12293
  height: 200
@@ -12306,7 +12321,7 @@ function CompanyEditorInternal({
12306
12321
  }
12307
12322
  ),
12308
12323
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "mt-2 text-sm font-semibold", children: t(`company.sections.fiscal_data`) }),
12309
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItalianFiscalData_default, { ref: fiscalRef, initialData: parseFiscalData(_optionalChain([company, 'optionalAccess', _341 => _341.fiscal_data])) })
12324
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItalianFiscalData_default, { ref: fiscalRef, initialData: parseFiscalData(_optionalChain([company, 'optionalAccess', _345 => _345.fiscal_data])) })
12310
12325
  ] }),
12311
12326
  canAccessFeatures && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-96 flex-col justify-start gap-y-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScrollArea, { className: "h-max", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormFeatures, { form, name: t(`company.features_and_modules`), features }) }) })
12312
12327
  ] })
@@ -12423,7 +12438,7 @@ function NotificationToast(notification, t, generateUrl, reouter) {
12423
12438
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
12424
12439
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
12425
12440
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
12426
- actor: _nullishCoalesce(_optionalChain([data, 'access', _342 => _342.actor, 'optionalAccess', _343 => _343.name]), () => ( "")),
12441
+ actor: _nullishCoalesce(_optionalChain([data, 'access', _346 => _346.actor, 'optionalAccess', _347 => _347.name]), () => ( "")),
12427
12442
  title: data.title,
12428
12443
  message: _nullishCoalesce(notification.message, () => ( ""))
12429
12444
  }) }),
@@ -12452,7 +12467,7 @@ function NotificationMenuItem({ notification, closePopover }) {
12452
12467
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
12453
12468
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
12454
12469
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
12455
- actor: _nullishCoalesce(_optionalChain([data, 'access', _344 => _344.actor, 'optionalAccess', _345 => _345.name]), () => ( "")),
12470
+ actor: _nullishCoalesce(_optionalChain([data, 'access', _348 => _348.actor, 'optionalAccess', _349 => _349.name]), () => ( "")),
12456
12471
  title: data.title,
12457
12472
  message: _nullishCoalesce(notification.message, () => ( ""))
12458
12473
  }) }),
@@ -12516,7 +12531,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
12516
12531
  _react.useEffect.call(void 0, () => {
12517
12532
  if (hasInitiallyLoaded || !currentUser) return;
12518
12533
  if (_chunk6KLR3WJQjs.isRolesConfigured.call(void 0, )) {
12519
- const isAdmin = _optionalChain([currentUser, 'access', _346 => _346.roles, 'optionalAccess', _347 => _347.some, 'call', _348 => _348((role) => role.id === _chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator)]);
12534
+ const isAdmin = _optionalChain([currentUser, 'access', _350 => _350.roles, 'optionalAccess', _351 => _351.some, 'call', _352 => _352((role) => role.id === _chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator)]);
12520
12535
  if (isAdmin) {
12521
12536
  setHasInitiallyLoaded(true);
12522
12537
  return;
@@ -12718,7 +12733,7 @@ function OnboardingProvider({
12718
12733
  let tourSteps = steps;
12719
12734
  if (!tourSteps) {
12720
12735
  const tour2 = tours.find((t) => t.id === tourId);
12721
- tourSteps = _optionalChain([tour2, 'optionalAccess', _349 => _349.steps]);
12736
+ tourSteps = _optionalChain([tour2, 'optionalAccess', _353 => _353.steps]);
12722
12737
  }
12723
12738
  if (!tourSteps || tourSteps.length === 0) {
12724
12739
  console.warn(`No steps found for tour: ${tourId}`);
@@ -12786,10 +12801,10 @@ function OnboardingProvider({
12786
12801
  when: {
12787
12802
  show: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
12788
12803
  setCurrentStepIndex(index);
12789
- _optionalChain([stepConfig, 'access', _350 => _350.onShow, 'optionalCall', _351 => _351()]);
12804
+ _optionalChain([stepConfig, 'access', _354 => _354.onShow, 'optionalCall', _355 => _355()]);
12790
12805
  }, "show"),
12791
12806
  hide: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
12792
- _optionalChain([stepConfig, 'access', _352 => _352.onHide, 'optionalCall', _353 => _353()]);
12807
+ _optionalChain([stepConfig, 'access', _356 => _356.onHide, 'optionalCall', _357 => _357()]);
12793
12808
  }, "hide")
12794
12809
  }
12795
12810
  });
@@ -12955,7 +12970,7 @@ function HowToMultiSelector({
12955
12970
  retriever: (params) => _chunkS2PTWBN6js.HowToService.findMany(params),
12956
12971
  module: _chunkS2PTWBN6js.Modules.HowTo,
12957
12972
  getLabel: (howTo) => howTo.name,
12958
- excludeId: _optionalChain([currentHowTo, 'optionalAccess', _354 => _354.id]),
12973
+ excludeId: _optionalChain([currentHowTo, 'optionalAccess', _358 => _358.id]),
12959
12974
  onChange
12960
12975
  }
12961
12976
  );
@@ -13063,17 +13078,17 @@ function HowToEditorInternal({
13063
13078
  );
13064
13079
  const getDefaultValues = _react.useCallback.call(void 0,
13065
13080
  () => ({
13066
- id: _optionalChain([howTo, 'optionalAccess', _355 => _355.id]) || _uuid.v4.call(void 0, ),
13067
- name: _optionalChain([howTo, 'optionalAccess', _356 => _356.name]) || "",
13068
- description: _optionalChain([howTo, 'optionalAccess', _357 => _357.description]) || [],
13069
- pages: _chunkS2PTWBN6js.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess', _358 => _358.pages])),
13070
- howToType: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _359 => _359.howToType]), () => ( "how-to")),
13071
- slug: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _360 => _360.slug]), () => ( "")),
13072
- order: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _361 => _361.order]), () => ( 0)),
13073
- summary: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _362 => _362.summary]), () => ( "")),
13074
- tags: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _363 => _363.tags]), () => ( []))).join(", "),
13075
- contextualKeys: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _364 => _364.contextualKeys]), () => ( []))).join(", "),
13076
- draft: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _365 => _365.draft]), () => ( false)),
13081
+ id: _optionalChain([howTo, 'optionalAccess', _359 => _359.id]) || _uuid.v4.call(void 0, ),
13082
+ name: _optionalChain([howTo, 'optionalAccess', _360 => _360.name]) || "",
13083
+ description: _optionalChain([howTo, 'optionalAccess', _361 => _361.description]) || [],
13084
+ pages: _chunkS2PTWBN6js.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess', _362 => _362.pages])),
13085
+ howToType: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _363 => _363.howToType]), () => ( "how-to")),
13086
+ slug: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _364 => _364.slug]), () => ( "")),
13087
+ order: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _365 => _365.order]), () => ( 0)),
13088
+ summary: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _366 => _366.summary]), () => ( "")),
13089
+ tags: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _367 => _367.tags]), () => ( []))).join(", "),
13090
+ contextualKeys: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _368 => _368.contextualKeys]), () => ( []))).join(", "),
13091
+ draft: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _369 => _369.draft]), () => ( false)),
13077
13092
  relatedArticles: []
13078
13093
  }),
13079
13094
  [howTo]
@@ -13084,7 +13099,7 @@ function HowToEditorInternal({
13084
13099
  });
13085
13100
  const initialRelatedIds = _react.useRef.call(void 0, []);
13086
13101
  _react.useEffect.call(void 0, () => {
13087
- if (!_optionalChain([howTo, 'optionalAccess', _366 => _366.howToType]) || !_optionalChain([howTo, 'optionalAccess', _367 => _367.slug])) return;
13102
+ if (!_optionalChain([howTo, 'optionalAccess', _370 => _370.howToType]) || !_optionalChain([howTo, 'optionalAccess', _371 => _371.slug])) return;
13088
13103
  let active = true;
13089
13104
  _chunkS2PTWBN6js.HowToService.findRelated({ howToType: howTo.howToType, slug: howTo.slug }).then((list) => {
13090
13105
  if (!active) return;
@@ -13123,7 +13138,7 @@ function HowToEditorInternal({
13123
13138
  {
13124
13139
  form,
13125
13140
  entityType: t(`entities.howtos`, { count: 1 }),
13126
- entityName: _optionalChain([howTo, 'optionalAccess', _368 => _368.name]),
13141
+ entityName: _optionalChain([howTo, 'optionalAccess', _372 => _372.name]),
13127
13142
  isEdit: !!howTo,
13128
13143
  module: _chunkS2PTWBN6js.Modules.HowTo,
13129
13144
  propagateChanges,
@@ -13504,7 +13519,7 @@ function withPatchedTitle(source, title) {
13504
13519
  return _chunkS2PTWBN6js.rehydrate.call(void 0, _chunkS2PTWBN6js.Modules.Assistant, {
13505
13520
  jsonApi: {
13506
13521
  ...dehydrated.jsonApi,
13507
- attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _369 => _369.jsonApi, 'optionalAccess', _370 => _370.attributes]), () => ( {})), title }
13522
+ attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _373 => _373.jsonApi, 'optionalAccess', _374 => _374.attributes]), () => ( {})), title }
13508
13523
  },
13509
13524
  included: dehydrated.included
13510
13525
  });
@@ -13525,7 +13540,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
13525
13540
  const [status, setStatus] = _react.useState.call(void 0, void 0);
13526
13541
  const [failedMessageIds, setFailedMessageIds] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
13527
13542
  const [operatorMode, setOperatorMode] = _react.useState.call(void 0,
13528
- () => _optionalChain([dehydratedAssistant, 'optionalAccess', _371 => _371.jsonApi, 'optionalAccess', _372 => _372.attributes, 'optionalAccess', _373 => _373.engine]) === "operator"
13543
+ () => _optionalChain([dehydratedAssistant, 'optionalAccess', _375 => _375.jsonApi, 'optionalAccess', _376 => _376.attributes, 'optionalAccess', _377 => _377.engine]) === "operator"
13529
13544
  );
13530
13545
  const { socket } = useSocketContext();
13531
13546
  const sendMessage = _react.useCallback.call(void 0,
@@ -13534,7 +13549,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
13534
13549
  if (!trimmed) return;
13535
13550
  const optimistic = _chunkS2PTWBN6js.AssistantMessage.buildOptimistic({
13536
13551
  content: trimmed,
13537
- assistantId: _optionalChain([assistant, 'optionalAccess', _374 => _374.id]),
13552
+ assistantId: _optionalChain([assistant, 'optionalAccess', _378 => _378.id]),
13538
13553
  position: nextPosition(messages)
13539
13554
  });
13540
13555
  setMessages((prev) => [...prev, optimistic]);
@@ -13544,13 +13559,13 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
13544
13559
  if (assistant && payload.assistantId && payload.assistantId !== assistant.id) return;
13545
13560
  if (typeof payload.status === "string") setStatus(payload.status);
13546
13561
  }, "handler");
13547
- _optionalChain([socket, 'optionalAccess', _375 => _375.on, 'call', _376 => _376("assistant:status", handler)]);
13562
+ _optionalChain([socket, 'optionalAccess', _379 => _379.on, 'call', _380 => _380("assistant:status", handler)]);
13548
13563
  try {
13549
13564
  if (!assistant) {
13550
13565
  const input = {
13551
13566
  firstMessage: trimmed,
13552
- howToMode: _optionalChain([opts, 'optionalAccess', _377 => _377.howToMode]),
13553
- limitToHowToId: _optionalChain([opts, 'optionalAccess', _378 => _378.limitToHowToId])
13567
+ howToMode: _optionalChain([opts, 'optionalAccess', _381 => _381.howToMode]),
13568
+ limitToHowToId: _optionalChain([opts, 'optionalAccess', _382 => _382.limitToHowToId])
13554
13569
  };
13555
13570
  const created = operatorMode ? await _chunkS2PTWBN6js.AssistantService.createOperator(input) : await _chunkS2PTWBN6js.AssistantService.create(input);
13556
13571
  const msgs = await _chunkS2PTWBN6js.AssistantMessageService.findByAssistant({ assistantId: created.id });
@@ -13567,8 +13582,8 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
13567
13582
  }) : await _chunkS2PTWBN6js.AssistantService.appendMessage({
13568
13583
  assistantId: assistant.id,
13569
13584
  content: trimmed,
13570
- howToMode: _optionalChain([opts, 'optionalAccess', _379 => _379.howToMode]),
13571
- limitToHowToId: _optionalChain([opts, 'optionalAccess', _380 => _380.limitToHowToId])
13585
+ howToMode: _optionalChain([opts, 'optionalAccess', _383 => _383.howToMode]),
13586
+ limitToHowToId: _optionalChain([opts, 'optionalAccess', _384 => _384.limitToHowToId])
13572
13587
  });
13573
13588
  setMessages((prev) => [...stripOptimistic(prev), ...result]);
13574
13589
  }
@@ -13579,7 +13594,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
13579
13594
  return next;
13580
13595
  });
13581
13596
  } finally {
13582
- _optionalChain([socket, 'optionalAccess', _381 => _381.off, 'call', _382 => _382("assistant:status", handler)]);
13597
+ _optionalChain([socket, 'optionalAccess', _385 => _385.off, 'call', _386 => _386("assistant:status", handler)]);
13583
13598
  setSending(false);
13584
13599
  setStatus(void 0);
13585
13600
  }
@@ -13637,7 +13652,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
13637
13652
  await _chunkS2PTWBN6js.AssistantService.delete({ id });
13638
13653
  setThreads((prev) => prev.filter((t2) => t2.id !== id));
13639
13654
  setAssistant((prev) => {
13640
- if (_optionalChain([prev, 'optionalAccess', _383 => _383.id]) === id) {
13655
+ if (_optionalChain([prev, 'optionalAccess', _387 => _387.id]) === id) {
13641
13656
  setMessages([]);
13642
13657
  return void 0;
13643
13658
  }
@@ -13857,7 +13872,7 @@ function EditableAvatar({
13857
13872
  }, [image, isUploading, patchImage, t]);
13858
13873
  const handleFileInputChange = _react.useCallback.call(void 0,
13859
13874
  (e) => {
13860
- const file = _optionalChain([e, 'access', _384 => _384.target, 'access', _385 => _385.files, 'optionalAccess', _386 => _386[0]]);
13875
+ const file = _optionalChain([e, 'access', _388 => _388.target, 'access', _389 => _389.files, 'optionalAccess', _390 => _390[0]]);
13861
13876
  if (file) handleFile(file);
13862
13877
  e.target.value = "";
13863
13878
  },
@@ -13866,7 +13881,7 @@ function EditableAvatar({
13866
13881
  const handleDrop = _react.useCallback.call(void 0,
13867
13882
  (e) => {
13868
13883
  e.preventDefault();
13869
- const file = _optionalChain([e, 'access', _387 => _387.dataTransfer, 'access', _388 => _388.files, 'optionalAccess', _389 => _389[0]]);
13884
+ const file = _optionalChain([e, 'access', _391 => _391.dataTransfer, 'access', _392 => _392.files, 'optionalAccess', _393 => _393[0]]);
13870
13885
  if (file && file.type.startsWith("image/")) {
13871
13886
  handleFile(file);
13872
13887
  }
@@ -13893,7 +13908,7 @@ function EditableAvatar({
13893
13908
  "button",
13894
13909
  {
13895
13910
  type: "button",
13896
- onClick: () => _optionalChain([fileInputRef, 'access', _390 => _390.current, 'optionalAccess', _391 => _391.click, 'call', _392 => _392()]),
13911
+ onClick: () => _optionalChain([fileInputRef, 'access', _394 => _394.current, 'optionalAccess', _395 => _395.click, 'call', _396 => _396()]),
13897
13912
  disabled: isUploading,
13898
13913
  className: "rounded-full p-2 text-white hover:bg-white/20 disabled:opacity-50",
13899
13914
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PencilIcon, { className: "h-4 w-4" })
@@ -13943,19 +13958,19 @@ function BreadcrumbDesktop({
13943
13958
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: `/` }), children: t(`common.home`) }) }),
13944
13959
  items.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbSeparator, {}),
13945
13960
  items.length > ITEMS_TO_DISPLAY ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
13946
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: items[0].href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: items[0].href, children: items[0].name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: items[0].name }) }),
13961
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: items[0].href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: items[0].href, onClick: items[0].onClick, children: items[0].name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: items[0].name }) }),
13947
13962
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbSeparator, {}),
13948
13963
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenu, { open, onOpenChange: setOpen, children: [
13949
13964
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuTrigger, { className: "flex items-center gap-1", "aria-label": "Toggle menu", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbEllipsis, { className: "h-4 w-4" }) }),
13950
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuContent, { align: "start", children: items.slice(1, -ITEMS_TO_DISPLAY + 2).map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuItem, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: item.href ? item.href : "#", children: item.name }) }, index)) })
13965
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuContent, { align: "start", children: items.slice(1, -ITEMS_TO_DISPLAY + 2).map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuItem, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: item.href ? item.href : "#", onClick: item.onClick, children: item.name }) }, index)) })
13951
13966
  ] }) }),
13952
13967
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbSeparator, {}),
13953
13968
  items.slice(-ITEMS_TO_DISPLAY + 2).map((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
13954
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: item.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: item.href, children: item.name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: item.name }) }),
13969
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: item.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: item.href, onClick: item.onClick, children: item.name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: item.name }) }),
13955
13970
  index < items.slice(-ITEMS_TO_DISPLAY + 2).length - 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbSeparator, {})
13956
13971
  ] }, index))
13957
13972
  ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: items.map((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
13958
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: item.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: item.href, children: item.name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: item.name }) }),
13973
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: item.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: item.href, onClick: item.onClick, children: item.name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: item.name }) }),
13959
13974
  index < items.length - 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbSeparator, {})
13960
13975
  ] }, index)) })
13961
13976
  ] }) });
@@ -13974,10 +13989,10 @@ function BreadcrumbMobile({
13974
13989
  }
13975
13990
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenu, { open, onOpenChange: setOpen, children: [
13976
13991
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenuTrigger, { className: "text-foreground text-xs/relaxed font-normal hover:bg-accent flex items-center gap-1 rounded-md px-1.5 py-0.5 transition-colors outline-none", children: [
13977
- _optionalChain([lastItem, 'optionalAccess', _393 => _393.name]),
13992
+ _optionalChain([lastItem, 'optionalAccess', _397 => _397.name]),
13978
13993
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: "text-muted-foreground size-3.5" })
13979
13994
  ] }),
13980
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuContent, { align: "start", children: allItems.map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuItem, { children: item.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: item.href, children: item.name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: item.name }) }, index)) })
13995
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuContent, { align: "start", children: allItems.map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuItem, { children: item.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: item.href, onClick: item.onClick, children: item.name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: item.name }) }, index)) })
13981
13996
  ] });
13982
13997
  }
13983
13998
  _chunk7QVYU63Ejs.__name.call(void 0, BreadcrumbMobile, "BreadcrumbMobile");
@@ -14138,6 +14153,32 @@ function PageContainer({ children, testId, className }) {
14138
14153
  }
14139
14154
  _chunk7QVYU63Ejs.__name.call(void 0, PageContainer, "PageContainer");
14140
14155
 
14156
+ // src/components/containers/partitionTabs.ts
14157
+ function partitionTabs(tabs) {
14158
+ const ungrouped = [];
14159
+ const groupMap = /* @__PURE__ */ new Map();
14160
+ const groupOrder = [];
14161
+ for (const tab of tabs) {
14162
+ if (!tab.group) {
14163
+ ungrouped.push(tab);
14164
+ continue;
14165
+ }
14166
+ if (!groupMap.has(tab.group)) {
14167
+ groupMap.set(tab.group, []);
14168
+ groupOrder.push(tab.group);
14169
+ }
14170
+ groupMap.get(tab.group).push(tab);
14171
+ }
14172
+ return {
14173
+ ungrouped,
14174
+ groups: groupOrder.map((label) => ({
14175
+ label,
14176
+ items: groupMap.get(label)
14177
+ }))
14178
+ };
14179
+ }
14180
+ _chunk7QVYU63Ejs.__name.call(void 0, partitionTabs, "partitionTabs");
14181
+
14141
14182
  // src/components/containers/ReactMarkdownContainer.tsx
14142
14183
 
14143
14184
 
@@ -14262,6 +14303,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, RoundPageContainerTitle, "RoundPageContaine
14262
14303
 
14263
14304
  var DETAILS_COOKIE_NAME = "round_page_details_state";
14264
14305
  var DETAILS_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
14306
+ var railTriggerClass = _chunkS2PTWBN6js.cn.call(void 0,
14307
+ "flex w-full items-center justify-start rounded-md px-3 py-1.5 text-left text-sm leading-tight whitespace-normal",
14308
+ "text-muted-foreground",
14309
+ "hover:bg-muted hover:text-foreground",
14310
+ "data-[state=active]:bg-foreground data-[state=active]:text-background",
14311
+ "data-[state=active]:font-semibold data-[state=active]:shadow-none"
14312
+ );
14313
+ var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access', _398 => _398.key, 'optionalAccess', _399 => _399.name]))), () => ( tab.label)), "tabValue");
14265
14314
  function RoundPageContainer({
14266
14315
  module,
14267
14316
  id,
@@ -14270,7 +14319,8 @@ function RoundPageContainer({
14270
14319
  children,
14271
14320
  fullWidth,
14272
14321
  forceHeader,
14273
- header
14322
+ header,
14323
+ layout: layout2 = "tabs"
14274
14324
  }) {
14275
14325
  const headerChildren = useHeaderChildren();
14276
14326
  const headerLeftContent = useHeaderLeftContent();
@@ -14279,7 +14329,7 @@ function RoundPageContainer({
14279
14329
  const [mounted, setMounted] = _react.useState.call(void 0, false);
14280
14330
  _react.useEffect.call(void 0, () => {
14281
14331
  const match = document.cookie.split("; ").find((row) => row.startsWith(`${DETAILS_COOKIE_NAME}=`));
14282
- if (_optionalChain([match, 'optionalAccess', _394 => _394.split, 'call', _395 => _395("="), 'access', _396 => _396[1]]) === "true") setShowDetailsState(true);
14332
+ if (_optionalChain([match, 'optionalAccess', _400 => _400.split, 'call', _401 => _401("="), 'access', _402 => _402[1]]) === "true") setShowDetailsState(true);
14283
14333
  }, []);
14284
14334
  _react.useEffect.call(void 0, () => {
14285
14335
  setMounted(true);
@@ -14291,11 +14341,11 @@ function RoundPageContainer({
14291
14341
  const searchParams = _navigation.useSearchParams.call(void 0, );
14292
14342
  const section = searchParams.get("section");
14293
14343
  const rewriteUrl = useUrlRewriter();
14294
- const initialValue = tabs ? (section && tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access', _397 => _397.key, 'optionalAccess', _398 => _398.name]), () => ( i.label))) === section) ? section : null) || (_nullishCoalesce(_optionalChain([tabs, 'access', _399 => _399[0], 'access', _400 => _400.key, 'optionalAccess', _401 => _401.name]), () => ( tabs[0].label))) : void 0;
14344
+ const initialValue = tabs ? (section && tabs.find((i) => tabValue(i) === section) ? section : null) || tabValue(tabs[0]) : void 0;
14295
14345
  const [activeTab, setActiveTab] = _react.useState.call(void 0, initialValue);
14296
14346
  _react.useEffect.call(void 0, () => {
14297
14347
  if (tabs && section) {
14298
- const tab = tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access', _402 => _402.key, 'optionalAccess', _403 => _403.name]), () => ( i.label))) === section);
14348
+ const tab = tabs.find((i) => tabValue(i) === section);
14299
14349
  if (tab) {
14300
14350
  setActiveTab(section);
14301
14351
  }
@@ -14308,7 +14358,8 @@ function RoundPageContainer({
14308
14358
  },
14309
14359
  [module, id, rewriteUrl]
14310
14360
  );
14311
- const activeFillHeight = _optionalChain([tabs, 'optionalAccess', _404 => _404.find, 'call', _405 => _405((t) => (_nullishCoalesce(_optionalChain([t, 'access', _406 => _406.key, 'optionalAccess', _407 => _407.name]), () => ( t.label))) === activeTab), 'optionalAccess', _408 => _408.fillHeight]) === true;
14361
+ const activeFillHeight = _optionalChain([tabs, 'optionalAccess', _403 => _403.find, 'call', _404 => _404((t) => tabValue(t) === activeTab), 'optionalAccess', _405 => _405.fillHeight]) === true;
14362
+ const { ungrouped, groups } = _react.useMemo.call(void 0, () => partitionTabs(_nullishCoalesce(tabs, () => ( []))), [tabs]);
14312
14363
  const isReady = mounted && isMobile !== void 0;
14313
14364
  if (!isReady) {
14314
14365
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
@@ -14330,7 +14381,86 @@ function RoundPageContainer({
14330
14381
  }
14331
14382
  ),
14332
14383
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full w-full overflow-hidden", children: [
14333
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14384
+ layout2 === "rail" && tabs ? (
14385
+ // Rail layout: the vertical-tab navigation is a flush-left
14386
+ // sidebar of the card and the content fills the full remaining
14387
+ // width (like `fullWidth`) — NOT the centred max-w-6xl column.
14388
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
14389
+ Tabs,
14390
+ {
14391
+ value: activeTab,
14392
+ onValueChange: handleTabChange,
14393
+ orientation: "vertical",
14394
+ className: "flex h-full min-w-0 grow overflow-hidden",
14395
+ children: [
14396
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14397
+ "aside",
14398
+ {
14399
+ "data-testid": "round-page-rail",
14400
+ className: "hidden shrink-0 border-r p-4 md:flex md:w-56 md:flex-col md:overflow-y-auto",
14401
+ children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TabsList, { className: "flex h-auto flex-col items-stretch gap-0.5 bg-transparent p-0", children: [
14402
+ ungrouped.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: tabValue(tab), className: railTriggerClass, children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)),
14403
+ groups.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
14404
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14405
+ "div",
14406
+ {
14407
+ role: "presentation",
14408
+ className: "text-muted-foreground px-3 pt-3 pb-1 text-[10px] font-bold tracking-wider uppercase",
14409
+ children: group.label
14410
+ }
14411
+ ),
14412
+ group.items.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: tabValue(tab), className: railTriggerClass, children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label))
14413
+ ] }, group.label))
14414
+ ] })
14415
+ }
14416
+ ),
14417
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 grow flex-col overflow-hidden", children: [
14418
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-testid": "round-page-rail-select", className: "p-2 md:hidden", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
14419
+ Select,
14420
+ {
14421
+ value: activeTab,
14422
+ onValueChange: (value) => {
14423
+ if (value) handleTabChange(value);
14424
+ },
14425
+ children: [
14426
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, {}) }),
14427
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SelectContent, { children: [
14428
+ ungrouped.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: tabValue(tab), children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)),
14429
+ groups.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SelectGroup, { children: [
14430
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectLabel, { children: group.label }),
14431
+ group.items.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: tabValue(tab), children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label))
14432
+ ] }, group.label))
14433
+ ] })
14434
+ ]
14435
+ }
14436
+ ) }),
14437
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
14438
+ "div",
14439
+ {
14440
+ className: _chunkS2PTWBN6js.cn.call(void 0,
14441
+ `min-w-0 grow`,
14442
+ activeFillHeight ? `flex flex-col overflow-hidden` : `overflow-y-auto`
14443
+ ),
14444
+ children: [
14445
+ header,
14446
+ tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14447
+ TabsContent,
14448
+ {
14449
+ value: tabValue(tab),
14450
+ className: tab.fillHeight ? `flex min-h-0 w-full flex-1 flex-col` : ``,
14451
+ children: tab.content
14452
+ },
14453
+ tab.label
14454
+ )),
14455
+ children && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children })
14456
+ ]
14457
+ }
14458
+ )
14459
+ ] })
14460
+ ]
14461
+ }
14462
+ )
14463
+ ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14334
14464
  "div",
14335
14465
  {
14336
14466
  className: _chunkS2PTWBN6js.cn.call(void 0,
@@ -14366,10 +14496,10 @@ function RoundPageContainer({
14366
14496
  },
14367
14497
  children: [
14368
14498
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, {}) }),
14369
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectContent, { children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: _nullishCoalesce(_optionalChain([tab, 'access', _409 => _409.key, 'optionalAccess', _410 => _410.name]), () => ( tab.label)), children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) })
14499
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectContent, { children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: tabValue(tab), children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) })
14370
14500
  ]
14371
14501
  }
14372
- ) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsList, { children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: _nullishCoalesce(_optionalChain([tab, 'access', _411 => _411.key, 'optionalAccess', _412 => _412.name]), () => ( tab.label)), className: "px-4", children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) }) }),
14502
+ ) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsList, { children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: tabValue(tab), className: "px-4", children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) }) }),
14373
14503
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14374
14504
  "div",
14375
14505
  {
@@ -14381,7 +14511,7 @@ function RoundPageContainer({
14381
14511
  children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14382
14512
  TabsContent,
14383
14513
  {
14384
- value: _nullishCoalesce(_optionalChain([tab, 'access', _413 => _413.key, 'optionalAccess', _414 => _414.name]), () => ( tab.label)),
14514
+ value: tabValue(tab),
14385
14515
  className: tab.fillHeight ? `flex flex-1 min-h-0 w-full flex-col` : `pb-20`,
14386
14516
  children: tab.content
14387
14517
  },
@@ -14510,14 +14640,14 @@ function BlockNoteEditorMentionHoverCard({
14510
14640
  const entityType = target.dataset.mentionType;
14511
14641
  const alias = target.dataset.mentionAlias;
14512
14642
  setHovered((prev) => {
14513
- if (_optionalChain([prev, 'optionalAccess', _415 => _415.id]) === id && _optionalChain([prev, 'optionalAccess', _416 => _416.element]) === target) return prev;
14643
+ if (_optionalChain([prev, 'optionalAccess', _406 => _406.id]) === id && _optionalChain([prev, 'optionalAccess', _407 => _407.element]) === target) return prev;
14514
14644
  return { id, entityType, alias, element: target };
14515
14645
  });
14516
14646
  }, "handleMouseOver");
14517
14647
  const handleMouseOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
14518
14648
  const target = e.target.closest("[data-mention-id]");
14519
14649
  if (!target) return;
14520
- const related = _optionalChain([e, 'access', _417 => _417.relatedTarget, 'optionalAccess', _418 => _418.closest, 'call', _419 => _419("[data-mention-id]")]);
14650
+ const related = _optionalChain([e, 'access', _408 => _408.relatedTarget, 'optionalAccess', _409 => _409.closest, 'call', _410 => _410("[data-mention-id]")]);
14521
14651
  if (related) return;
14522
14652
  scheduleClose();
14523
14653
  }, "handleMouseOut");
@@ -14531,7 +14661,7 @@ function BlockNoteEditorMentionHoverCard({
14531
14661
  }, [containerRef, mentionResolveFn, cancelClose, scheduleClose]);
14532
14662
  if (!hovered || !mentionResolveFn) return null;
14533
14663
  const resolved = mentionResolveFn(hovered.id, hovered.entityType, hovered.alias);
14534
- if (!_optionalChain([resolved, 'optionalAccess', _420 => _420.HoverContent])) return null;
14664
+ if (!_optionalChain([resolved, 'optionalAccess', _411 => _411.HoverContent])) return null;
14535
14665
  const ContentComponent = resolved.HoverContent;
14536
14666
  const rect = hovered.element.getBoundingClientRect();
14537
14667
  return _reactdom.createPortal.call(void 0,
@@ -14574,28 +14704,28 @@ var parseMentionElement = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
14574
14704
  }, "parseMentionElement");
14575
14705
  var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn, disableMention, nameResolver) => {
14576
14706
  const MentionExternalHTML = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
14577
- const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _421 => _421(props.id, props.entityType, props.alias)]), () => ( props.alias));
14707
+ const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _412 => _412(props.id, props.entityType, props.alias)]), () => ( props.alias));
14578
14708
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "data-mention-id": props.id, "data-mention-type": props.entityType, "data-mention-alias": props.alias, children: [
14579
14709
  "@",
14580
14710
  displayName
14581
14711
  ] });
14582
14712
  }, "MentionExternalHTML");
14583
14713
  const Mention = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function Mention2(props) {
14584
- const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _422 => _422(props.id, props.entityType, props.alias)]), () => ( props.alias));
14714
+ const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _413 => _413(props.id, props.entityType, props.alias)]), () => ( props.alias));
14585
14715
  if (disableMention) {
14586
- const resolved2 = _optionalChain([resolveFn, 'optionalCall', _423 => _423(props.id, props.entityType, displayName)]);
14587
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _424 => _424.url]), () => ( "#")), className: "text-primary", children: [
14716
+ const resolved2 = _optionalChain([resolveFn, 'optionalCall', _414 => _414(props.id, props.entityType, displayName)]);
14717
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _415 => _415.url]), () => ( "#")), className: "text-primary", children: [
14588
14718
  "@",
14589
14719
  displayName
14590
14720
  ] });
14591
14721
  }
14592
- const resolved = _optionalChain([resolveFn, 'optionalCall', _425 => _425(props.id, props.entityType, displayName)]);
14593
- if (_optionalChain([resolved, 'optionalAccess', _426 => _426.Inline])) {
14722
+ const resolved = _optionalChain([resolveFn, 'optionalCall', _416 => _416(props.id, props.entityType, displayName)]);
14723
+ if (_optionalChain([resolved, 'optionalAccess', _417 => _417.Inline])) {
14594
14724
  const Custom = resolved.Inline;
14595
14725
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props, alias: displayName });
14596
14726
  }
14597
- const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _427 => _427.url]), () => ( "#"));
14598
- const handleClick = _optionalChain([resolved, 'optionalAccess', _428 => _428.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
14727
+ const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _418 => _418.url]), () => ( "#"));
14728
+ const handleClick = _optionalChain([resolved, 'optionalAccess', _419 => _419.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
14599
14729
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
14600
14730
  _link2.default,
14601
14731
  {
@@ -14701,7 +14831,7 @@ function BlockNoteEditorMentionSuggestionMenu({
14701
14831
  if (!suggestionMenuComponent) return void 0;
14702
14832
  const Component2 = suggestionMenuComponent;
14703
14833
  const Wrapped = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
14704
- const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _429 => _429.items, 'access', _430 => _430[0], 'optionalAccess', _431 => _431.title]) === KEEP_OPEN_SENTINEL_TITLE;
14834
+ const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _420 => _420.items, 'access', _421 => _421[0], 'optionalAccess', _422 => _422.title]) === KEEP_OPEN_SENTINEL_TITLE;
14705
14835
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14706
14836
  Component2,
14707
14837
  {
@@ -14710,7 +14840,7 @@ function BlockNoteEditorMentionSuggestionMenu({
14710
14840
  selectedIndex: isSentinelOnly ? void 0 : props.selectedIndex,
14711
14841
  onItemClick: (item) => {
14712
14842
  if (item.title === KEEP_OPEN_SENTINEL_TITLE) return;
14713
- _optionalChain([props, 'access', _432 => _432.onItemClick, 'optionalCall', _433 => _433(item)]);
14843
+ _optionalChain([props, 'access', _423 => _423.onItemClick, 'optionalCall', _424 => _424(item)]);
14714
14844
  }
14715
14845
  }
14716
14846
  );
@@ -14904,10 +15034,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
14904
15034
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14905
15035
  Checkbox,
14906
15036
  {
14907
- checked: _optionalChain([params, 'access', _434 => _434.checkedIds, 'optionalAccess', _435 => _435.includes, 'call', _436 => _436(row.getValue(params.name))]) || false,
15037
+ checked: _optionalChain([params, 'access', _425 => _425.checkedIds, 'optionalAccess', _426 => _426.includes, 'call', _427 => _427(row.getValue(params.name))]) || false,
14908
15038
  onCheckedChange: (value) => {
14909
15039
  row.toggleSelected(!!value);
14910
- _optionalChain([params, 'access', _437 => _437.toggleId, 'optionalCall', _438 => _438(row.getValue(params.name))]);
15040
+ _optionalChain([params, 'access', _428 => _428.toggleId, 'optionalCall', _429 => _429(row.getValue(params.name))]);
14911
15041
  },
14912
15042
  "aria-label": "Select row"
14913
15043
  }
@@ -14966,7 +15096,7 @@ function useJsonApiGet(params) {
14966
15096
  const [response, setResponse] = _react.useState.call(void 0, null);
14967
15097
  const isMounted = _react.useRef.call(void 0, true);
14968
15098
  const fetchData = _react.useCallback.call(void 0, async () => {
14969
- if (_optionalChain([params, 'access', _439 => _439.options, 'optionalAccess', _440 => _440.enabled]) === false) return;
15099
+ if (_optionalChain([params, 'access', _430 => _430.options, 'optionalAccess', _431 => _431.enabled]) === false) return;
14970
15100
  setLoading(true);
14971
15101
  setError(null);
14972
15102
  try {
@@ -14993,9 +15123,9 @@ function useJsonApiGet(params) {
14993
15123
  setLoading(false);
14994
15124
  }
14995
15125
  }
14996
- }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _441 => _441.options, 'optionalAccess', _442 => _442.enabled])]);
15126
+ }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _432 => _432.options, 'optionalAccess', _433 => _433.enabled])]);
14997
15127
  const fetchNextPage = _react.useCallback.call(void 0, async () => {
14998
- if (!_optionalChain([response, 'optionalAccess', _443 => _443.nextPage])) return;
15128
+ if (!_optionalChain([response, 'optionalAccess', _434 => _434.nextPage])) return;
14999
15129
  setLoading(true);
15000
15130
  try {
15001
15131
  const nextResponse = await response.nextPage();
@@ -15016,7 +15146,7 @@ function useJsonApiGet(params) {
15016
15146
  }
15017
15147
  }, [response]);
15018
15148
  const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
15019
- if (!_optionalChain([response, 'optionalAccess', _444 => _444.prevPage])) return;
15149
+ if (!_optionalChain([response, 'optionalAccess', _435 => _435.prevPage])) return;
15020
15150
  setLoading(true);
15021
15151
  try {
15022
15152
  const prevResponse = await response.prevPage();
@@ -15042,15 +15172,15 @@ function useJsonApiGet(params) {
15042
15172
  return () => {
15043
15173
  isMounted.current = false;
15044
15174
  };
15045
- }, [fetchData, ..._optionalChain([params, 'access', _445 => _445.options, 'optionalAccess', _446 => _446.deps]) || []]);
15175
+ }, [fetchData, ..._optionalChain([params, 'access', _436 => _436.options, 'optionalAccess', _437 => _437.deps]) || []]);
15046
15176
  return {
15047
15177
  data,
15048
15178
  loading,
15049
15179
  error,
15050
15180
  response,
15051
15181
  refetch: fetchData,
15052
- hasNextPage: !!_optionalChain([response, 'optionalAccess', _447 => _447.next]),
15053
- hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _448 => _448.prev]),
15182
+ hasNextPage: !!_optionalChain([response, 'optionalAccess', _438 => _438.next]),
15183
+ hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _439 => _439.prev]),
15054
15184
  fetchNextPage,
15055
15185
  fetchPreviousPage
15056
15186
  };
@@ -15128,17 +15258,17 @@ function useJsonApiMutation(config) {
15128
15258
  if (apiResponse.ok) {
15129
15259
  const resultData = apiResponse.data;
15130
15260
  setData(resultData);
15131
- _optionalChain([config, 'access', _449 => _449.onSuccess, 'optionalCall', _450 => _450(resultData)]);
15261
+ _optionalChain([config, 'access', _440 => _440.onSuccess, 'optionalCall', _441 => _441(resultData)]);
15132
15262
  return resultData;
15133
15263
  } else {
15134
15264
  setError(apiResponse.error);
15135
- _optionalChain([config, 'access', _451 => _451.onError, 'optionalCall', _452 => _452(apiResponse.error)]);
15265
+ _optionalChain([config, 'access', _442 => _442.onError, 'optionalCall', _443 => _443(apiResponse.error)]);
15136
15266
  return null;
15137
15267
  }
15138
15268
  } catch (err) {
15139
15269
  const errorMessage = err instanceof Error ? err.message : "Unknown error";
15140
15270
  setError(errorMessage);
15141
- _optionalChain([config, 'access', _453 => _453.onError, 'optionalCall', _454 => _454(errorMessage)]);
15271
+ _optionalChain([config, 'access', _444 => _444.onError, 'optionalCall', _445 => _445(errorMessage)]);
15142
15272
  return null;
15143
15273
  } finally {
15144
15274
  setLoading(false);
@@ -15211,7 +15341,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
15211
15341
  {
15212
15342
  href: hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
15213
15343
  page: "/administration",
15214
- id: _optionalChain([_chunkS2PTWBN6js.Modules, 'access', _455 => _455.Company, 'access', _456 => _456.pageUrl, 'optionalAccess', _457 => _457.substring, 'call', _458 => _458(1)]),
15344
+ id: _optionalChain([_chunkS2PTWBN6js.Modules, 'access', _446 => _446.Company, 'access', _447 => _447.pageUrl, 'optionalAccess', _448 => _448.substring, 'call', _449 => _449(1)]),
15215
15345
  childPage: company.id
15216
15346
  }) : generateUrl({ page: _chunkS2PTWBN6js.Modules.Company, id: company.id }),
15217
15347
  children: row.getValue("name")
@@ -15227,7 +15357,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
15227
15357
  })
15228
15358
  };
15229
15359
  const columns = _react.useMemo.call(void 0, () => {
15230
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _459 => _459[field], 'optionalCall', _460 => _460()])).filter((col) => col !== void 0);
15360
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _450 => _450[field], 'optionalCall', _451 => _451()])).filter((col) => col !== void 0);
15231
15361
  }, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
15232
15362
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
15233
15363
  }, "useCompanyTableStructure");
@@ -15239,7 +15369,7 @@ var GRACE_DAYS = 3;
15239
15369
  var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
15240
15370
  if (!currentUser || !_chunk6KLR3WJQjs.isRolesConfigured.call(void 0, )) return false;
15241
15371
  const adminRoleId = _chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator;
15242
- return !!_optionalChain([currentUser, 'access', _461 => _461.roles, 'optionalAccess', _462 => _462.some, 'call', _463 => _463((role) => role.id === adminRoleId)]);
15372
+ return !!_optionalChain([currentUser, 'access', _452 => _452.roles, 'optionalAccess', _453 => _453.some, 'call', _454 => _454((role) => role.id === adminRoleId)]);
15243
15373
  }, "isAdministrator");
15244
15374
  function useSubscriptionStatus() {
15245
15375
  const { company, currentUser } = useCurrentUserContext();
@@ -15356,7 +15486,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
15356
15486
  })
15357
15487
  };
15358
15488
  const columns = _react.useMemo.call(void 0, () => {
15359
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _464 => _464[field], 'optionalCall', _465 => _465()])).filter((col) => col !== void 0);
15489
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _455 => _455[field], 'optionalCall', _456 => _456()])).filter((col) => col !== void 0);
15360
15490
  }, [params.fields, fieldColumnMap, t, generateUrl]);
15361
15491
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
15362
15492
  }, "useRoleTableStructure");
@@ -15457,11 +15587,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
15457
15587
  return params.fields.map((field) => {
15458
15588
  const localHandler = fieldColumnMap[field];
15459
15589
  if (localHandler) return localHandler();
15460
- const customHandler = _optionalChain([params, 'access', _466 => _466.context, 'optionalAccess', _467 => _467.customCells, 'optionalAccess', _468 => _468[field]]);
15590
+ const customHandler = _optionalChain([params, 'access', _457 => _457.context, 'optionalAccess', _458 => _458.customCells, 'optionalAccess', _459 => _459[field]]);
15461
15591
  if (customHandler) return customHandler({ t });
15462
15592
  return void 0;
15463
15593
  }).filter((col) => col !== void 0);
15464
- }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _469 => _469.context, 'optionalAccess', _470 => _470.customCells])]);
15594
+ }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _460 => _460.context, 'optionalAccess', _461 => _461.customCells])]);
15465
15595
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
15466
15596
  }, "useContentTableStructure");
15467
15597
 
@@ -15796,7 +15926,7 @@ function ContentTableSearch({ data }) {
15796
15926
  const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
15797
15927
  if (!isExpanded) {
15798
15928
  setIsFocused(true);
15799
- setTimeout(() => _optionalChain([inputRef, 'access', _471 => _471.current, 'optionalAccess', _472 => _472.focus, 'call', _473 => _473()]), 50);
15929
+ setTimeout(() => _optionalChain([inputRef, 'access', _462 => _462.current, 'optionalAccess', _463 => _463.focus, 'call', _464 => _464()]), 50);
15800
15930
  }
15801
15931
  }, "handleSearchIconClick");
15802
15932
  const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
@@ -15873,7 +16003,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
15873
16003
  props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
15874
16004
  );
15875
16005
  const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
15876
- data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _474 => _474.data]), () => ( EMPTY_ARRAY)),
16006
+ data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _465 => _465.data]), () => ( EMPTY_ARRAY)),
15877
16007
  fields,
15878
16008
  checkedIds,
15879
16009
  toggleId,
@@ -15906,7 +16036,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
15906
16036
  });
15907
16037
  const rowModel = tableData ? table.getRowModel() : null;
15908
16038
  const groupedRows = _react.useMemo.call(void 0, () => {
15909
- if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _475 => _475.rows, 'optionalAccess', _476 => _476.length])) return null;
16039
+ if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _466 => _466.rows, 'optionalAccess', _467 => _467.length])) return null;
15910
16040
  const groupMap = /* @__PURE__ */ new Map();
15911
16041
  for (const row of rowModel.rows) {
15912
16042
  const keys = getGroupKeys(row.original, props.groupBy);
@@ -15962,10 +16092,10 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
15962
16092
  ) }),
15963
16093
  table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
15964
16094
  const meta = header.column.columnDef.meta;
15965
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _477 => _477.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
16095
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _468 => _468.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
15966
16096
  }) }, headerGroup.id))
15967
16097
  ] }),
15968
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _478 => _478.rows, 'optionalAccess', _479 => _479.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React.default.Fragment, { children: [
16098
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _469 => _469.rows, 'optionalAccess', _470 => _470.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React.default.Fragment, { children: [
15969
16099
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15970
16100
  TableCell,
15971
16101
  {
@@ -15976,11 +16106,11 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
15976
16106
  ) }),
15977
16107
  group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
15978
16108
  const meta = cell.column.columnDef.meta;
15979
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _480 => _480.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
16109
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _471 => _471.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
15980
16110
  }) }, row.id))
15981
16111
  ] }, group.groupKey)) : rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
15982
16112
  const meta = cell.column.columnDef.meta;
15983
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _481 => _481.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
16113
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _472 => _472.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
15984
16114
  }) }, row.id)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "h-24 text-center", children: _nullishCoalesce(props.emptyState, () => ( "No results.")) }) }) }),
15985
16115
  showFooter && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableFooter, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "bg-card py-4 text-right", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-end space-x-2", children: [
15986
16116
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -15990,7 +16120,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
15990
16120
  size: "sm",
15991
16121
  onClick: (e) => {
15992
16122
  e.preventDefault();
15993
- _optionalChain([data, 'access', _482 => _482.previous, 'optionalCall', _483 => _483(true)]);
16123
+ _optionalChain([data, 'access', _473 => _473.previous, 'optionalCall', _474 => _474(true)]);
15994
16124
  },
15995
16125
  disabled: !data.previous,
15996
16126
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
@@ -16004,7 +16134,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
16004
16134
  size: "sm",
16005
16135
  onClick: (e) => {
16006
16136
  e.preventDefault();
16007
- _optionalChain([data, 'access', _484 => _484.next, 'optionalCall', _485 => _485(true)]);
16137
+ _optionalChain([data, 'access', _475 => _475.next, 'optionalCall', _476 => _476(true)]);
16008
16138
  },
16009
16139
  disabled: !data.next,
16010
16140
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" })
@@ -16025,7 +16155,7 @@ function ContentListGrid(props) {
16025
16155
  if (!data.next || !sentinelRef.current) return;
16026
16156
  const observer = new IntersectionObserver(
16027
16157
  (entries) => {
16028
- if (_optionalChain([entries, 'access', _486 => _486[0], 'optionalAccess', _487 => _487.isIntersecting])) _optionalChain([data, 'access', _488 => _488.next, 'optionalCall', _489 => _489()]);
16158
+ if (_optionalChain([entries, 'access', _477 => _477[0], 'optionalAccess', _478 => _478.isIntersecting])) _optionalChain([data, 'access', _479 => _479.next, 'optionalCall', _480 => _480()]);
16029
16159
  },
16030
16160
  { threshold: 0.1, rootMargin: "200px" }
16031
16161
  );
@@ -16775,7 +16905,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
16775
16905
  newDigits[index] = digit;
16776
16906
  setDigits(newDigits);
16777
16907
  if (digit && index < 5) {
16778
- _optionalChain([inputRefs, 'access', _490 => _490.current, 'access', _491 => _491[index + 1], 'optionalAccess', _492 => _492.focus, 'call', _493 => _493()]);
16908
+ _optionalChain([inputRefs, 'access', _481 => _481.current, 'access', _482 => _482[index + 1], 'optionalAccess', _483 => _483.focus, 'call', _484 => _484()]);
16779
16909
  }
16780
16910
  const code = newDigits.join("");
16781
16911
  if (code.length === 6 && newDigits.every((d) => d !== "")) {
@@ -16784,7 +16914,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
16784
16914
  }, "handleChange");
16785
16915
  const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
16786
16916
  if (e.key === "Backspace" && !digits[index] && index > 0) {
16787
- _optionalChain([inputRefs, 'access', _494 => _494.current, 'access', _495 => _495[index - 1], 'optionalAccess', _496 => _496.focus, 'call', _497 => _497()]);
16917
+ _optionalChain([inputRefs, 'access', _485 => _485.current, 'access', _486 => _486[index - 1], 'optionalAccess', _487 => _487.focus, 'call', _488 => _488()]);
16788
16918
  }
16789
16919
  }, "handleKeyDown");
16790
16920
  const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
@@ -16793,7 +16923,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
16793
16923
  if (pastedData.length === 6) {
16794
16924
  const newDigits = pastedData.split("");
16795
16925
  setDigits(newDigits);
16796
- _optionalChain([inputRefs, 'access', _498 => _498.current, 'access', _499 => _499[5], 'optionalAccess', _500 => _500.focus, 'call', _501 => _501()]);
16926
+ _optionalChain([inputRefs, 'access', _489 => _489.current, 'access', _490 => _490[5], 'optionalAccess', _491 => _491.focus, 'call', _492 => _492()]);
16797
16927
  onComplete(pastedData);
16798
16928
  }
16799
16929
  }, "handlePaste");
@@ -17004,8 +17134,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
17004
17134
  try {
17005
17135
  const registrationData = await _chunkS2PTWBN6js.TwoFactorService.getPasskeyRegistrationOptions({
17006
17136
  id: _uuid.v4.call(void 0, ),
17007
- userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _502 => _502.email]), () => ( "")),
17008
- userDisplayName: _optionalChain([currentUser, 'optionalAccess', _503 => _503.name])
17137
+ userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _493 => _493.email]), () => ( "")),
17138
+ userDisplayName: _optionalChain([currentUser, 'optionalAccess', _494 => _494.name])
17009
17139
  });
17010
17140
  const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
17011
17141
  await _chunkS2PTWBN6js.TwoFactorService.verifyPasskeyRegistration({
@@ -17156,7 +17286,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
17156
17286
  const setup = await _chunkS2PTWBN6js.TwoFactorService.setupTotp({
17157
17287
  id: _uuid.v4.call(void 0, ),
17158
17288
  name: name.trim(),
17159
- accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _504 => _504.email]), () => ( ""))
17289
+ accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _495 => _495.email]), () => ( ""))
17160
17290
  });
17161
17291
  setQrCodeUri(setup.qrCodeUri);
17162
17292
  setAuthenticatorId(setup.authenticatorId);
@@ -17290,7 +17420,7 @@ function TwoFactorSettings() {
17290
17420
  if (isLoading) {
17291
17421
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: "flex items-center justify-center py-8", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-muted-foreground", children: t("common.loading") }) }) });
17292
17422
  }
17293
- const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _505 => _505.isEnabled]), () => ( false));
17423
+ const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _496 => _496.isEnabled]), () => ( false));
17294
17424
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
17295
17425
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
17296
17426
  isEnabled ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ShieldCheck, { className: "h-6 w-6 text-green-600" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ShieldAlert, { className: "h-6 w-6 text-yellow-600" }),
@@ -17328,7 +17458,7 @@ function TwoFactorSettings() {
17328
17458
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
17329
17459
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
17330
17460
  ] }),
17331
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _506 => _506.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
17461
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _497 => _497.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
17332
17462
  ] }) }),
17333
17463
  !isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
17334
17464
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
@@ -17506,9 +17636,9 @@ function AcceptInvitation() {
17506
17636
  });
17507
17637
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
17508
17638
  try {
17509
- if (!_optionalChain([params, 'optionalAccess', _507 => _507.code])) return;
17639
+ if (!_optionalChain([params, 'optionalAccess', _498 => _498.code])) return;
17510
17640
  const payload = {
17511
- code: _optionalChain([params, 'optionalAccess', _508 => _508.code]),
17641
+ code: _optionalChain([params, 'optionalAccess', _499 => _499.code]),
17512
17642
  password: values.password
17513
17643
  };
17514
17644
  await _chunkS2PTWBN6js.AuthService.acceptInvitation(payload);
@@ -17858,7 +17988,7 @@ function Logout({ storageKeys }) {
17858
17988
  const generateUrl = usePageUrlGenerator();
17859
17989
  _react.useEffect.call(void 0, () => {
17860
17990
  const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
17861
- if (_optionalChain([storageKeys, 'optionalAccess', _509 => _509.length])) {
17991
+ if (_optionalChain([storageKeys, 'optionalAccess', _500 => _500.length])) {
17862
17992
  clearClientStorage(storageKeys);
17863
17993
  }
17864
17994
  await _chunkS2PTWBN6js.AuthService.logout();
@@ -17881,14 +18011,14 @@ function RefreshUser() {
17881
18011
  setUser(fullUser);
17882
18012
  const token = {
17883
18013
  userId: fullUser.id,
17884
- companyId: _optionalChain([fullUser, 'access', _510 => _510.company, 'optionalAccess', _511 => _511.id]),
18014
+ companyId: _optionalChain([fullUser, 'access', _501 => _501.company, 'optionalAccess', _502 => _502.id]),
17885
18015
  roles: fullUser.roles.map((role) => role.id),
17886
- features: _nullishCoalesce(_optionalChain([fullUser, 'access', _512 => _512.company, 'optionalAccess', _513 => _513.features, 'optionalAccess', _514 => _514.map, 'call', _515 => _515((feature) => feature.id)]), () => ( [])),
18016
+ features: _nullishCoalesce(_optionalChain([fullUser, 'access', _503 => _503.company, 'optionalAccess', _504 => _504.features, 'optionalAccess', _505 => _505.map, 'call', _506 => _506((feature) => feature.id)]), () => ( [])),
17887
18017
  modules: fullUser.modules.map((module) => {
17888
18018
  return { id: module.id, permissions: module.permissions };
17889
18019
  })
17890
18020
  };
17891
- await _optionalChain([_chunkS2PTWBN6js.getTokenHandler.call(void 0, ), 'optionalAccess', _516 => _516.updateToken, 'call', _517 => _517(token)]);
18021
+ await _optionalChain([_chunkS2PTWBN6js.getTokenHandler.call(void 0, ), 'optionalAccess', _507 => _507.updateToken, 'call', _508 => _508(token)]);
17892
18022
  _cookiesnext.deleteCookie.call(void 0, "reloadData");
17893
18023
  }
17894
18024
  }, "loadFullUser");
@@ -17952,9 +18082,9 @@ function ResetPassword() {
17952
18082
  });
17953
18083
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
17954
18084
  try {
17955
- if (!_optionalChain([params, 'optionalAccess', _518 => _518.code])) return;
18085
+ if (!_optionalChain([params, 'optionalAccess', _509 => _509.code])) return;
17956
18086
  const payload = {
17957
- code: _optionalChain([params, 'optionalAccess', _519 => _519.code]),
18087
+ code: _optionalChain([params, 'optionalAccess', _510 => _510.code]),
17958
18088
  password: values.password
17959
18089
  };
17960
18090
  await _chunkS2PTWBN6js.AuthService.resetPassword(payload);
@@ -18303,7 +18433,7 @@ function extractHeadings(blocks) {
18303
18433
  function processBlocks(blockArray) {
18304
18434
  for (const block of blockArray) {
18305
18435
  if (block.type === "heading") {
18306
- const level = _optionalChain([block, 'access', _520 => _520.props, 'optionalAccess', _521 => _521.level]) || 1;
18436
+ const level = _optionalChain([block, 'access', _511 => _511.props, 'optionalAccess', _512 => _512.level]) || 1;
18307
18437
  const text = extractTextFromContent(block.content);
18308
18438
  if (text.trim()) {
18309
18439
  headings.push({
@@ -18646,7 +18776,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
18646
18776
  })
18647
18777
  };
18648
18778
  const columns = _react.useMemo.call(void 0, () => {
18649
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _522 => _522[field], 'optionalCall', _523 => _523()])).filter((col) => col !== void 0);
18779
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _513 => _513[field], 'optionalCall', _514 => _514()])).filter((col) => col !== void 0);
18650
18780
  }, [params.fields, fieldColumnMap, t, generateUrl]);
18651
18781
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
18652
18782
  }, "useHowToTableStructure");
@@ -18745,7 +18875,7 @@ function HowToSelector({
18745
18875
  }, "setHowTo");
18746
18876
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormFieldWrapper, { form, name: id, label, isRequired, children: (field) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, modal: true, children: [
18747
18877
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
18748
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start rounded-md", children: field.value ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _524 => _524.value, 'optionalAccess', _525 => _525.name]), () => ( "")) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input text-muted-foreground flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: _nullishCoalesce(placeholder, () => ( t(`generic.search.placeholder`, { type: t(`entities.howtos`, { count: 1 }) }))) }) }) }),
18878
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start rounded-md", children: field.value ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _515 => _515.value, 'optionalAccess', _516 => _516.name]), () => ( "")) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input text-muted-foreground flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: _nullishCoalesce(placeholder, () => ( t(`generic.search.placeholder`, { type: t(`entities.howtos`, { count: 1 }) }))) }) }) }),
18749
18879
  field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
18750
18880
  _lucidereact.CircleX,
18751
18881
  {
@@ -19114,9 +19244,9 @@ function CitationsTab({ citations, sources }) {
19114
19244
  ] }) }),
19115
19245
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
19116
19246
  const isOpen = expanded.has(chunk.id);
19117
- const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _526 => _526.get, 'call', _527 => _527(chunk.nodeId)]) : void 0;
19247
+ const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _517 => _517.get, 'call', _518 => _518(chunk.nodeId)]) : void 0;
19118
19248
  const fallbackName = chunk.nodeId ? `${_nullishCoalesce(chunk.nodeType, () => ( t("features.assistant.message.sources.source")))} ${chunk.nodeId.slice(0, 8)}` : _nullishCoalesce(chunk.nodeType, () => ( t("features.assistant.message.sources.source")));
19119
- const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _528 => _528.name]), () => ( fallbackName));
19249
+ const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _519 => _519.name]), () => ( fallbackName));
19120
19250
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
19121
19251
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
19122
19252
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -19163,7 +19293,7 @@ function ContentsTab({ citations, sources }) {
19163
19293
  for (const c of citations) {
19164
19294
  const id = c.nodeId;
19165
19295
  if (!id) continue;
19166
- const source = _optionalChain([sources, 'optionalAccess', _529 => _529.get, 'call', _530 => _530(id)]);
19296
+ const source = _optionalChain([sources, 'optionalAccess', _520 => _520.get, 'call', _521 => _521(id)]);
19167
19297
  if (!source) continue;
19168
19298
  const existing = map.get(id);
19169
19299
  if (existing) {
@@ -19230,7 +19360,7 @@ function UsersTab({ users, citations, sources }) {
19230
19360
  const generate = usePageUrlGenerator();
19231
19361
  const userMap = /* @__PURE__ */ new Map();
19232
19362
  for (const u of users) {
19233
- if (!_optionalChain([u, 'optionalAccess', _531 => _531.id])) continue;
19363
+ if (!_optionalChain([u, 'optionalAccess', _522 => _522.id])) continue;
19234
19364
  userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
19235
19365
  }
19236
19366
  if (citations && sources) {
@@ -19335,7 +19465,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
19335
19465
  }
19336
19466
  return ids.size;
19337
19467
  }, [message.citations, sources]);
19338
- const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _532 => _532.length]), () => ( 0));
19468
+ const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _523 => _523.length]), () => ( 0));
19339
19469
  const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
19340
19470
  const visibleTabs = [];
19341
19471
  if (suggestionsCount > 0) visibleTabs.push("suggested");
@@ -19395,8 +19525,8 @@ var SourcesFetcher = class extends _chunkS2PTWBN6js.ClientAbstractService {
19395
19525
  const endpoint = new (0, _chunkS2PTWBN6js.EndpointCreator)({ endpoint: params.module });
19396
19526
  endpoint.addAdditionalParam(params.idsParam, params.ids.join(","));
19397
19527
  endpoint.addAdditionalParam("fetchAll", "true");
19398
- if (_optionalChain([params, 'access', _533 => _533.module, 'access', _534 => _534.inclusions, 'optionalAccess', _535 => _535.lists, 'optionalAccess', _536 => _536.fields])) endpoint.limitToFields(params.module.inclusions.lists.fields);
19399
- if (_optionalChain([params, 'access', _537 => _537.module, 'access', _538 => _538.inclusions, 'optionalAccess', _539 => _539.lists, 'optionalAccess', _540 => _540.types])) endpoint.limitToType(params.module.inclusions.lists.types);
19528
+ if (_optionalChain([params, 'access', _524 => _524.module, 'access', _525 => _525.inclusions, 'optionalAccess', _526 => _526.lists, 'optionalAccess', _527 => _527.fields])) endpoint.limitToFields(params.module.inclusions.lists.fields);
19529
+ if (_optionalChain([params, 'access', _528 => _528.module, 'access', _529 => _529.inclusions, 'optionalAccess', _530 => _530.lists, 'optionalAccess', _531 => _531.types])) endpoint.limitToType(params.module.inclusions.lists.types);
19400
19530
  return this.callApi({
19401
19531
  type: params.module,
19402
19532
  method: "GET" /* GET */,
@@ -19475,7 +19605,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
19475
19605
  return void 0;
19476
19606
  }
19477
19607
  })()));
19478
- if (_optionalChain([author, 'optionalAccess', _541 => _541.id])) userMap.set(author.id, author);
19608
+ if (_optionalChain([author, 'optionalAccess', _532 => _532.id])) userMap.set(author.id, author);
19479
19609
  }
19480
19610
  return Array.from(userMap.values());
19481
19611
  }, [resolved]);
@@ -19504,14 +19634,14 @@ function MessageItem({
19504
19634
  }) {
19505
19635
  const t = _nextintl.useTranslations.call(void 0, );
19506
19636
  const isUser = message.role === "user";
19507
- const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _542 => _542.has, 'call', _543 => _543(message.id)]);
19637
+ const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _533 => _533.has, 'call', _534 => _534(message.id)]);
19508
19638
  if (isUser) {
19509
19639
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-end gap-1", children: [
19510
19640
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-primary text-primary-foreground max-w-[72%] rounded-2xl rounded-br-sm px-3.5 py-2 text-sm", children: message.content }),
19511
19641
  isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
19512
19642
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
19513
19643
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.send_failed") }),
19514
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall', _544 => _544(message.id)]), children: t("features.assistant.retry") })
19644
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall', _535 => _535(message.id)]), children: t("features.assistant.retry") })
19515
19645
  ] })
19516
19646
  ] });
19517
19647
  }
@@ -19587,7 +19717,7 @@ function AssistantThread({
19587
19717
  }) {
19588
19718
  const endRef = _react.useRef.call(void 0, null);
19589
19719
  _react.useEffect.call(void 0, () => {
19590
- _optionalChain([endRef, 'access', _545 => _545.current, 'optionalAccess', _546 => _546.scrollIntoView, 'call', _547 => _547({ behavior: "smooth" })]);
19720
+ _optionalChain([endRef, 'access', _536 => _536.current, 'optionalAccess', _537 => _537.scrollIntoView, 'call', _538 => _538({ behavior: "smooth" })]);
19591
19721
  }, [messages.length, sending]);
19592
19722
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 min-w-0 overflow-x-hidden overflow-y-auto px-6 py-5", children: [
19593
19723
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -19616,7 +19746,7 @@ function AssistantContainer({ renderApprovalAction } = {}) {
19616
19746
  AssistantSidebar,
19617
19747
  {
19618
19748
  threads: ctx.threads,
19619
- activeId: _optionalChain([ctx, 'access', _548 => _548.assistant, 'optionalAccess', _549 => _549.id]),
19749
+ activeId: _optionalChain([ctx, 'access', _539 => _539.assistant, 'optionalAccess', _540 => _540.id]),
19620
19750
  onSelect: ctx.selectThread,
19621
19751
  onNew: ctx.startNew
19622
19752
  }
@@ -19717,14 +19847,14 @@ function NotificationsList({ archived }) {
19717
19847
  ] }),
19718
19848
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
19719
19849
  ] }) }) }, i)) }), "LoadingSkeleton");
19720
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _550 => _550.data, 'optionalAccess', _551 => _551.map, 'call', _552 => _552((notification) => {
19850
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _541 => _541.data, 'optionalAccess', _542 => _542.map, 'call', _543 => _543((notification) => {
19721
19851
  const notificationData = generateNotificationData({ notification, generateUrl });
19722
19852
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: "p-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex w-full flex-row items-center p-2`, children: [
19723
19853
  notificationData.actor ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-12 max-w-12 px-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunkS2PTWBN6js.Modules.User, id: notificationData.actor.id }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: notificationData.actor, className: "h-8 w-8" }) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-14 max-w-14 px-2" }),
19724
19854
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
19725
19855
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
19726
19856
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
19727
- actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _553 => _553.actor, 'optionalAccess', _554 => _554.name]), () => ( "")),
19857
+ actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _544 => _544.actor, 'optionalAccess', _545 => _545.name]), () => ( "")),
19728
19858
  title: notificationData.title
19729
19859
  }) }),
19730
19860
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
@@ -20070,7 +20200,7 @@ var DEFAULT_TRANSLATIONS = {
20070
20200
  invalidEmail: "Please enter a valid email address"
20071
20201
  };
20072
20202
  async function copyToClipboard(text) {
20073
- if (_optionalChain([navigator, 'access', _555 => _555.clipboard, 'optionalAccess', _556 => _556.writeText])) {
20203
+ if (_optionalChain([navigator, 'access', _546 => _546.clipboard, 'optionalAccess', _547 => _547.writeText])) {
20074
20204
  try {
20075
20205
  await navigator.clipboard.writeText(text);
20076
20206
  return true;
@@ -20112,7 +20242,7 @@ function ReferralWidget({
20112
20242
  const linkInputRef = _react.useRef.call(void 0, null);
20113
20243
  const config = _chunk6KLR3WJQjs.getReferralConfig.call(void 0, );
20114
20244
  const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
20115
- const referralUrl = _optionalChain([stats, 'optionalAccess', _557 => _557.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
20245
+ const referralUrl = _optionalChain([stats, 'optionalAccess', _548 => _548.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
20116
20246
  if (!_chunk6KLR3WJQjs.isReferralEnabled.call(void 0, )) {
20117
20247
  return null;
20118
20248
  }
@@ -20122,7 +20252,7 @@ function ReferralWidget({
20122
20252
  if (success) {
20123
20253
  setCopied(true);
20124
20254
  _chunkS2PTWBN6js.showToast.call(void 0, t.copiedMessage);
20125
- _optionalChain([onLinkCopied, 'optionalCall', _558 => _558()]);
20255
+ _optionalChain([onLinkCopied, 'optionalCall', _549 => _549()]);
20126
20256
  setTimeout(() => setCopied(false), 2e3);
20127
20257
  } else {
20128
20258
  _chunkS2PTWBN6js.showError.call(void 0, t.copyError);
@@ -20136,12 +20266,12 @@ function ReferralWidget({
20136
20266
  try {
20137
20267
  await sendInvite(email);
20138
20268
  _chunkS2PTWBN6js.showToast.call(void 0, t.inviteSent);
20139
- _optionalChain([onInviteSent, 'optionalCall', _559 => _559(email)]);
20269
+ _optionalChain([onInviteSent, 'optionalCall', _550 => _550(email)]);
20140
20270
  setEmail("");
20141
20271
  } catch (err) {
20142
20272
  const error2 = err instanceof Error ? err : new Error(t.inviteError);
20143
20273
  _chunkS2PTWBN6js.showError.call(void 0, error2.message);
20144
- _optionalChain([onInviteError, 'optionalCall', _560 => _560(error2)]);
20274
+ _optionalChain([onInviteError, 'optionalCall', _551 => _551(error2)]);
20145
20275
  }
20146
20276
  }, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
20147
20277
  const handleEmailKeyDown = _react.useCallback.call(void 0,
@@ -20895,7 +21025,7 @@ function OAuthClientList({
20895
21025
  OAuthClientCard,
20896
21026
  {
20897
21027
  client,
20898
- onClick: () => _optionalChain([onClientClick, 'optionalCall', _561 => _561(client)]),
21028
+ onClick: () => _optionalChain([onClientClick, 'optionalCall', _552 => _552(client)]),
20899
21029
  onEdit: onEditClick ? () => onEditClick(client) : void 0,
20900
21030
  onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
20901
21031
  },
@@ -20911,11 +21041,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
20911
21041
  function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
20912
21042
  const isEditMode = !!client;
20913
21043
  const [formState, setFormState] = _react.useState.call(void 0, {
20914
- name: _optionalChain([client, 'optionalAccess', _562 => _562.name]) || "",
20915
- description: _optionalChain([client, 'optionalAccess', _563 => _563.description]) || "",
20916
- redirectUris: _optionalChain([client, 'optionalAccess', _564 => _564.redirectUris, 'optionalAccess', _565 => _565.length]) ? client.redirectUris : [""],
20917
- allowedScopes: _optionalChain([client, 'optionalAccess', _566 => _566.allowedScopes]) || [],
20918
- isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _567 => _567.isConfidential]), () => ( true))
21044
+ name: _optionalChain([client, 'optionalAccess', _553 => _553.name]) || "",
21045
+ description: _optionalChain([client, 'optionalAccess', _554 => _554.description]) || "",
21046
+ redirectUris: _optionalChain([client, 'optionalAccess', _555 => _555.redirectUris, 'optionalAccess', _556 => _556.length]) ? client.redirectUris : [""],
21047
+ allowedScopes: _optionalChain([client, 'optionalAccess', _557 => _557.allowedScopes]) || [],
21048
+ isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _558 => _558.isConfidential]), () => ( true))
20919
21049
  });
20920
21050
  const [errors, setErrors] = _react.useState.call(void 0, {});
20921
21051
  const validate = _react.useCallback.call(void 0, () => {
@@ -21143,7 +21273,7 @@ function OAuthClientDetail({
21143
21273
  ] }),
21144
21274
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
21145
21275
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
21146
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: client.allowedScopes.map((scope) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "secondary", children: _optionalChain([_chunkS2PTWBN6js.OAUTH_SCOPE_DISPLAY, 'access', _568 => _568[scope], 'optionalAccess', _569 => _569.name]) || scope }, scope)) })
21276
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: client.allowedScopes.map((scope) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "secondary", children: _optionalChain([_chunkS2PTWBN6js.OAUTH_SCOPE_DISPLAY, 'access', _559 => _559[scope], 'optionalAccess', _560 => _560.name]) || scope }, scope)) })
21147
21277
  ] }),
21148
21278
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
21149
21279
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
@@ -21287,7 +21417,7 @@ function OAuthConsentScreen({
21287
21417
  if (error || !clientInfo) {
21288
21418
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-screen flex items-center justify-center p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { className: "w-full max-w-md", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: "py-8", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Alert, { variant: "destructive", children: [
21289
21419
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
21290
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _570 => _570.message]) || "Invalid authorization request. Please try again." })
21420
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _561 => _561.message]) || "Invalid authorization request. Please try again." })
21291
21421
  ] }) }) }) });
21292
21422
  }
21293
21423
  const { client, scopes } = clientInfo;
@@ -21503,7 +21633,7 @@ function WaitlistForm({ onSuccess }) {
21503
21633
  questionnaire: values.questionnaire
21504
21634
  });
21505
21635
  setIsSuccess(true);
21506
- _optionalChain([onSuccess, 'optionalCall', _571 => _571()]);
21636
+ _optionalChain([onSuccess, 'optionalCall', _562 => _562()]);
21507
21637
  } catch (e) {
21508
21638
  errorToast({ error: e });
21509
21639
  } finally {
@@ -22141,7 +22271,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
22141
22271
  ] }),
22142
22272
  roleIds.map((roleId) => {
22143
22273
  const roleTokens = block[roleId];
22144
- const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _572 => _572[roleId]]), () => ( roleId));
22274
+ const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _563 => _563[roleId]]), () => ( roleId));
22145
22275
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
22146
22276
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
22147
22277
  _chunk6KLR3WJQjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -22178,7 +22308,7 @@ function RbacContainer() {
22178
22308
  }, []);
22179
22309
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
22180
22310
  if (!matrix) return [];
22181
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _573 => _573[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _574 => _574[b]]), () => ( b))));
22311
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _564 => _564[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _565 => _565[b]]), () => ( b))));
22182
22312
  }, [matrix, moduleNames]);
22183
22313
  const roleIds = _react.useMemo.call(void 0, () => {
22184
22314
  if (roleNames) {
@@ -22241,7 +22371,7 @@ function RbacContainer() {
22241
22371
  id === selectedModuleId && "bg-muted font-medium text-foreground",
22242
22372
  id !== selectedModuleId && "text-muted-foreground"
22243
22373
  ),
22244
- children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _575 => _575[id]]), () => ( id))
22374
+ children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _566 => _566[id]]), () => ( id))
22245
22375
  }
22246
22376
  ) }, id)) }) }),
22247
22377
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: selectedModuleId && selectedBlock ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -22249,7 +22379,7 @@ function RbacContainer() {
22249
22379
  {
22250
22380
  moduleId: selectedModuleId,
22251
22381
  block: selectedBlock,
22252
- moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _576 => _576[selectedModuleId]]), () => ( selectedModuleId)),
22382
+ moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _567 => _567[selectedModuleId]]), () => ( selectedModuleId)),
22253
22383
  roleIds,
22254
22384
  roleNames,
22255
22385
  onOpenPicker: openPicker
@@ -22260,12 +22390,12 @@ function RbacContainer() {
22260
22390
  RbacPermissionPicker,
22261
22391
  {
22262
22392
  open: !!activePicker,
22263
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _577 => _577.anchor]), () => ( null)),
22393
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _568 => _568.anchor]), () => ( null)),
22264
22394
  value: activeValue,
22265
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _578 => _578.isRoleColumn]), () => ( false)),
22395
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _569 => _569.isRoleColumn]), () => ( false)),
22266
22396
  knownSegments: activeSegments,
22267
22397
  onSetValue: handleSetValue,
22268
- onClear: _optionalChain([activePicker, 'optionalAccess', _579 => _579.isRoleColumn]) ? handleClear : void 0,
22398
+ onClear: _optionalChain([activePicker, 'optionalAccess', _570 => _570.isRoleColumn]) ? handleClear : void 0,
22269
22399
  onClose: closePicker
22270
22400
  }
22271
22401
  )
@@ -22332,7 +22462,7 @@ function RbacByRoleContainer() {
22332
22462
  }, [roleNames]);
22333
22463
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
22334
22464
  if (!matrix) return [];
22335
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _580 => _580[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _581 => _581[b]]), () => ( b))));
22465
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _571 => _571[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _572 => _572[b]]), () => ( b))));
22336
22466
  }, [matrix, moduleNames]);
22337
22467
  _react.useEffect.call(void 0, () => {
22338
22468
  if (!selectedRoleId && sortedRoleIds.length > 0) {
@@ -22381,7 +22511,7 @@ function RbacByRoleContainer() {
22381
22511
  id === selectedRoleId && "bg-muted font-medium text-foreground",
22382
22512
  id !== selectedRoleId && "text-muted-foreground"
22383
22513
  ),
22384
- children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _582 => _582[id]]), () => ( id))
22514
+ children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _573 => _573[id]]), () => ( id))
22385
22515
  }
22386
22516
  ) }, id)) }) }),
22387
22517
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: sortedModuleIds.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rounded-lg border border-accent bg-card", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-x-auto", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "table", { className: "w-full text-sm", children: [
@@ -22401,7 +22531,7 @@ function RbacByRoleContainer() {
22401
22531
  if (!block) return null;
22402
22532
  const defaultTokens = _nullishCoalesce(block.default, () => ( []));
22403
22533
  const roleTokens = block[selectedRoleId];
22404
- const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _583 => _583[moduleId]]), () => ( moduleId));
22534
+ const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _574 => _574[moduleId]]), () => ( moduleId));
22405
22535
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
22406
22536
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
22407
22537
  "td",
@@ -22416,7 +22546,7 @@ function RbacByRoleContainer() {
22416
22546
  _chunk6KLR3WJQjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RbacPermissionCell, { value: cellValue2(defaultTokens, action) }) }, action))
22417
22547
  ] }),
22418
22548
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
22419
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _584 => _584[selectedRoleId]]), () => ( selectedRoleId)) }),
22549
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _575 => _575[selectedRoleId]]), () => ( selectedRoleId)) }),
22420
22550
  _chunk6KLR3WJQjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
22421
22551
  CellButton3,
22422
22552
  {
@@ -22437,12 +22567,12 @@ function RbacByRoleContainer() {
22437
22567
  RbacPermissionPicker,
22438
22568
  {
22439
22569
  open: !!activePicker,
22440
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _585 => _585.anchor]), () => ( null)),
22570
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _576 => _576.anchor]), () => ( null)),
22441
22571
  value: activeValue,
22442
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _586 => _586.isRoleColumn]), () => ( false)),
22572
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _577 => _577.isRoleColumn]), () => ( false)),
22443
22573
  knownSegments: activeSegments,
22444
22574
  onSetValue: handleSetValue,
22445
- onClear: _optionalChain([activePicker, 'optionalAccess', _587 => _587.isRoleColumn]) ? handleClear : void 0,
22575
+ onClear: _optionalChain([activePicker, 'optionalAccess', _578 => _578.isRoleColumn]) ? handleClear : void 0,
22446
22576
  onClose: closePicker
22447
22577
  }
22448
22578
  )
@@ -22975,5 +23105,6 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
22975
23105
 
22976
23106
 
22977
23107
 
22978
- exports.JsonApiProvider = JsonApiProvider; exports.useJsonApiGet = useJsonApiGet; exports.useJsonApiMutation = useJsonApiMutation; exports.useRehydration = useRehydration; exports.useRehydrationList = useRehydrationList; exports.TableGeneratorRegistry = TableGeneratorRegistry; exports.tableGeneratorRegistry = tableGeneratorRegistry; exports.usePageUrlGenerator = usePageUrlGenerator; exports.useUrlRewriter = useUrlRewriter; exports.useDataListRetriever = useDataListRetriever; exports.useDebounce = useDebounce2; exports.registerTableGenerator = registerTableGenerator; exports.useTableGenerator = useTableGenerator; exports.computeLayeredLayout = computeLayeredLayout; exports.fitLayeredLayoutToAspectRatio = fitLayeredLayoutToAspectRatio; exports.useCustomD3Graph = useCustomD3Graph; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AlertAction = AlertAction; exports.buttonVariants = buttonVariants; exports.Button = Button; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogMedia = AlertDialogMedia; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.Avatar = Avatar; exports.AvatarImage = AvatarImage; exports.AvatarFallback = AvatarFallback; exports.AvatarBadge = AvatarBadge; exports.AvatarGroup = AvatarGroup; exports.AvatarGroupCount = AvatarGroupCount; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.Calendar = Calendar; exports.CalendarDayButton = CalendarDayButton; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardAction = CardAction; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.useCarousel = useCarousel; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger; exports.CollapsibleContent = CollapsibleContent; exports.Input = Input; exports.Textarea = Textarea; exports.InputGroup = InputGroup; exports.InputGroupAddon = InputGroupAddon; exports.InputGroupButton = InputGroupButton; exports.InputGroupText = InputGroupText; exports.InputGroupInput = InputGroupInput; exports.InputGroupTextarea = InputGroupTextarea; exports.Combobox = Combobox; exports.ComboboxValue = ComboboxValue; exports.ComboboxTrigger = ComboboxTrigger; exports.ComboboxInput = ComboboxInput; exports.ComboboxContent = ComboboxContent; exports.ComboboxList = ComboboxList; exports.ComboboxItem = ComboboxItem; exports.ComboboxGroup = ComboboxGroup; exports.ComboboxLabel = ComboboxLabel; exports.ComboboxCollection = ComboboxCollection; exports.ComboboxEmpty = ComboboxEmpty; exports.ComboboxSeparator = ComboboxSeparator; exports.ComboboxChips = ComboboxChips; exports.ComboboxChip = ComboboxChip; exports.ComboboxChipsInput = ComboboxChipsInput; exports.useComboboxAnchor = useComboboxAnchor; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.Command = Command; exports.CommandDialog = CommandDialog; exports.CommandInput = CommandInput; exports.CommandList = CommandList; exports.CommandEmpty = CommandEmpty; exports.CommandGroup = CommandGroup; exports.CommandSeparator = CommandSeparator; exports.CommandItem = CommandItem; exports.CommandShortcut = CommandShortcut; exports.ConfirmDialog = ConfirmDialog; exports.ContextMenu = ContextMenu; exports.ContextMenuPortal = ContextMenuPortal; exports.ContextMenuTrigger = ContextMenuTrigger; exports.ContextMenuContent = ContextMenuContent; exports.ContextMenuGroup = ContextMenuGroup; exports.ContextMenuLabel = ContextMenuLabel; exports.ContextMenuItem = ContextMenuItem; exports.ContextMenuSub = ContextMenuSub; exports.ContextMenuSubTrigger = ContextMenuSubTrigger; exports.ContextMenuSubContent = ContextMenuSubContent; exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem; exports.ContextMenuRadioGroup = ContextMenuRadioGroup; exports.ContextMenuRadioItem = ContextMenuRadioItem; exports.ContextMenuSeparator = ContextMenuSeparator; exports.ContextMenuShortcut = ContextMenuShortcut; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerPortal = DrawerPortal; exports.DrawerClose = DrawerClose; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerFooter = DrawerFooter; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DropdownMenu = DropdownMenu; exports.DropdownMenuPortal = DropdownMenuPortal; exports.DropdownMenuTrigger = DropdownMenuTrigger; exports.DropdownMenuContent = DropdownMenuContent; exports.DropdownMenuGroup = DropdownMenuGroup; exports.DropdownMenuLabel = DropdownMenuLabel; exports.DropdownMenuItem = DropdownMenuItem; exports.DropdownMenuSub = DropdownMenuSub; exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger; exports.DropdownMenuSubContent = DropdownMenuSubContent; exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem; exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup; exports.DropdownMenuRadioItem = DropdownMenuRadioItem; exports.DropdownMenuSeparator = DropdownMenuSeparator; exports.DropdownMenuShortcut = DropdownMenuShortcut; exports.EmptyState = EmptyState; exports.Label = Label; exports.Separator = Separator; exports.FieldSet = FieldSet; exports.FieldLegend = FieldLegend; exports.FieldGroup = FieldGroup; exports.Field = Field; exports.FieldContent = FieldContent; exports.FieldLabel = FieldLabel; exports.FieldTitle = FieldTitle; exports.FieldDescription = FieldDescription; exports.FieldSeparator = FieldSeparator; exports.FieldError = FieldError; exports.Form = Form; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.InputOTP = InputOTP; exports.InputOTPGroup = InputOTPGroup; exports.InputOTPSlot = InputOTPSlot; exports.InputOTPSeparator = InputOTPSeparator; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuPositioner = NavigationMenuPositioner; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.Popover = Popover; exports.PopoverTrigger = PopoverTrigger; exports.PopoverContent = PopoverContent; exports.PopoverHeader = PopoverHeader; exports.PopoverTitle = PopoverTitle; exports.PopoverDescription = PopoverDescription; exports.Progress = Progress; exports.ProgressTrack = ProgressTrack; exports.ProgressIndicator = ProgressIndicator; exports.ProgressLabel = ProgressLabel; exports.ProgressValue = ProgressValue; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.ResizablePanelGroup = ResizablePanelGroup; exports.ResizablePanel = ResizablePanel; exports.ResizableHandle = ResizableHandle; exports.ScrollArea = ScrollArea; exports.ScrollBar = ScrollBar; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Skeleton = Skeleton; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip2; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.useSidebar = useSidebar; exports.SidebarProvider = SidebarProvider; exports.Sidebar = Sidebar; exports.SidebarTrigger = SidebarTrigger; exports.SidebarRail = SidebarRail; exports.SidebarInset = SidebarInset; exports.SidebarInput = SidebarInput; exports.SidebarHeader = SidebarHeader; exports.SidebarFooter = SidebarFooter; exports.SidebarSeparator = SidebarSeparator; exports.SidebarContent = SidebarContent; exports.SidebarGroup = SidebarGroup; exports.SidebarGroupLabel = SidebarGroupLabel; exports.SidebarGroupAction = SidebarGroupAction; exports.SidebarGroupContent = SidebarGroupContent; exports.SidebarMenu = SidebarMenu; exports.SidebarMenuItem = SidebarMenuItem; exports.SidebarMenuButton = SidebarMenuButton; exports.SidebarMenuAction = SidebarMenuAction; exports.SidebarMenuBadge = SidebarMenuBadge; exports.SidebarMenuSkeleton = SidebarMenuSkeleton; exports.SidebarMenuSub = SidebarMenuSub; exports.SidebarMenuSubItem = SidebarMenuSubItem; exports.SidebarMenuSubButton = SidebarMenuSubButton; exports.Slider = Slider; exports.Toaster = Toaster; exports.spinnerVariants = spinnerVariants; exports.Spinner = Spinner; exports.Switch = Switch; exports.Table = Table; exports.TableHeader = TableHeader; exports.TableBody = TableBody; exports.TableFooter = TableFooter; exports.TableRow = TableRow; exports.TableHead = TableHead; exports.TableCell = TableCell; exports.TableCaption = TableCaption; exports.Tabs = Tabs; exports.tabsListVariants = tabsListVariants; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.KanbanRoot = KanbanRoot; exports.KanbanBoard = KanbanBoard; exports.KanbanColumn = KanbanColumn; exports.KanbanColumnHandle = KanbanColumnHandle; exports.KanbanItem = KanbanItem; exports.KanbanItemHandle = KanbanItemHandle; exports.KanbanOverlay = KanbanOverlay; exports.Link = Link; exports.MultiSelect = MultiSelect; exports.useDebounce2 = useDebounce; exports.MultipleSelector = MultipleSelector; exports.EntityAvatar = EntityAvatar; exports.errorToast = errorToast; exports.EditableAvatar = EditableAvatar; exports.TableCellAvatar = TableCellAvatar; exports.HeaderChildrenProvider = HeaderChildrenProvider; exports.useHeaderChildren = useHeaderChildren; exports.HeaderLeftContentProvider = HeaderLeftContentProvider; exports.useHeaderLeftContent = useHeaderLeftContent; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.Header = Header; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.RoundPageContainerTitle = RoundPageContainerTitle; exports.RoundPageContainer = RoundPageContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.AllUsersListContainer = AllUsersListContainer; exports.UserContent = UserContent; exports.UserAvatar = UserAvatar; exports.UserAvatarList = UserAvatarList; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.UserSearchPopover = UserSearchPopover; exports.UserIndexDetails = UserIndexDetails; exports.UserStanadaloneDetails = UserStanadaloneDetails; exports.UserContainer = UserContainer; exports.UserIndexContainer = UserIndexContainer; exports.UsersListContainer = UsersListContainer; exports.AdminUsersList = AdminUsersList; exports.CompanyUsersList = CompanyUsersList; exports.ContributorsList = ContributorsList; exports.RelevantUsersList = RelevantUsersList; exports.RoleUsersList = RoleUsersList; exports.UserListInAdd = UserListInAdd; exports.UsersList = UsersList; exports.UsersListByContentIds = UsersListByContentIds; exports.AllowedUsersDetails = AllowedUsersDetails; exports.ErrorDetails = ErrorDetails; exports.BlockNoteEditorMentionHoverCard = BlockNoteEditorMentionHoverCard; exports.mentionDataAttrs = mentionDataAttrs; exports.parseMentionElement = parseMentionElement; exports.createMentionInlineContentSpec = createMentionInlineContentSpec; exports.useMentionInsert = useMentionInsert; exports.BlockNoteEditorMentionSuggestionMenu = BlockNoteEditorMentionSuggestionMenu; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.BlockNoteViewerContainer = BlockNoteViewerContainer; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.FormFieldWrapper = FormFieldWrapper; exports.EntityMultiSelector = EntityMultiSelector; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorDiscardDialog = CommonEditorDiscardDialog; exports.CommonEditorTrigger = CommonEditorTrigger; exports.CommonAddTrigger = CommonAddTrigger; exports.useEditorDialog = useEditorDialog; exports.EditorSheet = EditorSheet; exports.DatePickerPopover = DatePickerPopover; exports.DateRangeSelector = DateRangeSelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.CurrencyInput = CurrencyInput; exports.FormCheckbox = FormCheckbox; exports.FormBlockNote = FormBlockNote; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.PasswordInput = PasswordInput; exports.FormPassword = FormPassword; exports.FormPlaceAutocomplete = FormPlaceAutocomplete; exports.FormSelect = FormSelect; exports.FormSlider = FormSlider; exports.FormSwitch = FormSwitch; exports.FormTextarea = FormTextarea; exports.GdprConsentCheckbox = GdprConsentCheckbox; exports.FormFeatures = FormFeatures; exports.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; exports.cellDateTime = cellDateTime; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; exports.ContentListGrid = ContentListGrid; exports.ItalianFiscalData_default = ItalianFiscalData_default; exports.ItalianFiscalDataDisplay = ItalianFiscalDataDisplay; exports.parseFiscalData = parseFiscalData; exports.FiscalDataDisplay = FiscalDataDisplay; exports.GdprConsentSection = GdprConsentSection; exports.AuthContainer = AuthContainer; exports.BackupCodesDialog = BackupCodesDialog; exports.TotpInput = TotpInput; exports.DisableTwoFactorDialog = DisableTwoFactorDialog; exports.PasskeyList = PasskeyList; exports.PasskeySetupDialog = PasskeySetupDialog; exports.TotpAuthenticatorList = TotpAuthenticatorList; exports.TotpSetupDialog = TotpSetupDialog; exports.TwoFactorSettings = TwoFactorSettings; exports.SecurityContainer = SecurityContainer; exports.LandingComponent = LandingComponent; exports.AcceptInvitation = AcceptInvitation; exports.ActivateAccount = ActivateAccount; exports.Cookies = Cookies; exports.ForgotPassword = ForgotPassword; exports.Login = Login; exports.Logout = Logout; exports.RefreshUser = RefreshUser; exports.ResetPassword = ResetPassword; exports.PasskeyButton = PasskeyButton; exports.TwoFactorChallenge = TwoFactorChallenge; exports.CompanyContent = CompanyContent; exports.TokenStatusIndicator = TokenStatusIndicator; exports.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.HowToCommandViewer = HowToCommandViewer; exports.HowToCommand = HowToCommand; exports.HowToDeleter = HowToDeleter; exports.HowToMultiSelector = HowToMultiSelector; exports.HowToEditor = HowToEditor; exports.HowToProvider = HowToProvider; exports.useHowToContext = useHowToContext; exports.HowToContent = HowToContent; exports.HowToDetails = HowToDetails; exports.HowToContainer = HowToContainer; exports.HowToList = HowToList; exports.HowToListContainer = HowToListContainer; exports.HowToSelector = HowToSelector; exports.AssistantProvider = AssistantProvider; exports.useAssistantContext = useAssistantContext; exports.AssistantComposer = AssistantComposer; exports.AssistantEmptyState = AssistantEmptyState; exports.MessageSourcesPanel = MessageSourcesPanel; exports.MessageItem = MessageItem; exports.MessageList = MessageList; exports.AssistantThread = AssistantThread; exports.AssistantContainer = AssistantContainer; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.OnboardingCard = OnboardingCard; exports.ReferralCodeCapture = ReferralCodeCapture; exports.ReferralWidget = ReferralWidget; exports.ReferralDialog = ReferralDialog; exports.RoleProvider = RoleProvider; exports.useRoleContext = useRoleContext; exports.RoleDetails = RoleDetails; exports.RoleContainer = RoleContainer; exports.FormRoles = FormRoles; exports.RemoveUserFromRole = RemoveUserFromRole; exports.UserRoleAdd = UserRoleAdd; exports.useRoleTableStructure = useRoleTableStructure; exports.RolesList = RolesList; exports.UserRolesList = UserRolesList; exports.OAuthRedirectUriInput = OAuthRedirectUriInput; exports.OAuthScopeSelector = OAuthScopeSelector; exports.OAuthClientSecretDisplay = OAuthClientSecretDisplay; exports.OAuthClientCard = OAuthClientCard; exports.OAuthClientList = OAuthClientList; exports.OAuthClientForm = OAuthClientForm; exports.OAuthClientDetail = OAuthClientDetail; exports.OAuthConsentHeader = OAuthConsentHeader; exports.OAuthScopeList = OAuthScopeList; exports.OAuthConsentActions = OAuthConsentActions; exports.useOAuthConsent = useOAuthConsent; exports.OAuthConsentScreen = OAuthConsentScreen; exports.WaitlistQuestionnaireRenderer = WaitlistQuestionnaireRenderer; exports.WaitlistForm = WaitlistForm; exports.WaitlistHeroSection = WaitlistHeroSection; exports.WaitlistSuccessState = WaitlistSuccessState; exports.WaitlistConfirmation = WaitlistConfirmation; exports.WaitlistList = WaitlistList; exports.RbacProvider = RbacProvider; exports.useRbacContext = useRbacContext; exports.RbacPermissionCell = RbacPermissionCell; exports.RbacPermissionPicker = RbacPermissionPicker; exports.RbacContainer = RbacContainer; exports.RbacByRoleContainer = RbacByRoleContainer; exports.AddUserToRole = AddUserToRole; exports.UserAvatarEditor = UserAvatarEditor; exports.UserDeleter = UserDeleter; exports.UserEditor = UserEditor; exports.UserMultiSelect = UserMultiSelect; exports.UserReactivator = UserReactivator; exports.UserResentInvitationEmail = UserResentInvitationEmail; exports.UserSelector = UserSelector; exports.UserProvider = UserProvider; exports.useUserContext = useUserContext; exports.CompanyProvider = CompanyProvider; exports.useCompanyContext = useCompanyContext; exports.DEFAULT_ONBOARDING_LABELS = DEFAULT_ONBOARDING_LABELS; exports.OnboardingProvider = OnboardingProvider; exports.useOnboarding = useOnboarding; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
22979
- //# sourceMappingURL=chunk-HXU2HDRN.js.map
23108
+
23109
+ exports.JsonApiProvider = JsonApiProvider; exports.useJsonApiGet = useJsonApiGet; exports.useJsonApiMutation = useJsonApiMutation; exports.useRehydration = useRehydration; exports.useRehydrationList = useRehydrationList; exports.TableGeneratorRegistry = TableGeneratorRegistry; exports.tableGeneratorRegistry = tableGeneratorRegistry; exports.usePageUrlGenerator = usePageUrlGenerator; exports.useUrlRewriter = useUrlRewriter; exports.useDataListRetriever = useDataListRetriever; exports.useDebounce = useDebounce2; exports.registerTableGenerator = registerTableGenerator; exports.useTableGenerator = useTableGenerator; exports.computeLayeredLayout = computeLayeredLayout; exports.fitLayeredLayoutToAspectRatio = fitLayeredLayoutToAspectRatio; exports.useCustomD3Graph = useCustomD3Graph; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AlertAction = AlertAction; exports.buttonVariants = buttonVariants; exports.Button = Button; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogMedia = AlertDialogMedia; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.Avatar = Avatar; exports.AvatarImage = AvatarImage; exports.AvatarFallback = AvatarFallback; exports.AvatarBadge = AvatarBadge; exports.AvatarGroup = AvatarGroup; exports.AvatarGroupCount = AvatarGroupCount; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.Calendar = Calendar; exports.CalendarDayButton = CalendarDayButton; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardAction = CardAction; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.useCarousel = useCarousel; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger; exports.CollapsibleContent = CollapsibleContent; exports.Input = Input; exports.Textarea = Textarea; exports.InputGroup = InputGroup; exports.InputGroupAddon = InputGroupAddon; exports.InputGroupButton = InputGroupButton; exports.InputGroupText = InputGroupText; exports.InputGroupInput = InputGroupInput; exports.InputGroupTextarea = InputGroupTextarea; exports.Combobox = Combobox; exports.ComboboxValue = ComboboxValue; exports.ComboboxTrigger = ComboboxTrigger; exports.ComboboxInput = ComboboxInput; exports.ComboboxContent = ComboboxContent; exports.ComboboxList = ComboboxList; exports.ComboboxItem = ComboboxItem; exports.ComboboxGroup = ComboboxGroup; exports.ComboboxLabel = ComboboxLabel; exports.ComboboxCollection = ComboboxCollection; exports.ComboboxEmpty = ComboboxEmpty; exports.ComboboxSeparator = ComboboxSeparator; exports.ComboboxChips = ComboboxChips; exports.ComboboxChip = ComboboxChip; exports.ComboboxChipsInput = ComboboxChipsInput; exports.useComboboxAnchor = useComboboxAnchor; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.Command = Command; exports.CommandDialog = CommandDialog; exports.CommandInput = CommandInput; exports.CommandList = CommandList; exports.CommandEmpty = CommandEmpty; exports.CommandGroup = CommandGroup; exports.CommandSeparator = CommandSeparator; exports.CommandItem = CommandItem; exports.CommandShortcut = CommandShortcut; exports.ConfirmDialog = ConfirmDialog; exports.ContextMenu = ContextMenu; exports.ContextMenuPortal = ContextMenuPortal; exports.ContextMenuTrigger = ContextMenuTrigger; exports.ContextMenuContent = ContextMenuContent; exports.ContextMenuGroup = ContextMenuGroup; exports.ContextMenuLabel = ContextMenuLabel; exports.ContextMenuItem = ContextMenuItem; exports.ContextMenuSub = ContextMenuSub; exports.ContextMenuSubTrigger = ContextMenuSubTrigger; exports.ContextMenuSubContent = ContextMenuSubContent; exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem; exports.ContextMenuRadioGroup = ContextMenuRadioGroup; exports.ContextMenuRadioItem = ContextMenuRadioItem; exports.ContextMenuSeparator = ContextMenuSeparator; exports.ContextMenuShortcut = ContextMenuShortcut; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerPortal = DrawerPortal; exports.DrawerClose = DrawerClose; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerFooter = DrawerFooter; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DropdownMenu = DropdownMenu; exports.DropdownMenuPortal = DropdownMenuPortal; exports.DropdownMenuTrigger = DropdownMenuTrigger; exports.DropdownMenuContent = DropdownMenuContent; exports.DropdownMenuGroup = DropdownMenuGroup; exports.DropdownMenuLabel = DropdownMenuLabel; exports.DropdownMenuItem = DropdownMenuItem; exports.DropdownMenuSub = DropdownMenuSub; exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger; exports.DropdownMenuSubContent = DropdownMenuSubContent; exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem; exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup; exports.DropdownMenuRadioItem = DropdownMenuRadioItem; exports.DropdownMenuSeparator = DropdownMenuSeparator; exports.DropdownMenuShortcut = DropdownMenuShortcut; exports.EmptyState = EmptyState; exports.Label = Label; exports.Separator = Separator; exports.FieldSet = FieldSet; exports.FieldLegend = FieldLegend; exports.FieldGroup = FieldGroup; exports.Field = Field; exports.FieldContent = FieldContent; exports.FieldLabel = FieldLabel; exports.FieldTitle = FieldTitle; exports.FieldDescription = FieldDescription; exports.FieldSeparator = FieldSeparator; exports.FieldError = FieldError; exports.Form = Form; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.InputOTP = InputOTP; exports.InputOTPGroup = InputOTPGroup; exports.InputOTPSlot = InputOTPSlot; exports.InputOTPSeparator = InputOTPSeparator; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuPositioner = NavigationMenuPositioner; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.Popover = Popover; exports.PopoverTrigger = PopoverTrigger; exports.PopoverContent = PopoverContent; exports.PopoverHeader = PopoverHeader; exports.PopoverTitle = PopoverTitle; exports.PopoverDescription = PopoverDescription; exports.Progress = Progress; exports.ProgressTrack = ProgressTrack; exports.ProgressIndicator = ProgressIndicator; exports.ProgressLabel = ProgressLabel; exports.ProgressValue = ProgressValue; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.ResizablePanelGroup = ResizablePanelGroup; exports.ResizablePanel = ResizablePanel; exports.ResizableHandle = ResizableHandle; exports.ScrollArea = ScrollArea; exports.ScrollBar = ScrollBar; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Skeleton = Skeleton; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip2; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.useSidebar = useSidebar; exports.SidebarProvider = SidebarProvider; exports.Sidebar = Sidebar; exports.SidebarTrigger = SidebarTrigger; exports.SidebarRail = SidebarRail; exports.SidebarInset = SidebarInset; exports.SidebarInput = SidebarInput; exports.SidebarHeader = SidebarHeader; exports.SidebarFooter = SidebarFooter; exports.SidebarSeparator = SidebarSeparator; exports.SidebarContent = SidebarContent; exports.SidebarGroup = SidebarGroup; exports.SidebarGroupLabel = SidebarGroupLabel; exports.SidebarGroupAction = SidebarGroupAction; exports.SidebarGroupContent = SidebarGroupContent; exports.SidebarMenu = SidebarMenu; exports.SidebarMenuItem = SidebarMenuItem; exports.SidebarMenuButton = SidebarMenuButton; exports.SidebarMenuAction = SidebarMenuAction; exports.SidebarMenuBadge = SidebarMenuBadge; exports.SidebarMenuSkeleton = SidebarMenuSkeleton; exports.SidebarMenuSub = SidebarMenuSub; exports.SidebarMenuSubItem = SidebarMenuSubItem; exports.SidebarMenuSubButton = SidebarMenuSubButton; exports.Slider = Slider; exports.Toaster = Toaster; exports.spinnerVariants = spinnerVariants; exports.Spinner = Spinner; exports.Switch = Switch; exports.Table = Table; exports.TableHeader = TableHeader; exports.TableBody = TableBody; exports.TableFooter = TableFooter; exports.TableRow = TableRow; exports.TableHead = TableHead; exports.TableCell = TableCell; exports.TableCaption = TableCaption; exports.Tabs = Tabs; exports.tabsListVariants = tabsListVariants; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.KanbanRoot = KanbanRoot; exports.KanbanBoard = KanbanBoard; exports.KanbanColumn = KanbanColumn; exports.KanbanColumnHandle = KanbanColumnHandle; exports.KanbanItem = KanbanItem; exports.KanbanItemHandle = KanbanItemHandle; exports.KanbanOverlay = KanbanOverlay; exports.Link = Link; exports.MultiSelect = MultiSelect; exports.useDebounce2 = useDebounce; exports.MultipleSelector = MultipleSelector; exports.EntityAvatar = EntityAvatar; exports.errorToast = errorToast; exports.EditableAvatar = EditableAvatar; exports.TableCellAvatar = TableCellAvatar; exports.HeaderChildrenProvider = HeaderChildrenProvider; exports.useHeaderChildren = useHeaderChildren; exports.HeaderLeftContentProvider = HeaderLeftContentProvider; exports.useHeaderLeftContent = useHeaderLeftContent; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.Header = Header; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.partitionTabs = partitionTabs; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.RoundPageContainerTitle = RoundPageContainerTitle; exports.RoundPageContainer = RoundPageContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.AllUsersListContainer = AllUsersListContainer; exports.UserContent = UserContent; exports.UserAvatar = UserAvatar; exports.UserAvatarList = UserAvatarList; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.UserSearchPopover = UserSearchPopover; exports.UserIndexDetails = UserIndexDetails; exports.UserStanadaloneDetails = UserStanadaloneDetails; exports.UserContainer = UserContainer; exports.UserIndexContainer = UserIndexContainer; exports.UsersListContainer = UsersListContainer; exports.AdminUsersList = AdminUsersList; exports.CompanyUsersList = CompanyUsersList; exports.ContributorsList = ContributorsList; exports.RelevantUsersList = RelevantUsersList; exports.RoleUsersList = RoleUsersList; exports.UserListInAdd = UserListInAdd; exports.UsersList = UsersList; exports.UsersListByContentIds = UsersListByContentIds; exports.AllowedUsersDetails = AllowedUsersDetails; exports.ErrorDetails = ErrorDetails; exports.BlockNoteEditorMentionHoverCard = BlockNoteEditorMentionHoverCard; exports.mentionDataAttrs = mentionDataAttrs; exports.parseMentionElement = parseMentionElement; exports.createMentionInlineContentSpec = createMentionInlineContentSpec; exports.useMentionInsert = useMentionInsert; exports.BlockNoteEditorMentionSuggestionMenu = BlockNoteEditorMentionSuggestionMenu; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.BlockNoteViewerContainer = BlockNoteViewerContainer; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.FormFieldWrapper = FormFieldWrapper; exports.EntityMultiSelector = EntityMultiSelector; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorDiscardDialog = CommonEditorDiscardDialog; exports.CommonEditorTrigger = CommonEditorTrigger; exports.CommonAddTrigger = CommonAddTrigger; exports.useEditorDialog = useEditorDialog; exports.EditorSheet = EditorSheet; exports.DatePickerPopover = DatePickerPopover; exports.DateRangeSelector = DateRangeSelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.CurrencyInput = CurrencyInput; exports.FormCheckbox = FormCheckbox; exports.FormBlockNote = FormBlockNote; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.PasswordInput = PasswordInput; exports.FormPassword = FormPassword; exports.FormPlaceAutocomplete = FormPlaceAutocomplete; exports.FormSelect = FormSelect; exports.FormSlider = FormSlider; exports.FormSwitch = FormSwitch; exports.FormTextarea = FormTextarea; exports.GdprConsentCheckbox = GdprConsentCheckbox; exports.FormFeatures = FormFeatures; exports.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; exports.cellDateTime = cellDateTime; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; exports.ContentListGrid = ContentListGrid; exports.ItalianFiscalData_default = ItalianFiscalData_default; exports.ItalianFiscalDataDisplay = ItalianFiscalDataDisplay; exports.parseFiscalData = parseFiscalData; exports.FiscalDataDisplay = FiscalDataDisplay; exports.GdprConsentSection = GdprConsentSection; exports.AuthContainer = AuthContainer; exports.BackupCodesDialog = BackupCodesDialog; exports.TotpInput = TotpInput; exports.DisableTwoFactorDialog = DisableTwoFactorDialog; exports.PasskeyList = PasskeyList; exports.PasskeySetupDialog = PasskeySetupDialog; exports.TotpAuthenticatorList = TotpAuthenticatorList; exports.TotpSetupDialog = TotpSetupDialog; exports.TwoFactorSettings = TwoFactorSettings; exports.SecurityContainer = SecurityContainer; exports.LandingComponent = LandingComponent; exports.AcceptInvitation = AcceptInvitation; exports.ActivateAccount = ActivateAccount; exports.Cookies = Cookies; exports.ForgotPassword = ForgotPassword; exports.Login = Login; exports.Logout = Logout; exports.RefreshUser = RefreshUser; exports.ResetPassword = ResetPassword; exports.PasskeyButton = PasskeyButton; exports.TwoFactorChallenge = TwoFactorChallenge; exports.CompanyContent = CompanyContent; exports.TokenStatusIndicator = TokenStatusIndicator; exports.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.HowToCommandViewer = HowToCommandViewer; exports.HowToCommand = HowToCommand; exports.HowToDeleter = HowToDeleter; exports.HowToMultiSelector = HowToMultiSelector; exports.HowToEditor = HowToEditor; exports.HowToProvider = HowToProvider; exports.useHowToContext = useHowToContext; exports.HowToContent = HowToContent; exports.HowToDetails = HowToDetails; exports.HowToContainer = HowToContainer; exports.HowToList = HowToList; exports.HowToListContainer = HowToListContainer; exports.HowToSelector = HowToSelector; exports.AssistantProvider = AssistantProvider; exports.useAssistantContext = useAssistantContext; exports.AssistantComposer = AssistantComposer; exports.AssistantEmptyState = AssistantEmptyState; exports.MessageSourcesPanel = MessageSourcesPanel; exports.MessageItem = MessageItem; exports.MessageList = MessageList; exports.AssistantThread = AssistantThread; exports.AssistantContainer = AssistantContainer; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.OnboardingCard = OnboardingCard; exports.ReferralCodeCapture = ReferralCodeCapture; exports.ReferralWidget = ReferralWidget; exports.ReferralDialog = ReferralDialog; exports.RoleProvider = RoleProvider; exports.useRoleContext = useRoleContext; exports.RoleDetails = RoleDetails; exports.RoleContainer = RoleContainer; exports.FormRoles = FormRoles; exports.RemoveUserFromRole = RemoveUserFromRole; exports.UserRoleAdd = UserRoleAdd; exports.useRoleTableStructure = useRoleTableStructure; exports.RolesList = RolesList; exports.UserRolesList = UserRolesList; exports.OAuthRedirectUriInput = OAuthRedirectUriInput; exports.OAuthScopeSelector = OAuthScopeSelector; exports.OAuthClientSecretDisplay = OAuthClientSecretDisplay; exports.OAuthClientCard = OAuthClientCard; exports.OAuthClientList = OAuthClientList; exports.OAuthClientForm = OAuthClientForm; exports.OAuthClientDetail = OAuthClientDetail; exports.OAuthConsentHeader = OAuthConsentHeader; exports.OAuthScopeList = OAuthScopeList; exports.OAuthConsentActions = OAuthConsentActions; exports.useOAuthConsent = useOAuthConsent; exports.OAuthConsentScreen = OAuthConsentScreen; exports.WaitlistQuestionnaireRenderer = WaitlistQuestionnaireRenderer; exports.WaitlistForm = WaitlistForm; exports.WaitlistHeroSection = WaitlistHeroSection; exports.WaitlistSuccessState = WaitlistSuccessState; exports.WaitlistConfirmation = WaitlistConfirmation; exports.WaitlistList = WaitlistList; exports.RbacProvider = RbacProvider; exports.useRbacContext = useRbacContext; exports.RbacPermissionCell = RbacPermissionCell; exports.RbacPermissionPicker = RbacPermissionPicker; exports.RbacContainer = RbacContainer; exports.RbacByRoleContainer = RbacByRoleContainer; exports.AddUserToRole = AddUserToRole; exports.UserAvatarEditor = UserAvatarEditor; exports.UserDeleter = UserDeleter; exports.UserEditor = UserEditor; exports.UserMultiSelect = UserMultiSelect; exports.UserReactivator = UserReactivator; exports.UserResentInvitationEmail = UserResentInvitationEmail; exports.UserSelector = UserSelector; exports.UserProvider = UserProvider; exports.useUserContext = useUserContext; exports.CompanyProvider = CompanyProvider; exports.useCompanyContext = useCompanyContext; exports.DEFAULT_ONBOARDING_LABELS = DEFAULT_ONBOARDING_LABELS; exports.OnboardingProvider = OnboardingProvider; exports.useOnboarding = useOnboarding; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
23110
+ //# sourceMappingURL=chunk-M2ODDWY3.js.map