@carlonicora/nextjs-jsonapi 1.90.0 → 1.92.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-GSASQXY2.js"))), {
9215
9215
  ssr: false
9216
9216
  });
9217
9217
  var BlockNoteEditorContainer = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
@@ -13070,10 +13070,13 @@ _chunk7QVYU63Ejs.__name.call(void 0, TableCellAvatar, "TableCellAvatar");
13070
13070
 
13071
13071
 
13072
13072
 
13073
+
13073
13074
  var ITEMS_TO_DISPLAY = 4;
13074
- function BreadcrumbNavigation({ items }) {
13075
- const generateUrl = usePageUrlGenerator();
13076
- const t = _nextintl.useTranslations.call(void 0, );
13075
+ function BreadcrumbDesktop({
13076
+ items,
13077
+ generateUrl,
13078
+ t
13079
+ }) {
13077
13080
  const [open, setOpen] = _react.useState.call(void 0, false);
13078
13081
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Breadcrumb, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, BreadcrumbList, { children: [
13079
13082
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: `/` }), children: t(`common.home`) }) }),
@@ -13096,6 +13099,36 @@ function BreadcrumbNavigation({ items }) {
13096
13099
  ] }, index)) })
13097
13100
  ] }) });
13098
13101
  }
13102
+ _chunk7QVYU63Ejs.__name.call(void 0, BreadcrumbDesktop, "BreadcrumbDesktop");
13103
+ function BreadcrumbMobile({
13104
+ items,
13105
+ generateUrl,
13106
+ t
13107
+ }) {
13108
+ const [open, setOpen] = _react.useState.call(void 0, false);
13109
+ const lastItem = items[items.length - 1];
13110
+ const allItems = [{ name: t(`common.home`), href: generateUrl({ page: `/` }) }, ...items];
13111
+ if (!lastItem && items.length === 0) {
13112
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Breadcrumb, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbList, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: `/` }), children: t(`common.home`) }) }) }) });
13113
+ }
13114
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenu, { open, onOpenChange: setOpen, children: [
13115
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenuTrigger, { className: "text-foreground text-xs/relaxed font-normal hover:bg-accent flex items-center gap-1 rounded-md px-1.5 py-0.5 transition-colors outline-none", children: [
13116
+ _optionalChain([lastItem, 'optionalAccess', _352 => _352.name]),
13117
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: "text-muted-foreground size-3.5" })
13118
+ ] }),
13119
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuContent, { align: "start", children: allItems.map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuItem, { children: item.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: item.href, children: item.name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: item.name }) }, index)) })
13120
+ ] });
13121
+ }
13122
+ _chunk7QVYU63Ejs.__name.call(void 0, BreadcrumbMobile, "BreadcrumbMobile");
13123
+ function BreadcrumbNavigation({ items }) {
13124
+ const generateUrl = usePageUrlGenerator();
13125
+ const t = _nextintl.useTranslations.call(void 0, );
13126
+ const isMobile = _chunkXAWKRNYMjs.useIsMobile.call(void 0, );
13127
+ if (isMobile) {
13128
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbMobile, { items, generateUrl, t });
13129
+ }
13130
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbDesktop, { items, generateUrl, t });
13131
+ }
13099
13132
  _chunk7QVYU63Ejs.__name.call(void 0, BreadcrumbNavigation, "BreadcrumbNavigation");
13100
13133
 
13101
13134
  // src/components/navigations/ContentTitle.tsx
@@ -13135,11 +13168,12 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentTitle, "ContentTitle");
13135
13168
 
