@carlonicora/nextjs-jsonapi 1.125.1 → 1.127.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.
@@ -2773,6 +2773,7 @@ function HoverCardContent({
2773
2773
  sideOffset = 4,
2774
2774
  align = "center",
2775
2775
  alignOffset = 4,
2776
+ anchor,
2776
2777
  ...props
2777
2778
  }) {
2778
2779
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _previewcard.PreviewCard.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2782,6 +2783,7 @@ function HoverCardContent({
2782
2783
  alignOffset,
2783
2784
  side,
2784
2785
  sideOffset,
2786
+ anchor,
2785
2787
  className: "isolate z-50",
2786
2788
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2787
2789
  _previewcard.PreviewCard.Popup,
@@ -9970,7 +9972,7 @@ FileInput.displayName = "FileInput";
9970
9972
  var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
9971
9973
 
9972
9974
 
9973
- var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-EFAIYNH2.js"))), {
9975
+ var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-PGTAPCQF.js"))), {
9974
9976
  ssr: false
9975
9977
  });
9976
9978
  var BlockNoteEditorContainer = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
@@ -14563,15 +14565,20 @@ function RoundPageContainerTitle({
14563
14565
  }) {
14564
14566
  const { title } = useSharedContext();
14565
14567
  const isMobile = _chunkPQBKPWBYjs.useIsMobile.call(void 0, );
14566
- 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: [
14567
- !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: [
14568
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
+ title.titleActions,
14569
14572
  module && module.icon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, module.icon, { className: "text-primary h-6 w-6" }) : title.icon,
14570
14573
  title.type
14571
14574
  ] }),
14572
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 })
14573
14580
  ] }),
14574
- (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: [
14575
14582
  title.functions,
14576
14583
  details && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
14577
14584
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -14615,7 +14622,8 @@ function RoundPageContainer({
14615
14622
  fullWidth,
14616
14623
  forceHeader,
14617
14624
  header,
14618
- layout: layout2 = "tabs"
14625
+ layout: layout2 = "tabs",
14626
+ onSectionChange
14619
14627
  }) {
14620
14628
  const headerChildren = useHeaderChildren();
14621
14629
  const headerLeftContent = useHeaderLeftContent();
@@ -14649,11 +14657,16 @@ function RoundPageContainer({
14649
14657
  const handleTabChange = _react.useCallback.call(void 0,
14650
14658
  (key) => {
14651
14659
  setActiveTab(key);
14652
- 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)]);
14653
14666
  },
14654
- [module, id, rewriteUrl]
14667
+ [module, id, rewriteUrl, onSectionChange]
14655
14668
  );
14656
- 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;
14657
14670
  const { ungrouped, groups } = _react.useMemo.call(void 0, () => partitionTabs(_nullishCoalesce(tabs, () => ( []))), [tabs]);
14658
14671
  const isReady = mounted && isMobile !== void 0;
14659
14672
  if (!isReady) {
@@ -14685,8 +14698,8 @@ function RoundPageContainer({
14685
14698
  {
14686
14699
  value: activeTab,
14687
14700
  onValueChange: handleTabChange,
14688
- orientation: "vertical",
14689
- 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",
14690
14703
  children: [
14691
14704
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14692
14705
  "aside",
@@ -14943,14 +14956,14 @@ function BlockNoteEditorMentionHoverCard({
14943
14956
  const entityType = target.dataset.mentionType;
14944
14957
  const alias = target.dataset.mentionAlias;
14945
14958
  setHovered((prev) => {
14946
- 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;
14947
14960
  return { id, entityType, alias, element: target };
14948
14961
  });
14949
14962
  }, "handleMouseOver");
14950
14963
  const handleMouseOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
14951
14964
  const target = e.target.closest("[data-mention-id]");
14952
14965
  if (!target) return;
14953
- 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]")]);
14954
14967
  if (related) return;
14955
14968
  scheduleClose();
14956
14969
  }, "handleMouseOut");
@@ -14964,7 +14977,7 @@ function BlockNoteEditorMentionHoverCard({
14964
14977
  }, [containerRef, mentionResolveFn, cancelClose, scheduleClose]);
14965
14978
  if (!hovered || !mentionResolveFn) return null;
14966
14979
  const resolved = mentionResolveFn(hovered.id, hovered.entityType, hovered.alias);
14967
- if (!_optionalChain([resolved, 'optionalAccess', _416 => _416.HoverContent])) return null;
14980
+ if (!_optionalChain([resolved, 'optionalAccess', _417 => _417.HoverContent])) return null;
14968
14981
  const ContentComponent = resolved.HoverContent;
14969
14982
  const rect = hovered.element.getBoundingClientRect();
14970
14983
  return _reactdom.createPortal.call(void 0,
@@ -15007,28 +15020,28 @@ var parseMentionElement = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
15007
15020
  }, "parseMentionElement");
15008
15021
  var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn, disableMention, nameResolver) => {
15009
15022
  const MentionExternalHTML = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
15010
- 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));
15011
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: [
15012
15025
  "@",
15013
15026
  displayName
15014
15027
  ] });
15015
15028
  }, "MentionExternalHTML");
15016
15029
  const Mention = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function Mention2(props) {
15017
- 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));
15018
15031
  if (disableMention) {
15019
- const resolved2 = _optionalChain([resolveFn, 'optionalCall', _419 => _419(props.id, props.entityType, displayName)]);
15020
- 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: [
15021
15034
  "@",
15022
15035
  displayName
15023
15036
  ] });
15024
15037
  }
15025
- const resolved = _optionalChain([resolveFn, 'optionalCall', _421 => _421(props.id, props.entityType, displayName)]);
15026
- 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])) {
15027
15040
  const Custom = resolved.Inline;
15028
15041
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props, alias: displayName });
15029
15042
  }
