@carlonicora/nextjs-jsonapi 3.25.0 → 3.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/{BlockNoteEditor-46O3JC4Z.mjs → BlockNoteEditor-VET2JD72.mjs} +13 -3
  2. package/dist/{BlockNoteEditor-46O3JC4Z.mjs.map → BlockNoteEditor-VET2JD72.mjs.map} +1 -1
  3. package/dist/{BlockNoteEditor-HKS6AXDA.js → BlockNoteEditor-WUC2NRGI.js} +20 -10
  4. package/dist/BlockNoteEditor-WUC2NRGI.js.map +1 -0
  5. package/dist/billing/index.js +335 -335
  6. package/dist/billing/index.mjs +1 -1
  7. package/dist/{chunk-Y3OKEQGL.js → chunk-425GLYXN.js} +580 -363
  8. package/dist/chunk-425GLYXN.js.map +1 -0
  9. package/dist/{chunk-XDYILJ2S.mjs → chunk-7SJ4HKDR.mjs} +548 -331
  10. package/dist/chunk-7SJ4HKDR.mjs.map +1 -0
  11. package/dist/{chunk-KLV6RLDE.js → chunk-GKDHYB2R.js} +2 -2
  12. package/dist/chunk-GKDHYB2R.js.map +1 -0
  13. package/dist/{chunk-4Z2UONN2.mjs → chunk-U65JPKO3.mjs} +2 -2
  14. package/dist/chunk-U65JPKO3.mjs.map +1 -0
  15. package/dist/client/index.js +2 -2
  16. package/dist/client/index.mjs +1 -1
  17. package/dist/components/index.d.mts +16 -3
  18. package/dist/components/index.d.ts +16 -3
  19. package/dist/components/index.js +4 -2
  20. package/dist/components/index.js.map +1 -1
  21. package/dist/components/index.mjs +3 -1
  22. package/dist/contexts/index.js +2 -2
  23. package/dist/contexts/index.mjs +1 -1
  24. package/dist/features/analytics/index.js +100 -100
  25. package/dist/features/analytics/index.js.map +1 -1
  26. package/dist/features/analytics/index.mjs +5 -5
  27. package/dist/features/analytics/index.mjs.map +1 -1
  28. package/dist/features/help/index.js +36 -36
  29. package/dist/features/help/index.js.map +1 -1
  30. package/dist/features/help/index.mjs +6 -6
  31. package/dist/features/help/index.mjs.map +1 -1
  32. package/dist/features/tokenusage/index.js +103 -103
  33. package/dist/features/tokenusage/index.js.map +1 -1
  34. package/dist/features/tokenusage/index.mjs +4 -4
  35. package/dist/features/tokenusage/index.mjs.map +1 -1
  36. package/package.json +1 -1
  37. package/src/components/containers/PageContainer.tsx +3 -1
  38. package/src/components/containers/RoundPageContainer.tsx +63 -16
  39. package/src/components/containers/RoundPageContainerTitle.tsx +75 -35
  40. package/src/components/editors/BlockNoteEditor.tsx +13 -1
  41. package/src/components/forms/EntityMultiSelector.tsx +4 -4
  42. package/src/components/forms/EntitySelector.tsx +4 -4
  43. package/src/components/forms/FormBlockNote.tsx +27 -1
  44. package/src/components/forms/FormCheckbox.tsx +3 -2
  45. package/src/components/forms/__tests__/useEditorDialog.test.ts +47 -0
  46. package/src/components/forms/useEditorDialog.ts +22 -0
  47. package/src/components/navigations/Breadcrumb.tsx +45 -16
  48. package/src/components/navigations/Header.tsx +18 -3
  49. package/src/components/navigations/MobileNavigationBar.tsx +12 -0
  50. package/src/components/navigations/__tests__/MobileNavigationBar.spec.tsx +17 -0
  51. package/src/components/tables/ContentListTable.tsx +52 -32
  52. package/src/features/analytics/components/AnalyticsAdminFilterBar.tsx +9 -6
  53. package/src/features/analytics/components/AnalyticsBreakdownTable.tsx +2 -1
  54. package/src/features/assistant/components/parts/AssistantBlockNoteComposer.tsx +3 -1
  55. package/src/features/assistant/components/parts/AssistantComposer.tsx +3 -1
  56. package/src/features/assistant-message/components/MessageItem.tsx +2 -2
  57. package/src/features/assistant-message/components/parts/tabs/CitationsTab.tsx +25 -5
  58. package/src/features/auth/components/containers/AuthContainer.tsx +8 -1
  59. package/src/features/company/components/details/CompanyContent.tsx +3 -1
  60. package/src/features/company/components/details/CompanyDetails.tsx +9 -1
  61. package/src/features/company/components/details/TokenStatusIndicator.tsx +42 -13
  62. package/src/features/help/components/HelpHeader.tsx +7 -5
  63. package/src/features/tokenusage/components/TokenUsageAdminFilterBar.tsx +9 -6
  64. package/src/features/tokenusage/lib/__tests__/formatters.spec.ts +21 -0
  65. package/src/features/tokenusage/lib/formatters.ts +5 -1
  66. package/src/shadcnui/ui/button.tsx +1 -1
  67. package/src/shadcnui/ui/checkbox.tsx +1 -1
  68. package/src/shadcnui/ui/command.tsx +7 -4
  69. package/src/shadcnui/ui/dialog.tsx +2 -0
  70. package/src/shadcnui/ui/input.tsx +1 -1
  71. package/src/shadcnui/ui/popover.tsx +9 -0
  72. package/src/shadcnui/ui/select.tsx +1 -1
  73. package/src/shadcnui/ui/sheet.tsx +8 -1
  74. package/src/shadcnui/ui/table.tsx +5 -2
  75. package/src/shadcnui/ui/textarea.tsx +1 -1
  76. package/dist/BlockNoteEditor-HKS6AXDA.js.map +0 -1
  77. package/dist/chunk-4Z2UONN2.mjs.map +0 -1
  78. package/dist/chunk-KLV6RLDE.js.map +0 -1
  79. package/dist/chunk-XDYILJ2S.mjs.map +0 -1
  80. package/dist/chunk-Y3OKEQGL.js.map +0 -1
@@ -243,7 +243,7 @@ var buttonVariants = _classvarianceauthority.cva.call(void 0,
243
243
  link: "text-primary"
244
244
  },
245
245
  size: {
246
- default: "h-7 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*='size-'])]:size-3.5",
246
+ default: "h-7 max-md:h-9 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*='size-'])]:size-3.5",
247
247
  xs: "h-5 gap-1 rounded-sm px-2 text-xs/relaxed has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*='size-'])]:size-2.5",
248
248
  sm: "h-6 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*='size-'])]:size-3",
249
249
  lg: "h-8 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2 [&_svg:not([class*='size-'])]:size-4",
@@ -1310,7 +1310,7 @@ function Checkbox({ className, ...props }) {
1310
1310
  {
1311
1311
  "data-slot": "checkbox",
1312
1312
  className: _chunkCAKOFJZDjs.cn.call(void 0,
1313
- "border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-[4px] border transition-shadow group-has-disabled/field:opacity-50 focus-visible:ring-[2px] aria-invalid:ring-[2px] peer relative shrink-0 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 cursor-pointer data-disabled:cursor-not-allowed data-disabled:opacity-50",
1313
+ "border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-[4px] border transition-shadow group-has-disabled/field:opacity-50 focus-visible:ring-[2px] aria-invalid:ring-[2px] peer relative shrink-0 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 max-md:after:-inset-y-3 cursor-pointer data-disabled:cursor-not-allowed data-disabled:opacity-50",
1314
1314
  className
1315
1315
  ),
1316
1316
  ...props,
@@ -1360,7 +1360,7 @@ function Input({ className, type, ...props }) {
1360
1360
  type,
1361
1361
  "data-slot": "input",
1362
1362
  className: _chunkCAKOFJZDjs.cn.call(void 0,
1363
- "bg-input/20 dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-7 rounded-md border px-2 py-0.5 text-sm transition-colors file:h-6 file:text-xs/relaxed file:font-medium focus-visible:ring-[2px] aria-invalid:ring-[2px] md:text-xs/relaxed file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
1363
+ "bg-input/20 dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-7 max-md:h-10 rounded-md border px-2 py-0.5 text-base transition-colors file:h-6 file:text-xs/relaxed file:font-medium focus-visible:ring-[2px] aria-invalid:ring-[2px] md:text-xs/relaxed file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
1364
1364
  className
1365
1365
  ),
1366
1366
  ...props
@@ -1377,7 +1377,7 @@ function Textarea({ className, ...props }) {
1377
1377
  {
1378
1378
  "data-slot": "textarea",
1379
1379
  className: _chunkCAKOFJZDjs.cn.call(void 0,
1380
- "border-input bg-input/20 dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 resize-none rounded-md border px-2 py-2 text-sm transition-colors focus-visible:ring-[2px] aria-invalid:ring-[2px] md:text-xs/relaxed placeholder:text-muted-foreground flex field-sizing-content min-h-16 w-full outline-none disabled:cursor-not-allowed disabled:opacity-50",
1380
+ "border-input bg-input/20 dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 resize-none rounded-md border px-2 py-2 text-base transition-colors focus-visible:ring-[2px] aria-invalid:ring-[2px] md:text-xs/relaxed placeholder:text-muted-foreground flex field-sizing-content min-h-16 w-full outline-none disabled:cursor-not-allowed disabled:opacity-50",
1381
1381
  className
1382
1382
  ),
1383
1383
  ...props
@@ -1812,6 +1812,8 @@ function DialogContent({
1812
1812
  className: _chunkCAKOFJZDjs.cn.call(void 0,
1813
1813
  // rtl-ok: symmetric centering (`left-1/2` + `-translate-x-1/2`) — identical in LTR and RTL
1814
1814
  "bg-background data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/10 grid gap-4 rounded-xl p-4 text-xs/relaxed ring-1 duration-100 fixed top-1/2 left-1/2 z-50 w-full max-w-lg -translate-x-1/2 -translate-y-1/2 outline-none",
1815
+ // Phone: never wider or taller than the screen; the dialog scrolls inside.
1816
+ "max-md:max-h-[calc(100svh-2rem)] max-md:max-w-[calc(100vw-2rem)] max-md:overflow-y-auto",
1815
1817
  className
1816
1818
  ),
1817
1819
  ...props,
@@ -1883,7 +1885,7 @@ function Command({ className, ...props }) {
1883
1885
  {
1884
1886
  "data-slot": "command",
1885
1887
  className: _chunkCAKOFJZDjs.cn.call(void 0,
1886
- "bg-popover text-popover-foreground rounded-xl p-1 flex size-full flex-col overflow-hidden",
1888
+ "bg-popover text-popover-foreground rounded-xl p-1 flex size-full flex-col overflow-hidden max-md:min-h-0",
1887
1889
  "[[data-slot=dialog-content]_&]:bg-transparent [[data-slot=dialog-content]_&]:text-foreground",
1888
1890
  className
1889
1891
  ),
@@ -1910,13 +1912,13 @@ function CommandDialog({
1910
1912
  }
1911
1913
  _chunk7QVYU63Ejs.__name.call(void 0, CommandDialog, "CommandDialog");
1912
1914
  function CommandInput({ className, ...props }) {
1913
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "command-input-wrapper", className: "p-1 pb-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, InputGroup, { className: "bg-input/20 dark:bg-input/30 h-8!", children: [
1915
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "command-input-wrapper", className: "p-1 pb-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, InputGroup, { className: "bg-input/20 dark:bg-input/30 h-8! max-md:h-10!", children: [
1914
1916
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1915
1917
  _cmdk.Command.Input,
1916
1918
  {
1917
1919
  "data-slot": "command-input",
1918
1920
  className: _chunkCAKOFJZDjs.cn.call(void 0,
1919
- "w-full text-xs/relaxed outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
1921
+ "w-full text-xs/relaxed max-md:text-base outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
1920
1922
  className
1921
1923
  ),
1922
1924
  ...props
@@ -1931,7 +1933,10 @@ function CommandList({ className, ...props }) {
1931
1933
  _cmdk.Command.List,
1932
1934
  {
1933
1935
  "data-slot": "command-list",
1934
- className: _chunkCAKOFJZDjs.cn.call(void 0, "no-scrollbar max-h-72 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto", className),
1936
+ className: _chunkCAKOFJZDjs.cn.call(void 0,
1937
+ "no-scrollbar max-h-72 max-md:min-h-0 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto",
1938
+ className
1939
+ ),
1935
1940
  ...props
1936
1941
  }
1937
1942
  );
@@ -3128,6 +3133,7 @@ function PopoverContent({
3128
3133
  anchor,
3129
3134
  ...props
3130
3135
  }) {
3136
+ const matchesAnchorWidth = typeof className === "string" && className.includes("--anchor-width");
3131
3137
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _popover.Popover.Portal, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3132
3138
  _popover.Popover.Positioner,
3133
3139
  {
@@ -3143,6 +3149,11 @@ function PopoverContent({
3143
3149
  "data-slot": "popover-content",
3144
3150
  className: _chunkCAKOFJZDjs.cn.call(void 0,
3145
3151
  "bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 flex flex-col gap-4 rounded-lg p-2.5 text-xs shadow-md ring-1 duration-100 z-50 w-72 origin-(--transform-origin) outline-hidden",
3152
+ // Phone: never taller than the space the positioner reports (the
3153
+ // keyboard shrinks it), so a picker list shrinks and scrolls instead
3154
+ // of running under the keyboard.
3155
+ "max-md:max-h-(--available-height) max-md:overflow-y-auto",
3156
+ matchesAnchorWidth && "max-md:min-w-[min(20rem,calc(100vw-2rem))]",
3146
3157
  className
3147
3158
  ),
3148
3159
  ...props
@@ -3377,7 +3388,7 @@ function SelectTrigger({
3377
3388
  "data-slot": "select-trigger",
3378
3389
  "data-size": size,
3379
3390
  className: _chunkCAKOFJZDjs.cn.call(void 0,
3380
- "border-input data-[placeholder]:text-muted-foreground bg-input/20 dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 gap-1.5 rounded-md border px-2 py-1.5 text-xs/relaxed transition-colors focus-visible:ring-[2px] aria-invalid:ring-[2px] data-[size=default]:h-7 data-[size=sm]:h-6 *:data-[slot=select-value]:flex *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-3.5 flex w-fit items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
3391
+ "border-input data-[placeholder]:text-muted-foreground bg-input/20 dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 gap-1.5 rounded-md border px-2 py-1.5 text-xs/relaxed transition-colors focus-visible:ring-[2px] aria-invalid:ring-[2px] data-[size=default]:h-7 data-[size=sm]:h-6 max-md:data-[size=default]:h-10 max-md:text-base *:data-[slot=select-value]:flex *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-3.5 flex w-fit items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
3381
3392
  className
3382
3393
  ),
3383
3394
  ...props,
@@ -3573,7 +3584,17 @@ function SheetContent({
3573
3584
  _dialog.Dialog.Close,
3574
3585
  {
3575
3586
  "data-slot": "sheet-close",
3576
- render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant: "ghost", className: "absolute top-4 end-4", size: "icon-sm" }),
3587
+ render: (
3588
+ // Phone: a 40px tap target, moved by 8px so its centre stays where the 24px one sits.
3589
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3590
+ Button,
3591
+ {
3592
+ variant: "ghost",
3593
+ className: "absolute top-4 end-4 max-md:top-2 max-md:end-2 max-md:size-10",
3594
+ size: "icon-sm"
3595
+ }
3596
+ )
3597
+ ),
3577
3598
  children: [
3578
3599
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.XIcon, {}),
3579
3600
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: "Close" })
@@ -4466,7 +4487,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, Switch, "Switch");
4466
4487
  // src/shadcnui/ui/table.tsx
4467
4488
 
4468
4489
  function Table({ className, ...props }) {
4469
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "table-container", className: "relative w-full overflow-x-clip", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "table", { "data-slot": "table", className: _chunkCAKOFJZDjs.cn.call(void 0, "w-full caption-bottom text-xs", className), ...props }) });
4490
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-slot": "table-container", className: "relative w-full overflow-x-clip max-md:overflow-x-auto", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "table", { "data-slot": "table", className: _chunkCAKOFJZDjs.cn.call(void 0, "w-full caption-bottom text-xs", className), ...props }) });
4470
4491
  }
4471
4492
  _chunk7QVYU63Ejs.__name.call(void 0, Table, "Table");
4472
4493
  function TableHeader({ className, ...props }) {
@@ -4518,7 +4539,10 @@ function TableCell({ className, ...props }) {
4518
4539
  "td",
4519
4540
  {
4520
4541
  "data-slot": "table-cell",
4521
- className: _chunkCAKOFJZDjs.cn.call(void 0, "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0", className),
4542
+ className: _chunkCAKOFJZDjs.cn.call(void 0,
4543
+ "p-2 align-middle whitespace-nowrap max-md:whitespace-normal [&:has([role=checkbox])]:pe-0",
4544
+ className
4545
+ ),
4522
4546
  ...props
4523
4547
  }
4524
4548
  );
@@ -8557,7 +8581,7 @@ function EntityMultiSelector({
8557
8581
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { className: "w-full", disabled, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
8558
8582
  "div",
8559
8583
  {
8560
- className: `bg-input/20 dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/30 focus-visible:ring-[2px] flex min-h-7 w-full items-center gap-2 rounded-md border px-2 text-sm md:text-xs/relaxed ${disabled ? "cursor-not-allowed opacity-50" : ""}`,
8584
+ className: `bg-input/20 dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/30 focus-visible:ring-[2px] flex min-h-7 max-md:min-h-10 w-full items-center gap-2 rounded-md border px-2 text-sm md:text-xs/relaxed ${disabled ? "cursor-not-allowed opacity-50" : ""}`,
8561
8585
  children: [
8562
8586
  selectedValues.length > 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
8563
8587
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-foreground min-w-0 flex-1 truncate text-start", children: triggerSummary }),
@@ -8576,7 +8600,7 @@ function EntityMultiSelector({
8576
8600
  ref: searchInputRef,
8577
8601
  placeholder,
8578
8602
  type: "text",
8579
- className: "h-8 w-full pe-7 ps-7 text-xs",
8603
+ className: "h-8 w-full pe-7 ps-7 text-xs max-md:text-base",
8580
8604
  value: searchTerm,
8581
8605
  onChange: (e) => setSearchTerm(e.target.value)
8582
8606
  }
@@ -8591,7 +8615,7 @@ function EntityMultiSelector({
8591
8615
  }
8592
8616
  )
8593
8617
  ] }),
8594
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "max-h-52 overflow-y-auto p-1", children: sortedOptions.length === 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground py-4 text-center text-xs", children: emptyText }) : sortedOptions.map((option) => {
8618
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "max-h-52 max-md:min-h-0 overflow-y-auto p-1", children: sortedOptions.length === 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground py-4 text-center text-xs", children: emptyText }) : sortedOptions.map((option) => {
8595
8619
  const isSelected = selectedIds.has(option.id);
8596
8620
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8597
8621
  "button",
@@ -8635,7 +8659,7 @@ function EntityMultiSelector({
8635
8659
  "button",
8636
8660
  {
8637
8661
  type: "button",
8638
- className: "text-muted-foreground hover:text-foreground rounded-sm p-0.5 transition-colors",
8662
+ className: "text-muted-foreground hover:text-foreground rounded-sm p-0.5 max-md:p-2 transition-colors",
8639
8663
  onClick: () => removeEntity(value.id),
8640
8664
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.XIcon, { className: "size-3" })
8641
8665
  }
@@ -9601,6 +9625,20 @@ _chunk7QVYU63Ejs.__name.call(void 0, DateRangeSelector, "DateRangeSelector");
9601
9625
  // src/components/forms/useEditorDialog.ts
9602
9626
 
9603
9627
  var openEditorStack = [];
9628
+ var INNER_LAYER_SELECTOR = [
9629
+ "[data-slot=popover-content][data-open]",
9630
+ "[data-slot=select-content][data-open]",
9631
+ "[data-slot=combobox-content][data-open]",
9632
+ "[data-slot=dropdown-menu-content][data-open]",
9633
+ "[data-slot=context-menu-content][data-open]",
9634
+ "[data-slot=dialog-content][data-open]",
9635
+ "[data-slot=alert-dialog-content][data-open]",
9636
+ ".bn-suggestion-menu"
9637
+ ].join(",");
9638
+ function hasOpenInnerLayer(doc = document) {
9639
+ return doc.querySelector(INNER_LAYER_SELECTOR) !== null;
9640
+ }
9641
+ _chunk7QVYU63Ejs.__name.call(void 0, hasOpenInnerLayer, "hasOpenInnerLayer");
9604
9642
  function useEditorDialog(isFormDirty, options) {
9605
9643
  const [open, setOpen] = _react.useState.call(void 0, false);
9606
9644
  const [showDiscardConfirm, setShowDiscardConfirm] = _react.useState.call(void 0, false);
@@ -9652,6 +9690,7 @@ function useEditorDialog(isFormDirty, options) {
9652
9690
  const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (event) => {
9653
9691
  if (event.key === "Escape" && open) {
9654
9692
  if (openEditorStack[openEditorStack.length - 1] !== dialogId.current) return;
9693
+ if (hasOpenInnerLayer()) return;
9655
9694
  event.preventDefault();
9656
9695
  event.stopPropagation();
9657
9696
  handleOpenChange(false);
@@ -9986,7 +10025,7 @@ function EntitySelector({
9986
10025
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { className: "w-full", disabled, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
9987
10026
  "div",
9988
10027
  {
9989
- className: `bg-input/20 dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/30 focus-visible:ring-[2px] flex min-h-7 w-full items-center gap-2 rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed ${hasValue(effectiveValue) ? "" : "text-muted-foreground"} ${disabled ? "cursor-not-allowed opacity-50" : ""}`,
10028
+ className: `bg-input/20 dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/30 focus-visible:ring-[2px] flex min-h-7 max-md:min-h-10 w-full items-center gap-2 rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed ${hasValue(effectiveValue) ? "" : "text-muted-foreground"} ${disabled ? "cursor-not-allowed opacity-50" : ""}`,
9990
10029
  children: [
9991
10030
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-start", children: hasValue(effectiveValue) ? getSelectedItemDisplay ? getSelectedItemDisplay(effectiveValue) : _nullishCoalesce(_optionalChain([effectiveValue, 'optionalAccess', _273 => _273.name]), () => ( "")) : placeholder }),
9992
10031
  hasValue(effectiveValue) && !disabled && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -10005,7 +10044,7 @@ function EntitySelector({
10005
10044
  ) }),
10006
10045
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { align: "start", className: "w-(--anchor-width) pointer-events-auto", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Command, { shouldFilter: false, children: [
10007
10046
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative mb-2 w-full", children: [
10008
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.SearchIcon, { className: "text-muted-foreground absolute top-2.5 start-2.5 h-4 w-4" }),
10047
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.SearchIcon, { className: "text-muted-foreground absolute top-2.5 max-md:top-3 start-2.5 h-4 w-4" }),
10009
10048
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10010
10049
  Input,
10011
10050
  {
@@ -10016,10 +10055,10 @@ function EntitySelector({
10016
10055
  value: searchTerm
10017
10056
  }
10018
10057
  ),
10019
- isSearching ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.RefreshCwIcon, { className: "text-muted-foreground absolute top-2.5 end-2.5 h-4 w-4 animate-spin" }) : searchTermRef.current ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10058
+ isSearching ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.RefreshCwIcon, { className: "text-muted-foreground absolute top-2.5 max-md:top-3 end-2.5 h-4 w-4 animate-spin" }) : searchTermRef.current ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10020
10059
  _lucidereact.XIcon,
10021
10060
  {
10022
- className: "absolute top-2.5 end-2.5 h-4 w-4 cursor-pointer",
10061
+ className: "absolute top-2.5 max-md:top-3 end-2.5 h-4 w-4 cursor-pointer",
10023
10062
  onClick: () => {
10024
10063
  setSearchTerm("");
10025
10064
  search("");
@@ -10399,7 +10438,7 @@ FileInput.displayName = "FileInput";
10399
10438
  var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
10400
10439
 
10401
10440
 
10402
- var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-HKS6AXDA.js"))), {
10441
+ var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-WUC2NRGI.js"))), {
10403
10442
  ssr: false
10404
10443
  });
10405
10444
  var BlockNoteEditorContainer = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
@@ -10408,6 +10447,14 @@ var BlockNoteEditorContainer = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63
10408
10447
 
10409
10448
  // src/components/forms/FormBlockNote.tsx
10410
10449
 
10450
+ function isEmptyDocument(value) {
10451
+ return value === void 0 || value === null || value === "" || Array.isArray(value) && value.length === 0;
10452
+ }
10453
+ _chunk7QVYU63Ejs.__name.call(void 0, isEmptyDocument, "isEmptyDocument");
10454
+ function getPath(source, path) {
10455
+ return path.split(".").reduce((acc, key) => acc == null ? void 0 : acc[key], source);
10456
+ }
10457
+ _chunk7QVYU63Ejs.__name.call(void 0, getPath, "getPath");
10411
10458
  function FormBlockNote({
10412
10459
  form,
10413
10460
  id,
@@ -10441,6 +10488,10 @@ function FormBlockNote({
10441
10488
  className: _chunkCAKOFJZDjs.cn.call(void 0,
10442
10489
  "flex w-full flex-col",
10443
10490
  stretch && "min-h-0 flex-1 [&>[data-slot=field]]:min-h-0 [&>[data-slot=field]]:flex-1",
10491
+ // Phone: the sheet is too short to share with the other fields, so the
10492
+ // editor stops filling the leftover space (2px in a long form) and grows
10493
+ // with its content instead; the sheet body does the scrolling.
10494
+ stretch && "max-md:min-h-64 max-md:flex-none",
10444
10495
  className
10445
10496
  ),
10446
10497
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -10466,7 +10517,11 @@ function FormBlockNote({
10466
10517
  initialContent: initialContentRef.current,
10467
10518
  onChange: (content, isEmpty) => {
10468
10519
  lastEditorContentRef.current = content;
10469
- field.onChange(content);
10520
+ if (isEmpty && isEmptyDocument(getPath(form.formState.defaultValues, id)) && !form.getFieldState(id).isDirty) {
10521
+ form.resetField(id, { defaultValue: content });
10522
+ } else {
10523
+ field.onChange(content);
10524
+ }
10470
10525
  _optionalChain([onEmptyChange, 'optionalCall', _286 => _286(isEmpty)]);
10471
10526
  },
10472
10527
  placeholder,
@@ -10498,7 +10553,10 @@ _chunk7QVYU63Ejs.__name.call(void 0, FormBlockNote, "FormBlockNote");
10498
10553
 
10499
10554
  function FormCheckbox({ form, id, name, labelBefore, description, isRequired }) {
10500
10555
  const simpleLabel = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
10501
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FieldLabel, { htmlFor: id, className: `font-normal ${labelBefore ? "" : "ms-3"}`, children: name });
10556
+ return (
10557
+ // Phone: the label fills the row and is 40px tall, so the whole row toggles the box.
10558
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FieldLabel, { htmlFor: id, className: `font-normal ${labelBefore ? "" : "ms-3"} max-md:min-h-10 max-md:flex-1`, children: name })
10559
+ );
10502
10560
  }, "simpleLabel");
10503
10561
  const label = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
10504
10562
  if (!description) return simpleLabel();
@@ -10508,7 +10566,7 @@ function FormCheckbox({ form, id, name, labelBefore, description, isRequired })
10508
10566
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: description })
10509
10567
  ] });
10510
10568
  }, "label");
10511
- 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, orientation: "horizontal", children: (field) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-x-4", children: [
10569
+ 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, orientation: "horizontal", children: (field) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-x-4 max-md:min-h-10 max-md:items-center", children: [
10512
10570
  labelBefore && label(),
10513
10571
  labelBefore && isRequired && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "ms-1 text-destructive", children: "*" }),
10514
10572
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Checkbox, { id, checked: _nullishCoalesce(field.value, () => ( false)), onCheckedChange: field.onChange }),
@@ -12477,7 +12535,7 @@ function CompanyContent({ company, actions }) {
12477
12535
  const t = _nextintl.useTranslations.call(void 0, );
12478
12536
  if (!company) return null;
12479
12537
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-y-8", children: [
12480
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between", children: [
12538
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkCAKOFJZDjs.cn.call(void 0, "flex w-full items-center justify-between", !actions && "max-md:hidden"), children: [
12481
12539
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SectionHeader, { level: 2, children: company.name }),
12482
12540
  actions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-x-2", children: actions })
12483
12541
  ] }),
@@ -12534,7 +12592,12 @@ var _link = require('next/link'); var _link2 = _interopRequireDefault(_link);
12534
12592
 
12535
12593
 
12536
12594
  var asWholeCredits = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (value) => Math.trunc(value).toLocaleString(), "asWholeCredits");
12537
- function TokenStatusIndicator({ className, size = "md", showExtraPages = true }) {
12595
+ function TokenStatusIndicator({
12596
+ className,
12597
+ size = "md",
12598
+ showExtraPages = true,
12599
+ href
12600
+ }) {
12538
12601
  const { company } = useCurrentUserContext();
12539
12602
  const t = _nextintl.useTranslations.call(void 0, );
12540
12603
  if (!company) return null;
@@ -12616,20 +12679,32 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
12616
12679
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { href: "/settings/billing?action=subscribe", className: "w-full flex justify-end my-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant: "outline", size: "sm", children: t("billing.tokens.purchase_extra", { defaultValue: "Purchase additional analysis" }) }) })
12617
12680
  ] })
12618
12681
  ] });
12682
+ const badge = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
12683
+ getBatteryIcon(),
12684
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCAKOFJZDjs.cn.call(void 0, textSize, "text-muted-foreground font-medium leading-none"), children: asWholeCredits(availableMonthlyCredits) }),
12685
+ showExtraPages && availableExtraCredits > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "inline-flex items-center gap-0.5", children: [
12686
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className: _chunkCAKOFJZDjs.cn.call(void 0, smallIconSize, "text-blue-500") }),
12687
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCAKOFJZDjs.cn.call(void 0, textSize, "text-blue-500 font-medium leading-none"), children: asWholeCredits(availableExtraCredits) })
12688
+ ] })
12689
+ ] });
12690
+ if (href) {
12691
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12692
+ _link2.default,
12693
+ {
12694
+ href,
12695
+ className: _chunkCAKOFJZDjs.cn.call(void 0, "inline-flex min-h-10 min-w-10 items-center justify-center gap-1.5 px-1", className),
12696
+ "aria-label": t("billing.tokens.status", { defaultValue: "Page Status" }),
12697
+ children: badge
12698
+ }
12699
+ );
12700
+ }
12619
12701
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
12620
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
12702
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12621
12703
  TooltipTrigger,
12622
12704
  {
12623
12705
  className: _chunkCAKOFJZDjs.cn.call(void 0, "inline-flex items-center gap-1.5 cursor-default", className),
12624
12706
  "aria-label": t("billing.tokens.status", { defaultValue: "Page Status" }),
12625
- children: [
12626
- getBatteryIcon(),
12627
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCAKOFJZDjs.cn.call(void 0, textSize, "text-muted-foreground font-medium leading-none"), children: asWholeCredits(availableMonthlyCredits) }),
12628
- showExtraPages && availableExtraCredits > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "inline-flex items-center gap-0.5", children: [
12629
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className: _chunkCAKOFJZDjs.cn.call(void 0, smallIconSize, "text-blue-500") }),
12630
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCAKOFJZDjs.cn.call(void 0, textSize, "text-blue-500 font-medium leading-none"), children: asWholeCredits(availableExtraCredits) })
12631
- ] })
12632
- ]
12707
+ children: badge
12633
12708
  }
