@carlonicora/nextjs-jsonapi 1.117.0 → 1.117.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) 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-CEWZCORH.js} +9 -9
  4. package/dist/{BlockNoteEditor-6UREFUSJ.js.map → BlockNoteEditor-CEWZCORH.js.map} +1 -1
  5. package/dist/{BlockNoteEditor-UQOOX3UT.mjs → BlockNoteEditor-K4T6QOJO.mjs} +2 -2
  6. package/dist/billing/index.js +299 -299
  7. package/dist/billing/index.mjs +1 -1
  8. package/dist/{chunk-HXU2HDRN.js → chunk-56QAXZKI.js} +245 -237
  9. package/dist/chunk-56QAXZKI.js.map +1 -0
  10. package/dist/{chunk-SVEPL5J2.mjs → chunk-6D4GJHLK.mjs} +16 -8
  11. package/dist/chunk-6D4GJHLK.mjs.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 +1 -1
  15. package/dist/components/index.d.ts +1 -1
  16. package/dist/components/index.js +2 -2
  17. package/dist/components/index.mjs +1 -1
  18. package/dist/contexts/index.d.mts +1 -1
  19. package/dist/contexts/index.d.ts +1 -1
  20. package/dist/contexts/index.js +2 -2
  21. package/dist/contexts/index.mjs +1 -1
  22. package/dist/core/index.d.mts +2 -2
  23. package/dist/core/index.d.ts +2 -2
  24. package/dist/features/help/index.js +30 -30
  25. package/dist/features/help/index.mjs +1 -1
  26. package/dist/index.d.mts +1 -1
  27. package/dist/index.d.ts +1 -1
  28. package/package.json +1 -1
  29. package/src/components/navigations/Breadcrumb.tsx +31 -5
  30. package/src/hooks/useSocket.ts +12 -1
  31. package/src/interfaces/breadcrumb.item.data.interface.ts +1 -0
  32. package/dist/chunk-HXU2HDRN.js.map +0 -1
  33. package/dist/chunk-SVEPL5J2.mjs.map +0 -1
  34. /package/dist/{BlockNoteEditor-UQOOX3UT.mjs.map → BlockNoteEditor-K4T6QOJO.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) {
@@ -9293,7 +9301,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
9293
9301
  }, []);
9294
9302
  const [prevRange, setPrevRange] = _react.useState.call(void 0, date);
9295
9303
  _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())) {
9304
+ 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
9305
  onDateChange(date);
9298
9306
  setPrevRange(date);
9299
9307
  setOpen(false);
@@ -9304,7 +9312,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
9304
9312
  setDate(void 0);
9305
9313
  return;
9306
9314
  }
