@carlonicora/nextjs-jsonapi 1.126.0 → 1.128.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 (31) hide show
  1. package/dist/{BlockNoteEditor-ZW6OHTBH.js → BlockNoteEditor-LAH2RUGP.js} +9 -9
  2. package/dist/{BlockNoteEditor-ZW6OHTBH.js.map → BlockNoteEditor-LAH2RUGP.js.map} +1 -1
  3. package/dist/{BlockNoteEditor-SONASOXF.mjs → BlockNoteEditor-LJY3X6F6.mjs} +2 -2
  4. package/dist/billing/index.js +299 -299
  5. package/dist/billing/index.mjs +1 -1
  6. package/dist/{chunk-DUPLW72K.mjs → chunk-PJGAR5F3.mjs} +162 -134
  7. package/dist/chunk-PJGAR5F3.mjs.map +1 -0
  8. package/dist/{chunk-CI4D76N6.js → chunk-QVRFFC2Q.js} +152 -124
  9. package/dist/chunk-QVRFFC2Q.js.map +1 -0
  10. package/dist/client/index.js +2 -2
  11. package/dist/client/index.mjs +1 -1
  12. package/dist/components/index.d.mts +9 -1
  13. package/dist/components/index.d.ts +9 -1
  14. package/dist/components/index.js +2 -2
  15. package/dist/components/index.mjs +1 -1
  16. package/dist/contexts/index.js +2 -2
  17. package/dist/contexts/index.mjs +1 -1
  18. package/dist/features/help/index.js +30 -30
  19. package/dist/features/help/index.mjs +1 -1
  20. package/package.json +1 -1
  21. package/src/components/containers/RoundPageContainer.tsx +28 -4
  22. package/src/components/containers/RoundPageContainerTitle.tsx +9 -3
  23. package/src/components/tables/ContentListTable.tsx +16 -4
  24. package/src/components/tables/__tests__/ContentListTable.test.tsx +38 -2
  25. package/src/features/company/components/lists/CompaniesList.tsx +1 -1
  26. package/src/features/content/components/lists/ContentsListById.tsx +1 -1
  27. package/src/features/content/components/lists/RelevantContentsList.tsx +1 -1
  28. package/src/features/user/components/lists/AdminUsersList.tsx +1 -1
  29. package/dist/chunk-CI4D76N6.js.map +0 -1
  30. package/dist/chunk-DUPLW72K.mjs.map +0 -1
  31. /package/dist/{BlockNoteEditor-SONASOXF.mjs.map → BlockNoteEditor-LJY3X6F6.mjs.map} +0 -0
@@ -9972,7 +9972,7 @@ FileInput.displayName = "FileInput";
9972
9972
  var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
9973
9973
 
9974
9974
 
9975
- var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-ZW6OHTBH.js"))), {
9975
+ var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-LAH2RUGP.js"))), {
9976
9976
  ssr: false
9977
9977
  });
9978
9978
  var BlockNoteEditorContainer = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
@@ -11670,7 +11670,7 @@ function AdminUsersListInternal({ company }) {
11670
11670
  {
11671
11671
  title: t(`entities.users`, { count: 2 }),
11672
11672
  data,
11673
- fields: ["name" /* name */, "email" /* email */, "createdAt" /* createdAt */],
11673
+ fields: ["name" /* name */, "email" /* email */],
11674
11674
  tableGeneratorType: _chunkPQBKPWBYjs.Modules.User,
11675
11675
  functions: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserEditor, { propagateChanges: data.refresh, adminCreated: true })
11676
11676
  }
@@ -12552,7 +12552,7 @@ function CompaniesList() {
12552
12552
  ContentListTable,
12553
12553
  {
12554
12554
  data,
12555
- fields: ["name" /* name */, "createdAt" /* createdAt */],
12555
+ fields: ["name" /* name */],
12556
12556
  tableGeneratorType: _chunkPQBKPWBYjs.Modules.Company,
12557
12557
  functions,
12558
12558
  title: t(`entities.companies`, { count: 2 })
@@ -14565,16 +14565,20 @@ function RoundPageContainerTitle({
14565
14565
  }) {
14566
14566
  const { title } = useSharedContext();
14567
14567
  const isMobile = _chunkPQBKPWBYjs.useIsMobile.call(void 0, );
14568
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkPQBKPWBYjs.cn.call(void 0, `flex w-full flex-row items-center border-b p-4`, isMobile ? `justify-end` : `justify-between`), children: [
14569
- !isMobile && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full gap-x-4", children: [
14568
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkPQBKPWBYjs.cn.call(void 0, `flex w-full flex-row items-center gap-x-2 border-b p-4 justify-between`), children: [
14569
+ !isMobile ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full gap-x-4", children: [
14570
14570
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground flex items-center gap-x-2 text-lg font-light whitespace-nowrap", children: [
14571
14571
  title.titleActions,
14572
14572
  module && module.icon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, module.icon, { className: "text-primary h-6 w-6" }) : title.icon,
14573
14573
  title.type
14574
14574
  ] }),
14575
14575
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkPQBKPWBYjs.cn.call(void 0, "text-primary w-full text-xl font-semibold"), children: title.element })
14576
+ ] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground flex min-w-0 items-center gap-x-2 text-base font-light", children: [
14577
+ title.titleActions,
14578
+ module && module.icon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, module.icon, { className: "text-primary h-5 w-5 shrink-0" }) : title.icon,
14579
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: title.type })
14576
14580
  ] }),
14577
- (title.functions || details) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-x-2", children: [
14581
+ (title.functions || details) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-x-2", children: [
14578
14582
  title.functions,
14579
14583
  details && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
14580
14584
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -14618,7 +14622,8 @@ function RoundPageContainer({
14618
14622
  fullWidth,
14619
14623
  forceHeader,
14620
14624
  header,
14621
- layout: layout2 = "tabs"
14625
+ layout: layout2 = "tabs",
14626
+ onSectionChange
14622
14627
  }) {
14623
14628
  const headerChildren = useHeaderChildren();
14624
14629
  const headerLeftContent = useHeaderLeftContent();
@@ -14652,11 +14657,16 @@ function RoundPageContainer({
14652
14657
  const handleTabChange = _react.useCallback.call(void 0,
14653
14658
  (key) => {
14654
14659
  setActiveTab(key);
14655
- if (module && id) rewriteUrl({ page: module, id, additionalParameters: { section: key } });
14660
+ if (module && id) {
14661
+ rewriteUrl({ page: module, id, additionalParameters: { section: key } });
14662
+ } else {
14663
+ rewriteUrl({ page: window.location.pathname, additionalParameters: { section: key } });
14664
+ }
14665
+ _optionalChain([onSectionChange, 'optionalCall', _408 => _408(key)]);
14656
14666
  },
14657
- [module, id, rewriteUrl]
14667
+ [module, id, rewriteUrl, onSectionChange]
14658
14668
  );
14659
- const activeFillHeight = _optionalChain([tabs, 'optionalAccess', _408 => _408.find, 'call', _409 => _409((t) => tabValue(t) === activeTab), 'optionalAccess', _410 => _410.fillHeight]) === true;
14669
+ const activeFillHeight = _optionalChain([tabs, 'optionalAccess', _409 => _409.find, 'call', _410 => _410((t) => tabValue(t) === activeTab), 'optionalAccess', _411 => _411.fillHeight]) === true;
14660
14670
  const { ungrouped, groups } = _react.useMemo.call(void 0, () => partitionTabs(_nullishCoalesce(tabs, () => ( []))), [tabs]);
14661
14671
  const isReady = mounted && isMobile !== void 0;
14662
14672
  if (!isReady) {
@@ -14688,8 +14698,8 @@ function RoundPageContainer({
14688
14698
  {
14689
14699
  value: activeTab,
14690
14700
  onValueChange: handleTabChange,
14691
- orientation: "vertical",
14692
- className: "flex h-full min-w-0 grow overflow-hidden",
14701
+ orientation: "horizontal",
14702
+ className: "flex h-full min-w-0 grow overflow-hidden data-[orientation=horizontal]:flex-row",
14693
14703
  children: [
14694
14704
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14695
14705
  "aside",
@@ -14946,14 +14956,14 @@ function BlockNoteEditorMentionHoverCard({
14946
14956
  const entityType = target.dataset.mentionType;
14947
14957
  const alias = target.dataset.mentionAlias;
14948
14958
  setHovered((prev) => {
14949
- if (_optionalChain([prev, 'optionalAccess', _411 => _411.id]) === id && _optionalChain([prev, 'optionalAccess', _412 => _412.element]) === target) return prev;
14959
+ if (_optionalChain([prev, 'optionalAccess', _412 => _412.id]) === id && _optionalChain([prev, 'optionalAccess', _413 => _413.element]) === target) return prev;
14950
14960
  return { id, entityType, alias, element: target };
14951
14961
  });
14952
14962
  }, "handleMouseOver");
14953
14963
  const handleMouseOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
14954
14964
  const target = e.target.closest("[data-mention-id]");
14955
14965
  if (!target) return;
14956
- const related = _optionalChain([e, 'access', _413 => _413.relatedTarget, 'optionalAccess', _414 => _414.closest, 'call', _415 => _415("[data-mention-id]")]);
14966
+ const related = _optionalChain([e, 'access', _414 => _414.relatedTarget, 'optionalAccess', _415 => _415.closest, 'call', _416 => _416("[data-mention-id]")]);
14957
14967
  if (related) return;
14958
14968
  scheduleClose();
14959
14969
  }, "handleMouseOut");
@@ -14967,7 +14977,7 @@ function BlockNoteEditorMentionHoverCard({
14967
14977
  }, [containerRef, mentionResolveFn, cancelClose, scheduleClose]);
14968
14978
  if (!hovered || !mentionResolveFn) return null;
14969
14979
  const resolved = mentionResolveFn(hovered.id, hovered.entityType, hovered.alias);
14970
- if (!_optionalChain([resolved, 'optionalAccess', _416 => _416.HoverContent])) return null;
14980
+ if (!_optionalChain([resolved, 'optionalAccess', _417 => _417.HoverContent])) return null;
14971
14981
  const ContentComponent = resolved.HoverContent;
14972
14982
  const rect = hovered.element.getBoundingClientRect();
14973
14983
  return _reactdom.createPortal.call(void 0,
@@ -15010,28 +15020,28 @@ var parseMentionElement = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
15010
15020
  }, "parseMentionElement");
15011
15021
  var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn, disableMention, nameResolver) => {
15012
15022
  const MentionExternalHTML = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
15013
- const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _417 => _417(props.id, props.entityType, props.alias)]), () => ( props.alias));
15023
+ const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _418 => _418(props.id, props.entityType, props.alias)]), () => ( props.alias));
15014
15024
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "data-mention-id": props.id, "data-mention-type": props.entityType, "data-mention-alias": props.alias, children: [
15015
15025
  "@",
15016
15026
  displayName
15017
15027
  ] });
