@carlonicora/nextjs-jsonapi 6.13.0 → 6.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/{BlockNoteEditor-2VLPSEKS.js → BlockNoteEditor-UBVEUFNR.js} +9 -9
  2. package/dist/{BlockNoteEditor-2VLPSEKS.js.map → BlockNoteEditor-UBVEUFNR.js.map} +1 -1
  3. package/dist/{BlockNoteEditor-22Q4DJBU.mjs → BlockNoteEditor-VXMDSQAA.mjs} +2 -2
  4. package/dist/billing/index.js +378 -378
  5. package/dist/billing/index.mjs +1 -1
  6. package/dist/{chunk-H4NLDX5G.mjs → chunk-N4RZZKL5.mjs} +9 -3
  7. package/dist/chunk-N4RZZKL5.mjs.map +1 -0
  8. package/dist/{chunk-2H342HNN.js → chunk-PYRZCKC2.js} +267 -261
  9. package/dist/chunk-PYRZCKC2.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/email-automations/index.js +58 -58
  17. package/dist/email-automations/index.mjs +1 -1
  18. package/dist/features/analytics/index.js +96 -96
  19. package/dist/features/analytics/index.mjs +1 -1
  20. package/dist/features/blog/index.js +93 -93
  21. package/dist/features/blog/index.mjs +1 -1
  22. package/dist/features/help/index.js +31 -31
  23. package/dist/features/help/index.mjs +1 -1
  24. package/dist/features/tokenusage/index.js +102 -102
  25. package/dist/features/tokenusage/index.mjs +1 -1
  26. package/package.json +1 -1
  27. package/src/features/onboarding/contexts/OnboardingContext.spec.tsx +42 -1
  28. package/src/features/onboarding/contexts/OnboardingContext.tsx +11 -1
  29. package/dist/chunk-2H342HNN.js.map +0 -1
  30. package/dist/chunk-H4NLDX5G.mjs.map +0 -1
  31. /package/dist/{BlockNoteEditor-22Q4DJBU.mjs.map → BlockNoteEditor-VXMDSQAA.mjs.map} +0 -0
@@ -10852,7 +10852,7 @@ FileInput.displayName = "FileInput";
10852
10852
  var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
10853
10853
 
10854
10854
 
10855
- var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-2VLPSEKS.js"))), {
10855
+ var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-UBVEUFNR.js"))), {
10856
10856
  ssr: false
10857
10857
  });
10858
10858
  var BlockNoteEditorContainer = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
@@ -14088,13 +14088,19 @@ function OnboardingProvider({
14088
14088
  endReasonRef.current = "dismissed";
14089
14089
  const move = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (direction, from) => {
14090
14090
  const target = tourSteps[direction === "next" ? from + 1 : from - 1];
14091
- const go = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => direction === "next" ? _optionalChain([driverRef, 'access', _382 => _382.current, 'optionalAccess', _383 => _383.moveNext, 'call', _384 => _384()]) : _optionalChain([driverRef, 'access', _385 => _385.current, 'optionalAccess', _386 => _386.movePrevious, 'call', _387 => _387()]), "go");
14092
- if (_optionalChain([target, 'optionalAccess', _388 => _388.showDelay])) setTimeout(go, target.showDelay);
14091
+ const go = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
14092
+ const instance2 = driverRef.current;
14093
+ if (!instance2) return;
14094
+ if (direction === "next") instance2.moveNext();
14095
+ else instance2.movePrevious();
14096
+ if (driverRef.current === instance2 && !instance2.isActive()) teardown("dismissed");
14097
+ }, "go");
14098
+ if (_optionalChain([target, 'optionalAccess', _382 => _382.showDelay])) setTimeout(go, target.showDelay);
14093
14099
  else go();
14094
14100
  }, "move");
14095
14101
  const end = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (reason) => {
14096
14102
  endReasonRef.current = reason;
14097
- _optionalChain([driverRef, 'access', _389 => _389.current, 'optionalAccess', _390 => _390.destroy, 'call', _391 => _391()]);
14103
+ _optionalChain([driverRef, 'access', _383 => _383.current, 'optionalAccess', _384 => _384.destroy, 'call', _385 => _385()]);
14098
14104
  teardown(reason);
14099
14105
  }, "end");
14100
14106
  const driveSteps = tourSteps.map((stepConfig, index) => {
@@ -14136,10 +14142,10 @@ function OnboardingProvider({
14136
14142
  onHighlightStarted: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
14137
14143
  setIsTourActive(true);
14138
14144
  setCurrentStepIndex(index);
14139
- _optionalChain([stepConfig, 'access', _392 => _392.onShow, 'optionalCall', _393 => _393()]);
14145
+ _optionalChain([stepConfig, 'access', _386 => _386.onShow, 'optionalCall', _387 => _387()]);
14140
14146
  }, "onHighlightStarted"),
14141
14147
  onDeselected: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
14142
- _optionalChain([stepConfig, 'access', _394 => _394.onHide, 'optionalCall', _395 => _395()]);
14148
+ _optionalChain([stepConfig, 'access', _388 => _388.onHide, 'optionalCall', _389 => _389()]);
14143
14149
  const root = rootsRef.current.get(index);
14144
14150
  if (root) {
14145
14151
  rootsRef.current.delete(index);
@@ -14167,7 +14173,7 @@ function OnboardingProvider({
14167
14173
  );
14168
14174
  _react.useEffect.call(void 0, () => {
14169
14175
  return () => {
14170
- _optionalChain([driverRef, 'access', _396 => _396.current, 'optionalAccess', _397 => _397.destroy, 'call', _398 => _398()]);
14176
+ _optionalChain([driverRef, 'access', _390 => _390.current, 'optionalAccess', _391 => _391.destroy, 'call', _392 => _392()]);
14171
14177
  cleanupRoots();
14172
14178
  };
14173
14179
  }, [cleanupRoots]);
@@ -14300,7 +14306,7 @@ function HowToMultiSelector({
14300
14306
  retriever: (params) => _chunkMOGEGWXWjs.HowToService.findMany(params),
14301
14307
  module: _chunkBZ5J2FIVjs.Modules.HowTo,
14302
14308
  getLabel: (howTo) => howTo.name,
14303
- excludeId: _optionalChain([currentHowTo, 'optionalAccess', _399 => _399.id]),
14309
+ excludeId: _optionalChain([currentHowTo, 'optionalAccess', _393 => _393.id]),
14304
14310
  onChange
14305
14311
  }
14306
14312
  );
@@ -14408,17 +14414,17 @@ function HowToEditorInternal({
14408
14414
  );
14409
14415
  const getDefaultValues = _react.useCallback.call(void 0,
14410
14416
  () => ({
14411
- id: _optionalChain([howTo, 'optionalAccess', _400 => _400.id]) || _uuid.v4.call(void 0, ),
14412
- name: _optionalChain([howTo, 'optionalAccess', _401 => _401.name]) || "",
14413
- description: _optionalChain([howTo, 'optionalAccess', _402 => _402.description]) || [],
14414
- pages: _chunkMOGEGWXWjs.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess', _403 => _403.pages])),
14415
- howToType: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _404 => _404.howToType]), () => ( "how-to")),
14416
- slug: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _405 => _405.slug]), () => ( "")),
14417
- order: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _406 => _406.order]), () => ( 0)),
14418
- summary: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _407 => _407.summary]), () => ( "")),
14419
- tags: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _408 => _408.tags]), () => ( []))).join(", "),
14420
- contextualKeys: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _409 => _409.contextualKeys]), () => ( []))).join(", "),
14421
- draft: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _410 => _410.draft]), () => ( false)),
14417
+ id: _optionalChain([howTo, 'optionalAccess', _394 => _394.id]) || _uuid.v4.call(void 0, ),
14418
+ name: _optionalChain([howTo, 'optionalAccess', _395 => _395.name]) || "",
14419
+ description: _optionalChain([howTo, 'optionalAccess', _396 => _396.description]) || [],
14420
+ pages: _chunkMOGEGWXWjs.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess', _397 => _397.pages])),
14421
+ howToType: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _398 => _398.howToType]), () => ( "how-to")),
14422
+ slug: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _399 => _399.slug]), () => ( "")),
14423
+ order: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _400 => _400.order]), () => ( 0)),
14424
+ summary: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _401 => _401.summary]), () => ( "")),
14425
+ tags: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _402 => _402.tags]), () => ( []))).join(", "),
14426
+ contextualKeys: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _403 => _403.contextualKeys]), () => ( []))).join(", "),
14427
+ draft: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _404 => _404.draft]), () => ( false)),
14422
14428
  relatedArticles: []
14423
14429
  }),
14424
14430
  [howTo]
@@ -14429,7 +14435,7 @@ function HowToEditorInternal({
14429
14435
  });
14430
14436
  const initialRelatedIds = _react.useRef.call(void 0, []);
14431
14437
  _react.useEffect.call(void 0, () => {
14432
- if (!_optionalChain([howTo, 'optionalAccess', _411 => _411.howToType]) || !_optionalChain([howTo, 'optionalAccess', _412 => _412.slug])) return;
14438
+ if (!_optionalChain([howTo, 'optionalAccess', _405 => _405.howToType]) || !_optionalChain([howTo, 'optionalAccess', _406 => _406.slug])) return;
14433
14439
  let active = true;
14434
14440
  _chunkMOGEGWXWjs.HowToService.findRelated({ howToType: howTo.howToType, slug: howTo.slug }).then((list) => {
14435
14441
  if (!active) return;
@@ -14468,7 +14474,7 @@ function HowToEditorInternal({
14468
14474
  {
14469
14475
  form,
14470
14476
  entityType: t(`entities.howtos`, { count: 1 }),
14471
- entityName: _optionalChain([howTo, 'optionalAccess', _413 => _413.name]),
14477
+ entityName: _optionalChain([howTo, 'optionalAccess', _407 => _407.name]),
14472
14478
  isEdit: !!howTo,
14473
14479
  module: _chunkBZ5J2FIVjs.Modules.HowTo,
14474
14480
  propagateChanges,
@@ -14845,7 +14851,7 @@ function withPatchedTitle(source, title) {
14845
14851
  return _chunkMOGEGWXWjs.rehydrate.call(void 0, _chunkBZ5J2FIVjs.Modules.Assistant, {
14846
14852
  jsonApi: {
14847
14853
  ...dehydrated.jsonApi,
14848
- attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _414 => _414.jsonApi, 'optionalAccess', _415 => _415.attributes]), () => ( {})), title }
14854
+ attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _408 => _408.jsonApi, 'optionalAccess', _409 => _409.attributes]), () => ( {})), title }
14849
14855
  },
14850
14856
  included: dehydrated.included
14851
14857
  });
@@ -14880,7 +14886,7 @@ function AssistantProvider({
14880
14886
  const [status, setStatus] = _react.useState.call(void 0, void 0);
14881
14887
  const [failedMessageIds, setFailedMessageIds] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
14882
14888
  const [operatorMode, setOperatorMode] = _react.useState.call(void 0,
14883
- () => _optionalChain([dehydratedAssistant, 'optionalAccess', _416 => _416.jsonApi, 'optionalAccess', _417 => _417.attributes, 'optionalAccess', _418 => _418.engine]) === "operator"
14889
+ () => _optionalChain([dehydratedAssistant, 'optionalAccess', _410 => _410.jsonApi, 'optionalAccess', _411 => _411.attributes, 'optionalAccess', _412 => _412.engine]) === "operator"
14884
14890
  );
14885
14891
  const [pendingScope, setPendingScope] = _react.useState.call(void 0, scope);
14886
14892
  const { socket } = useSocketContext();
@@ -14890,7 +14896,7 @@ function AssistantProvider({
14890
14896
  if (!trimmed) return;
14891
14897
  const optimistic = _chunkMOGEGWXWjs.AssistantMessage.buildOptimistic({
14892
14898
  content: trimmed,
14893
- assistantId: _optionalChain([assistant, 'optionalAccess', _419 => _419.id]),
14899
+ assistantId: _optionalChain([assistant, 'optionalAccess', _413 => _413.id]),
14894
14900
  position: nextPosition(messages)
14895
14901
  });
14896
14902
  setMessages((prev) => [...prev, optimistic]);
@@ -14900,22 +14906,22 @@ function AssistantProvider({
14900
14906
  if (assistant && payload.assistantId && payload.assistantId !== assistant.id) return;
14901
14907
  if (typeof payload.status === "string") setStatus(payload.status);
14902
14908
  }, "handler");
14903
- _optionalChain([socket, 'optionalAccess', _420 => _420.on, 'call', _421 => _421("assistant:status", handler)]);
14909
+ _optionalChain([socket, 'optionalAccess', _414 => _414.on, 'call', _415 => _415("assistant:status", handler)]);
14904
14910
  let createdHandled = false;
14905
14911
  const createdHandler = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (payload) => {
14906
14912
  if (createdHandled) return;
14907
- const data = _optionalChain([payload, 'optionalAccess', _422 => _422.assistant, 'optionalAccess', _423 => _423.data]);
14913
+ const data = _optionalChain([payload, 'optionalAccess', _416 => _416.assistant, 'optionalAccess', _417 => _417.data]);
14908
14914
  if (!data || typeof data !== "object" || typeof data.id !== "string" || !data.id) return;
14909
14915
  let thread;
14910
14916
  try {
14911
14917
  thread = _chunkMOGEGWXWjs.rehydrate.call(void 0, _chunkBZ5J2FIVjs.Modules.Assistant, {
14912
14918
  jsonApi: data,
14913
- included: _nullishCoalesce(_optionalChain([payload, 'access', _424 => _424.assistant, 'optionalAccess', _425 => _425.included]), () => ( []))
14919
+ included: _nullishCoalesce(_optionalChain([payload, 'access', _418 => _418.assistant, 'optionalAccess', _419 => _419.included]), () => ( []))
14914
14920
  });
14915
14921
  } catch (e9) {
14916
14922
  return;
14917
14923
  }
14918
- if (!_optionalChain([thread, 'optionalAccess', _426 => _426.id])) return;
14924
+ if (!_optionalChain([thread, 'optionalAccess', _420 => _420.id])) return;
14919
14925
  createdHandled = true;
14920
14926
  setAssistant(thread);
14921
14927
  setThreads((prev) => [thread, ...prev.filter((row) => row.id !== thread.id)]);
@@ -14923,16 +14929,16 @@ function AssistantProvider({
14923
14929
  window.history.replaceState(null, "", resolveThreadUrl(thread.id));
14924
14930
  }
14925
14931
  }, "createdHandler");
14926
- if (!assistant) _optionalChain([socket, 'optionalAccess', _427 => _427.on, 'call', _428 => _428("assistant:created", createdHandler)]);
14932
+ if (!assistant) _optionalChain([socket, 'optionalAccess', _421 => _421.on, 'call', _422 => _422("assistant:created", createdHandler)]);
14927
14933
  try {
14928
14934
  if (!assistant) {
14929
14935
  const input = {
14930
14936
  firstMessage: trimmed,
14931
- howToMode: _optionalChain([opts, 'optionalAccess', _429 => _429.howToMode]),
14932
- limitToHowToId: _optionalChain([opts, 'optionalAccess', _430 => _430.limitToHowToId]),
14933
- handbookMode: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _431 => _431.handbookMode]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _432 => _432.handbookMode]))),
14934
- limitToHandbookPageId: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _433 => _433.limitToHandbookPageId]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _434 => _434.limitToHandbookPageId]))),
14935
- contentBlocks: _optionalChain([opts, 'optionalAccess', _435 => _435.contentBlocks]),
14937
+ howToMode: _optionalChain([opts, 'optionalAccess', _423 => _423.howToMode]),
14938
+ limitToHowToId: _optionalChain([opts, 'optionalAccess', _424 => _424.limitToHowToId]),
14939
+ handbookMode: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _425 => _425.handbookMode]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _426 => _426.handbookMode]))),
14940
+ limitToHandbookPageId: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _427 => _427.limitToHandbookPageId]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _428 => _428.limitToHandbookPageId]))),
14941
+ contentBlocks: _optionalChain([opts, 'optionalAccess', _429 => _429.contentBlocks]),
14936
14942
  boundContent: pendingScope
14937
14943
  };
14938
14944
  const created = operatorMode ? await _chunkMOGEGWXWjs.AssistantService.createOperator(input) : await _chunkMOGEGWXWjs.AssistantService.create(input);