12634
12709
  ),
12635
12710
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { side: "top", className: "max-w-xs", children: tooltipContent })
@@ -12645,7 +12720,16 @@ function CompanyDetails() {
12645
12720
  const { company } = useCompanyContext();
12646
12721
  if (!company) return null;
12647
12722
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-y-2", children: [
12648
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTitle, { module: _chunkCAKOFJZDjs.Modules.Company, type: title.type, element: title.element, functions: title.functions }),
12723
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12724
+ ContentTitle,
12725
+ {
12726
+ module: _chunkCAKOFJZDjs.Modules.Company,
12727
+ type: title.type,
12728
+ element: title.element,
12729
+ functions: title.functions,
12730
+ className: "max-md:hidden"
12731
+ }
12732
+ ),
12649
12733
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TokenStatusIndicator, { size: "md" }),
12650
12734
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyContent, { company })
12651
12735
  ] });
@@ -15056,12 +15140,41 @@ function BreadcrumbMobile({
15056
15140
  if (!showRoot) return null;
15057
15141
  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: rootLabel }) }) }) });
15058
15142
  }
15143
+ if (allItems.length <= 1) {
15144
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-foreground block min-w-0 truncate px-1.5 text-xs/relaxed font-normal", children: _optionalChain([lastItem, 'optionalAccess', _456 => _456.name]) });
15145
+ }
15059
15146
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenu, { open, onOpenChange: setOpen, children: [
15060
- /* @__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: [
15061
- _optionalChain([lastItem, 'optionalAccess', _456 => _456.name]),
15062
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: "text-muted-foreground size-3.5" })
15147
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenuTrigger, { className: "text-foreground text-xs/relaxed font-normal hover:bg-accent flex min-h-9 min-w-0 items-center gap-1 rounded-md px-1.5 py-0.5 transition-colors outline-none", children: [
15148
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: _optionalChain([lastItem, 'optionalAccess', _457 => _457.name]) }),
15149
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: "text-muted-foreground size-3.5 shrink-0" })
15063
15150
  ] }),
15064
- /* @__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, onClick: item.onClick, children: item.name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: item.name }) }, index)) })
15151
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuContent, { align: "start", children: allItems.map(
15152
+ (item, index) => item.href ? (
15153
+ // The item renders AS the link, so the whole row navigates — a Link
15154
+ // nested inside the row only answered taps on its own text.
15155
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15156
+ DropdownMenuItem,
15157
+ {
15158
+ className: "min-h-10",
15159
+ render: (props) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15160
+ Link,
15161
+ {
15162
+ ...props,
15163
+ href: item.href,
15164
+ className: _chunkCAKOFJZDjs.cn.call(void 0, props.className, "text-foreground font-normal"),
15165
+ onClick: (event) => {
15166
+ _optionalChain([props, 'access', _458 => _458.onClick, 'optionalCall', _459 => _459(event)]);
15167
+ _optionalChain([item, 'access', _460 => _460.onClick, 'optionalCall', _461 => _461()]);
15168
+ },
15169
+ children: props.children
15170
+ }
15171
+ ),
15172
+ children: item.name
15173
+ },
15174
+ index
15175
+ )
15176
+ ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuItem, { className: "min-h-10", children: item.name }, index)
15177
+ ) })
15065
15178
  ] });
15066
15179
  }
15067
15180
  _chunk7QVYU63Ejs.__name.call(void 0, BreadcrumbMobile, "BreadcrumbMobile");
@@ -15069,7 +15182,7 @@ function BreadcrumbNavigation({ items, rootLabel, showRoot = true }) {
15069
15182
  const generateUrl = usePageUrlGenerator();
15070
15183
  const t = _nextintl.useTranslations.call(void 0, );
15071
15184
  const isMobile = _chunkCAKOFJZDjs.useIsMobile.call(void 0, );
15072
- const root = _optionalChain([rootLabel, 'optionalAccess', _457 => _457.trim, 'call', _458 => _458()]) ? rootLabel : t(`common.home`);
15185
+ const root = _optionalChain([rootLabel, 'optionalAccess', _462 => _462.trim, 'call', _463 => _463()]) ? rootLabel : t(`common.home`);
15073
15186
  if (isMobile) {
15074
15187
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbMobile, { items, generateUrl, rootLabel: root, showRoot });
15075
15188
  }
@@ -15112,7 +15225,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentTitle, "ContentTitle");
15112
15225
 
15113
15226
  // src/components/navigations/Header.tsx
15114
15227
 
15115
- function Header({ children, mobileChildren, leftContent, logo, className }) {
15228
+ function Header({
15229
+ children,
15230
+ mobileChildren,
15231
+ leftContent,
15232
+ logo,
15233
+ className,
15234
+ hideSidebarTriggerOnMobile
15235
+ }) {
15116
15236
  const { breadcrumbs } = useSharedContext();
15117
15237
  const rootLabel = useHeaderRootLabel();
15118
15238
  const isRootHidden = useIsBreadcrumbRootHidden();
@@ -15137,9 +15257,9 @@ function Header({ children, mobileChildren, leftContent, logo, className }) {
15137
15257
  className: `bg-sidebar sticky top-0 z-10 flex h-[var(--app-header-h,calc(3rem_+_env(safe-area-inset-top)))] flex-col items-center justify-start gap-x-4 pt-[env(safe-area-inset-top)] ${_nullishCoalesce(className, () => ( ""))}`,
15138
15258
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-sidebar flex h-12 w-full flex-row items-center justify-between ps-2 pe-4", children: [
15139
15259
  isMobile && logo && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex shrink-0 flex-row items-center pe-1", children: logo }),
15140
- sidebar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SidebarTrigger, { "aria-label": "Toggle sidebar", id: "sidebar-trigger" }),
15260
+ sidebar && !(isMobile && hideSidebarTriggerOnMobile) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SidebarTrigger, { "aria-label": "Toggle sidebar", id: "sidebar-trigger" }),
15141
15261
  leftContent,
15142
- /* @__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, rootLabel: _nullishCoalesce(rootLabel, () => ( void 0)), showRoot: !isRootHidden }) }),
15262
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start max-md:min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbNavigation, { items: breadcrumbs, rootLabel: _nullishCoalesce(rootLabel, () => ( void 0)), showRoot: !isRootHidden }) }),
15143
15263
  isMobile ? mobileChildren && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex shrink-0 flex-row items-center justify-end gap-x-2 whitespace-nowrap", children: mobileChildren }) : children && // No fixed width: the widget slot sizes to its content and the
15144
15264
  // breadcrumb (w-full, above) takes the rest. A `w-64` cap here
15145
15265
  // clipped consumers whose widget set outgrew 256px.
@@ -15189,6 +15309,9 @@ function MobileNavigationBar({ className } = {}) {
15189
15309
  active && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, className: "bg-primary absolute inset-x-0 top-0 h-0.5" }),
15190
15310
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SlotContent, { item })
15191
15311
  ] });
15312
+ if (!item.href && !item.onClick) {
15313
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-testid": `mobile-nav-${item.key}`, className: _chunkCAKOFJZDjs.cn.call(void 0, slotClass, tone), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SlotContent, { item }) }, item.key);
15314
+ }
15192
15315
  return item.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15193
15316
  Link,
15194
15317
  {
@@ -15339,7 +15462,7 @@ function PageContainer({ children, testId, className }) {
15339
15462
  const headerLogo = useHeaderLogo();
15340
15463
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex h-full w-full flex-col`, "data-testid": testId, children: [
15341
15464
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header, { leftContent: headerLeftContent, logo: headerLogo, mobileChildren: headerMobileChildren, children: headerChildren }),
15342
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className: _chunkCAKOFJZDjs.cn.call(void 0, `flex w-full flex-1 flex-col gap-y-4 pt-4 ps-4 pe-0`, className), children })
15465
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className: _chunkCAKOFJZDjs.cn.call(void 0, `flex w-full flex-1 flex-col gap-y-4 pt-4 ps-4 pe-0 max-md:pe-4`, className), children })
15343
15466
  ] });
15344
15467
  }
15345
15468
  _chunk7QVYU63Ejs.__name.call(void 0, PageContainer, "PageContainer");
@@ -15448,12 +15571,12 @@ var _remarkgfm = require('remark-gfm'); var _remarkgfm2 = _interopRequireDefault
15448
15571
 
15449
15572
  function mermaidSourceOf(node) {
15450
15573
  const pre = node;
15451
- const code = _optionalChain([pre, 'optionalAccess', _459 => _459.children, 'optionalAccess', _460 => _460[0]]);
15452
- if (_optionalChain([code, 'optionalAccess', _461 => _461.tagName]) !== "code") return void 0;
15453
- const classNames = Array.isArray(_optionalChain([code, 'access', _462 => _462.properties, 'optionalAccess', _463 => _463.className])) ? code.properties.className : [];
15574
+ const code = _optionalChain([pre, 'optionalAccess', _464 => _464.children, 'optionalAccess', _465 => _465[0]]);
15575
+ if (_optionalChain([code, 'optionalAccess', _466 => _466.tagName]) !== "code") return void 0;
15576
+ const classNames = Array.isArray(_optionalChain([code, 'access', _467 => _467.properties, 'optionalAccess', _468 => _468.className])) ? code.properties.className : [];
15454
15577
  if (!classNames.includes("language-mermaid")) return void 0;
15455
- const text = _optionalChain([code, 'access', _464 => _464.children, 'optionalAccess', _465 => _465[0]]);
15456
- if (_optionalChain([text, 'optionalAccess', _466 => _466.type]) !== "text" || typeof text.value !== "string") return void 0;
15578
+ const text = _optionalChain([code, 'access', _469 => _469.children, 'optionalAccess', _470 => _470[0]]);
15579
+ if (_optionalChain([text, 'optionalAccess', _471 => _471.type]) !== "text" || typeof text.value !== "string") return void 0;
15457
15580
  return text.value;
15458
15581
  }
15459
15582
  _chunk7QVYU63Ejs.__name.call(void 0, mermaidSourceOf, "mermaidSourceOf");
@@ -15604,41 +15727,74 @@ function RoundPageContainerTitle({
15604
15727
  }) {
15605
15728
  const { title } = useSharedContext();
15606
15729
  const isMobile = _chunkCAKOFJZDjs.useIsMobile.call(void 0, );
15730
+ const detailsLabel = `${showDetails ? "Hide" : "Show"} ${typeof detailsTitle === "string" ? detailsTitle : "details"}`;
15731
+ const detailsToggle = details ? isMobile ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15732
+ Button,
15733
+ {
15734
+ "data-help": "page.details",
15735
+ variant: showDetails ? `ghost` : `default`,
15736
+ onClick: () => setShowDetails(!showDetails),
15737
+ "aria-label": detailsLabel,
15738
+ className: "shrink-0",
15739
+ children: _nullishCoalesce(detailsIcon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.InfoIcon, {})))
15740
+ }
15741
+ ) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
15742
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15743
+ TooltipTrigger,
15744
+ {
15745
+ render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15746
+ Button,
15747
+ {
15748
+ "data-help": "page.details",
15749
+ variant: showDetails ? `ghost` : `default`,
15750
+ onClick: () => setShowDetails(!showDetails),
15751
+ "aria-label": detailsLabel,
15752
+ className: _chunkCAKOFJZDjs.cn.call(void 0, `cursor-pointer`)
15753
+ }
15754
+ ),
15755
+ children: _nullishCoalesce(detailsIcon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.InfoIcon, {})))
15756
+ }
15757
+ ),
15758
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TooltipContent, { children: [
15759
+ showDetails ? "Hide" : "Show",
15760
+ " ",
15761
+ _nullishCoalesce(detailsTitle, () => ( "details"))
15762
+ ] })
15763
+ ] }) : null;
15607
15764
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col border-b", children: [
15608
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkCAKOFJZDjs.cn.call(void 0, `flex w-full flex-row items-center gap-x-2 p-4 justify-between`, HEADER_ROW_MIN_H), children: [
15609
- !isMobile ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full gap-x-4", children: [
15765
+ isMobile ? (
15766
+ // Phone: "type · name" on one truncated line with the details toggle
15767
+ // beside it; the page controls drop to their own wrapping line below,
15768
+ // so they can never push the page wider than the screen.
15769
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkCAKOFJZDjs.cn.call(void 0, `flex w-full flex-col gap-y-2 p-4`, HEADER_ROW_MIN_H), children: [
15770
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center justify-between gap-x-2", children: [
15771
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground flex min-w-0 items-center gap-x-2 text-base font-light", children: [
15772
+ title.titleActions,
15773
+ module && module.icon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, module.icon, { className: "text-primary h-5 w-5 shrink-0" }) : title.icon,
15774
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "truncate", children: [
15775
+ title.type,
15776
+ title.element && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
15777
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, children: " \xB7 " }),
15778
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-primary font-semibold", children: title.element })
15779
+ ] })
15780
+ ] })
15781
+ ] }),
15782
+ detailsToggle
15783
+ ] }),
15784
+ title.functions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full min-w-0 flex-wrap items-center justify-end gap-2", children: title.functions })
15785
+ ] })
15786
+ ) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkCAKOFJZDjs.cn.call(void 0, `flex w-full flex-row items-center gap-x-2 p-4 justify-between`, HEADER_ROW_MIN_H), children: [
15787
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full gap-x-4", children: [
15610
15788
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground flex items-center gap-x-2 text-lg font-light whitespace-nowrap", children: [
15611
15789
  title.titleActions,
15612
15790
  module && module.icon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, module.icon, { className: "text-primary h-6 w-6" }) : title.icon,
15613
15791
  title.type
15614
15792
  ] }),
15615
15793
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkCAKOFJZDjs.cn.call(void 0, "text-primary w-full text-xl font-semibold"), children: title.element })
15616
- ] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground flex min-w-0 items-center gap-x-2 text-base font-light", children: [
15617
- title.titleActions,
15618
- module && module.icon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, module.icon, { className: "text-primary h-5 w-5 shrink-0" }) : title.icon,
15619
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: title.type })
15620
15794
  ] }),
15621
15795
  (title.functions || details) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-x-2", children: [
15622
15796
  title.functions,
15623
- details && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
15624
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15625
- Button,
15626
- {
15627
- "data-help": "page.details",
15628
- render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {}),
15629
- nativeButton: false,
15630
- variant: showDetails ? `ghost` : `default`,
15631
- onClick: () => setShowDetails(!showDetails),
15632
- className: _chunkCAKOFJZDjs.cn.call(void 0, `cursor-pointer`),
15633
- children: _nullishCoalesce(detailsIcon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.InfoIcon, {})))
15634
- }
15635
- ) }),
15636
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TooltipContent, { children: [
15637
- showDetails ? "Hide" : "Show",
15638
- " ",
15639
- _nullishCoalesce(detailsTitle, () => ( "details"))
15640
- ] })
15641
- ] })
15797
+ detailsToggle
15642
15798
  ] })
15643
15799
  ] }),
15644
15800
  title.actionBar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -15646,7 +15802,7 @@ function RoundPageContainerTitle({
15646
15802
  {
15647
15803
  "data-testid": "round-page-action-bar",
15648
15804
  "data-help": "page.action-bar",
15649
- className: "flex w-full items-center gap-x-2 border-t px-4 py-2",
15805
+ className: "flex w-full items-center gap-x-2 border-t px-4 py-2 max-md:flex-wrap max-md:gap-y-2",
15650
15806
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ActionBarProvider, { value: true, children: title.actionBar })
15651
15807
  }
15652
15808
  )
@@ -15673,7 +15829,7 @@ var railTriggerClass = _chunkCAKOFJZDjs.cn.call(void 0,
15673
15829
  "data-active:text-primary dark:data-active:text-primary",
15674
15830
  "data-active:font-medium data-active:shadow-none"
15675
15831
  );
15676
- var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access', _467 => _467.key, 'optionalAccess', _468 => _468.name]))), () => ( tab.label)), "tabValue");
15832
+ var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access', _472 => _472.key, 'optionalAccess', _473 => _473.name]))), () => ( tab.label)), "tabValue");
15677
15833
  function RoundPageContainer({
15678
15834
  module,
15679
15835
  id,
@@ -15697,12 +15853,14 @@ function RoundPageContainer({
15697
15853
  const headerLogo = useHeaderLogo();
15698
15854
  const headerMobileChildren = useHeaderMobileChildren();
15699
15855
  const [showDetails, setShowDetailsState] = _react.useState.call(void 0, defaultDetailsOpen);
15856
+ const [showDetailsMobile, setShowDetailsMobile] = _react.useState.call(void 0, false);
15700
15857
  const isMobile = _chunkCAKOFJZDjs.useIsMobile.call(void 0, );
15858
+ const hasMobileNavigation = useMobileNavigationItems().length > 0;
15701
15859
  const hasSidebar = useOptionalSidebar() !== null;
15702
15860
  const [mounted, setMounted] = _react.useState.call(void 0, false);
15703
15861
  _react.useEffect.call(void 0, () => {
15704
15862
  const match = document.cookie.split("; ").find((row) => row.startsWith(`${detailsCookieName}=`));
15705
- const stored = _optionalChain([match, 'optionalAccess', _469 => _469.split, 'call', _470 => _470("="), 'access', _471 => _471[1]]);
15863
+ const stored = _optionalChain([match, 'optionalAccess', _474 => _474.split, 'call', _475 => _475("="), 'access', _476 => _476[1]]);
15706
15864
  if (stored === "true") setShowDetailsState(true);
15707
15865
  else if (stored === "false") setShowDetailsState(false);
15708
15866
  }, []);
@@ -15717,7 +15875,7 @@ function RoundPageContainer({
15717
15875
  const clip = isFixed ? `overflow-hidden` : ``;
15718
15876
  const scrollY = isFixed ? `overflow-y-auto` : ``;
15719
15877
  const mobileBarClass = isFixed ? `` : `sticky bottom-0 z-30`;
15720
- const detailsCookieName = _optionalChain([module, 'optionalAccess', _472 => _472.name]) ? `${DETAILS_COOKIE_NAME}_${module.name}` : DETAILS_COOKIE_NAME;
15878
+ const detailsCookieName = _optionalChain([module, 'optionalAccess', _477 => _477.name]) ? `${DETAILS_COOKIE_NAME}_${module.name}` : DETAILS_COOKIE_NAME;
15721
15879
  const setShowDetails = _react.useCallback.call(void 0,
15722
15880
  (value) => {
15723
15881
  setShowDetailsState(value);
@@ -15746,19 +15904,24 @@ function RoundPageContainer({
15746
15904
  } else {
15747
15905
  rewriteUrl({ page: window.location.pathname, additionalParameters: { section: key } });
15748
15906
  }
15749
- _optionalChain([onSectionChange, 'optionalCall', _473 => _473(key)]);
15907
+ _optionalChain([onSectionChange, 'optionalCall', _478 => _478(key)]);
15750
15908
  },
15751
15909
  [module, id, rewriteUrl, onSectionChange]
15752
15910
  );
15753
- const activeTabDefinition = _optionalChain([tabs, 'optionalAccess', _474 => _474.find, 'call', _475 => _475((t) => tabValue(t) === activeTab)]);
15754
- const activeFillHeight = _optionalChain([activeTabDefinition, 'optionalAccess', _476 => _476.fillHeight]) === true;
15755
- const activeConstrainWidth = _optionalChain([activeTabDefinition, 'optionalAccess', _477 => _477.constrainWidth]) === true;
15911
+ const activeTabDefinition = _optionalChain([tabs, 'optionalAccess', _479 => _479.find, 'call', _480 => _480((t) => tabValue(t) === activeTab)]);
15912
+ const activeFillHeight = _optionalChain([activeTabDefinition, 'optionalAccess', _481 => _481.fillHeight]) === true;
15913
+ const activeConstrainWidth = _optionalChain([activeTabDefinition, 'optionalAccess', _482 => _482.constrainWidth]) === true;
15756
15914
  const { ungrouped, groups } = _react.useMemo.call(void 0, () => partitionTabs(_nullishCoalesce(tabs, () => ( []))), [tabs]);
15757
15915
  const tabItems = _react.useMemo.call(void 0,
15758
15916
  () => Object.fromEntries((_nullishCoalesce(tabs, () => ( []))).map((tab) => [tabValue(tab), _nullishCoalesce(tab.contentLabel, () => ( tab.label))])),
15759
15917
  [tabs]
15760
15918
  );
15761
15919
  const isReady = mounted;
15920
+ const activeDocumentTab = activeFillHeight && activeConstrainWidth;
15921
+ const mobileFlow = isMobile && isFixed && (!activeFillHeight || activeDocumentTab) && !fullWidth;
15922
+ const innerClip = mobileFlow ? `` : clip;
15923
+ const innerScrollY = mobileFlow ? `` : scrollY;
15924
+ const showMobileSectionPicker = (_nullishCoalesce(_optionalChain([tabs, 'optionalAccess', _483 => _483.length]), () => ( 0))) > 1;
15762
15925
  if (!isReady) {
15763
15926
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
15764
15927
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -15767,6 +15930,7 @@ function RoundPageContainer({
15767
15930
  leftContent: headerLeftContent,
15768
15931
  logo: headerLogo,
15769
15932
  mobileChildren: headerMobileChildren,
15933
+ hideSidebarTriggerOnMobile: hasMobileNavigation,
15770
15934
  className: "bg-sidebar border-0",
15771
15935
  children: headerChildren
15772
15936
  }
@@ -15803,6 +15967,7 @@ function RoundPageContainer({
15803
15967
  leftContent: headerLeftContent,
15804
15968
  logo: headerLogo,
15805
15969
  mobileChildren: headerMobileChildren,
15970
+ hideSidebarTriggerOnMobile: hasMobileNavigation,
15806
15971
  className: "bg-sidebar border-0",
15807
15972
  children: headerChildren
15808
15973
  }
@@ -15826,7 +15991,7 @@ function RoundPageContainer({
15826
15991
  ),
15827
15992
  children: [
15828
15993
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-background flex min-h-0 w-full flex-1 rounded-lg border p-0", children: [
15829
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
15994
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkCAKOFJZDjs.cn.call(void 0, "flex w-full flex-col", mobileFlow && "min-h-0 overflow-y-auto pb-16"), children: [
15830
15995
  (!fullWidth || forceHeader) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15831
15996
  RoundPageContainerTitle,
15832
15997
  {
@@ -15834,12 +15999,12 @@ function RoundPageContainer({
15834
15999
  details,
15835
16000
  detailsTitle,
15836
16001
  detailsIcon,
15837
- showDetails,
15838
- setShowDetails,
16002
+ showDetails: isMobile ? showDetailsMobile : showDetails,
16003
+ setShowDetails: isMobile ? setShowDetailsMobile : setShowDetails,
15839
16004
  fullWidth
15840
16005
  }
15841
16006
  ),
15842
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkCAKOFJZDjs.cn.call(void 0, `flex w-full`, isFixed && `h-full`, clip), children: layout2 === "rail" && tabs ? (
16007
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkCAKOFJZDjs.cn.call(void 0, `flex w-full`, isFixed && !mobileFlow && `h-full`, innerClip), children: layout2 === "rail" && tabs ? (
15843
16008
  // Rail layout: the vertical-tab navigation is a flush-left
15844
16009
  // sidebar of the card and the content fills the full remaining
15845
16010
  // width (like `fullWidth`) — NOT the centred max-w-6xl column.
@@ -15849,7 +16014,11 @@ function RoundPageContainer({
15849
16014
  value: activeTab,
15850
16015
  onValueChange: handleTabChange,
15851
16016
  orientation: "horizontal",
15852
- className: _chunkCAKOFJZDjs.cn.call(void 0, `flex min-w-0 grow data-[orientation=horizontal]:flex-row`, isFixed && `h-full`, clip),
16017
+ className: _chunkCAKOFJZDjs.cn.call(void 0,
16018
+ `flex min-w-0 grow data-[orientation=horizontal]:flex-row`,
16019
+ isFixed && !mobileFlow && `h-full`,
16020
+ innerClip
16021
+ ),
15853
16022
  children: [
15854
16023
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
15855
16024
  "aside",
@@ -15872,32 +16041,42 @@ function RoundPageContainer({
15872
16041
  ]
15873
16042
  }
15874
16043
  ),
15875
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkCAKOFJZDjs.cn.call(void 0, `flex min-w-0 grow flex-col`, clip), children: [
15876
- railHeader && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mx-auto w-full max-w-48 px-2 pt-2 md:hidden", children: railHeader }),
15877
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-testid": "round-page-rail-select", className: "p-2 md:hidden", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
15878
- Select,
16044
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkCAKOFJZDjs.cn.call(void 0, `flex min-w-0 grow flex-col`, innerClip), children: [
16045
+ railHeader && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mx-auto w-full max-w-24 px-2 pt-2 md:hidden", children: railHeader }),
16046
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
16047
+ "div",
15879
16048
  {
15880
- items: tabItems,
15881
- value: activeTab,
15882
- onValueChange: (value) => {
15883
- if (value) handleTabChange(value);
15884
- },
15885
- children: [
15886
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, {}) }),
15887
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SelectContent, { children: [
15888
- ungrouped.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: tabValue(tab), children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)),
15889
- groups.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SelectGroup, { children: [
15890
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectLabel, { children: group.label }),
15891
- group.items.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: tabValue(tab), children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label))
15892
- ] }, group.label))
15893
- ] })
15894
- ]
16049
+ "data-testid": "round-page-rail-select",
16050
+ className: _chunkCAKOFJZDjs.cn.call(void 0, "p-2 md:hidden", !showMobileSectionPicker && "hidden"),
16051
+ children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
16052
+ Select,
16053
+ {
16054
+ items: tabItems,
16055
+ value: activeTab,
16056
+ onValueChange: (value) => {
16057
+ if (value) handleTabChange(value);
16058
+ },
16059
+ children: [
16060
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, {}) }),
16061
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SelectContent, { children: [
16062
+ ungrouped.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: tabValue(tab), children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)),
16063
+ groups.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SelectGroup, { children: [
16064
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectLabel, { children: group.label }),
16065
+ group.items.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: tabValue(tab), children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label))
16066
+ ] }, group.label))
16067
+ ] })
16068
+ ]
16069
+ }
16070
+ )
15895
16071
  }
15896
- ) }),
16072
+ ),
15897
16073
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15898
16074
  "div",
15899
16075
  {
15900
- className: _chunkCAKOFJZDjs.cn.call(void 0, `min-w-0 grow`, activeFillHeight ? _chunkCAKOFJZDjs.cn.call(void 0, `flex flex-col`, clip) : _chunkCAKOFJZDjs.cn.call(void 0, scrollY, `p-4`)),
16076
+ className: _chunkCAKOFJZDjs.cn.call(void 0,
16077
+ `min-w-0 grow`,
16078
+ activeFillHeight ? _chunkCAKOFJZDjs.cn.call(void 0, `flex flex-col`, innerClip) : _chunkCAKOFJZDjs.cn.call(void 0, innerScrollY, `p-4`)
16079
+ ),
15901
16080
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
15902
16081
  "div",
15903
16082
  {
@@ -15932,7 +16111,7 @@ function RoundPageContainer({
15932
16111
  className: _chunkCAKOFJZDjs.cn.call(void 0,
15933
16112
  `grow`,
15934
16113
  isMobile ? `p-2` : `p-4`,
15935
- activeFillHeight ? _chunkCAKOFJZDjs.cn.call(void 0, `flex flex-col`, clip) : scrollY,
16114
+ activeFillHeight ? _chunkCAKOFJZDjs.cn.call(void 0, `flex flex-col`, innerClip) : innerScrollY,
15936
16115
  fullWidth && `p-0`
15937
16116
  ),
15938
16117
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -15953,7 +16132,7 @@ function RoundPageContainer({
15953
16132
  className: _chunkCAKOFJZDjs.cn.call(void 0, `w-full`, activeFillHeight && `flex flex-1 min-h-0 flex-col`),
15954
16133
  onValueChange: handleTabChange,
15955
16134
  children: [
15956
- isMobile ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
16135
+ isMobile ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkCAKOFJZDjs.cn.call(void 0, "p-0", !showMobileSectionPicker && "hidden"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
15957
16136
  Select,
15958
16137
  {
15959
16138
  items: tabItems,
@@ -15973,7 +16152,7 @@ function RoundPageContainer({
15973
16152
  className: _chunkCAKOFJZDjs.cn.call(void 0,
15974
16153
  `flex w-full `,
15975
16154
  isMobile ? `` : `px-4`,
15976
- activeFillHeight ? `flex-1 min-h-0` : scrollY
16155
+ activeFillHeight ? `flex-1 min-h-0` : innerScrollY
15977
16156
  ),
15978
16157
  children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15979
16158
  TabsContent,
@@ -15997,10 +16176,17 @@ function RoundPageContainer({
15997
16176
  }
15998
16177
  ) })
15999
16178
  ] }),
16000
- details && (isMobile ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Sheet, { open: showDetails, onOpenChange: setShowDetails, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SheetContent, { side: "end", children: [
16001
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTitle, { children: _nullishCoalesce(detailsTitle, () => ( "Details")) }) }),
16002
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-y-auto p-6 pt-0", children: details })
16003
- ] }) }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
16179
+ details && (isMobile ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Sheet, { open: showDetailsMobile, onOpenChange: setShowDetailsMobile, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
16180
+ SheetContent,
16181
+ {
16182
+ side: "end",
16183
+ className: "data-[side=left]:w-full data-[side=right]:w-full data-[side=left]:sm:max-w-none data-[side=right]:sm:max-w-none",
16184
+ children: [
16185
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTitle, { children: _nullishCoalesce(detailsTitle, () => ( "Details")) }) }),
16186
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-y-auto p-6 pt-0", children: details })
16187
+ ]
16188
+ }
16189
+ ) }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
16004
16190
  "div",
16005
16191
  {
16006
16192
  className: _chunkCAKOFJZDjs.cn.call(void 0,
@@ -16135,14 +16321,14 @@ function BlockNoteEditorMentionHoverCard({
16135
16321
  const entityType = target.dataset.mentionType;
16136
16322
  const alias = target.dataset.mentionAlias;
16137
16323
  setHovered((prev) => {
16138
- if (_optionalChain([prev, 'optionalAccess', _478 => _478.id]) === id && _optionalChain([prev, 'optionalAccess', _479 => _479.element]) === target) return prev;
16324
+ if (_optionalChain([prev, 'optionalAccess', _484 => _484.id]) === id && _optionalChain([prev, 'optionalAccess', _485 => _485.element]) === target) return prev;
16139
16325
  return { id, entityType, alias, element: target };
16140
16326
  });
16141
16327
  }, "handleMouseOver");
16142
16328
  const handleMouseOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
16143
16329
  const target = e.target.closest("[data-mention-id]");
16144
16330
  if (!target) return;
16145
- const related = _optionalChain([e, 'access', _480 => _480.relatedTarget, 'optionalAccess', _481 => _481.closest, 'call', _482 => _482("[data-mention-id]")]);
16331
+ const related = _optionalChain([e, 'access', _486 => _486.relatedTarget, 'optionalAccess', _487 => _487.closest, 'call', _488 => _488("[data-mention-id]")]);
16146
16332
  if (related) return;
16147
16333
  scheduleClose();
16148
16334
  }, "handleMouseOut");
@@ -16156,7 +16342,7 @@ function BlockNoteEditorMentionHoverCard({
16156
16342
  }, [containerRef, mentionResolveFn, cancelClose, scheduleClose]);
16157
16343
  if (!hovered || !mentionResolveFn) return null;
16158
16344
  const resolved = mentionResolveFn(hovered.id, hovered.entityType, hovered.alias);
16159
- if (!_optionalChain([resolved, 'optionalAccess', _483 => _483.HoverContent])) return null;
16345
+ if (!_optionalChain([resolved, 'optionalAccess', _489 => _489.HoverContent])) return null;
16160
16346
  const ContentComponent = resolved.HoverContent;
16161
16347
  const rect = hovered.element.getBoundingClientRect();
16162
16348
  return _reactdom.createPortal.call(void 0,
@@ -16200,28 +16386,28 @@ var parseMentionElement = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
16200
16386
  }, "parseMentionElement");
16201
16387
  var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn, disableMention, nameResolver) => {
16202
16388
  const MentionExternalHTML = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
16203
- const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _484 => _484(props.id, props.entityType, props.alias)]), () => ( props.alias));
16389
+ const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _490 => _490(props.id, props.entityType, props.alias)]), () => ( props.alias));
16204
16390
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "data-mention-id": props.id, "data-mention-type": props.entityType, "data-mention-alias": props.alias, children: [
16205
16391
  "@",
16206
16392
  displayName
16207
16393
  ] });
16208
16394
  }, "MentionExternalHTML");
16209
16395
  const Mention = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function Mention2(props) {
16210
- const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _485 => _485(props.id, props.entityType, props.alias)]), () => ( props.alias));
16396
+ const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _491 => _491(props.id, props.entityType, props.alias)]), () => ( props.alias));
16211
16397
  if (disableMention) {
16212
- const resolved2 = _optionalChain([resolveFn, 'optionalCall', _486 => _486(props.id, props.entityType, displayName)]);
16213
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _487 => _487.url]), () => ( "#")), className: "text-primary", children: [
16398
+ const resolved2 = _optionalChain([resolveFn, 'optionalCall', _492 => _492(props.id, props.entityType, displayName)]);
16399
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _493 => _493.url]), () => ( "#")), className: "text-primary", children: [
16214
16400
  "@",
16215
16401
  displayName
16216
16402
  ] });
16217
16403
  }
16218
- const resolved = _optionalChain([resolveFn, 'optionalCall', _488 => _488(props.id, props.entityType, displayName)]);
16219
- if (_optionalChain([resolved, 'optionalAccess', _489 => _489.Inline])) {
16404
+ const resolved = _optionalChain([resolveFn, 'optionalCall', _494 => _494(props.id, props.entityType, displayName)]);
16405
+ if (_optionalChain([resolved, 'optionalAccess', _495 => _495.Inline])) {
16220
16406
  const Custom = resolved.Inline;
16221
16407
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props, alias: displayName });
16222
16408
  }
16223
- const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _490 => _490.url]), () => ( "#"));
16224
- const handleClick = _optionalChain([resolved, 'optionalAccess', _491 => _491.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
16409
+ const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _496 => _496.url]), () => ( "#"));
16410
+ const handleClick = _optionalChain([resolved, 'optionalAccess', _497 => _497.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
16225
16411
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
16226
16412
  _link2.default,
16227
16413
  {
@@ -16329,7 +16515,7 @@ function BlockNoteEditorMentionSuggestionMenu({
16329
16515
  if (!suggestionMenuComponent) return void 0;
16330
16516
  const Component2 = suggestionMenuComponent;
16331
16517
  const Wrapped = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
16332
- const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _492 => _492.items, 'access', _493 => _493[0], 'optionalAccess', _494 => _494.title]) === KEEP_OPEN_SENTINEL_TITLE;
16518
+ const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _498 => _498.items, 'access', _499 => _499[0], 'optionalAccess', _500 => _500.title]) === KEEP_OPEN_SENTINEL_TITLE;
16333
16519
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
16334
16520
  Component2,
16335
16521
  {
@@ -16338,7 +16524,7 @@ function BlockNoteEditorMentionSuggestionMenu({
16338
16524
  selectedIndex: isSentinelOnly ? void 0 : props.selectedIndex,
16339
16525
  onItemClick: (item) => {
16340
16526
  if (item.title === KEEP_OPEN_SENTINEL_TITLE) return;
16341
- _optionalChain([props, 'access', _495 => _495.onItemClick, 'optionalCall', _496 => _496(item)]);
16527
+ _optionalChain([props, 'access', _501 => _501.onItemClick, 'optionalCall', _502 => _502(item)]);
16342
16528
  }
16343
16529
  }
16344
16530
  );
@@ -16533,10 +16719,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
16533
16719
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
16534
16720
  Checkbox,
16535
16721
  {
16536
- checked: _optionalChain([params, 'access', _497 => _497.checkedIds, 'optionalAccess', _498 => _498.includes, 'call', _499 => _499(row.getValue(params.name))]) || false,
16722
+ checked: _optionalChain([params, 'access', _503 => _503.checkedIds, 'optionalAccess', _504 => _504.includes, 'call', _505 => _505(row.getValue(params.name))]) || false,
16537
16723
  onCheckedChange: (value) => {
16538
16724
  row.toggleSelected(!!value);
16539
- _optionalChain([params, 'access', _500 => _500.toggleId, 'optionalCall', _501 => _501(row.getValue(params.name))]);
16725
+ _optionalChain([params, 'access', _506 => _506.toggleId, 'optionalCall', _507 => _507(row.getValue(params.name))]);
16540
16726
  },
16541
16727
  "aria-label": "Select row"
16542
16728
  }
@@ -16595,7 +16781,7 @@ function useJsonApiGet(params) {
16595
16781
  const [response, setResponse] = _react.useState.call(void 0, null);
16596
16782
  const isMounted = _react.useRef.call(void 0, true);
16597
16783
  const fetchData = _react.useCallback.call(void 0, async () => {
16598
- if (_optionalChain([params, 'access', _502 => _502.options, 'optionalAccess', _503 => _503.enabled]) === false) return;
16784
+ if (_optionalChain([params, 'access', _508 => _508.options, 'optionalAccess', _509 => _509.enabled]) === false) return;
16599
16785
  setLoading(true);
16600
16786
  setError(null);
16601
16787
  try {
@@ -16622,9 +16808,9 @@ function useJsonApiGet(params) {
16622
16808
  setLoading(false);
16623
16809
  }
16624
16810
  }
16625
- }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _504 => _504.options, 'optionalAccess', _505 => _505.enabled])]);
16811
+ }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _510 => _510.options, 'optionalAccess', _511 => _511.enabled])]);
16626
16812
  const fetchNextPage = _react.useCallback.call(void 0, async () => {
16627
- if (!_optionalChain([response, 'optionalAccess', _506 => _506.nextPage])) return;
16813
+ if (!_optionalChain([response, 'optionalAccess', _512 => _512.nextPage])) return;
16628
16814
  setLoading(true);
16629
16815
  try {
16630
16816
  const nextResponse = await response.nextPage();
@@ -16645,7 +16831,7 @@ function useJsonApiGet(params) {
16645
16831
  }
16646
16832
  }, [response]);
16647
16833
  const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
16648
- if (!_optionalChain([response, 'optionalAccess', _507 => _507.prevPage])) return;
16834
+ if (!_optionalChain([response, 'optionalAccess', _513 => _513.prevPage])) return;
16649
16835
  setLoading(true);
16650
16836
  try {
16651
16837
  const prevResponse = await response.prevPage();
@@ -16671,15 +16857,15 @@ function useJsonApiGet(params) {
16671
16857
  return () => {
16672
16858
  isMounted.current = false;
16673
16859
  };
16674
- }, [fetchData, ..._optionalChain([params, 'access', _508 => _508.options, 'optionalAccess', _509 => _509.deps]) || []]);
16860
+ }, [fetchData, ..._optionalChain([params, 'access', _514 => _514.options, 'optionalAccess', _515 => _515.deps]) || []]);
16675
16861
  return {
16676
16862
  data,
16677
16863
  loading,
16678
16864
  error,
16679
16865
  response,
16680
16866
  refetch: fetchData,
16681
- hasNextPage: !!_optionalChain([response, 'optionalAccess', _510 => _510.next]),
16682
- hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _511 => _511.prev]),
16867
+ hasNextPage: !!_optionalChain([response, 'optionalAccess', _516 => _516.next]),
16868
+ hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _517 => _517.prev]),
16683
16869
  fetchNextPage,
16684
16870
  fetchPreviousPage
16685
16871
  };
@@ -16757,17 +16943,17 @@ function useJsonApiMutation(config) {
16757
16943
  if (apiResponse.ok) {
16758
16944
  const resultData = apiResponse.data;
16759
16945
  setData(resultData);
16760
- _optionalChain([config, 'access', _512 => _512.onSuccess, 'optionalCall', _513 => _513(resultData)]);
16946
+ _optionalChain([config, 'access', _518 => _518.onSuccess, 'optionalCall', _519 => _519(resultData)]);
16761
16947
  return resultData;
16762
16948
  } else {
16763
16949
  setError(apiResponse.error);
16764
- _optionalChain([config, 'access', _514 => _514.onError, 'optionalCall', _515 => _515(apiResponse.error)]);
16950
+ _optionalChain([config, 'access', _520 => _520.onError, 'optionalCall', _521 => _521(apiResponse.error)]);
16765
16951
  return null;
16766
16952
  }
16767
16953
  } catch (err) {
16768
16954
  const errorMessage = err instanceof Error ? err.message : "Unknown error";
16769
16955
  setError(errorMessage);
16770
- _optionalChain([config, 'access', _516 => _516.onError, 'optionalCall', _517 => _517(errorMessage)]);
16956
+ _optionalChain([config, 'access', _522 => _522.onError, 'optionalCall', _523 => _523(errorMessage)]);
16771
16957
  return null;
16772
16958
  } finally {
16773
16959
  setLoading(false);
@@ -16840,7 +17026,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
16840
17026
  {
16841
17027
  href: hasRole(_chunk4Z45NYPRjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
16842
17028
  page: "/administration",
16843
- id: _optionalChain([_chunkCAKOFJZDjs.Modules, 'access', _518 => _518.Company, 'access', _519 => _519.pageUrl, 'optionalAccess', _520 => _520.substring, 'call', _521 => _521(1)]),
17029
+ id: _optionalChain([_chunkCAKOFJZDjs.Modules, 'access', _524 => _524.Company, 'access', _525 => _525.pageUrl, 'optionalAccess', _526 => _526.substring, 'call', _527 => _527(1)]),
16844
17030
  childPage: company.id
16845
17031
  }) : generateUrl({ page: _chunkCAKOFJZDjs.Modules.Company, id: company.id }),
16846
17032
  children: row.getValue("name")
@@ -16856,7 +17042,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
16856
17042
  })
16857
17043
  };
16858
17044
  const columns = _react.useMemo.call(void 0, () => {
16859
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _522 => _522[field], 'optionalCall', _523 => _523()])).filter((col) => col !== void 0);
17045
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _528 => _528[field], 'optionalCall', _529 => _529()])).filter((col) => col !== void 0);
16860
17046
  }, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
16861
17047
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
16862
17048
  }, "useCompanyTableStructure");
@@ -16868,7 +17054,7 @@ var GRACE_DAYS = 3;
16868
17054
  var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
16869
17055
  if (!currentUser || !_chunk4Z45NYPRjs.isRolesConfigured.call(void 0, )) return false;
16870
17056
  const adminRoleId = _chunk4Z45NYPRjs.getRoleId.call(void 0, ).Administrator;
16871
- return !!_optionalChain([currentUser, 'access', _524 => _524.roles, 'optionalAccess', _525 => _525.some, 'call', _526 => _526((role) => role.id === adminRoleId)]);
17057
+ return !!_optionalChain([currentUser, 'access', _530 => _530.roles, 'optionalAccess', _531 => _531.some, 'call', _532 => _532((role) => role.id === adminRoleId)]);
16872
17058
  }, "isAdministrator");
16873
17059
  function useSubscriptionStatus() {
16874
17060
  const { company, currentUser } = useCurrentUserContext();
@@ -16986,7 +17172,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
16986
17172
  })
16987
17173
  };
16988
17174
  const columns = _react.useMemo.call(void 0, () => {
16989
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _527 => _527[field], 'optionalCall', _528 => _528()])).filter((col) => col !== void 0);
17175
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _533 => _533[field], 'optionalCall', _534 => _534()])).filter((col) => col !== void 0);
16990
17176
  }, [params.fields, fieldColumnMap, t, generateUrl]);
16991
17177
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
16992
17178
  }, "useRoleTableStructure");
@@ -17031,8 +17217,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, formatCurrency, "formatCurrency");
17031
17217
  var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
17032
17218
  const t = _nextintl.useTranslations.call(void 0, );
17033
17219
  const generateUrl = usePageUrlGenerator();
17034
- const onClone = _optionalChain([params, 'access', _529 => _529.context, 'optionalAccess', _530 => _530.onClone]);
17035
- const onExport = _optionalChain([params, 'access', _531 => _531.context, 'optionalAccess', _532 => _532.onExport]);
17220
+ const onClone = _optionalChain([params, 'access', _535 => _535.context, 'optionalAccess', _536 => _536.onClone]);
17221
+ const onExport = _optionalChain([params, 'access', _537 => _537.context, 'optionalAccess', _538 => _538.onExport]);
17036
17222
  const tableData = _react.useMemo.call(void 0, () => {
17037
17223
  return params.data.map((price) => {
17038
17224
  const entry = { jsonApiData: price };
@@ -17097,7 +17283,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
17097
17283
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex flex-wrap items-center gap-1", children: [
17098
17284
  price.active ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softGreen", children: t("billing.admin.prices.status.active") }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softGray", children: t("billing.admin.prices.status.archived") }),
17099
17285
  price.isTrial && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.trial") }),
17100
- _optionalChain([price, 'access', _533 => _533.recurring, 'optionalAccess', _534 => _534.usageType]) === "metered" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.metered") })
17286
+ _optionalChain([price, 'access', _539 => _539.recurring, 'optionalAccess', _540 => _540.usageType]) === "metered" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.metered") })
17101
17287
  ] });
17102
17288
  }, "cell"),
17103
17289
  enableSorting: false,
@@ -17145,7 +17331,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
17145
17331
  })
17146
17332
  };
17147
17333
  const columns = _react.useMemo.call(void 0, () => {
17148
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _535 => _535[field], 'optionalCall', _536 => _536()])).filter((col) => col !== void 0);
17334
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _541 => _541[field], 'optionalCall', _542 => _542()])).filter((col) => col !== void 0);
17149
17335
  }, [params.fields, fieldColumnMap, t, generateUrl, onClone, onExport]);
17150
17336
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17151
17337
  }, "useStripePriceTableStructure");
@@ -17204,7 +17390,7 @@ var useStripeProductTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.cal
17204
17390
  })
17205
17391
  };
17206
17392
  const columns = _react.useMemo.call(void 0, () => {
17207
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _537 => _537[field], 'optionalCall', _538 => _538()])).filter((col) => col !== void 0);
17393
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _543 => _543[field], 'optionalCall', _544 => _544()])).filter((col) => col !== void 0);
17208
17394
  }, [params.fields, fieldColumnMap, t, generateUrl]);
17209
17395
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17210
17396
  }, "useStripeProductTableStructure");
@@ -17226,7 +17412,7 @@ function parseQuestionnaire(questionnaire) {
17226
17412
  _chunk7QVYU63Ejs.__name.call(void 0, parseQuestionnaire, "parseQuestionnaire");
17227
17413
  var useWaitlistTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
17228
17414
  const t = _nextintl.useTranslations.call(void 0, );
17229
- const onInvite = _optionalChain([params, 'access', _539 => _539.context, 'optionalAccess', _540 => _540.onInvite]);
17415
+ const onInvite = _optionalChain([params, 'access', _545 => _545.context, 'optionalAccess', _546 => _546.onInvite]);
17230
17416
  const tableData = _react.useMemo.call(void 0, () => {
17231
17417
  return params.data.map((entry) => {
17232
17418
  const row = { jsonApiData: entry };
@@ -17306,7 +17492,7 @@ var useWaitlistTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
17306
17492
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
17307
17493
  const entry = row.original.jsonApiData;
17308
17494
  if (entry.status === "confirmed") {
17309
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Button, { size: "sm", variant: "outline", onClick: () => _optionalChain([onInvite, 'optionalCall', _541 => _541(entry)]), children: [
17495
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Button, { size: "sm", variant: "outline", onClick: () => _optionalChain([onInvite, 'optionalCall', _547 => _547(entry)]), children: [
17310
17496
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Send, { className: "me-2 h-4 w-4" }),
17311
17497
  t("waitlist.admin.actions.invite")
17312
17498
  ] });
@@ -17324,7 +17510,7 @@ var useWaitlistTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
17324
17510
  })
17325
17511
  };
17326
17512
  const columns = _react.useMemo.call(void 0, () => {
17327
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _542 => _542[field], 'optionalCall', _543 => _543()])).filter((col) => col !== void 0);
17513
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _548 => _548[field], 'optionalCall', _549 => _549()])).filter((col) => col !== void 0);
17328
17514
  }, [params.fields, fieldColumnMap, t]);
17329
17515
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17330
17516
  }, "useWaitlistTableStructure");
@@ -17425,11 +17611,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
17425
17611
  return params.fields.map((field) => {
17426
17612
  const localHandler = fieldColumnMap[field];
17427
17613
  if (localHandler) return localHandler();
17428
- const customHandler = _optionalChain([params, 'access', _544 => _544.context, 'optionalAccess', _545 => _545.customCells, 'optionalAccess', _546 => _546[field]]);
17614
+ const customHandler = _optionalChain([params, 'access', _550 => _550.context, 'optionalAccess', _551 => _551.customCells, 'optionalAccess', _552 => _552[field]]);
17429
17615
  if (customHandler) return customHandler({ t });
17430
17616
  return void 0;
17431
17617
  }).filter((col) => col !== void 0);
17432
- }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _547 => _547.context, 'optionalAccess', _548 => _548.customCells])]);
17618
+ }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _553 => _553.context, 'optionalAccess', _554 => _554.customCells])]);
17433
17619
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17434
17620
  }, "useContentTableStructure");
17435
17621
 
@@ -17655,14 +17841,14 @@ function useOAuthConsent(params, options) {
17655
17841
  const [error, setError] = _react.useState.call(void 0, null);
17656
17842
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
17657
17843
  const [companyId, setCompanyId] = _react.useState.call(void 0, void 0);
17658
- const contextCompanyId = _optionalChain([useCurrentUserContextOptional, 'call', _549 => _549(), 'optionalAccess', _550 => _550.company, 'optionalAccess', _551 => _551.id]);
17659
- const currentCompanyId = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _552 => _552.defaultCompanyId]), () => ( contextCompanyId));
17844
+ const contextCompanyId = _optionalChain([useCurrentUserContextOptional, 'call', _555 => _555(), 'optionalAccess', _556 => _556.company, 'optionalAccess', _557 => _557.id]);
17845
+ const currentCompanyId = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _558 => _558.defaultCompanyId]), () => ( contextCompanyId));
17660
17846
  _react.useEffect.call(void 0, () => {
17661
- const companies = _nullishCoalesce(_optionalChain([clientInfo, 'optionalAccess', _553 => _553.companies]), () => ( []));
17847
+ const companies = _nullishCoalesce(_optionalChain([clientInfo, 'optionalAccess', _559 => _559.companies]), () => ( []));
17662
17848
  if (companies.length === 0) return;
17663
17849
  if (companyId && companies.some((company) => company.id === companyId)) return;
17664
17850
  const current = currentCompanyId ? companies.find((company) => company.id === currentCompanyId) : void 0;
17665
- setCompanyId(_nullishCoalesce(_optionalChain([current, 'optionalAccess', _554 => _554.id]), () => ( _optionalChain([companies, 'access', _555 => _555[0], 'optionalAccess', _556 => _556.id]))));
17851
+ setCompanyId(_nullishCoalesce(_optionalChain([current, 'optionalAccess', _560 => _560.id]), () => ( _optionalChain([companies, 'access', _561 => _561[0], 'optionalAccess', _562 => _562.id]))));
17666
17852
  }, [clientInfo, currentCompanyId, companyId]);
17667
17853
  _react.useEffect.call(void 0, () => {
17668
17854
  const fetchInfo = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
@@ -17780,7 +17966,7 @@ function ContentTableSearch({ data }) {
17780
17966
  const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
17781
17967
  if (!isExpanded) {
17782
17968
  setIsFocused(true);
17783
- setTimeout(() => _optionalChain([inputRef, 'access', _557 => _557.current, 'optionalAccess', _558 => _558.focus, 'call', _559 => _559()]), 50);
17969
+ setTimeout(() => _optionalChain([inputRef, 'access', _563 => _563.current, 'optionalAccess', _564 => _564.focus, 'call', _565 => _565()]), 50);
17784
17970
  }
17785
17971
  }, "handleSearchIconClick");
17786
17972
  const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
@@ -17866,7 +18052,7 @@ function getGroupKeys(item, field) {
17866
18052
  return [String(_nullishCoalesce(value, () => ( "")))];
17867
18053
  }
17868
18054
  _chunk7QVYU63Ejs.__name.call(void 0, getGroupKeys, "getGroupKeys");
17869
- var isClassComponent = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (component) => typeof component === "function" && !!_optionalChain([component, 'access', _560 => _560.prototype, 'optionalAccess', _561 => _561.isReactComponent]), "isClassComponent");
18055
+ var isClassComponent = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (component) => typeof component === "function" && !!_optionalChain([component, 'access', _566 => _566.prototype, 'optionalAccess', _567 => _567.isReactComponent]), "isClassComponent");
17870
18056
  function StableCell({ render, context }) {
17871
18057
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: render(context) });
17872
18058
  }
@@ -17881,6 +18067,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, renderCell, "renderCell");
17881
18067
  var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function ContentListTable2(props) {
17882
18068
  const { data, fields, checkedIds, toggleId, allowSearch, filters: _filters, fullWidth, onRowClick } = props;
17883
18069
  const t = _nextintl.useTranslations.call(void 0, );
18070
+ const isMobile = _chunkCAKOFJZDjs.useIsMobile.call(void 0, );
17884
18071
  const [expanded, setExpanded] = _react.useState.call(void 0,
17885
18072
  props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
17886
18073
  );
@@ -17889,7 +18076,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
17889
18076
  if (data.isLoaded) setPendingDirection(null);
17890
18077
  }, [data.isLoaded]);
17891
18078
  const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
17892
- data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _562 => _562.data]), () => ( EMPTY_ARRAY)),
18079
+ data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _568 => _568.data]), () => ( EMPTY_ARRAY)),
17893
18080
  fields,
17894
18081
  checkedIds,
17895
18082
  toggleId,
@@ -17913,7 +18100,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
17913
18100
  ...props.renderExpandedRow && {
17914
18101
  getExpandedRowModel: _reacttable.getExpandedRowModel.call(void 0, ),
17915
18102
  // Key rows by record id so an expansion stays with its record when a search or filter reorders the rows.
17916
- getRowId: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (row, index) => _nullishCoalesce(_optionalChain([row, 'access', _563 => _563.jsonApiData, 'optionalAccess', _564 => _564.id]), () => ( String(index))), "getRowId"),
18103
+ getRowId: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (row, index) => _nullishCoalesce(_optionalChain([row, 'access', _569 => _569.jsonApiData, 'optionalAccess', _570 => _570.id]), () => ( String(index))), "getRowId"),
17917
18104
  getRowCanExpand: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => true, "getRowCanExpand"),
17918
18105
  onExpandedChange: setExpanded,
17919
18106
  state: { expanded }
@@ -17930,7 +18117,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
17930
18117
  });
17931
18118
  const rowModel = tableData ? table.getRowModel() : null;
17932
18119
  const groupedRows = _react.useMemo.call(void 0, () => {
17933
- if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _565 => _565.rows, 'optionalAccess', _566 => _566.length])) return null;
18120
+ if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _571 => _571.rows, 'optionalAccess', _572 => _572.length])) return null;
17934
18121
  const groupMap = /* @__PURE__ */ new Map();
17935
18122
  for (const row of rowModel.rows) {
17936
18123
  const keys = getGroupKeys(row.original, props.groupBy);
@@ -17962,108 +18149,119 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
17962
18149
  }, [props.groupBy, props.groupOrder, rowModel]);
17963
18150
  const showFooter = !props.hidePagination && !!(data.next || data.previous);
17964
18151
  const titleIsLarge = (_nullishCoalesce(props.titleSize, () => ( (fullWidth ? `lg` : `sm`)))) === `lg`;
17965
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-help": "list.table", className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkCAKOFJZDjs.cn.call(void 0, `overflow-clip`, fullWidth ? `` : `rounded-md border`), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Table, { children: [
17966
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableHeader, { className: "bg-muted font-semibold", children: [
17967
- props.title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
17968
- TableHead,
17969
- {
17970
- className: "bg-card rounded-t-lg text-primary p-4 text-start font-bold",
17971
- colSpan: tableColumns.length,
17972
- children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-x-2", children: [
17973
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
17974
- "div",
17975
- {
17976
- className: _chunkCAKOFJZDjs.cn.call(void 0,
17977
- "text-muted-foreground flex items-center gap-x-2 font-light whitespace-nowrap",
17978
- titleIsLarge ? `text-lg` : `text-sm`
17979
- ),
17980
- children: [
17981
- props.titleActions,
17982
- props.tableGeneratorType.icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
17983
- props.tableGeneratorType.icon,
17984
- {
17985
- className: _chunkCAKOFJZDjs.cn.call(void 0, `text-primary`, titleIsLarge ? `h-6 w-6` : `h-4 w-4`)
17986
- }
17987
- ),
17988
- props.title
17989
- ]
17990
- }
17991
- ) }),
17992
- (props.functions || props.filters || allowSearch) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
17993
- props.filters,
17994
- props.functions,
17995
- allowSearch !== false && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTableSearch, { data })
18152
+ const titleLabel = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
18153
+ "div",
18154
+ {
18155
+ className: _chunkCAKOFJZDjs.cn.call(void 0,
18156
+ "text-muted-foreground flex items-center gap-x-2 font-light whitespace-nowrap",
18157
+ titleIsLarge ? `text-lg` : `text-sm`
18158
+ ),
18159
+ children: [
18160
+ props.titleActions,
18161
+ props.tableGeneratorType.icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, props.tableGeneratorType.icon, { className: _chunkCAKOFJZDjs.cn.call(void 0, `text-primary`, titleIsLarge ? `h-6 w-6` : `h-4 w-4`) }),
18162
+ props.title
18163
+ ]
18164
+ }
18165
+ );
18166
+ const hasTitleControls = !!(props.functions || props.filters || allowSearch);
18167
+ const titleControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
18168
+ props.filters,
18169
+ props.functions,
18170
+ allowSearch !== false && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTableSearch, { data })
18171
+ ] });
18172
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-help": "list.table", className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkCAKOFJZDjs.cn.call(void 0, `overflow-clip`, fullWidth ? `` : `rounded-md border`), children: [
18173
+ props.title && isMobile && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
18174
+ "div",
18175
+ {
18176
+ "data-testid": "content-list-table-title-bar",
18177
+ className: "bg-card text-primary flex flex-wrap items-center gap-2 border-b p-4 font-bold",
18178
+ children: [
18179
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0", children: titleLabel }),
18180
+ hasTitleControls && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ms-auto flex flex-wrap items-center justify-end gap-2", children: titleControls })
18181
+ ]
18182
+ }
18183
+ ),
18184
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Table, { children: [
18185
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableHeader, { className: "bg-muted font-semibold", children: [
18186
+ props.title && !isMobile && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
18187
+ TableHead,
18188
+ {
18189
+ className: "bg-card rounded-t-lg text-primary p-4 text-start font-bold",
18190
+ colSpan: tableColumns.length,
18191
+ children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-x-2", children: [
18192
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: titleLabel }),
18193
+ hasTitleControls && titleControls
17996
18194
  ] })