9307
- if (range.from && (!_optionalChain([date, 'optionalAccess', _263 => _263.from]) || range.from.getTime() !== date.from.getTime())) {
9315
+ if (range.from && (!_optionalChain([date, 'optionalAccess', _267 => _267.from]) || range.from.getTime() !== date.from.getTime())) {
9308
9316
  setDate({ from: range.from, to: void 0 });
9309
9317
  } else {
9310
9318
  setDate(range);
@@ -9319,7 +9327,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
9319
9327
  className: _chunkS2PTWBN6js.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
9320
9328
  children: [
9321
9329
  /* @__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: [
9330
+ _optionalChain([date, 'optionalAccess', _268 => _268.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
9323
9331
  _datefns.format.call(void 0, date.from, "LLL dd, y"),
9324
9332
  " - ",
9325
9333
  _datefns.format.call(void 0, date.to, "LLL dd, y")
@@ -9342,7 +9350,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
9342
9350
  ),
9343
9351
  children: [
9344
9352
  /* @__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: [
9353
+ _optionalChain([date, 'optionalAccess', _269 => _269.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
9346
9354
  _datefns.format.call(void 0, date.from, "LLL dd, y"),
9347
9355
  " - ",
9348
9356
  _datefns.format.call(void 0, date.to, "LLL dd, y")
@@ -9355,7 +9363,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
9355
9363
  Calendar,
9356
9364
  {
9357
9365
  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))),
9366
+ defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess', _270 => _270.from]), () => ( (showPreviousMonth ? new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 1) : void 0))),
9359
9367
  selected: date,
9360
9368
  onSelect: handleSelect,
9361
9369
  numberOfMonths: 2
@@ -9443,7 +9451,7 @@ var FileUploader = _react.forwardRef.call(void 0,
9443
9451
  movePrev();
9444
9452
  } else if (e.key === "Enter" || e.key === "Space") {
9445
9453
  if (activeIndex === -1) {
9446
- _optionalChain([dropzoneState, 'access', _267 => _267.inputRef, 'access', _268 => _268.current, 'optionalAccess', _269 => _269.click, 'call', _270 => _270()]);
9454
+ _optionalChain([dropzoneState, 'access', _271 => _271.inputRef, 'access', _272 => _272.current, 'optionalAccess', _273 => _273.click, 'call', _274 => _274()]);
9447
9455
  }
9448
9456
  } else if (e.key === "Delete" || e.key === "Backspace") {
9449
9457
  if (activeIndex !== -1) {
@@ -9481,13 +9489,13 @@ var FileUploader = _react.forwardRef.call(void 0,
9481
9489
  onValueChange(newValues);
9482
9490
  if (rejectedFiles.length > 0) {
9483
9491
  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") {
9492
+ if (_optionalChain([rejectedFiles, 'access', _275 => _275[i], 'access', _276 => _276.errors, 'access', _277 => _277[0], 'optionalAccess', _278 => _278.code]) === "file-too-large") {
9485
9493
  _chunkS2PTWBN6js.showError.call(void 0, t("common.errors.file"), {
9486
9494
  description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
9487
9495
  });
9488
9496
  break;
9489
9497
  }
9490
- if (_optionalChain([rejectedFiles, 'access', _275 => _275[i], 'access', _276 => _276.errors, 'access', _277 => _277[0], 'optionalAccess', _278 => _278.message])) {
9498
+ if (_optionalChain([rejectedFiles, 'access', _279 => _279[i], 'access', _280 => _280.errors, 'access', _281 => _281[0], 'optionalAccess', _282 => _282.message])) {
9491
9499
  _chunkS2PTWBN6js.showError.call(void 0, t(`common.errors.file`), {
9492
9500
  description: rejectedFiles[i].errors[0].message
9493
9501
  });
@@ -9786,7 +9794,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, FormCheckbox, "FormCheckbox");
9786
9794
  var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
9787
9795
 
9788
9796
 
9789
- var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-6UREFUSJ.js"))), {
9797
+ var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-CEWZCORH.js"))), {
9790
9798
  ssr: false
9791
9799
  });
9792
9800
  var BlockNoteEditorContainer = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
@@ -9851,7 +9859,7 @@ function FormBlockNote({
9851
9859
  onChange: (content, isEmpty) => {
9852
9860
  lastEditorContentRef.current = content;
9853
9861
  field.onChange(content);
9854
- _optionalChain([onEmptyChange, 'optionalCall', _279 => _279(isEmpty)]);
9862
+ _optionalChain([onEmptyChange, 'optionalCall', _283 => _283(isEmpty)]);
9855
9863
  },
9856
9864
  placeholder,
9857
9865
  bordered: true,
@@ -10450,11 +10458,11 @@ function FormPlaceAutocomplete({
10450
10458
  const data = await response.json();
10451
10459
  if (data.suggestions) {
10452
10460
  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]) || "",
10461
+ place_id: _optionalChain([suggestion, 'access', _284 => _284.placePrediction, 'optionalAccess', _285 => _285.placeId]) || "",
10462
+ description: _optionalChain([suggestion, 'access', _286 => _286.placePrediction, 'optionalAccess', _287 => _287.text, 'optionalAccess', _288 => _288.text]) || "",
10455
10463
  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]) || ""
10464
+ main_text: _optionalChain([suggestion, 'access', _289 => _289.placePrediction, 'optionalAccess', _290 => _290.structuredFormat, 'optionalAccess', _291 => _291.mainText, 'optionalAccess', _292 => _292.text]) || "",
10465
+ secondary_text: _optionalChain([suggestion, 'access', _293 => _293.placePrediction, 'optionalAccess', _294 => _294.structuredFormat, 'optionalAccess', _295 => _295.secondaryText, 'optionalAccess', _296 => _296.text]) || ""
10458
10466
  }
10459
10467
  }));
10460
10468
  setSuggestions(formattedSuggestions);
@@ -10601,8 +10609,8 @@ function FormPlaceAutocomplete({
10601
10609
  className: "hover:bg-muted cursor-pointer px-3 py-2 text-sm",
10602
10610
  onClick: () => handleSuggestionSelect(suggestion),
10603
10611
  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]) })
10612
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _297 => _297.structured_formatting, 'optionalAccess', _298 => _298.main_text]) }),
10613
+ /* @__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
10614
  ]
10607
10615
  },
10608
10616
  suggestion.place_id || index
@@ -10650,7 +10658,7 @@ function FormSelect({
10650
10658
  disabled,
10651
10659
  "data-testid": testId,
10652
10660
  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, () => ( "")) }) }),
10661
+ /* @__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
10662
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SelectContent, { children: [
10655
10663
  allowEmpty && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: EMPTY_VALUE, className: "text-muted-foreground", children: _nullishCoalesce(placeholder, () => ( "")) }),
10656
10664
  values.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: type.id, children: type.text }, type.id))
@@ -10837,7 +10845,7 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
10837
10845
  }, "getInitials");
10838
10846
  const getAvatar = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
10839
10847
  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]) }),
10848
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _304 => _304.avatar]) }),
10841
10849
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: getInitials3(user.name) })
10842
10850
  ] }) });
10843
10851
  }, "getAvatar");
@@ -11028,7 +11036,7 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
11028
11036
  })
11029
11037
  };
11030
11038
  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);
11039
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _305 => _305[field], 'optionalCall', _306 => _306()])).filter((col) => col !== void 0);
11032
11040
  }, [params.fields, fieldColumnMap, t, generateUrl]);
11033
11041
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
11034
11042
  }, "useUserTableStructure");
@@ -11142,10 +11150,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
11142
11150
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
11143
11151
  /* @__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
11152
  /* @__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" })
11153
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _307 => _307.value, 'optionalAccess', _308 => _308.avatar]) }),
11154
+ /* @__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
11155
  ] }) }),
11148
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _313 => _313.value, 'optionalAccess', _314 => _314.name]), () => ( "")) })
11156
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _317 => _317.value, 'optionalAccess', _318 => _318.name]), () => ( "")) })
11149
11157
  ] }) : /* @__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
11158
  field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11151
11159
  _lucidereact.CircleX,
@@ -11476,7 +11484,7 @@ function CompanyUsersList({ isDeleted, fullWidth }) {
11476
11484
  const data = useDataListRetriever({
11477
11485
  ready: !!company,
11478
11486
  retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkS2PTWBN6js.UserService.findAllUsers(params), "retriever"),
11479
- retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _315 => _315.id]), isDeleted },
11487
+ retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _319 => _319.id]), isDeleted },
11480
11488
  module: _chunkS2PTWBN6js.Modules.User
11481
11489
  });
11482
11490
  _react.useEffect.call(void 0, () => {
@@ -11583,11 +11591,11 @@ function UserListInAdd({ data, existingUsers, setSelectedUser, setLevelOpen }) {
11583
11591
  className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
11584
11592
  onClick: (_e) => {
11585
11593
  setSelectedUser(user);
11586
- _optionalChain([setLevelOpen, 'optionalCall', _316 => _316(true)]);
11594
+ _optionalChain([setLevelOpen, 'optionalCall', _320 => _320(true)]);
11587
11595
  },
11588
11596
  onSelect: (_e) => {
11589
11597
  setSelectedUser(user);
11590
- _optionalChain([setLevelOpen, 'optionalCall', _317 => _317(true)]);
11598
+ _optionalChain([setLevelOpen, 'optionalCall', _321 => _321(true)]);
11591
11599
  },
11592
11600
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between px-4 py-1", children: [
11593
11601
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user }),
@@ -11718,7 +11726,7 @@ function CompanyContent({ company, actions }) {
11718
11726
  company.legal_address
11719
11727
  ] }),
11720
11728
  /* @__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: [
11729
+ _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
11730
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
11723
11731
  t("features.configuration.country"),
11724
11732
  ":"
@@ -11726,7 +11734,7 @@ function CompanyContent({ company, actions }) {
11726
11734
  " ",
11727
11735
  company.configurations.country
11728
11736
  ] }),
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: [
11737
+ _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
11738
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
11731
11739
  t("features.configuration.currency"),
11732
11740
  ":"
@@ -12136,7 +12144,7 @@ function CompanyEditorInternal({
12136
12144
  const t = _nextintl.useTranslations.call(void 0, );
12137
12145
  const fiscalRef = _react.useRef.call(void 0, null);
12138
12146
  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";
12147
+ 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
12148
  const handleDialogOpenChange = _react.useCallback.call(void 0,
12141
12149
  (open) => {
12142
12150
  if (open && features.length === 0 && canAccessFeatures) {
@@ -12151,7 +12159,7 @@ function CompanyEditorInternal({
12151
12159
  _chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
12152
12160
  fetchFeatures();
12153
12161
  }
12154
- _optionalChain([onDialogOpenChange, 'optionalCall', _326 => _326(open)]);
12162
+ _optionalChain([onDialogOpenChange, 'optionalCall', _330 => _330(open)]);
12155
12163
  },
12156
12164
  [features.length, canAccessFeatures, hasRole, onDialogOpenChange]
12157
12165
  );
@@ -12196,12 +12204,12 @@ function CompanyEditorInternal({
12196
12204
  );
12197
12205
  const getDefaultValues = _react.useCallback.call(void 0, () => {
12198
12206
  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]) || ""
12207
+ id: _optionalChain([company, 'optionalAccess', _331 => _331.id]) || _uuid.v4.call(void 0, ),
12208
+ name: _optionalChain([company, 'optionalAccess', _332 => _332.name]) || "",
12209
+ featureIds: _optionalChain([company, 'optionalAccess', _333 => _333.features, 'access', _334 => _334.map, 'call', _335 => _335((feature) => feature.id)]) || [],
12210
+ moduleIds: _optionalChain([company, 'optionalAccess', _336 => _336.modules, 'access', _337 => _337.map, 'call', _338 => _338((module) => module.id)]) || [],
12211
+ logo: _optionalChain([company, 'optionalAccess', _339 => _339.logo]) || "",
12212
+ legal_address: _optionalChain([company, 'optionalAccess', _340 => _340.legal_address]) || ""
12205
12213
  };
12206
12214
  }, [company]);
12207
12215
  const form = _reacthookform.useForm.call(void 0, {
@@ -12213,7 +12221,7 @@ function CompanyEditorInternal({
12213
12221
  {
12214
12222
  form,
12215
12223
  entityType: t(`entities.companies`, { count: 1 }),
12216
- entityName: _optionalChain([company, 'optionalAccess', _337 => _337.name]),
12224
+ entityName: _optionalChain([company, 'optionalAccess', _341 => _341.name]),
12217
12225
  isEdit: !!company,
12218
12226
  module: _chunkS2PTWBN6js.Modules.Company,
12219
12227
  propagateChanges,
@@ -12238,7 +12246,7 @@ function CompanyEditorInternal({
12238
12246
  throw new Error("Fiscal data validation failed");
12239
12247
  }
12240
12248
  const payload = {
12241
- id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _338 => _338.id]), () => ( _uuid.v4.call(void 0, ))),
12249
+ id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _342 => _342.id]), () => ( _uuid.v4.call(void 0, ))),
12242
12250
  name: values.name,
12243
12251
  logo: files && contentType ? values.logo : void 0,
12244
12252
  featureIds: values.featureIds,
@@ -12269,10 +12277,10 @@ function CompanyEditorInternal({
12269
12277
  dialogOpen,
12270
12278
  onDialogOpenChange: handleDialogOpenChange,
12271
12279
  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,
12280
+ /* @__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
12281
  _image2.default,
12274
12282
  {
12275
- src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _340 => _340.logo]) || "",
12283
+ src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _344 => _344.logo]) || "",
12276
12284
  alt: "Company Logo",
12277
12285
  width: 200,
12278
12286
  height: 200
@@ -12306,7 +12314,7 @@ function CompanyEditorInternal({
12306
12314
  }
12307
12315
  ),
12308
12316
  /* @__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])) })
12317
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItalianFiscalData_default, { ref: fiscalRef, initialData: parseFiscalData(_optionalChain([company, 'optionalAccess', _345 => _345.fiscal_data])) })
12310
12318
  ] }),
12311
12319
  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
12320
  ] })
@@ -12423,7 +12431,7 @@ function NotificationToast(notification, t, generateUrl, reouter) {
12423
12431
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
12424
12432
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
12425
12433
  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]), () => ( "")),
12434
+ actor: _nullishCoalesce(_optionalChain([data, 'access', _346 => _346.actor, 'optionalAccess', _347 => _347.name]), () => ( "")),
12427
12435
  title: data.title,
12428
12436
  message: _nullishCoalesce(notification.message, () => ( ""))
12429
12437
  }) }),
@@ -12452,7 +12460,7 @@ function NotificationMenuItem({ notification, closePopover }) {
12452
12460
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
12453
12461
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
12454
12462
  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]), () => ( "")),
12463
+ actor: _nullishCoalesce(_optionalChain([data, 'access', _348 => _348.actor, 'optionalAccess', _349 => _349.name]), () => ( "")),
12456
12464
  title: data.title,
12457
12465
  message: _nullishCoalesce(notification.message, () => ( ""))
12458
12466
  }) }),
@@ -12516,7 +12524,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
12516
12524
  _react.useEffect.call(void 0, () => {
12517
12525
  if (hasInitiallyLoaded || !currentUser) return;
12518
12526
  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)]);
12527
+ 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
12528
  if (isAdmin) {
12521
12529
  setHasInitiallyLoaded(true);
12522
12530
  return;
@@ -12718,7 +12726,7 @@ function OnboardingProvider({
12718
12726
  let tourSteps = steps;
12719
12727
  if (!tourSteps) {
12720
12728
  const tour2 = tours.find((t) => t.id === tourId);
12721
- tourSteps = _optionalChain([tour2, 'optionalAccess', _349 => _349.steps]);
12729
+ tourSteps = _optionalChain([tour2, 'optionalAccess', _353 => _353.steps]);
12722
12730
  }
12723
12731
  if (!tourSteps || tourSteps.length === 0) {
12724
12732
  console.warn(`No steps found for tour: ${tourId}`);
@@ -12786,10 +12794,10 @@ function OnboardingProvider({
12786
12794
  when: {
12787
12795
  show: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
12788
12796
  setCurrentStepIndex(index);
12789
- _optionalChain([stepConfig, 'access', _350 => _350.onShow, 'optionalCall', _351 => _351()]);
12797
+ _optionalChain([stepConfig, 'access', _354 => _354.onShow, 'optionalCall', _355 => _355()]);
12790
12798
  }, "show"),
12791
12799
  hide: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
12792
- _optionalChain([stepConfig, 'access', _352 => _352.onHide, 'optionalCall', _353 => _353()]);
12800
+ _optionalChain([stepConfig, 'access', _356 => _356.onHide, 'optionalCall', _357 => _357()]);
12793
12801
  }, "hide")
12794
12802
  }
12795
12803
  });
@@ -12955,7 +12963,7 @@ function HowToMultiSelector({
12955
12963
  retriever: (params) => _chunkS2PTWBN6js.HowToService.findMany(params),
12956
12964
  module: _chunkS2PTWBN6js.Modules.HowTo,
12957
12965
  getLabel: (howTo) => howTo.name,
12958
- excludeId: _optionalChain([currentHowTo, 'optionalAccess', _354 => _354.id]),
12966
+ excludeId: _optionalChain([currentHowTo, 'optionalAccess', _358 => _358.id]),
12959
12967
  onChange
12960
12968
  }
12961
12969
  );
@@ -13063,17 +13071,17 @@ function HowToEditorInternal({
13063
13071
  );
13064
13072
  const getDefaultValues = _react.useCallback.call(void 0,
13065
13073
  () => ({
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)),
13074
+ id: _optionalChain([howTo, 'optionalAccess', _359 => _359.id]) || _uuid.v4.call(void 0, ),
13075
+ name: _optionalChain([howTo, 'optionalAccess', _360 => _360.name]) || "",
13076
+ description: _optionalChain([howTo, 'optionalAccess', _361 => _361.description]) || [],
13077
+ pages: _chunkS2PTWBN6js.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess', _362 => _362.pages])),
13078
+ howToType: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _363 => _363.howToType]), () => ( "how-to")),
13079
+ slug: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _364 => _364.slug]), () => ( "")),
13080
+ order: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _365 => _365.order]), () => ( 0)),
13081
+ summary: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _366 => _366.summary]), () => ( "")),
13082
+ tags: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _367 => _367.tags]), () => ( []))).join(", "),
13083
+ contextualKeys: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _368 => _368.contextualKeys]), () => ( []))).join(", "),
13084
+ draft: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _369 => _369.draft]), () => ( false)),
13077
13085
  relatedArticles: []
13078
13086
  }),
13079
13087
  [howTo]
@@ -13084,7 +13092,7 @@ function HowToEditorInternal({
13084
13092
  });
13085
13093
  const initialRelatedIds = _react.useRef.call(void 0, []);
13086
13094
  _react.useEffect.call(void 0, () => {
13087
- if (!_optionalChain([howTo, 'optionalAccess', _366 => _366.howToType]) || !_optionalChain([howTo, 'optionalAccess', _367 => _367.slug])) return;
13095
+ if (!_optionalChain([howTo, 'optionalAccess', _370 => _370.howToType]) || !_optionalChain([howTo, 'optionalAccess', _371 => _371.slug])) return;
13088
13096
  let active = true;
13089
13097
  _chunkS2PTWBN6js.HowToService.findRelated({ howToType: howTo.howToType, slug: howTo.slug }).then((list) => {
13090
13098
  if (!active) return;
@@ -13123,7 +13131,7 @@ function HowToEditorInternal({
13123
13131
  {
13124
13132
  form,
13125
13133
  entityType: t(`entities.howtos`, { count: 1 }),
13126
- entityName: _optionalChain([howTo, 'optionalAccess', _368 => _368.name]),
13134
+ entityName: _optionalChain([howTo, 'optionalAccess', _372 => _372.name]),
13127
13135
  isEdit: !!howTo,
13128
13136
  module: _chunkS2PTWBN6js.Modules.HowTo,
13129
13137
  propagateChanges,
@@ -13504,7 +13512,7 @@ function withPatchedTitle(source, title) {
13504
13512
  return _chunkS2PTWBN6js.rehydrate.call(void 0, _chunkS2PTWBN6js.Modules.Assistant, {
13505
13513
  jsonApi: {
13506
13514
  ...dehydrated.jsonApi,
13507
- attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _369 => _369.jsonApi, 'optionalAccess', _370 => _370.attributes]), () => ( {})), title }
13515
+ attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _373 => _373.jsonApi, 'optionalAccess', _374 => _374.attributes]), () => ( {})), title }
13508
13516
  },
13509
13517
  included: dehydrated.included
13510
13518
  });
@@ -13525,7 +13533,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
13525
13533
  const [status, setStatus] = _react.useState.call(void 0, void 0);
13526
13534
  const [failedMessageIds, setFailedMessageIds] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
13527
13535
  const [operatorMode, setOperatorMode] = _react.useState.call(void 0,
13528
- () => _optionalChain([dehydratedAssistant, 'optionalAccess', _371 => _371.jsonApi, 'optionalAccess', _372 => _372.attributes, 'optionalAccess', _373 => _373.engine]) === "operator"
13536
+ () => _optionalChain([dehydratedAssistant, 'optionalAccess', _375 => _375.jsonApi, 'optionalAccess', _376 => _376.attributes, 'optionalAccess', _377 => _377.engine]) === "operator"
13529
13537
  );
13530
13538
  const { socket } = useSocketContext();
13531
13539
  const sendMessage = _react.useCallback.call(void 0,
@@ -13534,7 +13542,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
13534
13542
  if (!trimmed) return;
13535
13543
  const optimistic = _chunkS2PTWBN6js.AssistantMessage.buildOptimistic({
13536
13544
  content: trimmed,
13537
- assistantId: _optionalChain([assistant, 'optionalAccess', _374 => _374.id]),
13545
+ assistantId: _optionalChain([assistant, 'optionalAccess', _378 => _378.id]),
13538
13546
  position: nextPosition(messages)
13539
13547
  });
13540
13548
  setMessages((prev) => [...prev, optimistic]);
@@ -13544,13 +13552,13 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
13544
13552
  if (assistant && payload.assistantId && payload.assistantId !== assistant.id) return;
13545
13553
  if (typeof payload.status === "string") setStatus(payload.status);
13546
13554
  }, "handler");
13547
- _optionalChain([socket, 'optionalAccess', _375 => _375.on, 'call', _376 => _376("assistant:status", handler)]);
13555
+ _optionalChain([socket, 'optionalAccess', _379 => _379.on, 'call', _380 => _380("assistant:status", handler)]);
13548
13556
  try {
13549
13557
  if (!assistant) {
13550
13558
  const input = {
13551
13559
  firstMessage: trimmed,
13552
- howToMode: _optionalChain([opts, 'optionalAccess', _377 => _377.howToMode]),
13553
- limitToHowToId: _optionalChain([opts, 'optionalAccess', _378 => _378.limitToHowToId])
13560
+ howToMode: _optionalChain([opts, 'optionalAccess', _381 => _381.howToMode]),
13561
+ limitToHowToId: _optionalChain([opts, 'optionalAccess', _382 => _382.limitToHowToId])
13554
13562
  };
13555
13563
  const created = operatorMode ? await _chunkS2PTWBN6js.AssistantService.createOperator(input) : await _chunkS2PTWBN6js.AssistantService.create(input);
13556
13564
  const msgs = await _chunkS2PTWBN6js.AssistantMessageService.findByAssistant({ assistantId: created.id });
@@ -13567,8 +13575,8 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
13567
13575
  }) : await _chunkS2PTWBN6js.AssistantService.appendMessage({
13568
13576
  assistantId: assistant.id,
13569
13577
  content: trimmed,
13570
- howToMode: _optionalChain([opts, 'optionalAccess', _379 => _379.howToMode]),
13571
- limitToHowToId: _optionalChain([opts, 'optionalAccess', _380 => _380.limitToHowToId])
13578
+ howToMode: _optionalChain([opts, 'optionalAccess', _383 => _383.howToMode]),
13579
+ limitToHowToId: _optionalChain([opts, 'optionalAccess', _384 => _384.limitToHowToId])
13572
13580
  });
13573
13581
  setMessages((prev) => [...stripOptimistic(prev), ...result]);
13574
13582
  }
@@ -13579,7 +13587,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
13579
13587
  return next;
13580
13588
  });
13581
13589
  } finally {
13582
- _optionalChain([socket, 'optionalAccess', _381 => _381.off, 'call', _382 => _382("assistant:status", handler)]);
13590
+ _optionalChain([socket, 'optionalAccess', _385 => _385.off, 'call', _386 => _386("assistant:status", handler)]);
13583
13591
  setSending(false);
13584
13592
  setStatus(void 0);
13585
13593
  }
@@ -13637,7 +13645,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
13637
13645
  await _chunkS2PTWBN6js.AssistantService.delete({ id });
13638
13646
  setThreads((prev) => prev.filter((t2) => t2.id !== id));
13639
13647
  setAssistant((prev) => {
13640
- if (_optionalChain([prev, 'optionalAccess', _383 => _383.id]) === id) {
13648
+ if (_optionalChain([prev, 'optionalAccess', _387 => _387.id]) === id) {
13641
13649
  setMessages([]);
13642
13650
  return void 0;
13643
13651
  }
@@ -13857,7 +13865,7 @@ function EditableAvatar({
13857
13865
  }, [image, isUploading, patchImage, t]);
13858
13866
  const handleFileInputChange = _react.useCallback.call(void 0,
13859
13867
  (e) => {
13860
- const file = _optionalChain([e, 'access', _384 => _384.target, 'access', _385 => _385.files, 'optionalAccess', _386 => _386[0]]);
13868
+ const file = _optionalChain([e, 'access', _388 => _388.target, 'access', _389 => _389.files, 'optionalAccess', _390 => _390[0]]);
13861
13869
  if (file) handleFile(file);
13862
13870
  e.target.value = "";
13863
13871
  },
@@ -13866,7 +13874,7 @@ function EditableAvatar({
13866
13874
  const handleDrop = _react.useCallback.call(void 0,
13867
13875
  (e) => {
13868
13876
  e.preventDefault();
13869
- const file = _optionalChain([e, 'access', _387 => _387.dataTransfer, 'access', _388 => _388.files, 'optionalAccess', _389 => _389[0]]);
13877
+ const file = _optionalChain([e, 'access', _391 => _391.dataTransfer, 'access', _392 => _392.files, 'optionalAccess', _393 => _393[0]]);
13870
13878
  if (file && file.type.startsWith("image/")) {
13871
13879
  handleFile(file);
13872
13880
  }
@@ -13893,7 +13901,7 @@ function EditableAvatar({
13893
13901
  "button",
13894
13902
  {
13895
13903
  type: "button",
13896
- onClick: () => _optionalChain([fileInputRef, 'access', _390 => _390.current, 'optionalAccess', _391 => _391.click, 'call', _392 => _392()]),
13904
+ onClick: () => _optionalChain([fileInputRef, 'access', _394 => _394.current, 'optionalAccess', _395 => _395.click, 'call', _396 => _396()]),
13897
13905
  disabled: isUploading,
13898
13906
  className: "rounded-full p-2 text-white hover:bg-white/20 disabled:opacity-50",
13899
13907
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PencilIcon, { className: "h-4 w-4" })
@@ -13943,19 +13951,19 @@ function BreadcrumbDesktop({
13943
13951
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: `/` }), children: t(`common.home`) }) }),
13944
13952
  items.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbSeparator, {}),
13945
13953
  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 }) }),
13954
+ /* @__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
13955
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbSeparator, {}),
13948
13956
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenu, { open, onOpenChange: setOpen, children: [
13949
13957
  /* @__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)) })
13958
+ /* @__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
13959
  ] }) }),
13952
13960
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbSeparator, {}),
13953
13961
  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 }) }),
13962
+ /* @__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
13963
  index < items.slice(-ITEMS_TO_DISPLAY + 2).length - 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbSeparator, {})
13956
13964
  ] }, index))
13957
13965
  ] }) : /* @__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 }) }),
13966
+ /* @__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
13967
  index < items.length - 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbSeparator, {})
13960
13968
  ] }, index)) })
13961
13969
  ] }) });
@@ -13974,10 +13982,10 @@ function BreadcrumbMobile({
13974
13982
  }
13975
13983
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenu, { open, onOpenChange: setOpen, children: [
13976
13984
  /* @__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]),
13985
+ _optionalChain([lastItem, 'optionalAccess', _397 => _397.name]),
13978
13986
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: "text-muted-foreground size-3.5" })
13979
13987
  ] }),
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)) })
13988
+ /* @__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
13989
  ] });
13982
13990
  }
13983
13991
  _chunk7QVYU63Ejs.__name.call(void 0, BreadcrumbMobile, "BreadcrumbMobile");
@@ -14279,7 +14287,7 @@ function RoundPageContainer({
14279
14287
  const [mounted, setMounted] = _react.useState.call(void 0, false);
14280
14288
  _react.useEffect.call(void 0, () => {
14281
14289
  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);
14290
+ if (_optionalChain([match, 'optionalAccess', _398 => _398.split, 'call', _399 => _399("="), 'access', _400 => _400[1]]) === "true") setShowDetailsState(true);
14283
14291
  }, []);
14284
14292
  _react.useEffect.call(void 0, () => {
14285
14293
  setMounted(true);
@@ -14291,11 +14299,11 @@ function RoundPageContainer({
14291
14299
  const searchParams = _navigation.useSearchParams.call(void 0, );
14292
14300
  const section = searchParams.get("section");
14293
14301
  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;
14302
+ const initialValue = tabs ? (section && tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access', _401 => _401.key, 'optionalAccess', _402 => _402.name]), () => ( i.label))) === section) ? section : null) || (_nullishCoalesce(_optionalChain([tabs, 'access', _403 => _403[0], 'access', _404 => _404.key, 'optionalAccess', _405 => _405.name]), () => ( tabs[0].label))) : void 0;
14295
14303
  const [activeTab, setActiveTab] = _react.useState.call(void 0, initialValue);
14296
14304
  _react.useEffect.call(void 0, () => {
14297
14305
  if (tabs && section) {
14298
- const tab = tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access', _402 => _402.key, 'optionalAccess', _403 => _403.name]), () => ( i.label))) === section);
14306
+ const tab = tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access', _406 => _406.key, 'optionalAccess', _407 => _407.name]), () => ( i.label))) === section);
14299
14307
  if (tab) {
14300
14308
  setActiveTab(section);
14301
14309
  }
@@ -14308,7 +14316,7 @@ function RoundPageContainer({
14308
14316
  },
14309
14317
  [module, id, rewriteUrl]
14310
14318
  );
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;
14319
+ const activeFillHeight = _optionalChain([tabs, 'optionalAccess', _408 => _408.find, 'call', _409 => _409((t) => (_nullishCoalesce(_optionalChain([t, 'access', _410 => _410.key, 'optionalAccess', _411 => _411.name]), () => ( t.label))) === activeTab), 'optionalAccess', _412 => _412.fillHeight]) === true;
14312
14320
  const isReady = mounted && isMobile !== void 0;
14313
14321
  if (!isReady) {
14314
14322
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
@@ -14366,10 +14374,10 @@ function RoundPageContainer({
14366
14374
  },
14367
14375
  children: [
14368
14376
  /* @__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)) })
14377
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectContent, { children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: _nullishCoalesce(_optionalChain([tab, 'access', _413 => _413.key, 'optionalAccess', _414 => _414.name]), () => ( tab.label)), children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) })
14370
14378
  ]
14371
14379
  }
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)) }) }),
14380
+ ) }) : /* @__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', _415 => _415.key, 'optionalAccess', _416 => _416.name]), () => ( tab.label)), className: "px-4", children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) }) }),
14373
14381
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14374
14382
  "div",
14375
14383
  {
@@ -14381,7 +14389,7 @@ function RoundPageContainer({
14381
14389
  children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14382
14390
  TabsContent,
14383
14391
  {
14384
- value: _nullishCoalesce(_optionalChain([tab, 'access', _413 => _413.key, 'optionalAccess', _414 => _414.name]), () => ( tab.label)),
14392
+ value: _nullishCoalesce(_optionalChain([tab, 'access', _417 => _417.key, 'optionalAccess', _418 => _418.name]), () => ( tab.label)),
14385
14393
  className: tab.fillHeight ? `flex flex-1 min-h-0 w-full flex-col` : `pb-20`,
14386
14394
  children: tab.content
14387
14395
  },
@@ -14510,14 +14518,14 @@ function BlockNoteEditorMentionHoverCard({
14510
14518
  const entityType = target.dataset.mentionType;
14511
14519
  const alias = target.dataset.mentionAlias;
14512
14520
  setHovered((prev) => {
14513
- if (_optionalChain([prev, 'optionalAccess', _415 => _415.id]) === id && _optionalChain([prev, 'optionalAccess', _416 => _416.element]) === target) return prev;
14521
+ if (_optionalChain([prev, 'optionalAccess', _419 => _419.id]) === id && _optionalChain([prev, 'optionalAccess', _420 => _420.element]) === target) return prev;
14514
14522
  return { id, entityType, alias, element: target };
14515
14523
  });
14516
14524
  }, "handleMouseOver");
14517
14525
  const handleMouseOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
14518
14526
  const target = e.target.closest("[data-mention-id]");
14519
14527
  if (!target) return;
14520
- const related = _optionalChain([e, 'access', _417 => _417.relatedTarget, 'optionalAccess', _418 => _418.closest, 'call', _419 => _419("[data-mention-id]")]);
14528
+ const related = _optionalChain([e, 'access', _421 => _421.relatedTarget, 'optionalAccess', _422 => _422.closest, 'call', _423 => _423("[data-mention-id]")]);
14521
14529
  if (related) return;
14522
14530
  scheduleClose();
14523
14531
  }, "handleMouseOut");
@@ -14531,7 +14539,7 @@ function BlockNoteEditorMentionHoverCard({
14531
14539
  }, [containerRef, mentionResolveFn, cancelClose, scheduleClose]);
14532
14540
  if (!hovered || !mentionResolveFn) return null;
14533
14541
  const resolved = mentionResolveFn(hovered.id, hovered.entityType, hovered.alias);
14534
- if (!_optionalChain([resolved, 'optionalAccess', _420 => _420.HoverContent])) return null;
14542
+ if (!_optionalChain([resolved, 'optionalAccess', _424 => _424.HoverContent])) return null;
14535
14543
  const ContentComponent = resolved.HoverContent;
14536
14544
  const rect = hovered.element.getBoundingClientRect();
14537
14545
  return _reactdom.createPortal.call(void 0,
@@ -14574,28 +14582,28 @@ var parseMentionElement = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
14574
14582
  }, "parseMentionElement");
14575
14583
  var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn, disableMention, nameResolver) => {
14576
14584
  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));
14585
+ const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _425 => _425(props.id, props.entityType, props.alias)]), () => ( props.alias));
14578
14586
  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
14587
  "@",
14580
14588
  displayName
14581
14589
  ] });
14582
14590
  }, "MentionExternalHTML");
14583
14591
  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));
14592
+ const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _426 => _426(props.id, props.entityType, props.alias)]), () => ( props.alias));
14585
14593
  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: [
14594
+ const resolved2 = _optionalChain([resolveFn, 'optionalCall', _427 => _427(props.id, props.entityType, displayName)]);
14595
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _428 => _428.url]), () => ( "#")), className: "text-primary", children: [
14588
14596
  "@",
14589
14597
  displayName
14590
14598
  ] });
14591
14599
  }
14592
- const resolved = _optionalChain([resolveFn, 'optionalCall', _425 => _425(props.id, props.entityType, displayName)]);
14593
- if (_optionalChain([resolved, 'optionalAccess', _426 => _426.Inline])) {
14600
+ const resolved = _optionalChain([resolveFn, 'optionalCall', _429 => _429(props.id, props.entityType, displayName)]);
14601
+ if (_optionalChain([resolved, 'optionalAccess', _430 => _430.Inline])) {
14594
14602
  const Custom = resolved.Inline;
14595
14603
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props, alias: displayName });
14596
14604
  }
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;
14605
+ const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _431 => _431.url]), () => ( "#"));
14606
+ const handleClick = _optionalChain([resolved, 'optionalAccess', _432 => _432.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
14599
14607
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
14600
14608
  _link2.default,
14601
14609
  {
@@ -14701,7 +14709,7 @@ function BlockNoteEditorMentionSuggestionMenu({
14701
14709
  if (!suggestionMenuComponent) return void 0;
14702
14710
  const Component2 = suggestionMenuComponent;
14703
14711
  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;
14712
+ const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _433 => _433.items, 'access', _434 => _434[0], 'optionalAccess', _435 => _435.title]) === KEEP_OPEN_SENTINEL_TITLE;
14705
14713
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14706
14714
  Component2,
14707
14715
  {
@@ -14710,7 +14718,7 @@ function BlockNoteEditorMentionSuggestionMenu({
14710
14718
  selectedIndex: isSentinelOnly ? void 0 : props.selectedIndex,
14711
14719
  onItemClick: (item) => {
14712
14720
  if (item.title === KEEP_OPEN_SENTINEL_TITLE) return;
14713
- _optionalChain([props, 'access', _432 => _432.onItemClick, 'optionalCall', _433 => _433(item)]);
14721
+ _optionalChain([props, 'access', _436 => _436.onItemClick, 'optionalCall', _437 => _437(item)]);
14714
14722
  }
14715
14723
  }
14716
14724
  );
@@ -14904,10 +14912,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
14904
14912
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14905
14913
  Checkbox,
14906
14914
  {
14907
- checked: _optionalChain([params, 'access', _434 => _434.checkedIds, 'optionalAccess', _435 => _435.includes, 'call', _436 => _436(row.getValue(params.name))]) || false,
14915
+ checked: _optionalChain([params, 'access', _438 => _438.checkedIds, 'optionalAccess', _439 => _439.includes, 'call', _440 => _440(row.getValue(params.name))]) || false,
14908
14916
  onCheckedChange: (value) => {
14909
14917
  row.toggleSelected(!!value);
14910
- _optionalChain([params, 'access', _437 => _437.toggleId, 'optionalCall', _438 => _438(row.getValue(params.name))]);
14918
+ _optionalChain([params, 'access', _441 => _441.toggleId, 'optionalCall', _442 => _442(row.getValue(params.name))]);
14911
14919
  },
14912
14920
  "aria-label": "Select row"
14913
14921
  }
@@ -14966,7 +14974,7 @@ function useJsonApiGet(params) {
14966
14974
  const [response, setResponse] = _react.useState.call(void 0, null);
14967
14975
  const isMounted = _react.useRef.call(void 0, true);
14968
14976
  const fetchData = _react.useCallback.call(void 0, async () => {
14969
- if (_optionalChain([params, 'access', _439 => _439.options, 'optionalAccess', _440 => _440.enabled]) === false) return;
14977
+ if (_optionalChain([params, 'access', _443 => _443.options, 'optionalAccess', _444 => _444.enabled]) === false) return;
14970
14978
  setLoading(true);
14971
14979
  setError(null);
14972
14980
  try {
@@ -14993,9 +15001,9 @@ function useJsonApiGet(params) {
14993
15001
  setLoading(false);
14994
15002
  }
14995
15003
  }
14996
- }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _441 => _441.options, 'optionalAccess', _442 => _442.enabled])]);
15004
+ }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _445 => _445.options, 'optionalAccess', _446 => _446.enabled])]);
14997
15005
  const fetchNextPage = _react.useCallback.call(void 0, async () => {
14998
- if (!_optionalChain([response, 'optionalAccess', _443 => _443.nextPage])) return;
15006
+ if (!_optionalChain([response, 'optionalAccess', _447 => _447.nextPage])) return;
14999
15007
  setLoading(true);
15000
15008
  try {
15001
15009
  const nextResponse = await response.nextPage();
@@ -15016,7 +15024,7 @@ function useJsonApiGet(params) {
15016
15024
  }
15017
15025
  }, [response]);
15018
15026
  const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
15019
- if (!_optionalChain([response, 'optionalAccess', _444 => _444.prevPage])) return;
15027
+ if (!_optionalChain([response, 'optionalAccess', _448 => _448.prevPage])) return;
15020
15028
  setLoading(true);
15021
15029
  try {
15022
15030
  const prevResponse = await response.prevPage();
@@ -15042,15 +15050,15 @@ function useJsonApiGet(params) {
15042
15050
  return () => {
15043
15051
  isMounted.current = false;
15044
15052
  };
15045
- }, [fetchData, ..._optionalChain([params, 'access', _445 => _445.options, 'optionalAccess', _446 => _446.deps]) || []]);
15053
+ }, [fetchData, ..._optionalChain([params, 'access', _449 => _449.options, 'optionalAccess', _450 => _450.deps]) || []]);
15046
15054
  return {
15047
15055
  data,
15048
15056
  loading,
15049
15057
  error,
15050
15058
  response,
15051
15059
  refetch: fetchData,
15052
- hasNextPage: !!_optionalChain([response, 'optionalAccess', _447 => _447.next]),
15053
- hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _448 => _448.prev]),
15060
+ hasNextPage: !!_optionalChain([response, 'optionalAccess', _451 => _451.next]),
15061
+ hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _452 => _452.prev]),
15054
15062
  fetchNextPage,
15055
15063
  fetchPreviousPage
15056
15064
  };
@@ -15128,17 +15136,17 @@ function useJsonApiMutation(config) {
15128
15136
  if (apiResponse.ok) {
15129
15137
  const resultData = apiResponse.data;
15130
15138
  setData(resultData);
15131
- _optionalChain([config, 'access', _449 => _449.onSuccess, 'optionalCall', _450 => _450(resultData)]);
15139
+ _optionalChain([config, 'access', _453 => _453.onSuccess, 'optionalCall', _454 => _454(resultData)]);
15132
15140
  return resultData;
15133
15141
  } else {
15134
15142
  setError(apiResponse.error);
15135
- _optionalChain([config, 'access', _451 => _451.onError, 'optionalCall', _452 => _452(apiResponse.error)]);
15143
+ _optionalChain([config, 'access', _455 => _455.onError, 'optionalCall', _456 => _456(apiResponse.error)]);
15136
15144
  return null;
15137
15145
  }
15138
15146
  } catch (err) {
15139
15147
  const errorMessage = err instanceof Error ? err.message : "Unknown error";
15140
15148
  setError(errorMessage);
15141
- _optionalChain([config, 'access', _453 => _453.onError, 'optionalCall', _454 => _454(errorMessage)]);
15149
+ _optionalChain([config, 'access', _457 => _457.onError, 'optionalCall', _458 => _458(errorMessage)]);
15142
15150
  return null;
15143
15151
  } finally {
15144
15152
  setLoading(false);
@@ -15211,7 +15219,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
15211
15219
  {
15212
15220
  href: hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
15213
15221
  page: "/administration",
15214
- id: _optionalChain([_chunkS2PTWBN6js.Modules, 'access', _455 => _455.Company, 'access', _456 => _456.pageUrl, 'optionalAccess', _457 => _457.substring, 'call', _458 => _458(1)]),
15222
+ id: _optionalChain([_chunkS2PTWBN6js.Modules, 'access', _459 => _459.Company, 'access', _460 => _460.pageUrl, 'optionalAccess', _461 => _461.substring, 'call', _462 => _462(1)]),
15215
15223
  childPage: company.id
15216
15224
  }) : generateUrl({ page: _chunkS2PTWBN6js.Modules.Company, id: company.id }),
15217
15225
  children: row.getValue("name")
@@ -15227,7 +15235,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
15227
15235
  })
15228
15236
  };
15229
15237
  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);
15238
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _463 => _463[field], 'optionalCall', _464 => _464()])).filter((col) => col !== void 0);
15231
15239
  }, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
15232
15240
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
15233
15241
  }, "useCompanyTableStructure");
@@ -15239,7 +15247,7 @@ var GRACE_DAYS = 3;
15239
15247
  var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
15240
15248
  if (!currentUser || !_chunk6KLR3WJQjs.isRolesConfigured.call(void 0, )) return false;
15241
15249
  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)]);
15250
+ return !!_optionalChain([currentUser, 'access', _465 => _465.roles, 'optionalAccess', _466 => _466.some, 'call', _467 => _467((role) => role.id === adminRoleId)]);
15243
15251
  }, "isAdministrator");
15244
15252
  function useSubscriptionStatus() {
15245
15253
  const { company, currentUser } = useCurrentUserContext();
@@ -15356,7 +15364,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
15356
15364
  })
15357
15365
  };
15358
15366
  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);
15367
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _468 => _468[field], 'optionalCall', _469 => _469()])).filter((col) => col !== void 0);
15360
15368
  }, [params.fields, fieldColumnMap, t, generateUrl]);
15361
15369
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
15362
15370
  }, "useRoleTableStructure");
@@ -15457,11 +15465,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
15457
15465
  return params.fields.map((field) => {
15458
15466
  const localHandler = fieldColumnMap[field];
15459
15467
  if (localHandler) return localHandler();
15460
- const customHandler = _optionalChain([params, 'access', _466 => _466.context, 'optionalAccess', _467 => _467.customCells, 'optionalAccess', _468 => _468[field]]);
15468
+ const customHandler = _optionalChain([params, 'access', _470 => _470.context, 'optionalAccess', _471 => _471.customCells, 'optionalAccess', _472 => _472[field]]);
15461
15469
  if (customHandler) return customHandler({ t });
15462
15470
  return void 0;
15463
15471
  }).filter((col) => col !== void 0);
15464
- }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _469 => _469.context, 'optionalAccess', _470 => _470.customCells])]);
15472
+ }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _473 => _473.context, 'optionalAccess', _474 => _474.customCells])]);
15465
15473
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
15466
15474
  }, "useContentTableStructure");
15467
15475
 
@@ -15796,7 +15804,7 @@ function ContentTableSearch({ data }) {
15796
15804
  const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
15797
15805
  if (!isExpanded) {
15798
15806
  setIsFocused(true);
15799
- setTimeout(() => _optionalChain([inputRef, 'access', _471 => _471.current, 'optionalAccess', _472 => _472.focus, 'call', _473 => _473()]), 50);
15807
+ setTimeout(() => _optionalChain([inputRef, 'access', _475 => _475.current, 'optionalAccess', _476 => _476.focus, 'call', _477 => _477()]), 50);
15800
15808
  }
15801
15809
  }, "handleSearchIconClick");
15802
15810
  const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
@@ -15873,7 +15881,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
15873
15881
  props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
15874
15882
  );
15875
15883
  const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
15876
- data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _474 => _474.data]), () => ( EMPTY_ARRAY)),
15884
+ data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _478 => _478.data]), () => ( EMPTY_ARRAY)),
15877
15885
  fields,
15878
15886
  checkedIds,
15879
15887
  toggleId,
@@ -15906,7 +15914,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
15906
15914
  });
15907
15915
  const rowModel = tableData ? table.getRowModel() : null;
15908
15916
  const groupedRows = _react.useMemo.call(void 0, () => {
15909
- if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _475 => _475.rows, 'optionalAccess', _476 => _476.length])) return null;
15917
+ if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _479 => _479.rows, 'optionalAccess', _480 => _480.length])) return null;
15910
15918
  const groupMap = /* @__PURE__ */ new Map();
15911
15919
  for (const row of rowModel.rows) {
15912
15920
  const keys = getGroupKeys(row.original, props.groupBy);
@@ -15962,10 +15970,10 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
15962
15970
  ) }),
15963
15971
  table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
15964
15972
  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);