@@ -14949,15 +14955,15 @@ function AssistantProvider({
14949
14955
  const result = operatorMode ? await _chunkMOGEGWXWjs.AssistantService.appendMessageOperator({
14950
14956
  assistantId: assistant.id,
14951
14957
  content: trimmed,
14952
- contentBlocks: _optionalChain([opts, 'optionalAccess', _436 => _436.contentBlocks])
14958
+ contentBlocks: _optionalChain([opts, 'optionalAccess', _430 => _430.contentBlocks])
14953
14959
  }) : await _chunkMOGEGWXWjs.AssistantService.appendMessage({
14954
14960
  assistantId: assistant.id,
14955
14961
  content: trimmed,
14956
- howToMode: _optionalChain([opts, 'optionalAccess', _437 => _437.howToMode]),
14957
- limitToHowToId: _optionalChain([opts, 'optionalAccess', _438 => _438.limitToHowToId]),
14958
- handbookMode: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _439 => _439.handbookMode]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _440 => _440.handbookMode]))),
14959
- limitToHandbookPageId: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _441 => _441.limitToHandbookPageId]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _442 => _442.limitToHandbookPageId]))),
14960
- contentBlocks: _optionalChain([opts, 'optionalAccess', _443 => _443.contentBlocks])
14962
+ howToMode: _optionalChain([opts, 'optionalAccess', _431 => _431.howToMode]),
14963
+ limitToHowToId: _optionalChain([opts, 'optionalAccess', _432 => _432.limitToHowToId]),
14964
+ handbookMode: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _433 => _433.handbookMode]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _434 => _434.handbookMode]))),
14965
+ limitToHandbookPageId: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _435 => _435.limitToHandbookPageId]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _436 => _436.limitToHandbookPageId]))),
14966
+ contentBlocks: _optionalChain([opts, 'optionalAccess', _437 => _437.contentBlocks])
14961
14967
  });
14962
14968
  setMessages((prev) => [...stripOptimistic(prev), ...result]);
14963
14969
  }
@@ -14968,8 +14974,8 @@ function AssistantProvider({
14968
14974
  return next;
14969
14975
  });
14970
14976
  } finally {
14971
- _optionalChain([socket, 'optionalAccess', _444 => _444.off, 'call', _445 => _445("assistant:status", handler)]);
14972
- if (!assistant) _optionalChain([socket, 'optionalAccess', _446 => _446.off, 'call', _447 => _447("assistant:created", createdHandler)]);
14977
+ _optionalChain([socket, 'optionalAccess', _438 => _438.off, 'call', _439 => _439("assistant:status", handler)]);
14978
+ if (!assistant) _optionalChain([socket, 'optionalAccess', _440 => _440.off, 'call', _441 => _441("assistant:created", createdHandler)]);
14973
14979
  setSending(false);
14974
14980
  setStatus(void 0);
14975
14981
  }