17997
- ] })
17998
- }
17999
- ) }),
18000
- !props.hideHeader && table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
18001
- const meta = header.column.columnDef.meta;
18002
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _567 => _567.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
18003
- }) }, headerGroup.id))
18004
- ] }),
18005
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _568 => _568.rows, 'optionalAccess', _569 => _569.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
18006
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "bg-muted px-4 py-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MicroLabel, { children: _nullishCoalesce(_optionalChain([props, 'access', _570 => _570.groupLabel, 'optionalCall', _571 => _571(group.groupKey)]), () => ( group.groupKey)) }) }) }),
18007
- group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
18195
+ }
18196
+ ) }),
18197
+ !props.hideHeader && table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
18198
+ const meta = header.column.columnDef.meta;
18199
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _573 => _573.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
18200
+ }) }, headerGroup.id))
18201
+ ] }),
18202
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _574 => _574.rows, 'optionalAccess', _575 => _575.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
18203
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "bg-muted px-4 py-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MicroLabel, { children: _nullishCoalesce(_optionalChain([props, 'access', _576 => _576.groupLabel, 'optionalCall', _577 => _577(group.groupKey)]), () => ( group.groupKey)) }) }) }),
18204
+ group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
18205
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
18206
+ TableRow,
18207
+ {
18208
+ onClick: () => _optionalChain([onRowClick, 'optionalCall', _578 => _578(row.original.jsonApiData)]),
18209
+ className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
18210
+ children: row.getVisibleCells().map((cell) => {
18211
+ const meta = cell.column.columnDef.meta;
18212
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _579 => _579.className]), children: renderCell(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
18213
+ })
18214
+ }
18215
+ ),
18216
+ props.renderExpandedRow && row.getIsExpanded() && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { "data-testid": "content-list-table-expanded-row", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "bg-muted/30 px-4 py-3", children: props.renderExpandedRow(row.original.jsonApiData) }) })
18217
+ ] }, row.id))
18218
+ ] }, group.groupKey)) : rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
18008
18219
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
18009
18220
  TableRow,
