@carlonicora/nextjs-jsonapi 3.25.0 → 3.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BlockNoteEditor-HKS6AXDA.js → BlockNoteEditor-4EIKMNY3.js} +20 -10
- package/dist/BlockNoteEditor-4EIKMNY3.js.map +1 -0
- package/dist/{BlockNoteEditor-46O3JC4Z.mjs → BlockNoteEditor-AXYVDDXM.mjs} +13 -3
- package/dist/{BlockNoteEditor-46O3JC4Z.mjs.map → BlockNoteEditor-AXYVDDXM.mjs.map} +1 -1
- package/dist/billing/index.js +335 -335
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-Y3OKEQGL.js → chunk-ABVTYQIJ.js} +578 -363
- package/dist/chunk-ABVTYQIJ.js.map +1 -0
- package/dist/{chunk-KLV6RLDE.js → chunk-GKDHYB2R.js} +2 -2
- package/dist/chunk-GKDHYB2R.js.map +1 -0
- package/dist/{chunk-XDYILJ2S.mjs → chunk-QWZAGQWJ.mjs} +546 -331
- package/dist/chunk-QWZAGQWJ.mjs.map +1 -0
- package/dist/{chunk-4Z2UONN2.mjs → chunk-U65JPKO3.mjs} +2 -2
- package/dist/chunk-U65JPKO3.mjs.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +16 -3
- package/dist/components/index.d.ts +16 -3
- package/dist/components/index.js +4 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +3 -1
- package/dist/contexts/index.js +2 -2
- package/dist/contexts/index.mjs +1 -1
- package/dist/features/analytics/index.js +100 -100
- package/dist/features/analytics/index.js.map +1 -1
- package/dist/features/analytics/index.mjs +5 -5
- package/dist/features/analytics/index.mjs.map +1 -1
- package/dist/features/help/index.js +36 -36
- package/dist/features/help/index.js.map +1 -1
- package/dist/features/help/index.mjs +6 -6
- package/dist/features/help/index.mjs.map +1 -1
- package/dist/features/tokenusage/index.js +103 -103
- package/dist/features/tokenusage/index.js.map +1 -1
- package/dist/features/tokenusage/index.mjs +4 -4
- package/dist/features/tokenusage/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/containers/PageContainer.tsx +1 -1
- package/src/components/containers/RoundPageContainer.tsx +60 -16
- package/src/components/containers/RoundPageContainerTitle.tsx +75 -35
- package/src/components/editors/BlockNoteEditor.tsx +13 -1
- package/src/components/forms/EntityMultiSelector.tsx +4 -4
- package/src/components/forms/EntitySelector.tsx +4 -4
- package/src/components/forms/FormBlockNote.tsx +21 -1
- package/src/components/forms/FormCheckbox.tsx +6 -2
- package/src/components/forms/__tests__/useEditorDialog.test.ts +47 -0
- package/src/components/forms/useEditorDialog.ts +22 -0
- package/src/components/navigations/Breadcrumb.tsx +45 -16
- package/src/components/navigations/Header.tsx +16 -3
- package/src/components/navigations/MobileNavigationBar.tsx +12 -0
- package/src/components/navigations/__tests__/MobileNavigationBar.spec.tsx +17 -0
- package/src/components/tables/ContentListTable.tsx +52 -32
- package/src/features/analytics/components/AnalyticsAdminFilterBar.tsx +9 -6
- package/src/features/analytics/components/AnalyticsBreakdownTable.tsx +2 -1
- package/src/features/assistant/components/parts/AssistantBlockNoteComposer.tsx +1 -1
- package/src/features/assistant/components/parts/AssistantComposer.tsx +1 -1
- package/src/features/assistant-message/components/MessageItem.tsx +2 -2
- package/src/features/assistant-message/components/parts/tabs/CitationsTab.tsx +23 -5
- package/src/features/auth/components/containers/AuthContainer.tsx +8 -1
- package/src/features/company/components/details/CompanyContent.tsx +3 -1
- package/src/features/company/components/details/CompanyDetails.tsx +9 -1
- package/src/features/company/components/details/TokenStatusIndicator.tsx +42 -13
- package/src/features/help/components/HelpHeader.tsx +7 -5
- package/src/features/tokenusage/components/TokenUsageAdminFilterBar.tsx +9 -6
- package/src/features/tokenusage/lib/__tests__/formatters.spec.ts +21 -0
- package/src/features/tokenusage/lib/formatters.ts +5 -1
- package/src/shadcnui/ui/button.tsx +1 -1
- package/src/shadcnui/ui/checkbox.tsx +1 -1
- package/src/shadcnui/ui/command.tsx +4 -4
- package/src/shadcnui/ui/dialog.tsx +2 -0
- package/src/shadcnui/ui/input.tsx +1 -1
- package/src/shadcnui/ui/popover.tsx +9 -0
- package/src/shadcnui/ui/select.tsx +1 -1
- package/src/shadcnui/ui/sheet.tsx +8 -1
- package/src/shadcnui/ui/table.tsx +2 -2
- package/src/shadcnui/ui/textarea.tsx +1 -1
- package/dist/BlockNoteEditor-HKS6AXDA.js.map +0 -1
- package/dist/chunk-4Z2UONN2.mjs.map +0 -1
- package/dist/chunk-KLV6RLDE.js.map +0 -1
- package/dist/chunk-XDYILJ2S.mjs.map +0 -1
- 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-
|
|
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-
|
|
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,7 @@ 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, "no-scrollbar max-h-72 max-md:min-h-0 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto", className),
|
|
1935
1937
|
...props
|
|
1936
1938
|
}
|
|
1937
1939
|
);
|
|
@@ -3128,6 +3130,7 @@ function PopoverContent({
|
|
|
3128
3130
|
anchor,
|
|
3129
3131
|
...props
|
|
3130
3132
|
}) {
|
|
3133
|
+
const matchesAnchorWidth = typeof className === "string" && className.includes("--anchor-width");
|
|
3131
3134
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _popover.Popover.Portal, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3132
3135
|
_popover.Popover.Positioner,
|
|
3133
3136
|
{
|
|
@@ -3143,6 +3146,11 @@ function PopoverContent({
|
|
|
3143
3146
|
"data-slot": "popover-content",
|
|
3144
3147
|
className: _chunkCAKOFJZDjs.cn.call(void 0,
|
|
3145
3148
|
"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",
|
|
3149
|
+
// Phone: never taller than the space the positioner reports (the
|
|
3150
|
+
// keyboard shrinks it), so a picker list shrinks and scrolls instead
|
|
3151
|
+
// of running under the keyboard.
|
|
3152
|
+
"max-md:max-h-(--available-height) max-md:overflow-y-auto",
|
|
3153
|
+
matchesAnchorWidth && "max-md:min-w-[min(20rem,calc(100vw-2rem))]",
|
|
3146
3154
|
className
|
|
3147
3155
|
),
|
|
3148
3156
|
...props
|
|
@@ -3377,7 +3385,7 @@ function SelectTrigger({
|
|
|
3377
3385
|
"data-slot": "select-trigger",
|
|
3378
3386
|
"data-size": size,
|
|
3379
3387
|
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",
|
|
3388
|
+
"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
3389
|
className
|
|
3382
3390
|
),
|
|
3383
3391
|
...props,
|
|
@@ -3573,7 +3581,17 @@ function SheetContent({
|
|
|
3573
3581
|
_dialog.Dialog.Close,
|
|
3574
3582
|
{
|
|
3575
3583
|
"data-slot": "sheet-close",
|
|
3576
|
-
render:
|
|
3584
|
+
render: (
|
|
3585
|
+
// Phone: a 40px tap target, moved by 8px so its centre stays where the 24px one sits.
|
|
3586
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3587
|
+
Button,
|
|
3588
|
+
{
|
|
3589
|
+
variant: "ghost",
|
|
3590
|
+
className: "absolute top-4 end-4 max-md:top-2 max-md:end-2 max-md:size-10",
|
|
3591
|
+
size: "icon-sm"
|
|
3592
|
+
}
|
|
3593
|
+
)
|
|
3594
|
+
),
|
|
3577
3595
|
children: [
|
|
3578
3596
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.XIcon, {}),
|
|
3579
3597
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: "Close" })
|
|
@@ -4466,7 +4484,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, Switch, "Switch");
|
|
|
4466
4484
|
// src/shadcnui/ui/table.tsx
|
|
4467
4485
|
|
|
4468
4486
|
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 }) });
|
|
4487
|
+
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
4488
|
}
|
|
4471
4489
|
_chunk7QVYU63Ejs.__name.call(void 0, Table, "Table");
|
|
4472
4490
|
function TableHeader({ className, ...props }) {
|
|
@@ -4518,7 +4536,7 @@ function TableCell({ className, ...props }) {
|
|
|
4518
4536
|
"td",
|
|
4519
4537
|
{
|
|
4520
4538
|
"data-slot": "table-cell",
|
|
4521
|
-
className: _chunkCAKOFJZDjs.cn.call(void 0, "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0", className),
|
|
4539
|
+
className: _chunkCAKOFJZDjs.cn.call(void 0, "p-2 align-middle whitespace-nowrap max-md:whitespace-normal [&:has([role=checkbox])]:pe-0", className),
|
|
4522
4540
|
...props
|
|
4523
4541
|
}
|
|
4524
4542
|
);
|
|
@@ -8557,7 +8575,7 @@ function EntityMultiSelector({
|
|
|
8557
8575
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { className: "w-full", disabled, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8558
8576
|
"div",
|
|
8559
8577
|
{
|
|
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" : ""}`,
|
|
8578
|
+
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
8579
|
children: [
|
|
8562
8580
|
selectedValues.length > 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
8563
8581
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-foreground min-w-0 flex-1 truncate text-start", children: triggerSummary }),
|
|
@@ -8576,7 +8594,7 @@ function EntityMultiSelector({
|
|
|
8576
8594
|
ref: searchInputRef,
|
|
8577
8595
|
placeholder,
|
|
8578
8596
|
type: "text",
|
|
8579
|
-
className: "h-8 w-full pe-7 ps-7 text-xs",
|
|
8597
|
+
className: "h-8 w-full pe-7 ps-7 text-xs max-md:text-base",
|
|
8580
8598
|
value: searchTerm,
|
|
8581
8599
|
onChange: (e) => setSearchTerm(e.target.value)
|
|
8582
8600
|
}
|
|
@@ -8591,7 +8609,7 @@ function EntityMultiSelector({
|
|
|
8591
8609
|
}
|
|
8592
8610
|
)
|
|
8593
8611
|
] }),
|
|
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) => {
|
|
8612
|
+
/* @__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
8613
|
const isSelected = selectedIds.has(option.id);
|
|
8596
8614
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8597
8615
|
"button",
|
|
@@ -8635,7 +8653,7 @@ function EntityMultiSelector({
|
|
|
8635
8653
|
"button",
|
|
8636
8654
|
{
|
|
8637
8655
|
type: "button",
|
|
8638
|
-
className: "text-muted-foreground hover:text-foreground rounded-sm p-0.5 transition-colors",
|
|
8656
|
+
className: "text-muted-foreground hover:text-foreground rounded-sm p-0.5 max-md:p-2 transition-colors",
|
|
8639
8657
|
onClick: () => removeEntity(value.id),
|
|
8640
8658
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.XIcon, { className: "size-3" })
|
|
8641
8659
|
}
|
|
@@ -9601,6 +9619,20 @@ _chunk7QVYU63Ejs.__name.call(void 0, DateRangeSelector, "DateRangeSelector");
|
|
|
9601
9619
|
// src/components/forms/useEditorDialog.ts
|
|
9602
9620
|
|
|
9603
9621
|
var openEditorStack = [];
|
|
9622
|
+
var INNER_LAYER_SELECTOR = [
|
|
9623
|
+
"[data-slot=popover-content][data-open]",
|
|
9624
|
+
"[data-slot=select-content][data-open]",
|
|
9625
|
+
"[data-slot=combobox-content][data-open]",
|
|
9626
|
+
"[data-slot=dropdown-menu-content][data-open]",
|
|
9627
|
+
"[data-slot=context-menu-content][data-open]",
|
|
9628
|
+
"[data-slot=dialog-content][data-open]",
|
|
9629
|
+
"[data-slot=alert-dialog-content][data-open]",
|
|
9630
|
+
".bn-suggestion-menu"
|
|
9631
|
+
].join(",");
|
|
9632
|
+
function hasOpenInnerLayer(doc = document) {
|
|
9633
|
+
return doc.querySelector(INNER_LAYER_SELECTOR) !== null;
|
|
9634
|
+
}
|
|
9635
|
+
_chunk7QVYU63Ejs.__name.call(void 0, hasOpenInnerLayer, "hasOpenInnerLayer");
|
|
9604
9636
|
function useEditorDialog(isFormDirty, options) {
|
|
9605
9637
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
9606
9638
|
const [showDiscardConfirm, setShowDiscardConfirm] = _react.useState.call(void 0, false);
|
|
@@ -9652,6 +9684,7 @@ function useEditorDialog(isFormDirty, options) {
|
|
|
9652
9684
|
const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (event) => {
|
|
9653
9685
|
if (event.key === "Escape" && open) {
|
|
9654
9686
|
if (openEditorStack[openEditorStack.length - 1] !== dialogId.current) return;
|
|
9687
|
+
if (hasOpenInnerLayer()) return;
|
|
9655
9688
|
event.preventDefault();
|
|
9656
9689
|
event.stopPropagation();
|
|
9657
9690
|
handleOpenChange(false);
|
|
@@ -9986,7 +10019,7 @@ function EntitySelector({
|
|
|
9986
10019
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { className: "w-full", disabled, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9987
10020
|
"div",
|
|
9988
10021
|
{
|
|
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" : ""}`,
|
|
10022
|
+
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
10023
|
children: [
|
|
9991
10024
|
/* @__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
10025
|
hasValue(effectiveValue) && !disabled && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10005,7 +10038,7 @@ function EntitySelector({
|
|
|
10005
10038
|
) }),
|
|
10006
10039
|
/* @__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
10040
|
/* @__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" }),
|
|
10041
|
+
/* @__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
10042
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10010
10043
|
Input,
|
|
10011
10044
|
{
|
|
@@ -10016,10 +10049,10 @@ function EntitySelector({
|
|
|
10016
10049
|
value: searchTerm
|
|
10017
10050
|
}
|
|
10018
10051
|
),
|
|
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,
|
|
10052
|
+
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
10053
|
_lucidereact.XIcon,
|
|
10021
10054
|
{
|
|
10022
|
-
className: "absolute top-2.5 end-2.5 h-4 w-4 cursor-pointer",
|
|
10055
|
+
className: "absolute top-2.5 max-md:top-3 end-2.5 h-4 w-4 cursor-pointer",
|
|
10023
10056
|
onClick: () => {
|
|
10024
10057
|
setSearchTerm("");
|
|
10025
10058
|
search("");
|
|
@@ -10399,7 +10432,7 @@ FileInput.displayName = "FileInput";
|
|
|
10399
10432
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
10400
10433
|
|
|
10401
10434
|
|
|
10402
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
10435
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-4EIKMNY3.js"))), {
|
|
10403
10436
|
ssr: false
|
|
10404
10437
|
});
|
|
10405
10438
|
var BlockNoteEditorContainer = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -10408,6 +10441,14 @@ var BlockNoteEditorContainer = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63
|
|
|
10408
10441
|
|
|
10409
10442
|
// src/components/forms/FormBlockNote.tsx
|
|
10410
10443
|
|
|
10444
|
+
function isEmptyDocument(value) {
|
|
10445
|
+
return value === void 0 || value === null || value === "" || Array.isArray(value) && value.length === 0;
|
|
10446
|
+
}
|
|
10447
|
+
_chunk7QVYU63Ejs.__name.call(void 0, isEmptyDocument, "isEmptyDocument");
|
|
10448
|
+
function getPath(source, path) {
|
|
10449
|
+
return path.split(".").reduce((acc, key) => acc == null ? void 0 : acc[key], source);
|
|
10450
|
+
}
|
|
10451
|
+
_chunk7QVYU63Ejs.__name.call(void 0, getPath, "getPath");
|
|
10411
10452
|
function FormBlockNote({
|
|
10412
10453
|
form,
|
|
10413
10454
|
id,
|
|
@@ -10441,6 +10482,10 @@ function FormBlockNote({
|
|
|
10441
10482
|
className: _chunkCAKOFJZDjs.cn.call(void 0,
|
|
10442
10483
|
"flex w-full flex-col",
|
|
10443
10484
|
stretch && "min-h-0 flex-1 [&>[data-slot=field]]:min-h-0 [&>[data-slot=field]]:flex-1",
|
|
10485
|
+
// Phone: the sheet is too short to share with the other fields, so the
|
|
10486
|
+
// editor stops filling the leftover space (2px in a long form) and grows
|
|
10487
|
+
// with its content instead; the sheet body does the scrolling.
|
|
10488
|
+
stretch && "max-md:min-h-64 max-md:flex-none",
|
|
10444
10489
|
className
|
|
10445
10490
|
),
|
|
10446
10491
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10466,7 +10511,11 @@ function FormBlockNote({
|
|
|
10466
10511
|
initialContent: initialContentRef.current,
|
|
10467
10512
|
onChange: (content, isEmpty) => {
|
|
10468
10513
|
lastEditorContentRef.current = content;
|
|
10469
|
-
|
|
10514
|
+
if (isEmpty && isEmptyDocument(getPath(form.formState.defaultValues, id)) && !form.getFieldState(id).isDirty) {
|
|
10515
|
+
form.resetField(id, { defaultValue: content });
|
|
10516
|
+
} else {
|
|
10517
|
+
field.onChange(content);
|
|
10518
|
+
}
|
|
10470
10519
|
_optionalChain([onEmptyChange, 'optionalCall', _286 => _286(isEmpty)]);
|
|
10471
10520
|
},
|
|
10472
10521
|
placeholder,
|
|
@@ -10498,7 +10547,17 @@ _chunk7QVYU63Ejs.__name.call(void 0, FormBlockNote, "FormBlockNote");
|
|
|
10498
10547
|
|
|
10499
10548
|
function FormCheckbox({ form, id, name, labelBefore, description, isRequired }) {
|
|
10500
10549
|
const simpleLabel = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10501
|
-
return
|
|
10550
|
+
return (
|
|
10551
|
+
// Phone: the label fills the row and is 40px tall, so the whole row toggles the box.
|
|
10552
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10553
|
+
FieldLabel,
|
|
10554
|
+
{
|
|
10555
|
+
htmlFor: id,
|
|
10556
|
+
className: `font-normal ${labelBefore ? "" : "ms-3"} max-md:min-h-10 max-md:flex-1`,
|
|
10557
|
+
children: name
|
|
10558
|
+
}
|
|
10559
|
+
)
|
|
10560
|
+
);
|
|
10502
10561
|
}, "simpleLabel");
|
|
10503
10562
|
const label = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10504
10563
|
if (!description) return simpleLabel();
|
|
@@ -10508,7 +10567,7 @@ function FormCheckbox({ form, id, name, labelBefore, description, isRequired })
|
|
|
10508
10567
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: description })
|
|
10509
10568
|
] });
|
|
10510
10569
|
}, "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: [
|
|
10570
|
+
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
10571
|
labelBefore && label(),
|
|
10513
10572
|
labelBefore && isRequired && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "ms-1 text-destructive", children: "*" }),
|
|
10514
10573
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Checkbox, { id, checked: _nullishCoalesce(field.value, () => ( false)), onCheckedChange: field.onChange }),
|
|
@@ -12477,7 +12536,7 @@ function CompanyContent({ company, actions }) {
|
|
|
12477
12536
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
12478
12537
|
if (!company) return null;
|
|
12479
12538
|
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: [
|
|
12539
|
+
/* @__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
12540
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SectionHeader, { level: 2, children: company.name }),
|
|
12482
12541
|
actions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-x-2", children: actions })
|
|
12483
12542
|
] }),
|
|
@@ -12534,7 +12593,12 @@ var _link = require('next/link'); var _link2 = _interopRequireDefault(_link);
|
|
|
12534
12593
|
|
|
12535
12594
|
|
|
12536
12595
|
var asWholeCredits = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (value) => Math.trunc(value).toLocaleString(), "asWholeCredits");
|
|
12537
|
-
function TokenStatusIndicator({
|
|
12596
|
+
function TokenStatusIndicator({
|
|
12597
|
+
className,
|
|
12598
|
+
size = "md",
|
|
12599
|
+
showExtraPages = true,
|
|
12600
|
+
href
|
|
12601
|
+
}) {
|
|
12538
12602
|
const { company } = useCurrentUserContext();
|
|
12539
12603
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
12540
12604
|
if (!company) return null;
|
|
@@ -12616,20 +12680,32 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
12616
12680
|
/* @__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
12681
|
] })
|
|
12618
12682
|
] });
|
|
12683
|
+
const badge = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
12684
|
+
getBatteryIcon(),
|
|
12685
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCAKOFJZDjs.cn.call(void 0, textSize, "text-muted-foreground font-medium leading-none"), children: asWholeCredits(availableMonthlyCredits) }),
|
|
12686
|
+
showExtraPages && availableExtraCredits > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "inline-flex items-center gap-0.5", children: [
|
|
12687
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircle, { className: _chunkCAKOFJZDjs.cn.call(void 0, smallIconSize, "text-blue-500") }),
|
|
12688
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCAKOFJZDjs.cn.call(void 0, textSize, "text-blue-500 font-medium leading-none"), children: asWholeCredits(availableExtraCredits) })
|
|
12689
|
+
] })
|
|
12690
|
+
] });
|
|
12691
|
+
if (href) {
|
|
12692
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12693
|
+
_link2.default,
|
|
12694
|
+
{
|
|
12695
|
+
href,
|
|
12696
|
+
className: _chunkCAKOFJZDjs.cn.call(void 0, "inline-flex min-h-10 min-w-10 items-center justify-center gap-1.5 px-1", className),
|
|
12697
|
+
"aria-label": t("billing.tokens.status", { defaultValue: "Page Status" }),
|
|
12698
|
+
children: badge
|
|
12699
|
+
}
|
|
12700
|
+
);
|
|
12701
|
+
}
|
|
12619
12702
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
|
|
12620
|
-
/* @__PURE__ */ _jsxruntime.
|
|
12703
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12621
12704
|
TooltipTrigger,
|
|
12622
12705
|
{
|
|
12623
12706
|
className: _chunkCAKOFJZDjs.cn.call(void 0, "inline-flex items-center gap-1.5 cursor-default", className),
|
|
12624
12707
|
"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
|
-
]
|
|
12708
|
+
children: badge
|
|
12633
12709
|
}
|
|
12634
12710
|
),
|
|
12635
12711
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { side: "top", className: "max-w-xs", children: tooltipContent })
|
|
@@ -12645,7 +12721,16 @@ function CompanyDetails() {
|
|
|
12645
12721
|
const { company } = useCompanyContext();
|
|
12646
12722
|
if (!company) return null;
|
|
12647
12723
|
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,
|
|
12724
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12725
|
+
ContentTitle,
|
|
12726
|
+
{
|
|
12727
|
+
module: _chunkCAKOFJZDjs.Modules.Company,
|
|
12728
|
+
type: title.type,
|
|
12729
|
+
element: title.element,
|
|
12730
|
+
functions: title.functions,
|
|
12731
|
+
className: "max-md:hidden"
|
|
12732
|
+
}
|
|
12733
|
+
),
|
|
12649
12734
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TokenStatusIndicator, { size: "md" }),
|
|
12650
12735
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyContent, { company })
|
|
12651
12736
|
] });
|
|
@@ -15056,12 +15141,41 @@ function BreadcrumbMobile({
|
|
|
15056
15141
|
if (!showRoot) return null;
|
|
15057
15142
|
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
15143
|
}
|
|
15144
|
+
if (allItems.length <= 1) {
|
|
15145
|
+
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]) });
|
|
15146
|
+
}
|
|
15059
15147
|
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',
|
|
15062
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: "text-muted-foreground size-3.5" })
|
|
15148
|
+
/* @__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: [
|
|
15149
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: _optionalChain([lastItem, 'optionalAccess', _457 => _457.name]) }),
|
|
15150
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: "text-muted-foreground size-3.5 shrink-0" })
|
|
15063
15151
|
] }),
|
|
15064
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuContent, { align: "start", children: allItems.map(
|
|
15152
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuContent, { align: "start", children: allItems.map(
|
|
15153
|
+
(item, index) => item.href ? (
|
|
15154
|
+
// The item renders AS the link, so the whole row navigates — a Link
|
|
15155
|
+
// nested inside the row only answered taps on its own text.
|
|
15156
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15157
|
+
DropdownMenuItem,
|
|
15158
|
+
{
|
|
15159
|
+
className: "min-h-10",
|
|
15160
|
+
render: (props) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15161
|
+
Link,
|
|
15162
|
+
{
|
|
15163
|
+
...props,
|
|
15164
|
+
href: item.href,
|
|
15165
|
+
className: _chunkCAKOFJZDjs.cn.call(void 0, props.className, "text-foreground font-normal"),
|
|
15166
|
+
onClick: (event) => {
|
|
15167
|
+
_optionalChain([props, 'access', _458 => _458.onClick, 'optionalCall', _459 => _459(event)]);
|
|
15168
|
+
_optionalChain([item, 'access', _460 => _460.onClick, 'optionalCall', _461 => _461()]);
|
|
15169
|
+
},
|
|
15170
|
+
children: props.children
|
|
15171
|
+
}
|
|
15172
|
+
),
|
|
15173
|
+
children: item.name
|
|
15174
|
+
},
|
|
15175
|
+
index
|
|
15176
|
+
)
|
|
15177
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuItem, { className: "min-h-10", children: item.name }, index)
|
|
15178
|
+
) })
|
|
15065
15179
|
] });
|
|
15066
15180
|
}
|
|
15067
15181
|
_chunk7QVYU63Ejs.__name.call(void 0, BreadcrumbMobile, "BreadcrumbMobile");
|
|
@@ -15069,7 +15183,7 @@ function BreadcrumbNavigation({ items, rootLabel, showRoot = true }) {
|
|
|
15069
15183
|
const generateUrl = usePageUrlGenerator();
|
|
15070
15184
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
15071
15185
|
const isMobile = _chunkCAKOFJZDjs.useIsMobile.call(void 0, );
|
|
15072
|
-
const root = _optionalChain([rootLabel, 'optionalAccess',
|
|
15186
|
+
const root = _optionalChain([rootLabel, 'optionalAccess', _462 => _462.trim, 'call', _463 => _463()]) ? rootLabel : t(`common.home`);
|
|
15073
15187
|
if (isMobile) {
|
|
15074
15188
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbMobile, { items, generateUrl, rootLabel: root, showRoot });
|
|
15075
15189
|
}
|
|
@@ -15112,7 +15226,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentTitle, "ContentTitle");
|
|
|
15112
15226
|
|
|
15113
15227
|
// src/components/navigations/Header.tsx
|
|
15114
15228
|
|
|
15115
|
-
function Header({
|
|
15229
|
+
function Header({
|
|
15230
|
+
children,
|
|
15231
|
+
mobileChildren,
|
|
15232
|
+
leftContent,
|
|
15233
|
+
logo,
|
|
15234
|
+
className,
|
|
15235
|
+
hideSidebarTriggerOnMobile
|
|
15236
|
+
}) {
|
|
15116
15237
|
const { breadcrumbs } = useSharedContext();
|
|
15117
15238
|
const rootLabel = useHeaderRootLabel();
|
|
15118
15239
|
const isRootHidden = useIsBreadcrumbRootHidden();
|
|
@@ -15137,9 +15258,9 @@ function Header({ children, mobileChildren, leftContent, logo, className }) {
|
|
|
15137
15258
|
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
15259
|
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
15260
|
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" }),
|
|
15261
|
+
sidebar && !(isMobile && hideSidebarTriggerOnMobile) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SidebarTrigger, { "aria-label": "Toggle sidebar", id: "sidebar-trigger" }),
|
|
15141
15262
|
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 }) }),
|
|
15263
|
+
/* @__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
15264
|
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
15265
|
// breadcrumb (w-full, above) takes the rest. A `w-64` cap here
|
|
15145
15266
|
// clipped consumers whose widget set outgrew 256px.
|
|
@@ -15189,6 +15310,9 @@ function MobileNavigationBar({ className } = {}) {
|
|
|
15189
15310
|
active && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, className: "bg-primary absolute inset-x-0 top-0 h-0.5" }),
|
|
15190
15311
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SlotContent, { item })
|
|
15191
15312
|
] });
|
|
15313
|
+
if (!item.href && !item.onClick) {
|
|
15314
|
+
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);
|
|
15315
|
+
}
|
|
15192
15316
|
return item.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15193
15317
|
Link,
|
|
15194
15318
|
{
|
|
@@ -15339,7 +15463,7 @@ function PageContainer({ children, testId, className }) {
|
|
|
15339
15463
|
const headerLogo = useHeaderLogo();
|
|
15340
15464
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex h-full w-full flex-col`, "data-testid": testId, children: [
|
|
15341
15465
|
/* @__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 })
|
|
15466
|
+
/* @__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
15467
|
] });
|
|
15344
15468
|
}
|
|
15345
15469
|
_chunk7QVYU63Ejs.__name.call(void 0, PageContainer, "PageContainer");
|
|
@@ -15448,12 +15572,12 @@ var _remarkgfm = require('remark-gfm'); var _remarkgfm2 = _interopRequireDefault
|
|
|
15448
15572
|
|
|
15449
15573
|
function mermaidSourceOf(node) {
|
|
15450
15574
|
const pre = node;
|
|
15451
|
-
const code = _optionalChain([pre, 'optionalAccess',
|
|
15452
|
-
if (_optionalChain([code, 'optionalAccess',
|
|
15453
|
-
const classNames = Array.isArray(_optionalChain([code, 'access',
|
|
15575
|
+
const code = _optionalChain([pre, 'optionalAccess', _464 => _464.children, 'optionalAccess', _465 => _465[0]]);
|
|
15576
|
+
if (_optionalChain([code, 'optionalAccess', _466 => _466.tagName]) !== "code") return void 0;
|
|
15577
|
+
const classNames = Array.isArray(_optionalChain([code, 'access', _467 => _467.properties, 'optionalAccess', _468 => _468.className])) ? code.properties.className : [];
|
|
15454
15578
|
if (!classNames.includes("language-mermaid")) return void 0;
|
|
15455
|
-
const text = _optionalChain([code, 'access',
|
|
15456
|
-
if (_optionalChain([text, 'optionalAccess',
|
|
15579
|
+
const text = _optionalChain([code, 'access', _469 => _469.children, 'optionalAccess', _470 => _470[0]]);
|
|
15580
|
+
if (_optionalChain([text, 'optionalAccess', _471 => _471.type]) !== "text" || typeof text.value !== "string") return void 0;
|
|
15457
15581
|
return text.value;
|
|
15458
15582
|
}
|
|
15459
15583
|
_chunk7QVYU63Ejs.__name.call(void 0, mermaidSourceOf, "mermaidSourceOf");
|
|
@@ -15604,41 +15728,74 @@ function RoundPageContainerTitle({
|
|
|
15604
15728
|
}) {
|
|
15605
15729
|
const { title } = useSharedContext();
|
|
15606
15730
|
const isMobile = _chunkCAKOFJZDjs.useIsMobile.call(void 0, );
|
|
15731
|
+
const detailsLabel = `${showDetails ? "Hide" : "Show"} ${typeof detailsTitle === "string" ? detailsTitle : "details"}`;
|
|
15732
|
+
const detailsToggle = details ? isMobile ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15733
|
+
Button,
|
|
15734
|
+
{
|
|
15735
|
+
"data-help": "page.details",
|
|
15736
|
+
variant: showDetails ? `ghost` : `default`,
|
|
15737
|
+
onClick: () => setShowDetails(!showDetails),
|
|
15738
|
+
"aria-label": detailsLabel,
|
|
15739
|
+
className: "shrink-0",
|
|
15740
|
+
children: _nullishCoalesce(detailsIcon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.InfoIcon, {})))
|
|
15741
|
+
}
|
|
15742
|
+
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
|
|
15743
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15744
|
+
TooltipTrigger,
|
|
15745
|
+
{
|
|
15746
|
+
render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15747
|
+
Button,
|
|
15748
|
+
{
|
|
15749
|
+
"data-help": "page.details",
|
|
15750
|
+
variant: showDetails ? `ghost` : `default`,
|
|
15751
|
+
onClick: () => setShowDetails(!showDetails),
|
|
15752
|
+
"aria-label": detailsLabel,
|
|
15753
|
+
className: _chunkCAKOFJZDjs.cn.call(void 0, `cursor-pointer`)
|
|
15754
|
+
}
|
|
15755
|
+
),
|
|
15756
|
+
children: _nullishCoalesce(detailsIcon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.InfoIcon, {})))
|
|
15757
|
+
}
|
|
15758
|
+
),
|
|
15759
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TooltipContent, { children: [
|
|
15760
|
+
showDetails ? "Hide" : "Show",
|
|
15761
|
+
" ",
|
|
15762
|
+
_nullishCoalesce(detailsTitle, () => ( "details"))
|
|
15763
|
+
] })
|
|
15764
|
+
] }) : null;
|
|
15607
15765
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col border-b", children: [
|
|
15608
|
-
|
|
15609
|
-
|
|
15766
|
+
isMobile ? (
|
|
15767
|
+
// Phone: "type · name" on one truncated line with the details toggle
|
|
15768
|
+
// beside it; the page controls drop to their own wrapping line below,
|
|
15769
|
+
// so they can never push the page wider than the screen.
|
|
15770
|
+
/* @__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: [
|
|
15771
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center justify-between gap-x-2", children: [
|
|
15772
|
+
/* @__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: [
|
|
15773
|
+
title.titleActions,
|
|
15774
|
+
module && module.icon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, module.icon, { className: "text-primary h-5 w-5 shrink-0" }) : title.icon,
|
|
15775
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "truncate", children: [
|
|
15776
|
+
title.type,
|
|
15777
|
+
title.element && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
15778
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, children: " \xB7 " }),
|
|
15779
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-primary font-semibold", children: title.element })
|
|
15780
|
+
] })
|
|
15781
|
+
] })
|
|
15782
|
+
] }),
|
|
15783
|
+
detailsToggle
|
|
15784
|
+
] }),
|
|
15785
|
+
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 })
|
|
15786
|
+
] })
|
|
15787
|
+
) : /* @__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: [
|
|
15788
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full gap-x-4", children: [
|
|
15610
15789
|
/* @__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
15790
|
title.titleActions,
|
|
15612
15791
|
module && module.icon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, module.icon, { className: "text-primary h-6 w-6" }) : title.icon,
|
|
15613
15792
|
title.type
|
|
15614
15793
|
] }),
|
|
15615
15794
|
/* @__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
15795
|
] }),
|
|
15621
15796
|
(title.functions || details) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-x-2", children: [
|
|
15622
15797
|
title.functions,
|
|
15623
|
-
|
|
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
|
-
] })
|
|
15798
|
+
detailsToggle
|
|
15642
15799
|
] })
|
|
15643
15800
|
] }),
|
|
15644
15801
|
title.actionBar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -15646,7 +15803,7 @@ function RoundPageContainerTitle({
|
|
|
15646
15803
|
{
|
|
15647
15804
|
"data-testid": "round-page-action-bar",
|
|
15648
15805
|
"data-help": "page.action-bar",
|
|
15649
|
-
className: "flex w-full items-center gap-x-2 border-t px-4 py-2",
|
|
15806
|
+
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
15807
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ActionBarProvider, { value: true, children: title.actionBar })
|
|
15651
15808
|
}
|
|
15652
15809
|
)
|
|
@@ -15673,7 +15830,7 @@ var railTriggerClass = _chunkCAKOFJZDjs.cn.call(void 0,
|
|
|
15673
15830
|
"data-active:text-primary dark:data-active:text-primary",
|
|
15674
15831
|
"data-active:font-medium data-active:shadow-none"
|
|
15675
15832
|
);
|
|
15676
|
-
var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access',
|
|
15833
|
+
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
15834
|
function RoundPageContainer({
|
|
15678
15835
|
module,
|
|
15679
15836
|
id,
|
|
@@ -15697,12 +15854,14 @@ function RoundPageContainer({
|
|
|
15697
15854
|
const headerLogo = useHeaderLogo();
|
|
15698
15855
|
const headerMobileChildren = useHeaderMobileChildren();
|
|
15699
15856
|
const [showDetails, setShowDetailsState] = _react.useState.call(void 0, defaultDetailsOpen);
|
|
15857
|
+
const [showDetailsMobile, setShowDetailsMobile] = _react.useState.call(void 0, false);
|
|
15700
15858
|
const isMobile = _chunkCAKOFJZDjs.useIsMobile.call(void 0, );
|
|
15859
|
+
const hasMobileNavigation = useMobileNavigationItems().length > 0;
|
|
15701
15860
|
const hasSidebar = useOptionalSidebar() !== null;
|
|
15702
15861
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
15703
15862
|
_react.useEffect.call(void 0, () => {
|
|
15704
15863
|
const match = document.cookie.split("; ").find((row) => row.startsWith(`${detailsCookieName}=`));
|
|
15705
|
-
const stored = _optionalChain([match, 'optionalAccess',
|
|
15864
|
+
const stored = _optionalChain([match, 'optionalAccess', _474 => _474.split, 'call', _475 => _475("="), 'access', _476 => _476[1]]);
|
|
15706
15865
|
if (stored === "true") setShowDetailsState(true);
|
|
15707
15866
|
else if (stored === "false") setShowDetailsState(false);
|
|
15708
15867
|
}, []);
|
|
@@ -15717,7 +15876,7 @@ function RoundPageContainer({
|
|
|
15717
15876
|
const clip = isFixed ? `overflow-hidden` : ``;
|
|
15718
15877
|
const scrollY = isFixed ? `overflow-y-auto` : ``;
|
|
15719
15878
|
const mobileBarClass = isFixed ? `` : `sticky bottom-0 z-30`;
|
|
15720
|
-
const detailsCookieName = _optionalChain([module, 'optionalAccess',
|
|
15879
|
+
const detailsCookieName = _optionalChain([module, 'optionalAccess', _477 => _477.name]) ? `${DETAILS_COOKIE_NAME}_${module.name}` : DETAILS_COOKIE_NAME;
|
|
15721
15880
|
const setShowDetails = _react.useCallback.call(void 0,
|
|
15722
15881
|
(value) => {
|
|
15723
15882
|
setShowDetailsState(value);
|
|
@@ -15746,19 +15905,24 @@ function RoundPageContainer({
|
|
|
15746
15905
|
} else {
|
|
15747
15906
|
rewriteUrl({ page: window.location.pathname, additionalParameters: { section: key } });
|
|
15748
15907
|
}
|
|
15749
|
-
_optionalChain([onSectionChange, 'optionalCall',
|
|
15908
|
+
_optionalChain([onSectionChange, 'optionalCall', _478 => _478(key)]);
|
|
15750
15909
|
},
|
|
15751
15910
|
[module, id, rewriteUrl, onSectionChange]
|
|
15752
15911
|
);
|
|
15753
|
-
const activeTabDefinition = _optionalChain([tabs, 'optionalAccess',
|
|
15754
|
-
const activeFillHeight = _optionalChain([activeTabDefinition, 'optionalAccess',
|
|
15755
|
-
const activeConstrainWidth = _optionalChain([activeTabDefinition, 'optionalAccess',
|
|
15912
|
+
const activeTabDefinition = _optionalChain([tabs, 'optionalAccess', _479 => _479.find, 'call', _480 => _480((t) => tabValue(t) === activeTab)]);
|
|
15913
|
+
const activeFillHeight = _optionalChain([activeTabDefinition, 'optionalAccess', _481 => _481.fillHeight]) === true;
|
|
15914
|
+
const activeConstrainWidth = _optionalChain([activeTabDefinition, 'optionalAccess', _482 => _482.constrainWidth]) === true;
|
|
15756
15915
|
const { ungrouped, groups } = _react.useMemo.call(void 0, () => partitionTabs(_nullishCoalesce(tabs, () => ( []))), [tabs]);
|
|
15757
15916
|
const tabItems = _react.useMemo.call(void 0,
|
|
15758
15917
|
() => Object.fromEntries((_nullishCoalesce(tabs, () => ( []))).map((tab) => [tabValue(tab), _nullishCoalesce(tab.contentLabel, () => ( tab.label))])),
|
|
15759
15918
|
[tabs]
|
|
15760
15919
|
);
|
|
15761
15920
|
const isReady = mounted;
|
|
15921
|
+
const activeDocumentTab = activeFillHeight && activeConstrainWidth;
|
|
15922
|
+
const mobileFlow = isMobile && isFixed && (!activeFillHeight || activeDocumentTab) && !fullWidth;
|
|
15923
|
+
const innerClip = mobileFlow ? `` : clip;
|
|
15924
|
+
const innerScrollY = mobileFlow ? `` : scrollY;
|
|
15925
|
+
const showMobileSectionPicker = (_nullishCoalesce(_optionalChain([tabs, 'optionalAccess', _483 => _483.length]), () => ( 0))) > 1;
|
|
15762
15926
|
if (!isReady) {
|
|
15763
15927
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
15764
15928
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -15767,6 +15931,7 @@ function RoundPageContainer({
|
|
|
15767
15931
|
leftContent: headerLeftContent,
|
|
15768
15932
|
logo: headerLogo,
|
|
15769
15933
|
mobileChildren: headerMobileChildren,
|
|
15934
|
+
hideSidebarTriggerOnMobile: hasMobileNavigation,
|
|
15770
15935
|
className: "bg-sidebar border-0",
|
|
15771
15936
|
children: headerChildren
|
|
15772
15937
|
}
|
|
@@ -15803,6 +15968,7 @@ function RoundPageContainer({
|
|
|
15803
15968
|
leftContent: headerLeftContent,
|
|
15804
15969
|
logo: headerLogo,
|
|
15805
15970
|
mobileChildren: headerMobileChildren,
|
|
15971
|
+
hideSidebarTriggerOnMobile: hasMobileNavigation,
|
|
15806
15972
|
className: "bg-sidebar border-0",
|
|
15807
15973
|
children: headerChildren
|
|
15808
15974
|
}
|
|
@@ -15826,7 +15992,7 @@ function RoundPageContainer({
|
|
|
15826
15992
|
),
|
|
15827
15993
|
children: [
|
|
15828
15994
|
/* @__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: [
|
|
15995
|
+
/* @__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
15996
|
(!fullWidth || forceHeader) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15831
15997
|
RoundPageContainerTitle,
|
|
15832
15998
|
{
|
|
@@ -15834,12 +16000,12 @@ function RoundPageContainer({
|
|
|
15834
16000
|
details,
|
|
15835
16001
|
detailsTitle,
|
|
15836
16002
|
detailsIcon,
|
|
15837
|
-
showDetails,
|
|
15838
|
-
setShowDetails,
|
|
16003
|
+
showDetails: isMobile ? showDetailsMobile : showDetails,
|
|
16004
|
+
setShowDetails: isMobile ? setShowDetailsMobile : setShowDetails,
|
|
15839
16005
|
fullWidth
|
|
15840
16006
|
}
|
|
15841
16007
|
),
|
|
15842
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkCAKOFJZDjs.cn.call(void 0, `flex w-full`, isFixed && `h-full`,
|
|
16008
|
+
/* @__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
16009
|
// Rail layout: the vertical-tab navigation is a flush-left
|
|
15844
16010
|
// sidebar of the card and the content fills the full remaining
|
|
15845
16011
|
// width (like `fullWidth`) — NOT the centred max-w-6xl column.
|
|
@@ -15849,7 +16015,11 @@ function RoundPageContainer({
|
|
|
15849
16015
|
value: activeTab,
|
|
15850
16016
|
onValueChange: handleTabChange,
|
|
15851
16017
|
orientation: "horizontal",
|
|
15852
|
-
className: _chunkCAKOFJZDjs.cn.call(void 0,
|
|
16018
|
+
className: _chunkCAKOFJZDjs.cn.call(void 0,
|
|
16019
|
+
`flex min-w-0 grow data-[orientation=horizontal]:flex-row`,
|
|
16020
|
+
isFixed && !mobileFlow && `h-full`,
|
|
16021
|
+
innerClip
|
|
16022
|
+
),
|
|
15853
16023
|
children: [
|
|
15854
16024
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15855
16025
|
"aside",
|
|
@@ -15872,32 +16042,39 @@ function RoundPageContainer({
|
|
|
15872
16042
|
]
|
|
15873
16043
|
}
|
|
15874
16044
|
),
|
|
15875
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkCAKOFJZDjs.cn.call(void 0, `flex min-w-0 grow flex-col`,
|
|
15876
|
-
railHeader && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mx-auto w-full max-w-
|
|
15877
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15878
|
-
|
|
16045
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkCAKOFJZDjs.cn.call(void 0, `flex min-w-0 grow flex-col`, innerClip), children: [
|
|
16046
|
+
railHeader && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mx-auto w-full max-w-24 px-2 pt-2 md:hidden", children: railHeader }),
|
|
16047
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16048
|
+
"div",
|
|
15879
16049
|
{
|
|
15880
|
-
|
|
15881
|
-
|
|
15882
|
-
|
|
15883
|
-
|
|
15884
|
-
|
|
15885
|
-
|
|
15886
|
-
|
|
15887
|
-
|
|
15888
|
-
|
|
15889
|
-
|
|
15890
|
-
|
|
15891
|
-
|
|
15892
|
-
|
|
15893
|
-
|
|
15894
|
-
|
|
16050
|
+
"data-testid": "round-page-rail-select",
|
|
16051
|
+
className: _chunkCAKOFJZDjs.cn.call(void 0, "p-2 md:hidden", !showMobileSectionPicker && "hidden"),
|
|
16052
|
+
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16053
|
+
Select,
|
|
16054
|
+
{
|
|
16055
|
+
items: tabItems,
|
|
16056
|
+
value: activeTab,
|
|
16057
|
+
onValueChange: (value) => {
|
|
16058
|
+
if (value) handleTabChange(value);
|
|
16059
|
+
},
|
|
16060
|
+
children: [
|
|
16061
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, {}) }),
|
|
16062
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SelectContent, { children: [
|
|
16063
|
+
ungrouped.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: tabValue(tab), children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)),
|
|
16064
|
+
groups.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SelectGroup, { children: [
|
|
16065
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectLabel, { children: group.label }),
|
|
16066
|
+
group.items.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: tabValue(tab), children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label))
|
|
16067
|
+
] }, group.label))
|
|
16068
|
+
] })
|
|
16069
|
+
]
|
|
16070
|
+
}
|
|
16071
|
+
)
|
|
15895
16072
|
}
|
|
15896
|
-
)
|
|
16073
|
+
),
|
|
15897
16074
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15898
16075
|
"div",
|
|
15899
16076
|
{
|
|
15900
|
-
className: _chunkCAKOFJZDjs.cn.call(void 0, `min-w-0 grow`, activeFillHeight ? _chunkCAKOFJZDjs.cn.call(void 0, `flex flex-col`,
|
|
16077
|
+
className: _chunkCAKOFJZDjs.cn.call(void 0, `min-w-0 grow`, activeFillHeight ? _chunkCAKOFJZDjs.cn.call(void 0, `flex flex-col`, innerClip) : _chunkCAKOFJZDjs.cn.call(void 0, innerScrollY, `p-4`)),
|
|
15901
16078
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15902
16079
|
"div",
|
|
15903
16080
|
{
|
|
@@ -15932,7 +16109,7 @@ function RoundPageContainer({
|
|
|
15932
16109
|
className: _chunkCAKOFJZDjs.cn.call(void 0,
|
|
15933
16110
|
`grow`,
|
|
15934
16111
|
isMobile ? `p-2` : `p-4`,
|
|
15935
|
-
activeFillHeight ? _chunkCAKOFJZDjs.cn.call(void 0, `flex flex-col`,
|
|
16112
|
+
activeFillHeight ? _chunkCAKOFJZDjs.cn.call(void 0, `flex flex-col`, innerClip) : innerScrollY,
|
|
15936
16113
|
fullWidth && `p-0`
|
|
15937
16114
|
),
|
|
15938
16115
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -15953,7 +16130,7 @@ function RoundPageContainer({
|
|
|
15953
16130
|
className: _chunkCAKOFJZDjs.cn.call(void 0, `w-full`, activeFillHeight && `flex flex-1 min-h-0 flex-col`),
|
|
15954
16131
|
onValueChange: handleTabChange,
|
|
15955
16132
|
children: [
|
|
15956
|
-
isMobile ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16133
|
+
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
16134
|
Select,
|
|
15958
16135
|
{
|
|
15959
16136
|
items: tabItems,
|
|
@@ -15973,7 +16150,7 @@ function RoundPageContainer({
|
|
|
15973
16150
|
className: _chunkCAKOFJZDjs.cn.call(void 0,
|
|
15974
16151
|
`flex w-full `,
|
|
15975
16152
|
isMobile ? `` : `px-4`,
|
|
15976
|
-
activeFillHeight ? `flex-1 min-h-0` :
|
|
16153
|
+
activeFillHeight ? `flex-1 min-h-0` : innerScrollY
|
|
15977
16154
|
),
|
|
15978
16155
|
children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15979
16156
|
TabsContent,
|
|
@@ -15997,10 +16174,17 @@ function RoundPageContainer({
|
|
|
15997
16174
|
}
|
|
15998
16175
|
) })
|
|
15999
16176
|
] }),
|
|
16000
|
-
details && (isMobile ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Sheet, { open:
|
|
16001
|
-
|
|
16002
|
-
|
|
16003
|
-
|
|
16177
|
+
details && (isMobile ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Sheet, { open: showDetailsMobile, onOpenChange: setShowDetailsMobile, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16178
|
+
SheetContent,
|
|
16179
|
+
{
|
|
16180
|
+
side: "end",
|
|
16181
|
+
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",
|
|
16182
|
+
children: [
|
|
16183
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTitle, { children: _nullishCoalesce(detailsTitle, () => ( "Details")) }) }),
|
|
16184
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-y-auto p-6 pt-0", children: details })
|
|
16185
|
+
]
|
|
16186
|
+
}
|
|
16187
|
+
) }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16004
16188
|
"div",
|
|
16005
16189
|
{
|
|
16006
16190
|
className: _chunkCAKOFJZDjs.cn.call(void 0,
|
|
@@ -16135,14 +16319,14 @@ function BlockNoteEditorMentionHoverCard({
|
|
|
16135
16319
|
const entityType = target.dataset.mentionType;
|
|
16136
16320
|
const alias = target.dataset.mentionAlias;
|
|
16137
16321
|
setHovered((prev) => {
|
|
16138
|
-
if (_optionalChain([prev, 'optionalAccess',
|
|
16322
|
+
if (_optionalChain([prev, 'optionalAccess', _484 => _484.id]) === id && _optionalChain([prev, 'optionalAccess', _485 => _485.element]) === target) return prev;
|
|
16139
16323
|
return { id, entityType, alias, element: target };
|
|
16140
16324
|
});
|
|
16141
16325
|
}, "handleMouseOver");
|
|
16142
16326
|
const handleMouseOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
16143
16327
|
const target = e.target.closest("[data-mention-id]");
|
|
16144
16328
|
if (!target) return;
|
|
16145
|
-
const related = _optionalChain([e, 'access',
|
|
16329
|
+
const related = _optionalChain([e, 'access', _486 => _486.relatedTarget, 'optionalAccess', _487 => _487.closest, 'call', _488 => _488("[data-mention-id]")]);
|
|
16146
16330
|
if (related) return;
|
|
16147
16331
|
scheduleClose();
|
|
16148
16332
|
}, "handleMouseOut");
|
|
@@ -16156,7 +16340,7 @@ function BlockNoteEditorMentionHoverCard({
|
|
|
16156
16340
|
}, [containerRef, mentionResolveFn, cancelClose, scheduleClose]);
|
|
16157
16341
|
if (!hovered || !mentionResolveFn) return null;
|
|
16158
16342
|
const resolved = mentionResolveFn(hovered.id, hovered.entityType, hovered.alias);
|
|
16159
|
-
if (!_optionalChain([resolved, 'optionalAccess',
|
|
16343
|
+
if (!_optionalChain([resolved, 'optionalAccess', _489 => _489.HoverContent])) return null;
|
|
16160
16344
|
const ContentComponent = resolved.HoverContent;
|
|
16161
16345
|
const rect = hovered.element.getBoundingClientRect();
|
|
16162
16346
|
return _reactdom.createPortal.call(void 0,
|
|
@@ -16200,28 +16384,28 @@ var parseMentionElement = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
16200
16384
|
}, "parseMentionElement");
|
|
16201
16385
|
var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn, disableMention, nameResolver) => {
|
|
16202
16386
|
const MentionExternalHTML = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
|
|
16203
|
-
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall',
|
|
16387
|
+
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _490 => _490(props.id, props.entityType, props.alias)]), () => ( props.alias));
|
|
16204
16388
|
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
16389
|
"@",
|
|
16206
16390
|
displayName
|
|
16207
16391
|
] });
|
|
16208
16392
|
}, "MentionExternalHTML");
|
|
16209
16393
|
const Mention = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function Mention2(props) {
|
|
16210
|
-
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall',
|
|
16394
|
+
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _491 => _491(props.id, props.entityType, props.alias)]), () => ( props.alias));
|
|
16211
16395
|
if (disableMention) {
|
|
16212
|
-
const resolved2 = _optionalChain([resolveFn, 'optionalCall',
|
|
16213
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess',
|
|
16396
|
+
const resolved2 = _optionalChain([resolveFn, 'optionalCall', _492 => _492(props.id, props.entityType, displayName)]);
|
|
16397
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _493 => _493.url]), () => ( "#")), className: "text-primary", children: [
|
|
16214
16398
|
"@",
|
|
16215
16399
|
displayName
|
|
16216
16400
|
] });
|
|
16217
16401
|
}
|
|
16218
|
-
const resolved = _optionalChain([resolveFn, 'optionalCall',
|
|
16219
|
-
if (_optionalChain([resolved, 'optionalAccess',
|
|
16402
|
+
const resolved = _optionalChain([resolveFn, 'optionalCall', _494 => _494(props.id, props.entityType, displayName)]);
|
|
16403
|
+
if (_optionalChain([resolved, 'optionalAccess', _495 => _495.Inline])) {
|
|
16220
16404
|
const Custom = resolved.Inline;
|
|
16221
16405
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props, alias: displayName });
|
|
16222
16406
|
}
|
|
16223
|
-
const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess',
|
|
16224
|
-
const handleClick = _optionalChain([resolved, 'optionalAccess',
|
|
16407
|
+
const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _496 => _496.url]), () => ( "#"));
|
|
16408
|
+
const handleClick = _optionalChain([resolved, 'optionalAccess', _497 => _497.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
|
|
16225
16409
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16226
16410
|
_link2.default,
|
|
16227
16411
|
{
|
|
@@ -16329,7 +16513,7 @@ function BlockNoteEditorMentionSuggestionMenu({
|
|
|
16329
16513
|
if (!suggestionMenuComponent) return void 0;
|
|
16330
16514
|
const Component2 = suggestionMenuComponent;
|
|
16331
16515
|
const Wrapped = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
|
|
16332
|
-
const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access',
|
|
16516
|
+
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
16517
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16334
16518
|
Component2,
|
|
16335
16519
|
{
|
|
@@ -16338,7 +16522,7 @@ function BlockNoteEditorMentionSuggestionMenu({
|
|
|
16338
16522
|
selectedIndex: isSentinelOnly ? void 0 : props.selectedIndex,
|
|
16339
16523
|
onItemClick: (item) => {
|
|
16340
16524
|
if (item.title === KEEP_OPEN_SENTINEL_TITLE) return;
|
|
16341
|
-
_optionalChain([props, 'access',
|
|
16525
|
+
_optionalChain([props, 'access', _501 => _501.onItemClick, 'optionalCall', _502 => _502(item)]);
|
|
16342
16526
|
}
|
|
16343
16527
|
}
|
|
16344
16528
|
);
|
|
@@ -16533,10 +16717,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
|
16533
16717
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16534
16718
|
Checkbox,
|
|
16535
16719
|
{
|
|
16536
|
-
checked: _optionalChain([params, 'access',
|
|
16720
|
+
checked: _optionalChain([params, 'access', _503 => _503.checkedIds, 'optionalAccess', _504 => _504.includes, 'call', _505 => _505(row.getValue(params.name))]) || false,
|
|
16537
16721
|
onCheckedChange: (value) => {
|
|
16538
16722
|
row.toggleSelected(!!value);
|
|
16539
|
-
_optionalChain([params, 'access',
|
|
16723
|
+
_optionalChain([params, 'access', _506 => _506.toggleId, 'optionalCall', _507 => _507(row.getValue(params.name))]);
|
|
16540
16724
|
},
|
|
16541
16725
|
"aria-label": "Select row"
|
|
16542
16726
|
}
|
|
@@ -16595,7 +16779,7 @@ function useJsonApiGet(params) {
|
|
|
16595
16779
|
const [response, setResponse] = _react.useState.call(void 0, null);
|
|
16596
16780
|
const isMounted = _react.useRef.call(void 0, true);
|
|
16597
16781
|
const fetchData = _react.useCallback.call(void 0, async () => {
|
|
16598
|
-
if (_optionalChain([params, 'access',
|
|
16782
|
+
if (_optionalChain([params, 'access', _508 => _508.options, 'optionalAccess', _509 => _509.enabled]) === false) return;
|
|
16599
16783
|
setLoading(true);
|
|
16600
16784
|
setError(null);
|
|
16601
16785
|
try {
|
|
@@ -16622,9 +16806,9 @@ function useJsonApiGet(params) {
|
|
|
16622
16806
|
setLoading(false);
|
|
16623
16807
|
}
|
|
16624
16808
|
}
|
|
16625
|
-
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access',
|
|
16809
|
+
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _510 => _510.options, 'optionalAccess', _511 => _511.enabled])]);
|
|
16626
16810
|
const fetchNextPage = _react.useCallback.call(void 0, async () => {
|
|
16627
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
16811
|
+
if (!_optionalChain([response, 'optionalAccess', _512 => _512.nextPage])) return;
|
|
16628
16812
|
setLoading(true);
|
|
16629
16813
|
try {
|
|
16630
16814
|
const nextResponse = await response.nextPage();
|
|
@@ -16645,7 +16829,7 @@ function useJsonApiGet(params) {
|
|
|
16645
16829
|
}
|
|
16646
16830
|
}, [response]);
|
|
16647
16831
|
const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
|
|
16648
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
16832
|
+
if (!_optionalChain([response, 'optionalAccess', _513 => _513.prevPage])) return;
|
|
16649
16833
|
setLoading(true);
|
|
16650
16834
|
try {
|
|
16651
16835
|
const prevResponse = await response.prevPage();
|
|
@@ -16671,15 +16855,15 @@ function useJsonApiGet(params) {
|
|
|
16671
16855
|
return () => {
|
|
16672
16856
|
isMounted.current = false;
|
|
16673
16857
|
};
|
|
16674
|
-
}, [fetchData, ..._optionalChain([params, 'access',
|
|
16858
|
+
}, [fetchData, ..._optionalChain([params, 'access', _514 => _514.options, 'optionalAccess', _515 => _515.deps]) || []]);
|
|
16675
16859
|
return {
|
|
16676
16860
|
data,
|
|
16677
16861
|
loading,
|
|
16678
16862
|
error,
|
|
16679
16863
|
response,
|
|
16680
16864
|
refetch: fetchData,
|
|
16681
|
-
hasNextPage: !!_optionalChain([response, 'optionalAccess',
|
|
16682
|
-
hasPreviousPage: !!_optionalChain([response, 'optionalAccess',
|
|
16865
|
+
hasNextPage: !!_optionalChain([response, 'optionalAccess', _516 => _516.next]),
|
|
16866
|
+
hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _517 => _517.prev]),
|
|
16683
16867
|
fetchNextPage,
|
|
16684
16868
|
fetchPreviousPage
|
|
16685
16869
|
};
|
|
@@ -16757,17 +16941,17 @@ function useJsonApiMutation(config) {
|
|
|
16757
16941
|
if (apiResponse.ok) {
|
|
16758
16942
|
const resultData = apiResponse.data;
|
|
16759
16943
|
setData(resultData);
|
|
16760
|
-
_optionalChain([config, 'access',
|
|
16944
|
+
_optionalChain([config, 'access', _518 => _518.onSuccess, 'optionalCall', _519 => _519(resultData)]);
|
|
16761
16945
|
return resultData;
|
|
16762
16946
|
} else {
|
|
16763
16947
|
setError(apiResponse.error);
|
|
16764
|
-
_optionalChain([config, 'access',
|
|
16948
|
+
_optionalChain([config, 'access', _520 => _520.onError, 'optionalCall', _521 => _521(apiResponse.error)]);
|
|
16765
16949
|
return null;
|
|
16766
16950
|
}
|
|
16767
16951
|
} catch (err) {
|
|
16768
16952
|
const errorMessage = err instanceof Error ? err.message : "Unknown error";
|
|
16769
16953
|
setError(errorMessage);
|
|
16770
|
-
_optionalChain([config, 'access',
|
|
16954
|
+
_optionalChain([config, 'access', _522 => _522.onError, 'optionalCall', _523 => _523(errorMessage)]);
|
|
16771
16955
|
return null;
|
|
16772
16956
|
} finally {
|
|
16773
16957
|
setLoading(false);
|
|
@@ -16840,7 +17024,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
16840
17024
|
{
|
|
16841
17025
|
href: hasRole(_chunk4Z45NYPRjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
16842
17026
|
page: "/administration",
|
|
16843
|
-
id: _optionalChain([_chunkCAKOFJZDjs.Modules, 'access',
|
|
17027
|
+
id: _optionalChain([_chunkCAKOFJZDjs.Modules, 'access', _524 => _524.Company, 'access', _525 => _525.pageUrl, 'optionalAccess', _526 => _526.substring, 'call', _527 => _527(1)]),
|
|
16844
17028
|
childPage: company.id
|
|
16845
17029
|
}) : generateUrl({ page: _chunkCAKOFJZDjs.Modules.Company, id: company.id }),
|
|
16846
17030
|
children: row.getValue("name")
|
|
@@ -16856,7 +17040,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
16856
17040
|
})
|
|
16857
17041
|
};
|
|
16858
17042
|
const columns = _react.useMemo.call(void 0, () => {
|
|
16859
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
17043
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _528 => _528[field], 'optionalCall', _529 => _529()])).filter((col) => col !== void 0);
|
|
16860
17044
|
}, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
|
|
16861
17045
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
16862
17046
|
}, "useCompanyTableStructure");
|
|
@@ -16868,7 +17052,7 @@ var GRACE_DAYS = 3;
|
|
|
16868
17052
|
var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
|
|
16869
17053
|
if (!currentUser || !_chunk4Z45NYPRjs.isRolesConfigured.call(void 0, )) return false;
|
|
16870
17054
|
const adminRoleId = _chunk4Z45NYPRjs.getRoleId.call(void 0, ).Administrator;
|
|
16871
|
-
return !!_optionalChain([currentUser, 'access',
|
|
17055
|
+
return !!_optionalChain([currentUser, 'access', _530 => _530.roles, 'optionalAccess', _531 => _531.some, 'call', _532 => _532((role) => role.id === adminRoleId)]);
|
|
16872
17056
|
}, "isAdministrator");
|
|
16873
17057
|
function useSubscriptionStatus() {
|
|
16874
17058
|
const { company, currentUser } = useCurrentUserContext();
|
|
@@ -16986,7 +17170,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
16986
17170
|
})
|
|
16987
17171
|
};
|
|
16988
17172
|
const columns = _react.useMemo.call(void 0, () => {
|
|
16989
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
17173
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _533 => _533[field], 'optionalCall', _534 => _534()])).filter((col) => col !== void 0);
|
|
16990
17174
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
16991
17175
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
16992
17176
|
}, "useRoleTableStructure");
|
|
@@ -17031,8 +17215,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, formatCurrency, "formatCurrency");
|
|
|
17031
17215
|
var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
17032
17216
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
17033
17217
|
const generateUrl = usePageUrlGenerator();
|
|
17034
|
-
const onClone = _optionalChain([params, 'access',
|
|
17035
|
-
const onExport = _optionalChain([params, 'access',
|
|
17218
|
+
const onClone = _optionalChain([params, 'access', _535 => _535.context, 'optionalAccess', _536 => _536.onClone]);
|
|
17219
|
+
const onExport = _optionalChain([params, 'access', _537 => _537.context, 'optionalAccess', _538 => _538.onExport]);
|
|
17036
17220
|
const tableData = _react.useMemo.call(void 0, () => {
|
|
17037
17221
|
return params.data.map((price) => {
|
|
17038
17222
|
const entry = { jsonApiData: price };
|
|
@@ -17097,7 +17281,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
|
|
|
17097
17281
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex flex-wrap items-center gap-1", children: [
|
|
17098
17282
|
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
17283
|
price.isTrial && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.trial") }),
|
|
17100
|
-
_optionalChain([price, 'access',
|
|
17284
|
+
_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
17285
|
] });
|
|
17102
17286
|
}, "cell"),
|
|
17103
17287
|
enableSorting: false,
|
|
@@ -17145,7 +17329,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
|
|
|
17145
17329
|
})
|
|
17146
17330
|
};
|
|
17147
17331
|
const columns = _react.useMemo.call(void 0, () => {
|
|
17148
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
17332
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _541 => _541[field], 'optionalCall', _542 => _542()])).filter((col) => col !== void 0);
|
|
17149
17333
|
}, [params.fields, fieldColumnMap, t, generateUrl, onClone, onExport]);
|
|
17150
17334
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
17151
17335
|
}, "useStripePriceTableStructure");
|
|
@@ -17204,7 +17388,7 @@ var useStripeProductTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.cal
|
|
|
17204
17388
|
})
|
|
17205
17389
|
};
|
|
17206
17390
|
const columns = _react.useMemo.call(void 0, () => {
|
|
17207
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
17391
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _543 => _543[field], 'optionalCall', _544 => _544()])).filter((col) => col !== void 0);
|
|
17208
17392
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
17209
17393
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
17210
17394
|
}, "useStripeProductTableStructure");
|
|
@@ -17226,7 +17410,7 @@ function parseQuestionnaire(questionnaire) {
|
|
|
17226
17410
|
_chunk7QVYU63Ejs.__name.call(void 0, parseQuestionnaire, "parseQuestionnaire");
|
|
17227
17411
|
var useWaitlistTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
17228
17412
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
17229
|
-
const onInvite = _optionalChain([params, 'access',
|
|
17413
|
+
const onInvite = _optionalChain([params, 'access', _545 => _545.context, 'optionalAccess', _546 => _546.onInvite]);
|
|
17230
17414
|
const tableData = _react.useMemo.call(void 0, () => {
|
|
17231
17415
|
return params.data.map((entry) => {
|
|
17232
17416
|
const row = { jsonApiData: entry };
|
|
@@ -17306,7 +17490,7 @@ var useWaitlistTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
|
|
|
17306
17490
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
17307
17491
|
const entry = row.original.jsonApiData;
|
|
17308
17492
|
if (entry.status === "confirmed") {
|
|
17309
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Button, { size: "sm", variant: "outline", onClick: () => _optionalChain([onInvite, 'optionalCall',
|
|
17493
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Button, { size: "sm", variant: "outline", onClick: () => _optionalChain([onInvite, 'optionalCall', _547 => _547(entry)]), children: [
|
|
17310
17494
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Send, { className: "me-2 h-4 w-4" }),
|
|
17311
17495
|
t("waitlist.admin.actions.invite")
|
|
17312
17496
|
] });
|
|
@@ -17324,7 +17508,7 @@ var useWaitlistTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
|
|
|
17324
17508
|
})
|
|
17325
17509
|
};
|
|
17326
17510
|
const columns = _react.useMemo.call(void 0, () => {
|
|
17327
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
17511
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _548 => _548[field], 'optionalCall', _549 => _549()])).filter((col) => col !== void 0);
|
|
17328
17512
|
}, [params.fields, fieldColumnMap, t]);
|
|
17329
17513
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
17330
17514
|
}, "useWaitlistTableStructure");
|
|
@@ -17425,11 +17609,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
17425
17609
|
return params.fields.map((field) => {
|
|
17426
17610
|
const localHandler = fieldColumnMap[field];
|
|
17427
17611
|
if (localHandler) return localHandler();
|
|
17428
|
-
const customHandler = _optionalChain([params, 'access',
|
|
17612
|
+
const customHandler = _optionalChain([params, 'access', _550 => _550.context, 'optionalAccess', _551 => _551.customCells, 'optionalAccess', _552 => _552[field]]);
|
|
17429
17613
|
if (customHandler) return customHandler({ t });
|
|
17430
17614
|
return void 0;
|
|
17431
17615
|
}).filter((col) => col !== void 0);
|
|
17432
|
-
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access',
|
|
17616
|
+
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _553 => _553.context, 'optionalAccess', _554 => _554.customCells])]);
|
|
17433
17617
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
17434
17618
|
}, "useContentTableStructure");
|
|
17435
17619
|
|
|
@@ -17655,14 +17839,14 @@ function useOAuthConsent(params, options) {
|
|
|
17655
17839
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
17656
17840
|
const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
|
|
17657
17841
|
const [companyId, setCompanyId] = _react.useState.call(void 0, void 0);
|
|
17658
|
-
const contextCompanyId = _optionalChain([useCurrentUserContextOptional, 'call',
|
|
17659
|
-
const currentCompanyId = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
17842
|
+
const contextCompanyId = _optionalChain([useCurrentUserContextOptional, 'call', _555 => _555(), 'optionalAccess', _556 => _556.company, 'optionalAccess', _557 => _557.id]);
|
|
17843
|
+
const currentCompanyId = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _558 => _558.defaultCompanyId]), () => ( contextCompanyId));
|
|
17660
17844
|
_react.useEffect.call(void 0, () => {
|
|
17661
|
-
const companies = _nullishCoalesce(_optionalChain([clientInfo, 'optionalAccess',
|
|
17845
|
+
const companies = _nullishCoalesce(_optionalChain([clientInfo, 'optionalAccess', _559 => _559.companies]), () => ( []));
|
|
17662
17846
|
if (companies.length === 0) return;
|
|
17663
17847
|
if (companyId && companies.some((company) => company.id === companyId)) return;
|
|
17664
17848
|
const current = currentCompanyId ? companies.find((company) => company.id === currentCompanyId) : void 0;
|
|
17665
|
-
setCompanyId(_nullishCoalesce(_optionalChain([current, 'optionalAccess',
|
|
17849
|
+
setCompanyId(_nullishCoalesce(_optionalChain([current, 'optionalAccess', _560 => _560.id]), () => ( _optionalChain([companies, 'access', _561 => _561[0], 'optionalAccess', _562 => _562.id]))));
|
|
17666
17850
|
}, [clientInfo, currentCompanyId, companyId]);
|
|
17667
17851
|
_react.useEffect.call(void 0, () => {
|
|
17668
17852
|
const fetchInfo = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
@@ -17780,7 +17964,7 @@ function ContentTableSearch({ data }) {
|
|
|
17780
17964
|
const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
17781
17965
|
if (!isExpanded) {
|
|
17782
17966
|
setIsFocused(true);
|
|
17783
|
-
setTimeout(() => _optionalChain([inputRef, 'access',
|
|
17967
|
+
setTimeout(() => _optionalChain([inputRef, 'access', _563 => _563.current, 'optionalAccess', _564 => _564.focus, 'call', _565 => _565()]), 50);
|
|
17784
17968
|
}
|
|
17785
17969
|
}, "handleSearchIconClick");
|
|
17786
17970
|
const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -17866,7 +18050,7 @@ function getGroupKeys(item, field) {
|
|
|
17866
18050
|
return [String(_nullishCoalesce(value, () => ( "")))];
|
|
17867
18051
|
}
|
|
17868
18052
|
_chunk7QVYU63Ejs.__name.call(void 0, getGroupKeys, "getGroupKeys");
|
|
17869
|
-
var isClassComponent = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (component) => typeof component === "function" && !!_optionalChain([component, 'access',
|
|
18053
|
+
var isClassComponent = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (component) => typeof component === "function" && !!_optionalChain([component, 'access', _566 => _566.prototype, 'optionalAccess', _567 => _567.isReactComponent]), "isClassComponent");
|
|
17870
18054
|
function StableCell({ render, context }) {
|
|
17871
18055
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: render(context) });
|
|
17872
18056
|
}
|
|
@@ -17881,6 +18065,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, renderCell, "renderCell");
|
|
|
17881
18065
|
var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function ContentListTable2(props) {
|
|
17882
18066
|
const { data, fields, checkedIds, toggleId, allowSearch, filters: _filters, fullWidth, onRowClick } = props;
|
|
17883
18067
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
18068
|
+
const isMobile = _chunkCAKOFJZDjs.useIsMobile.call(void 0, );
|
|
17884
18069
|
const [expanded, setExpanded] = _react.useState.call(void 0,
|
|
17885
18070
|
props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
|
|
17886
18071
|
);
|
|
@@ -17889,7 +18074,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17889
18074
|
if (data.isLoaded) setPendingDirection(null);
|
|
17890
18075
|
}, [data.isLoaded]);
|
|
17891
18076
|
const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
|
|
17892
|
-
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
18077
|
+
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _568 => _568.data]), () => ( EMPTY_ARRAY)),
|
|
17893
18078
|
fields,
|
|
17894
18079
|
checkedIds,
|
|
17895
18080
|
toggleId,
|
|
@@ -17913,7 +18098,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17913
18098
|
...props.renderExpandedRow && {
|
|
17914
18099
|
getExpandedRowModel: _reacttable.getExpandedRowModel.call(void 0, ),
|
|
17915
18100
|
// 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',
|
|
18101
|
+
getRowId: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (row, index) => _nullishCoalesce(_optionalChain([row, 'access', _569 => _569.jsonApiData, 'optionalAccess', _570 => _570.id]), () => ( String(index))), "getRowId"),
|
|
17917
18102
|
getRowCanExpand: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => true, "getRowCanExpand"),
|
|
17918
18103
|
onExpandedChange: setExpanded,
|
|
17919
18104
|
state: { expanded }
|
|
@@ -17930,7 +18115,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17930
18115
|
});
|
|
17931
18116
|
const rowModel = tableData ? table.getRowModel() : null;
|
|
17932
18117
|
const groupedRows = _react.useMemo.call(void 0, () => {
|
|
17933
|
-
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess',
|
|
18118
|
+
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _571 => _571.rows, 'optionalAccess', _572 => _572.length])) return null;
|
|
17934
18119
|
const groupMap = /* @__PURE__ */ new Map();
|
|
17935
18120
|
for (const row of rowModel.rows) {
|
|
17936
18121
|
const keys = getGroupKeys(row.original, props.groupBy);
|
|
@@ -17962,108 +18147,119 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17962
18147
|
}, [props.groupBy, props.groupOrder, rowModel]);
|
|
17963
18148
|
const showFooter = !props.hidePagination && !!(data.next || data.previous);
|
|
17964
18149
|
const titleIsLarge = (_nullishCoalesce(props.titleSize, () => ( (fullWidth ? `lg` : `sm`)))) === `lg`;
|
|
17965
|
-
|
|
17966
|
-
|
|
17967
|
-
|
|
17968
|
-
|
|
17969
|
-
|
|
17970
|
-
|
|
17971
|
-
|
|
17972
|
-
|
|
17973
|
-
|
|
17974
|
-
|
|
17975
|
-
|
|
17976
|
-
|
|
17977
|
-
|
|
17978
|
-
|
|
17979
|
-
|
|
17980
|
-
|
|
17981
|
-
|
|
17982
|
-
|
|
17983
|
-
|
|
17984
|
-
|
|
17985
|
-
|
|
17986
|
-
|
|
17987
|
-
|
|
17988
|
-
|
|
17989
|
-
|
|
17990
|
-
|
|
17991
|
-
|
|
17992
|
-
|
|
17993
|
-
|
|
17994
|
-
|
|
17995
|
-
|
|
18150
|
+
const titleLabel = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
18151
|
+
"div",
|
|
18152
|
+
{
|
|
18153
|
+
className: _chunkCAKOFJZDjs.cn.call(void 0,
|
|
18154
|
+
"text-muted-foreground flex items-center gap-x-2 font-light whitespace-nowrap",
|
|
18155
|
+
titleIsLarge ? `text-lg` : `text-sm`
|
|
18156
|
+
),
|
|
18157
|
+
children: [
|
|
18158
|
+
props.titleActions,
|
|
18159
|
+
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`) }),
|
|
18160
|
+
props.title
|
|
18161
|
+
]
|
|
18162
|
+
}
|
|
18163
|
+
);
|
|
18164
|
+
const hasTitleControls = !!(props.functions || props.filters || allowSearch);
|
|
18165
|
+
const titleControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
18166
|
+
props.filters,
|
|
18167
|
+
props.functions,
|
|
18168
|
+
allowSearch !== false && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTableSearch, { data })
|
|
18169
|
+
] });
|
|
18170
|
+
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: [
|
|
18171
|
+
props.title && isMobile && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
18172
|
+
"div",
|
|
18173
|
+
{
|
|
18174
|
+
"data-testid": "content-list-table-title-bar",
|
|
18175
|
+
className: "bg-card text-primary flex flex-wrap items-center gap-2 border-b p-4 font-bold",
|
|
18176
|
+
children: [
|
|
18177
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0", children: titleLabel }),
|
|
18178
|
+
hasTitleControls && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ms-auto flex flex-wrap items-center justify-end gap-2", children: titleControls })
|
|
18179
|
+
]
|
|
18180
|
+
}
|
|
18181
|
+
),
|
|
18182
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Table, { children: [
|
|
18183
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableHeader, { className: "bg-muted font-semibold", children: [
|
|
18184
|
+
props.title && !isMobile && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18185
|
+
TableHead,
|
|
18186
|
+
{
|
|
18187
|
+
className: "bg-card rounded-t-lg text-primary p-4 text-start font-bold",
|
|
18188
|
+
colSpan: tableColumns.length,
|
|
18189
|
+
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-x-2", children: [
|
|
18190
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: titleLabel }),
|
|
18191
|
+
hasTitleControls && titleControls
|
|
17996
18192
|
] })
|
|
17997
|
-
|
|
17998
|
-
}
|
|
17999
|
-
|
|
18000
|
-
|
|
18001
|
-
|
|
18002
|
-
|
|
18003
|
-
})
|
|
18004
|
-
|
|
18005
|
-
|
|
18006
|
-
|
|
18007
|
-
|
|
18193
|
+
}
|
|
18194
|
+
) }),
|
|
18195
|
+
!props.hideHeader && table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
|
|
18196
|
+
const meta = header.column.columnDef.meta;
|
|
18197
|
+
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);
|
|
18198
|
+
}) }, headerGroup.id))
|
|
18199
|
+
] }),
|
|
18200
|
+
/* @__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: [
|
|
18201
|
+
/* @__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)) }) }) }),
|
|
18202
|
+
group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
|
|
18203
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18204
|
+
TableRow,
|
|
18205
|
+
{
|
|
18206
|
+
onClick: () => _optionalChain([onRowClick, 'optionalCall', _578 => _578(row.original.jsonApiData)]),
|
|
18207
|
+
className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
|
|
18208
|
+
children: row.getVisibleCells().map((cell) => {
|
|
18209
|
+
const meta = cell.column.columnDef.meta;
|
|
18210
|
+
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);
|
|
18211
|
+
})
|
|
18212
|
+
}
|
|
18213
|
+
),
|
|
18214
|
+
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) }) })
|
|
18215
|
+
] }, row.id))
|
|
18216
|
+
] }, group.groupKey)) : rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
|
|
18008
18217
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18009
18218
|
TableRow,
|
|
18010
18219
|
{
|
|
18011
|
-
onClick: () => _optionalChain([onRowClick, 'optionalCall',
|
|
18220
|
+
onClick: () => _optionalChain([onRowClick, 'optionalCall', _580 => _580(row.original.jsonApiData)]),
|
|
18012
18221
|
className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
|
|
18013
18222
|
children: row.getVisibleCells().map((cell) => {
|
|
18014
18223
|
const meta = cell.column.columnDef.meta;
|
|
18015
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
18224
|
+
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
18225
|
})
|
|
18017
18226
|
}
|
|
18018
18227
|
),
|
|
18019
18228
|
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
|
-
|
|
18022
|
-
|
|
18023
|
-
|
|
18024
|
-
|
|
18025
|
-
|
|
18026
|
-
|
|
18027
|
-
|
|
18028
|
-
|
|
18029
|
-
|
|
18030
|
-
|
|
18031
|
-
|
|
18032
|
-
|
|
18033
|
-
|
|
18034
|
-
|
|
18035
|
-
|
|
18036
|
-
|
|
18037
|
-
|
|
18038
|
-
|
|
18039
|
-
|
|
18040
|
-
|
|
18041
|
-
|
|
18042
|
-
e
|
|
18043
|
-
|
|
18044
|
-
|
|
18045
|
-
|
|
18046
|
-
|
|
18047
|
-
|
|
18048
|
-
|
|
18049
|
-
|
|
18050
|
-
|
|
18051
|
-
|
|
18052
|
-
|
|
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
|
-
] }) }) });
|
|
18229
|
+
] }, 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."))) }) }) }),
|
|
18230
|
+
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: [
|
|
18231
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18232
|
+
Button,
|
|
18233
|
+
{
|
|
18234
|
+
variant: "outline",
|
|
18235
|
+
size: "sm",
|
|
18236
|
+
onClick: (e) => {
|
|
18237
|
+
e.preventDefault();
|
|
18238
|
+
setPendingDirection("prev");
|
|
18239
|
+
_optionalChain([data, 'access', _582 => _582.previous, 'optionalCall', _583 => _583(true)]);
|
|
18240
|
+
},
|
|
18241
|
+
disabled: !data.previous || pendingDirection !== null,
|
|
18242
|
+
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" })
|
|
18243
|
+
}
|
|
18244
|
+
),
|
|
18245
|
+
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}` : ""}` }),
|
|
18246
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18247
|
+
Button,
|
|
18248
|
+
{
|
|
18249
|
+
variant: "outline",
|
|
18250
|
+
size: "sm",
|
|
18251
|
+
onClick: (e) => {
|
|
18252
|
+
e.preventDefault();
|
|
18253
|
+
setPendingDirection("next");
|
|
18254
|
+
_optionalChain([data, 'access', _584 => _584.next, 'optionalCall', _585 => _585(true)]);
|
|
18255
|
+
},
|
|
18256
|
+
disabled: !data.next || pendingDirection !== null,
|
|
18257
|
+
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" })
|
|
18258
|
+
}
|
|
18259
|
+
)
|
|
18260
|
+
] }) }) }) })
|
|
18261
|
+
] })
|
|
18262
|
+
] }) });
|
|
18067
18263
|
}, "ContentListTable"));
|
|
18068
18264
|
|
|
18069
18265
|
// src/components/grids/ContentListGrid.tsx
|
|
@@ -18077,7 +18273,7 @@ function ContentListGrid(props) {
|
|
|
18077
18273
|
if (!data.next || !sentinelRef.current) return;
|
|
18078
18274
|
const observer = new IntersectionObserver(
|
|
18079
18275
|
(entries) => {
|
|
18080
|
-
if (_optionalChain([entries, 'access',
|
|
18276
|
+
if (_optionalChain([entries, 'access', _586 => _586[0], 'optionalAccess', _587 => _587.isIntersecting])) _optionalChain([data, 'access', _588 => _588.next, 'optionalCall', _589 => _589()]);
|
|
18081
18277
|
},
|
|
18082
18278
|
{ threshold: 0.1, rootMargin: "200px" }
|
|
18083
18279
|
);
|
|
@@ -18730,7 +18926,7 @@ function InnerAuthContainer() {
|
|
|
18730
18926
|
const { activeComponent } = useAuthContext();
|
|
18731
18927
|
if (activeComponent === null)
|
|
18732
18928
|
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 });
|
|
18929
|
+
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
18930
|
}
|
|
18735
18931
|
_chunk7QVYU63Ejs.__name.call(void 0, InnerAuthContainer, "InnerAuthContainer");
|
|
18736
18932
|
|
|
@@ -18864,7 +19060,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
18864
19060
|
newDigits[index] = digit;
|
|
18865
19061
|
setDigits(newDigits);
|
|
18866
19062
|
if (digit && index < 5) {
|
|
18867
|
-
_optionalChain([inputRefs, 'access',
|
|
19063
|
+
_optionalChain([inputRefs, 'access', _590 => _590.current, 'access', _591 => _591[index + 1], 'optionalAccess', _592 => _592.focus, 'call', _593 => _593()]);
|
|
18868
19064
|
}
|
|
18869
19065
|
const code = newDigits.join("");
|
|
18870
19066
|
if (code.length === 6 && newDigits.every((d) => d !== "")) {
|
|
@@ -18873,7 +19069,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
18873
19069
|
}, "handleChange");
|
|
18874
19070
|
const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
|
|
18875
19071
|
if (e.key === "Backspace" && !digits[index] && index > 0) {
|
|
18876
|
-
_optionalChain([inputRefs, 'access',
|
|
19072
|
+
_optionalChain([inputRefs, 'access', _594 => _594.current, 'access', _595 => _595[index - 1], 'optionalAccess', _596 => _596.focus, 'call', _597 => _597()]);
|
|
18877
19073
|
}
|
|
18878
19074
|
}, "handleKeyDown");
|
|
18879
19075
|
const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
@@ -18882,7 +19078,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
18882
19078
|
if (pastedData.length === 6) {
|
|
18883
19079
|
const newDigits = pastedData.split("");
|
|
18884
19080
|
setDigits(newDigits);
|
|
18885
|
-
_optionalChain([inputRefs, 'access',
|
|
19081
|
+
_optionalChain([inputRefs, 'access', _598 => _598.current, 'access', _599 => _599[5], 'optionalAccess', _600 => _600.focus, 'call', _601 => _601()]);
|
|
18886
19082
|
onComplete(pastedData);
|
|
18887
19083
|
}
|
|
18888
19084
|
}, "handlePaste");
|
|
@@ -19093,8 +19289,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
|
|
|
19093
19289
|
try {
|
|
19094
19290
|
const registrationData = await _chunkCAKOFJZDjs.TwoFactorService.getPasskeyRegistrationOptions({
|
|
19095
19291
|
id: _uuid.v4.call(void 0, ),
|
|
19096
|
-
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
19097
|
-
userDisplayName: _optionalChain([currentUser, 'optionalAccess',
|
|
19292
|
+
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _602 => _602.email]), () => ( "")),
|
|
19293
|
+
userDisplayName: _optionalChain([currentUser, 'optionalAccess', _603 => _603.name])
|
|
19098
19294
|
});
|
|
19099
19295
|
const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
|
|
19100
19296
|
await _chunkCAKOFJZDjs.TwoFactorService.verifyPasskeyRegistration({
|
|
@@ -19245,7 +19441,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
19245
19441
|
const setup = await _chunkCAKOFJZDjs.TwoFactorService.setupTotp({
|
|
19246
19442
|
id: _uuid.v4.call(void 0, ),
|
|
19247
19443
|
name: name.trim(),
|
|
19248
|
-
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
19444
|
+
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _604 => _604.email]), () => ( ""))
|
|
19249
19445
|
});
|
|
19250
19446
|
setQrCodeUri(setup.qrCodeUri);
|
|
19251
19447
|
setAuthenticatorId(setup.authenticatorId);
|
|
@@ -19379,7 +19575,7 @@ function TwoFactorSettings() {
|
|
|
19379
19575
|
if (isLoading) {
|
|
19380
19576
|
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
19577
|
}
|
|
19382
|
-
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
19578
|
+
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _605 => _605.isEnabled]), () => ( false));
|
|
19383
19579
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
|
|
19384
19580
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
19385
19581
|
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 +19613,7 @@ function TwoFactorSettings() {
|
|
|
19417
19613
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
|
|
19418
19614
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
|
|
19419
19615
|
] }),
|
|
19420
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
19616
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _606 => _606.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
|
|
19421
19617
|
] }) }),
|
|
19422
19618
|
!isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
19423
19619
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
|
|
@@ -19595,9 +19791,9 @@ function AcceptInvitation() {
|
|
|
19595
19791
|
});
|
|
19596
19792
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
19597
19793
|
try {
|
|
19598
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
19794
|
+
if (!_optionalChain([params, 'optionalAccess', _607 => _607.code])) return;
|
|
19599
19795
|
const payload = {
|
|
19600
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
19796
|
+
code: _optionalChain([params, 'optionalAccess', _608 => _608.code]),
|
|
19601
19797
|
password: values.password
|
|
19602
19798
|
};
|
|
19603
19799
|
await _chunkCAKOFJZDjs.AuthService.acceptInvitation(payload);
|
|
@@ -19968,14 +20164,14 @@ function RefreshUser() {
|
|
|
19968
20164
|
setUser(fullUser);
|
|
19969
20165
|
const token = {
|
|
19970
20166
|
userId: fullUser.id,
|
|
19971
|
-
companyId: _optionalChain([fullUser, 'access',
|
|
20167
|
+
companyId: _optionalChain([fullUser, 'access', _609 => _609.company, 'optionalAccess', _610 => _610.id]),
|
|
19972
20168
|
roles: fullUser.roles.map((role) => role.id),
|
|
19973
|
-
features: _nullishCoalesce(_optionalChain([fullUser, 'access',
|
|
20169
|
+
features: _nullishCoalesce(_optionalChain([fullUser, 'access', _611 => _611.company, 'optionalAccess', _612 => _612.features, 'optionalAccess', _613 => _613.map, 'call', _614 => _614((feature) => feature.id)]), () => ( [])),
|
|
19974
20170
|
modules: fullUser.modules.map((module) => {
|
|
19975
20171
|
return { id: module.id, permissions: module.permissions };
|
|
19976
20172
|
})
|
|
19977
20173
|
};
|
|
19978
|
-
await _optionalChain([_chunkCAKOFJZDjs.getTokenHandler.call(void 0, ), 'optionalAccess',
|
|
20174
|
+
await _optionalChain([_chunkCAKOFJZDjs.getTokenHandler.call(void 0, ), 'optionalAccess', _615 => _615.updateToken, 'call', _616 => _616(token)]);
|
|
19979
20175
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
19980
20176
|
}
|
|
19981
20177
|
}, "loadFullUser");
|
|
@@ -20039,9 +20235,9 @@ function ResetPassword() {
|
|
|
20039
20235
|
});
|
|
20040
20236
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
20041
20237
|
try {
|
|
20042
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
20238
|
+
if (!_optionalChain([params, 'optionalAccess', _617 => _617.code])) return;
|
|
20043
20239
|
const payload = {
|
|
20044
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
20240
|
+
code: _optionalChain([params, 'optionalAccess', _618 => _618.code]),
|
|
20045
20241
|
password: values.password
|
|
20046
20242
|
};
|
|
20047
20243
|
await _chunkCAKOFJZDjs.AuthService.resetPassword(payload);
|
|
@@ -20576,7 +20772,7 @@ function AiConnectionEditor({
|
|
|
20576
20772
|
const registryRows = _react.useMemo.call(void 0, () => _nullishCoalesce(providerRegistry[connectionType], () => ( [])), [providerRegistry, connectionType]);
|
|
20577
20773
|
const providers = _react.useMemo.call(void 0, () => registryRows.map((row) => row.provider), [registryRows]);
|
|
20578
20774
|
const fieldsFor = _react.useCallback.call(void 0,
|
|
20579
|
-
(provider) => _nullishCoalesce(_optionalChain([registryRows, 'access',
|
|
20775
|
+
(provider) => _nullishCoalesce(_optionalChain([registryRows, 'access', _619 => _619.find, 'call', _620 => _620((row) => row.provider === provider), 'optionalAccess', _621 => _621.fields]), () => ( [])),
|
|
20580
20776
|
[registryRows]
|
|
20581
20777
|
);
|
|
20582
20778
|
const defaultsFor = _react.useCallback.call(void 0,
|
|
@@ -20585,7 +20781,7 @@ function AiConnectionEditor({
|
|
|
20585
20781
|
const seeded = {};
|
|
20586
20782
|
fieldsFor(provider).forEach((descriptor) => {
|
|
20587
20783
|
if (descriptor.kind === "boolean") {
|
|
20588
|
-
const current2 = _optionalChain([stored, 'optionalAccess',
|
|
20784
|
+
const current2 = _optionalChain([stored, 'optionalAccess', _622 => _622[descriptor.field]]);
|
|
20589
20785
|
seeded[descriptor.field] = current2 !== void 0 && current2 !== null ? current2 === true : descriptor.default === true;
|
|
20590
20786
|
return;
|
|
20591
20787
|
}
|
|
@@ -20593,7 +20789,7 @@ function AiConnectionEditor({
|
|
|
20593
20789
|
seeded[descriptor.field] = "";
|
|
20594
20790
|
return;
|
|
20595
20791
|
}
|
|
20596
|
-
const current = _optionalChain([stored, 'optionalAccess',
|
|
20792
|
+
const current = _optionalChain([stored, 'optionalAccess', _623 => _623[descriptor.field]]);
|
|
20597
20793
|
if (current !== void 0 && current !== null) seeded[descriptor.field] = String(current);
|
|
20598
20794
|
else seeded[descriptor.field] = descriptor.default !== void 0 ? String(descriptor.default) : "";
|
|
20599
20795
|
});
|
|
@@ -20619,7 +20815,7 @@ function AiConnectionEditor({
|
|
|
20619
20815
|
values: _zod3.z.record(_zod3.z.string(), _zod3.z.any())
|
|
20620
20816
|
}).superRefine((data, ctx) => {
|
|
20621
20817
|
fieldsFor(data.provider).filter((descriptor) => descriptor.required).forEach((descriptor) => {
|
|
20622
|
-
const value = _optionalChain([data, 'access',
|
|
20818
|
+
const value = _optionalChain([data, 'access', _624 => _624.values, 'optionalAccess', _625 => _625[descriptor.field]]);
|
|
20623
20819
|
const filled = descriptor.kind === "secret" ? !!value || hasStoredSecret(descriptor.field) : descriptor.kind === "boolean" ? value !== void 0 : value !== void 0 && value !== null && String(value).trim() !== "";
|
|
20624
20820
|
if (filled) return;
|
|
20625
20821
|
ctx.addIssue({
|
|
@@ -20633,11 +20829,11 @@ function AiConnectionEditor({
|
|
|
20633
20829
|
);
|
|
20634
20830
|
const getDefaultValues = _react.useCallback.call(void 0,
|
|
20635
20831
|
() => ({
|
|
20636
|
-
id: _nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
20637
|
-
name: _nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
20638
|
-
provider: _nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
20639
|
-
enabled: _nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
20640
|
-
values: defaultsFor(_nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
20832
|
+
id: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _626 => _626.id]), () => ( _uuid.v4.call(void 0, ))),
|
|
20833
|
+
name: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _627 => _627.name]), () => ( "")),
|
|
20834
|
+
provider: _nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _628 => _628.provider]), () => ( providers[0])), () => ( "")),
|
|
20835
|
+
enabled: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _629 => _629.enabled]), () => ( true)),
|
|
20836
|
+
values: defaultsFor(_nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _630 => _630.provider]), () => ( providers[0])), () => ( "")))
|
|
20641
20837
|
}),
|
|
20642
20838
|
[connection, providers, defaultsFor]
|
|
20643
20839
|
);
|
|
@@ -20648,7 +20844,7 @@ function AiConnectionEditor({
|
|
|
20648
20844
|
_react.useEffect.call(void 0, () => {
|
|
20649
20845
|
if (registryRows.length === 0) return;
|
|
20650
20846
|
const currentProvider = form.getValues("provider");
|
|
20651
|
-
const provider = currentProvider || _optionalChain([connection, 'optionalAccess',
|
|
20847
|
+
const provider = currentProvider || _optionalChain([connection, 'optionalAccess', _631 => _631.provider]) || providers[0] || "";
|
|
20652
20848
|
if (!provider) return;
|
|
20653
20849
|
if (provider !== currentProvider) form.setValue("provider", provider);
|
|
20654
20850
|
const currentValues = form.getValues("values");
|
|
@@ -20719,7 +20915,7 @@ function AiConnectionEditor({
|
|
|
20719
20915
|
{
|
|
20720
20916
|
form,
|
|
20721
20917
|
entityType: t("ai_connections.admin.entity"),
|
|
20722
|
-
entityName: _optionalChain([connection, 'optionalAccess',
|
|
20918
|
+
entityName: _optionalChain([connection, 'optionalAccess', _632 => _632.name]),
|
|
20723
20919
|
isEdit,
|
|
20724
20920
|
module: _chunkCAKOFJZDjs.Modules.AiConnection,
|
|
20725
20921
|
size: "md",
|
|
@@ -20727,7 +20923,7 @@ function AiConnectionEditor({
|
|
|
20727
20923
|
onSubmit: async (values) => {
|
|
20728
20924
|
const attributes = {};
|
|
20729
20925
|
fieldsFor(values.provider).forEach((descriptor) => {
|
|
20730
|
-
const coerced = coerce(descriptor, _optionalChain([values, 'access',
|
|
20926
|
+
const coerced = coerce(descriptor, _optionalChain([values, 'access', _633 => _633.values, 'optionalAccess', _634 => _634[descriptor.field]]));
|
|
20731
20927
|
if (coerced !== void 0) attributes[descriptor.field] = coerced;
|
|
20732
20928
|
});
|
|
20733
20929
|
const payload = {
|
|
@@ -20957,7 +21153,7 @@ function AiConnectionTypeCard({ connectionType }) {
|
|
|
20957
21153
|
),
|
|
20958
21154
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-muted/40 flex flex-wrap items-center gap-2 px-3 py-2", children: [
|
|
20959
21155
|
/* @__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',
|
|
21156
|
+
/* @__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
21157
|
] })
|
|
20962
21158
|
] })
|
|
20963
21159
|
] })
|
|
@@ -21155,7 +21351,7 @@ function extractHeadings(blocks) {
|
|
|
21155
21351
|
function processBlocks(blockArray) {
|
|
21156
21352
|
for (const block of blockArray) {
|
|
21157
21353
|
if (block.type === "heading") {
|
|
21158
|
-
const level = _optionalChain([block, 'access',
|
|
21354
|
+
const level = _optionalChain([block, 'access', _638 => _638.props, 'optionalAccess', _639 => _639.level]) || 1;
|
|
21159
21355
|
const text = extractTextFromContent(block.content);
|
|
21160
21356
|
if (text.trim()) {
|
|
21161
21357
|
headings.push({
|
|
@@ -21497,7 +21693,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
|
|
|
21497
21693
|
})
|
|
21498
21694
|
};
|
|
21499
21695
|
const columns = _react.useMemo.call(void 0, () => {
|
|
21500
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
21696
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _640 => _640[field], 'optionalCall', _641 => _641()])).filter((col) => col !== void 0);
|
|
21501
21697
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
21502
21698
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
21503
21699
|
}, "useHowToTableStructure");
|
|
@@ -21623,7 +21819,7 @@ function HowToSelector({
|
|
|
21623
21819
|
}, "setHowTo");
|
|
21624
21820
|
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
21821
|
/* @__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',
|
|
21822
|
+
/* @__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
21823
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21628
21824
|
_lucidereact.CircleX,
|
|
21629
21825
|
{
|
|
@@ -21788,7 +21984,7 @@ function AssistantComposer({
|
|
|
21788
21984
|
textarea,
|
|
21789
21985
|
sendButton
|
|
21790
21986
|
] }),
|
|
21791
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground text-end text-xs", children: t("features.assistant.keyboard_hint") })
|
|
21987
|
+
/* @__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
21988
|
] });
|
|
21793
21989
|
}
|
|
21794
21990
|
_chunk7QVYU63Ejs.__name.call(void 0, AssistantComposer, "AssistantComposer");
|
|
@@ -21906,6 +22102,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, RelevanceMeter, "RelevanceMeter");
|
|
|
21906
22102
|
function CitationsTab({ citations, sources }) {
|
|
21907
22103
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
21908
22104
|
const entityLabel = useEntityLabel();
|
|
22105
|
+
const isMobile = _chunkCAKOFJZDjs.useIsMobile.call(void 0, );
|
|
21909
22106
|
const [expanded, setExpanded] = _react.useState.call(void 0, /* @__PURE__ */ new Set());
|
|
21910
22107
|
if (citations.length === 0) return null;
|
|
21911
22108
|
const sorted = [...citations].sort((a, b) => (_nullishCoalesce(b.relevance, () => ( 0))) - (_nullishCoalesce(a.relevance, () => ( 0))));
|
|
@@ -21920,14 +22117,14 @@ function CitationsTab({ citations, sources }) {
|
|
|
21920
22117
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Table, { className: "table-fixed", children: [
|
|
21921
22118
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
|
|
21922
22119
|
/* @__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") })
|
|
22120
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: "w-28 text-center max-md:w-20", children: t("features.assistant.message.sources.relevance") })
|
|
21924
22121
|
] }) }),
|
|
21925
22122
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
|
|
21926
22123
|
const isOpen = expanded.has(chunk.id);
|
|
21927
|
-
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess',
|
|
22124
|
+
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _644 => _644.get, 'call', _645 => _645(chunk.nodeId)]) : void 0;
|
|
21928
22125
|
const typeLabel = chunk.nodeType ? entityLabel(chunk.nodeType) : t("features.assistant.message.sources.source");
|
|
21929
22126
|
const fallbackName = chunk.nodeId ? `${typeLabel} ${chunk.nodeId.slice(0, 8)}` : typeLabel;
|
|
21930
|
-
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess',
|
|
22127
|
+
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _646 => _646.name]), () => ( fallbackName));
|
|
21931
22128
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
21932
22129
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
|
|
21933
22130
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -21945,16 +22142,33 @@ function CitationsTab({ citations, sources }) {
|
|
|
21945
22142
|
"aria-expanded": isOpen,
|
|
21946
22143
|
className: "flex w-full cursor-pointer items-center justify-start gap-x-2",
|
|
21947
22144
|
children: [
|
|
21948
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21949
|
-
|
|
21950
|
-
|
|
22145
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22146
|
+
_lucidereact.ChevronDown,
|
|
22147
|
+
{
|
|
22148
|
+
className: _chunkCAKOFJZDjs.cn.call(void 0, "h-4 w-4 transition-transform max-md:shrink-0", !isOpen && "-rotate-90")
|
|
22149
|
+
}
|
|
22150
|
+
),
|
|
22151
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-semibold max-md:min-w-0 max-md:truncate", children: sourceName }),
|
|
22152
|
+
chunk.reason && isMobile && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { children: [
|
|
22153
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22154
|
+
PopoverTrigger,
|
|
22155
|
+
{
|
|
22156
|
+
"aria-label": chunk.reason,
|
|
22157
|
+
onClick: (e) => e.stopPropagation(),
|
|
22158
|
+
className: "text-muted-foreground -m-2 inline-flex shrink-0 p-2",
|
|
22159
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.HelpCircle, { className: "h-3.5 w-3.5" })
|
|
22160
|
+
}
|
|
22161
|
+
),
|
|
22162
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className: "max-w-64 text-xs", children: chunk.reason })
|
|
22163
|
+
] }),
|
|
22164
|
+
chunk.reason && !isMobile && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
|
|
21951
22165
|
/* @__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
22166
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { className: "max-w-64 text-xs", children: chunk.reason })
|
|
21953
22167
|
] })
|
|
21954
22168
|
]
|
|
21955
22169
|
}
|
|
21956
22170
|
) }),
|
|
21957
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: "text-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RelevanceMeter, { value: _nullishCoalesce(chunk.relevance, () => ( 0)) }) })
|
|
22171
|
+
/* @__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
22172
|
] }),
|
|
21959
22173
|
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
22174
|
] }, chunk.id);
|
|
@@ -21974,7 +22188,7 @@ function ContentsTab({ citations, sources }) {
|
|
|
21974
22188
|
for (const c of citations) {
|
|
21975
22189
|
const id = c.nodeId;
|
|
21976
22190
|
if (!id) continue;
|
|
21977
|
-
const source = _optionalChain([sources, 'optionalAccess',
|
|
22191
|
+
const source = _optionalChain([sources, 'optionalAccess', _647 => _647.get, 'call', _648 => _648(id)]);
|
|
21978
22192
|
if (!source) continue;
|
|
21979
22193
|
const existing = map.get(id);
|
|
21980
22194
|
if (existing) {
|
|
@@ -22041,7 +22255,7 @@ function UsersTab({ users, citations, sources }) {
|
|
|
22041
22255
|
const generate = usePageUrlGenerator();
|
|
22042
22256
|
const userMap = /* @__PURE__ */ new Map();
|
|
22043
22257
|
for (const u of users) {
|
|
22044
|
-
if (!_optionalChain([u, 'optionalAccess',
|
|
22258
|
+
if (!_optionalChain([u, 'optionalAccess', _649 => _649.id])) continue;
|
|
22045
22259
|
userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
|
|
22046
22260
|
}
|
|
22047
22261
|
if (citations && sources) {
|
|
@@ -22146,7 +22360,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
|
|
|
22146
22360
|
}
|
|
22147
22361
|
return ids.size;
|
|
22148
22362
|
}, [message.citations, sources]);
|
|
22149
|
-
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess',
|
|
22363
|
+
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _650 => _650.length]), () => ( 0));
|
|
22150
22364
|
const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
|
|
22151
22365
|
const visibleTabs = [];
|
|
22152
22366
|
if (suggestionsCount > 0) visibleTabs.push("suggested");
|
|
@@ -22289,7 +22503,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
|
|
|
22289
22503
|
return void 0;
|
|
22290
22504
|
}
|
|
22291
22505
|
})()));
|
|
22292
|
-
if (_optionalChain([author, 'optionalAccess',
|
|
22506
|
+
if (_optionalChain([author, 'optionalAccess', _651 => _651.id])) userMap.set(author.id, author);
|
|
22293
22507
|
}
|
|
22294
22508
|
return Array.from(userMap.values());
|
|
22295
22509
|
}, [resolved]);
|
|
@@ -22324,7 +22538,7 @@ function MessageItem({
|
|
|
22324
22538
|
}) {
|
|
22325
22539
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
22326
22540
|
const isUser = message.role === "user";
|
|
22327
|
-
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess',
|
|
22541
|
+
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _652 => _652.has, 'call', _653 => _653(message.id)]);
|
|
22328
22542
|
const markdownComponents = _react.useMemo.call(void 0,
|
|
22329
22543
|
() => ({
|
|
22330
22544
|
a: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ href, children }) => {
|
|
@@ -22337,16 +22551,16 @@ function MessageItem({
|
|
|
22337
22551
|
);
|
|
22338
22552
|
if (isUser) {
|
|
22339
22553
|
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 }) }),
|
|
22554
|
+
/* @__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
22555
|
isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
|
|
22342
22556
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
|
|
22343
22557
|
/* @__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',
|
|
22558
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall', _654 => _654(message.id)]), children: t("features.assistant.retry") })
|
|
22345
22559
|
] })
|
|
22346
22560
|
] });
|
|
22347
22561
|
}
|
|
22348
22562
|
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: [
|
|
22563
|
+
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
22564
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground flex items-center gap-2 ps-1 text-xs", children: [
|
|
22351
22565
|
/* @__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
22566
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.agent_name") })
|
|
@@ -22432,7 +22646,7 @@ function AssistantThread({
|
|
|
22432
22646
|
}) {
|
|
22433
22647
|
const lastMessageRef = _react.useRef.call(void 0, null);
|
|
22434
22648
|
_react.useEffect.call(void 0, () => {
|
|
22435
|
-
_optionalChain([lastMessageRef, 'access',
|
|
22649
|
+
_optionalChain([lastMessageRef, 'access', _655 => _655.current, 'optionalAccess', _656 => _656.scrollIntoView, 'call', _657 => _657({ block: "start", behavior: "smooth" })]);
|
|
22436
22650
|
}, [messages.length, sending]);
|
|
22437
22651
|
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
22652
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22471,7 +22685,7 @@ ${message.sources.map((source) => `- \`${source}\``).join("\n")}`;
|
|
|
22471
22685
|
return _chunkCAKOFJZDjs.rehydrate.call(void 0, _chunkCAKOFJZDjs.Modules.HandbookThreadMessage, {
|
|
22472
22686
|
jsonApi: {
|
|
22473
22687
|
...dehydrated.jsonApi,
|
|
22474
|
-
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access',
|
|
22688
|
+
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _658 => _658.jsonApi, 'optionalAccess', _659 => _659.attributes]), () => ( {})), content }
|
|
22475
22689
|
},
|
|
22476
22690
|
included: dehydrated.included
|
|
22477
22691
|
});
|
|
@@ -22480,8 +22694,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, withSourcesInContent, "withSourcesInContent
|
|
|
22480
22694
|
function useHandbookAsk(params) {
|
|
22481
22695
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
22482
22696
|
const generateUrl = usePageUrlGenerator();
|
|
22483
|
-
const shouldSyncUrl = _nullishCoalesce(_optionalChain([params, 'optionalAccess',
|
|
22484
|
-
const handbookThreadId = _optionalChain([params, 'optionalAccess',
|
|
22697
|
+
const shouldSyncUrl = _nullishCoalesce(_optionalChain([params, 'optionalAccess', _660 => _660.syncUrl]), () => ( true));
|
|
22698
|
+
const handbookThreadId = _optionalChain([params, 'optionalAccess', _661 => _661.handbookThreadId]);
|
|
22485
22699
|
const [threads, setThreads] = _react.useState.call(void 0, []);
|
|
22486
22700
|
const [thread, setThread] = _react.useState.call(void 0, void 0);
|
|
22487
22701
|
const [messages, setMessages] = _react.useState.call(void 0, []);
|
|
@@ -22543,12 +22757,12 @@ function useHandbookAsk(params) {
|
|
|
22543
22757
|
]);
|
|
22544
22758
|
setSending(true);
|
|
22545
22759
|
try {
|
|
22546
|
-
let id = _optionalChain([thread, 'optionalAccess',
|
|
22760
|
+
let id = _optionalChain([thread, 'optionalAccess', _662 => _662.id]);
|
|
22547
22761
|
if (id === void 0) {
|
|
22548
22762
|
const created = await _chunkCAKOFJZDjs.HandbookThreadService.create({
|
|
22549
22763
|
id: _uuid.v4.call(void 0, ),
|
|
22550
22764
|
question: trimmed,
|
|
22551
|
-
handbookPageId: _optionalChain([options, 'optionalAccess',
|
|
22765
|
+
handbookPageId: _optionalChain([options, 'optionalAccess', _663 => _663.handbookPageId])
|
|
22552
22766
|
});
|
|
22553
22767
|
id = created.id;
|
|
22554
22768
|
setThreads((current) => [created, ...current]);
|
|
@@ -22557,7 +22771,7 @@ function useHandbookAsk(params) {
|
|
|
22557
22771
|
id: _uuid.v4.call(void 0, ),
|
|
22558
22772
|
threadId: id,
|
|
22559
22773
|
question: trimmed,
|
|
22560
|
-
handbookPageId: _optionalChain([options, 'optionalAccess',
|
|
22774
|
+
handbookPageId: _optionalChain([options, 'optionalAccess', _664 => _664.handbookPageId])
|
|
22561
22775
|
});
|
|
22562
22776
|
}
|
|
22563
22777
|
const loaded = await _chunkCAKOFJZDjs.HandbookThreadService.findOne({ id });
|
|
@@ -22578,7 +22792,7 @@ function useHandbookAsk(params) {
|
|
|
22578
22792
|
setSending(false);
|
|
22579
22793
|
}
|
|
22580
22794
|
},
|
|
22581
|
-
[messages.length, sending, syncUrl, t, _optionalChain([thread, 'optionalAccess',
|
|
22795
|
+
[messages.length, sending, syncUrl, t, _optionalChain([thread, 'optionalAccess', _665 => _665.id])]
|
|
22582
22796
|
);
|
|
22583
22797
|
return { threads, thread, messages, sending, ask, selectThread, startNew };
|
|
22584
22798
|
}
|
|
@@ -23134,7 +23348,7 @@ function HandbookPageContainer({ handbookPageId }) {
|
|
|
23134
23348
|
};
|
|
23135
23349
|
}, []);
|
|
23136
23350
|
const section = _react.useMemo.call(void 0,
|
|
23137
|
-
() => sections.find((candidate) => candidate.key === _optionalChain([handbookPage, 'optionalAccess',
|
|
23351
|
+
() => sections.find((candidate) => candidate.key === _optionalChain([handbookPage, 'optionalAccess', _666 => _666.section])),
|
|
23138
23352
|
[sections, handbookPage]
|
|
23139
23353
|
);
|
|
23140
23354
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -23223,7 +23437,7 @@ function AssistantSidebar({
|
|
|
23223
23437
|
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
23438
|
children: [
|
|
23225
23439
|
thread.title,
|
|
23226
|
-
_optionalChain([renderThreadBadge, 'optionalCall',
|
|
23440
|
+
_optionalChain([renderThreadBadge, 'optionalCall', _667 => _667(thread)])
|
|
23227
23441
|
]
|
|
23228
23442
|
},
|
|
23229
23443
|
thread.id
|
|
@@ -23259,7 +23473,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
|
|
|
23259
23473
|
AssistantSidebar,
|
|
23260
23474
|
{
|
|
23261
23475
|
threads,
|
|
23262
|
-
activeId: _optionalChain([thread, 'optionalAccess',
|
|
23476
|
+
activeId: _optionalChain([thread, 'optionalAccess', _668 => _668.id]),
|
|
23263
23477
|
onSelect: selectThread,
|
|
23264
23478
|
onNew: startNew,
|
|
23265
23479
|
newLabel: t("handbook.chat.new"),
|
|
@@ -23267,7 +23481,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
|
|
|
23267
23481
|
}
|
|
23268
23482
|
) })
|
|
23269
23483
|
),
|
|
23270
|
-
[selectThread, startNew, t, _optionalChain([thread, 'optionalAccess',
|
|
23484
|
+
[selectThread, startNew, t, _optionalChain([thread, 'optionalAccess', _669 => _669.id]), threads]
|
|
23271
23485
|
);
|
|
23272
23486
|
return (
|
|
23273
23487
|
// `RoundPageContainer` reads the page heading from the shared context, and
|
|
@@ -23279,7 +23493,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
|
|
|
23279
23493
|
RoundPageContainer,
|
|
23280
23494
|
{
|
|
23281
23495
|
module: _chunkCAKOFJZDjs.Modules.HandbookPage,
|
|
23282
|
-
id: _optionalChain([thread, 'optionalAccess',
|
|
23496
|
+
id: _optionalChain([thread, 'optionalAccess', _670 => _670.id]),
|
|
23283
23497
|
fullWidth: true,
|
|
23284
23498
|
forceHeader: true,
|
|
23285
23499
|
defaultDetailsOpen: true,
|
|
@@ -23331,7 +23545,7 @@ function EntityMentionLinkView({ type, id, alias }) {
|
|
|
23331
23545
|
} catch (e25) {
|
|
23332
23546
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: alias });
|
|
23333
23547
|
}
|
|
23334
|
-
if (!_optionalChain([module, 'optionalAccess',
|
|
23548
|
+
if (!_optionalChain([module, 'optionalAccess', _671 => _671.pageUrl])) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: alias });
|
|
23335
23549
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generate({ page: module, id }), children: alias });
|
|
23336
23550
|
}
|
|
23337
23551
|
_chunk7QVYU63Ejs.__name.call(void 0, EntityMentionLinkView, "EntityMentionLinkView");
|
|
@@ -23463,13 +23677,13 @@ function AssistantContainer({
|
|
|
23463
23677
|
AssistantSidebar,
|
|
23464
23678
|
{
|
|
23465
23679
|
threads: ctx.threads,
|
|
23466
|
-
activeId: _optionalChain([ctx, 'access',
|
|
23680
|
+
activeId: _optionalChain([ctx, 'access', _672 => _672.assistant, 'optionalAccess', _673 => _673.id]),
|
|
23467
23681
|
onSelect: ctx.selectThread,
|
|
23468
23682
|
renderThreadBadge
|
|
23469
23683
|
}
|
|
23470
23684
|
) })
|
|
23471
23685
|
),
|
|
23472
|
-
[ctx.threads, _optionalChain([ctx, 'access',
|
|
23686
|
+
[ctx.threads, _optionalChain([ctx, 'access', _674 => _674.assistant, 'optionalAccess', _675 => _675.id]), ctx.selectThread, renderThreadBadge]
|
|
23473
23687
|
);
|
|
23474
23688
|
const thread = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: !showThread ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23475
23689
|
AssistantEmptyState,
|
|
@@ -23477,7 +23691,7 @@ function AssistantContainer({
|
|
|
23477
23691
|
onSend: ctx.sendMessage,
|
|
23478
23692
|
operatorMode: ctx.operatorMode,
|
|
23479
23693
|
onOperatorModeChange: showOperatorToggle ? ctx.setOperatorMode : void 0,
|
|
23480
|
-
composerLeading: _optionalChain([renderScopePicker, 'optionalCall',
|
|
23694
|
+
composerLeading: _optionalChain([renderScopePicker, 'optionalCall', _676 => _676()])
|
|
23481
23695
|
}
|
|
23482
23696
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
23483
23697
|
ctx.assistant ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -23509,7 +23723,7 @@ function AssistantContainer({
|
|
|
23509
23723
|
AssistantSidebar,
|
|
23510
23724
|
{
|
|
23511
23725
|
threads: ctx.threads,
|
|
23512
|
-
activeId: _optionalChain([ctx, 'access',
|
|
23726
|
+
activeId: _optionalChain([ctx, 'access', _677 => _677.assistant, 'optionalAccess', _678 => _678.id]),
|
|
23513
23727
|
onSelect: ctx.selectThread,
|
|
23514
23728
|
onNew: ctx.startNew,
|
|
23515
23729
|
renderThreadBadge
|
|
@@ -23522,7 +23736,7 @@ function AssistantContainer({
|
|
|
23522
23736
|
RoundPageContainer,
|
|
23523
23737
|
{
|
|
23524
23738
|
module: _chunkCAKOFJZDjs.Modules.Assistant,
|
|
23525
|
-
id: _optionalChain([ctx, 'access',
|
|
23739
|
+
id: _optionalChain([ctx, 'access', _679 => _679.assistant, 'optionalAccess', _680 => _680.id]),
|
|
23526
23740
|
fullWidth: true,
|
|
23527
23741
|
forceHeader: true,
|
|
23528
23742
|
defaultDetailsOpen: true,
|
|
@@ -23550,7 +23764,7 @@ function flattenBlocks(blocks) {
|
|
|
23550
23764
|
if (typeof inline === "string") return inline;
|
|
23551
23765
|
if (!inline || typeof inline !== "object") return "";
|
|
23552
23766
|
const node = inline;
|
|
23553
|
-
if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access',
|
|
23767
|
+
if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access', _681 => _681.props, 'optionalAccess', _682 => _682.alias]), () => ( ""));
|
|
23554
23768
|
if (typeof node.text === "string") return node.text;
|
|
23555
23769
|
if (Array.isArray(node.content)) return node.content.map(readInline).join("");
|
|
23556
23770
|
return "";
|
|
@@ -23629,7 +23843,7 @@ function AssistantBlockNoteComposer({
|
|
|
23629
23843
|
t("features.assistant.send")
|
|
23630
23844
|
] })
|
|
23631
23845
|
] }),
|
|
23632
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground text-end text-xs", children: t("features.assistant.keyboard_hint") })
|
|
23846
|
+
/* @__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
23847
|
] });
|
|
23634
23848
|
}
|
|
23635
23849
|
_chunk7QVYU63Ejs.__name.call(void 0, AssistantBlockNoteComposer, "AssistantBlockNoteComposer");
|
|
@@ -23666,7 +23880,7 @@ function AssistantPageContainer({
|
|
|
23666
23880
|
AssistantSidebar,
|
|
23667
23881
|
{
|
|
23668
23882
|
threads: ctx.threads,
|
|
23669
|
-
activeId: _optionalChain([ctx, 'access',
|
|
23883
|
+
activeId: _optionalChain([ctx, 'access', _683 => _683.assistant, 'optionalAccess', _684 => _684.id]),
|
|
23670
23884
|
onSelect: ctx.selectThread,
|
|
23671
23885
|
onNew: ctx.startNew
|
|
23672
23886
|
}
|
|
@@ -23905,12 +24119,12 @@ function ApprovalActionCard({ actionId, summary, onResolved, hiddenRelationshipK
|
|
|
23905
24119
|
const presented = _react.useMemo.call(void 0, () => parseOperatorProposal(actionProposal), [actionProposal]);
|
|
23906
24120
|
const legacy = _react.useMemo.call(void 0, () => presented ? void 0 : parseLegacyProposal(toolArgs), [presented, toolArgs]);
|
|
23907
24121
|
const isUpdate = toolName === "update_entity";
|
|
23908
|
-
const entityLabel = humaniseType(_nullishCoalesce(_nullishCoalesce(_optionalChain([presented, 'optionalAccess',
|
|
23909
|
-
const targetLabel = _nullishCoalesce(_optionalChain([presented, 'optionalAccess',
|
|
24122
|
+
const entityLabel = humaniseType(_nullishCoalesce(_nullishCoalesce(_optionalChain([presented, 'optionalAccess', _685 => _685.type]), () => ( _optionalChain([legacy, 'optionalAccess', _686 => _686.type]))), () => ( "")));
|
|
24123
|
+
const targetLabel = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _687 => _687.target, 'optionalAccess', _688 => _688.label]), () => ( ""));
|
|
23910
24124
|
const rows = _react.useMemo.call(void 0, () => {
|
|
23911
24125
|
const yes = t("features.assistant.approval.proposal.yes");
|
|
23912
24126
|
const no = t("features.assistant.approval.proposal.no");
|
|
23913
|
-
const attributes = _nullishCoalesce(_optionalChain([presented, 'optionalAccess',
|
|
24127
|
+
const attributes = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _689 => _689.attributes]), () => ( _optionalChain([legacy, 'optionalAccess', _690 => _690.attributes])));
|
|
23914
24128
|
const attributeRows = Object.entries(_nullishCoalesce(attributes, () => ( {}))).flatMap(([key, value]) => {
|
|
23915
24129
|
const text = formatAttribute(value, yes, no);
|
|
23916
24130
|
return text === void 0 ? [] : [{ key: `attribute:${key}`, label: humaniseKey(key), value: text }];
|
|
@@ -23948,7 +24162,7 @@ function ApprovalActionCard({ actionId, summary, onResolved, hiddenRelationshipK
|
|
|
23948
24162
|
try {
|
|
23949
24163
|
const message = kind === "approve" ? await _chunkCAKOFJZDjs.AssistantActionService.approve({ id: actionId }) : await _chunkCAKOFJZDjs.AssistantActionService.deny({ id: actionId });
|
|
23950
24164
|
setStatus(kind === "approve" ? "executed" : "denied");
|
|
23951
|
-
if (message) _optionalChain([onResolved, 'optionalCall',
|
|
24165
|
+
if (message) _optionalChain([onResolved, 'optionalCall', _691 => _691(message)]);
|
|
23952
24166
|
} catch (error) {
|
|
23953
24167
|
console.error(`ApprovalActionCard: failed to ${kind} assistant action ${actionId}`, error);
|
|
23954
24168
|
setFailed(true);
|
|
@@ -24085,10 +24299,10 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
|
|
|
24085
24299
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
24086
24300
|
const generateUrl = usePageUrlGenerator();
|
|
24087
24301
|
const { loadNotifications } = useNotificationContext();
|
|
24088
|
-
const archived = _optionalChain([params, 'access',
|
|
24302
|
+
const archived = _optionalChain([params, 'access', _692 => _692.context, 'optionalAccess', _693 => _693.archived]) === true;
|
|
24089
24303
|
const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
|
|
24090
24304
|
await _chunkCAKOFJZDjs.NotificationService.archive({ id: notification.id });
|
|
24091
|
-
_optionalChain([params, 'access',
|
|
24305
|
+
_optionalChain([params, 'access', _694 => _694.dataRetriever, 'optionalAccess', _695 => _695.removeElement, 'call', _696 => _696(notification)]);
|
|
24092
24306
|
await loadNotifications();
|
|
24093
24307
|
}, "archiveNotification");
|
|
24094
24308
|
const tableData = _react.useMemo.call(void 0, () => {
|
|
@@ -24127,7 +24341,7 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
|
|
|
24127
24341
|
const data = generateNotificationData({ notification, generateUrl });
|
|
24128
24342
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-foreground text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
24129
24343
|
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',
|
|
24344
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _697 => _697.actor, 'optionalAccess', _698 => _698.name]), () => ( "")),
|
|
24131
24345
|
title: data.title,
|
|
24132
24346
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
24133
24347
|
}) });
|
|
@@ -24182,7 +24396,7 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
|
|
|
24182
24396
|
})
|
|
24183
24397
|
};
|
|
24184
24398
|
const columns = _react.useMemo.call(void 0, () => {
|
|
24185
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
24399
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _699 => _699[field], 'optionalCall', _700 => _700()])).filter((col) => col !== void 0);
|
|
24186
24400
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
24187
24401
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
24188
24402
|
}, "useNotificationTableStructure");
|
|
@@ -24601,7 +24815,7 @@ var DEFAULT_TRANSLATIONS = {
|
|
|
24601
24815
|
invalidEmail: "Please enter a valid email address"
|
|
24602
24816
|
};
|
|
24603
24817
|
async function copyToClipboard(text) {
|
|
24604
|
-
if (_optionalChain([navigator, 'access',
|
|
24818
|
+
if (_optionalChain([navigator, 'access', _701 => _701.clipboard, 'optionalAccess', _702 => _702.writeText])) {
|
|
24605
24819
|
try {
|
|
24606
24820
|
await navigator.clipboard.writeText(text);
|
|
24607
24821
|
return true;
|
|
@@ -24643,7 +24857,7 @@ function ReferralWidget({
|
|
|
24643
24857
|
const linkInputRef = _react.useRef.call(void 0, null);
|
|
24644
24858
|
const config = _chunk4Z45NYPRjs.getReferralConfig.call(void 0, );
|
|
24645
24859
|
const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
|
|
24646
|
-
const referralUrl = _optionalChain([stats, 'optionalAccess',
|
|
24860
|
+
const referralUrl = _optionalChain([stats, 'optionalAccess', _703 => _703.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
|
|
24647
24861
|
if (!_chunk4Z45NYPRjs.isReferralEnabled.call(void 0, )) {
|
|
24648
24862
|
return null;
|
|
24649
24863
|
}
|
|
@@ -24653,7 +24867,7 @@ function ReferralWidget({
|
|
|
24653
24867
|
if (success) {
|
|
24654
24868
|
setCopied(true);
|
|
24655
24869
|
_chunkCAKOFJZDjs.showToast.call(void 0, t.copiedMessage);
|
|
24656
|
-
_optionalChain([onLinkCopied, 'optionalCall',
|
|
24870
|
+
_optionalChain([onLinkCopied, 'optionalCall', _704 => _704()]);
|
|
24657
24871
|
setTimeout(() => setCopied(false), 2e3);
|
|
24658
24872
|
} else {
|
|
24659
24873
|
_chunkCAKOFJZDjs.showError.call(void 0, t.copyError);
|
|
@@ -24667,12 +24881,12 @@ function ReferralWidget({
|
|
|
24667
24881
|
try {
|
|
24668
24882
|
await sendInvite(email);
|
|
24669
24883
|
_chunkCAKOFJZDjs.showToast.call(void 0, t.inviteSent);
|
|
24670
|
-
_optionalChain([onInviteSent, 'optionalCall',
|
|
24884
|
+
_optionalChain([onInviteSent, 'optionalCall', _705 => _705(email)]);
|
|
24671
24885
|
setEmail("");
|
|
24672
24886
|
} catch (err) {
|
|
24673
24887
|
const error2 = err instanceof Error ? err : new Error(t.inviteError);
|
|
24674
24888
|
_chunkCAKOFJZDjs.showError.call(void 0, error2.message);
|
|
24675
|
-
_optionalChain([onInviteError, 'optionalCall',
|
|
24889
|
+
_optionalChain([onInviteError, 'optionalCall', _706 => _706(error2)]);
|
|
24676
24890
|
}
|
|
24677
24891
|
}, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
|
|
24678
24892
|
const handleEmailKeyDown = _react.useCallback.call(void 0,
|
|
@@ -25426,7 +25640,7 @@ function OAuthClientList({
|
|
|
25426
25640
|
OAuthClientCard,
|
|
25427
25641
|
{
|
|
25428
25642
|
client,
|
|
25429
|
-
onClick: () => _optionalChain([onClientClick, 'optionalCall',
|
|
25643
|
+
onClick: () => _optionalChain([onClientClick, 'optionalCall', _707 => _707(client)]),
|
|
25430
25644
|
onEdit: onEditClick ? () => onEditClick(client) : void 0,
|
|
25431
25645
|
onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
|
|
25432
25646
|
},
|
|
@@ -25449,11 +25663,11 @@ function OAuthClientForm({
|
|
|
25449
25663
|
}) {
|
|
25450
25664
|
const isEditMode = !!client;
|
|
25451
25665
|
const [formState, setFormState] = _react.useState.call(void 0, {
|
|
25452
|
-
name: _optionalChain([client, 'optionalAccess',
|
|
25453
|
-
description: _optionalChain([client, 'optionalAccess',
|
|
25454
|
-
redirectUris: _optionalChain([client, 'optionalAccess',
|
|
25666
|
+
name: _optionalChain([client, 'optionalAccess', _708 => _708.name]) || "",
|
|
25667
|
+
description: _optionalChain([client, 'optionalAccess', _709 => _709.description]) || "",
|
|
25668
|
+
redirectUris: _optionalChain([client, 'optionalAccess', _710 => _710.redirectUris, 'optionalAccess', _711 => _711.length]) ? client.redirectUris : [""],
|
|
25455
25669
|
allowedScopes: client ? client.allowedScopes || [] : defaultScopes,
|
|
25456
|
-
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess',
|
|
25670
|
+
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _712 => _712.isConfidential]), () => ( true))
|
|
25457
25671
|
});
|
|
25458
25672
|
const [errors, setErrors] = _react.useState.call(void 0, {});
|
|
25459
25673
|
const validate = _react.useCallback.call(void 0, () => {
|
|
@@ -25682,7 +25896,7 @@ function OAuthClientDetail({
|
|
|
25682
25896
|
] }),
|
|
25683
25897
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
25684
25898
|
/* @__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',
|
|
25899
|
+
/* @__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
25900
|
] }),
|
|
25687
25901
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
25688
25902
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -25863,7 +26077,7 @@ function OAuthConsentScreen({
|
|
|
25863
26077
|
if (error || !clientInfo) {
|
|
25864
26078
|
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
26079
|
/* @__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',
|
|
26080
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _715 => _715.message]) || t("oauth.consent.invalid_request") })
|
|
25867
26081
|
] }) }) }) });
|
|
25868
26082
|
}
|
|
25869
26083
|
const { client, scopes } = clientInfo;
|
|
@@ -26084,7 +26298,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
26084
26298
|
questionnaire: values.questionnaire
|
|
26085
26299
|
});
|
|
26086
26300
|
setIsSuccess(true);
|
|
26087
|
-
_optionalChain([onSuccess, 'optionalCall',
|
|
26301
|
+
_optionalChain([onSuccess, 'optionalCall', _716 => _716()]);
|
|
26088
26302
|
} catch (e) {
|
|
26089
26303
|
errorToast({ error: e });
|
|
26090
26304
|
} finally {
|
|
@@ -26624,7 +26838,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
|
|
|
26624
26838
|
] }),
|
|
26625
26839
|
roleIds.map((roleId) => {
|
|
26626
26840
|
const roleTokens = block[roleId];
|
|
26627
|
-
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
26841
|
+
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _717 => _717[roleId]]), () => ( roleId));
|
|
26628
26842
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
26629
26843
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
|
|
26630
26844
|
_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 +26875,7 @@ function RbacContainer() {
|
|
|
26661
26875
|
}, []);
|
|
26662
26876
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
26663
26877
|
if (!matrix) return [];
|
|
26664
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
26878
|
+
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
26879
|
}, [matrix, moduleNames]);
|
|
26666
26880
|
const roleIds = _react.useMemo.call(void 0, () => {
|
|
26667
26881
|
if (roleNames) {
|
|
@@ -26724,7 +26938,7 @@ function RbacContainer() {
|
|
|
26724
26938
|
id === selectedModuleId && "bg-muted font-medium text-foreground",
|
|
26725
26939
|
id !== selectedModuleId && "text-muted-foreground"
|
|
26726
26940
|
),
|
|
26727
|
-
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
26941
|
+
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _720 => _720[id]]), () => ( id))
|
|
26728
26942
|
}
|
|
26729
26943
|
) }, id)) }) }),
|
|
26730
26944
|
/* @__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 +26946,7 @@ function RbacContainer() {
|
|
|
26732
26946
|
{
|
|
26733
26947
|
moduleId: selectedModuleId,
|
|
26734
26948
|
block: selectedBlock,
|
|
26735
|
-
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
26949
|
+
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _721 => _721[selectedModuleId]]), () => ( selectedModuleId)),
|
|
26736
26950
|
roleIds,
|
|
26737
26951
|
roleNames,
|
|
26738
26952
|
onOpenPicker: openPicker
|
|
@@ -26743,12 +26957,12 @@ function RbacContainer() {
|
|
|
26743
26957
|
RbacPermissionPicker,
|
|
26744
26958
|
{
|
|
26745
26959
|
open: !!activePicker,
|
|
26746
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
26960
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _722 => _722.anchor]), () => ( null)),
|
|
26747
26961
|
value: activeValue,
|
|
26748
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
26962
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _723 => _723.isRoleColumn]), () => ( false)),
|
|
26749
26963
|
knownSegments: activeSegments,
|
|
26750
26964
|
onSetValue: handleSetValue,
|
|
26751
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
26965
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _724 => _724.isRoleColumn]) ? handleClear : void 0,
|
|
26752
26966
|
onClose: closePicker
|
|
26753
26967
|
}
|
|
26754
26968
|
)
|
|
@@ -26815,7 +27029,7 @@ function RbacByRoleContainer() {
|
|
|
26815
27029
|
}, [roleNames]);
|
|
26816
27030
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
26817
27031
|
if (!matrix) return [];
|
|
26818
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
27032
|
+
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
27033
|
}, [matrix, moduleNames]);
|
|
26820
27034
|
_react.useEffect.call(void 0, () => {
|
|
26821
27035
|
if (!selectedRoleId && sortedRoleIds.length > 0) {
|
|
@@ -26864,7 +27078,7 @@ function RbacByRoleContainer() {
|
|
|
26864
27078
|
id === selectedRoleId && "bg-muted font-medium text-foreground",
|
|
26865
27079
|
id !== selectedRoleId && "text-muted-foreground"
|
|
26866
27080
|
),
|
|
26867
|
-
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
27081
|
+
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _727 => _727[id]]), () => ( id))
|
|
26868
27082
|
}
|
|
26869
27083
|
) }, id)) }) }),
|
|
26870
27084
|
/* @__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 +27098,7 @@ function RbacByRoleContainer() {
|
|
|
26884
27098
|
if (!block) return null;
|
|
26885
27099
|
const defaultTokens = _nullishCoalesce(block.default, () => ( []));
|
|
26886
27100
|
const roleTokens = block[selectedRoleId];
|
|
26887
|
-
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
27101
|
+
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _728 => _728[moduleId]]), () => ( moduleId));
|
|
26888
27102
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
26889
27103
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26890
27104
|
"td",
|
|
@@ -26899,7 +27113,7 @@ function RbacByRoleContainer() {
|
|
|
26899
27113
|
_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
27114
|
] }),
|
|
26901
27115
|
/* @__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',
|
|
27116
|
+
/* @__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
27117
|
_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
27118
|
CellButton3,
|
|
26905
27119
|
{
|
|
@@ -26920,12 +27134,12 @@ function RbacByRoleContainer() {
|
|
|
26920
27134
|
RbacPermissionPicker,
|
|
26921
27135
|
{
|
|
26922
27136
|
open: !!activePicker,
|
|
26923
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
27137
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _730 => _730.anchor]), () => ( null)),
|
|
26924
27138
|
value: activeValue,
|
|
26925
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
27139
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _731 => _731.isRoleColumn]), () => ( false)),
|
|
26926
27140
|
knownSegments: activeSegments,
|
|
26927
27141
|
onSetValue: handleSetValue,
|
|
26928
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
27142
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _732 => _732.isRoleColumn]) ? handleClear : void 0,
|
|
26929
27143
|
onClose: closePicker
|
|
26930
27144
|
}
|
|
26931
27145
|
)
|
|
@@ -27533,5 +27747,6 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
|
|
|
27533
27747
|
|
|
27534
27748
|
|
|
27535
27749
|
|
|
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
|
|
27750
|
+
|
|
27751
|
+
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;
|
|
27752
|
+
//# sourceMappingURL=chunk-ABVTYQIJ.js.map
|