@carlonicora/nextjs-jsonapi 6.14.0 → 6.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/{BlockNoteEditor-QIVV2OB4.mjs → BlockNoteEditor-I3J6YYXK.mjs} +2 -2
  2. package/dist/{BlockNoteEditor-CUNH4LSQ.js → BlockNoteEditor-UIAX72XW.js} +9 -9
  3. package/dist/{BlockNoteEditor-CUNH4LSQ.js.map → BlockNoteEditor-UIAX72XW.js.map} +1 -1
  4. package/dist/billing/index.js +378 -378
  5. package/dist/billing/index.mjs +1 -1
  6. package/dist/{chunk-GSRTVIIK.js → chunk-RT7XFGIN.js} +222 -218
  7. package/dist/chunk-RT7XFGIN.js.map +1 -0
  8. package/dist/{chunk-YKNULEHB.mjs → chunk-RYY7USSW.mjs} +9 -5
  9. package/dist/chunk-RYY7USSW.mjs.map +1 -0
  10. package/dist/client/index.js +2 -2
  11. package/dist/client/index.mjs +1 -1
  12. package/dist/components/editors/server.d.mts +7 -1
  13. package/dist/components/editors/server.d.ts +7 -1
  14. package/dist/components/editors/server.js +17 -4
  15. package/dist/components/editors/server.js.map +1 -1
  16. package/dist/components/editors/server.mjs +17 -4
  17. package/dist/components/editors/server.mjs.map +1 -1
  18. package/dist/components/index.js +2 -2
  19. package/dist/components/index.mjs +1 -1
  20. package/dist/contexts/index.js +2 -2
  21. package/dist/contexts/index.mjs +1 -1
  22. package/dist/email-automations/index.js +58 -58
  23. package/dist/email-automations/index.mjs +1 -1
  24. package/dist/features/analytics/index.js +96 -96
  25. package/dist/features/analytics/index.mjs +1 -1
  26. package/dist/features/blog/index.js +93 -93
  27. package/dist/features/blog/index.mjs +1 -1
  28. package/dist/features/help/index.js +31 -31
  29. package/dist/features/help/index.mjs +1 -1
  30. package/dist/features/tokenusage/index.js +102 -102
  31. package/dist/features/tokenusage/index.mjs +1 -1
  32. package/package.json +1 -1
  33. package/src/components/editors/server/__tests__/renderBlockNoteMarkdown.spec.ts +45 -0
  34. package/src/components/editors/server/renderBlockNoteHTML.ts +2 -18
  35. package/src/components/editors/server/renderBlockNoteMarkdown.ts +10 -0
  36. package/src/components/editors/server/serverEditor.ts +25 -0
  37. package/src/components/editors/server-entry.ts +1 -0
  38. package/src/hooks/__tests__/usePageTracker.spec.tsx +61 -0
  39. package/src/hooks/usePageTracker.ts +17 -7
  40. package/dist/chunk-GSRTVIIK.js.map +0 -1
  41. package/dist/chunk-YKNULEHB.mjs.map +0 -1
  42. /package/dist/{BlockNoteEditor-QIVV2OB4.mjs.map → BlockNoteEditor-I3J6YYXK.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-CUNH4LSQ.js"))), {
10855
+ var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-UIAX72XW.js"))), {
10856
10856
  ssr: false
10857
10857
  });
10858
10858
  var BlockNoteEditorContainer = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
@@ -15274,9 +15274,13 @@ var _navigation = require('next/navigation');
15274
15274
  var EXCLUDED_ROUTES = ["/", "/login", "/register", "/forgot-password", "/reset-password", "/activate"];
15275
15275
  function readEntityTitle() {
15276
15276
  if (typeof document === "undefined") return null;
15277
- const afterEntityType = document.title.split("]")[1];
15278
- if (!afterEntityType) return null;
15279
- return _optionalChain([afterEntityType, 'access', _448 => _448.split, 'call', _449 => _449("|"), 'access', _450 => _450[0], 'optionalAccess', _451 => _451.trim, 'call', _452 => _452()]) || null;
15277
+ const title = document.title;
15278
+ if (title.includes("]")) {
15279
+ const afterEntityType = title.split("]")[1];
15280
+ return _optionalChain([afterEntityType, 'optionalAccess', _448 => _448.split, 'call', _449 => _449("|"), 'access', _450 => _450[0], 'optionalAccess', _451 => _451.trim, 'call', _452 => _452()]) || null;
15281
+ }
15282
+ if (!title.includes("|")) return null;
15283
+ return _optionalChain([title, 'access', _453 => _453.split, 'call', _454 => _454("|"), 'access', _455 => _455[0], 'access', _456 => _456.split, 'call', _457 => _457("\xB7"), 'access', _458 => _458[0], 'optionalAccess', _459 => _459.trim, 'call', _460 => _460()]) || null;
15280
15284
  }
15281
15285
  _chunk7QVYU63Ejs.__name.call(void 0, readEntityTitle, "readEntityTitle");
15282
15286
  function usePageTracker() {
@@ -15305,7 +15309,7 @@ function usePageTracker() {
15305
15309
  const existing = prev.find((page) => page.url === baseUrl);
15306
15310
  const refreshed = {
15307
15311
  url: baseUrl,
15308
- title: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _453 => _453.title]), () => ( foundModule.name)),
15312
+ title: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _461 => _461.title]), () => ( foundModule.name)),
15309
15313
  moduleType: foundModule.name,
15310
15314
  timestamp: Date.now()
15311
15315
  };
@@ -15363,7 +15367,7 @@ function urlBase64ToUint8Array(base64String) {
15363
15367
  _chunk7QVYU63Ejs.__name.call(void 0, urlBase64ToUint8Array, "urlBase64ToUint8Array");
15364
15368
  function usePushNotifications(params) {
15365
15369
  const { currentUser, canSubscribe } = params;
15366
- const userId = _optionalChain([currentUser, 'optionalAccess', _454 => _454.id]);
15370
+ const userId = _optionalChain([currentUser, 'optionalAccess', _462 => _462.id]);
15367
15371
  _react.useEffect.call(void 0, () => {
15368
15372
  if (!userId || !canSubscribe) return;
15369
15373
  const register = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
@@ -15413,7 +15417,7 @@ function usePushNotifications(params) {
15413
15417
  if (!("serviceWorker" in navigator)) return;
15414
15418
  const sessionKey = `push_registered_${userId}`;
15415
15419
  const onMessage = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (event) => {
15416
- if (_optionalChain([event, 'access', _455 => _455.data, 'optionalAccess', _456 => _456.type]) !== "PUSH_RESUBSCRIBED" || !event.data.subscription) return;
15420
+ if (_optionalChain([event, 'access', _463 => _463.data, 'optionalAccess', _464 => _464.type]) !== "PUSH_RESUBSCRIBED" || !event.data.subscription) return;
15417
15421
  const subscription = event.data.subscription;
15418
15422
  const subscriptionHash = btoa(JSON.stringify(subscription));
15419
15423
  if (sessionStorage.getItem(sessionKey) === subscriptionHash) return;
@@ -15496,14 +15500,14 @@ function useSocket({ token, paused = false }) {
15496
15500
  });
15497
15501
  }, "handleMessage");
15498
15502
  const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
15499
- const resource = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _457 => _457.data]), () => ( _optionalChain([data, 'optionalAccess', _458 => _458.jsonApi])));
15500
- if (!_optionalChain([resource, 'optionalAccess', _459 => _459.type])) {
15503
+ const resource = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _465 => _465.data]), () => ( _optionalChain([data, 'optionalAccess', _466 => _466.jsonApi])));
15504
+ if (!_optionalChain([resource, 'optionalAccess', _467 => _467.type])) {
15501
15505
  console.warn("[useSocket] ignoring notification with unexpected payload shape", data);
15502
15506
  return;
15503
15507
  }
15504
15508
  const notification = _chunkPMESKNKLjs.rehydrate.call(void 0, _chunk4XLDBOSEjs.Modules.Notification, {
15505
15509
  jsonApi: resource,
15506
- included: _optionalChain([data, 'optionalAccess', _460 => _460.included]) || []
15510
+ included: _optionalChain([data, 'optionalAccess', _468 => _468.included]) || []
15507
15511
  });
15508
15512
  if (notification) {
15509
15513
  setSocketNotifications((prev) => {
@@ -15641,11 +15645,11 @@ function BreadcrumbMobile({
15641
15645
  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 }) }) }) });
15642
15646
  }
15643
15647
  if (allItems.length <= 1) {
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]) });
15648
+ 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', _469 => _469.name]) });
15645
15649
  }
