@carlonicora/nextjs-jsonapi 1.91.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-IQAOVSUT.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,
@@ -13633,19 +13703,19 @@ var mentionDataAttrs = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (p)
13633
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
13705
  if (disableMention) {
13636
- const resolved2 = _optionalChain([resolveFn, 'optionalCall', _377 => _377(props.id, props.entityType, props.alias)]);
13637
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _378 => _378.url]), () => ( "#")), className: "text-primary", children: [
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: [
13638
13708
  "@",
13639
13709
  props.alias
13640
13710
  ] });
13641
13711
  }
13642
- const resolved = _optionalChain([resolveFn, 'optionalCall', _379 => _379(props.id, props.entityType, props.alias)]);
13643
- if (_optionalChain([resolved, 'optionalAccess', _380 => _380.Inline])) {
13712
+ const resolved = _optionalChain([resolveFn, 'optionalCall', _382 => _382(props.id, props.entityType, props.alias)]);
13713
+ if (_optionalChain([resolved, 'optionalAccess', _383 => _383.Inline])) {
13644
13714
  const Custom = resolved.Inline;
13645
13715
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props });
13646
13716
  }
13647
- const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _381 => _381.url]), () => ( "#"));
13648
- const handleClick = _optionalChain([resolved, 'optionalAccess', _382 => _382.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
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;
13649
13719
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href, className: "text-primary", onClick: handleClick, ...mentionDataAttrs(props), children: [
13650
13720
  "@",
13651
13721
  props.alias
@@ -13896,10 +13966,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
13896
13966
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13897
13967
  Checkbox,
13898
13968
  {
13899
- checked: _optionalChain([params, 'access', _383 => _383.checkedIds, 'optionalAccess', _384 => _384.includes, 'call', _385 => _385(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,
13900
13970
  onCheckedChange: (value) => {
13901
13971
  row.toggleSelected(!!value);
13902
- _optionalChain([params, 'access', _386 => _386.toggleId, 'optionalCall', _387 => _387(row.getValue(params.name))]);
13972
+ _optionalChain([params, 'access', _389 => _389.toggleId, 'optionalCall', _390 => _390(row.getValue(params.name))]);
13903
13973
  },
13904
13974
  "aria-label": "Select row"
13905
13975
  }
@@ -13958,7 +14028,7 @@ function useJsonApiGet(params) {
13958
14028
  const [response, setResponse] = _react.useState.call(void 0, null);
13959
14029
  const isMounted = _react.useRef.call(void 0, true);
13960
14030
  const fetchData = _react.useCallback.call(void 0, async () => {
13961
- if (_optionalChain([params, 'access', _388 => _388.options, 'optionalAccess', _389 => _389.enabled]) === false) return;
14031
+ if (_optionalChain([params, 'access', _391 => _391.options, 'optionalAccess', _392 => _392.enabled]) === false) return;
13962
14032
  setLoading(true);
13963
14033
  setError(null);
13964
14034
  try {
@@ -13985,9 +14055,9 @@ function useJsonApiGet(params) {
13985
14055
  setLoading(false);
13986
14056
  }
13987
14057
  }
13988
- }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _390 => _390.options, 'optionalAccess', _391 => _391.enabled])]);
14058
+ }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _393 => _393.options, 'optionalAccess', _394 => _394.enabled])]);
13989
14059
  const fetchNextPage = _react.useCallback.call(void 0, async () => {
13990
- if (!_optionalChain([response, 'optionalAccess', _392 => _392.nextPage])) return;
14060
+ if (!_optionalChain([response, 'optionalAccess', _395 => _395.nextPage])) return;
13991
14061
  setLoading(true);
13992
14062
  try {
13993
14063
  const nextResponse = await response.nextPage();
@@ -14008,7 +14078,7 @@ function useJsonApiGet(params) {
14008
14078
  }
14009
14079
  }, [response]);
14010
14080
  const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
14011
- if (!_optionalChain([response, 'optionalAccess', _393 => _393.prevPage])) return;
14081
+ if (!_optionalChain([response, 'optionalAccess', _396 => _396.prevPage])) return;
14012
14082
  setLoading(true);
14013
14083
  try {
14014
14084
  const prevResponse = await response.prevPage();
@@ -14034,15 +14104,15 @@ function useJsonApiGet(params) {
14034
14104
  return () => {
14035
14105
  isMounted.current = false;
14036
14106
  };
14037
- }, [fetchData, ..._optionalChain([params, 'access', _394 => _394.options, 'optionalAccess', _395 => _395.deps]) || []]);
14107
+ }, [fetchData, ..._optionalChain([params, 'access', _397 => _397.options, 'optionalAccess', _398 => _398.deps]) || []]);
14038
14108
  return {
14039
14109
  data,
14040
14110
  loading,
14041
14111
  error,
14042
14112
  response,
14043
14113
  refetch: fetchData,
14044
- hasNextPage: !!_optionalChain([response, 'optionalAccess', _396 => _396.next]),
14045
- hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _397 => _397.prev]),
14114
+ hasNextPage: !!_optionalChain([response, 'optionalAccess', _399 => _399.next]),
14115
+ hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _400 => _400.prev]),
14046
14116
  fetchNextPage,