15030
- const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _423 => _423.url]), () => ( "#"));
15031
- 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;
15032
15045
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
15033
15046
  _link2.default,
15034
15047
  {
@@ -15134,7 +15147,7 @@ function BlockNoteEditorMentionSuggestionMenu({
15134
15147
  if (!suggestionMenuComponent) return void 0;
15135
15148
  const Component2 = suggestionMenuComponent;
15136
15149
  const Wrapped = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
15137
- 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;
15138
15151
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15139
15152
  Component2,
15140
15153
  {
@@ -15143,7 +15156,7 @@ function BlockNoteEditorMentionSuggestionMenu({
15143
15156
  selectedIndex: isSentinelOnly ? void 0 : props.selectedIndex,
15144
15157
  onItemClick: (item) => {
15145
15158
  if (item.title === KEEP_OPEN_SENTINEL_TITLE) return;
15146
- _optionalChain([props, 'access', _428 => _428.onItemClick, 'optionalCall', _429 => _429(item)]);
15159
+ _optionalChain([props, 'access', _429 => _429.onItemClick, 'optionalCall', _430 => _430(item)]);
15147
15160
  }
15148
15161
  }
15149
15162
  );
@@ -15337,10 +15350,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
15337
15350
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15338
15351
  Checkbox,
15339
15352
  {
15340
- 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,
15341
15354
  onCheckedChange: (value) => {
15342
15355
  row.toggleSelected(!!value);
15343
- _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))]);
15344
15357
  },
15345
15358
  "aria-label": "Select row"
15346
15359
  }
@@ -15399,7 +15412,7 @@ function useJsonApiGet(params) {
15399
15412
  const [response, setResponse] = _react.useState.call(void 0, null);
15400
15413
  const isMounted = _react.useRef.call(void 0, true);
15401
15414
  const fetchData = _react.useCallback.call(void 0, async () => {
15402
- 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;
15403
15416
  setLoading(true);
15404
15417
  setError(null);
15405
15418
  try {
@@ -15426,9 +15439,9 @@ function useJsonApiGet(params) {
15426
15439
  setLoading(false);
15427
15440
  }
15428
15441
  }
15429
- }, [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])]);
15430
15443
  const fetchNextPage = _react.useCallback.call(void 0, async () => {
15431
- if (!_optionalChain([response, 'optionalAccess', _439 => _439.nextPage])) return;
15444
+ if (!_optionalChain([response, 'optionalAccess', _440 => _440.nextPage])) return;
15432
15445
  setLoading(true);
15433
15446
  try {
15434
15447
  const nextResponse = await response.nextPage();
@@ -15449,7 +15462,7 @@ function useJsonApiGet(params) {
15449
15462
  }
15450
15463
  }, [response]);
15451
15464
  const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
15452
- if (!_optionalChain([response, 'optionalAccess', _440 => _440.prevPage])) return;
15465
+ if (!_optionalChain([response, 'optionalAccess', _441 => _441.prevPage])) return;
15453
15466
  setLoading(true);
15454
15467
  try {
15455
15468
  const prevResponse = await response.prevPage();
@@ -15475,15 +15488,15 @@ function useJsonApiGet(params) {
15475
15488
  return () => {
15476
15489
  isMounted.current = false;
15477
15490
  };
15478
- }, [fetchData, ..._optionalChain([params, 'access', _441 => _441.options, 'optionalAccess', _442 => _442.deps]) || []]);
15491
+ }, [fetchData, ..._optionalChain([params, 'access', _442 => _442.options, 'optionalAccess', _443 => _443.deps]) || []]);
15479
15492
  return {
15480
15493
  data,
15481
15494
  loading,
15482
15495
  error,
15483
15496
  response,
15484
15497
  refetch: fetchData,
15485
- hasNextPage: !!_optionalChain([response, 'optionalAccess', _443 => _443.next]),
15486
- hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _444 => _444.prev]),
15498
+ hasNextPage: !!_optionalChain([response, 'optionalAccess', _444 => _444.next]),
15499
+ hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _445 => _445.prev]),
15487
15500
  fetchNextPage,
15488
15501
  fetchPreviousPage
15489
15502
  };
@@ -15561,17 +15574,17 @@ function useJsonApiMutation(config) {
15561
15574
  if (apiResponse.ok) {
15562
15575
  const resultData = apiResponse.data;
15563
15576
  setData(resultData);
15564
- _optionalChain([config, 'access', _445 => _445.onSuccess, 'optionalCall', _446 => _446(resultData)]);
15577
+ _optionalChain([config, 'access', _446 => _446.onSuccess, 'optionalCall', _447 => _447(resultData)]);
15565
15578
  return resultData;
15566
15579
  } else {
15567
15580
  setError(apiResponse.error);
15568
- _optionalChain([config, 'access', _447 => _447.onError, 'optionalCall', _448 => _448(apiResponse.error)]);
15581
+ _optionalChain([config, 'access', _448 => _448.onError, 'optionalCall', _449 => _449(apiResponse.error)]);
15569
15582
  return null;
15570
15583
  }
15571
15584
  } catch (err) {
15572
15585
  const errorMessage = err instanceof Error ? err.message : "Unknown error";
15573
15586
  setError(errorMessage);
15574
- _optionalChain([config, 'access', _449 => _449.onError, 'optionalCall', _450 => _450(errorMessage)]);
15587
+ _optionalChain([config, 'access', _450 => _450.onError, 'optionalCall', _451 => _451(errorMessage)]);
15575
15588
  return null;
15576
15589
  } finally {
15577
15590
  setLoading(false);
@@ -15644,7 +15657,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
15644
15657
  {
15645
15658
  href: hasRole(_chunkJO5BLONKjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
15646
15659
  page: "/administration",
15647
- 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)]),
15648
15661
  childPage: company.id
