@carlonicora/nextjs-jsonapi 1.90.0 → 1.91.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.
@@ -9211,7 +9211,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, FormCheckbox, "FormCheckbox");
9211
9211
  var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
9212
9212
 
9213
9213
 
9214
- var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-QIM2ZKC6.js"))), {
9214
+ var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-IQAOVSUT.js"))), {
9215
9215
  ssr: false
9216
9216
  });
9217
9217
  var BlockNoteEditorContainer = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
@@ -13630,15 +13630,22 @@ var mentionDataAttrs = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (p)
13630
13630
  "data-mention-type": p.entityType,
13631
13631
  "data-mention-alias": p.alias
13632
13632
  }), "mentionDataAttrs");
13633
- var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn) => {
13633
+ var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn, disableMention) => {
13634
13634
  const Mention = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function Mention2(props) {
13635
- const resolved = _optionalChain([resolveFn, 'optionalCall', _377 => _377(props.id, props.entityType, props.alias)]);
13636
- if (_optionalChain([resolved, 'optionalAccess', _378 => _378.Inline])) {
13635
+ if (disableMention) {
13636
+ const resolved2 = _optionalChain([resolveFn, 'optionalCall', _377 => _377(props.id, props.entityType, props.alias)]);
13637
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _378 => _378.url]), () => ( "#")), className: "text-primary", children: [
13638
+ "@",
13639
+ props.alias
13640
+ ] });
13641
+ }
13642
+ const resolved = _optionalChain([resolveFn, 'optionalCall', _379 => _379(props.id, props.entityType, props.alias)]);
13643
+ if (_optionalChain([resolved, 'optionalAccess', _380 => _380.Inline])) {
13637
13644
  const Custom = resolved.Inline;
13638
13645
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props });
13639
13646
  }
13640
- const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _379 => _379.url]), () => ( "#"));
13641
- const handleClick = _optionalChain([resolved, 'optionalAccess', _380 => _380.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
13647
+ const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _381 => _381.url]), () => ( "#"));
13648
+ const handleClick = _optionalChain([resolved, 'optionalAccess', _382 => _382.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
13642
13649
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href, className: "text-primary", onClick: handleClick, ...mentionDataAttrs(props), children: [
13643
13650
  "@",
13644
13651
  props.alias
@@ -13889,10 +13896,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
13889
13896
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13890
13897
  Checkbox,
13891
13898
  {
13892
- checked: _optionalChain([params, 'access', _381 => _381.checkedIds, 'optionalAccess', _382 => _382.includes, 'call', _383 => _383(row.getValue(params.name))]) || false,
13899
+ checked: _optionalChain([params, 'access', _383 => _383.checkedIds, 'optionalAccess', _384 => _384.includes, 'call', _385 => _385(row.getValue(params.name))]) || false,
13893
13900
  onCheckedChange: (value) => {
13894
13901
  row.toggleSelected(!!value);
13895
- _optionalChain([params, 'access', _384 => _384.toggleId, 'optionalCall', _385 => _385(row.getValue(params.name))]);
13902
+ _optionalChain([params, 'access', _386 => _386.toggleId, 'optionalCall', _387 => _387(row.getValue(params.name))]);
13896
13903
  },
13897
13904
  "aria-label": "Select row"
13898
13905
  }
@@ -13951,7 +13958,7 @@ function useJsonApiGet(params) {
13951
13958
  const [response, setResponse] = _react.useState.call(void 0, null);
13952
13959
  const isMounted = _react.useRef.call(void 0, true);
13953
13960
  const fetchData = _react.useCallback.call(void 0, async () => {
13954
- if (_optionalChain([params, 'access', _386 => _386.options, 'optionalAccess', _387 => _387.enabled]) === false) return;
13961
+ if (_optionalChain([params, 'access', _388 => _388.options, 'optionalAccess', _389 => _389.enabled]) === false) return;
13955
13962
  setLoading(true);
13956
13963
  setError(null);
13957
13964
  try {
@@ -13978,9 +13985,9 @@ function useJsonApiGet(params) {
13978
13985
  setLoading(false);
13979
13986
  }
13980
13987
  }
13981
- }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _388 => _388.options, 'optionalAccess', _389 => _389.enabled])]);
13988
+ }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _390 => _390.options, 'optionalAccess', _391 => _391.enabled])]);
13982
13989
  const fetchNextPage = _react.useCallback.call(void 0, async () => {
13983
- if (!_optionalChain([response, 'optionalAccess', _390 => _390.nextPage])) return;
13990
+ if (!_optionalChain([response, 'optionalAccess', _392 => _392.nextPage])) return;
13984
13991
  setLoading(true);
13985
13992
  try {
13986
13993
  const nextResponse = await response.nextPage();
@@ -14001,7 +14008,7 @@ function useJsonApiGet(params) {
14001
14008
  }
14002
14009
  }, [response]);
14003
14010
  const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
14004
- if (!_optionalChain([response, 'optionalAccess', _391 => _391.prevPage])) return;
14011
+ if (!_optionalChain([response, 'optionalAccess', _393 => _393.prevPage])) return;
14005
14012
  setLoading(true);
14006
14013
  try {
14007
14014
  const prevResponse = await response.prevPage();
@@ -14027,15 +14034,15 @@ function useJsonApiGet(params) {
14027
14034
  return () => {
14028
14035
  isMounted.current = false;
14029
14036
  };
14030
- }, [fetchData, ..._optionalChain([params, 'access', _392 => _392.options, 'optionalAccess', _393 => _393.deps]) || []]);
14037
+ }, [fetchData, ..._optionalChain([params, 'access', _394 => _394.options, 'optionalAccess', _395 => _395.deps]) || []]);
14031
14038
  return {
14032
14039
  data,
14033
14040
  loading,
14034
14041
  error,
14035
14042
  response,
14036
14043
  refetch: fetchData,
14037
- hasNextPage: !!_optionalChain([response, 'optionalAccess', _394 => _394.next]),
14038
- hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _395 => _395.prev]),
14044
+ hasNextPage: !!_optionalChain([response, 'optionalAccess', _396 => _396.next]),
14045
+ hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _397 => _397.prev]),
14039
14046
  fetchNextPage,