@@ -15035,7 +15041,7 @@ function AssistantProvider({
15035
15041
  await _chunkMOGEGWXWjs.AssistantService.delete({ id });
15036
15042
  setThreads((prev) => prev.filter((t2) => t2.id !== id));
15037
15043
  setAssistant((prev) => {
15038
- if (_optionalChain([prev, 'optionalAccess', _448 => _448.id]) === id) {
15044
+ if (_optionalChain([prev, 'optionalAccess', _442 => _442.id]) === id) {
15039
15045
  setMessages([]);
15040
15046
  return void 0;
15041
15047
  }
@@ -15047,7 +15053,7 @@ function AssistantProvider({
15047
15053
  (async () => {
15048
15054
  setThreadsLoading(true);
15049
15055
  try {
15050
- const loaded = await _chunkMOGEGWXWjs.AssistantService.findMany({ boundType: _optionalChain([scope, 'optionalAccess', _449 => _449.type]), boundId: _optionalChain([scope, 'optionalAccess', _450 => _450.id]) });
15056
+ const loaded = await _chunkMOGEGWXWjs.AssistantService.findMany({ boundType: _optionalChain([scope, 'optionalAccess', _443 => _443.type]), boundId: _optionalChain([scope, 'optionalAccess', _444 => _444.id]) });
15051
15057
  if (!cancelled) setThreads(loaded);
15052
15058
  } finally {
15053
15059
  if (!cancelled) setThreadsLoading(false);
@@ -15056,7 +15062,7 @@ function AssistantProvider({
15056
15062
  return () => {
15057
15063
  cancelled = true;
15058
15064
  };
15059
- }, [_optionalChain([scope, 'optionalAccess', _451 => _451.type]), _optionalChain([scope, 'optionalAccess', _452 => _452.id])]);
15065
+ }, [_optionalChain([scope, 'optionalAccess', _445 => _445.type]), _optionalChain([scope, 'optionalAccess', _446 => _446.id])]);
15060
15066
  const value = _react.useMemo.call(void 0,
15061
15067
  () => ({
15062
15068
  assistant,
@@ -15108,7 +15114,7 @@ function AssistantProvider({
15108
15114
  const response = {
15109
15115
  type: _nullishCoalesce(titleOverride, () => ( t("entities.assistants", { count: assistant ? 1 : 2 })))
15110
15116
  };
15111
- if (_optionalChain([assistant, 'optionalAccess', _453 => _453.title])) {
15117
+ if (_optionalChain([assistant, 'optionalAccess', _447 => _447.title])) {
15112
15118
  response.element = assistant.title.length > 25 ? `${assistant.title.substring(0, 25)}...` : assistant.title;
15113
15119
  }
15114
15120
  response.functions = [
@@ -15270,7 +15276,7 @@ function readEntityTitle() {
15270
15276
  if (typeof document === "undefined") return null;
15271
15277
  const afterEntityType = document.title.split("]")[1];
15272
15278
  if (!afterEntityType) return null;
15273
- return _optionalChain([afterEntityType, 'access', _454 => _454.split, 'call', _455 => _455("|"), 'access', _456 => _456[0], 'optionalAccess', _457 => _457.trim, 'call', _458 => _458()]) || null;
15279
+ return _optionalChain([afterEntityType, 'access', _448 => _448.split, 'call', _449 => _449("|"), 'access', _450 => _450[0], 'optionalAccess', _451 => _451.trim, 'call', _452 => _452()]) || null;
15274
15280
  }
15275
15281
  _chunk7QVYU63Ejs.__name.call(void 0, readEntityTitle, "readEntityTitle");
15276
15282
  function usePageTracker() {
@@ -15299,7 +15305,7 @@ function usePageTracker() {
15299
15305
  const existing = prev.find((page) => page.url === baseUrl);
15300
15306
  const refreshed = {
15301
15307
  url: baseUrl,
15302
- title: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _459 => _459.title]), () => ( foundModule.name)),
15308
+ title: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _453 => _453.title]), () => ( foundModule.name)),
15303
15309
  moduleType: foundModule.name,
15304
15310
  timestamp: Date.now()
15305
15311
  };
@@ -15357,7 +15363,7 @@ function urlBase64ToUint8Array(base64String) {
15357
15363
  _chunk7QVYU63Ejs.__name.call(void 0, urlBase64ToUint8Array, "urlBase64ToUint8Array");
15358
15364
  function usePushNotifications(params) {
15359
15365
  const { currentUser, canSubscribe } = params;
15360
- const userId = _optionalChain([currentUser, 'optionalAccess', _460 => _460.id]);
15366
+ const userId = _optionalChain([currentUser, 'optionalAccess', _454 => _454.id]);
15361
15367
  _react.useEffect.call(void 0, () => {
15362
15368
  if (!userId || !canSubscribe) return;
15363
15369
  const register = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
@@ -15407,7 +15413,7 @@ function usePushNotifications(params) {
15407
15413
  if (!("serviceWorker" in navigator)) return;
15408
15414
  const sessionKey = `push_registered_${userId}`;
15409
15415
  const onMessage = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (event) => {
15410
- if (_optionalChain([event, 'access', _461 => _461.data, 'optionalAccess', _462 => _462.type]) !== "PUSH_RESUBSCRIBED" || !event.data.subscription) return;
15416
+ if (_optionalChain([event, 'access', _455 => _455.data, 'optionalAccess', _456 => _456.type]) !== "PUSH_RESUBSCRIBED" || !event.data.subscription) return;
15411
15417
  const subscription = event.data.subscription;
15412
15418
  const subscriptionHash = btoa(JSON.stringify(subscription));
15413
15419
  if (sessionStorage.getItem(sessionKey) === subscriptionHash) return;
@@ -15490,14 +15496,14 @@ function useSocket({ token, paused = false }) {
15490
15496
  });
15491
15497
  }, "handleMessage");
15492
15498
  const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
15493
- const resource = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _463 => _463.data]), () => ( _optionalChain([data, 'optionalAccess', _464 => _464.jsonApi])));
15494
- if (!_optionalChain([resource, 'optionalAccess', _465 => _465.type])) {
15499
+ const resource = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _457 => _457.data]), () => ( _optionalChain([data, 'optionalAccess', _458 => _458.jsonApi])));
15500
+ if (!_optionalChain([resource, 'optionalAccess', _459 => _459.type])) {
15495
15501
  console.warn("[useSocket] ignoring notification with unexpected payload shape", data);
15496
15502
  return;
15497
15503
  }
15498
15504
  const notification = _chunkMOGEGWXWjs.rehydrate.call(void 0, _chunkBZ5J2FIVjs.Modules.Notification, {
15499
15505
  jsonApi: resource,
15500
- included: _optionalChain([data, 'optionalAccess', _466 => _466.included]) || []
15506
+ included: _optionalChain([data, 'optionalAccess', _460 => _460.included]) || []
15501
15507
  });
15502
15508
  if (notification) {
15503
15509
  setSocketNotifications((prev) => {
@@ -15635,11 +15641,11 @@ function BreadcrumbMobile({
15635
15641
  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 }) }) }) });
15636
15642
  }
15637
15643
  if (allItems.length <= 1) {
15638
- 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', _467 => _467.name]) });
15644
+ 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', _461 => _461.name]) });
15639
15645
  }
15640
15646
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenu, { open, onOpenChange: setOpen, children: [
15641
15647
  /* @__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: [
15642
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: _optionalChain([lastItem, 'optionalAccess', _468 => _468.name]) }),
15648
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: _optionalChain([lastItem, 'optionalAccess', _462 => _462.name]) }),
15643
15649
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: "text-muted-foreground size-3.5 shrink-0" })
15644
15650
  ] }),
15645
15651
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuContent, { align: "start", children: allItems.map(
@@ -15657,8 +15663,8 @@ function BreadcrumbMobile({
15657
15663
  href: item.href,
15658
15664
  className: _chunkMOGEGWXWjs.cn.call(void 0, props.className, "text-foreground font-normal"),
15659
15665
  onClick: (event) => {
15660
- _optionalChain([props, 'access', _469 => _469.onClick, 'optionalCall', _470 => _470(event)]);
15661
- _optionalChain([item, 'access', _471 => _471.onClick, 'optionalCall', _472 => _472()]);
15666
+ _optionalChain([props, 'access', _463 => _463.onClick, 'optionalCall', _464 => _464(event)]);
15667
+ _optionalChain([item, 'access', _465 => _465.onClick, 'optionalCall', _466 => _466()]);
15662
15668
  },
15663
15669
  children: props.children
15664
15670
  }
@@ -15676,7 +15682,7 @@ function BreadcrumbNavigation({ items, rootLabel, showRoot = true }) {
15676
15682
  const generateUrl = usePageUrlGenerator();
15677
15683
  const t = _nextintl.useTranslations.call(void 0, );
15678
15684
  const isMobile = _chunkMOGEGWXWjs.useIsMobile.call(void 0, );
15679
- const root = _optionalChain([rootLabel, 'optionalAccess', _473 => _473.trim, 'call', _474 => _474()]) ? rootLabel : t(`common.home`);
15685
+ const root = _optionalChain([rootLabel, 'optionalAccess', _467 => _467.trim, 'call', _468 => _468()]) ? rootLabel : t(`common.home`);
15680
15686
  if (isMobile) {
15681
15687
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbMobile, { items, generateUrl, rootLabel: root, showRoot });
15682
15688
  }
@@ -16083,12 +16089,12 @@ var _remarkgfm = require('remark-gfm'); var _remarkgfm2 = _interopRequireDefault
16083
16089
 
16084
16090
  function mermaidSourceOf(node) {
16085
16091
  const pre = node;
16086
- const code = _optionalChain([pre, 'optionalAccess', _475 => _475.children, 'optionalAccess', _476 => _476[0]]);
16087
- if (_optionalChain([code, 'optionalAccess', _477 => _477.tagName]) !== "code") return void 0;
16088
- const classNames = Array.isArray(_optionalChain([code, 'access', _478 => _478.properties, 'optionalAccess', _479 => _479.className])) ? code.properties.className : [];
16092
+ const code = _optionalChain([pre, 'optionalAccess', _469 => _469.children, 'optionalAccess', _470 => _470[0]]);
16093
+ if (_optionalChain([code, 'optionalAccess', _471 => _471.tagName]) !== "code") return void 0;
16094
+ const classNames = Array.isArray(_optionalChain([code, 'access', _472 => _472.properties, 'optionalAccess', _473 => _473.className])) ? code.properties.className : [];
16089
16095
  if (!classNames.includes("language-mermaid")) return void 0;
16090
- const text = _optionalChain([code, 'access', _480 => _480.children, 'optionalAccess', _481 => _481[0]]);
16091
- if (_optionalChain([text, 'optionalAccess', _482 => _482.type]) !== "text" || typeof text.value !== "string") return void 0;
16096
+ const text = _optionalChain([code, 'access', _474 => _474.children, 'optionalAccess', _475 => _475[0]]);
16097
+ if (_optionalChain([text, 'optionalAccess', _476 => _476.type]) !== "text" || typeof text.value !== "string") return void 0;
16092
16098
  return text.value;
16093
16099
  }
16094
16100
  _chunk7QVYU63Ejs.__name.call(void 0, mermaidSourceOf, "mermaidSourceOf");
@@ -16345,7 +16351,7 @@ var railTriggerClass = _chunkMOGEGWXWjs.cn.call(void 0,
16345
16351
  "data-active:text-primary dark:data-active:text-primary",
16346
16352
  "data-active:font-medium data-active:shadow-none"
16347
16353
  );
16348
- var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access', _483 => _483.key, 'optionalAccess', _484 => _484.name]))), () => ( tab.label)), "tabValue");
16354
+ var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access', _477 => _477.key, 'optionalAccess', _478 => _478.name]))), () => ( tab.label)), "tabValue");
16349
16355
  function RoundPageContainer({
16350
16356
  module,
16351
16357
  id,
@@ -16377,7 +16383,7 @@ function RoundPageContainer({
16377
16383
  const [mounted, setMounted] = _react.useState.call(void 0, false);
16378
16384
  _react.useEffect.call(void 0, () => {
16379
16385
  const match = document.cookie.split("; ").find((row) => row.startsWith(`${detailsCookieName}=`));
16380
- const stored = _optionalChain([match, 'optionalAccess', _485 => _485.split, 'call', _486 => _486("="), 'access', _487 => _487[1]]);
16386
+ const stored = _optionalChain([match, 'optionalAccess', _479 => _479.split, 'call', _480 => _480("="), 'access', _481 => _481[1]]);
16381
16387
  if (stored === "true") setShowDetailsState(true);
16382
16388
  else if (stored === "false") setShowDetailsState(false);
16383
16389
  }, []);
@@ -16392,7 +16398,7 @@ function RoundPageContainer({
16392
16398
  const clip = isFixed ? `overflow-hidden` : ``;
16393
16399
  const scrollY = isFixed ? `overflow-y-auto` : ``;
16394
16400
  const mobileBarClass = isFixed ? `` : `sticky bottom-0 z-30`;
16395
- const detailsCookieName = _optionalChain([module, 'optionalAccess', _488 => _488.name]) ? `${DETAILS_COOKIE_NAME}_${module.name}` : DETAILS_COOKIE_NAME;
16401
+ const detailsCookieName = _optionalChain([module, 'optionalAccess', _482 => _482.name]) ? `${DETAILS_COOKIE_NAME}_${module.name}` : DETAILS_COOKIE_NAME;
16396
16402
  const setShowDetails = _react.useCallback.call(void 0,
16397
16403
  (value) => {
16398
16404
  setShowDetailsState(value);
@@ -16425,13 +16431,13 @@ function RoundPageContainer({
16425
16431
  } else {
16426
16432
  rewriteUrl({ page: window.location.pathname, additionalParameters: { section: key }, mode: "push" });
16427
16433
  }
16428
- _optionalChain([onSectionChange, 'optionalCall', _489 => _489(key)]);
16434
+ _optionalChain([onSectionChange, 'optionalCall', _483 => _483(key)]);
16429
16435
  },
16430
16436
  [module, id, rewriteUrl, onSectionChange]
16431
16437
  );
16432
- const activeTabDefinition = _optionalChain([tabs, 'optionalAccess', _490 => _490.find, 'call', _491 => _491((t2) => tabValue(t2) === activeTab)]);
16433
- const activeFillHeight = _optionalChain([activeTabDefinition, 'optionalAccess', _492 => _492.fillHeight]) === true;
16434
- const activeConstrainWidth = _optionalChain([activeTabDefinition, 'optionalAccess', _493 => _493.constrainWidth]) === true;
16438
+ const activeTabDefinition = _optionalChain([tabs, 'optionalAccess', _484 => _484.find, 'call', _485 => _485((t2) => tabValue(t2) === activeTab)]);
16439
+ const activeFillHeight = _optionalChain([activeTabDefinition, 'optionalAccess', _486 => _486.fillHeight]) === true;
16440
+ const activeConstrainWidth = _optionalChain([activeTabDefinition, 'optionalAccess', _487 => _487.constrainWidth]) === true;
16435
16441
  const { ungrouped, groups } = _react.useMemo.call(void 0, () => partitionTabs(_nullishCoalesce(tabs, () => ( []))), [tabs]);
16436
16442
  const tabItems = _react.useMemo.call(void 0,
16437
16443
  () => Object.fromEntries((_nullishCoalesce(tabs, () => ( []))).map((tab) => [tabValue(tab), _nullishCoalesce(tab.contentLabel, () => ( tab.label))])),
@@ -16442,7 +16448,7 @@ function RoundPageContainer({
16442
16448
  const mobileFlow = isMobile && isFixed && (!activeFillHeight || activeDocumentTab) && !fullWidth;
16443
16449
  const innerClip = mobileFlow ? `` : clip;
16444
16450
  const innerScrollY = mobileFlow ? `` : scrollY;
16445
- const showMobileSectionPicker = (_nullishCoalesce(_optionalChain([tabs, 'optionalAccess', _494 => _494.length]), () => ( 0))) > 1;
16451
+ const showMobileSectionPicker = (_nullishCoalesce(_optionalChain([tabs, 'optionalAccess', _488 => _488.length]), () => ( 0))) > 1;
16446
16452
  if (!isReady) {
16447
16453
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
16448
16454
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -16842,14 +16848,14 @@ function BlockNoteEditorMentionHoverCard({
16842
16848
  const entityType = target.dataset.mentionType;
16843
16849
  const alias = target.dataset.mentionAlias;
16844
16850
  setHovered((prev) => {
16845
- if (_optionalChain([prev, 'optionalAccess', _495 => _495.id]) === id && _optionalChain([prev, 'optionalAccess', _496 => _496.element]) === target) return prev;
16851
+ if (_optionalChain([prev, 'optionalAccess', _489 => _489.id]) === id && _optionalChain([prev, 'optionalAccess', _490 => _490.element]) === target) return prev;
16846
16852
  return { id, entityType, alias, element: target };
16847
16853
  });
16848
16854
  }, "handleMouseOver");
16849
16855
  const handleMouseOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
16850
16856
  const target = e.target.closest("[data-mention-id]");
16851
16857
  if (!target) return;
16852
- const related = _optionalChain([e, 'access', _497 => _497.relatedTarget, 'optionalAccess', _498 => _498.closest, 'call', _499 => _499("[data-mention-id]")]);
16858
+ const related = _optionalChain([e, 'access', _491 => _491.relatedTarget, 'optionalAccess', _492 => _492.closest, 'call', _493 => _493("[data-mention-id]")]);
16853
16859
  if (related) return;
16854
16860
  scheduleClose();
16855
16861
  }, "handleMouseOut");
@@ -16863,7 +16869,7 @@ function BlockNoteEditorMentionHoverCard({
16863
16869
  }, [containerRef, mentionResolveFn, cancelClose, scheduleClose]);
16864
16870
  if (!hovered || !mentionResolveFn) return null;
16865
16871
  const resolved = mentionResolveFn(hovered.id, hovered.entityType, hovered.alias);
16866
- if (!_optionalChain([resolved, 'optionalAccess', _500 => _500.HoverContent])) return null;
16872
+ if (!_optionalChain([resolved, 'optionalAccess', _494 => _494.HoverContent])) return null;
16867
16873
  const ContentComponent = resolved.HoverContent;
16868
16874
  const rect = hovered.element.getBoundingClientRect();
16869
16875
  return _reactdom.createPortal.call(void 0,
@@ -16907,28 +16913,28 @@ var parseMentionElement = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
16907
16913
  }, "parseMentionElement");
16908
16914
  var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn, disableMention, nameResolver) => {
16909
16915
  const MentionExternalHTML = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
16910
- const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _501 => _501(props.id, props.entityType, props.alias)]), () => ( props.alias));
16916
+ const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _495 => _495(props.id, props.entityType, props.alias)]), () => ( props.alias));
16911
16917
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "data-mention-id": props.id, "data-mention-type": props.entityType, "data-mention-alias": props.alias, children: [
16912
16918
  "@",
16913
16919
  displayName
16914
16920
  ] });
16915
16921
  }, "MentionExternalHTML");
16916
16922
  const Mention = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function Mention2(props) {
16917
- const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _502 => _502(props.id, props.entityType, props.alias)]), () => ( props.alias));
16923
+ const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _496 => _496(props.id, props.entityType, props.alias)]), () => ( props.alias));
16918
16924
  if (disableMention) {
16919
- const resolved2 = _optionalChain([resolveFn, 'optionalCall', _503 => _503(props.id, props.entityType, displayName)]);
16920
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _504 => _504.url]), () => ( "#")), className: "text-primary", children: [
16925
+ const resolved2 = _optionalChain([resolveFn, 'optionalCall', _497 => _497(props.id, props.entityType, displayName)]);
16926
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _498 => _498.url]), () => ( "#")), className: "text-primary", children: [
16921
16927
  "@",
16922
16928
  displayName
16923
16929
  ] });
16924
16930
  }
16925
- const resolved = _optionalChain([resolveFn, 'optionalCall', _505 => _505(props.id, props.entityType, displayName)]);
16926
- if (_optionalChain([resolved, 'optionalAccess', _506 => _506.Inline])) {
16931
+ const resolved = _optionalChain([resolveFn, 'optionalCall', _499 => _499(props.id, props.entityType, displayName)]);
16932
+ if (_optionalChain([resolved, 'optionalAccess', _500 => _500.Inline])) {
16927
16933
  const Custom = resolved.Inline;
16928
16934
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props, alias: displayName });
16929
16935
  }
16930
- const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _507 => _507.url]), () => ( "#"));
16931
- const handleClick = _optionalChain([resolved, 'optionalAccess', _508 => _508.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
16936
+ const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _501 => _501.url]), () => ( "#"));
16937
+ const handleClick = _optionalChain([resolved, 'optionalAccess', _502 => _502.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
16932
16938
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
16933
16939
  _link2.default,
16934
16940
  {
@@ -17036,7 +17042,7 @@ function BlockNoteEditorMentionSuggestionMenu({
17036
17042
  if (!suggestionMenuComponent) return void 0;
17037
17043
  const Component2 = suggestionMenuComponent;
17038
17044
  const Wrapped = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
17039
- const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _509 => _509.items, 'access', _510 => _510[0], 'optionalAccess', _511 => _511.title]) === KEEP_OPEN_SENTINEL_TITLE;
17045
+ const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _503 => _503.items, 'access', _504 => _504[0], 'optionalAccess', _505 => _505.title]) === KEEP_OPEN_SENTINEL_TITLE;
17040
17046
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
17041
17047
  Component2,
17042
17048
  {
@@ -17045,7 +17051,7 @@ function BlockNoteEditorMentionSuggestionMenu({
17045
17051
  selectedIndex: isSentinelOnly ? void 0 : props.selectedIndex,
17046
17052
  onItemClick: (item) => {
17047
17053
  if (item.title === KEEP_OPEN_SENTINEL_TITLE) return;
17048
- _optionalChain([props, 'access', _512 => _512.onItemClick, 'optionalCall', _513 => _513(item)]);
17054
+ _optionalChain([props, 'access', _506 => _506.onItemClick, 'optionalCall', _507 => _507(item)]);
17049
17055
  }
17050
17056
  }
17051
17057
  );
@@ -17292,10 +17298,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
17292
17298
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
17293
17299
  SelectRowCheckbox,
17294
17300
  {
17295
- checked: _optionalChain([params, 'access', _514 => _514.checkedIds, 'optionalAccess', _515 => _515.includes, 'call', _516 => _516(row.getValue(params.name))]) || false,
17301
+ checked: _optionalChain([params, 'access', _508 => _508.checkedIds, 'optionalAccess', _509 => _509.includes, 'call', _510 => _510(row.getValue(params.name))]) || false,
17296
17302
  onCheckedChange: (value) => {
17297
17303
  row.toggleSelected(!!value);
17298
- _optionalChain([params, 'access', _517 => _517.toggleId, 'optionalCall', _518 => _518(row.getValue(params.name))]);
17304
+ _optionalChain([params, 'access', _511 => _511.toggleId, 'optionalCall', _512 => _512(row.getValue(params.name))]);
17299
17305
  }
17300
17306
  }
17301
17307
  ) : null, "cell"),
@@ -17353,7 +17359,7 @@ function useJsonApiGet(params) {
17353
17359
  const [response, setResponse] = _react.useState.call(void 0, null);
17354
17360
  const isMounted = _react.useRef.call(void 0, true);
17355
17361
  const fetchData = _react.useCallback.call(void 0, async () => {
17356
- if (_optionalChain([params, 'access', _519 => _519.options, 'optionalAccess', _520 => _520.enabled]) === false) return;
17362
+ if (_optionalChain([params, 'access', _513 => _513.options, 'optionalAccess', _514 => _514.enabled]) === false) return;
17357
17363
  setLoading(true);
17358
17364
  setError(null);
17359
17365
  try {
@@ -17380,9 +17386,9 @@ function useJsonApiGet(params) {
17380
17386
  setLoading(false);
17381
17387
  }
17382
17388
  }
17383
- }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _521 => _521.options, 'optionalAccess', _522 => _522.enabled])]);
17389
+ }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _515 => _515.options, 'optionalAccess', _516 => _516.enabled])]);
17384
17390
  const fetchNextPage = _react.useCallback.call(void 0, async () => {
17385
- if (!_optionalChain([response, 'optionalAccess', _523 => _523.nextPage])) return;
17391
+ if (!_optionalChain([response, 'optionalAccess', _517 => _517.nextPage])) return;
17386
17392
  setLoading(true);
17387
17393
  try {
17388
17394
  const nextResponse = await response.nextPage();
@@ -17403,7 +17409,7 @@ function useJsonApiGet(params) {
17403
17409
  }
17404
17410
  }, [response]);
17405
17411
  const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
17406
- if (!_optionalChain([response, 'optionalAccess', _524 => _524.prevPage])) return;
17412
+ if (!_optionalChain([response, 'optionalAccess', _518 => _518.prevPage])) return;
17407
17413
  setLoading(true);
17408
17414
  try {
17409
17415
  const prevResponse = await response.prevPage();
@@ -17429,15 +17435,15 @@ function useJsonApiGet(params) {
17429
17435
  return () => {
17430
17436
  isMounted.current = false;
17431
17437
  };
17432
- }, [fetchData, ..._optionalChain([params, 'access', _525 => _525.options, 'optionalAccess', _526 => _526.deps]) || []]);
17438
+ }, [fetchData, ..._optionalChain([params, 'access', _519 => _519.options, 'optionalAccess', _520 => _520.deps]) || []]);
17433
17439
  return {
17434
17440
  data,
17435
17441
  loading,
17436
17442
  error,
17437
17443
  response,
17438
17444
  refetch: fetchData,
17439
- hasNextPage: !!_optionalChain([response, 'optionalAccess', _527 => _527.next]),
17440
- hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _528 => _528.prev]),
17445
+ hasNextPage: !!_optionalChain([response, 'optionalAccess', _521 => _521.next]),
17446
+ hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _522 => _522.prev]),
17441
17447
  fetchNextPage,
17442
17448
  fetchPreviousPage
17443
17449
  };
@@ -17515,17 +17521,17 @@ function useJsonApiMutation(config) {
17515
17521
  if (apiResponse.ok) {
17516
17522
  const resultData = apiResponse.data;
17517
17523
  setData(resultData);
17518
- _optionalChain([config, 'access', _529 => _529.onSuccess, 'optionalCall', _530 => _530(resultData)]);
17524
+ _optionalChain([config, 'access', _523 => _523.onSuccess, 'optionalCall', _524 => _524(resultData)]);
17519
17525
  return resultData;
17520
17526
  } else {
17521
17527
  setError(apiResponse.error);
17522
- _optionalChain([config, 'access', _531 => _531.onError, 'optionalCall', _532 => _532(apiResponse.error)]);
17528
+ _optionalChain([config, 'access', _525 => _525.onError, 'optionalCall', _526 => _526(apiResponse.error)]);
17523
17529
  return null;
17524
17530
  }
17525
17531
  } catch (err) {
17526
17532
  const errorMessage = err instanceof Error ? err.message : "Unknown error";
17527
17533
  setError(errorMessage);
17528
- _optionalChain([config, 'access', _533 => _533.onError, 'optionalCall', _534 => _534(errorMessage)]);
17534
+ _optionalChain([config, 'access', _527 => _527.onError, 'optionalCall', _528 => _528(errorMessage)]);
17529
17535
  return null;
17530
17536
  } finally {
17531
17537
  setLoading(false);
@@ -17598,7 +17604,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
17598
17604
  {
17599
17605
  href: hasRole(_chunkG4JR3SFVjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
17600
17606
  page: "/administration",
17601
- id: _optionalChain([_chunkBZ5J2FIVjs.Modules, 'access', _535 => _535.Company, 'access', _536 => _536.pageUrl, 'optionalAccess', _537 => _537.substring, 'call', _538 => _538(1)]),
17607
+ id: _optionalChain([_chunkBZ5J2FIVjs.Modules, 'access', _529 => _529.Company, 'access', _530 => _530.pageUrl, 'optionalAccess', _531 => _531.substring, 'call', _532 => _532(1)]),
17602
17608
  childPage: company.id
17603
17609
  }) : generateUrl({ page: _chunkBZ5J2FIVjs.Modules.Company, id: company.id }),
17604
17610
  children: row.getValue("name")
@@ -17614,7 +17620,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
17614
17620
  })
17615
17621
  };
17616
17622
  const columns = _react.useMemo.call(void 0, () => {
17617
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _539 => _539[field], 'optionalCall', _540 => _540()])).filter((col) => col !== void 0);
17623
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _533 => _533[field], 'optionalCall', _534 => _534()])).filter((col) => col !== void 0);
17618
17624
  }, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
17619
17625
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17620
17626
  }, "useCompanyTableStructure");
@@ -17627,7 +17633,7 @@ var DAY_MS = 1e3 * 60 * 60 * 24;
17627
17633
  var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
17628
17634
  if (!currentUser || !_chunkG4JR3SFVjs.isRolesConfigured.call(void 0, )) return false;
17629
17635
  const adminRoleId = _chunkG4JR3SFVjs.getRoleId.call(void 0, ).Administrator;
17630
- return !!_optionalChain([currentUser, 'access', _541 => _541.roles, 'optionalAccess', _542 => _542.some, 'call', _543 => _543((role) => role.id === adminRoleId)]);
17636
+ return !!_optionalChain([currentUser, 'access', _535 => _535.roles, 'optionalAccess', _536 => _536.some, 'call', _537 => _537((role) => role.id === adminRoleId)]);
17631
17637
  }, "isAdministrator");
17632
17638
  function useSubscriptionStatus() {
17633
17639
  const { company, currentUser } = useCurrentUserContext();
@@ -17744,7 +17750,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
17744
17750
  })
17745
17751
  };
17746
17752
  const columns = _react.useMemo.call(void 0, () => {
17747
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _544 => _544[field], 'optionalCall', _545 => _545()])).filter((col) => col !== void 0);
17753
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _538 => _538[field], 'optionalCall', _539 => _539()])).filter((col) => col !== void 0);
17748
17754
  }, [params.fields, fieldColumnMap, t, generateUrl]);
17749
17755
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17750
17756
  }, "useRoleTableStructure");
@@ -17784,12 +17790,12 @@ _chunk7QVYU63Ejs.__name.call(void 0, useBillingFormatOptions, "useBillingFormatO
17784
17790
 
17785
17791
  // src/features/billing/components/utils/discount.ts
17786
17792
  function promotionCodeDiscount(code) {
17787
- if (!_optionalChain([code, 'optionalAccess', _546 => _546.valid]) || !code.discountType || !code.discountValue) return null;
17793
+ if (!_optionalChain([code, 'optionalAccess', _540 => _540.valid]) || !code.discountType || !code.discountValue) return null;
17788
17794
  return { discountType: code.discountType, discountValue: code.discountValue, currency: code.currency };
17789
17795
  }
17790
17796
  _chunk7QVYU63Ejs.__name.call(void 0, promotionCodeDiscount, "promotionCodeDiscount");
17791
17797
  function subscriptionDiscount(subscription) {
17792
- const discount = _optionalChain([subscription, 'optionalAccess', _547 => _547.discount]);
17798
+ const discount = _optionalChain([subscription, 'optionalAccess', _541 => _541.discount]);
17793
17799
  if (!discount) return null;
17794
17800
  if (discount.percentOff) return { discountType: "percent_off", discountValue: discount.percentOff };
17795
17801
  if (discount.amountOff) {
@@ -17811,8 +17817,8 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
17811
17817
  const t = _nextintl.useTranslations.call(void 0, );
17812
17818
  const fmt = useBillingFormatOptions();
17813
17819
  const generateUrl = usePageUrlGenerator();
17814
- const onClone = _optionalChain([params, 'access', _548 => _548.context, 'optionalAccess', _549 => _549.onClone]);
17815
- const onExport = _optionalChain([params, 'access', _550 => _550.context, 'optionalAccess', _551 => _551.onExport]);
17820
+ const onClone = _optionalChain([params, 'access', _542 => _542.context, 'optionalAccess', _543 => _543.onClone]);
17821
+ const onExport = _optionalChain([params, 'access', _544 => _544.context, 'optionalAccess', _545 => _545.onExport]);
17816
17822
  const tableData = _react.useMemo.call(void 0, () => {
17817
17823
  return params.data.map((price) => {
17818
17824
  const entry = { jsonApiData: price };
@@ -17877,7 +17883,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
17877
17883
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex flex-wrap items-center gap-1", children: [
17878
17884
  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") }),
17879
17885
  price.isTrial && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.trial") }),
17880
- _optionalChain([price, 'access', _552 => _552.recurring, 'optionalAccess', _553 => _553.usageType]) === "metered" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.metered") })
17886
+ _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") })
17881
17887
  ] });
17882
17888
  }, "cell"),
17883
17889
  enableSorting: false,
@@ -17925,7 +17931,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
17925
17931
  })
17926
17932
  };
17927
17933
  const columns = _react.useMemo.call(void 0, () => {
17928
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _554 => _554[field], 'optionalCall', _555 => _555()])).filter((col) => col !== void 0);
17934
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _548 => _548[field], 'optionalCall', _549 => _549()])).filter((col) => col !== void 0);
17929
17935
  }, [params.fields, fieldColumnMap, t, fmt, generateUrl, onClone, onExport]);
17930
17936
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17931
17937
  }, "useStripePriceTableStructure");
@@ -17984,7 +17990,7 @@ var useStripeProductTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.cal
17984
17990
  })
17985
17991
  };
17986
17992
  const columns = _react.useMemo.call(void 0, () => {
17987
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _556 => _556[field], 'optionalCall', _557 => _557()])).filter((col) => col !== void 0);
17993
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _550 => _550[field], 'optionalCall', _551 => _551()])).filter((col) => col !== void 0);
17988
17994
  }, [params.fields, fieldColumnMap, t, generateUrl]);
17989
17995
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17990
17996
  }, "useStripeProductTableStructure");
@@ -18068,7 +18074,7 @@ var useStripeCouponTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
18068
18074
  })
18069
18075
  };
18070
18076
  const columns = _react.useMemo.call(void 0, () => {
18071
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _558 => _558[field], 'optionalCall', _559 => _559()])).filter((col) => col !== void 0);
18077
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _552 => _552[field], 'optionalCall', _553 => _553()])).filter((col) => col !== void 0);
18072
18078
  }, [params.fields, fieldColumnMap, t, generateUrl]);
18073
18079
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
18074
18080
  }, "useStripeCouponTableStructure");
@@ -18197,13 +18203,13 @@ var toCouponCodeInput = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (va
18197
18203
  firstTimeTransaction: values.firstTimeTransaction,
18198
18204
  automatic: values.automatic
18199
18205
  };
18200
- if (_optionalChain([values, 'access', _560 => _560.code, 'optionalAccess', _561 => _561.trim, 'call', _562 => _562()])) input.code = values.code.trim();
18206
+ if (_optionalChain([values, 'access', _554 => _554.code, 'optionalAccess', _555 => _555.trim, 'call', _556 => _556()])) input.code = values.code.trim();
18201
18207
  const minimumAmount = parseOptionalDecimal(values.minimumAmount);
18202
18208
  if (minimumAmount !== void 0) {
18203
18209
  input.minimumAmount = Math.round(minimumAmount * 100);
18204
18210
  input.minimumAmountCurrency = values.minimumAmountCurrency;
18205
18211
  }
18206
- if (_optionalChain([values, 'access', _563 => _563.stripeCustomerId, 'optionalAccess', _564 => _564.trim, 'call', _565 => _565()])) input.stripeCustomerId = values.stripeCustomerId.trim();
18212
+ if (_optionalChain([values, 'access', _557 => _557.stripeCustomerId, 'optionalAccess', _558 => _558.trim, 'call', _559 => _559()])) input.stripeCustomerId = values.stripeCustomerId.trim();
18207
18213
  if (values.expiresAt) input.expiresAt = values.expiresAt;
18208
18214
  const maxRedemptions = parseOptionalPositiveInt(values.maxRedemptions);
18209
18215
  if (maxRedemptions !== void 0) input.maxRedemptions = maxRedemptions;
@@ -18372,7 +18378,7 @@ function toCouponInput(values) {
18372
18378
  ...toDiscountInput(values),
18373
18379
  ...toDurationInput(values)
18374
18380
  };
18375
- if (_optionalChain([values, 'access', _566 => _566.stripeCouponId, 'optionalAccess', _567 => _567.trim, 'call', _568 => _568()])) payload.stripeCouponId = values.stripeCouponId.trim();
18381
+ if (_optionalChain([values, 'access', _560 => _560.stripeCouponId, 'optionalAccess', _561 => _561.trim, 'call', _562 => _562()])) payload.stripeCouponId = values.stripeCouponId.trim();
18376
18382
  if (values.products.length > 0) payload.productIds = values.products.map((product) => product.id);
18377
18383
  if (values.redeemBy) payload.redeemBy = values.redeemBy;
18378
18384
  const maxRedemptions = parseOptionalPositiveInt(values.maxRedemptions);
@@ -18695,9 +18701,9 @@ var CouponProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ chi
18695
18701
  const [catalogueVersion, setCatalogueVersion] = _react.useState.call(void 0, 0);
18696
18702
  const refreshCatalogue = _react.useCallback.call(void 0, () => setCatalogueVersion((value2) => value2 + 1), []);
18697
18703
  const reloadCoupon = _react.useCallback.call(void 0, async () => {
18698
- if (!_optionalChain([coupon, 'optionalAccess', _569 => _569.id])) return;
18704
+ if (!_optionalChain([coupon, 'optionalAccess', _563 => _563.id])) return;
18699
18705
  setCoupon(await _chunkMOGEGWXWjs.StripeCouponService.getCoupon({ id: coupon.id }));
18700
- }, [_optionalChain([coupon, 'optionalAccess', _570 => _570.id])]);
18706
+ }, [_optionalChain([coupon, 'optionalAccess', _564 => _564.id])]);
18701
18707
  const createCoupon = _react.useCallback.call(void 0,
18702
18708
  async (input) => {
18703
18709
  const saved = await _chunkMOGEGWXWjs.StripeCouponService.createCoupon(input);
@@ -18717,13 +18723,13 @@ var CouponProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ chi
18717
18723
  );
18718
18724
  const refreshCounts = _react.useCallback.call(void 0,
18719
18725
  async (id) => {
18720
- const target = _nullishCoalesce(id, () => ( _optionalChain([coupon, 'optionalAccess', _571 => _571.id])));
18726
+ const target = _nullishCoalesce(id, () => ( _optionalChain([coupon, 'optionalAccess', _565 => _565.id])));
18721
18727
  if (!target) return;
18722
18728
  const saved = await _chunkMOGEGWXWjs.StripeCouponService.refreshCounts({ id: target });
18723
- if (_optionalChain([coupon, 'optionalAccess', _572 => _572.id]) === target) setCoupon(saved);
18729
+ if (_optionalChain([coupon, 'optionalAccess', _566 => _566.id]) === target) setCoupon(saved);
18724
18730
  refreshCatalogue();
18725
18731
  },
18726
- [_optionalChain([coupon, 'optionalAccess', _573 => _573.id]), refreshCatalogue]
18732
+ [_optionalChain([coupon, 'optionalAccess', _567 => _567.id]), refreshCatalogue]
18727
18733
  );
18728
18734
  const createCode = _react.useCallback.call(void 0,
18729
18735
  async (input) => {
@@ -18961,7 +18967,7 @@ var useStripeCouponCodeTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.
18961
18967
  })
18962
18968
  };
18963
18969
  const columns = _react.useMemo.call(void 0, () => {
18964
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _574 => _574[field], 'optionalCall', _575 => _575()])).filter((col) => col !== void 0);
18970
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _568 => _568[field], 'optionalCall', _569 => _569()])).filter((col) => col !== void 0);
18965
18971
  }, [params.fields, fieldColumnMap, t, coupon, now]);
18966
18972
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
18967
18973
  }, "useStripeCouponCodeTableStructure");
@@ -18987,7 +18993,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, formatSignupSource, "formatSignupSource");
18987
18993
  var useWaitlistTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
18988
18994
  const t = _nextintl.useTranslations.call(void 0, );
18989
18995
  const locale = _chunkBZ5J2FIVjs.useI18nLocale.call(void 0, );
18990
- const onInvite = _optionalChain([params, 'access', _576 => _576.context, 'optionalAccess', _577 => _577.onInvite]);
18996
+ const onInvite = _optionalChain([params, 'access', _570 => _570.context, 'optionalAccess', _571 => _571.onInvite]);
18991
18997
  const tableData = _react.useMemo.call(void 0, () => {
18992
18998
  return params.data.map((entry) => {
18993
18999
  const row = { jsonApiData: entry };
@@ -19082,7 +19088,7 @@ var useWaitlistTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
19082
19088
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
19083
19089
  const entry = row.original.jsonApiData;
19084
19090
  if (entry.status === "confirmed") {
19085
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Button, { size: "sm", variant: "outline", onClick: () => _optionalChain([onInvite, 'optionalCall', _578 => _578(entry)]), children: [
19091
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Button, { size: "sm", variant: "outline", onClick: () => _optionalChain([onInvite, 'optionalCall', _572 => _572(entry)]), children: [
19086
19092
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Send, { className: "me-2 h-4 w-4" }),
19087
19093
  t("waitlist.admin.actions.invite")
19088
19094
  ] });
@@ -19100,7 +19106,7 @@ var useWaitlistTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
19100
19106
  })
19101
19107
  };
19102
19108
  const columns = _react.useMemo.call(void 0, () => {
19103
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _579 => _579[field], 'optionalCall', _580 => _580()])).filter((col) => col !== void 0);
19109
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _573 => _573[field], 'optionalCall', _574 => _574()])).filter((col) => col !== void 0);
19104
19110
  }, [params.fields, fieldColumnMap, t, locale]);
19105
19111
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
19106
19112
  }, "useWaitlistTableStructure");
@@ -19201,11 +19207,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
19201
19207
  return params.fields.map((field) => {
19202
19208
  const localHandler = fieldColumnMap[field];
19203
19209
  if (localHandler) return localHandler();
19204
- const customHandler = _optionalChain([params, 'access', _581 => _581.context, 'optionalAccess', _582 => _582.customCells, 'optionalAccess', _583 => _583[field]]);
19210
+ const customHandler = _optionalChain([params, 'access', _575 => _575.context, 'optionalAccess', _576 => _576.customCells, 'optionalAccess', _577 => _577[field]]);
19205
19211
  if (customHandler) return customHandler({ t });
19206
19212
  return void 0;
19207
19213
  }).filter((col) => col !== void 0);
19208
- }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _584 => _584.context, 'optionalAccess', _585 => _585.customCells])]);
19214
+ }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _578 => _578.context, 'optionalAccess', _579 => _579.customCells])]);
19209
19215
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
19210
19216
  }, "useContentTableStructure");
19211
19217
 
@@ -19440,17 +19446,17 @@ function useOAuthConsent(params, options) {
19440
19446
  const [error, setError] = _react.useState.call(void 0, null);
19441
19447
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
19442
19448
  const [companyId, setCompanyId] = _react.useState.call(void 0, void 0);
19443
- const contextCompanyId = _optionalChain([useCurrentUserContextOptional, 'call', _586 => _586(), 'optionalAccess', _587 => _587.company, 'optionalAccess', _588 => _588.id]);
19444
- const currentCompanyId = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _589 => _589.defaultCompanyId]), () => ( contextCompanyId));
19449
+ const contextCompanyId = _optionalChain([useCurrentUserContextOptional, 'call', _580 => _580(), 'optionalAccess', _581 => _581.company, 'optionalAccess', _582 => _582.id]);
19450
+ const currentCompanyId = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _583 => _583.defaultCompanyId]), () => ( contextCompanyId));
19445
19451
  const t = _nextintl.useTranslations.call(void 0, );
19446
19452
  const tRef = _react.useRef.call(void 0, t);
19447
19453
  tRef.current = t;
19448
19454
  _react.useEffect.call(void 0, () => {
19449
- const companies = _nullishCoalesce(_optionalChain([clientInfo, 'optionalAccess', _590 => _590.companies]), () => ( []));
19455
+ const companies = _nullishCoalesce(_optionalChain([clientInfo, 'optionalAccess', _584 => _584.companies]), () => ( []));
19450
19456
  if (companies.length === 0) return;
19451
19457
  if (companyId && companies.some((company) => company.id === companyId)) return;
19452
19458
  const current = currentCompanyId ? companies.find((company) => company.id === currentCompanyId) : void 0;
19453
- setCompanyId(_nullishCoalesce(_optionalChain([current, 'optionalAccess', _591 => _591.id]), () => ( _optionalChain([companies, 'access', _592 => _592[0], 'optionalAccess', _593 => _593.id]))));
19459
+ setCompanyId(_nullishCoalesce(_optionalChain([current, 'optionalAccess', _585 => _585.id]), () => ( _optionalChain([companies, 'access', _586 => _586[0], 'optionalAccess', _587 => _587.id]))));
19454
19460
  }, [clientInfo, currentCompanyId, companyId]);
19455
19461
  _react.useEffect.call(void 0, () => {
19456
19462
  const fetchInfo = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
@@ -19536,7 +19542,7 @@ function useOAuthScopeText() {
19536
19542
  };
19537
19543
  }
19538
19544
  const info = typeof scope === "string" ? void 0 : scope;
19539
- return { name: _optionalChain([info, 'optionalAccess', _594 => _594.name]) || id, description: _nullishCoalesce(_optionalChain([info, 'optionalAccess', _595 => _595.description]), () => ( "")) };
19545
+ return { name: _optionalChain([info, 'optionalAccess', _588 => _588.name]) || id, description: _nullishCoalesce(_optionalChain([info, 'optionalAccess', _589 => _589.description]), () => ( "")) };
19540
19546
  },
19541
19547
  [t]
19542
19548
  );
@@ -19592,7 +19598,7 @@ function ContentTableSearch({ data }) {
19592
19598
  const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
19593
19599
  if (!isExpanded) {
19594
19600
  setIsFocused(true);
19595
- setTimeout(() => _optionalChain([inputRef, 'access', _596 => _596.current, 'optionalAccess', _597 => _597.focus, 'call', _598 => _598()]), 50);
19601
+ setTimeout(() => _optionalChain([inputRef, 'access', _590 => _590.current, 'optionalAccess', _591 => _591.focus, 'call', _592 => _592()]), 50);
19596
19602
  }
19597
19603
  }, "handleSearchIconClick");
19598
19604
  const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
@@ -19678,7 +19684,7 @@ function getGroupKeys(item, field) {
19678
19684
  return [String(_nullishCoalesce(value, () => ( "")))];
19679
19685
  }
19680
19686
  _chunk7QVYU63Ejs.__name.call(void 0, getGroupKeys, "getGroupKeys");
19681
- var isClassComponent = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (component) => typeof component === "function" && !!_optionalChain([component, 'access', _599 => _599.prototype, 'optionalAccess', _600 => _600.isReactComponent]), "isClassComponent");
19687
+ var isClassComponent = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (component) => typeof component === "function" && !!_optionalChain([component, 'access', _593 => _593.prototype, 'optionalAccess', _594 => _594.isReactComponent]), "isClassComponent");
19682
19688
  function StableCell({ render, context }) {
19683
19689
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: render(context) });
19684
19690
  }
@@ -19702,7 +19708,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
19702
19708
  if (data.isLoaded) setPendingDirection(null);
19703
19709
  }, [data.isLoaded]);
19704
19710
  const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
19705
- data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _601 => _601.data]), () => ( EMPTY_ARRAY)),
19711
+ data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _595 => _595.data]), () => ( EMPTY_ARRAY)),
19706
19712
  fields,
19707
19713
  checkedIds,
19708
19714
  toggleId,
@@ -19732,7 +19738,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
19732
19738
  ...props.renderExpandedRow && {
19733
19739
  getExpandedRowModel: _reacttable.getExpandedRowModel.call(void 0, ),
19734
19740
  // Key rows by record id so an expansion stays with its record when a search or filter reorders the rows.
19735
- getRowId: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (row, index) => _nullishCoalesce(_optionalChain([row, 'access', _602 => _602.jsonApiData, 'optionalAccess', _603 => _603.id]), () => ( String(index))), "getRowId"),
19741
+ getRowId: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (row, index) => _nullishCoalesce(_optionalChain([row, 'access', _596 => _596.jsonApiData, 'optionalAccess', _597 => _597.id]), () => ( String(index))), "getRowId"),
19736
19742
  getRowCanExpand: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => true, "getRowCanExpand"),
19737
19743
  onExpandedChange: setExpanded,
19738
19744
  state: { expanded }
@@ -19749,7 +19755,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
19749
19755
  });
19750
19756
  const rowModel = tableData ? table.getRowModel() : null;
19751
19757
  const groupedRows = _react.useMemo.call(void 0, () => {
19752
- if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _604 => _604.rows, 'optionalAccess', _605 => _605.length])) return null;
19758
+ if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _598 => _598.rows, 'optionalAccess', _599 => _599.length])) return null;
19753
19759
  const groupMap = /* @__PURE__ */ new Map();
19754
19760
  for (const row of rowModel.rows) {
19755
19761
  const keys = getGroupKeys(row.original, props.groupBy);
@@ -19828,20 +19834,20 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
19828
19834
  ) }),
19829
19835
  !props.hideHeader && table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
19830
19836
  const meta = header.column.columnDef.meta;
19831
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _606 => _606.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
19837
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _600 => _600.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
19832
19838
  }) }, headerGroup.id))