18010
18221
  {
18011
- onClick: () => _optionalChain([onRowClick, 'optionalCall', _572 => _572(row.original.jsonApiData)]),
18222
+ onClick: () => _optionalChain([onRowClick, 'optionalCall', _580 => _580(row.original.jsonApiData)]),
18012
18223
  className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
18013
18224
  children: row.getVisibleCells().map((cell) => {
18014
18225
  const meta = cell.column.columnDef.meta;
18015
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _573 => _573.className]), children: renderCell(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
18226
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _581 => _581.className]), children: renderCell(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
18016
18227
  })
18017
18228
  }
18018
18229
  ),
18019
18230
  props.renderExpandedRow && row.getIsExpanded() && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { "data-testid": "content-list-table-expanded-row", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "bg-muted/30 px-4 py-3", children: props.renderExpandedRow(row.original.jsonApiData) }) })
18020
- ] }, row.id))
18021
- ] }, group.groupKey)) : rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
18022
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
18023
- TableRow,
18024
- {
18025
- onClick: () => _optionalChain([onRowClick, 'optionalCall', _574 => _574(row.original.jsonApiData)]),
18026
- className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
18027
- children: row.getVisibleCells().map((cell) => {
18028
- const meta = cell.column.columnDef.meta;
18029
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _575 => _575.className]), children: renderCell(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
18030
- })
18031
- }
18032
- ),
18033
- props.renderExpandedRow && row.getIsExpanded() && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { "data-testid": "content-list-table-expanded-row", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "bg-muted/30 px-4 py-3", children: props.renderExpandedRow(row.original.jsonApiData) }) })
18034
- ] }, row.id)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "h-24 text-center", children: _nullishCoalesce(props.emptyState, () => ( (t.has("ui.empty_states.no_results") ? t("ui.empty_states.no_results") : "No results."))) }) }) }),
18035
- 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-end", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-end space-x-2", children: [
18036
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
18037
- Button,
18038
- {
18039
- variant: "outline",
18040
- size: "sm",
18041
- onClick: (e) => {
18042
- e.preventDefault();
18043
- setPendingDirection("prev");
18044
- _optionalChain([data, 'access', _576 => _576.previous, 'optionalCall', _577 => _577(true)]);
18045
- },
18046
- disabled: !data.previous || pendingDirection !== null,
18047
- children: pendingDirection === "prev" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4 rtl:rotate-180" })
18048
- }
18049
- ),
18050
- data.pageInfo && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground text-xs", children: `${data.pageInfo.startItem}-${data.pageInfo.endItem}${data.total ? ` of ${data.total}` : ""}` }),
18051
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
18052
- Button,
18053
- {
18054
- variant: "outline",
18055
- size: "sm",
18056
- onClick: (e) => {
18057
- e.preventDefault();
18058
- setPendingDirection("next");
18059
- _optionalChain([data, 'access', _578 => _578.next, 'optionalCall', _579 => _579(true)]);
18060
- },
18061
- disabled: !data.next || pendingDirection !== null,
18062
- children: pendingDirection === "next" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4 rtl:rotate-180" })
18063
- }
18064
- )
18065
- ] }) }) }) })
18066
- ] }) }) });
18231
+ ] }, row.id)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "h-24 text-center", children: _nullishCoalesce(props.emptyState, () => ( (t.has("ui.empty_states.no_results") ? t("ui.empty_states.no_results") : "No results."))) }) }) }),
18232
+ 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-end", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-end space-x-2", children: [
18233
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
18234
+ Button,
18235
+ {
18236
+ variant: "outline",
18237
+ size: "sm",
18238
+ onClick: (e) => {
18239
+ e.preventDefault();
18240
+ setPendingDirection("prev");
18241
+ _optionalChain([data, 'access', _582 => _582.previous, 'optionalCall', _583 => _583(true)]);
18242
+ },
18243
+ disabled: !data.previous || pendingDirection !== null,
18244
+ children: pendingDirection === "prev" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4 rtl:rotate-180" })
18245
+ }
18246
+ ),
18247
+ data.pageInfo && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground text-xs", children: `${data.pageInfo.startItem}-${data.pageInfo.endItem}${data.total ? ` of ${data.total}` : ""}` }),
18248
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
18249
+ Button,
18250
+ {
18251
+ variant: "outline",
18252
+ size: "sm",
18253
+ onClick: (e) => {
18254
+ e.preventDefault();
18255
+ setPendingDirection("next");
18256
+ _optionalChain([data, 'access', _584 => _584.next, 'optionalCall', _585 => _585(true)]);
18257
+ },
18258
+ disabled: !data.next || pendingDirection !== null,
18259
+ children: pendingDirection === "next" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4 rtl:rotate-180" })
18260
+ }
18261
+ )
18262
+ ] }) }) }) })
18263
+ ] })
18264
+ ] }) });
18067
18265
  }, "ContentListTable"));