14040
14047
  fetchPreviousPage
14041
14048
  };
@@ -14113,17 +14120,17 @@ function useJsonApiMutation(config) {
14113
14120
  if (apiResponse.ok) {
14114
14121
  const resultData = apiResponse.data;
14115
14122
  setData(resultData);
14116
- _optionalChain([config, 'access', _396 => _396.onSuccess, 'optionalCall', _397 => _397(resultData)]);
14123
+ _optionalChain([config, 'access', _398 => _398.onSuccess, 'optionalCall', _399 => _399(resultData)]);
14117
14124
  return resultData;
14118
14125
  } else {
14119
14126
  setError(apiResponse.error);
14120
- _optionalChain([config, 'access', _398 => _398.onError, 'optionalCall', _399 => _399(apiResponse.error)]);
14127
+ _optionalChain([config, 'access', _400 => _400.onError, 'optionalCall', _401 => _401(apiResponse.error)]);
14121
14128
  return null;
14122
14129
  }
14123
14130
  } catch (err) {
14124
14131
  const errorMessage = err instanceof Error ? err.message : "Unknown error";
14125
14132
  setError(errorMessage);
14126
- _optionalChain([config, 'access', _400 => _400.onError, 'optionalCall', _401 => _401(errorMessage)]);
14133
+ _optionalChain([config, 'access', _402 => _402.onError, 'optionalCall', _403 => _403(errorMessage)]);
14127
14134
  return null;
14128
14135
  } finally {
14129
14136
  setLoading(false);
@@ -14196,7 +14203,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
14196
14203
  {
14197
14204
  href: hasRole(_chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
14198
14205
  page: "/administration",
14199
- id: _optionalChain([_chunkXAWKRNYMjs.Modules, 'access', _402 => _402.Company, 'access', _403 => _403.pageUrl, 'optionalAccess', _404 => _404.substring, 'call', _405 => _405(1)]),
14206
+ id: _optionalChain([_chunkXAWKRNYMjs.Modules, 'access', _404 => _404.Company, 'access', _405 => _405.pageUrl, 'optionalAccess', _406 => _406.substring, 'call', _407 => _407(1)]),
14200
14207
  childPage: company.id
14201
14208
  }) : generateUrl({ page: _chunkXAWKRNYMjs.Modules.Company, id: company.id }),
14202
14209
  children: row.getValue("name")
@@ -14212,7 +14219,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
14212
14219
  })
14213
14220
  };
14214
14221
  const columns = _react.useMemo.call(void 0, () => {
14215
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _406 => _406[field], 'optionalCall', _407 => _407()])).filter((col) => col !== void 0);
14222
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _408 => _408[field], 'optionalCall', _409 => _409()])).filter((col) => col !== void 0);
14216
14223
  }, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
14217
14224
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
14218
14225
  }, "useCompanyTableStructure");
@@ -14224,7 +14231,7 @@ var GRACE_DAYS = 3;
14224
14231
  var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
14225
14232
  if (!currentUser || !_chunkSE5HIHJSjs.isRolesConfigured.call(void 0, )) return false;
14226
14233
  const adminRoleId = _chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator;
14227
- return !!_optionalChain([currentUser, 'access', _408 => _408.roles, 'optionalAccess', _409 => _409.some, 'call', _410 => _410((role) => role.id === adminRoleId)]);
14234
+ return !!_optionalChain([currentUser, 'access', _410 => _410.roles, 'optionalAccess', _411 => _411.some, 'call', _412 => _412((role) => role.id === adminRoleId)]);
14228
14235
  }, "isAdministrator");
14229
14236
  function useSubscriptionStatus() {
14230
14237
  const { company, currentUser } = useCurrentUserContext();
@@ -14341,7 +14348,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
14341
14348
  })
14342
14349
  };
14343
14350
  const columns = _react.useMemo.call(void 0, () => {
14344
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _411 => _411[field], 'optionalCall', _412 => _412()])).filter((col) => col !== void 0);
14351
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _413 => _413[field], 'optionalCall', _414 => _414()])).filter((col) => col !== void 0);
14345
14352
  }, [params.fields, fieldColumnMap, t, generateUrl]);
14346
14353
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
14347
14354
  }, "useRoleTableStructure");
@@ -14442,11 +14449,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
14442
14449
  return params.fields.map((field) => {
14443
14450
  const localHandler = fieldColumnMap[field];
14444
14451
  if (localHandler) return localHandler();
14445
- const customHandler = _optionalChain([params, 'access', _413 => _413.context, 'optionalAccess', _414 => _414.customCells, 'optionalAccess', _415 => _415[field]]);
14452
+ const customHandler = _optionalChain([params, 'access', _415 => _415.context, 'optionalAccess', _416 => _416.customCells, 'optionalAccess', _417 => _417[field]]);
14446
14453
  if (customHandler) return customHandler({ t });
14447
14454
  return void 0;
14448
14455
  }).filter((col) => col !== void 0);
14449
- }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _416 => _416.context, 'optionalAccess', _417 => _417.customCells])]);
14456
+ }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _418 => _418.context, 'optionalAccess', _419 => _419.customCells])]);
14450
14457
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
14451
14458
  }, "useContentTableStructure");