15018
15028
  }, "MentionExternalHTML");
15019
15029
  const Mention = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function Mention2(props) {
15020
- const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _418 => _418(props.id, props.entityType, props.alias)]), () => ( props.alias));
15030
+ const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _419 => _419(props.id, props.entityType, props.alias)]), () => ( props.alias));
15021
15031
  if (disableMention) {
15022
- const resolved2 = _optionalChain([resolveFn, 'optionalCall', _419 => _419(props.id, props.entityType, displayName)]);
15023
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _420 => _420.url]), () => ( "#")), className: "text-primary", children: [
15032
+ const resolved2 = _optionalChain([resolveFn, 'optionalCall', _420 => _420(props.id, props.entityType, displayName)]);
15033
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _421 => _421.url]), () => ( "#")), className: "text-primary", children: [
15024
15034
  "@",
15025
15035
  displayName
15026
15036
  ] });
15027
15037
  }
15028
- const resolved = _optionalChain([resolveFn, 'optionalCall', _421 => _421(props.id, props.entityType, displayName)]);
15029
- if (_optionalChain([resolved, 'optionalAccess', _422 => _422.Inline])) {
15038
+ const resolved = _optionalChain([resolveFn, 'optionalCall', _422 => _422(props.id, props.entityType, displayName)]);
15039
+ if (_optionalChain([resolved, 'optionalAccess', _423 => _423.Inline])) {
15030
15040
  const Custom = resolved.Inline;
15031
15041
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props, alias: displayName });
15032
15042
  }
15033
- const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _423 => _423.url]), () => ( "#"));
15034
- const handleClick = _optionalChain([resolved, 'optionalAccess', _424 => _424.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
15043
+ const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _424 => _424.url]), () => ( "#"));
15044
+ const handleClick = _optionalChain([resolved, 'optionalAccess', _425 => _425.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
15035
15045
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
15036
15046
  _link2.default,
15037
15047
  {
@@ -15137,7 +15147,7 @@ function BlockNoteEditorMentionSuggestionMenu({
15137
15147
  if (!suggestionMenuComponent) return void 0;
15138
15148
  const Component2 = suggestionMenuComponent;
15139
15149
  const Wrapped = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
15140
- const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _425 => _425.items, 'access', _426 => _426[0], 'optionalAccess', _427 => _427.title]) === KEEP_OPEN_SENTINEL_TITLE;
15150
+ const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _426 => _426.items, 'access', _427 => _427[0], 'optionalAccess', _428 => _428.title]) === KEEP_OPEN_SENTINEL_TITLE;
15141
15151
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15142
15152
  Component2,
15143
15153
  {
@@ -15146,7 +15156,7 @@ function BlockNoteEditorMentionSuggestionMenu({
15146
15156
  selectedIndex: isSentinelOnly ? void 0 : props.selectedIndex,
15147
15157
  onItemClick: (item) => {
15148
15158
  if (item.title === KEEP_OPEN_SENTINEL_TITLE) return;
15149
- _optionalChain([props, 'access', _428 => _428.onItemClick, 'optionalCall', _429 => _429(item)]);
15159
+ _optionalChain([props, 'access', _429 => _429.onItemClick, 'optionalCall', _430 => _430(item)]);
15150
15160
  }
15151
15161
  }
15152
15162
  );
@@ -15340,10 +15350,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
15340
15350
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15341
15351
  Checkbox,
15342
15352
  {
15343
- checked: _optionalChain([params, 'access', _430 => _430.checkedIds, 'optionalAccess', _431 => _431.includes, 'call', _432 => _432(row.getValue(params.name))]) || false,
15353
+ checked: _optionalChain([params, 'access', _431 => _431.checkedIds, 'optionalAccess', _432 => _432.includes, 'call', _433 => _433(row.getValue(params.name))]) || false,
15344
15354
  onCheckedChange: (value) => {
15345
15355
  row.toggleSelected(!!value);
15346
- _optionalChain([params, 'access', _433 => _433.toggleId, 'optionalCall', _434 => _434(row.getValue(params.name))]);
15356
+ _optionalChain([params, 'access', _434 => _434.toggleId, 'optionalCall', _435 => _435(row.getValue(params.name))]);
15347
15357
  },
15348
15358
  "aria-label": "Select row"
15349
15359
  }
@@ -15402,7 +15412,7 @@ function useJsonApiGet(params) {
15402
15412
  const [response, setResponse] = _react.useState.call(void 0, null);
15403
15413
  const isMounted = _react.useRef.call(void 0, true);
15404
15414
  const fetchData = _react.useCallback.call(void 0, async () => {
15405
- if (_optionalChain([params, 'access', _435 => _435.options, 'optionalAccess', _436 => _436.enabled]) === false) return;
15415
+ if (_optionalChain([params, 'access', _436 => _436.options, 'optionalAccess', _437 => _437.enabled]) === false) return;
15406
15416
  setLoading(true);
15407
15417
  setError(null);
15408
15418
  try {
@@ -15429,9 +15439,9 @@ function useJsonApiGet(params) {
15429
15439
  setLoading(false);
15430
15440
  }
15431
15441
  }
15432
- }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _437 => _437.options, 'optionalAccess', _438 => _438.enabled])]);
15442
+ }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _438 => _438.options, 'optionalAccess', _439 => _439.enabled])]);
15433
15443
  const fetchNextPage = _react.useCallback.call(void 0, async () => {
15434
- if (!_optionalChain([response, 'optionalAccess', _439 => _439.nextPage])) return;
15444
+ if (!_optionalChain([response, 'optionalAccess', _440 => _440.nextPage])) return;
15435
15445
  setLoading(true);
15436
15446
  try {
15437
15447
  const nextResponse = await response.nextPage();
@@ -15452,7 +15462,7 @@ function useJsonApiGet(params) {
15452
15462
  }
15453
15463
  }, [response]);
15454
15464
  const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
15455
- if (!_optionalChain([response, 'optionalAccess', _440 => _440.prevPage])) return;
15465
+ if (!_optionalChain([response, 'optionalAccess', _441 => _441.prevPage])) return;
15456
15466
  setLoading(true);
15457
15467
  try {
15458
15468
  const prevResponse = await response.prevPage();
@@ -15478,15 +15488,15 @@ function useJsonApiGet(params) {
15478
15488
  return () => {
15479
15489
  isMounted.current = false;
15480
15490
  };
15481
- }, [fetchData, ..._optionalChain([params, 'access', _441 => _441.options, 'optionalAccess', _442 => _442.deps]) || []]);
15491
+ }, [fetchData, ..._optionalChain([params, 'access', _442 => _442.options, 'optionalAccess', _443 => _443.deps]) || []]);
15482
15492
  return {
15483
15493
  data,
15484
15494
  loading,
15485
15495
  error,
15486
15496
  response,
15487
15497
  refetch: fetchData,
15488
- hasNextPage: !!_optionalChain([response, 'optionalAccess', _443 => _443.next]),
15489
- hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _444 => _444.prev]),
15498
+ hasNextPage: !!_optionalChain([response, 'optionalAccess', _444 => _444.next]),
15499
+ hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _445 => _445.prev]),
15490
15500
  fetchNextPage,
15491
15501
  fetchPreviousPage
15492
15502
  };
@@ -15564,17 +15574,17 @@ function useJsonApiMutation(config) {
15564
15574
  if (apiResponse.ok) {
15565
15575
  const resultData = apiResponse.data;
15566
15576
  setData(resultData);
15567
- _optionalChain([config, 'access', _445 => _445.onSuccess, 'optionalCall', _446 => _446(resultData)]);
15577
+ _optionalChain([config, 'access', _446 => _446.onSuccess, 'optionalCall', _447 => _447(resultData)]);
15568
15578
  return resultData;
15569
15579
  } else {
15570
15580
  setError(apiResponse.error);
15571
- _optionalChain([config, 'access', _447 => _447.onError, 'optionalCall', _448 => _448(apiResponse.error)]);
15581
+ _optionalChain([config, 'access', _448 => _448.onError, 'optionalCall', _449 => _449(apiResponse.error)]);
15572
15582
  return null;
15573
15583
  }
15574
15584
  } catch (err) {
15575
15585
  const errorMessage = err instanceof Error ? err.message : "Unknown error";
15576
15586
  setError(errorMessage);
15577
- _optionalChain([config, 'access', _449 => _449.onError, 'optionalCall', _450 => _450(errorMessage)]);
15587
+ _optionalChain([config, 'access', _450 => _450.onError, 'optionalCall', _451 => _451(errorMessage)]);
15578
15588
  return null;
15579
15589
  } finally {
15580
15590
  setLoading(false);
@@ -15647,7 +15657,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
15647
15657
  {
15648
15658
  href: hasRole(_chunkJO5BLONKjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
15649
15659
  page: "/administration",
15650
- id: _optionalChain([_chunkPQBKPWBYjs.Modules, 'access', _451 => _451.Company, 'access', _452 => _452.pageUrl, 'optionalAccess', _453 => _453.substring, 'call', _454 => _454(1)]),
15660
+ id: _optionalChain([_chunkPQBKPWBYjs.Modules, 'access', _452 => _452.Company, 'access', _453 => _453.pageUrl, 'optionalAccess', _454 => _454.substring, 'call', _455 => _455(1)]),
15651
15661
  childPage: company.id
15652
15662
  }) : generateUrl({ page: _chunkPQBKPWBYjs.Modules.Company, id: company.id }),
15653
15663
  children: row.getValue("name")
@@ -15663,7 +15673,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
15663
15673
  })
