@carlonicora/nextjs-jsonapi 4.0.8 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/{BlockNoteEditor-MCYQBKT5.js → BlockNoteEditor-6CBMNJPU.js} +9 -9
  2. package/dist/{BlockNoteEditor-MCYQBKT5.js.map → BlockNoteEditor-6CBMNJPU.js.map} +1 -1
  3. package/dist/{BlockNoteEditor-A2E4VUYB.mjs → BlockNoteEditor-7N66JABP.mjs} +2 -2
  4. package/dist/billing/index.js +335 -335
  5. package/dist/billing/index.mjs +1 -1
  6. package/dist/{chunk-DJRTJBSZ.mjs → chunk-HQKTQBUC.mjs} +15 -4
  7. package/dist/chunk-HQKTQBUC.mjs.map +1 -0
  8. package/dist/{chunk-PL2FHXHR.js → chunk-MJVEKDM4.js} +246 -235
  9. package/dist/chunk-MJVEKDM4.js.map +1 -0
  10. package/dist/client/index.js +2 -2
  11. package/dist/client/index.mjs +1 -1
  12. package/dist/components/index.js +2 -2
  13. package/dist/components/index.mjs +1 -1
  14. package/dist/contexts/index.js +2 -2
  15. package/dist/contexts/index.mjs +1 -1
  16. package/dist/features/analytics/index.js +88 -88
  17. package/dist/features/analytics/index.mjs +1 -1
  18. package/dist/features/help/index.js +31 -31
  19. package/dist/features/help/index.mjs +1 -1
  20. package/dist/features/tokenusage/index.js +75 -75
  21. package/dist/features/tokenusage/index.mjs +1 -1
  22. package/dist/next-config/index.d.mts +8 -1
  23. package/dist/next-config/index.d.ts +8 -1
  24. package/dist/next-config/index.js +31 -9
  25. package/dist/next-config/index.js.map +1 -1
  26. package/dist/next-config/index.mjs +31 -9
  27. package/dist/next-config/index.mjs.map +1 -1
  28. package/package.json +1 -1
  29. package/src/features/company/components/details/CompanyContent.tsx +9 -2
  30. package/src/features/company/components/forms/CompanyEditor.tsx +2 -0
  31. package/src/next-config/__tests__/createNextConfig.test.ts +45 -3
  32. package/src/next-config/csp.ts +25 -4
  33. package/src/next-config/index.ts +19 -12
  34. package/dist/chunk-DJRTJBSZ.mjs.map +0 -1
  35. package/dist/chunk-PL2FHXHR.js.map +0 -1
  36. /package/dist/{BlockNoteEditor-A2E4VUYB.mjs.map → BlockNoteEditor-7N66JABP.mjs.map} +0 -0
@@ -10587,7 +10587,7 @@ FileInput.displayName = "FileInput";
10587
10587
  var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
10588
10588
 
10589
10589
 
10590
- var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-MCYQBKT5.js"))), {
10590
+ var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-6CBMNJPU.js"))), {
10591
10591
  ssr: false
10592
10592
  });
10593
10593
  var BlockNoteEditorContainer = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
@@ -12692,7 +12692,17 @@ function CompanyContent({ company, actions }) {
12692
12692
  actions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-x-2", children: actions })
12693
12693
  ] }),
12694
12694
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-x-6", children: [
12695
- company.logo && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: company.logo, alt: company.name, width: 150, height: 150, className: "rounded-md" }),
12695
+ company.logo && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12696
+ _image2.default,
12697
+ {
12698
+ src: company.logo,
12699
+ alt: company.name,
12700
+ width: 150,
12701
+ height: 150,
12702
+ className: "rounded-md",
12703
+ unoptimized: _chunk5PNDDYGLjs.isRemoteImageSrc.call(void 0, company.logo)
12704
+ }
12705
+ ),
12696
12706
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-y-2", children: [
12697
12707
  company.legal_address && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground flex items-center gap-x-2 text-sm", children: [
12698
12708
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.MapPinIcon, { className: "h-4 w-4 shrink-0" }),
@@ -13076,7 +13086,8 @@ function CompanyEditorInternal({
13076
13086
  src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _357 => _357.logo]) || "",
13077
13087
  alt: "Company Logo",
13078
13088
  width: 200,
13079
- height: 200
13089
+ height: 200,
13090
+ unoptimized: _chunk5PNDDYGLjs.isRemoteImageSrc.call(void 0, file ? void 0 : _optionalChain([company, 'optionalAccess', _358 => _358.logo]))
13080
13091
  }
13081
13092
  ) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
13082
13093
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.UploadIcon, { className: "my-4 h-8 w-8" }),
@@ -13107,7 +13118,7 @@ function CompanyEditorInternal({
13107
13118
  }
13108
13119
  ),
13109
13120
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SectionHeader, { className: "mt-2", children: t(`company.sections.fiscal_data`) }),
13110
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItalianFiscalData_default, { ref: fiscalRef, initialData: parseFiscalData(_optionalChain([company, 'optionalAccess', _358 => _358.fiscal_data])) })
13121
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItalianFiscalData_default, { ref: fiscalRef, initialData: parseFiscalData(_optionalChain([company, 'optionalAccess', _359 => _359.fiscal_data])) })
13111
13122
  ] }),
13112
13123
  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 }) }) })
13113
13124
  ] })
@@ -13473,7 +13484,7 @@ function NotificationToast(notification, t, generateUrl, reouter) {
13473
13484
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
13474
13485
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
13475
13486
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
13476
- actor: _nullishCoalesce(_optionalChain([data, 'access', _359 => _359.actor, 'optionalAccess', _360 => _360.name]), () => ( "")),
13487
+ actor: _nullishCoalesce(_optionalChain([data, 'access', _360 => _360.actor, 'optionalAccess', _361 => _361.name]), () => ( "")),
13477
13488
  title: data.title,
13478
13489
  message: _nullishCoalesce(notification.message, () => ( ""))
13479
13490
  }) }),
@@ -13510,7 +13521,7 @@ function NotificationMenuItem({ notification, closePopover }) {
13510
13521
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
13511
13522
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-foreground text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
13512
13523
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { className: "font-medium", children: chunks }), "strong"),
13513
- actor: _nullishCoalesce(_optionalChain([data, 'access', _361 => _361.actor, 'optionalAccess', _362 => _362.name]), () => ( "")),
13524
+ actor: _nullishCoalesce(_optionalChain([data, 'access', _362 => _362.actor, 'optionalAccess', _363 => _363.name]), () => ( "")),
13514
13525
  title: data.title,
13515
13526
  message: _nullishCoalesce(notification.message, () => ( ""))
13516
13527
  }) }),
@@ -13578,7 +13589,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
13578
13589
  _react.useEffect.call(void 0, () => {
13579
13590
  if (hasInitiallyLoaded || !currentUser) return;
13580
13591
  if (_chunkG4JR3SFVjs.isRolesConfigured.call(void 0, )) {
13581
- const isAdmin = _optionalChain([currentUser, 'access', _363 => _363.roles, 'optionalAccess', _364 => _364.some, 'call', _365 => _365((role) => role.id === _chunkG4JR3SFVjs.getRoleId.call(void 0, ).Administrator)]);
13592
+ const isAdmin = _optionalChain([currentUser, 'access', _364 => _364.roles, 'optionalAccess', _365 => _365.some, 'call', _366 => _366((role) => role.id === _chunkG4JR3SFVjs.getRoleId.call(void 0, ).Administrator)]);
13582
13593
  if (isAdmin) {
13583
13594
  setHasInitiallyLoaded(true);
13584
13595
  return;
@@ -13764,7 +13775,7 @@ function OnboardingProvider({
13764
13775
  const id = activeTourIdRef.current;
13765
13776
  cleanupRoots();
13766
13777
  resetState();
13767
- if (id) _optionalChain([onTourEnd, 'optionalCall', _366 => _366(id, reason)]);
13778
+ if (id) _optionalChain([onTourEnd, 'optionalCall', _367 => _367(id, reason)]);
13768
13779
  },
13769
13780
  [cleanupRoots, resetState, onTourEnd]
13770
13781
  );
@@ -13777,14 +13788,14 @@ function OnboardingProvider({
13777
13788
  cleanupRoots();
13778
13789
  resetState();
13779
13790
  }, [cleanupRoots, resetState, teardown]);
13780
- const nextStep = _react.useCallback.call(void 0, () => _optionalChain([driverRef, 'access', _367 => _367.current, 'optionalAccess', _368 => _368.moveNext, 'call', _369 => _369()]), []);
13781
- const previousStep = _react.useCallback.call(void 0, () => _optionalChain([driverRef, 'access', _370 => _370.current, 'optionalAccess', _371 => _371.movePrevious, 'call', _372 => _372()]), []);
13782
- const goToStep = _react.useCallback.call(void 0, (index) => _optionalChain([driverRef, 'access', _373 => _373.current, 'optionalAccess', _374 => _374.moveTo, 'call', _375 => _375(index)]), []);
13791
+ const nextStep = _react.useCallback.call(void 0, () => _optionalChain([driverRef, 'access', _368 => _368.current, 'optionalAccess', _369 => _369.moveNext, 'call', _370 => _370()]), []);
13792
+ const previousStep = _react.useCallback.call(void 0, () => _optionalChain([driverRef, 'access', _371 => _371.current, 'optionalAccess', _372 => _372.movePrevious, 'call', _373 => _373()]), []);
13793
+ const goToStep = _react.useCallback.call(void 0, (index) => _optionalChain([driverRef, 'access', _374 => _374.current, 'optionalAccess', _375 => _375.moveTo, 'call', _376 => _376(index)]), []);
13783
13794
  const startTour = _react.useCallback.call(void 0,
13784
13795
  (tourId, steps) => {
13785
13796
  if (typeof window === "undefined") return;
13786
13797
  if (driverRef.current) closeTour();
13787
- const tourSteps = _nullishCoalesce(steps, () => ( _optionalChain([tours, 'access', _376 => _376.find, 'call', _377 => _377((t) => t.id === tourId), 'optionalAccess', _378 => _378.steps])));
13798
+ const tourSteps = _nullishCoalesce(steps, () => ( _optionalChain([tours, 'access', _377 => _377.find, 'call', _378 => _378((t) => t.id === tourId), 'optionalAccess', _379 => _379.steps])));
13788
13799
  if (!tourSteps || tourSteps.length === 0) {
13789
13800
  console.warn(`No steps found for tour: ${tourId}`);
13790
13801
  return;
@@ -13795,13 +13806,13 @@ function OnboardingProvider({
13795
13806
  endReasonRef.current = "dismissed";
13796
13807
  const move = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (direction, from) => {
13797
13808
  const target = tourSteps[direction === "next" ? from + 1 : from - 1];
13798
- const go = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => direction === "next" ? _optionalChain([driverRef, 'access', _379 => _379.current, 'optionalAccess', _380 => _380.moveNext, 'call', _381 => _381()]) : _optionalChain([driverRef, 'access', _382 => _382.current, 'optionalAccess', _383 => _383.movePrevious, 'call', _384 => _384()]), "go");
13799
- if (_optionalChain([target, 'optionalAccess', _385 => _385.showDelay])) setTimeout(go, target.showDelay);
13809
+ const go = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => direction === "next" ? _optionalChain([driverRef, 'access', _380 => _380.current, 'optionalAccess', _381 => _381.moveNext, 'call', _382 => _382()]) : _optionalChain([driverRef, 'access', _383 => _383.current, 'optionalAccess', _384 => _384.movePrevious, 'call', _385 => _385()]), "go");
13810
+ if (_optionalChain([target, 'optionalAccess', _386 => _386.showDelay])) setTimeout(go, target.showDelay);
13800
13811
  else go();
13801
13812
  }, "move");
13802
13813
  const end = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (reason) => {
13803
13814
  endReasonRef.current = reason;
13804
- _optionalChain([driverRef, 'access', _386 => _386.current, 'optionalAccess', _387 => _387.destroy, 'call', _388 => _388()]);
13815
+ _optionalChain([driverRef, 'access', _387 => _387.current, 'optionalAccess', _388 => _388.destroy, 'call', _389 => _389()]);
13805
13816
  teardown(reason);
13806
13817
  }, "end");
13807
13818
  const driveSteps = tourSteps.map((stepConfig, index) => {
@@ -13843,10 +13854,10 @@ function OnboardingProvider({
13843
13854
  onHighlightStarted: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
13844
13855
  setIsTourActive(true);
13845
13856
  setCurrentStepIndex(index);
13846
- _optionalChain([stepConfig, 'access', _389 => _389.onShow, 'optionalCall', _390 => _390()]);
13857
+ _optionalChain([stepConfig, 'access', _390 => _390.onShow, 'optionalCall', _391 => _391()]);
13847
13858
  }, "onHighlightStarted"),
13848
13859
  onDeselected: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
13849
- _optionalChain([stepConfig, 'access', _391 => _391.onHide, 'optionalCall', _392 => _392()]);
13860
+ _optionalChain([stepConfig, 'access', _392 => _392.onHide, 'optionalCall', _393 => _393()]);
13850
13861
  const root = rootsRef.current.get(index);
13851
13862
  if (root) {
13852
13863
  rootsRef.current.delete(index);
@@ -13874,7 +13885,7 @@ function OnboardingProvider({
13874
13885
  );
13875
13886
  _react.useEffect.call(void 0, () => {
13876
13887
  return () => {
13877
- _optionalChain([driverRef, 'access', _393 => _393.current, 'optionalAccess', _394 => _394.destroy, 'call', _395 => _395()]);
13888
+ _optionalChain([driverRef, 'access', _394 => _394.current, 'optionalAccess', _395 => _395.destroy, 'call', _396 => _396()]);
13878
13889
  cleanupRoots();
13879
13890
  };
13880
13891
  }, [cleanupRoots]);
@@ -14007,7 +14018,7 @@ function HowToMultiSelector({
14007
14018
  retriever: (params) => _chunk5PNDDYGLjs.HowToService.findMany(params),
14008
14019
  module: _chunk5PNDDYGLjs.Modules.HowTo,
14009
14020
  getLabel: (howTo) => howTo.name,
14010
- excludeId: _optionalChain([currentHowTo, 'optionalAccess', _396 => _396.id]),
14021
+ excludeId: _optionalChain([currentHowTo, 'optionalAccess', _397 => _397.id]),
14011
14022
  onChange
14012
14023
  }
14013
14024
  );
@@ -14115,17 +14126,17 @@ function HowToEditorInternal({
14115
14126
  );
14116
14127
  const getDefaultValues = _react.useCallback.call(void 0,
14117
14128
  () => ({
14118
- id: _optionalChain([howTo, 'optionalAccess', _397 => _397.id]) || _uuid.v4.call(void 0, ),
14119
- name: _optionalChain([howTo, 'optionalAccess', _398 => _398.name]) || "",
14120
- description: _optionalChain([howTo, 'optionalAccess', _399 => _399.description]) || [],
14121
- pages: _chunk5PNDDYGLjs.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess', _400 => _400.pages])),
14122
- howToType: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _401 => _401.howToType]), () => ( "how-to")),
14123
- slug: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _402 => _402.slug]), () => ( "")),
14124
- order: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _403 => _403.order]), () => ( 0)),
14125
- summary: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _404 => _404.summary]), () => ( "")),
14126
- tags: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _405 => _405.tags]), () => ( []))).join(", "),
14127
- contextualKeys: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _406 => _406.contextualKeys]), () => ( []))).join(", "),
14128
- draft: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _407 => _407.draft]), () => ( false)),
14129
+ id: _optionalChain([howTo, 'optionalAccess', _398 => _398.id]) || _uuid.v4.call(void 0, ),
14130
+ name: _optionalChain([howTo, 'optionalAccess', _399 => _399.name]) || "",
14131
+ description: _optionalChain([howTo, 'optionalAccess', _400 => _400.description]) || [],
14132
+ pages: _chunk5PNDDYGLjs.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess', _401 => _401.pages])),
14133
+ howToType: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _402 => _402.howToType]), () => ( "how-to")),
14134
+ slug: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _403 => _403.slug]), () => ( "")),
14135
+ order: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _404 => _404.order]), () => ( 0)),
14136
+ summary: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _405 => _405.summary]), () => ( "")),
14137
+ tags: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _406 => _406.tags]), () => ( []))).join(", "),
14138
+ contextualKeys: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _407 => _407.contextualKeys]), () => ( []))).join(", "),
14139
+ draft: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _408 => _408.draft]), () => ( false)),
14129
14140
  relatedArticles: []
