@carlonicora/nextjs-jsonapi 1.88.0 → 1.88.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9207,7 +9207,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, FormCheckbox, "FormCheckbox");
9207
9207
  var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
9208
9208
 
9209
9209
 
9210
- var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-6MCXSIXP.js"))), {
9210
+ var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-WBQCVHRG.js"))), {
9211
9211
  ssr: false
9212
9212
  });
9213
9213
  var BlockNoteEditorContainer = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
@@ -13386,7 +13386,15 @@ function RoundPageContainer({
13386
13386
  const rewriteUrl = useUrlRewriter();
13387
13387
  const initialValue = tabs ? (section && tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access', _355 => _355.key, 'optionalAccess', _356 => _356.name]), () => ( i.label))) === section) ? section : null) || (_nullishCoalesce(_optionalChain([tabs, 'access', _357 => _357[0], 'access', _358 => _358.key, 'optionalAccess', _359 => _359.name]), () => ( tabs[0].label))) : void 0;
13388
13388
  const [activeTab, setActiveTab] = _react.useState.call(void 0, initialValue);
13389
- const activeFillHeight = _optionalChain([tabs, 'optionalAccess', _360 => _360.find, 'call', _361 => _361((t) => (_nullishCoalesce(_optionalChain([t, 'access', _362 => _362.key, 'optionalAccess', _363 => _363.name]), () => ( t.label))) === activeTab), 'optionalAccess', _364 => _364.fillHeight]) === true;
13389
+ _react.useEffect.call(void 0, () => {
13390
+ if (tabs && section) {
13391
+ const tab = tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access', _360 => _360.key, 'optionalAccess', _361 => _361.name]), () => ( i.label))) === section);
13392
+ if (tab) {
13393
+ setActiveTab(section);
13394
+ }
13395
+ }
13396
+ }, [section, tabs]);
13397
+ const activeFillHeight = _optionalChain([tabs, 'optionalAccess', _362 => _362.find, 'call', _363 => _363((t) => (_nullishCoalesce(_optionalChain([t, 'access', _364 => _364.key, 'optionalAccess', _365 => _365.name]), () => ( t.label))) === activeTab), 'optionalAccess', _366 => _366.fillHeight]) === true;
13390
13398
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
13391
13399
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header, { leftContent: headerLeftContent, className: "bg-sidebar border-0", children: headerChildren }),
13392
13400
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[calc(100vh-3rem)] w-full flex-col p-2 pt-0 pl-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-background flex h-full w-full rounded-lg border p-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
@@ -13429,7 +13437,7 @@ function RoundPageContainer({
13429
13437
  rewriteUrl({ page: module, id, additionalParameters: { section: key } });
13430
13438
  },
13431
13439
  children: [
13432
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsList, { className: ``, children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: _nullishCoalesce(_optionalChain([tab, 'access', _365 => _365.key, 'optionalAccess', _366 => _366.name]), () => ( tab.label)), className: `px-4`, children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) }) }),
13440
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsList, { className: ``, children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: _nullishCoalesce(_optionalChain([tab, 'access', _367 => _367.key, 'optionalAccess', _368 => _368.name]), () => ( tab.label)), className: `px-4`, children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) }) }),
13433
13441
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13434
13442
  "div",
13435
13443
  {
@@ -13437,7 +13445,7 @@ function RoundPageContainer({
13437
13445
  children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13438
13446
  TabsContent,
13439
13447
  {
13440
- value: _nullishCoalesce(_optionalChain([tab, 'access', _367 => _367.key, 'optionalAccess', _368 => _368.name]), () => ( tab.label)),
13448
+ value: _nullishCoalesce(_optionalChain([tab, 'access', _369 => _369.key, 'optionalAccess', _370 => _370.name]), () => ( tab.label)),
13441
13449
  className: tab.fillHeight ? `flex flex-1 min-h-0 w-full flex-col` : `pb-20`,
13442
13450
  children: tab.content
13443
13451
  },
@@ -13781,10 +13789,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
13781
13789
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13782
13790
  Checkbox,
13783
13791
  {
13784
- checked: _optionalChain([params, 'access', _369 => _369.checkedIds, 'optionalAccess', _370 => _370.includes, 'call', _371 => _371(row.getValue(params.name))]) || false,
13792
+ checked: _optionalChain([params, 'access', _371 => _371.checkedIds, 'optionalAccess', _372 => _372.includes, 'call', _373 => _373(row.getValue(params.name))]) || false,
13785
13793
  onCheckedChange: (value) => {
13786
13794
  row.toggleSelected(!!value);
13787
- _optionalChain([params, 'access', _372 => _372.toggleId, 'optionalCall', _373 => _373(row.getValue(params.name))]);
13795
+ _optionalChain([params, 'access', _374 => _374.toggleId, 'optionalCall', _375 => _375(row.getValue(params.name))]);
13788
13796
  },
13789
13797
  "aria-label": "Select row"
13790
13798
  }
@@ -13843,7 +13851,7 @@ function useJsonApiGet(params) {
13843
13851
  const [response, setResponse] = _react.useState.call(void 0, null);
13844
13852
  const isMounted = _react.useRef.call(void 0, true);
13845
13853
  const fetchData = _react.useCallback.call(void 0, async () => {
13846
- if (_optionalChain([params, 'access', _374 => _374.options, 'optionalAccess', _375 => _375.enabled]) === false) return;
13854
+ if (_optionalChain([params, 'access', _376 => _376.options, 'optionalAccess', _377 => _377.enabled]) === false) return;
13847
13855
  setLoading(true);
13848
13856
  setError(null);
13849
13857
  try {
@@ -13870,9 +13878,9 @@ function useJsonApiGet(params) {
13870
13878
  setLoading(false);
13871
13879
  }
13872
13880
  }
13873
- }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _376 => _376.options, 'optionalAccess', _377 => _377.enabled])]);
13881
+ }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _378 => _378.options, 'optionalAccess', _379 => _379.enabled])]);
13874
13882
  const fetchNextPage = _react.useCallback.call(void 0, async () => {
13875
- if (!_optionalChain([response, 'optionalAccess', _378 => _378.nextPage])) return;
13883
+ if (!_optionalChain([response, 'optionalAccess', _380 => _380.nextPage])) return;
13876
13884
  setLoading(true);
13877
13885
  try {
13878
13886
  const nextResponse = await response.nextPage();
@@ -13893,7 +13901,7 @@ function useJsonApiGet(params) {
13893
13901
  }
13894
13902
  }, [response]);
13895
13903
  const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
13896
- if (!_optionalChain([response, 'optionalAccess', _379 => _379.prevPage])) return;
13904
+ if (!_optionalChain([response, 'optionalAccess', _381 => _381.prevPage])) return;
13897
13905
  setLoading(true);
13898
13906
  try {
13899
13907
  const prevResponse = await response.prevPage();
@@ -13919,15 +13927,15 @@ function useJsonApiGet(params) {
13919
13927
  return () => {
13920
13928
  isMounted.current = false;
13921
13929
  };
13922
- }, [fetchData, ..._optionalChain([params, 'access', _380 => _380.options, 'optionalAccess', _381 => _381.deps]) || []]);
13930
+ }, [fetchData, ..._optionalChain([params, 'access', _382 => _382.options, 'optionalAccess', _383 => _383.deps]) || []]);
13923
13931
  return {
13924
13932
  data,
13925
13933
  loading,
13926
13934
  error,
13927
13935
  response,
13928
13936
  refetch: fetchData,
13929
- hasNextPage: !!_optionalChain([response, 'optionalAccess', _382 => _382.next]),
13930
- hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _383 => _383.prev]),
13937
+ hasNextPage: !!_optionalChain([response, 'optionalAccess', _384 => _384.next]),
13938
+ hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _385 => _385.prev]),
13931
13939
  fetchNextPage,