18068
18266
 
18069
18267
  // src/components/grids/ContentListGrid.tsx
@@ -18077,7 +18275,7 @@ function ContentListGrid(props) {
18077
18275
  if (!data.next || !sentinelRef.current) return;
18078
18276
  const observer = new IntersectionObserver(
18079
18277
  (entries) => {
18080
- if (_optionalChain([entries, 'access', _580 => _580[0], 'optionalAccess', _581 => _581.isIntersecting])) _optionalChain([data, 'access', _582 => _582.next, 'optionalCall', _583 => _583()]);
18278
+ if (_optionalChain([entries, 'access', _586 => _586[0], 'optionalAccess', _587 => _587.isIntersecting])) _optionalChain([data, 'access', _588 => _588.next, 'optionalCall', _589 => _589()]);
18081
18279
  },
18082
18280
  { threshold: 0.1, rootMargin: "200px" }
18083
18281
  );
@@ -18730,7 +18928,7 @@ function InnerAuthContainer() {
18730
18928
  const { activeComponent } = useAuthContext();
18731
18929
  if (activeComponent === null)
18732
18930
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "max-w-sm", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: "/logo.webp", alt: "Logo", width: 100, height: 100, className: "animate-spin-slow", priority: true }) });
18733
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { className: "w-full max-w-md", children: activeComponent });
18931
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { className: "w-full max-w-md max-md:[&_[data-slot=button]:not([data-size])]:h-10 max-md:[&_[data-slot=input-group-control]]:h-full max-md:[&_[data-slot=input-group]]:h-10 max-md:[&_[data-slot=input]]:h-10", children: activeComponent });
18734
18932
  }
18735
18933
  _chunk7QVYU63Ejs.__name.call(void 0, InnerAuthContainer, "InnerAuthContainer");
18736
18934
 
@@ -18864,7 +19062,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
18864
19062
  newDigits[index] = digit;
18865
19063
  setDigits(newDigits);
18866
19064
  if (digit && index < 5) {
18867
- _optionalChain([inputRefs, 'access', _584 => _584.current, 'access', _585 => _585[index + 1], 'optionalAccess', _586 => _586.focus, 'call', _587 => _587()]);
19065
+ _optionalChain([inputRefs, 'access', _590 => _590.current, 'access', _591 => _591[index + 1], 'optionalAccess', _592 => _592.focus, 'call', _593 => _593()]);
18868
19066
  }
18869
19067
  const code = newDigits.join("");
18870
19068
  if (code.length === 6 && newDigits.every((d) => d !== "")) {
@@ -18873,7 +19071,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
18873
19071
  }, "handleChange");
18874
19072
  const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
18875
19073
  if (e.key === "Backspace" && !digits[index] && index > 0) {
18876
- _optionalChain([inputRefs, 'access', _588 => _588.current, 'access', _589 => _589[index - 1], 'optionalAccess', _590 => _590.focus, 'call', _591 => _591()]);
19074
+ _optionalChain([inputRefs, 'access', _594 => _594.current, 'access', _595 => _595[index - 1], 'optionalAccess', _596 => _596.focus, 'call', _597 => _597()]);
18877
19075
  }
18878
19076
  }, "handleKeyDown");
18879
19077
  const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
@@ -18882,7 +19080,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
18882
19080
  if (pastedData.length === 6) {
18883
19081
  const newDigits = pastedData.split("");
18884
19082
  setDigits(newDigits);
18885
- _optionalChain([inputRefs, 'access', _592 => _592.current, 'access', _593 => _593[5], 'optionalAccess', _594 => _594.focus, 'call', _595 => _595()]);
19083
+ _optionalChain([inputRefs, 'access', _598 => _598.current, 'access', _599 => _599[5], 'optionalAccess', _600 => _600.focus, 'call', _601 => _601()]);
18886
19084
  onComplete(pastedData);
18887
19085
  }
18888
19086
  }, "handlePaste");
@@ -19093,8 +19291,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
19093
19291
  try {
19094
19292
  const registrationData = await _chunkCAKOFJZDjs.TwoFactorService.getPasskeyRegistrationOptions({
19095
19293
  id: _uuid.v4.call(void 0, ),
19096
- userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _596 => _596.email]), () => ( "")),
19097
- userDisplayName: _optionalChain([currentUser, 'optionalAccess', _597 => _597.name])
19294
+ userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _602 => _602.email]), () => ( "")),
19295
+ userDisplayName: _optionalChain([currentUser, 'optionalAccess', _603 => _603.name])
19098
19296
  });
19099
19297
  const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
19100
19298
  await _chunkCAKOFJZDjs.TwoFactorService.verifyPasskeyRegistration({
@@ -19245,7 +19443,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
19245
19443
  const setup = await _chunkCAKOFJZDjs.TwoFactorService.setupTotp({
19246
19444
  id: _uuid.v4.call(void 0, ),
19247
19445
  name: name.trim(),
19248
- accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _598 => _598.email]), () => ( ""))
19446
+ accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _604 => _604.email]), () => ( ""))
19249
19447
  });
19250
19448
  setQrCodeUri(setup.qrCodeUri);
19251
19449
  setAuthenticatorId(setup.authenticatorId);
@@ -19379,7 +19577,7 @@ function TwoFactorSettings() {
19379
19577
  if (isLoading) {
19380
19578
  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") }) }) });
19381
19579
  }
19382
- const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _599 => _599.isEnabled]), () => ( false));
19580
+ const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _605 => _605.isEnabled]), () => ( false));
19383
19581
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
19384
19582
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
19385
19583
  isEnabled ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ShieldCheck, { className: "text-success h-6 w-6" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ShieldAlert, { className: "text-warning h-6 w-6" }),
@@ -19417,7 +19615,7 @@ function TwoFactorSettings() {
19417
19615
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
19418
19616
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
19419
19617
  ] }),
19420
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _600 => _600.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
19618
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _606 => _606.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
19421
19619
  ] }) }),
19422
19620
  !isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
19423
19621
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
@@ -19595,9 +19793,9 @@ function AcceptInvitation() {
19595
19793
  });
19596
19794
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
19597
19795
  try {
19598
- if (!_optionalChain([params, 'optionalAccess', _601 => _601.code])) return;
19796
+ if (!_optionalChain([params, 'optionalAccess', _607 => _607.code])) return;
19599
19797
  const payload = {
19600
- code: _optionalChain([params, 'optionalAccess', _602 => _602.code]),
19798
+ code: _optionalChain([params, 'optionalAccess', _608 => _608.code]),
19601
19799
  password: values.password
19602
19800
  };
19603
19801
  await _chunkCAKOFJZDjs.AuthService.acceptInvitation(payload);
@@ -19968,14 +20166,14 @@ function RefreshUser() {
19968
20166
  setUser(fullUser);
19969
20167
  const token = {
19970
20168
  userId: fullUser.id,
19971
- companyId: _optionalChain([fullUser, 'access', _603 => _603.company, 'optionalAccess', _604 => _604.id]),
20169
+ companyId: _optionalChain([fullUser, 'access', _609 => _609.company, 'optionalAccess', _610 => _610.id]),
19972
20170
  roles: fullUser.roles.map((role) => role.id),
19973
- features: _nullishCoalesce(_optionalChain([fullUser, 'access', _605 => _605.company, 'optionalAccess', _606 => _606.features, 'optionalAccess', _607 => _607.map, 'call', _608 => _608((feature) => feature.id)]), () => ( [])),
20171
+ features: _nullishCoalesce(_optionalChain([fullUser, 'access', _611 => _611.company, 'optionalAccess', _612 => _612.features, 'optionalAccess', _613 => _613.map, 'call', _614 => _614((feature) => feature.id)]), () => ( [])),
19974
20172
  modules: fullUser.modules.map((module) => {
19975
20173
  return { id: module.id, permissions: module.permissions };
19976
20174
  })
19977
20175
  };
19978
- await _optionalChain([_chunkCAKOFJZDjs.getTokenHandler.call(void 0, ), 'optionalAccess', _609 => _609.updateToken, 'call', _610 => _610(token)]);
20176
+ await _optionalChain([_chunkCAKOFJZDjs.getTokenHandler.call(void 0, ), 'optionalAccess', _615 => _615.updateToken, 'call', _616 => _616(token)]);
19979
20177
  _cookiesnext.deleteCookie.call(void 0, "reloadData");
19980
20178
  }
19981
20179
  }, "loadFullUser");
@@ -20039,9 +20237,9 @@ function ResetPassword() {
20039
20237
  });
20040
20238
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
20041
20239
  try {
20042
- if (!_optionalChain([params, 'optionalAccess', _611 => _611.code])) return;
20240
+ if (!_optionalChain([params, 'optionalAccess', _617 => _617.code])) return;
20043
20241
  const payload = {
20044
- code: _optionalChain([params, 'optionalAccess', _612 => _612.code]),
20242
+ code: _optionalChain([params, 'optionalAccess', _618 => _618.code]),
20045
20243
  password: values.password
20046
20244
  };
20047
20245
  await _chunkCAKOFJZDjs.AuthService.resetPassword(payload);
@@ -20576,7 +20774,7 @@ function AiConnectionEditor({
20576
20774
  const registryRows = _react.useMemo.call(void 0, () => _nullishCoalesce(providerRegistry[connectionType], () => ( [])), [providerRegistry, connectionType]);
20577
20775
  const providers = _react.useMemo.call(void 0, () => registryRows.map((row) => row.provider), [registryRows]);
20578
20776
  const fieldsFor = _react.useCallback.call(void 0,
20579
- (provider) => _nullishCoalesce(_optionalChain([registryRows, 'access', _613 => _613.find, 'call', _614 => _614((row) => row.provider === provider), 'optionalAccess', _615 => _615.fields]), () => ( [])),
20777
+ (provider) => _nullishCoalesce(_optionalChain([registryRows, 'access', _619 => _619.find, 'call', _620 => _620((row) => row.provider === provider), 'optionalAccess', _621 => _621.fields]), () => ( [])),
20580
20778
  [registryRows]
20581
20779
  );
20582
20780
  const defaultsFor = _react.useCallback.call(void 0,
@@ -20585,7 +20783,7 @@ function AiConnectionEditor({
20585
20783
  const seeded = {};
20586
20784
  fieldsFor(provider).forEach((descriptor) => {
20587
20785
  if (descriptor.kind === "boolean") {
20588
- const current2 = _optionalChain([stored, 'optionalAccess', _616 => _616[descriptor.field]]);
20786
+ const current2 = _optionalChain([stored, 'optionalAccess', _622 => _622[descriptor.field]]);
20589
20787
  seeded[descriptor.field] = current2 !== void 0 && current2 !== null ? current2 === true : descriptor.default === true;
20590
20788
  return;
20591
20789
  }
@@ -20593,7 +20791,7 @@ function AiConnectionEditor({
20593
20791
  seeded[descriptor.field] = "";
20594
20792
  return;
20595
20793
  }
20596
- const current = _optionalChain([stored, 'optionalAccess', _617 => _617[descriptor.field]]);
20794
+ const current = _optionalChain([stored, 'optionalAccess', _623 => _623[descriptor.field]]);
20597
20795
  if (current !== void 0 && current !== null) seeded[descriptor.field] = String(current);
20598
20796
  else seeded[descriptor.field] = descriptor.default !== void 0 ? String(descriptor.default) : "";
20599
20797
  });
@@ -20619,7 +20817,7 @@ function AiConnectionEditor({
20619
20817
  values: _zod3.z.record(_zod3.z.string(), _zod3.z.any())
20620
20818
  }).superRefine((data, ctx) => {
20621
20819
  fieldsFor(data.provider).filter((descriptor) => descriptor.required).forEach((descriptor) => {
20622
- const value = _optionalChain([data, 'access', _618 => _618.values, 'optionalAccess', _619 => _619[descriptor.field]]);
20820
+ const value = _optionalChain([data, 'access', _624 => _624.values, 'optionalAccess', _625 => _625[descriptor.field]]);
20623
20821
  const filled = descriptor.kind === "secret" ? !!value || hasStoredSecret(descriptor.field) : descriptor.kind === "boolean" ? value !== void 0 : value !== void 0 && value !== null && String(value).trim() !== "";
20624
20822
  if (filled) return;
20625
20823
  ctx.addIssue({
@@ -20633,11 +20831,11 @@ function AiConnectionEditor({
20633
20831
  );
20634
20832
  const getDefaultValues = _react.useCallback.call(void 0,
20635
20833
  () => ({
20636
- id: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _620 => _620.id]), () => ( _uuid.v4.call(void 0, ))),
20637
- name: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _621 => _621.name]), () => ( "")),
20638
- provider: _nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _622 => _622.provider]), () => ( providers[0])), () => ( "")),
20639
- enabled: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _623 => _623.enabled]), () => ( true)),
20640
- values: defaultsFor(_nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _624 => _624.provider]), () => ( providers[0])), () => ( "")))
20834
+ id: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _626 => _626.id]), () => ( _uuid.v4.call(void 0, ))),
20835
+ name: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _627 => _627.name]), () => ( "")),
20836
+ provider: _nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _628 => _628.provider]), () => ( providers[0])), () => ( "")),
20837
+ enabled: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _629 => _629.enabled]), () => ( true)),
20838
+ values: defaultsFor(_nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _630 => _630.provider]), () => ( providers[0])), () => ( "")))
20641
20839
  }),
20642
20840
  [connection, providers, defaultsFor]
20643
20841
  );
@@ -20648,7 +20846,7 @@ function AiConnectionEditor({
20648
20846
  _react.useEffect.call(void 0, () => {
20649
20847
  if (registryRows.length === 0) return;
20650
20848
  const currentProvider = form.getValues("provider");
20651
- const provider = currentProvider || _optionalChain([connection, 'optionalAccess', _625 => _625.provider]) || providers[0] || "";
20849
+ const provider = currentProvider || _optionalChain([connection, 'optionalAccess', _631 => _631.provider]) || providers[0] || "";
20652
20850
  if (!provider) return;
20653
20851
  if (provider !== currentProvider) form.setValue("provider", provider);
20654
20852
  const currentValues = form.getValues("values");
@@ -20719,7 +20917,7 @@ function AiConnectionEditor({
20719
20917
  {
20720
20918
  form,
20721
20919
  entityType: t("ai_connections.admin.entity"),
20722
- entityName: _optionalChain([connection, 'optionalAccess', _626 => _626.name]),
20920
+ entityName: _optionalChain([connection, 'optionalAccess', _632 => _632.name]),
20723
20921
  isEdit,
20724
20922
  module: _chunkCAKOFJZDjs.Modules.AiConnection,
20725
20923
  size: "md",
@@ -20727,7 +20925,7 @@ function AiConnectionEditor({
20727
20925
  onSubmit: async (values) => {
20728
20926
  const attributes = {};
20729
20927
  fieldsFor(values.provider).forEach((descriptor) => {
20730
- const coerced = coerce(descriptor, _optionalChain([values, 'access', _627 => _627.values, 'optionalAccess', _628 => _628[descriptor.field]]));
20928
+ const coerced = coerce(descriptor, _optionalChain([values, 'access', _633 => _633.values, 'optionalAccess', _634 => _634[descriptor.field]]));
20731
20929
  if (coerced !== void 0) attributes[descriptor.field] = coerced;
20732
20930
  });
20733
20931
  const payload = {
@@ -20957,7 +21155,7 @@ function AiConnectionTypeCard({ connectionType }) {
20957
21155
  ),
20958
21156
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-muted/40 flex flex-wrap items-center gap-2 px-3 py-2", children: [
20959
21157
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softGray", children: t("ai_connections.admin.env_fallback") }),
20960
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground truncate text-xs", children: [_optionalChain([envDefault, 'optionalAccess', _629 => _629.provider]), _optionalChain([envDefault, 'optionalAccess', _630 => _630.model]), _optionalChain([envDefault, 'optionalAccess', _631 => _631.url])].filter(Boolean).join(" \xB7 ") })
21158
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground truncate text-xs", children: [_optionalChain([envDefault, 'optionalAccess', _635 => _635.provider]), _optionalChain([envDefault, 'optionalAccess', _636 => _636.model]), _optionalChain([envDefault, 'optionalAccess', _637 => _637.url])].filter(Boolean).join(" \xB7 ") })
20961
21159
  ] })
20962
21160
  ] })
20963
21161
  ] })
@@ -21155,7 +21353,7 @@ function extractHeadings(blocks) {
21155
21353
  function processBlocks(blockArray) {
21156
21354
  for (const block of blockArray) {
21157
21355
  if (block.type === "heading") {
21158
- const level = _optionalChain([block, 'access', _632 => _632.props, 'optionalAccess', _633 => _633.level]) || 1;
21356
+ const level = _optionalChain([block, 'access', _638 => _638.props, 'optionalAccess', _639 => _639.level]) || 1;
21159
21357
  const text = extractTextFromContent(block.content);
21160
21358
  if (text.trim()) {
21161
21359
  headings.push({
@@ -21497,7 +21695,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
21497
21695
  })
21498
21696
  };
21499
21697
  const columns = _react.useMemo.call(void 0, () => {
21500
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _634 => _634[field], 'optionalCall', _635 => _635()])).filter((col) => col !== void 0);
21698
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _640 => _640[field], 'optionalCall', _641 => _641()])).filter((col) => col !== void 0);
21501
21699
  }, [params.fields, fieldColumnMap, t, generateUrl]);
21502
21700
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
21503
21701
  }, "useHowToTableStructure");
@@ -21623,7 +21821,7 @@ function HowToSelector({
21623
21821
  }, "setHowTo");
21624
21822
  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: [
21625
21823
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
21626
- /* @__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', _636 => _636.value, 'optionalAccess', _637 => _637.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 }) }))) }) }) }),
21824
+ /* @__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', _642 => _642.value, 'optionalAccess', _643 => _643.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 }) }))) }) }) }),
21627
21825
  field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
21628
21826
  _lucidereact.CircleX,
21629
21827
  {
@@ -21788,7 +21986,7 @@ function AssistantComposer({
21788
21986
  textarea,
21789
21987
  sendButton
21790
21988
  ] }),
21791
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground text-end text-xs", children: t("features.assistant.keyboard_hint") })
21989
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground text-end text-xs max-md:hidden", children: t("features.assistant.keyboard_hint") })
21792
21990
  ] });
21793
21991
  }
21794
21992
  _chunk7QVYU63Ejs.__name.call(void 0, AssistantComposer, "AssistantComposer");
@@ -21906,6 +22104,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, RelevanceMeter, "RelevanceMeter");
21906
22104
  function CitationsTab({ citations, sources }) {
21907
22105
  const t = _nextintl.useTranslations.call(void 0, );
21908
22106
  const entityLabel = useEntityLabel();
22107
+ const isMobile = _chunkCAKOFJZDjs.useIsMobile.call(void 0, );
21909
22108
  const [expanded, setExpanded] = _react.useState.call(void 0, /* @__PURE__ */ new Set());
21910
22109
  if (citations.length === 0) return null;
21911
22110
  const sorted = [...citations].sort((a, b) => (_nullishCoalesce(b.relevance, () => ( 0))) - (_nullishCoalesce(a.relevance, () => ( 0))));
@@ -21920,14 +22119,14 @@ function CitationsTab({ citations, sources }) {
21920
22119
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Table, { className: "table-fixed", children: [
21921
22120
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
21922
22121
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { children: t("features.assistant.message.sources.source") }),
21923
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: "w-28 text-center", children: t("features.assistant.message.sources.relevance") })
22122
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: "w-28 text-center max-md:w-20", children: t("features.assistant.message.sources.relevance") })
21924
22123
  ] }) }),
21925
22124
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
21926
22125
  const isOpen = expanded.has(chunk.id);
21927
- const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _638 => _638.get, 'call', _639 => _639(chunk.nodeId)]) : void 0;
22126
+ const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _644 => _644.get, 'call', _645 => _645(chunk.nodeId)]) : void 0;
21928
22127
  const typeLabel = chunk.nodeType ? entityLabel(chunk.nodeType) : t("features.assistant.message.sources.source");
21929
22128
  const fallbackName = chunk.nodeId ? `${typeLabel} ${chunk.nodeId.slice(0, 8)}` : typeLabel;
21930
- const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _640 => _640.name]), () => ( fallbackName));
22129
+ const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _646 => _646.name]), () => ( fallbackName));
21931
22130
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
21932
22131
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
21933
22132
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -21945,16 +22144,33 @@ function CitationsTab({ citations, sources }) {
21945
22144
  "aria-expanded": isOpen,
21946
22145
  className: "flex w-full cursor-pointer items-center justify-start gap-x-2",
21947
22146
  children: [
21948
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDown, { className: _chunkCAKOFJZDjs.cn.call(void 0, "h-4 w-4 transition-transform", !isOpen && "-rotate-90") }),
21949
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-semibold", children: sourceName }),
21950
- chunk.reason && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
22147
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
22148
+ _lucidereact.ChevronDown,
22149
+ {
22150
+ className: _chunkCAKOFJZDjs.cn.call(void 0, "h-4 w-4 transition-transform max-md:shrink-0", !isOpen && "-rotate-90")
22151
+ }
22152
+ ),
22153
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-semibold max-md:min-w-0 max-md:truncate", children: sourceName }),
22154
+ chunk.reason && isMobile && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { children: [
22155
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
22156
+ PopoverTrigger,
22157
+ {
22158
+ "aria-label": chunk.reason,
22159
+ onClick: (e) => e.stopPropagation(),
22160
+ className: "text-muted-foreground -m-2 inline-flex shrink-0 p-2",
22161
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.HelpCircle, { className: "h-3.5 w-3.5" })
22162
+ }
22163
+ ),
22164
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className: "max-w-64 text-xs", children: chunk.reason })
22165
+ ] }),
22166
+ chunk.reason && !isMobile && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
21951
22167
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { className: "text-muted-foreground inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.HelpCircle, { className: "h-3.5 w-3.5" }) }),
21952
22168
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { className: "max-w-64 text-xs", children: chunk.reason })
21953
22169
  ] })