15649
15662
  }) : generateUrl({ page: _chunkPQBKPWBYjs.Modules.Company, id: company.id }),
15650
15663
  children: row.getValue("name")
@@ -15660,7 +15673,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
15660
15673
  })
15661
15674
  };
15662
15675
  const columns = _react.useMemo.call(void 0, () => {
15663
- 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);
15664
15677
  }, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
15665
15678
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
15666
15679
  }, "useCompanyTableStructure");
@@ -15672,7 +15685,7 @@ var GRACE_DAYS = 3;
15672
15685
  var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
15673
15686
  if (!currentUser || !_chunkJO5BLONKjs.isRolesConfigured.call(void 0, )) return false;
15674
15687
  const adminRoleId = _chunkJO5BLONKjs.getRoleId.call(void 0, ).Administrator;
15675
- 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)]);
15676
15689
  }, "isAdministrator");
15677
15690
  function useSubscriptionStatus() {
15678
15691
  const { company, currentUser } = useCurrentUserContext();
@@ -15789,7 +15802,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
15789
15802
  })
15790
15803
  };
15791
15804
  const columns = _react.useMemo.call(void 0, () => {
15792
- 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);
15793
15806
  }, [params.fields, fieldColumnMap, t, generateUrl]);
15794
15807
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
15795
15808
  }, "useRoleTableStructure");
@@ -15890,11 +15903,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
15890
15903
  return params.fields.map((field) => {
15891
15904
  const localHandler = fieldColumnMap[field];
15892
15905
  if (localHandler) return localHandler();
15893
- 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]]);
15894
15907
  if (customHandler) return customHandler({ t });
15895
15908
  return void 0;
15896
15909
  }).filter((col) => col !== void 0);
15897
- }, [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])]);
15898
15911
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
15899
15912
  }, "useContentTableStructure");
15900
15913
 
@@ -16229,7 +16242,7 @@ function ContentTableSearch({ data }) {
16229
16242
  const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
16230
16243
  if (!isExpanded) {
16231
16244
  setIsFocused(true);
16232
- setTimeout(() => _optionalChain([inputRef, 'access', _467 => _467.current, 'optionalAccess', _468 => _468.focus, 'call', _469 => _469()]), 50);
16245
+ setTimeout(() => _optionalChain([inputRef, 'access', _468 => _468.current, 'optionalAccess', _469 => _469.focus, 'call', _470 => _470()]), 50);
16233
16246
  }
16234
16247
  }, "handleSearchIconClick");
16235
16248
  const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
@@ -16308,7 +16321,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
16308
16321
  props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
16309
16322
  );
16310
16323
  const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
16311
- data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _470 => _470.data]), () => ( EMPTY_ARRAY)),
16324
+ data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _471 => _471.data]), () => ( EMPTY_ARRAY)),
16312
16325
  fields,
16313
16326
  checkedIds,
16314
16327
  toggleId,
@@ -16341,7 +16354,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
16341
16354
  });
16342
16355
  const rowModel = tableData ? table.getRowModel() : null;
16343
16356
  const groupedRows = _react.useMemo.call(void 0, () => {
16344
- if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _471 => _471.rows, 'optionalAccess', _472 => _472.length])) return null;
16357
+ if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _472 => _472.rows, 'optionalAccess', _473 => _473.length])) return null;
16345
16358
  const groupMap = /* @__PURE__ */ new Map();
16346
16359
  for (const row of rowModel.rows) {
16347
16360
  const keys = getGroupKeys(row.original, props.groupBy);
@@ -16397,10 +16410,10 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
16397
16410
  ) }),
16398
16411
  table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
16399
16412
  const meta = header.column.columnDef.meta;
16400
- 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);
16413
+ 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);
16401
16414
  }) }, headerGroup.id))
16402
16415
  ] }),