13932
13940
  fetchPreviousPage
13933
13941
  };
@@ -14005,17 +14013,17 @@ function useJsonApiMutation(config) {
14005
14013
  if (apiResponse.ok) {
14006
14014
  const resultData = apiResponse.data;
14007
14015
  setData(resultData);
14008
- _optionalChain([config, 'access', _384 => _384.onSuccess, 'optionalCall', _385 => _385(resultData)]);
14016
+ _optionalChain([config, 'access', _386 => _386.onSuccess, 'optionalCall', _387 => _387(resultData)]);
14009
14017
  return resultData;
14010
14018
  } else {
14011
14019
  setError(apiResponse.error);
14012
- _optionalChain([config, 'access', _386 => _386.onError, 'optionalCall', _387 => _387(apiResponse.error)]);
14020
+ _optionalChain([config, 'access', _388 => _388.onError, 'optionalCall', _389 => _389(apiResponse.error)]);
14013
14021
  return null;
14014
14022
  }
14015
14023
  } catch (err) {
14016
14024
  const errorMessage = err instanceof Error ? err.message : "Unknown error";
14017
14025
  setError(errorMessage);
14018
- _optionalChain([config, 'access', _388 => _388.onError, 'optionalCall', _389 => _389(errorMessage)]);
14026
+ _optionalChain([config, 'access', _390 => _390.onError, 'optionalCall', _391 => _391(errorMessage)]);
14019
14027
  return null;
14020
14028
  } finally {
14021
14029
  setLoading(false);
@@ -14088,7 +14096,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
14088
14096
  {
14089
14097
  href: hasRole(_chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
14090
14098
  page: "/administration",
14091
- id: _optionalChain([_chunkXAWKRNYMjs.Modules, 'access', _390 => _390.Company, 'access', _391 => _391.pageUrl, 'optionalAccess', _392 => _392.substring, 'call', _393 => _393(1)]),
14099
+ id: _optionalChain([_chunkXAWKRNYMjs.Modules, 'access', _392 => _392.Company, 'access', _393 => _393.pageUrl, 'optionalAccess', _394 => _394.substring, 'call', _395 => _395(1)]),
14092
14100
  childPage: company.id
14093
14101
  }) : generateUrl({ page: _chunkXAWKRNYMjs.Modules.Company, id: company.id }),
14094
14102
  children: row.getValue("name")
@@ -14104,7 +14112,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
14104
14112
  })
14105
14113
  };
14106
14114
  const columns = _react.useMemo.call(void 0, () => {
14107
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _394 => _394[field], 'optionalCall', _395 => _395()])).filter((col) => col !== void 0);
14115
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _396 => _396[field], 'optionalCall', _397 => _397()])).filter((col) => col !== void 0);
14108
14116
  }, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
14109
14117
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
14110
14118
  }, "useCompanyTableStructure");
@@ -14116,7 +14124,7 @@ var GRACE_DAYS = 3;
14116
14124
  var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
14117
14125
  if (!currentUser || !_chunkSE5HIHJSjs.isRolesConfigured.call(void 0, )) return false;
14118
14126
  const adminRoleId = _chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator;
14119
- return !!_optionalChain([currentUser, 'access', _396 => _396.roles, 'optionalAccess', _397 => _397.some, 'call', _398 => _398((role) => role.id === adminRoleId)]);
14127
+ return !!_optionalChain([currentUser, 'access', _398 => _398.roles, 'optionalAccess', _399 => _399.some, 'call', _400 => _400((role) => role.id === adminRoleId)]);
14120
14128
  }, "isAdministrator");
14121
14129
  function useSubscriptionStatus() {
14122
14130
  const { company, currentUser } = useCurrentUserContext();
@@ -14233,7 +14241,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
14233
14241
  })
14234
14242
  };
14235
14243
  const columns = _react.useMemo.call(void 0, () => {
14236
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _399 => _399[field], 'optionalCall', _400 => _400()])).filter((col) => col !== void 0);
14244
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _401 => _401[field], 'optionalCall', _402 => _402()])).filter((col) => col !== void 0);
14237
14245
  }, [params.fields, fieldColumnMap, t, generateUrl]);
14238
14246
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
14239
14247
  }, "useRoleTableStructure");