15973
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _481 => _481.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
15966
15974
  }) }, headerGroup.id))
15967
15975
  ] }),
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: [
15976
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _482 => _482.rows, 'optionalAccess', _483 => _483.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React.default.Fragment, { children: [
15969
15977
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15970
15978
  TableCell,
15971
15979
  {
@@ -15976,11 +15984,11 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
15976
15984
  ) }),
15977
15985
  group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
15978
15986
  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);
15987
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _484 => _484.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
15980
15988
  }) }, row.id))
15981
15989
  ] }, group.groupKey)) : rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
15982
15990
  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);
15991
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _485 => _485.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
15984
15992
  }) }, 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
15993
  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
15994
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -15990,7 +15998,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
15990
15998
  size: "sm",
15991
15999
  onClick: (e) => {
15992
16000
  e.preventDefault();
15993
- _optionalChain([data, 'access', _482 => _482.previous, 'optionalCall', _483 => _483(true)]);
16001
+ _optionalChain([data, 'access', _486 => _486.previous, 'optionalCall', _487 => _487(true)]);
15994
16002
  },
15995
16003
  disabled: !data.previous,
15996
16004
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
@@ -16004,7 +16012,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
16004
16012
  size: "sm",
16005
16013
  onClick: (e) => {
16006
16014
  e.preventDefault();
16007
- _optionalChain([data, 'access', _484 => _484.next, 'optionalCall', _485 => _485(true)]);
16015
+ _optionalChain([data, 'access', _488 => _488.next, 'optionalCall', _489 => _489(true)]);
16008
16016
  },