15664
15674
  };
15665
15675
  const columns = _react.useMemo.call(void 0, () => {
15666
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _455 => _455[field], 'optionalCall', _456 => _456()])).filter((col) => col !== void 0);
15676
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _456 => _456[field], 'optionalCall', _457 => _457()])).filter((col) => col !== void 0);
15667
15677
  }, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
15668
15678
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
15669
15679
  }, "useCompanyTableStructure");
@@ -15675,7 +15685,7 @@ var GRACE_DAYS = 3;
15675
15685
  var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
15676
15686
  if (!currentUser || !_chunkJO5BLONKjs.isRolesConfigured.call(void 0, )) return false;
15677
15687
  const adminRoleId = _chunkJO5BLONKjs.getRoleId.call(void 0, ).Administrator;
15678
- return !!_optionalChain([currentUser, 'access', _457 => _457.roles, 'optionalAccess', _458 => _458.some, 'call', _459 => _459((role) => role.id === adminRoleId)]);
15688
+ return !!_optionalChain([currentUser, 'access', _458 => _458.roles, 'optionalAccess', _459 => _459.some, 'call', _460 => _460((role) => role.id === adminRoleId)]);
15679
15689
  }, "isAdministrator");
15680
15690
  function useSubscriptionStatus() {
15681
15691
  const { company, currentUser } = useCurrentUserContext();
@@ -15792,7 +15802,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
15792
15802
  })
15793
15803
  };
15794
15804
  const columns = _react.useMemo.call(void 0, () => {
15795
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _460 => _460[field], 'optionalCall', _461 => _461()])).filter((col) => col !== void 0);
15805
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _461 => _461[field], 'optionalCall', _462 => _462()])).filter((col) => col !== void 0);
15796
15806
  }, [params.fields, fieldColumnMap, t, generateUrl]);
15797
15807
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
15798
15808
  }, "useRoleTableStructure");
@@ -15893,11 +15903,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
15893
15903
  return params.fields.map((field) => {
15894
15904
  const localHandler = fieldColumnMap[field];
15895
15905
  if (localHandler) return localHandler();
15896
- const customHandler = _optionalChain([params, 'access', _462 => _462.context, 'optionalAccess', _463 => _463.customCells, 'optionalAccess', _464 => _464[field]]);
15906
+ const customHandler = _optionalChain([params, 'access', _463 => _463.context, 'optionalAccess', _464 => _464.customCells, 'optionalAccess', _465 => _465[field]]);
15897
15907
  if (customHandler) return customHandler({ t });
15898
15908
  return void 0;
15899
15909
  }).filter((col) => col !== void 0);
15900
- }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _465 => _465.context, 'optionalAccess', _466 => _466.customCells])]);
15910
+ }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _466 => _466.context, 'optionalAccess', _467 => _467.customCells])]);
15901
15911
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
15902
15912
  }, "useContentTableStructure");
15903
15913
 
@@ -16199,6 +16209,7 @@ var _reacttable = require('@tanstack/react-table');
16199
16209
 
16200
16210
 
16201
16211
 
16212
+
16202
16213
  // src/components/tables/ContentTableSearch.tsx
16203
16214
 
16204
16215
 
@@ -16232,7 +16243,7 @@ function ContentTableSearch({ data }) {
16232
16243
  const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
16233
16244
  if (!isExpanded) {
16234
16245
  setIsFocused(true);
16235
- setTimeout(() => _optionalChain([inputRef, 'access', _467 => _467.current, 'optionalAccess', _468 => _468.focus, 'call', _469 => _469()]), 50);
16246
+ setTimeout(() => _optionalChain([inputRef, 'access', _468 => _468.current, 'optionalAccess', _469 => _469.focus, 'call', _470 => _470()]), 50);
16236
16247
  }
16237
16248
  }, "handleSearchIconClick");
16238
16249
  const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
@@ -16306,12 +16317,13 @@ function getGroupKeys(item, field) {
16306
16317
  }
16307
16318
  _chunk7QVYU63Ejs.__name.call(void 0, getGroupKeys, "getGroupKeys");
16308
16319
  var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function ContentListTable2(props) {
16309
- const { data, fields, checkedIds, toggleId, allowSearch, filters: _filters, fullWidth } = props;
16320
+ const { data, fields, checkedIds, toggleId, allowSearch, filters: _filters, fullWidth, onRowClick } = props;
16321
+ const t = _nextintl.useTranslations.call(void 0, );
16310
16322
  const [expanded, setExpanded] = _react.useState.call(void 0,
16311
16323
  props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
16312
16324
  );
16313
16325
  const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
16314
- data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _470 => _470.data]), () => ( EMPTY_ARRAY)),
16326
+ data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _471 => _471.data]), () => ( EMPTY_ARRAY)),
16315
16327
  fields,
16316
16328
  checkedIds,
16317
16329
  toggleId,
@@ -16344,7 +16356,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
16344
16356
  });
16345
16357
  const rowModel = tableData ? table.getRowModel() : null;
16346
16358
  const groupedRows = _react.useMemo.call(void 0, () => {
16347
- if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _471 => _471.rows, 'optionalAccess', _472 => _472.length])) return null;
16359
+ if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _472 => _472.rows, 'optionalAccess', _473 => _473.length])) return null;
16348
16360
  const groupMap = /* @__PURE__ */ new Map();
16349
16361
  for (const row of rowModel.rows) {
16350
16362
  const keys = getGroupKeys(row.original, props.groupBy);
@@ -16400,10 +16412,10 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
16400
16412
  ) }),
16401
16413
  table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
16402
16414
  const meta = header.column.columnDef.meta;
16403
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _473 => _473.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
16415
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _474 => _474.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
16404
16416
  }) }, headerGroup.id))
16405
16417
  ] }),
16406
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _474 => _474.rows, 'optionalAccess', _475 => _475.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React.default.Fragment, { children: [
16418
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _475 => _475.rows, 'optionalAccess', _476 => _476.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React.default.Fragment, { children: [
16407
16419
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
16408
16420
  TableCell,
16409
16421
  {
@@ -16412,14 +16424,30 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
16412
16424
  children: group.groupKey
16413
16425
  }
16414
16426
  ) }),
16415
- group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
16416
- const meta = cell.column.columnDef.meta;
16417
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _476 => _476.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
16418
- }) }, row.id))
16419
- ] }, group.groupKey)) : rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
16420
- const meta = cell.column.columnDef.meta;
16421
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _477 => _477.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
16422
- }) }, row.id)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "h-24 text-center", children: _nullishCoalesce(props.emptyState, () => ( "No results.")) }) }) }),
16427
+ group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
16428
+ TableRow,
16429
+ {
16430
+ onClick: () => _optionalChain([onRowClick, 'optionalCall', _477 => _477(row.original.jsonApiData)]),
16431
+ className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
16432
+ children: row.getVisibleCells().map((cell) => {
16433
+ const meta = cell.column.columnDef.meta;
16434
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _478 => _478.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
16435
+ })
16436
+ },
16437
+ row.id
16438
+ ))
16439
+ ] }, group.groupKey)) : rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
16440
+ TableRow,
16441
+ {
16442
+ onClick: () => _optionalChain([onRowClick, 'optionalCall', _479 => _479(row.original.jsonApiData)]),
16443
+ className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
16444
+ children: row.getVisibleCells().map((cell) => {
16445
+ const meta = cell.column.columnDef.meta;
16446
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _480 => _480.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
16447
+ })
16448
+ },
16449
+ row.id
16450
+ )) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "h-24 text-center", children: _nullishCoalesce(props.emptyState, () => ( (t.has("ui.empty_states.no_results") ? t("ui.empty_states.no_results") : "No results."))) }) }) }),
16423
16451
  showFooter && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableFooter, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "bg-card py-4 text-right", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-end space-x-2", children: [
16424
16452
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
16425
16453
  Button,
@@ -16428,7 +16456,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
16428
16456
  size: "sm",
16429
16457
  onClick: (e) => {
16430
16458
  e.preventDefault();
16431
- _optionalChain([data, 'access', _478 => _478.previous, 'optionalCall', _479 => _479(true)]);
16459
+ _optionalChain([data, 'access', _481 => _481.previous, 'optionalCall', _482 => _482(true)]);
16432
16460
  },
16433
16461
  disabled: !data.previous,
16434
16462
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
@@ -16442,7 +16470,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
16442
16470
  size: "sm",
16443
16471
  onClick: (e) => {
16444
16472
  e.preventDefault();
16445
- _optionalChain([data, 'access', _480 => _480.next, 'optionalCall', _481 => _481(true)]);
16473
+ _optionalChain([data, 'access', _483 => _483.next, 'optionalCall', _484 => _484(true)]);
16446
16474
  },