@@ -14334,11 +14342,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
14334
14342
  return params.fields.map((field) => {
14335
14343
  const localHandler = fieldColumnMap[field];
14336
14344
  if (localHandler) return localHandler();
14337
- const customHandler = _optionalChain([params, 'access', _401 => _401.context, 'optionalAccess', _402 => _402.customCells, 'optionalAccess', _403 => _403[field]]);
14345
+ const customHandler = _optionalChain([params, 'access', _403 => _403.context, 'optionalAccess', _404 => _404.customCells, 'optionalAccess', _405 => _405[field]]);
14338
14346
  if (customHandler) return customHandler({ t });
14339
14347
  return void 0;
14340
14348
  }).filter((col) => col !== void 0);
14341
- }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _404 => _404.context, 'optionalAccess', _405 => _405.customCells])]);
14349
+ }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _406 => _406.context, 'optionalAccess', _407 => _407.customCells])]);
14342
14350
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
14343
14351
  }, "useContentTableStructure");
14344
14352
 
@@ -14673,7 +14681,7 @@ function ContentTableSearch({ data }) {
14673
14681
  const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
14674
14682
  if (!isExpanded) {
14675
14683
  setIsFocused(true);
14676
- setTimeout(() => _optionalChain([inputRef, 'access', _406 => _406.current, 'optionalAccess', _407 => _407.focus, 'call', _408 => _408()]), 50);
14684
+ setTimeout(() => _optionalChain([inputRef, 'access', _408 => _408.current, 'optionalAccess', _409 => _409.focus, 'call', _410 => _410()]), 50);
14677
14685
  }
14678
14686
  }, "handleSearchIconClick");
14679
14687
  const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
@@ -14739,7 +14747,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
14739
14747
  props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
14740
14748
  );
14741
14749
  const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
14742
- data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _409 => _409.data]), () => ( EMPTY_ARRAY)),
14750
+ data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _411 => _411.data]), () => ( EMPTY_ARRAY)),
14743
14751
  fields,
14744
14752
  checkedIds,
14745
14753
  toggleId,
@@ -14808,12 +14816,12 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
14808
14816
  ) }),
14809
14817
  table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
14810
14818
  const meta = header.column.columnDef.meta;
14811
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _410 => _410.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
14819
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _412 => _412.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
14812
14820
  }) }, headerGroup.id))
14813
14821
  ] }),
14814
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _411 => _411.rows, 'optionalAccess', _412 => _412.length]) ? rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
14822
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _413 => _413.rows, 'optionalAccess', _414 => _414.length]) ? rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
14815
14823
  const meta = cell.column.columnDef.meta;
14816
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _413 => _413.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
14824
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _415 => _415.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
14817
14825
  }) }, 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: "No results." }) }) }),
14818
14826
  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: [
14819
14827
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -14823,7 +14831,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
14823
14831
  size: "sm",
14824
14832
  onClick: (e) => {
14825
14833
  e.preventDefault();
14826
- _optionalChain([data, 'access', _414 => _414.previous, 'optionalCall', _415 => _415(true)]);
14834
+ _optionalChain([data, 'access', _416 => _416.previous, 'optionalCall', _417 => _417(true)]);
14827
14835
  },
14828
14836
  disabled: !data.previous,
14829
14837
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
@@ -14837,7 +14845,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
14837
14845
  size: "sm",
14838
14846
  onClick: (e) => {
14839
14847
  e.preventDefault();
14840
- _optionalChain([data, 'access', _416 => _416.next, 'optionalCall', _417 => _417(true)]);
14848
+ _optionalChain([data, 'access', _418 => _418.next, 'optionalCall', _419 => _419(true)]);
14841
14849
  },
14842
14850
  disabled: !data.next,
14843
14851
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" })
@@ -14858,7 +14866,7 @@ function ContentListGrid(props) {
14858
14866
  if (!data.next || !sentinelRef.current) return;
14859
14867
  const observer = new IntersectionObserver(
14860
14868
  (entries) => {
14861
- if (_optionalChain([entries, 'access', _418 => _418[0], 'optionalAccess', _419 => _419.isIntersecting])) _optionalChain([data, 'access', _420 => _420.next, 'optionalCall', _421 => _421()]);
14869
+ if (_optionalChain([entries, 'access', _420 => _420[0], 'optionalAccess', _421 => _421.isIntersecting])) _optionalChain([data, 'access', _422 => _422.next, 'optionalCall', _423 => _423()]);
14862
14870
  },
14863
14871
  { threshold: 0.1, rootMargin: "200px" }
14864
14872
  );
@@ -15608,7 +15616,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
15608
15616
  newDigits[index] = digit;
15609
15617
  setDigits(newDigits);
15610
15618
  if (digit && index < 5) {
15611
- _optionalChain([inputRefs, 'access', _422 => _422.current, 'access', _423 => _423[index + 1], 'optionalAccess', _424 => _424.focus, 'call', _425 => _425()]);
15619
+ _optionalChain([inputRefs, 'access', _424 => _424.current, 'access', _425 => _425[index + 1], 'optionalAccess', _426 => _426.focus, 'call', _427 => _427()]);
15612
15620
  }
15613
15621
  const code = newDigits.join("");
15614
15622
  if (code.length === 6 && newDigits.every((d) => d !== "")) {
@@ -15617,7 +15625,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
15617
15625
  }, "handleChange");
15618
15626
  const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
15619
15627
  if (e.key === "Backspace" && !digits[index] && index > 0) {
15620
- _optionalChain([inputRefs, 'access', _426 => _426.current, 'access', _427 => _427[index - 1], 'optionalAccess', _428 => _428.focus, 'call', _429 => _429()]);
15628
+ _optionalChain([inputRefs, 'access', _428 => _428.current, 'access', _429 => _429[index - 1], 'optionalAccess', _430 => _430.focus, 'call', _431 => _431()]);
15621
15629
  }
15622
15630
  }, "handleKeyDown");
15623
15631
  const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