16403
- /* @__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: [
16416
+ /* @__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: [
16404
16417
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
16405
16418
  TableCell,
16406
16419
  {
@@ -16411,11 +16424,11 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
16411
16424
  ) }),
16412
16425
  group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
16413
16426
  const meta = cell.column.columnDef.meta;
16414
- 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);
16427
+ 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);
16415
16428
  }) }, row.id))
16416
16429
  ] }, group.groupKey)) : rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
16417
16430
  const meta = cell.column.columnDef.meta;
16418
- 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);
16431
+ 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);
16419
16432
  }) }, 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.")) }) }) }),
16420
16433
  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: [
16421
16434
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -16425,7 +16438,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
16425
16438
  size: "sm",
16426
16439
  onClick: (e) => {
16427
16440
  e.preventDefault();
16428
- _optionalChain([data, 'access', _478 => _478.previous, 'optionalCall', _479 => _479(true)]);
16441
+ _optionalChain([data, 'access', _479 => _479.previous, 'optionalCall', _480 => _480(true)]);
16429
16442
  },
16430
16443
  disabled: !data.previous,
16431
16444
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
@@ -16439,7 +16452,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
16439
16452
  size: "sm",
16440
16453
  onClick: (e) => {
16441
16454
  e.preventDefault();
16442
- _optionalChain([data, 'access', _480 => _480.next, 'optionalCall', _481 => _481(true)]);
16455
+ _optionalChain([data, 'access', _481 => _481.next, 'optionalCall', _482 => _482(true)]);
16443
16456
  },
16444
16457
  disabled: !data.next,
16445
16458
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" })
@@ -16460,7 +16473,7 @@ function ContentListGrid(props) {
16460
16473
  if (!data.next || !sentinelRef.current) return;
16461
16474
  const observer = new IntersectionObserver(
16462
16475
  (entries) => {
16463
- if (_optionalChain([entries, 'access', _482 => _482[0], 'optionalAccess', _483 => _483.isIntersecting])) _optionalChain([data, 'access', _484 => _484.next, 'optionalCall', _485 => _485()]);
16476
+ if (_optionalChain([entries, 'access', _483 => _483[0], 'optionalAccess', _484 => _484.isIntersecting])) _optionalChain([data, 'access', _485 => _485.next, 'optionalCall', _486 => _486()]);
16464
16477
  },
16465
16478
  { threshold: 0.1, rootMargin: "200px" }
16466
16479
  );
@@ -17298,7 +17311,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
17298
17311
  newDigits[index] = digit;
17299
17312
  setDigits(newDigits);
17300
17313
  if (digit && index < 5) {
17301
- _optionalChain([inputRefs, 'access', _486 => _486.current, 'access', _487 => _487[index + 1], 'optionalAccess', _488 => _488.focus, 'call', _489 => _489()]);
17314
+ _optionalChain([inputRefs, 'access', _487 => _487.current, 'access', _488 => _488[index + 1], 'optionalAccess', _489 => _489.focus, 'call', _490 => _490()]);
17302
17315
  }
17303
17316
  const code = newDigits.join("");
17304
17317
  if (code.length === 6 && newDigits.every((d) => d !== "")) {
@@ -17307,7 +17320,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
17307
17320
  }, "handleChange");
17308
17321
  const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
17309
17322
  if (e.key === "Backspace" && !digits[index] && index > 0) {
17310
- _optionalChain([inputRefs, 'access', _490 => _490.current, 'access', _491 => _491[index - 1], 'optionalAccess', _492 => _492.focus, 'call', _493 => _493()]);
17323
+ _optionalChain([inputRefs, 'access', _491 => _491.current, 'access', _492 => _492[index - 1], 'optionalAccess', _493 => _493.focus, 'call', _494 => _494()]);
17311
17324
  }
17312
17325
  }, "handleKeyDown");
17313
17326
  const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
@@ -17316,7 +17329,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
17316
17329
  if (pastedData.length === 6) {
17317
17330
  const newDigits = pastedData.split("");
17318
17331
  setDigits(newDigits);
17319
- _optionalChain([inputRefs, 'access', _494 => _494.current, 'access', _495 => _495[5], 'optionalAccess', _496 => _496.focus, 'call', _497 => _497()]);
17332
+ _optionalChain([inputRefs, 'access', _495 => _495.current, 'access', _496 => _496[5], 'optionalAccess', _497 => _497.focus, 'call', _498 => _498()]);
17320
17333
  onComplete(pastedData);
17321
17334
  }
17322
17335
  }, "handlePaste");
@@ -17527,8 +17540,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
17527
17540
  try {
17528
17541
  const registrationData = await _chunkPQBKPWBYjs.TwoFactorService.getPasskeyRegistrationOptions({
17529
17542
  id: _uuid.v4.call(void 0, ),
17530
- userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _498 => _498.email]), () => ( "")),
17531
- userDisplayName: _optionalChain([currentUser, 'optionalAccess', _499 => _499.name])
17543
+ userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _499 => _499.email]), () => ( "")),
17544
+ userDisplayName: _optionalChain([currentUser, 'optionalAccess', _500 => _500.name])
17532
17545
  });
17533
17546
  const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
17534
17547
  await _chunkPQBKPWBYjs.TwoFactorService.verifyPasskeyRegistration({
@@ -17679,7 +17692,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
17679
17692
  const setup = await _chunkPQBKPWBYjs.TwoFactorService.setupTotp({
17680
17693
  id: _uuid.v4.call(void 0, ),
17681
17694
  name: name.trim(),
17682
- accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _500 => _500.email]), () => ( ""))
17695
+ accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _501 => _501.email]), () => ( ""))
17683
17696
  });
17684
17697
  setQrCodeUri(setup.qrCodeUri);
17685
17698
  setAuthenticatorId(setup.authenticatorId);
@@ -17813,7 +17826,7 @@ function TwoFactorSettings() {
17813
17826
  if (isLoading) {
17814
17827
  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") }) }) });
17815
17828
  }
17816
- const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _501 => _501.isEnabled]), () => ( false));
17829
+ const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _502 => _502.isEnabled]), () => ( false));
17817
17830
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
17818
17831
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
17819
17832
  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" }),
@@ -17851,7 +17864,7 @@ function TwoFactorSettings() {
17851
17864
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
17852
17865
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
17853
17866
  ] }),
17854
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _502 => _502.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
17867
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _503 => _503.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
17855
17868
  ] }) }),
17856
17869
  !isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
17857
17870
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
@@ -18029,9 +18042,9 @@ function AcceptInvitation() {
18029
18042
  });
18030
18043
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
18031
18044
  try {
18032
- if (!_optionalChain([params, 'optionalAccess', _503 => _503.code])) return;
18045
+ if (!_optionalChain([params, 'optionalAccess', _504 => _504.code])) return;
18033
18046
  const payload = {
18034
- code: _optionalChain([params, 'optionalAccess', _504 => _504.code]),
18047
+ code: _optionalChain([params, 'optionalAccess', _505 => _505.code]),
18035
18048
  password: values.password
18036
18049
  };
18037
18050
  await _chunkPQBKPWBYjs.AuthService.acceptInvitation(payload);
@@ -18381,7 +18394,7 @@ function Logout({ storageKeys }) {
18381
18394
  const generateUrl = usePageUrlGenerator();
18382
18395
  _react.useEffect.call(void 0, () => {
18383
18396
  const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
18384
- if (_optionalChain([storageKeys, 'optionalAccess', _505 => _505.length])) {
18397
+ if (_optionalChain([storageKeys, 'optionalAccess', _506 => _506.length])) {
18385
18398
  clearClientStorage(storageKeys);
18386
18399
  }
18387
18400
  await _chunkPQBKPWBYjs.AuthService.logout();
@@ -18404,14 +18417,14 @@ function RefreshUser() {
18404
18417
  setUser(fullUser);
18405
18418
  const token = {
18406
18419
  userId: fullUser.id,
18407
- companyId: _optionalChain([fullUser, 'access', _506 => _506.company, 'optionalAccess', _507 => _507.id]),
18420
+ companyId: _optionalChain([fullUser, 'access', _507 => _507.company, 'optionalAccess', _508 => _508.id]),
18408
18421
  roles: fullUser.roles.map((role) => role.id),
18409
- features: _nullishCoalesce(_optionalChain([fullUser, 'access', _508 => _508.company, 'optionalAccess', _509 => _509.features, 'optionalAccess', _510 => _510.map, 'call', _511 => _511((feature) => feature.id)]), () => ( [])),
18422
+ features: _nullishCoalesce(_optionalChain([fullUser, 'access', _509 => _509.company, 'optionalAccess', _510 => _510.features, 'optionalAccess', _511 => _511.map, 'call', _512 => _512((feature) => feature.id)]), () => ( [])),
18410
18423
  modules: fullUser.modules.map((module) => {
18411
18424
  return { id: module.id, permissions: module.permissions };
18412
18425
  })
18413
18426
  };
18414
- await _optionalChain([_chunkPQBKPWBYjs.getTokenHandler.call(void 0, ), 'optionalAccess', _512 => _512.updateToken, 'call', _513 => _513(token)]);
18427
+ await _optionalChain([_chunkPQBKPWBYjs.getTokenHandler.call(void 0, ), 'optionalAccess', _513 => _513.updateToken, 'call', _514 => _514(token)]);
18415
18428
  _cookiesnext.deleteCookie.call(void 0, "reloadData");
18416
18429
  }
18417
18430
  }, "loadFullUser");
@@ -18475,9 +18488,9 @@ function ResetPassword() {
18475
18488
  });
18476
18489
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
18477
18490
  try {
18478
- if (!_optionalChain([params, 'optionalAccess', _514 => _514.code])) return;
18491
+ if (!_optionalChain([params, 'optionalAccess', _515 => _515.code])) return;
18479
18492
  const payload = {
18480
- code: _optionalChain([params, 'optionalAccess', _515 => _515.code]),
18493
+ code: _optionalChain([params, 'optionalAccess', _516 => _516.code]),
18481
18494
  password: values.password
18482
18495
  };
18483
18496
  await _chunkPQBKPWBYjs.AuthService.resetPassword(payload);
@@ -18826,7 +18839,7 @@ function extractHeadings(blocks) {
18826
18839
  function processBlocks(blockArray) {
18827
18840
  for (const block of blockArray) {
18828
18841
  if (block.type === "heading") {
18829
- const level = _optionalChain([block, 'access', _516 => _516.props, 'optionalAccess', _517 => _517.level]) || 1;
18842
+ const level = _optionalChain([block, 'access', _517 => _517.props, 'optionalAccess', _518 => _518.level]) || 1;
18830
18843
  const text = extractTextFromContent(block.content);
18831
18844
  if (text.trim()) {
18832
18845
  headings.push({
@@ -19169,7 +19182,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
19169
19182
  })
19170
19183
  };
19171
19184
  const columns = _react.useMemo.call(void 0, () => {
19172
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _518 => _518[field], 'optionalCall', _519 => _519()])).filter((col) => col !== void 0);
19185
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _519 => _519[field], 'optionalCall', _520 => _520()])).filter((col) => col !== void 0);
19173
19186
  }, [params.fields, fieldColumnMap, t, generateUrl]);
19174
19187
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
19175
19188
  }, "useHowToTableStructure");
@@ -19268,7 +19281,7 @@ function HowToSelector({
19268
19281
  }, "setHowTo");
19269
19282
  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: [
19270
19283
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
19271
- /* @__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 }) }))) }) }) }),
19284
+ /* @__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', _521 => _521.value, 'optionalAccess', _522 => _522.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 }) }))) }) }) }),
19272
19285
  field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
19273
19286
  _lucidereact.CircleX,
19274
19287
  {
@@ -19637,9 +19650,9 @@ function CitationsTab({ citations, sources }) {
19637
19650
  ] }) }),
19638
19651
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
19639
19652
  const isOpen = expanded.has(chunk.id);
19640
- const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _522 => _522.get, 'call', _523 => _523(chunk.nodeId)]) : void 0;
19653
+ const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _523 => _523.get, 'call', _524 => _524(chunk.nodeId)]) : void 0;
19641
19654
  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")));
19642
- const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _524 => _524.name]), () => ( fallbackName));
19655
+ const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _525 => _525.name]), () => ( fallbackName));
19643
19656
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
19644
19657
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
19645
19658
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -19686,7 +19699,7 @@ function ContentsTab({ citations, sources }) {
19686
19699
  for (const c of citations) {
19687
19700
  const id = c.nodeId;
19688
19701
  if (!id) continue;
19689
- const source = _optionalChain([sources, 'optionalAccess', _525 => _525.get, 'call', _526 => _526(id)]);
19702
+ const source = _optionalChain([sources, 'optionalAccess', _526 => _526.get, 'call', _527 => _527(id)]);
19690
19703
  if (!source) continue;
19691
19704
  const existing = map.get(id);
19692
19705
  if (existing) {
@@ -19753,7 +19766,7 @@ function UsersTab({ users, citations, sources }) {
19753
19766
  const generate = usePageUrlGenerator();
19754
19767
  const userMap = /* @__PURE__ */ new Map();