14130
14141
  }),
14131
14142
  [howTo]
@@ -14136,7 +14147,7 @@ function HowToEditorInternal({
14136
14147
  });
14137
14148
  const initialRelatedIds = _react.useRef.call(void 0, []);
14138
14149
  _react.useEffect.call(void 0, () => {
14139
- if (!_optionalChain([howTo, 'optionalAccess', _408 => _408.howToType]) || !_optionalChain([howTo, 'optionalAccess', _409 => _409.slug])) return;
14150
+ if (!_optionalChain([howTo, 'optionalAccess', _409 => _409.howToType]) || !_optionalChain([howTo, 'optionalAccess', _410 => _410.slug])) return;
14140
14151
  let active = true;
14141
14152
  _chunk5PNDDYGLjs.HowToService.findRelated({ howToType: howTo.howToType, slug: howTo.slug }).then((list) => {
14142
14153
  if (!active) return;
@@ -14175,7 +14186,7 @@ function HowToEditorInternal({
14175
14186
  {
14176
14187
  form,
14177
14188
  entityType: t(`entities.howtos`, { count: 1 }),
14178
- entityName: _optionalChain([howTo, 'optionalAccess', _410 => _410.name]),
14189
+ entityName: _optionalChain([howTo, 'optionalAccess', _411 => _411.name]),
14179
14190
  isEdit: !!howTo,
14180
14191
  module: _chunk5PNDDYGLjs.Modules.HowTo,
14181
14192
  propagateChanges,
@@ -14556,7 +14567,7 @@ function withPatchedTitle(source, title) {
14556
14567
  return _chunk5PNDDYGLjs.rehydrate.call(void 0, _chunk5PNDDYGLjs.Modules.Assistant, {
14557
14568
  jsonApi: {
14558
14569
  ...dehydrated.jsonApi,
14559
- attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _411 => _411.jsonApi, 'optionalAccess', _412 => _412.attributes]), () => ( {})), title }
14570
+ attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _412 => _412.jsonApi, 'optionalAccess', _413 => _413.attributes]), () => ( {})), title }
14560
14571
  },
14561
14572
  included: dehydrated.included
14562
14573
  });
@@ -14591,7 +14602,7 @@ function AssistantProvider({
14591
14602
  const [status, setStatus] = _react.useState.call(void 0, void 0);
14592
14603
  const [failedMessageIds, setFailedMessageIds] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
14593
14604
  const [operatorMode, setOperatorMode] = _react.useState.call(void 0,
14594
- () => _optionalChain([dehydratedAssistant, 'optionalAccess', _413 => _413.jsonApi, 'optionalAccess', _414 => _414.attributes, 'optionalAccess', _415 => _415.engine]) === "operator"
14605
+ () => _optionalChain([dehydratedAssistant, 'optionalAccess', _414 => _414.jsonApi, 'optionalAccess', _415 => _415.attributes, 'optionalAccess', _416 => _416.engine]) === "operator"
14595
14606
  );
14596
14607
  const [pendingScope, setPendingScope] = _react.useState.call(void 0, scope);
14597
14608
  const { socket } = useSocketContext();
@@ -14601,7 +14612,7 @@ function AssistantProvider({
14601
14612
  if (!trimmed) return;
14602
14613
  const optimistic = _chunk5PNDDYGLjs.AssistantMessage.buildOptimistic({
14603
14614
  content: trimmed,
14604
- assistantId: _optionalChain([assistant, 'optionalAccess', _416 => _416.id]),
14615
+ assistantId: _optionalChain([assistant, 'optionalAccess', _417 => _417.id]),
14605
14616
  position: nextPosition(messages)
14606
14617
  });
14607
14618
  setMessages((prev) => [...prev, optimistic]);
@@ -14611,22 +14622,22 @@ function AssistantProvider({
14611
14622
  if (assistant && payload.assistantId && payload.assistantId !== assistant.id) return;
14612
14623
  if (typeof payload.status === "string") setStatus(payload.status);
14613
14624
  }, "handler");
14614
- _optionalChain([socket, 'optionalAccess', _417 => _417.on, 'call', _418 => _418("assistant:status", handler)]);
14625
+ _optionalChain([socket, 'optionalAccess', _418 => _418.on, 'call', _419 => _419("assistant:status", handler)]);
14615
14626
  let createdHandled = false;
14616
14627
  const createdHandler = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (payload) => {
14617
14628
  if (createdHandled) return;
14618
- const data = _optionalChain([payload, 'optionalAccess', _419 => _419.assistant, 'optionalAccess', _420 => _420.data]);
14629
+ const data = _optionalChain([payload, 'optionalAccess', _420 => _420.assistant, 'optionalAccess', _421 => _421.data]);
14619
14630
  if (!data || typeof data !== "object" || typeof data.id !== "string" || !data.id) return;
14620
14631
  let thread;
14621
14632
  try {
14622
14633
  thread = _chunk5PNDDYGLjs.rehydrate.call(void 0, _chunk5PNDDYGLjs.Modules.Assistant, {
14623
14634
  jsonApi: data,
14624
- included: _nullishCoalesce(_optionalChain([payload, 'access', _421 => _421.assistant, 'optionalAccess', _422 => _422.included]), () => ( []))
14635
+ included: _nullishCoalesce(_optionalChain([payload, 'access', _422 => _422.assistant, 'optionalAccess', _423 => _423.included]), () => ( []))
14625
14636
  });
14626
14637
  } catch (e8) {
14627
14638
  return;
14628
14639
  }
14629
- if (!_optionalChain([thread, 'optionalAccess', _423 => _423.id])) return;
14640
+ if (!_optionalChain([thread, 'optionalAccess', _424 => _424.id])) return;
14630
14641
  createdHandled = true;
14631
14642
  setAssistant(thread);
14632
14643
  setThreads((prev) => [thread, ...prev.filter((row) => row.id !== thread.id)]);
@@ -14634,16 +14645,16 @@ function AssistantProvider({
14634
14645
  window.history.replaceState(null, "", resolveThreadUrl(thread.id));
14635
14646
  }
14636
14647
  }, "createdHandler");
14637
- if (!assistant) _optionalChain([socket, 'optionalAccess', _424 => _424.on, 'call', _425 => _425("assistant:created", createdHandler)]);
14648
+ if (!assistant) _optionalChain([socket, 'optionalAccess', _425 => _425.on, 'call', _426 => _426("assistant:created", createdHandler)]);
14638
14649
  try {
14639
14650
  if (!assistant) {
14640
14651
  const input = {
14641
14652
  firstMessage: trimmed,
14642
- howToMode: _optionalChain([opts, 'optionalAccess', _426 => _426.howToMode]),
14643
- limitToHowToId: _optionalChain([opts, 'optionalAccess', _427 => _427.limitToHowToId]),
14644
- handbookMode: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _428 => _428.handbookMode]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _429 => _429.handbookMode]))),
14645
- limitToHandbookPageId: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _430 => _430.limitToHandbookPageId]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _431 => _431.limitToHandbookPageId]))),
14646
- contentBlocks: _optionalChain([opts, 'optionalAccess', _432 => _432.contentBlocks]),
14653
+ howToMode: _optionalChain([opts, 'optionalAccess', _427 => _427.howToMode]),
14654
+ limitToHowToId: _optionalChain([opts, 'optionalAccess', _428 => _428.limitToHowToId]),
14655
+ handbookMode: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _429 => _429.handbookMode]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _430 => _430.handbookMode]))),
14656
+ limitToHandbookPageId: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _431 => _431.limitToHandbookPageId]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _432 => _432.limitToHandbookPageId]))),
14657
+ contentBlocks: _optionalChain([opts, 'optionalAccess', _433 => _433.contentBlocks]),
14647
14658
  boundContent: pendingScope
14648
14659
  };
14649
14660
  const created = operatorMode ? await _chunk5PNDDYGLjs.AssistantService.createOperator(input) : await _chunk5PNDDYGLjs.AssistantService.create(input);
@@ -14660,15 +14671,15 @@ function AssistantProvider({
14660
14671
  const result = operatorMode ? await _chunk5PNDDYGLjs.AssistantService.appendMessageOperator({
14661
14672
  assistantId: assistant.id,
14662
14673
  content: trimmed,
14663
- contentBlocks: _optionalChain([opts, 'optionalAccess', _433 => _433.contentBlocks])
14674
+ contentBlocks: _optionalChain([opts, 'optionalAccess', _434 => _434.contentBlocks])
14664
14675
  }) : await _chunk5PNDDYGLjs.AssistantService.appendMessage({
14665
14676
  assistantId: assistant.id,
14666
14677
  content: trimmed,
14667
- howToMode: _optionalChain([opts, 'optionalAccess', _434 => _434.howToMode]),
14668
- limitToHowToId: _optionalChain([opts, 'optionalAccess', _435 => _435.limitToHowToId]),
14669
- handbookMode: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _436 => _436.handbookMode]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _437 => _437.handbookMode]))),
14670
- limitToHandbookPageId: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _438 => _438.limitToHandbookPageId]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _439 => _439.limitToHandbookPageId]))),
14671
- contentBlocks: _optionalChain([opts, 'optionalAccess', _440 => _440.contentBlocks])
14678
+ howToMode: _optionalChain([opts, 'optionalAccess', _435 => _435.howToMode]),
14679
+ limitToHowToId: _optionalChain([opts, 'optionalAccess', _436 => _436.limitToHowToId]),
14680
+ handbookMode: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _437 => _437.handbookMode]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _438 => _438.handbookMode]))),
14681
+ limitToHandbookPageId: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _439 => _439.limitToHandbookPageId]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _440 => _440.limitToHandbookPageId]))),
14682
+ contentBlocks: _optionalChain([opts, 'optionalAccess', _441 => _441.contentBlocks])
14672
14683
  });
14673
14684
  setMessages((prev) => [...stripOptimistic(prev), ...result]);
14674
14685
  }
@@ -14679,8 +14690,8 @@ function AssistantProvider({
14679
14690
  return next;
14680
14691
  });
14681
14692
  } finally {
14682
- _optionalChain([socket, 'optionalAccess', _441 => _441.off, 'call', _442 => _442("assistant:status", handler)]);
14683
- if (!assistant) _optionalChain([socket, 'optionalAccess', _443 => _443.off, 'call', _444 => _444("assistant:created", createdHandler)]);
14693
+ _optionalChain([socket, 'optionalAccess', _442 => _442.off, 'call', _443 => _443("assistant:status", handler)]);
14694
+ if (!assistant) _optionalChain([socket, 'optionalAccess', _444 => _444.off, 'call', _445 => _445("assistant:created", createdHandler)]);
14684
14695
  setSending(false);
14685
14696
  setStatus(void 0);
14686
14697
  }
@@ -14746,7 +14757,7 @@ function AssistantProvider({
14746
14757
  await _chunk5PNDDYGLjs.AssistantService.delete({ id });
14747
14758
  setThreads((prev) => prev.filter((t2) => t2.id !== id));
14748
14759
  setAssistant((prev) => {
14749
- if (_optionalChain([prev, 'optionalAccess', _445 => _445.id]) === id) {
14760
+ if (_optionalChain([prev, 'optionalAccess', _446 => _446.id]) === id) {
14750
14761
  setMessages([]);
14751
14762
  return void 0;
14752
14763
  }
@@ -14758,7 +14769,7 @@ function AssistantProvider({
14758
14769
  (async () => {
14759
14770
  setThreadsLoading(true);
14760
14771
  try {
14761
- const loaded = await _chunk5PNDDYGLjs.AssistantService.findMany({ boundType: _optionalChain([scope, 'optionalAccess', _446 => _446.type]), boundId: _optionalChain([scope, 'optionalAccess', _447 => _447.id]) });
14772
+ const loaded = await _chunk5PNDDYGLjs.AssistantService.findMany({ boundType: _optionalChain([scope, 'optionalAccess', _447 => _447.type]), boundId: _optionalChain([scope, 'optionalAccess', _448 => _448.id]) });
14762
14773
  if (!cancelled) setThreads(loaded);
14763
14774
  } finally {
14764
14775
  if (!cancelled) setThreadsLoading(false);
@@ -14767,7 +14778,7 @@ function AssistantProvider({
14767
14778
  return () => {
14768
14779
  cancelled = true;
14769
14780
  };
14770
- }, [_optionalChain([scope, 'optionalAccess', _448 => _448.type]), _optionalChain([scope, 'optionalAccess', _449 => _449.id])]);
14781
+ }, [_optionalChain([scope, 'optionalAccess', _449 => _449.type]), _optionalChain([scope, 'optionalAccess', _450 => _450.id])]);
14771
14782
  const value = _react.useMemo.call(void 0,
14772
14783
  () => ({
14773
14784
  assistant,
@@ -14819,7 +14830,7 @@ function AssistantProvider({
14819
14830
  const response = {
14820
14831
  type: _nullishCoalesce(titleOverride, () => ( t("entities.assistants", { count: assistant ? 1 : 2 })))
14821
14832
  };
14822
- if (_optionalChain([assistant, 'optionalAccess', _450 => _450.title])) {
14833
+ if (_optionalChain([assistant, 'optionalAccess', _451 => _451.title])) {
14823
14834
  response.element = assistant.title.length > 25 ? `${assistant.title.substring(0, 25)}...` : assistant.title;
14824
14835
  }
14825
14836
  response.functions = [
@@ -14981,7 +14992,7 @@ function readEntityTitle() {
14981
14992
  if (typeof document === "undefined") return null;
14982
14993
  const afterEntityType = document.title.split("]")[1];
14983
14994
  if (!afterEntityType) return null;
14984
- return _optionalChain([afterEntityType, 'access', _451 => _451.split, 'call', _452 => _452("|"), 'access', _453 => _453[0], 'optionalAccess', _454 => _454.trim, 'call', _455 => _455()]) || null;
14995
+ return _optionalChain([afterEntityType, 'access', _452 => _452.split, 'call', _453 => _453("|"), 'access', _454 => _454[0], 'optionalAccess', _455 => _455.trim, 'call', _456 => _456()]) || null;
14985
14996
  }
14986
14997
  _chunk7QVYU63Ejs.__name.call(void 0, readEntityTitle, "readEntityTitle");
14987
14998
  function usePageTracker() {
@@ -15010,7 +15021,7 @@ function usePageTracker() {
15010
15021
  const existing = prev.find((page) => page.url === baseUrl);
15011
15022
  const refreshed = {
15012
15023
  url: baseUrl,
15013
- title: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _456 => _456.title]), () => ( foundModule.name)),
15024
+ title: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _457 => _457.title]), () => ( foundModule.name)),
15014
15025
  moduleType: foundModule.name,
15015
15026
  timestamp: Date.now()
15016
15027
  };
@@ -15072,7 +15083,7 @@ function usePushNotifications() {
15072
15083
  const register = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
15073
15084
  if ("serviceWorker" in navigator && "PushManager" in window) {
15074
15085
  try {
15075
- const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _457 => _457.id])}`;
15086
+ const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _458 => _458.id])}`;
15076
15087
  const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
15077
15088
  const swUrl = _chunkGHE4VT2Rjs.ENV.IS_PRODUCTION ? `${_chunk7ZRQOLSVjs.getAppUrl.call(void 0, )}/sw.js` : `${_chunk7ZRQOLSVjs.getAppUrl.call(void 0, )}/sw-dev.js`;
15078
15089
  const registration = await navigator.serviceWorker.register(swUrl);
@@ -15185,14 +15196,14 @@ function useSocket({ token }) {
15185
15196
  });
15186
15197
  }, "handleMessage");
15187
15198
  const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
15188
- const resource = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _458 => _458.data]), () => ( _optionalChain([data, 'optionalAccess', _459 => _459.jsonApi])));
15189
- if (!_optionalChain([resource, 'optionalAccess', _460 => _460.type])) {
15199
+ const resource = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _459 => _459.data]), () => ( _optionalChain([data, 'optionalAccess', _460 => _460.jsonApi])));
15200
+ if (!_optionalChain([resource, 'optionalAccess', _461 => _461.type])) {
15190
15201
  console.warn("[useSocket] ignoring notification with unexpected payload shape", data);
15191
15202
  return;
15192
15203
  }
15193
15204
  const notification = _chunk5PNDDYGLjs.rehydrate.call(void 0, _chunk5PNDDYGLjs.Modules.Notification, {
15194
15205
  jsonApi: resource,
15195
- included: _optionalChain([data, 'optionalAccess', _461 => _461.included]) || []
15206
+ included: _optionalChain([data, 'optionalAccess', _462 => _462.included]) || []
15196
15207
  });
15197
15208
  if (notification) {
15198
15209
  setSocketNotifications((prev) => {
@@ -15315,11 +15326,11 @@ function BreadcrumbMobile({
15315
15326
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Breadcrumb, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbList, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: `/` }), children: rootLabel }) }) }) });
15316
15327
  }