15646
15650
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenu, { open, onOpenChange: setOpen, children: [
15647
15651
  /* @__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: [
15648
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: _optionalChain([lastItem, 'optionalAccess', _462 => _462.name]) }),
15652
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: _optionalChain([lastItem, 'optionalAccess', _470 => _470.name]) }),
15649
15653
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: "text-muted-foreground size-3.5 shrink-0" })
15650
15654
  ] }),
15651
15655
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuContent, { align: "start", children: allItems.map(
@@ -15663,8 +15667,8 @@ function BreadcrumbMobile({
15663
15667
  href: item.href,
15664
15668
  className: _chunkPMESKNKLjs.cn.call(void 0, props.className, "text-foreground font-normal"),
15665
15669
  onClick: (event) => {
15666
- _optionalChain([props, 'access', _463 => _463.onClick, 'optionalCall', _464 => _464(event)]);
15667
- _optionalChain([item, 'access', _465 => _465.onClick, 'optionalCall', _466 => _466()]);
15670
+ _optionalChain([props, 'access', _471 => _471.onClick, 'optionalCall', _472 => _472(event)]);
15671
+ _optionalChain([item, 'access', _473 => _473.onClick, 'optionalCall', _474 => _474()]);
15668
15672
  },
15669
15673
  children: props.children
15670
15674
  }
@@ -15682,7 +15686,7 @@ function BreadcrumbNavigation({ items, rootLabel, showRoot = true }) {
15682
15686
  const generateUrl = usePageUrlGenerator();
15683
15687
  const t = _nextintl.useTranslations.call(void 0, );
15684
15688
  const isMobile = _chunkPMESKNKLjs.useIsMobile.call(void 0, );
15685
- const root = _optionalChain([rootLabel, 'optionalAccess', _467 => _467.trim, 'call', _468 => _468()]) ? rootLabel : t(`common.home`);
15689
+ const root = _optionalChain([rootLabel, 'optionalAccess', _475 => _475.trim, 'call', _476 => _476()]) ? rootLabel : t(`common.home`);
15686
15690
  if (isMobile) {
15687
15691
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbMobile, { items, generateUrl, rootLabel: root, showRoot });
15688
15692
  }
@@ -16089,12 +16093,12 @@ var _remarkgfm = require('remark-gfm'); var _remarkgfm2 = _interopRequireDefault
16089
16093
 
16090
16094
  function mermaidSourceOf(node) {
16091
16095
  const pre = node;
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 : [];
16096
+ const code = _optionalChain([pre, 'optionalAccess', _477 => _477.children, 'optionalAccess', _478 => _478[0]]);
16097
+ if (_optionalChain([code, 'optionalAccess', _479 => _479.tagName]) !== "code") return void 0;
16098
+ const classNames = Array.isArray(_optionalChain([code, 'access', _480 => _480.properties, 'optionalAccess', _481 => _481.className])) ? code.properties.className : [];
16095
16099
  if (!classNames.includes("language-mermaid")) 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;
16100
+ const text = _optionalChain([code, 'access', _482 => _482.children, 'optionalAccess', _483 => _483[0]]);
16101
+ if (_optionalChain([text, 'optionalAccess', _484 => _484.type]) !== "text" || typeof text.value !== "string") return void 0;
16098
16102
  return text.value;
16099
16103
  }
16100
16104
  _chunk7QVYU63Ejs.__name.call(void 0, mermaidSourceOf, "mermaidSourceOf");
@@ -16351,7 +16355,7 @@ var railTriggerClass = _chunkPMESKNKLjs.cn.call(void 0,
16351
16355
  "data-active:text-primary dark:data-active:text-primary",
16352
16356
  "data-active:font-medium data-active:shadow-none"
16353
16357
  );
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");
16358
+ var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access', _485 => _485.key, 'optionalAccess', _486 => _486.name]))), () => ( tab.label)), "tabValue");
16355
16359
  function RoundPageContainer({
16356
16360
  module,
16357
16361
  id,
@@ -16383,7 +16387,7 @@ function RoundPageContainer({
16383
16387
  const [mounted, setMounted] = _react.useState.call(void 0, false);
16384
16388
  _react.useEffect.call(void 0, () => {
16385
16389
  const match = document.cookie.split("; ").find((row) => row.startsWith(`${detailsCookieName}=`));
16386
- const stored = _optionalChain([match, 'optionalAccess', _479 => _479.split, 'call', _480 => _480("="), 'access', _481 => _481[1]]);
16390
+ const stored = _optionalChain([match, 'optionalAccess', _487 => _487.split, 'call', _488 => _488("="), 'access', _489 => _489[1]]);
16387
16391
  if (stored === "true") setShowDetailsState(true);
16388
16392
  else if (stored === "false") setShowDetailsState(false);
16389
16393
  }, []);
@@ -16398,7 +16402,7 @@ function RoundPageContainer({
16398
16402
  const clip = isFixed ? `overflow-hidden` : ``;
16399
16403
  const scrollY = isFixed ? `overflow-y-auto` : ``;
16400
16404
  const mobileBarClass = isFixed ? `` : `sticky bottom-0 z-30`;
16401
- const detailsCookieName = _optionalChain([module, 'optionalAccess', _482 => _482.name]) ? `${DETAILS_COOKIE_NAME}_${module.name}` : DETAILS_COOKIE_NAME;
16405
+ const detailsCookieName = _optionalChain([module, 'optionalAccess', _490 => _490.name]) ? `${DETAILS_COOKIE_NAME}_${module.name}` : DETAILS_COOKIE_NAME;
16402
16406
  const setShowDetails = _react.useCallback.call(void 0,
16403
16407
  (value) => {
16404
16408
  setShowDetailsState(value);
@@ -16431,13 +16435,13 @@ function RoundPageContainer({
16431
16435
  } else {
16432
16436
  rewriteUrl({ page: window.location.pathname, additionalParameters: { section: key }, mode: "push" });
16433
16437
  }
16434
- _optionalChain([onSectionChange, 'optionalCall', _483 => _483(key)]);
16438
+ _optionalChain([onSectionChange, 'optionalCall', _491 => _491(key)]);
16435
16439
  },
16436
16440
  [module, id, rewriteUrl, onSectionChange]
16437
16441
  );
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;
16442
+ const activeTabDefinition = _optionalChain([tabs, 'optionalAccess', _492 => _492.find, 'call', _493 => _493((t2) => tabValue(t2) === activeTab)]);
16443
+ const activeFillHeight = _optionalChain([activeTabDefinition, 'optionalAccess', _494 => _494.fillHeight]) === true;
16444
+ const activeConstrainWidth = _optionalChain([activeTabDefinition, 'optionalAccess', _495 => _495.constrainWidth]) === true;
16441
16445
  const { ungrouped, groups } = _react.useMemo.call(void 0, () => partitionTabs(_nullishCoalesce(tabs, () => ( []))), [tabs]);
16442
16446
  const tabItems = _react.useMemo.call(void 0,
16443
16447
  () => Object.fromEntries((_nullishCoalesce(tabs, () => ( []))).map((tab) => [tabValue(tab), _nullishCoalesce(tab.contentLabel, () => ( tab.label))])),
@@ -16448,7 +16452,7 @@ function RoundPageContainer({
16448
16452
  const mobileFlow = isMobile && isFixed && (!activeFillHeight || activeDocumentTab) && !fullWidth;
16449
16453
  const innerClip = mobileFlow ? `` : clip;
16450
16454
  const innerScrollY = mobileFlow ? `` : scrollY;
16451
- const showMobileSectionPicker = (_nullishCoalesce(_optionalChain([tabs, 'optionalAccess', _488 => _488.length]), () => ( 0))) > 1;
16455
+ const showMobileSectionPicker = (_nullishCoalesce(_optionalChain([tabs, 'optionalAccess', _496 => _496.length]), () => ( 0))) > 1;
16452
16456
  if (!isReady) {
16453
16457
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
16454
16458
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -16848,14 +16852,14 @@ function BlockNoteEditorMentionHoverCard({
16848
16852
  const entityType = target.dataset.mentionType;
16849
16853
  const alias = target.dataset.mentionAlias;
16850
16854
  setHovered((prev) => {
16851
- if (_optionalChain([prev, 'optionalAccess', _489 => _489.id]) === id && _optionalChain([prev, 'optionalAccess', _490 => _490.element]) === target) return prev;
16855
+ if (_optionalChain([prev, 'optionalAccess', _497 => _497.id]) === id && _optionalChain([prev, 'optionalAccess', _498 => _498.element]) === target) return prev;
16852
16856
  return { id, entityType, alias, element: target };
16853
16857
  });
16854
16858
  }, "handleMouseOver");
16855
16859
  const handleMouseOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
16856
16860
  const target = e.target.closest("[data-mention-id]");
16857
16861
  if (!target) return;
16858
- const related = _optionalChain([e, 'access', _491 => _491.relatedTarget, 'optionalAccess', _492 => _492.closest, 'call', _493 => _493("[data-mention-id]")]);
16862
+ const related = _optionalChain([e, 'access', _499 => _499.relatedTarget, 'optionalAccess', _500 => _500.closest, 'call', _501 => _501("[data-mention-id]")]);
16859
16863
  if (related) return;
16860
16864
  scheduleClose();
16861
16865
  }, "handleMouseOut");
@@ -16869,7 +16873,7 @@ function BlockNoteEditorMentionHoverCard({
16869
16873
  }, [containerRef, mentionResolveFn, cancelClose, scheduleClose]);
16870
16874
  if (!hovered || !mentionResolveFn) return null;
16871
16875
  const resolved = mentionResolveFn(hovered.id, hovered.entityType, hovered.alias);
16872
- if (!_optionalChain([resolved, 'optionalAccess', _494 => _494.HoverContent])) return null;
16876
+ if (!_optionalChain([resolved, 'optionalAccess', _502 => _502.HoverContent])) return null;
16873
16877
  const ContentComponent = resolved.HoverContent;
16874
16878
  const rect = hovered.element.getBoundingClientRect();
16875
16879
  return _reactdom.createPortal.call(void 0,
@@ -16913,28 +16917,28 @@ var parseMentionElement = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
16913
16917
  }, "parseMentionElement");
16914
16918
  var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn, disableMention, nameResolver) => {
16915
16919
  const MentionExternalHTML = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
16916
- const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _495 => _495(props.id, props.entityType, props.alias)]), () => ( props.alias));
16920
+ const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _503 => _503(props.id, props.entityType, props.alias)]), () => ( props.alias));
16917
16921
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "data-mention-id": props.id, "data-mention-type": props.entityType, "data-mention-alias": props.alias, children: [
16918
16922
  "@",
16919
16923
  displayName
16920
16924
  ] });
16921
16925
  }, "MentionExternalHTML");
16922
16926
  const Mention = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function Mention2(props) {
16923
- const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _496 => _496(props.id, props.entityType, props.alias)]), () => ( props.alias));
16927
+ const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _504 => _504(props.id, props.entityType, props.alias)]), () => ( props.alias));
16924
16928
  if (disableMention) {
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: [
16929
+ const resolved2 = _optionalChain([resolveFn, 'optionalCall', _505 => _505(props.id, props.entityType, displayName)]);
16930
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _506 => _506.url]), () => ( "#")), className: "text-primary", children: [
16927
16931
  "@",
16928
16932
  displayName
16929
16933
  ] });
16930
16934
  }
16931
- const resolved = _optionalChain([resolveFn, 'optionalCall', _499 => _499(props.id, props.entityType, displayName)]);
16932
- if (_optionalChain([resolved, 'optionalAccess', _500 => _500.Inline])) {
16935
+ const resolved = _optionalChain([resolveFn, 'optionalCall', _507 => _507(props.id, props.entityType, displayName)]);
16936
+ if (_optionalChain([resolved, 'optionalAccess', _508 => _508.Inline])) {
16933
16937
  const Custom = resolved.Inline;
16934
16938
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props, alias: displayName });
16935
16939
  }
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;
16940
+ const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _509 => _509.url]), () => ( "#"));
16941
+ const handleClick = _optionalChain([resolved, 'optionalAccess', _510 => _510.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
16938
16942
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
16939
16943
  _link2.default,
16940
16944
  {
@@ -17042,7 +17046,7 @@ function BlockNoteEditorMentionSuggestionMenu({
17042
17046
  if (!suggestionMenuComponent) return void 0;
17043
17047
  const Component2 = suggestionMenuComponent;
17044
17048
  const Wrapped = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
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;
17049
+ const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _511 => _511.items, 'access', _512 => _512[0], 'optionalAccess', _513 => _513.title]) === KEEP_OPEN_SENTINEL_TITLE;
17046
17050
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
17047
17051
  Component2,
17048
17052
  {
@@ -17051,7 +17055,7 @@ function BlockNoteEditorMentionSuggestionMenu({
17051
17055
  selectedIndex: isSentinelOnly ? void 0 : props.selectedIndex,
17052
17056
  onItemClick: (item) => {
17053
17057
  if (item.title === KEEP_OPEN_SENTINEL_TITLE) return;
17054
- _optionalChain([props, 'access', _506 => _506.onItemClick, 'optionalCall', _507 => _507(item)]);
17058
+ _optionalChain([props, 'access', _514 => _514.onItemClick, 'optionalCall', _515 => _515(item)]);
17055
17059
  }
17056
17060
  }
17057
17061
  );
@@ -17298,10 +17302,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
17298
17302
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
17299
17303
  SelectRowCheckbox,
17300
17304
  {
17301
- checked: _optionalChain([params, 'access', _508 => _508.checkedIds, 'optionalAccess', _509 => _509.includes, 'call', _510 => _510(row.getValue(params.name))]) || false,
17305
+ checked: _optionalChain([params, 'access', _516 => _516.checkedIds, 'optionalAccess', _517 => _517.includes, 'call', _518 => _518(row.getValue(params.name))]) || false,
17302
17306
  onCheckedChange: (value) => {
17303
17307
  row.toggleSelected(!!value);
17304
- _optionalChain([params, 'access', _511 => _511.toggleId, 'optionalCall', _512 => _512(row.getValue(params.name))]);
17308
+ _optionalChain([params, 'access', _519 => _519.toggleId, 'optionalCall', _520 => _520(row.getValue(params.name))]);
17305
17309
  }
17306
17310
  }
17307
17311
  ) : null, "cell"),
@@ -17359,7 +17363,7 @@ function useJsonApiGet(params) {
17359
17363
  const [response, setResponse] = _react.useState.call(void 0, null);
17360
17364
  const isMounted = _react.useRef.call(void 0, true);
17361
17365
  const fetchData = _react.useCallback.call(void 0, async () => {
17362
- if (_optionalChain([params, 'access', _513 => _513.options, 'optionalAccess', _514 => _514.enabled]) === false) return;
17366
+ if (_optionalChain([params, 'access', _521 => _521.options, 'optionalAccess', _522 => _522.enabled]) === false) return;
17363
17367
  setLoading(true);
17364
17368
  setError(null);
17365
17369
  try {
@@ -17386,9 +17390,9 @@ function useJsonApiGet(params) {
17386
17390
  setLoading(false);
17387
17391
  }
17388
17392
  }
17389
- }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _515 => _515.options, 'optionalAccess', _516 => _516.enabled])]);
17393
+ }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _523 => _523.options, 'optionalAccess', _524 => _524.enabled])]);
17390
17394
  const fetchNextPage = _react.useCallback.call(void 0, async () => {
17391
- if (!_optionalChain([response, 'optionalAccess', _517 => _517.nextPage])) return;
17395
+ if (!_optionalChain([response, 'optionalAccess', _525 => _525.nextPage])) return;
17392
17396
  setLoading(true);
17393
17397
  try {
17394
17398
  const nextResponse = await response.nextPage();
@@ -17409,7 +17413,7 @@ function useJsonApiGet(params) {
17409
17413
  }
17410
17414
  }, [response]);
17411
17415
  const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
17412
- if (!_optionalChain([response, 'optionalAccess', _518 => _518.prevPage])) return;
17416
+ if (!_optionalChain([response, 'optionalAccess', _526 => _526.prevPage])) return;
17413
17417
  setLoading(true);
17414
17418
  try {
17415
17419
  const prevResponse = await response.prevPage();
@@ -17435,15 +17439,15 @@ function useJsonApiGet(params) {
17435
17439
  return () => {
17436
17440
  isMounted.current = false;
17437
17441
  };
17438
- }, [fetchData, ..._optionalChain([params, 'access', _519 => _519.options, 'optionalAccess', _520 => _520.deps]) || []]);
17442
+ }, [fetchData, ..._optionalChain([params, 'access', _527 => _527.options, 'optionalAccess', _528 => _528.deps]) || []]);
17439
17443
  return {
17440
17444
  data,
17441
17445
  loading,
17442
17446
  error,
17443
17447
  response,
17444
17448
  refetch: fetchData,
17445
- hasNextPage: !!_optionalChain([response, 'optionalAccess', _521 => _521.next]),
17446
- hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _522 => _522.prev]),
17449
+ hasNextPage: !!_optionalChain([response, 'optionalAccess', _529 => _529.next]),
17450
+ hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _530 => _530.prev]),
17447
17451
  fetchNextPage,
17448
17452
  fetchPreviousPage
17449
17453
  };
@@ -17521,17 +17525,17 @@ function useJsonApiMutation(config) {
17521
17525
  if (apiResponse.ok) {
17522
17526
  const resultData = apiResponse.data;
17523
17527
  setData(resultData);
17524
- _optionalChain([config, 'access', _523 => _523.onSuccess, 'optionalCall', _524 => _524(resultData)]);
17528
+ _optionalChain([config, 'access', _531 => _531.onSuccess, 'optionalCall', _532 => _532(resultData)]);
17525
17529
  return resultData;
17526
17530
  } else {
17527
17531
  setError(apiResponse.error);
17528
- _optionalChain([config, 'access', _525 => _525.onError, 'optionalCall', _526 => _526(apiResponse.error)]);
17532
+ _optionalChain([config, 'access', _533 => _533.onError, 'optionalCall', _534 => _534(apiResponse.error)]);
17529
17533
  return null;
17530
17534
  }
17531
17535
  } catch (err) {
17532
17536
  const errorMessage = err instanceof Error ? err.message : "Unknown error";
17533
17537
  setError(errorMessage);
17534
- _optionalChain([config, 'access', _527 => _527.onError, 'optionalCall', _528 => _528(errorMessage)]);
17538
+ _optionalChain([config, 'access', _535 => _535.onError, 'optionalCall', _536 => _536(errorMessage)]);
17535
17539
  return null;
17536
17540
  } finally {
17537
17541
  setLoading(false);
@@ -17604,7 +17608,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
17604
17608
  {
17605
17609
  href: hasRole(_chunkG4JR3SFVjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
17606
17610
  page: "/administration",
17607
- id: _optionalChain([_chunk4XLDBOSEjs.Modules, 'access', _529 => _529.Company, 'access', _530 => _530.pageUrl, 'optionalAccess', _531 => _531.substring, 'call', _532 => _532(1)]),
17611
+ id: _optionalChain([_chunk4XLDBOSEjs.Modules, 'access', _537 => _537.Company, 'access', _538 => _538.pageUrl, 'optionalAccess', _539 => _539.substring, 'call', _540 => _540(1)]),
17608
17612
  childPage: company.id
17609
17613
  }) : generateUrl({ page: _chunk4XLDBOSEjs.Modules.Company, id: company.id }),
17610
17614
  children: row.getValue("name")
@@ -17620,7 +17624,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
17620
17624
  })
17621
17625
  };
17622
17626
  const columns = _react.useMemo.call(void 0, () => {
17623
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _533 => _533[field], 'optionalCall', _534 => _534()])).filter((col) => col !== void 0);
17627
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _541 => _541[field], 'optionalCall', _542 => _542()])).filter((col) => col !== void 0);
17624
17628
  }, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
17625
17629
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17626
17630
  }, "useCompanyTableStructure");
@@ -17633,7 +17637,7 @@ var DAY_MS = 1e3 * 60 * 60 * 24;
17633
17637
  var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
17634
17638
  if (!currentUser || !_chunkG4JR3SFVjs.isRolesConfigured.call(void 0, )) return false;
17635
17639
  const adminRoleId = _chunkG4JR3SFVjs.getRoleId.call(void 0, ).Administrator;
17636
- return !!_optionalChain([currentUser, 'access', _535 => _535.roles, 'optionalAccess', _536 => _536.some, 'call', _537 => _537((role) => role.id === adminRoleId)]);
17640
+ return !!_optionalChain([currentUser, 'access', _543 => _543.roles, 'optionalAccess', _544 => _544.some, 'call', _545 => _545((role) => role.id === adminRoleId)]);
17637
17641
  }, "isAdministrator");
17638
17642
  function useSubscriptionStatus() {
17639
17643
  const { company, currentUser } = useCurrentUserContext();
@@ -17750,7 +17754,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
17750
17754
  })
17751
17755
  };
17752
17756
  const columns = _react.useMemo.call(void 0, () => {
17753
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _538 => _538[field], 'optionalCall', _539 => _539()])).filter((col) => col !== void 0);
17757
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _546 => _546[field], 'optionalCall', _547 => _547()])).filter((col) => col !== void 0);
17754
17758
  }, [params.fields, fieldColumnMap, t, generateUrl]);
17755
17759
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17756
17760
  }, "useRoleTableStructure");
@@ -17790,12 +17794,12 @@ _chunk7QVYU63Ejs.__name.call(void 0, useBillingFormatOptions, "useBillingFormatO
17790
17794
 
17791
17795
  // src/features/billing/components/utils/discount.ts
17792
17796
  function promotionCodeDiscount(code) {
17793
- if (!_optionalChain([code, 'optionalAccess', _540 => _540.valid]) || !code.discountType || !code.discountValue) return null;
17797
+ if (!_optionalChain([code, 'optionalAccess', _548 => _548.valid]) || !code.discountType || !code.discountValue) return null;
17794
17798
  return { discountType: code.discountType, discountValue: code.discountValue, currency: code.currency };
17795
17799
  }
17796
17800
  _chunk7QVYU63Ejs.__name.call(void 0, promotionCodeDiscount, "promotionCodeDiscount");
17797
17801
  function subscriptionDiscount(subscription) {
17798
- const discount = _optionalChain([subscription, 'optionalAccess', _541 => _541.discount]);
17802
+ const discount = _optionalChain([subscription, 'optionalAccess', _549 => _549.discount]);
17799
17803
  if (!discount) return null;
17800
17804
  if (discount.percentOff) return { discountType: "percent_off", discountValue: discount.percentOff };
17801
17805
  if (discount.amountOff) {
@@ -17817,8 +17821,8 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
17817
17821
  const t = _nextintl.useTranslations.call(void 0, );
17818
17822
  const fmt = useBillingFormatOptions();
17819
17823
  const generateUrl = usePageUrlGenerator();
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]);
17824
+ const onClone = _optionalChain([params, 'access', _550 => _550.context, 'optionalAccess', _551 => _551.onClone]);
17825
+ const onExport = _optionalChain([params, 'access', _552 => _552.context, 'optionalAccess', _553 => _553.onExport]);
17822
17826
  const tableData = _react.useMemo.call(void 0, () => {
17823
17827
  return params.data.map((price) => {
17824
17828
  const entry = { jsonApiData: price };
@@ -17883,7 +17887,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
17883
17887
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex flex-wrap items-center gap-1", children: [
17884
17888
  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") }),
17885
17889
  price.isTrial && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.trial") }),
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") })
17890
+ _optionalChain([price, 'access', _554 => _554.recurring, 'optionalAccess', _555 => _555.usageType]) === "metered" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.metered") })
17887
17891
  ] });
17888
17892
  }, "cell"),
17889
17893
  enableSorting: false,
@@ -17931,7 +17935,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
17931
17935
  })
17932
17936
  };
17933
17937
  const columns = _react.useMemo.call(void 0, () => {
17934
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _548 => _548[field], 'optionalCall', _549 => _549()])).filter((col) => col !== void 0);
17938
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _556 => _556[field], 'optionalCall', _557 => _557()])).filter((col) => col !== void 0);
17935
17939
  }, [params.fields, fieldColumnMap, t, fmt, generateUrl, onClone, onExport]);
17936
17940
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17937
17941
  }, "useStripePriceTableStructure");
@@ -17990,7 +17994,7 @@ var useStripeProductTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.cal
17990
17994
  })
17991
17995
  };
17992
17996
  const columns = _react.useMemo.call(void 0, () => {
17993
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _550 => _550[field], 'optionalCall', _551 => _551()])).filter((col) => col !== void 0);
17997
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _558 => _558[field], 'optionalCall', _559 => _559()])).filter((col) => col !== void 0);
17994
17998
  }, [params.fields, fieldColumnMap, t, generateUrl]);
17995
17999
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17996
18000
  }, "useStripeProductTableStructure");
@@ -18074,7 +18078,7 @@ var useStripeCouponTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
18074
18078
  })
18075
18079
  };
18076
18080
  const columns = _react.useMemo.call(void 0, () => {
18077
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _552 => _552[field], 'optionalCall', _553 => _553()])).filter((col) => col !== void 0);
18081
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _560 => _560[field], 'optionalCall', _561 => _561()])).filter((col) => col !== void 0);
18078
18082
  }, [params.fields, fieldColumnMap, t, generateUrl]);
18079
18083
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
18080
18084
  }, "useStripeCouponTableStructure");
@@ -18203,13 +18207,13 @@ var toCouponCodeInput = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (va
18203
18207
  firstTimeTransaction: values.firstTimeTransaction,
18204
18208
  automatic: values.automatic
18205
18209
  };
18206
- if (_optionalChain([values, 'access', _554 => _554.code, 'optionalAccess', _555 => _555.trim, 'call', _556 => _556()])) input.code = values.code.trim();
18210
+ if (_optionalChain([values, 'access', _562 => _562.code, 'optionalAccess', _563 => _563.trim, 'call', _564 => _564()])) input.code = values.code.trim();
18207
18211
  const minimumAmount = parseOptionalDecimal(values.minimumAmount);
18208
18212
  if (minimumAmount !== void 0) {
18209
18213
  input.minimumAmount = Math.round(minimumAmount * 100);
18210
18214
  input.minimumAmountCurrency = values.minimumAmountCurrency;
18211
18215
  }
18212
- if (_optionalChain([values, 'access', _557 => _557.stripeCustomerId, 'optionalAccess', _558 => _558.trim, 'call', _559 => _559()])) input.stripeCustomerId = values.stripeCustomerId.trim();
18216
+ if (_optionalChain([values, 'access', _565 => _565.stripeCustomerId, 'optionalAccess', _566 => _566.trim, 'call', _567 => _567()])) input.stripeCustomerId = values.stripeCustomerId.trim();
18213
18217
  if (values.expiresAt) input.expiresAt = values.expiresAt;
18214
18218
  const maxRedemptions = parseOptionalPositiveInt(values.maxRedemptions);
18215
18219
  if (maxRedemptions !== void 0) input.maxRedemptions = maxRedemptions;
@@ -18378,7 +18382,7 @@ function toCouponInput(values) {
18378
18382
  ...toDiscountInput(values),
18379
18383
  ...toDurationInput(values)
18380
18384
  };
18381
- if (_optionalChain([values, 'access', _560 => _560.stripeCouponId, 'optionalAccess', _561 => _561.trim, 'call', _562 => _562()])) payload.stripeCouponId = values.stripeCouponId.trim();
18385
+ if (_optionalChain([values, 'access', _568 => _568.stripeCouponId, 'optionalAccess', _569 => _569.trim, 'call', _570 => _570()])) payload.stripeCouponId = values.stripeCouponId.trim();
18382
18386
  if (values.products.length > 0) payload.productIds = values.products.map((product) => product.id);
18383
18387
  if (values.redeemBy) payload.redeemBy = values.redeemBy;
18384
18388
  const maxRedemptions = parseOptionalPositiveInt(values.maxRedemptions);
@@ -18701,9 +18705,9 @@ var CouponProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ chi
18701
18705
  const [catalogueVersion, setCatalogueVersion] = _react.useState.call(void 0, 0);
18702
18706
  const refreshCatalogue = _react.useCallback.call(void 0, () => setCatalogueVersion((value2) => value2 + 1), []);
18703
18707
  const reloadCoupon = _react.useCallback.call(void 0, async () => {
18704
- if (!_optionalChain([coupon, 'optionalAccess', _563 => _563.id])) return;
18708
+ if (!_optionalChain([coupon, 'optionalAccess', _571 => _571.id])) return;
18705
18709
  setCoupon(await _chunkPMESKNKLjs.StripeCouponService.getCoupon({ id: coupon.id }));
18706
- }, [_optionalChain([coupon, 'optionalAccess', _564 => _564.id])]);
18710
+ }, [_optionalChain([coupon, 'optionalAccess', _572 => _572.id])]);
18707
18711
  const createCoupon = _react.useCallback.call(void 0,
18708
18712
  async (input) => {
18709
18713
  const saved = await _chunkPMESKNKLjs.StripeCouponService.createCoupon(input);
@@ -18723,13 +18727,13 @@ var CouponProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ chi
18723
18727
  );
18724
18728
  const refreshCounts = _react.useCallback.call(void 0,
18725
18729
  async (id) => {
18726
- const target = _nullishCoalesce(id, () => ( _optionalChain([coupon, 'optionalAccess', _565 => _565.id])));
18730
+ const target = _nullishCoalesce(id, () => ( _optionalChain([coupon, 'optionalAccess', _573 => _573.id])));
18727
18731
  if (!target) return;
18728
18732
  const saved = await _chunkPMESKNKLjs.StripeCouponService.refreshCounts({ id: target });
18729
- if (_optionalChain([coupon, 'optionalAccess', _566 => _566.id]) === target) setCoupon(saved);
18733
+ if (_optionalChain([coupon, 'optionalAccess', _574 => _574.id]) === target) setCoupon(saved);
18730
18734
  refreshCatalogue();
18731
18735
  },
18732
- [_optionalChain([coupon, 'optionalAccess', _567 => _567.id]), refreshCatalogue]
18736
+ [_optionalChain([coupon, 'optionalAccess', _575 => _575.id]), refreshCatalogue]
18733
18737
  );
18734
18738
  const createCode = _react.useCallback.call(void 0,
18735
18739
  async (input) => {
@@ -18967,7 +18971,7 @@ var useStripeCouponCodeTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.
18967
18971
  })
18968
18972
  };
18969
18973
  const columns = _react.useMemo.call(void 0, () => {
18970
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _568 => _568[field], 'optionalCall', _569 => _569()])).filter((col) => col !== void 0);
18974
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _576 => _576[field], 'optionalCall', _577 => _577()])).filter((col) => col !== void 0);
18971
18975
  }, [params.fields, fieldColumnMap, t, coupon, now]);
18972
18976
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
18973
18977
  }, "useStripeCouponCodeTableStructure");
@@ -18993,7 +18997,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, formatSignupSource, "formatSignupSource");
18993
18997
  var useWaitlistTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
18994
18998
  const t = _nextintl.useTranslations.call(void 0, );
18995
18999
  const locale = _chunk4XLDBOSEjs.useI18nLocale.call(void 0, );
18996
- const onInvite = _optionalChain([params, 'access', _570 => _570.context, 'optionalAccess', _571 => _571.onInvite]);
19000
+ const onInvite = _optionalChain([params, 'access', _578 => _578.context, 'optionalAccess', _579 => _579.onInvite]);
18997
19001
  const tableData = _react.useMemo.call(void 0, () => {
18998
19002
  return params.data.map((entry) => {
18999
19003
  const row = { jsonApiData: entry };
@@ -19088,7 +19092,7 @@ var useWaitlistTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
19088
19092
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
19089
19093
  const entry = row.original.jsonApiData;
19090
19094
  if (entry.status === "confirmed") {
19091
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Button, { size: "sm", variant: "outline", onClick: () => _optionalChain([onInvite, 'optionalCall', _572 => _572(entry)]), children: [
19095
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Button, { size: "sm", variant: "outline", onClick: () => _optionalChain([onInvite, 'optionalCall', _580 => _580(entry)]), children: [
19092
19096
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Send, { className: "me-2 h-4 w-4" }),
19093
19097
  t("waitlist.admin.actions.invite")
19094
19098
  ] });
@@ -19106,7 +19110,7 @@ var useWaitlistTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
19106
19110
  })
19107
19111
  };
19108
19112
  const columns = _react.useMemo.call(void 0, () => {
19109
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _573 => _573[field], 'optionalCall', _574 => _574()])).filter((col) => col !== void 0);
19113
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _581 => _581[field], 'optionalCall', _582 => _582()])).filter((col) => col !== void 0);
19110
19114
  }, [params.fields, fieldColumnMap, t, locale]);
19111
19115
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
19112
19116
  }, "useWaitlistTableStructure");
@@ -19207,11 +19211,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
19207
19211
  return params.fields.map((field) => {
19208
19212
  const localHandler = fieldColumnMap[field];
19209
19213
  if (localHandler) return localHandler();
19210
- const customHandler = _optionalChain([params, 'access', _575 => _575.context, 'optionalAccess', _576 => _576.customCells, 'optionalAccess', _577 => _577[field]]);
19214
+ const customHandler = _optionalChain([params, 'access', _583 => _583.context, 'optionalAccess', _584 => _584.customCells, 'optionalAccess', _585 => _585[field]]);
19211
19215
  if (customHandler) return customHandler({ t });
19212
19216
  return void 0;
19213
19217
  }).filter((col) => col !== void 0);
19214
- }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _578 => _578.context, 'optionalAccess', _579 => _579.customCells])]);
19218
+ }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _586 => _586.context, 'optionalAccess', _587 => _587.customCells])]);
19215
19219
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
19216
19220
  }, "useContentTableStructure");
19217
19221
 
@@ -19446,17 +19450,17 @@ function useOAuthConsent(params, options) {
19446
19450
  const [error, setError] = _react.useState.call(void 0, null);
19447
19451
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
19448
19452
  const [companyId, setCompanyId] = _react.useState.call(void 0, void 0);
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));
19453
+ const contextCompanyId = _optionalChain([useCurrentUserContextOptional, 'call', _588 => _588(), 'optionalAccess', _589 => _589.company, 'optionalAccess', _590 => _590.id]);
19454
+ const currentCompanyId = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _591 => _591.defaultCompanyId]), () => ( contextCompanyId));
19451
19455
  const t = _nextintl.useTranslations.call(void 0, );
19452
19456
  const tRef = _react.useRef.call(void 0, t);
19453
19457
  tRef.current = t;
19454
19458
  _react.useEffect.call(void 0, () => {
19455
- const companies = _nullishCoalesce(_optionalChain([clientInfo, 'optionalAccess', _584 => _584.companies]), () => ( []));
19459
+ const companies = _nullishCoalesce(_optionalChain([clientInfo, 'optionalAccess', _592 => _592.companies]), () => ( []));
19456
19460
  if (companies.length === 0) return;
19457
19461
  if (companyId && companies.some((company) => company.id === companyId)) return;
19458
19462
  const current = currentCompanyId ? companies.find((company) => company.id === currentCompanyId) : void 0;
19459
- setCompanyId(_nullishCoalesce(_optionalChain([current, 'optionalAccess', _585 => _585.id]), () => ( _optionalChain([companies, 'access', _586 => _586[0], 'optionalAccess', _587 => _587.id]))));
19463
+ setCompanyId(_nullishCoalesce(_optionalChain([current, 'optionalAccess', _593 => _593.id]), () => ( _optionalChain([companies, 'access', _594 => _594[0], 'optionalAccess', _595 => _595.id]))));
19460
19464
  }, [clientInfo, currentCompanyId, companyId]);
19461
19465
  _react.useEffect.call(void 0, () => {
19462
19466
  const fetchInfo = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
@@ -19542,7 +19546,7 @@ function useOAuthScopeText() {
19542
19546
  };
19543
19547
  }
19544
19548
  const info = typeof scope === "string" ? void 0 : scope;
19545
- return { name: _optionalChain([info, 'optionalAccess', _588 => _588.name]) || id, description: _nullishCoalesce(_optionalChain([info, 'optionalAccess', _589 => _589.description]), () => ( "")) };
19549
+ return { name: _optionalChain([info, 'optionalAccess', _596 => _596.name]) || id, description: _nullishCoalesce(_optionalChain([info, 'optionalAccess', _597 => _597.description]), () => ( "")) };
19546
19550
  },
19547
19551
  [t]
19548
19552
  );
@@ -19598,7 +19602,7 @@ function ContentTableSearch({ data }) {
19598
19602
  const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
19599
19603
  if (!isExpanded) {
19600
19604
  setIsFocused(true);
19601
- setTimeout(() => _optionalChain([inputRef, 'access', _590 => _590.current, 'optionalAccess', _591 => _591.focus, 'call', _592 => _592()]), 50);
19605
+ setTimeout(() => _optionalChain([inputRef, 'access', _598 => _598.current, 'optionalAccess', _599 => _599.focus, 'call', _600 => _600()]), 50);
19602
19606
  }
19603
19607
  }, "handleSearchIconClick");
19604
19608
  const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
@@ -19684,7 +19688,7 @@ function getGroupKeys(item, field) {
19684
19688
  return [String(_nullishCoalesce(value, () => ( "")))];
19685
19689
  }
19686
19690
  _chunk7QVYU63Ejs.__name.call(void 0, getGroupKeys, "getGroupKeys");
19687
- var isClassComponent = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (component) => typeof component === "function" && !!_optionalChain([component, 'access', _593 => _593.prototype, 'optionalAccess', _594 => _594.isReactComponent]), "isClassComponent");
19691
+ var isClassComponent = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (component) => typeof component === "function" && !!_optionalChain([component, 'access', _601 => _601.prototype, 'optionalAccess', _602 => _602.isReactComponent]), "isClassComponent");
19688
19692
  function StableCell({ render, context }) {
19689
19693
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: render(context) });
19690
19694
  }
@@ -19708,7 +19712,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
19708
19712
  if (data.isLoaded) setPendingDirection(null);
19709
19713
  }, [data.isLoaded]);
19710
19714
  const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
19711
- data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _595 => _595.data]), () => ( EMPTY_ARRAY)),
19715
+ data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _603 => _603.data]), () => ( EMPTY_ARRAY)),
19712
19716
  fields,
19713
19717
  checkedIds,
19714
19718
  toggleId,
@@ -19738,7 +19742,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
19738
19742
  ...props.renderExpandedRow && {
19739
19743
  getExpandedRowModel: _reacttable.getExpandedRowModel.call(void 0, ),
19740
19744
  // Key rows by record id so an expansion stays with its record when a search or filter reorders the rows.
19741
- getRowId: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (row, index) => _nullishCoalesce(_optionalChain([row, 'access', _596 => _596.jsonApiData, 'optionalAccess', _597 => _597.id]), () => ( String(index))), "getRowId"),
19745
+ getRowId: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (row, index) => _nullishCoalesce(_optionalChain([row, 'access', _604 => _604.jsonApiData, 'optionalAccess', _605 => _605.id]), () => ( String(index))), "getRowId"),
19742
19746
  getRowCanExpand: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => true, "getRowCanExpand"),
19743
19747
  onExpandedChange: setExpanded,
19744
19748
  state: { expanded }
@@ -19755,7 +19759,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
19755
19759
  });
19756
19760
  const rowModel = tableData ? table.getRowModel() : null;
19757
19761
  const groupedRows = _react.useMemo.call(void 0, () => {
19758
- if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _598 => _598.rows, 'optionalAccess', _599 => _599.length])) return null;
19762
+ if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _606 => _606.rows, 'optionalAccess', _607 => _607.length])) return null;
19759
19763
  const groupMap = /* @__PURE__ */ new Map();
19760
19764
  for (const row of rowModel.rows) {
19761
19765
  const keys = getGroupKeys(row.original, props.groupBy);
@@ -19834,20 +19838,20 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
19834
19838
  ) }),