14452
14459
 
@@ -14781,7 +14788,7 @@ function ContentTableSearch({ data }) {
14781
14788
  const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
14782
14789
  if (!isExpanded) {
14783
14790
  setIsFocused(true);
14784
- setTimeout(() => _optionalChain([inputRef, 'access', _418 => _418.current, 'optionalAccess', _419 => _419.focus, 'call', _420 => _420()]), 50);
14791
+ setTimeout(() => _optionalChain([inputRef, 'access', _420 => _420.current, 'optionalAccess', _421 => _421.focus, 'call', _422 => _422()]), 50);
14785
14792
  }
14786
14793
  }, "handleSearchIconClick");
14787
14794
  const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
@@ -14847,7 +14854,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
14847
14854
  props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
14848
14855
  );
14849
14856
  const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
14850
- data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _421 => _421.data]), () => ( EMPTY_ARRAY)),
14857
+ data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _423 => _423.data]), () => ( EMPTY_ARRAY)),
14851
14858
  fields,
14852
14859
  checkedIds,
14853
14860
  toggleId,
@@ -14916,12 +14923,12 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
14916
14923
  ) }),
14917
14924
  table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
14918
14925
  const meta = header.column.columnDef.meta;
14919
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _422 => _422.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
14926
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _424 => _424.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
14920
14927
  }) }, headerGroup.id))
14921
14928
  ] }),
14922
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _423 => _423.rows, 'optionalAccess', _424 => _424.length]) ? rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
14929
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _425 => _425.rows, 'optionalAccess', _426 => _426.length]) ? rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
14923
14930
  const meta = cell.column.columnDef.meta;
14924
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _425 => _425.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
14931
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _427 => _427.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
14925
14932
  }) }, 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." }) }) }),
14926
14933
  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: [
14927
14934
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -14931,7 +14938,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
14931
14938
  size: "sm",
14932
14939
  onClick: (e) => {
14933
14940
  e.preventDefault();
14934
- _optionalChain([data, 'access', _426 => _426.previous, 'optionalCall', _427 => _427(true)]);
14941
+ _optionalChain([data, 'access', _428 => _428.previous, 'optionalCall', _429 => _429(true)]);
14935
14942
  },
14936
14943
  disabled: !data.previous,
14937
14944
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
@@ -14945,7 +14952,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
14945
14952
  size: "sm",
14946
14953
  onClick: (e) => {
14947
14954
  e.preventDefault();
14948
- _optionalChain([data, 'access', _428 => _428.next, 'optionalCall', _429 => _429(true)]);
14955
+ _optionalChain([data, 'access', _430 => _430.next, 'optionalCall', _431 => _431(true)]);
14949
14956
  },
14950
14957
  disabled: !data.next,
14951
14958
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" })
@@ -14966,7 +14973,7 @@ function ContentListGrid(props) {
14966
14973
  if (!data.next || !sentinelRef.current) return;
14967
14974
  const observer = new IntersectionObserver(
14968
14975
  (entries) => {
14969
- if (_optionalChain([entries, 'access', _430 => _430[0], 'optionalAccess', _431 => _431.isIntersecting])) _optionalChain([data, 'access', _432 => _432.next, 'optionalCall', _433 => _433()]);
14976
+ if (_optionalChain([entries, 'access', _432 => _432[0], 'optionalAccess', _433 => _433.isIntersecting])) _optionalChain([data, 'access', _434 => _434.next, 'optionalCall', _435 => _435()]);
14970
14977
  },
14971
14978
  { threshold: 0.1, rootMargin: "200px" }
14972
14979
  );
@@ -15716,7 +15723,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
15716
15723
  newDigits[index] = digit;
15717
15724
  setDigits(newDigits);
15718
15725
  if (digit && index < 5) {
15719
- _optionalChain([inputRefs, 'access', _434 => _434.current, 'access', _435 => _435[index + 1], 'optionalAccess', _436 => _436.focus, 'call', _437 => _437()]);
15726
+ _optionalChain([inputRefs, 'access', _436 => _436.current, 'access', _437 => _437[index + 1], 'optionalAccess', _438 => _438.focus, 'call', _439 => _439()]);
15720
15727
  }
15721
15728
  const code = newDigits.join("");
15722
15729
  if (code.length === 6 && newDigits.every((d) => d !== "")) {
@@ -15725,7 +15732,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
15725
15732
  }, "handleChange");
15726
15733
  const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
15727
15734
  if (e.key === "Backspace" && !digits[index] && index > 0) {
15728
- _optionalChain([inputRefs, 'access', _438 => _438.current, 'access', _439 => _439[index - 1], 'optionalAccess', _440 => _440.focus, 'call', _441 => _441()]);
15735
+ _optionalChain([inputRefs, 'access', _440 => _440.current, 'access', _441 => _441[index - 1], 'optionalAccess', _442 => _442.focus, 'call', _443 => _443()]);
15729
15736
  }
15730
15737
  }, "handleKeyDown");
15731
15738
  const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
@@ -15734,7 +15741,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
15734
15741
  if (pastedData.length === 6) {
15735
15742
  const newDigits = pastedData.split("");
15736
15743
  setDigits(newDigits);
15737
- _optionalChain([inputRefs, 'access', _442 => _442.current, 'access', _443 => _443[5], 'optionalAccess', _444 => _444.focus, 'call', _445 => _445()]);
15744
+ _optionalChain([inputRefs, 'access', _444 => _444.current, 'access', _445 => _445[5], 'optionalAccess', _446 => _446.focus, 'call', _447 => _447()]);
15738
15745
  onComplete(pastedData);
15739
15746
  }