14047
14117
  fetchPreviousPage
14048
14118
  };
@@ -14120,17 +14190,17 @@ function useJsonApiMutation(config) {
14120
14190
  if (apiResponse.ok) {
14121
14191
  const resultData = apiResponse.data;
14122
14192
  setData(resultData);
14123
- _optionalChain([config, 'access', _398 => _398.onSuccess, 'optionalCall', _399 => _399(resultData)]);
14193
+ _optionalChain([config, 'access', _401 => _401.onSuccess, 'optionalCall', _402 => _402(resultData)]);
14124
14194
  return resultData;
14125
14195
  } else {
14126
14196
  setError(apiResponse.error);
14127
- _optionalChain([config, 'access', _400 => _400.onError, 'optionalCall', _401 => _401(apiResponse.error)]);
14197
+ _optionalChain([config, 'access', _403 => _403.onError, 'optionalCall', _404 => _404(apiResponse.error)]);
14128
14198
  return null;
14129
14199
  }
14130
14200
  } catch (err) {
14131
14201
  const errorMessage = err instanceof Error ? err.message : "Unknown error";
14132
14202
  setError(errorMessage);
14133
- _optionalChain([config, 'access', _402 => _402.onError, 'optionalCall', _403 => _403(errorMessage)]);
14203
+ _optionalChain([config, 'access', _405 => _405.onError, 'optionalCall', _406 => _406(errorMessage)]);
14134
14204
  return null;
14135
14205
  } finally {
14136
14206
  setLoading(false);
@@ -14203,7 +14273,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
14203
14273
  {
14204
14274
  href: hasRole(_chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
14205
14275
  page: "/administration",
14206
- id: _optionalChain([_chunkXAWKRNYMjs.Modules, 'access', _404 => _404.Company, 'access', _405 => _405.pageUrl, 'optionalAccess', _406 => _406.substring, 'call', _407 => _407(1)]),
14276
+ id: _optionalChain([_chunkXAWKRNYMjs.Modules, 'access', _407 => _407.Company, 'access', _408 => _408.pageUrl, 'optionalAccess', _409 => _409.substring, 'call', _410 => _410(1)]),
14207
14277
  childPage: company.id
14208
14278
  }) : generateUrl({ page: _chunkXAWKRNYMjs.Modules.Company, id: company.id }),
14209
14279
  children: row.getValue("name")
@@ -14219,7 +14289,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
14219
14289
  })
14220
14290
  };
14221
14291
  const columns = _react.useMemo.call(void 0, () => {
14222
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _408 => _408[field], 'optionalCall', _409 => _409()])).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);
14223
14293
  }, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
14224
14294
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
14225
14295
  }, "useCompanyTableStructure");
@@ -14231,7 +14301,7 @@ var GRACE_DAYS = 3;
14231
14301
  var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
14232
14302
  if (!currentUser || !_chunkSE5HIHJSjs.isRolesConfigured.call(void 0, )) return false;
14233
14303
  const adminRoleId = _chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator;
14234
- return !!_optionalChain([currentUser, 'access', _410 => _410.roles, 'optionalAccess', _411 => _411.some, 'call', _412 => _412((role) => role.id === adminRoleId)]);
14304
+ return !!_optionalChain([currentUser, 'access', _413 => _413.roles, 'optionalAccess', _414 => _414.some, 'call', _415 => _415((role) => role.id === adminRoleId)]);
14235
14305
  }, "isAdministrator");
14236
14306
  function useSubscriptionStatus() {
14237
14307
  const { company, currentUser } = useCurrentUserContext();
@@ -14348,7 +14418,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
14348
14418
  })
14349
14419
  };
14350
14420
  const columns = _react.useMemo.call(void 0, () => {
14351
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _413 => _413[field], 'optionalCall', _414 => _414()])).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);
14352
14422
  }, [params.fields, fieldColumnMap, t, generateUrl]);
14353
14423
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
14354
14424
  }, "useRoleTableStructure");
@@ -14449,11 +14519,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
14449
14519
  return params.fields.map((field) => {
14450
14520
  const localHandler = fieldColumnMap[field];
14451
14521
  if (localHandler) return localHandler();
14452
- const customHandler = _optionalChain([params, 'access', _415 => _415.context, 'optionalAccess', _416 => _416.customCells, 'optionalAccess', _417 => _417[field]]);
14522
+ const customHandler = _optionalChain([params, 'access', _418 => _418.context, 'optionalAccess', _419 => _419.customCells, 'optionalAccess', _420 => _420[field]]);
14453
14523
  if (customHandler) return customHandler({ t });
14454
14524
  return void 0;
14455
14525
  }).filter((col) => col !== void 0);
14456
- }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _418 => _418.context, 'optionalAccess', _419 => _419.customCells])]);
14526
+ }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _421 => _421.context, 'optionalAccess', _422 => _422.customCells])]);
14457
14527
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
14458
14528
  }, "useContentTableStructure");
14459
14529
 