19833
19839
  ] }),
19834
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _607 => _607.rows, 'optionalAccess', _608 => _608.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
19835
- /* @__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', _609 => _609.groupLabel, 'optionalCall', _610 => _610(group.groupKey)]), () => ( group.groupKey)) }) }) }),
19840
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _601 => _601.rows, 'optionalAccess', _602 => _602.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
19841
+ /* @__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', _603 => _603.groupLabel, 'optionalCall', _604 => _604(group.groupKey)]), () => ( group.groupKey)) }) }) }),
19836
19842
  group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
19837
19843
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
19838
19844
  TableRow,
19839
19845
  {
19840
- onClick: () => _optionalChain([onRowClick, 'optionalCall', _611 => _611(row.original.jsonApiData)]),
19846
+ onClick: () => _optionalChain([onRowClick, 'optionalCall', _605 => _605(row.original.jsonApiData)]),
19841
19847
  className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
19842
19848
  children: row.getVisibleCells().map((cell) => {
19843
19849
  const meta = cell.column.columnDef.meta;
19844
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _612 => _612.className]), children: renderCell(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
19850
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _606 => _606.className]), children: renderCell(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
19845
19851
  })
19846
19852
  }
19847
19853
  ),
@@ -19851,11 +19857,11 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
19851
19857
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
19852
19858
  TableRow,
19853
19859
  {
19854
- onClick: () => _optionalChain([onRowClick, 'optionalCall', _613 => _613(row.original.jsonApiData)]),
19860
+ onClick: () => _optionalChain([onRowClick, 'optionalCall', _607 => _607(row.original.jsonApiData)]),
19855
19861
  className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
19856
19862
  children: row.getVisibleCells().map((cell) => {
19857
19863
  const meta = cell.column.columnDef.meta;
19858
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _614 => _614.className]), children: renderCell(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
19864
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _608 => _608.className]), children: renderCell(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
19859
19865
  })
19860
19866
  }
19861
19867
  ),
@@ -19870,7 +19876,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
19870
19876
  onClick: (e) => {
19871
19877
  e.preventDefault();
19872
19878
  setPendingDirection("prev");
19873
- _optionalChain([data, 'access', _615 => _615.previous, 'optionalCall', _616 => _616(true)]);
19879
+ _optionalChain([data, 'access', _609 => _609.previous, 'optionalCall', _610 => _610(true)]);
19874
19880
  },
19875
19881
  disabled: !data.previous || pendingDirection !== null,
19876
19882
  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" })
@@ -19885,7 +19891,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
19885
19891
  onClick: (e) => {
19886
19892
  e.preventDefault();
19887
19893
  setPendingDirection("next");
19888
- _optionalChain([data, 'access', _617 => _617.next, 'optionalCall', _618 => _618(true)]);
19894
+ _optionalChain([data, 'access', _611 => _611.next, 'optionalCall', _612 => _612(true)]);
19889
19895
  },
19890
19896
  disabled: !data.next || pendingDirection !== null,
19891
19897
  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" })
@@ -19907,7 +19913,7 @@ function ContentListGrid(props) {
19907
19913
  if (!data.next || !sentinelRef.current) return;
19908
19914
  const observer = new IntersectionObserver(
19909
19915
  (entries) => {
19910
- if (_optionalChain([entries, 'access', _619 => _619[0], 'optionalAccess', _620 => _620.isIntersecting])) _optionalChain([data, 'access', _621 => _621.next, 'optionalCall', _622 => _622()]);
19916
+ if (_optionalChain([entries, 'access', _613 => _613[0], 'optionalAccess', _614 => _614.isIntersecting])) _optionalChain([data, 'access', _615 => _615.next, 'optionalCall', _616 => _616()]);
19911
19917
  },
19912
19918
  { threshold: 0.1, rootMargin: "200px" }
19913
19919
  );
@@ -20759,7 +20765,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
20759
20765
  newDigits[index] = digit;
20760
20766
  setDigits(newDigits);
20761
20767
  if (digit && index < 5) {
20762
- _optionalChain([inputRefs, 'access', _623 => _623.current, 'access', _624 => _624[index + 1], 'optionalAccess', _625 => _625.focus, 'call', _626 => _626()]);
20768
+ _optionalChain([inputRefs, 'access', _617 => _617.current, 'access', _618 => _618[index + 1], 'optionalAccess', _619 => _619.focus, 'call', _620 => _620()]);
20763
20769
  }
20764
20770
  const code = newDigits.join("");
20765
20771
  if (code.length === 6 && newDigits.every((d) => d !== "")) {
@@ -20768,7 +20774,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
20768
20774
  }, "handleChange");
20769
20775
  const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
20770
20776
  if (e.key === "Backspace" && !digits[index] && index > 0) {
20771
- _optionalChain([inputRefs, 'access', _627 => _627.current, 'access', _628 => _628[index - 1], 'optionalAccess', _629 => _629.focus, 'call', _630 => _630()]);
20777
+ _optionalChain([inputRefs, 'access', _621 => _621.current, 'access', _622 => _622[index - 1], 'optionalAccess', _623 => _623.focus, 'call', _624 => _624()]);
20772
20778
  }
20773
20779
  }, "handleKeyDown");
20774
20780
  const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
@@ -20777,7 +20783,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
20777
20783
  if (pastedData.length === 6) {
20778
20784
  const newDigits = pastedData.split("");
20779
20785
  setDigits(newDigits);
20780
- _optionalChain([inputRefs, 'access', _631 => _631.current, 'access', _632 => _632[5], 'optionalAccess', _633 => _633.focus, 'call', _634 => _634()]);
20786
+ _optionalChain([inputRefs, 'access', _625 => _625.current, 'access', _626 => _626[5], 'optionalAccess', _627 => _627.focus, 'call', _628 => _628()]);
20781
20787
  onComplete(pastedData);
20782
20788
  }
20783
20789
  }, "handlePaste");
@@ -20989,8 +20995,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
20989
20995
  try {
20990
20996
  const registrationData = await _chunkMOGEGWXWjs.TwoFactorService.getPasskeyRegistrationOptions({
20991
20997
  id: _uuid.v4.call(void 0, ),
20992
- userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _635 => _635.email]), () => ( "")),
20993
- userDisplayName: _optionalChain([currentUser, 'optionalAccess', _636 => _636.name])
20998
+ userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _629 => _629.email]), () => ( "")),
20999
+ userDisplayName: _optionalChain([currentUser, 'optionalAccess', _630 => _630.name])
20994
21000
  });
20995
21001
  const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
20996
21002
  await _chunkMOGEGWXWjs.TwoFactorService.verifyPasskeyRegistration({
@@ -21142,7 +21148,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
21142
21148
  const setup = await _chunkMOGEGWXWjs.TwoFactorService.setupTotp({
21143
21149
  id: _uuid.v4.call(void 0, ),
21144
21150
  name: name.trim(),
21145
- accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _637 => _637.email]), () => ( ""))
21151
+ accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _631 => _631.email]), () => ( ""))
21146
21152
  });
21147
21153
  setQrCodeUri(setup.qrCodeUri);
21148
21154
  setAuthenticatorId(setup.authenticatorId);
@@ -21276,7 +21282,7 @@ function TwoFactorSettings() {
21276
21282
  if (isLoading) {
21277
21283
  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") }) }) });
21278
21284
  }
21279
- const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _638 => _638.isEnabled]), () => ( false));
21285
+ const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _632 => _632.isEnabled]), () => ( false));
21280
21286
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
21281
21287
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
21282
21288
  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" }),
@@ -21314,7 +21320,7 @@ function TwoFactorSettings() {
21314
21320
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
21315
21321
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
21316
21322
  ] }),
21317
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _639 => _639.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
21323
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _633 => _633.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
21318
21324
  ] }) }),
21319
21325
  !isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
21320
21326
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
@@ -21496,9 +21502,9 @@ function AcceptInvitation() {
21496
21502
  });
21497
21503
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
21498
21504
  try {
21499
- if (!_optionalChain([params, 'optionalAccess', _640 => _640.code])) return;
21505
+ if (!_optionalChain([params, 'optionalAccess', _634 => _634.code])) return;
21500
21506
  const payload = {
21501
- code: _optionalChain([params, 'optionalAccess', _641 => _641.code]),
21507
+ code: _optionalChain([params, 'optionalAccess', _635 => _635.code]),
21502
21508
  password: values.password
21503
21509
  };
21504
21510
  await _chunkMOGEGWXWjs.AuthService.acceptInvitation(payload);
@@ -21871,14 +21877,14 @@ function RefreshUser() {
21871
21877
  setUser(fullUser);
21872
21878
  const token = {
21873
21879
  userId: fullUser.id,
21874
- companyId: _optionalChain([fullUser, 'access', _642 => _642.company, 'optionalAccess', _643 => _643.id]),
21880
+ companyId: _optionalChain([fullUser, 'access', _636 => _636.company, 'optionalAccess', _637 => _637.id]),
21875
21881
  roles: fullUser.roles.map((role) => role.id),
21876
- features: _nullishCoalesce(_optionalChain([fullUser, 'access', _644 => _644.company, 'optionalAccess', _645 => _645.features, 'optionalAccess', _646 => _646.map, 'call', _647 => _647((feature) => feature.id)]), () => ( [])),
21882
+ features: _nullishCoalesce(_optionalChain([fullUser, 'access', _638 => _638.company, 'optionalAccess', _639 => _639.features, 'optionalAccess', _640 => _640.map, 'call', _641 => _641((feature) => feature.id)]), () => ( [])),
21877
21883
  modules: fullUser.modules.map((module) => {
21878
21884
  return { id: module.id, permissions: module.permissions };
21879
21885
  })
21880
21886
  };
21881
- await _optionalChain([_chunkMOGEGWXWjs.getTokenHandler.call(void 0, ), 'optionalAccess', _648 => _648.updateToken, 'call', _649 => _649(token)]);
21887
+ await _optionalChain([_chunkMOGEGWXWjs.getTokenHandler.call(void 0, ), 'optionalAccess', _642 => _642.updateToken, 'call', _643 => _643(token)]);
21882
21888
  _cookiesnext.deleteCookie.call(void 0, "reloadData");
21883
21889
  }
21884
21890
  }, "loadFullUser");
@@ -21942,9 +21948,9 @@ function ResetPassword() {
21942
21948
  });
21943
21949
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
21944
21950
  try {
21945
- if (!_optionalChain([params, 'optionalAccess', _650 => _650.code])) return;
21951
+ if (!_optionalChain([params, 'optionalAccess', _644 => _644.code])) return;
21946
21952
  const payload = {
21947
- code: _optionalChain([params, 'optionalAccess', _651 => _651.code]),
21953
+ code: _optionalChain([params, 'optionalAccess', _645 => _645.code]),
21948
21954
  password: values.password
21949
21955
  };
21950
21956
  await _chunkMOGEGWXWjs.AuthService.resetPassword(payload);
@@ -22484,7 +22490,7 @@ function AiConnectionEditor({
22484
22490
  const registryRows = _react.useMemo.call(void 0, () => _nullishCoalesce(providerRegistry[connectionType], () => ( [])), [providerRegistry, connectionType]);
22485
22491
  const providers = _react.useMemo.call(void 0, () => registryRows.map((row) => row.provider), [registryRows]);
22486
22492
  const fieldsFor = _react.useCallback.call(void 0,
22487
- (provider) => _nullishCoalesce(_optionalChain([registryRows, 'access', _652 => _652.find, 'call', _653 => _653((row) => row.provider === provider), 'optionalAccess', _654 => _654.fields]), () => ( [])),
22493
+ (provider) => _nullishCoalesce(_optionalChain([registryRows, 'access', _646 => _646.find, 'call', _647 => _647((row) => row.provider === provider), 'optionalAccess', _648 => _648.fields]), () => ( [])),
22488
22494
  [registryRows]
22489
22495
  );
22490
22496
  const defaultsFor = _react.useCallback.call(void 0,
@@ -22493,7 +22499,7 @@ function AiConnectionEditor({
22493
22499
  const seeded = {};
22494
22500
  fieldsFor(provider).forEach((descriptor) => {
22495
22501
  if (descriptor.kind === "boolean") {
22496
- const current2 = _optionalChain([stored, 'optionalAccess', _655 => _655[descriptor.field]]);
22502
+ const current2 = _optionalChain([stored, 'optionalAccess', _649 => _649[descriptor.field]]);
22497
22503
  seeded[descriptor.field] = current2 !== void 0 && current2 !== null ? current2 === true : descriptor.default === true;
22498
22504
  return;
22499
22505
  }
@@ -22501,7 +22507,7 @@ function AiConnectionEditor({
22501
22507
  seeded[descriptor.field] = "";
22502
22508
  return;
22503
22509
  }
22504
- const current = _optionalChain([stored, 'optionalAccess', _656 => _656[descriptor.field]]);
22510
+ const current = _optionalChain([stored, 'optionalAccess', _650 => _650[descriptor.field]]);
22505
22511
  if (current !== void 0 && current !== null) seeded[descriptor.field] = String(current);
22506
22512
  else seeded[descriptor.field] = descriptor.default !== void 0 ? String(descriptor.default) : "";
22507
22513
  });
@@ -22527,7 +22533,7 @@ function AiConnectionEditor({
22527
22533
  values: _zod3.z.record(_zod3.z.string(), _zod3.z.any())
22528
22534
  }).superRefine((data, ctx) => {
22529
22535
  fieldsFor(data.provider).filter((descriptor) => descriptor.required).forEach((descriptor) => {
22530
- const value = _optionalChain([data, 'access', _657 => _657.values, 'optionalAccess', _658 => _658[descriptor.field]]);
22536
+ const value = _optionalChain([data, 'access', _651 => _651.values, 'optionalAccess', _652 => _652[descriptor.field]]);
22531
22537
  const filled = descriptor.kind === "secret" ? !!value || hasStoredSecret(descriptor.field) : descriptor.kind === "boolean" ? value !== void 0 : value !== void 0 && value !== null && String(value).trim() !== "";
22532
22538
  if (filled) return;
22533
22539
  ctx.addIssue({
@@ -22541,11 +22547,11 @@ function AiConnectionEditor({
22541
22547
  );
22542
22548
  const getDefaultValues = _react.useCallback.call(void 0,
22543
22549
  () => ({
22544
- id: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _659 => _659.id]), () => ( _uuid.v4.call(void 0, ))),
22545
- name: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _660 => _660.name]), () => ( "")),
22546
- provider: _nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _661 => _661.provider]), () => ( providers[0])), () => ( "")),
22547
- enabled: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _662 => _662.enabled]), () => ( true)),
22548
- values: defaultsFor(_nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _663 => _663.provider]), () => ( providers[0])), () => ( "")))
22550
+ id: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _653 => _653.id]), () => ( _uuid.v4.call(void 0, ))),
22551
+ name: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _654 => _654.name]), () => ( "")),
22552
+ provider: _nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _655 => _655.provider]), () => ( providers[0])), () => ( "")),
22553
+ enabled: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _656 => _656.enabled]), () => ( true)),
22554
+ values: defaultsFor(_nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _657 => _657.provider]), () => ( providers[0])), () => ( "")))
22549
22555
  }),
22550
22556
  [connection, providers, defaultsFor]
22551
22557
  );
@@ -22556,7 +22562,7 @@ function AiConnectionEditor({
22556
22562
  _react.useEffect.call(void 0, () => {
22557
22563
  if (registryRows.length === 0) return;
22558
22564
  const currentProvider = form.getValues("provider");
22559
- const provider = currentProvider || _optionalChain([connection, 'optionalAccess', _664 => _664.provider]) || providers[0] || "";
22565
+ const provider = currentProvider || _optionalChain([connection, 'optionalAccess', _658 => _658.provider]) || providers[0] || "";
22560
22566
  if (!provider) return;
22561
22567
  if (provider !== currentProvider) form.setValue("provider", provider);
22562
22568
  const currentValues = form.getValues("values");
@@ -22627,7 +22633,7 @@ function AiConnectionEditor({
22627
22633
  {
22628
22634
  form,
22629
22635
  entityType: t("ai_connections.admin.entity"),
22630
- entityName: _optionalChain([connection, 'optionalAccess', _665 => _665.name]),
22636
+ entityName: _optionalChain([connection, 'optionalAccess', _659 => _659.name]),
22631
22637
  isEdit,
22632
22638
  module: _chunkBZ5J2FIVjs.Modules.AiConnection,
22633
22639
  size: "md",
@@ -22635,7 +22641,7 @@ function AiConnectionEditor({
22635
22641
  onSubmit: async (values) => {
22636
22642
  const attributes = {};
22637
22643
  fieldsFor(values.provider).forEach((descriptor) => {
22638
- const coerced = coerce(descriptor, _optionalChain([values, 'access', _666 => _666.values, 'optionalAccess', _667 => _667[descriptor.field]]));
22644
+ const coerced = coerce(descriptor, _optionalChain([values, 'access', _660 => _660.values, 'optionalAccess', _661 => _661[descriptor.field]]));
22639
22645
  if (coerced !== void 0) attributes[descriptor.field] = coerced;
22640
22646
  });
22641
22647
  const payload = {
@@ -22865,7 +22871,7 @@ function AiConnectionTypeCard({ connectionType }) {
22865
22871
  ),
22866
22872
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-muted/40 flex flex-wrap items-center gap-2 px-3 py-2", children: [
22867
22873
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softGray", children: t("ai_connections.admin.env_fallback") }),
22868
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground truncate text-xs", children: [_optionalChain([envDefault, 'optionalAccess', _668 => _668.provider]), _optionalChain([envDefault, 'optionalAccess', _669 => _669.model]), _optionalChain([envDefault, 'optionalAccess', _670 => _670.url])].filter(Boolean).join(" \xB7 ") })
22874
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground truncate text-xs", children: [_optionalChain([envDefault, 'optionalAccess', _662 => _662.provider]), _optionalChain([envDefault, 'optionalAccess', _663 => _663.model]), _optionalChain([envDefault, 'optionalAccess', _664 => _664.url])].filter(Boolean).join(" \xB7 ") })
22869
22875
  ] })
22870
22876
  ] })
22871
22877
  ] })
@@ -23143,7 +23149,7 @@ var useEmailBlastTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
23143
23149
  )
23144
23150
  };
23145
23151
  const columns = _react.useMemo.call(void 0, () => {
23146
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _671 => _671[field], 'optionalCall', _672 => _672()])).filter((col) => col !== void 0);
23152
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _665 => _665[field], 'optionalCall', _666 => _666()])).filter((col) => col !== void 0);
23147
23153
  }, [params.fields, fieldColumnMap, t, generateUrl, locale]);
23148
23154
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
23149
23155
  }, "useEmailBlastTableStructure");
@@ -23184,10 +23190,10 @@ function EmailBlastEditorInternal({
23184
23190
  );
23185
23191
  const getDefaultValues = _react.useCallback.call(void 0,
23186
23192
  () => ({
23187
- id: _nullishCoalesce(_optionalChain([blast, 'optionalAccess', _673 => _673.id]), () => ( _uuid.v4.call(void 0, ))),
23188
- subject: _nullishCoalesce(_optionalChain([blast, 'optionalAccess', _674 => _674.subject]), () => ( "")),
23189
- body: _nullishCoalesce(_optionalChain([blast, 'optionalAccess', _675 => _675.body]), () => ( "")),
23190
- replyTo: _nullishCoalesce(_optionalChain([blast, 'optionalAccess', _676 => _676.replyTo]), () => ( ""))
23193
+ id: _nullishCoalesce(_optionalChain([blast, 'optionalAccess', _667 => _667.id]), () => ( _uuid.v4.call(void 0, ))),
23194
+ subject: _nullishCoalesce(_optionalChain([blast, 'optionalAccess', _668 => _668.subject]), () => ( "")),
23195
+ body: _nullishCoalesce(_optionalChain([blast, 'optionalAccess', _669 => _669.body]), () => ( "")),
23196
+ replyTo: _nullishCoalesce(_optionalChain([blast, 'optionalAccess', _670 => _670.replyTo]), () => ( ""))
23191
23197
  }),
23192
23198
  [blast]
23193
23199
  );
@@ -23200,7 +23206,7 @@ function EmailBlastEditorInternal({
23200
23206
  {
23201
23207
  form,
23202
23208
  entityType: t("emailBlasts.editor.title"),
23203
- entityName: _optionalChain([blast, 'optionalAccess', _677 => _677.subject]),
23209
+ entityName: _optionalChain([blast, 'optionalAccess', _671 => _671.subject]),
23204
23210
  title: isEdit ? t("emailBlasts.editor.editTitle") : t("emailBlasts.editor.title"),
23205
23211
  isEdit,
23206
23212
  module: _chunkBZ5J2FIVjs.Modules.EmailBlast,
@@ -23330,7 +23336,7 @@ function EmailBlastSendDialog({ blast, onSuccess }) {
23330
23336
  setIsSending(true);
23331
23337
  try {
23332
23338
  await _chunkMOGEGWXWjs.EmailBlastService.send({ id: blast.id });
23333
- await _optionalChain([onSuccess, 'optionalCall', _678 => _678()]);
23339
+ await _optionalChain([onSuccess, 'optionalCall', _672 => _672()]);
23334
23340
  setOpen(false);
23335
23341
  } catch (error) {
23336
23342
  errorToast({ title: t("common.errors.error"), error });
@@ -23537,7 +23543,7 @@ function extractHeadings(blocks) {
23537
23543
  function processBlocks(blockArray) {
23538
23544
  for (const block of blockArray) {
23539
23545
  if (block.type === "heading") {
23540
- const level = _optionalChain([block, 'access', _679 => _679.props, 'optionalAccess', _680 => _680.level]) || 1;
23546
+ const level = _optionalChain([block, 'access', _673 => _673.props, 'optionalAccess', _674 => _674.level]) || 1;
23541
23547
  const text = extractTextFromContent(block.content);
23542
23548
  if (text.trim()) {
23543
23549
  headings.push({
@@ -23897,7 +23903,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
23897
23903
  })
23898
23904
  };
23899
23905
  const columns = _react.useMemo.call(void 0, () => {
23900
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _681 => _681[field], 'optionalCall', _682 => _682()])).filter((col) => col !== void 0);
23906
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _675 => _675[field], 'optionalCall', _676 => _676()])).filter((col) => col !== void 0);
23901
23907
  }, [params.fields, fieldColumnMap, t, generateUrl]);
23902
23908
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
23903
23909
  }, "useHowToTableStructure");
@@ -24023,7 +24029,7 @@ function HowToSelector({
24023
24029
  }, "setHowTo");
24024
24030
  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: [
24025
24031
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
24026
- /* @__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', _683 => _683.value, 'optionalAccess', _684 => _684.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 }) }))) }) }) }),
24032
+ /* @__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', _677 => _677.value, 'optionalAccess', _678 => _678.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 }) }))) }) }) }),
24027
24033
  field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
24028
24034
  _lucidereact.CircleX,
24029
24035
  {
@@ -24328,10 +24334,10 @@ function CitationsTab({ citations, sources }) {
24328
24334
  ] }) }),
24329
24335
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
24330
24336
  const isOpen = expanded.has(chunk.id);
24331
- const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _685 => _685.get, 'call', _686 => _686(chunk.nodeId)]) : void 0;
24337
+ const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _679 => _679.get, 'call', _680 => _680(chunk.nodeId)]) : void 0;
24332
24338
  const typeLabel = chunk.nodeType ? entityLabel(chunk.nodeType) : t("features.assistant.message.sources.source");
24333
24339
  const fallbackName = chunk.nodeId ? `${typeLabel} ${chunk.nodeId.slice(0, 8)}` : typeLabel;
24334
- const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _687 => _687.name]), () => ( fallbackName));
24340
+ const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _681 => _681.name]), () => ( fallbackName));
24335
24341
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
24336
24342
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
24337
24343
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -24395,7 +24401,7 @@ function ContentsTab({ citations, sources }) {
24395
24401
  for (const c of citations) {
24396
24402
  const id = c.nodeId;
24397
24403
  if (!id) continue;
24398
- const source = _optionalChain([sources, 'optionalAccess', _688 => _688.get, 'call', _689 => _689(id)]);
24404
+ const source = _optionalChain([sources, 'optionalAccess', _682 => _682.get, 'call', _683 => _683(id)]);
24399
24405
  if (!source) continue;
24400
24406
  const existing = map.get(id);
24401
24407
  if (existing) {
@@ -24462,7 +24468,7 @@ function UsersTab({ users, citations, sources }) {
24462
24468
  const generate = usePageUrlGenerator();
24463
24469
  const userMap = /* @__PURE__ */ new Map();