15740
15747
  }, "handlePaste");
@@ -15945,8 +15952,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
15945
15952
  try {
15946
15953
  const registrationData = await _chunkXAWKRNYMjs.TwoFactorService.getPasskeyRegistrationOptions({
15947
15954
  id: _uuid.v4.call(void 0, ),
15948
- userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _446 => _446.email]), () => ( "")),
15949
- userDisplayName: _optionalChain([currentUser, 'optionalAccess', _447 => _447.name])
15955
+ userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _448 => _448.email]), () => ( "")),
15956
+ userDisplayName: _optionalChain([currentUser, 'optionalAccess', _449 => _449.name])
15950
15957
  });
15951
15958
  const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
15952
15959
  await _chunkXAWKRNYMjs.TwoFactorService.verifyPasskeyRegistration({
@@ -16097,7 +16104,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
16097
16104
  const setup = await _chunkXAWKRNYMjs.TwoFactorService.setupTotp({
16098
16105
  id: _uuid.v4.call(void 0, ),
16099
16106
  name: name.trim(),
16100
- accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _448 => _448.email]), () => ( ""))
16107
+ accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _450 => _450.email]), () => ( ""))
16101
16108
  });
16102
16109
  setQrCodeUri(setup.qrCodeUri);
16103
16110
  setAuthenticatorId(setup.authenticatorId);
@@ -16231,7 +16238,7 @@ function TwoFactorSettings() {
16231
16238
  if (isLoading) {
16232
16239
  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") }) }) });
16233
16240
  }
16234
- const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _449 => _449.isEnabled]), () => ( false));
16241
+ const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _451 => _451.isEnabled]), () => ( false));
16235
16242
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
16236
16243
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
16237
16244
  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" }),
@@ -16269,7 +16276,7 @@ function TwoFactorSettings() {
16269
16276
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
16270
16277
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
16271
16278
  ] }),
16272
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _450 => _450.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
16279
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _452 => _452.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
16273
16280
  ] }) }),
16274
16281
  !isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
16275
16282
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
@@ -16447,9 +16454,9 @@ function AcceptInvitation() {
16447
16454
  });
16448
16455
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
16449
16456
  try {
16450
- if (!_optionalChain([params, 'optionalAccess', _451 => _451.code])) return;
16457
+ if (!_optionalChain([params, 'optionalAccess', _453 => _453.code])) return;
16451
16458
  const payload = {
16452
- code: _optionalChain([params, 'optionalAccess', _452 => _452.code]),
16459
+ code: _optionalChain([params, 'optionalAccess', _454 => _454.code]),
16453
16460
  password: values.password
16454
16461
  };
16455
16462
  await _chunkXAWKRNYMjs.AuthService.acceptInvitation(payload);
@@ -16799,7 +16806,7 @@ function Logout({ storageKeys }) {
16799
16806
  const generateUrl = usePageUrlGenerator();
16800
16807
  _react.useEffect.call(void 0, () => {
16801
16808
  const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
16802
- if (_optionalChain([storageKeys, 'optionalAccess', _453 => _453.length])) {
16809
+ if (_optionalChain([storageKeys, 'optionalAccess', _455 => _455.length])) {
16803
16810
  clearClientStorage(storageKeys);
16804
16811
  }
16805
16812
  await _chunkXAWKRNYMjs.AuthService.logout();
@@ -16822,14 +16829,14 @@ function RefreshUser() {
16822
16829
  setUser(fullUser);
16823
16830
  const token = {
16824
16831
  userId: fullUser.id,
16825
- companyId: _optionalChain([fullUser, 'access', _454 => _454.company, 'optionalAccess', _455 => _455.id]),
16832
+ companyId: _optionalChain([fullUser, 'access', _456 => _456.company, 'optionalAccess', _457 => _457.id]),
16826
16833
  roles: fullUser.roles.map((role) => role.id),
16827
- features: _nullishCoalesce(_optionalChain([fullUser, 'access', _456 => _456.company, 'optionalAccess', _457 => _457.features, 'optionalAccess', _458 => _458.map, 'call', _459 => _459((feature) => feature.id)]), () => ( [])),
16834
+ features: _nullishCoalesce(_optionalChain([fullUser, 'access', _458 => _458.company, 'optionalAccess', _459 => _459.features, 'optionalAccess', _460 => _460.map, 'call', _461 => _461((feature) => feature.id)]), () => ( [])),
16828
16835
  modules: fullUser.modules.map((module) => {
16829
16836
  return { id: module.id, permissions: module.permissions };
16830
16837
  })
16831
16838
  };
16832
- await _optionalChain([_chunkXAWKRNYMjs.getTokenHandler.call(void 0, ), 'optionalAccess', _460 => _460.updateToken, 'call', _461 => _461(token)]);
16839
+ await _optionalChain([_chunkXAWKRNYMjs.getTokenHandler.call(void 0, ), 'optionalAccess', _462 => _462.updateToken, 'call', _463 => _463(token)]);
16833
16840
  _cookiesnext.deleteCookie.call(void 0, "reloadData");
16834
16841
  }
16835
16842
  }, "loadFullUser");
@@ -16893,9 +16900,9 @@ function ResetPassword() {
16893
16900
  });
16894
16901
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
16895
16902
  try {
16896
- if (!_optionalChain([params, 'optionalAccess', _462 => _462.code])) return;
16903
+ if (!_optionalChain([params, 'optionalAccess', _464 => _464.code])) return;
16897
16904
  const payload = {
16898
- code: _optionalChain([params, 'optionalAccess', _463 => _463.code]),
16905
+ code: _optionalChain([params, 'optionalAccess', _465 => _465.code]),
16899
16906
  password: values.password
16900
16907
  };
16901
16908
  await _chunkXAWKRNYMjs.AuthService.resetPassword(payload);
@@ -17244,7 +17251,7 @@ function extractHeadings(blocks) {
17244
17251
  function processBlocks(blockArray) {
17245
17252
  for (const block of blockArray) {
17246
17253
  if (block.type === "heading") {
17247
- const level = _optionalChain([block, 'access', _464 => _464.props, 'optionalAccess', _465 => _465.level]) || 1;
17254
+ const level = _optionalChain([block, 'access', _466 => _466.props, 'optionalAccess', _467 => _467.level]) || 1;
17248
17255
  const text = extractTextFromContent(block.content);
17249
17256
  if (text.trim()) {
17250
17257
  headings.push({
@@ -17587,7 +17594,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
17587
17594
  })
17588
17595
  };
17589
17596
  const columns = _react.useMemo.call(void 0, () => {
17590
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _466 => _466[field], 'optionalCall', _467 => _467()])).filter((col) => col !== void 0);
17597
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _468 => _468[field], 'optionalCall', _469 => _469()])).filter((col) => col !== void 0);
17591
17598
  }, [params.fields, fieldColumnMap, t, generateUrl]);
17592
17599
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17593
17600
  }, "useHowToTableStructure");