16009
16017
  disabled: !data.next,
16010
16018
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" })
@@ -16025,7 +16033,7 @@ function ContentListGrid(props) {
16025
16033
  if (!data.next || !sentinelRef.current) return;
16026
16034
  const observer = new IntersectionObserver(
16027
16035
  (entries) => {
16028
- if (_optionalChain([entries, 'access', _486 => _486[0], 'optionalAccess', _487 => _487.isIntersecting])) _optionalChain([data, 'access', _488 => _488.next, 'optionalCall', _489 => _489()]);
16036
+ if (_optionalChain([entries, 'access', _490 => _490[0], 'optionalAccess', _491 => _491.isIntersecting])) _optionalChain([data, 'access', _492 => _492.next, 'optionalCall', _493 => _493()]);
16029
16037
  },
16030
16038
  { threshold: 0.1, rootMargin: "200px" }
16031
16039
  );
@@ -16775,7 +16783,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
16775
16783
  newDigits[index] = digit;
16776
16784
  setDigits(newDigits);
16777
16785
  if (digit && index < 5) {
16778
- _optionalChain([inputRefs, 'access', _490 => _490.current, 'access', _491 => _491[index + 1], 'optionalAccess', _492 => _492.focus, 'call', _493 => _493()]);
16786
+ _optionalChain([inputRefs, 'access', _494 => _494.current, 'access', _495 => _495[index + 1], 'optionalAccess', _496 => _496.focus, 'call', _497 => _497()]);
16779
16787
  }
16780
16788
  const code = newDigits.join("");
16781
16789
  if (code.length === 6 && newDigits.every((d) => d !== "")) {
@@ -16784,7 +16792,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
16784
16792
  }, "handleChange");