21954
22170
  ]
21955
22171
  }
21956
22172
  ) }),
21957
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: "text-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RelevanceMeter, { value: _nullishCoalesce(chunk.relevance, () => ( 0)) }) })
22173
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: "text-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RelevanceMeter, { value: _nullishCoalesce(chunk.relevance, () => ( 0)), className: "max-md:w-16" }) })
21958
22174
  ] }),
21959
22175
  isOpen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: 2, className: "w-full max-w-0 border-t-0 p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-card w-full min-w-0 rounded border p-4 text-sm break-words whitespace-pre-wrap [overflow-wrap:anywhere] [&_pre]:overflow-x-auto [&_table]:block [&_table]:overflow-x-auto", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactmarkdown2.default, { remarkPlugins: [_remarkgfm2.default], children: chunk.content }) }) }) })
21960
22176
  ] }, chunk.id);
@@ -21974,7 +22190,7 @@ function ContentsTab({ citations, sources }) {
21974
22190
  for (const c of citations) {
21975
22191
  const id = c.nodeId;
21976
22192
  if (!id) continue;
21977
- const source = _optionalChain([sources, 'optionalAccess', _641 => _641.get, 'call', _642 => _642(id)]);
22193
+ const source = _optionalChain([sources, 'optionalAccess', _647 => _647.get, 'call', _648 => _648(id)]);
21978
22194
  if (!source) continue;
21979
22195
  const existing = map.get(id);
21980
22196
  if (existing) {
@@ -22041,7 +22257,7 @@ function UsersTab({ users, citations, sources }) {
22041
22257
  const generate = usePageUrlGenerator();
22042
22258
  const userMap = /* @__PURE__ */ new Map();
22043
22259
  for (const u of users) {
22044
- if (!_optionalChain([u, 'optionalAccess', _643 => _643.id])) continue;
22260
+ if (!_optionalChain([u, 'optionalAccess', _649 => _649.id])) continue;
22045
22261
  userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
22046
22262
  }
22047
22263
  if (citations && sources) {
@@ -22146,7 +22362,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
22146
22362
  }
22147
22363
  return ids.size;
22148
22364
  }, [message.citations, sources]);
22149
- const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _644 => _644.length]), () => ( 0));
22365
+ const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _650 => _650.length]), () => ( 0));
22150
22366
  const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
22151
22367
  const visibleTabs = [];
22152
22368
  if (suggestionsCount > 0) visibleTabs.push("suggested");
@@ -22289,7 +22505,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
22289
22505
  return void 0;
22290
22506
  }
22291
22507
  })()));
22292
- if (_optionalChain([author, 'optionalAccess', _645 => _645.id])) userMap.set(author.id, author);
22508
+ if (_optionalChain([author, 'optionalAccess', _651 => _651.id])) userMap.set(author.id, author);
22293
22509
  }
22294
22510
  return Array.from(userMap.values());
22295
22511
  }, [resolved]);
@@ -22324,7 +22540,7 @@ function MessageItem({
22324
22540
  }) {
22325
22541
  const t = _nextintl.useTranslations.call(void 0, );
22326
22542
  const isUser = message.role === "user";
22327
- const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _646 => _646.has, 'call', _647 => _647(message.id)]);
22543
+ const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _652 => _652.has, 'call', _653 => _653(message.id)]);
22328
22544
  const markdownComponents = _react.useMemo.call(void 0,
22329
22545
  () => ({
22330
22546
  a: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ href, children }) => {
@@ -22337,16 +22553,16 @@ function MessageItem({
22337
22553
  );
22338
22554
  if (isUser) {
22339
22555
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-end gap-1", children: [
22340
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-primary text-primary-foreground max-w-[72%] rounded-2xl rounded-ee-sm px-3.5 py-2 text-sm [&_a]:text-primary-foreground [&_a]:font-semibold [&_p]:m-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactmarkdown2.default, { remarkPlugins: [_remarkgfm2.default], urlTransform: mentionUrlTransform, components: markdownComponents, children: message.content }) }),
22556
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-primary text-primary-foreground max-w-[72%] max-md:max-w-[92%] rounded-2xl rounded-ee-sm px-3.5 py-2 text-sm [&_a]:text-primary-foreground [&_a]:font-semibold [&_p]:m-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactmarkdown2.default, { remarkPlugins: [_remarkgfm2.default], urlTransform: mentionUrlTransform, components: markdownComponents, children: message.content }) }),
22341
22557
  isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
22342
22558
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
22343
22559
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.send_failed") }),
22344
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall', _648 => _648(message.id)]), children: t("features.assistant.retry") })
22560
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall', _654 => _654(message.id)]), children: t("features.assistant.retry") })
22345
22561
  ] })
22346
22562
  ] });
22347
22563
  }
22348
22564
  const isApprovalRequest = message.messageType === "approval-request" && !!renderApprovalAction;