19835
19839
  !props.hideHeader && table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
19836
19840
  const meta = header.column.columnDef.meta;
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);
19841
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _608 => _608.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
19838
19842
  }) }, headerGroup.id))
19839
19843
  ] }),
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)) }) }) }),
19844
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _609 => _609.rows, 'optionalAccess', _610 => _610.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
19845
+ /* @__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', _611 => _611.groupLabel, 'optionalCall', _612 => _612(group.groupKey)]), () => ( group.groupKey)) }) }) }),
19842
19846
  group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
19843
19847
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
19844
19848
  TableRow,
19845
19849
  {
19846
- onClick: () => _optionalChain([onRowClick, 'optionalCall', _605 => _605(row.original.jsonApiData)]),
19850
+ onClick: () => _optionalChain([onRowClick, 'optionalCall', _613 => _613(row.original.jsonApiData)]),
19847
19851
  className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
19848
19852
  children: row.getVisibleCells().map((cell) => {
19849
19853
  const meta = cell.column.columnDef.meta;
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);
19854
+ 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);
19851
19855
  })
19852
19856
  }
19853
19857
  ),
@@ -19857,11 +19861,11 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
19857
19861
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
19858
19862
  TableRow,
19859
19863
  {
19860
- onClick: () => _optionalChain([onRowClick, 'optionalCall', _607 => _607(row.original.jsonApiData)]),
19864
+ onClick: () => _optionalChain([onRowClick, 'optionalCall', _615 => _615(row.original.jsonApiData)]),
19861
19865
  className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
19862
19866
  children: row.getVisibleCells().map((cell) => {
19863
19867
  const meta = cell.column.columnDef.meta;
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);
19868
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _616 => _616.className]), children: renderCell(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
19865
19869
  })
19866
19870
  }
19867
19871
  ),
@@ -19876,7 +19880,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
19876
19880
  onClick: (e) => {
19877
19881
  e.preventDefault();
19878
19882
  setPendingDirection("prev");
19879
- _optionalChain([data, 'access', _609 => _609.previous, 'optionalCall', _610 => _610(true)]);
19883
+ _optionalChain([data, 'access', _617 => _617.previous, 'optionalCall', _618 => _618(true)]);
19880
19884
  },
19881
19885
  disabled: !data.previous || pendingDirection !== null,
19882
19886
  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" })
@@ -19891,7 +19895,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
19891
19895
  onClick: (e) => {
19892
19896
  e.preventDefault();
19893
19897
  setPendingDirection("next");
19894
- _optionalChain([data, 'access', _611 => _611.next, 'optionalCall', _612 => _612(true)]);
19898
+ _optionalChain([data, 'access', _619 => _619.next, 'optionalCall', _620 => _620(true)]);
19895
19899
  },
19896
19900
  disabled: !data.next || pendingDirection !== null,
19897
19901
  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" })
@@ -19913,7 +19917,7 @@ function ContentListGrid(props) {
19913
19917
  if (!data.next || !sentinelRef.current) return;
19914
19918
  const observer = new IntersectionObserver(
19915
19919
  (entries) => {
19916
- if (_optionalChain([entries, 'access', _613 => _613[0], 'optionalAccess', _614 => _614.isIntersecting])) _optionalChain([data, 'access', _615 => _615.next, 'optionalCall', _616 => _616()]);
19920
+ if (_optionalChain([entries, 'access', _621 => _621[0], 'optionalAccess', _622 => _622.isIntersecting])) _optionalChain([data, 'access', _623 => _623.next, 'optionalCall', _624 => _624()]);
19917
19921
  },
19918
19922
  { threshold: 0.1, rootMargin: "200px" }
19919
19923
  );
@@ -20765,7 +20769,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
20765
20769
  newDigits[index] = digit;
20766
20770
  setDigits(newDigits);
20767
20771
  if (digit && index < 5) {
20768
- _optionalChain([inputRefs, 'access', _617 => _617.current, 'access', _618 => _618[index + 1], 'optionalAccess', _619 => _619.focus, 'call', _620 => _620()]);
20772
+ _optionalChain([inputRefs, 'access', _625 => _625.current, 'access', _626 => _626[index + 1], 'optionalAccess', _627 => _627.focus, 'call', _628 => _628()]);
20769
20773
  }
20770
20774
  const code = newDigits.join("");
20771
20775
  if (code.length === 6 && newDigits.every((d) => d !== "")) {
@@ -20774,7 +20778,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
20774
20778
  }, "handleChange");
20775
20779
  const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
20776
20780
  if (e.key === "Backspace" && !digits[index] && index > 0) {
20777
- _optionalChain([inputRefs, 'access', _621 => _621.current, 'access', _622 => _622[index - 1], 'optionalAccess', _623 => _623.focus, 'call', _624 => _624()]);
20781
+ _optionalChain([inputRefs, 'access', _629 => _629.current, 'access', _630 => _630[index - 1], 'optionalAccess', _631 => _631.focus, 'call', _632 => _632()]);
20778
20782
  }
20779
20783
  }, "handleKeyDown");
20780
20784
  const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
@@ -20783,7 +20787,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
20783
20787
  if (pastedData.length === 6) {
20784
20788
  const newDigits = pastedData.split("");
20785
20789
  setDigits(newDigits);
20786
- _optionalChain([inputRefs, 'access', _625 => _625.current, 'access', _626 => _626[5], 'optionalAccess', _627 => _627.focus, 'call', _628 => _628()]);
20790
+ _optionalChain([inputRefs, 'access', _633 => _633.current, 'access', _634 => _634[5], 'optionalAccess', _635 => _635.focus, 'call', _636 => _636()]);
20787
20791
  onComplete(pastedData);
20788
20792
  }
20789
20793
  }, "handlePaste");
@@ -20995,8 +20999,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
20995
20999
  try {
20996
21000
  const registrationData = await _chunkPMESKNKLjs.TwoFactorService.getPasskeyRegistrationOptions({
20997
21001
  id: _uuid.v4.call(void 0, ),
20998
- userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _629 => _629.email]), () => ( "")),
20999
- userDisplayName: _optionalChain([currentUser, 'optionalAccess', _630 => _630.name])
21002
+ userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _637 => _637.email]), () => ( "")),
21003
+ userDisplayName: _optionalChain([currentUser, 'optionalAccess', _638 => _638.name])
21000
21004
  });
21001
21005
  const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
21002
21006
  await _chunkPMESKNKLjs.TwoFactorService.verifyPasskeyRegistration({
@@ -21148,7 +21152,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
21148
21152
  const setup = await _chunkPMESKNKLjs.TwoFactorService.setupTotp({
21149
21153
  id: _uuid.v4.call(void 0, ),
21150
21154
  name: name.trim(),
21151
- accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _631 => _631.email]), () => ( ""))
21155
+ accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _639 => _639.email]), () => ( ""))
21152
21156
  });
21153
21157
  setQrCodeUri(setup.qrCodeUri);
21154
21158
  setAuthenticatorId(setup.authenticatorId);
@@ -21282,7 +21286,7 @@ function TwoFactorSettings() {
21282
21286
  if (isLoading) {
21283
21287
  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") }) }) });
21284
21288
  }
21285
- const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _632 => _632.isEnabled]), () => ( false));
21289
+ const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _640 => _640.isEnabled]), () => ( false));
21286
21290
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
21287
21291
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
21288
21292
  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" }),
@@ -21320,7 +21324,7 @@ function TwoFactorSettings() {
21320
21324
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
21321
21325
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
21322
21326
  ] }),
21323
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _633 => _633.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
21327
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _641 => _641.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
21324
21328
  ] }) }),
21325
21329
  !isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
21326
21330
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
@@ -21502,9 +21506,9 @@ function AcceptInvitation() {
21502
21506
  });
21503
21507
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
21504
21508
  try {
21505
- if (!_optionalChain([params, 'optionalAccess', _634 => _634.code])) return;
21509
+ if (!_optionalChain([params, 'optionalAccess', _642 => _642.code])) return;
21506
21510
  const payload = {
21507
- code: _optionalChain([params, 'optionalAccess', _635 => _635.code]),
21511
+ code: _optionalChain([params, 'optionalAccess', _643 => _643.code]),
21508
21512
  password: values.password
21509
21513
  };
21510
21514
  await _chunkPMESKNKLjs.AuthService.acceptInvitation(payload);
@@ -21877,14 +21881,14 @@ function RefreshUser() {
21877
21881
  setUser(fullUser);
21878
21882
  const token = {
21879
21883
  userId: fullUser.id,
21880
- companyId: _optionalChain([fullUser, 'access', _636 => _636.company, 'optionalAccess', _637 => _637.id]),
21884
+ companyId: _optionalChain([fullUser, 'access', _644 => _644.company, 'optionalAccess', _645 => _645.id]),
21881
21885
  roles: fullUser.roles.map((role) => role.id),
21882
- features: _nullishCoalesce(_optionalChain([fullUser, 'access', _638 => _638.company, 'optionalAccess', _639 => _639.features, 'optionalAccess', _640 => _640.map, 'call', _641 => _641((feature) => feature.id)]), () => ( [])),
21886
+ features: _nullishCoalesce(_optionalChain([fullUser, 'access', _646 => _646.company, 'optionalAccess', _647 => _647.features, 'optionalAccess', _648 => _648.map, 'call', _649 => _649((feature) => feature.id)]), () => ( [])),
21883
21887
  modules: fullUser.modules.map((module) => {
21884
21888
  return { id: module.id, permissions: module.permissions };
21885
21889
  })
21886
21890
  };
21887
- await _optionalChain([_chunkPMESKNKLjs.getTokenHandler.call(void 0, ), 'optionalAccess', _642 => _642.updateToken, 'call', _643 => _643(token)]);
21891
+ await _optionalChain([_chunkPMESKNKLjs.getTokenHandler.call(void 0, ), 'optionalAccess', _650 => _650.updateToken, 'call', _651 => _651(token)]);
21888
21892
  _cookiesnext.deleteCookie.call(void 0, "reloadData");
21889
21893
  }
21890
21894
  }, "loadFullUser");
@@ -21948,9 +21952,9 @@ function ResetPassword() {
21948
21952
  });
21949
21953
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
21950
21954
  try {
21951
- if (!_optionalChain([params, 'optionalAccess', _644 => _644.code])) return;
21955
+ if (!_optionalChain([params, 'optionalAccess', _652 => _652.code])) return;
21952
21956
  const payload = {
21953
- code: _optionalChain([params, 'optionalAccess', _645 => _645.code]),
21957
+ code: _optionalChain([params, 'optionalAccess', _653 => _653.code]),
21954
21958
  password: values.password
21955
21959
  };
21956
21960
  await _chunkPMESKNKLjs.AuthService.resetPassword(payload);
@@ -22490,7 +22494,7 @@ function AiConnectionEditor({
22490
22494
  const registryRows = _react.useMemo.call(void 0, () => _nullishCoalesce(providerRegistry[connectionType], () => ( [])), [providerRegistry, connectionType]);
22491
22495
  const providers = _react.useMemo.call(void 0, () => registryRows.map((row) => row.provider), [registryRows]);
22492
22496
  const fieldsFor = _react.useCallback.call(void 0,
22493
- (provider) => _nullishCoalesce(_optionalChain([registryRows, 'access', _646 => _646.find, 'call', _647 => _647((row) => row.provider === provider), 'optionalAccess', _648 => _648.fields]), () => ( [])),
22497
+ (provider) => _nullishCoalesce(_optionalChain([registryRows, 'access', _654 => _654.find, 'call', _655 => _655((row) => row.provider === provider), 'optionalAccess', _656 => _656.fields]), () => ( [])),
22494
22498
  [registryRows]
22495
22499
  );
22496
22500
  const defaultsFor = _react.useCallback.call(void 0,
@@ -22499,7 +22503,7 @@ function AiConnectionEditor({
22499
22503
  const seeded = {};
22500
22504
  fieldsFor(provider).forEach((descriptor) => {
22501
22505
  if (descriptor.kind === "boolean") {
22502
- const current2 = _optionalChain([stored, 'optionalAccess', _649 => _649[descriptor.field]]);
22506
+ const current2 = _optionalChain([stored, 'optionalAccess', _657 => _657[descriptor.field]]);
22503
22507
  seeded[descriptor.field] = current2 !== void 0 && current2 !== null ? current2 === true : descriptor.default === true;
22504
22508
  return;
22505
22509
  }
@@ -22507,7 +22511,7 @@ function AiConnectionEditor({
22507
22511
  seeded[descriptor.field] = "";
22508
22512
  return;
22509
22513
  }
22510
- const current = _optionalChain([stored, 'optionalAccess', _650 => _650[descriptor.field]]);
22514
+ const current = _optionalChain([stored, 'optionalAccess', _658 => _658[descriptor.field]]);
22511
22515
  if (current !== void 0 && current !== null) seeded[descriptor.field] = String(current);
22512
22516
  else seeded[descriptor.field] = descriptor.default !== void 0 ? String(descriptor.default) : "";
22513
22517
  });
@@ -22533,7 +22537,7 @@ function AiConnectionEditor({
22533
22537
  values: _zod3.z.record(_zod3.z.string(), _zod3.z.any())
22534
22538
  }).superRefine((data, ctx) => {
22535
22539
  fieldsFor(data.provider).filter((descriptor) => descriptor.required).forEach((descriptor) => {
22536
- const value = _optionalChain([data, 'access', _651 => _651.values, 'optionalAccess', _652 => _652[descriptor.field]]);
22540
+ const value = _optionalChain([data, 'access', _659 => _659.values, 'optionalAccess', _660 => _660[descriptor.field]]);
22537
22541
  const filled = descriptor.kind === "secret" ? !!value || hasStoredSecret(descriptor.field) : descriptor.kind === "boolean" ? value !== void 0 : value !== void 0 && value !== null && String(value).trim() !== "";
22538
22542
  if (filled) return;
22539
22543
  ctx.addIssue({
@@ -22547,11 +22551,11 @@ function AiConnectionEditor({
22547
22551
  );
22548
22552
  const getDefaultValues = _react.useCallback.call(void 0,
22549
22553
  () => ({
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])), () => ( "")))
22554
+ id: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _661 => _661.id]), () => ( _uuid.v4.call(void 0, ))),
22555
+ name: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _662 => _662.name]), () => ( "")),
22556
+ provider: _nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _663 => _663.provider]), () => ( providers[0])), () => ( "")),
22557
+ enabled: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _664 => _664.enabled]), () => ( true)),
22558
+ values: defaultsFor(_nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _665 => _665.provider]), () => ( providers[0])), () => ( "")))
22555
22559
  }),
22556
22560
  [connection, providers, defaultsFor]
22557
22561
  );
@@ -22562,7 +22566,7 @@ function AiConnectionEditor({
22562
22566
  _react.useEffect.call(void 0, () => {
22563
22567
  if (registryRows.length === 0) return;
22564
22568
  const currentProvider = form.getValues("provider");
22565
- const provider = currentProvider || _optionalChain([connection, 'optionalAccess', _658 => _658.provider]) || providers[0] || "";
22569
+ const provider = currentProvider || _optionalChain([connection, 'optionalAccess', _666 => _666.provider]) || providers[0] || "";
22566
22570
  if (!provider) return;
22567
22571
  if (provider !== currentProvider) form.setValue("provider", provider);
22568
22572
  const currentValues = form.getValues("values");
@@ -22633,7 +22637,7 @@ function AiConnectionEditor({
22633
22637
  {
22634
22638
  form,
22635
22639
  entityType: t("ai_connections.admin.entity"),
22636
- entityName: _optionalChain([connection, 'optionalAccess', _659 => _659.name]),
22640
+ entityName: _optionalChain([connection, 'optionalAccess', _667 => _667.name]),
22637
22641
  isEdit,
22638
22642
  module: _chunk4XLDBOSEjs.Modules.AiConnection,
22639
22643
  size: "md",
@@ -22641,7 +22645,7 @@ function AiConnectionEditor({
22641
22645
  onSubmit: async (values) => {
22642
22646
  const attributes = {};
22643
22647
  fieldsFor(values.provider).forEach((descriptor) => {
22644
- const coerced = coerce(descriptor, _optionalChain([values, 'access', _660 => _660.values, 'optionalAccess', _661 => _661[descriptor.field]]));
22648
+ const coerced = coerce(descriptor, _optionalChain([values, 'access', _668 => _668.values, 'optionalAccess', _669 => _669[descriptor.field]]));
22645
22649
  if (coerced !== void 0) attributes[descriptor.field] = coerced;
22646
22650
  });
22647
22651
  const payload = {
@@ -22871,7 +22875,7 @@ function AiConnectionTypeCard({ connectionType }) {
22871
22875
  ),
22872
22876
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-muted/40 flex flex-wrap items-center gap-2 px-3 py-2", children: [
22873
22877
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softGray", children: t("ai_connections.admin.env_fallback") }),
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 ") })
22878
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground truncate text-xs", children: [_optionalChain([envDefault, 'optionalAccess', _670 => _670.provider]), _optionalChain([envDefault, 'optionalAccess', _671 => _671.model]), _optionalChain([envDefault, 'optionalAccess', _672 => _672.url])].filter(Boolean).join(" \xB7 ") })
22875
22879
  ] })
22876
22880
  ] })
22877
22881
  ] })
@@ -23149,7 +23153,7 @@ var useEmailBlastTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
23149
23153
  )
23150
23154
  };
23151
23155
  const columns = _react.useMemo.call(void 0, () => {
23152
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _665 => _665[field], 'optionalCall', _666 => _666()])).filter((col) => col !== void 0);
23156
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _673 => _673[field], 'optionalCall', _674 => _674()])).filter((col) => col !== void 0);
23153
23157
  }, [params.fields, fieldColumnMap, t, generateUrl, locale]);
23154
23158
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
23155
23159
  }, "useEmailBlastTableStructure");
@@ -23190,10 +23194,10 @@ function EmailBlastEditorInternal({
23190
23194
  );
23191
23195
  const getDefaultValues = _react.useCallback.call(void 0,
23192
23196
  () => ({
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]), () => ( ""))
23197
+ id: _nullishCoalesce(_optionalChain([blast, 'optionalAccess', _675 => _675.id]), () => ( _uuid.v4.call(void 0, ))),
23198
+ subject: _nullishCoalesce(_optionalChain([blast, 'optionalAccess', _676 => _676.subject]), () => ( "")),
23199
+ body: _nullishCoalesce(_optionalChain([blast, 'optionalAccess', _677 => _677.body]), () => ( "")),
23200
+ replyTo: _nullishCoalesce(_optionalChain([blast, 'optionalAccess', _678 => _678.replyTo]), () => ( ""))
23197
23201
  }),
23198
23202
  [blast]
23199
23203
  );
@@ -23206,7 +23210,7 @@ function EmailBlastEditorInternal({
23206
23210
  {
23207
23211
  form,
23208
23212
  entityType: t("emailBlasts.editor.title"),
23209
- entityName: _optionalChain([blast, 'optionalAccess', _671 => _671.subject]),
23213
+ entityName: _optionalChain([blast, 'optionalAccess', _679 => _679.subject]),
23210
23214
  title: isEdit ? t("emailBlasts.editor.editTitle") : t("emailBlasts.editor.title"),
23211
23215
  isEdit,
23212
23216
  module: _chunk4XLDBOSEjs.Modules.EmailBlast,
@@ -23336,7 +23340,7 @@ function EmailBlastSendDialog({ blast, onSuccess }) {
23336
23340
  setIsSending(true);
23337
23341
  try {
23338
23342
  await _chunkPMESKNKLjs.EmailBlastService.send({ id: blast.id });
23339
- await _optionalChain([onSuccess, 'optionalCall', _672 => _672()]);
23343
+ await _optionalChain([onSuccess, 'optionalCall', _680 => _680()]);
23340
23344
  setOpen(false);
23341
23345
  } catch (error) {
23342
23346
  errorToast({ title: t("common.errors.error"), error });
@@ -23543,7 +23547,7 @@ function extractHeadings(blocks) {
23543
23547
  function processBlocks(blockArray) {
23544
23548
  for (const block of blockArray) {
23545
23549
  if (block.type === "heading") {
23546
- const level = _optionalChain([block, 'access', _673 => _673.props, 'optionalAccess', _674 => _674.level]) || 1;
23550
+ const level = _optionalChain([block, 'access', _681 => _681.props, 'optionalAccess', _682 => _682.level]) || 1;
23547
23551
  const text = extractTextFromContent(block.content);
23548
23552
  if (text.trim()) {
23549
23553
  headings.push({
@@ -23903,7 +23907,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
23903
23907
  })
23904
23908
  };
23905
23909
  const columns = _react.useMemo.call(void 0, () => {
23906
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _675 => _675[field], 'optionalCall', _676 => _676()])).filter((col) => col !== void 0);
23910
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _683 => _683[field], 'optionalCall', _684 => _684()])).filter((col) => col !== void 0);
23907
23911
  }, [params.fields, fieldColumnMap, t, generateUrl]);
23908
23912
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
23909
23913
  }, "useHowToTableStructure");
@@ -24029,7 +24033,7 @@ function HowToSelector({
24029
24033
  }, "setHowTo");
24030
24034
  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: [
24031
24035
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
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 }) }))) }) }) }),
24036
+ /* @__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', _685 => _685.value, 'optionalAccess', _686 => _686.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 }) }))) }) }) }),
24033
24037
  field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
24034
24038
  _lucidereact.CircleX,
24035
24039
  {
@@ -24334,10 +24338,10 @@ function CitationsTab({ citations, sources }) {
24334
24338
  ] }) }),
24335
24339
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
24336
24340
  const isOpen = expanded.has(chunk.id);
24337
- const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _679 => _679.get, 'call', _680 => _680(chunk.nodeId)]) : void 0;
24341
+ const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _687 => _687.get, 'call', _688 => _688(chunk.nodeId)]) : void 0;
24338
24342
  const typeLabel = chunk.nodeType ? entityLabel(chunk.nodeType) : t("features.assistant.message.sources.source");
24339
24343
  const fallbackName = chunk.nodeId ? `${typeLabel} ${chunk.nodeId.slice(0, 8)}` : typeLabel;
24340
- const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _681 => _681.name]), () => ( fallbackName));
24344
+ const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _689 => _689.name]), () => ( fallbackName));
24341
24345
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
24342
24346
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
24343
24347
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -24401,7 +24405,7 @@ function ContentsTab({ citations, sources }) {
24401
24405
  for (const c of citations) {
24402
24406
  const id = c.nodeId;
24403
24407
  if (!id) continue;
24404
- const source = _optionalChain([sources, 'optionalAccess', _682 => _682.get, 'call', _683 => _683(id)]);
24408
+ const source = _optionalChain([sources, 'optionalAccess', _690 => _690.get, 'call', _691 => _691(id)]);
24405
24409
  if (!source) continue;
24406
24410
  const existing = map.get(id);
24407
24411
  if (existing) {
@@ -24468,7 +24472,7 @@ function UsersTab({ users, citations, sources }) {
24468
24472
  const generate = usePageUrlGenerator();
24469
24473
  const userMap = /* @__PURE__ */ new Map();