15317
15328
  if (allItems.length <= 1) {
15318
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-foreground block min-w-0 truncate px-1.5 text-xs/relaxed font-normal", children: _optionalChain([lastItem, 'optionalAccess', _462 => _462.name]) });
15329
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-foreground block min-w-0 truncate px-1.5 text-xs/relaxed font-normal", children: _optionalChain([lastItem, 'optionalAccess', _463 => _463.name]) });
15319
15330
  }
15320
15331
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenu, { open, onOpenChange: setOpen, children: [
15321
15332
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenuTrigger, { className: "text-foreground text-xs/relaxed font-normal hover:bg-accent flex min-h-9 min-w-0 items-center gap-1 rounded-md px-1.5 py-0.5 transition-colors outline-none", children: [
15322
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: _optionalChain([lastItem, 'optionalAccess', _463 => _463.name]) }),
15333
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: _optionalChain([lastItem, 'optionalAccess', _464 => _464.name]) }),
15323
15334
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: "text-muted-foreground size-3.5 shrink-0" })
15324
15335
  ] }),
15325
15336
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuContent, { align: "start", children: allItems.map(
@@ -15337,8 +15348,8 @@ function BreadcrumbMobile({
15337
15348
  href: item.href,
15338
15349
  className: _chunk5PNDDYGLjs.cn.call(void 0, props.className, "text-foreground font-normal"),
15339
15350
  onClick: (event) => {
15340
- _optionalChain([props, 'access', _464 => _464.onClick, 'optionalCall', _465 => _465(event)]);
15341
- _optionalChain([item, 'access', _466 => _466.onClick, 'optionalCall', _467 => _467()]);
15351
+ _optionalChain([props, 'access', _465 => _465.onClick, 'optionalCall', _466 => _466(event)]);
15352
+ _optionalChain([item, 'access', _467 => _467.onClick, 'optionalCall', _468 => _468()]);
15342
15353
  },
15343
15354
  children: props.children
15344
15355
  }
@@ -15356,7 +15367,7 @@ function BreadcrumbNavigation({ items, rootLabel, showRoot = true }) {
15356
15367
  const generateUrl = usePageUrlGenerator();
15357
15368
  const t = _nextintl.useTranslations.call(void 0, );
15358
15369
  const isMobile = _chunk5PNDDYGLjs.useIsMobile.call(void 0, );
15359
- const root = _optionalChain([rootLabel, 'optionalAccess', _468 => _468.trim, 'call', _469 => _469()]) ? rootLabel : t(`common.home`);
15370
+ const root = _optionalChain([rootLabel, 'optionalAccess', _469 => _469.trim, 'call', _470 => _470()]) ? rootLabel : t(`common.home`);
15360
15371
  if (isMobile) {
15361
15372
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbMobile, { items, generateUrl, rootLabel: root, showRoot });
15362
15373
  }
@@ -15750,12 +15761,12 @@ var _remarkgfm = require('remark-gfm'); var _remarkgfm2 = _interopRequireDefault
15750
15761
 
15751
15762
  function mermaidSourceOf(node) {
15752
15763
  const pre = node;
15753
- const code = _optionalChain([pre, 'optionalAccess', _470 => _470.children, 'optionalAccess', _471 => _471[0]]);
15754
- if (_optionalChain([code, 'optionalAccess', _472 => _472.tagName]) !== "code") return void 0;
15755
- const classNames = Array.isArray(_optionalChain([code, 'access', _473 => _473.properties, 'optionalAccess', _474 => _474.className])) ? code.properties.className : [];
15764
+ const code = _optionalChain([pre, 'optionalAccess', _471 => _471.children, 'optionalAccess', _472 => _472[0]]);
15765
+ if (_optionalChain([code, 'optionalAccess', _473 => _473.tagName]) !== "code") return void 0;
15766
+ const classNames = Array.isArray(_optionalChain([code, 'access', _474 => _474.properties, 'optionalAccess', _475 => _475.className])) ? code.properties.className : [];
15756
15767
  if (!classNames.includes("language-mermaid")) return void 0;
15757
- const text = _optionalChain([code, 'access', _475 => _475.children, 'optionalAccess', _476 => _476[0]]);
15758
- if (_optionalChain([text, 'optionalAccess', _477 => _477.type]) !== "text" || typeof text.value !== "string") return void 0;
15768
+ const text = _optionalChain([code, 'access', _476 => _476.children, 'optionalAccess', _477 => _477[0]]);
15769
+ if (_optionalChain([text, 'optionalAccess', _478 => _478.type]) !== "text" || typeof text.value !== "string") return void 0;
15759
15770
  return text.value;
15760
15771
  }
15761
15772
  _chunk7QVYU63Ejs.__name.call(void 0, mermaidSourceOf, "mermaidSourceOf");
@@ -16008,7 +16019,7 @@ var railTriggerClass = _chunk5PNDDYGLjs.cn.call(void 0,
16008
16019
  "data-active:text-primary dark:data-active:text-primary",
16009
16020
  "data-active:font-medium data-active:shadow-none"
16010
16021
  );
16011
- var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access', _478 => _478.key, 'optionalAccess', _479 => _479.name]))), () => ( tab.label)), "tabValue");
16022
+ var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access', _479 => _479.key, 'optionalAccess', _480 => _480.name]))), () => ( tab.label)), "tabValue");
16012
16023
  function RoundPageContainer({
16013
16024
  module,
16014
16025
  id,
@@ -16039,7 +16050,7 @@ function RoundPageContainer({
16039
16050
  const [mounted, setMounted] = _react.useState.call(void 0, false);
16040
16051
  _react.useEffect.call(void 0, () => {
16041
16052
  const match = document.cookie.split("; ").find((row) => row.startsWith(`${detailsCookieName}=`));
16042
- const stored = _optionalChain([match, 'optionalAccess', _480 => _480.split, 'call', _481 => _481("="), 'access', _482 => _482[1]]);
16053
+ const stored = _optionalChain([match, 'optionalAccess', _481 => _481.split, 'call', _482 => _482("="), 'access', _483 => _483[1]]);
16043
16054
  if (stored === "true") setShowDetailsState(true);
16044
16055
  else if (stored === "false") setShowDetailsState(false);
16045
16056
  }, []);
@@ -16054,7 +16065,7 @@ function RoundPageContainer({
16054
16065
  const clip = isFixed ? `overflow-hidden` : ``;
16055
16066
  const scrollY = isFixed ? `overflow-y-auto` : ``;
16056
16067
  const mobileBarClass = isFixed ? `` : `sticky bottom-0 z-30`;
16057
- const detailsCookieName = _optionalChain([module, 'optionalAccess', _483 => _483.name]) ? `${DETAILS_COOKIE_NAME}_${module.name}` : DETAILS_COOKIE_NAME;
16068
+ const detailsCookieName = _optionalChain([module, 'optionalAccess', _484 => _484.name]) ? `${DETAILS_COOKIE_NAME}_${module.name}` : DETAILS_COOKIE_NAME;
16058
16069
  const setShowDetails = _react.useCallback.call(void 0,
16059
16070
  (value) => {
16060
16071
  setShowDetailsState(value);
@@ -16087,13 +16098,13 @@ function RoundPageContainer({
16087
16098
  } else {
16088
16099
  rewriteUrl({ page: window.location.pathname, additionalParameters: { section: key }, mode: "push" });
16089
16100
  }
16090
- _optionalChain([onSectionChange, 'optionalCall', _484 => _484(key)]);
16101
+ _optionalChain([onSectionChange, 'optionalCall', _485 => _485(key)]);
16091
16102
  },
16092
16103
  [module, id, rewriteUrl, onSectionChange]
16093
16104
  );
16094
- const activeTabDefinition = _optionalChain([tabs, 'optionalAccess', _485 => _485.find, 'call', _486 => _486((t) => tabValue(t) === activeTab)]);
16095
- const activeFillHeight = _optionalChain([activeTabDefinition, 'optionalAccess', _487 => _487.fillHeight]) === true;
16096
- const activeConstrainWidth = _optionalChain([activeTabDefinition, 'optionalAccess', _488 => _488.constrainWidth]) === true;
16105
+ const activeTabDefinition = _optionalChain([tabs, 'optionalAccess', _486 => _486.find, 'call', _487 => _487((t) => tabValue(t) === activeTab)]);
16106
+ const activeFillHeight = _optionalChain([activeTabDefinition, 'optionalAccess', _488 => _488.fillHeight]) === true;
16107
+ const activeConstrainWidth = _optionalChain([activeTabDefinition, 'optionalAccess', _489 => _489.constrainWidth]) === true;
16097
16108
  const { ungrouped, groups } = _react.useMemo.call(void 0, () => partitionTabs(_nullishCoalesce(tabs, () => ( []))), [tabs]);
16098
16109
  const tabItems = _react.useMemo.call(void 0,
16099
16110
  () => Object.fromEntries((_nullishCoalesce(tabs, () => ( []))).map((tab) => [tabValue(tab), _nullishCoalesce(tab.contentLabel, () => ( tab.label))])),
@@ -16104,7 +16115,7 @@ function RoundPageContainer({
16104
16115
  const mobileFlow = isMobile && isFixed && (!activeFillHeight || activeDocumentTab) && !fullWidth;
16105
16116
  const innerClip = mobileFlow ? `` : clip;
16106
16117
  const innerScrollY = mobileFlow ? `` : scrollY;
16107
- const showMobileSectionPicker = (_nullishCoalesce(_optionalChain([tabs, 'optionalAccess', _489 => _489.length]), () => ( 0))) > 1;
16118
+ const showMobileSectionPicker = (_nullishCoalesce(_optionalChain([tabs, 'optionalAccess', _490 => _490.length]), () => ( 0))) > 1;
16108
16119
  if (!isReady) {
16109
16120
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
16110
16121
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -16504,14 +16515,14 @@ function BlockNoteEditorMentionHoverCard({
16504
16515
  const entityType = target.dataset.mentionType;
16505
16516
  const alias = target.dataset.mentionAlias;
16506
16517
  setHovered((prev) => {
16507
- if (_optionalChain([prev, 'optionalAccess', _490 => _490.id]) === id && _optionalChain([prev, 'optionalAccess', _491 => _491.element]) === target) return prev;
16518
+ if (_optionalChain([prev, 'optionalAccess', _491 => _491.id]) === id && _optionalChain([prev, 'optionalAccess', _492 => _492.element]) === target) return prev;
16508
16519
  return { id, entityType, alias, element: target };
16509
16520
  });
16510
16521
  }, "handleMouseOver");
16511
16522
  const handleMouseOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
16512
16523
  const target = e.target.closest("[data-mention-id]");
16513
16524
  if (!target) return;
16514
- const related = _optionalChain([e, 'access', _492 => _492.relatedTarget, 'optionalAccess', _493 => _493.closest, 'call', _494 => _494("[data-mention-id]")]);
16525
+ const related = _optionalChain([e, 'access', _493 => _493.relatedTarget, 'optionalAccess', _494 => _494.closest, 'call', _495 => _495("[data-mention-id]")]);
16515
16526
  if (related) return;
16516
16527
  scheduleClose();
16517
16528
  }, "handleMouseOut");
@@ -16525,7 +16536,7 @@ function BlockNoteEditorMentionHoverCard({
16525
16536
  }, [containerRef, mentionResolveFn, cancelClose, scheduleClose]);
16526
16537
  if (!hovered || !mentionResolveFn) return null;
16527
16538
  const resolved = mentionResolveFn(hovered.id, hovered.entityType, hovered.alias);
16528
- if (!_optionalChain([resolved, 'optionalAccess', _495 => _495.HoverContent])) return null;
16539
+ if (!_optionalChain([resolved, 'optionalAccess', _496 => _496.HoverContent])) return null;
16529
16540
  const ContentComponent = resolved.HoverContent;
16530
16541
  const rect = hovered.element.getBoundingClientRect();
16531
16542
  return _reactdom.createPortal.call(void 0,
@@ -16569,28 +16580,28 @@ var parseMentionElement = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
16569
16580
  }, "parseMentionElement");
16570
16581
  var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn, disableMention, nameResolver) => {
16571
16582
  const MentionExternalHTML = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
16572
- const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _496 => _496(props.id, props.entityType, props.alias)]), () => ( props.alias));
16583
+ const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _497 => _497(props.id, props.entityType, props.alias)]), () => ( props.alias));
16573
16584
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "data-mention-id": props.id, "data-mention-type": props.entityType, "data-mention-alias": props.alias, children: [
16574
16585
  "@",
16575
16586
  displayName
16576
16587
  ] });
16577
16588
  }, "MentionExternalHTML");
16578
16589
  const Mention = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function Mention2(props) {
16579
- const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _497 => _497(props.id, props.entityType, props.alias)]), () => ( props.alias));
16590
+ const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _498 => _498(props.id, props.entityType, props.alias)]), () => ( props.alias));
16580
16591
  if (disableMention) {
16581
- const resolved2 = _optionalChain([resolveFn, 'optionalCall', _498 => _498(props.id, props.entityType, displayName)]);
16582
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _499 => _499.url]), () => ( "#")), className: "text-primary", children: [
16592
+ const resolved2 = _optionalChain([resolveFn, 'optionalCall', _499 => _499(props.id, props.entityType, displayName)]);
16593
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _500 => _500.url]), () => ( "#")), className: "text-primary", children: [
16583
16594
  "@",
16584
16595
  displayName
16585
16596
  ] });
16586
16597
  }
16587
- const resolved = _optionalChain([resolveFn, 'optionalCall', _500 => _500(props.id, props.entityType, displayName)]);
16588
- if (_optionalChain([resolved, 'optionalAccess', _501 => _501.Inline])) {
16598
+ const resolved = _optionalChain([resolveFn, 'optionalCall', _501 => _501(props.id, props.entityType, displayName)]);
16599
+ if (_optionalChain([resolved, 'optionalAccess', _502 => _502.Inline])) {
16589
16600
  const Custom = resolved.Inline;
16590
16601
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props, alias: displayName });
16591
16602
  }