16447
16475
  disabled: !data.next,
16448
16476
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" })
@@ -16463,7 +16491,7 @@ function ContentListGrid(props) {
16463
16491
  if (!data.next || !sentinelRef.current) return;
16464
16492
  const observer = new IntersectionObserver(
16465
16493
  (entries) => {
16466
- if (_optionalChain([entries, 'access', _482 => _482[0], 'optionalAccess', _483 => _483.isIntersecting])) _optionalChain([data, 'access', _484 => _484.next, 'optionalCall', _485 => _485()]);
16494
+ if (_optionalChain([entries, 'access', _485 => _485[0], 'optionalAccess', _486 => _486.isIntersecting])) _optionalChain([data, 'access', _487 => _487.next, 'optionalCall', _488 => _488()]);
16467
16495
  },
16468
16496
  { threshold: 0.1, rootMargin: "200px" }
16469
16497
  );
@@ -17301,7 +17329,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
17301
17329
  newDigits[index] = digit;
17302
17330
  setDigits(newDigits);
17303
17331
  if (digit && index < 5) {
17304
- _optionalChain([inputRefs, 'access', _486 => _486.current, 'access', _487 => _487[index + 1], 'optionalAccess', _488 => _488.focus, 'call', _489 => _489()]);
17332
+ _optionalChain([inputRefs, 'access', _489 => _489.current, 'access', _490 => _490[index + 1], 'optionalAccess', _491 => _491.focus, 'call', _492 => _492()]);
17305
17333
  }
17306
17334
  const code = newDigits.join("");
17307
17335
  if (code.length === 6 && newDigits.every((d) => d !== "")) {
@@ -17310,7 +17338,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
17310
17338
  }, "handleChange");
17311
17339
  const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
17312
17340
  if (e.key === "Backspace" && !digits[index] && index > 0) {
17313
- _optionalChain([inputRefs, 'access', _490 => _490.current, 'access', _491 => _491[index - 1], 'optionalAccess', _492 => _492.focus, 'call', _493 => _493()]);
17341
+ _optionalChain([inputRefs, 'access', _493 => _493.current, 'access', _494 => _494[index - 1], 'optionalAccess', _495 => _495.focus, 'call', _496 => _496()]);
17314
17342
  }
17315
17343
  }, "handleKeyDown");
17316
17344
  const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
@@ -17319,7 +17347,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
17319
17347
  if (pastedData.length === 6) {
17320
17348
  const newDigits = pastedData.split("");
17321
17349
  setDigits(newDigits);
17322
- _optionalChain([inputRefs, 'access', _494 => _494.current, 'access', _495 => _495[5], 'optionalAccess', _496 => _496.focus, 'call', _497 => _497()]);
17350
+ _optionalChain([inputRefs, 'access', _497 => _497.current, 'access', _498 => _498[5], 'optionalAccess', _499 => _499.focus, 'call', _500 => _500()]);
17323
17351
  onComplete(pastedData);
17324
17352
  }
17325
17353
  }, "handlePaste");
@@ -17530,8 +17558,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
17530
17558
  try {
17531
17559
  const registrationData = await _chunkPQBKPWBYjs.TwoFactorService.getPasskeyRegistrationOptions({
17532
17560
  id: _uuid.v4.call(void 0, ),
17533
- userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _498 => _498.email]), () => ( "")),
17534
- userDisplayName: _optionalChain([currentUser, 'optionalAccess', _499 => _499.name])
17561
+ userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _501 => _501.email]), () => ( "")),
17562
+ userDisplayName: _optionalChain([currentUser, 'optionalAccess', _502 => _502.name])
17535
17563
  });
17536
17564
  const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
17537
17565
  await _chunkPQBKPWBYjs.TwoFactorService.verifyPasskeyRegistration({
@@ -17682,7 +17710,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
17682
17710
  const setup = await _chunkPQBKPWBYjs.TwoFactorService.setupTotp({
17683
17711
  id: _uuid.v4.call(void 0, ),
17684
17712
  name: name.trim(),
17685
- accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _500 => _500.email]), () => ( ""))
17713
+ accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _503 => _503.email]), () => ( ""))
17686
17714
  });
17687
17715
  setQrCodeUri(setup.qrCodeUri);
17688
17716
  setAuthenticatorId(setup.authenticatorId);
@@ -17816,7 +17844,7 @@ function TwoFactorSettings() {
17816
17844
  if (isLoading) {
17817
17845
  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") }) }) });
17818
17846
  }
17819
- const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _501 => _501.isEnabled]), () => ( false));
17847
+ const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _504 => _504.isEnabled]), () => ( false));
17820
17848
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
17821
17849
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
17822
17850
  isEnabled ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ShieldCheck, { className: "h-6 w-6 text-green-600" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ShieldAlert, { className: "h-6 w-6 text-yellow-600" }),
@@ -17854,7 +17882,7 @@ function TwoFactorSettings() {
17854
17882
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
17855
17883
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
17856
17884
  ] }),
17857
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _502 => _502.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
17885
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _505 => _505.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
17858
17886
  ] }) }),
17859
17887
  !isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
17860
17888
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
@@ -18032,9 +18060,9 @@ function AcceptInvitation() {
18032
18060
  });
18033
18061
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
18034
18062
  try {
18035
- if (!_optionalChain([params, 'optionalAccess', _503 => _503.code])) return;
18063
+ if (!_optionalChain([params, 'optionalAccess', _506 => _506.code])) return;
18036
18064
  const payload = {
18037
- code: _optionalChain([params, 'optionalAccess', _504 => _504.code]),
18065
+ code: _optionalChain([params, 'optionalAccess', _507 => _507.code]),
18038
18066
  password: values.password
18039
18067
  };
18040
18068
  await _chunkPQBKPWBYjs.AuthService.acceptInvitation(payload);
@@ -18384,7 +18412,7 @@ function Logout({ storageKeys }) {
18384
18412
  const generateUrl = usePageUrlGenerator();
18385
18413
  _react.useEffect.call(void 0, () => {
18386
18414
  const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
18387
- if (_optionalChain([storageKeys, 'optionalAccess', _505 => _505.length])) {
18415
+ if (_optionalChain([storageKeys, 'optionalAccess', _508 => _508.length])) {
18388
18416
  clearClientStorage(storageKeys);
18389
18417
  }
18390
18418
  await _chunkPQBKPWBYjs.AuthService.logout();
@@ -18407,14 +18435,14 @@ function RefreshUser() {
18407
18435
  setUser(fullUser);
18408
18436
  const token = {
18409
18437
  userId: fullUser.id,
18410
- companyId: _optionalChain([fullUser, 'access', _506 => _506.company, 'optionalAccess', _507 => _507.id]),
18438
+ companyId: _optionalChain([fullUser, 'access', _509 => _509.company, 'optionalAccess', _510 => _510.id]),
18411
18439
  roles: fullUser.roles.map((role) => role.id),
18412
- features: _nullishCoalesce(_optionalChain([fullUser, 'access', _508 => _508.company, 'optionalAccess', _509 => _509.features, 'optionalAccess', _510 => _510.map, 'call', _511 => _511((feature) => feature.id)]), () => ( [])),
18440
+ features: _nullishCoalesce(_optionalChain([fullUser, 'access', _511 => _511.company, 'optionalAccess', _512 => _512.features, 'optionalAccess', _513 => _513.map, 'call', _514 => _514((feature) => feature.id)]), () => ( [])),
18413
18441
  modules: fullUser.modules.map((module) => {
18414
18442
  return { id: module.id, permissions: module.permissions };
18415
18443
  })
18416
18444
  };
18417
- await _optionalChain([_chunkPQBKPWBYjs.getTokenHandler.call(void 0, ), 'optionalAccess', _512 => _512.updateToken, 'call', _513 => _513(token)]);
18445
+ await _optionalChain([_chunkPQBKPWBYjs.getTokenHandler.call(void 0, ), 'optionalAccess', _515 => _515.updateToken, 'call', _516 => _516(token)]);
18418
18446
  _cookiesnext.deleteCookie.call(void 0, "reloadData");
18419
18447
  }
18420
18448
  }, "loadFullUser");
@@ -18478,9 +18506,9 @@ function ResetPassword() {
18478
18506
  });
18479
18507
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
18480
18508
  try {
18481
- if (!_optionalChain([params, 'optionalAccess', _514 => _514.code])) return;
18509
+ if (!_optionalChain([params, 'optionalAccess', _517 => _517.code])) return;
18482
18510
  const payload = {
18483
- code: _optionalChain([params, 'optionalAccess', _515 => _515.code]),
18511
+ code: _optionalChain([params, 'optionalAccess', _518 => _518.code]),
18484
18512
  password: values.password
18485
18513
  };
18486
18514
  await _chunkPQBKPWBYjs.AuthService.resetPassword(payload);
@@ -18745,7 +18773,7 @@ function ContentsListById({ contentIds }) {
18745
18773
  ContentListTable,
18746
18774
  {
18747
18775
  data,
18748
- fields: ["name" /* name */, "authors" /* authors */, "updatedAt" /* updatedAt */],
18776
+ fields: ["name" /* name */, "authors" /* authors */],
18749
18777
  tableGeneratorType: _chunkPQBKPWBYjs.Modules.Content,
18750
18778
  title: t(`common.relevant`)
18751
18779
  }
@@ -18767,7 +18795,7 @@ function RelevantContentsList({ id }) {
18767
18795
  ContentListTable,
18768
18796
  {
18769
18797
  data,
18770
- fields: ["name" /* name */, "authors" /* authors */, "relevance" /* relevance */, "updatedAt" /* updatedAt */],
18798
+ fields: ["name" /* name */, "authors" /* authors */, "relevance" /* relevance */],
18771
18799
  tableGeneratorType: _chunkPQBKPWBYjs.Modules.Content,
18772
18800
  title: t(`common.relevant`)
18773
18801
  }
@@ -18829,7 +18857,7 @@ function extractHeadings(blocks) {
18829
18857
  function processBlocks(blockArray) {
18830
18858
  for (const block of blockArray) {
18831
18859
  if (block.type === "heading") {
18832
- const level = _optionalChain([block, 'access', _516 => _516.props, 'optionalAccess', _517 => _517.level]) || 1;
18860
+ const level = _optionalChain([block, 'access', _519 => _519.props, 'optionalAccess', _520 => _520.level]) || 1;
18833
18861
  const text = extractTextFromContent(block.content);
18834
18862
  if (text.trim()) {
18835
18863
  headings.push({
@@ -19172,7 +19200,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
19172
19200
  })
19173
19201
  };
19174
19202
  const columns = _react.useMemo.call(void 0, () => {
19175
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _518 => _518[field], 'optionalCall', _519 => _519()])).filter((col) => col !== void 0);
19203
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _521 => _521[field], 'optionalCall', _522 => _522()])).filter((col) => col !== void 0);
19176
19204
  }, [params.fields, fieldColumnMap, t, generateUrl]);
19177
19205
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
19178
19206
  }, "useHowToTableStructure");
@@ -19271,7 +19299,7 @@ function HowToSelector({
19271
19299
  }, "setHowTo");
19272
19300
  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: [
19273
19301
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
19274
- /* @__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', _520 => _520.value, 'optionalAccess', _521 => _521.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 }) }))) }) }) }),
19302
+ /* @__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', _523 => _523.value, 'optionalAccess', _524 => _524.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 }) }))) }) }) }),
19275
19303
  field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
19276
19304
  _lucidereact.CircleX,
19277
19305
  {
@@ -19640,9 +19668,9 @@ function CitationsTab({ citations, sources }) {
19640
19668
  ] }) }),
19641
19669
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
19642
19670
  const isOpen = expanded.has(chunk.id);
19643
- const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _522 => _522.get, 'call', _523 => _523(chunk.nodeId)]) : void 0;
19671
+ const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _525 => _525.get, 'call', _526 => _526(chunk.nodeId)]) : void 0;
19644
19672
  const fallbackName = chunk.nodeId ? `${_nullishCoalesce(chunk.nodeType, () => ( t("features.assistant.message.sources.source")))} ${chunk.nodeId.slice(0, 8)}` : _nullishCoalesce(chunk.nodeType, () => ( t("features.assistant.message.sources.source")));
19645
- const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _524 => _524.name]), () => ( fallbackName));
19673
+ const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _527 => _527.name]), () => ( fallbackName));
19646
19674
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
19647
19675
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
19648
19676
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -19689,7 +19717,7 @@ function ContentsTab({ citations, sources }) {
19689
19717
  for (const c of citations) {
19690
19718
  const id = c.nodeId;
19691
19719
  if (!id) continue;
19692
- const source = _optionalChain([sources, 'optionalAccess', _525 => _525.get, 'call', _526 => _526(id)]);
19720
+ const source = _optionalChain([sources, 'optionalAccess', _528 => _528.get, 'call', _529 => _529(id)]);
19693
19721
  if (!source) continue;
19694
19722
  const existing = map.get(id);
19695
19723
  if (existing) {
@@ -19756,7 +19784,7 @@ function UsersTab({ users, citations, sources }) {
19756
19784
  const generate = usePageUrlGenerator();
19757
19785
  const userMap = /* @__PURE__ */ new Map();
19758
19786
  for (const u of users) {
19759
- if (!_optionalChain([u, 'optionalAccess', _527 => _527.id])) continue;
19787
+ if (!_optionalChain([u, 'optionalAccess', _530 => _530.id])) continue;
19760
19788
  userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
19761
19789
  }
19762
19790
  if (citations && sources) {
@@ -19861,7 +19889,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
19861
19889
  }
19862
19890
  return ids.size;
19863
19891
  }, [message.citations, sources]);