24470
24474
  for (const u of users) {
24471
- if (!_optionalChain([u, 'optionalAccess', _684 => _684.id])) continue;
24475
+ if (!_optionalChain([u, 'optionalAccess', _692 => _692.id])) continue;
24472
24476
  userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
24473
24477
  }
24474
24478
  if (citations && sources) {
@@ -24539,7 +24543,7 @@ function SuggestedQuestionsTab({ questions, onSelect }) {
24539
24543
  {
24540
24544
  type: "button",
24541
24545
  disabled: !onSelect,
24542
- onClick: () => _optionalChain([onSelect, 'optionalCall', _685 => _685(q)]),
24546
+ onClick: () => _optionalChain([onSelect, 'optionalCall', _693 => _693(q)]),
24543
24547
  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",
24544
24548
  children: q
24545
24549
  },
@@ -24574,7 +24578,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
24574
24578
  }
24575
24579
  return ids.size;
24576
24580
  }, [message.citations, sources]);
24577
- const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _686 => _686.length]), () => ( 0));
24581
+ const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _694 => _694.length]), () => ( 0));
24578
24582
  const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
24579
24583
  const visibleTabs = [];
24580
24584
  if (suggestionsCount > 0) visibleTabs.push("suggested");
@@ -24717,7 +24721,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
24717
24721
  return void 0;