@@ -15626,7 +15634,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
15626
15634
  if (pastedData.length === 6) {
15627
15635
  const newDigits = pastedData.split("");
15628
15636
  setDigits(newDigits);
15629
- _optionalChain([inputRefs, 'access', _430 => _430.current, 'access', _431 => _431[5], 'optionalAccess', _432 => _432.focus, 'call', _433 => _433()]);
15637
+ _optionalChain([inputRefs, 'access', _432 => _432.current, 'access', _433 => _433[5], 'optionalAccess', _434 => _434.focus, 'call', _435 => _435()]);
15630
15638
  onComplete(pastedData);
15631
15639
  }
15632
15640
  }, "handlePaste");
@@ -15837,8 +15845,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
15837
15845
  try {
15838
15846
  const registrationData = await _chunkXAWKRNYMjs.TwoFactorService.getPasskeyRegistrationOptions({
15839
15847
  id: _uuid.v4.call(void 0, ),
15840
- userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _434 => _434.email]), () => ( "")),
15841
- userDisplayName: _optionalChain([currentUser, 'optionalAccess', _435 => _435.name])
15848
+ userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _436 => _436.email]), () => ( "")),
15849
+ userDisplayName: _optionalChain([currentUser, 'optionalAccess', _437 => _437.name])
15842
15850
  });
15843
15851
  const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
15844
15852
  await _chunkXAWKRNYMjs.TwoFactorService.verifyPasskeyRegistration({
@@ -15989,7 +15997,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
15989
15997
  const setup = await _chunkXAWKRNYMjs.TwoFactorService.setupTotp({
15990
15998
  id: _uuid.v4.call(void 0, ),
15991
15999
  name: name.trim(),
15992
- accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _436 => _436.email]), () => ( ""))
16000
+ accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _438 => _438.email]), () => ( ""))
15993
16001
  });
15994
16002
  setQrCodeUri(setup.qrCodeUri);
15995
16003
  setAuthenticatorId(setup.authenticatorId);
@@ -16123,7 +16131,7 @@ function TwoFactorSettings() {
16123
16131
  if (isLoading) {
16124
16132
  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") }) }) });
16125
16133
  }
16126
- const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _437 => _437.isEnabled]), () => ( false));
16134
+ const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _439 => _439.isEnabled]), () => ( false));
16127
16135
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
16128
16136
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
16129
16137
  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" }),
@@ -16161,7 +16169,7 @@ function TwoFactorSettings() {
16161
16169
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
16162
16170
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
16163
16171
  ] }),
16164
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _438 => _438.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
16172
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _440 => _440.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
16165
16173
  ] }) }),
16166
16174
  !isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
16167
16175
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
@@ -16339,9 +16347,9 @@ function AcceptInvitation() {
16339
16347
  });
16340
16348
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
16341
16349
  try {
16342
- if (!_optionalChain([params, 'optionalAccess', _439 => _439.code])) return;
16350
+ if (!_optionalChain([params, 'optionalAccess', _441 => _441.code])) return;
16343
16351
  const payload = {
16344
- code: _optionalChain([params, 'optionalAccess', _440 => _440.code]),
16352
+ code: _optionalChain([params, 'optionalAccess', _442 => _442.code]),
16345
16353
  password: values.password
16346
16354
  };
16347
16355
  await _chunkXAWKRNYMjs.AuthService.acceptInvitation(payload);
@@ -16691,7 +16699,7 @@ function Logout({ storageKeys }) {
16691
16699
  const generateUrl = usePageUrlGenerator();
16692
16700
  _react.useEffect.call(void 0, () => {
16693
16701
  const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
16694
- if (_optionalChain([storageKeys, 'optionalAccess', _441 => _441.length])) {
16702
+ if (_optionalChain([storageKeys, 'optionalAccess', _443 => _443.length])) {
16695
16703
  clearClientStorage(storageKeys);
16696
16704
  }
16697
16705
  await _chunkXAWKRNYMjs.AuthService.logout();
@@ -16714,14 +16722,14 @@ function RefreshUser() {
16714
16722
  setUser(fullUser);
16715
16723
  const token = {
16716
16724
  userId: fullUser.id,
16717
- companyId: _optionalChain([fullUser, 'access', _442 => _442.company, 'optionalAccess', _443 => _443.id]),
16725
+ companyId: _optionalChain([fullUser, 'access', _444 => _444.company, 'optionalAccess', _445 => _445.id]),
16718
16726
  roles: fullUser.roles.map((role) => role.id),
16719
- features: _nullishCoalesce(_optionalChain([fullUser, 'access', _444 => _444.company, 'optionalAccess', _445 => _445.features, 'optionalAccess', _446 => _446.map, 'call', _447 => _447((feature) => feature.id)]), () => ( [])),
16727
+ features: _nullishCoalesce(_optionalChain([fullUser, 'access', _446 => _446.company, 'optionalAccess', _447 => _447.features, 'optionalAccess', _448 => _448.map, 'call', _449 => _449((feature) => feature.id)]), () => ( [])),
16720
16728
  modules: fullUser.modules.map((module) => {
16721
16729
  return { id: module.id, permissions: module.permissions };
16722
16730
  })
16723
16731
  };
16724
- await _optionalChain([_chunkXAWKRNYMjs.getTokenHandler.call(void 0, ), 'optionalAccess', _448 => _448.updateToken, 'call', _449 => _449(token)]);
16732
+ await _optionalChain([_chunkXAWKRNYMjs.getTokenHandler.call(void 0, ), 'optionalAccess', _450 => _450.updateToken, 'call', _451 => _451(token)]);
16725
16733
  _cookiesnext.deleteCookie.call(void 0, "reloadData");
16726
16734
  }
16727
16735
  }, "loadFullUser");
@@ -16785,9 +16793,9 @@ function ResetPassword() {
16785
16793
  });
16786
16794
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
16787
16795
  try {
16788
- if (!_optionalChain([params, 'optionalAccess', _450 => _450.code])) return;
16796
+ if (!_optionalChain([params, 'optionalAccess', _452 => _452.code])) return;
16789
16797
  const payload = {
16790
- code: _optionalChain([params, 'optionalAccess', _451 => _451.code]),
16798
+ code: _optionalChain([params, 'optionalAccess', _453 => _453.code]),
16791
16799
  password: values.password
16792
16800
  };
16793
16801
  await _chunkXAWKRNYMjs.AuthService.resetPassword(payload);
@@ -17136,7 +17144,7 @@ function extractHeadings(blocks) {
17136
17144
  function processBlocks(blockArray) {
17137
17145
  for (const block of blockArray) {
17138
17146
  if (block.type === "heading") {
17139
- const level = _optionalChain([block, 'access', _452 => _452.props, 'optionalAccess', _453 => _453.level]) || 1;
17147
+ const level = _optionalChain([block, 'access', _454 => _454.props, 'optionalAccess', _455 => _455.level]) || 1;
17140
17148
  const text = extractTextFromContent(block.content);
17141
17149
  if (text.trim()) {
17142
17150
  headings.push({
@@ -17479,7 +17487,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
17479
17487
  })
17480
17488
  };
17481
17489
  const columns = _react.useMemo.call(void 0, () => {
17482
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _454 => _454[field], 'optionalCall', _455 => _455()])).filter((col) => col !== void 0);
17490
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _456 => _456[field], 'optionalCall', _457 => _457()])).filter((col) => col !== void 0);
17483
17491
  }, [params.fields, fieldColumnMap, t, generateUrl]);
17484
17492
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17485
17493
  }, "useHowToTableStructure");