24464
24470
  for (const u of users) {
24465
- if (!_optionalChain([u, 'optionalAccess', _690 => _690.id])) continue;
24471
+ if (!_optionalChain([u, 'optionalAccess', _684 => _684.id])) continue;
24466
24472
  userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
24467
24473
  }
24468
24474
  if (citations && sources) {
@@ -24533,7 +24539,7 @@ function SuggestedQuestionsTab({ questions, onSelect }) {
24533
24539
  {
24534
24540
  type: "button",
24535
24541
  disabled: !onSelect,
24536
- onClick: () => _optionalChain([onSelect, 'optionalCall', _691 => _691(q)]),
24542
+ onClick: () => _optionalChain([onSelect, 'optionalCall', _685 => _685(q)]),
24537
24543
  className: "border-border bg-muted/30 hover:bg-muted disabled:hover:bg-muted/30 rounded-md border px-3 py-1.5 text-start text-sm disabled:cursor-not-allowed disabled:opacity-50",
24538
24544
  children: q
24539
24545
  },
@@ -24568,7 +24574,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
24568
24574
  }
24569
24575
  return ids.size;
24570
24576
  }, [message.citations, sources]);
24571
- const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _692 => _692.length]), () => ( 0));
24577
+ const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _686 => _686.length]), () => ( 0));
24572
24578
  const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