24718
24722
  }
24719
24723
  })()));
24720
- if (_optionalChain([author, 'optionalAccess', _687 => _687.id])) userMap.set(author.id, author);
24724
+ if (_optionalChain([author, 'optionalAccess', _695 => _695.id])) userMap.set(author.id, author);
24721
24725
  }
24722
24726
  return Array.from(userMap.values());
24723
24727
  }, [resolved]);
@@ -24752,7 +24756,7 @@ function MessageItem({
24752
24756
  }) {
24753
24757
  const t = _nextintl.useTranslations.call(void 0, );
24754
24758
  const isUser = message.role === "user";
24755
- const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _688 => _688.has, 'call', _689 => _689(message.id)]);
24759
+ const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _696 => _696.has, 'call', _697 => _697(message.id)]);
24756
24760
  const markdownComponents = _react.useMemo.call(void 0,
24757
24761
  () => ({
24758
24762
  a: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ href, children }) => {
@@ -24769,7 +24773,7 @@ function MessageItem({
24769
24773
  isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
24770
24774
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
24771
24775
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.send_failed") }),
24772
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall', _690 => _690(message.id)]), children: t("features.assistant.retry") })
24776
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall', _698 => _698(message.id)]), children: t("features.assistant.retry") })
24773
24777
  ] })
24774
24778
  ] });