19755
19768
  for (const u of users) {
19756
- if (!_optionalChain([u, 'optionalAccess', _527 => _527.id])) continue;
19769
+ if (!_optionalChain([u, 'optionalAccess', _528 => _528.id])) continue;
19757
19770
  userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
19758
19771
  }
19759
19772
  if (citations && sources) {
@@ -19858,7 +19871,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
19858
19871
  }
19859
19872
  return ids.size;
19860
19873
  }, [message.citations, sources]);
19861
- const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _528 => _528.length]), () => ( 0));
19874
+ const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _529 => _529.length]), () => ( 0));
19862
19875
  const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
19863
19876
  const visibleTabs = [];
19864
19877
  if (suggestionsCount > 0) visibleTabs.push("suggested");
@@ -19918,8 +19931,8 @@ var SourcesFetcher = class extends _chunkPQBKPWBYjs.ClientAbstractService {
19918
19931
  const endpoint = new (0, _chunkPQBKPWBYjs.EndpointCreator)({ endpoint: params.module });
19919
19932
  endpoint.addAdditionalParam(params.idsParam, params.ids.join(","));
19920
19933
  endpoint.addAdditionalParam("fetchAll", "true");
19921
- 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);
19922
- 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);
19934
+ if (_optionalChain([params, 'access', _530 => _530.module, 'access', _531 => _531.inclusions, 'optionalAccess', _532 => _532.lists, 'optionalAccess', _533 => _533.fields])) endpoint.limitToFields(params.module.inclusions.lists.fields);
19935
+ if (_optionalChain([params, 'access', _534 => _534.module, 'access', _535 => _535.inclusions, 'optionalAccess', _536 => _536.lists, 'optionalAccess', _537 => _537.types])) endpoint.limitToType(params.module.inclusions.lists.types);
19923
19936
  return this.callApi({
19924
19937
  type: params.module,
19925
19938
  method: "GET" /* GET */,
@@ -19998,7 +20011,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
19998
20011
  return void 0;
19999
20012
  }
20000
20013
  })()));