@@ -14788,7 +14858,7 @@ function ContentTableSearch({ data }) {
14788
14858
  const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
14789
14859
  if (!isExpanded) {
14790
14860
  setIsFocused(true);
14791
- setTimeout(() => _optionalChain([inputRef, 'access', _420 => _420.current, 'optionalAccess', _421 => _421.focus, 'call', _422 => _422()]), 50);
14861
+ setTimeout(() => _optionalChain([inputRef, 'access', _423 => _423.current, 'optionalAccess', _424 => _424.focus, 'call', _425 => _425()]), 50);
14792
14862
  }
14793
14863
  }, "handleSearchIconClick");
14794
14864
  const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
@@ -14854,7 +14924,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
14854
14924
  props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
14855
14925
  );
14856
14926
  const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
14857
- data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _423 => _423.data]), () => ( EMPTY_ARRAY)),
14927
+ data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _426 => _426.data]), () => ( EMPTY_ARRAY)),
14858
14928
  fields,
14859
14929
  checkedIds,
14860
14930
  toggleId,
@@ -14923,12 +14993,12 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
14923
14993
  ) }),
14924
14994
  table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
14925
14995
  const meta = header.column.columnDef.meta;
14926
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _424 => _424.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
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);
14927
14997
  }) }, headerGroup.id))
14928
14998
  ] }),
14929
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _425 => _425.rows, 'optionalAccess', _426 => _426.length]) ? rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
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) => {
14930
15000
  const meta = cell.column.columnDef.meta;
14931
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _427 => _427.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
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);
14932
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." }) }) }),
14933
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: [
14934
15004
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -14938,7 +15008,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
14938
15008
  size: "sm",
14939
15009
  onClick: (e) => {
14940
15010
  e.preventDefault();
14941
- _optionalChain([data, 'access', _428 => _428.previous, 'optionalCall', _429 => _429(true)]);
15011
+ _optionalChain([data, 'access', _431 => _431.previous, 'optionalCall', _432 => _432(true)]);
14942
15012
  },
14943
15013
  disabled: !data.previous,
14944
15014
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
@@ -14952,7 +15022,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
14952
15022
  size: "sm",
14953
15023
  onClick: (e) => {
14954
15024
  e.preventDefault();
14955
- _optionalChain([data, 'access', _430 => _430.next, 'optionalCall', _431 => _431(true)]);
15025
+ _optionalChain([data, 'access', _433 => _433.next, 'optionalCall', _434 => _434(true)]);
14956
15026
  },
14957
15027
  disabled: !data.next,
14958
15028
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" })
@@ -14973,7 +15043,7 @@ function ContentListGrid(props) {
14973
15043
  if (!data.next || !sentinelRef.current) return;
14974
15044
  const observer = new IntersectionObserver(
14975
15045
  (entries) => {
14976
- if (_optionalChain([entries, 'access', _432 => _432[0], 'optionalAccess', _433 => _433.isIntersecting])) _optionalChain([data, 'access', _434 => _434.next, 'optionalCall', _435 => _435()]);
15046
+ if (_optionalChain([entries, 'access', _435 => _435[0], 'optionalAccess', _436 => _436.isIntersecting])) _optionalChain([data, 'access', _437 => _437.next, 'optionalCall', _438 => _438()]);
14977
15047
  },
14978
15048
  { threshold: 0.1, rootMargin: "200px" }
14979
15049
  );
@@ -15723,7 +15793,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
15723
15793
  newDigits[index] = digit;
15724
15794
  setDigits(newDigits);
15725
15795
  if (digit && index < 5) {
15726
- _optionalChain([inputRefs, 'access', _436 => _436.current, 'access', _437 => _437[index + 1], 'optionalAccess', _438 => _438.focus, 'call', _439 => _439()]);
15796
+ _optionalChain([inputRefs, 'access', _439 => _439.current, 'access', _440 => _440[index + 1], 'optionalAccess', _441 => _441.focus, 'call', _442 => _442()]);
15727
15797
  }
15728
15798
  const code = newDigits.join("");
15729
15799
  if (code.length === 6 && newDigits.every((d) => d !== "")) {
@@ -15732,7 +15802,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
15732
15802
  }, "handleChange");
15733
15803
  const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
15734
15804
  if (e.key === "Backspace" && !digits[index] && index > 0) {
15735
- _optionalChain([inputRefs, 'access', _440 => _440.current, 'access', _441 => _441[index - 1], 'optionalAccess', _442 => _442.focus, 'call', _443 => _443()]);
15805
+ _optionalChain([inputRefs, 'access', _443 => _443.current, 'access', _444 => _444[index - 1], 'optionalAccess', _445 => _445.focus, 'call', _446 => _446()]);
15736
15806
  }
15737
15807
  }, "handleKeyDown");
15738
15808
  const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
@@ -15741,7 +15811,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
15741
15811
  if (pastedData.length === 6) {
15742
15812
  const newDigits = pastedData.split("");
15743
15813
  setDigits(newDigits);
15744
- _optionalChain([inputRefs, 'access', _444 => _444.current, 'access', _445 => _445[5], 'optionalAccess', _446 => _446.focus, 'call', _447 => _447()]);
15814
+ _optionalChain([inputRefs, 'access', _447 => _447.current, 'access', _448 => _448[5], 'optionalAccess', _449 => _449.focus, 'call', _450 => _450()]);
15745
15815
  onComplete(pastedData);
15746
15816
  }
15747
15817
  }, "handlePaste");