19864
- const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _528 => _528.length]), () => ( 0));
19892
+ const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _531 => _531.length]), () => ( 0));
19865
19893
  const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
19866
19894
  const visibleTabs = [];
19867
19895
  if (suggestionsCount > 0) visibleTabs.push("suggested");
@@ -19921,8 +19949,8 @@ var SourcesFetcher = class extends _chunkPQBKPWBYjs.ClientAbstractService {
19921
19949
  const endpoint = new (0, _chunkPQBKPWBYjs.EndpointCreator)({ endpoint: params.module });
19922
19950
  endpoint.addAdditionalParam(params.idsParam, params.ids.join(","));
19923
19951
  endpoint.addAdditionalParam("fetchAll", "true");
19924
- if (_optionalChain([params, 'access', _529 => _529.module, 'access', _530 => _530.inclusions, 'optionalAccess', _531 => _531.lists, 'optionalAccess', _532 => _532.fields])) endpoint.limitToFields(params.module.inclusions.lists.fields);
19925
- if (_optionalChain([params, 'access', _533 => _533.module, 'access', _534 => _534.inclusions, 'optionalAccess', _535 => _535.lists, 'optionalAccess', _536 => _536.types])) endpoint.limitToType(params.module.inclusions.lists.types);
19952
+ if (_optionalChain([params, 'access', _532 => _532.module, 'access', _533 => _533.inclusions, 'optionalAccess', _534 => _534.lists, 'optionalAccess', _535 => _535.fields])) endpoint.limitToFields(params.module.inclusions.lists.fields);
19953
+ if (_optionalChain([params, 'access', _536 => _536.module, 'access', _537 => _537.inclusions, 'optionalAccess', _538 => _538.lists, 'optionalAccess', _539 => _539.types])) endpoint.limitToType(params.module.inclusions.lists.types);
19926
19954
  return this.callApi({
19927
19955
  type: params.module,
19928
19956
  method: "GET" /* GET */,
@@ -20001,7 +20029,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
20001
20029
  return void 0;
20002
20030
  }
20003
20031
  })()));
20004
- if (_optionalChain([author, 'optionalAccess', _537 => _537.id])) userMap.set(author.id, author);
20032
+ if (_optionalChain([author, 'optionalAccess', _540 => _540.id])) userMap.set(author.id, author);
20005
20033
  }
20006
20034
  return Array.from(userMap.values());
20007
20035
  }, [resolved]);
@@ -20030,14 +20058,14 @@ function MessageItem({
20030
20058
  }) {
20031
20059
  const t = _nextintl.useTranslations.call(void 0, );
20032
20060
  const isUser = message.role === "user";
20033
- const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _538 => _538.has, 'call', _539 => _539(message.id)]);
20061
+ const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _541 => _541.has, 'call', _542 => _542(message.id)]);
20034
20062
  if (isUser) {
20035
20063
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-end gap-1", children: [
20036
20064
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-primary text-primary-foreground max-w-[72%] rounded-2xl rounded-br-sm px-3.5 py-2 text-sm", children: message.content }),
20037
20065
  isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
20038
20066
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
20039
20067
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.send_failed") }),
20040
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall', _540 => _540(message.id)]), children: t("features.assistant.retry") })
20068
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall', _543 => _543(message.id)]), children: t("features.assistant.retry") })
20041
20069
  ] })
20042
20070
  ] });
20043
20071
  }
@@ -20113,7 +20141,7 @@ function AssistantThread({
20113
20141
  }) {
20114
20142
  const endRef = _react.useRef.call(void 0, null);
20115
20143
  _react.useEffect.call(void 0, () => {
20116
- _optionalChain([endRef, 'access', _541 => _541.current, 'optionalAccess', _542 => _542.scrollIntoView, 'call', _543 => _543({ behavior: "smooth" })]);
20144
+ _optionalChain([endRef, 'access', _544 => _544.current, 'optionalAccess', _545 => _545.scrollIntoView, 'call', _546 => _546({ behavior: "smooth" })]);
20117
20145
  }, [messages.length, sending]);
20118
20146
  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: [
20119
20147
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -20142,7 +20170,7 @@ function AssistantContainer({ renderApprovalAction } = {}) {
20142
20170
  AssistantSidebar,
20143
20171
  {
20144
20172
  threads: ctx.threads,
20145
- activeId: _optionalChain([ctx, 'access', _544 => _544.assistant, 'optionalAccess', _545 => _545.id]),
20173
+ activeId: _optionalChain([ctx, 'access', _547 => _547.assistant, 'optionalAccess', _548 => _548.id]),
20146
20174
  onSelect: ctx.selectThread,
20147
20175
  onNew: ctx.startNew
20148
20176
  }
@@ -20243,14 +20271,14 @@ function NotificationsList({ archived }) {
20243
20271
  ] }),
20244
20272
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
20245
20273
  ] }) }) }, i)) }), "LoadingSkeleton");
20246
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _546 => _546.data, 'optionalAccess', _547 => _547.map, 'call', _548 => _548((notification) => {
20274
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _549 => _549.data, 'optionalAccess', _550 => _550.map, 'call', _551 => _551((notification) => {
20247
20275
  const notificationData = generateNotificationData({ notification, generateUrl });
20248
20276
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: "p-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex w-full flex-row items-center p-2`, children: [
20249
20277
  notificationData.actor ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-12 max-w-12 px-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunkPQBKPWBYjs.Modules.User, id: notificationData.actor.id }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: notificationData.actor, className: "h-8 w-8" }) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-14 max-w-14 px-2" }),
20250
20278
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
20251
20279
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
20252
20280
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
20253
- actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _549 => _549.actor, 'optionalAccess', _550 => _550.name]), () => ( "")),
20281
+ actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _552 => _552.actor, 'optionalAccess', _553 => _553.name]), () => ( "")),
20254
20282
  title: notificationData.title