16785
16793
  const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
16786
16794
  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()]);
16795
+ _optionalChain([inputRefs, 'access', _498 => _498.current, 'access', _499 => _499[index - 1], 'optionalAccess', _500 => _500.focus, 'call', _501 => _501()]);
16788
16796
  }
16789
16797
  }, "handleKeyDown");
16790
16798
  const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
@@ -16793,7 +16801,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
16793
16801
  if (pastedData.length === 6) {
16794
16802
  const newDigits = pastedData.split("");
16795
16803
  setDigits(newDigits);
16796
- _optionalChain([inputRefs, 'access', _498 => _498.current, 'access', _499 => _499[5], 'optionalAccess', _500 => _500.focus, 'call', _501 => _501()]);
16804
+ _optionalChain([inputRefs, 'access', _502 => _502.current, 'access', _503 => _503[5], 'optionalAccess', _504 => _504.focus, 'call', _505 => _505()]);
16797
16805
  onComplete(pastedData);
16798
16806
  }
16799
16807
  }, "handlePaste");
@@ -17004,8 +17012,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
17004
17012
  try {
17005
17013
  const registrationData = await _chunkS2PTWBN6js.TwoFactorService.getPasskeyRegistrationOptions({
17006
17014
  id: _uuid.v4.call(void 0, ),
17007
- userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _502 => _502.email]), () => ( "")),
17008
- userDisplayName: _optionalChain([currentUser, 'optionalAccess', _503 => _503.name])
17015
+ userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _506 => _506.email]), () => ( "")),
17016
+ userDisplayName: _optionalChain([currentUser, 'optionalAccess', _507 => _507.name])
17009
17017
  });