24775
24779
  }
@@ -24860,7 +24864,7 @@ function AssistantThread({
24860
24864
  }) {
24861
24865
  const lastMessageRef = _react.useRef.call(void 0, null);
24862
24866
  _react.useEffect.call(void 0, () => {
24863
- _optionalChain([lastMessageRef, 'access', _691 => _691.current, 'optionalAccess', _692 => _692.scrollIntoView, 'call', _693 => _693({ block: "start", behavior: "smooth" })]);
24867
+ _optionalChain([lastMessageRef, 'access', _699 => _699.current, 'optionalAccess', _700 => _700.scrollIntoView, 'call', _701 => _701({ block: "start", behavior: "smooth" })]);
24864
24868
  }, [messages.length, sending]);
24865
24869
  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: [
24866
24870
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -24899,7 +24903,7 @@ ${message.sources.map((source) => `- \`${source}\``).join("\n")}`;
24899
24903
  return _chunkPMESKNKLjs.rehydrate.call(void 0, _chunk4XLDBOSEjs.Modules.HandbookThreadMessage, {
24900
24904
  jsonApi: {
24901
24905
  ...dehydrated.jsonApi,
24902
- attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _694 => _694.jsonApi, 'optionalAccess', _695 => _695.attributes]), () => ( {})), content }
24906
+ attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _702 => _702.jsonApi, 'optionalAccess', _703 => _703.attributes]), () => ( {})), content }
24903
24907
  },
24904
24908
  included: dehydrated.included
24905
24909
  });
@@ -24908,8 +24912,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, withSourcesInContent, "withSourcesInContent
24908
24912
  function useHandbookAsk(params) {
24909
24913
  const t = _nextintl.useTranslations.call(void 0, );
24910
24914
  const generateUrl = usePageUrlGenerator();
24911
- const shouldSyncUrl = _nullishCoalesce(_optionalChain([params, 'optionalAccess', _696 => _696.syncUrl]), () => ( true));
24912
- const handbookThreadId = _optionalChain([params, 'optionalAccess', _697 => _697.handbookThreadId]);
24915
+ const shouldSyncUrl = _nullishCoalesce(_optionalChain([params, 'optionalAccess', _704 => _704.syncUrl]), () => ( true));
24916
+ const handbookThreadId = _optionalChain([params, 'optionalAccess', _705 => _705.handbookThreadId]);
24913
24917
  const [threads, setThreads] = _react.useState.call(void 0, []);
24914
24918
  const [thread, setThread] = _react.useState.call(void 0, void 0);
24915
24919
  const [messages, setMessages] = _react.useState.call(void 0, []);
@@ -24971,12 +24975,12 @@ function useHandbookAsk(params) {
24971
24975
  ]);
24972
24976
  setSending(true);
24973
24977
  try {
24974
- let id = _optionalChain([thread, 'optionalAccess', _698 => _698.id]);
24978
+ let id = _optionalChain([thread, 'optionalAccess', _706 => _706.id]);
24975
24979
  if (id === void 0) {
24976
24980
  const created = await _chunkPMESKNKLjs.HandbookThreadService.create({
24977
24981
  id: _uuid.v4.call(void 0, ),
24978
24982
  question: trimmed,
24979
- handbookPageId: _optionalChain([options, 'optionalAccess', _699 => _699.handbookPageId])
24983
+ handbookPageId: _optionalChain([options, 'optionalAccess', _707 => _707.handbookPageId])
24980
24984
  });
24981
24985
  id = created.id;
24982
24986
  setThreads((current) => [created, ...current]);
@@ -24985,7 +24989,7 @@ function useHandbookAsk(params) {
24985
24989
  id: _uuid.v4.call(void 0, ),
24986
24990
  threadId: id,
24987
24991
  question: trimmed,
24988
- handbookPageId: _optionalChain([options, 'optionalAccess', _700 => _700.handbookPageId])
24992
+ handbookPageId: _optionalChain([options, 'optionalAccess', _708 => _708.handbookPageId])
24989
24993
  });
24990
24994
  }
24991
24995
  const loaded = await _chunkPMESKNKLjs.HandbookThreadService.findOne({ id });
@@ -25006,7 +25010,7 @@ function useHandbookAsk(params) {
25006
25010
  setSending(false);
25007
25011
  }
25008
25012
  },
25009
- [messages.length, sending, syncUrl, t, _optionalChain([thread, 'optionalAccess', _701 => _701.id])]
25013
+ [messages.length, sending, syncUrl, t, _optionalChain([thread, 'optionalAccess', _709 => _709.id])]
25010
25014
  );
25011
25015
  return { threads, thread, messages, sending, ask, selectThread, startNew };
25012
25016
  }
@@ -25562,7 +25566,7 @@ function HandbookPageContainer({ handbookPageId }) {
25562
25566
  };
25563
25567
  }, []);
25564
25568
  const section = _react.useMemo.call(void 0,
25565
- () => sections.find((candidate) => candidate.key === _optionalChain([handbookPage, 'optionalAccess', _702 => _702.section])),
25569
+ () => sections.find((candidate) => candidate.key === _optionalChain([handbookPage, 'optionalAccess', _710 => _710.section])),
25566
25570
  [sections, handbookPage]
25567
25571
  );
25568
25572
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -25651,7 +25655,7 @@ function AssistantSidebar({
25651
25655
  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"),
25652
25656
  children: [
25653
25657
  thread.title,
25654
- _optionalChain([renderThreadBadge, 'optionalCall', _703 => _703(thread)])
25658
+ _optionalChain([renderThreadBadge, 'optionalCall', _711 => _711(thread)])
25655
25659
  ]
25656
25660
  },
25657
25661
  thread.id
@@ -25687,7 +25691,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
25687
25691
  AssistantSidebar,
25688
25692
  {
25689
25693
  threads,
25690
- activeId: _optionalChain([thread, 'optionalAccess', _704 => _704.id]),
25694
+ activeId: _optionalChain([thread, 'optionalAccess', _712 => _712.id]),
25691
25695
  onSelect: selectThread,
25692
25696
  onNew: startNew,
25693
25697
  newLabel: t("handbook.chat.new"),
@@ -25695,7 +25699,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
25695
25699
  }
25696
25700
  ) })
25697
25701
  ),
25698
- [selectThread, startNew, t, _optionalChain([thread, 'optionalAccess', _705 => _705.id]), threads]
25702
+ [selectThread, startNew, t, _optionalChain([thread, 'optionalAccess', _713 => _713.id]), threads]
25699
25703
  );
25700
25704
  return (
25701
25705
  // `RoundPageContainer` reads the page heading from the shared context, and
@@ -25707,7 +25711,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
25707
25711
  RoundPageContainer,
25708
25712
  {
25709
25713
  module: _chunk4XLDBOSEjs.Modules.HandbookPage,
25710
- id: _optionalChain([thread, 'optionalAccess', _706 => _706.id]),
25714
+ id: _optionalChain([thread, 'optionalAccess', _714 => _714.id]),
25711
25715
  fullWidth: true,
25712
25716
  forceHeader: true,
25713
25717
  defaultDetailsOpen: true,
@@ -25759,7 +25763,7 @@ function EntityMentionLinkView({ type, id, alias }) {
25759
25763
  } catch (e25) {
25760
25764
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: alias });
25761
25765
  }
25762
- if (!_optionalChain([module, 'optionalAccess', _707 => _707.pageUrl])) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: alias });
25766
+ if (!_optionalChain([module, 'optionalAccess', _715 => _715.pageUrl])) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: alias });
25763
25767
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generate({ page: module, id }), children: alias });
25764
25768
  }
25765
25769
  _chunk7QVYU63Ejs.__name.call(void 0, EntityMentionLinkView, "EntityMentionLinkView");
@@ -25891,13 +25895,13 @@ function AssistantContainer({
25891
25895
  AssistantSidebar,
25892
25896
  {
25893
25897
  threads: ctx.threads,
25894
- activeId: _optionalChain([ctx, 'access', _708 => _708.assistant, 'optionalAccess', _709 => _709.id]),
25898
+ activeId: _optionalChain([ctx, 'access', _716 => _716.assistant, 'optionalAccess', _717 => _717.id]),
25895
25899
  onSelect: ctx.selectThread,
25896
25900
  renderThreadBadge
25897
25901
  }
25898
25902
  ) })
25899
25903
  ),
25900
- [ctx.threads, _optionalChain([ctx, 'access', _710 => _710.assistant, 'optionalAccess', _711 => _711.id]), ctx.selectThread, renderThreadBadge]
25904
+ [ctx.threads, _optionalChain([ctx, 'access', _718 => _718.assistant, 'optionalAccess', _719 => _719.id]), ctx.selectThread, renderThreadBadge]
25901
25905
  );
25902
25906
  const thread = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: !showThread ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
25903
25907
  AssistantEmptyState,
@@ -25905,7 +25909,7 @@ function AssistantContainer({
25905
25909
  onSend: ctx.sendMessage,
25906
25910
  operatorMode: ctx.operatorMode,
25907
25911
  onOperatorModeChange: showOperatorToggle ? ctx.setOperatorMode : void 0,
25908
- composerLeading: _optionalChain([renderScopePicker, 'optionalCall', _712 => _712()])
25912
+ composerLeading: _optionalChain([renderScopePicker, 'optionalCall', _720 => _720()])
25909
25913
  }
25910
25914
  ) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
25911
25915
  ctx.assistant ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -25937,7 +25941,7 @@ function AssistantContainer({
25937
25941
  AssistantSidebar,
25938
25942
  {
25939
25943
  threads: ctx.threads,
25940
- activeId: _optionalChain([ctx, 'access', _713 => _713.assistant, 'optionalAccess', _714 => _714.id]),
25944
+ activeId: _optionalChain([ctx, 'access', _721 => _721.assistant, 'optionalAccess', _722 => _722.id]),
25941
25945
  onSelect: ctx.selectThread,
25942
25946
  onNew: ctx.startNew,
25943
25947
  renderThreadBadge
@@ -25950,7 +25954,7 @@ function AssistantContainer({
25950
25954
  RoundPageContainer,
25951
25955
  {
25952
25956
  module: _chunk4XLDBOSEjs.Modules.Assistant,
25953
- id: _optionalChain([ctx, 'access', _715 => _715.assistant, 'optionalAccess', _716 => _716.id]),
25957
+ id: _optionalChain([ctx, 'access', _723 => _723.assistant, 'optionalAccess', _724 => _724.id]),
25954
25958
  fullWidth: true,
25955
25959
  forceHeader: true,
25956
25960
  defaultDetailsOpen: true,
@@ -25978,7 +25982,7 @@ function flattenBlocks(blocks) {
25978
25982
  if (typeof inline === "string") return inline;
25979
25983
  if (!inline || typeof inline !== "object") return "";
25980
25984
  const node = inline;
25981
- if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access', _717 => _717.props, 'optionalAccess', _718 => _718.alias]), () => ( ""));
25985
+ if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access', _725 => _725.props, 'optionalAccess', _726 => _726.alias]), () => ( ""));
25982
25986
  if (typeof node.text === "string") return node.text;
25983
25987
  if (Array.isArray(node.content)) return node.content.map(readInline).join("");
25984
25988
  return "";
@@ -26095,7 +26099,7 @@ function AssistantPageContainer({
26095
26099
  AssistantSidebar,
26096
26100
  {
26097
26101
  threads: ctx.threads,
26098
- activeId: _optionalChain([ctx, 'access', _719 => _719.assistant, 'optionalAccess', _720 => _720.id]),
26102
+ activeId: _optionalChain([ctx, 'access', _727 => _727.assistant, 'optionalAccess', _728 => _728.id]),
26099
26103
  onSelect: ctx.selectThread,
26100
26104
  onNew: ctx.startNew
26101
26105
  }
@@ -26371,14 +26375,14 @@ function ApprovalActionCard({ actionId, summary, onResolved, hiddenRelationshipK
26371
26375
  const presented = _react.useMemo.call(void 0, () => parseOperatorProposal(actionProposal), [actionProposal]);
26372
26376
  const legacy = _react.useMemo.call(void 0, () => presented ? void 0 : parseLegacyProposal(toolArgs), [presented, toolArgs]);
26373
26377
  const isUpdate = toolName === "update_entity";
26374
- const entityType = _nullishCoalesce(_nullishCoalesce(_optionalChain([presented, 'optionalAccess', _721 => _721.type]), () => ( _optionalChain([legacy, 'optionalAccess', _722 => _722.type]))), () => ( ""));
26378
+ const entityType = _nullishCoalesce(_nullishCoalesce(_optionalChain([presented, 'optionalAccess', _729 => _729.type]), () => ( _optionalChain([legacy, 'optionalAccess', _730 => _730.type]))), () => ( ""));
26375
26379
  const loose = t;
26376
26380
  const entityLabel = entityName(loose, entityType);
26377
- const targetLabel = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _723 => _723.target, 'optionalAccess', _724 => _724.label]), () => ( ""));
26381
+ const targetLabel = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _731 => _731.target, 'optionalAccess', _732 => _732.label]), () => ( ""));
26378
26382
  const rows = _react.useMemo.call(void 0, () => {
26379
26383
  const yes = t("features.assistant.approval.proposal.yes");
26380
26384
  const no = t("features.assistant.approval.proposal.no");
26381
- const attributes = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _725 => _725.attributes]), () => ( _optionalChain([legacy, 'optionalAccess', _726 => _726.attributes])));
26385
+ const attributes = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _733 => _733.attributes]), () => ( _optionalChain([legacy, 'optionalAccess', _734 => _734.attributes])));
26382
26386
  const attributeRows = Object.entries(_nullishCoalesce(attributes, () => ( {}))).flatMap(([key, value]) => {
26383
26387
  const text = formatAttribute(value, yes, no);
26384
26388
  return text === void 0 ? [] : [{ key: `attribute:${key}`, label: fieldLabel(loose, entityType, key), value: text }];
@@ -26416,7 +26420,7 @@ function ApprovalActionCard({ actionId, summary, onResolved, hiddenRelationshipK
26416
26420
  try {
26417
26421
  const message = kind === "approve" ? await _chunkPMESKNKLjs.AssistantActionService.approve({ id: actionId }) : await _chunkPMESKNKLjs.AssistantActionService.deny({ id: actionId });
26418
26422
  setStatus(kind === "approve" ? "executed" : "denied");
26419
- if (message) _optionalChain([onResolved, 'optionalCall', _727 => _727(message)]);
26423
+ if (message) _optionalChain([onResolved, 'optionalCall', _735 => _735(message)]);
26420
26424
  } catch (error) {
26421
26425
  console.error(`ApprovalActionCard: failed to ${kind} assistant action ${actionId}`, error);
26422
26426
  setFailed(true);
@@ -26561,10 +26565,10 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
26561
26565
  const dateLocale = _chunkPMESKNKLjs.dateFormatLocale.call(void 0, _chunk4XLDBOSEjs.useI18nLocale.call(void 0, ));
26562
26566
  const generateUrl = usePageUrlGenerator();
26563
26567
  const { loadNotifications } = useNotificationContext();
26564
- const archived = _optionalChain([params, 'access', _728 => _728.context, 'optionalAccess', _729 => _729.archived]) === true;
26568
+ const archived = _optionalChain([params, 'access', _736 => _736.context, 'optionalAccess', _737 => _737.archived]) === true;
26565
26569
  const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
26566
26570
  await _chunkPMESKNKLjs.NotificationService.archive({ id: notification.id });
26567
- _optionalChain([params, 'access', _730 => _730.dataRetriever, 'optionalAccess', _731 => _731.removeElement, 'call', _732 => _732(notification)]);
26571
+ _optionalChain([params, 'access', _738 => _738.dataRetriever, 'optionalAccess', _739 => _739.removeElement, 'call', _740 => _740(notification)]);
26568
26572
  await loadNotifications();
26569
26573
  }, "archiveNotification");
26570
26574
  const tableData = _react.useMemo.call(void 0, () => {
@@ -26603,7 +26607,7 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
26603
26607
  const data = generateNotificationData({ notification, generateUrl });
26604
26608
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-foreground text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
26605
26609
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { className: "font-medium", children: chunks }), "strong"),
26606
- actor: _nullishCoalesce(_optionalChain([data, 'access', _733 => _733.actor, 'optionalAccess', _734 => _734.name]), () => ( "")),
26610
+ actor: _nullishCoalesce(_optionalChain([data, 'access', _741 => _741.actor, 'optionalAccess', _742 => _742.name]), () => ( "")),
26607
26611
  title: data.title,
26608
26612
  message: _nullishCoalesce(notification.message, () => ( ""))
26609
26613
  }) });
@@ -26658,7 +26662,7 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
26658
26662
  })
26659
26663
  };
26660
26664
  const columns = _react.useMemo.call(void 0, () => {
26661
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _735 => _735[field], 'optionalCall', _736 => _736()])).filter((col) => col !== void 0);
26665
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _743 => _743[field], 'optionalCall', _744 => _744()])).filter((col) => col !== void 0);
26662
26666
  }, [params.fields, fieldColumnMap, t, generateUrl]);
26663
26667
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
26664
26668
  }, "useNotificationTableStructure");
@@ -27064,11 +27068,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, useReferralStats, "useReferralStats");
27064
27068
  // src/features/referral/components/ReferralWidget.tsx
27065
27069
 
27066
27070
  function inviteErrorCode(err) {
27067
- return _optionalChain([err, 'optionalAccess', _737 => _737.body, 'optionalAccess', _738 => _738.errors, 'optionalAccess', _739 => _739[0], 'optionalAccess', _740 => _740.code]);
27071
+ return _optionalChain([err, 'optionalAccess', _745 => _745.body, 'optionalAccess', _746 => _746.errors, 'optionalAccess', _747 => _747[0], 'optionalAccess', _748 => _748.code]);
27068
27072
  }
27069
27073
  _chunk7QVYU63Ejs.__name.call(void 0, inviteErrorCode, "inviteErrorCode");
27070
27074
  async function copyToClipboard(text) {
27071
- if (_optionalChain([navigator, 'access', _741 => _741.clipboard, 'optionalAccess', _742 => _742.writeText])) {
27075
+ if (_optionalChain([navigator, 'access', _749 => _749.clipboard, 'optionalAccess', _750 => _750.writeText])) {
27072
27076
  try {
27073
27077
  await navigator.clipboard.writeText(text);
27074
27078
  return true;
@@ -27131,7 +27135,7 @@ function ReferralWidget({
27131
27135
  const linkInputRef = _react.useRef.call(void 0, null);
27132
27136
  const config = _chunkDJXSCARGjs.getReferralConfig.call(void 0, );
27133
27137
  const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
27134
- const referralUrl = _optionalChain([stats, 'optionalAccess', _743 => _743.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
27138
+ const referralUrl = _optionalChain([stats, 'optionalAccess', _751 => _751.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
27135
27139
  if (!_chunkDJXSCARGjs.isReferralEnabled.call(void 0, )) {
27136
27140
  return null;
27137
27141
  }
@@ -27141,7 +27145,7 @@ function ReferralWidget({
27141
27145
  if (success) {
27142
27146
  setCopied(true);
27143
27147
  _chunkPMESKNKLjs.showToast.call(void 0, text.copiedMessage);
27144
- _optionalChain([onLinkCopied, 'optionalCall', _744 => _744()]);
27148
+ _optionalChain([onLinkCopied, 'optionalCall', _752 => _752()]);
27145
27149
  setTimeout(() => setCopied(false), 2e3);
27146
27150
  } else {
27147
27151
  _chunkPMESKNKLjs.showError.call(void 0, text.copyError);
@@ -27155,14 +27159,14 @@ function ReferralWidget({
27155
27159
  try {
27156
27160
  await sendInvite(email);
27157
27161
  _chunkPMESKNKLjs.showToast.call(void 0, text.inviteSent);
27158
- _optionalChain([onInviteSent, 'optionalCall', _745 => _745(email)]);
27162
+ _optionalChain([onInviteSent, 'optionalCall', _753 => _753(email)]);
27159
27163
  setEmail("");
27160
27164
  } catch (err) {
27161
27165
  const code = inviteErrorCode(err);
27162
27166
  _chunkPMESKNKLjs.showError.call(void 0,
27163
27167
  code === "REFERRAL_ALREADY_INVITED" ? text.alreadyInvited : code === "REFERRAL_ALREADY_REGISTERED" ? text.alreadyRegistered : text.inviteError
27164
27168
  );
27165
- _optionalChain([onInviteError, 'optionalCall', _746 => _746(err instanceof Error ? err : new Error(text.inviteError))]);
27169
+ _optionalChain([onInviteError, 'optionalCall', _754 => _754(err instanceof Error ? err : new Error(text.inviteError))]);
27166
27170
  }
27167
27171
  }, [
27168
27172
  email,
@@ -27302,7 +27306,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ReferralDialog, "ReferralDialog");
27302
27306
 
27303
27307
 
27304
27308
  function createUsageFormatters(locale, 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));
27309
+ const symbol = _nullishCoalesce(_optionalChain([new Intl.NumberFormat(locale, { style: "currency", currency, currencyDisplay: "narrowSymbol" }), 'access', _755 => _755.formatToParts, 'call', _756 => _756(0), 'access', _757 => _757.find, 'call', _758 => _758((part) => part.type === "currency"), 'optionalAccess', _759 => _759.value]), () => ( currency));
27306
27310
  const decimal = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (value, decimals) => value.toLocaleString(locale, { minimumFractionDigits: decimals, maximumFractionDigits: decimals }), "decimal");
27307
27311
  const dayFormat = new Intl.DateTimeFormat(locale, { day: "numeric", month: "short", timeZone: "UTC" });
27308
27312
  const monthFormat = new Intl.DateTimeFormat(locale, { month: "short", year: "numeric", timeZone: "UTC" });
@@ -27416,7 +27420,7 @@ var useReferralAdminReferralTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__
27416
27420
  })
27417
27421
  };
27418
27422
  const columns = _react.useMemo.call(void 0, () => {
27419
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _752 => _752[field], 'optionalCall', _753 => _753()])).filter((col) => col !== void 0);
27423
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _760 => _760[field], 'optionalCall', _761 => _761()])).filter((col) => col !== void 0);
27420
27424
  }, [params.fields, fieldColumnMap, t, decimal]);
27421
27425
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
27422
27426
  }, "useReferralAdminReferralTableStructure");
@@ -27450,7 +27454,7 @@ var useReferralAdminReferrerTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__
27450
27454
  });
27451
27455
  }, [params.data]);
27452
27456
  const sortableHeader = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (sort, label) => () => {
27453
- const active = _optionalChain([context, 'optionalAccess', _754 => _754.sort]) === sort;
27457
+ const active = _optionalChain([context, 'optionalAccess', _762 => _762.sort]) === sort;
27454
27458
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
27455
27459
  Button,
27456
27460
  {
@@ -27461,7 +27465,7 @@ var useReferralAdminReferrerTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__
27461
27465
  title: t("referral.admin.referrers.sortBy"),
27462
27466
  "aria-sort": active ? "descending" : void 0,
27463
27467
  "data-testid": active ? "referrals-referrers-sort" : void 0,
27464
- onClick: () => _optionalChain([context, 'optionalAccess', _755 => _755.onSort, 'call', _756 => _756(sort)]),
27468
+ onClick: () => _optionalChain([context, 'optionalAccess', _763 => _763.onSort, 'call', _764 => _764(sort)]),
27465
27469
  children: label
27466
27470
  }
27467
27471
  );
@@ -27573,8 +27577,8 @@ var useReferralAdminReferrerTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__
27573
27577
  })
27574
27578
  };
27575
27579
  const columns = _react.useMemo.call(void 0, () => {
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])]);
27580
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _765 => _765[field], 'optionalCall', _766 => _766()])).filter((col) => col !== void 0);
27581
+ }, [params.fields, fieldColumnMap, t, decimal, _optionalChain([context, 'optionalAccess', _767 => _767.sort])]);
27578
27582
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
27579
27583
  }, "useReferralAdminReferrerTableStructure");
27580
27584
  registerTableGenerator("referrals/administration/referrers", useReferralAdminReferrerTableStructure);
@@ -27623,10 +27627,10 @@ function ReferralsAdminFunnel({ summary }) {
27623
27627
  const { decimal } = useUsageFormatters();
27624
27628
  const current = summary.find((row) => row.window === "current");
27625
27629
  const steps = [
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)) }
27630
+ { label: t("referral.admin.tiles.visits"), value: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _768 => _768.visits]), () => ( 0)) },
27631
+ { label: t("referral.admin.tiles.invites"), value: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _769 => _769.invitesSent]), () => ( 0)) },
27632
+ { label: t("referral.admin.tiles.signups"), value: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _770 => _770.signups]), () => ( 0)) },
27633
+ { label: t("referral.admin.tiles.paying"), value: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _771 => _771.paying]), () => ( 0)) }
27630
27634
  ];
27631
27635
  const max = Math.max(...steps.map((step) => step.value), 0);
27632
27636
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { "data-testid": "referrals-funnel", className: "grid gap-2", children: [
@@ -28591,7 +28595,7 @@ function OAuthClientList({
28591
28595
  OAuthClientCard,
28592
28596
  {
28593
28597
  client,
28594
- onClick: () => _optionalChain([onClientClick, 'optionalCall', _764 => _764(client)]),
28598
+ onClick: () => _optionalChain([onClientClick, 'optionalCall', _772 => _772(client)]),
28595
28599
  onEdit: onEditClick ? () => onEditClick(client) : void 0,
28596
28600
  onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
28597
28601
  },
@@ -28616,11 +28620,11 @@ function OAuthClientForm({
28616
28620
  const t = _nextintl.useTranslations.call(void 0, );
28617
28621
  const isEditMode = !!client;
28618
28622
  const [formState, setFormState] = _react.useState.call(void 0, {
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 : [""],
28623
+ name: _optionalChain([client, 'optionalAccess', _773 => _773.name]) || "",
28624
+ description: _optionalChain([client, 'optionalAccess', _774 => _774.description]) || "",
28625
+ redirectUris: _optionalChain([client, 'optionalAccess', _775 => _775.redirectUris, 'optionalAccess', _776 => _776.length]) ? client.redirectUris : [""],
28622
28626
  allowedScopes: client ? client.allowedScopes || [] : defaultScopes,
28623
- isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _769 => _769.isConfidential]), () => ( true))
28627
+ isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _777 => _777.isConfidential]), () => ( true))
28624
28628
  });
28625
28629
  const [errors, setErrors] = _react.useState.call(void 0, {});
28626
28630
  const validate = _react.useCallback.call(void 0, () => {
@@ -29030,7 +29034,7 @@ function OAuthConsentScreen({
29030
29034
  if (error || !clientInfo) {
29031
29035
  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: [
29032
29036
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
29033
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _770 => _770.message]) || t("oauth.consent.invalid_request") })
29037
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _778 => _778.message]) || t("oauth.consent.invalid_request") })
29034
29038
  ] }) }) }) });
29035
29039
  }
29036
29040
  const { client, scopes } = clientInfo;
@@ -29253,7 +29257,7 @@ function WaitlistForm({ onSuccess }) {
29253
29257
  source: _chunkDJXSCARGjs.getSignupSource.call(void 0, )
29254
29258
  });
29255
29259
  setIsSuccess(true);
29256
- _optionalChain([onSuccess, 'optionalCall', _771 => _771()]);
29260
+ _optionalChain([onSuccess, 'optionalCall', _779 => _779()]);
29257
29261
  } catch (e) {
29258
29262
  errorToast({ title: t("common.errors.error"), error: e });
29259
29263
  } finally {
@@ -29464,11 +29468,11 @@ function WaitlistList({ fullWidth } = {}) {
29464
29468
  /* @__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" : ""}` }) })