@@ -17653,7 +17660,7 @@ function HowToMultiSelector({
17653
17660
  retriever: (params) => _chunkXAWKRNYMjs.HowToService.findMany(params),
17654
17661
  module: _chunkXAWKRNYMjs.Modules.HowTo,
17655
17662
  getLabel: (howTo) => howTo.name,
17656
- excludeId: _optionalChain([currentHowTo, 'optionalAccess', _468 => _468.id]),
17663
+ excludeId: _optionalChain([currentHowTo, 'optionalAccess', _470 => _470.id]),
17657
17664
  onChange
17658
17665
  }
17659
17666
  );
@@ -17718,7 +17725,7 @@ function HowToSelector({
17718
17725
  }, "setHowTo");
17719
17726
  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: [
17720
17727
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
17721
- /* @__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', _469 => _469.value, 'optionalAccess', _470 => _470.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 }) }))) }) }) }),
17728
+ /* @__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', _471 => _471.value, 'optionalAccess', _472 => _472.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 }) }))) }) }) }),
17722
17729
  field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
17723
17730
  _lucidereact.CircleX,
17724
17731
  {
@@ -18073,9 +18080,9 @@ function CitationsTab({ citations, sources }) {
18073
18080
  ] }) }),
18074
18081
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
18075
18082
  const isOpen = expanded.has(chunk.id);
18076
- const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _471 => _471.get, 'call', _472 => _472(chunk.nodeId)]) : void 0;
18083
+ const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _473 => _473.get, 'call', _474 => _474(chunk.nodeId)]) : void 0;
18077
18084
  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")));
18078
- const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _473 => _473.name]), () => ( fallbackName));
18085
+ const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _475 => _475.name]), () => ( fallbackName));
18079
18086
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
18080
18087
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
18081
18088
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -18122,7 +18129,7 @@ function ContentsTab({ citations, sources }) {
18122
18129
  for (const c of citations) {
18123
18130
  const id = c.nodeId;
18124
18131
  if (!id) continue;
18125
- const source = _optionalChain([sources, 'optionalAccess', _474 => _474.get, 'call', _475 => _475(id)]);
18132
+ const source = _optionalChain([sources, 'optionalAccess', _476 => _476.get, 'call', _477 => _477(id)]);
18126
18133
  if (!source) continue;
18127
18134
  const existing = map.get(id);
18128
18135
  if (existing) {
@@ -18187,7 +18194,7 @@ function UsersTab({ users, citations, sources }) {
18187
18194
  const generate = usePageUrlGenerator();
18188
18195
  const userMap = /* @__PURE__ */ new Map();
18189
18196
  for (const u of users) {
18190
- if (!_optionalChain([u, 'optionalAccess', _476 => _476.id])) continue;
18197
+ if (!_optionalChain([u, 'optionalAccess', _478 => _478.id])) continue;
18191
18198
  userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
18192
18199
  }
18193
18200
  if (citations && sources) {
@@ -18291,7 +18298,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
18291
18298
  }
18292
18299
  return ids.size;
18293
18300
  }, [message.citations, sources]);
18294
- const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _477 => _477.length]), () => ( 0));
18301
+ const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _479 => _479.length]), () => ( 0));
18295
18302
  const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
18296
18303
  const visibleTabs = [];
18297
18304
  if (suggestionsCount > 0) visibleTabs.push("suggested");
@@ -18350,8 +18357,8 @@ var SourcesFetcher = class extends _chunkXAWKRNYMjs.ClientAbstractService {
18350
18357
  static async findManyByIds(params) {
18351
18358
  const endpoint = new (0, _chunkXAWKRNYMjs.EndpointCreator)({ endpoint: params.module });
18352
18359
  endpoint.addAdditionalParam(params.idsParam, params.ids.join(","));
18353
- if (_optionalChain([params, 'access', _478 => _478.module, 'access', _479 => _479.inclusions, 'optionalAccess', _480 => _480.lists, 'optionalAccess', _481 => _481.fields])) endpoint.limitToFields(params.module.inclusions.lists.fields);
18354
- if (_optionalChain([params, 'access', _482 => _482.module, 'access', _483 => _483.inclusions, 'optionalAccess', _484 => _484.lists, 'optionalAccess', _485 => _485.types])) endpoint.limitToType(params.module.inclusions.lists.types);
18360
+ if (_optionalChain([params, 'access', _480 => _480.module, 'access', _481 => _481.inclusions, 'optionalAccess', _482 => _482.lists, 'optionalAccess', _483 => _483.fields])) endpoint.limitToFields(params.module.inclusions.lists.fields);
18361
+ if (_optionalChain([params, 'access', _484 => _484.module, 'access', _485 => _485.inclusions, 'optionalAccess', _486 => _486.lists, 'optionalAccess', _487 => _487.types])) endpoint.limitToType(params.module.inclusions.lists.types);
18355
18362
  return this.callApi({
18356
18363
  type: params.module,
18357
18364
  method: "GET" /* GET */,
@@ -18430,7 +18437,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
18430
18437
  return void 0;
18431
18438
  }
18432
18439
  })()));