16592
- const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _502 => _502.url]), () => ( "#"));
16593
- const handleClick = _optionalChain([resolved, 'optionalAccess', _503 => _503.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
16603
+ const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _503 => _503.url]), () => ( "#"));
16604
+ const handleClick = _optionalChain([resolved, 'optionalAccess', _504 => _504.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
16594
16605
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
16595
16606
  _link2.default,
16596
16607
  {
@@ -16698,7 +16709,7 @@ function BlockNoteEditorMentionSuggestionMenu({
16698
16709
  if (!suggestionMenuComponent) return void 0;
16699
16710
  const Component2 = suggestionMenuComponent;
16700
16711
  const Wrapped = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
16701
- const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _504 => _504.items, 'access', _505 => _505[0], 'optionalAccess', _506 => _506.title]) === KEEP_OPEN_SENTINEL_TITLE;
16712
+ const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _505 => _505.items, 'access', _506 => _506[0], 'optionalAccess', _507 => _507.title]) === KEEP_OPEN_SENTINEL_TITLE;
16702
16713
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
16703
16714
  Component2,
16704
16715
  {
@@ -16707,7 +16718,7 @@ function BlockNoteEditorMentionSuggestionMenu({
16707
16718
  selectedIndex: isSentinelOnly ? void 0 : props.selectedIndex,
16708
16719
  onItemClick: (item) => {
16709
16720
  if (item.title === KEEP_OPEN_SENTINEL_TITLE) return;
16710
- _optionalChain([props, 'access', _507 => _507.onItemClick, 'optionalCall', _508 => _508(item)]);
16721
+ _optionalChain([props, 'access', _508 => _508.onItemClick, 'optionalCall', _509 => _509(item)]);
16711
16722
  }
16712
16723
  }
16713
16724
  );
@@ -16912,10 +16923,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
16912
16923
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
16913
16924
  Checkbox,
16914
16925
  {
16915
- checked: _optionalChain([params, 'access', _509 => _509.checkedIds, 'optionalAccess', _510 => _510.includes, 'call', _511 => _511(row.getValue(params.name))]) || false,
16926
+ checked: _optionalChain([params, 'access', _510 => _510.checkedIds, 'optionalAccess', _511 => _511.includes, 'call', _512 => _512(row.getValue(params.name))]) || false,
16916
16927
  onCheckedChange: (value) => {
16917
16928
  row.toggleSelected(!!value);
16918
- _optionalChain([params, 'access', _512 => _512.toggleId, 'optionalCall', _513 => _513(row.getValue(params.name))]);
16929
+ _optionalChain([params, 'access', _513 => _513.toggleId, 'optionalCall', _514 => _514(row.getValue(params.name))]);
16919
16930
  },
16920
16931
  "aria-label": "Select row"
16921
16932
  }
@@ -16974,7 +16985,7 @@ function useJsonApiGet(params) {
16974
16985
  const [response, setResponse] = _react.useState.call(void 0, null);
16975
16986
  const isMounted = _react.useRef.call(void 0, true);
16976
16987
  const fetchData = _react.useCallback.call(void 0, async () => {
16977
- if (_optionalChain([params, 'access', _514 => _514.options, 'optionalAccess', _515 => _515.enabled]) === false) return;
16988
+ if (_optionalChain([params, 'access', _515 => _515.options, 'optionalAccess', _516 => _516.enabled]) === false) return;
16978
16989
  setLoading(true);
16979
16990
  setError(null);
16980
16991
  try {
@@ -17001,9 +17012,9 @@ function useJsonApiGet(params) {
17001
17012
  setLoading(false);
17002
17013
  }
17003
17014
  }
17004
- }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _516 => _516.options, 'optionalAccess', _517 => _517.enabled])]);
17015
+ }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _517 => _517.options, 'optionalAccess', _518 => _518.enabled])]);
17005
17016
  const fetchNextPage = _react.useCallback.call(void 0, async () => {
17006
- if (!_optionalChain([response, 'optionalAccess', _518 => _518.nextPage])) return;
17017
+ if (!_optionalChain([response, 'optionalAccess', _519 => _519.nextPage])) return;
17007
17018
  setLoading(true);
17008
17019
  try {
17009
17020
  const nextResponse = await response.nextPage();
@@ -17024,7 +17035,7 @@ function useJsonApiGet(params) {
17024
17035
  }
17025
17036
  }, [response]);
17026
17037
  const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
17027
- if (!_optionalChain([response, 'optionalAccess', _519 => _519.prevPage])) return;
17038
+ if (!_optionalChain([response, 'optionalAccess', _520 => _520.prevPage])) return;
17028
17039
  setLoading(true);
17029
17040
  try {
17030
17041
  const prevResponse = await response.prevPage();
@@ -17050,15 +17061,15 @@ function useJsonApiGet(params) {
17050
17061
  return () => {
17051
17062
  isMounted.current = false;
17052
17063
  };
17053
- }, [fetchData, ..._optionalChain([params, 'access', _520 => _520.options, 'optionalAccess', _521 => _521.deps]) || []]);
17064
+ }, [fetchData, ..._optionalChain([params, 'access', _521 => _521.options, 'optionalAccess', _522 => _522.deps]) || []]);
17054
17065
  return {
17055
17066
  data,
17056
17067
  loading,
17057
17068
  error,
17058
17069
  response,
17059
17070
  refetch: fetchData,
17060
- hasNextPage: !!_optionalChain([response, 'optionalAccess', _522 => _522.next]),
17061
- hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _523 => _523.prev]),
17071
+ hasNextPage: !!_optionalChain([response, 'optionalAccess', _523 => _523.next]),
17072
+ hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _524 => _524.prev]),
17062
17073
  fetchNextPage,
17063
17074
  fetchPreviousPage
17064
17075
  };
@@ -17136,17 +17147,17 @@ function useJsonApiMutation(config) {
17136
17147
  if (apiResponse.ok) {
17137
17148
  const resultData = apiResponse.data;
17138
17149
  setData(resultData);
17139
- _optionalChain([config, 'access', _524 => _524.onSuccess, 'optionalCall', _525 => _525(resultData)]);
17150
+ _optionalChain([config, 'access', _525 => _525.onSuccess, 'optionalCall', _526 => _526(resultData)]);
17140
17151
  return resultData;
17141
17152
  } else {
17142
17153
  setError(apiResponse.error);
17143
- _optionalChain([config, 'access', _526 => _526.onError, 'optionalCall', _527 => _527(apiResponse.error)]);
17154
+ _optionalChain([config, 'access', _527 => _527.onError, 'optionalCall', _528 => _528(apiResponse.error)]);
17144
17155
  return null;
17145
17156
  }
17146
17157
  } catch (err) {
17147
17158
  const errorMessage = err instanceof Error ? err.message : "Unknown error";
17148
17159
  setError(errorMessage);
17149
- _optionalChain([config, 'access', _528 => _528.onError, 'optionalCall', _529 => _529(errorMessage)]);
17160
+ _optionalChain([config, 'access', _529 => _529.onError, 'optionalCall', _530 => _530(errorMessage)]);
17150
17161
  return null;
17151
17162
  } finally {
17152
17163
  setLoading(false);
@@ -17219,7 +17230,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
17219
17230
  {
17220
17231
  href: hasRole(_chunkG4JR3SFVjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
17221
17232
  page: "/administration",
17222
- id: _optionalChain([_chunk5PNDDYGLjs.Modules, 'access', _530 => _530.Company, 'access', _531 => _531.pageUrl, 'optionalAccess', _532 => _532.substring, 'call', _533 => _533(1)]),
17233
+ id: _optionalChain([_chunk5PNDDYGLjs.Modules, 'access', _531 => _531.Company, 'access', _532 => _532.pageUrl, 'optionalAccess', _533 => _533.substring, 'call', _534 => _534(1)]),
17223
17234
  childPage: company.id
17224
17235
  }) : generateUrl({ page: _chunk5PNDDYGLjs.Modules.Company, id: company.id }),
17225
17236
  children: row.getValue("name")
@@ -17235,7 +17246,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
17235
17246
  })
17236
17247
  };
17237
17248
  const columns = _react.useMemo.call(void 0, () => {
17238
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _534 => _534[field], 'optionalCall', _535 => _535()])).filter((col) => col !== void 0);
17249
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _535 => _535[field], 'optionalCall', _536 => _536()])).filter((col) => col !== void 0);
17239
17250
  }, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
17240
17251
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17241
17252
  }, "useCompanyTableStructure");
@@ -17248,7 +17259,7 @@ var DAY_MS = 1e3 * 60 * 60 * 24;
17248
17259
  var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
17249
17260
  if (!currentUser || !_chunkG4JR3SFVjs.isRolesConfigured.call(void 0, )) return false;
17250
17261
  const adminRoleId = _chunkG4JR3SFVjs.getRoleId.call(void 0, ).Administrator;
17251
- return !!_optionalChain([currentUser, 'access', _536 => _536.roles, 'optionalAccess', _537 => _537.some, 'call', _538 => _538((role) => role.id === adminRoleId)]);
17262
+ return !!_optionalChain([currentUser, 'access', _537 => _537.roles, 'optionalAccess', _538 => _538.some, 'call', _539 => _539((role) => role.id === adminRoleId)]);
17252
17263
  }, "isAdministrator");
17253
17264
  function useSubscriptionStatus() {
17254
17265
  const { company, currentUser } = useCurrentUserContext();
@@ -17365,7 +17376,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
17365
17376
  })
17366
17377
  };
17367
17378
  const columns = _react.useMemo.call(void 0, () => {
17368
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _539 => _539[field], 'optionalCall', _540 => _540()])).filter((col) => col !== void 0);
17379
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _540 => _540[field], 'optionalCall', _541 => _541()])).filter((col) => col !== void 0);
17369
17380
  }, [params.fields, fieldColumnMap, t, generateUrl]);
17370
17381
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17371
17382
  }, "useRoleTableStructure");
@@ -17410,8 +17421,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, formatCurrency, "formatCurrency");
17410
17421
  var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
17411
17422
  const t = _nextintl.useTranslations.call(void 0, );
17412
17423
  const generateUrl = usePageUrlGenerator();
17413
- const onClone = _optionalChain([params, 'access', _541 => _541.context, 'optionalAccess', _542 => _542.onClone]);
17414
- const onExport = _optionalChain([params, 'access', _543 => _543.context, 'optionalAccess', _544 => _544.onExport]);
17424
+ const onClone = _optionalChain([params, 'access', _542 => _542.context, 'optionalAccess', _543 => _543.onClone]);
17425
+ const onExport = _optionalChain([params, 'access', _544 => _544.context, 'optionalAccess', _545 => _545.onExport]);
17415
17426
  const tableData = _react.useMemo.call(void 0, () => {
17416
17427
  return params.data.map((price) => {
17417
17428
  const entry = { jsonApiData: price };
@@ -17476,7 +17487,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
17476
17487
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex flex-wrap items-center gap-1", children: [
17477
17488
  price.active ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softGreen", children: t("billing.admin.prices.status.active") }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softGray", children: t("billing.admin.prices.status.archived") }),
17478
17489
  price.isTrial && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.trial") }),
17479
- _optionalChain([price, 'access', _545 => _545.recurring, 'optionalAccess', _546 => _546.usageType]) === "metered" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.metered") })
17490
+ _optionalChain([price, 'access', _546 => _546.recurring, 'optionalAccess', _547 => _547.usageType]) === "metered" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.metered") })
17480
17491
  ] });
17481
17492
  }, "cell"),
17482
17493
  enableSorting: false,
@@ -17524,7 +17535,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
17524
17535
  })
17525
17536
  };
17526
17537
  const columns = _react.useMemo.call(void 0, () => {
17527
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _547 => _547[field], 'optionalCall', _548 => _548()])).filter((col) => col !== void 0);
17538
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _548 => _548[field], 'optionalCall', _549 => _549()])).filter((col) => col !== void 0);
17528
17539
  }, [params.fields, fieldColumnMap, t, generateUrl, onClone, onExport]);
17529
17540
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17530
17541
  }, "useStripePriceTableStructure");
@@ -17583,7 +17594,7 @@ var useStripeProductTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.cal
17583
17594
  })
17584
17595
  };
17585
17596
  const columns = _react.useMemo.call(void 0, () => {
17586
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _549 => _549[field], 'optionalCall', _550 => _550()])).filter((col) => col !== void 0);
17597
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _550 => _550[field], 'optionalCall', _551 => _551()])).filter((col) => col !== void 0);
17587
17598
  }, [params.fields, fieldColumnMap, t, generateUrl]);
17588
17599
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17589
17600
  }, "useStripeProductTableStructure");
@@ -17606,7 +17617,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, parseQuestionnaire, "parseQuestionnaire");
17606
17617
  var useWaitlistTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
17607
17618
  const t = _nextintl.useTranslations.call(void 0, );
17608
17619
  const locale = _chunk5PNDDYGLjs.useI18nLocale.call(void 0, );
17609
- const onInvite = _optionalChain([params, 'access', _551 => _551.context, 'optionalAccess', _552 => _552.onInvite]);
17620
+ const onInvite = _optionalChain([params, 'access', _552 => _552.context, 'optionalAccess', _553 => _553.onInvite]);
17610
17621
  const tableData = _react.useMemo.call(void 0, () => {
17611
17622
  return params.data.map((entry) => {
17612
17623
  const row = { jsonApiData: entry };
@@ -17686,7 +17697,7 @@ var useWaitlistTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
17686
17697
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
17687
17698
  const entry = row.original.jsonApiData;
17688
17699
  if (entry.status === "confirmed") {
17689
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Button, { size: "sm", variant: "outline", onClick: () => _optionalChain([onInvite, 'optionalCall', _553 => _553(entry)]), children: [
17700
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Button, { size: "sm", variant: "outline", onClick: () => _optionalChain([onInvite, 'optionalCall', _554 => _554(entry)]), children: [
17690
17701
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Send, { className: "me-2 h-4 w-4" }),
17691
17702
  t("waitlist.admin.actions.invite")
17692
17703
  ] });
@@ -17704,7 +17715,7 @@ var useWaitlistTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
17704
17715
  })
17705
17716
  };
17706
17717
  const columns = _react.useMemo.call(void 0, () => {
17707
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _554 => _554[field], 'optionalCall', _555 => _555()])).filter((col) => col !== void 0);
17718
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _555 => _555[field], 'optionalCall', _556 => _556()])).filter((col) => col !== void 0);
17708
17719
  }, [params.fields, fieldColumnMap, t, locale]);
17709
17720
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17710
17721
  }, "useWaitlistTableStructure");
@@ -17805,11 +17816,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
17805
17816
  return params.fields.map((field) => {
17806
17817
  const localHandler = fieldColumnMap[field];
17807
17818
  if (localHandler) return localHandler();
17808
- const customHandler = _optionalChain([params, 'access', _556 => _556.context, 'optionalAccess', _557 => _557.customCells, 'optionalAccess', _558 => _558[field]]);
17819
+ const customHandler = _optionalChain([params, 'access', _557 => _557.context, 'optionalAccess', _558 => _558.customCells, 'optionalAccess', _559 => _559[field]]);
17809
17820
  if (customHandler) return customHandler({ t });
17810
17821
  return void 0;
17811
17822
  }).filter((col) => col !== void 0);
17812
- }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _559 => _559.context, 'optionalAccess', _560 => _560.customCells])]);
17823
+ }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _560 => _560.context, 'optionalAccess', _561 => _561.customCells])]);
17813
17824
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17814
17825
  }, "useContentTableStructure");
17815
17826
 
@@ -18035,14 +18046,14 @@ function useOAuthConsent(params, options) {
18035
18046
  const [error, setError] = _react.useState.call(void 0, null);
18036
18047
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
18037
18048
  const [companyId, setCompanyId] = _react.useState.call(void 0, void 0);
18038
- const contextCompanyId = _optionalChain([useCurrentUserContextOptional, 'call', _561 => _561(), 'optionalAccess', _562 => _562.company, 'optionalAccess', _563 => _563.id]);
18039
- const currentCompanyId = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _564 => _564.defaultCompanyId]), () => ( contextCompanyId));
18049
+ const contextCompanyId = _optionalChain([useCurrentUserContextOptional, 'call', _562 => _562(), 'optionalAccess', _563 => _563.company, 'optionalAccess', _564 => _564.id]);
18050
+ const currentCompanyId = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _565 => _565.defaultCompanyId]), () => ( contextCompanyId));
18040
18051
  _react.useEffect.call(void 0, () => {
18041
- const companies = _nullishCoalesce(_optionalChain([clientInfo, 'optionalAccess', _565 => _565.companies]), () => ( []));
18052
+ const companies = _nullishCoalesce(_optionalChain([clientInfo, 'optionalAccess', _566 => _566.companies]), () => ( []));
18042
18053
  if (companies.length === 0) return;
18043
18054
  if (companyId && companies.some((company) => company.id === companyId)) return;
18044
18055
  const current = currentCompanyId ? companies.find((company) => company.id === currentCompanyId) : void 0;
18045
- setCompanyId(_nullishCoalesce(_optionalChain([current, 'optionalAccess', _566 => _566.id]), () => ( _optionalChain([companies, 'access', _567 => _567[0], 'optionalAccess', _568 => _568.id]))));
18056
+ setCompanyId(_nullishCoalesce(_optionalChain([current, 'optionalAccess', _567 => _567.id]), () => ( _optionalChain([companies, 'access', _568 => _568[0], 'optionalAccess', _569 => _569.id]))));
18046
18057
  }, [clientInfo, currentCompanyId, companyId]);