29465
29469
  ] });
29466
29470
  const totals = [
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]) }
29471
+ { key: "total", label: t("waitlist.admin.total"), value: _optionalChain([stats, 'optionalAccess', _780 => _780.total]) },
29472
+ { key: "pending", label: t("waitlist.admin.status.pending"), value: _optionalChain([stats, 'optionalAccess', _781 => _781.pending]) },
29473
+ { key: "confirmed", label: t("waitlist.admin.status.confirmed"), value: _optionalChain([stats, 'optionalAccess', _782 => _782.confirmed]) },
29474
+ { key: "invited", label: t("waitlist.admin.status.invited"), value: _optionalChain([stats, 'optionalAccess', _783 => _783.invited]) },
29475
+ { key: "registered", label: t("waitlist.admin.status.registered"), value: _optionalChain([stats, 'optionalAccess', _784 => _784.registered]) }
29472
29476
  ];
29473
29477
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4", children: [
29474
29478
  /* @__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: [
@@ -29823,7 +29827,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
29823
29827
  ] }),
29824
29828
  roleIds.map((roleId) => {
29825
29829
  const roleTokens = block[roleId];
29826
- const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _777 => _777[roleId]]), () => ( roleId));
29830
+ const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _785 => _785[roleId]]), () => ( roleId));
29827
29831
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
29828
29832
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
29829
29833
  _chunkDJXSCARGjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -29860,7 +29864,7 @@ function RbacContainer() {
29860
29864
  }, []);
29861
29865
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
29862
29866
  if (!matrix) return [];
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))));
29867
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _786 => _786[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _787 => _787[b]]), () => ( b))));
29864
29868
  }, [matrix, moduleNames]);
29865
29869
  const roleIds = _react.useMemo.call(void 0, () => {
29866
29870
  if (roleNames) {
@@ -29923,7 +29927,7 @@ function RbacContainer() {
29923
29927
  id === selectedModuleId && "bg-muted font-medium text-foreground",
29924
29928
  id !== selectedModuleId && "text-muted-foreground"
29925
29929
  ),
29926
- children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _780 => _780[id]]), () => ( id))
29930
+ children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _788 => _788[id]]), () => ( id))
29927
29931
  }
29928
29932
  ) }, id)) }) }),
29929
29933
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: selectedModuleId && selectedBlock ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -29931,7 +29935,7 @@ function RbacContainer() {
29931
29935
  {
29932
29936
  moduleId: selectedModuleId,
29933
29937
  block: selectedBlock,
29934
- moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _781 => _781[selectedModuleId]]), () => ( selectedModuleId)),
29938
+ moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _789 => _789[selectedModuleId]]), () => ( selectedModuleId)),
29935
29939
  roleIds,
29936
29940
  roleNames,
29937
29941
  onOpenPicker: openPicker
@@ -29942,12 +29946,12 @@ function RbacContainer() {
29942
29946
  RbacPermissionPicker,
29943
29947
  {
29944
29948
  open: !!activePicker,
29945
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _782 => _782.anchor]), () => ( null)),
29949
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _790 => _790.anchor]), () => ( null)),
29946
29950
  value: activeValue,
29947
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _783 => _783.isRoleColumn]), () => ( false)),
29951
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _791 => _791.isRoleColumn]), () => ( false)),
29948
29952
  knownSegments: activeSegments,
29949
29953
  onSetValue: handleSetValue,
29950
- onClear: _optionalChain([activePicker, 'optionalAccess', _784 => _784.isRoleColumn]) ? handleClear : void 0,
29954
+ onClear: _optionalChain([activePicker, 'optionalAccess', _792 => _792.isRoleColumn]) ? handleClear : void 0,
29951
29955
  onClose: closePicker
29952
29956
  }
29953
29957
  )
@@ -30014,7 +30018,7 @@ function RbacByRoleContainer() {
30014
30018
  }, [roleNames]);
30015
30019
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
30016
30020
  if (!matrix) return [];
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))));
30021
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _793 => _793[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _794 => _794[b]]), () => ( b))));
30018
30022
  }, [matrix, moduleNames]);
30019
30023
  _react.useEffect.call(void 0, () => {
30020
30024
  if (!selectedRoleId && sortedRoleIds.length > 0) {
@@ -30063,7 +30067,7 @@ function RbacByRoleContainer() {
30063
30067
  id === selectedRoleId && "bg-muted font-medium text-foreground",
30064
30068
  id !== selectedRoleId && "text-muted-foreground"
30065
30069
  ),
30066
- children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _787 => _787[id]]), () => ( id))
30070
+ children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _795 => _795[id]]), () => ( id))
30067
30071
  }
30068
30072
  ) }, id)) }) }),
30069
30073
  /* @__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: [
@@ -30083,7 +30087,7 @@ function RbacByRoleContainer() {
30083
30087
  if (!block) return null;
30084
30088
  const defaultTokens = _nullishCoalesce(block.default, () => ( []));
30085
30089
  const roleTokens = block[selectedRoleId];
30086
- const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _788 => _788[moduleId]]), () => ( moduleId));
30090
+ const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _796 => _796[moduleId]]), () => ( moduleId));
30087
30091
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
30088
30092
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
30089
30093
  "td",
@@ -30098,7 +30102,7 @@ function RbacByRoleContainer() {
30098
30102
  _chunkDJXSCARGjs.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))
30099
30103
  ] }),
30100
30104
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
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)) }),
30105
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _797 => _797[selectedRoleId]]), () => ( selectedRoleId)) }),
30102
30106
  _chunkDJXSCARGjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
30103
30107
  CellButton3,
30104
30108
  {
@@ -30119,12 +30123,12 @@ function RbacByRoleContainer() {
30119
30123
  RbacPermissionPicker,
30120
30124
  {
30121
30125
  open: !!activePicker,
30122
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _790 => _790.anchor]), () => ( null)),
30126
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _798 => _798.anchor]), () => ( null)),
30123
30127
  value: activeValue,
30124
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _791 => _791.isRoleColumn]), () => ( false)),
30128
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _799 => _799.isRoleColumn]), () => ( false)),
30125
30129
  knownSegments: activeSegments,
30126
30130
  onSetValue: handleSetValue,
30127
- onClear: _optionalChain([activePicker, 'optionalAccess', _792 => _792.isRoleColumn]) ? handleClear : void 0,
30131
+ onClear: _optionalChain([activePicker, 'optionalAccess', _800 => _800.isRoleColumn]) ? handleClear : void 0,
30128
30132
  onClose: closePicker
30129
30133
  }
30130
30134
  )
@@ -30784,4 +30788,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
30784
30788
 
30785
30789
 
30786
30790
  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;
30787
- //# sourceMappingURL=chunk-GSRTVIIK.js.map
30791
+ //# sourceMappingURL=chunk-RT7XFGIN.js.map