17010
17018
  const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
17011
17019
  await _chunkS2PTWBN6js.TwoFactorService.verifyPasskeyRegistration({
@@ -17156,7 +17164,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
17156
17164
  const setup = await _chunkS2PTWBN6js.TwoFactorService.setupTotp({
17157
17165
  id: _uuid.v4.call(void 0, ),
17158
17166
  name: name.trim(),
17159
- accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _504 => _504.email]), () => ( ""))
17167
+ accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _508 => _508.email]), () => ( ""))
17160
17168
  });
17161
17169
  setQrCodeUri(setup.qrCodeUri);
17162
17170
  setAuthenticatorId(setup.authenticatorId);
@@ -17290,7 +17298,7 @@ function TwoFactorSettings() {
17290
17298
  if (isLoading) {
17291
17299
  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
17300
  }
17293
- const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _505 => _505.isEnabled]), () => ( false));
17301
+ const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _509 => _509.isEnabled]), () => ( false));
17294
17302
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
17295
17303
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
17296
17304
  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 +17336,7 @@ function TwoFactorSettings() {
17328
17336
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
17329
17337
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
17330
17338
  ] }),
17331
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _506 => _506.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
17339
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _510 => _510.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
17332
17340
  ] }) }),
17333
17341
  !isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
17334
17342
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
@@ -17506,9 +17514,9 @@ function AcceptInvitation() {
17506
17514
  });
17507
17515
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
17508
17516
  try {
17509
- if (!_optionalChain([params, 'optionalAccess', _507 => _507.code])) return;
17517
+ if (!_optionalChain([params, 'optionalAccess', _511 => _511.code])) return;
17510
17518
  const payload = {
17511
- code: _optionalChain([params, 'optionalAccess', _508 => _508.code]),
17519
+ code: _optionalChain([params, 'optionalAccess', _512 => _512.code]),
17512
17520
  password: values.password
17513
17521
  };
17514
17522
  await _chunkS2PTWBN6js.AuthService.acceptInvitation(payload);
@@ -17858,7 +17866,7 @@ function Logout({ storageKeys }) {
17858
17866
  const generateUrl = usePageUrlGenerator();
17859
17867
  _react.useEffect.call(void 0, () => {
17860
17868
  const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
17861
- if (_optionalChain([storageKeys, 'optionalAccess', _509 => _509.length])) {
17869
+ if (_optionalChain([storageKeys, 'optionalAccess', _513 => _513.length])) {
17862
17870
  clearClientStorage(storageKeys);
17863
17871
  }
17864
17872
  await _chunkS2PTWBN6js.AuthService.logout();
@@ -17881,14 +17889,14 @@ function RefreshUser() {
17881
17889
  setUser(fullUser);
17882
17890
  const token = {
17883
17891
  userId: fullUser.id,
17884
- companyId: _optionalChain([fullUser, 'access', _510 => _510.company, 'optionalAccess', _511 => _511.id]),
17892
+ companyId: _optionalChain([fullUser, 'access', _514 => _514.company, 'optionalAccess', _515 => _515.id]),
17885
17893
  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)]), () => ( [])),
17894
+ features: _nullishCoalesce(_optionalChain([fullUser, 'access', _516 => _516.company, 'optionalAccess', _517 => _517.features, 'optionalAccess', _518 => _518.map, 'call', _519 => _519((feature) => feature.id)]), () => ( [])),
17887
17895
  modules: fullUser.modules.map((module) => {
17888
17896
  return { id: module.id, permissions: module.permissions };
17889
17897
  })
17890
17898
  };
17891
- await _optionalChain([_chunkS2PTWBN6js.getTokenHandler.call(void 0, ), 'optionalAccess', _516 => _516.updateToken, 'call', _517 => _517(token)]);
17899
+ await _optionalChain([_chunkS2PTWBN6js.getTokenHandler.call(void 0, ), 'optionalAccess', _520 => _520.updateToken, 'call', _521 => _521(token)]);
17892
17900
  _cookiesnext.deleteCookie.call(void 0, "reloadData");
17893
17901
  }
17894
17902
  }, "loadFullUser");