@@ -15952,8 +16022,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
15952
16022
  try {
15953
16023
  const registrationData = await _chunkXAWKRNYMjs.TwoFactorService.getPasskeyRegistrationOptions({
15954
16024
  id: _uuid.v4.call(void 0, ),
15955
- userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _448 => _448.email]), () => ( "")),
15956
- userDisplayName: _optionalChain([currentUser, 'optionalAccess', _449 => _449.name])
16025
+ userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _451 => _451.email]), () => ( "")),
16026
+ userDisplayName: _optionalChain([currentUser, 'optionalAccess', _452 => _452.name])
15957
16027
  });
15958
16028
  const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
15959
16029
  await _chunkXAWKRNYMjs.TwoFactorService.verifyPasskeyRegistration({
@@ -16104,7 +16174,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
16104
16174
  const setup = await _chunkXAWKRNYMjs.TwoFactorService.setupTotp({
16105
16175
  id: _uuid.v4.call(void 0, ),
16106
16176
  name: name.trim(),
16107
- accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _450 => _450.email]), () => ( ""))
16177
+ accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _453 => _453.email]), () => ( ""))
16108
16178
  });
16109
16179
  setQrCodeUri(setup.qrCodeUri);
16110
16180
  setAuthenticatorId(setup.authenticatorId);
@@ -16238,7 +16308,7 @@ function TwoFactorSettings() {
16238
16308
  if (isLoading) {
16239
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") }) }) });
16240
16310
  }
16241
- const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _451 => _451.isEnabled]), () => ( false));
16311
+ const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _454 => _454.isEnabled]), () => ( false));
16242
16312
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
16243
16313
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
16244
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" }),
@@ -16276,7 +16346,7 @@ function TwoFactorSettings() {
16276
16346
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
16277
16347
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
16278
16348
  ] }),
16279
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _452 => _452.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
16349
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _455 => _455.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
16280
16350
  ] }) }),
16281
16351
  !isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
16282
16352
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
@@ -16454,9 +16524,9 @@ function AcceptInvitation() {
16454
16524
  });
16455
16525
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
16456
16526
  try {
16457
- if (!_optionalChain([params, 'optionalAccess', _453 => _453.code])) return;
16527
+ if (!_optionalChain([params, 'optionalAccess', _456 => _456.code])) return;
16458
16528
  const payload = {
16459
- code: _optionalChain([params, 'optionalAccess', _454 => _454.code]),
16529
+ code: _optionalChain([params, 'optionalAccess', _457 => _457.code]),
16460
16530
  password: values.password
16461
16531
  };
16462
16532
  await _chunkXAWKRNYMjs.AuthService.acceptInvitation(payload);
@@ -16806,7 +16876,7 @@ function Logout({ storageKeys }) {
16806
16876
  const generateUrl = usePageUrlGenerator();
16807
16877
  _react.useEffect.call(void 0, () => {
16808
16878
  const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
16809
- if (_optionalChain([storageKeys, 'optionalAccess', _455 => _455.length])) {
16879
+ if (_optionalChain([storageKeys, 'optionalAccess', _458 => _458.length])) {
16810
16880
  clearClientStorage(storageKeys);
16811
16881
  }
16812
16882
  await _chunkXAWKRNYMjs.AuthService.logout();
@@ -16829,14 +16899,14 @@ function RefreshUser() {
16829
16899
  setUser(fullUser);
16830
16900
  const token = {
16831
16901
  userId: fullUser.id,
16832
- companyId: _optionalChain([fullUser, 'access', _456 => _456.company, 'optionalAccess', _457 => _457.id]),
16902
+ companyId: _optionalChain([fullUser, 'access', _459 => _459.company, 'optionalAccess', _460 => _460.id]),
16833
16903
  roles: fullUser.roles.map((role) => role.id),
16834
- features: _nullishCoalesce(_optionalChain([fullUser, 'access', _458 => _458.company, 'optionalAccess', _459 => _459.features, 'optionalAccess', _460 => _460.map, 'call', _461 => _461((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)]), () => ( [])),
16835
16905
  modules: fullUser.modules.map((module) => {
16836
16906
  return { id: module.id, permissions: module.permissions };
16837
16907
  })
16838
16908
  };
16839
- await _optionalChain([_chunkXAWKRNYMjs.getTokenHandler.call(void 0, ), 'optionalAccess', _462 => _462.updateToken, 'call', _463 => _463(token)]);
16909
+ await _optionalChain([_chunkXAWKRNYMjs.getTokenHandler.call(void 0, ), 'optionalAccess', _465 => _465.updateToken, 'call', _466 => _466(token)]);
16840
16910
  _cookiesnext.deleteCookie.call(void 0, "reloadData");
16841
16911
  }
16842
16912
  }, "loadFullUser");
@@ -16900,9 +16970,9 @@ function ResetPassword() {
16900
16970
  });
16901
16971
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
16902
16972
  try {
16903
- if (!_optionalChain([params, 'optionalAccess', _464 => _464.code])) return;
16973
+ if (!_optionalChain([params, 'optionalAccess', _467 => _467.code])) return;
16904
16974
  const payload = {
16905
- code: _optionalChain([params, 'optionalAccess', _465 => _465.code]),
16975
+ code: _optionalChain([params, 'optionalAccess', _468 => _468.code]),
16906
16976
  password: values.password
16907
16977
  };
16908
16978
  await _chunkXAWKRNYMjs.AuthService.resetPassword(payload);
@@ -17251,7 +17321,7 @@ function extractHeadings(blocks) {
17251
17321
  function processBlocks(blockArray) {
17252
17322
  for (const block of blockArray) {
17253
17323
  if (block.type === "heading") {
17254
- const level = _optionalChain([block, 'access', _466 => _466.props, 'optionalAccess', _467 => _467.level]) || 1;
17324
+ const level = _optionalChain([block, 'access', _469 => _469.props, 'optionalAccess', _470 => _470.level]) || 1;
17255
17325
  const text = extractTextFromContent(block.content);
17256
17326
  if (text.trim()) {
17257
17327
  headings.push({
@@ -17594,7 +17664,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
17594
17664
  })
17595
17665
  };
17596
17666
  const columns = _react.useMemo.call(void 0, () => {
17597
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _468 => _468[field], 'optionalCall', _469 => _469()])).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);
17598
17668
  }, [params.fields, fieldColumnMap, t, generateUrl]);
17599
17669
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17600
17670
  }, "useHowToTableStructure");
@@ -17660,7 +17730,7 @@ function HowToMultiSelector({
17660
17730
  retriever: (params) => _chunkXAWKRNYMjs.HowToService.findMany(params),
17661
17731
  module: _chunkXAWKRNYMjs.Modules.HowTo,
17662
17732
  getLabel: (howTo) => howTo.name,
17663
- excludeId: _optionalChain([currentHowTo, 'optionalAccess', _470 => _470.id]),
17733
+ excludeId: _optionalChain([currentHowTo, 'optionalAccess', _473 => _473.id]),
17664
17734
  onChange
17665
17735
  }
17666
17736
  );
@@ -17725,7 +17795,7 @@ function HowToSelector({
17725
17795
  }, "setHowTo");
17726
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: [
17727
17797
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
17728
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start rounded-md", children: field.value ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _471 => _471.value, 'optionalAccess', _472 => _472.name]), () => ( "")) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input text-muted-foreground flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: _nullishCoalesce(placeholder, () => ( t(`generic.search.placeholder`, { type: t(`entities.howtos`, { count: 1 }) }))) }) }) }),
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 }) }))) }) }) }),
17729
17799
  field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