20255
20283
  }) }),
20256
20284
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
@@ -20596,7 +20624,7 @@ var DEFAULT_TRANSLATIONS = {
20596
20624
  invalidEmail: "Please enter a valid email address"
20597
20625
  };
20598
20626
  async function copyToClipboard(text) {
20599
- if (_optionalChain([navigator, 'access', _551 => _551.clipboard, 'optionalAccess', _552 => _552.writeText])) {
20627
+ if (_optionalChain([navigator, 'access', _554 => _554.clipboard, 'optionalAccess', _555 => _555.writeText])) {
20600
20628
  try {
20601
20629
  await navigator.clipboard.writeText(text);
20602
20630
  return true;
@@ -20638,7 +20666,7 @@ function ReferralWidget({
20638
20666
  const linkInputRef = _react.useRef.call(void 0, null);
20639
20667
  const config = _chunkJO5BLONKjs.getReferralConfig.call(void 0, );
20640
20668
  const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
20641
- const referralUrl = _optionalChain([stats, 'optionalAccess', _553 => _553.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
20669
+ const referralUrl = _optionalChain([stats, 'optionalAccess', _556 => _556.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
20642
20670
  if (!_chunkJO5BLONKjs.isReferralEnabled.call(void 0, )) {
20643
20671
  return null;
20644
20672
  }
@@ -20648,7 +20676,7 @@ function ReferralWidget({
20648
20676
  if (success) {
20649
20677
  setCopied(true);
20650
20678
  _chunkPQBKPWBYjs.showToast.call(void 0, t.copiedMessage);
20651
- _optionalChain([onLinkCopied, 'optionalCall', _554 => _554()]);
20679
+ _optionalChain([onLinkCopied, 'optionalCall', _557 => _557()]);
20652
20680
  setTimeout(() => setCopied(false), 2e3);
20653
20681
  } else {
20654
20682
  _chunkPQBKPWBYjs.showError.call(void 0, t.copyError);
@@ -20662,12 +20690,12 @@ function ReferralWidget({
20662
20690
  try {
20663
20691
  await sendInvite(email);
20664
20692
  _chunkPQBKPWBYjs.showToast.call(void 0, t.inviteSent);
20665
- _optionalChain([onInviteSent, 'optionalCall', _555 => _555(email)]);
20693
+ _optionalChain([onInviteSent, 'optionalCall', _558 => _558(email)]);
20666
20694
  setEmail("");
20667
20695
  } catch (err) {
20668
20696
  const error2 = err instanceof Error ? err : new Error(t.inviteError);
20669
20697
  _chunkPQBKPWBYjs.showError.call(void 0, error2.message);
20670
- _optionalChain([onInviteError, 'optionalCall', _556 => _556(error2)]);
20698
+ _optionalChain([onInviteError, 'optionalCall', _559 => _559(error2)]);
20671
20699
  }
20672
20700
  }, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
20673
20701
  const handleEmailKeyDown = _react.useCallback.call(void 0,
@@ -21421,7 +21449,7 @@ function OAuthClientList({
21421
21449
  OAuthClientCard,
21422
21450
  {
21423
21451
  client,
21424
- onClick: () => _optionalChain([onClientClick, 'optionalCall', _557 => _557(client)]),
21452
+ onClick: () => _optionalChain([onClientClick, 'optionalCall', _560 => _560(client)]),
21425
21453
  onEdit: onEditClick ? () => onEditClick(client) : void 0,
21426
21454
  onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
21427
21455
  },
@@ -21437,11 +21465,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
21437
21465
  function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
21438
21466
  const isEditMode = !!client;
21439
21467
  const [formState, setFormState] = _react.useState.call(void 0, {
21440
- name: _optionalChain([client, 'optionalAccess', _558 => _558.name]) || "",
21441
- description: _optionalChain([client, 'optionalAccess', _559 => _559.description]) || "",
21442
- redirectUris: _optionalChain([client, 'optionalAccess', _560 => _560.redirectUris, 'optionalAccess', _561 => _561.length]) ? client.redirectUris : [""],
21443
- allowedScopes: _optionalChain([client, 'optionalAccess', _562 => _562.allowedScopes]) || [],
21444
- isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _563 => _563.isConfidential]), () => ( true))
21468
+ name: _optionalChain([client, 'optionalAccess', _561 => _561.name]) || "",
21469
+ description: _optionalChain([client, 'optionalAccess', _562 => _562.description]) || "",
21470
+ redirectUris: _optionalChain([client, 'optionalAccess', _563 => _563.redirectUris, 'optionalAccess', _564 => _564.length]) ? client.redirectUris : [""],
21471
+ allowedScopes: _optionalChain([client, 'optionalAccess', _565 => _565.allowedScopes]) || [],
21472
+ isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _566 => _566.isConfidential]), () => ( true))
21445
21473
  });
21446
21474
  const [errors, setErrors] = _react.useState.call(void 0, {});
21447
21475
  const validate = _react.useCallback.call(void 0, () => {
@@ -21669,7 +21697,7 @@ function OAuthClientDetail({
21669
21697
  ] }),
21670
21698
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
21671
21699
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
21672
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: client.allowedScopes.map((scope) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "secondary", children: _optionalChain([_chunkPQBKPWBYjs.OAUTH_SCOPE_DISPLAY, 'access', _564 => _564[scope], 'optionalAccess', _565 => _565.name]) || scope }, scope)) })
21700
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: client.allowedScopes.map((scope) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "secondary", children: _optionalChain([_chunkPQBKPWBYjs.OAUTH_SCOPE_DISPLAY, 'access', _567 => _567[scope], 'optionalAccess', _568 => _568.name]) || scope }, scope)) })
21673
21701
  ] }),
21674
21702
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
21675
21703
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
@@ -21813,7 +21841,7 @@ function OAuthConsentScreen({
21813
21841
  if (error || !clientInfo) {
21814
21842
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-screen flex items-center justify-center p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { className: "w-full max-w-md", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: "py-8", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Alert, { variant: "destructive", children: [
21815
21843
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
21816
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _566 => _566.message]) || "Invalid authorization request. Please try again." })
21844
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _569 => _569.message]) || "Invalid authorization request. Please try again." })
21817
21845
  ] }) }) }) });
21818
21846
  }
21819
21847
  const { client, scopes } = clientInfo;
@@ -22029,7 +22057,7 @@ function WaitlistForm({ onSuccess }) {
22029
22057
  questionnaire: values.questionnaire
22030
22058
  });
22031
22059
  setIsSuccess(true);
22032
- _optionalChain([onSuccess, 'optionalCall', _567 => _567()]);
22060
+ _optionalChain([onSuccess, 'optionalCall', _570 => _570()]);
22033
22061
  } catch (e) {
22034
22062
  errorToast({ error: e });
22035
22063
  } finally {
@@ -22667,7 +22695,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
22667
22695
  ] }),
22668
22696
  roleIds.map((roleId) => {
22669
22697
  const roleTokens = block[roleId];
22670
- const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _568 => _568[roleId]]), () => ( roleId));
22698
+ const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _571 => _571[roleId]]), () => ( roleId));
22671
22699
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
22672
22700
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
22673
22701
  _chunkJO5BLONKjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -22704,7 +22732,7 @@ function RbacContainer() {
22704
22732
  }, []);
22705
22733
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
22706
22734
  if (!matrix) return [];
22707
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _569 => _569[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _570 => _570[b]]), () => ( b))));
22735
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _572 => _572[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _573 => _573[b]]), () => ( b))));
22708
22736
  }, [matrix, moduleNames]);
22709
22737
  const roleIds = _react.useMemo.call(void 0, () => {
22710
22738
  if (roleNames) {
@@ -22767,7 +22795,7 @@ function RbacContainer() {
22767
22795
  id === selectedModuleId && "bg-muted font-medium text-foreground",
22768
22796
  id !== selectedModuleId && "text-muted-foreground"
22769
22797
  ),
22770
- children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _571 => _571[id]]), () => ( id))
22798
+ children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _574 => _574[id]]), () => ( id))
22771
22799
  }
22772
22800
  ) }, id)) }) }),
22773
22801
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: selectedModuleId && selectedBlock ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -22775,7 +22803,7 @@ function RbacContainer() {
22775
22803
  {
22776
22804
  moduleId: selectedModuleId,
22777
22805
  block: selectedBlock,
22778
- moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _572 => _572[selectedModuleId]]), () => ( selectedModuleId)),
22806
+ moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _575 => _575[selectedModuleId]]), () => ( selectedModuleId)),
22779
22807
  roleIds,
22780
22808
  roleNames,
22781
22809
  onOpenPicker: openPicker
@@ -22786,12 +22814,12 @@ function RbacContainer() {
22786
22814
  RbacPermissionPicker,
22787
22815
  {
22788
22816
  open: !!activePicker,
22789
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _573 => _573.anchor]), () => ( null)),
22817
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _576 => _576.anchor]), () => ( null)),
22790
22818
  value: activeValue,
22791
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _574 => _574.isRoleColumn]), () => ( false)),
22819
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _577 => _577.isRoleColumn]), () => ( false)),
22792
22820
  knownSegments: activeSegments,
22793
22821
  onSetValue: handleSetValue,
22794
- onClear: _optionalChain([activePicker, 'optionalAccess', _575 => _575.isRoleColumn]) ? handleClear : void 0,
22822
+ onClear: _optionalChain([activePicker, 'optionalAccess', _578 => _578.isRoleColumn]) ? handleClear : void 0,
22795
22823
  onClose: closePicker
22796
22824
  }
22797
22825
  )