@@ -17952,9 +17960,9 @@ function ResetPassword() {
17952
17960
  });
17953
17961
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
17954
17962
  try {
17955
- if (!_optionalChain([params, 'optionalAccess', _518 => _518.code])) return;
17963
+ if (!_optionalChain([params, 'optionalAccess', _522 => _522.code])) return;
17956
17964
  const payload = {
17957
- code: _optionalChain([params, 'optionalAccess', _519 => _519.code]),
17965
+ code: _optionalChain([params, 'optionalAccess', _523 => _523.code]),
17958
17966
  password: values.password
17959
17967
  };
17960
17968
  await _chunkS2PTWBN6js.AuthService.resetPassword(payload);
@@ -18303,7 +18311,7 @@ function extractHeadings(blocks) {
18303
18311
  function processBlocks(blockArray) {
18304
18312
  for (const block of blockArray) {
18305
18313
  if (block.type === "heading") {
18306
- const level = _optionalChain([block, 'access', _520 => _520.props, 'optionalAccess', _521 => _521.level]) || 1;
18314
+ const level = _optionalChain([block, 'access', _524 => _524.props, 'optionalAccess', _525 => _525.level]) || 1;
18307
18315
  const text = extractTextFromContent(block.content);
18308
18316
  if (text.trim()) {
18309
18317
  headings.push({
@@ -18646,7 +18654,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
18646
18654
  })
18647
18655
  };
18648
18656
  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);
18657
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _526 => _526[field], 'optionalCall', _527 => _527()])).filter((col) => col !== void 0);
18650
18658
  }, [params.fields, fieldColumnMap, t, generateUrl]);
18651
18659
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
18652
18660
  }, "useHowToTableStructure");
@@ -18745,7 +18753,7 @@ function HowToSelector({
18745
18753
  }, "setHowTo");
18746
18754
  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
18755
  /* @__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 }) }))) }) }) }),
18756
+ /* @__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', _528 => _528.value, 'optionalAccess', _529 => _529.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
18757
  field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
18750
18758
  _lucidereact.CircleX,
18751
18759
  {
@@ -19114,9 +19122,9 @@ function CitationsTab({ citations, sources }) {
19114
19122
  ] }) }),
19115
19123
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
19116
19124
  const isOpen = expanded.has(chunk.id);
19117
- const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _526 => _526.get, 'call', _527 => _527(chunk.nodeId)]) : void 0;
19125
+ const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _530 => _530.get, 'call', _531 => _531(chunk.nodeId)]) : void 0;
19118
19126
  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));
19127
+ const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _532 => _532.name]), () => ( fallbackName));
19120
19128
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
19121
19129
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
19122
19130
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -19163,7 +19171,7 @@ function ContentsTab({ citations, sources }) {
19163
19171
  for (const c of citations) {
19164
19172
  const id = c.nodeId;
19165
19173
  if (!id) continue;
19166
- const source = _optionalChain([sources, 'optionalAccess', _529 => _529.get, 'call', _530 => _530(id)]);
19174
+ const source = _optionalChain([sources, 'optionalAccess', _533 => _533.get, 'call', _534 => _534(id)]);
19167
19175
  if (!source) continue;
19168
19176
  const existing = map.get(id);
19169
19177
  if (existing) {
@@ -19230,7 +19238,7 @@ function UsersTab({ users, citations, sources }) {
19230
19238
  const generate = usePageUrlGenerator();
19231
19239
  const userMap = /* @__PURE__ */ new Map();
19232
19240
  for (const u of users) {
19233
- if (!_optionalChain([u, 'optionalAccess', _531 => _531.id])) continue;
19241
+ if (!_optionalChain([u, 'optionalAccess', _535 => _535.id])) continue;
19234
19242
  userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
19235
19243
  }
19236
19244
  if (citations && sources) {
@@ -19335,7 +19343,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
19335
19343
  }
19336
19344
  return ids.size;
19337
19345
  }, [message.citations, sources]);
19338
- const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _532 => _532.length]), () => ( 0));
19346
+ const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _536 => _536.length]), () => ( 0));
19339
19347
  const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
19340
19348
  const visibleTabs = [];
19341
19349
  if (suggestionsCount > 0) visibleTabs.push("suggested");
@@ -19395,8 +19403,8 @@ var SourcesFetcher = class extends _chunkS2PTWBN6js.ClientAbstractService {
19395
19403
  const endpoint = new (0, _chunkS2PTWBN6js.EndpointCreator)({ endpoint: params.module });
19396
19404
  endpoint.addAdditionalParam(params.idsParam, params.ids.join(","));
19397
19405
  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);
19406
+ if (_optionalChain([params, 'access', _537 => _537.module, 'access', _538 => _538.inclusions, 'optionalAccess', _539 => _539.lists, 'optionalAccess', _540 => _540.fields])) endpoint.limitToFields(params.module.inclusions.lists.fields);
19407
+ if (_optionalChain([params, 'access', _541 => _541.module, 'access', _542 => _542.inclusions, 'optionalAccess', _543 => _543.lists, 'optionalAccess', _544 => _544.types])) endpoint.limitToType(params.module.inclusions.lists.types);
19400
19408
  return this.callApi({
19401
19409
  type: params.module,
19402
19410
  method: "GET" /* GET */,
@@ -19475,7 +19483,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
19475
19483
  return void 0;
19476
19484
  }
19477
19485
  })()));
19478
- if (_optionalChain([author, 'optionalAccess', _541 => _541.id])) userMap.set(author.id, author);
19486
+ if (_optionalChain([author, 'optionalAccess', _545 => _545.id])) userMap.set(author.id, author);
19479
19487
  }
19480
19488
  return Array.from(userMap.values());
19481
19489
  }, [resolved]);