@@ -17545,7 +17553,7 @@ function HowToMultiSelector({
17545
17553
  retriever: (params) => _chunkXAWKRNYMjs.HowToService.findMany(params),
17546
17554
  module: _chunkXAWKRNYMjs.Modules.HowTo,
17547
17555
  getLabel: (howTo) => howTo.name,
17548
- excludeId: _optionalChain([currentHowTo, 'optionalAccess', _456 => _456.id]),
17556
+ excludeId: _optionalChain([currentHowTo, 'optionalAccess', _458 => _458.id]),
17549
17557
  onChange
17550
17558
  }
17551
17559
  );
@@ -17610,7 +17618,7 @@ function HowToSelector({
17610
17618
  }, "setHowTo");
17611
17619
  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: [
17612
17620
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
17613
- /* @__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', _457 => _457.value, 'optionalAccess', _458 => _458.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 }) }))) }) }) }),
17621
+ /* @__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', _459 => _459.value, 'optionalAccess', _460 => _460.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 }) }))) }) }) }),
17614
17622
  field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
17615
17623
  _lucidereact.CircleX,
17616
17624
  {
@@ -17965,9 +17973,9 @@ function CitationsTab({ citations, sources }) {
17965
17973
  ] }) }),
17966
17974
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
17967
17975
  const isOpen = expanded.has(chunk.id);
17968
- const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _459 => _459.get, 'call', _460 => _460(chunk.nodeId)]) : void 0;
17976
+ const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _461 => _461.get, 'call', _462 => _462(chunk.nodeId)]) : void 0;
17969
17977
  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")));
17970
- const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _461 => _461.name]), () => ( fallbackName));
17978
+ const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _463 => _463.name]), () => ( fallbackName));
17971
17979
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
17972
17980
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
17973
17981
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -18014,7 +18022,7 @@ function ContentsTab({ citations, sources }) {
18014
18022
  for (const c of citations) {
18015
18023
  const id = c.nodeId;
18016
18024
  if (!id) continue;
18017
- const source = _optionalChain([sources, 'optionalAccess', _462 => _462.get, 'call', _463 => _463(id)]);
18025
+ const source = _optionalChain([sources, 'optionalAccess', _464 => _464.get, 'call', _465 => _465(id)]);
18018
18026
  if (!source) continue;
18019
18027
  const existing = map.get(id);
18020
18028
  if (existing) {
@@ -18079,7 +18087,7 @@ function UsersTab({ users, citations, sources }) {
18079
18087
  const generate = usePageUrlGenerator();
18080
18088
  const userMap = /* @__PURE__ */ new Map();
18081
18089
  for (const u of users) {
18082
- if (!_optionalChain([u, 'optionalAccess', _464 => _464.id])) continue;
18090
+ if (!_optionalChain([u, 'optionalAccess', _466 => _466.id])) continue;
18083
18091
  userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
18084
18092
  }
18085
18093
  if (citations && sources) {
@@ -18192,7 +18200,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
18192
18200
  }
18193
18201
  return ids.size;
18194
18202
  }, [message.citations, sources]);
18195
- const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _465 => _465.length]), () => ( 0));
18203
+ const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _467 => _467.length]), () => ( 0));
18196
18204
  const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
18197
18205
  const visibleTabs = [];
18198
18206
  if (suggestionsCount > 0) visibleTabs.push("suggested");
@@ -18251,8 +18259,8 @@ var SourcesFetcher = class extends _chunkXAWKRNYMjs.ClientAbstractService {
18251
18259
  static async findManyByIds(params) {
18252
18260
  const endpoint = new (0, _chunkXAWKRNYMjs.EndpointCreator)({ endpoint: params.module });
18253
18261
  endpoint.addAdditionalParam(params.idsParam, params.ids.join(","));
18254
- if (_optionalChain([params, 'access', _466 => _466.module, 'access', _467 => _467.inclusions, 'optionalAccess', _468 => _468.lists, 'optionalAccess', _469 => _469.fields])) endpoint.limitToFields(params.module.inclusions.lists.fields);
18255
- if (_optionalChain([params, 'access', _470 => _470.module, 'access', _471 => _471.inclusions, 'optionalAccess', _472 => _472.lists, 'optionalAccess', _473 => _473.types])) endpoint.limitToType(params.module.inclusions.lists.types);
18262
+ if (_optionalChain([params, 'access', _468 => _468.module, 'access', _469 => _469.inclusions, 'optionalAccess', _470 => _470.lists, 'optionalAccess', _471 => _471.fields])) endpoint.limitToFields(params.module.inclusions.lists.fields);
18263
+ if (_optionalChain([params, 'access', _472 => _472.module, 'access', _473 => _473.inclusions, 'optionalAccess', _474 => _474.lists, 'optionalAccess', _475 => _475.types])) endpoint.limitToType(params.module.inclusions.lists.types);
18256
18264
  return this.callApi({
18257
18265
  type: params.module,
18258
18266
  method: "GET" /* GET */,
@@ -18331,7 +18339,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
18331
18339
  return void 0;
18332
18340
  }
18333
18341
  })()));