24573
24579
  const visibleTabs = [];
24574
24580
  if (suggestionsCount > 0) visibleTabs.push("suggested");
@@ -24711,7 +24717,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
24711
24717
  return void 0;
24712
24718
  }
24713
24719
  })()));
24714
- if (_optionalChain([author, 'optionalAccess', _693 => _693.id])) userMap.set(author.id, author);
24720
+ if (_optionalChain([author, 'optionalAccess', _687 => _687.id])) userMap.set(author.id, author);
24715
24721
  }
24716
24722
  return Array.from(userMap.values());
24717
24723
  }, [resolved]);
@@ -24746,7 +24752,7 @@ function MessageItem({
24746
24752
  }) {
24747
24753
  const t = _nextintl.useTranslations.call(void 0, );
24748
24754
  const isUser = message.role === "user";
24749
- const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _694 => _694.has, 'call', _695 => _695(message.id)]);
24755
+ const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _688 => _688.has, 'call', _689 => _689(message.id)]);
24750
24756
  const markdownComponents = _react.useMemo.call(void 0,
24751
24757
  () => ({
24752
24758
  a: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ href, children }) => {
@@ -24763,7 +24769,7 @@ function MessageItem({
24763
24769
  isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
24764
24770
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
24765
24771
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.send_failed") }),
24766
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall', _696 => _696(message.id)]), children: t("features.assistant.retry") })
24772
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall', _690 => _690(message.id)]), children: t("features.assistant.retry") })
24767
24773
  ] })
24768
24774
  ] });
24769
24775
  }