18047
18058
  _react.useEffect.call(void 0, () => {
18048
18059
  const fetchInfo = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
@@ -18160,7 +18171,7 @@ function ContentTableSearch({ data }) {
18160
18171
  const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
18161
18172
  if (!isExpanded) {
18162
18173
  setIsFocused(true);
18163
- setTimeout(() => _optionalChain([inputRef, 'access', _569 => _569.current, 'optionalAccess', _570 => _570.focus, 'call', _571 => _571()]), 50);
18174
+ setTimeout(() => _optionalChain([inputRef, 'access', _570 => _570.current, 'optionalAccess', _571 => _571.focus, 'call', _572 => _572()]), 50);
18164
18175
  }
18165
18176
  }, "handleSearchIconClick");
18166
18177
  const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
@@ -18246,7 +18257,7 @@ function getGroupKeys(item, field) {
18246
18257
  return [String(_nullishCoalesce(value, () => ( "")))];
18247
18258
  }
18248
18259
  _chunk7QVYU63Ejs.__name.call(void 0, getGroupKeys, "getGroupKeys");
18249
- var isClassComponent = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (component) => typeof component === "function" && !!_optionalChain([component, 'access', _572 => _572.prototype, 'optionalAccess', _573 => _573.isReactComponent]), "isClassComponent");
18260
+ var isClassComponent = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (component) => typeof component === "function" && !!_optionalChain([component, 'access', _573 => _573.prototype, 'optionalAccess', _574 => _574.isReactComponent]), "isClassComponent");
18250
18261
  function StableCell({ render, context }) {
18251
18262
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: render(context) });
18252
18263
  }
@@ -18270,7 +18281,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
18270
18281
  if (data.isLoaded) setPendingDirection(null);
18271
18282
  }, [data.isLoaded]);
18272
18283
  const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
18273
- data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _574 => _574.data]), () => ( EMPTY_ARRAY)),
18284
+ data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _575 => _575.data]), () => ( EMPTY_ARRAY)),
18274
18285
  fields,
18275
18286
  checkedIds,
18276
18287
  toggleId,
@@ -18294,7 +18305,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
18294
18305
  ...props.renderExpandedRow && {
18295
18306
  getExpandedRowModel: _reacttable.getExpandedRowModel.call(void 0, ),
18296
18307
  // Key rows by record id so an expansion stays with its record when a search or filter reorders the rows.
18297
- getRowId: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (row, index) => _nullishCoalesce(_optionalChain([row, 'access', _575 => _575.jsonApiData, 'optionalAccess', _576 => _576.id]), () => ( String(index))), "getRowId"),
18308
+ getRowId: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (row, index) => _nullishCoalesce(_optionalChain([row, 'access', _576 => _576.jsonApiData, 'optionalAccess', _577 => _577.id]), () => ( String(index))), "getRowId"),
18298
18309
  getRowCanExpand: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => true, "getRowCanExpand"),
18299
18310
  onExpandedChange: setExpanded,
18300
18311
  state: { expanded }
@@ -18311,7 +18322,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
18311
18322
  });
18312
18323
  const rowModel = tableData ? table.getRowModel() : null;
18313
18324
  const groupedRows = _react.useMemo.call(void 0, () => {
18314
- if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _577 => _577.rows, 'optionalAccess', _578 => _578.length])) return null;
18325
+ if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _578 => _578.rows, 'optionalAccess', _579 => _579.length])) return null;
18315
18326
  const groupMap = /* @__PURE__ */ new Map();
18316
18327
  for (const row of rowModel.rows) {
18317
18328
  const keys = getGroupKeys(row.original, props.groupBy);
@@ -18390,20 +18401,20 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
18390
18401
  ) }),
18391
18402
  !props.hideHeader && table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
18392
18403
  const meta = header.column.columnDef.meta;
18393
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _579 => _579.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
18404
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _580 => _580.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
18394
18405
  }) }, headerGroup.id))
18395
18406
  ] }),
18396
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _580 => _580.rows, 'optionalAccess', _581 => _581.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
18397
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "bg-muted px-4 py-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MicroLabel, { children: _nullishCoalesce(_optionalChain([props, 'access', _582 => _582.groupLabel, 'optionalCall', _583 => _583(group.groupKey)]), () => ( group.groupKey)) }) }) }),
18407
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _581 => _581.rows, 'optionalAccess', _582 => _582.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
18408
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "bg-muted px-4 py-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MicroLabel, { children: _nullishCoalesce(_optionalChain([props, 'access', _583 => _583.groupLabel, 'optionalCall', _584 => _584(group.groupKey)]), () => ( group.groupKey)) }) }) }),
18398
18409
  group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
18399
18410
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
18400
18411
  TableRow,
18401
18412
  {
18402
- onClick: () => _optionalChain([onRowClick, 'optionalCall', _584 => _584(row.original.jsonApiData)]),
18413
+ onClick: () => _optionalChain([onRowClick, 'optionalCall', _585 => _585(row.original.jsonApiData)]),
18403
18414
  className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
18404
18415
  children: row.getVisibleCells().map((cell) => {
18405
18416
  const meta = cell.column.columnDef.meta;
18406
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _585 => _585.className]), children: renderCell(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
18417
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _586 => _586.className]), children: renderCell(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
18407
18418
  })
18408
18419
  }
18409
18420
  ),
@@ -18413,11 +18424,11 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
18413
18424
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
18414
18425
  TableRow,
18415
18426
  {
18416
- onClick: () => _optionalChain([onRowClick, 'optionalCall', _586 => _586(row.original.jsonApiData)]),
18427
+ onClick: () => _optionalChain([onRowClick, 'optionalCall', _587 => _587(row.original.jsonApiData)]),
18417
18428
  className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
18418
18429
  children: row.getVisibleCells().map((cell) => {
18419
18430
  const meta = cell.column.columnDef.meta;
18420
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _587 => _587.className]), children: renderCell(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
18431
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _588 => _588.className]), children: renderCell(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
18421
18432
  })
18422
18433
  }
18423
18434
  ),
@@ -18432,7 +18443,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
18432
18443
  onClick: (e) => {
18433
18444
  e.preventDefault();
18434
18445
  setPendingDirection("prev");
18435
- _optionalChain([data, 'access', _588 => _588.previous, 'optionalCall', _589 => _589(true)]);
18446
+ _optionalChain([data, 'access', _589 => _589.previous, 'optionalCall', _590 => _590(true)]);
18436
18447
  },
18437
18448
  disabled: !data.previous || pendingDirection !== null,
18438
18449
  children: pendingDirection === "prev" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4 rtl:rotate-180" })
@@ -18447,7 +18458,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
18447
18458
  onClick: (e) => {
18448
18459
  e.preventDefault();
18449
18460
  setPendingDirection("next");
18450
- _optionalChain([data, 'access', _590 => _590.next, 'optionalCall', _591 => _591(true)]);
18461
+ _optionalChain([data, 'access', _591 => _591.next, 'optionalCall', _592 => _592(true)]);
18451
18462
  },
18452
18463
  disabled: !data.next || pendingDirection !== null,
18453
18464
  children: pendingDirection === "next" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4 rtl:rotate-180" })
@@ -18469,7 +18480,7 @@ function ContentListGrid(props) {
18469
18480
  if (!data.next || !sentinelRef.current) return;
18470
18481
  const observer = new IntersectionObserver(
18471
18482
  (entries) => {
18472
- if (_optionalChain([entries, 'access', _592 => _592[0], 'optionalAccess', _593 => _593.isIntersecting])) _optionalChain([data, 'access', _594 => _594.next, 'optionalCall', _595 => _595()]);
18483
+ if (_optionalChain([entries, 'access', _593 => _593[0], 'optionalAccess', _594 => _594.isIntersecting])) _optionalChain([data, 'access', _595 => _595.next, 'optionalCall', _596 => _596()]);
18473
18484
  },
18474
18485
  { threshold: 0.1, rootMargin: "200px" }
18475
18486
  );
@@ -19256,7 +19267,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
19256
19267
  newDigits[index] = digit;
19257
19268
  setDigits(newDigits);
19258
19269
  if (digit && index < 5) {
19259
- _optionalChain([inputRefs, 'access', _596 => _596.current, 'access', _597 => _597[index + 1], 'optionalAccess', _598 => _598.focus, 'call', _599 => _599()]);
19270
+ _optionalChain([inputRefs, 'access', _597 => _597.current, 'access', _598 => _598[index + 1], 'optionalAccess', _599 => _599.focus, 'call', _600 => _600()]);
19260
19271
  }
19261
19272
  const code = newDigits.join("");
19262
19273
  if (code.length === 6 && newDigits.every((d) => d !== "")) {
@@ -19265,7 +19276,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
19265
19276
  }, "handleChange");
19266
19277
  const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
19267
19278
  if (e.key === "Backspace" && !digits[index] && index > 0) {
19268
- _optionalChain([inputRefs, 'access', _600 => _600.current, 'access', _601 => _601[index - 1], 'optionalAccess', _602 => _602.focus, 'call', _603 => _603()]);
19279
+ _optionalChain([inputRefs, 'access', _601 => _601.current, 'access', _602 => _602[index - 1], 'optionalAccess', _603 => _603.focus, 'call', _604 => _604()]);
19269
19280
  }
19270
19281
  }, "handleKeyDown");
19271
19282
  const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
@@ -19274,7 +19285,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
19274
19285
  if (pastedData.length === 6) {
19275
19286
  const newDigits = pastedData.split("");
19276
19287
  setDigits(newDigits);
19277
- _optionalChain([inputRefs, 'access', _604 => _604.current, 'access', _605 => _605[5], 'optionalAccess', _606 => _606.focus, 'call', _607 => _607()]);
19288
+ _optionalChain([inputRefs, 'access', _605 => _605.current, 'access', _606 => _606[5], 'optionalAccess', _607 => _607.focus, 'call', _608 => _608()]);
19278
19289
  onComplete(pastedData);
19279
19290
  }
19280
19291
  }, "handlePaste");
@@ -19486,8 +19497,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
19486
19497
  try {
19487
19498
  const registrationData = await _chunk5PNDDYGLjs.TwoFactorService.getPasskeyRegistrationOptions({
19488
19499
  id: _uuid.v4.call(void 0, ),
19489
- userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _608 => _608.email]), () => ( "")),
19490
- userDisplayName: _optionalChain([currentUser, 'optionalAccess', _609 => _609.name])
19500
+ userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _609 => _609.email]), () => ( "")),
19501
+ userDisplayName: _optionalChain([currentUser, 'optionalAccess', _610 => _610.name])
19491
19502
  });
19492
19503
  const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
19493
19504
  await _chunk5PNDDYGLjs.TwoFactorService.verifyPasskeyRegistration({
@@ -19639,7 +19650,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
19639
19650
  const setup = await _chunk5PNDDYGLjs.TwoFactorService.setupTotp({
19640
19651
  id: _uuid.v4.call(void 0, ),
19641
19652
  name: name.trim(),
19642
- accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _610 => _610.email]), () => ( ""))
19653
+ accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _611 => _611.email]), () => ( ""))
19643
19654
  });
19644
19655
  setQrCodeUri(setup.qrCodeUri);
19645
19656
  setAuthenticatorId(setup.authenticatorId);
@@ -19773,7 +19784,7 @@ function TwoFactorSettings() {
19773
19784
  if (isLoading) {
19774
19785
  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") }) }) });
19775
19786
  }
19776
- const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _611 => _611.isEnabled]), () => ( false));
19787
+ const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _612 => _612.isEnabled]), () => ( false));
19777
19788
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
19778
19789
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
19779
19790
  isEnabled ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ShieldCheck, { className: "text-success h-6 w-6" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ShieldAlert, { className: "text-warning h-6 w-6" }),
@@ -19811,7 +19822,7 @@ function TwoFactorSettings() {
19811
19822
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
19812
19823
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
19813
19824
  ] }),
19814
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _612 => _612.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
19825
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _613 => _613.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
19815
19826
  ] }) }),
19816
19827
  !isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
19817
19828
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
@@ -19989,9 +20000,9 @@ function AcceptInvitation() {
19989
20000
  });
19990
20001
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
19991
20002
  try {
19992
- if (!_optionalChain([params, 'optionalAccess', _613 => _613.code])) return;
20003
+ if (!_optionalChain([params, 'optionalAccess', _614 => _614.code])) return;
19993
20004
  const payload = {
19994
- code: _optionalChain([params, 'optionalAccess', _614 => _614.code]),
20005
+ code: _optionalChain([params, 'optionalAccess', _615 => _615.code]),
19995
20006
  password: values.password
19996
20007
  };
19997
20008
  await _chunk5PNDDYGLjs.AuthService.acceptInvitation(payload);
@@ -20362,14 +20373,14 @@ function RefreshUser() {
20362
20373
  setUser(fullUser);
20363
20374
  const token = {
20364
20375
  userId: fullUser.id,
20365
- companyId: _optionalChain([fullUser, 'access', _615 => _615.company, 'optionalAccess', _616 => _616.id]),
20376
+ companyId: _optionalChain([fullUser, 'access', _616 => _616.company, 'optionalAccess', _617 => _617.id]),
20366
20377
  roles: fullUser.roles.map((role) => role.id),
20367
- features: _nullishCoalesce(_optionalChain([fullUser, 'access', _617 => _617.company, 'optionalAccess', _618 => _618.features, 'optionalAccess', _619 => _619.map, 'call', _620 => _620((feature) => feature.id)]), () => ( [])),
20378
+ features: _nullishCoalesce(_optionalChain([fullUser, 'access', _618 => _618.company, 'optionalAccess', _619 => _619.features, 'optionalAccess', _620 => _620.map, 'call', _621 => _621((feature) => feature.id)]), () => ( [])),
20368
20379
  modules: fullUser.modules.map((module) => {
20369
20380
  return { id: module.id, permissions: module.permissions };
20370
20381
  })
20371
20382
  };
20372
- await _optionalChain([_chunk5PNDDYGLjs.getTokenHandler.call(void 0, ), 'optionalAccess', _621 => _621.updateToken, 'call', _622 => _622(token)]);
20383
+ await _optionalChain([_chunk5PNDDYGLjs.getTokenHandler.call(void 0, ), 'optionalAccess', _622 => _622.updateToken, 'call', _623 => _623(token)]);
20373
20384
  _cookiesnext.deleteCookie.call(void 0, "reloadData");
20374
20385
  }
20375
20386
  }, "loadFullUser");
@@ -20433,9 +20444,9 @@ function ResetPassword() {
20433
20444
  });