13136
13169
  function Header({ children, leftContent, className }) {
13137
13170
  const { breadcrumbs } = useSharedContext();
13171
+ const isMobile = _chunkXAWKRNYMjs.useIsMobile.call(void 0, );
13138
13172
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "header", { className: `sticky top-0 z-10 flex h-12 flex-col items-center justify-start gap-x-4 ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-sidebar flex h-12 w-full flex-row items-center justify-between pl-2 pr-4", children: [
13139
13173
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SidebarTrigger, { "aria-label": "Toggle sidebar", id: "sidebar-trigger" }),
13140
13174
  leftContent,
13141
13175
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbNavigation, { items: breadcrumbs }) }),
13142
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-64 flex-row items-center justify-end gap-x-4 whitespace-nowrap", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-row items-center justify-end gap-x-4 whitespace-nowrap", children: children ? children : null }) })
13176
+ !isMobile && children && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-64 flex-row items-center justify-end gap-x-4 whitespace-nowrap", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-row items-center justify-end gap-x-4 whitespace-nowrap", children }) })
13143
13177
  ] }) });
13144
13178
  }
13145
13179
  _chunk7QVYU63Ejs.__name.call(void 0, Header, "Header");
@@ -13332,8 +13366,9 @@ function RoundPageContainerTitle({
13332
13366
  setShowDetails
13333
13367
  }) {
13334
13368
  const { title } = useSharedContext();
13335
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between border-b p-4", children: [
13336
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full gap-x-4", children: [
13369
+ const isMobile = _chunkXAWKRNYMjs.useIsMobile.call(void 0, );
13370
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkXAWKRNYMjs.cn.call(void 0, `flex w-full flex-row items-center border-b p-4`, isMobile ? `justify-end` : `justify-between`), children: [
13371
+ !isMobile && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full gap-x-4", children: [
13337
13372
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground flex items-center gap-x-2 text-lg font-light whitespace-nowrap", children: [
13338
13373
  module && module.icon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, module.icon, { className: "text-primary h-6 w-6" }) : title.icon,
13339
13374
  title.type
@@ -13378,9 +13413,14 @@ function RoundPageContainer({
13378
13413
  const headerChildren = useHeaderChildren();
13379
13414
  const headerLeftContent = useHeaderLeftContent();
13380
13415
  const [showDetails, setShowDetailsState] = _react.useState.call(void 0, false);
13416
+ const isMobile = _chunkXAWKRNYMjs.useIsMobile.call(void 0, );
13417
+ const [mounted, setMounted] = _react.useState.call(void 0, false);
13381
13418
  _react.useEffect.call(void 0, () => {
13382
13419
  const match = document.cookie.split("; ").find((row) => row.startsWith(`${DETAILS_COOKIE_NAME}=`));
13383
- if (_optionalChain([match, 'optionalAccess', _352 => _352.split, 'call', _353 => _353("="), 'access', _354 => _354[1]]) === "true") setShowDetailsState(true);
13420
+ if (_optionalChain([match, 'optionalAccess', _353 => _353.split, 'call', _354 => _354("="), 'access', _355 => _355[1]]) === "true") setShowDetailsState(true);
13421
+ }, []);
13422
+ _react.useEffect.call(void 0, () => {
13423
+ setMounted(true);
13384
13424
  }, []);
13385
13425
  const setShowDetails = _react.useCallback.call(void 0, (value) => {
13386
13426
  setShowDetailsState(value);
@@ -13389,20 +13429,34 @@ function RoundPageContainer({
13389
13429
  const searchParams = _navigation.useSearchParams.call(void 0, );
13390
13430
  const section = searchParams.get("section");
13391
13431
  const rewriteUrl = useUrlRewriter();
13392
- 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;
13432
+ const initialValue = tabs ? (section && tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access', _356 => _356.key, 'optionalAccess', _357 => _357.name]), () => ( i.label))) === section) ? section : null) || (_nullishCoalesce(_optionalChain([tabs, 'access', _358 => _358[0], 'access', _359 => _359.key, 'optionalAccess', _360 => _360.name]), () => ( tabs[0].label))) : void 0;
13393
13433
  const [activeTab, setActiveTab] = _react.useState.call(void 0, initialValue);
13394
13434
  _react.useEffect.call(void 0, () => {
13395
13435
  if (tabs && section) {
13396
- const tab = tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access', _360 => _360.key, 'optionalAccess', _361 => _361.name]), () => ( i.label))) === section);
13436
+ const tab = tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access', _361 => _361.key, 'optionalAccess', _362 => _362.name]), () => ( i.label))) === section);
13397
13437
  if (tab) {
13398
13438
  setActiveTab(section);
13399
13439
  }
13400
13440
  }
13401
13441
  }, [section, tabs]);
13402
- 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;
13442
+ const handleTabChange = _react.useCallback.call(void 0,
13443
+ (key) => {
13444
+ setActiveTab(key);
13445
+ if (module && id) rewriteUrl({ page: module, id, additionalParameters: { section: key } });
13446
+ },
13447
+ [module, id, rewriteUrl]
13448
+ );
13449
+ const activeFillHeight = _optionalChain([tabs, 'optionalAccess', _363 => _363.find, 'call', _364 => _364((t) => (_nullishCoalesce(_optionalChain([t, 'access', _365 => _365.key, 'optionalAccess', _366 => _366.name]), () => ( t.label))) === activeTab), 'optionalAccess', _367 => _367.fillHeight]) === true;
13450
+ const isReady = mounted && isMobile !== void 0;
13451
+ if (!isReady) {
13452
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
13453
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header, { leftContent: headerLeftContent, className: "bg-sidebar border-0", children: headerChildren }),
13454
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkXAWKRNYMjs.cn.call(void 0, "flex h-[calc(100vh-3rem)] w-full flex-col", isMobile ? "" : "p-2 pt-0 pl-0"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkXAWKRNYMjs.cn.call(void 0, "bg-background flex h-full w-full", isMobile ? "" : "rounded-lg border p-0"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col" }) }) })
13455
+ ] });
13456
+ }
13403
13457
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
13404
13458
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header, { leftContent: headerLeftContent, className: "bg-sidebar border-0", children: headerChildren }),
13405
- /* @__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: [
13459
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkXAWKRNYMjs.cn.call(void 0, `flex h-[calc(100vh-3rem)] w-full flex-col`, isMobile ? "p-1 pt-0" : "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: [
13406
13460
  (!fullWidth || forceHeader) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13407
13461
  RoundPageContainerTitle,
13408
13462
  {
@@ -13418,7 +13472,8 @@ function RoundPageContainer({
13418
13472
  "div",
13419
13473
  {
13420
13474
  className: _chunkXAWKRNYMjs.cn.call(void 0,
13421
- `grow p-4`,
13475
+ `grow`,
13476
+ isMobile ? `p-2` : `p-4`,
13422
13477
  activeFillHeight ? `flex flex-col overflow-hidden` : `overflow-y-auto`,
13423
13478
  fullWidth && `p-0`
13424
13479
  ),
@@ -13436,21 +13491,33 @@ function RoundPageContainer({
13436
13491
  {
13437
13492
  value: activeTab,
13438
13493
  className: _chunkXAWKRNYMjs.cn.call(void 0, `w-full`, activeFillHeight && `flex flex-1 min-h-0 flex-col`),
13439
- onValueChange: (key) => {
13440
- setActiveTab(key);
13441
- if (module && id)
13442
- rewriteUrl({ page: module, id, additionalParameters: { section: key } });
13443
- },
13494
+ onValueChange: handleTabChange,
13444
13495
  children: [
13445
- /* @__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)) }) }),
13496
+ isMobile ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
13497
+ Select,
13498
+ {
13499
+ value: activeTab,
13500
+ onValueChange: (value) => {
13501
+ if (value) handleTabChange(value);
13502
+ },
13503
+ children: [
13504
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, {}) }),
13505
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectContent, { children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: _nullishCoalesce(_optionalChain([tab, 'access', _368 => _368.key, 'optionalAccess', _369 => _369.name]), () => ( tab.label)), children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) })
13506
+ ]
13507
+ }
13508
+ ) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsList, { children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: _nullishCoalesce(_optionalChain([tab, 'access', _370 => _370.key, 'optionalAccess', _371 => _371.name]), () => ( tab.label)), className: "px-4", children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) }) }),
13446
13509
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13447
13510
  "div",
13448
13511
  {
13449
- className: _chunkXAWKRNYMjs.cn.call(void 0, `flex w-full px-4`, activeFillHeight ? `flex-1 min-h-0` : `overflow-y-auto`),
13512
+ className: _chunkXAWKRNYMjs.cn.call(void 0,
13513
+ `flex w-full `,
13514
+ isMobile ? `` : `px-4`,
13515
+ activeFillHeight ? `flex-1 min-h-0` : `overflow-y-auto`
13516
+ ),
13450
13517
  children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13451
13518
  TabsContent,
13452
13519
  {
13453
- value: _nullishCoalesce(_optionalChain([tab, 'access', _369 => _369.key, 'optionalAccess', _370 => _370.name]), () => ( tab.label)),
13520
+ value: _nullishCoalesce(_optionalChain([tab, 'access', _372 => _372.key, 'optionalAccess', _373 => _373.name]), () => ( tab.label)),
13454
13521
  className: tab.fillHeight ? `flex flex-1 min-h-0 w-full flex-col` : `pb-20`,
13455
13522
  children: tab.content
13456
13523
  },
@@ -13461,13 +13528,16 @@ function RoundPageContainer({
13461
13528
  ]
13462
13529
  }
13463
13530
  ),
13464
- children && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex px-4", children })
13531
+ children && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkXAWKRNYMjs.cn.call(void 0, `flex`, isMobile ? `px-2` : `px-4`), children })
13465
13532
  ] }) : children
13466
13533
  }
13467
13534
  )
13468
13535
  }
13469
13536
  ),
13470
- details && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13537
+ details && (isMobile ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Sheet, { open: showDetails, onOpenChange: setShowDetails, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SheetContent, { side: "right", children: [
13538
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTitle, { children: "Details" }) }),
13539
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-y-auto p-6 pt-0", children: details })
13540
+ ] }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13471
13541
  "div",
13472
13542
  {
13473
13543
  className: _chunkXAWKRNYMjs.cn.call(void 0,
@@ -13476,7 +13546,7 @@ function RoundPageContainer({
13476
13546
  ),
13477
13547
  children: details
13478
13548
  }
13479
- )
13549
+ ))
13480
13550
  ] })
13481
13551
  ] }) }) })
13482
13552
  ] });
@@ -13575,14 +13645,14 @@ function BlockNoteEditorMentionHoverCard({
13575
13645
  const entityType = target.dataset.mentionType;
13576
13646
  const alias = target.dataset.mentionAlias;
13577
13647
  setHovered((prev) => {
13578
- if (_optionalChain([prev, 'optionalAccess', _371 => _371.id]) === id && _optionalChain([prev, 'optionalAccess', _372 => _372.element]) === target) return prev;
13648
+ if (_optionalChain([prev, 'optionalAccess', _374 => _374.id]) === id && _optionalChain([prev, 'optionalAccess', _375 => _375.element]) === target) return prev;
13579
13649
  return { id, entityType, alias, element: target };
13580
13650
  });
13581
13651
  }, "handleMouseOver");
13582
13652
  const handleMouseOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
13583
13653
  const target = e.target.closest("[data-mention-id]");
13584
13654
  if (!target) return;
13585
- const related = _optionalChain([e, 'access', _373 => _373.relatedTarget, 'optionalAccess', _374 => _374.closest, 'call', _375 => _375("[data-mention-id]")]);
13655
+ const related = _optionalChain([e, 'access', _376 => _376.relatedTarget, 'optionalAccess', _377 => _377.closest, 'call', _378 => _378("[data-mention-id]")]);
13586
13656
  if (related) return;
13587
13657
  scheduleClose();
13588
13658
  }, "handleMouseOut");
@@ -13596,7 +13666,7 @@ function BlockNoteEditorMentionHoverCard({
13596
13666
  }, [containerRef, mentionResolveFn, cancelClose, scheduleClose]);
13597
13667
  if (!hovered || !mentionResolveFn) return null;
13598
13668
  const resolved = mentionResolveFn(hovered.id, hovered.entityType, hovered.alias);
13599
- if (!_optionalChain([resolved, 'optionalAccess', _376 => _376.HoverContent])) return null;
13669
+ if (!_optionalChain([resolved, 'optionalAccess', _379 => _379.HoverContent])) return null;
13600
13670
  const ContentComponent = resolved.HoverContent;
13601
13671
  const rect = hovered.element.getBoundingClientRect();
13602
13672
  return _reactdom.createPortal.call(void 0,
@@ -13630,15 +13700,22 @@ var mentionDataAttrs = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (p)
13630
13700
  "data-mention-type": p.entityType,
13631
13701
  "data-mention-alias": p.alias
13632
13702
  }), "mentionDataAttrs");
13633
- var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn) => {
13703
+ var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn, disableMention) => {
13634
13704
  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])) {
13705
+ if (disableMention) {
13706
+ const resolved2 = _optionalChain([resolveFn, 'optionalCall', _380 => _380(props.id, props.entityType, props.alias)]);
13707
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _381 => _381.url]), () => ( "#")), className: "text-primary", children: [
13708
+ "@",
13709
+ props.alias
13710
+ ] });
13711
+ }
13712
+ const resolved = _optionalChain([resolveFn, 'optionalCall', _382 => _382(props.id, props.entityType, props.alias)]);
13713
+ if (_optionalChain([resolved, 'optionalAccess', _383 => _383.Inline])) {
13637
13714
  const Custom = resolved.Inline;
13638
13715
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props });
13639
13716
  }
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;
13717
+ const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _384 => _384.url]), () => ( "#"));
13718
+ const handleClick = _optionalChain([resolved, 'optionalAccess', _385 => _385.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
13642
13719
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href, className: "text-primary", onClick: handleClick, ...mentionDataAttrs(props), children: [
13643
13720
  "@",
13644
13721
  props.alias
@@ -13889,10 +13966,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
13889
13966
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13890
13967
  Checkbox,
13891
13968
  {
13892
- checked: _optionalChain([params, 'access', _381 => _381.checkedIds, 'optionalAccess', _382 => _382.includes, 'call', _383 => _383(row.getValue(params.name))]) || false,
13969
+ checked: _optionalChain([params, 'access', _386 => _386.checkedIds, 'optionalAccess', _387 => _387.includes, 'call', _388 => _388(row.getValue(params.name))]) || false,
13893
13970
  onCheckedChange: (value) => {
13894
13971
  row.toggleSelected(!!value);
13895
- _optionalChain([params, 'access', _384 => _384.toggleId, 'optionalCall', _385 => _385(row.getValue(params.name))]);
13972
+ _optionalChain([params, 'access', _389 => _389.toggleId, 'optionalCall', _390 => _390(row.getValue(params.name))]);
13896
13973
  },
13897
13974
  "aria-label": "Select row"
13898
13975
  }
@@ -13951,7 +14028,7 @@ function useJsonApiGet(params) {
13951
14028
  const [response, setResponse] = _react.useState.call(void 0, null);
13952
14029
  const isMounted = _react.useRef.call(void 0, true);
13953
14030
  const fetchData = _react.useCallback.call(void 0, async () => {
13954
- if (_optionalChain([params, 'access', _386 => _386.options, 'optionalAccess', _387 => _387.enabled]) === false) return;
14031
+ if (_optionalChain([params, 'access', _391 => _391.options, 'optionalAccess', _392 => _392.enabled]) === false) return;
13955
14032
  setLoading(true);
13956
14033
  setError(null);
13957
14034
  try {
@@ -13978,9 +14055,9 @@ function useJsonApiGet(params) {
13978
14055
  setLoading(false);
13979
14056
  }
13980
14057
  }
13981
- }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _388 => _388.options, 'optionalAccess', _389 => _389.enabled])]);
14058
+ }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _393 => _393.options, 'optionalAccess', _394 => _394.enabled])]);
13982
14059
  const fetchNextPage = _react.useCallback.call(void 0, async () => {
13983
- if (!_optionalChain([response, 'optionalAccess', _390 => _390.nextPage])) return;
14060
+ if (!_optionalChain([response, 'optionalAccess', _395 => _395.nextPage])) return;
13984
14061
  setLoading(true);
13985
14062
  try {
13986
14063
  const nextResponse = await response.nextPage();
@@ -14001,7 +14078,7 @@ function useJsonApiGet(params) {
14001
14078
  }
14002
14079
  }, [response]);
14003
14080
  const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
14004
- if (!_optionalChain([response, 'optionalAccess', _391 => _391.prevPage])) return;
14081
+ if (!_optionalChain([response, 'optionalAccess', _396 => _396.prevPage])) return;
14005
14082
  setLoading(true);
14006
14083
  try {
14007
14084
  const prevResponse = await response.prevPage();
@@ -14027,15 +14104,15 @@ function useJsonApiGet(params) {
14027
14104
  return () => {
14028
14105
  isMounted.current = false;
14029
14106
  };
14030
- }, [fetchData, ..._optionalChain([params, 'access', _392 => _392.options, 'optionalAccess', _393 => _393.deps]) || []]);
14107
+ }, [fetchData, ..._optionalChain([params, 'access', _397 => _397.options, 'optionalAccess', _398 => _398.deps]) || []]);
14031
14108
  return {
14032
14109
  data,
14033
14110
  loading,
14034
14111
  error,
14035
14112
  response,
14036
14113
  refetch: fetchData,
14037
- hasNextPage: !!_optionalChain([response, 'optionalAccess', _394 => _394.next]),
14038
- hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _395 => _395.prev]),
14114
+ hasNextPage: !!_optionalChain([response, 'optionalAccess', _399 => _399.next]),
14115
+ hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _400 => _400.prev]),
14039
14116
  fetchNextPage,
14040
14117
  fetchPreviousPage
14041
14118
  };
@@ -14113,17 +14190,17 @@ function useJsonApiMutation(config) {
14113
14190
  if (apiResponse.ok) {
14114
14191
  const resultData = apiResponse.data;
14115
14192
  setData(resultData);
14116
- _optionalChain([config, 'access', _396 => _396.onSuccess, 'optionalCall', _397 => _397(resultData)]);
14193
+ _optionalChain([config, 'access', _401 => _401.onSuccess, 'optionalCall', _402 => _402(resultData)]);
14117
14194
  return resultData;
14118
14195
  } else {
14119
14196
  setError(apiResponse.error);
14120
- _optionalChain([config, 'access', _398 => _398.onError, 'optionalCall', _399 => _399(apiResponse.error)]);
14197
+ _optionalChain([config, 'access', _403 => _403.onError, 'optionalCall', _404 => _404(apiResponse.error)]);
14121
14198
  return null;
14122
14199
  }
14123
14200
  } catch (err) {
14124
14201
  const errorMessage = err instanceof Error ? err.message : "Unknown error";
14125
14202
  setError(errorMessage);
14126
- _optionalChain([config, 'access', _400 => _400.onError, 'optionalCall', _401 => _401(errorMessage)]);
14203
+ _optionalChain([config, 'access', _405 => _405.onError, 'optionalCall', _406 => _406(errorMessage)]);
14127
14204
  return null;
14128
14205
  } finally {
14129
14206
  setLoading(false);
@@ -14196,7 +14273,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
14196
14273
  {
14197
14274
  href: hasRole(_chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
14198
14275
  page: "/administration",
14199
- id: _optionalChain([_chunkXAWKRNYMjs.Modules, 'access', _402 => _402.Company, 'access', _403 => _403.pageUrl, 'optionalAccess', _404 => _404.substring, 'call', _405 => _405(1)]),
14276
+ id: _optionalChain([_chunkXAWKRNYMjs.Modules, 'access', _407 => _407.Company, 'access', _408 => _408.pageUrl, 'optionalAccess', _409 => _409.substring, 'call', _410 => _410(1)]),
14200
14277
  childPage: company.id
14201
14278
  }) : generateUrl({ page: _chunkXAWKRNYMjs.Modules.Company, id: company.id }),
14202
14279
  children: row.getValue("name")
@@ -14212,7 +14289,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
14212
14289
  })
14213
14290
  };
14214
14291
  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);
14292
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _411 => _411[field], 'optionalCall', _412 => _412()])).filter((col) => col !== void 0);
14216
14293
  }, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
14217
14294
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
14218
14295
  }, "useCompanyTableStructure");
@@ -14224,7 +14301,7 @@ var GRACE_DAYS = 3;
14224
14301
  var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
14225
14302
  if (!currentUser || !_chunkSE5HIHJSjs.isRolesConfigured.call(void 0, )) return false;
14226
14303
  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)]);
14304
+ return !!_optionalChain([currentUser, 'access', _413 => _413.roles, 'optionalAccess', _414 => _414.some, 'call', _415 => _415((role) => role.id === adminRoleId)]);
14228
14305
  }, "isAdministrator");
14229
14306
  function useSubscriptionStatus() {
14230
14307
  const { company, currentUser } = useCurrentUserContext();
@@ -14341,7 +14418,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
14341
14418
  })
14342
14419
  };
14343
14420
  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);
14421
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _416 => _416[field], 'optionalCall', _417 => _417()])).filter((col) => col !== void 0);
14345
14422
  }, [params.fields, fieldColumnMap, t, generateUrl]);
14346
14423
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
14347
14424
  }, "useRoleTableStructure");
@@ -14442,11 +14519,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
14442
14519
  return params.fields.map((field) => {
14443
14520
  const localHandler = fieldColumnMap[field];
14444
14521
  if (localHandler) return localHandler();
14445
- const customHandler = _optionalChain([params, 'access', _413 => _413.context, 'optionalAccess', _414 => _414.customCells, 'optionalAccess', _415 => _415[field]]);
14522
+ const customHandler = _optionalChain([params, 'access', _418 => _418.context, 'optionalAccess', _419 => _419.customCells, 'optionalAccess', _420 => _420[field]]);
14446
14523
  if (customHandler) return customHandler({ t });
14447
14524
  return void 0;
14448
14525
  }).filter((col) => col !== void 0);
14449
- }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _416 => _416.context, 'optionalAccess', _417 => _417.customCells])]);
14526
+ }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _421 => _421.context, 'optionalAccess', _422 => _422.customCells])]);
14450
14527
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
14451
14528
  }, "useContentTableStructure");
14452
14529
 
@@ -14781,7 +14858,7 @@ function ContentTableSearch({ data }) {
14781
14858
  const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
14782
14859
  if (!isExpanded) {
14783
14860
  setIsFocused(true);
14784
- setTimeout(() => _optionalChain([inputRef, 'access', _418 => _418.current, 'optionalAccess', _419 => _419.focus, 'call', _420 => _420()]), 50);
14861
+ setTimeout(() => _optionalChain([inputRef, 'access', _423 => _423.current, 'optionalAccess', _424 => _424.focus, 'call', _425 => _425()]), 50);
14785
14862
  }
14786
14863
  }, "handleSearchIconClick");
14787
14864
  const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
@@ -14847,7 +14924,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
14847
14924
  props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
14848
14925
  );
14849
14926
  const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
14850
- data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _421 => _421.data]), () => ( EMPTY_ARRAY)),
14927
+ data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _426 => _426.data]), () => ( EMPTY_ARRAY)),
14851
14928
  fields,
14852
14929
  checkedIds,
14853
14930
  toggleId,
@@ -14916,12 +14993,12 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
14916
14993
  ) }),
14917
14994
  table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
14918
14995
  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);
14996
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _427 => _427.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
14920
14997
  }) }, headerGroup.id))
14921
14998
  ] }),
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) => {
14999
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _428 => _428.rows, 'optionalAccess', _429 => _429.length]) ? rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
14923
15000
  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);
15001
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _430 => _430.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
14925
15002
  }) }, 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
15003
  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
15004
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -14931,7 +15008,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
14931
15008
  size: "sm",
14932
15009
  onClick: (e) => {
14933
15010
  e.preventDefault();
14934
- _optionalChain([data, 'access', _426 => _426.previous, 'optionalCall', _427 => _427(true)]);
15011
+ _optionalChain([data, 'access', _431 => _431.previous, 'optionalCall', _432 => _432(true)]);
14935
15012
  },
14936
15013
  disabled: !data.previous,
14937
15014
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
@@ -14945,7 +15022,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
14945
15022
  size: "sm",
14946
15023
  onClick: (e) => {
14947
15024
  e.preventDefault();
14948
- _optionalChain([data, 'access', _428 => _428.next, 'optionalCall', _429 => _429(true)]);
15025
+ _optionalChain([data, 'access', _433 => _433.next, 'optionalCall', _434 => _434(true)]);
14949
15026
  },
14950
15027
  disabled: !data.next,
14951
15028
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" })
@@ -14966,7 +15043,7 @@ function ContentListGrid(props) {
14966
15043
  if (!data.next || !sentinelRef.current) return;
14967
15044
  const observer = new IntersectionObserver(
14968
15045
  (entries) => {
14969
- if (_optionalChain([entries, 'access', _430 => _430[0], 'optionalAccess', _431 => _431.isIntersecting])) _optionalChain([data, 'access', _432 => _432.next, 'optionalCall', _433 => _433()]);
15046
+ if (_optionalChain([entries, 'access', _435 => _435[0], 'optionalAccess', _436 => _436.isIntersecting])) _optionalChain([data, 'access', _437 => _437.next, 'optionalCall', _438 => _438()]);
14970
15047
  },
14971
15048
  { threshold: 0.1, rootMargin: "200px" }
14972
15049
  );
@@ -15716,7 +15793,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
15716
15793
  newDigits[index] = digit;
15717
15794
  setDigits(newDigits);
15718
15795
  if (digit && index < 5) {
15719
- _optionalChain([inputRefs, 'access', _434 => _434.current, 'access', _435 => _435[index + 1], 'optionalAccess', _436 => _436.focus, 'call', _437 => _437()]);
15796
+ _optionalChain([inputRefs, 'access', _439 => _439.current, 'access', _440 => _440[index + 1], 'optionalAccess', _441 => _441.focus, 'call', _442 => _442()]);
15720
15797
  }
15721
15798
  const code = newDigits.join("");
15722
15799
  if (code.length === 6 && newDigits.every((d) => d !== "")) {
@@ -15725,7 +15802,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
15725
15802
  }, "handleChange");
15726
15803
  const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
15727
15804
  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()]);
15805
+ _optionalChain([inputRefs, 'access', _443 => _443.current, 'access', _444 => _444[index - 1], 'optionalAccess', _445 => _445.focus, 'call', _446 => _446()]);
15729
15806
  }
15730
15807
  }, "handleKeyDown");
15731
15808
  const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
@@ -15734,7 +15811,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
15734
15811
  if (pastedData.length === 6) {
15735
15812
  const newDigits = pastedData.split("");
15736
15813
  setDigits(newDigits);
15737
- _optionalChain([inputRefs, 'access', _442 => _442.current, 'access', _443 => _443[5], 'optionalAccess', _444 => _444.focus, 'call', _445 => _445()]);
15814
+ _optionalChain([inputRefs, 'access', _447 => _447.current, 'access', _448 => _448[5], 'optionalAccess', _449 => _449.focus, 'call', _450 => _450()]);
15738
15815
  onComplete(pastedData);
15739
15816
  }
15740
15817
  }, "handlePaste");
@@ -15945,8 +16022,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
15945
16022
  try {
15946
16023
  const registrationData = await _chunkXAWKRNYMjs.TwoFactorService.getPasskeyRegistrationOptions({
15947
16024
  id: _uuid.v4.call(void 0, ),
15948
- userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _446 => _446.email]), () => ( "")),
15949
- userDisplayName: _optionalChain([currentUser, 'optionalAccess', _447 => _447.name])
16025
+ userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _451 => _451.email]), () => ( "")),
16026
+ userDisplayName: _optionalChain([currentUser, 'optionalAccess', _452 => _452.name])
15950
16027
  });
15951
16028
  const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
15952
16029
  await _chunkXAWKRNYMjs.TwoFactorService.verifyPasskeyRegistration({
@@ -16097,7 +16174,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
16097
16174
  const setup = await _chunkXAWKRNYMjs.TwoFactorService.setupTotp({
16098
16175
  id: _uuid.v4.call(void 0, ),
16099
16176
  name: name.trim(),
16100
- accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _448 => _448.email]), () => ( ""))
16177
+ accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _453 => _453.email]), () => ( ""))
16101
16178
  });
16102
16179
  setQrCodeUri(setup.qrCodeUri);
16103
16180
  setAuthenticatorId(setup.authenticatorId);
@@ -16231,7 +16308,7 @@ function TwoFactorSettings() {
16231
16308
  if (isLoading) {
16232
16309
  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
16310
  }
16234
- const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _449 => _449.isEnabled]), () => ( false));
16311
+ const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _454 => _454.isEnabled]), () => ( false));
16235
16312
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
16236
16313
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
16237
16314
  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 +16346,7 @@ function TwoFactorSettings() {
16269
16346
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
16270
16347
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
16271
16348
  ] }),
16272
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _450 => _450.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
16349
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _455 => _455.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
16273
16350
  ] }) }),
16274
16351
  !isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
16275
16352
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
@@ -16447,9 +16524,9 @@ function AcceptInvitation() {
16447
16524
  });
16448
16525
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
16449
16526
  try {
16450
- if (!_optionalChain([params, 'optionalAccess', _451 => _451.code])) return;
16527
+ if (!_optionalChain([params, 'optionalAccess', _456 => _456.code])) return;
16451
16528
  const payload = {
16452
- code: _optionalChain([params, 'optionalAccess', _452 => _452.code]),
16529
+ code: _optionalChain([params, 'optionalAccess', _457 => _457.code]),
16453
16530
  password: values.password
16454
16531
  };
16455
16532
  await _chunkXAWKRNYMjs.AuthService.acceptInvitation(payload);
@@ -16799,7 +16876,7 @@ function Logout({ storageKeys }) {
16799
16876
  const generateUrl = usePageUrlGenerator();
16800
16877
  _react.useEffect.call(void 0, () => {
16801
16878
  const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
16802
- if (_optionalChain([storageKeys, 'optionalAccess', _453 => _453.length])) {
16879
+ if (_optionalChain([storageKeys, 'optionalAccess', _458 => _458.length])) {
16803
16880
  clearClientStorage(storageKeys);
16804
16881
  }
16805
16882
  await _chunkXAWKRNYMjs.AuthService.logout();
@@ -16822,14 +16899,14 @@ function RefreshUser() {
16822
16899
  setUser(fullUser);
16823
16900
  const token = {
16824
16901
  userId: fullUser.id,
16825
- companyId: _optionalChain([fullUser, 'access', _454 => _454.company, 'optionalAccess', _455 => _455.id]),
16902
+ companyId: _optionalChain([fullUser, 'access', _459 => _459.company, 'optionalAccess', _460 => _460.id]),
16826
16903
  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)]), () => ( [])),
16904
+ features: _nullishCoalesce(_optionalChain([fullUser, 'access', _461 => _461.company, 'optionalAccess', _462 => _462.features, 'optionalAccess', _463 => _463.map, 'call', _464 => _464((feature) => feature.id)]), () => ( [])),
16828
16905
  modules: fullUser.modules.map((module) => {
16829
16906
  return { id: module.id, permissions: module.permissions };
16830
16907
  })
16831
16908
  };
16832
- await _optionalChain([_chunkXAWKRNYMjs.getTokenHandler.call(void 0, ), 'optionalAccess', _460 => _460.updateToken, 'call', _461 => _461(token)]);
16909
+ await _optionalChain([_chunkXAWKRNYMjs.getTokenHandler.call(void 0, ), 'optionalAccess', _465 => _465.updateToken, 'call', _466 => _466(token)]);
16833
16910
  _cookiesnext.deleteCookie.call(void 0, "reloadData");
16834
16911
  }
16835
16912
  }, "loadFullUser");
@@ -16893,9 +16970,9 @@ function ResetPassword() {
16893
16970
  });
16894
16971
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
16895
16972
  try {
16896
- if (!_optionalChain([params, 'optionalAccess', _462 => _462.code])) return;
16973
+ if (!_optionalChain([params, 'optionalAccess', _467 => _467.code])) return;
16897
16974
  const payload = {
16898
- code: _optionalChain([params, 'optionalAccess', _463 => _463.code]),
16975
+ code: _optionalChain([params, 'optionalAccess', _468 => _468.code]),
16899
16976
  password: values.password
16900
16977
  };
16901
16978
  await _chunkXAWKRNYMjs.AuthService.resetPassword(payload);
@@ -17244,7 +17321,7 @@ function extractHeadings(blocks) {
17244
17321
  function processBlocks(blockArray) {
17245
17322
  for (const block of blockArray) {
17246
17323
  if (block.type === "heading") {
17247
- const level = _optionalChain([block, 'access', _464 => _464.props, 'optionalAccess', _465 => _465.level]) || 1;
17324
+ const level = _optionalChain([block, 'access', _469 => _469.props, 'optionalAccess', _470 => _470.level]) || 1;
17248
17325
  const text = extractTextFromContent(block.content);
17249
17326
  if (text.trim()) {
17250
17327
  headings.push({
@@ -17587,7 +17664,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
17587
17664
  })
17588
17665
  };
17589
17666
  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);
17667
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _471 => _471[field], 'optionalCall', _472 => _472()])).filter((col) => col !== void 0);
17591
17668
  }, [params.fields, fieldColumnMap, t, generateUrl]);
17592
17669
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17593
17670
  }, "useHowToTableStructure");
@@ -17653,7 +17730,7 @@ function HowToMultiSelector({
17653
17730
  retriever: (params) => _chunkXAWKRNYMjs.HowToService.findMany(params),
17654
17731
  module: _chunkXAWKRNYMjs.Modules.HowTo,
17655
17732
  getLabel: (howTo) => howTo.name,
17656
- excludeId: _optionalChain([currentHowTo, 'optionalAccess', _468 => _468.id]),
17733
+ excludeId: _optionalChain([currentHowTo, 'optionalAccess', _473 => _473.id]),
17657
17734
  onChange
17658
17735
  }
17659
17736
  );
@@ -17718,7 +17795,7 @@ function HowToSelector({
17718
17795
  }, "setHowTo");
17719
17796
  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
17797
  /* @__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 }) }))) }) }) }),
17798
+ /* @__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', _474 => _474.value, 'optionalAccess', _475 => _475.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
17799
  field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
17723
17800
  _lucidereact.CircleX,
17724
17801
  {
@@ -18073,9 +18150,9 @@ function CitationsTab({ citations, sources }) {
18073
18150
  ] }) }),
18074
18151
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
18075
18152
  const isOpen = expanded.has(chunk.id);
18076
- const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _471 => _471.get, 'call', _472 => _472(chunk.nodeId)]) : void 0;
18153
+ const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _476 => _476.get, 'call', _477 => _477(chunk.nodeId)]) : void 0;
18077
18154
  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));
18155
+ const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _478 => _478.name]), () => ( fallbackName));
18079
18156
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
18080
18157
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
18081
18158
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -18122,7 +18199,7 @@ function ContentsTab({ citations, sources }) {
18122
18199
  for (const c of citations) {
18123
18200
  const id = c.nodeId;
18124
18201
  if (!id) continue;
18125
- const source = _optionalChain([sources, 'optionalAccess', _474 => _474.get, 'call', _475 => _475(id)]);
18202
+ const source = _optionalChain([sources, 'optionalAccess', _479 => _479.get, 'call', _480 => _480(id)]);
18126
18203
  if (!source) continue;
18127
18204
  const existing = map.get(id);
18128
18205
  if (existing) {
@@ -18187,7 +18264,7 @@ function UsersTab({ users, citations, sources }) {
18187
18264
  const generate = usePageUrlGenerator();
18188
18265
  const userMap = /* @__PURE__ */ new Map();
18189
18266
  for (const u of users) {
18190
- if (!_optionalChain([u, 'optionalAccess', _476 => _476.id])) continue;
18267
+ if (!_optionalChain([u, 'optionalAccess', _481 => _481.id])) continue;
18191
18268
  userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
18192
18269
  }
18193
18270
  if (citations && sources) {
@@ -18291,7 +18368,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
18291
18368
  }
18292
18369
  return ids.size;
18293
18370
  }, [message.citations, sources]);
18294
- const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _477 => _477.length]), () => ( 0));
18371
+ const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _482 => _482.length]), () => ( 0));
18295
18372
  const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
18296
18373
  const visibleTabs = [];
18297
18374
  if (suggestionsCount > 0) visibleTabs.push("suggested");
@@ -18350,8 +18427,8 @@ var SourcesFetcher = class extends _chunkXAWKRNYMjs.ClientAbstractService {
18350
18427
  static async findManyByIds(params) {
18351
18428
  const endpoint = new (0, _chunkXAWKRNYMjs.EndpointCreator)({ endpoint: params.module });
18352
18429
  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);
18430
+ if (_optionalChain([params, 'access', _483 => _483.module, 'access', _484 => _484.inclusions, 'optionalAccess', _485 => _485.lists, 'optionalAccess', _486 => _486.fields])) endpoint.limitToFields(params.module.inclusions.lists.fields);
18431
+ if (_optionalChain([params, 'access', _487 => _487.module, 'access', _488 => _488.inclusions, 'optionalAccess', _489 => _489.lists, 'optionalAccess', _490 => _490.types])) endpoint.limitToType(params.module.inclusions.lists.types);
18355
18432
  return this.callApi({
18356
18433
  type: params.module,
18357
18434
  method: "GET" /* GET */,
@@ -18430,7 +18507,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
18430
18507
  return void 0;
18431
18508
  }
18432
18509
  })()));
18433
- if (_optionalChain([author, 'optionalAccess', _486 => _486.id])) userMap.set(author.id, author);
18510
+ if (_optionalChain([author, 'optionalAccess', _491 => _491.id])) userMap.set(author.id, author);
18434
18511
  }
18435
18512
  return Array.from(userMap.values());
18436
18513
  }, [resolved]);
@@ -18452,14 +18529,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, MessageSourcesContainer, "MessageSourcesCon
18452
18529
  function MessageItem({ message, isLatestAssistant, onSelectFollowUp, failedMessageIds, onRetry }) {
18453
18530
  const t = _nextintl.useTranslations.call(void 0, );
18454
18531
  const isUser = message.role === "user";
18455
- const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _487 => _487.has, 'call', _488 => _488(message.id)]);
18532
+ const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _492 => _492.has, 'call', _493 => _493(message.id)]);
18456
18533
  if (isUser) {
18457
18534
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-end gap-1", children: [
18458
18535
  /* @__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
18536
  isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
18460
18537
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
18461
18538
  /* @__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") })
18539
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall', _494 => _494(message.id)]), children: t("features.assistant.retry") })
18463
18540
  ] })
18464
18541
  ] });
18465
18542
  }
@@ -18525,7 +18602,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AssistantStatusLine, "AssistantStatusLine")
18525
18602
  function AssistantThread({ messages, sending, status, onSelectFollowUp, failedMessageIds, onRetry }) {
18526
18603
  const endRef = _react.useRef.call(void 0, null);
18527
18604
  _react.useEffect.call(void 0, () => {
18528
- _optionalChain([endRef, 'access', _490 => _490.current, 'optionalAccess', _491 => _491.scrollIntoView, 'call', _492 => _492({ behavior: "smooth" })]);
18605
+ _optionalChain([endRef, 'access', _495 => _495.current, 'optionalAccess', _496 => _496.scrollIntoView, 'call', _497 => _497({ behavior: "smooth" })]);
18529
18606
  }, [messages.length, sending]);
18530
18607
  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
18608
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -18553,7 +18630,7 @@ function AssistantContainer() {
18553
18630
  AssistantSidebar,
18554
18631
  {
18555
18632
  threads: ctx.threads,
18556
- activeId: _optionalChain([ctx, 'access', _493 => _493.assistant, 'optionalAccess', _494 => _494.id]),
18633
+ activeId: _optionalChain([ctx, 'access', _498 => _498.assistant, 'optionalAccess', _499 => _499.id]),
18557
18634
  onSelect: ctx.selectThread,
18558
18635
  onNew: ctx.startNew
18559
18636
  }
@@ -18646,14 +18723,14 @@ function NotificationsList({ archived }) {
18646
18723
  ] }),
18647
18724
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
18648
18725
  ] }) }) }, 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) => {
18726
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _500 => _500.data, 'optionalAccess', _501 => _501.map, 'call', _502 => _502((notification) => {
18650
18727
  const notificationData = generateNotificationData({ notification, generateUrl });
18651
18728
  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
18729
  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
18730
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
18654
18731
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
18655
18732
  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]), () => ( "")),
18733
+ actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _503 => _503.actor, 'optionalAccess', _504 => _504.name]), () => ( "")),
18657
18734
  title: notificationData.title
18658
18735
  }) }),
18659
18736
  /* @__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 +19080,7 @@ var DEFAULT_TRANSLATIONS = {
19003
19080
  invalidEmail: "Please enter a valid email address"
19004
19081
  };
19005
19082
  async function copyToClipboard(text) {
19006
- if (_optionalChain([navigator, 'access', _500 => _500.clipboard, 'optionalAccess', _501 => _501.writeText])) {
19083
+ if (_optionalChain([navigator, 'access', _505 => _505.clipboard, 'optionalAccess', _506 => _506.writeText])) {
19007
19084
  try {
19008
19085
  await navigator.clipboard.writeText(text);
19009
19086
  return true;
@@ -19045,7 +19122,7 @@ function ReferralWidget({
19045
19122
  const linkInputRef = _react.useRef.call(void 0, null);
19046
19123
  const config = _chunkSE5HIHJSjs.getReferralConfig.call(void 0, );
19047
19124
  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}` : "";
19125
+ const referralUrl = _optionalChain([stats, 'optionalAccess', _507 => _507.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
19049
19126
  if (!_chunkSE5HIHJSjs.isReferralEnabled.call(void 0, )) {
19050
19127
  return null;
19051
19128
  }
@@ -19055,7 +19132,7 @@ function ReferralWidget({
19055
19132
  if (success) {
19056
19133
  setCopied(true);
19057
19134
  _chunkXAWKRNYMjs.showToast.call(void 0, t.copiedMessage);
19058
- _optionalChain([onLinkCopied, 'optionalCall', _503 => _503()]);
19135
+ _optionalChain([onLinkCopied, 'optionalCall', _508 => _508()]);
19059
19136
  setTimeout(() => setCopied(false), 2e3);
19060
19137
  } else {
19061
19138
  _chunkXAWKRNYMjs.showError.call(void 0, t.copyError);
@@ -19069,12 +19146,12 @@ function ReferralWidget({
19069
19146
  try {
19070
19147
  await sendInvite(email);
19071
19148
  _chunkXAWKRNYMjs.showToast.call(void 0, t.inviteSent);
19072
- _optionalChain([onInviteSent, 'optionalCall', _504 => _504(email)]);
19149
+ _optionalChain([onInviteSent, 'optionalCall', _509 => _509(email)]);
19073
19150
  setEmail("");
19074
19151
  } catch (err) {
19075
19152
  const error2 = err instanceof Error ? err : new Error(t.inviteError);
19076
19153
  _chunkXAWKRNYMjs.showError.call(void 0, error2.message);
19077
- _optionalChain([onInviteError, 'optionalCall', _505 => _505(error2)]);
19154
+ _optionalChain([onInviteError, 'optionalCall', _510 => _510(error2)]);
19078
19155
  }
19079
19156
  }, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
19080
19157
  const handleEmailKeyDown = _react.useCallback.call(void 0,
@@ -19828,7 +19905,7 @@ function OAuthClientList({
19828
19905
  OAuthClientCard,
19829
19906
  {
19830
19907
  client,
19831
- onClick: () => _optionalChain([onClientClick, 'optionalCall', _506 => _506(client)]),
19908
+ onClick: () => _optionalChain([onClientClick, 'optionalCall', _511 => _511(client)]),
19832
19909
  onEdit: onEditClick ? () => onEditClick(client) : void 0,
19833
19910
  onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
19834
19911
  },
@@ -19844,11 +19921,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
19844
19921
  function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
19845
19922
  const isEditMode = !!client;
19846
19923
  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))
19924
+ name: _optionalChain([client, 'optionalAccess', _512 => _512.name]) || "",
19925
+ description: _optionalChain([client, 'optionalAccess', _513 => _513.description]) || "",
19926
+ redirectUris: _optionalChain([client, 'optionalAccess', _514 => _514.redirectUris, 'optionalAccess', _515 => _515.length]) ? client.redirectUris : [""],
19927
+ allowedScopes: _optionalChain([client, 'optionalAccess', _516 => _516.allowedScopes]) || [],
19928
+ isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _517 => _517.isConfidential]), () => ( true))
19852
19929
  });
19853
19930
  const [errors, setErrors] = _react.useState.call(void 0, {});
19854
19931
  const validate = _react.useCallback.call(void 0, () => {
@@ -20076,7 +20153,7 @@ function OAuthClientDetail({
20076
20153
  ] }),
20077
20154
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
20078
20155
  /* @__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)) })
20156
+ /* @__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', _518 => _518[scope], 'optionalAccess', _519 => _519.name]) || scope }, scope)) })
20080
20157
  ] }),
20081
20158
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
20082
20159
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
@@ -20220,7 +20297,7 @@ function OAuthConsentScreen({
20220
20297
  if (error || !clientInfo) {
20221
20298
  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
20299
  /* @__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." })
20300
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _520 => _520.message]) || "Invalid authorization request. Please try again." })
20224
20301
  ] }) }) }) });
20225
20302
  }
20226
20303
  const { client, scopes } = clientInfo;
@@ -20436,7 +20513,7 @@ function WaitlistForm({ onSuccess }) {
20436
20513
  questionnaire: values.questionnaire
20437
20514
  });
20438
20515
  setIsSuccess(true);
20439
- _optionalChain([onSuccess, 'optionalCall', _516 => _516()]);
20516
+ _optionalChain([onSuccess, 'optionalCall', _521 => _521()]);
20440
20517
  } catch (e) {
20441
20518
  errorToast({ error: e });
20442
20519
  } finally {
@@ -21074,7 +21151,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
21074
21151
  ] }),
21075
21152
  roleIds.map((roleId) => {
21076
21153
  const roleTokens = block[roleId];
21077
- const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _517 => _517[roleId]]), () => ( roleId));
21154
+ const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _522 => _522[roleId]]), () => ( roleId));
21078
21155
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
21079
21156
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
21080
21157
  _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 +21188,7 @@ function RbacContainer() {
21111
21188
  }, []);
21112
21189
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
21113
21190
  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))));
21191
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _523 => _523[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _524 => _524[b]]), () => ( b))));
21115
21192
  }, [matrix, moduleNames]);
21116
21193
  const roleIds = _react.useMemo.call(void 0, () => {
21117
21194
  if (roleNames) {
@@ -21174,7 +21251,7 @@ function RbacContainer() {
21174
21251
  id === selectedModuleId && "bg-muted font-medium text-foreground",
21175
21252
  id !== selectedModuleId && "text-muted-foreground"
21176
21253
  ),
21177
- children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _520 => _520[id]]), () => ( id))
21254
+ children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _525 => _525[id]]), () => ( id))
21178
21255
  }
21179
21256
  ) }, id)) }) }),
21180
21257
  /* @__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 +21259,7 @@ function RbacContainer() {
21182
21259
  {
21183
21260
  moduleId: selectedModuleId,
21184
21261
  block: selectedBlock,
21185
- moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _521 => _521[selectedModuleId]]), () => ( selectedModuleId)),
21262
+ moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _526 => _526[selectedModuleId]]), () => ( selectedModuleId)),
21186
21263
  roleIds,
21187
21264
  roleNames,
21188
21265
  onOpenPicker: openPicker
@@ -21193,12 +21270,12 @@ function RbacContainer() {
21193
21270
  RbacPermissionPicker,
21194
21271
  {
21195
21272
  open: !!activePicker,
21196
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _522 => _522.anchor]), () => ( null)),
21273
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _527 => _527.anchor]), () => ( null)),
21197
21274
  value: activeValue,
21198
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _523 => _523.isRoleColumn]), () => ( false)),
21275
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _528 => _528.isRoleColumn]), () => ( false)),
21199
21276
  knownSegments: activeSegments,
21200
21277
  onSetValue: handleSetValue,
21201
- onClear: _optionalChain([activePicker, 'optionalAccess', _524 => _524.isRoleColumn]) ? handleClear : void 0,
21278
+ onClear: _optionalChain([activePicker, 'optionalAccess', _529 => _529.isRoleColumn]) ? handleClear : void 0,
21202
21279
  onClose: closePicker
21203
21280
  }
21204
21281
  )
@@ -21265,7 +21342,7 @@ function RbacByRoleContainer() {
21265
21342
  }, [roleNames]);
21266
21343
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
21267
21344
  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))));
21345
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _530 => _530[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _531 => _531[b]]), () => ( b))));
21269
21346
  }, [matrix, moduleNames]);
21270
21347
  _react.useEffect.call(void 0, () => {
21271
21348
  if (!selectedRoleId && sortedRoleIds.length > 0) {
@@ -21314,7 +21391,7 @@ function RbacByRoleContainer() {
21314
21391
  id === selectedRoleId && "bg-muted font-medium text-foreground",
21315
21392
  id !== selectedRoleId && "text-muted-foreground"
21316
21393
  ),
21317
- children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _527 => _527[id]]), () => ( id))
21394
+ children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _532 => _532[id]]), () => ( id))
21318
21395
  }
21319
21396
  ) }, id)) }) }),
21320
21397
  /* @__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 +21411,7 @@ function RbacByRoleContainer() {
21334
21411
  if (!block) return null;
21335
21412
  const defaultTokens = _nullishCoalesce(block.default, () => ( []));
21336
21413
  const roleTokens = block[selectedRoleId];
21337
- const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _528 => _528[moduleId]]), () => ( moduleId));
21414
+ const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _533 => _533[moduleId]]), () => ( moduleId));
21338
21415
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
21339
21416
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
21340
21417
  "td",
@@ -21349,7 +21426,7 @@ function RbacByRoleContainer() {
21349
21426
  _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
21427
  ] }),
21351
21428
  /* @__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)) }),
21429
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _534 => _534[selectedRoleId]]), () => ( selectedRoleId)) }),
21353
21430
  _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
21431
  CellButton3,
21355
21432
  {
@@ -21370,12 +21447,12 @@ function RbacByRoleContainer() {
21370
21447
  RbacPermissionPicker,
21371
21448
  {
21372
21449
  open: !!activePicker,
21373
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _530 => _530.anchor]), () => ( null)),
21450
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _535 => _535.anchor]), () => ( null)),
21374
21451
  value: activeValue,
21375
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _531 => _531.isRoleColumn]), () => ( false)),
21452
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _536 => _536.isRoleColumn]), () => ( false)),
21376
21453
  knownSegments: activeSegments,
21377
21454
  onSetValue: handleSetValue,
21378
- onClear: _optionalChain([activePicker, 'optionalAccess', _532 => _532.isRoleColumn]) ? handleClear : void 0,
21455
+ onClear: _optionalChain([activePicker, 'optionalAccess', _537 => _537.isRoleColumn]) ? handleClear : void 0,
21379
21456
  onClose: closePicker
21380
21457
  }
21381
21458
  )
@@ -21895,4 +21972,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
21895
21972
 
21896
21973
 
21897
21974
  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
21975
+ //# sourceMappingURL=chunk-2KX3OXHE.js.map