18334
- if (_optionalChain([author, 'optionalAccess', _474 => _474.id])) userMap.set(author.id, author);
18342
+ if (_optionalChain([author, 'optionalAccess', _476 => _476.id])) userMap.set(author.id, author);
18335
18343
  }
18336
18344
  return Array.from(userMap.values());
18337
18345
  }, [resolved]);
@@ -18353,14 +18361,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, MessageSourcesContainer, "MessageSourcesCon
18353
18361
  function MessageItem({ message, isLatestAssistant, onSelectFollowUp, failedMessageIds, onRetry }) {
18354
18362
  const t = _nextintl.useTranslations.call(void 0, );
18355
18363
  const isUser = message.role === "user";
18356
- const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _475 => _475.has, 'call', _476 => _476(message.id)]);
18364
+ const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _477 => _477.has, 'call', _478 => _478(message.id)]);
18357
18365
  if (isUser) {
18358
18366
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-end gap-1", children: [
18359
18367
  /* @__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 }),
18360
18368
  isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
18361
18369
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
18362
18370
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.send_failed") }),
18363
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall', _477 => _477(message.id)]), children: t("features.assistant.retry") })
18371
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall', _479 => _479(message.id)]), children: t("features.assistant.retry") })
18364
18372
  ] })
18365
18373
  ] });
18366
18374
  }
@@ -18426,7 +18434,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AssistantStatusLine, "AssistantStatusLine")
18426
18434
  function AssistantThread({ messages, sending, status, onSelectFollowUp, failedMessageIds, onRetry }) {
18427
18435
  const endRef = _react.useRef.call(void 0, null);
18428
18436
  _react.useEffect.call(void 0, () => {
18429
- _optionalChain([endRef, 'access', _478 => _478.current, 'optionalAccess', _479 => _479.scrollIntoView, 'call', _480 => _480({ behavior: "smooth" })]);
18437
+ _optionalChain([endRef, 'access', _480 => _480.current, 'optionalAccess', _481 => _481.scrollIntoView, 'call', _482 => _482({ behavior: "smooth" })]);
18430
18438
  }, [messages.length, sending]);
18431
18439
  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: [
18432
18440
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -18454,7 +18462,7 @@ function AssistantContainer() {
18454
18462
  AssistantSidebar,
18455
18463
  {
18456
18464
  threads: ctx.threads,
18457
- activeId: _optionalChain([ctx, 'access', _481 => _481.assistant, 'optionalAccess', _482 => _482.id]),
18465
+ activeId: _optionalChain([ctx, 'access', _483 => _483.assistant, 'optionalAccess', _484 => _484.id]),
18458
18466
  onSelect: ctx.selectThread,
18459
18467
  onNew: ctx.startNew
18460
18468
  }
@@ -18547,14 +18555,14 @@ function NotificationsList({ archived }) {
18547
18555
  ] }),
18548
18556
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
18549
18557
  ] }) }) }, i)) }), "LoadingSkeleton");
18550
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _483 => _483.data, 'optionalAccess', _484 => _484.map, 'call', _485 => _485((notification) => {
18558
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _485 => _485.data, 'optionalAccess', _486 => _486.map, 'call', _487 => _487((notification) => {
18551
18559
  const notificationData = generateNotificationData({ notification, generateUrl });
18552
18560
  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: [
18553
18561
  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: _chunkXAWKRNYMjs.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" }),
18554
18562
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
18555
18563
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
18556
18564
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
18557
- actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _486 => _486.actor, 'optionalAccess', _487 => _487.name]), () => ( "")),
18565
+ actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _488 => _488.actor, 'optionalAccess', _489 => _489.name]), () => ( "")),
18558
18566
  title: notificationData.title
18559
18567
  }) }),
18560
18568
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
@@ -18904,7 +18912,7 @@ var DEFAULT_TRANSLATIONS = {
18904
18912
  invalidEmail: "Please enter a valid email address"
18905
18913
  };
18906
18914
  async function copyToClipboard(text) {
18907
- if (_optionalChain([navigator, 'access', _488 => _488.clipboard, 'optionalAccess', _489 => _489.writeText])) {
18915
+ if (_optionalChain([navigator, 'access', _490 => _490.clipboard, 'optionalAccess', _491 => _491.writeText])) {
18908
18916
  try {
18909
18917
  await navigator.clipboard.writeText(text);
18910
18918
  return true;
@@ -18946,7 +18954,7 @@ function ReferralWidget({
18946
18954
  const linkInputRef = _react.useRef.call(void 0, null);
18947
18955
  const config = _chunkSE5HIHJSjs.getReferralConfig.call(void 0, );
18948
18956
  const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
18949
- const referralUrl = _optionalChain([stats, 'optionalAccess', _490 => _490.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
18957
+ const referralUrl = _optionalChain([stats, 'optionalAccess', _492 => _492.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
18950
18958
  if (!_chunkSE5HIHJSjs.isReferralEnabled.call(void 0, )) {
18951
18959
  return null;
18952
18960
  }
@@ -18956,7 +18964,7 @@ function ReferralWidget({
18956
18964
  if (success) {
18957
18965
  setCopied(true);
18958
18966
  _chunkXAWKRNYMjs.showToast.call(void 0, t.copiedMessage);
18959
- _optionalChain([onLinkCopied, 'optionalCall', _491 => _491()]);
18967
+ _optionalChain([onLinkCopied, 'optionalCall', _493 => _493()]);
18960
18968
  setTimeout(() => setCopied(false), 2e3);
18961
18969
  } else {
18962
18970
  _chunkXAWKRNYMjs.showError.call(void 0, t.copyError);
@@ -18970,12 +18978,12 @@ function ReferralWidget({
18970
18978
  try {
18971
18979
  await sendInvite(email);
18972
18980
  _chunkXAWKRNYMjs.showToast.call(void 0, t.inviteSent);
18973
- _optionalChain([onInviteSent, 'optionalCall', _492 => _492(email)]);
18981
+ _optionalChain([onInviteSent, 'optionalCall', _494 => _494(email)]);
18974
18982
  setEmail("");
18975
18983
  } catch (err) {
18976
18984
  const error2 = err instanceof Error ? err : new Error(t.inviteError);
18977
18985
  _chunkXAWKRNYMjs.showError.call(void 0, error2.message);
18978
- _optionalChain([onInviteError, 'optionalCall', _493 => _493(error2)]);
18986
+ _optionalChain([onInviteError, 'optionalCall', _495 => _495(error2)]);
18979
18987
  }
18980
18988
  }, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
18981
18989
  const handleEmailKeyDown = _react.useCallback.call(void 0,
@@ -19729,7 +19737,7 @@ function OAuthClientList({
19729
19737
  OAuthClientCard,
19730
19738
  {
19731
19739
  client,
19732
- onClick: () => _optionalChain([onClientClick, 'optionalCall', _494 => _494(client)]),
19740
+ onClick: () => _optionalChain([onClientClick, 'optionalCall', _496 => _496(client)]),
19733
19741
  onEdit: onEditClick ? () => onEditClick(client) : void 0,
19734
19742
  onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
19735
19743
  },
@@ -19745,11 +19753,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
19745
19753
  function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
19746
19754
  const isEditMode = !!client;
19747
19755
  const [formState, setFormState] = _react.useState.call(void 0, {
19748
- name: _optionalChain([client, 'optionalAccess', _495 => _495.name]) || "",
19749
- description: _optionalChain([client, 'optionalAccess', _496 => _496.description]) || "",
19750
- redirectUris: _optionalChain([client, 'optionalAccess', _497 => _497.redirectUris, 'optionalAccess', _498 => _498.length]) ? client.redirectUris : [""],
19751
- allowedScopes: _optionalChain([client, 'optionalAccess', _499 => _499.allowedScopes]) || [],
19752
- isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _500 => _500.isConfidential]), () => ( true))
19756
+ name: _optionalChain([client, 'optionalAccess', _497 => _497.name]) || "",
19757
+ description: _optionalChain([client, 'optionalAccess', _498 => _498.description]) || "",
19758
+ redirectUris: _optionalChain([client, 'optionalAccess', _499 => _499.redirectUris, 'optionalAccess', _500 => _500.length]) ? client.redirectUris : [""],
19759
+ allowedScopes: _optionalChain([client, 'optionalAccess', _501 => _501.allowedScopes]) || [],
19760
+ isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _502 => _502.isConfidential]), () => ( true))
19753
19761
  });
19754
19762
  const [errors, setErrors] = _react.useState.call(void 0, {});
19755
19763
  const validate = _react.useCallback.call(void 0, () => {
@@ -19977,7 +19985,7 @@ function OAuthClientDetail({
19977
19985
  ] }),
19978
19986
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
19979
19987
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
19980
- /* @__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([_chunkXAWKRNYMjs.OAUTH_SCOPE_DISPLAY, 'access', _501 => _501[scope], 'optionalAccess', _502 => _502.name]) || scope }, scope)) })
19988
+ /* @__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([_chunkXAWKRNYMjs.OAUTH_SCOPE_DISPLAY, 'access', _503 => _503[scope], 'optionalAccess', _504 => _504.name]) || scope }, scope)) })
19981
19989
  ] }),
19982
19990
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
19983
19991
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
@@ -20121,7 +20129,7 @@ function OAuthConsentScreen({
20121
20129
  if (error || !clientInfo) {
20122
20130
  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: [
20123
20131
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
20124
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _503 => _503.message]) || "Invalid authorization request. Please try again." })
20132
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _505 => _505.message]) || "Invalid authorization request. Please try again." })
20125
20133
  ] }) }) }) });
20126
20134
  }
20127
20135
  const { client, scopes } = clientInfo;
@@ -20337,7 +20345,7 @@ function WaitlistForm({ onSuccess }) {
20337
20345
  questionnaire: values.questionnaire
20338
20346
  });
20339
20347
  setIsSuccess(true);
20340
- _optionalChain([onSuccess, 'optionalCall', _504 => _504()]);
20348
+ _optionalChain([onSuccess, 'optionalCall', _506 => _506()]);
20341
20349
  } catch (e) {
20342
20350
  errorToast({ error: e });
20343
20351
  } finally {
@@ -20975,7 +20983,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
20975
20983
  ] }),
20976
20984
  roleIds.map((roleId) => {
20977
20985
  const roleTokens = block[roleId];
20978
- const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _505 => _505[roleId]]), () => ( roleId));
20986
+ const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _507 => _507[roleId]]), () => ( roleId));
20979
20987
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
20980
20988
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
20981
20989
  _chunkSE5HIHJSjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -21012,7 +21020,7 @@ function RbacContainer() {
21012
21020
  }, []);
21013
21021
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
21014
21022
  if (!matrix) return [];
21015
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _506 => _506[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _507 => _507[b]]), () => ( b))));
21023
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _508 => _508[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _509 => _509[b]]), () => ( b))));
21016
21024
  }, [matrix, moduleNames]);
21017
21025
  const roleIds = _react.useMemo.call(void 0, () => {
21018
21026
  if (roleNames) {
@@ -21075,7 +21083,7 @@ function RbacContainer() {
21075
21083
  id === selectedModuleId && "bg-muted font-medium text-foreground",
21076
21084
  id !== selectedModuleId && "text-muted-foreground"
21077
21085
  ),
21078
- children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _508 => _508[id]]), () => ( id))
21086
+ children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _510 => _510[id]]), () => ( id))
21079
21087
  }
21080
21088
  ) }, id)) }) }),
21081
21089
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: selectedModuleId && selectedBlock ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -21083,7 +21091,7 @@ function RbacContainer() {
21083
21091
  {
21084
21092
  moduleId: selectedModuleId,
21085
21093
  block: selectedBlock,
21086
- moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _509 => _509[selectedModuleId]]), () => ( selectedModuleId)),
21094
+ moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _511 => _511[selectedModuleId]]), () => ( selectedModuleId)),
21087
21095
  roleIds,
21088
21096
  roleNames,
21089
21097
  onOpenPicker: openPicker
@@ -21094,12 +21102,12 @@ function RbacContainer() {
21094
21102
  RbacPermissionPicker,
21095
21103
  {
21096
21104
  open: !!activePicker,
21097
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _510 => _510.anchor]), () => ( null)),
21105
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _512 => _512.anchor]), () => ( null)),
21098
21106
  value: activeValue,
21099
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _511 => _511.isRoleColumn]), () => ( false)),
21107
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _513 => _513.isRoleColumn]), () => ( false)),
21100
21108
  knownSegments: activeSegments,
21101
21109
  onSetValue: handleSetValue,
21102
- onClear: _optionalChain([activePicker, 'optionalAccess', _512 => _512.isRoleColumn]) ? handleClear : void 0,
21110
+ onClear: _optionalChain([activePicker, 'optionalAccess', _514 => _514.isRoleColumn]) ? handleClear : void 0,
21103
21111
  onClose: closePicker
21104
21112
  }
21105
21113
  )
@@ -21166,7 +21174,7 @@ function RbacByRoleContainer() {
21166
21174
  }, [roleNames]);
21167
21175
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
21168
21176
  if (!matrix) return [];
21169
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _513 => _513[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _514 => _514[b]]), () => ( b))));
21177
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _515 => _515[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _516 => _516[b]]), () => ( b))));
21170
21178
  }, [matrix, moduleNames]);
21171
21179
  _react.useEffect.call(void 0, () => {
21172
21180
  if (!selectedRoleId && sortedRoleIds.length > 0) {
@@ -21215,7 +21223,7 @@ function RbacByRoleContainer() {
21215
21223
  id === selectedRoleId && "bg-muted font-medium text-foreground",
21216
21224
  id !== selectedRoleId && "text-muted-foreground"
21217
21225
  ),
21218
- children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _515 => _515[id]]), () => ( id))
21226
+ children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _517 => _517[id]]), () => ( id))
21219
21227
  }
21220
21228
  ) }, id)) }) }),
21221
21229
  /* @__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: [
@@ -21235,7 +21243,7 @@ function RbacByRoleContainer() {
21235
21243
  if (!block) return null;
21236
21244
  const defaultTokens = _nullishCoalesce(block.default, () => ( []));
21237
21245
  const roleTokens = block[selectedRoleId];
21238
- const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _516 => _516[moduleId]]), () => ( moduleId));
21246
+ const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _518 => _518[moduleId]]), () => ( moduleId));
21239
21247
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
21240
21248
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
21241
21249
  "td",
@@ -21250,7 +21258,7 @@ function RbacByRoleContainer() {
21250
21258
  _chunkSE5HIHJSjs.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))
21251
21259
  ] }),
21252
21260
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
21253
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _517 => _517[selectedRoleId]]), () => ( selectedRoleId)) }),
21261
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _519 => _519[selectedRoleId]]), () => ( selectedRoleId)) }),
21254
21262
  _chunkSE5HIHJSjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
21255
21263
  CellButton3,
21256
21264
  {
@@ -21271,12 +21279,12 @@ function RbacByRoleContainer() {
21271
21279
  RbacPermissionPicker,
21272
21280
  {
21273
21281
  open: !!activePicker,
21274
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _518 => _518.anchor]), () => ( null)),
21282
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _520 => _520.anchor]), () => ( null)),
21275
21283
  value: activeValue,
21276
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _519 => _519.isRoleColumn]), () => ( false)),
21284
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _521 => _521.isRoleColumn]), () => ( false)),
21277
21285
  knownSegments: activeSegments,
21278
21286
  onSetValue: handleSetValue,
21279
- onClear: _optionalChain([activePicker, 'optionalAccess', _520 => _520.isRoleColumn]) ? handleClear : void 0,
21287
+ onClear: _optionalChain([activePicker, 'optionalAccess', _522 => _522.isRoleColumn]) ? handleClear : void 0,
21280
21288
  onClose: closePicker
21281
21289
  }
21282
21290
  )
@@ -21793,4 +21801,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
21793
21801
 
21794
21802
 
21795
21803
  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.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.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.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.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.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.createMentionInlineContentSpec = createMentionInlineContentSpec; exports.BlockNoteEditorMentionSuggestionMenu = BlockNoteEditorMentionSuggestionMenu; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.FormFieldWrapper = FormFieldWrapper; exports.EntityMultiSelector = EntityMultiSelector; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorDiscardDialog = CommonEditorDiscardDialog; exports.CommonEditorTrigger = CommonEditorTrigger; exports.useEditorDialog = useEditorDialog; exports.EditorSheet = EditorSheet; exports.DatePickerPopover = DatePickerPopover; exports.DateRangeSelector = DateRangeSelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.FormCheckbox = FormCheckbox; exports.FormBlockNote = FormBlockNote; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; 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.FormFeatures = FormFeatures; exports.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; 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.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.HowToEditor = HowToEditor; exports.HowToProvider = HowToProvider; exports.useHowToContext = useHowToContext; exports.HowToContent = HowToContent; exports.HowToDetails = HowToDetails; exports.HowToContainer = HowToContainer; exports.HowToList = HowToList; exports.HowToListContainer = HowToListContainer; exports.HowToMultiSelector = HowToMultiSelector; exports.HowToSelector = HowToSelector; exports.AssistantProvider = AssistantProvider; exports.useAssistantContext = useAssistantContext; exports.MessageSourcesPanel = MessageSourcesPanel; exports.MessageItem = MessageItem; exports.MessageList = MessageList; 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;
21796
- //# sourceMappingURL=chunk-2S3UA52H.js.map
21804
+ //# sourceMappingURL=chunk-6PDFD446.js.map