20434
20445
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
20435
20446
  try {
20436
- if (!_optionalChain([params, 'optionalAccess', _623 => _623.code])) return;
20447
+ if (!_optionalChain([params, 'optionalAccess', _624 => _624.code])) return;
20437
20448
  const payload = {
20438
- code: _optionalChain([params, 'optionalAccess', _624 => _624.code]),
20449
+ code: _optionalChain([params, 'optionalAccess', _625 => _625.code]),
20439
20450
  password: values.password
20440
20451
  };
20441
20452
  await _chunk5PNDDYGLjs.AuthService.resetPassword(payload);
@@ -20970,7 +20981,7 @@ function AiConnectionEditor({
20970
20981
  const registryRows = _react.useMemo.call(void 0, () => _nullishCoalesce(providerRegistry[connectionType], () => ( [])), [providerRegistry, connectionType]);
20971
20982
  const providers = _react.useMemo.call(void 0, () => registryRows.map((row) => row.provider), [registryRows]);
20972
20983
  const fieldsFor = _react.useCallback.call(void 0,
20973
- (provider) => _nullishCoalesce(_optionalChain([registryRows, 'access', _625 => _625.find, 'call', _626 => _626((row) => row.provider === provider), 'optionalAccess', _627 => _627.fields]), () => ( [])),
20984
+ (provider) => _nullishCoalesce(_optionalChain([registryRows, 'access', _626 => _626.find, 'call', _627 => _627((row) => row.provider === provider), 'optionalAccess', _628 => _628.fields]), () => ( [])),
20974
20985
  [registryRows]
20975
20986
  );
20976
20987
  const defaultsFor = _react.useCallback.call(void 0,
@@ -20979,7 +20990,7 @@ function AiConnectionEditor({
20979
20990
  const seeded = {};
20980
20991
  fieldsFor(provider).forEach((descriptor) => {
20981
20992
  if (descriptor.kind === "boolean") {
20982
- const current2 = _optionalChain([stored, 'optionalAccess', _628 => _628[descriptor.field]]);
20993
+ const current2 = _optionalChain([stored, 'optionalAccess', _629 => _629[descriptor.field]]);
20983
20994
  seeded[descriptor.field] = current2 !== void 0 && current2 !== null ? current2 === true : descriptor.default === true;
20984
20995
  return;
20985
20996
  }
@@ -20987,7 +20998,7 @@ function AiConnectionEditor({
20987
20998
  seeded[descriptor.field] = "";
20988
20999
  return;
20989
21000
  }
20990
- const current = _optionalChain([stored, 'optionalAccess', _629 => _629[descriptor.field]]);
21001
+ const current = _optionalChain([stored, 'optionalAccess', _630 => _630[descriptor.field]]);
20991
21002
  if (current !== void 0 && current !== null) seeded[descriptor.field] = String(current);
20992
21003
  else seeded[descriptor.field] = descriptor.default !== void 0 ? String(descriptor.default) : "";
20993
21004
  });
@@ -21013,7 +21024,7 @@ function AiConnectionEditor({
21013
21024
  values: _zod3.z.record(_zod3.z.string(), _zod3.z.any())
21014
21025
  }).superRefine((data, ctx) => {
21015
21026
  fieldsFor(data.provider).filter((descriptor) => descriptor.required).forEach((descriptor) => {
21016
- const value = _optionalChain([data, 'access', _630 => _630.values, 'optionalAccess', _631 => _631[descriptor.field]]);
21027
+ const value = _optionalChain([data, 'access', _631 => _631.values, 'optionalAccess', _632 => _632[descriptor.field]]);
21017
21028
  const filled = descriptor.kind === "secret" ? !!value || hasStoredSecret(descriptor.field) : descriptor.kind === "boolean" ? value !== void 0 : value !== void 0 && value !== null && String(value).trim() !== "";
21018
21029
  if (filled) return;
21019
21030
  ctx.addIssue({
@@ -21027,11 +21038,11 @@ function AiConnectionEditor({
21027
21038
  );
21028
21039
  const getDefaultValues = _react.useCallback.call(void 0,
21029
21040
  () => ({
21030
- id: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _632 => _632.id]), () => ( _uuid.v4.call(void 0, ))),
21031
- name: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _633 => _633.name]), () => ( "")),
21032
- provider: _nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _634 => _634.provider]), () => ( providers[0])), () => ( "")),
21033
- enabled: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _635 => _635.enabled]), () => ( true)),
21034
- values: defaultsFor(_nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _636 => _636.provider]), () => ( providers[0])), () => ( "")))
21041
+ id: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _633 => _633.id]), () => ( _uuid.v4.call(void 0, ))),
21042
+ name: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _634 => _634.name]), () => ( "")),
21043
+ provider: _nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _635 => _635.provider]), () => ( providers[0])), () => ( "")),
21044
+ enabled: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _636 => _636.enabled]), () => ( true)),
21045
+ values: defaultsFor(_nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _637 => _637.provider]), () => ( providers[0])), () => ( "")))
21035
21046
  }),
21036
21047
  [connection, providers, defaultsFor]
21037
21048
  );
@@ -21042,7 +21053,7 @@ function AiConnectionEditor({
21042
21053
  _react.useEffect.call(void 0, () => {
21043
21054
  if (registryRows.length === 0) return;
21044
21055
  const currentProvider = form.getValues("provider");
21045
- const provider = currentProvider || _optionalChain([connection, 'optionalAccess', _637 => _637.provider]) || providers[0] || "";
21056
+ const provider = currentProvider || _optionalChain([connection, 'optionalAccess', _638 => _638.provider]) || providers[0] || "";
21046
21057
  if (!provider) return;
21047
21058
  if (provider !== currentProvider) form.setValue("provider", provider);
21048
21059
  const currentValues = form.getValues("values");
@@ -21113,7 +21124,7 @@ function AiConnectionEditor({
21113
21124
  {
21114
21125
  form,
21115
21126
  entityType: t("ai_connections.admin.entity"),
21116
- entityName: _optionalChain([connection, 'optionalAccess', _638 => _638.name]),
21127
+ entityName: _optionalChain([connection, 'optionalAccess', _639 => _639.name]),
21117
21128
  isEdit,
21118
21129
  module: _chunk5PNDDYGLjs.Modules.AiConnection,
21119
21130
  size: "md",
@@ -21121,7 +21132,7 @@ function AiConnectionEditor({
21121
21132
  onSubmit: async (values) => {
21122
21133
  const attributes = {};
21123
21134
  fieldsFor(values.provider).forEach((descriptor) => {
21124
- const coerced = coerce(descriptor, _optionalChain([values, 'access', _639 => _639.values, 'optionalAccess', _640 => _640[descriptor.field]]));
21135
+ const coerced = coerce(descriptor, _optionalChain([values, 'access', _640 => _640.values, 'optionalAccess', _641 => _641[descriptor.field]]));
21125
21136
  if (coerced !== void 0) attributes[descriptor.field] = coerced;
21126
21137
  });
21127
21138
  const payload = {
@@ -21351,7 +21362,7 @@ function AiConnectionTypeCard({ connectionType }) {
21351
21362
  ),
21352
21363
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-muted/40 flex flex-wrap items-center gap-2 px-3 py-2", children: [
21353
21364
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softGray", children: t("ai_connections.admin.env_fallback") }),
21354
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground truncate text-xs", children: [_optionalChain([envDefault, 'optionalAccess', _641 => _641.provider]), _optionalChain([envDefault, 'optionalAccess', _642 => _642.model]), _optionalChain([envDefault, 'optionalAccess', _643 => _643.url])].filter(Boolean).join(" \xB7 ") })
21365
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground truncate text-xs", children: [_optionalChain([envDefault, 'optionalAccess', _642 => _642.provider]), _optionalChain([envDefault, 'optionalAccess', _643 => _643.model]), _optionalChain([envDefault, 'optionalAccess', _644 => _644.url])].filter(Boolean).join(" \xB7 ") })
21355
21366
  ] })
21356
21367
  ] })
21357
21368
  ] })
@@ -21549,7 +21560,7 @@ function extractHeadings(blocks) {
21549
21560
  function processBlocks(blockArray) {
21550
21561
  for (const block of blockArray) {
21551
21562
  if (block.type === "heading") {
21552
- const level = _optionalChain([block, 'access', _644 => _644.props, 'optionalAccess', _645 => _645.level]) || 1;
21563
+ const level = _optionalChain([block, 'access', _645 => _645.props, 'optionalAccess', _646 => _646.level]) || 1;
21553
21564
  const text = extractTextFromContent(block.content);
21554
21565
  if (text.trim()) {
21555
21566
  headings.push({
@@ -21909,7 +21920,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
21909
21920
  })
21910
21921
  };
21911
21922
  const columns = _react.useMemo.call(void 0, () => {
21912
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _646 => _646[field], 'optionalCall', _647 => _647()])).filter((col) => col !== void 0);
21923
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _647 => _647[field], 'optionalCall', _648 => _648()])).filter((col) => col !== void 0);
21913
21924
  }, [params.fields, fieldColumnMap, t, generateUrl]);
21914
21925
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
21915
21926
  }, "useHowToTableStructure");
@@ -22035,7 +22046,7 @@ function HowToSelector({
22035
22046
  }, "setHowTo");
22036
22047
  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: [
22037
22048
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
22038
- /* @__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', _648 => _648.value, 'optionalAccess', _649 => _649.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 }) }))) }) }) }),
22049
+ /* @__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', _649 => _649.value, 'optionalAccess', _650 => _650.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 }) }))) }) }) }),
22039
22050
  field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
22040
22051
  _lucidereact.CircleX,
22041
22052
  {
@@ -22338,10 +22349,10 @@ function CitationsTab({ citations, sources }) {
22338
22349
  ] }) }),
22339
22350
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
22340
22351
  const isOpen = expanded.has(chunk.id);
22341
- const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _650 => _650.get, 'call', _651 => _651(chunk.nodeId)]) : void 0;
22352
+ const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _651 => _651.get, 'call', _652 => _652(chunk.nodeId)]) : void 0;
22342
22353
  const typeLabel = chunk.nodeType ? entityLabel(chunk.nodeType) : t("features.assistant.message.sources.source");
22343
22354
  const fallbackName = chunk.nodeId ? `${typeLabel} ${chunk.nodeId.slice(0, 8)}` : typeLabel;
22344
- const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _652 => _652.name]), () => ( fallbackName));
22355
+ const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _653 => _653.name]), () => ( fallbackName));
22345
22356
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
22346
22357
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
22347
22358
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -22405,7 +22416,7 @@ function ContentsTab({ citations, sources }) {
22405
22416
  for (const c of citations) {
22406
22417
  const id = c.nodeId;
22407
22418
  if (!id) continue;
22408
- const source = _optionalChain([sources, 'optionalAccess', _653 => _653.get, 'call', _654 => _654(id)]);
22419
+ const source = _optionalChain([sources, 'optionalAccess', _654 => _654.get, 'call', _655 => _655(id)]);
22409
22420
  if (!source) continue;
22410
22421
  const existing = map.get(id);
22411
22422
  if (existing) {
@@ -22472,7 +22483,7 @@ function UsersTab({ users, citations, sources }) {
22472
22483
  const generate = usePageUrlGenerator();
22473
22484
  const userMap = /* @__PURE__ */ new Map();
22474
22485
  for (const u of users) {
22475
- if (!_optionalChain([u, 'optionalAccess', _655 => _655.id])) continue;
22486
+ if (!_optionalChain([u, 'optionalAccess', _656 => _656.id])) continue;
22476
22487
  userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
22477
22488
  }
22478
22489
  if (citations && sources) {
@@ -22577,7 +22588,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
22577
22588
  }
22578
22589
  return ids.size;
22579
22590
  }, [message.citations, sources]);
22580
- const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _656 => _656.length]), () => ( 0));
22591
+ const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _657 => _657.length]), () => ( 0));
22581
22592
  const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
22582
22593
  const visibleTabs = [];
22583
22594
  if (suggestionsCount > 0) visibleTabs.push("suggested");
@@ -22720,7 +22731,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
22720
22731
  return void 0;
22721
22732
  }
22722
22733
  })()));
22723
- if (_optionalChain([author, 'optionalAccess', _657 => _657.id])) userMap.set(author.id, author);
22734
+ if (_optionalChain([author, 'optionalAccess', _658 => _658.id])) userMap.set(author.id, author);
22724
22735
  }
22725
22736
  return Array.from(userMap.values());
22726
22737
  }, [resolved]);
@@ -22755,7 +22766,7 @@ function MessageItem({
22755
22766
  }) {
22756
22767
  const t = _nextintl.useTranslations.call(void 0, );
22757
22768
  const isUser = message.role === "user";
22758
- const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _658 => _658.has, 'call', _659 => _659(message.id)]);
22769
+ const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _659 => _659.has, 'call', _660 => _660(message.id)]);
22759
22770
  const markdownComponents = _react.useMemo.call(void 0,
22760
22771
  () => ({
22761
22772
  a: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ href, children }) => {
@@ -22772,7 +22783,7 @@ function MessageItem({
22772
22783
  isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
22773
22784
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
22774
22785
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.send_failed") }),
22775
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall', _660 => _660(message.id)]), children: t("features.assistant.retry") })
22786
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall', _661 => _661(message.id)]), children: t("features.assistant.retry") })
22776
22787
  ] })
22777
22788
  ] });
22778
22789
  }