18433
- if (_optionalChain([author, 'optionalAccess', _486 => _486.id])) userMap.set(author.id, author);
18440
+ if (_optionalChain([author, 'optionalAccess', _488 => _488.id])) userMap.set(author.id, author);
18434
18441
  }
18435
18442
  return Array.from(userMap.values());
18436
18443
  }, [resolved]);
@@ -18452,14 +18459,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, MessageSourcesContainer, "MessageSourcesCon
18452
18459
  function MessageItem({ message, isLatestAssistant, onSelectFollowUp, failedMessageIds, onRetry }) {
18453
18460
  const t = _nextintl.useTranslations.call(void 0, );
18454
18461
  const isUser = message.role === "user";
18455
- const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _487 => _487.has, 'call', _488 => _488(message.id)]);
18462
+ const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _489 => _489.has, 'call', _490 => _490(message.id)]);
18456
18463
  if (isUser) {
18457
18464
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-end gap-1", children: [
18458
18465
  /* @__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 }),
18459
18466
  isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
18460
18467
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
18461
18468
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.send_failed") }),
18462
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall', _489 => _489(message.id)]), children: t("features.assistant.retry") })
18469
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall', _491 => _491(message.id)]), children: t("features.assistant.retry") })
18463
18470
  ] })
18464
18471
  ] });
18465
18472
  }
@@ -18525,7 +18532,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AssistantStatusLine, "AssistantStatusLine")
18525
18532
  function AssistantThread({ messages, sending, status, onSelectFollowUp, failedMessageIds, onRetry }) {
18526
18533
  const endRef = _react.useRef.call(void 0, null);
18527
18534
  _react.useEffect.call(void 0, () => {
18528
- _optionalChain([endRef, 'access', _490 => _490.current, 'optionalAccess', _491 => _491.scrollIntoView, 'call', _492 => _492({ behavior: "smooth" })]);
18535
+ _optionalChain([endRef, 'access', _492 => _492.current, 'optionalAccess', _493 => _493.scrollIntoView, 'call', _494 => _494({ behavior: "smooth" })]);
18529
18536
  }, [messages.length, sending]);
18530
18537
  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: [
18531
18538
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -18553,7 +18560,7 @@ function AssistantContainer() {
18553
18560
  AssistantSidebar,
18554
18561
  {
18555
18562
  threads: ctx.threads,
18556
- activeId: _optionalChain([ctx, 'access', _493 => _493.assistant, 'optionalAccess', _494 => _494.id]),
18563
+ activeId: _optionalChain([ctx, 'access', _495 => _495.assistant, 'optionalAccess', _496 => _496.id]),
18557
18564
  onSelect: ctx.selectThread,
18558
18565
  onNew: ctx.startNew
18559
18566
  }
@@ -18646,14 +18653,14 @@ function NotificationsList({ archived }) {
18646
18653
  ] }),
18647
18654
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
18648
18655
  ] }) }) }, i)) }), "LoadingSkeleton");
18649
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _495 => _495.data, 'optionalAccess', _496 => _496.map, 'call', _497 => _497((notification) => {
18656
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _497 => _497.data, 'optionalAccess', _498 => _498.map, 'call', _499 => _499((notification) => {
18650
18657
  const notificationData = generateNotificationData({ notification, generateUrl });
18651
18658
  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: [
18652
18659
  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" }),
18653
18660
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
18654
18661
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
18655
18662
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
18656
- actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _498 => _498.actor, 'optionalAccess', _499 => _499.name]), () => ( "")),
18663
+ actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _500 => _500.actor, 'optionalAccess', _501 => _501.name]), () => ( "")),
18657
18664
  title: notificationData.title
18658
18665
  }) }),
18659
18666
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
@@ -19003,7 +19010,7 @@ var DEFAULT_TRANSLATIONS = {
19003
19010
  invalidEmail: "Please enter a valid email address"
19004
19011
  };
19005
19012
  async function copyToClipboard(text) {
19006
- if (_optionalChain([navigator, 'access', _500 => _500.clipboard, 'optionalAccess', _501 => _501.writeText])) {
19013
+ if (_optionalChain([navigator, 'access', _502 => _502.clipboard, 'optionalAccess', _503 => _503.writeText])) {
19007
19014
  try {
19008
19015
  await navigator.clipboard.writeText(text);
19009
19016
  return true;
@@ -19045,7 +19052,7 @@ function ReferralWidget({
19045
19052
  const linkInputRef = _react.useRef.call(void 0, null);
19046
19053
  const config = _chunkSE5HIHJSjs.getReferralConfig.call(void 0, );
19047
19054
  const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
19048
- const referralUrl = _optionalChain([stats, 'optionalAccess', _502 => _502.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
19055
+ const referralUrl = _optionalChain([stats, 'optionalAccess', _504 => _504.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
19049
19056
  if (!_chunkSE5HIHJSjs.isReferralEnabled.call(void 0, )) {
19050
19057
  return null;
19051
19058
  }
@@ -19055,7 +19062,7 @@ function ReferralWidget({
19055
19062
  if (success) {
19056
19063
  setCopied(true);
19057
19064
  _chunkXAWKRNYMjs.showToast.call(void 0, t.copiedMessage);
19058
- _optionalChain([onLinkCopied, 'optionalCall', _503 => _503()]);
19065
+ _optionalChain([onLinkCopied, 'optionalCall', _505 => _505()]);
19059
19066
  setTimeout(() => setCopied(false), 2e3);
19060
19067
  } else {
19061
19068
  _chunkXAWKRNYMjs.showError.call(void 0, t.copyError);
@@ -19069,12 +19076,12 @@ function ReferralWidget({
19069
19076
  try {
19070
19077
  await sendInvite(email);
19071
19078
  _chunkXAWKRNYMjs.showToast.call(void 0, t.inviteSent);
19072
- _optionalChain([onInviteSent, 'optionalCall', _504 => _504(email)]);
19079
+ _optionalChain([onInviteSent, 'optionalCall', _506 => _506(email)]);
19073
19080
  setEmail("");
19074
19081
  } catch (err) {
19075
19082
  const error2 = err instanceof Error ? err : new Error(t.inviteError);
19076
19083
  _chunkXAWKRNYMjs.showError.call(void 0, error2.message);
19077
- _optionalChain([onInviteError, 'optionalCall', _505 => _505(error2)]);
19084
+ _optionalChain([onInviteError, 'optionalCall', _507 => _507(error2)]);
19078
19085
  }
19079
19086
  }, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
19080
19087
  const handleEmailKeyDown = _react.useCallback.call(void 0,
@@ -19828,7 +19835,7 @@ function OAuthClientList({
19828
19835
  OAuthClientCard,
19829
19836
  {
19830
19837
  client,
19831
- onClick: () => _optionalChain([onClientClick, 'optionalCall', _506 => _506(client)]),
19838
+ onClick: () => _optionalChain([onClientClick, 'optionalCall', _508 => _508(client)]),
19832
19839
  onEdit: onEditClick ? () => onEditClick(client) : void 0,
19833
19840
  onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
19834
19841
  },
@@ -19844,11 +19851,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
19844
19851
  function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
19845
19852
  const isEditMode = !!client;
19846
19853
  const [formState, setFormState] = _react.useState.call(void 0, {
19847
- name: _optionalChain([client, 'optionalAccess', _507 => _507.name]) || "",
19848
- description: _optionalChain([client, 'optionalAccess', _508 => _508.description]) || "",
19849
- redirectUris: _optionalChain([client, 'optionalAccess', _509 => _509.redirectUris, 'optionalAccess', _510 => _510.length]) ? client.redirectUris : [""],
19850
- allowedScopes: _optionalChain([client, 'optionalAccess', _511 => _511.allowedScopes]) || [],
19851
- isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _512 => _512.isConfidential]), () => ( true))
19854
+ name: _optionalChain([client, 'optionalAccess', _509 => _509.name]) || "",
19855
+ description: _optionalChain([client, 'optionalAccess', _510 => _510.description]) || "",
19856
+ redirectUris: _optionalChain([client, 'optionalAccess', _511 => _511.redirectUris, 'optionalAccess', _512 => _512.length]) ? client.redirectUris : [""],
19857
+ allowedScopes: _optionalChain([client, 'optionalAccess', _513 => _513.allowedScopes]) || [],
19858
+ isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _514 => _514.isConfidential]), () => ( true))
19852
19859
  });
19853
19860
  const [errors, setErrors] = _react.useState.call(void 0, {});
19854
19861
  const validate = _react.useCallback.call(void 0, () => {
@@ -20076,7 +20083,7 @@ function OAuthClientDetail({
20076
20083
  ] }),
20077
20084
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
20078
20085
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
20079
- /* @__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', _513 => _513[scope], 'optionalAccess', _514 => _514.name]) || scope }, scope)) })
20086
+ /* @__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', _515 => _515[scope], 'optionalAccess', _516 => _516.name]) || scope }, scope)) })
20080
20087
  ] }),
20081
20088
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
20082
20089
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
@@ -20220,7 +20227,7 @@ function OAuthConsentScreen({
20220
20227
  if (error || !clientInfo) {
20221
20228
  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: [
20222
20229
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
20223
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _515 => _515.message]) || "Invalid authorization request. Please try again." })
20230
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _517 => _517.message]) || "Invalid authorization request. Please try again." })
20224
20231
  ] }) }) }) });
20225
20232
  }
20226
20233
  const { client, scopes } = clientInfo;
@@ -20436,7 +20443,7 @@ function WaitlistForm({ onSuccess }) {
20436
20443
  questionnaire: values.questionnaire
20437
20444
  });
20438
20445
  setIsSuccess(true);
20439
- _optionalChain([onSuccess, 'optionalCall', _516 => _516()]);
20446
+ _optionalChain([onSuccess, 'optionalCall', _518 => _518()]);
20440
20447
  } catch (e) {
20441
20448
  errorToast({ error: e });
20442
20449
  } finally {
@@ -21074,7 +21081,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
21074
21081
  ] }),
21075
21082
  roleIds.map((roleId) => {
21076
21083
  const roleTokens = block[roleId];
21077
- const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _517 => _517[roleId]]), () => ( roleId));
21084
+ const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _519 => _519[roleId]]), () => ( roleId));
21078
21085
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
21079
21086
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
21080
21087
  _chunkSE5HIHJSjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -21111,7 +21118,7 @@ function RbacContainer() {
21111
21118
  }, []);
21112
21119
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
21113
21120
  if (!matrix) return [];
21114
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _518 => _518[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _519 => _519[b]]), () => ( b))));
21121
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _520 => _520[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _521 => _521[b]]), () => ( b))));
21115
21122
  }, [matrix, moduleNames]);
21116
21123
  const roleIds = _react.useMemo.call(void 0, () => {
21117
21124
  if (roleNames) {
@@ -21174,7 +21181,7 @@ function RbacContainer() {
21174
21181
  id === selectedModuleId && "bg-muted font-medium text-foreground",
21175
21182
  id !== selectedModuleId && "text-muted-foreground"
21176
21183
  ),
21177
- children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _520 => _520[id]]), () => ( id))
21184
+ children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _522 => _522[id]]), () => ( id))
21178
21185
  }
21179
21186
  ) }, id)) }) }),
21180
21187
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: selectedModuleId && selectedBlock ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -21182,7 +21189,7 @@ function RbacContainer() {
21182
21189
  {
21183
21190
  moduleId: selectedModuleId,
21184
21191
  block: selectedBlock,
21185
- moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _521 => _521[selectedModuleId]]), () => ( selectedModuleId)),
21192
+ moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _523 => _523[selectedModuleId]]), () => ( selectedModuleId)),
21186
21193
  roleIds,
21187
21194
  roleNames,
21188
21195
  onOpenPicker: openPicker
@@ -21193,12 +21200,12 @@ function RbacContainer() {
21193
21200
  RbacPermissionPicker,
21194
21201
  {
21195
21202
  open: !!activePicker,
21196
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _522 => _522.anchor]), () => ( null)),
21203
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _524 => _524.anchor]), () => ( null)),
21197
21204
  value: activeValue,
21198
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _523 => _523.isRoleColumn]), () => ( false)),
21205
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _525 => _525.isRoleColumn]), () => ( false)),
21199
21206
  knownSegments: activeSegments,
21200
21207
  onSetValue: handleSetValue,
21201
- onClear: _optionalChain([activePicker, 'optionalAccess', _524 => _524.isRoleColumn]) ? handleClear : void 0,
21208
+ onClear: _optionalChain([activePicker, 'optionalAccess', _526 => _526.isRoleColumn]) ? handleClear : void 0,
21202
21209
  onClose: closePicker
21203
21210
  }
21204
21211
  )
@@ -21265,7 +21272,7 @@ function RbacByRoleContainer() {
21265
21272
  }, [roleNames]);
21266
21273
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
21267
21274
  if (!matrix) return [];
21268
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _525 => _525[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _526 => _526[b]]), () => ( b))));
21275
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _527 => _527[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _528 => _528[b]]), () => ( b))));
21269
21276
  }, [matrix, moduleNames]);
21270
21277
  _react.useEffect.call(void 0, () => {
21271
21278
  if (!selectedRoleId && sortedRoleIds.length > 0) {
@@ -21314,7 +21321,7 @@ function RbacByRoleContainer() {
21314
21321
  id === selectedRoleId && "bg-muted font-medium text-foreground",
21315
21322
  id !== selectedRoleId && "text-muted-foreground"
21316
21323
  ),
21317
- children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _527 => _527[id]]), () => ( id))
21324
+ children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _529 => _529[id]]), () => ( id))
21318
21325
  }
21319
21326
  ) }, id)) }) }),
21320
21327
  /* @__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: [
@@ -21334,7 +21341,7 @@ function RbacByRoleContainer() {
21334
21341
  if (!block) return null;
21335
21342
  const defaultTokens = _nullishCoalesce(block.default, () => ( []));
21336
21343
  const roleTokens = block[selectedRoleId];
21337
- const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _528 => _528[moduleId]]), () => ( moduleId));
21344
+ const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _530 => _530[moduleId]]), () => ( moduleId));
21338
21345
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
21339
21346
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
21340
21347
  "td",
@@ -21349,7 +21356,7 @@ function RbacByRoleContainer() {
21349
21356
  _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))
21350
21357
  ] }),
21351
21358
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
21352
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _529 => _529[selectedRoleId]]), () => ( selectedRoleId)) }),
21359
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _531 => _531[selectedRoleId]]), () => ( selectedRoleId)) }),
21353
21360
  _chunkSE5HIHJSjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
21354
21361
  CellButton3,
21355
21362
  {
@@ -21370,12 +21377,12 @@ function RbacByRoleContainer() {
21370
21377
  RbacPermissionPicker,
21371
21378
  {
21372
21379
  open: !!activePicker,
21373
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _530 => _530.anchor]), () => ( null)),
21380
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _532 => _532.anchor]), () => ( null)),
21374
21381
  value: activeValue,
21375
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _531 => _531.isRoleColumn]), () => ( false)),
21382
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _533 => _533.isRoleColumn]), () => ( false)),
21376
21383
  knownSegments: activeSegments,
21377
21384
  onSetValue: handleSetValue,
21378
- onClear: _optionalChain([activePicker, 'optionalAccess', _532 => _532.isRoleColumn]) ? handleClear : void 0,
21385
+ onClear: _optionalChain([activePicker, 'optionalAccess', _534 => _534.isRoleColumn]) ? handleClear : void 0,
21379
21386
  onClose: closePicker
21380
21387
  }
21381
21388
  )
@@ -21895,4 +21902,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
21895
21902
 
21896
21903
 
21897
21904
  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.BlockNoteEditorMentionHoverCard = BlockNoteEditorMentionHoverCard; exports.mentionDataAttrs = mentionDataAttrs; 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.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.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;
21898
- //# sourceMappingURL=chunk-7D4A7G7U.js.map
21905
+ //# sourceMappingURL=chunk-GNKC2ZRU.js.map