17730
17800
  _lucidereact.CircleX,
17731
17801
  {
@@ -18080,9 +18150,9 @@ function CitationsTab({ citations, sources }) {
18080
18150
  ] }) }),
18081
18151
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
18082
18152
  const isOpen = expanded.has(chunk.id);
18083
- const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _473 => _473.get, 'call', _474 => _474(chunk.nodeId)]) : void 0;
18153
+ const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _476 => _476.get, 'call', _477 => _477(chunk.nodeId)]) : void 0;
18084
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")));
18085
- const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _475 => _475.name]), () => ( fallbackName));
18155
+ const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _478 => _478.name]), () => ( fallbackName));
18086
18156
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
18087
18157
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
18088
18158
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -18129,7 +18199,7 @@ function ContentsTab({ citations, sources }) {
18129
18199
  for (const c of citations) {
18130
18200
  const id = c.nodeId;
18131
18201
  if (!id) continue;
18132
- const source = _optionalChain([sources, 'optionalAccess', _476 => _476.get, 'call', _477 => _477(id)]);
18202
+ const source = _optionalChain([sources, 'optionalAccess', _479 => _479.get, 'call', _480 => _480(id)]);
18133
18203
  if (!source) continue;
18134
18204
  const existing = map.get(id);
18135
18205
  if (existing) {
@@ -18194,7 +18264,7 @@ function UsersTab({ users, citations, sources }) {
18194
18264
  const generate = usePageUrlGenerator();
18195
18265
  const userMap = /* @__PURE__ */ new Map();
18196
18266
  for (const u of users) {
18197
- if (!_optionalChain([u, 'optionalAccess', _478 => _478.id])) continue;
18267
+ if (!_optionalChain([u, 'optionalAccess', _481 => _481.id])) continue;
18198
18268
  userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
18199
18269
  }
18200
18270
  if (citations && sources) {
@@ -18298,7 +18368,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
18298
18368
  }
18299
18369
  return ids.size;
18300
18370
  }, [message.citations, sources]);
18301
- const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _479 => _479.length]), () => ( 0));
18371
+ const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _482 => _482.length]), () => ( 0));
18302
18372
  const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
18303
18373
  const visibleTabs = [];
18304
18374
  if (suggestionsCount > 0) visibleTabs.push("suggested");