@@ -22863,7 +22874,7 @@ function AssistantThread({
22863
22874
  }) {
22864
22875
  const lastMessageRef = _react.useRef.call(void 0, null);
22865
22876
  _react.useEffect.call(void 0, () => {
22866
- _optionalChain([lastMessageRef, 'access', _661 => _661.current, 'optionalAccess', _662 => _662.scrollIntoView, 'call', _663 => _663({ block: "start", behavior: "smooth" })]);
22877
+ _optionalChain([lastMessageRef, 'access', _662 => _662.current, 'optionalAccess', _663 => _663.scrollIntoView, 'call', _664 => _664({ block: "start", behavior: "smooth" })]);
22867
22878
  }, [messages.length, sending]);
22868
22879
  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: [
22869
22880
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -22902,7 +22913,7 @@ ${message.sources.map((source) => `- \`${source}\``).join("\n")}`;
22902
22913
  return _chunk5PNDDYGLjs.rehydrate.call(void 0, _chunk5PNDDYGLjs.Modules.HandbookThreadMessage, {
22903
22914
  jsonApi: {
22904
22915
  ...dehydrated.jsonApi,
22905
- attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _664 => _664.jsonApi, 'optionalAccess', _665 => _665.attributes]), () => ( {})), content }
22916
+ attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _665 => _665.jsonApi, 'optionalAccess', _666 => _666.attributes]), () => ( {})), content }
22906
22917
  },
22907
22918
  included: dehydrated.included
22908
22919
  });
@@ -22911,8 +22922,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, withSourcesInContent, "withSourcesInContent
22911
22922
  function useHandbookAsk(params) {
22912
22923
  const t = _nextintl.useTranslations.call(void 0, );
22913
22924
  const generateUrl = usePageUrlGenerator();
22914
- const shouldSyncUrl = _nullishCoalesce(_optionalChain([params, 'optionalAccess', _666 => _666.syncUrl]), () => ( true));
22915
- const handbookThreadId = _optionalChain([params, 'optionalAccess', _667 => _667.handbookThreadId]);
22925
+ const shouldSyncUrl = _nullishCoalesce(_optionalChain([params, 'optionalAccess', _667 => _667.syncUrl]), () => ( true));
22926
+ const handbookThreadId = _optionalChain([params, 'optionalAccess', _668 => _668.handbookThreadId]);
22916
22927
  const [threads, setThreads] = _react.useState.call(void 0, []);
22917
22928
  const [thread, setThread] = _react.useState.call(void 0, void 0);
22918
22929
  const [messages, setMessages] = _react.useState.call(void 0, []);
@@ -22974,12 +22985,12 @@ function useHandbookAsk(params) {
22974
22985
  ]);
22975
22986
  setSending(true);
22976
22987
  try {
22977
- let id = _optionalChain([thread, 'optionalAccess', _668 => _668.id]);
22988
+ let id = _optionalChain([thread, 'optionalAccess', _669 => _669.id]);
22978
22989
  if (id === void 0) {
22979
22990
  const created = await _chunk5PNDDYGLjs.HandbookThreadService.create({
22980
22991
  id: _uuid.v4.call(void 0, ),
22981
22992
  question: trimmed,
22982
- handbookPageId: _optionalChain([options, 'optionalAccess', _669 => _669.handbookPageId])
22993
+ handbookPageId: _optionalChain([options, 'optionalAccess', _670 => _670.handbookPageId])
22983
22994
  });
22984
22995
  id = created.id;
22985
22996
  setThreads((current) => [created, ...current]);
@@ -22988,7 +22999,7 @@ function useHandbookAsk(params) {
22988
22999
  id: _uuid.v4.call(void 0, ),
22989
23000
  threadId: id,
22990
23001
  question: trimmed,
22991
- handbookPageId: _optionalChain([options, 'optionalAccess', _670 => _670.handbookPageId])
23002
+ handbookPageId: _optionalChain([options, 'optionalAccess', _671 => _671.handbookPageId])
22992
23003
  });
22993
23004
  }
22994
23005
  const loaded = await _chunk5PNDDYGLjs.HandbookThreadService.findOne({ id });
@@ -23009,7 +23020,7 @@ function useHandbookAsk(params) {
23009
23020
  setSending(false);
23010
23021
  }
23011
23022
  },
23012
- [messages.length, sending, syncUrl, t, _optionalChain([thread, 'optionalAccess', _671 => _671.id])]
23023
+ [messages.length, sending, syncUrl, t, _optionalChain([thread, 'optionalAccess', _672 => _672.id])]
23013
23024
  );
23014
23025
  return { threads, thread, messages, sending, ask, selectThread, startNew };
23015
23026
  }
@@ -23565,7 +23576,7 @@ function HandbookPageContainer({ handbookPageId }) {
23565
23576
  };
23566
23577
  }, []);
23567
23578
  const section = _react.useMemo.call(void 0,
23568
- () => sections.find((candidate) => candidate.key === _optionalChain([handbookPage, 'optionalAccess', _672 => _672.section])),
23579
+ () => sections.find((candidate) => candidate.key === _optionalChain([handbookPage, 'optionalAccess', _673 => _673.section])),
23569
23580
  [sections, handbookPage]
23570
23581
  );
23571
23582
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -23654,7 +23665,7 @@ function AssistantSidebar({
23654
23665
  className: "block w-full truncate rounded-md px-2 py-1.5 text-start text-sm " + (activeId === thread.id ? "bg-primary/10 text-primary" : "hover:bg-muted text-foreground"),
23655
23666
  children: [
23656
23667
  thread.title,
23657
- _optionalChain([renderThreadBadge, 'optionalCall', _673 => _673(thread)])
23668
+ _optionalChain([renderThreadBadge, 'optionalCall', _674 => _674(thread)])
23658
23669
  ]
23659
23670
  },
23660
23671
  thread.id
@@ -23690,7 +23701,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
23690
23701
  AssistantSidebar,
23691
23702
  {
23692
23703
  threads,
23693
- activeId: _optionalChain([thread, 'optionalAccess', _674 => _674.id]),
23704
+ activeId: _optionalChain([thread, 'optionalAccess', _675 => _675.id]),
23694
23705
  onSelect: selectThread,
23695
23706
  onNew: startNew,
23696
23707
  newLabel: t("handbook.chat.new"),
@@ -23698,7 +23709,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
23698
23709
  }
23699
23710
  ) })
23700
23711
  ),
23701
- [selectThread, startNew, t, _optionalChain([thread, 'optionalAccess', _675 => _675.id]), threads]
23712
+ [selectThread, startNew, t, _optionalChain([thread, 'optionalAccess', _676 => _676.id]), threads]
23702
23713
  );
23703
23714
  return (
23704
23715
  // `RoundPageContainer` reads the page heading from the shared context, and
@@ -23710,7 +23721,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
23710
23721
  RoundPageContainer,
23711
23722
  {
23712
23723
  module: _chunk5PNDDYGLjs.Modules.HandbookPage,
23713
- id: _optionalChain([thread, 'optionalAccess', _676 => _676.id]),
23724
+ id: _optionalChain([thread, 'optionalAccess', _677 => _677.id]),
23714
23725
  fullWidth: true,
23715
23726
  forceHeader: true,
23716
23727
  defaultDetailsOpen: true,
@@ -23762,7 +23773,7 @@ function EntityMentionLinkView({ type, id, alias }) {
23762
23773
  } catch (e25) {
23763
23774
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: alias });
23764
23775
  }
23765
- if (!_optionalChain([module, 'optionalAccess', _677 => _677.pageUrl])) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: alias });
23776
+ if (!_optionalChain([module, 'optionalAccess', _678 => _678.pageUrl])) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: alias });
23766
23777
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generate({ page: module, id }), children: alias });
23767
23778
  }
23768
23779
  _chunk7QVYU63Ejs.__name.call(void 0, EntityMentionLinkView, "EntityMentionLinkView");
@@ -23894,13 +23905,13 @@ function AssistantContainer({
23894
23905
  AssistantSidebar,
23895
23906
  {
23896
23907
  threads: ctx.threads,
23897
- activeId: _optionalChain([ctx, 'access', _678 => _678.assistant, 'optionalAccess', _679 => _679.id]),
23908
+ activeId: _optionalChain([ctx, 'access', _679 => _679.assistant, 'optionalAccess', _680 => _680.id]),
23898
23909
  onSelect: ctx.selectThread,
23899
23910
  renderThreadBadge
23900
23911
  }
23901
23912
  ) })
23902
23913
  ),
23903
- [ctx.threads, _optionalChain([ctx, 'access', _680 => _680.assistant, 'optionalAccess', _681 => _681.id]), ctx.selectThread, renderThreadBadge]
23914
+ [ctx.threads, _optionalChain([ctx, 'access', _681 => _681.assistant, 'optionalAccess', _682 => _682.id]), ctx.selectThread, renderThreadBadge]
23904
23915
  );
23905
23916
  const thread = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: !showThread ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
23906
23917
  AssistantEmptyState,
@@ -23908,7 +23919,7 @@ function AssistantContainer({
23908
23919
  onSend: ctx.sendMessage,
23909
23920
  operatorMode: ctx.operatorMode,
23910
23921
  onOperatorModeChange: showOperatorToggle ? ctx.setOperatorMode : void 0,
23911
- composerLeading: _optionalChain([renderScopePicker, 'optionalCall', _682 => _682()])
23922
+ composerLeading: _optionalChain([renderScopePicker, 'optionalCall', _683 => _683()])
23912
23923
  }
23913
23924
  ) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
23914
23925
  ctx.assistant ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -23940,7 +23951,7 @@ function AssistantContainer({
23940
23951
  AssistantSidebar,
23941
23952
  {
23942
23953
  threads: ctx.threads,
23943
- activeId: _optionalChain([ctx, 'access', _683 => _683.assistant, 'optionalAccess', _684 => _684.id]),
23954
+ activeId: _optionalChain([ctx, 'access', _684 => _684.assistant, 'optionalAccess', _685 => _685.id]),
23944
23955
  onSelect: ctx.selectThread,
23945
23956
  onNew: ctx.startNew,
23946
23957
  renderThreadBadge
@@ -23953,7 +23964,7 @@ function AssistantContainer({
23953
23964
  RoundPageContainer,
23954
23965
  {
23955
23966
  module: _chunk5PNDDYGLjs.Modules.Assistant,
23956
- id: _optionalChain([ctx, 'access', _685 => _685.assistant, 'optionalAccess', _686 => _686.id]),
23967
+ id: _optionalChain([ctx, 'access', _686 => _686.assistant, 'optionalAccess', _687 => _687.id]),
23957
23968
  fullWidth: true,
23958
23969
  forceHeader: true,
23959
23970
  defaultDetailsOpen: true,
@@ -23981,7 +23992,7 @@ function flattenBlocks(blocks) {
23981
23992
  if (typeof inline === "string") return inline;
23982
23993
  if (!inline || typeof inline !== "object") return "";
23983
23994
  const node = inline;
23984
- if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access', _687 => _687.props, 'optionalAccess', _688 => _688.alias]), () => ( ""));
23995
+ if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access', _688 => _688.props, 'optionalAccess', _689 => _689.alias]), () => ( ""));
23985
23996
  if (typeof node.text === "string") return node.text;
23986
23997
  if (Array.isArray(node.content)) return node.content.map(readInline).join("");
23987
23998
  return "";
@@ -24097,7 +24108,7 @@ function AssistantPageContainer({
24097
24108
  AssistantSidebar,
24098
24109
  {
24099
24110
  threads: ctx.threads,
24100
- activeId: _optionalChain([ctx, 'access', _689 => _689.assistant, 'optionalAccess', _690 => _690.id]),
24111
+ activeId: _optionalChain([ctx, 'access', _690 => _690.assistant, 'optionalAccess', _691 => _691.id]),
24101
24112
  onSelect: ctx.selectThread,
24102
24113
  onNew: ctx.startNew
24103
24114
  }
@@ -24336,12 +24347,12 @@ function ApprovalActionCard({ actionId, summary, onResolved, hiddenRelationshipK
24336
24347
  const presented = _react.useMemo.call(void 0, () => parseOperatorProposal(actionProposal), [actionProposal]);
24337
24348
  const legacy = _react.useMemo.call(void 0, () => presented ? void 0 : parseLegacyProposal(toolArgs), [presented, toolArgs]);
24338
24349
  const isUpdate = toolName === "update_entity";
24339
- const entityLabel = humaniseType(_nullishCoalesce(_nullishCoalesce(_optionalChain([presented, 'optionalAccess', _691 => _691.type]), () => ( _optionalChain([legacy, 'optionalAccess', _692 => _692.type]))), () => ( "")));
24340
- const targetLabel = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _693 => _693.target, 'optionalAccess', _694 => _694.label]), () => ( ""));
24350
+ const entityLabel = humaniseType(_nullishCoalesce(_nullishCoalesce(_optionalChain([presented, 'optionalAccess', _692 => _692.type]), () => ( _optionalChain([legacy, 'optionalAccess', _693 => _693.type]))), () => ( "")));
24351
+ const targetLabel = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _694 => _694.target, 'optionalAccess', _695 => _695.label]), () => ( ""));
24341
24352
  const rows = _react.useMemo.call(void 0, () => {
24342
24353
  const yes = t("features.assistant.approval.proposal.yes");
24343
24354
  const no = t("features.assistant.approval.proposal.no");
24344
- const attributes = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _695 => _695.attributes]), () => ( _optionalChain([legacy, 'optionalAccess', _696 => _696.attributes])));
24355
+ const attributes = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _696 => _696.attributes]), () => ( _optionalChain([legacy, 'optionalAccess', _697 => _697.attributes])));
24345
24356
  const attributeRows = Object.entries(_nullishCoalesce(attributes, () => ( {}))).flatMap(([key, value]) => {
24346
24357
  const text = formatAttribute(value, yes, no);
24347
24358
  return text === void 0 ? [] : [{ key: `attribute:${key}`, label: humaniseKey(key), value: text }];
@@ -24379,7 +24390,7 @@ function ApprovalActionCard({ actionId, summary, onResolved, hiddenRelationshipK
24379
24390
  try {
24380
24391
  const message = kind === "approve" ? await _chunk5PNDDYGLjs.AssistantActionService.approve({ id: actionId }) : await _chunk5PNDDYGLjs.AssistantActionService.deny({ id: actionId });
24381
24392
  setStatus(kind === "approve" ? "executed" : "denied");
24382
- if (message) _optionalChain([onResolved, 'optionalCall', _697 => _697(message)]);
24393
+ if (message) _optionalChain([onResolved, 'optionalCall', _698 => _698(message)]);
24383
24394
  } catch (error) {
24384
24395
  console.error(`ApprovalActionCard: failed to ${kind} assistant action ${actionId}`, error);
24385
24396
  setFailed(true);
@@ -24516,10 +24527,10 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
24516
24527
  const t = _nextintl.useTranslations.call(void 0, );
24517
24528
  const generateUrl = usePageUrlGenerator();
24518
24529
  const { loadNotifications } = useNotificationContext();
24519
- const archived = _optionalChain([params, 'access', _698 => _698.context, 'optionalAccess', _699 => _699.archived]) === true;
24530
+ const archived = _optionalChain([params, 'access', _699 => _699.context, 'optionalAccess', _700 => _700.archived]) === true;
24520
24531
  const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
24521
24532
  await _chunk5PNDDYGLjs.NotificationService.archive({ id: notification.id });
24522
- _optionalChain([params, 'access', _700 => _700.dataRetriever, 'optionalAccess', _701 => _701.removeElement, 'call', _702 => _702(notification)]);
24533
+ _optionalChain([params, 'access', _701 => _701.dataRetriever, 'optionalAccess', _702 => _702.removeElement, 'call', _703 => _703(notification)]);
24523
24534
  await loadNotifications();
24524
24535
  }, "archiveNotification");
24525
24536
  const tableData = _react.useMemo.call(void 0, () => {
@@ -24558,7 +24569,7 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
24558
24569
  const data = generateNotificationData({ notification, generateUrl });
24559
24570
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-foreground text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
24560
24571
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { className: "font-medium", children: chunks }), "strong"),
24561
- actor: _nullishCoalesce(_optionalChain([data, 'access', _703 => _703.actor, 'optionalAccess', _704 => _704.name]), () => ( "")),
24572
+ actor: _nullishCoalesce(_optionalChain([data, 'access', _704 => _704.actor, 'optionalAccess', _705 => _705.name]), () => ( "")),
24562
24573
  title: data.title,
24563
24574
  message: _nullishCoalesce(notification.message, () => ( ""))
24564
24575
  }) });
@@ -24613,7 +24624,7 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
24613
24624
  })
24614
24625
  };
24615
24626
  const columns = _react.useMemo.call(void 0, () => {
24616
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _705 => _705[field], 'optionalCall', _706 => _706()])).filter((col) => col !== void 0);
24627
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _706 => _706[field], 'optionalCall', _707 => _707()])).filter((col) => col !== void 0);
24617
24628
  }, [params.fields, fieldColumnMap, t, generateUrl]);
24618
24629
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
24619
24630
  }, "useNotificationTableStructure");
@@ -25032,7 +25043,7 @@ var DEFAULT_TRANSLATIONS = {
25032
25043
  invalidEmail: "Please enter a valid email address"
25033
25044
  };
25034
25045
  async function copyToClipboard(text) {
25035
- if (_optionalChain([navigator, 'access', _707 => _707.clipboard, 'optionalAccess', _708 => _708.writeText])) {
25046
+ if (_optionalChain([navigator, 'access', _708 => _708.clipboard, 'optionalAccess', _709 => _709.writeText])) {
25036
25047
  try {
25037
25048
  await navigator.clipboard.writeText(text);
25038
25049
  return true;
@@ -25074,7 +25085,7 @@ function ReferralWidget({
25074
25085
  const linkInputRef = _react.useRef.call(void 0, null);
25075
25086
  const config = _chunk7ZRQOLSVjs.getReferralConfig.call(void 0, );
25076
25087
  const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
25077
- const referralUrl = _optionalChain([stats, 'optionalAccess', _709 => _709.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
25088
+ const referralUrl = _optionalChain([stats, 'optionalAccess', _710 => _710.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
25078
25089
  if (!_chunk7ZRQOLSVjs.isReferralEnabled.call(void 0, )) {
25079
25090
  return null;
25080
25091
  }
@@ -25084,7 +25095,7 @@ function ReferralWidget({
25084
25095
  if (success) {
25085
25096
  setCopied(true);
25086
25097
  _chunk5PNDDYGLjs.showToast.call(void 0, t.copiedMessage);
25087
- _optionalChain([onLinkCopied, 'optionalCall', _710 => _710()]);
25098
+ _optionalChain([onLinkCopied, 'optionalCall', _711 => _711()]);
25088
25099
  setTimeout(() => setCopied(false), 2e3);
25089
25100
  } else {
25090
25101
  _chunk5PNDDYGLjs.showError.call(void 0, t.copyError);
@@ -25098,12 +25109,12 @@ function ReferralWidget({
25098
25109
  try {
25099
25110
  await sendInvite(email);
25100
25111
  _chunk5PNDDYGLjs.showToast.call(void 0, t.inviteSent);
25101
- _optionalChain([onInviteSent, 'optionalCall', _711 => _711(email)]);
25112
+ _optionalChain([onInviteSent, 'optionalCall', _712 => _712(email)]);
25102
25113
  setEmail("");
25103
25114
  } catch (err) {
25104
25115
  const error2 = err instanceof Error ? err : new Error(t.inviteError);
25105
25116
  _chunk5PNDDYGLjs.showError.call(void 0, error2.message);
25106
- _optionalChain([onInviteError, 'optionalCall', _712 => _712(error2)]);
25117
+ _optionalChain([onInviteError, 'optionalCall', _713 => _713(error2)]);
25107
25118
  }
25108
25119
  }, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
25109
25120
  const handleEmailKeyDown = _react.useCallback.call(void 0,
@@ -25858,7 +25869,7 @@ function OAuthClientList({
25858
25869
  OAuthClientCard,
25859
25870
  {
25860
25871
  client,
25861
- onClick: () => _optionalChain([onClientClick, 'optionalCall', _713 => _713(client)]),
25872
+ onClick: () => _optionalChain([onClientClick, 'optionalCall', _714 => _714(client)]),
25862
25873
  onEdit: onEditClick ? () => onEditClick(client) : void 0,
25863
25874
  onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
25864
25875
  },
@@ -25881,11 +25892,11 @@ function OAuthClientForm({
25881
25892
  }) {
25882
25893
  const isEditMode = !!client;
25883
25894
  const [formState, setFormState] = _react.useState.call(void 0, {
25884
- name: _optionalChain([client, 'optionalAccess', _714 => _714.name]) || "",
25885
- description: _optionalChain([client, 'optionalAccess', _715 => _715.description]) || "",
25886
- redirectUris: _optionalChain([client, 'optionalAccess', _716 => _716.redirectUris, 'optionalAccess', _717 => _717.length]) ? client.redirectUris : [""],
25895
+ name: _optionalChain([client, 'optionalAccess', _715 => _715.name]) || "",
25896
+ description: _optionalChain([client, 'optionalAccess', _716 => _716.description]) || "",
25897
+ redirectUris: _optionalChain([client, 'optionalAccess', _717 => _717.redirectUris, 'optionalAccess', _718 => _718.length]) ? client.redirectUris : [""],
25887
25898
  allowedScopes: client ? client.allowedScopes || [] : defaultScopes,
25888
- isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _718 => _718.isConfidential]), () => ( true))
25899
+ isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _719 => _719.isConfidential]), () => ( true))
25889
25900
  });
25890
25901
  const [errors, setErrors] = _react.useState.call(void 0, {});
25891
25902
  const validate = _react.useCallback.call(void 0, () => {
@@ -26114,7 +26125,7 @@ function OAuthClientDetail({
26114
26125
  ] }),
26115
26126
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
26116
26127
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
26117
- /* @__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([_chunk5PNDDYGLjs.OAUTH_SCOPE_DISPLAY, 'access', _719 => _719[scope], 'optionalAccess', _720 => _720.name]) || scope }, scope)) })
26128
+ /* @__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([_chunk5PNDDYGLjs.OAUTH_SCOPE_DISPLAY, 'access', _720 => _720[scope], 'optionalAccess', _721 => _721.name]) || scope }, scope)) })
26118
26129
  ] }),
26119
26130
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
26120
26131
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
@@ -26295,7 +26306,7 @@ function OAuthConsentScreen({
26295
26306
  if (error || !clientInfo) {
26296
26307
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-dvh 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: [
26297
26308
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
26298
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _721 => _721.message]) || t("oauth.consent.invalid_request") })
26309
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _722 => _722.message]) || t("oauth.consent.invalid_request") })
26299
26310
  ] }) }) }) });
26300
26311
  }
26301
26312
  const { client, scopes } = clientInfo;
@@ -26516,7 +26527,7 @@ function WaitlistForm({ onSuccess }) {
26516
26527
  questionnaire: values.questionnaire
26517
26528
  });
26518
26529
  setIsSuccess(true);
26519
- _optionalChain([onSuccess, 'optionalCall', _722 => _722()]);
26530
+ _optionalChain([onSuccess, 'optionalCall', _723 => _723()]);
26520
26531
  } catch (e) {
26521
26532
  errorToast({ error: e });
26522
26533
  } finally {
@@ -27056,7 +27067,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
27056
27067
  ] }),
27057
27068
  roleIds.map((roleId) => {
27058
27069
  const roleTokens = block[roleId];
27059
- const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _723 => _723[roleId]]), () => ( roleId));
27070
+ const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _724 => _724[roleId]]), () => ( roleId));
27060
27071
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
27061
27072
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
27062
27073
  _chunk7ZRQOLSVjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -27093,7 +27104,7 @@ function RbacContainer() {
27093
27104
  }, []);
27094
27105
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
27095
27106
  if (!matrix) return [];
27096
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _724 => _724[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _725 => _725[b]]), () => ( b))));
27107
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _725 => _725[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _726 => _726[b]]), () => ( b))));
27097
27108
  }, [matrix, moduleNames]);
27098
27109
  const roleIds = _react.useMemo.call(void 0, () => {
27099
27110
  if (roleNames) {
@@ -27156,7 +27167,7 @@ function RbacContainer() {
27156
27167
  id === selectedModuleId && "bg-muted font-medium text-foreground",
27157
27168
  id !== selectedModuleId && "text-muted-foreground"
27158
27169
  ),
27159
- children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _726 => _726[id]]), () => ( id))
27170
+ children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _727 => _727[id]]), () => ( id))
27160
27171
  }
27161
27172
  ) }, id)) }) }),
27162
27173
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: selectedModuleId && selectedBlock ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -27164,7 +27175,7 @@ function RbacContainer() {
27164
27175
  {
27165
27176
  moduleId: selectedModuleId,
27166
27177
  block: selectedBlock,
27167
- moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _727 => _727[selectedModuleId]]), () => ( selectedModuleId)),
27178
+ moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _728 => _728[selectedModuleId]]), () => ( selectedModuleId)),
27168
27179
  roleIds,
27169
27180
  roleNames,
27170
27181
  onOpenPicker: openPicker
@@ -27175,12 +27186,12 @@ function RbacContainer() {
27175
27186
  RbacPermissionPicker,
27176
27187
  {
27177
27188
  open: !!activePicker,
27178
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _728 => _728.anchor]), () => ( null)),
27189
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _729 => _729.anchor]), () => ( null)),
27179
27190
  value: activeValue,
27180
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _729 => _729.isRoleColumn]), () => ( false)),
27191
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _730 => _730.isRoleColumn]), () => ( false)),
27181
27192
  knownSegments: activeSegments,
27182
27193
  onSetValue: handleSetValue,
27183
- onClear: _optionalChain([activePicker, 'optionalAccess', _730 => _730.isRoleColumn]) ? handleClear : void 0,
27194
+ onClear: _optionalChain([activePicker, 'optionalAccess', _731 => _731.isRoleColumn]) ? handleClear : void 0,
27184
27195
  onClose: closePicker
27185
27196
  }
27186
27197
  )
@@ -27247,7 +27258,7 @@ function RbacByRoleContainer() {
27247
27258
  }, [roleNames]);
27248
27259
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
27249
27260
  if (!matrix) return [];
27250
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _731 => _731[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _732 => _732[b]]), () => ( b))));
27261
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _732 => _732[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _733 => _733[b]]), () => ( b))));
27251
27262
  }, [matrix, moduleNames]);
27252
27263
  _react.useEffect.call(void 0, () => {
27253
27264
  if (!selectedRoleId && sortedRoleIds.length > 0) {
@@ -27296,7 +27307,7 @@ function RbacByRoleContainer() {
27296
27307
  id === selectedRoleId && "bg-muted font-medium text-foreground",
27297
27308
  id !== selectedRoleId && "text-muted-foreground"
27298
27309
  ),
27299
- children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _733 => _733[id]]), () => ( id))
27310
+ children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _734 => _734[id]]), () => ( id))
27300
27311
  }
27301
27312
  ) }, id)) }) }),
27302
27313
  /* @__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: [
@@ -27316,7 +27327,7 @@ function RbacByRoleContainer() {
27316
27327
  if (!block) return null;
27317
27328
  const defaultTokens = _nullishCoalesce(block.default, () => ( []));
27318
27329
  const roleTokens = block[selectedRoleId];
27319
- const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _734 => _734[moduleId]]), () => ( moduleId));
27330
+ const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _735 => _735[moduleId]]), () => ( moduleId));
27320
27331
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
27321
27332
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
27322
27333
  "td",
@@ -27331,7 +27342,7 @@ function RbacByRoleContainer() {
27331
27342
  _chunk7ZRQOLSVjs.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))
27332
27343
  ] }),
27333
27344
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
27334
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _735 => _735[selectedRoleId]]), () => ( selectedRoleId)) }),
27345
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _736 => _736[selectedRoleId]]), () => ( selectedRoleId)) }),
27335
27346
  _chunk7ZRQOLSVjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
27336
27347
  CellButton3,
27337
27348
  {
@@ -27352,12 +27363,12 @@ function RbacByRoleContainer() {
27352
27363
  RbacPermissionPicker,
27353
27364
  {
27354
27365
  open: !!activePicker,
27355
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _736 => _736.anchor]), () => ( null)),
27366
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _737 => _737.anchor]), () => ( null)),
27356
27367
  value: activeValue,
27357
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _737 => _737.isRoleColumn]), () => ( false)),
27368
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _738 => _738.isRoleColumn]), () => ( false)),
27358
27369
  knownSegments: activeSegments,
27359
27370
  onSetValue: handleSetValue,
27360
- onClear: _optionalChain([activePicker, 'optionalAccess', _738 => _738.isRoleColumn]) ? handleClear : void 0,
27371
+ onClear: _optionalChain([activePicker, 'optionalAccess', _739 => _739.isRoleColumn]) ? handleClear : void 0,
27361
27372
  onClose: closePicker
27362
27373
  }
27363
27374
  )
@@ -27971,4 +27982,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
27971
27982
 
27972
27983
 
27973
27984
  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.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.AdministrationProvider = AdministrationProvider; exports.useAdministrationContext = useAdministrationContext; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.useCurrentUserContextOptional = useCurrentUserContextOptional; 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.DirectionProvider = DirectionProvider; exports.useDir = useDir; 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.commandFilterByKeywords = commandFilterByKeywords; 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.useSidebarControls = useSidebarControls; exports.useOptionalSidebar = useOptionalSidebar; 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.useHeaderMobileChildren = useHeaderMobileChildren; exports.useHeaderRootLabel = useHeaderRootLabel; exports.HeaderLeftContentProvider = HeaderLeftContentProvider; exports.useHeaderLeftContent = useHeaderLeftContent; exports.HeaderLogoProvider = HeaderLogoProvider; exports.useHeaderLogo = useHeaderLogo; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.BreadcrumbRootProvider = BreadcrumbRootProvider; exports.useIsBreadcrumbRootHidden = useIsBreadcrumbRootHidden; exports.Header = Header; exports.MobileNavigationProvider = MobileNavigationProvider; exports.useMobileNavigationItems = useMobileNavigationItems; exports.MobileNavigationBar = MobileNavigationBar; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.partitionTabs = partitionTabs; exports.MermaidDiagram = MermaidDiagram; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.HEADER_ROW_MIN_H = HEADER_ROW_MIN_H; exports.RoundPageContainerTitle = RoundPageContainerTitle; exports.SectionHeader = SectionHeader; exports.MicroLabel = MicroLabel; exports.DetailField = DetailField; exports.RoundPageContainer = RoundPageContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.AllUsersListContainer = AllUsersListContainer; exports.PlatformUsersList = PlatformUsersList; exports.PlatformUsersContainer = PlatformUsersContainer; 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.FormFeatures = FormFeatures; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.ActionBarProvider = ActionBarProvider; exports.useIsInActionBar = useIsInActionBar; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorDiscardDialog = CommonEditorDiscardDialog; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorTrigger = CommonEditorTrigger; exports.CommonAddTrigger = CommonAddTrigger; exports.CurrencyInput = CurrencyInput; exports.DatePickerPopover = DatePickerPopover; exports.nextDateRange = nextDateRange; exports.DateRangeSelector = DateRangeSelector; exports.hasOpenInnerLayer = hasOpenInnerLayer; exports.useEditorDialog = useEditorDialog; exports.EditorSheet = EditorSheet; exports.FormFieldWrapper = FormFieldWrapper; exports.EntityMultiSelector = EntityMultiSelector; exports.EntitySelector = EntitySelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.FormBlockNote = FormBlockNote; exports.FormCheckbox = FormCheckbox; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.FormBody = FormBody; exports.FormSection = FormSection; exports.FormRow = FormRow; exports.FormCol = FormCol; 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.MultiFileUploader = MultiFileUploader; 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.EntityHeroLayout = EntityHeroLayout; exports.EntityHero = EntityHero; exports.EntityHeroAvatar = EntityHeroAvatar; exports.EntityHeroMetaRow = EntityHeroMetaRow; exports.EntitySection = EntitySection; 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.AdminIndexGrid = AdminIndexGrid; exports.AdminIndexContainer = AdminIndexContainer; exports.ADMINISTRATION_I18N_KEYS = ADMINISTRATION_I18N_KEYS; exports.AI_CONNECTIONS_I18N_KEYS = AI_CONNECTIONS_I18N_KEYS; exports.AI_CONNECTIONS_ADMIN_PAGE_URL = AI_CONNECTIONS_ADMIN_PAGE_URL; exports.AiConnectionsProvider = AiConnectionsProvider; exports.useAiConnections = useAiConnections; exports.AiConnectionDeleter = AiConnectionDeleter; exports.AiConnectionEditor = AiConnectionEditor; exports.AiConnectionTypeCard = AiConnectionTypeCard; exports.AI_CONNECTION_TYPE_ORDER = AI_CONNECTION_TYPE_ORDER; exports.AiConnectionsContainer = AiConnectionsContainer; exports.CompanyContent = CompanyContent; exports.TokenStatusIndicator = TokenStatusIndicator; exports.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.CompaniesListContainer = CompaniesListContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; 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.HowToReindexButton = HowToReindexButton; exports.HowToList = HowToList; exports.HowToListContainer = HowToListContainer; exports.HowToSelector = HowToSelector; exports.AssistantComposer = AssistantComposer; exports.MessageSourcesPanel = MessageSourcesPanel; exports.MessageItem = MessageItem; exports.MessageList = MessageList; exports.AssistantThread = AssistantThread; exports.HandbookAskSheet = HandbookAskSheet; exports.HandbookSyncButton = HandbookSyncButton; exports.HandbookIndexStatus = HandbookIndexStatus; exports.HandbookSectionGroup = HandbookSectionGroup; exports.HandbookContents = HandbookContents; exports.HandbookAdminContainer = HandbookAdminContainer; exports.HandbookPageDetails = HandbookPageDetails; exports.HandbookPageNeighbours = HandbookPageNeighbours; exports.HandbookPageToc = HandbookPageToc; exports.HandbookPageNavigator = HandbookPageNavigator; exports.HandbookPageContainer = HandbookPageContainer; exports.HandbookAskContainer = HandbookAskContainer; exports.EntityMentionLink = EntityMentionLink; exports.AssistantProvider = AssistantProvider; exports.useAssistantContext = useAssistantContext; exports.AssistantEmptyState = AssistantEmptyState; exports.AssistantContainer = AssistantContainer; exports.AssistantBlockNoteComposer = AssistantBlockNoteComposer; exports.AssistantPageContainer = AssistantPageContainer; exports.ApprovalActionCard = ApprovalActionCard; exports.AssistantContainerWithApprovals = AssistantContainerWithApprovals; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.NotificationIcon = NotificationIcon; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationViewSwitcher = NotificationViewSwitcher; 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.OAuthCompanySelector = OAuthCompanySelector; 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.mapOnboardingSide = mapOnboardingSide; exports.OnboardingProvider = OnboardingProvider; exports.useOnboarding = useOnboarding; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.SessionProvider = SessionProvider; exports.useSession = useSession; exports.ViewportProvider = ViewportProvider; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.formatInterval = formatInterval; exports.formatCurrency = formatCurrency; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
27974
- //# sourceMappingURL=chunk-PL2FHXHR.js.map
27985
+ //# sourceMappingURL=chunk-MJVEKDM4.js.map