@@ -24854,7 +24860,7 @@ function AssistantThread({
24854
24860
  }) {
24855
24861
  const lastMessageRef = _react.useRef.call(void 0, null);
24856
24862
  _react.useEffect.call(void 0, () => {
24857
- _optionalChain([lastMessageRef, 'access', _697 => _697.current, 'optionalAccess', _698 => _698.scrollIntoView, 'call', _699 => _699({ block: "start", behavior: "smooth" })]);
24863
+ _optionalChain([lastMessageRef, 'access', _691 => _691.current, 'optionalAccess', _692 => _692.scrollIntoView, 'call', _693 => _693({ block: "start", behavior: "smooth" })]);
24858
24864
  }, [messages.length, sending]);
24859
24865
  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: [
24860
24866
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -24893,7 +24899,7 @@ ${message.sources.map((source) => `- \`${source}\``).join("\n")}`;
24893
24899
  return _chunkMOGEGWXWjs.rehydrate.call(void 0, _chunkBZ5J2FIVjs.Modules.HandbookThreadMessage, {
24894
24900
  jsonApi: {
24895
24901
  ...dehydrated.jsonApi,
24896
- attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _700 => _700.jsonApi, 'optionalAccess', _701 => _701.attributes]), () => ( {})), content }
24902
+ attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _694 => _694.jsonApi, 'optionalAccess', _695 => _695.attributes]), () => ( {})), content }
24897
24903
  },
24898
24904
  included: dehydrated.included
24899
24905
  });
@@ -24902,8 +24908,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, withSourcesInContent, "withSourcesInContent
24902
24908
  function useHandbookAsk(params) {
24903
24909
  const t = _nextintl.useTranslations.call(void 0, );
24904
24910
  const generateUrl = usePageUrlGenerator();
24905
- const shouldSyncUrl = _nullishCoalesce(_optionalChain([params, 'optionalAccess', _702 => _702.syncUrl]), () => ( true));
24906
- const handbookThreadId = _optionalChain([params, 'optionalAccess', _703 => _703.handbookThreadId]);
24911
+ const shouldSyncUrl = _nullishCoalesce(_optionalChain([params, 'optionalAccess', _696 => _696.syncUrl]), () => ( true));
24912
+ const handbookThreadId = _optionalChain([params, 'optionalAccess', _697 => _697.handbookThreadId]);
24907
24913
  const [threads, setThreads] = _react.useState.call(void 0, []);
24908
24914
  const [thread, setThread] = _react.useState.call(void 0, void 0);
24909
24915
  const [messages, setMessages] = _react.useState.call(void 0, []);
@@ -24965,12 +24971,12 @@ function useHandbookAsk(params) {
24965
24971
  ]);
24966
24972
  setSending(true);
24967
24973
  try {
24968
- let id = _optionalChain([thread, 'optionalAccess', _704 => _704.id]);
24974
+ let id = _optionalChain([thread, 'optionalAccess', _698 => _698.id]);
24969
24975
  if (id === void 0) {
24970
24976
  const created = await _chunkMOGEGWXWjs.HandbookThreadService.create({
24971
24977
  id: _uuid.v4.call(void 0, ),
24972
24978
  question: trimmed,
24973
- handbookPageId: _optionalChain([options, 'optionalAccess', _705 => _705.handbookPageId])
24979
+ handbookPageId: _optionalChain([options, 'optionalAccess', _699 => _699.handbookPageId])
24974
24980
  });
24975
24981
  id = created.id;
24976
24982
  setThreads((current) => [created, ...current]);
@@ -24979,7 +24985,7 @@ function useHandbookAsk(params) {
24979
24985
  id: _uuid.v4.call(void 0, ),
24980
24986
  threadId: id,
24981
24987
  question: trimmed,
24982
- handbookPageId: _optionalChain([options, 'optionalAccess', _706 => _706.handbookPageId])
24988
+ handbookPageId: _optionalChain([options, 'optionalAccess', _700 => _700.handbookPageId])
24983
24989
  });
24984
24990
  }
24985
24991
  const loaded = await _chunkMOGEGWXWjs.HandbookThreadService.findOne({ id });
@@ -25000,7 +25006,7 @@ function useHandbookAsk(params) {
25000
25006
  setSending(false);
25001
25007
  }
25002
25008
  },
25003
- [messages.length, sending, syncUrl, t, _optionalChain([thread, 'optionalAccess', _707 => _707.id])]
25009
+ [messages.length, sending, syncUrl, t, _optionalChain([thread, 'optionalAccess', _701 => _701.id])]
25004
25010
  );
25005
25011
  return { threads, thread, messages, sending, ask, selectThread, startNew };
25006
25012
  }
@@ -25556,7 +25562,7 @@ function HandbookPageContainer({ handbookPageId }) {
25556
25562
  };
25557
25563
  }, []);
25558
25564
  const section = _react.useMemo.call(void 0,
25559
- () => sections.find((candidate) => candidate.key === _optionalChain([handbookPage, 'optionalAccess', _708 => _708.section])),
25565
+ () => sections.find((candidate) => candidate.key === _optionalChain([handbookPage, 'optionalAccess', _702 => _702.section])),
25560
25566
  [sections, handbookPage]
25561
25567
  );
25562
25568
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -25645,7 +25651,7 @@ function AssistantSidebar({
25645
25651
  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"),
25646
25652
  children: [
25647
25653
  thread.title,
25648
- _optionalChain([renderThreadBadge, 'optionalCall', _709 => _709(thread)])
25654
+ _optionalChain([renderThreadBadge, 'optionalCall', _703 => _703(thread)])
25649
25655
  ]
25650
25656
  },
25651
25657
  thread.id
@@ -25681,7 +25687,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
25681
25687
  AssistantSidebar,
25682
25688
  {
25683
25689
  threads,
25684
- activeId: _optionalChain([thread, 'optionalAccess', _710 => _710.id]),
25690
+ activeId: _optionalChain([thread, 'optionalAccess', _704 => _704.id]),
25685
25691
  onSelect: selectThread,
25686
25692
  onNew: startNew,
25687
25693
  newLabel: t("handbook.chat.new"),
@@ -25689,7 +25695,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
25689
25695
  }
25690
25696
  ) })
25691
25697
  ),
25692
- [selectThread, startNew, t, _optionalChain([thread, 'optionalAccess', _711 => _711.id]), threads]
25698
+ [selectThread, startNew, t, _optionalChain([thread, 'optionalAccess', _705 => _705.id]), threads]
25693
25699
  );
25694
25700
  return (
25695
25701
  // `RoundPageContainer` reads the page heading from the shared context, and
@@ -25701,7 +25707,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
25701
25707
  RoundPageContainer,
25702
25708
  {
25703
25709
  module: _chunkBZ5J2FIVjs.Modules.HandbookPage,
25704
- id: _optionalChain([thread, 'optionalAccess', _712 => _712.id]),
25710
+ id: _optionalChain([thread, 'optionalAccess', _706 => _706.id]),
25705
25711
  fullWidth: true,
25706
25712
  forceHeader: true,
25707
25713
  defaultDetailsOpen: true,
@@ -25753,7 +25759,7 @@ function EntityMentionLinkView({ type, id, alias }) {
25753
25759
  } catch (e25) {
25754
25760
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: alias });
25755
25761
  }
25756
- if (!_optionalChain([module, 'optionalAccess', _713 => _713.pageUrl])) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: alias });
25762
+ if (!_optionalChain([module, 'optionalAccess', _707 => _707.pageUrl])) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: alias });
25757
25763
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generate({ page: module, id }), children: alias });
25758
25764
  }
25759
25765
  _chunk7QVYU63Ejs.__name.call(void 0, EntityMentionLinkView, "EntityMentionLinkView");
@@ -25885,13 +25891,13 @@ function AssistantContainer({
25885
25891
  AssistantSidebar,
25886
25892
  {
25887
25893
  threads: ctx.threads,
25888
- activeId: _optionalChain([ctx, 'access', _714 => _714.assistant, 'optionalAccess', _715 => _715.id]),
25894
+ activeId: _optionalChain([ctx, 'access', _708 => _708.assistant, 'optionalAccess', _709 => _709.id]),
25889
25895
  onSelect: ctx.selectThread,
25890
25896
  renderThreadBadge
25891
25897
  }
25892
25898
  ) })
25893
25899
  ),
25894
- [ctx.threads, _optionalChain([ctx, 'access', _716 => _716.assistant, 'optionalAccess', _717 => _717.id]), ctx.selectThread, renderThreadBadge]
25900
+ [ctx.threads, _optionalChain([ctx, 'access', _710 => _710.assistant, 'optionalAccess', _711 => _711.id]), ctx.selectThread, renderThreadBadge]
25895
25901
  );
25896
25902
  const thread = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: !showThread ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
25897
25903
  AssistantEmptyState,
@@ -25899,7 +25905,7 @@ function AssistantContainer({
25899
25905
  onSend: ctx.sendMessage,
25900
25906
  operatorMode: ctx.operatorMode,
25901
25907
  onOperatorModeChange: showOperatorToggle ? ctx.setOperatorMode : void 0,
25902
- composerLeading: _optionalChain([renderScopePicker, 'optionalCall', _718 => _718()])
25908
+ composerLeading: _optionalChain([renderScopePicker, 'optionalCall', _712 => _712()])
25903
25909
  }
25904
25910
  ) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
25905
25911
  ctx.assistant ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -25931,7 +25937,7 @@ function AssistantContainer({
25931
25937
  AssistantSidebar,
25932
25938
  {
25933
25939
  threads: ctx.threads,
25934
- activeId: _optionalChain([ctx, 'access', _719 => _719.assistant, 'optionalAccess', _720 => _720.id]),
25940
+ activeId: _optionalChain([ctx, 'access', _713 => _713.assistant, 'optionalAccess', _714 => _714.id]),
25935
25941
  onSelect: ctx.selectThread,
25936
25942
  onNew: ctx.startNew,
25937
25943
  renderThreadBadge
@@ -25944,7 +25950,7 @@ function AssistantContainer({
25944
25950
  RoundPageContainer,
25945
25951
  {
25946
25952
  module: _chunkBZ5J2FIVjs.Modules.Assistant,
25947
- id: _optionalChain([ctx, 'access', _721 => _721.assistant, 'optionalAccess', _722 => _722.id]),
25953
+ id: _optionalChain([ctx, 'access', _715 => _715.assistant, 'optionalAccess', _716 => _716.id]),
25948
25954
  fullWidth: true,
25949
25955
  forceHeader: true,
25950
25956
  defaultDetailsOpen: true,
@@ -25972,7 +25978,7 @@ function flattenBlocks(blocks) {
25972
25978
  if (typeof inline === "string") return inline;
25973
25979
  if (!inline || typeof inline !== "object") return "";
25974
25980
  const node = inline;
25975
- if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access', _723 => _723.props, 'optionalAccess', _724 => _724.alias]), () => ( ""));
25981
+ if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access', _717 => _717.props, 'optionalAccess', _718 => _718.alias]), () => ( ""));
25976
25982
  if (typeof node.text === "string") return node.text;
25977
25983
  if (Array.isArray(node.content)) return node.content.map(readInline).join("");
25978
25984
  return "";
@@ -26089,7 +26095,7 @@ function AssistantPageContainer({
26089
26095
  AssistantSidebar,
26090
26096
  {
26091
26097
  threads: ctx.threads,
26092
- activeId: _optionalChain([ctx, 'access', _725 => _725.assistant, 'optionalAccess', _726 => _726.id]),
26098
+ activeId: _optionalChain([ctx, 'access', _719 => _719.assistant, 'optionalAccess', _720 => _720.id]),
26093
26099
  onSelect: ctx.selectThread,
26094
26100
  onNew: ctx.startNew
26095
26101
  }
@@ -26365,14 +26371,14 @@ function ApprovalActionCard({ actionId, summary, onResolved, hiddenRelationshipK
26365
26371
  const presented = _react.useMemo.call(void 0, () => parseOperatorProposal(actionProposal), [actionProposal]);
26366
26372
  const legacy = _react.useMemo.call(void 0, () => presented ? void 0 : parseLegacyProposal(toolArgs), [presented, toolArgs]);
26367
26373
  const isUpdate = toolName === "update_entity";
26368
- const entityType = _nullishCoalesce(_nullishCoalesce(_optionalChain([presented, 'optionalAccess', _727 => _727.type]), () => ( _optionalChain([legacy, 'optionalAccess', _728 => _728.type]))), () => ( ""));
26374
+ const entityType = _nullishCoalesce(_nullishCoalesce(_optionalChain([presented, 'optionalAccess', _721 => _721.type]), () => ( _optionalChain([legacy, 'optionalAccess', _722 => _722.type]))), () => ( ""));
26369
26375
  const loose = t;
26370
26376
  const entityLabel = entityName(loose, entityType);
26371
- const targetLabel = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _729 => _729.target, 'optionalAccess', _730 => _730.label]), () => ( ""));
26377
+ const targetLabel = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _723 => _723.target, 'optionalAccess', _724 => _724.label]), () => ( ""));
26372
26378
  const rows = _react.useMemo.call(void 0, () => {
26373
26379
  const yes = t("features.assistant.approval.proposal.yes");
26374
26380
  const no = t("features.assistant.approval.proposal.no");
26375
- const attributes = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _731 => _731.attributes]), () => ( _optionalChain([legacy, 'optionalAccess', _732 => _732.attributes])));
26381
+ const attributes = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _725 => _725.attributes]), () => ( _optionalChain([legacy, 'optionalAccess', _726 => _726.attributes])));
26376
26382
  const attributeRows = Object.entries(_nullishCoalesce(attributes, () => ( {}))).flatMap(([key, value]) => {
26377
26383
  const text = formatAttribute(value, yes, no);
26378
26384
  return text === void 0 ? [] : [{ key: `attribute:${key}`, label: fieldLabel(loose, entityType, key), value: text }];
@@ -26410,7 +26416,7 @@ function ApprovalActionCard({ actionId, summary, onResolved, hiddenRelationshipK
26410
26416
  try {
26411
26417
  const message = kind === "approve" ? await _chunkMOGEGWXWjs.AssistantActionService.approve({ id: actionId }) : await _chunkMOGEGWXWjs.AssistantActionService.deny({ id: actionId });
26412
26418
  setStatus(kind === "approve" ? "executed" : "denied");
26413
- if (message) _optionalChain([onResolved, 'optionalCall', _733 => _733(message)]);
26419
+ if (message) _optionalChain([onResolved, 'optionalCall', _727 => _727(message)]);
26414
26420
  } catch (error) {
26415
26421
  console.error(`ApprovalActionCard: failed to ${kind} assistant action ${actionId}`, error);
26416
26422
  setFailed(true);
@@ -26555,10 +26561,10 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
26555
26561
  const dateLocale = _chunkMOGEGWXWjs.dateFormatLocale.call(void 0, _chunkBZ5J2FIVjs.useI18nLocale.call(void 0, ));
26556
26562
  const generateUrl = usePageUrlGenerator();
26557
26563
  const { loadNotifications } = useNotificationContext();
26558
- const archived = _optionalChain([params, 'access', _734 => _734.context, 'optionalAccess', _735 => _735.archived]) === true;
26564
+ const archived = _optionalChain([params, 'access', _728 => _728.context, 'optionalAccess', _729 => _729.archived]) === true;
26559
26565
  const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
26560
26566
  await _chunkMOGEGWXWjs.NotificationService.archive({ id: notification.id });
26561
- _optionalChain([params, 'access', _736 => _736.dataRetriever, 'optionalAccess', _737 => _737.removeElement, 'call', _738 => _738(notification)]);
26567
+ _optionalChain([params, 'access', _730 => _730.dataRetriever, 'optionalAccess', _731 => _731.removeElement, 'call', _732 => _732(notification)]);
26562
26568
  await loadNotifications();
26563
26569
  }, "archiveNotification");
26564
26570
  const tableData = _react.useMemo.call(void 0, () => {
@@ -26597,7 +26603,7 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
26597
26603
  const data = generateNotificationData({ notification, generateUrl });
26598
26604
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-foreground text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
26599
26605
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { className: "font-medium", children: chunks }), "strong"),
26600
- actor: _nullishCoalesce(_optionalChain([data, 'access', _739 => _739.actor, 'optionalAccess', _740 => _740.name]), () => ( "")),
26606
+ actor: _nullishCoalesce(_optionalChain([data, 'access', _733 => _733.actor, 'optionalAccess', _734 => _734.name]), () => ( "")),
26601
26607
  title: data.title,
26602
26608
  message: _nullishCoalesce(notification.message, () => ( ""))
26603
26609
  }) });
@@ -26652,7 +26658,7 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
26652
26658
  })
26653
26659
  };
26654
26660
  const columns = _react.useMemo.call(void 0, () => {
26655
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _741 => _741[field], 'optionalCall', _742 => _742()])).filter((col) => col !== void 0);
26661
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _735 => _735[field], 'optionalCall', _736 => _736()])).filter((col) => col !== void 0);
26656
26662
  }, [params.fields, fieldColumnMap, t, generateUrl]);
26657
26663
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
26658
26664
  }, "useNotificationTableStructure");
@@ -27058,11 +27064,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, useReferralStats, "useReferralStats");
27058
27064
  // src/features/referral/components/ReferralWidget.tsx
27059
27065
 
27060
27066
  function inviteErrorCode(err) {
27061
- return _optionalChain([err, 'optionalAccess', _743 => _743.body, 'optionalAccess', _744 => _744.errors, 'optionalAccess', _745 => _745[0], 'optionalAccess', _746 => _746.code]);
27067
+ return _optionalChain([err, 'optionalAccess', _737 => _737.body, 'optionalAccess', _738 => _738.errors, 'optionalAccess', _739 => _739[0], 'optionalAccess', _740 => _740.code]);
27062
27068
  }
27063
27069
  _chunk7QVYU63Ejs.__name.call(void 0, inviteErrorCode, "inviteErrorCode");
27064
27070
  async function copyToClipboard(text) {
27065
- if (_optionalChain([navigator, 'access', _747 => _747.clipboard, 'optionalAccess', _748 => _748.writeText])) {
27071
+ if (_optionalChain([navigator, 'access', _741 => _741.clipboard, 'optionalAccess', _742 => _742.writeText])) {
27066
27072
  try {
27067
27073
  await navigator.clipboard.writeText(text);
27068
27074
  return true;
@@ -27125,7 +27131,7 @@ function ReferralWidget({
27125
27131
  const linkInputRef = _react.useRef.call(void 0, null);
27126
27132
  const config = _chunk7ZHTPFFTjs.getReferralConfig.call(void 0, );
27127
27133
  const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
27128
- const referralUrl = _optionalChain([stats, 'optionalAccess', _749 => _749.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
27134
+ const referralUrl = _optionalChain([stats, 'optionalAccess', _743 => _743.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
27129
27135
  if (!_chunk7ZHTPFFTjs.isReferralEnabled.call(void 0, )) {
27130
27136
  return null;
27131
27137
  }
@@ -27135,7 +27141,7 @@ function ReferralWidget({
27135
27141
  if (success) {
27136
27142
  setCopied(true);
27137
27143
  _chunkMOGEGWXWjs.showToast.call(void 0, text.copiedMessage);
27138
- _optionalChain([onLinkCopied, 'optionalCall', _750 => _750()]);
27144
+ _optionalChain([onLinkCopied, 'optionalCall', _744 => _744()]);
27139
27145
  setTimeout(() => setCopied(false), 2e3);
27140
27146
  } else {
27141
27147
  _chunkMOGEGWXWjs.showError.call(void 0, text.copyError);
@@ -27149,14 +27155,14 @@ function ReferralWidget({
27149
27155
  try {
27150
27156
  await sendInvite(email);
27151
27157
  _chunkMOGEGWXWjs.showToast.call(void 0, text.inviteSent);
27152
- _optionalChain([onInviteSent, 'optionalCall', _751 => _751(email)]);
27158
+ _optionalChain([onInviteSent, 'optionalCall', _745 => _745(email)]);
27153
27159
  setEmail("");
27154
27160
  } catch (err) {
27155
27161
  const code = inviteErrorCode(err);
27156
27162
  _chunkMOGEGWXWjs.showError.call(void 0,
27157
27163
  code === "REFERRAL_ALREADY_INVITED" ? text.alreadyInvited : code === "REFERRAL_ALREADY_REGISTERED" ? text.alreadyRegistered : text.inviteError
27158
27164
  );
27159
- _optionalChain([onInviteError, 'optionalCall', _752 => _752(err instanceof Error ? err : new Error(text.inviteError))]);
27165
+ _optionalChain([onInviteError, 'optionalCall', _746 => _746(err instanceof Error ? err : new Error(text.inviteError))]);
27160
27166
  }
27161
27167
  }, [
27162
27168
  email,
@@ -27296,7 +27302,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ReferralDialog, "ReferralDialog");
27296
27302
 
27297
27303
 
27298
27304
  function createUsageFormatters(locale, currency) {
27299
- const symbol = _nullishCoalesce(_optionalChain([new Intl.NumberFormat(locale, { style: "currency", currency, currencyDisplay: "narrowSymbol" }), 'access', _753 => _753.formatToParts, 'call', _754 => _754(0), 'access', _755 => _755.find, 'call', _756 => _756((part) => part.type === "currency"), 'optionalAccess', _757 => _757.value]), () => ( currency));
27305
+ const symbol = _nullishCoalesce(_optionalChain([new Intl.NumberFormat(locale, { style: "currency", currency, currencyDisplay: "narrowSymbol" }), 'access', _747 => _747.formatToParts, 'call', _748 => _748(0), 'access', _749 => _749.find, 'call', _750 => _750((part) => part.type === "currency"), 'optionalAccess', _751 => _751.value]), () => ( currency));
27300
27306
  const decimal = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (value, decimals) => value.toLocaleString(locale, { minimumFractionDigits: decimals, maximumFractionDigits: decimals }), "decimal");
27301
27307
  const dayFormat = new Intl.DateTimeFormat(locale, { day: "numeric", month: "short", timeZone: "UTC" });
27302
27308
  const monthFormat = new Intl.DateTimeFormat(locale, { month: "short", year: "numeric", timeZone: "UTC" });
@@ -27410,7 +27416,7 @@ var useReferralAdminReferralTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__
27410
27416
  })
27411
27417
  };
27412
27418
  const columns = _react.useMemo.call(void 0, () => {
27413
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _758 => _758[field], 'optionalCall', _759 => _759()])).filter((col) => col !== void 0);
27419
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _752 => _752[field], 'optionalCall', _753 => _753()])).filter((col) => col !== void 0);
27414
27420
  }, [params.fields, fieldColumnMap, t, decimal]);
27415
27421
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
27416
27422
  }, "useReferralAdminReferralTableStructure");
@@ -27444,7 +27450,7 @@ var useReferralAdminReferrerTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__
27444
27450
  });
27445
27451
  }, [params.data]);
27446
27452
  const sortableHeader = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (sort, label) => () => {
27447
- const active = _optionalChain([context, 'optionalAccess', _760 => _760.sort]) === sort;
27453
+ const active = _optionalChain([context, 'optionalAccess', _754 => _754.sort]) === sort;
27448
27454
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
27449
27455
  Button,
27450
27456
  {
@@ -27455,7 +27461,7 @@ var useReferralAdminReferrerTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__
27455
27461
  title: t("referral.admin.referrers.sortBy"),
27456
27462
  "aria-sort": active ? "descending" : void 0,
27457
27463
  "data-testid": active ? "referrals-referrers-sort" : void 0,
27458
- onClick: () => _optionalChain([context, 'optionalAccess', _761 => _761.onSort, 'call', _762 => _762(sort)]),
27464
+ onClick: () => _optionalChain([context, 'optionalAccess', _755 => _755.onSort, 'call', _756 => _756(sort)]),
27459
27465
  children: label
27460
27466
  }
27461
27467
  );
@@ -27567,8 +27573,8 @@ var useReferralAdminReferrerTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__
27567
27573
  })
27568
27574
  };
27569
27575
  const columns = _react.useMemo.call(void 0, () => {
27570
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _763 => _763[field], 'optionalCall', _764 => _764()])).filter((col) => col !== void 0);
27571
- }, [params.fields, fieldColumnMap, t, decimal, _optionalChain([context, 'optionalAccess', _765 => _765.sort])]);
27576
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _757 => _757[field], 'optionalCall', _758 => _758()])).filter((col) => col !== void 0);
27577
+ }, [params.fields, fieldColumnMap, t, decimal, _optionalChain([context, 'optionalAccess', _759 => _759.sort])]);
27572
27578
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
27573
27579
  }, "useReferralAdminReferrerTableStructure");
27574
27580
  registerTableGenerator("referrals/administration/referrers", useReferralAdminReferrerTableStructure);
@@ -27617,10 +27623,10 @@ function ReferralsAdminFunnel({ summary }) {
27617
27623
  const { decimal } = useUsageFormatters();
27618
27624
  const current = summary.find((row) => row.window === "current");
27619
27625
  const steps = [
27620
- { label: t("referral.admin.tiles.visits"), value: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _766 => _766.visits]), () => ( 0)) },
27621
- { label: t("referral.admin.tiles.invites"), value: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _767 => _767.invitesSent]), () => ( 0)) },
27622
- { label: t("referral.admin.tiles.signups"), value: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _768 => _768.signups]), () => ( 0)) },
27623
- { label: t("referral.admin.tiles.paying"), value: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _769 => _769.paying]), () => ( 0)) }
27626
+ { label: t("referral.admin.tiles.visits"), value: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _760 => _760.visits]), () => ( 0)) },
27627
+ { label: t("referral.admin.tiles.invites"), value: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _761 => _761.invitesSent]), () => ( 0)) },
27628
+ { label: t("referral.admin.tiles.signups"), value: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _762 => _762.signups]), () => ( 0)) },
27629
+ { label: t("referral.admin.tiles.paying"), value: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _763 => _763.paying]), () => ( 0)) }
27624
27630
  ];
27625
27631
  const max = Math.max(...steps.map((step) => step.value), 0);
27626
27632
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { "data-testid": "referrals-funnel", className: "grid gap-2", children: [
@@ -28585,7 +28591,7 @@ function OAuthClientList({
28585
28591
  OAuthClientCard,
28586
28592
  {
28587
28593
  client,
28588
- onClick: () => _optionalChain([onClientClick, 'optionalCall', _770 => _770(client)]),
28594
+ onClick: () => _optionalChain([onClientClick, 'optionalCall', _764 => _764(client)]),
28589
28595
  onEdit: onEditClick ? () => onEditClick(client) : void 0,
28590
28596
  onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
28591
28597
  },
@@ -28610,11 +28616,11 @@ function OAuthClientForm({
28610
28616
  const t = _nextintl.useTranslations.call(void 0, );
28611
28617
  const isEditMode = !!client;
28612
28618
  const [formState, setFormState] = _react.useState.call(void 0, {
28613
- name: _optionalChain([client, 'optionalAccess', _771 => _771.name]) || "",
28614
- description: _optionalChain([client, 'optionalAccess', _772 => _772.description]) || "",
28615
- redirectUris: _optionalChain([client, 'optionalAccess', _773 => _773.redirectUris, 'optionalAccess', _774 => _774.length]) ? client.redirectUris : [""],
28619
+ name: _optionalChain([client, 'optionalAccess', _765 => _765.name]) || "",
28620
+ description: _optionalChain([client, 'optionalAccess', _766 => _766.description]) || "",
28621
+ redirectUris: _optionalChain([client, 'optionalAccess', _767 => _767.redirectUris, 'optionalAccess', _768 => _768.length]) ? client.redirectUris : [""],
28616
28622
  allowedScopes: client ? client.allowedScopes || [] : defaultScopes,
28617
- isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _775 => _775.isConfidential]), () => ( true))
28623
+ isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _769 => _769.isConfidential]), () => ( true))
28618
28624
  });
28619
28625
  const [errors, setErrors] = _react.useState.call(void 0, {});
28620
28626
  const validate = _react.useCallback.call(void 0, () => {
@@ -29024,7 +29030,7 @@ function OAuthConsentScreen({
29024
29030
  if (error || !clientInfo) {
29025
29031
  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: [
29026
29032
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
29027
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _776 => _776.message]) || t("oauth.consent.invalid_request") })
29033
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _770 => _770.message]) || t("oauth.consent.invalid_request") })
29028
29034
  ] }) }) }) });
29029
29035
  }
29030
29036
  const { client, scopes } = clientInfo;
@@ -29247,7 +29253,7 @@ function WaitlistForm({ onSuccess }) {
29247
29253
  source: _chunk7ZHTPFFTjs.getSignupSource.call(void 0, )
29248
29254
  });
29249
29255
  setIsSuccess(true);
29250
- _optionalChain([onSuccess, 'optionalCall', _777 => _777()]);
29256
+ _optionalChain([onSuccess, 'optionalCall', _771 => _771()]);
29251
29257
  } catch (e) {
29252
29258
  errorToast({ title: t("common.errors.error"), error: e });
29253
29259
  } finally {
@@ -29458,11 +29464,11 @@ function WaitlistList({ fullWidth } = {}) {
29458
29464
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant: "outline", size: "icon", onClick: refresh, disabled: !data.isLoaded, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.RefreshCw, { className: `h-4 w-4 ${!data.isLoaded ? "animate-spin" : ""}` }) })
29459
29465
  ] });
29460
29466
  const totals = [
29461
- { key: "total", label: t("waitlist.admin.total"), value: _optionalChain([stats, 'optionalAccess', _778 => _778.total]) },
29462
- { key: "pending", label: t("waitlist.admin.status.pending"), value: _optionalChain([stats, 'optionalAccess', _779 => _779.pending]) },
29463
- { key: "confirmed", label: t("waitlist.admin.status.confirmed"), value: _optionalChain([stats, 'optionalAccess', _780 => _780.confirmed]) },
29464
- { key: "invited", label: t("waitlist.admin.status.invited"), value: _optionalChain([stats, 'optionalAccess', _781 => _781.invited]) },
29465
- { key: "registered", label: t("waitlist.admin.status.registered"), value: _optionalChain([stats, 'optionalAccess', _782 => _782.registered]) }
29467
+ { key: "total", label: t("waitlist.admin.total"), value: _optionalChain([stats, 'optionalAccess', _772 => _772.total]) },
29468
+ { key: "pending", label: t("waitlist.admin.status.pending"), value: _optionalChain([stats, 'optionalAccess', _773 => _773.pending]) },
29469
+ { key: "confirmed", label: t("waitlist.admin.status.confirmed"), value: _optionalChain([stats, 'optionalAccess', _774 => _774.confirmed]) },
29470
+ { key: "invited", label: t("waitlist.admin.status.invited"), value: _optionalChain([stats, 'optionalAccess', _775 => _775.invited]) },
29471
+ { key: "registered", label: t("waitlist.admin.status.registered"), value: _optionalChain([stats, 'optionalAccess', _776 => _776.registered]) }
29466
29472
  ];
29467
29473
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4", children: [
29468
29474
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "dl", { className: "grid grid-cols-5 divide-x divide-border rounded-md border", "data-testid": "waitlist-totals", children: totals.map((total) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col-reverse items-center gap-1 p-3", children: [
@@ -29817,7 +29823,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
29817
29823
  ] }),
29818
29824
  roleIds.map((roleId) => {
29819
29825
  const roleTokens = block[roleId];
29820
- const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _783 => _783[roleId]]), () => ( roleId));
29826
+ const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _777 => _777[roleId]]), () => ( roleId));
29821
29827
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
29822
29828
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
29823
29829
  _chunk7ZHTPFFTjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -29854,7 +29860,7 @@ function RbacContainer() {
29854
29860
  }, []);
29855
29861
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
29856
29862
  if (!matrix) return [];
29857
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _784 => _784[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _785 => _785[b]]), () => ( b))));
29863
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _778 => _778[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _779 => _779[b]]), () => ( b))));
29858
29864
  }, [matrix, moduleNames]);
29859
29865
  const roleIds = _react.useMemo.call(void 0, () => {
29860
29866
  if (roleNames) {
@@ -29917,7 +29923,7 @@ function RbacContainer() {
29917
29923
  id === selectedModuleId && "bg-muted font-medium text-foreground",
29918
29924
  id !== selectedModuleId && "text-muted-foreground"
29919
29925
  ),
29920
- children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _786 => _786[id]]), () => ( id))
29926
+ children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _780 => _780[id]]), () => ( id))
29921
29927
  }
29922
29928
  ) }, id)) }) }),
29923
29929
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: selectedModuleId && selectedBlock ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -29925,7 +29931,7 @@ function RbacContainer() {
29925
29931
  {
29926
29932
  moduleId: selectedModuleId,
29927
29933
  block: selectedBlock,
29928
- moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _787 => _787[selectedModuleId]]), () => ( selectedModuleId)),
29934
+ moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _781 => _781[selectedModuleId]]), () => ( selectedModuleId)),
29929
29935
  roleIds,
29930
29936
  roleNames,
29931
29937
  onOpenPicker: openPicker
@@ -29936,12 +29942,12 @@ function RbacContainer() {
29936
29942
  RbacPermissionPicker,
29937
29943
  {
29938
29944
  open: !!activePicker,
29939
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _788 => _788.anchor]), () => ( null)),
29945
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _782 => _782.anchor]), () => ( null)),
29940
29946
  value: activeValue,
29941
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _789 => _789.isRoleColumn]), () => ( false)),
29947
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _783 => _783.isRoleColumn]), () => ( false)),
29942
29948
  knownSegments: activeSegments,
29943
29949
  onSetValue: handleSetValue,
29944
- onClear: _optionalChain([activePicker, 'optionalAccess', _790 => _790.isRoleColumn]) ? handleClear : void 0,
29950
+ onClear: _optionalChain([activePicker, 'optionalAccess', _784 => _784.isRoleColumn]) ? handleClear : void 0,
29945
29951
  onClose: closePicker
29946
29952
  }
29947
29953
  )
@@ -30008,7 +30014,7 @@ function RbacByRoleContainer() {
30008
30014
  }, [roleNames]);
30009
30015
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
30010
30016
  if (!matrix) return [];
30011
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _791 => _791[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _792 => _792[b]]), () => ( b))));
30017
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _785 => _785[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _786 => _786[b]]), () => ( b))));
30012
30018
  }, [matrix, moduleNames]);
30013
30019
  _react.useEffect.call(void 0, () => {
30014
30020
  if (!selectedRoleId && sortedRoleIds.length > 0) {
@@ -30057,7 +30063,7 @@ function RbacByRoleContainer() {
30057
30063
  id === selectedRoleId && "bg-muted font-medium text-foreground",
30058
30064
  id !== selectedRoleId && "text-muted-foreground"
30059
30065
  ),
30060
- children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _793 => _793[id]]), () => ( id))
30066
+ children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _787 => _787[id]]), () => ( id))
30061
30067
  }
30062
30068
  ) }, id)) }) }),
30063
30069
  /* @__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: [
@@ -30077,7 +30083,7 @@ function RbacByRoleContainer() {
30077
30083
  if (!block) return null;
30078
30084
  const defaultTokens = _nullishCoalesce(block.default, () => ( []));
30079
30085
  const roleTokens = block[selectedRoleId];
30080
- const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _794 => _794[moduleId]]), () => ( moduleId));
30086
+ const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _788 => _788[moduleId]]), () => ( moduleId));
30081
30087
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
30082
30088
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
30083
30089
  "td",
@@ -30092,7 +30098,7 @@ function RbacByRoleContainer() {
30092
30098
  _chunk7ZHTPFFTjs.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))
30093
30099
  ] }),
30094
30100
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
30095
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _795 => _795[selectedRoleId]]), () => ( selectedRoleId)) }),
30101
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _789 => _789[selectedRoleId]]), () => ( selectedRoleId)) }),
30096
30102
  _chunk7ZHTPFFTjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
30097
30103
  CellButton3,
30098
30104
  {
@@ -30113,12 +30119,12 @@ function RbacByRoleContainer() {
30113
30119
  RbacPermissionPicker,
30114
30120
  {
30115
30121
  open: !!activePicker,
30116
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _796 => _796.anchor]), () => ( null)),
30122
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _790 => _790.anchor]), () => ( null)),
30117
30123
  value: activeValue,
30118
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _797 => _797.isRoleColumn]), () => ( false)),
30124
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _791 => _791.isRoleColumn]), () => ( false)),
30119
30125
  knownSegments: activeSegments,
30120
30126
  onSetValue: handleSetValue,
30121
- onClear: _optionalChain([activePicker, 'optionalAccess', _798 => _798.isRoleColumn]) ? handleClear : void 0,
30127
+ onClear: _optionalChain([activePicker, 'optionalAccess', _792 => _792.isRoleColumn]) ? handleClear : void 0,
30122
30128
  onClose: closePicker
30123
30129
  }
30124
30130
  )
@@ -30778,4 +30784,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
30778
30784
 
30779
30785
 
30780
30786
  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.errorToast = errorToast; 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.Input = Input; exports.Label = Label; exports.isAccountDeletionEnabled = isAccountDeletionEnabled; exports.AccountDeletionAdminTrigger = AccountDeletionAdminTrigger; 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.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.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.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.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.BlockNoteStaticViewer = BlockNoteStaticViewer; 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.AccountDeletionCancelledNotice = AccountDeletionCancelledNotice; exports.AccountDeletionKeepContainer = AccountDeletionKeepContainer; 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.ADMIN_PLATFORM_SECTIONS = ADMIN_PLATFORM_SECTIONS; exports.AdminIndexGrid = AdminIndexGrid; exports.AdminIndexContainer = AdminIndexContainer; exports.ADMINISTRATION_I18N_KEYS = ADMINISTRATION_I18N_KEYS; exports.AI_CONNECTIONS_I18N_KEYS = AI_CONNECTIONS_I18N_KEYS; 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.CreditWarningBanner = CreditWarningBanner; 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.EmailBlastEditor = EmailBlastEditor; exports.EmailBlastsList = EmailBlastsList; exports.EmailBlastsListContainer = EmailBlastsListContainer; exports.EmailBlastSendDialog = EmailBlastSendDialog; exports.EmailBlastContainer = EmailBlastContainer; 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.usePushNotifications = usePushNotifications; exports.PushNotificationProvider = PushNotificationProvider; exports.OnboardingCard = OnboardingCard; exports.ReferralCodeCapture = ReferralCodeCapture; exports.ReferralWidget = ReferralWidget; exports.ReferralDialog = ReferralDialog; exports.createUsageFormatters = createUsageFormatters; exports.useUsageFormatters = useUsageFormatters; exports.CATEGORICAL_CEILING = CATEGORICAL_CEILING; exports.OTHER_COLOR = OTHER_COLOR; exports.SEQUENTIAL_RAMP = SEQUENTIAL_RAMP; exports.seriesColor = seriesColor; exports.seriesTheme = seriesTheme; exports.ReferralsAdminFunnel = ReferralsAdminFunnel; exports.metricValue = metricValue; exports.cacheHitPercentage = cacheHitPercentage; exports.percentageDelta = percentageDelta; exports.ReferralsAdminTiles = ReferralsAdminTiles; exports.ReferralsAdminContainer = ReferralsAdminContainer; exports.SignupSourceCapture = SignupSourceCapture; 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.useOAuthScopeText = useOAuthScopeText; 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.formatDate = formatDate2; exports.useBillingFormatOptions = useBillingFormatOptions; exports.promotionCodeDiscount = promotionCodeDiscount; exports.subscriptionDiscount = subscriptionDiscount; exports.applyDiscount = applyDiscount; exports.CouponRefresher = CouponRefresher; exports.couponPageModule = couponPageModule; exports.parseOptionalPositiveInt = parseOptionalPositiveInt; exports.parseOptionalDecimal = parseOptionalDecimal; exports.optionalPositiveInt = optionalPositiveInt; exports.optionalDecimal = optionalDecimal; exports.optionalDate = optionalDate; exports.couponCodeSchema = couponCodeSchema; exports.couponCodeDefaults = couponCodeDefaults; exports.toCouponCodeInput = toCouponCodeInput; exports.couponCurrencyOptions = couponCurrencyOptions; exports.CouponCodeFields = CouponCodeFields; exports.CouponEditor = CouponEditor; exports.CouponProvider = CouponProvider; exports.useCouponContext = useCouponContext; exports.CouponCodeActions = CouponCodeActions; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
30781
- //# sourceMappingURL=chunk-2H342HNN.js.map
30787
+ //# sourceMappingURL=chunk-PYRZCKC2.js.map