@@ -18357,8 +18427,8 @@ var SourcesFetcher = class extends _chunkXAWKRNYMjs.ClientAbstractService {
18357
18427
  static async findManyByIds(params) {
18358
18428
  const endpoint = new (0, _chunkXAWKRNYMjs.EndpointCreator)({ endpoint: params.module });
18359
18429
  endpoint.addAdditionalParam(params.idsParam, params.ids.join(","));
18360
- if (_optionalChain([params, 'access', _480 => _480.module, 'access', _481 => _481.inclusions, 'optionalAccess', _482 => _482.lists, 'optionalAccess', _483 => _483.fields])) endpoint.limitToFields(params.module.inclusions.lists.fields);
18361
- if (_optionalChain([params, 'access', _484 => _484.module, 'access', _485 => _485.inclusions, 'optionalAccess', _486 => _486.lists, 'optionalAccess', _487 => _487.types])) endpoint.limitToType(params.module.inclusions.lists.types);
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);
18362
18432
  return this.callApi({
18363
18433
  type: params.module,
18364
18434
  method: "GET" /* GET */,
@@ -18437,7 +18507,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
18437
18507
  return void 0;
18438
18508
  }
18439
18509
  })()));
18440
- if (_optionalChain([author, 'optionalAccess', _488 => _488.id])) userMap.set(author.id, author);
18510
+ if (_optionalChain([author, 'optionalAccess', _491 => _491.id])) userMap.set(author.id, author);
18441
18511
  }
18442
18512
  return Array.from(userMap.values());
18443
18513
  }, [resolved]);
@@ -18459,14 +18529,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, MessageSourcesContainer, "MessageSourcesCon
18459
18529
  function MessageItem({ message, isLatestAssistant, onSelectFollowUp, failedMessageIds, onRetry }) {
18460
18530
  const t = _nextintl.useTranslations.call(void 0, );
18461
18531
  const isUser = message.role === "user";
18462
- const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _489 => _489.has, 'call', _490 => _490(message.id)]);
18532
+ const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _492 => _492.has, 'call', _493 => _493(message.id)]);
18463
18533
  if (isUser) {
18464
18534
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-end gap-1", children: [
18465
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 }),
18466
18536
  isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
18467
18537
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
18468
18538
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.send_failed") }),
18469
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall', _491 => _491(message.id)]), children: t("features.assistant.retry") })
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") })
18470
18540
  ] })
18471
18541
  ] });
18472
18542
  }
@@ -18532,7 +18602,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AssistantStatusLine, "AssistantStatusLine")
18532
18602
  function AssistantThread({ messages, sending, status, onSelectFollowUp, failedMessageIds, onRetry }) {
18533
18603
  const endRef = _react.useRef.call(void 0, null);
18534
18604
  _react.useEffect.call(void 0, () => {
18535
- _optionalChain([endRef, 'access', _492 => _492.current, 'optionalAccess', _493 => _493.scrollIntoView, 'call', _494 => _494({ behavior: "smooth" })]);
18605
+ _optionalChain([endRef, 'access', _495 => _495.current, 'optionalAccess', _496 => _496.scrollIntoView, 'call', _497 => _497({ behavior: "smooth" })]);
18536
18606
  }, [messages.length, sending]);
18537
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: [
18538
18608
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -18560,7 +18630,7 @@ function AssistantContainer() {
18560
18630
  AssistantSidebar,
18561
18631
  {
18562
18632
  threads: ctx.threads,
18563
- activeId: _optionalChain([ctx, 'access', _495 => _495.assistant, 'optionalAccess', _496 => _496.id]),
18633
+ activeId: _optionalChain([ctx, 'access', _498 => _498.assistant, 'optionalAccess', _499 => _499.id]),
18564
18634
  onSelect: ctx.selectThread,
18565
18635
  onNew: ctx.startNew
18566
18636
  }
@@ -18653,14 +18723,14 @@ function NotificationsList({ archived }) {
18653
18723
  ] }),
18654
18724
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
18655
18725
  ] }) }) }, i)) }), "LoadingSkeleton");
18656
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _497 => _497.data, 'optionalAccess', _498 => _498.map, 'call', _499 => _499((notification) => {
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) => {
18657
18727
  const notificationData = generateNotificationData({ notification, generateUrl });
18658
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: [
18659
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" }),
18660
18730
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
18661
18731
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
18662
18732
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
18663
- actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _500 => _500.actor, 'optionalAccess', _501 => _501.name]), () => ( "")),
18733
+ actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _503 => _503.actor, 'optionalAccess', _504 => _504.name]), () => ( "")),
18664
18734
  title: notificationData.title
18665
18735
  }) }),
18666
18736
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
@@ -19010,7 +19080,7 @@ var DEFAULT_TRANSLATIONS = {
19010
19080
  invalidEmail: "Please enter a valid email address"
19011
19081
  };