@@ -19504,14 +19512,14 @@ function MessageItem({
19504
19512
  }) {
19505
19513
  const t = _nextintl.useTranslations.call(void 0, );
19506
19514
  const isUser = message.role === "user";
19507
- const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _542 => _542.has, 'call', _543 => _543(message.id)]);
19515
+ const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _546 => _546.has, 'call', _547 => _547(message.id)]);
19508
19516
  if (isUser) {
19509
19517
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-end gap-1", children: [
19510
19518
  /* @__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
19519
  isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
19512
19520
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
19513
19521
  /* @__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") })
19522
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall', _548 => _548(message.id)]), children: t("features.assistant.retry") })
19515
19523
  ] })
19516
19524
  ] });
19517
19525
  }
@@ -19587,7 +19595,7 @@ function AssistantThread({
19587
19595
  }) {
19588
19596
  const endRef = _react.useRef.call(void 0, null);
19589
19597
  _react.useEffect.call(void 0, () => {
19590
- _optionalChain([endRef, 'access', _545 => _545.current, 'optionalAccess', _546 => _546.scrollIntoView, 'call', _547 => _547({ behavior: "smooth" })]);
19598
+ _optionalChain([endRef, 'access', _549 => _549.current, 'optionalAccess', _550 => _550.scrollIntoView, 'call', _551 => _551({ behavior: "smooth" })]);
19591
19599
  }, [messages.length, sending]);
19592
19600
  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
19601
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -19616,7 +19624,7 @@ function AssistantContainer({ renderApprovalAction } = {}) {
19616
19624
  AssistantSidebar,
19617
19625
  {
19618
19626
  threads: ctx.threads,
19619
- activeId: _optionalChain([ctx, 'access', _548 => _548.assistant, 'optionalAccess', _549 => _549.id]),
19627
+ activeId: _optionalChain([ctx, 'access', _552 => _552.assistant, 'optionalAccess', _553 => _553.id]),
19620
19628
  onSelect: ctx.selectThread,
19621
19629
  onNew: ctx.startNew
19622
19630
  }
@@ -19717,14 +19725,14 @@ function NotificationsList({ archived }) {
19717
19725
  ] }),
19718
19726
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
19719
19727
  ] }) }) }, 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) => {
19728
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _554 => _554.data, 'optionalAccess', _555 => _555.map, 'call', _556 => _556((notification) => {
19721
19729
  const notificationData = generateNotificationData({ notification, generateUrl });
19722
19730
  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
19731
  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
19732
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
19725
19733
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
19726
19734
  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]), () => ( "")),
19735
+ actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _557 => _557.actor, 'optionalAccess', _558 => _558.name]), () => ( "")),
19728
19736
  title: notificationData.title
19729
19737
  }) }),
19730
19738
  /* @__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 +20078,7 @@ var DEFAULT_TRANSLATIONS = {
20070
20078
  invalidEmail: "Please enter a valid email address"
20071
20079
  };
20072
20080
  async function copyToClipboard(text) {
20073
- if (_optionalChain([navigator, 'access', _555 => _555.clipboard, 'optionalAccess', _556 => _556.writeText])) {
20081
+ if (_optionalChain([navigator, 'access', _559 => _559.clipboard, 'optionalAccess', _560 => _560.writeText])) {
20074
20082
  try {
20075
20083
  await navigator.clipboard.writeText(text);
20076
20084
  return true;
@@ -20112,7 +20120,7 @@ function ReferralWidget({
20112
20120
  const linkInputRef = _react.useRef.call(void 0, null);
20113
20121
  const config = _chunk6KLR3WJQjs.getReferralConfig.call(void 0, );
20114
20122
  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}` : "";
20123
+ const referralUrl = _optionalChain([stats, 'optionalAccess', _561 => _561.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
20116
20124
  if (!_chunk6KLR3WJQjs.isReferralEnabled.call(void 0, )) {
20117
20125
  return null;
20118
20126
  }
@@ -20122,7 +20130,7 @@ function ReferralWidget({
20122
20130
  if (success) {
20123
20131
  setCopied(true);
20124
20132
  _chunkS2PTWBN6js.showToast.call(void 0, t.copiedMessage);
20125
- _optionalChain([onLinkCopied, 'optionalCall', _558 => _558()]);
20133
+ _optionalChain([onLinkCopied, 'optionalCall', _562 => _562()]);
20126
20134
  setTimeout(() => setCopied(false), 2e3);
20127
20135
  } else {
20128
20136
  _chunkS2PTWBN6js.showError.call(void 0, t.copyError);
@@ -20136,12 +20144,12 @@ function ReferralWidget({
20136
20144
  try {
20137
20145
  await sendInvite(email);
20138
20146
  _chunkS2PTWBN6js.showToast.call(void 0, t.inviteSent);
20139
- _optionalChain([onInviteSent, 'optionalCall', _559 => _559(email)]);
20147
+ _optionalChain([onInviteSent, 'optionalCall', _563 => _563(email)]);
20140
20148
  setEmail("");
20141
20149
  } catch (err) {
20142
20150
  const error2 = err instanceof Error ? err : new Error(t.inviteError);
20143
20151
  _chunkS2PTWBN6js.showError.call(void 0, error2.message);
20144
- _optionalChain([onInviteError, 'optionalCall', _560 => _560(error2)]);
20152
+ _optionalChain([onInviteError, 'optionalCall', _564 => _564(error2)]);
20145
20153
  }
20146
20154
  }, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
20147
20155
  const handleEmailKeyDown = _react.useCallback.call(void 0,
@@ -20895,7 +20903,7 @@ function OAuthClientList({
20895
20903
  OAuthClientCard,
20896
20904
  {
20897
20905
  client,
20898
- onClick: () => _optionalChain([onClientClick, 'optionalCall', _561 => _561(client)]),
20906
+ onClick: () => _optionalChain([onClientClick, 'optionalCall', _565 => _565(client)]),
20899
20907
  onEdit: onEditClick ? () => onEditClick(client) : void 0,
20900
20908
  onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
20901
20909
  },
@@ -20911,11 +20919,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
20911
20919
  function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
20912
20920
  const isEditMode = !!client;
20913
20921
  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))
20922
+ name: _optionalChain([client, 'optionalAccess', _566 => _566.name]) || "",
20923
+ description: _optionalChain([client, 'optionalAccess', _567 => _567.description]) || "",
20924
+ redirectUris: _optionalChain([client, 'optionalAccess', _568 => _568.redirectUris, 'optionalAccess', _569 => _569.length]) ? client.redirectUris : [""],
20925
+ allowedScopes: _optionalChain([client, 'optionalAccess', _570 => _570.allowedScopes]) || [],
20926
+ isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _571 => _571.isConfidential]), () => ( true))
20919
20927
  });
20920
20928
  const [errors, setErrors] = _react.useState.call(void 0, {});
20921
20929
  const validate = _react.useCallback.call(void 0, () => {
@@ -21143,7 +21151,7 @@ function OAuthClientDetail({
21143
21151
  ] }),
21144
21152
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
21145
21153
  /* @__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)) })
21154
+ /* @__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', _572 => _572[scope], 'optionalAccess', _573 => _573.name]) || scope }, scope)) })
21147
21155
  ] }),
21148
21156
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
21149
21157
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
@@ -21287,7 +21295,7 @@ function OAuthConsentScreen({
21287
21295
  if (error || !clientInfo) {
21288
21296
  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
21297
  /* @__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." })
21298
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _574 => _574.message]) || "Invalid authorization request. Please try again." })
21291
21299
  ] }) }) }) });
21292
21300
  }
21293
21301
  const { client, scopes } = clientInfo;
@@ -21503,7 +21511,7 @@ function WaitlistForm({ onSuccess }) {
21503
21511
  questionnaire: values.questionnaire
21504
21512
  });
21505
21513
  setIsSuccess(true);
21506
- _optionalChain([onSuccess, 'optionalCall', _571 => _571()]);
21514
+ _optionalChain([onSuccess, 'optionalCall', _575 => _575()]);
21507
21515
  } catch (e) {
21508
21516
  errorToast({ error: e });
21509
21517
  } finally {
@@ -22141,7 +22149,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
22141
22149
  ] }),
22142
22150
  roleIds.map((roleId) => {
22143
22151
  const roleTokens = block[roleId];
22144
- const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _572 => _572[roleId]]), () => ( roleId));
22152
+ const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _576 => _576[roleId]]), () => ( roleId));
22145
22153
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
22146
22154
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
22147
22155
  _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 +22186,7 @@ function RbacContainer() {
22178
22186
  }, []);
22179
22187
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
22180
22188
  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))));
22189
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _577 => _577[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _578 => _578[b]]), () => ( b))));
22182
22190
  }, [matrix, moduleNames]);
22183
22191
  const roleIds = _react.useMemo.call(void 0, () => {
22184
22192
  if (roleNames) {
@@ -22241,7 +22249,7 @@ function RbacContainer() {
22241
22249
  id === selectedModuleId && "bg-muted font-medium text-foreground",
22242
22250
  id !== selectedModuleId && "text-muted-foreground"
22243
22251
  ),
22244
- children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _575 => _575[id]]), () => ( id))
22252
+ children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _579 => _579[id]]), () => ( id))
22245
22253
  }
22246
22254
  ) }, id)) }) }),
22247
22255
  /* @__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 +22257,7 @@ function RbacContainer() {
22249
22257
  {
22250
22258
  moduleId: selectedModuleId,
22251
22259
  block: selectedBlock,
22252
- moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _576 => _576[selectedModuleId]]), () => ( selectedModuleId)),
22260
+ moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _580 => _580[selectedModuleId]]), () => ( selectedModuleId)),
22253
22261
  roleIds,
22254
22262
  roleNames,
22255
22263
  onOpenPicker: openPicker
@@ -22260,12 +22268,12 @@ function RbacContainer() {
22260
22268
  RbacPermissionPicker,
22261
22269
  {
22262
22270
  open: !!activePicker,
22263
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _577 => _577.anchor]), () => ( null)),
22271
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _581 => _581.anchor]), () => ( null)),
22264
22272
  value: activeValue,
22265
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _578 => _578.isRoleColumn]), () => ( false)),
22273
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _582 => _582.isRoleColumn]), () => ( false)),
22266
22274
  knownSegments: activeSegments,
22267
22275
  onSetValue: handleSetValue,
22268
- onClear: _optionalChain([activePicker, 'optionalAccess', _579 => _579.isRoleColumn]) ? handleClear : void 0,
22276
+ onClear: _optionalChain([activePicker, 'optionalAccess', _583 => _583.isRoleColumn]) ? handleClear : void 0,
22269
22277
  onClose: closePicker
22270
22278
  }
22271
22279
  )
@@ -22332,7 +22340,7 @@ function RbacByRoleContainer() {
22332
22340
  }, [roleNames]);
22333
22341
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
22334
22342
  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))));
22343
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _584 => _584[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _585 => _585[b]]), () => ( b))));
22336
22344
  }, [matrix, moduleNames]);
22337
22345
  _react.useEffect.call(void 0, () => {
22338
22346
  if (!selectedRoleId && sortedRoleIds.length > 0) {
@@ -22381,7 +22389,7 @@ function RbacByRoleContainer() {
22381
22389
  id === selectedRoleId && "bg-muted font-medium text-foreground",
22382
22390
  id !== selectedRoleId && "text-muted-foreground"
22383
22391
  ),
22384
- children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _582 => _582[id]]), () => ( id))
22392
+ children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _586 => _586[id]]), () => ( id))
22385
22393
  }
22386
22394
  ) }, id)) }) }),
22387
22395
  /* @__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 +22409,7 @@ function RbacByRoleContainer() {
22401
22409
  if (!block) return null;
22402
22410
  const defaultTokens = _nullishCoalesce(block.default, () => ( []));
22403
22411
  const roleTokens = block[selectedRoleId];
22404
- const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _583 => _583[moduleId]]), () => ( moduleId));
22412
+ const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _587 => _587[moduleId]]), () => ( moduleId));
22405
22413
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
22406
22414
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
22407
22415
  "td",
@@ -22416,7 +22424,7 @@ function RbacByRoleContainer() {
22416
22424
  _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
22425
  ] }),
22418
22426
  /* @__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)) }),
22427
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _588 => _588[selectedRoleId]]), () => ( selectedRoleId)) }),
22420
22428
  _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
22429
  CellButton3,
22422
22430
  {
@@ -22437,12 +22445,12 @@ function RbacByRoleContainer() {
22437
22445
  RbacPermissionPicker,
22438
22446
  {
22439
22447
  open: !!activePicker,
22440
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _585 => _585.anchor]), () => ( null)),
22448
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _589 => _589.anchor]), () => ( null)),
22441
22449
  value: activeValue,
22442
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _586 => _586.isRoleColumn]), () => ( false)),
22450
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _590 => _590.isRoleColumn]), () => ( false)),
22443
22451
  knownSegments: activeSegments,
22444
22452
  onSetValue: handleSetValue,
22445
- onClear: _optionalChain([activePicker, 'optionalAccess', _587 => _587.isRoleColumn]) ? handleClear : void 0,
22453
+ onClear: _optionalChain([activePicker, 'optionalAccess', _591 => _591.isRoleColumn]) ? handleClear : void 0,
22446
22454
  onClose: closePicker
22447
22455
  }
22448
22456
  )
@@ -22976,4 +22984,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
22976
22984
 
22977
22985
 
22978
22986
  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
22987
+ //# sourceMappingURL=chunk-56QAXZKI.js.map