22349
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 max-w-[78%] flex-col gap-1.5", children: [
22565
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 max-w-[78%] max-md:max-w-[92%] flex-col gap-1.5", children: [
22350
22566
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground flex items-center gap-2 ps-1 text-xs", children: [
22351
22567
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-4 w-4 items-center justify-center rounded-full bg-gradient-to-br from-blue-400 to-violet-500 text-white", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Sparkles, { className: "h-2.5 w-2.5" }) }),
22352
22568
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.agent_name") })
@@ -22432,7 +22648,7 @@ function AssistantThread({
22432
22648
  }) {
22433
22649
  const lastMessageRef = _react.useRef.call(void 0, null);
22434
22650
  _react.useEffect.call(void 0, () => {
22435
- _optionalChain([lastMessageRef, 'access', _649 => _649.current, 'optionalAccess', _650 => _650.scrollIntoView, 'call', _651 => _651({ block: "start", behavior: "smooth" })]);
22651
+ _optionalChain([lastMessageRef, 'access', _655 => _655.current, 'optionalAccess', _656 => _656.scrollIntoView, 'call', _657 => _657({ block: "start", behavior: "smooth" })]);
22436
22652
  }, [messages.length, sending]);
22437
22653
  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: [
22438
22654
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -22471,7 +22687,7 @@ ${message.sources.map((source) => `- \`${source}\``).join("\n")}`;
22471
22687
  return _chunkCAKOFJZDjs.rehydrate.call(void 0, _chunkCAKOFJZDjs.Modules.HandbookThreadMessage, {
22472
22688
  jsonApi: {
22473
22689
  ...dehydrated.jsonApi,
22474
- attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _652 => _652.jsonApi, 'optionalAccess', _653 => _653.attributes]), () => ( {})), content }
22690
+ attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _658 => _658.jsonApi, 'optionalAccess', _659 => _659.attributes]), () => ( {})), content }
22475
22691
  },
22476
22692
  included: dehydrated.included
22477
22693
  });
@@ -22480,8 +22696,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, withSourcesInContent, "withSourcesInContent
22480
22696
  function useHandbookAsk(params) {
22481
22697
  const t = _nextintl.useTranslations.call(void 0, );
22482
22698
  const generateUrl = usePageUrlGenerator();
22483
- const shouldSyncUrl = _nullishCoalesce(_optionalChain([params, 'optionalAccess', _654 => _654.syncUrl]), () => ( true));
22484
- const handbookThreadId = _optionalChain([params, 'optionalAccess', _655 => _655.handbookThreadId]);
22699
+ const shouldSyncUrl = _nullishCoalesce(_optionalChain([params, 'optionalAccess', _660 => _660.syncUrl]), () => ( true));
22700
+ const handbookThreadId = _optionalChain([params, 'optionalAccess', _661 => _661.handbookThreadId]);
22485
22701
  const [threads, setThreads] = _react.useState.call(void 0, []);
22486
22702
  const [thread, setThread] = _react.useState.call(void 0, void 0);
22487
22703
  const [messages, setMessages] = _react.useState.call(void 0, []);
@@ -22543,12 +22759,12 @@ function useHandbookAsk(params) {
22543
22759
  ]);
22544
22760
  setSending(true);
22545
22761
  try {
22546
- let id = _optionalChain([thread, 'optionalAccess', _656 => _656.id]);
22762
+ let id = _optionalChain([thread, 'optionalAccess', _662 => _662.id]);
22547
22763
  if (id === void 0) {
22548
22764
  const created = await _chunkCAKOFJZDjs.HandbookThreadService.create({
22549
22765
  id: _uuid.v4.call(void 0, ),
22550
22766
  question: trimmed,
22551
- handbookPageId: _optionalChain([options, 'optionalAccess', _657 => _657.handbookPageId])
22767
+ handbookPageId: _optionalChain([options, 'optionalAccess', _663 => _663.handbookPageId])
22552
22768
  });
22553
22769
  id = created.id;
22554
22770
  setThreads((current) => [created, ...current]);
@@ -22557,7 +22773,7 @@ function useHandbookAsk(params) {
22557
22773
  id: _uuid.v4.call(void 0, ),
22558
22774
  threadId: id,
22559
22775
  question: trimmed,
22560
- handbookPageId: _optionalChain([options, 'optionalAccess', _658 => _658.handbookPageId])
22776
+ handbookPageId: _optionalChain([options, 'optionalAccess', _664 => _664.handbookPageId])
22561
22777
  });
22562
22778
  }
22563
22779
  const loaded = await _chunkCAKOFJZDjs.HandbookThreadService.findOne({ id });
@@ -22578,7 +22794,7 @@ function useHandbookAsk(params) {
22578
22794
  setSending(false);
22579
22795
  }
22580
22796
  },
22581
- [messages.length, sending, syncUrl, t, _optionalChain([thread, 'optionalAccess', _659 => _659.id])]
22797
+ [messages.length, sending, syncUrl, t, _optionalChain([thread, 'optionalAccess', _665 => _665.id])]
22582
22798
  );
22583
22799
  return { threads, thread, messages, sending, ask, selectThread, startNew };
22584
22800
  }
@@ -23134,7 +23350,7 @@ function HandbookPageContainer({ handbookPageId }) {
23134
23350
  };
23135
23351
  }, []);
23136
23352
  const section = _react.useMemo.call(void 0,
23137
- () => sections.find((candidate) => candidate.key === _optionalChain([handbookPage, 'optionalAccess', _660 => _660.section])),
23353
+ () => sections.find((candidate) => candidate.key === _optionalChain([handbookPage, 'optionalAccess', _666 => _666.section])),
23138
23354
  [sections, handbookPage]
23139
23355
  );
23140
23356
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -23223,7 +23439,7 @@ function AssistantSidebar({
23223
23439
  className: "block w-full truncate rounded-md px-2 py-1.5 text-start text-sm " + (activeId === thread.id ? "bg-primary/10 text-primary" : "hover:bg-muted text-foreground"),
23224
23440
  children: [
23225
23441
  thread.title,
23226
- _optionalChain([renderThreadBadge, 'optionalCall', _661 => _661(thread)])
23442
+ _optionalChain([renderThreadBadge, 'optionalCall', _667 => _667(thread)])
23227
23443
  ]
23228
23444
  },
23229
23445
  thread.id
@@ -23259,7 +23475,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
23259
23475
  AssistantSidebar,
23260
23476
  {
23261
23477
  threads,
23262
- activeId: _optionalChain([thread, 'optionalAccess', _662 => _662.id]),
23478
+ activeId: _optionalChain([thread, 'optionalAccess', _668 => _668.id]),
23263
23479
  onSelect: selectThread,
23264
23480
  onNew: startNew,
23265
23481
  newLabel: t("handbook.chat.new"),
@@ -23267,7 +23483,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
23267
23483
  }
23268
23484
  ) })
23269
23485
  ),
23270
- [selectThread, startNew, t, _optionalChain([thread, 'optionalAccess', _663 => _663.id]), threads]
23486
+ [selectThread, startNew, t, _optionalChain([thread, 'optionalAccess', _669 => _669.id]), threads]
23271
23487
  );
23272
23488
  return (
23273
23489
  // `RoundPageContainer` reads the page heading from the shared context, and
@@ -23279,7 +23495,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
23279
23495
  RoundPageContainer,
23280
23496
  {
23281
23497
  module: _chunkCAKOFJZDjs.Modules.HandbookPage,
23282
- id: _optionalChain([thread, 'optionalAccess', _664 => _664.id]),
23498
+ id: _optionalChain([thread, 'optionalAccess', _670 => _670.id]),
23283
23499
  fullWidth: true,
23284
23500
  forceHeader: true,
23285
23501
  defaultDetailsOpen: true,
@@ -23331,7 +23547,7 @@ function EntityMentionLinkView({ type, id, alias }) {
23331
23547
  } catch (e25) {
23332
23548
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: alias });
23333
23549
  }
23334
- if (!_optionalChain([module, 'optionalAccess', _665 => _665.pageUrl])) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: alias });
23550
+ if (!_optionalChain([module, 'optionalAccess', _671 => _671.pageUrl])) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: alias });
23335
23551
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generate({ page: module, id }), children: alias });
23336
23552
  }
23337
23553
  _chunk7QVYU63Ejs.__name.call(void 0, EntityMentionLinkView, "EntityMentionLinkView");
@@ -23463,13 +23679,13 @@ function AssistantContainer({
23463
23679
  AssistantSidebar,
23464
23680
  {
23465
23681
  threads: ctx.threads,
23466
- activeId: _optionalChain([ctx, 'access', _666 => _666.assistant, 'optionalAccess', _667 => _667.id]),
23682
+ activeId: _optionalChain([ctx, 'access', _672 => _672.assistant, 'optionalAccess', _673 => _673.id]),
23467
23683
  onSelect: ctx.selectThread,
23468
23684
  renderThreadBadge
23469
23685
  }
23470
23686
  ) })
23471
23687
  ),
23472
- [ctx.threads, _optionalChain([ctx, 'access', _668 => _668.assistant, 'optionalAccess', _669 => _669.id]), ctx.selectThread, renderThreadBadge]
23688
+ [ctx.threads, _optionalChain([ctx, 'access', _674 => _674.assistant, 'optionalAccess', _675 => _675.id]), ctx.selectThread, renderThreadBadge]
23473
23689
  );
23474
23690
  const thread = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: !showThread ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
23475
23691
  AssistantEmptyState,
@@ -23477,7 +23693,7 @@ function AssistantContainer({
23477
23693
  onSend: ctx.sendMessage,
23478
23694
  operatorMode: ctx.operatorMode,
23479
23695
  onOperatorModeChange: showOperatorToggle ? ctx.setOperatorMode : void 0,
23480
- composerLeading: _optionalChain([renderScopePicker, 'optionalCall', _670 => _670()])
23696
+ composerLeading: _optionalChain([renderScopePicker, 'optionalCall', _676 => _676()])
23481
23697
  }
23482
23698
  ) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
23483
23699
  ctx.assistant ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -23509,7 +23725,7 @@ function AssistantContainer({
23509
23725
  AssistantSidebar,
23510
23726
  {
23511
23727
  threads: ctx.threads,
23512
- activeId: _optionalChain([ctx, 'access', _671 => _671.assistant, 'optionalAccess', _672 => _672.id]),
23728
+ activeId: _optionalChain([ctx, 'access', _677 => _677.assistant, 'optionalAccess', _678 => _678.id]),
23513
23729
  onSelect: ctx.selectThread,
23514
23730
  onNew: ctx.startNew,
23515
23731
  renderThreadBadge
@@ -23522,7 +23738,7 @@ function AssistantContainer({
23522
23738
  RoundPageContainer,
23523
23739
  {
23524
23740
  module: _chunkCAKOFJZDjs.Modules.Assistant,
23525
- id: _optionalChain([ctx, 'access', _673 => _673.assistant, 'optionalAccess', _674 => _674.id]),
23741
+ id: _optionalChain([ctx, 'access', _679 => _679.assistant, 'optionalAccess', _680 => _680.id]),
23526
23742
  fullWidth: true,
23527
23743
  forceHeader: true,
23528
23744
  defaultDetailsOpen: true,
@@ -23550,7 +23766,7 @@ function flattenBlocks(blocks) {
23550
23766
  if (typeof inline === "string") return inline;
23551
23767
  if (!inline || typeof inline !== "object") return "";
23552
23768
  const node = inline;
23553
- if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access', _675 => _675.props, 'optionalAccess', _676 => _676.alias]), () => ( ""));
23769
+ if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access', _681 => _681.props, 'optionalAccess', _682 => _682.alias]), () => ( ""));
23554
23770
  if (typeof node.text === "string") return node.text;
23555
23771
  if (Array.isArray(node.content)) return node.content.map(readInline).join("");
23556
23772
  return "";
@@ -23629,7 +23845,7 @@ function AssistantBlockNoteComposer({
23629
23845
  t("features.assistant.send")
23630
23846
  ] })
23631
23847
  ] }),
23632
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground text-end text-xs", children: t("features.assistant.keyboard_hint") })
23848
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground text-end text-xs max-md:hidden", children: t("features.assistant.keyboard_hint") })
23633
23849
  ] });
23634
23850
  }
23635
23851
  _chunk7QVYU63Ejs.__name.call(void 0, AssistantBlockNoteComposer, "AssistantBlockNoteComposer");
@@ -23666,7 +23882,7 @@ function AssistantPageContainer({
23666
23882
  AssistantSidebar,
23667
23883
  {
23668
23884
  threads: ctx.threads,
23669
- activeId: _optionalChain([ctx, 'access', _677 => _677.assistant, 'optionalAccess', _678 => _678.id]),
23885
+ activeId: _optionalChain([ctx, 'access', _683 => _683.assistant, 'optionalAccess', _684 => _684.id]),
23670
23886
  onSelect: ctx.selectThread,
23671
23887
  onNew: ctx.startNew
23672
23888
  }
@@ -23905,12 +24121,12 @@ function ApprovalActionCard({ actionId, summary, onResolved, hiddenRelationshipK
23905
24121
  const presented = _react.useMemo.call(void 0, () => parseOperatorProposal(actionProposal), [actionProposal]);
23906
24122
  const legacy = _react.useMemo.call(void 0, () => presented ? void 0 : parseLegacyProposal(toolArgs), [presented, toolArgs]);
23907
24123
  const isUpdate = toolName === "update_entity";
23908
- const entityLabel = humaniseType(_nullishCoalesce(_nullishCoalesce(_optionalChain([presented, 'optionalAccess', _679 => _679.type]), () => ( _optionalChain([legacy, 'optionalAccess', _680 => _680.type]))), () => ( "")));
23909
- const targetLabel = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _681 => _681.target, 'optionalAccess', _682 => _682.label]), () => ( ""));
24124
+ const entityLabel = humaniseType(_nullishCoalesce(_nullishCoalesce(_optionalChain([presented, 'optionalAccess', _685 => _685.type]), () => ( _optionalChain([legacy, 'optionalAccess', _686 => _686.type]))), () => ( "")));
24125
+ const targetLabel = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _687 => _687.target, 'optionalAccess', _688 => _688.label]), () => ( ""));
23910
24126
  const rows = _react.useMemo.call(void 0, () => {
23911
24127
  const yes = t("features.assistant.approval.proposal.yes");
23912
24128
  const no = t("features.assistant.approval.proposal.no");
23913
- const attributes = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _683 => _683.attributes]), () => ( _optionalChain([legacy, 'optionalAccess', _684 => _684.attributes])));
24129
+ const attributes = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _689 => _689.attributes]), () => ( _optionalChain([legacy, 'optionalAccess', _690 => _690.attributes])));
23914
24130
  const attributeRows = Object.entries(_nullishCoalesce(attributes, () => ( {}))).flatMap(([key, value]) => {
23915
24131
  const text = formatAttribute(value, yes, no);
23916
24132
  return text === void 0 ? [] : [{ key: `attribute:${key}`, label: humaniseKey(key), value: text }];
@@ -23948,7 +24164,7 @@ function ApprovalActionCard({ actionId, summary, onResolved, hiddenRelationshipK
23948
24164
  try {
23949
24165
  const message = kind === "approve" ? await _chunkCAKOFJZDjs.AssistantActionService.approve({ id: actionId }) : await _chunkCAKOFJZDjs.AssistantActionService.deny({ id: actionId });
23950
24166
  setStatus(kind === "approve" ? "executed" : "denied");
23951
- if (message) _optionalChain([onResolved, 'optionalCall', _685 => _685(message)]);
24167
+ if (message) _optionalChain([onResolved, 'optionalCall', _691 => _691(message)]);
23952
24168
  } catch (error) {
23953
24169
  console.error(`ApprovalActionCard: failed to ${kind} assistant action ${actionId}`, error);
23954
24170
  setFailed(true);
@@ -24085,10 +24301,10 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
24085
24301
  const t = _nextintl.useTranslations.call(void 0, );
24086
24302
  const generateUrl = usePageUrlGenerator();
24087
24303
  const { loadNotifications } = useNotificationContext();
24088
- const archived = _optionalChain([params, 'access', _686 => _686.context, 'optionalAccess', _687 => _687.archived]) === true;
24304
+ const archived = _optionalChain([params, 'access', _692 => _692.context, 'optionalAccess', _693 => _693.archived]) === true;
24089
24305
  const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
24090
24306
  await _chunkCAKOFJZDjs.NotificationService.archive({ id: notification.id });
24091
- _optionalChain([params, 'access', _688 => _688.dataRetriever, 'optionalAccess', _689 => _689.removeElement, 'call', _690 => _690(notification)]);
24307
+ _optionalChain([params, 'access', _694 => _694.dataRetriever, 'optionalAccess', _695 => _695.removeElement, 'call', _696 => _696(notification)]);
24092
24308
  await loadNotifications();
24093
24309
  }, "archiveNotification");
24094
24310
  const tableData = _react.useMemo.call(void 0, () => {
@@ -24127,7 +24343,7 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
24127
24343
  const data = generateNotificationData({ notification, generateUrl });
24128
24344
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-foreground text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
24129
24345
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { className: "font-medium", children: chunks }), "strong"),
24130
- actor: _nullishCoalesce(_optionalChain([data, 'access', _691 => _691.actor, 'optionalAccess', _692 => _692.name]), () => ( "")),
24346
+ actor: _nullishCoalesce(_optionalChain([data, 'access', _697 => _697.actor, 'optionalAccess', _698 => _698.name]), () => ( "")),
24131
24347
  title: data.title,
24132
24348
  message: _nullishCoalesce(notification.message, () => ( ""))
24133
24349
  }) });
@@ -24182,7 +24398,7 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
24182
24398
  })
24183
24399
  };
24184
24400
  const columns = _react.useMemo.call(void 0, () => {
24185
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _693 => _693[field], 'optionalCall', _694 => _694()])).filter((col) => col !== void 0);
24401
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _699 => _699[field], 'optionalCall', _700 => _700()])).filter((col) => col !== void 0);
24186
24402
  }, [params.fields, fieldColumnMap, t, generateUrl]);
24187
24403
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
24188
24404
  }, "useNotificationTableStructure");
@@ -24601,7 +24817,7 @@ var DEFAULT_TRANSLATIONS = {
24601
24817
  invalidEmail: "Please enter a valid email address"
24602
24818
  };
24603
24819
  async function copyToClipboard(text) {
24604
- if (_optionalChain([navigator, 'access', _695 => _695.clipboard, 'optionalAccess', _696 => _696.writeText])) {
24820
+ if (_optionalChain([navigator, 'access', _701 => _701.clipboard, 'optionalAccess', _702 => _702.writeText])) {
24605
24821
  try {
24606
24822
  await navigator.clipboard.writeText(text);
24607
24823
  return true;
@@ -24643,7 +24859,7 @@ function ReferralWidget({
24643
24859
  const linkInputRef = _react.useRef.call(void 0, null);
24644
24860
  const config = _chunk4Z45NYPRjs.getReferralConfig.call(void 0, );
24645
24861
  const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
24646
- const referralUrl = _optionalChain([stats, 'optionalAccess', _697 => _697.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
24862
+ const referralUrl = _optionalChain([stats, 'optionalAccess', _703 => _703.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
24647
24863
  if (!_chunk4Z45NYPRjs.isReferralEnabled.call(void 0, )) {
24648
24864
  return null;
24649
24865
  }
@@ -24653,7 +24869,7 @@ function ReferralWidget({
24653
24869
  if (success) {
24654
24870
  setCopied(true);
24655
24871
  _chunkCAKOFJZDjs.showToast.call(void 0, t.copiedMessage);
24656
- _optionalChain([onLinkCopied, 'optionalCall', _698 => _698()]);
24872
+ _optionalChain([onLinkCopied, 'optionalCall', _704 => _704()]);
24657
24873
  setTimeout(() => setCopied(false), 2e3);
24658
24874
  } else {
24659
24875
  _chunkCAKOFJZDjs.showError.call(void 0, t.copyError);
@@ -24667,12 +24883,12 @@ function ReferralWidget({
24667
24883
  try {
24668
24884
  await sendInvite(email);
24669
24885
  _chunkCAKOFJZDjs.showToast.call(void 0, t.inviteSent);
24670
- _optionalChain([onInviteSent, 'optionalCall', _699 => _699(email)]);
24886
+ _optionalChain([onInviteSent, 'optionalCall', _705 => _705(email)]);
24671
24887
  setEmail("");
24672
24888
  } catch (err) {
24673
24889
  const error2 = err instanceof Error ? err : new Error(t.inviteError);
24674
24890
  _chunkCAKOFJZDjs.showError.call(void 0, error2.message);
24675
- _optionalChain([onInviteError, 'optionalCall', _700 => _700(error2)]);
24891
+ _optionalChain([onInviteError, 'optionalCall', _706 => _706(error2)]);
24676
24892
  }
24677
24893
  }, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
24678
24894
  const handleEmailKeyDown = _react.useCallback.call(void 0,
@@ -25426,7 +25642,7 @@ function OAuthClientList({
25426
25642
  OAuthClientCard,
25427
25643
  {
25428
25644
  client,
25429
- onClick: () => _optionalChain([onClientClick, 'optionalCall', _701 => _701(client)]),
25645
+ onClick: () => _optionalChain([onClientClick, 'optionalCall', _707 => _707(client)]),
25430
25646
  onEdit: onEditClick ? () => onEditClick(client) : void 0,
25431
25647
  onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
25432
25648
  },
@@ -25449,11 +25665,11 @@ function OAuthClientForm({
25449
25665
  }) {
25450
25666
  const isEditMode = !!client;
25451
25667
  const [formState, setFormState] = _react.useState.call(void 0, {
25452
- name: _optionalChain([client, 'optionalAccess', _702 => _702.name]) || "",
25453
- description: _optionalChain([client, 'optionalAccess', _703 => _703.description]) || "",
25454
- redirectUris: _optionalChain([client, 'optionalAccess', _704 => _704.redirectUris, 'optionalAccess', _705 => _705.length]) ? client.redirectUris : [""],
25668
+ name: _optionalChain([client, 'optionalAccess', _708 => _708.name]) || "",
25669
+ description: _optionalChain([client, 'optionalAccess', _709 => _709.description]) || "",
25670
+ redirectUris: _optionalChain([client, 'optionalAccess', _710 => _710.redirectUris, 'optionalAccess', _711 => _711.length]) ? client.redirectUris : [""],
25455
25671
  allowedScopes: client ? client.allowedScopes || [] : defaultScopes,
25456
- isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _706 => _706.isConfidential]), () => ( true))
25672
+ isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _712 => _712.isConfidential]), () => ( true))
25457
25673
  });
25458
25674
  const [errors, setErrors] = _react.useState.call(void 0, {});
25459
25675
  const validate = _react.useCallback.call(void 0, () => {
@@ -25682,7 +25898,7 @@ function OAuthClientDetail({
25682
25898
  ] }),
25683
25899
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
25684
25900
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
25685
- /* @__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([_chunkCAKOFJZDjs.OAUTH_SCOPE_DISPLAY, 'access', _707 => _707[scope], 'optionalAccess', _708 => _708.name]) || scope }, scope)) })
25901
+ /* @__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([_chunkCAKOFJZDjs.OAUTH_SCOPE_DISPLAY, 'access', _713 => _713[scope], 'optionalAccess', _714 => _714.name]) || scope }, scope)) })
25686
25902
  ] }),
25687
25903
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
25688
25904
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
@@ -25863,7 +26079,7 @@ function OAuthConsentScreen({
25863
26079
  if (error || !clientInfo) {
25864
26080
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-dvh 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: [
25865
26081
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
25866
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _709 => _709.message]) || t("oauth.consent.invalid_request") })
26082
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _715 => _715.message]) || t("oauth.consent.invalid_request") })
25867
26083
  ] }) }) }) });
25868
26084
  }
25869
26085
  const { client, scopes } = clientInfo;
@@ -26084,7 +26300,7 @@ function WaitlistForm({ onSuccess }) {
26084
26300
  questionnaire: values.questionnaire
26085
26301
  });
26086
26302
  setIsSuccess(true);
26087
- _optionalChain([onSuccess, 'optionalCall', _710 => _710()]);
26303
+ _optionalChain([onSuccess, 'optionalCall', _716 => _716()]);
26088
26304
  } catch (e) {
26089
26305
  errorToast({ error: e });
26090
26306
  } finally {
@@ -26624,7 +26840,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
26624
26840
  ] }),
26625
26841
  roleIds.map((roleId) => {
26626
26842
  const roleTokens = block[roleId];
26627
- const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _711 => _711[roleId]]), () => ( roleId));
26843
+ const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _717 => _717[roleId]]), () => ( roleId));
26628
26844
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
26629
26845
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
26630
26846
  _chunk4Z45NYPRjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -26661,7 +26877,7 @@ function RbacContainer() {
26661
26877
  }, []);
26662
26878
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
26663
26879
  if (!matrix) return [];
26664
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _712 => _712[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _713 => _713[b]]), () => ( b))));
26880
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _718 => _718[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _719 => _719[b]]), () => ( b))));
26665
26881
  }, [matrix, moduleNames]);
26666
26882
  const roleIds = _react.useMemo.call(void 0, () => {
26667
26883
  if (roleNames) {
@@ -26724,7 +26940,7 @@ function RbacContainer() {
26724
26940
  id === selectedModuleId && "bg-muted font-medium text-foreground",
26725
26941
  id !== selectedModuleId && "text-muted-foreground"
26726
26942
  ),
26727
- children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _714 => _714[id]]), () => ( id))
26943
+ children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _720 => _720[id]]), () => ( id))
26728
26944
  }
26729
26945
  ) }, id)) }) }),
26730
26946
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: selectedModuleId && selectedBlock ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -26732,7 +26948,7 @@ function RbacContainer() {
26732
26948
  {
26733
26949
  moduleId: selectedModuleId,
26734
26950
  block: selectedBlock,
26735
- moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _715 => _715[selectedModuleId]]), () => ( selectedModuleId)),
26951
+ moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _721 => _721[selectedModuleId]]), () => ( selectedModuleId)),
26736
26952
  roleIds,
26737
26953
  roleNames,
26738
26954
  onOpenPicker: openPicker
@@ -26743,12 +26959,12 @@ function RbacContainer() {
26743
26959
  RbacPermissionPicker,
26744
26960
  {
26745
26961
  open: !!activePicker,
26746
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _716 => _716.anchor]), () => ( null)),
26962
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _722 => _722.anchor]), () => ( null)),
26747
26963
  value: activeValue,
26748
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _717 => _717.isRoleColumn]), () => ( false)),
26964
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _723 => _723.isRoleColumn]), () => ( false)),
26749
26965
  knownSegments: activeSegments,
26750
26966
  onSetValue: handleSetValue,
26751
- onClear: _optionalChain([activePicker, 'optionalAccess', _718 => _718.isRoleColumn]) ? handleClear : void 0,
26967
+ onClear: _optionalChain([activePicker, 'optionalAccess', _724 => _724.isRoleColumn]) ? handleClear : void 0,
26752
26968
  onClose: closePicker
26753
26969
  }
26754
26970
  )
@@ -26815,7 +27031,7 @@ function RbacByRoleContainer() {
26815
27031
  }, [roleNames]);
26816
27032
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
26817
27033
  if (!matrix) return [];
26818
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _719 => _719[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _720 => _720[b]]), () => ( b))));
27034
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _725 => _725[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _726 => _726[b]]), () => ( b))));
26819
27035
  }, [matrix, moduleNames]);
26820
27036
  _react.useEffect.call(void 0, () => {
26821
27037
  if (!selectedRoleId && sortedRoleIds.length > 0) {
@@ -26864,7 +27080,7 @@ function RbacByRoleContainer() {
26864
27080
  id === selectedRoleId && "bg-muted font-medium text-foreground",
26865
27081
  id !== selectedRoleId && "text-muted-foreground"
26866
27082
  ),
26867
- children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _721 => _721[id]]), () => ( id))
27083
+ children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _727 => _727[id]]), () => ( id))
26868
27084
  }
26869
27085
  ) }, id)) }) }),
26870
27086
  /* @__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: [
@@ -26884,7 +27100,7 @@ function RbacByRoleContainer() {
26884
27100
  if (!block) return null;
26885
27101
  const defaultTokens = _nullishCoalesce(block.default, () => ( []));
26886
27102
  const roleTokens = block[selectedRoleId];
26887
- const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _722 => _722[moduleId]]), () => ( moduleId));
27103
+ const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _728 => _728[moduleId]]), () => ( moduleId));
26888
27104
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
26889
27105
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
26890
27106
  "td",
@@ -26899,7 +27115,7 @@ function RbacByRoleContainer() {
26899
27115
  _chunk4Z45NYPRjs.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))
26900
27116
  ] }),
26901
27117
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
26902
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _723 => _723[selectedRoleId]]), () => ( selectedRoleId)) }),
27118
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _729 => _729[selectedRoleId]]), () => ( selectedRoleId)) }),
26903
27119
  _chunk4Z45NYPRjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
26904
27120
  CellButton3,
26905
27121
  {
@@ -26920,12 +27136,12 @@ function RbacByRoleContainer() {
26920
27136
  RbacPermissionPicker,
26921
27137
  {
26922
27138
  open: !!activePicker,
26923
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _724 => _724.anchor]), () => ( null)),
27139
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _730 => _730.anchor]), () => ( null)),
26924
27140
  value: activeValue,
26925
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _725 => _725.isRoleColumn]), () => ( false)),
27141
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _731 => _731.isRoleColumn]), () => ( false)),
26926
27142
  knownSegments: activeSegments,
26927
27143
  onSetValue: handleSetValue,
26928
- onClear: _optionalChain([activePicker, 'optionalAccess', _726 => _726.isRoleColumn]) ? handleClear : void 0,
27144
+ onClear: _optionalChain([activePicker, 'optionalAccess', _732 => _732.isRoleColumn]) ? handleClear : void 0,
26929
27145
  onClose: closePicker
26930
27146
  }
26931
27147
  )
@@ -27533,5 +27749,6 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
27533
27749
 
27534
27750
 
27535
27751
 
27536
- exports.JsonApiProvider = JsonApiProvider; exports.useJsonApiGet = useJsonApiGet; exports.useJsonApiMutation = useJsonApiMutation; exports.useRehydration = useRehydration; exports.useRehydrationList = useRehydrationList; exports.TableGeneratorRegistry = TableGeneratorRegistry; exports.tableGeneratorRegistry = tableGeneratorRegistry; exports.usePageUrlGenerator = usePageUrlGenerator; exports.useUrlRewriter = useUrlRewriter; exports.useDataListRetriever = useDataListRetriever; exports.useDebounce = useDebounce2; exports.registerTableGenerator = registerTableGenerator; exports.useTableGenerator = useTableGenerator; exports.computeLayeredLayout = computeLayeredLayout; exports.fitLayeredLayoutToAspectRatio = fitLayeredLayoutToAspectRatio; exports.useCustomD3Graph = useCustomD3Graph; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.AdministrationProvider = AdministrationProvider; exports.useAdministrationContext = useAdministrationContext; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.useCurrentUserContextOptional = useCurrentUserContextOptional; 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.DirectionProvider = DirectionProvider; exports.useDir = useDir; exports.Calendar = Calendar; exports.CalendarDayButton = CalendarDayButton; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardAction = CardAction; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.useCarousel = useCarousel; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger; exports.CollapsibleContent = CollapsibleContent; exports.Input = Input; exports.Textarea = Textarea; exports.InputGroup = InputGroup; exports.InputGroupAddon = InputGroupAddon; exports.InputGroupButton = InputGroupButton; exports.InputGroupText = InputGroupText; exports.InputGroupInput = InputGroupInput; exports.InputGroupTextarea = InputGroupTextarea; exports.Combobox = Combobox; exports.ComboboxValue = ComboboxValue; exports.ComboboxTrigger = ComboboxTrigger; exports.ComboboxInput = ComboboxInput; exports.ComboboxContent = ComboboxContent; exports.ComboboxList = ComboboxList; exports.ComboboxItem = ComboboxItem; exports.ComboboxGroup = ComboboxGroup; exports.ComboboxLabel = ComboboxLabel; exports.ComboboxCollection = ComboboxCollection; exports.ComboboxEmpty = ComboboxEmpty; exports.ComboboxSeparator = ComboboxSeparator; exports.ComboboxChips = ComboboxChips; exports.ComboboxChip = ComboboxChip; exports.ComboboxChipsInput = ComboboxChipsInput; exports.useComboboxAnchor = useComboboxAnchor; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.Command = Command; exports.CommandDialog = CommandDialog; exports.CommandInput = CommandInput; exports.CommandList = CommandList; exports.CommandEmpty = CommandEmpty; exports.CommandGroup = CommandGroup; exports.CommandSeparator = CommandSeparator; exports.CommandItem = CommandItem; exports.CommandShortcut = CommandShortcut; exports.ConfirmDialog = ConfirmDialog; exports.ContextMenu = ContextMenu; exports.ContextMenuPortal = ContextMenuPortal; exports.ContextMenuTrigger = ContextMenuTrigger; exports.ContextMenuContent = ContextMenuContent; exports.ContextMenuGroup = ContextMenuGroup; exports.ContextMenuLabel = ContextMenuLabel; exports.ContextMenuItem = ContextMenuItem; exports.ContextMenuSub = ContextMenuSub; exports.ContextMenuSubTrigger = ContextMenuSubTrigger; exports.ContextMenuSubContent = ContextMenuSubContent; exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem; exports.ContextMenuRadioGroup = ContextMenuRadioGroup; exports.ContextMenuRadioItem = ContextMenuRadioItem; exports.ContextMenuSeparator = ContextMenuSeparator; exports.ContextMenuShortcut = ContextMenuShortcut; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerPortal = DrawerPortal; exports.DrawerClose = DrawerClose; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerFooter = DrawerFooter; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DropdownMenu = DropdownMenu; exports.DropdownMenuPortal = DropdownMenuPortal; exports.DropdownMenuTrigger = DropdownMenuTrigger; exports.DropdownMenuContent = DropdownMenuContent; exports.DropdownMenuGroup = DropdownMenuGroup; exports.DropdownMenuLabel = DropdownMenuLabel; exports.DropdownMenuItem = DropdownMenuItem; exports.DropdownMenuSub = DropdownMenuSub; exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger; exports.DropdownMenuSubContent = DropdownMenuSubContent; exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem; exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup; exports.DropdownMenuRadioItem = DropdownMenuRadioItem; exports.DropdownMenuSeparator = DropdownMenuSeparator; exports.DropdownMenuShortcut = DropdownMenuShortcut; exports.EmptyState = EmptyState; exports.Label = Label; exports.Separator = Separator; exports.FieldSet = FieldSet; exports.FieldLegend = FieldLegend; exports.FieldGroup = FieldGroup; exports.Field = Field; exports.FieldContent = FieldContent; exports.FieldLabel = FieldLabel; exports.FieldTitle = FieldTitle; exports.FieldDescription = FieldDescription; exports.FieldSeparator = FieldSeparator; exports.FieldError = FieldError; exports.Form = Form; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.InputOTP = InputOTP; exports.InputOTPGroup = InputOTPGroup; exports.InputOTPSlot = InputOTPSlot; exports.InputOTPSeparator = InputOTPSeparator; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuPositioner = NavigationMenuPositioner; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.Popover = Popover; exports.PopoverTrigger = PopoverTrigger; exports.PopoverContent = PopoverContent; exports.PopoverHeader = PopoverHeader; exports.PopoverTitle = PopoverTitle; exports.PopoverDescription = PopoverDescription; exports.Progress = Progress; exports.ProgressTrack = ProgressTrack; exports.ProgressIndicator = ProgressIndicator; exports.ProgressLabel = ProgressLabel; exports.ProgressValue = ProgressValue; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.ResizablePanelGroup = ResizablePanelGroup; exports.ResizablePanel = ResizablePanel; exports.ResizableHandle = ResizableHandle; exports.ScrollArea = ScrollArea; exports.ScrollBar = ScrollBar; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Skeleton = Skeleton; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip2; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.useSidebar = useSidebar; exports.useOptionalSidebar = useOptionalSidebar; exports.SidebarProvider = SidebarProvider; exports.Sidebar = Sidebar; exports.SidebarTrigger = SidebarTrigger; exports.SidebarRail = SidebarRail; exports.SidebarInset = SidebarInset; exports.SidebarInput = SidebarInput; exports.SidebarHeader = SidebarHeader; exports.SidebarFooter = SidebarFooter; exports.SidebarSeparator = SidebarSeparator; exports.SidebarContent = SidebarContent; exports.SidebarGroup = SidebarGroup; exports.SidebarGroupLabel = SidebarGroupLabel; exports.SidebarGroupAction = SidebarGroupAction; exports.SidebarGroupContent = SidebarGroupContent; exports.SidebarMenu = SidebarMenu; exports.SidebarMenuItem = SidebarMenuItem; exports.SidebarMenuButton = SidebarMenuButton; exports.SidebarMenuAction = SidebarMenuAction; exports.SidebarMenuBadge = SidebarMenuBadge; exports.SidebarMenuSkeleton = SidebarMenuSkeleton; exports.SidebarMenuSub = SidebarMenuSub; exports.SidebarMenuSubItem = SidebarMenuSubItem; exports.SidebarMenuSubButton = SidebarMenuSubButton; exports.Slider = Slider; exports.Toaster = Toaster; exports.spinnerVariants = spinnerVariants; exports.Spinner = Spinner; exports.Switch = Switch; exports.Table = Table; exports.TableHeader = TableHeader; exports.TableBody = TableBody; exports.TableFooter = TableFooter; exports.TableRow = TableRow; exports.TableHead = TableHead; exports.TableCell = TableCell; exports.TableCaption = TableCaption; exports.Tabs = Tabs; exports.tabsListVariants = tabsListVariants; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.KanbanRoot = KanbanRoot; exports.KanbanBoard = KanbanBoard; exports.KanbanColumn = KanbanColumn; exports.KanbanColumnHandle = KanbanColumnHandle; exports.KanbanItem = KanbanItem; exports.KanbanItemHandle = KanbanItemHandle; exports.KanbanOverlay = KanbanOverlay; exports.Link = Link; exports.MultiSelect = MultiSelect; exports.useDebounce2 = useDebounce; exports.MultipleSelector = MultipleSelector; exports.EntityAvatar = EntityAvatar; exports.errorToast = errorToast; exports.EditableAvatar = EditableAvatar; exports.TableCellAvatar = TableCellAvatar; exports.HeaderChildrenProvider = HeaderChildrenProvider; exports.useHeaderChildren = useHeaderChildren; exports.useHeaderMobileChildren = useHeaderMobileChildren; exports.useHeaderRootLabel = useHeaderRootLabel; exports.HeaderLeftContentProvider = HeaderLeftContentProvider; exports.useHeaderLeftContent = useHeaderLeftContent; exports.HeaderLogoProvider = HeaderLogoProvider; exports.useHeaderLogo = useHeaderLogo; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.BreadcrumbRootProvider = BreadcrumbRootProvider; exports.useIsBreadcrumbRootHidden = useIsBreadcrumbRootHidden; exports.Header = Header; exports.MobileNavigationProvider = MobileNavigationProvider; exports.useMobileNavigationItems = useMobileNavigationItems; exports.MobileNavigationBar = MobileNavigationBar; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.partitionTabs = partitionTabs; exports.MermaidDiagram = MermaidDiagram; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.HEADER_ROW_MIN_H = HEADER_ROW_MIN_H; exports.RoundPageContainerTitle = RoundPageContainerTitle; exports.SectionHeader = SectionHeader; exports.MicroLabel = MicroLabel; exports.DetailField = DetailField; exports.RoundPageContainer = RoundPageContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.AllUsersListContainer = AllUsersListContainer; exports.PlatformUsersList = PlatformUsersList; exports.PlatformUsersContainer = PlatformUsersContainer; exports.UserContent = UserContent; exports.UserAvatar = UserAvatar; exports.UserAvatarList = UserAvatarList; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.UserSearchPopover = UserSearchPopover; exports.UserIndexDetails = UserIndexDetails; exports.UserStanadaloneDetails = UserStanadaloneDetails; exports.UserContainer = UserContainer; exports.UserIndexContainer = UserIndexContainer; exports.UsersListContainer = UsersListContainer; exports.AdminUsersList = AdminUsersList; exports.CompanyUsersList = CompanyUsersList; exports.ContributorsList = ContributorsList; exports.RelevantUsersList = RelevantUsersList; exports.RoleUsersList = RoleUsersList; exports.UserListInAdd = UserListInAdd; exports.UsersList = UsersList; exports.UsersListByContentIds = UsersListByContentIds; exports.AllowedUsersDetails = AllowedUsersDetails; exports.ErrorDetails = ErrorDetails; exports.BlockNoteEditorMentionHoverCard = BlockNoteEditorMentionHoverCard; exports.mentionDataAttrs = mentionDataAttrs; exports.parseMentionElement = parseMentionElement; exports.createMentionInlineContentSpec = createMentionInlineContentSpec; exports.useMentionInsert = useMentionInsert; exports.BlockNoteEditorMentionSuggestionMenu = BlockNoteEditorMentionSuggestionMenu; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.BlockNoteViewerContainer = BlockNoteViewerContainer; exports.FormFeatures = FormFeatures; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.ActionBarProvider = ActionBarProvider; exports.useIsInActionBar = useIsInActionBar; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorDiscardDialog = CommonEditorDiscardDialog; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorTrigger = CommonEditorTrigger; exports.CommonAddTrigger = CommonAddTrigger; exports.CurrencyInput = CurrencyInput; exports.DatePickerPopover = DatePickerPopover; exports.nextDateRange = nextDateRange; exports.DateRangeSelector = DateRangeSelector; exports.useEditorDialog = useEditorDialog; exports.EditorSheet = EditorSheet; exports.FormFieldWrapper = FormFieldWrapper; exports.EntityMultiSelector = EntityMultiSelector; exports.EntitySelector = EntitySelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.FormBlockNote = FormBlockNote; exports.FormCheckbox = FormCheckbox; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.FormBody = FormBody; exports.FormSection = FormSection; exports.FormRow = FormRow; exports.FormCol = FormCol; exports.PasswordInput = PasswordInput; exports.FormPassword = FormPassword; exports.FormPlaceAutocomplete = FormPlaceAutocomplete; exports.FormSelect = FormSelect; exports.FormSlider = FormSlider; exports.FormSwitch = FormSwitch; exports.FormTextarea = FormTextarea; exports.GdprConsentCheckbox = GdprConsentCheckbox; exports.MultiFileUploader = MultiFileUploader; exports.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; exports.cellDateTime = cellDateTime; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; exports.ContentListGrid = ContentListGrid; exports.ItalianFiscalData_default = ItalianFiscalData_default; exports.ItalianFiscalDataDisplay = ItalianFiscalDataDisplay; exports.parseFiscalData = parseFiscalData; exports.FiscalDataDisplay = FiscalDataDisplay; exports.EntityHeroLayout = EntityHeroLayout; exports.EntityHero = EntityHero; exports.EntityHeroAvatar = EntityHeroAvatar; exports.EntityHeroMetaRow = EntityHeroMetaRow; exports.EntitySection = EntitySection; exports.GdprConsentSection = GdprConsentSection; exports.AuthContainer = AuthContainer; exports.BackupCodesDialog = BackupCodesDialog; exports.TotpInput = TotpInput; exports.DisableTwoFactorDialog = DisableTwoFactorDialog; exports.PasskeyList = PasskeyList; exports.PasskeySetupDialog = PasskeySetupDialog; exports.TotpAuthenticatorList = TotpAuthenticatorList; exports.TotpSetupDialog = TotpSetupDialog; exports.TwoFactorSettings = TwoFactorSettings; exports.SecurityContainer = SecurityContainer; exports.LandingComponent = LandingComponent; exports.AcceptInvitation = AcceptInvitation; exports.ActivateAccount = ActivateAccount; exports.Cookies = Cookies; exports.ForgotPassword = ForgotPassword; exports.Login = Login; exports.Logout = Logout; exports.RefreshUser = RefreshUser; exports.ResetPassword = ResetPassword; exports.PasskeyButton = PasskeyButton; exports.TwoFactorChallenge = TwoFactorChallenge; exports.AdminIndexGrid = AdminIndexGrid; exports.AdminIndexContainer = AdminIndexContainer; exports.ADMINISTRATION_I18N_KEYS = ADMINISTRATION_I18N_KEYS; exports.AI_CONNECTIONS_I18N_KEYS = AI_CONNECTIONS_I18N_KEYS; exports.AI_CONNECTIONS_ADMIN_PAGE_URL = AI_CONNECTIONS_ADMIN_PAGE_URL; exports.AiConnectionsProvider = AiConnectionsProvider; exports.useAiConnections = useAiConnections; exports.AiConnectionDeleter = AiConnectionDeleter; exports.AiConnectionEditor = AiConnectionEditor; exports.AiConnectionTypeCard = AiConnectionTypeCard; exports.AI_CONNECTION_TYPE_ORDER = AI_CONNECTION_TYPE_ORDER; exports.AiConnectionsContainer = AiConnectionsContainer; exports.CompanyContent = CompanyContent; exports.TokenStatusIndicator = TokenStatusIndicator; exports.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.CompaniesListContainer = CompaniesListContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.HowToCommandViewer = HowToCommandViewer; exports.HowToCommand = HowToCommand; exports.HowToDeleter = HowToDeleter; exports.HowToMultiSelector = HowToMultiSelector; exports.HowToEditor = HowToEditor; exports.HowToProvider = HowToProvider; exports.useHowToContext = useHowToContext; exports.HowToContent = HowToContent; exports.HowToDetails = HowToDetails; exports.HowToContainer = HowToContainer; exports.HowToReindexButton = HowToReindexButton; exports.HowToList = HowToList; exports.HowToListContainer = HowToListContainer; exports.HowToSelector = HowToSelector; exports.AssistantComposer = AssistantComposer; exports.MessageSourcesPanel = MessageSourcesPanel; exports.MessageItem = MessageItem; exports.MessageList = MessageList; exports.AssistantThread = AssistantThread; exports.HandbookAskSheet = HandbookAskSheet; exports.HandbookSyncButton = HandbookSyncButton; exports.HandbookIndexStatus = HandbookIndexStatus; exports.HandbookSectionGroup = HandbookSectionGroup; exports.HandbookContents = HandbookContents; exports.HandbookAdminContainer = HandbookAdminContainer; exports.HandbookPageDetails = HandbookPageDetails; exports.HandbookPageNeighbours = HandbookPageNeighbours; exports.HandbookPageToc = HandbookPageToc; exports.HandbookPageNavigator = HandbookPageNavigator; exports.HandbookPageContainer = HandbookPageContainer; exports.HandbookAskContainer = HandbookAskContainer; exports.EntityMentionLink = EntityMentionLink; exports.AssistantProvider = AssistantProvider; exports.useAssistantContext = useAssistantContext; exports.AssistantEmptyState = AssistantEmptyState; exports.AssistantContainer = AssistantContainer; exports.AssistantBlockNoteComposer = AssistantBlockNoteComposer; exports.AssistantPageContainer = AssistantPageContainer; exports.ApprovalActionCard = ApprovalActionCard; exports.AssistantContainerWithApprovals = AssistantContainerWithApprovals; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.NotificationIcon = NotificationIcon; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationViewSwitcher = NotificationViewSwitcher; 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.OAuthCompanySelector = OAuthCompanySelector; 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.mapOnboardingSide = mapOnboardingSide; exports.OnboardingProvider = OnboardingProvider; exports.useOnboarding = useOnboarding; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.ViewportProvider = ViewportProvider; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.formatInterval = formatInterval; exports.formatCurrency = formatCurrency; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
27537
- //# sourceMappingURL=chunk-Y3OKEQGL.js.map
27752
+
27753
+ exports.JsonApiProvider = JsonApiProvider; exports.useJsonApiGet = useJsonApiGet; exports.useJsonApiMutation = useJsonApiMutation; exports.useRehydration = useRehydration; exports.useRehydrationList = useRehydrationList; exports.TableGeneratorRegistry = TableGeneratorRegistry; exports.tableGeneratorRegistry = tableGeneratorRegistry; exports.usePageUrlGenerator = usePageUrlGenerator; exports.useUrlRewriter = useUrlRewriter; exports.useDataListRetriever = useDataListRetriever; exports.useDebounce = useDebounce2; exports.registerTableGenerator = registerTableGenerator; exports.useTableGenerator = useTableGenerator; exports.computeLayeredLayout = computeLayeredLayout; exports.fitLayeredLayoutToAspectRatio = fitLayeredLayoutToAspectRatio; exports.useCustomD3Graph = useCustomD3Graph; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.AdministrationProvider = AdministrationProvider; exports.useAdministrationContext = useAdministrationContext; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.useCurrentUserContextOptional = useCurrentUserContextOptional; 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.DirectionProvider = DirectionProvider; exports.useDir = useDir; exports.Calendar = Calendar; exports.CalendarDayButton = CalendarDayButton; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardAction = CardAction; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.useCarousel = useCarousel; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger; exports.CollapsibleContent = CollapsibleContent; exports.Input = Input; exports.Textarea = Textarea; exports.InputGroup = InputGroup; exports.InputGroupAddon = InputGroupAddon; exports.InputGroupButton = InputGroupButton; exports.InputGroupText = InputGroupText; exports.InputGroupInput = InputGroupInput; exports.InputGroupTextarea = InputGroupTextarea; exports.Combobox = Combobox; exports.ComboboxValue = ComboboxValue; exports.ComboboxTrigger = ComboboxTrigger; exports.ComboboxInput = ComboboxInput; exports.ComboboxContent = ComboboxContent; exports.ComboboxList = ComboboxList; exports.ComboboxItem = ComboboxItem; exports.ComboboxGroup = ComboboxGroup; exports.ComboboxLabel = ComboboxLabel; exports.ComboboxCollection = ComboboxCollection; exports.ComboboxEmpty = ComboboxEmpty; exports.ComboboxSeparator = ComboboxSeparator; exports.ComboboxChips = ComboboxChips; exports.ComboboxChip = ComboboxChip; exports.ComboboxChipsInput = ComboboxChipsInput; exports.useComboboxAnchor = useComboboxAnchor; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.Command = Command; exports.CommandDialog = CommandDialog; exports.CommandInput = CommandInput; exports.CommandList = CommandList; exports.CommandEmpty = CommandEmpty; exports.CommandGroup = CommandGroup; exports.CommandSeparator = CommandSeparator; exports.CommandItem = CommandItem; exports.CommandShortcut = CommandShortcut; exports.ConfirmDialog = ConfirmDialog; exports.ContextMenu = ContextMenu; exports.ContextMenuPortal = ContextMenuPortal; exports.ContextMenuTrigger = ContextMenuTrigger; exports.ContextMenuContent = ContextMenuContent; exports.ContextMenuGroup = ContextMenuGroup; exports.ContextMenuLabel = ContextMenuLabel; exports.ContextMenuItem = ContextMenuItem; exports.ContextMenuSub = ContextMenuSub; exports.ContextMenuSubTrigger = ContextMenuSubTrigger; exports.ContextMenuSubContent = ContextMenuSubContent; exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem; exports.ContextMenuRadioGroup = ContextMenuRadioGroup; exports.ContextMenuRadioItem = ContextMenuRadioItem; exports.ContextMenuSeparator = ContextMenuSeparator; exports.ContextMenuShortcut = ContextMenuShortcut; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerPortal = DrawerPortal; exports.DrawerClose = DrawerClose; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerFooter = DrawerFooter; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DropdownMenu = DropdownMenu; exports.DropdownMenuPortal = DropdownMenuPortal; exports.DropdownMenuTrigger = DropdownMenuTrigger; exports.DropdownMenuContent = DropdownMenuContent; exports.DropdownMenuGroup = DropdownMenuGroup; exports.DropdownMenuLabel = DropdownMenuLabel; exports.DropdownMenuItem = DropdownMenuItem; exports.DropdownMenuSub = DropdownMenuSub; exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger; exports.DropdownMenuSubContent = DropdownMenuSubContent; exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem; exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup; exports.DropdownMenuRadioItem = DropdownMenuRadioItem; exports.DropdownMenuSeparator = DropdownMenuSeparator; exports.DropdownMenuShortcut = DropdownMenuShortcut; exports.EmptyState = EmptyState; exports.Label = Label; exports.Separator = Separator; exports.FieldSet = FieldSet; exports.FieldLegend = FieldLegend; exports.FieldGroup = FieldGroup; exports.Field = Field; exports.FieldContent = FieldContent; exports.FieldLabel = FieldLabel; exports.FieldTitle = FieldTitle; exports.FieldDescription = FieldDescription; exports.FieldSeparator = FieldSeparator; exports.FieldError = FieldError; exports.Form = Form; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.InputOTP = InputOTP; exports.InputOTPGroup = InputOTPGroup; exports.InputOTPSlot = InputOTPSlot; exports.InputOTPSeparator = InputOTPSeparator; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuPositioner = NavigationMenuPositioner; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.Popover = Popover; exports.PopoverTrigger = PopoverTrigger; exports.PopoverContent = PopoverContent; exports.PopoverHeader = PopoverHeader; exports.PopoverTitle = PopoverTitle; exports.PopoverDescription = PopoverDescription; exports.Progress = Progress; exports.ProgressTrack = ProgressTrack; exports.ProgressIndicator = ProgressIndicator; exports.ProgressLabel = ProgressLabel; exports.ProgressValue = ProgressValue; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.ResizablePanelGroup = ResizablePanelGroup; exports.ResizablePanel = ResizablePanel; exports.ResizableHandle = ResizableHandle; exports.ScrollArea = ScrollArea; exports.ScrollBar = ScrollBar; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Skeleton = Skeleton; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip2; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.useSidebar = useSidebar; exports.useOptionalSidebar = useOptionalSidebar; exports.SidebarProvider = SidebarProvider; exports.Sidebar = Sidebar; exports.SidebarTrigger = SidebarTrigger; exports.SidebarRail = SidebarRail; exports.SidebarInset = SidebarInset; exports.SidebarInput = SidebarInput; exports.SidebarHeader = SidebarHeader; exports.SidebarFooter = SidebarFooter; exports.SidebarSeparator = SidebarSeparator; exports.SidebarContent = SidebarContent; exports.SidebarGroup = SidebarGroup; exports.SidebarGroupLabel = SidebarGroupLabel; exports.SidebarGroupAction = SidebarGroupAction; exports.SidebarGroupContent = SidebarGroupContent; exports.SidebarMenu = SidebarMenu; exports.SidebarMenuItem = SidebarMenuItem; exports.SidebarMenuButton = SidebarMenuButton; exports.SidebarMenuAction = SidebarMenuAction; exports.SidebarMenuBadge = SidebarMenuBadge; exports.SidebarMenuSkeleton = SidebarMenuSkeleton; exports.SidebarMenuSub = SidebarMenuSub; exports.SidebarMenuSubItem = SidebarMenuSubItem; exports.SidebarMenuSubButton = SidebarMenuSubButton; exports.Slider = Slider; exports.Toaster = Toaster; exports.spinnerVariants = spinnerVariants; exports.Spinner = Spinner; exports.Switch = Switch; exports.Table = Table; exports.TableHeader = TableHeader; exports.TableBody = TableBody; exports.TableFooter = TableFooter; exports.TableRow = TableRow; exports.TableHead = TableHead; exports.TableCell = TableCell; exports.TableCaption = TableCaption; exports.Tabs = Tabs; exports.tabsListVariants = tabsListVariants; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.KanbanRoot = KanbanRoot; exports.KanbanBoard = KanbanBoard; exports.KanbanColumn = KanbanColumn; exports.KanbanColumnHandle = KanbanColumnHandle; exports.KanbanItem = KanbanItem; exports.KanbanItemHandle = KanbanItemHandle; exports.KanbanOverlay = KanbanOverlay; exports.Link = Link; exports.MultiSelect = MultiSelect; exports.useDebounce2 = useDebounce; exports.MultipleSelector = MultipleSelector; exports.EntityAvatar = EntityAvatar; exports.errorToast = errorToast; exports.EditableAvatar = EditableAvatar; exports.TableCellAvatar = TableCellAvatar; exports.HeaderChildrenProvider = HeaderChildrenProvider; exports.useHeaderChildren = useHeaderChildren; exports.useHeaderMobileChildren = useHeaderMobileChildren; exports.useHeaderRootLabel = useHeaderRootLabel; exports.HeaderLeftContentProvider = HeaderLeftContentProvider; exports.useHeaderLeftContent = useHeaderLeftContent; exports.HeaderLogoProvider = HeaderLogoProvider; exports.useHeaderLogo = useHeaderLogo; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.BreadcrumbRootProvider = BreadcrumbRootProvider; exports.useIsBreadcrumbRootHidden = useIsBreadcrumbRootHidden; exports.Header = Header; exports.MobileNavigationProvider = MobileNavigationProvider; exports.useMobileNavigationItems = useMobileNavigationItems; exports.MobileNavigationBar = MobileNavigationBar; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.partitionTabs = partitionTabs; exports.MermaidDiagram = MermaidDiagram; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.HEADER_ROW_MIN_H = HEADER_ROW_MIN_H; exports.RoundPageContainerTitle = RoundPageContainerTitle; exports.SectionHeader = SectionHeader; exports.MicroLabel = MicroLabel; exports.DetailField = DetailField; exports.RoundPageContainer = RoundPageContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.AllUsersListContainer = AllUsersListContainer; exports.PlatformUsersList = PlatformUsersList; exports.PlatformUsersContainer = PlatformUsersContainer; exports.UserContent = UserContent; exports.UserAvatar = UserAvatar; exports.UserAvatarList = UserAvatarList; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.UserSearchPopover = UserSearchPopover; exports.UserIndexDetails = UserIndexDetails; exports.UserStanadaloneDetails = UserStanadaloneDetails; exports.UserContainer = UserContainer; exports.UserIndexContainer = UserIndexContainer; exports.UsersListContainer = UsersListContainer; exports.AdminUsersList = AdminUsersList; exports.CompanyUsersList = CompanyUsersList; exports.ContributorsList = ContributorsList; exports.RelevantUsersList = RelevantUsersList; exports.RoleUsersList = RoleUsersList; exports.UserListInAdd = UserListInAdd; exports.UsersList = UsersList; exports.UsersListByContentIds = UsersListByContentIds; exports.AllowedUsersDetails = AllowedUsersDetails; exports.ErrorDetails = ErrorDetails; exports.BlockNoteEditorMentionHoverCard = BlockNoteEditorMentionHoverCard; exports.mentionDataAttrs = mentionDataAttrs; exports.parseMentionElement = parseMentionElement; exports.createMentionInlineContentSpec = createMentionInlineContentSpec; exports.useMentionInsert = useMentionInsert; exports.BlockNoteEditorMentionSuggestionMenu = BlockNoteEditorMentionSuggestionMenu; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.BlockNoteViewerContainer = BlockNoteViewerContainer; exports.FormFeatures = FormFeatures; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.ActionBarProvider = ActionBarProvider; exports.useIsInActionBar = useIsInActionBar; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorDiscardDialog = CommonEditorDiscardDialog; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorTrigger = CommonEditorTrigger; exports.CommonAddTrigger = CommonAddTrigger; exports.CurrencyInput = CurrencyInput; exports.DatePickerPopover = DatePickerPopover; exports.nextDateRange = nextDateRange; exports.DateRangeSelector = DateRangeSelector; exports.hasOpenInnerLayer = hasOpenInnerLayer; exports.useEditorDialog = useEditorDialog; exports.EditorSheet = EditorSheet; exports.FormFieldWrapper = FormFieldWrapper; exports.EntityMultiSelector = EntityMultiSelector; exports.EntitySelector = EntitySelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.FormBlockNote = FormBlockNote; exports.FormCheckbox = FormCheckbox; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.FormBody = FormBody; exports.FormSection = FormSection; exports.FormRow = FormRow; exports.FormCol = FormCol; exports.PasswordInput = PasswordInput; exports.FormPassword = FormPassword; exports.FormPlaceAutocomplete = FormPlaceAutocomplete; exports.FormSelect = FormSelect; exports.FormSlider = FormSlider; exports.FormSwitch = FormSwitch; exports.FormTextarea = FormTextarea; exports.GdprConsentCheckbox = GdprConsentCheckbox; exports.MultiFileUploader = MultiFileUploader; exports.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; exports.cellDateTime = cellDateTime; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; exports.ContentListGrid = ContentListGrid; exports.ItalianFiscalData_default = ItalianFiscalData_default; exports.ItalianFiscalDataDisplay = ItalianFiscalDataDisplay; exports.parseFiscalData = parseFiscalData; exports.FiscalDataDisplay = FiscalDataDisplay; exports.EntityHeroLayout = EntityHeroLayout; exports.EntityHero = EntityHero; exports.EntityHeroAvatar = EntityHeroAvatar; exports.EntityHeroMetaRow = EntityHeroMetaRow; exports.EntitySection = EntitySection; exports.GdprConsentSection = GdprConsentSection; exports.AuthContainer = AuthContainer; exports.BackupCodesDialog = BackupCodesDialog; exports.TotpInput = TotpInput; exports.DisableTwoFactorDialog = DisableTwoFactorDialog; exports.PasskeyList = PasskeyList; exports.PasskeySetupDialog = PasskeySetupDialog; exports.TotpAuthenticatorList = TotpAuthenticatorList; exports.TotpSetupDialog = TotpSetupDialog; exports.TwoFactorSettings = TwoFactorSettings; exports.SecurityContainer = SecurityContainer; exports.LandingComponent = LandingComponent; exports.AcceptInvitation = AcceptInvitation; exports.ActivateAccount = ActivateAccount; exports.Cookies = Cookies; exports.ForgotPassword = ForgotPassword; exports.Login = Login; exports.Logout = Logout; exports.RefreshUser = RefreshUser; exports.ResetPassword = ResetPassword; exports.PasskeyButton = PasskeyButton; exports.TwoFactorChallenge = TwoFactorChallenge; exports.AdminIndexGrid = AdminIndexGrid; exports.AdminIndexContainer = AdminIndexContainer; exports.ADMINISTRATION_I18N_KEYS = ADMINISTRATION_I18N_KEYS; exports.AI_CONNECTIONS_I18N_KEYS = AI_CONNECTIONS_I18N_KEYS; exports.AI_CONNECTIONS_ADMIN_PAGE_URL = AI_CONNECTIONS_ADMIN_PAGE_URL; exports.AiConnectionsProvider = AiConnectionsProvider; exports.useAiConnections = useAiConnections; exports.AiConnectionDeleter = AiConnectionDeleter; exports.AiConnectionEditor = AiConnectionEditor; exports.AiConnectionTypeCard = AiConnectionTypeCard; exports.AI_CONNECTION_TYPE_ORDER = AI_CONNECTION_TYPE_ORDER; exports.AiConnectionsContainer = AiConnectionsContainer; exports.CompanyContent = CompanyContent; exports.TokenStatusIndicator = TokenStatusIndicator; exports.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.CompaniesListContainer = CompaniesListContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.HowToCommandViewer = HowToCommandViewer; exports.HowToCommand = HowToCommand; exports.HowToDeleter = HowToDeleter; exports.HowToMultiSelector = HowToMultiSelector; exports.HowToEditor = HowToEditor; exports.HowToProvider = HowToProvider; exports.useHowToContext = useHowToContext; exports.HowToContent = HowToContent; exports.HowToDetails = HowToDetails; exports.HowToContainer = HowToContainer; exports.HowToReindexButton = HowToReindexButton; exports.HowToList = HowToList; exports.HowToListContainer = HowToListContainer; exports.HowToSelector = HowToSelector; exports.AssistantComposer = AssistantComposer; exports.MessageSourcesPanel = MessageSourcesPanel; exports.MessageItem = MessageItem; exports.MessageList = MessageList; exports.AssistantThread = AssistantThread; exports.HandbookAskSheet = HandbookAskSheet; exports.HandbookSyncButton = HandbookSyncButton; exports.HandbookIndexStatus = HandbookIndexStatus; exports.HandbookSectionGroup = HandbookSectionGroup; exports.HandbookContents = HandbookContents; exports.HandbookAdminContainer = HandbookAdminContainer; exports.HandbookPageDetails = HandbookPageDetails; exports.HandbookPageNeighbours = HandbookPageNeighbours; exports.HandbookPageToc = HandbookPageToc; exports.HandbookPageNavigator = HandbookPageNavigator; exports.HandbookPageContainer = HandbookPageContainer; exports.HandbookAskContainer = HandbookAskContainer; exports.EntityMentionLink = EntityMentionLink; exports.AssistantProvider = AssistantProvider; exports.useAssistantContext = useAssistantContext; exports.AssistantEmptyState = AssistantEmptyState; exports.AssistantContainer = AssistantContainer; exports.AssistantBlockNoteComposer = AssistantBlockNoteComposer; exports.AssistantPageContainer = AssistantPageContainer; exports.ApprovalActionCard = ApprovalActionCard; exports.AssistantContainerWithApprovals = AssistantContainerWithApprovals; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.NotificationIcon = NotificationIcon; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationViewSwitcher = NotificationViewSwitcher; 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.OAuthCompanySelector = OAuthCompanySelector; 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.mapOnboardingSide = mapOnboardingSide; exports.OnboardingProvider = OnboardingProvider; exports.useOnboarding = useOnboarding; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.ViewportProvider = ViewportProvider; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.formatInterval = formatInterval; exports.formatCurrency = formatCurrency; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
27754
+ //# sourceMappingURL=chunk-425GLYXN.js.map