19012
19082
  async function copyToClipboard(text) {
19013
- if (_optionalChain([navigator, 'access', _502 => _502.clipboard, 'optionalAccess', _503 => _503.writeText])) {
19083
+ if (_optionalChain([navigator, 'access', _505 => _505.clipboard, 'optionalAccess', _506 => _506.writeText])) {
19014
19084
  try {
19015
19085
  await navigator.clipboard.writeText(text);
19016
19086
  return true;
@@ -19052,7 +19122,7 @@ function ReferralWidget({
19052
19122
  const linkInputRef = _react.useRef.call(void 0, null);
19053
19123
  const config = _chunkSE5HIHJSjs.getReferralConfig.call(void 0, );
19054
19124
  const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
19055
- const referralUrl = _optionalChain([stats, 'optionalAccess', _504 => _504.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
19125
+ const referralUrl = _optionalChain([stats, 'optionalAccess', _507 => _507.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
19056
19126
  if (!_chunkSE5HIHJSjs.isReferralEnabled.call(void 0, )) {
19057
19127
  return null;
19058
19128
  }
@@ -19062,7 +19132,7 @@ function ReferralWidget({
19062
19132
  if (success) {
19063
19133
  setCopied(true);
19064
19134
  _chunkXAWKRNYMjs.showToast.call(void 0, t.copiedMessage);
19065
- _optionalChain([onLinkCopied, 'optionalCall', _505 => _505()]);
19135
+ _optionalChain([onLinkCopied, 'optionalCall', _508 => _508()]);
19066
19136
  setTimeout(() => setCopied(false), 2e3);
19067
19137
  } else {
19068
19138
  _chunkXAWKRNYMjs.showError.call(void 0, t.copyError);
@@ -19076,12 +19146,12 @@ function ReferralWidget({
19076
19146
  try {
19077
19147
  await sendInvite(email);
19078
19148
  _chunkXAWKRNYMjs.showToast.call(void 0, t.inviteSent);
19079
- _optionalChain([onInviteSent, 'optionalCall', _506 => _506(email)]);
19149
+ _optionalChain([onInviteSent, 'optionalCall', _509 => _509(email)]);
19080
19150
  setEmail("");
19081
19151
  } catch (err) {
19082
19152
  const error2 = err instanceof Error ? err : new Error(t.inviteError);
19083
19153
  _chunkXAWKRNYMjs.showError.call(void 0, error2.message);
19084
- _optionalChain([onInviteError, 'optionalCall', _507 => _507(error2)]);
19154
+ _optionalChain([onInviteError, 'optionalCall', _510 => _510(error2)]);
19085
19155
  }
19086
19156
  }, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
19087
19157
  const handleEmailKeyDown = _react.useCallback.call(void 0,
@@ -19835,7 +19905,7 @@ function OAuthClientList({
19835
19905
  OAuthClientCard,
19836
19906
  {
19837
19907
  client,
19838
- onClick: () => _optionalChain([onClientClick, 'optionalCall', _508 => _508(client)]),
19908
+ onClick: () => _optionalChain([onClientClick, 'optionalCall', _511 => _511(client)]),
19839
19909
  onEdit: onEditClick ? () => onEditClick(client) : void 0,
19840
19910
  onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
19841
19911
  },
@@ -19851,11 +19921,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
19851
19921
  function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
19852
19922
  const isEditMode = !!client;
19853
19923
  const [formState, setFormState] = _react.useState.call(void 0, {
19854
- name: _optionalChain([client, 'optionalAccess', _509 => _509.name]) || "",
19855
- description: _optionalChain([client, 'optionalAccess', _510 => _510.description]) || "",
19856
- redirectUris: _optionalChain([client, 'optionalAccess', _511 => _511.redirectUris, 'optionalAccess', _512 => _512.length]) ? client.redirectUris : [""],
19857
- allowedScopes: _optionalChain([client, 'optionalAccess', _513 => _513.allowedScopes]) || [],
19858
- isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _514 => _514.isConfidential]), () => ( true))
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))
19859
19929
  });
19860
19930
  const [errors, setErrors] = _react.useState.call(void 0, {});
19861
19931
  const validate = _react.useCallback.call(void 0, () => {
@@ -20083,7 +20153,7 @@ function OAuthClientDetail({
20083
20153
  ] }),
20084
20154
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
20085
20155
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
20086
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: client.allowedScopes.map((scope) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "secondary", children: _optionalChain([_chunkXAWKRNYMjs.OAUTH_SCOPE_DISPLAY, 'access', _515 => _515[scope], 'optionalAccess', _516 => _516.name]) || scope }, scope)) })
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)) })
20087
20157
  ] }),
20088
20158
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
20089
20159
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
@@ -20227,7 +20297,7 @@ function OAuthConsentScreen({
20227
20297
  if (error || !clientInfo) {
20228
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: [
20229
20299
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
20230
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _517 => _517.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." })
20231
20301
  ] }) }) }) });
20232
20302
  }
20233
20303
  const { client, scopes } = clientInfo;
@@ -20443,7 +20513,7 @@ function WaitlistForm({ onSuccess }) {
20443
20513
  questionnaire: values.questionnaire
20444
20514
  });
20445
20515
  setIsSuccess(true);
20446
- _optionalChain([onSuccess, 'optionalCall', _518 => _518()]);
20516
+ _optionalChain([onSuccess, 'optionalCall', _521 => _521()]);
20447
20517
  } catch (e) {
20448
20518
  errorToast({ error: e });
20449
20519
  } finally {
@@ -21081,7 +21151,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
21081
21151
  ] }),
21082
21152
  roleIds.map((roleId) => {
21083
21153
  const roleTokens = block[roleId];
21084
- const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _519 => _519[roleId]]), () => ( roleId));
21154
+ const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _522 => _522[roleId]]), () => ( roleId));
21085
21155
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
21086
21156
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
21087
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,
@@ -21118,7 +21188,7 @@ function RbacContainer() {
21118
21188
  }, []);
21119
21189
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
21120
21190
  if (!matrix) return [];