20001
- if (_optionalChain([author, 'optionalAccess', _537 => _537.id])) userMap.set(author.id, author);
20014
+ if (_optionalChain([author, 'optionalAccess', _538 => _538.id])) userMap.set(author.id, author);
20002
20015
  }
20003
20016
  return Array.from(userMap.values());
20004
20017
  }, [resolved]);
@@ -20027,14 +20040,14 @@ function MessageItem({
20027
20040
  }) {
20028
20041
  const t = _nextintl.useTranslations.call(void 0, );
20029
20042
  const isUser = message.role === "user";
20030
- const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _538 => _538.has, 'call', _539 => _539(message.id)]);
20043
+ const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _539 => _539.has, 'call', _540 => _540(message.id)]);
20031
20044
  if (isUser) {
20032
20045
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-end gap-1", children: [
20033
20046
  /* @__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 }),
20034
20047
  isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
20035
20048
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
20036
20049
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.send_failed") }),
20037
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall', _540 => _540(message.id)]), children: t("features.assistant.retry") })
20050
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall', _541 => _541(message.id)]), children: t("features.assistant.retry") })
20038
20051
  ] })
20039
20052
  ] });
20040
20053
  }
@@ -20110,7 +20123,7 @@ function AssistantThread({
20110
20123
  }) {
20111
20124
  const endRef = _react.useRef.call(void 0, null);
20112
20125
  _react.useEffect.call(void 0, () => {
20113
- _optionalChain([endRef, 'access', _541 => _541.current, 'optionalAccess', _542 => _542.scrollIntoView, 'call', _543 => _543({ behavior: "smooth" })]);
20126
+ _optionalChain([endRef, 'access', _542 => _542.current, 'optionalAccess', _543 => _543.scrollIntoView, 'call', _544 => _544({ behavior: "smooth" })]);
20114
20127
  }, [messages.length, sending]);
20115
20128
  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: [
20116
20129
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -20139,7 +20152,7 @@ function AssistantContainer({ renderApprovalAction } = {}) {
20139
20152
  AssistantSidebar,
20140
20153
  {
20141
20154
  threads: ctx.threads,
20142
- activeId: _optionalChain([ctx, 'access', _544 => _544.assistant, 'optionalAccess', _545 => _545.id]),
20155
+ activeId: _optionalChain([ctx, 'access', _545 => _545.assistant, 'optionalAccess', _546 => _546.id]),
20143
20156
  onSelect: ctx.selectThread,
20144
20157
  onNew: ctx.startNew
20145
20158
  }
@@ -20240,14 +20253,14 @@ function NotificationsList({ archived }) {
20240
20253
  ] }),
20241
20254
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
20242
20255
  ] }) }) }, i)) }), "LoadingSkeleton");
20243
- 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) => {
20256
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _547 => _547.data, 'optionalAccess', _548 => _548.map, 'call', _549 => _549((notification) => {
20244
20257
  const notificationData = generateNotificationData({ notification, generateUrl });
20245
20258
  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: [
20246
20259
  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" }),
20247
20260
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
20248
20261
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
20249
20262
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
20250
- actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _549 => _549.actor, 'optionalAccess', _550 => _550.name]), () => ( "")),
20263
+ actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _550 => _550.actor, 'optionalAccess', _551 => _551.name]), () => ( "")),
20251
20264
  title: notificationData.title
20252
20265
  }) }),
20253
20266
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
@@ -20593,7 +20606,7 @@ var DEFAULT_TRANSLATIONS = {
20593
20606
  invalidEmail: "Please enter a valid email address"
20594
20607
  };
20595
20608
  async function copyToClipboard(text) {
20596
- if (_optionalChain([navigator, 'access', _551 => _551.clipboard, 'optionalAccess', _552 => _552.writeText])) {
20609
+ if (_optionalChain([navigator, 'access', _552 => _552.clipboard, 'optionalAccess', _553 => _553.writeText])) {
20597
20610
  try {
20598
20611
  await navigator.clipboard.writeText(text);
20599
20612
  return true;
@@ -20635,7 +20648,7 @@ function ReferralWidget({
20635
20648
  const linkInputRef = _react.useRef.call(void 0, null);
20636
20649
  const config = _chunkJO5BLONKjs.getReferralConfig.call(void 0, );
20637
20650
  const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
20638
- const referralUrl = _optionalChain([stats, 'optionalAccess', _553 => _553.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
20651
+ const referralUrl = _optionalChain([stats, 'optionalAccess', _554 => _554.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
20639
20652
  if (!_chunkJO5BLONKjs.isReferralEnabled.call(void 0, )) {
20640
20653
  return null;
20641
20654
  }
@@ -20645,7 +20658,7 @@ function ReferralWidget({
20645
20658
  if (success) {
20646
20659
  setCopied(true);
20647
20660
  _chunkPQBKPWBYjs.showToast.call(void 0, t.copiedMessage);
20648
- _optionalChain([onLinkCopied, 'optionalCall', _554 => _554()]);
20661
+ _optionalChain([onLinkCopied, 'optionalCall', _555 => _555()]);
20649
20662
  setTimeout(() => setCopied(false), 2e3);
20650
20663
  } else {
20651
20664
  _chunkPQBKPWBYjs.showError.call(void 0, t.copyError);
@@ -20659,12 +20672,12 @@ function ReferralWidget({
20659
20672
  try {
20660
20673
  await sendInvite(email);
20661
20674
  _chunkPQBKPWBYjs.showToast.call(void 0, t.inviteSent);
20662
- _optionalChain([onInviteSent, 'optionalCall', _555 => _555(email)]);
20675
+ _optionalChain([onInviteSent, 'optionalCall', _556 => _556(email)]);
20663
20676
  setEmail("");
20664
20677
  } catch (err) {
20665
20678
  const error2 = err instanceof Error ? err : new Error(t.inviteError);
20666
20679
  _chunkPQBKPWBYjs.showError.call(void 0, error2.message);
20667
- _optionalChain([onInviteError, 'optionalCall', _556 => _556(error2)]);
20680
+ _optionalChain([onInviteError, 'optionalCall', _557 => _557(error2)]);
20668
20681
  }
20669
20682
  }, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
20670
20683
  const handleEmailKeyDown = _react.useCallback.call(void 0,
@@ -21418,7 +21431,7 @@ function OAuthClientList({
21418
21431
  OAuthClientCard,
21419
21432
  {
21420
21433
  client,
21421
- onClick: () => _optionalChain([onClientClick, 'optionalCall', _557 => _557(client)]),
21434
+ onClick: () => _optionalChain([onClientClick, 'optionalCall', _558 => _558(client)]),
21422
21435
  onEdit: onEditClick ? () => onEditClick(client) : void 0,
21423
21436
  onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
21424
21437
  },
@@ -21434,11 +21447,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
21434
21447
  function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
21435
21448
  const isEditMode = !!client;
21436
21449
  const [formState, setFormState] = _react.useState.call(void 0, {
21437
- name: _optionalChain([client, 'optionalAccess', _558 => _558.name]) || "",
21438
- description: _optionalChain([client, 'optionalAccess', _559 => _559.description]) || "",
21439
- redirectUris: _optionalChain([client, 'optionalAccess', _560 => _560.redirectUris, 'optionalAccess', _561 => _561.length]) ? client.redirectUris : [""],
21440
- allowedScopes: _optionalChain([client, 'optionalAccess', _562 => _562.allowedScopes]) || [],
21441
- isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _563 => _563.isConfidential]), () => ( true))
21450
+ name: _optionalChain([client, 'optionalAccess', _559 => _559.name]) || "",
21451
+ description: _optionalChain([client, 'optionalAccess', _560 => _560.description]) || "",
21452
+ redirectUris: _optionalChain([client, 'optionalAccess', _561 => _561.redirectUris, 'optionalAccess', _562 => _562.length]) ? client.redirectUris : [""],
21453
+ allowedScopes: _optionalChain([client, 'optionalAccess', _563 => _563.allowedScopes]) || [],
21454
+ isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _564 => _564.isConfidential]), () => ( true))
21442
21455
  });
21443
21456
  const [errors, setErrors] = _react.useState.call(void 0, {});
21444
21457
  const validate = _react.useCallback.call(void 0, () => {
@@ -21666,7 +21679,7 @@ function OAuthClientDetail({
21666
21679
  ] }),
21667
21680
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
21668
21681
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
21669
- /* @__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)) })
21682
+ /* @__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', _565 => _565[scope], 'optionalAccess', _566 => _566.name]) || scope }, scope)) })
21670
21683
  ] }),
21671
21684
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
21672
21685
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
@@ -21810,7 +21823,7 @@ function OAuthConsentScreen({
21810
21823
  if (error || !clientInfo) {
21811
21824
  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: [
21812
21825
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
21813
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _566 => _566.message]) || "Invalid authorization request. Please try again." })
21826
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _567 => _567.message]) || "Invalid authorization request. Please try again." })
21814
21827
  ] }) }) }) });
21815
21828
  }
21816
21829
  const { client, scopes } = clientInfo;
@@ -22026,7 +22039,7 @@ function WaitlistForm({ onSuccess }) {
22026
22039
  questionnaire: values.questionnaire
22027
22040
  });
22028
22041
  setIsSuccess(true);
22029
- _optionalChain([onSuccess, 'optionalCall', _567 => _567()]);
22042
+ _optionalChain([onSuccess, 'optionalCall', _568 => _568()]);
22030
22043
  } catch (e) {
22031
22044
  errorToast({ error: e });
22032
22045
  } finally {
@@ -22664,7 +22677,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
22664
22677
  ] }),
22665
22678
  roleIds.map((roleId) => {
22666
22679
  const roleTokens = block[roleId];
22667
- const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _568 => _568[roleId]]), () => ( roleId));
22680
+ const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _569 => _569[roleId]]), () => ( roleId));
22668
22681
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
22669
22682
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
22670
22683
  _chunkJO5BLONKjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -22701,7 +22714,7 @@ function RbacContainer() {
22701
22714
  }, []);
22702
22715
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
22703
22716
  if (!matrix) return [];
22704
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _569 => _569[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _570 => _570[b]]), () => ( b))));
22717
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _570 => _570[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _571 => _571[b]]), () => ( b))));
22705
22718
  }, [matrix, moduleNames]);
22706
22719
  const roleIds = _react.useMemo.call(void 0, () => {
22707
22720
  if (roleNames) {
@@ -22764,7 +22777,7 @@ function RbacContainer() {
22764
22777
  id === selectedModuleId && "bg-muted font-medium text-foreground",
22765
22778
  id !== selectedModuleId && "text-muted-foreground"
22766
22779
  ),
22767
- children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _571 => _571[id]]), () => ( id))
22780
+ children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _572 => _572[id]]), () => ( id))
22768
22781
  }
22769
22782
  ) }, id)) }) }),
22770
22783
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: selectedModuleId && selectedBlock ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -22772,7 +22785,7 @@ function RbacContainer() {
22772
22785
  {
22773
22786
  moduleId: selectedModuleId,
22774
22787
  block: selectedBlock,
22775
- moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _572 => _572[selectedModuleId]]), () => ( selectedModuleId)),
22788
+ moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _573 => _573[selectedModuleId]]), () => ( selectedModuleId)),
22776
22789
  roleIds,
22777
22790
  roleNames,
22778
22791
  onOpenPicker: openPicker
@@ -22783,12 +22796,12 @@ function RbacContainer() {
22783
22796
  RbacPermissionPicker,
22784
22797
  {
22785
22798
  open: !!activePicker,
22786
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _573 => _573.anchor]), () => ( null)),
22799
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _574 => _574.anchor]), () => ( null)),
22787
22800
  value: activeValue,
22788
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _574 => _574.isRoleColumn]), () => ( false)),
22801
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _575 => _575.isRoleColumn]), () => ( false)),
22789
22802
  knownSegments: activeSegments,
22790
22803
  onSetValue: handleSetValue,
22791
- onClear: _optionalChain([activePicker, 'optionalAccess', _575 => _575.isRoleColumn]) ? handleClear : void 0,
22804
+ onClear: _optionalChain([activePicker, 'optionalAccess', _576 => _576.isRoleColumn]) ? handleClear : void 0,
22792
22805
  onClose: closePicker
22793
22806
  }
22794
22807
  )
@@ -22855,7 +22868,7 @@ function RbacByRoleContainer() {
22855
22868
  }, [roleNames]);
22856
22869
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
22857
22870
  if (!matrix) return [];
22858
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _576 => _576[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _577 => _577[b]]), () => ( b))));
22871
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _577 => _577[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _578 => _578[b]]), () => ( b))));
22859
22872
  }, [matrix, moduleNames]);
22860
22873
  _react.useEffect.call(void 0, () => {
22861
22874
  if (!selectedRoleId && sortedRoleIds.length > 0) {
@@ -22904,7 +22917,7 @@ function RbacByRoleContainer() {
22904
22917
  id === selectedRoleId && "bg-muted font-medium text-foreground",
22905
22918
  id !== selectedRoleId && "text-muted-foreground"
22906
22919
  ),
22907
- children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _578 => _578[id]]), () => ( id))
22920
+ children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _579 => _579[id]]), () => ( id))
22908
22921
  }
22909
22922
  ) }, id)) }) }),
22910
22923
  /* @__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: [
@@ -22924,7 +22937,7 @@ function RbacByRoleContainer() {
22924
22937
  if (!block) return null;
22925
22938
  const defaultTokens = _nullishCoalesce(block.default, () => ( []));
22926
22939
  const roleTokens = block[selectedRoleId];
22927
- const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _579 => _579[moduleId]]), () => ( moduleId));
22940
+ const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _580 => _580[moduleId]]), () => ( moduleId));
22928
22941
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
22929
22942
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
22930
22943
  "td",
@@ -22939,7 +22952,7 @@ function RbacByRoleContainer() {
22939
22952
  _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))
22940
22953
  ] }),
22941
22954
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
22942
- /* @__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)) }),
22955
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _581 => _581[selectedRoleId]]), () => ( selectedRoleId)) }),
22943
22956
  _chunkJO5BLONKjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
22944
22957
  CellButton3,
22945
22958
  {
@@ -22960,12 +22973,12 @@ function RbacByRoleContainer() {
22960
22973
  RbacPermissionPicker,
22961
22974
  {
22962
22975
  open: !!activePicker,
22963
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _581 => _581.anchor]), () => ( null)),
22976
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _582 => _582.anchor]), () => ( null)),
22964
22977
  value: activeValue,
22965
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _582 => _582.isRoleColumn]), () => ( false)),
22978
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _583 => _583.isRoleColumn]), () => ( false)),
22966
22979
  knownSegments: activeSegments,
22967
22980
  onSetValue: handleSetValue,
22968
- onClear: _optionalChain([activePicker, 'optionalAccess', _583 => _583.isRoleColumn]) ? handleClear : void 0,
22981
+ onClear: _optionalChain([activePicker, 'optionalAccess', _584 => _584.isRoleColumn]) ? handleClear : void 0,
22969
22982
  onClose: closePicker
22970
22983
  }
22971
22984
  )
@@ -23510,4 +23523,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
23510
23523
 
23511
23524
 
23512
23525
  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;
23513
- //# sourceMappingURL=chunk-JBWBIMZF.js.map
23526
+ //# sourceMappingURL=chunk-24RSNGD2.js.map