@@ -22858,7 +22886,7 @@ function RbacByRoleContainer() {
22858
22886
  }, [roleNames]);
22859
22887
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
22860
22888
  if (!matrix) return [];
22861
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _576 => _576[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _577 => _577[b]]), () => ( b))));
22889
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _579 => _579[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _580 => _580[b]]), () => ( b))));
22862
22890
  }, [matrix, moduleNames]);
22863
22891
  _react.useEffect.call(void 0, () => {
22864
22892
  if (!selectedRoleId && sortedRoleIds.length > 0) {
@@ -22907,7 +22935,7 @@ function RbacByRoleContainer() {
22907
22935
  id === selectedRoleId && "bg-muted font-medium text-foreground",
22908
22936
  id !== selectedRoleId && "text-muted-foreground"
22909
22937
  ),
22910
- children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _578 => _578[id]]), () => ( id))
22938
+ children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _581 => _581[id]]), () => ( id))
22911
22939
  }
22912
22940
  ) }, id)) }) }),
22913
22941
  /* @__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: [
@@ -22927,7 +22955,7 @@ function RbacByRoleContainer() {
22927
22955
  if (!block) return null;
22928
22956
  const defaultTokens = _nullishCoalesce(block.default, () => ( []));
22929
22957
  const roleTokens = block[selectedRoleId];
22930
- const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _579 => _579[moduleId]]), () => ( moduleId));
22958
+ const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _582 => _582[moduleId]]), () => ( moduleId));
22931
22959
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
22932
22960
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
22933
22961
  "td",
@@ -22942,7 +22970,7 @@ function RbacByRoleContainer() {
22942
22970
  _chunkJO5BLONKjs.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))
22943
22971
  ] }),
22944
22972
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
22945
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _580 => _580[selectedRoleId]]), () => ( selectedRoleId)) }),
22973
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _583 => _583[selectedRoleId]]), () => ( selectedRoleId)) }),
22946
22974
  _chunkJO5BLONKjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
22947
22975
  CellButton3,
22948
22976
  {
@@ -22963,12 +22991,12 @@ function RbacByRoleContainer() {
22963
22991
  RbacPermissionPicker,
22964
22992
  {
22965
22993
  open: !!activePicker,
22966
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _581 => _581.anchor]), () => ( null)),
22994
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _584 => _584.anchor]), () => ( null)),
22967
22995
  value: activeValue,
22968
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _582 => _582.isRoleColumn]), () => ( false)),
22996
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _585 => _585.isRoleColumn]), () => ( false)),
22969
22997
  knownSegments: activeSegments,
22970
22998
  onSetValue: handleSetValue,
22971
- onClear: _optionalChain([activePicker, 'optionalAccess', _583 => _583.isRoleColumn]) ? handleClear : void 0,
22999
+ onClear: _optionalChain([activePicker, 'optionalAccess', _586 => _586.isRoleColumn]) ? handleClear : void 0,
22972
23000
  onClose: closePicker
22973
23001
  }
22974
23002
  )
@@ -23513,4 +23541,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
23513
23541
 
23514
23542
 
23515
23543
  exports.JsonApiProvider = JsonApiProvider; exports.useJsonApiGet = useJsonApiGet; exports.useJsonApiMutation = useJsonApiMutation; exports.useRehydration = useRehydration; exports.useRehydrationList = useRehydrationList; exports.TableGeneratorRegistry = TableGeneratorRegistry; exports.tableGeneratorRegistry = tableGeneratorRegistry; exports.usePageUrlGenerator = usePageUrlGenerator; exports.useUrlRewriter = useUrlRewriter; exports.useDataListRetriever = useDataListRetriever; exports.useDebounce = useDebounce2; exports.registerTableGenerator = registerTableGenerator; exports.useTableGenerator = useTableGenerator; exports.computeLayeredLayout = computeLayeredLayout; exports.fitLayeredLayoutToAspectRatio = fitLayeredLayoutToAspectRatio; exports.useCustomD3Graph = useCustomD3Graph; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AlertAction = AlertAction; exports.buttonVariants = buttonVariants; exports.Button = Button; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogMedia = AlertDialogMedia; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.Avatar = Avatar; exports.AvatarImage = AvatarImage; exports.AvatarFallback = AvatarFallback; exports.AvatarBadge = AvatarBadge; exports.AvatarGroup = AvatarGroup; exports.AvatarGroupCount = AvatarGroupCount; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.Calendar = Calendar; exports.CalendarDayButton = CalendarDayButton; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardAction = CardAction; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.useCarousel = useCarousel; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger; exports.CollapsibleContent = CollapsibleContent; exports.Input = Input; exports.Textarea = Textarea; exports.InputGroup = InputGroup; exports.InputGroupAddon = InputGroupAddon; exports.InputGroupButton = InputGroupButton; exports.InputGroupText = InputGroupText; exports.InputGroupInput = InputGroupInput; exports.InputGroupTextarea = InputGroupTextarea; exports.Combobox = Combobox; exports.ComboboxValue = ComboboxValue; exports.ComboboxTrigger = ComboboxTrigger; exports.ComboboxInput = ComboboxInput; exports.ComboboxContent = ComboboxContent; exports.ComboboxList = ComboboxList; exports.ComboboxItem = ComboboxItem; exports.ComboboxGroup = ComboboxGroup; exports.ComboboxLabel = ComboboxLabel; exports.ComboboxCollection = ComboboxCollection; exports.ComboboxEmpty = ComboboxEmpty; exports.ComboboxSeparator = ComboboxSeparator; exports.ComboboxChips = ComboboxChips; exports.ComboboxChip = ComboboxChip; exports.ComboboxChipsInput = ComboboxChipsInput; exports.useComboboxAnchor = useComboboxAnchor; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.Command = Command; exports.CommandDialog = CommandDialog; exports.CommandInput = CommandInput; exports.CommandList = CommandList; exports.CommandEmpty = CommandEmpty; exports.CommandGroup = CommandGroup; exports.CommandSeparator = CommandSeparator; exports.CommandItem = CommandItem; exports.CommandShortcut = CommandShortcut; exports.ConfirmDialog = ConfirmDialog; exports.ContextMenu = ContextMenu; exports.ContextMenuPortal = ContextMenuPortal; exports.ContextMenuTrigger = ContextMenuTrigger; exports.ContextMenuContent = ContextMenuContent; exports.ContextMenuGroup = ContextMenuGroup; exports.ContextMenuLabel = ContextMenuLabel; exports.ContextMenuItem = ContextMenuItem; exports.ContextMenuSub = ContextMenuSub; exports.ContextMenuSubTrigger = ContextMenuSubTrigger; exports.ContextMenuSubContent = ContextMenuSubContent; exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem; exports.ContextMenuRadioGroup = ContextMenuRadioGroup; exports.ContextMenuRadioItem = ContextMenuRadioItem; exports.ContextMenuSeparator = ContextMenuSeparator; exports.ContextMenuShortcut = ContextMenuShortcut; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerPortal = DrawerPortal; exports.DrawerClose = DrawerClose; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerFooter = DrawerFooter; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DropdownMenu = DropdownMenu; exports.DropdownMenuPortal = DropdownMenuPortal; exports.DropdownMenuTrigger = DropdownMenuTrigger; exports.DropdownMenuContent = DropdownMenuContent; exports.DropdownMenuGroup = DropdownMenuGroup; exports.DropdownMenuLabel = DropdownMenuLabel; exports.DropdownMenuItem = DropdownMenuItem; exports.DropdownMenuSub = DropdownMenuSub; exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger; exports.DropdownMenuSubContent = DropdownMenuSubContent; exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem; exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup; exports.DropdownMenuRadioItem = DropdownMenuRadioItem; exports.DropdownMenuSeparator = DropdownMenuSeparator; exports.DropdownMenuShortcut = DropdownMenuShortcut; exports.EmptyState = EmptyState; exports.Label = Label; exports.Separator = Separator; exports.FieldSet = FieldSet; exports.FieldLegend = FieldLegend; exports.FieldGroup = FieldGroup; exports.Field = Field; exports.FieldContent = FieldContent; exports.FieldLabel = FieldLabel; exports.FieldTitle = FieldTitle; exports.FieldDescription = FieldDescription; exports.FieldSeparator = FieldSeparator; exports.FieldError = FieldError; exports.Form = Form; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.InputOTP = InputOTP; exports.InputOTPGroup = InputOTPGroup; exports.InputOTPSlot = InputOTPSlot; exports.InputOTPSeparator = InputOTPSeparator; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuPositioner = NavigationMenuPositioner; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.Popover = Popover; exports.PopoverTrigger = PopoverTrigger; exports.PopoverContent = PopoverContent; exports.PopoverHeader = PopoverHeader; exports.PopoverTitle = PopoverTitle; exports.PopoverDescription = PopoverDescription; exports.Progress = Progress; exports.ProgressTrack = ProgressTrack; exports.ProgressIndicator = ProgressIndicator; exports.ProgressLabel = ProgressLabel; exports.ProgressValue = ProgressValue; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.ResizablePanelGroup = ResizablePanelGroup; exports.ResizablePanel = ResizablePanel; exports.ResizableHandle = ResizableHandle; exports.ScrollArea = ScrollArea; exports.ScrollBar = ScrollBar; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Skeleton = Skeleton; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip2; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.useSidebar = useSidebar; exports.SidebarProvider = SidebarProvider; exports.Sidebar = Sidebar; exports.SidebarTrigger = SidebarTrigger; exports.SidebarRail = SidebarRail; exports.SidebarInset = SidebarInset; exports.SidebarInput = SidebarInput; exports.SidebarHeader = SidebarHeader; exports.SidebarFooter = SidebarFooter; exports.SidebarSeparator = SidebarSeparator; exports.SidebarContent = SidebarContent; exports.SidebarGroup = SidebarGroup; exports.SidebarGroupLabel = SidebarGroupLabel; exports.SidebarGroupAction = SidebarGroupAction; exports.SidebarGroupContent = SidebarGroupContent; exports.SidebarMenu = SidebarMenu; exports.SidebarMenuItem = SidebarMenuItem; exports.SidebarMenuButton = SidebarMenuButton; exports.SidebarMenuAction = SidebarMenuAction; exports.SidebarMenuBadge = SidebarMenuBadge; exports.SidebarMenuSkeleton = SidebarMenuSkeleton; exports.SidebarMenuSub = SidebarMenuSub; exports.SidebarMenuSubItem = SidebarMenuSubItem; exports.SidebarMenuSubButton = SidebarMenuSubButton; exports.Slider = Slider; exports.Toaster = Toaster; exports.spinnerVariants = spinnerVariants; exports.Spinner = Spinner; exports.Switch = Switch; exports.Table = Table; exports.TableHeader = TableHeader; exports.TableBody = TableBody; exports.TableFooter = TableFooter; exports.TableRow = TableRow; exports.TableHead = TableHead; exports.TableCell = TableCell; exports.TableCaption = TableCaption; exports.Tabs = Tabs; exports.tabsListVariants = tabsListVariants; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.KanbanRoot = KanbanRoot; exports.KanbanBoard = KanbanBoard; exports.KanbanColumn = KanbanColumn; exports.KanbanColumnHandle = KanbanColumnHandle; exports.KanbanItem = KanbanItem; exports.KanbanItemHandle = KanbanItemHandle; exports.KanbanOverlay = KanbanOverlay; exports.Link = Link; exports.MultiSelect = MultiSelect; exports.useDebounce2 = useDebounce; exports.MultipleSelector = MultipleSelector; exports.EntityAvatar = EntityAvatar; exports.errorToast = errorToast; exports.EditableAvatar = EditableAvatar; exports.TableCellAvatar = TableCellAvatar; exports.HeaderChildrenProvider = HeaderChildrenProvider; exports.useHeaderChildren = useHeaderChildren; exports.HeaderLeftContentProvider = HeaderLeftContentProvider; exports.useHeaderLeftContent = useHeaderLeftContent; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.Header = Header; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.partitionTabs = partitionTabs; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.RoundPageContainerTitle = RoundPageContainerTitle; exports.RoundPageContainer = RoundPageContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.AllUsersListContainer = AllUsersListContainer; exports.UserContent = UserContent; exports.UserAvatar = UserAvatar; exports.UserAvatarList = UserAvatarList; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.UserSearchPopover = UserSearchPopover; exports.UserIndexDetails = UserIndexDetails; exports.UserStanadaloneDetails = UserStanadaloneDetails; exports.UserContainer = UserContainer; exports.UserIndexContainer = UserIndexContainer; exports.UsersListContainer = UsersListContainer; exports.AdminUsersList = AdminUsersList; exports.CompanyUsersList = CompanyUsersList; exports.ContributorsList = ContributorsList; exports.RelevantUsersList = RelevantUsersList; exports.RoleUsersList = RoleUsersList; exports.UserListInAdd = UserListInAdd; exports.UsersList = UsersList; exports.UsersListByContentIds = UsersListByContentIds; exports.AllowedUsersDetails = AllowedUsersDetails; exports.ErrorDetails = ErrorDetails; exports.BlockNoteEditorMentionHoverCard = BlockNoteEditorMentionHoverCard; exports.mentionDataAttrs = mentionDataAttrs; exports.parseMentionElement = parseMentionElement; exports.createMentionInlineContentSpec = createMentionInlineContentSpec; exports.useMentionInsert = useMentionInsert; exports.BlockNoteEditorMentionSuggestionMenu = BlockNoteEditorMentionSuggestionMenu; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.BlockNoteViewerContainer = BlockNoteViewerContainer; exports.FormFeatures = FormFeatures; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; 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.DateRangeSelector = DateRangeSelector; 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.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; exports.cellDateTime = cellDateTime; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; exports.ContentListGrid = ContentListGrid; exports.ItalianFiscalData_default = ItalianFiscalData_default; exports.ItalianFiscalDataDisplay = ItalianFiscalDataDisplay; exports.parseFiscalData = parseFiscalData; exports.FiscalDataDisplay = FiscalDataDisplay; exports.EntityHeroLayout = EntityHeroLayout; exports.EntityHero = EntityHero; exports.EntityHeroAvatar = EntityHeroAvatar; exports.EntityHeroMetaRow = EntityHeroMetaRow; exports.EntitySection = EntitySection; exports.GdprConsentSection = GdprConsentSection; exports.AuthContainer = AuthContainer; exports.BackupCodesDialog = BackupCodesDialog; exports.TotpInput = TotpInput; exports.DisableTwoFactorDialog = DisableTwoFactorDialog; exports.PasskeyList = PasskeyList; exports.PasskeySetupDialog = PasskeySetupDialog; exports.TotpAuthenticatorList = TotpAuthenticatorList; exports.TotpSetupDialog = TotpSetupDialog; exports.TwoFactorSettings = TwoFactorSettings; exports.SecurityContainer = SecurityContainer; exports.LandingComponent = LandingComponent; exports.AcceptInvitation = AcceptInvitation; exports.ActivateAccount = ActivateAccount; exports.Cookies = Cookies; exports.ForgotPassword = ForgotPassword; exports.Login = Login; exports.Logout = Logout; exports.RefreshUser = RefreshUser; exports.ResetPassword = ResetPassword; exports.PasskeyButton = PasskeyButton; exports.TwoFactorChallenge = TwoFactorChallenge; exports.CompanyContent = CompanyContent; exports.TokenStatusIndicator = TokenStatusIndicator; exports.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.HowToCommandViewer = HowToCommandViewer; exports.HowToCommand = HowToCommand; exports.HowToDeleter = HowToDeleter; exports.HowToMultiSelector = HowToMultiSelector; exports.HowToEditor = HowToEditor; exports.HowToProvider = HowToProvider; exports.useHowToContext = useHowToContext; exports.HowToContent = HowToContent; exports.HowToDetails = HowToDetails; exports.HowToContainer = HowToContainer; exports.HowToList = HowToList; exports.HowToListContainer = HowToListContainer; exports.HowToSelector = HowToSelector; exports.AssistantProvider = AssistantProvider; exports.useAssistantContext = useAssistantContext; exports.AssistantComposer = AssistantComposer; exports.AssistantEmptyState = AssistantEmptyState; exports.MessageSourcesPanel = MessageSourcesPanel; exports.MessageItem = MessageItem; exports.MessageList = MessageList; exports.AssistantThread = AssistantThread; exports.AssistantContainer = AssistantContainer; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.OnboardingCard = OnboardingCard; exports.ReferralCodeCapture = ReferralCodeCapture; exports.ReferralWidget = ReferralWidget; exports.ReferralDialog = ReferralDialog; exports.RoleProvider = RoleProvider; exports.useRoleContext = useRoleContext; exports.RoleDetails = RoleDetails; exports.RoleContainer = RoleContainer; exports.FormRoles = FormRoles; exports.RemoveUserFromRole = RemoveUserFromRole; exports.UserRoleAdd = UserRoleAdd; exports.useRoleTableStructure = useRoleTableStructure; exports.RolesList = RolesList; exports.UserRolesList = UserRolesList; exports.OAuthRedirectUriInput = OAuthRedirectUriInput; exports.OAuthScopeSelector = OAuthScopeSelector; exports.OAuthClientSecretDisplay = OAuthClientSecretDisplay; exports.OAuthClientCard = OAuthClientCard; exports.OAuthClientList = OAuthClientList; exports.OAuthClientForm = OAuthClientForm; exports.OAuthClientDetail = OAuthClientDetail; exports.OAuthConsentHeader = OAuthConsentHeader; exports.OAuthScopeList = OAuthScopeList; exports.OAuthConsentActions = OAuthConsentActions; exports.useOAuthConsent = useOAuthConsent; exports.OAuthConsentScreen = OAuthConsentScreen; exports.WaitlistQuestionnaireRenderer = WaitlistQuestionnaireRenderer; exports.WaitlistForm = WaitlistForm; exports.WaitlistHeroSection = WaitlistHeroSection; exports.WaitlistSuccessState = WaitlistSuccessState; exports.WaitlistConfirmation = WaitlistConfirmation; exports.WaitlistList = WaitlistList; exports.RbacProvider = RbacProvider; exports.useRbacContext = useRbacContext; exports.RbacPermissionCell = RbacPermissionCell; exports.RbacPermissionPicker = RbacPermissionPicker; exports.RbacContainer = RbacContainer; exports.RbacByRoleContainer = RbacByRoleContainer; exports.AddUserToRole = AddUserToRole; exports.UserAvatarEditor = UserAvatarEditor; exports.UserDeleter = UserDeleter; exports.UserEditor = UserEditor; exports.UserMultiSelect = UserMultiSelect; exports.UserReactivator = UserReactivator; exports.UserResentInvitationEmail = UserResentInvitationEmail; exports.UserSelector = UserSelector; exports.UserProvider = UserProvider; exports.useUserContext = useUserContext; exports.CompanyProvider = CompanyProvider; exports.useCompanyContext = useCompanyContext; exports.DEFAULT_ONBOARDING_LABELS = DEFAULT_ONBOARDING_LABELS; exports.OnboardingProvider = OnboardingProvider; exports.useOnboarding = useOnboarding; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
23516
- //# sourceMappingURL=chunk-CI4D76N6.js.map
23544
+ //# sourceMappingURL=chunk-QVRFFC2Q.js.map