21121
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _520 => _520[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _521 => _521[b]]), () => ( b))));
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))));
21122
21192
  }, [matrix, moduleNames]);
21123
21193
  const roleIds = _react.useMemo.call(void 0, () => {
21124
21194
  if (roleNames) {
@@ -21181,7 +21251,7 @@ function RbacContainer() {
21181
21251
  id === selectedModuleId && "bg-muted font-medium text-foreground",
21182
21252
  id !== selectedModuleId && "text-muted-foreground"
21183
21253
  ),
21184
- children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _522 => _522[id]]), () => ( id))
21254
+ children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _525 => _525[id]]), () => ( id))
21185
21255
  }
21186
21256
  ) }, id)) }) }),
21187
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,
@@ -21189,7 +21259,7 @@ function RbacContainer() {
21189
21259
  {
21190
21260
  moduleId: selectedModuleId,
21191
21261
  block: selectedBlock,
21192
- moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _523 => _523[selectedModuleId]]), () => ( selectedModuleId)),
21262
+ moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _526 => _526[selectedModuleId]]), () => ( selectedModuleId)),
21193
21263
  roleIds,
21194
21264
  roleNames,
21195
21265
  onOpenPicker: openPicker
@@ -21200,12 +21270,12 @@ function RbacContainer() {
21200
21270
  RbacPermissionPicker,
21201
21271
  {
21202
21272
  open: !!activePicker,
21203
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _524 => _524.anchor]), () => ( null)),
21273
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _527 => _527.anchor]), () => ( null)),
21204
21274
  value: activeValue,
21205
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _525 => _525.isRoleColumn]), () => ( false)),
21275
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _528 => _528.isRoleColumn]), () => ( false)),
21206
21276
  knownSegments: activeSegments,
21207
21277
  onSetValue: handleSetValue,
21208
- onClear: _optionalChain([activePicker, 'optionalAccess', _526 => _526.isRoleColumn]) ? handleClear : void 0,
21278
+ onClear: _optionalChain([activePicker, 'optionalAccess', _529 => _529.isRoleColumn]) ? handleClear : void 0,
21209
21279
  onClose: closePicker
21210
21280
  }
21211
21281
  )
@@ -21272,7 +21342,7 @@ function RbacByRoleContainer() {
21272
21342
  }, [roleNames]);
21273
21343
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
21274
21344
  if (!matrix) return [];
21275
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _527 => _527[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _528 => _528[b]]), () => ( b))));
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))));
21276
21346
  }, [matrix, moduleNames]);
21277
21347
  _react.useEffect.call(void 0, () => {
21278
21348
  if (!selectedRoleId && sortedRoleIds.length > 0) {
@@ -21321,7 +21391,7 @@ function RbacByRoleContainer() {
21321
21391
  id === selectedRoleId && "bg-muted font-medium text-foreground",
21322
21392
  id !== selectedRoleId && "text-muted-foreground"
21323
21393
  ),
21324
- children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _529 => _529[id]]), () => ( id))
21394
+ children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _532 => _532[id]]), () => ( id))
21325
21395
  }
21326
21396
  ) }, id)) }) }),
21327
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: [
@@ -21341,7 +21411,7 @@ function RbacByRoleContainer() {
21341
21411
  if (!block) return null;
21342
21412
  const defaultTokens = _nullishCoalesce(block.default, () => ( []));
21343
21413
  const roleTokens = block[selectedRoleId];
21344
- const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _530 => _530[moduleId]]), () => ( moduleId));
21414
+ const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _533 => _533[moduleId]]), () => ( moduleId));
21345
21415
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
21346
21416
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
21347
21417
  "td",
@@ -21356,7 +21426,7 @@ function RbacByRoleContainer() {
21356
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))
21357
21427
  ] }),
21358
21428
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
21359
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _531 => _531[selectedRoleId]]), () => ( selectedRoleId)) }),
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)) }),
21360
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,
21361
21431
  CellButton3,
21362
21432
  {
@@ -21377,12 +21447,12 @@ function RbacByRoleContainer() {
21377
21447
  RbacPermissionPicker,
21378
21448
  {
21379
21449
  open: !!activePicker,
21380
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _532 => _532.anchor]), () => ( null)),
21450
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _535 => _535.anchor]), () => ( null)),
21381
21451
  value: activeValue,
21382
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _533 => _533.isRoleColumn]), () => ( false)),
21452
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _536 => _536.isRoleColumn]), () => ( false)),
21383
21453
  knownSegments: activeSegments,
21384
21454
  onSetValue: handleSetValue,
21385
- onClear: _optionalChain([activePicker, 'optionalAccess', _534 => _534.isRoleColumn]) ? handleClear : void 0,
21455
+ onClear: _optionalChain([activePicker, 'optionalAccess', _537 => _537.isRoleColumn]) ? handleClear : void 0,
21386
21456
  onClose: closePicker
21387
21457
  }
21388
21458
  )
@@ -21902,4 +21972,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
21902
21972
 
21903
21973
 
21904
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;
21905
- //# sourceMappingURL=chunk-GNKC2ZRU.js.map
21975
+ //# sourceMappingURL=chunk-2KX3OXHE.js.map